⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
panel
/
BTPanel
/
static
/
vite
/
js
/
View File Name :
leader-line-vue-legacy.js
System.register([],function(e,t){"use strict";return{execute:function(){/*! LeaderLine v1.0.5 (c) anseki https://anseki.github.io/leader-line/ */var t=function(){var e,t,n,a,i,o,l,r,s,u,h,p,c,d="leader-line",f={top:1,right:2,bottom:3,left:4},y={straight:1,arc:2,fluid:3,magnet:4,grid:5},S="behind",m=d+"-defs",g={disc:{elmId:"leader-line-disc",noRotate:!0,bBox:{left:-5,top:-5,width:10,height:10,right:5,bottom:5},widthR:2.5,heightR:2.5,bCircle:5,sideLen:5,backLen:5,overhead:0,outlineBase:1,outlineMax:4},square:{elmId:"leader-line-square",noRotate:!0,bBox:{left:-5,top:-5,width:10,height:10,right:5,bottom:5},widthR:2.5,heightR:2.5,bCircle:5,sideLen:5,backLen:5,overhead:0,outlineBase:1,outlineMax:4},arrow1:{elmId:"leader-line-arrow1",bBox:{left:-8,top:-8,width:16,height:16,right:8,bottom:8},widthR:4,heightR:4,bCircle:8,sideLen:8,backLen:8,overhead:8,outlineBase:2,outlineMax:1.5},arrow2:{elmId:"leader-line-arrow2",bBox:{left:-7,top:-8,width:11,height:16,right:4,bottom:8},widthR:2.75,heightR:4,bCircle:8,sideLen:8,backLen:7,overhead:4,outlineBase:1,outlineMax:1.75},arrow3:{elmId:"leader-line-arrow3",bBox:{left:-4,top:-5,width:12,height:10,right:8,bottom:5},widthR:3,heightR:2.5,bCircle:8,sideLen:5,backLen:4,overhead:8,outlineBase:1,outlineMax:2.5},hand:{elmId:"leader-line-hand",bBox:{left:-3,top:-12,width:40,height:24,right:37,bottom:12},widthR:10,heightR:6,bCircle:37,sideLen:12,backLen:3,overhead:37},crosshair:{elmId:"leader-line-crosshair",noRotate:!0,bBox:{left:-96,top:-96,width:192,height:192,right:96,bottom:96},widthR:48,heightR:48,bCircle:96,sideLen:96,backLen:96,overhead:0}},_={behind:S,disc:"disc",square:"square",arrow1:"arrow1",arrow2:"arrow2",arrow3:"arrow3",hand:"hand",crosshair:"crosshair"},v={disc:"disc",square:"square",arrow1:"arrow1",arrow2:"arrow2",arrow3:"arrow3",hand:"hand",crosshair:"crosshair"},E=[1,2,3,4],x="auto",b={x:"left",y:"top",width:"width",height:"height"},k=10,w=30,O=.5522847,M=.25*Math.PI,I=/^\s*(\-?[\d\.]+)\s*(\%)?\s*$/,C="http://www.w3.org/2000/svg",L="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style&&!window.navigator.msPointerEnabled,A=!L&&!!document.uniqueID,V="MozAppearance"in document.documentElement.style,P=!(L||V||!window.chrome||!window.CSS),N=!(L||A||V||P||window.chrome||!("WebkitAppearance"in document.documentElement.style)),T=A||L?.2:.1,W={path:3,lineColor:"coral",lineSize:4,plugSE:[S,"arrow1"],plugSizeSE:[1,1],lineOutlineEnabled:!1,lineOutlineColor:"indianred",lineOutlineSize:.25,plugOutlineEnabledSE:[!1,!1],plugOutlineSizeSE:[1,1]},B=(h={}.toString,p={}.hasOwnProperty.toString,c=p.call(Object),function(e){var t,n;return e&&"[object Object]"===h.call(e)&&(!(t=Object.getPrototypeOf(e))||(n=t.hasOwnProperty("constructor")&&t.constructor)&&"function"==typeof n&&p.call(n)===c)}),R=Number.isFinite||function(e){return"number"==typeof e&&window.isFinite(e)},F=function(){var e,t={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},n=1e3/60/2,a=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,n)},i=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(e){clearTimeout(e)},o=Number.isFinite||function(e){return"number"==typeof e&&window.isFinite(e)},l=[],r=0;function s(){var t=Date.now(),o=!1;e&&(i.call(window,e),e=null),l.forEach(function(e){var a,i,l;if(e.framesStart){if((a=t-e.framesStart)>=e.duration&&e.count&&e.loopsLeft<=1)return l=e.frames[e.lastFrame=e.reverse?0:e.frames.length-1],e.frameCallback(l.value,!0,l.timeRatio,l.outputRatio),void(e.framesStart=null);if(a>e.duration){if(i=Math.floor(a/e.duration),e.count){if(i>=e.loopsLeft)return l=e.frames[e.lastFrame=e.reverse?0:e.frames.length-1],e.frameCallback(l.value,!0,l.timeRatio,l.outputRatio),void(e.framesStart=null);e.loopsLeft-=i}e.framesStart+=e.duration*i,a=t-e.framesStart}e.reverse&&(a=e.duration-a),l=e.frames[e.lastFrame=Math.round(a/n)],!1!==e.frameCallback(l.value,!1,l.timeRatio,l.outputRatio)?o=!0:e.framesStart=null}}),o&&(e=a.call(window,s))}function u(e,t){e.framesStart=Date.now(),null!=t&&(e.framesStart-=e.duration*(e.reverse?1-t:t)),e.loopsLeft=e.count,e.lastFrame=null,s()}return{add:function(e,a,i,o,s,h,p){var c,d,f,y,S,m,g,_,v,E,x,b,k,w=++r;function O(t,n){return{value:e(n),timeRatio:t,outputRatio:n}}if("string"==typeof s&&(s=t[s]),e=e||function(){},i<n)d=[O(0,0),O(1,1)];else{if(f=n/i,d=[O(0,0)],0===s[0]&&0===s[1]&&1===s[2]&&1===s[3])for(S=f;S<=1;S+=f)d.push(O(S,S));else for(m=y=(S=f)/10;m<=1;m+=y)E=(v=(_=m)*_)*_,k=3*(x=1-_)*v,S<=(g={x:(b=x*x*3*_)*s[0]+k*s[2]+E,y:b*s[1]+k*s[3]+E}).x&&(d.push(O(g.x,g.y)),S+=f);d.push(O(1,1))}return c={animId:w,frameCallback:a,duration:i,count:o,frames:d,reverse:!!h},l.push(c),!1!==p&&u(c,p),w},remove:function(e){var t;l.some(function(n,a){return n.animId===e&&(t=a,!(n.framesStart=null))})&&l.splice(t,1)},start:function(e,t,n){l.some(function(a){return a.animId===e&&(a.reverse=!!t,u(a,n),!0)})},stop:function(e,t){var n;return l.some(function(a){return a.animId===e&&(t?null!=a.lastFrame&&(n=a.frames[a.lastFrame].timeRatio):(n=(Date.now()-a.framesStart)/a.duration,a.reverse&&(n=1-n),n<0?n=0:1<n&&(n=1)),!(a.framesStart=null))}),n},validTiming:function(e){return"string"==typeof e?t[e]:Array.isArray(e)&&[0,1,2,3].every(function(t){return o(e[t])&&0<=e[t]&&e[t]<=1})?[e[0],e[1],e[2],e[3]]:null}}}(),G=function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=0)}([function(e,t,n){n.r(t);var a=[],i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(e){return clearTimeout(e)},l=void 0,r=Date.now();function s(){var e=void 0,t=void 0;l&&(o.call(window,l),l=null),a.forEach(function(t){t.event&&(t.listener(t.event),t.event=null,e=!0)}),e?(r=Date.now(),t=!0):Date.now()-r<500&&(t=!0),t&&(l=i.call(window,s))}function u(e){var t=-1;return a.some(function(n,a){return n.listener===e&&(t=a,!0)}),t}var h={add:function(e){var t=void 0;return-1===u(e)?(a.push(t={listener:e}),function(e){t.event=e,l||s()}):null},remove:function(e){var t;-1<(t=u(e))&&(a.splice(t,1),!a.length&&l&&(o.call(window,l),l=null))}};t.default=h}]).default,D={line_altColor:{iniValue:!1},line_color:{},line_colorTra:{iniValue:!1},line_strokeWidth:{},plug_enabled:{iniValue:!1},plug_enabledSE:{hasSE:!0,iniValue:!1},plug_plugSE:{hasSE:!0,iniValue:S},plug_colorSE:{hasSE:!0},plug_colorTraSE:{hasSE:!0,iniValue:!1},plug_markerWidthSE:{hasSE:!0},plug_markerHeightSE:{hasSE:!0},lineOutline_enabled:{iniValue:!1},lineOutline_color:{},lineOutline_colorTra:{iniValue:!1},lineOutline_strokeWidth:{},lineOutline_inStrokeWidth:{},plugOutline_enabledSE:{hasSE:!0,iniValue:!1},plugOutline_plugSE:{hasSE:!0,iniValue:S},plugOutline_colorSE:{hasSE:!0},plugOutline_colorTraSE:{hasSE:!0,iniValue:!1},plugOutline_strokeWidthSE:{hasSE:!0},plugOutline_inStrokeWidthSE:{hasSE:!0},position_socketXYSE:{hasSE:!0,hasProps:!0},position_plugOverheadSE:{hasSE:!0},position_path:{},position_lineStrokeWidth:{},position_socketGravitySE:{hasSE:!0},path_pathData:{},path_edge:{hasProps:!0},viewBox_bBox:{hasProps:!0},viewBox_plugBCircleSE:{hasSE:!0},lineMask_enabled:{iniValue:!1},lineMask_outlineMode:{iniValue:!1},lineMask_x:{},lineMask_y:{},lineOutlineMask_x:{},lineOutlineMask_y:{},maskBGRect_x:{},maskBGRect_y:{},capsMaskAnchor_enabledSE:{hasSE:!0,iniValue:!1},capsMaskAnchor_pathDataSE:{hasSE:!0},capsMaskAnchor_strokeWidthSE:{hasSE:!0},capsMaskMarker_enabled:{iniValue:!1},capsMaskMarker_enabledSE:{hasSE:!0,iniValue:!1},capsMaskMarker_plugSE:{hasSE:!0,iniValue:S},capsMaskMarker_markerWidthSE:{hasSE:!0},capsMaskMarker_markerHeightSE:{hasSE:!0},caps_enabled:{iniValue:!1},attach_plugSideLenSE:{hasSE:!0},attach_plugBackLenSE:{hasSE:!0}},z={show_on:{},show_effect:{},show_animOptions:{},show_animId:{},show_inAnim:{}},j="fade",H=[],U={},Z=0,Y={},X=0;function q(e,t){var n,a;return typeof e!=typeof t||(n=B(e)?"obj":Array.isArray(e)?"array":"")!=(B(t)?"obj":Array.isArray(t)?"array":"")||("obj"===n?q(a=Object.keys(e).sort(),Object.keys(t).sort())||a.some(function(n){return q(e[n],t[n])}):"array"===n?e.length!==t.length||e.some(function(e,n){return q(e,t[n])}):e!==t)}function Q(e){return e?B(e)?Object.keys(e).reduce(function(t,n){return t[n]=Q(e[n]),t},{}):Array.isArray(e)?e.map(Q):e:e}function K(e){var t,n,a,i=1,o=e=(e+"").trim();function l(e){var t=1,n=I.exec(e);return n&&(t=parseFloat(n[1]),n[2]?t=0<=t&&t<=100?t/100:1:(t<0||1<t)&&(t=1)),t}return(t=/^(rgba|hsla|hwb|gray|device\-cmyk)\s*\(([\s\S]+)\)$/i.exec(e))?(n=t[1].toLowerCase(),a=t[2].trim().split(/\s*,\s*/),"rgba"===n&&4===a.length?(i=l(a[3]),o="rgb("+a.slice(0,3).join(", ")+")"):"hsla"===n&&4===a.length?(i=l(a[3]),o="hsl("+a.slice(0,3).join(", ")+")"):"hwb"===n&&4===a.length?(i=l(a[3]),o="hwb("+a.slice(0,3).join(", ")+")"):"gray"===n&&2===a.length?(i=l(a[1]),o="gray("+a[0]+")"):"device-cmyk"===n&&5<=a.length&&(i=l(a[4]),o="device-cmyk("+a.slice(0,4).join(", ")+")")):(t=/^\#(?:([\da-f]{6})([\da-f]{2})|([\da-f]{3})([\da-f]))$/i.exec(e))?t[1]?(i=parseInt(t[2],16)/255,o="#"+t[1]):(i=parseInt(t[4]+t[4],16)/255,o="#"+t[3]):"transparent"===e.toLocaleLowerCase()&&(i=0),[i,o]}function J(e){return!(!e||e.nodeType!==Node.ELEMENT_NODE||"function"!=typeof e.getBoundingClientRect)}function $(e,t){var n,a,i,o,l={};if(!(i=e.ownerDocument))return console.error("Cannot get document that contains the element."),null;if(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_DISCONNECTED)return console.error("A disconnected element was passed."),null;for(a in n=e.getBoundingClientRect())l[a]=n[a];if(!t){if(!(o=i.defaultView))return console.error("Cannot get window that contains the element."),null;l.left+=o.pageXOffset,l.right+=o.pageXOffset,l.top+=o.pageYOffset,l.bottom+=o.pageYOffset}return l}function ee(e,t){var n,a,i=[],o=e;for(t=t||window;;){if(!(n=o.ownerDocument))return console.error("Cannot get document that contains the element."),null;if(!(a=n.defaultView))return console.error("Cannot get window that contains the element."),null;if(a===t)break;if(!(o=a.frameElement))return console.error("`baseWindow` was not found."),null;i.unshift(o)}return i}function te(e,t){var n,a,i=0,o=0;return(a=ee(e,t=t||window))?a.length?(a.forEach(function(e,t){var n,a,l=$(e,0<t);i+=l.left,o+=l.top,a=(n=e).ownerDocument.defaultView.getComputedStyle(n,""),l={left:n.clientLeft+parseFloat(a.paddingLeft),top:n.clientTop+parseFloat(a.paddingTop)},i+=l.left,o+=l.top}),(n=$(e,!0)).left+=i,n.right+=i,n.top+=o,n.bottom+=o,n):$(e):null}function ne(e,t){var n=e.x-t.x,a=e.y-t.y;return Math.sqrt(n*n+a*a)}function ae(e,t,n){var a=t.x-e.x,i=t.y-e.y;return{x:e.x+a*n,y:e.y+i*n,angle:Math.atan2(i,a)/(Math.PI/180)}}function ie(e,t,n){var a=Math.atan2(e.y-t.y,t.x-e.x);return{x:t.x+Math.cos(a)*n,y:t.y+Math.sin(a)*n*-1}}function oe(e,t,n,a,i){var o=i*i,l=o*i,r=1-i,s=r*r,u=s*r,h=u*e.x+3*s*i*t.x+3*r*o*n.x+l*a.x,p=u*e.y+3*s*i*t.y+3*r*o*n.y+l*a.y,c=e.x+2*i*(t.x-e.x)+o*(n.x-2*t.x+e.x),d=e.y+2*i*(t.y-e.y)+o*(n.y-2*t.y+e.y),f=t.x+2*i*(n.x-t.x)+o*(a.x-2*n.x+t.x),y=t.y+2*i*(n.y-t.y)+o*(a.y-2*n.y+t.y),S=r*e.x+i*t.x,m=r*e.y+i*t.y,g=r*n.x+i*a.x,_=r*n.y+i*a.y,v=90-180*Math.atan2(c-f,d-y)/Math.PI;return{x:h,y:p,fromP2:{x:c,y:d},toP1:{x:f,y:y},fromP1:{x:S,y:m},toP2:{x:g,y:_},angle:v+=180<v?-180:180}}function le(e,t,n,a,i){function o(e,t,n,a,i){return e*(e*(-3*t+9*n-9*a+3*i)+6*t-12*n+6*a)-3*t+3*n}var l,r,s,u,h,p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],c=0;return l=(i=null==i||1<i?1:i<0?0:i)/2,[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816].forEach(function(i,d){s=o(r=l*i+l,e.x,t.x,n.x,a.x),u=o(r,e.y,t.y,n.y,a.y),h=s*s+u*u,c+=p[d]*Math.sqrt(h)}),l*c}function re(e,t,n,a,i){for(var o,l=.5,r=1-l;o=le(e,t,n,a,r),!(Math.abs(o-i)<=.01);)r+=(o<i?1:-1)*(l/=2);return r}function se(e,t){var n;return e.forEach(function(e){var a=t?e.map(function(e){var n={x:e.x,y:e.y};return t(n),n}):e;n||(n=[{type:"M",values:[a[0].x,a[0].y]}]),n.push(a.length?2===a.length?{type:"L",values:[a[1].x,a[1].y]}:{type:"C",values:[a[1].x,a[1].y,a[2].x,a[2].y,a[3].x,a[3].y]}:{type:"Z",values:[]})}),n}function ue(e){var t=[],n=0;return e.forEach(function(e){var a=(2===e.length?ne:le).apply(null,e);t.push(a),n+=a}),{segsLen:t,lenAll:n}}function he(e,t){return null==e||null==t||e.length!==t.length||e.some(function(e,n){var a=t[n];return e.type!==a.type||e.values.some(function(e,t){return e!==a.values[t]})})}function pe(e,t,n){e.events[t]?e.events[t].indexOf(n)<0&&e.events[t].push(n):e.events[t]=[n]}function ce(e,t,n){var a;e.events[t]&&-1<(a=e.events[t].indexOf(n))&&e.events[t].splice(a,1)}function de(e){l&&clearTimeout(l),H.push(e),l=setTimeout(function(){H.forEach(function(e){e()}),H=[]},0)}function fe(e,t){e.reflowTargets.indexOf(t)<0&&e.reflowTargets.push(t)}function ye(e){e.reflowTargets.forEach(function(e){var t;t=e,setTimeout(function(){var e=t.parentNode,n=t.nextSibling;e.insertBefore(e.removeChild(t),n)},0)}),e.reflowTargets=[]}function Se(e,t,n,a,i,o,l){var s,u,h;"auto-start-reverse"===n?("boolean"!=typeof r&&(t.setAttribute("orient","auto-start-reverse"),r=t.orientType.baseVal===SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN),r?t.setAttribute("orient",n):((s=i.createSVGTransform()).setRotate(180,0,0),o.transform.baseVal.appendItem(s),t.setAttribute("orient","auto"),h=!0)):(t.setAttribute("orient",n),!1===r&&o.transform.baseVal.clear()),u=t.viewBox.baseVal,h?(u.x=-a.right,u.y=-a.bottom):(u.x=a.left,u.y=a.top),u.width=a.width,u.height=a.height,A&&fe(e,l)}function me(e,t){return{prop:e?"markerEnd":"markerStart",orient:t?t.noRotate?"0":e?"auto":"auto-start-reverse":null}}function ge(e,t){Object.keys(t).forEach(function(n){var a=t[n];e[n]=null!=a.iniValue?a.hasSE?[a.iniValue,a.iniValue]:a.iniValue:a.hasSE?a.hasProps?[{},{}]:[]:a.hasProps?{}:null})}function _e(e,t,n,a,i){return a!==t[n]&&(t[n]=a,i&&i.forEach(function(t){t(e,a,n)}),!0)}function ve(e){function t(e,t){return e+parseFloat(t)}var n=e.document,a=e.getComputedStyle(n.documentElement,""),i=e.getComputedStyle(n.body,""),o={x:0,y:0};return"static"!==i.position?(o.x-=[a.marginLeft,a.borderLeftWidth,a.paddingLeft,i.marginLeft,i.borderLeftWidth].reduce(t,0),o.y-=[a.marginTop,a.borderTopWidth,a.paddingTop,i.marginTop,i.borderTopWidth].reduce(t,0)):"static"!==a.position&&(o.x-=[a.marginLeft,a.borderLeftWidth].reduce(t,0),o.y-=[a.marginTop,a.borderTopWidth].reduce(t,0)),o}function Ee(e){var t,n=e.document;n.getElementById(m)||(t=(new e.DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="leader-line-defs"><style><![CDATA[.leader-line{position:absolute;overflow:visible!important;pointer-events:none!important;font-size:16px}#leader-line-defs{width:0;height:0;position:absolute;left:0;top:0}.leader-line-line-path{fill:none}.leader-line-mask-bg-rect{fill:#fff}.leader-line-caps-mask-anchor,.leader-line-caps-mask-marker-shape{fill:#000}.leader-line-caps-mask-anchor{stroke:#000}.leader-line-caps-mask-line,.leader-line-plugs-face{stroke:transparent}.leader-line-line-mask-shape{stroke:#fff}.leader-line-line-outline-mask-shape{stroke:#000}.leader-line-plug-mask-shape{fill:#fff;stroke:#000}.leader-line-plug-outline-mask-shape{fill:#000;stroke:#fff}.leader-line-areaAnchor{position:absolute;overflow:visible!important}]]></style><defs><circle id="leader-line-disc" cx="0" cy="0" r="5"/><rect id="leader-line-square" x="-5" y="-5" width="10" height="10"/><polygon id="leader-line-arrow1" points="-8,-8 8,0 -8,8 -5,0"/><polygon id="leader-line-arrow2" points="-4,-8 4,0 -4,8 -7,5 -2,0 -7,-5"/><polygon id="leader-line-arrow3" points="-4,-5 8,0 -4,5"/><g id="leader-line-hand"><path style="fill: #fcfcfc" d="M9.19 11.14h4.75c1.38 0 2.49-1.11 2.49-2.49 0-.51-.15-.98-.41-1.37h1.3c1.38 0 2.49-1.11 2.49-2.49s-1.11-2.53-2.49-2.53h1.02c1.38 0 2.49-1.11 2.49-2.49s-1.11-2.49-2.49-2.49h14.96c1.37 0 2.49-1.11 2.49-2.49s-1.11-2.49-2.49-2.49H16.58C16-9.86 14.28-11.14 9.7-11.14c-4.79 0-6.55 3.42-7.87 4.73H-2.14v13.23h3.68C3.29 9.97 5.47 11.14 9.19 11.14L9.19 11.14Z"/><path style="fill: black" d="M13.95 12c1.85 0 3.35-1.5 3.35-3.35 0-.17-.02-.34-.04-.51h.07c1.85 0 3.35-1.5 3.35-3.35 0-.79-.27-1.51-.72-2.08 1.03-.57 1.74-1.67 1.74-2.93 0-.59-.16-1.15-.43-1.63h12.04c1.85 0 3.35-1.5 3.35-3.35 0-1.85-1.5-3.35-3.35-3.35H17.2C16.26-10.93 13.91-12 9.7-12 5.36-12 3.22-9.4 1.94-7.84c0 0-.29.33-.5.57-.63 0-3.58 0-3.58 0C-2.61-7.27-3-6.88-3-6.41v13.23c0 .47.39.86.86.86 0 0 2.48 0 3.2 0C2.9 10.73 5.29 12 9.19 12L13.95 12ZM9.19 10.28c-3.46 0-5.33-1.05-6.9-3.87-.15-.27-.44-.44-.75-.44 0 0-1.81 0-2.82 0V-5.55c1.06 0 3.11 0 3.11 0 .25 0 .44-.06.61-.25l.83-.95c1.23-1.49 2.91-3.53 6.43-3.53 3.45 0 4.9.74 5.57 1.72h-4.3c-.48 0-.86.38-.86.86s.39.86.86.86h22.34c.9 0 1.63.73 1.63 1.63 0 .9-.73 1.63-1.63 1.63H15.83c-.48 0-.86.38-.86.86 0 .47.39.86.86.86h2.52c.9 0 1.63.73 1.63 1.63s-.73 1.63-1.63 1.63h-3.12c-.48 0-.86.38-.86.86 0 .47.39.86.86.86h2.11c.88 0 1.63.76 1.63 1.67 0 .9-.73 1.63-1.63 1.63h-3.2c-.48 0-.86.39-.86.86 0 .47.39.86.86.86h1.36c.05.16.09.34.09.51 0 .9-.73 1.63-1.63 1.63C13.95 10.28 9.19 10.28 9.19 10.28Z"/></g><g id="leader-line-crosshair"><path d="M0-78.97c-43.54 0-78.97 35.43-78.97 78.97 0 43.54 35.43 78.97 78.97 78.97s78.97-35.43 78.97-78.97C78.97-43.54 43.55-78.97 0-78.97ZM76.51-1.21h-9.91v-9.11h-2.43v9.11h-11.45c-.64-28.12-23.38-50.86-51.5-51.5V-64.17h9.11V-66.6h-9.11v-9.91C42.46-75.86 75.86-42.45 76.51-1.21ZM-1.21-30.76h-9.11v2.43h9.11V-4.2c-1.44.42-2.57 1.54-2.98 2.98H-28.33v-9.11h-2.43v9.11H-50.29C-49.65-28-27.99-49.65-1.21-50.29V-30.76ZM-30.76 1.21v9.11h2.43v-9.11H-4.2c.42 1.44 1.54 2.57 2.98 2.98v24.13h-9.11v2.43h9.11v19.53C-27.99 49.65-49.65 28-50.29 1.21H-30.76ZM1.22 30.75h9.11v-2.43h-9.11V4.2c1.44-.42 2.56-1.54 2.98-2.98h24.13v9.11h2.43v-9.11h19.53C49.65 28 28 49.65 1.22 50.29V30.75ZM30.76-1.21v-9.11h-2.43v9.11H4.2c-.42-1.44-1.54-2.56-2.98-2.98V-28.33h9.11v-2.43h-9.11V-50.29C28-49.65 49.65-28 50.29-1.21H30.76ZM-1.21-76.51v9.91h-9.11v2.43h9.11v11.45c-28.12.64-50.86 23.38-51.5 51.5H-64.17v-9.11H-66.6v9.11h-9.91C-75.86-42.45-42.45-75.86-1.21-76.51ZM-76.51 1.21h9.91v9.11h2.43v-9.11h11.45c.64 28.12 23.38 50.86 51.5 51.5v11.45h-9.11v2.43h9.11v9.91C-42.45 75.86-75.86 42.45-76.51 1.21ZM1.22 76.51v-9.91h9.11v-2.43h-9.11v-11.45c28.12-.64 50.86-23.38 51.5-51.5h11.45v9.11h2.43v-9.11h9.91C75.86 42.45 42.45 75.86 1.22 76.51Z"/><path d="M0 83.58-7.1 96 7.1 96Z"/><path d="M0-83.58 7.1-96-7.1-96"/><path d="M83.58 0 96 7.1 96-7.1Z"/><path d="M-83.58 0-96-7.1-96 7.1Z"/></g></defs></svg>',"image/svg+xml"),n.body.appendChild(t.documentElement),function(e){e.SVGPathElement.prototype.getPathData&&e.SVGPathElement.prototype.setPathData||function(){var t={Z:"Z",M:"M",L:"L",C:"C",Q:"Q",A:"A",H:"H",V:"V",S:"S",T:"T",z:"Z",m:"m",l:"l",c:"c",q:"q",a:"a",h:"h",v:"v",s:"s",t:"t"},n=function(e){this._string=e,this._currentIndex=0,this._endIndex=this._string.length,this._prevCommand=null,this._skipOptionalSpaces()},a=-1!==e.navigator.userAgent.indexOf("MSIE ");n.prototype={parseSegment:function(){var e=this._string[this._currentIndex],n=t[e]?t[e]:null;if(null===n){if(null===this._prevCommand)return null;if(null===(n=("+"===e||"-"===e||"."===e||"0"<=e&&e<="9")&&"Z"!==this._prevCommand?"M"===this._prevCommand?"L":"m"===this._prevCommand?"l":this._prevCommand:null))return null}else this._currentIndex+=1;var a=null,i=(this._prevCommand=n).toUpperCase();return"H"===i||"V"===i?a=[this._parseNumber()]:"M"===i||"L"===i||"T"===i?a=[this._parseNumber(),this._parseNumber()]:"S"===i||"Q"===i?a=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:"C"===i?a=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:"A"===i?a=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseArcFlag(),this._parseArcFlag(),this._parseNumber(),this._parseNumber()]:"Z"===i&&(this._skipOptionalSpaces(),a=[]),null===a||0<=a.indexOf(null)?null:{type:n,values:a}},hasMoreData:function(){return this._currentIndex<this._endIndex},peekSegmentType:function(){var e=this._string[this._currentIndex];return t[e]?t[e]:null},initialCommandIsMoveTo:function(){if(!this.hasMoreData())return!0;var e=this.peekSegmentType();return"M"===e||"m"===e},_isCurrentSpace:function(){var e=this._string[this._currentIndex];return e<=" "&&(" "===e||"\n"===e||"\t"===e||"\r"===e||"\f"===e)},_skipOptionalSpaces:function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex+=1;return this._currentIndex<this._endIndex},_skipOptionalSpacesOrDelimiter:function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!==this._string[this._currentIndex])&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","===this._string[this._currentIndex]&&(this._currentIndex+=1,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},_parseNumber:function(){var e=0,t=0,n=1,a=0,i=1,o=1,l=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"===this._string[this._currentIndex]?this._currentIndex+=1:this._currentIndex<this._endIndex&&"-"===this._string[this._currentIndex]&&(this._currentIndex+=1,i=-1),this._currentIndex===this._endIndex||(this._string[this._currentIndex]<"0"||"9"<this._string[this._currentIndex])&&"."!==this._string[this._currentIndex])return null;for(var r=this._currentIndex;this._currentIndex<this._endIndex&&"0"<=this._string[this._currentIndex]&&this._string[this._currentIndex]<="9";)this._currentIndex+=1;if(this._currentIndex!==r)for(var s=this._currentIndex-1,u=1;r<=s;)t+=u*(this._string[s]-"0"),s-=1,u*=10;if(this._currentIndex<this._endIndex&&"."===this._string[this._currentIndex]){if(this._currentIndex+=1,this._currentIndex>=this._endIndex||this._string[this._currentIndex]<"0"||"9"<this._string[this._currentIndex])return null;for(;this._currentIndex<this._endIndex&&"0"<=this._string[this._currentIndex]&&this._string[this._currentIndex]<="9";)n*=10,a+=(this._string.charAt(this._currentIndex)-"0")/n,this._currentIndex+=1}if(this._currentIndex!==l&&this._currentIndex+1<this._endIndex&&("e"===this._string[this._currentIndex]||"E"===this._string[this._currentIndex])&&"x"!==this._string[this._currentIndex+1]&&"m"!==this._string[this._currentIndex+1]){if(this._currentIndex+=1,"+"===this._string[this._currentIndex]?this._currentIndex+=1:"-"===this._string[this._currentIndex]&&(this._currentIndex+=1,o=-1),this._currentIndex>=this._endIndex||this._string[this._currentIndex]<"0"||"9"<this._string[this._currentIndex])return null;for(;this._currentIndex<this._endIndex&&"0"<=this._string[this._currentIndex]&&this._string[this._currentIndex]<="9";)e*=10,e+=this._string[this._currentIndex]-"0",this._currentIndex+=1}var h=t+a;return h*=i,e&&(h*=Math.pow(10,o*e)),l===this._currentIndex?null:(this._skipOptionalSpacesOrDelimiter(),h)},_parseArcFlag:function(){if(this._currentIndex>=this._endIndex)return null;var e=null,t=this._string[this._currentIndex];if(this._currentIndex+=1,"0"===t)e=0;else{if("1"!==t)return null;e=1}return this._skipOptionalSpacesOrDelimiter(),e}};var i=function(e){if(!e||0===e.length)return[];var t=new n(e),a=[];if(t.initialCommandIsMoveTo())for(;t.hasMoreData();){var i=t.parseSegment();if(null===i)break;a.push(i)}return a},o=e.SVGPathElement.prototype.setAttribute,l=e.SVGPathElement.prototype.removeAttribute,r=e.Symbol?e.Symbol():"__cachedPathData",s=e.Symbol?e.Symbol():"__cachedNormalizedPathData",u=function(e,t,n,a,i,o,l,r,s,h){var p,c,d,f,y,S=function(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}},m=(p=l,Math.PI*p/180),g=[];if(h)c=h[0],d=h[1],f=h[2],y=h[3];else{var _=S(e,t,-m);e=_.x,t=_.y;var v=S(n,a,-m),E=(e-(n=v.x))/2,x=(t-(a=v.y))/2,b=E*E/(i*i)+x*x/(o*o);1<b&&(i*=b=Math.sqrt(b),o*=b);var k=i*i,w=o*o,O=k*w-k*x*x-w*E*E,M=k*x*x+w*E*E,I=(r===s?-1:1)*Math.sqrt(Math.abs(O/M));f=I*i*x/o+(e+n)/2,y=I*-o*E/i+(t+a)/2,c=Math.asin(parseFloat(((t-y)/o).toFixed(9))),d=Math.asin(parseFloat(((a-y)/o).toFixed(9))),e<f&&(c=Math.PI-c),n<f&&(d=Math.PI-d),c<0&&(c=2*Math.PI+c),d<0&&(d=2*Math.PI+d),s&&d<c&&(c-=2*Math.PI),!s&&c<d&&(d-=2*Math.PI)}var C=d-c;if(Math.abs(C)>120*Math.PI/180){var L=d,A=n,V=a;d=s&&c<d?c+120*Math.PI/180*1:c+120*Math.PI/180*-1,n=f+i*Math.cos(d),a=y+o*Math.sin(d),g=u(n,a,A,V,i,o,l,0,s,[d,L,f,y])}C=d-c;var P=Math.cos(c),N=Math.sin(c),T=Math.cos(d),W=Math.sin(d),B=Math.tan(C/4),R=4/3*i*B,F=4/3*o*B,G=[e,t],D=[e+R*N,t-F*P],z=[n+R*W,a-F*T],j=[n,a];if(D[0]=2*G[0]-D[0],D[1]=2*G[1]-D[1],h)return[D,z,j].concat(g);g=[D,z,j].concat(g).join().split(",");var H=[],U=[];return g.forEach(function(e,t){t%2?U.push(S(g[t-1],g[t],m).y):U.push(S(g[t],g[t+1],m).x),6===U.length&&(H.push(U),U=[])}),H},h=function(e){return e.map(function(e){return{type:e.type,values:Array.prototype.slice.call(e.values)}})},p=function(e){var t=[],n=null,a=null,i=null,o=null,l=null,r=null,s=null;return e.forEach(function(e){if("M"===e.type){var h=e.values[0],p=e.values[1];t.push({type:"M",values:[h,p]}),o=r=h,l=s=p}else if("C"===e.type){var c=e.values[0],d=e.values[1],f=e.values[2],y=e.values[3];h=e.values[4],p=e.values[5],t.push({type:"C",values:[c,d,f,y,h,p]}),a=f,i=y,o=h,l=p}else if("L"===e.type)h=e.values[0],p=e.values[1],t.push({type:"L",values:[h,p]}),o=h,l=p;else if("H"===e.type)h=e.values[0],t.push({type:"L",values:[h,l]}),o=h;else if("V"===e.type)p=e.values[0],t.push({type:"L",values:[o,p]}),l=p;else if("S"===e.type)f=e.values[0],y=e.values[1],h=e.values[2],p=e.values[3],"C"===n||"S"===n?(S=o+(o-a),m=l+(l-i)):(S=o,m=l),t.push({type:"C",values:[S,m,f,y,h,p]}),a=f,i=y,o=h,l=p;else if("T"===e.type){h=e.values[0],p=e.values[1],"Q"===n||"T"===n?(c=o+(o-a),d=l+(l-i)):(c=o,d=l);var S=o+2*(c-o)/3,m=l+2*(d-l)/3,g=h+2*(c-h)/3,_=p+2*(d-p)/3;t.push({type:"C",values:[S,m,g,_,h,p]}),a=c,i=d,o=h,l=p}else if("Q"===e.type)c=e.values[0],d=e.values[1],h=e.values[2],p=e.values[3],S=o+2*(c-o)/3,m=l+2*(d-l)/3,g=h+2*(c-h)/3,_=p+2*(d-p)/3,t.push({type:"C",values:[S,m,g,_,h,p]}),a=c,i=d,o=h,l=p;else if("A"===e.type){var v=e.values[0],E=e.values[1],x=e.values[2],b=e.values[3],k=e.values[4];h=e.values[5],p=e.values[6],0===v||0===E?(t.push({type:"C",values:[o,l,h,p,h,p]}),o=h,l=p):o===h&&l===p||u(o,l,h,p,v,E,x,b,k).forEach(function(e){t.push({type:"C",values:e}),o=h,l=p})}else"Z"===e.type&&(t.push(e),o=r,l=s);n=e.type}),t};e.SVGPathElement.prototype.setAttribute=function(e,t){"d"===e&&(this[r]=null,this[s]=null),o.call(this,e,t)},e.SVGPathElement.prototype.removeAttribute=function(e,t){"d"===e&&(this[r]=null,this[s]=null),l.call(this,e)},e.SVGPathElement.prototype.getPathData=function(e){if(e&&e.normalize){if(this[s])return h(this[s]);this[r]?c=h(this[r]):(c=i(this.getAttribute("d")||""),this[r]=h(c));var t=p((n=[],u=l=o=a=null,c.forEach(function(e){var t=e.type;if("M"===t){var i=e.values[0],r=e.values[1];n.push({type:"M",values:[i,r]}),a=l=i,o=u=r}else if("m"===t)i=a+e.values[0],r=o+e.values[1],n.push({type:"M",values:[i,r]}),a=l=i,o=u=r;else if("L"===t)i=e.values[0],r=e.values[1],n.push({type:"L",values:[i,r]}),a=i,o=r;else if("l"===t)i=a+e.values[0],r=o+e.values[1],n.push({type:"L",values:[i,r]}),a=i,o=r;else if("C"===t){var s=e.values[0],h=e.values[1],p=e.values[2],c=e.values[3];i=e.values[4],r=e.values[5],n.push({type:"C",values:[s,h,p,c,i,r]}),a=i,o=r}else"c"===t?(s=a+e.values[0],h=o+e.values[1],p=a+e.values[2],c=o+e.values[3],i=a+e.values[4],r=o+e.values[5],n.push({type:"C",values:[s,h,p,c,i,r]}),a=i,o=r):"Q"===t?(s=e.values[0],h=e.values[1],i=e.values[2],r=e.values[3],n.push({type:"Q",values:[s,h,i,r]}),a=i,o=r):"q"===t?(s=a+e.values[0],h=o+e.values[1],i=a+e.values[2],r=o+e.values[3],n.push({type:"Q",values:[s,h,i,r]}),a=i,o=r):"A"===t?(i=e.values[5],r=e.values[6],n.push({type:"A",values:[e.values[0],e.values[1],e.values[2],e.values[3],e.values[4],i,r]}),a=i,o=r):"a"===t?(i=a+e.values[5],r=o+e.values[6],n.push({type:"A",values:[e.values[0],e.values[1],e.values[2],e.values[3],e.values[4],i,r]}),a=i,o=r):"H"===t?(i=e.values[0],n.push({type:"H",values:[i]}),a=i):"h"===t?(i=a+e.values[0],n.push({type:"H",values:[i]}),a=i):"V"===t?(r=e.values[0],n.push({type:"V",values:[r]}),o=r):"v"===t?(r=o+e.values[0],n.push({type:"V",values:[r]}),o=r):"S"===t?(p=e.values[0],c=e.values[1],i=e.values[2],r=e.values[3],n.push({type:"S",values:[p,c,i,r]}),a=i,o=r):"s"===t?(p=a+e.values[0],c=o+e.values[1],i=a+e.values[2],r=o+e.values[3],n.push({type:"S",values:[p,c,i,r]}),a=i,o=r):"T"===t?(i=e.values[0],r=e.values[1],n.push({type:"T",values:[i,r]}),a=i,o=r):"t"===t?(i=a+e.values[0],r=o+e.values[1],n.push({type:"T",values:[i,r]}),a=i,o=r):"Z"!==t&&"z"!==t||(n.push({type:"Z",values:[]}),a=l,o=u)}),n));return this[s]=h(t),t}if(this[r])return h(this[r]);var n,a,o,l,u,c=i(this.getAttribute("d")||"");return this[r]=h(c),c},e.SVGPathElement.prototype.setPathData=function(e){if(0===e.length)a?this.setAttribute("d",""):this.removeAttribute("d");else{for(var t="",n=0,i=e.length;n<i;n+=1){var o=e[n];0<n&&(t+=" "),t+=o.type,o.values&&0<o.values.length&&(t+=" "+o.values.join(" "))}this.setAttribute("d",t)}},e.SVGRectElement.prototype.getPathData=function(e){var t=this.x.baseVal.value,n=this.y.baseVal.value,a=this.width.baseVal.value,i=this.height.baseVal.value,o=this.hasAttribute("rx")?this.rx.baseVal.value:this.ry.baseVal.value,l=this.hasAttribute("ry")?this.ry.baseVal.value:this.rx.baseVal.value;a/2<o&&(o=a/2),i/2<l&&(l=i/2);var r=[{type:"M",values:[t+o,n]},{type:"H",values:[t+a-o]},{type:"A",values:[o,l,0,0,1,t+a,n+l]},{type:"V",values:[n+i-l]},{type:"A",values:[o,l,0,0,1,t+a-o,n+i]},{type:"H",values:[t+o]},{type:"A",values:[o,l,0,0,1,t,n+i-l]},{type:"V",values:[n+l]},{type:"A",values:[o,l,0,0,1,t+o,n]},{type:"Z",values:[]}];return r=r.filter(function(e){return"A"!==e.type||0!==e.values[0]&&0!==e.values[1]}),e&&!0===e.normalize&&(r=p(r)),r},e.SVGCircleElement.prototype.getPathData=function(e){var t=this.cx.baseVal.value,n=this.cy.baseVal.value,a=this.r.baseVal.value,i=[{type:"M",values:[t+a,n]},{type:"A",values:[a,a,0,0,1,t,n+a]},{type:"A",values:[a,a,0,0,1,t-a,n]},{type:"A",values:[a,a,0,0,1,t,n-a]},{type:"A",values:[a,a,0,0,1,t+a,n]},{type:"Z",values:[]}];return e&&!0===e.normalize&&(i=p(i)),i},e.SVGEllipseElement.prototype.getPathData=function(e){var t=this.cx.baseVal.value,n=this.cy.baseVal.value,a=this.rx.baseVal.value,i=this.ry.baseVal.value,o=[{type:"M",values:[t+a,n]},{type:"A",values:[a,i,0,0,1,t,n+i]},{type:"A",values:[a,i,0,0,1,t-a,n]},{type:"A",values:[a,i,0,0,1,t,n-i]},{type:"A",values:[a,i,0,0,1,t+a,n]},{type:"Z",values:[]}];return e&&!0===e.normalize&&(o=p(o)),o},e.SVGLineElement.prototype.getPathData=function(){return[{type:"M",values:[this.x1.baseVal.value,this.y1.baseVal.value]},{type:"L",values:[this.x2.baseVal.value,this.y2.baseVal.value]}]},e.SVGPolylineElement.prototype.getPathData=function(){for(var e=[],t=0;t<this.points.numberOfItems;t+=1){var n=this.points.getItem(t);e.push({type:0===t?"M":"L",values:[n.x,n.y]})}return e},e.SVGPolygonElement.prototype.getPathData=function(){for(var e=[],t=0;t<this.points.numberOfItems;t+=1){var n=this.points.getItem(t);e.push({type:0===t?"M":"L",values:[n.x,n.y]})}return e.push({type:"Z",values:[]}),e}}()}(e))}function xe(e){var t,n,a,i,o,l,r,s,u,h,p,c,d,f,y,S,m,g,_,v=e.options,x=e.curStats,b=e.aplStats,I=x.position_socketXYSE,C=!1;function L(e,t){var n=1===t?{x:e.left+e.width/2,y:e.top}:2===t?{x:e.right,y:e.top+e.height/2}:3===t?{x:e.left+e.width/2,y:e.bottom}:{x:e.left,y:e.top+e.height/2};return n.socketId=t,n}function A(e){return{x:e.x,y:e.y}}if(x.position_path=v.path,x.position_lineStrokeWidth=x.line_strokeWidth,x.position_socketGravitySE=t=Q(v.socketGravitySE),n=[0,1].map(function(t){var n,a,i,o=v.anchorSE[t],l=e.optionIsAttach.anchorSE[t],r=!1!==l?Y[o._id]:null,s=!1!==l&&r.conf.getStrokeWidth?r.conf.getStrokeWidth(r,e):0,u=!1!==l&&r.conf.getBBoxNest?r.conf.getBBoxNest(r,e,s):te(o,e.baseWindow);return x.capsMaskAnchor_pathDataSE[t]=!1!==l&&r.conf.getPathData?r.conf.getPathData(r,e,s):(a=null!=(n=u).right?n.right:n.left+n.width,i=null!=n.bottom?n.bottom:n.top+n.height,[{type:"M",values:[n.left,n.top]},{type:"L",values:[a,n.top]},{type:"L",values:[a,i]},{type:"L",values:[n.left,i]},{type:"Z",values:[]}]),x.capsMaskAnchor_strokeWidthSE[t]=s,u}),r=-1,v.socketSE[0]&&v.socketSE[1]?(I[0]=L(n[0],v.socketSE[0]),I[1]=L(n[1],v.socketSE[1])):(v.socketSE[0]||v.socketSE[1]?(v.socketSE[0]?(o=0,l=1):(o=1,l=0),I[o]=L(n[o],v.socketSE[o]),(i=E.map(function(e){return L(n[l],e)})).forEach(function(e){var t=ne(e,I[o]);(t<r||-1===r)&&(I[l]=e,r=t)})):(i=E.map(function(e){return L(n[1],e)}),E.map(function(e){return L(n[0],e)}).forEach(function(e){i.forEach(function(t){var n=ne(e,t);(n<r||-1===r)&&(I[0]=e,I[1]=t,r=n)})})),[0,1].forEach(function(e){var t,a;v.socketSE[e]||(n[e].width||n[e].height?n[e].width||4!==I[e].socketId&&2!==I[e].socketId?n[e].height||1!==I[e].socketId&&3!==I[e].socketId||(I[e].socketId=0<=I[e?0:1].y-n[e].top?3:1):I[e].socketId=0<=I[e?0:1].x-n[e].left?2:4:(t=I[e?0:1].x-n[e].left,a=I[e?0:1].y-n[e].top,I[e].socketId=Math.abs(t)>=Math.abs(a)?0<=t?2:4:0<=a?3:1))})),x.position_path!==b.position_path||x.position_lineStrokeWidth!==b.position_lineStrokeWidth||[0,1].some(function(e){return x.position_plugOverheadSE[e]!==b.position_plugOverheadSE[e]||(o=I[e],l=b.position_socketXYSE[e],o.x!==l.x||o.y!==l.y||o.socketId!==l.socketId)||(n=t[e],a=b.position_socketGravitySE[e],(i=null==n?"auto":Array.isArray(n)?"array":"number")!=(null==a?"auto":Array.isArray(a)?"array":"number")||("array"===i?n[0]!==a[0]||n[1]!==a[1]:n!==a));var n,a,i,o,l})){switch(e.pathList.baseVal=a=[],e.pathList.animVal=null,x.position_path){case 1:a.push([A(I[0]),A(I[1])]);break;case 2:c="number"==typeof t[0]&&0<t[0]||"number"==typeof t[1]&&0<t[1],d=M*(c?-1:1),y=-(f=Math.atan2(I[1].y-I[0].y,I[1].x-I[0].x))+d,S=Math.PI-f-d,m=ne(I[0],I[1])/Math.sqrt(2)*O,g={x:I[0].x+Math.cos(y)*m,y:I[0].y+Math.sin(y)*m*-1},_={x:I[1].x+Math.cos(S)*m,y:I[1].y+Math.sin(S)*m*-1},a.push([A(I[0]),g,_,A(I[1])]);break;case 3:case 4:u=[t[0],4===x.position_path?0:t[1]],h=[],p=[],I.forEach(function(e,t){var n,a,i,o,l,r=u[t];Array.isArray(r)?n={x:r[0],y:r[1]}:"number"==typeof r?n=1===e.socketId?{x:0,y:-r}:2===e.socketId?{x:r,y:0}:3===e.socketId?{x:0,y:r}:{x:-r,y:0}:(a=I[t?0:1],o=0<(i=x.position_plugOverheadSE[t])?120+(8<i?3.75*(i-8):0):80+(x.position_lineStrokeWidth>4?5*(x.position_lineStrokeWidth-4):0),1===e.socketId?((l=(e.y-a.y)/2)<o&&(l=o),n={x:0,y:-l}):2===e.socketId?((l=(a.x-e.x)/2)<o&&(l=o),n={x:l,y:0}):3===e.socketId?((l=(a.y-e.y)/2)<o&&(l=o),n={x:0,y:l}):((l=(e.x-a.x)/2)<o&&(l=o),n={x:-l,y:0})),h[t]=e.x+n.x,p[t]=e.y+n.y}),a.push([A(I[0]),{x:h[0],y:p[0]},{x:h[1],y:p[1]},A(I[1])]);break;case 5:!function(){var e,n=[[],[]],i=[];function o(e){return 1===e?3:2===e?4:3===e?1:2}function l(e){return 2===e||4===e?"x":"y"}function r(e,t,n){var a={x:e.x,y:e.y};if(n){if(n===o(e.dirId))throw new Error("Invalid dirId: "+n);a.dirId=n}else a.dirId=e.dirId;return 1===a.dirId?a.y-=t:2===a.dirId?a.x+=t:3===a.dirId?a.y+=t:a.x-=t,a}function s(e,t){return 1===t.dirId?e.y<=t.y:2===t.dirId?e.x>=t.x:3===t.dirId?e.y>=t.y:e.x<=t.x}function u(e,t){return 1===t.dirId||3===t.dirId?e.x===t.x:e.y===t.y}function h(e){return e[0]?{contain:0,notContain:1}:{contain:1,notContain:0}}function p(e,t,n){return Math.abs(t[n]-e[n])}function c(e,t,n){return"x"===n?e.x<t.x?2:4:e.y<t.y?3:1}function d(){var e,t,a,o,d=[s(i[1],i[0]),s(i[0],i[1])],f=[l(i[0].dirId),l(i[1].dirId)];if(f[0]===f[1]){if(d[0]&&d[1])return u(i[1],i[0])||(i[0][f[0]]===i[1][f[1]]?(n[0].push(i[0]),n[1].push(i[1])):(e=i[0][f[0]]+(i[1][f[1]]-i[0][f[0]])/2,n[0].push(r(i[0],Math.abs(e-i[0][f[0]]))),n[1].push(r(i[1],Math.abs(e-i[1][f[1]]))))),!1;d[0]!==d[1]?(t=h(d),(a=p(i[t.notContain],i[t.contain],f[t.notContain]))<w&&(i[t.notContain]=r(i[t.notContain],w-a)),n[t.notContain].push(i[t.notContain]),i[t.notContain]=r(i[t.notContain],w,u(i[t.contain],i[t.notContain])?"x"===f[t.notContain]?3:2:c(i[t.notContain],i[t.contain],"x"===f[t.notContain]?"y":"x"))):(a=p(i[0],i[1],"x"===f[0]?"y":"x"),n.forEach(function(e,t){var n=0===t?1:0;e.push(i[t]),i[t]=r(i[t],w,60<=a?c(i[t],i[n],"x"===f[t]?"y":"x"):"x"===f[t]?3:2)}))}else{if(d[0]&&d[1])return u(i[1],i[0])?n[1].push(i[1]):u(i[0],i[1])?n[0].push(i[0]):n[0].push("x"===f[0]?{x:i[1].x,y:i[0].y}:{x:i[0].x,y:i[1].y}),!1;d[0]!==d[1]?(t=h(d),n[t.notContain].push(i[t.notContain]),i[t.notContain]=r(i[t.notContain],w,p(i[t.notContain],i[t.contain],f[t.contain])>=w?c(i[t.notContain],i[t.contain],f[t.contain]):i[t.contain].dirId)):(o=[{x:i[0].x,y:i[0].y},{x:i[1].x,y:i[1].y}],n.forEach(function(e,t){var n=0===t?1:0,a=p(o[t],o[n],f[t]);a<w&&(i[t]=r(i[t],w-a)),e.push(i[t]),i[t]=r(i[t],w,c(i[t],i[n],f[n]))}))}return!0}for(I.forEach(function(e,a){var l,s=A(e),u=t[a];l=Array.isArray(u)?u[0]<0?[4,-u[0]]:0<u[0]?[2,u[0]]:u[1]<0?[1,-u[1]]:0<u[1]?[3,u[1]]:[e.socketId,0]:"number"!=typeof u?[e.socketId,w]:0<=u?[e.socketId,u]:[o(e.socketId),-u],s.dirId=l[0],u=l[1],n[a].push(s),i[a]=r(s,u)});d(););n[1].reverse(),n[0].concat(n[1]).forEach(function(t,n){var i={x:t.x,y:t.y};0<n&&a.push([e,i]),e=i})}()}s=[],x.position_plugOverheadSE.forEach(function(e,t){var i,o,l,r,u,h,p,c,d,f,y,S=!t;0<e?2===(i=a[o=S?0:a.length-1]).length?(s[o]=s[o]||ne.apply(null,i),s[o]>k&&(s[o]-e<k&&(e=s[o]-k),l=ae(i[0],i[1],(S?e:s[o]-e)/s[o]),a[o]=S?[l,i[1]]:[i[0],l],s[o]-=e)):(s[o]=s[o]||le.apply(null,i),s[o]>k&&(s[o]-e<k&&(e=s[o]-k),l=oe(i[0],i[1],i[2],i[3],re(i[0],i[1],i[2],i[3],S?e:s[o]-e)),S?(r=i[0],u=l.toP1):(r=i[3],u=l.fromP2),h=Math.atan2(r.y-l.y,l.x-r.x),p=ne(l,u),l.x=r.x+Math.cos(h)*e,l.y=r.y+Math.sin(h)*e*-1,u.x=l.x+Math.cos(h)*p,u.y=l.y+Math.sin(h)*p*-1,a[o]=S?[l,l.toP1,l.toP2,i[3]]:[i[0],l.fromP1,l.fromP2,l],s[o]=null)):e<0&&(i=a[o=S?0:a.length-1],c=I[t].socketId,d=4===c||2===c?"x":"y",e<(y=-n[t]["x"===d?"width":"height"])&&(e=y),f=e*(4===c||1===c?-1:1),2===i.length?i[S?0:i.length-1][d]+=f:(S?[0,1]:[i.length-2,i.length-1]).forEach(function(e){i[e][d]+=f}),s[o]=null)}),b.position_socketXYSE=Q(I),b.position_plugOverheadSE=Q(x.position_plugOverheadSE),b.position_path=x.position_path,b.position_lineStrokeWidth=x.position_lineStrokeWidth,b.position_socketGravitySE=Q(t),C=!0,e.events.apl_position&&e.events.apl_position.forEach(function(t){t(e,a)})}return C}function be(e,t){t!==e.isShown&&(!!t!=!!e.isShown&&(e.svg.style.visibility=t?"":"hidden"),e.isShown=t,e.events&&e.events.svgShow&&e.events.svgShow.forEach(function(n){n(e,t)}))}function ke(t,n){var a,i,o,l,r,s,u,h,p,c,d,f,y,m,_,E,x,k,w,O,M,I,C,L,B,R,F,G,D,z,j,H,U,Z,Y,X,J,$,ee,te,ne,ae,ie,oe,le,re,ue,pe,ce,de,ge,ve,Ee={};n.line&&(Ee.line=(i=(a=t).options,o=a.curStats,l=a.events,r=!1,r=_e(a,o,"line_color",i.lineColor,l.cur_line_color)||r,r=_e(a,o,"line_colorTra",K(o.line_color)[0]<1)||r,r=_e(a,o,"line_strokeWidth",i.lineSize,l.cur_line_strokeWidth)||r)),(n.plug||Ee.line)&&(Ee.plug=(u=(s=t).options,h=s.curStats,p=s.events,c=!1,[0,1].forEach(function(e){var t,n,a,i,o,l,r,d,f=u.plugSE[e];c=_e(s,h.plug_enabledSE,e,f!==S)||c,c=_e(s,h.plug_plugSE,e,f)||c,c=_e(s,h.plug_colorSE,e,d=u.plugColorSE[e]||h.line_color,p.cur_plug_colorSE)||c,c=_e(s,h.plug_colorTraSE,e,K(d)[0]<1)||c,f!==S&&(i=n=(t=g[v[f]]).widthR*u.plugSizeSE[e],o=a=t.heightR*u.plugSizeSE[e],N&&(i*=h.line_strokeWidth,o*=h.line_strokeWidth),c=_e(s,h.plug_markerWidthSE,e,i)||c,c=_e(s,h.plug_markerHeightSE,e,o)||c,h.capsMaskMarker_markerWidthSE[e]=n,h.capsMaskMarker_markerHeightSE[e]=a),h.plugOutline_plugSE[e]=h.capsMaskMarker_plugSE[e]=f,h.plug_enabledSE[e]?(d=h.line_strokeWidth/W.lineSize*u.plugSizeSE[e],h.position_plugOverheadSE[e]=t.overhead*d,h.viewBox_plugBCircleSE[e]=t.bCircle*d,l=t.sideLen*d,r=t.backLen*d):(h.position_plugOverheadSE[e]=-h.line_strokeWidth/2,h.viewBox_plugBCircleSE[e]=l=r=0),_e(s,h.attach_plugSideLenSE,e,l,p.cur_attach_plugSideLenSE),_e(s,h.attach_plugBackLenSE,e,r,p.cur_attach_plugBackLenSE),h.capsMaskAnchor_enabledSE[e]=!h.plug_enabledSE[e]}),c=_e(s,h,"plug_enabled",h.plug_enabledSE[0]||h.plug_enabledSE[1])||c)),(n.lineOutline||Ee.line)&&(Ee.lineOutline=(y=(d=t).options,_=!1,_=_e(d,m=d.curStats,"lineOutline_enabled",y.lineOutlineEnabled)||_,_=_e(d,m,"lineOutline_color",y.lineOutlineColor)||_,_=_e(d,m,"lineOutline_colorTra",K(m.lineOutline_color)[0]<1)||_,f=m.line_strokeWidth*y.lineOutlineSize,_=_e(d,m,"lineOutline_strokeWidth",m.line_strokeWidth-2*f)||_,_=_e(d,m,"lineOutline_inStrokeWidth",m.lineOutline_colorTra?m.lineOutline_strokeWidth+2*T:m.line_strokeWidth-f)||_)),(n.plugOutline||Ee.line||Ee.plug||Ee.lineOutline)&&(Ee.plugOutline=(x=(E=t).options,k=E.curStats,w=!1,[0,1].forEach(function(e){var t,n=k.plugOutline_plugSE[e],a=n!==S?g[v[n]]:null;w=_e(E,k.plugOutline_enabledSE,e,x.plugOutlineEnabledSE[e]&&k.plug_enabled&&k.plug_enabledSE[e]&&!!a&&!!a.outlineBase)||w,w=_e(E,k.plugOutline_colorSE,e,t=x.plugOutlineColorSE[e]||k.lineOutline_color)||w,w=_e(E,k.plugOutline_colorTraSE,e,K(t)[0]<1)||w,a&&a.outlineBase&&((t=x.plugOutlineSizeSE[e])>a.outlineMax&&(t=a.outlineMax),t*=2*a.outlineBase,w=_e(E,k.plugOutline_strokeWidthSE,e,t)||w,w=_e(E,k.plugOutline_inStrokeWidthSE,e,k.plugOutline_colorTraSE[e]?t-T/(k.line_strokeWidth/W.lineSize)/x.plugSizeSE[e]*2:t/2)||w)}),w)),(n.faces||Ee.line||Ee.plug||Ee.lineOutline||Ee.plugOutline)&&(Ee.faces=(I=(O=t).curStats,C=O.aplStats,L=O.events,B=!1,!I.line_altColor&&_e(O,C,"line_color",M=I.line_color,L.apl_line_color)&&(O.lineFace.style.stroke=M,B=!0),_e(O,C,"line_strokeWidth",M=I.line_strokeWidth,L.apl_line_strokeWidth)&&(O.lineShape.style.strokeWidth=M+"px",B=!0,(V||A)&&(fe(O,O.lineShape),A&&(fe(O,O.lineFace),fe(O,O.lineMaskCaps)))),_e(O,C,"lineOutline_enabled",M=I.lineOutline_enabled,L.apl_lineOutline_enabled)&&(O.lineOutlineFace.style.display=M?"inline":"none",B=!0),I.lineOutline_enabled&&(_e(O,C,"lineOutline_color",M=I.lineOutline_color,L.apl_lineOutline_color)&&(O.lineOutlineFace.style.stroke=M,B=!0),_e(O,C,"lineOutline_strokeWidth",M=I.lineOutline_strokeWidth,L.apl_lineOutline_strokeWidth)&&(O.lineOutlineMaskShape.style.strokeWidth=M+"px",B=!0,A&&(fe(O,O.lineOutlineMaskCaps),fe(O,O.lineOutlineFace))),_e(O,C,"lineOutline_inStrokeWidth",M=I.lineOutline_inStrokeWidth,L.apl_lineOutline_inStrokeWidth)&&(O.lineMaskShape.style.strokeWidth=M+"px",B=!0,A&&(fe(O,O.lineOutlineMaskCaps),fe(O,O.lineOutlineFace)))),_e(O,C,"plug_enabled",M=I.plug_enabled,L.apl_plug_enabled)&&(O.plugsFace.style.display=M?"inline":"none",B=!0),I.plug_enabled&&[0,1].forEach(function(e){var t=I.plug_plugSE[e],n=t!==S?g[v[t]]:null,a=me(e,n);_e(O,C.plug_enabledSE,e,M=I.plug_enabledSE[e],L.apl_plug_enabledSE)&&(O.plugsFace.style[a.prop]=M?"url(#"+O.plugMarkerIdSE[e]+")":"none",B=!0),I.plug_enabledSE[e]&&(_e(O,C.plug_plugSE,e,t,L.apl_plug_plugSE)&&(O.plugFaceSE[e].href.baseVal="#"+n.elmId,Se(O,O.plugMarkerSE[e],a.orient,n.bBox,O.svg,O.plugMarkerShapeSE[e],O.plugsFace),B=!0,V&&fe(O,O.plugsFace)),_e(O,C.plug_colorSE,e,M=I.plug_colorSE[e],L.apl_plug_colorSE)&&(O.plugFaceSE[e].style.fill=M,B=!0,(P||N||A)&&!I.line_colorTra&&fe(O,A?O.lineMaskCaps:O.capsMaskLine)),["markerWidth","markerHeight"].forEach(function(t){var n="plug_"+t+"SE";_e(O,C[n],e,M=I[n][e],L["apl_"+n])&&(O.plugMarkerSE[e][t].baseVal.value=M,B=!0)}),_e(O,C.plugOutline_enabledSE,e,M=I.plugOutline_enabledSE[e],L.apl_plugOutline_enabledSE)&&(M?(O.plugFaceSE[e].style.mask="url(#"+O.plugMaskIdSE[e]+")",O.plugOutlineFaceSE[e].style.display="inline"):(O.plugFaceSE[e].style.mask="none",O.plugOutlineFaceSE[e].style.display="none"),B=!0),I.plugOutline_enabledSE[e]&&(_e(O,C.plugOutline_plugSE,e,t,L.apl_plugOutline_plugSE)&&(O.plugOutlineFaceSE[e].href.baseVal=O.plugMaskShapeSE[e].href.baseVal=O.plugOutlineMaskShapeSE[e].href.baseVal="#"+n.elmId,[O.plugMaskSE[e],O.plugOutlineMaskSE[e]].forEach(function(e){e.x.baseVal.value=n.bBox.left,e.y.baseVal.value=n.bBox.top,e.width.baseVal.value=n.bBox.width,e.height.baseVal.value=n.bBox.height}),B=!0),_e(O,C.plugOutline_colorSE,e,M=I.plugOutline_colorSE[e],L.apl_plugOutline_colorSE)&&(O.plugOutlineFaceSE[e].style.fill=M,B=!0,A&&(fe(O,O.lineMaskCaps),fe(O,O.lineOutlineMaskCaps))),_e(O,C.plugOutline_strokeWidthSE,e,M=I.plugOutline_strokeWidthSE[e],L.apl_plugOutline_strokeWidthSE)&&(O.plugOutlineMaskShapeSE[e].style.strokeWidth=M+"px",B=!0),_e(O,C.plugOutline_inStrokeWidthSE,e,M=I.plugOutline_inStrokeWidthSE[e],L.apl_plugOutline_inStrokeWidthSE)&&(O.plugMaskShapeSE[e].style.strokeWidth=M+"px",B=!0)))}),B)),(n.position||Ee.line||Ee.plug)&&(Ee.position=xe(t)),(n.path||Ee.position)&&(Ee.path=(G=(R=t).curStats,D=R.aplStats,z=R.pathList.animVal||R.pathList.baseVal,j=G.path_edge,H=!1,z&&(j.x1=j.x2=z[0][0].x,j.y1=j.y2=z[0][0].y,G.path_pathData=F=se(z,function(e){e.x<j.x1&&(j.x1=e.x),e.y<j.y1&&(j.y1=e.y),e.x>j.x2&&(j.x2=e.x),e.y>j.y2&&(j.y2=e.y)}),he(F,D.path_pathData)&&(R.linePath.setPathData(F),D.path_pathData=F,H=!0,A?(fe(R,R.plugsFace),fe(R,R.lineMaskCaps)):V&&fe(R,R.linePath),R.events.apl_path&&R.events.apl_path.forEach(function(e){e(R,F)}))),H)),Ee.viewBox=(X=(U=t).curStats,J=U.aplStats,$=X.path_edge,ee=X.viewBox_bBox,te=J.viewBox_bBox,ne=U.svg.viewBox.baseVal,ae=U.svg.style,ie=!1,Z=Math.max(X.line_strokeWidth/2,X.viewBox_plugBCircleSE[0]||0,X.viewBox_plugBCircleSE[1]||0),Y={x1:$.x1-Z,y1:$.y1-Z,x2:$.x2+Z,y2:$.y2+Z},U.events.new_edge4viewBox&&U.events.new_edge4viewBox.forEach(function(e){e(U,Y)}),ee.x=X.lineMask_x=X.lineOutlineMask_x=X.maskBGRect_x=Y.x1,ee.y=X.lineMask_y=X.lineOutlineMask_y=X.maskBGRect_y=Y.y1,ee.width=Y.x2-Y.x1,ee.height=Y.y2-Y.y1,["x","y","width","height"].forEach(function(e){var t;(t=ee[e])!==te[e]&&(ne[e]=te[e]=t,ae[b[e]]=t+("x"===e||"y"===e?U.bodyOffset[e]:0)+"px",ie=!0)}),ie),Ee.mask=(re=(oe=t).curStats,ue=oe.aplStats,pe=!1,re.plug_enabled?[0,1].forEach(function(e){re.capsMaskMarker_enabledSE[e]=re.plug_enabledSE[e]&&re.plug_colorTraSE[e]||re.plugOutline_enabledSE[e]&&re.plugOutline_colorTraSE[e]}):re.capsMaskMarker_enabledSE[0]=re.capsMaskMarker_enabledSE[1]=!1,re.capsMaskMarker_enabled=re.capsMaskMarker_enabledSE[0]||re.capsMaskMarker_enabledSE[1],re.lineMask_outlineMode=re.lineOutline_enabled,re.caps_enabled=re.capsMaskMarker_enabled||re.capsMaskAnchor_enabledSE[0]||re.capsMaskAnchor_enabledSE[1],re.lineMask_enabled=re.caps_enabled||re.lineMask_outlineMode,(re.lineMask_enabled&&!re.lineMask_outlineMode||re.lineOutline_enabled)&&["x","y"].forEach(function(e){var t="maskBGRect_"+e;_e(oe,ue,t,le=re[t])&&(oe.maskBGRect[e].baseVal.value=le,pe=!0)}),_e(oe,ue,"lineMask_enabled",le=re.lineMask_enabled)&&(oe.lineFace.style.mask=le?"url(#"+oe.lineMaskId+")":"none",pe=!0,N&&fe(oe,oe.lineMask)),re.lineMask_enabled&&(_e(oe,ue,"lineMask_outlineMode",le=re.lineMask_outlineMode)&&(le?(oe.lineMaskBG.style.display="none",oe.lineMaskShape.style.display="inline"):(oe.lineMaskBG.style.display="inline",oe.lineMaskShape.style.display="none"),pe=!0),["x","y"].forEach(function(e){var t="lineMask_"+e;_e(oe,ue,t,le=re[t])&&(oe.lineMask[e].baseVal.value=le,pe=!0)}),_e(oe,ue,"caps_enabled",le=re.caps_enabled)&&(oe.lineMaskCaps.style.display=oe.lineOutlineMaskCaps.style.display=le?"inline":"none",pe=!0,N&&fe(oe,oe.capsMaskLine)),re.caps_enabled&&([0,1].forEach(function(e){var t;_e(oe,ue.capsMaskAnchor_enabledSE,e,le=re.capsMaskAnchor_enabledSE[e])&&(oe.capsMaskAnchorSE[e].style.display=le?"inline":"none",pe=!0,N&&fe(oe,oe.lineMask)),re.capsMaskAnchor_enabledSE[e]&&(he(t=re.capsMaskAnchor_pathDataSE[e],ue.capsMaskAnchor_pathDataSE[e])&&(oe.capsMaskAnchorSE[e].setPathData(t),ue.capsMaskAnchor_pathDataSE[e]=t,pe=!0),_e(oe,ue.capsMaskAnchor_strokeWidthSE,e,le=re.capsMaskAnchor_strokeWidthSE[e])&&(oe.capsMaskAnchorSE[e].style.strokeWidth=le+"px",pe=!0))}),_e(oe,ue,"capsMaskMarker_enabled",le=re.capsMaskMarker_enabled)&&(oe.capsMaskLine.style.display=le?"inline":"none",pe=!0),re.capsMaskMarker_enabled&&[0,1].forEach(function(e){var t=re.capsMaskMarker_plugSE[e],n=t!==S?g[v[t]]:null,a=me(e,n);_e(oe,ue.capsMaskMarker_enabledSE,e,le=re.capsMaskMarker_enabledSE[e])&&(oe.capsMaskLine.style[a.prop]=le?"url(#"+oe.lineMaskMarkerIdSE[e]+")":"none",pe=!0),re.capsMaskMarker_enabledSE[e]&&(_e(oe,ue.capsMaskMarker_plugSE,e,t)&&(oe.capsMaskMarkerShapeSE[e].href.baseVal="#"+n.elmId,Se(oe,oe.capsMaskMarkerSE[e],a.orient,n.bBox,oe.svg,oe.capsMaskMarkerShapeSE[e],oe.capsMaskLine),pe=!0,V&&(fe(oe,oe.capsMaskLine),fe(oe,oe.lineFace))),["markerWidth","markerHeight"].forEach(function(t){var n="capsMaskMarker_"+t+"SE";_e(oe,ue[n],e,le=re[n][e])&&(oe.capsMaskMarkerSE[e][t].baseVal.value=le,pe=!0)}))}))),re.lineOutline_enabled&&["x","y"].forEach(function(e){var t="lineOutlineMask_"+e;_e(oe,ue,t,le=re[t])&&(oe.lineOutlineMask[e].baseVal.value=le,pe=!0)}),pe),n.effect&&(ge=(ce=t).curStats,ve=ce.aplStats,Object.keys(e).forEach(function(t){var n=e[t],a=t+"_enabled",i=t+"_options",o=ge[i];_e(ce,ve,a,de=ge[a])?(de&&(ve[i]=Q(o)),n[de?"init":"remove"](ce)):de&&q(o,ve[i])&&(n.remove(ce),ve[a]=!0,ve[i]=Q(o),n.init(ce))})),(P||N)&&Ee.line&&!Ee.path&&fe(t,t.lineShape),P&&Ee.plug&&!Ee.line&&fe(t,t.plugsFace),ye(t)}function we(e,t){return{duration:R(e.duration)&&0<e.duration?e.duration:t.duration,timing:F.validTiming(e.timing)?e.timing:Q(t.timing)}}function Oe(e,n,a,i){var o,l=e.curStats,r=e.aplStats,s={};function u(){["show_on","show_effect","show_animOptions"].forEach(function(e){r[e]=l[e]})}l.show_on=n,a&&t[a]&&(l.show_effect=a,l.show_animOptions=we(B(i)?i:{},t[a].defaultAnimOptions)),s.show_on=l.show_on!==r.show_on,s.show_effect=l.show_effect!==r.show_effect,s.show_animOptions=q(l.show_animOptions,r.show_animOptions),s.show_effect||s.show_animOptions?l.show_inAnim?(o=s.show_effect?t[r.show_effect].stop(e,!0,!0):t[r.show_effect].stop(e),u(),t[r.show_effect].init(e,o)):s.show_on&&(r.show_effect&&s.show_effect&&t[r.show_effect].stop(e,!0,!0),u(),t[r.show_effect].init(e)):s.show_on&&(u(),t[r.show_effect].start(e))}function Me(e,t,n){var a={props:e,optionName:n};return!(!(e.attachments.indexOf(t)<0)||t.conf.bind&&!t.conf.bind(t,a)||(e.attachments.push(t),t.boundTargets.push(a),0))}function Ie(e,t,n){var a=e.attachments.indexOf(t);-1<a&&e.attachments.splice(a,1),t.boundTargets.some(function(n,i){return n.props===e&&(t.conf.unbind&&t.conf.unbind(t,n),a=i,!0)})&&(t.boundTargets.splice(a,1),n||de(function(){t.boundTargets.length||o(t)}))}function Ce(o,l){var r,s,u=o.options,h={};function p(e,t,n,a,i){var o={};return n?null!=a?(o.container=e[n],o.key=a):(o.container=e,o.key=n):(o.container=e,o.key=t),o.default=i,o.acceptsAuto=null==o.default,o}function c(e,t,n,a,i,o,l){var r,s,u,h=p(e,n,i,o,l);return null!=t[n]&&(s=(t[n]+"").toLowerCase())&&(h.acceptsAuto&&s===x||(u=a[s]))&&u!==h.container[h.key]&&(h.container[h.key]=u,r=!0),null!=h.container[h.key]||h.acceptsAuto||(h.container[h.key]=h.default,r=!0),r}function S(e,t,n,a,i,o,l,r,s){var u,h,c,d,f=p(e,n,i,o,l);if(!a){if(null==f.default)throw new Error("Invalid `type`: "+n);a=typeof f.default}return null!=t[n]&&(f.acceptsAuto&&(t[n]+"").toLowerCase()===x||(c=h=t[n],("number"===(d=a)?R(c):typeof c===d)&&(h=s&&"string"===a&&h?h.trim():h,1)&&(!r||r(h))))&&h!==f.container[f.key]&&(f.container[f.key]=h,u=!0),null!=f.container[f.key]||f.acceptsAuto||(f.container[f.key]=f.default,u=!0),u}if(l=l||{},["start","end"].forEach(function(e,t){var n=l[e],a=!1;if(n&&(J(n)||(a=i(n,"anchor")))&&n!==u.anchorSE[t]){if(!1!==o.optionIsAttach.anchorSE[t]&&Ie(o,Y[u.anchorSE[t]._id]),a&&!Me(o,Y[n._id],e))throw new Error("Can't bind attachment");u.anchorSE[t]=n,o.optionIsAttach.anchorSE[t]=a,s=h.position=!0}}),!u.anchorSE[0]||!u.anchorSE[1]||u.anchorSE[0]===u.anchorSE[1])throw new Error("`start` and `end` are required.");s&&(r=function(e,t){var n,a,i;if(!(n=ee(e))||!(a=ee(t)))throw new Error("Cannot get frames.");return n.length&&a.length&&(n.reverse(),a.reverse(),n.some(function(e){return a.some(function(t){return t===e&&(i=t.contentWindow,!0)})})),i||window}(!1!==o.optionIsAttach.anchorSE[0]?Y[u.anchorSE[0]._id].element:u.anchorSE[0],!1!==o.optionIsAttach.anchorSE[1]?Y[u.anchorSE[1]._id].element:u.anchorSE[1]))!==o.baseWindow&&(function(n,a){var o,l,r,s,u,h,p,c,f,y,S=n.aplStats,m=a.document,g=d+"-"+n._id;function _(e){var t=l.appendChild(m.createElementNS(C,"mask"));return t.id=e,t.maskUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,[t.x,t.y,t.width,t.height].forEach(function(e){e.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0)}),t}function v(e){var t=l.appendChild(m.createElementNS(C,"marker"));return t.id=e,t.markerUnits.baseVal=SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH,t.viewBox.baseVal||t.setAttribute("viewBox","0 0 0 0"),t}function E(e){return[e.width,e.height].forEach(function(e){e.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100)}),e}n.pathList={},ge(S,D),Object.keys(e).forEach(function(t){var a=t+"_enabled";S[a]&&(e[t].remove(n),S[a]=!1)}),n.baseWindow&&n.svg&&n.baseWindow.document.body.removeChild(n.svg),Ee(n.baseWindow=a),n.bodyOffset=ve(a),n.svg=o=m.createElementNS(C,"svg"),o.className.baseVal=d,o.viewBox.baseVal||o.setAttribute("viewBox","0 0 0 0"),n.defs=l=o.appendChild(m.createElementNS(C,"defs")),n.linePath=s=l.appendChild(m.createElementNS(C,"path")),s.id=u=g+"-line-path",s.className.baseVal=d+"-line-path",N&&(s.style.fill="none"),n.lineShape=s=l.appendChild(m.createElementNS(C,"use")),s.id=h=g+"-line-shape",s.href.baseVal="#"+u,(r=l.appendChild(m.createElementNS(C,"g"))).id=p=g+"-caps",n.capsMaskAnchorSE=[0,1].map(function(){var e=r.appendChild(m.createElementNS(C,"path"));return e.className.baseVal=d+"-caps-mask-anchor",e}),n.lineMaskMarkerIdSE=[g+"-caps-mask-marker-0",g+"-caps-mask-marker-1"],n.capsMaskMarkerSE=[0,1].map(function(e){return v(n.lineMaskMarkerIdSE[e])}),n.capsMaskMarkerShapeSE=[0,1].map(function(e){var t=n.capsMaskMarkerSE[e].appendChild(m.createElementNS(C,"use"));return t.className.baseVal=d+"-caps-mask-marker-shape",t}),n.capsMaskLine=s=r.appendChild(m.createElementNS(C,"use")),s.className.baseVal=d+"-caps-mask-line",s.href.baseVal="#"+h,n.maskBGRect=s=E(l.appendChild(m.createElementNS(C,"rect"))),s.id=c=g+"-mask-bg-rect",s.className.baseVal=d+"-mask-bg-rect",N&&(s.style.fill="white"),n.lineMask=E(_(n.lineMaskId=g+"-line-mask")),n.lineMaskBG=s=n.lineMask.appendChild(m.createElementNS(C,"use")),s.href.baseVal="#"+c,n.lineMaskShape=s=n.lineMask.appendChild(m.createElementNS(C,"use")),s.className.baseVal=d+"-line-mask-shape",s.href.baseVal="#"+u,s.style.display="none",n.lineMaskCaps=s=n.lineMask.appendChild(m.createElementNS(C,"use")),s.href.baseVal="#"+p,n.lineOutlineMask=E(_(f=g+"-line-outline-mask")),(s=n.lineOutlineMask.appendChild(m.createElementNS(C,"use"))).href.baseVal="#"+c,n.lineOutlineMaskShape=s=n.lineOutlineMask.appendChild(m.createElementNS(C,"use")),s.className.baseVal=d+"-line-outline-mask-shape",s.href.baseVal="#"+u,n.lineOutlineMaskCaps=s=n.lineOutlineMask.appendChild(m.createElementNS(C,"use")),s.href.baseVal="#"+p,n.face=o.appendChild(m.createElementNS(C,"g")),n.lineFace=s=n.face.appendChild(m.createElementNS(C,"use")),s.href.baseVal="#"+h,n.lineOutlineFace=s=n.face.appendChild(m.createElementNS(C,"use")),s.href.baseVal="#"+h,s.style.mask="url(#"+f+")",s.style.display="none",n.plugMaskIdSE=[g+"-plug-mask-0",g+"-plug-mask-1"],n.plugMaskSE=[0,1].map(function(e){return _(n.plugMaskIdSE[e])}),n.plugMaskShapeSE=[0,1].map(function(e){var t=n.plugMaskSE[e].appendChild(m.createElementNS(C,"use"));return t.className.baseVal=d+"-plug-mask-shape",t}),y=[],n.plugOutlineMaskSE=[0,1].map(function(e){return _(y[e]=g+"-plug-outline-mask-"+e)}),n.plugOutlineMaskShapeSE=[0,1].map(function(e){var t=n.plugOutlineMaskSE[e].appendChild(m.createElementNS(C,"use"));return t.className.baseVal=d+"-plug-outline-mask-shape",t}),n.plugMarkerIdSE=[g+"-plug-marker-0",g+"-plug-marker-1"],n.plugMarkerSE=[0,1].map(function(e){var t=v(n.plugMarkerIdSE[e]);return N&&(t.markerUnits.baseVal=SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE),t}),n.plugMarkerShapeSE=[0,1].map(function(e){return n.plugMarkerSE[e].appendChild(m.createElementNS(C,"g"))}),n.plugFaceSE=[0,1].map(function(e){return n.plugMarkerShapeSE[e].appendChild(m.createElementNS(C,"use"))}),n.plugOutlineFaceSE=[0,1].map(function(e){var t=n.plugMarkerShapeSE[e].appendChild(m.createElementNS(C,"use"));return t.style.mask="url(#"+y[e]+")",t.style.display="none",t}),n.plugsFace=s=n.face.appendChild(m.createElementNS(C,"use")),s.className.baseVal=d+"-plugs-face",s.href.baseVal="#"+h,s.style.display="none",n.curStats.show_inAnim?(n.isShown=1,t[S.show_effect].stop(n,!0)):n.isShown||(o.style.visibility="hidden"),m.body.appendChild(o),[0,1,2].forEach(function(e){var t,a=n.options.labelSEM[e];a&&i(a,"label")&&(t=Y[a._id]).conf.initSvg&&t.conf.initSvg(t,n)})}(o,r),h.line=h.plug=h.lineOutline=h.plugOutline=h.faces=h.effect=!0),h.position=c(u,l,"path",y,null,null,W.path)||h.position,h.position=c(u,l,"startSocket",f,"socketSE",0)||h.position,h.position=c(u,l,"endSocket",f,"socketSE",1)||h.position,[l.startSocketGravity,l.endSocketGravity].forEach(function(e,t){var n,a,i=!1;null!=e&&(Array.isArray(e)?R(e[0])&&R(e[1])&&(i=[e[0],e[1]],Array.isArray(u.socketGravitySE[t])&&(n=i,a=u.socketGravitySE[t],n.length===a.length&&n.every(function(e,t){return e===a[t]}))&&(i=!1)):((e+"").toLowerCase()===x?i=null:R(e)&&0<=e&&(i=e),i===u.socketGravitySE[t]&&(i=!1)),!1!==i&&(u.socketGravitySE[t]=i,h.position=!0))}),h.line=S(u,l,"color",null,"lineColor",null,W.lineColor,null,!0)||h.line,h.line=S(u,l,"size",null,"lineSize",null,W.lineSize,function(e){return 0<e})||h.line,["startPlug","endPlug"].forEach(function(e,t){h.plug=c(u,l,e,_,"plugSE",t,W.plugSE[t])||h.plug,h.plug=S(u,l,e+"Color","string","plugColorSE",t,null,null,!0)||h.plug,h.plug=S(u,l,e+"Size",null,"plugSizeSE",t,W.plugSizeSE[t],function(e){return 0<e})||h.plug}),h.lineOutline=S(u,l,"outline",null,"lineOutlineEnabled",null,W.lineOutlineEnabled)||h.lineOutline,h.lineOutline=S(u,l,"outlineColor",null,"lineOutlineColor",null,W.lineOutlineColor,null,!0)||h.lineOutline,h.lineOutline=S(u,l,"outlineSize",null,"lineOutlineSize",null,W.lineOutlineSize,function(e){return 0<e&&e<=.48})||h.lineOutline,["startPlugOutline","endPlugOutline"].forEach(function(e,t){h.plugOutline=S(u,l,e,null,"plugOutlineEnabledSE",t,W.plugOutlineEnabledSE[t])||h.plugOutline,h.plugOutline=S(u,l,e+"Color","string","plugOutlineColorSE",t,null,null,!0)||h.plugOutline,h.plugOutline=S(u,l,e+"Size",null,"plugOutlineSizeSE",t,W.plugOutlineSizeSE[t],function(e){return 1<=e})||h.plugOutline}),["startLabel","endLabel","middleLabel"].forEach(function(e,t){var r,s,h,p=l[e],c=u.labelSEM[t]&&!o.optionIsAttach.labelSEM[t]?Y[u.labelSEM[t]._id].text:u.labelSEM[t],d=!1;if((r="string"==typeof p)&&(p=p.trim()),(r||p&&(d=i(p,"label")))&&p!==c){if(u.labelSEM[t]&&(Ie(o,Y[u.labelSEM[t]._id]),u.labelSEM[t]=""),p){if(d?(s=Y[(h=p)._id]).boundTargets.slice().forEach(function(e){s.conf.removeOption(s,e)}):h=new a(n.captionLabel,[p]),!Me(o,Y[h._id],e))throw new Error("Can't bind attachment");u.labelSEM[t]=h}o.optionIsAttach.labelSEM[t]=d}}),Object.keys(e).forEach(function(t){var n,a,i=e[t],r=t+"_enabled",s=t+"_options";function p(e){var t={};return i.optionsConf.forEach(function(n){var a=n[0],i=n[3];null==n[4]||t[i]||(t[i]=[]),("function"==typeof a?a:"id"===a?c:S).apply(null,[t,e].concat(n.slice(1)))}),t}function d(e){var n,a=t+"_animOptions";return e.hasOwnProperty("animation")?B(e.animation)?n=o.curStats[a]=we(e.animation,i.defaultAnimOptions):(n=!!e.animation,o.curStats[a]=n?we({},i.defaultAnimOptions):null):(n=!!i.defaultEnabled,o.curStats[a]=n?we({},i.defaultAnimOptions):null),n}l.hasOwnProperty(t)&&(n=l[t],B(n)?(o.curStats[r]=!0,a=o.curStats[s]=p(n),i.anim&&(o.curStats[s].animation=d(n))):(a=o.curStats[r]=!!n)&&(o.curStats[s]=p({}),i.anim&&(o.curStats[s].animation=d({}))),q(a,u[t])&&(u[t]=a,h.effect=!0))}),ke(o,h)}function Le(n,a,i){var o={options:{anchorSE:[],socketSE:[],socketGravitySE:[],plugSE:[],plugColorSE:[],plugSizeSE:[],plugOutlineEnabledSE:[],plugOutlineColorSE:[],plugOutlineSizeSE:[],labelSEM:["","",""]},optionIsAttach:{anchorSE:[!1,!1],labelSEM:[!1,!1,!1]},curStats:{},aplStats:{},attachments:[],events:{},reflowTargets:[]};ge(o.curStats,D),ge(o.aplStats,D),Object.keys(e).forEach(function(t){var n=e[t].stats;ge(o.curStats,n),ge(o.aplStats,n),o.options[t]=!1}),ge(o.curStats,z),ge(o.aplStats,z),o.curStats.show_effect=j,o.curStats.show_animOptions=Q(t[j].defaultAnimOptions),Object.defineProperty(this,"_id",{value:++Z}),o._id=this._id,U[this._id]=o,1===arguments.length&&(i=n,n=null),i=i||{},(n||a)&&(i=Q(i),n&&(i.start=n),a&&(i.end=a)),o.isShown=o.aplStats.show_on=!i.hide,this.setOptions(i)}return e={dash:{stats:{dash_len:{},dash_gap:{},dash_maxOffset:{}},anim:!0,defaultAnimOptions:{duration:1e3,timing:"linear"},optionsConf:[["type","len","number",null,null,null,function(e){return 0<e}],["type","gap","number",null,null,null,function(e){return 0<e}]],init:function(t){pe(t,"apl_line_strokeWidth",e.dash.update),t.lineFace.style.strokeDashoffset=0,e.dash.update(t)},remove:function(t){var n=t.curStats;ce(t,"apl_line_strokeWidth",e.dash.update),n.dash_animId&&(F.remove(n.dash_animId),n.dash_animId=null),t.lineFace.style.strokeDasharray="none",t.lineFace.style.strokeDashoffset=0,ge(t.aplStats,e.dash.stats)},update:function(e){var t,n=e.curStats,a=e.aplStats,i=a.dash_options,o=!1;n.dash_len=i.len||2*a.line_strokeWidth,n.dash_gap=i.gap||a.line_strokeWidth,n.dash_maxOffset=n.dash_len+n.dash_gap,o=_e(e,a,"dash_len",n.dash_len)||o,(o=_e(e,a,"dash_gap",n.dash_gap)||o)&&(e.lineFace.style.strokeDasharray=a.dash_len+","+a.dash_gap),n.dash_animOptions?(o=_e(e,a,"dash_maxOffset",n.dash_maxOffset),a.dash_animOptions&&(o||q(n.dash_animOptions,a.dash_animOptions))&&(n.dash_animId&&(t=F.stop(n.dash_animId),F.remove(n.dash_animId)),a.dash_animOptions=null),a.dash_animOptions||(n.dash_animId=F.add(function(e){return(1-e)*a.dash_maxOffset+"px"},function(t){e.lineFace.style.strokeDashoffset=t},n.dash_animOptions.duration,0,n.dash_animOptions.timing,!1,t),a.dash_animOptions=Q(n.dash_animOptions))):a.dash_animOptions&&(n.dash_animId&&(F.remove(n.dash_animId),n.dash_animId=null),e.lineFace.style.strokeDashoffset=0,a.dash_animOptions=null)}},gradient:{stats:{gradient_colorSE:{hasSE:!0},gradient_pointSE:{hasSE:!0,hasProps:!0}},optionsConf:[["type","startColor","string","colorSE",0,null,null,!0],["type","endColor","string","colorSE",1,null,null,!0]],init:function(t){var n,a=t.baseWindow.document,i=t.defs,o=d+"-"+t._id+"-gradient";t.efc_gradient_gradient=n=i.appendChild(a.createElementNS(C,"linearGradient")),n.id=o,n.gradientUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,[n.x1,n.y1,n.x2,n.y2].forEach(function(e){e.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0)}),t.efc_gradient_stopSE=[0,1].map(function(e){var n=t.efc_gradient_gradient.appendChild(a.createElementNS(C,"stop"));try{n.offset.baseVal=e}catch(t){if(t.code!==DOMException.NO_MODIFICATION_ALLOWED_ERR)throw t;n.setAttribute("offset",e)}return n}),pe(t,"cur_plug_colorSE",e.gradient.update),pe(t,"apl_path",e.gradient.update),t.curStats.line_altColor=!0,t.lineFace.style.stroke="url(#"+o+")",e.gradient.update(t)},remove:function(t){t.efc_gradient_gradient&&(t.defs.removeChild(t.efc_gradient_gradient),t.efc_gradient_gradient=t.efc_gradient_stopSE=null),ce(t,"cur_plug_colorSE",e.gradient.update),ce(t,"apl_path",e.gradient.update),t.curStats.line_altColor=!1,t.lineFace.style.stroke=t.curStats.line_color,ge(t.aplStats,e.gradient.stats)},update:function(e){var t,n,a=e.curStats,i=e.aplStats,o=i.gradient_options,l=e.pathList.animVal||e.pathList.baseVal;[0,1].forEach(function(e){a.gradient_colorSE[e]=o.colorSE[e]||a.plug_colorSE[e]}),n=l[0][0],a.gradient_pointSE[0]={x:n.x,y:n.y},n=(t=l[l.length-1])[t.length-1],a.gradient_pointSE[1]={x:n.x,y:n.y},[0,1].forEach(function(t){var n;_e(e,i.gradient_colorSE,t,n=a.gradient_colorSE[t])&&(N?(n=K(n),e.efc_gradient_stopSE[t].style.stopColor=n[1],e.efc_gradient_stopSE[t].style.stopOpacity=n[0]):e.efc_gradient_stopSE[t].style.stopColor=n),["x","y"].forEach(function(o){(n=a.gradient_pointSE[t][o])!==i.gradient_pointSE[t][o]&&(e.efc_gradient_gradient[o+(t+1)].baseVal.value=i.gradient_pointSE[t][o]=n)})})}},dropShadow:{stats:{dropShadow_dx:{},dropShadow_dy:{},dropShadow_blur:{},dropShadow_color:{},dropShadow_opacity:{},dropShadow_x:{},dropShadow_y:{}},optionsConf:[["type","dx",null,null,null,2],["type","dy",null,null,null,4],["type","blur",null,null,null,3,function(e){return 0<=e}],["type","color",null,null,null,"#000",null,!0],["type","opacity",null,null,null,.8,function(e){return 0<=e&&e<=1}]],init:function(t){var n,a,i,o,l,r=t.baseWindow.document,s=t.defs,h=d+"-"+t._id+"-dropShadow",p=(n=r,a=h,l={},"boolean"!=typeof u&&(u=!!window.SVGFEDropShadowElement&&!N),l.elmsAppend=[l.elmFilter=i=n.createElementNS(C,"filter")],i.filterUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,i.x.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),i.y.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),i.width.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100),i.height.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100),i.id=a,u?(l.elmOffset=l.elmBlur=o=i.appendChild(n.createElementNS(C,"feDropShadow")),l.styleFlood=o.style):(l.elmBlur=i.appendChild(n.createElementNS(C,"feGaussianBlur")),l.elmOffset=o=i.appendChild(n.createElementNS(C,"feOffset")),o.result.baseVal="offsetblur",o=i.appendChild(n.createElementNS(C,"feFlood")),l.styleFlood=o.style,(o=i.appendChild(n.createElementNS(C,"feComposite"))).in2.baseVal="offsetblur",o.operator.baseVal=SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_IN,(o=i.appendChild(n.createElementNS(C,"feMerge"))).appendChild(n.createElementNS(C,"feMergeNode")),o.appendChild(n.createElementNS(C,"feMergeNode")).in1.baseVal="SourceGraphic"),l);["elmFilter","elmOffset","elmBlur","styleFlood","elmsAppend"].forEach(function(e){t["efc_dropShadow_"+e]=p[e]}),p.elmsAppend.forEach(function(e){s.appendChild(e)}),t.face.setAttribute("filter","url(#"+h+")"),pe(t,"new_edge4viewBox",e.dropShadow.adjustEdge),e.dropShadow.update(t)},remove:function(t){var n=t.defs;t.efc_dropShadow_elmsAppend&&(t.efc_dropShadow_elmsAppend.forEach(function(e){n.removeChild(e)}),t.efc_dropShadow_elmFilter=t.efc_dropShadow_elmOffset=t.efc_dropShadow_elmBlur=t.efc_dropShadow_styleFlood=t.efc_dropShadow_elmsAppend=null),ce(t,"new_edge4viewBox",e.dropShadow.adjustEdge),ke(t,{}),t.face.removeAttribute("filter"),ge(t.aplStats,e.dropShadow.stats)},update:function(e){var t,n,a=e.curStats,i=e.aplStats,o=i.dropShadow_options;a.dropShadow_dx=t=o.dx,_e(e,i,"dropShadow_dx",t)&&(e.efc_dropShadow_elmOffset.dx.baseVal=t,n=!0),a.dropShadow_dy=t=o.dy,_e(e,i,"dropShadow_dy",t)&&(e.efc_dropShadow_elmOffset.dy.baseVal=t,n=!0),a.dropShadow_blur=t=o.blur,_e(e,i,"dropShadow_blur",t)&&(e.efc_dropShadow_elmBlur.setStdDeviation(t,t),n=!0),n&&ke(e,{}),a.dropShadow_color=t=o.color,_e(e,i,"dropShadow_color",t)&&(e.efc_dropShadow_styleFlood.floodColor=t),a.dropShadow_opacity=t=o.opacity,_e(e,i,"dropShadow_opacity",t)&&(e.efc_dropShadow_styleFlood.floodOpacity=t)},adjustEdge:function(e,t){var n,a,i=e.curStats,o=e.aplStats;null!=i.dropShadow_dx&&(n=3*i.dropShadow_blur,(a={x1:t.x1-n+i.dropShadow_dx,y1:t.y1-n+i.dropShadow_dy,x2:t.x2+n+i.dropShadow_dx,y2:t.y2+n+i.dropShadow_dy}).x1<t.x1&&(t.x1=a.x1),a.y1<t.y1&&(t.y1=a.y1),a.x2>t.x2&&(t.x2=a.x2),a.y2>t.y2&&(t.y2=a.y2),["x","y"].forEach(function(n){var a,l="dropShadow_"+n;i[l]=a=t[n+"1"],_e(e,o,l,a)&&(e.efc_dropShadow_elmFilter[n].baseVal.value=a)}))}}},Object.keys(e).forEach(function(t){var n=e[t],a=n.stats;a[t+"_enabled"]={iniValue:!1},a[t+"_options"]={hasProps:!0},n.anim&&(a[t+"_animOptions"]={},a[t+"_animId"]={})}),t={none:{defaultAnimOptions:{},init:function(e,n){var a=e.curStats;a.show_animId&&(F.remove(a.show_animId),a.show_animId=null),t.none.start(e,n)},start:function(e,n){t.none.stop(e,!0)},stop:function(e,t,n){var a=e.curStats;return n=null!=n?n:e.aplStats.show_on,a.show_inAnim=!1,t&&be(e,n),n?1:0}},fade:{defaultAnimOptions:{duration:300,timing:"linear"},init:function(e,n){var a=e.curStats,i=e.aplStats;a.show_animId&&F.remove(a.show_animId),a.show_animId=F.add(function(e){return e},function(n,a){a?t.fade.stop(e,!0):(e.svg.style.opacity=n+"",A&&(fe(e,e.svg),ye(e)))},i.show_animOptions.duration,1,i.show_animOptions.timing,null,!1),t.fade.start(e,n)},start:function(e,t){var n,a=e.curStats;a.show_inAnim&&(n=F.stop(a.show_animId)),be(e,1),a.show_inAnim=!0,F.start(a.show_animId,!e.aplStats.show_on,null!=t?t:n)},stop:function(e,t,n){var a,i=e.curStats;return n=null!=n?n:e.aplStats.show_on,a=i.show_inAnim?F.stop(i.show_animId):n?1:0,i.show_inAnim=!1,t&&(e.svg.style.opacity=n?"":"0",be(e,n)),a}},draw:{defaultAnimOptions:{duration:500,timing:[.58,0,.42,1]},init:function(e,n){var a=e.curStats,i=e.aplStats,o=e.pathList.baseVal,l=ue(o),r=l.segsLen,s=l.lenAll;a.show_animId&&F.remove(a.show_animId),a.show_animId=F.add(function(e){var t,n,a,i,l=-1;if(0===e)n=[[o[0][0],o[0][0]]];else if(1===e)n=o;else{for(t=s*e,n=[];t>=r[++l];)n.push(o[l]),t-=r[l];t&&(2===(a=o[l]).length?n.push([a[0],ae(a[0],a[1],t/r[l])]):(i=oe(a[0],a[1],a[2],a[3],re(a[0],a[1],a[2],a[3],t)),n.push([a[0],i.fromP1,i.fromP2,i])))}return n},function(n,a){a?t.draw.stop(e,!0):(e.pathList.animVal=n,ke(e,{path:!0}))},i.show_animOptions.duration,1,i.show_animOptions.timing,null,!1),t.draw.start(e,n)},start:function(e,n){var a,i=e.curStats;i.show_inAnim&&(a=F.stop(i.show_animId)),be(e,1),i.show_inAnim=!0,pe(e,"apl_position",t.draw.update),F.start(i.show_animId,!e.aplStats.show_on,null!=n?n:a)},stop:function(e,t,n){var a,i=e.curStats;return n=null!=n?n:e.aplStats.show_on,a=i.show_inAnim?F.stop(i.show_animId):n?1:0,i.show_inAnim=!1,t&&(e.pathList.animVal=n?null:[[e.pathList.baseVal[0][0],e.pathList.baseVal[0][0]]],ke(e,{path:!0}),be(e,n)),a},update:function(e){ce(e,"apl_position",t.draw.update),e.curStats.show_inAnim?t.draw.init(e,t.draw.stop(e)):e.aplStats.show_animOptions={}}}},function(){function t(e){return function(t){var n={};n[e]=t,this.setOptions(n)}}[["start","anchorSE",0],["end","anchorSE",1],["color","lineColor"],["size","lineSize"],["startSocketGravity","socketGravitySE",0],["endSocketGravity","socketGravitySE",1],["startPlugColor","plugColorSE",0],["endPlugColor","plugColorSE",1],["startPlugSize","plugSizeSE",0],["endPlugSize","plugSizeSE",1],["outline","lineOutlineEnabled"],["outlineColor","lineOutlineColor"],["outlineSize","lineOutlineSize"],["startPlugOutline","plugOutlineEnabledSE",0],["endPlugOutline","plugOutlineEnabledSE",1],["startPlugOutlineColor","plugOutlineColorSE",0],["endPlugOutlineColor","plugOutlineColorSE",1],["startPlugOutlineSize","plugOutlineSizeSE",0],["endPlugOutlineSize","plugOutlineSizeSE",1]].forEach(function(e){var n=e[0],a=e[1],i=e[2];Object.defineProperty(Le.prototype,n,{get:function(){var e=null!=i?U[this._id].options[a][i]:a?U[this._id].options[a]:U[this._id].options[n];return null==e?x:Q(e)},set:t(n),enumerable:!0})}),[["path",y],["startSocket",f,"socketSE",0],["endSocket",f,"socketSE",1],["startPlug",_,"plugSE",0],["endPlug",_,"plugSE",1]].forEach(function(e){var n=e[0],a=e[1],i=e[2],o=e[3];Object.defineProperty(Le.prototype,n,{get:function(){var e,t=null!=o?U[this._id].options[i][o]:i?U[this._id].options[i]:U[this._id].options[n];return t?Object.keys(a).some(function(n){return a[n]===t&&(e=n,!0)})?e:new Error("It's broken"):x},set:t(n),enumerable:!0})}),Object.keys(e).forEach(function(n){var a=e[n];Object.defineProperty(Le.prototype,n,{get:function(){var e,t,i=U[this._id].options[n];return B(i)?(e=i,t=a.optionsConf.reduce(function(t,n){var a,i=n[0],o=n[1],l=n[2],r=n[3],s=n[4],u=null!=s?e[r][s]:r?e[r]:e[o];return t[o]="id"===i?u?Object.keys(l).some(function(e){return l[e]===u&&(a=e,!0)})?a:new Error("It's broken"):x:null==u?x:Q(u),t},{}),a.anim&&(t.animation=Q(e.animation)),t):i},set:t(n),enumerable:!0})}),["startLabel","endLabel","middleLabel"].forEach(function(e,n){Object.defineProperty(Le.prototype,e,{get:function(){var e=U[this._id],t=e.options;return t.labelSEM[n]&&!e.optionIsAttach.labelSEM[n]?Y[t.labelSEM[n]._id].text:t.labelSEM[n]||""},set:t(e),enumerable:!0})})}(),Le.prototype.setOptions=function(e){return Ce(U[this._id],e),this},Le.prototype.position=function(){return ke(U[this._id],{position:!0}),this},Le.prototype.remove=function(){var t=U[this._id],n=t.curStats;Object.keys(e).forEach(function(e){var t=e+"_animId";n[t]&&F.remove(n[t])}),n.show_animId&&F.remove(n.show_animId),t.attachments.slice().forEach(function(e){Ie(t,e)}),t.baseWindow&&t.svg&&t.baseWindow.document.body.removeChild(t.svg),delete U[this._id]},Le.prototype.show=function(e,t){return Oe(U[this._id],!0,e,t),this},Le.prototype.hide=function(e,t){return Oe(U[this._id],!1,e,t),this},o=function(e){e&&Y[e._id]&&(e.boundTargets.slice().forEach(function(t){Ie(t.props,e,!0)}),e.conf.remove&&e.conf.remove(e),delete Y[e._id])},a=function(){function e(e,t){var n,a={conf:e,curStats:{},aplStats:{},boundTargets:[]},i={};e.argOptions.every(function(e){return!(!t.length||("string"==typeof e.type?typeof t[0]!==e.type:"function"!=typeof e.type||!e.type(t[0]))||(i[e.optionName]=t.shift(),0))}),n=t.length&&B(t[0])?Q(t[0]):{},Object.keys(i).forEach(function(e){n[e]=i[e]}),e.stats&&(ge(a.curStats,e.stats),ge(a.aplStats,e.stats)),Object.defineProperty(this,"_id",{value:++X}),Object.defineProperty(this,"isRemoved",{get:function(){return!Y[this._id]}}),a._id=this._id,e.init&&!e.init(a,n)||(Y[this._id]=a)}return e.prototype.remove=function(){var e=this,t=Y[e._id];t&&(t.boundTargets.slice().forEach(function(e){t.conf.removeOption(t,e)}),de(function(){var t=Y[e._id];t&&(console.error("LeaderLineAttachment was not removed by removeOption"),o(t))}))},e}(),window.LeaderLineAttachment=a,i=function(e,t){return e instanceof a&&(!(e.isRemoved||t&&Y[e._id].conf.type!==t)||null)},n={pointAnchor:{type:"anchor",argOptions:[{optionName:"element",type:J}],init:function(e,t){return e.element=n.pointAnchor.checkElement(t.element),e.x=n.pointAnchor.parsePercent(t.x,!0)||[.5,!0],e.y=n.pointAnchor.parsePercent(t.y,!0)||[.5,!0],!0},removeOption:function(e,t){var i=t.props,o={},l=e.element,r=i.options.anchorSE["start"===t.optionName?1:0];l===r&&(l=r===document.body?new a(n.pointAnchor,[l]):document.body),o[t.optionName]=l,Ce(i,o)},getBBoxNest:function(e,t){var n=te(e.element,t.baseWindow),a=n.width,i=n.height;return n.width=n.height=0,n.left=n.right=n.left+e.x[0]*(e.x[1]?a:1),n.top=n.bottom=n.top+e.y[0]*(e.y[1]?i:1),n},parsePercent:function(e,t){var n,a,i=!1;return R(e)?a=e:"string"==typeof e&&(n=I.exec(e))&&n[2]&&(i=0!=(a=parseFloat(n[1])/100)),null!=a&&(t||0<=a)?[a,i]:null},checkElement:function(e){if(null==e)e=document.body;else if(!J(e))throw new Error("`element` must be Element");return e}},areaAnchor:{type:"anchor",argOptions:[{optionName:"element",type:J},{optionName:"shape",type:"string"}],stats:{color:{},strokeWidth:{},elementWidth:{},elementHeight:{},elementLeft:{},elementTop:{},pathListRel:{},bBoxRel:{},pathData:{},viewBoxBBox:{hasProps:!0},dashLen:{},dashGap:{}},init:function(e,t){var a,i,o,l=[];return e.element=n.pointAnchor.checkElement(t.element),"string"==typeof t.color&&(e.color=t.color.trim()),"string"==typeof t.fillColor&&(e.fill=t.fillColor.trim()),R(t.size)&&0<=t.size&&(e.size=t.size),t.dash&&(e.dash=!0,R(t.dash.len)&&0<t.dash.len&&(e.dashLen=t.dash.len),R(t.dash.gap)&&0<t.dash.gap&&(e.dashGap=t.dash.gap)),"circle"===t.shape?e.shape=t.shape:"polygon"===t.shape&&Array.isArray(t.points)&&3<=t.points.length&&t.points.every(function(t){var a={};return!(!(a.x=n.pointAnchor.parsePercent(t[0],!0))||!(a.y=n.pointAnchor.parsePercent(t[1],!0))||(l.push(a),(a.x[1]||a.y[1])&&(e.hasRatio=!0),0))})?(e.shape=t.shape,e.points=l):(e.shape="rect",e.radius=R(t.radius)&&0<=t.radius?t.radius:0),"rect"!==e.shape&&"circle"!==e.shape||(e.x=n.pointAnchor.parsePercent(t.x,!0)||[-.05,!0],e.y=n.pointAnchor.parsePercent(t.y,!0)||[-.05,!0],e.width=n.pointAnchor.parsePercent(t.width)||[1.1,!0],e.height=n.pointAnchor.parsePercent(t.height)||[1.1,!0],(e.x[1]||e.y[1]||e.width[1]||e.height[1])&&(e.hasRatio=!0)),a=e.element.ownerDocument,e.svg=i=a.createElementNS(C,"svg"),i.className.baseVal=d+"-areaAnchor",i.viewBox.baseVal||i.setAttribute("viewBox","0 0 0 0"),e.path=i.appendChild(a.createElementNS(C,"path")),e.path.style.fill=e.fill||"none",e.isShown=!1,i.style.visibility="hidden",a.body.appendChild(i),Ee(o=a.defaultView),e.bodyOffset=ve(o),e.updateColor=function(){var t,n=e.curStats,a=e.aplStats,i=e.boundTargets.length?e.boundTargets[0].props.curStats:null;n.color=t=e.color||(i?i.line_color:W.lineColor),_e(e,a,"color",t)&&(e.path.style.stroke=t)},e.updateShow=function(){be(e,e.boundTargets.some(function(e){return!0===e.props.isShown}))},!0},bind:function(e,t){var n=t.props;return e.color||pe(n,"cur_line_color",e.updateColor),pe(n,"svgShow",e.updateShow),de(function(){e.updateColor(),e.updateShow()}),!0},unbind:function(e,t){var a=t.props;e.color||ce(a,"cur_line_color",e.updateColor),ce(a,"svgShow",e.updateShow),1<e.boundTargets.length&&de(function(){e.updateColor(),e.updateShow(),n.areaAnchor.update(e)&&e.boundTargets.forEach(function(e){ke(e.props,{position:!0})})})},removeOption:function(e,t){n.pointAnchor.removeOption(e,t)},remove:function(e){e.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),e.boundTargets.forEach(function(t){n.areaAnchor.unbind(e,t)})),e.svg.parentNode.removeChild(e.svg)},getStrokeWidth:function(e,t){return n.areaAnchor.update(e)&&1<e.boundTargets.length&&de(function(){e.boundTargets.forEach(function(e){e.props!==t&&ke(e.props,{position:!0})})}),e.curStats.strokeWidth},getPathData:function(e,t){var n=te(e.element,t.baseWindow);return se(e.curStats.pathListRel,function(e){e.x+=n.left,e.y+=n.top})},getBBoxNest:function(e,t){var n=te(e.element,t.baseWindow),a=e.curStats.bBoxRel;return{left:a.left+n.left,top:a.top+n.top,right:a.right+n.left,bottom:a.bottom+n.top,width:a.width,height:a.height}},update:function(e){var t,n,a,i,o,l,r,s,u,h,p,c,d,f,y,S,m,g,_,v,E,x,k,w,M,I,C,L,A,V,P,N,T=e.curStats,B=e.aplStats,R=e.boundTargets.length?e.boundTargets[0].props.curStats:null,F={};if(F.strokeWidth=_e(e,T,"strokeWidth",null!=e.size?e.size:R?R.line_strokeWidth:W.lineSize),t=$(e.element),F.elementWidth=_e(e,T,"elementWidth",t.width),F.elementHeight=_e(e,T,"elementHeight",t.height),F.elementLeft=_e(e,T,"elementLeft",t.left),F.elementTop=_e(e,T,"elementTop",t.top),F.strokeWidth||e.hasRatio&&(F.elementWidth||F.elementHeight)){switch(e.shape){case"rect":(v={left:e.x[0]*(e.x[1]?t.width:1),top:e.y[0]*(e.y[1]?t.height:1),width:e.width[0]*(e.width[1]?t.width:1),height:e.height[0]*(e.height[1]?t.height:1)}).right=v.left+v.width,v.bottom=v.top+v.height,w=T.strokeWidth/2,x=(k=Math.min(v.width,v.height))?k/2*Math.SQRT2+w:0,(E=e.radius?e.radius<=x?e.radius:x:0)?(I=E-(M=(E-w)/Math.SQRT2),L=E*O,C=[{x:v.left-I,y:v.top+M},{x:v.left+M,y:v.top-I},{x:v.right-M,y:v.top-I},{x:v.right+I,y:v.top+M},{x:v.right+I,y:v.bottom-M},{x:v.right-M,y:v.bottom+I},{x:v.left+M,y:v.bottom+I},{x:v.left-I,y:v.bottom-M}],T.pathListRel=[[C[0],{x:C[0].x,y:C[0].y-L},{x:C[1].x-L,y:C[1].y},C[1]]],C[1].x!==C[2].x&&T.pathListRel.push([C[1],C[2]]),T.pathListRel.push([C[2],{x:C[2].x+L,y:C[2].y},{x:C[3].x,y:C[3].y-L},C[3]]),C[3].y!==C[4].y&&T.pathListRel.push([C[3],C[4]]),T.pathListRel.push([C[4],{x:C[4].x,y:C[4].y+L},{x:C[5].x+L,y:C[5].y},C[5]]),C[5].x!==C[6].x&&T.pathListRel.push([C[5],C[6]]),T.pathListRel.push([C[6],{x:C[6].x-L,y:C[6].y},{x:C[7].x,y:C[7].y+L},C[7]]),C[7].y!==C[0].y&&T.pathListRel.push([C[7],C[0]]),T.pathListRel.push([]),I=E-M+T.strokeWidth/2,C=[{x:v.left-I,y:v.top-I},{x:v.right+I,y:v.bottom+I}]):(I=T.strokeWidth/2,C=[{x:v.left-I,y:v.top-I},{x:v.right+I,y:v.bottom+I}],T.pathListRel=[[C[0],{x:C[1].x,y:C[0].y}],[{x:C[1].x,y:C[0].y},C[1]],[C[1],{x:C[0].x,y:C[1].y}],[]],C=[{x:v.left-T.strokeWidth,y:v.top-T.strokeWidth},{x:v.right+T.strokeWidth,y:v.bottom+T.strokeWidth}]),T.bBoxRel={left:C[0].x,top:C[0].y,right:C[1].x,bottom:C[1].y,width:C[1].x-C[0].x,height:C[1].y-C[0].y};break;case"circle":(r={left:e.x[0]*(e.x[1]?t.width:1),top:e.y[0]*(e.y[1]?t.height:1),width:e.width[0]*(e.width[1]?t.width:1),height:e.height[0]*(e.height[1]?t.height:1)}).width||r.height||(r.width=r.height=10),r.width||(r.width=r.height),r.height||(r.height=r.width),r.right=r.left+r.width,r.bottom=r.top+r.height,s=r.left+r.width/2,u=r.top+r.height/2,f=T.strokeWidth/2,y=r.width/2,S=r.height/2,h=y*Math.SQRT2+f,p=S*Math.SQRT2+f,c=h*O,d=p*O,_=[{x:s-h,y:u},{x:s,y:u-p},{x:s+h,y:u},{x:s,y:u+p}],T.pathListRel=[[_[0],{x:_[0].x,y:_[0].y-d},{x:_[1].x-c,y:_[1].y},_[1]],[_[1],{x:_[1].x+c,y:_[1].y},{x:_[2].x,y:_[2].y-d},_[2]],[_[2],{x:_[2].x,y:_[2].y+d},{x:_[3].x+c,y:_[3].y},_[3]],[_[3],{x:_[3].x-c,y:_[3].y},{x:_[0].x,y:_[0].y+d},_[0]],[]],m=h-y+T.strokeWidth/2,g=p-S+T.strokeWidth/2,_=[{x:r.left-m,y:r.top-g},{x:r.right+m,y:r.bottom+g}],T.bBoxRel={left:_[0].x,top:_[0].y,right:_[1].x,bottom:_[1].y,width:_[1].x-_[0].x,height:_[1].y-_[0].y};break;case"polygon":e.points.forEach(function(e){var n=e.x[0]*(e.x[1]?t.width:1),o=e.y[0]*(e.y[1]?t.height:1);a?(n<a.left&&(a.left=n),n>a.right&&(a.right=n),o<a.top&&(a.top=o),o>a.bottom&&(a.bottom=o)):a={left:n,right:n,top:o,bottom:o},i?T.pathListRel.push([i,{x:n,y:o}]):T.pathListRel=[],i={x:n,y:o}}),T.pathListRel.push([]),o=T.strokeWidth/2,l=[{x:a.left-o,y:a.top-o},{x:a.right+o,y:a.bottom+o}],T.bBoxRel={left:l[0].x,top:l[0].y,right:l[1].x,bottom:l[1].y,width:l[1].x-l[0].x,height:l[1].y-l[0].y}}F.pathListRel=F.bBoxRel=!0}return(F.pathListRel||F.elementLeft||F.elementTop)&&(T.pathData=se(T.pathListRel,function(e){e.x+=t.left,e.y+=t.top})),_e(e,B,"strokeWidth",n=T.strokeWidth)&&(e.path.style.strokeWidth=n+"px"),he(n=T.pathData,B.pathData)&&(e.path.setPathData(n),B.pathData=n,F.pathData=!0),e.dash&&(!F.pathData&&(!F.strokeWidth||e.dashLen&&e.dashGap)||(T.dashLen=e.dashLen||2*T.strokeWidth,T.dashGap=e.dashGap||T.strokeWidth),F.dash=_e(e,B,"dashLen",T.dashLen)||F.dash,F.dash=_e(e,B,"dashGap",T.dashGap)||F.dash,F.dash&&(e.path.style.strokeDasharray=B.dashLen+","+B.dashGap)),A=T.viewBoxBBox,V=B.viewBoxBBox,P=e.svg.viewBox.baseVal,N=e.svg.style,A.x=T.bBoxRel.left+t.left,A.y=T.bBoxRel.top+t.top,A.width=T.bBoxRel.width,A.height=T.bBoxRel.height,["x","y","width","height"].forEach(function(t){(n=A[t])!==V[t]&&(P[t]=V[t]=n,N[b[t]]=n+("x"===t||"y"===t?e.bodyOffset[t]:0)+"px")}),F.strokeWidth||F.pathListRel||F.bBoxRel}},mouseHoverAnchor:{type:"anchor",argOptions:[{optionName:"element",type:J},{optionName:"showEffectName",type:"string"}],style:{backgroundImage:"url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cG9seWdvbiBwb2ludHM9IjI0LDAgMCw4IDgsMTEgMCwxOSA1LDI0IDEzLDE2IDE2LDI0IiBmaWxsPSJjb3JhbCIvPjwvc3ZnPg==')",backgroundSize:"",backgroundRepeat:"no-repeat",backgroundColor:"#f8f881",cursor:"default"},hoverStyle:{backgroundImage:"none",backgroundColor:"#fadf8f"},padding:{top:1,right:15,bottom:1,left:2},minHeight:15,backgroundPosition:{right:2,top:2},backgroundSize:{width:12,height:12},dirKeys:[["top","Top"],["right","Right"],["bottom","Bottom"],["left","Left"]],init:function(e,a){var i,o,l,r,s,u,h,p,c,d,f,y=n.mouseHoverAnchor,S={};if(e.element=n.pointAnchor.checkElement(a.element),!((d=(p=e.element).ownerDocument)&&(c=d.defaultView)&&c.HTMLElement&&p instanceof c.HTMLElement))throw new Error("`element` must be HTML element");return y.style.backgroundSize=y.backgroundSize.width+"px "+y.backgroundSize.height+"px",["style","hoverStyle"].forEach(function(t){var n=y[t];e[t]=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},{})}),"inline"===(i=e.element.ownerDocument.defaultView.getComputedStyle(e.element,"")).display?e.style.display="inline-block":"none"===i.display&&(e.style.display="block"),n.mouseHoverAnchor.dirKeys.forEach(function(t){var n=t[0],a="padding"+t[1];parseFloat(i[a])<y.padding[n]&&(e.style[a]=y.padding[n]+"px")}),e.style.display&&(r=e.element.style.display,e.element.style.display=e.style.display),n.mouseHoverAnchor.dirKeys.forEach(function(t){var n="padding"+t[1];e.style[n]&&(S[n]=e.element.style[n],e.element.style[n]=e.style[n])}),(l=e.element.getBoundingClientRect()).height<y.minHeight&&(A?(f=y.minHeight,"content-box"===i.boxSizing?f-=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)+parseFloat(i.paddingTop)+parseFloat(i.paddingBottom):"padding-box"===i.boxSizing&&(f-=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)),e.style.height=f+"px"):e.style.height=parseFloat(i.height)+(y.minHeight-l.height)+"px"),e.style.backgroundPosition=N?l.width-y.backgroundSize.width-y.backgroundPosition.right+"px "+y.backgroundPosition.top+"px":"right "+y.backgroundPosition.right+"px top "+y.backgroundPosition.top+"px",e.style.display&&(e.element.style.display=r),n.mouseHoverAnchor.dirKeys.forEach(function(t){var n="padding"+t[1];e.style[n]&&(e.element.style[n]=S[n])}),["style","hoverStyle"].forEach(function(t){var n=e[t],i=a[t];B(i)&&Object.keys(i).forEach(function(e){"string"==typeof i[e]||R(i[e])?n[e]=i[e]:null==i[e]&&delete n[e]})}),"function"==typeof a.onSwitch&&(h=a.onSwitch),a.showEffectName&&t[a.showEffectName]&&(e.showEffectName=s=a.showEffectName),u=a.animOptions,e.elmStyle=o=e.element.style,e.mouseenter=function(t){e.hoverStyleSave=y.getStyles(o,Object.keys(e.hoverStyle)),y.setStyles(o,e.hoverStyle),e.boundTargets.forEach(function(e){Oe(e.props,!0,s,u)}),h&&h(t)},e.mouseleave=function(t){y.setStyles(o,e.hoverStyleSave),e.boundTargets.forEach(function(e){Oe(e.props,!1,s,u)}),h&&h(t)},!0},bind:function(e,t){var a,i,o,l,r;return t.props.svg?n.mouseHoverAnchor.llShow(t.props,!1,e.showEffectName):de(function(){n.mouseHoverAnchor.llShow(t.props,!1,e.showEffectName)}),e.enabled||(e.styleSave=n.mouseHoverAnchor.getStyles(e.elmStyle,Object.keys(e.style)),n.mouseHoverAnchor.setStyles(e.elmStyle,e.style),e.removeEventListener=(a=e.element,i=e.mouseenter,o=e.mouseleave,"onmouseenter"in a&&"onmouseleave"in a?(a.addEventListener("mouseenter",i,!1),a.addEventListener("mouseleave",o,!1),function(){a.removeEventListener("mouseenter",i,!1),a.removeEventListener("mouseleave",o,!1)}):(console.warn("mouseenter and mouseleave events polyfill is enabled."),l=function(e){e.relatedTarget&&(e.relatedTarget===this||this.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||i.apply(this,arguments)},a.addEventListener("mouseover",l),r=function(e){e.relatedTarget&&(e.relatedTarget===this||this.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||o.apply(this,arguments)},a.addEventListener("mouseout",r),function(){a.removeEventListener("mouseover",l,!1),a.removeEventListener("mouseout",r,!1)})),e.enabled=!0),!0},unbind:function(e,t){e.enabled&&e.boundTargets.length<=1&&(e.removeEventListener(),n.mouseHoverAnchor.setStyles(e.elmStyle,e.styleSave),e.enabled=!1),n.mouseHoverAnchor.llShow(t.props,!0,e.showEffectName)},removeOption:function(e,t){n.pointAnchor.removeOption(e,t)},remove:function(e){e.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),e.boundTargets.forEach(function(t){n.mouseHoverAnchor.unbind(e,t)}))},getBBoxNest:function(e,t){return te(e.element,t.baseWindow)},llShow:function(e,n,a){t[a||e.curStats.show_effect].stop(e,!0,n),e.aplStats.show_on=n},getStyles:function(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})},setStyles:function(e,t){Object.keys(t).forEach(function(n){e[n]=t[n]})}},captionLabel:{type:"label",argOptions:[{optionName:"text",type:"string"}],stats:{color:{},x:{},y:{}},textStyleProps:["fontFamily","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","kerning","letterSpacing","wordSpacing","textDecoration"],init:function(e,t){return"string"==typeof t.text&&(e.text=t.text.trim()),!!e.text&&("string"==typeof t.color&&(e.color=t.color.trim()),e.outlineColor="string"==typeof t.outlineColor?t.outlineColor.trim():"#fff",Array.isArray(t.offset)&&R(t.offset[0])&&R(t.offset[1])&&(e.offset={x:t.offset[0],y:t.offset[1]}),R(t.lineOffset)&&(e.lineOffset=t.lineOffset),n.captionLabel.textStyleProps.forEach(function(n){null!=t[n]&&(e[n]=t[n])}),e.updateColor=function(t){n.captionLabel.updateColor(e,t)},e.updateSocketXY=function(t){var n,a,i,o,l=e.curStats,r=e.aplStats,s=t.curStats,u=s.position_socketXYSE[e.socketIndex];null!=u.x&&(e.offset?(l.x=u.x+e.offset.x,l.y=u.y+e.offset.y):(n=e.height/2,a=Math.max(s.attach_plugSideLenSE[e.socketIndex]||0,s.line_strokeWidth/2),i=s.position_socketXYSE[e.socketIndex?0:1],4===u.socketId||2===u.socketId?(l.x=4===u.socketId?u.x-n-e.width:u.x+n,l.y=i.y<u.y?u.y+a+n:u.y-a-n-e.height):(l.x=i.x<u.x?u.x+a+n:u.x-a-n-e.width,l.y=1===u.socketId?u.y-n-e.height:u.y+n)),_e(e,r,"x",o=l.x)&&(e.elmPosition.x.baseVal.getItem(0).value=o),_e(e,r,"y",o=l.y)&&(e.elmPosition.y.baseVal.getItem(0).value=o+e.height))},e.updatePath=function(t){var a,i,o=e.curStats,l=e.aplStats,r=t.pathList.animVal||t.pathList.baseVal;r&&(a=n.captionLabel.getMidPoint(r,e.lineOffset),o.x=a.x-e.width/2,o.y=a.y-e.height/2,_e(e,l,"x",i=o.x)&&(e.elmPosition.x.baseVal.getItem(0).value=i),_e(e,l,"y",i=o.y)&&(e.elmPosition.y.baseVal.getItem(0).value=i+e.height))},e.updateShow=function(t){n.captionLabel.updateShow(e,t)},N&&(e.adjustEdge=function(t,a){var i=e.curStats;null!=i.x&&n.captionLabel.adjustEdge(a,{x:i.x,y:i.y,width:e.width,height:e.height},e.strokeWidth/2)}),!0)},updateColor:function(e,t){var n,a=e.curStats,i=e.aplStats,o=t.curStats;a.color=n=e.color||o.line_color,_e(e,i,"color",n)&&(e.styleFill.fill=n)},updateShow:function(e,t){var n=!0===t.isShown;n!==e.isShown&&(e.styleShow.visibility=n?"":"hidden",e.isShown=n)},adjustEdge:function(e,t,n){var a={x1:t.x-n,y1:t.y-n,x2:t.x+t.width+n,y2:t.y+t.height+n};a.x1<e.x1&&(e.x1=a.x1),a.y1<e.y1&&(e.y1=a.y1),a.x2>e.x2&&(e.x2=a.x2),a.y2>e.y2&&(e.y2=a.y2)},newText:function(e,t,n,a,i){var o,l,r,u,h,p;return(o=t.createElementNS(C,"text")).textContent=e,[o.x,o.y].forEach(function(e){var t=n.createSVGLength();t.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),e.baseVal.initialize(t)}),"boolean"!=typeof s&&(s="paintOrder"in o.style),i&&!s?(r=t.createElementNS(C,"defs"),o.id=a,r.appendChild(o),(h=(l=t.createElementNS(C,"g")).appendChild(t.createElementNS(C,"use"))).href.baseVal="#"+a,(u=l.appendChild(t.createElementNS(C,"use"))).href.baseVal="#"+a,(p=h.style).strokeLinejoin="round",{elmPosition:o,styleText:o.style,styleFill:u.style,styleStroke:p,styleShow:l.style,elmsAppend:[r,l]}):(p=o.style,i&&(p.strokeLinejoin="round",p.paintOrder="stroke"),{elmPosition:o,styleText:p,styleFill:p,styleStroke:i?p:null,styleShow:p,elmsAppend:[o]})},getMidPoint:function(e,t){var n,a,i,o=ue(e),l=o.segsLen,r=o.lenAll,s=-1;if((n=r/2+(t||0))<=0)return 2===(a=e[0]).length?ae(a[0],a[1],0):oe(a[0],a[1],a[2],a[3],0);if(r<=n)return 2===(a=e[e.length-1]).length?ae(a[0],a[1],1):oe(a[0],a[1],a[2],a[3],1);for(i=[];n>l[++s];)i.push(e[s]),n-=l[s];return 2===(a=e[s]).length?ae(a[0],a[1],n/l[s]):oe(a[0],a[1],a[2],a[3],re(a[0],a[1],a[2],a[3],n))},initSvg:function(e,t){var a,i,o=n.captionLabel.newText(e.text,t.baseWindow.document,t.svg,d+"-captionLabel-"+e._id,e.outlineColor);["elmPosition","styleFill","styleShow","elmsAppend"].forEach(function(t){e[t]=o[t]}),e.isShown=!1,e.styleShow.visibility="hidden",n.captionLabel.textStyleProps.forEach(function(t){null!=e[t]&&(o.styleText[t]=e[t])}),o.elmsAppend.forEach(function(e){t.svg.appendChild(e)}),a=o.elmPosition.getBBox(),e.width=a.width,e.height=a.height,e.outlineColor&&(i=10<(i=a.height/9)?10:i<2?2:i,o.styleStroke.strokeWidth=i+"px",o.styleStroke.stroke=e.outlineColor),e.strokeWidth=i||0,ge(e.aplStats,n.captionLabel.stats),e.updateColor(t),e.refSocketXY?e.updateSocketXY(t):e.updatePath(t),N&&ke(t,{}),e.updateShow(t)},bind:function(e,t){var a=t.props;return e.color||pe(a,"cur_line_color",e.updateColor),(e.refSocketXY="startLabel"===t.optionName||"endLabel"===t.optionName)?(e.socketIndex="startLabel"===t.optionName?0:1,pe(a,"apl_position",e.updateSocketXY),e.offset||(pe(a,"cur_attach_plugSideLenSE",e.updateSocketXY),pe(a,"cur_line_strokeWidth",e.updateSocketXY))):pe(a,"apl_path",e.updatePath),pe(a,"svgShow",e.updateShow),N&&pe(a,"new_edge4viewBox",e.adjustEdge),n.captionLabel.initSvg(e,a),!0},unbind:function(e,t){var a=t.props;e.elmsAppend&&(e.elmsAppend.forEach(function(e){a.svg.removeChild(e)}),e.elmPosition=e.styleFill=e.styleShow=e.elmsAppend=null),ge(e.curStats,n.captionLabel.stats),ge(e.aplStats,n.captionLabel.stats),e.color||ce(a,"cur_line_color",e.updateColor),e.refSocketXY?(ce(a,"apl_position",e.updateSocketXY),e.offset||(ce(a,"cur_attach_plugSideLenSE",e.updateSocketXY),ce(a,"cur_line_strokeWidth",e.updateSocketXY))):ce(a,"apl_path",e.updatePath),ce(a,"svgShow",e.updateShow),N&&(ce(a,"new_edge4viewBox",e.adjustEdge),ke(a,{}))},removeOption:function(e,t){var n=t.props,a={};a[t.optionName]="",Ce(n,a)},remove:function(e){e.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),e.boundTargets.forEach(function(t){n.captionLabel.unbind(e,t)}))}},pathLabel:{type:"label",argOptions:[{optionName:"text",type:"string"}],stats:{color:{},startOffset:{},pathData:{}},init:function(e,t){return"string"==typeof t.text&&(e.text=t.text.trim()),!!e.text&&("string"==typeof t.color&&(e.color=t.color.trim()),e.outlineColor="string"==typeof t.outlineColor?t.outlineColor.trim():"#fff",R(t.lineOffset)&&(e.lineOffset=t.lineOffset),n.captionLabel.textStyleProps.forEach(function(n){null!=t[n]&&(e[n]=t[n])}),e.updateColor=function(t){n.captionLabel.updateColor(e,t)},e.updatePath=function(t){var a,i=e.curStats,o=e.aplStats,l=t.curStats,r=t.pathList.animVal||t.pathList.baseVal;r&&(i.pathData=a=n.pathLabel.getOffsetPathData(r,l.line_strokeWidth/2+e.strokeWidth/2+e.height/4,1.25*e.height),he(a,o.pathData)&&(e.elmPath.setPathData(a),o.pathData=a,e.bBox=e.elmPosition.getBBox(),e.updateStartOffset(t)))},e.updateStartOffset=function(t){var n,a,i,o,l=e.curStats,r=e.aplStats,s=t.curStats;l.pathData&&(2!==e.semIndex||e.lineOffset)&&(n=l.pathData.reduce(function(e,t){var n,a=t.values;switch(t.type){case"M":o={x:a[0],y:a[1]};break;case"L":n={x:a[0],y:a[1]},o&&(e+=ne(o,n)),o=n;break;case"C":n={x:a[4],y:a[5]},o&&(e+=le(o,{x:a[0],y:a[1]},{x:a[2],y:a[3]},n)),o=n}return e},0),i=0===e.semIndex?0:1===e.semIndex?n:n/2,2!==e.semIndex&&(a=Math.max(s.attach_plugBackLenSE[e.semIndex]||0,s.line_strokeWidth/2)+e.strokeWidth/2+e.height/4,i=(i+=0===e.semIndex?a:-a)<0?0:n<i?n:i),e.lineOffset&&(i=(i+=e.lineOffset)<0?0:n<i?n:i),l.startOffset=i,_e(e,r,"startOffset",i)&&(e.elmOffset.startOffset.baseVal.value=i))},e.updateShow=function(t){n.captionLabel.updateShow(e,t)},N&&(e.adjustEdge=function(t,a){e.bBox&&n.captionLabel.adjustEdge(a,e.bBox,e.strokeWidth/2)}),!0)},getOffsetPathData:function(e,t,n){var a,i,o=[];function l(e,t){return Math.abs(e.x-t.x)<3&&Math.abs(e.y-t.y)<3}return e.forEach(function(e){var n,i,r,s,u,h,p,c,d,f,y,S,m,g,_,v,E,x,b,k,w;2===e.length?(x=e[0],b=e[1],k=t,w=Math.atan2(x.y-b.y,b.x-x.x)+.5*Math.PI,n=[{x:x.x+Math.cos(w)*k,y:x.y+Math.sin(w)*k*-1},{x:b.x+Math.cos(w)*k,y:b.y+Math.sin(w)*k*-1}],a?(r=a.points,0<=(s=Math.atan2(r[1].y-r[0].y,r[0].x-r[1].x)-Math.atan2(e[0].y-e[1].y,e[1].x-e[0].x))&&s<=Math.PI?i={type:"line",points:n,inside:!0}:(h=ie(r[0],r[1],t),u=ie(n[1],n[0],t),c=r[0],f=u,y=n[1],S=(d=h).x-c.x,m=d.y-c.y,g=y.x-f.x,_=y.y-f.y,v=(-m*(c.x-f.x)+S*(c.y-f.y))/(-g*m+S*_),E=(g*(c.y-f.y)-_*(c.x-f.x))/(-g*m+S*_),(p=0<=v&&v<=1&&0<=E&&E<=1?{x:c.x+E*S,y:c.y+E*m}:null)?i={type:"line",points:[r[1]=p,n[1]]}:(r[1]=l(u,h)?u:h,i={type:"line",points:[u,n[1]]}),a.len=ne(r[0],r[1]))):i={type:"line",points:n},i.len=ne(i.points[0],i.points[1]),o.push(a=i)):(o.push({type:"cubic",points:function(e,t,n,a,i){for(var o,l,r=le(e,t,n,a)/16,s=1/(16<i?r*(i/16):r),u=[],h=0;l=(90-(o=oe(e,t,n,a,h)).angle)*(Math.PI/180),u.push({x:o.x+Math.cos(l)*i,y:o.y+Math.sin(l)*i*-1}),!(1<=h);)1<(h+=s)&&(h=1);return u}(e[0],e[1],e[2],e[3],t)}),a=null)}),a=null,o.forEach(function(e){var i;"line"===e.type?(e.inside&&(a.len>t?((i=a.points)[1]=ie(i[0],i[1],-t),a.len=ne(i[0],i[1])):(a.points=null,a.len=0),e.len>t+n?((i=e.points)[0]=ie(i[1],i[0],-(t+n)),e.len=ne(i[0],i[1])):(e.points=null,e.len=0)),a=e):a=null}),o.reduce(function(e,t){var n=t.points;return n&&(i&&l(n[0],i)||e.push({type:"M",values:[n[0].x,n[0].y]}),"line"===t.type?e.push({type:"L",values:[n[1].x,n[1].y]}):(n.shift(),n.forEach(function(t){e.push({type:"L",values:[t.x,t.y]})})),i=n[n.length-1]),e},[])},newText:function(e,t,n,a){var i,o,l,r,u,h,p,c,d,f;return(r=(l=t.createElementNS(C,"defs")).appendChild(t.createElementNS(C,"path"))).id=i=n+"-path",(h=(u=t.createElementNS(C,"text")).appendChild(t.createElementNS(C,"textPath"))).href.baseVal="#"+i,h.startOffset.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),h.textContent=e,"boolean"!=typeof s&&(s="paintOrder"in u.style),a&&!s?(u.id=o=n+"-text",l.appendChild(u),(d=(p=t.createElementNS(C,"g")).appendChild(t.createElementNS(C,"use"))).href.baseVal="#"+o,(c=p.appendChild(t.createElementNS(C,"use"))).href.baseVal="#"+o,(f=d.style).strokeLinejoin="round",{elmPosition:u,elmPath:r,elmOffset:h,styleText:u.style,styleFill:c.style,styleStroke:f,styleShow:p.style,elmsAppend:[l,p]}):(f=u.style,a&&(f.strokeLinejoin="round",f.paintOrder="stroke"),{elmPosition:u,elmPath:r,elmOffset:h,styleText:f,styleFill:f,styleStroke:a?f:null,styleShow:f,elmsAppend:[l,u]})},initSvg:function(e,t){var a,i,o=n.pathLabel.newText(e.text,t.baseWindow.document,d+"-pathLabel-"+e._id,e.outlineColor);["elmPosition","elmPath","elmOffset","styleFill","styleShow","elmsAppend"].forEach(function(t){e[t]=o[t]}),e.isShown=!1,e.styleShow.visibility="hidden",n.captionLabel.textStyleProps.forEach(function(t){null!=e[t]&&(o.styleText[t]=e[t])}),o.elmsAppend.forEach(function(e){t.svg.appendChild(e)}),o.elmPath.setPathData([{type:"M",values:[0,100]},{type:"h",values:[100]}]),a=o.elmPosition.getBBox(),o.styleText.textAnchor=["start","end","middle"][e.semIndex],2!==e.semIndex||e.lineOffset||o.elmOffset.startOffset.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,50),e.height=a.height,e.outlineColor&&(i=10<(i=a.height/9)?10:i<2?2:i,o.styleStroke.strokeWidth=i+"px",o.styleStroke.stroke=e.outlineColor),e.strokeWidth=i||0,ge(e.aplStats,n.pathLabel.stats),e.updateColor(t),e.updatePath(t),e.updateStartOffset(t),N&&ke(t,{}),e.updateShow(t)},bind:function(e,t){var a=t.props;return e.color||pe(a,"cur_line_color",e.updateColor),pe(a,"cur_line_strokeWidth",e.updatePath),pe(a,"apl_path",e.updatePath),e.semIndex="startLabel"===t.optionName?0:"endLabel"===t.optionName?1:2,(2!==e.semIndex||e.lineOffset)&&pe(a,"cur_attach_plugBackLenSE",e.updateStartOffset),pe(a,"svgShow",e.updateShow),N&&pe(a,"new_edge4viewBox",e.adjustEdge),n.pathLabel.initSvg(e,a),!0},unbind:function(e,t){var a=t.props;e.elmsAppend&&(e.elmsAppend.forEach(function(e){a.svg.removeChild(e)}),e.elmPosition=e.elmPath=e.elmOffset=e.styleFill=e.styleShow=e.elmsAppend=null),ge(e.curStats,n.pathLabel.stats),ge(e.aplStats,n.pathLabel.stats),e.color||ce(a,"cur_line_color",e.updateColor),ce(a,"cur_line_strokeWidth",e.updatePath),ce(a,"apl_path",e.updatePath),(2!==e.semIndex||e.lineOffset)&&ce(a,"cur_attach_plugBackLenSE",e.updateStartOffset),ce(a,"svgShow",e.updateShow),N&&(ce(a,"new_edge4viewBox",e.adjustEdge),ke(a,{}))},removeOption:function(e,t){var n=t.props,a={};a[t.optionName]="",Ce(n,a)},remove:function(e){e.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),e.boundTargets.forEach(function(t){n.pathLabel.unbind(e,t)}))}}},Object.keys(n).forEach(function(e){Le[e]=function(){return new a(n[e],Array.prototype.slice.call(arguments))}}),Le.positionByWindowResize=!0,window.addEventListener("resize",G.add(function(){Le.positionByWindowResize&&Object.keys(U).forEach(function(e){ke(U[e],{position:!0})})}),!1),Le}();e("L",{setLine:function(e,n,a={}){return new t(e,n,a)},obj:t})}}});