chunk-0a51725d.d83f22ba.js 36 KB

12345678910111213141516
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a51725d","chunk-2e69b30c","chunk-51642018","chunk-51642018"],{"01f9":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r("bd8b");e.default=function(t){return Array.isArray?Array.isArray(t):n.default(t,"Array")}},"0538":function(t,e,r){"use strict";var n=r("1c0b"),o=r("861d"),i=[].slice,a={},c=function(t,e,r){if(!(e in a)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=i.call(arguments,1),a=function(){var n=r.concat(i.call(arguments));return this instanceof a?c(e,n.length,n):e.apply(t,n)};return o(e.prototype)&&(a.prototype=e.prototype),a}},"067f":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={version:"3.5.2",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",customGroupContainerClassName:"custom-group-container",delegateContainerClassName:"delegate-container",defaultShapeFillColor:"#C6E5FF",defaultShapeStrokeColor:"#5B8FF9",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#595959",textAlign:"center",textBaseline:"middle"},offset:5},defaultNode:{type:"circle",style:{fill:"#C6E5FF",lineWidth:1,stroke:"#5B8FF9"},size:20,color:"#5B8FF9"},edgeLabel:{style:{fill:"#595959",textAlign:"center",textBaseline:"middle"}},defaultEdge:{type:"line",style:{stroke:"#e2e2e2"},size:1,color:"#e2e2e2"},comboLabel:{style:{fill:"#595959",textBaseline:"middle"},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:"#F3F9FF",lineWidth:1,stroke:"#A3B1BF",opacity:.8,r:5,width:20,height:10},size:[20,5],color:"#A3B1BF",padding:[25,20,15,20]},nodeStateStyle:{},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]}};e.default=n},"0dfa":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDegree=e.rotate=e.scale=e.move=e.translate=e.getAdjMatrix=e.floydWarshall=e.scaleMatrix=e.distance=e.getCircleCenterByPoints=e.invertMatrix=e.applyMatrix=e.getEllipseIntersectByPoint=e.getCircleIntersectByPoint=e.getRectIntersectByPoint=void 0;var n=r("e897"),o=i(r("01f9"));function i(t){return t&&t.__esModule?t:{default:t}}var a=function(t,e,r){return t>=e&&t<=r},c=function(t,e,r,n){var o=.001,i={x:r.x-t.x,y:r.y-t.y},c={x:e.x-t.x,y:e.y-t.y},u={x:n.x-r.x,y:n.y-r.y},s=c.x*u.y-c.y*u.x,f=s*s,l=c.x*c.x+c.y*c.y,p=u.x*u.x+u.y*u.y,d=null;if(f>o*l*p){var h=(i.x*u.y-i.y*u.x)/s,y=(i.x*c.y-i.y*c.x)/s;a(h,0,1)&&a(y,0,1)&&(d={x:t.x+h*c.x,y:t.y+h*c.y})}return d},u=function(t,e){var r=t.x,n=t.y,o=t.width,i=t.height,a=r+o/2,u=n+i/2,s=[],f={x:a,y:u};s.push({x:r,y:n}),s.push({x:r+o,y:n}),s.push({x:r+o,y:n+i}),s.push({x:r,y:n+i}),s.push({x:r,y:n});for(var l=null,p=1;p<s.length;p++)if(l=c(s[p-1],s[p],f,e),l)break;return l};e.getRectIntersectByPoint=u;var s=function(t,e){var r=t.x,n=t.y,o=t.r,i=e.x,a=e.y,c=i-r,u=a-n,s=Math.sqrt(c*c+u*u);if(s<o)return null;var f=Math.sign(c),l=Math.sign(u),p=Math.atan(u/c);return{x:r+Math.abs(o*Math.cos(p))*f,y:n+Math.abs(o*Math.sin(p))*l}};e.getCircleIntersectByPoint=s;var f=function(t,e){var r=t.rx,n=t.ry,o=t.x,i=t.y,a=e.x-o,c=e.y-i,u=Math.atan2(c/n,a/r);return u<0&&(u+=2*Math.PI),{x:o+r*Math.cos(u),y:i+n*Math.sin(u)}};e.getEllipseIntersectByPoint=f;var l=function(t,e,r){void 0===r&&(r=1);var o=[t.x,t.y,r];return e&&NaN!==e[0]||(e=n.mat3.create()),n.vec3.transformMat3(o,o,e),{x:o[0],y:o[1]}};e.applyMatrix=l;var p=function(t,e,r){void 0===r&&(r=1),e&&NaN!==e[0]||(e=n.mat3.create());var o=n.mat3.invert([],e);o||(o=n.mat3.create());var i=[t.x,t.y,r];return n.vec3.transformMat3(i,i,o),{x:i[0],y:i[1]}};e.invertMatrix=p;var d=function(t,e,r){var n=t.x-e.x,o=t.y-e.y,i=t.x-r.x,a=t.y-r.y,c=(t.x*t.x-e.x*e.x-e.y*e.y+t.y*t.y)/2,u=(t.x*t.x-r.x*r.x-r.y*r.y+t.y*t.y)/2,s=o*i-n*a;return{x:-(a*c-o*u)/s,y:-(n*u-i*c)/s}};e.getCircleCenterByPoints=d;var h=function(t,e){var r=t.x-e.x,n=t.y-e.y;return Math.sqrt(r*r+n*n)};e.distance=h;var y=function(t,e){var r=[];return t.forEach((function(t){var n=[];t.forEach((function(t){n.push(t*e)})),r.push(n)})),r};e.scaleMatrix=y;var v=function(t){for(var e=[],r=t.length,n=0;n<r;n+=1){e[n]=[];for(var o=0;o<r;o+=1)n===o?e[n][o]=0:0!==t[n][o]&&t[n][o]?e[n][o]=t[n][o]:e[n][o]=1/0}for(var i=0;i<r;i+=1)for(n=0;n<r;n+=1)for(o=0;o<r;o+=1)e[n][o]>e[n][i]+e[i][o]&&(e[n][o]=e[n][i]+e[i][o]);return e};e.floydWarshall=v;var g=function(t,e){var r=t.nodes,n=t.edges,o=[],i={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach((function(t,e){i[t.id]=e;var r=[];o.push(r)})),n&&n.forEach((function(t){var r=t.source,n=t.target,a=i[r],c=i[n];o[a][c]=1,e||(o[c][a]=1)})),o};e.getAdjMatrix=g;var x=function(t,e){t.translate(e.x,e.y)};e.translate=x;var b=function(t,e){var r=t.getMatrix();r||(r=n.mat3.create());var o=t.getCanvasBBox(),i=e.x-o.minX,a=e.y-o.minY,c=(0,n.transform)(r,[["t",i,a]]);t.setMatrix(c)};e.move=b;var m=function(t,e){var r=t.getMatrix();r||(r=n.mat3.create());var i=e;(0,o.default)(e)||(i=[e,e]),(0,o.default)(e)&&1===e.length&&(i=[e[0],e[0]]),r=(0,n.transform)(r,[["s",i[0],i[1]]]),t.setMatrix(r)};e.scale=m;var S=function(t,e){var r=t.getMatrix();r||(r=n.mat3.create()),r=(0,n.transform)(r,[["r",e]]),t.setMatrix(r)};e.rotate=S;var w=function(t,e,r){for(var n=[],o=0;o<t;o++)n[o]=0;return r.forEach((function(t){t.source&&(n[e[t.source]]+=1),t.target&&(n[e[t.target]]+=1)})),n};e.getDegree=w},"131a":function(t,e,r){var n=r("23e7"),o=r("d2bb");n({target:"Object",stat:!0},{setPrototypeOf:o})},"262e":function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));r("131a");function n(t,e){return n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(t,e)}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}},"2caf":function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));r("4ae1"),r("3410"),r("131a");function n(t){return n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}r("d3b7"),r("25f0");function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}r("a4d3"),r("e01a"),r("d28b"),r("3ca3"),r("ddb0");function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){return!e||"object"!==i(e)&&"function"!==typeof e?a(t):e}function u(t){var e=o();return function(){var r,o=n(t);if(e){var i=n(this).constructor;r=Reflect.construct(o,arguments,i)}else r=o.apply(this,arguments);return c(this,r)}}},3410:function(t,e,r){var n=r("23e7"),o=r("d039"),i=r("7b0b"),a=r("e163"),c=r("e177"),u=o((function(){a(1)}));n({target:"Object",stat:!0,forced:u,sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},"3bbe":function(t,e,r){var n=r("861d");t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,r){"use strict";var n=r("6547").charAt,o=r("69f3"),i=r("7dd0"),a="String Iterator",c=o.set,u=o.getterFor(a);i(String,"String",(function(t){c(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},"44d2":function(t,e,r){var n=r("b622"),o=r("7c73"),i=r("9bf2"),a=n("unscopables"),c=Array.prototype;void 0==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},"4ae1":function(t,e,r){var n=r("23e7"),o=r("d066"),i=r("1c0b"),a=r("825a"),c=r("861d"),u=r("7c73"),s=r("0538"),f=r("d039"),l=o("Reflect","construct"),p=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),d=!f((function(){l((function(){}))})),h=p||d;n({target:"Reflect",stat:!0,forced:h,sham:h},{construct:function(t,e){i(t),a(e);var r=arguments.length<3?t:i(arguments[2]);if(d&&!p)return l(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(s.apply(t,n))}var o=r.prototype,f=u(c(o)?o:Object.prototype),h=Function.apply.call(t,f,e);return c(h)?h:f}})},7680:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={" ":.3329986572265625,a:.5589996337890625,A:.6569992065429687,b:.58599853515625,B:.6769989013671875,c:.5469985961914062,C:.7279998779296875,d:.58599853515625,D:.705999755859375,e:.554998779296875,E:.63699951171875,f:.37299957275390627,F:.5769989013671875,g:.5909988403320312,G:.7479995727539063,h:.555999755859375,H:.7199996948242188,i:.255999755859375,I:.23699951171875,j:.26699981689453123,J:.5169998168945312,k:.5289993286132812,K:.6899993896484375,l:.23499908447265624,L:.5879989624023437,m:.854998779296875,M:.8819992065429687,n:.5589996337890625,N:.7189987182617188,o:.58599853515625,O:.7669998168945312,p:.58599853515625,P:.6419998168945312,q:.58599853515625,Q:.7669998168945312,r:.3649993896484375,R:.6759994506835938,s:.504998779296875,S:.6319992065429687,t:.354998779296875,T:.6189987182617187,u:.5599990844726562,U:.7139999389648437,v:.48199920654296874,V:.6389999389648438,w:.754998779296875,W:.929998779296875,x:.5089996337890625,X:.63699951171875,y:.4959991455078125,Y:.66199951171875,z:.48699951171875,Z:.6239990234375,0:.6,1:.40099945068359377,2:.6,3:.6,4:.6,5:.6,6:.6,7:.5469985961914062,8:.6,9:.6,"[":.3329986572265625,"]":.3329986572265625,",":.26399993896484375,".":.26399993896484375,";":.26399993896484375,":":.26399993896484375,"{":.3329986572265625,"}":.3329986572265625,"\\":.5,"|":.19499969482421875,"=":.604998779296875,"+":.604998779296875,"-":.604998779296875,_:.5,"`":.3329986572265625," ~":.8329986572265625,"!":.3329986572265625,"@":.8579986572265625,"#":.6,$:.6,"%":.9699996948242188,"^":.517999267578125,"&":.7259994506835937,"*":.505999755859375,"(":.3329986572265625,")":.3329986572265625,"<":.604998779296875,">":.604998779296875,"/":.5,"?":.53699951171875};e.default=n},"7da3":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("8937"),o={};function i(t){return o[t]||(o[t]=(0,n.upperFirst)(t)),o[t]}var a={defaultShapeType:"defaultType",className:null,getShape:function(t){var e=this,r=e[t]||e[e.defaultShapeType];return r},draw:function(t,e,r){var n=this.getShape(t),o=n.draw(e,r);return n.afterDraw&&n.afterDraw(e,r,o),o},baseUpdate:function(t,e,r){var n=this.getShape(t);n.update&&n.update(e,r),n.afterUpdate&&n.afterUpdate(e,r)},setState:function(t,e,r,n){var o=this.getShape(t);o.setState(e,r,n)},shouldUpdate:function(t){var e=this.getShape(t);return!!e.update},getControlPoints:function(t,e){var r=this.getShape(t);return r.getControlPoints(e)},getAnchorPoints:function(t,e){var r=this.getShape(t);return r.getAnchorPoints(e)}},c={options:{},draw:function(t,e){return this.drawShape(t,e)},drawShape:function(){},afterDraw:function(){},afterUpdate:function(){},setState:function(){},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e=this.options.anchorPoints,r=t.anchorPoints||e;return r}},u=function(){function t(){}return t.registerFactory=function(e,r){var n=i(e),o=a,c=Object.assign({},o,r);return t[n]=c,c.className=n,c},t.getFactory=function(e){var r=i(e);return t[r]},t.registerNode=function(e,r,n){var o=t.Node,i=n?o.getShape(n):c,a=Object.assign({},i,r);return a.type=e,a.itemType="node",o[e]=a,a},t.registerEdge=function(e,r,n){var o=t.Edge,i=n?o.getShape(n):c,a=Object.assign({},i,r);return a.type=e,a.itemType="edge",o[e]=a,a},t.registerCombo=function(e,r,n){var o=t.Combo,i=n?o.getShape(n):c,a=Object.assign({},i,r);return a.type=e,a.itemType="combo",o[e]=a,a},t}(),s=u;e.default=s,u.registerFactory("node",{defaultShapeType:"circle"}),u.registerFactory("edge",{defaultShapeType:"line"}),u.registerFactory("combo",{defaultShapeType:"circle"})},"7dd0":function(t,e,r){"use strict";var n=r("23e7"),o=r("9ed3"),i=r("e163"),a=r("d2bb"),c=r("d44e"),u=r("9112"),s=r("6eeb"),f=r("b622"),l=r("c430"),p=r("3f8c"),d=r("ae93"),h=d.IteratorPrototype,y=d.BUGGY_SAFARI_ITERATORS,v=f("iterator"),g="keys",x="values",b="entries",m=function(){return this};t.exports=function(t,e,r,f,d,S,w){o(r,e,f);var _,O,P,C=function(t){if(t===d&&T)return T;if(!y&&t in M)return M[t];switch(t){case g:return function(){return new r(this,t)};case x:return function(){return new r(this,t)};case b:return function(){return new r(this,t)}}return function(){return new r(this)}},B=e+" Iterator",I=!1,M=t.prototype,j=M[v]||M["@@iterator"]||d&&M[d],T=!y&&j||C(d),k="Array"==e&&M.entries||j;if(k&&(_=i(k.call(new t)),h!==Object.prototype&&_.next&&(l||i(_)===h||(a?a(_,h):"function"!=typeof _[v]&&u(_,v,m)),c(_,B,!0,!0),l&&(p[B]=m))),d==x&&j&&j.name!==x&&(I=!0,T=function(){return j.call(this)}),l&&!w||M[v]===T||u(M,v,T),p[e]=T,d)if(O={values:C(x),keys:S?T:C(g),entries:C(b)},w)for(P in O)(y||I||!(P in M))&&s(M,P,O[P]);else n({target:e,proto:!0,forced:y||I},O);return O}},"9ab4":function(t,e,r){"use strict";r.r(e),r.d(e,"__extends",(function(){return o})),r.d(e,"__assign",(function(){return i})),r.d(e,"__rest",(function(){return a})),r.d(e,"__decorate",(function(){return c})),r.d(e,"__param",(function(){return u})),r.d(e,"__metadata",(function(){return s})),r.d(e,"__awaiter",(function(){return f})),r.d(e,"__generator",(function(){return l})),r.d(e,"__exportStar",(function(){return p})),r.d(e,"__values",(function(){return d})),r.d(e,"__read",(function(){return h})),r.d(e,"__spread",(function(){return y})),r.d(e,"__spreadArrays",(function(){return v})),r.d(e,"__await",(function(){return g})),r.d(e,"__asyncGenerator",(function(){return x})),r.d(e,"__asyncDelegator",(function(){return b})),r.d(e,"__asyncValues",(function(){return m})),r.d(e,"__makeTemplateObject",(function(){return S})),r.d(e,"__importStar",(function(){return w})),r.d(e,"__importDefault",(function(){return _}));
  2. /*! *****************************************************************************
  3. Copyright (c) Microsoft Corporation. All rights reserved.
  4. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  5. this file except in compliance with the License. You may obtain a copy of the
  6. License at http://www.apache.org/licenses/LICENSE-2.0
  7. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  8. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  9. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  10. MERCHANTABLITY OR NON-INFRINGEMENT.
  11. See the Apache Version 2.0 License for specific language governing permissions
  12. and limitations under the License.
  13. ***************************************************************************** */
  14. var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)};function o(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var i=function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r],e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};function a(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}function c(t,e,r,n){var o,i=arguments.length,a=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a}function u(t,e){return function(r,n){e(r,n,t)}}function s(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function f(t,e,r,n){return new(r||(r=Promise))((function(o,i){function a(t){try{u(n.next(t))}catch(e){i(e)}}function c(t){try{u(n["throw"](t))}catch(e){i(e)}}function u(t){t.done?o(t.value):new r((function(e){e(t.value)})).then(a,c)}u((n=n.apply(t,e||[])).next())}))}function l(t,e){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(t){return function(e){return u([t,e])}}function u(i){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,n&&(o=2&i[0]?n["return"]:i[0]?n["throw"]||((o=n["return"])&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(t,a)}catch(c){i=[6,c],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}}function p(t,e){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}function d(t){var e="function"===typeof Symbol&&t[Symbol.iterator],r=0;return e?e.call(t):{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}function h(t,e){var r="function"===typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{while((void 0===e||e-- >0)&&!(n=i.next()).done)a.push(n.value)}catch(c){o={error:c}}finally{try{n&&!n.done&&(r=i["return"])&&r.call(i)}finally{if(o)throw o.error}}return a}function y(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t}function v(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<r;e++)for(var i=arguments[e],a=0,c=i.length;a<c;a++,o++)n[o]=i[a];return n}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function x(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(t,e||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(t){o[t]&&(n[t]=function(e){return new Promise((function(r,n){i.push([t,e,r,n])>1||c(t,e)}))})}function c(t,e){try{u(o[t](e))}catch(r){l(i[0][3],r)}}function u(t){t.value instanceof g?Promise.resolve(t.value.v).then(s,f):l(i[0][2],t)}function s(t){c("next",t)}function f(t){c("throw",t)}function l(t,e){t(e),i.shift(),i.length&&c(i[0][0],i[0][1])}}function b(t){var e,r;return e={},n("next"),n("throw",(function(t){throw t})),n("return"),e[Symbol.iterator]=function(){return this},e;function n(n,o){e[n]=t[n]?function(e){return(r=!r)?{value:g(t[n](e)),done:"return"===n}:o?o(e):e}:o}}function m(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t="function"===typeof d?d(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise((function(n,i){e=t[r](e),o(n,i,e.done,e.value)}))}}function o(t,e,r,n){Promise.resolve(n).then((function(e){t({value:e,done:r})}),e)}}function S(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function w(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function _(t){return t&&t.__esModule?t:{default:t}}},"9ed3":function(t,e,r){"use strict";var n=r("ae93").IteratorPrototype,o=r("7c73"),i=r("5c6c"),a=r("d44e"),c=r("3f8c"),u=function(){return this};t.exports=function(t,e,r){var s=e+" Iterator";return t.prototype=o(n,{next:i(1,r)}),a(t,s,!1,!0),c[s]=u,t}},ae93:function(t,e,r){"use strict";var n,o,i,a=r("e163"),c=r("9112"),u=r("5135"),s=r("b622"),f=r("c430"),l=s("iterator"),p=!1,d=function(){return this};[].keys&&(i=[].keys(),"next"in i?(o=a(a(i)),o!==Object.prototype&&(n=o)):p=!0),void 0==n&&(n={}),f||u(n,l)||c(n,l,d),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:p}},bd8b:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={}.toString,o=function(t,e){return n.call(t)==="[object "+e+"]"};e.default=o},c0b3:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getComboBBox=e.reconstructTree=e.plainCombosToTrees=e.getTextSize=e.getLetterWidth=e.radialLayout=e.traverseTreeUp=e.traverseTree=e.getLabelPosition=e.getLoopCfgs=e.getBBox=void 0;var n=r("9ab4"),o=r("e897"),i=s(r("067f")),a=r("0dfa"),c=s(r("7680")),u=r("8937");function s(t){return t&&t.__esModule?t:{default:t}}var f=Math.PI,l=Math.sin,p=Math.cos,d=l(f/8),h=p(f/8),y=function(t,e){var r=t.getBBox(),n={x:r.minX,y:r.minY},i={x:r.maxX,y:r.maxY};if(e){var c=e.getMatrix();c||(c=o.mat3.create()),n=(0,a.applyMatrix)(n,c),i=(0,a.applyMatrix)(i,c)}var u=n.x,s=n.y,f=i.x,l=i.y;return{x:u,y:s,minX:u,minY:s,maxX:f,maxY:l,width:f-u,height:l-s}};e.getBBox=y;var v=function(t){var e=t.sourceNode||t.targetNode,r=e.get("group"),n=r.getMatrix();n||(n=o.mat3.create());var a=e.getKeyShape(),c=a.getBBox(),u=t.loopCfg||{},s=u.dist||2*Math.max(c.width,c.height),f=u.position||i.default.defaultLoopPosition,l=[n[6],n[7]],p=[t.startPoint.x,t.startPoint.y],y=[t.endPoint.x,t.endPoint.y],v=c.height/2,g=c.height/2,x=v*d,b=v*h,m=g*d,S=g*h;if(p[0]===y[0]&&p[1]===y[1]){switch(f){case"top":p=[l[0]-x,l[1]-b],y=[l[0]+m,l[1]-S];break;case"top-right":v=c.height/2,g=c.width/2,x=v*d,b=v*h,m=g*d,S=g*h,p=[l[0]+x,l[1]-b],y=[l[0]+S,l[1]-m];break;case"right":v=c.width/2,g=c.width/2,x=v*d,b=v*h,m=g*d,S=g*h,p=[l[0]+b,l[1]-x],y=[l[0]+S,l[1]+m];break;case"bottom-right":v=c.width/2,g=c.height/2,x=v*d,b=v*h,m=g*d,S=g*h,p=[l[0]+b,l[1]+x],y=[l[0]+m,l[1]+S];break;case"bottom":v=c.height/2,g=c.height/2,x=v*d,b=v*h,m=g*d,S=g*h,p=[l[0]+x,l[1]+b],y=[l[0]-m,l[1]+S];break;case"bottom-left":v=c.height/2,g=c.width/2,x=v*d,b=v*h,m=g*d,S=g*h,p=[l[0]-x,l[1]+b],y=[l[0]-S,l[1]+m];break;case"left":v=c.width/2,g=c.width/2,x=v*d,b=v*h,m=g*d,S=g*h,p=[l[0]-b,l[1]+x],y=[l[0]-S,l[1]-m];break;case"top-left":v=c.width/2,g=c.height/2,x=v*d,b=v*h,m=g*d,S=g*h,p=[l[0]-b,l[1]-x],y=[l[0]-m,l[1]-S];break;default:v=c.width/2,g=c.width/2,x=v*d,b=v*h,m=g*d,S=g*h,p=[l[0]-x,l[1]-b],y=[l[0]+m,l[1]-S]}if(!1===u.clockwise){var w=[p[0],p[1]];p=[y[0],y[1]],y=[w[0],w[1]]}}var _=[p[0]-l[0],p[1]-l[1]],O=(v+s)/v,P=(g+s)/g;!1===u.clockwise&&(O=(g+s)/g,P=(v+s)/v);var C=o.vec2.scale([],_,O),B=[l[0]+C[0],l[1]+C[1]],I=[y[0]-l[0],y[1]-l[1]],M=o.vec2.scale([],I,P),j=[l[0]+M[0],l[1]+M[1]];return t.startPoint={x:p[0],y:p[1]},t.endPoint={x:y[0],y:y[1]},t.controlPoints=[{x:B[0],y:B[1]},{x:j[0],y:j[1]}],t};e.getLoopCfgs=v;var g=function(t,e,r,o,i){var a=1e-4,c=[],u=t.getPoint(e);if(null===u)return{x:0,y:0,angle:0};if(e<a)c=t.getStartTangent().reverse();else if(e>1-a)c=t.getEndTangent();else{var s=t.getPoint(e+a);c.push([u.x,u.y]),c.push([s.x,s.y])}var d=Math.atan2(c[1][1]-c[0][1],c[1][0]-c[0][0]);if(d<0&&(d+=2*f),r&&(u.x+=p(d)*r,u.y+=l(d)*r),o){var h=d-f/2;d>.5*f&&d<1.5*f&&(h-=f),u.x+=p(h)*o,u.y+=l(h)*o}var y={x:u.x,y:u.y,angle:d};return i?(d>.5*f&&d<1.5*f&&(d-=f),(0,n.__assign)({rotate:d},y)):y};e.getLabelPosition=g;var x=function t(e,r){if(!1===r(e))return!1;if(e&&e.children)for(var n=e.children.length-1;n>=0;n--)if(!t(e.children[n],r))return!1;return!0},b=function t(e,r){if(e&&e.children)for(var n=e.children.length-1;n>=0;n--)if(!t(e.children[n],r))return;return!1!==r(e)},m=function(t,e){"function"===typeof e&&x(t,e)};e.traverseTree=m;var S=function(t,e){"function"===typeof e&&b(t,e)};e.traverseTreeUp=S;var w=function(t,e){var r=["V","TB","BT"],n={x:1/0,y:1/0},o={x:-1/0,y:-1/0},i="x",a="y";e&&r.indexOf(e)>=0&&(a="x",i="y");var c=0;m(t,(function(t){return c++,t.x>o.x&&(o.x=t.x),t.x<n.x&&(n.x=t.x),t.y>o.y&&(o.y=t.y),t.y<n.y&&(n.y=t.y),!0}));var u=2*f/c,s=o[a]-n[a];return 0===s||m(t,(function(e){var r=(e[a]-n[a])/s*(2*f-u)+u,o=Math.abs("x"===i?e.x-t.x:e.y-t.y);return e.x=o*Math.cos(r),e.y=o*Math.sin(r),!0})),t};e.radialLayout=w;var _=function(t,e){return e*(c.default[t]||1)};e.getLetterWidth=_;var O=function(t,e){var r=0,n=new RegExp("[一-龥]+");return t.split("").forEach((function(t){n.test(t)?r+=e:r+=_(t,e)})),[r,e]};e.getTextSize=O;var P=function(t,e){var r=[],n={},o={};t.forEach((function(t){o[t.id]=t})),t.forEach((function(t,e){var i=(0,u.clone)(t);i.itemType="combo",i.children=void 0,i.parentId===i.id?(console.warn("The parentId for combo "+i.id+" can not be the same as the combo's id"),delete i.parentId):i.parentId&&!o[i.parentId]&&(console.warn("The parent combo for combo "+i.id+" does not exist!"),delete i.parentId);var a=n[i.id];if(a){if(i.children=a.children,n[i.id]=i,a=i,!a.parentId)return void r.push(a);var c=n[a.parentId];if(c)return void(c.children?c.children.push(i):c.children=[i]);var s={id:a.parentId,children:[a]};return n[a.parentId]=s,void(n[i.id]=i)}if((0,u.isString)(t.parentId)){var f=n[t.parentId];if(f)f.children?f.children.push(i):f.children=[i],n[i.id]=i;else{var l={id:t.parentId,children:[i]};n[l.id]=l,n[i.id]=i}}else r.push(i),n[i.id]=i}));var i={};return e&&e.forEach((function(t){i[t.id]=t;var e=n[t.comboId];if(e){var r={id:t.id,comboId:t.comboId};e.children?e.children.push(r):e.children=[r],r.itemType="node",n[t.id]=r}})),r.forEach((function(t){t.depth=0,x(t,(function(t){var e,r=n[t.id]["itemType"];e="node"===r?n[t["comboId"]]:n[t.parentId],t.depth=e?"node"===r?e.depth+1:e.depth+2:0;var o=i[t.id];return o&&(o.depth=t.depth),!0}))})),r};e.plainCombosToTrees=P;var C=function(t,e,r){var n,o=t,i={root:{children:t}},a=!1,c="root";t&&t.forEach((function(t){if(!a)return t.id===e?(n=t,"combo"===t.itemType?n.parentId=r:n.comboId=r,void(a=!0)):void m(t,(function(t){return i[t.id]={children:t.children},o=i[t.parentId||t.comboId||"root"].children,!t||!t.removed&&e!==t.id||!o||(c=t.parentId||t.comboId||"root",n=t,"combo"===t.itemType?n.parentId=r:n.comboId=r,a=!0,!1)}))})),o=i[c].children;var u=o?o.indexOf(n):-1;if(u>-1&&o.splice(u,1),a||(n={id:e,itemType:"node",comboId:r},i[e]={children:void 0}),e){var s=!1;if(r){var f=0;t&&t.forEach((function(t){s||m(t,(function(t){return r!==t.id||(s=!0,t.children?t.children.push(n):t.children=[n],f=t.depth,"node"===n.itemType?n.depth=f+2:n.depth=f+1,!1)}))}))}else r&&s||"node"===n.itemType||t.push(n);var l=n.depth;m(n,(function(t){return"node"===t.itemType?l+=2:l+=1,t.depth=l,!0}))}return t};e.reconstructTree=C;var B=function(t,e){var r={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0};return t&&0!==t.length?(t.forEach((function(t){var n=e.findById(t.id);if(n.isVisible()){n.set("bboxCanvasCache",void 0);var o=n.getCanvasBBox();o.x&&r.minX>o.minX&&(r.minX=o.minX),o.y&&r.minY>o.minY&&(r.minY=o.minY),o.x&&r.maxX<o.maxX&&(r.maxX=o.maxX),o.y&&r.maxY<o.maxY&&(r.maxY=o.maxY)}})),r.x=(r.minX+r.maxX)/2,r.y=(r.minY+r.maxY)/2,r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,Object.keys(r).forEach((function(t){r[t]!==1/0&&r[t]!==-1/0||(r[t]=void 0)})),r):r};e.getComboBBox=B},d28b:function(t,e,r){var n=r("746f");n("iterator")},d2bb:function(t,e,r){var n=r("825a"),o=r("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(r,[]),e=r instanceof Array}catch(i){}return function(r,i){return n(r),o(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},d4ec:function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",(function(){return n}))},ddb0:function(t,e,r){var n=r("da84"),o=r("fdbc"),i=r("e260"),a=r("9112"),c=r("b622"),u=c("iterator"),s=c("toStringTag"),f=i.values;for(var l in o){var p=n[l],d=p&&p.prototype;if(d){if(d[u]!==f)try{a(d,u,f)}catch(y){d[u]=f}if(d[s]||a(d,s,l),o[l])for(var h in i)if(d[h]!==i[h])try{a(d,h,i[h])}catch(y){d[h]=i[h]}}}},e01a:function(t,e,r){"use strict";var n=r("23e7"),o=r("83ab"),i=r("da84"),a=r("5135"),c=r("861d"),u=r("9bf2").f,s=r("e893"),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};s(p,f);var d=p.prototype=f.prototype;d.constructor=p;var h=d.toString,y="Symbol(test)"==String(f("test")),v=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=h.call(t);if(a(l,t))return"";var r=y?e.slice(7,-1):e.replace(v,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:p})}},e163:function(t,e,r){var n=r("5135"),o=r("7b0b"),i=r("f772"),a=r("e177"),c=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),n(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},e177:function(t,e,r){var n=r("d039");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,r){"use strict";var n=r("fc6a"),o=r("44d2"),i=r("3f8c"),a=r("69f3"),c=r("7dd0"),u="Array Iterator",s=a.set,f=a.getterFor(u);t.exports=c(Array,"Array",(function(t,e){s(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},f694:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("8937"),o=c(r("7da3")),i=r("c0b3"),a=r("0dfa");function c(t){return t&&t.__esModule?t:{default:t}}var u="bboxCache",s="bboxCanvasCache",f=["fillStyle","strokeStyle","path","points","img","symbol"],l=function(){function t(t){this._cfg={},this.destroyed=!1;var e={id:void 0,type:"item",model:{},group:void 0,animate:!1,visible:!0,locked:!1,event:!0,keyShape:void 0,states:[]};this._cfg=Object.assign(e,this.getDefaultCfg(),t);var r=this.get("model").id;r||(r=(0,n.uniqueId)(this.get("type")),this.get("model").id=r),this.set("id",r);var o=t.group;o&&(o.set("item",this),o.set("id",r)),this.init(),this.draw()}return t.prototype.calculateBBox=function(){var t=this.get("keyShape"),e=this.get("group"),r=(0,i.getBBox)(t,e);return r.x=r.minX,r.y=r.minY,r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.centerX=(r.minX+r.maxX)/2,r.centerY=(r.minY+r.maxY)/2,r},t.prototype.calculateCanvasBBox=function(){var t=this.get("keyShape"),e=this.get("group"),r=(0,i.getBBox)(t,e);return r.x=r.minX,r.y=r.minY,r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.centerX=(r.minX+r.maxX)/2,r.centerY=(r.minY+r.maxY)/2,r},t.prototype.drawInner=function(){var t=this,e=t.get("shapeFactory"),r=t.get("group"),n=t.get("model");if(r.clear(),e){t.updatePosition(n);var o=t.getShapeCfg(n),i=o.shape||o.type,a=e.draw(i,o,r);a&&(t.set("keyShape",a),a.set("isKeyShape",!0),a.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",i),this.restoreStates(e,i)}},t.prototype.setOriginStyle=function(t){var e={},r=this.get("group"),o=r.get("children"),i=this.getKeyShape(),a=this;(0,n.each)(o,(function(t){var r=t.get("name");if(r)e[r]=a.getShapeStyleByName(r);else{var n=i.get("name"),o=a.getShapeStyleByName();n?e[n]=o:Object.assign(e,o)}}));var c=this.getOriginStyle(),u={};u=t?(0,n.deepMix)({},c,e,t.style,{labelCfg:t.labelCfg}):(0,n.deepMix)({},c,e),a.set("originStyle",u)},t.prototype.restoreStates=function(t,e){var r=this,o=r.get("states");(0,n.each)(o,(function(n){t.setState(e,n,!0,r)}))},t.prototype.init=function(){var t=o.default.getFactory(this.get("type"));this.set("shapeFactory",t)},t.prototype.get=function(t){return this._cfg[t]},t.prototype.set=function(t,e){(0,n.isPlainObject)(t)?this._cfg=Object.assign({},this._cfg,t):this._cfg[t]=e},t.prototype.getDefaultCfg=function(){return{}},t.prototype.clearCache=function(){this.set(u,null),this.set(s,null)},t.prototype.beforeDraw=function(){},t.prototype.afterDraw=function(){},t.prototype.afterUpdate=function(){},t.prototype.draw=function(){this.beforeDraw(),this.drawInner(),this.afterDraw()},t.prototype.getShapeStyleByName=function(t){var e=this,r=this.get("group"),o=this.getKeyShape();if(t&&(o=r.find((function(e){return e.get("name")===t}))),o){var i={},a=this.get("states");return a.map((function(t){var r=e.getStateStyle(t);for(var o in r)if((0,n.isPlainObject)(r[o])){var i=r[o];for(var a in i)f.includes(a)||f.push(a)}else f.includes(o)||f.push(o)})),(0,n.each)(o.attr(),(function(t,e){f.indexOf(e)<0&&(i[e]=t)})),i}return{}},t.prototype.getShapeCfg=function(t){var e=this.get("styles");if(e){var r=t;return r.style=Object.assign({},e,t.style),r}return t},t.prototype.getStateStyle=function(t){var e=this.get("styles"),r=e&&e[t];return r},t.prototype.getOriginStyle=function(){return this.get("originStyle")},t.prototype.getCurrentStatesStyle=function(){var t=this,e={};return(0,n.each)(t.getStates(),(function(r){Object.assign(e,t.getStateStyle(r))})),e},t.prototype.setState=function(t,e){var r=this.get("states"),o=this.get("shapeFactory"),i=t,a=t;(0,n.isString)(e)&&(i=t+":"+e,a=t+":");var c=r;if((0,n.isBoolean)(e)){var u=r.indexOf(a);if(e){if(u>-1)return;r.push(i)}else u>-1&&r.splice(u,1)}else if((0,n.isString)(e)){var s=r.filter((function(t){return t.includes(a)}));s.length>0&&this.clearStates(s),c=c.filter((function(t){return!t.includes(a)})),c.push(i),this.set("states",c)}if(o){var f=this.get("model"),l=f.shape||f.type;o.setState(l,t,e,this)}},t.prototype.clearStates=function(t){var e=this,r=e.getStates(),o=e.get("shapeFactory"),i=e.get("model"),a=i.shape||i.type;t||(t=r),(0,n.isString)(t)&&(t=[t]);var c=r.filter((function(e){return-1===t.indexOf(e)}));e.set("states",c),t.forEach((function(t){o.setState(a,t,!1,e)}))},t.prototype.getContainer=function(){return this.get("group")},t.prototype.getKeyShape=function(){return this.get("keyShape")},t.prototype.getModel=function(){return this.get("model")},t.prototype.getType=function(){return this.get("type")},t.prototype.getID=function(){return this.get("id")},t.prototype.isItem=function(){return!0},t.prototype.getStates=function(){return this.get("states")},t.prototype.hasState=function(t){var e=this.getStates();return e.indexOf(t)>=0},t.prototype.refresh=function(){var t=this.get("model");this.updatePosition(t),this.updateShape(),this.afterUpdate(),this.clearCache()},t.prototype.isOnlyMove=function(t){return!1},t.prototype.update=function(t){var e=this.get("model"),r={x:e.x,y:e.y};t.x=isNaN(t.x)?e.x:t.x,t.y=isNaN(t.y)?e.y:t.y;var o=this.get("styles");if(t.stateStyles){var i=t.stateStyles;(0,n.mix)(o,i),delete t.stateStyles}Object.assign(e,t);var a=this.isOnlyMove(t);a?this.updatePosition(t):(r.x===t.x&&r.y===t.y||this.updatePosition(t),this.updateShape()),this.afterUpdate(),this.clearCache()},t.prototype.updateShape=function(){var t=this.get("shapeFactory"),e=this.get("model"),r=e.shape||e.type;if(t.shouldUpdate(r)&&r===this.get("currentShape")){var n=this.getShapeCfg(e);t.baseUpdate(r,n,this)}else this.draw();this.setOriginStyle(e),this.restoreStates(t,r)},t.prototype.updatePosition=function(t){var e=this.get("model"),r=(0,n.isNil)(t.x)?e.x:t.x,o=(0,n.isNil)(t.y)?e.y:t.y,i=this.get("group");(0,n.isNil)(r)||(0,n.isNil)(o)||(i.resetMatrix(),(0,a.translate)(i,{x:r,y:o}),e.x=r,e.y=o,this.clearCache())},t.prototype.getBBox=function(){var t=this.get(u);return t||(t=this.calculateBBox(),this.set(u,t)),t},t.prototype.getCanvasBBox=function(){var t=this.get(s);return t||(t=this.calculateCanvasBBox(),this.set(s,t)),t},t.prototype.toFront=function(){var t=this.get("group");t.toFront()},t.prototype.toBack=function(){var t=this.get("group");t.toBack()},t.prototype.show=function(){this.changeVisibility(!0)},t.prototype.hide=function(){this.changeVisibility(!1)},t.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},t.prototype.isVisible=function(){return this.get("visible")},t.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},t.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},t}(),p=l;e.default=p}}]);