@univerjs-pro/sheets-shape 0.16.0-insiders.20260303-185502e → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3655c7=_0x1926;(function(_0x5004bc,_0x26e2c8){const _0x4b7e09=_0x1926,_0x3575fa=_0x5004bc();while(!![]){try{const _0x58273e=-parseInt(_0x4b7e09(0x9f))/0x1*(-parseInt(_0x4b7e09(0xee))/0x2)+-parseInt(_0x4b7e09(0xe2))/0x3+parseInt(_0x4b7e09(0x9d))/0x4+-parseInt(_0x4b7e09(0xa4))/0x5*(parseInt(_0x4b7e09(0xbf))/0x6)+parseInt(_0x4b7e09(0x99))/0x7*(parseInt(_0x4b7e09(0xeb))/0x8)+-parseInt(_0x4b7e09(0xae))/0x9*(parseInt(_0x4b7e09(0xb7))/0xa)+-parseInt(_0x4b7e09(0xc4))/0xb*(parseInt(_0x4b7e09(0xc6))/0xc);if(_0x58273e===_0x26e2c8)break;else _0x3575fa['push'](_0x3575fa['shift']());}catch(_0x3511e3){_0x3575fa['push'](_0x3575fa['shift']());}}}(_0x1278,0x52dd8));var D=Object[_0x3655c7(0xc2)],C=(_0x5fae28,_0x45b69f,_0x381e0d)=>_0x45b69f in _0x5fae28?D(_0x5fae28,_0x45b69f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x381e0d}):_0x5fae28[_0x45b69f]=_0x381e0d,S=(_0x1675fb,_0x4d40cc,_0x12aaf6)=>C(_0x1675fb,typeof _0x4d40cc!=_0x3655c7(0x94)?_0x4d40cc+'':_0x4d40cc,_0x12aaf6);Object['defineProperty'](exports,Symbol[_0x3655c7(0xd2)],{'value':_0x3655c7(0xd1)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x3655c7(0xa3)]{constructor(){const _0x33e316=_0x3655c7;super(),S(this,_0x33e316(0xda),new Map()),S(this,'_linesIds',new Set()),S(this,_0x33e316(0xa6),new Set());}[_0x3655c7(0xaa)](_0x382a55,_0x28d08e,_0x2c7487){const _0x1c7120=_0x3655c7,_0x1ae3b0=new l['ShapeModel'](_0x382a55,_0x28d08e,_0x2c7487);return this['_shapes'][_0x1c7120(0xe4)](_0x28d08e,_0x1ae3b0),l[_0x1c7120(0xcf)](_0x382a55)&&this['_linesIds']['add'](_0x28d08e),_0x1ae3b0;}[_0x3655c7(0xb4)](_0x3138ec){const _0x27bcb8=_0x3655c7;var _0x1e2d43,_0x3c0c30;const _0x412ac5=[];for(const _0x47b4d8 of this[_0x27bcb8(0xc3)]){const _0x167715=this[_0x27bcb8(0xda)]['get'](_0x47b4d8);if(_0x167715){const _0x1d654a=_0x167715[_0x27bcb8(0xc5)]();_0x1d654a&&(((_0x1e2d43=_0x1d654a[_0x27bcb8(0xd8)])==null?void 0x0:_0x1e2d43['shapeId'])===_0x3138ec&&_0x412ac5[_0x27bcb8(0xde)]({..._0x1d654a[_0x27bcb8(0xd8)],'lineShapeId':_0x47b4d8,'isFrom':!0x0}),((_0x3c0c30=_0x1d654a['to'])==null?void 0x0:_0x3c0c30[_0x27bcb8(0xbc)])===_0x3138ec&&_0x412ac5[_0x27bcb8(0xde)]({..._0x1d654a['to'],'lineShapeId':_0x47b4d8,'isFrom':!0x1}));}}return _0x412ac5;}[_0x3655c7(0xbb)](_0x45e2bf){const _0x345e7d=this['_shapes']['get'](_0x45e2bf);if(_0x345e7d)return _0x345e7d['getShapeRelation']();}[_0x3655c7(0xd6)](_0x3b43a8){const _0x1edd42=_0x3655c7,_0xfe1b8e=this['_shapes'][_0x1edd42(0x95)](_0x3b43a8);if(_0xfe1b8e)return _0xfe1b8e['getShapeType']();}[_0x3655c7(0xac)](_0x176460){const _0x57d11f=_0x3655c7;return this[_0x57d11f(0xda)][_0x57d11f(0xdb)](_0x176460);}['removeShape'](_0x5bb465){const _0x31c833=_0x3655c7,_0x5bd3b5=this[_0x31c833(0xda)][_0x31c833(0x95)](_0x5bb465);_0x5bd3b5&&(l[_0x31c833(0xcf)](_0x5bd3b5[_0x31c833(0xd6)]())&&this[_0x31c833(0xc3)]['delete'](_0x5bb465),this['_shapes']['delete'](_0x5bb465));}[_0x3655c7(0xec)](){const _0x4c6274=_0x3655c7,_0x4daeda=[];return this['_shapes'][_0x4c6274(0xd9)](_0x5db762=>{_0x4daeda['push'](_0x5db762['toJSON']());}),_0x4daeda;}['fromJSON'](_0x162e2b){const _0x1d7748=_0x3655c7;for(const _0x335558 of _0x162e2b){const {id:_0x5afe3c,shapeType:_0x2cdf6e}=_0x335558,_0x211b3b=this['addShape'](_0x2cdf6e,_0x5afe3c,_0x335558[_0x1d7748(0xe6)]);_0x211b3b&&_0x211b3b[_0x1d7748(0xcc)]()&&this[_0x1d7748(0xc3)][_0x1d7748(0xb0)](_0x5afe3c);}}[_0x3655c7(0x9a)](){const _0x3463cf=_0x3655c7;this[_0x3463cf(0xb6)]||(this['_shapes'][_0x3463cf(0xd9)](_0x27edaf=>{_0x27edaf['dispose']();}),this[_0x3463cf(0xda)][_0x3463cf(0xc9)](),this[_0x3463cf(0xc3)][_0x3463cf(0xc9)](),this[_0x3463cf(0xa6)][_0x3463cf(0xc9)](),super[_0x3463cf(0x9a)]());}}var R=Object[_0x3655c7(0x97)],j=(_0x5ef454,_0x568a9b,_0x1719ed,_0x5e0f2b)=>{const _0x3f58fe=_0x3655c7;for(var _0xaba79f=_0x5e0f2b>0x1?void 0x0:_0x5e0f2b?R(_0x568a9b,_0x1719ed):_0x568a9b,_0x421921=_0x5ef454[_0x3f58fe(0xaf)]-0x1,_0x4d46eb;_0x421921>=0x0;_0x421921--)(_0x4d46eb=_0x5ef454[_0x421921])&&(_0xaba79f=_0x4d46eb(_0xaba79f)||_0xaba79f);return _0xaba79f;},J=(_0x114d89,_0x14e1ef)=>(_0x4ce779,_0x32e79b)=>_0x14e1ef(_0x4ce779,_0x32e79b,_0x114d89);const w=_0x3655c7(0xf1);function _0x1926(_0xafa12f,_0x2346e7){_0xafa12f=_0xafa12f-0x8e;const _0x12788d=_0x1278();let _0x1926e3=_0x12788d[_0xafa12f];return _0x1926e3;}exports[_0x3655c7(0xf2)]=class extends p[_0x3655c7(0xa3)]{constructor(_0x53cfb3){const _0xab3723=_0x3655c7;super(),S(this,_0xab3723(0xe0),new Map()),(this['_resourcesManagerService']=_0x53cfb3,this['_initSnapshot']());}['_ensureShapeModelManager'](_0x5c06bd,_0xec1a28){const _0x51ac3e=_0x3655c7;let _0x276dad=this[_0x51ac3e(0xe0)][_0x51ac3e(0x95)](_0x5c06bd);_0x276dad||(_0x276dad=new Map(),this[_0x51ac3e(0xe0)][_0x51ac3e(0xe4)](_0x5c06bd,_0x276dad));let _0x2e2b15=_0x276dad[_0x51ac3e(0x95)](_0xec1a28);return _0x2e2b15||(_0x2e2b15=new f(),_0x276dad[_0x51ac3e(0xe4)](_0xec1a28,_0x2e2b15)),_0x2e2b15;}[_0x3655c7(0xa8)](_0x560d27,_0x289c55,_0x46339a,_0x230437,_0x185faf){this['_ensureShapeModelManager'](_0x560d27,_0x289c55)['addShape'](_0x46339a,_0x230437,_0x185faf);}[_0x3655c7(0xd4)](_0x473906,_0x30b17f,_0x1ab704){const _0xeea881=_0x3655c7;this[_0xeea881(0xa0)](_0x473906,_0x30b17f)['removeShape'](_0x1ab704);}[_0x3655c7(0x98)](_0x5e9045,_0x45b10f,_0x11b3b6){const _0x34e6fa=_0x3655c7;return this[_0x34e6fa(0xa0)](_0x5e9045,_0x45b10f)[_0x34e6fa(0xd6)](_0x11b3b6);}['getShapeType'](_0x13566a,_0x56843a,_0x94415b){const _0x2794aa=_0x3655c7;return this[_0x2794aa(0xa0)](_0x13566a,_0x56843a)[_0x2794aa(0xd6)](_0x94415b);}['hasShape'](_0x5e911d,_0xff2b37,_0x44dfc5){const _0x4111ae=_0x3655c7;return this[_0x4111ae(0xa0)](_0x5e911d,_0xff2b37)[_0x4111ae(0xac)](_0x44dfc5);}['getShapeTypeById'](_0x137bca,_0xccc00b,_0x5ea3db){const _0xe75630=_0x3655c7;return this[_0xe75630(0xa0)](_0x137bca,_0xccc00b)['getShapeType'](_0x5ea3db);}[_0x3655c7(0xa9)](_0x3fded6,_0x3465bd,_0x3d9504){const _0x477954=_0x3655c7,_0x15692e=this[_0x477954(0xa0)](_0x3fded6,_0x3465bd);if(!_0x15692e[_0x477954(0xd6)](_0x3d9504))return;const _0x9185ae=_0x15692e[_0x477954(0xda)][_0x477954(0x95)](_0x3d9504);if(_0x9185ae)return _0x9185ae[_0x477954(0xe5)]();}[_0x3655c7(0xb3)](_0x534f7b,_0x4b5dd5,_0x12ac04){const _0x5ecea7=_0x3655c7;return this[_0x5ecea7(0xa0)](_0x534f7b,_0x4b5dd5)['_shapes']['get'](_0x12ac04);}[_0x3655c7(0xb4)](_0x1d5157,_0x142cdb,_0x528b6f){const _0x25ee68=_0x3655c7;return this[_0x25ee68(0xa0)](_0x1d5157,_0x142cdb)[_0x25ee68(0xb4)](_0x528b6f);}[_0x3655c7(0xbb)](_0x53a198,_0x2a4244,_0x320a8d){const _0x2be20b=_0x3655c7,_0x219b20=this['_ensureShapeModelManager'](_0x53a198,_0x2a4244)[_0x2be20b(0xda)][_0x2be20b(0x95)](_0x320a8d);if(_0x219b20)return _0x219b20[_0x2be20b(0xc5)]();}['setShapeType'](){}[_0x3655c7(0xd3)](_0x3d6b43){const _0x5e75fa=_0x3655c7,_0x3d13a8={},_0x2c2b3c=this['_shapeModelManagerMap'][_0x5e75fa(0x95)](_0x3d6b43);return _0x2c2b3c&&_0x2c2b3c[_0x5e75fa(0xd9)]((_0x58fdb8,_0x1c3227)=>{const _0xa9b580=_0x5e75fa,_0x38507b=_0x58fdb8[_0xa9b580(0xec)]();_0x38507b[_0xa9b580(0xaf)]>0x0&&(_0x3d13a8[_0x1c3227]=_0x38507b);}),JSON[_0x5e75fa(0xa2)](_0x3d13a8);}[_0x3655c7(0xf0)](_0x308215,_0x3421bc){const _0x33af56=_0x3655c7;Object[_0x33af56(0xa5)](_0x3421bc)[_0x33af56(0xd9)](_0x44f5a3=>{this['_ensureShapeModelManager'](_0x308215,_0x44f5a3)['fromJSON'](_0x3421bc[_0x44f5a3]);});}[_0x3655c7(0xec)](){const _0x14cbbe=_0x3655c7,_0x547b02={};return this[_0x14cbbe(0xe0)][_0x14cbbe(0xd9)]((_0x32e45b,_0x196f56)=>{const _0x49e0b3=_0x14cbbe;_0x547b02[_0x196f56]={},_0x32e45b[_0x49e0b3(0xd9)]((_0x4abae0,_0x264c0e)=>{const _0x5b732a=_0x49e0b3;_0x547b02[_0x196f56][_0x264c0e]=_0x4abae0[_0x5b732a(0xec)]();});}),_0x547b02;}[_0x3655c7(0xe3)](_0xf5f40c){const _0x1e0b33=_0x3655c7;Object['keys'](_0xf5f40c)[_0x1e0b33(0xd9)](_0x5a622e=>{const _0x1326e3=_0x1e0b33,_0x519be1=_0xf5f40c[_0x5a622e];Object[_0x1326e3(0xa5)](_0x519be1)[_0x1326e3(0xd9)](_0x473c06=>{const _0x136230=_0x1326e3;this['_ensureShapeModelManager'](_0x5a622e,_0x473c06)[_0x136230(0xe3)](_0x519be1[_0x473c06]);});});}['_initSnapshot'](){const _0x3ff6f3=_0x3655c7;this[_0x3ff6f3(0xa1)][_0x3ff6f3(0xe8)]({'pluginName':w,'businesses':[p[_0x3ff6f3(0xb5)][_0x3ff6f3(0xc1)]],'toJson':_0x3bc6bc=>this[_0x3ff6f3(0xd3)](_0x3bc6bc),'parseJson':_0x3da405=>JSON[_0x3ff6f3(0xe7)](_0x3da405),'onLoad':(_0x3f89b0,_0x393633)=>{const _0x201f7d=_0x3ff6f3;this[_0x201f7d(0xf0)](_0x3f89b0,_0x393633);},'onUnLoad':_0x261953=>{const _0x1e1208=_0x3ff6f3,_0x5a4681=this[_0x1e1208(0xe0)][_0x1e1208(0x95)](_0x261953);_0x5a4681&&(_0x5a4681[_0x1e1208(0xd9)](_0x133ec0=>{const _0x3c489c=_0x1e1208;_0x133ec0[_0x3c489c(0x9a)]();}),this[_0x1e1208(0xe0)][_0x1e1208(0xba)](_0x261953));}});}[_0x3655c7(0x9a)](){this['_shapeModelManagerMap']['forEach'](_0x197768=>{const _0x433e64=_0x1926;_0x197768[_0x433e64(0xd9)](_0x4bccb6=>{const _0x382268=_0x433e64;_0x4bccb6[_0x382268(0x9a)]();});});}},exports[_0x3655c7(0xf2)]=j([J(0x0,p[_0x3655c7(0xbe)])],exports[_0x3655c7(0xf2)]);const d={'id':_0x3655c7(0xd0),'type':p[_0x3655c7(0x9c)][_0x3655c7(0xea)],'handler':(_0x49fdbd,_0x43c167)=>{const _0x4140d6=_0x3655c7,{unitId:_0x390dc0,subUnitId:_0x117ee8,shapeType:_0x33a77d,shapeId:_0x182848,shapeData:_0x3d819e}=_0x43c167,_0x29112b=_0x49fdbd[_0x4140d6(0x95)](exports[_0x4140d6(0xf2)])['getShapeModel'](_0x390dc0,_0x117ee8,_0x182848);return _0x29112b&&(_0x29112b[_0x4140d6(0x92)](_0x33a77d),_0x3d819e&&(_0x29112b==null||_0x29112b[_0x4140d6(0x90)](_0x3d819e))),!0x0;}},H={'id':_0x3655c7(0xe9),'type':p['CommandType'][_0x3655c7(0xdd)],'handler':(_0x33bebd,_0x2e0cf2)=>{const _0x1d1a57=_0x3655c7;if(!_0x2e0cf2)return!0x1;const _0x2d8ecb=_0x33bebd['get'](p['ICommandService']),_0x50445c=_0x33bebd['get'](exports[_0x1d1a57(0xf2)]),_0x4bacc5=_0x33bebd[_0x1d1a57(0x95)](p[_0x1d1a57(0xe1)]),_0x26e85e=[],_0x58ff43=[],{unitId:_0x2f7eb1,subUnitId:_0x2cbeee,shapeId:_0x195cfa,shapeType:_0x16bc66,shapeData:_0x78aa21}=_0x2e0cf2,_0x593fd0=_0x50445c['getShapeModel'](_0x2f7eb1,_0x2cbeee,_0x195cfa);if(_0x593fd0){const _0x4ed572=_0x593fd0[_0x1d1a57(0xd6)](),_0x2c1e75=Object[_0x1d1a57(0x91)]({},_0x593fd0[_0x1d1a57(0xe5)]()),_0x471804={'unitId':_0x2f7eb1,'subUnitId':_0x2cbeee,'shapeId':_0x195cfa,'shapeType':_0x16bc66,'shapeData':_0x78aa21},_0x12b237={'unitId':_0x2f7eb1,'subUnitId':_0x2cbeee,'shapeId':_0x195cfa,'shapeType':_0x4ed572,'shapeData':_0x2c1e75};return _0x26e85e[_0x1d1a57(0xde)]({'id':d['id'],'params':_0x471804}),_0x58ff43['push']({'id':d['id'],'params':_0x12b237}),_0x26e85e['every'](_0x52f883=>_0x2d8ecb['syncExecuteCommand'](_0x52f883['id'],_0x52f883[_0x1d1a57(0x8e)]))&&_0x4bacc5[_0x1d1a57(0xdc)]({'unitID':_0x2f7eb1,'redoMutations':[..._0x26e85e],'undoMutations':[..._0x58ff43]}),!0x0;}return!0x1;}},m={'id':_0x3655c7(0xa7),'type':p[_0x3655c7(0x9c)]['MUTATION'],'handler':(_0x135568,_0x3377a7)=>{const _0x1bfb0a=_0x3655c7,{unitId:_0x2dbd65,subUnitId:_0x26dba4,shapeType:_0x111cb2,shapeId:_0x5895a4,shapeData:_0x596053}=_0x3377a7;return _0x135568[_0x1bfb0a(0x95)](exports['SheetsShapeService'])[_0x1bfb0a(0xa8)](_0x2dbd65,_0x26dba4,_0x111cb2,_0x5895a4,_0x596053),!0x0;}},v={'id':_0x3655c7(0xed),'type':p[_0x3655c7(0x9c)][_0x3655c7(0xea)],'handler':(_0x17708e,_0x18d7c4)=>{const _0x392054=_0x3655c7,{unitId:_0x16fccc,subUnitId:_0x2804f8,shapeId:_0x526df1}=_0x18d7c4;return _0x17708e[_0x392054(0x95)](exports['SheetsShapeService'])[_0x392054(0xd4)](_0x16fccc,_0x2804f8,_0x526df1),!0x0;}},y={'id':'sheet.mutation.update-shape-data','type':p[_0x3655c7(0x9c)][_0x3655c7(0xea)],'handler':(_0x317965,_0x32bf2e)=>{const _0x4bc5eb=_0x3655c7,{unitId:_0x339b8a,subUnitId:_0x350e0b,shapeType:_0x5963f0,shapeId:_0x288655,shapeData:_0x2d9dc8}=_0x32bf2e,_0xe1bbb0=_0x317965[_0x4bc5eb(0x95)](exports[_0x4bc5eb(0xf2)])['getShapeModel'](_0x339b8a,_0x350e0b,_0x288655);return _0xe1bbb0&&(_0x5963f0!==void 0x0&&_0xe1bbb0[_0x4bc5eb(0x92)](_0x5963f0),_0x2d9dc8&&(_0xe1bbb0==null||_0xe1bbb0['setShapeData'](_0x2d9dc8,!0x0))),!0x0;}},A='sheets-shape.config',_={};var L=Object[_0x3655c7(0xc2)],F=Object[_0x3655c7(0x97)],B=(_0x3f8da3,_0xe70462,_0x3af93c)=>_0xe70462 in _0x3f8da3?L(_0x3f8da3,_0xe70462,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3af93c}):_0x3f8da3[_0xe70462]=_0x3af93c,G=(_0x5862d6,_0x212e60,_0x3cf3f0,_0x49d579)=>{for(var _0x2c60d6=_0x49d579>0x1?void 0x0:_0x49d579?F(_0x212e60,_0x3cf3f0):_0x212e60,_0x3aa4c0=_0x5862d6['length']-0x1,_0x3227aa;_0x3aa4c0>=0x0;_0x3aa4c0--)(_0x3227aa=_0x5862d6[_0x3aa4c0])&&(_0x2c60d6=_0x3227aa(_0x2c60d6)||_0x2c60d6);return _0x2c60d6;},g=(_0x1ffccc,_0x158ae3)=>(_0x913723,_0x56e93c)=>_0x158ae3(_0x913723,_0x56e93c,_0x1ffccc),T=(_0x56932c,_0x4fcaa5,_0x26156e)=>B(_0x56932c,typeof _0x4fcaa5!=_0x3655c7(0x94)?_0x4fcaa5+'':_0x4fcaa5,_0x26156e);const x=_0x3655c7(0xf1);exports[_0x3655c7(0xb8)]=class extends p[_0x3655c7(0xb9)]{constructor(_0x5d3baf=_,_0x5ae337,_0x562549,_0x43fdf8){const _0x97f578=_0x3655c7;super(),this[_0x97f578(0xca)]=_0x5d3baf,this['_injector']=_0x5ae337,this[_0x97f578(0xce)]=_0x562549,this[_0x97f578(0xc0)]=_0x43fdf8;const {..._0x3e34e0}=p[_0x97f578(0xef)]({},_,this[_0x97f578(0xca)]);this[_0x97f578(0xc0)][_0x97f578(0x8f)](A,_0x3e34e0),this[_0x97f578(0xc8)]();}[_0x3655c7(0xd5)](){const _0x336637=_0x3655c7;p[_0x336637(0xc7)](this[_0x336637(0x93)],[]);}[_0x3655c7(0x96)](){const _0x33de4e=_0x3655c7,_0x2a4e29=this[_0x33de4e(0x93)];[[f],[exports[_0x33de4e(0xf2)]]][_0x33de4e(0xd9)](_0x2fd633=>_0x2a4e29[_0x33de4e(0xb0)](_0x2fd633));}[_0x3655c7(0xc8)](){const _0x32c5f9=_0x3655c7;[m,v,d,y][_0x32c5f9(0xd9)](_0x1a2191=>this[_0x32c5f9(0xb1)](this[_0x32c5f9(0xce)][_0x32c5f9(0x9e)](_0x1a2191)));}},T(exports[_0x3655c7(0xb8)],_0x3655c7(0xcd),p['UniverInstanceType'][_0x3655c7(0xc1)]),T(exports[_0x3655c7(0xb8)],'pluginName',x),exports[_0x3655c7(0xb8)]=G([p['DependentOn'](b['UniverLicensePlugin']),g(0x1,p[_0x3655c7(0xd7)](p[_0x3655c7(0xcb)])),g(0x2,p['ICommandService']),g(0x3,p[_0x3655c7(0xbd)])],exports['UniverSheetsShapePlugin']),exports[_0x3655c7(0xad)]=m,exports[_0x3655c7(0xdf)]=v,exports[_0x3655c7(0xab)]=y,exports[_0x3655c7(0x9b)]=H,exports[_0x3655c7(0xb2)]=d;function _0x1278(){const _0x4cdc21=['sheet.command.update-shape-type','MUTATION','3024584LhNckg','toJSON','sheet.mutation.remove-shape','2iyTsdO','merge','_deserializeShapeForUnit','SHEET_SHAPE_PLUGIN','SheetsShapeService','params','setConfig','setShapeData','assign','setShapeType','_injector','symbol','get','onStarting','getOwnPropertyDescriptor','getBasicShapeType','7FEQEiI','dispose','UpdateSheetsShapeTypeCommand','CommandType','1898376mWpPbX','registerCommand','597265RAOrjP','_ensureShapeModelManager','_resourcesManagerService','stringify','Disposable','629780CYXxaC','keys','_groupIds','sheet.mutation.insert-shape','insertShape','getShapeDataById','addShape','UpdateSheetsShapeDataMutation','hasShape','InsertSheetsShapeMutation','417987rSFNqv','length','add','disposeWithMe','UpdateSheetsShapeTypeMutation','getShapeModel','getBasicShapeRelation','UniverInstanceType','_disposed','80CtTpqR','UniverSheetsShapePlugin','Plugin','delete','getLineShapeRelation','shapeId','IConfigService','IResourceManagerService','12jihqTV','_configService','UNIVER_SHEET','defineProperty','_linesIds','11KOnZLS','getShapeRelation','266148XPsZgg','touchDependencies','_initCommands','clear','_config','Injector','isLineShape','type','_commandService','isConnectorShape','sheet.mutation.update-shape-type','Module','toStringTag','_serializeShapeForUnit','removeShape','onRendered','getShapeType','Inject','from','forEach','_shapes','has','pushUndoRedo','COMMAND','push','RemoveSheetsShapeMutation','_shapeModelManagerMap','IUndoRedoService','1394643UZJPbY','fromJSON','set','getShapeData','shapeData','parse','registerPluginResource'];_0x1278=function(){return _0x4cdc21;};return _0x1278();}
1
+ 'use strict';const _0x5bdef9=_0x366b;(function(_0x179329,_0x35630a){const _0x565a33=_0x366b,_0x159c64=_0x179329();while(!![]){try{const _0xf70f11=-parseInt(_0x565a33(0x93))/0x1+parseInt(_0x565a33(0xb2))/0x2+-parseInt(_0x565a33(0x8f))/0x3*(-parseInt(_0x565a33(0x99))/0x4)+parseInt(_0x565a33(0xbf))/0x5+parseInt(_0x565a33(0xad))/0x6*(parseInt(_0x565a33(0xb3))/0x7)+-parseInt(_0x565a33(0x8b))/0x8*(parseInt(_0x565a33(0xa0))/0x9)+-parseInt(_0x565a33(0xd4))/0xa;if(_0xf70f11===_0x35630a)break;else _0x159c64['push'](_0x159c64['shift']());}catch(_0x4fa0b2){_0x159c64['push'](_0x159c64['shift']());}}}(_0x53e0,0x28e80));var D=Object[_0x5bdef9(0xe0)],C=(_0x33a39f,_0x57d697,_0x48e259)=>_0x57d697 in _0x33a39f?D(_0x33a39f,_0x57d697,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48e259}):_0x33a39f[_0x57d697]=_0x48e259,S=(_0x26a040,_0x24f65e,_0x215a3f)=>C(_0x26a040,typeof _0x24f65e!='symbol'?_0x24f65e+'':_0x24f65e,_0x215a3f);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x5bdef9(0xa3)});const p=require('@univerjs/core'),l=require('@univerjs-pro/engine-shape'),b=require('@univerjs-pro/license');class f extends p[_0x5bdef9(0x92)]{constructor(){const _0x2cb75b=_0x5bdef9;super(),S(this,_0x2cb75b(0xdb),new Map()),S(this,_0x2cb75b(0xa2),new Set()),S(this,'_groupIds',new Set());}['addShape'](_0x43553d,_0x5af8a8,_0x4e0f67){const _0x27d047=_0x5bdef9,_0x467279=new l[(_0x27d047(0x98))](_0x43553d,_0x5af8a8,_0x4e0f67);return this['_shapes'][_0x27d047(0xc5)](_0x5af8a8,_0x467279),l[_0x27d047(0x8c)](_0x43553d)&&this[_0x27d047(0xa2)][_0x27d047(0xbd)](_0x5af8a8),_0x467279;}[_0x5bdef9(0xb5)](_0x1b5d93){const _0x1456d3=_0x5bdef9;var _0x2184f7,_0x3d8de0;const _0x302d62=[];for(const _0x29e02c of this[_0x1456d3(0xa2)]){const _0x3d107c=this[_0x1456d3(0xdb)][_0x1456d3(0xc8)](_0x29e02c);if(_0x3d107c){const _0x352ee2=_0x3d107c['getShapeRelation']();_0x352ee2&&(((_0x2184f7=_0x352ee2[_0x1456d3(0xa8)])==null?void 0x0:_0x2184f7[_0x1456d3(0xb8)])===_0x1b5d93&&_0x302d62['push']({..._0x352ee2['from'],'lineShapeId':_0x29e02c,'isFrom':!0x0}),((_0x3d8de0=_0x352ee2['to'])==null?void 0x0:_0x3d8de0[_0x1456d3(0xb8)])===_0x1b5d93&&_0x302d62[_0x1456d3(0xbc)]({..._0x352ee2['to'],'lineShapeId':_0x29e02c,'isFrom':!0x1}));}}return _0x302d62;}[_0x5bdef9(0xd2)](_0x138efd){const _0x455bc5=this['_shapes']['get'](_0x138efd);if(_0x455bc5)return _0x455bc5['getShapeRelation']();}[_0x5bdef9(0xbb)](_0x48b5db){const _0x3986c4=_0x5bdef9,_0x27679a=this[_0x3986c4(0xdb)][_0x3986c4(0xc8)](_0x48b5db);if(_0x27679a)return _0x27679a[_0x3986c4(0xbb)]();}[_0x5bdef9(0xd9)](_0x36adbf){return this['_shapes']['has'](_0x36adbf);}[_0x5bdef9(0xc7)](_0x15590e){const _0x474da0=_0x5bdef9,_0x4e016d=this['_shapes']['get'](_0x15590e);_0x4e016d&&(l[_0x474da0(0x8c)](_0x4e016d['getShapeType']())&&this['_linesIds'][_0x474da0(0x85)](_0x15590e),this[_0x474da0(0xdb)][_0x474da0(0x85)](_0x15590e));}['toJSON'](){const _0x98070e=_0x5bdef9,_0x264d80=[];return this[_0x98070e(0xdb)][_0x98070e(0xd1)](_0x3e773b=>{const _0x4a4307=_0x98070e;_0x264d80[_0x4a4307(0xbc)](_0x3e773b['toJSON']());}),_0x264d80;}[_0x5bdef9(0x84)](_0x2cd3ac){const _0x583b02=_0x5bdef9;for(const _0x1051e3 of _0x2cd3ac){const {id:_0x21a3eb,shapeType:_0x1d20be}=_0x1051e3,_0x35cfd8=this['addShape'](_0x1d20be,_0x21a3eb,_0x1051e3[_0x583b02(0xcd)]);_0x35cfd8&&_0x35cfd8['isLineShape']()&&this[_0x583b02(0xa2)][_0x583b02(0xbd)](_0x21a3eb);}}[_0x5bdef9(0xbe)](){const _0x5dba9c=_0x5bdef9;this[_0x5dba9c(0xd7)]||(this[_0x5dba9c(0xdb)][_0x5dba9c(0xd1)](_0xa5e8ec=>{const _0xe71bd8=_0x5dba9c;_0xa5e8ec[_0xe71bd8(0xbe)]();}),this[_0x5dba9c(0xdb)][_0x5dba9c(0x96)](),this[_0x5dba9c(0xa2)]['clear'](),this[_0x5dba9c(0x90)][_0x5dba9c(0x96)](),super['dispose']());}}var R=Object[_0x5bdef9(0xb0)],j=(_0xc6d00c,_0x16dfb5,_0x583191,_0x39a53b)=>{const _0x2ea79b=_0x5bdef9;for(var _0x1ddc4d=_0x39a53b>0x1?void 0x0:_0x39a53b?R(_0x16dfb5,_0x583191):_0x16dfb5,_0x12c755=_0xc6d00c[_0x2ea79b(0xd3)]-0x1,_0x2f63e5;_0x12c755>=0x0;_0x12c755--)(_0x2f63e5=_0xc6d00c[_0x12c755])&&(_0x1ddc4d=_0x2f63e5(_0x1ddc4d)||_0x1ddc4d);return _0x1ddc4d;},J=(_0x81bb2,_0x58681c)=>(_0x28cde6,_0x2551af)=>_0x58681c(_0x28cde6,_0x2551af,_0x81bb2);function _0x366b(_0x3cd96f,_0x105667){_0x3cd96f=_0x3cd96f-0x81;const _0x53e0b4=_0x53e0();let _0x366b3c=_0x53e0b4[_0x3cd96f];return _0x366b3c;}const w=_0x5bdef9(0x8d);function _0x53e0(){const _0xa72e9f=['getShapeType','push','add','dispose','1516205MxJGbC','merge','UniverSheetsShapePlugin','_shapeModelManagerMap','UpdateSheetsShapeTypeMutation','type','set','getShapeData','removeShape','get','Injector','pluginName','registerCommand','Plugin','shapeData','UpdateSheetsShapeTypeCommand','keys','touchDependencies','forEach','getLineShapeRelation','length','1443640mKsZdr','syncExecuteCommand','MUTATION','_disposed','DependentOn','hasShape','addShape','_shapes','insertShape','disposeWithMe','Inject','symbol','defineProperty','CommandType','setShapeData','_injector','fromJSON','delete','setConfig','_initSnapshot','toJSON','_config','every','6624EkpWWC','isConnectorShape','SHEET_SHAPE_PLUGIN','_ensureShapeModelManager','471054sBPMZZ','_groupIds','_commandService','Disposable','60647ELlIlD','InsertSheetsShapeMutation','getShapeModel','clear','onStarting','ShapeModel','4rVYaJN','_deserializeShapeForUnit','getShapeTypeById','_resourcesManagerService','IResourceManagerService','UniverInstanceType','UNIVER_SHEET','2466NgVZmi','sheet.mutation.update-shape-type','_linesIds','Module','_configService','ICommandService','sheets-shape.config','UpdateSheetsShapeDataMutation','from','IConfigService','sheet.mutation.update-shape-data','setShapeType','IUndoRedoService','6PYkKMl','assign','_serializeShapeForUnit','getOwnPropertyDescriptor','SheetsShapeService','6590gZmjWy','951167iXpVHj','parse','getBasicShapeRelation','UniverLicensePlugin','onRendered','shapeId','getShapeRelation','sheet.mutation.insert-shape'];_0x53e0=function(){return _0xa72e9f;};return _0x53e0();}exports[_0x5bdef9(0xb1)]=class extends p[_0x5bdef9(0x92)]{constructor(_0x3ecd81){const _0x46e24b=_0x5bdef9;super(),S(this,_0x46e24b(0xc2),new Map()),(this[_0x46e24b(0x9c)]=_0x3ecd81,this['_initSnapshot']());}['_ensureShapeModelManager'](_0x51e069,_0x52b25c){const _0x467ca7=_0x5bdef9;let _0x153d2b=this[_0x467ca7(0xc2)]['get'](_0x51e069);_0x153d2b||(_0x153d2b=new Map(),this[_0x467ca7(0xc2)][_0x467ca7(0xc5)](_0x51e069,_0x153d2b));let _0x3205d0=_0x153d2b[_0x467ca7(0xc8)](_0x52b25c);return _0x3205d0||(_0x3205d0=new f(),_0x153d2b[_0x467ca7(0xc5)](_0x52b25c,_0x3205d0)),_0x3205d0;}['insertShape'](_0x2625f5,_0x51843a,_0x4de087,_0x55889b,_0x32ee44){const _0xc45871=_0x5bdef9;this[_0xc45871(0x8e)](_0x2625f5,_0x51843a)[_0xc45871(0xda)](_0x4de087,_0x55889b,_0x32ee44);}[_0x5bdef9(0xc7)](_0x4def8f,_0x5758c4,_0x5d788c){const _0x5c4f59=_0x5bdef9;this[_0x5c4f59(0x8e)](_0x4def8f,_0x5758c4)['removeShape'](_0x5d788c);}['getBasicShapeType'](_0x5503e8,_0x2fc19,_0x4b39f3){const _0x4b9083=_0x5bdef9;return this[_0x4b9083(0x8e)](_0x5503e8,_0x2fc19)[_0x4b9083(0xbb)](_0x4b39f3);}[_0x5bdef9(0xbb)](_0x56c5af,_0x2ad505,_0x467b87){const _0x33b946=_0x5bdef9;return this[_0x33b946(0x8e)](_0x56c5af,_0x2ad505)[_0x33b946(0xbb)](_0x467b87);}[_0x5bdef9(0xd9)](_0x136970,_0x46d7e1,_0x1f6b9a){const _0x584094=_0x5bdef9;return this[_0x584094(0x8e)](_0x136970,_0x46d7e1)[_0x584094(0xd9)](_0x1f6b9a);}[_0x5bdef9(0x9b)](_0x4e19b1,_0x30586e,_0x37e3d7){const _0xfa113b=_0x5bdef9;return this[_0xfa113b(0x8e)](_0x4e19b1,_0x30586e)[_0xfa113b(0xbb)](_0x37e3d7);}['getShapeDataById'](_0x1691ee,_0x44746d,_0x41f612){const _0x5616e8=_0x5bdef9,_0x4b837b=this[_0x5616e8(0x8e)](_0x1691ee,_0x44746d);if(!_0x4b837b[_0x5616e8(0xbb)](_0x41f612))return;const _0xb08b32=_0x4b837b[_0x5616e8(0xdb)]['get'](_0x41f612);if(_0xb08b32)return _0xb08b32['getShapeData']();}[_0x5bdef9(0x95)](_0x35e935,_0x564ef9,_0x1bd019){const _0x28f2e8=_0x5bdef9;return this['_ensureShapeModelManager'](_0x35e935,_0x564ef9)[_0x28f2e8(0xdb)][_0x28f2e8(0xc8)](_0x1bd019);}[_0x5bdef9(0xb5)](_0x4c48cf,_0x1293b7,_0x200e5b){const _0x2671b1=_0x5bdef9;return this[_0x2671b1(0x8e)](_0x4c48cf,_0x1293b7)[_0x2671b1(0xb5)](_0x200e5b);}['getLineShapeRelation'](_0x218dfa,_0x4bb0fd,_0x3c5623){const _0x4c822c=_0x5bdef9,_0x35de24=this[_0x4c822c(0x8e)](_0x218dfa,_0x4bb0fd)[_0x4c822c(0xdb)]['get'](_0x3c5623);if(_0x35de24)return _0x35de24[_0x4c822c(0xb9)]();}['setShapeType'](){}[_0x5bdef9(0xaf)](_0x547392){const _0x1c10b2=_0x5bdef9,_0x418aba={},_0x27cc91=this[_0x1c10b2(0xc2)][_0x1c10b2(0xc8)](_0x547392);return _0x27cc91&&_0x27cc91[_0x1c10b2(0xd1)]((_0x57de1e,_0x5fa759)=>{const _0x46a2db=_0x1c10b2,_0x4c7a72=_0x57de1e[_0x46a2db(0x88)]();_0x4c7a72['length']>0x0&&(_0x418aba[_0x5fa759]=_0x4c7a72);}),JSON['stringify'](_0x418aba);}[_0x5bdef9(0x9a)](_0x329cf9,_0x407b0b){Object['keys'](_0x407b0b)['forEach'](_0x30b59f=>{const _0x1da7e7=_0x366b;this[_0x1da7e7(0x8e)](_0x329cf9,_0x30b59f)[_0x1da7e7(0x84)](_0x407b0b[_0x30b59f]);});}['toJSON'](){const _0x74037d=_0x5bdef9,_0x66638b={};return this[_0x74037d(0xc2)][_0x74037d(0xd1)]((_0x2f4732,_0x5c0378)=>{const _0x44ee72=_0x74037d;_0x66638b[_0x5c0378]={},_0x2f4732[_0x44ee72(0xd1)]((_0x335739,_0x5e1c67)=>{const _0x13e67d=_0x44ee72;_0x66638b[_0x5c0378][_0x5e1c67]=_0x335739[_0x13e67d(0x88)]();});}),_0x66638b;}[_0x5bdef9(0x84)](_0x55c5a3){const _0x2eb989=_0x5bdef9;Object[_0x2eb989(0xcf)](_0x55c5a3)[_0x2eb989(0xd1)](_0x5435cb=>{const _0x5ed9ea=_0x55c5a3[_0x5435cb];Object['keys'](_0x5ed9ea)['forEach'](_0xf8f2be=>{const _0x538805=_0x366b;this[_0x538805(0x8e)](_0x5435cb,_0xf8f2be)[_0x538805(0x84)](_0x5ed9ea[_0xf8f2be]);});});}[_0x5bdef9(0x87)](){const _0x10a8ab=_0x5bdef9;this['_resourcesManagerService']['registerPluginResource']({'pluginName':w,'businesses':[p['UniverInstanceType'][_0x10a8ab(0x9f)]],'toJson':_0x42eee5=>this[_0x10a8ab(0xaf)](_0x42eee5),'parseJson':_0x39666c=>JSON[_0x10a8ab(0xb4)](_0x39666c),'onLoad':(_0x1bcc84,_0x5973cd)=>{const _0x62e604=_0x10a8ab;this[_0x62e604(0x9a)](_0x1bcc84,_0x5973cd);},'onUnLoad':_0x34f8c5=>{const _0x44b107=_0x10a8ab,_0x2a7f2b=this['_shapeModelManagerMap'][_0x44b107(0xc8)](_0x34f8c5);_0x2a7f2b&&(_0x2a7f2b[_0x44b107(0xd1)](_0x825704=>{const _0x585ac2=_0x44b107;_0x825704[_0x585ac2(0xbe)]();}),this[_0x44b107(0xc2)][_0x44b107(0x85)](_0x34f8c5));}});}['dispose'](){const _0x48cde3=_0x5bdef9;this[_0x48cde3(0xc2)][_0x48cde3(0xd1)](_0x21f81d=>{const _0x24458e=_0x48cde3;_0x21f81d[_0x24458e(0xd1)](_0x119fc0=>{_0x119fc0['dispose']();});});}},exports[_0x5bdef9(0xb1)]=j([J(0x0,p[_0x5bdef9(0x9d)])],exports['SheetsShapeService']);const d={'id':_0x5bdef9(0xa1),'type':p[_0x5bdef9(0x81)][_0x5bdef9(0xd6)],'handler':(_0x2b7367,_0x20dbe0)=>{const _0x1c6b26=_0x5bdef9,{unitId:_0xe9a60,subUnitId:_0x55fbf5,shapeType:_0x2cbc0e,shapeId:_0x360da8,shapeData:_0x5c6261}=_0x20dbe0,_0x4d72aa=_0x2b7367[_0x1c6b26(0xc8)](exports[_0x1c6b26(0xb1)])['getShapeModel'](_0xe9a60,_0x55fbf5,_0x360da8);return _0x4d72aa&&(_0x4d72aa[_0x1c6b26(0xab)](_0x2cbc0e),_0x5c6261&&(_0x4d72aa==null||_0x4d72aa[_0x1c6b26(0x82)](_0x5c6261))),!0x0;}},H={'id':'sheet.command.update-shape-type','type':p[_0x5bdef9(0x81)]['COMMAND'],'handler':(_0x59dbe0,_0x9f6841)=>{const _0x360d72=_0x5bdef9;if(!_0x9f6841)return!0x1;const _0x122f6a=_0x59dbe0[_0x360d72(0xc8)](p[_0x360d72(0xa5)]),_0x2118c2=_0x59dbe0[_0x360d72(0xc8)](exports[_0x360d72(0xb1)]),_0x2fe521=_0x59dbe0[_0x360d72(0xc8)](p[_0x360d72(0xac)]),_0x28c6b8=[],_0x249245=[],{unitId:_0xfd4f3f,subUnitId:_0x4df752,shapeId:_0xe9c59a,shapeType:_0x334e40,shapeData:_0x4f67d0}=_0x9f6841,_0x4c4eb2=_0x2118c2[_0x360d72(0x95)](_0xfd4f3f,_0x4df752,_0xe9c59a);if(_0x4c4eb2){const _0x319070=_0x4c4eb2[_0x360d72(0xbb)](),_0x4bf1c4=Object[_0x360d72(0xae)]({},_0x4c4eb2[_0x360d72(0xc6)]()),_0x1b3995={'unitId':_0xfd4f3f,'subUnitId':_0x4df752,'shapeId':_0xe9c59a,'shapeType':_0x334e40,'shapeData':_0x4f67d0},_0x3f0ddf={'unitId':_0xfd4f3f,'subUnitId':_0x4df752,'shapeId':_0xe9c59a,'shapeType':_0x319070,'shapeData':_0x4bf1c4};return _0x28c6b8[_0x360d72(0xbc)]({'id':d['id'],'params':_0x1b3995}),_0x249245['push']({'id':d['id'],'params':_0x3f0ddf}),_0x28c6b8[_0x360d72(0x8a)](_0x400e5a=>_0x122f6a[_0x360d72(0xd5)](_0x400e5a['id'],_0x400e5a['params']))&&_0x2fe521['pushUndoRedo']({'unitID':_0xfd4f3f,'redoMutations':[..._0x28c6b8],'undoMutations':[..._0x249245]}),!0x0;}return!0x1;}},m={'id':_0x5bdef9(0xba),'type':p[_0x5bdef9(0x81)][_0x5bdef9(0xd6)],'handler':(_0x1199bf,_0x553bca)=>{const _0x1a7434=_0x5bdef9,{unitId:_0x90fc5f,subUnitId:_0x324b47,shapeType:_0x1e0052,shapeId:_0x44cde4,shapeData:_0x20f213}=_0x553bca;return _0x1199bf[_0x1a7434(0xc8)](exports[_0x1a7434(0xb1)])[_0x1a7434(0xdc)](_0x90fc5f,_0x324b47,_0x1e0052,_0x44cde4,_0x20f213),!0x0;}},v={'id':'sheet.mutation.remove-shape','type':p[_0x5bdef9(0x81)]['MUTATION'],'handler':(_0x4202ab,_0x22039d)=>{const _0x1374f1=_0x5bdef9,{unitId:_0x474c0f,subUnitId:_0x911f5b,shapeId:_0x1815ea}=_0x22039d;return _0x4202ab[_0x1374f1(0xc8)](exports['SheetsShapeService'])[_0x1374f1(0xc7)](_0x474c0f,_0x911f5b,_0x1815ea),!0x0;}},y={'id':_0x5bdef9(0xaa),'type':p[_0x5bdef9(0x81)][_0x5bdef9(0xd6)],'handler':(_0x6088cd,_0x1e2025)=>{const _0x10e940=_0x5bdef9,{unitId:_0x5553cf,subUnitId:_0x2c6138,shapeType:_0x5d3565,shapeId:_0x46d1c4,shapeData:_0x4b7fa7}=_0x1e2025,_0x26c3a8=_0x6088cd[_0x10e940(0xc8)](exports[_0x10e940(0xb1)])['getShapeModel'](_0x5553cf,_0x2c6138,_0x46d1c4);return _0x26c3a8&&(_0x5d3565!==void 0x0&&_0x26c3a8[_0x10e940(0xab)](_0x5d3565),_0x4b7fa7&&(_0x26c3a8==null||_0x26c3a8[_0x10e940(0x82)](_0x4b7fa7,!0x0))),!0x0;}},A=_0x5bdef9(0xa6),_={};var L=Object[_0x5bdef9(0xe0)],F=Object[_0x5bdef9(0xb0)],B=(_0x47c240,_0x1fac68,_0x4e520a)=>_0x1fac68 in _0x47c240?L(_0x47c240,_0x1fac68,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e520a}):_0x47c240[_0x1fac68]=_0x4e520a,G=(_0xa9585d,_0x159aaf,_0x28d0ce,_0x2866a2)=>{const _0x132176=_0x5bdef9;for(var _0x466db8=_0x2866a2>0x1?void 0x0:_0x2866a2?F(_0x159aaf,_0x28d0ce):_0x159aaf,_0x58014c=_0xa9585d[_0x132176(0xd3)]-0x1,_0x35bc87;_0x58014c>=0x0;_0x58014c--)(_0x35bc87=_0xa9585d[_0x58014c])&&(_0x466db8=_0x35bc87(_0x466db8)||_0x466db8);return _0x466db8;},g=(_0x135368,_0x2e4e85)=>(_0x2e1cd3,_0x213f17)=>_0x2e4e85(_0x2e1cd3,_0x213f17,_0x135368),T=(_0x38249f,_0x3ee274,_0x5852c5)=>B(_0x38249f,typeof _0x3ee274!=_0x5bdef9(0xdf)?_0x3ee274+'':_0x3ee274,_0x5852c5);const x=_0x5bdef9(0x8d);exports[_0x5bdef9(0xc1)]=class extends p[_0x5bdef9(0xcc)]{constructor(_0xdc581e=_,_0xe386a9,_0x25b299,_0x1bb0f2){const _0x795715=_0x5bdef9;super(),this[_0x795715(0x89)]=_0xdc581e,this[_0x795715(0x83)]=_0xe386a9,this['_commandService']=_0x25b299,this[_0x795715(0xa4)]=_0x1bb0f2;const {..._0x4df42c}=p[_0x795715(0xc0)]({},_,this[_0x795715(0x89)]);this[_0x795715(0xa4)][_0x795715(0x86)](A,_0x4df42c),this['_initCommands']();}[_0x5bdef9(0xb7)](){const _0x36f1d7=_0x5bdef9;p[_0x36f1d7(0xd0)](this[_0x36f1d7(0x83)],[]);}[_0x5bdef9(0x97)](){const _0x3fcc57=_0x5bdef9,_0xdb361a=this[_0x3fcc57(0x83)];[[f],[exports[_0x3fcc57(0xb1)]]][_0x3fcc57(0xd1)](_0x584a99=>_0xdb361a[_0x3fcc57(0xbd)](_0x584a99));}['_initCommands'](){const _0x16624d=_0x5bdef9;[m,v,d,y][_0x16624d(0xd1)](_0x55c054=>this[_0x16624d(0xdd)](this[_0x16624d(0x91)][_0x16624d(0xcb)](_0x55c054)));}},T(exports[_0x5bdef9(0xc1)],_0x5bdef9(0xc4),p[_0x5bdef9(0x9e)]['UNIVER_SHEET']),T(exports['UniverSheetsShapePlugin'],_0x5bdef9(0xca),x),exports[_0x5bdef9(0xc1)]=G([p[_0x5bdef9(0xd8)](b[_0x5bdef9(0xb6)]),g(0x1,p[_0x5bdef9(0xde)](p[_0x5bdef9(0xc9)])),g(0x2,p[_0x5bdef9(0xa5)]),g(0x3,p[_0x5bdef9(0xa9)])],exports[_0x5bdef9(0xc1)]),exports[_0x5bdef9(0x94)]=m,exports['RemoveSheetsShapeMutation']=v,exports[_0x5bdef9(0xa7)]=y,exports[_0x5bdef9(0xce)]=H,exports[_0x5bdef9(0xc3)]=d;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4e4a5c=_0x50c5;function _0x50c5(_0x10b9de,_0x51305f){_0x10b9de=_0x10b9de-0x15f;const _0x56dc31=_0x56dc();let _0x50c567=_0x56dc31[_0x10b9de];return _0x50c567;}(function(_0x10a253,_0x6306be){const _0x2d6ffc=_0x50c5,_0x25cce9=_0x10a253();while(!![]){try{const _0x38c2e4=parseInt(_0x2d6ffc(0x181))/0x1*(-parseInt(_0x2d6ffc(0x19c))/0x2)+-parseInt(_0x2d6ffc(0x196))/0x3*(-parseInt(_0x2d6ffc(0x18d))/0x4)+parseInt(_0x2d6ffc(0x19b))/0x5*(-parseInt(_0x2d6ffc(0x180))/0x6)+-parseInt(_0x2d6ffc(0x1a4))/0x7*(parseInt(_0x2d6ffc(0x18e))/0x8)+parseInt(_0x2d6ffc(0x160))/0x9*(-parseInt(_0x2d6ffc(0x19d))/0xa)+parseInt(_0x2d6ffc(0x1ac))/0xb+parseInt(_0x2d6ffc(0x17a))/0xc;if(_0x38c2e4===_0x6306be)break;else _0x25cce9['push'](_0x25cce9['shift']());}catch(_0x3ff988){_0x25cce9['push'](_0x25cce9['shift']());}}}(_0x56dc,0x478da));var R=Object[_0x4e4a5c(0x1ab)],C=(_0x3b207c,_0x767b4c,_0x3383c4)=>_0x767b4c in _0x3b207c?R(_0x3b207c,_0x767b4c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3383c4}):_0x3b207c[_0x767b4c]=_0x3383c4,d=(_0x52af5d,_0x102f89,_0x514bb2)=>C(_0x52af5d,typeof _0x102f89!='symbol'?_0x102f89+'':_0x102f89,_0x514bb2);import{Disposable as _0x1d04e4,UniverInstanceType as _0x45f854,IResourceManagerService as _0x12d9ff,CommandType as _0x4c55f2,ICommandService as _0x3a7dfe,IUndoRedoService as _0x341386,DependentOn as _0xeef180,Inject as _0x3d7af3,Injector as _0x5a2b14,Plugin as _0x18c956,merge as _0x2055be,touchDependencies as _0x613ba3,IConfigService as _0x56cd6e}from'@univerjs/core';import{ShapeModel as _0x1ae183,isConnectorShape as _0x691982}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x436710}from'@univerjs-pro/license';class T extends _0x1d04e4{constructor(){const _0x16e01f=_0x4e4a5c;super(),d(this,_0x16e01f(0x1a0),new Map()),d(this,_0x16e01f(0x17c),new Set()),d(this,_0x16e01f(0x199),new Set());}[_0x4e4a5c(0x18b)](_0x5b26e8,_0x2f8545,_0x765743){const _0x151e67=_0x4e4a5c,_0x4ac146=new _0x1ae183(_0x5b26e8,_0x2f8545,_0x765743);return this[_0x151e67(0x1a0)][_0x151e67(0x177)](_0x2f8545,_0x4ac146),_0x691982(_0x5b26e8)&&this[_0x151e67(0x17c)][_0x151e67(0x1a9)](_0x2f8545),_0x4ac146;}[_0x4e4a5c(0x197)](_0x3eec38){const _0x32bdd6=_0x4e4a5c;var _0x168390,_0x2d423b;const _0x31223b=[];for(const _0x3255eb of this[_0x32bdd6(0x17c)]){const _0x194b02=this[_0x32bdd6(0x1a0)][_0x32bdd6(0x1ae)](_0x3255eb);if(_0x194b02){const _0x16b808=_0x194b02[_0x32bdd6(0x1a7)]();_0x16b808&&(((_0x168390=_0x16b808[_0x32bdd6(0x195)])==null?void 0x0:_0x168390[_0x32bdd6(0x1a6)])===_0x3eec38&&_0x31223b[_0x32bdd6(0x187)]({..._0x16b808[_0x32bdd6(0x195)],'lineShapeId':_0x3255eb,'isFrom':!0x0}),((_0x2d423b=_0x16b808['to'])==null?void 0x0:_0x2d423b[_0x32bdd6(0x1a6)])===_0x3eec38&&_0x31223b[_0x32bdd6(0x187)]({..._0x16b808['to'],'lineShapeId':_0x3255eb,'isFrom':!0x1}));}}return _0x31223b;}['getLineShapeRelation'](_0x337dfb){const _0x46ce2d=_0x4e4a5c,_0x20dc65=this[_0x46ce2d(0x1a0)][_0x46ce2d(0x1ae)](_0x337dfb);if(_0x20dc65)return _0x20dc65[_0x46ce2d(0x1a7)]();}[_0x4e4a5c(0x1a2)](_0x52487d){const _0x43ddb2=_0x4e4a5c,_0xcfacaa=this[_0x43ddb2(0x1a0)][_0x43ddb2(0x1ae)](_0x52487d);if(_0xcfacaa)return _0xcfacaa['getShapeType']();}[_0x4e4a5c(0x19f)](_0x564150){const _0x24bc74=_0x4e4a5c;return this[_0x24bc74(0x1a0)][_0x24bc74(0x17d)](_0x564150);}[_0x4e4a5c(0x16e)](_0x232c2e){const _0x2e7e6b=_0x4e4a5c,_0x5172f1=this[_0x2e7e6b(0x1a0)][_0x2e7e6b(0x1ae)](_0x232c2e);_0x5172f1&&(_0x691982(_0x5172f1[_0x2e7e6b(0x1a2)]())&&this[_0x2e7e6b(0x17c)][_0x2e7e6b(0x183)](_0x232c2e),this['_shapes'][_0x2e7e6b(0x183)](_0x232c2e));}['toJSON'](){const _0x348563=_0x4e4a5c,_0x1787da=[];return this[_0x348563(0x1a0)][_0x348563(0x162)](_0x4f8299=>{const _0x1ab1fa=_0x348563;_0x1787da[_0x1ab1fa(0x187)](_0x4f8299[_0x1ab1fa(0x15f)]());}),_0x1787da;}['fromJSON'](_0x3188f1){const _0x57e557=_0x4e4a5c;for(const _0x5f5c0d of _0x3188f1){const {id:_0x468d05,shapeType:_0x557a47}=_0x5f5c0d,_0x17796e=this[_0x57e557(0x18b)](_0x557a47,_0x468d05,_0x5f5c0d[_0x57e557(0x171)]);_0x17796e&&_0x17796e[_0x57e557(0x198)]()&&this[_0x57e557(0x17c)][_0x57e557(0x1a9)](_0x468d05);}}['dispose'](){const _0xa5c956=_0x4e4a5c;this[_0xa5c956(0x178)]||(this[_0xa5c956(0x1a0)][_0xa5c956(0x162)](_0x41d3b5=>{const _0x428c65=_0xa5c956;_0x41d3b5[_0x428c65(0x17b)]();}),this[_0xa5c956(0x1a0)][_0xa5c956(0x164)](),this[_0xa5c956(0x17c)]['clear'](),this[_0xa5c956(0x199)]['clear'](),super[_0xa5c956(0x17b)]());}}var $=Object[_0x4e4a5c(0x167)],V=(_0x5c8a81,_0x14a1cc,_0x3cc8d6,_0x2a3650)=>{const _0x5ba7cd=_0x4e4a5c;for(var _0x45fcba=_0x2a3650>0x1?void 0x0:_0x2a3650?$(_0x14a1cc,_0x3cc8d6):_0x14a1cc,_0x2766ff=_0x5c8a81[_0x5ba7cd(0x161)]-0x1,_0x2047cc;_0x2766ff>=0x0;_0x2766ff--)(_0x2047cc=_0x5c8a81[_0x2766ff])&&(_0x45fcba=_0x2047cc(_0x45fcba)||_0x45fcba);return _0x45fcba;},K=(_0x14e373,_0x5372aa)=>(_0x54c1de,_0x185b4e)=>_0x5372aa(_0x54c1de,_0x185b4e,_0x14e373);const W=_0x4e4a5c(0x176);let i=class extends _0x1d04e4{constructor(_0x5d98f6){const _0x422a5f=_0x4e4a5c;super(),d(this,'_shapeModelManagerMap',new Map()),(this[_0x422a5f(0x16f)]=_0x5d98f6,this['_initSnapshot']());}['_ensureShapeModelManager'](_0x5a017f,_0x36175c){const _0x3e2d9b=_0x4e4a5c;let _0x25064c=this[_0x3e2d9b(0x174)][_0x3e2d9b(0x1ae)](_0x5a017f);_0x25064c||(_0x25064c=new Map(),this[_0x3e2d9b(0x174)][_0x3e2d9b(0x177)](_0x5a017f,_0x25064c));let _0x2dcc64=_0x25064c[_0x3e2d9b(0x1ae)](_0x36175c);return _0x2dcc64||(_0x2dcc64=new T(),_0x25064c[_0x3e2d9b(0x177)](_0x36175c,_0x2dcc64)),_0x2dcc64;}[_0x4e4a5c(0x193)](_0x100d17,_0x313393,_0x61e6d3,_0x59d15d,_0x11d46c){const _0x1d493b=_0x4e4a5c;this[_0x1d493b(0x169)](_0x100d17,_0x313393)[_0x1d493b(0x18b)](_0x61e6d3,_0x59d15d,_0x11d46c);}[_0x4e4a5c(0x16e)](_0x310669,_0x2fec57,_0x5b3720){const _0x309429=_0x4e4a5c;this[_0x309429(0x169)](_0x310669,_0x2fec57)['removeShape'](_0x5b3720);}[_0x4e4a5c(0x194)](_0x50b880,_0x2b2042,_0x3899ff){const _0x41ba9b=_0x4e4a5c;return this['_ensureShapeModelManager'](_0x50b880,_0x2b2042)[_0x41ba9b(0x1a2)](_0x3899ff);}[_0x4e4a5c(0x1a2)](_0x57172d,_0x1ef0a4,_0x3a8dcf){const _0x56969e=_0x4e4a5c;return this[_0x56969e(0x169)](_0x57172d,_0x1ef0a4)[_0x56969e(0x1a2)](_0x3a8dcf);}[_0x4e4a5c(0x19f)](_0x149cf4,_0x45bbfa,_0x370568){const _0x49c57a=_0x4e4a5c;return this[_0x49c57a(0x169)](_0x149cf4,_0x45bbfa)[_0x49c57a(0x19f)](_0x370568);}[_0x4e4a5c(0x1a1)](_0x55b8c3,_0x49b66a,_0x50d659){const _0x110c22=_0x4e4a5c;return this[_0x110c22(0x169)](_0x55b8c3,_0x49b66a)[_0x110c22(0x1a2)](_0x50d659);}[_0x4e4a5c(0x1a8)](_0x5befcb,_0x599461,_0x42a8fc){const _0x4fec85=_0x4e4a5c,_0x45aed9=this[_0x4fec85(0x169)](_0x5befcb,_0x599461);if(!_0x45aed9[_0x4fec85(0x1a2)](_0x42a8fc))return;const _0x306b30=_0x45aed9[_0x4fec85(0x1a0)][_0x4fec85(0x1ae)](_0x42a8fc);if(_0x306b30)return _0x306b30['getShapeData']();}[_0x4e4a5c(0x170)](_0x5c6f7c,_0x146f83,_0xa87e37){const _0x360128=_0x4e4a5c;return this[_0x360128(0x169)](_0x5c6f7c,_0x146f83)[_0x360128(0x1a0)][_0x360128(0x1ae)](_0xa87e37);}[_0x4e4a5c(0x197)](_0x3a374a,_0x13e800,_0x5e0866){const _0x2669d1=_0x4e4a5c;return this[_0x2669d1(0x169)](_0x3a374a,_0x13e800)['getBasicShapeRelation'](_0x5e0866);}[_0x4e4a5c(0x175)](_0xc95689,_0x38f58d,_0x296e81){const _0xc0bb5a=_0x4e4a5c,_0x596c87=this[_0xc0bb5a(0x169)](_0xc95689,_0x38f58d)[_0xc0bb5a(0x1a0)][_0xc0bb5a(0x1ae)](_0x296e81);if(_0x596c87)return _0x596c87[_0xc0bb5a(0x1a7)]();}[_0x4e4a5c(0x16d)](){}['_serializeShapeForUnit'](_0x31f546){const _0x7efa48=_0x4e4a5c,_0x2c3e3f={},_0x5d6640=this[_0x7efa48(0x174)][_0x7efa48(0x1ae)](_0x31f546);return _0x5d6640&&_0x5d6640['forEach']((_0x4c895c,_0x5abd60)=>{const _0x23821b=_0x7efa48,_0x20782c=_0x4c895c[_0x23821b(0x15f)]();_0x20782c[_0x23821b(0x161)]>0x0&&(_0x2c3e3f[_0x5abd60]=_0x20782c);}),JSON[_0x7efa48(0x16a)](_0x2c3e3f);}[_0x4e4a5c(0x188)](_0x264165,_0x4939a9){const _0x59edad=_0x4e4a5c;Object[_0x59edad(0x17f)](_0x4939a9)[_0x59edad(0x162)](_0x49d4e3=>{const _0x330c18=_0x59edad;this[_0x330c18(0x169)](_0x264165,_0x49d4e3)[_0x330c18(0x191)](_0x4939a9[_0x49d4e3]);});}[_0x4e4a5c(0x15f)](){const _0x2c7942=_0x4e4a5c,_0x4c69dc={};return this[_0x2c7942(0x174)][_0x2c7942(0x162)]((_0x3aea35,_0x500d50)=>{const _0x59b6ef=_0x2c7942;_0x4c69dc[_0x500d50]={},_0x3aea35[_0x59b6ef(0x162)]((_0x1891aa,_0x39d584)=>{const _0x1560f7=_0x59b6ef;_0x4c69dc[_0x500d50][_0x39d584]=_0x1891aa[_0x1560f7(0x15f)]();});}),_0x4c69dc;}[_0x4e4a5c(0x191)](_0x5648bf){const _0x4cc128=_0x4e4a5c;Object[_0x4cc128(0x17f)](_0x5648bf)[_0x4cc128(0x162)](_0x3406df=>{const _0xe304d8=_0x4cc128,_0x4583f3=_0x5648bf[_0x3406df];Object['keys'](_0x4583f3)[_0xe304d8(0x162)](_0x4d38b3=>{const _0x5dc7f4=_0xe304d8;this['_ensureShapeModelManager'](_0x3406df,_0x4d38b3)[_0x5dc7f4(0x191)](_0x4583f3[_0x4d38b3]);});});}[_0x4e4a5c(0x166)](){const _0x350ed6=_0x4e4a5c;this['_resourcesManagerService'][_0x350ed6(0x163)]({'pluginName':W,'businesses':[_0x45f854['UNIVER_SHEET']],'toJson':_0x77e19e=>this['_serializeShapeForUnit'](_0x77e19e),'parseJson':_0x291971=>JSON[_0x350ed6(0x173)](_0x291971),'onLoad':(_0x4046fc,_0x10f1b3)=>{const _0x1a30ed=_0x350ed6;this[_0x1a30ed(0x188)](_0x4046fc,_0x10f1b3);},'onUnLoad':_0x159cd9=>{const _0x5361ca=_0x350ed6,_0x41fbb8=this[_0x5361ca(0x174)][_0x5361ca(0x1ae)](_0x159cd9);_0x41fbb8&&(_0x41fbb8[_0x5361ca(0x162)](_0x1301f5=>{const _0x3d5949=_0x5361ca;_0x1301f5[_0x3d5949(0x17b)]();}),this['_shapeModelManagerMap'][_0x5361ca(0x183)](_0x159cd9));}});}[_0x4e4a5c(0x17b)](){const _0x4a8b0e=_0x4e4a5c;this[_0x4a8b0e(0x174)]['forEach'](_0x41a4e8=>{const _0xa8ff9e=_0x4a8b0e;_0x41a4e8[_0xa8ff9e(0x162)](_0x37466d=>{const _0x2982c9=_0xa8ff9e;_0x37466d[_0x2982c9(0x17b)]();});});}};i=V([K(0x0,_0x12d9ff)],i);const u={'id':_0x4e4a5c(0x186),'type':_0x4c55f2[_0x4e4a5c(0x172)],'handler':(_0x436d9b,_0x234976)=>{const _0x3e0261=_0x4e4a5c,{unitId:_0x41c2bb,subUnitId:_0x5ce188,shapeType:_0x49e558,shapeId:_0x3b458f,shapeData:_0x5914cc}=_0x234976,_0x5f5380=_0x436d9b[_0x3e0261(0x1ae)](i)['getShapeModel'](_0x41c2bb,_0x5ce188,_0x3b458f);return _0x5f5380&&(_0x5f5380[_0x3e0261(0x16d)](_0x49e558),_0x5914cc&&(_0x5f5380==null||_0x5f5380[_0x3e0261(0x184)](_0x5914cc))),!0x0;}},pe={'id':_0x4e4a5c(0x1a3),'type':_0x4c55f2[_0x4e4a5c(0x1a5)],'handler':(_0x479a35,_0x10a926)=>{const _0x5b3dc9=_0x4e4a5c;if(!_0x10a926)return!0x1;const _0x2c32e4=_0x479a35[_0x5b3dc9(0x1ae)](_0x3a7dfe),_0xc446f1=_0x479a35[_0x5b3dc9(0x1ae)](i),_0x49cda3=_0x479a35['get'](_0x341386),_0x2fe113=[],_0x4fdd14=[],{unitId:_0x1a79ea,subUnitId:_0xc7d63f,shapeId:_0x504466,shapeType:_0x2ad018,shapeData:_0x4f2af8}=_0x10a926,_0x48e028=_0xc446f1[_0x5b3dc9(0x170)](_0x1a79ea,_0xc7d63f,_0x504466);if(_0x48e028){const _0x35154d=_0x48e028[_0x5b3dc9(0x1a2)](),_0x42a401=Object['assign']({},_0x48e028[_0x5b3dc9(0x179)]()),_0x497d1f={'unitId':_0x1a79ea,'subUnitId':_0xc7d63f,'shapeId':_0x504466,'shapeType':_0x2ad018,'shapeData':_0x4f2af8},_0xc60d0e={'unitId':_0x1a79ea,'subUnitId':_0xc7d63f,'shapeId':_0x504466,'shapeType':_0x35154d,'shapeData':_0x42a401};return _0x2fe113['push']({'id':u['id'],'params':_0x497d1f}),_0x4fdd14[_0x5b3dc9(0x187)]({'id':u['id'],'params':_0xc60d0e}),_0x2fe113[_0x5b3dc9(0x168)](_0x4641a2=>_0x2c32e4[_0x5b3dc9(0x165)](_0x4641a2['id'],_0x4641a2[_0x5b3dc9(0x1ad)]))&&_0x49cda3[_0x5b3dc9(0x19e)]({'unitID':_0x1a79ea,'redoMutations':[..._0x2fe113],'undoMutations':[..._0x4fdd14]}),!0x0;}return!0x1;}},Y={'id':_0x4e4a5c(0x185),'type':_0x4c55f2[_0x4e4a5c(0x172)],'handler':(_0x18b41a,_0x463dc7)=>{const _0x1c6f20=_0x4e4a5c,{unitId:_0x195bcc,subUnitId:_0x1574d7,shapeType:_0x56a48e,shapeId:_0x39f756,shapeData:_0x5a0d9d}=_0x463dc7;return _0x18b41a[_0x1c6f20(0x1ae)](i)[_0x1c6f20(0x193)](_0x195bcc,_0x1574d7,_0x56a48e,_0x39f756,_0x5a0d9d),!0x0;}},q={'id':_0x4e4a5c(0x18c),'type':_0x4c55f2[_0x4e4a5c(0x172)],'handler':(_0x503750,_0x325d49)=>{const _0x2ad280=_0x4e4a5c,{unitId:_0x1973da,subUnitId:_0x596d81,shapeId:_0x3bdc0e}=_0x325d49;return _0x503750['get'](i)[_0x2ad280(0x16e)](_0x1973da,_0x596d81,_0x3bdc0e),!0x0;}},Q={'id':_0x4e4a5c(0x190),'type':_0x4c55f2[_0x4e4a5c(0x172)],'handler':(_0x4d1f5f,_0x512bb7)=>{const _0xea6969=_0x4e4a5c,{unitId:_0x2f93b6,subUnitId:_0x11749b,shapeType:_0x527cff,shapeId:_0x4a77fd,shapeData:_0x1258b}=_0x512bb7,_0x335f9c=_0x4d1f5f[_0xea6969(0x1ae)](i)[_0xea6969(0x170)](_0x2f93b6,_0x11749b,_0x4a77fd);return _0x335f9c&&(_0x527cff!==void 0x0&&_0x335f9c[_0xea6969(0x16d)](_0x527cff),_0x1258b&&(_0x335f9c==null||_0x335f9c[_0xea6969(0x184)](_0x1258b,!0x0))),!0x0;}},X=_0x4e4a5c(0x18a),m={};var Z=Object[_0x4e4a5c(0x1ab)],k=Object[_0x4e4a5c(0x167)],ee=(_0x1a47de,_0x944f4c,_0x2663c0)=>_0x944f4c in _0x1a47de?Z(_0x1a47de,_0x944f4c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2663c0}):_0x1a47de[_0x944f4c]=_0x2663c0,ae=(_0x509337,_0x1cff3f,_0x2201c2,_0xc46083)=>{const _0xe1b27f=_0x4e4a5c;for(var _0x2b1db4=_0xc46083>0x1?void 0x0:_0xc46083?k(_0x1cff3f,_0x2201c2):_0x1cff3f,_0x2db625=_0x509337[_0xe1b27f(0x161)]-0x1,_0x193b88;_0x2db625>=0x0;_0x2db625--)(_0x193b88=_0x509337[_0x2db625])&&(_0x2b1db4=_0x193b88(_0x2b1db4)||_0x2b1db4);return _0x2b1db4;},g=(_0xd7b7b4,_0x5a3daf)=>(_0x964723,_0x4f22fb)=>_0x5a3daf(_0x964723,_0x4f22fb,_0xd7b7b4),E=(_0x2114a3,_0x301d4e,_0x28bf00)=>ee(_0x2114a3,typeof _0x301d4e!=_0x4e4a5c(0x16c)?_0x301d4e+'':_0x301d4e,_0x28bf00);const se=_0x4e4a5c(0x176);function _0x56dc(){const _0x409f76=['COMMAND','shapeId','getShapeRelation','getShapeDataById','add','_config','defineProperty','2117269RTmOpP','params','get','_configService','setConfig','toJSON','90YDzHJC','length','forEach','registerPluginResource','clear','syncExecuteCommand','_initSnapshot','getOwnPropertyDescriptor','every','_ensureShapeModelManager','stringify','_commandService','symbol','setShapeType','removeShape','_resourcesManagerService','getShapeModel','shapeData','MUTATION','parse','_shapeModelManagerMap','getLineShapeRelation','SHEET_SHAPE_PLUGIN','set','_disposed','getShapeData','10212072XNqXpy','dispose','_linesIds','has','type','keys','6UNlvVx','5anYBpm','onStarting','delete','setShapeData','sheet.mutation.insert-shape','sheet.mutation.update-shape-type','push','_deserializeShapeForUnit','UNIVER_SHEET','sheets-shape.config','addShape','sheet.mutation.remove-shape','4aJTIIk','1560pumAjL','_initCommands','sheet.mutation.update-shape-data','fromJSON','_injector','insertShape','getBasicShapeType','from','1686741YoKKSQ','getBasicShapeRelation','isLineShape','_groupIds','registerCommand','1656025CiGECi','740rpIgLY','404930bzNold','pushUndoRedo','hasShape','_shapes','getShapeTypeById','getShapeType','sheet.command.update-shape-type','20629qSDmej'];_0x56dc=function(){return _0x409f76;};return _0x56dc();}let S=class extends _0x18c956{constructor(_0x1cd560=m,_0x4057bc,_0x5e44c9,_0x16938f){const _0x4710c9=_0x4e4a5c;super(),this[_0x4710c9(0x1aa)]=_0x1cd560,this[_0x4710c9(0x192)]=_0x4057bc,this[_0x4710c9(0x16b)]=_0x5e44c9,this[_0x4710c9(0x1af)]=_0x16938f;const {..._0x40b735}=_0x2055be({},m,this[_0x4710c9(0x1aa)]);this[_0x4710c9(0x1af)][_0x4710c9(0x1b0)](X,_0x40b735),this[_0x4710c9(0x18f)]();}['onRendered'](){const _0x563bff=_0x4e4a5c;_0x613ba3(this[_0x563bff(0x192)],[]);}[_0x4e4a5c(0x182)](){const _0x442355=_0x4e4a5c,_0x244504=this[_0x442355(0x192)];[[T],[i]][_0x442355(0x162)](_0x1bdd93=>_0x244504[_0x442355(0x1a9)](_0x1bdd93));}[_0x4e4a5c(0x18f)](){const _0x282c13=_0x4e4a5c;[Y,q,u,Q]['forEach'](_0x11700c=>this['disposeWithMe'](this[_0x282c13(0x16b)][_0x282c13(0x19a)](_0x11700c)));}};E(S,_0x4e4a5c(0x17e),_0x45f854[_0x4e4a5c(0x189)]),E(S,'pluginName',se),S=ae([_0xeef180(_0x436710),g(0x1,_0x3d7af3(_0x5a2b14)),g(0x2,_0x3a7dfe),g(0x3,_0x56cd6e)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
1
+ const _0x3ff888=_0x4e6f;(function(_0xb6cc11,_0x51e16b){const _0x511fe0=_0x4e6f,_0x4816b8=_0xb6cc11();while(!![]){try{const _0x15453c=parseInt(_0x511fe0(0xea))/0x1+-parseInt(_0x511fe0(0x11e))/0x2*(parseInt(_0x511fe0(0x119))/0x3)+-parseInt(_0x511fe0(0xe3))/0x4*(-parseInt(_0x511fe0(0x11f))/0x5)+parseInt(_0x511fe0(0xf9))/0x6*(-parseInt(_0x511fe0(0x11b))/0x7)+parseInt(_0x511fe0(0x105))/0x8*(-parseInt(_0x511fe0(0xe9))/0x9)+-parseInt(_0x511fe0(0xe4))/0xa*(-parseInt(_0x511fe0(0x115))/0xb)+parseInt(_0x511fe0(0x116))/0xc;if(_0x15453c===_0x51e16b)break;else _0x4816b8['push'](_0x4816b8['shift']());}catch(_0x4691f2){_0x4816b8['push'](_0x4816b8['shift']());}}}(_0x131d,0x5ea04));var R=Object['defineProperty'],C=(_0x5706b7,_0x3c38ab,_0x26cc2a)=>_0x3c38ab in _0x5706b7?R(_0x5706b7,_0x3c38ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26cc2a}):_0x5706b7[_0x3c38ab]=_0x26cc2a,d=(_0x498909,_0x33e61b,_0x42406c)=>C(_0x498909,typeof _0x33e61b!='symbol'?_0x33e61b+'':_0x33e61b,_0x42406c);import{Disposable as _0x52dc16,UniverInstanceType as _0x107b27,IResourceManagerService as _0x119863,CommandType as _0x2b08be,ICommandService as _0x11fca2,IUndoRedoService as _0xec8a3,DependentOn as _0x15f9bd,Inject as _0x574c09,Injector as _0x1a8826,Plugin as _0x665b7d,merge as _0x4f2c70,touchDependencies as _0x434c38,IConfigService as _0x2c4b94}from'@univerjs/core';import{ShapeModel as _0x5ba7a0,isConnectorShape as _0x2979b2}from'@univerjs-pro/engine-shape';function _0x4e6f(_0x1013d,_0x34a829){_0x1013d=_0x1013d-0xdb;const _0x131d49=_0x131d();let _0x4e6ff1=_0x131d49[_0x1013d];return _0x4e6ff1;}import{UniverLicensePlugin as _0x1070ce}from'@univerjs-pro/license';class T extends _0x52dc16{constructor(){const _0x3e07e8=_0x4e6f;super(),d(this,'_shapes',new Map()),d(this,_0x3e07e8(0xee),new Set()),d(this,_0x3e07e8(0xe6),new Set());}['addShape'](_0xd4eb03,_0x5695ec,_0x405ed0){const _0x5b0b18=_0x4e6f,_0x6086a1=new _0x5ba7a0(_0xd4eb03,_0x5695ec,_0x405ed0);return this[_0x5b0b18(0xef)]['set'](_0x5695ec,_0x6086a1),_0x2979b2(_0xd4eb03)&&this[_0x5b0b18(0xee)][_0x5b0b18(0x127)](_0x5695ec),_0x6086a1;}[_0x3ff888(0x106)](_0x59232c){const _0x27c2d9=_0x3ff888;var _0x13301a,_0x5a4a73;const _0x42f730=[];for(const _0x31b189 of this[_0x27c2d9(0xee)]){const _0x50086a=this['_shapes'][_0x27c2d9(0x128)](_0x31b189);if(_0x50086a){const _0x2ae5da=_0x50086a[_0x27c2d9(0x118)]();_0x2ae5da&&(((_0x13301a=_0x2ae5da['from'])==null?void 0x0:_0x13301a['shapeId'])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da[_0x27c2d9(0x104)],'lineShapeId':_0x31b189,'isFrom':!0x0}),((_0x5a4a73=_0x2ae5da['to'])==null?void 0x0:_0x5a4a73[_0x27c2d9(0xfa)])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da['to'],'lineShapeId':_0x31b189,'isFrom':!0x1}));}}return _0x42f730;}[_0x3ff888(0xdd)](_0x48dc81){const _0x2605c2=_0x3ff888,_0x27fdbf=this[_0x2605c2(0xef)][_0x2605c2(0x128)](_0x48dc81);if(_0x27fdbf)return _0x27fdbf[_0x2605c2(0x118)]();}[_0x3ff888(0xff)](_0x26bd7a){const _0x5d0ea8=_0x3ff888,_0x24c24a=this[_0x5d0ea8(0xef)]['get'](_0x26bd7a);if(_0x24c24a)return _0x24c24a[_0x5d0ea8(0xff)]();}[_0x3ff888(0x110)](_0x40ee11){const _0x1f17c8=_0x3ff888;return this[_0x1f17c8(0xef)][_0x1f17c8(0xf7)](_0x40ee11);}['removeShape'](_0x137cad){const _0x1d3dd5=_0x3ff888,_0x3e7744=this[_0x1d3dd5(0xef)][_0x1d3dd5(0x128)](_0x137cad);_0x3e7744&&(_0x2979b2(_0x3e7744[_0x1d3dd5(0xff)]())&&this['_linesIds'][_0x1d3dd5(0x101)](_0x137cad),this[_0x1d3dd5(0xef)][_0x1d3dd5(0x101)](_0x137cad));}['toJSON'](){const _0x43558d=_0x3ff888,_0x49f00c=[];return this[_0x43558d(0xef)]['forEach'](_0x17a874=>{_0x49f00c['push'](_0x17a874['toJSON']());}),_0x49f00c;}[_0x3ff888(0x112)](_0x4258cc){const _0x45ac54=_0x3ff888;for(const _0xf01c85 of _0x4258cc){const {id:_0x45e27b,shapeType:_0x5c07fc}=_0xf01c85,_0x4d6468=this[_0x45ac54(0x124)](_0x5c07fc,_0x45e27b,_0xf01c85['shapeData']);_0x4d6468&&_0x4d6468['isLineShape']()&&this[_0x45ac54(0xee)]['add'](_0x45e27b);}}[_0x3ff888(0x11d)](){const _0x170860=_0x3ff888;this[_0x170860(0xf4)]||(this[_0x170860(0xef)]['forEach'](_0x4ac489=>{_0x4ac489['dispose']();}),this[_0x170860(0xef)][_0x170860(0x10e)](),this[_0x170860(0xee)][_0x170860(0x10e)](),this[_0x170860(0xe6)][_0x170860(0x10e)](),super[_0x170860(0x11d)]());}}var $=Object[_0x3ff888(0x11a)],V=(_0x42459a,_0x5f335d,_0x5f5bab,_0x5d22f9)=>{const _0x52805c=_0x3ff888;for(var _0x3d864e=_0x5d22f9>0x1?void 0x0:_0x5d22f9?$(_0x5f335d,_0x5f5bab):_0x5f335d,_0x3f8260=_0x42459a[_0x52805c(0x11c)]-0x1,_0x234de0;_0x3f8260>=0x0;_0x3f8260--)(_0x234de0=_0x42459a[_0x3f8260])&&(_0x3d864e=_0x234de0(_0x3d864e)||_0x3d864e);return _0x3d864e;},K=(_0x2a6e24,_0x533426)=>(_0x13b098,_0x2ee0bb)=>_0x533426(_0x13b098,_0x2ee0bb,_0x2a6e24);function _0x131d(){const _0x3b06e7=['length','dispose','2tBWiPZ','89345rxuaff','push','_injector','SHEET_SHAPE_PLUGIN','_config','addShape','setShapeType','keys','add','get','syncExecuteCommand','sheet.mutation.update-shape-data','getLineShapeRelation','_ensureShapeModelManager','sheet.mutation.update-shape-type','parse','onRendered','getShapeDataById','76KjxcAU','10hvaREo','toJSON','_groupIds','setShapeData','_resourcesManagerService','2697075xBQwYS','664229pjSQxd','symbol','assign','getShapeTypeById','_linesIds','_shapes','_serializeShapeForUnit','registerPluginResource','MUTATION','_shapeModelManagerMap','_disposed','sheet.command.update-shape-type','_deserializeShapeForUnit','has','forEach','24qbIDqz','shapeId','_initSnapshot','every','insertShape','type','getShapeType','UNIVER_SHEET','delete','COMMAND','_configService','from','8YzPVyM','getBasicShapeRelation','removeShape','pushUndoRedo','disposeWithMe','getShapeData','onStarting','setConfig','_initCommands','clear','pluginName','hasShape','getShapeModel','fromJSON','set','registerCommand','4949054ANrgBb','30276sdHtHP','_commandService','getShapeRelation','1959822cbtKqV','getOwnPropertyDescriptor','202370XuBBcb'];_0x131d=function(){return _0x3b06e7;};return _0x131d();}const W=_0x3ff888(0x122);let i=class extends _0x52dc16{constructor(_0x4583a1){const _0x290d69=_0x3ff888;super(),d(this,_0x290d69(0xf3),new Map()),(this[_0x290d69(0xe8)]=_0x4583a1,this[_0x290d69(0xfb)]());}['_ensureShapeModelManager'](_0x3fa9b5,_0x44fa13){const _0x14b57c=_0x3ff888;let _0x568647=this[_0x14b57c(0xf3)][_0x14b57c(0x128)](_0x3fa9b5);_0x568647||(_0x568647=new Map(),this[_0x14b57c(0xf3)][_0x14b57c(0x113)](_0x3fa9b5,_0x568647));let _0x538727=_0x568647[_0x14b57c(0x128)](_0x44fa13);return _0x538727||(_0x538727=new T(),_0x568647[_0x14b57c(0x113)](_0x44fa13,_0x538727)),_0x538727;}[_0x3ff888(0xfd)](_0x594cce,_0x179478,_0x5b2584,_0x35f361,_0x377834){const _0x8a54c=_0x3ff888;this[_0x8a54c(0xde)](_0x594cce,_0x179478)[_0x8a54c(0x124)](_0x5b2584,_0x35f361,_0x377834);}[_0x3ff888(0x107)](_0x7cb3cf,_0x2173dc,_0x602daf){const _0x3801aa=_0x3ff888;this[_0x3801aa(0xde)](_0x7cb3cf,_0x2173dc)[_0x3801aa(0x107)](_0x602daf);}['getBasicShapeType'](_0x3470ef,_0xf9c691,_0x39bbff){const _0x389e08=_0x3ff888;return this[_0x389e08(0xde)](_0x3470ef,_0xf9c691)[_0x389e08(0xff)](_0x39bbff);}[_0x3ff888(0xff)](_0x1bd6bc,_0x3fd9e5,_0x151bfb){const _0xb008d8=_0x3ff888;return this[_0xb008d8(0xde)](_0x1bd6bc,_0x3fd9e5)['getShapeType'](_0x151bfb);}['hasShape'](_0x4f32dc,_0x3c434f,_0x2c79f2){const _0x4c7bf4=_0x3ff888;return this['_ensureShapeModelManager'](_0x4f32dc,_0x3c434f)[_0x4c7bf4(0x110)](_0x2c79f2);}[_0x3ff888(0xed)](_0x46b879,_0x4dbd7c,_0x509c14){const _0x504108=_0x3ff888;return this[_0x504108(0xde)](_0x46b879,_0x4dbd7c)[_0x504108(0xff)](_0x509c14);}[_0x3ff888(0xe2)](_0x37d72e,_0x7ae954,_0x4172fa){const _0x1fdd4e=_0x3ff888,_0x4ddd5c=this[_0x1fdd4e(0xde)](_0x37d72e,_0x7ae954);if(!_0x4ddd5c[_0x1fdd4e(0xff)](_0x4172fa))return;const _0x25246d=_0x4ddd5c[_0x1fdd4e(0xef)]['get'](_0x4172fa);if(_0x25246d)return _0x25246d['getShapeData']();}[_0x3ff888(0x111)](_0x17ef44,_0x4d9d5b,_0x3af3c7){const _0x21149a=_0x3ff888;return this[_0x21149a(0xde)](_0x17ef44,_0x4d9d5b)['_shapes'][_0x21149a(0x128)](_0x3af3c7);}[_0x3ff888(0x106)](_0x3e7383,_0xb9a35a,_0x520f25){const _0x332d8d=_0x3ff888;return this['_ensureShapeModelManager'](_0x3e7383,_0xb9a35a)[_0x332d8d(0x106)](_0x520f25);}[_0x3ff888(0xdd)](_0x5982dd,_0x5dd3da,_0x4a7f48){const _0x10ecd7=_0x3ff888,_0x313a6a=this[_0x10ecd7(0xde)](_0x5982dd,_0x5dd3da)['_shapes']['get'](_0x4a7f48);if(_0x313a6a)return _0x313a6a['getShapeRelation']();}[_0x3ff888(0x125)](){}[_0x3ff888(0xf0)](_0x708977){const _0x16b9de=_0x3ff888,_0x2c63e5={},_0x5c6c9f=this[_0x16b9de(0xf3)][_0x16b9de(0x128)](_0x708977);return _0x5c6c9f&&_0x5c6c9f['forEach']((_0x264603,_0x210316)=>{const _0xe1985c=_0x16b9de,_0x56e674=_0x264603[_0xe1985c(0xe5)]();_0x56e674['length']>0x0&&(_0x2c63e5[_0x210316]=_0x56e674);}),JSON['stringify'](_0x2c63e5);}[_0x3ff888(0xf6)](_0xd15a5e,_0x1e4467){const _0x449a08=_0x3ff888;Object[_0x449a08(0x126)](_0x1e4467)[_0x449a08(0xf8)](_0x374727=>{const _0x59e184=_0x449a08;this[_0x59e184(0xde)](_0xd15a5e,_0x374727)[_0x59e184(0x112)](_0x1e4467[_0x374727]);});}['toJSON'](){const _0x316701=_0x3ff888,_0x4f881a={};return this[_0x316701(0xf3)][_0x316701(0xf8)]((_0x1f143a,_0x3bb1a9)=>{_0x4f881a[_0x3bb1a9]={},_0x1f143a['forEach']((_0x3e299d,_0x274175)=>{const _0x402722=_0x4e6f;_0x4f881a[_0x3bb1a9][_0x274175]=_0x3e299d[_0x402722(0xe5)]();});}),_0x4f881a;}[_0x3ff888(0x112)](_0x259932){const _0x3637df=_0x3ff888;Object[_0x3637df(0x126)](_0x259932)[_0x3637df(0xf8)](_0x1464e3=>{const _0x140f98=_0x3637df,_0x1aa49f=_0x259932[_0x1464e3];Object[_0x140f98(0x126)](_0x1aa49f)['forEach'](_0x4501e8=>{const _0x307a40=_0x140f98;this[_0x307a40(0xde)](_0x1464e3,_0x4501e8)[_0x307a40(0x112)](_0x1aa49f[_0x4501e8]);});});}[_0x3ff888(0xfb)](){const _0x45d585=_0x3ff888;this[_0x45d585(0xe8)][_0x45d585(0xf1)]({'pluginName':W,'businesses':[_0x107b27[_0x45d585(0x100)]],'toJson':_0x29ec47=>this[_0x45d585(0xf0)](_0x29ec47),'parseJson':_0x29e55d=>JSON[_0x45d585(0xe0)](_0x29e55d),'onLoad':(_0x1c8e04,_0xfd3011)=>{const _0x23997d=_0x45d585;this[_0x23997d(0xf6)](_0x1c8e04,_0xfd3011);},'onUnLoad':_0x1780d6=>{const _0x3f8d30=_0x45d585,_0x375752=this[_0x3f8d30(0xf3)][_0x3f8d30(0x128)](_0x1780d6);_0x375752&&(_0x375752[_0x3f8d30(0xf8)](_0x3f4978=>{const _0x2042c4=_0x3f8d30;_0x3f4978[_0x2042c4(0x11d)]();}),this[_0x3f8d30(0xf3)][_0x3f8d30(0x101)](_0x1780d6));}});}[_0x3ff888(0x11d)](){const _0x1f5124=_0x3ff888;this[_0x1f5124(0xf3)][_0x1f5124(0xf8)](_0x43cc45=>{const _0xfa53b2=_0x1f5124;_0x43cc45[_0xfa53b2(0xf8)](_0x1f2af7=>{const _0x105228=_0xfa53b2;_0x1f2af7[_0x105228(0x11d)]();});});}};i=V([K(0x0,_0x119863)],i);const u={'id':_0x3ff888(0xdf),'type':_0x2b08be['MUTATION'],'handler':(_0x4c8b46,_0x15041d)=>{const _0x5bf80e=_0x3ff888,{unitId:_0x172e2c,subUnitId:_0x33ee5c,shapeType:_0x4a62ef,shapeId:_0x14108c,shapeData:_0xcfd736}=_0x15041d,_0x408b3a=_0x4c8b46[_0x5bf80e(0x128)](i)[_0x5bf80e(0x111)](_0x172e2c,_0x33ee5c,_0x14108c);return _0x408b3a&&(_0x408b3a[_0x5bf80e(0x125)](_0x4a62ef),_0xcfd736&&(_0x408b3a==null||_0x408b3a[_0x5bf80e(0xe7)](_0xcfd736))),!0x0;}},pe={'id':_0x3ff888(0xf5),'type':_0x2b08be[_0x3ff888(0x102)],'handler':(_0x330475,_0x26593e)=>{const _0x28bfdf=_0x3ff888;if(!_0x26593e)return!0x1;const _0x5696ae=_0x330475['get'](_0x11fca2),_0x43be42=_0x330475[_0x28bfdf(0x128)](i),_0x151ba4=_0x330475['get'](_0xec8a3),_0x1f56e0=[],_0x4cd9f5=[],{unitId:_0x462a75,subUnitId:_0x45a086,shapeId:_0xc4b5dc,shapeType:_0x61cb85,shapeData:_0x5840a4}=_0x26593e,_0xa0a92e=_0x43be42['getShapeModel'](_0x462a75,_0x45a086,_0xc4b5dc);if(_0xa0a92e){const _0x32a0be=_0xa0a92e['getShapeType'](),_0x2a0e0c=Object[_0x28bfdf(0xec)]({},_0xa0a92e[_0x28bfdf(0x10a)]()),_0x409408={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x61cb85,'shapeData':_0x5840a4},_0x8cd1a6={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x32a0be,'shapeData':_0x2a0e0c};return _0x1f56e0[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x409408}),_0x4cd9f5[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x8cd1a6}),_0x1f56e0[_0x28bfdf(0xfc)](_0x39d469=>_0x5696ae[_0x28bfdf(0xdb)](_0x39d469['id'],_0x39d469['params']))&&_0x151ba4[_0x28bfdf(0x108)]({'unitID':_0x462a75,'redoMutations':[..._0x1f56e0],'undoMutations':[..._0x4cd9f5]}),!0x0;}return!0x1;}},Y={'id':'sheet.mutation.insert-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x95da33,_0x309a76)=>{const _0x277b0e=_0x3ff888,{unitId:_0x32fec5,subUnitId:_0x1a2ff4,shapeType:_0x516807,shapeId:_0x307460,shapeData:_0x3abc1c}=_0x309a76;return _0x95da33[_0x277b0e(0x128)](i)['insertShape'](_0x32fec5,_0x1a2ff4,_0x516807,_0x307460,_0x3abc1c),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x570f1d,_0x2e1297)=>{const _0x37d1dd=_0x3ff888,{unitId:_0x23d1ab,subUnitId:_0x45742e,shapeId:_0x3a3dcc}=_0x2e1297;return _0x570f1d[_0x37d1dd(0x128)](i)['removeShape'](_0x23d1ab,_0x45742e,_0x3a3dcc),!0x0;}},Q={'id':_0x3ff888(0xdc),'type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0xcf2400,_0x599efc)=>{const _0x1941d2=_0x3ff888,{unitId:_0x3e996e,subUnitId:_0x1ff04b,shapeType:_0x203604,shapeId:_0x495970,shapeData:_0x397f8e}=_0x599efc,_0x1c35f1=_0xcf2400[_0x1941d2(0x128)](i)[_0x1941d2(0x111)](_0x3e996e,_0x1ff04b,_0x495970);return _0x1c35f1&&(_0x203604!==void 0x0&&_0x1c35f1['setShapeType'](_0x203604),_0x397f8e&&(_0x1c35f1==null||_0x1c35f1[_0x1941d2(0xe7)](_0x397f8e,!0x0))),!0x0;}},X='sheets-shape.config',m={};var Z=Object['defineProperty'],k=Object[_0x3ff888(0x11a)],ee=(_0xe29c5e,_0x40d766,_0x169a84)=>_0x40d766 in _0xe29c5e?Z(_0xe29c5e,_0x40d766,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x169a84}):_0xe29c5e[_0x40d766]=_0x169a84,ae=(_0x537f3a,_0x25cb92,_0x443a28,_0xf104ac)=>{const _0x2cd593=_0x3ff888;for(var _0x3ed6f2=_0xf104ac>0x1?void 0x0:_0xf104ac?k(_0x25cb92,_0x443a28):_0x25cb92,_0x45fafe=_0x537f3a[_0x2cd593(0x11c)]-0x1,_0x2bedcc;_0x45fafe>=0x0;_0x45fafe--)(_0x2bedcc=_0x537f3a[_0x45fafe])&&(_0x3ed6f2=_0x2bedcc(_0x3ed6f2)||_0x3ed6f2);return _0x3ed6f2;},g=(_0x292061,_0x365684)=>(_0x284e86,_0x5f46a6)=>_0x365684(_0x284e86,_0x5f46a6,_0x292061),E=(_0x3ccf84,_0x2735e1,_0x1d7dd0)=>ee(_0x3ccf84,typeof _0x2735e1!=_0x3ff888(0xeb)?_0x2735e1+'':_0x2735e1,_0x1d7dd0);const se=_0x3ff888(0x122);let S=class extends _0x665b7d{constructor(_0x591af2=m,_0x34eb29,_0x2df2b6,_0x2caeb6){const _0x308fa9=_0x3ff888;super(),this[_0x308fa9(0x123)]=_0x591af2,this[_0x308fa9(0x121)]=_0x34eb29,this[_0x308fa9(0x117)]=_0x2df2b6,this['_configService']=_0x2caeb6;const {..._0x2d2f88}=_0x4f2c70({},m,this['_config']);this[_0x308fa9(0x103)][_0x308fa9(0x10c)](X,_0x2d2f88),this['_initCommands']();}[_0x3ff888(0xe1)](){_0x434c38(this['_injector'],[]);}[_0x3ff888(0x10b)](){const _0x2db0a6=_0x3ff888,_0x14a605=this[_0x2db0a6(0x121)];[[T],[i]][_0x2db0a6(0xf8)](_0x1b3b00=>_0x14a605[_0x2db0a6(0x127)](_0x1b3b00));}[_0x3ff888(0x10d)](){const _0x4a7877=_0x3ff888;[Y,q,u,Q][_0x4a7877(0xf8)](_0x257e64=>this[_0x4a7877(0x109)](this[_0x4a7877(0x117)][_0x4a7877(0x114)](_0x257e64)));}};E(S,_0x3ff888(0xfe),_0x107b27[_0x3ff888(0x100)]),E(S,_0x3ff888(0x10f),se),S=ae([_0x15f9bd(_0x1070ce),g(0x1,_0x574c09(_0x1a8826)),g(0x2,_0x11fca2),g(0x3,_0x2c4b94)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4e4a5c=_0x50c5;function _0x50c5(_0x10b9de,_0x51305f){_0x10b9de=_0x10b9de-0x15f;const _0x56dc31=_0x56dc();let _0x50c567=_0x56dc31[_0x10b9de];return _0x50c567;}(function(_0x10a253,_0x6306be){const _0x2d6ffc=_0x50c5,_0x25cce9=_0x10a253();while(!![]){try{const _0x38c2e4=parseInt(_0x2d6ffc(0x181))/0x1*(-parseInt(_0x2d6ffc(0x19c))/0x2)+-parseInt(_0x2d6ffc(0x196))/0x3*(-parseInt(_0x2d6ffc(0x18d))/0x4)+parseInt(_0x2d6ffc(0x19b))/0x5*(-parseInt(_0x2d6ffc(0x180))/0x6)+-parseInt(_0x2d6ffc(0x1a4))/0x7*(parseInt(_0x2d6ffc(0x18e))/0x8)+parseInt(_0x2d6ffc(0x160))/0x9*(-parseInt(_0x2d6ffc(0x19d))/0xa)+parseInt(_0x2d6ffc(0x1ac))/0xb+parseInt(_0x2d6ffc(0x17a))/0xc;if(_0x38c2e4===_0x6306be)break;else _0x25cce9['push'](_0x25cce9['shift']());}catch(_0x3ff988){_0x25cce9['push'](_0x25cce9['shift']());}}}(_0x56dc,0x478da));var R=Object[_0x4e4a5c(0x1ab)],C=(_0x3b207c,_0x767b4c,_0x3383c4)=>_0x767b4c in _0x3b207c?R(_0x3b207c,_0x767b4c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3383c4}):_0x3b207c[_0x767b4c]=_0x3383c4,d=(_0x52af5d,_0x102f89,_0x514bb2)=>C(_0x52af5d,typeof _0x102f89!='symbol'?_0x102f89+'':_0x102f89,_0x514bb2);import{Disposable as _0x1d04e4,UniverInstanceType as _0x45f854,IResourceManagerService as _0x12d9ff,CommandType as _0x4c55f2,ICommandService as _0x3a7dfe,IUndoRedoService as _0x341386,DependentOn as _0xeef180,Inject as _0x3d7af3,Injector as _0x5a2b14,Plugin as _0x18c956,merge as _0x2055be,touchDependencies as _0x613ba3,IConfigService as _0x56cd6e}from'@univerjs/core';import{ShapeModel as _0x1ae183,isConnectorShape as _0x691982}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x436710}from'@univerjs-pro/license';class T extends _0x1d04e4{constructor(){const _0x16e01f=_0x4e4a5c;super(),d(this,_0x16e01f(0x1a0),new Map()),d(this,_0x16e01f(0x17c),new Set()),d(this,_0x16e01f(0x199),new Set());}[_0x4e4a5c(0x18b)](_0x5b26e8,_0x2f8545,_0x765743){const _0x151e67=_0x4e4a5c,_0x4ac146=new _0x1ae183(_0x5b26e8,_0x2f8545,_0x765743);return this[_0x151e67(0x1a0)][_0x151e67(0x177)](_0x2f8545,_0x4ac146),_0x691982(_0x5b26e8)&&this[_0x151e67(0x17c)][_0x151e67(0x1a9)](_0x2f8545),_0x4ac146;}[_0x4e4a5c(0x197)](_0x3eec38){const _0x32bdd6=_0x4e4a5c;var _0x168390,_0x2d423b;const _0x31223b=[];for(const _0x3255eb of this[_0x32bdd6(0x17c)]){const _0x194b02=this[_0x32bdd6(0x1a0)][_0x32bdd6(0x1ae)](_0x3255eb);if(_0x194b02){const _0x16b808=_0x194b02[_0x32bdd6(0x1a7)]();_0x16b808&&(((_0x168390=_0x16b808[_0x32bdd6(0x195)])==null?void 0x0:_0x168390[_0x32bdd6(0x1a6)])===_0x3eec38&&_0x31223b[_0x32bdd6(0x187)]({..._0x16b808[_0x32bdd6(0x195)],'lineShapeId':_0x3255eb,'isFrom':!0x0}),((_0x2d423b=_0x16b808['to'])==null?void 0x0:_0x2d423b[_0x32bdd6(0x1a6)])===_0x3eec38&&_0x31223b[_0x32bdd6(0x187)]({..._0x16b808['to'],'lineShapeId':_0x3255eb,'isFrom':!0x1}));}}return _0x31223b;}['getLineShapeRelation'](_0x337dfb){const _0x46ce2d=_0x4e4a5c,_0x20dc65=this[_0x46ce2d(0x1a0)][_0x46ce2d(0x1ae)](_0x337dfb);if(_0x20dc65)return _0x20dc65[_0x46ce2d(0x1a7)]();}[_0x4e4a5c(0x1a2)](_0x52487d){const _0x43ddb2=_0x4e4a5c,_0xcfacaa=this[_0x43ddb2(0x1a0)][_0x43ddb2(0x1ae)](_0x52487d);if(_0xcfacaa)return _0xcfacaa['getShapeType']();}[_0x4e4a5c(0x19f)](_0x564150){const _0x24bc74=_0x4e4a5c;return this[_0x24bc74(0x1a0)][_0x24bc74(0x17d)](_0x564150);}[_0x4e4a5c(0x16e)](_0x232c2e){const _0x2e7e6b=_0x4e4a5c,_0x5172f1=this[_0x2e7e6b(0x1a0)][_0x2e7e6b(0x1ae)](_0x232c2e);_0x5172f1&&(_0x691982(_0x5172f1[_0x2e7e6b(0x1a2)]())&&this[_0x2e7e6b(0x17c)][_0x2e7e6b(0x183)](_0x232c2e),this['_shapes'][_0x2e7e6b(0x183)](_0x232c2e));}['toJSON'](){const _0x348563=_0x4e4a5c,_0x1787da=[];return this[_0x348563(0x1a0)][_0x348563(0x162)](_0x4f8299=>{const _0x1ab1fa=_0x348563;_0x1787da[_0x1ab1fa(0x187)](_0x4f8299[_0x1ab1fa(0x15f)]());}),_0x1787da;}['fromJSON'](_0x3188f1){const _0x57e557=_0x4e4a5c;for(const _0x5f5c0d of _0x3188f1){const {id:_0x468d05,shapeType:_0x557a47}=_0x5f5c0d,_0x17796e=this[_0x57e557(0x18b)](_0x557a47,_0x468d05,_0x5f5c0d[_0x57e557(0x171)]);_0x17796e&&_0x17796e[_0x57e557(0x198)]()&&this[_0x57e557(0x17c)][_0x57e557(0x1a9)](_0x468d05);}}['dispose'](){const _0xa5c956=_0x4e4a5c;this[_0xa5c956(0x178)]||(this[_0xa5c956(0x1a0)][_0xa5c956(0x162)](_0x41d3b5=>{const _0x428c65=_0xa5c956;_0x41d3b5[_0x428c65(0x17b)]();}),this[_0xa5c956(0x1a0)][_0xa5c956(0x164)](),this[_0xa5c956(0x17c)]['clear'](),this[_0xa5c956(0x199)]['clear'](),super[_0xa5c956(0x17b)]());}}var $=Object[_0x4e4a5c(0x167)],V=(_0x5c8a81,_0x14a1cc,_0x3cc8d6,_0x2a3650)=>{const _0x5ba7cd=_0x4e4a5c;for(var _0x45fcba=_0x2a3650>0x1?void 0x0:_0x2a3650?$(_0x14a1cc,_0x3cc8d6):_0x14a1cc,_0x2766ff=_0x5c8a81[_0x5ba7cd(0x161)]-0x1,_0x2047cc;_0x2766ff>=0x0;_0x2766ff--)(_0x2047cc=_0x5c8a81[_0x2766ff])&&(_0x45fcba=_0x2047cc(_0x45fcba)||_0x45fcba);return _0x45fcba;},K=(_0x14e373,_0x5372aa)=>(_0x54c1de,_0x185b4e)=>_0x5372aa(_0x54c1de,_0x185b4e,_0x14e373);const W=_0x4e4a5c(0x176);let i=class extends _0x1d04e4{constructor(_0x5d98f6){const _0x422a5f=_0x4e4a5c;super(),d(this,'_shapeModelManagerMap',new Map()),(this[_0x422a5f(0x16f)]=_0x5d98f6,this['_initSnapshot']());}['_ensureShapeModelManager'](_0x5a017f,_0x36175c){const _0x3e2d9b=_0x4e4a5c;let _0x25064c=this[_0x3e2d9b(0x174)][_0x3e2d9b(0x1ae)](_0x5a017f);_0x25064c||(_0x25064c=new Map(),this[_0x3e2d9b(0x174)][_0x3e2d9b(0x177)](_0x5a017f,_0x25064c));let _0x2dcc64=_0x25064c[_0x3e2d9b(0x1ae)](_0x36175c);return _0x2dcc64||(_0x2dcc64=new T(),_0x25064c[_0x3e2d9b(0x177)](_0x36175c,_0x2dcc64)),_0x2dcc64;}[_0x4e4a5c(0x193)](_0x100d17,_0x313393,_0x61e6d3,_0x59d15d,_0x11d46c){const _0x1d493b=_0x4e4a5c;this[_0x1d493b(0x169)](_0x100d17,_0x313393)[_0x1d493b(0x18b)](_0x61e6d3,_0x59d15d,_0x11d46c);}[_0x4e4a5c(0x16e)](_0x310669,_0x2fec57,_0x5b3720){const _0x309429=_0x4e4a5c;this[_0x309429(0x169)](_0x310669,_0x2fec57)['removeShape'](_0x5b3720);}[_0x4e4a5c(0x194)](_0x50b880,_0x2b2042,_0x3899ff){const _0x41ba9b=_0x4e4a5c;return this['_ensureShapeModelManager'](_0x50b880,_0x2b2042)[_0x41ba9b(0x1a2)](_0x3899ff);}[_0x4e4a5c(0x1a2)](_0x57172d,_0x1ef0a4,_0x3a8dcf){const _0x56969e=_0x4e4a5c;return this[_0x56969e(0x169)](_0x57172d,_0x1ef0a4)[_0x56969e(0x1a2)](_0x3a8dcf);}[_0x4e4a5c(0x19f)](_0x149cf4,_0x45bbfa,_0x370568){const _0x49c57a=_0x4e4a5c;return this[_0x49c57a(0x169)](_0x149cf4,_0x45bbfa)[_0x49c57a(0x19f)](_0x370568);}[_0x4e4a5c(0x1a1)](_0x55b8c3,_0x49b66a,_0x50d659){const _0x110c22=_0x4e4a5c;return this[_0x110c22(0x169)](_0x55b8c3,_0x49b66a)[_0x110c22(0x1a2)](_0x50d659);}[_0x4e4a5c(0x1a8)](_0x5befcb,_0x599461,_0x42a8fc){const _0x4fec85=_0x4e4a5c,_0x45aed9=this[_0x4fec85(0x169)](_0x5befcb,_0x599461);if(!_0x45aed9[_0x4fec85(0x1a2)](_0x42a8fc))return;const _0x306b30=_0x45aed9[_0x4fec85(0x1a0)][_0x4fec85(0x1ae)](_0x42a8fc);if(_0x306b30)return _0x306b30['getShapeData']();}[_0x4e4a5c(0x170)](_0x5c6f7c,_0x146f83,_0xa87e37){const _0x360128=_0x4e4a5c;return this[_0x360128(0x169)](_0x5c6f7c,_0x146f83)[_0x360128(0x1a0)][_0x360128(0x1ae)](_0xa87e37);}[_0x4e4a5c(0x197)](_0x3a374a,_0x13e800,_0x5e0866){const _0x2669d1=_0x4e4a5c;return this[_0x2669d1(0x169)](_0x3a374a,_0x13e800)['getBasicShapeRelation'](_0x5e0866);}[_0x4e4a5c(0x175)](_0xc95689,_0x38f58d,_0x296e81){const _0xc0bb5a=_0x4e4a5c,_0x596c87=this[_0xc0bb5a(0x169)](_0xc95689,_0x38f58d)[_0xc0bb5a(0x1a0)][_0xc0bb5a(0x1ae)](_0x296e81);if(_0x596c87)return _0x596c87[_0xc0bb5a(0x1a7)]();}[_0x4e4a5c(0x16d)](){}['_serializeShapeForUnit'](_0x31f546){const _0x7efa48=_0x4e4a5c,_0x2c3e3f={},_0x5d6640=this[_0x7efa48(0x174)][_0x7efa48(0x1ae)](_0x31f546);return _0x5d6640&&_0x5d6640['forEach']((_0x4c895c,_0x5abd60)=>{const _0x23821b=_0x7efa48,_0x20782c=_0x4c895c[_0x23821b(0x15f)]();_0x20782c[_0x23821b(0x161)]>0x0&&(_0x2c3e3f[_0x5abd60]=_0x20782c);}),JSON[_0x7efa48(0x16a)](_0x2c3e3f);}[_0x4e4a5c(0x188)](_0x264165,_0x4939a9){const _0x59edad=_0x4e4a5c;Object[_0x59edad(0x17f)](_0x4939a9)[_0x59edad(0x162)](_0x49d4e3=>{const _0x330c18=_0x59edad;this[_0x330c18(0x169)](_0x264165,_0x49d4e3)[_0x330c18(0x191)](_0x4939a9[_0x49d4e3]);});}[_0x4e4a5c(0x15f)](){const _0x2c7942=_0x4e4a5c,_0x4c69dc={};return this[_0x2c7942(0x174)][_0x2c7942(0x162)]((_0x3aea35,_0x500d50)=>{const _0x59b6ef=_0x2c7942;_0x4c69dc[_0x500d50]={},_0x3aea35[_0x59b6ef(0x162)]((_0x1891aa,_0x39d584)=>{const _0x1560f7=_0x59b6ef;_0x4c69dc[_0x500d50][_0x39d584]=_0x1891aa[_0x1560f7(0x15f)]();});}),_0x4c69dc;}[_0x4e4a5c(0x191)](_0x5648bf){const _0x4cc128=_0x4e4a5c;Object[_0x4cc128(0x17f)](_0x5648bf)[_0x4cc128(0x162)](_0x3406df=>{const _0xe304d8=_0x4cc128,_0x4583f3=_0x5648bf[_0x3406df];Object['keys'](_0x4583f3)[_0xe304d8(0x162)](_0x4d38b3=>{const _0x5dc7f4=_0xe304d8;this['_ensureShapeModelManager'](_0x3406df,_0x4d38b3)[_0x5dc7f4(0x191)](_0x4583f3[_0x4d38b3]);});});}[_0x4e4a5c(0x166)](){const _0x350ed6=_0x4e4a5c;this['_resourcesManagerService'][_0x350ed6(0x163)]({'pluginName':W,'businesses':[_0x45f854['UNIVER_SHEET']],'toJson':_0x77e19e=>this['_serializeShapeForUnit'](_0x77e19e),'parseJson':_0x291971=>JSON[_0x350ed6(0x173)](_0x291971),'onLoad':(_0x4046fc,_0x10f1b3)=>{const _0x1a30ed=_0x350ed6;this[_0x1a30ed(0x188)](_0x4046fc,_0x10f1b3);},'onUnLoad':_0x159cd9=>{const _0x5361ca=_0x350ed6,_0x41fbb8=this[_0x5361ca(0x174)][_0x5361ca(0x1ae)](_0x159cd9);_0x41fbb8&&(_0x41fbb8[_0x5361ca(0x162)](_0x1301f5=>{const _0x3d5949=_0x5361ca;_0x1301f5[_0x3d5949(0x17b)]();}),this['_shapeModelManagerMap'][_0x5361ca(0x183)](_0x159cd9));}});}[_0x4e4a5c(0x17b)](){const _0x4a8b0e=_0x4e4a5c;this[_0x4a8b0e(0x174)]['forEach'](_0x41a4e8=>{const _0xa8ff9e=_0x4a8b0e;_0x41a4e8[_0xa8ff9e(0x162)](_0x37466d=>{const _0x2982c9=_0xa8ff9e;_0x37466d[_0x2982c9(0x17b)]();});});}};i=V([K(0x0,_0x12d9ff)],i);const u={'id':_0x4e4a5c(0x186),'type':_0x4c55f2[_0x4e4a5c(0x172)],'handler':(_0x436d9b,_0x234976)=>{const _0x3e0261=_0x4e4a5c,{unitId:_0x41c2bb,subUnitId:_0x5ce188,shapeType:_0x49e558,shapeId:_0x3b458f,shapeData:_0x5914cc}=_0x234976,_0x5f5380=_0x436d9b[_0x3e0261(0x1ae)](i)['getShapeModel'](_0x41c2bb,_0x5ce188,_0x3b458f);return _0x5f5380&&(_0x5f5380[_0x3e0261(0x16d)](_0x49e558),_0x5914cc&&(_0x5f5380==null||_0x5f5380[_0x3e0261(0x184)](_0x5914cc))),!0x0;}},pe={'id':_0x4e4a5c(0x1a3),'type':_0x4c55f2[_0x4e4a5c(0x1a5)],'handler':(_0x479a35,_0x10a926)=>{const _0x5b3dc9=_0x4e4a5c;if(!_0x10a926)return!0x1;const _0x2c32e4=_0x479a35[_0x5b3dc9(0x1ae)](_0x3a7dfe),_0xc446f1=_0x479a35[_0x5b3dc9(0x1ae)](i),_0x49cda3=_0x479a35['get'](_0x341386),_0x2fe113=[],_0x4fdd14=[],{unitId:_0x1a79ea,subUnitId:_0xc7d63f,shapeId:_0x504466,shapeType:_0x2ad018,shapeData:_0x4f2af8}=_0x10a926,_0x48e028=_0xc446f1[_0x5b3dc9(0x170)](_0x1a79ea,_0xc7d63f,_0x504466);if(_0x48e028){const _0x35154d=_0x48e028[_0x5b3dc9(0x1a2)](),_0x42a401=Object['assign']({},_0x48e028[_0x5b3dc9(0x179)]()),_0x497d1f={'unitId':_0x1a79ea,'subUnitId':_0xc7d63f,'shapeId':_0x504466,'shapeType':_0x2ad018,'shapeData':_0x4f2af8},_0xc60d0e={'unitId':_0x1a79ea,'subUnitId':_0xc7d63f,'shapeId':_0x504466,'shapeType':_0x35154d,'shapeData':_0x42a401};return _0x2fe113['push']({'id':u['id'],'params':_0x497d1f}),_0x4fdd14[_0x5b3dc9(0x187)]({'id':u['id'],'params':_0xc60d0e}),_0x2fe113[_0x5b3dc9(0x168)](_0x4641a2=>_0x2c32e4[_0x5b3dc9(0x165)](_0x4641a2['id'],_0x4641a2[_0x5b3dc9(0x1ad)]))&&_0x49cda3[_0x5b3dc9(0x19e)]({'unitID':_0x1a79ea,'redoMutations':[..._0x2fe113],'undoMutations':[..._0x4fdd14]}),!0x0;}return!0x1;}},Y={'id':_0x4e4a5c(0x185),'type':_0x4c55f2[_0x4e4a5c(0x172)],'handler':(_0x18b41a,_0x463dc7)=>{const _0x1c6f20=_0x4e4a5c,{unitId:_0x195bcc,subUnitId:_0x1574d7,shapeType:_0x56a48e,shapeId:_0x39f756,shapeData:_0x5a0d9d}=_0x463dc7;return _0x18b41a[_0x1c6f20(0x1ae)](i)[_0x1c6f20(0x193)](_0x195bcc,_0x1574d7,_0x56a48e,_0x39f756,_0x5a0d9d),!0x0;}},q={'id':_0x4e4a5c(0x18c),'type':_0x4c55f2[_0x4e4a5c(0x172)],'handler':(_0x503750,_0x325d49)=>{const _0x2ad280=_0x4e4a5c,{unitId:_0x1973da,subUnitId:_0x596d81,shapeId:_0x3bdc0e}=_0x325d49;return _0x503750['get'](i)[_0x2ad280(0x16e)](_0x1973da,_0x596d81,_0x3bdc0e),!0x0;}},Q={'id':_0x4e4a5c(0x190),'type':_0x4c55f2[_0x4e4a5c(0x172)],'handler':(_0x4d1f5f,_0x512bb7)=>{const _0xea6969=_0x4e4a5c,{unitId:_0x2f93b6,subUnitId:_0x11749b,shapeType:_0x527cff,shapeId:_0x4a77fd,shapeData:_0x1258b}=_0x512bb7,_0x335f9c=_0x4d1f5f[_0xea6969(0x1ae)](i)[_0xea6969(0x170)](_0x2f93b6,_0x11749b,_0x4a77fd);return _0x335f9c&&(_0x527cff!==void 0x0&&_0x335f9c[_0xea6969(0x16d)](_0x527cff),_0x1258b&&(_0x335f9c==null||_0x335f9c[_0xea6969(0x184)](_0x1258b,!0x0))),!0x0;}},X=_0x4e4a5c(0x18a),m={};var Z=Object[_0x4e4a5c(0x1ab)],k=Object[_0x4e4a5c(0x167)],ee=(_0x1a47de,_0x944f4c,_0x2663c0)=>_0x944f4c in _0x1a47de?Z(_0x1a47de,_0x944f4c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2663c0}):_0x1a47de[_0x944f4c]=_0x2663c0,ae=(_0x509337,_0x1cff3f,_0x2201c2,_0xc46083)=>{const _0xe1b27f=_0x4e4a5c;for(var _0x2b1db4=_0xc46083>0x1?void 0x0:_0xc46083?k(_0x1cff3f,_0x2201c2):_0x1cff3f,_0x2db625=_0x509337[_0xe1b27f(0x161)]-0x1,_0x193b88;_0x2db625>=0x0;_0x2db625--)(_0x193b88=_0x509337[_0x2db625])&&(_0x2b1db4=_0x193b88(_0x2b1db4)||_0x2b1db4);return _0x2b1db4;},g=(_0xd7b7b4,_0x5a3daf)=>(_0x964723,_0x4f22fb)=>_0x5a3daf(_0x964723,_0x4f22fb,_0xd7b7b4),E=(_0x2114a3,_0x301d4e,_0x28bf00)=>ee(_0x2114a3,typeof _0x301d4e!=_0x4e4a5c(0x16c)?_0x301d4e+'':_0x301d4e,_0x28bf00);const se=_0x4e4a5c(0x176);function _0x56dc(){const _0x409f76=['COMMAND','shapeId','getShapeRelation','getShapeDataById','add','_config','defineProperty','2117269RTmOpP','params','get','_configService','setConfig','toJSON','90YDzHJC','length','forEach','registerPluginResource','clear','syncExecuteCommand','_initSnapshot','getOwnPropertyDescriptor','every','_ensureShapeModelManager','stringify','_commandService','symbol','setShapeType','removeShape','_resourcesManagerService','getShapeModel','shapeData','MUTATION','parse','_shapeModelManagerMap','getLineShapeRelation','SHEET_SHAPE_PLUGIN','set','_disposed','getShapeData','10212072XNqXpy','dispose','_linesIds','has','type','keys','6UNlvVx','5anYBpm','onStarting','delete','setShapeData','sheet.mutation.insert-shape','sheet.mutation.update-shape-type','push','_deserializeShapeForUnit','UNIVER_SHEET','sheets-shape.config','addShape','sheet.mutation.remove-shape','4aJTIIk','1560pumAjL','_initCommands','sheet.mutation.update-shape-data','fromJSON','_injector','insertShape','getBasicShapeType','from','1686741YoKKSQ','getBasicShapeRelation','isLineShape','_groupIds','registerCommand','1656025CiGECi','740rpIgLY','404930bzNold','pushUndoRedo','hasShape','_shapes','getShapeTypeById','getShapeType','sheet.command.update-shape-type','20629qSDmej'];_0x56dc=function(){return _0x409f76;};return _0x56dc();}let S=class extends _0x18c956{constructor(_0x1cd560=m,_0x4057bc,_0x5e44c9,_0x16938f){const _0x4710c9=_0x4e4a5c;super(),this[_0x4710c9(0x1aa)]=_0x1cd560,this[_0x4710c9(0x192)]=_0x4057bc,this[_0x4710c9(0x16b)]=_0x5e44c9,this[_0x4710c9(0x1af)]=_0x16938f;const {..._0x40b735}=_0x2055be({},m,this[_0x4710c9(0x1aa)]);this[_0x4710c9(0x1af)][_0x4710c9(0x1b0)](X,_0x40b735),this[_0x4710c9(0x18f)]();}['onRendered'](){const _0x563bff=_0x4e4a5c;_0x613ba3(this[_0x563bff(0x192)],[]);}[_0x4e4a5c(0x182)](){const _0x442355=_0x4e4a5c,_0x244504=this[_0x442355(0x192)];[[T],[i]][_0x442355(0x162)](_0x1bdd93=>_0x244504[_0x442355(0x1a9)](_0x1bdd93));}[_0x4e4a5c(0x18f)](){const _0x282c13=_0x4e4a5c;[Y,q,u,Q]['forEach'](_0x11700c=>this['disposeWithMe'](this[_0x282c13(0x16b)][_0x282c13(0x19a)](_0x11700c)));}};E(S,_0x4e4a5c(0x17e),_0x45f854[_0x4e4a5c(0x189)]),E(S,'pluginName',se),S=ae([_0xeef180(_0x436710),g(0x1,_0x3d7af3(_0x5a2b14)),g(0x2,_0x3a7dfe),g(0x3,_0x56cd6e)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
1
+ const _0x3ff888=_0x4e6f;(function(_0xb6cc11,_0x51e16b){const _0x511fe0=_0x4e6f,_0x4816b8=_0xb6cc11();while(!![]){try{const _0x15453c=parseInt(_0x511fe0(0xea))/0x1+-parseInt(_0x511fe0(0x11e))/0x2*(parseInt(_0x511fe0(0x119))/0x3)+-parseInt(_0x511fe0(0xe3))/0x4*(-parseInt(_0x511fe0(0x11f))/0x5)+parseInt(_0x511fe0(0xf9))/0x6*(-parseInt(_0x511fe0(0x11b))/0x7)+parseInt(_0x511fe0(0x105))/0x8*(-parseInt(_0x511fe0(0xe9))/0x9)+-parseInt(_0x511fe0(0xe4))/0xa*(-parseInt(_0x511fe0(0x115))/0xb)+parseInt(_0x511fe0(0x116))/0xc;if(_0x15453c===_0x51e16b)break;else _0x4816b8['push'](_0x4816b8['shift']());}catch(_0x4691f2){_0x4816b8['push'](_0x4816b8['shift']());}}}(_0x131d,0x5ea04));var R=Object['defineProperty'],C=(_0x5706b7,_0x3c38ab,_0x26cc2a)=>_0x3c38ab in _0x5706b7?R(_0x5706b7,_0x3c38ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26cc2a}):_0x5706b7[_0x3c38ab]=_0x26cc2a,d=(_0x498909,_0x33e61b,_0x42406c)=>C(_0x498909,typeof _0x33e61b!='symbol'?_0x33e61b+'':_0x33e61b,_0x42406c);import{Disposable as _0x52dc16,UniverInstanceType as _0x107b27,IResourceManagerService as _0x119863,CommandType as _0x2b08be,ICommandService as _0x11fca2,IUndoRedoService as _0xec8a3,DependentOn as _0x15f9bd,Inject as _0x574c09,Injector as _0x1a8826,Plugin as _0x665b7d,merge as _0x4f2c70,touchDependencies as _0x434c38,IConfigService as _0x2c4b94}from'@univerjs/core';import{ShapeModel as _0x5ba7a0,isConnectorShape as _0x2979b2}from'@univerjs-pro/engine-shape';function _0x4e6f(_0x1013d,_0x34a829){_0x1013d=_0x1013d-0xdb;const _0x131d49=_0x131d();let _0x4e6ff1=_0x131d49[_0x1013d];return _0x4e6ff1;}import{UniverLicensePlugin as _0x1070ce}from'@univerjs-pro/license';class T extends _0x52dc16{constructor(){const _0x3e07e8=_0x4e6f;super(),d(this,'_shapes',new Map()),d(this,_0x3e07e8(0xee),new Set()),d(this,_0x3e07e8(0xe6),new Set());}['addShape'](_0xd4eb03,_0x5695ec,_0x405ed0){const _0x5b0b18=_0x4e6f,_0x6086a1=new _0x5ba7a0(_0xd4eb03,_0x5695ec,_0x405ed0);return this[_0x5b0b18(0xef)]['set'](_0x5695ec,_0x6086a1),_0x2979b2(_0xd4eb03)&&this[_0x5b0b18(0xee)][_0x5b0b18(0x127)](_0x5695ec),_0x6086a1;}[_0x3ff888(0x106)](_0x59232c){const _0x27c2d9=_0x3ff888;var _0x13301a,_0x5a4a73;const _0x42f730=[];for(const _0x31b189 of this[_0x27c2d9(0xee)]){const _0x50086a=this['_shapes'][_0x27c2d9(0x128)](_0x31b189);if(_0x50086a){const _0x2ae5da=_0x50086a[_0x27c2d9(0x118)]();_0x2ae5da&&(((_0x13301a=_0x2ae5da['from'])==null?void 0x0:_0x13301a['shapeId'])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da[_0x27c2d9(0x104)],'lineShapeId':_0x31b189,'isFrom':!0x0}),((_0x5a4a73=_0x2ae5da['to'])==null?void 0x0:_0x5a4a73[_0x27c2d9(0xfa)])===_0x59232c&&_0x42f730[_0x27c2d9(0x120)]({..._0x2ae5da['to'],'lineShapeId':_0x31b189,'isFrom':!0x1}));}}return _0x42f730;}[_0x3ff888(0xdd)](_0x48dc81){const _0x2605c2=_0x3ff888,_0x27fdbf=this[_0x2605c2(0xef)][_0x2605c2(0x128)](_0x48dc81);if(_0x27fdbf)return _0x27fdbf[_0x2605c2(0x118)]();}[_0x3ff888(0xff)](_0x26bd7a){const _0x5d0ea8=_0x3ff888,_0x24c24a=this[_0x5d0ea8(0xef)]['get'](_0x26bd7a);if(_0x24c24a)return _0x24c24a[_0x5d0ea8(0xff)]();}[_0x3ff888(0x110)](_0x40ee11){const _0x1f17c8=_0x3ff888;return this[_0x1f17c8(0xef)][_0x1f17c8(0xf7)](_0x40ee11);}['removeShape'](_0x137cad){const _0x1d3dd5=_0x3ff888,_0x3e7744=this[_0x1d3dd5(0xef)][_0x1d3dd5(0x128)](_0x137cad);_0x3e7744&&(_0x2979b2(_0x3e7744[_0x1d3dd5(0xff)]())&&this['_linesIds'][_0x1d3dd5(0x101)](_0x137cad),this[_0x1d3dd5(0xef)][_0x1d3dd5(0x101)](_0x137cad));}['toJSON'](){const _0x43558d=_0x3ff888,_0x49f00c=[];return this[_0x43558d(0xef)]['forEach'](_0x17a874=>{_0x49f00c['push'](_0x17a874['toJSON']());}),_0x49f00c;}[_0x3ff888(0x112)](_0x4258cc){const _0x45ac54=_0x3ff888;for(const _0xf01c85 of _0x4258cc){const {id:_0x45e27b,shapeType:_0x5c07fc}=_0xf01c85,_0x4d6468=this[_0x45ac54(0x124)](_0x5c07fc,_0x45e27b,_0xf01c85['shapeData']);_0x4d6468&&_0x4d6468['isLineShape']()&&this[_0x45ac54(0xee)]['add'](_0x45e27b);}}[_0x3ff888(0x11d)](){const _0x170860=_0x3ff888;this[_0x170860(0xf4)]||(this[_0x170860(0xef)]['forEach'](_0x4ac489=>{_0x4ac489['dispose']();}),this[_0x170860(0xef)][_0x170860(0x10e)](),this[_0x170860(0xee)][_0x170860(0x10e)](),this[_0x170860(0xe6)][_0x170860(0x10e)](),super[_0x170860(0x11d)]());}}var $=Object[_0x3ff888(0x11a)],V=(_0x42459a,_0x5f335d,_0x5f5bab,_0x5d22f9)=>{const _0x52805c=_0x3ff888;for(var _0x3d864e=_0x5d22f9>0x1?void 0x0:_0x5d22f9?$(_0x5f335d,_0x5f5bab):_0x5f335d,_0x3f8260=_0x42459a[_0x52805c(0x11c)]-0x1,_0x234de0;_0x3f8260>=0x0;_0x3f8260--)(_0x234de0=_0x42459a[_0x3f8260])&&(_0x3d864e=_0x234de0(_0x3d864e)||_0x3d864e);return _0x3d864e;},K=(_0x2a6e24,_0x533426)=>(_0x13b098,_0x2ee0bb)=>_0x533426(_0x13b098,_0x2ee0bb,_0x2a6e24);function _0x131d(){const _0x3b06e7=['length','dispose','2tBWiPZ','89345rxuaff','push','_injector','SHEET_SHAPE_PLUGIN','_config','addShape','setShapeType','keys','add','get','syncExecuteCommand','sheet.mutation.update-shape-data','getLineShapeRelation','_ensureShapeModelManager','sheet.mutation.update-shape-type','parse','onRendered','getShapeDataById','76KjxcAU','10hvaREo','toJSON','_groupIds','setShapeData','_resourcesManagerService','2697075xBQwYS','664229pjSQxd','symbol','assign','getShapeTypeById','_linesIds','_shapes','_serializeShapeForUnit','registerPluginResource','MUTATION','_shapeModelManagerMap','_disposed','sheet.command.update-shape-type','_deserializeShapeForUnit','has','forEach','24qbIDqz','shapeId','_initSnapshot','every','insertShape','type','getShapeType','UNIVER_SHEET','delete','COMMAND','_configService','from','8YzPVyM','getBasicShapeRelation','removeShape','pushUndoRedo','disposeWithMe','getShapeData','onStarting','setConfig','_initCommands','clear','pluginName','hasShape','getShapeModel','fromJSON','set','registerCommand','4949054ANrgBb','30276sdHtHP','_commandService','getShapeRelation','1959822cbtKqV','getOwnPropertyDescriptor','202370XuBBcb'];_0x131d=function(){return _0x3b06e7;};return _0x131d();}const W=_0x3ff888(0x122);let i=class extends _0x52dc16{constructor(_0x4583a1){const _0x290d69=_0x3ff888;super(),d(this,_0x290d69(0xf3),new Map()),(this[_0x290d69(0xe8)]=_0x4583a1,this[_0x290d69(0xfb)]());}['_ensureShapeModelManager'](_0x3fa9b5,_0x44fa13){const _0x14b57c=_0x3ff888;let _0x568647=this[_0x14b57c(0xf3)][_0x14b57c(0x128)](_0x3fa9b5);_0x568647||(_0x568647=new Map(),this[_0x14b57c(0xf3)][_0x14b57c(0x113)](_0x3fa9b5,_0x568647));let _0x538727=_0x568647[_0x14b57c(0x128)](_0x44fa13);return _0x538727||(_0x538727=new T(),_0x568647[_0x14b57c(0x113)](_0x44fa13,_0x538727)),_0x538727;}[_0x3ff888(0xfd)](_0x594cce,_0x179478,_0x5b2584,_0x35f361,_0x377834){const _0x8a54c=_0x3ff888;this[_0x8a54c(0xde)](_0x594cce,_0x179478)[_0x8a54c(0x124)](_0x5b2584,_0x35f361,_0x377834);}[_0x3ff888(0x107)](_0x7cb3cf,_0x2173dc,_0x602daf){const _0x3801aa=_0x3ff888;this[_0x3801aa(0xde)](_0x7cb3cf,_0x2173dc)[_0x3801aa(0x107)](_0x602daf);}['getBasicShapeType'](_0x3470ef,_0xf9c691,_0x39bbff){const _0x389e08=_0x3ff888;return this[_0x389e08(0xde)](_0x3470ef,_0xf9c691)[_0x389e08(0xff)](_0x39bbff);}[_0x3ff888(0xff)](_0x1bd6bc,_0x3fd9e5,_0x151bfb){const _0xb008d8=_0x3ff888;return this[_0xb008d8(0xde)](_0x1bd6bc,_0x3fd9e5)['getShapeType'](_0x151bfb);}['hasShape'](_0x4f32dc,_0x3c434f,_0x2c79f2){const _0x4c7bf4=_0x3ff888;return this['_ensureShapeModelManager'](_0x4f32dc,_0x3c434f)[_0x4c7bf4(0x110)](_0x2c79f2);}[_0x3ff888(0xed)](_0x46b879,_0x4dbd7c,_0x509c14){const _0x504108=_0x3ff888;return this[_0x504108(0xde)](_0x46b879,_0x4dbd7c)[_0x504108(0xff)](_0x509c14);}[_0x3ff888(0xe2)](_0x37d72e,_0x7ae954,_0x4172fa){const _0x1fdd4e=_0x3ff888,_0x4ddd5c=this[_0x1fdd4e(0xde)](_0x37d72e,_0x7ae954);if(!_0x4ddd5c[_0x1fdd4e(0xff)](_0x4172fa))return;const _0x25246d=_0x4ddd5c[_0x1fdd4e(0xef)]['get'](_0x4172fa);if(_0x25246d)return _0x25246d['getShapeData']();}[_0x3ff888(0x111)](_0x17ef44,_0x4d9d5b,_0x3af3c7){const _0x21149a=_0x3ff888;return this[_0x21149a(0xde)](_0x17ef44,_0x4d9d5b)['_shapes'][_0x21149a(0x128)](_0x3af3c7);}[_0x3ff888(0x106)](_0x3e7383,_0xb9a35a,_0x520f25){const _0x332d8d=_0x3ff888;return this['_ensureShapeModelManager'](_0x3e7383,_0xb9a35a)[_0x332d8d(0x106)](_0x520f25);}[_0x3ff888(0xdd)](_0x5982dd,_0x5dd3da,_0x4a7f48){const _0x10ecd7=_0x3ff888,_0x313a6a=this[_0x10ecd7(0xde)](_0x5982dd,_0x5dd3da)['_shapes']['get'](_0x4a7f48);if(_0x313a6a)return _0x313a6a['getShapeRelation']();}[_0x3ff888(0x125)](){}[_0x3ff888(0xf0)](_0x708977){const _0x16b9de=_0x3ff888,_0x2c63e5={},_0x5c6c9f=this[_0x16b9de(0xf3)][_0x16b9de(0x128)](_0x708977);return _0x5c6c9f&&_0x5c6c9f['forEach']((_0x264603,_0x210316)=>{const _0xe1985c=_0x16b9de,_0x56e674=_0x264603[_0xe1985c(0xe5)]();_0x56e674['length']>0x0&&(_0x2c63e5[_0x210316]=_0x56e674);}),JSON['stringify'](_0x2c63e5);}[_0x3ff888(0xf6)](_0xd15a5e,_0x1e4467){const _0x449a08=_0x3ff888;Object[_0x449a08(0x126)](_0x1e4467)[_0x449a08(0xf8)](_0x374727=>{const _0x59e184=_0x449a08;this[_0x59e184(0xde)](_0xd15a5e,_0x374727)[_0x59e184(0x112)](_0x1e4467[_0x374727]);});}['toJSON'](){const _0x316701=_0x3ff888,_0x4f881a={};return this[_0x316701(0xf3)][_0x316701(0xf8)]((_0x1f143a,_0x3bb1a9)=>{_0x4f881a[_0x3bb1a9]={},_0x1f143a['forEach']((_0x3e299d,_0x274175)=>{const _0x402722=_0x4e6f;_0x4f881a[_0x3bb1a9][_0x274175]=_0x3e299d[_0x402722(0xe5)]();});}),_0x4f881a;}[_0x3ff888(0x112)](_0x259932){const _0x3637df=_0x3ff888;Object[_0x3637df(0x126)](_0x259932)[_0x3637df(0xf8)](_0x1464e3=>{const _0x140f98=_0x3637df,_0x1aa49f=_0x259932[_0x1464e3];Object[_0x140f98(0x126)](_0x1aa49f)['forEach'](_0x4501e8=>{const _0x307a40=_0x140f98;this[_0x307a40(0xde)](_0x1464e3,_0x4501e8)[_0x307a40(0x112)](_0x1aa49f[_0x4501e8]);});});}[_0x3ff888(0xfb)](){const _0x45d585=_0x3ff888;this[_0x45d585(0xe8)][_0x45d585(0xf1)]({'pluginName':W,'businesses':[_0x107b27[_0x45d585(0x100)]],'toJson':_0x29ec47=>this[_0x45d585(0xf0)](_0x29ec47),'parseJson':_0x29e55d=>JSON[_0x45d585(0xe0)](_0x29e55d),'onLoad':(_0x1c8e04,_0xfd3011)=>{const _0x23997d=_0x45d585;this[_0x23997d(0xf6)](_0x1c8e04,_0xfd3011);},'onUnLoad':_0x1780d6=>{const _0x3f8d30=_0x45d585,_0x375752=this[_0x3f8d30(0xf3)][_0x3f8d30(0x128)](_0x1780d6);_0x375752&&(_0x375752[_0x3f8d30(0xf8)](_0x3f4978=>{const _0x2042c4=_0x3f8d30;_0x3f4978[_0x2042c4(0x11d)]();}),this[_0x3f8d30(0xf3)][_0x3f8d30(0x101)](_0x1780d6));}});}[_0x3ff888(0x11d)](){const _0x1f5124=_0x3ff888;this[_0x1f5124(0xf3)][_0x1f5124(0xf8)](_0x43cc45=>{const _0xfa53b2=_0x1f5124;_0x43cc45[_0xfa53b2(0xf8)](_0x1f2af7=>{const _0x105228=_0xfa53b2;_0x1f2af7[_0x105228(0x11d)]();});});}};i=V([K(0x0,_0x119863)],i);const u={'id':_0x3ff888(0xdf),'type':_0x2b08be['MUTATION'],'handler':(_0x4c8b46,_0x15041d)=>{const _0x5bf80e=_0x3ff888,{unitId:_0x172e2c,subUnitId:_0x33ee5c,shapeType:_0x4a62ef,shapeId:_0x14108c,shapeData:_0xcfd736}=_0x15041d,_0x408b3a=_0x4c8b46[_0x5bf80e(0x128)](i)[_0x5bf80e(0x111)](_0x172e2c,_0x33ee5c,_0x14108c);return _0x408b3a&&(_0x408b3a[_0x5bf80e(0x125)](_0x4a62ef),_0xcfd736&&(_0x408b3a==null||_0x408b3a[_0x5bf80e(0xe7)](_0xcfd736))),!0x0;}},pe={'id':_0x3ff888(0xf5),'type':_0x2b08be[_0x3ff888(0x102)],'handler':(_0x330475,_0x26593e)=>{const _0x28bfdf=_0x3ff888;if(!_0x26593e)return!0x1;const _0x5696ae=_0x330475['get'](_0x11fca2),_0x43be42=_0x330475[_0x28bfdf(0x128)](i),_0x151ba4=_0x330475['get'](_0xec8a3),_0x1f56e0=[],_0x4cd9f5=[],{unitId:_0x462a75,subUnitId:_0x45a086,shapeId:_0xc4b5dc,shapeType:_0x61cb85,shapeData:_0x5840a4}=_0x26593e,_0xa0a92e=_0x43be42['getShapeModel'](_0x462a75,_0x45a086,_0xc4b5dc);if(_0xa0a92e){const _0x32a0be=_0xa0a92e['getShapeType'](),_0x2a0e0c=Object[_0x28bfdf(0xec)]({},_0xa0a92e[_0x28bfdf(0x10a)]()),_0x409408={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x61cb85,'shapeData':_0x5840a4},_0x8cd1a6={'unitId':_0x462a75,'subUnitId':_0x45a086,'shapeId':_0xc4b5dc,'shapeType':_0x32a0be,'shapeData':_0x2a0e0c};return _0x1f56e0[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x409408}),_0x4cd9f5[_0x28bfdf(0x120)]({'id':u['id'],'params':_0x8cd1a6}),_0x1f56e0[_0x28bfdf(0xfc)](_0x39d469=>_0x5696ae[_0x28bfdf(0xdb)](_0x39d469['id'],_0x39d469['params']))&&_0x151ba4[_0x28bfdf(0x108)]({'unitID':_0x462a75,'redoMutations':[..._0x1f56e0],'undoMutations':[..._0x4cd9f5]}),!0x0;}return!0x1;}},Y={'id':'sheet.mutation.insert-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x95da33,_0x309a76)=>{const _0x277b0e=_0x3ff888,{unitId:_0x32fec5,subUnitId:_0x1a2ff4,shapeType:_0x516807,shapeId:_0x307460,shapeData:_0x3abc1c}=_0x309a76;return _0x95da33[_0x277b0e(0x128)](i)['insertShape'](_0x32fec5,_0x1a2ff4,_0x516807,_0x307460,_0x3abc1c),!0x0;}},q={'id':'sheet.mutation.remove-shape','type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0x570f1d,_0x2e1297)=>{const _0x37d1dd=_0x3ff888,{unitId:_0x23d1ab,subUnitId:_0x45742e,shapeId:_0x3a3dcc}=_0x2e1297;return _0x570f1d[_0x37d1dd(0x128)](i)['removeShape'](_0x23d1ab,_0x45742e,_0x3a3dcc),!0x0;}},Q={'id':_0x3ff888(0xdc),'type':_0x2b08be[_0x3ff888(0xf2)],'handler':(_0xcf2400,_0x599efc)=>{const _0x1941d2=_0x3ff888,{unitId:_0x3e996e,subUnitId:_0x1ff04b,shapeType:_0x203604,shapeId:_0x495970,shapeData:_0x397f8e}=_0x599efc,_0x1c35f1=_0xcf2400[_0x1941d2(0x128)](i)[_0x1941d2(0x111)](_0x3e996e,_0x1ff04b,_0x495970);return _0x1c35f1&&(_0x203604!==void 0x0&&_0x1c35f1['setShapeType'](_0x203604),_0x397f8e&&(_0x1c35f1==null||_0x1c35f1[_0x1941d2(0xe7)](_0x397f8e,!0x0))),!0x0;}},X='sheets-shape.config',m={};var Z=Object['defineProperty'],k=Object[_0x3ff888(0x11a)],ee=(_0xe29c5e,_0x40d766,_0x169a84)=>_0x40d766 in _0xe29c5e?Z(_0xe29c5e,_0x40d766,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x169a84}):_0xe29c5e[_0x40d766]=_0x169a84,ae=(_0x537f3a,_0x25cb92,_0x443a28,_0xf104ac)=>{const _0x2cd593=_0x3ff888;for(var _0x3ed6f2=_0xf104ac>0x1?void 0x0:_0xf104ac?k(_0x25cb92,_0x443a28):_0x25cb92,_0x45fafe=_0x537f3a[_0x2cd593(0x11c)]-0x1,_0x2bedcc;_0x45fafe>=0x0;_0x45fafe--)(_0x2bedcc=_0x537f3a[_0x45fafe])&&(_0x3ed6f2=_0x2bedcc(_0x3ed6f2)||_0x3ed6f2);return _0x3ed6f2;},g=(_0x292061,_0x365684)=>(_0x284e86,_0x5f46a6)=>_0x365684(_0x284e86,_0x5f46a6,_0x292061),E=(_0x3ccf84,_0x2735e1,_0x1d7dd0)=>ee(_0x3ccf84,typeof _0x2735e1!=_0x3ff888(0xeb)?_0x2735e1+'':_0x2735e1,_0x1d7dd0);const se=_0x3ff888(0x122);let S=class extends _0x665b7d{constructor(_0x591af2=m,_0x34eb29,_0x2df2b6,_0x2caeb6){const _0x308fa9=_0x3ff888;super(),this[_0x308fa9(0x123)]=_0x591af2,this[_0x308fa9(0x121)]=_0x34eb29,this[_0x308fa9(0x117)]=_0x2df2b6,this['_configService']=_0x2caeb6;const {..._0x2d2f88}=_0x4f2c70({},m,this['_config']);this[_0x308fa9(0x103)][_0x308fa9(0x10c)](X,_0x2d2f88),this['_initCommands']();}[_0x3ff888(0xe1)](){_0x434c38(this['_injector'],[]);}[_0x3ff888(0x10b)](){const _0x2db0a6=_0x3ff888,_0x14a605=this[_0x2db0a6(0x121)];[[T],[i]][_0x2db0a6(0xf8)](_0x1b3b00=>_0x14a605[_0x2db0a6(0x127)](_0x1b3b00));}[_0x3ff888(0x10d)](){const _0x4a7877=_0x3ff888;[Y,q,u,Q][_0x4a7877(0xf8)](_0x257e64=>this[_0x4a7877(0x109)](this[_0x4a7877(0x117)][_0x4a7877(0x114)](_0x257e64)));}};E(S,_0x3ff888(0xfe),_0x107b27[_0x3ff888(0x100)]),E(S,_0x3ff888(0x10f),se),S=ae([_0x15f9bd(_0x1070ce),g(0x1,_0x574c09(_0x1a8826)),g(0x2,_0x11fca2),g(0x3,_0x2c4b94)],S);export{Y as InsertSheetsShapeMutation,q as RemoveSheetsShapeMutation,i as SheetsShapeService,S as UniverSheetsShapePlugin,Q as UpdateSheetsShapeDataMutation,pe as UpdateSheetsShapeTypeCommand,u as UpdateSheetsShapeTypeMutation};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5b0e(_0x51500a,_0x54e23a){_0x51500a=_0x51500a-0xe5;const _0x3d9947=_0x3d99();let _0x5b0e89=_0x3d9947[_0x51500a];return _0x5b0e89;}function _0x3d99(){const _0x5815ce=['SheetsShapeService','UniverProEngineShape','Module','getLineShapeRelation','syncExecuteCommand','getShapeData','every','RemoveSheetsShapeMutation','UniverCore','function','_initSnapshot','setShapeData','5gmPdax','registerPluginResource','721560fOvhoh','Inject','addShape','onStarting','fromJSON','_config','sheet.mutation.insert-shape','140YQPivD','forEach','object','delete','_serializeShapeForUnit','keys','_initCommands','touchDependencies','type','dispose','ShapeModel','registerCommand','UpdateSheetsShapeDataMutation','28292kbIBSp','1456137UhcgsD','_groupIds','MUTATION','onRendered','_injector','493664wwEdTQ','length','getShapeTypeById','IUndoRedoService','_resourcesManagerService','isConnectorShape','UniverProSheetsShape','assign','@univerjs-pro/license','set','COMMAND','disposeWithMe','_disposed','push','from','CommandType','UniverSheetsShapePlugin','UpdateSheetsShapeTypeMutation','959588aFSnQa','removeShape','_ensureShapeModelManager','shapeId','getShapeDataById','exports','InsertSheetsShapeMutation','sheet.mutation.remove-shape','getBasicShapeRelation','158301VXoHKp','_shapes','hasShape','insertShape','12ejsIav','get','merge','DependentOn','getShapeType','132GxTTeS','22408DfRRRS','toStringTag','sheet.command.update-shape-type','ICommandService','setShapeType','getBasicShapeType','toJSON','_linesIds','defineProperty','pushUndoRedo','has','setConfig','UNIVER_SHEET','UniverInstanceType','_deserializeShapeForUnit','getShapeModel','UniverProLicense','sheet.mutation.update-shape-data','Disposable','getShapeRelation','SHEET_SHAPE_PLUGIN','IResourceManagerService','_shapeModelManagerMap','sheets-shape.config','parse','symbol','shapeData','_configService','amd','UniverLicensePlugin','IConfigService','Injector','clear','_commandService'];_0x3d99=function(){return _0x5815ce;};return _0x3d99();}(function(_0x29e7b1,_0x204891){const _0x30221e=_0x5b0e,_0xde0e51=_0x29e7b1();while(!![]){try{const _0x5f6e7e=parseInt(_0x30221e(0x123))/0x1*(-parseInt(_0x30221e(0xf5))/0x2)+parseInt(_0x30221e(0xf4))/0x3*(-parseInt(_0x30221e(0x139))/0x4)+-parseInt(_0x30221e(0x125))/0x5+parseInt(_0x30221e(0xef))/0x6*(parseInt(_0x30221e(0x151))/0x7)+parseInt(_0x30221e(0x13f))/0x8+parseInt(_0x30221e(0x13a))/0x9+-parseInt(_0x30221e(0x12c))/0xa*(-parseInt(_0x30221e(0xeb))/0xb);if(_0x5f6e7e===_0x204891)break;else _0xde0e51['push'](_0xde0e51['shift']());}catch(_0x4552d4){_0xde0e51['push'](_0xde0e51['shift']());}}}(_0x3d99,0x2dccf),function(_0x472a3f,_0x26af0b){const _0x4c6953=_0x5b0e;typeof exports==_0x4c6953(0x12e)&&typeof module<'u'?_0x26af0b(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x4c6953(0x120)&&define[_0x4c6953(0x111)]?define([_0x4c6953(0xe7),'@univerjs/core','@univerjs-pro/engine-shape',_0x4c6953(0x147)],_0x26af0b):(_0x472a3f=typeof globalThis<'u'?globalThis:_0x472a3f||self,_0x26af0b(_0x472a3f[_0x4c6953(0x145)]={},_0x472a3f[_0x4c6953(0x11f)],_0x472a3f[_0x4c6953(0x118)],_0x472a3f[_0x4c6953(0x105)]));}(this,function(_0x11fda7,_0x3dc13b,_0x308d40,_0x3eb857){'use strict';const _0x434074=_0x5b0e;var _0x34f2f6=Object[_0x434074(0xfd)],_0x182a86=(_0x875be3,_0x41a8d3,_0x419c5f)=>_0x41a8d3 in _0x875be3?_0x34f2f6(_0x875be3,_0x41a8d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x419c5f}):_0x875be3[_0x41a8d3]=_0x419c5f,_0x53138d=(_0x41b654,_0x35242b,_0x1af6ea)=>_0x182a86(_0x41b654,typeof _0x35242b!=_0x434074(0x10e)?_0x35242b+'':_0x35242b,_0x1af6ea);class _0x3e1887 extends _0x3dc13b[_0x434074(0x107)]{constructor(){const _0x2512e6=_0x434074;super(),_0x53138d(this,_0x2512e6(0xec),new Map()),_0x53138d(this,_0x2512e6(0xfc),new Set()),_0x53138d(this,_0x2512e6(0x13b),new Set());}[_0x434074(0x127)](_0x562fb9,_0x7e0e63,_0x4e34ec){const _0x2f427c=_0x434074,_0x413a99=new _0x308d40[(_0x2f427c(0x136))](_0x562fb9,_0x7e0e63,_0x4e34ec);return this['_shapes']['set'](_0x7e0e63,_0x413a99),_0x308d40['isConnectorShape'](_0x562fb9)&&this[_0x2f427c(0xfc)]['add'](_0x7e0e63),_0x413a99;}[_0x434074(0xea)](_0x4a588f){const _0x2e6826=_0x434074;var _0x1b5815,_0x5c3244;const _0x396b95=[];for(const _0x7ffff9 of this[_0x2e6826(0xfc)]){const _0x4f416d=this[_0x2e6826(0xec)][_0x2e6826(0xf0)](_0x7ffff9);if(_0x4f416d){const _0x275aa4=_0x4f416d[_0x2e6826(0x108)]();_0x275aa4&&(((_0x1b5815=_0x275aa4[_0x2e6826(0x14d)])==null?void 0x0:_0x1b5815[_0x2e6826(0xe5)])===_0x4a588f&&_0x396b95[_0x2e6826(0x14c)]({..._0x275aa4[_0x2e6826(0x14d)],'lineShapeId':_0x7ffff9,'isFrom':!0x0}),((_0x5c3244=_0x275aa4['to'])==null?void 0x0:_0x5c3244[_0x2e6826(0xe5)])===_0x4a588f&&_0x396b95[_0x2e6826(0x14c)]({..._0x275aa4['to'],'lineShapeId':_0x7ffff9,'isFrom':!0x1}));}}return _0x396b95;}['getLineShapeRelation'](_0x56f294){const _0x2f087a=_0x434074,_0x360314=this['_shapes'][_0x2f087a(0xf0)](_0x56f294);if(_0x360314)return _0x360314[_0x2f087a(0x108)]();}[_0x434074(0xf3)](_0x3de1f8){const _0x32c5f5=_0x434074,_0x4f920b=this[_0x32c5f5(0xec)]['get'](_0x3de1f8);if(_0x4f920b)return _0x4f920b['getShapeType']();}['hasShape'](_0xe9dcd8){const _0x1c1148=_0x434074;return this['_shapes'][_0x1c1148(0xff)](_0xe9dcd8);}['removeShape'](_0x25e5c0){const _0x53f2fb=_0x434074,_0x246461=this[_0x53f2fb(0xec)]['get'](_0x25e5c0);_0x246461&&(_0x308d40[_0x53f2fb(0x144)](_0x246461[_0x53f2fb(0xf3)]())&&this[_0x53f2fb(0xfc)][_0x53f2fb(0x12f)](_0x25e5c0),this[_0x53f2fb(0xec)][_0x53f2fb(0x12f)](_0x25e5c0));}[_0x434074(0xfb)](){const _0x2af69b=_0x434074,_0x3e796c=[];return this[_0x2af69b(0xec)][_0x2af69b(0x12d)](_0x7d1450=>{const _0x2b5ffa=_0x2af69b;_0x3e796c['push'](_0x7d1450[_0x2b5ffa(0xfb)]());}),_0x3e796c;}['fromJSON'](_0x305601){const _0x4d313d=_0x434074;for(const _0x4bca39 of _0x305601){const {id:_0x1a51e9,shapeType:_0x241f4c}=_0x4bca39,_0x28738e=this[_0x4d313d(0x127)](_0x241f4c,_0x1a51e9,_0x4bca39[_0x4d313d(0x10f)]);_0x28738e&&_0x28738e['isLineShape']()&&this[_0x4d313d(0xfc)]['add'](_0x1a51e9);}}[_0x434074(0x135)](){const _0x481167=_0x434074;this[_0x481167(0x14b)]||(this[_0x481167(0xec)][_0x481167(0x12d)](_0x53876e=>{const _0xc03a37=_0x481167;_0x53876e[_0xc03a37(0x135)]();}),this[_0x481167(0xec)][_0x481167(0x115)](),this['_linesIds'][_0x481167(0x115)](),this['_groupIds'][_0x481167(0x115)](),super['dispose']());}}var _0x329b63=Object['getOwnPropertyDescriptor'],_0x456505=(_0x5a4fc2,_0x216994,_0x3c0dbd,_0x460b86)=>{const _0x55142e=_0x434074;for(var _0x252cf4=_0x460b86>0x1?void 0x0:_0x460b86?_0x329b63(_0x216994,_0x3c0dbd):_0x216994,_0x1d9932=_0x5a4fc2[_0x55142e(0x140)]-0x1,_0x2b260c;_0x1d9932>=0x0;_0x1d9932--)(_0x2b260c=_0x5a4fc2[_0x1d9932])&&(_0x252cf4=_0x2b260c(_0x252cf4)||_0x252cf4);return _0x252cf4;},_0x5493b0=(_0x52dd83,_0x4a5473)=>(_0x309816,_0x57adbc)=>_0x4a5473(_0x309816,_0x57adbc,_0x52dd83);const _0x8cc88b=_0x434074(0x109);_0x11fda7[_0x434074(0x117)]=class extends _0x3dc13b['Disposable']{constructor(_0x337c1a){const _0x524450=_0x434074;super(),_0x53138d(this,_0x524450(0x10b),new Map()),(this[_0x524450(0x143)]=_0x337c1a,this['_initSnapshot']());}[_0x434074(0x153)](_0x223433,_0x45ce62){const _0x5c52be=_0x434074;let _0x7dad62=this[_0x5c52be(0x10b)][_0x5c52be(0xf0)](_0x223433);_0x7dad62||(_0x7dad62=new Map(),this[_0x5c52be(0x10b)][_0x5c52be(0x148)](_0x223433,_0x7dad62));let _0x47b671=_0x7dad62[_0x5c52be(0xf0)](_0x45ce62);return _0x47b671||(_0x47b671=new _0x3e1887(),_0x7dad62[_0x5c52be(0x148)](_0x45ce62,_0x47b671)),_0x47b671;}[_0x434074(0xee)](_0x2073ac,_0x36f89a,_0x47527d,_0x1e45c9,_0x25ec7f){const _0x3805c0=_0x434074;this['_ensureShapeModelManager'](_0x2073ac,_0x36f89a)[_0x3805c0(0x127)](_0x47527d,_0x1e45c9,_0x25ec7f);}[_0x434074(0x152)](_0x5bdabf,_0x90ee99,_0x3e2bc2){const _0x17eaa0=_0x434074;this[_0x17eaa0(0x153)](_0x5bdabf,_0x90ee99)[_0x17eaa0(0x152)](_0x3e2bc2);}[_0x434074(0xfa)](_0x38ca07,_0x4225bd,_0x43454e){const _0x25c240=_0x434074;return this[_0x25c240(0x153)](_0x38ca07,_0x4225bd)[_0x25c240(0xf3)](_0x43454e);}[_0x434074(0xf3)](_0x36e1cf,_0x166ec5,_0x33867f){const _0xae7dbb=_0x434074;return this[_0xae7dbb(0x153)](_0x36e1cf,_0x166ec5)[_0xae7dbb(0xf3)](_0x33867f);}[_0x434074(0xed)](_0x2e9ecb,_0x26e142,_0x5d0915){const _0x44abdd=_0x434074;return this[_0x44abdd(0x153)](_0x2e9ecb,_0x26e142)[_0x44abdd(0xed)](_0x5d0915);}[_0x434074(0x141)](_0x34e4eb,_0x4cfbd3,_0xc2cd25){const _0x1bf69c=_0x434074;return this[_0x1bf69c(0x153)](_0x34e4eb,_0x4cfbd3)[_0x1bf69c(0xf3)](_0xc2cd25);}[_0x434074(0xe6)](_0x37e60c,_0x1bdb59,_0x54e713){const _0x1b6654=_0x434074,_0x49361c=this[_0x1b6654(0x153)](_0x37e60c,_0x1bdb59);if(!_0x49361c[_0x1b6654(0xf3)](_0x54e713))return;const _0x228031=_0x49361c['_shapes'][_0x1b6654(0xf0)](_0x54e713);if(_0x228031)return _0x228031[_0x1b6654(0x11c)]();}[_0x434074(0x104)](_0x3e5e1d,_0xcd0e14,_0x2dc90a){const _0x3bb5b8=_0x434074;return this[_0x3bb5b8(0x153)](_0x3e5e1d,_0xcd0e14)['_shapes']['get'](_0x2dc90a);}[_0x434074(0xea)](_0x4a8704,_0x501c65,_0x16bd66){const _0x5c8c61=_0x434074;return this[_0x5c8c61(0x153)](_0x4a8704,_0x501c65)[_0x5c8c61(0xea)](_0x16bd66);}[_0x434074(0x11a)](_0x5f4c78,_0x5474ae,_0x2dc7f9){const _0x1915c6=_0x434074,_0x27fb6b=this[_0x1915c6(0x153)](_0x5f4c78,_0x5474ae)[_0x1915c6(0xec)][_0x1915c6(0xf0)](_0x2dc7f9);if(_0x27fb6b)return _0x27fb6b['getShapeRelation']();}[_0x434074(0xf9)](){}['_serializeShapeForUnit'](_0xcb7630){const _0xbede85=_0x434074,_0x4640d0={},_0x5e4f65=this[_0xbede85(0x10b)]['get'](_0xcb7630);return _0x5e4f65&&_0x5e4f65['forEach']((_0x47191d,_0x309b40)=>{const _0x4864ec=_0xbede85,_0x2466dd=_0x47191d[_0x4864ec(0xfb)]();_0x2466dd[_0x4864ec(0x140)]>0x0&&(_0x4640d0[_0x309b40]=_0x2466dd);}),JSON['stringify'](_0x4640d0);}['_deserializeShapeForUnit'](_0x1aab1f,_0x10c067){const _0x223b45=_0x434074;Object[_0x223b45(0x131)](_0x10c067)[_0x223b45(0x12d)](_0x157b30=>{const _0x2c7ea0=_0x223b45;this[_0x2c7ea0(0x153)](_0x1aab1f,_0x157b30)['fromJSON'](_0x10c067[_0x157b30]);});}[_0x434074(0xfb)](){const _0x50e2b7=_0x434074,_0x5ab2eb={};return this[_0x50e2b7(0x10b)]['forEach']((_0x5cdb29,_0x32ca91)=>{const _0x4567da=_0x50e2b7;_0x5ab2eb[_0x32ca91]={},_0x5cdb29[_0x4567da(0x12d)]((_0x4496e3,_0x430883)=>{_0x5ab2eb[_0x32ca91][_0x430883]=_0x4496e3['toJSON']();});}),_0x5ab2eb;}[_0x434074(0x129)](_0x7e9aea){const _0x5adecc=_0x434074;Object[_0x5adecc(0x131)](_0x7e9aea)[_0x5adecc(0x12d)](_0x393b1f=>{const _0x3959d2=_0x5adecc,_0xbc11d2=_0x7e9aea[_0x393b1f];Object[_0x3959d2(0x131)](_0xbc11d2)['forEach'](_0x207157=>{const _0x1f789f=_0x3959d2;this['_ensureShapeModelManager'](_0x393b1f,_0x207157)[_0x1f789f(0x129)](_0xbc11d2[_0x207157]);});});}[_0x434074(0x121)](){const _0x5e7d80=_0x434074;this['_resourcesManagerService'][_0x5e7d80(0x124)]({'pluginName':_0x8cc88b,'businesses':[_0x3dc13b[_0x5e7d80(0x102)][_0x5e7d80(0x101)]],'toJson':_0x448d32=>this[_0x5e7d80(0x130)](_0x448d32),'parseJson':_0xb5561a=>JSON[_0x5e7d80(0x10d)](_0xb5561a),'onLoad':(_0x15d97b,_0x580b3f)=>{const _0x1a456e=_0x5e7d80;this[_0x1a456e(0x103)](_0x15d97b,_0x580b3f);},'onUnLoad':_0x4d4dc1=>{const _0x2690a1=_0x5e7d80,_0x5bcf38=this[_0x2690a1(0x10b)][_0x2690a1(0xf0)](_0x4d4dc1);_0x5bcf38&&(_0x5bcf38[_0x2690a1(0x12d)](_0x29b690=>{const _0x524e8d=_0x2690a1;_0x29b690[_0x524e8d(0x135)]();}),this[_0x2690a1(0x10b)][_0x2690a1(0x12f)](_0x4d4dc1));}});}['dispose'](){const _0x2a3c86=_0x434074;this[_0x2a3c86(0x10b)][_0x2a3c86(0x12d)](_0x57a0d4=>{const _0x2ab3d8=_0x2a3c86;_0x57a0d4[_0x2ab3d8(0x12d)](_0x2a83da=>{const _0x19b63f=_0x2ab3d8;_0x2a83da[_0x19b63f(0x135)]();});});}},_0x11fda7['SheetsShapeService']=_0x456505([_0x5493b0(0x0,_0x3dc13b[_0x434074(0x10a)])],_0x11fda7[_0x434074(0x117)]);const _0x425d86={'id':'sheet.mutation.update-shape-type','type':_0x3dc13b['CommandType'][_0x434074(0x13c)],'handler':(_0x35f3d3,_0x4068bb)=>{const _0x573284=_0x434074,{unitId:_0x9edd13,subUnitId:_0x4ea6c2,shapeType:_0x2c9fe3,shapeId:_0x390dec,shapeData:_0xdf481f}=_0x4068bb,_0x506d44=_0x35f3d3[_0x573284(0xf0)](_0x11fda7[_0x573284(0x117)])[_0x573284(0x104)](_0x9edd13,_0x4ea6c2,_0x390dec);return _0x506d44&&(_0x506d44[_0x573284(0xf9)](_0x2c9fe3),_0xdf481f&&(_0x506d44==null||_0x506d44['setShapeData'](_0xdf481f))),!0x0;}},_0x5204f8={'id':_0x434074(0xf7),'type':_0x3dc13b[_0x434074(0x14e)][_0x434074(0x149)],'handler':(_0x3acca3,_0xfd7dc3)=>{const _0x2fe2b8=_0x434074;if(!_0xfd7dc3)return!0x1;const _0x13a035=_0x3acca3[_0x2fe2b8(0xf0)](_0x3dc13b[_0x2fe2b8(0xf8)]),_0x3722f3=_0x3acca3[_0x2fe2b8(0xf0)](_0x11fda7[_0x2fe2b8(0x117)]),_0x30458d=_0x3acca3['get'](_0x3dc13b[_0x2fe2b8(0x142)]),_0x100d89=[],_0x1e28c0=[],{unitId:_0x264fc0,subUnitId:_0x1603b2,shapeId:_0x357b9f,shapeType:_0x41eab9,shapeData:_0x20b3d4}=_0xfd7dc3,_0x269952=_0x3722f3[_0x2fe2b8(0x104)](_0x264fc0,_0x1603b2,_0x357b9f);if(_0x269952){const _0x220879=_0x269952[_0x2fe2b8(0xf3)](),_0x53f5c2=Object[_0x2fe2b8(0x146)]({},_0x269952[_0x2fe2b8(0x11c)]()),_0x5be10e={'unitId':_0x264fc0,'subUnitId':_0x1603b2,'shapeId':_0x357b9f,'shapeType':_0x41eab9,'shapeData':_0x20b3d4},_0x483180={'unitId':_0x264fc0,'subUnitId':_0x1603b2,'shapeId':_0x357b9f,'shapeType':_0x220879,'shapeData':_0x53f5c2};return _0x100d89['push']({'id':_0x425d86['id'],'params':_0x5be10e}),_0x1e28c0[_0x2fe2b8(0x14c)]({'id':_0x425d86['id'],'params':_0x483180}),_0x100d89[_0x2fe2b8(0x11d)](_0x32951b=>_0x13a035[_0x2fe2b8(0x11b)](_0x32951b['id'],_0x32951b['params']))&&_0x30458d[_0x2fe2b8(0xfe)]({'unitID':_0x264fc0,'redoMutations':[..._0x100d89],'undoMutations':[..._0x1e28c0]}),!0x0;}return!0x1;}},_0x34ac66={'id':_0x434074(0x12b),'type':_0x3dc13b[_0x434074(0x14e)][_0x434074(0x13c)],'handler':(_0x1866d0,_0x33aea2)=>{const _0x4d695b=_0x434074,{unitId:_0x52ae22,subUnitId:_0x158076,shapeType:_0x5c731f,shapeId:_0x5b85a0,shapeData:_0x2e20ef}=_0x33aea2;return _0x1866d0[_0x4d695b(0xf0)](_0x11fda7[_0x4d695b(0x117)])[_0x4d695b(0xee)](_0x52ae22,_0x158076,_0x5c731f,_0x5b85a0,_0x2e20ef),!0x0;}},_0x4f3f96={'id':_0x434074(0xe9),'type':_0x3dc13b['CommandType'][_0x434074(0x13c)],'handler':(_0x4a6544,_0x45bbee)=>{const _0x2501fe=_0x434074,{unitId:_0x1c8d5b,subUnitId:_0xbfd5c2,shapeId:_0x12462c}=_0x45bbee;return _0x4a6544[_0x2501fe(0xf0)](_0x11fda7[_0x2501fe(0x117)])[_0x2501fe(0x152)](_0x1c8d5b,_0xbfd5c2,_0x12462c),!0x0;}},_0x1eb388={'id':_0x434074(0x106),'type':_0x3dc13b[_0x434074(0x14e)][_0x434074(0x13c)],'handler':(_0x1365a9,_0x4969b7)=>{const _0x50b9fc=_0x434074,{unitId:_0x136ceb,subUnitId:_0x4d2a28,shapeType:_0x259dd1,shapeId:_0x32f22f,shapeData:_0xfb3e53}=_0x4969b7,_0x24ad61=_0x1365a9[_0x50b9fc(0xf0)](_0x11fda7[_0x50b9fc(0x117)])['getShapeModel'](_0x136ceb,_0x4d2a28,_0x32f22f);return _0x24ad61&&(_0x259dd1!==void 0x0&&_0x24ad61[_0x50b9fc(0xf9)](_0x259dd1),_0xfb3e53&&(_0x24ad61==null||_0x24ad61[_0x50b9fc(0x122)](_0xfb3e53,!0x0))),!0x0;}},_0x4900eb=_0x434074(0x10c),_0x25421f={};var _0xab700b=Object['defineProperty'],_0x27c752=Object['getOwnPropertyDescriptor'],_0x4a791e=(_0x2f4fce,_0x5e1962,_0xf36ff0)=>_0x5e1962 in _0x2f4fce?_0xab700b(_0x2f4fce,_0x5e1962,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf36ff0}):_0x2f4fce[_0x5e1962]=_0xf36ff0,_0x4896f7=(_0x48473f,_0x463019,_0x1a55e4,_0x5e0c5a)=>{const _0x28e491=_0x434074;for(var _0xbf2eb2=_0x5e0c5a>0x1?void 0x0:_0x5e0c5a?_0x27c752(_0x463019,_0x1a55e4):_0x463019,_0x5be74e=_0x48473f[_0x28e491(0x140)]-0x1,_0x52277c;_0x5be74e>=0x0;_0x5be74e--)(_0x52277c=_0x48473f[_0x5be74e])&&(_0xbf2eb2=_0x52277c(_0xbf2eb2)||_0xbf2eb2);return _0xbf2eb2;},_0x339366=(_0x95673e,_0xf05068)=>(_0x4da5c7,_0x19ef3b)=>_0xf05068(_0x4da5c7,_0x19ef3b,_0x95673e),_0xb14809=(_0x38bf81,_0x46fcfd,_0x26cd7c)=>_0x4a791e(_0x38bf81,typeof _0x46fcfd!=_0x434074(0x10e)?_0x46fcfd+'':_0x46fcfd,_0x26cd7c);const _0x45fc99='SHEET_SHAPE_PLUGIN';_0x11fda7[_0x434074(0x14f)]=class extends _0x3dc13b['Plugin']{constructor(_0x45fb86=_0x25421f,_0x1c2115,_0x11ca50,_0x44b585){const _0x4ef8ba=_0x434074;super(),this[_0x4ef8ba(0x12a)]=_0x45fb86,this['_injector']=_0x1c2115,this[_0x4ef8ba(0x116)]=_0x11ca50,this[_0x4ef8ba(0x110)]=_0x44b585;const {..._0x3a330c}=_0x3dc13b[_0x4ef8ba(0xf1)]({},_0x25421f,this[_0x4ef8ba(0x12a)]);this['_configService'][_0x4ef8ba(0x100)](_0x4900eb,_0x3a330c),this['_initCommands']();}[_0x434074(0x13d)](){const _0x5622c8=_0x434074;_0x3dc13b[_0x5622c8(0x133)](this[_0x5622c8(0x13e)],[]);}[_0x434074(0x128)](){const _0x4e69c2=_0x434074,_0x2fa24e=this[_0x4e69c2(0x13e)];[[_0x3e1887],[_0x11fda7[_0x4e69c2(0x117)]]][_0x4e69c2(0x12d)](_0xb30c72=>_0x2fa24e['add'](_0xb30c72));}[_0x434074(0x132)](){const _0x2a7d4c=_0x434074;[_0x34ac66,_0x4f3f96,_0x425d86,_0x1eb388][_0x2a7d4c(0x12d)](_0x1b2d1b=>this[_0x2a7d4c(0x14a)](this[_0x2a7d4c(0x116)][_0x2a7d4c(0x137)](_0x1b2d1b)));}},_0xb14809(_0x11fda7[_0x434074(0x14f)],_0x434074(0x134),_0x3dc13b['UniverInstanceType'][_0x434074(0x101)]),_0xb14809(_0x11fda7[_0x434074(0x14f)],'pluginName',_0x45fc99),_0x11fda7['UniverSheetsShapePlugin']=_0x4896f7([_0x3dc13b[_0x434074(0xf2)](_0x3eb857[_0x434074(0x112)]),_0x339366(0x1,_0x3dc13b[_0x434074(0x126)](_0x3dc13b[_0x434074(0x114)])),_0x339366(0x2,_0x3dc13b[_0x434074(0xf8)]),_0x339366(0x3,_0x3dc13b[_0x434074(0x113)])],_0x11fda7[_0x434074(0x14f)]),_0x11fda7[_0x434074(0xe8)]=_0x34ac66,_0x11fda7[_0x434074(0x11e)]=_0x4f3f96,_0x11fda7[_0x434074(0x138)]=_0x1eb388,_0x11fda7['UpdateSheetsShapeTypeCommand']=_0x5204f8,_0x11fda7[_0x434074(0x150)]=_0x425d86,Object['defineProperty'](_0x11fda7,Symbol[_0x434074(0xf6)],{'value':_0x434074(0x119)});}));
1
+ (function(_0x151cc9,_0x72093b){const _0x2ff975=_0x2575,_0x2c097d=_0x151cc9();while(!![]){try{const _0x4393bc=-parseInt(_0x2ff975(0x18f))/0x1+parseInt(_0x2ff975(0x19e))/0x2*(parseInt(_0x2ff975(0x18b))/0x3)+parseInt(_0x2ff975(0x150))/0x4*(parseInt(_0x2ff975(0x15d))/0x5)+parseInt(_0x2ff975(0x178))/0x6*(parseInt(_0x2ff975(0x152))/0x7)+parseInt(_0x2ff975(0x16e))/0x8+parseInt(_0x2ff975(0x156))/0x9*(-parseInt(_0x2ff975(0x14a))/0xa)+-parseInt(_0x2ff975(0x1a0))/0xb;if(_0x4393bc===_0x72093b)break;else _0x2c097d['push'](_0x2c097d['shift']());}catch(_0xa850db){_0x2c097d['push'](_0x2c097d['shift']());}}}(_0x57cb,0x890b0),function(_0x3e6a9e,_0x1a471f){const _0x19803a=_0x2575;typeof exports==_0x19803a(0x16b)&&typeof module<'u'?_0x1a471f(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define=='function'&&define[_0x19803a(0x1a3)]?define([_0x19803a(0x140),'@univerjs/core',_0x19803a(0x172),_0x19803a(0x1a5)],_0x1a471f):(_0x3e6a9e=typeof globalThis<'u'?globalThis:_0x3e6a9e||self,_0x1a471f(_0x3e6a9e[_0x19803a(0x153)]={},_0x3e6a9e[_0x19803a(0x167)],_0x3e6a9e[_0x19803a(0x18d)],_0x3e6a9e['UniverProLicense']));}(this,function(_0x5cf09e,_0x33e491,_0x4da624,_0x125323){'use strict';const _0x122c24=_0x2575;var _0x49cbaf=Object['defineProperty'],_0x878320=(_0x11294d,_0x738a3d,_0x32654a)=>_0x738a3d in _0x11294d?_0x49cbaf(_0x11294d,_0x738a3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32654a}):_0x11294d[_0x738a3d]=_0x32654a,_0x24e550=(_0x3edd01,_0x540fff,_0xf2820d)=>_0x878320(_0x3edd01,typeof _0x540fff!=_0x122c24(0x14b)?_0x540fff+'':_0x540fff,_0xf2820d);class _0x1990ac extends _0x33e491[_0x122c24(0x159)]{constructor(){const _0x4435fb=_0x122c24;super(),_0x24e550(this,_0x4435fb(0x145),new Map()),_0x24e550(this,_0x4435fb(0x158),new Set()),_0x24e550(this,_0x4435fb(0x187),new Set());}[_0x122c24(0x173)](_0x27fd07,_0x5c1ddf,_0x48d6be){const _0x3631dc=_0x122c24,_0x5c0f83=new _0x4da624[(_0x3631dc(0x148))](_0x27fd07,_0x5c1ddf,_0x48d6be);return this['_shapes'][_0x3631dc(0x183)](_0x5c1ddf,_0x5c0f83),_0x4da624[_0x3631dc(0x143)](_0x27fd07)&&this['_linesIds'][_0x3631dc(0x193)](_0x5c1ddf),_0x5c0f83;}[_0x122c24(0x191)](_0x10fd8c){const _0x1ca29b=_0x122c24;var _0x110dbd,_0x135888;const _0x33d565=[];for(const _0x4d2467 of this[_0x1ca29b(0x158)]){const _0x1beef9=this['_shapes'][_0x1ca29b(0x177)](_0x4d2467);if(_0x1beef9){const _0x2a514f=_0x1beef9[_0x1ca29b(0x16f)]();_0x2a514f&&(((_0x110dbd=_0x2a514f[_0x1ca29b(0x189)])==null?void 0x0:_0x110dbd[_0x1ca29b(0x1a2)])===_0x10fd8c&&_0x33d565[_0x1ca29b(0x162)]({..._0x2a514f[_0x1ca29b(0x189)],'lineShapeId':_0x4d2467,'isFrom':!0x0}),((_0x135888=_0x2a514f['to'])==null?void 0x0:_0x135888[_0x1ca29b(0x1a2)])===_0x10fd8c&&_0x33d565[_0x1ca29b(0x162)]({..._0x2a514f['to'],'lineShapeId':_0x4d2467,'isFrom':!0x1}));}}return _0x33d565;}[_0x122c24(0x16d)](_0x457048){const _0x16fa08=_0x122c24,_0x2656e9=this[_0x16fa08(0x145)][_0x16fa08(0x177)](_0x457048);if(_0x2656e9)return _0x2656e9[_0x16fa08(0x16f)]();}[_0x122c24(0x168)](_0x367799){const _0x1c5bd5=_0x122c24,_0x571bf3=this[_0x1c5bd5(0x145)]['get'](_0x367799);if(_0x571bf3)return _0x571bf3[_0x1c5bd5(0x168)]();}['hasShape'](_0x44b872){const _0x364f6c=_0x122c24;return this[_0x364f6c(0x145)][_0x364f6c(0x181)](_0x44b872);}[_0x122c24(0x161)](_0x28920c){const _0x53de4b=_0x122c24,_0x1ef336=this[_0x53de4b(0x145)][_0x53de4b(0x177)](_0x28920c);_0x1ef336&&(_0x4da624[_0x53de4b(0x143)](_0x1ef336[_0x53de4b(0x168)]())&&this['_linesIds'][_0x53de4b(0x176)](_0x28920c),this[_0x53de4b(0x145)][_0x53de4b(0x176)](_0x28920c));}[_0x122c24(0x142)](){const _0x5c1419=_0x122c24,_0x1abd11=[];return this[_0x5c1419(0x145)]['forEach'](_0x379b23=>{const _0x3a4ca6=_0x5c1419;_0x1abd11[_0x3a4ca6(0x162)](_0x379b23[_0x3a4ca6(0x142)]());}),_0x1abd11;}['fromJSON'](_0x74e866){const _0x4d4200=_0x122c24;for(const _0x455a99 of _0x74e866){const {id:_0x51a9f4,shapeType:_0x38ea88}=_0x455a99,_0x239d9b=this[_0x4d4200(0x173)](_0x38ea88,_0x51a9f4,_0x455a99[_0x4d4200(0x16a)]);_0x239d9b&&_0x239d9b[_0x4d4200(0x17e)]()&&this[_0x4d4200(0x158)][_0x4d4200(0x193)](_0x51a9f4);}}[_0x122c24(0x19b)](){const _0x188f7d=_0x122c24;this[_0x188f7d(0x19a)]||(this['_shapes'][_0x188f7d(0x166)](_0xf1bb3=>{const _0x2855d7=_0x188f7d;_0xf1bb3[_0x2855d7(0x19b)]();}),this['_shapes']['clear'](),this[_0x188f7d(0x158)][_0x188f7d(0x165)](),this[_0x188f7d(0x187)][_0x188f7d(0x165)](),super[_0x188f7d(0x19b)]());}}var _0x28dd8d=Object['getOwnPropertyDescriptor'],_0x559763=(_0x4d7042,_0x17eeca,_0x1851b7,_0x3e4da0)=>{const _0x2f303f=_0x122c24;for(var _0x5c0404=_0x3e4da0>0x1?void 0x0:_0x3e4da0?_0x28dd8d(_0x17eeca,_0x1851b7):_0x17eeca,_0x3af6df=_0x4d7042[_0x2f303f(0x179)]-0x1,_0x4f8bd8;_0x3af6df>=0x0;_0x3af6df--)(_0x4f8bd8=_0x4d7042[_0x3af6df])&&(_0x5c0404=_0x4f8bd8(_0x5c0404)||_0x5c0404);return _0x5c0404;},_0x60680f=(_0x221cea,_0x6614a3)=>(_0x47729f,_0x3d8d2e)=>_0x6614a3(_0x47729f,_0x3d8d2e,_0x221cea);const _0x43da07=_0x122c24(0x15c);_0x5cf09e[_0x122c24(0x196)]=class extends _0x33e491[_0x122c24(0x159)]{constructor(_0x44c8b8){const _0x1d0375=_0x122c24;super(),_0x24e550(this,_0x1d0375(0x17c),new Map()),(this[_0x1d0375(0x17a)]=_0x44c8b8,this[_0x1d0375(0x14d)]());}[_0x122c24(0x1a4)](_0x3c3595,_0x1f4c58){const _0x1ce26c=_0x122c24;let _0x467e19=this[_0x1ce26c(0x17c)]['get'](_0x3c3595);_0x467e19||(_0x467e19=new Map(),this[_0x1ce26c(0x17c)][_0x1ce26c(0x183)](_0x3c3595,_0x467e19));let _0xe3f20c=_0x467e19[_0x1ce26c(0x177)](_0x1f4c58);return _0xe3f20c||(_0xe3f20c=new _0x1990ac(),_0x467e19[_0x1ce26c(0x183)](_0x1f4c58,_0xe3f20c)),_0xe3f20c;}[_0x122c24(0x19f)](_0x5d91b5,_0x289674,_0x52f3ac,_0xcfcb2a,_0x12e333){const _0x10230d=_0x122c24;this[_0x10230d(0x1a4)](_0x5d91b5,_0x289674)[_0x10230d(0x173)](_0x52f3ac,_0xcfcb2a,_0x12e333);}[_0x122c24(0x161)](_0x5d9898,_0x5a0bae,_0x23d81b){const _0x4d8bee=_0x122c24;this[_0x4d8bee(0x1a4)](_0x5d9898,_0x5a0bae)[_0x4d8bee(0x161)](_0x23d81b);}['getBasicShapeType'](_0x2fcfe7,_0x25223c,_0x3fe707){const _0x53f0c2=_0x122c24;return this[_0x53f0c2(0x1a4)](_0x2fcfe7,_0x25223c)[_0x53f0c2(0x168)](_0x3fe707);}[_0x122c24(0x168)](_0x5c1535,_0x56a243,_0x19a16d){const _0x56aa59=_0x122c24;return this[_0x56aa59(0x1a4)](_0x5c1535,_0x56a243)[_0x56aa59(0x168)](_0x19a16d);}[_0x122c24(0x14e)](_0x95ad0,_0x465cf1,_0x39e8fc){const _0x5ecd7e=_0x122c24;return this[_0x5ecd7e(0x1a4)](_0x95ad0,_0x465cf1)[_0x5ecd7e(0x14e)](_0x39e8fc);}[_0x122c24(0x147)](_0x342c1a,_0x1afa1f,_0x2c378b){const _0x15b877=_0x122c24;return this['_ensureShapeModelManager'](_0x342c1a,_0x1afa1f)[_0x15b877(0x168)](_0x2c378b);}[_0x122c24(0x14f)](_0xb37099,_0x9e6197,_0x14a0aa){const _0x28ab3f=_0x122c24,_0x57a364=this['_ensureShapeModelManager'](_0xb37099,_0x9e6197);if(!_0x57a364['getShapeType'](_0x14a0aa))return;const _0x3ccee3=_0x57a364[_0x28ab3f(0x145)][_0x28ab3f(0x177)](_0x14a0aa);if(_0x3ccee3)return _0x3ccee3[_0x28ab3f(0x1a1)]();}[_0x122c24(0x16c)](_0x4da186,_0x19b50c,_0x1ff915){const _0x3f3572=_0x122c24;return this[_0x3f3572(0x1a4)](_0x4da186,_0x19b50c)[_0x3f3572(0x145)][_0x3f3572(0x177)](_0x1ff915);}[_0x122c24(0x191)](_0x4313fb,_0x272bca,_0x30b630){const _0x1972cd=_0x122c24;return this[_0x1972cd(0x1a4)](_0x4313fb,_0x272bca)[_0x1972cd(0x191)](_0x30b630);}['getLineShapeRelation'](_0x1a5c2a,_0x5cdd0b,_0x3558fd){const _0x4936d1=_0x122c24,_0x46953c=this[_0x4936d1(0x1a4)](_0x1a5c2a,_0x5cdd0b)[_0x4936d1(0x145)][_0x4936d1(0x177)](_0x3558fd);if(_0x46953c)return _0x46953c[_0x4936d1(0x16f)]();}[_0x122c24(0x15a)](){}[_0x122c24(0x151)](_0x35d0ce){const _0x366d11=_0x122c24,_0x42f12f={},_0x1d083d=this[_0x366d11(0x17c)][_0x366d11(0x177)](_0x35d0ce);return _0x1d083d&&_0x1d083d[_0x366d11(0x166)]((_0xe78cc1,_0x20fda9)=>{const _0x9fd72b=_0x366d11,_0x51411e=_0xe78cc1[_0x9fd72b(0x142)]();_0x51411e[_0x9fd72b(0x179)]>0x0&&(_0x42f12f[_0x20fda9]=_0x51411e);}),JSON['stringify'](_0x42f12f);}[_0x122c24(0x199)](_0x5bb840,_0x108e57){const _0x19dc09=_0x122c24;Object[_0x19dc09(0x144)](_0x108e57)[_0x19dc09(0x166)](_0x3c38c0=>{const _0x31c422=_0x19dc09;this[_0x31c422(0x1a4)](_0x5bb840,_0x3c38c0)[_0x31c422(0x184)](_0x108e57[_0x3c38c0]);});}[_0x122c24(0x142)](){const _0x5350f7=_0x122c24,_0x245c0b={};return this[_0x5350f7(0x17c)][_0x5350f7(0x166)]((_0x5bd492,_0x545548)=>{const _0x3799ad=_0x5350f7;_0x245c0b[_0x545548]={},_0x5bd492[_0x3799ad(0x166)]((_0x1d309b,_0x2933a5)=>{const _0x5a1de1=_0x3799ad;_0x245c0b[_0x545548][_0x2933a5]=_0x1d309b[_0x5a1de1(0x142)]();});}),_0x245c0b;}[_0x122c24(0x184)](_0x12e09f){const _0x3b794b=_0x122c24;Object[_0x3b794b(0x144)](_0x12e09f)[_0x3b794b(0x166)](_0x1e1efc=>{const _0x1f3cc3=_0x3b794b,_0x1ebb6a=_0x12e09f[_0x1e1efc];Object[_0x1f3cc3(0x144)](_0x1ebb6a)[_0x1f3cc3(0x166)](_0x50f420=>{const _0x29df1a=_0x1f3cc3;this[_0x29df1a(0x1a4)](_0x1e1efc,_0x50f420)['fromJSON'](_0x1ebb6a[_0x50f420]);});});}['_initSnapshot'](){const _0x356f91=_0x122c24;this[_0x356f91(0x17a)][_0x356f91(0x18a)]({'pluginName':_0x43da07,'businesses':[_0x33e491[_0x356f91(0x13f)]['UNIVER_SHEET']],'toJson':_0x57a0df=>this[_0x356f91(0x151)](_0x57a0df),'parseJson':_0x266cbe=>JSON[_0x356f91(0x146)](_0x266cbe),'onLoad':(_0x101a21,_0xfe6363)=>{const _0x3348b3=_0x356f91;this[_0x3348b3(0x199)](_0x101a21,_0xfe6363);},'onUnLoad':_0x57916e=>{const _0x2c9d86=_0x356f91,_0x3a406a=this['_shapeModelManagerMap'][_0x2c9d86(0x177)](_0x57916e);_0x3a406a&&(_0x3a406a[_0x2c9d86(0x166)](_0x490357=>{const _0x5215e1=_0x2c9d86;_0x490357[_0x5215e1(0x19b)]();}),this['_shapeModelManagerMap'][_0x2c9d86(0x176)](_0x57916e));}});}['dispose'](){const _0x749687=_0x122c24;this[_0x749687(0x17c)][_0x749687(0x166)](_0x320737=>{_0x320737['forEach'](_0x144d82=>{const _0x1cb92b=_0x2575;_0x144d82[_0x1cb92b(0x19b)]();});});}},_0x5cf09e[_0x122c24(0x196)]=_0x559763([_0x60680f(0x0,_0x33e491[_0x122c24(0x186)])],_0x5cf09e[_0x122c24(0x196)]);const _0x385e0e={'id':_0x122c24(0x188),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x155)],'handler':(_0x513b70,_0x128bab)=>{const _0x5e221f=_0x122c24,{unitId:_0x3b6ace,subUnitId:_0x315d1b,shapeType:_0x185ac2,shapeId:_0x3163b8,shapeData:_0xa47c8a}=_0x128bab,_0x586511=_0x513b70[_0x5e221f(0x177)](_0x5cf09e[_0x5e221f(0x196)])[_0x5e221f(0x16c)](_0x3b6ace,_0x315d1b,_0x3163b8);return _0x586511&&(_0x586511[_0x5e221f(0x15a)](_0x185ac2),_0xa47c8a&&(_0x586511==null||_0x586511['setShapeData'](_0xa47c8a))),!0x0;}},_0x3b671f={'id':_0x122c24(0x174),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x180)],'handler':(_0x533951,_0x514424)=>{const _0x29ff7c=_0x122c24;if(!_0x514424)return!0x1;const _0x37c399=_0x533951['get'](_0x33e491['ICommandService']),_0x3f1f7d=_0x533951[_0x29ff7c(0x177)](_0x5cf09e['SheetsShapeService']),_0xef145c=_0x533951[_0x29ff7c(0x177)](_0x33e491[_0x29ff7c(0x197)]),_0x3cc334=[],_0x447518=[],{unitId:_0x902a86,subUnitId:_0x24531f,shapeId:_0x826367,shapeType:_0x37c72f,shapeData:_0x1f3fd0}=_0x514424,_0x343c96=_0x3f1f7d[_0x29ff7c(0x16c)](_0x902a86,_0x24531f,_0x826367);if(_0x343c96){const _0x573a9d=_0x343c96['getShapeType'](),_0x44b76c=Object['assign']({},_0x343c96[_0x29ff7c(0x1a1)]()),_0x35ec29={'unitId':_0x902a86,'subUnitId':_0x24531f,'shapeId':_0x826367,'shapeType':_0x37c72f,'shapeData':_0x1f3fd0},_0x1c00f1={'unitId':_0x902a86,'subUnitId':_0x24531f,'shapeId':_0x826367,'shapeType':_0x573a9d,'shapeData':_0x44b76c};return _0x3cc334[_0x29ff7c(0x162)]({'id':_0x385e0e['id'],'params':_0x35ec29}),_0x447518[_0x29ff7c(0x162)]({'id':_0x385e0e['id'],'params':_0x1c00f1}),_0x3cc334[_0x29ff7c(0x1a6)](_0xcd9743=>_0x37c399[_0x29ff7c(0x192)](_0xcd9743['id'],_0xcd9743[_0x29ff7c(0x19c)]))&&_0xef145c[_0x29ff7c(0x198)]({'unitID':_0x902a86,'redoMutations':[..._0x3cc334],'undoMutations':[..._0x447518]}),!0x0;}return!0x1;}},_0x4f13d3={'id':_0x122c24(0x194),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x155)],'handler':(_0x37a57f,_0x4db445)=>{const _0x4e9165=_0x122c24,{unitId:_0x52df43,subUnitId:_0x550e59,shapeType:_0x271e63,shapeId:_0x57521e,shapeData:_0x313f36}=_0x4db445;return _0x37a57f[_0x4e9165(0x177)](_0x5cf09e[_0x4e9165(0x196)])[_0x4e9165(0x19f)](_0x52df43,_0x550e59,_0x271e63,_0x57521e,_0x313f36),!0x0;}},_0x415590={'id':_0x122c24(0x15f),'type':_0x33e491['CommandType'][_0x122c24(0x155)],'handler':(_0x2b74f4,_0x51ed4e)=>{const _0x343e5a=_0x122c24,{unitId:_0xea4c85,subUnitId:_0x524b22,shapeId:_0x2dea48}=_0x51ed4e;return _0x2b74f4['get'](_0x5cf09e[_0x343e5a(0x196)])[_0x343e5a(0x161)](_0xea4c85,_0x524b22,_0x2dea48),!0x0;}},_0x26b290={'id':_0x122c24(0x171),'type':_0x33e491[_0x122c24(0x19d)][_0x122c24(0x155)],'handler':(_0x2879dd,_0x2d8af0)=>{const _0xd53eb5=_0x122c24,{unitId:_0x46eb0e,subUnitId:_0x5ae38c,shapeType:_0x6b4136,shapeId:_0x33360c,shapeData:_0x1026bd}=_0x2d8af0,_0x206221=_0x2879dd[_0xd53eb5(0x177)](_0x5cf09e[_0xd53eb5(0x196)])[_0xd53eb5(0x16c)](_0x46eb0e,_0x5ae38c,_0x33360c);return _0x206221&&(_0x6b4136!==void 0x0&&_0x206221[_0xd53eb5(0x15a)](_0x6b4136),_0x1026bd&&(_0x206221==null||_0x206221['setShapeData'](_0x1026bd,!0x0))),!0x0;}},_0x199f6e='sheets-shape.config',_0x5db54e={};var _0x205295=Object['defineProperty'],_0xe3f327=Object[_0x122c24(0x17d)],_0x1c6ebb=(_0x16f8c1,_0x67b14e,_0x38923c)=>_0x67b14e in _0x16f8c1?_0x205295(_0x16f8c1,_0x67b14e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38923c}):_0x16f8c1[_0x67b14e]=_0x38923c,_0xcfbc40=(_0x2de13b,_0x1af970,_0xcefe74,_0x4419b4)=>{const _0x34a057=_0x122c24;for(var _0x48942c=_0x4419b4>0x1?void 0x0:_0x4419b4?_0xe3f327(_0x1af970,_0xcefe74):_0x1af970,_0x2ee683=_0x2de13b[_0x34a057(0x179)]-0x1,_0x240f66;_0x2ee683>=0x0;_0x2ee683--)(_0x240f66=_0x2de13b[_0x2ee683])&&(_0x48942c=_0x240f66(_0x48942c)||_0x48942c);return _0x48942c;},_0x5a2b96=(_0x29dedd,_0x4ffa61)=>(_0x1af349,_0x589e1a)=>_0x4ffa61(_0x1af349,_0x589e1a,_0x29dedd),_0x25b0fa=(_0x17b9d2,_0x2ed2ef,_0x1d7bd1)=>_0x1c6ebb(_0x17b9d2,typeof _0x2ed2ef!=_0x122c24(0x14b)?_0x2ed2ef+'':_0x2ed2ef,_0x1d7bd1);const _0x37557a=_0x122c24(0x15c);_0x5cf09e['UniverSheetsShapePlugin']=class extends _0x33e491['Plugin']{constructor(_0x5bb509=_0x5db54e,_0x112f2e,_0x4e4c67,_0x1a216f){const _0x581a39=_0x122c24;super(),this[_0x581a39(0x175)]=_0x5bb509,this[_0x581a39(0x157)]=_0x112f2e,this['_commandService']=_0x4e4c67,this[_0x581a39(0x149)]=_0x1a216f;const {..._0x16b2fe}=_0x33e491[_0x581a39(0x164)]({},_0x5db54e,this[_0x581a39(0x175)]);this[_0x581a39(0x149)][_0x581a39(0x14c)](_0x199f6e,_0x16b2fe),this[_0x581a39(0x15e)]();}['onRendered'](){const _0x46a338=_0x122c24;_0x33e491['touchDependencies'](this[_0x46a338(0x157)],[]);}[_0x122c24(0x17b)](){const _0x3483d0=_0x122c24,_0x8f5770=this[_0x3483d0(0x157)];[[_0x1990ac],[_0x5cf09e[_0x3483d0(0x196)]]][_0x3483d0(0x166)](_0x4dd8dd=>_0x8f5770[_0x3483d0(0x193)](_0x4dd8dd));}[_0x122c24(0x15e)](){const _0x3ef3b2=_0x122c24;[_0x4f13d3,_0x415590,_0x385e0e,_0x26b290][_0x3ef3b2(0x166)](_0x472b33=>this[_0x3ef3b2(0x185)](this['_commandService'][_0x3ef3b2(0x18e)](_0x472b33)));}},_0x25b0fa(_0x5cf09e[_0x122c24(0x190)],_0x122c24(0x160),_0x33e491['UniverInstanceType']['UNIVER_SHEET']),_0x25b0fa(_0x5cf09e[_0x122c24(0x190)],'pluginName',_0x37557a),_0x5cf09e[_0x122c24(0x190)]=_0xcfbc40([_0x33e491['DependentOn'](_0x125323['UniverLicensePlugin']),_0x5a2b96(0x1,_0x33e491[_0x122c24(0x182)](_0x33e491[_0x122c24(0x169)])),_0x5a2b96(0x2,_0x33e491[_0x122c24(0x163)]),_0x5a2b96(0x3,_0x33e491[_0x122c24(0x195)])],_0x5cf09e[_0x122c24(0x190)]),_0x5cf09e[_0x122c24(0x17f)]=_0x4f13d3,_0x5cf09e['RemoveSheetsShapeMutation']=_0x415590,_0x5cf09e[_0x122c24(0x141)]=_0x26b290,_0x5cf09e['UpdateSheetsShapeTypeCommand']=_0x3b671f,_0x5cf09e[_0x122c24(0x18c)]=_0x385e0e,Object[_0x122c24(0x154)](_0x5cf09e,Symbol[_0x122c24(0x15b)],{'value':_0x122c24(0x170)});}));function _0x2575(_0x2e72c2,_0x5b987d){_0x2e72c2=_0x2e72c2-0x13f;const _0x57cba9=_0x57cb();let _0x25756f=_0x57cba9[_0x2e72c2];return _0x25756f;}function _0x57cb(){const _0x278929=['addShape','sheet.command.update-shape-type','_config','delete','get','105132QKYxXs','length','_resourcesManagerService','onStarting','_shapeModelManagerMap','getOwnPropertyDescriptor','isLineShape','InsertSheetsShapeMutation','COMMAND','has','Inject','set','fromJSON','disposeWithMe','IResourceManagerService','_groupIds','sheet.mutation.update-shape-type','from','registerPluginResource','2493smruGp','UpdateSheetsShapeTypeMutation','UniverProEngineShape','registerCommand','1064238bemWAM','UniverSheetsShapePlugin','getBasicShapeRelation','syncExecuteCommand','add','sheet.mutation.insert-shape','IConfigService','SheetsShapeService','IUndoRedoService','pushUndoRedo','_deserializeShapeForUnit','_disposed','dispose','params','CommandType','1438SACxBg','insertShape','242000DdwuNd','getShapeData','shapeId','amd','_ensureShapeModelManager','@univerjs-pro/license','every','UniverInstanceType','exports','UpdateSheetsShapeDataMutation','toJSON','isConnectorShape','keys','_shapes','parse','getShapeTypeById','ShapeModel','_configService','280OAkVJH','symbol','setConfig','_initSnapshot','hasShape','getShapeDataById','1140280CLJMUD','_serializeShapeForUnit','357slgxXn','UniverProSheetsShape','defineProperty','MUTATION','255105aSAJOK','_injector','_linesIds','Disposable','setShapeType','toStringTag','SHEET_SHAPE_PLUGIN','15ftRCIA','_initCommands','sheet.mutation.remove-shape','type','removeShape','push','ICommandService','merge','clear','forEach','UniverCore','getShapeType','Injector','shapeData','object','getShapeModel','getLineShapeRelation','759240VHNoTC','getShapeRelation','Module','sheet.mutation.update-shape-data','@univerjs-pro/engine-shape'];_0x57cb=function(){return _0x278929;};return _0x57cb();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "0.16.0-insiders.20260303-185502e",
3
+ "version": "0.16.1",
4
4
  "private": false,
5
5
  "description": "shape for Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,17 +57,17 @@
57
57
  "rxjs": ">=7.0.0"
58
58
  },
59
59
  "dependencies": {
60
- "@univerjs-pro/license": "0.16.0-insiders.20260303-185502e",
61
- "@univerjs-pro/engine-shape": "0.16.0-insiders.20260303-185502e",
62
- "@univerjs/core": "0.16.0-insiders.20260303-185502e"
60
+ "@univerjs-pro/engine-shape": "0.16.1",
61
+ "@univerjs-pro/license": "0.16.1",
62
+ "@univerjs/core": "0.16.1"
63
63
  },
64
64
  "devDependencies": {
65
65
  "rxjs": "7.8.2",
66
66
  "typescript": "^5.9.3",
67
67
  "vite": "^7.3.1",
68
68
  "vitest": "^4.0.18",
69
- "@univerjs/sheets": "0.16.0-insiders.20260303-185502e",
70
- "@univerjs-infra/shared": "0.16.0"
69
+ "@univerjs-infra/shared": "0.16.1",
70
+ "@univerjs/sheets": "0.16.1"
71
71
  },
72
72
  "scripts": {
73
73
  "test": "vitest run",