UNPKG

obstacle-wl-1

Version:

## Project setup ``` npm install ```

32 lines 1.08 MB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-065cb70c"],{"00b4":function(e,t,n){"use strict";n("ac1f");var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("e330"),s=n("1626"),l=n("861d"),u=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),c=i.Error,h=a(/./.test);r({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=this.exec;if(!s(t))return h(this,e);var n=o(t,this,e);if(null!==n&&!l(n))throw new c("RegExp exec method returned something other than an Object or null");return!!n}})},"0481":function(e,t,n){"use strict";var r=n("23e7"),i=n("a2bf"),o=n("7b0b"),a=n("07fa"),s=n("5926"),l=n("65f0");r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t),r=l(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},"04d1":function(e,t,n){var r=n("342f"),i=r.match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},"0538":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),o=n("59ed"),a=n("861d"),s=n("1a2d"),l=n("f36a"),u=r.Function,c=i([].concat),h=i([].join),d={},f=function(e,t,n){if(!s(d,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";d[t]=u("C,a","return new C("+h(r,",")+")")}return d[t](e,n)};e.exports=u.bind||function(e){var t=o(this),n=t.prototype,r=l(arguments,1),i=function(){var n=c(r,l(arguments));return this instanceof i?f(t,n.length,n):t.apply(e,n)};return a(n)&&(i.prototype=n),i}},"0541":function(e,t,n){var r=n("23e7"),i=n("1a2d");r({target:"Object",stat:!0},{hasOwn:i})},"057f":function(e,t,n){var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("4dae"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(t){return a(s)}};e.exports.f=function(e){return s&&"Window"==r(e)?l(e):o(i(e))}},"0676":function(e,t){function n(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"0b25":function(e,t,n){var r=n("da84"),i=n("5926"),o=n("50c4"),a=r.RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=o(t);if(t!==n)throw a("Wrong length or index");return n}},"0b42":function(e,t,n){var r=n("da84"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("b622"),l=s("species"),u=r.Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,o(t)&&(t===u||i(t.prototype))?t=void 0:a(t)&&(t=t[l],null===t&&(t=void 0))),void 0===t?u:t}},"0c47":function(e,t,n){var r=n("da84"),i=n("d44e");i(r.JSON,"JSON",!0)},"0cb2":function(e,t,n){var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,d){var f=n+e.length,g=r.length,p=c;return void 0!==h&&(h=i(h),p=u),s(d,p,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":u=h[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>g){var d=o(c/10);return 0===d?i:d<=g?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}u=r[c-1]}return void 0===u?"":u}))}},"0d3b":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("c430"),a=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"107c":function(e,t,n){var r=n("d039"),i=n("da84"),o=i.RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},"10d1":function(e,t,n){"use strict";var r,i=n("da84"),o=n("e330"),a=n("e2cc"),s=n("f183"),l=n("6d61"),u=n("acac"),c=n("861d"),h=n("4fad"),d=n("69f3").enforce,f=n("7f9a"),g=!i.ActiveXObject&&"ActiveXObject"in i,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},v=l("WeakMap",p,u);if(f&&g){r=u.getConstructor(p,"WeakMap",!0),s.enable();var y=v.prototype,m=o(y["delete"]),b=o(y.has),x=o(y.get),w=o(y.set);a(y,{delete:function(e){if(c(e)&&!h(e)){var t=d(this);return t.frozen||(t.frozen=new r),m(this,e)||t.frozen["delete"](e)}return m(this,e)},has:function(e){if(c(e)&&!h(e)){var t=d(this);return t.frozen||(t.frozen=new r),b(this,e)||t.frozen.has(e)}return b(this,e)},get:function(e){if(c(e)&&!h(e)){var t=d(this);return t.frozen||(t.frozen=new r),b(this,e)?x(this,e):t.frozen.get(e)}return x(this,e)},set:function(e,t){if(c(e)&&!h(e)){var n=d(this);n.frozen||(n.frozen=new r),b(this,e)?w(this,e,t):n.frozen.set(e,t)}else w(this,e,t);return this}})}},1148:function(e,t,n){"use strict";var r=n("da84"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r.RangeError;e.exports=function(e){var t=o(a(this)),n="",r=i(e);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},"11b0":function(e,t,n){function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630"),e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},1276:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("44e7"),l=n("825a"),u=n("1d80"),c=n("4840"),h=n("8aa5"),d=n("50c4"),f=n("577e"),g=n("dc4a"),p=n("4dae"),v=n("14c3"),y=n("9263"),m=n("9f7f"),b=n("d039"),x=m.UNSUPPORTED_Y,w=4294967295,C=Math.min,k=[].push,E=o(/./.exec),S=o(k),A=o("".slice),O=!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(e,t,n){var o;return o="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var o=f(u(this)),a=void 0===n?w:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!s(e))return i(t,o,e,a);var l,c,h,d=[],g=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),v=0,m=new RegExp(e.source,g+"g");while(l=i(y,m,o)){if(c=m.lastIndex,c>v&&(S(d,A(o,v,l.index)),l.length>1&&l.index<o.length&&r(k,d,p(l,1)),h=l[0].length,v=c,d.length>=a))break;m.lastIndex===l.index&&m.lastIndex++}return v===o.length?!h&&E(m,"")||S(d,""):S(d,A(o,v)),d.length>a?p(d,0,a):d}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=u(this),a=void 0==t?void 0:g(t,e);return a?i(a,t,r,n):i(o,f(r),t,n)},function(e,r){var i=l(this),a=f(e),s=n(o,i,a,r,o!==t);if(s.done)return s.value;var u=c(i,RegExp),g=i.unicode,p=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(x?"g":"y"),y=new u(x?"^(?:"+i.source+")":i,p),m=void 0===r?w:r>>>0;if(0===m)return[];if(0===a.length)return null===v(y,a)?[a]:[];var b=0,k=0,E=[];while(k<a.length){y.lastIndex=x?0:k;var O,M=v(y,x?A(a,k):a);if(null===M||(O=C(d(y.lastIndex+(x?k:0)),a.length))===b)k=h(a,k,g);else{if(S(E,A(a,b,k)),E.length===m)return E;for(var P=1;P<=M.length-1;P++)if(S(E,M[P]),E.length===m)return E;k=b=O}}return S(E,A(a,b)),E}]}),!O,x)},"129f":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},1448:function(e,t,n){var r=n("dfb9"),i=n("b6b7");e.exports=function(e,t){return r(i(e),t)}},"145e":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa"),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n),l=i(e,s),u=i(t,s),c=arguments.length>2?arguments[2]:void 0,h=a((void 0===c?s:i(c,s))-u,s-l),d=1;u<l&&l<u+h&&(d=-1,u+=h-1,l+=h-1);while(h-- >0)u in n?n[l]=n[u]:delete n[l],l+=d,u+=d;return n}},"14c3":function(e,t,n){var r=n("da84"),i=n("c65b"),o=n("825a"),a=n("1626"),s=n("c6b6"),l=n("9263"),u=r.TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var r=i(n,e,t);return null!==r&&o(r),r}if("RegExp"===s(e))return i(l,e,t);throw u("RegExp#exec called on incompatible receiver")}},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("17c2"),s=n("9112"),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in i)i[u]&&l(r[u]&&r[u].prototype);l(o)},"170b":function(e,t,n){"use strict";var r=n("ebb5"),i=n("50c4"),o=n("23cb"),a=n("b6b7"),s=r.aTypedArray,l=r.exportTypedArrayMethod;l("subarray",(function(e,t){var n=s(this),r=n.length,l=o(e,r),u=a(n);return new u(n.buffer,n.byteOffset+l*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-l))}))},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"182d":function(e,t,n){var r=n("da84"),i=n("f8cd"),o=r.RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw o("Wrong offset");return n}},"18a5":function(e,t,n){"use strict";var r=n("23e7"),i=n("857a"),o=n("af03");r({target:"String",proto:!0,forced:o("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},"1dde":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1f80":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("x6",{ref:"antvx6"})],1)},i=[],o=n("4e69"),a=[{shape:"edge",attrs:{line:{stroke:"#7c68fc",targetMarker:{name:"path",args:{size:"6"}},strokeDasharray:""}},id:"7b01a9a6-83b1-41fa-aba3-2bfdafc68220",zIndex:-1,source:{cell:"b0a27800-e298-415c-803b-872cd63d85c4",port:"group13"},target:{cell:"64c7c2ca-6ea8-4572-84aa-783064e1201f",port:"group42"},labels:[{attrs:{label:{text:""}}}]},{position:{x:150,y:80},size:{width:100,height:100},view:"html-view",shape:"html",id:"b0a27800-e298-415c-803b-872cd63d85c4",data:{typeImgNo:"img1",textContent:"基本事件",defaultSpanStyle:""},ports:{items:[{group:"group1",id:"group10",args:{x:"50%",y:0}},{group:"group1",id:"group11",args:{x:"50%",y:"100%"}},{group:"group1",id:"group12",args:{x:0,y:"50%"}},{group:"group1",id:"group13",args:{x:"100%",y:"50%"}}],groups:{group1:{attrs:{circle:{r:6,magnet:!0,stroke:"#31d0c6",fill:"#fff",strokeWidth:2}},position:{name:"absolute"}}}},zIndex:1},{position:{x:380,y:70},size:{width:100,height:100},view:"html-view",shape:"html",id:"64c7c2ca-6ea8-4572-84aa-783064e1201f",data:{typeImgNo:"img2",textContent:"未探明事件",defaultSpanStyle:""},ports:{items:[{group:"group4",id:"group40",args:{x:"50%",y:"26%"}},{group:"group4",id:"group41",args:{x:"50%",y:"74%"}},{group:"group4",id:"group42",args:{x:"5%",y:"50%"},connected:!0},{group:"group4",id:"group43",args:{x:"95%",y:"50%"}}],groups:{group4:{attrs:{circle:{r:6,magnet:!0,stroke:"#31d0c6",fill:"#fff",strokeWidth:2}},position:{name:"absolute"}}}},zIndex:2}],s={name:"x6TestLib",data:function(){return{}},mounted:function(){this.$refs.antvx6.renderData(a)},components:{x6:o["x6"]},methods:{}},l=s,u=n("2877"),c=Object(u["a"])(l,r,i,!1,null,"41be74ce",null);t["default"]=c.exports},"219c":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),o=n("d039"),a=n("59ed"),s=n("addb"),l=n("ebb5"),u=n("04d1"),c=n("d998"),h=n("2d00"),d=n("512c"),f=r.Array,g=l.aTypedArray,p=l.exportTypedArrayMethod,v=r.Uint16Array,y=v&&i(v.prototype.sort),m=!!y&&!(o((function(){y(new v(2),null)}))&&o((function(){y(new v(2),{})}))),b=!!y&&!o((function(){if(h)return h<74;if(u)return u<67;if(c)return!0;if(d)return d<602;var e,t,n=new v(516),r=f(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(y(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0})),x=function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}};p("sort",(function(e){return void 0!==e&&a(e),b?y(this,e):s(g(this),x(e))}),!b||m)},2236:function(e,t,n){var r=n("5a43");function i(e){if(Array.isArray(e))return r(e)}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"23dc":function(e,t,n){var r=n("d44e");r(Math,"Math",!0)},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5a34"),a=n("1d80"),s=n("577e"),l=n("ab13"),u=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},"25a1":function(e,t,n){"use strict";var r=n("ebb5"),i=n("d58f").right,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},"25f0":function(e,t,n){"use strict";var r=n("e330"),i=n("5e77").PROPER,o=n("6eeb"),a=n("825a"),s=n("3a9b"),l=n("577e"),u=n("d039"),c=n("ad6d"),h="toString",d=RegExp.prototype,f=d[h],g=r(c),p=u((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),v=i&&f.name!=h;(p||v)&&o(RegExp.prototype,h,(function(){var e=a(this),t=l(e.source),n=e.flags,r=l(void 0===n&&s(d,e)&&!("flags"in d)?g(e):n);return"/"+t+"/"+r}),{unsafe:!0})},"278c":function(e,t,n){var r=n("c135"),i=n("9b42"),o=n("6613"),a=n("c240");function s(e,t){return r(e)||i(e,t)||o(e,t)||a()}e.exports=s,e.exports["default"]=e.exports,e.exports.__esModule=!0},2954:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b6b7"),o=n("d039"),a=n("f36a"),s=r.aTypedArray,l=r.exportTypedArrayMethod,u=o((function(){new Int8Array(1).slice()}));l("slice",(function(e,t){var n=a(s(this),e,t),r=i(this),o=0,l=n.length,u=new r(l);while(l>o)u[o]=n[o++];return u}),u)},"2b3d":function(e,t,n){"use strict";n("3ca3");var r,i=n("23e7"),o=n("83ab"),a=n("0d3b"),s=n("da84"),l=n("0366"),u=n("e330"),c=n("37e8"),h=n("6eeb"),d=n("19aa"),f=n("1a2d"),g=n("60da"),p=n("4df4"),v=n("4dae"),y=n("6547").codeAt,m=n("5fb2"),b=n("577e"),x=n("d44e"),w=n("9861"),C=n("69f3"),k=C.set,E=C.getterFor("URL"),S=w.URLSearchParams,A=w.getState,O=s.URL,M=s.TypeError,P=s.parseInt,T=Math.floor,D=Math.pow,N=u("".charAt),j=u(/./.exec),L=u([].join),F=u(1..toString),R=u([].pop),B=u([].push),z=u("".replace),I=u([].shift),V=u("".split),_=u("".slice),G=u("".toLowerCase),H=u([].unshift),U="Invalid authority",q="Invalid scheme",$="Invalid host",W="Invalid port",X=/[a-z]/i,Y=/[\d+-.a-z]/i,J=/\d/,Z=/^0x/i,K=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,ie=/[\t\n\r]/g,oe=function(e){var t,n,r,i,o,a,s,l=V(e,".");if(l.length&&""==l[l.length-1]&&l.length--,t=l.length,t>4)return e;for(n=[],r=0;r<t;r++){if(i=l[r],""==i)return e;if(o=10,i.length>1&&"0"==N(i,0)&&(o=j(Z,i)?16:8,i=_(i,8==o?1:2)),""===i)a=0;else{if(!j(10==o?Q:8==o?K:ee,i))return e;a=P(i,o)}B(n,a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=D(256,5-t))return null}else if(a>255)return null;for(s=R(n),r=0;r<n.length;r++)s+=n[r]*D(256,3-r);return s},ae=function(e){var t,n,r,i,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,h=0,d=function(){return N(e,h)};if(":"==d()){if(":"!=N(e,1))return;h+=2,u++,c=u}while(d()){if(8==u)return;if(":"!=d()){t=n=0;while(n<4&&j(ee,d()))t=16*t+P(d(),16),h++,n++;if("."==d()){if(0==n)return;if(h-=n,u>6)return;r=0;while(d()){if(i=null,r>0){if(!("."==d()&&r<4))return;h++}if(!j(J,d()))return;while(j(J,d())){if(o=P(d(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;h++}l[u]=256*l[u]+i,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==d()){if(h++,!d())return}else if(d())return;l[u++]=t}else{if(null!==c)return;h++,u++,c=u}}if(null!==c){a=u-c,u=7;while(0!=u&&a>0)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s}else if(8!=u)return;return l},se=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t},le=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)H(t,e%256),e=T(e/256);return L(t,".")}if("object"==typeof e){for(t="",r=se(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=F(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ue={},ce=g({},ue,{" ":1,'"':1,"<":1,">":1,"`":1}),he=g({},ce,{"#":1,"?":1,"{":1,"}":1}),de=g({},he,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var n=y(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},ge={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var n;return 2==e.length&&j(X,N(e,0))&&(":"==(n=N(e,1))||!t&&"|"==n)},ve=function(e){var t;return e.length>1&&pe(_(e,0,2))&&(2==e.length||"/"===(t=N(e,2))||"\\"===t||"?"===t||"#"===t)},ye=function(e){return"."===e||"%2e"===G(e)},me=function(e){return e=G(e),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},be={},xe={},we={},Ce={},ke={},Ee={},Se={},Ae={},Oe={},Me={},Pe={},Te={},De={},Ne={},je={},Le={},Fe={},Re={},Be={},ze={},Ie={},Ve=function(e,t,n){var r,i,o,a=b(e);if(t){if(i=this.parse(a),i)throw M(i);this.searchParams=null}else{if(void 0!==n&&(r=new Ve(n,!0)),i=this.parse(a,null,r),i)throw M(i);o=A(new S),o.bindURL(this),this.searchParams=o}};Ve.prototype={type:"URL",parse:function(e,t,n){var i,o,a,s,l=this,u=t||be,c=0,h="",d=!1,g=!1,y=!1;e=b(e),t||(l.scheme="",l.username="",l.password="",l.host=null,l.port=null,l.path=[],l.query=null,l.fragment=null,l.cannotBeABaseURL=!1,e=z(e,re,"")),e=z(e,ie,""),i=p(e);while(c<=i.length){switch(o=i[c],u){case be:if(!o||!j(X,o)){if(t)return q;u=we;continue}h+=G(o),u=xe;break;case xe:if(o&&(j(Y,o)||"+"==o||"-"==o||"."==o))h+=G(o);else{if(":"!=o){if(t)return q;h="",u=we,c=0;continue}if(t&&(l.isSpecial()!=f(ge,h)||"file"==h&&(l.includesCredentials()||null!==l.port)||"file"==l.scheme&&!l.host))return;if(l.scheme=h,t)return void(l.isSpecial()&&ge[l.scheme]==l.port&&(l.port=null));h="","file"==l.scheme?u=Ne:l.isSpecial()&&n&&n.scheme==l.scheme?u=Ce:l.isSpecial()?u=Ae:"/"==i[c+1]?(u=ke,c++):(l.cannotBeABaseURL=!0,B(l.path,""),u=Be)}break;case we:if(!n||n.cannotBeABaseURL&&"#"!=o)return q;if(n.cannotBeABaseURL&&"#"==o){l.scheme=n.scheme,l.path=v(n.path),l.query=n.query,l.fragment="",l.cannotBeABaseURL=!0,u=Ie;break}u="file"==n.scheme?Ne:Ee;continue;case Ce:if("/"!=o||"/"!=i[c+1]){u=Ee;continue}u=Oe,c++;break;case ke:if("/"==o){u=Me;break}u=Re;continue;case Ee:if(l.scheme=n.scheme,o==r)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query=n.query;else if("/"==o||"\\"==o&&l.isSpecial())u=Se;else if("?"==o)l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query="",u=ze;else{if("#"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.path.length--,u=Re;continue}l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,l.path=v(n.path),l.query=n.query,l.fragment="",u=Ie}break;case Se:if(!l.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){l.username=n.username,l.password=n.password,l.host=n.host,l.port=n.port,u=Re;continue}u=Me}else u=Oe;break;case Ae:if(u=Oe,"/"!=o||"/"!=N(h,c+1))continue;c++;break;case Oe:if("/"!=o&&"\\"!=o){u=Me;continue}break;case Me:if("@"==o){d&&(h="%40"+h),d=!0,a=p(h);for(var m=0;m<a.length;m++){var x=a[m];if(":"!=x||y){var w=fe(x,de);y?l.password+=w:l.username+=w}else y=!0}h=""}else if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(d&&""==h)return U;c-=p(h).length+1,h="",u=Pe}else h+=o;break;case Pe:case Te:if(t&&"file"==l.scheme){u=Le;continue}if(":"!=o||g){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()){if(l.isSpecial()&&""==h)return $;if(t&&""==h&&(l.includesCredentials()||null!==l.port))return;if(s=l.parseHost(h),s)return s;if(h="",u=Fe,t)return;continue}"["==o?g=!0:"]"==o&&(g=!1),h+=o}else{if(""==h)return $;if(s=l.parseHost(h),s)return s;if(h="",u=De,t==Te)return}break;case De:if(!j(J,o)){if(o==r||"/"==o||"?"==o||"#"==o||"\\"==o&&l.isSpecial()||t){if(""!=h){var C=P(h,10);if(C>65535)return W;l.port=l.isSpecial()&&C===ge[l.scheme]?null:C,h=""}if(t)return;u=Fe;continue}return W}h+=o;break;case Ne:if(l.scheme="file","/"==o||"\\"==o)u=je;else{if(!n||"file"!=n.scheme){u=Re;continue}if(o==r)l.host=n.host,l.path=v(n.path),l.query=n.query;else if("?"==o)l.host=n.host,l.path=v(n.path),l.query="",u=ze;else{if("#"!=o){ve(L(v(i,c),""))||(l.host=n.host,l.path=v(n.path),l.shortenPath()),u=Re;continue}l.host=n.host,l.path=v(n.path),l.query=n.query,l.fragment="",u=Ie}}break;case je:if("/"==o||"\\"==o){u=Le;break}n&&"file"==n.scheme&&!ve(L(v(i,c),""))&&(pe(n.path[0],!0)?B(l.path,n.path[0]):l.host=n.host),u=Re;continue;case Le:if(o==r||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&pe(h))u=Re;else if(""==h){if(l.host="",t)return;u=Fe}else{if(s=l.parseHost(h),s)return s;if("localhost"==l.host&&(l.host=""),t)return;h="",u=Fe}continue}h+=o;break;case Fe:if(l.isSpecial()){if(u=Re,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=r&&(u=Re,"/"!=o))continue}else l.fragment="",u=Ie;else l.query="",u=ze;break;case Re:if(o==r||"/"==o||"\\"==o&&l.isSpecial()||!t&&("?"==o||"#"==o)){if(me(h)?(l.shortenPath(),"/"==o||"\\"==o&&l.isSpecial()||B(l.path,"")):ye(h)?"/"==o||"\\"==o&&l.isSpecial()||B(l.path,""):("file"==l.scheme&&!l.path.length&&pe(h)&&(l.host&&(l.host=""),h=N(h,0)+":"),B(l.path,h)),h="","file"==l.scheme&&(o==r||"?"==o||"#"==o))while(l.path.length>1&&""===l.path[0])I(l.path);"?"==o?(l.query="",u=ze):"#"==o&&(l.fragment="",u=Ie)}else h+=fe(o,he);break;case Be:"?"==o?(l.query="",u=ze):"#"==o?(l.fragment="",u=Ie):o!=r&&(l.path[0]+=fe(o,ue));break;case ze:t||"#"!=o?o!=r&&("'"==o&&l.isSpecial()?l.query+="%27":l.query+="#"==o?"%23":fe(o,ue)):(l.fragment="",u=Ie);break;case Ie:o!=r&&(l.fragment+=fe(o,ce));break}c++}},parseHost:function(e){var t,n,r;if("["==N(e,0)){if("]"!=N(e,e.length-1))return $;if(t=ae(_(e,1,-1)),!t)return $;this.host=t}else if(this.isSpecial()){if(e=m(e),j(te,e))return $;if(t=oe(e),null===t)return $;this.host=t}else{if(j(ne,e))return $;for(t="",n=p(e),r=0;r<n.length;r++)t+=fe(n[r],ue);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return f(ge,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,l=e.fragment,u=t+":";return null!==i?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=le(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+L(a,"/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},setHref:function(e){var t=this.parse(e);if(t)throw M(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new _e(e.path[0]).origin}catch(n){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+le(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",be)},getUsername:function(){return this.username},setUsername:function(e){var t=p(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=fe(t[n],de)}},getPassword:function(){return this.password},setPassword:function(e){var t=p(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=fe(t[n],de)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?le(e):le(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Pe)},getHostname:function(){var e=this.host;return null===e?"":le(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Te)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(e=b(e),""==e?this.port=null:this.parse(e,De))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+L(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Fe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){e=b(e),""==e?this.query=null:("?"==N(e,0)&&(e=_(e,1)),this.query="",this.parse(e,ze)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){e=b(e),""!=e?("#"==N(e,0)&&(e=_(e,1)),this.fragment="",this.parse(e,Ie)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var _e=function(e){var t=d(this,Ge),n=arguments.length>1?arguments[1]:void 0,r=k(t,new Ve(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ge=_e.prototype,He=function(e,t){return{get:function(){return E(this)[e]()},set:t&&function(e){return E(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&c(Ge,{href:He("serialize","setHref"),origin:He("getOrigin"),protocol:He("getProtocol","setProtocol"),username:He("getUsername","setUsername"),password:He("getPassword","setPassword"),host:He("getHost","setHost"),hostname:He("getHostname","setHostname"),port:He("getPort","setPort"),pathname:He("getPathname","setPathname"),search:He("getSearch","setSearch"),searchParams:He("getSearchParams"),hash:He("getHash","setHash")}),h(Ge,"toJSON",(function(){return E(this).serialize()}),{enumerable:!0}),h(Ge,"toString",(function(){return E(this).serialize()}),{enumerable:!0}),O){var Ue=O.createObjectURL,qe=O.revokeObjectURL;Ue&&h(_e,"createObjectURL",l(Ue,O)),qe&&h(_e,"revokeObjectURL",l(qe,O))}x(_e,"URL"),i({global:!0,forced:!a,sham:!o},{URL:_e})},"2c3e":function(e,t,n){var r=n("da84"),i=n("83ab"),o=n("9f7f").MISSED_STICKY,a=n("c6b6"),s=n("9bf2").f,l=n("69f3").get,u=RegExp.prototype,c=r.TypeError;i&&o&&s(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!l(this).sticky;throw c("Incompatible receiver, RegExp required")}}})},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("06cf").f,a=n("50c4"),s=n("577e"),l=n("5a34"),u=n("1d80"),c=n("ab13"),h=n("c430"),d=i("".startsWith),f=i("".slice),g=Math.min,p=c("startsWith"),v=!h&&!p&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!v&&!p},{startsWith:function(e){var t=s(u(this));l(e);var n=a(g(arguments.length>1?arguments[1]:void 0,t.length)),r=s(e);return d?d(t,r,n):f(t,n,n+r.length)===r}})},"2d0d":function(e,t,n){n("4ae1"),n("d3b7"),n("f8c9");var r=n("36c6"),i=n("6f8f"),o=n("6b58");function a(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}e.exports=a,e.exports["default"]=e.exports,e.exports.__esModule=!0},3280:function(e,t,n){"use strict";var r=n("ebb5"),i=n("2ba4"),o=n("e58c"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("lastIndexOf",(function(e){var t=arguments.length;return i(o,a(this),t>1?[e,arguments[1]]:[e])}))},"33d1":function(e,t,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),a=n("5926"),s=n("44d2");r({target:"Array",proto:!0},{at:function(e){var t=i(this),n=o(t),r=a(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}}),s("at")},3410:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177"),l=i((function(){a(1)}));r({target:"Object",stat:!0,forced:l,sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},"36c6":function(e,t,n){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports["default"]=e.exports,e.exports.__esModule=!0,r(t)}n("3410"),e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},"38cf":function(e,t,n){var r=n("23e7"),i=n("1148");r({target:"String",proto:!0},{repeat:i})},"3a7b":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").findIndex,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},"3c5d":function(e,t,n){"use strict";var r=n("da84"),i=n("ebb5"),o=n("07fa"),a=n("182d"),s=n("7b0b"),l=n("d039"),u=r.RangeError,c=i.aTypedArray,h=i.exportTypedArrayMethod,d=l((function(){new Int8Array(1).set({})}));h("set",(function(e){c(this);var t=a(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=s(e),i=o(r),l=0;if(i+t>n)throw u("Wrong length");while(l<i)this[t+l]=r[l++]}),d)},"3c96":function(e,t){function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"3fcc":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").map,o=n("b6b7"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("map",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},4069:function(e,t,n){var r=n("44d2");r("flat")},"408a":function(e,t,n){var r=n("e330");e.exports=r(1..valueOf)},"428f":function(e,t,n){var r=n("da84");e.exports=r},"448a":function(e,t,n){var r=n("2236"),i=n("11b0"),o=n("6613"),a=n("0676");function s(e){return r(e)||i(e)||o(e)||a()}e.exports=s,e.exports["default"]=e.exports,e.exports.__esModule=!0},"44e7":function(e,t,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},"466d":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("50c4"),s=n("577e"),l=n("1d80"),u=n("dc4a"),c=n("8aa5"),h=n("14c3");i("match",(function(e,t,n){return[function(t){var n=l(this),i=void 0==t?void 0:u(t,e);return i?r(i,t,n):new RegExp(t)[e](s(n))},function(e){var r=o(this),i=s(e),l=n(t,r,i);if(l.done)return l.value;if(!r.global)return h(r,i);var u=r.unicode;r.lastIndex=0;var d,f=[],g=0;while(null!==(d=h(r,i))){var p=s(d[0]);f[g]=p,""===p&&(r.lastIndex=c(i,a(r.lastIndex),u)),g++}return 0===g?null:f}]}))},"498a":function(e,t,n){"use strict";var r=n("23e7"),i=n("58a8").trim,o=n("c8d2");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"4a4b":function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports["default"]=e.exports,e.exports.__esModule=!0,n(t,r)}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"4ae1":function(e,t,n){var r=n("23e7"),i=n("d066"),o=n("2ba4"),a=n("0538"),s=n("5087"),l=n("825a"),u=n("861d"),c=n("7c73"),h=n("d039"),d=i("Reflect","construct"),f=Object.prototype,g=[].push,p=h((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),v=!h((function(){d((function(){}))})),y=p||v;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),l(t);var n=arguments.length<3?e:s(arguments[2]);if(v&&!p)return d(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return o(g,r,t),new(o(a,e,r))}var i=n.prototype,h=c(u(i)?i:f),y=o(e,h,t);return u(y)?y:h}})},"4d63":function(e,t,n){var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("7156"),l=n("9112"),u=n("9bf2").f,c=n("241c").f,h=n("3a9b"),d=n("44e7"),f=n("577e"),g=n("ad6d"),p=n("9f7f"),v=n("6eeb"),y=n("d039"),m=n("1a2d"),b=n("69f3").enforce,x=n("2626"),w=n("b622"),C=n("fce3"),k=n("107c"),E=w("match"),S=i.RegExp,A=S.prototype,O=i.SyntaxError,M=o(g),P=o(A.exec),T=o("".charAt),D=o("".replace),N=o("".indexOf),j=o("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,F=/a/g,R=/a/g,B=new S(F)!==F,z=p.MISSED_STICKY,I=p.UNSUPPORTED_Y,V=r&&(!B||z||C||k||y((function(){return R[E]=!1,S(F)!=F||S(R)==R||"/a/i"!=S(F,"i")}))),_=function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)t=T(e,r),"\\"!==t?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+T(e,++r);return i},G=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,l=!1,u=0,c="";r<=n;r++){if(t=T(e,r),"\\"===t)t+=T(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:P(L,j(e,r+1))&&(r+=2,l=!0),i+=t,u++;continue;case">"===t&&l:if(""===c||m(a,c))throw new O("Invalid capture group name");a[c]=!0,o[o.length]=[c,u],l=!1,c="";continue}l?c+=t:i+=t}return[i,o]};if(a("RegExp",V)){for(var H=function(e,t){var n,r,i,o,a,u,c=h(A,this),g=d(e),p=void 0===t,v=[],y=e;if(!c&&g&&p&&e.constructor===H)return e;if((g||h(A,e))&&(e=e.source,p&&(t="flags"in y?y.flags:M(y))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),y=e,C&&"dotAll"in F&&(r=!!t&&N(t,"s")>-1,r&&(t=D(t,/s/g,""))),n=t,z&&"sticky"in F&&(i=!!t&&N(t,"y")>-1,i&&I&&(t=D(t,/y/g,""))),k&&(o=G(e),e=o[0],v=o[1]),a=s(S(e,t),c?this:A,H),(r||i||v.length)&&(u=b(a),r&&(u.dotAll=!0,u.raw=H(_(e),n)),i&&(u.sticky=!0),v.length&&(u.groups=v)),e!==y)try{l(a,"source",""===y?"(?:)":y)}catch(m){}return a},U=function(e){e in H||u(H,e,{configurable:!0,get:function(){return S[e]},set:function(t){S[e]=t}})},q=c(S),$=0;q.length>$;)U(q[$++]);A.constructor=H,H.prototype=A,v(i,"RegExp",H)}x("RegExp")},"4dae":function(e,t,n){var r=n("da84"),i=n("23cb"),o=n("07fa"),a=n("8418"),s=r.Array,l=Math.max;e.exports=function(e,t,n){for(var r=o(e),u=i(t,r),c=i(void 0===n?r:n,r),h=s(l(c-u,0)),d=0;u<c;u++,d++)a(h,d,e[u]);return h.length=d,h}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("da84"),i=n("0366"),o=n("c65b"),a=n("7b0b"),s=n("9bdd"),l=n("e95a"),u=n("68ee"),c=n("07fa"),h=n("8418"),d=n("9a1f"),f=n("35a1"),g=r.Array;e.exports=function(e){var t=a(e),n=u(this),r=arguments.length,p=r>1?arguments[1]:void 0,v=void 0!==p;v&&(p=i(p,r>2?arguments[2]:void 0));var y,m,b,x,w,C,k=f(t),E=0;if(!k||this==g&&l(k))for(y=c(t),m=n?new this(y):g(y);y>E;E++)C=v?p(t[E],E):t[E],h(m,E,C);else for(x=d(t,k),w=x.next,m=n?new this:[];!(b=o(w,x)).done;E++)C=v?s(x,p,[b.value,E],!0):b.value,h(m,E,C);return m.length=E,m}},"4e69":function(e,t,n){var r=n("6374").default,i=n("8962").default,o=n("36c6").default,a=n("3c96").default,s=n("9523").default,l=n("6b58").default,u=n("ed6d").default,c=n("2d0d").default,h=n("278c").default,d=n("448a").default,f=n("970b").default,g=n("5bc3").default,p=n("7037").default;n("a4d3"),n("e01a"),n("d3b7"),n("944a"),n("0c47"),n("23dc"),n("ac1f"),n("5319"),n("498a"),n("159b"),n("b64b"),n("a15b"),n("99af"),n("caad"),n("fb6a"),n("3ca3"),n("10d1"),n("ddb0"),n("4de4"),n("d81d"),n("7039"),n("e439"),n("3410"),n("0481"),n("4069"),n("25f0"),n("4e82"),n("a434"),n("d28b"),n("1276"),n("4d63"),n("c607"),n("2c3e"),n("00b4"),n("7db0"),n("466d"),n("b0c0"),n("8ba4"),n("a9e3"),n("b680"),n("9129"),n("0541"),n("18a5"),n("2ca0"),n("6062"),n("f8c9"),n("e9c4"),n("a6fd"),n("dbb4"),n("bf19"),n("f00c"),n("2532"),n("aff5"),n("c740"),n("33d1"),n("ea98"),n("841c"),n("38cf"),n("4ec9"),n("e6e1"),n("a630"),n("cb29"),n("5377"),n("c19f"),n("dca8"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("2b3d"),n("9861"),n("6c57"),e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===p(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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="fb15")}({"005c":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r,i=n("1157"),o=n.n(i),a=n("bcd7");(function(e){function t(e){return null!=e&&!n(e)}function n(e){return null!=e&&"string"===typeof e}function r(e){return null==e||n(e)?e:a["g"].cloneDeep(e)}function i(e){return"".concat(e).trim().replace(/[\r|\n]/g," ").replace(/>\s+</g,"><")}function s(e){var t=document.createDocumentFragment(),n={},r={},o=i(e),s=a["k"].sanitizeHTML(o,{raw:!0});return s.forEach((function(e){t.appendChild(e)})),{fragment:t,selectors:r,groups:n}}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:a["c"].ns.svg},n=document.createDocumentFragment(),r={},i={},s=[{markup:Array.isArray(e)?e:[e],parent:n,ns:t.ns}],l=function(){var e=s.pop(),t=e.ns||a["c"].ns.svg,n=e.markup,l=e.parent;n.forEach((function(e){var n=e.tagName;if(!n)throw new TypeError("Invalid tagName");e.ns&&(t=e.ns);var u=t===a["c"].ns.svg,c=t?a["c"].createElementNS(n,t):a["c"].createElement(n),h=e.attrs;h&&(u?a["c"].attr(c,a["c"].kebablizeAttrs(h)):o()(c).attr(h));var d=e.style;d&&o()(c).css(d);var f=e.className;null!=f&&c.setAttribute("class",Array.isArray(f)?f.join(" "):f),e.textContent&&(c.textContent=e.textContent);var g=e.selector;if(null!=g){if(i[g])throw new TypeError("Selector must be unique");i[g]=c}if(e.groupSelector){var p=e.groupSelector;Array.isArray(p)||(p=[p]),p.forEach((function(e){r[e]||(r[e]=[]),r[e].push(c)}))}l.appendChild(c);var v=e.children;Array.isArray(v)&&s.push({ns:t,markup:v,parent:c})}))};while(s.length>0)l();return Object.keys(r).forEach((function(e){if(i[e])throw new Error("Ambiguous group selector");i[e]=r[e]})),{fragment:n,selectors:i,groups:r}}function u(e){return e instanceof SVGElement?a["c"].createSvgElement("g"):a["c"].createElement("div")}function c(e){if(n(e)){var t=a["m"].createVectors(e),r=t.length;if(1===r)return{elem:t[0].node};if(r>1){var i=u(t[0].node);return t.forEach((function(e){i.appendChild(e.node)})),{elem:i}}return{}}var o=l(e),s=o.fragment,c=null;return s.childNodes.length>1?(c=u(s.firstChild),c.appendChild(s)):c=s.firstChild,{elem:c,selectors:o.selectors}}function h(e){for(var t=a["m"].createVectors(e),n=document.createDocumentFragment(),r=0,i=t.length;r<i;r+=1){var o=t[r].node;n.appendChild(o)}return{fragment:n,selectors:{}}}e.isJSONMarkup=t,e.isStringMarkup=n,e.clone=r,e.sanitize=i,e.parseStringMarkup=s,e.parseJSONMarkup=l,e.renderMarkup=c,e.parseLabelStringMarkup=h})(r||(r={})),function(e){function t(e,n,r){if(null!=e){var i,o=e.tagName.toLowerCase();if(e===n)return i="string"===typeof r?"> ".concat(o," > ").concat(r):"> ".concat(o),i;var s=e.parentNode;if(s&&s.childNodes.length>1){var l=a["c"].index(e)+1;i="".concat(o,":nth-child(").concat(l,")")}else i=o;return r&&(i+=" > ".concat(r)),t(e.parentNode,n,i)}return r}function n(e,n,r){if("#text"===e.nodeName)return null;var i=null,o=null,s=null,l=!1,u={tagName:e.tagName};if(e.attributes){s={};for(var c=0,h=e.attributes.length;c<h;c+=1){var d=e.attributes[c],f=d.nodeName,g=d.nodeValue;"selector"===f?i=g:"groupSelector"===f?o=g:"class"===f?u.attrs={class:g}:s[f]=g}}return null==i&&(l=!0,i=t(e,n)),e.namespaceURI&&(u.ns=e.namespaceURI),null==u.ns&&(["body","div","section","main","nav","footer","span","p","h1","h2","h3","h4","h5","h6","ul","ol","dl","center","strong","pre","form","select","textarea","fieldset","marquee","bgsound","iframe","frameset"].includes(e.tagName)?u.ns=a["c"].ns.xhtml:r&&(u.ns=r)),i&&(u.selector=i),null!=o&&(u.groupSelector=o),{markup:u,attrs:s,isCSSSelector:l}}function r(t){var r=e.sanitize(t),i=a["c"].parseXML(r,{mimeType:"image/svg+xml"}),o=Array.prototype.slice.call(i.childNodes),s={},l=new WeakMap,u=function e(t,r,i){var o=n(t,r,i);if(null!=o){var a=o.markup,u=o.attrs,c=o.isCSSSelector;if(l.set(t,a),a.selector&&null!=u&&(Object.keys(u).length&&(s[a.selector]=u),c&&delete a.selector),t.childNodes&&t.childNodes.length>0)for(var h=0,d=t.childNodes.length;h<d;h+=1){var f=t.childNodes[h],g=e(f,r,a.ns);g&&(null==a.children&&(a.children=[]),a.children.push(g))}return a}var p=l.get(t.parentNode);p&&t.textContent&&(p.textContent=t.textContent)},c=o.map((function(e){return u(e,e)})).filter((function(e){return null!=e}));return{markup:c,attrs:s}}e.getSelector=t,e.xml2json=r}(r||(r={})),function(e){function t(){return"g"}function n(){return{tagName:"circle",selector:"circle",attrs:{r:10,fill:"#FFFFFF",stroke:"#000000"}}}function r(){return{tagName:"text",selector:"text",attrs:{fill:"#000000"}}}e.getPortContainerMarkup=t,e.getPortMarkup=n,e.getPortLabelMarkup=r}(r||(r={})),function(e){function t(){return e.sanitize('\n    <path class="connection" stroke="black" d="M 0 0 0 0"/>\n    <path class="source-marker" fill="black" stroke="black" d="M 0 0 0 0"/>\n    <path class="target-marker" fill="black" stroke="black" d="M 0 0 0 0"/>\n    <path class="connection-wrap" d="M 0 0 0 0"/>\n    <g class="labels"/>\n    <g class="vertices"/>\n    <g class="arrowheads"/>\n    <g class="tools"/>\n  ')}function n(){return e.sanitize('\n    <g class="edge-tool">\n      <g class="tool-remove" event="edge:remove">\n        <circle r="11" />\n        <path transform="scale(.8) translate(-16, -16)" d="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z" />\n        <title>Remove edge.</title>\n      </g>\n      <g class="tool-options" event="edge:options">\n        <circle r="11" transform="translate(25)"/>\n        <path fill="white" transform="scale(.55) translate(29, -16)" d="M31.229,17.736c0.064-0.571,0.104-1.148,0.104-1.736s-0.04-1.166-0.104-1.737l-4.377-1.557c-0.218-0.716-0.504-1.401-0.851-2.05l1.993-4.192c-0.725-0.91-1.549-1.734-2.458-2.459l-4.193,1.994c-0.647-0.347-1.334-0.632-2.049-0.849l-1.558-4.378C17.165,0.708,16.588,0.667,16,0.667s-1.166,0.041-1.737,0.105L12.707,5.15c-0.716,0.217-1.401,0.502-2.05,0.849L6.464,4.005C5.554,4.73,4.73,5.554,4.005,6.464l1.994,4.192c-0.347,0.648-0.632,1.334-0.849,2.05l-4.378,1.557C0.708,14.834,0.667,15.412,0.667,16s0.041,1.165,0.105,1.736l4.378,1.558c0.217,0.715,0.502,1.401,0.849,2.049l-1.994,4.193c0.725,0.909,1.549,1.733,2.459,2.458l4.192-1.993c0.648,0.347,1.334,0.633,2.05,0.851l1.557,4.377c0.571,0.064,1.148,0.104,1.737,0.104c0.588,0,1.165-0.04,1.736-0.104l1.558-4.377c0.715-0.218,1.399-0.504,2.049-0.851l4.193,1.993c0.909-0.725,1.733-1.549,2.458-2.458l-1.993-4.193c0.347-0.647,0.633-1.334,0.851-2.049L31.229,17.736zM16,20.871c-2.69,0-4.872-2.182-4.872-4.871c0-2.69,2.182-4.872,4.872-4.872c2.689,0,4.871,2.182,4.871,4.872C20.871,18.689,18.689,20.871,16,20.871z"/>\n        <title>Edge options.</title>\n      </g>\n    </g>\n  ')}function r(){return e.sanitize('\n    <g class="vertex-group" transform="translate(<%= x %>, <%= y %>)">\n      <circle class="vertex" data-index="<%= index %>" r="10" />\n      <path class="vertex-remove-area" data-index="<%= index %>" d="M16,5.333c-7.732,0-14,4.701-14,10.5c0,1.982,0.741,3.833,2.016,5.414L2,25.667l5.613-1.441c2.339,1.317,5.237,2.107,8.387,2.107c7.732,0,14-4.701,14-10.5C30,10.034,23.732,5.333,16,5.333z" transform="translate(5, -33)"/>\n      <path class="vertex-remove" data-index="<%= index %>" transform="scale(.8) translate(9.5, -37)" d="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z">\n      <title>Remove vertex.</title>\n      </path>\n    </g>\n  ')}function i(){return e.sanitize('\n    <g class="arrowhead-group arrowhead-group-<%= end %>">\n      <path class="arrowhead" data-terminal="<%= end %>" d="M 26 0 L 0 13 L 26 26 z" />\n    </g>\n  ')}e.getEdgeMarkup=t,e.getEdgeToolMarkup=n,e.getEdgeVertexMarkup=r,e.getEdgeArrowheadMarkup=i}(r||(r={})),function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{tagName:"foreignObject",selector:"fo",children:[{ns:a["c"].ns.xhtml,tagName:"body",selector:"foBody",attrs:{xmlns:a["c"].ns.xhtml},style:{width:"100%",height:"100%",background:"transparent"},children:e?[]:[{tagName:"div",selector:"foContent",style:{width:"100%",height:"100%"}}]}]}}e.getForeignObjectMarkup=t}(r||(r={}))},"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"0366":function(e,t,n){var r=n("e330"),i=n("59ed"),o=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?o(e,t):function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("4dae"),s="object"==("undefined"===typeof window?"undefined":p(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return o(e)}catch(t){return a(s)}};e.exports.f=function(e){return s&&"Window"==r(e)?l(e):o(i(e))}},"06cf":function(e,t,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),l=n("a04b"),u=n("1a2d"),c=n("0cfb"),h=Object.getOwnPropertyDescriptor;t.f=r?h:function(e,t){if(e=s(e),t=l(t),c)try{return h(e,t)}catch(n){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},"07fa":function(e,t,n){var r=n("50c4");e.exports=function(e){return r(e.length)}},"0b19":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return!Array.isArray(e)&&e-parseFloat(e)+1>=0}},"0b42":function(e,t,n){var r=n("da84"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("b622"),l=s("species"),u=r.Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,o(t)&&(t===u||i(t.prototype))?t=void 0:a(t)&&(t=t[l],null===t&&(t=void 0))),void 0===t?u:t}},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(e,t,n){var r=n("da84"),i=r.String;e.exports=function(e){try{return i(e)}catch(t){return"Object"}}},"0f4a":function(e,t){e.exports="data:image/svg+xml,%3csvg id='组_5' data-name='组 5' xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100'%3e %3cdefs%3e %3cstyle%3e .cls-1, .cls-2 %7b fill: none; stroke: %23000; stroke-width: 2px; %7d .cls-2 %7b fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3crect id='形状_4' data-name='形状 4' class='cls-1' x='88' y='37' width='96' height='30' rx='15' ry='15'/%3e %3cpath id='矩形_3' data-name='矩形 3' class='cls-2' d='M16,26s9.837-15,27-15c17.745,0,27,15,27,15V90H16V26Z'/%3e %3cg id='组_6' data-name='组 6'%3e %3crect id='矩形_2' data-name='矩形 2' x='70' y='49' width='18' height='2'/%3e %3c/g%3e %3c/svg%3e"},1147:function(e,t,n){"use strict";function r(e){return null!=e&&"object"==p(e)}t["a"]=r},1157:function(e,t,n){var r,i;
/*!
 * jQuery JavaScript Library v3.6.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-03-02T17:08Z
 */(function(t,n){"use strict";"object"===p(e.exports)?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)})("undefined"!==typeof window?window:this,(function(n,o){"use strict";var a=[],s=Object.getPrototypeOf,l=a.slice,u=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},c=a.push,h=a.indexOf,d={},f=d.toString,g=d.hasOwnProperty,v=g.toString,y=v.call(Object),m={},b=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},x=function(e){return null!=e&&e===e.window},w=n.document,C={type:!0,src:!0,nonce:!0,noModule:!0};function k(e,t,n){n=n||w;var r,i,o=n.createElement("script");if(o.text=e,t)for(r in C)i=t[r]||t.getAttribute&&t.getAttribute(r),i&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function E(e){return null==e?e+"":"object"===p(e)||"function"===typeof e?d[f.call(e)]||"object":p(e)}var S="3.6.0",A=function e(t,n){return new e.fn.init(t,n)};function O(e){var t=!!e&&"length"in e&&e.length,n=E(e);return!b(e)&&!x(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}A.fn=A.prototype={jquery:S,constructor:A,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=A.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return A.each(this,e)},map:function(e){return this.pushStack(A.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(A.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},A.extend=A.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"===typeof a&&(u=a,a=arguments[s]||{},s++),"object"===p(a)||b(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(u&&r&&(A.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||A.isPlainObject(n)?n:{},i=!1,a[t]=A.extend(u,o,r)):void 0!==r&&(a[t]=r));return a},A.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(t=s(e),!t||(n=g.call(t,"constructor")&&t.constructor,"function"===typeof n&&v.call(n)===y))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){k(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(O(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(O(Object(e))?A.merge(n,"string"===typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:h.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,n){var r,i,o=0,a=[];if(O(e))for(r=e.length;o<r;o++)i=t(e[o],o,n),null!=i&&a.push(i);else for(o in e)i=t(e[o],o,n),null!=i&&a.push(i);return u(a)},guid:1,support:m}),"function"===typeof Symbol&&(A.fn[Symbol.iterator]=a[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var M=
/*!
 * Sizzle CSS Selector Engine v2.3.6
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2021-02-16
 */
function(e){var t,n,r,i,o,a,s,l,u,c,h,d,f,g,p,v,y,m,b,x="sizzle"+1*new Date,w=e.document,C=0,k=0,E=le(),S=le(),A=le(),O=le(),M=function(e,t){return e===t&&(h=!0),0},P={}.hasOwnProperty,T=[],D=T.pop,N=T.push,j=T.push,L=T.slice,F=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\["+B+"*("+z+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+B+"*\\]",V=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",_=new RegExp(B+"+","g"),G=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),H=new RegExp("^"+B+"*,"+B+"*"),U=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),q=new RegExp(B+"|>"),$=new RegExp(V),W=new RegExp("^"+z+"$"),X={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){d()},ae=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{j.apply(T=L.call(w.childNodes),w.childNodes),T[w.childNodes.length].nodeType}catch(Oe){j={apply:T.length?function(e,t){N.apply(e,L.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(e,t,r,i){var o,s,u,c,h,g,y,m=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!==typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(d(t),t=t||f,p)){if(11!==w&&(h=Q.exec(e)))if(o=h[1]){if(9===w){if(!(u=t.getElementById(o)))return r;if(u.id===o)return r.push(u),r}else if(m&&(u=m.getElementById(o))&&b(t,u)&&u.id===o)return r.push(u),r}else{if(h[2])return j.apply(r,t.getElementsByTagName(e)),r;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return j.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!O[e+" "]&&(!v||!v.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(y=e,m=t,1===w&&(q.test(e)||U.test(e))){m=ee.test(e)&&ye(t.parentNode)||t,m===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=x)),g=a(e),s=g.length;while(s--)g[s]=(c?"#"+c:":scope")+" "+be(g[s]);y=g.join(",")}try{return j.apply(r,m.querySelectorAll(y)),r}catch(C){O(e,!0)}finally{c===x&&t.removeAttribute("id")}}}return l(e.replace(G,"$1"),t,r,i)}function le(){var e=[];function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}return t}function ue(e){return e[x]=!0,e}function ce(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(Oe){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){var n=e.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function ge(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return ue((function(t){return t=+t,ue((function(n,r){var i,o=e([],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=f&&9===a.nodeType&&a.documentElement?(f=a,g=f.documentElement,p=!o(f),w!=f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return g.appendChild(e).appendChild(f.createElement("div")),"undefined"!==typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(f.getElementsByClassName),n.getById=ce((function(e){return g.appendChild(e).id=x,!f.getElementsByName||!f.getElementsByName(x).length})),n.getById?(r.filter["ID"]=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find["ID"]=function(e,t){if("undefined"!==typeof t.getElementById&&p){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter["ID"]=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find["ID"]=function(e,t){if("undefined"!==typeof t.getElementById&&p){var n,r,i,o=t.getElementById(e);if(o){if(n=o.getAttributeNode("id"),n&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if(n=o.getAttributeNode("id"),n&&n.value===e)return[o]}return[]}}),r.find["TAG"]=n.getElementsByTagName?function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},r.find["CLASS"]=n.getElementsByClassName&&function(e,t){if("undefined"!==typeof t.getElementsByClassName&&p)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(f.querySelectorAll))&&(ce((function(e){var t;g.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+B+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+x+"-]").length||v.push("~="),t=f.createElement("input"),t.setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),g.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(m=g.matches||g.webkitMatchesSelector||g.mozMatchesSelector||g.oMatchesSelector||g.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),y.push("!=",V)})),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(g.compareDocumentPosition),b=t||K.test(g.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},M=t?function(e,t){if(e===t)return h=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==f||e.ownerDocument==w&&b(w,e)?-1:t==f||t.ownerDocument==w&&b(w,t)?1:c?F(c,e)-F(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==f?-1:t==f?1:i?-1:o?1:c?F(c,e)-F(c,t):0;if(i===o)return de(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?de(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&p&&!O[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Oe){O(t,!0)}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=f&&d(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=f&&d(e);var i=r.attrHandle[t.toLowerCase()],o=i&&P.call(r.attrHandle,t.toLowerCase())?i(e,t,!p):void 0;return void 0!==o?o:n.attributes||!p?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(h=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(M),h){while(t=e[o++])t===e[o]&&(i=r.push(o));while(i--)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[r++])n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:ue,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X["CHILD"].test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&E(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(_," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,h,d,f,g,p=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!l&&!s,b=!1;if(v){if(o){while(p){d=t;while(d=d[p])if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;g=p="only"===e&&!g&&"nextSibling"}return!0}if(g=[a?v.firstChild:v.lastChild],a&&m){d=v,h=d[x]||(d[x]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[e]||[],f=u[0]===C&&u[1],b=f&&u[2],d=f&&v.childNodes[f];while(d=++f&&d&&d[p]||(b=f=0)||g.pop())if(1===d.nodeType&&++b&&d===t){c[e]=[C,f,b];break}}else if(m&&(d=t,h=d[x]||(d[x]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),u=c[e]||[],f=u[0]===C&&u[1],b=f),!1===b)while(d=++f&&d&&d[p]||(b=f=0)||g.pop())if((s?d.nodeName.toLowerCase()===y:1===d.nodeType)&&++b&&(m&&(h=d[x]||(d[x]={}),c=h[d.uniqueID]||(h[d.uniqueID]={}),c[e]=[C,b]),d===t))break;return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[x]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){var r,o=i(e,t),a=o.length;while(a--)r=F(e,o[a]),e[r]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:ue((function(e){var t=[],n=[],r=s(e.replace(G,"$1"));return r[x]?ue((function(e,t,n,i){var o,a=r(e,null,i,[]),s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:ue((function(e){return W.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=p?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===g},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos["empty"](e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos["nth"]=r.pseudos["eq"],{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ge(t);function me(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function xe(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=k++;return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var u,c,h,d=[C,s];if(l){while(t=t[r])if((1===t.nodeType||a)&&e(t,n,l))return!0}else while(t=t[r])if(1===t.nodeType||a)if(h=t[x]||(t[x]={}),c=h[t.uniqueID]||(h[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[o])&&u[0]===C&&u[1]===s)return d[2]=u[2];if(c[o]=d,d[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Ce(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}function ke(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),u&&t.push(s)));return a}function Ee(e,t,n,r,i,o){return r&&!r[x]&&(r=Ee(r)),i&&!i[x]&&(i=Ee(i,o)),ue((function(o,a,s,l){var u,c,h,d=[],f=[],g=a.length,p=o||Ce(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?p:ke(p,d,e,s,l),y=n?i||(o?e:g||r)?[]:a:v;if(n&&n(v,y,s,l),r){u=ke(y,f),r(u,[],s,l),c=u.length;while(c--)(h=u[c])&&(y[f[c]]=!(v[f[c]]=h))}if(o){if(i||e){if(i){u=[],c=y.length;while(c--)(h=y[c])&&u.push(v[c]=h);i(null,y=[],u,l)}c=y.length;while(c--)(h=y[c])&&(u=i?F(o,h):d[c])>-1&&(o[u]=!(a[u]=h))}}else y=ke(y===a?y.splice(g,y.length):y),i?i(null,a,y,l):j.apply(a,y)}))}function Se(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,c=xe((function(e){return e===t}),s,!0),h=xe((function(e){return F(t,e)>-1}),s,!0),d=[function(e,n,r){var i=!a&&(r||n!==u)||((t=n).nodeType?c(e,n,r):h(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])d=[xe(we(d),n)];else{if(n=r.filter[e[l].type].apply(null,e[l].matches),n[x]){for(i=++l;i<o;i++)if(r.relative[e[i].type])break;return Ee(l>1&&we(d),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(G,"$1"),n,l<i&&Se(e.slice(l,i)),i<o&&Se(e=e.slice(i)),i<o&&be(e))}d.push(n)}return we(d)}function Ae(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,l,c){var h,g,v,y=0,m="0",b=o&&[],x=[],w=u,k=o||i&&r.find["TAG"]("*",c),E=C+=null==w?1:Math.random()||.1,S=k.length;for(c&&(u=a==f||a||c);m!==S&&null!=(h=k[m]);m++){if(i&&h){g=0,a||h.ownerDocument==f||(d(h),s=!p);while(v=e[g++])if(v(h,a||f,s)){l.push(h);break}c&&(C=E)}n&&((h=!v&&h)&&y--,o&&b.push(h))}if(y+=m,n&&m!==y){g=0;while(v=t[g++])v(b,x,a,s);if(o){if(y>0)while(m--)b[m]||x[m]||(x[m]=D.call(l));x=ke(x)}j.apply(l,x),c&&!o&&x.length>0&&y+t.length>1&&se.uniqueSort(l)}return c&&(C=E,u=w),b};return n?ue(o):o}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=se.tokenize=function(e,t){var n,i,o,a,s,l,u,c=S[e+" "];if(c)return t?0:c.slice(0);s=e,l=[],u=r.preFilter;while(s){for(a in n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(G," ")}),s=s.slice(n.length)),r.filter)!(i=X[a].exec(s))||u[a]&&!(i=u[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):S(e,l).slice(0)},s=se.compile=function(e,t){var n,r=[],i=[],o=A[e+" "];if(!o){t||(t=a(e)),n=t.length;while(n--)o=Se(t[n]),o[x]?r.push(o):i.push(o);o=A(e,Ae(i,r)),o.selector=e}return o},l=se.select=function(e,t,n,i){var o,l,u,c,h,d="function"===typeof e&&e,f=!i&&a(e=d.selector||e);if(n=n||[],1===f.length){if(l=f[0]=f[0].slice(0),l.length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&p&&r.relative[l[1].type]){if(t=(r.find["ID"](u.matches[0].replace(te,ne),t)||[])[0],!t)return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}o=X["needsContext"].test(e)?0:l.length;while(o--){if(u=l[o],r.relative[c=u.type])break;if((h=r.find[c])&&(i=h(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(o,1),e=i.length&&be(l),!e)return j.apply(n,i),n;break}}}return(d||s(e,f))(i,t,!p,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=x.split("").sort(M).join("")===x,n.detectDuplicates=!!h,d(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||he(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);A.find=M,A.expr=M.selectors,A.expr[":"]=A.expr.pseudos,A.uniqueSort=A.unique=M.uniqueSort,A.text=M.getText,A.isXMLDoc=M.isXML,A.contains=M.contains,A.escapeSelector=M.escape;var P=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&A(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=A.expr.match.needsContext;function N(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return b(t)?A.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?A.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?A.grep(e,(function(e){return h.call(t,e)>-1!==n})):A.filter(t,e,n)}A.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?A.find.matchesSelector(r,e)?[r]:[]:A.find.matches(e,A.grep(t,(function(e){return 1===e.nodeType})))},A.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!==typeof e)return this.pushStack(A(e).filter((function(){for(t=0;t<r;t++)if(A.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)A.find(e,i[t],n);return r>1?A.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"===typeof e&&D.test(e)?A(e):e||[],!1).length}});var F,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,B=A.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||F,"string"===typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:R.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof A?t[0]:t,A.merge(this,A.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:w,!0)),j.test(r[1])&&A.isPlainObject(t))for(r in t)b(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=w.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==n.ready?n.ready(e):e(A):A.makeArray(e,this)};B.prototype=A.fn,F=A(w);var z=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){while((e=e[t])&&1!==e.nodeType);return e}A.fn.extend({has:function(e){var t=A(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(A.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!==typeof e&&A(e);if(!D.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&A.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?A.uniqueSort(o):o)},index:function(e){return e?"string"===typeof e?h.call(A(e),this[0]):h.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),A.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return P(e,"parentNode")},parentsUntil:function(e,t,n){return P(e,"parentNode",n)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return P(e,"nextSibling")},prevAll:function(e){return P(e,"previousSibling")},nextUntil:function(e,t,n){return P(e,"nextSibling",n)},prevUntil:function(e,t,n){return P(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(N(e,"template")&&(e=e.content||e),A.merge([],e.childNodes))}},(function(e,t){A.fn[e]=function(n,r){var i=A.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=A.filter(r,i)),this.length>1&&(I[e]||A.uniqueSort(i),z.test(e)&&i.reverse()),this.pushStack(i)}}));var _=/[^\x20\t\r\n\f]+/g;function G(e){var t={};return A.each(e.match(_)||[],(function(e,n){t[n]=!0})),t}function H(e){return e}function U(e){throw e}function q(e,t,n,r){var i;try{e&&b(i=e.promise)?i.call(e).done(t).fail(n):e&&b(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}A.Callbacks=function(e){e="string"===typeof e?G(e):A.extend({},e);var t,n,r,i,o=[],a=[],s=-1,l=function(){for(i=i||e.once,r=t=!0;a.length;s=-1){n=a.shift();while(++s<o.length)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1)}e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){A.each(n,(function(n,r){b(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==E(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return A.each(arguments,(function(e,t){var n;while((n=A.inArray(t,o,n))>-1)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?A.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},A.extend({Deferred:function(e){var t=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return A.Deferred((function(n){A.each(t,(function(t,r){var i=b(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&b(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,l=arguments,u=function(){var n,u;if(!(e<o)){if(n=r.apply(s,l),n===t.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"===p(n)||"function"===typeof n)&&n.then,b(u)?i?u.call(n,a(o,t,H,i),a(o,t,U,i)):(o++,u.call(n,a(o,t,H,i),a(o,t,U,i),a(o,t,H,t.notifyWith))):(r!==H&&(s=void 0,l=[n]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(n){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(n,c.stackTrace),e+1>=o&&(r!==U&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?c():(A.Deferred.getStackHook&&(c.stackTrace=A.Deferred.getStackHook()),n.setTimeout(c))}}return A.Deferred((function(n){t[0][3].add(a(0,n,b(i)?i:H,n.notifyWith)),t[1][3].add(a(0,n,b(e)?e:H)),t[2][3].add(a(0,n,b(r)?r:U))})).promise()},promise:function(e){return null!=e?A.extend(e,i):i}},o={};return A.each(t,(function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=l.call(arguments),o=A.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?l.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(q(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||b(i[n]&&i[n].then)))return o.then();while(n--)q(i[n],a(n),o.reject);return o.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&$.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},A.readyException=function(e){n.setTimeout((function(){throw e}))};var W=A.Deferred();function X(){w.removeEventListener("DOMContentLoaded",X),n.removeEventListener("load",X),A.ready()}A.fn.ready=function(e){return W.then(e).catch((function(e){A.readyException(e)})),this},A.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--A.readyWait:A.isReady)||(A.isReady=!0,!0!==e&&--A.readyWait>0||W.resolveWith(w,[A]))}}),A.ready.then=W.then,"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?n.setTimeout(A.ready):(w.addEventListener("DOMContentLoaded",X),n.addEventListener("load",X));var Y=function e(t,n,r,i,o,a,s){var l=0,u=t.length,c=null==r;if("object"===E(r))for(l in o=!0,r)e(t,n,l,r[l],!0,a,s);else if(void 0!==i&&(o=!0,b(i)||(s=!0),c&&(s?(n.call(t,i),n=null):(c=n,n=function(e,t,n){return c.call(A(e),n)})),n))for(;l<u;l++)n(t[l],r,s?i:i.call(t[l],l,n(t[l],r)));return o?t:c?n.call(t):u?n(t[0],r):a},J=/^-ms-/,Z=/-([a-z])/g;function K(e,t){return t.toUpperCase()}function Q(e){return e.replace(J,"ms-").replace(Z,K)}var ee=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function te(){this.expando=A.expando+te.uid++}te.uid=1,te.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ee(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"===typeof t)i[Q(t)]=n;else for(r in t)i[Q(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Q(t)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(Q):(t=Q(t),t=t in r?[t]:t.match(_)||[]),n=t.length;while(n--)delete r[t[n]]}(void 0===t||A.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!A.isEmptyObject(t)}};var ne=new te,re=new te,ie=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,oe=/[A-Z]/g;function ae(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ie.test(e)?JSON.parse(e):e)}function se(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(oe,"-$&").toLowerCase(),n=e.getAttribute(r),"string"===typeof n){try{n=ae(n)}catch(i){}re.set(e,t,n)}else n=void 0;return n}A.extend({hasData:function(e){return re.hasData(e)||ne.hasData(e)},data:function(e,t,n){return re.access(e,t,n)},removeData:function(e,t){re.remove(e,t)},_data:function(e,t,n){return ne.access(e,t,n)},_removeData:function(e,t){ne.remove(e,t)}}),A.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=re.get(o),1===o.nodeType&&!ne.get(o,"hasDataAttrs"))){n=a.length;while(n--)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=Q(r.slice(5)),se(o,r,i[r])));ne.set(o,"hasDataAttrs",!0)}return i}return"object"===p(e)?this.each((function(){re.set(this,e)})):Y(this,(function(t){var n;if(o&&void 0===t)return n=re.get(o,e),void 0!==n?n:(n=se(o,e),void 0!==n?n:void 0);this.each((function(){re.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){re.remove(this,e)}))}}),A.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ne.get(e,t),n&&(!r||Array.isArray(n)?r=ne.access(e,t,A.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=A.queue(e,t),r=n.length,i=n.shift(),o=A._queueHooks(e,t),a=function(){A.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ne.get(e,n)||ne.access(e,n,{empty:A.Callbacks("once memory").add((function(){ne.remove(e,[t+"queue",n])}))})}}),A.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?A.queue(this[0],e):void 0===t?this:this.each((function(){var n=A.queue(this,e,t);A._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&A.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){A.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=A.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!==typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)n=ne.get(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var le=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ue=new RegExp("^(?:([+-])=|)("+le+")([a-z%]*)$","i"),ce=["Top","Right","Bottom","Left"],he=w.documentElement,de=function(e){return A.contains(e.ownerDocument,e)},fe={composed:!0};he.getRootNode&&(de=function(e){return A.contains(e.ownerDocument,e)||e.getRootNode(fe)===e.ownerDocument});var ge=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&de(e)&&"none"===A.css(e,"display")};function pe(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return A.css(e,t,"")},l=s(),u=n&&n[3]||(A.cssNumber[t]?"":"px"),c=e.nodeType&&(A.cssNumber[t]||"px"!==u&&+l)&&ue.exec(A.css(e,t));if(c&&c[3]!==u){l/=2,u=u||c[3],c=+l||1;while(a--)A.style(e,t,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,A.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var ve={};function ye(e){var t,n=e.ownerDocument,r=e.nodeName,i=ve[r];return i||(t=n.body.appendChild(n.createElement(r)),i=A.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ve[r]=i,i)}function me(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)r=e[o],r.style&&(n=r.style.display,t?("none"===n&&(i[o]=ne.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ge(r)&&(i[o]=ye(r))):"none"!==n&&(i[o]="none",ne.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}A.fn.extend({show:function(){return me(this,!0)},hide:function(){return me(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){ge(this)?A(this).show():A(this).hide()}))}});var be=/^(?:checkbox|radio)$/i,xe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,we=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=w.createDocumentFragment(),t=e.appendChild(w.createElement("div")),n=w.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),m.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,t.innerHTML="<option></option>",m.option=!!t.lastChild})();var Ce={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ke(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&N(e,t)?A.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)ne.set(e[n],"globalEval",!t||ne.get(t[n],"globalEval"))}Ce.tbody=Ce.tfoot=Ce.colgroup=Ce.caption=Ce.thead,Ce.th=Ce.td,m.option||(Ce.optgroup=Ce.option=[1,"<select multiple='multiple'>","</select>"]);var Se=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,l,u,c,h=t.createDocumentFragment(),d=[],f=0,g=e.length;f<g;f++)if(o=e[f],o||0===o)if("object"===E(o))A.merge(d,o.nodeType?[o]:o);else if(Se.test(o)){a=a||h.appendChild(t.createElement("div")),s=(xe.exec(o)||["",""])[1].toLowerCase(),l=Ce[s]||Ce._default,a.innerHTML=l[1]+A.htmlPrefilter(o)+l[2],c=l[0];while(c--)a=a.lastChild;A.merge(d,a.childNodes),a=h.firstChild,a.textContent=""}else d.push(t.createTextNode(o));h.textContent="",f=0;while(o=d[f++])if(r&&A.inArray(o,r)>-1)i&&i.push(o);else if(u=de(o),a=ke(h.appendChild(o),"script"),u&&Ee(a),n){c=0;while(o=a[c++])we.test(o.type||"")&&n.push(o)}return h}var Oe=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Pe(){return!1}function Te(e,t){return e===De()===("focus"===t)}function De(){try{return w.activeElement}catch(e){}}function Ne(e,t,n,r,i,o){var a,s;if("object"===p(t)){for(s in"string"!==typeof n&&(r=r||n,n=void 0),t)Ne(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Pe;else if(!i)return e;return 1===o&&(a=i,i=function(e){return A().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=A.guid++)),e.each((function(){A.event.add(this,t,i,r,n)}))}function je(e,t,n){n?(ne.set(e,t,!1),A.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=ne.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(A.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=l.call(arguments),ne.set(this,t,o),r=n(this,t),this[t](),i=ne.get(this,t),o!==i||r?ne.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else o.length&&(ne.set(this,t,{value:A.event.trigger(A.extend(o[0],A.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===ne.get(e,t)&&A.event.add(e,t,Me)}A.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,u,c,h,d,f,g,p,v=ne.get(e);if(ee(e)){n.handler&&(o=n,n=o.handler,i=o.selector),i&&A.find.matchesSelector(he,i),n.guid||(n.guid=A.guid++),(l=v.events)||(l=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return"undefined"!==typeof A&&A.event.triggered!==t.type?A.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(_)||[""],u=t.length;while(u--)s=Oe.exec(t[u])||[],f=p=s[1],g=(s[2]||"").split(".").sort(),f&&(h=A.event.special[f]||{},f=(i?h.delegateType:h.bindType)||f,h=A.event.special[f]||{},c=A.extend({type:f,origType:p,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&A.expr.match.needsContext.test(i),namespace:g.join(".")},o),(d=l[f])||(d=l[f]=[],d.delegateCount=0,h.setup&&!1!==h.setup.call(e,r,g,a)||e.addEventListener&&e.addEventListener(f,a)),h.add&&(h.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),A.event.global[f]=!0)}},remove:function(e,t,n,r,i){var o,a,s,l,u,c,h,d,f,g,p,v=ne.hasData(e)&&ne.get(e);if(v&&(l=v.events)){t=(t||"").match(_)||[""],u=t.length;while(u--)if(s=Oe.exec(t[u])||[],f=p=s[1],g=(s[2]||"").split(".").sort(),f){h=A.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,d=l[f]||[],s=s[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;while(o--)c=d[o],!i&&p!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,h.remove&&h.remove.call(e,c));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,g,v.handle)||A.removeEvent(e,f,v.handle),delete l[f])}else for(f in l)A.event.remove(e,f+t[u],n,r,!0);A.isEmptyObject(l)&&ne.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),l=A.event.fix(e),u=(ne.get(this,"events")||Object.create(null))[l.type]||[],c=A.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){a=A.event.handlers.call(this,l,u),t=0;while((i=a[t++])&&!l.isPropagationStopped()){l.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!l.isImmediatePropagationStopped())l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,r=((A.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)r=t[n],i=r.selector+" ",void 0===a[i]&&(a[i]=r.needsContext?A(i,this).index(u)>-1:A.find(i,this,null,[u]).length),a[i]&&o.push(r);o.length&&s.push({elem:u,handlers:o})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(A.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[A.expando]?e:new A.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return be.test(t.type)&&t.click&&N(t,"input")&&je(t,"click",Me),!1},trigger:function(e){var t=this||e;return be.test(t.type)&&t.click&&N(t,"input")&&je(t,"click"),!0},_default:function(e){var t=e.target;return be.test(t.type)&&t.click&&N(t,"input")&&ne.get(t,"click")||N(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},A.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},A.Event=function(e,t){if(!(this instanceof A.Event))return new A.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Pe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&A.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:Pe,isPropagationStopped:Pe,isImmediatePropagationStopped:Pe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},A.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},(function(e,t){A.event.special[e]={setup:function(){return je(this,e,Te),!1},trigger:function(){return je(this,e),!0},_default:function(){return!0},delegateType:t}})),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){A.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||A.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),A.fn.extend({on:function(e,t,n,r){return Ne(this,e,t,n,r)},one:function(e,t,n,r){return Ne(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,A(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===p(e)){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Pe),this.each((function(){A.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Re=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Be(e,t){return N(e,"table")&&N(11!==t.nodeType?t:t.firstChild,"tr")&&A(e).children("tbody")[0]||e}function ze(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ve(e,t){var n,r,i,o,a,s,l;if(1===t.nodeType){if(ne.hasData(e)&&(o=ne.get(e),l=o.events,l))for(i in ne.remove(t,"handle events"),l)for(n=0,r=l[i].length;n<r;n++)A.event.add(t,i,l[i][n]);re.hasData(e)&&(a=re.access(e),s=A.extend({},a),re.set(t,s))}}function _e(e,t){var n=t.nodeName.toLowerCase();"input"===n&&be.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ge(e,t,n,r){t=u(t);var i,o,a,s,l,c,h=0,d=e.length,f=d-1,g=t[0],p=b(g);if(p||d>1&&"string"===typeof g&&!m.checkClone&&Fe.test(g))return e.each((function(i){var o=e.eq(i);p&&(t[0]=g.call(this,i,o.html())),Ge(o,t,n,r)}));if(d&&(i=Ae(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=A.map(ke(i,"script"),ze),s=a.length;h<d;h++)l=i,h!==f&&(l=A.clone(l,!0,!0),s&&A.merge(a,ke(l,"script"))),n.call(e[h],l,h);if(s)for(c=a[a.length-1].ownerDocument,A.map(a,Ie),h=0;h<s;h++)l=a[h],we.test(l.type||"")&&!ne.access(l,"globalEval")&&A.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?A._evalUrl&&!l.noModule&&A._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):k(l.textContent.replace(Re,""),l,c))}return e}function He(e,t,n){for(var r,i=t?A.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||A.cleanData(ke(r)),r.parentNode&&(n&&de(r)&&Ee(ke(r,"script")),r.parentNode.removeChild(r));return e}A.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),l=de(e);if(!m.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!A.isXMLDoc(e))for(a=ke(s),o=ke(e),r=0,i=o.length;r<i;r++)_e(o[r],a[r]);if(t)if(n)for(o=o||ke(e),a=a||ke(s),r=0,i=o.length;r<i;r++)Ve(o[r],a[r]);else Ve(e,s);return a=ke(s,"script"),a.length>0&&Ee(a,!l&&ke(e,"script")),s},cleanData:function(e){for(var t,n,r,i=A.event.special,o=0;void 0!==(n=e[o]);o++)if(ee(n)){if(t=n[ne.expando]){if(t.events)for(r in t.events)i[r]?A.event.remove(n,r):A.removeEvent(n,r,t.handle);n[ne.expando]=void 0}n[re.expando]&&(n[re.expando]=void 0)}}}),A.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return Y(this,(function(e){return void 0===e?A.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ge(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Be(this,e);t.appendChild(e)}}))},prepend:function(){return Ge(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Be(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ge(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ge(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(A.cleanData(ke(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return A.clone(this,e,t)}))},html:function(e){return Y(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!Le.test(e)&&!Ce[(xe.exec(e)||["",""])[1].toLowerCase()]){e=A.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(A.cleanData(ke(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ge(this,arguments,(function(t){var n=this.parentNode;A.inArray(this,e)<0&&(A.cleanData(ke(this)),n&&n.replaceChild(t,this))}),e)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){A.fn[e]=function(e){for(var n,r=[],i=A(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),A(i[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var Ue=new RegExp("^("+le+")(?!px)[a-z%]+$","i"),qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},$e=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},We=new RegExp(ce.join("|"),"i");function Xe(e,t,n){var r,i,o,a,s=e.style;return n=n||qe(e),n&&(a=n.getPropertyValue(t)||n[t],""!==a||de(e)||(a=A.style(e,t)),!m.pixelBoxStyles()&&Ue.test(a)&&We.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}(function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",he.appendChild(u).appendChild(c);var e=n.getComputedStyle(c);r="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),he.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,a,s,l,u=w.createElement("div"),c=w.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,A.extend(m,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=w.createElement("table"),t=w.createElement("tr"),r=w.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",r.style.height="9px",r.style.display="block",he.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,he.removeChild(e)),s}}))})();var Je=["Webkit","Moz","ms"],Ze=w.createElement("div").style,Ke={};function Qe(e){var t=e[0].toUpperCase()+e.slice(1),n=Je.length;while(n--)if(e=Je[n]+t,e in Ze)return e}function et(e){var t=A.cssProps[e]||Ke[e];return t||(e in Ze?e:Ke[e]=Qe(e)||e)}var tt=/^(none|table(?!-c[ea]).+)/,nt=/^--/,rt={position:"absolute",visibility:"hidden",display:"block"},it={letterSpacing:"0",fontWeight:"400"};function ot(e,t,n){var r=ue.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function at(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=A.css(e,n+ce[a],!0,i)),r?("content"===n&&(l-=A.css(e,"padding"+ce[a],!0,i)),"margin"!==n&&(l-=A.css(e,"border"+ce[a]+"Width",!0,i))):(l+=A.css(e,"padding"+ce[a],!0,i),"padding"!==n?l+=A.css(e,"border"+ce[a]+"Width",!0,i):s+=A.css(e,"border"+ce[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l}function st(e,t,n){var r=qe(e),i=!m.boxSizingReliable()||n,o=i&&"border-box"===A.css(e,"boxSizing",!1,r),a=o,s=Xe(e,t,r),l="offset"+t[0].toUpperCase()+t.slice(1);if(Ue.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&N(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===A.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===A.css(e,"boxSizing",!1,r),a=l in e,a&&(s=e[l])),s=parseFloat(s)||0,s+at(e,t,n||(o?"border":"content"),a,r,s)+"px"}function lt(e,t,n,r,i){return new lt.prototype.init(e,t,n,r,i)}A.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Xe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=Q(t),l=nt.test(t),u=e.style;if(l||(t=et(s)),a=A.cssHooks[t]||A.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];o=p(n),"string"===o&&(i=ue.exec(n))&&i[1]&&(n=pe(e,t,i),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=i&&i[3]||(A.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,a,s=Q(t),l=nt.test(t);return l||(t=et(s)),a=A.cssHooks[t]||A.cssHooks[s],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Xe(e,t,r)),"normal"===i&&t in it&&(i=it[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),A.each(["height","width"],(function(e,t){A.cssHooks[t]={get:function(e,n,r){if(n)return!tt.test(A.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?st(e,t,r):$e(e,rt,(function(){return st(e,t,r)}))},set:function(e,n,r){var i,o=qe(e),a=!m.scrollboxSize()&&"absolute"===o.position,s=a||r,l=s&&"border-box"===A.css(e,"boxSizing",!1,o),u=r?at(e,t,r,l,o):0;return l&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-at(e,t,"border",!1,o)-.5)),u&&(i=ue.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=A.css(e,t)),ot(e,n,u)}}})),A.cssHooks.marginLeft=Ye(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Xe(e,"marginLeft"))||e.getBoundingClientRect().left-$e(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),A.each({margin:"",padding:"",border:"Width"},(function(e,t){A.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[e+ce[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(A.cssHooks[e+t].set=ot)})),A.fn.extend({css:function(e,t){return Y(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=qe(e),i=t.length;a<i;a++)o[t[a]]=A.css(e,t[a],!1,r);return o}return void 0!==n?A.style(e,t,n):A.css(e,t)}),e,t,arguments.length>1)}}),A.Tween=lt,lt.prototype={constructor:lt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||A.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(A.cssNumber[n]?"":"px")},cur:function(){var e=lt.propHooks[this.prop];return e&&e.get?e.get(this):lt.propHooks._default.get(this)},run:function(e){var t,n=lt.propHooks[this.prop];return this.options.duration?this.pos=t=A.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):lt.propHooks._default.set(this),this}},lt.prototype.init.prototype=lt.prototype,lt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=A.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){A.fx.step[e.prop]?A.fx.step[e.prop](e):1!==e.elem.nodeType||!A.cssHooks[e.prop]&&null==e.elem.style[et(e.prop)]?e.elem[e.prop]=e.now:A.style(e.elem,e.prop,e.now+e.unit)}}},lt.propHooks.scrollTop=lt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},A.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},A.fx=lt.prototype.init,A.fx.step={};var ut,ct,ht=/^(?:toggle|show|hide)$/,dt=/queueHooks$/;function ft(){ct&&(!1===w.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ft):n.setTimeout(ft,A.fx.interval),A.fx.tick())}function gt(){return n.setTimeout((function(){ut=void 0})),ut=Date.now()}function pt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=ce[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(e,t,n){var r,i,o,a,s,l,u,c,h="width"in t||"height"in t,d=this,f={},g=e.style,p=e.nodeType&&ge(e),v=ne.get(e,"fxshow");for(r in n.queue||(a=A._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,A.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],ht.test(i)){if(delete t[r],o=o||"toggle"===i,i===(p?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;p=!0}f[r]=v&&v[r]||A.style(e,r)}if(l=!A.isEmptyObject(t),l||!A.isEmptyObject(f))for(r in h&&1===e.nodeType&&(n.overflow=[g.overflow,g.overflowX,g.overflowY],u=v&&v.display,null==u&&(u=ne.get(e,"display")),c=A.css(e,"display"),"none"===c&&(u?c=u:(me([e],!0),u=e.style.display||u,c=A.css(e,"display"),me([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===A.css(e,"float")&&(l||(d.done((function(){g.display=u})),null==u&&(c=g.display,u="none"===c?"":c)),g.display="inline-block")),n.overflow&&(g.overflow="hidden",d.always((function(){g.overflow=n.overflow[0],g.overflowX=n.overflow[1],g.overflowY=n.overflow[2]}))),l=!1,f)l||(v?"hidden"in v&&(p=v.hidden):v=ne.access(e,"fxshow",{display:u}),o&&(v.hidden=!p),p&&me([e],!0),d.done((function(){for(r in p||me([e]),ne.remove(e,"fxshow"),f)A.style(e,r,f[r])}))),l=vt(p?v[r]:0,r,d),r in v||(v[r]=l.start,p&&(l.end=l.start,l.start=0))}function mt(e,t){var n,r,i,o,a;for(n in e)if(r=Q(n),i=t[r],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=A.cssHooks[r],a&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}function bt(e,t,n){var r,i,o=0,a=bt.prefilters.length,s=A.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=ut||gt(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,o=1-r,a=0,l=u.tweens.length;a<l;a++)u.tweens[a].run(o);return s.notifyWith(e,[u,o,n]),o<1&&l?n:(l||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:A.extend({},t),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},n),originalProperties:t,originalOptions:n,startTime:ut||gt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=A.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(mt(c,u.opts.specialEasing);o<a;o++)if(r=bt.prefilters[o].call(u,e,c,u.opts),r)return b(r.stop)&&(A._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return A.map(c,vt,u),b(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),A.fx.timer(A.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}A.Animation=A.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return pe(n.elem,e,ue.exec(t),n),n}]},tweener:function(e,t){b(e)?(t=e,e=["*"]):e=e.match(_);for(var n,r=0,i=e.length;r<i;r++)n=e[r],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[yt],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),A.speed=function(e,t,n){var r=e&&"object"===p(e)?A.extend({},e):{complete:n||!n&&t||b(e)&&e,duration:e,easing:n&&t||t&&!b(t)&&t};return A.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in A.fx.speeds?r.duration=A.fx.speeds[r.duration]:r.duration=A.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){b(r.old)&&r.old.call(this),r.queue&&A.dequeue(this,r.queue)},r},A.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=A.isEmptyObject(e),o=A.speed(t,n,r),a=function(){var t=bt(this,A.extend({},e),o);(i||ne.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=A.timers,a=ne.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&dt.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||A.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=ne.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=A.timers,a=r?r.length:0;for(n.finish=!0,A.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),A.each(["toggle","show","hide"],(function(e,t){var n=A.fn[t];A.fn[t]=function(e,r,i){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(pt(t,!0),e,r,i)}})),A.each({slideDown:pt("show"),slideUp:pt("hide"),slideToggle:pt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){A.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),A.timers=[],A.fx.tick=function(){var e,t=0,n=A.timers;for(ut=Date.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||A.fx.stop(),ut=void 0},A.fx.timer=function(e){A.timers.push(e),A.fx.start()},A.fx.interval=13,A.fx.start=function(){ct||(ct=!0,ft())},A.fx.stop=function(){ct=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(e,t){return e=A.fx&&A.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=w.createElement("input"),t=w.createElement("select"),n=t.appendChild(w.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=n.selected,e=w.createElement("input"),e.value="t",e.type="radio",m.radioValue="t"===e.value}();var xt,wt=A.expr.attrHandle;A.fn.extend({attr:function(e,t){return Y(this,A.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){A.removeAttr(this,e)}))}}),A.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof e.getAttribute?A.prop(e,t,n):(1===o&&A.isXMLDoc(e)||(i=A.attrHooks[t.toLowerCase()]||(A.expr.match.bool.test(t)?xt:void 0)),void 0!==n?null===n?void A.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=A.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&N(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(_);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),xt={set:function(e,t,n){return!1===t?A.removeAttr(e,n):e.setAttribute(n,n),n}},A.each(A.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=wt[t]||A.find.attr;wt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=wt[a],wt[a]=i,i=null!=n(e,t,r)?a:null,wt[a]=o),i}}));var Ct=/^(?:input|select|textarea|button)$/i,kt=/^(?:a|area)$/i;function Et(e){var t=e.match(_)||[];return t.join(" ")}function St(e){return e.getAttribute&&e.getAttribute("class")||""}function At(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(_)||[]}A.fn.extend({prop:function(e,t){return Y(this,A.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[A.propFix[e]||e]}))}}),A.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&A.isXMLDoc(e)||(t=A.propFix[t]||t,i=A.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=A.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||kt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(A.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){A.propFix[this.toLowerCase()]=this})),A.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(b(e))return this.each((function(t){A(this).addClass(e.call(this,t,St(this)))}));if(t=At(e),t.length)while(n=this[l++])if(i=St(n),r=1===n.nodeType&&" "+Et(i)+" ",r){a=0;while(o=t[a++])r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=Et(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(b(e))return this.each((function(t){A(this).removeClass(e.call(this,t,St(this)))}));if(!arguments.length)return this.attr("class","");if(t=At(e),t.length)while(n=this[l++])if(i=St(n),r=1===n.nodeType&&" "+Et(i)+" ",r){a=0;while(o=t[a++])while(r.indexOf(" "+o+" ")>-1)r=r.replace(" "+o+" "," ");s=Et(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=p(e),r="string"===n||Array.isArray(e);return"boolean"===typeof t&&r?t?this.addClass(e):this.removeClass(e):b(e)?this.each((function(n){A(this).toggleClass(e.call(this,n,St(this),t),t)})):this.each((function(){var t,i,o,a;if(r){i=0,o=A(this),a=At(e);while(t=a[i++])o.hasClass(t)?o.removeClass(t):o.addClass(t)}else void 0!==e&&"boolean"!==n||(t=St(this),t&&ne.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":ne.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&(" "+Et(St(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ot=/\r/g;A.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=b(e),this.each((function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,A(this).val()):e,null==i?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=A.map(i,(function(e){return null==e?"":e+""}))),t=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=A.valHooks[i.type]||A.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"===typeof n?n.replace(Ot,""):null==n?"":n)):void 0}}),A.extend({valHooks:{option:{get:function(e){var t=A.find.attr(e,"value");return null!=t?t:Et(A.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(n=i[r],(n.selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!N(n.parentNode,"optgroup"))){if(t=A(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=A.makeArray(t),a=i.length;while(a--)r=i[a],(r.selected=A.inArray(A.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),A.each(["radio","checkbox"],(function(){A.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=A.inArray(A(e).val(),t)>-1}},m.checkOn||(A.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in n;var Mt=/^(?:focusinfocus|focusoutblur)$/,Pt=function(e){e.stopPropagation()};A.extend(A.event,{trigger:function(e,t,r,i){var o,a,s,l,u,c,h,d,f=[r||w],v=g.call(e,"type")?e.type:e,y=g.call(e,"namespace")?e.namespace.split("."):[];if(a=d=s=r=r||w,3!==r.nodeType&&8!==r.nodeType&&!Mt.test(v+A.event.triggered)&&(v.indexOf(".")>-1&&(y=v.split("."),v=y.shift(),y.sort()),u=v.indexOf(":")<0&&"on"+v,e=e[A.expando]?e:new A.Event(v,"object"===p(e)&&e),e.isTrigger=i?2:3,e.namespace=y.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:A.makeArray(t,[e]),h=A.event.special[v]||{},i||!h.trigger||!1!==h.trigger.apply(r,t))){if(!i&&!h.noBubble&&!x(r)){for(l=h.delegateType||v,Mt.test(l+v)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(r.ownerDocument||w)&&f.push(s.defaultView||s.parentWindow||n)}o=0;while((a=f[o++])&&!e.isPropagationStopped())d=a,e.type=o>1?l:h.bindType||v,c=(ne.get(a,"events")||Object.create(null))[e.type]&&ne.get(a,"handle"),c&&c.apply(a,t),c=u&&a[u],c&&c.apply&&ee(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=v,i||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),t)||!ee(r)||u&&b(r[v])&&!x(r)&&(s=r[u],s&&(r[u]=null),A.event.triggered=v,e.isPropagationStopped()&&d.addEventListener(v,Pt),r[v](),e.isPropagationStopped()&&d.removeEventListener(v,Pt),A.event.triggered=void 0,s&&(r[u]=s)),e.result}},simulate:function(e,t,n){var r=A.extend(new A.Event,n,{type:e,isSimulated:!0});A.event.trigger(r,null,t)}}),A.fn.extend({trigger:function(e,t){return this.each((function(){A.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return A.event.trigger(e,t,n,!0)}}),m.focusin||A.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){A.event.simulate(t,e.target,A.event.fix(e))};A.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=ne.access(r,t);i||r.addEventListener(e,n,!0),ne.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=ne.access(r,t)-1;i?ne.access(r,t,i):(r.removeEventListener(e,n,!0),ne.remove(r,t))}}}));var Tt=n.location,Dt={guid:Date.now()},Nt=/\?/;A.parseXML=function(e){var t,r;if(!e||"string"!==typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(i){}return r=t&&t.getElementsByTagName("parsererror")[0],t&&!r||A.error("Invalid XML: "+(r?A.map(r.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var jt=/\[\]$/,Lt=/\r?\n/g,Ft=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;function Bt(e,t,n,r){var i;if(Array.isArray(t))A.each(t,(function(t,i){n||jt.test(e)?r(e,i):Bt(e+"["+("object"===p(i)&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==E(t))r(e,t);else for(i in t)Bt(e+"["+i+"]",t[i],n,r)}A.param=function(e,t){var n,r=[],i=function(e,t){var n=b(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!A.isPlainObject(e))A.each(e,(function(){i(this.name,this.value)}));else for(n in e)Bt(n,e[n],t,i);return r.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=A.prop(this,"elements");return e?A.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!A(this).is(":disabled")&&Rt.test(this.nodeName)&&!Ft.test(e)&&(this.checked||!be.test(e))})).map((function(e,t){var n=A(this).val();return null==n?null:Array.isArray(n)?A.map(n,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:n.replace(Lt,"\r\n")}})).get()}});var zt=/%20/g,It=/#.*$/,Vt=/([?&])_=[^&]*/,_t=/^(.*?):[ \t]*([^\r\n]*)$/gm,Gt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ht=/^(?:GET|HEAD)$/,Ut=/^\/\//,qt={},$t={},Wt="*/".concat("*"),Xt=w.createElement("a");function Yt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(_)||[];if(b(n))while(r=o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Jt(e,t,n,r){var i={},o=e===$t;function a(s){var l;return i[s]=!0,A.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!==typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),l}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Zt(e,t){var n,r,i=A.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&A.extend(!0,e,r),e}function Kt(e,t,n){var r,i,o,a,s=e.contents,l=e.dataTypes;while("*"===l[0])l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}function Qt(e,t,n,r){var i,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift(),o)if("*"===o)o=l;else if("*"!==l&&l!==o){if(a=u[l+" "+o]||u["* "+o],!a)for(i in u)if(s=i.split(" "),s[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]],a)){!0===a?a=u[i]:!0!==u[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(h){return{state:"parsererror",error:a?h:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}Xt.href=Tt.href,A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:Gt.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Zt(Zt(e,A.ajaxSettings),t):Zt(A.ajaxSettings,e)},ajaxPrefilter:Yt(qt),ajaxTransport:Yt($t),ajax:function(e,t){"object"===p(e)&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,l,u,c,h,d,f=A.ajaxSetup({},t),g=f.context||f,v=f.context&&(g.nodeType||g.jquery)?A(g):A.event,y=A.Deferred(),m=A.Callbacks("once memory"),b=f.statusCode||{},x={},C={},k="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a){a={};while(t=_t.exec(o))a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=C[e.toLowerCase()]=C[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)E.always(e[E.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||k;return r&&r.abort(t),S(0,t),this}};if(y.promise(E),f.url=((e||f.url||Tt.href)+"").replace(Ut,Tt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(_)||[""],null==f.crossDomain){l=w.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Xt.protocol+"//"+Xt.host!==l.protocol+"//"+l.host}catch(O){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!==typeof f.data&&(f.data=A.param(f.data,f.traditional)),Jt(qt,f,t,E),u)return E;for(h in c=A.event&&f.global,c&&0===A.active++&&A.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ht.test(f.type),i=f.url.replace(It,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(zt,"+")):(d=f.url.slice(i.length),f.data&&(f.processData||"string"===typeof f.data)&&(i+=(Nt.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Vt,"$1"),d=(Nt.test(i)?"&":"?")+"_="+Dt.guid+++d),f.url=i+d),f.ifModified&&(A.lastModified[i]&&E.setRequestHeader("If-Modified-Since",A.lastModified[i]),A.etag[i]&&E.setRequestHeader("If-None-Match",A.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Wt+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(g,E,f)||u))return E.abort();if(k="abort",m.add(f.complete),E.done(f.success),E.fail(f.error),r=Jt($t,f,t,E),r){if(E.readyState=1,c&&v.trigger("ajaxSend",[E,f]),u)return E;f.async&&f.timeout>0&&(s=n.setTimeout((function(){E.abort("timeout")}),f.timeout));try{u=!1,r.send(x,S)}catch(O){if(u)throw O;S(-1,O)}}else S(-1,"No Transport");function S(e,t,a,l){var h,d,p,x,w,C=t;u||(u=!0,s&&n.clearTimeout(s),r=void 0,o=l||"",E.readyState=e>0?4:0,h=e>=200&&e<300||304===e,a&&(x=Kt(f,E,a)),!h&&A.inArray("script",f.dataTypes)>-1&&A.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=Qt(f,x,E,h),h?(f.ifModified&&(w=E.getResponseHeader("Last-Modified"),w&&(A.lastModified[i]=w),w=E.getResponseHeader("etag"),w&&(A.etag[i]=w)),204===e||"HEAD"===f.type?C="nocontent":304===e?C="notmodified":(C=x.state,d=x.data,p=x.error,h=!p)):(p=C,!e&&C||(C="error",e<0&&(e=0))),E.status=e,E.statusText=(t||C)+"",h?y.resolveWith(g,[d,C,E]):y.rejectWith(g,[E,C,p]),E.statusCode(b),b=void 0,c&&v.trigger(h?"ajaxSuccess":"ajaxError",[E,f,h?d:p]),m.fireWith(g,[E,C]),c&&(v.trigger("ajaxComplete",[E,f]),--A.active||A.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return A.get(e,t,n,"json")},getScript:function(e,t){return A.get(e,void 0,t,"script")}}),A.each(["get","post"],(function(e,t){A[t]=function(e,n,r,i){return b(n)&&(i=i||r,r=n,n=void 0),A.ajax(A.extend({url:e,type:t,dataType:i,data:n,success:r},A.isPlainObject(e)&&e))}})),A.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),A._evalUrl=function(e,t,n){return A.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){A.globalEval(e,t,n)}})},A.fn.extend({wrapAll:function(e){var t;return this[0]&&(b(e)&&(e=e.call(this[0])),t=A(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return b(e)?this.each((function(t){A(this).wrapInner(e.call(this,t))})):this.each((function(){var t=A(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=b(e);return this.each((function(n){A(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){A(this).replaceWith(this.childNodes)})),this}}),A.expr.pseudos.hidden=function(e){return!A.expr.pseudos.visible(e)},A.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var en={0:200,1223:204},tn=A.ajaxSettings.xhr();m.cors=!!tn&&"withCredentials"in tn,m.ajax=tn=!!tn,A.ajaxTransport((function(e){var t,r;if(m.cors||tn&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o(en[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}})),A.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return A.globalEval(e),e}}}),A.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),A.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=A("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),w.head.appendChild(t[0])},abort:function(){n&&n()}}}));var nn=[],rn=/(=)\?(?=&|$)|\?\?/;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=nn.pop()||A.expando+"_"+Dt.guid++;return this[e]=!0,e}}),A.ajaxPrefilter("json jsonp",(function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(rn.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&rn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=b(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(rn,"$1"+i):!1!==e.jsonp&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||A.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?A(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,nn.push(i)),a&&b(o)&&o(a[0]),a=o=void 0})),"script"})),m.createHTMLDocument=function(){var e=w.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),A.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?(t=w.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=w.location.href,t.head.appendChild(r)):t=w),i=j.exec(e),o=!n&&[],i?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&A(o).remove(),A.merge([],i.childNodes)));var r,i,o},A.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=Et(e.slice(s)),e=e.slice(0,s)),b(t)?(n=t,t=void 0):t&&"object"===p(t)&&(i="POST"),a.length>0&&A.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?A("<div>").append(A.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},A.expr.pseudos.animated=function(e){return A.grep(A.timers,(function(t){return e===t.elem})).length},A.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,u,c=A.css(e,"position"),h=A(e),d={};"static"===c&&(e.style.position="relative"),s=h.offset(),o=A.css(e,"top"),l=A.css(e,"left"),u=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,u?(r=h.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),b(t)&&(t=t.call(e,n,A.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):h.css(d)}},A.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){A.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===A.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===A.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&(i=A(e).offset(),i.top+=A.css(e,"borderTopWidth",!0),i.left+=A.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-A.css(r,"marginTop",!0),left:t.left-i.left-A.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){var e=this.offsetParent;while(e&&"static"===A.css(e,"position"))e=e.offsetParent;return e||he}))}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;A.fn[e]=function(r){return Y(this,(function(e,r,i){var o;if(x(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),A.each(["top","left"],(function(e,t){A.cssHooks[t]=Ye(m.pixelPosition,(function(e,n){if(n)return n=Xe(e,t),Ue.test(n)?A(e).position()[t]+"px":n}))})),A.each({Height:"height",Width:"width"},(function(e,t){A.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){A.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!==typeof i),s=n||(!0===i||!0===o?"margin":"border");return Y(this,(function(t,n,i){var o;return x(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?A.css(t,n,s):A.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){A.fn[t]=function(e){return this.on(t,e)}})),A.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){A.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var on=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;A.proxy=function(e,t){var n,r,i;if("string"===typeof t&&(n=e[t],t=e,e=n),b(e))return r=l.call(arguments,2),i=function(){return e.apply(t||this,r.concat(l.call(arguments)))},i.guid=e.guid=e.guid||A.guid++,i},A.holdReady=function(e){e?A.readyWait++:A.ready(!0)},A.isArray=Array.isArray,A.parseJSON=JSON.parse,A.nodeName=N,A.isFunction=b,A.isWindow=x,A.camelCase=Q,A.type=E,A.now=Date.now,A.isNumeric=function(e){var t=A.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},A.trim=function(e){return null==e?"":(e+"").replace(on,"")},r=[],i=function(){return A}.apply(t,r),void 0===i||(e.exports=i);var an=n.jQuery,sn=n.$;return A.noConflict=function(e){return n.$===A&&(n.$=sn),e&&n.jQuery===A&&(n.jQuery=an),A},"undefined"===typeof o&&(n.jQuery=n.$=A),A}))},1216:function(e,t,n){var r=n("8449");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("1c69233b",r,!0,{sourceMap:!1,shadowMode:!1})},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("17c2"),s=n("9112"),l=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in i)i[u]&&l(r[u]&&r[u].prototype);l(o)},1626:function(e,t){e.exports=function(e){return"function"==typeof e}},1670:function(e,t,n){"use strict";n.r(t),n.d(t,"nodes",(function(){return i}));var r=n("32ba"),i=[];for(var o in r["default"]){var a=r["default"][o];i.push({label:a.label,styles:s(),shape:"html",url:n("ac43")("".concat(a.url)),urlStr:"".concat(a.urlName),group:"".concat(a.group),ports:a.ports,yAxis:a.yAxis,typeImgNo:o,width:a.width,height:a.height,defaultSpanStyle:a.defaultSpanStyle||""})}function s(){return{width:"50px",height:"50px",textAlign:"center",borderRadius:"4px",color:"#7D7671"}}},"17af":function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3cpath id='图层_3' data-name='图层 3' class='cls-1' d='M50,70.731A53.5,53.5,0,0,0,11.164,86.863,60.52,60.52,0,0,1,8.975,70.731C8.975,44.565,25.7,21.946,50,11.145c24.3,10.8,41.025,33.42,41.025,59.586a60.519,60.519,0,0,1-2.189,16.132A53.5,53.5,0,0,0,50,70.731Z'/%3e %3c/svg%3e"},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"19c8":function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Number.isInteger(e)?e:+e.toFixed(t)}function i(e,t){var n,r;if(null==t?(r=null==e?1:e,n=0):(r=t,n=null==e?0:e),r<n){var i=n;n=r,r=i}return Math.floor(Math.random()*(r-n+1)+n)}function o(e,t,n){return Number.isNaN(e)?NaN:Number.isNaN(t)||Number.isNaN(n)?0:t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}function a(e,t){return t*Math.round(e/t)}function s(e,t){return null!=t&&null!=e&&t.x>=e.x&&t.x<=e.x+e.width&&t.y>=e.y&&t.y<=e.y+e.height}function l(e,t){var n=e.x-t.x,r=e.y-t.y;return n*n+r*r}n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return l}))},"1a2d":function(e,t,n){var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},"1bc6":function(e,t,n){"use strict";var r=n("f0ce"),i=n("1147"),o="[object Symbol]";function a(e){return"symbol"==p(e)||Object(i["a"])(e)&&Object(r["a"])(e)==o}t["a"]=a},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1cdc":function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r={};n.r(r),n.d(r,"noop",(function(){return o})),n.d(r,"pinRelative",(function(){return d})),n.d(r,"pinAbsolute",(function(){return f}));var i=n("20d2"),o=function(e){return e},a=n("4283");function s(e,t){return 0===t?"0%":"".concat(Math.round(e/t*100),"%")}function l(e){var t=function(t,n,r,i){return n.isEdgeElement(r)?c(e,t,n,r,i):u(e,t,n,r,i)};return t}function u(e,t,n,r,i){var o=n.cell,l=o.getAngle(),u=n.getUnrotatedBBoxOfElement(r),c=o.getBBox().getCenter(),h=a["f"].create(i).rotate(l,c),d=h.x-u.x,f=h.y-u.y;return e&&(d=s(d,u.width),f=s(f,u.height)),t.anchor={name:"topLeft",args:{dx:d,dy:f,rotate:!0}},t}function c(e,t,n,r,i){var o=n.getConnection();if(!o)return t;var a=o.closestPointLength(i);if(e){var s=o.length();t.anchor={name:"ratio",args:{ratio:a/s}}}else t.anchor={name:"length",args:{length:a}};return t}var h,d=l(!0),f=l(!1);(function(e){e.presets=r,e.registry=i["a"].create({type:"connection strategy"}),e.registry.register(e.presets,!0)})(h||(h={}))},"1d80":function(e,t,n){var r=n("da84"),i=r.TypeError;e.exports=function(e){if(void 0==e)throw i("Can't call method on "+e);return e}},"1dde":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"20d2":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("bcd7"),i=function(){function e(t){f(this,e),this.options=Object.assign({},t),this.data=this.options.data||{},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this)}return g(e,[{key:"names",get:function(){return Object.keys(this.data)}},{key:"register",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("object"!==p(e)){!this.exist(e)||i||r["h"].isApplyingHMR()||this.onDuplicated(e);var o=this.options.process,a=o?r["d"].call(o,this,e,t):t;return this.data[e]=a,a}Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}},{key:"unregister",value:function(e){var t=e?this.data[e]:null;return delete this.data[e],t}},{key:"get",value:function(e){return e?this.data[e]:null}},{key:"exist",value:function(e){return!!e&&null!=this.data[e]}},{key:"onDuplicated",value:function(e){try{throw this.options.onConflict&&r["d"].call(this.options.onConflict,this,e),new Error("".concat(r["k"].upperFirst(this.options.type)," with name '").concat(e,"' already registered."))}catch(t){throw t}}},{key:"onNotFound",value:function(e,t){throw new Error(this.getSpellingSuggestion(e,t))}},{key:"getSpellingSuggestion",value:function(e,t){var n=this.getSpellingSuggestionForName(e),i=t?"".concat(t," ").concat(r["k"].lowerFirst(this.options.type)):this.options.type;return"".concat(r["k"].upperFirst(i)," with name '").concat(e,"' does not exist.").concat(n?" Did you mean '".concat(n,"'?"):"")}},{key:"getSpellingSuggestionForName",value:function(e){return r["k"].getSpellingSuggestion(e,Object.keys(this.data),(function(e){return e}))}}]),e}();(function(e){function t(t){return new e(t)}e.create=t})(i||(i={}))},2173:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return m})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return w})),n.d(t,"g",(function(){return C})),n.d(t,"f",(function(){return k}));var r=n("a146"),i=function(){function e(t,n,r,i){return f(this,e),null==t?this.set(255,255,255,1):"number"===typeof t?this.set(t,n,r,i):"string"===typeof t?e.fromString(t)||this:Array.isArray(t)?this.set(t):void this.set(t.r,t.g,t.b,null==t.a?1:t.a)}return g(e,[{key:"blend",value:function(e,t,n){this.set(e.r+(t.r-e.r)*n,e.g+(t.g-e.g)*n,e.b+(t.b-e.b)*n,e.a+(t.a-e.a)*n)}},{key:"lighten",value:function(t){var n=e.lighten(this.toArray(),t);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}},{key:"darken",value:function(e){this.lighten(-e)}},{key:"set",value:function(e,t,n,i){var o=Array.isArray(e)?e[0]:e,a=Array.isArray(e)?e[1]:t,s=Array.isArray(e)?e[2]:n,l=Array.isArray(e)?e[3]:i;return this.r=Math.round(r["a"].clamp(o,0,255)),this.g=Math.round(r["a"].clamp(a,0,255)),this.b=Math.round(r["a"].clamp(s,0,255)),this.a=null==l?1:r["a"].clamp(l,0,1),this}},{key:"toHex",value:function(){var e=this,t=["r","g","b"].map((function(t){var n=e[t].toString(16);return n.length<2?"0".concat(n):n}));return"#".concat(t.join(""))}},{key:"toRGBA",value:function(){return this.toArray()}},{key:"toHSLA",value:function(){return e.rgba2hsla(this.r,this.g,this.b,this.a)}},{key:"toCSS",value:function(e){var t="".concat(this.r,",").concat(this.g,",").concat(this.b,",");return e?"rgb(".concat(t,")"):"rgba(".concat(t,",").concat(this.a,")")}},{key:"toGrey",value:function(){return e.makeGrey(Math.round((this.r+this.g+this.b)/3),this.a)}},{key:"toArray",value:function(){return[this.r,this.g,this.b,this.a]}},{key:"toString",value:function(){return this.toCSS()}}]),e}();(function(e){function t(t){return new e(t)}function n(t){return new e([].concat(d(y(t)),[1]))}function i(t){var n=t.toLowerCase().match(/^rgba?\(([\s.,0-9]+)\)/);if(n){var r=n[1].split(/\s*,\s*/).map((function(e){return parseInt(e,10)}));return new e(r)}return null}function o(e,t,n){n<0&&++n,n>1&&--n;var r=6*n;return r<1?e+(t-e)*r:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function a(t){var n=t.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);if(n){var r=n[2].split(/\s*,\s*/),i=(parseFloat(r[0])%360+360)%360/360,o=parseFloat(r[1])/100,a=parseFloat(r[2])/100,s=null==r[3]?1:parseInt(r[3],10);return new e(c(i,o,a,s))}return null}function s(t){if(t.startsWith("#"))return n(t);if(t.startsWith("rgb"))return i(t);var r=e.named[t];return r?n(r):a(t)}function l(t,n){return e.fromArray([t,t,t,n])}function u(e,t,n,r){var i=Array.isArray(e)?e[0]:e,o=Array.isArray(e)?e[1]:t,a=Array.isArray(e)?e[2]:n,s=Array.isArray(e)?e[3]:r,l=Math.max(i,o,a),u=Math.min(i,o,a),c=(l+u)/2,h=0,d=0;if(u!==l){var f=l-u;switch(d=c>.5?f/(2-l-u):f/(l+u),l){case i:h=(o-a)/f+(o<a?6:0);break;case o:h=(a-i)/f+2;break;case a:h=(i-o)/f+4;break;default:break}h/=6}return[h,d,c,null==s?1:s]}function c(e,t,n,r){var i=Array.isArray(e)?e[0]:e,a=Array.isArray(e)?e[1]:t,s=Array.isArray(e)?e[2]:n,l=Array.isArray(e)?e[3]:r,u=s<=.5?s*(a+1):s+a-s*a,c=2*s-u;return[256*o(c,u,i+1/3),256*o(c,u,i),256*o(c,u,i-1/3),null==l?1:l]}function f(t){return new e(Math.round(256*Math.random()),Math.round(256*Math.random()),Math.round(256*Math.random()),t?void 0:parseFloat(Math.random().toFixed(2)))}function g(){for(var e="0123456789ABCDEF",t="#",n=0;n<6;n+=1)t+=e[Math.floor(16*Math.random())];return t}function p(e){return f(e).toString()}function v(e,t){if("string"===typeof e){var n="#"===e[0],r=y(e),i=h(r,3),o=i[0],a=i[1],s=i[2];return t?.299*o+.587*a+.114*s>186?"#000000":"#ffffff":"".concat(n?"#":"").concat(m(255-o,255-a,255-s))}var l=e[0],u=e[1],c=e[2],d=e[3];return t?.299*l+.587*u+.114*c>186?[0,0,0,d]:[255,255,255,d]:[255-l,255-u,255-c,d]}function y(e){var t=0===e.indexOf("#")?e:"#".concat(e),n=Number("0x".concat(t.substr(1)));if(4!==t.length&&7!==t.length||Number.isNaN(n))throw new Error("Invalid hex color.");var r=4===t.length?4:8,i=(1<<r)-1,o=["b","g","r"].map((function(){var e=n&i;return n>>=r,4===r?17*e:e}));return[o[2],o[1],o[0]]}function m(e,t,n){var r=function(e){return e.length<2?"0".concat(e):e};return"".concat(r(e.toString(16))).concat(r(t.toString(16))).concat(r(n.toString(16)))}function b(e,t){return w(e,t)}function x(e,t){return w(e,-t)}function w(e,t){if("string"===typeof e){var n="#"===e[0],i=parseInt(n?e.substr(1):e,16),o=r["a"].clamp((i>>16)+t,0,255),a=r["a"].clamp((i>>8&255)+t,0,255),s=r["a"].clamp((255&i)+t,0,255);return"".concat(n?"#":"").concat((s|a<<8|o<<16).toString(16))}var l=m(e[0],e[1],e[2]),u=y(w(l,t));return[u[0],u[1],u[2],e[3]]}e.fromArray=t,e.fromHex=n,e.fromRGBA=i,e.fromHSLA=a,e.fromString=s,e.makeGrey=l,e.rgba2hsla=u,e.hsla2rgba=c,e.random=f,e.randomHex=g,e.randomRGBA=p,e.invert=v,e.lighten=b,e.darken=x})(i||(i={})),function(e){e.named={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",burntsienna:"#ea7e5d",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}(i||(i={}));var o,a=n("bcd7"),s=function(){function e(){f(this,e),this.listeners={}}return g(e,[{key:"on",value:function(e,t,n){if(null==t)return this;this.listeners[e]||(this.listeners[e]=[]);var r=this.listeners[e];return r.push(t,n),this}},{key:"once",value:function(e,t,n){var r=this,i=function i(){r.off(e,i);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return o.call([t,n],s)};return this.on(e,i,this)}},{key:"off",value:function(e,t,n){if(!(e||t||n))return this.listeners={},this;var r=this.listeners,i=e?[e]:Object.keys(r);return i.forEach((function(e){var i=r[e];if(i)if(t||n)for(var o=i.length-2;o>=0;o-=2)t&&i[o]!==t||n&&i[o+1]!==n||i.splice(o,2);else delete r[e]})),this}},{key:"trigger",value:function(e){for(var t=!0,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if("*"!==e){var s=this.listeners[e];null!=s&&(t=o.call(d(s),r))}var l=this.listeners["*"];return null!=l?a["d"].toAsyncBoolean([t,o.call(d(l),[e].concat(r))]):t}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return this.trigger.apply(this,[e].concat(n))}}]),e}();(function(e){function t(e,t){for(var n=[],r=0;r<e.length;r+=2){var i=e[r],o=e[r+1],s=Array.isArray(t)?t:[t],l=a["d"].apply(i,o,s);n.push(l)}return a["d"].toAsyncBoolean(n)}e.call=t})(o||(o={}));var l=function(){function e(){f(this,e)}return g(e,[{key:"disposed",get:function(){return!0===this._disposed}},{key:"dispose",value:function(){this._disposed=!0}}]),e}();(function(e){function t(){return function(e,t,n){var r=n.value,i=e.__proto__;n.value=function(){this.disposed||(r.call(this),i.dispose.call(this))}}}e.dispose=t})(l||(l={}));var v=function(){function e(){f(this,e),this.isDisposed=!1,this.items=new Set}return g(e,[{key:"disposed",get:function(){return this.isDisposed}},{key:"dispose",value:function(){this.isDisposed||(this.isDisposed=!0,this.items.forEach((function(e){e.dispose()})),this.items.clear())}},{key:"contains",value:function(e){return this.items.has(e)}},{key:"add",value:function(e){this.items.add(e)}},{key:"remove",value:function(e){this.items.delete(e)}},{key:"clear",value:function(){this.items.clear()}}]),e}();(function(e){function t(t){var n=new e;return t.forEach((function(e){n.add(e)})),n}e.from=t})(v||(v={}));var y=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return n}(s);(function(e){e.dispose=l.dispose})(y||(y={})),a["g"].applyMixins(y,l);var m=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"disabled",get:function(){return!0===this._disabled}},{key:"enable",value:function(){delete this._disabled}},{key:"disable",value:function(){this._disabled=!0}}]),n}(y),b=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},x=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.call(this),e.clear(),e}return g(n,[{key:"clear",value:function(){this.map=new WeakMap,this.arr=[]}},{key:"has",value:function(e){return this.map.has(e)}},{key:"get",value:function(e){return this.map.get(e)}},{key:"set",value:function(e,t){this.map.set(e,t),this.arr.push(e)}},{key:"delete",value:function(e){var t=this.arr.indexOf(e);t>=0&&this.arr.splice(t,1);var n=this.map.get(e);return this.map.delete(e),n}},{key:"each",value:function(e){var t=this;this.arr.forEach((function(n){var r=t.map.get(n);e(r,n)}))}},{key:"dispose",value:function(){this.clear()}}]),n}(l);b([l.dispose()],x.prototype,"dispose",null);var w,C,k,E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,e),this.comparator=t.comparator||e.defaultComparator,this.index={},this.data=t.data||[],this.heapify()}return g(e,[{key:"isEmpty",value:function(){return 0===this.data.length}},{key:"insert",value:function(e,t,n){var r={priority:e,value:t},i=this.data.length-1;return n&&(r.id=n,this.index[n]=i),this.data.push(r),this.bubbleUp(i),this}},{key:"peek",value:function(){return this.data[0]?this.data[0].value:null}},{key:"peekPriority",value:function(){return this.data[0]?this.data[0].priority:null}},{key:"updatePriority",value:function(e,t){var n=this.index[e];if("undefined"===typeof n)throw new Error("Node with id '".concat(e,"' was not found in the heap."));var r=this.data,i=r[n].priority,o=this.comparator(t,i);o<0?(r[n].priority=t,this.bubbleUp(n)):o>0&&(r[n].priority=t,this.bubbleDown(n))}},{key:"remove",value:function(){var e=this.data,t=e[0],n=e.pop();return delete this.index[e.length],e.length>0&&(e[0]=n,n.id&&(this.index[n.id]=0),this.bubbleDown(0)),t?t.value:null}},{key:"heapify",value:function(){for(var e=0;e<this.data.length;e+=1)this.bubbleUp(e)}},{key:"bubbleUp",value:function(e){var t,n,r=this.data,i=e;while(i>0){if(n=i-1>>>1,!(this.comparator(r[i].priority,r[n].priority)<0))break;t=r[n],r[n]=r[i];var o=r[i].id;null!=o&&(this.index[o]=n),r[i]=t,o=r[i].id,null!=o&&(this.index[o]=i),i=n}}},{key:"bubbleDown",value:function(e){var t=this.data,n=t.length-1,r=e;while(1){var i=1+(r<<1),o=i+1,a=r;if(i<=n&&this.comparator(t[i].priority,t[a].priority)<0&&(a=i),o<=n&&this.comparator(t[o].priority,t[a].priority)<0&&(a=o),a===r)break;var s=t[a];t[a]=t[r];var l=t[r].id;null!=l&&(this.index[l]=a),t[r]=s,l=t[r].id,null!=l&&(this.index[l]=r),r=a}}}]),e}();(function(e){e.defaultComparator=function(e,t){return e-t}})(E||(E={})),function(e){function t(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return 1},r={},i={},o={},a=new E;r[t]=0,Object.keys(e).forEach((function(e){e!==t&&(r[e]=1/0),a.insert(r[e],e,e)}));while(!a.isEmpty()){var s=a.remove();o[s]=!0;for(var l=e[s]||[],u=0;u<l.length;u+=1){var c=l[u];if(!o[c]){var h=r[s]+n(s,c);h<r[c]&&(r[c]=h,i[c]=s,a.updatePriority(c,h))}}}return i}e.run=t}(w||(w={})),function(e){e.linear=function(e){return e},e.quad=function(e){return e*e},e.cubic=function(e){return e*e*e},e.inout=function(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)},e.exponential=function(e){return Math.pow(2,10*(e-1))},e.bounce=function(e){for(var t=0,n=1;1;t+=n,n/=2)if(e>=(7-4*t)/11){var r=(11-6*t-11*e)/4;return-r*r+n*n}}}(C||(C={})),function(e){e.decorators={reverse:function(e){return function(t){return 1-e(1-t)}},reflect:function(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}},clamp:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return function(r){var i=e(r);return i<t?t:i>n?n:i}},back:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(t){return t*t*((e+1)*t-e)}},elastic:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.5;return function(t){return Math.pow(2,10*(t-1))*Math.cos(20*Math.PI*e/3*t)}}}}(C||(C={})),function(e){function t(e){return-1*Math.cos(e*(Math.PI/2))+1}function n(e){return Math.sin(e*(Math.PI/2))}function r(e){return-.5*(Math.cos(Math.PI*e)-1)}function i(e){return e*e}function o(e){return e*(2-e)}function a(e){return e<.5?2*e*e:(4-2*e)*e-1}function s(e){return e*e*e}function l(e){var t=e-1;return t*t*t+1}function u(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}function c(e){return e*e*e*e}function h(e){var t=e-1;return 1-t*t*t*t}function d(e){var t=e-1;return e<.5?8*e*e*e*e:1-8*t*t*t*t}function f(e){return e*e*e*e*e}function g(e){var t=e-1;return 1+t*t*t*t*t}function p(e){var t=e-1;return e<.5?16*e*e*e*e*e:1+16*t*t*t*t*t}function v(e){return 0===e?0:Math.pow(2,10*(e-1))}function y(e){return 1===e?1:1-Math.pow(2,-10*e)}function m(e){if(0===e||1===e)return e;var t=2*e,n=t-1;return t<1?.5*Math.pow(2,10*n):.5*(2-Math.pow(2,-10*n))}function b(e){var t=e/1;return-1*(Math.sqrt(1-t*e)-1)}function x(e){var t=e-1;return Math.sqrt(1-t*t)}function w(e){var t=2*e,n=t-2;return t<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-n*n)+1)}function C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.70158;return e*e*((t+1)*e-t)}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.70158,n=e/1-1;return n*n*((t+1)*n+t)+1}function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1.70158,n=2*e,r=n-2,i=1.525*t;return n<1?.5*n*n*((i+1)*n-i):.5*(r*r*((i+1)*r+i)+2)}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.7;if(0===e||1===e)return e;var n=e/1,r=n-1,i=1-t,o=i/(2*Math.PI)*Math.asin(1);return-Math.pow(2,10*r)*Math.sin((r-o)*(2*Math.PI)/i)}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.7,n=1-t,r=2*e;if(0===e||1===e)return e;var i=n/(2*Math.PI)*Math.asin(1);return Math.pow(2,-10*r)*Math.sin((r-i)*(2*Math.PI)/n)+1}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.65,n=1-t;if(0===e||1===e)return e;var r=2*e,i=r-1,o=n/(2*Math.PI)*Math.asin(1);return r<1?Math.pow(2,10*i)*Math.sin((i-o)*(2*Math.PI)/n)*-.5:Math.pow(2,-10*i)*Math.sin((i-o)*(2*Math.PI)/n)*.5+1}function M(e){var t=e/1;if(t<1/2.75)return 7.5625*t*t;if(t<2/2.75){var n=t-1.5/2.75;return 7.5625*n*n+.75}if(t<2.5/2.75){var r=t-2.25/2.75;return 7.5625*r*r+.9375}var i=t-2.625/2.75;return 7.5625*i*i+.984375}function P(e){return 1-M(1-e)}function T(e){return e<.5?.5*P(2*e):.5*M(2*e-1)+.5}e.easeInSine=t,e.easeOutSine=n,e.easeInOutSine=r,e.easeInQuad=i,e.easeOutQuad=o,e.easeInOutQuad=a,e.easeInCubic=s,e.easeOutCubic=l,e.easeInOutCubic=u,e.easeInQuart=c,e.easeOutQuart=h,e.easeInOutQuart=d,e.easeInQuint=f,e.easeOutQuint=g,e.easeInOutQuint=p,e.easeInExpo=v,e.easeOutExpo=y,e.easeInOutExpo=m,e.easeInCirc=b,e.easeOutCirc=x,e.easeInOutCirc=w,e.easeInBack=C,e.easeOutBack=k,e.easeInOutBack=E,e.easeInElastic=S,e.easeOutElastic=A,e.easeInOutElastic=O,e.easeOutBounce=M,e.easeInBounce=P,e.easeInOutBounce=T}(C||(C={})),function(e){e.number=function(e,t){var n=t-e;return function(t){return e+n*t}},e.object=function(e,t){var n=Object.keys(e);return function(r){for(var i={},o=n.length-1;-1!==o;o-=1){var a=n[o];i[a]=e[a]+(t[a]-e[a])*r}return i}},e.unit=function(e,t){var n=/(-?[0-9]*.[0-9]*)(px|em|cm|mm|in|pt|pc|%)/,r=n.exec(e),i=n.exec(t),o=i?i[1]:"",a=r?+r[1]:0,s=i?+i[1]:0,l=o.indexOf("."),u=l>0?o[1].length-l-1:0,c=s-a,h=r?r[2]:"";return function(e){return(a+c*e).toFixed(u)+h}},e.color=function(e,t){var n=parseInt(e.slice(1),16),r=parseInt(t.slice(1),16),i=255&n,o=(255&r)-i,a=65280&n,s=(65280&r)-a,l=16711680&n,u=(16711680&r)-l;return function(e){var t=i+o*e&255,n=a+s*e&65280,r=l+u*e&16711680;return"#".concat((1<<24|t|n|r).toString(16).slice(1))}}}(k||(k={}));var S,A=n("a082");(function(e){var t="".concat(A["a"].prefixCls,".storage");function n(e,t,n){var r=t.id||a["k"].uniqueId("doc-"),i=u(e);i.keys.push(r),s(c(e,r),t),s(h(e),i),o(n,null,Object.assign(Object.assign({},t),{id:r}))}function r(e,t,n){var r=u(e),i=[];if(null==t)r.keys.forEach((function(t){var r=l(c(e,t));r?i.push(r):o(n,new Error("No document found for an ID '".concat(t,"' from index.")))})),o(n,null,i);else if(t.id){var a=l(c(e,t.id));o(n,null,a?[a]:[])}else o(n,null,[])}function i(e,t,n){var r=u(e);if(null==t)r.keys.forEach((function(t){localStorage.removeItem(c(e,t))})),localStorage.removeItem(h(e)),o(n,null);else if(t.id){var i=r.keys.indexOf(t.id);i>=0&&r.keys.splice(i,1),localStorage.removeItem(c(e,t.id)),s(h(e),r),o(n,null)}}function o(e,t,n){e&&a["d"].defer((function(){e(t,n)}))}function s(e,t){localStorage.setItem(e,JSON.stringify(t))}function l(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}function u(e){var t=l(h(e));return t?(null==t.keys&&(t.keys=[]),t):{keys:[]}}function c(e,n){return"".concat(t,".").concat(e,".docs.").concat(n)}function h(e){return"".concat(t,".").concat(e,".index")}e.insert=n,e.find=r,e.remove=i})(S||(S={}))},2332:function(e,t,n){"use strict";function r(e){var t=p(e);return null!=e&&("object"==t||"function"==t)}t["a"]=r},"23cb":function(e,t,n){var r=n("5926"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),l=n("e893"),u=n("94ca");e.exports=function(e,t){var n,c,h,d,f,g,v=e.target,y=e.global,m=e.stat;if(c=y?r:m?r[v]||s(v,{}):(r[v]||{}).prototype,c)for(h in t){if(f=t[h],e.noTargetGet?(g=i(c,h),d=g&&g.value):d=c[h],n=u(y?h:v+(m?".":"#")+h,e.forced),!n&&void 0!==d){if(p(f)==p(d))continue;l(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(c,h,f,e)}}},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"24fb":function(e,t,n){"use strict";function r(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var o=i(r),a=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}function i(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t);return"/*# ".concat(n," */")}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=r(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"===typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var l=[].concat(e[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),t.push(l))}},t}},"26ce":function(e,t,n){"use strict";var r=9007199254740991;function i(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}t["a"]=i},"26ee":function(e,t,n){"use strict";var r=n("5ea3"),i="object"==("undefined"===typeof self?"undefined":p(self))&&self&&self.Object===Object&&self,o=r["a"]||i||Function("return this")();t["a"]=o},2832:function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; %7d %3c/style%3e %3c/defs%3e %3crect id='形状_4' data-name='形状 4' class='cls-1' x='2' y='35' width='96' height='30' rx='15' ry='15'/%3e %3c/svg%3e"},"2b97":function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3cpath id='形状_6' data-name='形状 6' class='cls-1' d='M10.363,15.224H90.4L50.381,84.537Z'/%3e %3c/svg%3e"},"2ba4":function(e,t){var n=Function.prototype,r=n.apply,i=n.bind,o=n.call;e.exports="object"==("undefined"===typeof Reflect?"undefined":p(Reflect))&&Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},"2c57":function(e,t,n){"use strict";var r=n("ca54"),i=n("b703"),o=n("ff51"),a=n("1bc6"),s=1/0,l=r["a"]?r["a"].prototype:void 0,u=l?l.toString:void 0;function c(e){if("string"==typeof e)return e;if(Object(o["a"])(e))return Object(i["a"])(e,c)+"";if(Object(a["a"])(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}t["a"]=c},"2d00":function(e,t,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},"2f74":function(e,t,n){"use strict";function r(){return!1}t["a"]=r},3079:function(e,t,n){"use strict";n("eb0a")},"32ba":function(e,t,n){"use strict";n.r(t);n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");var r=n("ade3");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var a=[{args:{x:"50%",y:0}},{args:{x:"50%",y:"100%"}},{args:{x:0,y:"50%"}},{args:{x:"100%",y:"50%"}}],s="margin: 0px;\nwidth: 45%;\nheight: 12%;\nbackground: transparent;\noutline: none;\nborder: none;\ndisplay: flex;\njustify-content: center;\nalign-items: center;\noverflow-wrap: break-word;\nposition: absolute;\ntop: 43.5%;\nleft: 50%;",l="    margin: 0px;\nwidth: 45%;\nheight: 12%;\nbackground: transparent;\noutline: none;\nborder: none;\ndisplay: flex;\njustify-content: center;\nalign-items: center;\noverflow-wrap: break-word;\nposition: absolute;\ntop: 44.5%;\nleft: 45%;",u={width:100,height:100};t["default"]={img1:o({label:"基本事件",urlName:"base",url:"./imgNode/base.svg",group:"group1",ports:a},u),img2:o({label:"未探明事件",url:"./imgNode/unknown.svg",urlName:"unknown",group:"group4",ports:[{args:{x:"50%",y:"26%"}},{args:{x:"50%",y:"74%"}},{args:{x:"5%",y:"50%"}},{args:{x:"95%",y:"50%"}}]},u),img3:o({label:"与门",urlName:"and",url:"./imgNode/and.svg",group:"group6",ports:[{args:{x:"50%",y:"16%"}},{args:{x:"50%",y:"80%"}},{args:{x:"26%",y:"50%"}},{args:{x:"74%",y:"50%"}}]},u),img4:o({label:"或门",urlName:"or",url:"./imgNode/or.svg",group:"group7",ports:[{args:{x:"50%",y:"10%"}},{args:{x:"50%",y:"70%"}},{args:{x:"14%",y:"50%"}},{args:{x:"86%",y:"50%"}}]},u),img5:o({label:"相同转移符号",url:"./imgNode/turn.svg",group:"group5",urlName:"turn",ports:[{args:{x:"50%",y:"16%"}},{args:{x:"50%",y:"84%"}},{args:{x:"30%",y:"50%"}},{args:{x:"70%",y:"50%"}}]},u),img6:o({label:"相似转移符号",url:"./imgNode/similar.svg",group:"group5",urlName:"similar",ports:[{args:{x:"50%",y:"16%"}},{args:{x:"50%",y:"84%"}},{args:{x:"30%",y:"50%"}},{args:{x:"70%",y:"50%"}}]},u),img7:o({label:"开关事件",urlName:"switchNode",url:"./imgNode/switch.svg",group:"group3",ports:[{args:{x:"50%",y:"8%"}},{args:{x:"50%",y:"92%"}},{args:{x:"20%",y:"50%"}},{args:{x:"80%",y:"50%"}}]},u),img8:o({label:"条件事件",urlName:"condition",url:"./imgNode/condition.svg",group:"group2",ports:[{args:{x:"50%",y:"36%"}},{args:{x:"50%",y:"64%"}},{args:{x:"3%",y:"50%"}},{args:{x:"97%",y:"50%"}}]},u),img9:o({label:"禁门",urlName:"ban",url:"./imgNode/ban.svg",group:"group8",ports:[{args:{x:"50%",y:"8%"}},{args:{x:"50%",y:"92%"}},{args:{x:"10%",y:"50%"}},{args:{x:"90%",y:"50%"}}]},u),img10:o({label:"结果事件",urlName:"result",url:"./imgNode/result.svg",group:"group9",ports:[{args:{x:"50%",y:"30%"}},{args:{x:"50%",y:"70%"}},{args:{x:"8%",y:"50%"}},{args:{x:"90%",y:"50%"}}]},u),img11:o({label:"非门",urlName:"not",url:"./imgNode/not.svg",group:"group10",ports:[{args:{x:"50%",y:"10%"}},{args:{x:"50%",y:"90%"}},{args:{x:"28%",y:"50%"}},{args:{x:"70%",y:"50%"}}]},u),img12:o({label:"表决门",urlName:"vote",url:"./imgNode/vote.svg",group:"group11",ports:[{args:{x:"50%",y:"12%"}},{args:{x:"50%",y:"88%"}},{args:{x:"14%",y:"50%"}},{args:{x:"86%",y:"50%"}}]},u),img13:o({label:"禁门",urlName:"banCondition",url:"./imgNode/ban-condition.svg",group:"group12",defaultSpanStyle:s,ports:[{args:{x:"23%",y:"28%"}},{args:{x:"23%",y:"72%"}},{args:{x:"3%",y:"50%"}}]},u),img14:o({label:"异或门",urlName:"andOr",url:"./imgNode/and-or.svg",group:"group13",defaultSpanStyle:s,ports:[{args:{x:"25%",y:"30%"}},{args:{x:"25%",y:"60%"}},{args:{x:"8%",y:"46%"}}]},u),img15:o({label:"顺序与门",urlName:"andCondition",url:"./imgNode/and-condition.svg",group:"group14",defaultSpanStyle:l,ports:[{args:{x:"22%",y:"30%"}},{args:{x:"22%",y:"70%"}},{args:{x:"8%",y:"50%"}}]},u)}},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"37e8":function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("825a"),a=n("fc6a"),s=n("df75");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=a(t),l=s(t),u=l.length,c=0;while(u>c)i.f(e,n=l[c++],r[n]);return e}},"3a9b":function(e,t,n){var r=n("e330");e.exports=r({}.isPrototypeOf)},"3b2c":function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("4283"),i=n("bcd7"),o=n("8010"),a=n("51e4"),s=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"onRender",value:function(){i["c"].addClass(this.container,this.prefixClassName("cell-tool-button")),this.update()}},{key:"update",value:function(){return this.updatePosition(),this}},{key:"updatePosition",value:function(){var e=this.cellView,t=e.cell.isEdge()?this.getEdgeMatrix():this.getNodeMatrix();i["c"].transform(this.container,t,{absolute:!0})}},{key:"getNodeMatrix",value:function(){var e=this.cellView,t=this.options,n=t.x,r=void 0===n?0:n,o=t.y,s=void 0===o?0:o,l=t.offset,u=t.useCellGeometry,c=t.rotate,h=a["b"](e,u),d=e.cell.getAngle();c||(h=h.bbox(d));var f=0,g=0;"number"===typeof l?(f=l,g=l):"object"===p(l)&&(f=l.x,g=l.y),r=i["f"].normalizePercentage(r,h.width),s=i["f"].normalizePercentage(s,h.height);var v=i["c"].createSVGMatrix().translate(h.x+h.width/2,h.y+h.height/2);return c&&(v=v.rotate(d)),v=v.translate(r+f-h.width/2,s+g-h.height/2),v}},{key:"getEdgeMatrix",value:function(){var e,t,n,o=this.cellView,a=this.options,s=a.offset,l=void 0===s?0:s,u=a.distance,c=void 0===u?0:u,h=a.rotate;e=i["f"].isPercentage(c)?o.getTangentAtRatio(parseFloat(c)/100):o.getTangentAtLength(c),e?(t=e.start,n=e.vector().vectorAngle(new r["f"](1,0))||0):(t=o.getConnection().start,n=0);var d=i["c"].createSVGMatrix().translate(t.x,t.y).rotate(n);return d="object"===p(l)?d.translate(l.x||0,l.y||0):d.translate(0,l),h||(d=d.rotate(-n)),d}},{key:"onMouseDown",value:function(e){if(!this.guard(e)){e.stopPropagation(),e.preventDefault();var t=this.options.onClick;"function"===typeof t&&i["d"].call(t,this.cellView,{e:e,view:this.cellView,cell:this.cellView.cell,btn:this})}}}]),n}(o["a"].ToolItem);(function(e){e.config({name:"button",events:{mousedown:"onMouseDown",touchstart:"onMouseDown"}})})(s||(s={})),function(e){e.Remove=e.define({name:"button-remove",markup:[{tagName:"circle",selector:"button",attrs:{r:7,fill:"#FF1D00",cursor:"pointer"}},{tagName:"path",selector:"icon",attrs:{d:"M -3 -3 3 3 M -3 3 3 -3",fill:"none",stroke:"#FFFFFF","stroke-width":2,"pointer-events":"none"}}],distance:60,offset:0,onClick:function(e){var t=e.view,n=e.btn;n.parent.remove(),t.cell.remove({ui:!0,toolId:n.cid})}})}(s||(s={}))},"3c41":function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3cpath id='图层_1_拷贝' data-name='图层 1 拷贝' class='cls-1' d='M85.6,44.81V87.757H14.673V44.81S16.482,17.854,50,13C82.023,16.458,85.6,44.81,85.6,44.81Z'/%3e %3c/svg%3e"},"3ed0":function(e,t){e.exports="data:image/svg+xml,%3csvg id='组_5' data-name='组 5' xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100'%3e %3cdefs%3e %3cstyle%3e .cls-1, .cls-2 %7b fill: none; stroke: %23000; stroke-width: 2px; %7d .cls-1 %7b fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3cpath id='多边形_1' data-name='多边形 1' class='cls-1' d='M84.678,28.655L84.3,72.619,44.782,94.282,5.649,71.981,6.029,28.016,45.544,6.353Z'/%3e %3crect id='形状_4' data-name='形状 4' class='cls-2' x='98' y='35' width='96' height='30' rx='15' ry='15'/%3e %3crect id='矩形_2' data-name='矩形 2' x='85' y='49' width='13' height='2'/%3e %3c/svg%3e"},4283:function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return v})),n.d(t,"h",(function(){return s})),n.d(t,"e",(function(){return z})),n.d(t,"b",(function(){return m})),n.d(t,"g",(function(){return y})),function(e){function t(e){return 180*e/Math.PI%360}function n(e){return e%360+(e<0?360:0)}e.toDeg=t,e.toRad=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?e:e%360;return n*Math.PI/180},e.normalize=n}(r||(r={}));var i=n("19c8"),o=function(){function e(){f(this,e)}return g(e,[{key:"valueOf",value:function(){return this.toJSON()}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}(),a=function(e,t){u(o,e);var n=c(o);function o(e,t){var r;return f(this,o),r=n.call(this),r.x=null==e?0:e,r.y=null==t?0:t,r}return g(o,[{key:t,get:function(){return o.toStringTag}},{key:"round",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.x=i["d"](this.x,e),this.y=i["d"](this.y,e),this}},{key:"add",value:function(e,t){var n=o.create(e,t);return this.x+=n.x,this.y+=n.y,this}},{key:"update",value:function(e,t){var n=o.create(e,t);return this.x=n.x,this.y=n.y,this}},{key:"translate",value:function(e,t){var n=o.create(e,t);return this.x+=n.x,this.y+=n.y,this}},{key:"rotate",value:function(e,t){var n=o.rotate(this,e,t);return this.x=n.x,this.y=n.y,this}},{key:"scale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new o,r=o.create(n);return this.x=r.x+e*(this.x-r.x),this.y=r.y+t*(this.y-r.y),this}},{key:"closest",value:function(e){var t=this;if(1===e.length)return o.create(e[0]);var n=null,r=1/0;return e.forEach((function(e){var i=t.squaredDistance(e);i<r&&(n=e,r=i)})),n?o.create(n):null}},{key:"distance",value:function(e){return Math.sqrt(this.squaredDistance(e))}},{key:"squaredDistance",value:function(e){var t=o.create(e),n=this.x-t.x,r=this.y-t.y;return n*n+r*r}},{key:"manhattanDistance",value:function(e){var t=o.create(e);return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}},{key:"magnitude",value:function(){return Math.sqrt(this.x*this.x+this.y*this.y)||.01}},{key:"theta",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o,t=o.create(e),n=-(t.y-this.y),r=t.x-this.x,i=Math.atan2(n,r);return i<0&&(i=2*Math.PI+i),180*i/Math.PI}},{key:"angleBetween",value:function(e,t){if(this.equals(e)||this.equals(t))return NaN;var n=this.theta(t)-this.theta(e);return n<0&&(n+=360),n}},{key:"vectorAngle",value:function(e){var t=new o(0,0);return t.angleBetween(this,e)}},{key:"toPolar",value:function(e){return this.update(o.toPolar(this,e)),this}},{key:"changeInAngle",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new o;return this.clone().translate(-e,-t).theta(n)-this.theta(n)}},{key:"adhereToRect",value:function(e){return i["b"](e,this)||(this.x=Math.min(Math.max(this.x,e.x),e.x+e.width),this.y=Math.min(Math.max(this.y,e.y),e.y+e.height)),this}},{key:"bearing",value:function(e){var t=o.create(e),n=r.toRad(this.y),i=r.toRad(t.y),a=this.x,s=t.x,l=r.toRad(s-a),u=Math.sin(l)*Math.cos(i),c=Math.cos(n)*Math.sin(i)-Math.sin(n)*Math.cos(i)*Math.cos(l),h=r.toDeg(Math.atan2(u,c)),d=["NE","E","SE","S","SW","W","NW","N"],f=h-22.5;return f<0&&(f+=360),f=parseInt(f/45,10),d[f]}},{key:"cross",value:function(e,t){if(null!=e&&null!=t){var n=o.create(e),r=o.create(t);return(r.x-this.x)*(n.y-this.y)-(r.y-this.y)*(n.x-this.x)}return NaN}},{key:"dot",value:function(e){var t=o.create(e);return this.x*t.x+this.y*t.y}},{key:"diff",value:function(e,t){if("number"===typeof e)return new o(this.x-e,this.y-t);var n=o.create(e);return new o(this.x-n.x,this.y-n.y)}},{key:"lerp",value:function(e,t){var n=o.create(e);return new o((1-t)*this.x+t*n.x,(1-t)*this.y+t*n.y)}},{key:"normalize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=e/this.magnitude();return this.scale(t,t)}},{key:"move",value:function(e,t){var n=o.create(e),i=r.toRad(n.theta(this));return this.translate(Math.cos(i)*t,-Math.sin(i)*t)}},{key:"reflection",value:function(e){return o.create(e).move(this,this.distance(e))}},{key:"snapToGrid",value:function(e,t){return this.x=i["e"](this.x,e),this.y=i["e"](this.y,null==t?e:t),this}},{key:"equals",value:function(e){var t=o.create(e);return null!=t&&t.x===this.x&&t.y===this.y}},{key:"clone",value:function(){return o.clone(this)}},{key:"toJSON",value:function(){return o.toJSON(this)}},{key:"serialize",value:function(){return"".concat(this.x," ").concat(this.y)}}]),o}(o,Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"number"===typeof r.x&&"number"===typeof r.y&&"function"===typeof r.toPolar}e.toStringTag="X6.Geometry.".concat(e.name),e.isPoint=t})(a||(a={})),function(e){function t(e){return null!=e&&"object"===p(e)&&"number"===typeof e.x&&"number"===typeof e.y}function n(e){return null!=e&&Array.isArray(e)&&2===e.length&&"number"===typeof e[0]&&"number"===typeof e[1]}e.isPointLike=t,e.isPointData=n}(a||(a={})),function(e){function t(t,r){return null==t||"number"===typeof t?new e(t,r):n(t)}function n(t){return e.isPoint(t)?new e(t.x,t.y):Array.isArray(t)?new e(t[0],t[1]):new e(t.x,t.y)}function o(t){return e.isPoint(t)?{x:t.x,y:t.y}:Array.isArray(t)?{x:t[0],y:t[1]}:{x:t.x,y:t.y}}function a(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new e,a=Math.abs(t*Math.cos(i)),s=Math.abs(t*Math.sin(i)),l=n(o),u=r.normalize(r.toDeg(i));return u<90?s=-s:u<180?(a=-a,s=-s):u<270&&(a=-a),new e(l.x+a,l.y+s)}function s(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new e,o=n(t),a=n(i),s=o.x-a.x,l=o.y-a.y;return new e(Math.sqrt(s*s+l*l),r.toRad(a.theta(o)))}function l(e,t){return e===t||null!=e&&null!=t&&(e.x===t.x&&e.y===t.y)}function u(e,t){if(null==e&&null!=t||null!=e&&null==t||null!=e&&null!=t&&e.length!==t.length)return!1;if(null!=e&&null!=t)for(var n=0,r=e.length;n<r;n+=1)if(!l(e[n],t[n]))return!1;return!0}function c(t,n,r,o){return new e(i["c"](t,n),i["c"](r,o))}function h(e,t,n){var i=r.toRad(r.normalize(-t)),o=Math.sin(i),a=Math.cos(i);return d(e,a,o,n)}function d(t,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new e,a=n(t),s=n(o),l=a.x-s.x,u=a.y-s.y,c=l*r-u*i,h=u*r+l*i;return new e(c+s.x,h+s.y)}e.create=t,e.clone=n,e.toJSON=o,e.fromPolar=a,e.toPolar=s,e.equals=l,e.equalPoints=u,e.random=c,e.rotate=h,e.rotateEx=d}(a||(a={}));var s=function(e,t){u(o,e);var n=c(o);function o(e,t,r,i){var a;return f(this,o),a=n.call(this),a.x=null==e?0:e,a.y=null==t?0:t,a.width=null==r?0:r,a.height=null==i?0:i,a}return g(o,[{key:t,get:function(){return o.toStringTag}},{key:"left",get:function(){return this.x}},{key:"top",get:function(){return this.y}},{key:"right",get:function(){return this.x+this.width}},{key:"bottom",get:function(){return this.y+this.height}},{key:"origin",get:function(){return new a(this.x,this.y)}},{key:"topLeft",get:function(){return new a(this.x,this.y)}},{key:"topCenter",get:function(){return new a(this.x+this.width/2,this.y)}},{key:"topRight",get:function(){return new a(this.x+this.width,this.y)}},{key:"center",get:function(){return new a(this.x+this.width/2,this.y+this.height/2)}},{key:"bottomLeft",get:function(){return new a(this.x,this.y+this.height)}},{key:"bottomCenter",get:function(){return new a(this.x+this.width/2,this.y+this.height)}},{key:"bottomRight",get:function(){return new a(this.x+this.width,this.y+this.height)}},{key:"corner",get:function(){return new a(this.x+this.width,this.y+this.height)}},{key:"rightMiddle",get:function(){return new a(this.x+this.width,this.y+this.height/2)}},{key:"leftMiddle",get:function(){return new a(this.x,this.y+this.height/2)}},{key:"topLine",get:function(){return new h(this.topLeft,this.topRight)}},{key:"rightLine",get:function(){return new h(this.topRight,this.bottomRight)}},{key:"bottomLine",get:function(){return new h(this.bottomLeft,this.bottomRight)}},{key:"leftLine",get:function(){return new h(this.topLeft,this.bottomLeft)}},{key:"getOrigin",value:function(){return this.origin}},{key:"getTopLeft",value:function(){return this.topLeft}},{key:"getTopCenter",value:function(){return this.topCenter}},{key:"getTopRight",value:function(){return this.topRight}},{key:"getCenter",value:function(){return this.center}},{key:"getCenterX",value:function(){return this.x+this.width/2}},{key:"getCenterY",value:function(){return this.y+this.height/2}},{key:"getBottomLeft",value:function(){return this.bottomLeft}},{key:"getBottomCenter",value:function(){return this.bottomCenter}},{key:"getBottomRight",value:function(){return this.bottomRight}},{key:"getCorner",value:function(){return this.corner}},{key:"getRightMiddle",value:function(){return this.rightMiddle}},{key:"getLeftMiddle",value:function(){return this.leftMiddle}},{key:"getTopLine",value:function(){return this.topLine}},{key:"getRightLine",value:function(){return this.rightLine}},{key:"getBottomLine",value:function(){return this.bottomLine}},{key:"getLeftLine",value:function(){return this.leftLine}},{key:"bbox",value:function(e){if(!e)return this.clone();var t=r.toRad(e),n=Math.abs(Math.sin(t)),i=Math.abs(Math.cos(t)),a=this.width*i+this.height*n,s=this.width*n+this.height*i;return new o(this.x+(this.width-a)/2,this.y+(this.height-s)/2,a,s)}},{key:"round",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.x=i["d"](this.x,e),this.y=i["d"](this.y,e),this.width=i["d"](this.width,e),this.height=i["d"](this.height,e),this}},{key:"add",value:function(e,t,n,r){var i=o.create(e,t,n,r),a=Math.min(this.x,i.x),s=Math.min(this.y,i.y),l=Math.max(this.x+this.width,i.x+i.width),u=Math.max(this.y+this.height,i.y+i.height);return this.x=a,this.y=s,this.width=l-a,this.height=u-s,this}},{key:"update",value:function(e,t,n,r){var i=o.create(e,t,n,r);return this.x=i.x,this.y=i.y,this.width=i.width,this.height=i.height,this}},{key:"inflate",value:function(e,t){var n=e,r=null!=t?t:e;return this.x-=n,this.y-=r,this.width+=2*n,this.height+=2*r,this}},{key:"snapToGrid",value:function(e,t){var n=this.origin.snapToGrid(e,t),r=this.corner.snapToGrid(e,t);return this.x=n.x,this.y=n.y,this.width=r.x-n.x,this.height=r.y-n.y,this}},{key:"translate",value:function(e,t){var n=a.create(e,t);return this.x+=n.x,this.y+=n.y,this}},{key:"scale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new a,r=this.origin.scale(e,t,n);return this.x=r.x,this.y=r.y,this.width*=e,this.height*=t,this}},{key:"rotate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getCenter();if(0!==e){var n=r.toRad(e),i=Math.cos(n),s=Math.sin(n),l=this.getOrigin(),u=this.getTopRight(),c=this.getBottomRight(),h=this.getBottomLeft();l=a.rotateEx(l,i,s,t),u=a.rotateEx(u,i,s,t),c=a.rotateEx(c,i,s,t),h=a.rotateEx(h,i,s,t);var d=new o(l.x,l.y,0,0);d.add(u.x,u.y,0,0),d.add(c.x,c.y,0,0),d.add(h.x,h.y,0,0),this.update(d)}return this}},{key:"rotate90",value:function(){var e=(this.width-this.height)/2;this.x+=e,this.y-=e;var t=this.width;return this.width=this.height,this.height=t,this}},{key:"moveAndExpand",value:function(e){var t=o.clone(e);return this.x+=t.x||0,this.y+=t.y||0,this.width+=t.width||0,this.height+=t.height||0,this}},{key:"getMaxScaleToFit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.center,n=o.clone(e),r=t.x,i=t.y,a=1/0,s=1/0,l=1/0,u=1/0,c=1/0,h=1/0,d=1/0,f=1/0,g=n.topLeft;g.x<r&&(a=(this.x-r)/(g.x-r)),g.y<i&&(c=(this.y-i)/(g.y-i));var p=n.bottomRight;p.x>r&&(s=(this.x+this.width-r)/(p.x-r)),p.y>i&&(h=(this.y+this.height-i)/(p.y-i));var v=n.topRight;v.x>r&&(l=(this.x+this.width-r)/(v.x-r)),v.y<i&&(d=(this.y-i)/(v.y-i));var y=n.bottomLeft;return y.x<r&&(u=(this.x-r)/(y.x-r)),y.y>i&&(f=(this.y+this.height-i)/(y.y-i)),{sx:Math.min(a,s,l,u),sy:Math.min(c,h,d,f)}}},{key:"getMaxUniformScaleToFit",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.center,n=this.getMaxScaleToFit(e,t);return Math.min(n.sx,n.sy)}},{key:"containsPoint",value:function(e,t){return i["b"](this,a.create(e,t))}},{key:"containsRect",value:function(e,t,n,r){var i=o.create(e,t,n,r),a=this.x,s=this.y,l=this.width,u=this.height,c=i.x,h=i.y,d=i.width,f=i.height;return 0!==l&&0!==u&&0!==d&&0!==f&&(c>=a&&h>=s&&c+d<=a+l&&h+f<=s+u)}},{key:"intersectsWithLine",value:function(e){var t=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],n=[],r=[];return t.forEach((function(t){var i=e.intersectsWithLine(t);null!==i&&r.indexOf(i.toString())<0&&(n.push(i),r.push(i.toString()))})),n.length>0?n:null}},{key:"intersectsWithLineFromCenterToPoint",value:function(e,t){var n=a.clone(e),r=this.center,i=null;null!=t&&0!==t&&n.rotate(t,r);for(var o=[this.topLine,this.rightLine,this.bottomLine,this.leftLine],s=new h(r,n),l=o.length-1;l>=0;l-=1){var u=o[l].intersectsWithLine(s);if(null!==u){i=u;break}}return i&&null!=t&&0!==t&&i.rotate(-t,r),i}},{key:"intersectsWithRect",value:function(e,t,n,r){var i=o.create(e,t,n,r);if(!this.isIntersectWithRect(i))return null;var a=this.origin,s=this.corner,l=i.origin,u=i.corner,c=Math.max(a.x,l.x),h=Math.max(a.y,l.y);return new o(c,h,Math.min(s.x,u.x)-c,Math.min(s.y,u.y)-h)}},{key:"isIntersectWithRect",value:function(e,t,n,r){var i=o.create(e,t,n,r),a=this.origin,s=this.corner,l=i.origin,u=i.corner;return!(u.x<=a.x||u.y<=a.y||l.x>=s.x||l.y>=s.y)}},{key:"normalize",value:function(){var e=this.x,t=this.y,n=this.width,r=this.height;return this.width<0&&(e=this.x+this.width,n=-this.width),this.height<0&&(t=this.y+this.height,r=-this.height),this.x=e,this.y=t,this.width=n,this.height=r,this}},{key:"union",value:function(e){var t=o.clone(e),n=this.origin,r=this.corner,i=t.origin,a=t.corner,s=Math.min(n.x,i.x),l=Math.min(n.y,i.y),u=Math.max(r.x,a.x),c=Math.max(r.y,a.y);return new o(s,l,u-s,c-l)}},{key:"getNearestSideToPoint",value:function(e){var t=a.clone(e),n=t.x-this.x,r=this.x+this.width-t.x,i=t.y-this.y,o=this.y+this.height-t.y,s=n,l="left";return r<s&&(s=r,l="right"),i<s&&(s=i,l="top"),o<s&&(l="bottom"),l}},{key:"getNearestPointToPoint",value:function(e){var t=a.clone(e);if(this.containsPoint(t)){var n=this.getNearestSideToPoint(t);switch(n){case"right":return new a(this.x+this.width,t.y);case"left":return new a(this.x,t.y);case"bottom":return new a(t.x,this.y+this.height);case"top":return new a(t.x,this.y);default:break}}return t.adhereToRect(this)}},{key:"equals",value:function(e){return null!=e&&e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}},{key:"clone",value:function(){return new o(this.x,this.y,this.width,this.height)}},{key:"toJSON",value:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},{key:"serialize",value:function(){return"".concat(this.x," ").concat(this.y," ").concat(this.width," ").concat(this.height)}}]),o}(o,Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"number"===typeof r.x&&"number"===typeof r.y&&"number"===typeof r.width&&"number"===typeof r.height&&"function"===typeof r.inflate&&"function"===typeof r.moveAndExpand}e.toStringTag="X6.Geometry.".concat(e.name),e.isRectangle=t})(s||(s={})),function(e){function t(e){return null!=e&&"object"===p(e)&&"number"===typeof e.x&&"number"===typeof e.y&&"number"===typeof e.width&&"number"===typeof e.height}e.isRectangleLike=t}(s||(s={})),function(e){function t(t,r,i,o){return null==t||"number"===typeof t?new e(t,r,i,o):n(t)}function n(t){return e.isRectangle(t)?t.clone():Array.isArray(t)?new e(t[0],t[1],t[2],t[3]):new e(t.x,t.y,t.width,t.height)}function r(t){return new e(0,0,t.width,t.height)}function i(t,n){return new e(t.x,t.y,n.width,n.height)}function o(t){return new e(t.x-t.a,t.y-t.b,2*t.a,2*t.b)}e.create=t,e.clone=n,e.fromSize=r,e.fromPositionAndSize=i,e.fromEllipse=o}(s||(s={}));var h=function(e,t){u(r,e);var n=c(r);function r(e,t,i,o){var s;return f(this,r),s=n.call(this),"number"===typeof e&&"number"===typeof t?(s.start=new a(e,t),s.end=new a(i,o)):(s.start=a.create(e),s.end=a.create(t)),s}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"center",get:function(){return new a((this.start.x+this.end.x)/2,(this.start.y+this.end.y)/2)}},{key:"getCenter",value:function(){return this.center}},{key:"round",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.start.round(e),this.end.round(e),this}},{key:"translate",value:function(e,t){return"number"===typeof e?(this.start.translate(e,t),this.end.translate(e,t)):(this.start.translate(e),this.end.translate(e)),this}},{key:"rotate",value:function(e,t){return this.start.rotate(e,t),this.end.rotate(e,t),this}},{key:"scale",value:function(e,t,n){return this.start.scale(e,t,n),this.end.scale(e,t,n),this}},{key:"length",value:function(){return Math.sqrt(this.squaredLength())}},{key:"squaredLength",value:function(){var e=this.start.x-this.end.x,t=this.start.y-this.end.y;return e*e+t*t}},{key:"setLength",value:function(e){var t=this.length();if(!t)return this;var n=e/t;return this.scale(n,n,this.start)}},{key:"parallel",value:function(e){var t=this.clone();if(!t.isDifferentiable())return t;var n=t.start,r=t.end,i=n.clone().rotate(270,r),o=r.clone().rotate(90,n);return n.move(o,e),r.move(i,e),t}},{key:"vector",value:function(){return new a(this.end.x-this.start.x,this.end.y-this.start.y)}},{key:"angle",value:function(){var e=new a(this.start.x+1,this.start.y);return this.start.angleBetween(this.end,e)}},{key:"bbox",value:function(){var e=Math.min(this.start.x,this.end.x),t=Math.min(this.start.y,this.end.y),n=Math.max(this.start.x,this.end.x),r=Math.max(this.start.y,this.end.y);return new s(e,t,n-e,r-t)}},{key:"bearing",value:function(){return this.start.bearing(this.end)}},{key:"closestPoint",value:function(e){return this.pointAt(this.closestPointNormalizedLength(e))}},{key:"closestPointLength",value:function(e){return this.closestPointNormalizedLength(e)*this.length()}},{key:"closestPointTangent",value:function(e){return this.tangentAt(this.closestPointNormalizedLength(e))}},{key:"closestPointNormalizedLength",value:function(e){var t=this.vector().dot(new r(this.start,e).vector()),n=Math.min(1,Math.max(0,t/this.squaredLength()));return Number.isNaN(n)?0:n}},{key:"pointAt",value:function(e){var t=this.start,n=this.end;return e<=0?t.clone():e>=1?n.clone():t.lerp(n,e)}},{key:"pointAtLength",value:function(e){var t=this.start,n=this.end,r=!0;e<0&&(r=!1,e=-e);var i=this.length();if(e>=i)return r?n.clone():t.clone();var o=(r?e:i-e)/i;return this.pointAt(o)}},{key:"divideAt",value:function(e){var t=this.pointAt(e);return[new r(this.start,t),new r(t,this.end)]}},{key:"divideAtLength",value:function(e){var t=this.pointAtLength(e);return[new r(this.start,t),new r(t,this.end)]}},{key:"containsPoint",value:function(e){var t=this.start,n=this.end;if(0!==t.cross(e,n))return!1;var i=this.length();return!(new r(t,e).length()>i)&&!(new r(e,n).length()>i)}},{key:"intersect",value:function(e,t){var n=e.intersectsWithLine(this,t);return n?Array.isArray(n)?n:[n]:null}},{key:"intersectsWithLine",value:function(e){var t=new a(this.end.x-this.start.x,this.end.y-this.start.y),n=new a(e.end.x-e.start.x,e.end.y-e.start.y),r=t.x*n.y-t.y*n.x,i=new a(e.start.x-this.start.x,e.start.y-this.start.y),o=i.x*n.y-i.y*n.x,s=i.x*t.y-i.y*t.x;if(0===r||o*r<0||s*r<0)return null;if(r>0){if(o>r||s>r)return null}else if(o<r||s<r)return null;return new a(this.start.x+o*t.x/r,this.start.y+o*t.y/r)}},{key:"isDifferentiable",value:function(){return!this.start.equals(this.end)}},{key:"pointOffset",value:function(e){var t=a.clone(e),n=this.start,r=this.end,i=(r.x-n.x)*(t.y-n.y)-(r.y-n.y)*(t.x-n.x);return i/this.length()}},{key:"pointSquaredDistance",value:function(e,t){var n=a.create(e,t);return this.closestPoint(n).squaredDistance(n)}},{key:"pointDistance",value:function(e,t){var n=a.create(e,t);return this.closestPoint(n).distance(n)}},{key:"tangentAt",value:function(e){if(!this.isDifferentiable())return null;var t=this.start,n=this.end,i=this.pointAt(e),o=new r(t,n);return o.translate(i.x-t.x,i.y-t.y),o}},{key:"tangentAtLength",value:function(e){if(!this.isDifferentiable())return null;var t=this.start,n=this.end,i=this.pointAtLength(e),o=new r(t,n);return o.translate(i.x-t.x,i.y-t.y),o}},{key:"relativeCcw",value:function(e,t){var n=a.create(e,t),r=n.x-this.start.x,i=n.y-this.start.y,o=this.end.x-this.start.x,s=this.end.y-this.start.y,l=r*s-i*o;return 0===l&&(l=r*o+i*s,l>0&&(r-=o,i-=s,l=r*o+i*s,l<0&&(l=0))),l<0?-1:l>0?1:0}},{key:"equals",value:function(e){return null!=e&&this.start.x===e.start.x&&this.start.y===e.start.y&&this.end.x===e.end.x&&this.end.y===e.end.y}},{key:"clone",value:function(){return new r(this.start,this.end)}},{key:"toJSON",value:function(){return{start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"serialize",value:function(){return[this.start.serialize(),this.end.serialize()].join(" ")}}]),r}(o,Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return!(null!=n&&n!==e.toStringTag||!a.isPoint(r.start)||!a.isPoint(r.end)||"function"!==typeof r.vector||"function"!==typeof r.bearing||"function"!==typeof r.parallel||"function"!==typeof r.intersect)}e.toStringTag="X6.Geometry.".concat(e.name),e.isLine=t})(h||(h={}));var v=function(e,t){u(r,e);var n=c(r);function r(e,t,i,o){var a;return f(this,r),a=n.call(this),a.x=null==e?0:e,a.y=null==t?0:t,a.a=null==i?0:i,a.b=null==o?0:o,a}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"center",get:function(){return new a(this.x,this.y)}},{key:"bbox",value:function(){return s.fromEllipse(this)}},{key:"getCenter",value:function(){return this.center}},{key:"inflate",value:function(e,t){var n=e,r=null!=t?t:e;return this.a+=2*n,this.b+=2*r,this}},{key:"normalizedDistance",value:function(e,t){var n=a.create(e,t),r=n.x-this.x,i=n.y-this.y,o=this.a,s=this.b;return r*r/(o*o)+i*i/(s*s)}},{key:"containsPoint",value:function(e,t){return this.normalizedDistance(e,t)<=1}},{key:"intersectsWithLine",value:function(e){var t=[],n=this.a,r=this.b,i=e.start,o=e.end,s=e.vector(),l=i.diff(new a(this.x,this.y)),u=new a(s.x/(n*n),s.y/(r*r)),c=new a(l.x/(n*n),l.y/(r*r)),h=s.dot(u),d=s.dot(c),f=l.dot(c)-1,g=d*d-h*f;if(g<0)return null;if(g>0){var p=Math.sqrt(g),v=(-d-p)/h,y=(-d+p)/h;if((v<0||v>1)&&(y<0||y>1))return null;v>=0&&v<=1&&t.push(i.lerp(o,v)),y>=0&&y<=1&&t.push(i.lerp(o,y))}else{var m=-d/h;if(!(m>=0&&m<=1))return null;t.push(i.lerp(o,m))}return t}},{key:"intersectsWithLineFromCenterToPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=a.clone(e);t&&n.rotate(t,this.getCenter());var r,i=n.x-this.x,o=n.y-this.y;if(0===i)return r=this.bbox().getNearestPointToPoint(n),t?r.rotate(-t,this.getCenter()):r;var s=o/i,l=s*s,u=this.a*this.a,c=this.b*this.b,h=Math.sqrt(1/(1/u+l/c));h=i<0?-h:h;var d=s*h;return r=new a(this.x+h,this.y+d),t?r.rotate(-t,this.getCenter()):r}},{key:"tangentTheta",value:function(e){var t,n,r=a.clone(e),i=r.x,o=r.y,s=this.a,l=this.b,u=this.bbox().center,c=u.x,h=u.y,d=30,f=i>u.x+s/2,g=i<u.x-s/2;return f||g?(n=i>u.x?o-d:o+d,t=s*s/(i-c)-s*s*(o-h)*(n-h)/(l*l*(i-c))+c):(t=o>u.y?i+d:i-d,n=l*l/(o-h)-l*l*(i-c)*(t-c)/(s*s*(o-h))+h),new a(t,n).theta(r)}},{key:"scale",value:function(e,t){return this.a*=e,this.b*=t,this}},{key:"rotate",value:function(e,t){var n=s.fromEllipse(this);n.rotate(e,t);var i=r.fromRect(n);return this.a=i.a,this.b=i.b,this.x=i.x,this.y=i.y,this}},{key:"translate",value:function(e,t){var n=a.create(e,t);return this.x+=n.x,this.y+=n.y,this}},{key:"equals",value:function(e){return null!=e&&e.x===this.x&&e.y===this.y&&e.a===this.a&&e.b===this.b}},{key:"clone",value:function(){return new r(this.x,this.y,this.a,this.b)}},{key:"toJSON",value:function(){return{x:this.x,y:this.y,a:this.a,b:this.b}}},{key:"serialize",value:function(){return"".concat(this.x," ").concat(this.y," ").concat(this.a," ").concat(this.b)}}]),r}(o,Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"number"===typeof r.x&&"number"===typeof r.y&&"number"===typeof r.a&&"number"===typeof r.b&&"function"===typeof r.inflate&&"function"===typeof r.normalizedDistance}e.toStringTag="X6.Geometry.".concat(e.name),e.isEllipse=t})(v||(v={})),function(e){function t(t,r,i,o){return null==t||"number"===typeof t?new e(t,r,i,o):n(t)}function n(t){return e.isEllipse(t)?t.clone():Array.isArray(t)?new e(t[0],t[1],t[2],t[3]):new e(t.x,t.y,t.a,t.b)}function r(t){var n=t.center;return new e(n.x,n.y,t.width/2,t.height/2)}e.create=t,e.parse=n,e.fromRect=r}(v||(v={}));var y=function(e,t){u(r,e);var n=c(r);function r(e){var t;if(f(this,r),t=n.call(this),null!=e){if("string"===typeof e)return l(t,r.parse(e));t.points=e.map((function(e){return a.create(e)}))}else t.points=[];return t}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"start",get:function(){return 0===this.points.length?null:this.points[0]}},{key:"end",get:function(){return 0===this.points.length?null:this.points[this.points.length-1]}},{key:"scale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new a;return this.points.forEach((function(r){return r.scale(e,t,n)})),this}},{key:"rotate",value:function(e,t){return this.points.forEach((function(n){return n.rotate(e,t)})),this}},{key:"translate",value:function(e,t){var n=a.create(e,t);return this.points.forEach((function(e){return e.translate(n.x,n.y)})),this}},{key:"bbox",value:function(){if(0===this.points.length)return new s;for(var e=1/0,t=-1/0,n=1/0,r=-1/0,i=this.points,o=0,a=i.length;o<a;o+=1){var l=i[o],u=l.x,c=l.y;u<e&&(e=u),u>t&&(t=u),c<n&&(n=c),c>r&&(r=c)}return new s(e,n,t-e,r-n)}},{key:"closestPoint",value:function(e){var t=this.closestPointLength(e);return this.pointAtLength(t)}},{key:"closestPointLength",value:function(e){var t=this.points,n=t.length;if(0===n||1===n)return 0;for(var r=0,i=0,o=1/0,a=0,s=n-1;a<s;a+=1){var l=new h(t[a],t[a+1]),u=l.length(),c=l.closestPointNormalizedLength(e),d=l.pointAt(c),f=d.squaredDistance(e);f<o&&(o=f,i=r+c*u),r+=u}return i}},{key:"closestPointNormalizedLength",value:function(e){var t=this.closestPointLength(e);if(0===t)return 0;var n=this.length();return 0===n?0:t/n}},{key:"closestPointTangent",value:function(e){var t=this.closestPointLength(e);return this.tangentAtLength(t)}},{key:"containsPoint",value:function(e){if(0===this.points.length)return!1;for(var t=a.clone(e),n=t.x,r=t.y,i=this.points,o=i.length,s=o-1,l=0,u=0;u<o;u+=1){var c=i[s],d=i[u];if(t.equals(c))return!0;var f=new h(c,d);if(f.containsPoint(e))return!0;if(r<=c.y&&r>d.y||r>c.y&&r<=d.y){var g=c.x-n>d.x-n?c.x-n:d.x-n;if(g>=0){var p=new a(n+g,r),v=new h(e,p);f.intersectsWithLine(v)&&(l+=1)}}s=u}return l%2===1}},{key:"intersectsWithLine",value:function(e){for(var t=[],n=0,r=this.points.length-1;n<r;n+=1){var i=this.points[n],o=this.points[n+1],a=e.intersectsWithLine(new h(i,o));a&&t.push(a)}return t.length>0?t:null}},{key:"isDifferentiable",value:function(){for(var e=0,t=this.points.length-1;e<t;e+=1){var n=this.points[e],r=this.points[e+1],i=new h(n,r);if(i.isDifferentiable())return!0}return!1}},{key:"length",value:function(){for(var e=0,t=0,n=this.points.length-1;t<n;t+=1){var r=this.points[t],i=this.points[t+1];e+=r.distance(i)}return e}},{key:"pointAt",value:function(e){var t=this.points,n=t.length;if(0===n)return null;if(1===n)return t[0].clone();if(e<=0)return t[0].clone();if(e>=1)return t[n-1].clone();var r=this.length(),i=r*e;return this.pointAtLength(i)}},{key:"pointAtLength",value:function(e){var t=this.points,n=t.length;if(0===n)return null;if(1===n)return t[0].clone();var r=!0;e<0&&(r=!1,e=-e);for(var i=0,o=0,a=n-1;o<a;o+=1){var s=r?o:a-1-o,l=t[s],u=t[s+1],c=new h(l,u),d=l.distance(u);if(e<=i+d)return c.pointAtLength((r?1:-1)*(e-i));i+=d}var f=r?t[n-1]:t[0];return f.clone()}},{key:"tangentAt",value:function(e){var t=this.points,n=t.length;if(0===n||1===n)return null;e<0&&(e=0),e>1&&(e=1);var r=this.length(),i=r*e;return this.tangentAtLength(i)}},{key:"tangentAtLength",value:function(e){var t=this.points,n=t.length;if(0===n||1===n)return null;var r,i=!0;e<0&&(i=!1,e=-e);for(var o=0,a=0,s=n-1;a<s;a+=1){var l=i?a:s-1-a,u=t[l],c=t[l+1],d=new h(u,c),f=u.distance(c);if(d.isDifferentiable()){if(e<=o+f)return d.tangentAtLength((i?1:-1)*(e-o));r=d}o+=f}if(r){var g=i?1:0;return r.tangentAt(g)}return null}},{key:"simplify",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.points;if(t.length<3)return this;var n=e.threshold||0,r=0;while(t[r+2]){var i=r,o=r+1,a=r+2,s=t[i],l=t[o],u=t[a],c=new h(s,u),d=c.closestPoint(l),f=d.distance(l);f<=n?t.splice(o,1):r+=1}return this}},{key:"toHull",value:function(){var e=this.points,t=e.length;if(0===t)return new r;for(var n=e[0],i=1;i<t;i+=1)(e[i].y<n.y||e[i].y===n.y&&e[i].x>n.x)&&(n=e[i]);for(var o=[],a=0;a<t;a+=1){var s=n.theta(e[a]);0===s&&(s=360),o.push([e[a],a,s])}if(o.sort((function(e,t){var n=e[2]-t[2];return 0===n&&(n=t[1]-e[1]),n})),o.length>2){var l=o[o.length-1];o.unshift(l)}var u,c={},h=[],d=function(e){return"".concat(e[0].toString(),"@").concat(e[1])};while(0!==o.length){var f=o.pop(),g=f[0];if(!c[d(f)]){var p=!1;while(!p)if(h.length<2)h.push(f),p=!0;else{var v=h.pop(),y=v[0],m=h.pop(),b=m[0],x=b.cross(y,g);if(x<0)h.push(m),h.push(v),h.push(f),p=!0;else if(0===x){var w=1e-10,C=y.angleBetween(b,g);Math.abs(C-180)<w||y.equals(g)||b.equals(y)?(c[d(v)]=y,h.push(m)):Math.abs((C+1)%360-1)<w&&(h.push(m),o.push(v))}else c[d(v)]=y,h.push(m)}}}h.length>2&&h.pop();for(var k=-1,E=0,S=h.length;E<S;E+=1){var A=h[E][1];(void 0===u||A<u)&&(u=A,k=E)}var O=[];if(k>0){var M=h.slice(k),P=h.slice(0,k);O=M.concat(P)}else O=h;for(var T=[],D=0,N=O.length;D<N;D+=1)T.push(O[D][0]);return new r(T)}},{key:"equals",value:function(e){var t=this;return null!=e&&(e.points.length===this.points.length&&e.points.every((function(e,n){return e.equals(t.points[n])})))}},{key:"clone",value:function(){return new r(this.points.map((function(e){return e.clone()})))}},{key:"toJSON",value:function(){return this.points.map((function(e){return e.toJSON()}))}},{key:"serialize",value:function(){return this.points.map((function(e){return"".concat(e.x,", ").concat(e.y)})).join(" ")}}]),r}(o,Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"===typeof r.toHull&&"function"===typeof r.simplify}e.toStringTag="X6.Geometry.".concat(e.name),e.isPolyline=t})(y||(y={})),function(e){function t(t){var n=t.trim();if(""===n)return new e;for(var r=[],i=n.split(/\s*,\s*|\s+/),o=0,a=i.length;o<a;o+=2)r.push({x:+i[o],y:+i[o+1]});return new e(r)}e.parse=t}(y||(y={}));var m=function(e,t){u(r,e);var n=c(r);function r(e,t,i,o){var s;return f(this,r),s=n.call(this),s.PRECISION=3,s.start=a.create(e),s.controlPoint1=a.create(t),s.controlPoint2=a.create(i),s.end=a.create(o),s}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"bbox",value:function(){for(var e,t,n,r,i,o,a,l,u,c,h,d=this.start,f=this.controlPoint1,g=this.controlPoint2,p=this.end,v=d.x,y=d.y,m=f.x,b=f.y,x=g.x,w=g.y,C=p.x,k=p.y,E=[],S=[],A=[[],[]],O=0;O<2;O+=1)if(0===O?(t=6*v-12*m+6*x,e=-3*v+9*m-9*x+3*C,n=3*m-3*v):(t=6*y-12*b+6*w,e=-3*y+9*b-9*w+3*k,n=3*b-3*y),Math.abs(e)<1e-12){if(Math.abs(t)<1e-12)continue;r=-n/t,r>0&&r<1&&S.push(r)}else a=t*t-4*n*e,l=Math.sqrt(a),a<0||(i=(-t+l)/(2*e),i>0&&i<1&&S.push(i),o=(-t-l)/(2*e),o>0&&o<1&&S.push(o));var M=S.length,P=M;while(M)M-=1,r=S[M],h=1-r,u=h*h*h*v+3*h*h*r*m+3*h*r*r*x+r*r*r*C,A[0][M]=u,c=h*h*h*y+3*h*h*r*b+3*h*r*r*w+r*r*r*k,A[1][M]=c,E[M]={X:u,Y:c};S[P]=0,S[P+1]=1,E[P]={X:v,Y:y},E[P+1]={X:C,Y:k},A[0][P]=v,A[1][P]=y,A[0][P+1]=C,A[1][P+1]=k,S.length=P+2,A[0].length=P+2,A[1].length=P+2,E.length=P+2;var T=Math.min.apply(null,A[0]),D=Math.min.apply(null,A[1]),N=Math.max.apply(null,A[0]),j=Math.max.apply(null,A[1]);return new s(T,D,N-T,j-D)}},{key:"closestPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.pointAtT(this.closestPointT(e,t))}},{key:"closestPointLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getOptions(t);return this.lengthAtT(this.closestPointT(e,n),n)}},{key:"closestPointNormalizedLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getOptions(t),r=this.closestPointLength(e,n);if(!r)return 0;var i=this.length(n);return 0===i?0:r/i}},{key:"closestPointT",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getPrecision(t),r=this.getDivisions(t),i=Math.pow(10,-n),o=null,a=0,s=0,l=0,u=0,c=0,h=null,d=r.length,f=d>0?1/d:0;r.forEach((function(t,n){var r=t.start.distance(e),i=t.end.distance(e),d=r+i;(null==h||d<h)&&(o=t,a=n*f,s=(n+1)*f,l=r,u=i,h=d,c=t.endpointDistance())}));while(1){var g=l?Math.abs(l-u)/l:0,p=null!=u?Math.abs(l-u)/u:0,v=g<i||p<i,y=!l||l<c*i,m=!u||u<c*i,b=y||m;if(v||b)return l<=u?a:s;var x=o.divide(.5);f/=2;var w=x[0].start.distance(e),C=x[0].end.distance(e),k=w+C,E=x[1].start.distance(e),S=x[1].end.distance(e),A=E+S;k<=A?(o=x[0],s-=f,l=w,u=C):(o=x[1],a+=f,l=E,u=S)}}},{key:"closestPointTangent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.tangentAtT(this.closestPointT(e,t))}},{key:"containsPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.toPolyline(t);return n.containsPoint(e)}},{key:"divideAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e<=0)return this.divideAtT(0);if(e>=1)return this.divideAtT(1);var n=this.tAt(e,t);return this.divideAtT(n)}},{key:"divideAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.tAtLength(e,t);return this.divideAtT(n)}},{key:"divide",value:function(e){return this.divideAtT(e)}},{key:"divideAtT",value:function(e){var t=this.start,n=this.controlPoint1,i=this.controlPoint2,o=this.end;if(e<=0)return[new r(t,t,t,t),new r(t,n,i,o)];if(e>=1)return[new r(t,n,i,o),new r(o,o,o,o)];var a=this.getSkeletonPoints(e),s=a.startControlPoint1,l=a.startControlPoint2,u=a.divider,c=a.dividerControlPoint1,h=a.dividerControlPoint2;return[new r(t,s,l,u),new r(u,c,h,o)]}},{key:"endpointDistance",value:function(){return this.start.distance(this.end)}},{key:"getSkeletonPoints",value:function(e){var t=this.start,n=this.controlPoint1,r=this.controlPoint2,i=this.end;if(e<=0)return{startControlPoint1:t.clone(),startControlPoint2:t.clone(),divider:t.clone(),dividerControlPoint1:n.clone(),dividerControlPoint2:r.clone()};if(e>=1)return{startControlPoint1:n.clone(),startControlPoint2:r.clone(),divider:i.clone(),dividerControlPoint1:i.clone(),dividerControlPoint2:i.clone()};var o=new h(t,n).pointAt(e),a=new h(n,r).pointAt(e),s=new h(r,i).pointAt(e),l=new h(o,a).pointAt(e),u=new h(a,s).pointAt(e),c=new h(l,u).pointAt(e);return{startControlPoint1:o,startControlPoint2:l,divider:c,dividerControlPoint1:u,dividerControlPoint2:s}}},{key:"getSubdivisions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getPrecision(e),n=[new r(this.start,this.controlPoint1,this.controlPoint2,this.end)];if(0===t)return n;var i=this.endpointDistance(),o=Math.pow(10,-t),a=0,s=function(){a+=1;var e=[];n.forEach((function(t){var n=t.divide(.5);e.push(n[0],n[1])}));var t=e.reduce((function(e,t){return e+t.endpointDistance()}),0),r=0!==t?(t-i)/t:0;if(a>1&&r<o)return{v:e};n=e,i=t};while(1){var l=s();if("object"===p(l))return l.v}}},{key:"length",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getDivisions(e);return t.reduce((function(e,t){return e+t.endpointDistance()}),0)}},{key:"lengthAtT",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e<=0)return 0;var n=void 0===t.precision?this.PRECISION:t.precision,r=this.divide(e)[0];return r.length({precision:n})}},{key:"pointAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();var n=this.tAt(e,t);return this.pointAtT(n)}},{key:"pointAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.tAtLength(e,t);return this.pointAtT(n)}},{key:"pointAtT",value:function(e){return e<=0?this.start.clone():e>=1?this.end.clone():this.getSkeletonPoints(e).divider}},{key:"isDifferentiable",value:function(){var e=this.start,t=this.controlPoint1,n=this.controlPoint2,r=this.end;return!(e.equals(t)&&t.equals(n)&&n.equals(r))}},{key:"tangentAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isDifferentiable())return null;e<0?e=0:e>1&&(e=1);var n=this.tAt(e,t);return this.tangentAtT(n)}},{key:"tangentAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isDifferentiable())return null;var n=this.tAtLength(e,t);return this.tangentAtT(n)}},{key:"tangentAtT",value:function(e){if(!this.isDifferentiable())return null;e<0&&(e=0),e>1&&(e=1);var t=this.getSkeletonPoints(e),n=t.startControlPoint2,r=t.dividerControlPoint1,i=t.divider,o=new h(n,r);return o.translate(i.x-n.x,i.y-n.y),o}},{key:"getPrecision",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return null==e.precision?this.PRECISION:e.precision}},{key:"getDivisions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!=e.subdivisions)return e.subdivisions;var t=this.getPrecision(e);return this.getSubdivisions({precision:t})}},{key:"getOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getPrecision(e),n=this.getDivisions(e);return{precision:t,subdivisions:n}}},{key:"tAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e<=0)return 0;if(e>=1)return 1;var n=this.getOptions(t),r=this.length(n),i=r*e;return this.tAtLength(i,n)}},{key:"tAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!0;e<0&&(n=!1,e=-e);for(var r,i,o=this.getPrecision(t),a=this.getDivisions(t),s={precision:o,subdivisions:a},l=null,u=0,c=0,h=0,d=a.length,f=d>0?1/d:0,g=0;g<d;g+=1){var p=n?g:d-1-g,v=a[g],y=v.endpointDistance();if(e<=h+y){l=v,r=p*f,i=(p+1)*f,u=n?e-h:y+h-e,c=n?y+h-e:e-h;break}h+=y}if(null==l)return n?1:0;var m=this.length(s),b=Math.pow(10,-o);while(1){var x=void 0;if(x=0!==m?u/m:0,x<b)return r;if(x=0!==m?c/m:0,x<b)return i;var w=void 0,C=void 0,k=l.divide(.5);f/=2;var E=k[0].endpointDistance(),S=k[1].endpointDistance();u<=E?(l=k[0],i-=f,w=u,C=E-w):(l=k[1],r+=f,w=u-E,C=S-w),u=w,c=C}}},{key:"toPoints",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getDivisions(e),n=[t[0].start.clone()];return t.forEach((function(e){return n.push(e.end.clone())})),n}},{key:"toPolyline",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new y(this.toPoints(e))}},{key:"scale",value:function(e,t,n){return this.start.scale(e,t,n),this.controlPoint1.scale(e,t,n),this.controlPoint2.scale(e,t,n),this.end.scale(e,t,n),this}},{key:"rotate",value:function(e,t){return this.start.rotate(e,t),this.controlPoint1.rotate(e,t),this.controlPoint2.rotate(e,t),this.end.rotate(e,t),this}},{key:"translate",value:function(e,t){return"number"===typeof e?(this.start.translate(e,t),this.controlPoint1.translate(e,t),this.controlPoint2.translate(e,t),this.end.translate(e,t)):(this.start.translate(e),this.controlPoint1.translate(e),this.controlPoint2.translate(e),this.end.translate(e)),this}},{key:"equals",value:function(e){return null!=e&&this.start.equals(e.start)&&this.controlPoint1.equals(e.controlPoint1)&&this.controlPoint2.equals(e.controlPoint2)&&this.end.equals(e.end)}},{key:"clone",value:function(){return new r(this.start,this.controlPoint1,this.controlPoint2,this.end)}},{key:"toJSON",value:function(){return{start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}},{key:"serialize",value:function(){return[this.start.serialize(),this.controlPoint1.serialize(),this.controlPoint2.serialize(),this.end.serialize()].join(" ")}}]),r}(o,Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return!(null!=n&&n!==e.toStringTag||!a.isPoint(r.start)||!a.isPoint(r.controlPoint1)||!a.isPoint(r.controlPoint2)||!a.isPoint(r.end)||"function"!==typeof r.toPoints||"function"!==typeof r.toPolyline)}e.toStringTag="X6.Geometry.".concat(e.name),e.isCurve=t})(m||(m={})),function(e){function t(e){var t=e.length,n=[],r=[],i=2;n[0]=e[0]/i;for(var o=1;o<t;o+=1)r[o]=1/i,i=(o<t-1?4:3.5)-r[o],n[o]=(e[o]-n[o-1])/i;for(var a=1;a<t;a+=1)n[t-a-1]-=r[t-a]*n[t-a];return n}function n(e){var n=e.map((function(e){return a.clone(e)})),r=[],i=[],o=n.length-1;if(1===o)return r[0]=new a((2*n[0].x+n[1].x)/3,(2*n[0].y+n[1].y)/3),i[0]=new a(2*r[0].x-n[0].x,2*r[0].y-n[0].y),[r,i];for(var s=[],l=1;l<o-1;l+=1)s[l]=4*n[l].x+2*n[l+1].x;s[0]=n[0].x+2*n[1].x,s[o-1]=(8*n[o-1].x+n[o].x)/2;for(var u=t(s),c=1;c<o-1;c+=1)s[c]=4*n[c].y+2*n[c+1].y;s[0]=n[0].y+2*n[1].y,s[o-1]=(8*n[o-1].y+n[o].y)/2;for(var h=t(s),d=0;d<o;d+=1)r.push(new a(u[d],h[d])),d<o-1?i.push(new a(2*n[d+1].x-u[d+1],2*n[d+1].y-h[d+1])):i.push(new a((n[o].x+u[o-1])/2,(n[o].y+h[o-1])/2));return[r,i]}function r(t){if(null==t||Array.isArray(t)&&t.length<2)throw new Error("At least 2 points are required");for(var r=n(t),i=[],o=0,s=r[0].length;o<s;o+=1){var l=new a(r[0][o].x,r[0][o].y),u=new a(r[1][o].x,r[1][o].y);i.push(new e(t[o],l,u,t[o+1]))}return i}e.throughPoints=r}(m||(m={}));var b=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.apply(this,arguments),e.isVisible=!0,e.isSegment=!0,e.isSubpathStart=!1,e}return g(n,[{key:"end",get:function(){return this.endPoint}},{key:"start",get:function(){if(null==this.previousSegment)throw new Error("Missing previous segment. (This segment cannot be the first segment of a path, or segment has not yet been added to a path.)");return this.previousSegment.end}},{key:"closestPointT",value:function(e,t){if(this.closestPointNormalizedLength)return this.closestPointNormalizedLength(e);throw new Error("Neither `closestPointT` nor `closestPointNormalizedLength` method is implemented.")}},{key:"lengthAtT",value:function(e,t){if(e<=0)return 0;var n=this.length();return e>=1?n:n*e}},{key:"divideAtT",value:function(e){if(this.divideAt)return this.divideAt(e);throw new Error("Neither `divideAtT` nor `divideAt` method is implemented.")}},{key:"pointAtT",value:function(e){if(this.pointAt)return this.pointAt(e);throw new Error("Neither `pointAtT` nor `pointAt` method is implemented.")}},{key:"tangentAtT",value:function(e){if(this.tangentAt)return this.tangentAt(e);throw new Error("Neither `tangentAtT` nor `tangentAt` method is implemented.")}}]),n}(o),x=function(e){u(n,e);var t=c(n);function n(e,r){var i;return f(this,n),i=t.call(this),h.isLine(e)?i.endPoint=e.end.clone().round(2):i.endPoint=a.create(e,r).round(2),i}return g(n,[{key:"type",get:function(){return"L"}},{key:"line",get:function(){return new h(this.start,this.end)}},{key:"bbox",value:function(){return this.line.bbox()}},{key:"closestPoint",value:function(e){return this.line.closestPoint(e)}},{key:"closestPointLength",value:function(e){return this.line.closestPointLength(e)}},{key:"closestPointNormalizedLength",value:function(e){return this.line.closestPointNormalizedLength(e)}},{key:"closestPointTangent",value:function(e){return this.line.closestPointTangent(e)}},{key:"length",value:function(){return this.line.length()}},{key:"divideAt",value:function(e){var t=this.line.divideAt(e);return[new n(t[0]),new n(t[1])]}},{key:"divideAtLength",value:function(e){var t=this.line.divideAtLength(e);return[new n(t[0]),new n(t[1])]}},{key:"getSubdivisions",value:function(){return[]}},{key:"pointAt",value:function(e){return this.line.pointAt(e)}},{key:"pointAtLength",value:function(e){return this.line.pointAtLength(e)}},{key:"tangentAt",value:function(e){return this.line.tangentAt(e)}},{key:"tangentAtLength",value:function(e){return this.line.tangentAtLength(e)}},{key:"isDifferentiable",value:function(){return null!=this.previousSegment&&!this.start.equals(this.end)}},{key:"clone",value:function(){return new n(this.end)}},{key:"scale",value:function(e,t,n){return this.end.scale(e,t,n),this}},{key:"rotate",value:function(e,t){return this.end.rotate(e,t),this}},{key:"translate",value:function(e,t){return"number"===typeof e?this.end.translate(e,t):this.end.translate(e),this}},{key:"equals",value:function(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}},{key:"toJSON",value:function(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"serialize",value:function(){var e=this.end;return"".concat(this.type," ").concat(e.x," ").concat(e.y)}}]),n}(b);(function(e){function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.length,o=n[0];if(h.isLine(o))return new e(o);if(a.isPointLike(o))return 1===i?new e(o):n.map((function(t){return new e(t)}));if(2===i)return new e(+n[0],+n[1]);for(var s=[],l=0;l<i;l+=2){var u=+n[l],c=+n[l+1];s.push(new e(u,c))}return s}e.create=t})(x||(x={}));var w=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"end",get:function(){if(!this.subpathStartSegment)throw new Error("Missing subpath start segment. (This segment needs a subpath start segment (e.g. MoveTo), or segment has not yet been added to a path.)");return this.subpathStartSegment.end}},{key:"type",get:function(){return"Z"}},{key:"line",get:function(){return new h(this.start,this.end)}},{key:"bbox",value:function(){return this.line.bbox()}},{key:"closestPoint",value:function(e){return this.line.closestPoint(e)}},{key:"closestPointLength",value:function(e){return this.line.closestPointLength(e)}},{key:"closestPointNormalizedLength",value:function(e){return this.line.closestPointNormalizedLength(e)}},{key:"closestPointTangent",value:function(e){return this.line.closestPointTangent(e)}},{key:"length",value:function(){return this.line.length()}},{key:"divideAt",value:function(e){var t=this.line.divideAt(e);return[t[1].isDifferentiable()?new x(t[0]):this.clone(),new x(t[1])]}},{key:"divideAtLength",value:function(e){var t=this.line.divideAtLength(e);return[t[1].isDifferentiable()?new x(t[0]):this.clone(),new x(t[1])]}},{key:"getSubdivisions",value:function(){return[]}},{key:"pointAt",value:function(e){return this.line.pointAt(e)}},{key:"pointAtLength",value:function(e){return this.line.pointAtLength(e)}},{key:"tangentAt",value:function(e){return this.line.tangentAt(e)}},{key:"tangentAtLength",value:function(e){return this.line.tangentAtLength(e)}},{key:"isDifferentiable",value:function(){return!(!this.previousSegment||!this.subpathStartSegment)&&!this.start.equals(this.end)}},{key:"scale",value:function(){return this}},{key:"rotate",value:function(){return this}},{key:"translate",value:function(){return this}},{key:"equals",value:function(e){return this.type===e.type&&this.start.equals(e.start)&&this.end.equals(e.end)}},{key:"clone",value:function(){return new n}},{key:"toJSON",value:function(){return{type:this.type,start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"serialize",value:function(){return this.type}}]),n}(b);(function(e){function t(){return new e}e.create=t})(w||(w={}));var C=function(e){u(n,e);var t=c(n);function n(e,r){var i;return f(this,n),i=t.call(this),i.isVisible=!1,i.isSubpathStart=!0,h.isLine(e)||m.isCurve(e)?i.endPoint=e.end.clone().round(2):i.endPoint=a.create(e,r).round(2),i}return g(n,[{key:"start",get:function(){throw new Error("Illegal access. Moveto segments should not need a start property.")}},{key:"type",get:function(){return"M"}},{key:"bbox",value:function(){return null}},{key:"closestPoint",value:function(){return this.end.clone()}},{key:"closestPointLength",value:function(){return 0}},{key:"closestPointNormalizedLength",value:function(){return 0}},{key:"closestPointT",value:function(){return 1}},{key:"closestPointTangent",value:function(){return null}},{key:"length",value:function(){return 0}},{key:"lengthAtT",value:function(){return 0}},{key:"divideAt",value:function(){return[this.clone(),this.clone()]}},{key:"divideAtLength",value:function(){return[this.clone(),this.clone()]}},{key:"getSubdivisions",value:function(){return[]}},{key:"pointAt",value:function(){return this.end.clone()}},{key:"pointAtLength",value:function(){return this.end.clone()}},{key:"pointAtT",value:function(){return this.end.clone()}},{key:"tangentAt",value:function(){return null}},{key:"tangentAtLength",value:function(){return null}},{key:"tangentAtT",value:function(){return null}},{key:"isDifferentiable",value:function(){return!1}},{key:"scale",value:function(e,t,n){return this.end.scale(e,t,n),this}},{key:"rotate",value:function(e,t){return this.end.rotate(e,t),this}},{key:"translate",value:function(e,t){return"number"===typeof e?this.end.translate(e,t):this.end.translate(e),this}},{key:"clone",value:function(){return new n(this.end)}},{key:"equals",value:function(e){return this.type===e.type&&this.end.equals(e.end)}},{key:"toJSON",value:function(){return{type:this.type,end:this.end.toJSON()}}},{key:"serialize",value:function(){var e=this.end;return"".concat(this.type," ").concat(e.x," ").concat(e.y)}}]),n}(b);(function(e){function t(){var t=arguments.length,n=arguments.length<=0?void 0:arguments[0];if(h.isLine(n))return new e(n);if(m.isCurve(n))return new e(n);if(a.isPointLike(n)){if(1===t)return new e(n);for(var r=[],i=0;i<t;i+=1)0===i?r.push(new e(i<0||arguments.length<=i?void 0:arguments[i])):r.push(new x(i<0||arguments.length<=i?void 0:arguments[i]));return r}if(2===t)return new e(+(arguments.length<=0?void 0:arguments[0]),+(arguments.length<=1?void 0:arguments[1]));for(var o=[],s=0;s<t;s+=2){var l=+(s<0||arguments.length<=s?void 0:arguments[s]),u=+(s+1<0||arguments.length<=s+1?void 0:arguments[s+1]);0===s?o.push(new e(l,u)):o.push(new x(l,u))}return o}e.create=t})(C||(C={}));var k=function(e){u(n,e);var t=c(n);function n(e,r,i,o,s,l){var u;return f(this,n),u=t.call(this),m.isCurve(e)?(u.controlPoint1=e.controlPoint1.clone().round(2),u.controlPoint2=e.controlPoint2.clone().round(2),u.endPoint=e.end.clone().round(2)):"number"===typeof e?(u.controlPoint1=new a(e,r).round(2),u.controlPoint2=new a(i,o).round(2),u.endPoint=new a(s,l).round(2)):(u.controlPoint1=a.create(e).round(2),u.controlPoint2=a.create(r).round(2),u.endPoint=a.create(i).round(2)),u}return g(n,[{key:"type",get:function(){return"C"}},{key:"curve",get:function(){return new m(this.start,this.controlPoint1,this.controlPoint2,this.end)}},{key:"bbox",value:function(){return this.curve.bbox()}},{key:"closestPoint",value:function(e){return this.curve.closestPoint(e)}},{key:"closestPointLength",value:function(e){return this.curve.closestPointLength(e)}},{key:"closestPointNormalizedLength",value:function(e){return this.curve.closestPointNormalizedLength(e)}},{key:"closestPointTangent",value:function(e){return this.curve.closestPointTangent(e)}},{key:"length",value:function(){return this.curve.length()}},{key:"divideAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.curve.divideAt(e,t);return[new n(r[0]),new n(r[1])]}},{key:"divideAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.curve.divideAtLength(e,t);return[new n(r[0]),new n(r[1])]}},{key:"divideAtT",value:function(e){var t=this.curve.divideAtT(e);return[new n(t[0]),new n(t[1])]}},{key:"getSubdivisions",value:function(){return[]}},{key:"pointAt",value:function(e){return this.curve.pointAt(e)}},{key:"pointAtLength",value:function(e){return this.curve.pointAtLength(e)}},{key:"tangentAt",value:function(e){return this.curve.tangentAt(e)}},{key:"tangentAtLength",value:function(e){return this.curve.tangentAtLength(e)}},{key:"isDifferentiable",value:function(){if(!this.previousSegment)return!1;var e=this.start,t=this.controlPoint1,n=this.controlPoint2,r=this.end;return!(e.equals(t)&&t.equals(n)&&n.equals(r))}},{key:"scale",value:function(e,t,n){return this.controlPoint1.scale(e,t,n),this.controlPoint2.scale(e,t,n),this.end.scale(e,t,n),this}},{key:"rotate",value:function(e,t){return this.controlPoint1.rotate(e,t),this.controlPoint2.rotate(e,t),this.end.rotate(e,t),this}},{key:"translate",value:function(e,t){return"number"===typeof e?(this.controlPoint1.translate(e,t),this.controlPoint2.translate(e,t),this.end.translate(e,t)):(this.controlPoint1.translate(e),this.controlPoint2.translate(e),this.end.translate(e)),this}},{key:"equals",value:function(e){return this.start.equals(e.start)&&this.end.equals(e.end)&&this.controlPoint1.equals(e.controlPoint1)&&this.controlPoint2.equals(e.controlPoint2)}},{key:"clone",value:function(){return new n(this.controlPoint1,this.controlPoint2,this.end)}},{key:"toJSON",value:function(){return{type:this.type,start:this.start.toJSON(),controlPoint1:this.controlPoint1.toJSON(),controlPoint2:this.controlPoint2.toJSON(),end:this.end.toJSON()}}},{key:"serialize",value:function(){var e=this.controlPoint1,t=this.controlPoint2,n=this.end;return[this.type,e.x,e.y,t.x,t.y,n.x,n.y].join(" ")}}]),n}(b);function E(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}}function S(e,t,n,r,i,o){var a=1/3,s=2/3;return[a*e+s*n,a*t+s*r,a*i+s*n,a*o+s*r,i,o]}function A(e,t,n,r,i,o,a,s,l,u){var c,h,d,f,g,p=120*Math.PI/180,v=Math.PI/180*(+i||0),y=[];if(u)h=u[0],d=u[1],f=u[2],g=u[3];else{c=E(e,t,-v),e=c.x,t=c.y,c=E(s,l,-v),s=c.x,l=c.y;var m=(e-s)/2,b=(t-l)/2,x=m*m/(n*n)+b*b/(r*r);x>1&&(x=Math.sqrt(x),n*=x,r*=x);var w=n*n,C=r*r,k=(o===a?-1:1)*Math.sqrt(Math.abs((w*C-w*b*b-C*m*m)/(w*b*b+C*m*m)));f=k*n*b/r+(e+s)/2,g=k*-r*m/n+(t+l)/2,h=Math.asin((t-g)/r),d=Math.asin((l-g)/r),h=e<f?Math.PI-h:h,d=s<f?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),a&&h>d&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var S=d-h;if(Math.abs(S)>p){var O=d,M=s,P=l;d=h+p*(a&&d>h?1:-1),s=f+n*Math.cos(d),l=g+r*Math.sin(d),y=A(s,l,n,r,i,0,a,M,P,[d,O,f,g])}S=d-h;var T=Math.cos(h),D=Math.sin(h),N=Math.cos(d),j=Math.sin(d),L=Math.tan(S/4),F=4/3*(n*L),R=4/3*(r*L),B=[e,t],z=[e+F*D,t-R*T],I=[s+F*j,l-R*N],V=[s,l];if(z[0]=2*B[0]-z[0],z[1]=2*B[1]-z[1],u)return[z,I,V].concat(y);y=[z,I,V].concat(y).join().split(",");for(var _=[],G=y.length,H=0;H<G;H+=1)_[H]=H%2?E(+y[H-1],+y[H],v).y:E(+y[H],+y[H+1],v).x;return _}function O(e){if(!e)return null;var t="\t\n\v\f\r   ᠎              \u2028\u2029",n=new RegExp("([a-z])[".concat(t,",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?[").concat(t,"]*,?[").concat(t,"]*)+)"),"ig"),r=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)[".concat(t,"]*,?[").concat(t,"]*"),"ig"),i={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},o=[];return e.replace(n,(function(e,t,n){var a=[],s=t.toLowerCase();n.replace(r,(function(e,t){return t&&a.push(+t),e})),"m"===s&&a.length>2&&(o.push([t].concat(d(a.splice(0,2)))),s="l",t="m"===t?"l":"L");var l=i[s];while(a.length>=l)if(o.push([t].concat(d(a.splice(0,l)))),!l)break;return e})),o}function M(e){var t=O(e);if(!t||!t.length)return[["M",0,0]];for(var n=0,r=0,i=0,o=0,a=[],s=0,l=t.length;s<l;s+=1){var u=[];a.push(u);var c=t[s],h=c[0];if(h!==h.toUpperCase())switch(u[0]=h.toUpperCase(),u[0]){case"A":u[1]=c[1],u[2]=c[2],u[3]=c[3],u[4]=c[4],u[5]=c[5],u[6]=+c[6]+n,u[7]=+c[7]+r;break;case"V":u[1]=+c[1]+r;break;case"H":u[1]=+c[1]+n;break;case"M":i=+c[1]+n,o=+c[2]+r;for(var d=1,f=c.length;d<f;d+=1)u[d]=+c[d]+(d%2?n:r);break;default:for(var g=1,p=c.length;g<p;g+=1)u[g]=+c[g]+(g%2?n:r);break}else for(var v=0,y=c.length;v<y;v+=1)u[v]=c[v];switch(u[0]){case"Z":n=+i,r=+o;break;case"H":n=u[1];break;case"V":r=u[1];break;case"M":i=u[u.length-2],o=u[u.length-1],n=u[u.length-2],r=u[u.length-1];break;default:n=u[u.length-2],r=u[u.length-1];break}}return a}function P(e){var t=M(e),n={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null};function r(e,t,n){var r,i;if(!e)return["C",t.x,t.y,t.x,t.y,t.x,t.y];switch(e[0]in{T:1,Q:1}||(t.qx=null,t.qy=null),e[0]){case"M":t.X=e[1],t.Y=e[2];break;case"A":return 0===parseFloat(e[1])||0===parseFloat(e[2])?["L",e[6],e[7]]:["C"].concat(A.apply(0,[t.x,t.y].concat(e.slice(1))));case"S":return"C"===n||"S"===n?(r=2*t.x-t.bx,i=2*t.y-t.by):(r=t.x,i=t.y),["C",r,i].concat(e.slice(1));case"T":return"Q"===n||"T"===n?(t.qx=2*t.x-t.qx,t.qy=2*t.y-t.qy):(t.qx=t.x,t.qy=t.y),["C"].concat(S(t.x,t.y,t.qx,t.qy,e[1],e[2]));case"Q":return t.qx=e[1],t.qy=e[2],["C"].concat(S(t.x,t.y,e[1],e[2],e[3],e[4]));case"H":return["L"].concat(e[1],t.y);case"V":return["L"].concat(t.x,e[1]);case"L":break;case"Z":break;default:break}return e}function i(e,n){if(e[n].length>7){e[n].shift();var r=e[n];while(r.length)o[n]="A",n+=1,e.splice(n,0,["C"].concat(r.splice(0,6)));e.splice(n,1),s=t.length}}for(var o=[],a="",s=t.length,l=0;l<s;l+=1){var u="";t[l]&&(u=t[l][0]),"C"!==u&&(o[l]=u,l>0&&(a=o[l-1])),t[l]=r(t[l],n,a),"A"!==o[l]&&"C"===u&&(o[l]="C"),i(t,l);var c=t[l],h=c.length;n.x=c[h-2],n.y=c[h-1],n.bx=parseFloat(c[h-4])||n.x,n.by=parseFloat(c[h-3])||n.y}return t[0][0]&&"M"===t[0][0]||t.unshift(["M",0,0]),t}function T(e){return P(e).map((function(e){return e.map((function(e){return"string"===typeof e?e:Object(i["d"])(e,2)}))})).join(",").split(",").join(" ")}(function(e){function t(){var t=arguments.length,n=arguments.length<=0?void 0:arguments[0];if(m.isCurve(n))return new e(n);if(a.isPointLike(n)){if(3===t)return new e(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]);for(var r=[],i=0;i<t;i+=3)r.push(new e(i<0||arguments.length<=i?void 0:arguments[i],i+1<0||arguments.length<=i+1?void 0:arguments[i+1],i+2<0||arguments.length<=i+2?void 0:arguments[i+2]));return r}if(6===t)return new e(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],arguments.length<=3?void 0:arguments[3],arguments.length<=4?void 0:arguments[4],arguments.length<=5?void 0:arguments[5]);for(var o=[],s=0;s<t;s+=6)o.push(new e(s<0||arguments.length<=s?void 0:arguments[s],s+1<0||arguments.length<=s+1?void 0:arguments[s+1],s+2<0||arguments.length<=s+2?void 0:arguments[s+2],s+3<0||arguments.length<=s+3?void 0:arguments[s+3],s+4<0||arguments.length<=s+4?void 0:arguments[s+4],s+5<0||arguments.length<=s+5?void 0:arguments[s+5]));return o}e.create=t})(k||(k={}));var D=new RegExp("^[\\s\\dLMCZz,.]*$");function N(e){return"string"===typeof e&&D.test(e)}function j(e,t){return(e%t+t)%t}function L(e,t,n,r,i){var o=[],s=e[e.length-1],l=null!=t&&t>0,u=t||0;if(r&&l){e=e.slice();var c=e[0],h=new a(s.x+(c.x-s.x)/2,s.y+(c.y-s.y)/2);e.splice(0,0,h)}var d=e[0],f=1;n?o.push("M",d.x,d.y):o.push("L",d.x,d.y);while(f<(r?e.length:e.length-1)){var g=e[j(f,e.length)],p=d.x-g.x,v=d.y-g.y;if(l&&(0!==p||0!==v)&&(null==i||i.indexOf(f-1)<0)){var y=Math.sqrt(p*p+v*v),m=p*Math.min(u,y/2)/y,b=v*Math.min(u,y/2)/y,x=g.x+m,w=g.y+b;o.push("L",x,w);var C=e[j(f+1,e.length)];while(f<e.length-2&&0===Math.round(C.x-g.x)&&0===Math.round(C.y-g.y))C=e[j(f+2,e.length)],f+=1;p=C.x-g.x,v=C.y-g.y,y=Math.max(1,Math.sqrt(p*p+v*v));var k=p*Math.min(u,y/2)/y,E=v*Math.min(u,y/2)/y,S=g.x+k,A=g.y+E;o.push("Q",g.x,g.y,S,A),g=new a(S,A)}else o.push("L",g.x,g.y);d=g,f+=1}return r?o.push("Z"):o.push("L",s.x,s.y),o.map((function(e){return"string"===typeof e?e:+e.toFixed(3)})).join(" ")}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return e&&e.length&&e.forEach((function(e){Array.isArray(e)?n.push({x:e[0],y:e[1]}):n.push({x:e.x,y:e.y})})),L(n,t.round,null==t.initialMove||t.initialMove,t.close,t.exclude)}function R(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0;if(0===n||0===r)return[];s-=e,l-=t,n=Math.abs(n),r=Math.abs(r);var u,c=-s/2,h=-l/2,d=Math.cos(i*Math.PI/180),f=Math.sin(i*Math.PI/180),g=d*c+f*h,p=-1*f*c+d*h,v=g*g,y=p*p,m=n*n,b=r*r,x=v/m+y/b;if(x>1)n=Math.sqrt(x)*n,r=Math.sqrt(x)*r,u=0;else{var w=1;o===a&&(w=-1),u=w*Math.sqrt((m*b-m*y-b*v)/(m*y+b*v))}var C=u*n*p/r,k=-1*u*r*g/n,E=d*C-f*k+s/2,S=f*C+d*k+l/2,A=Math.atan2((p-k)/r,(g-C)/n)-Math.atan2(0,1),O=A>=0?A:2*Math.PI+A;A=Math.atan2((-p-k)/r,(-g-C)/n)-Math.atan2((p-k)/r,(g-C)/n);var M=A>=0?A:2*Math.PI+A;0===a&&M>0?M-=2*Math.PI:0!==a&&M<0&&(M+=2*Math.PI);for(var P=2*M/Math.PI,T=Math.ceil(P<0?-1*P:P),D=M/T,N=8/3*Math.sin(D/4)*Math.sin(D/4)/Math.sin(D/2),j=d*n,L=d*r,F=f*n,R=f*r,B=Math.cos(O),z=Math.sin(O),I=-N*(j*z+R*B),V=-N*(F*z-L*B),_=0,G=0,H=[],U=0;U<T;U+=1){O+=D,B=Math.cos(O),z=Math.sin(O),_=j*B-R*z+E,G=F*B+L*z+S;var q=-N*(j*z+R*B),$=-N*(F*z-L*B),W=6*U;H[W]=Number(I+e),H[W+1]=Number(V+t),H[W+2]=Number(_-q+e),H[W+3]=Number(G-$+t),H[W+4]=Number(_+e),H[W+5]=Number(G+t),I=_+q,V=G+$}return H.map((function(e){return+e.toFixed(2)}))}function B(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=[],c=R(e,t,n,r,i,o,a,s,l);if(null!=c)for(var h=0,d=c.length;h<d;h+=6)u.push("C",c[h],c[h+1],c[h+2],c[h+3],c[h+4],c[h+5]);return u.join(" ")}var z=function(e,t){u(r,e);var n=c(r);function r(e){var t;if(f(this,r),t=n.call(this),t.PRECISION=3,t.segments=[],Array.isArray(e))if(h.isLine(e[0])||m.isCurve(e[0])){var i=null,o=e;o.forEach((function(e,n){0===n&&t.appendSegment(r.createSegment("M",e.start)),null==i||i.end.equals(e.start)||t.appendSegment(r.createSegment("M",e.start)),h.isLine(e)?t.appendSegment(r.createSegment("L",e.end)):m.isCurve(e)&&t.appendSegment(r.createSegment("C",e.controlPoint1,e.controlPoint2,e.end)),i=e}))}else{var a=e;a.forEach((function(e){e.isSegment&&t.appendSegment(e)}))}else null!=e&&(h.isLine(e)?(t.appendSegment(r.createSegment("M",e.start)),t.appendSegment(r.createSegment("L",e.end))):m.isCurve(e)?(t.appendSegment(r.createSegment("M",e.start)),t.appendSegment(r.createSegment("C",e.controlPoint1,e.controlPoint2,e.end))):y.isPolyline(e)?e.points&&e.points.length&&e.points.forEach((function(e,n){var i=0===n?r.createSegment("M",e):r.createSegment("L",e);t.appendSegment(i)})):e.isSegment&&t.appendSegment(e));return t}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"start",get:function(){var e=this.segments,t=e.length;if(0===t)return null;for(var n=0;n<t;n+=1){var r=e[n];if(r.isVisible)return r.start}return e[t-1].end}},{key:"end",get:function(){var e=this.segments,t=e.length;if(0===t)return null;for(var n=t-1;n>=0;n-=1){var r=e[n];if(r.isVisible)return r.end}return e[t-1].end}},{key:"moveTo",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.appendSegment((e=C.create).call.apply(e,[null].concat(n)))}},{key:"lineTo",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.appendSegment((e=x.create).call.apply(e,[null].concat(n)))}},{key:"curveTo",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.appendSegment((e=k.create).call.apply(e,[null].concat(n)))}},{key:"arcTo",value:function(e,t,n,r,i,o,s){var l=this.end||new a,u="number"===typeof o?R(l.x,l.y,e,t,n,r,i,o,s):R(l.x,l.y,e,t,n,r,i,o.x,o.y);if(null!=u)for(var c=0,h=u.length;c<h;c+=6)this.curveTo(u[c],u[c+1],u[c+2],u[c+3],u[c+4],u[c+5]);return this}},{key:"quadTo",value:function(e,t,n,i){var o=this.end||new a,s=["M",o.x,o.y];if("number"===typeof e)s.push("Q",e,t,n,i);else{var l=t;s.push("Q",e.x,e.y,l.x,l.y)}var u=r.parse(s.join(" "));return this.appendSegment(u.segments.slice(1)),this}},{key:"close",value:function(){return this.appendSegment(w.create())}},{key:"drawPoints",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=F(e,t),i=r.parse(n);i&&i.segments&&this.appendSegment(i.segments)}},{key:"bbox",value:function(){var e,t=this.segments,n=t.length;if(0===n)return null;for(var r=0;r<n;r+=1){var i=t[r];if(i.isVisible){var o=i.bbox();null!=o&&(e=e?e.union(o):o)}}if(null!=e)return e;var a=t[n-1];return new s(a.end.x,a.end.y,0,0)}},{key:"appendSegment",value:function(e){var t,n=this.segments.length,r=0!==n?this.segments[n-1]:null,i=null;if(Array.isArray(e))for(var o=0,a=e.length;o<a;o+=1){var s=e[o];t=this.prepareSegment(s,r,i),this.segments.push(t),r=t}else null!=e&&e.isSegment&&(t=this.prepareSegment(e,r,i),this.segments.push(t));return this}},{key:"insertSegment",value:function(e,t){var n,r=this.segments.length;if(e<0&&(e=r+e+1),e>r||e<0)throw new Error("Index out of range.");var i=null,o=null;if(0!==r&&(e>=1?(i=this.segments[e-1],o=i.nextSegment):(i=null,o=this.segments[0])),Array.isArray(t))for(var a=0,s=t.length;a<s;a+=1){var l=t[a];n=this.prepareSegment(l,i,o),this.segments.splice(e+a,0,n),i=n}else n=this.prepareSegment(t,i,o),this.segments.splice(e,0,n);return this}},{key:"removeSegment",value:function(e){var t=this.fixIndex(e),n=this.segments.splice(t,1)[0],r=n.previousSegment,i=n.nextSegment;return r&&(r.nextSegment=i),i&&(i.previousSegment=r),n.isSubpathStart&&i&&this.updateSubpathStartSegment(i),n}},{key:"replaceSegment",value:function(e,t){var n,r=this.fixIndex(e),i=this.segments[r],o=i.previousSegment,a=i.nextSegment,s=i.isSubpathStart;if(Array.isArray(t)){this.segments.splice(e,1);for(var l=0,u=t.length;l<u;l+=1){var c=t[l];n=this.prepareSegment(c,o,a),this.segments.splice(e+l,0,n),o=n,s&&n.isSubpathStart&&(s=!1)}}else n=this.prepareSegment(t,o,a),this.segments.splice(r,1,n),s&&n.isSubpathStart&&(s=!1);s&&a&&this.updateSubpathStartSegment(a)}},{key:"getSegment",value:function(e){var t=this.fixIndex(e);return this.segments[t]}},{key:"fixIndex",value:function(e){var t=this.segments.length;if(0===t)throw new Error("Path has no segments.");var n=e;while(n<0)n=t+n;if(n>=t||n<0)throw new Error("Index out of range.");return n}},{key:"segmentAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.segmentIndexAt(e,t);return n?this.getSegment(n):null}},{key:"segmentAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.segmentIndexAtLength(e,t);return n?this.getSegment(n):null}},{key:"segmentIndexAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===this.segments.length)return null;var n=Object(i["a"])(e,0,1),r=this.getOptions(t),o=this.length(r),a=o*n;return this.segmentIndexAtLength(a,r)}},{key:"segmentIndexAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.segments.length;if(0===n)return null;var r=!0;e<0&&(r=!1,e=-e);for(var i=this.getPrecision(t),o=this.getSubdivisions(t),a=0,s=null,l=0;l<n;l+=1){var u=r?l:n-1-l,c=this.segments[u],h=o[u],d=c.length({precision:i,subdivisions:h});if(c.isVisible){if(e<=a+d)return u;s=u}a+=d}return s}},{key:"getSegmentSubdivisions",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getPrecision(e),n=[],r=0,i=this.segments.length;r<i;r+=1){var o=this.segments[r],a=o.getSubdivisions({precision:t});n.push(a)}return n}},{key:"updateSubpathStartSegment",value:function(e){var t=e.previousSegment,n=e;while(n&&!n.isSubpathStart)n.subpathStartSegment=null!=t?t.subpathStartSegment:null,t=n,n=n.nextSegment}},{key:"prepareSegment",value:function(e,t,n){e.previousSegment=t,e.nextSegment=n,null!=t&&(t.nextSegment=e),null!=n&&(n.previousSegment=e);var r=e;return e.isSubpathStart&&(e.subpathStartSegment=e,r=n),null!=r&&this.updateSubpathStartSegment(r),e}},{key:"closestPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.closestPointT(e,t);return n?this.pointAtT(n):null}},{key:"closestPointLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getOptions(t),r=this.closestPointT(e,n);return r?this.lengthAtT(r,n):0}},{key:"closestPointNormalizedLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getOptions(t),r=this.closestPointLength(e,n);if(0===r)return 0;var i=this.length(n);return 0===i?0:r/i}},{key:"closestPointT",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===this.segments.length)return null;for(var n,r=this.getPrecision(t),o=this.getSubdivisions(t),a=1/0,s=0,l=this.segments.length;s<l;s+=1){var u=this.segments[s],c=o[s];if(u.isVisible){var h=u.closestPointT(e,{precision:r,subdivisions:c}),d=u.pointAtT(h),f=Object(i["f"])(d,e);f<a&&(n={segmentIndex:s,value:h},a=f)}}return n||{segmentIndex:this.segments.length-1,value:1}}},{key:"closestPointTangent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===this.segments.length)return null;for(var n,r=this.getPrecision(t),o=this.getSubdivisions(t),a=1/0,s=0,l=this.segments.length;s<l;s+=1){var u=this.segments[s],c=o[s];if(u.isDifferentiable()){var h=u.closestPointT(e,{precision:r,subdivisions:c}),d=u.pointAtT(h),f=Object(i["f"])(d,e);f<a&&(n=u.tangentAtT(h),a=f)}}return n||null}},{key:"containsPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.toPolylines(t);if(!n)return!1;for(var r=0,i=0,o=n.length;i<o;i+=1){var a=n[i];a.containsPoint(e)&&(r+=1)}return r%2===1}},{key:"pointAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===this.segments.length)return null;if(e<=0)return this.start.clone();if(e>=1)return this.end.clone();var n=this.getOptions(t),r=this.length(n),i=r*e;return this.pointAtLength(i,n)}},{key:"pointAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===this.segments.length)return null;if(0===e)return this.start.clone();var n=!0;e<0&&(n=!1,e=-e);for(var r,i=this.getPrecision(t),o=this.getSubdivisions(t),a=0,s=0,l=this.segments.length;s<l;s+=1){var u=n?s:l-1-s,c=this.segments[u],h=o[u],d=c.length({precision:i,subdivisions:h});if(c.isVisible){if(e<=a+d)return c.pointAtLength((n?1:-1)*(e-a),{precision:i,subdivisions:h});r=c}a+=d}if(r)return n?r.end:r.start;var f=this.segments[this.segments.length-1];return f.end.clone()}},{key:"pointAtT",value:function(e){var t=this.segments,n=t.length;if(0===n)return null;var r=e.segmentIndex;if(r<0)return t[0].pointAtT(0);if(r>=n)return t[n-1].pointAtT(1);var o=Object(i["a"])(e.value,0,1);return t[r].pointAtT(o)}},{key:"divideAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===this.segments.length)return null;var n=Object(i["a"])(e,0,1),r=this.getOptions(t),o=this.length(r),a=o*n;return this.divideAtLength(a,r)}},{key:"divideAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===this.segments.length)return null;var n=!0;e<0&&(n=!1,e=-e);for(var i,o,a,s,l,u=this.getPrecision(t),c=this.getSubdivisions(t),h=0,d=0,f=this.segments.length;d<f;d+=1){var g=n?d:f-1-d,p=this.getSegment(g),v=c[g],y={precision:u,subdivisions:v},m=p.length(y);if(p.isDifferentiable()&&(a=p,s=g,e<=h+m)){o=g,i=p.divideAtLength((n?1:-1)*(e-h),y);break}h+=m}if(!a)return null;i||(o=s,l=n?1:0,i=a.divideAtT(l));var b=this.clone(),x=o;b.replaceSegment(x,i);var w=x,C=x+1,k=x+2;i[0].isDifferentiable()||(b.removeSegment(w),C-=1,k-=1);var E=b.getSegment(C).start;b.insertSegment(C,r.createSegment("M",E)),k+=1,i[1].isDifferentiable()||(b.removeSegment(k-1),k-=1);for(var S=k-w-1,A=k,O=b.segments.length;A<O;A+=1){var M=this.getSegment(A-S),P=b.getSegment(A);if("Z"===P.type&&!M.subpathStartSegment.end.equals(P.subpathStartSegment.end)){var T=r.createSegment("L",M.end);b.replaceSegment(A,T)}}var D=new r(b.segments.slice(0,C)),N=new r(b.segments.slice(C));return[D,N]}},{key:"intersectsWithLine",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.toPolylines(t);if(null==n)return null;for(var r=null,i=0,o=n.length;i<o;i+=1){var a,s=n[i],l=e.intersect(s);if(l)if(null==r&&(r=[]),Array.isArray(l))(a=r).push.apply(a,d(l));else r.push(l)}return r}},{key:"isDifferentiable",value:function(){for(var e=0,t=this.segments.length;e<t;e+=1){var n=this.segments[e];if(n.isDifferentiable())return!0}return!1}},{key:"isValid",value:function(){var e=this.segments,t=0===e.length||"M"===e[0].type;return t}},{key:"length",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(0===this.segments.length)return 0;for(var t=this.getSubdivisions(e),n=0,r=0,i=this.segments.length;r<i;r+=1){var o=this.segments[r],a=t[r];n+=o.length({subdivisions:a})}return n}},{key:"lengthAtT",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.segments.length;if(0===n)return 0;var r=e.segmentIndex;if(r<0)return 0;var o=Object(i["a"])(e.value,0,1);r>=n&&(r=n-1,o=1);for(var a=this.getPrecision(t),s=this.getSubdivisions(t),l=0,u=0;u<r;u+=1){var c=this.segments[u],h=s[u];l+=c.length({precision:a,subdivisions:h})}var d=this.segments[r],f=s[r];return l+=d.lengthAtT(o,{precision:a,subdivisions:f}),l}},{key:"tangentAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===this.segments.length)return null;var n=Object(i["a"])(e,0,1),r=this.getOptions(t),o=this.length(r),a=o*n;return this.tangentAtLength(a,r)}},{key:"tangentAtLength",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(0===this.segments.length)return null;var n=!0;e<0&&(n=!1,e=-e);for(var r,i=this.getPrecision(t),o=this.getSubdivisions(t),a=0,s=0,l=this.segments.length;s<l;s+=1){var u=n?s:l-1-s,c=this.segments[u],h=o[u],d=c.length({precision:i,subdivisions:h});if(c.isDifferentiable()){if(e<=a+d)return c.tangentAtLength((n?1:-1)*(e-a),{precision:i,subdivisions:h});r=c}a+=d}if(r){var f=n?1:0;return r.tangentAtT(f)}return null}},{key:"tangentAtT",value:function(e){var t=this.segments.length;if(0===t)return null;var n=e.segmentIndex;if(n<0)return this.segments[0].tangentAtT(0);if(n>=t)return this.segments[t-1].tangentAtT(1);var r=Object(i["a"])(e.value,0,1);return this.segments[n].tangentAtT(r)}},{key:"getPrecision",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return null==e.precision?this.PRECISION:e.precision}},{key:"getSubdivisions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null==e.segmentSubdivisions){var t=this.getPrecision(e);return this.getSegmentSubdivisions({precision:t})}return e.segmentSubdivisions}},{key:"getOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getPrecision(e),n=this.getSubdivisions(e);return{precision:t,segmentSubdivisions:n}}},{key:"toPoints",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.segments,n=t.length;if(0===n)return null;for(var r=this.getSubdivisions(e),i=[],o=[],a=0;a<n;a+=1){var s=t[a];if(s.isVisible){var l=r[a];l.length>0?l.forEach((function(e){return o.push(e.start)})):o.push(s.start)}else o.length>0&&(o.push(t[a-1].end),i.push(o),o=[])}return o.length>0&&(o.push(this.end),i.push(o)),i}},{key:"toPolylines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.toPoints(e);return t?t.map((function(e){return new y(e)})):null}},{key:"scale",value:function(e,t,n){return this.segments.forEach((function(r){return r.scale(e,t,n)})),this}},{key:"rotate",value:function(e,t){return this.segments.forEach((function(n){return n.rotate(e,t)})),this}},{key:"translate",value:function(e,t){return"number"===typeof e?this.segments.forEach((function(n){return n.translate(e,t)})):this.segments.forEach((function(t){return t.translate(e)})),this}},{key:"clone",value:function(){var e=new r;return this.segments.forEach((function(t){return e.appendSegment(t.clone())})),e}},{key:"equals",value:function(e){if(null==e)return!1;var t=this.segments,n=e.segments,r=t.length;if(n.length!==r)return!1;for(var i=0;i<r;i+=1){var o=t[i],a=n[i];if(o.type!==a.type||!o.equals(a))return!1}return!0}},{key:"toJSON",value:function(){return this.segments.map((function(e){return e.toJSON()}))}},{key:"serialize",value:function(){if(!this.isValid())throw new Error("Invalid path segments.");return this.segments.map((function(e){return e.serialize()})).join(" ")}},{key:"toString",value:function(){return this.serialize()}}]),r}(o,Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return!(null!=n&&n!==e.toStringTag||!Array.isArray(r.segments)||"function"!==typeof r.moveTo||"function"!==typeof r.lineTo||"function"!==typeof r.curveTo)}e.toStringTag="X6.Geometry.".concat(e.name),e.isPath=t})(z||(z={})),function(e){function t(t){if(!t)return new e;var r=new e,i=/(?:[a-zA-Z] *)(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)? *,? *)|(?:-?\.\d+ *,? *))+|(?:[a-zA-Z] *)(?! |\d|-|\.)/g,o=e.normalize(t).match(i);if(null!=o)for(var a=0,s=o.length;a<s;a+=1){var l=o[a],u=/(?:[a-zA-Z])|(?:(?:-?\d+(?:\.\d+)?(?:e[-+]?\d+)?))|(?:(?:-?\.\d+))/g,c=l.match(u);if(null!=c){var h=c[0],f=c.slice(1).map((function(e){return+e})),g=n.call.apply(n,[null,h].concat(d(f)));r.appendSegment(g)}}return r}function n(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,o,a;if("M"===e)return(i=C.create).call.apply(i,[null].concat(n));if("L"===e)return(o=x.create).call.apply(o,[null].concat(n));if("C"===e)return(a=k.create).call.apply(a,[null].concat(n));if("z"===e||"Z"===e)return w.create();throw new Error('Invalid path segment type "'.concat(e,'"'))}e.parse=t,e.createSegment=n}(z||(z={})),function(e){e.normalize=T,e.isValid=N,e.drawArc=B,e.drawPoints=F,e.arcToCurves=R}(z||(z={}))},"428f":function(e,t,n){var r=n("da84");e.exports=r},"44ad":function(e,t,n){var r=n("da84"),i=n("e330"),o=n("d039"),a=n("c6b6"),s=r.Object,l=i("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?l(e,""):s(e)}:s},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"485a":function(e,t,n){var r=n("da84"),i=n("c65b"),o=n("1626"),a=n("861d"),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&o(n=e.toString)&&!a(r=i(n,e)))return r;if(o(n=e.valueOf)&&!a(r=i(n,e)))return r;if("string"!==t&&o(n=e.toString)&&!a(r=i(n,e)))return r;throw s("Can't convert object to primitive value")}},4930:function(e,t,n){var r=n("2d00"),i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"499e":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i],a=o[0],s=o[1],l=o[2],u=o[3],c={id:e+":"+i,css:s,media:l,sourceMap:u};r[a]?r[a].parts.push(c):n.push(r[a]={id:a,parts:[c]})}return n}n.r(t),n.d(t,"default",(function(){return g}));var i="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,u=!1,c=function(){},h=null,d="data-vue-ssr-id",f="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(e,t,n,i){u=n,h=i||{};var a=r(e,t);return p(a),function(t){for(var n=[],i=0;i<a.length;i++){var s=a[i],l=o[s.id];l.refs--,n.push(l)}t?(a=r(e,t),p(a)):a=[];for(i=0;i<n.length;i++){l=n[i];if(0===l.refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete o[l.id]}}}}function p(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(y(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(y(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function v(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function y(e){var t,n,r=document.querySelector("style["+d+'~="'+e.id+'"]');if(r){if(u)return c;r.parentNode.removeChild(r)}if(f){var i=l++;r=s||(s=v()),t=b.bind(null,r,i,!1),n=b.bind(null,r,i,!0)}else r=v(),t=x.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var m=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function b(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=m(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function x(e,t){var n=t.css,r=t.media,i=t.sourceMap;if(r&&e.setAttribute("media",r),h.ssrId&&e.setAttribute(d,t.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},"4a24":function(e,t,n){"use strict";var r=/\s/;function i(e){var t=e.length;while(t--&&r.test(e.charAt(t)));return t}var o=i,a=/^\s+/;function s(e){return e?e.slice(0,o(e)+1).replace(a,""):e}var l=s,u=n("2332"),c=n("1bc6"),h=NaN,d=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,g=/^0o[0-7]+$/i,p=parseInt;function v(e){if("number"==typeof e)return e;if(Object(c["a"])(e))return h;if(Object(u["a"])(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Object(u["a"])(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=l(e);var n=f.test(e);return n||g.test(e)?p(e.slice(2),n?2:8):d.test(e)?h:+e}t["a"]=v},"4d64":function(e,t,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),a=function(e){return function(t,n,a){var s,l=r(t),u=o(l),c=i(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4dae":function(e,t,n){var r=n("da84"),i=n("23cb"),o=n("07fa"),a=n("8418"),s=r.Array,l=Math.max;e.exports=function(e,t,n){for(var r=o(e),u=i(t,r),c=i(void 0===n?r:n,r),h=s(l(c-u,0)),d=0;u<c;u++,d++)a(h,d,e[u]);return h.length=d,h}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(e,t,n){var r=n("5926"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"51e4":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n("bcd7"),i=n("1cdc");function o(e,t,n,o){var a=r["d"].call(i["a"].presets.pinRelative,this.graph,{},t,n,e,this.cell,o,{});return a.anchor}function a(e,t){return t?e.cell.getBBox():e.cell.isEdge()?e.getConnection().bbox():e.getUnrotatedBBoxOfElement(e.container)}},5437:function(e,t,n){"use strict";n.r(t),n.d(t,"createImageNode",(function(){return o}));var r=n("ade3"),i=n("625f");function o(e){var t=e.urlStr,n=e.tooltip,o=e.ports,a=e.group,s=e.width,l=e.height,u=e.typeImgNo,c=e.y,h=void 0===c?50:c,d=e.x,f=void 0===d?120:d,g=e.defaultSpanStyle,p=[];if(o.length)for(var v=0;v<o.length;v++){var y={group:a,id:a+v,args:o[v].args};p.push(y)}return{shape:"html",x:f,y:h,width:s,height:l,data:{typeImgNo:u,textContent:n,defaultSpanStyle:g},ports:{items:p,groups:Object(r["a"])({},a,{attrs:{circle:{r:6,magnet:!0,stroke:"#31d0c6",fill:"#fff",strokeWidth:2}},position:{name:"absolute"}})},html:function(){return Object(i["default"])({urlStr:t,tooltip:n,ports:o,group:a,width:s,height:l,typeImgNo:u,defaultSpanStyle:g})}}}},5692:function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.2",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?l(t,n(e)):t}},5728:function(e,t,n){"use strict";n.d(t,"b",(function(){return io})),n.d(t,"a",(function(){return S}));var r={};n.r(r),n.d(r,"dot",(function(){return T})),n.d(r,"fixedDot",(function(){return D})),n.d(r,"mesh",(function(){return N})),n.d(r,"doubleMesh",(function(){return j}));var h={};n.r(h),n.d(h,"outline",(function(){return B})),n.d(h,"highlight",(function(){return z})),n.d(h,"blur",(function(){return I})),n.d(h,"dropShadow",(function(){return V})),n.d(h,"grayScale",(function(){return _})),n.d(h,"sepia",(function(){return G})),n.d(h,"saturate",(function(){return H})),n.d(h,"hueRotate",(function(){return U})),n.d(h,"invert",(function(){return q})),n.d(h,"brightness",(function(){return $})),n.d(h,"contrast",(function(){return W}));var v={};n.r(v),n.d(v,"flipX",(function(){return Y})),n.d(v,"flipY",(function(){return J})),n.d(v,"flipXY",(function(){return Z})),n.d(v,"watermark",(function(){return Q}));var y={};n.r(y),n.d(y,"className",(function(){return ie})),n.d(y,"opacity",(function(){return ae})),n.d(y,"stroke",(function(){return le}));var m={};n.r(m),n.d(m,"absolute",(function(){return he})),n.d(m,"ellipse",(function(){return de})),n.d(m,"ellipseSpread",(function(){return fe})),n.d(m,"line",(function(){return ye})),n.d(m,"left",(function(){return me})),n.d(m,"right",(function(){return be})),n.d(m,"top",(function(){return xe})),n.d(m,"bottom",(function(){return we}));var b={};n.r(b),n.d(b,"manual",(function(){return Se})),n.d(b,"left",(function(){return Ae})),n.d(b,"right",(function(){return Oe})),n.d(b,"top",(function(){return Me})),n.d(b,"bottom",(function(){return Pe})),n.d(b,"outside",(function(){return Te})),n.d(b,"outsideOriented",(function(){return De})),n.d(b,"inside",(function(){return Ne})),n.d(b,"insideOriented",(function(){return je})),n.d(b,"radial",(function(){return ze})),n.d(b,"radialOriented",(function(){return Ie}));var x={};n.r(x),n.d(x,"center",(function(){return He})),n.d(x,"top",(function(){return Ue})),n.d(x,"bottom",(function(){return qe})),n.d(x,"left",(function(){return $e})),n.d(x,"right",(function(){return We})),n.d(x,"topLeft",(function(){return Xe})),n.d(x,"topRight",(function(){return Ye})),n.d(x,"bottomLeft",(function(){return Je})),n.d(x,"bottomRight",(function(){return Ze})),n.d(x,"orth",(function(){return rt})),n.d(x,"nodeCenter",(function(){return it})),n.d(x,"midSide",(function(){return at}));var w={};n.r(w),n.d(w,"ratio",(function(){return lt})),n.d(w,"length",(function(){return ut})),n.d(w,"orth",(function(){return ft})),n.d(w,"closest",(function(){return ht}));var C={};n.r(C),n.d(C,"bbox",(function(){return yt})),n.d(C,"rect",(function(){return mt})),n.d(C,"boundary",(function(){return bt})),n.d(C,"anchor",(function(){return Ct}));var k={};n.r(k),n.d(k,"normal",(function(){return kt})),n.d(k,"oneSide",(function(){return Et})),n.d(k,"orth",(function(){return Nt})),n.d(k,"metro",(function(){return cn})),n.d(k,"manhattan",(function(){return ln})),n.d(k,"er",(function(){return hn})),n.d(k,"loop",(function(){return gn}));var E={};n.r(E),n.d(E,"normal",(function(){return yn})),n.d(E,"loop",(function(){return mn})),n.d(E,"rounded",(function(){return bn})),n.d(E,"smooth",(function(){return xn})),n.d(E,"jumpover",(function(){return Nn}));var S={};n.r(S),n.d(S,"AutoSave",(function(){return Sr})),n.d(S,"Clipboard",(function(){return ao})),n.d(S,"Halo",(function(){return co})),n.d(S,"MiniMap",(function(){return Wr})),n.d(S,"Scroller",(function(){return ii})),n.d(S,"Selection",(function(){return li})),n.d(S,"Snapline",(function(){return Jr})),n.d(S,"Transform",(function(){return ci})),n.d(S,"Knob",(function(){return Hr})),n.d(S,"Dnd",(function(){return go})),n.d(S,"Stencil",(function(){return mo}));var A,O=n("bcd7"),M=n("20d2"),P=n("fc17"),T={color:"#aaaaaa",thickness:1,markup:"rect",update:function(e,t){var n=t.thickness*t.sx,r=t.thickness*t.sy;O["c"].attr(e,{width:n,height:r,rx:n,ry:r,fill:t.color})}},D={color:"#aaaaaa",thickness:1,markup:"rect",update:function(e,t){var n=t.sx<=1?t.thickness*t.sx:t.thickness;O["c"].attr(e,{width:n,height:n,rx:n,ry:n,fill:t.color})}},N={color:"rgba(224,224,224,1)",thickness:1,markup:"path",update:function(e,t){var n,r=t.width,i=t.height,o=t.thickness;n=r-o>=0&&i-o>=0?["M",r,0,"H0 M0 0 V0",i].join(" "):"M 0 0 0 0",O["c"].attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}},j=[{color:"rgba(224,224,224,1)",thickness:1,markup:"path",update:function(e,t){var n,r=t.width,i=t.height,o=t.thickness;n=r-o>=0&&i-o>=0?["M",r,0,"H0 M0 0 V0",i].join(" "):"M 0 0 0 0",O["c"].attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}},{color:"rgba(224,224,224,0.2)",thickness:3,factor:4,markup:"path",update:function(e,t){var n,r=t.factor||1,i=t.width*r,o=t.height*r,a=t.thickness;n=i-a>=0&&o-a>=0?["M",i,0,"H0 M0 0 V0",o].join(" "):"M 0 0 0 0",t.width=i,t.height=o,O["c"].attr(e,{d:n,stroke:t.color,"stroke-width":t.thickness})}}],L=function(){function e(){f(this,e),this.patterns={},this.root=O["m"].create(O["c"].createSvgDocument(),{width:"100%",height:"100%"},[O["c"].createSvgElement("defs")]).node}return g(e,[{key:"add",value:function(e,t){var n=this.root.childNodes[0];n&&n.appendChild(t),this.patterns[e]=t,O["m"].create("rect",{width:"100%",height:"100%",fill:"url(#".concat(e,")")}).appendTo(this.root)}},{key:"get",value:function(e){return this.patterns[e]}},{key:"has",value:function(e){return null!=this.patterns[e]}}]),e}();function F(e,t){return null!=e?e:t}function R(e,t){return null!=e&&Number.isFinite(e)?e:t}function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=F(e.color,"blue"),n=R(e.width,1),r=R(e.margin,2),i=R(e.opacity,1),o=r,a=r+n;return'\n    <filter>\n      <feFlood flood-color="'.concat(t,'" flood-opacity="').concat(i,'" result="colored"/>\n      <feMorphology in="SourceAlpha" result="morphedOuter" operator="dilate" radius="').concat(a,'" />\n      <feMorphology in="SourceAlpha" result="morphedInner" operator="dilate" radius="').concat(o,'" />\n      <feComposite result="morphedOuterColored" in="colored" in2="morphedOuter" operator="in"/>\n      <feComposite operator="xor" in="morphedOuterColored" in2="morphedInner" result="outline"/>\n      <feMerge>\n        <feMergeNode in="outline"/>\n        <feMergeNode in="SourceGraphic"/>\n      </feMerge>\n    </filter>\n  ').trim()}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=F(e.color,"red"),n=R(e.blur,0),r=R(e.width,1),i=R(e.opacity,1);return'\n      <filter>\n        <feFlood flood-color="'.concat(t,'" flood-opacity="').concat(i,'" result="colored"/>\n        <feMorphology result="morphed" in="SourceGraphic" operator="dilate" radius="').concat(r,'"/>\n        <feComposite result="composed" in="colored" in2="morphed" operator="in"/>\n        <feGaussianBlur result="blured" in="composed" stdDeviation="').concat(n,'"/>\n        <feBlend in="SourceGraphic" in2="blured" mode="normal"/>\n      </filter>\n    ').trim()}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=R(e.x,2),n=null!=e.y&&Number.isFinite(e.y)?[t,e.y]:t;return'\n    <filter>\n      <feGaussianBlur stdDeviation="'.concat(n,'"/>\n    </filter>\n  ').trim()}function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=R(e.dx,0),n=R(e.dy,0),r=F(e.color,"black"),i=R(e.blur,4),o=R(e.opacity,1);return"SVGFEDropShadowElement"in window?'<filter>\n         <feDropShadow stdDeviation="'.concat(i,'" dx="').concat(t,'" dy="').concat(n,'" flood-color="').concat(r,'" flood-opacity="').concat(o,'" />\n       </filter>').trim():'<filter>\n         <feGaussianBlur in="SourceAlpha" stdDeviation="'.concat(i,'" />\n         <feOffset dx="').concat(t,'" dy="').concat(n,'" result="offsetblur" />\n         <feFlood flood-color="').concat(r,'" />\n         <feComposite in2="offsetblur" operator="in" />\n         <feComponentTransfer>\n           <feFuncA type="linear" slope="').concat(o,'" />\n         </feComponentTransfer>\n         <feMerge>\n           <feMergeNode/>\n           <feMergeNode in="SourceGraphic"/>\n         </feMerge>\n       </filter>').trim()}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=R(e.amount,1),n=.2126+.7874*(1-t),r=.7152-.7152*(1-t),i=.0722-.0722*(1-t),o=.2126-.2126*(1-t),a=.7152+.2848*(1-t),s=.0722-.0722*(1-t),l=.2126-.2126*(1-t),u=.0722+.9278*(1-t);return'\n    <filter>\n      <feColorMatrix type="matrix" values="'.concat(n," ").concat(r," ").concat(i," 0 0 ").concat(o," ").concat(a," ").concat(s," 0 0 ").concat(l," ").concat(r," ").concat(u,' 0 0 0 0 0 1 0"/>\n    </filter>\n  ').trim()}function G(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=R(e.amount,1),n=.393+.607*(1-t),r=.769-.769*(1-t),i=.189-.189*(1-t),o=.349-.349*(1-t),a=.686+.314*(1-t),s=.168-.168*(1-t),l=.272-.272*(1-t),u=.534-.534*(1-t),c=.131+.869*(1-t);return'\n      <filter>\n        <feColorMatrix type="matrix" values="'.concat(n," ").concat(r," ").concat(i," 0 0 ").concat(o," ").concat(a," ").concat(s," 0 0 ").concat(l," ").concat(u," ").concat(c,' 0 0 0 0 0 1 0"/>\n      </filter>\n    ').trim()}function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=R(e.amount,1);return'\n      <filter>\n        <feColorMatrix type="saturate" values="'.concat(1-t,'"/>\n      </filter>\n    ').trim()}function U(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=R(e.angle,0);return'\n      <filter>\n        <feColorMatrix type="hueRotate" values="'.concat(t,'"/>\n      </filter>\n    ').trim()}function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=R(e.amount,1),n=1-t;return'\n      <filter>\n        <feComponentTransfer>\n          <feFuncR type="table" tableValues="'.concat(t," ").concat(n,'"/>\n          <feFuncG type="table" tableValues="').concat(t," ").concat(n,'"/>\n          <feFuncB type="table" tableValues="').concat(t," ").concat(n,'"/>\n        </feComponentTransfer>\n      </filter>\n    ').trim()}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=R(e.amount,1);return'\n    <filter>\n      <feComponentTransfer>\n        <feFuncR type="linear" slope="'.concat(t,'"/>\n        <feFuncG type="linear" slope="').concat(t,'"/>\n        <feFuncB type="linear" slope="').concat(t,'"/>\n      </feComponentTransfer>\n    </filter>\n  ').trim()}function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=R(e.amount,1),n=.5-t/2;return'\n    <filter>\n     <feComponentTransfer>\n        <feFuncR type="linear" slope="'.concat(t,'" intercept="').concat(n,'"/>\n        <feFuncG type="linear" slope="').concat(t,'" intercept="').concat(n,'"/>\n        <feFuncB type="linear" slope="').concat(t,'" intercept="').concat(n,'"/>\n      </feComponentTransfer>\n    </filter>\n  ').trim()}(function(e){e.presets=r,e.registry=M["a"].create({type:"grid"}),e.registry.register(e.presets,!0)})(L||(L={})),function(e){e.presets=h,e.registry=M["a"].create({type:"filter"}),e.registry.register(e.presets,!0)}(A||(A={}));var X,Y=function(e){var t=document.createElement("canvas"),n=e.width,r=e.height;t.width=2*n,t.height=r;var i=t.getContext("2d");return i.drawImage(e,0,0,n,r),i.translate(2*n,0),i.scale(-1,1),i.drawImage(e,0,0,n,r),t},J=function(e){var t=document.createElement("canvas"),n=e.width,r=e.height;t.width=n,t.height=2*r;var i=t.getContext("2d");return i.drawImage(e,0,0,n,r),i.translate(0,2*r),i.scale(1,-1),i.drawImage(e,0,0,n,r),t},Z=function(e){var t=document.createElement("canvas"),n=e.width,r=e.height;t.width=2*n,t.height=2*r;var i=t.getContext("2d");return i.drawImage(e,0,0,n,r),i.setTransform(-1,0,0,-1,t.width,t.height),i.drawImage(e,0,0,n,r),i.setTransform(-1,0,0,1,t.width,0),i.drawImage(e,0,0,n,r),i.setTransform(1,0,0,-1,0,t.height),i.drawImage(e,0,0,n,r),t},K=n("4283"),Q=function(e,t){var n=e.width,r=e.height,i=document.createElement("canvas");i.width=3*n,i.height=3*r;for(var o=i.getContext("2d"),a=null!=t.angle?-t.angle:-20,s=K["a"].toRad(a),l=i.width/4,u=i.height/4,c=0;c<4;c+=1)for(var h=0;h<4;h+=1)(c+h)%2>0&&(o.setTransform(1,0,0,1,(2*c-1)*l,(2*h-1)*u),o.rotate(s),o.drawImage(e,-n/2,-r/2,n,r));return i};(function(e){e.presets=Object.assign({},v),e.presets["flip-x"]=Y,e.presets["flip-y"]=J,e.presets["flip-xy"]=Z,e.registry=M["a"].create({type:"background pattern"}),e.registry.register(e.presets,!0)})(X||(X={}));var ee,te,ne=n("edff"),re=ne["b"].prefix("highlighted"),ie={highlight:function(e,t,n){var r=n&&n.className||re;O["c"].addClass(t,r)},unhighlight:function(e,t,n){var r=n&&n.className||re;O["c"].removeClass(t,r)}},oe=ne["b"].prefix("highlight-opacity"),ae={highlight:function(e,t){O["c"].addClass(t,oe)},unhighlight:function(e,t){O["c"].removeClass(t,oe)}},se={padding:3,rx:0,ry:0,attrs:{"stroke-width":3,stroke:"#FEB663"}},le={highlight:function(e,t,n){var r=ee.getHighlighterId(t,n);if(!ee.hasCache(r)){n=O["g"].defaultsDeep({},n,se);var i,o,a=O["m"].create(t);try{i=a.toPathData()}catch(b){o=a.bbox(!0),i=O["c"].rectToPathData(Object.assign(Object.assign({},n),o))}var s=O["c"].createSvgElement("path");if(O["c"].attr(s,Object.assign({d:i,"pointer-events":"none","vector-effect":"non-scaling-stroke",fill:"none"},n.attrs?O["c"].kebablizeAttrs(n.attrs):null)),e.isEdgeElement(t))O["c"].attr(s,"d",e.getConnectionPathData());else{var l=a.getTransformToElement(e.container),u=n.padding;if(u){null==o&&(o=a.bbox(!0));var c=o.x+o.width/2,h=o.y+o.height/2;o=O["c"].transformRectangle(o,l);var d=Math.max(o.width,1),f=Math.max(o.height,1),g=(d+u)/d,p=(f+u)/f,v=O["c"].createSVGMatrix({a:g,b:0,c:0,d:p,e:c-g*c,f:h-p*h});l=l.multiply(v)}O["c"].transform(s,l)}O["c"].addClass(s,ne["b"].prefix("highlight-stroke"));var y=e.cell,m=function(){return ee.removeHighlighter(r)};y.on("removed",m),y.model&&y.model.on("reseted",m),e.container.appendChild(s),ee.setCache(r,s)}},unhighlight:function(e,t,n){ee.removeHighlighter(ee.getHighlighterId(t,n))}};function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new K["f"](O["f"].normalizePercentage(t.x,e.width),O["f"].normalizePercentage(t.y,e.height))}function ce(e,t,n){return Object.assign({angle:t,position:e.toJSON()},n)}(function(e){function t(e,t){return O["c"].ensureId(e),e.id+JSON.stringify(t)}e.getHighlighterId=t;var n={};function r(e,t){n[e]=t}function i(e){return null!=n[e]}function o(e){var t=n[e];t&&(O["c"].remove(t),delete n[e])}e.setCache=r,e.hasCache=i,e.removeHighlighter=o})(ee||(ee={})),function(e){function t(e,t){if("function"!==typeof t.highlight)throw new Error("Highlighter '".concat(e,"' is missing required `highlight()` method"));if("function"!==typeof t.unhighlight)throw new Error("Highlighter '".concat(e,"' is missing required `unhighlight()` method"))}e.check=t}(te||(te={})),function(e){e.presets=y,e.registry=M["a"].create({type:"highlighter"}),e.registry.register(e.presets,!0)}(te||(te={}));var he=function(e,t){return e.map((function(e){var n=e.x,r=e.y,i=e.angle;return ce(ue(t,{x:n,y:r}),i||0)}))},de=function(e,t,n){var r=n.start||0,i=n.step||20;return ge(e,t,r,(function(e,t){return(e+.5-t/2)*i}))},fe=function(e,t,n){var r=n.start||0,i=n.step||360/e.length;return ge(e,t,r,(function(e){return e*i}))};function ge(e,t,n,r){var i=t.getCenter(),o=t.getTopCenter(),a=t.width/t.height,s=K["c"].fromRect(t),l=e.length;return e.map((function(e,t){var u=n+r(t,l),c=o.clone().rotate(-u,i).scale(a,1,i),h=e.compensateRotate?-s.tangentTheta(c):0;return(e.dx||e.dy)&&c.translate(e.dx||0,e.dy||0),e.dr&&c.move(i,e.dr),ce(c.round(),h,e)}))}var pe,ve=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},ye=function(e,t,n){var r=ue(t,n.start||t.getOrigin()),i=ue(t,n.end||t.getCorner());return Ce(e,r,i,n)},me=function(e,t,n){return Ce(e,t.getTopLeft(),t.getBottomLeft(),n)},be=function(e,t,n){return Ce(e,t.getTopRight(),t.getBottomRight(),n)},xe=function(e,t,n){return Ce(e,t.getTopLeft(),t.getTopRight(),n)},we=function(e,t,n){return Ce(e,t.getBottomLeft(),t.getBottomRight(),n)};function Ce(e,t,n,r){var i=new K["d"](t,n),o=e.length;return e.map((function(e,t){var n=e.strict,a=ve(e,["strict"]),s=n||r.strict?(t+1)/(o+1):(t+.5)/o,l=i.pointAt(s);return(a.dx||a.dy)&&l.translate(a.dx||0,a.dy||0),ce(l.round(),0,a)}))}(function(e){e.presets=m,e.registry=M["a"].create({type:"port layout"}),e.registry.register(e.presets,!0)})(pe||(pe={}));var ke={position:{x:0,y:0},angle:0,attrs:{".":{y:"0","text-anchor":"start"}}};function Ee(e,t){var n=t||{},r=n.x,i=n.y,o=n.angle,a=n.attrs;return O["g"].defaultsDeep({},{angle:o,attrs:a,position:{x:r,y:i}},e,ke)}var Se=function(e,t,n){return Ee({position:t.getTopLeft()},n)},Ae=function(e,t,n){return Ee({position:{x:-15,y:0},attrs:{".":{y:".3em","text-anchor":"end"}}},n)},Oe=function(e,t,n){return Ee({position:{x:15,y:0},attrs:{".":{y:".3em","text-anchor":"start"}}},n)},Me=function(e,t,n){return Ee({position:{x:0,y:-15},attrs:{".":{"text-anchor":"middle"}}},n)},Pe=function(e,t,n){return Ee({position:{x:0,y:15},attrs:{".":{y:".6em","text-anchor":"middle"}}},n)},Te=function(e,t,n){return Le(e,t,!1,n)},De=function(e,t,n){return Le(e,t,!0,n)},Ne=function(e,t,n){return Fe(e,t,!1,n)},je=function(e,t,n){return Fe(e,t,!0,n)};function Le(e,t,n,r){var i,o,a,s,l=null!=r.offset?r.offset:15,u=t.getCenter().theta(e),c=Re(t),h=0;return u<c[1]||u>c[2]?(i=".3em",o=l,a=0,s="start"):u<c[0]?(i="0",o=0,a=-l,n?(h=-90,s="start"):s="middle"):u<c[3]?(i=".3em",o=-l,a=0,s="end"):(i=".6em",o=0,a=l,n?(h=90,s="start"):s="middle"),Ee({position:{x:Math.round(o),y:Math.round(a)},angle:h,attrs:{".":{y:i,"text-anchor":s}}},r)}function Fe(e,t,n,r){var i,o,a,s,l=null!=r.offset?r.offset:15,u=t.getCenter().theta(e),c=Re(t),h=0;return u<c[1]||u>c[2]?(i=".3em",o=-l,a=0,s="end"):u<c[0]?(i=".6em",o=0,a=l,n?(h=90,s="start"):s="middle"):u<c[3]?(i=".3em",o=l,a=0,s="start"):(i="0em",o=0,a=-l,n?(h=-90,s="start"):s="middle"),Ee({position:{x:Math.round(o),y:Math.round(a)},angle:h,attrs:{".":{y:i,"text-anchor":s}}},r)}function Re(e){var t=e.getCenter(),n=t.theta(e.getTopLeft()),r=t.theta(e.getBottomLeft()),i=t.theta(e.getBottomRight()),o=t.theta(e.getTopRight());return[n,o,i,r]}var Be,ze=function(e,t,n){return Ve(e.diff(t.getCenter()),!1,n)},Ie=function(e,t,n){return Ve(e.diff(t.getCenter()),!0,n)};function Ve(e,t,n){var r,i=null!=n.offset?n.offset:20,o=new K["f"](0,0),a=-e.theta(o),s=e.clone().move(o,i).diff(e).round(),l=".3em",u=a;return(a+90)%180===0?(r=t?"end":"middle",t||-270!==a||(l="0em")):a>-270&&a<-90?(r="start",u=a-180):r="end",Ee({position:s.round().toJSON(),angle:t?u:0,attrs:{".":{y:l,"text-anchor":r}}},n)}(function(e){e.presets=b,e.registry=M["a"].create({type:"port label layout"}),e.registry.register(e.presets,!0)})(Be||(Be={}));var _e=n("f1b6"),Ge=n("7eaa"),He=Ke("center"),Ue=Ke("topCenter"),qe=Ke("bottomCenter"),$e=Ke("leftMiddle"),We=Ke("rightMiddle"),Xe=Ke("topLeft"),Ye=Ke("topRight"),Je=Ke("bottomLeft"),Ze=Ke("bottomRight");function Ke(e){return function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.rotate?t.getUnrotatedBBoxOfElement(n):t.getBBoxOfElement(n),a=o[e];a.x+=O["f"].normalizePercentage(i.dx,o.width),a.y+=O["f"].normalizePercentage(i.dy,o.height);var s=t.cell;return i.rotate?a.rotate(-s.getAngle(),s.getBBox().getCenter()):a}}function Qe(e){return function(t,n,r,i){if(r instanceof Element){var o,a=this.graph.renderer.findViewByElem(r);if(a)if(a.isEdgeElement(r)){var s=null!=i.fixedAt?i.fixedAt:"50%";o=et(a,s)}else o=a.getBBoxOfElement(r).getCenter();else o=new K["f"];return e.call(this,t,n,o,i)}return e.apply(this,arguments)}}function et(e,t){var n=O["f"].isPercentage(t),r="string"===typeof t?parseFloat(t):t;return n?e.getPointAtRatio(r/100):e.getPointAtLength(r)}var tt,nt=function(e,t,n,r){var i=e.cell.getAngle(),o=e.getBBoxOfElement(t),a=o.getCenter(),s=o.getTopLeft(),l=o.getBottomRight(),u=r.padding;if(Number.isFinite(u)||(u=0),s.y+u<=n.y&&n.y<=l.y-u){var c=n.y-a.y;a.x+=0===i||180===i?0:1*c/Math.tan(K["a"].toRad(i)),a.y+=c}else if(s.x+u<=n.x&&n.x<=l.x-u){var h=n.x-a.x;a.y+=90===i||270===i?0:h*Math.tan(K["a"].toRad(i)),a.x+=h}return a},rt=Qe(nt),it=function(e,t,n,r,i){var o=e.cell.getConnectionPoint(this.cell,i);return(r.dx||r.dy)&&o.translate(r.dx||0,r.dy||0),o},ot=function(e,t,n,r){var i,o,a=0,s=e.cell;r.rotate?(i=e.getUnrotatedBBoxOfElement(t),o=s.getBBox().getCenter(),a=s.getAngle()):i=e.getBBoxOfElement(t);var l=r.padding;null!=l&&Number.isFinite(l)&&i.inflate(l),r.rotate&&n.rotate(a,o);var u,c=i.getNearestSideToPoint(n);switch(c){case"left":u=i.getLeftMiddle();break;case"right":u=i.getRightMiddle();break;case"top":u=i.getTopCenter();break;case"bottom":u=i.getBottomCenter();break;default:break}var h=r.direction;return"H"===h?"top"!==c&&"bottom"!==c||(u=n.x<=i.x+i.width?i.getLeftMiddle():i.getRightMiddle()):"V"===h&&(u=n.y<=i.y+i.height?i.getTopCenter():i.getBottomCenter()),r.rotate?u.rotate(-a,o):u},at=Qe(ot);(function(e){e.presets=x,e.registry=M["a"].create({type:"node endpoint"}),e.registry.register(e.presets,!0)})(tt||(tt={}));var st,lt=function(e,t,n,r){var i=null!=r.ratio?r.ratio:.5;return i>1&&(i/=100),e.getPointAtRatio(i)},ut=function(e,t,n,r){var i=null!=r.length?r.length:20;return e.getPointAtLength(i)},ct=function(e,t,n,r){var i=e.getClosestPoint(n);return null!=i?i:new K["f"]},ht=Qe(ct),dt=function(e,t,n,r){var i=1e6,o=e.getConnection(),a=e.getConnectionSubdivisions(),s=new K["d"](n.clone().translate(0,i),n.clone().translate(0,-i)),l=new K["d"](n.clone().translate(i,0),n.clone().translate(-i,0)),u=s.intersect(o,{segmentSubdivisions:a}),c=l.intersect(o,{segmentSubdivisions:a}),h=[];return u&&h.push.apply(h,d(u)),c&&h.push.apply(h,d(c)),h.length>0?n.closest(h):null!=r.fallbackAt?et(e,r.fallbackAt):O["d"].call(ct,this,e,t,n,r)},ft=Qe(dt);function gt(e,t,n){var r;if("object"===p(n)){if(Number.isFinite(n.y)){var i=new K["d"](t,e),o=i.parallel(n.y),a=o.start,s=o.end;t=a,e=s}r=n.x}else r=n;if(null==r||!Number.isFinite(r))return e;var l=e.distance(t);return 0===r&&l>0?e:e.move(t,-Math.min(r,l-1))}function pt(e){var t=e.getAttribute("stroke-width");return null===t?0:parseFloat(t)||0}function vt(e){if(null==e)return null;var t=e;do{var n=t.tagName;if("string"!==typeof n)return null;if(n=n.toUpperCase(),"G"===n)t=t.firstElementChild;else{if("TITLE"!==n)break;t=t.nextElementSibling}}while(t);return t}(function(e){e.presets=w,e.registry=M["a"].create({type:"edge endpoint"}),e.registry.register(e.presets,!0)})(st||(st={}));var yt=function(e,t,n,r){var i=t.getBBoxOfElement(n);r.stroked&&i.inflate(pt(n)/2);var o=e.intersect(i),a=o&&o.length?e.start.closest(o):e.end;return gt(a,e.start,r.offset)},mt=function(e,t,n,r,i){var o=t.cell,a=o.isNode()?o.getAngle():0;if(0===a)return O["d"].call(yt,this,e,t,n,r,i);var s=t.getUnrotatedBBoxOfElement(n);r.stroked&&s.inflate(pt(n)/2);var l=s.getCenter(),u=e.clone().rotate(a,l),c=u.setLength(1e6).intersect(s),h=c&&c.length?u.start.closest(c).rotate(-a,l):e.end;return gt(h,e.start,r.offset)},bt=function(e,t,n,r){var i,o,a=e.end,s=r.selector;if(i="string"===typeof s?t.findOne(s):Array.isArray(s)?O["g"].getByPath(n,s):vt(n),!O["c"].isSVGGraphicsElement(i)){if(i===n||!O["c"].isSVGGraphicsElement(n))return a;i=n}var l,u=t.getShapeOfElement(i),c=t.getMatrixOfElement(i),h=t.getRootTranslatedMatrix(),d=t.getRootRotatedMatrix(),f=h.multiply(d).multiply(c),g=f.inverse(),v=O["c"].transformLine(e,g),y=v.start.clone(),m=t.getDataOfElement(i);if(!1===r.insideout){null==m.shapeBBox&&(m.shapeBBox=u.bbox());var b=m.shapeBBox;if(null!=b&&b.containsPoint(y))return a}if(!0===r.extrapolate&&v.setLength(1e6),K["e"].isPath(u)){var x=r.precision||2;null==m.segmentSubdivisions&&(m.segmentSubdivisions=u.getSegmentSubdivisions({precision:x})),l={precision:x,segmentSubdivisions:m.segmentSubdivisions},o=v.intersect(u,l)}else o=v.intersect(u);o?Array.isArray(o)&&(o=y.closest(o)):!0===r.sticky&&(o=K["h"].isRectangle(u)?u.getNearestPointToPoint(y):K["c"].isEllipse(u)?u.intersectsWithLineFromCenterToPoint(y):u.closestPoint(y,l));var w=o?O["c"].transformPoint(o,f):a,C=r.offset||0;return!1!==r.stroked&&("object"===p(C)?(C=Object.assign({},C),null==C.x&&(C.x=0),C.x+=pt(i)/2):C+=pt(i)/2),gt(w,e.start,C)};function xt(e,t){var n,r,i,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=e.start,l=e.end;switch(t){case"left":o="x",n=l,r=s,i=-1;break;case"right":o="x",n=s,r=l,i=1;break;case"top":o="y",n=l,r=s,i=-1;break;case"bottom":o="y",n=s,r=l,i=1;break;default:return}s[o]<l[o]?n[o]=r[o]:r[o]=n[o],Number.isFinite(a)&&(n[o]+=i*a,r[o]+=i*a)}var wt,Ct=function(e,t,n,r){var i=r.alignOffset,o=r.align;return o&&xt(e,o,i),gt(e.end,e.start,r.offset)};(function(e){e.presets=C,e.registry=M["a"].create({type:"connection point"}),e.registry.register(e.presets,!0)})(wt||(wt={}));var kt=function(e){return d(e)},Et=function(e,t,n){var r,i,o,a=t.side||"bottom",s=O["f"].normalizeSides(t.padding||40),l=n.sourceBBox,u=n.targetBBox,c=l.getCenter(),h=u.getCenter();switch(a){case"top":o=-1,r="y",i="height";break;case"left":o=-1,r="x",i="width";break;case"right":o=1,r="x",i="width";break;case"bottom":default:o=1,r="y",i="height";break}return c[r]+=o*(l[i]/2+s[a]),h[r]+=o*(u[i]/2+s[a]),o*(c[r]-h[r])>0?h[r]=c[r]:c[r]=h[r],[c.toJSON()].concat(d(e),[h.toJSON()])};function St(e){return new K["h"](e.x,e.y,0,0)}function At(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=O["f"].normalizeSides(e.padding||20);return{x:-t.left,y:-t.top,width:t.left+t.right,height:t.top+t.bottom}}function Ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.sourceBBox.clone().moveAndExpand(At(t))}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.targetBBox.clone().moveAndExpand(At(t))}function Pt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.sourceAnchor)return e.sourceAnchor;var n=Ot(e,t);return n.getCenter()}function Tt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.targetAnchor)return e.targetAnchor;var n=Mt(e,t);return n.getCenter()}var Dt,Nt=function(e,t,n){var r=Ot(n,t),i=Mt(n,t),o=Pt(n,t),a=Tt(n,t);r=r.union(St(o)),i=i.union(St(a));var s=e.map((function(e){return K["f"].create(e)}));s.unshift(o),s.push(a);for(var l=null,u=[],c=0,h=s.length-1;c<h;c+=1){var f=null,g=s[c],p=s[c+1],v=null!=Dt.getBearing(g,p);if(0===c)c+1===h?r.intersectsWithRect(i.clone().inflate(1))?f=Dt.insideNode(g,p,r,i):v||(f=Dt.nodeToNode(g,p,r,i)):r.containsPoint(p)?f=Dt.insideNode(g,p,r,St(p).moveAndExpand(At(t))):v||(f=Dt.nodeToVertex(g,p,r));else if(c+1===h){var y=v&&Dt.getBearing(p,g)===l;i.containsPoint(g)||y?f=Dt.insideNode(g,p,St(g).moveAndExpand(At(t)),i,l):v||(f=Dt.vertexToNode(g,p,i,l))}else v||(f=Dt.vertexToVertex(g,p,l));f?(u.push.apply(u,d(f.points)),l=f.direction):l=Dt.getBearing(g,p),c+1<h&&u.push(p)}return u};(function(e){var t={N:"S",S:"N",E:"W",W:"E"},n={N:-Math.PI/2*3,S:-Math.PI/2,E:0,W:Math.PI};function r(e,t,n){var r=new K["f"](e.x,t.y);return n.containsPoint(r)&&(r=new K["f"](t.x,e.y)),r}function i(e,t){return e["W"===t||"E"===t?"width":"height"]}function o(e,t){return e.x===t.x?e.y>t.y?"N":"S":e.y===t.y?e.x>t.x?"W":"E":null}function a(e,n,r){var i=new K["f"](e.x,n.y),a=new K["f"](n.x,e.y),s=o(e,i),l=o(e,a),u=r?t[r]:null,c=s===r||s!==u&&(l===u||l!==r)?i:a;return{points:[c],direction:o(c,n)}}function s(e,t,n){var i=r(e,t,n);return{points:[i],direction:o(i,t)}}function l(e,t,n,a){var s,l=[new K["f"](e.x,t.y),new K["f"](t.x,e.y)],u=l.filter((function(e){return!n.containsPoint(e)})),c=u.filter((function(t){return o(t,e)!==a}));if(c.length>0)return s=c.filter((function(t){return o(e,t)===a})).pop(),s=s||c[0],{points:[s],direction:o(s,t)};s=O["a"].difference(l,u)[0];var h=K["f"].create(t).move(s,-i(n,a)/2),d=r(h,e,n);return{points:[d,h],direction:o(h,t)}}function u(e,t,n,r){var l=s(t,e,r),u=l.points[0];if(n.containsPoint(u)){l=s(e,t,n);var c=l.points[0];if(r.containsPoint(c)){var h=K["f"].create(e).move(c,-i(n,o(e,c))/2),d=K["f"].create(t).move(u,-i(r,o(t,u))/2),f=new K["d"](h,d).getCenter(),g=s(e,f,n),p=a(f,t,g.direction);l.points=[g.points[0],p.points[0]],l.direction=p.direction}}return l}function c(e,t,i,a,s){var l,u,c,h,d=i.union(a).inflate(1),f=d.getCenter(),g=f.distance(t)>f.distance(e),p=g?t:e,v=g?e:t;s?(l=K["f"].fromPolar(d.width+d.height,n[s],p),l=d.getNearestPointToPoint(l).move(l,-1)):l=d.getNearestPointToPoint(p).move(p,1),u=r(l,v,d),l.round().equals(u.round())?(u=K["f"].fromPolar(d.width+d.height,K["a"].toRad(l.theta(p))+Math.PI/2,v),u=d.getNearestPointToPoint(u).move(v,1).round(),c=r(l,u,d),h=g?[u,c,l]:[l,c,u]):h=g?[u,l]:[l,u];var y=o(g?l:u,t);return{points:h,direction:y}}e.getBBoxSize=i,e.getBearing=o,e.vertexToVertex=a,e.nodeToVertex=s,e.vertexToNode=l,e.nodeToNode=u,e.insideNode=c})(Dt||(Dt={}));var jt={step:10,maxLoopCount:2e3,precision:1,maxDirectionChange:90,perpendicular:!0,excludeTerminals:[],excludeShapes:[],excludeHiddenNodes:!1,startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{top:{x:0,y:-1},right:{x:1,y:0},bottom:{x:0,y:1},left:{x:-1,y:0}},cost:function(){var e=Lt(this.step,this);return e},directions:function(){var e=Lt(this.step,this),t=Lt(this.cost,this);return[{cost:t,offsetX:e,offsetY:0},{cost:t,offsetX:0,offsetY:e},{cost:t,offsetX:-e,offsetY:0},{cost:t,offsetX:0,offsetY:-e}]},penalties:function(){var e=Lt(this.step,this);return{0:0,45:e/2,90:e/2}},paddingBox:function(){var e=Lt(this.step,this);return{x:-e,y:-e,width:2*e,height:2*e}},fallbackRouter:Nt,draggingRouter:null};function Lt(e,t){return"function"===typeof e?e.call(t):e}function Ft(e){var t=Object.keys(e).reduce((function(t,n){var r=t;return r[n]="fallbackRouter"===n||"draggingRouter"===n||"fallbackRoute"===n?e[n]:Lt(e[n],e),t}),{});if(t.padding){var n=O["f"].normalizeSides(t.padding);e.paddingBox={x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom}}return t.directions.forEach((function(e){var t=new K["f"](0,0),n=new K["f"](e.offsetX,e.offsetY);e.angle=K["a"].normalize(t.theta(n))})),t}var Rt=1,Bt=2,zt=function(){function e(){f(this,e),this.items=[],this.hash={},this.values={}}return g(e,[{key:"add",value:function(e,t){var n=this;this.hash[e]?this.items.splice(this.items.indexOf(e),1):this.hash[e]=Rt,this.values[e]=t;var r=O["a"].sortedIndexBy(this.items,e,(function(e){return n.values[e]}));this.items.splice(r,0,e)}},{key:"pop",value:function(){var e=this.items.shift();return e&&(this.hash[e]=Bt),e}},{key:"isOpen",value:function(e){return this.hash[e]===Rt}},{key:"isClose",value:function(e){return this.hash[e]===Bt}},{key:"isEmpty",value:function(){return 0===this.items.length}}]),e}(),It=function(){function e(t){f(this,e),this.options=t,this.mapGridSize=100,this.map={}}return g(e,[{key:"build",value:function(e,t){var n=this.options,r=n.excludeTerminals.reduce((function(n,r){var i=t[r];if(i){var o=e.getCell(i.cell);o&&n.push(o)}return n}),[]),i=[],o=e.getCell(t.getSourceCellId());o&&(i=O["a"].union(i,o.getAncestors().map((function(e){return e.id}))));var a=e.getCell(t.getTargetCellId());a&&(i=O["a"].union(i,a.getAncestors().map((function(e){return e.id}))));var s=this.mapGridSize;return e.getNodes().reduce((function(e,t){var o=t.shape,a=n.excludeShapes,l=!!o&&a.includes(o),u=r.some((function(e){return e.id===t.id})),c=i.includes(t.id),h=n.excludeHiddenNodes&&!t.isVisible(),d=l||u||c||h;if(!d)for(var f=t.getBBox().moveAndExpand(n.paddingBox),g=f.getOrigin().snapToGrid(s),p=f.getCorner().snapToGrid(s),v=g.x;v<=p.x;v+=s)for(var y=g.y;y<=p.y;y+=s){var m=new K["f"](v,y).toString();null==e[m]&&(e[m]=[]),e[m].push(f)}return e}),this.map),this}},{key:"isAccessible",value:function(e){var t=e.clone().snapToGrid(this.mapGridSize).toString(),n=this.map[t];return!n||n.every((function(t){return!t.containsPoint(e)}))}}]),e}(),Vt=n("c027");function _t(e,t){var n=e.sourceBBox.clone();return t&&t.paddingBox?n.moveAndExpand(t.paddingBox):n}function Gt(e,t){var n=e.targetBBox.clone();return t&&t.paddingBox?n.moveAndExpand(t.paddingBox):n}function Ht(e,t){if(e.sourceAnchor)return e.sourceAnchor;var n=_t(e,t);return n.getCenter()}function Ut(e,t){if(e.targetAnchor)return e.targetAnchor;var n=Gt(e,t);return n.getCenter()}function qt(e,t,n,r,i){var o=360/n,a=e.theta($t(e,t,r,i)),s=K["a"].normalize(a+o/2);return o*Math.floor(s/o)}function $t(e,t,n,r){var i=r.step,o=t.x-e.x,a=t.y-e.y,s=o/n.x,l=a/n.y,u=s*i,c=l*i;return new K["f"](e.x+u,e.y+c)}function Wt(e,t){var n=Math.abs(e-t);return n>180?360-n:n}function Xt(e,t){var n=t.step;return t.directions.forEach((function(t){t.gridOffsetX=t.offsetX/n*e.x,t.gridOffsetY=t.offsetY/n*e.y})),t.directions}function Yt(e,t,n){return{source:t.clone(),x:Jt(n.x-t.x,e),y:Jt(n.y-t.y,e)}}function Jt(e,t){if(!e)return t;var n=Math.abs(e),r=Math.round(n/t);if(!r)return n;var i=r*t,o=n-i,a=o/r;return t+a}function Zt(e,t){var n=t.source,r=Vt["a"].snapToGrid(e.x-n.x,t.x)+n.x,i=Vt["a"].snapToGrid(e.y-n.y,t.y)+n.y;return new K["f"](r,i)}function Kt(e,t){return e.round(t)}function Qt(e,t,n){return Kt(Zt(e.clone(),t),n)}function en(e){return e.toString()}function tn(e){return new K["f"](0===e.x?0:Math.abs(e.x)/e.x,0===e.y?0:Math.abs(e.y)/e.y)}function nn(e,t){for(var n=1/0,r=0,i=t.length;r<i;r+=1){var o=e.manhattanDistance(t[r]);o<n&&(n=o)}return n}function rn(e,t,n,r,i){var o=i.precision,a=i.directionMap,s=e.diff(t.getCenter()),l=Object.keys(a).reduce((function(i,l){if(n.includes(l)){for(var u,c=a[l],h=new K["f"](e.x+c.x*(Math.abs(s.x)+t.width),e.y+c.y*(Math.abs(s.y)+t.height)),d=new K["d"](e,h),f=d.intersect(t)||[],g=null,p=0;p<f.length;p+=1){var v=f[p],y=e.squaredDistance(v);(null==u||y>u)&&(u=y,g=v)}if(g){var m=Qt(g,r,o);t.containsPoint(m)&&(m=Qt(m.translate(c.x*r.x,c.y*r.y),r,o)),i.push(m)}}return i}),[]);return t.containsPoint(e)||l.push(Qt(e,r,o)),l}function on(e,t,n,r,i){var o,a=[],s=tn(i.diff(n)),l=en(n),u=e[l];while(u){o=t[l];var c=tn(o.diff(u));c.equals(s)||(a.unshift(o),s=c),l=en(u),u=e[l]}var h=t[l],d=tn(h.diff(r));return d.equals(s)||a.unshift(h),a}function an(e,t,n,r,i){var o,a,s=i.precision;o=K["h"].isRectangle(t)?Kt(Ht(e,i).clone(),s):Kt(t.clone(),s),a=K["h"].isRectangle(n)?Kt(Ut(e,i).clone(),s):Kt(n.clone(),s);var l,u,c=Yt(i.step,o,a),h=o,d=a;if(l=K["h"].isRectangle(t)?rn(h,t,i.startDirections,c,i):[h],u=K["h"].isRectangle(n)?rn(a,n,i.endDirections,c,i):[d],l=l.filter((function(e){return r.isAccessible(e)})),u=u.filter((function(e){return r.isAccessible(e)})),l.length>0&&u.length>0){for(var f=new zt,g={},p={},v={},y=0,m=l.length;y<m;y+=1){var b=l[y],x=en(b);f.add(x,nn(b,u)),g[x]=b,v[x]=0}var w,C,k=i.previousDirectionAngle,E=void 0===k,S=Xt(c,i),A=S.length,M=u.reduce((function(e,t){var n=en(t);return e.push(n),e}),[]),P=K["f"].equalPoints(l,u),T=i.maxLoopCount;while(!f.isEmpty()&&T>0){var D=f.pop(),N=g[D],j=p[D],L=v[D],F=N.equals(h),R=null==j,B=void 0;B=R?E?F?null:qt(h,N,A,c,i):k:qt(j,N,A,c,i);var z=R&&P;if(!z&&M.indexOf(D)>=0)return i.previousDirectionAngle=B,on(p,g,N,h,d);for(var I=0;I<A;I+=1){w=S[I];var V=w.angle;if(C=Wt(B,V),E&&F||!(C>i.maxDirectionChange)){var _=Qt(N.clone().translate(w.gridOffsetX||0,w.gridOffsetY||0),c,s),G=en(_);if(!f.isClose(G)&&r.isAccessible(_)){if(M.indexOf(G)>=0){var H=_.equals(d);if(!H){var U=qt(_,d,A,c,i),q=Wt(V,U);if(q>i.maxDirectionChange)continue}}var $=w.cost,W=F?0:i.penalties[C],X=L+$+W;(!f.isOpen(G)||X<v[G])&&(g[G]=_,p[G]=N,v[G]=X,f.add(G,X+nn(_,u)))}}}T-=1}}return i.fallbackRoute?O["d"].call(i.fallbackRoute,this,h,d,i):null}var sn=function(e,t,n){for(var r,i,o=Ft(t),a=_t(n,o),s=Gt(n,o),l=Ht(n,o),u=new It(o).build(n.graph.model,n.cell),c=e.map((function(e){return K["f"].create(e)})),h=[],f=l,g=0,p=c.length;g<=p;g+=1){var v=null;if(r=i||a,i=c[g],null==i){i=s;var y=n.cell,m=null==y.getSourceCellId()||null==y.getTargetCellId();if(m&&"function"===typeof o.draggingRouter){var b=r===a?l:r,x=i.getOrigin();v=O["d"].call(o.draggingRouter,n,b,x,o)}}if(null==v&&(v=an(n,r,i,u,o)),null===v)return O["d"].call(o.fallbackRouter,this,e,o,n);var w=v[0];w&&w.equals(f)&&v.shift(),f=v[v.length-1]||f,h.push.apply(h,d(v))}return h},ln=function(e,t,n){return O["d"].call(sn,this,e,Object.assign(Object.assign({},jt),t),n)},un={maxDirectionChange:45,directions:function(){var e=Lt(this.step,this),t=Lt(this.cost,this),n=Math.ceil(Math.sqrt(e*e<<1));return[{cost:t,offsetX:e,offsetY:0},{cost:n,offsetX:e,offsetY:e},{cost:t,offsetX:0,offsetY:e},{cost:n,offsetX:-e,offsetY:e},{cost:t,offsetX:-e,offsetY:0},{cost:n,offsetX:-e,offsetY:-e},{cost:t,offsetX:0,offsetY:-e},{cost:n,offsetX:e,offsetY:-e}]},fallbackRoute:function(e,t,n){var r=e.theta(t),i=[],o={x:t.x,y:e.y},a={x:e.x,y:t.y};if(r%180>90){var s=o;o=a,a=s}var l=r%90<45?o:a,u=new K["d"](e,l),c=90*Math.ceil(r/90),h=K["f"].fromPolar(u.squaredLength(),K["a"].toRad(c+135),l),d=new K["d"](t,h),f=u.intersectsWithLine(d),g=f||t,p=f?g:e,v=360/n.directions.length,y=p.theta(t),m=K["a"].normalize(y+v/2),b=v*Math.floor(m/v);return n.previousDirectionAngle=b,g&&i.push(g.round()),i.push(t),i}},cn=function(e,t,n){return O["d"].call(ln,this,e,Object.assign(Object.assign({},un),t),n)},hn=function(e,t,n){var r,i,o,a=t.offset||32,s=null==t.min?16:t.min,l=0,u=t.direction,c=n.sourceBBox,h=n.targetBBox,f=c.getCenter(),g=h.getCenter();if("number"===typeof a&&(l=a),null==u){var p=h.left-c.right,v=h.top-c.bottom;p>=0&&v>=0?u=p>=v?"L":"T":p<=0&&v>=0?(p=c.left-h.right,u=p>=0&&p>=v?"R":"T"):p>=0&&v<=0?(v=c.top-h.bottom,u=v>=0?p>=v?"L":"B":"L"):(p=c.left-h.right,v=c.top-h.bottom,u=p>=0&&v>=0?p>=v?"R":"B":p<=0&&v>=0?"B":p>=0&&v<=0||Math.abs(p)>Math.abs(v)?"R":"B")}"H"===u?u=g.x-f.x>=0?"L":"R":"V"===u&&(u=g.y-f.y>=0?"T":"B"),"center"===a&&("L"===u?l=(h.left-c.right)/2:"R"===u?l=(c.left-h.right)/2:"T"===u?l=(h.top-c.bottom)/2:"B"===u&&(l=(c.top-h.bottom)/2));var y="L"===u||"R"===u;if(y){if(g.y===f.y)return d(e);o="L"===u?1:-1,r="x",i="width"}else{if(g.x===f.x)return d(e);o="T"===u?1:-1,r="y",i="height"}var m=f.clone(),b=g.clone();if(m[r]+=o*(c[i]/2+l),b[r]-=o*(h[i]/2+l),y){var x=m.x,w=b.x,C=c.width/2+s,k=h.width/2+s;g.x>f.x?w<=x&&(m.x=Math.max(w,f.x+C),b.x=Math.min(x,g.x-k)):w>=x&&(m.x=Math.min(w,f.x-C),b.x=Math.max(x,g.x+k))}else{var E=m.y,S=b.y,A=c.height/2+s,O=h.height/2+s;g.y>f.y?S<=E&&(m.y=Math.max(S,f.y+A),b.y=Math.min(E,g.y-O)):S>=E&&(m.y=Math.min(S,f.y-A),b.y=Math.max(E,g.y+O))}return[m.toJSON()].concat(d(e),[b.toJSON()])};function dn(e,t){if(null!=t&&!1!==t){var n="boolean"===typeof t?0:t;if(n>0){var r=K["f"].create(e[1]).move(e[2],n),i=K["f"].create(e[1]).move(e[0],n);return[r.toJSON()].concat(d(e),[i.toJSON()])}var o=e[1];return[Object.assign({},o)].concat(d(e),[Object.assign({},o)])}return e}var fn,gn=function(e,t,n){var r=t.width||50,i=t.height||80,o=i/2,a=t.angle||"auto",s=n.sourceAnchor,l=n.targetAnchor,u=n.sourceBBox,c=n.targetBBox;if(s.equals(l)){var h=function(e){var t=K["a"].toRad(e),n=Math.sin(t),i=Math.cos(t),a=new K["f"](s.x+i*r,s.y+n*r),l=new K["f"](a.x-i*o,a.y-n*o),u=l.clone().rotate(-90,a),c=l.clone().rotate(90,a);return[u.toJSON(),a.toJSON(),c.toJSON()]},f=function(e){var t=s.clone().move(e,-1),n=new K["d"](t,e);return!u.containsPoint(e)&&!u.intersectsWithLine(n)},g=[0,90,180,270,45,135,225,315];if("number"===typeof a)return dn(h(a),t.merge);var p=u.getCenter();if(p.equals(s))return dn(h(0),t.merge);var v=p.angleBetween(s,p.clone().translate(1,0)),y=h(v);if(f(y[1]))return dn(y,t.merge);for(var m=1,b=g.length;m<b;m+=1)if(y=h(v+g[m]),f(y[1]))return dn(y,t.merge);return dn(y,t.merge)}var x=new K["d"](s,l),w=x.parallel(-r),C=w.getCenter(),k=w.start.clone().move(w.end,o),E=w.end.clone().move(w.start,o),S=x.parallel(-1),A=new K["d"](S.start,C),O=new K["d"](S.end,C);if((u.containsPoint(C)||c.containsPoint(C)||u.intersectsWithLine(A)||u.intersectsWithLine(O)||c.intersectsWithLine(A)||c.intersectsWithLine(O))&&(w=x.parallel(r),C=w.getCenter(),k=w.start.clone().move(w.end,o),E=w.end.clone().move(w.start,o)),t.merge){var M=new K["d"](s,l),P=new K["d"](C,M.center).setLength(Number.MAX_SAFE_INTEGER),T=u.intersectsWithLine(P),D=c.intersectsWithLine(P),N=T?Array.isArray(T)?T:[T]:[];D&&(Array.isArray(D)?N.push.apply(N,d(D)):N.push(D));var j=M.center.closest(N);j?(n.sourceAnchor=j.clone(),n.targetAnchor=j.clone()):(n.sourceAnchor=M.center.clone(),n.targetAnchor=M.center.clone())}return dn([k.toJSON(),C.toJSON(),E.toJSON()],t.merge)};(function(e){e.presets=k,e.registry=M["a"].create({type:"router"}),e.registry.register(e.presets,!0)})(fn||(fn={}));var pn,vn,yn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=[e].concat(d(n),[t]),o=new K["g"](i),a=new K["e"](o);return r.raw?a:a.serialize()},mn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=3===n.length?0:1,o=K["f"].create(n[0+i]),a=K["f"].create(n[2+i]),s=K["f"].create(n[1+i]);if(!K["f"].equals(e,t)){var l=new K["f"]((e.x+t.x)/2,(e.y+t.y)/2),u=l.angleBetween(K["f"].create(e).rotate(90,l),s);u>1&&(o.rotate(180-u,l),a.rotate(180-u,l),s.rotate(180-u,l))}var c="\n     M ".concat(e.x," ").concat(e.y,"\n     Q ").concat(o.x," ").concat(o.y," ").concat(s.x," ").concat(s.y,"\n     Q ").concat(a.x," ").concat(a.y," ").concat(t.x," ").concat(t.y,"\n  ");return r.raw?K["e"].parse(c):c},bn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=new K["e"];i.appendSegment(K["e"].createSegment("M",e));for(var o,a,s=1/3,l=2/3,u=r.radius||10,c=0,h=n.length;c<h;c+=1){var d=K["f"].create(n[c]),f=n[c-1]||e,g=n[c+1]||t;o=a||d.distance(f)/2,a=d.distance(g)/2;var p=-Math.min(u,o),v=-Math.min(u,a),y=d.clone().move(f,p).round(),m=d.clone().move(g,v).round(),b=new K["f"](s*y.x+l*d.x,l*d.y+s*y.y),x=new K["f"](s*m.x+l*d.x,l*d.y+s*m.y);i.appendSegment(K["e"].createSegment("L",y)),i.appendSegment(K["e"].createSegment("C",b,x,m))}return i.appendSegment(K["e"].createSegment("L",t)),r.raw?i:i.serialize()},xn=function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.direction;if(n&&0!==n.length){var a=[e].concat(d(n),[t]),s=K["b"].throughPoints(a);r=new K["e"](s)}else if(r=new K["e"],r.appendSegment(K["e"].createSegment("M",e)),o||(o=Math.abs(e.x-t.x)>=Math.abs(e.y-t.y)?"H":"V"),"H"===o){var l=(e.x+t.x)/2;r.appendSegment(K["e"].createSegment("C",l,e.y,l,t.y,t.x,t.y))}else{var u=(e.y+t.y)/2;r.appendSegment(K["e"].createSegment("C",e.x,u,t.x,u,t.x,t.y))}return i.raw?r:r.serialize()},wn=1,Cn=1/3,kn=2/3;function En(e){var t=e.graph._jumpOverUpdateList;if(null==t&&(t=e.graph._jumpOverUpdateList=[],e.graph.on("cell:mouseup",(function(){for(var t=e.graph._jumpOverUpdateList,n=0;n<t.length;n+=1)t[n].update()})),e.graph.on("model:reseted",(function(){t=e.graph._jumpOverUpdateList=[]}))),t.indexOf(e)<0){t.push(e);var n=function(){return t.splice(t.indexOf(e),1)};e.cell.once("change:connector",n),e.cell.once("removed",n)}}function Sn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=[e].concat(d(n),[t]),i=[];return r.forEach((function(e,t){var n=r[t+1];null!=n&&i.push(new K["d"](e,n))})),i}function An(e,t){var n=[];return t.forEach((function(t){var r=e.intersectsWithLine(t);r&&n.push(r)})),n}function On(e,t){return new K["d"](e,t).squaredLength()}function Mn(e,t,n){return t.reduce((function(r,i,o){if(vn.includes(i))return r;var a=r.pop()||e,s=K["f"].create(i).move(a.start,-n),l=K["f"].create(i).move(a.start,+n),u=t[o+1];if(null!=u){var c=l.distance(u);c<=n&&(l=u.move(a.start,c),vn.push(u))}else{var h=s.distance(a.end);if(h<2*n+wn)return r.push(a),r}var d=l.distance(a.start);if(d<2*n+wn)return r.push(a),r;var f=new K["d"](s,l);return pn.push(f),r.push(new K["d"](a.start,s),f,new K["d"](l,a.end)),r}),[])}function Pn(e,t,n,r){var i,o=new K["e"];return i=K["e"].createSegment("M",e[0].start),o.appendSegment(i),e.forEach((function(a,s){if(pn.includes(a)){var l,u,c,h;if("arc"===n){l=-90,u=a.start.diff(a.end);var d=u.x<0||0===u.x&&u.y<0;d&&(l+=180);var f,g=a.getCenter(),p=new K["d"](g,a.end).rotate(l,g);f=new K["d"](a.start,g),c=f.pointAt(2/3).rotate(l,a.start),h=p.pointAt(1/3).rotate(-l,p.end),i=K["e"].createSegment("C",c,h,p.end),o.appendSegment(i),f=new K["d"](g,a.end),c=p.pointAt(1/3).rotate(l,p.end),h=f.pointAt(1/3).rotate(-l,a.end),i=K["e"].createSegment("C",c,h,a.end),o.appendSegment(i)}else if("gap"===n)i=K["e"].createSegment("M",a.end),o.appendSegment(i);else if("cubic"===n){l=a.start.theta(a.end);var v=.6*t,y=1.35*t;u=a.start.diff(a.end);var m=u.x<0||0===u.x&&u.y<0;m&&(y*=-1),c=new K["f"](a.start.x+v,a.start.y+y).rotate(l,a.start),h=new K["f"](a.end.x-v,a.end.y+y).rotate(l,a.end),i=K["e"].createSegment("C",c,h,a.end),o.appendSegment(i)}}else{var b=e[s+1];0===r||!b||pn.includes(b)?(i=K["e"].createSegment("L",a.end),o.appendSegment(i)):Tn(r,o,a.end,a.start,b.end)}})),o}function Tn(e,t,n,r,i){var o,a=n.distance(r)/2,s=n.distance(i)/2,l=-Math.min(e,a),u=-Math.min(e,s),c=n.clone().move(r,l).round(),h=n.clone().move(i,u).round(),d=new K["f"](Cn*c.x+kn*n.x,kn*n.y+Cn*c.y),f=new K["f"](Cn*h.x+kn*n.x,kn*n.y+Cn*h.y);o=K["e"].createSegment("L",c),t.appendSegment(o),o=K["e"].createSegment("C",d,f,h),t.appendSegment(o)}var Dn,Nn=function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};pn=[],vn=[],En(this);var o=i.size||5,a=i.type||"arc",s=i.radius||0,l=i.ignoreConnectors||["smooth"],u=this.graph,c=u.model,h=c.getEdges();if(1===h.length)return Pn(Sn(e,t,n),o,a,s);var f=this.cell,g=h.indexOf(f),p=u.options.connecting.connector||{},v=h.filter((function(e,t){var n=e.getConnector()||p;return!l.includes(n.name)&&(!(t>g)||"jumpover"!==n.name)})),y=v.map((function(e){return u.renderer.findViewByCell(e)})),m=Sn(e,t,n),b=y.map((function(e){return null==e?[]:e===r?m:Sn(e.sourcePoint,e.targetPoint,e.routePoints)})),x=[];m.forEach((function(e){var t=v.reduce((function(t,n,r){if(n!==f){var i=An(e,b[r]);t.push.apply(t,d(i))}return t}),[]).sort((function(t,n){return On(e.start,t)-On(e.start,n)}));t.length>0?x.push.apply(x,d(Mn(e,t,o))):x.push(e)}));var w=Pn(x,o,a,s);return pn=[],vn=[],i.raw?w:w.serialize()};(function(e){e.presets=E,e.registry=M["a"].create({type:"connector"}),e.registry.register(e.presets,!0)})(Dn||(Dn={}));var jn=n("1cdc"),Ln=(M["a"].create,n("005c")),Fn=n("2173"),Rn=function(){function e(t){f(this,e),this.cell=t,this.ids={},this.cache={}}return g(e,[{key:"get",value:function(){return Object.keys(this.ids)}},{key:"start",value:function(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",a=this.cell.getPropByPath(t),s=O["g"].defaults(i,e.defaultOptions),l=this.getTiming(s.timing),u=this.getInterp(s.interp,a,n),c=0,h=Array.isArray(t)?t.join(o):t,d=Array.isArray(t)?t:t.split(o),f=function e(){var t=(new Date).getTime();0===c&&(c=t);var n=t-c,o=n/s.duration;o<1?r.ids[h]=O["c"].requestAnimationFrame(e):o=1;var a=u(l(o));r.cell.setPropByPath(d,a),i.progress&&i.progress(Object.assign({progress:o,currentValue:a},r.getArgs(h))),1===o&&(r.cell.notify("transition:end",r.getArgs(h)),r.cell.notify("transition:complete",r.getArgs(h)),i.complete&&i.complete(r.getArgs(h)),r.cell.notify("transition:finish",r.getArgs(h)),i.finish&&i.finish(r.getArgs(h)),r.clean(h))};return setTimeout((function(){r.stop(t,void 0,o),r.cache[h]={startValue:a,targetValue:n,options:s},r.ids[h]=O["c"].requestAnimationFrame(f),r.cell.notify("transition:begin",r.getArgs(h)),r.cell.notify("transition:start",r.getArgs(h)),i.start&&i.start(r.getArgs(h))}),i.delay),this.stop.bind(this,t,o,i)}},{key:"stop",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",i=Array.isArray(e)?e:e.split(r);return Object.keys(this.ids).filter((function(e){return O["g"].isEqual(i,e.split(r).slice(0,i.length))})).forEach((function(e){O["c"].cancelAnimationFrame(t.ids[e]);var r=t.cache[e],i=t.getArgs(e),o=Object.assign(Object.assign({},r.options),n),a=o.jumpedToEnd;a&&null!=r.targetValue&&(t.cell.setPropByPath(e,r.targetValue),t.cell.notify("transition:end",Object.assign({},i)),t.cell.notify("transition:complete",Object.assign({},i)),o.complete&&o.complete(Object.assign({},i)));var s=Object.assign({jumpedToEnd:a},i);t.cell.notify("transition:stop",Object.assign({},s)),o.stop&&o.stop(Object.assign({},s)),t.cell.notify("transition:finish",Object.assign({},i)),o.finish&&o.finish(Object.assign({},i)),t.clean(e)})),this}},{key:"clean",value:function(e){delete this.ids[e],delete this.cache[e]}},{key:"getTiming",value:function(e){return"string"===typeof e?Fn["g"][e]:e}},{key:"getInterp",value:function(e,t,n){return e?e(t,n):"number"===typeof n?Fn["f"].number(t,n):"string"===typeof n?"#"===n[0]?Fn["f"].color(t,n):Fn["f"].unit(t,n):Fn["f"].object(t,n)}},{key:"getArgs",value:function(e){var t=this.cache[e];return{path:e,startValue:t.startValue,targetValue:t.targetValue,cell:this.cell}}}]),e}();(function(e){e.defaultOptions={delay:10,duration:100,timing:"linear"}})(Rn||(Rn={}));var Bn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},zn=function(e){u(n,e);var t=c(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(this,n),e=t.call(this),e.pending=!1,e.changing=!1,e.data={},e.mutate(O["g"].cloneDeep(r)),e.changed={},e}return g(n,[{key:"mutate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!0===n.unset,i=!0===n.silent,o=[],a=this.changing;this.changing=!0,a||(this.previous=O["g"].cloneDeep(this.data),this.changed={});var s=this.data,l=this.previous,u=this.changed;if(Object.keys(e).forEach((function(t){var n=t,i=e[n];O["g"].isEqual(s[n],i)||o.push(n),O["g"].isEqual(l[n],i)?delete u[n]:u[n]=i,r?delete s[n]:s[n]=i})),!i&&o.length>0&&(this.pending=!0,this.pendingOptions=n,o.forEach((function(e){t.emit("change:*",{key:e,options:n,store:t,current:s[e],previous:l[e]})}))),a)return this;if(!i)while(this.pending)this.pending=!1,this.emit("changed",{current:s,previous:l,store:this,options:this.pendingOptions});return this.pending=!1,this.changing=!1,this.pendingOptions=null,this}},{key:"get",value:function(e,t){if(null==e)return this.data;var n=this.data[e];return null==n?t:n}},{key:"getPrevious",value:function(e){if(this.previous){var t=this.previous[e];return null==t?void 0:t}}},{key:"set",value:function(e,t,n){return null!=e&&("object"===p(e)?this.mutate(e,t):this.mutate(s({},e,t),n)),this}},{key:"remove",value:function(e,t){var n,r=void 0,i={};if("string"===typeof e)i[e]=r,n=t;else if(Array.isArray(e))e.forEach((function(e){return i[e]=r})),n=t;else{for(var o in this.data)i[o]=r;n=e}return this.mutate(i,Object.assign(Object.assign({},n),{unset:!0})),this}},{key:"getByPath",value:function(e){return O["g"].getByPath(this.data,e,"/")}},{key:"setByPath",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/",i=Array.isArray(e)?d(e):e.split(r),o=Array.isArray(e)?e.join(r):e,a=i[0],s=i.length;if(n.propertyPath=o,n.propertyValue=t,n.propertyPathArray=i,1===s)this.set(a,t,n);else{for(var l={},u=l,c=a,h=1;h<s;h+=1){var f=i[h],g=Number.isFinite(Number(f));u=u[c]=g?[]:{},c=f}O["g"].setByPath(l,i,t,r);var p=O["g"].cloneDeep(this.data);n.rewrite&&O["g"].unsetByPath(p,e,r);var v=O["g"].merge(p,l);this.set(a,v[a],n)}return this}},{key:"removeByPath",value:function(e,t){var n=Array.isArray(e)?e:e.split("/"),r=n[0];if(1===n.length)this.remove(r,t);else{var i=n.slice(1),o=O["g"].cloneDeep(this.get(r));o&&O["g"].unsetByPath(o,i),this.set(r,o,t)}return this}},{key:"hasChanged",value:function(e){return null==e?Object.keys(this.changed).length>0:e in this.changed}},{key:"getChanges",value:function(e){if(null==e)return this.hasChanged()?O["g"].cloneDeep(this.changed):null;var t,n=this.changing?this.previous:this.data,r={};for(var i in e){var o=e[i];O["g"].isEqual(n[i],o)||(r[i]=o,t=!0)}return t?O["g"].cloneDeep(r):null}},{key:"toJSON",value:function(){return O["g"].cloneDeep(this.data)}},{key:"clone",value:function(){var e=this.constructor;return new e(this.data)}},{key:"dispose",value:function(){this.off(),this.data={},this.previous={},this.changed={},this.pending=!1,this.changing=!1,this.pendingOptions=null,this.trigger("disposed",{store:this})}}]),n}(Fn["a"]);Bn([Fn["a"].dispose()],zn.prototype,"dispose",null);var In,Vn=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},_n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Gn=function(e,t){u(r,e);var n=c(r);function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f(this,r),e=n.call(this);var i=e.constructor,o=i.getDefaults(!0),s=O["g"].merge({},e.preprocess(o),e.preprocess(t));return e.id=s.id||O["k"].uuid(),e.store=new zn(s),e.animation=new Rn(a(e)),e.setup(),e.init(),e.postprocess(t),e}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"init",value:function(){}},{key:"model",get:function(){return this._model}},{key:"model",set:function(e){this._model!==e&&(this._model=e)}},{key:"preprocess",value:function(e,t){var n=e.id,r=this.constructor,i=r.applyPropHooks(this,e);return null==n&&!0!==t&&(i.id=O["k"].uuid()),i}},{key:"postprocess",value:function(e){}},{key:"setup",value:function(){var e=this;this.store.on("change:*",(function(t){var n=t.key,r=t.current,i=t.previous,o=t.options;e.notify("change:*",{key:n,options:o,current:r,previous:i,cell:e}),e.notify("change:".concat(n),{options:o,current:r,previous:i,cell:e});var a=n;"source"!==a&&"target"!==a||e.notify("change:terminal",{type:a,current:r,previous:i,options:o,cell:e})})),this.store.on("changed",(function(t){var n=t.options;return e.notify("changed",{options:n,cell:e})}))}},{key:"notify",value:function(e,t){this.trigger(e,t);var n=this.model;return n&&(n.notify("cell:".concat(e),t),this.isNode()?n.notify("node:".concat(e),Object.assign(Object.assign({},t),{node:this})):this.isEdge()&&n.notify("edge:".concat(e),Object.assign(Object.assign({},t),{edge:this}))),this}},{key:"isNode",value:function(){return!1}},{key:"isEdge",value:function(){return!1}},{key:"isSameStore",value:function(e){return this.store===e.store}},{key:"view",get:function(){return this.store.get("view")}},{key:"shape",get:function(){return this.store.get("shape","")}},{key:"getProp",value:function(e,t){return null==e?this.store.get():this.store.get(e,t)}},{key:"setProp",value:function(e,t,n){if("string"===typeof e)this.store.set(e,t,n);else{var r=this.preprocess(e,!0);this.store.set(O["g"].merge({},this.getProp(),r),t),this.postprocess(e)}return this}},{key:"removeProp",value:function(e,t){return"string"===typeof e||Array.isArray(e)?this.store.removeByPath(e,t):this.store.remove(t),this}},{key:"hasChanged",value:function(e){return null==e?this.store.hasChanged():this.store.hasChanged(e)}},{key:"getPropByPath",value:function(e){return this.store.getByPath(e)}},{key:"setPropByPath",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.model&&("children"===e?this._children=t?t.map((function(e){return n.model.getCell(e)})).filter((function(e){return null!=e})):null:"parent"===e&&(this._parent=t?this.model.getCell(t):null)),this.store.setByPath(e,t,r),this}},{key:"removePropByPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(e)?e:e.split("/");return"attrs"===n[0]&&(t.dirty=!0),this.store.removeByPath(n,t),this}},{key:"prop",value:function(e,t,n){return null==e?this.getProp():"string"===typeof e||Array.isArray(e)?1===arguments.length?this.getPropByPath(e):null==t?this.removePropByPath(e,n||{}):this.setPropByPath(e,t,n||{}):this.setProp(e,t||{})}},{key:"previous",value:function(e){return this.store.getPrevious(e)}},{key:"zIndex",get:function(){return this.getZIndex()}},{key:"zIndex",set:function(e){null==e?this.removeZIndex():this.setZIndex(e)}},{key:"getZIndex",value:function(){return this.store.get("zIndex")}},{key:"setZIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("zIndex",e,t),this}},{key:"removeZIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.remove("zIndex",e),this}},{key:"toFront",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.model;if(t){var n,r=t.getMaxZIndex();e.deep?(n=this.getDescendants({deep:!0,breadthFirst:!0}),n.unshift(this)):n=[this],r=r-n.length+1;var i=t.total(),o=t.indexOf(this)!==i-n.length;o||(o=n.some((function(e,t){return e.getZIndex()!==r+t}))),o&&this.batchUpdate("to-front",(function(){r+=n.length,n.forEach((function(t,n){t.setZIndex(r+n,e)}))}))}return this}},{key:"toBack",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.model;if(t){var n,r=t.getMinZIndex();e.deep?(n=this.getDescendants({deep:!0,breadthFirst:!0}),n.unshift(this)):n=[this];var i=0!==t.indexOf(this);i||(i=n.some((function(e,t){return e.getZIndex()!==r+t}))),i&&this.batchUpdate("to-back",(function(){r-=n.length,n.forEach((function(t,n){t.setZIndex(r+n,e)}))}))}return this}},{key:"markup",get:function(){return this.getMarkup()}},{key:"markup",set:function(e){null==e?this.removeMarkup():this.setMarkup(e)}},{key:"getMarkup",value:function(){var e=this.store.get("markup");if(null==e){var t=this.constructor;e=t.getMarkup()}return e}},{key:"setMarkup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("markup",e,t),this}},{key:"removeMarkup",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.remove("markup",e),this}},{key:"attrs",get:function(){return this.getAttrs()}},{key:"attrs",set:function(e){null==e?this.removeAttrs():this.setAttrs(e)}},{key:"getAttrs",value:function(){var e=this.store.get("attrs");return e?Object.assign({},e):{}}},{key:"setAttrs",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)this.removeAttrs(n);else{var r=function(e){return t.store.set("attrs",e,n)};if(!0===n.overwrite)r(e);else{var i=this.getAttrs();!1===n.deep?r(Object.assign(Object.assign({},i),e)):r(O["g"].merge({},i,e))}}return this}},{key:"replaceAttrs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setAttrs(e,Object.assign(Object.assign({},t),{overwrite:!0}))}},{key:"updateAttrs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setAttrs(e,Object.assign(Object.assign({},t),{deep:!1}))}},{key:"removeAttrs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.remove("attrs",e),this}},{key:"getAttrDefinition",value:function(e){if(!e)return null;var t=this.constructor,n=t.getAttrHooks()||{},r=n[e]||P["a"].registry.get(e);if(!r){var i=O["k"].camelCase(e);r=n[i]||P["a"].registry.get(i)}return r||null}},{key:"getAttrByPath",value:function(e){return null==e||""===e?this.getAttrs():this.getPropByPath(this.prefixAttrPath(e))}},{key:"setAttrByPath",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.setPropByPath(this.prefixAttrPath(e),t,n),this}},{key:"removeAttrByPath",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.removePropByPath(this.prefixAttrPath(e),t),this}},{key:"prefixAttrPath",value:function(e){return Array.isArray(e)?["attrs"].concat(e):"attrs/".concat(e)}},{key:"attr",value:function(e,t,n){return null==e?this.getAttrByPath():"string"===typeof e||Array.isArray(e)?1===arguments.length?this.getAttrByPath(e):null==t?this.removeAttrByPath(e,n||{}):this.setAttrByPath(e,t,n||{}):this.setAttrs(e,t||{})}},{key:"visible",get:function(){return this.isVisible()}},{key:"visible",set:function(e){this.setVisible(e)}},{key:"setVisible",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("visible",e,t),this}},{key:"isVisible",value:function(){return!1!==this.store.get("visible")}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isVisible()||this.setVisible(!0,e),this}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.isVisible()&&this.setVisible(!1,e),this}},{key:"toggleVisible",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="boolean"===typeof e?e:!this.isVisible(),r="boolean"===typeof e?t:e;return n?this.show(r):this.hide(r),this}},{key:"data",get:function(){return this.getData()}},{key:"data",set:function(e){this.setData(e)}},{key:"getData",value:function(){return this.store.get("data")}},{key:"setData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)this.removeData(n);else{var r=function(e){return t.store.set("data",e,n)};if(!0===n.overwrite)r(e);else{var i=this.getData();!1===n.deep?r("object"===p(e)?Object.assign(Object.assign({},i),e):e):r(O["g"].merge({},i,e))}}return this}},{key:"replaceData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setData(e,Object.assign(Object.assign({},t),{overwrite:!0}))}},{key:"updateData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setData(e,Object.assign(Object.assign({},t),{deep:!1}))}},{key:"removeData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.remove("data",e),this}},{key:"parent",get:function(){return this.getParent()}},{key:"children",get:function(){return this.getChildren()}},{key:"getParentId",value:function(){return this.store.get("parent")}},{key:"getParent",value:function(){var e=this._parent;if(null==e&&this.store){var t=this.getParentId();null!=t&&this.model&&(e=this.model.getCell(t),this._parent=e)}return e}},{key:"getChildren",value:function(){var e=this,t=this._children;if(null==t){var n=this.store.get("children");n&&n.length&&this.model&&(t=n.map((function(t){var n;return null===(n=e.model)||void 0===n?void 0:n.getCell(t)})).filter((function(e){return null!=e})),this._children=t)}return t?d(t):null}},{key:"hasParent",value:function(){return null!=this.parent}},{key:"isParentOf",value:function(e){return null!=e&&e.getParent()===this}},{key:"isChildOf",value:function(e){return null!=e&&this.getParent()===e}},{key:"eachChild",value:function(e,t){return this.children&&this.children.forEach(e,t),this}},{key:"filterChild",value:function(e,t){return this.children?this.children.filter(e,t):[]}},{key:"getChildCount",value:function(){return null==this.children?0:this.children.length}},{key:"getChildIndex",value:function(e){return null==this.children?-1:this.children.indexOf(e)}},{key:"getChildAt",value:function(e){return null!=this.children&&e>=0?this.children[e]:null}},{key:"getAncestors",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=this.getParent();while(n)t.push(n),n=!1!==e.deep?n.getParent():null;return t}},{key:"getDescendants",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!1!==e.deep){if(e.breadthFirst){var t=[],n=this.getChildren()||[];while(n.length>0){var r=n.shift(),i=r.getChildren();t.push(r),i&&n.push.apply(n,d(i))}return t}var o=this.getChildren()||[];return o.forEach((function(t){o.push.apply(o,d(t.getDescendants(e)))})),o}return this.getChildren()||[]}},{key:"isDescendantOf",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return!1;if(!1!==t.deep){var n=this.getParent();while(n){if(n===e)return!0;n=n.getParent()}return!1}return this.isChildOf(e)}},{key:"isAncestorOf",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=e&&e.isDescendantOf(this,t)}},{key:"contains",value:function(e){return this.isAncestorOf(e)}},{key:"getCommonAncestor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.getCommonAncestor.apply(r,[this].concat(t))}},{key:"setParent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._parent=e,e?this.store.set("parent",e.id,t):this.store.remove("parent",t),this}},{key:"setChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this._children=e,null!=e?this.store.set("children",e.map((function(e){return e.id})),t):this.store.remove("children",t),this}},{key:"unembed",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.children;if(null!=n&&null!=e){var r=this.getChildIndex(e);-1!==r&&(n.splice(r,1),e.setParent(null,t),this.setChildren(n,t))}return this}},{key:"embed",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.addTo(this,t),this}},{key:"addTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r.isCell(e)?e.addChild(this,t):e.addCell(this,t),this}},{key:"insertTo",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.insertChild(this,t,n),this}},{key:"addChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.insertChild(e,void 0,t)}},{key:"insertChild",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e&&e!==this){var r=e.getParent(),i=this!==r,o=t;if(null==o&&(o=this.getChildCount(),i||(o-=1)),r){var a=r.getChildren();if(a){var s=a.indexOf(e);s>=0&&(e.setParent(null,n),a.splice(s,1),r.setChildren(a,n))}}var l=this.children;if(null==l?(l=[],l.push(e)):l.splice(o,0,e),e.setParent(this,n),this.setChildren(l,n),i&&this.model){var u=this.model.getIncomingEdges(this),c=this.model.getOutgoingEdges(this);u&&u.forEach((function(e){return e.updateParent(n)})),c&&c.forEach((function(e){return e.updateParent(n)}))}this.model&&this.model.addCell(e,n)}return this}},{key:"removeFromParent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getParent();if(null!=t){var n=t.getChildIndex(this);t.removeChildAt(n,e)}return this}},{key:"removeChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getChildIndex(e);return this.removeChildAt(n,t)}},{key:"removeChildAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getChildAt(e),r=this.children;return null!=r&&null!=n&&(this.unembed(n,t),n.remove(t)),n}},{key:"remove",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.batchUpdate("remove",(function(){var n=e.getParent();n&&n.removeChild(e,t),!1!==t.deep&&e.eachChild((function(e){return e.remove(t)})),e.model&&e.model.removeCell(e,t)})),this}},{key:"transition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/";return this.animation.start(e,t,n,r)}},{key:"stopTransition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/";return this.animation.stop(e,t,n),this}},{key:"getTransitions",value:function(){return this.animation.get()}},{key:"translate",value:function(e,t,n){return this}},{key:"scale",value:function(e,t,n,r){return this}},{key:"addTools",value:function(e,t,n){var r=Array.isArray(e)?e:[e],i="string"===typeof t?t:null,o="object"===p(t)?t:"object"===p(n)?n:{};if(o.reset)return this.setTools({name:i,items:r,local:o.local},o);var a=O["g"].cloneDeep(this.getTools());return null==a||null==i||a.name===i?(null==a&&(a={}),a.items||(a.items=[]),a.name=i,a.items=[].concat(d(a.items),d(r)),this.setTools(Object.assign({},a),o)):void 0}},{key:"setTools",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?this.removeTools():this.store.set("tools",r.normalizeTools(e),t),this}},{key:"getTools",value:function(){return this.store.get("tools")}},{key:"removeTools",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.remove("tools",e),this}},{key:"hasTools",value:function(e){var t=this.getTools();return null!=t&&(null==e||t.name===e)}},{key:"hasTool",value:function(e){var t=this.getTools();return null!=t&&t.items.some((function(t){return"string"===typeof t?t===e:t.name===e}))}},{key:"removeTool",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=O["g"].cloneDeep(this.getTools());if(n){var r=!1,i=n.items.slice(),o=function(e){i.splice(e,1),r=!0};if("number"===typeof e)o(e);else for(var a=i.length-1;a>=0;a-=1){var s=i[a],l="string"===typeof s?s===e:s.name===e;l&&o(a)}r&&(n.items=i,this.setTools(n,t))}return this}},{key:"getBBox",value:function(e){return new K["h"]}},{key:"getConnectionPoint",value:function(e,t){return new K["f"]}},{key:"toJSON",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object.assign({},this.store.get()),r=Object.prototype.toString,i=this.isNode()?"node":this.isEdge()?"edge":"cell";if(!n.shape){var o=this.constructor;throw new Error("Unable to serialize ".concat(i,' missing "shape" prop, check the ').concat(i,' "').concat(o.name||r.call(o),'"'))}var a=this.constructor,s=!0===t.diff,l=n.attrs||{},u=a.getDefaults(!0),c=s?this.preprocess(u,!0):u,h=c.attrs||{},d={};Object.keys(n).forEach((function(t){var o=n[t];if(null!=o&&!Array.isArray(o)&&"object"===p(o)&&!O["g"].isPlainObject(o))throw new Error("Can only serialize ".concat(i,' with plain-object props, but got a "').concat(r.call(o),'" type of key "').concat(t,'" on ').concat(i,' "').concat(e.id,'"'));if("attrs"!==t&&"shape"!==t&&s){var a=c[t];O["g"].isEqual(o,a)&&delete n[t]}})),Object.keys(l).forEach((function(e){var t=l[e],n=h[e];Object.keys(t).forEach((function(r){var i=t[r],o=n?n[r]:null;null==i||"object"!==p(i)||Array.isArray(i)?null!=n&&O["g"].isEqual(o,i)||(null==d[e]&&(d[e]={}),d[e][r]=i):Object.keys(i).forEach((function(t){var a=i[t];if(null==n||null==o||!O["g"].isObject(o)||!O["g"].isEqual(o[t],a)){null==d[e]&&(d[e]={}),null==d[e][r]&&(d[e][r]={});var s=d[e][r];s[t]=a}}))}))}));var f=Object.assign(Object.assign({},n),{attrs:O["g"].isEmpty(d)?void 0:d});null==f.attrs&&delete f.attrs;var g=f;return 0===g.angle&&delete g.angle,O["g"].cloneDeep(g)}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.deep){var t=Object.assign({},this.store.get());e.keepId||delete t.id,delete t.parent,delete t.children;var n=this.constructor;return new n(t)}var i=r.deepClone(this);return i[this.id]}},{key:"findView",value:function(e){return e.renderer.findViewByCell(this)}},{key:"startBatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.model;return this.notify("batch:start",{name:e,data:t,cell:this}),n&&n.startBatch(e,Object.assign(Object.assign({},t),{cell:this})),this}},{key:"stopBatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.model;return n&&n.stopBatch(e,Object.assign(Object.assign({},t),{cell:this})),this.notify("batch:stop",{name:e,data:t,cell:this}),this}},{key:"batchUpdate",value:function(e,t,n){var r=this.model;this.startBatch(e,n,r);var i=t();return this.stopBatch(e,n,r),i}},{key:"dispose",value:function(){this.removeFromParent(),this.store.dispose()}}],[{key:"config",value:function(e){var t,n=this,r=e.markup,i=e.propHooks,o=e.attrHooks,a=_n(e,["markup","propHooks","attrHooks"]);(null!=r&&(this.markup=r),i)&&(this.propHooks=this.propHooks.slice(),Array.isArray(i)?(t=this.propHooks).push.apply(t,d(i)):"function"===typeof i?this.propHooks.push(i):Object.keys(i).forEach((function(e){var t=i[e];"function"===typeof t&&n.propHooks.push(t)})));o&&(this.attrHooks=Object.assign(Object.assign({},this.attrHooks),o)),this.defaults=O["g"].merge({},this.defaults,a)}},{key:"getMarkup",value:function(){return this.markup}},{key:"getDefaults",value:function(e){return e?this.defaults:O["g"].cloneDeep(this.defaults)}},{key:"getAttrHooks",value:function(){return this.attrHooks}},{key:"applyPropHooks",value:function(e,t){return this.propHooks.reduce((function(t,n){return n?O["d"].call(n,e,t):t}),t)}}]),r}(Fn["a"],Symbol.toStringTag);Gn.defaults={},Gn.attrHooks={},Gn.propHooks=[],Vn([Fn["a"].dispose()],Gn.prototype,"dispose",null),function(e){function t(e){return"string"===typeof e?{items:[e]}:Array.isArray(e)?{items:e}:e.items?e:{items:[e]}}e.normalizeTools=t}(Gn||(Gn={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"===typeof r.isNode&&"function"===typeof r.isEdge&&"function"===typeof r.prop&&"function"===typeof r.attr}e.toStringTag="X6.".concat(e.name),e.isCell=t}(Gn||(Gn={})),function(e){function t(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter((function(e){return null!=e})).map((function(e){return e.getAncestors()})).sort((function(e,t){return e.length-t.length})),i=r.shift();return i.find((function(e){return r.every((function(t){return t.includes(e)}))}))||null}function n(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=0,i=e.length;r<i;r+=1){var o=e[r],a=o.getBBox(t);if(a){if(o.isNode()){var s=o.getAngle();null!=s&&0!==s&&(a=a.bbox(s))}n=null==n?a:n.union(a)}}return n}function r(t){var n=[t].concat(d(t.getDescendants({deep:!0})));return e.cloneCells(n)}function i(e){var t=O["a"].uniq(e),n=t.reduce((function(e,t){return e[t.id]=t.clone(),e}),{});return t.forEach((function(e){var t=n[e.id];if(t.isEdge()){var r=t.getSourceCellId(),i=t.getTargetCellId();r&&n[r]&&t.setSource(Object.assign(Object.assign({},t.getSource()),{cell:n[r].id})),i&&n[i]&&t.setTarget(Object.assign(Object.assign({},t.getTarget()),{cell:n[i].id}))}var o=e.getParent();o&&n[o.id]&&t.setParent(n[o.id]);var a=e.getChildren();if(a&&a.length){var s=a.reduce((function(e,t){return n[t.id]&&e.push(n[t.id]),e}),[]);s.length>0&&t.setChildren(s)}})),n}e.getCommonAncestor=t,e.getCellsBBox=n,e.deepClone=r,e.cloneCells=i}(Gn||(Gn={})),function(e){e.config({propHooks:function(t){var n=t.tools,r=_n(t,["tools"]);return n&&(r.tools=e.normalizeTools(n)),r}})}(Gn||(Gn={})),function(e){var t,n;function r(e,r){return r?null!=t&&t.exist(e):null!=n&&n.exist(e)}function i(e){t=e}function o(e){n=e}e.exist=r,e.setEdgeRegistry=i,e.setNodeRegistry=o}(In||(In={}));var Hn=function(){function e(t){f(this,e),this.ports=[],this.groups={},this.init(O["g"].cloneDeep(t))}return g(e,[{key:"getPorts",value:function(){return this.ports}},{key:"getGroup",value:function(e){return null!=e?this.groups[e]:null}},{key:"getPortsByGroup",value:function(e){return this.ports.filter((function(t){return t.group===e||null==t.group&&null==e}))}},{key:"getPortsLayoutByGroup",value:function(e,t){var n,r=this,i=this.getPortsByGroup(e),o=e?this.getGroup(e):null,a=o?o.position:null,s=a?a.name:null;if(null!=s){var l=pe.registry.get(s);if(null==l)return pe.registry.onNotFound(s);n=l}else n=pe.presets.left;var u=i.map((function(e){return e&&e.position&&e.position.args||{}})),c=a&&a.args||{},h=n(u,t,c);return h.map((function(e,n){var o=i[n];return{portLayout:e,portId:o.id,portSize:o.size,portAttrs:o.attrs,labelSize:o.label.size,labelLayout:r.getPortLabelLayout(o,K["f"].create(e.position),t)}}))}},{key:"init",value:function(e){var t=this,n=e.groups,r=e.items;null!=n&&Object.keys(n).forEach((function(e){t.groups[e]=t.parseGroup(n[e])})),Array.isArray(r)&&r.forEach((function(e){t.ports.push(t.parsePort(e))}))}},{key:"parseGroup",value:function(e){return Object.assign(Object.assign({},e),{label:this.getLabel(e,!0),position:this.getPortPosition(e.position,!0)})}},{key:"parsePort",value:function(e){var t=Object.assign({},e),n=this.getGroup(e.group)||{};return t.markup=t.markup||n.markup,t.attrs=O["g"].merge({},n.attrs,t.attrs),t.position=this.createPosition(n,t),t.label=O["g"].merge({},n.label,this.getLabel(t)),t.zIndex=this.getZIndex(n,t),t.size=Object.assign(Object.assign({},n.size),t.size),t}},{key:"getZIndex",value:function(e,t){return"number"===typeof t.zIndex?t.zIndex:"number"===typeof e.zIndex||"auto"===e.zIndex?e.zIndex:"auto"}},{key:"createPosition",value:function(e,t){return O["g"].merge({name:"left",args:{}},e.position,{args:t.args})}},{key:"getPortPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e){if(t)return{name:"left",args:{}}}else{if("string"===typeof e)return{name:e,args:{}};if(Array.isArray(e))return{name:"absolute",args:{x:e[0],y:e[1]}};if("object"===p(e))return e}return{args:{}}}},{key:"getPortLabelPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e){if(t)return{name:"left",args:{}}}else{if("string"===typeof e)return{name:e,args:{}};if("object"===p(e))return e}return{args:{}}}},{key:"getLabel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.label||{};return n.position=this.getPortLabelPosition(n.position,t),n}},{key:"getPortLabelLayout",value:function(e,t,n){var r=e.label.position.name||"left",i=e.label.position.args||{},o=Be.registry.get(r)||Be.presets.left;return o?o(t,n,i):null}}]),e}(),Un=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},qn=function(e,t){u(r,e);var n=c(r);function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(this,r),e=n.call(this,t),e.initPorts(),e}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"preprocess",value:function(e,t){var n=e.x,a=e.y,s=e.width,l=e.height,u=Un(e,["x","y","width","height"]);if(null!=n||null!=a){var c=u.position;u.position=Object.assign(Object.assign({},c),{x:null!=n?n:c?c.x:0,y:null!=a?a:c?c.y:0})}if(null!=s||null!=l){var h=u.size;u.size=Object.assign(Object.assign({},h),{width:null!=s?s:h?h.width:0,height:null!=l?l:h?h.height:0})}return i(o(r.prototype),"preprocess",this).call(this,u,t)}},{key:"isNode",value:function(){return!0}},{key:"size",value:function(e,t,n){return void 0===e?this.getSize():"number"===typeof e?this.setSize(e,t,n):this.setSize(e,t)}},{key:"getSize",value:function(){var e=this.store.get("size");return e?Object.assign({},e):{width:1,height:1}}},{key:"setSize",value:function(e,t,n){return"object"===p(e)?this.resize(e.width,e.height,t):this.resize(e,t,n),this}},{key:"resize",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.startBatch("resize",n);var r=n.direction;if(r){var i=this.getSize();switch(r){case"left":case"right":t=i.height;break;case"top":case"bottom":e=i.width;break;default:break}var o={right:0,"top-right":0,top:1,"top-left":1,left:2,"bottom-left":2,bottom:3,"bottom-right":3},a=o[r],s=K["a"].normalize(this.getAngle()||0);n.absolute&&(a+=Math.floor((s+45)/90),a%=4);var l,u=this.getBBox();l=0===a?u.getBottomLeft():1===a?u.getCorner():2===a?u.getTopRight():u.getOrigin();var c=l.clone().rotate(-s,u.getCenter()),h=Math.sqrt(e*e+t*t)/2,d=a*Math.PI/2;d+=Math.atan(a%2===0?t/e:e/t),d-=K["a"].toRad(s);var f=K["f"].fromPolar(h,d,c),g=f.clone().translate(e/-2,t/-2);this.store.set("size",{width:e,height:t},n),this.setPosition(g.x,g.y,n)}else this.store.set("size",{width:e,height:t},n);return this.stopBatch("resize",n),this}},{key:"scale",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=this.getBBox().scale(e,t,null==n?void 0:n);return this.startBatch("scale",r),this.setPosition(i.x,i.y,r),this.resize(i.width,i.height,r),this.stopBatch("scale"),this}},{key:"position",value:function(e,t,n){return"number"===typeof e?this.setPosition(e,t,n):this.getPosition(e)}},{key:"getPosition",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.relative){var t=this.getParent();if(null!=t&&t.isNode()){var n=this.getPosition(),r=t.getPosition();return{x:n.x-r.x,y:n.y-r.y}}}var i=this.store.get("position");return i?Object.assign({},i):{x:0,y:0}}},{key:"setPosition",value:function(e,t){var n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("object"===p(e)?(n=e.x,r=e.y,i=t||{}):(n=e,r=t,i=o||{}),i.relative){var a=this.getParent();if(null!=a&&a.isNode()){var s=a.getPosition();n+=s.x,r+=s.y}}if(i.deep){var l=this.getPosition();this.translate(n-l.x,r-l.y,i)}else this.store.set("position",{x:n,y:r},i);return this}},{key:"translate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===e&&0===t)return this;n.translateBy=n.translateBy||this.id;var r=this.getPosition();if(null!=n.restrict&&n.translateBy===this.id){var i=this.getBBox({deep:!0}),o=n.restrict,a=r.x-i.x,s=r.y-i.y,l=Math.max(o.x+a,Math.min(o.x+o.width+a-i.width,r.x+e)),u=Math.max(o.y+s,Math.min(o.y+o.height+s-i.height,r.y+t));e=l-r.x,t=u-r.y}var c={x:r.x+e,y:r.y+t};return n.tx=e,n.ty=t,n.transition?("object"!==p(n.transition)&&(n.transition={}),this.transition("position",c,Object.assign(Object.assign({},n.transition),{interp:Fn["f"].object})),this.eachChild((function(r){var i,o=null===(i=n.exclude)||void 0===i?void 0:i.includes(r);o||r.translate(e,t,n)}))):(this.startBatch("translate",n),this.store.set("position",c,n),this.eachChild((function(r){var i,o=null===(i=n.exclude)||void 0===i?void 0:i.includes(r);o||r.translate(e,t,n)})),this.stopBatch("translate",n)),this}},{key:"angle",value:function(e,t){return null==e?this.getAngle():this.rotate(e,t)}},{key:"getAngle",value:function(){return this.store.get("angle",0)}},{key:"rotate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAngle();if(t.center){var r=this.getSize(),i=this.getPosition(),o=this.getBBox().getCenter();o.rotate(n-e,t.center);var a=o.x-r.width/2-i.x,s=o.y-r.height/2-i.y;this.startBatch("rotate",{angle:e,options:t}),this.setPosition(i.x+a,i.y+s,t),this.rotate(e,Object.assign(Object.assign({},t),{center:null})),this.stopBatch("rotate")}else this.store.set("angle",t.absolute?e:(n+e)%360,t);return this}},{key:"getBBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.deep){var t=this.getDescendants({deep:!0,breadthFirst:!0});return t.push(this),Gn.getCellsBBox(t)}return K["h"].fromPositionAndSize(this.getPosition(),this.getSize())}},{key:"getConnectionPoint",value:function(e,t){var n=this.getBBox(),r=n.getCenter(),i=e.getTerminal(t);if(null==i)return r;var o=i.port;if(!o||!this.hasPort(o))return r;var a=this.getPort(o);if(!a||!a.group)return r;var s=this.getPortsPosition(a.group),l=s[o].position,u=K["f"].create(l).translate(n.getOrigin()),c=this.getAngle();return c&&u.rotate(-c,r),u}},{key:"fit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getChildren()||[],n=t.filter((function(e){return e.isNode()}));if(0===n.length)return this;this.startBatch("fit-embeds",e),e.deep&&n.forEach((function(t){return t.fit(e)}));var r=Gn.getCellsBBox(n),i=r.x,o=r.y,a=r.width,s=r.height,l=O["f"].normalizeSides(e.padding);return i-=l.left,o-=l.top,a+=l.left+l.right,s+=l.bottom+l.top,this.store.set({position:{x:i,y:o},size:{width:a,height:s}},e),this.stopBatch("fit-embeds"),this}},{key:"portContainerMarkup",get:function(){return this.getPortContainerMarkup()}},{key:"portContainerMarkup",set:function(e){this.setPortContainerMarkup(e)}},{key:"getDefaultPortContainerMarkup",value:function(){return this.store.get("defaultPortContainerMarkup")||Ln["a"].getPortContainerMarkup()}},{key:"getPortContainerMarkup",value:function(){return this.store.get("portContainerMarkup")||this.getDefaultPortContainerMarkup()}},{key:"setPortContainerMarkup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("portContainerMarkup",Ln["a"].clone(e),t),this}},{key:"portMarkup",get:function(){return this.getPortMarkup()}},{key:"portMarkup",set:function(e){this.setPortMarkup(e)}},{key:"getDefaultPortMarkup",value:function(){return this.store.get("defaultPortMarkup")||Ln["a"].getPortMarkup()}},{key:"getPortMarkup",value:function(){return this.store.get("portMarkup")||this.getDefaultPortMarkup()}},{key:"setPortMarkup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("portMarkup",Ln["a"].clone(e),t),this}},{key:"portLabelMarkup",get:function(){return this.getPortLabelMarkup()}},{key:"portLabelMarkup",set:function(e){this.setPortLabelMarkup(e)}},{key:"getDefaultPortLabelMarkup",value:function(){return this.store.get("defaultPortLabelMarkup")||Ln["a"].getPortLabelMarkup()}},{key:"getPortLabelMarkup",value:function(){return this.store.get("portLabelMarkup")||this.getDefaultPortLabelMarkup()}},{key:"setPortLabelMarkup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("portLabelMarkup",Ln["a"].clone(e),t),this}},{key:"ports",get:function(){var e=this.store.get("ports",{items:[]});return null==e.items&&(e.items=[]),e}},{key:"getPorts",value:function(){return O["g"].cloneDeep(this.ports.items)}},{key:"getPortsByGroup",value:function(e){return this.getPorts().filter((function(t){return t.group===e}))}},{key:"getPort",value:function(e){return O["g"].cloneDeep(this.ports.items.find((function(t){return t.id&&t.id===e})))}},{key:"getPortAt",value:function(e){return this.ports.items[e]||null}},{key:"hasPorts",value:function(){return this.ports.items.length>0}},{key:"hasPort",value:function(e){return-1!==this.getPortIndex(e)}},{key:"getPortIndex",value:function(e){var t="string"===typeof e?e:e.id;return null!=t?this.ports.items.findIndex((function(e){return e.id===t})):-1}},{key:"getPortsPosition",value:function(e){var t=this.getSize(),n=this.port.getPortsLayoutByGroup(e,new K["h"](0,0,t.width,t.height));return n.reduce((function(e,t){var n=t.portLayout;return e[t.portId]={position:Object.assign({},n.position),angle:n.angle||0},e}),{})}},{key:"getPortProp",value:function(e,t){return this.getPropByPath(this.prefixPortPath(e,t))}},{key:"setPortProp",value:function(e,t,n,r){if("string"===typeof t||Array.isArray(t)){var i=this.prefixPortPath(e,t),o=n;return this.setPropByPath(i,o,r)}var a=this.prefixPortPath(e),s=t;return this.setPropByPath(a,s,n)}},{key:"removePortProp",value:function(e,t,n){return"string"===typeof t||Array.isArray(t)?this.removePropByPath(this.prefixPortPath(e,t),n):this.removePropByPath(this.prefixPortPath(e),t)}},{key:"portProp",value:function(e,t,n,r){return null==t?this.getPortProp(e):"string"===typeof t||Array.isArray(t)?2===arguments.length?this.getPortProp(e,t):null==n?this.removePortProp(e,t,r):this.setPortProp(e,t,n,r):this.setPortProp(e,t,n)}},{key:"prefixPortPath",value:function(e,t){var n=this.getPortIndex(e);if(-1===n)throw new Error('Unable to find port with id: "'.concat(e,'"'));return null==t||""===t?["ports","items","".concat(n)]:Array.isArray(t)?["ports","items","".concat(n)].concat(d(t)):"ports/items/".concat(n,"/").concat(t)}},{key:"addPort",value:function(e,t){var n=d(this.ports.items);return n.push(e),this.setPropByPath("ports/items",n,t),this}},{key:"addPorts",value:function(e,t){return this.setPropByPath("ports/items",[].concat(d(this.ports.items),d(e)),t),this}},{key:"removePort",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.removePortAt(this.getPortIndex(e),t)}},{key:"removePortAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e>=0){var n=d(this.ports.items);n.splice(e,1),t.rewrite=!0,this.setPropByPath("ports/items",n,t)}return this}},{key:"removePorts",value:function(e,t){var n;if(Array.isArray(e)){if(n=t||{},e.length){n.rewrite=!0;var r=d(this.ports.items),i=r.filter((function(t){return!e.some((function(e){var n="string"===typeof e?e:e.id;return t.id===n}))}));this.setPropByPath("ports/items",i,n)}}else n=e||{},n.rewrite=!0,this.setPropByPath("ports/items",[],n);return this}},{key:"getParsedPorts",value:function(){return this.port.getPorts()}},{key:"getParsedGroups",value:function(){return this.port.groups}},{key:"getPortsLayoutByGroup",value:function(e,t){return this.port.getPortsLayoutByGroup(e,t)}},{key:"initPorts",value:function(){var e=this;this.updatePortData(),this.on("change:ports",(function(){e.processRemovedPort(),e.updatePortData()}))}},{key:"processRemovedPort",value:function(){var e=this.ports,t={};e.items.forEach((function(e){e.id&&(t[e.id]=!0)}));var n={},r=this.store.getPrevious("ports")||{items:[]};r.items.forEach((function(e){e.id&&!t[e.id]&&(n[e.id]=!0)}));var i=this.model;if(i&&!O["g"].isEmpty(n)){var o=i.getConnectedEdges(this,{incoming:!0});o.forEach((function(e){var t=e.getTargetPortId();t&&n[t]&&e.remove()}));var a=i.getConnectedEdges(this,{outgoing:!0});a.forEach((function(e){var t=e.getSourcePortId();t&&n[t]&&e.remove()}))}}},{key:"validatePorts",value:function(){var e=this,t={},n=[];return this.ports.items.forEach((function(r){"object"!==p(r)&&n.push("Invalid port ".concat(r,".")),null==r.id&&(r.id=e.generatePortId()),t[r.id]&&n.push("Duplicitied port id."),t[r.id]=!0})),n}},{key:"generatePortId",value:function(){return O["k"].uuid()}},{key:"updatePortData",value:function(){var e=this.validatePorts();if(e.length>0)throw this.store.set("ports",this.store.getPrevious("ports")),new Error(e.join(" "));var t=this.port?this.port.getPorts():null;this.port=new Hn(this.ports);var n=this.port.getPorts(),r=t?n.filter((function(e){return t.find((function(t){return t.id===e.id}))?null:e})):d(n),i=t?t.filter((function(e){return n.find((function(t){return t.id===e.id}))?null:e})):[];r.length>0&&this.notify("ports:added",{added:r,cell:this,node:this}),i.length>0&&this.notify("ports:removed",{removed:i,cell:this,node:this})}}]),r}(Gn,Symbol.toStringTag);qn.defaults={angle:0,position:{x:0,y:0},size:{width:1,height:1}},function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"===typeof r.isNode&&"function"===typeof r.isEdge&&"function"===typeof r.prop&&"function"===typeof r.attr&&"function"===typeof r.size&&"function"===typeof r.position}e.toStringTag="X6.".concat(e.name),e.isNode=t}(qn||(qn={})),function(e){e.config({propHooks:function(e){var t=e.ports,n=Un(e,["ports"]);return t&&(n.ports=Array.isArray(t)?{items:t}:t),n}})}(qn||(qn={})),function(e){e.registry=M["a"].create({type:"node",process:function(t,n){if(In.exist(t,!0))throw new Error("Node with name '".concat(t,"' was registered by anthor Edge"));if("function"===typeof n)return n.config({shape:t}),n;var r=e,i=n.inherit,o=Un(n,["inherit"]);if(i)if("string"===typeof i){var a=this.get(i);null==a?this.onNotFound(i,"inherited"):r=a}else r=i;null==o.constructorName&&(o.constructorName=t);var s=r.define.call(r,o);return s.config({shape:t}),s}}),In.setNodeRegistry(e.registry)}(qn||(qn={})),function(e){var t=0;function n(e){return e?O["k"].pascalCase(e):(t+=1,"CustomNode".concat(t))}function r(t){var r=t.constructorName,i=t.overwrite,o=Un(t,["constructorName","overwrite"]),a=O["g"].createClass(n(r||o.shape),this);return a.config(o),o.shape&&e.registry.register(o.shape,a,i),a}function i(t){var n=t.shape||"rect",r=e.registry.get(n);return r?new r(t):e.registry.onNotFound(n)}e.define=r,e.create=i}(qn||(qn={}));var $n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Wn=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"label",get:function(){return this.getLabel()},set:function(e){this.setLabel(e)}},{key:"getLabel",value:function(){return this.getAttrByPath("text/text")}},{key:"setLabel",value:function(e,t){return null==e?this.removeLabel():this.setAttrByPath("text/text",e,t),this}},{key:"removeLabel",value:function(){return this.removeAttrByPath("text/text"),this}}]),n}(qn);(function(e){e.bodyAttr={fill:"#ffffff",stroke:"#333333",strokeWidth:2},e.labelAttr={fontSize:14,fill:"#000000",refX:.5,refY:.5,textAnchor:"middle",textVerticalAnchor:"middle",fontFamily:"Arial, helvetica, sans-serif"},e.config({attrs:{text:Object.assign({},e.labelAttr)},propHooks:function(e){var t=e.label,n=$n(e,["label"]);return t&&O["g"].setByPath(n,"attrs/text/text",t),n}})})(Wn||(Wn={}));var Xn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function Yn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return'<g class="rotatable"><g class="scalable"><'.concat(e,"/></g>").concat(t?"":"<text/>","</g>")}function Jn(e){return"basic.".concat(e)}function Zn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"xlink:href",t=function(t){var n=t.imageUrl,r=t.imageWidth,i=t.imageHeight,o=Xn(t,["imageUrl","imageWidth","imageHeight"]);if(null!=n||null!=r||null!=i){var a=function(){if(o.attrs){var t=o.attrs.image;null!=n&&(t[e]=n),null!=r&&(t.width=r),null!=i&&(t.height=i),o.attrs.image=t}};o.attrs?(null==o.attrs.image&&(o.attrs.image={}),a()):(o.attrs={image:{}},a())}return o};return t}function Kn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Jn(e),i={constructorName:r,attrs:s({".":{fill:"#ffffff",stroke:"none"}},e,{fill:"#ffffff",stroke:"#000000"})};n.ignoreMarkup||(i.markup=Yn(e,!0===n.noText));var o=n.parent||Wn;return o.define(O["g"].merge(i,t,{shape:r}))}Kn("rect",{attrs:{rect:{width:100,height:60}}}),Kn("circle",{width:60,height:60,attrs:{circle:{r:30,cx:30,cy:30}}}),Kn("ellipse",{width:60,height:40,attrs:{ellipse:{rx:30,ry:20,cx:30,cy:20}}}),Kn("polygon",{width:60,height:40,attrs:{text:{refY:null,refDy:16}}}),Kn("polyline",{width:60,height:40,attrs:{text:{refY:null,refDy:16}}}),Kn("image",{attrs:{text:{refY:null,refDy:16}},propHooks:Zn()});var Qn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},er=Kn("path",{width:60,height:60,attrs:{text:{ref:"path",refY:null,refDy:16}},propHooks:function(e){var t=e.d,n=Qn(e,["d"]);return null!=t&&O["g"].setByPath(n,"attrs/path/d",t),n}}),tr=(Kn("rhombus",{d:"M 30 0 L 60 30 30 60 0 30 z",attrs:{text:{refY:.5,refDy:null}}},{parent:er,ignoreMarkup:!0}),Kn("cylinder",{width:40,height:40,attrs:{path:{fill:"#FFFFFF",stroke:"#cbd2d7",strokeWidth:3,d:["M 0 10 C 10 5, 30 5, 40 10 C 30 15, 10 15, 0 10","L 0 20","C 10 25, 30 25, 40 20","L 40 10"].join(" ")},text:{refY:.7,refDy:null,fill:"#435460"}}},{parent:er,ignoreMarkup:!0}),n("b20e")),nr=n("b865"),rr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},ir=function(e,t){u(r,e);var n=c(r);function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(this,r),n.call(this,e)}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"preprocess",value:function(e,t){var n=e.source,a=e.sourceCell,s=e.sourcePort,l=e.sourcePoint,u=e.target,c=e.targetCell,h=e.targetPort,d=e.targetPoint,f=rr(e,["source","sourceCell","sourcePort","sourcePoint","target","targetCell","targetPort","targetPoint"]),g=f,p=function(e){return"string"===typeof e||"number"===typeof e};if(null!=n)if(Gn.isCell(n))g.source={cell:n.id};else if(p(n))g.source={cell:n};else if(K["f"].isPoint(n))g.source=n.toJSON();else if(Array.isArray(n))g.source={x:n[0],y:n[1]};else{var v=n.cell;Gn.isCell(v)?g.source=Object.assign(Object.assign({},n),{cell:v.id}):g.source=n}if(null!=a||null!=s){var y=g.source;if(null!=a){var m=p(a)?a:a.id;y?y.cell=m:y=g.source={cell:m}}null!=s&&y&&(y.port=s)}else null!=l&&(g.source=K["f"].create(l).toJSON());if(null!=u)if(Gn.isCell(u))g.target={cell:u.id};else if(p(u))g.target={cell:u};else if(K["f"].isPoint(u))g.target=u.toJSON();else if(Array.isArray(u))g.target={x:u[0],y:u[1]};else{var b=u.cell;Gn.isCell(b)?g.target=Object.assign(Object.assign({},u),{cell:b.id}):g.target=u}if(null!=c||null!=h){var x=g.target;if(null!=c){var w=p(c)?c:c.id;x?x.cell=w:x=g.target={cell:w}}null!=h&&x&&(x.port=h)}else null!=d&&(g.target=K["f"].create(d).toJSON());return i(o(r.prototype),"preprocess",this).call(this,g,t)}},{key:"setup",value:function(){var e=this;i(o(r.prototype),"setup",this).call(this),this.on("change:labels",(function(t){return e.onLabelsChanged(t)})),this.on("change:vertices",(function(t){return e.onVertexsChanged(t)}))}},{key:"isEdge",value:function(){return!0}},{key:"disconnect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.set({source:{x:0,y:0},target:{x:0,y:0}},e),this}},{key:"source",get:function(){return this.getSource()}},{key:"source",set:function(e){this.setSource(e)}},{key:"getSource",value:function(){return this.getTerminal("source")}},{key:"getSourceCellId",value:function(){return this.source.cell}},{key:"getSourcePortId",value:function(){return this.source.port}},{key:"setSource",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.setTerminal("source",e,t,n)}},{key:"target",get:function(){return this.getTarget()}},{key:"target",set:function(e){this.setTarget(e)}},{key:"getTarget",value:function(){return this.getTerminal("target")}},{key:"getTargetCellId",value:function(){return this.target.cell}},{key:"getTargetPortId",value:function(){return this.target.port}},{key:"setTarget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.setTerminal("target",e,t,n)}},{key:"getTerminal",value:function(e){return Object.assign({},this.store.get(e))}},{key:"setTerminal",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(Gn.isCell(t))return this.store.set(e,O["g"].merge({},n,{cell:t.id}),r),this;var i=t;return K["f"].isPoint(t)||null!=i.x&&null!=i.y?(this.store.set(e,O["g"].merge({},n,{x:i.x,y:i.y}),r),this):(this.store.set(e,O["g"].cloneDeep(t),r),this)}},{key:"getSourcePoint",value:function(){return this.getTerminalPoint("source")}},{key:"getTargetPoint",value:function(){return this.getTerminalPoint("target")}},{key:"getTerminalPoint",value:function(e){var t=this[e];if(K["f"].isPointLike(t))return K["f"].create(t);var n=this.getTerminalCell(e);return n?n.getConnectionPoint(this,e):new K["f"]}},{key:"getSourceCell",value:function(){return this.getTerminalCell("source")}},{key:"getTargetCell",value:function(){return this.getTerminalCell("target")}},{key:"getTerminalCell",value:function(e){if(this.model){var t="source"===e?this.getSourceCellId():this.getTargetCellId();if(t)return this.model.getCell(t)}return null}},{key:"getSourceNode",value:function(){return this.getTerminalNode("source")}},{key:"getTargetNode",value:function(){return this.getTerminalNode("target")}},{key:"getTerminalNode",value:function(e){var t=this,n={};while(t&&t.isEdge()){if(n[t.id])return null;n[t.id]=!0,t=t.getTerminalCell(e)}return t&&t.isNode()?t:null}},{key:"router",get:function(){return this.getRouter()}},{key:"router",set:function(e){null==e?this.removeRouter():this.setRouter(e)}},{key:"getRouter",value:function(){return this.store.get("router")}},{key:"setRouter",value:function(e,t,n){return"object"===p(e)?this.store.set("router",e,t):this.store.set("router",{name:e,args:t},n),this}},{key:"removeRouter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.remove("router",e),this}},{key:"connector",get:function(){return this.getConnector()}},{key:"connector",set:function(e){null==e?this.removeConnector():this.setConnector(e)}},{key:"getConnector",value:function(){return this.store.get("connector")}},{key:"setConnector",value:function(e,t,n){return"object"===p(e)?this.store.set("connector",e,t):this.store.set("connector",{name:e,args:t},n),this}},{key:"removeConnector",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.remove("connector",e)}},{key:"strategy",get:function(){return this.getStrategy()}},{key:"strategy",set:function(e){null==e?this.removeStrategy():this.setStrategy(e)}},{key:"getStrategy",value:function(){return this.store.get("strategy")}},{key:"setStrategy",value:function(e,t,n){return"object"===p(e)?this.store.set("strategy",e,t):this.store.set("strategy",{name:e,args:t},n),this}},{key:"removeStrategy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.remove("strategy",e)}},{key:"getDefaultLabel",value:function(){var e=this.constructor,t=this.store.get("defaultLabel")||e.defaultLabel||{};return O["g"].cloneDeep(t)}},{key:"labels",get:function(){return this.getLabels()}},{key:"labels",set:function(e){this.setLabels(e)}},{key:"getLabels",value:function(){var e=this;return d(this.store.get("labels",[])).map((function(t){return e.parseLabel(t)}))}},{key:"setLabels",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("labels",Array.isArray(e)?e:[e],t),this}},{key:"insertLabel",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getLabels(),i=r.length,o=null!=t&&Number.isFinite(t)?t:i;return o<0&&(o=i+o+1),r.splice(o,0,this.parseLabel(e)),this.setLabels(r,n)}},{key:"appendLabel",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.insertLabel(e,-1,t)}},{key:"getLabelAt",value:function(e){var t=this.getLabels();return null!=e&&Number.isFinite(e)?this.parseLabel(t[e]):null}},{key:"setLabelAt",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e&&Number.isFinite(e)){var r=this.getLabels();r[e]=this.parseLabel(t),this.setLabels(r,n)}return this}},{key:"removeLabelAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getLabels(),r=null!=e&&Number.isFinite(e)?e:-1,i=n.splice(r,1);return this.setLabels(n,t),i.length?i[0]:null}},{key:"parseLabel",value:function(e){if("string"===typeof e){var t=this.constructor;return t.parseStringLabel(e)}return e}},{key:"onLabelsChanged",value:function(e){var t=e.previous,n=e.current,r=t&&n?n.filter((function(e){return t.find((function(t){return e===t||O["g"].isEqual(e,t)}))?null:e})):n?d(n):[],i=t&&n?t.filter((function(e){return n.find((function(t){return e===t||O["g"].isEqual(e,t)}))?null:e})):t?d(t):[];r.length>0&&this.notify("labels:added",{added:r,cell:this,edge:this}),i.length>0&&this.notify("labels:removed",{removed:i,cell:this,edge:this})}},{key:"vertexMarkup",get:function(){return this.getVertexMarkup()}},{key:"vertexMarkup",set:function(e){this.setVertexMarkup(e)}},{key:"getDefaultVertexMarkup",value:function(){return this.store.get("defaultVertexMarkup")||Ln["a"].getEdgeVertexMarkup()}},{key:"getVertexMarkup",value:function(){return this.store.get("vertexMarkup")||this.getDefaultVertexMarkup()}},{key:"setVertexMarkup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("vertexMarkup",Ln["a"].clone(e),t),this}},{key:"vertices",get:function(){return this.getVertices()}},{key:"vertices",set:function(e){this.setVertices(e)}},{key:"getVertices",value:function(){return d(this.store.get("vertices",[]))}},{key:"setVertices",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(e)?e:[e];return this.store.set("vertices",n.map((function(e){return K["f"].toJSON(e)})),t),this}},{key:"insertVertex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getVertices(),i=r.length,o=null!=t&&Number.isFinite(t)?t:i;return o<0&&(o=i+o+1),r.splice(o,0,K["f"].toJSON(e)),this.setVertices(r,n)}},{key:"appendVertex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.insertVertex(e,-1,t)}},{key:"getVertexAt",value:function(e){if(null!=e&&Number.isFinite(e)){var t=this.getVertices();return t[e]}return null}},{key:"setVertexAt",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!=e&&Number.isFinite(e)){var r=this.getVertices();r[e]=t,this.setVertices(r,n)}return this}},{key:"removeVertexAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getVertices(),r=null!=e&&Number.isFinite(e)?e:-1;return n.splice(r,1),this.setVertices(n,t)}},{key:"onVertexsChanged",value:function(e){var t=e.previous,n=e.current,r=t&&n?n.filter((function(e){return t.find((function(t){return K["f"].equals(e,t)}))?null:e})):n?d(n):[],i=t&&n?t.filter((function(e){return n.find((function(t){return K["f"].equals(e,t)}))?null:e})):t?d(t):[];r.length>0&&this.notify("vertexs:added",{added:r,cell:this,edge:this}),i.length>0&&this.notify("vertexs:removed",{removed:i,cell:this,edge:this})}},{key:"getDefaultMarkup",value:function(){return this.store.get("defaultMarkup")||Ln["a"].getEdgeMarkup()}},{key:"getMarkup",value:function(){return i(o(r.prototype),"getMarkup",this).call(this)||this.getDefaultMarkup()}},{key:"toolMarkup",get:function(){return this.getToolMarkup()}},{key:"toolMarkup",set:function(e){this.setToolMarkup(e)}},{key:"getDefaultToolMarkup",value:function(){return this.store.get("defaultToolMarkup")||Ln["a"].getEdgeToolMarkup()}},{key:"getToolMarkup",value:function(){return this.store.get("toolMarkup")||this.getDefaultToolMarkup()}},{key:"setToolMarkup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("toolMarkup",e,t),this}},{key:"doubleToolMarkup",get:function(){return this.getDoubleToolMarkup()}},{key:"doubleToolMarkup",set:function(e){this.setDoubleToolMarkup(e)}},{key:"getDefaultDoubleToolMarkup",value:function(){return this.store.get("defaultDoubleToolMarkup")}},{key:"getDoubleToolMarkup",value:function(){return this.store.get("doubleToolMarkup")||this.getDefaultDoubleToolMarkup()}},{key:"setDoubleToolMarkup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("doubleToolMarkup",e,t),this}},{key:"arrowheadMarkup",get:function(){return this.getArrowheadMarkup()}},{key:"arrowheadMarkup",set:function(e){this.setArrowheadMarkup(e)}},{key:"getDefaultArrowheadMarkup",value:function(){return this.store.get("defaultArrowheadMarkup")||Ln["a"].getEdgeArrowheadMarkup()}},{key:"getArrowheadMarkup",value:function(){return this.store.get("arrowheadMarkup")||this.getDefaultArrowheadMarkup()}},{key:"setArrowheadMarkup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.store.set("arrowheadMarkup",e,t),this}},{key:"translate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.translateBy=n.translateBy||this.id,n.tx=e,n.ty=t,this.applyToPoints((function(n){return{x:(n.x||0)+e,y:(n.y||0)+t}}),n)}},{key:"scale",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.applyToPoints((function(r){return K["f"].create(r).scale(e,t,n).toJSON()}),r)}},{key:"applyToPoints",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=this.getSource(),i=this.getTarget();K["f"].isPointLike(r)&&(n.source=e(r)),K["f"].isPointLike(i)&&(n.target=e(i));var o=this.getVertices();return o.length>0&&(n.vertices=o.map(e)),this.store.set(n,t),this}},{key:"getBBox",value:function(){return this.getPolyline().bbox()}},{key:"getConnectionPoint",value:function(){return this.getPolyline().pointAt(.5)}},{key:"getPolyline",value:function(){var e=[this.getSourcePoint(),this.getTargetPoint()],t=this.getVertices();return t.forEach((function(t){return e.push(K["f"].create(t))})),new K["g"](e)}},{key:"updateParent",value:function(e){var t=null,n=this.getSourceCell(),r=this.getTargetCell(),i=this.getParent();return n&&r&&(t=n===r||n.isDescendantOf(r)?r:r.isDescendantOf(n)?n:Gn.getCommonAncestor(n,r)),!i||t&&t.id===i.id||i.unembed(this,e),t&&t.embed(this,e),t}},{key:"hasLoop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getSource(),n=this.getTarget(),r=t.cell,i=n.cell;if(!r||!i)return!1;var o=r===i;if(!o&&e.deep&&this._model){var a=this.getSourceCell(),s=this.getTargetCell();a&&s&&(o=a.isAncestorOf(s,e)||s.isAncestorOf(a,e))}return o}},{key:"getFragmentAncestor",value:function(){var e=[this,this.getSourceNode(),this.getTargetNode()].filter((function(e){return null!=e}));return this.getCommonAncestor.apply(this,d(e))}},{key:"isFragmentDescendantOf",value:function(e){var t=this.getFragmentAncestor();return!!t&&(t.id===e.id||t.isDescendantOf(e))}}]),r}(Gn,Symbol.toStringTag);ir.defaults={},function(e){function t(e,t){var n=e,r=t;return n.cell===r.cell&&(n.port===r.port||null==n.port&&null==r.port)}e.equalTerminals=t}(ir||(ir={})),function(e){function t(e){return{attrs:{label:{text:e}}}}e.defaultLabel={markup:[{tagName:"rect",selector:"body"},{tagName:"text",selector:"label"}],attrs:{text:{fill:"#000",fontSize:14,textAnchor:"middle",textVerticalAnchor:"middle",pointerEvents:"none"},rect:{ref:"label",fill:"#fff",rx:3,ry:3,refWidth:1,refHeight:1,refX:0,refY:0}},position:{distance:.5}},e.parseStringLabel=t}(ir||(ir={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"===typeof r.isNode&&"function"===typeof r.isEdge&&"function"===typeof r.prop&&"function"===typeof r.attr&&"function"===typeof r.disconnect&&"function"===typeof r.getSource&&"function"===typeof r.getTarget}e.toStringTag="X6.".concat(e.name),e.isEdge=t}(ir||(ir={})),function(e){e.registry=M["a"].create({type:"edge",process:function(t,n){if(In.exist(t,!1))throw new Error("Edge with name '".concat(t,"' was registered by anthor Node"));if("function"===typeof n)return n.config({shape:t}),n;var r=e,i=n.inherit,o=void 0===i?"edge":i,a=rr(n,["inherit"]);if("string"===typeof o){var s=this.get(o||"edge");null==s&&o?this.onNotFound(o,"inherited"):r=s}else r=o;null==a.constructorName&&(a.constructorName=t);var l=r.define.call(r,a);return l.config({shape:t}),l}}),In.setEdgeRegistry(e.registry)}(ir||(ir={})),function(e){var t=0;function n(e){return e?O["k"].pascalCase(e):(t+=1,"CustomEdge".concat(t))}function r(t){var r=t.constructorName,i=t.overwrite,o=rr(t,["constructorName","overwrite"]),a=O["g"].createClass(n(r||o.shape),this);return a.config(o),o.shape&&e.registry.register(o.shape,a,i),a}function i(t){var n=t.shape||"edge",r=e.registry.get(n);return r?new r(t):e.registry.onNotFound(n)}e.define=r,e.create=i}(ir||(ir={})),function(e){var t="basic.edge";e.config({shape:t,propHooks:function(t){var n=t.label,r=t.vertices,i=rr(t,["label","vertices"]);if(n){null==i.labels&&(i.labels=[]);var o="string"===typeof n?e.parseStringLabel(n):n;i.labels.push(o)}return r&&Array.isArray(r)&&(i.vertices=r.map((function(e){return K["f"].create(e).toJSON()}))),i}}),e.registry.register(t,e)}(ir||(ir={}));var or=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},ar=function(e,t){u(r,e);var n=c(r);function r(){var e;return f(this,r),e=n.apply(this,arguments),e.POINT_ROUNDING=2,e.markerCache={},e}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"getContainerClassName",value:function(){return[i(o(r.prototype),"getContainerClassName",this).call(this),this.prefixClassName("edge")].join(" ")}},{key:"sourceBBox",get:function(){var e=this.sourceView;if(!e){var t=this.cell.getSource();return new K["h"](t.x,t.y)}var n=this.sourceMagnet;return e.isEdgeElement(n)?new K["h"](this.sourceAnchor.x,this.sourceAnchor.y):e.getBBoxOfElement(n||e.container)}},{key:"targetBBox",get:function(){var e=this.targetView;if(!e){var t=this.cell.getTarget();return new K["h"](t.x,t.y)}var n=this.targetMagnet;return e.isEdgeElement(n)?new K["h"](this.targetAnchor.x,this.targetAnchor.y):e.getBBoxOfElement(n||e.container)}},{key:"isEdgeView",value:function(){return!0}},{key:"confirmUpdate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e;if(this.hasAction(r,"source")){if(!this.updateTerminalProperties("source"))return r;r=this.removeAction(r,"source")}if(this.hasAction(r,"target")){if(!this.updateTerminalProperties("target"))return r;r=this.removeAction(r,"target")}var i=this.graph,o=this.sourceView,a=this.targetView;return i&&(o&&!i.renderer.isViewMounted(o)||a&&!i.renderer.isViewMounted(a))?r:this.hasAction(r,"render")?(this.render(),r=this.removeAction(r,["render","update","vertices","labels","tools","widget"]),r):(r=this.handleAction(r,"vertices",(function(){return t.renderVertexMarkers()})),r=this.handleAction(r,"update",(function(){return t.update(null,n)})),r=this.handleAction(r,"labels",(function(){return t.onLabelsChange(n)})),r=this.handleAction(r,"tools",(function(){t.renderTools(),t.updateToolsPosition()})),r=this.handleAction(r,"widget",(function(){return t.renderExternalTools()})),r)}},{key:"onLabelsChange",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.shouldRerenderLabels(e)?this.renderLabels():this.updateLabels(),this.updateLabelPositions()}},{key:"shouldRerenderLabels",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.cell.previous("labels");if(null==t)return!0;if("propertyPathArray"in e&&"propertyValue"in e){var n=e.propertyPathArray||[],r=n.length;if(r>1){var i=n[1];if(t[i]){if(2===r)return"object"===p(e.propertyValue)&&O["g"].has(e.propertyValue,"markup");if("markup"!==n[2])return!1}}}return!0}},{key:"render",value:function(){return this.empty(),this.containers={},this.renderMarkup(),this.renderLabels(),this.update(),this}},{key:"renderMarkup",value:function(){var e=this.cell.markup;if(e)return"string"===typeof e?this.renderStringMarkup(e):this.renderJSONMarkup(e);throw new TypeError("Invalid edge markup.")}},{key:"renderJSONMarkup",value:function(e){var t=this.parseJSONMarkup(e,this.container);this.selectors=t.selectors,this.container.append(t.fragment)}},{key:"renderStringMarkup",value:function(e){var t=this.containers,n=O["m"].createVectors(e);n.forEach((function(e){var n=e.attr("class");n&&(t[O["k"].camelCase(n)]=e.node)})),this.renderTools(),this.renderVertexMarkers(),this.renderArrowheadMarkers(),O["c"].append(this.container,n.map((function(e){return e.node})))}},{key:"renderLabels",value:function(){var e=this.cell,t=e.getLabels(),n=t.length,r=this.containers.labels;if(this.labelCache={},this.labelSelectors={},n<=0)return r&&r.parentNode&&r.parentNode.removeChild(r),this;r?this.empty(r):(r=O["c"].createSvgElement("g"),this.addClass(this.prefixClassName("edge-labels"),r),this.containers.labels=r);for(var i=0,o=t.length;i<o;i+=1){var a=t[i],s=this.normalizeLabelMarkup(this.parseLabelMarkup(a.markup)),l=void 0,u=void 0;if(s)l=s.node,u=s.selectors;else{var c=e.getDefaultLabel(),h=this.normalizeLabelMarkup(this.parseLabelMarkup(c.markup));l=h.node,u=h.selectors}l.setAttribute("data-index","".concat(i)),r.appendChild(l);var d=this.rootSelector;if(u[d])throw new Error("Ambiguous label root selector.");u[d]=l,this.labelCache[i]=l,this.labelSelectors[i]=u}return null==r.parentNode&&this.container.appendChild(r),this.updateLabels(),this.customizeLabels(),this}},{key:"parseLabelMarkup",value:function(e){return e?"string"===typeof e?this.parseLabelStringMarkup(e):this.parseJSONMarkup(e):null}},{key:"parseLabelStringMarkup",value:function(e){for(var t=O["m"].createVectors(e),n=document.createDocumentFragment(),r=0,i=t.length;r<i;r+=1){var o=t[r].node;n.appendChild(o)}return{fragment:n,selectors:{}}}},{key:"normalizeLabelMarkup",value:function(e){if(null!=e){var t,n=e.fragment;if(!(n instanceof DocumentFragment)||!n.hasChildNodes())throw new Error("Invalid label markup.");var r=n.childNodes;return t=r.length>1||"G"!==r[0].nodeName.toUpperCase()?O["m"].create("g").append(n):O["m"].create(r[0]),t.addClass(this.prefixClassName("edge-label")),{node:t.node,selectors:e.selectors}}}},{key:"updateLabels",value:function(){if(this.containers.labels)for(var e=this.cell,t=e.labels,n=this.can("edgeLabelMovable"),r=e.getDefaultLabel(),i=0,o=t.length;i<o;i+=1){var a=this.labelCache[i],s=this.labelSelectors[i];a.setAttribute("cursor",n?"move":"default");var l=t[i],u=O["g"].merge({},r.attrs,l.attrs);this.updateAttrs(a,u,{selectors:s,rootBBox:l.size?K["h"].fromSize(l.size):void 0})}}},{key:"mergeLabelAttrs",value:function(e,t,n){if(null===t)return null;if(void 0===t){if(null===n)return null;if(void 0===n)return;return e?n:O["g"].merge({},n)}return e?O["g"].merge({},n,t):void 0}},{key:"customizeLabels",value:function(){if(this.containers.labels)for(var e=this.cell,t=e.labels,n=0,r=t.length;n<r;n+=1){var i=t[n],o=this.labelCache[n],a=this.labelSelectors[n];this.graph.hook.onEdgeLabelRendered({edge:e,label:i,container:o,selectors:a})}}},{key:"renderTools",value:function(){var e=this.containers.tools;if(null==e)return this;var t=this.cell.toolMarkup,n=this.$(e).empty();if(Ln["a"].isStringMarkup(t)){var r=O["k"].template(t),i=O["m"].create(r());if(n.append(i.node),this.toolCache=i.node,this.options.doubleTools){var o,a=this.cell.doubleToolMarkup;Ln["a"].isStringMarkup(a)?(r=O["k"].template(a),o=O["m"].create(r())):o=i.clone(),n.append(o.node),this.tool2Cache=o.node}}return this}},{key:"renderExternalTools",value:function(){var e=this.cell.getTools();return this.addTools(e),this}},{key:"renderVertexMarkers",value:function(){var e=this.containers.vertices;if(null==e)return this;var t=this.cell.vertexMarkup,n=this.$(e).empty();if(Ln["a"].isStringMarkup(t)){var r=O["k"].template(t);this.cell.getVertices().forEach((function(e,t){n.append(O["m"].create(r(Object.assign({index:t},e))).node)}))}return this}},{key:"renderArrowheadMarkers",value:function(){var e=this.containers.arrowheads;if(null==e)return this;var t=this.cell.arrowheadMarkup,n=this.$(e).empty();if(Ln["a"].isStringMarkup(t)){var r=O["k"].template(t),i=O["m"].create(r({end:"source"})).node,o=O["m"].create(r({end:"target"})).node;this.containers.sourceArrowhead=i,this.containers.targetArrowhead=o,n.append(i,o)}return this}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.cleanCache(),this.updateConnection(t);var n=this.cell.getAttrs();return null!=n&&this.updateAttrs(this.container,n,{attrs:e===n?null:e,selectors:this.selectors}),this.updateConnectionPath(),this.updateLabelPositions(),this.updateToolsPosition(),this.updateArrowheadMarkers(),null==t.toolId?this.renderExternalTools():this.updateTools(t),this}},{key:"removeRedundantLinearVertices",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.cell,n=t.getVertices(),r=[this.sourceAnchor].concat(d(n),[this.targetAnchor]),i=r.length,o=new K["g"](r);o.simplify({threshold:.01});var a=o.points.map((function(e){return e.toJSON()})),s=a.length;return i===s?0:(t.setVertices(a.slice(1,s-1),e),i-s)}},{key:"updateConnectionPath",value:function(){var e=this.containers;if(e.connection){var t=this.getConnectionPathData();e.connection.setAttribute("d",t)}if(e.connectionWrap){var n=this.getConnectionPathData();e.connectionWrap.setAttribute("d",n)}e.sourceMarker&&e.targetMarker&&this.translateAndAutoOrientArrows(e.sourceMarker,e.targetMarker)}},{key:"getTerminalView",value:function(e){switch(e){case"source":return this.sourceView||null;case"target":return this.targetView||null;default:throw new Error("Unknown terminal type '".concat(e,"'"))}}},{key:"getTerminalAnchor",value:function(e){switch(e){case"source":return K["f"].create(this.sourceAnchor);case"target":return K["f"].create(this.targetAnchor);default:throw new Error("Unknown terminal type '".concat(e,"'"))}}},{key:"getTerminalConnectionPoint",value:function(e){switch(e){case"source":return K["f"].create(this.sourcePoint);case"target":return K["f"].create(this.targetPoint);default:throw new Error("Unknown terminal type '".concat(e,"'"))}}},{key:"getTerminalMagnet",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(e){case"source":if(t.raw)return this.sourceMagnet;var n=this.sourceView;return n?this.sourceMagnet||n.container:null;case"target":if(t.raw)return this.targetMagnet;var r=this.targetView;return r?this.targetMagnet||r.container:null;default:throw new Error("Unknown terminal type '".concat(e,"'"))}}},{key:"updateConnection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.cell;if(e.translateBy&&t.isFragmentDescendantOf(e.translateBy)){var n=e.tx||0,r=e.ty||0;this.routePoints=new K["g"](this.routePoints).translate(n,r).points,this.translateConnectionPoints(n,r),this.path.translate(n,r)}else{var i=t.getVertices(),o=this.findAnchors(i);this.sourceAnchor=o.source,this.targetAnchor=o.target,this.routePoints=this.findRoutePoints(i);var a=this.findConnectionPoints(this.routePoints,this.sourceAnchor,this.targetAnchor);this.sourcePoint=a.source,this.targetPoint=a.target;var s=this.findMarkerPoints(this.routePoints,this.sourcePoint,this.targetPoint);this.path=this.findPath(this.routePoints,s.source||this.sourcePoint,s.target||this.targetPoint)}this.cleanCache()}},{key:"findAnchors",value:function(e){var t=this.cell,n=t.source,r=t.target,i=e[0],o=e[e.length-1];return r.priority&&!n.priority?this.findAnchorsOrdered("target",o,"source",i):this.findAnchorsOrdered("source",i,"target",o)}},{key:"findAnchorsOrdered",value:function(e,t,n,r){var i,o,a,l,u=this.cell,c=u[e],h=u[n],d=this.getTerminalView(e),f=this.getTerminalView(n),g=this.getTerminalMagnet(e),p=this.getTerminalMagnet(n);d?(l=t?K["f"].create(t):f?p:K["f"].create(h),o=this.getAnchor(c.anchor,d,g,l,e)):o=K["f"].create(c);if(f){var v=K["f"].create(r||o);a=this.getAnchor(h.anchor,f,p,v,n)}else a=K["f"].isPointLike(h)?K["f"].create(h):new K["f"];return i={},s(i,e,o),s(i,n,a),i}},{key:"getAnchor",value:function(e,t,n,r,i){var o,a=t.isEdgeElement(n),s=this.graph.options.connecting,l="string"===typeof e?{name:e}:e;if(!l){var u=a?("source"===i?s.sourceEdgeAnchor:s.targetEdgeAnchor)||s.edgeAnchor:("source"===i?s.sourceAnchor:s.targetAnchor)||s.anchor;l="string"===typeof u?{name:u}:u}if(!l)throw new Error("Anchor should be specified.");var c=l.name;if(a){var h=st.registry.get(c);if("function"!==typeof h)return st.registry.onNotFound(c);o=O["d"].call(h,this,t,n,r,l.args||{},i)}else{var d=tt.registry.get(c);if("function"!==typeof d)return tt.registry.onNotFound(c);o=O["d"].call(d,this,t,n,r,l.args||{},i)}return o?o.round(this.POINT_ROUNDING):new K["f"]}},{key:"findRoutePoints",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this.graph.options.connecting.router||fn.presets.normal,r=this.cell.getRouter()||n;if("function"===typeof r)e=O["d"].call(r,this,t,{},this);else{var i="string"===typeof r?r:r.name,o="string"===typeof r?{}:r.args||{},a=i?fn.registry.get(i):fn.presets.normal;if("function"!==typeof a)return fn.registry.onNotFound(i);e=O["d"].call(a,this,t,o,this)}return null==e?t.map((function(e){return K["f"].create(e)})):e.map((function(e){return K["f"].create(e)}))}},{key:"findConnectionPoints",value:function(e,t,n){var r,i,o=this.cell,a=this.graph.options.connecting,s=o.getSource(),l=o.getTarget(),u=this.sourceView,c=this.targetView,h=e[0],d=e[e.length-1];if(u&&!u.isEdgeElement(this.sourceMagnet)){var f=this.sourceMagnet||u.container,g=h||n,p=new K["d"](g,t),v=s.connectionPoint||a.sourceConnectionPoint||a.connectionPoint;r=this.getConnectionPoint(v,u,f,p,"source")}else r=t;if(c&&!c.isEdgeElement(this.targetMagnet)){var y=this.targetMagnet||c.container,m=l.connectionPoint||a.targetConnectionPoint||a.connectionPoint,b=d||t,x=new K["d"](b,n);i=this.getConnectionPoint(m,c,y,x,"target")}else i=n;return{source:r,target:i}}},{key:"getConnectionPoint",value:function(e,t,n,r,i){var o=r.end;if(null==e)return o;var a="string"===typeof e?e:e.name,s="string"===typeof e?{}:e.args,l=wt.registry.get(a);if("function"!==typeof l)return wt.registry.onNotFound(a);var u=O["d"].call(l,this,r,t,n,s||{},i);return u?u.round(this.POINT_ROUNDING):o}},{key:"updateMarkerAttr",value:function(e){var t=this.cell.getAttrs(),n=".".concat(e,"-marker"),r=t&&t[n];r&&this.updateAttrs(this.container,{},{attrs:s({},n,r),selectors:this.selectors})}},{key:"findMarkerPoints",value:function(e,t,n){var r,i,o=this,a=function(e){for(var t=o.cell.getAttrs(),n=Object.keys(t),r=0,i=n.length;r<i;r+=1){var a=t[n[r]];if(a["".concat(e,"Marker")]||a["".concat(e,"-marker")]){var s=a.strokeWidth||a["stroke-width"];if(s)return parseFloat(s);break}}return null},s=e[0],l=e[e.length-1],u=this.containers.sourceMarker,c=this.containers.targetMarker,h=this.markerCache;if(u){if(this.updateMarkerAttr("source"),h.sourceBBox=h.sourceBBox||O["c"].getBBox(u),h.sourceBBox.width>0){var d=O["c"].scale(u);r=t.clone().move(s||n,h.sourceBBox.width*d.sx*-1)}}else{var f=a("source");f&&(r=t.clone().move(s||n,-f))}if(c){if(this.updateMarkerAttr("target"),h.targetBBox=h.targetBBox||O["c"].getBBox(c),h.targetBBox.width>0){var g=O["c"].scale(c);i=n.clone().move(l||t,h.targetBBox.width*g.sx*-1)}}else{var p=a("target");p&&(i=n.clone().move(l||t,-p))}return h.sourcePoint=r||t.clone(),h.targetPoint=i||n.clone(),{source:r,target:i}}},{key:"findPath",value:function(e,t,n){var r,i,o,a=this.cell.getConnector()||this.graph.options.connecting.connector;if("string"===typeof a?r=a:(r=a.name,i=a.args),r){var s=Dn.registry.get(r);if("function"!==typeof s)return Dn.registry.onNotFound(r);o=s}else o=Dn.presets.normal;var l=O["d"].call(o,this,t,n,e,Object.assign(Object.assign({},i),{raw:!0}),this);return"string"===typeof l?K["e"].parse(l):l}},{key:"translateConnectionPoints",value:function(e,t){var n=this.markerCache;n.sourcePoint&&n.sourcePoint.translate(e,t),n.targetPoint&&n.targetPoint.translate(e,t),this.sourcePoint.translate(e,t),this.targetPoint.translate(e,t),this.sourceAnchor.translate(e,t),this.targetAnchor.translate(e,t)}},{key:"updateLabelPositions",value:function(){if(null==this.containers.labels)return this;var e=this.path;if(!e)return this;var t=this.cell,n=t.getLabels();if(0===n.length)return this;for(var r=t.getDefaultLabel(),i=this.normalizeLabelPosition(r.position),o=0,a=n.length;o<a;o+=1){var s=n[o],l=this.normalizeLabelPosition(s.position),u=O["g"].merge({},i,l),c=this.getLabelTransformationMatrix(u);this.labelCache[o].setAttribute("transform",O["c"].matrixToTransformString(c))}return this}},{key:"updateToolsPosition",value:function(){if(null==this.containers.tools)return this;var e="",t=this.options.toolsOffset,n=this.getConnectionLength();if(null!=n){n<this.options.shortLength&&(e="scale(.5)",t/=2);var r=this.getPointAtLength(t);if(null!=r&&O["c"].attr(this.toolCache,"transform","translate(".concat(r.x,",").concat(r.y,") ").concat(e)),this.options.doubleTools&&n>=this.options.longLength){var i=this.options.doubleToolsOffset||t;r=this.getPointAtLength(n-i),null!=r&&O["c"].attr(this.tool2Cache,"transform","translate(".concat(r.x,",").concat(r.y,") ").concat(e)),O["c"].attr(this.tool2Cache,"visibility","visible")}else this.options.doubleTools&&O["c"].attr(this.tool2Cache,"visibility","hidden")}return this}},{key:"updateArrowheadMarkers",value:function(){var e=this.containers.arrowheads;if(null==e)return this;if("none"===e.style.display)return this;var t=this.containers.sourceArrowhead,n=this.containers.targetArrowhead;if(t&&n){var r=this.getConnectionLength()||0,i=r<this.options.shortLength?.5:1;O["c"].scale(t,i),O["c"].scale(n,i),this.translateAndAutoOrientArrows(t,n)}return this}},{key:"updateTerminalProperties",value:function(e){var t=this.cell,n=this.graph,r=t[e],i=r&&r.cell,o="".concat(e,"View");if(!i)return this[o]=null,this.updateTerminalMagnet(e),!0;var a=n.getCellById(i);if(!a)throw new Error("Edge's ".concat(e,' node with id "').concat(i,'" not exists'));var s=a.findView(n);return!!s&&(this[o]=s,this.updateTerminalMagnet(e),!0)}},{key:"updateTerminalMagnet",value:function(e){var t="".concat(e,"Magnet"),n=this.getTerminalView(e);if(n){var r=n.getMagnetFromEdgeTerminal(this.cell[e]);r===n.container&&(r=null),this[t]=r}else this[t]=null}},{key:"translateAndAutoOrientArrows",value:function(e,t){var n=this.routePoints;e&&O["c"].translateAndAutoOrient(e,this.sourcePoint,n[0]||this.targetPoint,this.graph.view.stage),t&&O["c"].translateAndAutoOrient(t,this.targetPoint,n[n.length-1]||this.sourcePoint,this.graph.view.stage)}},{key:"getLabelPositionAngle",value:function(e){var t=this.cell.getLabelAt(e);return t&&t.position&&"object"===p(t.position)&&t.position.angle||0}},{key:"getLabelPositionArgs",value:function(e){var t=this.cell.getLabelAt(e);if(t&&t.position&&"object"===p(t.position))return t.position.options}},{key:"getDefaultLabelPositionArgs",value:function(){var e=this.cell.getDefaultLabel();if(e&&e.position&&"object"===p(e.position))return e.position.options}},{key:"mergeLabelPositionArgs",value:function(e,t){return null===e?null:void 0===e?null===t?null:t:O["g"].merge({},t,e)}},{key:"addLabel",value:function(e,t,n,r){var i,o,a,s=0;"number"!==typeof e?(i=e.x,o=e.y,"number"===typeof t?(s=t,a=n):a=t):(i=e,o=t,"number"===typeof n?(s=n,a=r):a=n);var l=this.getDefaultLabelPositionArgs(),u=a,c=this.mergeLabelPositionArgs(u,l),h={position:this.getLabelPosition(i,o,s,c)},d=-1;return this.cell.insertLabel(h,d,a),d}},{key:"addVertex",value:function(e,t,n){var r="number"!==typeof e,i=r?e.x:e,o=r?e.y:t,a=r?t:n,s={x:i,y:o},l=this.getVertexIndex(i,o);return this.cell.insertVertex(s,l,a),l}},{key:"sendToken",value:function(e,t,n){var r,i,o,a,s="linear";"object"===p(t)?(r=t.duration,i=!0===t.reversed,o=t.selector,!1===t.rotate?a="":!0===t.rotate?a="auto":null!=t.rotate&&(a="".concat(t.rotate)),t.timing&&(s=t.timing)):(r=t,i=!1,o=null),r=r||1e3;var l,u={dur:"".concat(r,"ms"),repeatCount:"1",calcMode:s,fill:"freeze"};if(a&&(u.rotate=a),i&&(u.keyPoints="1;0",u.keyTimes="0;1"),"object"===p(t)){t.duration,t.reversed,t.selector,t.rotate,t.timing;var c=or(t,["duration","reversed","selector","rotate","timing"]);Object.keys(c).forEach((function(e){u[e]=c[e]}))}if(l="string"===typeof o?this.findOne(o,this.container,this.selectors):this.containers.connection?this.containers.connection:this.container.querySelector("path"),!(l instanceof SVGPathElement))throw new Error("Token animation requires a valid connection path.");var h="string"===typeof e?this.findOne(e):e;if(null==h)throw new Error("Token animation requires a valid token element.");var d=h.parentNode,f=function(){d||O["c"].remove(h)},g=O["m"].create(h);d||g.appendTo(this.graph.view.stage);var v=u.complete;u.complete=function(e){f(),n&&n(),v&&v(e)};var y=g.animateAlongPath(u,l);return function(){f(),y()}}},{key:"getConnection",value:function(){return null!=this.path?this.path.clone():null}},{key:"getConnectionPathData",value:function(){if(null==this.path)return"";var e=this.cache.pathCache;return O["g"].has(e,"data")||(e.data=this.path.serialize()),e.data||""}},{key:"getConnectionSubdivisions",value:function(){if(null==this.path)return null;var e=this.cache.pathCache;return O["g"].has(e,"segmentSubdivisions")||(e.segmentSubdivisions=this.path.getSegmentSubdivisions()),e.segmentSubdivisions}},{key:"getConnectionLength",value:function(){if(null==this.path)return 0;var e=this.cache.pathCache;return O["g"].has(e,"length")||(e.length=this.path.length({segmentSubdivisions:this.getConnectionSubdivisions()})),e.length}},{key:"getPointAtLength",value:function(e){return null==this.path?null:this.path.pointAtLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}},{key:"getPointAtRatio",value:function(e){return null==this.path?null:(O["f"].isPercentage(e)&&(e=parseFloat(e)/100),this.path.pointAt(e,{segmentSubdivisions:this.getConnectionSubdivisions()}))}},{key:"getTangentAtLength",value:function(e){return null==this.path?null:this.path.tangentAtLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}},{key:"getTangentAtRatio",value:function(e){return null==this.path?null:this.path.tangentAt(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}},{key:"getClosestPoint",value:function(e){return null==this.path?null:this.path.closestPoint(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}},{key:"getClosestPointLength",value:function(e){return null==this.path?null:this.path.closestPointLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}},{key:"getClosestPointRatio",value:function(e){return null==this.path?null:this.path.closestPointNormalizedLength(e,{segmentSubdivisions:this.getConnectionSubdivisions()})}},{key:"getLabelPosition",value:function(e,t,n,r){var i,o={distance:0},a=0;"number"===typeof n?(a=n,i=r):i=n,null!=i&&(o.options=i);var s,l,u=i&&i.absoluteOffset,c=!(i&&i.absoluteDistance),h=i&&i.absoluteDistance&&i.reverseDistance,d=this.path,f={segmentSubdivisions:this.getConnectionSubdivisions()},g=new K["f"](e,t),p=d.closestPointT(g,f),v=this.getConnectionLength()||0,y=d.lengthAtT(p,f);if(c&&(y=v>0?y/v:0),h&&(y=-1*(v-y)||1),o.distance=y,u||(s=d.tangentAtT(p)),s)l=s.pointOffset(g);else{var m=d.pointAtT(p),b=g.diff(m);l={x:b.x,y:b.y}}return o.offset=l,o.angle=a,o}},{key:"normalizeLabelPosition",value:function(e){return"number"===typeof e?{distance:e}:e}},{key:"getLabelTransformationMatrix",value:function(e){var t=this.normalizeLabelPosition(e),n=t.options||{},r=t.angle||0,i=t.distance,o=i>0&&i<=1,a=0,s={x:0,y:0},l=t.offset;l&&("number"===typeof l?a=l:(null!=l.x&&(s.x=l.x),null!=l.y&&(s.y=l.y)));var u,c=0!==s.x||0!==s.y||0===a,h=n.keepGradient,d=n.ensureLegibility,f=this.path,g={segmentSubdivisions:this.getConnectionSubdivisions()},p=o?i*this.getConnectionLength():i,v=f.tangentAtLength(p,g),y=r;if(v){if(c)u=v.start,u.translate(s);else{var m=v.clone();m.rotate(-90,v.start),m.setLength(a),u=m.end}h&&(y=v.angle()+r,d&&(y=K["a"].normalize((y+90)%180-90)))}else u=f.start,c&&u.translate(s);return O["c"].createSVGMatrix().translate(u.x,u.y).rotate(y)}},{key:"getLabelCoordinates",value:function(e){var t=this.getLabelTransformationMatrix(e);return new K["f"](t.e,t.f)}},{key:"getVertexIndex",value:function(e,t){var n=this.cell,r=n.getVertices(),i=this.getClosestPointLength(new K["f"](e,t)),o=0;if(null!=i)for(var a=r.length;o<a;o+=1){var s=r[o],l=this.getClosestPointLength(s);if(null!=l&&i<l)break}return o}},{key:"getEventArgs",value:function(e,t,n){var r=this,i=r.cell,o=i;return null==t||null==n?{e:e,view:r,edge:i,cell:o}:{e:e,x:t,y:n,view:r,edge:i,cell:o}}},{key:"notifyUnhandledMouseDown",value:function(e,t,n){this.notify("edge:unhandled:mousedown",{e:e,x:t,y:n,view:this,cell:this.cell,edge:this.cell})}},{key:"notifyMouseDown",value:function(e,t,n){i(o(r.prototype),"onMouseDown",this).call(this,e,t,n),this.notify("edge:mousedown",this.getEventArgs(e,t,n))}},{key:"notifyMouseMove",value:function(e,t,n){i(o(r.prototype),"onMouseMove",this).call(this,e,t,n),this.notify("edge:mousemove",this.getEventArgs(e,t,n))}},{key:"notifyMouseUp",value:function(e,t,n){i(o(r.prototype),"onMouseUp",this).call(this,e,t,n),this.notify("edge:mouseup",this.getEventArgs(e,t,n))}},{key:"onClick",value:function(e,t,n){i(o(r.prototype),"onClick",this).call(this,e,t,n),this.notify("edge:click",this.getEventArgs(e,t,n))}},{key:"onDblClick",value:function(e,t,n){i(o(r.prototype),"onDblClick",this).call(this,e,t,n),this.notify("edge:dblclick",this.getEventArgs(e,t,n))}},{key:"onContextMenu",value:function(e,t,n){i(o(r.prototype),"onContextMenu",this).call(this,e,t,n),this.notify("edge:contextmenu",this.getEventArgs(e,t,n))}},{key:"onMouseDown",value:function(e,t,n){this.notifyMouseDown(e,t,n);var r=e.target.getAttribute("class");switch(r){case"vertex":return void this.startVertexDragging(e,t,n);case"vertex-remove":case"vertex-remove-area":return void this.handleVertexRemoving(e,t,n);case"connection":case"connection-wrap":return void this.handleVertexAdding(e,t,n);case"arrowhead":return void this.startArrowheadDragging(e,t,n);case"source-marker":case"target-marker":return void this.notifyUnhandledMouseDown(e,t,n);default:break}this.startEdgeDragging(e,t,n)}},{key:"onMouseMove",value:function(e,t,n){var r=this.getEventData(e);switch(r.action){case"drag-vertex":this.dragVertex(e,t,n);break;case"drag-label":this.dragLabel(e,t,n);break;case"drag-arrowhead":this.dragArrowhead(e,t,n);break;case"drag-edge":this.dragEdge(e,t,n);break;default:break}return this.notifyMouseMove(e,t,n),r}},{key:"onMouseUp",value:function(e,t,n){var r=this.getEventData(e);switch(r.action){case"drag-vertex":this.stopVertexDragging(e,t,n);break;case"drag-label":this.stopLabelDragging(e,t,n);break;case"drag-arrowhead":this.stopArrowheadDragging(e,t,n);break;case"drag-edge":this.stopEdgeDragging(e,t,n);break;default:break}return this.notifyMouseUp(e,t,n),this.checkMouseleave(e),r}},{key:"onMouseOver",value:function(e){i(o(r.prototype),"onMouseOver",this).call(this,e),this.notify("edge:mouseover",this.getEventArgs(e))}},{key:"onMouseOut",value:function(e){i(o(r.prototype),"onMouseOut",this).call(this,e),this.notify("edge:mouseout",this.getEventArgs(e))}},{key:"onMouseEnter",value:function(e){i(o(r.prototype),"onMouseEnter",this).call(this,e),this.notify("edge:mouseenter",this.getEventArgs(e))}},{key:"onMouseLeave",value:function(e){i(o(r.prototype),"onMouseLeave",this).call(this,e),this.notify("edge:mouseleave",this.getEventArgs(e))}},{key:"onMouseWheel",value:function(e,t,n,a){i(o(r.prototype),"onMouseWheel",this).call(this,e,t,n,a),this.notify("edge:mousewheel",Object.assign({delta:a},this.getEventArgs(e,t,n)))}},{key:"onCustomEvent",value:function(e,t,n,a){var s=O["c"].findParentByClass(e.target,"edge-tool",this.container);if(s){if(e.stopPropagation(),this.can("useEdgeTools")){if("edge:remove"===t)return void this.cell.remove({ui:!0});this.notify("edge:customevent",Object.assign({name:t},this.getEventArgs(e,n,a)))}this.notifyMouseDown(e,n,a)}else this.notify("edge:customevent",Object.assign({name:t},this.getEventArgs(e,n,a))),i(o(r.prototype),"onCustomEvent",this).call(this,e,t,n,a)}},{key:"onLabelMouseDown",value:function(e,t,n){this.notifyMouseDown(e,t,n),this.startLabelDragging(e,t,n);var r=this.getEventData(e).stopPropagation;r&&e.stopPropagation()}},{key:"startEdgeDragging",value:function(e,t,n){this.can("edgeMovable")?this.setEventData(e,{x:t,y:n,moving:!1,action:"drag-edge"}):this.notifyUnhandledMouseDown(e,t,n)}},{key:"dragEdge",value:function(e,t,n){var r=this.getEventData(e);r.moving||(r.moving=!0,this.addClass("edge-moving"),this.notify("edge:move",{e:e,x:t,y:n,view:this,cell:this.cell,edge:this.cell})),this.cell.translate(t-r.x,n-r.y,{ui:!0}),this.setEventData(e,{x:t,y:n}),this.notify("edge:moving",{e:e,x:t,y:n,view:this,cell:this.cell,edge:this.cell})}},{key:"stopEdgeDragging",value:function(e,t,n){var r=this.getEventData(e);r.moving&&(this.removeClass("edge-moving"),this.notify("edge:moved",{e:e,x:t,y:n,view:this,cell:this.cell,edge:this.cell})),r.moving=!1}},{key:"prepareArrowheadDragging",value:function(e,t){var n=this.getTerminalMagnet(e),r={action:"drag-arrowhead",x:t.x,y:t.y,isNewEdge:!0===t.isNewEdge,terminalType:e,initialMagnet:n,initialTerminal:O["g"].clone(this.cell[e]),fallbackAction:t.fallbackAction||"revert",getValidateConnectionArgs:this.createValidateConnectionArgs(e),options:t.options};return this.beforeArrowheadDragging(r),r}},{key:"createValidateConnectionArgs",value:function(e){var t,n=[];n[4]=e,n[5]=this;var r=0,i=0;"source"===e?(r=2,t="target"):(i=2,t="source");var o=this.cell[t],a=o.cell;if(a){var s,l=n[r]=this.graph.renderer.findViewByCell(a);l&&(s=l.getMagnetFromEdgeTerminal(o),s===l.container&&(s=void 0)),n[r+1]=s}return function(e,t){return n[i]=e,n[i+1]=e.container===t?void 0:t,n}}},{key:"beforeArrowheadDragging",value:function(e){e.zIndex=this.cell.zIndex,this.cell.toFront();var t=this.container.style;e.pointerEvents=t.pointerEvents,t.pointerEvents="none",this.graph.options.connecting.highlight&&this.highlightAvailableMagnets(e)}},{key:"afterArrowheadDragging",value:function(e){null!=e.zIndex&&(this.cell.setZIndex(e.zIndex,{ui:!0}),e.zIndex=null);var t=this.container;t.style.pointerEvents=e.pointerEvents||"",this.graph.options.connecting.highlight&&this.unhighlightAvailableMagnets(e)}},{key:"arrowheadDragging",value:function(e,t,n,r){var i;(r.x=t,r.y=n,r.currentTarget!==e)&&(r.currentMagnet&&r.currentView&&r.currentView.unhighlight(r.currentMagnet,{type:"magnetAdsorbed"}),r.currentView=this.graph.renderer.findViewByElem(e),r.currentView?(r.currentMagnet=r.currentView.findMagnet(e),r.currentMagnet&&(i=this.graph.hook).validateConnection.apply(i,d(r.getValidateConnectionArgs(r.currentView,r.currentMagnet)).concat([r.currentView.getEdgeTerminal(r.currentMagnet,t,n,this.cell,r.terminalType)]))?r.currentView.highlight(r.currentMagnet,{type:"magnetAdsorbed"}):r.currentMagnet=null):r.currentMagnet=null);r.currentTarget=e,this.cell.prop(r.terminalType,{x:t,y:n},Object.assign(Object.assign({},r.options),{ui:!0}))}},{key:"arrowheadDragged",value:function(e,t,n){var r=e.currentView,i=e.currentMagnet;if(i&&r){r.unhighlight(i,{type:"magnetAdsorbed"});var o=e.terminalType,a=r.getEdgeTerminal(i,t,n,this.cell,o);this.cell.setTerminal(o,a,{ui:!0})}}},{key:"snapArrowhead",value:function(e,t,n){var r,i=this,o=this.graph,a=o.options.connecting.snap,s="object"===p(a)&&a.radius||50,l=o.renderer.findViewsInArea({x:e-s,y:t-s,width:2*s,height:2*s}),u=n.closestView||null,c=n.closestMagnet||null;n.closestView=null,n.closestMagnet=null;var h,f=Number.MAX_SAFE_INTEGER,g=new K["f"](e,t);l.forEach((function(a){var l;"false"!==a.container.getAttribute("magnet")&&(r=a.cell.getBBox().getCenter().distance(g),r<s&&r<f&&(c===a.container||(l=o.hook).validateConnection.apply(l,d(n.getValidateConnectionArgs(a,null)).concat([a.getEdgeTerminal(a.container,e,t,i.cell,n.terminalType)])))&&(f=r,n.closestView=a,n.closestMagnet=a.container));a.container.querySelectorAll("[magnet]").forEach((function(l){if("false"!==l.getAttribute("magnet")){var u,h=a.getBBoxOfElement(l);if(r=g.distance(h.getCenter()),r<s&&r<f)(c===l||(u=o.hook).validateConnection.apply(u,d(n.getValidateConnectionArgs(a,l)).concat([a.getEdgeTerminal(l,e,t,i.cell,n.terminalType)])))&&(f=r,n.closestView=a,n.closestMagnet=l)}}))}));var v=n.terminalType,y=n.closestView,m=n.closestMagnet,b=c!==m;if(u&&b&&u.unhighlight(c,{type:"magnetAdsorbed"}),y){if(!b)return;y.highlight(m,{type:"magnetAdsorbed"}),h=y.getEdgeTerminal(m,e,t,this.cell,v)}else h={x:e,y:t};this.cell.setTerminal(v,h,{},Object.assign(Object.assign({},n.options),{ui:!0}))}},{key:"snapArrowheadEnd",value:function(e){var t=e.closestView,n=e.closestMagnet;t&&n&&(t.unhighlight(n,{type:"magnetAdsorbed"}),e.currentMagnet=t.findMagnet(n)),e.closestView=null,e.closestMagnet=null}},{key:"finishEmbedding",value:function(e){this.graph.options.embedding.enabled&&this.cell.updateParent()&&(e.zIndex=null)}},{key:"fallbackConnection",value:function(e){switch(e.fallbackAction){case"remove":this.cell.remove({ui:!0});break;case"revert":default:this.cell.prop(e.terminalType,e.initialTerminal,{ui:!0});break}}},{key:"notifyConnectionEvent",value:function(e,t){var n=e.terminalType,r=e.initialTerminal,i=this.cell[n],o=i&&!ir.equalTerminals(r,i);if(o){var a=this.graph,s=r,l=s.cell?a.getCellById(s.cell):null,u=s.port,c=l?a.findViewByCell(l):null,h=l||e.isNewEdge?null:K["f"].create(r).toJSON(),d=i,f=d.cell?a.getCellById(d.cell):null,g=d.port,p=f?a.findViewByCell(f):null,v=f?null:K["f"].create(i).toJSON();this.notify("edge:connected",{e:t,previousCell:l,previousPort:u,previousView:c,previousPoint:h,currentCell:f,currentView:p,currentPort:g,currentPoint:v,previousMagnet:e.initialMagnet,currentMagnet:e.currentMagnet,edge:this.cell,view:this,type:n,isNew:e.isNewEdge})}}},{key:"highlightAvailableMagnets",value:function(e){var t=this,n=this.graph,r=n.model.getCells();e.marked={};for(var i=function(i,o){var a=n.renderer.findViewByCell(r[i]);if(!a)return"continue";var s=Array.prototype.slice.call(a.container.querySelectorAll("[magnet]"));"false"!==a.container.getAttribute("magnet")&&s.push(a.container);var l=s.filter((function(r){var i;return(i=n.hook).validateConnection.apply(i,d(e.getValidateConnectionArgs(a,r)).concat([a.getEdgeTerminal(r,e.x,e.y,t.cell,e.terminalType)]))}));if(l.length>0){for(var u=0,c=l.length;u<c;u+=1)a.highlight(l[u],{type:"magnetAvailable"});a.highlight(null,{type:"nodeAvailable"}),e.marked[a.cell.id]=l}},o=0,a=r.length;o<a;o+=1)i(o,a)}},{key:"unhighlightAvailableMagnets",value:function(e){var t=this,n=e.marked||{};Object.keys(n).forEach((function(e){var r=t.graph.renderer.findViewByCell(e);if(r){var i=n[e];i.forEach((function(e){r.unhighlight(e,{type:"magnetAvailable"})})),r.unhighlight(null,{type:"nodeAvailable"})}})),e.marked=null}},{key:"startArrowheadDragging",value:function(e,t,n){if(this.can("arrowheadMovable")){var r=e.target,i=r.getAttribute("data-terminal"),o=this.prepareArrowheadDragging(i,{x:t,y:n});this.setEventData(e,o)}else this.notifyUnhandledMouseDown(e,t,n)}},{key:"dragArrowhead",value:function(e,t,n){var r=this.getEventData(e);this.graph.options.connecting.snap?this.snapArrowhead(t,n,r):this.arrowheadDragging(this.getEventTarget(e),t,n,r)}},{key:"stopArrowheadDragging",value:function(e,t,n){var r=this.graph,i=this.getEventData(e);r.options.connecting.snap?this.snapArrowheadEnd(i):this.arrowheadDragged(i,t,n);var o=r.hook.validateEdge(this.cell,i.terminalType,i.initialTerminal);o?(this.finishEmbedding(i),this.notifyConnectionEvent(i,e)):this.fallbackConnection(i),this.afterArrowheadDragging(i)}},{key:"startLabelDragging",value:function(e,t,n){if(this.can("edgeLabelMovable")){var r=e.currentTarget,i=parseInt(r.getAttribute("data-index"),10),o=this.getLabelPositionAngle(i),a=this.getLabelPositionArgs(i),s=this.getDefaultLabelPositionArgs(),l=this.mergeLabelPositionArgs(a,s);this.setEventData(e,{index:i,positionAngle:o,positionArgs:l,stopPropagation:!0,action:"drag-label"})}else this.setEventData(e,{stopPropagation:!0});this.graph.view.delegateDragEvents(e,this)}},{key:"dragLabel",value:function(e,t,n){var r=this.getEventData(e),i=this.cell.getLabelAt(r.index),o=O["g"].merge({},i,{position:this.getLabelPosition(t,n,r.positionAngle,r.positionArgs)});this.cell.setLabelAt(r.index,o)}},{key:"stopLabelDragging",value:function(e,t,n){}},{key:"handleVertexAdding",value:function(e,t,n){if(this.can("vertexAddable")){var r=this.addVertex({x:t,y:n},{ui:!0});this.setEventData(e,{index:r,action:"drag-vertex"})}else this.notifyUnhandledMouseDown(e,t,n)}},{key:"handleVertexRemoving",value:function(e,t,n){if(this.can("vertexDeletable")){var r=e.target,i=parseInt(r.getAttribute("idx"),10);this.cell.removeVertexAt(i)}else this.notifyUnhandledMouseDown(e,t,n)}},{key:"startVertexDragging",value:function(e,t,n){if(this.can("vertexMovable")){var r=e.target,i=parseInt(r.getAttribute("idx"),10);this.setEventData(e,{index:i,action:"drag-vertex"})}else this.notifyUnhandledMouseDown(e,t,n)}},{key:"dragVertex",value:function(e,t,n){var r=this.getEventData(e);this.cell.setVertexAt(r.index,{x:t,y:n},{ui:!0})}},{key:"stopVertexDragging",value:function(e,t,n){}}]),r}(nr["a"],Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"===typeof r.isNodeView&&"function"===typeof r.isEdgeView&&"function"===typeof r.confirmUpdate&&"function"===typeof r.update&&"function"===typeof r.getConnection}e.toStringTag="X6.".concat(e.name),e.isEdgeView=t})(ar||(ar={})),ar.config({isSvgElement:!0,priority:1,bootstrap:["render","source","target"],actions:{view:["render"],markup:["render"],attrs:["update"],source:["source","update"],target:["target","update"],router:["update"],connector:["update"],labels:["labels"],defaultLabel:["labels"],vertices:["vertices","update"],vertexMarkup:["vertices"],toolMarkup:["tools"],tools:["widget"]},shortLength:105,longLength:155,toolsOffset:40,doubleTools:!1,doubleToolsOffset:65,sampleInterval:50}),ar.registry.register("edge",ar,!0);var sr=function(e,t){u(r,e);var n=c(r);function r(){var e;return f(this,r),e=n.apply(this,arguments),e.scalableNode=null,e.rotatableNode=null,e.scalableSelector="scalable",e.rotatableSelector="rotatable",e.defaultPortMarkup=Ln["a"].getPortMarkup(),e.defaultPortLabelMarkup=Ln["a"].getPortLabelMarkup(),e.defaultPortContainerMarkup=Ln["a"].getPortContainerMarkup(),e.portsCache={},e}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"getContainerClassName",value:function(){var e=[i(o(r.prototype),"getContainerClassName",this).call(this),this.prefixClassName("node")];return this.can("nodeMovable")||e.push(this.prefixClassName("node-immovable")),e.join(" ")}},{key:"updateClassName",value:function(e){var t=e.target;if(t.hasAttribute("magnet")){var n=this.prefixClassName("port-unconnectable");this.can("magnetConnectable")?O["c"].removeClass(t,n):O["c"].addClass(t,n)}else{var r=this.prefixClassName("node-immovable");this.can("nodeMovable")?this.removeClass(r):this.addClass(r)}}},{key:"isNodeView",value:function(){return!0}},{key:"confirmUpdate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e;return this.hasAction(r,"ports")&&(this.removePorts(),this.cleanPortsCache()),this.hasAction(r,"render")?(this.render(),r=this.removeAction(r,["render","update","resize","translate","rotate","ports","tools"])):(r=this.handleAction(r,"resize",(function(){return t.resize(n)}),"update"),r=this.handleAction(r,"update",(function(){return t.update()}),ne["a"].useCSSSelector?"ports":null),r=this.handleAction(r,"translate",(function(){return t.translate()})),r=this.handleAction(r,"rotate",(function(){return t.rotate()})),r=this.handleAction(r,"ports",(function(){return t.renderPorts()})),r=this.handleAction(r,"tools",(function(){return t.renderTools()}))),r}},{key:"update",value:function(e){this.cleanCache(),ne["a"].useCSSSelector&&this.removePorts();var t=this.cell,n=t.getSize(),r=t.getAttrs();this.updateAttrs(this.container,r,{attrs:e===r?null:e,rootBBox:new K["h"](0,0,n.width,n.height),selectors:this.selectors,scalableNode:this.scalableNode,rotatableNode:this.rotatableNode}),ne["a"].useCSSSelector&&this.renderPorts()}},{key:"renderMarkup",value:function(){var e=this.cell.markup;if(e)return"string"===typeof e?this.renderStringMarkup(e):this.renderJSONMarkup(e);throw new TypeError("Invalid node markup.")}},{key:"renderJSONMarkup",value:function(e){var t=this.parseJSONMarkup(e,this.container),n=function(e){return Array.isArray(e)?e[0]:e};this.selectors=t.selectors,this.rotatableNode=n(this.selectors[this.rotatableSelector]),this.scalableNode=n(this.selectors[this.scalableSelector]),this.container.appendChild(t.fragment)}},{key:"renderStringMarkup",value:function(e){O["c"].append(this.container,O["m"].toNodes(O["m"].createVectors(e))),this.rotatableNode=O["c"].findOne(this.container,".".concat(this.rotatableSelector)),this.scalableNode=O["c"].findOne(this.container,".".concat(this.scalableSelector)),this.selectors={},this.rootSelector&&(this.selectors[this.rootSelector]=this.container)}},{key:"render",value:function(){return this.empty(),this.renderMarkup(),this.scalableNode&&this.update(),this.resize(),this.rotatableNode?(this.rotate(),this.translate()):this.updateTransform(),ne["a"].useCSSSelector||this.renderPorts(),this.renderTools(),this}},{key:"resize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.scalableNode)return this.updateSize(e);this.cell.getAngle()&&this.rotate(),this.update()}},{key:"translate",value:function(){if(this.rotatableNode)return this.updateTranslation();this.updateTransform()}},{key:"rotate",value:function(){if(this.rotatableNode)return this.updateRotation(),void this.update();this.updateTransform()}},{key:"getTranslationString",value:function(){var e=this.cell.getPosition();return"translate(".concat(e.x,",").concat(e.y,")")}},{key:"getRotationString",value:function(){var e=this.cell.getAngle();if(e){var t=this.cell.getSize();return"rotate(".concat(e,",").concat(t.width/2,",").concat(t.height/2,")")}}},{key:"updateTransform",value:function(){var e=this.getTranslationString(),t=this.getRotationString();t&&(e+=" ".concat(t)),this.container.setAttribute("transform",e)}},{key:"updateRotation",value:function(){if(null!=this.rotatableNode){var e=this.getRotationString();null!=e?this.rotatableNode.setAttribute("transform",e):this.rotatableNode.removeAttribute("transform")}}},{key:"updateTranslation",value:function(){this.container.setAttribute("transform",this.getTranslationString())}},{key:"updateSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.cell,n=t.getSize(),r=t.getAngle(),i=this.scalableNode,o=!1;i.getElementsByTagName("path").length>0&&(o=!0);var a=O["c"].getBBox(i,{recursive:o}),s=n.width/(a.width||1),l=n.height/(a.height||1);i.setAttribute("transform","scale(".concat(s,",").concat(l,")"));var u=this.rotatableNode;if(null!=u){var c=u.getAttribute("transform");if(c){u.setAttribute("transform","".concat(c," rotate(").concat(-r,",").concat(n.width/2,",").concat(n.height/2,")"));var h=O["c"].getBBox(i,{target:this.graph.view.stage});t.prop("position",{x:h.x,y:h.y},Object.assign({updated:!0},e)),this.translate(),this.rotate()}}this.update()}},{key:"findPortElem",value:function(e,t){var n=e?this.portsCache[e]:null;if(!n)return null;var r=n.portContentElement,i=n.portContentSelectors||{};return this.findOne(t,r,i)}},{key:"initializePorts",value:function(){this.cleanPortsCache()}},{key:"refreshPorts",value:function(){this.removePorts(),this.cleanPortsCache(),this.renderPorts()}},{key:"cleanPortsCache",value:function(){this.portsCache={}}},{key:"removePorts",value:function(){var e=this;Object.keys(this.portsCache).forEach((function(t){var n=e.portsCache[t];O["c"].remove(n.portElement)}))}},{key:"renderPorts",value:function(){var e=this,t=this.getPortsContainer(),n=[];t.childNodes.forEach((function(e){n.push(e)}));var r=O["a"].groupBy(this.cell.getParsedPorts(),"zIndex"),i="auto";r[i]&&r[i].forEach((function(r){var i=e.getPortElement(r);t.append(i),n.push(i)})),Object.keys(r).forEach((function(t){if(t!==i){var o=parseInt(t,10);e.appendPorts(r[t],o,n)}})),this.updatePorts()}},{key:"getPortsContainer",value:function(){return this.rotatableNode||this.container}},{key:"appendPorts",value:function(e,t,n){var r=this,i=e.map((function(e){return r.getPortElement(e)}));n[t]||t<0?O["c"].before(n[Math.max(t,0)],i):O["c"].append(this.getPortsContainer(),i)}},{key:"getPortElement",value:function(e){var t=this.portsCache[e.id];return t?t.portElement:this.createPortElement(e)}},{key:"createPortElement",value:function(e){var t=Ln["a"].renderMarkup(this.getPortContainerMarkup()),n=t.elem;if(null==n)throw new Error("Invalid port container markup.");t=Ln["a"].renderMarkup(this.getPortMarkup(e));var r=t.elem,i=t.selectors;if(null==r)throw new Error("Invalid port markup.");this.setAttrs({port:e.id,"port-group":e.group},r),t=Ln["a"].renderMarkup(this.getPortLabelMarkup(e.label));var o,a=t.elem,s=t.selectors;if(null==a)throw new Error("Invalid port label markup.");if(i&&s){for(var l in s)if(i[l]&&l!==this.rootSelector)throw new Error("Selectors within port must be unique.");o=Object.assign(Object.assign({},i),s)}else o=i||s;return O["c"].addClass(n,"x6-port"),O["c"].addClass(r,"x6-port-body"),O["c"].addClass(a,"x6-port-label"),n.appendChild(r),n.appendChild(a),this.portsCache[e.id]={portElement:n,portSelectors:o,portLabelElement:a,portLabelSelectors:s,portContentElement:r,portContentSelectors:i},this.graph.hook.onPortRendered({port:e,node:this.cell,container:n,selectors:o,labelContainer:a,labelSelectors:s,contentContainer:r,contentSelectors:i}),n}},{key:"updatePorts",value:function(){var e=this;this.updatePortGroup();var t=this.cell.getParsedGroups();Object.keys(t).forEach((function(t){return e.updatePortGroup(t)}))}},{key:"updatePortGroup",value:function(e){for(var t=K["h"].fromSize(this.cell.getSize()),n=this.cell.getPortsLayoutByGroup(e,t),r=0,i=n.length;r<i;r+=1){var o=n[r],a=o.portId,s=this.portsCache[a]||{},l=o.portLayout;if(this.applyPortTransform(s.portElement,l),null!=o.portAttrs){var u={selectors:s.portSelectors||{}};o.portSize&&(u.rootBBox=K["h"].fromSize(o.portSize)),this.updateAttrs(s.portElement,o.portAttrs,u)}var c=o.labelLayout;if(c&&(this.applyPortTransform(s.portLabelElement,c,-(l.angle||0)),c.attrs)){var h={selectors:s.portLabelSelectors||{}};o.labelSize&&(h.rootBBox=K["h"].fromSize(o.labelSize)),this.updateAttrs(s.portLabelElement,c.attrs,h)}}}},{key:"applyPortTransform",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.angle,i=t.position,o=O["c"].createSVGMatrix().rotate(n).translate(i.x||0,i.y||0).rotate(r||0);O["c"].transform(e,o,{absolute:!0})}},{key:"getPortContainerMarkup",value:function(){return this.cell.getPortContainerMarkup()||this.defaultPortContainerMarkup}},{key:"getPortMarkup",value:function(e){return e.markup||this.cell.portMarkup||this.defaultPortMarkup}},{key:"getPortLabelMarkup",value:function(e){return e.markup||this.cell.portLabelMarkup||this.defaultPortLabelMarkup}},{key:"getEventArgs",value:function(e,t,n){var r=this,i=r.cell,o=i;return null==t||null==n?{e:e,view:r,node:i,cell:o}:{e:e,x:t,y:n,view:r,node:i,cell:o}}},{key:"notifyMouseDown",value:function(e,t,n){i(o(r.prototype),"onMouseDown",this).call(this,e,t,n),this.notify("node:mousedown",this.getEventArgs(e,t,n))}},{key:"notifyMouseMove",value:function(e,t,n){i(o(r.prototype),"onMouseMove",this).call(this,e,t,n),this.notify("node:mousemove",this.getEventArgs(e,t,n))}},{key:"notifyMouseUp",value:function(e,t,n){i(o(r.prototype),"onMouseUp",this).call(this,e,t,n),this.notify("node:mouseup",this.getEventArgs(e,t,n))}},{key:"onClick",value:function(e,t,n){i(o(r.prototype),"onClick",this).call(this,e,t,n),this.notify("node:click",this.getEventArgs(e,t,n))}},{key:"onDblClick",value:function(e,t,n){i(o(r.prototype),"onDblClick",this).call(this,e,t,n),this.notify("node:dblclick",this.getEventArgs(e,t,n))}},{key:"onContextMenu",value:function(e,t,n){i(o(r.prototype),"onContextMenu",this).call(this,e,t,n),this.notify("node:contextmenu",this.getEventArgs(e,t,n))}},{key:"onMouseDown",value:function(e,t,n){this.isPropagationStopped(e)||(this.notifyMouseDown(e,t,n),this.startNodeDragging(e,t,n))}},{key:"onMouseMove",value:function(e,t,n){var r=this.getEventData(e),i=r.action;if("magnet"===i)this.dragMagnet(e,t,n);else{if("move"===i){var o=r,a=o.targetView||this;a.dragNode(e,t,n),a.notify("node:moving",{e:e,x:t,y:n,view:a,cell:a.cell,node:a.cell})}this.notifyMouseMove(e,t,n)}this.setEventData(e,r)}},{key:"onMouseUp",value:function(e,t,n){var r=this.getEventData(e),i=r.action;if("magnet"===i)this.stopMagnetDragging(e,t,n);else if(this.notifyMouseUp(e,t,n),"move"===i){var o=r,a=o.targetView||this;a.stopNodeDragging(e,t,n)}var s=r.targetMagnet;s&&this.onMagnetClick(e,s,t,n),this.checkMouseleave(e)}},{key:"onMouseOver",value:function(e){i(o(r.prototype),"onMouseOver",this).call(this,e),this.notify("node:mouseover",this.getEventArgs(e))}},{key:"onMouseOut",value:function(e){i(o(r.prototype),"onMouseOut",this).call(this,e),this.notify("node:mouseout",this.getEventArgs(e))}},{key:"onMouseEnter",value:function(e){this.updateClassName(e),i(o(r.prototype),"onMouseEnter",this).call(this,e),this.notify("node:mouseenter",this.getEventArgs(e))}},{key:"onMouseLeave",value:function(e){i(o(r.prototype),"onMouseLeave",this).call(this,e),this.notify("node:mouseleave",this.getEventArgs(e))}},{key:"onMouseWheel",value:function(e,t,n,a){i(o(r.prototype),"onMouseWheel",this).call(this,e,t,n,a),this.notify("node:mousewheel",Object.assign({delta:a},this.getEventArgs(e,t,n)))}},{key:"onMagnetClick",value:function(e,t,n,r){var i=this.graph.view.getMouseMovedCount(e);i>this.graph.options.clickThreshold||this.notify("node:magnet:click",Object.assign({magnet:t},this.getEventArgs(e,n,r)))}},{key:"onMagnetDblClick",value:function(e,t,n,r){this.notify("node:magnet:dblclick",Object.assign({magnet:t},this.getEventArgs(e,n,r)))}},{key:"onMagnetContextMenu",value:function(e,t,n,r){this.notify("node:magnet:contextmenu",Object.assign({magnet:t},this.getEventArgs(e,n,r)))}},{key:"onMagnetMouseDown",value:function(e,t,n,r){this.startMagnetDragging(e,n,r)}},{key:"onCustomEvent",value:function(e,t,n,a){this.notify("node:customevent",Object.assign({name:t},this.getEventArgs(e,n,a))),i(o(r.prototype),"onCustomEvent",this).call(this,e,t,n,a)}},{key:"prepareEmbedding",value:function(e){var t=this.getEventData(e),n=t.cell||this.cell,r=this.graph.findViewByCell(n),i=this.graph.snapToGrid(e.clientX,e.clientY);this.notify("node:embed",{e:e,node:n,view:r,cell:n,x:i.x,y:i.y,currentParent:n.getParent()})}},{key:"processEmbedding",value:function(e,t){var n=this,r=t.cell||this.cell,i=t.graph||this.graph,o=i.options.embedding,a=o.findParent,s="function"===typeof a?O["d"].call(a,i,{view:this,node:this.cell}).filter((function(e){return Gn.isCell(e)&&n.cell.id!==e.id&&!e.isDescendantOf(n.cell)})):i.model.getNodesUnderNode(r,{by:a});o.frontOnly&&(s=s.slice(-1));for(var l=null,u=t.candidateEmbedView,c=o.validate,h=s.length-1;h>=0;h-=1){var d=s[h];if(u&&u.cell.id===d.id){l=u;break}var f=d.findView(i);if(O["d"].call(c,i,{child:this.cell,parent:f.cell,childView:this,parentView:f})){l=f;break}}this.clearEmbedding(t),l&&l.highlight(null,{type:"embedding"}),t.candidateEmbedView=l;var g=i.snapToGrid(e.clientX,e.clientY);this.notify("node:embedding",{e:e,cell:r,node:r,view:i.findViewByCell(r),x:g.x,y:g.y,currentParent:r.getParent(),candidateParent:l?l.cell:null})}},{key:"clearEmbedding",value:function(e){var t=e.candidateEmbedView;t&&(t.unhighlight(null,{type:"embedding"}),e.candidateEmbedView=null)}},{key:"finalizeEmbedding",value:function(e,t){var n=t.cell||this.cell,r=t.graph||this.graph,i=r.findViewByCell(n),o=n.getParent(),a=t.candidateEmbedView;a?(a.unhighlight(null,{type:"embedding"}),t.candidateEmbedView=null,null!=o&&o.id===a.cell.id||a.cell.insertChild(n,void 0,{ui:!0})):o&&o.unembed(n,{ui:!0}),r.model.getConnectedEdges(n,{deep:!0}).forEach((function(e){e.updateParent({ui:!0})}));var s=r.snapToGrid(e.clientX,e.clientY);i&&i.notify("node:embedded",{e:e,cell:n,x:s.x,y:s.y,node:n,view:r.findViewByCell(n),previousParent:o,currentParent:n.getParent()})}},{key:"getDelegatedView",value:function(){var e=this.cell,t=this;while(t){if(e.isEdge())break;if(!e.hasParent()||t.can("stopDelegateOnDragging"))return t;e=e.getParent(),t=this.graph.renderer.findViewByCell(e)}return null}},{key:"startMagnetDragging",value:function(e,t,n){if(this.can("magnetConnectable")){e.stopPropagation();var r=e.currentTarget,i=this.graph;this.setEventData(e,{targetMagnet:r}),i.hook.validateMagnet(this,r,e)?(i.options.magnetThreshold<=0&&this.startConnectting(e,r,t,n),this.setEventData(e,{action:"magnet"}),this.stopPropagation(e)):this.onMouseDown(e,t,n),i.view.delegateDragEvents(e,this)}}},{key:"startConnectting",value:function(e,t,n,r){this.graph.model.startBatch("add-edge");var i=this.createEdgeFromMagnet(t,n,r);i.notifyMouseDown(e,n,r),i.setEventData(e,i.prepareArrowheadDragging("target",{x:n,y:r,isNewEdge:!0,fallbackAction:"remove"})),this.setEventData(e,{edgeView:i})}},{key:"createEdgeFromMagnet",value:function(e,t,n){var r=this.graph,i=r.model,o=r.hook.getDefaultEdge(this,e);return o.setSource(Object.assign(Object.assign({},o.getSource()),this.getEdgeTerminal(e,t,n,o,"source"))),o.setTarget(Object.assign(Object.assign({},o.getTarget()),{x:t,y:n})),o.addTo(i,{async:!1,ui:!0}),o.findView(r)}},{key:"dragMagnet",value:function(e,t,n){var r=this.getEventData(e),i=r.edgeView;if(i)i.onMouseMove(e,t,n),this.autoScrollGraph(e.clientX,e.clientY);else{var o=this.graph,a=o.options.magnetThreshold,s=this.getEventTarget(e),l=r.targetMagnet;if("onleave"===a){if(l===s||l.contains(s))return}else if(o.view.getMouseMovedCount(e)<=a)return;this.startConnectting(e,l,t,n)}}},{key:"stopMagnetDragging",value:function(e,t,n){var r=this.eventData(e),i=r.edgeView;i&&(i.onMouseUp(e,t,n),this.graph.model.stopBatch("add-edge"))}},{key:"notifyUnhandledMouseDown",value:function(e,t,n){this.notify("node:unhandled:mousedown",{e:e,x:t,y:n,view:this,cell:this.cell,node:this.cell})}},{key:"notifyNodeMove",value:function(e,t,n,r,i){var o=this,a=[i],s=this.graph.selection.widget;if(s&&s.options.movable){var l=this.graph.getSelectedCells();l.includes(i)&&(a=l.filter((function(e){return e.isNode()})))}a.forEach((function(i){o.notify(e,{e:t,x:n,y:r,cell:i,node:i,view:i.findView(o.graph)})}))}},{key:"startNodeDragging",value:function(e,t,n){var r=this.getDelegatedView();if(null==r||!r.can("nodeMovable"))return this.notifyUnhandledMouseDown(e,t,n);this.setEventData(e,{targetView:r,action:"move"});var i=K["f"].create(r.cell.getPosition());r.setEventData(e,{moving:!1,offset:i.diff(t,n),restrict:this.graph.hook.getRestrictArea(r)})}},{key:"dragNode",value:function(e,t,n){var r=this.cell,i=this.graph,o=i.getGridSize(),a=this.getEventData(e),s=a.offset,l=a.restrict;a.moving||(a.moving=!0,this.addClass("node-moving"),this.notifyNodeMove("node:move",e,t,n,this.cell)),this.autoScrollGraph(e.clientX,e.clientY);var u=ne["b"].snapToGrid(t+s.x,o),c=ne["b"].snapToGrid(n+s.y,o);r.setPosition(u,c,{restrict:l,deep:!0,ui:!0}),i.options.embedding.enabled&&(a.embedding||(this.prepareEmbedding(e),a.embedding=!0),this.processEmbedding(e,a))}},{key:"stopNodeDragging",value:function(e,t,n){var r=this.getEventData(e);r.embedding&&this.finalizeEmbedding(e,r),r.moving&&(this.removeClass("node-moving"),this.notifyNodeMove("node:moved",e,t,n,this.cell)),r.moving=!1,r.embedding=!1}},{key:"autoScrollGraph",value:function(e,t){var n=this.graph.scroller.widget;n&&n.autoScroll(e,t)}}]),r}(nr["a"],Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"===typeof r.isNodeView&&"function"===typeof r.isEdgeView&&"function"===typeof r.confirmUpdate&&"function"===typeof r.update&&"function"===typeof r.findPortElem&&"function"===typeof r.resize&&"function"===typeof r.rotate&&"function"===typeof r.translate}e.toStringTag="X6.".concat(e.name),e.isNodeView=t})(sr||(sr={})),sr.config({isSvgElement:!0,priority:0,bootstrap:["render"],actions:{view:["render"],markup:["render"],attrs:["update"],size:["resize","ports","tools"],angle:["rotate","tools"],position:["translate","tools"],ports:["ports"],tools:["tools"]}}),sr.registry.register("node",sr,!0);n("8010");var lr=Jn("text"),ur=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return n}(Kn("text",{view:lr,attrs:{text:{fontSize:18,fill:"#000000",stroke:null,refX:.5,refY:.5}}},{noText:!0}));(function(e){var t=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"confirmUpdate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i(o(n.prototype),"confirmUpdate",this).call(this,e,t);return this.hasAction(r,"scale")&&(this.resize(),r=this.removeAction(r,"scale")),r}}]),n}(sr);e.View=t,t.config({actions:{attrs:["scale"]}}),sr.registry.register(lr,t)})(ur||(ur={}));var cr=function(e){u(n,e);var t=c(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(this,n),r=t.call(this),r.length=0,r.comparator=i.comparator||"zIndex",r.clean(),e&&r.reset(e,{silent:!0}),r}return g(n,[{key:"toJSON",value:function(){return this.cells.map((function(e){return e.toJSON()}))}},{key:"add",value:function(e,t,n){var r,i,o=this;"number"===typeof t?(r=t,i=Object.assign({merge:!1},n)):(r=this.length,i=Object.assign({merge:!1},t)),r>this.length&&(r=this.length),r<0&&(r+=this.length+1);var a,s=Array.isArray(e)?e:[e],l=this.comparator&&"number"!==typeof t&&!1!==i.sort,u=this.comparator||null,c=!1,h=[],d=[];(s.forEach((function(e){var t=o.get(e);t?i.merge&&!e.isSameStore(t)&&(t.setProp(e.getProp(),n),d.push(t),l&&!c&&(c=null==u||"function"===typeof u?t.hasChanged():"string"===typeof u?t.hasChanged(u):u.some((function(e){return t.hasChanged(e)})))):(h.push(e),o.reference(e))})),h.length)&&(l&&(c=!0),(a=this.cells).splice.apply(a,[r,0].concat(h)),this.length=this.cells.length);return c&&this.sort({silent:!0}),i.silent||(h.forEach((function(e,t){var n={cell:e,index:r+t,options:i};o.trigger("added",n),i.dryrun||e.notify("added",Object.assign({},n))})),c&&this.trigger("sorted"),(h.length||d.length)&&this.trigger("updated",{added:h,merged:d,removed:[],options:i})),this}},{key:"remove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(e)?e:[e],r=this.removeCells(n,t);return!t.silent&&r.length>0&&this.trigger("updated",{options:t,removed:r,added:[],merged:[]}),Array.isArray(e)?r:r[0]}},{key:"removeCells",value:function(e,t){for(var n=[],r=0;r<e.length;r+=1){var i=this.get(e[r]);if(null!=i){var o=this.cells.indexOf(i);this.cells.splice(o,1),this.length-=1,delete this.map[i.id],n.push(i),this.unreference(i),t.dryrun||i.remove(),t.silent||(this.trigger("removed",{cell:i,index:o,options:t}),t.dryrun||i.notify("removed",{cell:i,index:o,options:t}))}}return n}},{key:"reset",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.cells.slice();if(r.forEach((function(e){return t.unreference(e)})),this.clean(),this.add(e,Object.assign({silent:!0},n)),!n.silent){var i=this.cells.slice();this.trigger("reseted",{options:n,previous:r,current:i});var o=[],a=[];i.forEach((function(e){var t=r.some((function(t){return t.id===e.id}));t||o.push(e)})),r.forEach((function(e){var t=i.some((function(t){return t.id===e.id}));t||a.push(e)})),this.trigger("updated",{options:n,added:o,removed:a,merged:[]})}return this}},{key:"push",value:function(e,t){return this.add(e,this.length,t)}},{key:"pop",value:function(e){var t=this.at(this.length-1);return this.remove(t,e)}},{key:"unshift",value:function(e,t){return this.add(e,0,t)}},{key:"shift",value:function(e){var t=this.at(0);return this.remove(t,e)}},{key:"get",value:function(e){if(null==e)return null;var t="string"===typeof e||"number"===typeof e?e:e.id;return this.map[t]||null}},{key:"has",value:function(e){return null!=this.get(e)}},{key:"at",value:function(e){return e<0&&(e+=this.length),this.cells[e]||null}},{key:"first",value:function(){return this.at(0)}},{key:"last",value:function(){return this.at(-1)}},{key:"indexOf",value:function(e){return this.cells.indexOf(e)}},{key:"toArray",value:function(){return this.cells.slice()}},{key:"sort",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return null!=this.comparator&&(this.cells=O["a"].sortBy(this.cells,this.comparator),e.silent||this.trigger("sorted")),this}},{key:"clone",value:function(){var e=this.constructor;return new e(this.cells.slice(),{comparator:this.comparator})}},{key:"reference",value:function(e){this.map[e.id]=e,e.on("*",this.notifyCellEvent,this)}},{key:"unreference",value:function(e){e.off("*",this.notifyCellEvent,this),delete this.map[e.id]}},{key:"notifyCellEvent",value:function(e,t){var n=t.cell;this.trigger("cell:".concat(e),t),n&&(n.isNode()?this.trigger("node:".concat(e),Object.assign(Object.assign({},t),{node:n})):n.isEdge()&&this.trigger("edge:".concat(e),Object.assign(Object.assign({},t),{edge:n})))}},{key:"clean",value:function(){this.length=0,this.cells=[],this.map={}}}]),n}(Fn["a"]),hr=function(e,t){u(r,e);var n=c(r);function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return f(this,r),e=n.call(this),e.batches={},e.addings=new WeakMap,e.nodes={},e.edges={},e.outgoings={},e.incomings={},e.collection=new cr(t),e.setup(),e}return g(r,[{key:t,get:function(){return r.toStringTag}},{key:"notify",value:function(e,t){this.trigger(e,t);var n=this.graph;return n&&("sorted"===e||"reseted"===e||"updated"===e?n.trigger("model:".concat(e),t):n.trigger(e,t)),this}},{key:"setup",value:function(){var e=this,t=this.collection;t.on("sorted",(function(){return e.notify("sorted",null)})),t.on("updated",(function(t){return e.notify("updated",t)})),t.on("cell:change:zIndex",(function(){return e.sortOnChangeZ()})),t.on("added",(function(t){var n=t.cell;e.onCellAdded(n)})),t.on("removed",(function(t){var n=t.cell;e.onCellRemoved(n,t.options),e.notify("cell:removed",t),n.isNode()?e.notify("node:removed",Object.assign(Object.assign({},t),{node:n})):n.isEdge()&&e.notify("edge:removed",Object.assign(Object.assign({},t),{edge:n}))})),t.on("reseted",(function(t){e.onReset(t.current),e.notify("reseted",t)})),t.on("edge:change:source",(function(t){var n=t.edge;return e.onEdgeTerminalChanged(n,"source")})),t.on("edge:change:target",(function(t){var n=t.edge;e.onEdgeTerminalChanged(n,"target")}))}},{key:"sortOnChangeZ",value:function(){this.collection.sort()}},{key:"onCellAdded",value:function(e){var t=e.id;e.isEdge()?(e.updateParent(),this.edges[t]=!0,this.onEdgeTerminalChanged(e,"source"),this.onEdgeTerminalChanged(e,"target")):this.nodes[t]=!0}},{key:"onCellRemoved",value:function(e,t){var n=e.id;if(e.isEdge()){delete this.edges[n];var r=e.getSource(),i=e.getTarget();if(r&&r.cell){var o=this.outgoings[r.cell],a=o?o.indexOf(n):-1;a>=0&&(o.splice(a,1),0===o.length&&delete this.outgoings[r.cell])}if(i&&i.cell){var s=this.incomings[i.cell],l=s?s.indexOf(n):-1;l>=0&&(s.splice(l,1),0===s.length&&delete this.incomings[i.cell])}}else delete this.nodes[n];t.clear||(t.disconnectEdges?this.disconnectConnectedEdges(e,t):this.removeConnectedEdges(e,t)),e.model===this&&(e.model=null)}},{key:"onReset",value:function(e){var t=this;this.nodes={},this.edges={},this.outgoings={},this.incomings={},e.forEach((function(e){return t.onCellAdded(e)}))}},{key:"onEdgeTerminalChanged",value:function(e,t){var n="source"===t?this.outgoings:this.incomings,r=e.previous(t);if(r&&r.cell){var i=n[r.cell],o=i?i.indexOf(e.id):-1;o>=0&&(i.splice(o,1),0===i.length&&delete n[r.cell])}var a=e.getTerminal(t);if(a&&a.cell){var s=n[a.cell]||[],l=s.indexOf(e.id);-1===l&&s.push(e.id),n[a.cell]=s}}},{key:"prepareCell",value:function(e,t){return e.model||t&&t.dryrun||(e.model=this),null==e.zIndex&&e.setZIndex(this.getMaxZIndex()+1,{silent:!0}),e}},{key:"resetCells",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.map((function(e){return t.prepareCell(e,Object.assign(Object.assign({},n),{dryrun:!0}))})),this.collection.reset(e,n),e.map((function(e){return t.prepareCell(e,{options:n})})),this}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getCells();if(0===t.length)return this;var n=Object.assign(Object.assign({},e),{clear:!0});return this.batchUpdate("clear",(function(){var e=t.sort((function(e,t){var n=e.isEdge()?1:2,r=t.isEdge()?1:2;return n-r}));while(e.length>0){var r=e.shift();r&&r.remove(n)}}),n),this}},{key:"addNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=qn.isNode(e)?e:this.createNode(e);return this.addCell(n,t),n}},{key:"createNode",value:function(e){return qn.create(e)}},{key:"addEdge",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ir.isEdge(e)?e:this.createEdge(e);return this.addCell(n,t),n}},{key:"createEdge",value:function(e){return ir.create(e)}},{key:"addCell",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Array.isArray(e)?this.addCells(e,n):(this.collection.has(e)||this.addings.has(e)||(this.addings.set(e,!0),this.collection.add(this.prepareCell(e,n),n),e.eachChild((function(e){return t.addCell(e,n)})),this.addings.delete(e)),this)}},{key:"addCells",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.length;if(0===r)return this;var i=Object.assign(Object.assign({},n),{position:r-1,maxPosition:r-1});return this.startBatch("add",Object.assign(Object.assign({},i),{cells:e})),e.forEach((function(e){t.addCell(e,i),i.position-=1})),this.stopBatch("add",Object.assign(Object.assign({},i),{cells:e})),this}},{key:"removeCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof e?this.getCell(e):e;return n&&this.has(n)?this.collection.remove(n,t):null}},{key:"removeCells",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.length?this.batchUpdate("remove",(function(){return e.map((function(e){return t.removeCell(e,n)}))})):[]}},{key:"removeConnectedEdges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getConnectedEdges(e);return n.forEach((function(e){e.remove(t)})),n}},{key:"disconnectConnectedEdges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof e?e:e.id;this.getConnectedEdges(e).forEach((function(e){var r=e.getSourceCell(),i=e.getTargetCell();r&&r.id===n&&e.setSource({x:0,y:0},t),i&&i.id===n&&e.setTarget({x:0,y:0},t)}))}},{key:"has",value:function(e){return this.collection.has(e)}},{key:"total",value:function(){return this.collection.length}},{key:"indexOf",value:function(e){return this.collection.indexOf(e)}},{key:"getCell",value:function(e){return this.collection.get(e)}},{key:"getCells",value:function(){return this.collection.toArray()}},{key:"getFirstCell",value:function(){return this.collection.first()}},{key:"getLastCell",value:function(){return this.collection.last()}},{key:"getMinZIndex",value:function(){var e=this.collection.first();return e&&e.getZIndex()||0}},{key:"getMaxZIndex",value:function(){var e=this.collection.last();return e&&e.getZIndex()||0}},{key:"getCellsFromCache",value:function(e){var t=this;return e?Object.keys(e).map((function(e){return t.getCell(e)})).filter((function(e){return null!=e})):[]}},{key:"getNodes",value:function(){return this.getCellsFromCache(this.nodes)}},{key:"getEdges",value:function(){return this.getCellsFromCache(this.edges)}},{key:"getOutgoingEdges",value:function(e){var t=this,n="string"===typeof e?e:e.id,r=this.outgoings[n];return r?r.map((function(e){return t.getCell(e)})).filter((function(e){return e&&e.isEdge()})):null}},{key:"getIncomingEdges",value:function(e){var t=this,n="string"===typeof e?e:e.id,r=this.incomings[n];return r?r.map((function(e){return t.getCell(e)})).filter((function(e){return e&&e.isEdge()})):null}},{key:"getConnectedEdges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],i="string"===typeof e?this.getCell(e):e;if(null==i)return r;var o={},a=n.indirect,s=n.incoming,l=n.outgoing;null==s&&null==l&&(s=l=!0);var u=function e(n,i){var u=i?t.getOutgoingEdges(n):t.getIncomingEdges(n);if(null!=u&&u.forEach((function(t){o[t.id]||(r.push(t),o[t.id]=!0,a&&(s&&e(t,!1),l&&e(t,!0)))})),a&&n.isEdge()){var c=i?n.getTargetCell():n.getSourceCell();c&&c.isEdge()&&(o[c.id]||(r.push(c),e(c,i)))}};if(l&&u(i,!0),s&&u(i,!1),n.deep){var c=i.getDescendants({deep:!0}),h={};c.forEach((function(e){e.isNode()&&(h[e.id]=!0)}));var d=function(e,i){var a=i?t.getOutgoingEdges(e.id):t.getIncomingEdges(e.id);null!=a&&a.forEach((function(e){if(!o[e.id]){var t=e.getSourceCell(),i=e.getTargetCell();if(!n.enclosed&&t&&h[t.id]&&i&&h[i.id])return;r.push(e),o[e.id]=!0}}))};c.forEach((function(e){e.isEdge()||(l&&d(e,!0),s&&d(e,!1))}))}return r}},{key:"isBoundary",value:function(e,t){var n="string"===typeof e?this.getCell(e):e,r=t?this.getIncomingEdges(n):this.getOutgoingEdges(n);return null==r||0===r.length}},{key:"getBoundaryNodes",value:function(e){var t=this,n=[];return Object.keys(this.nodes).forEach((function(r){if(t.isBoundary(r,e)){var i=t.getCell(r);i&&n.push(i)}})),n}},{key:"getRoots",value:function(){return this.getBoundaryNodes(!0)}},{key:"getLeafs",value:function(){return this.getBoundaryNodes(!1)}},{key:"isRoot",value:function(e){return this.isBoundary(e,!0)}},{key:"isLeaf",value:function(e){return this.isBoundary(e,!1)}},{key:"getNeighbors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.incoming,r=t.outgoing;null==n&&null==r&&(n=r=!0);var i=this.getConnectedEdges(e,t),o=i.reduce((function(i,o){var a=o.hasLoop(t),s=o.getSourceCell(),l=o.getTargetCell();return n&&s&&s.isNode()&&!i[s.id]&&(!a&&(s===e||t.deep&&s.isDescendantOf(e))||(i[s.id]=s)),r&&l&&l.isNode()&&!i[l.id]&&(!a&&(l===e||t.deep&&l.isDescendantOf(e))||(i[l.id]=l)),i}),{});if(e.isEdge()){if(n){var a=e.getSourceCell();a&&a.isNode()&&!o[a.id]&&(o[a.id]=a)}if(r){var s=e.getTargetCell();s&&s.isNode()&&!o[s.id]&&(o[s.id]=s)}}return Object.keys(o).map((function(e){return o[e]}))}},{key:"isNeighbor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.incoming,i=n.outgoing;return null==r&&null==i&&(r=i=!0),this.getConnectedEdges(e,n).some((function(e){var n=e.getSourceCell(),o=e.getTargetCell();return!(!r||!n||n.id!==t.id)||!(!i||!o||o.id!==t.id)}))}},{key:"getSuccessors",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return this.search(e,(function(i,o){i!==e&&t.matchDistance(o,n.distance)&&r.push(i)}),Object.assign(Object.assign({},n),{outgoing:!0})),r}},{key:"isSuccessor",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!1;return this.search(e,(function(o,a){if(o===t&&o!==e&&n.matchDistance(a,r.distance))return i=!0,!1}),Object.assign(Object.assign({},r),{outgoing:!0})),i}},{key:"getPredecessors",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return this.search(e,(function(i,o){i!==e&&t.matchDistance(o,n.distance)&&r.push(i)}),Object.assign(Object.assign({},n),{incoming:!0})),r}},{key:"isPredecessor",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=!1;return this.search(e,(function(o,a){if(o===t&&o!==e&&n.matchDistance(a,r.distance))return i=!0,!1}),Object.assign(Object.assign({},r),{incoming:!0})),i}},{key:"matchDistance",value:function(e,t){return null==t||("function"===typeof t?t(e):!(!Array.isArray(t)||!t.includes(e))||e===t)}},{key:"getCommonAncestor",value:function(){for(var e,t=[],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return r.forEach((function(e){e&&(Array.isArray(e)?t.push.apply(t,d(e)):t.push(e))})),(e=Gn).getCommonAncestor.apply(e,t)}},{key:"getSubGraph",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[],i={},o=[],a=[],s=function(e){i[e.id]||(r.push(e),i[e.id]=e,e.isEdge()&&a.push(e),e.isNode()&&o.push(e))};return e.forEach((function(e){if(s(e),n.deep){var t=e.getDescendants({deep:!0});t.forEach((function(e){return s(e)}))}})),a.forEach((function(e){var t=e.getSourceCell(),n=e.getTargetCell();t&&!i[t.id]&&(r.push(t),i[t.id]=t,t.isNode()&&o.push(t)),n&&!i[n.id]&&(r.push(n),i[n.id]=n,n.isNode()&&o.push(n))})),o.forEach((function(e){var o=t.getConnectedEdges(e,n);o.forEach((function(e){var t=e.getSourceCell(),n=e.getTargetCell();!i[e.id]&&t&&i[t.id]&&n&&i[n.id]&&(r.push(e),i[e.id]=e)}))})),r}},{key:"cloneSubGraph",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getSubGraph(e,t);return this.cloneCells(n)}},{key:"cloneCells",value:function(e){return Gn.cloneCells(e)}},{key:"getNodesFromPoint",value:function(e,t){var n="number"===typeof e?{x:e,y:t||0}:e;return this.getNodes().filter((function(e){return e.getBBox().containsPoint(n)}))}},{key:"getNodesInArea",value:function(e,t,n,r,i){var o="number"===typeof e?new K["h"](e,t,n,r):K["h"].create(e),a="number"===typeof e?i:t,s=a&&a.strict;return this.getNodes().filter((function(e){var t=e.getBBox();return s?o.containsRect(t):o.isIntersectWithRect(t)}))}},{key:"getEdgesInArea",value:function(e,t,n,r,i){var o="number"===typeof e?new K["h"](e,t,n,r):K["h"].create(e),a="number"===typeof e?i:t,s=a&&a.strict;return this.getEdges().filter((function(e){var t=e.getBBox();return 0===t.width?t.inflate(1,0):0===t.height&&t.inflate(0,1),s?o.containsRect(t):o.isIntersectWithRect(t)}))}},{key:"getNodesUnderNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBBox(),r=null==t.by||"bbox"===t.by?this.getNodesInArea(n):this.getNodesFromPoint(n[t.by]);return r.filter((function(t){return e.id!==t.id&&!t.isDescendantOf(e)}))}},{key:"getAllCellsBBox",value:function(){return this.getCellsBBox(this.getCells())}},{key:"getCellsBBox",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Gn.getCellsBBox(e,t)}},{key:"search",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.breadthFirst?this.breadthFirstSearch(e,t,n):this.depthFirstSearch(e,t,n)}},{key:"breadthFirstSearch",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[],o={},a={};i.push(e),a[e.id]=0;var s=function(){var e=i.shift();if(null==e||o[e.id])return"continue";if(o[e.id]=!0,!1===O["d"].call(t,n,e,a[e.id]))return"continue";var s=n.getNeighbors(e,r);s.forEach((function(t){a[t.id]=a[e.id]+1,i.push(t)}))};while(i.length>0)s()}},{key:"depthFirstSearch",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=[],o={},a={};i.push(e),a[e.id]=0;var s=function(){var e=i.pop();if(null==e||o[e.id])return"continue";if(o[e.id]=!0,!1===O["d"].call(t,n,e,a[e.id]))return"continue";var s=n.getNeighbors(e,r),l=i.length;s.forEach((function(t){a[t.id]=a[e.id]+1,i.splice(l,0,t)}))};while(i.length>0)s()}},{key:"getShortestPath",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};this.getEdges().forEach((function(e){var t=e.getSourceCellId(),i=e.getTargetCellId();t&&i&&(r[t]||(r[t]=[]),r[i]||(r[i]=[]),r[t].push(i),n.directed||r[i].push(t))}));var i="string"===typeof e?e:e.id,o=Fn["c"].run(r,i,n.weight),a=[],s="string"===typeof t?t:t.id;o[s]&&a.push(s);while(s=o[s])a.unshift(s);return a}},{key:"translate",value:function(e,t,n){return this.getCells().filter((function(e){return!e.hasParent()})).forEach((function(r){return r.translate(e,t,n)})),this}},{key:"resize",value:function(e,t,n){return this.resizeCells(e,t,this.getCells(),n)}},{key:"resizeCells",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=this.getCellsBBox(n);if(i){var o=Math.max(e/i.width,0),a=Math.max(t/i.height,0),s=i.getOrigin();n.forEach((function(e){return e.scale(o,a,s,r)}))}return this}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.toJSON(this.getCells(),e)}},{key:"parseJSON",value:function(e){return r.fromJSON(e)}},{key:"fromJSON",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.parseJSON(e);return this.resetCells(n,t),this}},{key:"startBatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.batches[e]=(this.batches[e]||0)+1,this.notify("batch:start",{name:e,data:t}),this}},{key:"stopBatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.batches[e]=(this.batches[e]||0)-1,this.notify("batch:stop",{name:e,data:t}),this}},{key:"batchUpdate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.startBatch(e,n);var r=t();return this.stopBatch(e,n),r}},{key:"hasActiveBatch",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object.keys(this.batches),n=Array.isArray(t)?t:[t];return n.some((function(t){return e.batches[t]>0}))}}]),r}(Fn["a"],Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"===typeof r.addNode&&"function"===typeof r.addEdge&&null!=r.collection}e.toStringTag="X6.".concat(e.name),e.isModel=t})(hr||(hr={})),function(e){function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{cells:e.map((function(e){return e.toJSON(t)}))}}function n(e){var t=[];return Array.isArray(e)?t.push.apply(t,d(e)):(e.cells&&t.push.apply(t,d(e.cells)),e.nodes&&e.nodes.forEach((function(e){null==e.shape&&(e.shape="rect"),t.push(e)})),e.edges&&e.edges.forEach((function(e){null==e.shape&&(e.shape="edge"),t.push(e)}))),t.map((function(e){var t=e.shape;if(t){if(qn.registry.exist(t))return qn.create(e);if(ir.registry.exist(t))return ir.create(e)}throw new Error("The `shape` should be specipied when creating a node/edge instance")}))}e.toJSON=t,e.fromJSON=n}(hr||(hr={}));var dr=".text-block-content",fr=Jn("text-block"),gr=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"content",get:function(){return this.getContent()},set:function(e){this.setContent(e)}},{key:"getContent",value:function(){return this.store.get("content","")}},{key:"setContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.store.set("content",e,t)}},{key:"setup",value:function(){var e=this;i(o(n.prototype),"setup",this).call(this),this.store.on("change:*",(function(t){var n=t.key;"content"===n?e.updateContent(e.getContent()):"size"===n&&e.updateSize(e.getSize())})),this.updateSize(this.getSize()),this.updateContent(this.getContent())}},{key:"updateSize",value:function(e){O["h"].SUPPORT_FOREIGNOBJECT&&this.setAttrs(s({foreignObject:Object.assign({},e)},dr,{style:Object.assign({},e)}))}},{key:"updateContent",value:function(e){O["h"].SUPPORT_FOREIGNOBJECT?this.setAttrs(s({},dr,{html:e?O["k"].sanitizeHTML(e):""})):this.setAttrs(s({},dr,{text:e}))}}]),n}(qn);(function(e){e.config({type:fr,view:fr,markup:['<g class="rotatable">','<g class="scalable"><rect/></g>',O["h"].SUPPORT_FOREIGNOBJECT?["<foreignObject>",'<body xmlns="http://www.w3.org/1999/xhtml">','<div class="'.concat(dr.substr(1),'" />'),"</body>","</foreignObject>"].join(""):'<text class="'.concat(dr.substr(1),'"/>'),"</g>"].join(""),attrs:s({".":{fill:"#ffffff",stroke:"none"},rect:{fill:"#ffffff",stroke:"#000000",width:80,height:100},text:{fill:"#000000",fontSize:14,fontFamily:"Arial, helvetica, sans-serif"},body:{style:{background:"transparent",position:"static",margin:0,padding:0}},foreignObject:{style:{overflow:"hidden"}}},dr,{refX:.5,refY:.5,yAlign:"middle",xAlign:"middle",style:{textAlign:"center",verticalAlign:"middle",display:"table-cell",padding:"0 5px",margin:0}})}),qn.registry.register(fr,e)})(gr||(gr={})),function(e){var t="content",n=function(e){u(r,e);var n=c(r);function r(){return f(this,r),n.apply(this,arguments)}return g(r,[{key:"confirmUpdate",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i(o(r.prototype),"confirmUpdate",this).call(this,e,n);return this.hasAction(a,t)&&(this.updateContent(),a=this.removeAction(a,t)),a}},{key:"update",value:function(e){if(O["h"].SUPPORT_FOREIGNOBJECT)i(o(r.prototype),"update",this).call(this,e);else{var t=this.cell,n=Object.assign({},e||t.getAttrs());delete n[dr],i(o(r.prototype),"update",this).call(this,n),e&&!O["g"].has(e,dr)||this.updateContent(e)}}},{key:"updateContent",value:function(e){if(O["h"].SUPPORT_FOREIGNOBJECT)i(o(r.prototype),"update",this).call(this,e);else{var t=this.cell,n=(e||t.getAttrs())[dr],a=O["c"].breakText(t.getContent(),t.getSize(),n,{svgDocument:this.graph.view.svg}),l=s({},dr,O["g"].merge({},n,{text:a}));i(o(r.prototype),"update",this).call(this,l)}}}]),r}(sr);e.View=n,function(e){e.config({bootstrap:["render",t],actions:O["h"].SUPPORT_FOREIGNOBJECT?{}:{size:t,content:t}}),sr.registry.register(fr,e)}(n=e.View||(e.View={}))}(gr||(gr={}));Wn.define({shape:"empty"});function pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body";return[{tagName:e,selector:t},{tagName:"text",selector:"label"}]}function vr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={constructorName:e,markup:pr(e,n.selector),attrs:s({},e,Object.assign({},Wn.bodyAttr))},i=n.parent||Wn;return i.define(O["g"].merge(r,t,{shape:e}))}vr("rect",{attrs:{body:{refWidth:"100%",refHeight:"100%"}}}),qn.define({shape:"rect-headered",markup:[{tagName:"rect",selector:"body"},{tagName:"rect",selector:"header"},{tagName:"text",selector:"headerText"},{tagName:"text",selector:"bodyText"}],attrs:{body:Object.assign(Object.assign({},Wn.bodyAttr),{refWidth:"100%",refHeight:"100%"}),header:Object.assign(Object.assign({},Wn.bodyAttr),{refWidth:"100%",height:30,stroke:"#000000"}),headerText:Object.assign(Object.assign({},Wn.labelAttr),{refX:"50%",refY:15,fontSize:16}),bodyText:Object.assign(Object.assign({},Wn.labelAttr),{refY2:15})}}),vr("circle",{attrs:{body:{refCx:"50%",refCy:"50%",refR:"50%"}}});var yr=10,mr=(Wn.define({shape:"cylinder",overwrite:!0,markup:[{tagName:"path",selector:"body"},{tagName:"ellipse",selector:"top"},{tagName:"text",selector:"label"}],attrs:{body:Object.assign(Object.assign({},Wn.bodyAttr),{lateral:yr}),top:Object.assign(Object.assign({},Wn.bodyAttr),{refCx:"50%",refRx:"50%",cy:yr,ry:yr})},attrHooks:{lateral:{set:function(e,t){var n=t.refBBox,r=O["f"].isPercentage(e);r&&(e=parseFloat(e)/100);var i=n.x,o=n.y,a=n.width,s=n.height,l=a/2,u=r?s*e:e,c=.551784,h=c*l,d=c*u,f=i,g=i+a/2,p=i+a,v=o+u,y=v-u,m=o+s-u,b=o+s,x=["M",f,v,"L",f,m,"C",i,m+d,g-h,b,g,b,"C",g+h,b,p,m+d,p,m,"L",p,v,"C",p,v-d,g+h,y,g,y,"C",g-h,y,f,v-d,f,v,"Z"];return{d:x.join(" ")}}}},knob:{enabled:!0,position:function(e){var t=e.node,n=t.attr("body/lateral");return{x:0,y:n}},onMouseMove:function(e){var t=e.node,n=e.data,r=e.deltaY;if(0!==r){var i=t.getBBox(),o=t.attr("body/lateral");null==n.round&&(n.round=o);var a=0,s=i.height/2,l=O["f"].clamp(n.round+r,a,s);l!==o&&t.attr({body:{lateral:l},top:{cy:l,ry:l}})}}}}),vr("ellipse",{attrs:{body:{refCx:"50%",refCy:"50%",refRx:"50%",refRy:"50%"}}}),function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}),br=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"points",get:function(){return this.getPoints()},set:function(e){this.setPoints(e)}},{key:"getPoints",value:function(){return this.getAttrByPath("body/refPoints")}},{key:"setPoints",value:function(e,t){return null==e?this.removePoints():this.setAttrByPath("body/refPoints",n.pointsToString(e),t),this}},{key:"removePoints",value:function(){return this.removeAttrByPath("body/refPoints"),this}}]),n}(Wn);(function(e){function t(e){return"string"===typeof e?e:e.map((function(e){return Array.isArray(e)?e.join(","):K["f"].isPointLike(e)?"".concat(e.x,", ").concat(e.y):""})).join(" ")}e.pointsToString=t,e.config({propHooks:function(e){var n=e.points,r=mr(e,["points"]);if(n){var i=t(n);i&&O["g"].setByPath(r,"attrs/body/refPoints",i)}return r}})})(br||(br={}));vr("polygon",{},{parent:br}),vr("polyline",{},{parent:br});var xr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},wr=(Wn.define({shape:"path",markup:[{tagName:"rect",selector:"bg"},{tagName:"path",selector:"body"},{tagName:"text",selector:"label"}],attrs:{bg:{refWidth:"100%",refHeight:"100%",fill:"none",stroke:"none",pointerEvents:"all"},body:{fill:"none",stroke:"#000",strokeWidth:2}},propHooks:function(e){var t=e.path,n=xr(e,["path"]);return t&&O["g"].setByPath(n,"attrs/body/refD",t),n}}),function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}),Cr=(Wn.define({shape:"text-block",markup:[{tagName:"rect",selector:"body"},O["h"].SUPPORT_FOREIGNOBJECT?{tagName:"foreignObject",selector:"foreignObject",children:[{tagName:"div",ns:O["c"].ns.xhtml,selector:"label",style:{width:"100%",height:"100%",position:"static",backgroundColor:"transparent",textAlign:"center",margin:0,padding:"0px 5px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center"}}]}:{tagName:"text",selector:"label",attrs:{textAnchor:"middle"}}],attrs:{body:Object.assign(Object.assign({},Wn.bodyAttr),{refWidth:"100%",refHeight:"100%"}),foreignObject:{refWidth:"100%",refHeight:"100%"},label:{style:{fontSize:14}}},propHooks:function(e){var t=e.text,n=wr(e,["text"]);return t&&O["g"].setByPath(n,"attrs/label/text",t),n},attrHooks:{text:{set:function(e,t){var n=t.cell,r=t.view,i=t.refBBox,o=t.elem,a=t.attrs;if(!(o instanceof HTMLElement)){var s=a.style||{},l={text:e,width:-5,height:"100%"},u=Object.assign({textVerticalAnchor:"middle"},s),c=P["a"].presets.textWrap;return O["d"].call(c.set,this,l,{cell:n,view:r,elem:o,refBBox:i,attrs:u}),{fill:s.color||null}}o.textContent=e},position:function(e,t){var n=t.refBBox,r=t.elem;if(r instanceof SVGElement)return n.getCenter()}}}}),vr("image",{attrs:{image:{refWidth:"100%",refHeight:"100%"}},propHooks:Zn()},{selector:"image"}),vr("image-bordered",{markup:[{tagName:"rect",selector:"background",attrs:{stroke:"none"}},{tagName:"image",selector:"image"},{tagName:"rect",selector:"border",attrs:{fill:"none"}},{tagName:"text",selector:"label"}],attrs:{background:{refWidth:-1,refHeight:-1,x:.5,y:.5,fill:"#ffffff"},border:{refWidth:"100%",refHeight:"100%",stroke:"#333333",strokeWidth:2},image:{refWidth:-1,refHeight:-1,x:.5,y:.5}},propHooks:Zn()}),vr("image-embedded",{markup:[{tagName:"rect",selector:"body"},{tagName:"image",selector:"image"},{tagName:"text",selector:"label"}],attrs:{body:{refWidth:"100%",refHeight:"100%",stroke:"#333333",fill:"#FFFFFF",strokeWidth:2},image:{refWidth:"30%",refHeight:-20,x:10,y:10,preserveAspectRatio:"xMidYMin"}},propHooks:Zn()}),vr("image-inscribed",{propHooks:Zn(),markup:[{tagName:"ellipse",selector:"background"},{tagName:"image",selector:"image"},{tagName:"ellipse",selector:"border",attrs:{fill:"none"}},{tagName:"text",selector:"label"}],attrs:{border:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",stroke:"#333333",strokeWidth:2},background:{refRx:"50%",refRy:"50%",refCx:"50%",refCy:"50%",fill:"#ffffff"},image:{refWidth:"68%",refHeight:"68%",refX:"16%",refY:"16%",preserveAspectRatio:"xMidYMid"}}}),ir.define({shape:"edge",markup:[{tagName:"path",selector:"wrap",groupSelector:"lines",attrs:{fill:"none",cursor:"pointer",stroke:"transparent",strokeLinecap:"round"}},{tagName:"path",selector:"line",groupSelector:"lines",attrs:{fill:"none",pointerEvents:"none"}}],attrs:{lines:{connection:!0,strokeLinejoin:"round"},wrap:{strokeWidth:10},line:{stroke:"#333",strokeWidth:2,targetMarker:"classic"}}})),kr=(ir.define({shape:"shadow-edge",markup:[{tagName:"path",selector:"shadow",attrs:{fill:"none"}},{tagName:"path",selector:"line",attrs:{fill:"none",cursor:"pointer"}}],attrs:{line:{connection:!0,stroke:"#FF0000",strokeWidth:20,strokeLinejoin:"round",targetMarker:{name:"path",stroke:"none",d:"M 0 -10 -10 0 0 10 z",offsetX:-5},sourceMarker:{name:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z",offsetX:-5}},shadow:{connection:!0,refX:3,refY:6,stroke:"#000000",strokeOpacity:.2,strokeWidth:20,strokeLinejoin:"round",targetMarker:{name:"path",d:"M 0 -10 -10 0 0 10 z",stroke:"none",offsetX:-5},sourceMarker:{name:"path",stroke:"none",d:"M -10 -10 0 0 -10 10 0 10 0 -10 z",offsetX:-5}}}}),ir.define({shape:"double-edge",markup:[{tagName:"path",selector:"outline",attrs:{fill:"none"}},{tagName:"path",selector:"line",attrs:{fill:"none",cursor:"pointer"}}],attrs:{line:{connection:!0,stroke:"#dddddd",strokeWidth:4,strokeLinejoin:"round",targetMarker:{tagName:"path",stroke:"#000000",d:"M 10 -3 10 -10 -2 0 10 10 10 3"}},outline:{connection:!0,stroke:"#000000",strokeWidth:6,strokeLinejoin:"round"}}}),function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"html",get:function(){return this.getHTML()},set:function(e){this.setHTML(e)}},{key:"getHTML",value:function(){return this.store.get("html")}},{key:"setHTML",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?this.removeHTML(t):this.store.set("html",e,t),this}},{key:"removeHTML",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.store.remove("html",e)}}]),n}(Wn));(function(e){var t=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"init",value:function(){var e=this;i(o(n.prototype),"init",this).call(this),this.cell.on("change:*",(function(){var t=e.graph.hook.shouldUpdateHTMLComponent(e.cell);t&&e.renderHTMLComponent()}))}},{key:"confirmUpdate",value:function(e){var t=this,r=i(o(n.prototype),"confirmUpdate",this).call(this,e);return this.handleAction(r,n.action,(function(){return t.renderHTMLComponent()}))}},{key:"renderHTMLComponent",value:function(){var e=this.selectors.foContent;if(e){var t=this.$(e).empty(),n=this.graph.hook.getHTMLComponent(this.cell);n&&("string"===typeof n?t.html(n):t.append(n))}}}]),n}(sr);e.View=t,function(e){e.action="html",e.config({bootstrap:[e.action],actions:{html:e.action}}),sr.registry.register("html-view",e)}(t=e.View||(e.View={}))})(kr||(kr={})),function(e){e.config({view:"html-view",markup:[{tagName:"rect",selector:"body"},Object.assign({},Ln["a"].getForeignObjectMarkup()),{tagName:"text",selector:"label"}],attrs:{body:{fill:"none",stroke:"none",refWidth:"100%",refHeight:"100%"},fo:{refWidth:"100%",refHeight:"100%"}}}),qn.registry.register("html",e)}(kr||(kr={})),function(e){e.componentRegistry=M["a"].create({type:"html componnet"})}(kr||(kr={}));var Er=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Sr=function(e){u(n,e);var t=c(n);function n(e){var r;return f(this,n),r=t.call(this),r.delay=10,r.throttle=2,r.threshold=5,r.changeCount=0,r.timestamp=0,r.options=Object.assign(Object.assign({},n.defaultOptions),e),r.graph.model.on("cell:change:*",r.onModelChanged,a(r)),r}return g(n,[{key:"graph",get:function(){return this.options.graph}},{key:"onModelChanged",value:function(){if(!this.disabled){var e=(new Date).getTime(),t=(e-this.timestamp)/1e3;t>this.delay||this.changeCount>=this.threshold&&t>this.throttle?(this.save(),this.reset()):this.changeCount+=1}}},{key:"save",value:function(){this.trigger("save")}},{key:"reset",value:function(){this.changeCount=0,this.timestamp=(new Date).getTime()}},{key:"dispose",value:function(){this.graph.model.off("cell:change:*",this.onModelChanged,this)}}]),n}(Fn["d"]);Er([Fn["d"].dispose()],Sr.prototype,"dispose",null),function(e){e.defaultOptions={delay:10,throttle:2,threshold:5}}(Sr||(Sr={}));var Ar,Or=n("a082"),Mr=function(e){u(n,e);var t=c(n);function n(e){var r;return f(this,n),r=t.call(this),r.graph=e,r.init(),r}return g(n,[{key:"options",get:function(){return this.graph.options}},{key:"model",get:function(){return this.graph.model}},{key:"view",get:function(){return this.graph.view}},{key:"init",value:function(){}}]),n}(Fn["e"]),Pr=n("1157"),Tr=n.n(Pr),Dr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Nr=function(e){u(n,e);var t=c(n);function n(e){var r;f(this,n),r=t.call(this),r.graph=e;var i=Ln["a"].parseJSONMarkup(n.markup),o=i.selectors,a=i.fragment;return r.background=o.background,r.grid=o.grid,r.svg=o.svg,r.defs=o.defs,r.viewport=o.viewport,r.primer=o.primer,r.stage=o.stage,r.decorator=o.decorator,r.overlay=o.overlay,r.container=r.options.container,r.restore=n.snapshoot(r.container),r.$(r.container).addClass(r.prefixClassName("graph")).append(a),r.delegateEvents(),r}return g(n,[{key:"model",get:function(){return this.graph.model}},{key:"options",get:function(){return this.graph.options}},{key:"delegateEvents",value:function(){var e=this.constructor;return i(o(n.prototype),"delegateEvents",this).call(this,e.events),this}},{key:"guard",value:function(e,t){return"mousedown"===e.type&&2===e.button||(!(!this.options.guard||!this.options.guard(e,t))||(e.data&&void 0!==e.data.guarded?e.data.guarded:!(t&&t.cell&&Gn.isCell(t.cell))&&(this.svg!==e.target&&this.container!==e.target&&!Tr.a.contains(this.svg,e.target))))}},{key:"findView",value:function(e){return this.graph.renderer.findViewByElem(e)}},{key:"onDblClick",value:function(e){this.options.preventDefaultDblClick&&e.preventDefault();var t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n)){var r=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onDblClick(t,r.x,r.y):this.graph.trigger("blank:dblclick",{e:t,x:r.x,y:r.y})}}},{key:"onClick",value:function(e){if(this.getMouseMovedCount(e)<=this.options.clickThreshold){var t=this.normalizeEvent(e),n=this.findView(t.target);if(this.guard(t,n))return;var r=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onClick(t,r.x,r.y):this.graph.trigger("blank:click",{e:t,x:r.x,y:r.y})}}},{key:"onContextMenu",value:function(e){this.options.preventDefaultContextMenu&&e.preventDefault();var t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n)){var r=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onContextMenu(t,r.x,r.y):this.graph.trigger("blank:contextmenu",{e:t,x:r.x,y:r.y})}}},{key:"delegateDragEvents",value:function(e,t){null==e.data&&(e.data={}),this.setEventData(e,{currentView:t||null,mouseMovedCount:0,startPosition:{x:e.clientX,y:e.clientY}});var n=this.constructor;this.delegateDocumentEvents(n.documentEvents,e.data),this.undelegateEvents()}},{key:"getMouseMovedCount",value:function(e){var t=this.getEventData(e);return t.mouseMovedCount||0}},{key:"onMouseDown",value:function(e){var t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n)){this.options.preventDefaultMouseDown&&t.preventDefault();var r=this.graph.snapToGrid(t.clientX,t.clientY);n?n.onMouseDown(t,r.x,r.y):(this.options.preventDefaultBlankAction&&t.preventDefault(),this.graph.trigger("blank:mousedown",{e:t,x:r.x,y:r.y})),this.delegateDragEvents(t,n)}}},{key:"onMouseMove",value:function(e){var t=this.getEventData(e),n=t.startPosition;if(!n||n.x!==e.clientX||n.y!==e.clientY){null==t.mouseMovedCount&&(t.mouseMovedCount=0),t.mouseMovedCount+=1;var r=t.mouseMovedCount;if(!(r<=this.options.moveThreshold)){var i=this.normalizeEvent(e),o=this.graph.snapToGrid(i.clientX,i.clientY),a=t.currentView;a?a.onMouseMove(i,o.x,o.y):this.graph.trigger("blank:mousemove",{e:i,x:o.x,y:o.y}),this.setEventData(i,t)}}}},{key:"onMouseUp",value:function(e){this.undelegateDocumentEvents();var t=this.normalizeEvent(e),n=this.graph.snapToGrid(t.clientX,t.clientY),r=this.getEventData(e),i=r.currentView;i?i.onMouseUp(t,n.x,n.y):this.graph.trigger("blank:mouseup",{e:t,x:n.x,y:n.y}),e.isPropagationStopped()||this.onClick(Tr.a.Event(e,{type:"click",data:e.data})),e.stopImmediatePropagation(),this.delegateEvents()}},{key:"onMouseOver",value:function(e){var t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n))if(n)n.onMouseOver(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseover",{e:t})}}},{key:"onMouseOut",value:function(e){var t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n))if(n)n.onMouseOut(t);else{if(this.container===t.target)return;this.graph.trigger("blank:mouseout",{e:t})}}},{key:"onMouseEnter",value:function(e){var t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n)){var r=this.graph.renderer.findViewByElem(t.relatedTarget);if(n){if(r===n)return;n.onMouseEnter(t)}else{if(r)return;this.graph.trigger("graph:mouseenter",{e:t})}}}},{key:"onMouseLeave",value:function(e){var t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n)){var r=this.graph.renderer.findViewByElem(t.relatedTarget);if(n){if(r===n)return;n.onMouseLeave(t)}else{if(r)return;this.graph.trigger("graph:mouseleave",{e:t})}}}},{key:"onMouseWheel",value:function(e){var t=this.normalizeEvent(e),n=this.findView(t.target);if(!this.guard(t,n)){var r=t.originalEvent,i=this.graph.snapToGrid(r.clientX,r.clientY),o=Math.max(-1,Math.min(1,r.wheelDelta||-r.detail));n?n.onMouseWheel(t,i.x,i.y,o):this.graph.trigger("blank:mousewheel",{e:t,delta:o,x:i.x,y:i.y})}}},{key:"onCustomEvent",value:function(e){var t=e.currentTarget,n=t.getAttribute("event")||t.getAttribute("data-event");if(n){var r=this.findView(t);if(r){var i=this.normalizeEvent(e);if(this.guard(i,r))return;var o=this.graph.snapToGrid(i.clientX,i.clientY);r.onCustomEvent(i,n,o.x,o.y)}}}},{key:"handleMagnetEvent",value:function(e,t){var n=e.currentTarget,r=n.getAttribute("magnet");if(r&&"false"!==r.toLowerCase()){var i=this.findView(n);if(i){var o=this.normalizeEvent(e);if(this.guard(o,i))return;var a=this.graph.snapToGrid(o.clientX,o.clientY);O["d"].call(t,this.graph,i,o,n,a.x,a.y)}}}},{key:"onMagnetMouseDown",value:function(e){this.handleMagnetEvent(e,(function(e,t,n,r,i){e.onMagnetMouseDown(t,n,r,i)}))}},{key:"onMagnetDblClick",value:function(e){this.handleMagnetEvent(e,(function(e,t,n,r,i){e.onMagnetDblClick(t,n,r,i)}))}},{key:"onMagnetContextMenu",value:function(e){this.options.preventDefaultContextMenu&&e.preventDefault(),this.handleMagnetEvent(e,(function(e,t,n,r,i){e.onMagnetContextMenu(t,n,r,i)}))}},{key:"onLabelMouseDown",value:function(e){var t=e.currentTarget,n=this.findView(t);if(n){var r=this.normalizeEvent(e);if(this.guard(r,n))return;var i=this.graph.snapToGrid(r.clientX,r.clientY);n.onLabelMouseDown(r,i.x,i.y)}}},{key:"onImageDragStart",value:function(){return!1}},{key:"dispose",value:function(){this.undelegateEvents(),this.undelegateDocumentEvents(),this.restore(),this.restore=function(){}}}]),n}(tr["a"]);Dr([tr["a"].dispose()],Nr.prototype,"dispose",null),function(e){var t="".concat(ne["a"].prefixCls,"-graph");function n(e){var t=e.cloneNode();return e.childNodes.forEach((function(e){return t.appendChild(e)})),function(){O["c"].empty(e);while(e.attributes.length>0)e.removeAttribute(e.attributes[0].name);for(var n=0,r=t.attributes.length;n<r;n+=1){var i=t.attributes[n];e.setAttribute(i.name,i.value)}t.childNodes.forEach((function(t){return e.appendChild(t)}))}}e.markup=[{ns:O["c"].ns.xhtml,tagName:"div",selector:"background",className:"".concat(t,"-background")},{ns:O["c"].ns.xhtml,tagName:"div",selector:"grid",className:"".concat(t,"-grid")},{ns:O["c"].ns.svg,tagName:"svg",selector:"svg",className:"".concat(t,"-svg"),attrs:{width:"100%",height:"100%","xmlns:xlink":O["c"].ns.xlink},children:[{tagName:"defs",selector:"defs"},{tagName:"g",selector:"viewport",className:"".concat(t,"-svg-viewport"),children:[{tagName:"g",selector:"primer",className:"".concat(t,"-svg-primer")},{tagName:"g",selector:"stage",className:"".concat(t,"-svg-stage")},{tagName:"g",selector:"decorator",className:"".concat(t,"-svg-decorator")},{tagName:"g",selector:"overlay",className:"".concat(t,"-svg-overlay")}]}]}],e.snapshoot=n}(Nr||(Nr={})),function(e){var t,n=ne["a"].prefixCls;e.events=(t={dblclick:"onDblClick",contextmenu:"onContextMenu",touchstart:"onMouseDown",mousedown:"onMouseDown",mouseover:"onMouseOver",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mousewheel:"onMouseWheel",DOMMouseScroll:"onMouseWheel"},s(t,"mouseenter  .".concat(n,"-cell"),"onMouseEnter"),s(t,"mouseleave  .".concat(n,"-cell"),"onMouseLeave"),s(t,"mouseenter  .".concat(n,"-cell-tools"),"onMouseEnter"),s(t,"mouseleave  .".concat(n,"-cell-tools"),"onMouseLeave"),s(t,"mousedown   .".concat(n,"-cell [event]"),"onCustomEvent"),s(t,"touchstart  .".concat(n,"-cell [event]"),"onCustomEvent"),s(t,"mousedown   .".concat(n,"-cell [data-event]"),"onCustomEvent"),s(t,"touchstart  .".concat(n,"-cell [data-event]"),"onCustomEvent"),s(t,"dblclick    .".concat(n,"-cell [magnet]"),"onMagnetDblClick"),s(t,"contextmenu .".concat(n,"-cell [magnet]"),"onMagnetContextMenu"),s(t,"mousedown   .".concat(n,"-cell [magnet]"),"onMagnetMouseDown"),s(t,"touchstart  .".concat(n,"-cell [magnet]"),"onMagnetMouseDown"),s(t,"dblclick    .".concat(n,"-cell [data-magnet]"),"onMagnetDblClick"),s(t,"contextmenu .".concat(n,"-cell [data-magnet]"),"onMagnetContextMenu"),s(t,"mousedown   .".concat(n,"-cell [data-magnet]"),"onMagnetMouseDown"),s(t,"touchstart  .".concat(n,"-cell [data-magnet]"),"onMagnetMouseDown"),s(t,"dragstart   .".concat(n,"-cell image"),"onImageDragStart"),s(t,"mousedown   .".concat(n,"-edge .").concat(n,"-edge-label"),"onLabelMouseDown"),s(t,"touchstart  .".concat(n,"-edge .").concat(n,"-edge-label"),"onLabelMouseDown"),t),e.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}}(Nr||(Nr={})),function(e){function t(e,t){return function(n,r,i){var o=i.value;i.value=function(){var n=this.scroller.widget;if(null==n){var i="Shoule enable scroller to use method '".concat(r,"'");if(!1!==e)throw console.error(i),new Error(i);return!1!==t&&console.warn(i),this}for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return o.call.apply(o,[this].concat(s))}}}e.checkScroller=t}(Ar||(Ar={}));var jr=".x6-graph {\n  position: relative;\n  outline: none;\n}\n.x6-graph-background,\n.x6-graph-grid,\n.x6-graph-svg {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n}\n.x6-graph-background-stage,\n.x6-graph-grid-stage,\n.x6-graph-svg-stage {\n  user-select: none;\n}\n.x6-graph.x6-graph-pannable {\n  cursor: grab;\n  cursor: -moz-grab;\n  cursor: -webkit-grab;\n}\n.x6-graph.x6-graph-panning {\n  cursor: grabbing;\n  cursor: -moz-grabbing;\n  cursor: -webkit-grabbing;\n  user-select: none;\n}\n.x6-node {\n  cursor: move;\n  /* stylelint-disable-next-line */\n}\n.x6-node.x6-node-immovable {\n  cursor: default;\n}\n.x6-node * {\n  -webkit-user-drag: none;\n}\n.x6-node .scalable * {\n  vector-effect: non-scaling-stroke;\n}\n.x6-node [magnet='true'] {\n  cursor: crosshair;\n  transition: opacity 0.3s;\n}\n.x6-node [magnet='true']:hover {\n  opacity: 0.7;\n}\n.x6-node foreignObject {\n  display: block;\n  overflow: visible;\n  background-color: transparent;\n}\n.x6-node foreignObject > body {\n  position: static;\n  width: 100%;\n  height: 100%;\n  margin: 0;\n  padding: 0;\n  overflow: visible;\n  background-color: transparent;\n}\n.x6-edge .source-marker,\n.x6-edge .target-marker {\n  vector-effect: non-scaling-stroke;\n}\n.x6-edge .connection {\n  stroke-linejoin: round;\n  fill: none;\n}\n.x6-edge .connection-wrap {\n  cursor: move;\n  opacity: 0;\n  fill: none;\n  stroke: #000;\n  stroke-width: 15;\n  stroke-linecap: round;\n  stroke-linejoin: round;\n}\n.x6-edge .connection-wrap:hover {\n  opacity: 0.4;\n  stroke-opacity: 0.4;\n}\n.x6-edge .vertices {\n  cursor: move;\n  opacity: 0;\n}\n.x6-edge .vertices .vertex {\n  fill: #1abc9c;\n}\n.x6-edge .vertices .vertex :hover {\n  fill: #34495e;\n  stroke: none;\n}\n.x6-edge .vertices .vertex-remove {\n  cursor: pointer;\n  fill: #fff;\n}\n.x6-edge .vertices .vertex-remove-area {\n  cursor: pointer;\n  opacity: 0.1;\n}\n.x6-edge .vertices .vertex-group:hover .vertex-remove-area {\n  opacity: 1;\n}\n.x6-edge .arrowheads {\n  cursor: move;\n  opacity: 0;\n}\n.x6-edge .arrowheads .arrowhead {\n  fill: #1abc9c;\n}\n.x6-edge .arrowheads .arrowhead :hover {\n  fill: #f39c12;\n  stroke: none;\n}\n.x6-edge .tools {\n  cursor: pointer;\n  opacity: 0;\n}\n.x6-edge .tools .tool-options {\n  display: none;\n}\n.x6-edge .tools .tool-remove circle {\n  fill: #f00;\n}\n.x6-edge .tools .tool-remove path {\n  fill: #fff;\n}\n.x6-edge:hover .vertices,\n.x6-edge:hover .arrowheads,\n.x6-edge:hover .tools {\n  opacity: 1;\n}\n.x6-highlight-opacity {\n  opacity: 0.3;\n}\n@keyframes halo-pie-visibility {\n  0% {\n    visibility: hidden;\n  }\n  100% {\n    visibility: visible;\n  }\n}\n@keyframes halo-pie-opening {\n  0% {\n    transform: scale(0.4) rotate(-20deg);\n  }\n  100% {\n    transform: scale(1) rotate(0);\n  }\n}\n.x6-widget-handle {\n  position: absolute;\n  width: 20px;\n  height: 20px;\n  background-color: transparent;\n  background-repeat: no-repeat;\n  background-position: 0 0;\n  background-size: 20px 20px;\n  cursor: pointer;\n  user-select: none;\n  pointer-events: auto;\n  -webkit-user-drag: none;\n  user-drag: none;\n  /* stylelint-disable-line */\n}\n.x6-widget-handle.hidden {\n  display: none;\n}\n.x6-widget-handle-selected {\n  background-color: rgba(0, 0, 0, 0.1);\n  border-radius: 3px;\n}\n.x6-widget-handle-remove {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15.386%2C3.365c-3.315-3.314-8.707-3.313-12.021%2C0c-3.314%2C3.315-3.314%2C8.706%2C0%2C12.02%20c3.314%2C3.314%2C8.707%2C3.314%2C12.021%2C0S18.699%2C6.68%2C15.386%2C3.365L15.386%2C3.365z%20M4.152%2C14.598C1.273%2C11.719%2C1.273%2C7.035%2C4.153%2C4.154%20c2.88-2.88%2C7.563-2.88%2C10.443%2C0c2.881%2C2.88%2C2.881%2C7.562%2C0%2C10.443C11.716%2C17.477%2C7.032%2C17.477%2C4.152%2C14.598L4.152%2C14.598z%22%2F%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.157%2C11.371L7.38%2C6.593C7.162%2C6.375%2C6.809%2C6.375%2C6.592%2C6.592c-0.218%2C0.219-0.218%2C0.572%2C0%2C0.79%20l4.776%2C4.776c0.218%2C0.219%2C0.571%2C0.219%2C0.79%2C0C12.375%2C11.941%2C12.375%2C11.588%2C12.157%2C11.371L12.157%2C11.371z%22%2F%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M11.369%2C6.593l-4.777%2C4.778c-0.217%2C0.217-0.217%2C0.568%2C0%2C0.787c0.219%2C0.219%2C0.571%2C0.217%2C0.788%2C0l4.777-4.777%20c0.218-0.218%2C0.218-0.571%2C0.001-0.789C11.939%2C6.375%2C11.587%2C6.375%2C11.369%2C6.593L11.369%2C6.593z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n  cursor: pointer;\n}\n.x6-widget-handle-remove:hover {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15.386%2C3.365c-3.315-3.314-8.707-3.313-12.021%2C0c-3.314%2C3.315-3.314%2C8.706%2C0%2C12.02%20c3.314%2C3.314%2C8.707%2C3.314%2C12.021%2C0S18.699%2C6.68%2C15.386%2C3.365L15.386%2C3.365z%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M12.157%2C11.371L7.38%2C6.593C7.162%2C6.375%2C6.809%2C6.375%2C6.592%2C6.592c-0.218%2C0.219-0.218%2C0.572%2C0%2C0.79%20l4.776%2C4.776c0.218%2C0.219%2C0.571%2C0.219%2C0.79%2C0C12.375%2C11.941%2C12.375%2C11.588%2C12.157%2C11.371L12.157%2C11.371z%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M11.369%2C6.593l-4.777%2C4.778c-0.217%2C0.217-0.217%2C0.568%2C0%2C0.787c0.219%2C0.219%2C0.571%2C0.217%2C0.788%2C0l4.777-4.777%20c0.218-0.218%2C0.218-0.571%2C0.001-0.789C11.939%2C6.375%2C11.587%2C6.375%2C11.369%2C6.593L11.369%2C6.593z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-rotate {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M9.374%2C17.592c-4.176%2C0-7.57-3.401-7.57-7.575c0-4.175%2C3.395-7.574%2C7.57-7.574c0.28%2C0%2C0.56%2C0.018%2C0.837%2C0.05%20V1.268c0-0.158%2C0.099-0.3%2C0.239-0.36c0.151-0.058%2C0.315-0.026%2C0.428%2C0.086l2.683%2C2.688c0.152%2C0.154%2C0.152%2C0.399%2C0%2C0.553l-2.68%2C2.693%20c-0.115%2C0.112-0.279%2C0.147-0.431%2C0.087c-0.141-0.063-0.239-0.205-0.239-0.361V5.296C9.934%2C5.243%2C9.654%2C5.22%2C9.374%2C5.22%20c-2.646%2C0-4.796%2C2.152-4.796%2C4.797s2.154%2C4.798%2C4.796%2C4.798c2.645%2C0%2C4.798-2.153%2C4.798-4.798c0-0.214%2C0.174-0.391%2C0.391-0.391h1.991%20c0.217%2C0%2C0.394%2C0.177%2C0.394%2C0.391C16.947%2C14.19%2C13.549%2C17.592%2C9.374%2C17.592L9.374%2C17.592z%20M9.374%2C17.592%22%2F%3E%3C%2Fsvg%3E%20');\n  cursor: move;\n}\n.x6-widget-handle-rotate:hover {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M9.374%2C17.592c-4.176%2C0-7.57-3.401-7.57-7.575c0-4.175%2C3.395-7.574%2C7.57-7.574c0.28%2C0%2C0.56%2C0.018%2C0.837%2C0.05%20V1.268c0-0.158%2C0.099-0.3%2C0.239-0.36c0.151-0.058%2C0.315-0.026%2C0.428%2C0.086l2.683%2C2.688c0.152%2C0.154%2C0.152%2C0.399%2C0%2C0.553l-2.68%2C2.693%20c-0.115%2C0.112-0.279%2C0.147-0.431%2C0.087c-0.141-0.063-0.239-0.205-0.239-0.361V5.296C9.934%2C5.243%2C9.654%2C5.22%2C9.374%2C5.22%20c-2.646%2C0-4.796%2C2.152-4.796%2C4.797s2.154%2C4.798%2C4.796%2C4.798c2.645%2C0%2C4.798-2.153%2C4.798-4.798c0-0.214%2C0.174-0.391%2C0.391-0.391h1.991%20c0.217%2C0%2C0.394%2C0.177%2C0.394%2C0.391C16.947%2C14.19%2C13.549%2C17.592%2C9.374%2C17.592L9.374%2C17.592z%20M9.374%2C17.592%22%2F%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-resize {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20height%3D%2224px%22%20version%3D%221.1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%2F%3E%3Cdesc%2F%3E%3Cdefs%2F%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20id%3D%22miu%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%3E%3Cg%20id%3D%22Artboard-1%22%20transform%3D%22translate(-251.000000%2C%20-443.000000)%22%3E%3Cg%20id%3D%22slice%22%20transform%3D%22translate(215.000000%2C%20119.000000)%22%2F%3E%3Cpath%20d%3D%22M252%2C448%20L256%2C448%20L256%2C444%20L252%2C444%20L252%2C448%20Z%20M257%2C448%20L269%2C448%20L269%2C446%20L257%2C446%20L257%2C448%20Z%20M257%2C464%20L269%2C464%20L269%2C462%20L257%2C462%20L257%2C464%20Z%20M270%2C444%20L270%2C448%20L274%2C448%20L274%2C444%20L270%2C444%20Z%20M252%2C462%20L252%2C466%20L256%2C466%20L256%2C462%20L252%2C462%20Z%20M270%2C462%20L270%2C466%20L274%2C466%20L274%2C462%20L270%2C462%20Z%20M254%2C461%20L256%2C461%20L256%2C449%20L254%2C449%20L254%2C461%20Z%20M270%2C461%20L272%2C461%20L272%2C449%20L270%2C449%20L270%2C461%20Z%22%20fill%3D%22%236A6C8A%22%20id%3D%22editor-crop-glyph%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n  cursor: se-resize;\n}\n.x6-widget-handle-resize:hover {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3Csvg%20height%3D%2224px%22%20version%3D%221.1%22%20viewBox%3D%220%200%2024%2024%22%20width%3D%2224px%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Asketch%3D%22http%3A%2F%2Fwww.bohemiancoding.com%2Fsketch%2Fns%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Ctitle%2F%3E%3Cdesc%2F%3E%3Cdefs%2F%3E%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%20id%3D%22miu%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%3E%3Cg%20id%3D%22Artboard-1%22%20transform%3D%22translate(-251.000000%2C%20-443.000000)%22%3E%3Cg%20id%3D%22slice%22%20transform%3D%22translate(215.000000%2C%20119.000000)%22%2F%3E%3Cpath%20d%3D%22M252%2C448%20L256%2C448%20L256%2C444%20L252%2C444%20L252%2C448%20Z%20M257%2C448%20L269%2C448%20L269%2C446%20L257%2C446%20L257%2C448%20Z%20M257%2C464%20L269%2C464%20L269%2C462%20L257%2C462%20L257%2C464%20Z%20M270%2C444%20L270%2C448%20L274%2C448%20L274%2C444%20L270%2C444%20Z%20M252%2C462%20L252%2C466%20L256%2C466%20L256%2C462%20L252%2C462%20Z%20M270%2C462%20L270%2C466%20L274%2C466%20L274%2C462%20L270%2C462%20Z%20M254%2C461%20L256%2C461%20L256%2C449%20L254%2C449%20L254%2C461%20Z%20M270%2C461%20L272%2C461%20L272%2C449%20L270%2C449%20L270%2C461%20Z%22%20fill%3D%22%23FD6EB6%22%20id%3D%22editor-crop-glyph%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E');\n}\n.x6-widget-handle-clone {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.852%2C0.875h-9.27c-0.853%2C0-1.547%2C0.694-1.547%2C1.547v10.816h1.547V2.422h9.27V0.875z%20M15.172%2C3.965h-8.5%20c-0.849%2C0-1.547%2C0.698-1.547%2C1.547v10.816c0%2C0.849%2C0.698%2C1.547%2C1.547%2C1.547h8.5c0.85%2C0%2C1.543-0.698%2C1.543-1.547V5.512%20C16.715%2C4.663%2C16.021%2C3.965%2C15.172%2C3.965L15.172%2C3.965z%20M15.172%2C16.328h-8.5V5.512h8.5V16.328z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n  cursor: move;\n}\n.x6-widget-handle-clone:hover {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M12.852%2C0.875h-9.27c-0.853%2C0-1.547%2C0.694-1.547%2C1.547v10.816h1.547V2.422h9.27V0.875z%20M15.172%2C3.965h-8.5%20c-0.849%2C0-1.547%2C0.698-1.547%2C1.547v10.816c0%2C0.849%2C0.698%2C1.547%2C1.547%2C1.547h8.5c0.849%2C0%2C1.543-0.698%2C1.543-1.547V5.512%20C16.715%2C4.663%2C16.021%2C3.965%2C15.172%2C3.965L15.172%2C3.965z%20M15.172%2C16.328h-8.5V5.512h8.5V16.328z%20M15.172%2C16.328%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-link {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M9.884%2C9.838c0.54-0.551%2C1.005-0.955%2C1.384-1.201c0.463-0.308%2C0.749-0.352%2C0.887-0.352h1.34v1.367%20c0%2C0.104%2C0.061%2C0.2%2C0.154%2C0.242s0.204%2C0.027%2C0.284-0.038l3.168-2.669c0.06-0.051%2C0.096-0.125%2C0.096-0.203S17.16%2C6.83%2C17.101%2C6.781%20l-3.168-2.677c-0.08-0.067-0.19-0.081-0.284-0.038c-0.094%2C0.045-0.154%2C0.139-0.154%2C0.242v1.414h-1.343%20c-1.24%2C0.014-2.215%2C0.67-2.927%2C1.242c-0.797%2C0.65-1.533%2C1.447-2.245%2C2.217c-0.361%2C0.391-0.7%2C0.759-1.044%2C1.1%20c-0.541%2C0.549-1.011%2C0.951-1.395%2C1.199c-0.354%2C0.231-0.678%2C0.357-0.921%2C0.357h-1.8c-0.146%2C0-0.266%2C0.12-0.266%2C0.265v2.029%20c0%2C0.148%2C0.12%2C0.268%2C0.266%2C0.268h1.8l0%2C0c1.255-0.014%2C2.239-0.667%2C2.958-1.24c0.82-0.661%2C1.572-1.475%2C2.297-2.256%20C9.225%2C10.524%2C9.555%2C10.169%2C9.884%2C9.838z%22%2F%3E%3C%2Fsvg%3E%20');\n  cursor: move;\n  cursor: -moz-grabbing;\n  cursor: -webkit-grabbing;\n}\n.x6-widget-handle-link:hover {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M9.884%2C9.838c0.54-0.551%2C1.005-0.955%2C1.384-1.201c0.463-0.308%2C0.749-0.352%2C0.887-0.352h1.34v1.367%20c0%2C0.104%2C0.061%2C0.2%2C0.154%2C0.242s0.204%2C0.027%2C0.284-0.038l3.168-2.669c0.06-0.051%2C0.096-0.125%2C0.096-0.203S17.16%2C6.83%2C17.101%2C6.781%20l-3.168-2.677c-0.08-0.067-0.19-0.081-0.284-0.038c-0.094%2C0.045-0.154%2C0.139-0.154%2C0.242v1.414h-1.343%20c-1.24%2C0.014-2.215%2C0.67-2.927%2C1.242c-0.797%2C0.65-1.533%2C1.447-2.245%2C2.217c-0.361%2C0.391-0.7%2C0.759-1.044%2C1.1%20c-0.541%2C0.549-1.011%2C0.951-1.395%2C1.199c-0.354%2C0.231-0.678%2C0.357-0.921%2C0.357h-1.8c-0.146%2C0-0.266%2C0.12-0.266%2C0.265v2.029%20c0%2C0.148%2C0.12%2C0.268%2C0.266%2C0.268h1.8l0%2C0c1.255-0.014%2C2.239-0.667%2C2.958-1.24c0.82-0.661%2C1.572-1.475%2C2.297-2.256%20C9.225%2C10.524%2C9.555%2C10.169%2C9.884%2C9.838z%22%2F%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-fork {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%236A6C8A%22%20d%3D%22M13.307%2C11.593c-0.69%2C0-1.299%2C0.33-1.693%2C0.835l-4.136-2.387%20C7.552%2C9.82%2C7.602%2C9.589%2C7.602%2C9.344c0-0.25-0.051-0.487-0.129-0.71l4.097-2.364c0.393%2C0.536%2C1.022%2C0.888%2C1.737%2C0.888%20c1.193%2C0%2C2.16-0.967%2C2.16-2.159s-0.967-2.159-2.16-2.159c-1.191%2C0-2.158%2C0.967-2.158%2C2.159c0%2C0.076%2C0.014%2C0.149%2C0.021%2C0.223%20L6.848%2C7.716C6.469%2C7.39%2C5.982%2C7.185%2C5.442%2C7.185c-1.191%2C0-2.158%2C0.967-2.158%2C2.159s0.967%2C2.159%2C2.158%2C2.159%20c0.545%2C0%2C1.037-0.208%2C1.417-0.541l4.319%2C2.493c-0.014%2C0.098-0.029%2C0.194-0.029%2C0.296c0%2C1.193%2C0.967%2C2.159%2C2.158%2C2.159%20c1.193%2C0%2C2.16-0.966%2C2.16-2.159C15.467%2C12.559%2C14.5%2C11.593%2C13.307%2C11.593z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n  cursor: move;\n}\n.x6-widget-handle-fork:hover {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FD6EB6%22%20d%3D%22M13.307%2C11.593c-0.69%2C0-1.299%2C0.33-1.693%2C0.835l-4.136-2.387%20c0.075-0.22%2C0.125-0.452%2C0.125-0.697c0-0.25-0.051-0.487-0.129-0.71l4.097-2.365c0.394%2C0.536%2C1.022%2C0.888%2C1.737%2C0.888%20c1.193%2C0%2C2.16-0.967%2C2.16-2.159s-0.967-2.159-2.16-2.159c-1.191%2C0-2.158%2C0.967-2.158%2C2.159c0%2C0.076%2C0.015%2C0.148%2C0.022%2C0.223%20L6.848%2C7.716C6.469%2C7.39%2C5.981%2C7.185%2C5.442%2C7.185c-1.191%2C0-2.158%2C0.967-2.158%2C2.159s0.967%2C2.159%2C2.158%2C2.159%20c0.545%2C0%2C1.037-0.208%2C1.417-0.541l4.319%2C2.493c-0.013%2C0.098-0.029%2C0.194-0.029%2C0.296c0%2C1.193%2C0.967%2C2.159%2C2.158%2C2.159%20c1.193%2C0%2C2.16-0.966%2C2.16-2.159C15.467%2C12.559%2C14.5%2C11.593%2C13.307%2C11.593z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-unlink {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M12.285%2C9.711l-2.104-0.302L9.243%2C8.568L6.669%2C7.095C6.948%2C6.6%2C6.995%2C6.026%2C6.845%2C5.474%20c-0.191-0.698-0.695-1.36-1.438-1.786C4.068%2C2.922%2C2.464%2C3.214%2C1.82%2C4.338C1.536%2C4.836%2C1.489%2C5.414%2C1.64%2C5.97%20c0.189%2C0.698%2C0.694%2C1.36%2C1.438%2C1.787c0.328%2C0.187%2C0.67%2C0.31%2C1.01%2C0.372c0.002%2C0%2C0.006%2C0.002%2C0.008%2C0.004%20c0.027%2C0.004%2C0.057%2C0.009%2C0.088%2C0.011c2.12%2C0.316%2C3.203%2C0.915%2C3.73%2C1.337c-0.527%2C0.424-1.61%2C1.021-3.731%2C1.339%20c-0.029%2C0.003-0.058%2C0.007-0.087%2C0.012c-0.002%2C0.002-0.004%2C0.002-0.007%2C0.003c-0.341%2C0.062-0.684%2C0.187-1.013%2C0.374%20c-0.74%2C0.425-1.246%2C1.089-1.437%2C1.787c-0.149%2C0.555-0.105%2C1.133%2C0.181%2C1.632c0.011%2C0.018%2C0.021%2C0.033%2C0.033%2C0.049l0.883%2C0.783%20c0.765%2C0.366%2C1.775%2C0.328%2C2.67-0.184c0.744-0.425%2C1.248-1.088%2C1.439-1.786c0.148-0.552%2C0.104-1.126-0.176-1.62l2.573-1.473%20c0.573%2C0.287%2C2.299%2C1.292%2C2.299%2C1.292s3.602%2C1.445%2C4.241%2C1.812c0.773%2C0.191%2C0.566-0.151%2C0.566-0.151L12.285%2C9.711z%20M5.571%2C6.482%20C5.279%2C6.993%2C4.425%2C7.076%2C3.705%2C6.664C3.282%2C6.424%2C2.966%2C6.039%2C2.856%2C5.64C2.81%2C5.464%2C2.778%2C5.203%2C2.917%2C4.963%20c0.291-0.51%2C1.146-0.593%2C1.866-0.182C5.21%2C5.027%2C5.521%2C5.4%2C5.632%2C5.807C5.679%2C5.98%2C5.708%2C6.242%2C5.571%2C6.482z%20M5.632%2C13.159%20c-0.111%2C0.406-0.422%2C0.778-0.848%2C1.025c-0.719%2C0.409-1.576%2C0.327-1.867-0.184c-0.137-0.239-0.106-0.499-0.06-0.676%20c0.108-0.398%2C0.426-0.781%2C0.847-1.022c0.72-0.412%2C1.574-0.329%2C1.866%2C0.181C5.708%2C12.723%2C5.679%2C12.983%2C5.632%2C13.159z%20M16.181%2C5.139%20c-0.448%2C0.258-4.435%2C1.9-4.435%2C1.9s-1.556%2C0.855-2.104%2C1.13l0.937%2C0.843l2.057-0.229l4.11-3.638%20C16.745%2C5.146%2C17.013%2C4.664%2C16.181%2C5.139z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-unlink:hover {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22utf-8%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20width%3D%2218.75px%22%20height%3D%2218.75px%22%20viewBox%3D%220%200%2018.75%2018.75%22%20enable-background%3D%22new%200%200%2018.75%2018.75%22%20xml%3Aspace%3D%22preserve%22%3E%3Cg%3E%3Cg%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M12.285%2C9.711l-2.104-0.302L9.243%2C8.568L6.669%2C7.095C6.948%2C6.6%2C6.995%2C6.026%2C6.845%2C5.474%20c-0.191-0.698-0.695-1.36-1.438-1.786C4.068%2C2.922%2C2.464%2C3.214%2C1.82%2C4.338C1.536%2C4.836%2C1.489%2C5.414%2C1.64%2C5.97%20c0.189%2C0.698%2C0.694%2C1.36%2C1.438%2C1.787c0.328%2C0.187%2C0.67%2C0.31%2C1.01%2C0.372c0.002%2C0%2C0.006%2C0.002%2C0.008%2C0.004%20c0.027%2C0.004%2C0.057%2C0.009%2C0.088%2C0.011c2.12%2C0.316%2C3.203%2C0.915%2C3.73%2C1.337c-0.527%2C0.424-1.61%2C1.021-3.731%2C1.339%20c-0.029%2C0.003-0.058%2C0.007-0.087%2C0.012c-0.002%2C0.002-0.004%2C0.002-0.007%2C0.003c-0.341%2C0.062-0.684%2C0.187-1.013%2C0.374%20c-0.74%2C0.425-1.246%2C1.089-1.437%2C1.787c-0.149%2C0.555-0.105%2C1.133%2C0.181%2C1.632c0.011%2C0.018%2C0.021%2C0.033%2C0.033%2C0.049l0.883%2C0.783%20c0.765%2C0.366%2C1.775%2C0.328%2C2.67-0.184c0.744-0.425%2C1.248-1.088%2C1.439-1.786c0.148-0.552%2C0.104-1.126-0.176-1.62l2.573-1.473%20c0.573%2C0.287%2C2.299%2C1.292%2C2.299%2C1.292s3.602%2C1.445%2C4.241%2C1.812c0.773%2C0.191%2C0.566-0.151%2C0.566-0.151L12.285%2C9.711z%20M5.571%2C6.482%20C5.279%2C6.993%2C4.425%2C7.076%2C3.705%2C6.664C3.282%2C6.424%2C2.966%2C6.039%2C2.856%2C5.64C2.81%2C5.464%2C2.778%2C5.203%2C2.917%2C4.963%20c0.291-0.51%2C1.146-0.593%2C1.866-0.182C5.21%2C5.027%2C5.521%2C5.4%2C5.632%2C5.807C5.679%2C5.98%2C5.708%2C6.242%2C5.571%2C6.482z%20M5.632%2C13.159%20c-0.111%2C0.406-0.422%2C0.778-0.848%2C1.025c-0.719%2C0.409-1.576%2C0.327-1.867-0.184c-0.137-0.239-0.106-0.499-0.06-0.676%20c0.108-0.398%2C0.426-0.781%2C0.847-1.022c0.72-0.412%2C1.574-0.329%2C1.866%2C0.181C5.708%2C12.723%2C5.679%2C12.983%2C5.632%2C13.159z%20M16.181%2C5.139%20c-0.448%2C0.258-4.435%2C1.9-4.435%2C1.9s-1.556%2C0.855-2.104%2C1.13l0.937%2C0.843l2.057-0.229l4.11-3.638%20C16.745%2C5.146%2C17.013%2C4.664%2C16.181%2C5.139z%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E%20');\n}\n.x6-widget-handle-direction {\n  background-image: url(\"data:image/svg+xml;charset=UTF-8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20%20PUBLIC%20'-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN'%20%20'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%0A%09.st0%7Bfill%3A%236A6C8A%3Bstroke%3A%236A6C8A%3Bstroke-width%3A30%7D%0A%09.dot%7Bfill%3A%236A6C8A%3B%7D%0A%3C%2Fstyle%3E%3Cg%3E%3Cg%20id%3D%22XMLID_475_%22%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M133.1%2C277.1c1.8%2C0%2C3.7-0.6%2C5.4-1.7c4.1-3%2C5-8.7%2C2-12.8c-3-4.1-8.7-5-12.8-2c0%2C0%2C0%2C0%2C0%2C0%20%20%20%20%20c-4.1%2C3-5%2C8.7-2%2C12.8C127.5%2C275.8%2C130.3%2C277.1%2C133.1%2C277.1z%22%20id%3D%22XMLID_489_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M138.5%2C359.6c-4.1-3-9.8-2.1-12.8%2C2c-3%2C4.1-2.1%2C9.8%2C2%2C12.8c1.6%2C1.2%2C3.5%2C1.7%2C5.4%2C1.7%20%20%20%20%20c2.8%2C0%2C5.6-1.3%2C7.4-3.7C143.5%2C368.3%2C142.6%2C362.6%2C138.5%2C359.6z%22%20id%3D%22XMLID_726_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C327.7c-4.8%2C1.6-7.4%2C6.7-5.9%2C11.5c1.3%2C3.9%2C4.8%2C6.3%2C8.7%2C6.3c0.9%2C0%2C1.9-0.1%2C2.8-0.4%20%20%20%20%20c4.8-1.6%2C7.4-6.7%2C5.9-11.5C118%2C328.8%2C112.9%2C326.2%2C108.1%2C327.7z%22%20id%3D%22XMLID_776_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C307.3c0.9%2C0.3%2C1.9%2C0.4%2C2.8%2C0.4c3.8%2C0%2C7.4-2.4%2C8.7-6.3c1.6-4.8-1.1-9.9-5.9-11.5%20%20%20%20%20c-4.8-1.6-9.9%2C1.1-11.5%2C5.9C100.7%2C300.6%2C103.3%2C305.7%2C108.1%2C307.3z%22%20id%3D%22XMLID_777_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M169.2%2C265.4c2.4%2C0%2C4.7-1%2C6.5-2.6c1.7-1.7%2C2.7-4.1%2C2.7-6.5c0-2.4-1-4.8-2.7-6.5%20%20%20%20%20c-1.7-1.7-4.1-2.7-6.5-2.7s-4.7%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.5C164.4%2C264.4%2C166.8%2C265.4%2C169.2%2C265.4z%22%20id%3D%22XMLID_797_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M247.7%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C243.7%2C265.4%2C247.7%2C261.3%2C247.7%2C256.3z%22%20id%3D%22XMLID_798_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M213%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C208.9%2C265.4%2C213%2C261.3%2C213%2C256.3z%22%20id%3D%22XMLID_799_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M317.2%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C313.1%2C265.4%2C317.2%2C261.3%2C317.2%2C256.3z%22%20id%3D%22XMLID_800_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M282.5%2C256.3c0-5-4.1-9.1-9.1-9.1s-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20S282.5%2C261.3%2C282.5%2C256.3z%22%20id%3D%22XMLID_801_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M401.1%2C185.2c0.9%2C0%2C1.9-0.1%2C2.8-0.5c4.8-1.6%2C7.4-6.7%2C5.9-11.5c-1.6-4.8-6.7-7.4-11.5-5.8%20%20%20%20%20c-4.8%2C1.6-7.4%2C6.7-5.8%2C11.5C393.6%2C182.8%2C397.2%2C185.2%2C401.1%2C185.2z%22%20id%3D%22XMLID_802_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M403.9%2C205.2c-4.8-1.6-9.9%2C1-11.5%2C5.9l0%2C0c-1.6%2C4.8%2C1.1%2C9.9%2C5.9%2C11.5%20%20%20%20%20c0.9%2C0.3%2C1.9%2C0.5%2C2.8%2C0.5c3.9%2C0%2C7.4-2.5%2C8.7-6.3c0%2C0%2C0%2C0%2C0%2C0C411.3%2C211.9%2C408.7%2C206.8%2C403.9%2C205.2z%22%20id%3D%22XMLID_803_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C237.2L373.5%2C237.2c-4.1%2C3-5%2C8.7-2%2C12.8c1.8%2C2.4%2C4.6%2C3.7%2C7.4%2C3.7%20%20%20%20%20c1.8%2C0%2C3.7-0.6%2C5.4-1.8c4.1-3%2C4.9-8.7%2C2-12.8C383.3%2C235.1%2C377.6%2C234.2%2C373.5%2C237.2z%22%20id%3D%22XMLID_804_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C152.9c1.6%2C1.2%2C3.5%2C1.8%2C5.4%2C1.8c2.8%2C0%2C5.6-1.3%2C7.4-3.8c3-4.1%2C2.1-9.8-2-12.7%20%20%20%20%20c-4.1-3-9.8-2.1-12.7%2C2C368.5%2C144.2%2C369.4%2C149.9%2C373.5%2C152.9z%22%20id%3D%22XMLID_805_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M342.8%2C247.1c-2.4%2C0-4.8%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.4%20%20%20%20%20c1.7%2C1.7%2C4%2C2.7%2C6.5%2C2.7c2.4%2C0%2C4.7-1%2C6.5-2.7c1.7-1.7%2C2.7-4%2C2.7-6.4c0-2.4-1-4.8-2.7-6.5C347.6%2C248.1%2C345.2%2C247.1%2C342.8%2C247.1z%22%20id%3D%22XMLID_806_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M342.8%2C124.7H206.6l36.4-36.4c3.6-3.6%2C3.6-9.3%2C0-12.9c-3.6-3.6-9.3-3.6-12.9%2C0l-51.5%2C51.5%20%20%20%20%20c-1.9%2C1.9-2.8%2C4.4-2.7%2C6.9c-0.1%2C2.5%2C0.7%2C5%2C2.7%2C6.9l51.5%2C51.5c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7%20%20%20%20%20c3.6-3.6%2C3.6-9.3%2C0-12.9l-36.4-36.4h136.1c0%2C0%2C0.1%2C0%2C0.1%2C0c0.6%2C0%2C1.2-0.1%2C1.8-0.2c0.2%2C0%2C0.4-0.1%2C0.6-0.1c0.1%2C0%2C0.2%2C0%2C0.3-0.1%20%20%20%20%20c3.2-1%2C5.6-3.6%2C6.3-6.9c0.1-0.6%2C0.2-1.2%2C0.2-1.8c0-0.6-0.1-1.2-0.2-1.8C351%2C127.8%2C347.3%2C124.7%2C342.8%2C124.7z%22%20id%3D%22XMLID_807_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M322.1%2C371.3l-51.5-51.5c-3.6-3.6-9.3-3.6-12.9%2C0c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9l36.9%2C36.9H169.2%20%20%20%20%20c-2.8%2C0-5.4%2C1.3-7%2C3.3c-0.1%2C0.1-0.2%2C0.2-0.3%2C0.4c-0.1%2C0.1-0.2%2C0.2-0.2%2C0.3c-0.1%2C0.1-0.1%2C0.2-0.2%2C0.4c-0.1%2C0.1-0.2%2C0.3-0.2%2C0.4%20%20%20%20%20c0%2C0.1-0.1%2C0.2-0.1%2C0.2c-0.1%2C0.2-0.2%2C0.4-0.3%2C0.6c0%2C0%2C0%2C0%2C0%2C0.1c-0.4%2C1.1-0.7%2C2.2-0.7%2C3.4c0%2C1.5%2C0.4%2C2.9%2C1%2C4.2c0%2C0%2C0%2C0.1%2C0.1%2C0.1%20%20%20%20%20c0.1%2C0.1%2C0.1%2C0.2%2C0.2%2C0.3c0.4%2C0.7%2C0.9%2C1.3%2C1.4%2C1.8c0.4%2C0.4%2C0.7%2C0.7%2C1.2%2C1c0.1%2C0.1%2C0.1%2C0.1%2C0.2%2C0.2c0%2C0%2C0.1%2C0%2C0.1%2C0.1%20%20%20%20%20c1.4%2C0.9%2C3.1%2C1.5%2C5%2C1.5h124.4l-36%2C36c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7l51.5-51.5%20%20%20%20%20c1.9-1.9%2C2.8-4.4%2C2.7-6.9C324.8%2C375.7%2C324%2C373.2%2C322.1%2C371.3z%22%20id%3D%22XMLID_808_%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n.x6-widget-handle-direction:hover {\n  background-image: url(\"data:image/svg+xml;charset=UTF-8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20%20PUBLIC%20'-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN'%20%20'http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd'%3E%3Csvg%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%20512%20512%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%20512%20512%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cstyle%20type%3D%22text%2Fcss%22%3E%0A%09.st0%7Bfill%3A%23FD6EB6%3Bstroke%3A%23FD6EB6%3Bstroke-width%3A30%7D%0A%09.dot%7Bfill%3A%23FD6EB6%3B%7D%0A%3C%2Fstyle%3E%3Cg%3E%3Cg%20id%3D%22XMLID_475_%22%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M133.1%2C277.1c1.8%2C0%2C3.7-0.6%2C5.4-1.7c4.1-3%2C5-8.7%2C2-12.8c-3-4.1-8.7-5-12.8-2c0%2C0%2C0%2C0%2C0%2C0%20%20%20%20%20c-4.1%2C3-5%2C8.7-2%2C12.8C127.5%2C275.8%2C130.3%2C277.1%2C133.1%2C277.1z%22%20id%3D%22XMLID_489_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M138.5%2C359.6c-4.1-3-9.8-2.1-12.8%2C2c-3%2C4.1-2.1%2C9.8%2C2%2C12.8c1.6%2C1.2%2C3.5%2C1.7%2C5.4%2C1.7%20%20%20%20%20c2.8%2C0%2C5.6-1.3%2C7.4-3.7C143.5%2C368.3%2C142.6%2C362.6%2C138.5%2C359.6z%22%20id%3D%22XMLID_726_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C327.7c-4.8%2C1.6-7.4%2C6.7-5.9%2C11.5c1.3%2C3.9%2C4.8%2C6.3%2C8.7%2C6.3c0.9%2C0%2C1.9-0.1%2C2.8-0.4%20%20%20%20%20c4.8-1.6%2C7.4-6.7%2C5.9-11.5C118%2C328.8%2C112.9%2C326.2%2C108.1%2C327.7z%22%20id%3D%22XMLID_776_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M108.1%2C307.3c0.9%2C0.3%2C1.9%2C0.4%2C2.8%2C0.4c3.8%2C0%2C7.4-2.4%2C8.7-6.3c1.6-4.8-1.1-9.9-5.9-11.5%20%20%20%20%20c-4.8-1.6-9.9%2C1.1-11.5%2C5.9C100.7%2C300.6%2C103.3%2C305.7%2C108.1%2C307.3z%22%20id%3D%22XMLID_777_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M169.2%2C265.4c2.4%2C0%2C4.7-1%2C6.5-2.6c1.7-1.7%2C2.7-4.1%2C2.7-6.5c0-2.4-1-4.8-2.7-6.5%20%20%20%20%20c-1.7-1.7-4.1-2.7-6.5-2.7s-4.7%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.5C164.4%2C264.4%2C166.8%2C265.4%2C169.2%2C265.4z%22%20id%3D%22XMLID_797_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M247.7%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C243.7%2C265.4%2C247.7%2C261.3%2C247.7%2C256.3z%22%20id%3D%22XMLID_798_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M213%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C208.9%2C265.4%2C213%2C261.3%2C213%2C256.3z%22%20id%3D%22XMLID_799_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M317.2%2C256.3c0-5-4.1-9.1-9.1-9.1c-5%2C0-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20C313.1%2C265.4%2C317.2%2C261.3%2C317.2%2C256.3z%22%20id%3D%22XMLID_800_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M282.5%2C256.3c0-5-4.1-9.1-9.1-9.1s-9.1%2C4.1-9.1%2C9.1c0%2C5%2C4.1%2C9.1%2C9.1%2C9.1%20%20%20%20%20S282.5%2C261.3%2C282.5%2C256.3z%22%20id%3D%22XMLID_801_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M401.1%2C185.2c0.9%2C0%2C1.9-0.1%2C2.8-0.5c4.8-1.6%2C7.4-6.7%2C5.9-11.5c-1.6-4.8-6.7-7.4-11.5-5.8%20%20%20%20%20c-4.8%2C1.6-7.4%2C6.7-5.8%2C11.5C393.6%2C182.8%2C397.2%2C185.2%2C401.1%2C185.2z%22%20id%3D%22XMLID_802_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M403.9%2C205.2c-4.8-1.6-9.9%2C1-11.5%2C5.9l0%2C0c-1.6%2C4.8%2C1.1%2C9.9%2C5.9%2C11.5%20%20%20%20%20c0.9%2C0.3%2C1.9%2C0.5%2C2.8%2C0.5c3.9%2C0%2C7.4-2.5%2C8.7-6.3c0%2C0%2C0%2C0%2C0%2C0C411.3%2C211.9%2C408.7%2C206.8%2C403.9%2C205.2z%22%20id%3D%22XMLID_803_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C237.2L373.5%2C237.2c-4.1%2C3-5%2C8.7-2%2C12.8c1.8%2C2.4%2C4.6%2C3.7%2C7.4%2C3.7%20%20%20%20%20c1.8%2C0%2C3.7-0.6%2C5.4-1.8c4.1-3%2C4.9-8.7%2C2-12.8C383.3%2C235.1%2C377.6%2C234.2%2C373.5%2C237.2z%22%20id%3D%22XMLID_804_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M373.5%2C152.9c1.6%2C1.2%2C3.5%2C1.8%2C5.4%2C1.8c2.8%2C0%2C5.6-1.3%2C7.4-3.8c3-4.1%2C2.1-9.8-2-12.7%20%20%20%20%20c-4.1-3-9.8-2.1-12.7%2C2C368.5%2C144.2%2C369.4%2C149.9%2C373.5%2C152.9z%22%20id%3D%22XMLID_805_%22%2F%3E%0A%3Cpath%20class%3D%22dot%22%20d%3D%22M342.8%2C247.1c-2.4%2C0-4.8%2C1-6.5%2C2.7c-1.7%2C1.7-2.7%2C4-2.7%2C6.5c0%2C2.4%2C1%2C4.7%2C2.7%2C6.4%20%20%20%20%20c1.7%2C1.7%2C4%2C2.7%2C6.5%2C2.7c2.4%2C0%2C4.7-1%2C6.5-2.7c1.7-1.7%2C2.7-4%2C2.7-6.4c0-2.4-1-4.8-2.7-6.5C347.6%2C248.1%2C345.2%2C247.1%2C342.8%2C247.1z%22%20id%3D%22XMLID_806_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M342.8%2C124.7H206.6l36.4-36.4c3.6-3.6%2C3.6-9.3%2C0-12.9c-3.6-3.6-9.3-3.6-12.9%2C0l-51.5%2C51.5%20%20%20%20%20c-1.9%2C1.9-2.8%2C4.4-2.7%2C6.9c-0.1%2C2.5%2C0.7%2C5%2C2.7%2C6.9l51.5%2C51.5c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7%20%20%20%20%20c3.6-3.6%2C3.6-9.3%2C0-12.9l-36.4-36.4h136.1c0%2C0%2C0.1%2C0%2C0.1%2C0c0.6%2C0%2C1.2-0.1%2C1.8-0.2c0.2%2C0%2C0.4-0.1%2C0.6-0.1c0.1%2C0%2C0.2%2C0%2C0.3-0.1%20%20%20%20%20c3.2-1%2C5.6-3.6%2C6.3-6.9c0.1-0.6%2C0.2-1.2%2C0.2-1.8c0-0.6-0.1-1.2-0.2-1.8C351%2C127.8%2C347.3%2C124.7%2C342.8%2C124.7z%22%20id%3D%22XMLID_807_%22%2F%3E%0A%3Cpath%20class%3D%22st0%22%20d%3D%22M322.1%2C371.3l-51.5-51.5c-3.6-3.6-9.3-3.6-12.9%2C0c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9l36.9%2C36.9H169.2%20%20%20%20%20c-2.8%2C0-5.4%2C1.3-7%2C3.3c-0.1%2C0.1-0.2%2C0.2-0.3%2C0.4c-0.1%2C0.1-0.2%2C0.2-0.2%2C0.3c-0.1%2C0.1-0.1%2C0.2-0.2%2C0.4c-0.1%2C0.1-0.2%2C0.3-0.2%2C0.4%20%20%20%20%20c0%2C0.1-0.1%2C0.2-0.1%2C0.2c-0.1%2C0.2-0.2%2C0.4-0.3%2C0.6c0%2C0%2C0%2C0%2C0%2C0.1c-0.4%2C1.1-0.7%2C2.2-0.7%2C3.4c0%2C1.5%2C0.4%2C2.9%2C1%2C4.2c0%2C0%2C0%2C0.1%2C0.1%2C0.1%20%20%20%20%20c0.1%2C0.1%2C0.1%2C0.2%2C0.2%2C0.3c0.4%2C0.7%2C0.9%2C1.3%2C1.4%2C1.8c0.4%2C0.4%2C0.7%2C0.7%2C1.2%2C1c0.1%2C0.1%2C0.1%2C0.1%2C0.2%2C0.2c0%2C0%2C0.1%2C0%2C0.1%2C0.1%20%20%20%20%20c1.4%2C0.9%2C3.1%2C1.5%2C5%2C1.5h124.4l-36%2C36c-3.6%2C3.6-3.6%2C9.3%2C0%2C12.9c1.8%2C1.8%2C4.1%2C2.7%2C6.5%2C2.7c2.3%2C0%2C4.7-0.9%2C6.5-2.7l51.5-51.5%20%20%20%20%20c1.9-1.9%2C2.8-4.4%2C2.7-6.9C324.8%2C375.7%2C324%2C373.2%2C322.1%2C371.3z%22%20id%3D%22XMLID_808_%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E\");\n}\n.x6-widget-handle-surround .x6-widget-handle-animate .x6-widget-handle {\n  transition: background-size 80ms, width 80ms, height 80ms, top 150ms, left 150ms, bottom 150ms, right 150ms;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-se {\n  right: -25px;\n  bottom: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-nw {\n  top: -21px;\n  left: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-n {\n  top: -22px;\n  left: 50%;\n  margin-left: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-e {\n  top: -webkit-calc(40%);\n  top: calc(50% - 10px);\n  right: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-ne {\n  top: -21px;\n  right: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-w {\n  top: 50%;\n  left: -25px;\n  margin-top: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-sw {\n  bottom: -25px;\n  left: -25px;\n}\n.x6-widget-handle-surround .x6-widget-handle-pos-s {\n  bottom: -24px;\n  left: 50%;\n  margin-left: -10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle {\n  width: 15px;\n  height: 15px;\n  font-size: 15px;\n  background-size: 15px 15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-se {\n  right: -19px;\n  bottom: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-nw {\n  top: -19px;\n  left: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-n {\n  top: -19px;\n  margin-left: -7.5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-e {\n  top: -webkit-calc(42%);\n  top: calc(50% - 8px);\n  right: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-ne {\n  top: -19px;\n  right: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-w {\n  left: -19px;\n  margin-top: -8px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-sw {\n  bottom: -19px;\n  left: -19px;\n}\n.x6-widget-handle-surround .x6-widget-handle-small .x6-widget-handle-pos-s {\n  bottom: -19px;\n  margin-left: -7.5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle {\n  width: 10px;\n  height: 10px;\n  font-size: 10px;\n  background-size: 10px 10px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-se {\n  right: -15px;\n  bottom: -13px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-nw {\n  top: -13px;\n  left: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-n {\n  top: -13px;\n  margin-left: -5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-e {\n  top: -webkit-calc(45%);\n  top: calc(50% - 5px);\n  right: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-ne {\n  top: -13px;\n  right: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-w {\n  left: -15px;\n  margin-top: -5px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-sw {\n  bottom: -13px;\n  left: -15px;\n}\n.x6-widget-handle-surround .x6-widget-handle-tiny .x6-widget-handle-pos-s {\n  bottom: -13px;\n  margin-left: -5px;\n}\n.x6-widget-handle-toolbar {\n  position: absolute;\n  top: -50px;\n  display: table-row;\n  padding: 7px 5px;\n}\n.x6-widget-handle-toolbar::after {\n  position: absolute;\n  top: 100%;\n  left: 10px;\n  width: 0;\n  height: 0;\n  margin-top: 4px;\n  border-right: 10px solid transparent;\n  border-left: 10px solid transparent;\n  content: '';\n}\n.x6-widget-handle-toolbar .x6-widget-handle {\n  position: relative;\n  display: table-cell;\n  min-width: 20px;\n  margin: 0 2px;\n  background-position: 3px 3px;\n  background-size: 16px 16px;\n}\n.x6-widget-handle-toolbar .x6-widget-handle::after {\n  position: absolute;\n  bottom: -11px;\n  width: 100%;\n  content: '';\n}\n.x6-widget-handle-pie {\n  position: absolute;\n  top: -webkit-calc(0%);\n  top: calc(50% - 50px);\n  right: -50px;\n  z-index: 1;\n  display: none;\n  width: 100px;\n  height: 100px;\n  margin: -2px -2px 0 0;\n  border-radius: 50%;\n  cursor: default;\n  pointer-events: visiblePainted;\n}\n.x6-widget-handle-pie .x6-widget-handle {\n  width: 1px;\n  height: auto;\n  pointer-events: visiblePainted;\n}\n.x6-widget-handle-pie-slice-svg {\n  width: 100%;\n  height: 100%;\n  overflow: visible !important;\n}\n.x6-widget-handle-pie-slice-img,\n.x6-widget-handle-pie-slice-txt {\n  display: none;\n  pointer-events: none;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='e'] {\n  top: calc(50% - 50px);\n  right: -50px;\n  left: auto;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='w'] {\n  top: calc(50% - 50px);\n  right: auto;\n  left: -52px;\n}\n.x6-widget-handle-pie[data-pie-toggle-position='n'] {\n  top: -50px;\n  right: auto;\n  bottom: auto;\n  left: calc(50% - 52px);\n}\n.x6-widget-handle-pie[data-pie-toggle-position='s'] {\n  top: auto;\n  right: auto;\n  bottom: -52px;\n  left: calc(50% - 52px);\n}\n.x6-widget-handle-pie-opened {\n  display: block;\n  animation: halo-pie-visibility 0.1s, halo-pie-opening 0.1s;\n  animation-timing-function: step-end, ease;\n  animation-delay: 0s, 0.1s;\n}\n.x6-widget-handle-pie-toggle {\n  position: absolute;\n  top: -webkit-calc(35%);\n  top: calc(50% - 15px);\n  right: -15px;\n  z-index: 2;\n  display: block;\n  box-sizing: border-box;\n  width: 30px;\n  height: 30px;\n  background-repeat: no-repeat;\n  background-position: center;\n  background-size: 20px 20px;\n  border-radius: 50%;\n  cursor: pointer;\n  user-select: none;\n  pointer-events: visiblePainted;\n  -webkit-user-drag: none;\n  user-drag: none;\n  /* stylelint-disable-line */\n}\n.x6-widget-handle-pie-toggle-pos-e {\n  top: -webkit-calc(35%);\n  top: calc(50% - 15px);\n  right: -15px;\n  bottom: auto;\n  left: auto;\n}\n.x6-widget-handle-pie-toggle-pos-w {\n  top: -webkit-calc(35%);\n  top: calc(50% - 15px);\n  right: auto;\n  bottom: auto;\n  left: -15px;\n}\n.x6-widget-handle-pie-toggle-pos-n {\n  top: -15px;\n  right: auto;\n  bottom: auto;\n  left: -webkit-calc(35%);\n  left: calc(50% - 15px);\n}\n.x6-widget-handle-pie-toggle-pos-s {\n  top: auto;\n  right: auto;\n  bottom: -15px;\n  left: -webkit-calc(35%);\n  left: calc(50% - 15px);\n}\n.x6-widget-handle-pie-toggle-opened {\n  transition: 0.1s background-image;\n}\n.x6-widget-handle-toolbar {\n  position: static;\n  display: inline-block;\n  margin-top: -50px;\n  margin-left: 45px;\n  white-space: nowrap;\n  vertical-align: top;\n  background-color: #f5f5f5;\n  border-bottom: 3px solid #333;\n  border-radius: 5px;\n  box-shadow: 0 1px 2px #222;\n}\n.x6-widget-handle-toolbar::after {\n  top: -12px;\n  left: 55px;\n  margin-top: 0;\n  border-top: 6px solid #333;\n  border-right: 10px solid transparent;\n  border-left: 10px solid transparent;\n}\n.x6-widget-handle-toolbar .x6-widget-handle {\n  display: inline-block;\n  vertical-align: top;\n}\n.x6-widget-handle-toolbar .x6-widget-handle:hover::after {\n  border-bottom: 4px solid #fc6cb8;\n}\n.x6-widget-handle-toolbar .x6-widget-handle-rotate {\n  position: absolute;\n  top: 100%;\n  right: 100%;\n  margin-top: 3px;\n  margin-right: 6px;\n}\n.x6-widget-handle-toolbar .x6-widget-handle-remove:hover::after,\n.x6-widget-handle-toolbar .x6-widget-handle-rotate:hover::after {\n  border-bottom: none;\n}\n.x6-widget-handle-toolbar .x6-widget-handle + .x6-widget-handle {\n  margin-left: 4px;\n}\n.x6-widget-handle-pie {\n  box-sizing: content-box;\n  background-color: #f5f5f5;\n  border: 2px solid #404040;\n}\n.x6-widget-handle-pie-slice {\n  fill: transparent;\n  stroke: #e9e9e9;\n  stroke-width: 1;\n}\n.x6-widget-handle-pie-slice:hover {\n  fill: #fff;\n}\n.x6-widget-handle-pie-slice-img {\n  display: block;\n}\n.x6-widget-handle-selected .x6-widget-handle-pie-slice {\n  fill: #fff;\n}\n.x6-widget-handle-pie-toggle {\n  background-color: #f6f6f6;\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20height%3D%2216px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%2016%2016%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%2016%2016%22%20width%3D%2216px%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpath%20fill%3D%22%236A6C8A%22%20d%3D%22M15%2C6h-5V1c0-0.55-0.45-1-1-1H7C6.45%2C0%2C6%2C0.45%2C6%2C1v5H1C0.45%2C6%2C0%2C6.45%2C0%2C7v2c0%2C0.55%2C0.45%2C1%2C1%2C1h5v5c0%2C0.55%2C0.45%2C1%2C1%2C1h2%20c0.55%2C0%2C1-0.45%2C1-1v-5h5c0.55%2C0%2C1-0.45%2C1-1V7C16%2C6.45%2C15.55%2C6%2C15%2C6z%22%2F%3E%3C%2Fsvg%3E');\n  background-size: 16px 16px;\n  border: 2px solid #3b425f;\n}\n.x6-widget-handle-pie-toggle:hover {\n  background-color: #fff;\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20height%3D%2216px%22%20id%3D%22Layer_1%22%20style%3D%22enable-background%3Anew%200%200%2016%2016%3B%22%20version%3D%221.1%22%20viewBox%3D%220%200%2016%2016%22%20width%3D%2216px%22%20xml%3Aspace%3D%22preserve%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%3Cpath%20fill%3D%22%23FD6EB6%22%20d%3D%22M15%2C6h-5V1c0-0.55-0.45-1-1-1H7C6.45%2C0%2C6%2C0.45%2C6%2C1v5H1C0.45%2C6%2C0%2C6.45%2C0%2C7v2c0%2C0.55%2C0.45%2C1%2C1%2C1h5v5c0%2C0.55%2C0.45%2C1%2C1%2C1h2%20c0.55%2C0%2C1-0.45%2C1-1v-5h5c0.55%2C0%2C1-0.45%2C1-1V7C16%2C6.45%2C15.55%2C6%2C15%2C6z%22%2F%3E%3C%2Fsvg%3E');\n  border-color: #fd6eb6;\n}\n.x6-widget-handle-pie-toggle-opened {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20xmlns%3Acc%3D%22http%3A%2F%2Fcreativecommons.org%2Fns%23%22%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Asvg%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20id%3D%22Layer_1%22%20xml%3Aspace%3D%22preserve%22%3E%3Cmetadata%20id%3D%22metadata9%22%3E%3Crdf%3ARDF%3E%3Ccc%3AWork%20rdf%3Aabout%3D%22%22%3E%3Cdc%3Aformat%3Eimage%2Fsvg%2Bxml%3C%2Fdc%3Aformat%3E%3Cdc%3Atype%20rdf%3Aresource%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fdcmitype%2FStillImage%22%20%2F%3E%3Cdc%3Atitle%3E%3C%2Fdc%3Atitle%3E%3C%2Fcc%3AWork%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3Cdefs%20id%3D%22defs7%22%20%2F%3E%3Cpath%20d%3D%22M%2015%2C6%2010%2C6%20C%201.0301983%2C6.00505%2015.002631%2C6.011353%206%2C6%20L%201%2C6%20C%200.45%2C6%200%2C6.45%200%2C7%20l%200%2C2%20c%200%2C0.55%200.45%2C1%201%2C1%20l%205%2C0%20c%208.988585%2C-0.019732%20-5.02893401%2C-0.018728%204%2C0%20l%205%2C0%20c%200.55%2C0%201%2C-0.45%201%2C-1%20L%2016%2C7%20C%2016%2C6.45%2015.55%2C6%2015%2C6%20z%22%20id%3D%22path3%22%20style%3D%22fill%3A%236a6c8a%22%20%2F%3E%3C%2Fsvg%3E');\n}\n.x6-widget-handle-pie-toggle-opened:hover {\n  background-image: url('data:image/svg+xml;charset=utf8,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22no%22%3F%3E%3Csvg%20xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22%20xmlns%3Acc%3D%22http%3A%2F%2Fcreativecommons.org%2Fns%23%22%20xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%20xmlns%3Asvg%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20id%3D%22Layer_1%22%20xml%3Aspace%3D%22preserve%22%3E%3Cmetadata%20id%3D%22metadata9%22%3E%3Crdf%3ARDF%3E%3Ccc%3AWork%20rdf%3Aabout%3D%22%22%3E%3Cdc%3Aformat%3Eimage%2Fsvg%2Bxml%3C%2Fdc%3Aformat%3E%3Cdc%3Atype%20rdf%3Aresource%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fdcmitype%2FStillImage%22%20%2F%3E%3Cdc%3Atitle%3E%3C%2Fdc%3Atitle%3E%3C%2Fcc%3AWork%3E%3C%2Frdf%3ARDF%3E%3C%2Fmetadata%3E%3Cdefs%20id%3D%22defs7%22%20%2F%3E%3Cpath%20d%3D%22M%2015%2C6%2010%2C6%20C%201.0301983%2C6.00505%2015.002631%2C6.011353%206%2C6%20L%201%2C6%20C%200.45%2C6%200%2C6.45%200%2C7%20l%200%2C2%20c%200%2C0.55%200.45%2C1%201%2C1%20l%205%2C0%20c%208.988585%2C-0.019732%20-5.02893401%2C-0.018728%204%2C0%20l%205%2C0%20c%200.55%2C0%201%2C-0.45%201%2C-1%20L%2016%2C7%20C%2016%2C6.45%2015.55%2C6%2015%2C6%20z%22%20id%3D%22path3%22%20style%3D%22fill%3A%23FD6EB6%22%20%2F%3E%3C%2Fsvg%3E');\n}\n.x6-widget-dnd {\n  position: absolute;\n  top: -10000px;\n  left: -10000px;\n  z-index: 100;\n  display: none;\n  cursor: move;\n  opacity: 0.7;\n  pointer-events: 'cursor';\n}\n.x6-widget-dnd.dragging {\n  display: inline-block;\n}\n.x6-widget-dnd.dragging * {\n  pointer-events: none !important;\n}\n.x6-widget-dnd .x6-graph {\n  background: transparent;\n  box-shadow: none;\n}\n.x6-widget-halo {\n  position: absolute;\n  pointer-events: none;\n}\n.x6-widget-halo-content {\n  position: absolute;\n  top: 100%;\n  padding: 6px;\n  font-size: 10px;\n  line-height: 14px;\n  text-align: center;\n  border-radius: 6px;\n}\n.x6-widget-halo-handles + .x6-widget-halo-content {\n  right: -20px;\n  left: -20px;\n  margin-top: 30px;\n}\n.x6-widget-halo-handles.x6-widget-handle-small + .x6-widget-halo-content {\n  margin-top: 25px;\n}\n.x6-widget-halo-handles.x6-widget-handle-small + .x6-widget-halo-content {\n  margin-top: 20px;\n}\n.x6-widget-halo-handles.x6-widget-handle-pie + .x6-widget-halo-content {\n  right: 0;\n  left: 0;\n  margin-top: 10px;\n}\n.x6-widget-halo-content {\n  color: #fff;\n  background-color: #6a6b8a;\n}\n.x6-widget-halo.type-node .x6-widget-handle-toolbar .x6-widget-handle-remove {\n  position: absolute;\n  right: 100%;\n  bottom: 100%;\n  margin-right: 6px;\n  margin-bottom: 3px;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-surround .x6-widget-handle-remove {\n  background-color: #fff;\n  border-radius: 50%;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-toolbar {\n  margin-top: -60px;\n  margin-left: -18px;\n}\n.x6-widget-halo.type-edge .x6-widget-handle-toolbar::after {\n  top: -22px;\n  left: -9px;\n}\n.x6-widget-minimap {\n  position: relative;\n  display: table-cell;\n  box-sizing: border-box;\n  overflow: hidden;\n  text-align: center;\n  vertical-align: middle;\n  background-color: #fff;\n  user-select: none;\n}\n.x6-widget-minimap .x6-graph {\n  display: inline-block;\n  box-shadow: 0 0 4px 0 #eee;\n  cursor: pointer;\n}\n.x6-widget-minimap .x6-graph > svg {\n  pointer-events: none;\n  shape-rendering: optimizeSpeed;\n}\n.x6-widget-minimap .x6-graph .x6-node * {\n  /* stylelint-disable-next-line */\n  vector-effect: initial;\n}\n.x6-widget-minimap-viewport {\n  position: absolute;\n  box-sizing: content-box !important;\n  margin: -2px 0 0 -2px;\n  border: 2px solid #31d0c6;\n  cursor: move;\n}\n.x6-widget-minimap-viewport-zoom {\n  position: absolute;\n  right: 0;\n  bottom: 0;\n  box-sizing: border-box;\n  width: 12px;\n  height: 12px;\n  margin: 0 -6px -6px 0;\n  background-color: #fff;\n  border: 2px solid #31d0c6;\n  border-radius: 50%;\n  cursor: nwse-resize;\n}\n.x6-graph-scroller {\n  position: relative;\n  box-sizing: border-box;\n  overflow: scroll;\n  outline: none;\n}\n.x6-graph-scroller-content {\n  position: relative;\n}\n.x6-graph-scroller-background {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n}\n.x6-graph-scroller .x6-graph {\n  position: absolute;\n  display: inline-block;\n  margin: 0;\n  box-shadow: none;\n}\n.x6-graph-scroller .x6-graph > svg {\n  display: block;\n}\n.x6-graph-scroller.x6-graph-scroller-paged .x6-graph {\n  box-shadow: 0 0 4px 0 #eee;\n}\n.x6-graph-scroller.x6-graph-scroller-pannable[data-panning='false'] {\n  cursor: grab;\n  cursor: -moz-grab;\n  cursor: -webkit-grab;\n}\n.x6-graph-scroller.x6-graph-scroller-pannable[data-panning='true'] {\n  cursor: grabbing;\n  cursor: -moz-grabbing;\n  cursor: -webkit-grabbing;\n  user-select: none;\n}\n.x6-graph-pagebreak {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n}\n.x6-graph-pagebreak-vertical {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  box-sizing: border-box;\n  width: 1px;\n  border-left: 1px dashed #bdbdbd;\n}\n.x6-graph-pagebreak-horizontal {\n  position: absolute;\n  right: 0;\n  left: 0;\n  box-sizing: border-box;\n  height: 1px;\n  border-top: 1px dashed #bdbdbd;\n}\n.x6-widget-selection {\n  position: absolute;\n  display: none;\n  width: 0;\n  height: 0;\n  touch-action: none;\n}\n.x6-widget-selection-rubberband {\n  display: block;\n  overflow: visible;\n  opacity: 0.3;\n}\n.x6-widget-selection-selected {\n  display: block;\n}\n.x6-widget-selection-box {\n  cursor: move;\n}\n.x6-widget-selection-inner[data-selection-length='0'],\n.x6-widget-selection-inner[data-selection-length='1'] {\n  display: none;\n}\n.x6-widget-selection-content {\n  position: absolute;\n  top: 100%;\n  right: -20px;\n  left: -20px;\n  margin-top: 30px;\n  padding: 6px;\n  line-height: 14px;\n  text-align: center;\n  border-radius: 6px;\n}\n.x6-widget-selection-content:empty {\n  display: none;\n}\n.x6-widget-selection-rubberband {\n  background-color: #3498db;\n  border: 2px solid #2980b9;\n}\n.x6-widget-selection-box {\n  box-sizing: content-box !important;\n  margin-top: -4px;\n  margin-left: -4px;\n  padding-right: 4px;\n  padding-bottom: 4px;\n  border: 2px dashed #feb663;\n  box-shadow: 2px 2px 5px #d3d3d3;\n}\n.x6-widget-selection-inner {\n  box-sizing: content-box !important;\n  margin-top: -8px;\n  margin-left: -8px;\n  padding-right: 12px;\n  padding-bottom: 12px;\n  border: 2px solid #feb663;\n  box-shadow: 2px 2px 5px #d3d3d3;\n}\n.x6-widget-selection-content {\n  color: #fff;\n  font-size: 10px;\n  background-color: #6a6b8a;\n}\n.x6-widget-snapline {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  pointer-events: none;\n}\n.x6-widget-snapline-vertical,\n.x6-widget-snapline-horizontal {\n  position: absolute;\n  opacity: 1;\n  pointer-events: none;\n}\n.x6-widget-snapline-horizontal {\n  border-bottom: 1px solid #2ecc71;\n}\n.x6-widget-snapline-vertical {\n  border-right: 1px solid #2ecc71;\n}\n.x6-widget-stencil {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n}\n.x6-widget-stencil::after {\n  position: absolute;\n  top: 0;\n  display: block;\n  width: 100%;\n  height: 20px;\n  padding: 8px 0;\n  line-height: 20px;\n  text-align: center;\n  opacity: 0;\n  transition: top 0.1s linear, opacity 0.1s linear;\n  content: ' ';\n  pointer-events: none;\n}\n.x6-widget-stencil-content {\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  height: auto;\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n.x6-widget-stencil .x6-node [magnet]:not([magnet='passive']) {\n  pointer-events: none;\n}\n.x6-widget-stencil-group {\n  padding: 0;\n  padding-bottom: 8px;\n  overflow: hidden;\n  user-select: none;\n}\n.x6-widget-stencil-group.collapsed {\n  height: auto;\n  padding-bottom: 0;\n}\n.x6-widget-stencil-group-title {\n  position: relative;\n  margin-top: 0;\n  margin-bottom: 0;\n  padding: 4px;\n  cursor: pointer;\n}\n.x6-widget-stencil-title,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n  overflow: hidden;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n  user-select: none;\n}\n.x6-widget-stencil .unmatched {\n  opacity: 0.3;\n}\n.x6-widget-stencil .x6-node.unmatched {\n  display: none;\n}\n.x6-widget-stencil-group.unmatched {\n  display: none;\n}\n.x6-widget-stencil-search-text {\n  position: relative;\n  z-index: 1;\n  box-sizing: border-box;\n  width: 100%;\n  height: 30px;\n  max-height: 30px;\n  line-height: 30px;\n  outline: 0;\n}\n.x6-widget-stencil.not-found::after {\n  opacity: 1;\n  content: attr(data-not-found-text);\n}\n.x6-widget-stencil.not-found.searchable::after {\n  top: 30px;\n}\n.x6-widget-stencil.not-found.searchable.collapsable::after {\n  top: 50px;\n}\n.x6-widget-stencil {\n  color: #333;\n  background: #f5f5f5;\n}\n.x6-widget-stencil-content {\n  position: absolute;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-content {\n  top: 32px;\n}\n.x6-widget-stencil.searchable > .x6-widget-stencil-content {\n  top: 80px;\n}\n.x6-widget-stencil.not-found::after {\n  position: absolute;\n}\n.x6-widget-stencil.not-found.searchable.collapsable::after {\n  top: 80px;\n}\n.x6-widget-stencil.not-found.searchable::after {\n  top: 60px;\n}\n.x6-widget-stencil-group {\n  height: auto;\n  margin-bottom: 1px;\n  padding: 0;\n  transition: none;\n}\n.x6-widget-stencil-group .x6-graph {\n  background: transparent;\n  box-shadow: none;\n}\n.x6-widget-stencil-group.collapsed {\n  height: auto;\n  max-height: 31px;\n}\n.x6-widget-stencil-title,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n  position: relative;\n  left: 0;\n  box-sizing: border-box;\n  width: 100%;\n  height: 32px;\n  padding: 0 5px 0 8px;\n  color: #666;\n  font-weight: 700;\n  font-size: 12px;\n  line-height: 32px;\n  cursor: default;\n  transition: all 0.3;\n}\n.x6-widget-stencil-title:hover,\n.x6-widget-stencil-group > .x6-widget-stencil-group-title:hover {\n  color: #444;\n}\n.x6-widget-stencil-title {\n  background: #e9e9e9;\n}\n.x6-widget-stencil-group > .x6-widget-stencil-group-title {\n  background: #ededed;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title {\n  padding-left: 32px;\n  cursor: pointer;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title::before {\n  position: absolute;\n  top: 6px;\n  left: 8px;\n  display: block;\n  width: 18px;\n  height: 18px;\n  margin: 0;\n  padding: 0;\n  background-color: transparent;\n  background-repeat: no-repeat;\n  background-position: 0 0;\n  border: none;\n  content: ' ';\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title::before {\n  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOS4zNzUuNUM0LjY4Ny41Ljg3NSA0LjMxMy44NzUgOWMwIDQuNjg4IDMuODEyIDguNSA4LjUgOC41IDQuNjg3IDAgOC41LTMuODEyIDguNS04LjUgMC00LjY4Ny0zLjgxMy04LjUtOC41LTguNXptMCAxNS44ODZDNS4zMDMgMTYuMzg2IDEuOTkgMTMuMDcyIDEuOTkgOXMzLjMxMi03LjM4NSA3LjM4NS03LjM4NVMxNi43NiA0LjkyOCAxNi43NiA5YzAgNC4wNzItMy4zMTMgNy4zODYtNy4zODUgNy4zODZ6Ii8+PHBhdGggZD0iTTEyLjc1MyA4LjQ0M0g1Ljk5N2EuNTU4LjU1OCAwIDAwMCAxLjExNmg2Ljc1NmEuNTU4LjU1OCAwIDAwMC0xLjExNnoiLz48L2c+PC9zdmc+');\n  opacity: 0.4;\n  transition: all 0.3s;\n}\n.x6-widget-stencil.collapsable > .x6-widget-stencil-title:hover::before,\n.x6-widget-stencil-group.collapsable > .x6-widget-stencil-group-title:hover::before {\n  opacity: 0.6;\n}\n.x6-widget-stencil.collapsable.collapsed > .x6-widget-stencil-title::before,\n.x6-widget-stencil-group.collapsable.collapsed > .x6-widget-stencil-group-title::before {\n  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMCIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNOS4zNzUuNUM0LjY4Ny41Ljg3NSA0LjMxMy44NzUgOWMwIDQuNjg4IDMuODEyIDguNSA4LjUgOC41IDQuNjg3IDAgOC41LTMuODEyIDguNS04LjUgMC00LjY4Ny0zLjgxMy04LjUtOC41LTguNXptMCAxNS44ODZDNS4zMDMgMTYuMzg2IDEuOTkgMTMuMDcyIDEuOTkgOXMzLjMxMi03LjM4NSA3LjM4NS03LjM4NVMxNi43NiA0LjkyOCAxNi43NiA5YzAgNC4wNzItMy4zMTMgNy4zODYtNy4zODUgNy4zODZ6Ii8+PHBhdGggZD0iTTEyLjc1MyA4LjQ0M0g1Ljk5N2EuNTU4LjU1OCAwIDAwMCAxLjExNmg2Ljc1NmEuNTU4LjU1OCAwIDAwMC0xLjExNnoiLz48cGF0aCBkPSJNOC44MTcgNS42MjN2Ni43NTZhLjU1OC41NTggMCAwMDEuMTE2IDBWNS42MjNhLjU1OC41NTggMCAxMC0xLjExNiAweiIvPjwvZz48L3N2Zz4=');\n  opacity: 0.4;\n}\n.x6-widget-stencil.collapsable.collapsed > .x6-widget-stencil-title:hover::before,\n.x6-widget-stencil-group.collapsable.collapsed > .x6-widget-stencil-group-title:hover::before {\n  opacity: 0.6;\n}\n.x6-widget-stencil input[type='search'] {\n  -webkit-appearance: textfield;\n}\n.x6-widget-stencil input[type='search']::-webkit-search-cancel-button,\n.x6-widget-stencil input[type='search']::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\n.x6-widget-stencil-search-text {\n  display: block;\n  width: 90%;\n  margin: 8px 5%;\n  padding-left: 8px;\n  color: #333;\n  background: #fff;\n  border: 1px solid #e9e9e9;\n  border-radius: 12px;\n  outline: 0;\n}\n.x6-widget-stencil-search-text:focus {\n  outline: 0;\n}\n.x6-widget-stencil::after {\n  color: #808080;\n  font-weight: 600;\n  font-size: 12px;\n  background: 0 0;\n}\n.x6-widget-transform {\n  position: absolute;\n  box-sizing: content-box !important;\n  margin: -5px 0 0 -5px;\n  padding: 4px;\n  border: 1px dashed #000;\n  border-radius: 5px;\n  user-select: none;\n  pointer-events: none;\n}\n.x6-widget-transform > div {\n  position: absolute;\n  box-sizing: border-box;\n  background-color: #fff;\n  border: 1px solid #000;\n  transition: background-color 0.2s;\n  pointer-events: auto;\n  -webkit-user-drag: none;\n  user-drag: none;\n  /* stylelint-disable-line */\n}\n.x6-widget-transform > div:hover {\n  background-color: #d3d3d3;\n}\n.x6-widget-transform-cursor-n {\n  cursor: n-resize;\n}\n.x6-widget-transform-cursor-s {\n  cursor: s-resize;\n}\n.x6-widget-transform-cursor-e {\n  cursor: e-resize;\n}\n.x6-widget-transform-cursor-w {\n  cursor: w-resize;\n}\n.x6-widget-transform-cursor-ne {\n  cursor: ne-resize;\n}\n.x6-widget-transform-cursor-nw {\n  cursor: nw-resize;\n}\n.x6-widget-transform-cursor-se {\n  cursor: se-resize;\n}\n.x6-widget-transform-cursor-sw {\n  cursor: sw-resize;\n}\n.x6-widget-transform-resize {\n  width: 10px;\n  height: 10px;\n  border-radius: 6px;\n}\n.x6-widget-transform-resize[data-position='top-left'] {\n  top: -5px;\n  left: -5px;\n}\n.x6-widget-transform-resize[data-position='top-right'] {\n  top: -5px;\n  right: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom-left'] {\n  bottom: -5px;\n  left: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom-right'] {\n  right: -5px;\n  bottom: -5px;\n}\n.x6-widget-transform-resize[data-position='top'] {\n  top: -5px;\n  left: 50%;\n  margin-left: -5px;\n}\n.x6-widget-transform-resize[data-position='bottom'] {\n  bottom: -5px;\n  left: 50%;\n  margin-left: -5px;\n}\n.x6-widget-transform-resize[data-position='left'] {\n  top: 50%;\n  left: -5px;\n  margin-top: -5px;\n}\n.x6-widget-transform-resize[data-position='right'] {\n  top: 50%;\n  right: -5px;\n  margin-top: -5px;\n}\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='top'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='bottom'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='left'],\n.x6-widget-transform.prevent-aspect-ratio .x6-widget-transform-resize[data-position='right'] {\n  display: none;\n}\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='bottom'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='left'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='right'],\n.x6-widget-transform.no-orth-resize .x6-widget-transform-resize[data-position='top'] {\n  display: none;\n}\n.x6-widget-transform.no-resize .x6-widget-transform-resize {\n  display: none;\n}\n.x6-widget-transform-rotate {\n  top: -20px;\n  left: -20px;\n  width: 12px;\n  height: 12px;\n  border-radius: 6px;\n  cursor: crosshair;\n}\n.x6-widget-transform.no-rotate .x6-widget-transform-rotate {\n  display: none;\n}\n.x6-widget-transform-active {\n  border-color: transparent;\n  pointer-events: all;\n}\n.x6-widget-transform-active > div {\n  display: none;\n}\n.x6-widget-transform-active > .x6-widget-transform-active-handle {\n  display: block;\n  background-color: #808080;\n}\n.x6-widget-knob {\n  position: absolute;\n  box-sizing: border-box;\n  width: 16px;\n  height: 16px;\n  margin-top: -8px;\n  margin-left: -8px;\n  cursor: pointer;\n  user-select: none;\n}\n.x6-widget-knob::before,\n.x6-widget-knob::after {\n  position: absolute;\n  transform: rotate(45deg);\n  content: '';\n}\n.x6-widget-knob::before {\n  top: 4px;\n  left: 4px;\n  box-sizing: border-box;\n  width: 8px;\n  height: 8px;\n  background-color: #fff;\n}\n.x6-widget-knob::after {\n  top: 5px;\n  left: 5px;\n  box-sizing: border-box;\n  width: 6px;\n  height: 6px;\n  background-color: #fca000;\n}\n.x6-graph-print {\n  position: relative;\n}\n.x6-graph-print .x6-graph-print-ready {\n  display: none;\n}\n.x6-graph-print .x6-graph-print-preview {\n  overflow: hidden !important;\n  background: #fff !important;\n}\n@media print {\n  html,\n  html > body.x6-graph-printing {\n    position: relative !important;\n    width: 100% !important;\n    height: 100% !important;\n    margin: 0 !important;\n    padding: 0 !important;\n  }\n  html > body.x6-graph-printing > * {\n    display: none !important;\n  }\n  html > body.x6-graph-printing > .x6-graph-print {\n    display: block !important;\n  }\n  .x6-graph-print {\n    top: 0 !important;\n    left: 0 !important;\n    margin: 0 !important;\n    padding: 0 !important;\n    overflow: hidden !important;\n    page-break-after: always;\n    background: #fff !important;\n  }\n  .x6-graph-print .x6-graph-print-ready {\n    display: none;\n  }\n}\n.x6-cell-tool-editor {\n  position: relative;\n  display: inline-block;\n  min-height: 1em;\n  margin: 0;\n  padding: 0;\n  line-height: 1;\n  white-space: normal;\n  text-align: center;\n  vertical-align: top;\n  overflow-wrap: normal;\n  outline: none;\n  transform-origin: 0 0;\n  -webkit-user-drag: none;\n}\n.x6-edge-tool-editor {\n  border: 1px solid #275fc5;\n  border-radius: 2px;\n}\n",Lr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Fr=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"init",value:function(){Or["a"].autoInsertCSS&&n.ensure()}},{key:"dispose",value:function(){n.clean()}}]),n}(Mr);Lr([Fr.dispose()],Fr.prototype,"dispose",null),function(e){var t,n=0;function r(){if(n+=1,!(n>1)&&!O["h"].isApplyingHMR()){t=document.createElement("style"),t.setAttribute("type","text/css"),t.textContent=jr;var e=document.querySelector("head");e&&e.insertBefore(t,e.firstChild)}}function i(){n-=1,n>0||(t&&t.parentNode&&t.parentNode.removeChild(t),t=null)}e.ensure=r,e.clean=i}(Fr||(Fr={}));var Rr,Br=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},zr=function(){function e(){f(this,e)}return g(e,[{key:"handleClassName",get:function(){return Rr.handle}},{key:"pie",get:function(){return Object.assign(Object.assign({},e.defaultPieOptions),this.handleOptions.pie)}},{key:"initHandles",value:function(){var e,t=this;if(this.handles=[],this.handleOptions.handles&&this.handleOptions.handles.forEach((function(e){return t.addHandle(e)})),"pie"===this.handleOptions.type){if(this.pie.toggles){var n=Rr.pieToggle;this.$pieToggles={},this.pie.toggles.forEach((function(e){var r=t.$("<div/>");t.applyAttrs(r,e.attrs),r.addClass(n).addClass("".concat(n,"-pos-").concat(e.position||"e")).attr("data-name",e.name).appendTo(t.container),t.$pieToggles[e.name]=r}))}this.setPieIcons()}if(this.$handleContainer){var r=this.handleOptions.type||"surround";this.$handleContainer.addClass(Rr.wrap).addClass(Rr.animate).addClass("".concat(Rr.handle,"-").concat(r))}this.delegateEvents((e={},s(e,"mousedown .".concat(Rr.handle),"onHandleMouseDown"),s(e,"touchstart .".concat(Rr.handle),"onHandleMouseDown"),s(e,"mousedown .".concat(Rr.pieToggle),"onPieToggleMouseDown"),s(e,"touchstart .".concat(Rr.pieToggle),"onPieToggleMouseDown"),e))}},{key:"onHandleMouseDown",value:function(e){var t=this.$(e.currentTarget).closest(".".concat(Rr.handle)).attr("data-action");t&&(e.preventDefault(),e.stopPropagation(),this.setEventData(e,{action:t,clientX:e.clientX,clientY:e.clientY,startX:e.clientX,startY:e.clientY}),"mousedown"===e.type&&2===e.button?this.triggerHandleAction(t,"contextmenu",e):(this.triggerHandleAction(t,"mousedown",e),this.delegateDocumentEvents({mousemove:"onHandleMouseMove",touchmove:"onHandleMouseMove",mouseup:"onHandleMouseUp",touchend:"onHandleMouseUp",touchcancel:"onHandleMouseUp"},e.data)))}},{key:"onHandleMouseMove",value:function(e){var t=this.getEventData(e),n=t.action;n&&this.triggerHandleAction(n,"mousemove",e)}},{key:"onHandleMouseUp",value:function(e){var t=this.getEventData(e),n=t.action;n&&(this.triggerHandleAction(n,"mouseup",e),this.undelegateDocumentEvents())}},{key:"triggerHandleAction",value:function(e,t,n,r){n.preventDefault(),n.stopPropagation();var i=this.normalizeEvent(n),o=this.getEventData(i),a=this.graph.snapToGrid(i.clientX,i.clientY),s=this.graph.snapToGrid(o.clientX,o.clientY),l=a.x-s.x,u=a.y-s.y;this.trigger("action:".concat(e,":").concat(t),Object.assign({e:i,dx:l,dy:u,x:a.x,y:a.y,offsetX:n.clientX-o.startX,offsetY:n.clientY-o.startY},r)),o.clientX=n.clientX,o.clientY=n.clientY}},{key:"onPieToggleMouseDown",value:function(e){e.stopPropagation();var t=this.$(e.target).closest(".".concat(Rr.pieToggle)).attr("data-name");this.isOpen(t)||this.isOpen()&&this.toggleState(),this.toggleState(t)}},{key:"setPieIcons",value:function(){var e=this;"pie"===this.handleOptions.type&&this.$handleContainer.find(".".concat(Rr.handle)).each((function(t,n){var r=e.$(n),i=r.attr("data-action"),o=Rr.pieSlice,a=e.getHandle(i);if(!a||!a.icon){var s=window.getComputedStyle(n,":before").getPropertyValue("content");if(s&&"none"!==s){var l=r.find(".".concat(o,"-txt"));l.length&&O["m"].create(l[0]).text(s.replace(/['"]/g,""))}var u=r.css("background-image");if(u){var c=u.match(/url\(['"]?([^'"]+)['"]?\)/);if(c){var h=c[1],d=r.find(".".concat(o,"-img"));d.length>0&&O["m"].create(d[0]).attr("xlink:href",h)}}}}))}},{key:"getHandleIdx",value:function(e){return this.handles.findIndex((function(t){return t.name===e}))}},{key:"hasHandle",value:function(e){return this.getHandleIdx(e)>=0}},{key:"getHandle",value:function(e){return this.handles.find((function(t){return t.name===e}))}},{key:"renderHandle",value:function(e){var t=this.$("<div/>").addClass("".concat(Rr.handle," ").concat(Rr.handle,"-").concat(e.name)).attr("data-action",e.name).prop("draggable",!1);if("pie"===this.handleOptions.type){var n=this.getHandleIdx(e.name),r=this.pie,i=r.outerRadius,o=r.innerRadius,a=(i+o)/2,s=new K["f"](i,i),l=K["a"].toRad(r.sliceAngle),u=n*l+K["a"].toRad(r.startAngle),c=u+l,h=O["c"].createSlicePathData(o,i,u,c),d=O["m"].create("svg").addClass("".concat(Rr.pieSlice,"-svg")),f=O["m"].create("path").addClass(Rr.pieSlice).attr("d",h).translate(i,i),g=K["f"].fromPolar(a,-u-l/2,s).toJSON(),p=r.iconSize,v=O["m"].create("image").attr(g).addClass("".concat(Rr.pieSlice,"-img"));g.y=g.y+p-2;var y=O["m"].create("text",{"font-size":p}).attr(g).addClass("".concat(Rr.pieSlice,"-txt"));v.attr({width:p,height:p}),v.translate(-p/2,-p/2),y.translate(-p/2,-p/2),d.append([f,v,y]),t.append(d.node)}else t.addClass("".concat(Rr.handle,"-pos-").concat(e.position)),e.content&&("string"===typeof e.content?t.html(e.content):t.append(e.content));return this.updateHandleIcon(t,e.icon),this.applyAttrs(t,e.attrs),t}},{key:"addHandle",value:function(e){var t=this;if(!this.hasHandle(e.name)){this.handles.push(e);var n=e.events;n&&Object.keys(n).forEach((function(r){var i=n[r],o="action:".concat(e.name,":").concat(r);"string"===typeof i?t.on(o,t[i],t):t.on(o,i)})),this.$handleContainer&&this.$handleContainer.append(this.renderHandle(e))}return this}},{key:"addHandles",value:function(e){var t=this;return e.forEach((function(e){return t.addHandle(e)})),this}},{key:"removeHandles",value:function(){while(this.handles.length)this.removeHandle(this.handles[0].name);return this}},{key:"removeHandle",value:function(e){var t=this,n=this.getHandleIdx(e),r=this.handles[n];return r&&(r.events&&Object.keys(r.events).forEach((function(n){t.off("action:".concat(e,":").concat(n))})),this.getHandleElem(e).remove(),this.handles.splice(n,1)),this}},{key:"changeHandle",value:function(e,t){var n=this.getHandle(e);return n&&(this.removeHandle(e),this.addHandle(Object.assign(Object.assign({},n),t))),this}},{key:"toggleHandle",value:function(e,t){var n=this.getHandle(e);if(n){var r=this.getHandleElem(e),i="".concat(Rr.handle,"-selected");void 0===t&&(t=!r.hasClass(i)),r.toggleClass(i,t);var o=t?n.iconSelected:n.icon;o&&this.updateHandleIcon(r,o)}return this}},{key:"selectHandle",value:function(e){return this.toggleHandle(e,!0)}},{key:"deselectHandle",value:function(e){return this.toggleHandle(e,!1)}},{key:"deselectAllHandles",value:function(){var e=this;return this.handles.forEach((function(t){return e.deselectHandle(t.name)})),this}},{key:"getHandleElem",value:function(e){return this.$handleContainer.find(".".concat(Rr.handle,"-").concat(e))}},{key:"updateHandleIcon",value:function(e,t){if("pie"===this.handleOptions.type){var n=e.find(".".concat(Rr.pieSliceImg));this.$(n[0]).attr("xlink:href",t||"")}else e.css("background-image",t?"url(".concat(t,")"):"")}},{key:"isRendered",value:function(){return null!=this.$handleContainer}},{key:"isOpen",value:function(e){return!!this.isRendered()&&(e?this.$pieToggles[e].hasClass(Rr.pieToggleOpened):this.$handleContainer.hasClass("".concat(Rr.pieOpended)))}},{key:"toggleState",value:function(e){var t=this;if(this.isRendered()){var n=this.$handleContainer;if(Object.keys(this.$pieToggles).forEach((function(e){var n=t.$pieToggles[e];n.removeClass(Rr.pieToggleOpened)})),this.isOpen())this.trigger("pie:close",{name:e}),n.removeClass(Rr.pieOpended);else{if(this.trigger("pie:open",{name:e}),e){var r=this.pie.toggles,i=r&&r.find((function(t){return t.name===e}));i&&n.attr({"data-pie-toggle-name":i.name,"data-pie-toggle-position":i.position}),this.$pieToggles[e].addClass(Rr.pieToggleOpened)}n.addClass(Rr.pieOpended)}}}},{key:"applyAttrs",value:function(e,t){if(t){var n=tr["a"].$(e);Object.keys(t).forEach((function(e){var r=n.find(e).addBack().filter(e),i=t[e],o=i.class,a=Br(i,["class"]);o&&r.addClass(o),r.attr(a)}))}}}]),e}();(function(e){e.defaultPieOptions={innerRadius:20,outerRadius:50,sliceAngle:45,startAngle:0,iconSize:14,toggles:[{name:"default",position:"e"}]}})(zr||(zr={})),function(e){e.handle=tr["a"].prototype.prefixClassName("widget-handle"),e.wrap="".concat(e.handle,"-wrap"),e.animate="".concat(e.handle,"-animate"),e.pieOpended="".concat(e.handle,"-pie-opened"),e.pieToggle="".concat(e.handle,"-pie-toggle"),e.pieToggleOpened="".concat(e.handle,"-pie-toggle-opened"),e.pieSlice="".concat(e.handle,"-pie-slice"),e.pieSliceImg="".concat(e.handle,"-pie-slice-img")}(Rr||(Rr={}));var Ir=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Vr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},_r=function(e){u(n,e);var t=c(n);function n(e){var r;f(this,n),r=t.call(this);var i=e,o=i.view,s=i.cell,l=i.node,u=i.edge,c=i.graph,h=Vr(i,["view","cell","node","edge","graph"]);o?(r.view=o,r.cell=o.cell,r.graph=o.graph,r.model=r.graph.model):(s||u||l)&&c&&(r.cell=l||u||s,r.view=c.renderer.findViewByCell(r.cell),r.graph=c,r.model=r.graph.model);var d=r.constructor;return!1!==e.clearAll&&d.removeInstances(r.graph),d.register(a(r)),r.init(h),r}return g(n,[{key:"init",value:function(e){}},{key:"render",value:function(){return this}},{key:"startListening",value:function(){!1!==this.options.clearOnBlankMouseDown&&this.graph.on("blank:mousedown",this.remove,this)}},{key:"stopListening",value:function(){!1!==this.options.clearOnBlankMouseDown&&this.graph.off("blank:mousedown",this.remove,this)}},{key:"remove",value:function(){this.stopListening();var e=this.constructor;return e.unregister(this),i(o(n.prototype),"remove",this).call(this)}},{key:"dispose",value:function(){this.remove()}}],[{key:"ensureCache",value:function(){return this.instanceCache.has(this)||this.instanceCache.set(this,{}),this.instanceCache.get(this)}},{key:"register",value:function(e,t){null==t&&(t=e.graph);var n=this.ensureCache(),r=n[t.view.cid];null==r&&(r=n[t.view.cid]={}),r[e.cid]=e}},{key:"unregister",value:function(e,t){null==t&&(t=e.graph);var n=this.ensureCache();n[t.view.cid]&&delete n[t.view.cid][e.cid]}},{key:"removeInstances",value:function(e){var t=this.ensureCache(),n=t[e.view.cid];n&&Object.keys(n).forEach((function(e){var t=n[e];t&&t.remove()}))}},{key:"getInstances",value:function(e){var t=this.ensureCache();return t[e.view.cid]||{}}}]),n}(tr["a"]);_r.instanceCache=new WeakMap,Ir([tr["a"].dispose()],_r.prototype,"dispose",null);var Gr,Hr=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"node",get:function(){return this.cell}},{key:"metadata",get:function(){var e=this.cell.prop("knob");return Array.isArray(e)?null!=this.options.index?e[this.options.index]:null:e}},{key:"init",value:function(e){this.options=Object.assign({},e),this.render(),this.startListening()}},{key:"startListening",value:function(){this.delegateEvents({mousedown:"onMouseDown",touchstart:"onMouseDown"}),this.model.on("*",this.update,this),this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this),this.model.on("reseted",this.remove,this),this.node.on("removed",this.remove,this),this.view.on("node:resize:mousedown",this.onTransform,this),this.view.on("node:rotate:mousedown",this.onTransform,this),this.view.on("node:resize:mouseup",this.onTransformed,this),this.view.on("node:rotate:mouseup",this.onTransformed,this),this.view.on("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.on("cell:knob:mouseup",this.onKnobMouseUp,this),i(o(n.prototype),"startListening",this).call(this)}},{key:"stopListening",value:function(){this.undelegateEvents(),this.model.off("*",this.update,this),this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this),this.model.off("reseted",this.remove,this),this.node.off("removed",this.remove,this),this.view.off("node:resize:mousedown",this.onTransform,this),this.view.off("node:rotate:mousedown",this.onTransform,this),this.view.off("node:resize:mouseup",this.onTransformed,this),this.view.off("node:rotate:mouseup",this.onTransformed,this),this.view.off("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.off("cell:knob:mouseup",this.onKnobMouseUp,this),i(o(n.prototype),"stopListening",this).call(this)}},{key:"render",value:function(){return this.container=document.createElement("div"),O["c"].addClass(this.container,this.prefixClassName("widget-knob")),this.options.className&&O["c"].addClass(this.container,this.options.className),this.view.addClass(Gr.KNOB),this.graph.container.appendChild(this.container),this.update(),this}},{key:"remove",value:function(){return this.view.removeClass(Gr.KNOB),i(o(n.prototype),"remove",this).call(this)}},{key:"update",value:function(){if(this.metadata){var e=this.metadata,t=e.update,n=e.position,r={knob:this,cell:this.cell,node:this.node};if(n){var i=n.call(this.graph,Object.assign({},r));if(i){var o=this.graph.matrix(),a=this.node.getBBox(),s=K["a"].normalize(this.node.getAngle()),l=K["f"].create(i);0!==s&&l.rotate(-s,{x:a.width/2,y:a.height/2}),l.translate(a).scale(o.a,o.d).translate(o.e,o.f),this.container.style.left="".concat(l.x,"px"),this.container.style.top="".concat(l.y,"px")}}t&&t.call(this.graph,Object.assign({},r))}}},{key:"hide",value:function(){this.container.style.display="none"}},{key:"show",value:function(){this.container.style.display=""}},{key:"onTransform",value:function(){this.hide()}},{key:"onTransformed",value:function(){this.show()}},{key:"onKnobMouseDown",value:function(e){var t=e.knob;this.cid!==t.cid&&this.hide()}},{key:"onKnobMouseUp",value:function(){this.show()}},{key:"notify",value:function(e,t){if(this.view){var n=this.view.normalizeEvent(t),r=this.graph.snapToGrid(n.clientX,n.clientY);this.view.notify("cell:".concat(e),{e:n,view:this.view,node:this.node,cell:this.cell,x:r.x,y:r.y,knob:this}),this.cell.isNode()?this.view.notify("node:".concat(e),{e:n,view:this.view,node:this.node,cell:this.cell,x:r.x,y:r.y,knob:this}):this.cell.isEdge()&&this.view.notify("edge:".concat(e),{e:n,view:this.view,edge:this.cell,cell:this.cell,x:r.x,y:r.y,knob:this})}}},{key:"onMouseDown",value:function(e){e.stopPropagation(),this.setEventData(e,{knobbing:!1,originX:e.clientX,originY:e.clientY,clientX:e.clientX,clientY:e.clientY}),this.graph.view.undelegateEvents(),this.delegateDocumentEvents(Gr.documentEvents,e.data),this.metadata&&this.metadata.onMouseDown&&this.metadata.onMouseDown.call(this.graph,{e:e,data:this.getEventData(e),knob:this,cell:this.cell,node:this.node}),this.notify("knob:mousedown",e)}},{key:"onMouseMove",value:function(e){var t=this.getEventData(e),n=this.graph.findViewByCell(this.node);if(t.knobbing||(t.knobbing=!0,n&&(n.addClass(Gr.KNOBBING),this.notify("knob",e)),this.model.startBatch("knob",{cid:this.cid})),t.clientX=e.clientX,t.clientY=e.clientY,this.metadata&&this.metadata.onMouseMove){var r=this.graph.matrix(),i=(e.clientX-t.originX)/r.a,o=(e.clientY-t.originY)/r.d,a=this.node.getAngle(),s=new K["f"](i,o).rotate(a);this.metadata.onMouseMove.call(this.graph,{e:e,data:t,deltaX:s.x,deltaY:s.y,knob:this,cell:this.cell,node:this.node})}this.notify("knobbing",e),this.notify("knob:mousemove",e)}},{key:"onMouseUp",value:function(e){this.undelegateDocumentEvents(),this.graph.view.delegateEvents();var t=this.getEventData(e),n=this.graph.findViewByCell(this.node);t.knobbing&&(n&&n.removeClass(Gr.KNOBBING),this.metadata&&this.metadata.onMouseUp&&this.metadata.onMouseUp.call(this.graph,{e:e,data:t,knob:this,cell:this.cell,node:this.node}),this.model.stopBatch("knob",{cid:this.cid}),this.notify("knobbed",e)),this.notify("knob:mouseup",e)}}]),n}(_r);(function(e){e.KNOB="has-widget-knob",e.KNOBBING="node-knobbing",e.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp"}})(Gr||(Gr={}));var Ur,qr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};(function(e){e.root="widget-minimap",e.viewport="".concat(e.root,"-viewport"),e.zoom="".concat(e.viewport,"-zoom")})(Ur||(Ur={}));var $r,Wr=function(e){u(n,e);var t=c(n);function n(e){var r;f(this,n),r=t.call(this),r.options=Object.assign(Object.assign({},$r.defaultOptions),e),r.updateViewport=O["d"].debounce(r.updateViewport.bind(a(r)),0),r.container=document.createElement("div"),r.$container=r.$(r.container).addClass(r.prefixClassName(Ur.root));var i=document.createElement("div");r.container.appendChild(i),r.$viewport=r.$("<div>").addClass(r.prefixClassName(Ur.viewport)),r.options.scalable&&(r.zoomHandle=r.$("<div>").addClass(r.prefixClassName(Ur.zoom)).appendTo(r.$viewport).get(0)),r.$container.append(r.$viewport).css({width:r.options.width,height:r.options.height,padding:r.options.padding}),r.options.container&&r.options.container.appendChild(r.container),r.sourceGraph=r.graph;var o=Object.assign(Object.assign({},r.options.graphOptions),{container:i,model:r.sourceGraph.model,frozen:!0,async:r.sourceGraph.isAsync(),interacting:!1,grid:!1,background:!1,rotating:!1,resizing:!1,embedding:!1,selecting:!1,snapline:!1,clipboard:!1,history:!1,scroller:!1});return r.targetGraph=r.options.createGraph?r.options.createGraph(o):new io(o),r.targetGraph.renderer.unfreeze(),r.updatePaper(r.sourceGraph.options.width,r.sourceGraph.options.height),r.startListening(),r}return g(n,[{key:"graph",get:function(){return this.options.graph}},{key:"scroller",get:function(){return this.graph.scroller.widget}},{key:"graphContainer",get:function(){return this.scroller?this.scroller.container:this.graph.container}},{key:"$graphContainer",get:function(){return this.scroller?this.scroller.$container:this.$(this.graph.container)}},{key:"startListening",value:function(){var e;this.scroller?this.$graphContainer.on("scroll".concat(this.getEventNamespace()),this.updateViewport):this.sourceGraph.on("translate",this.updateViewport,this),this.sourceGraph.on("resize",this.updatePaper,this),this.delegateEvents((e={mousedown:"startAction",touchstart:"startAction"},s(e,"mousedown .".concat(this.prefixClassName("graph")),"scrollTo"),s(e,"touchstart .".concat(this.prefixClassName("graph")),"scrollTo"),e))}},{key:"stopListening",value:function(){this.scroller?this.$graphContainer.off(this.getEventNamespace()):this.sourceGraph.off("translate",this.updateViewport,this),this.sourceGraph.off("resize",this.updatePaper,this),this.undelegateEvents()}},{key:"onRemove",value:function(){this.targetGraph.view.remove(),this.stopListening(),this.targetGraph.dispose()}},{key:"updatePaper",value:function(e,t){var n,r;"object"===p(e)?(n=e.width,r=e.height):(n=e,r=t);var i=this.sourceGraph.options,o=this.sourceGraph.transform.getScale(),a=this.options.width-2*this.options.padding,s=this.options.height-2*this.options.padding;n/=o.sx,r/=o.sy,this.ratio=Math.min(a/n,s/r);var l=this.ratio,u=i.x*l/o.sx,c=i.y*l/o.sy;return n*=l,r*=l,this.targetGraph.resizeGraph(n,r),this.targetGraph.translate(u,c),this.targetGraph.scale(l,l),this.updateViewport(),this}},{key:"updateViewport",value:function(){var e=this.ratio,t=this.sourceGraph.transform.getScale(),n=null;if(this.scroller)n=this.scroller.clientToLocalPoint(0,0);else{var r=this.sourceGraph.matrix();n=new K["f"](-r.e/r.a,-r.f/r.d)}var i=this.$(this.targetGraph.container).position(),o=this.targetGraph.translate();o.ty=o.ty||0,this.geometry={top:i.top+n.y*e+o.ty,left:i.left+n.x*e+o.tx,width:this.$graphContainer.innerWidth()*e/t.sx,height:this.$graphContainer.innerHeight()*e/t.sy},this.$viewport.css(this.geometry)}},{key:"startAction",value:function(e){var t=this.normalizeEvent(e),n=t.target===this.zoomHandle?"zooming":"panning",r=this.sourceGraph.translate(),i=r.tx,o=r.ty,a={action:n,clientX:t.clientX,clientY:t.clientY,scrollLeft:this.graphContainer.scrollLeft,scrollTop:this.graphContainer.scrollTop,zoom:this.sourceGraph.zoom(),scale:this.sourceGraph.transform.getScale(),geometry:this.geometry,translateX:i,translateY:o};this.delegateDocumentEvents($r.documentEvents,a)}},{key:"doAction",value:function(e){var t=this,n=this.normalizeEvent(e),r=n.clientX,i=n.clientY,o=n.data;switch(o.action){case"panning":var a=this.sourceGraph.transform.getScale(),s=(r-o.clientX)*a.sx,l=(i-o.clientY)*a.sy;this.scroller?(this.graphContainer.scrollLeft=o.scrollLeft+s/this.ratio,this.graphContainer.scrollTop=o.scrollTop+l/this.ratio):this.sourceGraph.translate(o.translateX-s/this.ratio,o.translateY-l/this.ratio);break;case"zooming":var u=o.scale,c=o.geometry,h=1+(o.clientX-r)/c.width/u.sx;o.frameId&&cancelAnimationFrame(o.frameId),o.frameId=requestAnimationFrame((function(){t.sourceGraph.zoom(h*o.zoom,{absolute:!0,minScale:t.options.minScale,maxScale:t.options.maxScale})}));break;default:break}}},{key:"stopAction",value:function(){this.undelegateDocumentEvents()}},{key:"scrollTo",value:function(e){var t,n,r=this.normalizeEvent(e),i=this.targetGraph.translate();if(i.ty=i.ty||0,null==r.offsetX){var o=this.$(this.targetGraph.container).offset();t=r.pageX-o.left,n=r.pageY-o.top}else t=r.offsetX,n=r.offsetY;var a=(t-i.tx)/this.ratio,s=(n-i.ty)/this.ratio;this.sourceGraph.centerPoint(a,s)}},{key:"dispose",value:function(){this.remove()}}]),n}(tr["a"]);qr([tr["a"].dispose()],Wr.prototype,"dispose",null),function(e){e.defaultOptions={width:300,height:200,padding:10,scalable:!0,minScale:.01,maxScale:16,graphOptions:{},createGraph:function(e){return new io(e)}},e.documentEvents={mousemove:"doAction",touchmove:"doAction",mouseup:"stopAction",touchend:"stopAction"}}($r||($r={}));var Xr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Yr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Jr=function(e){u(n,e);var t=c(n);function n(e){var r;f(this,n),r=t.call(this);var i=e.graph,o=Yr(e,["graph"]);return r.graph=i,r.options=Object.assign({tolerance:10},o),r.render(),r.parseFilter(),r.disabled||r.startListening(),r}return g(n,[{key:"model",get:function(){return this.graph.model}},{key:"containerClassName",get:function(){return this.prefixClassName("widget-snapline")}},{key:"verticalClassName",get:function(){return"".concat(this.containerClassName,"-vertical")}},{key:"horizontalClassName",get:function(){return"".concat(this.containerClassName,"-horizontal")}},{key:"disabled",get:function(){return!0!==this.options.enabled||!0!==this.graph.options.snapline.enabled}},{key:"enable",value:function(){this.disabled&&(this.options.enabled=!0,this.graph.options.snapline.enabled=!0,this.startListening())}},{key:"disable",value:function(){this.disabled||(this.options.enabled=!1,this.graph.options.snapline.enabled=!1,this.stopListening())}},{key:"setFilter",value:function(e){this.options.filter=e,this.parseFilter()}},{key:"render",value:function(){this.container=document.createElement("div"),this.$container=this.$(this.container),this.$horizontal=this.$(document.createElement("div")).addClass(this.horizontalClassName),this.$vertical=this.$(document.createElement("div")).addClass(this.verticalClassName),this.$container.hide().addClass(this.containerClassName).append([this.$horizontal,this.$vertical]),this.options.className&&this.$container.addClass(this.options.className)}},{key:"startListening",value:function(){this.stopListening(),this.graph.on("node:mousedown",this.captureCursorOffset,this),this.graph.on("node:mousemove",this.snapOnMoving,this),this.model.on("batch:stop",this.onBatchStop,this),this.delegateDocumentEvents({mouseup:"hide",touchend:"hide"})}},{key:"stopListening",value:function(){this.graph.off("node:mousedown",this.captureCursorOffset,this),this.graph.off("node:mousemove",this.snapOnMoving,this),this.model.off("batch:stop",this.onBatchStop,this),this.undelegateDocumentEvents()}},{key:"parseFilter",value:function(){var e=this;this.filterShapes={},this.filterCells={},this.filterFunction=null;var t=this.options.filter;Array.isArray(t)?t.forEach((function(t){"string"===typeof t?e.filterShapes[t]=!0:e.filterCells[t.id]=!0})):"function"===typeof t&&(this.filterFunction=t)}},{key:"onBatchStop",value:function(e){var t=e.name,n=e.data;"resize"===t&&this.snapOnResizing(n.cell,n)}},{key:"captureCursorOffset",value:function(e){var t=e.view,n=e.x,r=e.y,i=t.getDelegatedView();if(i&&this.isNodeMovable(i)){var o=t.cell.getPosition();this.offset={x:n-o.x,y:r-o.y}}}},{key:"isNodeMovable",value:function(e){return e&&e.cell.isNode()&&e.can("nodeMovable")}},{key:"snapOnResizing",value:function(e,t){var n=this;if(this.options.resizing&&!t.snapped&&t.ui&&t.direction&&t.trueDirection){var r=this.graph.renderer.findViewByCell(e);if(r&&r.cell.isNode()){var i,o,a,s,l,u,c=e.getBBox(),h=c.bbox(e.getAngle()),d=h.getTopLeft(),f=h.getBottomRight(),g=K["a"].normalize(e.getAngle()),p=this.options.tolerance||0,v={vertical:0,horizontal:0},y=t.direction,m=t.trueDirection,b=t.relativeDirection;-1!==m.indexOf("right")?v.vertical=f.x:v.vertical=d.x,-1!==m.indexOf("bottom")?v.horizontal=f.y:v.horizontal=d.y,this.model.getNodes().some((function(t){if(n.isIgnored(e,t))return!1;var r=t.getBBox().bbox(t.getAngle()),c=r.getTopLeft(),d=r.getBottomRight(),g={vertical:[c.x,d.x],horizontal:[c.y,d.y]},y={};return Object.keys(g).forEach((function(e){var t=e,n=g[t].map((function(e){return{position:e,distance:Math.abs(e-v[t])}})).filter((function(e){return e.distance<=p}));y[t]=O["a"].sortBy(n,(function(e){return e.distance}))})),null==i&&y.vertical.length>0&&(i=y.vertical[0].position,o=Math.min(h.y,r.y),a=Math.max(f.y,d.y)-o),null==s&&y.horizontal.length>0&&(s=y.horizontal[0].position,l=Math.min(h.x,r.x),u=Math.max(f.x,d.x)-l),null!=i&&null!=s})),this.hide();var x=0,w=0;null==s&&null==i||(null!=i&&(x=-1!==m.indexOf("right")?i-f.x:d.x-i),null!=s&&(w=-1!==m.indexOf("bottom")?s-f.y:d.y-s));var C=0,k=0;if(g%90===0)90===g||270===g?(C=w,k=x):(C=x,k=w);else{var E=g>=0&&g<90?1:g>=90&&g<180?4:g>=180&&g<270?3:2;null!=s&&null!=i&&(x<w?(w=0,s=void 0):(x=0,i=void 0));var S=K["a"].toRad(g%90);x&&(C=3===E?x/Math.cos(S):x/Math.sin(S)),w&&(k=3===E?w/Math.cos(S):w/Math.sin(S));var A=1===E||3===E;switch(b){case"top":case"bottom":k=w?w/(A?Math.cos(S):Math.sin(S)):x/(A?Math.sin(S):Math.cos(S));break;case"left":case"right":C=x?x/(A?Math.cos(S):Math.sin(S)):w/(A?Math.sin(S):Math.cos(S));break;default:break}}switch(b){case"top":case"bottom":C=0;break;case"left":case"right":k=0;break;default:break}var M=this.graph.getGridSize(),P=Math.max(c.width+C,M),T=Math.max(c.height+k,M);t.minWidth&&t.minWidth>M&&(P=Math.max(P,t.minWidth)),t.minHeight&&t.minHeight>M&&(T=Math.max(T,t.minHeight)),t.maxWidth&&(P=Math.min(P,t.maxWidth)),t.maxHeight&&(T=Math.min(T,t.maxHeight)),t.preserveAspectRatio&&(k<C?T=P*(c.height/c.width):P=T*(c.width/c.height)),P===c.width&&T===c.height||(e.resize(P,T,{direction:y,relativeDirection:b,trueDirection:m,snapped:!0,snaplines:this.cid,restrict:this.graph.hook.getRestrictArea(r)}),a&&(a+=T-c.height),u&&(u+=P-c.width));var D=e.getBBox().bbox(g);i&&Math.abs(D.x-i)>1&&Math.abs(D.width+D.x-i)>1&&(i=void 0),s&&Math.abs(D.y-s)>1&&Math.abs(D.height+D.y-s)>1&&(s=void 0),this.update({verticalLeft:i,verticalTop:o,verticalHeight:a,horizontalTop:s,horizontalLeft:l,horizontalWidth:u})}}}},{key:"snapOnMoving",value:function(e){var t=this,n=e.view,r=e.e,i=e.x,o=e.y,a=n.getEventData(r).delegatedView||n;if(this.isNodeMovable(a)){var s,l,u,c,h,d,f=a.cell,g=f.getSize(),p=f.getPosition(),v=new K["h"](i-this.offset.x,o-this.offset.y,g.width,g.height),y=f.getAngle(),m=v.getCenter(),b=v.bbox(y),x=b.getTopLeft(),w=b.getBottomRight(),C=this.options.tolerance||0,k=0,E=0;if(this.model.getNodes().some((function(e){if(t.isIgnored(f,e))return!1;var n=e.getBBox().bbox(e.getAngle()),r=n.getCenter(),i=n.getTopLeft(),o=n.getBottomRight();return null==s&&(Math.abs(r.x-m.x)<C?(s=r.x,k=.5):Math.abs(i.x-x.x)<C?(s=i.x,k=0):Math.abs(i.x-w.x)<C?(s=i.x,k=1):Math.abs(o.x-w.x)<C?(s=o.x,k=1):Math.abs(o.x-x.x)<C&&(s=o.x),null!=s&&(l=Math.min(b.y,n.y),u=Math.max(w.y,o.y)-l)),null==c&&(Math.abs(r.y-m.y)<C?(c=r.y,E=.5):Math.abs(i.y-x.y)<C?c=i.y:Math.abs(i.y-w.y)<C?(c=i.y,E=1):Math.abs(o.y-w.y)<C?(c=o.y,E=1):Math.abs(o.y-x.y)<C&&(c=o.y),null!=c&&(h=Math.min(b.x,n.x),d=Math.max(w.x,o.x)-h)),null!=s&&null!=c})),this.hide(),null!=c||null!=s){null!=c&&(b.y=c-E*b.height),null!=s&&(b.x=s-k*b.width);var S=b.getCenter(),A=S.x-v.width/2,O=S.y-v.height/2,M=A-p.x,P=O-p.y;0===M&&0===P||(f.translate(M,P,{snapped:!0,restrict:this.graph.hook.getRestrictArea(a)}),d&&(d+=M),u&&(u+=P)),this.update({verticalLeft:s,verticalTop:l,verticalHeight:u,horizontalTop:c,horizontalLeft:h,horizontalWidth:d})}}}},{key:"isIgnored",value:function(e,t){return t.id===e.id||t.isDescendantOf(e)||this.filterShapes[t.shape]||this.filterCells[t.id]||this.filterFunction&&O["d"].call(this.filterFunction,this.graph,t)}},{key:"update",value:function(e){var t=this.graph.matrix(),n=t.a,r=t.d,i=t.e,o=t.f,a=this.options.sharp,s=null!=this.graph.scroller.widget;e.horizontalTop?this.$horizontal.css({top:e.horizontalTop*r+o,left:a?e.horizontalLeft*n+i:s?"-300%":0,width:a?e.horizontalWidth*n:s?"700%":"100%"}).show():this.$horizontal.hide(),e.verticalLeft?this.$vertical.css({left:e.verticalLeft*n+i,top:a?e.verticalTop*r+o:s?"-300%":0,height:a?e.verticalHeight*r:s?"700%":"100%"}).show():this.$vertical.hide(),this.show()}},{key:"resetTimer",value:function(){this.timer&&(clearTimeout(this.timer),this.timer=null)}},{key:"show",value:function(){return this.$container.show(),this.resetTimer(),null==this.container.parentNode&&this.graph.container.appendChild(this.container),this}},{key:"hide",value:function(){var e=this;this.$container.hide(),this.resetTimer();var t=this.options.clean,n="number"===typeof t?t:!1!==t?3e3:0;return n>0&&(this.timer=window.setTimeout((function(){e.unmount()}),n)),this}},{key:"onRemove",value:function(){this.stopListening(),this.hide()}},{key:"dispose",value:function(){this.remove()}}]),n}(tr["a"]);Xr([tr["a"].dispose()],Jr.prototype,"dispose",null);var Zr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Kr=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"init",value:function(){this.resetUpdates(),this.startListening(),this.resetViews(this.model.getCells()),!this.isFrozen()&&this.isAsync()&&this.updateViewsAsync()}},{key:"startListening",value:function(){this.model.on("sorted",this.onSortModel,this),this.model.on("reseted",this.onModelReseted,this),this.model.on("batch:stop",this.onBatchStop,this),this.model.on("cell:added",this.onCellAdded,this),this.model.on("cell:removed",this.onCellRemoved,this),this.model.on("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.on("cell:change:visible",this.onCellVisibleChanged,this)}},{key:"stopListening",value:function(){this.model.off("sorted",this.onSortModel,this),this.model.off("reseted",this.onModelReseted,this),this.model.off("batch:stop",this.onBatchStop,this),this.model.off("cell:added",this.onCellAdded,this),this.model.off("cell:removed",this.onCellRemoved,this),this.model.off("cell:change:zIndex",this.onCellZIndexChanged,this),this.model.off("cell:change:visible",this.onCellVisibleChanged,this)}},{key:"resetUpdates",value:function(){this.updates={priorities:[{},{},{}],mounted:{},mountedCids:[],unmounted:{},unmountedCids:[],count:0,sort:!1,frozen:!1,freezeKey:null,animationId:null}}},{key:"onSortModel",value:function(){this.model.hasActiveBatch(n.SORT_DELAYING_BATCHES)||this.sortViews()}},{key:"onModelReseted",value:function(e){var t=e.options;this.removeZPivots(),this.resetViews(this.model.getCells(),t)}},{key:"onBatchStop",value:function(e){var t=e.name,r=e.data;if(!this.isFrozen()){var i=this.model;if(!this.isAsync()){var o=n.UPDATE_DELAYING_BATCHES;o.includes(t)&&!i.hasActiveBatch(o)&&this.updateViews(r)}var a=n.SORT_DELAYING_BATCHES;a.includes(t)&&!i.hasActiveBatch(a)&&this.sortViews()}}},{key:"onCellAdded",value:function(e){var t=e.cell,n=e.options,r=n.position;this.isAsync()||"number"!==typeof r?this.renderView(t,n):(n.maxPosition===r&&this.freeze({key:"addCells"}),this.renderView(t,n),0===r&&this.unfreeze({key:"addCells"}))}},{key:"onCellRemoved",value:function(e){var t=e.cell,r=e.options,i=this.findViewByCell(t);i&&this.requestViewUpdate(i,n.FLAG_REMOVE,i.priority,r)}},{key:"onCellZIndexChanged",value:function(e){var t=e.cell,r=e.options;if("approx"===this.options.sorting){var i=this.findViewByCell(t);i&&this.requestViewUpdate(i,n.FLAG_INSERT,i.priority,r)}}},{key:"onCellVisibleChanged",value:function(e){var t=e.cell,n=e.current,r=e.options;n||this.processEdgeOnTerminalVisibleChanged(t,!1);var i=this.findViewByCell(t);!n&&i?this.removeView(t):n&&null==i&&this.renderView(t,r),n&&this.processEdgeOnTerminalVisibleChanged(t,!0)}},{key:"processEdgeOnTerminalVisibleChanged",value:function(e,t){var n=function(e,t){var n=e.getSourceCellId();if(n!==t.id)return e.getSourceCell();var r=e.getTargetCellId();return r!==t.id?e.getTargetCell():null};this.model.getConnectedEdges(e).forEach((function(r){var i=n(r,e);(null==i||i.isVisible())&&(t?r.show():r.hide())}))}},{key:"isEdgeTerminalVisible",value:function(e,t){var n="source"===t?e.getSourceCellId():e.getTargetCellId(),r=n?this.model.getCell(n):null;return!(r&&!r.isVisible())}},{key:"requestConnectedEdgesUpdate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(nr["a"].isCellView(e))for(var n=e.cell,r=this.model.getConnectedEdges(n),i=0,o=r.length;i<o;i+=1){var a=r[i],s=this.findViewByCell(a);if(s){var l=["update"];a.getTargetCell()===n&&l.push("target"),a.getSourceCell()===n&&l.push("source"),this.scheduleViewUpdate(s,s.getFlag(l),s.priority,t)}}}},{key:"forcePostponedViewUpdate",value:function(e,t){if(!e||!nr["a"].isCellView(e))return!1;var n=e.cell;if(n.isNode())return!1;var r=e;if(n.isEdge()&&0===(t&e.getFlag(["source","target"]))){var i=0,o=this.findViewByCell(n.getSourceCell());o&&!this.isViewMounted(o)&&(i=this.dumpView(o),r.updateTerminalMagnet("source"));var a=0,s=this.findViewByCell(n.getTargetCell());if(s&&!this.isViewMounted(s)&&(a=this.dumpView(s),r.updateTerminalMagnet("target")),0===i&&0===a)return!this.dumpView(r)}return!1}},{key:"scheduleViewUpdate",value:function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.cid,a=this.updates,s=a.priorities[r];s||(s=a.priorities[r]={});var l=s[o]||0;(l&t)!==t&&(l||(a.count+=1),t&n.FLAG_REMOVE&&l&n.FLAG_INSERT?s[o]^=n.FLAG_INSERT:t&n.FLAG_INSERT&&l&n.FLAG_REMOVE&&(s[o]^=n.FLAG_REMOVE),s[o]|=t,this.graph.hook.onViewUpdated(e,t,i))}},{key:"requestViewUpdate",value:function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.scheduleViewUpdate(e,t,r,i);var o=this.isAsync();if(!(this.isFrozen()||o&&!1!==i.async||this.model.hasActiveBatch(n.UPDATE_DELAYING_BATCHES))){var a=this.updateViews(i);o&&this.graph.trigger("render:done",{stats:a,options:i})}}},{key:"dumpView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e)return 0;var n=e.cid,r=this.updates,i=r.priorities[e.priority],o=this.registerMountedView(e)|i[n];return delete i[n],o?this.updateView(e,o,t):0}},{key:"dumpViews",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.checkView(e),this.updateViews(e)}},{key:"requireView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.findViewByCell(e);return null==n?null:(this.dumpView(n,t),n)}},{key:"updateView",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==e)return 0;if(nr["a"].isCellView(e)){if(t&n.FLAG_REMOVE)return this.removeView(e.cell),0;t&n.FLAG_INSERT&&(this.insertView(e),t^=n.FLAG_INSERT)}return t?e.confirmUpdate(t,r):0}},{key:"updateViews",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=0,i=0,o=n.MIN_PRIORITY;do{e=this.updateViewsBatch(t),r+=1,i+=e.updatedCount,o=Math.min(e.priority,o)}while(!e.empty);return{priority:o,batchCount:r,updatedCount:i}}},{key:"updateViewsBatch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.updates,r=t.priorities,i=e.batchSize||n.UPDATE_BATCH_SIZE,o=!0,a=n.MIN_PRIORITY,s=0,l=0,u=0,c=0,h=e.checkView||this.options.checkView;"function"!==typeof h&&(h=null);e:for(var d=0,f=r.length;d<f;d+=1){var g=r[d];for(var p in g){if(u>=i){o=!1;break e}var v=tr["a"].views[p];if(v){var y=g[p];if(0===(y&n.FLAG_REMOVE)){var m=p in t.unmounted;if(h&&!O["d"].call(h,this.graph,{view:v,unmounted:m})){m||(this.registerUnmountedView(v),v.unmount()),t.unmounted[p]|=y,delete g[p],l+=1;continue}m&&(y|=n.FLAG_INSERT,s+=1),y|=this.registerMountedView(v)}var b=v,x=this.updateView(v,y,e);if(x>0){var w=b.cell;w&&w.isEdge()&&(b.hasAction(x,"source")&&!this.isEdgeTerminalVisible(w,"source")&&(x=b.removeAction(x,"source"),x|=n.FLAG_REMOVE),b.hasAction(x,"target")&&!this.isEdgeTerminalVisible(w,"target")&&(x=b.removeAction(x,"target"),x|=n.FLAG_REMOVE))}x>0&&(g[p]=x,!this.graph.hook.onViewPostponed(b,x,e)||g[p])?(c+=1,o=!1):(a>d&&(a=d),u+=1,delete g[p])}else delete g[p]}}return{empty:o,priority:a,mountedCount:s,unmountedCount:l,updatedCount:u,postponedCount:c}}},{key:"updateViewsAsync",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{processed:0,priority:n.MIN_PRIORITY},i=this.updates,o=i.animationId;if(o){if(O["c"].cancelAnimationFrame(o),0===r.processed){var a=t.before;"function"===typeof a&&O["d"].call(a,this.graph,this.graph)}var s=this.updateViewsBatch(t),l=this.checkViewImpl({checkView:t.checkView,mountedBatchSize:n.MOUNT_BATCH_SIZE-s.mountedCount,unmountedBatchSize:n.MOUNT_BATCH_SIZE-s.unmountedCount}),u=r.processed,c=i.count,h=l.mountedCount,d=l.unmountedCount;s.updatedCount>0&&(u+=s.updatedCount+s.unmountedCount,r.priority=Math.min(s.priority,r.priority),s.empty&&0===h?(s.priority=r.priority,s.mountedCount+=h,s.unmountedCount+=d,this.graph.trigger("render:done",{stats:s,options:t}),r.processed=0,i.count=0):r.processed=u);var f=t.progress;if(c&&"function"===typeof f&&O["d"].call(f,this.graph,{total:c,done:s.empty,current:u}),i.animationId!==o)return}i.animationId=O["c"].requestAnimationFrame((function(){e.updateViewsAsync(t,r)}))}},{key:"registerMountedView",value:function(e){var t=e.cid,n=this.updates;if(t in n.mounted)return 0;n.mounted[t]=!0,n.mountedCids.push(t);var r=n.unmounted[t]||0;return delete n.unmounted[t],r}},{key:"registerUnmountedView",value:function(e){var t=e.cid,r=this.updates;if(t in r.unmounted)return 0;r.unmounted[t]|=n.FLAG_INSERT;var i=r.unmounted[t];return r.unmountedCids.push(t),delete r.mounted[t],i}},{key:"isViewMounted",value:function(e){if(null==e)return!1;var t=e.cid;return t in this.updates.mounted}},{key:"getMountedViews",value:function(){return Object.keys(this.updates.mounted).map((function(e){return nr["a"].views[e]}))}},{key:"getUnmountedViews",value:function(){return Object.keys(this.updates.unmounted).map((function(e){return nr["a"].views[e]}))}},{key:"checkMountedViews",value:function(e,t){var n=0;if("function"!==typeof e)return n;for(var r=this.updates,i=r.mounted,o=r.mountedCids,a=null==t?o.length:Math.min(o.length,t),s=0;s<a;s+=1){var l=o[s];if(l in i){var u=nr["a"].views[l];if(null!=u){var c=O["d"].call(e,this.graph,{view:u,unmounted:!0});if(c)o.push(l);else{n+=1;var h=this.registerUnmountedView(u);h&&u.unmount()}}}}return o.splice(0,a),n}},{key:"checkUnmountedViews",value:function(e,t){var n=0;"function"!==typeof e&&(e=null);for(var r=this.updates,i=r.unmounted,o=r.unmountedCids,a=null==t?o.length:Math.min(o.length,t),s=0;s<a;s+=1){var l=o[s];if(l in i){var u=nr["a"].views[l];if(null!=u)if(!e||O["d"].call(e,this.graph,{view:u,unmounted:!1})){n+=1;var c=this.registerMountedView(u);c&&this.scheduleViewUpdate(u,c,u.priority,{mounting:!0})}else o.push(l)}}return o.splice(0,a),n}},{key:"checkViewImpl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{mountedBatchSize:Number.MAX_SAFE_INTEGER,unmountedBatchSize:Number.MAX_SAFE_INTEGER},t=e.checkView||this.options.checkView,n=this.checkMountedViews(t,e.unmountedBatchSize),r=this.checkUnmountedViews(t,n>0?Math.min(this.updates.unmountedCids.length-n,e.mountedBatchSize):e.mountedBatchSize);return{mountedCount:r,unmountedCount:n}}},{key:"checkView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.checkViewImpl(e)}},{key:"isFrozen",value:function(){return!!this.options.frozen}},{key:"freeze",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key,n=this.updates,r=this.options.frozen,i=n.freezeKey;if(t&&t!==i){if(r&&i)return;n.frozen=r,n.freezeKey=t}this.options.frozen=!0;var o=n.animationId;n.animationId=null,this.isAsync()&&null!=o&&O["c"].cancelAnimationFrame(o),this.graph.trigger("freeze",{key:t})}},{key:"unfreeze",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.key,r=this.updates,i=r.freezeKey;if((!n||!i||n===i)&&(r.freezeKey=null,!n||n!==i||!r.frozen)){var o=function(){e.options.frozen=r.frozen=!1,r.sort&&(e.sortViews(),r.sort=!1);var i=t.after;i&&O["d"].call(i,e.graph,e.graph),e.graph.trigger("unfreeze",{key:n})};if(this.isAsync()){this.freeze();var a=t.progress;this.updateViewsAsync(Object.assign(Object.assign({},t),{progress:function(t){var n=t.done,r=t.current,i=t.total;a&&O["d"].call(a,e.graph,{done:n,current:r,total:i}),n&&o()}}))}else this.updateViews(t),o()}}},{key:"isAsync",value:function(){return!!this.options.async}},{key:"setAsync",value:function(e){this.options.async=e}},{key:"onRemove",value:function(){this.freeze(),this.removeViews()}},{key:"resetViews",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.resetUpdates(),this.removeViews(),this.freeze({key:"reset"});for(var n=0,r=e.length;n<r;n+=1)this.renderView(e[n],t);this.unfreeze({key:"reset"}),this.sortViews()}},{key:"removeView",value:function(e){var t=this.views[e.id];if(t){var n=t.cid,r=this.updates,i=r.mounted,o=r.unmounted;t.remove(),delete this.views[e.id],delete i[n],delete o[n]}return t}},{key:"removeViews",value:function(){var e=this;this.views&&Object.keys(this.views).forEach((function(t){var n=e.views[t];n&&e.removeView(n.cell)})),this.views={}}},{key:"renderView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.id,i=this.views,o=0,a=i[r];if(e.isVisible()&&(!e.isEdge()||this.isEdgeTerminalVisible(e,"source")&&this.isEdgeTerminalVisible(e,"target"))){if(a)o=n.FLAG_INSERT;else{var s=this.graph.hook.createCellView(e);s&&(a=i[e.id]=s,a.graph=this.graph,o=this.registerUnmountedView(a)|a.getBootstrapFlag())}a&&this.requestViewUpdate(a,o,a.priority,t)}}},{key:"isExactSorting",value:function(){return"exact"===this.options.sorting}},{key:"sortViews",value:function(){this.isExactSorting()&&(this.isFrozen()?this.updates.sort=!0:this.sortViewsExact())}},{key:"sortElements",value:function(e,t){var n=e.map((function(e){var t=e.parentNode,n=t.insertBefore(document.createTextNode(""),e.nextSibling);return function(e){if(t===e)throw new Error("You can't sort elements if any one is a descendant of another.");t.insertBefore(e,n),t.removeChild(n)}}));e.sort(t).forEach((function(e,t){return n[t](e)}))}},{key:"sortViewsExact",value:function(){var e=this.view.$(this.view.stage).children("[data-cell-id]").toArray(),t=this.model;this.sortElements(e,(function(e,n){var r=t.getCell(e.getAttribute("data-cell-id")||""),i=t.getCell(n.getAttribute("data-cell-id")||""),o=r.getZIndex()||0,a=i.getZIndex()||0;return o===a?0:o<a?-1:1}))}},{key:"addZPivot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null==this.zPivots&&(this.zPivots={});var t=this.zPivots,n=t[e];if(n)return n;n=t[e]=document.createComment("z-index:".concat(e+1));var r=-1/0;for(var i in t){var o=+i;o<e&&o>r&&(r=o)}var a=this.view.stage;if(r!==-1/0){var s=t[r];a.insertBefore(n,s.nextSibling)}else a.insertBefore(n,a.firstChild);return n}},{key:"removeZPivots",value:function(){var e=this;this.zPivots&&Object.keys(this.zPivots).forEach((function(t){var n=e.zPivots[t];n&&n.parentNode&&n.parentNode.removeChild(n)})),this.zPivots={}}},{key:"insertView",value:function(e){var t=this.view.stage;switch(this.options.sorting){case"approx":var n=e.cell.getZIndex(),r=this.addZPivot(n);t.insertBefore(e.container,r);break;case"exact":default:t.appendChild(e.container);break}}},{key:"findViewByCell",value:function(e){if(null==e)return null;var t=Gn.isCell(e)?e.id:e;return this.views[t]}},{key:"findViewByElem",value:function(e){if(null==e)return null;var t="string"===typeof e?this.view.stage.querySelector(e):e instanceof Element?e:e[0];if(t){var n=this.view.findAttr("data-cell-id",t);if(n)return this.views[n]}return null}},{key:"findViewsFromPoint",value:function(e){var t=this,n={x:e.x,y:e.y};return this.model.getCells().map((function(e){return t.findViewByCell(e)})).filter((function(e){return null!=e&&O["c"].getBBox(e.container,{target:t.view.stage}).containsPoint(n)}))}},{key:"findEdgeViewsInArea",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=K["h"].create(e);return this.model.getEdges().map((function(e){return t.findViewByCell(e)})).filter((function(e){if(e){var i=O["c"].getBBox(e.container,{target:t.view.stage});return 0===i.width?i.inflate(1,0):0===i.height&&i.inflate(0,1),n.strict?r.containsRect(i):r.isIntersectWithRect(i)}return!1}))}},{key:"findViewsInArea",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=K["h"].create(e);return this.model.getNodes().map((function(e){return t.findViewByCell(e)})).filter((function(e){if(e){var i=O["c"].getBBox(e.container,{target:t.view.stage});return n.strict?r.containsRect(i):r.isIntersectWithRect(i)}return!1}))}},{key:"dispose",value:function(){this.resetUpdates(),this.stopListening()}}]),n}(Mr);Zr([Mr.dispose()],Kr.prototype,"dispose",null),function(e){e.FLAG_INSERT=1<<30,e.FLAG_REMOVE=1<<29,e.MOUNT_BATCH_SIZE=1e3,e.UPDATE_BATCH_SIZE=1e3,e.MIN_PRIORITY=2,e.SORT_DELAYING_BATCHES=["add","to-front","to-back"],e.UPDATE_DELAYING_BATCHES=["translate"]}(Kr||(Kr={}));var Qr=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ei=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"elem",get:function(){return this.view.background}},{key:"init",value:function(){this.startListening(),this.options.background&&this.draw(this.options.background)}},{key:"startListening",value:function(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}},{key:"stopListening",value:function(){this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this)}},{key:"updateBackgroundImage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.size||"auto auto",n=e.position||"center",r=this.graph.transform.getScale(),i=this.graph.translate();if("object"===p(n)){var o=i.tx+r.sx*(n.x||0),a=i.ty+r.sy*(n.y||0);n="".concat(o,"px ").concat(a,"px")}"object"===p(t)&&(t=K["h"].fromSize(t).scale(r.sx,r.sy),t="".concat(t.width,"px ").concat(t.height,"px")),this.elem.style.backgroundSize=t,this.elem.style.backgroundPosition=n}},{key:"drawBackgroundImage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e instanceof HTMLImageElement){var n=this.optionsCache;if(!n||n.image===t.image){var r,i=t.opacity,o=t.size,a=t.repeat||"no-repeat",s=X.registry.get(a);if("function"===typeof s){var l=t.quality||1;e.width*=l,e.height*=l;var u=s(e,t);if(!(u instanceof HTMLCanvasElement))throw new Error("Background pattern must return an HTML Canvas instance");r=u.toDataURL("image/png"),a=t.repeat&&a!==t.repeat?t.repeat:"repeat","object"===p(o)?(o.width*=u.width/e.width,o.height*=u.height/e.height):void 0===o&&(t.size={width:u.width/l,height:u.height/l})}else r=e.src,void 0===o&&(t.size={width:e.width,height:e.height});null!=n&&"object"===p(t.size)&&t.image===n.image&&t.repeat===n.repeat&&t.quality===n.quality&&(n.size=O["g"].clone(t.size));var c=this.elem.style;c.backgroundImage="url(".concat(r,")"),c.backgroundRepeat=a,c.opacity=null==i||i>=1?"":"".concat(i),this.updateBackgroundImage(t)}}else this.elem.style.backgroundImage=""}},{key:"updateBackgroundColor",value:function(e){this.elem.style.backgroundColor=e||""}},{key:"updateBackgroundOptions",value:function(e){this.graph.options.background=e}},{key:"update",value:function(){this.optionsCache&&this.updateBackgroundImage(this.optionsCache)}},{key:"draw",value:function(e){var t=this,n=e||{};if(this.updateBackgroundOptions(e),this.updateBackgroundColor(n.color),n.image){this.optionsCache=O["g"].clone(n);var r=document.createElement("img");r.onload=function(){return t.drawBackgroundImage(r,e)},r.setAttribute("crossorigin","anonymous"),r.src=n.image}else this.drawBackgroundImage(null),this.optionsCache=null}},{key:"clear",value:function(){this.draw()}},{key:"dispose",value:function(){this.clear(),this.stopListening()}}]),n}(Mr);Qr([Mr.dispose()],ei.prototype,"dispose",null);var ti,ni=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ri=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},ii=function(e){u(n,e);var t=c(n);function n(e){var r;f(this,n),r=t.call(this),r.padding={left:0,top:0,right:0,bottom:0},r.options=ti.getOptions(e);var i=r.graph.transform.getScale();r.sx=i.sx,r.sy=i.sy;var o=r.options.width||r.graph.options.width,s=r.options.height||r.graph.options.height;r.container=document.createElement("div"),r.$container=r.$(r.container).addClass(r.prefixClassName(ti.containerClass)).css({width:o,height:s}),r.options.pageVisible&&r.$container.addClass(r.prefixClassName(ti.pagedClass)),r.options.className&&r.$container.addClass(r.options.className);var l=r.graph.container;l.parentNode&&r.$container.insertBefore(l);var u=l.getAttribute("style");if(u){var c={},h=u.split(";");h.forEach((function(e){var t=e.trim();if(t){var n=t.split(":");n.length&&(c[n[0].trim()]=n[1]?n[1].trim():"")}})),Object.keys(c).forEach((function(e){"width"!==e&&"height"!==e&&(l.style[e]="",r.container.style[e]=c[e])}))}return r.content=document.createElement("div"),r.$content=r.$(r.content).addClass(r.prefixClassName(ti.contentClass)).css({width:r.graph.options.width,height:r.graph.options.height}),r.background=document.createElement("div"),r.$background=r.$(r.background).addClass(r.prefixClassName(ti.backgroundClass)),r.$content.append(r.background),r.options.pageVisible||r.$content.append(r.graph.view.grid),r.$content.append(l),r.$content.appendTo(r.container),r.startListening(),r.options.pageVisible||r.graph.grid.update(),r.backgroundManager=new n.Background(a(r)),r.options.autoResize||r.update(),r}return g(n,[{key:"graph",get:function(){return this.options.graph}},{key:"model",get:function(){return this.graph.model}},{key:"startListening",value:function(){var e=this.graph,t=this.model;e.on("scale",this.onScale,this),e.on("resize",this.onResize,this),e.on("before:print",this.storeScrollPosition,this),e.on("before:export",this.storeScrollPosition,this),e.on("after:print",this.restoreScrollPosition,this),e.on("after:export",this.restoreScrollPosition,this),e.on("render:done",this.onRenderDone,this),e.on("unfreeze",this.onUpdate,this),t.on("reseted",this.onUpdate,this),t.on("cell:added",this.onUpdate,this),t.on("cell:removed",this.onUpdate,this),t.on("cell:changed",this.onUpdate,this),t.on("batch:stop",this.onBatchStop,this),this.delegateBackgroundEvents()}},{key:"stopListening",value:function(){var e=this.graph,t=this.model;e.off("scale",this.onScale,this),e.off("resize",this.onResize,this),e.off("beforeprint",this.storeScrollPosition,this),e.off("beforeexport",this.storeScrollPosition,this),e.off("afterprint",this.restoreScrollPosition,this),e.off("afterexport",this.restoreScrollPosition,this),e.off("render:done",this.onRenderDone,this),e.off("unfreeze",this.onUpdate,this),t.off("reseted",this.onUpdate,this),t.off("cell:added",this.onUpdate,this),t.off("cell:removed",this.onUpdate,this),t.off("cell:changed",this.onUpdate,this),t.off("batch:stop",this.onBatchStop,this),this.undelegateBackgroundEvents()}},{key:"enableAutoResize",value:function(){this.options.autoResize=!0}},{key:"disableAutoResize",value:function(){this.options.autoResize=!1}},{key:"onUpdate",value:function(){!this.graph.isAsync()&&this.options.autoResize&&this.update()}},{key:"onBatchStop",value:function(e){!this.graph.isAsync()&&this.options.autoResize&&Kr.UPDATE_DELAYING_BATCHES.includes(e.name)&&this.update()}},{key:"delegateBackgroundEvents",value:function(e){var t=this,n=e||Nr.events;this.delegatedHandlers=Object.keys(n).reduce((function(e,r){var i=n[r];if(-1===r.indexOf(" "))if("function"===typeof i)e[r]=i;else{var o=t.graph.view[i];"function"===typeof o&&(o=o.bind(t.graph.view),e[r]=o)}return e}),{}),this.onBackgroundEvent=this.onBackgroundEvent.bind(this),Object.keys(this.delegatedHandlers).forEach((function(e){t.delegateEvent(e,{guarded:!1},t.onBackgroundEvent)}))}},{key:"undelegateBackgroundEvents",value:function(){var e=this;Object.keys(this.delegatedHandlers).forEach((function(t){e.undelegateEvent(t,e.onBackgroundEvent)}))}},{key:"onBackgroundEvent",value:function(e){var t=!1,n=e.target;if(this.options.pageVisible)t=this.options.background?this.background===n:this.content===n;else{var r=this.graph.view;t=r.background===n||r.grid===n}if(t){var i=this.delegatedHandlers[e.type];"function"===typeof i&&i.apply(this.graph,arguments)}}},{key:"onRenderDone",value:function(e){var t=e.stats;this.options.autoResize&&t.priority<2&&this.update()}},{key:"onResize",value:function(){this.cachedCenterPoint&&(this.centerPoint(this.cachedCenterPoint.x,this.cachedCenterPoint.y),this.updatePageBreak())}},{key:"onScale",value:function(e){var t=e.sx,n=e.sy,r=e.ox,i=e.oy;this.updateScale(t,n),(r||i)&&(this.centerPoint(r,i),this.updatePageBreak());var o=this.options.autoResizeOptions||this.options.fitTocontentOptions;"function"===typeof o&&this.update()}},{key:"storeScrollPosition",value:function(){this.cachedScrollLeft=this.container.scrollLeft,this.cachedScrollTop=this.container.scrollTop}},{key:"restoreScrollPosition",value:function(){this.container.scrollLeft=this.cachedScrollLeft,this.container.scrollTop=this.cachedScrollTop,this.cachedScrollLeft=null,this.cachedScrollTop=null}},{key:"storeClientSize",value:function(){this.cachedClientSize={width:this.container.clientWidth,height:this.container.clientHeight}}},{key:"restoreClientSize",value:function(){this.cachedClientSize=null}},{key:"beforeManipulation",value:function(){(O["h"].IS_IE||O["h"].IS_EDGE)&&this.$container.css("visibility","hidden")}},{key:"afterManipulation",value:function(){(O["h"].IS_IE||O["h"].IS_EDGE)&&this.$container.css("visibility","visible")}},{key:"updatePageSize",value:function(e,t){null!=e&&(this.options.pageWidth=e),null!=t&&(this.options.pageHeight=t),this.updatePageBreak()}},{key:"updatePageBreak",value:function(){if(this.pageBreak&&this.pageBreak.parentNode&&this.pageBreak.parentNode.removeChild(this.pageBreak),this.pageBreak=null,this.options.pageVisible&&this.options.pageBreak){var e=this.graph.options.width,t=this.graph.options.height,n=this.options.pageWidth*this.sx,r=this.options.pageHeight*this.sy;if(e>n||t>r){for(var i=!1,o=document.createElement("div"),a=1,s=Math.floor(e/n);a<s;a+=1)this.$("<div/>").addClass(this.prefixClassName("graph-pagebreak-vertical")).css({left:a*n}).appendTo(o),i=!0;for(var l=1,u=Math.floor(t/r);l<u;l+=1)this.$("<div/>").addClass(this.prefixClassName("graph-pagebreak-horizontal")).css({top:l*r}).appendTo(o),i=!0;i&&(O["c"].addClass(o,this.prefixClassName("graph-pagebreak")),this.$(this.graph.view.grid).after(o),this.pageBreak=o)}}}},{key:"update",value:function(){var e=this.getClientSize();this.cachedCenterPoint=this.clientToLocalPoint(e.width/2,e.height/2);var t=this.options.autoResizeOptions||this.options.fitTocontentOptions;"function"===typeof t&&(t=O["d"].call(t,this,this));var n=Object.assign({gridWidth:this.options.pageWidth,gridHeight:this.options.pageHeight,allowNewOrigin:"negative"},t);this.graph.fitToContent(this.getFitToContentOptions(n))}},{key:"getFitToContentOptions",value:function(e){var t=this.sx,n=this.sy;return e.gridWidth&&(e.gridWidth*=t),e.gridHeight&&(e.gridHeight*=n),e.minWidth&&(e.minWidth*=t),e.minHeight&&(e.minHeight*=n),"object"===p(e.padding)?e.padding={left:(e.padding.left||0)*t,right:(e.padding.right||0)*t,top:(e.padding.top||0)*n,bottom:(e.padding.bottom||0)*n}:"number"===typeof e.padding&&(e.padding*=t),this.options.autoResize||(e.contentArea=K["h"].create()),e}},{key:"updateScale",value:function(e,t){var n=this.graph.options,r=e/this.sx,i=t/this.sy;this.sx=e,this.sy=t,this.graph.translate(n.x*r,n.y*i),this.graph.resizeGraph(n.width*r,n.height*i)}},{key:"scrollbarPosition",value:function(e,t,n){if(null==e&&null==t)return{left:this.container.scrollLeft,top:this.container.scrollTop};var r={};return"number"===typeof e&&(r.scrollLeft=e),"number"===typeof t&&(r.scrollTop=t),n&&n.animation?this.$container.animate(r,n.animation):this.$container.prop(r),this}},{key:"scrollToPoint",value:function(e,t,n){var r=this.getClientSize(),i=this.graph.matrix(),o={};return"number"===typeof e&&(o.scrollLeft=e-r.width/2+i.e+(this.padding.left||0)),"number"===typeof t&&(o.scrollTop=t-r.height/2+i.f+(this.padding.top||0)),n&&n.animation?this.$container.animate(o,n.animation):this.$container.prop(o),this}},{key:"scrollToContent",value:function(e){var t=this.sx,n=this.sy,r=this.graph.getContentArea().getCenter();return this.scrollToPoint(r.x*t,r.y*n,e)}},{key:"scrollToCell",value:function(e,t){var n=this.sx,r=this.sy,i=e.getBBox().getCenter();return this.scrollToPoint(i.x*n,i.y*r,t)}},{key:"center",value:function(e){return this.centerPoint(e)}},{key:"centerPoint",value:function(e,t,n){var r,i=this.graph.matrix(),o=i.a,a=i.d,s=-i.e,l=-i.f,u=s+this.graph.options.width,c=l+this.graph.options.height;if(this.storeClientSize(),"number"===typeof e||"number"===typeof t){r=n;var h=this.getVisibleArea().getCenter();"number"===typeof e?e*=o:e=h.x,"number"===typeof t?t*=a:t=h.y}else r=e,e=(s+u)/2,t=(l+c)/2;if(r&&r.padding)return this.positionPoint({x:e,y:t},"50%","50%",r);var d=this.getPadding(),f=this.getClientSize(),g=f.width/2,p=f.height/2,v=g-d.left-e+s,y=g-d.right+e-u,m=p-d.top-t+l,b=p-d.bottom+t-c;this.addPadding(Math.max(v,0),Math.max(y,0),Math.max(m,0),Math.max(b,0));var x=this.scrollToPoint(e,t,r||void 0);return this.restoreClientSize(),x}},{key:"centerContent",value:function(e){return this.positionContent("center",e)}},{key:"centerCell",value:function(e,t){return this.positionCell(e,"center",t)}},{key:"positionContent",value:function(e,t){var n=this.graph.getContentArea(t);return this.positionRect(n,e,t)}},{key:"positionCell",value:function(e,t,n){var r=e.getBBox();return this.positionRect(r,t,n)}},{key:"positionRect",value:function(e,t,n){var r=K["h"].create(e);switch(t){case"center":return this.positionPoint(r.getCenter(),"50%","50%",n);case"top":return this.positionPoint(r.getTopCenter(),"50%",0,n);case"top-right":return this.positionPoint(r.getTopRight(),"100%",0,n);case"right":return this.positionPoint(r.getRightMiddle(),"100%","50%",n);case"bottom-right":return this.positionPoint(r.getBottomRight(),"100%","100%",n);case"bottom":return this.positionPoint(r.getBottomCenter(),"50%","100%",n);case"bottom-left":return this.positionPoint(r.getBottomLeft(),0,"100%",n);case"left":return this.positionPoint(r.getLeftMiddle(),0,"50%",n);case"top-left":return this.positionPoint(r.getTopLeft(),0,0,n);default:return this}}},{key:"positionPoint",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.padding,o=ri(r,["padding"]),a=O["f"].normalizeSides(i),s=K["h"].fromSize(this.getClientSize()),l=s.clone().moveAndExpand({x:a.left,y:a.top,width:-a.right-a.left,height:-a.top-a.bottom});t=O["f"].normalizePercentage(t,Math.max(0,l.width)),t<0&&(t=l.width+t),n=O["f"].normalizePercentage(n,Math.max(0,l.height)),n<0&&(n=l.height+n);var u=l.getTopLeft().translate(t,n),c=s.getCenter().diff(u),h=this.zoom(),d=c.scale(1/h,1/h),f=K["f"].create(e).translate(d);return this.centerPoint(f.x,f.y,o)}},{key:"zoom",value:function(e,t){if(null==e)return this.sx;var n,r;t=t||{};var i=this.getClientSize(),o=this.clientToLocalPoint(i.width/2,i.height/2),a=e,s=e;if(t.absolute||(a+=this.sx,s+=this.sy),t.scaleGrid&&(a=Math.round(a/t.scaleGrid)*t.scaleGrid,s=Math.round(s/t.scaleGrid)*t.scaleGrid),t.maxScale&&(a=Math.min(t.maxScale,a),s=Math.min(t.maxScale,s)),t.minScale&&(a=Math.max(t.minScale,a),s=Math.max(t.minScale,s)),a=this.graph.transform.clampScale(a),s=this.graph.transform.clampScale(s),t.center){var l=a/this.sx,u=s/this.sy;n=t.center.x-(t.center.x-o.x)/l,r=t.center.y-(t.center.y-o.y)/u}else n=o.x,r=o.y;return this.beforeManipulation(),this.graph.transform.scale(a,s),this.centerPoint(n,r),this.afterManipulation(),this}},{key:"zoomToRect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=K["h"].create(e),r=this.graph;t.contentArea=n,null==t.viewportArea&&(t.viewportArea={x:r.options.x,y:r.options.y,width:this.$container.width(),height:this.$container.height()}),this.beforeManipulation(),r.transform.scaleContentToFitImpl(t,!1);var i=n.getCenter();return this.centerPoint(i.x,i.y),this.afterManipulation(),this}},{key:"zoomToFit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.zoomToRect(this.graph.getContentArea(e),e)}},{key:"transitionToPoint",value:function(e,t,n){var r,i,o=this;"object"===p(e)?(n=t,t=e.y,e=e.x):t=t,null==n&&(n={});var a=this.sx,s=Math.max(n.scale||a,1e-6),l=this.getClientSize(),u=new K["f"](e,t),c=this.clientToLocalPoint(l.width/2,l.height/2);if(a===s){var h=c.diff(u).scale(a,a).round();r="translate(".concat(h.x,"px,").concat(h.y,"px)")}else{var d=s/(a-s)*u.distance(c),f=c.clone().move(u,d),g=this.localToBackgroundPoint(f).round();r="scale(".concat(s/a,")"),i="".concat(g.x,"px ").concat(g.y,"px")}var v=n.onTransitionEnd;return this.$container.addClass(ti.transitionClassName),this.$content.off(ti.transitionEventName).on(ti.transitionEventName,(function(n){o.syncTransition(s,{x:e,y:t}),"function"===typeof v&&O["d"].call(v,o,n.originalEvent)})).css({transform:r,transformOrigin:i,transition:"transform",transitionDuration:n.duration||"1s",transitionDelay:n.delay,transitionTimingFunction:n.timing}),this}},{key:"syncTransition",value:function(e,t){return this.beforeManipulation(),this.graph.scale(e),this.removeTransition(),this.centerPoint(t.x,t.y),this.afterManipulation(),this}},{key:"removeTransition",value:function(){return this.$container.removeClass(ti.transitionClassName),this.$content.off(ti.transitionEventName).css({transform:"",transformOrigin:"",transition:"",transitionDuration:"",transitionDelay:"",transitionTimingFunction:""}),this}},{key:"transitionToRect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=K["h"].create(e),r=t.maxScale||1/0,i=t.minScale||Number.MIN_VALUE,o=t.scaleGrid||null,a=t.visibility||1,s=t.center?K["f"].create(t.center):n.getCenter(),l=this.getClientSize(),u=l.width*a,c=l.height*a,h=new K["h"](s.x-u/2,s.y-c/2,u,c).getMaxUniformScaleToFit(n,s);return h=Math.min(h,r),o&&(h=Math.floor(h/o)*o),h=Math.max(i,h),this.transitionToPoint(s,Object.assign({scale:h},t))}},{key:"startPanning",value:function(e){var t=this.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.trigger("pan:start",{e:t}),this.$(document.body).on({"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this)}),this.$(window).on("mouseup.panning",this.stopPanning.bind(this))}},{key:"pan",value:function(e){var t=this.normalizeEvent(e),n=t.clientX-this.clientX,r=t.clientY-this.clientY;this.container.scrollTop-=r,this.container.scrollLeft-=n,this.clientX=t.clientX,this.clientY=t.clientY,this.trigger("panning",{e:t})}},{key:"stopPanning",value:function(e){this.$(document.body).off(".panning"),this.$(window).off(".panning"),this.trigger("pan:stop",{e:e})}},{key:"clientToLocalPoint",value:function(e,t){var n="object"===p(e)?e.x:e,r="object"===p(e)?e.y:t,i=this.graph.matrix();return n+=this.container.scrollLeft-this.padding.left-i.e,r+=this.container.scrollTop-this.padding.top-i.f,new K["f"](n/i.a,r/i.d)}},{key:"localToBackgroundPoint",value:function(e,t){var n="object"===p(e)?K["f"].create(e):new K["f"](e,t),r=this.graph.matrix(),i=this.padding;return O["c"].transformPoint(n,r).translate(i.left,i.top)}},{key:"resize",value:function(e,t){var n=null!=e?e:this.container.clientWidth,r=null!=t?t:this.container.clientHeight;"number"===typeof n&&(n=Math.round(n)),"number"===typeof r&&(r=Math.round(r)),this.options.width=n,this.options.height=r,this.$container.css({width:n,height:r}),this.update()}},{key:"getClientSize",value:function(){return this.cachedClientSize?this.cachedClientSize:{width:this.container.clientWidth,height:this.container.clientHeight}}},{key:"autoScroll",value:function(e,t){var n=10,r=this.container,i=r.getBoundingClientRect(),o=0,a=0;return e<=i.left+n&&(o=-n),t<=i.top+n&&(a=-n),e>=i.right-n&&(o=n),t>=i.bottom-n&&(a=n),0!==o&&(r.scrollLeft+=o),0!==a&&(r.scrollTop+=a),{scrollerX:o,scrollerY:a}}},{key:"addPadding",value:function(e,t,n,r){var i=this.getPadding();this.padding={left:Math.round(i.left+(e||0)),top:Math.round(i.top+(n||0)),bottom:Math.round(i.bottom+(r||0)),right:Math.round(i.right+(t||0))},i=this.padding,this.$content.css({width:i.left+this.graph.options.width+i.right,height:i.top+this.graph.options.height+i.bottom});var o=this.graph.container;return o.style.left="".concat(this.padding.left,"px"),o.style.top="".concat(this.padding.top,"px"),this}},{key:"getPadding",value:function(){var e=this.options.padding;return"function"===typeof e?O["f"].normalizeSides(O["d"].call(e,this,this)):O["f"].normalizeSides(e)}},{key:"getVisibleArea",value:function(){var e=this.graph.matrix(),t=this.getClientSize(),n={x:this.container.scrollLeft||0,y:this.container.scrollTop||0,width:t.width,height:t.height},r=O["c"].transformRectangle(n,e.inverse());return r.x-=(this.padding.left||0)/this.sx,r.y-=(this.padding.top||0)/this.sy,r}},{key:"isCellVisible",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBBox(),r=this.getVisibleArea();return t.strict?r.containsRect(n):r.isIntersectWithRect(n)}},{key:"isPointVisible",value:function(e){return this.getVisibleArea().containsPoint(e)}},{key:"lock",value:function(){return this.$container.css("overflow","hidden"),this}},{key:"unlock",value:function(){return this.$container.css("overflow","scroll"),this}},{key:"onRemove",value:function(){this.stopListening()}},{key:"dispose",value:function(){this.$(this.graph.container).insertBefore(this.$container),this.remove()}}]),n}(tr["a"]);function oi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(n){var i=n.graph,o=i.view.normalizeEvent(t),a=i.snapToGrid(o.clientX,o.clientY);n.notify(e,Object.assign({e:o,view:n,node:n.cell,cell:n.cell,x:a.x,y:a.y},r))}}ni([tr["a"].dispose()],ii.prototype,"dispose",null),function(e){var t=function(e){u(n,e);var t=c(n);function n(e){var r;return f(this,n),r=t.call(this,e.graph),r.scroller=e,e.options.background&&r.draw(e.options.background),r}return g(n,[{key:"elem",get:function(){return this.scroller.background}},{key:"init",value:function(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}},{key:"updateBackgroundOptions",value:function(e){this.scroller.options.background=e}}]),n}(ei);e.Background=t}(ii||(ii={})),function(e){function t(t){var n=O["g"].merge({},e.defaultOptions,t);return null==n.pageWidth&&(n.pageWidth=t.graph.options.width),null==n.pageHeight&&(n.pageHeight=t.graph.options.height),n}e.containerClass="graph-scroller",e.panningClass="".concat(e.containerClass,"-panning"),e.pannableClass="".concat(e.containerClass,"-pannable"),e.pagedClass="".concat(e.containerClass,"-paged"),e.contentClass="".concat(e.containerClass,"-content"),e.backgroundClass="".concat(e.containerClass,"-background"),e.transitionClassName="transition-in-progress",e.transitionEventName="transitionend.graph-scroller-transition",e.defaultOptions={padding:function(){var e=this.getClientSize(),t=Math.max(this.options.minVisibleWidth||0,1)||1,n=Math.max(this.options.minVisibleHeight||0,1)||1,r=Math.max(e.width-t,0),i=Math.max(e.height-n,0);return{left:r,top:i,right:r,bottom:i}},minVisibleWidth:50,minVisibleHeight:50,pageVisible:!1,pageBreak:!1,autoResize:!0},e.getOptions=t}(ti||(ti={}));var ai,si=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},li=function(e){u(n,e);var t=c(n);function n(e){var r;return f(this,n),r=t.call(this),r.options=O["g"].merge({},ai.defaultOptions,e),r.options.model&&(r.options.collection=r.options.model.collection),r.options.collection?r.collection=r.options.collection:(r.collection=new cr([],{comparator:ai.depthComparator}),r.options.collection=r.collection),r.boxCount=0,r.createContainer(),r.initHandles(),r.startListening(),r}return g(n,[{key:"graph",get:function(){return this.options.graph}},{key:"boxClassName",get:function(){return this.prefixClassName(ai.classNames.box)}},{key:"$boxes",get:function(){return this.$container.children(".".concat(this.boxClassName))}},{key:"handleOptions",get:function(){return this.options}},{key:"startListening",value:function(){var e,t=this.graph,n=this.collection;this.delegateEvents((e={},s(e,"mousedown .".concat(this.boxClassName),"onSelectionBoxMouseDown"),s(e,"touchstart .".concat(this.boxClassName),"onSelectionBoxMouseDown"),e),!0),t.on("scale",this.onGraphTransformed,this),t.on("translate",this.onGraphTransformed,this),t.model.on("updated",this.onModelUpdated,this),n.on("added",this.onCellAdded,this),n.on("removed",this.onCellRemoved,this),n.on("reseted",this.onReseted,this),n.on("updated",this.onCollectionUpdated,this),n.on("node:change:position",this.onNodePositionChanged,this),n.on("cell:changed",this.onCellChanged,this)}},{key:"stopListening",value:function(){var e=this.graph,t=this.collection;this.undelegateEvents(),e.off("scale",this.onGraphTransformed,this),e.off("translate",this.onGraphTransformed,this),e.model.off("updated",this.onModelUpdated,this),t.off("added",this.onCellAdded,this),t.off("removed",this.onCellRemoved,this),t.off("reseted",this.onReseted,this),t.off("updated",this.onCollectionUpdated,this),t.off("node:change:position",this.onNodePositionChanged,this),t.off("cell:changed",this.onCellChanged,this)}},{key:"onRemove",value:function(){this.stopListening()}},{key:"onGraphTransformed",value:function(){this.updateSelectionBoxes({async:!1})}},{key:"onCellChanged",value:function(){this.updateSelectionBoxes()}},{key:"onNodePositionChanged",value:function(e){var t=e.node,n=e.options,r=this.options,i=r.showNodeSelectionBox,o=r.pointerEvents,a=n.ui,s=n.selection,l=!this.translating;if(l=l&&(!0!==i||"none"===o),l=l&&a&&!s,l){this.translating=!0;var u=t.position(),c=t.previous("position"),h=u.x-c.x,d=u.y-c.y;0===h&&0===d||this.translateSelectedNodes(h,d,t,n),this.translating=!1}}},{key:"onModelUpdated",value:function(e){var t=e.removed;t&&t.length&&this.unselect(t)}},{key:"isEmpty",value:function(){return this.length<=0}},{key:"isSelected",value:function(e){return this.collection.has(e)}},{key:"length",get:function(){return this.collection.length}},{key:"cells",get:function(){return this.collection.toArray()}},{key:"select",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.dryrun=!0;var n=this.filter(Array.isArray(e)?e:[e]);return this.collection.add(n,t),this}},{key:"unselect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.dryrun=!0,this.collection.remove(Array.isArray(e)?e:[e],t),this}},{key:"reset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){if(t.batch){var n=this.filter(Array.isArray(e)?e:[e]);return this.collection.reset(n,Object.assign(Object.assign({},t),{ui:!0})),this}var r=this.cells,i=this.filter(Array.isArray(e)?e:[e]),o={},a={};r.forEach((function(e){return o[e.id]=e})),i.forEach((function(e){return a[e.id]=e}));var s=[],l=[];return i.forEach((function(e){o[e.id]||s.push(e)})),r.forEach((function(e){a[e.id]||l.push(e)})),l.length&&this.unselect(l,Object.assign(Object.assign({},t),{ui:!0})),s.length&&this.select(s,Object.assign(Object.assign({},t),{ui:!0})),0===l.length&&0===s.length&&this.updateContainer(),this}return this.clean(t)}},{key:"clean",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.length&&(!1===e.batch?this.unselect(this.cells,e):this.collection.reset([],Object.assign(Object.assign({},e),{ui:!0}))),this}},{key:"setFilter",value:function(e){this.options.filter=e}},{key:"setContent",value:function(e){this.options.content=e}},{key:"startSelecting",value:function(e){var t,n;e=this.normalizeEvent(e),this.clean();var r=this.graph.container;if(null!=e.offsetX&&null!=e.offsetY&&r.contains(e.target))t=e.offsetX,n=e.offsetY;else{var i=this.$(r).offset(),o=r.scrollLeft,a=r.scrollTop;t=e.clientX-i.left+window.pageXOffset+o,n=e.clientY-i.top+window.pageYOffset+a}this.$container.css({top:n,left:t,width:1,height:1}),this.setEventData(e,{action:"selecting",clientX:e.clientX,clientY:e.clientY,offsetX:t,offsetY:n,scrollerX:0,scrollerY:0}),this.delegateDocumentEvents(ai.documentEvents,e.data)}},{key:"filter",value:function(e){var t=this,n=this.options.filter;return Array.isArray(n)?e.filter((function(e){return!n.includes(e)&&!n.includes(e.shape)})):"function"===typeof n?e.filter((function(e){return O["d"].call(n,t.graph,e)})):e}},{key:"stopSelecting",value:function(e){var t=this.graph,n=this.getEventData(e),r=n.action;switch(r){case"selecting":var i=this.$container.width(),o=this.$container.height(),a=this.$container.offset(),s=t.pageToLocal(a.left,a.top),l=t.transform.getScale();i/=l.sx,o/=l.sy;var u=new K["h"](s.x,s.y,i,o),c=this.getCellViewsInArea(u).map((function(e){return e.cell}));this.reset(c,{batch:!0}),this.hideRubberband();break;case"translating":var h=t.snapToGrid(e.clientX,e.clientY);if(!this.options.following){var d=n;this.updateSelectedNodesPosition({dx:d.clientX-d.originX,dy:d.clientY-d.originY})}this.graph.model.stopBatch("move-selection"),this.notifyBoxEvent("box:mouseup",e,h.x,h.y);break;default:this.clean();break}}},{key:"onMouseUp",value:function(e){var t=this.getEventData(e).action;t&&(this.stopSelecting(e),this.undelegateDocumentEvents())}},{key:"onSelectionBoxMouseDown",value:function(e){this.options.following||e.stopPropagation();var t=this.normalizeEvent(e);this.options.movable&&this.startTranslating(t);var n=this.getCellViewFromElem(t.target);this.setEventData(t,{activeView:n});var r=this.graph.snapToGrid(t.clientX,t.clientY);this.notifyBoxEvent("box:mousedown",t,r.x,r.y),this.delegateDocumentEvents(ai.documentEvents,t.data)}},{key:"startTranslating",value:function(e){this.graph.model.startBatch("move-selection");var t=this.graph.snapToGrid(e.clientX,e.clientY);this.setEventData(e,{action:"translating",clientX:t.x,clientY:t.y,originX:t.x,originY:t.y})}},{key:"getSelectionOffset",value:function(e,t){var n=e.x-t.clientX,r=e.y-t.clientY,i=this.graph.hook.getRestrictArea();if(i){var o=this.collection.toArray(),a=Gn.getCellsBBox(o,{deep:!0})||K["h"].create(),s=i.x-a.x,l=i.y-a.y,u=i.x+i.width-(a.x+a.width),c=i.y+i.height-(a.y+a.height);if(n<s&&(n=s),r<l&&(r=l),u<n&&(n=u),c<r&&(r=c),!this.options.following){var h=e.x-t.originX,d=e.y-t.originY;n=h<=s||h>=u?0:n,r=d<=l||d>=c?0:r}}return{dx:n,dy:r}}},{key:"updateSelectedNodesPosition",value:function(e){var t=e.dx,n=e.dy;if(t||n)if(this.translateSelectedNodes(t,n),this.boxesUpdated)this.collection.length>1&&this.updateSelectionBoxes();else{var r=this.graph.transform.getScale();this.$boxes.add(this.$selectionContainer).css({left:"+=".concat(t*r.sx),top:"+=".concat(n*r.sy)})}}},{key:"autoScrollGraph",value:function(e,t){var n=this.graph.scroller.widget;return n?n.autoScroll(e,t):{scrollerX:0,scrollerY:0}}},{key:"adjustSelection",value:function(e){var t=this.normalizeEvent(e),n=this.getEventData(t),r=n.action;switch(r){case"selecting":var i=n;!0!==i.moving&&(this.$container.appendTo(this.graph.container),this.showRubberband(),i.moving=!0);var o=this.autoScrollGraph(t.clientX,t.clientY),a=o.scrollerX,s=o.scrollerY;i.scrollerX+=a,i.scrollerY+=s;var l=t.clientX-i.clientX+i.scrollerX,u=t.clientY-i.clientY+i.scrollerY,c=parseInt(this.$container.css("left"),10),h=parseInt(this.$container.css("top"),10);this.$container.css({left:l<0?i.offsetX+l:c,top:u<0?i.offsetY+u:h,width:Math.abs(l),height:Math.abs(u)});break;case"translating":var d=this.graph.snapToGrid(t.clientX,t.clientY),f=n,g=this.getSelectionOffset(d,f);this.options.following?this.updateSelectedNodesPosition(g):this.updateContainerPosition(g),g.dx&&(f.clientX=d.x),g.dy&&(f.clientY=d.y),this.notifyBoxEvent("box:mousemove",e,d.x,d.y);break;default:break}this.boxesUpdated=!1}},{key:"translateSelectedNodes",value:function(e,t,n,r){var i=this,o={},a=[];if(n&&(o[n.id]=!0),this.collection.toArray().forEach((function(e){e.getDescendants({deep:!0}).forEach((function(e){o[e.id]=!0}))})),r&&r.translateBy){var s=this.graph.getCellById(r.translateBy);s&&(o[s.id]=!0,s.getDescendants({deep:!0}).forEach((function(e){o[e.id]=!0})),a.push(s))}this.collection.toArray().forEach((function(n){if(!o[n.id]){var s=Object.assign(Object.assign({},r),{selection:i.cid,exclude:a});n.translate(e,t,s),i.graph.model.getConnectedEdges(n).forEach((function(n){o[n.id]||(n.translate(e,t,s),o[n.id]=!0)}))}}))}},{key:"getCellViewsInArea",value:function(e){var t=this.graph,n={strict:this.options.strict},r=[];return this.options.rubberNode&&(r=this.options.useCellGeometry?r.concat(t.model.getNodesInArea(e,n).map((function(e){return t.renderer.findViewByCell(e)})).filter((function(e){return null!=e}))):r.concat(t.renderer.findViewsInArea(e,n))),this.options.rubberEdge&&(r=this.options.useCellGeometry?r.concat(t.model.getEdgesInArea(e,n).map((function(e){return t.renderer.findViewByCell(e)})).filter((function(e){return null!=e}))):r.concat(t.renderer.findEdgeViewsInArea(e,n))),r}},{key:"notifyBoxEvent",value:function(e,t,n,r){var i=this.getEventData(t),o=i.activeView;this.trigger(e,{e:t,view:o,x:n,y:r,cell:o.cell})}},{key:"getSelectedClassName",value:function(e){return this.prefixClassName("".concat(e.isNode()?"node":"edge","-selected"))}},{key:"addCellSelectedClassName",value:function(e){var t=this.graph.renderer.findViewByCell(e);t&&t.addClass(this.getSelectedClassName(e))}},{key:"removeCellUnSelectedClassName",value:function(e){var t=this.graph.renderer.findViewByCell(e);t&&t.removeClass(this.getSelectedClassName(e))}},{key:"destroySelectionBox",value:function(e){this.removeCellUnSelectedClassName(e),this.canShowSelectionBox(e)&&(this.$container.find('[data-cell-id="'.concat(e.id,'"]')).remove(),0===this.$boxes.length&&this.hide(),this.boxCount=Math.max(0,this.boxCount-1))}},{key:"destroyAllSelectionBoxes",value:function(e){var t=this;e.forEach((function(e){return t.removeCellUnSelectedClassName(e)})),this.hide(),this.$boxes.remove(),this.boxCount=0}},{key:"hide",value:function(){this.$container.removeClass(this.prefixClassName(ai.classNames.rubberband)).removeClass(this.prefixClassName(ai.classNames.selected))}},{key:"showRubberband",value:function(){this.$container.addClass(this.prefixClassName(ai.classNames.rubberband))}},{key:"hideRubberband",value:function(){this.$container.removeClass(this.prefixClassName(ai.classNames.rubberband))}},{key:"showSelected",value:function(){this.$container.removeAttr("style").addClass(this.prefixClassName(ai.classNames.selected))}},{key:"createContainer",value:function(){this.container=document.createElement("div"),this.$container=this.$(this.container),this.$container.addClass(this.prefixClassName(ai.classNames.root)),this.options.className&&this.$container.addClass(this.options.className),this.$selectionContainer=this.$("<div/>").addClass(this.prefixClassName(ai.classNames.inner)),this.$selectionContent=this.$("<div/>").addClass(this.prefixClassName(ai.classNames.content)),this.$selectionContainer.append(this.$selectionContent),this.$selectionContainer.attr("data-selection-length",this.collection.length),this.$container.prepend(this.$selectionContainer),this.$handleContainer=this.$selectionContainer}},{key:"updateContainerPosition",value:function(e){(e.dx||e.dy)&&this.$selectionContainer.css({left:"+=".concat(e.dx),top:"+=".concat(e.dy)})}},{key:"updateContainer",value:function(){var e=this,t={x:1/0,y:1/0},n={x:0,y:0},r=this.collection.toArray().filter((function(t){return e.canShowSelectionBox(t)}));r.forEach((function(r){var i=e.graph.renderer.findViewByCell(r);if(i){var o=i.getBBox({useCellGeometry:e.options.useCellGeometry});t.x=Math.min(t.x,o.x),t.y=Math.min(t.y,o.y),n.x=Math.max(n.x,o.x+o.width),n.y=Math.max(n.y,o.y+o.height)}})),this.$selectionContainer.css({position:"absolute",pointerEvents:"none",left:t.x,top:t.y,width:n.x-t.x,height:n.y-t.y}).attr("data-selection-length",this.collection.length);var i=this.options.content;if(i)if("function"===typeof i){var o=O["d"].call(i,this.graph,this,this.$selectionContent[0]);o&&this.$selectionContent.html(o)}else this.$selectionContent.html(i);this.collection.length>0&&!this.container.parentNode?this.$container.appendTo(this.graph.container):this.collection.length<=0&&this.container.parentNode&&this.container.parentNode.removeChild(this.container)}},{key:"canShowSelectionBox",value:function(e){return e.isNode()&&!0===this.options.showNodeSelectionBox||e.isEdge()&&!0===this.options.showEdgeSelectionBox}},{key:"createSelectionBox",value:function(e){if(this.addCellSelectedClassName(e),this.canShowSelectionBox(e)){var t=this.graph.renderer.findViewByCell(e);if(t){var n=t.getBBox({useCellGeometry:this.options.useCellGeometry}),r=this.boxClassName;this.$("<div/>").addClass(r).addClass("".concat(r,"-").concat(e.isNode()?"node":"edge")).attr("data-cell-id",e.id).css({position:"absolute",left:n.x,top:n.y,width:n.width,height:n.height,pointerEvents:this.options.pointerEvents||"auto"}).appendTo(this.container),this.showSelected(),this.boxCount+=1}}}},{key:"updateSelectionBoxes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.collection.length>0&&(this.boxesUpdated=!0,this.graph.renderer.requestViewUpdate(this,1,2,e))}},{key:"confirmUpdate",value:function(){var e=this;return this.boxCount&&(this.hide(),this.$boxes.each((function(t,n){var r=e.$(n).remove().attr("data-cell-id"),i=e.collection.get(r);i&&e.createSelectionBox(i)})),this.updateContainer()),0}},{key:"getCellViewFromElem",value:function(e){var t=e.getAttribute("data-cell-id");if(t){var n=this.collection.get(t);if(n)return this.graph.renderer.findViewByCell(n)}return null}},{key:"onCellRemoved",value:function(e){var t=e.cell;this.destroySelectionBox(t),this.updateContainer()}},{key:"onReseted",value:function(e){var t=this,n=e.previous,r=e.current;this.destroyAllSelectionBoxes(n),r.forEach((function(e){t.listenCellRemoveEvent(e),t.createSelectionBox(e)})),this.updateContainer()}},{key:"onCellAdded",value:function(e){var t=e.cell;this.listenCellRemoveEvent(t),this.createSelectionBox(t),this.updateContainer()}},{key:"listenCellRemoveEvent",value:function(e){e.off("removed",this.onCellRemoved,this),e.on("removed",this.onCellRemoved,this)}},{key:"onCollectionUpdated",value:function(e){var t=this,n=e.added,r=e.removed,i=e.options;n.forEach((function(e){t.trigger("cell:selected",{cell:e,options:i}),t.graph.trigger("cell:selected",{cell:e,options:i}),e.isNode()?(t.trigger("node:selected",{cell:e,options:i,node:e}),t.graph.trigger("node:selected",{cell:e,options:i,node:e})):e.isEdge()&&(t.trigger("edge:selected",{cell:e,options:i,edge:e}),t.graph.trigger("edge:selected",{cell:e,options:i,edge:e}))})),r.forEach((function(e){t.trigger("cell:unselected",{cell:e,options:i}),t.graph.trigger("cell:unselected",{cell:e,options:i}),e.isNode()?(t.trigger("node:unselected",{cell:e,options:i,node:e}),t.graph.trigger("node:unselected",{cell:e,options:i,node:e})):e.isEdge()&&(t.trigger("edge:unselected",{cell:e,options:i,edge:e}),t.graph.trigger("edge:unselected",{cell:e,options:i,edge:e}))}));var o={added:n,removed:r,options:i,selected:this.cells};this.trigger("selection:changed",o),this.graph.trigger("selection:changed",o)}},{key:"deleteSelectedCells",value:function(){var e=this.collection.toArray();this.clean(),this.graph.model.removeCells(e,{selection:this.cid})}},{key:"startRotate",value:function(e){var t=e.e,n=this.collection.toArray(),r=Gn.getCellsBBox(n).getCenter(),i=this.graph.snapToGrid(t.clientX,t.clientY),o=n.reduce((function(e,t){return e[t.id]=K["a"].normalize(t.getAngle()),e}),{});this.setEventData(t,{center:r,angles:o,start:i.theta(r)})}},{key:"doRotate",value:function(e){var t=this,n=e.e,r=this.getEventData(n),i=this.graph.options.rotating.grid,o="function"===typeof i?O["d"].call(i,this.graph,null):i,a=this.graph.snapToGrid(n.clientX,n.clientY),s=r.start-a.theta(r.center);r.rotated||(r.rotated=!0),Math.abs(s)>.001&&(this.collection.toArray().forEach((function(e){var n=ne["b"].snapToGrid(r.angles[e.id]+s,o||15);e.rotate(n,{absolute:!0,center:r.center,selection:t.cid})})),this.updateSelectionBoxes())}},{key:"stopRotate",value:function(e){var t=this,n=e.e,r=this.getEventData(n);r.rotated&&(r.rotated=!1,this.collection.toArray().forEach((function(e){oi("node:rotated",n,t.graph.findViewByCell(e))})))}},{key:"startResize",value:function(e){var t=e.e,n=this.graph.getGridSize(),r=this.collection.toArray(),i=Gn.getCellsBBox(r),o=r.map((function(e){return e.getBBox()})),a=o.reduce((function(e,t){return t.width<e?t.width:e}),1/0),s=o.reduce((function(e,t){return t.height<e?t.height:e}),1/0);this.setEventData(t,{bbox:i,cells:this.graph.model.getSubGraph(r),minWidth:n*i.width/a,minHeight:n*i.height/s})}},{key:"doResize",value:function(e){var t=e.e,n=e.dx,r=e.dy,i=this.eventData(t),o=i.bbox,a=o.width,s=o.height,l=Math.max(a+n,i.minWidth),u=Math.max(s+r,i.minHeight);i.resized||(i.resized=!0),(Math.abs(a-l)>.001||Math.abs(s-u)>.001)&&(this.graph.model.resizeCells(l,u,i.cells,{selection:this.cid}),o.width=l,o.height=u,this.updateSelectionBoxes())}},{key:"stopResize",value:function(e){var t=this,n=e.e,r=this.eventData(n);r.resized&&(r.resized=!1,this.collection.toArray().forEach((function(e){oi("node:resized",n,t.graph.findViewByCell(e))})))}},{key:"dispose",value:function(){this.clean(),this.remove()}}]),n}(tr["a"]);si([tr["a"].dispose()],li.prototype,"dispose",null),O["g"].applyMixins(li,zr),function(e){var t="widget-selection";function n(e){return e.getAncestors().length}e.classNames={root:t,inner:"".concat(t,"-inner"),box:"".concat(t,"-box"),content:"".concat(t,"-content"),rubberband:"".concat(t,"-rubberband"),selected:"".concat(t,"-selected")},e.documentEvents={mousemove:"adjustSelection",touchmove:"adjustSelection",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},e.defaultOptions={movable:!0,following:!0,strict:!1,useCellGeometry:!1,content:function(e){return O["k"].template('<%= length %> node<%= length > 1 ? "s":"" %> selected.')({length:e.length})},handles:[{name:"remove",position:"nw",events:{mousedown:"deleteSelectedCells"}},{name:"rotate",position:"sw",events:{mousedown:"startRotate",mousemove:"doRotate",mouseup:"stopRotate"}},{name:"resize",position:"se",events:{mousedown:"startResize",mousemove:"doResize",mouseup:"stopResize"}}]},e.depthComparator=n}(ai||(ai={}));var ui,ci=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"node",get:function(){return this.cell}},{key:"containerClassName",get:function(){return this.prefixClassName("widget-transform")}},{key:"resizeClassName",get:function(){return"".concat(this.containerClassName,"-resize")}},{key:"rotateClassName",get:function(){return"".concat(this.containerClassName,"-rotate")}},{key:"init",value:function(e){this.options=Object.assign(Object.assign({},ui.defaultOptions),e),this.render(),this.startListening()}},{key:"startListening",value:function(){var e;this.delegateEvents((e={},s(e,"mousedown .".concat(this.resizeClassName),"startResizing"),s(e,"touchstart .".concat(this.resizeClassName),"startResizing"),s(e,"mousedown .".concat(this.rotateClassName),"startRotating"),s(e,"touchstart .".concat(this.rotateClassName),"startRotating"),e)),this.model.on("*",this.update,this),this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this),this.node.on("removed",this.remove,this),this.model.on("reseted",this.remove,this),this.view.on("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.on("cell:knob:mouseup",this.onKnobMouseUp,this),i(o(n.prototype),"startListening",this).call(this)}},{key:"stopListening",value:function(){this.undelegateEvents(),this.model.off("*",this.update,this),this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this),this.node.off("removed",this.remove,this),this.model.off("reseted",this.remove,this),this.view.off("cell:knob:mousedown",this.onKnobMouseDown,this),this.view.off("cell:knob:mouseup",this.onKnobMouseUp,this),i(o(n.prototype),"stopListening",this).call(this)}},{key:"renderHandles",value:function(){var e=this;this.container=document.createElement("div"),this.$container=this.$(this.container);var t=this.$("<div/>").prop("draggable",!1),n=t.clone().addClass(this.rotateClassName),r=ui.POSITIONS.map((function(n){return t.clone().addClass(e.resizeClassName).attr("data-position",n)}));this.empty(),this.$container.append(r,n)}},{key:"render",value:function(){return this.renderHandles(),this.view.addClass(ui.NODE_CLS),this.$container.addClass(this.containerClassName).toggleClass("no-orth-resize",this.options.preserveAspectRatio||!this.options.orthogonalResizing).toggleClass("no-resize",!this.options.resizable).toggleClass("no-rotate",!this.options.rotatable),this.options.className&&this.$container.addClass(this.options.className),this.graph.container.appendChild(this.container),this.update()}},{key:"update",value:function(){var e=this.graph.matrix(),t=this.node.getBBox();t.x*=e.a,t.x+=e.e,t.y*=e.d,t.y+=e.f,t.width*=e.a,t.height*=e.d;var n=K["a"].normalize(this.node.getAngle()),r=0!==n?"rotate(".concat(n,"deg)"):"";return this.$container.css({transform:r,width:t.width,height:t.height,left:t.x,top:t.y}),this.updateResizerDirections(),this}},{key:"remove",value:function(){return this.view.removeClass(ui.NODE_CLS),i(o(n.prototype),"remove",this).call(this)}},{key:"onKnobMouseDown",value:function(){this.startHandle()}},{key:"onKnobMouseUp",value:function(){this.stopHandle()}},{key:"updateResizerDirections",value:function(){var e=this,t=K["a"].normalize(this.node.getAngle()),n=Math.floor(t*(ui.DIRECTIONS.length/360));if(n!==this.prevShift){var r=ui.DIRECTIONS.slice(n).concat(ui.DIRECTIONS.slice(0,n)),i=function(t){return"".concat(e.containerClassName,"-cursor-").concat(t)};this.$container.find(".".concat(this.resizeClassName)).removeClass(ui.DIRECTIONS.map((function(e){return i(e)})).join(" ")).each((function(t,n){e.$(n).addClass(i(r[t]))})),this.prevShift=n}}},{key:"getTrueDirection",value:function(e){var t=K["a"].normalize(this.node.getAngle()),n=ui.POSITIONS.indexOf(e);return n+=Math.floor(t*(ui.POSITIONS.length/360)),n%=ui.POSITIONS.length,ui.POSITIONS[n]}},{key:"toValidResizeDirection",value:function(e){return{top:"top-left",bottom:"bottom-right",left:"bottom-left",right:"top-right"}[e]||e}},{key:"startResizing",value:function(e){e.stopPropagation(),this.model.startBatch("resize",{cid:this.cid});var t=this.$(e.target).attr("data-position"),n=this.graph.findViewByCell(this.node);this.prepareResizing(e,t),this.startAction(e),oi("node:resize:mousedown",e,n)}},{key:"prepareResizing",value:function(e,t){var n=this.getTrueDirection(t),r=0,i=0;t.split("-").forEach((function(e){r={left:-1,right:1}[e]||r,i={top:-1,bottom:1}[e]||i}));var o=this.toValidResizeDirection(t),a={"top-right":"bottomLeft","top-left":"bottomRight","bottom-left":"topRight","bottom-right":"topLeft"}[o],s=K["a"].normalize(this.node.getAngle());this.setEventData(e,{selector:a,direction:o,trueDirection:n,relativeDirection:t,angle:s,resizeX:r,resizeY:i,action:"resizing"})}},{key:"startRotating",value:function(e){e.stopPropagation(),this.model.startBatch("rotate",{cid:this.cid});var t=this.graph.findViewByCell(this.node),n=this.node.getBBox().getCenter(),r=this.normalizeEvent(e),i=this.graph.snapToGrid(r.clientX,r.clientY);this.setEventData(e,{center:n,action:"rotating",angle:K["a"].normalize(this.node.getAngle()),start:K["f"].create(i).theta(n)}),this.startAction(e),oi("node:rotate:mousedown",e,t)}},{key:"onMouseMove",value:function(e){var t=this.graph.findViewByCell(this.node),n=this.getEventData(e);if(n.action){var r=this.normalizeEvent(e),i=r.clientX,o=r.clientY,a=this.graph.scroller.widget,s=this.options.restrictedResizing;if(!0===s||"number"===typeof s){var l=!0===s?0:s,u=a?Math.max(l,8):l,c=this.graph.container.getBoundingClientRect();i=O["f"].clamp(i,c.left+u,c.right-u),o=O["f"].clamp(o,c.top+u,c.bottom-u)}else this.options.autoScrollOnResizing&&a&&a.autoScroll(i,o);var h=this.graph.snapToGrid(i,o),d=this.graph.getGridSize(),f=this.node,g=this.options;if("resizing"===n.action){n=n,n.resized||(t&&(t.addClass("node-resizing"),oi("node:resize",e,t)),n.resized=!0);var p=f.getBBox(),v=K["f"].create(h).rotate(n.angle,p.getCenter()).diff(p[n.selector]),y=n.resizeX?v.x*n.resizeX:p.width,m=n.resizeY?v.y*n.resizeY:p.height,b=y,x=m;if(y=ne["b"].snapToGrid(y,d),m=ne["b"].snapToGrid(m,d),y=Math.max(y,g.minWidth||d),m=Math.max(m,g.minHeight||d),y=Math.min(y,g.maxWidth||1/0),m=Math.min(m,g.maxHeight||1/0),g.preserveAspectRatio){var w=p.width*m/p.height,C=p.height*y/p.width;y<w?m=C:y=w}var k=n.relativeDirection;if(g.allowReverse&&(b<=-y||x<=-m)){var E;"left"===k?b<=-y&&(E="right"):"right"===k?b<=-y&&(E="left"):"top"===k?x<=-m&&(E="bottom"):"bottom"===k?x<=-m&&(E="top"):"top-left"===k?b<=-y&&x<=-m?E="bottom-right":b<=-y?E="top-right":x<=-m&&(E="bottom-left"):"top-right"===k?b<=-y&&x<=-m?E="bottom-left":b<=-y?E="top-left":x<=-m&&(E="bottom-right"):"bottom-left"===k?b<=-y&&x<=-m?E="top-right":b<=-y?E="bottom-right":x<=-m&&(E="top-left"):"bottom-right"===k&&(b<=-y&&x<=-m?E="top-left":b<=-y?E="bottom-left":x<=-m&&(E="top-right"));var S=E;this.stopHandle();var A=this.$container.find(".".concat(this.resizeClassName,'[data-position="').concat(S,'"]'));this.startHandle(A[0]),this.prepareResizing(e,S),this.onMouseMove(e)}if(p.width!==y||p.height!==m){var M={ui:!0,direction:n.direction,relativeDirection:n.relativeDirection,trueDirection:n.trueDirection,minWidth:g.minWidth,minHeight:g.minHeight,maxWidth:g.maxWidth,maxHeight:g.maxHeight,preserveAspectRatio:!0===g.preserveAspectRatio};f.resize(y,m,M),oi("node:resizing",e,t)}oi("node:resize:mousemove",e,t)}else if("rotating"===n.action){n=n,n.rotated||(t&&(t.addClass("node-rotating"),oi("node:rotate",e,t)),n.rotated=!0);var P=f.getAngle(),T=n.start-K["f"].create(h).theta(n.center),D=n.angle+T;g.rotateGrid&&(D=ne["b"].snapToGrid(D,g.rotateGrid)),P!==D&&(f.rotate(D,{absolute:!0}),oi("node:rotating",e,t)),oi("node:rotate:mousemove",e,t)}}}},{key:"onMouseUp",value:function(e){var t=this.graph.findViewByCell(this.node),n=this.getEventData(e);n.action&&(this.stopAction(e),this.model.stopBatch("resizing"===n.action?"resize":"rotate",{cid:this.cid}),"resizing"===n.action?oi("node:resize:mouseup",e,t):"rotating"===n.action&&oi("node:rotate:mouseup",e,t))}},{key:"startHandle",value:function(e){if(this.handle=e||null,this.$container.addClass("".concat(this.containerClassName,"-active")),e){this.$(e).addClass("".concat(this.containerClassName,"-active-handle"));var t=e.getAttribute("data-position");if(t){var n=ui.DIRECTIONS[ui.POSITIONS.indexOf(t)];this.$container.addClass("".concat(this.containerClassName,"-cursor-").concat(n))}}}},{key:"stopHandle",value:function(){if(this.$container.removeClass("".concat(this.containerClassName,"-active")),this.handle){this.$(this.handle).removeClass("".concat(this.containerClassName,"-active-handle"));var e=this.handle.getAttribute("data-position");if(e){var t=ui.DIRECTIONS[ui.POSITIONS.indexOf(e)];this.$container.removeClass("".concat(this.containerClassName,"-cursor-").concat(t))}this.handle=null}}},{key:"startAction",value:function(e){this.startHandle(e.target),this.graph.view.undelegateEvents(),this.delegateDocumentEvents(ui.documentEvents,e.data)}},{key:"stopAction",value:function(e){this.stopHandle(),this.undelegateDocumentEvents(),this.graph.view.delegateEvents();var t=this.graph.findViewByCell(this.node),n=this.getEventData(e);t&&(t.removeClass("node-".concat(n.action)),"resizing"===n.action&&n.resized?oi("node:resized",e,t):"rotating"===n.action&&n.rotated&&oi("node:rotated",e,t))}}]),n}(_r);(function(e){e.NODE_CLS="has-widget-transform",e.DIRECTIONS=["nw","n","ne","e","se","s","sw","w"],e.POSITIONS=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],e.documentEvents={mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp"},e.defaultOptions={minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,rotateGrid:15,rotatable:!0,preserveAspectRatio:!1,orthogonalResizing:!0,restrictedResizing:!1,autoScrollOnResizing:!0,allowReverse:!0}})(ui||(ui={}));var hi,di=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};(function(e){function t(e,t,n){var r={};return Object.keys(n||{}).forEach((function(i){var o=n[i];r[i]="function"===typeof o?o.call(e,t):o})),r}e.parseOptionGroup=t})(hi||(hi={})),function(e){function t(t){var n=t.grid,r=(t.panning,t.selecting,t.embedding,t.snapline,t.resizing,t.rotating,t.knob,t.clipboard,t.history,t.scroller,t.minimap,t.keyboard,t.mousewheel,di(t,["grid","panning","selecting","embedding","snapline","resizing","rotating","knob","clipboard","history","scroller","minimap","keyboard","mousewheel"])),i=t.container;if(null==i)throw new Error("Ensure the container of the graph is specified and valid");null==r.width&&(r.width=i.clientWidth),null==r.height&&(r.height=i.clientHeight);var o=O["g"].merge({},e.defaults,r),a={size:10,visible:!1};o.grid="number"===typeof n?{size:n,visible:!1}:"boolean"===typeof n?Object.assign(Object.assign({},a),{visible:n}):Object.assign(Object.assign({},a),n);var s=["panning","selecting","embedding","snapline","resizing","rotating","knob","clipboard","history","scroller","minimap","keyboard","mousewheel"];return s.forEach((function(e){var n=t[e];"boolean"===typeof n?o[e].enabled=n:o[e]=Object.assign(Object.assign({},o[e]),n)})),o.background&&o.scroller.enabled&&null==o.scroller.background&&(o.scroller.background=o.background,delete o.background),o}e.get=t}(hi||(hi={})),function(e){e.defaults={x:0,y:0,grid:{size:10,visible:!1},scaling:{min:.01,max:16},background:!1,highlighting:{default:{name:"stroke",args:{padding:3}},nodeAvailable:{name:"className",args:{className:ne["b"].prefix("available-node")}},magnetAvailable:{name:"className",args:{className:ne["b"].prefix("available-magnet")}}},connecting:{snap:!1,multi:!0,dangling:!0,allowLoop:!0,allowNode:!0,allowEdge:!1,allowPort:!0,highlight:!1,anchor:"center",edgeAnchor:"ratio",connectionPoint:"boundary",strategy:null,router:"normal",connector:"normal",validateConnection:function(e){var t=e.type,n=e.sourceView,r=e.targetView,i="target"===t?r:n;return null!=i},createEdge:function(){return new Cr}},transforming:{clearAll:!0,clearOnBlankMouseDown:!0},resizing:{enabled:!1,minWidth:0,minHeight:0,maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,orthogonal:!0,restricted:!1,autoScroll:!0,preserveAspectRatio:!1,allowReverse:!0},rotating:{enabled:!1,grid:15},translating:{restrict:!1},knob:{enabled:!1,clearAll:!0,clearOnBlankMouseDown:!0},embedding:{enabled:!1,findParent:"bbox",frontOnly:!0,validate:function(){return!0}},selecting:{enabled:!1,rubberband:!1,rubberNode:!0,rubberEdge:!1,pointerEvents:"auto",multiple:!0,movable:!0,strict:!1,useCellGeometry:!1,selectCellOnMoved:!1,selectNodeOnMoved:!1,selectEdgeOnMoved:!1,content:null,handles:null},panning:{enabled:!1,eventTypes:["leftMouseDown"]},snapline:{enabled:!1},clipboard:{enabled:!1},history:{enabled:!1},scroller:{enabled:!1},keyboard:{enabled:!1},mousewheel:{enabled:!1,factor:1.2,zoomAtMousePosition:!0},async:!1,frozen:!1,sorting:"exact",moveThreshold:0,clickThreshold:0,magnetThreshold:0,preventDefaultDblClick:!0,preventDefaultMouseDown:!1,preventDefaultContextMenu:!0,preventDefaultBlankAction:!0,interacting:{edgeLabelMovable:!1},guard:function(){return!1}}}(hi||(hi={}));var fi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},gi=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"cid",get:function(){return this.graph.view.cid}},{key:"svg",get:function(){return this.view.svg}},{key:"defs",get:function(){return this.view.defs}},{key:"isDefined",value:function(e){return null!=this.svg.getElementById(e)}},{key:"filter",value:function(e){var t=e.id,n=e.name;if(t||(t="filter-".concat(n,"-").concat(this.cid,"-").concat(O["k"].hashcode(JSON.stringify(e)))),!this.isDefined(t)){var r=A.registry.get(n);if(null==r)return A.registry.onNotFound(n);var i=r(e.args||{}),o=Object.assign(Object.assign({x:-1,y:-1,width:3,height:3,filterUnits:"objectBoundingBox"},e.attrs),{id:t});O["m"].create(Ln["a"].sanitize(i),o).appendTo(this.defs)}return t}},{key:"gradient",value:function(e){var t=e.id,n=e.type;if(t||(t="gradient-".concat(n,"-").concat(this.cid,"-").concat(O["k"].hashcode(JSON.stringify(e)))),!this.isDefined(t)){var r=e.stops,i=r.map((function(e){var t=null!=e.opacity&&Number.isFinite(e.opacity)?e.opacity:1;return'<stop offset="'.concat(e.offset,'" stop-color="').concat(e.color,'" stop-opacity="').concat(t,'"/>')})),o="<".concat(n,">").concat(i.join(""),"</").concat(n,">"),a=Object.assign({id:t},e.attrs);O["m"].create(o,a).appendTo(this.defs)}return t}},{key:"marker",value:function(e){var t=e.id,n=e.refX,r=e.refY,i=e.markerUnits,o=e.markerOrient,a=e.tagName,s=e.children,l=fi(e,["id","refX","refY","markerUnits","markerOrient","tagName","children"]),u=t;if(u||(u="marker-".concat(this.cid,"-").concat(O["k"].hashcode(JSON.stringify(e)))),!this.isDefined(u)){"path"!==a&&delete l.d;var c=O["m"].create("marker",{refX:n,refY:r,id:u,overflow:"visible",orient:null!=o?o:"auto",markerUnits:i||"userSpaceOnUse"},s?s.map((function(e){var t=e.tagName,n=fi(e,["tagName"]);return O["m"].create("".concat(t)||"path",O["c"].kebablizeAttrs(Object.assign(Object.assign({},l),n)))})):[O["m"].create(a||"path",O["c"].kebablizeAttrs(l))]);this.defs.appendChild(c.node)}return u}},{key:"remove",value:function(e){var t=this.svg.getElementById(e);t&&t.parentNode&&t.parentNode.removeChild(t)}}]),n}(Mr),pi=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},vi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},yi=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"elem",get:function(){return this.view.grid}},{key:"grid",get:function(){return this.options.grid}},{key:"init",value:function(){this.startListening(),this.draw(this.grid)}},{key:"startListening",value:function(){this.graph.on("scale",this.update,this),this.graph.on("translate",this.update,this)}},{key:"stopListening",value:function(){this.graph.off("scale",this.update,this),this.graph.off("translate",this.update,this)}},{key:"setVisible",value:function(e){this.grid.visible!==e&&(this.grid.visible=e,this.update())}},{key:"getGridSize",value:function(){return this.grid.size}},{key:"setGridSize",value:function(e){this.grid.size=Math.max(e,1),this.update()}},{key:"show",value:function(){this.setVisible(!0),this.update()}},{key:"hide",value:function(){this.setVisible(!1),this.update()}},{key:"clear",value:function(){this.elem.style.backgroundImage=""}},{key:"draw",value:function(e){this.clear(),this.instance=null,Object.assign(this.grid,e),this.patterns=this.resolveGrid(e),this.update()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.grid.size;if(t<=1||!this.grid.visible)return this.clear();var n=this.graph.matrix(),r=this.getInstance(),i=Array.isArray(e)?e:[e];this.patterns.forEach((function(e,o){var a="pattern_".concat(o),s=n.a||1,l=n.d||1,u=e.update,c=e.markup,h=vi(e,["update","markup"]),d=Object.assign(Object.assign(Object.assign({},h),i[o]),{sx:s,sy:l,ox:n.e||0,oy:n.f||0,width:t*s,height:t*l});r.has(a)||r.add(a,O["m"].create("pattern",{id:a,patternUnits:"userSpaceOnUse"},O["m"].createVectors(c)).node);var f=r.get(a);"function"===typeof u&&u(f.childNodes[0],d);var g=d.ox%d.width;g<0&&(g+=d.width);var p=d.oy%d.height;p<0&&(p+=d.height),O["c"].attr(f,{x:g,y:p,width:d.width,height:d.height})}));var o=(new XMLSerializer).serializeToString(r.root),a="url(data:image/svg+xml;base64,".concat(btoa(o),")");this.elem.style.backgroundImage=a}},{key:"getInstance",value:function(){return this.instance||(this.instance=new L),this.instance}},{key:"resolveGrid",value:function(e){if(!e)return[];var t=e.type;if(null==t)return[Object.assign(Object.assign({},L.presets.dot),e.args)];var n=L.registry.get(t);if(n){var r=e.args||[];return Array.isArray(r)||(r=[r]),Array.isArray(n)?n.map((function(e,t){return Object.assign(Object.assign({},e),r[t])})):[Object.assign(Object.assign({},n),r[0])]}return L.registry.onNotFound(t)}},{key:"dispose",value:function(){this.stopListening(),this.clear()}}]),n}(Mr);pi([Mr.dispose()],yi.prototype,"dispose",null);var mi,bi=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"getClientMatrix",value:function(){return O["c"].createSVGMatrix(this.view.stage.getScreenCTM())}},{key:"getClientOffset",value:function(){var e=this.view.svg.getBoundingClientRect();return new K["f"](e.left,e.top)}},{key:"getPageOffset",value:function(){return this.getClientOffset().translate(window.scrollX,window.scrollY)}},{key:"snapToGrid",value:function(e,t){var n="number"===typeof e?this.clientToLocalPoint(e,t):this.clientToLocalPoint(e.x,e.y);return n.snapToGrid(this.graph.getGridSize())}},{key:"localToGraphPoint",value:function(e,t){var n=K["f"].create(e,t);return O["c"].transformPoint(n,this.graph.matrix())}},{key:"localToClientPoint",value:function(e,t){var n=K["f"].create(e,t);return O["c"].transformPoint(n,this.getClientMatrix())}},{key:"localToPagePoint",value:function(e,t){var n="number"===typeof e?this.localToGraphPoint(e,t):this.localToGraphPoint(e);return n.translate(this.getPageOffset())}},{key:"localToGraphRect",value:function(e,t,n,r){var i=K["h"].create(e,t,n,r);return O["c"].transformRectangle(i,this.graph.matrix())}},{key:"localToClientRect",value:function(e,t,n,r){var i=K["h"].create(e,t,n,r);return O["c"].transformRectangle(i,this.getClientMatrix())}},{key:"localToPageRect",value:function(e,t,n,r){var i="number"===typeof e?this.localToGraphRect(e,t,n,r):this.localToGraphRect(e);return i.translate(this.getPageOffset())}},{key:"graphToLocalPoint",value:function(e,t){var n=K["f"].create(e,t);return O["c"].transformPoint(n,this.graph.matrix().inverse())}},{key:"clientToLocalPoint",value:function(e,t){var n=K["f"].create(e,t);return O["c"].transformPoint(n,this.getClientMatrix().inverse())}},{key:"clientToGraphPoint",value:function(e,t){var n=K["f"].create(e,t);return O["c"].transformPoint(n,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}},{key:"pageToLocalPoint",value:function(e,t){var n=K["f"].create(e,t),r=n.diff(this.getPageOffset());return this.graphToLocalPoint(r)}},{key:"graphToLocalRect",value:function(e,t,n,r){var i=K["h"].create(e,t,n,r);return O["c"].transformRectangle(i,this.graph.matrix().inverse())}},{key:"clientToLocalRect",value:function(e,t,n,r){var i=K["h"].create(e,t,n,r);return O["c"].transformRectangle(i,this.getClientMatrix().inverse())}},{key:"clientToGraphRect",value:function(e,t,n,r){var i=K["h"].create(e,t,n,r);return O["c"].transformRectangle(i,this.graph.matrix().multiply(this.getClientMatrix().inverse()))}},{key:"pageToLocalRect",value:function(e,t,n,r){var i=K["h"].create(e,t,n,r),o=this.getPageOffset();return i.x-=o.x,i.y-=o.y,this.graphToLocalRect(i)}}]),n}(Mr),xi=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},wi=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.apply(this,arguments),e.widget=e.graph.hook.createSnapline(),e}return g(n,[{key:"dispose",value:function(){this.widget.dispose()}}]),n}(Mr);xi([Mr.dispose()],wi.prototype,"dispose",null),function(e){function t(e){var t=[],n=[];return Array.isArray(e)?t.push.apply(t,d(e)):e.split("|").forEach((function(e){-1===e.indexOf("&")?t.push(e):n.push.apply(n,d(e.split("&")))})),{or:t,and:n}}function n(e,n){if(null!=e&&null!=n){var r=t(e),i=t(n),o=r.or.sort(),a=i.or.sort(),s=r.and.sort(),l=i.and.sort(),u=function(e,t){return e.length===t.length&&(0===e.length||e.every((function(e,n){return e===t[n]})))};return u(o,a)&&u(s,l)}return null==e&&null==n}function r(e,n,r){if(null==n||Array.isArray(n)&&0===n.length)return!r||!0!==e.altKey&&!0!==e.ctrlKey&&!0!==e.metaKey&&!0!==e.shiftKey;var i=t(n),o=i.or,a=i.and,s=function(t){var n="".concat(t.toLowerCase(),"Key");return!0===e[n]};return o.some((function(e){return s(e)}))&&a.every((function(e){return s(e)}))}e.parse=t,e.equals=n,e.isMatch=r}(mi||(mi={}));var Ci=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},ki=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"widgetOptions",get:function(){return this.options.scroller}},{key:"pannable",get:function(){return!!this.widgetOptions&&("object"===p(this.widgetOptions.pannable)?this.widgetOptions.pannable.enabled:!!this.widgetOptions.pannable)}},{key:"init",value:function(){this.widget=this.graph.hook.createScroller(),this.startListening(),this.updateClassName(),this.widget&&this.widget.center()}},{key:"startListening",value:function(){var e=[],t=this.widgetOptions.pannable;e="object"===p(t)?t.eventTypes||[]:["leftMouseDown"],e.includes("leftMouseDown")&&(this.graph.on("blank:mousedown",this.preparePanning,this),this.graph.on("node:unhandled:mousedown",this.preparePanning,this),this.graph.on("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&(this.onRightMouseDown=this.onRightMouseDown.bind(this),this.view.$(this.graph.container).on("mousedown",this.onRightMouseDown))}},{key:"stopListening",value:function(){var e=[],t=this.widgetOptions.pannable;e="object"===p(t)?t.eventTypes||[]:["leftMouseDown"],e.includes("leftMouseDown")&&(this.graph.off("blank:mousedown",this.preparePanning,this),this.graph.off("node:unhandled:mousedown",this.preparePanning,this),this.graph.off("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&this.view.$(this.graph.container).off("mousedown",this.onRightMouseDown)}},{key:"onRightMouseDown",value:function(e){var t=this;2===e.button&&this.allowPanning(e,!0)&&this.widget&&(this.updateClassName(!0),this.widget.startPanning(e),this.widget.once("pan:stop",(function(){return t.updateClassName(!1)})))}},{key:"preparePanning",value:function(e){var t=this,n=e.e;this.widget&&(this.allowPanning(n,!0)||this.allowPanning(n)&&!this.graph.selection.allowRubberband(n,!0))&&(this.updateClassName(!0),this.widget.startPanning(n),this.widget.once("pan:stop",(function(){return t.updateClassName(!1)})))}},{key:"allowPanning",value:function(e,t){return this.widget&&this.pannable&&mi.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowPanning(e)}},{key:"updateClassName",value:function(e){if(null!=this.widget){var t=this.widget.container,n=this.view.prefixClassName("graph-scroller-pannable");this.pannable?(O["c"].addClass(t,n),t.dataset.panning=(!!e).toString()):O["c"].removeClass(t,n)}}},{key:"enablePanning",value:function(){this.pannable||(this.widgetOptions.pannable=!0,this.updateClassName())}},{key:"disablePanning",value:function(){this.pannable&&(this.widgetOptions.pannable=!1,this.updateClassName())}},{key:"lock",value:function(){this.widget&&this.widget.lock()}},{key:"unlock",value:function(){this.widget&&this.widget.unlock()}},{key:"update",value:function(){this.widget&&this.widget.update()}},{key:"enableAutoResize",value:function(){this.widget&&this.widget.enableAutoResize()}},{key:"disableAutoResize",value:function(){this.widget&&this.widget.disableAutoResize()}},{key:"resize",value:function(e,t){this.widget&&this.widget.resize(e,t)}},{key:"dispose",value:function(){this.widget&&this.widget.dispose(),this.stopListening()}}]),n}(Mr);Ci([Mr.dispose()],ki.prototype,"dispose",null);var Ei=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Si=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Ai=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"commonOptions",get:function(){var e=this.instanceOptions,t=(e.enabled,Si(e,["enabled"]));return t}},{key:"instanceOptions",get:function(){return this.options.clipboard}},{key:"cells",get:function(){return this.widget.cells}},{key:"disabled",get:function(){return!0!==this.instanceOptions.enabled}},{key:"init",value:function(){this.widget=this.graph.hook.createClipboard(),this.widget.deserialize(this.instanceOptions)}},{key:"enable",value:function(){this.disabled&&(this.instanceOptions.enabled=!0)}},{key:"disable",value:function(){this.disabled||(this.instanceOptions.enabled=!1)}},{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.disabled||this.widget.copy(e,this.graph,Object.assign(Object.assign({},this.commonOptions),t))}},{key:"cut",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.disabled||this.widget.cut(e,this.graph,Object.assign(Object.assign({},this.commonOptions),t))}},{key:"paste",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.graph;return this.disabled?[]:this.widget.paste(t,Object.assign(Object.assign({},this.commonOptions),e))}},{key:"clean",value:function(e){this.disabled&&!e||this.widget.clean()}},{key:"isEmpty",value:function(){return this.widget.isEmpty()}},{key:"dispose",value:function(){this.clean(!0)}}]),n}(Mr);Ei([Mr.dispose()],Ai.prototype,"dispose",null);var Oi=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Mi=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.apply(this,arguments),e.highlights={},e}return g(n,[{key:"init",value:function(){this.startListening()}},{key:"startListening",value:function(){this.graph.on("cell:highlight",this.onCellHighlight,this),this.graph.on("cell:unhighlight",this.onCellUnhighlight,this)}},{key:"stopListening",value:function(){this.graph.off("cell:highlight",this.onCellHighlight,this),this.graph.off("cell:unhighlight",this.onCellUnhighlight,this)}},{key:"onCellHighlight",value:function(e){var t=e.view,n=e.magnet,r=e.options,i=void 0===r?{}:r,o=this.resolveHighlighter(i);if(o){var a=this.getHighlighterId(n,o);if(!this.highlights[a]){var s=o.highlighter;s.highlight(t,n,Object.assign({},o.args)),this.highlights[a]={cellView:t,magnet:n,highlighter:s,args:o.args}}}}},{key:"onCellUnhighlight",value:function(e){var t=e.magnet,n=e.options,r=void 0===n?{}:n,i=this.resolveHighlighter(r);if(i){var o=this.getHighlighterId(t,i);this.unhighlight(o)}}},{key:"resolveHighlighter",value:function(e){var t=this.options,n=e.highlighter;if(null==n){var r=e.type;n=r&&t.highlighting[r]||t.highlighting.default}if(null==n)return null;var i="string"===typeof n?{name:n}:n,o=i.name,a=te.registry.get(o);return null==a?te.registry.onNotFound(o):(te.check(o,a),{name:o,highlighter:a,args:i.args||{}})}},{key:"getHighlighterId",value:function(e,t){return O["c"].ensureId(e),t.name+e.id+JSON.stringify(t.args)}},{key:"unhighlight",value:function(e){var t=this.highlights[e];t&&(t.highlighter.unhighlight(t.cellView,t.magnet,t.args),delete this.highlights[e])}},{key:"dispose",value:function(){var e=this;Object.keys(this.highlights).forEach((function(t){return e.unhighlight(t)})),this.stopListening()}}]),n}(Mr);Oi([Mi.dispose()],Mi.prototype,"dispose",null);var Pi=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ti=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.apply(this,arguments),e.widgets=new Map,e}return g(n,[{key:"container",get:function(){return this.graph.view.container}},{key:"viewport",get:function(){return this.graph.view.viewport}},{key:"isSelectionEnabled",get:function(){return!0===this.options.selecting.enabled}},{key:"init",value:function(){this.startListening(),this.resize()}},{key:"startListening",value:function(){this.graph.on("node:mouseup",this.onNodeMouseUp,this),this.graph.on("node:selected",this.onNodeSelected,this),this.graph.on("node:unselected",this.onNodeUnSelected,this)}},{key:"stopListening",value:function(){this.graph.off("node:mouseup",this.onNodeMouseUp,this),this.graph.off("node:selected",this.onNodeSelected,this),this.graph.off("node:unselected",this.onNodeUnSelected,this)}},{key:"onNodeMouseUp",value:function(e){var t=e.node;if(!this.isSelectionEnabled){var n=this.graph.hook.createTransform(t,{clearAll:!0});n&&this.widgets.set(t,n)}}},{key:"onNodeSelected",value:function(e){var t=e.node;if(this.isSelectionEnabled){var n=this.graph.hook.createTransform(t,{clearAll:!1});n&&this.widgets.set(t,n)}}},{key:"onNodeUnSelected",value:function(e){var t=e.node;if(this.isSelectionEnabled){var n=this.widgets.get(t);n&&n.dispose(),this.widgets.delete(t)}}},{key:"getMatrix",value:function(){var e=this.viewport.getAttribute("transform");return e!==this.viewportTransformString&&(this.viewportMatrix=this.viewport.getCTM(),this.viewportTransformString=e),O["c"].createSVGMatrix(this.viewportMatrix)}},{key:"setMatrix",value:function(e){var t=O["c"].createSVGMatrix(e),n=O["c"].matrixToTransformString(t);this.viewport.setAttribute("transform",n),this.viewportMatrix=t,this.viewportTransformString=n}},{key:"resize",value:function(e,t){var n=void 0===e?this.options.width:e,r=void 0===t?this.options.height:t;this.options.width=n,this.options.height=r,"number"===typeof n&&(n=Math.round(n)),"number"===typeof r&&(r=Math.round(r)),this.container.style.width=null==n?"":"".concat(n,"px"),this.container.style.height=null==r?"":"".concat(r,"px");var i=this.getComputedSize();return this.graph.trigger("resize",Object.assign({},i)),this}},{key:"getComputedSize",value:function(){var e=this.options.width,t=this.options.height;return O["f"].isNumber(e)||(e=this.container.clientWidth),O["f"].isNumber(t)||(t=this.container.clientHeight),{width:e,height:t}}},{key:"getScale",value:function(){return O["c"].matrixToScale(this.getMatrix())}},{key:"scale",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(e=this.clampScale(e),t=this.clampScale(t),n||r){var i=this.getTranslation(),o=i.tx-n*(e-1),a=i.ty-r*(t-1);o===i.tx&&a===i.ty||this.translate(o,a)}var s=this.getMatrix();return s.a=e,s.d=t,this.setMatrix(s),this.graph.trigger("scale",{sx:e,sy:t,ox:n,oy:r}),this}},{key:"clampScale",value:function(e){var t=this.graph.options.scaling;return O["f"].clamp(e,t.min||.01,t.max||16)}},{key:"getZoom",value:function(){return this.getScale().sx}},{key:"zoom",value:function(e,t){t=t||{};var n=e,r=e,i=this.getScale(),o=this.getComputedSize(),a=o.width/2,s=o.height/2;if(t.absolute||(n+=i.sx,r+=i.sy),t.scaleGrid&&(n=Math.round(n/t.scaleGrid)*t.scaleGrid,r=Math.round(r/t.scaleGrid)*t.scaleGrid),t.maxScale&&(n=Math.min(t.maxScale,n),r=Math.min(t.maxScale,r)),t.minScale&&(n=Math.max(t.minScale,n),r=Math.max(t.minScale,r)),t.center&&(a=t.center.x,s=t.center.y),n=this.clampScale(n),r=this.clampScale(r),a||s){var l=this.getTranslation(),u=a-(a-l.tx)*(n/i.sx),c=s-(s-l.ty)*(r/i.sy);u===l.tx&&c===l.ty||this.translate(u,c)}return this.scale(n,r),this}},{key:"getRotation",value:function(){return O["c"].matrixToRotation(this.getMatrix())}},{key:"rotate",value:function(e,t,n){if(null==t||null==n){var r=O["c"].getBBox(this.graph.view.stage);t=r.width/2,n=r.height/2}var i=this.getMatrix().translate(t,n).rotate(e).translate(-t,-n);return this.setMatrix(i),this}},{key:"getTranslation",value:function(){return O["c"].matrixToTranslation(this.getMatrix())}},{key:"translate",value:function(e,t){var n=this.getMatrix();n.e=e||0,n.f=t||0,this.setMatrix(n);var r=this.getTranslation();return this.options.x=r.tx,this.options.y=r.ty,this.graph.trigger("translate",Object.assign({},r)),this}},{key:"setOrigin",value:function(e,t){return this.translate(e||0,t||0)}},{key:"fitToContent",value:function(e,t,n,r){if("object"===p(e)){var i=e;e=i.gridWidth||1,t=i.gridHeight||1,n=i.padding||0,r=i}else e=e||1,t=t||1,n=n||0,null==r&&(r={});var o=O["f"].normalizeSides(n),a=r.border||0,s=r.contentArea?K["h"].create(r.contentArea):this.getContentArea(r);a>0&&s.inflate(a);var l=this.getScale(),u=this.getTranslation(),c=l.sx,h=l.sy;s.x*=c,s.y*=h,s.width*=c,s.height*=h;var d=Math.max(Math.ceil((s.width+s.x)/e),1)*e,f=Math.max(Math.ceil((s.height+s.y)/t),1)*t,g=0,v=0;("negative"===r.allowNewOrigin&&s.x<0||"positive"===r.allowNewOrigin&&s.x>=0||"any"===r.allowNewOrigin)&&(g=Math.ceil(-s.x/e)*e,g+=o.left,d+=g),("negative"===r.allowNewOrigin&&s.y<0||"positive"===r.allowNewOrigin&&s.y>=0||"any"===r.allowNewOrigin)&&(v=Math.ceil(-s.y/t)*t,v+=o.top,f+=v),d+=o.right,f+=o.bottom,d=Math.max(d,r.minWidth||0),f=Math.max(f,r.minHeight||0),d=Math.min(d,r.maxWidth||Number.MAX_SAFE_INTEGER),f=Math.min(f,r.maxHeight||Number.MAX_SAFE_INTEGER);var y=this.getComputedSize(),m=d!==y.width||f!==y.height,b=g!==u.tx||v!==u.ty;return b&&this.translate(g,v),m&&this.resize(d,f),new K["h"](-g/c,-v/h,d/c,f/h)}},{key:"scaleContentToFit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.scaleContentToFitImpl(e)}},{key:"scaleContentToFitImpl",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(n.contentArea){var i=n.contentArea;e=this.graph.localToGraph(i),t=K["f"].create(i)}else e=this.getContentBBox(n),t=this.graph.graphToLocal(e);if(e.width&&e.height){var o,a=O["f"].normalizeSides(n.padding),s=n.minScale||0,l=n.maxScale||Number.MAX_SAFE_INTEGER,u=n.minScaleX||s,c=n.maxScaleX||l,h=n.minScaleY||s,d=n.maxScaleY||l;if(n.viewportArea)o=n.viewportArea;else{var f=this.getComputedSize(),g=this.getTranslation();o={x:g.tx,y:g.ty,width:f.width,height:f.height}}o=K["h"].create(o).moveAndExpand({x:a.left,y:a.top,width:-a.left-a.right,height:-a.top-a.bottom});var p=this.getScale(),v=o.width/e.width*p.sx,y=o.height/e.height*p.sy;!1!==n.preserveAspectRatio&&(v=y=Math.min(v,y));var m=n.scaleGrid;if(m&&(v=m*Math.floor(v/m),y=m*Math.floor(y/m)),v=O["f"].clamp(v,u,c),y=O["f"].clamp(y,h,d),this.scale(v,y),r){var b=this.options,x=o.x-t.x*v-b.x,w=o.y-t.y*y-b.y;this.translate(x,w)}}}},{key:"getContentArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.useCellGeometry?this.model.getAllCellsBBox()||new K["h"]:O["c"].getBBox(this.graph.view.stage)}},{key:"getContentBBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.graph.localToGraph(this.getContentArea(e))}},{key:"getGraphArea",value:function(){var e=K["h"].fromSize(this.getComputedSize());return this.graph.graphToLocal(e)}},{key:"zoomToRect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=K["h"].create(e),r=this.graph;t.contentArea=n,null==t.viewportArea&&(t.viewportArea={x:r.options.x,y:r.options.y,width:this.options.width,height:this.options.height}),this.scaleContentToFitImpl(t,!1);var i=n.getCenter();return this.centerPoint(i.x,i.y),this}},{key:"zoomToFit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.zoomToRect(this.getContentArea(e),e)}},{key:"centerPoint",value:function(e,t){var n=this.getComputedSize(),r=this.getScale(),i=this.getTranslation(),o=n.width/2,a=n.height/2;e="number"===typeof e?e:o,t="number"===typeof t?t:a,e=o-e*r.sx,t=a-t*r.sy,i.tx===e&&i.ty===t||this.translate(e,t)}},{key:"centerContent",value:function(e){var t=this.graph.getContentArea(e),n=t.getCenter();this.centerPoint(n.x,n.y)}},{key:"centerCell",value:function(e){return this.positionCell(e,"center")}},{key:"positionPoint",value:function(e,t,n){var r=this.getComputedSize();t=O["f"].normalizePercentage(t,Math.max(0,r.width)),t<0&&(t=r.width+t),n=O["f"].normalizePercentage(n,Math.max(0,r.height)),n<0&&(n=r.height+n);var i=this.getTranslation(),o=this.getScale(),a=t-e.x*o.sx,s=n-e.y*o.sy;i.tx===a&&i.ty===s||this.translate(a,s)}},{key:"positionRect",value:function(e,t){var n=K["h"].create(e);switch(t){case"center":return this.positionPoint(n.getCenter(),"50%","50%");case"top":return this.positionPoint(n.getTopCenter(),"50%",0);case"top-right":return this.positionPoint(n.getTopRight(),"100%",0);case"right":return this.positionPoint(n.getRightMiddle(),"100%","50%");case"bottom-right":return this.positionPoint(n.getBottomRight(),"100%","100%");case"bottom":return this.positionPoint(n.getBottomCenter(),"50%","100%");case"bottom-left":return this.positionPoint(n.getBottomLeft(),0,"100%");case"left":return this.positionPoint(n.getLeftMiddle(),0,"50%");case"top-left":return this.positionPoint(n.getTopLeft(),0,0);default:return this}}},{key:"positionCell",value:function(e,t){var n=e.getBBox();return this.positionRect(n,t)}},{key:"positionContent",value:function(e,t){var n=this.graph.getContentArea(t);return this.positionRect(n,e)}},{key:"dispose",value:function(){this.widgets.forEach((function(e){return e.dispose()})),this.widgets.clear(),this.stopListening()}}]),n}(Mr);Pi([Ti.dispose()],Ti.prototype,"dispose",null);var Di=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ni=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.apply(this,arguments),e.movedMap=new WeakMap,e.unselectMap=new WeakMap,e}return g(n,[{key:"widgetOptions",get:function(){return this.options.selecting}},{key:"rubberbandDisabled",get:function(){return!0!==this.widgetOptions.enabled||!0!==this.widgetOptions.rubberband}},{key:"disabled",get:function(){return!0!==this.widgetOptions.enabled}},{key:"length",get:function(){return this.widget.length}},{key:"cells",get:function(){return this.widget.cells}},{key:"init",value:function(){this.widget=this.graph.hook.createSelection(),this.startListening()}},{key:"startListening",value:function(){this.graph.on("blank:mousedown",this.onBlankMouseDown,this),this.graph.on("blank:click",this.onBlankClick,this),this.graph.on("cell:mousemove",this.onCellMouseMove,this),this.graph.on("cell:mouseup",this.onCellMouseUp,this),this.widget.on("box:mousedown",this.onBoxMouseDown,this)}},{key:"stopListening",value:function(){this.graph.off("blank:mousedown",this.onBlankMouseDown,this),this.graph.off("blank:click",this.onBlankClick,this),this.graph.off("cell:mousemove",this.onCellMouseMove,this),this.graph.off("cell:mouseup",this.onCellMouseUp,this),this.widget.off("box:mousedown",this.onBoxMouseDown,this)}},{key:"onBlankMouseDown",value:function(e){var t=e.e;(this.allowRubberband(t,!0)||this.allowRubberband(t)&&!this.graph.scroller.allowPanning(t,!0)&&!this.graph.panning.allowPanning(t,!0))&&this.startRubberband(t)}},{key:"onBlankClick",value:function(){this.clean()}},{key:"allowRubberband",value:function(e,t){return!this.rubberbandDisabled&&mi.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowRubberband(e)}},{key:"onCellMouseMove",value:function(e){var t=e.cell;this.movedMap.set(t,!0)}},{key:"onCellMouseUp",value:function(e){var t=e.e,n=e.cell,r=this.widgetOptions,i=this.disabled;!i&&this.movedMap.has(n)&&(i=!1===r.selectCellOnMoved,i||(i=!1===r.selectNodeOnMoved&&n.isNode()),i||(i=!1===r.selectEdgeOnMoved&&n.isEdge())),i||(!1===r.multiple||!t.ctrlKey&&!t.metaKey?this.reset(n):this.unselectMap.has(n)?this.unselectMap.delete(n):this.isSelected(n)?this.unselect(n):this.select(n)),this.movedMap.delete(n)}},{key:"onBoxMouseDown",value:function(e){var t=e.e,n=e.cell;this.disabled||!1!==this.widgetOptions.multiple&&(t.ctrlKey||t.metaKey)&&(this.unselect(n),this.unselectMap.set(n,!0))}},{key:"isEmpty",value:function(){return this.length<=0}},{key:"isSelected",value:function(e){return this.widget.isSelected(e)}},{key:"getCells",value:function(e){var t=this;return(Array.isArray(e)?e:[e]).map((function(e){return"string"===typeof e?t.graph.getCellById(e):e})).filter((function(e){return null!=e}))}},{key:"select",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getCells(e);return n.length&&(this.isMultiple()?this.widget.select(n,t):this.reset(n.slice(0,1),t)),this}},{key:"unselect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.widget.unselect(this.getCells(e),t),this}},{key:"reset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.widget.reset(e?this.getCells(e):[],t),this}},{key:"clean",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.widget.clean(e),this}},{key:"enable",value:function(){return this.disabled&&(this.widgetOptions.enabled=!0),this}},{key:"disable",value:function(){return this.disabled||(this.widgetOptions.enabled=!1),this}},{key:"startRubberband",value:function(e){return this.rubberbandDisabled||this.widget.startSelecting(e),this}},{key:"enableRubberband",value:function(){return this.rubberbandDisabled&&(this.widgetOptions.rubberband=!0),this}},{key:"disableRubberband",value:function(){return this.rubberbandDisabled||(this.widgetOptions.rubberband=!1),this}},{key:"isMultiple",value:function(){return!1!==this.widgetOptions.multiple}},{key:"enableMultiple",value:function(){return this.widgetOptions.multiple=!0,this}},{key:"disableMultiple",value:function(){return this.widgetOptions.multiple=!1,this}},{key:"setModifiers",value:function(e){return this.widgetOptions.modifiers=e,this}},{key:"setContent",value:function(e){return this.widget.setContent(e),this}},{key:"setFilter",value:function(e){return this.widget.setFilter(e),this}},{key:"dispose",value:function(){this.stopListening(),this.widget.dispose()}}]),n}(Mr);Di([Mr.dispose()],Ni.prototype,"dispose",null);var ji,Li=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Fi=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},Ri=function(e){u(n,e);var t=c(n);function n(e){var r;return f(this,n),r=t.call(this),r.batchCommands=null,r.batchLevel=0,r.lastBatchIndex=-1,r.freezed=!1,r.handlers=[],r.graph=e.graph,r.model=e.graph.model,r.options=ji.getOptions(e),r.validator=new n.Validator({history:a(r),cancelInvalid:r.options.cancelInvalid}),r.clean(),r.startListening(),r}return g(n,[{key:"disabled",get:function(){return!0!==this.options.enabled}},{key:"enable",value:function(){this.disabled&&(this.options.enabled=!0)}},{key:"disable",value:function(){this.disabled||(this.options.enabled=!1)}},{key:"undo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.disabled){var t=this.undoStack.pop();t&&(this.revertCommand(t,e),this.redoStack.push(t),this.notify("undo",t,e))}return this}},{key:"redo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.disabled){var t=this.redoStack.pop();t&&(this.applyCommand(t,e),this.undoStack.push(t),this.notify("redo",t,e))}return this}},{key:"cancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.disabled){var t=this.undoStack.pop();t&&(this.revertCommand(t,e),this.redoStack=[],this.notify("cancel",t,e))}return this}},{key:"clean",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.undoStack=[],this.redoStack=[],this.notify("clean",null,e),this}},{key:"canUndo",value:function(){return!this.disabled&&this.undoStack.length>0}},{key:"canRedo",value:function(){return!this.disabled&&this.redoStack.length>0}},{key:"validate",value:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.validator).validate.apply(t,[e].concat(r)),this}},{key:"dispose",value:function(){this.validator.dispose(),this.clean(),this.stopListening()}},{key:"startListening",value:function(){var e=this;this.model.on("batch:start",this.initBatchCommand,this),this.model.on("batch:stop",this.storeBatchCommand,this),this.options.eventNames&&this.options.eventNames.forEach((function(t,n){e.handlers[n]=e.addCommand.bind(e,t),e.model.on(t,e.handlers[n])})),this.validator.on("invalid",(function(t){return e.trigger("invalid",t)}))}},{key:"stopListening",value:function(){var e=this;this.model.off("batch:start",this.initBatchCommand,this),this.model.off("batch:stop",this.storeBatchCommand,this),this.options.eventNames&&(this.options.eventNames.forEach((function(t,n){e.model.off(t,e.handlers[n])})),this.handlers.length=0),this.validator.off("invalid")}},{key:"createCommand",value:function(e){return{batch:!!e&&e.batch,data:{}}}},{key:"revertCommand",value:function(e,t){this.freezed=!0;for(var n=Array.isArray(e)?ji.sortBatchCommands(e):[e],r=n.length-1;r>=0;r-=1){var i=n[r],o=Object.assign(Object.assign({},t),O["g"].pick(i.options,this.options.revertOptionsList||[]));this.executeCommand(i,!0,o)}this.freezed=!1}},{key:"applyCommand",value:function(e,t){this.freezed=!0;for(var n=Array.isArray(e)?ji.sortBatchCommands(e):[e],r=0;r<n.length;r+=1){var i=n[r],o=Object.assign(Object.assign({},t),O["g"].pick(i.options,this.options.applyOptionsList||[]));this.executeCommand(i,!1,o)}this.freezed=!1}},{key:"executeCommand",value:function(e,t,n){var r=this.model,i=r.getCell(e.data.id),o=e.event;if(ji.isAddEvent(o)&&t||ji.isRemoveEvent(o)&&!t)i.remove(n);else if(ji.isAddEvent(o)&&!t||ji.isRemoveEvent(o)&&t){var a=e.data;a.node?r.addNode(a.props,n):a.edge&&r.addEdge(a.props,n)}else if(ji.isChangeEvent(o)){var s=e.data,l=s.key;if(l){var u=t?s.prev[l]:s.next[l];i.prop(l,u,n)}}else{var c=this.options.executeCommand;c&&O["d"].call(c,this,e,t,n)}}},{key:"addCommand",value:function(e,t){if(!this.freezed&&!this.disabled){var n=t,r=n.options||{};if(!r.dryrun&&!(ji.isAddEvent(e)&&this.options.ignoreAdd||ji.isRemoveEvent(e)&&this.options.ignoreRemove||ji.isChangeEvent(e)&&this.options.ignoreChange)){var i=this.options.beforeAddCommand;if(null==i||!1!==O["d"].call(i,this,e,t)){"cell:change:*"===e&&(e="cell:change:".concat(n.key));var o,a=n.cell,s=hr.isModel(a);if(this.batchCommands){o=this.batchCommands[Math.max(this.lastBatchIndex,0)];var l=s&&!o.modelChange||o.data.id!==a.id,u=o.event!==e;if(this.lastBatchIndex>=0&&(l||u)){var c=this.batchCommands.findIndex((function(t){return(s&&t.modelChange||t.data.id===a.id)&&t.event===e}));c<0||ji.isAddEvent(e)||ji.isRemoveEvent(e)?o=this.createCommand({batch:!0}):(o=this.batchCommands[c],this.batchCommands.splice(c,1)),this.batchCommands.push(o),this.lastBatchIndex=this.batchCommands.length-1}}else o=this.createCommand({batch:!1});if(ji.isAddEvent(e)||ji.isRemoveEvent(e)){var h=o.data;return o.event=e,o.options=r,h.id=a.id,h.props=O["g"].cloneDeep(a.toJSON()),a.isEdge()?h.edge=!0:a.isNode()&&(h.node=!0),this.push(o,r)}if(ji.isChangeEvent(e)){var d=t.key,f=o.data;return o.batch&&o.event||(o.event=e,o.options=r,f.key=d,null==f.prev&&(f.prev={}),f.prev[d]=O["g"].clone(a.previous(d)),s?o.modelChange=!0:f.id=a.id),null==f.next&&(f.next={}),f.next[d]=O["g"].clone(a.prop(d)),this.push(o,r)}var g=this.options.afterAddCommand;g&&O["d"].call(g,this,e,t,o),this.push(o,r)}}}}},{key:"initBatchCommand",value:function(e){this.freezed||(this.batchCommands?this.batchLevel+=1:(this.batchCommands=[this.createCommand({batch:!0})],this.batchLevel=0,this.lastBatchIndex=-1))}},{key:"storeBatchCommand",value:function(e){if(!this.freezed)if(this.batchCommands&&this.batchLevel<=0){var t=this.filterBatchCommand(this.batchCommands);t.length>0&&(this.redoStack=[],this.undoStack.push(t),this.notify("add",t,e)),this.batchCommands=null,this.lastBatchIndex=-1,this.batchLevel=0}else this.batchCommands&&this.batchLevel>0&&(this.batchLevel-=1)}},{key:"filterBatchCommand",value:function(e){var t=e.slice(),n=[],r=function(){var e=t.shift(),r=e.event,i=e.data.id;if(null!=r&&(null!=i||e.modelChange)){if(ji.isAddEvent(r)){var o=t.findIndex((function(e){return ji.isRemoveEvent(e.event)&&e.data.id===i}));if(o>=0)return t=t.filter((function(e,t){return o<t||e.data.id!==i})),"continue"}else if(ji.isRemoveEvent(r)){var a=t.findIndex((function(e){return ji.isAddEvent(e.event)&&e.data.id===i}));if(a>=0)return t.splice(a,1),"continue"}else if(ji.isChangeEvent(r)){var s=e.data;if(O["g"].isEqual(s.prev,s.next))return"continue"}n.push(e)}};while(t.length>0)r();return n}},{key:"notify",value:function(e,t,n){var r=null==t?null:Array.isArray(t)?t:[t];this.emit(e,{cmds:r,options:n}),this.emit("change",{cmds:r,options:n})}},{key:"push",value:function(e,t){this.redoStack=[],e.batch?(this.lastBatchIndex=Math.max(this.lastBatchIndex,0),this.emit("batch",{cmd:e,options:t})):(this.undoStack.push(e),this.notify("add",e,t))}}]),n}(Fn["a"]);Li([Fn["a"].dispose()],Ri.prototype,"dispose",null),function(e){var t=function(e){u(n,e);var t=c(n);function n(e){var r;return f(this,n),r=t.call(this),r.map={},r.command=e.history,r.cancelInvalid=!1!==e.cancelInvalid,r.command.on("add",r.onCommandAdded,a(r)),r}return g(n,[{key:"onCommandAdded",value:function(e){var t=this,n=e.cmds;return Array.isArray(n)?n.every((function(e){return t.isValidCommand(e)})):this.isValidCommand(n)}},{key:"isValidCommand",value:function(e){if(e.options&&!1===e.options.validation)return!0;var t=e.event&&this.map[e.event]||[],n=null;return t.forEach((function(t){var r=0,i=function i(o){var a=t[r];r+=1;try{if(!a)return void(n=o);a(o,e,i)}catch(o){i(o)}};i(n)})),!n||(this.cancelInvalid&&this.command.cancel(),this.emit("invalid",{err:n}),!1)}},{key:"validate",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=Array.isArray(e)?e:e.split(/\s+/);return r.forEach((function(e){if("function"!==typeof e)throw new Error("".concat(o.join(" ")," requires callback functions."))})),o.forEach((function(e){null==t.map[e]&&(t.map[e]=[]),t.map[e].push(r)})),this}},{key:"dispose",value:function(){this.command.off("add",this.onCommandAdded,this)}}]),n}(Fn["a"]);Li([Fn["a"].dispose()],t.prototype,"dispose",null),e.Validator=t}(Ri||(Ri={})),function(e){function t(e){return"cell:added"===e}function n(e){return"cell:removed"===e}function r(e){return null!=e&&e.startsWith("cell:change:")}function i(t){t.graph;var n=Fi(t,["graph"]),r=["cell:added","cell:removed","cell:change:*"],i=["batch:start","batch:stop"],o=t.eventNames?t.eventNames.filter((function(t){return!(e.isChangeEvent(t)||r.includes(t)||i.includes(t))})):r;return Object.assign(Object.assign({},n),{eventNames:o,applyOptionsList:t.applyOptionsList||["propertyPath"],revertOptionsList:t.revertOptionsList||["propertyPath"]})}function o(t){for(var n=[],r=0,i=t.length;r<i;r+=1){var o=t[r],a=null;if(e.isAddEvent(o.event))for(var s=o.data.id,l=0;l<r;l+=1)if(t[l].data.id===s){a=l;break}null!==a?n.splice(a,0,o):n.push(o)}return n}e.isAddEvent=t,e.isRemoveEvent=n,e.isChangeEvent=r,e.getOptions=i,e.sortBatchCommands=o}(ji||(ji={}));var Bi=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},zi=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"widgetOptions",get:function(){return this.options.minimap}},{key:"init",value:function(){this.widget=this.graph.hook.createMiniMap()}},{key:"dispose",value:function(){this.widget&&this.widget.dispose()}}]),n}(Mr);Bi([Mr.dispose()],zi.prototype,"dispose",null);var Ii=n("8a60"),Vi=n.n(Ii),_i=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Gi=function(e){u(n,e);var t=c(n);function n(e){var r;f(this,n),r=t.call(this),r.options=e;var i=r.graph.scroller.widget;return r.container=i?i.container:r.graph.container,e.global?r.target=document:(r.target=r.container,r.disabled||r.target.setAttribute("tabindex","-1"),r.graph.on("cell:mouseup",r.focus,a(r)),r.graph.on("blank:mouseup",r.focus,a(r))),r.mousetrap=n.createMousetrap(a(r)),r}return g(n,[{key:"graph",get:function(){return this.options.graph}},{key:"disabled",get:function(){return!0!==this.options.enabled}},{key:"enable",value:function(){this.disabled&&(this.options.enabled=!0,this.graph.options.keyboard.enabled=!0,this.target instanceof HTMLElement&&this.target.setAttribute("tabindex","-1"))}},{key:"disable",value:function(){this.disabled||(this.options.enabled=!1,this.graph.options.keyboard.enabled=!1,this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))}},{key:"on",value:function(e,t,n){this.mousetrap.bind(this.getKeys(e),t,n)}},{key:"off",value:function(e,t){this.mousetrap.unbind(this.getKeys(e),t)}},{key:"focus",value:function(){var e=this.target;e.focus({preventScroll:!0})}},{key:"getKeys",value:function(e){var t=this;return(Array.isArray(e)?e:[e]).map((function(e){return t.formatkey(e)}))}},{key:"formatkey",value:function(e){var t=e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command"),n=this.options.format;return n?O["d"].call(n,this.graph,t):t}},{key:"isGraphEvent",value:function(e){var t=e.srcElement||e.target;return!!t&&(t===this.target||t===document.body||O["c"].contains(this.container,t))}},{key:"isEnabledForEvent",value:function(e){var t=!this.disabled&&this.isGraphEvent(e);if(t){var n=e.target,r=n&&n.tagName.toLowerCase(),i=e.keyCode||e.which;if("input"===r&&(8===i||46===i))return!1;if(this.options.guard)return O["d"].call(this.options.guard,this.graph,e)}return t}},{key:"dispose",value:function(){this.mousetrap.reset()}}]),n}(Fn["e"]);_i([Fn["e"].dispose()],Gi.prototype,"dispose",null),function(e){function t(e){var t=new Vi.a(e.target),n=t.stopCallback;return t.stopCallback=function(r,i,o){return!e.isEnabledForEvent(r)||!!n&&n.call(t,r,i,o)},t}e.createMousetrap=t}(Gi||(Gi={}));var Hi=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ui=function(e){u(n,e);var t=c(n);function n(e){var r;f(this,n),r=t.call(this),r.options=e,r.cumulatedFactor=1;var i=r.graph.scroller.widget;return r.container=i?i.container:r.graph.container,r.target=r.options.global?document:r.container,r.mousewheelHandle=new O["c"].MouseWheelHandle(r.target,r.onMouseWheel.bind(a(r)),r.allowMouseWheel.bind(a(r))),r.options.enabled&&r.enable(!0),r}return g(n,[{key:"graph",get:function(){return this.options.graph}},{key:"disabled",get:function(){return!0!==this.options.enabled}},{key:"enable",value:function(e){(this.disabled||e)&&(this.options.enabled=!0,this.graph.options.mousewheel.enabled=!0,this.mousewheelHandle.enable())}},{key:"disable",value:function(){this.disabled||(this.options.enabled=!1,this.graph.options.mousewheel.enabled=!1,this.mousewheelHandle.disable())}},{key:"allowMouseWheel",value:function(e){var t=e.originalEvent||e,n=this.options.guard;return(null==n||n.call(this.graph,t))&&mi.isMatch(t,this.options.modifiers)}},{key:"onMouseWheel",value:function(e){var t=e.originalEvent||e,n=this.options.guard;if((null==n||n.call(this.graph,t))&&mi.isMatch(t,this.options.modifiers)){var r=this.options.factor||1.2;null==this.currentScale&&(this.startPos={x:e.clientX,y:e.clientY},this.currentScale=this.graph.scroller.widget?this.graph.scroller.widget.zoom():this.graph.transform.getScale().sx);var i=e.deltaY;i<0?this.currentScale<.15?this.cumulatedFactor=(this.currentScale+.01)/this.currentScale:this.cumulatedFactor=Math.round(this.currentScale*r*20)/20/this.currentScale:this.currentScale<=.15?this.cumulatedFactor=(this.currentScale-.01)/this.currentScale:this.cumulatedFactor=Math.round(this.currentScale*(1/r)*20)/20/this.currentScale,this.cumulatedFactor=Math.max(.01,Math.min(this.currentScale*this.cumulatedFactor,160)/this.currentScale);var o=this.graph.scroller.widget,a=this.currentScale,s=this.graph.transform.clampScale(a*this.cumulatedFactor),l=this.options.minScale||Number.MIN_SAFE_INTEGER,u=this.options.maxScale||Number.MAX_SAFE_INTEGER;if(s=O["f"].clamp(s,l,u),s!==a)if(o)if(this.options.zoomAtMousePosition){var c=this.graph.coord.clientToLocalPoint(this.startPos);o.zoom(s,{absolute:!0,center:c.clone()})}else o.zoom(s,{absolute:!0});else if(this.options.zoomAtMousePosition){var h=this.graph.coord.clientToGraphPoint(this.startPos);this.graph.zoom(s,{absolute:!0,center:h.clone()})}else this.graph.zoom(s,{absolute:!0});this.currentScale=null,this.cumulatedFactor=1}}},{key:"dispose",value:function(){this.disable()}}]),n}(Fn["e"]);Hi([Fn["e"].dispose()],Ui.prototype,"dispose",null);var qi=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},$i=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"show",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign(Object.assign({},n.defaultOptions),t),i=this.createPrintPages(r);r.ready(i,(function(t){return e.showPrintWindow(t,r)}),{sheetSize:this.getSheetSize(r)})}},{key:"className",get:function(){return this.view.prefixClassName("graph-print")}},{key:"showPrintWindow",value:function(e,t){var n=this;if(e){var r=Object(O["e"])(document.body),i=Object(O["e"])(this.view.container),o=this.view.prefixClassName("graph-printing");r.addClass(o);var a=i.children().detach();e.forEach((function(e){e.removeClass("".concat(n.className,"-preview")).addClass("".concat(n.className,"-ready")).appendTo(r)}));var s=!1,l=function l(){s||(s=!0,r.removeClass(o),e.forEach((function(e){return e.remove()})),i.append(a),Object(O["e"])("#".concat(n.styleSheetId)).remove(),n.graph.trigger("after:print",t),Object(O["e"])(window).off("afterprint",l))};Object(O["e"])(window).one("afterprint",l),setTimeout(l,200),window.print()}}},{key:"createPrintPage",value:function(e,t){this.graph.trigger("before:print",t);var n=Object(O["e"])("<div/>").addClass(this.className),r=Object(O["e"])("<div/>").addClass(this.view.prefixClassName("graph-print-inner")).css("position","relative");t.size&&n.addClass("".concat(this.className,"-size-").concat(t.size));var i=O["m"].create(this.view.svg).clone(),o=i.findOne(".".concat(this.view.prefixClassName("graph-svg-stage")));r.append(i.node);var a=this.getSheetSize(t),s=this.graph.transform.getGraphArea(),l=this.graph.transform.getScale(),u=this.graph.translate(),c=O["c"].createSVGMatrix().translate(u.tx/l.sx,u.ty/l.sy),h=this.getPageInfo(s,e,a),d=h.scale,f=h.bbox;return r.css({left:0,top:0}),i.attr({width:f.width*d,height:f.height*d,style:"position:relative",viewBox:[f.x,f.y,f.width,f.height].join(" ")}),o.attr("transform",O["c"].matrixToTransformString(c)),n.append(r),n.addClass("".concat(this.className,"-preview")),{$page:n,sheetSize:a}}},{key:"createPrintPages",value:function(e){var t,n=this,r=this.getPrintArea(e),i=[];if(e.page){var o=this.getPageSize(r,e.page),a=this.getPageAreas(r,o);a.forEach((function(r){t=n.createPrintPage(r,e),i.push(t.$page)}))}else t=this.createPrintPage(r,e),i.push(t.$page);if(t){var s={width:t.sheetSize.cssWidth,height:t.sheetSize.cssHeight};this.updatePrintStyle(s,e)}return i}},{key:"styleSheetId",get:function(){return this.view.prefixClassName("graph-print-style")}},{key:"updatePrintStyle",value:function(e,t){var n=Object.keys(e).reduce((function(t,n){return"".concat(t," ").concat(n,":").concat(e[n],";")}),""),r=O["f"].normalizeSides(t.margin),i=t.marginUnit||"",o=t.sheetUnit||"",a="\n      @media print {\n        .".concat(this.className,".").concat(this.className,"-ready {\n          ").concat(n,"\n        }\n\n        @page {\n          margin:\n          ").concat([r.top+i,r.right+i,r.bottom+i,r.left+i].join(" "),";\n          size: ").concat(t.sheet.width+o," ").concat(t.sheet.height+o,";\n\n        .").concat(this.className,".").concat(this.className,"-preview {\n          ").concat(n,"\n        }\n      }"),s=this.styleSheetId,l=Object(O["e"])("#".concat(s));l.length?l.html(a):Object(O["e"])("head").append('\'<style type="text/css" id="'.concat(s,'">').concat(a,"</style>'"))}},{key:"getPrintArea",value:function(e){var t=e.area;if(!t){var n=O["f"].normalizeSides(e.padding);t=this.graph.getContentArea().moveAndExpand({x:-n.left,y:-n.top,width:n.left+n.right,height:n.top+n.bottom})}return t}},{key:"getPageSize",value:function(e,t){if("object"===p(t)){var n=t,r={width:n.width,height:n.height};return null==r.width&&(r.width=Math.ceil(e.width/(n.columns||1))),null==r.height&&(r.height=Math.ceil(e.height/(n.rows||1))),r}return{width:e.width,height:e.height}}},{key:"getPageAreas",value:function(e,t){for(var n=[],r=t.width,i=t.height,o=0,a=0;o<e.height&&a<200;o+=i,a+=1)for(var s=0,l=0;s<e.width&&l<200;s+=r,l+=1)n.push(new K["h"](e.x+s,e.y+o,r,i));return n}},{key:"getSheetSize",value:function(e){var t=e.sheet,n=O["f"].normalizeSides(e.margin),r=e.marginUnit||"",i=e.sheetUnit||"",o="calc(".concat(t.width).concat(i," - ").concat(n.left+n.right).concat(r,")"),a="calc(".concat(t.height).concat(i," - ").concat(n.top+n.bottom).concat(r,")"),s=O["l"].measure(o,a);return{cssWidth:o,cssHeight:a,width:s.width,height:s.height}}},{key:"getPageInfo",value:function(e,t,n){var r=new K["h"](t.x-e.x,t.y-e.y,t.width,t.height),i=r.width/r.height,o=n.width/n.height;return{bbox:r,scale:o<i?n.width/r.width:n.height/r.height,fitHorizontal:o<i}}},{key:"dispose",value:function(){}}]),n}(Mr);qi([Mr.dispose()],$i.prototype,"dispose",null),function(e){e.defaultOptions={page:!1,sheet:{width:210,height:297},sheetUnit:"mm",margin:.4,marginUnit:"in",padding:5,ready:function(e,t){return t(e)}}}($i||($i={}));var Wi=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"toSVG",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.graph.trigger("before:export",n);var r=this.view.svg,i=O["m"].create(r).clone(),o=i.node,a=i.findOne(".".concat(this.view.prefixClassName("graph-svg-stage"))),s=n.viewBox||this.graph.graphToLocal(this.graph.getContentBBox()),l=n.preserveDimensions;if(l){var u="boolean"===typeof l?s:l;i.attr({width:u.width,height:u.height})}if(i.removeAttribute("style").attr("viewBox",[s.x,s.y,s.width,s.height].join(" ")),a.removeAttribute("transform"),!1!==n.copyStyles){for(var c=r.ownerDocument,h=Array.from(r.querySelectorAll("*")),d=Array.from(o.querySelectorAll("*")),f=c.styleSheets.length,g=[],p=f-1;p>=0;p-=1)g[p]=c.styleSheets[p],c.styleSheets[p].disabled=!0;var v={};h.forEach((function(e,t){var n=window.getComputedStyle(e,null),r={};Object.keys(n).forEach((function(e){r[e]=n.getPropertyValue(e)})),v[t]=r})),f!==c.styleSheets.length&&g.forEach((function(e,t){c.styleSheets[t]=e}));for(var y=0;y<f;y+=1)c.styleSheets[y].disabled=!1;var m={};h.forEach((function(e,t){var n=window.getComputedStyle(e,null),r=v[t],i={};Object.keys(n).forEach((function(e){n.getPropertyValue(e)!==r[e]&&(i[e]=n.getPropertyValue(e))})),m[t]=i})),d.forEach((function(e,t){Tr()(e).css(m[t])}))}var b=n.stylesheet;if("string"===typeof b){var x=r.ownerDocument.implementation.createDocument(null,"xml",null).createCDATASection(b);i.prepend(O["m"].create("style",{type:"text/css"},[x]))}var w=function(){var r=n.beforeSerialize;if("function"===typeof r){var i=O["d"].call(r,t.graph,o);i instanceof SVGSVGElement&&(o=i)}var a=(new XMLSerializer).serializeToString(o).replace(/&nbsp;/g," ");t.graph.trigger("after:export",n),e(a)};if(n.serializeImages){var C=i.find("image").map((function(e){return new Promise((function(t){var n=e.attr("xlink:href")||e.attr("href");O["b"].imageToDataUri(n,(function(n,r){!n&&r&&e.attr("xlink:href",r),t()}))}))}));Promise.all(C).then(w)}else w()}},{key:"toDataURL",value:function(e,t){var n=t.viewBox||this.graph.getContentBBox(),r=O["f"].normalizeSides(t.padding);t.width&&t.height&&(r.left+r.right>=t.width&&(r.left=r.right=0),r.top+r.bottom>=t.height&&(r.top=r.bottom=0));var i=new K["h"](-r.left,-r.top,r.left+r.right,r.top+r.bottom);if(t.width&&t.height){var o=n.width+r.left+r.right,a=n.height+r.top+r.bottom;i.scale(o/t.width,a/t.height)}n=K["h"].create(n).moveAndExpand(i);var s="number"===typeof t.width&&"number"===typeof t.height?{width:t.width,height:t.height}:n,l=t.ratio?parseFloat(t.ratio):1;Number.isFinite(l)&&0!==l||(l=1);var u={width:Math.max(Math.round(s.width*l),1),height:Math.max(Math.round(s.height*l),1)},c=document.createElement("canvas"),h=c.getContext("2d");c.width=u.width,c.height=u.height;var d=u.width-1,f=u.height-1;h.fillStyle="rgb(1,1,1)",h.fillRect(d,f,1,1);var g=h.getImageData(d,f,1,1).data;if(1!==g[0]||1!==g[1]||1!==g[2])throw new Error("size exceeded");var p=new Image;p.onload=function(){var n=document.createElement("canvas");n.width=u.width,n.height=u.height;var r=n.getContext("2d");r.fillStyle=t.backgroundColor||"white",r.fillRect(0,0,u.width,u.height);try{r.drawImage(p,0,0,u.width,u.height);var i=n.toDataURL(t.type,t.quality);e(i)}catch(o){}},this.toSVG((function(e){p.src="data:image/svg+xml,".concat(encodeURIComponent(e))}),Object.assign(Object.assign({},t),{viewBox:n,serializeImages:!0,preserveDimensions:Object.assign({},u)}))}},{key:"toPNG",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.toDataURL(e,Object.assign(Object.assign({},t),{type:"image/png"}))}},{key:"toJPEG",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.toDataURL(e,Object.assign(Object.assign({},t),{type:"image/jpeg"}))}}]),n}(Mr),Xi=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.apply(this,arguments),e.widgets=new Map,e}return g(n,[{key:"isSelectionEnabled",get:function(){return!0===this.options.selecting.enabled}},{key:"init",value:function(){this.startListening()}},{key:"startListening",value:function(){this.graph.on("node:mouseup",this.onNodeMouseUp,this),this.graph.on("node:selected",this.onNodeSelected,this),this.graph.on("node:unselected",this.onNodeUnSelected,this)}},{key:"stopListening",value:function(){this.graph.off("node:mouseup",this.onNodeMouseUp,this),this.graph.off("node:selected",this.onNodeSelected,this),this.graph.off("node:unselected",this.onNodeUnSelected,this)}},{key:"onNodeMouseUp",value:function(e){var t=e.node;if(!this.isSelectionEnabled){var n=this.graph.hook.createKnob(t,{clearAll:!0});n&&this.widgets.set(t,n)}}},{key:"onNodeSelected",value:function(e){var t=e.node;if(this.isSelectionEnabled){var n=this.graph.hook.createKnob(t,{clearAll:!1});n&&this.widgets.set(t,n)}}},{key:"onNodeUnSelected",value:function(e){var t=e.node;if(this.isSelectionEnabled){var n=this.widgets.get(t);n&&n.forEach((function(e){return e.dispose()})),this.widgets.delete(t)}}}]),n}(Mr),Yi=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ji=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"widgetOptions",get:function(){return this.options.panning}},{key:"pannable",get:function(){return this.widgetOptions&&!0===this.widgetOptions.enabled}},{key:"init",value:function(){this.startListening(),this.updateClassName()}},{key:"startListening",value:function(){var e=this.widgetOptions.eventTypes;e&&(e.includes("leftMouseDown")&&(this.graph.on("blank:mousedown",this.preparePanning,this),this.graph.on("node:unhandled:mousedown",this.preparePanning,this),this.graph.on("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&(this.onRightMouseDown=this.onRightMouseDown.bind(this),this.view.$(this.graph.container).on("mousedown",this.onRightMouseDown)),e.includes("mouseWheel")&&(this.mousewheelHandle=new O["c"].MouseWheelHandle(this.graph.container,this.onMouseWheel.bind(this),this.allowMouseWheel.bind(this)),this.mousewheelHandle.enable()))}},{key:"stopListening",value:function(){var e=this.widgetOptions.eventTypes;e&&(e.includes("leftMouseDown")&&(this.graph.off("blank:mousedown",this.preparePanning,this),this.graph.off("node:unhandled:mousedown",this.preparePanning,this),this.graph.off("edge:unhandled:mousedown",this.preparePanning,this)),e.includes("rightMouseDown")&&this.view.$(this.graph.container).off("mousedown",this.onRightMouseDown),e.includes("mouseWheel")&&this.mousewheelHandle&&this.mousewheelHandle.disable())}},{key:"preparePanning",value:function(e){var t=e.e;(this.allowPanning(t,!0)||this.allowPanning(t)&&!this.graph.selection.allowRubberband(t,!0))&&this.startPanning(t)}},{key:"allowPanning",value:function(e,t){return this.pannable&&mi.isMatch(e,this.widgetOptions.modifiers,t)&&this.graph.hook.allowPanning(e)}},{key:"startPanning",value:function(e){var t=this.view.normalizeEvent(e);this.clientX=t.clientX,this.clientY=t.clientY,this.panning=!0,this.updateClassName(),this.view.$(document.body).on({"mousemove.panning touchmove.panning":this.pan.bind(this),"mouseup.panning touchend.panning":this.stopPanning.bind(this)}),this.view.$(window).on("mouseup.panning",this.stopPanning.bind(this))}},{key:"pan",value:function(e){var t=this.view.normalizeEvent(e),n=t.clientX-this.clientX,r=t.clientY-this.clientY;this.clientX=t.clientX,this.clientY=t.clientY,this.graph.translateBy(n,r)}},{key:"stopPanning",value:function(e){this.panning=!1,this.updateClassName(),this.view.$(document.body).off(".panning"),this.view.$(window).off(".panning")}},{key:"updateClassName",value:function(){var e=this.view.container,t=this.view.prefixClassName("graph-panning"),n=this.view.prefixClassName("graph-pannable");this.pannable?this.panning?(O["c"].addClass(e,t),O["c"].removeClass(e,n)):(O["c"].removeClass(e,t),O["c"].addClass(e,n)):(O["c"].removeClass(e,t),O["c"].removeClass(e,n))}},{key:"onRightMouseDown",value:function(e){2===e.button&&this.allowPanning(e,!0)&&this.startPanning(e)}},{key:"allowMouseWheel",value:function(e){return this.pannable&&!e.ctrlKey}},{key:"onMouseWheel",value:function(e,t,n){e.ctrlKey||this.graph.translateBy(-t,-n)}},{key:"autoPanning",value:function(e,t){var n=10,r=this.graph.getGraphArea(),i=0,o=0;e<=r.left+n&&(i=-n),t<=r.top+n&&(o=-n),e>=r.right-n&&(i=n),t>=r.bottom-n&&(o=n),0===i&&0===o||this.graph.translateBy(-i,-o)}},{key:"enablePanning",value:function(){this.pannable||(this.widgetOptions.enabled=!0,this.updateClassName())}},{key:"disablePanning",value:function(){this.pannable&&(this.widgetOptions.enabled=!1,this.updateClassName())}},{key:"dispose",value:function(){this.stopListening()}}]),n}(Mr);Yi([Mr.dispose()],Ji.prototype,"dispose",null);var Zi=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},Ki=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"hasScroller",value:function(){return null!=this.graph.scroller.widget}},{key:"getContainer",value:function(){return this.hasScroller()?this.graph.scroller.widget.container:this.graph.container}},{key:"init",value:function(){var e=this,t=this.options.autoResize;if(t){var n="boolean"===typeof t?this.getContainer():t;O["j"].bind(n,(function(){var t=e.getContainer(),n=t.offsetWidth,r=t.offsetHeight;e.resize(n,r)}))}}},{key:"resize",value:function(e,t){this.hasScroller()?this.resizeScroller(e,t):this.resizeGraph(e,t)}},{key:"resizeGraph",value:function(e,t){this.graph.transform.resize(e,t)}},{key:"resizeScroller",value:function(e,t){this.graph.scroller.resize(e,t)}},{key:"resizePage",value:function(e,t){var n=this.graph.scroller.widget;n&&n.updatePageSize(e,t)}},{key:"dispose",value:function(){O["j"].clear(this.getContainer())}}]),n}(Mr);Zi([Mr.dispose()],Ki.prototype,"dispose",null);var Qi,eo=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},to=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};(function(e){function t(e,t){return function(n,r,i){var o=i.value,a=t||r;i.value=function(){for(var t=this.options[a],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(null!=t){var s;this.getNativeValue=o.bind.apply(o,[this].concat(r));var l=(s=O["d"]).call.apply(s,[t,this.graph].concat(r));if(this.getNativeValue=null,null!=l||!0===e&&null===l)return l}return o.call.apply(o,[this].concat(r))}}}function n(e){return function(t,n,r){var i=r.value,o=e||n;r.value=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,a=i.call.apply(i,[this].concat(t)),s=this.options[o];null!=s&&(a=(r=O["d"]).call.apply(r,[s,this.graph].concat(t))&&a);return a}}}e.hook=t,e.after=n})(Qi||(Qi={}));var no=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"createModel",value:function(){if(this.options.model)return this.options.model;var e=new hr;return e.graph=this.graph,e}},{key:"createView",value:function(){return new Nr(this.graph)}},{key:"createRenderer",value:function(){return new Kr(this.graph)}},{key:"createDefsManager",value:function(){return new gi(this.graph)}},{key:"createGridManager",value:function(){return new yi(this.graph)}},{key:"createCoordManager",value:function(){return new bi(this.graph)}},{key:"createKnobManager",value:function(){return new Xi(this.graph)}},{key:"createTransform",value:function(e,t){var n=this.getTransformOptions(e);return n.resizable||n.rotatable?new ci(Object.assign(Object.assign({node:e,graph:this.graph},n),t)):(n.clearAll&&ci.removeInstances(this.graph),null)}},{key:"createKnob",value:function(e,t){var n=this,r=hi.parseOptionGroup(this.graph,e,this.options.knob),i=Object.assign(Object.assign({},r),t);i.clearAll&&Hr.removeInstances(this.graph),i.clearAll=!1;var o=e.prop("knob"),a=[],s=Array.isArray(o)?o:[o];return s.forEach((function(t,o){t&&!1!==t.enabled&&("function"===typeof t.enabled&&!1===t.enabled.call(n.graph,e)||r.enabled&&a.push(new Hr(Object.assign({node:e,index:o,graph:n.graph},i))))})),a}},{key:"getTransformOptions",value:function(e){var t=hi.parseOptionGroup(this.graph,e,this.options.resizing),n=hi.parseOptionGroup(this.graph,e,this.options.rotating),r=hi.parseOptionGroup(this.graph,e,this.options.transforming),i=Object.assign(Object.assign({},r),{resizable:t.enabled,minWidth:t.minWidth,maxWidth:t.maxWidth,minHeight:t.minHeight,maxHeight:t.maxHeight,orthogonalResizing:t.orthogonal,restrictedResizing:null!=t.restrict?t.restrict:t.restricted,autoScrollOnResizing:t.autoScroll,preserveAspectRatio:t.preserveAspectRatio,allowReverse:t.allowReverse,rotatable:n.enabled,rotateGrid:n.grid});return i}},{key:"createTransformManager",value:function(){return new Ti(this.graph)}},{key:"createHighlightManager",value:function(){return new Mi(this.graph)}},{key:"createBackgroundManager",value:function(){return new ei(this.graph)}},{key:"createClipboard",value:function(){return new ao}},{key:"createClipboardManager",value:function(){return new Ai(this.graph)}},{key:"createSnapline",value:function(){return new Jr(Object.assign({graph:this.graph},this.options.snapline))}},{key:"createSnaplineManager",value:function(){return new wi(this.graph)}},{key:"createSelection",value:function(){return new li(Object.assign({graph:this.graph},this.options.selecting))}},{key:"createSelectionManager",value:function(){return new Ni(this.graph)}},{key:"allowRubberband",value:function(e){return!0}},{key:"createHistoryManager",value:function(){return new Ri(Object.assign({graph:this.graph},this.options.history))}},{key:"createScroller",value:function(){return this.options.scroller.enabled?new ii(Object.assign({graph:this.graph},this.options.scroller)):null}},{key:"createScrollerManager",value:function(){return new ki(this.graph)}},{key:"allowPanning",value:function(e){return!0}},{key:"createMiniMap",value:function(){var e=this.options.minimap,t=e.enabled,n=to(e,["enabled"]);return t?new Wr(Object.assign({graph:this.graph},n)):null}},{key:"createMiniMapManager",value:function(){return new zi(this.graph)}},{key:"createKeyboard",value:function(){return new Gi(Object.assign({graph:this.graph},this.options.keyboard))}},{key:"createMouseWheel",value:function(){return new Ui(Object.assign({graph:this.graph},this.options.mousewheel))}},{key:"createPrintManager",value:function(){return new $i(this.graph)}},{key:"createFormatManager",value:function(){return new Wi(this.graph)}},{key:"createPanningManager",value:function(){return new Ji(this.graph)}},{key:"createSizeManager",value:function(){return new Ki(this.graph)}},{key:"allowConnectToBlank",value:function(e){var t=this.options.connecting,n=null!=t.allowBlank?t.allowBlank:t.dangling;if("function"!==typeof n)return!!n;var r=this.graph.findViewByCell(e),i=e.getSourceCell(),o=e.getTargetCell(),a=this.graph.findViewByCell(i),s=this.graph.findViewByCell(o);return O["d"].call(n,this.graph,{edge:e,edgeView:r,sourceCell:i,targetCell:o,sourceView:a,targetView:s,sourcePort:e.getSourcePortId(),targetPort:e.getTargetPortId(),sourceMagnet:r.sourceMagnet,targetMagnet:r.targetMagnet})}},{key:"validateEdge",value:function(e,t,n){if(!this.allowConnectToBlank(e)){var r=e.getSourceCellId(),i=e.getTargetCellId();if(!r||!i)return!1}var o=this.options.connecting.validateEdge;return!o||O["d"].call(o,this.graph,{edge:e,type:t,previous:n})}},{key:"validateMagnet",value:function(e,t,n){if("passive"!==t.getAttribute("magnet")){var r=this.options.connecting.validateMagnet;return!r||O["d"].call(r,this.graph,{e:n,magnet:t,view:e,cell:e.cell})}return!1}},{key:"getDefaultEdge",value:function(e,t){var n,r=this.options.connecting.createEdge;return r&&(n=O["d"].call(r,this.graph,{sourceMagnet:t,sourceView:e,sourceCell:e.cell})),null==n&&(n=new Cr),n}},{key:"validateConnection",value:function(e,t,n,r,i,o,a){var s=this,l=this.options.connecting,u=l.allowLoop,c=l.allowNode,h=l.allowEdge,d=l.allowPort,f=null!=l.allowMulti?l.allowMulti:l.multi,g=l.validateConnection,p=o?o.cell:null,v="target"===i?n:e,y="target"===i?r:t,m=!0,b=function(l){var u="source"===i?a?a.port:null:p?p.getSourcePortId():null,c="target"===i?a?a.port:null:p?p.getTargetPortId():null;return O["d"].call(l,s.graph,{edge:p,edgeView:o,sourceView:e,targetView:n,sourcePort:u,targetPort:c,sourceMagnet:t,targetMagnet:r,sourceCell:e?e.cell:null,targetCell:n?n.cell:null,type:i})};if(null!=u&&("boolean"===typeof u?u||e!==n||(m=!1):m=b(u)),m&&null!=d&&("boolean"===typeof d?!d&&y&&(m=!1):m=b(d)),m&&null!=h&&("boolean"===typeof h?!h&&ar.isEdgeView(v)&&(m=!1):m=b(h)),m&&null!=c&&("boolean"===typeof c?c||null==v||sr.isNodeView(v)&&null==y&&(m=!1):m=b(c)),m&&null!=f&&o){var x=o.cell,w="source"===i?a:x.getSource(),C="target"===i?a:x.getTarget(),k=a?this.graph.getCellById(a.cell):null;if(w&&C&&w.cell&&C.cell&&k)if("function"===typeof f)m=b(f);else{var E=this.model.getConnectedEdges(k,{outgoing:"source"===i,incoming:"target"===i});if(E.length)if("withPort"===f){var S=E.some((function(e){var t=e.getSource(),n=e.getTarget();return t&&n&&t.cell===w.cell&&n.cell===C.cell&&null!=t.port&&t.port===w.port&&null!=n.port&&n.port===C.port}));S&&(m=!1)}else if(!f){var A=E.some((function(e){var t=e.getSource(),n=e.getTarget();return t&&n&&t.cell===w.cell&&n.cell===C.cell}));A&&(m=!1)}}}return m&&null!=g&&(m=b(g)),m}},{key:"getRestrictArea",value:function(e){var t=this.options.translating.restrict,n="function"===typeof t?O["d"].call(t,this.graph,e):t;return"number"===typeof n?this.graph.transform.getGraphArea().inflate(n):!0===n?this.graph.transform.getGraphArea():n||null}},{key:"onViewUpdated",value:function(e,t,n){t&Kr.FLAG_INSERT||n.mounting||this.graph.renderer.requestConnectedEdgesUpdate(e,n)}},{key:"onViewPostponed",value:function(e,t,n){return this.graph.renderer.forcePostponedViewUpdate(e,t)}},{key:"getCellView",value:function(e){return null}},{key:"createCellView",value:function(e){var t={graph:this.graph},n=this.getCellView(e);if(n)return new n(e,t);var r=e.view;if(null!=r&&"string"===typeof r){var i=nr["a"].registry.get(r);return i?new i(e,t):nr["a"].registry.onNotFound(r)}return e.isNode()?new sr(e,t):e.isEdge()?new ar(e,t):null}},{key:"getHTMLComponent",value:function(e){var t=e.getHTML();return"string"===typeof t&&(t=kr.componentRegistry.get(t)||t),O["g"].isPlainObject(t)&&(t=t.render),"function"===typeof t?O["d"].call(t,this.graph,e):t}},{key:"shouldUpdateHTMLComponent",value:function(e){var t=e.getHTML();if("string"===typeof t&&(t=kr.componentRegistry.get(t)||t),O["g"].isPlainObject(t)){var n=t.shouldComponentUpdate;return"function"===typeof n?O["d"].call(n,this.graph,e):!!n}return!1}},{key:"onEdgeLabelRendered",value:function(e){}},{key:"onPortRendered",value:function(e){}},{key:"onToolItemCreated",value:function(e){}}]),n}(Mr);eo([Qi.hook()],no.prototype,"createModel",null),eo([Qi.hook()],no.prototype,"createView",null),eo([Qi.hook()],no.prototype,"createRenderer",null),eo([Qi.hook()],no.prototype,"createDefsManager",null),eo([Qi.hook()],no.prototype,"createGridManager",null),eo([Qi.hook()],no.prototype,"createCoordManager",null),eo([Qi.hook()],no.prototype,"createKnobManager",null),eo([Qi.hook()],no.prototype,"createTransform",null),eo([Qi.hook()],no.prototype,"createKnob",null),eo([Qi.hook()],no.prototype,"createTransformManager",null),eo([Qi.hook()],no.prototype,"createHighlightManager",null),eo([Qi.hook()],no.prototype,"createBackgroundManager",null),eo([Qi.hook()],no.prototype,"createClipboard",null),eo([Qi.hook()],no.prototype,"createClipboardManager",null),eo([Qi.hook()],no.prototype,"createSnapline",null),eo([Qi.hook()],no.prototype,"createSnaplineManager",null),eo([Qi.hook()],no.prototype,"createSelection",null),eo([Qi.hook()],no.prototype,"createSelectionManager",null),eo([Qi.hook()],no.prototype,"allowRubberband",null),eo([Qi.hook()],no.prototype,"createHistoryManager",null),eo([Qi.hook()],no.prototype,"createScroller",null),eo([Qi.hook()],no.prototype,"createScrollerManager",null),eo([Qi.hook()],no.prototype,"allowPanning",null),eo([Qi.hook()],no.prototype,"createMiniMap",null),eo([Qi.hook()],no.prototype,"createMiniMapManager",null),eo([Qi.hook()],no.prototype,"createKeyboard",null),eo([Qi.hook()],no.prototype,"createMouseWheel",null),eo([Qi.hook()],no.prototype,"createPrintManager",null),eo([Qi.hook()],no.prototype,"createFormatManager",null),eo([Qi.hook()],no.prototype,"createPanningManager",null),eo([Qi.hook()],no.prototype,"createSizeManager",null),eo([Qi.after()],no.prototype,"onViewUpdated",null),eo([Qi.after()],no.prototype,"onViewPostponed",null),eo([Qi.hook()],no.prototype,"getCellView",null),eo([Qi.hook(!0)],no.prototype,"createCellView",null),eo([Qi.hook()],no.prototype,"getHTMLComponent",null),eo([Qi.hook()],no.prototype,"shouldUpdateHTMLComponent",null),eo([Qi.hook()],no.prototype,"onEdgeLabelRendered",null),eo([Qi.hook()],no.prototype,"onPortRendered",null),eo([Qi.hook()],no.prototype,"onToolItemCreated",null);var ro=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},io=function(e,t){u(r,e);var n=c(r);function r(e){var t;return f(this,r),t=n.call(this),t.options=hi.get(e),t.css=new Fr(a(t)),t.hook=new no(a(t)),t.view=t.hook.createView(),t.defs=t.hook.createDefsManager(),t.coord=t.hook.createCoordManager(),t.transform=t.hook.createTransformManager(),t.knob=t.hook.createKnobManager(),t.highlight=t.hook.createHighlightManager(),t.grid=t.hook.createGridManager(),t.background=t.hook.createBackgroundManager(),t.model=t.hook.createModel(),t.renderer=t.hook.createRenderer(),t.clipboard=t.hook.createClipboardManager(),t.snapline=t.hook.createSnaplineManager(),t.selection=t.hook.createSelectionManager(),t.history=t.hook.createHistoryManager(),t.scroller=t.hook.createScrollerManager(),t.minimap=t.hook.createMiniMapManager(),t.keyboard=t.hook.createKeyboard(),t.mousewheel=t.hook.createMouseWheel(),t.print=t.hook.createPrintManager(),t.format=t.hook.createFormatManager(),t.panning=t.hook.createPanningManager(),t.size=t.hook.createSizeManager(),t}return g(r,[{key:"container",get:function(){return this.view.container}},{key:t,get:function(){return r.toStringTag}},{key:"isNode",value:function(e){return e.isNode()}},{key:"isEdge",value:function(e){return e.isEdge()}},{key:"resetCells",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.resetCells(e,t),this}},{key:"clearCells",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.model.clear(e),this}},{key:"toJSON",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.model.toJSON(e)}},{key:"parseJSON",value:function(e){return this.model.parseJSON(e)}},{key:"fromJSON",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.fromJSON(e,t),this}},{key:"getCellById",value:function(e){return this.model.getCell(e)}},{key:"addNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.addNode(e,t)}},{key:"addNodes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.addCell(e.map((function(e){return qn.isNode(e)?e:t.createNode(e)})),n)}},{key:"createNode",value:function(e){return this.model.createNode(e)}},{key:"removeNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.removeCell(e,t)}},{key:"addEdge",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.addEdge(e,t)}},{key:"addEdges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.addCell(e.map((function(e){return ir.isEdge(e)?e:t.createEdge(e)})),n)}},{key:"removeEdge",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.removeCell(e,t)}},{key:"createEdge",value:function(e){return this.model.createEdge(e)}},{key:"addCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.addCell(e,t),this}},{key:"removeCell",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.removeCell(e,t)}},{key:"removeCells",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.removeCells(e,t)}},{key:"removeConnectedEdges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.removeConnectedEdges(e,t)}},{key:"disconnectConnectedEdges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.disconnectConnectedEdges(e,t),this}},{key:"hasCell",value:function(e){return this.model.has(e)}},{key:"getCell",value:function(e){return this.model.getCell(e)}},{key:"getCells",value:function(){return this.model.getCells()}},{key:"getCellCount",value:function(){return this.model.total()}},{key:"getNodes",value:function(){return this.model.getNodes()}},{key:"getEdges",value:function(){return this.model.getEdges()}},{key:"getOutgoingEdges",value:function(e){return this.model.getOutgoingEdges(e)}},{key:"getIncomingEdges",value:function(e){return this.model.getIncomingEdges(e)}},{key:"getConnectedEdges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.getConnectedEdges(e,t)}},{key:"getRootNodes",value:function(){return this.model.getRoots()}},{key:"getLeafNodes",value:function(){return this.model.getLeafs()}},{key:"isRootNode",value:function(e){return this.model.isRoot(e)}},{key:"isLeafNode",value:function(e){return this.model.isLeaf(e)}},{key:"getNeighbors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.getNeighbors(e,t)}},{key:"isNeighbor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.model.isNeighbor(e,t,n)}},{key:"getSuccessors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.getSuccessors(e,t)}},{key:"isSuccessor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.model.isSuccessor(e,t,n)}},{key:"getPredecessors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.getPredecessors(e,t)}},{key:"isPredecessor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.model.isPredecessor(e,t,n)}},{key:"getCommonAncestor",value:function(){var e;return(e=this.model).getCommonAncestor.apply(e,arguments)}},{key:"getSubGraph",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.getSubGraph(e,t)}},{key:"cloneSubGraph",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.cloneSubGraph(e,t)}},{key:"cloneCells",value:function(e){return this.model.cloneCells(e)}},{key:"getNodesFromPoint",value:function(e,t){return this.model.getNodesFromPoint(e,t)}},{key:"getNodesInArea",value:function(e,t,n,r,i){return this.model.getNodesInArea(e,t,n,r,i)}},{key:"getNodesUnderNode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.getNodesUnderNode(e,t)}},{key:"searchCell",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.model.search(e,t,n),this}},{key:"getShortestPath",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.model.getShortestPath(e,t,n)}},{key:"getAllCellsBBox",value:function(){return this.model.getAllCellsBBox()}},{key:"getCellsBBox",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.model.getCellsBBox(e,t)}},{key:"startBatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.model.startBatch(e,t)}},{key:"stopBatch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.model.stopBatch(e,t)}},{key:"batchUpdate",value:function(e,t,n){var r="string"===typeof e?e:"update",i="string"===typeof e?t:e,o="function"===typeof t?n:t;this.startBatch(r,o);var a=i();return this.stopBatch(r,o),a}},{key:"isFrozen",value:function(){return this.renderer.isFrozen()}},{key:"freeze",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.renderer.freeze(e),this}},{key:"unfreeze",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.renderer.unfreeze(e),this}},{key:"isAsync",value:function(){return this.renderer.isAsync()}},{key:"setAsync",value:function(e){return this.renderer.setAsync(e),this}},{key:"findView",value:function(e){return Gn.isCell(e)?this.findViewByCell(e):this.findViewByElem(e)}},{key:"findViews",value:function(e){return K["h"].isRectangleLike(e)?this.findViewsInArea(e):K["f"].isPointLike(e)?this.findViewsFromPoint(e):[]}},{key:"findViewByCell",value:function(e){return this.renderer.findViewByCell(e)}},{key:"findViewByElem",value:function(e){return this.renderer.findViewByElem(e)}},{key:"findViewsFromPoint",value:function(e,t){var n="number"===typeof e?{x:e,y:t}:e;return this.renderer.findViewsFromPoint(n)}},{key:"findViewsInArea",value:function(e,t,n,r,i){var o="number"===typeof e?{x:e,y:t,width:n,height:r}:e,a="number"===typeof e?i:t;return this.renderer.findViewsInArea(o,a)}},{key:"isViewMounted",value:function(e){return this.renderer.isViewMounted(e)}},{key:"getMountedViews",value:function(){return this.renderer.getMountedViews()}},{key:"getUnmountedViews",value:function(){return this.renderer.getUnmountedViews()}},{key:"matrix",value:function(e){return"undefined"===typeof e?this.transform.getMatrix():(this.transform.setMatrix(e),this)}},{key:"resize",value:function(e,t){return this.size.resize(e,t),this}},{key:"resizeGraph",value:function(e,t){return this.size.resizeGraph(e,t),this}},{key:"resizeScroller",value:function(e,t){return this.size.resizeScroller(e,t),this}},{key:"resizePage",value:function(e,t){return this.size.resizePage(e,t),this}},{key:"scale",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return"undefined"===typeof e?this.transform.getScale():(this.transform.scale(e,t,n,r),this)}},{key:"zoom",value:function(e,t){var n=this.scroller.widget;if(n){if("undefined"===typeof e)return n.zoom();n.zoom(e,t)}else{if("undefined"===typeof e)return this.transform.getZoom();this.transform.zoom(e,t)}return this}},{key:"zoomTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.scroller.widget;n?n.zoom(e,Object.assign(Object.assign({},t),{absolute:!0})):this.transform.zoom(e,Object.assign(Object.assign({},t),{absolute:!0}))}},{key:"zoomToRect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.scroller.widget;return n?n.zoomToRect(e,t):this.transform.zoomToRect(e,t),this}},{key:"zoomToFit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.scroller.widget;return t?t.zoomToFit(e):this.transform.zoomToFit(e),this}},{key:"rotate",value:function(e,t,n){return"undefined"===typeof e?this.transform.getRotation():(this.transform.rotate(e,t,n),this)}},{key:"translate",value:function(e,t){return"undefined"===typeof e?this.transform.getTranslation():(this.transform.translate(e,t),this)}},{key:"translateBy",value:function(e,t){var n=this.translate(),r=n.tx+e,i=n.ty+t;return this.translate(r,i)}},{key:"getArea",value:function(){return this.transform.getGraphArea()}},{key:"getGraphArea",value:function(){return this.transform.getGraphArea()}},{key:"getContentArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.transform.getContentArea(e)}},{key:"getContentBBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.transform.getContentBBox(e)}},{key:"fitToContent",value:function(e,t,n,r){return this.transform.fitToContent(e,t,n,r)}},{key:"scaleContentToFit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.transform.scaleContentToFit(e),this}},{key:"center",value:function(e){return this.centerPoint(e)}},{key:"centerPoint",value:function(e,t,n){var r=this.scroller.widget;return r?r.centerPoint(e,t,n):this.transform.centerPoint(e,t),this}},{key:"centerContent",value:function(e){var t=this.scroller.widget;return t?t.centerContent(e):this.transform.centerContent(e),this}},{key:"centerCell",value:function(e,t){var n=this.scroller.widget;return n?n.centerCell(e,t):this.transform.centerCell(e),this}},{key:"positionPoint",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=this.scroller.widget;return i?i.positionPoint(e,t,n,r):this.transform.positionPoint(e,t,n),this}},{key:"positionRect",value:function(e,t,n){var r=this.scroller.widget;return r?r.positionRect(e,t,n):this.transform.positionRect(e,t),this}},{key:"positionCell",value:function(e,t,n){var r=this.scroller.widget;return r?r.positionCell(e,t,n):this.transform.positionCell(e,t),this}},{key:"positionContent",value:function(e,t){var n=this.scroller.widget;return n?n.positionContent(e,t):this.transform.positionContent(e,t),this}},{key:"getClientMatrix",value:function(){return this.coord.getClientMatrix()}},{key:"getClientOffset",value:function(){return this.coord.getClientOffset()}},{key:"getPageOffset",value:function(){return this.coord.getPageOffset()}},{key:"snapToGrid",value:function(e,t){return this.coord.snapToGrid(e,t)}},{key:"pageToLocal",value:function(e,t,n,r){return K["h"].isRectangleLike(e)?this.coord.pageToLocalRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r?this.coord.pageToLocalRect(e,t,n,r):this.coord.pageToLocalPoint(e,t)}},{key:"localToPage",value:function(e,t,n,r){return K["h"].isRectangleLike(e)?this.coord.localToPageRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r?this.coord.localToPageRect(e,t,n,r):this.coord.localToPagePoint(e,t)}},{key:"clientToLocal",value:function(e,t,n,r){return K["h"].isRectangleLike(e)?this.coord.clientToLocalRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r?this.coord.clientToLocalRect(e,t,n,r):this.coord.clientToLocalPoint(e,t)}},{key:"localToClient",value:function(e,t,n,r){return K["h"].isRectangleLike(e)?this.coord.localToClientRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r?this.coord.localToClientRect(e,t,n,r):this.coord.localToClientPoint(e,t)}},{key:"localToGraph",value:function(e,t,n,r){return K["h"].isRectangleLike(e)?this.coord.localToGraphRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r?this.coord.localToGraphRect(e,t,n,r):this.coord.localToGraphPoint(e,t)}},{key:"graphToLocal",value:function(e,t,n,r){return K["h"].isRectangleLike(e)?this.coord.graphToLocalRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r?this.coord.graphToLocalRect(e,t,n,r):this.coord.graphToLocalPoint(e,t)}},{key:"clientToGraph",value:function(e,t,n,r){return K["h"].isRectangleLike(e)?this.coord.clientToGraphRect(e):"number"===typeof e&&"number"===typeof t&&"number"===typeof n&&"number"===typeof r?this.coord.clientToGraphRect(e,t,n,r):this.coord.clientToGraphPoint(e,t)}},{key:"defineFilter",value:function(e){return this.defs.filter(e)}},{key:"defineGradient",value:function(e){return this.defs.gradient(e)}},{key:"defineMarker",value:function(e){return this.defs.marker(e)}},{key:"getGridSize",value:function(){return this.grid.getGridSize()}},{key:"setGridSize",value:function(e){return this.grid.setGridSize(e),this}},{key:"showGrid",value:function(){return this.grid.show(),this}},{key:"hideGrid",value:function(){return this.grid.hide(),this}},{key:"clearGrid",value:function(){return this.grid.clear(),this}},{key:"drawGrid",value:function(e){return this.grid.draw(e),this}},{key:"updateBackground",value:function(){return this.background.update(),this}},{key:"drawBackground",value:function(e,t){var n=this.scroller.widget;return null==n||null!=this.options.background&&t?this.background.draw(e):n.backgroundManager.draw(e),this}},{key:"clearBackground",value:function(e){var t=this.scroller.widget;return null==t||null!=this.options.background&&e?this.background.clear():t.backgroundManager.clear(),this}},{key:"isClipboardEnabled",value:function(){return!this.clipboard.disabled}},{key:"enableClipboard",value:function(){return this.clipboard.enable(),this}},{key:"disableClipboard",value:function(){return this.clipboard.disable(),this}},{key:"toggleClipboard",value:function(e){return null!=e?e!==this.isClipboardEnabled()&&(e?this.enableClipboard():this.disableClipboard()):this.isClipboardEnabled()?this.disableClipboard():this.enableClipboard(),this}},{key:"isClipboardEmpty",value:function(){return this.clipboard.isEmpty()}},{key:"getCellsInClipboard",value:function(){return this.clipboard.cells}},{key:"cleanClipboard",value:function(){return this.clipboard.clean(),this}},{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.clipboard.copy(e,t),this}},{key:"cut",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.clipboard.cut(e,t),this}},{key:"paste",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;return this.clipboard.paste(e,t)}},{key:"isHistoryEnabled",value:function(){return!this.history.disabled}},{key:"enableHistory",value:function(){return this.history.enable(),this}},{key:"disableHistory",value:function(){return this.history.disable(),this}},{key:"toggleHistory",value:function(e){return null!=e?e!==this.isHistoryEnabled()&&(e?this.enableHistory():this.disableHistory()):this.isHistoryEnabled()?this.disableHistory():this.enableHistory(),this}},{key:"undo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.history.undo(e),this}},{key:"undoAndCancel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.history.cancel(e),this}},{key:"redo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.history.redo(e),this}},{key:"canUndo",value:function(){return this.history.canUndo()}},{key:"canRedo",value:function(){return this.history.canRedo()}},{key:"cleanHistory",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.history.clean(e)}},{key:"isKeyboardEnabled",value:function(){return!this.keyboard.disabled}},{key:"enableKeyboard",value:function(){return this.keyboard.enable(),this}},{key:"disableKeyboard",value:function(){return this.keyboard.disable(),this}},{key:"toggleKeyboard",value:function(e){return null!=e?e!==this.isKeyboardEnabled()&&(e?this.enableKeyboard():this.disableKeyboard()):this.isKeyboardEnabled()?this.disableKeyboard():this.enableKeyboard(),this}},{key:"bindKey",value:function(e,t,n){return this.keyboard.on(e,t,n),this}},{key:"unbindKey",value:function(e,t){return this.keyboard.off(e,t),this}},{key:"isMouseWheelEnabled",value:function(){return!this.mousewheel.disabled}},{key:"enableMouseWheel",value:function(){return this.mousewheel.enable(),this}},{key:"disableMouseWheel",value:function(){return this.mousewheel.disable(),this}},{key:"toggleMouseWheel",value:function(e){return null==e?this.isMouseWheelEnabled()?this.disableMouseWheel():this.enableMouseWheel():e?this.enableMouseWheel():this.disableMouseWheel(),this}},{key:"isPannable",value:function(){var e=this.scroller.widget;return e?this.scroller.pannable:this.panning.pannable}},{key:"enablePanning",value:function(){var e=this.scroller.widget;return e?this.scroller.enablePanning():this.panning.enablePanning(),this}},{key:"disablePanning",value:function(){var e=this.scroller.widget;return e?this.scroller.disablePanning():this.panning.disablePanning(),this}},{key:"togglePanning",value:function(e){return null==e?this.isPannable()?this.disablePanning():this.enablePanning():e!==this.isPannable()&&(e?this.enablePanning():this.disablePanning()),this}},{key:"lockScroller",value:function(){var e;null===(e=this.scroller.widget)||void 0===e||e.lock()}},{key:"unlockScroller",value:function(){var e;null===(e=this.scroller.widget)||void 0===e||e.unlock()}},{key:"updateScroller",value:function(){var e;null===(e=this.scroller.widget)||void 0===e||e.update()}},{key:"getScrollbarPosition",value:function(){var e=this.scroller.widget;return e.scrollbarPosition()}},{key:"setScrollbarPosition",value:function(e,t,n){var r=this.scroller.widget;return r.scrollbarPosition(e,t,n),this}},{key:"scrollToPoint",value:function(e,t,n){var r=this.scroller.widget;return r.scrollToPoint(e,t,n),this}},{key:"scrollToContent",value:function(e){var t=this.scroller.widget;return t.scrollToContent(e),this}},{key:"scrollToCell",value:function(e,t){var n=this.scroller.widget;return n.scrollToCell(e,t),this}},{key:"transitionToPoint",value:function(e,t,n){var r=this.scroller.widget;return r.transitionToPoint(e,t,n),this}},{key:"transitionToRect",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.scroller.widget;return n.transitionToRect(e,t),this}},{key:"isSelectionEnabled",value:function(){return!this.selection.disabled}},{key:"enableSelection",value:function(){return this.selection.enable(),this}},{key:"disableSelection",value:function(){return this.selection.disable(),this}},{key:"toggleSelection",value:function(e){return null!=e?e!==this.isSelectionEnabled()&&(e?this.enableSelection():this.disableSelection()):this.isSelectionEnabled()?this.disableSelection():this.enableSelection(),this}},{key:"isMultipleSelection",value:function(){return this.selection.isMultiple()}},{key:"enableMultipleSelection",value:function(){return this.selection.enableMultiple(),this}},{key:"disableMultipleSelection",value:function(){return this.selection.disableMultiple(),this}},{key:"toggleMultipleSelection",value:function(e){return null!=e?e!==this.isMultipleSelection()&&(e?this.enableMultipleSelection():this.disableMultipleSelection()):this.isMultipleSelection()?this.disableMultipleSelection():this.enableMultipleSelection(),this}},{key:"isSelectionMovable",value:function(){return!1!==this.selection.widget.options.movable}},{key:"enableSelectionMovable",value:function(){return this.selection.widget.options.movable=!0,this}},{key:"disableSelectionMovable",value:function(){return this.selection.widget.options.movable=!1,this}},{key:"toggleSelectionMovable",value:function(e){return null!=e?e!==this.isSelectionMovable()&&(e?this.enableSelectionMovable():this.disableSelectionMovable()):this.isSelectionMovable()?this.disableSelectionMovable():this.enableSelectionMovable(),this}},{key:"isRubberbandEnabled",value:function(){return!this.selection.rubberbandDisabled}},{key:"enableRubberband",value:function(){return this.selection.enableRubberband(),this}},{key:"disableRubberband",value:function(){return this.selection.disableRubberband(),this}},{key:"toggleRubberband",value:function(e){return null!=e?e!==this.isRubberbandEnabled()&&(e?this.enableRubberband():this.disableRubberband()):this.isRubberbandEnabled()?this.disableRubberband():this.enableRubberband(),this}},{key:"isStrictRubberband",value:function(){return!0===this.selection.widget.options.strict}},{key:"enableStrictRubberband",value:function(){return this.selection.widget.options.strict=!0,this}},{key:"disableStrictRubberband",value:function(){return this.selection.widget.options.strict=!1,this}},{key:"toggleStrictRubberband",value:function(e){return null!=e?e!==this.isStrictRubberband()&&(e?this.enableStrictRubberband():this.disableStrictRubberband()):this.isStrictRubberband()?this.disableStrictRubberband():this.enableStrictRubberband(),this}},{key:"setRubberbandModifiers",value:function(e){this.selection.setModifiers(e)}},{key:"setSelectionFilter",value:function(e){return this.selection.setFilter(e),this}},{key:"setSelectionDisplayContent",value:function(e){return this.selection.setContent(e),this}},{key:"isSelectionEmpty",value:function(){return this.selection.isEmpty()}},{key:"cleanSelection",value:function(e){return this.selection.clean(e),this}},{key:"resetSelection",value:function(e,t){return this.selection.reset(e,t),this}},{key:"getSelectedCells",value:function(){return this.selection.cells}},{key:"getSelectedCellCount",value:function(){return this.selection.length}},{key:"isSelected",value:function(e){return this.selection.isSelected(e)}},{key:"select",value:function(e,t){return this.selection.select(e,t),this}},{key:"unselect",value:function(e,t){return this.selection.unselect(e,t),this}},{key:"isSnaplineEnabled",value:function(){return!this.snapline.widget.disabled}},{key:"enableSnapline",value:function(){return this.snapline.widget.enable(),this}},{key:"disableSnapline",value:function(){return this.snapline.widget.disable(),this}},{key:"toggleSnapline",value:function(e){if(null==e)return this.isSnaplineEnabled()?this.disableSnapline():this.enableSnapline(),this;e!==this.isSnaplineEnabled()&&(e?this.enableSnapline():this.disableSnapline())}},{key:"hideSnapline",value:function(){return this.snapline.widget.hide(),this}},{key:"setSnaplineFilter",value:function(e){return this.snapline.widget.setFilter(e),this}},{key:"isSnaplineOnResizingEnabled",value:function(){return!0===this.snapline.widget.options.resizing}},{key:"enableSnaplineOnResizing",value:function(){return this.snapline.widget.options.resizing=!0,this}},{key:"disableSnaplineOnResizing",value:function(){return this.snapline.widget.options.resizing=!1,this}},{key:"toggleSnaplineOnResizing",value:function(e){return null!=e?e!==this.isSnaplineOnResizingEnabled()&&(e?this.enableSnaplineOnResizing():this.disableSnaplineOnResizing()):this.isSnaplineOnResizingEnabled()?this.disableSnaplineOnResizing():this.enableSnaplineOnResizing(),this}},{key:"isSharpSnapline",value:function(){return!0===this.snapline.widget.options.sharp}},{key:"enableSharpSnapline",value:function(){return this.snapline.widget.options.sharp=!0,this}},{key:"disableSharpSnapline",value:function(){return this.snapline.widget.options.sharp=!1,this}},{key:"toggleSharpSnapline",value:function(e){return null!=e?e!==this.isSharpSnapline()&&(e?this.enableSharpSnapline():this.disableSharpSnapline()):this.isSharpSnapline()?this.disableSharpSnapline():this.enableSharpSnapline(),this}},{key:"getSnaplineTolerance",value:function(){return this.snapline.widget.options.tolerance}},{key:"setSnaplineTolerance",value:function(e){return this.snapline.widget.options.tolerance=e,this}},{key:"removeTools",value:function(){return this.emit("tools:remove"),this}},{key:"hideTools",value:function(){return this.emit("tools:hide"),this}},{key:"showTools",value:function(){return this.emit("tools:show"),this}},{key:"toSVG",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.format.toSVG(e,t)}},{key:"toDataURL",value:function(e,t){this.format.toDataURL(e,t)}},{key:"toPNG",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.format.toPNG(e,t)}},{key:"toJPEG",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.format.toJPEG(e,t)}},{key:"printPreview",value:function(e){this.print.show(e)}},{key:"dispose",value:function(){this.clearCells(),this.off(),this.css.dispose(),this.hook.dispose(),this.defs.dispose(),this.grid.dispose(),this.coord.dispose(),this.transform.dispose(),this.knob.dispose(),this.highlight.dispose(),this.background.dispose(),this.clipboard.dispose(),this.snapline.dispose(),this.selection.dispose(),this.history.dispose(),this.keyboard.dispose(),this.mousewheel.dispose(),this.print.dispose(),this.format.dispose(),this.minimap.dispose(),this.panning.dispose(),this.scroller.dispose(),this.view.dispose(),this.renderer.dispose(),this.size.dispose()}}]),r}(Fn["a"],Symbol.toStringTag);ro([Ar.checkScroller()],io.prototype,"lockScroller",null),ro([Ar.checkScroller()],io.prototype,"unlockScroller",null),ro([Ar.checkScroller()],io.prototype,"updateScroller",null),ro([Ar.checkScroller()],io.prototype,"getScrollbarPosition",null),ro([Ar.checkScroller()],io.prototype,"setScrollbarPosition",null),ro([Ar.checkScroller()],io.prototype,"scrollToPoint",null),ro([Ar.checkScroller()],io.prototype,"scrollToContent",null),ro([Ar.checkScroller()],io.prototype,"scrollToCell",null),ro([Ar.checkScroller()],io.prototype,"transitionToPoint",null),ro([Ar.checkScroller()],io.prototype,"transitionToRect",null),ro([Fn["a"].dispose()],io.prototype,"dispose",null),function(e){e.View=Nr,e.Hook=no,e.Renderer=Kr,e.Keyboard=Gi,e.MouseWheel=Ui,e.BaseManager=Mr,e.DefsManager=gi,e.GridManager=yi,e.CoordManager=bi,e.PrintManager=$i,e.FormatManager=Wi,e.MiniMapManager=zi,e.HistoryManager=Ri,e.SnaplineManager=wi,e.ScrollerManager=ki,e.ClipboardManager=Ai,e.TransformManager=Ti,e.HighlightManager=Mi,e.BackgroundManager=ei,e.SelectionManager=Ni}(io||(io={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&null!=r.hook&&null!=r.view&&null!=r.model}e.toStringTag="X6.".concat(e.name),e.isGraph=t}(io||(io={})),function(e){function t(t,n){var r=t instanceof HTMLElement?new e({container:t}):new e(t);return null!=n&&r.fromJSON(n),r}e.render=t}(io||(io={})),function(e){e.registerNode=qn.registry.register,e.registerEdge=ir.registry.register,e.registerView=nr["a"].registry.register,e.registerAttr=P["a"].registry.register,e.registerGrid=L.registry.register,e.registerFilter=A.registry.register,e.registerNodeTool=_e["b"].registry.register,e.registerEdgeTool=_e["a"].registry.register,e.registerBackground=X.registry.register,e.registerHighlighter=te.registry.register,e.registerPortLayout=pe.registry.register,e.registerPortLabelLayout=Be.registry.register,e.registerMarker=Ge["a"].registry.register,e.registerRouter=fn.registry.register,e.registerConnector=Dn.registry.register,e.registerAnchor=tt.registry.register,e.registerEdgeAnchor=st.registry.register,e.registerConnectionPoint=wt.registry.register,e.registerConnectionStrategy=jn["a"].registry.register,e.registerHTMLComponent=kr.componentRegistry.register}(io||(io={})),function(e){e.unregisterNode=qn.registry.unregister,e.unregisterEdge=ir.registry.unregister,e.unregisterView=nr["a"].registry.unregister,e.unregisterAttr=P["a"].registry.unregister,e.unregisterGrid=L.registry.unregister,e.unregisterFilter=A.registry.unregister,e.unregisterNodeTool=_e["b"].registry.unregister,e.unregisterEdgeTool=_e["a"].registry.unregister,e.unregisterBackground=X.registry.unregister,e.unregisterHighlighter=te.registry.unregister,e.unregisterPortLayout=pe.registry.unregister,e.unregisterPortLabelLayout=Be.registry.unregister,e.unregisterMarker=Ge["a"].registry.unregister,e.unregisterRouter=fn.registry.unregister,e.unregisterConnector=Dn.registry.unregister,e.unregisterAnchor=tt.registry.unregister,e.unregisterEdgeAnchor=st.registry.unregister,e.unregisterConnectionPoint=wt.registry.unregister,e.unregisterConnectionStrategy=jn["a"].registry.unregister,e.unregisterHTMLComponent=kr.componentRegistry.unregister}(io||(io={}));var oo,ao=function(){function e(){f(this,e),this.cells=[]}return g(e,[{key:"copy",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.options=Object.assign({},n);var r=hr.isModel(t)?t:t.model,i=r.cloneSubGraph(e,n);this.cells=O["a"].sortBy(Object.keys(i).map((function(e){return i[e]})),(function(e){return e.isEdge()?2:1})),this.serialize(n)}},{key:"cut",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.copy(e,t,n);var r=io.isGraph(t)?t.model:t;r.batchUpdate("cut",(function(){e.forEach((function(e){return e.remove()}))}))}},{key:"paste",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign(Object.assign({},this.options),n),i=r.offset,o=r.edgeProps,a=r.nodeProps,s=20,l=20;i&&(s="number"===typeof i?i:i.dx,l="number"===typeof i?i:i.dy),this.deserialize(r);var u=this.cells;u.forEach((function(e){e.model=null,e.removeProp("zIndex"),(s||l)&&e.translate(s,l),a&&e.isNode()&&e.prop(a),o&&e.isEdge()&&e.prop(o)}));var c=io.isGraph(e)?e.model:e;return c.batchUpdate("paste",(function(){c.addCells(t.cells)})),this.copy(u,e,n),u}},{key:"serialize",value:function(e){!1!==e.useLocalStorage&&oo.save(this.cells)}},{key:"deserialize",value:function(e){if(e.useLocalStorage){var t=oo.fetch();t&&(this.cells=t)}}},{key:"isEmpty",value:function(){return this.cells.length<=0}},{key:"clean",value:function(){this.options={},this.cells=[],oo.clean()}}]),e}();(function(e){var t="".concat(Or["a"].prefixCls,".clipboard.cells");function n(e){if(window.localStorage){var n=e.map((function(e){return e.toJSON()}));localStorage.setItem(t,JSON.stringify(n))}}function r(){if(window.localStorage){var e=localStorage.getItem(t),n=e?JSON.parse(e):[];if(n)return hr.fromJSON(n)}}function i(){window.localStorage&&localStorage.removeItem(t)}e.save=n,e.fetch=r,e.clean=i})(oo||(oo={}));var so,lo=function(){function e(t){f(this,e),this.halo=t}return g(e,[{key:"options",get:function(){return this.halo.options}},{key:"graph",get:function(){return this.halo.graph}},{key:"model",get:function(){return this.halo.model}},{key:"view",get:function(){return this.halo.view}},{key:"cell",get:function(){return this.halo.cell}},{key:"node",get:function(){return this.cell}},{key:"getPresets",value:function(){return{className:"type-node",handles:[{name:"remove",position:"nw",events:{mousedown:this.removeCell.bind(this)},icon:null},{name:"resize",position:"se",events:{mousedown:this.startResize.bind(this),mousemove:this.doResize.bind(this),mouseup:this.stopResize.bind(this)},icon:null},{name:"clone",position:"n",events:{mousedown:this.startClone.bind(this),mousemove:this.doClone.bind(this),mouseup:this.stopClone.bind(this)},icon:null},{name:"link",position:"e",events:{mousedown:this.startLink.bind(this),mousemove:this.doLink.bind(this),mouseup:this.stopLink.bind(this)},icon:null},{name:"fork",position:"ne",events:{mousedown:this.startFork.bind(this),mousemove:this.doFork.bind(this),mouseup:this.stopFork.bind(this)},icon:null},{name:"unlink",position:"w",events:{mousedown:this.unlink.bind(this)},icon:null},{name:"rotate",position:"sw",events:{mousedown:this.startRotate.bind(this),mousemove:this.doRotate.bind(this),mouseup:this.stopRotate.bind(this)},icon:null}],bbox:function(e){if(this.options.useCellGeometry){var t=e.cell;return t.getBBox()}return e.getBBox()},content:function(e){var t=O["k"].template("x: <%= x %>, y: <%= y %>, width: <%= width %>, height: <%= height %>, angle: <%= angle %>"),n=e.cell,r=n.getBBox();return t({x:Math.floor(r.x),y:Math.floor(r.y),width:Math.floor(r.width),height:Math.floor(r.height),angle:Math.floor(n.getAngle())})},magnet:function(e){return e.container},tinyThreshold:40,smallThreshold:80,loopEdgePreferredSide:"top",loopEdgeWidth:40,rotateGrid:15,rotateEmbeds:!1}}},{key:"removeCell",value:function(){this.model.removeConnectedEdges(this.cell),this.cell.remove()}},{key:"startLink",value:function(e){var t=e.x,n=e.y;this.halo.startBatch();var r=this.graph,i=this.createEdgeConnectedToSource();i.setTarget({x:t,y:n}),this.model.addEdge(i,{validation:!1,halo:this.halo.cid,async:!1}),r.view.undelegateEvents(),this.edgeView=r.renderer.findViewByCell(i),this.edgeView.prepareArrowheadDragging("target",{x:t,y:n,fallbackAction:"remove"})}},{key:"createEdgeConnectedToSource",value:function(){var e=this.getMagnet(this.view,"source"),t=this.getEdgeTerminal(this.view,e),n=this.graph.hook.getDefaultEdge(this.view,e);return n.setSource(t),n}},{key:"getMagnet",value:function(e,t){var n=this.options.magnet;if("function"===typeof n){var r=O["d"].call(n,this.halo,e,t);if(r instanceof SVGElement)return r}throw new Error("`magnet()` has to return an SVGElement")}},{key:"getEdgeTerminal",value:function(e,t){var n={cell:e.cell.id};if(t!==e.container){var r=t.getAttribute("port");r?n.port=r:n.selector=e.getSelector(t)}return n}},{key:"doLink",value:function(e){var t=e.e,n=e.x,r=e.y;this.edgeView&&this.edgeView.onMouseMove(t,n,r)}},{key:"stopLink",value:function(e){var t=e.e,n=e.x,r=e.y,i=this.edgeView;if(i){i.onMouseUp(t,n,r);var o=i.cell;o.hasLoop()&&this.makeLoopEdge(o),this.halo.stopBatch(),this.halo.trigger("action:edge:addde",{edge:o}),this.edgeView=null}this.graph.view.delegateEvents()}},{key:"makeLoopEdge",value:function(e){var t=null,n=null,r=this.options.loopEdgeWidth,i=this.graph.options,o=new K["h"](0,0,i.width,i.height),a=this.graph.graphToLocal(this.view.getBBox()),s=[this.options.loopEdgePreferredSide,"top","bottom","left","right"].some((function(e){var i=null,s=0,l=0;switch(e){case"top":i=new K["f"](a.x+a.width/2,a.y-r),s=r/2;break;case"bottom":i=new K["f"](a.x+a.width/2,a.y+a.height+r),s=r/2;break;case"left":i=new K["f"](a.x-r,a.y+a.height/2),l=r/2;break;case"right":i=new K["f"](a.x+a.width+r,a.y+a.height/2),l=r/2;break;default:break}return!!i&&(t=i.translate(-s,-l),n=i.translate(s,l),o.containsPoint(t)&&o.containsPoint(n))}));s&&t&&n&&e.setVertices([t,n])}},{key:"startResize",value:function(e){var t=e.e;this.halo.startBatch(),this.flip=[1,0,0,1,1,0,0,1][Math.floor(K["a"].normalize(this.node.getAngle())/45)],this.view.addClass("node-resizing"),oi("node:resize",t,this.view)}},{key:"doResize",value:function(e){var t=e.e,n=e.dx,r=e.dy,i=this.node.getSize(),o=Math.max(i.width+(this.flip?n:r),1),a=Math.max(i.height+(this.flip?r:n),1);this.node.resize(o,a,{absolute:!0}),oi("node:resizing",t,this.view)}},{key:"stopResize",value:function(e){var t=e.e;this.view.removeClass("node-resizing"),oi("node:resized",t,this.view),this.halo.stopBatch()}},{key:"startClone",value:function(e){var t=e.e,n=e.x,r=e.y;this.halo.startBatch();var i=this.options,o=i.clone(this.cell,{clone:!0});if(!Gn.isCell(o))throw new Error("option 'clone()' has to return a cell");this.centerNodeAtCursor(o,n,r),this.model.addCell(o,{halo:this.halo.cid,async:!1});var a=this.graph.renderer.findViewByCell(o);a.onMouseDown(t,n,r),this.halo.setEventData(t,{cloneView:a})}},{key:"centerNodeAtCursor",value:function(e,t,n){var r=e.getBBox().getCenter(),i=t-r.x,o=n-r.y;e.translate(i,o)}},{key:"doClone",value:function(e){var t=e.e,n=e.x,r=e.y,i=this.halo.getEventData(t).cloneView;i&&i.onMouseMove(t,n,r)}},{key:"stopClone",value:function(e){var t=e.e,n=e.x,r=e.y,i=this.halo.getEventData(t).cloneView;i&&i.onMouseUp(t,n,r),this.halo.stopBatch()}},{key:"startFork",value:function(e){var t=e.e,n=e.x,r=e.y;this.halo.startBatch();var i=this.options.clone(this.cell,{fork:!0});if(!Gn.isCell(i))throw new Error("option 'clone()' has to return a cell");this.centerNodeAtCursor(i,n,r),this.model.addCell(i,{halo:this.halo.cid,async:!1});var o=this.createEdgeConnectedToSource(),a=this.graph.renderer.findViewByCell(i),s=this.getMagnet(a,"target"),l=this.getEdgeTerminal(a,s);o.setTarget(l),this.model.addEdge(o,{halo:this.halo.cid,async:!1}),a.onMouseDown(t,n,r),this.halo.setEventData(t,{cloneView:a})}},{key:"doFork",value:function(e){var t=e.e,n=e.x,r=e.y,i=this.halo.getEventData(t).cloneView;i&&i.onMouseMove(t,n,r)}},{key:"stopFork",value:function(e){var t=e.e,n=e.x,r=e.y,i=this.halo.getEventData(t).cloneView;i&&i.onMouseUp(t,n,r),this.halo.stopBatch()}},{key:"startRotate",value:function(e){var t=this,n=e.e,r=e.x,i=e.y;this.halo.startBatch();var o=this.node.getBBox().getCenter(),a=[this.node];this.options.rotateEmbeds&&this.node.getDescendants({deep:!0}).reduce((function(e,t){return t.isNode()&&e.push(t),e}),a),this.halo.setEventData(n,{center:o,nodes:a,rotateStartAngles:a.map((function(e){return e.getAngle()})),clientStartAngle:new K["f"](r,i).theta(o)}),a.forEach((function(e){var r=t.graph.findViewByCell(e);r&&(r.addClass("node-rotating"),oi("node:rotate",n,r))}))}},{key:"doRotate",value:function(e){var t=this,n=e.e,r=e.x,i=e.y,o=this.halo.getEventData(n),a=o.clientStartAngle-new K["f"](r,i).theta(o.center);o.nodes.forEach((function(e,r){var i=o.rotateStartAngles[r],s=ne["b"].snapToGrid(i+a,t.options.rotateGrid);e.rotate(s,{absolute:!0,center:o.center,halo:t.halo.cid}),oi("node:rotating",n,t.graph.findViewByCell(e))}))}},{key:"stopRotate",value:function(e){var t=this,n=e.e,r=this.halo.getEventData(n);r.nodes.forEach((function(e){var r=t.graph.findViewByCell(e);r.removeClass("node-rotating"),oi("node:rotated",n,r)})),this.halo.stopBatch()}},{key:"unlink",value:function(){this.halo.startBatch(),this.model.removeConnectedEdges(this.cell),this.halo.stopBatch()}}]),e}(),uo=function(){function e(t){f(this,e),this.halo=t}return g(e,[{key:"options",get:function(){return this.halo.options}},{key:"graph",get:function(){return this.halo.graph}},{key:"model",get:function(){return this.halo.model}},{key:"view",get:function(){return this.halo.view}},{key:"cell",get:function(){return this.halo.cell}},{key:"edge",get:function(){return this.cell}},{key:"getPresets",value:function(){return{className:"type-edge",handles:[{name:"remove",position:"nw",icon:null,events:{mousedown:this.removeEdge.bind(this)}},{name:"direction",position:"se",icon:null,events:{mousedown:this.directionSwap.bind(this)}}],content:!1,bbox:function(e){return e.graph.localToGraph(e.getPointAtRatio(.5))},tinyThreshold:-1,smallThreshold:-1}}},{key:"removeEdge",value:function(){this.cell.remove()}},{key:"directionSwap",value:function(){var e=this.edge.getSource(),t=this.edge.getTarget();this.edge.prop({source:t,target:e})}}]),e}(),co=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"type",get:function(){return this.options.type||"surround"}},{key:"handleOptions",get:function(){return this.options}},{key:"init",value:function(e){this.options=O["g"].merge(n.defaultOptions,this.cell.isNode()?new lo(this).getPresets():this.cell.isEdge()?new uo(this).getPresets():null,e),this.render(),this.initHandles(),this.update(),this.startListening()}},{key:"startListening",value:function(){var e=this.model,t=this.graph,r=this.view.cell;r.on("removed",this.remove,this),e.on("reseted",this.remove,this),t.on("halo:destroy",this.remove,this),e.on("*",this.update,this),t.on("scale",this.update,this),t.on("translate",this.update,this),i(o(n.prototype),"startListening",this).call(this)}},{key:"stopListening",value:function(){var e=this.model,t=this.graph,r=this.view.cell;this.undelegateEvents(),r.off("removed",this.remove,this),e.off("reseted",this.remove,this),t.off("halo:destroy",this.remove,this),e.off("*",this.update,this),t.off("scale",this.update,this),t.off("translate",this.update,this),i(o(n.prototype),"stopListening",this).call(this)}},{key:"render",value:function(){var e=this.options,t=this.prefixClassName("widget-halo");return this.view.addClass(so.NODE_CLS),this.container=document.createElement("div"),this.$container=this.$(this.container).addClass(t).attr("data-shape",this.view.cell.shape),e.className&&this.$container.addClass(e.className),this.$handleContainer=this.$("<div/>").addClass("".concat(t,"-handles")).appendTo(this.container),this.$content=this.$("<div/>").addClass("".concat(t,"-content")).appendTo(this.container),this.$container.appendTo(this.graph.container),this}},{key:"remove",value:function(){return this.stopBatch(),this.view.removeClass(so.NODE_CLS),i(o(n.prototype),"remove",this).call(this)}},{key:"update",value:function(){if(this.isRendered()){this.updateContent();var e=this.getBBox(),t=this.options.tinyThreshold||0,n=this.options.smallThreshold||0;this.$handleContainer.toggleClass("".concat(this.handleClassName,"-tiny"),e.width<t&&e.height<t);var r="".concat(this.handleClassName,"-small");this.$handleContainer.toggleClass(r,!this.$handleContainer.hasClass(r)&&e.width<n&&e.height<n),this.$container.css({width:e.width,height:e.height,left:e.x,top:e.y}),this.hasHandle("unlink")&&this.toggleUnlink(),"surround"!==this.type&&"toolbar"!==this.type||this.hasHandle("fork")&&this.toggleFork()}}},{key:"updateContent",value:function(){var e=this.options.content;if("function"===typeof e){var t=O["d"].call(e,this,this.view,this.$content[0]);t&&this.$content.html(t)}else e?this.$content.html(e):this.$content.remove()}},{key:"getBBox",value:function(){var e=this.view,t=this.options.bbox,n="function"===typeof t?O["d"].call(t,this,e):t;return K["h"].create(Object.assign({x:0,y:0,width:1,height:1},n))}},{key:"removeCell",value:function(){this.cell.remove()}},{key:"toggleFork",value:function(){var e=this.view.cell.clone(),t=this.graph.hook.createCellView(e),n=this.graph.hook.validateConnection(this.view,null,t,null,"target");this.$handleContainer.children(".fork").toggleClass("hidden",!n),t.remove()}},{key:"toggleUnlink",value:function(){var e=this.model.getConnectedEdges(this.view.cell).length>0;this.$handleContainer.children(".unlink").toggleClass("hidden",!e)}},{key:"startBatch",value:function(){this.model.startBatch("halo",{halo:this.cid})}},{key:"stopBatch",value:function(){this.model.hasActiveBatch("halo")&&this.model.stopBatch("halo",{halo:this.cid})}}]),n}(_r);(function(e){e.defaultOptions={type:"surround",clearAll:!0,clearOnBlankMouseDown:!0,useCellGeometry:!1,clone:function(e){return e.clone().removeZIndex()}}})(co||(co={})),Object.getOwnPropertyNames(zr.prototype).forEach((function(e){"constructor"!==e&&Object.defineProperty(co.prototype,e,Object.getOwnPropertyDescriptor(zr.prototype,e))})),function(e){e.NODE_CLS="has-widget-halo"}(so||(so={}));var ho,fo=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===("undefined"===typeof Reflect?"undefined":p(Reflect))&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},go=function(e){u(n,e);var t=c(n);function n(e){var r;return f(this,n),r=t.call(this),r.options=Object.assign(Object.assign({},n.defaults),e),r.container=document.createElement("div"),r.$container=r.$(r.container).addClass(r.prefixClassName("widget-dnd")),r.draggingGraph=new io(Object.assign(Object.assign({},r.options.delegateGraphOptions),{container:document.createElement("div"),width:1,height:1})),r.$container.append(r.draggingGraph.container),r}return g(n,[{key:"targetScroller",get:function(){var e=this.options.target;return io.isGraph(e)?e.scroller.widget:e}},{key:"targetGraph",get:function(){var e=this.options.target;return io.isGraph(e)?e:e.graph}},{key:"targetModel",get:function(){return this.targetGraph.model}},{key:"snapline",get:function(){return this.targetGraph.snapline.widget}},{key:"start",value:function(e,t){var r=t;r.preventDefault(),this.targetModel.startBatch("dnd"),this.$container.addClass("dragging").appendTo(this.options.containerParent||document.body),this.sourceNode=e,this.prepareDragging(e,r.clientX,r.clientY);var i=this.updateNodePosition(r.clientX,r.clientY);this.isSnaplineEnabled()&&(this.snapline.captureCursorOffset({e:r,node:e,cell:e,view:this.draggingView,x:i.x,y:i.y}),this.draggingNode.on("change:position",this.snap,this)),this.delegateDocumentEvents(n.documentEvents,r.data)}},{key:"isSnaplineEnabled",value:function(){return this.snapline&&!this.snapline.disabled}},{key:"prepareDragging",value:function(e,t,n){var r=this.draggingGraph,i=r.model,o=this.options.getDragNode(e,{sourceNode:e,draggingGraph:r,targetGraph:this.targetGraph});o.position(0,0);var a=5;if(this.isSnaplineEnabled()&&(a+=this.snapline.options.tolerance||0),this.isSnaplineEnabled()||this.options.scaled){var s=this.targetGraph.transform.getScale();r.scale(s.sx,s.sy),a*=Math.max(s.sx,s.sy)}else r.scale(1,1);this.clearDragging(),this.options.animation&&this.$container.stop(!0,!0),i.resetCells([o]);var l=r.findViewByCell(o);l.undelegateEvents(),l.cell.off("changed"),r.fitToContent({padding:a,allowNewOrigin:"any"});var u=l.getBBox();this.geometryBBox=l.getBBox({useCellGeometry:!0}),this.delta=this.geometryBBox.getTopLeft().diff(u.getTopLeft()),this.draggingNode=o,this.draggingView=l,this.draggingBBox=o.getBBox(),this.padding=a,this.originOffset=this.updateGraphPosition(t,n)}},{key:"updateGraphPosition",value:function(e,t){var n=document.body.scrollTop||document.documentElement.scrollTop,r=this.delta,i=this.geometryBBox,o=this.padding||5,a={left:e-r.x-i.width/2-o,top:t-r.y-i.height/2-o+n};return this.draggingGraph&&this.$container.offset(a),a}},{key:"updateNodePosition",value:function(e,t){var n=this.targetGraph.clientToLocal(e,t),r=this.draggingBBox;return n.x-=r.width/2,n.y-=r.height/2,this.draggingNode.position(n.x,n.y),n}},{key:"snap",value:function(e){var t=e.cell,n=e.current,r=e.options,i=t;if(r.snapped){var o=this.draggingBBox;i.position(o.x+r.tx,o.y+r.ty,{silent:!0}),this.draggingView.translate(),i.position(n.x,n.y,{silent:!0}),this.snapOffset={x:r.tx,y:r.ty}}else this.snapOffset=null}},{key:"onDragging",value:function(e){var t=this.draggingView;if(t){e.preventDefault();var n=this.normalizeEvent(e),r=n.clientX,i=n.clientY;this.updateGraphPosition(r,i);var o=this.updateNodePosition(r,i),a=this.targetGraph.options.embedding.enabled,s=(a||this.isSnaplineEnabled())&&this.isInsideValidArea({x:r,y:i});if(a){t.setEventData(n,{graph:this.targetGraph,candidateEmbedView:this.candidateEmbedView});var l=t.getEventData(n);s?t.processEmbedding(n,l):t.clearEmbedding(l),this.candidateEmbedView=l.candidateEmbedView}this.isSnaplineEnabled()&&(s?this.snapline.snapOnMoving({e:n,view:t,x:o.x,y:o.y}):this.snapline.hide())}}},{key:"onDragEnd",value:function(e){var t=this,n=this.draggingNode;if(n){var r=this.normalizeEvent(e),i=this.draggingView,o=this.draggingBBox,a=this.snapOffset,s=o.x,l=o.y;a&&(s+=a.x,l+=a.y),n.position(s,l,{silent:!0});var u=this.drop(n,{x:r.clientX,y:r.clientY}),c=function(e){e?(t.onDropped(n),t.targetGraph.options.embedding.enabled&&i&&(i.setEventData(r,{cell:e,graph:t.targetGraph,candidateEmbedView:t.candidateEmbedView}),i.finalizeEmbedding(r,i.getEventData(r)))):t.onDropInvalid(),t.candidateEmbedView=null,t.targetModel.stopBatch("dnd")};O["d"].isAsync(u)?(this.undelegateDocumentEvents(),u.then(c)):c(u)}}},{key:"clearDragging",value:function(){this.draggingNode&&(this.sourceNode=null,this.draggingNode.remove(),this.draggingNode=null,this.draggingView=null,this.delta=null,this.padding=null,this.snapOffset=null,this.originOffset=null,this.undelegateDocumentEvents())}},{key:"onDropped",value:function(e){this.draggingNode===e&&(this.clearDragging(),this.$container.removeClass("dragging").remove())}},{key:"onDropInvalid",value:function(){var e=this,t=this.draggingNode;if(t){var n=this.options.animation;if(n){var r="object"===p(n)&&n.duration||150,i="object"===p(n)&&n.easing||"swing";this.draggingView=null,this.$container.animate(this.originOffset,r,i,(function(){return e.onDropped(t)}))}else this.onDropped(t)}}},{key:"isInsideValidArea",value:function(e){var t,n=this.targetGraph,r=this.targetScroller;if(r)if(r.options.autoResize)t=this.getDropArea(r.container);else{var i=this.getDropArea(r.container);t=this.getDropArea(n.container).intersectsWithRect(i)}else t=this.getDropArea(n.container);return t&&t.containsPoint(e)}},{key:"getDropArea",value:function(e){var t=this.$(e),n=t.offset(),r=document.body.scrollTop||document.documentElement.scrollTop,i=document.body.scrollLeft||document.documentElement.scrollLeft;return K["h"].create({x:n.left+parseInt(t.css("border-left-width"),10)-i,y:n.top+parseInt(t.css("border-top-width"),10)-r,width:t.innerWidth(),height:t.innerHeight()})}},{key:"drop",value:function(e,t){var n=this;if(this.isInsideValidArea(t)){var r=this.targetGraph,i=r.model,o=r.clientToLocal(t),a=this.sourceNode,s=this.options.getDropNode(e,{sourceNode:a,draggingNode:e,targetGraph:this.targetGraph,draggingGraph:this.draggingGraph}),l=s.getBBox();o.x+=l.x-l.width/2,o.y+=l.y-l.height/2;var u=this.snapOffset?1:r.getGridSize();s.position(ne["b"].snapToGrid(o.x,u),ne["b"].snapToGrid(o.y,u)),s.removeZIndex();var c=this.options.validateNode,h=!c||c(s,{sourceNode:a,draggingNode:e,droppingNode:s,targetGraph:r,draggingGraph:this.draggingGraph});return"boolean"===typeof h?h?(i.addCell(s,{stencil:this.cid}),s):null:O["d"].toDeferredBoolean(h).then((function(e){return e?(i.addCell(s,{stencil:n.cid}),s):null}))}return null}},{key:"onRemove",value:function(){this.draggingGraph&&(this.draggingGraph.view.remove(),this.draggingGraph.dispose())}},{key:"dispose",value:function(){this.remove()}}]),n}(tr["a"]);function po(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=hr.isModel(e)?e:(new hr).resetCells(e,{sort:!1,dryrun:!0}),r=n.getNodes(),i=t.columns||1,o=Math.ceil(r.length/i),a=t.dx||0,s=t.dy||0,l=!1!==t.center,u=!0===t.resizeToFit,c=t.marginX||0,h=t.marginY||0,d=[],f=t.columnWidth;if("compact"===f)for(var g=0;g<i;g+=1){var p=ho.getNodesInColumn(r,g,i);d.push(ho.getMaxDim(p,"width")+a)}else{null!=f&&"auto"!==f||(f=ho.getMaxDim(r,"width")+a);for(var v=0;v<i;v+=1)d.push(f)}var y=ho.accumulate(d,c),m=[],b=t.rowHeight;if("compact"===b)for(var x=0;x<o;x+=1){var w=ho.getNodesInRow(r,x,i);m.push(ho.getMaxDim(w,"height")+s)}else{null!=b&&"auto"!==b||(b=ho.getMaxDim(r,"height")+s);for(var C=0;C<o;C+=1)m.push(b)}var k=ho.accumulate(m,h);n.startBatch("layout"),r.forEach((function(e,n){var r=n%i,o=Math.floor(n/i),c=d[r],h=m[o],f=0,g=0,p=e.getSize();if(u){var v=c-2*a,b=h-2*s,x=p.height*(p.width?v/p.width:1),w=p.width*(p.height?b/p.height:1);h<x?v=w:b=x,p={width:v,height:b},e.setSize(p,t)}l&&(f=(c-p.width)/2,g=(h-p.height)/2),e.position(y[r]+a+f,k[o]+s+g,t)})),n.stopBatch("layout")}fo([tr["a"].dispose()],go.prototype,"dispose",null),function(e){e.defaults={animation:!1,getDragNode:function(e){return e.clone()},getDropNode:function(e){return e.clone()}},e.documentEvents={mousemove:"onDragging",touchmove:"onDragging",mouseup:"onDragEnd",touchend:"onDragEnd",touchcancel:"onDragEnd"}}(go||(go={})),function(e){function t(e,t){return e.reduce((function(e,n){return Math.max(n.getSize()[t],e)}),0)}function n(e,t,n){for(var r=[],i=n*t,o=i+n;i<o;i+=1)r.push(e[i]);return r}function r(e,t,n){for(var r=[],i=t,o=e.length;i<o;i+=n)r.push(e[i]);return r}function i(e,t){return e.reduce((function(e,t,n){return e.push(e[n]+t),e}),[t||0])}e.getMaxDim=t,e.getNodesInRow=n,e.getNodesInColumn=r,e.accumulate=i}(ho||(ho={}));var vo,yo,mo=function(e){u(n,e);var t=c(n);function n(e){var r;if(f(this,n),r=t.call(this),r.graphs={},r.$groups={},r.options=Object.assign(Object.assign({},n.defaultOptions),e),r.dnd=new go(r.options),r.onSearch=O["d"].debounce(r.onSearch,200),r.container=document.createElement("div"),r.$container=r.$(r.container).addClass(r.prefixClassName(vo.base)).attr("data-not-found-text",r.options.notFoundText||"No matches found"),r.options.collapsable=e.collapsable&&e.groups&&e.groups.some((function(e){return!1!==e.collapsable})),r.options.collapsable){r.$container.addClass("collapsable");var i=e.groups&&e.groups.every((function(e){return e.collapsed||!1===e.collapsable}));i&&r.$container.addClass("collapsed")}r.$("<div/>").addClass(r.prefixClassName(vo.title)).html(r.options.title).appendTo(r.$container),e.search&&r.$container.addClass("searchable").append(r.renderSearch()),r.$content=r.$("<div/>").addClass(r.prefixClassName(vo.content)).appendTo(r.$container);var o=e.stencilGraphOptions||{};if(e.groups&&e.groups.length)e.groups.forEach((function(t){var n=r.$("<div/>").addClass(r.prefixClassName(vo.group)).attr("data-name",t.name);(null==t.collapsable&&e.collapsable||!1!==t.collapsable)&&n.addClass("collapsable"),n.toggleClass("collapsed",!0===t.collapsed);var i=r.$("<h3/>").addClass(r.prefixClassName(vo.groupTitle)).html(t.title||t.name),a=r.$("<div/>").addClass(r.prefixClassName(vo.groupContent)),s=t.graphOptions,l=new io(Object.assign(Object.assign(Object.assign({},o),s),{container:document.createElement("div"),model:o.model||new hr,width:t.graphWidth||e.stencilGraphWidth,height:t.graphHeight||e.stencilGraphHeight,interacting:!1,preventDefaultBlankAction:!1}));a.append(l.container),n.append(i,a).appendTo(r.$content),r.$groups[t.name]=n,r.graphs[t.name]=l}));else{var s=new io(Object.assign(Object.assign({},o),{container:document.createElement("div"),model:o.model||new hr,width:e.stencilGraphWidth,height:e.stencilGraphHeight,interacting:!1,preventDefaultBlankAction:!1}));r.$content.append(s.container),r.graphs[yo.defaultGroupName]=s}return r.startListening(),l(r,a(r))}return g(n,[{key:"targetScroller",get:function(){var e=this.options.target;return io.isGraph(e)?e.scroller.widget:e}},{key:"targetGraph",get:function(){var e=this.options.target;return io.isGraph(e)?e:e.graph}},{key:"targetModel",get:function(){return this.targetGraph.model}},{key:"renderSearch",value:function(){return this.$("<div/>").addClass(this.prefixClassName(vo.search)).append(this.$("<input/>").attr({type:"search",placeholder:this.options.placeholder||"Search"}).addClass(this.prefixClassName(vo.searchText)))}},{key:"startListening",value:function(){var e,t=this,n=this.prefixClassName(vo.title),r=this.prefixClassName(vo.searchText),i=this.prefixClassName(vo.groupTitle);this.delegateEvents((e={},s(e,"click .".concat(n),"onTitleClick"),s(e,"touchstart .".concat(n),"onTitleClick"),s(e,"click .".concat(i),"onGroupTitleClick"),s(e,"touchstart .".concat(i),"onGroupTitleClick"),s(e,"input .".concat(r),"onSearch"),s(e,"focusin .".concat(r),"onSearchFocusIn"),s(e,"focusout .".concat(r),"onSearchFocusOut"),e)),Object.keys(this.graphs).forEach((function(e){var n=t.graphs[e];n.on("cell:mousedown",t.onDragStart,t)}))}},{key:"stopListening",value:function(){var e=this;this.undelegateEvents(),Object.keys(this.graphs).forEach((function(t){var n=e.graphs[t];n.off("cell:mousedown",e.onDragStart,e)}))}},{key:"load",value:function(e,t){var n=this;return Array.isArray(e)?this.loadGroup(e,t):this.options.groups&&Object.keys(this.options.groups).forEach((function(t){e[t]&&n.loadGroup(e[t],t)})),this}},{key:"loadGroup",value:function(e,t){var n=this.getModel(t);if(n){var r=e.map((function(e){return qn.isNode(e)?e:qn.create(e)}));n.resetCells(r)}var i=this.getGroup(t),o=this.options.stencilGraphHeight;i&&null!=i.graphHeight&&(o=i.graphHeight);var a=i&&i.layout||this.options.layout;if(a&&n&&O["d"].call(a,this,n,i),!o){var s=this.getGraph(t);s.fitToContent({minWidth:s.options.width,gridHeight:1,padding:i&&i.graphPadding||this.options.stencilGraphPadding||10})}return this}},{key:"onDragStart",value:function(e){var t=e.e,n=e.node;this.dnd.start(n,t)}},{key:"filter",value:function(e,t){var n=this,r=Object.keys(this.graphs).reduce((function(r,i){var o=n.graphs[i],a=i===yo.defaultGroupName?null:i,s=o.model.getNodes().filter((function(r){var i=!1;i="function"===typeof t?O["d"].call(t,n,r,e,a,n):"boolean"===typeof t?t:n.isCellMatched(r,e,t,e.toLowerCase()!==e);var s=o.renderer.findViewByCell(r);return s&&s.$(s.container).toggleClass("unmatched",!i),i})),l=s.length>0,u=n.options,c=new hr;return c.resetCells(s),u.layout&&O["d"].call(u.layout,n,c,n.getGroup(i)),n.$groups[i]&&n.$groups[i].toggleClass("unmatched",!l),o.fitToContent({gridWidth:1,gridHeight:1,padding:u.stencilGraphPadding||10}),r||l}),!1);this.$container.toggleClass("not-found",!r)}},{key:"isCellMatched",value:function(e,t,n,r){return!t||!n||Object.keys(n).some((function(i){if("*"===i||e.shape===i){var o=n[i];if("boolean"===typeof o)return o;var a=Array.isArray(o)?o:[o];return a.some((function(n){var i=e.getPropByPath(n);return null!=i&&(i="".concat(i),r||(i=i.toLowerCase()),i.indexOf(t)>=0)}))}return!1}))}},{key:"onSearch",value:function(e){this.filter(e.target.value,this.options.search)}},{key:"onSearchFocusIn",value:function(){this.$container.addClass("is-focused")}},{key:"onSearchFocusOut",value:function(){this.$container.removeClass("is-focused")}},{key:"onTitleClick",value:function(){this.options.collapsable&&(this.$container.toggleClass("collapsed"),this.$container.hasClass("collapsed")?this.collapseGroups():this.expandGroups())}},{key:"onGroupTitleClick",value:function(e){var t=this,n=this.$(e.target).closest(".".concat(this.prefixClassName(vo.group)));this.toggleGroup(n.attr("data-name")||"");var r=Object.keys(this.$groups).every((function(e){var n=t.getGroup(e),r=t.$groups[e];return n&&!1===n.collapsable||r.hasClass("collapsed")}));this.$container.toggleClass("collapsed",r)}},{key:"getModel",value:function(e){var t=this.getGraph(e);return t?t.model:null}},{key:"getGraph",value:function(e){return this.graphs[e||yo.defaultGroupName]}},{key:"getGroup",value:function(e){var t=this.options.groups;return null!=e&&t&&t.length?t.find((function(t){return t.name===e})):null}},{key:"toggleGroup",value:function(e){return this.isGroupCollapsed(e)?this.expandGroup(e):this.collapseGroup(e),this}},{key:"collapseGroup",value:function(e){if(this.isGroupCollapsable(e)){var t=this.$groups[e];t&&!this.isGroupCollapsed(e)&&(this.trigger("group:collapse",{name:e}),t.addClass("collapsed"))}return this}},{key:"expandGroup",value:function(e){if(this.isGroupCollapsable(e)){var t=this.$groups[e];t&&this.isGroupCollapsed(e)&&(this.trigger("group:expand",{name:e}),t.removeClass("collapsed"))}return this}},{key:"isGroupCollapsable",value:function(e){var t=this.$groups[e];return t.hasClass("collapsable")}},{key:"isGroupCollapsed",value:function(e){var t=this.$groups[e];return t&&t.hasClass("collapsed")}},{key:"collapseGroups",value:function(){var e=this;return Object.keys(this.$groups).forEach((function(t){return e.collapseGroup(t)})),this}},{key:"expandGroups",value:function(){var e=this;return Object.keys(this.$groups).forEach((function(t){return e.expandGroup(t)})),this}},{key:"resizeGroup",value:function(e,t){var n=this.graphs[e];return n&&n.resize(t.width,t.height),this}},{key:"onRemove",value:function(){var e=this;Object.keys(this.graphs).forEach((function(t){var n=e.graphs[t];n.view.remove(),delete e.graphs[t]})),this.dnd.remove(),this.stopListening(),this.undelegateDocumentEvents()}}]),n}(tr["a"]);(function(e){e.defaultOptions=Object.assign({stencilGraphWidth:200,stencilGraphHeight:800,title:"Stencil",collapsable:!1,placeholder:"Search",notFoundText:"No matches found",layout:function(e,t){var n={columnWidth:this.options.stencilGraphWidth/2-10,columns:2,rowHeight:80,resizeToFit:!1,dx:10,dy:10};po(e,Object.assign(Object.assign(Object.assign({},n),this.options.layoutOptions),t?t.layoutOptions:{}))}},go.defaults)})(mo||(mo={})),function(e){e.base="widget-stencil",e.title="".concat(e.base,"-title"),e.search="".concat(e.base,"-search"),e.searchText="".concat(e.search,"-text"),e.content="".concat(e.base,"-content"),e.group="".concat(e.base,"-group"),e.groupTitle="".concat(e.group,"-title"),e.groupContent="".concat(e.group,"-content")}(vo||(vo={})),function(e){e.defaultGroupName="__default__"}(yo||(yo={}));var bo=n("7196");function xo(){if(Or["a"].trackable){var e="https://kcart.alipay.com/web/bi.do",t=new Image,n=Object.assign(Object.assign({},Or["a"].trackInfo),{version:bo["a"],pg:document.URL,r:(new Date).getTime(),x6:!0,page_type:"syslog"}),r=encodeURIComponent(JSON.stringify([n]));t.src="".concat(e,"?BIProfile=merge&d=").concat(r)}}Or["a"].trackable&&setTimeout(xo,3e3)},"577e":function(e,t,n){var r=n("da84"),i=n("f5df"),o=r.String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},"58e0":function(e,n,r){"use strict";(function(e){var i=r("26ee"),o=r("2f74"),a="object"==p(t)&&t&&!t.nodeType&&t,s=a&&"object"==p(e)&&e&&!e.nodeType&&e,l=s&&s.exports===a,u=l?i["a"].Buffer:void 0,c=u?u.isBuffer:void 0,h=c||o["a"];n["a"]=h}).call(this,r("dd40")(e))},5926:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){var t=+e;return t!==t||0===t?0:(t>0?r:n)(t)}},"59ed":function(e,t,n){var r=n("da84"),i=n("1626"),o=n("0d51"),a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a function")}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5e77":function(e,t,n){var r=n("83ab"),i=n("1a2d"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},"5ea3":function(e,t,n){"use strict";(function(e){var n="object"==p(e)&&e&&e.Object===Object&&e;t["a"]=n}).call(this,n("c8ba"))},6123:function(e,t,n){"use strict";function r(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}t["a"]=r},"625f":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return w}));n("caad");var r=n("83ce"),i=n("0f4a"),o=n("f9a4"),a=n("fcf3"),s=n("3ed0"),l=n("ba88"),u=n("ac8f"),c=n("2832"),h=n("7c80"),d=n("17af"),f=n("f093"),g=n("8916"),p=n("bd7a"),v=n("cd61"),y=n("3c41"),m=n("2b97"),b=["与门","或门"],x={andCondition:i,andOr:o,and:a,banCondition:s,ban:l,base:u,condition:c,not:h,or:d,result:f,switchNode:g,turn:p,unknown:v,vote:y,similar:m};function w(e){var t=document.createElement("div"),n=document.createElement("pre");b.includes(e.tooltip)||(n.textContent=e.tooltip),"表决门"===e.tooltip&&(n.textContent="(r)/(n)"),n.style.cssText=e.defaultSpanStyle||r["default"];var i=document.createElement("img");return i.src=x[e.urlStr],i.style.cssText="width: 100%;height: 100%;",t.setAttribute("class","nodeBox"),t.appendChild(i),t.appendChild(n),t.style.cssText="width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;border-radius: 4px;",t}},"65f0":function(e,t,n){var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},"68ee":function(e,t,n){var r=n("e330"),i=n("d039"),o=n("1626"),a=n("f5df"),s=n("d066"),l=n("8925"),u=function(){},c=[],h=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),g=!d.exec(u),p=function(e){if(!o(e))return!1;try{return h(u,c,e),!0}catch(t){return!1}},v=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return g||!!f(d,l(e))};e.exports=!h||i((function(){var e;return p(p.call)||!p(Object)||!p((function(){e=!0}))||e}))?v:p},"69f3":function(e,t,n){var r,i,o,a=n("7f9a"),s=n("da84"),l=n("e330"),u=n("861d"),c=n("9112"),h=n("1a2d"),d=n("c6cd"),f=n("f772"),g=n("d012"),p="Object already initialized",v=s.TypeError,y=s.WeakMap,m=function(e){return o(e)?i(e):r(e,{})},b=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw v("Incompatible receiver, "+e+" required");return n}};if(a||d.state){var x=d.state||(d.state=new y),w=l(x.get),C=l(x.has),k=l(x.set);r=function(e,t){if(C(x,e))throw new v(p);return t.facade=e,k(x,e,t),t},i=function(e){return w(x,e)||{}},o=function(e){return C(x,e)}}else{var E=f("state");g[E]=!0,r=function(e,t){if(h(e,E))throw new v(p);return t.facade=e,c(e,E,t),t},i=function(e){return h(e,E)?e[E]:{}},o=function(e){return h(e,E)}}e.exports={set:r,get:i,has:o,enforce:m,getterFor:b}},"6eeb":function(e,t,n){var r=n("da84"),i=n("1626"),o=n("1a2d"),a=n("9112"),s=n("ce4e"),l=n("8925"),u=n("69f3"),c=n("5e77").CONFIGURABLE,h=u.get,d=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,l){var u,h=!!l&&!!l.unsafe,g=!!l&&!!l.enumerable,p=!!l&&!!l.noTargetGet,v=l&&void 0!==l.name?l.name:t;i(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||c&&n.name!==v)&&a(n,"name",v),u=d(n),u.source||(u.source=f.join("string"==typeof v?v:""))),e!==r?(h?!p&&e[t]&&(g=!0):delete e[t],g?e[t]=n:a(e,t,n)):g?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return i(this)&&h(this).source||l(this)}))},7196:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="1.28.1"},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n("428f"),i=n("1a2d"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){var r=n("cc12"),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},"79f6":function(e,t,n){"use strict";var r=n("2c57");function i(e){return null==e?"":Object(r["a"])(e)}t["a"]=i},"7b0b":function(e,t,n){var r=n("da84"),i=n("1d80"),o=r.Object;e.exports=function(e){return o(i(e))}},"7c73":function(e,t,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),h=">",d="<",f="prototype",g="script",p=c("IE_PROTO"),v=function(){},y=function(e){return d+g+h+e+d+"/"+g+h},m=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+g+":";return t.style.display="none",l.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},x=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}x="undefined"!=typeof document?document.domain&&r?m(r):b():m(r);var e=a.length;while(e--)delete x[f][a[e]];return x()};s[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(v[f]=i(e),n=new v,v[f]=null,n[p]=e):n=x(),void 0===t?n:o(n,t)}},"7c80":function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; %7d .cls-2 %7b font-size: 24px; font-family: 'Microsoft YaHei'; font-weight: 700; %7d %3c/style%3e %3c/defs%3e %3ccircle id='椭圆_1' data-name='椭圆 1' class='cls-1' cx='50' cy='50' r='20'/%3e %3crect id='矩形_1' data-name='矩形 1' x='49' y='13' width='2' height='17'/%3e %3crect id='矩形_1_拷贝' data-name='矩形 1 拷贝' x='49' y='70' width='2' height='17'/%3e %3ctext id='_' data-name='%7e' class='cls-2' x='40.962' y='57.912'%3e%7e%3c/text%3e %3c/svg%3e"},"7eaa":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r={};n.r(r),n.d(r,"block",(function(){return u})),n.d(r,"classic",(function(){return c})),n.d(r,"diamond",(function(){return g})),n.d(r,"path",(function(){return v})),n.d(r,"cross",(function(){return m})),n.d(r,"async",(function(){return x})),n.d(r,"circle",(function(){return C})),n.d(r,"circlePlus",(function(){return k})),n.d(r,"ellipse",(function(){return S}));var i=n("20d2"),o=n("4283"),a=n("bcd7"),s=n("88a4"),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},u=function(e){var t=e.size,n=e.width,r=e.height,i=e.offset,o=e.open,a=l(e,["size","width","height","offset","open"]);return h({size:t,width:n,height:r,offset:i},!0===o,!0,void 0,a)},c=function(e){var t=e.size,n=e.width,r=e.height,i=e.offset,o=e.factor,a=l(e,["size","width","height","offset","factor"]);return h({size:t,width:n,height:r,offset:i},!1,!1,o,a)};function h(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3/4,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=e.size||10,u=e.width||l,c=e.height||l,h=new o["e"],d={};if(t)h.moveTo(u,0).lineTo(0,c/2).lineTo(u,c),d.fill="none";else{if(h.moveTo(0,c/2),h.lineTo(u,0),!n){var f=a["f"].clamp(r,0,1);h.lineTo(u*f,c/2)}h.lineTo(u,c),h.close()}return Object.assign(Object.assign(Object.assign({},d),i),{tagName:"path",d:Object(s["a"])(h.serialize(),{x:null!=e.offset?e.offset:-u/2})})}var d,f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},g=function(e){var t=e.size,n=e.width,r=e.height,i=e.offset,a=f(e,["size","width","height","offset"]),l=t||10,u=n||l,c=r||l,h=new o["e"];return h.moveTo(0,c/2).lineTo(u/2,0).lineTo(u,c/2).lineTo(u/2,c).close(),Object.assign(Object.assign({},a),{tagName:"path",d:Object(s["a"])(h.serialize(),null==i?-u/2:i)})},p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},v=function(e){var t=e.d,n=e.offsetX,r=e.offsetY,i=p(e,["d","offsetX","offsetY"]);return Object.assign(Object.assign({},i),{tagName:"path",d:Object(s["a"])(t,n,r)})},y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},m=function(e){var t=e.size,n=e.width,r=e.height,i=e.offset,a=y(e,["size","width","height","offset"]),l=t||10,u=n||l,c=r||l,h=new o["e"];return h.moveTo(0,0).lineTo(u,c).moveTo(0,c).lineTo(u,0),Object.assign(Object.assign({},a),{tagName:"path",fill:"none",d:Object(s["a"])(h.serialize(),i||-u/2)})},b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},x=function(e){var t=e.width,n=e.height,r=e.offset,i=e.open,a=e.flip,l=b(e,["width","height","offset","open","flip"]),u=n||6,c=t||10,h=!0===i,d=!0===a,f=Object.assign(Object.assign({},l),{tagName:"path"});d&&(u=-u);var g=new o["e"];return g.moveTo(0,u).lineTo(c,0),h?f.fill="none":(g.lineTo(c,u),g.close()),f.d=Object(s["a"])(g.serialize(),{x:r||-c/2,y:u/2}),f},w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},C=function(e){var t=e.r,n=w(e,["r"]),r=t||5;return Object.assign(Object.assign({cx:r},n),{tagName:"circle",r:r})},k=function(e){var t=e.r,n=w(e,["r"]),r=t||5,i=new o["e"];return i.moveTo(r,0).lineTo(r,2*r),i.moveTo(0,r).lineTo(2*r,r),{children:[Object.assign(Object.assign({},C({r:r})),{fill:"none"}),Object.assign(Object.assign({},n),{tagName:"path",d:Object(s["a"])(i.serialize(),-r)})]}},E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},S=function(e){var t=e.rx,n=e.ry,r=E(e,["rx","ry"]),i=t||5,o=n||5;return Object.assign(Object.assign({cx:i},r),{tagName:"ellipse",rx:i,ry:o})};(function(e){e.presets=r,e.registry=i["a"].create({type:"marker"}),e.registry.register(e.presets,!0)})(d||(d={})),function(e){e.normalize=s["a"]}(d||(d={}))},"7ec8":function(e,t,n){"use strict";var r=n("cb09");function i(e){var t=Object(r["a"])(e),n=t%1;return t===t?n?t-n:t:0}t["a"]=i},"7f9a":function(e,t,n){var r=n("da84"),i=n("1626"),o=n("8925"),a=r.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},8010:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n("bcd7"),a=n("f1b6"),s=n("b20e"),l=n("b865"),h=n("005c"),d=function(e,t){u(h,e);var n=c(h);function h(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(this,h),e=n.call(this),e.svgContainer=e.createContainer(!0,t),e.htmlContainer=e.createContainer(!1,t),e.config(t),e}return g(h,[{key:"name",get:function(){return this.options.name}},{key:"graph",get:function(){return this.cellView.graph}},{key:"cell",get:function(){return this.cellView.cell}},{key:t,get:function(){return h.toStringTag}},{key:"createContainer",value:function(e,t){var n=e?s["a"].createElement("g",!0):s["a"].createElement("div",!1);return r["c"].addClass(n,this.prefixClassName("cell-tools")),t.className&&r["c"].addClass(n,t.className),n}},{key:"config",value:function(e){if(this.options=Object.assign(Object.assign({},this.options),e),!l["a"].isCellView(e.view)||e.view===this.cellView)return this;this.cellView=e.view,this.cell.isEdge()?(r["c"].addClass(this.svgContainer,this.prefixClassName("edge-tools")),r["c"].addClass(this.htmlContainer,this.prefixClassName("edge-tools"))):this.cell.isNode()&&(r["c"].addClass(this.svgContainer,this.prefixClassName("node-tools")),r["c"].addClass(this.htmlContainer,this.prefixClassName("node-tools"))),this.svgContainer.setAttribute("data-cell-id",this.cell.id),this.htmlContainer.setAttribute("data-cell-id",this.cell.id),this.name&&(this.svgContainer.setAttribute("data-tools-name",this.name),this.htmlContainer.setAttribute("data-tools-name",this.name));var t=this.options.items;if(!Array.isArray(t))return this;this.tools=[];var n=[];t.forEach((function(e){if(h.ToolItem.isToolItem(e))"vertices"===e.name?n.unshift(e):n.push(e);else{var t="object"===p(e)?e.name:e;"vertices"===t?n.unshift(e):n.push(e)}}));for(var i=0;i<n.length;i+=1){var o=n[i],s=void 0;if(h.ToolItem.isToolItem(o))s=o;else{var u="object"===p(o)?o.name:o,c="object"===p(o)&&o.args||{};if(u)if(this.cell.isNode()){var d=a["b"].registry.get(u);if(!d)return a["b"].registry.onNotFound(u);s=new d(c)}else if(this.cell.isEdge()){var f=a["a"].registry.get(u);if(!f)return a["a"].registry.onNotFound(u);s=new f(c)}}if(s){s.config(this.cellView,this),s.render();var g=!1!==s.options.isSVGElement?this.svgContainer:this.htmlContainer;g.appendChild(s.container),this.tools.push(s)}}return this}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.tools;return t&&t.forEach((function(t){e.toolId!==t.cid&&t.isVisible()&&t.update()})),this}},{key:"focus",value:function(e){var t=this.tools;return t&&t.forEach((function(t){e===t?t.show():t.hide()})),this}},{key:"blur",value:function(e){var t=this.tools;return t&&t.forEach((function(t){t===e||t.isVisible()||(t.show(),t.update())})),this}},{key:"hide",value:function(){return this.focus(null)}},{key:"show",value:function(){return this.blur(null)}},{key:"remove",value:function(){var e=this.tools;return e&&(e.forEach((function(e){return e.remove()})),this.tools=null),r["c"].remove(this.svgContainer),r["c"].remove(this.htmlContainer),i(o(h.prototype),"remove",this).call(this)}},{key:"mount",value:function(){var e=this.tools,t=this.cellView;if(t&&e){var n=e.some((function(e){return!1!==e.options.isSVGElement})),r=e.some((function(e){return!1===e.options.isSVGElement}));if(n){var i=this.options.local?t.container:t.graph.view.decorator;i.appendChild(this.svgContainer)}r&&this.graph.container.appendChild(this.htmlContainer)}return this}}]),h}(s["a"],Symbol.toStringTag);(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&null!=r.graph&&null!=r.cell&&"function"===typeof r.config&&"function"===typeof r.update&&"function"===typeof r.focus&&"function"===typeof r.blur&&"function"===typeof r.show&&"function"===typeof r.hide}e.toStringTag="X6.".concat(e.name),e.isToolsView=t})(d||(d={})),function(e){var t=function(e,t){u(a,e);var n=c(a);function a(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(this,a),e=n.call(this),e.options=e.getOptions(t),e.container=s["a"].createElement(e.options.tagName||"g",!1!==e.options.isSVGElement),r["c"].addClass(e.container,e.prefixClassName("cell-tool")),"string"===typeof e.options.className&&r["c"].addClass(e.container,e.options.className),e.init(),e}return g(a,[{key:"graph",get:function(){return this.cellView.graph}},{key:"cell",get:function(){return this.cellView.cell}},{key:"name",get:function(){return this.options.name}},{key:t,get:function(){return a.toStringTag}},{key:"init",value:function(){}},{key:"getOptions",value:function(e){var t=this.constructor;return t.getOptions(e)}},{key:"delegateEvents",value:function(){return this.options.events&&i(o(a.prototype),"delegateEvents",this).call(this,this.options.events),this}},{key:"config",value:function(e,t){return this.cellView=e,this.parent=t,this.stamp(this.container),this.cell.isEdge()?r["c"].addClass(this.container,this.prefixClassName("edge-tool")):this.cell.isNode()&&r["c"].addClass(this.container,this.prefixClassName("node-tool")),this.name&&this.container.setAttribute("data-tool-name",this.name),this.delegateEvents(),this}},{key:"render",value:function(){this.empty();var e=this.options.markup;if(e){var t=h["a"].isStringMarkup(e)?h["a"].parseStringMarkup(e):h["a"].parseJSONMarkup(e);this.container.appendChild(t.fragment),this.childNodes=t.selectors}return this.onRender(),this}},{key:"onRender",value:function(){}},{key:"update",value:function(){return this}},{key:"stamp",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.container;e&&e.setAttribute("data-cell-id",this.cellView.cell.id)}},{key:"show",value:function(){return this.container.style.display="",this.visible=!0,this}},{key:"hide",value:function(){return this.container.style.display="none",this.visible=!1,this}},{key:"isVisible",value:function(){return this.visible}},{key:"focus",value:function(){var e=this.options.focusOpacity;return null!=e&&Number.isFinite(e)&&(this.container.style.opacity="".concat(e)),this.parent.focus(this),this}},{key:"blur",value:function(){return this.container.style.opacity="",this.parent.blur(this),this}},{key:"guard",value:function(e){return null==this.graph||null==this.cellView||this.graph.view.guard(e,this.cellView)}}],[{key:"getDefaults",value:function(){return this.defaults}},{key:"config",value:function(e){this.defaults=this.getOptions(e)}},{key:"getOptions",value:function(e){return r["g"].merge(r["g"].cloneDeep(this.getDefaults()),e)}}]),a}(s["a"],Symbol.toStringTag);t.defaults={isSVGElement:!0,tagName:"g"},e.ToolItem=t,function(e){var t=0;function n(e){return e?r["k"].pascalCase(e):(t+=1,"CustomTool".concat(t))}function i(e){var t=r["g"].createClass(n(e.name),this);return t.config(e),t}e.define=i}(t=e.ToolItem||(e.ToolItem={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&null!=r.graph&&null!=r.cell&&"function"===typeof r.config&&"function"===typeof r.update&&"function"===typeof r.focus&&"function"===typeof r.blur&&"function"===typeof r.show&&"function"===typeof r.hide&&"function"===typeof r.isVisible}e.toStringTag="X6.".concat(e.name),e.isToolItem=t}(t=e.ToolItem||(e.ToolItem={}))}(d||(d={}))},8121:function(e,t,n){"use strict";var r=n("f0ce"),i=n("ff51"),o=n("1147"),a="[object String]";function s(e){return"string"==typeof e||!Object(i["a"])(e)&&Object(o["a"])(e)&&Object(r["a"])(e)==a}t["a"]=s},"825a":function(e,t,n){var r=n("da84"),i=n("861d"),o=r.String,a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not an object")}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83ce":function(e,t,n){"use strict";n.r(t),t["default"]="margin: 0;width: 100%;height: 100%;background: transparent;outline: none;border: none;display: flex;justify-content: center;align-items: center;word-wrap: break-word;position: absolute;left: 0;top: 0;"},8418:function(e,t,n){"use strict";var r=n("a04b"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},8449:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,".nodes-bar p[data-v-7bc23f0a]{margin:0;text-align:center}.node-bar-container[data-v-7bc23f0a]{height:100%;overflow:auto;background:#f8f8f8}li[data-v-7bc23f0a],ul[data-v-7bc23f0a]{margin:0;padding:0;list-style:none}ul[data-v-7bc23f0a]{height:100%}ul .fullWidth[data-v-7bc23f0a]{width:90%;margin:auto;padding:10px 0;clear:both}ul li[data-v-7bc23f0a]:nth-child(3),ul li[data-v-7bc23f0a]:nth-child(4),ul li[data-v-7bc23f0a]:nth-child(11),ul li[data-v-7bc23f0a]:nth-child(12){border-bottom:1px solid #ccc}ul li[data-v-7bc23f0a]:nth-child(12){margin-bottom:20px}ul li[data-v-7bc23f0a]{width:50%;float:left;box-sizing:border-box;padding:10px}ul img[data-v-7bc23f0a]{width:61%;display:block;margin:auto}",""]),e.exports=t},"84e7":function(e,t,n){"use strict";n("1216")},"861d":function(e,t,n){var r=n("1626");e.exports=function(e){return"object"==p(e)?null!==e:r(e)}},8875:function(e,t,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(f.stack)||a.exec(f.stack),l=s&&s[1]||!1,u=s&&s[2]||!1,c=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");l===c&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),i=n.replace(r,"$1").trim());for(var d=0;d<h.length;d++){if("interactive"===h[d].readyState)return h[d];if(h[d].src===l)return h[d];if(l===c&&h[d].innerHTML&&h[d].innerHTML.trim()===i)return h[d]}return null}}return e}))},"88a4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("4283");function i(e,t,n){var i,o;"object"===p(t)?(i=t.x,o=t.y):(i=t,o=n);var a=r["e"].parse(e),s=a.bbox();if(s){var l=-s.height/2-s.y,u=-s.width/2-s.x;"number"===typeof i&&(u-=i),"number"===typeof o&&(l-=o),a.translate(u,l)}return a.serialize()}},8916:function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3cpath id='形状_3' data-name='形状 3' class='cls-1' d='M73.026,32.743V93.2H26.974V32.743L50,7.056Zm0,0V93.2H26.974V32.743L50,7.056Z'/%3e %3c/svg%3e"},8925:function(e,t,n){var r=n("e330"),i=n("1626"),o=n("c6cd"),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},"8a60":function(e,t,n){var r;(function(i,o,a){if(i){for(var s,l={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},u={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},h={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)l[111+d]="f"+d;for(d=0;d<=9;++d)l[d+96]=d.toString();S.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},S.prototype.unbind=function(e,t){var n=this;return n.bind.call(n,e,(function(){}),t)},S.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},S.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},S.prototype.stopCallback=function(e,t){var n=this;if((" "+t.className+" ").indexOf(" mousetrap ")>-1)return!1;if(E(t,n.target))return!1;if("composedPath"in e&&"function"===typeof e.composedPath){var r=e.composedPath()[0];r!==e.target&&(t=r)}return"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},S.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},S.addKeycodes=function(e){for(var t in e)e.hasOwnProperty(t)&&(l[t]=e[t]);s=null},S.init=function(){var e=S(o);for(var t in e)"_"!==t.charAt(0)&&(S[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},S.init(),i.Mousetrap=S,e.exports&&(e.exports=S),r=function(){return S}.call(t,n,t,e),r===a||(e.exports=r)}function f(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function g(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return l[e.which]?l[e.which]:u[e.which]?u[e.which]:String.fromCharCode(e.which).toLowerCase()}function p(e,t){return e.sort().join(",")===t.sort().join(",")}function v(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}function y(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function m(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function b(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function x(){if(!s)for(var e in s={},l)e>95&&e<112||l.hasOwnProperty(e)&&(s[l[e]]=e);return s}function w(e,t,n){return n||(n=x()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function C(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus"),e.split("+"))}function k(e,t){var n,r,i,o=[];for(n=C(e),i=0;i<n.length;++i)r=n[i],h[r]&&(r=h[r]),t&&"keypress"!=t&&c[r]&&(r=c[r],o.push("shift")),b(r)&&o.push(r);return t=w(r,o,t),{key:r,modifiers:o,action:t}}function E(e,t){return null!==e&&e!==o&&(e===t||E(e.parentNode,t))}function S(e){var t=this;if(e=e||o,!(t instanceof S))return new S(e);t.target=e,t._callbacks={},t._directMap={};var n,r={},i=!1,a=!1,s=!1;function l(e){e=e||{};var t,n=!1;for(t in r)e[t]?n=!0:r[t]=0;n||(s=!1)}function u(e,n,i,o,a,s){var l,u,c=[],h=i.type;if(!t._callbacks[e])return[];for("keyup"==h&&b(e)&&(n=[e]),l=0;l<t._callbacks[e].length;++l)if(u=t._callbacks[e][l],(o||!u.seq||r[u.seq]==u.level)&&h==u.action&&("keypress"==h&&!i.metaKey&&!i.ctrlKey||p(n,u.modifiers))){var d=!o&&u.combo==a,f=o&&u.seq==o&&u.level==s;(d||f)&&t._callbacks[e].splice(l,1),c.push(u)}return c}function c(e,n,r,i){t.stopCallback(n,n.target||n.srcElement,r,i)||!1===e(n,r)&&(y(n),m(n))}function h(e){"number"!==typeof e.which&&(e.which=e.keyCode);var n=g(e);n&&("keyup"!=e.type||i!==n?t.handleKey(n,v(e),e):i=!1)}function d(){clearTimeout(n),n=setTimeout(l,1e3)}function x(e,t,n,o){function a(t){return function(){s=t,++r[e],d()}}function u(t){c(n,t,e),"keyup"!==o&&(i=g(t)),setTimeout(l,10)}r[e]=0;for(var h=0;h<t.length;++h){var f=h+1===t.length,p=f?u:a(o||k(t[h+1]).action);w(t[h],p,o,e,h)}}function w(e,n,r,i,o){t._directMap[e+":"+r]=n,e=e.replace(/\s+/g," ");var a,s=e.split(" ");s.length>1?x(e,s,n,r):(a=k(e,r),t._callbacks[a.key]=t._callbacks[a.key]||[],u(a.key,a.modifiers,{type:a.action},i,e,o),t._callbacks[a.key][i?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:i,level:o,combo:e}))}t._handleKey=function(e,t,n){var r,i=u(e,t,n),o={},h=0,d=!1;for(r=0;r<i.length;++r)i[r].seq&&(h=Math.max(h,i[r].level));for(r=0;r<i.length;++r)if(i[r].seq){if(i[r].level!=h)continue;d=!0,o[i[r].seq]=1,c(i[r].callback,n,i[r].combo,i[r].seq)}else d||c(i[r].callback,n,i[r].combo);var f="keypress"==n.type&&a;n.type!=s||b(e)||f||l(o),a=d&&"keydown"==n.type},t._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)w(e[r],t,n)},f(e,"keypress",h),f(e,"keydown",h),f(e,"keyup",h)}})("undefined"!==typeof window?window:null,"undefined"!==typeof window?document:null)},"90e3":function(e,t,n){var r=n("e330"),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},9112:function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"94ca":function(e,t,n){var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,a=function(e,t){var n=l[s(e)];return n==c||n!=u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},"9bf2":function(e,t,n){var r=n("da84"),i=n("83ab"),o=n("0cfb"),a=n("825a"),s=n("a04b"),l=r.TypeError,u=Object.defineProperty;t.f=i?u:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},a04b:function(e,t,n){var r=n("c04e"),i=n("d9b5");e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},a082:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={prefixCls:"x6",autoInsertCSS:!0,useCSSSelector:!0,trackable:!1,trackInfo:{},track:function(e){r.trackable=e}}},a146:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={};n.r(r),n.d(r,"isNaN",(function(){return a})),n.d(r,"isNumber",(function(){return i["a"]})),n.d(r,"isFinite",(function(){return c})),n.d(r,"isInteger",(function(){return f})),n.d(r,"isSafeInteger",(function(){return y})),n.d(r,"clamp",(function(){return w})),n.d(r,"inRange",(function(){return M})),n.d(r,"toFinite",(function(){return A["a"]})),n.d(r,"toNumber",(function(){return b["a"]})),n.d(r,"toInteger",(function(){return h["a"]})),n.d(r,"toSafeInteger",(function(){return D})),n.d(r,"parseInt",(function(){return R})),n.d(r,"isNumeric",(function(){return B["a"]})),n.d(r,"mod",(function(){return z})),n.d(r,"random",(function(){return I})),n.d(r,"isPercentage",(function(){return V})),n.d(r,"normalizePercentage",(function(){return _})),n.d(r,"parseCssNumeric",(function(){return G})),n.d(r,"normalizeSides",(function(){return H}));var i=n("c88b");function o(e){return Object(i["a"])(e)&&e!=+e}var a=o,s=n("26ee"),l=s["a"].isFinite;function u(e){return"number"==typeof e&&l(e)}var c=u,h=n("7ec8");function d(e){return"number"==typeof e&&e==Object(h["a"])(e)}var f=d,g=9007199254740991;function v(e){return f(e)&&e>=-g&&e<=g}var y=v,m=n("6123"),b=n("4a24");function x(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=Object(b["a"])(n),n=n===n?n:0),void 0!==t&&(t=Object(b["a"])(t),t=t===t?t:0),Object(m["a"])(Object(b["a"])(e),t,n)}var w=x,C=Math.max,k=Math.min;function E(e,t,n){return e>=k(t,n)&&e<C(t,n)}var S=E,A=n("cb09");function O(e,t,n){return t=Object(A["a"])(t),void 0===n?(n=t,t=0):n=Object(A["a"])(n),e=Object(b["a"])(e),S(e,t,n)}var M=O,P=9007199254740991;function T(e){return e?Object(m["a"])(Object(h["a"])(e),-P,P):0===e?e:0}var D=T,N=n("79f6"),j=/^\s+/,L=s["a"].parseInt;function F(e,t,n){return n||null==t?t=0:t&&(t=+t),L(Object(N["a"])(e).replace(j,""),t||0)}var R=F,B=n("0b19");function z(e,t){return(e%t+t)%t}function I(e,t){if(null==t)t=null==e?1:e,e=0;else if(t<e){var n=e;e=t,t=n}return Math.floor(Math.random()*(t-e+1)+e)}function V(e){return"string"===typeof e&&"%"===e.slice(-1)}function _(e,t){if(null==e)return 0;var n;if("string"===typeof e){if(n=parseFloat(e),V(e)&&(n/=100,Number.isFinite(n)))return n*t}else n=e;return Number.isFinite(n)?n>0&&n<1?n*t:n:0}function G(e,t){function n(t){var n=new RegExp("(?:\\d+(?:\\.\\d+)*)(".concat(t,")$")).exec(e);return n?n[1]:null}var r,i=parseFloat(e);if(Number.isNaN(i))return null;if(null==t)r="[A-Za-z]*";else if(Array.isArray(t)){if(0===t.length)return null;r=t.join("|")}else"string"===typeof t&&(r=t);var o=n(r);return null===o?null:{unit:o,value:i}}function H(e){if("object"===p(e)){var t=0,n=0,r=0,i=0;return null!=e.vertical&&Number.isFinite(e.vertical)&&(n=i=e.vertical),null!=e.horizontal&&Number.isFinite(e.horizontal)&&(r=t=e.horizontal),null!=e.left&&Number.isFinite(e.left)&&(t=e.left),null!=e.top&&Number.isFinite(e.top)&&(n=e.top),null!=e.right&&Number.isFinite(e.right)&&(r=e.right),null!=e.bottom&&Number.isFinite(e.bottom)&&(i=e.bottom),{top:n,right:r,bottom:i,left:t}}var o=0;return null!=e&&Number.isFinite(e)&&(o=e),{top:o,right:o,bottom:o,left:o}}},a4d3:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("2ba4"),s=n("c65b"),l=n("e330"),u=n("c430"),c=n("83ab"),h=n("4930"),d=n("d039"),f=n("1a2d"),g=n("e8b5"),p=n("1626"),v=n("861d"),y=n("3a9b"),m=n("d9b5"),b=n("825a"),x=n("7b0b"),w=n("fc6a"),C=n("a04b"),k=n("577e"),E=n("5c6c"),S=n("7c73"),A=n("df75"),O=n("241c"),M=n("057f"),P=n("7418"),T=n("06cf"),D=n("9bf2"),N=n("d1e7"),j=n("f36a"),L=n("6eeb"),F=n("5692"),R=n("f772"),B=n("d012"),z=n("90e3"),I=n("b622"),V=n("e538"),_=n("746f"),G=n("d44e"),H=n("69f3"),U=n("b727").forEach,q=R("hidden"),$="Symbol",W="prototype",X=I("toPrimitive"),Y=H.set,J=H.getterFor($),Z=Object[W],K=i.Symbol,Q=K&&K[W],ee=i.TypeError,te=i.QObject,ne=o("JSON","stringify"),re=T.f,ie=D.f,oe=M.f,ae=N.f,se=l([].push),le=F("symbols"),ue=F("op-symbols"),ce=F("string-to-symbol-registry"),he=F("symbol-to-string-registry"),de=F("wks"),fe=!te||!te[W]||!te[W].findChild,ge=c&&d((function(){return 7!=S(ie({},"a",{get:function(){return ie(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=re(Z,t);r&&delete Z[t],ie(e,t,n),r&&e!==Z&&ie(Z,t,r)}:ie,pe=function(e,t){var n=le[e]=S(Q);return Y(n,{type:$,tag:e,description:t}),c||(n.description=t),n},ve=function(e,t,n){e===Z&&ve(ue,t,n),b(e);var r=C(t);return b(n),f(le,r)?(n.enumerable?(f(e,q)&&e[q][r]&&(e[q][r]=!1),n=S(n,{enumerable:E(0,!1)})):(f(e,q)||ie(e,q,E(1,{})),e[q][r]=!0),ge(e,r,n)):ie(e,r,n)},ye=function(e,t){b(e);var n=w(t),r=A(n).concat(Ce(n));return U(r,(function(t){c&&!s(be,n,t)||ve(e,t,n[t])})),e},me=function(e,t){return void 0===t?S(e):ye(S(e),t)},be=function(e){var t=C(e),n=s(ae,this,t);return!(this===Z&&f(le,t)&&!f(ue,t))&&(!(n||!f(this,t)||!f(le,t)||f(this,q)&&this[q][t])||n)},xe=function(e,t){var n=w(e),r=C(t);if(n!==Z||!f(le,r)||f(ue,r)){var i=re(n,r);return!i||!f(le,r)||f(n,q)&&n[q][r]||(i.enumerable=!0),i}},we=function(e){var t=oe(w(e)),n=[];return U(t,(function(e){f(le,e)||f(B,e)||se(n,e)})),n},Ce=function(e){var t=e===Z,n=oe(t?ue:w(e)),r=[];return U(n,(function(e){!f(le,e)||t&&!f(Z,e)||se(r,le[e])})),r};if(h||(K=function(){if(y(Q,this))throw ee("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?k(arguments[0]):void 0,t=z(e),n=function e(n){this===Z&&s(e,ue,n),f(this,q)&&f(this[q],t)&&(this[q][t]=!1),ge(this,t,E(1,n))};return c&&fe&&ge(Z,t,{configurable:!0,set:n}),pe(t,e)},Q=K[W],L(Q,"toString",(function(){return J(this).tag})),L(K,"withoutSetter",(function(e){return pe(z(e),e)})),N.f=be,D.f=ve,T.f=xe,O.f=M.f=we,P.f=Ce,V.f=function(e){return pe(I(e),e)},c&&(ie(Q,"description",{configurable:!0,get:function(){return J(this).description}}),u||L(Z,"propertyIsEnumerable",be,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:K}),U(A(de),(function(e){_(e)})),r({target:$,stat:!0,forced:!h},{for:function(e){var t=k(e);if(f(ce,t))return ce[t];var n=K(t);return ce[t]=n,he[n]=t,n},keyFor:function(e){if(!m(e))throw ee(e+" is not a symbol");if(f(he,e))return he[e]},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),r({target:"Object",stat:!0,forced:!h,sham:!c},{create:me,defineProperty:ve,defineProperties:ye,getOwnPropertyDescriptor:xe}),r({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:we,getOwnPropertySymbols:Ce}),r({target:"Object",stat:!0,forced:d((function(){P.f(1)}))},{getOwnPropertySymbols:function(e){return P.f(x(e))}}),ne){var ke=!h||d((function(){var e=K();return"[null]"!=ne([e])||"{}"!=ne({a:e})||"{}"!=ne(Object(e))}));r({target:"JSON",stat:!0,forced:ke},{stringify:function(e,t,n){var r=j(arguments),i=t;if((v(t)||void 0!==e)&&!m(e))return g(t)||(t=function(e,t){if(p(i)&&(t=s(i,this,e,t)),!m(t))return t}),r[1]=t,a(ne,null,r)}})}if(!Q[X]){var Ee=Q.valueOf;L(Q,X,(function(e){return s(Ee,this)}))}G(K,$),B[q]=!0},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a75f:function(e,t,n){"use strict";n.r(t),n.d(t,"ShapeEnum",(function(){return r})),n.d(t,"NodeTypeEnum",(function(){return i})),n.d(t,"ToolTypeEnum",(function(){return o})),n.d(t,"NodeThemeEnum",(function(){return a})),n.d(t,"CustomEventTypeEnum",(function(){return s})),n.d(t,"SelectStateEnum",(function(){return l})),n.d(t,"Config",(function(){return u})),n.d(t,"ActionType",(function(){return c})),n.d(t,"StoreKey",(function(){return h}));var r={RECT:"rect",CIRCLE:"circle",ELLIPSE:"ellipse",POLYGON:"polygon",DIAMOND:"diamond"},i={BEGIN:"begin-node",CONDITION:"condition-node",TAIL:"tail-node"},o={REMOVE_BUTTON:"custom-remove-button"},a={DEFAULT:"#5b8ffa",BLUE:"#A4C2FF",GREEN:"#A8D7CD",ORANGE:"#FDBE94",GRAY:"#C4C4C4",YELLOW:"#CCAC55"},s={CELL_CLICK:"__antv_x6_custom_event_type_cell_click__",NODE_CLICK:"__antv_x6_custom_event_type_node_click__",DOUBLE_NODE_CLICK:"__antv_x6_custom_event_type_cell_double_click__",HELP:"__antv_x6_custom_event_type_help__",TOOLTIPS_CALLBACK:"__antv_x6_custom_event_type_tooltips_callback__",FREEZE_GRAPH:"__antv_x6_custom_event_type_freeze_graph__",RUNTIME_ERR:"__antv_x6_custom_event_type_runtime_err__"},l={SELECTED:"selected",UN_SELECTED:"unselected"},u={PANEL_AREA_SLOT:"panel_area_slot",TOOLTIPS_SLOT:"tooltips_slot"},c={TRIGGER:"TRIGGER",CONDITION:"CONDITION",ACTION:"ACTION",IMAGE:"IMAGE"},h={GRAPH:"__antv_x6_store_key_graph__"}},ac43:function(e,t,n){var r={"./createDom":"625f","./createDom.js":"625f","./enums":"a75f","./enums.js":"a75f","./event":"bf6f","./event.js":"bf6f","./graph":"deed","./graph.js":"deed","./imgNode":"32ba","./imgNode.js":"32ba","./imgNode/and-condition.svg":"0f4a","./imgNode/and-or.svg":"f9a4","./imgNode/and.svg":"fcf3","./imgNode/ban-condition.svg":"3ed0","./imgNode/ban.svg":"ba88","./imgNode/base.svg":"ac8f","./imgNode/condition.svg":"2832","./imgNode/not.svg":"7c80","./imgNode/or.svg":"17af","./imgNode/result.svg":"f093","./imgNode/similar.svg":"2b97","./imgNode/switch.svg":"8916","./imgNode/turn.svg":"bd7a","./imgNode/unknown.svg":"cd61","./imgNode/vote.svg":"3c41","./nodesBar":"1670","./nodesBar.js":"1670","./registerTools":"f76f","./registerTools.js":"f76f","./removeBtn":"d86f","./removeBtn.js":"d86f","./style":"83ce","./style.js":"83ce","./transform":"5437","./transform.js":"5437"};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id="ac43"},ac8f:function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; %7d %3c/style%3e %3c/defs%3e %3ccircle id='形状_1' data-name='形状 1' class='cls-1' cx='50' cy='50' r='48'/%3e %3c/svg%3e"},ade3:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},b041:function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b0c0:function(e,t,n){var r=n("83ab"),i=n("5e77").EXISTS,o=n("e330"),a=n("9bf2").f,s=Function.prototype,l=o(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(u.exec),h="name";r&&!i&&a(s,h,{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},b20e:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r,i=n("1157"),o=n.n(i),s=n("bcd7"),l=n("2173"),h=n("edff"),d=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.call(this),e.cid=r.uniqueId(),n.views[e.cid]=a(e),e}return g(n,[{key:"priority",get:function(){return 2}},{key:"confirmUpdate",value:function(e,t){return 0}},{key:"$",value:function(e){return n.$(e)}},{key:"empty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.container;return this.$(e).empty(),this}},{key:"unmount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.container;return this.$(e).remove(),this}},{key:"remove",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.container;return e===this.container&&(this.removeEventListeners(document),this.onRemove(),delete n.views[this.cid]),this.unmount(e),this}},{key:"onRemove",value:function(){}},{key:"setClass",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;t.classList.value=Array.isArray(e)?e.join(" "):e}},{key:"addClass",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;return this.$(t).addClass(Array.isArray(e)?e.join(" "):e),this}},{key:"removeClass",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;return this.$(t).removeClass(Array.isArray(e)?e.join(" "):e),this}},{key:"setStyle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;return this.$(t).css(e),this}},{key:"setAttrs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;return null!=e&&null!=t&&(t instanceof SVGElement?s["c"].attr(t,e):this.$(t).attr(e)),this}},{key:"findAttr",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container,n=t;while(n&&1===n.nodeType){var r=n.getAttribute(e);if(null!=r)return r;if(n===this.container)return null;n=n.parentNode}return null}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.selectors;return n.find(e,t,r).elems}},{key:"findOne",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.selectors,r=this.find(e,t,n);return r.length>0?r[0]:null}},{key:"findByAttr",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container,n=t;while(n&&n.getAttribute){var r=n.getAttribute(e);if((null!=r||n===this.container)&&"false"!==r)return n;n=n.parentNode}return null}},{key:"getSelector",value:function(e,t){var n;if(e===this.container)return"string"===typeof t&&(n="> ".concat(t)),n;if(e){var r=s["c"].index(e)+1;n="".concat(e.tagName.toLowerCase(),":nth-child(").concat(r,")"),t&&(n+=" > ".concat(t)),n=this.getSelector(e.parentNode,n)}return n}},{key:"prefixClassName",value:function(e){return h["b"].prefix(e)}},{key:"delegateEvents",value:function(e,t){var n=this;if(null==e)return this;t||this.undelegateEvents();var r=/^(\S+)\s*(.*)$/;return Object.keys(e).forEach((function(t){var i=t.match(r);if(null!=i){var o=n.getEventHandler(e[t]);"function"===typeof o&&n.delegateEvent(i[1],i[2],o)}})),this}},{key:"undelegateEvents",value:function(){return this.$(this.container).off(this.getEventNamespace()),this}},{key:"delegateDocumentEvents",value:function(e,t){return this.addEventListeners(document,e,t),this}},{key:"undelegateDocumentEvents",value:function(){return this.removeEventListeners(document),this}},{key:"delegateEvent",value:function(e,t,n){return this.$(this.container).on(e+this.getEventNamespace(),t,n),this}},{key:"undelegateEvent",value:function(e,t,n){var r=e+this.getEventNamespace();return null==t?this.$(this.container).off(r):"string"===typeof t?this.$(this.container).off(r,t,n):this.$(this.container).off(r,t),this}},{key:"addEventListeners",value:function(e,t,n){var r=this;if(null==t)return this;var i=this.getEventNamespace(),o=this.$(e);return Object.keys(t).forEach((function(e){var a=r.getEventHandler(t[e]);"function"===typeof a&&o.on(e+i,n,a)})),this}},{key:"removeEventListeners",value:function(e){return null!=e&&this.$(e).off(this.getEventNamespace()),this}},{key:"getEventNamespace",value:function(){return".".concat(h["a"].prefixCls,"-event-").concat(this.cid)}},{key:"getEventHandler",value:function(e){var t,n=this;if("string"===typeof e){var r=this[e];"function"===typeof r&&(t=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return r.call.apply(r,[n].concat(t))})}else t=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.call.apply(e,[n].concat(r))};return t}},{key:"getEventTarget",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.target,r=e.type,i=e.clientX,o=void 0===i?0:i,a=e.clientY,s=void 0===a?0:a;return t.fromPoint||"touchmove"===r||"touchend"===r?document.elementFromPoint(o,s):n}},{key:"stopPropagation",value:function(e){return this.setEventData(e,{propagationStopped:!0}),this}},{key:"isPropagationStopped",value:function(e){return!0===this.getEventData(e).propagationStopped}},{key:"getEventData",value:function(e){return this.eventData(e)}},{key:"setEventData",value:function(e,t){return this.eventData(e,t)}},{key:"eventData",value:function(e,t){if(null==e)throw new TypeError("Event object required");var n=e.data,r="__".concat(this.cid,"__");return null==t?null==n?{}:n[r]||{}:(null==n&&(n=e.data={}),null==n[r]?n[r]=Object.assign({},t):n[r]=Object.assign(Object.assign({},n[r]),t),n[r])}},{key:"normalizeEvent",value:function(e){return n.normalizeEvent(e)}}]),n}(l["a"]);(function(e){function t(e){return o()(e)}function n(e,t){return t?s["c"].createSvgElement(e||"g"):s["c"].createElementNS(e||"div")}function r(e,n,r){if(!e||"."===e)return{elems:[n]};if(r){var i=r[e];if(i)return{elems:Array.isArray(i)?i:[i]}}return h["a"].useCSSSelector?{isCSSSelector:!0,elems:t(n).find(e).toArray()}:{elems:[]}}function i(e){var t=e,n=e.originalEvent,r=n&&n.changedTouches&&n.changedTouches[0];if(r){for(var i in e)void 0===r[i]&&(r[i]=e[i]);t=r}var o=t.target;if(o){var a=o.correspondingUseElement;a&&(t.target=a)}return t}e.$=t,e.createElement=n,e.find=r,e.normalizeEvent=i})(d||(d={})),function(e){function t(t){return e.views[t]||null}e.views={},e.getView=t}(d||(d={})),function(e){var t=0;function n(){var e="v".concat(t);return t+=1,e}e.uniqueId=n}(r||(r={}))},b22e:function(e,t,n){var r,i,o;
/*!
 * jQuery Mousewheel 3.1.13
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 */(function(a){i=[n("1157")],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})((function(e){var t,n,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(e.event.fixHooks)for(var a=r.length;a;)e.event.fixHooks[r[--a]]=e.event.mouseHooks;var s=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",s.getLineHeight(this)),e.data(this,"mousewheel-page-height",s.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),r=n["offsetParent"in e.fn?"offsetParent":"parent"]();return r.length||(r=e("body")),parseInt(r.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(r){var i=r||window.event,a=o.call(arguments,1),l=0,h=0,d=0,f=0,g=0,p=0;if(r=e.event.fix(i),r.type="mousewheel","detail"in i&&(d=-1*i.detail),"wheelDelta"in i&&(d=i.wheelDelta),"wheelDeltaY"in i&&(d=i.wheelDeltaY),"wheelDeltaX"in i&&(h=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(h=-1*d,d=0),l=0===d?h:d,"deltaY"in i&&(d=-1*i.deltaY,l=d),"deltaX"in i&&(h=i.deltaX,0===d&&(l=-1*h)),0!==d||0!==h){if(1===i.deltaMode){var v=e.data(this,"mousewheel-line-height");l*=v,d*=v,h*=v}else if(2===i.deltaMode){var y=e.data(this,"mousewheel-page-height");l*=y,d*=y,h*=y}if(f=Math.max(Math.abs(d),Math.abs(h)),(!n||f<n)&&(n=f,c(i,f)&&(n/=40)),c(i,f)&&(l/=40,h/=40,d/=40),l=Math[l>=1?"floor":"ceil"](l/n),h=Math[h>=1?"floor":"ceil"](h/n),d=Math[d>=1?"floor":"ceil"](d/n),s.settings.normalizeOffset&&this.getBoundingClientRect){var m=this.getBoundingClientRect();g=r.clientX-m.left,p=r.clientY-m.top}return r.deltaX=h,r.deltaY=d,r.deltaFactor=n,r.offsetX=g,r.offsetY=p,r.deltaMode=0,a.unshift(r,l,h,d),t&&clearTimeout(t),t=setTimeout(u,200),(e.event.dispatch||e.event.handle).apply(this,a)}}function u(){n=null}function c(e,t){return s.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}))},b622:function(e,t,n){var r=n("da84"),i=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("4930"),l=n("fdbf"),u=i("wks"),c=r.Symbol,h=c&&c["for"],d=l?c:c&&c.withoutSetter||a;e.exports=function(e){if(!o(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&o(c,e)?u[e]=c[e]:u[e]=l&&h?h(t):d(t)}return u[e]}},b64b:function(e,t,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},b703:function(e,t,n){"use strict";function r(e,t){var n=-1,r=null==e?0:e.length,i=Array(r);while(++n<r)i[n]=t(e[n],n,e);return i}t["a"]=r},b727:function(e,t,n){var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),l=n("65f0"),u=i([].push),c=function(e){var t=1==e,n=2==e,i=3==e,c=4==e,h=6==e,d=7==e,f=5==e||h;return function(g,p,v,y){for(var m,b,x=a(g),w=o(x),C=r(p,v),k=s(w),E=0,S=y||l,A=t?S(g,k):n||d?S(g,0):void 0;k>E;E++)if((f||E in w)&&(m=w[E],b=C(m,E,x),e))if(t)A[E]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return E;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return h?-1:i||c?c:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},b865:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n("4283"),i=n("bcd7"),o=n("20d2"),l=n("1cdc"),h=n("b20e"),v=n("2173"),y=function(){function e(t){f(this,e),this.view=t,this.clean()}return g(e,[{key:"clean",value:function(){this.elemCache&&this.elemCache.dispose(),this.elemCache=new v["b"],this.pathCache={}}},{key:"get",value:function(e){var t=this.elemCache;return t.has(e)||this.elemCache.set(e,{}),this.elemCache.get(e)}},{key:"getData",value:function(e){var t=this.get(e);return t.data||(t.data={}),t.data}},{key:"getMatrix",value:function(e){var t=this.get(e);if(null==t.matrix){var n=this.view.rotatableNode||this.view.container;t.matrix=i["c"].getTransformToElement(e,n)}return i["c"].createSVGMatrix(t.matrix)}},{key:"getShape",value:function(e){var t=this.get(e);return null==t.shape&&(t.shape=i["c"].toGeometryShape(e)),t.shape.clone()}},{key:"getBoundingRect",value:function(e){var t=this.get(e);return null==t.boundingRect&&(t.boundingRect=i["c"].getBBox(e)),t.boundingRect.clone()}}]),e}(),m=n("005c"),b=n("8010"),x=n("fc17"),w=function(){function e(t){f(this,e),this.view=t}return g(e,[{key:"cell",get:function(){return this.view.cell}},{key:"getDefinition",value:function(e){return this.cell.getAttrDefinition(e)}},{key:"processAttrs",value:function(t,n){var r,o,a,s,l,u=this,c=[];return Object.keys(n).forEach((function(o){var a=n[o],s=u.getDefinition(o),l=i["d"].call(x["a"].isValidDefinition,u.view,s,a,{elem:t,attrs:n,cell:u.cell,view:u.view});if(s&&l)"string"===typeof s?(null==r&&(r={}),r[s]=a):null!==a&&c.push({name:o,definition:s});else{null==r&&(r={});var h=e.CASE_SENSITIVE_ATTR.includes(o)?o:i["k"].kebabCase(o);r[h]=a}})),c.forEach((function(r){var u=r.name,c=r.definition,h=n[u],d=c;"function"===typeof d.set&&(!i["c"].isHTMLElement(t)&&e.DELAY_ATTRS.includes(u)?(null==l&&(l={}),l[u]=h):(null==o&&(o={}),o[u]=h));var f=c;"function"===typeof f.offset&&(null==a&&(a={}),a[u]=h);var g=c;"function"===typeof g.position&&(null==s&&(s={}),s[u]=h)})),{raw:n,normal:r,set:o,offset:a,position:s,delay:l}}},{key:"mergeProcessedAttrs",value:function(e,t){e.set=Object.assign(Object.assign({},e.set),t.set),e.position=Object.assign(Object.assign({},e.position),t.position),e.offset=Object.assign(Object.assign({},e.offset),t.offset);var n=e.normal&&e.normal.transform;null!=n&&t.normal&&(t.normal.transform=n),e.normal=t.normal}},{key:"findAttrs",value:function(e,t,n,r){var o=[],a=new v["b"];return Object.keys(e).forEach((function(s){var l=e[s];if(i["g"].isPlainObject(l)){var u=h["a"].find(s,t,r),c=u.isCSSSelector,d=u.elems;n[s]=d;for(var f=0,g=d.length;f<g;f+=1){var p=d[f],v=r&&r[s]===p,y=a.get(p);if(y){y.array||(o.push(p),y.array=!0,y.attrs=[y.attrs],y.priority=[y.priority]);var m=y.attrs,b=y.priority;if(v)m.unshift(l),b.unshift(-1);else{var x=i["a"].sortedIndex(b,c?-1:g);m.splice(x,0,l),b.splice(x,0,g)}}else a.set(p,{elem:p,attrs:l,priority:v?-1:g,array:!1})}}})),o.forEach((function(e){var t=a.get(e),n=t.attrs;t.attrs=n.reduceRight((function(e,t){return i["g"].merge(e,t)}),{})})),a}},{key:"updateRelativeAttrs",value:function(e,t,n,o){var a=this,l=t.raw||{},u=t.normal||{},c=t.set,h=t.position,d=t.offset,f=t.delay,g=function(){return{elem:e,cell:a.cell,view:a.view,attrs:l,refBBox:n.clone()}};if(null!=c&&Object.keys(c).forEach((function(e){var t=c[e],n=a.getDefinition(e);if(null!=n){var r=i["d"].call(n.set,a.view,t,g());"object"===p(r)?u=Object.assign(Object.assign({},u),r):null!=r&&(u[e]=r)}})),i["c"].isHTMLElement(e))this.view.setAttrs(u,e);else{var v=u.transform,y=v?"".concat(v):null,m=i["c"].transformStringToMatrix(y),b=new r["f"](m.e,m.f);v&&(delete u.transform,m.e=0,m.f=0);var x=1,w=1;if(h||d){var C=this.view.getScaleOfElement(e,o.scalableNode);x=C.sx,w=C.sy}var k=!1;null!=h&&Object.keys(h).forEach((function(e){var t=h[e],n=a.getDefinition(e);if(null!=n){var o=i["d"].call(n.position,a.view,t,g());null!=o&&(k=!0,b.translate(r["f"].create(o).scale(x,w)))}})),this.view.setAttrs(u,e);var E=!1;if(null!=d){var S=this.view.getBoundingRectOfElement(e);if(S.width>0&&S.height>0){var A=i["c"].transformRectangle(S,m).scale(1/x,1/w);Object.keys(d).forEach((function(t){var n=d[t],o=a.getDefinition(t);if(null!=o){var s=i["d"].call(o.offset,a.view,n,{elem:e,cell:a.cell,view:a.view,attrs:l,refBBox:A});null!=s&&(E=!0,b.translate(r["f"].create(s).scale(x,w)))}}))}}(null!=v||k||E)&&(b.round(1),m.e=b.x,m.f=b.y,e.setAttribute("transform",i["c"].matrixToTransformString(m)));var O=function(){null!=f&&Object.keys(f).forEach((function(t){var n=f[t],r=a.getDefinition(t);if(null!=r){var o=i["d"].call(r.set,a.view,n,g());"object"===p(o)?a.view.setAttrs(o,e):null!=o&&a.view.setAttrs(s({},t,o),e)}}))};o.forceSync?O():i["i"].scheduleTask(O)}}},{key:"update",value:function(e,t,n){var r=this,o={},a=this.findAttrs(n.attrs||t,e,o,n.selectors),s=n.attrs?this.findAttrs(t,e,o,n.selectors):a,l=[];a.each((function(t){var i=t.elem,a=t.attrs,u=r.processAttrs(i,a);if(null==u.set&&null==u.position&&null==u.offset&&null==u.delay)r.view.setAttrs(u.normal,i);else{var c,h=s.get(i),d=h?h.attrs:null,f=d&&null==a.ref?d.ref:a.ref;if(f){if(c=(o[f]||r.view.find(f,e,n.selectors))[0],!c)throw new Error('"'.concat(f,'" reference does not exist.'))}else c=null;var g={node:i,refNode:c,attributes:d,processedAttributes:u},p=l.findIndex((function(e){return e.refNode===i}));p>-1?l.splice(p,0,g):l.push(g)}}));var u,c=new v["b"];l.forEach((function(t){var o,a,s=t.node,h=t.refNode,d=null!=h&&null!=n.rotatableNode&&i["c"].contains(n.rotatableNode,h);if(h&&(o=c.get(h)),!o){var f=d?n.rotatableNode:e;o=h?i["c"].getBBox(h,{target:f}):n.rootBBox,h&&c.set(h,o)}n.attrs&&t.attributes?(a=r.processAttrs(s,t.attributes),r.mergeProcessedAttrs(a,t.processedAttributes)):a=t.processedAttributes;var g=o;d&&null!=n.rotatableNode&&!n.rotatableNode.contains(s)&&(u||(u=i["c"].transformStringToMatrix(i["c"].attr(n.rotatableNode,"transform"))),g=i["c"].transformRectangle(o,u));var p=l.find((function(e){return e.refNode===s}));p&&(n.forceSync=!0),r.updateRelativeAttrs(s,a,g,n)}))}}]),e}();(function(e){e.CASE_SENSITIVE_ATTR=["viewBox"],e.DELAY_ATTRS=["text","textWrap","sourceMarker","targetMarker"]})(w||(w={}));var C=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];f(this,e),this.view=t;var i={},o={},a=0;Object.keys(n).forEach((function(e){var t=n[e];Array.isArray(t)||(t=[t]),t.forEach((function(t){var n=i[t];n||(a+=1,n=i[t]=1<<a),o[e]|=n}))}));var s=r;if(Array.isArray(s)||(s=[s]),s.forEach((function(e){i[e]||(a+=1,i[e]=1<<a)})),a>25)throw new Error("Maximum number of flags exceeded.");this.flags=i,this.attrs=o,this.bootstrap=r}return g(e,[{key:"cell",get:function(){return this.view.cell}},{key:"getFlag",value:function(e){var t=this.flags;return null==t?0:Array.isArray(e)?e.reduce((function(e,n){return e|t[n]}),0):0|t[e]}},{key:"hasAction",value:function(e,t){return e&this.getFlag(t)}},{key:"removeAction",value:function(e,t){return e^e&this.getFlag(t)}},{key:"getBootstrapFlag",value:function(){return this.getFlag(this.bootstrap)}},{key:"getChangedFlag",value:function(){var e=this,t=0;return this.attrs?(Object.keys(this.attrs).forEach((function(n){e.cell.hasChanged(n)&&(t|=e.attrs[n])})),t):t}}]),e}(),k=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},E=function(e,t){u(o,e);var n=c(o);function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f(this,o),t=n.call(this),t.cell=e,t.options=t.ensureOptions(r),t.graph=t.options.graph,t.attr=new w(a(t)),t.flag=new C(a(t),t.options.actions,t.options.bootstrap),t.cache=new y(a(t)),t.setContainer(t.ensureContainer()),t.setup(),t.$(t.container).data("view",a(t)),t.init(),t}return g(o,[{key:t,get:function(){return o.toStringTag}},{key:"init",value:function(){}},{key:"onRemove",value:function(){this.removeTools()}},{key:"priority",get:function(){return this.options.priority}},{key:"rootSelector",get:function(){return this.options.rootSelector}},{key:"getConstructor",value:function(){return this.constructor}},{key:"ensureOptions",value:function(e){return this.getConstructor().getOptions(e)}},{key:"getContainerTagName",value:function(){return this.options.isSvgElement?"g":"div"}},{key:"getContainerStyle",value:function(){}},{key:"getContainerAttrs",value:function(){return{"data-cell-id":this.cell.id,"data-shape":this.cell.shape}}},{key:"getContainerClassName",value:function(){return this.prefixClassName("cell")}},{key:"ensureContainer",value:function(){return h["a"].createElement(this.getContainerTagName(),this.options.isSvgElement)}},{key:"setContainer",value:function(e){if(this.container!==e){this.undelegateEvents(),this.container=e,null!=this.options.events&&this.delegateEvents(this.options.events);var t=this.getContainerAttrs();null!=t&&this.setAttrs(t,e);var n=this.getContainerStyle();null!=n&&this.setStyle(n,e);var r=this.getContainerClassName();null!=r&&this.addClass(r,e)}return this}},{key:"isNodeView",value:function(){return!1}},{key:"isEdgeView",value:function(){return!1}},{key:"render",value:function(){return this}},{key:"confirmUpdate",value:function(e){return 0}},{key:"getBootstrapFlag",value:function(){return this.flag.getBootstrapFlag()}},{key:"getFlag",value:function(e){return this.flag.getFlag(e)}},{key:"hasAction",value:function(e,t){return this.flag.hasAction(e,t)}},{key:"removeAction",value:function(e,t){return this.flag.removeAction(e,t)}},{key:"handleAction",value:function(e,t,n,r){if(this.hasAction(e,t)){n();var i=[t];return r&&("string"===typeof r?i.push(r):i.push.apply(i,d(r))),this.removeAction(e,i)}return e}},{key:"setup",value:function(){var e=this;this.cell.on("changed",(function(t){var n=t.options;return e.onAttrsChange(n)}))}},{key:"onAttrsChange",value:function(e){var t=this.flag.getChangedFlag();!e.updated&&t&&(e.dirty&&this.hasAction(t,"update")&&(t|=this.getFlag("render")),e.toolId&&(e.async=!1),null!=this.graph&&this.graph.renderer.requestViewUpdate(this,t,this.priority,e))}},{key:"parseJSONMarkup",value:function(e,t){var n=m["a"].parseJSONMarkup(e),r=n.selectors,i=this.rootSelector;if(t&&i){if(r[i])throw new Error("Invalid root selector");r[i]=t}return n}},{key:"can",value:function(e){var t=this.graph.options.interacting;if("function"===typeof t&&(t=i["d"].call(t,this.graph,this)),"object"===p(t)){var n=t[e];return"function"===typeof n&&(n=i["d"].call(n,this.graph,this)),!1!==n}return"boolean"===typeof t&&t}},{key:"cleanCache",value:function(){return this.cache.clean(),this}},{key:"getCache",value:function(e){return this.cache.get(e)}},{key:"getDataOfElement",value:function(e){return this.cache.getData(e)}},{key:"getMatrixOfElement",value:function(e){return this.cache.getMatrix(e)}},{key:"getShapeOfElement",value:function(e){return this.cache.getShape(e)}},{key:"getScaleOfElement",value:function(e,t){var n,r;if(t&&t.contains(e)){var o=i["c"].scale(t);n=1/o.sx,r=1/o.sy}else n=1,r=1;return{sx:n,sy:r}}},{key:"getBoundingRectOfElement",value:function(e){return this.cache.getBoundingRect(e)}},{key:"getBBoxOfElement",value:function(e){var t=this.getBoundingRectOfElement(e),n=this.getMatrixOfElement(e),r=this.getRootRotatedMatrix(),o=this.getRootTranslatedMatrix();return i["c"].transformRectangle(t,o.multiply(r).multiply(n))}},{key:"getUnrotatedBBoxOfElement",value:function(e){var t=this.getBoundingRectOfElement(e),n=this.getMatrixOfElement(e),r=this.getRootTranslatedMatrix();return i["c"].transformRectangle(t,r.multiply(n))}},{key:"getBBox",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.useCellGeometry){var n=this.cell,r=n.isNode()?n.getAngle():0;e=n.getBBox().bbox(r)}else e=this.getBBoxOfElement(this.container);return this.graph.localToGraph(e)}},{key:"getRootTranslatedMatrix",value:function(){var e=this.cell,t=e.isNode()?e.getPosition():{x:0,y:0};return i["c"].createSVGMatrix().translate(t.x,t.y)}},{key:"getRootRotatedMatrix",value:function(){var e=i["c"].createSVGMatrix(),t=this.cell,n=t.isNode()?t.getAngle():0;if(n){var r=t.getBBox(),o=r.width/2,a=r.height/2;e=e.translate(o,a).rotate(n).translate(-o,-a)}return e}},{key:"findMagnet",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.container;return this.findByAttr("magnet",e)}},{key:"updateAttrs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null==n.rootBBox&&(n.rootBBox=new r["h"]),null==n.selectors&&(n.selectors=this.selectors),this.attr.update(e,t,n)}},{key:"isEdgeElement",value:function(e){return this.cell.isEdge()&&(null==e||e===this.container)}},{key:"prepareHighlight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e&&this.$(e)[0]||this.container;return t.partial=n===this.container,n}},{key:"highlight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.prepareHighlight(e,t);return this.notify("cell:highlight",{magnet:n,options:t,view:this,cell:this.cell}),this.isEdgeView()?this.notify("edge:highlight",{magnet:n,options:t,view:this,edge:this.cell,cell:this.cell}):this.isNodeView()&&this.notify("node:highlight",{magnet:n,options:t,view:this,node:this.cell,cell:this.cell}),this}},{key:"unhighlight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.prepareHighlight(e,t);return this.notify("cell:unhighlight",{magnet:n,options:t,view:this,cell:this.cell}),this.isNodeView()?this.notify("node:unhighlight",{magnet:n,options:t,view:this,node:this.cell,cell:this.cell}):this.isEdgeView()&&this.notify("edge:unhighlight",{magnet:n,options:t,view:this,edge:this.cell,cell:this.cell}),this}},{key:"notifyUnhighlight",value:function(e,t){}},{key:"getEdgeTerminal",value:function(e,t,n,r,i){var o=this.cell,a=this.findAttr("port",e),s=e.getAttribute("data-selector"),l={cell:o.id};return null!=s&&(l.magnet=s),null!=a?(l.port=a,o.isNode()&&(o.hasPort(a)||null!=s||(l.selector=this.getSelector(e)))):null==s&&this.container!==e&&(l.selector=this.getSelector(e)),this.customizeEdgeTerminal(l,e,t,n,r,i)}},{key:"customizeEdgeTerminal",value:function(e,t,n,o,a,s){var u=a.getStrategy()||this.graph.options.connecting.strategy;if(u){var c="string"===typeof u?u:u.name,h="string"===typeof u?{}:u.args||{},d=l["a"].registry;if(c){var f=d.get(c);if(null==f)return d.onNotFound(c);var g=i["d"].call(f,this.graph,e,this,t,new r["f"](n,o),a,s,h);if(g)return g}}return e}},{key:"getMagnetFromEdgeTerminal",value:function(e){var t,n=this.cell,r=this.container,i=e.port,o=e.magnet;return null!=i&&n.isNode()&&n.hasPort(i)?t=this.findPortElem(i,o)||r:(o||(o=e.selector),o||null==i||(o='[port="'.concat(i,'"]')),t=this.findOne(o,r,this.selectors)),t}},{key:"animate",value:function(e,t){var n="string"===typeof e?this.findOne(e):e;if(null==n)throw new Error("Invalid animation element.");var r=n.parentNode,o=function(){r||i["c"].remove(n)},a=i["m"].create(n);r||a.appendTo(this.graph.view.stage);var s=t.complete;return t.complete=function(e){o(),s&&s(e)},a.animate(t)}},{key:"animateTransform",value:function(e,t){var n="string"===typeof e?this.findOne(e):e;if(null==n)throw new Error("Invalid animation element.");var r=n.parentNode,o=function(){r||i["c"].remove(n)},a=i["m"].create(n);r||a.appendTo(this.graph.view.stage);var s=t.complete;return t.complete=function(e){o(),s&&s(e)},a.animateTransform(t)}},{key:"hasTools",value:function(e){var t=this.tools;return null!=t&&(null==e||t.name===e)}},{key:"addTools",value:function(e){if(!this.can("toolsAddable"))return this;if(this.removeTools(),e){var t=b["a"].isToolsView(e)?e:new b["a"](e);this.tools=t,this.graph.on("tools:hide",this.hideTools,this),this.graph.on("tools:show",this.showTools,this),this.graph.on("tools:remove",this.removeTools,this),t.config({view:this}),t.mount()}return this}},{key:"updateTools",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.tools&&this.tools.update(e),this}},{key:"removeTools",value:function(){return this.tools&&(this.tools.remove(),this.graph.off("tools:hide",this.hideTools,this),this.graph.off("tools:show",this.showTools,this),this.graph.off("tools:remove",this.removeTools,this),this.tools=null),this}},{key:"hideTools",value:function(){return this.tools&&this.tools.hide(),this}},{key:"showTools",value:function(){return this.tools&&this.tools.show(),this}},{key:"renderTools",value:function(){var e=this.cell.getTools();return this.addTools(e),this}},{key:"notify",value:function(e,t){return this.trigger(e,t),this.graph.trigger(e,t),this}},{key:"getEventArgs",value:function(e,t,n){var r=this,i=r.cell;return null==t||null==n?{e:e,view:r,cell:i}:{e:e,x:t,y:n,view:r,cell:i}}},{key:"onClick",value:function(e,t,n){this.notify("cell:click",this.getEventArgs(e,t,n))}},{key:"onDblClick",value:function(e,t,n){this.notify("cell:dblclick",this.getEventArgs(e,t,n))}},{key:"onContextMenu",value:function(e,t,n){this.notify("cell:contextmenu",this.getEventArgs(e,t,n))}},{key:"onMouseDown",value:function(e,t,n){this.cell.model&&(this.cachedModelForMouseEvent=this.cell.model,this.cachedModelForMouseEvent.startBatch("mouse")),this.notify("cell:mousedown",this.getEventArgs(e,t,n))}},{key:"onMouseUp",value:function(e,t,n){this.notify("cell:mouseup",this.getEventArgs(e,t,n)),this.cachedModelForMouseEvent&&(this.cachedModelForMouseEvent.stopBatch("mouse",{cell:this.cell}),this.cachedModelForMouseEvent=null)}},{key:"onMouseMove",value:function(e,t,n){this.notify("cell:mousemove",this.getEventArgs(e,t,n))}},{key:"onMouseOver",value:function(e){this.notify("cell:mouseover",this.getEventArgs(e))}},{key:"onMouseOut",value:function(e){this.notify("cell:mouseout",this.getEventArgs(e))}},{key:"onMouseEnter",value:function(e){this.notify("cell:mouseenter",this.getEventArgs(e))}},{key:"onMouseLeave",value:function(e){this.notify("cell:mouseleave",this.getEventArgs(e))}},{key:"onMouseWheel",value:function(e,t,n,r){this.notify("cell:mousewheel",Object.assign({delta:r},this.getEventArgs(e,t,n)))}},{key:"onCustomEvent",value:function(e,t,n,r){this.notify("cell:customevent",Object.assign({name:t},this.getEventArgs(e,n,r))),this.notify(t,Object.assign({},this.getEventArgs(e,n,r)))}},{key:"onMagnetMouseDown",value:function(e,t,n,r){}},{key:"onMagnetDblClick",value:function(e,t,n,r){}},{key:"onMagnetContextMenu",value:function(e,t,n,r){}},{key:"onLabelMouseDown",value:function(e,t,n){}},{key:"checkMouseleave",value:function(e){var t=this.graph;t.renderer.isAsync()&&t.renderer.dumpView(this);var n=this.getEventTarget(e,{fromPoint:!0}),r=t.renderer.findViewByElem(n);r!==this&&(this.onMouseLeave(e),r&&r.onMouseEnter(e))}}],[{key:"getDefaults",value:function(){return this.defaults}},{key:"config",value:function(e){this.defaults=this.getOptions(e)}},{key:"getOptions",value:function(e){var t=function(e,t){return null!=t?i["a"].uniq([].concat(d(Array.isArray(e)?e:[e]),d(Array.isArray(t)?t:[t]))):Array.isArray(e)?d(e):[e]},n=i["g"].cloneDeep(this.getDefaults()),r=e.bootstrap,o=e.actions,a=e.events,s=e.documentEvents,l=k(e,["bootstrap","actions","events","documentEvents"]);return r&&(n.bootstrap=t(n.bootstrap,r)),o&&Object.keys(o).forEach((function(e){var r=o[e],i=n.actions[e];r&&i?n.actions[e]=t(i,r):r&&(n.actions[e]=t(r))})),a&&(n.events=Object.assign(Object.assign({},n.events),a)),e.documentEvents&&(n.documentEvents=Object.assign(Object.assign({},n.documentEvents),s)),i["g"].merge(n,l)}}]),o}(h["a"],Symbol.toStringTag);E.defaults={isSvgElement:!0,rootSelector:"root",priority:0,bootstrap:[],actions:{}},function(e){e.Flag=C,e.Attr=w}(E||(E={})),function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&"function"===typeof r.isNodeView&&"function"===typeof r.isEdgeView&&"function"===typeof r.confirmUpdate}e.toStringTag="X6.".concat(e.name),e.isCellView=t}(E||(E={})),function(e){function t(e){return function(t){t.config({priority:e})}}function n(e){return function(t){t.config({bootstrap:e})}}e.priority=t,e.bootstrap=n}(E||(E={})),function(e){e.registry=o["a"].create({type:"view"})}(E||(E={}))},ba88:function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3cpath id='多边形_1' data-name='多边形 1' class='cls-1' d='M89.678,28.655L89.3,72.619,49.782,94.282l-39.134-22.3,0.381-43.964L50.544,6.353Z'/%3e %3c/svg%3e"},bc9b:function(e,t,n){"use strict";var r=n("f0ce"),i=n("2332"),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";function u(e){if(!Object(i["a"])(e))return!1;var t=Object(r["a"])(e);return t==a||t==s||t==o||t==l}t["a"]=u},bcd7:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"k",(function(){return a})),n.d(t,"f",(function(){return Up["a"]})),n.d(t,"d",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"b",(function(){return Tv})),n.d(t,"l",(function(){return dy})),n.d(t,"c",(function(){return u})),n.d(t,"m",(function(){return My})),n.d(t,"j",(function(){return Um})),n.d(t,"i",(function(){return qm})),n.d(t,"e",(function(){return v.a}));var i={};n.r(i),n.d(i,"isArray",(function(){return x["a"]})),n.d(i,"isArrayLike",(function(){return w["a"]})),n.d(i,"uniq",(function(){return Pt})),n.d(i,"union",(function(){return xn})),n.d(i,"sortedIndex",(function(){return jn})),n.d(i,"sortedIndexBy",(function(){return ba})),n.d(i,"sortBy",(function(){return Ua})),n.d(i,"groupBy",(function(){return ns})),n.d(i,"difference",(function(){return ss})),n.d(i,"diff",(function(){return ls}));var o={};n.r(o),n.d(o,"has",(function(){return ps})),n.d(o,"pick",(function(){return Ds})),n.d(o,"forIn",(function(){return Hs})),n.d(o,"merge",(function(){return Ol})),n.d(o,"extend",(function(){return Pl})),n.d(o,"isEqual",(function(){return Dl})),n.d(o,"isEmpty",(function(){return Bl})),n.d(o,"isObject",(function(){return P["a"]})),n.d(o,"isPlainObject",(function(){return fl})),n.d(o,"clone",(function(){return Sc})),n.d(o,"cloneDeep",(function(){return Pc})),n.d(o,"defaults",(function(){return jc})),n.d(o,"defaultsDeep",(function(){return Ic})),n.d(o,"applyMixins",(function(){return Vc})),n.d(o,"inherit",(function(){return Gc})),n.d(o,"createClass",(function(){return qc})),n.d(o,"ensure",(function(){return $c})),n.d(o,"getValue",(function(){return Wc})),n.d(o,"getNumber",(function(){return Xc})),n.d(o,"getBoolean",(function(){return Yc})),n.d(o,"getByPath",(function(){return Jc})),n.d(o,"setByPath",(function(){return Zc})),n.d(o,"unsetByPath",(function(){return Kc})),n.d(o,"flatten",(function(){return Qc}));var a={};n.r(a),n.d(a,"isString",(function(){return eh["a"]})),n.d(a,"toString",(function(){return Uo["a"]})),n.d(a,"escape",(function(){return uh})),n.d(a,"unescape",(function(){return vh})),n.d(a,"startsWith",(function(){return wh})),n.d(a,"endsWith",(function(){return kh})),n.d(a,"split",(function(){return md})),n.d(a,"repeat",(function(){return Ed})),n.d(a,"pad",(function(){return rf})),n.d(a,"padEnd",(function(){return af})),n.d(a,"padStart",(function(){return lf})),n.d(a,"truncate",(function(){return ff})),n.d(a,"template",(function(){return Jf})),n.d(a,"uniqueId",(function(){return Qf})),n.d(a,"eval",(function(){return eg})),n.d(a,"lowerFirst",(function(){return Tp})),n.d(a,"upperFirst",(function(){return mp})),n.d(a,"camelCase",(function(){return Ep})),n.d(a,"kebabCase",(function(){return Np})),n.d(a,"pascalCase",(function(){return jp})),n.d(a,"constantCase",(function(){return Lp})),n.d(a,"dotCase",(function(){return Fp})),n.d(a,"pathCase",(function(){return Rp})),n.d(a,"sentenceCase",(function(){return Bp})),n.d(a,"titleCase",(function(){return zp})),n.d(a,"hashcode",(function(){return Ip})),n.d(a,"uuid",(function(){return Vp})),n.d(a,"sanitizeHTML",(function(){return _p})),n.d(a,"getSpellingSuggestion",(function(){return Gp}));var s={};n.r(s),n.d(s,"isFunction",(function(){return C["a"]})),n.d(s,"once",(function(){return Yp})),n.d(s,"noop",(function(){return bt})),n.d(s,"debounce",(function(){return rv})),n.d(s,"defer",(function(){return lv})),n.d(s,"apply",(function(){return uv})),n.d(s,"call",(function(){return cv})),n.d(s,"cacher",(function(){return dv})),n.d(s,"isAsyncLike",(function(){return fv})),n.d(s,"isAsync",(function(){return gv})),n.d(s,"toAsyncBoolean",(function(){return pv})),n.d(s,"toDeferredBoolean",(function(){return vv}));var l={};n.r(l),n.d(l,"annotate",(function(){return sy})),n.d(l,"findAnnotationsAtIndex",(function(){return ly})),n.d(l,"findAnnotationsBetweenIndexes",(function(){return uy})),n.d(l,"shiftAnnotations",(function(){return cy})),n.d(l,"sanitize",(function(){return hy}));var u={};n.r(u),n.d(u,"requestAnimationFrame",(function(){return gy})),n.d(u,"cancelAnimationFrame",(function(){return py})),n.d(u,"getAttribute",(function(){return Kv})),n.d(u,"removeAttribute",(function(){return Qv})),n.d(u,"setAttribute",(function(){return ey})),n.d(u,"setAttributes",(function(){return ty})),n.d(u,"attr",(function(){return ny})),n.d(u,"qualifyAttr",(function(){return ry})),n.d(u,"kebablizeAttrs",(function(){return iy})),n.d(u,"styleToObject",(function(){return oy})),n.d(u,"mergeAttrs",(function(){return ay})),n.d(u,"uniqueId",(function(){return Av})),n.d(u,"ensureId",(function(){return Ov})),n.d(u,"isSVGGraphicsElement",(function(){return Mv})),n.d(u,"ns",(function(){return Nv})),n.d(u,"svgVersion",(function(){return jv})),n.d(u,"createElement",(function(){return Lv})),n.d(u,"createElementNS",(function(){return Fv})),n.d(u,"createSvgElement",(function(){return Rv})),n.d(u,"createSvgDocument",(function(){return Bv})),n.d(u,"parseXML",(function(){return zv})),n.d(u,"tagName",(function(){return Iv})),n.d(u,"index",(function(){return Vv})),n.d(u,"find",(function(){return _v})),n.d(u,"findOne",(function(){return Gv})),n.d(u,"findParentByClass",(function(){return Hv})),n.d(u,"contains",(function(){return Uv})),n.d(u,"remove",(function(){return qv})),n.d(u,"empty",(function(){return $v})),n.d(u,"append",(function(){return Wv})),n.d(u,"prepend",(function(){return Xv})),n.d(u,"before",(function(){return Yv})),n.d(u,"appendTo",(function(){return Jv})),n.d(u,"isHTMLElement",(function(){return Zv})),n.d(u,"getClass",(function(){return xv})),n.d(u,"hasClass",(function(){return wv})),n.d(u,"addClass",(function(){return Cv})),n.d(u,"removeClass",(function(){return kv})),n.d(u,"toggleClass",(function(){return Ev})),n.d(u,"setPrefixedStyle",(function(){return ky})),n.d(u,"getComputedStyle",(function(){return Ey})),n.d(u,"hasScrollbars",(function(){return Sy})),n.d(u,"getVendorPrefixedName",(function(){return Cy})),n.d(u,"clearSelection",(function(){return Ay})),n.d(u,"text",(function(){return Ly})),n.d(u,"breakText",(function(){return Ry})),n.d(u,"KAPPA",(function(){return By})),n.d(u,"sample",(function(){return Iy})),n.d(u,"lineToPathData",(function(){return Vy})),n.d(u,"polygonToPathData",(function(){return _y})),n.d(u,"polylineToPathData",(function(){return Gy})),n.d(u,"getPointsFromSvgElement",(function(){return Uy})),n.d(u,"circleToPathData",(function(){return qy})),n.d(u,"ellipseToPathData",(function(){return $y})),n.d(u,"rectangleToPathData",(function(){return Wy})),n.d(u,"rectToPathData",(function(){return Xy})),n.d(u,"toPath",(function(){return Yy})),n.d(u,"toPathData",(function(){return Jy})),n.d(u,"createSlicePathData",(function(){return Zy})),n.d(u,"bbox",(function(){return mm})),n.d(u,"getBBox",(function(){return bm})),n.d(u,"getBBoxByElementAttr",(function(){return xm})),n.d(u,"getMatrixByElementAttr",(function(){return wm})),n.d(u,"getTransformToElement",(function(){return Cm})),n.d(u,"toLocalPoint",(function(){return km})),n.d(u,"toGeometryShape",(function(){return Em})),n.d(u,"getIntersection",(function(){return Sm})),n.d(u,"animate",(function(){return Am})),n.d(u,"animateTransform",(function(){return Om})),n.d(u,"animateAlongPath",(function(){return Tm})),n.d(u,"getBoundingOffsetRect",(function(){return Dm})),n.d(u,"createSVGPoint",(function(){return nm})),n.d(u,"createSVGMatrix",(function(){return rm})),n.d(u,"createSVGTransform",(function(){return im})),n.d(u,"transformStringToMatrix",(function(){return om})),n.d(u,"matrixToTransformString",(function(){return am})),n.d(u,"parseTransformString",(function(){return sm})),n.d(u,"decomposeMatrix",(function(){return um})),n.d(u,"matrixToScale",(function(){return cm})),n.d(u,"matrixToRotation",(function(){return hm})),n.d(u,"matrixToTranslation",(function(){return dm})),n.d(u,"transformPoint",(function(){return fm})),n.d(u,"transformLine",(function(){return gm})),n.d(u,"transformPolyline",(function(){return pm})),n.d(u,"transformRectangle",(function(){return vm})),n.d(u,"transform",(function(){return Nm})),n.d(u,"translate",(function(){return jm})),n.d(u,"rotate",(function(){return Lm})),n.d(u,"scale",(function(){return Fm})),n.d(u,"translateAndAutoOrient",(function(){return Rm})),n.d(u,"MouseWheelHandle",(function(){return Bm})),n.d(u,"isVector",(function(){return zm})),n.d(u,"createVector",(function(){return Im})),n.d(u,"createVectors",(function(){return Vm}));var c,h=n("1157"),v=n.n(h),y=(n("b22e"),navigator.userAgent);if(function(e){e.IS_MAC=navigator.appVersion.indexOf("Mac")>0,e.IS_IOS=!!y.match(/(iPad|iPhone|iPod)/g),e.IS_WINDOWS=navigator.appVersion.indexOf("Win")>0,e.IS_IE=y.indexOf("MSIE")>=0,e.IS_IE11=!!y.match(/Trident\/7\./),e.IS_EDGE=!!y.match(/Edge\//),e.IS_NETSCAPE=y.indexOf("Mozilla/")>=0&&y.indexOf("MSIE")<0&&y.indexOf("Edge/")<0,e.IS_CHROME_APP=null!=window.chrome&&null!=window.chrome.app&&null!=window.chrome.app.runtime,e.IS_CHROME=y.indexOf("Chrome/")>=0&&y.indexOf("Edge/")<0,e.IS_OPERA=y.indexOf("Opera/")>=0||y.indexOf("OPR/")>=0,e.IS_FIREFOX=y.indexOf("Firefox/")>=0,e.IS_SAFARI=y.indexOf("AppleWebKit/")>=0&&y.indexOf("Chrome/")<0&&y.indexOf("Edge/")<0,e.SUPPORT_TOUCH="ontouchstart"in document.documentElement,e.SUPPORT_POINTER=null!=window.PointerEvent&&!e.IS_MAC,e.SUPPORT_PASSIVE=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e.SUPPORT_PASSIVE=!0}}),n=document.createElement("div");n.addEventListener&&n.addEventListener("click",(function(){}),t)}catch(r){}e.NO_FOREIGNOBJECT=!document.createElementNS||"[object SVGForeignObjectElement]"!=="".concat(document.createElementNS("http://www.w3.org/2000/svg","foreignObject"))||y.indexOf("Opera/")>=0,e.SUPPORT_FOREIGNOBJECT=!e.NO_FOREIGNOBJECT}(c||(c={})),function(e){function t(){var e=window.module;return null!=e&&null!=e.hot&&null!=e.hot.status?e.hot.status():"unkonwn"}function n(){return"apply"===t()}e.getHMRStatus=t,e.isApplyingHMR=n;var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function i(e){var t=document.createElement(r[e]||"div"),n="on".concat(e),i=n in t;return i||(t.setAttribute(n,"return;"),i="function"===typeof t[n]),i}e.isEventSupported=i}(c||(c={})),c.SUPPORT_PASSIVE){v.a.event.special.touchstart={setup:function(e,t,n){if(!this.addEventListener)return!1;this.addEventListener("touchstart",n,{passive:!0})}};var m=v.a.event.special.mousewheel;if(m){var b=m.setup;m.setup=function(){var e=this,t=this.addEventListener;if(!t)return!1;this.addEventListener=function(n,r){t.call(e,n,r,{passive:!0})},b.call(this),this.addEventListener=t}}}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),function(e){e.forEach((function(e){Object.prototype.hasOwnProperty.call(e,"append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){for(var e=document.createDocumentFragment(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){var n=t instanceof Node;e.appendChild(n?t:document.createTextNode(String(t)))})),this.appendChild(e)}})}))}([Element.prototype,Document.prototype,DocumentFragment.prototype]);n("0b19");var x=n("ff51"),w=n("e56b"),C=n("bc9b"),k=n("26ee"),E=k["a"]["__core-js_shared__"],S=E,A=function(){var e=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function O(e){return!!A&&A in e}var M=O,P=n("2332"),T=Function.prototype,D=T.toString;function N(e){if(null!=e){try{return D.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var j=N,L=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,R=Function.prototype,B=Object.prototype,z=R.toString,I=B.hasOwnProperty,V=RegExp("^"+z.call(I).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _(e){if(!Object(P["a"])(e)||M(e))return!1;var t=Object(C["a"])(e)?V:F;return t.test(j(e))}var G=_;function H(e,t){return null==e?void 0:e[t]}var U=H;function q(e,t){var n=U(e,t);return G(n)?n:void 0}var $=q,W=$(Object,"create"),X=W;function Y(){this.__data__=X?X(null):{},this.size=0}var J=Y;function Z(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var K=Z,Q="__lodash_hash_undefined__",ee=Object.prototype,te=ee.hasOwnProperty;function ne(e){var t=this.__data__;if(X){var n=t[e];return n===Q?void 0:n}return te.call(t,e)?t[e]:void 0}var re=ne,ie=Object.prototype,oe=ie.hasOwnProperty;function ae(e){var t=this.__data__;return X?void 0!==t[e]:oe.call(t,e)}var se=ae,le="__lodash_hash_undefined__";function ue(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=X&&void 0===t?le:t,this}var ce=ue;function he(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}he.prototype.clear=J,he.prototype["delete"]=K,he.prototype.get=re,he.prototype.has=se,he.prototype.set=ce;var de=he;function fe(){this.__data__=[],this.size=0}var ge=fe;function pe(e,t){return e===t||e!==e&&t!==t}var ve=pe;function ye(e,t){var n=e.length;while(n--)if(ve(e[n][0],t))return n;return-1}var me=ye,be=Array.prototype,xe=be.splice;function we(e){var t=this.__data__,n=me(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xe.call(t,n,1),--this.size,!0}var Ce=we;function ke(e){var t=this.__data__,n=me(t,e);return n<0?void 0:t[n][1]}var Ee=ke;function Se(e){return me(this.__data__,e)>-1}var Ae=Se;function Oe(e,t){var n=this.__data__,r=me(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Me=Oe;function Pe(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}Pe.prototype.clear=ge,Pe.prototype["delete"]=Ce,Pe.prototype.get=Ee,Pe.prototype.has=Ae,Pe.prototype.set=Me;var Te=Pe,De=$(k["a"],"Map"),Ne=De;function je(){this.size=0,this.__data__={hash:new de,map:new(Ne||Te),string:new de}}var Le=je;function Fe(e){var t=p(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var Re=Fe;function Be(e,t){var n=e.__data__;return Re(t)?n["string"==typeof t?"string":"hash"]:n.map}var ze=Be;function Ie(e){var t=ze(this,e)["delete"](e);return this.size-=t?1:0,t}var Ve=Ie;function _e(e){return ze(this,e).get(e)}var Ge=_e;function He(e){return ze(this,e).has(e)}var Ue=He;function qe(e,t){var n=ze(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var $e=qe;function We(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}We.prototype.clear=Le,We.prototype["delete"]=Ve,We.prototype.get=Ge,We.prototype.has=Ue,We.prototype.set=$e;var Xe=We,Ye="__lodash_hash_undefined__";function Je(e){return this.__data__.set(e,Ye),this}var Ze=Je;function Ke(e){return this.__data__.has(e)}var Qe=Ke;function et(e){var t=-1,n=null==e?0:e.length;this.__data__=new Xe;while(++t<n)this.add(e[t])}et.prototype.add=et.prototype.push=Ze,et.prototype.has=Qe;var tt=et;function nt(e,t,n,r){var i=e.length,o=n+(r?1:-1);while(r?o--:++o<i)if(t(e[o],o,e))return o;return-1}var rt=nt;function it(e){return e!==e}var ot=it;function at(e,t,n){var r=n-1,i=e.length;while(++r<i)if(e[r]===t)return r;return-1}var st=at;function lt(e,t,n){return t===t?st(e,t,n):rt(e,ot,n)}var ut=lt;function ct(e,t){var n=null==e?0:e.length;return!!n&&ut(e,t,0)>-1}var ht=ct;function dt(e,t,n){var r=-1,i=null==e?0:e.length;while(++r<i)if(n(t,e[r]))return!0;return!1}var ft=dt;function gt(e,t){return e.has(t)}var pt=gt,vt=$(k["a"],"Set"),yt=vt;function mt(){}var bt=mt;function xt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var wt=xt,Ct=1/0,kt=yt&&1/wt(new yt([,-0]))[1]==Ct?function(e){return new yt(e)}:bt,Et=kt,St=200;function At(e,t,n){var r=-1,i=ht,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=ft;else if(o>=St){var u=t?null:Et(e);if(u)return wt(u);a=!1,i=pt,l=new tt}else l=t?[]:s;e:while(++r<o){var c=e[r],h=t?t(c):c;if(c=n||0!==c?c:0,a&&h===h){var d=l.length;while(d--)if(l[d]===h)continue e;t&&l.push(h),s.push(c)}else i(l,h,n)||(l!==s&&l.push(h),s.push(c))}return s}var Ot=At;function Mt(e){return e&&e.length?Ot(e):[]}var Pt=Mt;function Tt(e,t){var n=-1,r=t.length,i=e.length;while(++n<r)e[i+n]=t[n];return e}var Dt=Tt,Nt=n("ca54"),jt=n("f0ce"),Lt=n("1147"),Ft="[object Arguments]";function Rt(e){return Object(Lt["a"])(e)&&Object(jt["a"])(e)==Ft}var Bt=Rt,zt=Object.prototype,It=zt.hasOwnProperty,Vt=zt.propertyIsEnumerable,_t=Bt(function(){return arguments}())?Bt:function(e){return Object(Lt["a"])(e)&&It.call(e,"callee")&&!Vt.call(e,"callee")},Gt=_t,Ht=Nt["a"]?Nt["a"].isConcatSpreadable:void 0;function Ut(e){return Object(x["a"])(e)||Gt(e)||!!(Ht&&e&&e[Ht])}var qt=Ut;function $t(e,t,n,r,i){var o=-1,a=e.length;n||(n=qt),i||(i=[]);while(++o<a){var s=e[o];t>0&&n(s)?t>1?$t(s,t-1,n,r,i):Dt(i,s):r||(i[i.length]=s)}return i}var Wt=$t;function Xt(e){return e}var Yt=Xt;function Jt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Zt=Jt,Kt=Math.max;function Qt(e,t,n){return t=Kt(void 0===t?e.length-1:t,0),function(){var r=arguments,i=-1,o=Kt(r.length-t,0),a=Array(o);while(++i<o)a[i]=r[t+i];i=-1;var s=Array(t+1);while(++i<t)s[i]=r[i];return s[t]=n(a),Zt(e,this,s)}}var en=Qt;function tn(e){return function(){return e}}var nn=tn,rn=function(){try{var e=$(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),on=rn,an=on?function(e,t){return on(e,"toString",{configurable:!0,enumerable:!1,value:nn(t),writable:!0})}:Yt,sn=an,ln=800,un=16,cn=Date.now;function hn(e){var t=0,n=0;return function(){var r=cn(),i=un-(r-n);if(n=r,i>0){if(++t>=ln)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dn=hn,fn=dn(sn),gn=fn;function pn(e,t){return gn(en(e,t,Yt),e+"")}var vn=pn;function yn(e){return Object(Lt["a"])(e)&&Object(w["a"])(e)}var mn=yn,bn=vn((function(e){return Ot(Wt(e,1,mn,!0))})),xn=bn,wn=n("1bc6"),Cn=4294967295,kn=Cn-1,En=Math.floor,Sn=Math.min;function An(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;t=n(t);var a=t!==t,s=null===t,l=Object(wn["a"])(t),u=void 0===t;while(i<o){var c=En((i+o)/2),h=n(e[c]),d=void 0!==h,f=null===h,g=h===h,p=Object(wn["a"])(h);if(a)var v=r||g;else v=u?g&&(r||d):s?g&&d&&(r||!f):l?g&&d&&!f&&(r||!p):!f&&!p&&(r?h<=t:h<t);v?i=c+1:o=c}return Sn(o,kn)}var On=An,Mn=4294967295,Pn=Mn>>>1;function Tn(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=Pn){while(r<i){var o=r+i>>>1,a=e[o];null!==a&&!Object(wn["a"])(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return On(e,t,Yt,n)}var Dn=Tn;function Nn(e,t){return Dn(e,t)}var jn=Nn;function Ln(){this.__data__=new Te,this.size=0}var Fn=Ln;function Rn(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}var Bn=Rn;function zn(e){return this.__data__.get(e)}var In=zn;function Vn(e){return this.__data__.has(e)}var _n=Vn,Gn=200;function Hn(e,t){var n=this.__data__;if(n instanceof Te){var r=n.__data__;if(!Ne||r.length<Gn-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xe(r)}return n.set(e,t),this.size=n.size,this}var Un=Hn;function qn(e){var t=this.__data__=new Te(e);this.size=t.size}qn.prototype.clear=Fn,qn.prototype["delete"]=Bn,qn.prototype.get=In,qn.prototype.has=_n,qn.prototype.set=Un;var $n=qn;function Wn(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}var Xn=Wn,Yn=1,Jn=2;function Zn(e,t,n,r,i,o){var a=n&Yn,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var h=-1,d=!0,f=n&Jn?new tt:void 0;o.set(e,t),o.set(t,e);while(++h<s){var g=e[h],p=t[h];if(r)var v=a?r(p,g,h,t,e,o):r(g,p,h,e,t,o);if(void 0!==v){if(v)continue;d=!1;break}if(f){if(!Xn(t,(function(e,t){if(!pt(f,t)&&(g===e||i(g,e,n,r,o)))return f.push(t)}))){d=!1;break}}else if(g!==p&&!i(g,p,n,r,o)){d=!1;break}}return o["delete"](e),o["delete"](t),d}var Kn=Zn,Qn=k["a"].Uint8Array,er=Qn;function tr(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}var nr=tr,rr=1,ir=2,or="[object Boolean]",ar="[object Date]",sr="[object Error]",lr="[object Map]",ur="[object Number]",cr="[object RegExp]",hr="[object Set]",dr="[object String]",fr="[object Symbol]",gr="[object ArrayBuffer]",pr="[object DataView]",vr=Nt["a"]?Nt["a"].prototype:void 0,yr=vr?vr.valueOf:void 0;function mr(e,t,n,r,i,o,a){switch(n){case pr:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case gr:return!(e.byteLength!=t.byteLength||!o(new er(e),new er(t)));case or:case ar:case ur:return ve(+e,+t);case sr:return e.name==t.name&&e.message==t.message;case cr:case dr:return e==t+"";case lr:var s=nr;case hr:var l=r&rr;if(s||(s=wt),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=ir,a.set(e,t);var c=Kn(s(e),s(t),r,i,o,a);return a["delete"](e),c;case fr:if(yr)return yr.call(e)==yr.call(t)}return!1}var br=mr;function xr(e,t,n){var r=t(e);return Object(x["a"])(e)?r:Dt(r,n(e))}var wr=xr;function Cr(e,t){var n=-1,r=null==e?0:e.length,i=0,o=[];while(++n<r){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var kr=Cr;function Er(){return[]}var Sr=Er,Ar=Object.prototype,Or=Ar.propertyIsEnumerable,Mr=Object.getOwnPropertySymbols,Pr=Mr?function(e){return null==e?[]:(e=Object(e),kr(Mr(e),(function(t){return Or.call(e,t)})))}:Sr,Tr=Pr;function Dr(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}var Nr=Dr,jr=n("58e0"),Lr=9007199254740991,Fr=/^(?:0|[1-9]\d*)$/;function Rr(e,t){var n=p(e);return t=null==t?Lr:t,!!t&&("number"==n||"symbol"!=n&&Fr.test(e))&&e>-1&&e%1==0&&e<t}var Br=Rr,zr=n("26ce"),Ir="[object Arguments]",Vr="[object Array]",_r="[object Boolean]",Gr="[object Date]",Hr="[object Error]",Ur="[object Function]",qr="[object Map]",$r="[object Number]",Wr="[object Object]",Xr="[object RegExp]",Yr="[object Set]",Jr="[object String]",Zr="[object WeakMap]",Kr="[object ArrayBuffer]",Qr="[object DataView]",ei="[object Float32Array]",ti="[object Float64Array]",ni="[object Int8Array]",ri="[object Int16Array]",ii="[object Int32Array]",oi="[object Uint8Array]",ai="[object Uint8ClampedArray]",si="[object Uint16Array]",li="[object Uint32Array]",ui={};function ci(e){return Object(Lt["a"])(e)&&Object(zr["a"])(e.length)&&!!ui[Object(jt["a"])(e)]}ui[ei]=ui[ti]=ui[ni]=ui[ri]=ui[ii]=ui[oi]=ui[ai]=ui[si]=ui[li]=!0,ui[Ir]=ui[Vr]=ui[Kr]=ui[_r]=ui[Qr]=ui[Gr]=ui[Hr]=ui[Ur]=ui[qr]=ui[$r]=ui[Wr]=ui[Xr]=ui[Yr]=ui[Jr]=ui[Zr]=!1;var hi=ci;function di(e){return function(t){return e(t)}}var fi=di,gi=n("c6eb"),pi=gi["a"]&&gi["a"].isTypedArray,vi=pi?fi(pi):hi,yi=vi,mi=Object.prototype,bi=mi.hasOwnProperty;function xi(e,t){var n=Object(x["a"])(e),r=!n&&Gt(e),i=!n&&!r&&Object(jr["a"])(e),o=!n&&!r&&!i&&yi(e),a=n||r||i||o,s=a?Nr(e.length,String):[],l=s.length;for(var u in e)!t&&!bi.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Br(u,l))||s.push(u);return s}var wi=xi,Ci=Object.prototype;function ki(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||Ci;return e===n}var Ei=ki;function Si(e,t){return function(n){return e(t(n))}}var Ai=Si,Oi=Ai(Object.keys,Object),Mi=Oi,Pi=Object.prototype,Ti=Pi.hasOwnProperty;function Di(e){if(!Ei(e))return Mi(e);var t=[];for(var n in Object(e))Ti.call(e,n)&&"constructor"!=n&&t.push(n);return t}var Ni=Di;function ji(e){return Object(w["a"])(e)?wi(e):Ni(e)}var Li=ji;function Fi(e){return wr(e,Li,Tr)}var Ri=Fi,Bi=1,zi=Object.prototype,Ii=zi.hasOwnProperty;function Vi(e,t,n,r,i,o){var a=n&Bi,s=Ri(e),l=s.length,u=Ri(t),c=u.length;if(l!=c&&!a)return!1;var h=l;while(h--){var d=s[h];if(!(a?d in t:Ii.call(t,d)))return!1}var f=o.get(e),g=o.get(t);if(f&&g)return f==t&&g==e;var p=!0;o.set(e,t),o.set(t,e);var v=a;while(++h<l){d=s[h];var y=e[d],m=t[d];if(r)var b=a?r(m,y,d,t,e,o):r(y,m,d,e,t,o);if(!(void 0===b?y===m||i(y,m,n,r,o):b)){p=!1;break}v||(v="constructor"==d)}if(p&&!v){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(p=!1)}return o["delete"](e),o["delete"](t),p}var _i=Vi,Gi=$(k["a"],"DataView"),Hi=Gi,Ui=$(k["a"],"Promise"),qi=Ui,$i=$(k["a"],"WeakMap"),Wi=$i,Xi="[object Map]",Yi="[object Object]",Ji="[object Promise]",Zi="[object Set]",Ki="[object WeakMap]",Qi="[object DataView]",eo=j(Hi),to=j(Ne),no=j(qi),ro=j(yt),io=j(Wi),oo=jt["a"];(Hi&&oo(new Hi(new ArrayBuffer(1)))!=Qi||Ne&&oo(new Ne)!=Xi||qi&&oo(qi.resolve())!=Ji||yt&&oo(new yt)!=Zi||Wi&&oo(new Wi)!=Ki)&&(oo=function(e){var t=Object(jt["a"])(e),n=t==Yi?e.constructor:void 0,r=n?j(n):"";if(r)switch(r){case eo:return Qi;case to:return Xi;case no:return Ji;case ro:return Zi;case io:return Ki}return t});var ao=oo,so=1,lo="[object Arguments]",uo="[object Array]",co="[object Object]",ho=Object.prototype,fo=ho.hasOwnProperty;function go(e,t,n,r,i,o){var a=Object(x["a"])(e),s=Object(x["a"])(t),l=a?uo:ao(e),u=s?uo:ao(t);l=l==lo?co:l,u=u==lo?co:u;var c=l==co,h=u==co,d=l==u;if(d&&Object(jr["a"])(e)){if(!Object(jr["a"])(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new $n),a||yi(e)?Kn(e,t,n,r,i,o):br(e,t,l,n,r,i,o);if(!(n&so)){var f=c&&fo.call(e,"__wrapped__"),g=h&&fo.call(t,"__wrapped__");if(f||g){var p=f?e.value():e,v=g?t.value():t;return o||(o=new $n),i(p,v,n,r,o)}}return!!d&&(o||(o=new $n),_i(e,t,n,r,i,o))}var po=go;function vo(e,t,n,r,i){return e===t||(null==e||null==t||!Object(Lt["a"])(e)&&!Object(Lt["a"])(t)?e!==e&&t!==t:po(e,t,n,r,vo,i))}var yo=vo,mo=1,bo=2;function xo(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;e=Object(e);while(i--){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}while(++i<o){s=n[i];var l=s[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var h=new $n;if(r)var d=r(u,c,l,e,t,h);if(!(void 0===d?yo(c,u,mo|bo,r,h):d))return!1}}return!0}var wo=xo;function Co(e){return e===e&&!Object(P["a"])(e)}var ko=Co;function Eo(e){var t=Li(e),n=t.length;while(n--){var r=t[n],i=e[r];t[n]=[r,i,ko(i)]}return t}var So=Eo;function Ao(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}var Oo=Ao;function Mo(e){var t=So(e);return 1==t.length&&t[0][2]?Oo(t[0][0],t[0][1]):function(n){return n===e||wo(n,e,t)}}var Po=Mo,To=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Do=/^\w*$/;function No(e,t){if(Object(x["a"])(e))return!1;var n=p(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Object(wn["a"])(e))||(Do.test(e)||!To.test(e)||null!=t&&e in Object(t))}var jo=No,Lo="Expected a function";function Fo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(Lo);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Fo.Cache||Xe),n}Fo.Cache=Xe;var Ro=Fo,Bo=500;function zo(e){var t=Ro(e,(function(e){return n.size===Bo&&n.clear(),e})),n=t.cache;return t}var Io=zo,Vo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_o=/\\(\\)?/g,Go=Io((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Vo,(function(e,n,r,i){t.push(r?i.replace(_o,"$1"):n||e)})),t})),Ho=Go,Uo=n("79f6");function qo(e,t){return Object(x["a"])(e)?e:jo(e,t)?[e]:Ho(Object(Uo["a"])(e))}var $o=qo,Wo=1/0;function Xo(e){if("string"==typeof e||Object(wn["a"])(e))return e;var t=e+"";return"0"==t&&1/e==-Wo?"-0":t}var Yo=Xo;function Jo(e,t){t=$o(t,e);var n=0,r=t.length;while(null!=e&&n<r)e=e[Yo(t[n++])];return n&&n==r?e:void 0}var Zo=Jo;function Ko(e,t,n){var r=null==e?void 0:Zo(e,t);return void 0===r?n:r}var Qo=Ko;function ea(e,t){return null!=e&&t in Object(e)}var ta=ea;function na(e,t,n){t=$o(t,e);var r=-1,i=t.length,o=!1;while(++r<i){var a=Yo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=null==e?0:e.length,!!i&&Object(zr["a"])(i)&&Br(a,i)&&(Object(x["a"])(e)||Gt(e)))}var ra=na;function ia(e,t){return null!=e&&ra(e,t,ta)}var oa=ia,aa=1,sa=2;function la(e,t){return jo(e)&&ko(t)?Oo(Yo(e),t):function(n){var r=Qo(n,e);return void 0===r&&r===t?oa(n,e):yo(t,r,aa|sa)}}var ua=la;function ca(e){return function(t){return null==t?void 0:t[e]}}var ha=ca;function da(e){return function(t){return Zo(t,e)}}var fa=da;function ga(e){return jo(e)?ha(Yo(e)):fa(e)}var pa=ga;function va(e){return"function"==typeof e?e:null==e?Yt:"object"==p(e)?Object(x["a"])(e)?ua(e[0],e[1]):Po(e):pa(e)}var ya=va;function ma(e,t,n){return On(e,t,ya(n,2))}var ba=ma,xa=n("b703");function wa(e){return function(t,n,r){var i=-1,o=Object(t),a=r(t),s=a.length;while(s--){var l=a[e?s:++i];if(!1===n(o[l],l,o))break}return t}}var Ca=wa,ka=Ca(),Ea=ka;function Sa(e,t){return e&&Ea(e,t,Li)}var Aa=Sa;function Oa(e,t){return function(n,r){if(null==n)return n;if(!Object(w["a"])(n))return e(n,r);var i=n.length,o=t?i:-1,a=Object(n);while(t?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}var Ma=Oa,Pa=Ma(Aa),Ta=Pa;function Da(e,t){var n=-1,r=Object(w["a"])(e)?Array(e.length):[];return Ta(e,(function(e,i,o){r[++n]=t(e,i,o)})),r}var Na=Da;function ja(e,t){var n=e.length;e.sort(t);while(n--)e[n]=e[n].value;return e}var La=ja;function Fa(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e===e,o=Object(wn["a"])(e),a=void 0!==t,s=null===t,l=t===t,u=Object(wn["a"])(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var Ra=Fa;function Ba(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;while(++r<a){var l=Ra(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}var za=Ba;function Ia(e,t,n){t=t.length?Object(xa["a"])(t,(function(e){return Object(x["a"])(e)?function(t){return Zo(t,1===e.length?e[0]:e)}:e})):[Yt];var r=-1;t=Object(xa["a"])(t,fi(ya));var i=Na(e,(function(e,n,i){var o=Object(xa["a"])(t,(function(t){return t(e)}));return{criteria:o,index:++r,value:e}}));return La(i,(function(e,t){return za(e,t,n)}))}var Va=Ia;function _a(e,t,n){if(!Object(P["a"])(n))return!1;var r=p(t);return!!("number"==r?Object(w["a"])(n)&&Br(t,n.length):"string"==r&&t in n)&&ve(n[t],e)}var Ga=_a,Ha=vn((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ga(e,t[0],t[1])?t=[]:n>2&&Ga(t[0],t[1],t[2])&&(t=[t[0]]),Va(e,Wt(t,1),[])})),Ua=Ha;function qa(e,t,n){"__proto__"==t&&on?on(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var $a=qa;function Wa(e,t,n,r){var i=-1,o=null==e?0:e.length;while(++i<o){var a=e[i];t(r,a,n(a),e)}return r}var Xa=Wa;function Ya(e,t,n,r){return Ta(e,(function(e,i,o){t(r,e,n(e),o)})),r}var Ja=Ya;function Za(e,t){return function(n,r){var i=Object(x["a"])(n)?Xa:Ja,o=t?t():{};return i(n,e,ya(r,2),o)}}var Ka=Za,Qa=Object.prototype,es=Qa.hasOwnProperty,ts=Ka((function(e,t,n){es.call(e,n)?e[n].push(t):$a(e,n,[t])})),ns=ts,rs=200;function is(e,t,n,r){var i=-1,o=ht,a=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=Object(xa["a"])(t,fi(n))),r?(o=ft,a=!1):t.length>=rs&&(o=pt,a=!1,t=new tt(t));e:while(++i<s){var c=e[i],h=null==n?c:n(c);if(c=r||0!==c?c:0,a&&h===h){var d=u;while(d--)if(t[d]===h)continue e;l.push(c)}else o(t,h,r)||l.push(c)}return l}var os=is,as=vn((function(e,t){return mn(e)?os(e,Wt(t,1,mn,!0)):[]})),ss=as;function ls(e,t,n){var r,i,o=us(e,n),a=us(t,n),s=a.free,l=o.keyIndex,u=a.keyIndex,c=[],h=[],d=0,f=0;while(d<e.length){if(r=e[d],i=r[n],i)if(u.hasOwnProperty(i)){var g=u[i];h.push(t[g])}else h.push(null);else{f+=1;var p=s[f];h.push(p||null)}d+=1}var v=h.slice(0);d=0;while(d<v.length)null===v[d]?(k(d),S(d)):d+=1;var y=d=0;while(d<t.length){r=t[d],i=r[n];var m=v[y];if(m){var b=m[n];if(i===b)y+=1;else if(l.hasOwnProperty(i)){var x=v[y+1];if(x){var w=x[n];w===i?(k(d),S(y),y+=1):E(d,r)}}else E(d,r)}else E(d,r);d+=1}var C=v.length-y;while((y+=1)<v.length)C-=1,k(C+d);function k(e){var t={index:e,type:0,item:null};c.push(t)}function E(e,t){var n={index:e,item:t,type:1};c.push(n)}function S(e){v.splice(e,1)}return{moves:c}}function us(e,t){for(var n={},r=[],i=0,o=e.length;i<o;i+=1){var a=e[i],s=a[t];s?n[s]=i:r.push(a)}return{keyIndex:n,free:r}}var cs=Object.prototype,hs=cs.hasOwnProperty;function ds(e,t){return null!=e&&hs.call(e,t)}var fs=ds;function gs(e,t){return null!=e&&ra(e,t,fs)}var ps=gs,vs=Object.prototype,ys=vs.hasOwnProperty;function ms(e,t,n){var r=e[t];ys.call(e,t)&&ve(r,n)&&(void 0!==n||t in e)||$a(e,t,n)}var bs=ms;function xs(e,t,n,r){if(!Object(P["a"])(e))return e;t=$o(t,e);var i=-1,o=t.length,a=o-1,s=e;while(null!=s&&++i<o){var l=Yo(t[i]),u=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var c=s[l];u=r?r(c,l,s):void 0,void 0===u&&(u=Object(P["a"])(c)?c:Br(t[i+1])?[]:{})}bs(s,l,u),s=s[l]}return e}var ws=xs;function Cs(e,t,n){var r=-1,i=t.length,o={};while(++r<i){var a=t[r],s=Zo(e,a);n(s,a)&&ws(o,$o(a,e),s)}return o}var ks=Cs;function Es(e,t){return ks(e,t,(function(t,n){return oa(e,n)}))}var Ss=Es;function As(e){var t=null==e?0:e.length;return t?Wt(e,1):[]}var Os=As;function Ms(e){return gn(en(e,void 0,Os),e+"")}var Ps=Ms,Ts=Ps((function(e,t){return null==e?{}:Ss(e,t)})),Ds=Ts;function Ns(e){return"function"==typeof e?e:Yt}var js=Ns;function Ls(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var Fs=Ls,Rs=Object.prototype,Bs=Rs.hasOwnProperty;function zs(e){if(!Object(P["a"])(e))return Fs(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Bs.call(e,r))&&n.push(r);return n}var Is=zs;function Vs(e){return Object(w["a"])(e)?wi(e,!0):Is(e)}var _s=Vs;function Gs(e,t){return null==e?e:Ea(e,js(t),_s)}var Hs=Gs;function Us(e,t,n){(void 0!==n&&!ve(e[t],n)||void 0===n&&!(t in e))&&$a(e,t,n)}var qs=Us,$s=n("dff1");function Ws(e){var t=new e.constructor(e.byteLength);return new er(t).set(new er(e)),t}var Xs=Ws;function Ys(e,t){var n=t?Xs(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Js=Ys;function Zs(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}var Ks=Zs,Qs=Object.create,el=function(){function e(){}return function(t){if(!Object(P["a"])(t))return{};if(Qs)return Qs(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),tl=el,nl=Ai(Object.getPrototypeOf,Object),rl=nl;function il(e){return"function"!=typeof e.constructor||Ei(e)?{}:tl(rl(e))}var ol=il,al="[object Object]",sl=Function.prototype,ll=Object.prototype,ul=sl.toString,cl=ll.hasOwnProperty,hl=ul.call(Object);function dl(e){if(!Object(Lt["a"])(e)||Object(jt["a"])(e)!=al)return!1;var t=rl(e);if(null===t)return!0;var n=cl.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ul.call(n)==hl}var fl=dl;function gl(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var pl=gl;function vl(e,t,n,r){var i=!n;n||(n={});var o=-1,a=t.length;while(++o<a){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?$a(n,s,l):bs(n,s,l)}return n}var yl=vl;function ml(e){return yl(e,_s(e))}var bl=ml;function xl(e,t,n,r,i,o,a){var s=pl(e,n),l=pl(t,n),u=a.get(l);if(u)qs(e,n,u);else{var c=o?o(s,l,n+"",e,t,a):void 0,h=void 0===c;if(h){var d=Object(x["a"])(l),f=!d&&Object(jr["a"])(l),g=!d&&!f&&yi(l);c=l,d||f||g?Object(x["a"])(s)?c=s:mn(s)?c=Ks(s):f?(h=!1,c=Object($s["a"])(l,!0)):g?(h=!1,c=Js(l,!0)):c=[]:fl(l)||Gt(l)?(c=s,Gt(s)?c=bl(s):Object(P["a"])(s)&&!Object(C["a"])(s)||(c=ol(l))):h=!1}h&&(a.set(l,c),i(c,l,r,o,a),a["delete"](l)),qs(e,n,c)}}var wl=xl;function Cl(e,t,n,r,i){e!==t&&Ea(t,(function(o,a){if(i||(i=new $n),Object(P["a"])(o))wl(e,t,a,n,Cl,r,i);else{var s=r?r(pl(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),qs(e,a,s)}}),_s)}var kl=Cl;function El(e){return vn((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&Ga(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);while(++r<i){var s=n[r];s&&e(t,s,r,o)}return t}))}var Sl=El,Al=Sl((function(e,t,n){kl(e,t,n)})),Ol=Al,Ml=Sl((function(e,t){yl(t,_s(t),e)})),Pl=Ml;function Tl(e,t){return yo(e,t)}var Dl=Tl,Nl="[object Map]",jl="[object Set]",Ll=Object.prototype,Fl=Ll.hasOwnProperty;function Rl(e){if(null==e)return!0;if(Object(w["a"])(e)&&(Object(x["a"])(e)||"string"==typeof e||"function"==typeof e.splice||Object(jr["a"])(e)||yi(e)||Gt(e)))return!e.length;var t=ao(e);if(t==Nl||t==jl)return!e.size;if(Ei(e))return!Ni(e).length;for(var n in e)if(Fl.call(e,n))return!1;return!0}var Bl=Rl;function zl(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}var Il=zl;function Vl(e,t){return e&&yl(t,Li(t),e)}var _l=Vl;function Gl(e,t){return e&&yl(t,_s(t),e)}var Hl=Gl;function Ul(e,t){return yl(e,Tr(e),t)}var ql=Ul,$l=Object.getOwnPropertySymbols,Wl=$l?function(e){var t=[];while(e)Dt(t,Tr(e)),e=rl(e);return t}:Sr,Xl=Wl;function Yl(e,t){return yl(e,Xl(e),t)}var Jl=Yl;function Zl(e){return wr(e,_s,Xl)}var Kl=Zl,Ql=Object.prototype,eu=Ql.hasOwnProperty;function tu(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&eu.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var nu=tu;function ru(e,t){var n=t?Xs(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var iu=ru,ou=/\w*$/;function au(e){var t=new e.constructor(e.source,ou.exec(e));return t.lastIndex=e.lastIndex,t}var su=au,lu=Nt["a"]?Nt["a"].prototype:void 0,uu=lu?lu.valueOf:void 0;function cu(e){return uu?Object(uu.call(e)):{}}var hu=cu,du="[object Boolean]",fu="[object Date]",gu="[object Map]",pu="[object Number]",vu="[object RegExp]",yu="[object Set]",mu="[object String]",bu="[object Symbol]",xu="[object ArrayBuffer]",wu="[object DataView]",Cu="[object Float32Array]",ku="[object Float64Array]",Eu="[object Int8Array]",Su="[object Int16Array]",Au="[object Int32Array]",Ou="[object Uint8Array]",Mu="[object Uint8ClampedArray]",Pu="[object Uint16Array]",Tu="[object Uint32Array]";function Du(e,t,n){var r=e.constructor;switch(t){case xu:return Xs(e);case du:case fu:return new r(+e);case wu:return iu(e,n);case Cu:case ku:case Eu:case Su:case Au:case Ou:case Mu:case Pu:case Tu:return Js(e,n);case gu:return new r;case pu:case mu:return new r(e);case vu:return su(e);case yu:return new r;case bu:return hu(e)}}var Nu=Du,ju="[object Map]";function Lu(e){return Object(Lt["a"])(e)&&ao(e)==ju}var Fu=Lu,Ru=gi["a"]&&gi["a"].isMap,Bu=Ru?fi(Ru):Fu,zu=Bu,Iu="[object Set]";function Vu(e){return Object(Lt["a"])(e)&&ao(e)==Iu}var _u=Vu,Gu=gi["a"]&&gi["a"].isSet,Hu=Gu?fi(Gu):_u,Uu=Hu,qu=1,$u=2,Wu=4,Xu="[object Arguments]",Yu="[object Array]",Ju="[object Boolean]",Zu="[object Date]",Ku="[object Error]",Qu="[object Function]",ec="[object GeneratorFunction]",tc="[object Map]",nc="[object Number]",rc="[object Object]",ic="[object RegExp]",oc="[object Set]",ac="[object String]",sc="[object Symbol]",lc="[object WeakMap]",uc="[object ArrayBuffer]",cc="[object DataView]",hc="[object Float32Array]",dc="[object Float64Array]",fc="[object Int8Array]",gc="[object Int16Array]",pc="[object Int32Array]",vc="[object Uint8Array]",yc="[object Uint8ClampedArray]",mc="[object Uint16Array]",bc="[object Uint32Array]",xc={};function wc(e,t,n,r,i,o){var a,s=t&qu,l=t&$u,u=t&Wu;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Object(P["a"])(e))return e;var c=Object(x["a"])(e);if(c){if(a=nu(e),!s)return Ks(e,a)}else{var h=ao(e),d=h==Qu||h==ec;if(Object(jr["a"])(e))return Object($s["a"])(e,s);if(h==rc||h==Xu||d&&!i){if(a=l||d?{}:ol(e),!s)return l?Jl(e,Hl(a,e)):ql(e,_l(a,e))}else{if(!xc[h])return i?e:{};a=Nu(e,h,s)}}o||(o=new $n);var f=o.get(e);if(f)return f;o.set(e,a),Uu(e)?e.forEach((function(r){a.add(wc(r,t,n,r,e,o))})):zu(e)&&e.forEach((function(r,i){a.set(i,wc(r,t,n,i,e,o))}));var g=u?l?Kl:Ri:l?_s:Li,p=c?void 0:g(e);return Il(p||e,(function(r,i){p&&(i=r,r=e[i]),bs(a,i,wc(r,t,n,i,e,o))})),a}xc[Xu]=xc[Yu]=xc[uc]=xc[cc]=xc[Ju]=xc[Zu]=xc[hc]=xc[dc]=xc[fc]=xc[gc]=xc[pc]=xc[tc]=xc[nc]=xc[rc]=xc[ic]=xc[oc]=xc[ac]=xc[sc]=xc[vc]=xc[yc]=xc[mc]=xc[bc]=!0,xc[Ku]=xc[Qu]=xc[lc]=!1;var Cc=wc,kc=4;function Ec(e){return Cc(e,kc)}var Sc=Ec,Ac=1,Oc=4;function Mc(e){return Cc(e,Ac|Oc)}var Pc=Mc,Tc=Object.prototype,Dc=Tc.hasOwnProperty,Nc=vn((function(e,t){e=Object(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;i&&Ga(t[0],t[1],i)&&(r=1);while(++n<r){var o=t[n],a=_s(o),s=-1,l=a.length;while(++s<l){var u=a[s],c=e[u];(void 0===c||ve(c,Tc[u])&&!Dc.call(e,u))&&(e[u]=o[u])}}return e})),jc=Nc;function Lc(e,t,n,r,i,o){return Object(P["a"])(e)&&Object(P["a"])(t)&&(o.set(t,e),kl(e,t,void 0,Lc,o),o["delete"](t)),e}var Fc=Lc,Rc=Sl((function(e,t,n,r){kl(e,t,n,r)})),Bc=Rc,zc=vn((function(e){return e.push(void 0,Fc),Zt(Bc,void 0,e)})),Ic=zc;function Vc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((function(t){Object.getOwnPropertyNames(t.prototype).forEach((function(n){"constructor"!==n&&Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t.prototype,n))}))}))}var _c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])};function Gc(e,t){function n(){this.constructor=e}_c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Hc=function e(){f(this,e)},Uc=/^\s*class\s+/.test("".concat(Hc))||/^\s*class\s*\{/.test("".concat(function(){function e(){f(this,e)}return e}()));function qc(e,t){var n;return Uc?n=new Function("base","return class ".concat(e," extends base { }"))(t):(n=new Function("base","return function ".concat(e,"() { return base.apply(this, arguments) }"))(t),Gc(n,t)),n}function $c(e,t){return null!=e?e:t}function Wc(e,t,n){var r=null!=e?e[t]:null;return void 0!==n?$c(r,n):r}function Xc(e,t,n){var r=null!=e?e[t]:null;return null==r?n:(r=+r,Number.isNaN(r)||!Number.isFinite(r)?n:r)}function Yc(e,t,n){var r=null!=e?e[t]:null;return null==r?n:!!r}function Jc(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",i=Array.isArray(t)?t:t.split(r);if(i.length){n=e;while(i.length){var o=i.shift();if(Object(n)!==n||!o||!(o in n))return;n=n[o]}}return n}function Zc(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",i=Array.isArray(t)?t:t.split(r),o=i.pop();if(o){var a=e;i.forEach((function(e){null==a[e]&&(a[e]={}),a=a[e]})),a[o]=n}return e}function Kc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",r=Array.isArray(t)?t.slice():t.split(n),i=r.pop();if(i)if(r.length>0){var o=Jc(e,r);o&&delete o[i]}else delete e[i];return e}function Qc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=arguments.length>2?arguments[2]:void 0,r={};for(var i in Object.keys(e).forEach((function(i){var o=e[i],a="object"===p(o)||Array.isArray(o);if(a&&n&&n(o)&&(a=!1),a){var s=Qc(o,t,n);Object.keys(s).forEach((function(e){r[i+t+e]=s[e]}))}else r[i]=o})),e)Object.prototype.hasOwnProperty.call(e,i);return r}var eh=n("8121");function th(e){return function(t){return null==e?void 0:e[t]}}var nh=th,rh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ih=nh(rh),oh=ih,ah=/[&<>"']/g,sh=RegExp(ah.source);function lh(e){return e=Object(Uo["a"])(e),e&&sh.test(e)?e.replace(ah,oh):e}var uh=lh,ch={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},hh=nh(ch),dh=hh,fh=/&(?:amp|lt|gt|quot|#39);/g,gh=RegExp(fh.source);function ph(e){return e=Object(Uo["a"])(e),e&&gh.test(e)?e.replace(fh,dh):e}var vh=ph,yh=n("6123"),mh=n("2c57"),bh=n("7ec8");function xh(e,t,n){return e=Object(Uo["a"])(e),n=null==n?0:Object(yh["a"])(Object(bh["a"])(n),0,e.length),t=Object(mh["a"])(t),e.slice(n,n+t.length)==t}var wh=xh;function Ch(e,t,n){e=Object(Uo["a"])(e),t=Object(mh["a"])(t);var r=e.length;n=void 0===n?r:Object(yh["a"])(Object(bh["a"])(n),0,r);var i=n;return n-=t.length,n>=0&&e.slice(n,i)==t}var kh=Ch;function Eh(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;var o=Array(i);while(++r<i)o[r]=e[r+t];return o}var Sh=Eh;function Ah(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Sh(e,t,n)}var Oh=Ah,Mh="\\ud800-\\udfff",Ph="\\u0300-\\u036f",Th="\\ufe20-\\ufe2f",Dh="\\u20d0-\\u20ff",Nh=Ph+Th+Dh,jh="\\ufe0e\\ufe0f",Lh="\\u200d",Fh=RegExp("["+Lh+Mh+Nh+jh+"]");function Rh(e){return Fh.test(e)}var Bh=Rh,zh="[object RegExp]";function Ih(e){return Object(Lt["a"])(e)&&Object(jt["a"])(e)==zh}var Vh=Ih,_h=gi["a"]&&gi["a"].isRegExp,Gh=_h?fi(_h):Vh,Hh=Gh;function Uh(e){return e.split("")}var qh=Uh,$h="\\ud800-\\udfff",Wh="\\u0300-\\u036f",Xh="\\ufe20-\\ufe2f",Yh="\\u20d0-\\u20ff",Jh=Wh+Xh+Yh,Zh="\\ufe0e\\ufe0f",Kh="["+$h+"]",Qh="["+Jh+"]",ed="\\ud83c[\\udffb-\\udfff]",td="(?:"+Qh+"|"+ed+")",nd="[^"+$h+"]",rd="(?:\\ud83c[\\udde6-\\uddff]){2}",id="[\\ud800-\\udbff][\\udc00-\\udfff]",od="\\u200d",ad=td+"?",sd="["+Zh+"]?",ld="(?:"+od+"(?:"+[nd,rd,id].join("|")+")"+sd+ad+")*",ud=sd+ad+ld,cd="(?:"+[nd+Qh+"?",Qh,rd,id,Kh].join("|")+")",hd=RegExp(ed+"(?="+ed+")|"+cd+ud,"g");function dd(e){return e.match(hd)||[]}var fd=dd;function gd(e){return Bh(e)?fd(e):qh(e)}var pd=gd,vd=4294967295;function yd(e,t,n){return n&&"number"!=typeof n&&Ga(e,t,n)&&(t=n=void 0),n=void 0===n?vd:n>>>0,n?(e=Object(Uo["a"])(e),e&&("string"==typeof t||null!=t&&!Hh(t))&&(t=Object(mh["a"])(t),!t&&Bh(e))?Oh(pd(e),0,n):e.split(t,n)):[]}var md=yd,bd=9007199254740991,xd=Math.floor;function wd(e,t){var n="";if(!e||t<1||t>bd)return n;do{t%2&&(n+=e),t=xd(t/2),t&&(e+=e)}while(t);return n}var Cd=wd;function kd(e,t,n){return t=(n?Ga(e,t,n):void 0===t)?1:Object(bh["a"])(t),Cd(Object(Uo["a"])(e),t)}var Ed=kd,Sd=ha("length"),Ad=Sd,Od="\\ud800-\\udfff",Md="\\u0300-\\u036f",Pd="\\ufe20-\\ufe2f",Td="\\u20d0-\\u20ff",Dd=Md+Pd+Td,Nd="\\ufe0e\\ufe0f",jd="["+Od+"]",Ld="["+Dd+"]",Fd="\\ud83c[\\udffb-\\udfff]",Rd="(?:"+Ld+"|"+Fd+")",Bd="[^"+Od+"]",zd="(?:\\ud83c[\\udde6-\\uddff]){2}",Id="[\\ud800-\\udbff][\\udc00-\\udfff]",Vd="\\u200d",_d=Rd+"?",Gd="["+Nd+"]?",Hd="(?:"+Vd+"(?:"+[Bd,zd,Id].join("|")+")"+Gd+_d+")*",Ud=Gd+_d+Hd,qd="(?:"+[Bd+Ld+"?",Ld,zd,Id,jd].join("|")+")",$d=RegExp(Fd+"(?="+Fd+")|"+qd+Ud,"g");function Wd(e){var t=$d.lastIndex=0;while($d.test(e))++t;return t}var Xd=Wd;function Yd(e){return Bh(e)?Xd(e):Ad(e)}var Jd=Yd,Zd=Math.ceil;function Kd(e,t){t=void 0===t?" ":Object(mh["a"])(t);var n=t.length;if(n<2)return n?Cd(t,e):t;var r=Cd(t,Zd(e/Jd(t)));return Bh(t)?Oh(pd(r),0,e).join(""):r.slice(0,e)}var Qd=Kd,ef=Math.ceil,tf=Math.floor;function nf(e,t,n){e=Object(Uo["a"])(e),t=Object(bh["a"])(t);var r=t?Jd(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Qd(tf(i),n)+e+Qd(ef(i),n)}var rf=nf;function of(e,t,n){e=Object(Uo["a"])(e),t=Object(bh["a"])(t);var r=t?Jd(e):0;return t&&r<t?e+Qd(t-r,n):e}var af=of;function sf(e,t,n){e=Object(Uo["a"])(e),t=Object(bh["a"])(t);var r=t?Jd(e):0;return t&&r<t?Qd(t-r,n)+e:e}var lf=sf,uf=30,cf="...",hf=/\w*$/;function df(e,t){var n=uf,r=cf;if(Object(P["a"])(t)){var i="separator"in t?t.separator:i;n="length"in t?Object(bh["a"])(t.length):n,r="omission"in t?Object(mh["a"])(t.omission):r}e=Object(Uo["a"])(e);var o=e.length;if(Bh(e)){var a=pd(e);o=a.length}if(n>=o)return e;var s=n-Jd(r);if(s<1)return r;var l=a?Oh(a,0,s).join(""):e.slice(0,s);if(void 0===i)return l+r;if(a&&(s+=l.length-s),Hh(i)){if(e.slice(s).search(i)){var u,c=l;i.global||(i=RegExp(i.source,Object(Uo["a"])(hf.exec(i))+"g")),i.lastIndex=0;while(u=i.exec(c))var h=u.index;l=l.slice(0,void 0===h?s:h)}}else if(e.indexOf(Object(mh["a"])(i),s)!=s){var d=l.lastIndexOf(i);d>-1&&(l=l.slice(0,d))}return l+r}var ff=df,gf=Sl((function(e,t,n,r){yl(t,_s(t),e,r)})),pf=gf,vf="[object DOMException]",yf="[object Error]";function mf(e){if(!Object(Lt["a"])(e))return!1;var t=Object(jt["a"])(e);return t==yf||t==vf||"string"==typeof e.message&&"string"==typeof e.name&&!fl(e)}var bf=mf,xf=vn((function(e,t){try{return Zt(e,void 0,t)}catch(n){return bf(n)?n:new Error(n)}})),wf=xf;function Cf(e,t){return Object(xa["a"])(t,(function(t){return e[t]}))}var kf=Cf,Ef=Object.prototype,Sf=Ef.hasOwnProperty;function Af(e,t,n,r){return void 0===e||ve(e,Ef[n])&&!Sf.call(r,n)?t:e}var Of=Af,Mf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function Pf(e){return"\\"+Mf[e]}var Tf=Pf,Df=/<%=([\s\S]+?)%>/g,Nf=Df,jf=/<%-([\s\S]+?)%>/g,Lf=jf,Ff=/<%([\s\S]+?)%>/g,Rf=Ff,Bf={escape:Lf,evaluate:Rf,interpolate:Nf,variable:"",imports:{_:{escape:uh}}},zf=Bf,If="Invalid `variable` option passed into `_.template`",Vf=/\b__p \+= '';/g,_f=/\b(__p \+=) '' \+/g,Gf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hf=/[()=,{}\[\]\/\s]/,Uf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,qf=/($^)/,$f=/['\n\r\u2028\u2029\\]/g,Wf=Object.prototype,Xf=Wf.hasOwnProperty;function Yf(e,t,n){var r=zf.imports._.templateSettings||zf;n&&Ga(e,t,n)&&(t=void 0),e=Object(Uo["a"])(e),t=pf({},t,r,Of);var i,o,a=pf({},t.imports,r.imports,Of),s=Li(a),l=kf(a,s),u=0,c=t.interpolate||qf,h="__p += '",d=RegExp((t.escape||qf).source+"|"+c.source+"|"+(c===Nf?Uf:qf).source+"|"+(t.evaluate||qf).source+"|$","g"),f=Xf.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+"\n":"";e.replace(d,(function(t,n,r,a,s,l){return r||(r=a),h+=e.slice(u,l).replace($f,Tf),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var g=Xf.call(t,"variable")&&t.variable;if(g){if(Hf.test(g))throw new Error(If)}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(Vf,""):h).replace(_f,"$1").replace(Gf,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var p=wf((function(){return Function(s,f+"return "+h).apply(void 0,l)}));if(p.source=h,bf(p))throw p;return p}var Jf=Yf,Zf=0;function Kf(e){var t=++Zf;return Object(Uo["a"])(e)+t}var Qf=Kf;function eg(e){var t=null;try{t=window.eval(e)}catch(n){}return t}function tg(e,t,n,r){var i=-1,o=null==e?0:e.length;r&&o&&(n=e[++i]);while(++i<o)n=t(n,e[i],i,e);return n}var ng=tg,rg={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},ig=nh(rg),og=ig,ag=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,sg="\\u0300-\\u036f",lg="\\ufe20-\\ufe2f",ug="\\u20d0-\\u20ff",cg=sg+lg+ug,hg="["+cg+"]",dg=RegExp(hg,"g");function fg(e){return e=Object(Uo["a"])(e),e&&e.replace(ag,og).replace(dg,"")}var gg=fg,pg=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function vg(e){return e.match(pg)||[]}var yg=vg,mg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function bg(e){return mg.test(e)}var xg=bg,wg="\\ud800-\\udfff",Cg="\\u0300-\\u036f",kg="\\ufe20-\\ufe2f",Eg="\\u20d0-\\u20ff",Sg=Cg+kg+Eg,Ag="\\u2700-\\u27bf",Og="a-z\\xdf-\\xf6\\xf8-\\xff",Mg="\\xac\\xb1\\xd7\\xf7",Pg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tg="\\u2000-\\u206f",Dg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ng="A-Z\\xc0-\\xd6\\xd8-\\xde",jg="\\ufe0e\\ufe0f",Lg=Mg+Pg+Tg+Dg,Fg="['’]",Rg="["+Lg+"]",Bg="["+Sg+"]",zg="\\d+",Ig="["+Ag+"]",Vg="["+Og+"]",_g="[^"+wg+Lg+zg+Ag+Og+Ng+"]",Gg="\\ud83c[\\udffb-\\udfff]",Hg="(?:"+Bg+"|"+Gg+")",Ug="[^"+wg+"]",qg="(?:\\ud83c[\\udde6-\\uddff]){2}",$g="[\\ud800-\\udbff][\\udc00-\\udfff]",Wg="["+Ng+"]",Xg="\\u200d",Yg="(?:"+Vg+"|"+_g+")",Jg="(?:"+Wg+"|"+_g+")",Zg="(?:"+Fg+"(?:d|ll|m|re|s|t|ve))?",Kg="(?:"+Fg+"(?:D|LL|M|RE|S|T|VE))?",Qg=Hg+"?",ep="["+jg+"]?",tp="(?:"+Xg+"(?:"+[Ug,qg,$g].join("|")+")"+ep+Qg+")*",np="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ip=ep+Qg+tp,op="(?:"+[Ig,qg,$g].join("|")+")"+ip,ap=RegExp([Wg+"?"+Vg+"+"+Zg+"(?="+[Rg,Wg,"$"].join("|")+")",Jg+"+"+Kg+"(?="+[Rg,Wg+Yg,"$"].join("|")+")",Wg+"?"+Yg+"+"+Zg,Wg+"+"+Kg,rp,np,zg,op].join("|"),"g");function sp(e){return e.match(ap)||[]}var lp=sp;function up(e,t,n){return e=Object(Uo["a"])(e),t=n?void 0:t,void 0===t?xg(e)?lp(e):yg(e):e.match(t)||[]}var cp=up,hp="['’]",dp=RegExp(hp,"g");function fp(e){return function(t){return ng(cp(gg(t).replace(dp,"")),e,"")}}var gp=fp;function pp(e){return function(t){t=Object(Uo["a"])(t);var n=Bh(t)?pd(t):void 0,r=n?n[0]:t.charAt(0),i=n?Oh(n,1).join(""):t.slice(1);return r[e]()+i}}var vp=pp,yp=vp("toUpperCase"),mp=yp,bp=gp((function(e,t,n){return e+(n?" ":"")+mp(t)})),xp=bp;function wp(e){return mp(Object(Uo["a"])(e).toLowerCase())}var Cp=wp,kp=gp((function(e,t,n){return t=t.toLowerCase(),e+(n?Cp(t):t)})),Ep=kp,Sp=gp((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ap=Sp,Op=gp((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Mp=Op,Pp=vp("toLowerCase"),Tp=Pp,Dp=function(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}},Np=Dp((function(e){return e.replace(/\B([A-Z])/g,"-$1").toLowerCase()})),jp=Dp((function(e){return xp(Ep(e)).replace(/ /g,"")})),Lp=Dp((function(e){return Ap(e).replace(/ /g,"_")})),Fp=Dp((function(e){return Mp(e).replace(/ /g,".")})),Rp=Dp((function(e){return Mp(e).replace(/ /g,"/")})),Bp=Dp((function(e){return mp(Mp(e))})),zp=Dp((function(e){return xp(Ep(e))}));function Ip(e){for(var t=2166136261,n=!1,r=e,i=0,o=r.length;i<o;i+=1){var a=r.charCodeAt(i);a>127&&!n&&(r=unescape(encodeURIComponent(r)),a=r.charCodeAt(i),n=!0),t^=a,t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24)}return t>>>0}function Vp(){for(var e="",t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n=0,r=t.length;n<r;n+=1){var i=t[n],o=16*Math.random()|0,a="x"===i?o:"y"===i?3&o|8:i;e+=a.toString(16)}return e}function _p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v.a.parseHTML(e,null,!1);return n.forEach((function(e){var t=e;if(t){var n=t.attributes;if(n)for(var r=0,i=n.length;r<i;r+=1){var o=n.item(r);if(o){var a=o.value.toLowerCase(),s=o.name.toLowerCase();(s.startsWith("on")||a.startsWith("javascript:")||a.startsWith("data:")||a.startsWith("vbscript:"))&&t.removeAttribute(s)}}}})),t.raw?n:v()("<div/>").append(n).html()}function Gp(e,t,n){var i,o,a=Math.min(2,Math.floor(.34*e.length)),s=Math.floor(.4*e.length)+1,l=!1,u=e.toLowerCase(),c=r(t);try{for(c.s();!(o=c.n()).done;){var h=o.value,d=n(h);if(void 0!==d&&Math.abs(d.length-u.length)<=a){var f=d.toLowerCase();if(f===u){if(d===e)continue;return h}if(l)continue;if(d.length<3)continue;var g=Hp(u,f,s-1);if(void 0===g)continue;g<3?(l=!0,i=h):(s=g,i=h)}}}catch(p){c.e(p)}finally{c.f()}return i}function Hp(e,t,n){for(var r=new Array(t.length+1),i=new Array(t.length+1),o=n+1,a=0;a<=t.length;a+=1)r[a]=a;for(var s=1;s<=e.length;s+=1){var l=e.charCodeAt(s-1),u=s>n?s-n:1,c=t.length>n+s?n+s:t.length;i[0]=s;for(var h=s,d=1;d<u;d+=1)i[d]=o;for(var f=u;f<=c;f+=1){var g=l===t.charCodeAt(f-1)?r[f-1]:Math.min(r[f]+1,i[f-1]+1,r[f-1]+2);i[f]=g,h=Math.min(h,g)}for(var p=c+1;p<=t.length;p+=1)i[p]=o;if(h>n)return;var v=r;r=i,i=v}var y=r[t.length];return y>n?void 0:y}var Up=n("a146"),qp="Expected a function";function $p(e,t){var n;if("function"!=typeof t)throw new TypeError(qp);return e=Object(bh["a"])(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var Wp=$p;function Xp(e){return Wp(2,e)}var Yp=Xp,Jp=function(){return k["a"].Date.now()},Zp=Jp,Kp=n("4a24"),Qp="Expected a function",ev=Math.max,tv=Math.min;function nv(e,t,n){var r,i,o,a,s,l,u=0,c=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError(Qp);function f(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n),a}function g(e){return u=e,s=setTimeout(y,t),c?f(e):a}function p(e){var n=e-l,r=e-u,i=t-n;return h?tv(i,o-r):i}function v(e){var n=e-l,r=e-u;return void 0===l||n>=t||n<0||h&&r>=o}function y(){var e=Zp();if(v(e))return m(e);s=setTimeout(y,p(e))}function m(e){return s=void 0,d&&r?f(e):(r=i=void 0,a)}function b(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0}function x(){return void 0===s?a:m(Zp())}function w(){var e=Zp(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return g(l);if(h)return clearTimeout(s),s=setTimeout(y,t),f(l)}return void 0===s&&(s=setTimeout(y,t)),a}return t=Object(Kp["a"])(t)||0,Object(P["a"])(n)&&(c=!!n.leading,h="maxWait"in n,o=h?ev(Object(Kp["a"])(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),w.cancel=b,w.flush=x,w}var rv=nv,iv="Expected a function";function ov(e,t,n){if("function"!=typeof e)throw new TypeError(iv);return setTimeout((function(){e.apply(void 0,n)}),t)}var av=ov,sv=vn((function(e,t){return av(e,1,t)})),lv=sv;function uv(e,t,n){if(n)switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2]);case 4:return e.call(t,n[0],n[1],n[2],n[3]);case 5:return e.call(t,n[0],n[1],n[2],n[3],n[4]);case 6:return e.call(t,n[0],n[1],n[2],n[3],n[4],n[5]);default:return e.apply(t,n)}return e.call(t)}function cv(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return uv(e,t,r)}function hv(e,t){for(var n=0,r=e.length;n<r;n+=1)if(e[n]===t)return e.push(e.splice(n,1)[0])}function dv(e,t,n){var r=[],i={},o=function(){for(var o=!1,a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=s.join("␀");return u in i?(o=!0,hv(r,u)):(r.length>=1e3&&delete i[r.shift()],r.push(u),i[u]=uv(e,t||null,s)),n?n(i[u],o):i[u]};return o}function fv(e){return"object"===p(e)&&e.then&&"function"===typeof e.then}function gv(e){return null!=e&&(e instanceof Promise||fv(e))}function pv(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){Array.isArray(t)?e.push.apply(e,d(t)):e.push(t)}));var i=e.some((function(e){return gv(e)}));if(i){var o=e.map((function(e){return gv(e)?e:Promise.resolve(!1!==e)}));return Promise.all(o).then((function(e){return e.reduce((function(e,t){return!1!==t&&e}),!0)}))}return e.every((function(e){return!1!==e}))}function vv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=pv(t);return"boolean"===typeof r?Promise.resolve(r):r}var yv=/[\t\r\n\f]/g,mv=/\S+/g,bv=function(e){return" ".concat(e," ")};function xv(e){return e&&e.getAttribute&&e.getAttribute("class")||""}function wv(e,t){if(null==e||null==t)return!1;var n=bv(xv(e)),r=bv(t);return 1===e.nodeType&&n.replace(yv," ").includes(r)}function Cv(e,t){if(null!=e&&null!=t){if("function"===typeof t)return Cv(e,t(xv(e)));if("string"===typeof t&&1===e.nodeType){var n=t.match(mv)||[],r=bv(xv(e)).replace(yv," "),i=n.reduce((function(e,t){return e.indexOf(bv(t))<0?"".concat(e).concat(t," "):e}),r);i=i.trim(),r!==i&&e.setAttribute("class",i)}}}function kv(e,t){if(null!=e){if("function"===typeof t)return kv(e,t(xv(e)));if((!t||"string"===typeof t)&&1===e.nodeType){var n=(t||"").match(mv)||[],r=bv(xv(e)).replace(yv," "),i=n.reduce((function(e,t){var n=bv(t);return e.indexOf(n)>-1?e.replace(n," "):e}),r);i=t?i.trim():"",r!==i&&e.setAttribute("class",i)}}}function Ev(e,t,n){if(null!=e&&null!=t)if(null==n||"string"!==typeof t){if("function"===typeof t)return Ev(e,t(xv(e),n),n);if("string"===typeof t){var r=t.match(mv)||[];r.forEach((function(t){wv(e,t)?kv(e,t):Cv(e,t)}))}}else n?Cv(e,t):kv(e,t)}var Sv=0;function Av(){return Sv+=1,"v".concat(Sv)}function Ov(e){return null!=e.id&&""!==e.id||(e.id=Av()),e.id}function Mv(e){return null!=e&&("function"===typeof e.getScreenCTM&&e instanceof SVGElement)}var Pv,Tv,Dv,Nv={svg:"http://www.w3.org/2000/svg",xmlns:"http://www.w3.org/2000/xmlns/",xml:"http://www.w3.org/XML/1998/namespace",xlink:"http://www.w3.org/1999/xlink",xhtml:"http://www.w3.org/1999/xhtml"},jv="1.1";function Lv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.createElement(e)}function Fv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nv.xhtml,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;return n.createElementNS(t,e)}function Rv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return Fv(e,Nv.svg,t)}function Bv(e){if(e){var t='<svg xmlns="'.concat(Nv.svg,'" xmlns:xlink="').concat(Nv.xlink,'" version="').concat(jv,'">').concat(e,"</svg>"),n=zv(t,{async:!1}),r=n.documentElement;return r}var i=document.createElementNS(Nv.svg,"svg");return i.setAttributeNS(Nv.xmlns,"xmlns:xlink",Nv.xlink),i.setAttribute("version",jv),i}function zv(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var r=new DOMParser;if(null!=n.async){var i=r;i.async=n.async}t=r.parseFromString(e,n.mimeType||"text/xml")}catch(o){t=void 0}if(!t||t.getElementsByTagName("parsererror").length)throw new Error("Invalid XML: ".concat(e));return t}function Iv(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.nodeName;return t?n.toLowerCase():n.toUpperCase()}function Vv(e){var t=0,n=e.previousSibling;while(n)1===n.nodeType&&(t+=1),n=n.previousSibling;return t}function _v(e,t){return e.querySelectorAll(t)}function Gv(e,t){return e.querySelector(t)}function Hv(e,t,n){var r=e.ownerSVGElement,i=e.parentNode;while(i&&i!==n&&i!==r){if(wv(i,t))return i;i=i.parentNode}return null}function Uv(e,t){var n=t&&t.parentNode;return e===n||!!(n&&1===n.nodeType&&16&e.compareDocumentPosition(n))}function qv(e){e.parentNode&&e.parentNode.removeChild(e)}function $v(e){while(e.firstChild)e.removeChild(e.firstChild)}function Wv(e,t){var n=Array.isArray(t)?t:[t];n.forEach((function(t){null!=t&&e.appendChild(t)}))}function Xv(e,t){var n=e.firstChild;return n?Yv(n,t):Wv(e,t)}function Yv(e,t){var n=e.parentNode;if(n){var r=Array.isArray(t)?t:[t];r.forEach((function(t){null!=t&&n.insertBefore(t,e)}))}}function Jv(e,t){null!=t&&t.appendChild(e)}function Zv(e){try{return e instanceof HTMLElement}catch(t){return"object"===p(e)&&1===e.nodeType&&"object"===p(e.style)&&"object"===p(e.ownerDocument)}}function Kv(e,t){return e.getAttribute(t)}function Qv(e,t){var n=ry(t);n.ns?e.hasAttributeNS(n.ns,n.local)&&e.removeAttributeNS(n.ns,n.local):e.hasAttribute(t)&&e.removeAttribute(t)}function ey(e,t,n){if(null==n)return Qv(e,t);var r=ry(t);r.ns&&"string"===typeof n?e.setAttributeNS(r.ns,t,n):"id"===t?e.id="".concat(n):e.setAttribute(t,"".concat(n))}function ty(e,t){Object.keys(t).forEach((function(n){ey(e,n,t[n])}))}function ny(e,t,n){if(null==t){for(var r=e.attributes,i={},o=0;o<r.length;o+=1)i[r[o].name]=r[o].value;return i}if("string"===typeof t&&void 0===n)return e.getAttribute(t);"object"===p(t)?ty(e,t):ey(e,t,n)}function ry(e){if(-1!==e.indexOf(":")){var t=e.split(":");return{ns:Nv[t[0]],local:t[1]}}return{ns:null,local:e}}function iy(e){var t={};return Object.keys(e).forEach((function(n){var r=Np(n);t[r]=e[n]})),t}function oy(e){var t={},n=e.split(";");return n.forEach((function(e){var n=e.trim();if(n){var r=n.split("=");r.length&&(t[r[0].trim()]=r[1]?r[1].trim():"")}})),t}function ay(e,t){return Object.keys(t).forEach((function(n){if("class"===n)e[n]=e[n]?"".concat(e[n]," ").concat(t[n]):t[n];else if("style"===n){var r,i,o="object"===p(e[n]),a="object"===p(t[n]);o&&a?(r=e[n],i=t[n]):o?(r=e[n],i=oy(t[n])):a?(r=oy(e[n]),i=t[n]):(r=oy(e[n]),i=oy(t[n])),e[n]=ay(r,i)}else e[n]=t[n]})),e}function sy(e,t){for(var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.offset||0,s=[],l=[],u=null,c=0;c<e.length;c+=1){n=l[c]=e[c];for(var h=0,d=t.length;h<d;h+=1){var f=t[h],g=f.start+a,p=f.end+a;c>=g&&c<p&&("string"===typeof n?n=l[c]={t:e[c],attrs:f.attrs}:n.attrs=ay(ay({},n.attrs),f.attrs),i.includeAnnotationIndices&&(null==n.annotations&&(n.annotations=[]),n.annotations.push(h)))}r=l[c-1],r?o.isObject(n)&&o.isObject(r)?(u=u,JSON.stringify(n.attrs)===JSON.stringify(r.attrs)?u.t+=n.t:(s.push(u),u=n)):o.isObject(n)||o.isObject(r)?(u=u,s.push(u),u=n):u=(u||"")+n:u=n}return null!=u&&s.push(u),s}function ly(e,t){return e?e.filter((function(e){return e.start<t&&t<=e.end})):[]}function uy(e,t,n){return e?e.filter((function(e){return t>=e.start&&t<e.end||n>e.start&&n<=e.end||e.start>=t&&e.end<n})):[]}function cy(e,t,n){return e&&e.forEach((function(e){e.start<t&&e.end>=t?e.end+=n:e.start>=t&&(e.start+=n,e.end+=n)})),e}function hy(e){return e.replace(/ /g," ")}(function(e){function t(e){return null===e||void 0===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e}function n(e){return Array.isArray(e)}function r(e){return!t(e)&&!n(e)}function i(e,r){if(e===r)return!0;if(t(e)||t(r))return!1;var i=n(e),o=n(r);return i===o&&(i&&o?a(e,r):s(e,r))}function o(e){return t(e)?e:n(e)?l(e):u(e)}function a(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n+=1)if(!i(e[n],t[n]))return!1;return!0}function s(e,t){if(e===t)return!0;for(var n in e)if(!(n in t))return!1;for(var r in t)if(!(r in e))return!1;for(var o in e)if(!i(e[o],t[o]))return!1;return!0}function l(e){for(var t=new Array(e.length),n=0,r=e.length;n<r;n+=1)t[n]=o(e[n]);return t}function u(e){var t={};return Object.keys(e).forEach((function(n){t[n]=o(e[n])})),t}e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=t,e.isArray=n,e.isObject=r,e.deepEqual=i,e.deepCopy=o})(Pv||(Pv={})),function(e){function t(e){var t="data:";return e.substr(0,t.length)===t}function n(e,n){if(e&&!t(e)){var r=function(){n(new Error("Failed to load image: ".concat(e)))},i=window.FileReader?function(e){if(200===e.status){var t=new FileReader;t.onload=function(e){var t=e.target.result;n(null,t)},t.onerror=r,t.readAsDataURL(e.response)}else r()}:function(t){var i=function(e){for(var t=32768,n=[],r=0;r<e.length;r+=t)n.push(String.fromCharCode.apply(null,e.subarray(r,r+t)));return n.join("")};if(200===t.status){var o=e.split(".").pop()||"png";"svg"===o&&(o="svg+xml");var a="data:image/".concat(o,";base64,"),s=new Uint8Array(t.response),l=a+btoa(i(s));n(null,l)}else r()},o=new XMLHttpRequest;o.responseType=window.FileReader?"blob":"arraybuffer",o.open("GET",e,!0),o.addEventListener("error",r),o.addEventListener("load",(function(){return i(o)})),o.send()}else setTimeout((function(){return n(null,e)}))}function r(e){var t=e.replace(/\s/g,"");t=decodeURIComponent(t);var n,r=t.indexOf(","),i=t.slice(0,r),o=i.split(":")[1].split(";")[0],a=t.slice(r+1);n=i.indexOf("base64")>=0?atob(a):unescape(encodeURIComponent(a));for(var s=new Uint8Array(n.length),l=0;l<n.length;l+=1)s[l]=n.charCodeAt(l);return new Blob([s],{type:o})}function i(e,t){var n=window.navigator.msSaveBlob;if(n)n(e,t);else{var r=window.URL.createObjectURL(e),i=document.createElement("a");i.href=r,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}}function o(e,t){var n=r(e);i(n,t)}function a(e){var t=e.match(/<svg[^>]*viewBox\s*=\s*(["']?)(.+?)\1[^>]*>/i);return t&&t[2]?t[2].replace(/\s+/," ").split(" "):null}function s(e){var t=parseFloat(e);return Number.isNaN(t)?null:t}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=function(t){return null==n&&(n=a(e)),null!=n?s(n[t]):null},i=function(t){var n=e.match(t);return n&&n[2]?s(n[2]):null},o=t.width;if(null==o&&(o=i(/<svg[^>]*width\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==o&&(o=r(2)),null==o)throw new Error("Can not parse width from svg string");var l=t.height;if(null==l&&(l=i(/<svg[^>]*height\s*=\s*(["']?)(.+?)\1[^>]*>/i)),null==l&&(l=r(3)),null==l)throw new Error("Can not parse height from svg string");var u=encodeURIComponent(e).replace(/'/g,"%27").replace(/"/g,"%22"),c="data:image/svg+xml",h="".concat(c,",").concat(u);return h}e.isDataUrl=t,e.imageToDataUri=n,e.dataUriToBlob=r,e.downloadBlob=i,e.downloadDataUri=o,e.svgToDataUrl=l}(Tv||(Tv={}));var dy,fy={px:function(e){return e},mm:function(e){return Dv*e},cm:function(e){return Dv*e*10},in:function(e){return Dv*e*25.4},pt:function(e){return Dv*(25.4*e/72)},pc:function(e){return Dv*(25.4*e/6)}};(function(e){function t(e,t,n){var r=v()("<div/>").css({display:"inline-block",position:"absolute",left:-15e3,top:-15e3,width:e+(n||""),height:t+(n||"")}).appendTo(document.body),i={width:r.width()||0,height:r.height()||0};return r.remove(),i}function n(e,n){null==Dv&&(Dv=t("1","1","mm").width);var r=n?fy[n]:null;return r?r(e):e}e.measure=t,e.toPx=n})(dy||(dy={}));var gy=function(){var e,t=window;if(null!=t&&(e=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||t.msRequestAnimationFrame,null!=e&&(e=e.bind(t))),null==e){var n=0;e=function(e){var t=(new Date).getTime(),r=Math.max(0,16-(t-n)),i=setTimeout((function(){e(t+r)}),r);return n=t+r,i}}return e}(),py=function(){var e,t=window;return null!=t&&(e=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame||t.msCancelAnimationFrame||t.msCancelRequestAnimationFrame||t.oCancelAnimationFrame||t.oCancelRequestAnimationFrame||t.mozCancelAnimationFrame||t.mozCancelRequestAnimationFrame,e&&(e=e.bind(t))),null==e&&(e=clearTimeout),e}(),vy=/-(.)/g;function yy(e){return e.replace(vy,(function(e,t){return t.toUpperCase()}))}var my={},by=["Webkit","ms","Moz","O"],xy=document?document.createElement("div").style:{};function wy(e){for(var t=0;t<by.length;t+=1){var n=by[t]+e;if(n in xy)return n}return null}function Cy(e){var t=yy(e);if(null==my[t]){var n=t.charAt(0).toUpperCase()+t.slice(1);my[t]=t in xy?t:wy(n)}return my[t]}function ky(e,t,n){var r=Cy(t);null!=r&&(e[r]=n),e[t]=n}function Ey(e,t){var n=e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):window.getComputedStyle(e,null);return n&&t?n.getPropertyValue(t)||n[t]:n}function Sy(e){var t=Ey(e);return null!=t&&("scroll"===t.overflow||"auto"===t.overflow)}var Ay=function(){var e=document;return e.selection?function(){e.selection.empty()}:window.getSelection?function(){var e=window.getSelection();e&&(e.empty?e.empty():e.removeAllRanges&&e.removeAllRanges())}:function(){}}(),Oy=n("4283"),My=function(e){function t(e,n,r){if(f(this,t),!e)throw new TypeError("Invalid element to create vector");var i;if(t.isVector(e))i=e.node;else if("string"===typeof e)if("svg"===e.toLowerCase())i=Bv();else if("<"===e[0]){var o=Bv(e);i=document.importNode(o.firstChild,!0)}else i=document.createElementNS(Nv.svg,e);else i=e;this.node=i,n&&this.setAttributes(n),r&&this.append(r)}return g(t,[{key:e,get:function(){return t.toStringTag}},{key:"type",get:function(){return this.node.nodeName}},{key:"id",get:function(){return this.node.id}},{key:"id",set:function(e){this.node.id=e}},{key:"transform",value:function(e,t){return null==e?Nm(this.node):(Nm(this.node,e,t),this)}},{key:"translate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==e?jm(this.node):(jm(this.node,e,t,n),this)}},{key:"rotate",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return null==e?Lm(this.node):(Lm(this.node,e,t,n,r),this)}},{key:"scale",value:function(e,t){return null==e?Fm(this.node):(Fm(this.node,e,t),this)}},{key:"getTransformToElement",value:function(e){var n=t.toNode(e);return Cm(this.node,n)}},{key:"removeAttribute",value:function(e){return Qv(this.node,e),this}},{key:"getAttribute",value:function(e){return Kv(this.node,e)}},{key:"setAttribute",value:function(e,t){return ey(this.node,e,t),this}},{key:"setAttributes",value:function(e){return ty(this.node,e),this}},{key:"attr",value:function(e,t){return null==e?ny(this.node):"string"===typeof e&&void 0===t?ny(this.node,e):("object"===p(e)?ny(this.node,e):ny(this.node,e,t),this)}},{key:"svg",value:function(){return this.node instanceof SVGSVGElement?this:t.create(this.node.ownerSVGElement)}},{key:"defs",value:function(){var e=this.svg()||this,n=e.node.getElementsByTagName("defs")[0];return n?t.create(n):t.create("defs").appendTo(e)}},{key:"text",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Ly(this.node,e,t),this}},{key:"tagName",value:function(){return Iv(this.node)}},{key:"clone",value:function(){return t.create(this.node.cloneNode(!0))}},{key:"remove",value:function(){return qv(this.node),this}},{key:"empty",value:function(){return $v(this.node),this}},{key:"append",value:function(e){return Wv(this.node,t.toNodes(e)),this}},{key:"appendTo",value:function(e){return Jv(this.node,t.isVector(e)?e.node:e),this}},{key:"prepend",value:function(e){return Xv(this.node,t.toNodes(e)),this}},{key:"before",value:function(e){return Yv(this.node,t.toNodes(e)),this}},{key:"replace",value:function(e){return this.node.parentNode&&this.node.parentNode.replaceChild(t.toNode(e),this.node),t.create(e)}},{key:"first",value:function(){return this.node.firstChild?t.create(this.node.firstChild):null}},{key:"last",value:function(){return this.node.lastChild?t.create(this.node.lastChild):null}},{key:"get",value:function(e){var n=this.node.childNodes[e];return n?t.create(n):null}},{key:"indexOf",value:function(e){var n=Array.prototype.slice.call(this.node.childNodes);return n.indexOf(t.toNode(e))}},{key:"find",value:function(e){var n=[],r=_v(this.node,e);if(r)for(var i=0,o=r.length;i<o;i+=1)n.push(t.create(r[i]));return n}},{key:"findOne",value:function(e){var n=Gv(this.node,e);return n?t.create(n):null}},{key:"findParentByClass",value:function(e,n){var r=Hv(this.node,e,n);return r?t.create(r):null}},{key:"matches",value:function(e){var t=this.node,n=(this.node.matches,t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector||null);return n&&n.call(t,e)}},{key:"contains",value:function(e){return Uv(this.node,t.isVector(e)?e.node:e)}},{key:"wrap",value:function(e){var n=t.create(e),r=this.node.parentNode;return null!=r&&r.insertBefore(n.node,this.node),n.append(this)}},{key:"parent",value:function(e){var n=this;if(null==n.node.parentNode)return null;if(n=t.create(n.node.parentNode),null==e)return n;do{if("string"===typeof e?n.matches(e):n instanceof e)return n}while(n=t.create(n.node.parentNode));return n}},{key:"children",value:function(){for(var e=this.node.childNodes,n=[],r=0;r<e.length;r+=1){var i=e[r];1===i.nodeType&&n.push(t.create(e[r]))}return n}},{key:"eachChild",value:function(e,t){for(var n=this.children(),r=0,i=n.length;r<i;r+=1)e.call(n[r],n[r],r,n),t&&n[r].eachChild(e,t);return this}},{key:"index",value:function(){return Vv(this.node)}},{key:"hasClass",value:function(e){return wv(this.node,e)}},{key:"addClass",value:function(e){return Cv(this.node,e),this}},{key:"removeClass",value:function(e){return kv(this.node,e),this}},{key:"toggleClass",value:function(e,t){return Ev(this.node,e,t),this}},{key:"toLocalPoint",value:function(e,t){return km(this.node,e,t)}},{key:"toGeometryShape",value:function(){return Em(this.node)}},{key:"translateCenterToPoint",value:function(e){var t=this.getBBox({target:this.svg()}),n=t.getCenter();return this.translate(e.x-n.x,e.y-n.y),this}},{key:"translateAndAutoOrient",value:function(e,t,n){return Rm(this.node,e,t,n),this}},{key:"animate",value:function(e){return Am(this.node,e)}},{key:"animateTransform",value:function(e){return Om(this.node,e)}},{key:"animateAlongPath",value:function(e,t){return Tm(this.node,e,t)}},{key:"normalizePath",value:function(){var e=this.tagName();return"path"===e&&this.attr("d",Oy["e"].normalize(this.attr("d"))),this}},{key:"bbox",value:function(e,t){return mm(this.node,e,t)}},{key:"getBBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return bm(this.node,{recursive:e.recursive,target:e.target?t.toNode(e.target):null})}},{key:"sample",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.node instanceof SVGPathElement?Iy(this.node,e):[]}},{key:"toPath",value:function(){return t.create(Yy(this.node))}},{key:"toPathData",value:function(){return Jy(this.node)}}]),t}(Symbol.toStringTag);function Py(e,t){var n=My.create(t),r=My.create("textPath"),i=e.d;if(i&&void 0===e["xlink:href"]){var o=My.create("path").attr("d",i).appendTo(n.defs());r.attr("xlink:href","#".concat(o.id))}return"object"===p(e)&&r.attr(e),r.node}function Ty(e,t,n){for(var r,i=n.eol,o=n.baseSize,a=n.lineHeight,s=0,l={},u=t.length-1,c=0;c<=u;c+=1){var h=t[c],d=null;if("object"===p(h)){var f=h.attrs,g=My.create("tspan",f);r=g.node;var v=h.t;i&&c===u&&(v+=i),r.textContent=v;var y=f.class;y&&g.addClass(y),n.includeAnnotationIndices&&g.attr("annotations",h.annotations.join(",")),d=parseFloat(f["font-size"]),void 0===d&&(d=o),d&&d>s&&(s=d)}else i&&c===u&&(h+=i),r=document.createTextNode(h||" "),o&&o>s&&(s=o);e.appendChild(r)}return s&&(l.maxFontSize=s),a?l.lineHeight=a:s&&(l.lineHeight=1.2*s),l}(function(e){function t(t){if(null==t)return!1;if(t instanceof e)return!0;var n=t[Symbol.toStringTag],r=t;return(null==n||n===e.toStringTag)&&r.node instanceof SVGElement&&"function"===typeof r.animate&&"function"===typeof r.sample&&"function"===typeof r.normalizePath&&"function"===typeof r.toPath}function n(t,n,r){return new e(t,n,r)}function r(e){if("<"===e[0]){for(var t=Bv(e),r=[],i=0,o=t.childNodes.length;i<o;i+=1){var a=t.childNodes[i];r.push(n(document.importNode(a,!0)))}return r}return[n(e)]}function i(e){return t(e)?e.node:e}function o(e){return Array.isArray(e)?e.map((function(e){return i(e)})):[i(e)]}e.toStringTag="X6.".concat(e.name),e.isVector=t,e.create=n,e.createVectors=r,e.toNode=i,e.toNodes=o})(My||(My={}));var Dy=/em$/;function Ny(e,t){var n=parseFloat(e);return Dy.test(e)?n*t:n}function jy(e,t,n,r){if(!Array.isArray(t))return 0;var i=t.length;if(!i)return 0;for(var o=t[0],a=Ny(o.maxFontSize,n)||n,s=0,l=Ny(r,n),u=1;u<i;u+=1){o=t[u];var c=Ny(o.lineHeight,n)||l;s+=c}var h,d=Ny(o.maxFontSize,n)||n;switch(e){case"middle":h=a/2-.15*d-s/2;break;case"bottom":h=-.25*d-s;break;default:case"top":h=.8*a;break}return h}function Ly(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};t=l.sanitize(t);var r=n.eol,i=n.textPath,o=n.textVerticalAnchor,a="middle"===o||"bottom"===o||"top"===o,s=n.x;void 0===s&&(s=e.getAttribute("x")||0);var u=n.includeAnnotationIndices,c=n.annotations;c&&!Array.isArray(c)&&(c=[c]);var h=n.lineHeight,d="auto"===h,f=d?"1.5em":h||"1em";$v(e),ny(e,{"xml:space":"preserve",display:t||n.displayEmpty?null:"none"});var g,p,v=ny(e,"font-size"),y=parseFloat(v);y||(y=16,!a&&!c||v||ny(e,"font-size","".concat(y))),i?("string"===typeof i&&(i={d:i}),g=Py(i,e)):g=document.createDocumentFragment();for(var m,b=0,x=t.split("\n"),w=[],C=x.length-1,k=0;k<=C;k+=1){p=f;var E="v-line",S=Rv("tspan"),A=void 0,O=x[k];if(O)if(c){var M=l.annotate(O,c,{offset:-b,includeAnnotationIndices:u});A=Ty(S,M,{eol:k!==C&&r,baseSize:y,lineHeight:d?null:f,includeAnnotationIndices:u});var P=A.lineHeight;P&&d&&0!==k&&(p=P),0===k&&(m=.8*A.maxFontSize)}else r&&k!==C&&(O+=r),S.textContent=O;else{S.textContent="-",E+=" v-empty-line";var T=S.style;T.fillOpacity=0,T.strokeOpacity=0,c&&(A={})}A&&w.push(A),k>0&&S.setAttribute("dy",p),(k>0||i)&&S.setAttribute("x",s),S.className.baseVal=E,g.appendChild(S),b+=O.length+1}if(a)if(c)p=jy(o,w,y,f);else if("top"===o)p="0.8em";else{var D;switch(C>0?(D=parseFloat(f)||1,D*=C,Dy.test(f)||(D/=y)):D=0,o){case"middle":p="".concat(.3-D/2,"em");break;case"bottom":p="".concat(-D-.3,"em");break;default:break}}else 0===o?p="0em":o?p=o:(p=0,null==e.getAttribute("y")&&e.setAttribute("y","".concat(m||"0.8em")));var N=g.firstChild;N.setAttribute("dy",p),e.appendChild(g)}function Fy(e,t,n,r){var i=[],o=[];if(null!=t){var a=e.split(t);if(i.push.apply(i,d(a)),"string"===typeof t)for(var s=0,l=a.length-1;s<l;s+=1)o.push(t);else for(var u=e.match(new RegExp(t,"g")),c=0,h=a.length-1;c<h;c+=1)o.push(u?u[c]:"")}else{for(var f="",g=0,p=e.length;g<p;g+=1){var v=e[g];" "===v?(i.push(f),o.push(" "),f=""):v.match(/[^\x00-\xff]/)?(f.length&&(i.push(f),o.push("")),i.push(v),o.push(""),f=""):f+=v}f.length&&i.push(f)}for(var y=0;y<i.length;y+=1){var m=i[y];if(m.indexOf(n)>=0&&m.length>1){for(var b=m.split(n),x=0,w=b.length-1;x<w;x+=1)b.splice(2*x+1,0,n);var C=b.filter((function(e){return""!==e}));i.splice.apply(i,[y,1].concat(d(C)));var k=C.map((function(){return""}));k.pop(),o.splice.apply(o,[y,0].concat(d(k)))}}for(var E=0;E<i.length;E+=1){var S=i[E],A=S.search(r);A>0&&A<S.length-1&&(i.splice(E,1,S.substring(0,A+1),S.substring(A+1)),o.splice(E,0,""))}return{words:i,separators:o}}function Ry(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=t.width,o=t.height,a=r.svgDocument||Rv("svg"),s=Rv("text"),l=Rv("tspan"),u=document.createTextNode("");ny(s,n),s.appendChild(l),s.style.opacity="0",s.style.display="block",l.style.display="block",l.appendChild(u),a.appendChild(s);var h=null==a.parentNode;h&&document.body.appendChild(a);for(var d,f,g,p=r.eol||"\n",v=r.separator||" ",y=r.hyphen?new RegExp(r.hyphen):/[^\w\d]/,m=!1!==r.breakWord,b=[],x={},w=[],C=Fy(e,r.separator,p,y),k=C.words,E=C.separators,S=0,A=0,O=k.length;S<O;S+=1){var M=k[S];if(M)if(M!==p){if(null!=w[A]?(g=E[S-1]||"",u.data="".concat(w[A]).concat(g).concat(M)):u.data=M,l.getComputedTextLength()<=i)w[A]=u.data,x[A]=E[S],d&&(b[A]=!0,A+=1,d=0);else{if(m){if(!w[A]||d){var P=!!d,T=1===M.length;if(d=M.length-1,P||T){if(T){if(!w[A]){w=[];break}k.splice(S,2,M+k[S+1]),E.splice(S+1,1),b[A]=!0,A+=1,O-=1,S-=1;continue}k[S]=M.substring(0,d),k[S+1]=M.substring(d)+k[S+1]}else k.splice(S,1,M.substring(0,d),M.substring(d)),E.splice(S,0,""),O+=1,A&&!b[A-1]&&(A-=1);S-=1;continue}}else if(!w[A]){w[A]=M,b[A]=!0,A+=1;continue}A+=1,S-=1}if(null!=o){if(null==f){var D=void 0;D="auto"===n.lineHeight?{value:1.5,unit:"em"}:Up["a"].parseCssNumeric(n.lineHeight,["em"])||{value:1,unit:"em"},f=D.value,"em"===D.unit&&(c.IS_FIREFOX?f*=l.getBBox().height:f*=s.getBBox().height)}if(f*w.length>o){var N=Math.floor(o/f)-1,j=w[N],L=w[N+1];if(w.splice(N+1),null==j)break;var F=r.ellipsis;if(!F)break;"string"!==typeof F&&(F="…");var R=j;L&&m&&(R+=g+L);var B=R.length,z=void 0,I=void 0;do{if(I=R[B],z=R.substring(0,B),I?I.match(v)&&(z+=I):z+=x[N],z+=F,u.data=z,l.getComputedTextLength()<=i){w[N]=z;break}B-=1}while(B>=0);break}}}else b[A]=!0,A+=1,w[A]=""}return qv(h?a:s),w.join(p)}var By=.551784;function zy(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:NaN,r=e.getAttribute(t);if(null==r)return n;var i=parseFloat(r);return Number.isNaN(i)?n:i}function Iy(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=e.getTotalLength(),i=[],o=0;while(o<r)t=e.getPointAtLength(o),i.push({distance:o,x:t.x,y:t.y}),o+=n;return i}function Vy(e){return["M",zy(e,"x1"),zy(e,"y1"),"L",zy(e,"x2"),zy(e,"y2")].join(" ")}function _y(e){var t=Uy(e);return 0===t.length?null:"".concat(Hy(t)," Z")}function Gy(e){var t=Uy(e);return 0===t.length?null:Hy(t)}function Hy(e){var t=e.map((function(e){return"".concat(e.x," ").concat(e.y)}));return"M ".concat(t.join(" L"))}function Uy(e){var t=[],n=e.points;if(n)for(var r=0,i=n.numberOfItems;r<i;r+=1)t.push(n.getItem(r));return t}function qy(e){var t=zy(e,"cx",0),n=zy(e,"cy",0),r=zy(e,"r"),i=r*By;return["M",t,n-r,"C",t+i,n-r,t+r,n-i,t+r,n,"C",t+r,n+i,t+i,n+r,t,n+r,"C",t-i,n+r,t-r,n+i,t-r,n,"C",t-r,n-i,t-i,n-r,t,n-r,"Z"].join(" ")}function $y(e){var t=zy(e,"cx",0),n=zy(e,"cy",0),r=zy(e,"rx"),i=zy(e,"ry")||r,o=r*By,a=i*By,s=["M",t,n-i,"C",t+o,n-i,t+r,n-a,t+r,n,"C",t+r,n+a,t+o,n+i,t,n+i,"C",t-o,n+i,t-r,n+a,t-r,n,"C",t-r,n-a,t-o,n-i,t,n-i,"Z"].join(" ");return s}function Wy(e){return Xy({x:zy(e,"x",0),y:zy(e,"y",0),width:zy(e,"width",0),height:zy(e,"height",0),rx:zy(e,"rx",0),ry:zy(e,"ry",0)})}function Xy(e){var t,n=e.x,r=e.y,i=e.width,o=e.height,a=Math.min(e.rx||e["top-rx"]||0,i/2),s=Math.min(e.rx||e["bottom-rx"]||0,i/2),l=Math.min(e.ry||e["top-ry"]||0,o/2),u=Math.min(e.ry||e["bottom-ry"]||0,o/2);return t=a||s||l||u?["M",n,r+l,"v",o-l-u,"a",s,u,0,0,0,s,u,"h",i-2*s,"a",s,u,0,0,0,s,-u,"v",-(o-u-l),"a",a,l,0,0,0,-a,-l,"h",-(i-2*a),"a",a,l,0,0,0,-a,l,"Z"]:["M",n,r,"H",n+i,"V",r+o,"H",n,"V",r,"Z"],t.join(" ")}function Yy(e){var t=Rv("path");ny(t,ny(e));var n=Jy(e);return n&&t.setAttribute("d",n),t}function Jy(e){var t=e.tagName.toLowerCase();switch(t){case"path":return e.getAttribute("d");case"line":return Vy(e);case"polygon":return _y(e);case"polyline":return Gy(e);case"ellipse":return $y(e);case"circle":return qy(e);case"rect":return Wy(e);default:break}throw new Error('"'.concat(t,'" cannot be converted to svg path element.'))}function Zy(e,t,n,r){var i=2*Math.PI-1e-6,o=e,a=t,s=n,l=r;if(l<s){var u=s;s=l,l=u}var c=l-s,h=c<Math.PI?"0":"1",d=Math.cos(s),f=Math.sin(s),g=Math.cos(l),p=Math.sin(l);return c>=i?o?"M0,".concat(a,"A").concat(a,",").concat(a," 0 1,1 0,").concat(-a,"A").concat(a,",").concat(a," 0 1,1 0,").concat(a,"M0,").concat(o,"A").concat(o,",").concat(o," 0 1,0 0,").concat(-o,"A").concat(o,",").concat(o," 0 1,0 0,").concat(o,"Z"):"M0,".concat(a,"A").concat(a,",").concat(a," 0 1,1 0,").concat(-a,"A").concat(a,",").concat(a," 0 1,1 0,").concat(a,"Z"):o?"M".concat(a*d,",").concat(a*f,"A").concat(a,",").concat(a," 0 ").concat(h,",1 ").concat(a*g,",").concat(a*p,"L").concat(o*g,",").concat(o*p,"A").concat(o,",").concat(o," 0 ").concat(h,",0 ").concat(o*d,",").concat(o*f,"Z"):"M".concat(a*d,",").concat(a*f,"A").concat(a,",").concat(a," 0 ").concat(h,",1 ").concat(a*g,",").concat(a*p,"L0,0")+"Z"}var Ky=Rv("svg"),Qy=/(\w+)\(([^,)]+),?([^)]+)?\)/gi,em=/[ ,]+/,tm=/^(\w+)\((.*)\)/;function nm(e,t){var n=Ky.createSVGPoint();return n.x=e,n.y=t,n}function rm(e){var t=Ky.createSVGMatrix();if(null!=e){var n=e,r=t;for(var i in n)r[i]=n[i]}return t}function im(e){return null!=e?(e instanceof DOMMatrix||(e=rm(e)),Ky.createSVGTransformFromMatrix(e)):Ky.createSVGTransform()}function om(e){var t=rm(),n=null!=e&&e.match(Qy);if(!n)return t;for(var r=0,i=n.length;r<i;r+=1){var o=n[r],a=o.match(tm);if(a){var s=void 0,l=void 0,u=void 0,c=void 0,h=void 0,d=rm(),f=a[2].split(em);switch(a[1].toLowerCase()){case"scale":s=parseFloat(f[0]),l=void 0===f[1]?s:parseFloat(f[1]),d=d.scaleNonUniform(s,l);break;case"translate":u=parseFloat(f[0]),c=parseFloat(f[1]),d=d.translate(u,c);break;case"rotate":h=parseFloat(f[0]),u=parseFloat(f[1])||0,c=parseFloat(f[2])||0,d=0!==u||0!==c?d.translate(u,c).rotate(h).translate(-u,-c):d.rotate(h);break;case"skewx":h=parseFloat(f[0]),d=d.skewX(h);break;case"skewy":h=parseFloat(f[0]),d=d.skewY(h);break;case"matrix":d.a=parseFloat(f[0]),d.b=parseFloat(f[1]),d.c=parseFloat(f[2]),d.d=parseFloat(f[3]),d.e=parseFloat(f[4]),d.f=parseFloat(f[5]);break;default:continue}t=t.multiply(d)}}return t}function am(e){var t=e||{},n=null!=t.a?t.a:1,r=null!=t.b?t.b:0,i=null!=t.c?t.c:0,o=null!=t.d?t.d:1,a=null!=t.e?t.e:0,s=null!=t.f?t.f:0;return"matrix(".concat(n,",").concat(r,",").concat(i,",").concat(o,",").concat(a,",").concat(s,")")}function sm(e){var t,n,r;if(e){var i=em;if(e.trim().indexOf("matrix")>=0){var o=om(e),a=um(o);t=[a.translateX,a.translateY],n=[a.rotation],r=[a.scaleX,a.scaleY];var s=[];0===t[0]&&0===t[1]||s.push("translate(".concat(t.join(","),")")),1===r[0]&&1===r[1]||s.push("scale(".concat(r.join(","),")")),0!==n[0]&&s.push("rotate(".concat(n[0],")")),e=s.join(" ")}else{var l=e.match(/translate\((.*?)\)/);l&&(t=l[1].split(i));var u=e.match(/rotate\((.*?)\)/);u&&(n=u[1].split(i));var c=e.match(/scale\((.*?)\)/);c&&(r=c[1].split(i))}}var h=r&&r[0]?parseFloat(r[0]):1;return{raw:e||"",translation:{tx:t&&t[0]?parseInt(t[0],10):0,ty:t&&t[1]?parseInt(t[1],10):0},rotation:{angle:n&&n[0]?parseInt(n[0],10):0,cx:n&&n[1]?parseInt(n[1],10):void 0,cy:n&&n[2]?parseInt(n[2],10):void 0},scale:{sx:h,sy:r&&r[1]?parseFloat(r[1]):h}}}function lm(e,t){var n=t.x*e.a+t.y*e.c+0,r=t.x*e.b+t.y*e.d+0;return{x:n,y:r}}function um(e){var t=lm(e,{x:0,y:1}),n=lm(e,{x:1,y:0}),r=180/Math.PI*Math.atan2(t.y,t.x)-90,i=180/Math.PI*Math.atan2(n.y,n.x);return{skewX:r,skewY:i,translateX:e.e,translateY:e.f,scaleX:Math.sqrt(e.a*e.a+e.b*e.b),scaleY:Math.sqrt(e.c*e.c+e.d*e.d),rotation:r}}function cm(e){var t,n,r,i;return e?(t=null==e.a?1:e.a,i=null==e.d?1:e.d,n=e.b,r=e.c):t=i=1,{sx:n?Math.sqrt(t*t+n*n):t,sy:r?Math.sqrt(r*r+i*i):i}}function hm(e){var t={x:0,y:1};return e&&(t=lm(e,t)),{angle:Oy["a"].normalize(Oy["a"].toDeg(Math.atan2(t.y,t.x))-90)}}function dm(e){return{tx:e&&e.e||0,ty:e&&e.f||0}}function fm(e,t){var n=nm(e.x,e.y).matrixTransform(t);return new Oy["f"](n.x,n.y)}function gm(e,t){return new Oy["d"](fm(e.start,t),fm(e.end,t))}function pm(e,t){var n=e instanceof Oy["g"]?e.points:e;return Array.isArray(n)||(n=[]),new Oy["g"](n.map((function(e){return fm(e,t)})))}function vm(e,t){var n=Ky.createSVGPoint();n.x=e.x,n.y=e.y;var r=n.matrixTransform(t);n.x=e.x+e.width,n.y=e.y;var i=n.matrixTransform(t);n.x=e.x+e.width,n.y=e.y+e.height;var o=n.matrixTransform(t);n.x=e.x,n.y=e.y+e.height;var a=n.matrixTransform(t),s=Math.min(r.x,i.x,o.x,a.x),l=Math.max(r.x,i.x,o.x,a.x),u=Math.min(r.y,i.y,o.y,a.y),c=Math.max(r.y,i.y,o.y,a.y);return new Oy["h"](s,u,l-s,c-u)}var ym=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function mm(e,t,n){var r,i=e.ownerSVGElement;if(!i)return new Oy["h"](0,0,0,0);try{r=e.getBBox()}catch(a){r={x:e.clientLeft,y:e.clientTop,width:e.clientWidth,height:e.clientHeight}}if(t)return Oy["h"].create(r);var o=Cm(e,n||i);return vm(r,o)}function bm(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.ownerSVGElement;if(!r||!Mv(e)){if(Zv(e)){var i=Dm(e),o=i.left,a=i.top,s=i.width,l=i.height;return new Oy["h"](o,a,s,l)}return new Oy["h"](0,0,0,0)}var u=n.target,c=n.recursive;if(!c){try{t=e.getBBox()}catch(y){t={x:e.clientLeft,y:e.clientTop,width:e.clientWidth,height:e.clientHeight}}if(!u)return Oy["h"].create(t);var h=Cm(e,u);return vm(t,h)}var d=e.childNodes,f=d.length;if(0===f)return bm(e,{target:u});u||(u=e);for(var g=0;g<f;g+=1){var p=d[g],v=void 0;v=0===p.childNodes.length?bm(p,{target:u}):bm(p,{target:u,recursive:!0}),t=t?t.union(v):v}return t}function xm(e){var t=e,n=t?t.tagName.toLowerCase():"";while("g"===n)t=t.firstElementChild,n=t?t.tagName.toLowerCase():"";var r,i,o=function(e){var n=t.getAttribute(e),r=n?parseFloat(n):0;return Number.isNaN(r)?0:r};switch(n){case"rect":i=new Oy["h"](o("x"),o("y"),o("width"),o("height"));break;case"circle":r=o("r"),i=new Oy["h"](o("cx")-r,o("cy")-r,2*r,2*r);break;default:break}return i}function wm(e,t){var n=rm();if(Mv(t)&&Mv(e)){var r=e,i=[];while(r&&r!==t){var o=r.getAttribute("transform")||null,a=om(o);i.push(a),r=r.parentNode}i.reverse().forEach((function(e){n=n.multiply(e)}))}return n}function Cm(e,t){if(Mv(t)&&Mv(e)){var n=t.getScreenCTM(),r=e.getScreenCTM();if(n&&r)return n.inverse().multiply(r)}return rm()}function km(e,t,n){var r=e instanceof SVGSVGElement?e:e.ownerSVGElement,i=r.createSVGPoint();i.x=t,i.y=n;try{var o=r.getScreenCTM(),a=i.matrixTransform(o.inverse()),s=Cm(e,r).inverse();return a.matrixTransform(s)}catch(l){return i}}function Em(e){var t=function(t){var n=e.getAttribute(t),r=n?parseFloat(n):0;return Number.isNaN(r)?0:r};switch(e instanceof SVGElement&&e.nodeName.toLowerCase()){case"rect":return new Oy["h"](t("x"),t("y"),t("width"),t("height"));case"circle":return new Oy["c"](t("cx"),t("cy"),t("r"),t("r"));case"ellipse":return new Oy["c"](t("cx"),t("cy"),t("rx"),t("ry"));case"polyline":var n=Uy(e);return new Oy["g"](n);case"polygon":var r=Uy(e);return r.length>1&&r.push(r[0]),new Oy["g"](r);case"path":var i=e.getAttribute("d");return Oy["e"].isValid(i)||(i=Oy["e"].normalize(i)),Oy["e"].parse(i);case"line":return new Oy["d"](t("x1"),t("y1"),t("x2"),t("y2"));default:break}return bm(e)}function Sm(e,t,n){var r=e instanceof SVGSVGElement?e:e.ownerSVGElement;n=n||r;var i=bm(n),o=i.getCenter();if(!i.intersectsWithLineFromCenterToPoint(t))return null;var a=null,s=e.tagName.toLowerCase();if("rect"===s){var l=new Oy["h"](parseFloat(e.getAttribute("x")||"0"),parseFloat(e.getAttribute("y")||"0"),parseFloat(e.getAttribute("width")||"0"),parseFloat(e.getAttribute("height")||"0")),u=Cm(e,n),c=um(u),h=r.createSVGTransform();h.setRotate(-c.rotation,o.x,o.y);var d=vm(l,h.matrix.multiply(u));a=Oy["h"].create(d).intersectsWithLineFromCenterToPoint(t,c.rotation)}else if("path"===s||"polygon"===s||"polyline"===s||"circle"===s||"ellipse"===s){for(var f="path"===s?e:Yy(e),g=Iy(f),p=1/0,v=[],y=0,m=g.length;y<m;y+=1){var b=g[y],x=nm(b.x,b.y);x=x.matrixTransform(Cm(e,n));var w=Oy["f"].create(x),C=w.distance(o),k=1.1*w.distance(t),E=C+k;E<p?(p=E,v=[{sample:b,refDistance:k}]):E<p+1&&v.push({sample:b,refDistance:k})}v.sort((function(e,t){return e.refDistance-t.refDistance})),v[0]&&(a=Oy["f"].create(v[0].sample))}return a}function Am(e,t){return Mm(e,t,"animate")}function Om(e,t){return Mm(e,t,"animateTransform")}function Mm(e,t,n){var r=Rv(n);e.appendChild(r);try{return Pm(r,t)}catch(i){}return function(){}}function Pm(e,t){var n=t.start,r=t.complete,i=t.repeat,o=ym(t,["start","complete","repeat"]);ny(e,o),n&&e.addEventListener("beginEvent",n),r&&e.addEventListener("endEvent",r),i&&e.addEventListener("repeatEvent",i);var a=e;return a.beginElement(),function(){return a.endElement()}}function Tm(e,t,n){var r=Ov(n),i=Rv("animateMotion"),o=Rv("mpath");ny(o,{"xlink:href":"#".concat(r)}),i.appendChild(o),e.appendChild(i);try{return Pm(i,t)}catch(g){if("fake"===document.documentElement.getAttribute("smiling")){var a=i;a.animators=[];var s=window,l=a.getAttribute("id");l&&(s.id2anim[l]=a);for(var u=s.getTargets(a),c=0,h=u.length;c<h;c+=1){var d=u[c],f=new s.Animator(a,d,c);s.animators.push(f),a.animators[c]=f,f.register()}}}return function(){}}function Dm(e){var t=0,n=0,r=0,i=0;if(e){var o=e;while(o)t+=o.offsetLeft,n+=o.offsetTop,o=o.offsetParent,o&&(t+=parseInt(Ey(o,"borderLeft"),10),n+=parseInt(Ey(o,"borderTop"),10));r=e.offsetWidth,i=e.offsetHeight}return{left:t,top:n,width:r,height:i}}function Nm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)return om(ny(e,"transform"));if(n.absolute)e.setAttribute("transform",am(t));else{var r=e.transform,i=im(t);r.baseVal.appendItem(i)}}function jm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=ny(e,"transform"),o=sm(i);if(null==t)return o.translation;i=o.raw,i=i.replace(/translate\([^)]*\)/g,"").trim();var a=r.absolute?t:o.translation.tx+t,s=r.absolute?n:o.translation.ty+n,l="translate(".concat(a,",").concat(s,")");e.setAttribute("transform","".concat(l," ").concat(i).trim())}function Lm(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=ny(e,"transform"),a=sm(o);if(null==t)return a.rotation;o=a.raw,o=o.replace(/rotate\([^)]*\)/g,"").trim(),t%=360;var s=i.absolute?t:a.rotation.angle+t,l=null!=n&&null!=r?",".concat(n,",").concat(r):"",u="rotate(".concat(s).concat(l,")");e.setAttribute("transform","".concat(o," ").concat(u).trim())}function Fm(e,t,n){var r=ny(e,"transform"),i=sm(r);if(null==t)return i.scale;n=null==n?t:n,r=i.raw,r=r.replace(/scale\([^)]*\)/g,"").trim();var o="scale(".concat(t,",").concat(n,")");e.setAttribute("transform","".concat(r," ").concat(o).trim())}function Rm(e,t,n,r){var i=Oy["f"].create(t),o=Oy["f"].create(n);if(!r){var a=e instanceof SVGSVGElement?e:e.ownerSVGElement;r=a}var s=Fm(e);e.setAttribute("transform","");var l=bm(e,{target:r}).scale(s.sx,s.sy),u=im();u.setTranslate(-l.x-l.width/2,-l.y-l.height/2);var c=im(),h=i.angleBetween(o,i.clone().translate(1,0));h&&c.setRotate(h,0,0);var d=im(),f=i.clone().move(o,l.width/2);d.setTranslate(2*i.x-f.x,2*i.y-f.y);var g=Cm(e,r),p=im();p.setMatrix(d.matrix.multiply(c.matrix.multiply(u.matrix.multiply(g.scale(s.sx,s.sy))))),e.setAttribute("transform",am(p.matrix))}var Bm=function(){function e(t,n,r){f(this,e),this.animationFrameId=0,this.deltaX=0,this.deltaY=0,this.eventName=c.isEventSupported("wheel")?"wheel":"mousewheel",this.target=t,this.onWheelCallback=n,this.onWheelGuard=r,this.onWheel=this.onWheel.bind(this),this.didWheel=this.didWheel.bind(this)}return g(e,[{key:"enable",value:function(){c.SUPPORT_PASSIVE?this.target.addEventListener(this.eventName,this.onWheel,{passive:!1}):v()(this.target).on("mousewheel",this.onWheel)}},{key:"disable",value:function(){c.SUPPORT_PASSIVE?this.target.removeEventListener(this.eventName,this.onWheel):v()(this.target).off("mousewheel")}},{key:"onWheel",value:function(e){var t,n=this;(null==this.onWheelGuard||this.onWheelGuard(e))&&(this.deltaX+=e.deltaX,this.deltaY+=e.deltaY,e.preventDefault(),0===this.deltaX&&0===this.deltaY||(e.stopPropagation(),t=!0),!0===t&&0===this.animationFrameId&&(this.animationFrameId=requestAnimationFrame((function(){n.didWheel(e)}))))}},{key:"didWheel",value:function(e){this.animationFrameId=0,this.onWheelCallback(e,this.deltaX,this.deltaY),this.deltaX=0,this.deltaY=0}}]),e}(),zm=My.isVector,Im=My.create,Vm=My.createVectors;function _m(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r&&clearTimeout(r),r=window.setTimeout((function(){e.apply(t,o)}),n)}}function Gm(e){var t=null,n=[],r=function(){if("static"===getComputedStyle(e).position){var t=e.style;t.position="relative"}var n=document.createElement("object");return n.onload=function(){n.contentDocument.defaultView.addEventListener("resize",i),i()},n.style.display="block",n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.height="100%",n.style.width="100%",n.style.overflow="hidden",n.style.pointerEvents="none",n.style.zIndex="-1",n.style.opacity="0",n.setAttribute("tabindex","-1"),n.type="text/html",e.appendChild(n),n.data="about:blank",n},i=_m((function(){n.forEach((function(t){return t(e)}))})),o=function(e){t||(t=r()),-1===n.indexOf(e)&&n.push(e)},a=function(){t&&t.parentNode&&(t.contentDocument&&t.contentDocument.defaultView.removeEventListener("resize",i),t.parentNode.removeChild(t),t=null,n=[])},s=function(e){var r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&t&&a()};return{element:e,bind:o,destroy:a,unbind:s}}function Hm(e){var t=null,n=[],r=_m((function(){n.forEach((function(t){t(e)}))})),i=function(){var t=new ResizeObserver(r);return t.observe(e),r(),t},o=function(e){t||(t=i()),-1===n.indexOf(e)&&n.push(e)},a=function(){t&&(t.disconnect(),n=[],t=null)},s=function(e){var r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&t&&a()};return{element:e,bind:o,destroy:a,unbind:s}}var Um,qm,$m="undefined"!==typeof ResizeObserver?Hm:Gm;(function(e){var t=new WeakMap;function n(e){var n=t.get(e);return n||(n=$m(e),t.set(e,n),n)}function r(e){e.destroy(),t.delete(e.element)}e.bind=function(e,t){var r=n(e);return r.bind(t),function(){return r.unbind(t)}},e.clear=function(e){var t=n(e);r(t)}})(Um||(Um={})),function(e){var t=[],n=1e3/60,r=[],i=0,o=function(){return performance.now()},a=function(e){return e[0]},s=function(e){return 1===r.push(e)&&l()},l=function(){var e=function(){return r.splice(0,r.length).forEach((function(e){return e()}))};if("undefined"!==typeof MessageChannel){var t=new MessageChannel,n=t.port1,i=t.port2;return n.onmessage=e,function(){return i.postMessage(null)}}return function(){return setTimeout(e)}}(),u=function r(){i=o()+n;var l=a(t);while(l&&!e.shouldYield()){var u=l,c=u.callback,h=u.data;l.callback=null;var d=c&&c(h);d?l.callback=d:t.shift(),l=a(t)}l&&s(r)};e.scheduleTask=function(e,n){var r={callback:e,data:n};t.push(r),s(u)},e.shouldYield=function(){var e,t;return(null===(t=null===(e=navigator)||void 0===e?void 0:e.scheduling)||void 0===t?void 0:t.isInputPending())||o()>=i}}(qm||(qm={}))},bd7a:function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3cpath id='形状_6' data-name='形状 6' class='cls-1' d='M90.418,84.526H10.382L50.4,15.213Z'/%3e %3c/svg%3e"},bf19:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},bf6f:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));n("d3b7"),n("159b");var r=n("83ce");function i(e){var t=this;console.log(e),e.on("edge:click",(function(e){var n,r=e.cell;e.e;t.currentCell&&(t.currentCell.attr("line",{stroke:"#7c68fc",strokeWidth:2}),t.currentCell.removeTools()),r.isEdge&&r.isEdge()&&(r.attr("line",{stroke:"red",strokeWidth:3}),n={distance:"30%"}),r.addTools({name:"custom-remove-button",args:n}),t.currentCell=r})),e.on("cell:unselected",(function(e){var n=e.cell;e.node,e.e;if(n.isEdge&&n.isEdge())n.attr("line",{stroke:"#7c68fc",strokeWidth:2});else{var r=t.graph.findView(n);r&&r.removeClass("".concat(n.shape,"-selected"))}n.removeTools(),a(n,!1),Event.stopPropagation,Event.preventDefault;var i=n.html instanceof Function?n.html():n.html;n.setProp("html",(function(){var e=i.children[1];if("PRE"!==e.nodeName){var t=i.querySelector("textarea");i.querySelector("textarea").outerHTML=o("pre",t.value,n).outerHTML}return i}))})),e.on("cell:removed",(function(){var e=document.getElementById("tooltip-container");e&&(e.style.display="none")})),e.on("blank:click",(function(){if(t.currentCell){var e=t.currentCell.id?t.currentCell:t.currentCell.cell;e.isEdge&&e.isEdge()&&e.attr("line",{stroke:"#7c68fc",strokeWidth:2}),e.removeTools(),a(e,!1);var n=e.html instanceof Function?e.html():e.html;e.setProp("html",(function(){var t=n.children[1];if("PRE"!==t.nodeName){var r=n.querySelector("textarea");n.querySelector("textarea").outerHTML=o("pre",r.value,e).outerHTML}return n}))}})),e.on("edge:connected",(function(e){var t=e.edge,n=e.currentCell,r=e.currentMagnet,i=r.getAttribute("port");n.setPortProp(i,"connected",!0),t.zIndex=-1,t.attr({line:{strokeDasharray:"",targetMarker:{name:"path"}}}),t.appendLabel({attrs:{label:{text:""}}})})),e.on("node:click",(function(e){t.currentCell=e})),e.on("node:dblclick",(function(e){var n=e.cell;e.e;Event.stopPropagation;var r,i=n.html instanceof Function?n.html():n.html;if(n.setProp("html",(function(){var e=i.children[1];if("TEXTAREA"!==e.nodeName){var t=i.querySelector("pre");i.querySelector("pre").outerHTML=o("textarea",t.innerText,n).outerHTML}return i})),n.isNode()){var a=t.graph.findView(n);a.addClass("".concat(n.shape,"-selected")),r={x:-28,y:-5}}n.addTools({name:"custom-remove-button",args:r}),t.currentCell=n,document.getElementById("currentTextNode").focus()})),e.on("node:mouseenter",(function(e){var t=e.node;Event.stopPropagation;var n=t.getData();n&&n.disableMove?a(t,!1):a(t,!0)})),e.on("node:mouseleave",(function(e){var t=e.node;Event.stopPropagation;var n=document.getElementById("tooltip-container");a(t,!1),n&&(n.style.display="none")}))}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=document.createElement(e);return"pre"==e?(i.style.cssText=n.store.data.data.defaultSpanStyle||r["default"],i.innerHTML=t):(i.innerHTML=t,i.style.cssText=n.store.data.data.defaultSpanStyle||r["default"]),i.setAttribute("id","currentTextNode"),n.setProp("data",{typeImgNo:n.store.data.data.typeImgNo,textContent:t,defaultSpanStyle:n.store.data.data.defaultSpanStyle}),i}var a=function(e,t){var n=document.querySelectorAll('g[data-cell-id="'.concat(e.id,'"] .x6-port-body'));n.forEach((function(e){e.style.visibility=t?"visible":"hidden"}))}},c027:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r,i=n("19c8"),o=n("88a4"),a=n("a082");(function(e){function t(e){return"".concat(a["a"].prefixCls,"-").concat(e)}e.snapToGrid=i["e"],e.normalizeMarker=o["a"],e.prefix=t})(r||(r={})),function(e){function t(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o="function"===typeof t.children?t.children(e):e[t.children||"children"];return n||(n=t.createNode(e),i.push(n)),Array.isArray(o)&&o.forEach((function(e){var o=t.createNode(e),a=t.createEdge(n,o);i.push(o,a),r.makeTree(e,t,o,i)})),i}e.makeTree=t}(r||(r={}))},c04e:function(e,t,n){var r=n("da84"),i=n("c65b"),o=n("861d"),a=n("d9b5"),s=n("dc4a"),l=n("485a"),u=n("b622"),c=r.TypeError,h=u("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,r=s(e,h);if(r){if(void 0===t&&(t="default"),n=i(r,e,t),!o(n)||a(n))return n;throw c("Can't convert object to primitive value")}return void 0===t&&(t="number"),l(e,t)}},c430:function(e,t){e.exports=!1},c65b:function(e,t){var n=Function.prototype.call;e.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},c6b6:function(e,t,n){var r=n("e330"),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},c6cd:function(e,t,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},c6eb:function(e,n,r){"use strict";(function(e){var i=r("5ea3"),o="object"==p(t)&&t&&!t.nodeType&&t,a=o&&"object"==p(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s&&i["a"].process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||l&&l.binding&&l.binding("util")}catch(t){}}();n["a"]=u}).call(this,r("dd40")(e))},c88b:function(e,t,n){"use strict";var r=n("f0ce"),i=n("1147"),o="[object Number]";function a(e){return"number"==typeof e||Object(i["a"])(e)&&Object(r["a"])(e)==o}t["a"]=a},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===("undefined"===typeof window?"undefined":p(window))&&(n=window)}e.exports=n},ca54:function(e,t,n){"use strict";var r=n("26ee"),i=r["a"].Symbol;t["a"]=i},ca84:function(e,t,n){var r=n("e330"),i=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);while(t.length>u)i(r,n=t[u++])&&(~a(c,n)||l(c,n));return c}},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("44d2");r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cb09:function(e,t,n){"use strict";var r=n("4a24"),i=1/0,o=17976931348623157e292;function a(e){if(!e)return 0===e?e:0;if(e=Object(r["a"])(e),e===i||e===-i){var t=e<0?-1:1;return t*o}return e===e?e:0}t["a"]=a},cc12:function(e,t,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},cd61:function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3cpath id='形状_2' data-name='形状 2' class='cls-1' d='M99.859,50.439L48.375,74.5,0.25,49.375,49.125,25Z'/%3e %3c/svg%3e"},ce4e:function(e,t,n){var r=n("da84"),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("da84"),i=n("1626"),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d3b7:function(e,t,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(e,t,n){var r=n("9bf2").f,i=n("1a2d"),o=n("b622"),a=o("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},d816:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,"@import url(//at.alicdn.com/t/font_1471400_k4dlg7u3p1q.css);"]),t.push([e.i,"li[data-v-714f0c92],ul[data-v-714f0c92]{margin:0;padding:0;list-style:none}.exportData[data-v-714f0c92]{position:fixed;top:10%;left:50%}.hello[data-v-714f0c92]{display:flex;height:100%}.hello .toolbar-container[data-v-714f0c92]{width:200px}#container[data-v-714f0c92]{flex:1;height:100%!important;min-height:10px}.help[data-v-714f0c92]{float:left;position:fixed;right:6px;font-size:14px}.help .iconhelp[data-v-714f0c92]{float:right;margin-right:10px;margin-top:10px;font-size:22px;display:block;cursor:help}.help .iconhelp:hover+ul[data-v-714f0c92]{left:0;opacity:1}.help ul[data-v-714f0c92]{background:#fff;padding:10px 16px;border:1px solid #eee;clear:both;position:relative;top:10px;transition:left .3s ease-in-out,opacity .4s ease-in-out .1s;left:100%;opacity:0}.help li[data-v-714f0c92]{text-align:left;margin:15px 0;line-height:180%}.help li .label[data-v-714f0c92]{background:#efefef;padding:5px;border:1px solid #e0e0e0;margin-right:6px}",""]),e.exports=t},d86f:function(e,t,n){"use strict";n.r(t);var r=n("3b2c");t["default"]=r["a"].define({markup:[{tagName:"rect",selector:"button",attrs:{width:20,height:20,rx:10,ry:10,fill:"#ff4d4f",stroke:"#ff4d4f",cursor:"pointer"}},{tagName:"text",selector:"text",textContent:"-",attrs:{fill:"#fff",fontSize:40,textAnchor:"middle",pointerEvents:"none",x:10,y:21},style:{userSelect:"none"}}],onClick:function(e){var t=e.view,n=t.cell;n.removeTools(),n.remove()}})},d9b5:function(e,t,n){var r=n("da84"),i=n("d066"),o=n("1626"),a=n("3a9b"),s=n("fdbf"),l=r.Object;e.exports=s?function(e){return"symbol"==p(e)}:function(e){var t=i("Symbol");return o(t)&&a(t.prototype,l(e))}},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==("undefined"===typeof globalThis?"undefined":p(globalThis))&&globalThis)||n("object"==("undefined"===typeof window?"undefined":p(window))&&window)||n("object"==("undefined"===typeof self?"undefined":p(self))&&self)||n("object"==p(t)&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(e,t,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,u=o(r),c={},h=0;while(u.length>h)n=i(r,t=u[h++]),void 0!==n&&l(c,t,n);return c}})},dc4a:function(e,t,n){var r=n("59ed");e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},dd40:function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},deed:function(e,t,n){"use strict";n.r(t),n.d(t,"initGraph",(function(){return a}));var r=n("5728"),i=n("d86f"),o=n("a75f");function a(){var e=new r["b"]({container:document.getElementById("container"),keyboard:{enabled:!0,global:!0},autoResize:!0,resizing:{preserveAspectRatio:!0,enabled:!0},selecting:{enabled:!0,showNodeSelectionBox:!1,rubberband:!0,modifiers:"ctrl",multiple:!0},snapline:!0,panning:{enabled:!0,eventTypes:["leftMouseDown","rightMouseDown","mouseWheel"]},grid:{size:10,visible:!0},clipboard:!0,history:{enabled:!0,beforeAddCommand:function(e,t){if(t.key)return"tools"!==t.key&&"html"!==t.key}},interacting:function(e){var t;return null===(t=e.cell.getData())||void 0===t||!t.disableMove||{nodeMovable:!1}},connecting:{snap:!0,allowBlank:!1,allowLoop:!1,allowMulti:!1,highlight:!0,sourceAnchor:{name:"center"},targetAnchor:"center",connectionPoint:"anchor",connector:{name:"rounded",args:{radius:20}},router:"metro",validateMagnet:function(e){var t=e.magnet,n=t.getAttribute("port-group");return"in"!==n},createEdge:function(){return this.createEdge({zIndex:-1,attrs:{line:{stroke:"#7c68fc",strokeWidth:2,targetMarker:{name:"block",args:{size:"6"}}}}})},getHTMLComponent:function(e){var t=e.getData();return t.flag?document.createElement("div"):document.createElement("p")},validateConnection:function(e){var t,n=e.targetView,r=e.sourceMagnet,i=e.targetMagnet,o=e.sourceCell;if(!r||!i)return!1;if(null!==(t=o.getData())&&void 0!==t&&t.disableMove)return!1;var a=i.getAttribute("port"),s=n.cell,l=s.getPort(a);return!!l}},mousewheel:{enabled:!0,modifiers:["ctrl","meta"]}});return r["b"].registerNodeTool(o["ToolTypeEnum"].REMOVE_BUTTON,i["default"],!0),r["b"].registerEdgeTool(o["ToolTypeEnum"].REMOVE_BUTTON,i["default"],!0),e}},df75:function(e,t,n){var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},dff1:function(e,n,r){"use strict";(function(e){var i=r("26ee"),o="object"==p(t)&&t&&!t.nodeType&&t,a=o&&"object"==p(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o,l=s?i["a"].Buffer:void 0,u=l?l.allocUnsafe:void 0;function c(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}n["a"]=c}).call(this,r("dd40")(e))},e330:function(e,t){var n=Function.prototype,r=n.bind,i=n.call,o=r&&r.bind(i);e.exports=r?function(e){return e&&o(i,e)}:function(e){return e&&function(){return i.apply(e,arguments)}}},e439:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),l=i((function(){a(1)})),u=!s||l;r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e56b:function(e,t,n){"use strict";var r=n("bc9b"),i=n("26ce");function o(e){return null!=e&&Object(i["a"])(e.length)&&!Object(r["a"])(e)}t["a"]=o},e893:function(e,t,n){var r=n("1a2d"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t){for(var n=i(t),s=a.f,l=o.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||s(e,c,l(t,c))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e9c4:function(e,t,n){var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("2ba4"),s=n("e330"),l=n("d039"),u=i.Array,c=o("JSON","stringify"),h=s(/./.exec),d=s("".charAt),f=s("".charCodeAt),g=s("".replace),p=s(1..toString),v=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,m=/^[\uDC00-\uDFFF]$/,b=function(e,t,n){var r=d(n,t-1),i=d(n,t+1);return h(y,e)&&!h(m,i)||h(m,e)&&!h(y,r)?"\\u"+p(f(e,0),16):e},x=l((function(){return'"\\udf06\\ud834"'!==c("\udf06\ud834")||'"\\udead"'!==c("\udead")}));c&&r({target:"JSON",stat:!0,forced:x},{stringify:function(e,t,n){for(var r=0,i=arguments.length,o=u(i);r<i;r++)o[r]=arguments[r];var s=a(c,null,o);return"string"==typeof s?g(s,v,b):s}})},eb0a:function(e,t,n){var r=n("d816");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("499e").default;i("e7fdaa3a",r,!0,{sourceMap:!1,shadowMode:!1})},edff:function(e,t,n){"use strict";var r=n("c027");n.d(t,"b",(function(){return r["a"]}));var i=n("a082");n.d(t,"a",(function(){return i["a"]}));n("7196")},f093:function(e,t){e.exports="data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; %7d %3c/style%3e %3c/defs%3e %3crect id='矩形_1' data-name='矩形 1' class='cls-1' x='9' y='31' width='79' height='39'/%3e %3c/svg%3e"},f0ce:function(e,t,n){"use strict";var r=n("ca54"),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r["a"]?r["a"].toStringTag:void 0;function l(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}var u=l,c=Object.prototype,h=c.toString;function d(e){return h.call(e)}var f=d,g="[object Null]",p="[object Undefined]",v=r["a"]?r["a"].toStringTag:void 0;function y(e){return null==e?void 0===e?p:g:v&&v in Object(e)?u(e):f(e)}t["a"]=y},f1b6:function(e,t,n){"use strict";n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return T}));var r=n("8010"),i=n("20d2"),o=n("3b2c"),a=n("bcd7"),l=n("51e4"),h=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},p=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"onRender",value:function(){if(a["c"].addClass(this.container,this.prefixClassName("cell-tool-boundary")),this.options.attrs){var e=this.options.attrs,t=e.class,n=h(e,["class"]);a["c"].attr(this.container,a["c"].kebablizeAttrs(n)),t&&a["c"].addClass(this.container,t)}this.update()}},{key:"update",value:function(){var e=this.cellView,t=this.options,n=t.useCellGeometry,r=t.rotate,i=a["f"].normalizeSides(t.padding),o=l["b"](e,n).moveAndExpand({x:-i.left,y:-i.top,width:i.left+i.right,height:i.top+i.bottom}),s=e.cell;if(s.isNode()){var u=s.getAngle();if(u)if(r){var c=s.getBBox().getCenter();a["c"].rotate(this.container,u,c.x,c.y,{absolute:!0})}else o=o.bbox(u)}return a["c"].attr(this.container,o.toJSON()),this}}]),n}(r["a"].ToolItem);(function(e){e.config({name:"boundary",tagName:"rect",padding:10,attrs:{fill:"none",stroke:"#333","stroke-width":.5,"stroke-dasharray":"5, 5","pointer-events":"none"}})})(p||(p={}));var v=n("c027"),y=n("4283"),m=n("b20e"),b=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.apply(this,arguments),e.handles=[],e}return g(n,[{key:"vertices",get:function(){return this.cellView.cell.getVertices()}},{key:"onRender",value:function(){return this.addClass(this.prefixClassName("edge-tool-vertices")),this.options.addable&&this.updatePath(),this.resetHandles(),this.renderHandles(),this}},{key:"update",value:function(){var e=this.vertices;return e.length===this.handles.length?this.updateHandles():(this.resetHandles(),this.renderHandles()),this.options.addable&&this.updatePath(),this}},{key:"resetHandles",value:function(){var e=this,t=this.handles;this.handles=[],t&&t.forEach((function(t){e.stopHandleListening(t),t.remove()}))}},{key:"renderHandles",value:function(){for(var e=this,t=this.vertices,n=0,r=t.length;n<r;n+=1){var i=t[n],o=this.options.createHandle,a=this.options.processHandle,s=o({index:n,graph:this.graph,guard:function(t){return e.guard(t)},attrs:this.options.attrs||{}});a&&a(s),this.graph.hook.onToolItemCreated({name:"vertices",cell:this.cell,view:this.cellView,tool:s}),s.updatePosition(i.x,i.y),this.stamp(s.container),this.container.appendChild(s.container),this.handles.push(s),this.startHandleListening(s)}}},{key:"updateHandles",value:function(){for(var e=this.vertices,t=0,n=e.length;t<n;t+=1){var r=e[t],i=this.handles[t];i&&i.updatePosition(r.x,r.y)}}},{key:"updatePath",value:function(){var e=this.childNodes.connection;e&&e.setAttribute("d",this.cellView.getConnectionPathData())}},{key:"startHandleListening",value:function(e){var t=this.cellView;t.can("vertexMovable")&&(e.on("change",this.onHandleChange,this),e.on("changing",this.onHandleChanging,this),e.on("changed",this.onHandleChanged,this)),t.can("vertexDeletable")&&e.on("remove",this.onHandleRemove,this)}},{key:"stopHandleListening",value:function(e){var t=this.cellView;t.can("vertexMovable")&&(e.off("change",this.onHandleChange,this),e.off("changing",this.onHandleChanging,this),e.off("changed",this.onHandleChanged,this)),t.can("vertexDeletable")&&e.off("remove",this.onHandleRemove,this)}},{key:"getNeighborPoints",value:function(e){var t=this.cellView,n=this.vertices,r=e>0?n[e-1]:t.sourceAnchor,i=e<n.length-1?n[e+1]:t.targetAnchor;return{prev:y["f"].create(r),next:y["f"].create(i)}}},{key:"getMouseEventArgs",value:function(e){var t=this.normalizeEvent(e),n=this.graph.snapToGrid(t.clientX,t.clientY),r=n.x,i=n.y;return{e:t,x:r,y:i}}},{key:"onHandleChange",value:function(e){var t=e.e;this.focus();var n=this.cellView;if(n.cell.startBatch("move-vertex",{ui:!0,toolId:this.cid}),!this.options.stopPropagation){var r=this.getMouseEventArgs(t),i=r.e,o=r.x,a=r.y;n.notifyMouseDown(i,o,a)}}},{key:"onHandleChanging",value:function(e){var t=e.handle,n=e.e,r=this.cellView,i=t.options.index,o=this.getMouseEventArgs(n),a=o.e,s=o.x,l=o.y,u={x:s,y:l};this.snapVertex(u,i),r.cell.setVertexAt(i,u,{ui:!0,toolId:this.cid}),t.updatePosition(u.x,u.y),this.options.stopPropagation||r.notifyMouseMove(a,s,l)}},{key:"onHandleChanged",value:function(e){var t=e.e,n=this.options,r=this.cellView;if(n.addable&&this.updatePath(),n.removeRedundancies){var i=r.removeRedundantLinearVertices({ui:!0,toolId:this.cid});i&&this.render(),this.blur(),r.cell.stopBatch("move-vertex",{ui:!0,toolId:this.cid}),this.eventData(t).vertexAdded&&r.cell.stopBatch("add-vertex",{ui:!0,toolId:this.cid});var o=this.getMouseEventArgs(t),a=o.e,s=o.x,l=o.y;this.options.stopPropagation||r.notifyMouseUp(a,s,l),r.checkMouseleave(a),n.onChanged&&n.onChanged({edge:r.cell,edgeView:r})}}},{key:"snapVertex",value:function(e,t){var n=this.options.snapRadius||0;if(n>0){var r=this.getNeighborPoints(t),i=r.prev,o=r.next;Math.abs(e.x-i.x)<n?e.x=i.x:Math.abs(e.x-o.x)<n&&(e.x=o.x),Math.abs(e.y-i.y)<n?e.y=r.prev.y:Math.abs(e.y-o.y)<n&&(e.y=o.y)}}},{key:"onHandleRemove",value:function(e){var t=e.handle,n=e.e;if(this.options.removable){var r=t.options.index,i=this.cellView;i.cell.removeVertexAt(r,{ui:!0}),this.options.addable&&this.updatePath(),i.checkMouseleave(this.normalizeEvent(n))}}},{key:"onPathMouseDown",value:function(e){var t=this.cellView;if(!this.guard(e)&&this.options.addable&&t.can("vertexAddable")){e.stopPropagation(),e.preventDefault();var n=this.normalizeEvent(e),r=this.graph.snapToGrid(n.clientX,n.clientY).toJSON();t.cell.startBatch("add-vertex",{ui:!0,toolId:this.cid});var i=t.getVertexIndex(r.x,r.y);this.snapVertex(r,i),t.cell.setVertexAt(i,r,{ui:!0,toolId:this.cid}),this.render();var o=this.handles[i];this.eventData(n,{vertexAdded:!0}),o.onMouseDown(n)}}},{key:"onRemove",value:function(){this.resetHandles()}}]),n}(r["a"].ToolItem);(function(e){var t=function(t){u(r,t);var n=c(r);function r(e){var t;return f(this,r),t=n.call(this),t.options=e,t.render(),t.delegateEvents({mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDoubleClick"}),t}return g(r,[{key:"graph",get:function(){return this.options.graph}},{key:"render",value:function(){this.container=m["a"].createElement("circle",!0);var t=this.options.attrs;if("function"===typeof t){var n=e.getDefaults();this.setAttrs(Object.assign(Object.assign({},n.attrs),t(this)))}else this.setAttrs(t);this.addClass(this.prefixClassName("edge-tool-vertex"))}},{key:"updatePosition",value:function(e,t){this.setAttrs({cx:e,cy:t})}},{key:"onMouseDown",value:function(e){this.options.guard(e)||(e.stopPropagation(),e.preventDefault(),this.graph.view.undelegateEvents(),this.delegateDocumentEvents({mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},e.data),this.emit("change",{e:e,handle:this}))}},{key:"onMouseMove",value:function(e){this.emit("changing",{e:e,handle:this})}},{key:"onMouseUp",value:function(e){this.emit("changed",{e:e,handle:this}),this.undelegateDocumentEvents(),this.graph.view.delegateEvents()}},{key:"onDoubleClick",value:function(e){this.emit("remove",{e:e,handle:this})}}]),r}(m["a"]);e.Handle=t})(b||(b={})),function(e){var t,n=v["a"].prefix("edge-tool-vertex-path");e.config({name:"vertices",snapRadius:20,addable:!0,removable:!0,removeRedundancies:!0,stopPropagation:!0,attrs:{r:6,fill:"#333",stroke:"#fff",cursor:"move","stroke-width":2},createHandle:function(t){return new e.Handle(t)},markup:[{tagName:"path",selector:"connection",className:n,attrs:{fill:"none",stroke:"transparent","stroke-width":10,cursor:"pointer"}}],events:(t={},s(t,"mousedown .".concat(n),"onPathMouseDown"),s(t,"touchstart .".concat(n),"onPathMouseDown"),t)})}(b||(b={}));var x=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.apply(this,arguments),e.handles=[],e}return g(n,[{key:"vertices",get:function(){return this.cellView.cell.getVertices()}},{key:"update",value:function(){return this.render(),this}},{key:"onRender",value:function(){a["c"].addClass(this.container,this.prefixClassName("edge-tool-segments")),this.resetHandles();var e=this.cellView,t=d(this.vertices);t.unshift(e.sourcePoint),t.push(e.targetPoint);for(var n=0,r=t.length;n<r-1;n+=1){var i=t[n],o=t[n+1],s=this.renderHandle(i,o,n);this.stamp(s.container),this.handles.push(s)}return this}},{key:"renderHandle",value:function(e,t,n){var r=this,i=this.options.createHandle({index:n,graph:this.graph,guard:function(e){return r.guard(e)},attrs:this.options.attrs||{}});return this.options.processHandle&&this.options.processHandle(i),this.graph.hook.onToolItemCreated({name:"segments",cell:this.cell,view:this.cellView,tool:i}),this.updateHandle(i,e,t),this.container.appendChild(i.container),this.startHandleListening(i),i}},{key:"startHandleListening",value:function(e){e.on("change",this.onHandleChange,this),e.on("changing",this.onHandleChanging,this),e.on("changed",this.onHandleChanged,this)}},{key:"stopHandleListening",value:function(e){e.off("change",this.onHandleChange,this),e.off("changing",this.onHandleChanging,this),e.off("changed",this.onHandleChanged,this)}},{key:"resetHandles",value:function(){var e=this,t=this.handles;this.handles=[],t&&t.forEach((function(t){e.stopHandleListening(t),t.remove()}))}},{key:"shiftHandleIndexes",value:function(e){for(var t=this.handles,n=0,r=t.length;n<r;n+=1)t[n].options.index+=e}},{key:"resetAnchor",value:function(e,t){var n=this.cellView.cell,r={ui:!0,toolId:this.cid};t?n.prop([e,"anchor"],t,r):n.removeProp([e,"anchor"],r)}},{key:"snapHandle",value:function(e,t,n){var r=e.options.axis,i=e.options.index,o=this.cellView,a=o.cell,s=a.getVertices(),l=s[i-2]||n.sourceAnchor,u=s[i+1]||n.targetAnchor,c=this.options.snapRadius;return Math.abs(t[r]-l[r])<c?t[r]=l[r]:Math.abs(t[r]-u[r])<c&&(t[r]=u[r]),t}},{key:"onHandleChanging",value:function(e){var t=e.handle,n=e.e,r=this.graph,i=this.options,o=this.cellView,s=i.anchor,l=t.options.axis,u=t.options.index-1,c=this.getEventData(n),h=this.normalizeEvent(n),d=r.snapToGrid(h.clientX,h.clientY),f=this.snapHandle(t,d.clone(),c),g=a["g"].cloneDeep(this.vertices),p=g[u],v=g[u+1],m=o.sourceView,b=o.sourceBBox,x=!1,w=!1;if(p?0===u?b.containsPoint(p)?(g.shift(),this.shiftHandleIndexes(-1),x=!0):(p[l]=f[l],w=!0):p[l]=f[l]:(p=o.sourceAnchor.toJSON(),p[l]=f[l],b.containsPoint(p)?x=!0:(g.unshift(p),this.shiftHandleIndexes(1),w=!0)),"function"===typeof s&&m){if(x){var C=c.sourceAnchor.clone();C[l]=f[l];var k=a["d"].call(s,o,C,m,o.sourceMagnet||m.container,"source",o,this);this.resetAnchor("source",k)}w&&this.resetAnchor("source",c.sourceAnchorDef)}var E=o.targetView,S=o.targetBBox,A=!1,O=!1;if(v?u===g.length-2?S.containsPoint(v)?(g.pop(),A=!0):(v[l]=f[l],O=!0):v[l]=f[l]:(v=o.targetAnchor.toJSON(),v[l]=f[l],S.containsPoint(v)?A=!0:(g.push(v),O=!0)),"function"===typeof s&&E){if(A){var M=c.targetAnchor.clone();M[l]=f[l];var P=a["d"].call(s,o,M,E,o.targetMagnet||E.container,"target",o,this);this.resetAnchor("target",P)}O&&this.resetAnchor("target",c.targetAnchorDef)}y["f"].equalPoints(g,this.vertices)||this.cellView.cell.setVertices(g,{ui:!0,toolId:this.cid}),this.updateHandle(t,p,v,0),i.stopPropagation||o.notifyMouseMove(h,d.x,d.y)}},{key:"onHandleChange",value:function(e){var t=e.handle,n=e.e,r=this.options,i=this.handles,o=this.cellView,s=t.options.index;if(Array.isArray(i)){for(var l=0,u=i.length;l<u;l+=1)l!==s&&i[l].hide();if(this.focus(),this.setEventData(n,{sourceAnchor:o.sourceAnchor.clone(),targetAnchor:o.targetAnchor.clone(),sourceAnchorDef:a["g"].cloneDeep(this.cell.prop(["source","anchor"])),targetAnchorDef:a["g"].cloneDeep(this.cell.prop(["target","anchor"]))}),this.cell.startBatch("move-segment",{ui:!0,toolId:this.cid}),!r.stopPropagation){var c=this.normalizeEvent(n),h=this.graph.snapToGrid(c.clientX,c.clientY);o.notifyMouseDown(c,h.x,h.y)}}}},{key:"onHandleChanged",value:function(e){var t=e.e,n=this.options,r=this.cellView;n.removeRedundancies&&r.removeRedundantLinearVertices({ui:!0,toolId:this.cid});var i=this.normalizeEvent(t),o=this.graph.snapToGrid(i.clientX,i.clientY);this.render(),this.blur(),this.cell.stopBatch("move-segment",{ui:!0,toolId:this.cid}),n.stopPropagation||r.notifyMouseUp(i,o.x,o.y),r.checkMouseleave(i),n.onChanged&&n.onChanged({edge:r.cell,edgeView:r})}},{key:"updateHandle",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=this.options.precision||0,o=Math.abs(t.x-n.x)<i,a=Math.abs(t.y-n.y)<i;if(o||a){var s=new y["d"](t,n),l=s.length();if(l<this.options.threshold)e.hide();else{var u=s.getCenter(),c=o?"x":"y";u[c]+=r||0;var h=s.vector().vectorAngle(new y["f"](1,0));e.updatePosition(u.x,u.y,h,this.cellView),e.show(),e.options.axis=c}}else e.hide()}},{key:"onRemove",value:function(){this.resetHandles()}}]),n}(r["a"].ToolItem);(function(e){var t=function(t){u(r,t);var n=c(r);function r(e){var t;return f(this,r),t=n.call(this),t.options=e,t.render(),t.delegateEvents({mousedown:"onMouseDown",touchstart:"onMouseDown"}),t}return g(r,[{key:"render",value:function(){this.container=m["a"].createElement("rect",!0);var t=this.options.attrs;if("function"===typeof t){var n=e.getDefaults();this.setAttrs(Object.assign(Object.assign({},n.attrs),t(this)))}else this.setAttrs(t);this.addClass(this.prefixClassName("edge-tool-segment"))}},{key:"updatePosition",value:function(e,t,n,r){var i=r.getClosestPoint(new y["f"](e,t))||new y["f"](e,t),o=a["c"].createSVGMatrix().translate(i.x,i.y);if(i.equals({x:e,y:t}))o=o.rotate(n);else{var s=new y["d"](e,t,i.x,i.y),l=s.vector().vectorAngle(new y["f"](1,0));0!==l&&(l+=90),o=o.rotate(l)}this.setAttrs({transform:a["c"].matrixToTransformString(o),cursor:n%180===0?"row-resize":"col-resize"})}},{key:"onMouseDown",value:function(e){this.options.guard(e)||(this.trigger("change",{e:e,handle:this}),e.stopPropagation(),e.preventDefault(),this.options.graph.view.undelegateEvents(),this.delegateDocumentEvents({mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},e.data))}},{key:"onMouseMove",value:function(e){this.emit("changing",{e:e,handle:this})}},{key:"onMouseUp",value:function(e){this.emit("changed",{e:e,handle:this}),this.undelegateDocumentEvents(),this.options.graph.view.delegateEvents()}},{key:"show",value:function(){this.container.style.display=""}},{key:"hide",value:function(){this.container.style.display="none"}}]),r}(m["a"]);e.Handle=t})(x||(x={})),function(e){e.config({name:"segments",precision:.5,threshold:40,snapRadius:10,stopPropagation:!0,removeRedundancies:!0,attrs:{width:20,height:8,x:-10,y:-4,rx:4,ry:4,fill:"#333",stroke:"#fff","stroke-width":2},createHandle:function(t){return new e.Handle(t)},anchor:l["a"]})}(x||(x={}));var w=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"type",get:function(){return this.options.type}},{key:"onRender",value:function(){a["c"].addClass(this.container,this.prefixClassName("edge-tool-".concat(this.type,"-anchor"))),this.toggleArea(!1),this.update()}},{key:"update",value:function(){var e=this.type,t=this.cellView,n=t.getTerminalView(e);return n?(this.updateAnchor(),this.updateArea(),this.container.style.display=""):this.container.style.display="none",this}},{key:"updateAnchor",value:function(){var e=this.childNodes;if(e){var t=e.anchor;if(t){var n=this.type,r=this.cellView,i=this.options,o=r.getTerminalAnchor(n),a=r.cell.prop([n,"anchor"]);t.setAttribute("transform","translate(".concat(o.x,", ").concat(o.y,")"));var s=a?i.customAnchorAttrs:i.defaultAnchorAttrs;s&&Object.keys(s).forEach((function(e){t.setAttribute(e,s[e])}))}}}},{key:"updateArea",value:function(){var e=this.childNodes;if(e){var t=e.area;if(t){var n=this.type,r=this.cellView,i=r.getTerminalView(n);if(i){var o,s,l,u=i.cell,c=r.getTerminalMagnet(n),h=this.options.areaPadding||0;Number.isFinite(h)||(h=0),i.isEdgeElement(c)?(o=i.getBBox(),s=0,l=o.getCenter()):(o=i.getUnrotatedBBoxOfElement(c),s=u.getAngle(),l=o.getCenter(),s&&l.rotate(-s,u.getBBox().getCenter())),o.inflate(h),a["c"].attr(t,{x:-o.width/2,y:-o.height/2,width:o.width,height:o.height,transform:"translate(".concat(l.x,", ").concat(l.y,") rotate(").concat(s,")")})}}}}},{key:"toggleArea",value:function(e){if(this.childNodes){var t=this.childNodes.area;t&&(t.style.display=e?"":"none")}}},{key:"onMouseDown",value:function(e){this.guard(e)||(e.stopPropagation(),e.preventDefault(),this.graph.view.undelegateEvents(),this.options.documentEvents&&this.delegateDocumentEvents(this.options.documentEvents),this.focus(),this.toggleArea(this.options.restrictArea),this.cell.startBatch("move-anchor",{ui:!0,toolId:this.cid}))}},{key:"resetAnchor",value:function(e){var t=this.type,n=this.cell;e?n.prop([t,"anchor"],e,{rewrite:!0,ui:!0,toolId:this.cid}):n.removeProp([t,"anchor"],{ui:!0,toolId:this.cid})}},{key:"onMouseMove",value:function(e){var t=this.type,n=this.cellView,r=n.getTerminalView(t);if(null!=r){var i,o=this.normalizeEvent(e),s=r.cell,l=n.getTerminalMagnet(t),u=this.graph.clientToLocal(o.clientX,o.clientY),c=this.options.snap;if("function"===typeof c){var h=a["d"].call(c,n,u,r,l,t,n,this);u=y["f"].create(h)}if(this.options.restrictArea)if(r.isEdgeElement(l)){var d=r.getClosestPoint(u);d&&(u=d)}else{var f=r.getUnrotatedBBoxOfElement(l),g=s.getAngle(),p=s.getBBox().getCenter(),v=u.clone().rotate(g,p);f.containsPoint(v)||(u=f.getNearestPointToPoint(v).rotate(-g,p))}var m=this.options.anchor;"function"===typeof m&&(i=a["d"].call(m,n,u,r,l,t,n,this)),this.resetAnchor(i),this.update()}}},{key:"onMouseUp",value:function(e){this.graph.view.delegateEvents(),this.undelegateDocumentEvents(),this.blur(),this.toggleArea(!1);var t=this.cellView;this.options.removeRedundancies&&t.removeRedundantLinearVertices({ui:!0,toolId:this.cid}),this.cell.stopBatch("move-anchor",{ui:!0,toolId:this.cid})}},{key:"onDblClick",value:function(){var e=this.options.resetAnchor;e&&this.resetAnchor(!0===e?void 0:e),this.update()}}]),n}(r["a"].ToolItem);(function(e){e.config({tagName:"g",markup:[{tagName:"circle",selector:"anchor",attrs:{cursor:"pointer"}},{tagName:"rect",selector:"area",attrs:{"pointer-events":"none",fill:"none",stroke:"#33334F","stroke-dasharray":"2,4",rx:5,ry:5}}],events:{mousedown:"onMouseDown",touchstart:"onMouseDown",dblclick:"onDblClick"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"},customAnchorAttrs:{"stroke-width":4,stroke:"#33334F",fill:"#FFFFFF",r:5},defaultAnchorAttrs:{"stroke-width":2,stroke:"#FFFFFF",fill:"#33334F",r:6},areaPadding:6,snapRadius:10,resetAnchor:!0,restrictArea:!0,removeRedundancies:!0,anchor:l["a"],snap:function(e,t,n,r,i,o){var a=o.options.snapRadius||0,s="source"===r,l=s?0:-1,u=this.cell.getVertexAt(l)||this.getTerminalAnchor(s?"target":"source");return u&&(Math.abs(u.x-e.x)<a&&(e.x=u.x),Math.abs(u.y-e.y)<a&&(e.y=u.y)),e}})})(w||(w={}));var C=w.define({name:"source-anchor",type:"source"}),k=w.define({name:"target-anchor",type:"target"}),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},S=function(e){u(n,e);var t=c(n);function n(){return f(this,n),t.apply(this,arguments)}return g(n,[{key:"type",get:function(){return this.options.type}},{key:"ratio",get:function(){return this.options.ratio}},{key:"init",value:function(){if(this.options.attrs){var e=this.options.attrs,t=e.class,n=E(e,["class"]);this.setAttrs(n,this.container),t&&a["c"].addClass(this.container,t)}}},{key:"onRender",value:function(){a["c"].addClass(this.container,this.prefixClassName("edge-tool-".concat(this.type,"-arrowhead"))),this.update()}},{key:"update",value:function(){var e=this.ratio,t=this.cellView,n=t.getTangentAtRatio(e),r=n?n.start:t.getPointAtRatio(e),i=n&&n.vector().vectorAngle(new y["f"](1,0))||0;if(!r)return this;var o=a["c"].createSVGMatrix().translate(r.x,r.y).rotate(i);return a["c"].transform(this.container,o,{absolute:!0}),this}},{key:"onMouseDown",value:function(e){if(!this.guard(e)){e.stopPropagation(),e.preventDefault();var t=this.cellView;if(t.can("arrowheadMovable")){t.cell.startBatch("move-arrowhead",{ui:!0,toolId:this.cid});var n=this.graph.snapToGrid(e.clientX,e.clientY),r=t.prepareArrowheadDragging(this.type,{x:n.x,y:n.y,options:{toolId:this.cid}});this.cellView.setEventData(e,r),this.delegateDocumentEvents(this.options.documentEvents,e.data),t.graph.view.undelegateEvents(),this.container.style.pointerEvents="none"}this.focus()}}},{key:"onMouseMove",value:function(e){var t=this.normalizeEvent(e),n=this.graph.snapToGrid(t.clientX,t.clientY);this.cellView.onMouseMove(t,n.x,n.y),this.update()}},{key:"onMouseUp",value:function(e){this.undelegateDocumentEvents();var t=this.normalizeEvent(e),n=this.cellView,r=this.graph.snapToGrid(t.clientX,t.clientY);n.onMouseUp(t,r.x,r.y),this.graph.view.delegateEvents(),this.blur(),this.container.style.pointerEvents="",n.cell.stopBatch("move-arrowhead",{ui:!0,toolId:this.cid})}}]),n}(r["a"].ToolItem);(function(e){e.config({tagName:"path",isSVGElement:!0,events:{mousedown:"onMouseDown",touchstart:"onMouseDown"},documentEvents:{mousemove:"onMouseMove",touchmove:"onMouseMove",mouseup:"onMouseUp",touchend:"onMouseUp",touchcancel:"onMouseUp"}})})(S||(S={}));var A=S.define({name:"source-arrowhead",type:"source",ratio:0,attrs:{d:"M 10 -8 -10 0 10 8 Z",fill:"#333",stroke:"#fff","stroke-width":2,cursor:"move"}}),O=S.define({name:"target-arrowhead",type:"target",ratio:1,attrs:{d:"M -10 -8 10 0 -10 8 Z",fill:"#333",stroke:"#fff","stroke-width":2,cursor:"move"}}),M=function(e){u(n,e);var t=c(n);function n(){var e;return f(this,n),e=t.apply(this,arguments),e.labelIndex=-1,e.distance=.5,e}return g(n,[{key:"render",value:function(){return this.createElement(),this.update(),this.autoFocus(),this.delegateDocumentEvents(this.options.documentEvents),this}},{key:"createElement",value:function(){var e=this.cell,t=[this.prefixClassName("".concat(e.isEdge()?"edge":"node","-tool-editor")),this.prefixClassName("cell-tool-editor")];this.editor=r["a"].createElement("div",!1),this.addClass(t,this.editor),this.editor.contentEditable="true",this.container.appendChild(this.editor)}},{key:"update",value:function(){var e=this.graph,t=this.cell,n=this.editor,r=n.style,i=new y["f"],o=20;if(t.isNode())i=t.getBBox().center,o=t.size().width-4;else if(t.isEdge()){var s=this.options.event,l=s.target,u=l.parentElement,c=u&&a["c"].hasClass(u,this.prefixClassName("edge-label"));if(c){var h=u.getAttribute("data-index")||"0";this.labelIndex=parseInt(h,10);var d=u.getAttribute("transform"),f=a["c"].parseTransformString(d),g=f.translation;i=new y["f"](g.tx,g.ty),o=a["c"].getBBox(l).width}else{i=e.clientToLocal(y["f"].create(s.clientX,s.clientY));var p=this.cellView,v=p.path.closestPointLength(i);this.distance=v}}i=e.localToGraph(i),r.left="".concat(i.x,"px"),r.top="".concat(i.y,"px"),r.minWidth="".concat(o,"px");var m=e.scale();r.transform="scale(".concat(m.sx,", ").concat(m.sy,") translate(-50%, -50%)");var b=this.options.attrs;r.fontSize="".concat(b.fontSize,"px"),r.fontFamily=b.fontFamily,r.color=b.color,r.backgroundColor=b.backgroundColor;var x,w=this.options.getText;return"function"===typeof w&&(x=a["d"].call(w,this.cellView,{cell:this.cell,index:this.labelIndex})),n.innerText=x||"",this}},{key:"onDocumentMouseDown",value:function(e){if(e.target!==this.editor){var t=this.cell,n=this.editor.innerText.replace(/\n$/,"")||"",r=this.options.setText;"function"===typeof r&&a["d"].call(r,this.cellView,{cell:this.cell,value:n,index:this.labelIndex,distance:this.distance}),t.removeTool(t.isEdge()?"edge-editor":"node-editor"),this.undelegateDocumentEvents()}}},{key:"onDblClick",value:function(e){e.stopPropagation()}},{key:"onMouseDown",value:function(e){e.stopPropagation()}},{key:"autoFocus",value:function(){var e=this;setTimeout((function(){e.editor.focus(),e.selectText()}))}},{key:"selectText",value:function(){if(window.getSelection){var e=document.createRange(),t=window.getSelection();e.selectNodeContents(this.editor),t.removeAllRanges(),t.addRange(e)}}}]),n}(r["a"].ToolItem);(function(e){e.config({tagName:"div",isSVGElement:!1,events:{dblclick:"onDblClick",mousedown:"onMouseDown"},documentEvents:{mousedown:"onDocumentMouseDown"}})})(M||(M={})),function(e){e.NodeEditor=e.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText:function(e){var t=e.cell;return t.attr("text/text")},setText:function(e){var t=e.cell,n=e.value;t.attr("text/text",n)}}),e.EdgeEditor=e.define({attrs:{fontSize:14,fontFamily:"Arial, helvetica, sans-serif",color:"#000",backgroundColor:"#fff"},getText:function(e){var t=e.cell,n=e.index;return-1===n?"":t.prop("labels/".concat(n,"/attrs/label/text"))},setText:function(e){var t=e.cell,n=e.value,r=e.index,i=e.distance,o=t;-1===r?o.appendLabel({position:{distance:i},attrs:{label:{text:n}}}):o.prop("labels/".concat(r,"/attrs/label/text"),n)}})}(M||(M={}));var P,T,D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};(function(e){e.presets={boundary:p,button:o["a"],"button-remove":o["a"].Remove,"node-editor":M.NodeEditor},e.registry=i["a"].create({type:"node tool",process:function(e,t){if("function"===typeof t)return t;var n=r["a"].ToolItem,i=t.inherit,o=D(t,["inherit"]);if(i){var a=this.get(i);null==a?this.onNotFound(i,"inherited"):n=a}return null==o.name&&(o.name=e),n.define.call(n,o)}}),e.registry.register(e.presets,!0)})(P||(P={})),function(e){e.presets={boundary:p,vertices:b,segments:x,button:o["a"],"button-remove":o["a"].Remove,"source-anchor":C,"target-anchor":k,"source-arrowhead":A,"target-arrowhead":O,"edge-editor":M.EdgeEditor},e.registry=i["a"].create({type:"edge tool",process:function(e,t){if("function"===typeof t)return t;var n=r["a"].ToolItem,i=t.inherit,o=D(t,["inherit"]);if(i){var a=this.get(i);null==a?this.onNotFound(i,"inherited"):n=a}return null==o.name&&(o.name=e),n.define.call(n,o)}}),e.registry.register(e.presets,!0)}(T||(T={}))},f36a:function(e,t,n){var r=n("e330");e.exports=r([].slice)},f5df:function(e,t,n){var r=n("da84"),i=n("00ee"),o=n("1626"),a=n("c6b6"),s=n("b622"),l=s("toStringTag"),u=r.Object,c="Arguments"==a(function(){return arguments}()),h=function(e,t){try{return e[t]}catch(n){}};e.exports=i?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=h(t=u(e),l))?n:c?a(t):"Object"==(r=a(t))&&o(t.callee)?"Arguments":r}},f76f:function(e,t,n){"use strict";n.r(t);var r=n("5728"),i=n("d86f"),o=n("a75f");t["default"]=function(){r["b"].registerNodeTool(o["ToolTypeEnum"].REMOVE_BUTTON,i["default"],!0),r["b"].registerEdgeTool(o["ToolTypeEnum"].REMOVE_BUTTON,i["default"],!0)}},f772:function(e,t,n){var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},f9a4:function(e,t){e.exports="data:image/svg+xml,%3csvg id='组_5' data-name='组 5' xmlns='http://www.w3.org/2000/svg' width='200' height='100' viewBox='0 0 200 100'%3e %3cdefs%3e %3cstyle%3e .cls-1, .cls-2 %7b fill: none; stroke: %23000; stroke-width: 2px; %7d .cls-1 %7b fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3cpath id='图层_3' data-name='图层 3' class='cls-1' d='M49,70.731A53.5,53.5,0,0,0,10.164,86.863,60.52,60.52,0,0,1,7.975,70.731C7.975,44.565,24.7,21.946,49,11.145c24.3,10.8,41.025,33.42,41.025,59.586a60.519,60.519,0,0,1-2.189,16.132A53.5,53.5,0,0,0,49,70.731Z'/%3e %3crect id='形状_4' data-name='形状 4' class='cls-2' x='98' y='35' width='96' height='30' rx='15' ry='15'/%3e %3crect id='矩形_2' data-name='矩形 2' x='85' y='49' width='13' height='2'/%3e %3c/svg%3e"},fb15:function(e,t,n){"use strict";if(n.r(t),n.d(t,"x6",(function(){return O})),"undefined"!==typeof window){var r=window.document.currentScript,i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i});var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("d3b7"),n("159b"),n("b0c0");var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"hello"},[n("div",{staticClass:"toolbar-container"},[n("Toolbar",{attrs:{graph:e.graph}})],1),n("div",{style:{height:e.canvasHeight},attrs:{id:"container"}}),e._m(0)])},s=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"help"},[n("span",{staticClass:"helpBtn iconhelp iconfont"}),n("ul",[n("li",[n("span",{staticClass:"label"},[e._v("复制")]),n("span",{staticClass:"describe"},[e._v("ctrl+c")])]),n("li",[n("span",{staticClass:"label"},[e._v("粘贴")]),n("span",{staticClass:"describe"},[e._v("ctrl+v")])]),n("li",[n("span",{staticClass:"label"},[e._v("框选")]),n("span",{staticClass:"describe"},[e._v("ctrl+按下鼠标左键拖动")])]),n("li",[n("span",{staticClass:"label"},[e._v("删除")]),n("span",{staticClass:"describe"},[e._v("delete")])]),n("li",[n("span",{staticClass:"label"},[e._v("批量粘贴")]),n("span",{staticClass:"describe"},[e._v("多选后按ctrl+v")])]),n("li",[n("span",{staticClass:"label"},[e._v("批量删除")]),n("span",{staticClass:"describe"},[e._v("多选后按delete")])]),n("li",[n("span",{staticClass:"label"},[e._v("点选")]),n("span",{staticClass:"describe"},[e._v("ctrl+鼠标左键单击")])])])])}],l=(n("e9c4"),n("bf19"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"node-bar-container"},[n("ul",{staticClass:"nodes-bar"},e._l(e.nodes,(function(t,r){return n("li",{key:r,class:[r>11?"fullWidth":""],attrs:{title:t.label}},[n("img",{attrs:{src:t.url,alt:""},on:{mousedown:function(n){return e.startDrag(t,n)}}}),n("p",[e._v(e._s(t.label))])])})),0)])}),u=[],c=n("1670"),h=n("5437"),d=n("5728"),f={props:["graph"],data:function(){return{nodes:c["nodes"]}},watch:{graph:function(){this.initDnd()}},methods:{initDnd:function(){this.dnd=new d["a"].Dnd({target:this.graph,validateNode:function(){return!0}})},startDrag:function(e,t){var n=e.actionType,r=e.shape,i=e.label,o=e.urlStr,a=e.ports,s=e.group,l=e.yAxis,u=e.typeImgNo,c=e.width,d=e.height,f=e.defaultSpanStyle,g=Object(h["createImageNode"])({shape:r,tooltip:i,size:{width:100,height:50},actionType:n,urlStr:o,ports:a,group:s,yAxis:l,typeImgNo:u,width:c,height:d,defaultSpanStyle:f}),p=this.graph.createNode(g);this.freeze||this.dnd.start(p,t)}},created:function(){}},g=f;n("84e7");function p(e,t,n,r,i,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}var v=p(g,l,u,!1,null,"7bc23f0a",null),y=v.exports,m=n("83ce"),b=n("625f"),x=n("deed");function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=document.createElement(e);return"pre"==e?(r.style.cssText=n.store.data.data.defaultSpanStyle||m["default"],r.innerHTML=t):(r.innerHTML=t,r.style.cssText=n.store.data.data.defaultSpanStyle||m["default"]),r.setAttribute("id","currentTextNode"),n.setProp("data",{typeImgNo:n.store.data.data.typeImgNo,textContent:t,defaultSpanStyle:n.store.data.data.defaultSpanStyle}),r}var C={name:"HelloWorld",props:{height:String},data:function(){return{graph:null,currentCell:null,history:null}},computed:{canvasHeight:function(){return this.height?this.height:window.innerHeight+"px"}},mounted:function(){var e=this;this.graph=Object(x["initGraph"])(),this.graph.on("edge:click",(function(t){var n,r=t.cell;t.e;e.currentCell&&(e.currentCell.attr("line",{stroke:"#7c68fc",strokeWidth:2}),e.currentCell.removeTools()),r.isEdge&&r.isEdge()&&(r.attr("line",{stroke:"red",strokeWidth:3}),n={distance:"30%"}),r.addTools({name:"custom-remove-button",args:n}),e.currentCell=r})),this.graph.on("cell:unselected",(function(t){var n=t.cell;t.node,t.e;if(n.isEdge&&n.isEdge())n.attr("line",{stroke:"#7c68fc",strokeWidth:2});else{var r=e.graph.findView(n);r&&r.removeClass("".concat(n.shape,"-selected"))}n.removeTools(),k(n,!1),Event.stopPropagation,Event.preventDefault;var i=n.html instanceof Function?n.html():n.html;n.setProp("html",(function(){var e=i.children[1];if("PRE"!==e.nodeName){var t=i.querySelector("textarea");i.querySelector("textarea").outerHTML=w("pre",t.value,n).outerHTML}return i}))})),this.graph.on("cell:removed",(function(){var e=document.getElementById("tooltip-container");e&&(e.style.display="none")})),this.graph.on("blank:click",(function(){if(e.currentCell){var t=e.currentCell.id?e.currentCell:e.currentCell.cell;t.isEdge&&t.isEdge()&&t.attr("line",{stroke:"#7c68fc",strokeWidth:2}),t.removeTools(),k(t,!1);var n=t.html instanceof Function?t.html():t.html;t.setProp("html",(function(){var e=n.children[1];if("PRE"!==e.nodeName){var r=n.querySelector("textarea");n.querySelector("textarea").outerHTML=w("pre",r.value,t).outerHTML}return n}))}})),this.graph.on("edge:connected",(function(e){var t=e.edge,n=e.currentCell,r=e.currentMagnet,i=r.getAttribute("port");n.setPortProp(i,"connected",!0),t.zIndex=-1,t.attr({line:{strokeDasharray:"",targetMarker:{name:"path"}}}),t.appendLabel({attrs:{label:{text:""}}})})),this.graph.on("node:click",(function(t){var n=t.cell;e.currentCell=n})),this.graph.on("node:dblclick",(function(t){var n=t.cell;t.e;Event.stopPropagation;var r,i=n.html instanceof Function?n.html():n.html;if(n.setProp("html",(function(){var e=i.children[1];if("TEXTAREA"!==e.nodeName){var t=i.querySelector("pre");i.querySelector("pre").outerHTML=w("textarea",t.innerText,n).outerHTML}return i})),n.isNode()){var o=e.graph.findView(n);o.addClass("".concat(n.shape,"-selected")),r={x:-28,y:-5}}n.addTools({name:"custom-remove-button",args:r}),e.currentCell=n,document.getElementById("currentTextNode").focus()})),this.graph.on("node:mouseenter",(function(e){var t=e.node;Event.stopPropagation;var n=t.getData();n&&n.disableMove?k(t,!1):k(t,!0)})),this.graph.on("node:mouseleave",(function(e){var t=e.node;Event.stopPropagation;var n=document.getElementById("tooltip-container");k(t,!1),n&&(n.style.display="none")})),this.history=this.graph.history;var t=!1;document.addEventListener("keydown",(function(n){if("Delete"!=n.key)if(window.event.ctrlKey&&"z"===n.key){var r=document.querySelectorAll(".nodeBox textarea");if(r.length)return;e.history.undo()}else if(window.event.ctrlKey&&window.event.shiftKey&&"Z"===n.key)e.history.redo();else if(window.event.ctrlKey&&"c"===n.key)t=!0;else if(window.event.ctrlKey&&"v"===n.key&&t)for(var i=e.graph.getSelectedCells(),o=0;o<i.length;o++){for(var a=i[o].store.data,s=void 0,l=0;l<c["nodes"].length;l++){var u=c["nodes"][l];if(!u.typeImgNo)break;if(a.data.typeImgNo===u.typeImgNo){s=JSON.parse(JSON.stringify(u));break}}s.label=a.data.textContent,s.tooltip=a.data.textContent,s.x=a.position.x+10,s.y=a.position.y+10,s.width=a.size.width,s.height=a.size.height;var d=Object(h["createImageNode"])(s);e.graph.addNode(d)}else;else{var f=e.graph.getSelectedCells();f.forEach((function(e){e.remove()}))}}))},components:{Toolbar:y},methods:{renderData:function(e){e.forEach((function(e){"html"===e.shape&&c["nodes"].forEach((function(t){e.data.typeImgNo===t.typeImgNo&&(e.html=function(){return Object(b["default"])({tooltip:e.data.textContent,urlStr:t.urlStr,defaultSpanStyle:t.defaultSpanStyle})})}))})),this.graph.fromJSON(e);var t=this.graph.getNodes();t.forEach((function(e){k(e,!1)}))},exportData:function(e){return e instanceof Function&&e(this.graph.toJSON(),this.graph),this.graph.toJSON()},getGraph:function(){return this.graph}}},k=function(e,t){var n=document.querySelectorAll('g[data-cell-id="'.concat(e.id,'"] .x6-port-body'));n.forEach((function(e){e.style.visibility=t?"visible":"hidden"}))},E=C,S=(n("3079"),p(E,a,s,!1,null,"714f0c92",null)),A=S.exports;A.install=function(e){e.component(A.name,A)};var O=A,M=[O];function P(e){M.forEach((function(t){e.component(t.name,t)}))}"undefined"!==typeof window&&window.Vue&&P(window.Vue);var T={install:P};t["default"]=T},fc17:function(e,t,n){"use strict";n.d(t,"a",(function(){return fe}));var r={};n.r(r),n.d(r,"ref",(function(){return u})),n.d(r,"refX",(function(){return c})),n.d(r,"refY",(function(){return h})),n.d(r,"refDx",(function(){return d})),n.d(r,"refDy",(function(){return f})),n.d(r,"refWidth",(function(){return g})),n.d(r,"refHeight",(function(){return v})),n.d(r,"refRx",(function(){return y})),n.d(r,"refRy",(function(){return m})),n.d(r,"refRInscribed",(function(){return b})),n.d(r,"refRCircumscribed",(function(){return x})),n.d(r,"refCx",(function(){return w})),n.d(r,"refCy",(function(){return C})),n.d(r,"refDResetOffset",(function(){return k})),n.d(r,"refDKeepOffset",(function(){return E})),n.d(r,"refPointsResetOffset",(function(){return S})),n.d(r,"refPointsKeepOffset",(function(){return A})),n.d(r,"refR",(function(){return O})),n.d(r,"refD",(function(){return M})),n.d(r,"refPoints",(function(){return P})),n.d(r,"refX2",(function(){return T})),n.d(r,"refY2",(function(){return D})),n.d(r,"refWidth2",(function(){return N})),n.d(r,"refHeight2",(function(){return j})),n.d(r,"fill",(function(){return I})),n.d(r,"stroke",(function(){return V})),n.d(r,"text",(function(){return _})),n.d(r,"textWrap",(function(){return G})),n.d(r,"lineHeight",(function(){return U})),n.d(r,"textVerticalAnchor",(function(){return q})),n.d(r,"textPath",(function(){return $})),n.d(r,"annotations",(function(){return W})),n.d(r,"eol",(function(){return X})),n.d(r,"displayEmpty",(function(){return Y})),n.d(r,"title",(function(){return J})),n.d(r,"xAlign",(function(){return Z})),n.d(r,"yAlign",(function(){return K})),n.d(r,"resetOffset",(function(){return Q})),n.d(r,"style",(function(){return te})),n.d(r,"html",(function(){return ne})),n.d(r,"filter",(function(){return re})),n.d(r,"port",(function(){return ie})),n.d(r,"sourceMarker",(function(){return le})),n.d(r,"targetMarker",(function(){return ue})),n.d(r,"vertexMarker",(function(){return ce})),n.d(r,"connection",(function(){return pe})),n.d(r,"atConnectionLengthKeepGradient",(function(){return ve})),n.d(r,"atConnectionLengthIgnoreGradient",(function(){return ye})),n.d(r,"atConnectionRatioKeepGradient",(function(){return me})),n.d(r,"atConnectionRatioIgnoreGradient",(function(){return be})),n.d(r,"atConnectionLength",(function(){return xe})),n.d(r,"atConnectionRatio",(function(){return we}));var i=n("bcd7"),o=n("20d2"),a={xlinkHref:"xlink:href",xlinkShow:"xlink:show",xlinkRole:"xlink:role",xlinkType:"xlink:type",xlinkArcrole:"xlink:arcrole",xlinkTitle:"xlink:title",xlinkActuate:"xlink:actuate",xmlSpace:"xml:space",xmlBase:"xml:base",xmlLang:"xml:lang",preserveAspectRatio:"preserveAspectRatio",requiredExtension:"requiredExtension",requiredFeatures:"requiredFeatures",systemLanguage:"systemLanguage",externalResourcesRequired:"externalResourceRequired"},l=n("4283"),u={},c={position:L("x","width","origin")},h={position:L("y","height","origin")},d={position:L("x","width","corner")},f={position:L("y","height","corner")},g={set:F("width","width")},v={set:F("height","height")},y={set:F("rx","width")},m={set:F("ry","height")},b={set:function(e){var t=F(e,"width"),n=F(e,"height");return function(e,r){var o=r.refBBox,a=o.height>o.width?t:n;return i["d"].call(a,this,e,r)}}("r")},x={set:function(e,t){var n=t.refBBox,r=parseFloat(e),o=i["f"].isPercentage(e);o&&(r/=100);var a,s=Math.sqrt(n.height*n.height+n.width*n.width);return Number.isFinite(r)&&(a=o||r>=0&&r<=1?r*s:Math.max(r+s,0)),{r:a}}},w={set:F("cx","width")},C={set:F("cy","height")},k={set:B({resetOffset:!0})},E={set:B({resetOffset:!1})},S={set:z({resetOffset:!0})},A={set:z({resetOffset:!1})},O=b,M=k,P=S,T=c,D=h,N=g,j=v;function L(e,t,n){return function(r,o){var a=o.refBBox;if(null==r)return null;var s,u=parseFloat(r),c=i["f"].isPercentage(r);if(c&&(u/=100),Number.isFinite(u)){var h=a[n];s=c||u>0&&u<1?h[e]+a[t]*u:h[e]+u}var d=new l["f"];return d[e]=s||0,d}}function F(e,t){return function(n,r){var o=r.refBBox,a=parseFloat(n),s=i["f"].isPercentage(n);s&&(a/=100);var l={};if(Number.isFinite(a)){var u=s||a>=0&&a<=1?a*o[t]:Math.max(a+o[t],0);l[e]=u}return l}}function R(e,t){var n="x6-shape",r=t&&t.resetOffset;return function(t,i){var o=i.view,a=i.elem,s=i.refBBox,l=o.$(a),u=l.data(n);if(!u||u.value!==t){var c=e(t);u={value:t,shape:c,shapeBBox:c.bbox()},l.data(n,u)}var h=u.shape.clone(),d=u.shapeBBox.clone(),f=d.getOrigin(),g=s.getOrigin();d.x=g.x,d.y=g.y;var p=s.getMaxScaleToFit(d,g),v=0===d.width||0===s.width?1:p.sx,y=0===d.height||0===s.height?1:p.sy;return h.scale(v,y,f),r&&h.translate(-f.x,-f.y),h}}function B(e){function t(e){return l["e"].parse(e)}var n=R(t,e);return function(e,t){var r=n(e,t);return{d:r.serialize()}}}function z(e){var t=R((function(e){return new l["g"](e)}),e);return function(e,n){var r=t(e,n);return{points:r.serialize()}}}var I={qualify:i["g"].isPlainObject,set:function(e,t){var n=t.view;return"url(#".concat(n.graph.defineGradient(e),")")}},V={qualify:i["g"].isPlainObject,set:function(e,t){var n=t.view,r=n.cell,i=Object.assign({},e);if(r.isEdge()&&"linearGradient"===i.type){var o=n,a=o.sourcePoint,s=o.targetPoint;i.id="gradient-".concat(i.type,"-").concat(r.id),i.attrs=Object.assign(Object.assign({},i.attrs),{x1:a.x,y1:a.y,x2:s.x,y2:s.y,gradientUnits:"userSpaceOnUse"}),n.graph.defs.remove(i.id)}return"url(#".concat(n.graph.defineGradient(i),")")}},_={qualify:function(e,t){var n=t.attrs;return null==n.textWrap||!i["g"].isPlainObject(n.textWrap)},set:function(e,t){var n=t.view,r=t.elem,o=t.attrs,a="x6-text",s=n.$(r),l=s.data(a),u=function(e){try{return JSON.parse(e)}catch(t){return e}},c={x:o.x,eol:o.eol,annotations:u(o.annotations),textPath:u(o["text-path"]||o.textPath),textVerticalAnchor:o["text-vertical-anchor"]||o.textVerticalAnchor,displayEmpty:"true"===(o["display-empty"]||o.displayEmpty),lineHeight:o["line-height"]||o.lineHeight},h=o["font-size"]||o.fontSize,d=JSON.stringify([e,c]);if(h&&r.setAttribute("font-size",h),null==l||l!==d){var f=c.textPath;if(null!=f&&"object"===p(f)){var g=f.selector;if("string"===typeof g){var v=n.find(g)[0];v instanceof SVGPathElement&&(i["c"].ensureId(v),c.textPath=Object.assign({"xlink:href":"#".concat(v.id)},f))}}i["c"].text(r,"".concat(e),c),s.data(a,d)}}},G={qualify:i["g"].isPlainObject,set:function(e,t){var n=t.view,r=t.elem,o=t.attrs,a=t.refBBox,s=e,l=s.width||0;i["f"].isPercentage(l)?a.width*=parseFloat(l)/100:l<=0?a.width+=l:a.width=l;var u,c=s.height||0;i["f"].isPercentage(c)?a.height*=parseFloat(c)/100:c<=0?a.height+=c:a.height=c;var h=s.text;null==h&&(h=o.text),u=null!=h?i["c"].breakText("".concat(h),a,{"font-weight":o["font-weight"]||o.fontWeight,"font-size":o["font-size"]||o.fontSize,"font-family":o["font-family"]||o.fontFamily,lineHeight:o.lineHeight},{svgDocument:n.graph.view.svg,ellipsis:s.ellipsis,hyphen:s.hyphen,breakWord:s.breakWord}):"",i["d"].call(_.set,this,u,{view:n,elem:r,attrs:o,refBBox:a,cell:n.cell})}},H=function(e,t){var n=t.attrs;return void 0!==n.text},U={qualify:H},q={qualify:H},$={qualify:H},W={qualify:H},X={qualify:H},Y={qualify:H},J={qualify:function(e,t){var n=t.elem;return n instanceof SVGElement},set:function(e,t){var n=t.view,r=t.elem,i="x6-title",o="".concat(e),a=n.$(r),s=a.data(i);if(null==s||s!==o){a.data(i,o);var l=r.firstChild;if(l&&"TITLE"===l.tagName.toUpperCase()){var u=l;u.textContent=o}else{var c=document.createElementNS(r.namespaceURI,"title");c.textContent=o,r.insertBefore(c,l)}}}},Z={offset:ee("x","width","right")},K={offset:ee("y","height","bottom")},Q={offset:function(e,t){var n=t.refBBox;return e?{x:-n.x,y:-n.y}:{x:0,y:0}}};function ee(e,t,n){return function(r,o){var a,s=o.refBBox,u=new l["f"];return a="middle"===r?s[t]/2:r===n?s[t]:"number"===typeof r&&Number.isFinite(r)?r>-1&&r<1?-s[t]*r:-r:i["f"].isPercentage(r)?s[t]*parseFloat(r)/100:0,u[e]=-(s[e]+a),u}}var te={qualify:i["g"].isPlainObject,set:function(e,t){var n=t.view,r=t.elem;n.$(r).css(e)}},ne={set:function(e,t){var n=t.view,r=t.elem;n.$(r).html("".concat(e))}},re={qualify:i["g"].isPlainObject,set:function(e,t){var n=t.view;return"url(#".concat(n.graph.defineFilter(e),")")}},ie={set:function(e){return null!=e&&"object"===p(e)&&e.id?e.id:e}},oe=n("7eaa"),ae=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function se(e){return"string"===typeof e||i["g"].isPlainObject(e)}var le={qualify:se,set:function(e,t){var n=t.view,r=t.attrs;return he("marker-start",e,n,r)}},ue={qualify:se,set:function(e,t){var n=t.view,r=t.attrs;return he("marker-end",e,n,r,{transform:"rotate(180)"})}},ce={qualify:se,set:function(e,t){var n=t.view,r=t.attrs;return he("marker-mid",e,n,r)}};function he(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o="string"===typeof t?{name:t}:t,a=o.name,l=o.args,u=ae(o,["name","args"]),c=u;if(a&&"string"===typeof a){var h=oe["a"].registry.get(a);if(!h)return oe["a"].registry.onNotFound(a);c=h(Object.assign(Object.assign({},u),l))}var d=Object.assign(Object.assign(Object.assign({},de(r,e)),i),c);return s({},e,"url(#".concat(n.graph.defineMarker(d),")"))}function de(e,t){var n={},r=e.stroke;"string"===typeof r&&(n.stroke=r,n.fill=r);var i=e.strokeOpacity;if(null==i&&(i=e["stroke-opacity"]),null==i&&(i=e.opacity),null!=i&&(n["stroke-opacity"]=i,n["fill-opacity"]=i),"marker-mid"!==t){var o=parseFloat(e.strokeWidth||e["stroke-width"]);if(Number.isFinite(o)&&o>1){var a=Math.ceil(o/2);n.refX="marker-start"===t?a:-a}}return n}var fe,ge=function(e,t){var n=t.view;return n.cell.isEdge()},pe={qualify:ge,set:function(e,t){var n,r=t.view,i=e.stubs||0;if(Number.isFinite(i)&&0!==i){var o;if(i<0){var a=r.getConnectionLength()||0;o=(a+i)/2}else o=i;var s=r.getConnection();if(s){var l=s.divideAtLength(o),u=s.divideAtLength(-o);l&&u&&(n="".concat(l[0].serialize()," ").concat(u[1].serialize()))}}return{d:n||r.getConnectionPathData()}}},ve={qualify:ge,set:Ce("getTangentAtLength",{rotate:!0})},ye={qualify:ge,set:Ce("getTangentAtLength",{rotate:!1})},me={qualify:ge,set:Ce("getTangentAtRatio",{rotate:!0})},be={qualify:ge,set:Ce("getTangentAtRatio",{rotate:!1})},xe=ve,we=me;function Ce(e,t){var n={x:1,y:0};return function(r,i){var o,a,s=i.view,l=s[e](Number(r));return l?(a=t.rotate?l.vector().vectorAngle(n):0,o=l.start):(o=s.path.start,a=0),0===a?{transform:"translate(".concat(o.x,",").concat(o.y,"')")}:{transform:"translate(".concat(o.x,",").concat(o.y,"') rotate(").concat(a,")")}}}(function(e){function t(e,t,n){if(null!=e){if("string"===typeof e)return!0;if("function"!==typeof e.qualify||i["d"].call(e.qualify,this,t,n))return!0}return!1}e.isValidDefinition=t})(fe||(fe={})),function(e){e.presets=Object.assign(Object.assign({},a),r),e.registry=o["a"].create({type:"attribute definition"}),e.registry.register(e.presets,!0)}(fe||(fe={}))},fc6a:function(e,t,n){var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fcf3:function(e,t){e.exports="data:image/svg+xml,%3csvg id='组_1' data-name='组 1' xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3e %3cdefs%3e %3cstyle%3e .cls-1 %7b fill: none; stroke: %23000; stroke-width: 2px; fill-rule: evenodd; %7d %3c/style%3e %3c/defs%3e %3cpath id='图层_1' data-name='图层 1' class='cls-1' d='M72.985,26.756V81H27.015V26.756S37.4,13.914,50,13.914C62.457,13.914,72.985,26.756,72.985,26.756Z'/%3e %3c/svg%3e"},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==p(Symbol.iterator)},ff51:function(e,t,n){"use strict";var r=Array.isArray;t["a"]=r}})},"4e82":function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),a=n("7b0b"),s=n("07fa"),l=n("577e"),u=n("d039"),c=n("addb"),h=n("a640"),d=n("04d1"),f=n("d998"),g=n("2d00"),p=n("512c"),v=[],y=i(v.sort),m=i(v.push),b=u((function(){v.sort(void 0)})),x=u((function(){v.sort(null)})),w=h("sort"),C=!u((function(){if(g)return g<70;if(!(d&&d>3)){if(f)return!0;if(p)return p<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)v.push({k:t+r,v:n})}for(v.sort((function(e,t){return t.v-e.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}})),k=b||!x||!w||!C,E=function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:l(t)>l(n)?1:-1}};r({target:"Array",proto:!0,forced:k},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(C)return void 0===e?y(t):y(t,e);var n,r,i=[],l=s(t);for(r=0;r<l;r++)r in t&&m(i,t[r]);c(i,E(e)),n=i.length,r=0;while(r<n)t[r]=i[r++];while(r<l)delete t[r++];return t}})},"4ec9":function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"4fad":function(e,t,n){var r=n("d039"),i=n("861d"),o=n("c6b6"),a=n("d86b"),s=Object.isExtensible,l=r((function(){s(1)}));e.exports=l||a?function(e){return!!i(e)&&((!a||"ArrayBuffer"!=o(e))&&(!s||s(e)))}:s},"512c":function(e,t,n){var r=n("342f"),i=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!i&&+i[1]},5319:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),l=n("825a"),u=n("1626"),c=n("5926"),h=n("50c4"),d=n("577e"),f=n("1d80"),g=n("8aa5"),p=n("dc4a"),v=n("0cb2"),y=n("14c3"),m=n("b622"),b=m("replace"),x=Math.max,w=Math.min,C=o([].concat),k=o([].push),E=o("".indexOf),S=o("".slice),A=function(e){return void 0===e?e:String(e)},O=function(){return"$0"==="a".replace(/./,"$0")}(),M=function(){return!!/./[b]&&""===/./[b]("a","$0")}(),P=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));a("replace",(function(e,t,n){var o=M?"$":"$0";return[function(e,n){var r=f(this),o=void 0==e?void 0:p(e,b);return o?i(o,e,r,n):i(t,d(r),e,n)},function(e,i){var a=l(this),s=d(e);if("string"==typeof i&&-1===E(i,o)&&-1===E(i,"$<")){var f=n(t,a,s,i);if(f.done)return f.value}var p=u(i);p||(i=d(i));var m=a.global;if(m){var b=a.unicode;a.lastIndex=0}var O=[];while(1){var M=y(a,s);if(null===M)break;if(k(O,M),!m)break;var P=d(M[0]);""===P&&(a.lastIndex=g(s,h(a.lastIndex),b))}for(var T="",D=0,N=0;N<O.length;N++){M=O[N];for(var j=d(M[0]),L=x(w(c(M.index),s.length),0),F=[],R=1;R<M.length;R++)k(F,A(M[R]));var B=M.groups;if(p){var z=C([j],F,L,s);void 0!==B&&k(z,B);var I=d(r(i,void 0,z))}else I=v(j,s,L,F,B,i);L>=D&&(T+=S(s,D,L)+I,D=L+j.length)}return T+S(s,D)}]}),!P||!O||M)},5377:function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("ad6d"),a=n("d039"),s=RegExp.prototype,l=r&&a((function(){return"sy"!==Object.getOwnPropertyDescriptor(s,"flags").get.call({dotAll:!0,sticky:!0})}));l&&i.f(s,"flags",{configurable:!0,get:o})},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("e330"),i=n("1d80"),o=n("577e"),a=n("5899"),s=r("".replace),l="["+a+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),h=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,c,"")),n}};e.exports={start:h(1),end:h(2),trim:h(3)}},"5a34":function(e,t,n){var r=n("da84"),i=n("44e7"),o=r.TypeError;e.exports=function(e){if(i(e))throw o("The method doesn't accept regular expressions");return e}},"5a43":function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"5bc3":function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},"5cc6":function(e,t,n){var r=n("74e8");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"5d41":function(e,t,n){var r=n("23e7"),i=n("c65b"),o=n("861d"),a=n("825a"),s=n("c60d"),l=n("06cf"),u=n("e163");function c(e,t){var n,r,h=arguments.length<3?e:arguments[2];return a(e)===h?e[t]:(n=l.f(e,t),n?s(n)?n.value:void 0===n.get?void 0:i(n.get,h):o(r=u(e))?c(r,t,h):void 0)}r({target:"Reflect",stat:!0},{get:c})},"5f96":function(e,t,n){"use strict";var r=n("ebb5"),i=n("e330"),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=i([].join);a("join",(function(e){return s(o(this),e)}))},"5fb2":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),o=2147483647,a=36,s=1,l=26,u=38,c=700,h=72,d=128,f="-",g=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,v="Overflow: input needs wider integers to process",y=a-s,m=r.RangeError,b=i(p.exec),x=Math.floor,w=String.fromCharCode,C=i("".charCodeAt),k=i([].join),E=i([].push),S=i("".replace),A=i("".split),O=i("".toLowerCase),M=function(e){var t=[],n=0,r=e.length;while(n<r){var i=C(e,n++);if(i>=55296&&i<=56319&&n<r){var o=C(e,n++);56320==(64512&o)?E(t,((1023&i)<<10)+(1023&o)+65536):(E(t,i),n--)}else E(t,i)}return t},P=function(e){return e+22+75*(e<26)},T=function(e,t,n){var r=0;e=n?x(e/c):e>>1,e+=x(e/t);while(e>y*l>>1)e=x(e/y),r+=a;return x(r+(y+1)*e/(e+u))},D=function(e){var t=[];e=M(e);var n,r,i=e.length,u=d,c=0,g=h;for(n=0;n<e.length;n++)r=e[n],r<128&&E(t,w(r));var p=t.length,y=p;p&&E(t,f);while(y<i){var b=o;for(n=0;n<e.length;n++)r=e[n],r>=u&&r<b&&(b=r);var C=y+1;if(b-u>x((o-c)/C))throw m(v);for(c+=(b-u)*C,u=b,n=0;n<e.length;n++){if(r=e[n],r<u&&++c>o)throw m(v);if(r==u){var S=c,A=a;while(1){var O=A<=g?s:A>=g+l?l:A-g;if(S<O)break;var D=S-O,N=a-O;E(t,w(P(O+D%N))),S=x(D/N),A+=a}E(t,w(P(S))),g=T(c,C,y==p),c=0,y++}}c++,u++}return k(t,"")};e.exports=function(e){var t,n,r=[],i=A(S(O(e),p,"."),".");for(t=0;t<i.length;t++)n=i[t],E(r,b(g,n)?"xn--"+D(n):n);return k(r,".")}},6062:function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},"60bd":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),o=n("5e77").PROPER,a=n("ebb5"),s=n("e260"),l=n("b622"),u=l("iterator"),c=r.Uint8Array,h=i(s.values),d=i(s.keys),f=i(s.entries),g=a.aTypedArray,p=a.exportTypedArrayMethod,v=c&&c.prototype[u],y=!!v&&"values"===v.name,m=function(){return h(g(this))};p("entries",(function(){return f(g(this))})),p("keys",(function(){return d(g(this))})),p("values",m,o&&!y),p(u,m,o&&!y)},"621a":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),o=n("83ab"),a=n("a981"),s=n("5e77"),l=n("9112"),u=n("e2cc"),c=n("d039"),h=n("19aa"),d=n("5926"),f=n("50c4"),g=n("0b25"),p=n("77a7"),v=n("e163"),y=n("d2bb"),m=n("241c").f,b=n("9bf2").f,x=n("81d5"),w=n("4dae"),C=n("d44e"),k=n("69f3"),E=s.PROPER,S=s.CONFIGURABLE,A=k.get,O=k.set,M="ArrayBuffer",P="DataView",T="prototype",D="Wrong length",N="Wrong index",j=r[M],L=j,F=L&&L[T],R=r[P],B=R&&R[T],z=Object.prototype,I=r.Array,V=r.RangeError,_=i(x),G=i([].reverse),H=p.pack,U=p.unpack,q=function(e){return[255&e]},$=function(e){return[255&e,e>>8&255]},W=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},X=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Y=function(e){return H(e,23,4)},J=function(e){return H(e,52,8)},Z=function(e,t){b(e[T],t,{get:function(){return A(this)[t]}})},K=function(e,t,n,r){var i=g(n),o=A(e);if(i+t>o.byteLength)throw V(N);var a=A(o.buffer).bytes,s=i+o.byteOffset,l=w(a,s,s+t);return r?l:G(l)},Q=function(e,t,n,r,i,o){var a=g(n),s=A(e);if(a+t>s.byteLength)throw V(N);for(var l=A(s.buffer).bytes,u=a+s.byteOffset,c=r(+i),h=0;h<t;h++)l[u+h]=c[o?h:t-h-1]};if(a){var ee=E&&j.name!==M;if(c((function(){j(1)}))&&c((function(){new j(-1)}))&&!c((function(){return new j,new j(1.5),new j(NaN),ee&&!S})))ee&&S&&l(j,"name",M);else{L=function(e){return h(this,F),new j(g(e))},L[T]=F;for(var te,ne=m(j),re=0;ne.length>re;)(te=ne[re++])in L||l(L,te,j[te]);F.constructor=L}y&&v(B)!==z&&y(B,z);var ie=new R(new L(2)),oe=i(B.setInt8);ie.setInt8(0,2147483648),ie.setInt8(1,2147483649),!ie.getInt8(0)&&ie.getInt8(1)||u(B,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else L=function(e){h(this,F);var t=g(e);O(this,{bytes:_(I(t),0),byteLength:t}),o||(this.byteLength=t)},F=L[T],R=function(e,t,n){h(this,B),h(e,F);var r=A(e).byteLength,i=d(t);if(i<0||i>r)throw V("Wrong offset");if(n=void 0===n?r-i:f(n),i+n>r)throw V(D);O(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},B=R[T],o&&(Z(L,"byteLength"),Z(R,"buffer"),Z(R,"byteLength"),Z(R,"byteOffset")),u(B,{getInt8:function(e){return K(this,1,e)[0]<<24>>24},getUint8:function(e){return K(this,1,e)[0]},getInt16:function(e){var t=K(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=K(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return X(K(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return X(K(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return U(K(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return U(K(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Q(this,1,e,q,t)},setUint8:function(e,t){Q(this,1,e,q,t)},setInt16:function(e,t){Q(this,2,e,$,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Q(this,2,e,$,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Q(this,4,e,W,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Q(this,4,e,W,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Q(this,4,e,Y,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Q(this,8,e,J,t,arguments.length>2?arguments[2]:void 0)}});C(L,M),C(R,P),e.exports={ArrayBuffer:L,DataView:R}},6374:function(e,t,n){n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");var r=n("6613");function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(l)throw a}}}}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"649e":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").some,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},6566:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("7c73"),o=n("e2cc"),a=n("0366"),s=n("19aa"),l=n("2266"),u=n("7dd0"),c=n("2626"),h=n("83ab"),d=n("f183").fastKey,f=n("69f3"),g=f.set,p=f.getterFor;e.exports={getConstructor:function(e,t,n,u){var c=e((function(e,r){s(e,f),g(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),h||(e.size=0),void 0!=r&&l(r,e[u],{that:e,AS_ENTRIES:n})})),f=c.prototype,v=p(t),y=function(e,t,n){var r,i,o=v(e),a=m(e,t);return a?a.value=n:(o.last=a={index:i=d(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),h?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},m=function(e,t){var n,r=v(e),i=d(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(f,{clear:function(){var e=this,t=v(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,h?t.size=0:e.size=0},delete:function(e){var t=this,n=v(t),r=m(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),h?n.size--:t.size--}return!!r},forEach:function(e){var t,n=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!m(this,e)}}),o(f,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),h&&r(f,"size",{get:function(){return v(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",i=p(t),o=p(r);u(e,t,(function(e,t){g(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},"65f0":function(e,t,n){var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},6613:function(e,t,n){n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var r=n("5a43");function i(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"6b58":function(e,t,n){var r=n("7037")["default"],i=n("3c96");function o(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)}e.exports=o,e.exports["default"]=e.exports,e.exports.__esModule=!0},"6c57":function(e,t,n){var r=n("23e7"),i=n("da84");r({global:!0},{globalThis:i})},"6d61":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("6eeb"),l=n("f183"),u=n("2266"),c=n("19aa"),h=n("1626"),d=n("861d"),f=n("d039"),g=n("1c7e"),p=n("d44e"),v=n("7156");e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),b=y?"set":"add",x=i[e],w=x&&x.prototype,C=x,k={},E=function(e){var t=o(w[e]);s(w,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!d(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return m&&!d(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!d(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},S=a(e,!h(x)||!(m||w.forEach&&!f((function(){(new x).entries().next()}))));if(S)C=n.getConstructor(t,e,y,b),l.enable();else if(a(e,!0)){var A=new C,O=A[b](m?{}:-0,1)!=A,M=f((function(){A.has(1)})),P=g((function(e){new x(e)})),T=!m&&f((function(){var e=new x,t=5;while(t--)e[b](t,t);return!e.has(-0)}));P||(C=t((function(e,t){c(e,w);var n=v(new x,e,C);return void 0!=t&&u(t,n[b],{that:n,AS_ENTRIES:y}),n})),C.prototype=w,w.constructor=C),(M||T)&&(E("delete"),E("has"),y&&E("get")),(T||O)&&E(b),m&&w.clear&&delete w.clear}return k[e]=C,r({global:!0,forced:C!=x},k),p(C,e),m||n.setStrong(C,e,y),C}},"6f8f":function(e,t,n){function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n("d3b7"),n("f8c9"),n("4ae1"),e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},7037:function(e,t,n){function r(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?(e.exports=r=function(e){return typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0):(e.exports=r=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports["default"]=e.exports,e.exports.__esModule=!0),r(t)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},7039:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("057f").f,a=i((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:a},{getOwnPropertyNames:o})},7156:function(e,t,n){var r=n("1626"),i=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},"72f7":function(e,t,n){"use strict";var r=n("ebb5").exportTypedArrayMethod,i=n("d039"),o=n("da84"),a=n("e330"),s=o.Uint8Array,l=s&&s.prototype||{},u=[].toString,c=a([].join);i((function(){u.call({})}))&&(u=function(){return c(this)});var h=l.toString!=u;r("toString",u,h)},"735e":function(e,t,n){"use strict";var r=n("ebb5"),i=n("c65b"),o=n("81d5"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("fill",(function(e){var t=arguments.length;return i(o,a(this),e,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}))},"746f":function(e,t,n){var r=n("428f"),i=n("1a2d"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},"74e8":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("83ab"),s=n("8aa7"),l=n("ebb5"),u=n("621a"),c=n("19aa"),h=n("5c6c"),d=n("9112"),f=n("eac5"),g=n("50c4"),p=n("0b25"),v=n("182d"),y=n("a04b"),m=n("1a2d"),b=n("f5df"),x=n("861d"),w=n("d9b5"),C=n("7c73"),k=n("3a9b"),E=n("d2bb"),S=n("241c").f,A=n("a078"),O=n("b727").forEach,M=n("2626"),P=n("9bf2"),T=n("06cf"),D=n("69f3"),N=n("7156"),j=D.get,L=D.set,F=P.f,R=T.f,B=Math.round,z=i.RangeError,I=u.ArrayBuffer,V=I.prototype,_=u.DataView,G=l.NATIVE_ARRAY_BUFFER_VIEWS,H=l.TYPED_ARRAY_CONSTRUCTOR,U=l.TYPED_ARRAY_TAG,q=l.TypedArray,$=l.TypedArrayPrototype,W=l.aTypedArrayConstructor,X=l.isTypedArray,Y="BYTES_PER_ELEMENT",J="Wrong length",Z=function(e,t){W(e);var n=0,r=t.length,i=new e(r);while(r>n)i[n]=t[n++];return i},K=function(e,t){F(e,t,{get:function(){return j(this)[t]}})},Q=function(e){var t;return k(V,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},ee=function(e,t){return X(e)&&!w(t)&&t in e&&f(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?h(2,e[t]):R(e,t)},ne=function(e,t,n){return t=y(t),!(ee(e,t)&&x(n)&&m(n,"value"))||m(n,"get")||m(n,"set")||n.configurable||m(n,"writable")&&!n.writable||m(n,"enumerable")&&!n.enumerable?F(e,t,n):(e[t]=n.value,e)};a?(G||(T.f=te,P.f=ne,K($,"buffer"),K($,"byteOffset"),K($,"byteLength"),K($,"length")),r({target:"Object",stat:!0,forced:!G},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,l=e+(n?"Clamped":"")+"Array",u="get"+e,h="set"+e,f=i[l],y=f,m=y&&y.prototype,b={},w=function(e,t){var n=j(e);return n.view[u](t*a+n.byteOffset,!0)},k=function(e,t,r){var i=j(e);n&&(r=(r=B(r))<0?0:r>255?255:255&r),i.view[h](t*a+i.byteOffset,r,!0)},P=function(e,t){F(e,t,{get:function(){return w(this,t)},set:function(e){return k(this,t,e)},enumerable:!0})};G?s&&(y=t((function(e,t,n,r){return c(e,m),N(function(){return x(t)?Q(t)?void 0!==r?new f(t,v(n,a),r):void 0!==n?new f(t,v(n,a)):new f(t):X(t)?Z(y,t):o(A,y,t):new f(p(t))}(),e,y)})),E&&E(y,q),O(S(f),(function(e){e in y||d(y,e,f[e])})),y.prototype=m):(y=t((function(e,t,n,r){c(e,m);var i,s,l,u=0,h=0;if(x(t)){if(!Q(t))return X(t)?Z(y,t):o(A,y,t);i=t,h=v(n,a);var d=t.byteLength;if(void 0===r){if(d%a)throw z(J);if(s=d-h,s<0)throw z(J)}else if(s=g(r)*a,s+h>d)throw z(J);l=s/a}else l=p(t),s=l*a,i=new I(s);L(e,{buffer:i,byteOffset:h,byteLength:s,length:l,view:new _(i)});while(u<l)P(e,u++)})),E&&E(y,q),m=y.prototype=C($)),m.constructor!==y&&d(m,"constructor",y),d(m,H,y),U&&d(m,U,l),b[l]=y,r({global:!0,forced:y!=f,sham:!G},b),Y in y||d(y,Y,a),Y in m||d(m,Y,a),M(l)}):e.exports=function(){}},"77a7":function(e,t,n){var r=n("da84"),i=r.Array,o=Math.abs,a=Math.pow,s=Math.floor,l=Math.log,u=Math.LN2,c=function(e,t,n){var r,c,h,d=i(n),f=8*n-t-1,g=(1<<f)-1,p=g>>1,v=23===t?a(2,-24)-a(2,-77):0,y=e<0||0===e&&1/e<0?1:0,m=0;e=o(e),e!=e||e===1/0?(c=e!=e?1:0,r=g):(r=s(l(e)/u),h=a(2,-r),e*h<1&&(r--,h*=2),e+=r+p>=1?v/h:v*a(2,1-p),e*h>=2&&(r++,h/=2),r+p>=g?(c=0,r=g):r+p>=1?(c=(e*h-1)*a(2,t),r+=p):(c=e*a(2,p-1)*a(2,t),r=0));while(t>=8)d[m++]=255&c,c/=256,t-=8;r=r<<t|c,f+=t;while(f>0)d[m++]=255&r,r/=256,f-=8;return d[--m]|=128*y,d},h=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,s=o>>1,l=i-7,u=r-1,c=e[u--],h=127&c;c>>=7;while(l>0)h=256*h+e[u--],l-=8;n=h&(1<<-l)-1,h>>=-l,l+=t;while(l>0)n=256*n+e[u--],l-=8;if(0===h)h=1-s;else{if(h===o)return n?NaN:c?-1/0:1/0;n+=a(2,t),h-=s}return(c?-1:1)*n*a(2,h-t)};e.exports={pack:c,unpack:h}},"7db0":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},"81d5":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa");e.exports=function(e){var t=r(this),n=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);while(u>s)t[s++]=e;return t}},"82f8":function(e,t,n){"use strict";var r=n("ebb5"),i=n("4d64").includes,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},8418:function(e,t,n){"use strict";var r=n("a04b"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"841c":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("1d80"),s=n("129f"),l=n("577e"),u=n("dc4a"),c=n("14c3");i("search",(function(e,t,n){return[function(t){var n=a(this),i=void 0==t?void 0:u(t,e);return i?r(i,t,n):new RegExp(t)[e](l(n))},function(e){var r=o(this),i=l(e),a=n(t,r,i);if(a.done)return a.value;var u=r.lastIndex;s(u,0)||(r.lastIndex=0);var h=c(r,i);return s(r.lastIndex,u)||(r.lastIndex=u),null===h?-1:h.index}]}))},"857a":function(e,t,n){var r=n("e330"),i=n("1d80"),o=n("577e"),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var l=o(i(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+s(o(r),a,"&quot;")+'"'),u+">"+l+"</"+t+">"}},8962:function(e,t,n){n("d3b7"),n("f8c9"),n("5d41"),n("e439");var r=n("9f70");function i(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=i=Reflect.get,e.exports["default"]=e.exports,e.exports.__esModule=!0):(e.exports=i=function(e,t,n){var i=r(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},e.exports["default"]=e.exports,e.exports.__esModule=!0),i.apply(this,arguments)}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8aa7":function(e,t,n){var r=n("da84"),i=n("d039"),o=n("1c7e"),a=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,l=r.Int8Array;e.exports=!a||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!o((function(e){new l,new l(null),new l(1.5),new l(e)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},"8ba4":function(e,t,n){var r=n("23e7"),i=n("eac5");r({target:"Number",stat:!0},{isInteger:i})},"907a":function(e,t,n){"use strict";var r=n("ebb5"),i=n("07fa"),o=n("5926"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(e){var t=a(this),n=i(t),r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},9129:function(e,t,n){var r=n("23e7");r({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},9263:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),a=n("ad6d"),s=n("9f7f"),l=n("5692"),u=n("7c73"),c=n("69f3").get,h=n("fce3"),d=n("107c"),f=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,p=g,v=i("".charAt),y=i("".indexOf),m=i("".replace),b=i("".slice),x=function(){var e=/a/,t=/b*/g;return r(g,e,"a"),r(g,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),w=s.BROKEN_CARET,C=void 0!==/()??/.exec("")[1],k=x||C||w||h||d;k&&(p=function(e){var t,n,i,s,l,h,d,k=this,E=c(k),S=o(e),A=E.raw;if(A)return A.lastIndex=k.lastIndex,t=r(p,A,S),k.lastIndex=A.lastIndex,t;var O=E.groups,M=w&&k.sticky,P=r(a,k),T=k.source,D=0,N=S;if(M&&(P=m(P,"y",""),-1===y(P,"g")&&(P+="g"),N=b(S,k.lastIndex),k.lastIndex>0&&(!k.multiline||k.multiline&&"\n"!==v(S,k.lastIndex-1))&&(T="(?: "+T+")",N=" "+N,D++),n=new RegExp("^(?:"+T+")",P)),C&&(n=new RegExp("^"+T+"$(?!\\s)",P)),x&&(i=k.lastIndex),s=r(g,M?n:k,N),M?s?(s.input=b(s.input,D),s[0]=b(s[0],D),s.index=k.lastIndex,k.lastIndex+=s[0].length):k.lastIndex=0:x&&s&&(k.lastIndex=k.global?s.index+s[0].length:i),C&&s&&s.length>1&&r(f,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&O)for(s.groups=h=u(null),l=0;l<O.length;l++)d=O[l],h[d[0]]=s[d[1]];return s}),e.exports=p},"944a":function(e,t,n){var r=n("746f");r("toStringTag")},9523:function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},"970b":function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},9861:function(e,t,n){"use strict";n("e260");var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("c65b"),s=n("e330"),l=n("0d3b"),u=n("6eeb"),c=n("e2cc"),h=n("d44e"),d=n("9ed3"),f=n("69f3"),g=n("19aa"),p=n("1626"),v=n("1a2d"),y=n("0366"),m=n("f5df"),b=n("825a"),x=n("861d"),w=n("577e"),C=n("7c73"),k=n("5c6c"),E=n("9a1f"),S=n("35a1"),A=n("b622"),O=n("addb"),M=A("iterator"),P="URLSearchParams",T=P+"Iterator",D=f.set,N=f.getterFor(P),j=f.getterFor(T),L=o("fetch"),F=o("Request"),R=o("Headers"),B=F&&F.prototype,z=R&&R.prototype,I=i.RegExp,V=i.TypeError,_=i.decodeURIComponent,G=i.encodeURIComponent,H=s("".charAt),U=s([].join),q=s([].push),$=s("".replace),W=s([].shift),X=s([].splice),Y=s("".split),J=s("".slice),Z=/\+/g,K=Array(4),Q=function(e){return K[e-1]||(K[e-1]=I("((?:%[\\da-f]{2}){"+e+"})","gi"))},ee=function(e){try{return _(e)}catch(t){return e}},te=function(e){var t=$(e,Z," "),n=4;try{return _(t)}catch(r){while(n)t=$(t,Q(n--),ee);return t}},ne=/[!'()~]|%20/g,re={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ie=function(e){return re[e]},oe=function(e){return $(G(e),ne,ie)},ae=function(e,t){if(e<t)throw V("Not enough arguments")},se=d((function(e,t){D(this,{type:T,iterator:E(N(e).entries),kind:t})}),"Iterator",(function(){var e=j(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),le=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===H(e,0)?J(e,1):e:w(e)))};le.prototype={type:P,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,s,l,u=S(e);if(u){t=E(e,u),n=t.next;while(!(r=a(n,t)).done){if(i=E(b(r.value)),o=i.next,(s=a(o,i)).done||(l=a(o,i)).done||!a(o,i).done)throw V("Expected sequence with length 2");q(this.entries,{key:w(s.value),value:w(l.value)})}}else for(var c in e)v(e,c)&&q(this.entries,{key:c,value:w(e[c])})},parseQuery:function(e){if(e){var t,n,r=Y(e,"&"),i=0;while(i<r.length)t=r[i++],t.length&&(n=Y(t,"="),q(this.entries,{key:te(W(n)),value:te(U(n,"="))}))}},serialize:function(){var e,t=this.entries,n=[],r=0;while(r<t.length)e=t[r++],q(n,oe(e.key)+"="+oe(e.value));return U(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ue=function(){g(this,ce);var e=arguments.length>0?arguments[0]:void 0;D(this,new le(e))},ce=ue.prototype;if(c(ce,{append:function(e,t){ae(arguments.length,2);var n=N(this);q(n.entries,{key:w(e),value:w(t)}),n.updateURL()},delete:function(e){ae(arguments.length,1);var t=N(this),n=t.entries,r=w(e),i=0;while(i<n.length)n[i].key===r?X(n,i,1):i++;t.updateURL()},get:function(e){ae(arguments.length,1);for(var t=N(this).entries,n=w(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){ae(arguments.length,1);for(var t=N(this).entries,n=w(e),r=[],i=0;i<t.length;i++)t[i].key===n&&q(r,t[i].value);return r},has:function(e){ae(arguments.length,1);var t=N(this).entries,n=w(e),r=0;while(r<t.length)if(t[r++].key===n)return!0;return!1},set:function(e,t){ae(arguments.length,1);for(var n,r=N(this),i=r.entries,o=!1,a=w(e),s=w(t),l=0;l<i.length;l++)n=i[l],n.key===a&&(o?X(i,l--,1):(o=!0,n.value=s));o||q(i,{key:a,value:s}),r.updateURL()},sort:function(){var e=N(this);O(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){var t,n=N(this).entries,r=y(e,arguments.length>1?arguments[1]:void 0),i=0;while(i<n.length)t=n[i++],r(t.value,t.key,this)},keys:function(){return new se(this,"keys")},values:function(){return new se(this,"values")},entries:function(){return new se(this,"entries")}},{enumerable:!0}),u(ce,M,ce.entries,{name:"entries"}),u(ce,"toString",(function(){return N(this).serialize()}),{enumerable:!0}),h(ue,P),r({global:!0,forced:!l},{URLSearchParams:ue}),!l&&p(R)){var he=s(z.has),de=s(z.set),fe=function(e){if(x(e)){var t,n=e.body;if(m(n)===P)return t=e.headers?new R(e.headers):new R,he(t,"content-type")||de(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),C(e,{body:k(0,w(n)),headers:k(0,t)})}return e};if(p(L)&&r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return L(e,arguments.length>1?fe(arguments[1]):{})}}),p(F)){var ge=function(e){return g(this,B),new F(e,arguments.length>1?fe(arguments[1]):{})};B.constructor=ge,ge.prototype=B,r({global:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:ue,getState:N}},"99af":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d039"),a=n("e8b5"),s=n("861d"),l=n("7b0b"),u=n("07fa"),c=n("8418"),h=n("65f0"),d=n("1dde"),f=n("b622"),g=n("2d00"),p=f("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",m=i.TypeError,b=g>=51||!o((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),x=d("concat"),w=function(e){if(!s(e))return!1;var t=e[p];return void 0!==t?!!t:a(e)},C=!b||!x;r({target:"Array",proto:!0,forced:C},{concat:function(e){var t,n,r,i,o,a=l(this),s=h(a,0),d=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],w(o)){if(i=u(o),d+i>v)throw m(y);for(n=0;n<i;n++,d++)n in o&&c(s,d,o[n])}else{if(d>=v)throw m(y);c(s,d++,o)}return s.length=d,s}})},"9a8c":function(e,t,n){"use strict";var r=n("e330"),i=n("ebb5"),o=n("145e"),a=r(o),s=i.aTypedArray,l=i.exportTypedArrayMethod;l("copyWithin",(function(e,t){return a(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9b42":function(e,t,n){function r(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),t&&o.length===t)break}catch(l){s=!0,i=l}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),e.exports=r,e.exports["default"]=e.exports,e.exports.__esModule=!0},"9bdd":function(e,t,n){var r=n("825a"),i=n("2a62");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){i(e,"throw",a)}}},"9f70":function(e,t,n){var r=n("36c6");function i(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=r(e),null===e)break;return e}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},"9f7f":function(e,t,n){var r=n("d039"),i=n("da84"),o=i.RegExp,a=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=a||r((function(){return!o("a","y").sticky})),l=a||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:a}},a078:function(e,t,n){var r=n("0366"),i=n("c65b"),o=n("5087"),a=n("7b0b"),s=n("07fa"),l=n("9a1f"),u=n("35a1"),c=n("e95a"),h=n("ebb5").aTypedArrayConstructor;e.exports=function(e){var t,n,d,f,g,p,v=o(this),y=a(e),m=arguments.length,b=m>1?arguments[1]:void 0,x=void 0!==b,w=u(y);if(w&&!c(w)){g=l(y,w),p=g.next,y=[];while(!(f=i(p,g)).done)y.push(f.value)}for(x&&m>2&&(b=r(b,arguments[2])),n=s(y),d=new(h(v))(n),t=0;n>t;t++)d[t]=x?b(y[t],t):y[t];return d}},a15b:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("44ad"),a=n("fc6a"),s=n("a640"),l=i([].join),u=o!=Object,c=s("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(e){return l(a(this),void 0===e?",":e)}})},a2bf:function(e,t,n){"use strict";var r=n("da84"),i=n("e8b5"),o=n("07fa"),a=n("0366"),s=r.TypeError,l=function(e,t,n,r,u,c,h,d){var f,g,p=u,v=0,y=!!h&&a(h,d);while(v<r){if(v in n){if(f=y?y(n[v],v,t):n[v],c>0&&i(f))g=o(f),p=l(e,t,f,g,p,c-1)-1;else{if(p>=9007199254740991)throw s("Exceed the acceptable array length");e[p]=f}p++}v++}return p};e.exports=l},a434:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("23cb"),a=n("5926"),s=n("07fa"),l=n("7b0b"),u=n("65f0"),c=n("8418"),h=n("1dde"),d=h("splice"),f=i.TypeError,g=Math.max,p=Math.min,v=9007199254740991,y="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,r,i,h,d,m,b=l(this),x=s(b),w=o(e,x),C=arguments.length;if(0===C?n=r=0:1===C?(n=0,r=x-w):(n=C-2,r=p(g(a(t),0),x-w)),x+n-r>v)throw f(y);for(i=u(b,r),h=0;h<r;h++)d=w+h,d in b&&c(i,h,b[d]);if(i.length=r,n<r){for(h=w;h<x-r;h++)d=h+r,m=h+n,d in b?b[m]=b[d]:delete b[m];for(h=x;h>x-r+n;h--)delete b[h-1]}else if(n>r)for(h=x-r;h>w;h--)d=h+r-1,m=h+n-1,d in b?b[m]=b[d]:delete b[m];for(h=0;h<n;h++)b[h+w]=arguments[h+2];return b.length=x-r+n,i}})},a4d3:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("2ba4"),s=n("c65b"),l=n("e330"),u=n("c430"),c=n("83ab"),h=n("4930"),d=n("d039"),f=n("1a2d"),g=n("e8b5"),p=n("1626"),v=n("861d"),y=n("3a9b"),m=n("d9b5"),b=n("825a"),x=n("7b0b"),w=n("fc6a"),C=n("a04b"),k=n("577e"),E=n("5c6c"),S=n("7c73"),A=n("df75"),O=n("241c"),M=n("057f"),P=n("7418"),T=n("06cf"),D=n("9bf2"),N=n("d1e7"),j=n("f36a"),L=n("6eeb"),F=n("5692"),R=n("f772"),B=n("d012"),z=n("90e3"),I=n("b622"),V=n("e538"),_=n("746f"),G=n("d44e"),H=n("69f3"),U=n("b727").forEach,q=R("hidden"),$="Symbol",W="prototype",X=I("toPrimitive"),Y=H.set,J=H.getterFor($),Z=Object[W],K=i.Symbol,Q=K&&K[W],ee=i.TypeError,te=i.QObject,ne=o("JSON","stringify"),re=T.f,ie=D.f,oe=M.f,ae=N.f,se=l([].push),le=F("symbols"),ue=F("op-symbols"),ce=F("string-to-symbol-registry"),he=F("symbol-to-string-registry"),de=F("wks"),fe=!te||!te[W]||!te[W].findChild,ge=c&&d((function(){return 7!=S(ie({},"a",{get:function(){return ie(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=re(Z,t);r&&delete Z[t],ie(e,t,n),r&&e!==Z&&ie(Z,t,r)}:ie,pe=function(e,t){var n=le[e]=S(Q);return Y(n,{type:$,tag:e,description:t}),c||(n.description=t),n},ve=function(e,t,n){e===Z&&ve(ue,t,n),b(e);var r=C(t);return b(n),f(le,r)?(n.enumerable?(f(e,q)&&e[q][r]&&(e[q][r]=!1),n=S(n,{enumerable:E(0,!1)})):(f(e,q)||ie(e,q,E(1,{})),e[q][r]=!0),ge(e,r,n)):ie(e,r,n)},ye=function(e,t){b(e);var n=w(t),r=A(n).concat(Ce(n));return U(r,(function(t){c&&!s(be,n,t)||ve(e,t,n[t])})),e},me=function(e,t){return void 0===t?S(e):ye(S(e),t)},be=function(e){var t=C(e),n=s(ae,this,t);return!(this===Z&&f(le,t)&&!f(ue,t))&&(!(n||!f(this,t)||!f(le,t)||f(this,q)&&this[q][t])||n)},xe=function(e,t){var n=w(e),r=C(t);if(n!==Z||!f(le,r)||f(ue,r)){var i=re(n,r);return!i||!f(le,r)||f(n,q)&&n[q][r]||(i.enumerable=!0),i}},we=function(e){var t=oe(w(e)),n=[];return U(t,(function(e){f(le,e)||f(B,e)||se(n,e)})),n},Ce=function(e){var t=e===Z,n=oe(t?ue:w(e)),r=[];return U(n,(function(e){!f(le,e)||t&&!f(Z,e)||se(r,le[e])})),r};if(h||(K=function(){if(y(Q,this))throw ee("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?k(arguments[0]):void 0,t=z(e),n=function(e){this===Z&&s(n,ue,e),f(this,q)&&f(this[q],t)&&(this[q][t]=!1),ge(this,t,E(1,e))};return c&&fe&&ge(Z,t,{configurable:!0,set:n}),pe(t,e)},Q=K[W],L(Q,"toString",(function(){return J(this).tag})),L(K,"withoutSetter",(function(e){return pe(z(e),e)})),N.f=be,D.f=ve,T.f=xe,O.f=M.f=we,P.f=Ce,V.f=function(e){return pe(I(e),e)},c&&(ie(Q,"description",{configurable:!0,get:function(){return J(this).description}}),u||L(Z,"propertyIsEnumerable",be,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:K}),U(A(de),(function(e){_(e)})),r({target:$,stat:!0,forced:!h},{for:function(e){var t=k(e);if(f(ce,t))return ce[t];var n=K(t);return ce[t]=n,he[n]=t,n},keyFor:function(e){if(!m(e))throw ee(e+" is not a symbol");if(f(he,e))return he[e]},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),r({target:"Object",stat:!0,forced:!h,sham:!c},{create:me,defineProperty:ve,defineProperties:ye,getOwnPropertyDescriptor:xe}),r({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:we,getOwnPropertySymbols:Ce}),r({target:"Object",stat:!0,forced:d((function(){P.f(1)}))},{getOwnPropertySymbols:function(e){return P.f(x(e))}}),ne){var ke=!h||d((function(){var e=K();return"[null]"!=ne([e])||"{}"!=ne({a:e})||"{}"!=ne(Object(e))}));r({target:"JSON",stat:!0,forced:ke},{stringify:function(e,t,n){var r=j(arguments),i=t;if((v(t)||void 0!==e)&&!m(e))return g(t)||(t=function(e,t){if(p(i)&&(t=s(i,this,e,t)),!m(t))return t}),r[1]=t,a(ne,null,r)}})}if(!Q[X]){var Ee=Q.valueOf;L(Q,X,(function(e){return s(Ee,this)}))}G(K,$),B[q]=!0},a630:function(e,t,n){var r=n("23e7"),i=n("4df4"),o=n("1c7e"),a=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:a},{from:i})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a6fd:function(e,t,n){var r=n("23e7"),i=n("2ba4"),o=n("59ed"),a=n("825a"),s=n("d039"),l=!s((function(){Reflect.apply((function(){}))}));r({target:"Reflect",stat:!0,forced:l},{apply:function(e,t,n){return i(o(e),t,a(n))}})},a975:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").every,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},a981:function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},a9e3:function(e,t,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("6eeb"),l=n("1a2d"),u=n("7156"),c=n("3a9b"),h=n("d9b5"),d=n("c04e"),f=n("d039"),g=n("241c").f,p=n("06cf").f,v=n("9bf2").f,y=n("408a"),m=n("58a8").trim,b="Number",x=i[b],w=x.prototype,C=i.TypeError,k=o("".slice),E=o("".charCodeAt),S=function(e){var t=d(e,"number");return"bigint"==typeof t?t:A(t)},A=function(e){var t,n,r,i,o,a,s,l,u=d(e,"number");if(h(u))throw C("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=m(u),t=E(u,0),43===t||45===t){if(n=E(u,2),88===n||120===n)return NaN}else if(48===t){switch(E(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=k(u,2),a=o.length,s=0;s<a;s++)if(l=E(o,s),l<48||l>i)return NaN;return parseInt(o,r)}return+u};if(a(b,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var O,M=function(e){var t=arguments.length<1?0:x(S(e)),n=this;return c(w,n)&&f((function(){y(n)}))?u(Object(t),n,M):t},P=r?g(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),T=0;P.length>T;T++)l(x,O=P[T])&&!l(M,O)&&v(M,O,p(x,O));M.prototype=w,w.constructor=M,s(i,b,M)}},ab13:function(e,t,n){var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},acac:function(e,t,n){"use strict";var r=n("e330"),i=n("e2cc"),o=n("f183").getWeakData,a=n("825a"),s=n("861d"),l=n("19aa"),u=n("2266"),c=n("b727"),h=n("1a2d"),d=n("69f3"),f=d.set,g=d.getterFor,p=c.find,v=c.findIndex,y=r([].splice),m=0,b=function(e){return e.frozen||(e.frozen=new x)},x=function(){this.entries=[]},w=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};x.prototype={get:function(e){var t=w(this,e);if(t)return t[1]},has:function(e){return!!w(this,e)},set:function(e,t){var n=w(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=v(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var c=e((function(e,i){l(e,d),f(e,{type:t,id:m++,frozen:void 0}),void 0!=i&&u(i,e[r],{that:e,AS_ENTRIES:n})})),d=c.prototype,p=g(t),v=function(e,t,n){var r=p(e),i=o(a(t),!0);return!0===i?b(r).set(t,n):i[r.id]=n,e};return i(d,{delete:function(e){var t=p(this);if(!s(e))return!1;var n=o(e);return!0===n?b(t)["delete"](e):n&&h(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!s(e))return!1;var n=o(e);return!0===n?b(t).has(e):n&&h(n,t.id)}}),i(d,n?{get:function(e){var t=p(this);if(s(e)){var n=o(e);return!0===n?b(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return v(this,e,t)}}:{add:function(e){return v(this,e,!0)}}),c}}},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},addb:function(e,t,n){var r=n("4dae"),i=Math.floor,o=function(e,t){var n=e.length,l=i(n/2);return n<8?a(e,t):s(e,o(r(e,0,l),t),o(r(e,l),t),t)},a=function(e,t){var n,r,i=e.length,o=1;while(o<i){r=o,n=e[o];while(r&&t(e[r-1],n)>0)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},s=function(e,t,n,r){var i=t.length,o=n.length,a=0,s=0;while(a<i||s<o)e[a+s]=a<i&&s<o?r(t[a],n[s])<=0?t[a++]:n[s++]:a<i?t[a++]:n[s++];return e};e.exports=o},af03:function(e,t,n){var r=n("d039");e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},aff5:function(e,t,n){var r=n("23e7");r({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},b0c0:function(e,t,n){var r=n("83ab"),i=n("5e77").EXISTS,o=n("e330"),a=n("9bf2").f,s=Function.prototype,l=o(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(u.exec),h="name";r&&!i&&a(s,h,{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(e){return""}}})},b39a:function(e,t,n){"use strict";var r=n("da84"),i=n("2ba4"),o=n("ebb5"),a=n("d039"),s=n("f36a"),l=r.Int8Array,u=o.aTypedArray,c=o.exportTypedArrayMethod,h=[].toLocaleString,d=!!l&&a((function(){h.call(new l(1))})),f=a((function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()}))||!a((function(){l.prototype.toLocaleString.call([1,2])}));c("toLocaleString",(function(){return i(h,d?s(u(this)):u(this),s(arguments))}),f)},b64b:function(e,t,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},b680:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e330"),a=n("5926"),s=n("408a"),l=n("1148"),u=n("d039"),c=i.RangeError,h=i.String,d=Math.floor,f=o(l),g=o("".slice),p=o(1..toFixed),v=function(e,t,n){return 0===t?n:t%2===1?v(e,t-1,n*e):v(e*e,t/2,n)},y=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},m=function(e,t,n){var r=-1,i=n;while(++r<6)i+=t*e[r],e[r]=i%1e7,i=d(i/1e7)},b=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=d(r/t),r=r%t*1e7},x=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=h(e[t]);n=""===n?r:n+f("0",7-r.length)+r}return n},w=u((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!u((function(){p({})}));r({target:"Number",proto:!0,forced:w},{toFixed:function(e){var t,n,r,i,o=s(this),l=a(e),u=[0,0,0,0,0,0],d="",p="0";if(l<0||l>20)throw c("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return h(o);if(o<0&&(d="-",o=-o),o>1e-21)if(t=y(o*v(2,69,1))-69,n=t<0?o*v(2,-t,1):o/v(2,t,1),n*=4503599627370496,t=52-t,t>0){m(u,0,n),r=l;while(r>=7)m(u,1e7,0),r-=7;m(u,v(10,r,1),0),r=t-1;while(r>=23)b(u,1<<23),r-=23;b(u,1<<r),m(u,1,1),b(u,2),p=x(u)}else m(u,0,n),m(u,1<<-t,0),p=x(u)+f("0",l);return l>0?(i=p.length,p=d+(i<=l?"0."+f("0",l-i)+p:g(p,0,i-l)+"."+g(p,i-l))):p=d+p,p}})},b6b7:function(e,t,n){var r=n("ebb5"),i=n("4840"),o=r.TYPED_ARRAY_CONSTRUCTOR,a=r.aTypedArrayConstructor;e.exports=function(e){return a(i(e,e[o]))}},b727:function(e,t,n){var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),l=n("65f0"),u=i([].push),c=function(e){var t=1==e,n=2==e,i=3==e,c=4==e,h=6==e,d=7==e,f=5==e||h;return function(g,p,v,y){for(var m,b,x=a(g),w=o(x),C=r(p,v),k=s(w),E=0,S=y||l,A=t?S(g,k):n||d?S(g,0):void 0;k>E;E++)if((f||E in w)&&(m=w[E],b=C(m,E,x),e))if(t)A[E]=b;else if(b)switch(e){case 3:return!0;case 5:return m;case 6:return E;case 2:u(A,m)}else switch(e){case 4:return!1;case 7:u(A,m)}return h?-1:i||c?c:A}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bf19:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},c135:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},c19f:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("621a"),a=n("2626"),s="ArrayBuffer",l=o[s],u=i[s];r({global:!0,forced:u!==l},{ArrayBuffer:l}),a(s)},c1ac:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").filter,o=n("1448"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("filter",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},c240:function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0},c607:function(e,t,n){var r=n("da84"),i=n("83ab"),o=n("fce3"),a=n("c6b6"),s=n("9bf2").f,l=n("69f3").get,u=RegExp.prototype,c=r.TypeError;i&&o&&s(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!l(this).dotAll;throw c("Incompatible receiver, RegExp required")}}})},c60d:function(e,t,n){var r=n("1a2d");e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},c740:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,o=n("44d2"),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},c8d2:function(e,t,n){var r=n("5e77").PROPER,i=n("d039"),o=n("5899"),a="​…᠎";e.exports=function(e){return i((function(){return!!o[e]()||a[e]()!==a||r&&o[e].name!==e}))}},ca91:function(e,t,n){"use strict";var r=n("ebb5"),i=n("d58f").left,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("44d2");r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cb29:function(e,t,n){var r=n("23e7"),i=n("81d5"),o=n("44d2");r({target:"Array",proto:!0},{fill:i}),o("fill")},cd26:function(e,t,n){"use strict";var r=n("ebb5"),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){var e,t=this,n=i(t).length,r=a(n/2),o=0;while(o<r)e=t[o],t[o++]=t[--n],t[n]=e;return t}))},d139:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").find,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},d28b:function(e,t,n){var r=n("746f");r("iterator")},d58f:function(e,t,n){var r=n("da84"),i=n("59ed"),o=n("7b0b"),a=n("44ad"),s=n("07fa"),l=r.TypeError,u=function(e){return function(t,n,r,u){i(n);var c=o(t),h=a(c),d=s(c),f=e?d-1:0,g=e?-1:1;if(r<2)while(1){if(f in h){u=h[f],f+=g;break}if(f+=g,e?f<0:d<=f)throw l("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=g)f in h&&(u=n(u,h[f],f,c));return u}};e.exports={left:u(!1),right:u(!0)}},d5d6:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").forEach,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},d784:function(e,t,n){"use strict";n("ac1f");var r=n("e330"),i=n("6eeb"),o=n("9263"),a=n("d039"),s=n("b622"),l=n("9112"),u=s("species"),c=RegExp.prototype;e.exports=function(e,t,n,h){var d=s(e),f=!a((function(){var t={};return t[d]=function(){return 7},7!=""[e](t)})),g=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!f||!g||n){var p=r(/./[d]),v=t(d,""[e],(function(e,t,n,i,a){var s=r(e),l=t.exec;return l===o||l===c.exec?f&&!a?{done:!0,value:p(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));i(String.prototype,e,v[0]),i(c,d,v[1])}h&&l(c[d],"sham",!0)}},d81d:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").map,o=n("1dde"),a=o("map");r({target:"Array",proto:!0,forced:!a},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},d86b:function(e,t,n){var r=n("d039");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d998:function(e,t,n){var r=n("342f");e.exports=/MSIE|Trident/.test(r)},dbb4:function(e,t,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,u=o(r),c={},h=0;while(u.length>h)n=i(r,t=u[h++]),void 0!==n&&l(c,t,n);return c}})},dca8:function(e,t,n){var r=n("23e7"),i=n("bb2f"),o=n("d039"),a=n("861d"),s=n("f183").onFreeze,l=Object.freeze,u=o((function(){l(1)}));r({target:"Object",stat:!0,forced:u,sham:!i},{freeze:function(e){return l&&a(e)?l(s(e)):e}})},dfb9:function(e,t){e.exports=function(e,t){var n=0,r=t.length,i=new e(r);while(r>n)i[n]=t[n++];return i}},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("e330"),s=n("1a2d"),l=n("1626"),u=n("3a9b"),c=n("577e"),h=n("9bf2").f,d=n("e893"),f=o.Symbol,g=f&&f.prototype;if(i&&l(f)&&(!("description"in g)||void 0!==f().description)){var p={},v=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(g,this)?new f(e):void 0===e?f():f(e);return""===e&&(p[t]=!0),t};d(v,f),v.prototype=g,g.constructor=v;var y="Symbol(test)"==String(f("test")),m=a(g.toString),b=a(g.valueOf),x=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),C=a("".slice);h(g,"description",{configurable:!0,get:function(){var e=b(this),t=m(e);if(s(p,e))return"";var n=y?C(t,7,-1):w(t,x,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:v})}},e285:function(e,t,n){var r=n("da84"),i=r.isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&i(e)}},e439:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),l=i((function(){a(1)})),u=!s||l;r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},e538:function(e,t,n){var r=n("b622");t.f=r},e58c:function(e,t,n){"use strict";var r=n("2ba4"),i=n("fc6a"),o=n("5926"),a=n("07fa"),s=n("a640"),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,h=s("lastIndexOf"),d=c||!h;e.exports=d?function(e){if(c)return r(u,this,arguments)||0;var t=i(this),n=a(t),s=n-1;for(arguments.length>1&&(s=l(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},e6e1:function(e,t,n){var r=n("23e7");r({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e91f:function(e,t,n){"use strict";var r=n("ebb5"),i=n("4d64").indexOf,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},e9c4:function(e,t,n){var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("2ba4"),s=n("e330"),l=n("d039"),u=i.Array,c=o("JSON","stringify"),h=s(/./.exec),d=s("".charAt),f=s("".charCodeAt),g=s("".replace),p=s(1..toString),v=/[\uD800-\uDFFF]/g,y=/^[\uD800-\uDBFF]$/,m=/^[\uDC00-\uDFFF]$/,b=function(e,t,n){var r=d(n,t-1),i=d(n,t+1);return h(y,e)&&!h(m,i)||h(m,e)&&!h(y,r)?"\\u"+p(f(e,0),16):e},x=l((function(){return'"\\udf06\\ud834"'!==c("\udf06\ud834")||'"\\udead"'!==c("\udead")}));c&&r({target:"JSON",stat:!0,forced:x},{stringify:function(e,t,n){for(var r=0,i=arguments.length,o=u(i);r<i;r++)o[r]=arguments[r];var s=a(c,null,o);return"string"==typeof s?g(s,v,b):s}})},ea98:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("1d80"),a=n("5926"),s=n("577e"),l=n("d039"),u=i("".charAt),c=l((function(){return"\ud842"!=="𠮷".at(0)}));r({target:"String",proto:!0,forced:c},{at:function(e){var t=s(o(this)),n=t.length,r=a(e),i=r>=0?r:n+r;return i<0||i>=n?void 0:u(t,i)}})},eac5:function(e,t,n){var r=n("861d"),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},ebb5:function(e,t,n){"use strict";var r,i,o,a=n("a981"),s=n("83ab"),l=n("da84"),u=n("1626"),c=n("861d"),h=n("1a2d"),d=n("f5df"),f=n("0d51"),g=n("9112"),p=n("6eeb"),v=n("9bf2").f,y=n("3a9b"),m=n("e163"),b=n("d2bb"),x=n("b622"),w=n("90e3"),C=l.Int8Array,k=C&&C.prototype,E=l.Uint8ClampedArray,S=E&&E.prototype,A=C&&m(C),O=k&&m(k),M=Object.prototype,P=l.TypeError,T=x("toStringTag"),D=w("TYPED_ARRAY_TAG"),N=w("TYPED_ARRAY_CONSTRUCTOR"),j=a&&!!b&&"Opera"!==d(l.opera),L=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},R={BigInt64Array:8,BigUint64Array:8},B=function(e){if(!c(e))return!1;var t=d(e);return"DataView"===t||h(F,t)||h(R,t)},z=function(e){if(!c(e))return!1;var t=d(e);return h(F,t)||h(R,t)},I=function(e){if(z(e))return e;throw P("Target is not a typed array")},V=function(e){if(u(e)&&(!b||y(A,e)))return e;throw P(f(e)+" is not a typed array constructor")},_=function(e,t,n){if(s){if(n)for(var r in F){var i=l[r];if(i&&h(i.prototype,e))try{delete i.prototype[e]}catch(o){}}O[e]&&!n||p(O,e,n?t:j&&k[e]||t)}},G=function(e,t,n){var r,i;if(s){if(b){if(n)for(r in F)if(i=l[r],i&&h(i,e))try{delete i[e]}catch(o){}if(A[e]&&!n)return;try{return p(A,e,n?t:j&&A[e]||t)}catch(o){}}for(r in F)i=l[r],!i||i[e]&&!n||p(i,e,t)}};for(r in F)i=l[r],o=i&&i.prototype,o?g(o,N,i):j=!1;for(r in R)i=l[r],o=i&&i.prototype,o&&g(o,N,i);if((!j||!u(A)||A===Function.prototype)&&(A=function(){throw P("Incorrect invocation")},j))for(r in F)l[r]&&b(l[r],A);if((!j||!O||O===M)&&(O=A.prototype,j))for(r in F)l[r]&&b(l[r].prototype,O);if(j&&m(S)!==O&&b(S,O),s&&!h(O,T))for(r in L=!0,v(O,T,{get:function(){return c(this)?this[D]:void 0}}),F)l[r]&&g(l[r],D,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_CONSTRUCTOR:N,TYPED_ARRAY_TAG:L&&D,aTypedArray:I,aTypedArrayConstructor:V,exportTypedArrayMethod:_,exportTypedArrayStaticMethod:G,isView:B,isTypedArray:z,TypedArray:A,TypedArrayPrototype:O}},ed6d:function(e,t,n){var r=n("4a4b");function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}e.exports=i,e.exports["default"]=e.exports,e.exports.__esModule=!0},f00c:function(e,t,n){var r=n("23e7"),i=n("e285");r({target:"Number",stat:!0},{isFinite:i})},f183:function(e,t,n){var r=n("23e7"),i=n("e330"),o=n("d012"),a=n("861d"),s=n("1a2d"),l=n("9bf2").f,u=n("241c"),c=n("057f"),h=n("4fad"),d=n("90e3"),f=n("bb2f"),g=!1,p=d("meta"),v=0,y=function(e){l(e,p,{value:{objectID:"O"+v++,weakData:{}}})},m=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,p)){if(!h(e))return"F";if(!t)return"E";y(e)}return e[p].objectID},b=function(e,t){if(!s(e,p)){if(!h(e))return!0;if(!t)return!1;y(e)}return e[p].weakData},x=function(e){return f&&g&&h(e)&&!s(e,p)&&y(e),e},w=function(){C.enable=function(){},g=!0;var e=u.f,t=i([].splice),n={};n[p]=1,e(n).length&&(u.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===p){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},C=e.exports={enable:w,fastKey:m,getWeakData:b,onFreeze:x};o[p]=!0},f8c9:function(e,t,n){var r=n("23e7"),i=n("da84"),o=n("d44e");r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},f8cd:function(e,t,n){var r=n("da84"),i=n("5926"),o=r.RangeError;e.exports=function(e){var t=i(e);if(t<0)throw o("The argument can't be less than 0");return t}},fb6a:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e8b5"),a=n("68ee"),s=n("861d"),l=n("23cb"),u=n("07fa"),c=n("fc6a"),h=n("8418"),d=n("b622"),f=n("1dde"),g=n("f36a"),p=f("slice"),v=d("species"),y=i.Array,m=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,i,d=c(this),f=u(d),p=l(e,f),b=l(void 0===t?f:t,f);if(o(d)&&(n=d.constructor,a(n)&&(n===y||o(n.prototype))?n=void 0:s(n)&&(n=n[v],null===n&&(n=void 0)),n===y||void 0===n))return g(d,p,b);for(r=new(void 0===n?y:n)(m(b-p,0)),i=0;p<b;p++,i++)p in d&&h(r,i,d[p]);return r.length=i,r}})},fce3:function(e,t,n){var r=n("d039"),i=n("da84"),o=i.RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))}}]);