text: !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.BpmnJS=e()}}(function(){var e;return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return r(n?n:e)},l,l.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(e,t,n){"use strict";function i(e){o.call(this,e)}var r=e(79),o=e(2);r(i,o),t.exports=i,i.prototype._navigationModules=[e(60),e(57)],i.prototype._modules=[].concat(i.prototype._modules,i.prototype._navigationModules)},{2:2,57:57,60:60,79:79}],2:[function(e,t,n){"use strict";function i(e){var t=/unparsable content <([^>]+)> detected([\s\S]*)$/,n=t.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}function r(e){return e+(p(e)?"px":"")}function o(e){e=s({},v,e),this.moddle=this._createModdle(e),this.container=this._createContainer(e),a(this.container),this._init(this.container,this.moddle,e)}function a(e){var t=x.BPMNIO_LOGO,n='<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" style="position: absolute; bottom: 15px; right: 15px; z-index: 100"><img src="data:image/png;base64,'+t+'"></a>',i=l(n);e.appendChild(i),E.bind(i,"click",function(e){x.open(),e.preventDefault()})}var s=e(197),c=e(201),p=e(191),l=e(212),u=e(214),f=e(215),h=e(240),m=e(31),d=e(16),y=e(79),g=e(9),v={width:"100%",height:"100%",position:"relative"};y(o,m),t.exports=o,o.prototype.importXML=function(e,t){t=t||function(){};var n=this;e=this._emit("import.parse.start",{xml:e})||e,this.moddle.fromXML(e,"bpmn:Definitions",function(e,r,o){if(r=n._emit("import.parse.complete",{error:e,definitions:r,context:o})||r,e)return e=i(e),n._emit("import.done",{error:e}),t(e);var a=o.warnings;n.importDefinitions(r,function(e,i){var r=[].concat(a,i||[]);n._emit("import.done",{error:e,warnings:r}),t(e,r)})})},o.prototype.saveXML=function(e,t){t||(t=e,e={});var n=this.definitions;if(!n)return t(new Error("no definitions loaded"));this.moddle.toXML(n,e,t)},o.prototype.saveSVG=function(e,t){t||(t=e,e={});var n=this.get("canvas"),i=n.getDefaultLayer(),r=u("defs",n._svg),o=h(i),a=r&&r.outerHTML||"",s=i.getBBox();t(null,'<?xml version="1.0" encoding="utf-8"?>\n<!-- created with bpmn-js / http://bpmn.io -->\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+s.width+'" height="'+s.height+'" viewBox="'+s.x+" "+s.y+" "+s.width+" "+s.height+'" version="1.1">'+a+o+"</svg>")},o.prototype.importDefinitions=function(e,t){try{this.definitions&&this.clear(),this.definitions=e,g.importBpmnDiagram(this,e,t)}catch(e){t(e)}},o.prototype.getModules=function(){return this._modules},o.prototype.destroy=function(){m.prototype.destroy.call(this),f(this.container)},o.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},o.prototype.off=function(e,t){this.get("eventBus").off(e,t)},o.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=u(e));var t=this._container;e.appendChild(t),this._emit("attach",{})},o.prototype.detach=function(){var e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},o.prototype._init=function(e,t,n){this._container=e;var i=n.modules||this.getModules(),r=n.additionalModules||[],o=[{bpmnjs:["value",this],moddle:["value",t]}],a=[].concat(o,i,r),p=s(c(n,"additionalModules"),{canvas:s({},n.canvas,{container:e}),modules:a});m.call(this,p),n&&n.container&&this.attachTo(n.container)},o.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},o.prototype._createContainer=function(e){var t=l('<div class="bjs-container"></div>');return s(t.style,{width:r(e.width),height:r(e.height),position:e.position}),t},o.prototype._createModdle=function(e){var t=s({},this._moddleExtensions,e.moddleExtensions);return new d(t)},o.prototype._modules=[e(3),e(53),e(52),e(48)],o.prototype._moddleExtensions={};var x=e(15),E=e(213)},{15:15,16:16,191:191,197:197,201:201,212:212,213:213,214:214,215:215,240:240,3:3,31:31,48:48,52:52,53:53,79:79,9:9}],3:[function(e,t,n){t.exports={__depends__:[e(6),e(11)]}},{11:11,6:6}],4:[function(e,t,n){"use strict";function i(e,t,n,i,p){function l(e,t){var n=g({fill:"black",strokeWidth:1,strokeLinecap:"round",strokeDasharray:"none"},t.attrs),r=t.ref||{x:0,y:0},o=t.scale||1;"none"===n.strokeDasharray&&(n.strokeDasharray=[1e4,1]);var a=P("marker");D(t.element,n),M(a,t.element),D(a,{id:e,viewBox:"0 0 20 20",refX:r.x,refY:r.y,markerWidth:20*o,markerHeight:20*o,orient:"auto"});var s=N("defs",i._svg);s||(s=P("defs"),M(i._svg,s)),M(s,a),X[e]=a}function u(e,t,n){var i=e+"-"+t+"-"+n;return X[i]||f(e,t,n),"url(#"+i+")"}function f(e,t,n){var i=e+"-"+t+"-"+n;if("sequenceflow-end"===e){var r=P("path");D(r,{d:"M 1 5 L 11 10 L 1 15 Z"}),l(i,{element:r,ref:{x:11,y:10},scale:.5,attrs:{fill:n,stroke:n}})}if("messageflow-start"===e){var o=P("circle");D(o,{cx:6,cy:6,r:3.5}),l(i,{element:o,attrs:{fill:t,stroke:n},ref:{x:6,y:6}})}if("messageflow-end"===e){var a=P("path");D(a,{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z"}),l(i,{element:a,attrs:{fill:t,stroke:n,strokeLinecap:"butt"},ref:{x:8.5,y:5}})}if("association-start"===e){var s=P("path");D(s,{d:"M 11 5 L 1 10 L 11 15"}),l(i,{element:s,attrs:{fill:"none",stroke:n,strokeWidth:1.5},ref:{x:1,y:10},scale:.5})}if("association-end"===e){var c=P("path");D(c,{d:"M 1 5 L 11 10 L 1 15"}),l(i,{element:c,attrs:{fill:"none",stroke:n,strokeWidth:1.5},ref:{x:12,y:10},scale:.5})}if("conditional-flow-marker"===e){var p=P("path");D(p,{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z"}),l(i,{element:p,attrs:{fill:t,stroke:n},ref:{x:-1,y:10},scale:.5})}if("conditional-default-flow-marker"===e){var u=P("path");D(u,{d:"M 6 4 L 10 16"}),l(i,{element:u,attrs:{stroke:n},ref:{x:0,y:10},scale:.5})}}function d(e,t,n,i,r){y(i)&&(r=i,i=0),i=i||0,r=Q(r,{stroke:"black",strokeWidth:2,fill:"white"});var o=t/2,a=n/2,s=P("circle");return D(s,{cx:o,cy:a,r:Math.round((t+n)/4-i)}),D(s,r),M(e,s),s}function x(e,t,n,i,r,o){y(r)&&(o=r,r=0),r=r||0,o=Q(o,{stroke:"black",strokeWidth:2,fill:"white"});var a=P("rect");return D(a,{x:r,y:r,width:t-2*r,height:n-2*r,rx:i,ry:i}),D(a,o),M(e,a),a}function E(e,t,n,i){var r=t/2,o=n/2,a=[{x:r,y:0},{x:t,y:o},{x:r,y:n},{x:0,y:o}],s=a.map(function(e){return e.x+","+e.y}).join(" ");i=Q(i,{stroke:"black",strokeWidth:2,fill:"white"});var c=P("polygon");return D(c,{points:s}),D(c,i),M(e,c),c}function A(e,t,n){n=Q(n,["no-fill"],{stroke:"black",strokeWidth:2,fill:"none"});var i=R(t,n);return M(e,i),i}function T(e,t,n){n=Q(n,["no-fill"],{strokeWidth:2,stroke:"black"});var i=P("path");return D(i,{d:t}),D(i,n),M(e,i),i}function S(e,t,n,i){return T(t,n,g({"data-marker":e},i))}function C(e){return function(t,n){return Z[e](t,n)}}function V(e){return Z[e]}function W(e,t){var n=c(e),i=o(n);return r(n,"bpmn:MessageEventDefinition")?V("bpmn:MessageEventDefinition")(t,e,i):r(n,"bpmn:TimerEventDefinition")?V("bpmn:TimerEventDefinition")(t,e,i):r(n,"bpmn:ConditionalEventDefinition")?V("bpmn:ConditionalEventDefinition")(t,e):r(n,"bpmn:SignalEventDefinition")?V("bpmn:SignalEventDefinition")(t,e,i):r(n,"bpmn:CancelEventDefinition")&&r(n,"bpmn:TerminateEventDefinition",{parallelMultiple:!1})?V("bpmn:MultipleEventDefinition")(t,e,i):r(n,"bpmn:CancelEventDefinition")&&r(n,"bpmn:TerminateEventDefinition",{parallelMultiple:!0})?V("bpmn:ParallelMultipleEventDefinition")(t,e,i):r(n,"bpmn:EscalationEventDefinition")?V("bpmn:EscalationEventDefinition")(t,e,i):r(n,"bpmn:LinkEventDefinition")?V("bpmn:LinkEventDefinition")(t,e,i):r(n,"bpmn:ErrorEventDefinition")?V("bpmn:ErrorEventDefinition")(t,e,i):r(n,"bpmn:CancelEventDefinition")?V("bpmn:CancelEventDefinition")(t,e,i):r(n,"bpmn:CompensateEventDefinition")?V("bpmn:CompensateEventDefinition")(t,e,i):r(n,"bpmn:TerminateEventDefinition")?V("bpmn:TerminateEventDefinition")(t,e,i):null}function G(e,t,n){var i=q.createText(t||"",n);return O(i).add("djs-label"),M(e,i),i}function U(e,t,n){return G(e,c(t).name,{box:t,align:n,padding:5,style:{fill:m(t)}})}function z(e,t){var n=c(t),i={width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y};return G(e,n.name,{box:i,fitBox:!0,style:{fontSize:"11px"}})}function Y(e,t,n){var i=G(e,t,{box:{height:30,width:n.height},align:"center-middle",style:{fill:m(n)}}),r=-1*n.height;I(i,0,-r,270)}function H(e){for(var t=e.waypoints,n="m  "+t[0].x+","+t[0].y,i=1;i<t.length;i++)n+="L"+t[i].x+","+t[i].y+" ";return n}function $(e,t,n){var i,r=c(t),o=n&&n.indexOf("SubProcessMarker")!==-1;i=o?{seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{seq:-3,parallel:-6,compensation:-27,loop:0,adhoc:10},v(n,function(n){V(n)(e,t,i)}),r.isForCompensation&&V("CompensationMarker")(e,t,i),"bpmn:AdHocSubProcess"===r.$type&&V("AdhocMarker")(e,t,i);var a=r.loopCharacteristics,s=a&&a.isSequential;a&&(void 0===s&&V("LoopMarker")(e,t,i),s===!1&&V("ParallelMarker")(e,t,i),s===!0&&V("SequentialMarker")(e,t,i))}function K(e,t){var i=(t.height-16)/t.height;T(e,n.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.451,my:i}}),{strokeWidth:2})}b.call(this,e,p);var q=new w({style:j,size:{width:100}}),X={},Q=t.computeStyle,Z=this.handlers={"bpmn:Event":function(e,t,n){return d(e,t.width,t.height,n)},"bpmn:StartEvent":function(e,t){var n={fill:h(t),stroke:m(t)};c(t).isInterrupting||(n={strokeDasharray:"6",strokeLinecap:"round"});var i=V("bpmn:Event")(e,t,n);return W(t,e),i},"bpmn:MessageEventDefinition":function(e,t,i){return T(e,n.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.235,my:.315}}),{strokeWidth:1,fill:i?m(t):h(t),stroke:i?h(t):m(t)})},"bpmn:TimerEventDefinition":function(e,t){var i=d(e,t.width,t.height,.2*t.height,{strokeWidth:2,fill:h(t),stroke:m(t)});T(e,n.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{strokeWidth:2,strokeLinecap:"square",stroke:m(t)});for(var r=0;r<12;r++){var o=n.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),a=t.width/2;T(e,o,{strokeWidth:1,strokeLinecap:"square",transform:"rotate("+30*r+","+t.height/2+","+a+")",stroke:m(t)})}return i},"bpmn:EscalationEventDefinition":function(e,t,i){return T(e,n.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:i?m(t):"none",stroke:m(t)})},"bpmn:ConditionalEventDefinition":function(e,t){return T(e,n.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.222}}),{strokeWidth:1,stroke:m(t)})},"bpmn:LinkEventDefinition":function(e,t,i){return T(e,n.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.57,my:.263}}),{strokeWidth:1,fill:i?m(t):"none",stroke:m(t)})},"bpmn:ErrorEventDefinition":function(e,t,i){return T(e,n.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.2,my:.722}}),{strokeWidth:1,fill:i?m(t):"none",stroke:m(t)})},"bpmn:CancelEventDefinition":function(e,t,i){var r=n.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.638,my:-.055}}),o=i?"black":"none",a=T(e,r,{strokeWidth:1,fill:o});return k(a,45),a},"bpmn:CompensateEventDefinition":function(e,t,i){return T(e,n.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.22,my:.5}}),{strokeWidth:1,fill:i?m(t):"none",stroke:m(t)})},"bpmn:SignalEventDefinition":function(e,t,i){return T(e,n.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:i?m(t):"none",stroke:m(t)})},"bpmn:MultipleEventDefinition":function(e,t,i){return T(e,n.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.222,my:.36}}),{strokeWidth:1,fill:i?"black":"none"})},"bpmn:ParallelMultipleEventDefinition":function(e,t){return T(e,n.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:t.width,containerHeight:t.height,position:{mx:.458,my:.194}}),{strokeWidth:1,fill:m(t),stroke:m(t)})},"bpmn:EndEvent":function(e,t){var n=V("bpmn:Event")(e,t,{strokeWidth:4,fill:h(t),stroke:m(t)});return W(t,e),n},"bpmn:TerminateEventDefinition":function(e,t){return d(e,t.width,t.height,8,{strokeWidth:4,fill:m(t),stroke:m(t)})},"bpmn:IntermediateEvent":function(e,t){var n=V("bpmn:Event")(e,t,{strokeWidth:1,fill:h(t),stroke:m(t)});return d(e,t.width,t.height,F,{strokeWidth:1,fill:h(t,"none"),stroke:m(t)}),W(t,e),n},"bpmn:IntermediateCatchEvent":C("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":C("bpmn:IntermediateEvent"),"bpmn:Activity":function(e,t,n){return x(e,t.width,t.height,L,n)},"bpmn:Task":function(e,t){var n={fill:h(t),stroke:m(t)},i=V("bpmn:Activity")(e,t,n);return U(e,t,"center-middle"),$(e,t),i},"bpmn:ServiceTask":function(e,t){var i=V("bpmn:Task")(e,t);return T(e,n.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{strokeWidth:1,fill:h(t),stroke:m(t)}),T(e,n.getScaledPath("TASK_TYPE_SERVICE_FILL",{abspos:{x:17.2,y:18}}),{strokeWidth:0,fill:h(t)}),T(e,n.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{strokeWidth:1,fill:h(t),stroke:m(t)}),i},"bpmn:UserTask":function(e,t){var i=V("bpmn:Task")(e,t);return T(e,n.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:h(t),stroke:m(t)}),T(e,n.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:h(t),stroke:m(t)}),T(e,n.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{strokeWidth:.5,fill:m(t),stroke:m(t)}),i},"bpmn:ManualTask":function(e,t){var i=V("bpmn:Task")(e,t);return T(e,n.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{strokeWidth:.5,fill:h(t),stroke:m(t)}),i},"bpmn:SendTask":function(e,t){var i=V("bpmn:Task")(e,t);return T(e,n.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{strokeWidth:1,fill:m(t),stroke:h(t)}),i},"bpmn:ReceiveTask":function(e,t){var i,r=c(t),o=V("bpmn:Task")(e,t);return r.instantiate?(d(e,28,28,4.4,{strokeWidth:1}),i=n.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):i=n.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),T(e,i,{strokeWidth:1,fill:h(t),stroke:m(t)}),o},"bpmn:ScriptTask":function(e,t){var i=V("bpmn:Task")(e,t);return T(e,n.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{strokeWidth:1,stroke:m(t)}),i},"bpmn:BusinessRuleTask":function(e,t){var i=V("bpmn:Task")(e,t),r=n.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}}),o=T(e,r);D(o,{strokeWidth:1,fill:h(t,"#aaaaaa"),stroke:m(t)});var a=n.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}}),s=T(e,a);return D(s,{strokeWidth:1,stroke:m(t)}),i},"bpmn:SubProcess":function(e,t,n){n=g({fillOpacity:.95,fill:h(t),stroke:m(t)},n);var i=V("bpmn:Activity")(e,t,n),r=_.isExpanded(t);return _.isEventSubProcess(t)&&D(i,{strokeDasharray:"1,2"}),U(e,t,r?"center-top":"center-middle"),r?$(e,t):$(e,t,["SubProcessMarker"]),i},"bpmn:AdHocSubProcess":function(e,t){return V("bpmn:SubProcess")(e,t)},"bpmn:Transaction":function(e,n){var i=V("bpmn:SubProcess")(e,n),r=t.style(["no-fill","no-events"],{stroke:m(n)});return x(e,n.width,n.height,L-2,F,r),i},"bpmn:CallActivity":function(e,t){return V("bpmn:SubProcess")(e,t,{strokeWidth:5})},"bpmn:Participant":function(e,t){var n={fillOpacity:.95,fill:h(t),stroke:m(t)},i=V("bpmn:Lane")(e,t,n);_.isExpanded(t)?(A(e,[{x:30,y:0},{x:30,y:t.height}],{stroke:m(t)}),Y(e,c(t).name,t)):G(e,c(t).name,{box:t,align:"center-middle",style:{fill:m(t)}});return!!c(t).participantMultiplicity&&V("ParticipantMultiplicityMarker")(e,t),i},"bpmn:Lane":function(e,t,n){var i=x(e,t.width,t.height,0,g({fill:h(t),stroke:m(t)},n)),r=c(t);if("bpmn:Lane"===r.$type){Y(e,r.name,t)}return i},"bpmn:InclusiveGateway":function(e,t){var n={fill:h(t),stroke:m(t)},i=E(e,t.width,t.height,n);return d(e,t.width,t.height,.24*t.height,{strokeWidth:2.5,fill:h(t),stroke:m(t)}),i},"bpmn:ExclusiveGateway":function(e,t){var i={fill:h(t),stroke:m(t)},r=E(e,t.width,t.height,i),o=n.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return s(t).isMarkerVisible&&T(e,o,{strokeWidth:1,fill:m(t),stroke:m(t)}),r},"bpmn:ComplexGateway":function(e,t){var i={fill:h(t),stroke:m(t)},r=E(e,t.width,t.height,i);return T(e,n.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{strokeWidth:1,fill:m(t),stroke:m(t)}),r},"bpmn:ParallelGateway":function(e,t){var i={fill:h(t),stroke:m(t)},r=E(e,t.width,t.height,i);return T(e,n.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{strokeWidth:1,fill:m(t),stroke:m(t)}),r},"bpmn:EventBasedGateway":function(e,t){var i=c(t),r={fill:h(t),stroke:m(t)},o=E(e,t.width,t.height,r);d(e,t.width,t.height,.2*t.height,{strokeWidth:1,fill:"none",stroke:m(t)});var a=i.eventGatewayType,s=!!i.instantiate;if("Parallel"===a){var p=n.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),l=T(e,p);D(l,{strokeWidth:1,fill:"none"})}else if("Exclusive"===a){if(!s){var u=d(e,t.width,t.height,.26*t.height);D(u,{strokeWidth:1,fill:"none",stroke:m(t)})}!function(){var i=n.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:t.width,containerHeight:t.height,position:{mx:.36,my:.44}}),r={strokeWidth:2,fill:h(t,"none"),stroke:m(t)};T(e,i,r)}()}return o},"bpmn:Gateway":function(e,t){return E(e,t.width,t.height)},"bpmn:SequenceFlow":function(e,t){var n=H(t),i=h(t),r=m(t),o={strokeLinejoin:"round",markerEnd:u("sequenceflow-end",i,r),stroke:m(t)},a=T(e,n,o),s=c(t),p=t.source.businessObject;return s.conditionExpression&&p.$instanceOf("bpmn:Activity")&&D(a,{markerStart:u("conditional-flow-marker",i,r)}),p.default&&(p.$instanceOf("bpmn:Gateway")||p.$instanceOf("bpmn:Activity"))&&p.default===s&&D(a,{markerStart:u("conditional-default-flow-marker",i,r)}),a},"bpmn:Association":function(e,t,n){var i=c(t),r=h(t),o=m(t);return n=g({strokeDasharray:"0.5, 5",strokeLinecap:"round",strokeLinejoin:"round",stroke:m(t)},n||{}),"One"!==i.associationDirection&&"Both"!==i.associationDirection||(n.markerEnd=u("association-end",r,o)),"Both"===i.associationDirection&&(n.markerStart=u("association-start",r,o)),A(e,t.waypoints,n)},"bpmn:DataInputAssociation":function(e,t){var n=h(t),i=m(t);return V("bpmn:Association")(e,t,{markerEnd:u("association-end",n,i)})},"bpmn:DataOutputAssociation":function(e,t){var n=h(t),i=m(t);return V("bpmn:Association")(e,t,{markerEnd:u("association-end",n,i)})},"bpmn:MessageFlow":function(e,t){var i=c(t),r=s(t),o=h(t),a=m(t),p=H(t),l={markerEnd:u("messageflow-end",o,a),markerStart:u("messageflow-start",o,a),strokeDasharray:"10, 12",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5px",stroke:m(t)},f=T(e,p,l);if(i.messageRef){var d=f.getPointAtLength(f.getTotalLength()/2),y=n.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:d.x,y:d.y}}),g={strokeWidth:1};"initiating"===r.messageVisibleKind?(g.fill="white",g.stroke="black"):(g.fill="#888",g.stroke="white"),T(e,y,g)}return f},"bpmn:DataObject":function(e,t){var i=n.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),r=T(e,i,{fill:h(t),stroke:m(t)});return a(c(t))&&K(e,t),r},"bpmn:DataObjectReference":C("bpmn:DataObject"),"bpmn:DataInput":function(e,t){var i=n.getRawPath("DATA_ARROW"),r=V("bpmn:DataObject")(e,t);return T(e,i,{strokeWidth:1}),r},"bpmn:DataOutput":function(e,t){var i=n.getRawPath("DATA_ARROW"),r=V("bpmn:DataObject")(e,t);return T(e,i,{strokeWidth:1,fill:"black"}),r},"bpmn:DataStoreReference":function(e,t){return T(e,n.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{strokeWidth:2,fill:h(t),stroke:m(t)})},"bpmn:BoundaryEvent":function(e,t){var n=c(t),i=n.cancelActivity,r={strokeWidth:1,fill:h(t),stroke:m(t)};i||(r.strokeDasharray="6",r.strokeLinecap="round");var o=V("bpmn:Event")(e,t,r);return d(e,t.width,t.height,F,g(r,{fill:"none"})),W(t,e),o},"bpmn:Group":function(e,t){return x(e,t.width,t.height,L,{strokeWidth:1,strokeDasharray:"8,3,1,3",fill:"none",pointerEvents:"none"})},label:function(e,t){return z(e,t)},"bpmn:TextAnnotation":function(e,t){var i={fill:"none",stroke:"none"},r=x(e,t.width,t.height,0,0,i);return T(e,n.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:0}}),{stroke:m(t)}),G(e,c(t).text||"",{box:t,align:"left-middle",padding:5}),r},ParticipantMultiplicityMarker:function(e,t){S("participant-multiplicity",e,n.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:t.width/2/t.width,my:(t.height-15)/t.height}}))},SubProcessMarker:function(e,t){var i=x(e,14,14,0,{strokeWidth:1,fill:h(t),stroke:m(t)});B(i,t.width/2-7.5,t.height-20),S("sub-process",e,n.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2-7.5)/t.width,my:(t.height-20)/t.height}}),{fill:h(t),stroke:m(t)})},ParallelMarker:function(e,t,i){S("parallel",e,n.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+i.parallel)/t.width,my:(t.height-20)/t.height}}))},SequentialMarker:function(e,t,i){S("sequential",e,n.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+i.seq)/t.width,my:(t.height-19)/t.height}}))},CompensationMarker:function(e,t,i){S("compensation",e,n.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+i.compensation)/t.width,my:(t.height-13)/t.height}}),{strokeWidth:1})},LoopMarker:function(e,t,i){S("loop",e,n.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+i.loop)/t.width,my:(t.height-7)/t.height}}),{strokeWidth:1,fill:"none",strokeLinecap:"round",strokeMiterlimit:.5})},AdhocMarker:function(e,t,i){S("adhoc",e,n.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+i.adhoc)/t.width,my:(t.height-15)/t.height}}),{strokeWidth:1,fill:"black"})}}}function r(e,t,n){function i(e,t){return x(t,function(t,n){return e[n]==t})}return E(e.eventDefinitions,function(r){return r.$type===t&&i(e,n)})}function o(e){return"bpmn:IntermediateThrowEvent"===e.$type||"bpmn:EndEvent"===e.$type}function a(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection}function s(e){return e.businessObject.di}function c(e){return e.businessObject}function p(e){var t=e.x+e.width/2,n=e.y+e.height/2,i=e.width/2,r=[["M",t,n],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]];return C(r)}function l(e,t){var n=e.x,i=e.y,r=e.width,o=e.height,a=[["M",n+t,i],["l",r-2*t,0],["a",t,t,0,0,1,t,t],["l",0,o-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-r,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-o],["a",t,t,0,0,1,t,-t],["z"]];return C(a)}function u(e){var t=e.width,n=e.height,i=e.x,r=e.y,o=t/2,a=n/2,s=[["M",i+o,r],["l",o,a],["l",-o,a],["l",-o,-a],["z"]];return C(s)}function f(e){var t=e.x,n=e.y,i=e.width,r=e.height,o=[["M",t,n],["l",i,0],["l",0,r],["l",-i,0],["z"]];return C(o)}function h(e,t){return A(e).di.get("fill")||t||"white"}function m(e,t){return A(e).di.get("stroke")||t||"black"}var d=e(79),y=e(192),g=e(197),v=e(85),x=e(82),E=e(89),b=e(39),w=e(73),_=e(12),A=e(14).getBusinessObject,T=e(14).is,S=e(71),C=S.componentsToPath,R=S.createLine,N=e(214),M=e(233),D=e(235),P=e(238),O=e(236),k=e(72).rotate,I=e(72).transform,B=e(72).translate,L=10,F=3,j={fontFamily:"Arial, sans-serif",fontSize:12};d(i,b),i.$inject=["eventBus","styles","pathMap","canvas"],t.exports=i,i.prototype.canRender=function(e){return T(e,"bpmn:BaseElement")},i.prototype.drawShape=function(e,t){var n=t.type;return(0,this.handlers[n])(e,t)},i.prototype.drawConnection=function(e,t){var n=t.type;return(0,this.handlers[n])(e,t)},i.prototype.getShapePath=function(e){return T(e,"bpmn:Event")?p(e):T(e,"bpmn:Activity")?l(e,L):T(e,"bpmn:Gateway")?u(e):f(e)}},{12:12,14:14,192:192,197:197,214:214,233:233,235:235,236:236,238:238,39:39,71:71,72:72,73:73,79:79,82:82,85:85,89:89}],5:[function(e,t,n){"use strict";function i(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0  -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m {mx}, {my} m  0 15  l 0 -15 m  4 15  l 0 -15 m  4 15  l 0 -15 ",height:61,width:51,heightElements:[12],widthElements:[1,6,12,15]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m  {mx},{my} l  0,{e.y2} c  {e.x0},{e.y1} {e.x1},{e.y1}  {e.x2},0 l  0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c  {e.x0},{e.y1} {e.x1},{e.y1}  {e.x2},0 m  -{e.x2},{e.y0}c  {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m  -{e.x2},{e.y0}c  {e.x0},{e.y1} {e.x1},{e.y1}  {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{
  d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,i,r=this.pathMap[e];t.abspos?(n=t.abspos.x,i=t.abspos.y):(n=t.containerWidth*t.position.mx,i=t.containerHeight*t.position.my);var a={};if(t.position){for(var s=t.containerHeight/r.height*t.yScaleFactor,c=t.containerWidth/r.width*t.xScaleFactor,p=0;p<r.heightElements.length;p++)a["y"+p]=r.heightElements[p]*s;for(var l=0;l<r.widthElements.length;l++)a["x"+l]=r.widthElements[l]*c}return o(r.d,{mx:n,my:i,e:a})}}function r(e,t,n){var i=n;return t.replace(s,function(e,t,n,r,o){t=t||r,i&&(t in i&&(i=i[t]),"function"==typeof i&&o&&(i=i()))}),i=(null==i||i==n?e:i)+""}function o(e,t){return String(e).replace(a,function(e,n){return r(e,n,t)})}t.exports=i;var a=/\{([^\}]+)\}/g,s=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g},{}],6:[function(e,t,n){t.exports={__init__:["bpmnRenderer"],bpmnRenderer:["type",e(4)],pathMap:["type",e(5)]}},{4:4,5:5}],7:[function(e,t,n){"use strict";function i(e,t){return c({id:e.id,type:e.$type,businessObject:e},t)}function r(e){return p(e,function(e){return{x:e.x,y:e.y}})}function o(e,t,n,i){return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn",{element:y(n),referenced:y(t),property:i}))}function a(e,t,n,i,r){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._translate=r,this._textUtil=new u}function s(e,t,n){var i=n.getDimensions(t,{box:{width:90,height:30,x:e.width/2+e.x,y:e.height/2+e.y},style:g});return{x:Math.round(e.x+e.width/2-i.width/2),y:Math.round(e.y),width:Math.ceil(i.width),height:Math.ceil(i.height)}}var c=e(197),p=e(87),l=e(13),u=e(73),f=e(14).is,h=l.hasExternalLabel,m=l.getExternalLabelBounds,d=e(12).isExpanded,y=e(10).elementToString;a.$inject=["eventBus","canvas","elementFactory","elementRegistry","translate"],t.exports=a,a.prototype.add=function(e,t){var n,o,a=e.di,s=this._translate;if(f(a,"bpmndi:BPMNPlane"))n=this._elementFactory.createRoot(i(e)),this._canvas.setRootElement(n);else if(f(a,"bpmndi:BPMNShape")){var c=!d(e);o=t&&(t.hidden||t.collapsed);var p=e.di.bounds;n=this._elementFactory.createShape(i(e,{collapsed:c,hidden:o,x:Math.round(p.x),y:Math.round(p.y),width:Math.round(p.width),height:Math.round(p.height)})),f(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,n),this._canvas.addShape(n,t)}else{if(!f(a,"bpmndi:BPMNEdge"))throw new Error(s("unknown di {di} for element {semantic}",{di:y(a),semantic:y(e)}));var l=this._getSource(e),u=this._getTarget(e);o=t&&(t.hidden||t.collapsed),n=this._elementFactory.createConnection(i(e,{hidden:o,source:l,target:u,waypoints:r(e.di.waypoint)})),f(e,"bpmn:DataAssociation")&&(t=null),this._canvas.addConnection(n,t)}return h(e)&&this.addLabel(e,n),this._eventBus.fire("bpmnElement.added",{element:n}),n},a.prototype._attachBoundary=function(e,t){var n=this._translate,i=e.attachedToRef;if(!i)throw new Error(n("missing {semantic}#attachedToRef",{semantic:y(e)}));var r=this._elementRegistry.get(i.id),a=r&&r.attachers;if(!r)throw o(n,e,i,"attachedToRef");t.host=r,a||(r.attachers=a=[]),a.indexOf(t)===-1&&a.push(t)},a.prototype.addLabel=function(e,t){var n,r,o;return n=m(e,t),r=e.name,r&&(n=s(n,r,this._textUtil)),o=this._elementFactory.createLabel(i(e,{id:e.id+"_label",labelTarget:t,type:"label",hidden:t.hidden||!e.name,x:Math.round(n.x),y:Math.round(n.y),width:Math.round(n.width),height:Math.round(n.height)})),this._canvas.addShape(o,t.parent)},a.prototype._getEnd=function(e,t){var n,i,r=e.$type,a=this._translate;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===r||"target"===t&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?o(a,e,i,t+"Ref"):new Error(a("{semantic}#{side} Ref not specified",{semantic:y(e),side:t}))},a.prototype._getSource=function(e){return this._getEnd(e,"source")},a.prototype._getTarget=function(e){return this._getEnd(e,"target")},a.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};var g={fontFamily:"Arial, sans-serif",fontSize:"11px"}},{10:10,12:12,13:13,14:14,197:197,73:73,87:87}],8:[function(e,t,n){"use strict";function i(e,t){return e.$instanceOf(t)}function r(e){return s(e.rootElements,function(e){return i(e,"bpmn:Process")||i(e,"bpmn:Collaboration")})}function o(e,t){function n(e,t){return function(n){e(n,t)}}function o(e){z[e.id]=e}function s(e){return z[e.id]}function p(n,i){if(n.gfx)throw new Error(t("already rendered {element}",{element:l(n)}));return e.element(n,i)}function f(t,n){return e.root(t,n)}function h(e,n){try{var i=e.di&&p(e,n);return o(e),i}catch(n){m(n.message,{element:e,error:n}),console.error(t("failed to import {element}",{element:l(e)})),console.error(n)}}function m(t,n){e.error(t,n)}function d(e){var n=e.bpmnElement;n?n.di?m(t("multiple DI elements defined for {element}",{element:l(n)}),{element:n}):(u.bind(n,"di"),n.di=e):m(t("no bpmnElement referenced in {element}",{element:l(e)}),{element:e})}function y(e){g(e.plane)}function g(e){d(e),c(e.planeElement,v)}function v(e){d(e)}function x(e,n){var o=e.diagrams;if(n&&o.indexOf(n)===-1)throw new Error(t("diagram not part of bpmn:Definitions"));if(!n&&o&&o.length&&(n=o[0]),!n)throw new Error(t("no diagram to display"));y(n);var a=n.plane;if(!a)throw new Error(t("no plane for {element}",{element:l(n)}));var s=a.bpmnElement;if(!s){if(!(s=r(e)))throw new Error(t("no process or collaboration to display"));m(t("correcting missing bpmnElement on {plane} to {rootElement}",{plane:l(a),rootElement:l(s)})),a.bpmnElement=s,d(a)}var c=f(s,a);if(i(s,"bpmn:Process"))b(s,c);else{if(!i(s,"bpmn:Collaboration"))throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}",{plane:l(a),rootElement:l(s)}));G(s),w(e.rootElements)}E(Y)}function E(e){c(e,function(e){e()})}function b(e,t){j(e,t),M(e.ioSpecification,t),N(e.artifacts,t),o(e)}function w(e){a(e,function(e){return!s(e)&&i(e,"bpmn:Process")&&e.laneSets}).forEach(n(b))}function _(e,t){h(e,t)}function A(e,t){c(e,n(_,t))}function T(e,t){h(e,t)}function S(e,t){h(e,t)}function C(e,t){h(e,t)}function R(e,t){h(e,t)}function N(e,t){c(e,function(e){i(e,"bpmn:Association")?Y.push(function(){R(e,t)}):R(e,t)})}function M(e,t){e&&(c(e.dataInputs,n(S,t)),c(e.dataOutputs,n(C,t)))}function D(e,t){j(e,t),N(e.artifacts,t)}function P(e,t){var r=h(e,t);i(e,"bpmn:SubProcess")&&D(e,r||t),i(e,"bpmn:Activity")&&M(e.ioSpecification,t),Y.push(function(){c(e.dataInputAssociations,n(T,t)),c(e.dataOutputAssociations,n(T,t))})}function O(e,t){h(e,t)}function k(e,t){h(e,t)}function I(e,t){h(e,t)}function B(e,t){var n=h(e,t);e.childLaneSet&&L(e.childLaneSet,n||t),U(e)}function L(e,t){c(e.lanes,n(B,t))}function F(e,t){c(e,n(L,t))}function j(e,t){e.laneSets&&F(e.laneSets,t),V(e.flowElements,t)}function V(e,n){c(e,function(e){i(e,"bpmn:SequenceFlow")?Y.push(function(){O(e,n)}):i(e,"bpmn:BoundaryEvent")?Y.unshift(function(){I(e,n)}):i(e,"bpmn:FlowNode")?P(e,n):i(e,"bpmn:DataObject")||(i(e,"bpmn:DataStoreReference")?k(e,n):i(e,"bpmn:DataObjectReference")?k(e,n):m(t("unrecognized flowElement {element} in context {context}",{element:l(e),context:n?l(n.businessObject):"null"}),{element:e,context:n}))})}function W(e,t){var n=h(e,t),i=e.processRef;i&&b(i,n||t)}function G(e){c(e.participants,n(W)),N(e.artifacts),Y.push(function(){A(e.messageFlows)})}function U(e){c(e.flowNodeRef,function(t){var n=t.get("lanes");n&&n.push(e)})}var z={},Y=[];return{handleDefinitions:x}}var a=e(83),s=e(84),c=e(85),p=e(228),l=e(10).elementToString,u=new p({name:"bpmnElement",enumerable:!0},{name:"di"});t.exports=o},{10:10,228:228,83:83,84:84,85:85}],9:[function(e,t,n){"use strict";function i(e,t,n){var i,o=e.get("bpmnImporter"),a=e.get("eventBus"),s=e.get("translate"),c=[];a.fire("import.render.start",{definitions:t});try{!function(e){var t={root:function(e){return o.add(e)},element:function(e,t){return o.add(e,t)},error:function(e,t){c.push({message:e,context:t})}};new r(t,s).handleDefinitions(e)}(t)}catch(e){i=e}a.fire("import.render.complete",{error:i,warnings:c}),n(i,c)}var r=e(8);t.exports.importBpmnDiagram=i},{8:8}],10:[function(e,t,n){"use strict";t.exports.elementToString=function(e){return e?"<"+e.$type+(e.id?' id="'+e.id:"")+'" />':"<null>"}},{}],11:[function(e,t,n){t.exports={__depends__:[e(53)],bpmnImporter:["type",e(7)]}},{53:53,7:7}],12:[function(e,t,n){"use strict";function i(e,t){var n=o(e),i=!1;return n.eventDefinitions&&a(n.eventDefinitions,function(e){r(e,t)&&(i=!0)}),i}var r=e(14).is,o=e(14).getBusinessObject,a=e(85);t.exports.isExpanded=function(e){return!r(e,"bpmn:CallActivity")&&(r(e,"bpmn:SubProcess")?!!o(e).di.isExpanded:!r(e,"bpmn:Participant")||!!o(e).processRef)},t.exports.isInterrupting=function(e){return e&&o(e).isInterrupting!==!1},t.exports.isEventSubProcess=function(e){return e&&!!o(e).triggeredByEvent},t.exports.hasEventDefinition=i,t.exports.hasErrorEventDefinition=function(e){return i(e,"bpmn:ErrorEventDefinition")},t.exports.hasEscalationEventDefinition=function(e){return i(e,"bpmn:EscalationEventDefinition")},t.exports.hasCompensateEventDefinition=function(e){return i(e,"bpmn:CompensateEventDefinition")}},{14:14,85:85}],13:[function(e,t,n){"use strict";function i(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],o=r(e),a=Math.atan((i.y-n.y)/(i.x-n.x)),s=o.x,c=o.y;return Math.abs(a)<Math.PI/2?c-=p:s+=p,{x:s,y:c}}function r(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)];return{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2}}function o(e){return e.waypoints?i(e.waypoints):{x:e.x+e.width/2,y:e.y+e.height+c.height/2}}var a=e(197),s=e(14).is,c=t.exports.DEFAULT_LABEL_SIZE={width:90,height:20},p=t.exports.FLOW_LABEL_INDENT=15;t.exports.hasExternalLabel=function(e){return s(e,"bpmn:Event")||s(e,"bpmn:Gateway")||s(e,"bpmn:DataStoreReference")||s(e,"bpmn:DataObjectReference")||s(e,"bpmn:SequenceFlow")||s(e,"bpmn:MessageFlow")},t.exports.getFlowLabelPosition=i,t.exports.getWaypointsMid=r,t.exports.getExternalLabelMid=o,t.exports.getExternalLabelBounds=function(e,t){var n,i,r,s=e.di,p=s.label;return p&&p.bounds?(r=p.bounds,i={width:Math.max(c.width,r.width),height:r.height},n={x:r.x+r.width/2,y:r.y+r.height/2}):(n=o(t),i=c),a({x:n.x-i.width/2,y:n.y-i.height/2},i)}},{14:14,197:197}],14:[function(e,t,n){"use strict";function i(e,t){var n=r(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function r(e){return e&&e.businessObject||e}t.exports.is=i,t.exports.getBusinessObject=r},{}],15:[function(e,t,n){"use strict";function i(e){return e.join(";")}function r(){o||(o=a(f),s.bind(o,".backdrop","click",function(e){document.body.removeChild(o)})),document.body.appendChild(o)}var o,a=e(212),s=e(211),c=t.exports.BPMNIO_LOGO="iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRFiMte9PrwldFwfcZPqtqN0+zEyOe1XLgjvuKncsJAZ70y6fXh3vDT////UrQV////G2zN+AAAABB0Uk5T////////////////////AOAjXRkAAAHDSURBVHjavJZJkoUgDEBJmAX8979tM8u3E6x20VlYJfFFMoL4vBDxATxZcakIOJTWSmxvKWVIkJ8jHvlRv1F2LFrVISCZI+tCtQx+XfewgVTfyY3plPiQEAzI3zWy+kR6NBhFBYeBuscJLOUuA2WVLpCjVIaFzrNQZArxAZKUQm6gsj37L9Cb7dnIBUKxENaaMJQqMpDXvSL+ktxdGRm2IsKgJGGPg7atwUG5CcFUEuSv+CwQqizTrvDTNXdMU2bMiDWZd8d7QIySWVRsb2vBBioxOFt4OinPBapL+neAb5KL5IJ8szOza2/DYoipUCx+CjO0Bpsv0V6mktNZ+k8rlABlWG0FrOpKYVo8DT3dBeLEjUBAj7moDogVii7nSS9QzZnFcOVBp1g2PyBQ3Vr5aIapN91VJy33HTJLC1iX2FY6F8gRdaAeIEfVONgtFCzZTmoLEdOjBDfsIOA6128gw3eu1shAajdZNAORxuQDJN5A5PbEG6gNIu24QJD5iNyRMZIr6bsHbCtCU/OaOaSvgkUyDMdDa1BXGf5HJ1To+/Ym6mCKT02Y+/Sa126ZKyd3jxhzpc1r8zVL6YM1Qy/kR4ABAFJ6iQUnivhAAAAAAElFTkSuQmCC",p=i(["z-index: 1001","position: fixed","top: 0","left: 0","right: 0","bottom: 0"]),l=i(["width: 100%","height: 100%","background: rgba(0,0,0,0.2)"]),u=i(["position: absolute","left: 50%","top: 40%","margin: 0 -130px","width: 260px","padding: 10px","background: white","border: solid 1px #AAA","border-radius: 3px","font-family: Helvetica, Arial, sans-serif","font-size: 14px","line-height: 1.2em"]),f='<div class="bjs-powered-by-lightbox" style="'+p+'"><div class="backdrop" style="'+l+'"></div><div class="notice" style="'+u+'"><a href="http://bpmn.io" target="_blank" style="float: left; margin-right: 10px"><img src="data:image/png;base64,'+c+'"></a>Web-based tooling for BPMN, DMN and CMMN diagrams powered by <a href="http://bpmn.io" target="_blank">bpmn.io</a>.</div></div>';t.exports.open=r},{211:211,212:212}],16:[function(e,t,n){t.exports=e(18)},{18:18}],17:[function(e,t,n){"use strict";function i(e,t){s.call(this,e,t)}var r=e(194),o=e(189),a=e(197),s=e(219),c=e(217),p=e(218);i.prototype=Object.create(s.prototype),t.exports=i,i.prototype.fromXML=function(e,t,n,i){r(t)||(i=n,n=t,t="bpmn:Definitions"),o(n)&&(i=n,n={});var s=new c(a({model:this,lax:!0},n)),p=s.handler(t);s.fromXML(e,p,i)},i.prototype.toXML=function(e,t,n){o(t)&&(n=t,t={});var i=new p(t);try{var r=i.toXML(e);n(null,r)}catch(e){n(e)}}},{189:189,194:194,197:197,217:217,218:218,219:219}],18:[function(e,t,n){"use strict";var i=e(197),r=e(17),o={bpmn:e(20),bpmndi:e(21),dc:e(22),di:e(23),bioc:e(19)};t.exports=function(e,t){return new r(i({},o,e),t)}},{17:17,19:19,197:197,20:20,21:21,22:22,23:23}],19:[function(e,t,n){t.exports={name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],emumerations:[],associations:[]}},{}],20:[function(e,t,n){t.exports={name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",type:"String",isAttr:!0}]},{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",type:"String",isAttr:!0}]},{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",type:"LaneSet",isMany:!0,replaces:"FlowElementsContainer#laneSets"},{name:"flowElements",type:"FlowElement",isMany:!0,replaces:"FlowElementsContainer#flowElements"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean"},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isAttr:!0,isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"assignment",type:"Assignment",isMany:!0},{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRefs",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,
  isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",type:"String",isBody:!0}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",type:"String",isAttr:!0},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isVirtual:!0,isMany:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isVirtual:!0,isMany:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRefs",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["FlowElementsContainer","Collaboration"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isVirtual:!0,isMany:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"CallActivity",superClass:["Activity"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],emumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],prefix:"bpmn",xml:{tagAlias:"lowerCase",typePrefix:"t"}}},{}],21:[function(e,t,n){t.exports={name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],emumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[],prefix:"bpmndi"}},{}],22:[function(e,t,n){t.exports={name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],prefix:"dc",associations:[]}},{}],23:[function(e,t,n){t.exports={name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",type:"String",isAttr:!0,isId:!0},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isMany:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",type:"String",isAttr:!0,isId:!0},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isVirtual:!0,isMany:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isVirtual:!0,isMany:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isVirtual:!0,isMany:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",type:"String",isAttr:!0,isId:!0}]},{name:"Extension",properties:[{name:"values",type:"Element",isMany:!0}]}],associations:[],prefix:"di",xml:{tagAlias:"lowerCase"}}},{}],24:[function(e,t,n){function i(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}try{var r=e(28)}catch(t){var r=e(28)}var o=Object.prototype.toString;t.exports=function(e){return new i(e)},i.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~r(t,e)||t.push(e),this.el.className=t.join(" "),this},i.prototype.remove=function(e){if("[object RegExp]"==o.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},i.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},i.prototype.toggle=function(e,t){return this.list?(void 0!==t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(void 0!==t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},i.prototype.array=function(){var e=this.el.getAttribute("class")||"",t=e.replace(/^\s+|\s+$/g,""),n=t.split(/\s+/);return""===n[0]&&n.shift(),n},i.prototype.has=i.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)}},{28:28}],25:[function(e,t,n){var i=e(29);t.exports=function(e,t,n,r){for(e=n?{parentNode:e}:e,r=r||document;(e=e.parentNode)&&e!==document;){if(i(e,t))return e;if(e===r)return}}},{29:29}],26:[function(e,t,n){try{var i=e(25)}catch(t){var i=e(25)}try{var r=e(27)}catch(t){var r=e(27)}n.bind=function(e,t,n,o,a){return r.bind(e,n,function(n){var r=n.target||n.srcElement;n.delegateTarget=i(r,t,!0,e),n.delegateTarget&&o.call(e,n)},a)},n.unbind=function(e,t,n,i){r.unbind(e,t,n,i)}},{25:25,27:27}],27:[function(e,t,n){var i=window.addEventListener?"addEventListener":"attachEvent",r=window.removeEventListener?"removeEventListener":"detachEvent",o="addEventListener"!==i?"on":"";n.bind=function(e,t,n,r){return e[i](o+t,n,r||!1),n},n.unbind=function(e,t,n,i){return e[r](o+t,n,i||!1),n}},{}],28:[function(e,t,n){t.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},{}],29:[function(e,t,n){function i(e,t){if(!e||1!==e.nodeType)return!1;if(a)return a.call(e,t);for(var n=r.all(t,e.parentNode),i=0;i<n.length;++i)if(n[i]==e)return!0;return!1}try{var r=e(30)}catch(t){var r=e(30)}var o=Element.prototype,a=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector;t.exports=i},{30:30}],30:[function(e,t,n){function i(e,t){return t.querySelector(e)}n=t.exports=function(e,t){return t=t||document,i(e,t)},n.all=function(e,t){return t=t||document,t.querySelectorAll(e)},n.engine=function(e){if(!e.one)throw new Error(".one callback required");if(!e.all)throw new Error(".all callback required");return i=e.one,n.all=e.all,n}},{}],31:[function(e,t,n){t.exports=e(32)},{32:32}],32:[function(e,t,n){"use strict";function i(e){function t(e){return r.indexOf(e)>=0}function n(e){r.push(e)}function i(e){t(e)||((e.__depends__||[]).forEach(i),t(e)||(n(e),(e.__init__||[]).forEach(function(e){o.push(e)})))}var r=[],o=[];e.forEach(i);var s=new a.Injector(r);return o.forEach(function(e){try{s["string"==typeof e?"get":"invoke"](e)}catch(e){throw console.error("Failed to instantiate component"),console.error(e.stack),e}}),s}function r(t){return t=t||{},i([{config:["value",t]},e(38)].concat(t.modules||[]))}function o(e,t){this.injector=t=t||r(e),this.get=t.get,this.invoke=t.invoke,this.get("eventBus").fire("diagram.init")}var a=e(75);t.exports=o,o.prototype.destroy=function(){this.get("eventBus").fire("diagram.destroy")},o.prototype.clear=function(){this.get("eventBus").fire("diagram.clear")}},{38:38,75:75}],33:[function(e,t,n){"use strict";function i(e,t){return Math.round(e*t)/t}function r(e){return p(e)?e+"px":e}function o(e){e=l({},{width:"100%",height:"100%"},e);var t=e.container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container"),l(n.style,{position:"relative",overflow:"hidden",width:r(e.width),height:r(e.height)}),t.appendChild(n),n}function a(e,t){var n=x("g");return v(n).add(t),y(e,n),n}function s(e,t,n,i){this._eventBus=t,this._elementRegistry=i,this._graphicsFactory=n,this._init(e||{})}function c(e,t){var n="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",n)}var p=e(191),l=e(197),u=e(85),f=e(82),h=e(92),m=e(62),d=e(64),y=e(233),g=e(235),v=e(236),x=e(238),E=e(242),b=e(239).createMatrix,w={shape:["x","y","width","height"],connection:["waypoints"]};s.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],t.exports=s,s.prototype._init=function(e){var t=this._eventBus,n=this._container=o(e),i=this._svg=x("svg");g(i,{width:"100%",height:"100%"}),y(n,i);var r=this._viewport=a(i,"viewport");this._layers={},e.deferUpdate!==!1&&(this._viewboxChanged=h(this._viewboxChanged,300)),t.on("diagram.init",function(){t.fire("canvas.init",{svg:i,viewport:r}),this.resized()},this),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},s.prototype._destroy=function(e){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});var t=this._container.parentNode;t&&t.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._rootElement,delete this._viewport},s.prototype._clear=function(){var e=this;this._elementRegistry.getAll().forEach(function(t){var n=d.getType(t);"root"===n?e.setRootElement(null,!0):e._removeElement(t,n)}),delete this._cachedViewbox},s.prototype.getDefaultLayer=function(){return this.getLayer("base")},s.prototype.getLayer=function(e){if(!e)throw new Error("must specify a name");var t=this._layers[e];return t||(t=this._layers[e]=a(this._viewport,"layer-"+e)),t},s.prototype.getContainer=function(){return this._container},s.prototype._updateMarker=function(e,t,n){var i;e.id||(e=this._elementRegistry.get(e)),(i=this._elementRegistry._elements[e.id])&&(u([i.gfx,i.secondaryGfx],function(e){e&&(n?v(e).add(t):v(e).remove(t))}),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:t,add:!!n}))},s.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},s.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},s.prototype.hasMarker=function(e,t){e.id||(e=this._elementRegistry.get(e));var n=this.getGraphics(e);return v(n).has(t)},s.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},s.prototype.getRootElement=function(){return this._rootElement||this.setRootElement({id:"__implicitroot",children:[]}),this._rootElement},s.prototype.setRootElement=function(e,t){e&&this._ensureValid("root",e);var n=this._rootElement,i=this._elementRegistry,r=this._eventBus;if(n){if(!t)throw new Error("rootElement already set, need to specify override");r.fire("root.remove",{element:n}),r.fire("root.removed",{element:n}),i.remove(n)}if(e){var o=this.getDefaultLayer();r.fire("root.add",{element:e}),i.add(e,o,this._svg),r.fire("root.added",{element:e,gfx:o})}return this._rootElement=e,e},s.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element with id "+t.id+" already exists");var n=w[e];if(!f(n,function(e){return void 0!==t[e]}))throw new Error("must supply { "+n.join(", ")+" } with "+e)},s.prototype._setParent=function(e,t,n){m.add(t.children,e,n),e.parent=t},s.prototype._addElement=function(e,t,n,i){n=n||this.getRootElement();var r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,i);var a=o.create(e,t);return this._elementRegistry.add(t,a),o.update(e,t,a),r.fire(e+".added",{element:t,gfx:a}),t},s.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)},s.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)},s.prototype._removeElement=function(e,t){var n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=n.get(e.id||e))return r.fire(t+".remove",{element:e}),i.remove(e),m.remove(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),n.remove(e),e},s.prototype.removeShape=function(e){return this._removeElement(e,"shape")},s.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},s.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},s.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},s.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},s.prototype.viewbox=function(e){if(void 0===e&&this._cachedViewbox)return this._cachedViewbox;var t,n,r,o,a,s=this._viewport,c=this.getSize();if(!e){t=this.getDefaultLayer().getBBox();var p=E(s);return n=p?p.matrix:b(),r=i(n.a,1e3),o=i(-n.e||0,1e3),a=i(-n.f||0,1e3),e=this._cachedViewbox={x:o?o/r:0,y:a?a/r:0,width:c.width/r,height:c.height/r,scale:r,inner:{width:t.width,height:t.height,x:t.x,y:t.y},outer:c}}return this._changeViewbox(function(){r=Math.min(c.width/e.width,c.height/e.height);var t=this._svg.createSVGMatrix().scale(r).translate(-e.x,-e.y);E(s,t)}),e},s.prototype.scroll=function(e){var t=this._viewport,n=t.getCTM();return e&&this._changeViewbox(function(){e=l({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),c(t,n)}),{x:n.e,y:n.f}},s.prototype.zoom=function(e,t){if(!e)return this.viewbox(e).scale;if("fit-viewport"===e)return this._fitViewport(t);var n,r;return this._changeViewbox(function(){"object"!=typeof t&&(n=this.viewbox().outer,t={x:n.width/2,y:n.height/2}),r=this._setZoom(e,t)}),i(r.a,1e3)},s.prototype._fitViewport=function(e){var t,n,i=this.viewbox(),r=i.outer,o=i.inner;return o.x>=0&&o.y>=0&&o.x+o.width<=r.width&&o.y+o.height<=r.height&&!e?n={x:0,y:0,width:Math.max(o.width+o.x,r.width),height:Math.max(o.height+o.y,r.height)}:(t=Math.min(1,r.width/o.width,r.height/o.height),n={x:o.x+(e?o.width/2-r.width/t/2:0),y:o.y+(e?o.height/2-r.height/t/2:0),width:r.width/t,height:r.height/t}),this.viewbox(n),this.viewbox(!1).scale},s.prototype._setZoom=function(e,t){var n,i,r,o,a,s=this._svg,p=this._viewport,u=s.createSVGMatrix(),f=s.createSVGPoint();r=p.getCTM();var h=r.a;return t?(n=l(f,t),i=n.matrixTransform(r.inverse()),o=u.translate(i.x,i.y).scale(1/h*e).translate(-i.x,-i.y),a=r.multiply(o)):a=u.scale(e),c(this._viewport,a),a},s.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},s.prototype.getAbsoluteBBox=function(e){var t,n=this.viewbox();if(e.waypoints){var i=this.getGraphics(e),r=i.getBBox(!0);t=i.getBBox(),t.x-=r.x,t.y-=r.y,t.width+=2*r.x,t.height+=2*r.y}else t=e;return{x:t.x*n.scale-n.x*n.scale,y:t.y*n.scale-n.y*n.scale,width:t.width*n.scale,height:t.height*n.scale}},s.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")}},{191:191,197:197,233:233,235:235,236:236,238:238,239:239,242:242,62:62,64:64,82:82,85:85,92:92}],34:[function(e,t,n){"use strict";function i(){this._uid=12}var r=e(55),o=e(197);t.exports=i,i.prototype.createRoot=function(e){return this.create("root",e)},i.prototype.createLabel=function(e){return this.create("label",e)},i.prototype.createShape=function(e){return this.create("shape",e)},i.prototype.createConnection=function(e){return this.create("connection",e)},i.prototype.create=function(e,t){return t=o({},t||{}),t.id||(t.id=e+"_"+this._uid++),r.create(e,t)}},{197:197,55:55}],35:[function(e,t,n){"use strict";function i(){this._elements={}}var r="data-element-id",o=e(235);t.exports=i,i.prototype.add=function(e,t,n){var i=e.id;this._validateId(i),o(t,r,i),n&&o(n,r,i),this._elements[i]={element:e,gfx:t,secondaryGfx:n}},i.prototype.remove=function(e){var t=this._elements,n=e.id||e,i=n&&t[n];i&&(o(i.gfx,r,""),i.secondaryGfx&&o(i.secondaryGfx,r,""),delete t[n])},i.prototype.updateId=function(e,t){this._validateId(t),"string"==typeof e&&(e=this.get(e));var n=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,i)},i.prototype.get=function(e){var t;t="string"==typeof e?e:e&&o(e,r);var n=this._elements[t];return n&&n.element},i.prototype.filter=function(e){var t=[];return this.forEach(function(n,i){e(n,i)&&t.push(n)}),t},i.prototype.getAll=function(){return this.filter(function(e){return e})},i.prototype.forEach=function(e){var t=this._elements;Object.keys(t).forEach(function(n){
  var i=t[n],r=i.element,o=i.gfx;return e(r,o)})},i.prototype.getGraphics=function(e,t){var n=e.id||e,i=this._elements[n];return i&&(t?i.secondaryGfx:i.gfx)},i.prototype._validateId=function(e){if(!e)throw new Error("element must have an id");if(this._elements[e])throw new Error("element with id "+e+" already added")}},{235:235}],36:[function(e,t,n){"use strict";function i(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function r(){}function o(e,t){return e.apply(null,t)}var a=e(189),s=e(188),c=e(191),p=e(91),l=e(197),u=Array.prototype.slice;t.exports=i,i.prototype.on=function(e,t,n,i){if(e=s(e)?e:[e],a(t)&&(i=n,n=t,t=1e3),!c(t))throw new Error("priority must be a number");var r=n;i&&(r=p(n,i),r.__fn=n.__fn||n);var o=this,l={priority:t,callback:r};e.forEach(function(e){o._addListener(e,l)})},i.prototype.once=function(e,t,n,i){function r(){return o.off(e,r),n.apply(i,arguments)}var o=this;if(a(t)&&(i=n,n=t,t=1e3),!c(t))throw new Error("priority must be a number");r.__fn=n,this.on(e,t,r)},i.prototype.off=function(e,t){var n,i,r,o=this._getListeners(e);if(t)for(r=o.length-1;n=o[r];r--)(i=n.callback)!==t&&i.__fn!==t||o.splice(r,1);else o.length=0},i.prototype.fire=function(e,t){var n,i,o,a;if(a=u.call(arguments),"object"==typeof e&&(n=e,e=n.type),!e)throw new Error("no event type specified");if(i=this._listeners[e]){t instanceof r?n=t:(n=new r,n.init(t)),a[0]=n;var s=n.type;e!==s&&(n.type=e);try{o=this._invokeListeners(n,a,i)}finally{e!==s&&(n.type=s)}return void 0===o&&n.defaultPrevented&&(o=!1),o}},i.prototype.handleError=function(e){return this.fire("error",{error:e})===!1},i.prototype._destroy=function(){this._listeners={}},i.prototype._invokeListeners=function(e,t,n){var i,r,o;for(i=0;(r=n[i])&&!e.cancelBubble;i++)o=this._invokeListener(e,t,r);return o},i.prototype._invokeListener=function(e,t,n){var i;try{i=o(n.callback,t),void 0!==i&&(e.returnValue=i,e.stopPropagation()),i===!1&&e.preventDefault()}catch(e){if(!this.handleError(e))throw console.error("unhandled error in event listener"),console.error(e.stack),e}return i},i.prototype._addListener=function(e,t){var n,i,r=this._getListeners(e);for(i=0;n=r[i];i++)if(n.priority<t.priority)return void r.splice(i,0,t);r.push(t)},i.prototype._getListeners=function(e){var t=this._listeners[e];return t||(this._listeners[e]=t=[]),t},t.exports.Event=r,r.prototype.stopPropagation=function(){this.cancelBubble=!0},r.prototype.preventDefault=function(){this.defaultPrevented=!0},r.prototype.init=function(e){l(this,e||{})}},{188:188,189:189,191:191,197:197,91:91}],37:[function(e,t,n){"use strict";function i(e,t){this._eventBus=e,this._elementRegistry=t}function r(e,t){t.insertBefore(e,t.firstChild)}var o=e(85),a=e(88),s=e(66),c=e(72).translate,p=e(209),l=e(233),u=e(235),f=e(236),h=e(238),m=e(241);i.$inject=["eventBus","elementRegistry"],t.exports=i,i.prototype._getChildren=function(e){var t,n=this._elementRegistry.getGraphics(e);return e.parent?(t=s.getChildren(n))||(t=h("g"),f(t).add("djs-children"),l(n.parentNode,t)):t=n,t},i.prototype._clear=function(e){var t=s.getVisual(e);return p(t),t},i.prototype._createContainer=function(e,t){var n=h("g");f(n).add("djs-group"),l(t,n);var i=h("g");f(i).add("djs-element"),f(i).add("djs-"+e),l(n,i);var r=h("g");return f(r).add("djs-visual"),l(i,r),i},i.prototype.create=function(e,t){var n=this._getChildren(t.parent);return this._createContainer(e,n)},i.prototype.updateContainments=function(e){var t,n=this,i=this._elementRegistry;t=a(e,function(e,t){return t.parent&&(e[t.parent.id]=t.parent),e},{}),o(t,function(e){var t=n._getChildren(e),a=e.children;a&&o(a.slice().reverse(),function(e){r(i.getGraphics(e).parentNode,t)})})},i.prototype.drawShape=function(e,t){return this._eventBus.fire("render.shape",{gfx:e,element:t})},i.prototype.getShapePath=function(e){return this._eventBus.fire("render.getShapePath",e)},i.prototype.drawConnection=function(e,t){return this._eventBus.fire("render.connection",{gfx:e,element:t})},i.prototype.getConnectionPath=function(e){return this._eventBus.fire("render.getConnectionPath",e)},i.prototype.update=function(e,t,n){if(t.parent){var i=this._clear(n);if("shape"===e)this.drawShape(i,t),c(n,t.x,t.y);else{if("connection"!==e)throw new Error("unknown type: "+e);this.drawConnection(i,t)}t.hidden?u(n,"display","none"):u(n,"display","block")}},i.prototype.remove=function(e){var t=this._elementRegistry.getGraphics(e);m(t.parentNode)}},{209:209,233:233,235:235,236:236,238:238,241:241,66:66,72:72,85:85,88:88}],38:[function(e,t,n){t.exports={__depends__:[e(42)],__init__:["canvas"],canvas:["type",e(33)],elementRegistry:["type",e(35)],elementFactory:["type",e(34)],eventBus:["type",e(36)],graphicsFactory:["type",e(37)]}},{33:33,34:34,35:35,36:36,37:37,42:42}],39:[function(e,t,n){"use strict";function i(e,t){var n=this;t=t||r,e.on(["render.shape","render.connection"],t,function(e,t){var i=e.type,r=t.element,o=t.gfx;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r):n.drawConnection(o,r)}),e.on(["render.getShapePath","render.getConnectionPath"],t,function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)})}var r=1e3;i.prototype.canRender=function(){},i.prototype.drawShape=function(){},i.prototype.drawConnection=function(){},i.prototype.getShapePath=function(){},i.prototype.getConnectionPath=function(){},t.exports=i},{}],40:[function(e,t,n){"use strict";function i(e,t){o.call(this,e,f),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2})}var r=e(79),o=e(39),a=e(71),s=a.componentsToPath,c=a.createLine,p=e(233),l=e(235),u=e(238),f=1;r(i,o),i.prototype.canRender=function(){return!0},i.prototype.drawShape=function(e,t){var n=u("rect");return l(n,{x:0,y:0,width:t.width||0,height:t.height||0}),l(n,this.SHAPE_STYLE),p(e,n),n},i.prototype.drawConnection=function(e,t){var n=c(t.waypoints,this.CONNECTION_STYLE);return p(e,n),n},i.prototype.getShapePath=function(e){var t=e.x,n=e.y,i=e.width,r=e.height,o=[["M",t,n],["l",i,0],["l",0,r],["l",-i,0],["z"]];return s(o)},i.prototype.getConnectionPath=function(e){var t,n,i=e.waypoints,r=[];for(t=0;n=i[t];t++)n=n.original||n,r.push([0===t?"M":"L",n.x,n.y]);return s(r)},i.$inject=["eventBus","styles"],t.exports=i},{233:233,235:235,238:238,39:39,71:71,79:79}],41:[function(e,t,n){"use strict";function i(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(e,t,n){var i=this.style(t,n);return o(i,{class:e})},this.style=function(t,n){r(t)||n||(n=t,t=[]);var i=a(t,function(t,n){return o(t,e[n]||{})},{});return n?o(i,n):i},this.computeStyle=function(e,n,i){return r(n)||(i=n,n=[]),t.style(n||[],o({},i,e||{}))}}var r=e(188),o=e(197),a=e(88);t.exports=i},{188:188,197:197,88:88}],42:[function(e,t,n){t.exports={__init__:["defaultRenderer"],defaultRenderer:["type",e(40)],styles:["type",e(41)]}},{40:40,41:41}],43:[function(e,t,n){"use strict";function i(e,t,n){function i(n,i,r){if(a(i)){var o,s;r?s=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(s=o,r=t.get(s)),s&&r&&e.fire(n,{element:r,gfx:s,originalEvent:i})===!1&&(i.stopPropagation(),i.preventDefault())}}function u(e){var t=b[e];return t||(t=b[e]=function(t){i(e,t)}),t}function d(e,t,n){var r=w[e];if(!r)throw new Error("unmapped DOM event name <"+e+">");return i(r,t,n)}function y(e,t,n){var i=u(n);i.$delegate=o.bind(e,_,t,i)}function g(e,t,n){o.unbind(e,t,u(n).$delegate)}function v(e){r(w,function(t,n){y(e,n,t)})}function x(e){r(w,function(t,n){g(e,n,t)})}var E=n.cls("djs-hit",["no-fill","no-border"],{stroke:"white",strokeWidth:15}),b={},w={mouseover:"element.hover",mouseout:"element.out",click:"element.click",dblclick:"element.dblclick",mousedown:"element.mousedown",mouseup:"element.mouseup"},_="svg, .djs-element";e.on("canvas.destroy",function(e){x(e.svg)}),e.on("canvas.init",function(e){v(e.svg)}),e.on(["shape.added","connection.added"],function(e){var t,n=e.element,i=e.gfx;n.waypoints?t=f(n.waypoints):(t=p("rect"),c(t,{x:0,y:0,width:n.width,height:n.height})),c(t,E),s(i,t)}),e.on("shape.changed",m,function(e){var t=e.element,n=e.gfx,i=l(".djs-hit",n);c(i,{width:t.width,height:t.height})}),e.on("connection.changed",function(e){var t=e.element,n=e.gfx,i=l(".djs-hit",n);h(i,t.waypoints)}),this.fire=i,this.triggerMouseEvent=d,this.mouseHandler=u,this.registerEvent=y,this.unregisterEvent=g}var r=e(85),o=e(211),a=e(69).isPrimaryButton,s=e(233),c=e(235),p=e(238),l=e(214),u=e(71),f=u.createLine,h=u.updateLine,m=500;i.$inject=["eventBus","elementRegistry","styles"],t.exports=i},{211:211,214:214,233:233,235:235,238:238,69:69,71:71,85:85}],44:[function(e,t,n){t.exports={__init__:["interactionEvents"],interactionEvents:["type",e(43)]}},{43:43}],45:[function(e,t,n){"use strict";function i(e,t,n){function i(e,t){var n=c("rect");return s(n,l({x:10,y:10,width:100,height:100},r)),a(e,n),n}this.offset=6;var r=t.cls("djs-outline",["no-fill"]),u=this;e.on(["shape.added","shape.changed"],o,function(e){var t=e.element,n=e.gfx,r=p(".djs-outline",n);r||(r=i(n,t)),u.updateShapeOutline(r,t)}),e.on(["connection.added","connection.changed"],function(e){var t=e.element,n=e.gfx,r=p(".djs-outline",n);r||(r=i(n,t)),u.updateConnectionOutline(r,t)})}var r=e(64).getBBox,o=500,a=e(233),s=e(235),c=e(238),p=e(214),l=e(197);i.prototype.updateShapeOutline=function(e,t){s(e,{x:-this.offset,y:-this.offset,width:t.width+2*this.offset,height:t.height+2*this.offset})},i.prototype.updateConnectionOutline=function(e,t){var n=r(t);s(e,{x:n.x-this.offset,y:n.y-this.offset,width:n.width+2*this.offset,height:n.height+2*this.offset})},i.$inject=["eventBus","styles","elementRegistry"],t.exports=i},{197:197,214:214,233:233,235:235,238:238,64:64}],46:[function(e,t,n){"use strict";t.exports={__init__:["outline"],outline:["type",e(45)]}},{45:45}],47:[function(e,t,n){"use strict";function i(e){var t=m('<div class="djs-overlay-container" style="position: absolute; width: 0; height: 0;" />');return e.insertBefore(t,e.firstChild),t}function r(e,t,n){l(e.style,{left:t+"px",top:n+"px"})}function o(e,t){e.style.display=t===!1?"none":""}function a(e,t,n){this._eventBus=e,this._canvas=t,this._elementRegistry=n,this._ids=E,this._overlayDefaults={show:{minZoom:.7,maxZoom:5}},this._overlays={},this._overlayContainers=[],this._overlayRoot=i(t.getContainer()),this._init()}var s=e(188),c=e(194),p=e(192),l=e(197),u=e(85),f=e(84),h=e(83),m=e(212),d=e(208),y=e(207),g=e(215),v=e(209),x=e(64).getBBox,E=new(e(67))("ov");a.$inject=["eventBus","canvas","elementRegistry"],t.exports=a,a.prototype.get=function(e){if(c(e)&&(e={id:e}),c(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?h(t.overlays,{type:e.type}):t.overlays.slice():[]}return e.type?h(this._overlays,{type:e.type}):e.id?this._overlays[e.id]:null},a.prototype.add=function(e,t,n){if(p(t)&&(n=t,t=null),e.id||(e=this._elementRegistry.get(e)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return n=l({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},a.prototype.remove=function(e){var t=this.get(e)||[];s(t)||(t=[t]);var n=this;u(t,function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(g(e.html),g(e.htmlContainer),delete e.htmlContainer,delete e.element,delete n._overlays[e.id]),t){var i=t.overlays.indexOf(e);i!==-1&&t.overlays.splice(i,1)}})},a.prototype.show=function(){o(this._overlayRoot)},a.prototype.hide=function(){o(this._overlayRoot,!1)},a.prototype.clear=function(){this._overlays={},this._overlayContainers=[],v(this._overlayRoot)},a.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,o=t.y;if(t.waypoints){var a=x(t);i=a.x,o=a.y}r(n,i,o),y(e.html,"data-container-id",t.id)},a.prototype._updateOverlay=function(e){var t=e.position,n=e.htmlContainer,i=e.element,o=t.left,a=t.top;if(void 0!==t.right){var s;s=i.waypoints?x(i).width:i.width,o=t.right*-1+s}if(void 0!==t.bottom){var c;c=i.waypoints?x(i).height:i.height,a=t.bottom*-1+c}r(n,o||0,a||0)},a.prototype._createOverlayContainer=function(e){var t=m('<div class="djs-overlays" style="position: absolute" />');this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},a.prototype._updateRoot=function(e){var t=e.scale||1,n=e.scale||1,i="matrix("+t+",0,0,"+n+","+-1*e.x*t+","+-1*e.y*n+")";this._overlayRoot.style.transform=i,this._overlayRoot.style["-ms-transform"]=i,this._overlayRoot.style["-webkit-transform"]=i},a.prototype._getOverlayContainer=function(e,t){var n=f(this._overlayContainers,function(t){return t.element===e});return n||t?n:this._createOverlayContainer(e)},a.prototype._addOverlay=function(e){var t,n,i=e.id,r=e.element,o=e.html;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),c(o)&&(o=m(o)),n=this._getOverlayContainer(r),t=m('<div class="djs-overlay" data-overlay-id="'+i+'" style="position: absolute">'),t.appendChild(o),e.type&&d(t).add("djs-overlay-"+e.type),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},a.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=e.htmlContainer,r=!0;n&&((n.minZoom>t.scale||n.maxZoom<t.scale)&&(r=!1),o(i,r))},a.prototype._updateOverlaysVisibilty=function(e){var t=this;u(this._overlays,function(n){t._updateOverlayVisibilty(n,e)})},a.prototype._init=function(){function e(e){n._updateRoot(e),n._updateOverlaysVisibilty(e),n.show()}var t=this._eventBus,n=this;t.on("canvas.viewbox.changing",function(e){n.hide()}),t.on("canvas.viewbox.changed",function(t){e(t.viewbox)}),t.on(["shape.remove","connection.remove"],function(e){var t=e.element,i=n.get({element:t});u(i,function(e){n.remove(e.id)});var r=n._getOverlayContainer(t);if(r){g(r.html);var o=n._overlayContainers.indexOf(r);o!==-1&&n._overlayContainers.splice(o,1)}}),t.on("element.changed",500,function(e){var t=e.element,i=n._getOverlayContainer(t,!0);i&&(u(i.overlays,function(e){n._updateOverlay(e)}),n._updateOverlayContainer(i))}),t.on("element.marker.update",function(e){var t=n._getOverlayContainer(e.element,!0);t&&d(t.html)[e.add?"add":"remove"](e.marker)}),t.on("diagram.clear",this.clear,this)}},{188:188,192:192,194:194,197:197,207:207,208:208,209:209,212:212,215:215,64:64,67:67,83:83,84:84,85:85}],48:[function(e,t,n){t.exports={__init__:["overlays"],overlays:["type",e(47)]}},{47:47}],49:[function(e,t,n){"use strict";function i(e){this._eventBus=e,this._selectedElements=[];var t=this;e.on(["shape.remove","connection.remove"],function(e){var n=e.element;t.deselect(n)}),e.on(["diagram.clear"],function(e){t.select(null)})}var r=e(188),o=e(85);i.$inject=["eventBus"],t.exports=i,i.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(n!==-1){var i=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})}},i.prototype.get=function(){return this._selectedElements},i.prototype.isSelected=function(e){return this._selectedElements.indexOf(e)!==-1},i.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();r(e)||(e=e?[e]:[]),t?o(e,function(e){n.indexOf(e)===-1&&n.push(e)}):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})}},{188:188,85:85}],50:[function(e,t,n){"use strict";function i(e,t,n,i){e.on("create.end",500,function(e){e.context.canExecute&&t.select(e.context.shape)}),e.on("connect.end",500,function(e){e.context.canExecute&&e.context.target&&t.select(e.context.target)}),e.on("shape.move.end",500,function(e){var n=e.previousSelection||[],r=i.get(e.context.shape.id);o(n,function(e){return r.id===e.id})||t.select(r)}),e.on("element.click",function(e){var i=e.element;i===n.getRootElement()&&(i=null);var o=t.isSelected(i),a=t.get().length>1,s=r(e);if(o&&a)return s?t.deselect(i):t.select(i);o?t.deselect(i):t.select(i,s)})}var r=e(69).hasPrimaryModifier,o=e(84);i.$inject=["eventBus","selection","canvas","elementRegistry"],t.exports=i},{69:69,84:84}],51:[function(e,t,n){"use strict";function i(e,t,n,i){function s(e,n){t.addMarker(e,n)}function c(e,n){t.removeMarker(e,n)}this._multiSelectionBox=null,e.on("element.hover",function(e){s(e.element,o)}),e.on("element.out",function(e){c(e.element,o)}),e.on("selection.changed",function(e){function t(e){c(e,a)}function n(e){s(e,a)}var i=e.oldSelection,o=e.newSelection;r(i,function(e){o.indexOf(e)===-1&&t(e)}),r(o,function(e){i.indexOf(e)===-1&&n(e)})})}var r=e(85),o="hover",a="selected";i.$inject=["eventBus","canvas","selection","styles"],t.exports=i},{85:85}],52:[function(e,t,n){t.exports={__init__:["selectionVisuals","selectionBehavior"],__depends__:[e(44),e(46)],selection:["type",e(49)],selectionVisuals:["type",e(51)],selectionBehavior:["type",e(50)]}},{44:44,46:46,49:49,50:50,51:51}],53:[function(e,t,n){t.exports={translate:["value",e(54)]}},{54:54}],54:[function(e,t,n){"use strict";t.exports=function(e,t){return t=t||{},e.replace(/{([^}]+)}/g,function(e,n){return t[n]||"{"+n+"}"})}},{}],55:[function(e,t,n){"use strict";function i(){Object.defineProperty(this,"businessObject",{writable:!0}),u.bind(this,"parent"),f.bind(this,"label"),m.bind(this,"outgoing"),d.bind(this,"incoming")}function r(){i.call(this),u.bind(this,"children"),h.bind(this,"host"),h.bind(this,"attachers")}function o(){r.call(this)}function a(){r.call(this),f.bind(this,"labelTarget")}function s(){i.call(this),m.bind(this,"source"),d.bind(this,"target")}var c=e(197),p=e(79),l=e(228),u=new l({name:"children",enumerable:!0,collection:!0},{name:"parent"}),f=new l({name:"label",enumerable:!0},{name:"labelTarget"}),h=new l({name:"attachers",collection:!0},{name:"host"}),m=new l({name:"outgoing",collection:!0},{name:"source"}),d=new l({name:"incoming",collection:!0},{name:"target"});p(r,i),p(o,r),p(a,r),p(s,i);var y={connection:s,shape:r,label:a,root:o};t.exports.create=function(e,t){var n=y[e];if(!n)throw new Error("unknown type: <"+e+">");return c(new n,t)},t.exports.Base=i,t.exports.Root=o,t.exports.Shape=r,t.exports.Connection=s,t.exports.Label=a},{197:197,228:228,79:79}],56:[function(e,t,n){"use strict";function i(e){return Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))}function r(e,t){function n(e){var n=h.start,r=l.toPoint(e),c=s(r,n);if(!h.dragging&&i(c)>u&&(h.dragging=!0,a.install(),o.set("grab")),h.dragging){var p=h.last||h.start;c=s(r,p),t.scroll({dx:c.x,dy:c.y}),h.last=r}e.preventDefault()}function r(e){c.unbind(document,"mousemove",n),c.unbind(document,"mouseup",r),h=null,o.unset()}function f(e){p(e.target,".djs-draggable")||e.button||e.ctrlKey||e.shiftKey||e.altKey||(h={start:l.toPoint(e)},c.bind(document,"mousemove",n),c.bind(document,"mouseup",r))}var h,m=t._container;c.bind(m,"mousedown",f)}var o=e(63),a=e(61),s=e(68).substract,c=e(213),p=e(210),l=e(65),u=15;r.$inject=["eventBus","canvas"],t.exports=r},{210:210,213:213,61:61,63:63,65:65,68:68}],57:[function(e,t,n){t.exports={__init__:["moveCanvas"],moveCanvas:["type",e(56)]}},{56:56}],58:[function(e,t,n){"use strict";function i(e,t,n){this._enabled=!1,this._canvas=t,this._container=t._container,this._handleWheel=f(this._handleWheel,this);var i=!n||n.enabled!==!1,r=this;e.on("canvas.init",function(e){r._init(i)})}var r=e(213),o=e(210),a=e(69).hasPrimaryModifier,s=e(69).hasSecondaryModifier,c=e(70).isMac,p=e(59).getStepRange,l=e(59).cap,u=e(68).log10,f=e(91),h={min:.2,max:4};i.$inject=["eventBus","canvas","config.zoomScroll"],t.exports=i,i.prototype.scroll=function(e){this._canvas.scroll(e)},i.prototype.reset=function(){this._canvas.zoom("fit-viewport")},i.prototype.zoom=function(e,t){var n=this._canvas,i=n.zoom(!1),r=Math.pow(1+Math.abs(e),e>0?1:-1);n.zoom(l(h,i*r),t)},i.prototype._handleWheel=function(e){if(!o(e.target,".djs-scrollable",!0)){var t=this._container;e.preventDefault();var n,i=a(e),r=s(e);if(i||r){n=c?0===e.deltaMode?1.25:50:0===e.deltaMode?.025:.5;var p={};r?p.dx=n*(e.deltaX||e.deltaY):p.dy=n*e.deltaY,this.scroll(p)}else{n=0===e.deltaMode?.025:.5;var l=t.getBoundingClientRect(),u={x:e.clientX-l.left,y:e.clientY-l.top};this.zoom(e.deltaY*n/-5,u)}}},i.prototype.stepZoom=function(e,t){var n=this._canvas,i=p(h,10);e=e>0?1:-1;var r=u(n.zoom()),o=Math.round(r/i)*i;o+=i*e;var a=Math.pow(10,o);n.zoom(l(h,a),t)},i.prototype.toggle=function(e){var t=this._container,n=this._handleWheel,i=this._enabled;return void 0===e&&(e=!i),i!==e&&r[e?"bind":"unbind"](t,"wheel",n,!1),this._enabled=e,e},i.prototype._init=function(e){this.toggle(e)}},{210:210,213:213,59:59,68:68,69:69,70:70,91:91}],59:[function(e,t,n){"use strict";var i=e(68).log10;t.exports.getStepRange=function(e,t){var n=i(e.min),r=i(e.max);return(Math.abs(n)+Math.abs(r))/t},t.exports.cap=function(e,t){return Math.max(e.min,Math.min(e.max,t))}},{68:68}],60:[function(e,t,n){t.exports={__init__:["zoomScroll"],zoomScroll:["type",e(58)]}},{58:58}],61:[function(e,t,n){"use strict";function i(e){s(e),r(!1)}function r(e){a[e?"bind":"unbind"](document.body,"click",i,!0)}function o(){return r(!0),function(){r(!1)}}var a=e(213),s=e(65).stopEvent;t.exports.install=o},{213:213,65:65}],62:[function(e,t,n){"use strict";t.exports.remove=function(e,t){if(!e||!t)return-1;var n=e.indexOf(t);return n!==-1&&e.splice(n,1),n},t.exports.add=function(e,t,n){if(e&&t){"number"!=typeof n&&(n=-1);var i=e.indexOf(t);if(i!==-1){if(i===n)return;if(n===-1)return;e.splice(i,1)}n!==-1?e.splice(n,0,t):e.push(t)}},t.exports.indexOf=function(e,t){return e&&t?e.indexOf(t):-1}},{}],63:[function(e,t,n){"use strict";var i=e(208);t.exports.set=function(e){var t=i(document.body);t.removeMatching(/^djs-cursor-.*$/),e&&t.add("djs-cursor-"+e)},t.exports.unset=function(){this.set(null)},t.exports.has=function(e){return i(document.body).has("djs-cursor-"+e)}},{208:208}],64:[function(e,t,n){"use strict";function i(e,t,n){var i=!n||e.indexOf(t)===-1;return i&&e.push(t),i}function r(e,t,n){n=n||0,f(e)||(e=[e]),d(e,function(e,i){var o=t(e,i,n);f(o)&&o.length&&r(o,t,n+1)})}function o(e,t,n){var o=[],a=[];return r(e,function(e,r,s){i(o,e,t);var c=e.children;if((n===-1||s<n)&&c&&i(a,c,t))return c}),o}function a(e,t){return o(e,!t,1)}function s(e,t){return o(e,!t,-1)}function c(e){function t(e){i[e.source.id]&&i[e.target.id]&&(i[e.id]=e),o[e.source.id]&&o[e.target.id]&&(c[e.id]=s[e.id]=e),a[e.id]=e}function n(e){if(s[e.id]=e,!e.waypoints)return o[e.id]=e,d(e.incoming,t),d(e.outgoing,t),e.children;c[e.id]=a[e.id]=e}var i=m(e,function(e){return e.id}),o={},a={},s={},c={};return r(e,n),{allShapes:o,allConnections:a,topLevel:i,enclosedConnections:c,enclosedElements:s}}function p(e,t){t=!!t,f(e)||(e=[e]);var n,i,r,o;return d(e,function(e){var a=e;e.waypoints&&!t&&(a=p(e.waypoints,!0));var s=a.x,c=a.y,l=a.height||0,u=a.width||0;(s<n||void 0===n)&&(n=s),(c<i||void 0===i)&&(i=c),(s+u>r||void 0===r)&&(r=s+u),(c+l>o||void 0===o)&&(o=c+l)}),{x:n,y:i,height:o-i,width:r-n}}function l(e,t){var n={};return d(e,function(e){var i=e;i.waypoints&&(i=p(i)),!h(t.y)&&i.x>t.x&&(n[e.id]=e),!h(t.x)&&i.y>t.y&&(n[e.id]=e),i.x>t.x&&i.y>t.y&&(h(t.width)&&h(t.height)&&i.width+i.x<t.width+t.x&&i.height+i.y<t.height+t.y?n[e.id]=e:h(t.width)&&h(t.height)||(n[e.id]=e))}),n}function u(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}var f=e(188),h=e(191),m=e(86),d=e(85);t.exports.add=i,t.exports.eachElement=r,t.exports.selfAndDirectChildren=a,t.exports.selfAndAllChildren=s,t.exports.getBBox=p,t.exports.getEnclosedElements=l,t.exports.getClosure=c,t.exports.getType=u},{188:188,191:191,85:85,86:86}],65:[function(e,t,n){"use strict";function i(e){return e&&e.preventDefault()}function r(e,t){e&&(e.stopPropagation&&e.stopPropagation(),t&&e.stopImmediatePropagation&&e.stopImmediatePropagation())}function o(e){return e.originalEvent||e.srcEvent}function a(e,t){c(e,t),s(e)}function s(e){i(e),i(o(e))}function c(e,t){r(e,t),r(o(e),t)}function p(e){return e.pointers&&e.pointers.length&&(e=e.pointers[0]),e.touches&&e.touches.length&&(e=e.touches[0]),e?{x:e.clientX,y:e.clientY}:null}t.exports.getOriginal=o,t.exports.stopEvent=a,t.exports.preventDefault=s,t.exports.stopPropagation=c,t.exports.toPoint=p},{}],66:[function(e,t,n){"use strict";function i(e){return o(".djs-visual",e)}function r(e){return e.parentNode.childNodes[1]}var o=e(214);t.exports.getVisual=i,t.exports.getChildren=r},{214:214}],67:[function(e,t,n){"use strict";function i(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}t.exports=i,i.prototype.next=function(){return this._prefix+ ++this._counter}},{}],68:[function(e,t,n){"use strict";function i(e){return Math.log(e)/Math.log(10)}function r(e,t){return{x:e.x-t.x,y:e.y-t.y}}t.exports.log10=i,t.exports.substract=r},{}],69:[function(e,t,n){"use strict";function i(e){return!(r(e)||e).button}var r=e(65).getOriginal,o=e(70).isMac;t.exports.isPrimaryButton=i,t.exports.isMac=o,t.exports.hasPrimaryModifier=function(e){var t=r(e)||e;return!!i(e)&&(o()?t.metaKey:t.ctrlKey)},t.exports.hasSecondaryModifier=function(e){var t=r(e)||e;return i(e)&&t.shiftKey}},{65:65,70:70}],70:[function(e,t,n){"use strict";t.exports.isMac=function(){return/mac/i.test(navigator.platform)}},{}],71:[function(e,t,n){"use strict";function i(e){for(var t,n="",i=0;t=e[i];i++)n+=t.x+","+t.y+" ";return n}var r=e(235),o=e(238);t.exports.componentsToPath=function(e){return e.join(",").replace(/,?([A-z]),?/g,"$1")},t.exports.toSVGPoints=i,t.exports.createLine=function(e,t){var n=o("polyline");return r(n,{points:i(e)}),t&&r(n,t),n},t.exports.updateLine=function(e,t){return r(e,{points:i(t)}),e}},{235:235,238:238}],72:[function(e,t,n){"use strict";t.exports.transform=function(e,t,n,i,r){var o="";0===t&&0===n||(o+="translate("+t+" "+n+") "),0!==i&&(o+="rotate("+i+") "),r&&(o+="scale("+r+" "+r+")"),o=o.trim(),e.setAttribute("transform",o)},t.exports.translate=function(e,t,n){e.setAttribute("transform","translate("+t+" "+n+")")},t.exports.rotate=function(e,t){e.setAttribute("transform","rotate("+t+")")},t.exports.scale=function(e,t){e.setAttribute("transform","scale("+t+" "+t+")")}},{}],73:[function(e,t,n){"use strict";function i(e){var t=e.split("-");return{horizontal:t[0]||"center",vertical:t[1]||"top"}}function r(e){return f(e)?h({top:0,left:0,right:0,bottom:0},e):{top:e,left:e,right:e,bottom:e}}function o(e,t){t.textContent=e;try{var n,i=""===e;return t.textContent=i?"dummy":e,n=m(t.getBBox(),["width","height"]),i&&(n.width=0),n}catch(e){return{width:0,height:0}}}function a(e,t,n){for(var i,r=e.shift(),a=r;;){if(i=o(a,n),i.width=a?i.width:0," "===a||""===a||i.width<Math.round(t)||a.length<4)return s(e,a,r,i);a=p(a,i.width,t)}}function s(e,t,n,i){if(t.length<n.length){var r=e[0]||"",o=n.slice(t.length).trim();r=/-\s*$/.test(o)?o+r.replace(/^\s+/,""):o+" "+r,e[0]=r}return{width:i.width,height:i.height,text:t}}function c(e,t){var n,i=e.split(/(\s|-)/g),r=[],o=0;if(i.length>1)for(;n=i.shift();){if(!(n.length+o<t)){"-"===n&&r.pop();break}r.push(n),o+=n.length}return r.join("")}function p(e,t,n){var i=Math.max(e.length*(n/t),1),r=c(e,i);return r||(r=e.slice(0,Math.max(Math.round(i-1),1))),r}function l(){var e=document.getElementById("helper-svg");return e||(e=E("svg"),x(e,{id:"helper-svg",width:0,height:0,style:"visibility: hidden; position: fixed"}),document.body.appendChild(e)),e}function u(e){this._config=h({},{size:_,padding:w,style:{},align:"center-top"},e||{})}var f=e(192),h=e(197),m=e(203),d=e(85),y=e(88),g=e(200),v=e(233),x=e(235),E=e(238),b=e(241),w=0,_={width:150,height:50};u.prototype.createText=function(e,t){return this.layoutText(e,t).element},u.prototype.getDimensions=function(e,t){return this.layoutText(e,t).dimensions},u.prototype.layoutText=function(e,t){var n=g({},this._config.size,t.box||{}),o=g({},this._config.style,t.style||{}),s=i(t.align||this._config.align),c=r(void 0!==t.padding?t.padding:this._config.padding),p=t.fitBox||!1,u=e.split(/\r?\n/g),f=[],h=n.width-c.left-c.right,m=E("text");x(m,{x:0,y:0}),x(m,o);var w=l();for(v(w,m);u.length;)f.push(a(u,h,m));var _,A,T=y(f,function(e,t,n){return e+t.height},0),S=y(f,function(e,t,n){return t.width>e?t.width:e},0);switch(s.vertical){case"middle":_=(n.height-T)/2-f[0].height/4;break;default:_=c.top}var C=E("text");return x(C,o),d(f,function(e){switch(_+=e.height,s.horizontal){case"left":A=c.left;break;case"right":A=(p?S:h)-c.right-e.width;break;default:A=Math.max(((p?S:h)-e.width)/2+c.left,0)}var t=E("tspan");x(t,{x:A,y:_}),t.textContent=e.text,v(C,t)}),b(m),{dimensions:{width:S,height:T},element:C}},t.exports=u},{192:192,197:197,200:200,203:203,233:233,235:235,238:238,241:241,85:85,88:88}],74:[function(e,t,n){var i=function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=function(){var e=Array.prototype.slice.call(arguments);1===e.length&&i(e[0])&&(e=e[0]);var t=e.pop();return t.$inject=e,t},o=function(e){if("function"!=typeof e)throw new Error('Cannot annotate "'+e+'". Expected a function!');var t=e.toString().match(/^function\s*[^\(]*\(\s*([^\)]*)\)/m);return t[1]&&t[1].split(",").map(function(e){return t=e.match(/\/\*([^\*]*)\*\//m),t?t[1].trim():e.trim()})||[]};n.annotate=r,n.parse=o,n.isArray=i},{}],75:[function(e,t,n){t.exports={annotate:e(74).annotate,Module:e(77),Injector:e(76)}},{74:74,76:76,77:77}],76:[function(e,t,n){var i=e(77),r=e(74).parse,o=e(74).annotate,a=e(74).isArray,s=function(e,t){t=t||{get:function(e,t){if(n.push(e),t===!1)return null;throw u('No provider for "'+e+'"!')}};var n=[],c=this._providers=Object.create(t._providers||null),p=this._instances=Object.create(null),l=p.injector=this,u=function(e){var t=n.join(" -> ");return n.length=0,new Error(t?e+" (Resolving: "+t+")":e)},f=function(e,i){if(!c[e]&&e.indexOf(".")!==-1){for(var r=e.split("."),o=f(r.shift());r.length;)o=o[r.shift()];return o}if(Object.hasOwnProperty.call(p,e))return p[e];if(Object.hasOwnProperty.call(c,e)){if(n.indexOf(e)!==-1)throw n.push(e),u("Cannot resolve circular dependency!");return n.push(e),p[e]=c[e][0](c[e][1]),n.pop(),p[e]}return t.get(e,i)},h=function(e){var t=Object.create(e.prototype),n=m(e,t);return"object"==typeof n?n:t},m=function(e,t){if("function"!=typeof e){if(!a(e))throw new Error('Cannot invoke "'+e+'". Expected a function!');e=o(e.slice())}var n=e.$inject&&e.$inject||r(e),i=n.map(function(e){return f(e)});return e.apply(t,i)},d=function(e){return o(function(t){return e.get(t)})},y=function(e,t){if(t&&t.length){var n,i,r,o,a=Object.create(null),p=Object.create(null),u=[],f=[],h=[];for(var m in c)n=c[m],t.indexOf(m)!==-1&&("private"===n[2]?(i=u.indexOf(n[3]),i===-1?(r=n[3].createChild([],t),o=d(r),u.push(n[3]),f.push(r),h.push(o),a[m]=[o,m,"private",r]):a[m]=[h[i],m,"private",f[i]]):a[m]=[n[2],n[1]],p[m]=!0),"factory"!==n[2]&&"type"!==n[2]||!n[1].$scope||t.forEach(function(e){n[1].$scope.indexOf(e)!==-1&&(a[m]=[n[2],n[1]],p[e]=!0)});t.forEach(function(e){if(!p[e])throw new Error('No provider for "'+e+'". Cannot use provider from the parent!')}),e.unshift(a)}return new s(e,l)},g={factory:m,type:h,value:function(e){return e}};e.forEach(function(e){function t(e,t){return"value"!==e&&a(t)&&(t=o(t.slice())),t}if(e instanceof i)e.forEach(function(e){var n=e[0],i=e[1],r=e[2];c[n]=[g[i],t(i,r),i]});else if("object"==typeof e)if(e.__exports__){var n=Object.keys(e).reduce(function(t,n){return"__"!==n.substring(0,2)&&(t[n]=e[n]),t},Object.create(null)),r=new s((e.__modules__||[]).concat([n]),l),p=o(function(e){return r.get(e)});e.__exports__.forEach(function(e){c[e]=[p,e,"private",r]})}else Object.keys(e).forEach(function(n){if("private"===e[n][2])return void(c[n]=e[n]);var i=e[n][0],r=e[n][1];c[n]=[g[i],t(i,r),i]})}),this.get=f,this.invoke=m,this.instantiate=h,this.createChild=y};t.exports=s},{74:74,77:77}],77:[function(e,t,n){var i=function(){var e=[];this.factory=function(t,n){return e.push([t,"factory",n]),this},
  this.value=function(t,n){return e.push([t,"value",n]),this},this.type=function(t,n){return e.push([t,"type",n]),this},this.forEach=function(t){e.forEach(t)}};t.exports=i},{}],78:[function(e,t,n){function i(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var i=n[1];if("body"==i){var r=t.createElement("html");return r.innerHTML=e,r.removeChild(r.lastChild)}var o=a[i]||a._default,s=o[0],c=o[1],p=o[2],r=t.createElement("div");for(r.innerHTML=c+e+p;s--;)r=r.lastChild;if(r.firstChild==r.lastChild)return r.removeChild(r.firstChild);for(var l=t.createDocumentFragment();r.firstChild;)l.appendChild(r.removeChild(r.firstChild));return l}t.exports=i;var r,o=!1;"undefined"!=typeof document&&(r=document.createElement("div"),r.innerHTML='  <link/><table></table><a href="/a">a</a><input type="checkbox"/>',o=!r.getElementsByTagName("link").length,r=void 0);var a={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:o?[1,"X<div>","</div>"]:[0,"",""]};a.td=a.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],a.option=a.optgroup=[1,'<select multiple="multiple">',"</select>"],a.thead=a.tbody=a.colgroup=a.caption=a.tfoot=[1,"<table>","</table>"],a.polyline=a.ellipse=a.polygon=a.circle=a.text=a.line=a.path=a.rect=a.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"]},{}],79:[function(e,t,n){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],80:[function(e,t,n){function i(e){var t=e?e.length:0;return t?e[t-1]:void 0}t.exports=i},{}],81:[function(e,t,n){function i(e){if(c(e)&&!s(e)&&!(e instanceof r)){if(e instanceof o)return e;if(u.call(e,"__chain__")&&u.call(e,"__wrapped__"))return p(e)}return new o(e)}var r=e(95),o=e(96),a=e(127),s=e(188),c=e(173),p=e(186),l=Object.prototype,u=l.hasOwnProperty;i.prototype=a.prototype,t.exports=i},{127:127,173:173,186:186,188:188,95:95,96:96}],82:[function(e,t,n){function i(e,t,n){var i=s(e)?r:a;return n&&c(e,t,n)&&(t=void 0),"function"==typeof t&&void 0===n||(t=o(t,n,3)),i(e,t)}var r=e(100),o=e(108),a=e(114),s=e(188),c=e(169);t.exports=i},{100:100,108:108,114:114,169:169,188:188}],83:[function(e,t,n){function i(e,t,n){var i=s(e)?r:a;return t=o(t,n,3),i(e,t)}var r=e(101),o=e(108),a=e(115),s=e(188);t.exports=i},{101:101,108:108,115:115,188:188}],84:[function(e,t,n){var i=e(113),r=e(152),o=r(i);t.exports=o},{113:113,152:152}],85:[function(e,t,n){var i=e(99),r=e(113),o=e(153),a=o(i,r);t.exports=a},{113:113,153:153,99:99}],86:[function(e,t,n){var i=e(145),r=Object.prototype,o=r.hasOwnProperty,a=i(function(e,t,n){o.call(e,n)?e[n].push(t):e[n]=[t]});t.exports=a},{145:145}],87:[function(e,t,n){function i(e,t,n){var i=s(e)?r:a;return t=o(t,n,3),i(e,t)}var r=e(102),o=e(108),a=e(128),s=e(188);t.exports=i},{102:102,108:108,128:128,188:188}],88:[function(e,t,n){var i=e(104),r=e(113),o=e(156),a=o(i,r);t.exports=a},{104:104,113:113,156:156}],89:[function(e,t,n){function i(e,t,n){var i=s(e)?r:a;return n&&c(e,t,n)&&(t=void 0),"function"==typeof t&&void 0===n||(t=o(t,n,3)),i(e,t)}var r=e(105),o=e(108),a=e(138),s=e(188),c=e(169);t.exports=i},{105:105,108:108,138:138,169:169,188:188}],90:[function(e,t,n){var i=e(165),r=i(Date,"now"),o=r||function(){return(new Date).getTime()};t.exports=o},{165:165}],91:[function(e,t,n){var i=e(157),r=e(181),o=e(94),a=o(function(e,t,n){var o=1;if(n.length){var s=r(n,a.placeholder);o|=32}return i(e,o,t,n,s)});a.placeholder={},t.exports=a},{157:157,181:181,94:94}],92:[function(e,t,n){function i(e,t,n){function i(){g&&clearTimeout(g),h&&clearTimeout(h),x=0,h=g=v=void 0}function c(t,n){n&&clearTimeout(n),h=g=v=void 0,t&&(x=o(),m=e.apply(y,f),g||h||(f=y=void 0))}function p(){var e=t-(o()-d);e<=0||e>t?c(v,h):g=setTimeout(p,e)}function l(){c(b,g)}function u(){if(f=arguments,d=o(),y=this,v=b&&(g||!w),E===!1)var n=w&&!g;else{h||w||(x=d);var i=E-(d-x),r=i<=0||i>E;r?(h&&(h=clearTimeout(h)),x=d,m=e.apply(y,f)):h||(h=setTimeout(l,i))}return r&&g?g=clearTimeout(g):g||t===E||(g=setTimeout(p,t)),n&&(r=!0,m=e.apply(y,f)),!r||g||h||(f=y=void 0),m}var f,h,m,d,y,g,v,x=0,E=!1,b=!0;if("function"!=typeof e)throw new TypeError(a);if(t=t<0?0:+t||0,n===!0){var w=!0;b=!1}else r(n)&&(w=!!n.leading,E="maxWait"in n&&s(+n.maxWait||0,t),b="trailing"in n?!!n.trailing:b);return u.cancel=i,u}var r=e(192),o=e(90),a="Expected a function",s=Math.max;t.exports=i},{192:192,90:90}],93:[function(e,t,n){var i=e(111),r=e(94),o=r(function(e,t){return i(e,1,t)});t.exports=o},{111:111,94:94}],94:[function(e,t,n){function i(e,t){if("function"!=typeof e)throw new TypeError(r);return t=o(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,i=-1,r=o(n.length-t,0),a=Array(r);++i<r;)a[i]=n[t+i];switch(t){case 0:return e.call(this,a);case 1:return e.call(this,n[0],a);case 2:return e.call(this,n[0],n[1],a)}var s=Array(t+1);for(i=-1;++i<t;)s[i]=n[i];return s[t]=a,e.apply(this,s)}}var r="Expected a function",o=Math.max;t.exports=i},{}],95:[function(e,t,n){function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=a,this.__views__=[]}var r=e(110),o=e(127),a=Number.POSITIVE_INFINITY;i.prototype=r(o.prototype),i.prototype.constructor=i,t.exports=i},{110:110,127:127}],96:[function(e,t,n){function i(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}var r=e(110),o=e(127);i.prototype=r(o.prototype),i.prototype.constructor=i,t.exports=i},{110:110,127:127}],97:[function(e,t,n){(function(n){function i(e){var t=e?e.length:0;for(this.data={hash:s(null),set:new a};t--;)this.push(e[t])}var r=e(142),o=e(165),a=o(n,"Set"),s=o(Object,"create");i.prototype.push=r,t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{142:142,165:165}],98:[function(e,t,n){function i(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}t.exports=i},{}],99:[function(e,t,n){function i(e,t){for(var n=-1,i=e.length;++n<i&&t(e[n],n,e)!==!1;);return e}t.exports=i},{}],100:[function(e,t,n){function i(e,t){for(var n=-1,i=e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}t.exports=i},{}],101:[function(e,t,n){function i(e,t){for(var n=-1,i=e.length,r=-1,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[++r]=a)}return o}t.exports=i},{}],102:[function(e,t,n){function i(e,t){for(var n=-1,i=e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}t.exports=i},{}],103:[function(e,t,n){function i(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}t.exports=i},{}],104:[function(e,t,n){function i(e,t,n,i){var r=-1,o=e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}t.exports=i},{}],105:[function(e,t,n){function i(e,t){for(var n=-1,i=e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}t.exports=i},{}],106:[function(e,t,n){function i(e,t,n){for(var i=-1,o=r(t),a=o.length;++i<a;){var s=o[i],c=e[s],p=n(c,t[s],s,e,t);(p===p?p===c:c!==c)&&(void 0!==c||s in e)||(e[s]=p)}return e}var r=e(198);t.exports=i},{198:198}],107:[function(e,t,n){function i(e,t){return null==t?e:r(t,o(t),e)}var r=e(109),o=e(198);t.exports=i},{109:109,198:198}],108:[function(e,t,n){function i(e,t,n){var i=typeof e;return"function"==i?void 0===t?e:a(e,t,n):null==e?s:"object"==i?r(e):void 0===t?c(e):o(e,t)}var r=e(129),o=e(130),a=e(140),s=e(204),c=e(206);t.exports=i},{129:129,130:130,140:140,204:204,206:206}],109:[function(e,t,n){function i(e,t,n){n||(n={});for(var i=-1,r=t.length;++i<r;){var o=t[i];n[o]=e[o]}return n}t.exports=i},{}],110:[function(e,t,n){var i=e(192),r=function(){function e(){}return function(t){if(i(t)){e.prototype=t;var n=new e;e.prototype=void 0}return n||{}}}();t.exports=r},{192:192}],111:[function(e,t,n){function i(e,t,n){if("function"!=typeof e)throw new TypeError(r);return setTimeout(function(){e.apply(void 0,n)},t)}var r="Expected a function";t.exports=i},{}],112:[function(e,t,n){function i(e,t){var n=e?e.length:0,i=[];if(!n)return i;var c=-1,p=r,l=!0,u=l&&t.length>=s?a(t):null,f=t.length;u&&(p=o,l=!1,t=u);e:for(;++c<n;){var h=e[c];if(l&&h===h){for(var m=f;m--;)if(t[m]===h)continue e;i.push(h)}else p(t,h,0)<0&&i.push(h)}return i}var r=e(123),o=e(141),a=e(150),s=200;t.exports=i},{123:123,141:141,150:150}],113:[function(e,t,n){var i=e(121),r=e(147),o=r(i);t.exports=o},{121:121,147:147}],114:[function(e,t,n){function i(e,t){var n=!0;return r(e,function(e,i,r){return n=!!t(e,i,r)}),n}var r=e(113);t.exports=i},{113:113}],115:[function(e,t,n){function i(e,t){var n=[];return r(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n}var r=e(113);t.exports=i},{113:113}],116:[function(e,t,n){function i(e,t,n,i){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=i?n:e,!1}),r}t.exports=i},{}],117:[function(e,t,n){function i(e,t,n){for(var i=e.length,r=n?i:-1;n?r--:++r<i;)if(t(e[r],r,e))return r;return-1}t.exports=i},{}],118:[function(e,t,n){function i(e,t,n,p){p||(p=[]);for(var l=-1,u=e.length;++l<u;){var f=e[l];c(f)&&s(f)&&(n||a(f)||o(f))?t?i(f,t,n,p):r(p,f):n||(p[p.length]=f)}return p}var r=e(103),o=e(187),a=e(188),s=e(167),c=e(173);t.exports=i},{103:103,167:167,173:173,187:187,188:188}],119:[function(e,t,n){var i=e(148),r=i();t.exports=r},{148:148}],120:[function(e,t,n){function i(e,t){return r(e,t,o)}var r=e(119),o=e(199);t.exports=i},{119:119,199:199}],121:[function(e,t,n){function i(e,t){return r(e,t,o)}var r=e(119),o=e(198);t.exports=i},{119:119,198:198}],122:[function(e,t,n){function i(e,t,n){if(null!=e){void 0!==n&&n in r(e)&&(t=[n]);for(var i=0,o=t.length;null!=e&&i<o;)e=e[t[i++]];return i&&i==o?e:void 0}}var r=e(184);t.exports=i},{184:184}],123:[function(e,t,n){function i(e,t,n){if(t!==t)return r(e,n);for(var i=n-1,o=e.length;++i<o;)if(e[i]===t)return i;return-1}var r=e(166);t.exports=i},{166:166}],124:[function(e,t,n){function i(e,t,n,s,c,p){return e===t||(null==e||null==t||!o(e)&&!a(t)?e!==e&&t!==t:r(e,t,i,n,s,c,p))}var r=e(125),o=e(192),a=e(173);t.exports=i},{125:125,173:173,192:192}],125:[function(e,t,n){function i(e,t,n,i,f,d,y){var g=s(e),v=s(t),x=l,E=l;g||(x=m.call(e),x==p?x=u:x!=u&&(g=c(e))),v||(E=m.call(t),E==p?E=u:E!=u&&(v=c(t)));var b=x==u,w=E==u,_=x==E;if(_&&!g&&!b)return o(e,t,x);if(!f){var A=b&&h.call(e,"__wrapped__"),T=w&&h.call(t,"__wrapped__");if(A||T)return n(A?e.value():e,T?t.value():t,i,f,d,y)}if(!_)return!1;d||(d=[]),y||(y=[]);for(var S=d.length;S--;)if(d[S]==e)return y[S]==t;d.push(e),y.push(t);var C=(g?r:a)(e,t,n,i,f,d,y);return d.pop(),y.pop(),C}var r=e(158),o=e(159),a=e(160),s=e(188),c=e(195),p="[object Arguments]",l="[object Array]",u="[object Object]",f=Object.prototype,h=f.hasOwnProperty,m=f.toString;t.exports=i},{158:158,159:159,160:160,188:188,195:195}],126:[function(e,t,n){function i(e,t,n){var i=t.length,a=i,s=!n;if(null==e)return!a;for(e=o(e);i--;){var c=t[i];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<a;){c=t[i];var p=c[0],l=e[p],u=c[1];if(s&&c[2]){if(void 0===l&&!(p in e))return!1}else{var f=n?n(l,u,p):void 0;if(!(void 0===f?r(u,l,n,!0):f))return!1}}return!0}var r=e(124),o=e(184);t.exports=i},{124:124,184:184}],127:[function(e,t,n){function i(){}t.exports=i},{}],128:[function(e,t,n){function i(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++n]=t(e,r,o)}),i}var r=e(113),o=e(167);t.exports=i},{113:113,167:167}],129:[function(e,t,n){function i(e){var t=o(e);if(1==t.length&&t[0][2]){var n=t[0][0],i=t[0][1];return function(e){return null!=e&&(e[n]===i&&(void 0!==i||n in a(e)))}}return function(e){return r(e,t)}}var r=e(126),o=e(164),a=e(184);t.exports=i},{126:126,164:164,184:184}],130:[function(e,t,n){function i(e,t){var n=s(e),i=c(e)&&p(t),h=e+"";return e=f(e),function(s){if(null==s)return!1;var c=h;if(s=u(s),(n||!i)&&!(c in s)){if(null==(s=1==e.length?s:r(s,a(e,0,-1))))return!1;c=l(e),s=u(s)}return s[c]===t?void 0!==t||c in s:o(t,s[c],void 0,!0)}}var r=e(122),o=e(124),a=e(137),s=e(188),c=e(170),p=e(174),l=e(80),u=e(184),f=e(185);t.exports=i},{122:122,124:124,137:137,170:170,174:174,184:184,185:185,188:188,80:80}],131:[function(e,t,n){function i(e,t,n,f,h){if(!c(e))return e;var m=s(t)&&(a(t)||l(t)),d=m?void 0:u(t);return r(d||t,function(r,a){if(d&&(a=r,r=t[a]),p(r))f||(f=[]),h||(h=[]),o(e,t,a,i,n,f,h);else{var s=e[a],c=n?n(s,r,a,e,t):void 0,l=void 0===c;l&&(c=r),void 0===c&&(!m||a in e)||!l&&(c===c?c===s:s!==s)||(e[a]=c)}}),e}var r=e(99),o=e(132),a=e(188),s=e(167),c=e(192),p=e(173),l=e(195),u=e(198);t.exports=i},{132:132,167:167,173:173,188:188,192:192,195:195,198:198,99:99}],132:[function(e,t,n){function i(e,t,n,i,u,f,h){for(var m=f.length,d=t[n];m--;)if(f[m]==d)return void(e[n]=h[m]);var y=e[n],g=u?u(y,d,n,e,t):void 0,v=void 0===g;v&&(g=d,s(d)&&(a(d)||p(d))?g=a(y)?y:s(y)?r(y):[]:c(d)||o(d)?g=o(y)?l(y):c(y)?y:{}:v=!1),f.push(d),h.push(g),v?e[n]=i(g,d,u,f,h):(g===g?g!==y:y===y)&&(e[n]=g)}var r=e(98),o=e(187),a=e(188),s=e(167),c=e(193),p=e(195),l=e(196);t.exports=i},{167:167,187:187,188:188,193:193,195:195,196:196,98:98}],133:[function(e,t,n){function i(e){return function(t){return null==t?void 0:t[e]}}t.exports=i},{}],134:[function(e,t,n){function i(e){var t=e+"";return e=o(e),function(n){return r(n,e,t)}}var r=e(122),o=e(185);t.exports=i},{122:122,185:185}],135:[function(e,t,n){function i(e,t,n,i,r){return r(e,function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)}),n}t.exports=i},{}],136:[function(e,t,n){var i=e(204),r=e(176),o=r?function(e,t){return r.set(e,t),e}:i;t.exports=o},{176:176,204:204}],137:[function(e,t,n){function i(e,t,n){var i=-1,r=e.length;t=null==t?0:+t||0,t<0&&(t=-t>r?0:r+t),n=void 0===n||n>r?r:+n||0,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i<r;)o[i]=e[i+t];return o}t.exports=i},{}],138:[function(e,t,n){function i(e,t){var n;return r(e,function(e,i,r){return!(n=t(e,i,r))}),!!n}var r=e(113);t.exports=i},{113:113}],139:[function(e,t,n){function i(e){return null==e?"":e+""}t.exports=i},{}],140:[function(e,t,n){function i(e,t,n){if("function"!=typeof e)return r;if(void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,r){return e.call(t,n,i,r)};case 4:return function(n,i,r,o){return e.call(t,n,i,r,o)};case 5:return function(n,i,r,o,a){return e.call(t,n,i,r,o,a)}}return function(){return e.apply(t,arguments)}}var r=e(204);t.exports=i},{204:204}],141:[function(e,t,n){function i(e,t){var n=e.data;return("string"==typeof t||r(t)?n.set.has(t):n.hash[t])?0:-1}var r=e(192);t.exports=i},{192:192}],142:[function(e,t,n){function i(e){var t=this.data;"string"==typeof e||r(e)?t.set.add(e):t.hash[e]=!0}var r=e(192);t.exports=i},{192:192}],143:[function(e,t,n){function i(e,t,n){for(var i=n.length,o=-1,a=r(e.length-i,0),s=-1,c=t.length,p=Array(c+a);++s<c;)p[s]=t[s];for(;++o<i;)p[n[o]]=e[o];for(;a--;)p[s++]=e[o++];return p}var r=Math.max;t.exports=i},{}],144:[function(e,t,n){function i(e,t,n){for(var i=-1,o=n.length,a=-1,s=r(e.length-o,0),c=-1,p=t.length,l=Array(s+p);++a<s;)l[a]=e[a];for(var u=a;++c<p;)l[u+c]=t[c];for(;++i<o;)l[u+n[i]]=e[a++];return l}var r=Math.max;t.exports=i},{}],145:[function(e,t,n){function i(e,t){return function(n,i,s){var c=t?t():{};if(i=r(i,s,3),a(n))for(var p=-1,l=n.length;++p<l;){var u=n[p];e(c,u,i(u,p,n),n)}else o(n,function(t,n,r){e(c,t,i(t,n,r),r)});return c}}var r=e(108),o=e(113),a=e(188);t.exports=i},{108:108,113:113,188:188}],146:[function(e,t,n){function i(e){return a(function(t,n){var i=-1,a=null==t?0:n.length,s=a>2?n[a-2]:void 0,c=a>2?n[2]:void 0,p=a>1?n[a-1]:void 0;for("function"==typeof s?(s=r(s,p,5),a-=2):(s="function"==typeof p?p:void 0,a-=s?1:0),c&&o(n[0],n[1],c)&&(s=a<3?void 0:s,a=1);++i<a;){var l=n[i];l&&e(t,l,s)}return t})}var r=e(140),o=e(169),a=e(94);t.exports=i},{140:140,169:169,94:94}],147:[function(e,t,n){function i(e,t){return function(n,i){var s=n?r(n):0;if(!o(s))return e(n,i);for(var c=t?s:-1,p=a(n);(t?c--:++c<s)&&i(p[c],c,p)!==!1;);return n}}var r=e(163),o=e(172),a=e(184);t.exports=i},{163:163,172:172,184:184}],148:[function(e,t,n){function i(e){return function(t,n,i){for(var o=r(t),a=i(t),s=a.length,c=e?s:-1;e?c--:++c<s;){var p=a[c];if(n(o[p],p,o)===!1)break}return t}}var r=e(184);t.exports=i},{184:184}],149:[function(e,t,n){(function(n){function i(e,t){function i(){return(this&&this!==n&&this instanceof i?o:e).apply(t,arguments)}var o=r(e);return i}var r=e(151);t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{151:151}],150:[function(e,t,n){(function(n){function i(e){return s&&a?new r(e):null}var r=e(97),o=e(165),a=o(n,"Set"),s=o(Object,"create");t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{165:165,97:97}],151:[function(e,t,n){function i(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),i=e.apply(n,t);return o(i)?i:n}}var r=e(110),o=e(192);t.exports=i},{110:110,192:192}],152:[function(e,t,n){function i(e,t){return function(n,i,c){if(i=r(i,c,3),s(n)){var p=a(n,i,t);return p>-1?n[p]:void 0}return o(n,i,e)}}var r=e(108),o=e(116),a=e(117),s=e(188);t.exports=i},{108:108,116:116,117:117,188:188}],153:[function(e,t,n){function i(e,t){return function(n,i,a){return"function"==typeof i&&void 0===a&&o(n)?e(n,i):t(n,r(i,a,3))}}var r=e(140),o=e(188);t.exports=i},{140:140,188:188}],154:[function(e,t,n){(function(n){function i(e,t,b,w,_,A,T,S,C,R){function N(){for(var m=arguments.length,d=m,y=Array(m);d--;)y[d]=arguments[d];if(w&&(y=o(y,w,_)),A&&(y=a(y,A,T)),O||I){var x=N.placeholder,L=l(y,x);if((m-=L.length)<R){var F=S?r(S):void 0,j=E(R-m,0),V=O?L:void 0,W=O?void 0:L,G=O?y:void 0,U=O?void 0:y;t|=O?g:v,t&=~(O?v:g),k||(t&=~(f|h));var z=[e,t,b,G,V,U,W,F,C,j],Y=i.apply(void 0,z);return c(e)&&u(Y,z),Y.placeholder=x,Y}}var H=D?b:this,$=P?H[e]:e;return S&&(y=p(y,S)),M&&C<y.length&&(y.length=C),this&&this!==n&&this instanceof N&&($=B||s(e)),$.apply(H,y)}var M=t&x,D=t&f,P=t&h,O=t&d,k=t&m,I=t&y,B=P?void 0:s(e);return N}var r=e(98),o=e(143),a=e(144),s=e(151),c=e(171),p=e(180),l=e(181),u=e(182),f=1,h=2,m=4,d=8,y=16,g=32,v=64,x=128,E=Math.max;t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{143:143,144:144,151:151,171:171,180:180,181:181,182:182,98:98}],155:[function(e,t,n){(function(n){function i(e,t,i,a){function s(){for(var t=-1,r=arguments.length,o=-1,l=a.length,u=Array(l+r);++o<l;)u[o]=a[o];for(;r--;)u[o++]=arguments[++t];return(this&&this!==n&&this instanceof s?p:e).apply(c?i:this,u)}var c=t&o,p=r(e);return s}var r=e(151),o=1;t.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{151:151}],156:[function(e,t,n){function i(e,t){return function(n,i,s,c){var p=arguments.length<3;return"function"==typeof i&&void 0===c&&a(n)?e(n,i,s,p):o(n,r(i,c,4),s,p,t)}}var r=e(108),o=e(135),a=e(188);t.exports=i},{108:108,135:135,188:188}],157:[function(e,t,n){function i(e,t,n,i,g,v,x,E){var b=t&f;if(!b&&"function"!=typeof e)throw new TypeError(d);var w=i?i.length:0;if(w||(t&=~(h|m),i=g=void 0),w-=g?g.length:0,t&m){var _=i,A=g;i=g=void 0}var T=b?void 0:c(e),S=[e,t,n,i,g,_,A,v,x,E];if(T&&(p(S,T),t=S[1],E=S[9]),S[9]=null==E?b?0:e.length:y(E-w,0)||0,t==u)var C=o(S[0],S[2]);else C=t!=h&&t!=(u|h)||S[4].length?a.apply(void 0,S):s.apply(void 0,S);return(T?r:l)(C,S)}var r=e(136),o=e(149),a=e(154),s=e(155),c=e(161),p=e(175),l=e(182),u=1,f=2,h=32,m=64,d="Expected a function",y=Math.max;t.exports=i},{136:136,149:149,154:154,155:155,161:161,175:175,182:182}],158:[function(e,t,n){function i(e,t,n,i,o,a,s){var c=-1,p=e.length,l=t.length;if(p!=l&&!(o&&l>p))return!1;for(;++c<p;){var u=e[c],f=t[c],h=i?i(o?f:u,o?u:f,c):void 0;if(void 0!==h){if(h)continue;return!1}if(o){if(!r(t,function(e){return u===e||n(u,e,i,o,a,s)}))return!1}else if(u!==f&&!n(u,f,i,o,a,s))return!1}return!0}var r=e(105);t.exports=i},{105:105}],159:[function(e,t,n){function i(e,t,n){switch(n){case r:case o:return+e==+t;case a:return e.name==t.name&&e.message==t.message;case s:return e!=+e?t!=+t:e==+t;case c:case p:return e==t+""}return!1}var r="[object Boolean]",o="[object Date]",a="[object Error]",s="[object Number]",c="[object RegExp]",p="[object String]";t.exports=i},{}],160:[function(e,t,n){function i(e,t,n,i,o,s,c){var p=r(e),l=p.length;if(l!=r(t).length&&!o)return!1;for(var u=l;u--;){var f=p[u];if(!(o?f in t:a.call(t,f)))return!1}for(var h=o;++u<l;){f=p[u];var m=e[f],d=t[f],y=i?i(o?d:m,o?m:d,f):void 0;if(!(void 0===y?n(m,d,i,o,s,c):y))return!1;h||(h="constructor"==f)}if(!h){var g=e.constructor,v=t.constructor;if(g!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof v&&v instanceof v))return!1}return!0}var r=e(198),o=Object.prototype,a=o.hasOwnProperty;t.exports=i},{198:198}],161:[function(e,t,n){var i=e(176),r=e(205),o=i?function(e){return i.get(e)}:r;t.exports=o},{176:176,205:205}],162:[function(e,t,n){function i(e){for(var t=e.name+"",n=r[t],i=n?n.length:0;i--;){var o=n[i],a=o.func;if(null==a||a==e)return o.name}return t}var r=e(179);t.exports=i},{179:179}],163:[function(e,t,n){var i=e(133),r=i("length");t.exports=r},{133:133}],164:[function(e,t,n){function i(e){for(var t=o(e),n=t.length;n--;)t[n][2]=r(t[n][1]);return t}var r=e(174),o=e(202);t.exports=i},{174:174,202:202}],165:[function(e,t,n){function i(e,t){var n=null==e?void 0:e[t];return r(n)?n:void 0}var r=e(190);t.exports=i},{190:190}],166:[function(e,t,n){function i(e,t,n){for(var i=e.length,r=t+(n?0:-1);n?r--:++r<i;){var o=e[r];if(o!==o)return r}return-1}t.exports=i},{}],167:[function(e,t,n){function i(e){return null!=e&&o(r(e))}var r=e(163),o=e(172);t.exports=i},{163:163,172:172}],168:[function(e,t,n){function i(e,t){return e="number"==typeof e||r.test(e)?+e:-1,t=null==t?o:t,e>-1&&e%1==0&&e<t}var r=/^\d+$/,o=9007199254740991;t.exports=i},{}],169:[function(e,t,n){function i(e,t,n){if(!a(n))return!1;var i=typeof t;if("number"==i?r(n)&&o(t,n.length):"string"==i&&t in n){var s=n[t];return e===e?e===s:s!==s}return!1}var r=e(167),o=e(168),a=e(192);t.exports=i},{167:167,168:168,192:192}],170:[function(e,t,n){function i(e,t){var n=typeof e;return!!("string"==n&&s.test(e)||"number"==n)||!r(e)&&(!a.test(e)||null!=t&&e in o(t))}var r=e(188),o=e(184),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=i},{184:184,188:188}],171:[function(e,t,n){function i(e){var t=a(e),n=s[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var i=o(n);return!!i&&e===i[0]}var r=e(95),o=e(161),a=e(162),s=e(81);t.exports=i},{161:161,162:162,81:81,95:95}],172:[function(e,t,n){function i(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}var r=9007199254740991;t.exports=i},{}],173:[function(e,t,n){function i(e){return!!e&&"object"==typeof e}t.exports=i},{}],174:[function(e,t,n){function i(e){return e===e&&!r(e)}var r=e(192);t.exports=i},{192:192}],175:[function(e,t,n){function i(e,t){var n=e[1],i=t[1],d=n|i,y=d<u,g=i==u&&n==l||i==u&&n==f&&e[7].length<=t[8]||i==(u|f)&&n==l;if(!y&&!g)return e;i&c&&(e[2]=t[2],d|=n&c?0:p);var v=t[3];if(v){var x=e[3];e[3]=x?o(x,v,t[4]):r(v),e[4]=x?s(e[3],h):r(t[4])}return v=t[5],v&&(x=e[5],e[5]=x?a(x,v,t[6]):r(v),e[6]=x?s(e[5],h):r(t[6])),v=t[7],v&&(e[7]=r(v)),i&u&&(e[8]=null==e[8]?t[8]:m(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=d,e}var r=e(98),o=e(143),a=e(144),s=e(181),c=1,p=4,l=8,u=128,f=256,h="__lodash_placeholder__",m=Math.min;t.exports=i},{143:143,144:144,181:181,98:98}],176:[function(e,t,n){(function(n){var i=e(165),r=i(n,"WeakMap"),o=r&&new r;t.exports=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{165:165}],177:[function(e,t,n){function i(e,t){e=r(e);for(var n=-1,i=t.length,o={};++n<i;){var a=t[n];a in e&&(o[a]=e[a])}return o}var r=e(184);t.exports=i},{184:184}],178:[function(e,t,n){function i(e,t){var n={};return r(e,function(e,i,r){t(e,i,r)&&(n[i]=e)}),n}var r=e(120);t.exports=i},{120:120}],179:[function(e,t,n){var i={};t.exports=i},{}],180:[function(e,t,n){function i(e,t){for(var n=e.length,i=a(t.length,n),s=r(e);i--;){var c=t[i];e[i]=o(c,n)?s[c]:void 0}return e}var r=e(98),o=e(168),a=Math.min;t.exports=i},{168:168,98:98}],181:[function(e,t,n){function i(e,t){for(var n=-1,i=e.length,o=-1,a=[];++n<i;)e[n]===t&&(e[n]=r,a[++o]=n);return a}var r="__lodash_placeholder__";t.exports=i},{}],182:[function(e,t,n){var i=e(136),r=e(90),o=function(){var e=0,t=0;return function(n,o){var a=r(),s=16-(a-t);if(t=a,s>0){if(++e>=150)return n}else e=0;return i(n,o)}}();t.exports=o},{136:136,90:90}],183:[function(e,t,n){function i(e){for(var t=c(e),n=t.length,i=n&&e.length,p=!!i&&s(i)&&(o(e)||r(e)),u=-1,f=[];++u<n;){var h=t[u];(p&&a(h,i)||l.call(e,h))&&f.push(h)}return f}var r=e(187),o=e(188),a=e(168),s=e(172),c=e(199),p=Object.prototype,l=p.hasOwnProperty;t.exports=i},{168:168,172:172,187:187,188:188,199:199}],184:[function(e,t,n){function i(e){return r(e)?e:Object(e)}var r=e(192);t.exports=i},{192:192}],185:[function(e,t,n){function i(e){if(o(e))return e;var t=[];return r(e).replace(a,function(e,n,i,r){t.push(i?r.replace(s,"$1"):n||e)}),t}var r=e(139),o=e(188),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,s=/\\(\\)?/g;t.exports=i},{139:139,188:188}],186:[function(e,t,n){function i(e){return e instanceof r?e.clone():new o(e.__wrapped__,e.__chain__,a(e.__actions__))}var r=e(95),o=e(96),a=e(98);t.exports=i},{95:95,96:96,98:98}],187:[function(e,t,n){function i(e){return o(e)&&r(e)&&s.call(e,"callee")&&!c.call(e,"callee")}var r=e(167),o=e(173),a=Object.prototype,s=a.hasOwnProperty,c=a.propertyIsEnumerable;t.exports=i},{167:167,173:173}],188:[function(e,t,n){var i=e(165),r=e(172),o=e(173),a=Object.prototype,s=a.toString,c=i(Array,"isArray"),p=c||function(e){return o(e)&&r(e.length)&&"[object Array]"==s.call(e)};t.exports=p},{165:165,172:172,173:173}],189:[function(e,t,n){function i(e){return r(e)&&s.call(e)==o}var r=e(192),o="[object Function]",a=Object.prototype,s=a.toString;t.exports=i},{192:192}],190:[function(e,t,n){function i(e){return null!=e&&(r(e)?l.test(c.call(e)):o(e)&&a.test(e))}var r=e(189),o=e(173),a=/^\[object .+?Constructor\]$/,s=Object.prototype,c=Function.prototype.toString,p=s.hasOwnProperty,l=RegExp("^"+c.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=i},{173:173,189:189}],191:[function(e,t,n){function i(e){return"number"==typeof e||r(e)&&s.call(e)==o}var r=e(173),o="[object Number]",a=Object.prototype,s=a.toString;t.exports=i},{173:173}],192:[function(e,t,n){function i(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}t.exports=i},{}],193:[function(e,t,n){function i(e){var t;if(!a(e)||l.call(e)!=s||o(e)||!p.call(e,"constructor")&&"function"==typeof(t=e.constructor)&&!(t instanceof t))return!1;var n;return r(e,function(e,t){n=t}),void 0===n||p.call(e,n)}var r=e(120),o=e(187),a=e(173),s="[object Object]",c=Object.prototype,p=c.hasOwnProperty,l=c.toString;t.exports=i},{120:120,173:173,187:187}],194:[function(e,t,n){function i(e){return"string"==typeof e||r(e)&&s.call(e)==o}var r=e(173),o="[object String]",a=Object.prototype,s=a.toString;t.exports=i},{173:173}],195:[function(e,t,n){function i(e){return o(e)&&r(e.length)&&!!a[c.call(e)]}var r=e(172),o=e(173),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1;var s=Object.prototype,c=s.toString;t.exports=i},{172:172,173:173}],196:[function(e,t,n){function i(e){return r(e,o(e))}var r=e(109),o=e(199);t.exports=i},{109:109,199:199}],197:[function(e,t,n){var i=e(106),r=e(107),o=e(146),a=o(function(e,t,n){return n?i(e,t,n):r(e,t)});t.exports=a},{106:106,107:107,146:146}],198:[function(e,t,n){var i=e(165),r=e(167),o=e(192),a=e(183),s=i(Object,"keys"),c=s?function(e){var t=null==e?void 0:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&r(e)?a(e):o(e)?s(e):[]}:a;t.exports=c},{165:165,167:167,183:183,192:192}],199:[function(e,t,n){function i(e){if(null==e)return[];c(e)||(e=Object(e));var t=e.length;t=t&&s(t)&&(o(e)||r(e))&&t||0;for(var n=e.constructor,i=-1,p="function"==typeof n&&n.prototype===e,u=Array(t),f=t>0;++i<t;)u[i]=i+"";for(var h in e)f&&a(h,t)||"constructor"==h&&(p||!l.call(e,h))||u.push(h);return u}var r=e(187),o=e(188),a=e(168),s=e(172),c=e(192),p=Object.prototype,l=p.hasOwnProperty;t.exports=i},{168:168,172:172,187:187,188:188,192:192}],200:[function(e,t,n){var i=e(131),r=e(146),o=r(i);t.exports=o},{131:131,146:146}],201:[function(e,t,n){var i=e(102),r=e(112),o=e(118),a=e(140),s=e(199),c=e(177),p=e(178),l=e(94),u=l(function(e,t){if(null==e)return{};if("function"!=typeof t[0]){var t=i(o(t),String);return c(e,r(s(e),t))}var n=a(t[0],t[1],3);return p(e,function(e,t,i){return!n(e,t,i)})});t.exports=u},{102:102,112:112,118:118,140:140,177:177,178:178,199:199,94:94}],202:[function(e,t,n){function i(e){e=o(e);for(var t=-1,n=r(e),i=n.length,a=Array(i);++t<i;){var s=n[t];a[t]=[s,e[s]]}return a}var r=e(198),o=e(184);t.exports=i},{184:184,198:198}],203:[function(e,t,n){var i=e(118),r=e(140),o=e(177),a=e(178),s=e(94),c=s(function(e,t){return null==e?{}:"function"==typeof t[0]?a(e,r(t[0],t[1],3)):o(e,i(t))});t.exports=c},{118:118,140:140,177:177,178:178,94:94}],204:[function(e,t,n){function i(e){return e}t.exports=i},{}],205:[function(e,t,n){function i(){}t.exports=i},{}],206:[function(e,t,n){function i(e){return a(e)?r(e):o(e)}var r=e(133),o=e(134),a=e(170);t.exports=i},{133:133,134:134,170:170}],207:[function(e,t,n){t.exports=function(e,t,n){return 2==arguments.length?e.getAttribute(t):null===n?e.removeAttribute(t):(e.setAttribute(t,n),e)}},{}],208:[function(e,t,n){t.exports=e(24)},{24:24}],209:[function(e,t,n){t.exports=function(e){for(var t;e.childNodes.length;)t=e.childNodes[0],e.removeChild(t);return e}},{}],210:[function(e,t,n){t.exports=e(25)},{25:25}],211:[function(e,t,n){t.exports=e(26)},{26:26}],212:[function(e,t,n){t.exports=e(78)},{78:78}],213:[function(e,t,n){t.exports=e(27)},{27:27}],214:[function(e,t,n){t.exports=e(30)},{30:30}],215:[function(e,t,n){t.exports=function(e){e.parentNode&&e.parentNode.removeChild(e)}},{}],216:[function(e,t,n){"use strict";function i(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(e){return e.charAt(0).toLowerCase()+e.slice(1)}function o(e){return e.xml&&"lowerCase"===e.xml.tagAlias}function a(e){return e.xml&&e.xml.serialize}t.exports.aliasToName=function(e,t){return o(t)?i(e):e},t.exports.nameToAlias=function(e,t){return o(t)?r(e):e},t.exports.DEFAULT_NS_MAP={xsi:"http://www.w3.org/2001/XMLSchema-instance"};var s=t.exports.XSI_TYPE="xsi:type";t.exports.serializeAsType=function(e){return a(e)===s},t.exports.serializeAsProperty=function(e){return"property"===a(e)}},{}],217:[function(e,t,n){"use strict";function i(e){var t=e.attributes;return v(t,function(e,t,n){var i,r;return t.local?(r=S(t.name,t.prefix),i=r.name):i=t.prefix,e[i]=t.value,e},{})}function r(e,t,n){var i,r=S(t.value),o=e.ns[r.prefix||""],a=r.localName,s=o&&n.getPackage(o)
  ;s&&(i=s.xml&&s.xml.typePrefix,i&&0===a.indexOf(i)&&(a=a.slice(i.length)),t.value=s.prefix+":"+a)}function o(e,t,n){var i,a;if(i=e.uri||n){var s=t.getPackage(i);a=s?s.prefix:e.prefix,e.prefix=a,e.uri=i}x(e.attributes,function(n){n.uri===P&&"type"===n.local&&r(e,n,t),o(n,t,null)})}function a(e){return new Error(e)}function s(e){return e.$descriptor}function c(e){b(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw a("expected element");var t,n=this.elementsById,i=s(e),r=i.idProperty;if(r&&(t=e.get(r.name))){if(n[t])throw a("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function p(){}function l(){}function u(){}function f(e,t){this.property=e,this.context=t}function h(e,t){this.element=t,this.propertyDesc=e}function m(){}function d(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function y(e,t,n){this.model=e,this.context=n}function g(e){e instanceof T&&(e={model:e}),b(this,{lax:!1},e)}var v=e(88),x=e(85),E=e(84),b=e(197),w=e(93),_=e(232),A=e(231).parser,T=e(219),S=e(224).parseName,C=e(227),R=C.coerceType,N=C.isSimple,M=e(216),D=M.XSI_TYPE,P=M.DEFAULT_NS_MAP.xsi,O=M.serializeAsType,k=M.aliasToName;p.prototype.handleEnd=function(){},p.prototype.handleText=function(){},p.prototype.handleNode=function(){},l.prototype=Object.create(p.prototype),l.prototype.handleNode=function(){return this},u.prototype=Object.create(p.prototype),u.prototype.handleText=function(e){this.body=(this.body||"")+e},f.prototype=Object.create(u.prototype),f.prototype.handleNode=function(e){if(this.element)throw a("expected no sub nodes");return this.element=this.createReference(e),this},f.prototype.handleEnd=function(){this.element.id=this.body},f.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},h.prototype=Object.create(u.prototype),h.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=R(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},m.prototype=Object.create(u.prototype),m.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},d.prototype=Object.create(m.prototype),d.prototype.addReference=function(e){this.context.addReference(e)},d.prototype.handleEnd=function(){var e=this.body,t=this.element,n=s(t),i=n.bodyProperty;i&&void 0!==e&&(e=R(i.type,e),t.set(i.name,e))},d.prototype.createElement=function(e){var t=i(e),n=this.type,r=s(n),o=this.context,a=new n({});return x(t,function(e,t){var n,i=r.propertiesByName[t];i&&i.isReference?i.isMany?(n=e.split(" "),x(n,function(e){o.addReference({element:a,property:i.ns.name,id:e})})):o.addReference({element:a,property:i.ns.name,id:e}):(i&&(e=R(i.type,e)),a.set(t,e))}),a},d.prototype.getPropertyForNode=function(e){var t,n,i,r=S(e.local,e.prefix),o=this.type,c=this.model,p=s(o),l=r.name,u=p.propertiesByName[l];if(u)return O(u)&&(i=e.attributes[D])?(t=i.value,n=c.getType(t),b({},u,{effectiveType:s(n).name})):u;if(c.getPackage(r.prefix)){if(t=r.prefix+":"+k(r.localName,p.$pkg),n=c.getType(t),u=E(p.properties,function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)}))return b({},u,{effectiveType:s(n).name})}else if(u=E(p.properties,function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type}))return u;throw a("unrecognized element <"+r.name+">")},d.prototype.toString=function(){return"ElementDescriptor["+s(this.type).name+"]"},d.prototype.valueHandler=function(e,t){return new h(e,t)},d.prototype.referenceHandler=function(e){return new f(e,this.context)},d.prototype.handler=function(e){return"Element"===e?new y(this.model,e,this.context):new d(this.model,e,this.context)},d.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,n=t.effectiveType||t.type,N(n))return this.valueHandler(t,i);r=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e);var o=r.element;return void 0!==o&&(t.isMany?i.get(t.name).push(o):i.set(t.name,o),t.isReference?(b(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},y.prototype=Object.create(m.prototype),y.prototype.createElement=function(e){var t=e.name,n=e.prefix,i=e.ns[n],r=e.attributes;return this.model.createAny(t,i,r)},y.prototype.handleChild=function(e){var t,n=new y(this.model,"Element",this.context).handleNode(e),i=this.element,r=n.element;return void 0!==r&&(t=i.$children=i.$children||[],t.push(r),r.$parent=i),n},y.prototype.handleText=function(e){this.body=this.body||""+e},y.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},g.prototype.fromXML=function(e,t,n){function i(){var e,t,n=y.elementsById,i=y.references;for(e=0;t=i[e];e++){var r=t.element,o=n[t.id],a=s(r).propertiesByName[t.property];if(o||y.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),a.isMany){var c=r.get(a.name),p=c.indexOf(t);p===-1&&(p=c.length),o?c[p]=o:c.splice(p,1)}else r.set(a.name,o)}}function r(e){v.pop().handleEnd()}function p(e){var t=v.peek();o(e,h);try{v.push(t.handleNode(e))}catch(t){var n=this.line,i=this.column,r="unparsable content <"+e.name+"> detected\n\tline: "+n+"\n\tcolumn: "+i+"\n\tnested error: "+t.message;if(!m)throw console.error("could not parse document"),console.error(t),a(r);y.addWarning({message:r,error:t}),console.warn("could not parse node"),console.warn(t),v.push(new l)}}function u(e){v.peek().handleText(e)}var f=t.rootHandler;t instanceof d?(f=t,t={}):"string"==typeof t?(f=this.handler(t),t={}):"string"==typeof f&&(f=this.handler(f));var h=this.model,m=this.lax,y=new c(b({},t,{rootHandler:f})),g=new A(!0,{xmlns:!0,trim:!0}),v=new _;f.context=y,v.push(f),g.onopentag=p,g.oncdata=g.ontext=u,g.onclosetag=r,g.onend=i,w(function(){var t;try{g.write(e).close()}catch(e){t=e}n(t,t?void 0:f.element,y)})},g.prototype.handler=function(e){return new d(this.model,e)},t.exports=g,t.exports.ElementHandler=d},{197:197,216:216,219:219,224:224,227:227,231:231,232:232,84:84,85:85,88:88,93:93}],218:[function(e,t,n){"use strict";function i(e){return b(e)?e:(e.prefix?e.prefix+":":"")+e.localName}function r(e){function t(t){return e.used[t.uri]}function n(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}var i=[].concat(e.wellknown,e.custom);return x(w(i,t),n)}function o(e,t){return t.isGeneric?t.name:_({localName:C(t.ns.localName,t.$pkg)},e)}function a(e,t){return _({localName:t.ns.localName},e)}function s(e){var t=e.$descriptor;return w(t.properties,function(t){var n=t.name;if(t.isVirtual)return!1;if(!e.hasOwnProperty(n))return!1;var i=e[n];return i!==t.default&&(null!==i&&(!t.isMany||i.length))})}function c(e){return e=b(e)?e:""+e,e.replace(D,function(e){return"&#"+k[e]+";"})}function p(e){return w(e,function(e){return e.isAttr})}function l(e){return w(e,function(e){return!e.isAttr})}function u(e,t){this.ns=t}function f(){}function h(e){this.ns=e}function m(e,t){this.body=[],this.attrs=[],this.parent=e,this.ns=t}function d(e,t){m.call(this,e,t)}function y(){this.value="",this.write=function(e){this.value+=e}}function g(e,t){var n=[""];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write("\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 v(e){function t(t,n){var i=n||new y,r=new g(i,e.format);if(e.preamble&&r.append(M),(new m).build(t).serializeTo(r),!n)return i.value}return e=_({format:!1,preamble:!0},e||{}),{toXML:t}}var x=e(87),E=e(85),b=e(194),w=e(83),_=e(197),A=e(227),T=e(224).parseName,S=e(216),C=S.nameToAlias,R=S.serializeAsType,N=S.serializeAsProperty,M='<?xml version="1.0" encoding="UTF-8"?>\n',D=/(<|>|'|"|&|\n\r|\n)/g,P=S.DEFAULT_NS_MAP,O=S.XSI_TYPE,k={"\n":"10","\n\r":"10",'"':"34","'":"39","<":"60",">":"62","&":"38"};u.prototype.build=function(e){return this.element=e,this},u.prototype.serializeTo=function(e){e.appendIndent().append("<"+i(this.ns)+">"+this.element.id+"</"+i(this.ns)+">").appendNewLine()},f.prototype.serializeValue=f.prototype.serializeTo=function(e){var t=this.escape;t&&e.append("<![CDATA["),e.append(this.value),t&&e.append("]]>")},f.prototype.build=function(e,t){return this.value=t,"String"===e.type&&t.search(D)!==-1&&(this.escape=!0),this},h.prototype=new f,h.prototype.serializeTo=function(e){e.appendIndent().append("<"+i(this.ns)+">"),this.serializeValue(e),e.append("</"+i(this.ns)+">").appendNewLine()},m.prototype.build=function(e){this.element=e;var t=this.parseNsAttributes(e);if(this.ns||(this.ns=this.nsTagName(e.$descriptor)),e.$descriptor.isGeneric)this.parseGeneric(e);else{var n=s(e);this.parseAttributes(p(n)),this.parseContainments(l(n)),this.parseGenericAttributes(e,t)}return this},m.prototype.nsTagName=function(e){return o(this.logNamespaceUsed(e.ns),e)},m.prototype.nsPropertyTagName=function(e){return a(this.logNamespaceUsed(e.ns),e)},m.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},m.prototype.nsAttributeName=function(e){var t;if(t=b(e)?T(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.isLocalNs(n)?{localName:t.localName}:_({localName:t.localName},n)},m.prototype.parseGeneric=function(e){var t=this,n=this.body,i=this.attrs;E(e,function(e,r){"$body"===r?n.push((new f).build({type:"String"},e)):"$children"===r?E(e,function(e){n.push(new m(t).build(e))}):0!==r.indexOf("$")&&i.push({name:r,value:c(e)})})},m.prototype.parseNsAttributes=function(e){var t=this,n=e.$attrs,i=e.$model,r=[];return E(n,function(e,n){var o,a=T(n);"xmlns"===a.prefix&&(o={prefix:a.localName,uri:e}),a.prefix||"xmlns"!==a.localName||(o={uri:e}),o?i.getPackage(e)?t.logNamespace(o,!0):t.logNamespaceUsed(o):r.push({name:n,value:e})}),r},m.prototype.parseGenericAttributes=function(e,t){var n=this;E(t,function(t){if(t.name!==O)try{n.addAttribute(n.nsAttributeName(t.name),t.value)}catch(n){console.warn("missing namespace information for ",t.name,"=",t.value,"on",e,n)}})},m.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;E(e,function(e){var r=i.get(e.name),o=e.isReference,a=e.isMany,s=t.nsPropertyTagName(e);if(a||(r=[r]),e.isBody)n.push((new f).build(e,r[0]));else if(A.isSimple(e.type))E(r,function(t){n.push(new h(s).build(e,t))});else if(o)E(r,function(e){n.push(new u(t,s).build(e))});else{var c=R(e),p=N(e);E(r,function(e){var i;i=c?new d(t,s):p?new m(t,s):new m(t),n.push(i.build(e))})}})},m.prototype.getNamespaces=function(){var e=this.namespaces,t=this.parent;return e||(e=this.namespaces=t?t.getNamespaces():{prefixMap:{},uriMap:{},used:{},wellknown:[],custom:[]}),e},m.prototype.logNamespace=function(e,t){var n=this.getNamespaces(),i=e.uri;return n.uriMap[i]||(n.uriMap[i]=e,t?n.wellknown.push(e):n.custom.push(e)),n.prefixMap[e.prefix]=i,e},m.prototype.logNamespaceUsed=function(e){var t=this.element,n=t.$model,i=this.getNamespaces(),r=e.prefix,o=P[r]||n&&(n.getPackage(r)||{}).uri,a=e.uri||i.prefixMap[r]||o;if(!a)throw new Error("no namespace uri given for prefix <"+e.prefix+">");return e=i.uriMap[a],e||(e=this.logNamespace({prefix:r,uri:a},o)),i.used[e.uri]||(i.used[e.uri]=e),e},m.prototype.parseAttributes=function(e){var t=this,n=this.element;E(e,function(e){var i=n.get(e.name);if(e.isReference)if(e.isMany){var r=[];E(i,function(e){r.push(e.id)}),i=r.join(" ")}else i=i.id;t.addAttribute(t.nsAttributeName(e),i)})},m.prototype.addAttribute=function(e,t){var n=this.attrs;b(t)&&(t=c(t)),n.push({name:e,value:t})},m.prototype.serializeAttributes=function(e){var t=this.attrs;!this.parent&&(t=r(this.namespaces).concat(t)),E(t,function(t){e.append(" ").append(i(t.name)).append('="').append(t.value).append('"')})},m.prototype.serializeTo=function(e){var t=this.body.length,n=!(1===this.body.length&&this.body[0]instanceof f);e.appendIndent().append("<"+i(this.ns)),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),E(this.body,function(t){t.serializeTo(e)}),n&&e.unindent().appendIndent(),e.append("</"+i(this.ns)+">")),e.appendNewLine()},d.prototype=new m,d.prototype.build=function(e){var t=e.$descriptor;this.element=e,this.typeNs=this.nsTagName(t);var n=this.typeNs,i=e.$model.getPackage(n.uri),r=i.xml&&i.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(O),(n.prefix?n.prefix+":":"")+r+t.ns.localName),m.prototype.build.call(this,e)},d.prototype.isLocalNs=function(e){return e.uri===this.typeNs.uri},t.exports=v},{194:194,197:197,216:216,224:224,227:227,83:83,85:85,87:87}],219:[function(e,t,n){t.exports=e(223)},{223:223}],220:[function(e,t,n){"use strict";function i(){}i.prototype.get=function(e){return this.$model.properties.get(this,e)},i.prototype.set=function(e,t){this.$model.properties.set(this,e,t)},t.exports=i},{}],221:[function(e,t,n){"use strict";function i(e){this.ns=e,this.name=e.name,this.allTypes=[],this.properties=[],this.propertiesByName={}}var r=e(203),o=e(197),a=e(85),s=e(224).parseName;t.exports=i,i.prototype.build=function(){return r(this,["ns","name","allTypes","properties","propertiesByName","bodyProperty","idProperty"])},i.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,n!==!1);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},i.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=r.indexOf(e);if(s===-1)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(t,n?void 0:s,a),o[i.name]=o[i.localName]=t},i.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),o=s(r[0],i),a=s(r[1],o.prefix).name,c=this.propertiesByName[a];if(!c)throw new Error("refined property <"+a+"> not found");this.replaceProperty(c,e,n),delete e.redefines},i.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},i.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},i.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},i.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},i.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},i.prototype.hasProperty=function(e){return this.propertiesByName[e]},i.prototype.addTrait=function(e,t){var n=this.allTypes;n.indexOf(e)===-1&&(a(e.properties,function(n){n=o({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,r=n.redefines;i||r?this.redefineProperty(n,i||r,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))},this),n.push(e))}},{197:197,203:203,224:224,85:85}],222:[function(e,t,n){"use strict";function i(e,t){this.model=e,this.properties=t}var r=e(85),o=e(220);t.exports=i,i.prototype.createType=function(e){function t(e){i.define(this,"$type",{value:s,enumerable:!0}),i.define(this,"$attrs",{value:{}}),i.define(this,"$parent",{writable:!0}),r(e,function(e,t){this.set(t,e)},this)}var n=this.model,i=this.properties,a=Object.create(o.prototype);r(e.properties,function(e){e.isMany||void 0===e.default||(a[e.name]=e.default)}),i.defineModel(a,n),i.defineDescriptor(a,e);var s=e.ns.name;return t.prototype=a,t.hasType=a.$instanceOf=this.model.hasType,i.defineModel(t,n),i.defineDescriptor(t,e),t}},{220:220,85:85}],223:[function(e,t,n){"use strict";function i(e){this.properties=new l(this),this.factory=new c(this,this.properties),this.registry=new p(e,this.properties),this.typeCache={}}var r=e(194),o=e(192),a=e(85),s=e(84),c=e(222),p=e(226),l=e(225),u=e(224).parseName;t.exports=i,i.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},i.prototype.getType=function(e){var t=this.typeCache,n=r(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},i.prototype.createAny=function(e,t,n){var i=u(e),r={$type:e},s={name:e,isGeneric:!0,ns:{prefix:i.prefix,localName:i.localName,uri:t}};return this.properties.defineDescriptor(r,s),this.properties.defineModel(r,this),this.properties.define(r,"$parent",{enumerable:!1,writable:!0}),a(n,function(e,t){o(e)&&void 0!==e.value?r[e.name]=e.value:r[t]=e}),r},i.prototype.getPackage=function(e){return this.registry.getPackage(e)},i.prototype.getPackages=function(){return this.registry.getPackages()},i.prototype.getElementDescriptor=function(e){return e.$descriptor},i.prototype.hasType=function(e,t){void 0===t&&(t=e,e=this);var n=e.$model.getElementDescriptor(e);return!!s(n.allTypes,function(e){return e.name===t})},i.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},i.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]}},{192:192,194:194,222:222,224:224,225:225,226:226,84:84,85:85}],224:[function(e,t,n){"use strict";t.exports.parseName=function(e,t){var n,i,r=e.split(/:/);if(1===r.length)n=e,i=t;else{if(2!==r.length)throw new Error("expected <prefix:localName> or <localName>, got "+e);n=r[1],i=r[0]}return e=(i?i+":":"")+n,{name:e,prefix:i,localName:n}}},{}],225:[function(e,t,n){"use strict";function i(e){this.model=e}function r(e){return void 0===e}function o(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}t.exports=i,i.prototype.set=function(e,t,n){var i=this.model.getPropertyDescriptor(e,t),a=i&&i.name;r(n)?i?delete e[a]:delete e.$attrs[t]:i?a in e?e[a]=n:o(e,i,n):e.$attrs[t]=n},i.prototype.get=function(e,t){var n=this.model.getPropertyDescriptor(e,t);if(!n)return e.$attrs[t];var i=n.name;return!e[i]&&n.isMany&&o(e,n,[]),e[i]},i.prototype.define=function(e,t,n){Object.defineProperty(e,t,n)},i.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},i.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})}},{}],226:[function(e,t,n){"use strict";function i(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,o(e,this.registerPackage,this)}var r=e(197),o=e(85),a=e(227),s=e(221),c=e(224).parseName,p=a.isBuiltIn;t.exports=i,i.prototype.getPackage=function(e){return this.packageMap[e]},i.prototype.getPackages=function(){return this.packages},i.prototype.registerPackage=function(e){e=r({},e),o(e.types,function(t){this.registerType(t,e)},this),this.packageMap[e.uri]=this.packageMap[e.prefix]=e,this.packages.push(e)},i.prototype.registerType=function(e,t){e=r({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:r(e.meta||{})});var n=c(e.name,t.prefix),i=n.name,a={};o(e.properties,function(e){var t=c(e.name,n.prefix),i=t.name;p(e.type)||(e.type=c(e.type,t.prefix).name),r(e,{ns:t,name:i}),a[i]=e}),r(e,{ns:n,name:i,propertiesByName:a}),o(e.extends,function(e){var t=this.typeMap[e];t.traits=t.traits||[],t.traits.push(i)},this),this.definePackage(e,t),this.typeMap[i]=e},i.prototype.mapTypes=function(e,t,n){function i(e){return r(e,!0)}function r(n,i){var r=c(n,p(n)?"":e.prefix);s.mapTypes(r,t,i)}var a=p(e.name)?{name:e.name}:this.typeMap[e.name],s=this;if(!a)throw new Error("unknown type <"+e.name+">");o(a.superClass,n?i:r),t(a,!n),o(a.traits,i)},i.prototype.getEffectiveDescriptor=function(e){var t=c(e),n=new s(t);this.mapTypes(t,function(e,t){n.addTrait(e,t)});var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},i.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})}},{197:197,221:221,224:224,227:227,85:85}],227:[function(e,t,n){"use strict";var i={String:!0,Boolean:!0,Integer:!0,Real:!0,Element:!0},r={String:function(e){return e},Boolean:function(e){return"true"===e},Integer:function(e){return parseInt(e,10)},Real:function(e){return parseFloat(e,10)}};t.exports.coerceType=function(e,t){var n=r[e];return n?n(t):t},t.exports.isBuiltIn=function(e){return!!i[e]},t.exports.isSimple=function(e){return!!r[e]}},{}],228:[function(e,t,n){t.exports=e(230),t.exports.Collection=e(229)},{229:229,230:230}],229:[function(e,t,n){"use strict";function i(e,t,n,i){var r=n.inverse;return Object.defineProperty(e,"remove",{value:function(e){var n=this.indexOf(e);return n!==-1&&(this.splice(n,1),t.unset(e,r,i)),e}}),Object.defineProperty(e,"contains",{value:function(e){return this.indexOf(e)!==-1}}),Object.defineProperty(e,"add",{value:function(e){this.contains(e)||(this.push(e),t.set(e,r,i))}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}function r(e){return e.__refs_collection===!0}t.exports.extend=i,t.exports.isExtended=r},{}],230:[function(e,t,n){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)}function r(e,t,n){Object.defineProperty(n,t.name,{enumerable:t.enumerable,value:s.extend(n[t.name]||[],e,t,n)})}function o(e,t,n){var i=t.inverse,r=n[t.name];Object.defineProperty(n,t.name,{enumerable:t.enumerable,get:function(){return r},set:function(t){if(t!==r){var o=r;r=null,o&&e.unset(o,i,n),r=t,e.set(r,i,n)}}})}function a(e,t){if(!(this instanceof a))return new a(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}var s=e(229);a.prototype.bind=function(e,t){if("string"==typeof t){if(!this.props[t])throw new Error("no property <"+t+"> in ref");t=this.props[t]}t.collection?r(this,t,e):o(this,t,e)},a.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return s.isExtended(n)||r(this,t,e),n},a.prototype.ensureBound=function(e,t){i(e,t)||this.bind(e,t)},a.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)},a.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)},t.exports=a},{229:229}],231:[function(e,t,n){(function(t){!function(n){function i(e,t){if(!(this instanceof i))return new i(e,t);var r=this;o(r),r.q=r.c="",r.bufferCheckPosition=n.MAX_BUFFER_LENGTH,r.opt=t||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!e,r.noscript=!(!e&&!r.opt.noscript),r.state=U.BEGIN,r.ENTITIES=Object.create(n.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(V)),r.trackPosition=r.opt.position!==!1,r.trackPosition&&(r.position=r.line=r.column=0),h(r,"onready")}function r(e){for(var t=Math.max(n.MAX_BUFFER_LENGTH,10),i=0,r=0,o=C.length;r<o;r++){var a=e[C[r]].length;if(a>t)switch(C[r]){case"textNode":d(e);break;case"cdata":m(e,"oncdata",e.cdata),e.cdata="";break;case"script":m(e,"onscript",e.script),e.script="";break;default:g(e,"Max buffer length exceeded: "+C[r])}i=Math.max(i,a)}e.bufferCheckPosition=n.MAX_BUFFER_LENGTH-i+e.position}function o(e){for(var t=0,n=C.length;t<n;t++)e[C[t]]=""}function a(e){d(e),""!==e.cdata&&(m(e,"oncdata",e.cdata),e.cdata=""),""!==e.script&&(m(e,"onscript",e.script),e.script="")}function s(e,t){return new c(e,t)}function c(e,t){if(!(this instanceof c))return new c(e,t);R.apply(this),this._parser=new i(e,t),this.writable=!0,this.readable=!0;var n=this;this._parser.onend=function(){n.emit("end")},this._parser.onerror=function(e){n.emit("error",e),n._parser.error=null},this._decoder=null,N.forEach(function(e){Object.defineProperty(n,"on"+e,{get:function(){return n._parser["on"+e]},set:function(t){if(!t)return n.removeAllListeners(e),n._parser["on"+e]=t;n.on(e,t)},enumerable:!0,configurable:!1})})}function p(e){return e.split("").reduce(function(e,t){return e[t]=!0,e},{})}function l(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function u(e,t){return l(e)?!!t.match(e):e[t]}function f(e,t){return!u(e,t)}function h(e,t,n){e[t]&&e[t](n)}function m(e,t,n){e.textNode&&d(e),h(e,t,n)}function d(e){e.textNode=y(e.opt,e.textNode),e.textNode&&h(e,"ontext",e.textNode),e.textNode=""}function y(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function g(e,t){return d(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,h(e,"onerror",t),e}function v(e){return e.closedRoot||x(e,"Unclosed root tag"),e.state!==U.BEGIN&&e.state!==U.TEXT&&g(e,"Unexpected end"),d(e),e.c="",e.closed=!0,h(e,"onend"),i.call(e,e.strict,e.opt),e}function x(e,t){if("object"!=typeof e||!(e instanceof i))throw new Error("bad call to strictFail");e.strict&&g(e,t)}function E(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0}function b(e,t){var n=e.indexOf(":"),i=n<0?["",e]:e.split(":"),r=i[0],o=i[1];return t&&"xmlns"===e&&(r="xmlns",o=""),{prefix:r,local:o}}function w(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName))return e.attribName=e.attribValue="";if(e.opt.xmlns){var t=b(e.attribName,!0),n=t.prefix,i=t.local;if("xmlns"===n)if("xml"===i&&e.attribValue!==F)x(e,"xml: prefix must be bound to "+F+"\nActual: "+e.attribValue);else if("xmlns"===i&&e.attribValue!==j)x(e,"xmlns: prefix must be bound to "+j+"\nActual: "+e.attribValue);else{var r=e.tag,o=e.tags[e.tags.length-1]||e;r.ns===o.ns&&(r.ns=Object.create(o.ns)),r.ns[i]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,m(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}function _(e,t){if(e.opt.xmlns){var n=e.tag,i=b(e.tagName);n.prefix=i.prefix,n.local=i.local,n.uri=n.ns[i.prefix]||"",n.prefix&&!n.uri&&(x(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=i.prefix);var r=e.tags[e.tags.length-1]||e;n.ns&&r.ns!==n.ns&&Object.keys(n.ns).forEach(function(t){m(e,"onopennamespace",{prefix:t,uri:n.ns[t]})});for(var o=0,a=e.attribList.length;o<a;o++){var s=e.attribList[o],c=s[0],p=s[1],l=b(c,!0),u=l.prefix,f=l.local,h=""==u?"":n.ns[u]||"",d={name:c,value:p,prefix:u,local:f,uri:h};u&&"xmlns"!=u&&!h&&(x(e,"Unbound namespace prefix: "+JSON.stringify(u)),d.uri=u),e.tag.attributes[c]=d,m(e,"onattribute",d)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),m(e,"onopentag",e.tag),t||(e.noscript||"script"!==e.tagName.toLowerCase()?e.state=U.TEXT:e.state=U.SCRIPT,e.tag=null,e.tagName=""),e.attribName=e.attribValue="",e.attribList.length=0}function A(e){if(!e.tagName)return x(e,"Weird empty close tag."),e.textNode+="</>",void(e.state=U.TEXT);if(e.script){if("script"!==e.tagName)return e.script+="</"+e.tagName+">",e.tagName="",void(e.state=U.SCRIPT);m(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());for(var i=n;t--;){if(e.tags[t].name===i)break;x(e,"Unexpected close tag")}if(t<0)return x(e,"Unmatched closing tag: "+e.tagName),e.textNode+="</"+e.tagName+">",void(e.state=U.TEXT);e.tagName=n;for(var r=e.tags.length;r-- >t;){var o=e.tag=e.tags.pop();e.tagName=e.tag.name,m(e,"onclosetag",e.tagName);var a={};for(var s in o.ns)a[s]=o.ns[s];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&o.ns!==c.ns&&Object.keys(o.ns).forEach(function(t){var n=o.ns[t];m(e,"onclosenamespace",{prefix:t,uri:n})})}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=U.TEXT}function T(e){var t,n=e.entity,i=n.toLowerCase(),r="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[i]?e.ENTITIES[i]:(n=i,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),r=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),r=t.toString(10))),n=n.replace(/^0+/,""),r.toLowerCase()!==n?(x(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function S(e){var t=this;if(this.error)throw this.error;if(t.closed)return g(t,"Cannot write after close. Assign an onready handler.");if(null===e)return v(t);for(var n=0,i="";t.c=i=e.charAt(n++);)switch(t.trackPosition&&(t.position++,"\n"===i?(t.line++,t.column=0):t.column++),t.state){case U.BEGIN:"<"===i?(t.state=U.OPEN_WAKA,t.startTagPosition=t.position):f(M,i)&&(x(t,"Non-whitespace before first tag."),t.textNode=i,t.state=U.TEXT);continue;case U.TEXT:if(t.sawRoot&&!t.closedRoot){for(var o=n-1;i&&"<"!==i&&"&"!==i;)(i=e.charAt(n++))&&t.trackPosition&&(t.position++,"\n"===i?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(o,n-1)}"<"===i?(t.state=U.OPEN_WAKA,t.startTagPosition=t.position):(!f(M,i)||t.sawRoot&&!t.closedRoot||x(t,"Text data outside of root node."),"&"===i?t.state=U.TEXT_ENTITY:t.textNode+=i);continue;case U.SCRIPT:"<"===i?t.state=U.SCRIPT_ENDING:t.script+=i;continue;case U.SCRIPT_ENDING:"/"===i?t.state=U.CLOSE_TAG:(t.script+="<"+i,t.state=U.SCRIPT);continue;case U.OPEN_WAKA:if("!"===i)t.state=U.SGML_DECL,t.sgmlDecl="";else if(u(M,i));else if(u(W,i))t.state=U.OPEN_TAG,t.tagName=i;else if("/"===i)t.state=U.CLOSE_TAG,t.tagName="";else if("?"===i)t.state=U.PROC_INST,t.procInstName=t.procInstBody="";else{if(x(t,"Unencoded <"),t.startTagPosition+1<t.position){var a=t.position-t.startTagPosition;i=new Array(a).join(" ")+i}t.textNode+="<"+i,t.state=U.TEXT}continue;case U.SGML_DECL:(t.sgmlDecl+i).toUpperCase()===B?(m(t,"onopencdata"),t.state=U.CDATA,t.sgmlDecl="",t.cdata=""):t.sgmlDecl+i==="--"?(t.state=U.COMMENT,t.comment="",t.sgmlDecl=""):(t.sgmlDecl+i).toUpperCase()===L?(t.state=U.DOCTYPE,(t.doctype||t.sawRoot)&&x(t,"Inappropriately located doctype declaration"),t.doctype="",t.sgmlDecl=""):">"===i?(m(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=U.TEXT):u(O,i)?(t.state=U.SGML_DECL_QUOTED,t.sgmlDecl+=i):t.sgmlDecl+=i;continue;case U.SGML_DECL_QUOTED:i===t.q&&(t.state=U.SGML_DECL,t.q=""),t.sgmlDecl+=i;continue;case U.DOCTYPE:">"===i?(t.state=U.TEXT,m(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=i,"["===i?t.state=U.DOCTYPE_DTD:u(O,i)&&(t.state=U.DOCTYPE_QUOTED,t.q=i));continue;case U.DOCTYPE_QUOTED:t.doctype+=i,i===t.q&&(t.q="",t.state=U.DOCTYPE);continue;case U.DOCTYPE_DTD:t.doctype+=i,"]"===i?t.state=U.DOCTYPE:u(O,i)&&(t.state=U.DOCTYPE_DTD_QUOTED,t.q=i);continue;case U.DOCTYPE_DTD_QUOTED:t.doctype+=i,i===t.q&&(t.state=U.DOCTYPE_DTD,t.q="");continue;case U.COMMENT:"-"===i?t.state=U.COMMENT_ENDING:t.comment+=i;continue;case U.COMMENT_ENDING:"-"===i?(t.state=U.COMMENT_ENDED,t.comment=y(t.opt,t.comment),t.comment&&m(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+i,t.state=U.COMMENT);continue;case U.COMMENT_ENDED:">"!==i?(x(t,"Malformed comment"),t.comment+="--"+i,t.state=U.COMMENT):t.state=U.TEXT;continue;case U.CDATA:"]"===i?t.state=U.CDATA_ENDING:t.cdata+=i;continue;case U.CDATA_ENDING:"]"===i?t.state=U.CDATA_ENDING_2:(t.cdata+="]"+i,t.state=U.CDATA);continue;case U.CDATA_ENDING_2:">"===i?(t.cdata&&m(t,"oncdata",t.cdata),m(t,"onclosecdata"),t.cdata="",t.state=U.TEXT):"]"===i?t.cdata+="]":(t.cdata+="]]"+i,t.state=U.CDATA);continue;case U.PROC_INST:"?"===i?t.state=U.PROC_INST_ENDING:u(M,i)?t.state=U.PROC_INST_BODY:t.procInstName+=i;continue;case U.PROC_INST_BODY:if(!t.procInstBody&&u(M,i))continue;"?"===i?t.state=U.PROC_INST_ENDING:t.procInstBody+=i
  ;continue;case U.PROC_INST_ENDING:">"===i?(m(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=U.TEXT):(t.procInstBody+="?"+i,t.state=U.PROC_INST_BODY);continue;case U.OPEN_TAG:u(G,i)?t.tagName+=i:(E(t),">"===i?_(t):"/"===i?t.state=U.OPEN_TAG_SLASH:(f(M,i)&&x(t,"Invalid character in tag name"),t.state=U.ATTRIB));continue;case U.OPEN_TAG_SLASH:">"===i?(_(t,!0),A(t)):(x(t,"Forward-slash in opening tag not followed by >"),t.state=U.ATTRIB);continue;case U.ATTRIB:if(u(M,i))continue;">"===i?_(t):"/"===i?t.state=U.OPEN_TAG_SLASH:u(W,i)?(t.attribName=i,t.attribValue="",t.state=U.ATTRIB_NAME):x(t,"Invalid attribute name");continue;case U.ATTRIB_NAME:"="===i?t.state=U.ATTRIB_VALUE:">"===i?(x(t,"Attribute without value"),t.attribValue=t.attribName,w(t),_(t)):u(M,i)?t.state=U.ATTRIB_NAME_SAW_WHITE:u(G,i)?t.attribName+=i:x(t,"Invalid attribute name");continue;case U.ATTRIB_NAME_SAW_WHITE:if("="===i)t.state=U.ATTRIB_VALUE;else{if(u(M,i))continue;x(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",m(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===i?_(t):u(W,i)?(t.attribName=i,t.state=U.ATTRIB_NAME):(x(t,"Invalid attribute name"),t.state=U.ATTRIB)}continue;case U.ATTRIB_VALUE:if(u(M,i))continue;u(O,i)?(t.q=i,t.state=U.ATTRIB_VALUE_QUOTED):(x(t,"Unquoted attribute value"),t.state=U.ATTRIB_VALUE_UNQUOTED,t.attribValue=i);continue;case U.ATTRIB_VALUE_QUOTED:if(i!==t.q){"&"===i?t.state=U.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=i;continue}w(t),t.q="",t.state=U.ATTRIB_VALUE_CLOSED;continue;case U.ATTRIB_VALUE_CLOSED:u(M,i)?t.state=U.ATTRIB:">"===i?_(t):"/"===i?t.state=U.OPEN_TAG_SLASH:u(W,i)?(x(t,"No whitespace between attributes"),t.attribName=i,t.attribValue="",t.state=U.ATTRIB_NAME):x(t,"Invalid attribute name");continue;case U.ATTRIB_VALUE_UNQUOTED:if(f(I,i)){"&"===i?t.state=U.ATTRIB_VALUE_ENTITY_U:t.attribValue+=i;continue}w(t),">"===i?_(t):t.state=U.ATTRIB;continue;case U.CLOSE_TAG:if(t.tagName)">"===i?A(t):u(G,i)?t.tagName+=i:t.script?(t.script+="</"+t.tagName,t.tagName="",t.state=U.SCRIPT):(f(M,i)&&x(t,"Invalid tagname in closing tag"),t.state=U.CLOSE_TAG_SAW_WHITE);else{if(u(M,i))continue;f(W,i)?t.script?(t.script+="</"+i,t.state=U.SCRIPT):x(t,"Invalid tagname in closing tag."):t.tagName=i}continue;case U.CLOSE_TAG_SAW_WHITE:if(u(M,i))continue;">"===i?A(t):x(t,"Invalid characters in closing tag");continue;case U.TEXT_ENTITY:case U.ATTRIB_VALUE_ENTITY_Q:case U.ATTRIB_VALUE_ENTITY_U:switch(t.state){case U.TEXT_ENTITY:var s=U.TEXT,c="textNode";break;case U.ATTRIB_VALUE_ENTITY_Q:var s=U.ATTRIB_VALUE_QUOTED,c="attribValue";break;case U.ATTRIB_VALUE_ENTITY_U:var s=U.ATTRIB_VALUE_UNQUOTED,c="attribValue"}";"===i?(t[c]+=T(t),t.entity="",t.state=s):u(k,i)?t.entity+=i:(x(t,"Invalid character entity"),t[c]+="&"+t.entity+i,t.entity="",t.state=s);continue;default:throw new Error(t,"Unknown state: "+t.state)}return t.position>=t.bufferCheckPosition&&r(t),t}n.parser=function(e,t){return new i(e,t)},n.SAXParser=i,n.SAXStream=c,n.createStream=s,n.MAX_BUFFER_LENGTH=65536;var C=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];n.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(e){function t(){this.__proto__=e}return t.prototype=e,new t}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}),i.prototype={end:function(){v(this)},write:S,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};try{var R=e("stream").Stream}catch(e){var R=function(){}}var N=n.EVENTS.filter(function(e){return"error"!==e&&"end"!==e});c.prototype=Object.create(R.prototype,{constructor:{value:c}}),c.prototype.write=function(n){if("function"==typeof t&&"function"==typeof t.isBuffer&&t.isBuffer(n)){if(!this._decoder){var i=e("string_decoder").StringDecoder;this._decoder=new i("utf8")}n=this._decoder.write(n)}return this._parser.write(n.toString()),this.emit("data",n),!0},c.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},c.prototype.on=function(e,t){var n=this;return n._parser["on"+e]||N.indexOf(e)===-1||(n._parser["on"+e]=function(){var t=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),n.emit.apply(n,t)}),R.prototype.on.call(n,e,t)};var M="\r\n\t ",D="0124356789",P="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",O="'\"",k=D+P+"#",I=M+">",B="[CDATA[",L="DOCTYPE",F="http://www.w3.org/XML/1998/namespace",j="http://www.w3.org/2000/xmlns/",V={xml:F,xmlns:j};M=p(M),D=p(D),P=p(P);var W=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,G=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;O=p(O),k=p(k),I=p(I);var U=0;n.STATE={BEGIN:U++,TEXT:U++,TEXT_ENTITY:U++,OPEN_WAKA:U++,SGML_DECL:U++,SGML_DECL_QUOTED:U++,DOCTYPE:U++,DOCTYPE_QUOTED:U++,DOCTYPE_DTD:U++,DOCTYPE_DTD_QUOTED:U++,COMMENT_STARTING:U++,COMMENT:U++,COMMENT_ENDING:U++,COMMENT_ENDED:U++,CDATA:U++,CDATA_ENDING:U++,CDATA_ENDING_2:U++,PROC_INST:U++,PROC_INST_BODY:U++,PROC_INST_ENDING:U++,OPEN_TAG:U++,OPEN_TAG_SLASH:U++,ATTRIB:U++,ATTRIB_NAME:U++,ATTRIB_NAME_SAW_WHITE:U++,ATTRIB_VALUE:U++,ATTRIB_VALUE_QUOTED:U++,ATTRIB_VALUE_CLOSED:U++,ATTRIB_VALUE_UNQUOTED:U++,ATTRIB_VALUE_ENTITY_Q:U++,ATTRIB_VALUE_ENTITY_U:U++,CLOSE_TAG:U++,CLOSE_TAG_SAW_WHITE:U++,SCRIPT:U++,SCRIPT_ENDING:U++},n.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(n.ENTITIES).forEach(function(e){var t=n.ENTITIES[e],i="number"==typeof t?String.fromCharCode(t):t;n.ENTITIES[e]=i});for(var U in n.STATE)n.STATE[n.STATE[U]]=U;U=n.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,i,r=[],o=-1,a=arguments.length;if(!a)return"";for(var s="";++o<a;){var c=Number(arguments[o]);if(!isFinite(c)||c<0||c>1114111||t(c)!=c)throw RangeError("Invalid code point: "+c);c<=65535?r.push(c):(c-=65536,n=55296+(c>>10),i=c%1024+56320,r.push(n,i)),(o+1==a||r.length>16384)&&(s+=e.apply(null,r),r.length=0)}return s};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()}(void 0===n?sax={}:n)}).call(this,void 0)},{undefined:void 0}],232:[function(t,n,i){!function(t){"use strict";function r(){this.data=[null],this.top=0}function o(){return new r}r.prototype.clear=function(){return this.data=[null],this.top=0,this},r.prototype.length=function(){return this.top},r.prototype.peek=function(){return this.data[this.top]},r.prototype.pop=function(){return this.top>0?(this.top--,this.data.pop()):void 0},r.prototype.push=function(e){return this.data[++this.top]=e,this},void 0!==i?n.exports=o:"function"==typeof e?e(function(){return o}):t.stack=o}(this)},{}],233:[function(e,t,n){function i(e,t){return r(t,e),e}t.exports=i;var r=e(234)},{234:234}],234:[function(e,t,n){function i(e,t){return t.appendChild(r(e,t)),e}t.exports=i;var r=e(243)},{243:243}],235:[function(e,t,n){function i(e,t){return c[t]?e.style[t]:e.getAttributeNS(null,t)}function r(e,t,n){var i=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=c[i];r?(r===s&&"number"==typeof n&&(n=String(n)+"px"),e.style[i]=n):e.setAttributeNS(null,t,n)}function o(e,t){var n,i,o=Object.keys(t);for(n=0,i;i=o[n];n++)r(e,i,t[i])}function a(e,t,n){if("string"==typeof t){if(void 0===n)return i(e,t);r(e,t,n)}else o(e,t);return e}t.exports=a;var s=2,c={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":s,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":s,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1}},{}],236:[function(e,t,n){function i(e){return void 0!==e}function r(e){return new o(e)}function o(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}t.exports=r;var a=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1},s=Object.prototype.toString;o.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~a(t,e)||t.push(e),i(this.el.className.baseVal)?this.el.className.baseVal=t.join(" "):this.el.className=t.join(" "),this},o.prototype.remove=function(e){if("[object RegExp]"===s.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=a(t,e);return~n&&t.splice(n,1),this.el.className.baseVal=t.join(" "),this},o.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},o.prototype.toggle=function(e,t){return this.list?(i(t)?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):(i(t)?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},o.prototype.array=function(){var e=this.el.getAttribute("class")||"",t=e.replace(/^\s+|\s+$/g,""),n=t.split(/\s+/);return""===n[0]&&n.shift(),n},o.prototype.has=o.prototype.contains=function(e){return this.list?this.list.contains(e):!!~a(this.array(),e)}},{}],237:[function(e,t,n){function i(e){for(var t;t=e.firstChild;)r(t);return e}t.exports=i;var r=e(241)},{241:241}],238:[function(e,t,n){function i(e,t){var n;return"<"===e.charAt(0)?(n=o(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(a.svg,e),t&&r(n,t),n}t.exports=i;var r=e(235),o=e(245),a=e(244)},{235:235,244:244,245:245}],239:[function(e,t,n){function i(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)e[i]=t[i];return e}function r(e,t){var n=c.createSVGPoint();switch(arguments.length){case 0:return n;case 2:e={x:e,y:t}}return i(n,e)}function o(e,t,n,r,o,a){var s=c.createSVGMatrix();switch(arguments.length){case 0:return s;case 6:e={a:e,b:t,c:n,d:r,e:o,f:a}}return i(s,e)}function a(e){return e?c.createSVGTransformFromMatrix(e):c.createSVGTransform()}t.exports={createPoint:r,createMatrix:o,createTransform:a};var s=e(238),c=s("svg")},{238:238}],240:[function(e,t,n){function i(e,t){var n,i=c(t).documentElement;if(a(e),t)for(n=i.firstChild;n;)s(n,e),n=n.nextSibling}function r(e){for(var t=e.firstChild,n=[];t;)p(t,n),t=t.nextSibling;return n.join("")}function o(e,t){if(void 0!==t){try{i(e,t)}catch(e){throw new Error("error parsing SVG: "+e.message)}return e}return r(e)}t.exports=o;var a=e(237),s=e(234),c=e(245),p=e(246)},{234:234,237:237,245:245,246:246}],241:[function(e,t,n){function i(e){return e.parentNode.removeChild(e),e}t.exports=i},{}],242:[function(e,t,n){function i(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function r(e,t){var n,r;for(e.clear(),n=0;r=t[n];n++)e.appendItem(i(e,r));e.consolidate()}function o(e,t){var n=e.transform.baseVal;if(1===arguments.length)return n.consolidate();t.length?r(n,t):n.initialize(i(n,t))}t.exports=o},{}],243:[function(e,t,n){function i(e,t){if(e.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(e,!0)}catch(e){}return e}t.exports=i},{}],244:[function(e,t,n){var i={svg:"http://www.w3.org/2000/svg"};t.exports=i},{}],245:[function(e,t,n){function i(e){return"<svg"===e.substring(0,4)?e.indexOf(o.svg)===-1&&(e=a+e.substring(4)):e=a+">"+e+"</svg>",r(e)}function r(e){var t;return t=new DOMParser,t.async=!1,t.parseFromString(e,"text/xml")}t.exports=i;var o=e(244),a='<svg xmlns="'+o.svg+'"'},{244:244}],246:[function(e,t,n){function i(e,t){function n(e,t){return s[t]||t}return e.replace(t,n)}function r(e,t){var n,s,c,p,l;switch(e.nodeType){case 3:t.push(i(e.textContent,o));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(c=e.attributes,n=0,s=c.length;n<s;++n)p=c.item(n),t.push(" ",p.name,'="',i(p.value,a),'"');if(e.hasChildNodes()){for(t.push(">"),l=e.childNodes,n=0,s=l.length;n<s;++n)r(l.item(n),t);t.push("</",e.tagName,">")}else t.push("/>");break;case 8:t.push("<!--",i(e.nodeValue,o),"-->");break;case 4:t.push("<![CDATA[",e.nodeValue,"]]>");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}t.exports=r;var o=/([&<>]{1})/g,a=/([\n\r"]{1})/g,s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"'"}},{}]},{},[1])(1)});