( function ( e , t ) { "object" === typeof exports && "object" === typeof module ? module . exports = t ( require ( "Vue" ) ) : "function" === typeof define && define . amd ? define ( [ "Vue" ] , t ) : "object" === typeof exports ? exports [ "WfDesign" ] = t ( require ( "Vue" ) ) : e [ "WfDesign" ] = t ( e [ "Vue" ] ) } ) ( "undefined" !== typeof self ? self : this , ( function ( _ _WEBPACK _EXTERNAL _MODULE _ _8bbf _ _ ) { return function ( e ) { var t = { } ; function n ( i ) { if ( t [ i ] ) return t [ i ] . exports ; var o = t [ i ] = { i : i , l : ! 1 , exports : { } } ; return e [ i ] . call ( o . exports , o , o . exports , n ) , o . l = ! 0 , o . exports } return n . m = e , n . c = t , n . d = function ( e , t , i ) { n . o ( e , t ) || Object . defineProperty ( e , t , { enumerable : ! 0 , get : i } ) } , n . r = function ( e ) { "undefined" !== typeof Symbol && Symbol . toStringTag && Object . defineProperty ( e , Symbol . toStringTag , { value : "Module" } ) , Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) } , n . t = function ( e , t ) { if ( 1 & t && ( e = n ( e ) ) , 8 & t ) return e ; if ( 4 & t && "object" === typeof e && e && e . _ _esModule ) return e ; var i = Object . create ( null ) ; if ( n . r ( i ) , Object . defineProperty ( i , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var o in e ) n . d ( i , o , function ( t ) { return e [ t ] } . bind ( null , o ) ) ; return i } , n . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e [ "default" ] } : function ( ) { return e } ; return n . d ( t , "a" , t ) , t } , n . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , n . p = "" , n ( n . s = "5069" ) } ( { "0066" : function ( e , t , n ) { "use strict" ; var i = n ( "e244" ) , o = n ( "d6ed" ) , r = n ( "58d1" ) , s = n ( "c673" ) , a = n ( "609f" ) , l = n ( "a53d" ) , c = n ( "fc4e" ) , h = n ( "7c08" ) , u = n ( "acd4" ) , d = n ( "c61c" ) , p = n ( "6023" ) , f = i . Array ; e . exports = function ( e ) { var t = s ( e ) , n = c ( this ) , i = arguments . length , g = i > 1 ? arguments [ 1 ] : void 0 , m = void 0 !== g ; m && ( g = o ( g , i > 2 ? arguments [ 2 ] : void 0 ) ) ; var b , v , y , w , _ , C , A = p ( t ) , E = 0 ; if ( ! A || this == f && l ( A ) ) for ( b = h ( t ) , v = n ? new this ( b ) : f ( b ) ; b > E ; E ++ ) C = m ? g ( t [ E ] , E ) : t [ E ] , u ( v , E , C ) ; else for ( w = d ( t , A ) , _ = w . next , v = n ? new this : [ ] ; ! ( y = r ( _ , w ) ) . done ; E ++ ) C = m ? a ( w , g , [ y . value , E ] , ! 0 ) : y . value , u ( v , E , C ) ; return v . length = E , v } } , "006c" : function ( e , t , n ) { var i = n ( "53c2" ) ; t = i ( ! 1 ) , t . push ( [ e . i , ".monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{-webkit-animation-name:progress;animation-name:progress;-webkit-animation-duration:4s;animation-duration:4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:linear;animation-timing-function:linear;transform:translateZ(0)}@-webkit-keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}@keyframes progress{0%{transform:translateX(0) scaleX(1)}50%{transform:translateX(2500%) scaleX(3)}to{transform:translateX(4900%) scaleX(1)}}" , "" ] ) , e . exports = t } , "00ad" : function ( e , t , n ) { var i = n ( "61b6" ) ; i . _ _esModule && ( i = i . default ) , "string" === typeof i && ( i = [ [ e . i , i , "" ] ] ) , i . locals && ( e . exports = i . locals ) ; var o = n ( "4974" ) . default ; o ( "8966e390" , i , ! 0 , { sourceMap : ! 1 , shadowMode : ! 1 } ) } , "02de" : function ( e , t , n ) { "use strict" ; var i = n ( "83ec" ) , o = n ( "55ab" ) , r = n ( "e244" ) , s = n ( "6f9e" ) , a = n ( "0b05" ) , l = n ( "9564" ) , c = n ( "81e5" ) , h = n ( "04c3" ) , u = n ( "b896" ) . f , d = n ( "8c42" ) , p = r . Symbol , f = p && p . prototype ; if ( o && l ( p ) && ( ! ( "description" in f ) || void 0 !== p ( ) . description ) ) { var g = { } , m = function ( ) { var e = arguments . length < 1 || void 0 === arguments [ 0 ] ? void 0 : h ( arguments [ 0 ] ) , t = c ( f , this ) ? new p ( e ) : void 0 === e ? p ( ) : p ( e ) ; return "" === e && ( g [ t ] = ! 0 ) , t } ; d ( m , p ) , m . prototype = f , f . constructor = m ; var b = "Symbol(test)" == String ( p ( "test" ) ) , v = s ( f . toString ) , y = s ( f . valueOf ) , w = /^Symbol\((.*)\)[^)]+$/ , _ = s ( "" . replace ) , C = s ( "" . slice ) ; u ( f , "description" , { configurable : ! 0 , get : function ( ) { var e = y ( this ) , t = v ( e ) ; if ( a ( g , e ) ) return "" ; var n = b ? C ( t , 7 , - 1 ) : _ ( t , w , "$1" ) ; return "" === n ? void 0 : n } } ) , i ( { global : ! 0 , forced : ! 0 } , { Symbol : m } ) } } , "030e" : function ( e , t , n ) { var i = n ( "ac97" ) , o = n ( "e244" ) , r = o . RegExp , s = i ( ( function ( ) { var e = r ( "a" , "y" ) ; return e . lastIndex = 2 , null != e . exec ( "abcd" ) } ) ) , a = s || i ( ( function ( ) { return ! r ( "a" , "y" ) . sticky } ) ) , l = s || i ( ( function ( ) { var e = r (
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
t . read = function ( e , t , n , i , o ) { var r , s , a = 8 * o - i - 1 , l = ( 1 << a ) - 1 , c = l >> 1 , h = - 7 , u = n ? o - 1 : 0 , d = n ? - 1 : 1 , p = e [ t + u ] ; for ( u += d , r = p & ( 1 << - h ) - 1 , p >>= - h , h += a ; h > 0 ; r = 256 * r + e [ t + u ] , u += d , h -= 8 ) ; for ( s = r & ( 1 << - h ) - 1 , r >>= - h , h += i ; h > 0 ; s = 256 * s + e [ t + u ] , u += d , h -= 8 ) ; if ( 0 === r ) r = 1 - c ; else { if ( r === l ) return s ? NaN : 1 / 0 * ( p ? - 1 : 1 ) ; s += Math . pow ( 2 , i ) , r -= c } return ( p ? - 1 : 1 ) * s * Math . pow ( 2 , r - i ) } , t . write = function ( e , t , n , i , o , r ) { var s , a , l , c = 8 * r - o - 1 , h = ( 1 << c ) - 1 , u = h >> 1 , d = 23 === o ? Math . pow ( 2 , - 24 ) - Math . pow ( 2 , - 77 ) : 0 , p = i ? 0 : r - 1 , f = i ? 1 : - 1 , g = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0 ; for ( t = Math . abs ( t ) , isNaN ( t ) || t === 1 / 0 ? ( a = isNaN ( t ) ? 1 : 0 , s = h ) : ( s = Math . floor ( Math . log ( t ) / Math . LN2 ) , t * ( l = Math . pow ( 2 , - s ) ) < 1 && ( s -- , l *= 2 ) , t += s + u >= 1 ? d / l : d * Math . pow ( 2 , 1 - u ) , t * l >= 2 && ( s ++ , l /= 2 ) , s + u >= h ? ( a = 0 , s = h ) : s + u >= 1 ? ( a = ( t * l - 1 ) * Math . pow ( 2 , o ) , s += u ) : ( a = t * Math . pow ( 2 , u - 1 ) * Math . pow ( 2 , o ) , s = 0 ) ) ; o >= 8 ; e [ n + p ] = 255 & a , p += f , a /= 256 , o -= 8 ) ; for ( s = s << o | a , c += o ; c > 0 ; e [ n + p ] = 255 & s , p += f , s /= 256 , c -= 8 ) ; e [ n + p - f ] |= 128 * g } } , 1810 : function ( e , t , n ) { var i = n ( "e244" ) , o = n ( "986e" ) , r = n ( "0b05" ) , s = n ( "76b2" ) , a = n ( "8fed" ) , l = n ( "bd77" ) , c = o ( "wks" ) , h = i . Symbol , u = h && h [ "for" ] , d = l ? h : h && h . withoutSetter || s ; e . exports = function ( e ) { if ( ! r ( c , e ) || ! a && "string" != typeof c [ e ] ) { var t = "Symbol." + e ; a && r ( h , e ) ? c [ e ] = h [ e ] : c [ e ] = l && u ? u ( t ) : d ( t ) } return c [ e ] } } , 1854 : function ( e , t , n ) { e . exports = n . p + "fonts/fontawesome-webfont.674f50d2.eot" } , 1969 : function ( e , t , n ) { "use strict" ; n ( "f96e" ) ; var i = n ( "7299" ) , o = i . domify , r = i . classes , s = i . event , a = i . query , l = n ( "4580" ) , c = l . TOGGLE _MODE _EVENT ; function h ( e , t , n , i ) { var o = this ; this . _canvas = e , this . _animation = t , this . _eventBus = n , this . _translate = i , this . _init ( ) , n . on ( c , ( function ( e ) { var t = e . simulationModeActive ; t ? r ( o . container ) . remove ( "hidden" ) : r ( o . container ) . add ( "hidden" ) } ) ) } h . prototype . _init = function ( ) { var e = this ; this . container = o ( '<div class="set-animation-speed hidden">' + '<i title="' . concat ( this . _translate ( "Set Animation Speed" ) , '" class="fa fa-tachometer" aria-hidden="true"></i>' ) + '<div class="animation-speed-buttons">' + '<div title="' . concat ( this . _translate ( "Slow" ) , '" id="animation-speed-1" class="animation-speed-button"><i class="fa fa-angle-right" aria-hidden="true"></i></div>' ) + '<div title="' . concat ( this . _translate ( "Normal" ) , '" id="animation-speed-2" class="animation-speed-button active"><i class="fa fa-angle-right" aria-hidden="true"></i><i class="fa fa-angle-right" aria-hidden="true"></i></div>' ) + '<div title="' . concat ( this . _translate ( "Fast" ) , '" id="animation-speed-3" class="animation-speed-button"><i class="fa fa-angle-right" aria-hidden="true"></i><i class="fa fa-angle-right" aria-hidden="true"></i><i class="fa fa-angle-right" aria-hidden="true"></i></div>' ) + "</div></div>" ) ; var t = a ( "#animation-speed-1" , this . container ) , n = a ( "#animation-speed-2" , this . container ) , i = a ( "#animation-speed-3" , this . container ) ; s . bind ( t , "click" , ( function ( ) { e . setActive ( t ) , e . _animation . setAnimationSpeed ( . 5 ) } ) ) , s . bind ( n , "click" , ( function ( ) { e . setActive ( n ) , e . _animation . setAnimationSpeed ( 1 ) } ) ) , s . bind ( i , "click" , ( function ( ) { e . setActive ( i ) , e . _animation . setAnimationSpeed ( 1.5 ) } ) ) , this . _canvas . getContainer ( ) . appendChild ( this . container ) } , h . prototype . setActive = function ( e ) { a . all ( ".animation-speed-button" , this . container ) . forEach ( ( function ( e ) { r ( e ) . remove ( "active" ) } ) ) , r ( e ) . add ( "active" ) } , h . $inject = [ "canvas" , "animation" , "eventBus" , "translate" ] , e . exports = h } , "1a37" : function ( e , t , n ) { var i = n ( "6120" ) ; i . _ _esModule && ( i = i . default ) , "string" === typeof i && ( i = [ [ e . i , i , "" ] ] ) , i . locals && ( e . exports = i . locals ) ; var o = n ( "4974" ) . default ; o ( "a7cf33a8" , i , ! 0 , { sourceMap : ! 1 , shadowMode : ! 1 } ) } , "1a7b" : function ( e , t , n ) { var i = n ( "e248" ) ; i . _ _esModule && ( i = i . default ) , "string" === typeof i && ( i = [ [ e . i , i , "" ] ] ) , i . locals && ( e . exports = i . locals ) ; var o = n ( "4974" ) . default ; o ( "9c9f48d4" , i , ! 0 , { sourceMap : ! 1 , shadowMode : ! 1 } ) } , "1ac3" : function ( e , t , n ) { e . exports = n ( "522e" ) } , "1cb4" : function ( e , t , n ) { "use strict" ; ( function ( e , i ) { var o ; n . d ( t , "b" , ( function ( ) { return b } ) ) , n . d ( t , "i" , ( function ( ) { return _ } ) ) , n . d ( t , "f" , ( function ( ) { return C } ) ) , n . d ( t , "d" , ( function ( ) { return A } ) ) , n . d ( t , "g" , ( function ( ) { return E } ) ) , n . d ( t , "h" , ( function ( ) { return x } ) ) , n . d ( t , "c" , ( function ( ) { return S } ) ) , n . d ( t , "k" , ( function ( ) { return k } ) ) , n . d ( t , "j" , ( function ( ) { return D } ) ) , n . d ( t , "a" , ( function ( ) { return L } ) ) , n . d ( t , "e" , ( function ( ) { return M } ) ) ; const r = "en" ; let s = ! 1 , a = ! 1
/ * ! H a m m e r . J S - v 2 . 0 . 7 - 2 0 1 6 - 0 4 - 2 2
* http : //hammerjs.github.io/
*
* Copyright ( c ) 2016 Jorik Tangelder ;
* Licensed under the MIT license * /(function(o,r,s,a){"use strict";var l,c=["","webkit","Moz","MS","ms","o"],h=r.createElement("div"),u="function",d=Math.round,p=Math.abs,f=Date.now;function g(e,t,n){return setTimeout(C(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(b(e,n[t],n),!0)}function b(e,t,n){var i;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==a){i=0;while(i<e.length)t.call(n,e[i],i,e),i++}else for(i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function v(e,t,n){var i="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/ ^ [ ^ \ ( ] + ? [ \ n$ ] / gm , "" ) . replace ( /^\s+at\s+/gm , "" ) . replace ( /^Object.<anonymous>\s*\(/gm , "{anonymous}()@" ) : "Unknown Stack Trace" , r = o . console && ( o . console . warn || o . console . log ) ; return r && r . call ( o . console , i , n ) , e . apply ( this , arguments ) } } l = "function" !== typeof Object . assign ? function ( e ) { if ( e === a || null === e ) throw new TypeError ( "Cannot convert undefined or null to object" ) ; for ( var t = Object ( e ) , n = 1 ; n < arguments . length ; n ++ ) { var i = arguments [ n ] ; if ( i !== a && null !== i ) for ( var o in i ) i . hasOwnProperty ( o ) && ( t [ o ] = i [ o ] ) } return t } : Object . assign ; var y = v ( ( function ( e , t , n ) { var i = Object . keys ( t ) , o = 0 ; while ( o < i . length ) ( ! n || n && e [ i [ o ] ] === a ) && ( e [ i [ o ] ] = t [ i [ o ] ] ) , o ++ ; return e } ) , "extend" , "Use `assign`." ) , w = v ( ( function ( e , t ) { return y ( e , t , ! 0 ) } ) , "merge" , "Use `assign`." ) ; function _ ( e , t , n ) { var i , o = t . prototype ; i = e . prototype = Object . create ( o ) , i . constructor = e , i . _super = o , n && l ( i , n ) } function C ( e , t ) { return function ( ) { return e . apply ( t , arguments ) } } function A ( e , t ) { return typeof e == u ? e . apply ( t && t [ 0 ] || a , t ) : e } function E ( e , t ) { return e === a ? t : e } function x ( e , t , n ) { b ( L ( t ) , ( function ( t ) { e . addEventListener ( t , n , ! 1 ) } ) ) } function S ( e , t , n ) { b ( L ( t ) , ( function ( t ) { e . removeEventListener ( t , n , ! 1 ) } ) ) } function k ( e , t ) { while ( e ) { if ( e == t ) return ! 0 ; e = e . parentNode } return ! 1 } function D ( e , t ) { return e . indexOf ( t ) > - 1 } function L ( e ) { return e . trim ( ) . split ( /\s+/g ) } function I ( e , t , n ) { if ( e . indexOf && ! n ) return e . indexOf ( t ) ; var i = 0 ; while ( i < e . length ) { if ( n && e [ i ] [ n ] == t || ! n && e [ i ] === t ) return i ; i ++ } return - 1 } function N ( e ) { return Array . prototype . slice . call ( e , 0 ) } function M ( e , t , n ) { var i = [ ] , o = [ ] , r = 0 ; while ( r < e . length ) { var s = t ? e [ r ] [ t ] : e [ r ] ; I ( o , s ) < 0 && i . push ( e [ r ] ) , o [ r ] = s , r ++ } return n && ( i = t ? i . sort ( ( function ( e , n ) { return e [ t ] > n [ t ] } ) ) : i . sort ( ) ) , i } function B ( e , t ) { var n , i , o = t [ 0 ] . toUpperCase ( ) + t . slice ( 1 ) , r = 0 ; while ( r < c . length ) { if ( n = c [ r ] , i = n ? n + o : t , i in e ) return i ; r ++ } return a } var T = 1 ; function O ( ) { return T ++ } function R ( e ) { var t = e . ownerDocument || e ; return t . defaultView || t . parentWindow || o } var P = /mobile|tablet|ip(ad|hone|od)|android/i , F = "ontouchstart" in o , j = B ( o , "PointerEvent" ) !== a , z = F && P . test ( navigator . userAgent ) , V = "touch" , Q = "pen" , W = "mouse" , H = "kinect" , U = 25 , Y = 1 , G = 2 , K = 4 , q = 8 , J = 1 , $ = 2 , X = 4 , Z = 8 , ee = 16 , te = $ | X , ne = Z | ee , ie = te | ne , oe = [ "x" , "y" ] , re = [ "clientX" , "clientY" ] ; function se ( e , t ) { var n = this ; this . manager = e , this . callback = t , this . element = e . element , this . target = e . options . inputTarget , this . domHandler = function ( t ) { A ( e . options . enable , [ e ] ) && n . handler ( t ) } , this . init ( ) } function ae ( e ) { var t , n = e . options . inputClass ; return t = n || ( j ? De : z ? Re : F ? ze : Ae ) , new t ( e , le ) } function le ( e , t , n ) { var i = n . pointers . length , o = n . changedPointers . length , r = t & Y && i - o === 0 , s = t & ( K | q ) && i - o === 0 ; n . isFirst = ! ! r , n . isFinal = ! ! s , r && ( e . session = { } ) , n . eventType = t , ce ( e , n ) , e . emit ( "hammer.input" , n ) , e . recognize ( n ) , e . session . prevInput = n } function ce ( e , t ) { var n = e . session , i = t . pointers , o = i . length ; n . firstInput || ( n . firstInput = de ( t ) ) , o > 1 && ! n . firstMultiple ? n . firstMultiple = de ( t ) : 1 === o && ( n . firstMultiple = ! 1 ) ; var r = n . firstInput , s = n . firstMultiple , a = s ? s . center : r . center , l = t . center = pe ( i ) ; t . timeStamp = f ( ) , t . deltaTime = t . timeStamp - r . timeStamp , t . angle = be ( a , l ) , t . distance = me ( a , l ) , he ( n , t ) , t . offsetDirection = ge ( t . deltaX , t . deltaY ) ; var c = fe ( t . deltaTime , t . deltaX , t . deltaY ) ; t . overallVelocityX = c . x , t . overallVelocityY = c . y , t . overallVelocity = p ( c . x ) > p ( c . y ) ? c . x : c . y , t . scale = s ? ye ( s . pointers , i ) : 1 , t . rotation = s ? ve ( s . pointers , i ) : 0 , t . maxPointers = n . prevInput ? t . pointers . length > n . prevInput . maxPointers ? t . pointers . length : n . prevInput . maxPointers : t . pointers . length , ue ( n , t ) ; var h = e . element ; k ( t . srcEvent . target , h ) && ( h = t . srcEvent . target ) , t . target = h } function he ( e , t ) { var n = t . center , i = e . offse
/ * !
* svg . js - A lightweight library for manipulating and animating SVG .
* @ version 2.7 . 1
* https : //svgdotjs.github.io/
*
* @ copyright Wout Fierens < wout @ mick - wout . com >
* @ license MIT
*
* BUILT : Fri Nov 30 2018 10 : 01 : 55 GMT + 0100 ( GMT + 01 : 00 )
* /(function(o,r){i=function(){return r(o,o.document)}.call(t,n,t,e),void 0===i||(e.exports=i)})("undefined"!==typeof window?window:this,(function(e,t){var n="undefined"!==typeof this?this:e,i=n.SVG=function(e){if(i.supported)return e=new i.Doc(e),i.parser.draw||i.prepare(),e};if(i.ns="http:/ / www . w3 . org / 2000 / svg ",i.xmlns=" http : //www.w3.org/2000/xmlns/",i.xlink="http://www.w3.org/1999/xlink",i.svgjs="http://svgjs.com/svgjs",i.supported=function(){return!!t.createElementNS&&!!t.createElementNS(i.ns,"svg").createSVGRect}(),!i.supported)return!1;i.did=1e3,i.eid=function(e){return"Svgjs"+f(e)+i.did++},i.create=function(e){var n=t.createElementNS(this.ns,e);return n.setAttribute("id",this.eid(e)),n},i.extend=function(){var e,t,n,o;for(e=[].slice.call(arguments),t=e.pop(),o=e.length-1;o>=0;o--)if(e[o])for(n in t)e[o].prototype[n]=t[n];i.Set&&i.Set.inherit&&i.Set.inherit()},i.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,i.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&i.extend(t,e.extend),e.construct&&i.extend(e.parent||i.Container,e.construct),t},i.adopt=function(t){return t?t.instance?t.instance:(n="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new i.Nested:new i.Doc:"linearGradient"==t.nodeName?new i.Gradient("linear"):"radialGradient"==t.nodeName?new i.Gradient("radial"):i[f(t.nodeName)]?new(i[f(t.nodeName)]):new i.Element(t),n.type=t.nodeName,n.node=t,t.instance=n,n instanceof i.Doc&&n.namespace().defs(),n.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),n):null;var n},i.prepare=function(){var e=t.getElementsByTagName("body")[0],n=(e?new i.Doc(e):i.adopt(t.documentElement).nested()).size(2,0);i.parser={body:e||t.documentElement,draw:n.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").attr("focusable","false").node,poly:n.polyline().node,path:n.path().node,native:i.create("svg")}},i.parser={native:i.create("svg")},t.addEventListener("DOMContentLoaded",(function(){i.parser.draw||i.prepare()}),!1),i.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},i.utils={map:function(e,t){var n,i=e.length,o=[];for(n=0;n<i;n++)o.push(t(e[n]));return o},filter:function(e,t){var n,i=e.length,o=[];for(n=0;n<i;n++)t(e[n])&&o.push(e[n]);return o},radians:function(e){return e%360*Math.PI/180},degrees:function(e){return 180*e/Math.PI%360},filterSVGElements:function(t){return this.filter(t,(function(t){return t instanceof e.SVGElement}))}},i.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},i.Color=function(e){var t;this.r=0,this.g=0,this.b=0,e&&("string"===typeof e?i.regex.isRgb.test(e)?(t=i.regex.rgb.exec(e.replace(i.regex.whitespace,"")),this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3])):i.regex.isHex.test(e)&&(t=i.regex.hex.exec(g(e)),this.r=parseInt(t[1],16),this.g=parseInt(t[2],16),this.b=parseInt(t[3],16)):"object"===typeof e&&(this.r=e.r,this.g=e.g,this.b=e.b))},i.extend(i.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+m(this.r)+m(this.g)+m(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(e){return this.destination=new i.Color(e)
/ * !
* The buffer module from node . js , for the browser .
*
* @ author Feross Aboukhadijeh < http : //feross.org>
* @ license MIT
* /
var i = n ( "3ef6" ) , o = n ( "17d4" ) , r = n ( "52a2" ) ; function s ( ) { try { var e = new Uint8Array ( 1 ) ; return e . _ _proto _ _ = { _ _proto _ _ : Uint8Array . prototype , foo : function ( ) { return 42 } } , 42 === e . foo ( ) && "function" === typeof e . subarray && 0 === e . subarray ( 1 , 1 ) . byteLength } catch ( t ) { return ! 1 } } function a ( ) { return c . TYPED _ARRAY _SUPPORT ? 2147483647 : 1073741823 } function l ( e , t ) { if ( a ( ) < t ) throw new RangeError ( "Invalid typed array length" ) ; return c . TYPED _ARRAY _SUPPORT ? ( e = new Uint8Array ( t ) , e . _ _proto _ _ = c . prototype ) : ( null === e && ( e = new c ( t ) ) , e . length = t ) , e } function c ( e , t , n ) { if ( ! c . TYPED _ARRAY _SUPPORT && ! ( this instanceof c ) ) return new c ( e , t , n ) ; if ( "number" === typeof e ) { if ( "string" === typeof t ) throw new Error ( "If encoding is specified then the first argument must be a string" ) ; return p ( this , e ) } return h ( this , e , t , n ) } function h ( e , t , n , i ) { if ( "number" === typeof t ) throw new TypeError ( '"value" argument must not be a number' ) ; return "undefined" !== typeof ArrayBuffer && t instanceof ArrayBuffer ? m ( e , t , n , i ) : "string" === typeof t ? f ( e , t , n ) : b ( e , t ) } function u ( e ) { if ( "number" !== typeof e ) throw new TypeError ( '"size" argument must be a number' ) ; if ( e < 0 ) throw new RangeError ( '"size" argument must not be negative' ) } function d ( e , t , n , i ) { return u ( t ) , t <= 0 ? l ( e , t ) : void 0 !== n ? "string" === typeof i ? l ( e , t ) . fill ( n , i ) : l ( e , t ) . fill ( n ) : l ( e , t ) } function p ( e , t ) { if ( u ( t ) , e = l ( e , t < 0 ? 0 : 0 | v ( t ) ) , ! c . TYPED _ARRAY _SUPPORT ) for ( var n = 0 ; n < t ; ++ n ) e [ n ] = 0 ; return e } function f ( e , t , n ) { if ( "string" === typeof n && "" !== n || ( n = "utf8" ) , ! c . isEncoding ( n ) ) throw new TypeError ( '"encoding" must be a valid string encoding' ) ; var i = 0 | w ( t , n ) ; e = l ( e , i ) ; var o = e . write ( t , n ) ; return o !== i && ( e = e . slice ( 0 , o ) ) , e } function g ( e , t ) { var n = t . length < 0 ? 0 : 0 | v ( t . length ) ; e = l ( e , n ) ; for ( var i = 0 ; i < n ; i += 1 ) e [ i ] = 255 & t [ i ] ; return e } function m ( e , t , n , i ) { if ( t . byteLength , n < 0 || t . byteLength < n ) throw new RangeError ( "'offset' is out of bounds" ) ; if ( t . byteLength < n + ( i || 0 ) ) throw new RangeError ( "'length' is out of bounds" ) ; return t = void 0 === n && void 0 === i ? new Uint8Array ( t ) : void 0 === i ? new Uint8Array ( t , n ) : new Uint8Array ( t , n , i ) , c . TYPED _ARRAY _SUPPORT ? ( e = t , e . _ _proto _ _ = c . prototype ) : e = g ( e , t ) , e } function b ( e , t ) { if ( c . isBuffer ( t ) ) { var n = 0 | v ( t . length ) ; return e = l ( e , n ) , 0 === e . length ? e : ( t . copy ( e , 0 , 0 , n ) , e ) } if ( t ) { if ( "undefined" !== typeof ArrayBuffer && t . buffer instanceof ArrayBuffer || "length" in t ) return "number" !== typeof t . length || te ( t . length ) ? l ( e , 0 ) : g ( e , t ) ; if ( "Buffer" === t . type && r ( t . data ) ) return g ( e , t . data ) } throw new TypeError ( "First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object." ) } function v ( e ) { if ( e >= a ( ) ) throw new RangeError ( "Attempt to allocate Buffer larger than maximum size: 0x" + a ( ) . toString ( 16 ) + " bytes" ) ; return 0 | e } function y ( e ) { return + e != e && ( e = 0 ) , c . alloc ( + e ) } function w ( e , t ) { if ( c . isBuffer ( e ) ) return e . length ; if ( "undefined" !== typeof ArrayBuffer && "function" === typeof ArrayBuffer . isView && ( ArrayBuffer . isView ( e ) || e instanceof ArrayBuffer ) ) return e . byteLength ; "string" !== typeof e && ( e = "" + e ) ; var n = e . length ; if ( 0 === n ) return 0 ; for ( var i = ! 1 ; ; ) switch ( t ) { case "ascii" : case "latin1" : case "binary" : return n ; case "utf8" : case "utf-8" : case void 0 : return J ( e ) . length ; case "ucs2" : case "ucs-2" : case "utf16le" : case "utf-16le" : return 2 * n ; case "hex" : return n >>> 1 ; case "base64" : return Z ( e ) . length ; default : if ( i ) return J ( e ) . length ; t = ( "" + t ) . toLowerCase ( ) , i = ! 0 } } function _ ( e , t , n ) { var i = ! 1 ; if ( ( void 0 === t || t < 0 ) && ( t = 0 ) , t > this . length ) return "" ; if ( ( void 0 === n || n > this . length ) && ( n = this . length ) , n <= 0 ) return "" ; if ( n >>>= 0 , t >>>= 0 , n <= t ) return "" ; e || ( e = "utf8" ) ; while ( 1 ) switch ( e ) { case "hex" : return P ( this , t , n ) ; case "utf8" : case "utf-8" : return M ( this , t , n ) ; case "ascii" : return O ( this , t , n ) ; case "latin1" : case "binary" : return R ( this , t , n ) ; case "base64" : return N ( this , t , n ) ; case "ucs2" : case "ucs-2" : case "utf16le" : case "utf-16le" : return F ( this , t , n ) ; default : if ( i ) throw new TypeError ( "Unknown encoding: " + e ) ; e = ( e + "" ) . toLowerCase ( ) , i = ! 0 } } function C ( e , t , n ) { var i = e [ t ] ; e [ t ] = e [ n ] , e [ n ] = i } function A ( e , t , n , i , o ) { if ( 0 === e . length ) return - 1 ; if ( "string" === typeof n ? ( i = n , n = 0 ) : n > 2147483647 ? n = 2147483647 : n < - 2147483648 && ( n = - 2147483648 ) , n = + n , isNaN ( n ) && ( n = o ? 0 : e . length - 1 ) , n < 0 && ( n = e . length + n ) , n >= e . length ) { if ( o ) return - 1 ; n = e . length - 1 } else if ( n < 0 ) { if ( ! o ) return - 1 ; n = 0 } if ( "string" === typeof t && ( t = c . from ( t , i ) ) , c . isBuffer ( t ) ) retu