@univerjs-pro/sheets-shape 0.17.0 → 0.18.0-insiders.20260328-d26c36e

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 _0x220968=_0x243d;function _0x3f0f(){const _0x5af29e=['Inject','getBasicShapeType','Plugin','syncExecuteCommand','disposeWithMe','Injector','_ensureShapeModelManager','CommandType','insertShape','name','onRendered','_config','ShapeModel','removeShape','UpdateSheetsShapeTypeCommand','_deserializeShapeForUnit','UniverInstanceType','sheet.mutation.remove-shape','IResourceManagerService','2643378XkkndF','getShapeRelation','@univerjs-pro/sheets-shape','registerPluginResource','SHEET_SHAPE_PLUGIN','type','_groupIds','1136749IegzHo','onStarting','getShapeTypeById','clear','setShapeType','registerCommand','length','pluginName','1392560XSENhT','_injector','SheetsShapeService','delete','shapeId','sheet.mutation.insert-shape','packageName','_shapeModelManagerMap','defineProperty','6014005KWwxeR','toStringTag','0.17.0','RemoveSheetsShapeMutation','set','171328LCNNiR','_shapes','get','MUTATION','_linesIds','getShapeModel','keys','getLineShapeRelation','forEach','1997128WlGnrV','hasShape','2456774PJuUpi','UniverLicensePlugin','dispose','_serializeShapeForUnit','Disposable','ICommandService','UpdateSheetsShapeTypeMutation','_resourcesManagerService','_initSnapshot','add','from','_configService','symbol','params','UniverSheetsShapePlugin','setConfig','addShape','_initCommands','getShapeData','getOwnPropertyDescriptor','isConnectorShape','getBasicShapeRelation','every','75mXFvsa','shapeData','setShapeData','touchDependencies','sheet.mutation.update-shape-data','IConfigService','has','parse','getShapeType','fromJSON','push','_commandService','toJSON','version','UpdateSheetsShapeDataMutation'];_0x3f0f=function(){return _0x5af29e;};return _0x3f0f();}(function(_0x1065d3,_0x21052c){const _0x43d821=_0x243d,_0x391d07=_0x1065d3();while(!![]){try{const _0xfba8db=-parseInt(_0x43d821(0x144))/0x1+parseInt(_0x43d821(0x104))/0x2+parseInt(_0x43d821(0x11b))/0x3*(-parseInt(_0x43d821(0xf9))/0x4)+parseInt(_0x43d821(0xf4))/0x5+parseInt(_0x43d821(0x13d))/0x6+parseInt(_0x43d821(0x102))/0x7+-parseInt(_0x43d821(0x14c))/0x8;if(_0xfba8db===_0x21052c)break;else _0x391d07['push'](_0x391d07['shift']());}catch(_0x442460){_0x391d07['push'](_0x391d07['shift']());}}}(_0x3f0f,0xbd50c));var C=Object['defineProperty'],b=(_0x3360cf,_0x4c8cca,_0x2216df)=>_0x4c8cca in _0x3360cf?C(_0x3360cf,_0x4c8cca,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2216df}):_0x3360cf[_0x4c8cca]=_0x2216df,S=(_0x3be945,_0x4cf841,_0x209f21)=>b(_0x3be945,typeof _0x4cf841!=_0x220968(0x110)?_0x4cf841+'':_0x4cf841,_0x209f21);Object[_0x220968(0xf3)](exports,Symbol[_0x220968(0xf5)],{'value':'Module'});const p=require('@univerjs/core'),g=require('@univerjs-pro/engine-shape'),R=require('@univerjs-pro/license');class m extends p[_0x220968(0x108)]{constructor(){const _0x197004=_0x220968;super(),S(this,'_shapes',new Map()),S(this,_0x197004(0xfd),new Set()),S(this,'_groupIds',new Set());}['addShape'](_0x44521d,_0x5c7d55,_0x548cf6){const _0x341538=_0x220968,_0x5b8144=new g[(_0x341538(0x136))](_0x44521d,_0x5c7d55,_0x548cf6);return this[_0x341538(0xfa)][_0x341538(0xf8)](_0x5c7d55,_0x5b8144),g['isConnectorShape'](_0x44521d)&&this[_0x341538(0xfd)][_0x341538(0x10d)](_0x5c7d55),_0x5b8144;}['getBasicShapeRelation'](_0x34a1af){const _0x3fc021=_0x220968;var _0x588421,_0x552e3c;const _0x3787a5=[];for(const _0xb403f5 of this['_linesIds']){const _0x1e0e35=this[_0x3fc021(0xfa)]['get'](_0xb403f5);if(_0x1e0e35){const _0x2dc9e4=_0x1e0e35[_0x3fc021(0x13e)]();_0x2dc9e4&&(((_0x588421=_0x2dc9e4['from'])==null?void 0x0:_0x588421[_0x3fc021(0x150)])===_0x34a1af&&_0x3787a5['push']({..._0x2dc9e4[_0x3fc021(0x10e)],'lineShapeId':_0xb403f5,'isFrom':!0x0}),((_0x552e3c=_0x2dc9e4['to'])==null?void 0x0:_0x552e3c[_0x3fc021(0x150)])===_0x34a1af&&_0x3787a5[_0x3fc021(0x125)]({..._0x2dc9e4['to'],'lineShapeId':_0xb403f5,'isFrom':!0x1}));}}return _0x3787a5;}[_0x220968(0x100)](_0x145c97){const _0x300739=_0x220968,_0x28b91a=this['_shapes'][_0x300739(0xfb)](_0x145c97);if(_0x28b91a)return _0x28b91a[_0x300739(0x13e)]();}[_0x220968(0x123)](_0x1ca59c){const _0x427182=_0x220968,_0x12c024=this['_shapes'][_0x427182(0xfb)](_0x1ca59c);if(_0x12c024)return _0x12c024[_0x427182(0x123)]();}['hasShape'](_0x3f0fc8){const _0x11d3f8=_0x220968;return this[_0x11d3f8(0xfa)][_0x11d3f8(0x121)](_0x3f0fc8);}[_0x220968(0x137)](_0x148394){const _0x35506e=_0x220968,_0x51a98d=this[_0x35506e(0xfa)]['get'](_0x148394);_0x51a98d&&(g[_0x35506e(0x118)](_0x51a98d['getShapeType']())&&this[_0x35506e(0xfd)][_0x35506e(0x14f)](_0x148394),this[_0x35506e(0xfa)]['delete'](_0x148394));}['toJSON'](){const _0x8cdec9=_0x220968,_0x24b20b=[];return this[_0x8cdec9(0xfa)][_0x8cdec9(0x101)](_0x81b104=>{const _0x539dd3=_0x8cdec9;_0x24b20b[_0x539dd3(0x125)](_0x81b104[_0x539dd3(0x127)]());}),_0x24b20b;}[_0x220968(0x124)](_0x34c42b){const _0x14042a=_0x220968;for(const _0x4b0367 of _0x34c42b){const {id:_0x3ade2b,shapeType:_0x2950c3}=_0x4b0367,_0x52d890=this[_0x14042a(0x114)](_0x2950c3,_0x3ade2b,_0x4b0367[_0x14042a(0x11c)]);_0x52d890&&_0x52d890['isLineShape']()&&this[_0x14042a(0xfd)][_0x14042a(0x10d)](_0x3ade2b);}}[_0x220968(0x106)](){const _0x4814bd=_0x220968;this['_disposed']||(this['_shapes']['forEach'](_0x54c7de=>{const _0x2f6e9a=_0x243d;_0x54c7de[_0x2f6e9a(0x106)]();}),this[_0x4814bd(0xfa)][_0x4814bd(0x147)](),this[_0x4814bd(0xfd)][_0x4814bd(0x147)](),this[_0x4814bd(0x143)]['clear'](),super[_0x4814bd(0x106)]());}}var j=Object[_0x220968(0x117)],J=(_0x5d7467,_0x1fc328,_0x3f1bd8,_0x303263)=>{const _0x1cba7d=_0x220968;for(var _0x58eec9=_0x303263>0x1?void 0x0:_0x303263?j(_0x1fc328,_0x3f1bd8):_0x1fc328,_0x467898=_0x5d7467[_0x1cba7d(0x14a)]-0x1,_0x50454a;_0x467898>=0x0;_0x467898--)(_0x50454a=_0x5d7467[_0x467898])&&(_0x58eec9=_0x50454a(_0x58eec9)||_0x58eec9);return _0x58eec9;},w=(_0x3cb17f,_0x1432d1)=>(_0x3334d5,_0x2ada9e)=>_0x1432d1(_0x3334d5,_0x2ada9e,_0x3cb17f);const H=_0x220968(0x141);exports['SheetsShapeService']=class extends p[_0x220968(0x108)]{constructor(_0x4964dd){const _0x44aa05=_0x220968;super(),S(this,_0x44aa05(0xf2),new Map()),(this[_0x44aa05(0x10b)]=_0x4964dd,this[_0x44aa05(0x10c)]());}[_0x220968(0x130)](_0x12fb9d,_0x1cfed0){const _0x15627d=_0x220968;let _0x5bf6d0=this[_0x15627d(0xf2)][_0x15627d(0xfb)](_0x12fb9d);_0x5bf6d0||(_0x5bf6d0=new Map(),this['_shapeModelManagerMap'][_0x15627d(0xf8)](_0x12fb9d,_0x5bf6d0));let _0x568a0b=_0x5bf6d0[_0x15627d(0xfb)](_0x1cfed0);return _0x568a0b||(_0x568a0b=new m(),_0x5bf6d0['set'](_0x1cfed0,_0x568a0b)),_0x568a0b;}['insertShape'](_0x4f5f5b,_0xa4530c,_0x584fff,_0xbfaa7b,_0x20356a){const _0x3e99c2=_0x220968;this[_0x3e99c2(0x130)](_0x4f5f5b,_0xa4530c)['addShape'](_0x584fff,_0xbfaa7b,_0x20356a);}[_0x220968(0x137)](_0x23ae40,_0x7832dc,_0x279390){const _0x25f4f2=_0x220968;this[_0x25f4f2(0x130)](_0x23ae40,_0x7832dc)[_0x25f4f2(0x137)](_0x279390);}[_0x220968(0x12b)](_0x49e653,_0x2382d8,_0x131b11){const _0x437a1f=_0x220968;return this[_0x437a1f(0x130)](_0x49e653,_0x2382d8)[_0x437a1f(0x123)](_0x131b11);}[_0x220968(0x123)](_0x48571b,_0x3c63ca,_0x9fffdf){const _0x20c8a3=_0x220968;return this[_0x20c8a3(0x130)](_0x48571b,_0x3c63ca)['getShapeType'](_0x9fffdf);}[_0x220968(0x103)](_0x304f13,_0x3968f0,_0x272d13){const _0x53079c=_0x220968;return this[_0x53079c(0x130)](_0x304f13,_0x3968f0)[_0x53079c(0x103)](_0x272d13);}[_0x220968(0x146)](_0x266c15,_0x4e4e48,_0x50a3ea){const _0x284b7b=_0x220968;return this[_0x284b7b(0x130)](_0x266c15,_0x4e4e48)[_0x284b7b(0x123)](_0x50a3ea);}['getShapeDataById'](_0x5902a1,_0x1ab034,_0x1e1504){const _0x7a742d=_0x220968,_0x5399f7=this['_ensureShapeModelManager'](_0x5902a1,_0x1ab034);if(!_0x5399f7[_0x7a742d(0x123)](_0x1e1504))return;const _0x10ccc8=_0x5399f7[_0x7a742d(0xfa)][_0x7a742d(0xfb)](_0x1e1504);if(_0x10ccc8)return _0x10ccc8[_0x7a742d(0x116)]();}[_0x220968(0xfe)](_0x54dc9e,_0x252635,_0x47d1c2){return this['_ensureShapeModelManager'](_0x54dc9e,_0x252635)['_shapes']['get'](_0x47d1c2);}['getBasicShapeRelation'](_0x8b4e0d,_0x168592,_0xdc2af){const _0x5edbad=_0x220968;return this['_ensureShapeModelManager'](_0x8b4e0d,_0x168592)[_0x5edbad(0x119)](_0xdc2af);}['getLineShapeRelation'](_0x67c82,_0x5bd46b,_0x102a5f){const _0x1d75fa=_0x220968,_0x96806=this['_ensureShapeModelManager'](_0x67c82,_0x5bd46b)[_0x1d75fa(0xfa)][_0x1d75fa(0xfb)](_0x102a5f);if(_0x96806)return _0x96806['getShapeRelation']();}[_0x220968(0x148)](){}['_serializeShapeForUnit'](_0x5f06df){const _0xb0ccd=_0x220968,_0x47a9e4={},_0x5d05f1=this['_shapeModelManagerMap'][_0xb0ccd(0xfb)](_0x5f06df);return _0x5d05f1&&_0x5d05f1[_0xb0ccd(0x101)]((_0x108cc0,_0x566504)=>{const _0x8229f0=_0xb0ccd,_0x41384d=_0x108cc0[_0x8229f0(0x127)]();_0x41384d[_0x8229f0(0x14a)]>0x0&&(_0x47a9e4[_0x566504]=_0x41384d);}),JSON['stringify'](_0x47a9e4);}[_0x220968(0x139)](_0x49238a,_0xbdde56){Object['keys'](_0xbdde56)['forEach'](_0x3bb05f=>{const _0x3aa835=_0x243d;this[_0x3aa835(0x130)](_0x49238a,_0x3bb05f)[_0x3aa835(0x124)](_0xbdde56[_0x3bb05f]);});}['toJSON'](){const _0x2b3495=_0x220968,_0x4ce9e0={};return this['_shapeModelManagerMap'][_0x2b3495(0x101)]((_0x5227e3,_0x27b09b)=>{_0x4ce9e0[_0x27b09b]={},_0x5227e3['forEach']((_0x4781d0,_0x24daff)=>{_0x4ce9e0[_0x27b09b][_0x24daff]=_0x4781d0['toJSON']();});}),_0x4ce9e0;}[_0x220968(0x124)](_0x16ca66){const _0x1f658a=_0x220968;Object[_0x1f658a(0xff)](_0x16ca66)['forEach'](_0x39578f=>{const _0xaabc94=_0x1f658a,_0x4d6ce8=_0x16ca66[_0x39578f];Object[_0xaabc94(0xff)](_0x4d6ce8)['forEach'](_0x53a13b=>{const _0x46e07f=_0xaabc94;this[_0x46e07f(0x130)](_0x39578f,_0x53a13b)['fromJSON'](_0x4d6ce8[_0x53a13b]);});});}['_initSnapshot'](){const _0x2484f4=_0x220968;this['_resourcesManagerService'][_0x2484f4(0x140)]({'pluginName':H,'businesses':[p[_0x2484f4(0x13a)]['UNIVER_SHEET']],'toJson':_0x3105b5=>this[_0x2484f4(0x107)](_0x3105b5),'parseJson':_0x4ac885=>JSON[_0x2484f4(0x122)](_0x4ac885),'onLoad':(_0x35a294,_0x5021d2)=>{this['_deserializeShapeForUnit'](_0x35a294,_0x5021d2);},'onUnLoad':_0x1e0717=>{const _0x17d73c=_0x2484f4,_0x5d1c5e=this[_0x17d73c(0xf2)][_0x17d73c(0xfb)](_0x1e0717);_0x5d1c5e&&(_0x5d1c5e[_0x17d73c(0x101)](_0xcd846e=>{const _0x27f398=_0x17d73c;_0xcd846e[_0x27f398(0x106)]();}),this[_0x17d73c(0xf2)][_0x17d73c(0x14f)](_0x1e0717));}});}['dispose'](){const _0x43e4da=_0x220968;this[_0x43e4da(0xf2)][_0x43e4da(0x101)](_0x169692=>{const _0x579ed2=_0x43e4da;_0x169692[_0x579ed2(0x101)](_0x1e5ef9=>{const _0x15f819=_0x579ed2;_0x1e5ef9[_0x15f819(0x106)]();});});}},exports[_0x220968(0x14e)]=J([w(0x0,p[_0x220968(0x13c)])],exports['SheetsShapeService']);const d={'id':'sheet.mutation.update-shape-type','type':p[_0x220968(0x131)][_0x220968(0xfc)],'handler':(_0x464060,_0xd933b2)=>{const _0x334e38=_0x220968,{unitId:_0x54a9c4,subUnitId:_0x3cd1ac,shapeType:_0x338891,shapeId:_0x4b85c3,shapeData:_0x46be97}=_0xd933b2,_0x3df25e=_0x464060[_0x334e38(0xfb)](exports[_0x334e38(0x14e)])['getShapeModel'](_0x54a9c4,_0x3cd1ac,_0x4b85c3);return _0x3df25e&&(_0x3df25e[_0x334e38(0x148)](_0x338891),_0x46be97&&(_0x3df25e==null||_0x3df25e[_0x334e38(0x11d)](_0x46be97))),!0x0;}},L={'id':'sheet.command.update-shape-type','type':p[_0x220968(0x131)]['COMMAND'],'handler':(_0x638f9e,_0x5769fb)=>{const _0x55fb00=_0x220968;if(!_0x5769fb)return!0x1;const _0xce43ec=_0x638f9e[_0x55fb00(0xfb)](p[_0x55fb00(0x109)]),_0x4c3256=_0x638f9e[_0x55fb00(0xfb)](exports[_0x55fb00(0x14e)]),_0x5bde0b=_0x638f9e['get'](p['IUndoRedoService']),_0x26a943=[],_0xd19028=[],{unitId:_0x2433e1,subUnitId:_0x35f3ab,shapeId:_0x2a216b,shapeType:_0x543082,shapeData:_0x45670e}=_0x5769fb,_0x1d7d44=_0x4c3256[_0x55fb00(0xfe)](_0x2433e1,_0x35f3ab,_0x2a216b);if(_0x1d7d44){const _0x4ec7e6=_0x1d7d44[_0x55fb00(0x123)](),_0x23f128=Object['assign']({},_0x1d7d44[_0x55fb00(0x116)]()),_0x5e2fd6={'unitId':_0x2433e1,'subUnitId':_0x35f3ab,'shapeId':_0x2a216b,'shapeType':_0x543082,'shapeData':_0x45670e},_0x5d02a4={'unitId':_0x2433e1,'subUnitId':_0x35f3ab,'shapeId':_0x2a216b,'shapeType':_0x4ec7e6,'shapeData':_0x23f128};return _0x26a943[_0x55fb00(0x125)]({'id':d['id'],'params':_0x5e2fd6}),_0xd19028['push']({'id':d['id'],'params':_0x5d02a4}),_0x26a943[_0x55fb00(0x11a)](_0x340927=>_0xce43ec[_0x55fb00(0x12d)](_0x340927['id'],_0x340927[_0x55fb00(0x111)]))&&_0x5bde0b['pushUndoRedo']({'unitID':_0x2433e1,'redoMutations':[..._0x26a943],'undoMutations':[..._0xd19028]}),!0x0;}return!0x1;}},v={'id':_0x220968(0x151),'type':p['CommandType'][_0x220968(0xfc)],'handler':(_0x23aa57,_0x515890)=>{const _0x2cc897=_0x220968,{unitId:_0x15af6e,subUnitId:_0x38571f,shapeType:_0x27b9ad,shapeId:_0x581a09,shapeData:_0x41017a}=_0x515890;return _0x23aa57[_0x2cc897(0xfb)](exports[_0x2cc897(0x14e)])[_0x2cc897(0x132)](_0x15af6e,_0x38571f,_0x27b9ad,_0x581a09,_0x41017a),!0x0;}},y={'id':_0x220968(0x13b),'type':p[_0x220968(0x131)][_0x220968(0xfc)],'handler':(_0x1d0ef1,_0x27ded0)=>{const _0x3b478c=_0x220968,{unitId:_0x51846a,subUnitId:_0x447835,shapeId:_0x411b92}=_0x27ded0;return _0x1d0ef1[_0x3b478c(0xfb)](exports[_0x3b478c(0x14e)])[_0x3b478c(0x137)](_0x51846a,_0x447835,_0x411b92),!0x0;}},T={'id':_0x220968(0x11f),'type':p[_0x220968(0x131)][_0x220968(0xfc)],'handler':(_0x331ade,_0x521390)=>{const _0x123b9e=_0x220968,{unitId:_0x4cd69f,subUnitId:_0x389aed,shapeType:_0x2d2186,shapeId:_0x192bd2,shapeData:_0x5be0dd}=_0x521390,_0x1d418b=_0x331ade[_0x123b9e(0xfb)](exports[_0x123b9e(0x14e)])[_0x123b9e(0xfe)](_0x4cd69f,_0x389aed,_0x192bd2);return _0x1d418b&&(_0x2d2186!==void 0x0&&_0x1d418b[_0x123b9e(0x148)](_0x2d2186),_0x5be0dd&&(_0x1d418b==null||_0x1d418b[_0x123b9e(0x11d)](_0x5be0dd,!0x0))),!0x0;}},A=_0x220968(0x13f),F=_0x220968(0xf6),I={'name':A,'version':F},B='sheets-shape.config',f={};var G=Object['defineProperty'],x=Object[_0x220968(0x117)],z=(_0x528143,_0x281c44,_0x25c707)=>_0x281c44 in _0x528143?G(_0x528143,_0x281c44,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25c707}):_0x528143[_0x281c44]=_0x25c707,q=(_0x4a0a4c,_0x2cedd4,_0x3de807,_0x4572be)=>{const _0x1158c4=_0x220968;for(var _0xed71fe=_0x4572be>0x1?void 0x0:_0x4572be?x(_0x2cedd4,_0x3de807):_0x2cedd4,_0x369ca4=_0x4a0a4c[_0x1158c4(0x14a)]-0x1,_0xf4e008;_0x369ca4>=0x0;_0x369ca4--)(_0xf4e008=_0x4a0a4c[_0x369ca4])&&(_0xed71fe=_0xf4e008(_0xed71fe)||_0xed71fe);return _0xed71fe;},u=(_0x403fb5,_0x4d614f)=>(_0x87d44a,_0x2fdc32)=>_0x4d614f(_0x87d44a,_0x2fdc32,_0x403fb5),c=(_0xa044f7,_0x4bcee1,_0x336f92)=>z(_0xa044f7,typeof _0x4bcee1!=_0x220968(0x110)?_0x4bcee1+'':_0x4bcee1,_0x336f92);function _0x243d(_0x5b4aec,_0x362d49){_0x5b4aec=_0x5b4aec-0xf2;const _0x3f0f64=_0x3f0f();let _0x243d2e=_0x3f0f64[_0x5b4aec];return _0x243d2e;}exports[_0x220968(0x112)]=class extends p[_0x220968(0x12c)]{constructor(_0x3f6dc6=f,_0x3ce594,_0x371a0d,_0x1cba2e){const _0x3db141=_0x220968;super(),this[_0x3db141(0x135)]=_0x3f6dc6,this[_0x3db141(0x14d)]=_0x3ce594,this[_0x3db141(0x126)]=_0x371a0d,this[_0x3db141(0x10f)]=_0x1cba2e;const {..._0x1f2a57}=p['merge']({},f,this[_0x3db141(0x135)]);this[_0x3db141(0x10f)][_0x3db141(0x113)](B,_0x1f2a57),this['_initCommands']();}[_0x220968(0x134)](){const _0x56916b=_0x220968;p[_0x56916b(0x11e)](this[_0x56916b(0x14d)],[]);}[_0x220968(0x145)](){const _0x3de68a=_0x220968,_0x28847a=this[_0x3de68a(0x14d)];[[m],[exports[_0x3de68a(0x14e)]]][_0x3de68a(0x101)](_0x28cc4b=>_0x28847a[_0x3de68a(0x10d)](_0x28cc4b));}[_0x220968(0x115)](){const _0x4f89dd=_0x220968;[v,y,d,T]['forEach'](_0x22cc2a=>this[_0x4f89dd(0x12e)](this['_commandService'][_0x4f89dd(0x149)](_0x22cc2a)));}},c(exports[_0x220968(0x112)],_0x220968(0x142),p[_0x220968(0x13a)]['UNIVER_SHEET']),c(exports[_0x220968(0x112)],_0x220968(0x14b),'SHEET_SHAPE_PLUGIN'),c(exports[_0x220968(0x112)],_0x220968(0x152),I[_0x220968(0x133)]),c(exports[_0x220968(0x112)],_0x220968(0x128),I['version']),exports['UniverSheetsShapePlugin']=q([p['DependentOn'](R[_0x220968(0x105)]),u(0x1,p[_0x220968(0x12a)](p[_0x220968(0x12f)])),u(0x2,p['ICommandService']),u(0x3,p[_0x220968(0x120)])],exports[_0x220968(0x112)]),exports['InsertSheetsShapeMutation']=v,exports[_0x220968(0xf7)]=y,exports[_0x220968(0x129)]=T,exports[_0x220968(0x138)]=L,exports[_0x220968(0x10a)]=d;
1
+ const _0x47df29=_0x49a8;(function(_0x2214d4,_0x30c47b){const _0x380fc8=_0x49a8,_0xbd1ebe=_0x2214d4();while(!![]){try{const _0x46e04b=-parseInt(_0x380fc8(0x1d7))/0x1*(parseInt(_0x380fc8(0x1c1))/0x2)+-parseInt(_0x380fc8(0x1be))/0x3*(-parseInt(_0x380fc8(0x204))/0x4)+parseInt(_0x380fc8(0x1b0))/0x5+-parseInt(_0x380fc8(0x1dc))/0x6+parseInt(_0x380fc8(0x218))/0x7*(parseInt(_0x380fc8(0x1e8))/0x8)+-parseInt(_0x380fc8(0x1eb))/0x9+parseInt(_0x380fc8(0x1f3))/0xa;if(_0x46e04b===_0x30c47b)break;else _0xbd1ebe['push'](_0xbd1ebe['shift']());}catch(_0x852b1a){_0xbd1ebe['push'](_0xbd1ebe['shift']());}}}(_0x3f7a,0xb69dc),Object['defineProperty'](exports,Symbol[_0x47df29(0x1ad)],{'value':'Module'}));let e=require(`@univerjs/core`),t=require(`@univerjs-pro/engine-shape`),n=require(`@univerjs-pro/license`);function r(_0x157e1e){'@babel/helpers - typeof';const _0x232bc2=_0x47df29;return r=typeof Symbol=='function'&&typeof Symbol[_0x232bc2(0x1c6)]==_0x232bc2(0x20e)?function(_0x3149f9){return typeof _0x3149f9;}:function(_0x53aa40){const _0x5955b=_0x232bc2;return _0x53aa40&&typeof Symbol==_0x5955b(0x1f6)&&_0x53aa40[_0x5955b(0x215)]===Symbol&&_0x53aa40!==Symbol['prototype']?'symbol':typeof _0x53aa40;},r(_0x157e1e);}function i(_0x502cf7,_0x47c2b3){const _0x126f48=_0x47df29;if(r(_0x502cf7)!=_0x126f48(0x1c7)||!_0x502cf7)return _0x502cf7;var _0x4d9d57=_0x502cf7[Symbol[_0x126f48(0x1b1)]];if(_0x4d9d57!==void 0x0){var _0x25066b=_0x4d9d57['call'](_0x502cf7,_0x47c2b3||_0x126f48(0x1d5));if(r(_0x25066b)!='object')return _0x25066b;throw TypeError(_0x126f48(0x1bd));}return(_0x47c2b3===_0x126f48(0x1b6)?String:Number)(_0x502cf7);}function a(_0x4f0788){const _0xe86e00=_0x47df29;var _0x2ad777=i(_0x4f0788,_0xe86e00(0x1b6));return r(_0x2ad777)==_0xe86e00(0x20e)?_0x2ad777:_0x2ad777+'';}function o(_0x27a6bd,_0x14a2e3,_0x515205){const _0x310bc2=_0x47df29;return(_0x14a2e3=a(_0x14a2e3))in _0x27a6bd?Object[_0x310bc2(0x1cd)](_0x27a6bd,_0x14a2e3,{'value':_0x515205,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27a6bd[_0x14a2e3]=_0x515205,_0x27a6bd;}var s=class extends e[_0x47df29(0x1d8)]{constructor(){const _0x16dd73=_0x47df29;super(),o(this,_0x16dd73(0x1ce),new Map()),o(this,_0x16dd73(0x1c3),new Set()),o(this,_0x16dd73(0x1c0),new Set());}[_0x47df29(0x1c4)](_0xc75244,_0x527d67,_0x127edb){const _0x2579b6=_0x47df29;let _0x3b1335=new t[(_0x2579b6(0x205))](_0xc75244,_0x527d67,_0x127edb);return this['_shapes'][_0x2579b6(0x1bb)](_0x527d67,_0x3b1335),(0x0,t[_0x2579b6(0x1ec)])(_0xc75244)&&this[_0x2579b6(0x1c3)][_0x2579b6(0x1b8)](_0x527d67),_0x3b1335;}['getBasicShapeRelation'](_0x526739){const _0x4ec41c=_0x47df29;let _0x3ab741=[];for(let _0x2a45a8 of this[_0x4ec41c(0x1c3)]){let _0x47e1da=this['_shapes'][_0x4ec41c(0x1b3)](_0x2a45a8);if(_0x47e1da){let _0x1565ed=_0x47e1da[_0x4ec41c(0x214)]();if(_0x1565ed){var _0x584bbe,_0x5edf6c;((_0x584bbe=_0x1565ed['from'])==null?void 0x0:_0x584bbe[_0x4ec41c(0x1ff)])===_0x526739&&_0x3ab741[_0x4ec41c(0x1fe)]({..._0x1565ed['from'],'lineShapeId':_0x2a45a8,'isFrom':!0x0}),((_0x5edf6c=_0x1565ed['to'])==null?void 0x0:_0x5edf6c['shapeId'])===_0x526739&&_0x3ab741['push']({..._0x1565ed['to'],'lineShapeId':_0x2a45a8,'isFrom':!0x1});}}}return _0x3ab741;}[_0x47df29(0x1cb)](_0x3f9a0c){const _0x339fca=_0x47df29;let _0x4a6323=this[_0x339fca(0x1ce)][_0x339fca(0x1b3)](_0x3f9a0c);if(_0x4a6323)return _0x4a6323[_0x339fca(0x214)]();}[_0x47df29(0x1f0)](_0x907118){const _0x51faa2=_0x47df29;let _0x5ae13c=this['_shapes'][_0x51faa2(0x1b3)](_0x907118);if(_0x5ae13c)return _0x5ae13c[_0x51faa2(0x1f0)]();}['hasShape'](_0x568f87){const _0x366102=_0x47df29;return this[_0x366102(0x1ce)][_0x366102(0x1df)](_0x568f87);}[_0x47df29(0x1b5)](_0x5ae515){const _0x946758=_0x47df29;let _0x4977b6=this[_0x946758(0x1ce)][_0x946758(0x1b3)](_0x5ae515);_0x4977b6&&((0x0,t[_0x946758(0x1ec)])(_0x4977b6[_0x946758(0x1f0)]())&&this[_0x946758(0x1c3)][_0x946758(0x1dd)](_0x5ae515),this['_shapes'][_0x946758(0x1dd)](_0x5ae515));}[_0x47df29(0x1f5)](){const _0x113c33=_0x47df29;let _0x4c9df4=[];return this[_0x113c33(0x1ce)][_0x113c33(0x1b4)](_0x1becf4=>{const _0x2e5737=_0x113c33;_0x4c9df4['push'](_0x1becf4[_0x2e5737(0x1f5)]());}),_0x4c9df4;}[_0x47df29(0x216)](_0x2f0f8a){const _0x405584=_0x47df29;for(let _0x33ce39 of _0x2f0f8a){let {id:_0x3d99ba,shapeType:_0x409159}=_0x33ce39,_0x4a9bbb=this[_0x405584(0x1c4)](_0x409159,_0x3d99ba,_0x33ce39[_0x405584(0x1fd)]);_0x4a9bbb&&_0x4a9bbb[_0x405584(0x1f1)]()&&this['_linesIds'][_0x405584(0x1b8)](_0x3d99ba);}}['dispose'](){const _0x44a1c1=_0x47df29;this[_0x44a1c1(0x1f2)]||(this[_0x44a1c1(0x1ce)]['forEach'](_0x3f7379=>{_0x3f7379['dispose']();}),this[_0x44a1c1(0x1ce)][_0x44a1c1(0x1f8)](),this[_0x44a1c1(0x1c3)][_0x44a1c1(0x1f8)](),this[_0x44a1c1(0x1c0)][_0x44a1c1(0x1f8)](),super[_0x44a1c1(0x1d1)]());}};function c(_0x3669f5,_0x32f5bf){return function(_0x261de4,_0x385669){_0x32f5bf(_0x261de4,_0x385669,_0x3669f5);};}function l(_0x2aa24a,_0x50dfaf,_0x40f9b2,_0x5510dd){const _0x573eca=_0x47df29;var _0x1ac6fa=arguments[_0x573eca(0x1c5)],_0x37c984=_0x1ac6fa<0x3?_0x50dfaf:_0x5510dd===null?_0x5510dd=Object['getOwnPropertyDescriptor'](_0x50dfaf,_0x40f9b2):_0x5510dd,_0x284ef1;if(typeof Reflect==_0x573eca(0x1c7)&&typeof Reflect[_0x573eca(0x1cf)]==_0x573eca(0x1f6))_0x37c984=Reflect[_0x573eca(0x1cf)](_0x2aa24a,_0x50dfaf,_0x40f9b2,_0x5510dd);else{for(var _0x1d4ba0=_0x2aa24a['length']-0x1;_0x1d4ba0>=0x0;_0x1d4ba0--)(_0x284ef1=_0x2aa24a[_0x1d4ba0])&&(_0x37c984=(_0x1ac6fa<0x3?_0x284ef1(_0x37c984):_0x1ac6fa>0x3?_0x284ef1(_0x50dfaf,_0x40f9b2,_0x37c984):_0x284ef1(_0x50dfaf,_0x40f9b2))||_0x37c984);}return _0x1ac6fa>0x3&&_0x37c984&&Object[_0x573eca(0x1cd)](_0x50dfaf,_0x40f9b2,_0x37c984),_0x37c984;}function _0x3f7a(){const _0x40feea=['assign','IConfigService','setConfig','shapeData','push','shapeId','registerPluginResource','sheet.command.update-shape-type','_initCommands','UniverSheetsShapePlugin','100564UZboMp','ShapeModel','keys','IUndoRedoService','UpdateSheetsShapeTypeMutation','hasShape','packageName','@univerjs-pro/sheets-shape','getBasicShapeType','SHEET_SHAPE_PLUGIN','symbol','UpdateSheetsShapeTypeCommand','Injector','sheets-shape.config','UniverLicensePlugin','disposeWithMe','getShapeRelation','constructor','fromJSON','ICommandService','483oskruu','stringify','touchDependencies','toStringTag','sheet.mutation.insert-shape','setShapeType','1973975wZKfnu','toPrimitive','insertShape','get','forEach','removeShape','string','CommandType','add','UniverInstanceType','getShapeDataById','set','merge','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','3aiJklh','_commandService','_groupIds','128434oFkoou','params','_linesIds','addShape','length','iterator','object','every','_config','version','getLineShapeRelation','_resourcesManagerService','defineProperty','_shapes','decorate','registerCommand','dispose','_deserializeShapeForUnit','RemoveSheetsShapeMutation','MUTATION','default','getBasicShapeRelation','4ohFPpt','Disposable','InsertSheetsShapeMutation','_ensureShapeModelManager','Inject','5671002qUBxLV','delete','sheet.mutation.update-shape-data','has','_serializeShapeForUnit','getShapeData','setShapeData','getShapeModel','getShapeTypeById','_shapeModelManagerMap','syncExecuteCommand','0.18.0-insiders.20260328-d26c36e','87336cyTvCq','_injector','DependentOn','8144289tXfkwU','isConnectorShape','_initSnapshot','_configService','UNIVER_SHEET','getShapeType','isLineShape','_disposed','16817430AzFXEv','SheetsShapeService','toJSON','function','sheet.mutation.update-shape-type','clear','COMMAND'];_0x3f7a=function(){return _0x40feea;};return _0x3f7a();}let u=class extends e['Disposable']{constructor(_0x2a3358){const _0x40fb88=_0x47df29;super(),this['_resourcesManagerService']=_0x2a3358,o(this,_0x40fb88(0x1e5),new Map()),this[_0x40fb88(0x1ed)]();}[_0x47df29(0x1da)](_0x461ead,_0x253f23){const _0x2c2b0a=_0x47df29;let _0x54e071=this['_shapeModelManagerMap'][_0x2c2b0a(0x1b3)](_0x461ead);_0x54e071||(_0x54e071=new Map(),this[_0x2c2b0a(0x1e5)][_0x2c2b0a(0x1bb)](_0x461ead,_0x54e071));let _0x4c560f=_0x54e071['get'](_0x253f23);return _0x4c560f||(_0x4c560f=new s(),_0x54e071['set'](_0x253f23,_0x4c560f)),_0x4c560f;}[_0x47df29(0x1b2)](_0x209de2,_0x425d10,_0xebdc5b,_0x3533a3,_0x50236e){const _0x2d9a42=_0x47df29;this['_ensureShapeModelManager'](_0x209de2,_0x425d10)[_0x2d9a42(0x1c4)](_0xebdc5b,_0x3533a3,_0x50236e);}[_0x47df29(0x1b5)](_0x3e7454,_0x346668,_0x58063a){this['_ensureShapeModelManager'](_0x3e7454,_0x346668)['removeShape'](_0x58063a);}[_0x47df29(0x20c)](_0x19fa44,_0x2e0e5c,_0x521260){const _0x212bed=_0x47df29;return this[_0x212bed(0x1da)](_0x19fa44,_0x2e0e5c)[_0x212bed(0x1f0)](_0x521260);}[_0x47df29(0x1f0)](_0x379362,_0x48fef3,_0x3e2795){const _0x52cc98=_0x47df29;return this[_0x52cc98(0x1da)](_0x379362,_0x48fef3)[_0x52cc98(0x1f0)](_0x3e2795);}[_0x47df29(0x209)](_0x1c8903,_0x31fe84,_0x321ee0){const _0x3b3f93=_0x47df29;return this[_0x3b3f93(0x1da)](_0x1c8903,_0x31fe84)[_0x3b3f93(0x209)](_0x321ee0);}[_0x47df29(0x1e4)](_0x49ac29,_0x4cfd5f,_0x5d65d8){return this['_ensureShapeModelManager'](_0x49ac29,_0x4cfd5f)['getShapeType'](_0x5d65d8);}[_0x47df29(0x1ba)](_0x4a7c56,_0x26a922,_0x52ea3e){const _0x39265f=_0x47df29;let _0x3a03fe=this[_0x39265f(0x1da)](_0x4a7c56,_0x26a922);if(!_0x3a03fe[_0x39265f(0x1f0)](_0x52ea3e))return;let _0x1f05f6=_0x3a03fe[_0x39265f(0x1ce)][_0x39265f(0x1b3)](_0x52ea3e);if(_0x1f05f6)return _0x1f05f6[_0x39265f(0x1e1)]();}[_0x47df29(0x1e3)](_0x1ac836,_0x1405bb,_0x57b344){const _0x463dd7=_0x47df29;return this[_0x463dd7(0x1da)](_0x1ac836,_0x1405bb)[_0x463dd7(0x1ce)][_0x463dd7(0x1b3)](_0x57b344);}[_0x47df29(0x1d6)](_0x2cb4c2,_0x5ea3bf,_0x27a11d){const _0x3d505a=_0x47df29;return this['_ensureShapeModelManager'](_0x2cb4c2,_0x5ea3bf)[_0x3d505a(0x1d6)](_0x27a11d);}['getLineShapeRelation'](_0x30e11d,_0x19b88b,_0x2107b2){const _0x1f2ba8=_0x47df29;let _0x34d732=this[_0x1f2ba8(0x1da)](_0x30e11d,_0x19b88b)[_0x1f2ba8(0x1ce)][_0x1f2ba8(0x1b3)](_0x2107b2);if(_0x34d732)return _0x34d732[_0x1f2ba8(0x214)]();}[_0x47df29(0x1af)](){}[_0x47df29(0x1e0)](_0x4c296c){const _0xdea630=_0x47df29;let _0x213f6c={},_0x2a94c6=this['_shapeModelManagerMap'][_0xdea630(0x1b3)](_0x4c296c);return _0x2a94c6&&_0x2a94c6['forEach']((_0x55ddcf,_0xc2ac57)=>{const _0x18f546=_0xdea630;let _0x4403b3=_0x55ddcf[_0x18f546(0x1f5)]();_0x4403b3[_0x18f546(0x1c5)]>0x0&&(_0x213f6c[_0xc2ac57]=_0x4403b3);}),JSON[_0xdea630(0x1ab)](_0x213f6c);}[_0x47df29(0x1d2)](_0x129f1b,_0x2227c1){const _0x3b3511=_0x47df29;Object[_0x3b3511(0x206)](_0x2227c1)[_0x3b3511(0x1b4)](_0x2860d6=>{const _0x4cc95d=_0x3b3511;this[_0x4cc95d(0x1da)](_0x129f1b,_0x2860d6)['fromJSON'](_0x2227c1[_0x2860d6]);});}[_0x47df29(0x1f5)](){const _0x258135=_0x47df29;let _0x5d309c={};return this[_0x258135(0x1e5)]['forEach']((_0x446b2,_0xb84bb6)=>{const _0x2daaf5=_0x258135;_0x5d309c[_0xb84bb6]={},_0x446b2[_0x2daaf5(0x1b4)]((_0x25352,_0x5a8e1e)=>{const _0xcb358f=_0x2daaf5;_0x5d309c[_0xb84bb6][_0x5a8e1e]=_0x25352[_0xcb358f(0x1f5)]();});}),_0x5d309c;}[_0x47df29(0x216)](_0x353ec7){const _0x8f8aa2=_0x47df29;Object[_0x8f8aa2(0x206)](_0x353ec7)[_0x8f8aa2(0x1b4)](_0x19037f=>{const _0x5c9a9e=_0x8f8aa2;let _0x3ed25a=_0x353ec7[_0x19037f];Object[_0x5c9a9e(0x206)](_0x3ed25a)[_0x5c9a9e(0x1b4)](_0x13161b=>{const _0xb4202a=_0x5c9a9e;this[_0xb4202a(0x1da)](_0x19037f,_0x13161b)['fromJSON'](_0x3ed25a[_0x13161b]);});});}[_0x47df29(0x1ed)](){const _0x46ab77=_0x47df29;this[_0x46ab77(0x1cc)][_0x46ab77(0x200)]({'pluginName':_0x46ab77(0x20d),'businesses':[e[_0x46ab77(0x1b9)][_0x46ab77(0x1ef)]],'toJson':_0x364c47=>this['_serializeShapeForUnit'](_0x364c47),'parseJson':_0x572967=>JSON['parse'](_0x572967),'onLoad':(_0x3c4e7c,_0x413145)=>{const _0x597a9c=_0x46ab77;this[_0x597a9c(0x1d2)](_0x3c4e7c,_0x413145);},'onUnLoad':_0x7c147=>{const _0x143652=_0x46ab77;let _0x239214=this[_0x143652(0x1e5)][_0x143652(0x1b3)](_0x7c147);_0x239214&&(_0x239214[_0x143652(0x1b4)](_0x55575b=>{_0x55575b['dispose']();}),this[_0x143652(0x1e5)][_0x143652(0x1dd)](_0x7c147));}});}[_0x47df29(0x1d1)](){const _0xc6d36a=_0x47df29;this['_shapeModelManagerMap'][_0xc6d36a(0x1b4)](_0x115e3b=>{const _0x357fe0=_0xc6d36a;_0x115e3b[_0x357fe0(0x1b4)](_0x10d810=>{const _0x256bf0=_0x357fe0;_0x10d810[_0x256bf0(0x1d1)]();});});}};u=l([c(0x0,e['IResourceManagerService'])],u);const d={'id':_0x47df29(0x1f7),'type':e[_0x47df29(0x1b7)][_0x47df29(0x1d4)],'handler':(_0x4abfea,_0x485b89)=>{const _0x325bcf=_0x47df29;let {unitId:_0x3b4cca,subUnitId:_0x5eb026,shapeType:_0x26b26b,shapeId:_0x183ade,shapeData:_0x3bd470}=_0x485b89,_0x49de7f=_0x4abfea[_0x325bcf(0x1b3)](u)[_0x325bcf(0x1e3)](_0x3b4cca,_0x5eb026,_0x183ade);return _0x49de7f&&(_0x49de7f[_0x325bcf(0x1af)](_0x26b26b),_0x3bd470&&(_0x49de7f==null||_0x49de7f[_0x325bcf(0x1e2)](_0x3bd470))),!0x0;}},f={'id':_0x47df29(0x201),'type':e[_0x47df29(0x1b7)][_0x47df29(0x1f9)],'handler':(_0x39d40d,_0x29b301)=>{const _0x5cde64=_0x47df29;if(!_0x29b301)return!0x1;let _0x2de88a=_0x39d40d[_0x5cde64(0x1b3)](e['ICommandService']),_0x1092db=_0x39d40d[_0x5cde64(0x1b3)](u),_0x2d3f5e=_0x39d40d[_0x5cde64(0x1b3)](e[_0x5cde64(0x207)]),_0x3db0f9=[],_0x3b94b5=[],{unitId:_0x3d17f4,subUnitId:_0x3e46f3,shapeId:_0x38d4ee,shapeType:_0x59aae8,shapeData:_0x399633}=_0x29b301,_0x341bba=_0x1092db[_0x5cde64(0x1e3)](_0x3d17f4,_0x3e46f3,_0x38d4ee);if(_0x341bba){let _0x2ef1bd=_0x341bba[_0x5cde64(0x1f0)](),_0xa5ac4d=Object[_0x5cde64(0x1fa)]({},_0x341bba[_0x5cde64(0x1e1)]()),_0x53d733={'unitId':_0x3d17f4,'subUnitId':_0x3e46f3,'shapeId':_0x38d4ee,'shapeType':_0x59aae8,'shapeData':_0x399633},_0x1cb459={'unitId':_0x3d17f4,'subUnitId':_0x3e46f3,'shapeId':_0x38d4ee,'shapeType':_0x2ef1bd,'shapeData':_0xa5ac4d};return _0x3db0f9['push']({'id':d['id'],'params':_0x53d733}),_0x3b94b5['push']({'id':d['id'],'params':_0x1cb459}),_0x3db0f9[_0x5cde64(0x1c8)](_0x330489=>_0x2de88a[_0x5cde64(0x1e6)](_0x330489['id'],_0x330489[_0x5cde64(0x1c2)]))&&_0x2d3f5e['pushUndoRedo']({'unitID':_0x3d17f4,'redoMutations':[..._0x3db0f9],'undoMutations':[..._0x3b94b5]}),!0x0;}return!0x1;}},p={'id':_0x47df29(0x1ae),'type':e['CommandType'][_0x47df29(0x1d4)],'handler':(_0x1bb976,_0x4207ec)=>{const _0x583c8c=_0x47df29;let {unitId:_0x41bb89,subUnitId:_0xd6db,shapeType:_0x4c3c91,shapeId:_0xb59667,shapeData:_0x117d14}=_0x4207ec;return _0x1bb976[_0x583c8c(0x1b3)](u)[_0x583c8c(0x1b2)](_0x41bb89,_0xd6db,_0x4c3c91,_0xb59667,_0x117d14),!0x0;}},m={'id':'sheet.mutation.remove-shape','type':e['CommandType']['MUTATION'],'handler':(_0x2dcbfe,_0x59eac9)=>{const _0x15e477=_0x47df29;let {unitId:_0x121abb,subUnitId:_0x505bcb,shapeId:_0xb15901}=_0x59eac9;return _0x2dcbfe[_0x15e477(0x1b3)](u)['removeShape'](_0x121abb,_0x505bcb,_0xb15901),!0x0;}},h={'id':_0x47df29(0x1de),'type':e[_0x47df29(0x1b7)][_0x47df29(0x1d4)],'handler':(_0x834baf,_0x203b7b)=>{const _0xaae61d=_0x47df29;let {unitId:_0x2f0ea1,subUnitId:_0x41763b,shapeType:_0x4e5a58,shapeId:_0x592d03,shapeData:_0x31c02c}=_0x203b7b,_0x31ea80=_0x834baf[_0xaae61d(0x1b3)](u)[_0xaae61d(0x1e3)](_0x2f0ea1,_0x41763b,_0x592d03);return _0x31ea80&&(_0x4e5a58!==void 0x0&&_0x31ea80[_0xaae61d(0x1af)](_0x4e5a58),_0x31c02c&&(_0x31ea80==null||_0x31ea80[_0xaae61d(0x1e2)](_0x31c02c,!0x0))),!0x0;}};var g=_0x47df29(0x20b),_=_0x47df29(0x1e7);const v=_0x47df29(0x211);Symbol(v);const y={};let b=class extends e['Plugin']{constructor(_0x32f02c=y,_0x50b5af,_0x4586c3,_0x5730ea){const _0xae2764=_0x47df29;super(),this[_0xae2764(0x1c9)]=_0x32f02c,this[_0xae2764(0x1e9)]=_0x50b5af,this[_0xae2764(0x1bf)]=_0x4586c3,this[_0xae2764(0x1ee)]=_0x5730ea;let {..._0x5a1b4f}=(0x0,e[_0xae2764(0x1bc)])({},y,this['_config']);this[_0xae2764(0x1ee)][_0xae2764(0x1fc)](v,_0x5a1b4f),this[_0xae2764(0x202)]();}['onRendered'](){const _0x272f8f=_0x47df29;(0x0,e[_0x272f8f(0x1ac)])(this['_injector'],[]);}['onStarting'](){const _0x4359a6=_0x47df29;let _0x22be3e=this[_0x4359a6(0x1e9)];[[s],[u]][_0x4359a6(0x1b4)](_0x21fe22=>_0x22be3e[_0x4359a6(0x1b8)](_0x21fe22));}[_0x47df29(0x202)](){const _0x496095=_0x47df29;[p,m,d,h]['forEach'](_0x249b8f=>this[_0x496095(0x213)](this[_0x496095(0x1bf)][_0x496095(0x1d0)](_0x249b8f)));}};function _0x49a8(_0x3d6ef0,_0x16071f){_0x3d6ef0=_0x3d6ef0-0x1ab;const _0x3f7aa2=_0x3f7a();let _0x49a857=_0x3f7aa2[_0x3d6ef0];return _0x49a857;}o(b,'type',e[_0x47df29(0x1b9)][_0x47df29(0x1ef)]),o(b,'pluginName',_0x47df29(0x20d)),o(b,_0x47df29(0x20a),g),o(b,_0x47df29(0x1ca),_),b=l([(0x0,e[_0x47df29(0x1ea)])(n[_0x47df29(0x212)]),c(0x1,(0x0,e[_0x47df29(0x1db)])(e[_0x47df29(0x210)])),c(0x2,e[_0x47df29(0x217)]),c(0x3,e[_0x47df29(0x1fb)])],b),exports[_0x47df29(0x1d9)]=p,exports[_0x47df29(0x1d3)]=m,Object['defineProperty'](exports,_0x47df29(0x1f4),{'enumerable':!0x0,'get':function(){return u;}}),Object[_0x47df29(0x1cd)](exports,_0x47df29(0x203),{'enumerable':!0x0,'get':function(){return b;}}),exports['UpdateSheetsShapeDataMutation']=h,exports[_0x47df29(0x20f)]=f,exports[_0x47df29(0x208)]=d;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x166d1f=_0x5854;function _0x28e8(){const _0x851f03=['keys','0.17.0','_serializeShapeForUnit','448634FrvuGl','setShapeData','10nymXnM','_commandService','getShapeData','_shapes','getShapeType','packageName','pluginName','assign','SHEET_SHAPE_PLUGIN','846964tDWyTM','type','1938180fOlHjB','defineProperty','onStarting','syncExecuteCommand','sheet.command.update-shape-type','dispose','setConfig','addShape','has','length','sheet.mutation.update-shape-data','_initCommands','getShapeModel','forEach','set','delete','174974SBgjVt','toJSON','_linesIds','COMMAND','_initSnapshot','_injector','getShapeDataById','hasShape','setShapeType','every','getBasicShapeType','56fgPksU','@univerjs-pro/sheets-shape','get','getBasicShapeRelation','clear','registerCommand','push','12728592ZUvugl','registerPluginResource','getShapeRelation','version','1321650YRJKYj','_groupIds','_shapeModelManagerMap','_configService','_config','_ensureShapeModelManager','from','145558CByfrB','stringify','fromJSON','parse','_resourcesManagerService','MUTATION','_deserializeShapeForUnit','UNIVER_SHEET','sheet.mutation.update-shape-type','pushUndoRedo','getOwnPropertyDescriptor','insertShape','add','_disposed'];_0x28e8=function(){return _0x851f03;};return _0x28e8();}(function(_0x3df8d1,_0x4757fe){const _0x3e9968=_0x5854,_0x51b447=_0x3df8d1();while(!![]){try{const _0x317f33=parseInt(_0x3e9968(0x1b9))/0x1+-parseInt(_0x3e9968(0x19c))/0x2+-parseInt(_0x3e9968(0x1cf))/0x3+parseInt(_0x3e9968(0x1a7))/0x4*(-parseInt(_0x3e9968(0x19e))/0x5)+-parseInt(_0x3e9968(0x1a9))/0x6+-parseInt(_0x3e9968(0x1d6))/0x7*(-parseInt(_0x3e9968(0x1c4))/0x8)+parseInt(_0x3e9968(0x1cb))/0x9;if(_0x317f33===_0x4757fe)break;else _0x51b447['push'](_0x51b447['shift']());}catch(_0x42f99d){_0x51b447['push'](_0x51b447['shift']());}}}(_0x28e8,0x4ef71));var C=Object[_0x166d1f(0x1aa)],j=(_0x2dcce8,_0x1820ec,_0x55445f)=>_0x1820ec in _0x2dcce8?C(_0x2dcce8,_0x1820ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55445f}):_0x2dcce8[_0x1820ec]=_0x55445f,c=(_0x4c0707,_0x2afaba,_0x377de4)=>j(_0x4c0707,typeof _0x2afaba!='symbol'?_0x2afaba+'':_0x2afaba,_0x377de4);import{Disposable as _0x3b9272,UniverInstanceType as _0xa31f1a,IResourceManagerService as _0x266c4d,CommandType as _0x57565f,ICommandService as _0x165bcf,IUndoRedoService as _0x41c357,DependentOn as _0x13c40b,Inject as _0x878c89,Injector as _0x25ab9b,Plugin as _0x3be3a3,merge as _0x4bc9ae,touchDependencies as _0x5e86ea,IConfigService as _0x340db0}from'@univerjs/core';import{ShapeModel as _0x14170d,isConnectorShape as _0x413840}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3f3d2a}from'@univerjs-pro/license';function _0x5854(_0x5a9a1f,_0x6e1b19){_0x5a9a1f=_0x5a9a1f-0x18c;const _0x28e8af=_0x28e8();let _0x58544e=_0x28e8af[_0x5a9a1f];return _0x58544e;}class E extends _0x3b9272{constructor(){const _0x4ba07b=_0x166d1f;super(),c(this,_0x4ba07b(0x1a1),new Map()),c(this,'_linesIds',new Set()),c(this,_0x4ba07b(0x1d0),new Set());}[_0x166d1f(0x1b0)](_0x28de22,_0x4ebf75,_0x58b775){const _0x2d5b64=_0x166d1f,_0x55fb78=new _0x14170d(_0x28de22,_0x4ebf75,_0x58b775);return this['_shapes'][_0x2d5b64(0x1b7)](_0x4ebf75,_0x55fb78),_0x413840(_0x28de22)&&this[_0x2d5b64(0x1bb)]['add'](_0x4ebf75),_0x55fb78;}[_0x166d1f(0x1c7)](_0x378b83){const _0x4e1ca5=_0x166d1f;var _0x3428e3,_0x3a8a3b;const _0x22662c=[];for(const _0x374203 of this[_0x4e1ca5(0x1bb)]){const _0x56c7ea=this[_0x4e1ca5(0x1a1)]['get'](_0x374203);if(_0x56c7ea){const _0xbaec4f=_0x56c7ea[_0x4e1ca5(0x1cd)]();_0xbaec4f&&(((_0x3428e3=_0xbaec4f[_0x4e1ca5(0x1d5)])==null?void 0x0:_0x3428e3['shapeId'])===_0x378b83&&_0x22662c[_0x4e1ca5(0x1ca)]({..._0xbaec4f[_0x4e1ca5(0x1d5)],'lineShapeId':_0x374203,'isFrom':!0x0}),((_0x3a8a3b=_0xbaec4f['to'])==null?void 0x0:_0x3a8a3b['shapeId'])===_0x378b83&&_0x22662c['push']({..._0xbaec4f['to'],'lineShapeId':_0x374203,'isFrom':!0x1}));}}return _0x22662c;}['getLineShapeRelation'](_0x466493){const _0x1c4b53=_0x166d1f,_0x50d019=this['_shapes'][_0x1c4b53(0x1c6)](_0x466493);if(_0x50d019)return _0x50d019[_0x1c4b53(0x1cd)]();}[_0x166d1f(0x1a2)](_0x20ca08){const _0x3f8c35=_0x166d1f,_0x32b12f=this['_shapes'][_0x3f8c35(0x1c6)](_0x20ca08);if(_0x32b12f)return _0x32b12f['getShapeType']();}[_0x166d1f(0x1c0)](_0x1d270c){const _0x45a30b=_0x166d1f;return this['_shapes'][_0x45a30b(0x1b1)](_0x1d270c);}['removeShape'](_0x1aaa79){const _0x3f7966=_0x166d1f,_0x8657ce=this[_0x3f7966(0x1a1)][_0x3f7966(0x1c6)](_0x1aaa79);_0x8657ce&&(_0x413840(_0x8657ce[_0x3f7966(0x1a2)]())&&this[_0x3f7966(0x1bb)][_0x3f7966(0x1b8)](_0x1aaa79),this[_0x3f7966(0x1a1)][_0x3f7966(0x1b8)](_0x1aaa79));}[_0x166d1f(0x1ba)](){const _0x55fab6=[];return this['_shapes']['forEach'](_0x280290=>{const _0x473e58=_0x5854;_0x55fab6['push'](_0x280290[_0x473e58(0x1ba)]());}),_0x55fab6;}['fromJSON'](_0x4c8930){const _0x3949a6=_0x166d1f;for(const _0x2c2718 of _0x4c8930){const {id:_0x5937fb,shapeType:_0x27b2e4}=_0x2c2718,_0xe32c7e=this['addShape'](_0x27b2e4,_0x5937fb,_0x2c2718['shapeData']);_0xe32c7e&&_0xe32c7e['isLineShape']()&&this[_0x3949a6(0x1bb)]['add'](_0x5937fb);}}[_0x166d1f(0x1ae)](){const _0x2cfba9=_0x166d1f;this[_0x2cfba9(0x198)]||(this[_0x2cfba9(0x1a1)]['forEach'](_0x20b58f=>{const _0x4a77b8=_0x2cfba9;_0x20b58f[_0x4a77b8(0x1ae)]();}),this[_0x2cfba9(0x1a1)]['clear'](),this['_linesIds'][_0x2cfba9(0x1c8)](),this[_0x2cfba9(0x1d0)][_0x2cfba9(0x1c8)](),super[_0x2cfba9(0x1ae)]());}}var V=Object[_0x166d1f(0x195)],K=(_0x4fe105,_0x4a1b94,_0x16578b,_0x318468)=>{const _0x59898f=_0x166d1f;for(var _0x386371=_0x318468>0x1?void 0x0:_0x318468?V(_0x4a1b94,_0x16578b):_0x4a1b94,_0x57276d=_0x4fe105[_0x59898f(0x1b2)]-0x1,_0x58bf75;_0x57276d>=0x0;_0x57276d--)(_0x58bf75=_0x4fe105[_0x57276d])&&(_0x386371=_0x58bf75(_0x386371)||_0x386371);return _0x386371;},W=(_0xbc996e,_0x4c0e48)=>(_0x42a778,_0x1652ef)=>_0x4c0e48(_0x42a778,_0x1652ef,_0xbc996e);const Y=_0x166d1f(0x1a6);let i=class extends _0x3b9272{constructor(_0x4be3e3){const _0x49e741=_0x166d1f;super(),c(this,'_shapeModelManagerMap',new Map()),(this[_0x49e741(0x18f)]=_0x4be3e3,this['_initSnapshot']());}[_0x166d1f(0x1d4)](_0x3a1f05,_0x5e27c2){const _0x341f54=_0x166d1f;let _0x4bca6d=this[_0x341f54(0x1d1)][_0x341f54(0x1c6)](_0x3a1f05);_0x4bca6d||(_0x4bca6d=new Map(),this['_shapeModelManagerMap'][_0x341f54(0x1b7)](_0x3a1f05,_0x4bca6d));let _0x4f5c90=_0x4bca6d[_0x341f54(0x1c6)](_0x5e27c2);return _0x4f5c90||(_0x4f5c90=new E(),_0x4bca6d[_0x341f54(0x1b7)](_0x5e27c2,_0x4f5c90)),_0x4f5c90;}[_0x166d1f(0x196)](_0x1f1e72,_0x23fa18,_0x295f1f,_0x4b0dc6,_0x3cd301){const _0x191789=_0x166d1f;this['_ensureShapeModelManager'](_0x1f1e72,_0x23fa18)[_0x191789(0x1b0)](_0x295f1f,_0x4b0dc6,_0x3cd301);}['removeShape'](_0x4f0461,_0x3d9bdc,_0x41abeb){const _0x3416a9=_0x166d1f;this[_0x3416a9(0x1d4)](_0x4f0461,_0x3d9bdc)['removeShape'](_0x41abeb);}[_0x166d1f(0x1c3)](_0x507ebd,_0x1a20f0,_0xd666dc){const _0x488ea2=_0x166d1f;return this[_0x488ea2(0x1d4)](_0x507ebd,_0x1a20f0)[_0x488ea2(0x1a2)](_0xd666dc);}[_0x166d1f(0x1a2)](_0x319bcc,_0x85ecb4,_0x2fee70){const _0x359d4d=_0x166d1f;return this[_0x359d4d(0x1d4)](_0x319bcc,_0x85ecb4)[_0x359d4d(0x1a2)](_0x2fee70);}['hasShape'](_0x57d67a,_0x342643,_0xac9f54){const _0x3d2e45=_0x166d1f;return this[_0x3d2e45(0x1d4)](_0x57d67a,_0x342643)[_0x3d2e45(0x1c0)](_0xac9f54);}['getShapeTypeById'](_0x35e53d,_0x564684,_0x1467cf){const _0x4383b8=_0x166d1f;return this[_0x4383b8(0x1d4)](_0x35e53d,_0x564684)[_0x4383b8(0x1a2)](_0x1467cf);}[_0x166d1f(0x1bf)](_0x491f6b,_0x426f9f,_0x250bef){const _0x176450=_0x166d1f,_0x6cd587=this['_ensureShapeModelManager'](_0x491f6b,_0x426f9f);if(!_0x6cd587[_0x176450(0x1a2)](_0x250bef))return;const _0x153f3f=_0x6cd587[_0x176450(0x1a1)][_0x176450(0x1c6)](_0x250bef);if(_0x153f3f)return _0x153f3f[_0x176450(0x1a0)]();}[_0x166d1f(0x1b5)](_0x3ca1d9,_0x1a1e69,_0xf83b26){const _0x9dd8ff=_0x166d1f;return this[_0x9dd8ff(0x1d4)](_0x3ca1d9,_0x1a1e69)[_0x9dd8ff(0x1a1)][_0x9dd8ff(0x1c6)](_0xf83b26);}['getBasicShapeRelation'](_0xfca483,_0x307968,_0x20beac){return this['_ensureShapeModelManager'](_0xfca483,_0x307968)['getBasicShapeRelation'](_0x20beac);}['getLineShapeRelation'](_0x13eba9,_0x3e6a20,_0x228104){const _0x23cc57=_0x166d1f,_0x1be474=this[_0x23cc57(0x1d4)](_0x13eba9,_0x3e6a20)[_0x23cc57(0x1a1)][_0x23cc57(0x1c6)](_0x228104);if(_0x1be474)return _0x1be474[_0x23cc57(0x1cd)]();}['setShapeType'](){}[_0x166d1f(0x19b)](_0xd79395){const _0x1daab7=_0x166d1f,_0x5f214e={},_0x24d47b=this[_0x1daab7(0x1d1)][_0x1daab7(0x1c6)](_0xd79395);return _0x24d47b&&_0x24d47b[_0x1daab7(0x1b6)]((_0x1d3738,_0x246a80)=>{const _0x281e09=_0x1daab7,_0x392631=_0x1d3738[_0x281e09(0x1ba)]();_0x392631[_0x281e09(0x1b2)]>0x0&&(_0x5f214e[_0x246a80]=_0x392631);}),JSON[_0x1daab7(0x18c)](_0x5f214e);}[_0x166d1f(0x191)](_0x1900d4,_0x34f3f6){const _0x33d945=_0x166d1f;Object[_0x33d945(0x199)](_0x34f3f6)[_0x33d945(0x1b6)](_0x45bf94=>{const _0x42fd0f=_0x33d945;this[_0x42fd0f(0x1d4)](_0x1900d4,_0x45bf94)[_0x42fd0f(0x18d)](_0x34f3f6[_0x45bf94]);});}[_0x166d1f(0x1ba)](){const _0x13bad8=_0x166d1f,_0x18be98={};return this[_0x13bad8(0x1d1)][_0x13bad8(0x1b6)]((_0x4d0e7e,_0x10f2b9)=>{const _0x71fba=_0x13bad8;_0x18be98[_0x10f2b9]={},_0x4d0e7e[_0x71fba(0x1b6)]((_0x2f7f31,_0x3ac202)=>{_0x18be98[_0x10f2b9][_0x3ac202]=_0x2f7f31['toJSON']();});}),_0x18be98;}['fromJSON'](_0x46f812){const _0x59ebe0=_0x166d1f;Object[_0x59ebe0(0x199)](_0x46f812)[_0x59ebe0(0x1b6)](_0x559d3f=>{const _0x20610b=_0x59ebe0,_0x272e51=_0x46f812[_0x559d3f];Object[_0x20610b(0x199)](_0x272e51)[_0x20610b(0x1b6)](_0x27f93a=>{const _0x2762e4=_0x20610b;this['_ensureShapeModelManager'](_0x559d3f,_0x27f93a)[_0x2762e4(0x18d)](_0x272e51[_0x27f93a]);});});}[_0x166d1f(0x1bd)](){const _0x45eb9a=_0x166d1f;this['_resourcesManagerService'][_0x45eb9a(0x1cc)]({'pluginName':Y,'businesses':[_0xa31f1a[_0x45eb9a(0x192)]],'toJson':_0x4681ba=>this['_serializeShapeForUnit'](_0x4681ba),'parseJson':_0x504335=>JSON[_0x45eb9a(0x18e)](_0x504335),'onLoad':(_0x51c5c4,_0x1359c3)=>{this['_deserializeShapeForUnit'](_0x51c5c4,_0x1359c3);},'onUnLoad':_0x32b534=>{const _0x54d29e=_0x45eb9a,_0x68d429=this['_shapeModelManagerMap'][_0x54d29e(0x1c6)](_0x32b534);_0x68d429&&(_0x68d429[_0x54d29e(0x1b6)](_0x32d4ce=>{_0x32d4ce['dispose']();}),this[_0x54d29e(0x1d1)]['delete'](_0x32b534));}});}['dispose'](){this['_shapeModelManagerMap']['forEach'](_0x3c423e=>{const _0x56d5a5=_0x5854;_0x3c423e[_0x56d5a5(0x1b6)](_0x30c0fe=>{_0x30c0fe['dispose']();});});}};i=K([W(0x0,_0x266c4d)],i);const _={'id':_0x166d1f(0x193),'type':_0x57565f[_0x166d1f(0x190)],'handler':(_0x49a88f,_0x3ac100)=>{const _0x5025ee=_0x166d1f,{unitId:_0x26d063,subUnitId:_0x5926de,shapeType:_0x5bd4f6,shapeId:_0x33e85e,shapeData:_0x46f6e}=_0x3ac100,_0x29ee30=_0x49a88f[_0x5025ee(0x1c6)](i)[_0x5025ee(0x1b5)](_0x26d063,_0x5926de,_0x33e85e);return _0x29ee30&&(_0x29ee30[_0x5025ee(0x1c1)](_0x5bd4f6),_0x46f6e&&(_0x29ee30==null||_0x29ee30[_0x5025ee(0x19d)](_0x46f6e))),!0x0;}},de={'id':_0x166d1f(0x1ad),'type':_0x57565f[_0x166d1f(0x1bc)],'handler':(_0x2547f2,_0x195d2d)=>{const _0x5f2ab6=_0x166d1f;if(!_0x195d2d)return!0x1;const _0x8f1180=_0x2547f2['get'](_0x165bcf),_0x52d3db=_0x2547f2[_0x5f2ab6(0x1c6)](i),_0x1bfa45=_0x2547f2[_0x5f2ab6(0x1c6)](_0x41c357),_0x30dd24=[],_0xfe3978=[],{unitId:_0x16d1f0,subUnitId:_0x549bcd,shapeId:_0x536a09,shapeType:_0x30efb9,shapeData:_0x4b170a}=_0x195d2d,_0x3fda8c=_0x52d3db[_0x5f2ab6(0x1b5)](_0x16d1f0,_0x549bcd,_0x536a09);if(_0x3fda8c){const _0x94c1ef=_0x3fda8c[_0x5f2ab6(0x1a2)](),_0x3e2692=Object[_0x5f2ab6(0x1a5)]({},_0x3fda8c['getShapeData']()),_0x2362bb={'unitId':_0x16d1f0,'subUnitId':_0x549bcd,'shapeId':_0x536a09,'shapeType':_0x30efb9,'shapeData':_0x4b170a},_0x257654={'unitId':_0x16d1f0,'subUnitId':_0x549bcd,'shapeId':_0x536a09,'shapeType':_0x94c1ef,'shapeData':_0x3e2692};return _0x30dd24[_0x5f2ab6(0x1ca)]({'id':_['id'],'params':_0x2362bb}),_0xfe3978[_0x5f2ab6(0x1ca)]({'id':_['id'],'params':_0x257654}),_0x30dd24[_0x5f2ab6(0x1c2)](_0x51bb1=>_0x8f1180[_0x5f2ab6(0x1ac)](_0x51bb1['id'],_0x51bb1['params']))&&_0x1bfa45[_0x5f2ab6(0x194)]({'unitID':_0x16d1f0,'redoMutations':[..._0x30dd24],'undoMutations':[..._0xfe3978]}),!0x0;}return!0x1;}},q={'id':'sheet.mutation.insert-shape','type':_0x57565f['MUTATION'],'handler':(_0x34117c,_0x59c807)=>{const _0x33ba1a=_0x166d1f,{unitId:_0x5cb846,subUnitId:_0x1ace1d,shapeType:_0x75fb1f,shapeId:_0x14db89,shapeData:_0x47bbb5}=_0x59c807;return _0x34117c[_0x33ba1a(0x1c6)](i)[_0x33ba1a(0x196)](_0x5cb846,_0x1ace1d,_0x75fb1f,_0x14db89,_0x47bbb5),!0x0;}},Q={'id':'sheet.mutation.remove-shape','type':_0x57565f['MUTATION'],'handler':(_0x55850b,_0xa0f6ba)=>{const {unitId:_0x2641c9,subUnitId:_0x513dbb,shapeId:_0xf3f018}=_0xa0f6ba;return _0x55850b['get'](i)['removeShape'](_0x2641c9,_0x513dbb,_0xf3f018),!0x0;}},X={'id':_0x166d1f(0x1b3),'type':_0x57565f[_0x166d1f(0x190)],'handler':(_0x5b77ec,_0x205a62)=>{const _0x2e8cb9=_0x166d1f,{unitId:_0xe315b7,subUnitId:_0x16715a,shapeType:_0x1066dd,shapeId:_0x48c828,shapeData:_0x371b50}=_0x205a62,_0xf3d248=_0x5b77ec['get'](i)['getShapeModel'](_0xe315b7,_0x16715a,_0x48c828);return _0xf3d248&&(_0x1066dd!==void 0x0&&_0xf3d248[_0x2e8cb9(0x1c1)](_0x1066dd),_0x371b50&&(_0xf3d248==null||_0xf3d248[_0x2e8cb9(0x19d)](_0x371b50,!0x0))),!0x0;}},Z=_0x166d1f(0x1c5),k=_0x166d1f(0x19a),O={'name':Z,'version':k},ee='sheets-shape.config',v={};var ae=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],te=(_0x64e1f2,_0x211fff,_0x95300)=>_0x211fff in _0x64e1f2?ae(_0x64e1f2,_0x211fff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x95300}):_0x64e1f2[_0x211fff]=_0x95300,ne=(_0x394c21,_0x12d862,_0x521883,_0x589ddd)=>{const _0x1a5ab5=_0x166d1f;for(var _0x499e74=_0x589ddd>0x1?void 0x0:_0x589ddd?se(_0x12d862,_0x521883):_0x12d862,_0x378eee=_0x394c21[_0x1a5ab5(0x1b2)]-0x1,_0x1c4b97;_0x378eee>=0x0;_0x378eee--)(_0x1c4b97=_0x394c21[_0x378eee])&&(_0x499e74=_0x1c4b97(_0x499e74)||_0x499e74);return _0x499e74;},u=(_0x4223d2,_0x233277)=>(_0x481f0a,_0x3c49bf)=>_0x233277(_0x481f0a,_0x3c49bf,_0x4223d2),M=(_0x825a34,_0xef644f,_0xaf425c)=>te(_0x825a34,typeof _0xef644f!='symbol'?_0xef644f+'':_0xef644f,_0xaf425c);let d=class extends _0x3be3a3{constructor(_0x59c0e5=v,_0x472f62,_0x1e1bd5,_0x2b4c44){const _0x357cfa=_0x166d1f;super(),this[_0x357cfa(0x1d3)]=_0x59c0e5,this['_injector']=_0x472f62,this[_0x357cfa(0x19f)]=_0x1e1bd5,this[_0x357cfa(0x1d2)]=_0x2b4c44;const {..._0x181ecd}=_0x4bc9ae({},v,this['_config']);this[_0x357cfa(0x1d2)][_0x357cfa(0x1af)](ee,_0x181ecd),this[_0x357cfa(0x1b4)]();}['onRendered'](){const _0x704c5=_0x166d1f;_0x5e86ea(this[_0x704c5(0x1be)],[]);}[_0x166d1f(0x1ab)](){const _0x382e7b=_0x166d1f,_0x103665=this['_injector'];[[E],[i]][_0x382e7b(0x1b6)](_0x185ffe=>_0x103665[_0x382e7b(0x197)](_0x185ffe));}[_0x166d1f(0x1b4)](){const _0xe8a744=_0x166d1f;[q,Q,_,X][_0xe8a744(0x1b6)](_0x45ff82=>this['disposeWithMe'](this[_0xe8a744(0x19f)][_0xe8a744(0x1c9)](_0x45ff82)));}};M(d,_0x166d1f(0x1a8),_0xa31f1a[_0x166d1f(0x192)]),M(d,_0x166d1f(0x1a4),_0x166d1f(0x1a6)),M(d,_0x166d1f(0x1a3),O['name']),M(d,_0x166d1f(0x1ce),O[_0x166d1f(0x1ce)]),d=ne([_0x13c40b(_0x3f3d2a),u(0x1,_0x878c89(_0x25ab9b)),u(0x2,_0x165bcf),u(0x3,_0x340db0)],d);export{q as InsertSheetsShapeMutation,Q as RemoveSheetsShapeMutation,i as SheetsShapeService,d as UniverSheetsShapePlugin,X as UpdateSheetsShapeDataMutation,de as UpdateSheetsShapeTypeCommand,_ as UpdateSheetsShapeTypeMutation};
1
+ const _0x11992e=_0x4c41;(function(_0x45500a,_0x52f170){const _0x3ad2da=_0x4c41,_0x134fc5=_0x45500a();while(!![]){try{const _0x11bed9=parseInt(_0x3ad2da(0x162))/0x1+parseInt(_0x3ad2da(0x14f))/0x2+parseInt(_0x3ad2da(0x152))/0x3+parseInt(_0x3ad2da(0x191))/0x4*(-parseInt(_0x3ad2da(0x172))/0x5)+parseInt(_0x3ad2da(0x15c))/0x6*(parseInt(_0x3ad2da(0x16c))/0x7)+-parseInt(_0x3ad2da(0x167))/0x8*(-parseInt(_0x3ad2da(0x1a0))/0x9)+-parseInt(_0x3ad2da(0x18f))/0xa;if(_0x11bed9===_0x52f170)break;else _0x134fc5['push'](_0x134fc5['shift']());}catch(_0x34a651){_0x134fc5['push'](_0x134fc5['shift']());}}}(_0x4ef7,0xc3653));import{CommandType as _0x33941d,DependentOn as _0x271e3d,Disposable as _0x4f8207,ICommandService as _0x13b7e1,IConfigService as _0x45c9e5,IResourceManagerService as _0x3cc430,IUndoRedoService as _0x1d8551,Inject as _0x193e03,Injector as _0x2e1b1f,Plugin as _0xb211d6,UniverInstanceType as _0x183d8f,merge as _0x4333c5,touchDependencies as _0x7a0a3d}from'@univerjs/core';function _0x4c41(_0x452921,_0x1ef3f1){_0x452921=_0x452921-0x14e;const _0x4ef7ff=_0x4ef7();let _0x4c41fd=_0x4ef7ff[_0x452921];return _0x4c41fd;}import{ShapeModel as _0x50684a,isConnectorShape as _0x5e81f4}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x9a8e81}from'@univerjs-pro/license';function g(_0x3ce36b){'@babel/helpers - typeof';const _0x4813a6=_0x4c41;return g=typeof Symbol==_0x4813a6(0x1a4)&&typeof Symbol[_0x4813a6(0x17d)]=='symbol'?function(_0x57669c){return typeof _0x57669c;}:function(_0xec31ae){const _0x327e9f=_0x4813a6;return _0xec31ae&&typeof Symbol==_0x327e9f(0x1a4)&&_0xec31ae['constructor']===Symbol&&_0xec31ae!==Symbol['prototype']?'symbol':typeof _0xec31ae;},g(_0x3ce36b);}function _(_0x3e318f,_0x14e4ec){const _0x14c3b8=_0x4c41;if(g(_0x3e318f)!=_0x14c3b8(0x176)||!_0x3e318f)return _0x3e318f;var _0x36003b=_0x3e318f[Symbol['toPrimitive']];if(_0x36003b!==void 0x0){var _0xd04e5=_0x36003b[_0x14c3b8(0x17b)](_0x3e318f,_0x14e4ec||_0x14c3b8(0x170));if(g(_0xd04e5)!='object')return _0xd04e5;throw TypeError(_0x14c3b8(0x15b));}return(_0x14e4ec===_0x14c3b8(0x17c)?String:Number)(_0x3e318f);}function v(_0x9e258a){const _0x49e3bd=_0x4c41;var _0x38d84b=_(_0x9e258a,_0x49e3bd(0x17c));return g(_0x38d84b)==_0x49e3bd(0x1a2)?_0x38d84b:_0x38d84b+'';}function y(_0x48477b,_0x47fc31,_0x40f74c){const _0x5a4267=_0x4c41;return(_0x47fc31=v(_0x47fc31))in _0x48477b?Object[_0x5a4267(0x196)](_0x48477b,_0x47fc31,{'value':_0x40f74c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48477b[_0x47fc31]=_0x40f74c,_0x48477b;}var b=class extends _0x4f8207{constructor(){const _0x536d16=_0x4c41;super(),y(this,_0x536d16(0x188),new Map()),y(this,_0x536d16(0x155),new Set()),y(this,_0x536d16(0x160),new Set());}[_0x11992e(0x168)](_0x3dd3c9,_0x4e1853,_0x4946d2){const _0x1a2911=_0x11992e;let _0x1113ec=new _0x50684a(_0x3dd3c9,_0x4e1853,_0x4946d2);return this[_0x1a2911(0x188)][_0x1a2911(0x15a)](_0x4e1853,_0x1113ec),_0x5e81f4(_0x3dd3c9)&&this[_0x1a2911(0x155)][_0x1a2911(0x1a6)](_0x4e1853),_0x1113ec;}[_0x11992e(0x18a)](_0x2d3d20){const _0x27c172=_0x11992e;let _0x279246=[];for(let _0x3b9f3e of this[_0x27c172(0x155)]){let _0x39bf55=this[_0x27c172(0x188)][_0x27c172(0x16f)](_0x3b9f3e);if(_0x39bf55){let _0xae3a83=_0x39bf55[_0x27c172(0x158)]();if(_0xae3a83){var _0x847d61,_0x5192d6;((_0x847d61=_0xae3a83[_0x27c172(0x181)])==null?void 0x0:_0x847d61[_0x27c172(0x151)])===_0x2d3d20&&_0x279246[_0x27c172(0x171)]({..._0xae3a83[_0x27c172(0x181)],'lineShapeId':_0x3b9f3e,'isFrom':!0x0}),((_0x5192d6=_0xae3a83['to'])==null?void 0x0:_0x5192d6['shapeId'])===_0x2d3d20&&_0x279246['push']({..._0xae3a83['to'],'lineShapeId':_0x3b9f3e,'isFrom':!0x1});}}}return _0x279246;}[_0x11992e(0x187)](_0x411c0d){const _0x8241ac=_0x11992e;let _0x26f10c=this[_0x8241ac(0x188)][_0x8241ac(0x16f)](_0x411c0d);if(_0x26f10c)return _0x26f10c[_0x8241ac(0x158)]();}[_0x11992e(0x15f)](_0x50688f){const _0x430038=_0x11992e;let _0x3d33b4=this[_0x430038(0x188)][_0x430038(0x16f)](_0x50688f);if(_0x3d33b4)return _0x3d33b4[_0x430038(0x15f)]();}['hasShape'](_0x8f9b9a){const _0x99f840=_0x11992e;return this[_0x99f840(0x188)][_0x99f840(0x19f)](_0x8f9b9a);}[_0x11992e(0x166)](_0x39d803){const _0x240b61=_0x11992e;let _0x5939a2=this[_0x240b61(0x188)][_0x240b61(0x16f)](_0x39d803);_0x5939a2&&(_0x5e81f4(_0x5939a2['getShapeType']())&&this[_0x240b61(0x155)]['delete'](_0x39d803),this[_0x240b61(0x188)]['delete'](_0x39d803));}[_0x11992e(0x15d)](){const _0xc6d010=_0x11992e;let _0x54874b=[];return this[_0xc6d010(0x188)][_0xc6d010(0x14e)](_0x58bbd1=>{const _0x363528=_0xc6d010;_0x54874b[_0x363528(0x171)](_0x58bbd1['toJSON']());}),_0x54874b;}[_0x11992e(0x195)](_0x537bdc){const _0x54b70e=_0x11992e;for(let _0x24ba45 of _0x537bdc){let {id:_0x43c7a5,shapeType:_0x1f27f8}=_0x24ba45,_0x5725a1=this[_0x54b70e(0x168)](_0x1f27f8,_0x43c7a5,_0x24ba45[_0x54b70e(0x19d)]);_0x5725a1&&_0x5725a1['isLineShape']()&&this[_0x54b70e(0x155)][_0x54b70e(0x1a6)](_0x43c7a5);}}[_0x11992e(0x192)](){const _0x1ee781=_0x11992e;this[_0x1ee781(0x185)]||(this[_0x1ee781(0x188)][_0x1ee781(0x14e)](_0x3a241c=>{const _0x552768=_0x1ee781;_0x3a241c[_0x552768(0x192)]();}),this[_0x1ee781(0x188)][_0x1ee781(0x199)](),this[_0x1ee781(0x155)][_0x1ee781(0x199)](),this['_groupIds'][_0x1ee781(0x199)](),super[_0x1ee781(0x192)]());}};function _0x4ef7(){const _0x28dacb=['hasShape','syncExecuteCommand','UNIVER_SHEET','_ensureShapeModelManager','call','string','iterator','every','getShapeModel','sheet.mutation.insert-shape','from','_injector','stringify','decorate','_disposed','SHEET_SHAPE_PLUGIN','getLineShapeRelation','_shapes','_serializeShapeForUnit','getBasicShapeRelation','getShapeDataById','pushUndoRedo','_initSnapshot','getOwnPropertyDescriptor','19374380txnidm','sheet.mutation.remove-shape','4676732XudNfw','dispose','_config','_shapeModelManagerMap','fromJSON','defineProperty','packageName','registerPluginResource','clear','assign','getShapeData','setShapeType','shapeData','registerCommand','has','2502VduUEK','pluginName','symbol','version','function','sheet.command.update-shape-type','add','forEach','3142822tzYVMX','_commandService','shapeId','2035191lpMtWm','MUTATION','insertShape','_linesIds','delete','_configService','getShapeRelation','sheet.mutation.update-shape-data','set','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1861032REeCZw','toJSON','params','getShapeType','_groupIds','COMMAND','580964aqpYGv','disposeWithMe','keys','sheet.mutation.update-shape-type','removeShape','4192CoGqZf','addShape','parse','length','setShapeData','21TzqxXS','setConfig','type','get','default','push','5Uyqmot','0.18.0-insiders.20260328-d26c36e','_deserializeShapeForUnit','_initCommands','object'];_0x4ef7=function(){return _0x28dacb;};return _0x4ef7();}function x(_0x3d4daa,_0x1dbf61){return function(_0x1986de,_0x47d650){_0x1dbf61(_0x1986de,_0x47d650,_0x3d4daa);};}function S(_0x1b6e5e,_0x16b448,_0x274fa2,_0x52d494){const _0x1784ce=_0x11992e;var _0x54bdbb=arguments[_0x1784ce(0x16a)],_0x5ee488=_0x54bdbb<0x3?_0x16b448:_0x52d494===null?_0x52d494=Object[_0x1784ce(0x18e)](_0x16b448,_0x274fa2):_0x52d494,_0x30a6ce;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1784ce(0x1a4))_0x5ee488=Reflect[_0x1784ce(0x184)](_0x1b6e5e,_0x16b448,_0x274fa2,_0x52d494);else{for(var _0x3dc448=_0x1b6e5e[_0x1784ce(0x16a)]-0x1;_0x3dc448>=0x0;_0x3dc448--)(_0x30a6ce=_0x1b6e5e[_0x3dc448])&&(_0x5ee488=(_0x54bdbb<0x3?_0x30a6ce(_0x5ee488):_0x54bdbb>0x3?_0x30a6ce(_0x16b448,_0x274fa2,_0x5ee488):_0x30a6ce(_0x16b448,_0x274fa2))||_0x5ee488);}return _0x54bdbb>0x3&&_0x5ee488&&Object[_0x1784ce(0x196)](_0x16b448,_0x274fa2,_0x5ee488),_0x5ee488;}let C=class extends _0x4f8207{constructor(_0x23782d){const _0x57d05e=_0x11992e;super(),this['_resourcesManagerService']=_0x23782d,y(this,_0x57d05e(0x194),new Map()),this[_0x57d05e(0x18d)]();}['_ensureShapeModelManager'](_0x333fb6,_0x46d50b){const _0x2e3e8e=_0x11992e;let _0x679aec=this[_0x2e3e8e(0x194)][_0x2e3e8e(0x16f)](_0x333fb6);_0x679aec||(_0x679aec=new Map(),this[_0x2e3e8e(0x194)]['set'](_0x333fb6,_0x679aec));let _0x5e55d4=_0x679aec[_0x2e3e8e(0x16f)](_0x46d50b);return _0x5e55d4||(_0x5e55d4=new b(),_0x679aec[_0x2e3e8e(0x15a)](_0x46d50b,_0x5e55d4)),_0x5e55d4;}[_0x11992e(0x154)](_0x2ac9f4,_0x43696d,_0x1512e0,_0x2b944f,_0x260fd0){const _0x5c0667=_0x11992e;this['_ensureShapeModelManager'](_0x2ac9f4,_0x43696d)[_0x5c0667(0x168)](_0x1512e0,_0x2b944f,_0x260fd0);}[_0x11992e(0x166)](_0xe8eaf8,_0x540820,_0x3dfdeb){const _0x23d5ee=_0x11992e;this[_0x23d5ee(0x17a)](_0xe8eaf8,_0x540820)[_0x23d5ee(0x166)](_0x3dfdeb);}['getBasicShapeType'](_0x1bc126,_0x3a605b,_0x17901e){const _0x4d51f3=_0x11992e;return this[_0x4d51f3(0x17a)](_0x1bc126,_0x3a605b)['getShapeType'](_0x17901e);}['getShapeType'](_0xf1fb16,_0x407650,_0x1ba758){const _0x310dc6=_0x11992e;return this[_0x310dc6(0x17a)](_0xf1fb16,_0x407650)['getShapeType'](_0x1ba758);}[_0x11992e(0x177)](_0x2e622a,_0x22ce13,_0x4138ef){const _0x1a0859=_0x11992e;return this[_0x1a0859(0x17a)](_0x2e622a,_0x22ce13)[_0x1a0859(0x177)](_0x4138ef);}['getShapeTypeById'](_0x237b75,_0x5419d6,_0x11e306){const _0x5c8864=_0x11992e;return this['_ensureShapeModelManager'](_0x237b75,_0x5419d6)[_0x5c8864(0x15f)](_0x11e306);}[_0x11992e(0x18b)](_0x28faa9,_0x404682,_0x6ee261){const _0x273c61=_0x11992e;let _0x592949=this[_0x273c61(0x17a)](_0x28faa9,_0x404682);if(!_0x592949[_0x273c61(0x15f)](_0x6ee261))return;let _0x31008a=_0x592949[_0x273c61(0x188)][_0x273c61(0x16f)](_0x6ee261);if(_0x31008a)return _0x31008a['getShapeData']();}[_0x11992e(0x17f)](_0x44950b,_0x5ec168,_0x204eb6){return this['_ensureShapeModelManager'](_0x44950b,_0x5ec168)['_shapes']['get'](_0x204eb6);}['getBasicShapeRelation'](_0x356a97,_0x2179c4,_0x3af62d){const _0x3f1790=_0x11992e;return this['_ensureShapeModelManager'](_0x356a97,_0x2179c4)[_0x3f1790(0x18a)](_0x3af62d);}[_0x11992e(0x187)](_0x4ae7f2,_0x510a01,_0x1a9655){const _0x242798=_0x11992e;let _0x6b079f=this[_0x242798(0x17a)](_0x4ae7f2,_0x510a01)[_0x242798(0x188)][_0x242798(0x16f)](_0x1a9655);if(_0x6b079f)return _0x6b079f[_0x242798(0x158)]();}[_0x11992e(0x19c)](){}[_0x11992e(0x189)](_0x1aa935){const _0x53bb85=_0x11992e;let _0x48ae6c={},_0x21484f=this[_0x53bb85(0x194)][_0x53bb85(0x16f)](_0x1aa935);return _0x21484f&&_0x21484f['forEach']((_0x421e93,_0xfb607c)=>{const _0x5d67ad=_0x53bb85;let _0x3cb97a=_0x421e93[_0x5d67ad(0x15d)]();_0x3cb97a[_0x5d67ad(0x16a)]>0x0&&(_0x48ae6c[_0xfb607c]=_0x3cb97a);}),JSON[_0x53bb85(0x183)](_0x48ae6c);}[_0x11992e(0x174)](_0x26a2bc,_0x1d5f24){const _0x19d3aa=_0x11992e;Object[_0x19d3aa(0x164)](_0x1d5f24)['forEach'](_0x3bc248=>{const _0x2325c9=_0x19d3aa;this[_0x2325c9(0x17a)](_0x26a2bc,_0x3bc248)['fromJSON'](_0x1d5f24[_0x3bc248]);});}[_0x11992e(0x15d)](){const _0x51237d=_0x11992e;let _0x4b220c={};return this['_shapeModelManagerMap'][_0x51237d(0x14e)]((_0x43253b,_0x125b5c)=>{const _0x23c7a7=_0x51237d;_0x4b220c[_0x125b5c]={},_0x43253b[_0x23c7a7(0x14e)]((_0x5a82c2,_0x200a6c)=>{const _0x4a1711=_0x23c7a7;_0x4b220c[_0x125b5c][_0x200a6c]=_0x5a82c2[_0x4a1711(0x15d)]();});}),_0x4b220c;}[_0x11992e(0x195)](_0x1f7d02){const _0x191273=_0x11992e;Object[_0x191273(0x164)](_0x1f7d02)['forEach'](_0x3eeaf8=>{const _0x1bf320=_0x191273;let _0x437cd1=_0x1f7d02[_0x3eeaf8];Object[_0x1bf320(0x164)](_0x437cd1)[_0x1bf320(0x14e)](_0x558ca7=>{const _0x29e3e5=_0x1bf320;this[_0x29e3e5(0x17a)](_0x3eeaf8,_0x558ca7)['fromJSON'](_0x437cd1[_0x558ca7]);});});}[_0x11992e(0x18d)](){const _0x4d4c63=_0x11992e;this['_resourcesManagerService'][_0x4d4c63(0x198)]({'pluginName':_0x4d4c63(0x186),'businesses':[_0x183d8f[_0x4d4c63(0x179)]],'toJson':_0x205f14=>this['_serializeShapeForUnit'](_0x205f14),'parseJson':_0x2c6a09=>JSON[_0x4d4c63(0x169)](_0x2c6a09),'onLoad':(_0x295a76,_0x4fccde)=>{const _0xfc2bb7=_0x4d4c63;this[_0xfc2bb7(0x174)](_0x295a76,_0x4fccde);},'onUnLoad':_0x272d71=>{const _0xcee684=_0x4d4c63;let _0x59d63c=this['_shapeModelManagerMap'][_0xcee684(0x16f)](_0x272d71);_0x59d63c&&(_0x59d63c['forEach'](_0x13dc62=>{_0x13dc62['dispose']();}),this['_shapeModelManagerMap'][_0xcee684(0x156)](_0x272d71));}});}[_0x11992e(0x192)](){const _0x3d76a1=_0x11992e;this['_shapeModelManagerMap'][_0x3d76a1(0x14e)](_0x5c6857=>{const _0x2ff1e1=_0x3d76a1;_0x5c6857[_0x2ff1e1(0x14e)](_0x454569=>{const _0x493429=_0x2ff1e1;_0x454569[_0x493429(0x192)]();});});}};C=S([x(0x0,_0x3cc430)],C);const w={'id':_0x11992e(0x165),'type':_0x33941d[_0x11992e(0x153)],'handler':(_0x383835,_0x3830b0)=>{const _0x48c4ed=_0x11992e;let {unitId:_0x4a854c,subUnitId:_0xf7272e,shapeType:_0xd51674,shapeId:_0x2efad3,shapeData:_0x2db938}=_0x3830b0,_0x343ebf=_0x383835['get'](C)[_0x48c4ed(0x17f)](_0x4a854c,_0xf7272e,_0x2efad3);return _0x343ebf&&(_0x343ebf[_0x48c4ed(0x19c)](_0xd51674),_0x2db938&&(_0x343ebf==null||_0x343ebf['setShapeData'](_0x2db938))),!0x0;}},T={'id':_0x11992e(0x1a5),'type':_0x33941d[_0x11992e(0x161)],'handler':(_0x245228,_0x48f35d)=>{const _0x32b818=_0x11992e;if(!_0x48f35d)return!0x1;let _0x5afe20=_0x245228[_0x32b818(0x16f)](_0x13b7e1),_0x117d75=_0x245228[_0x32b818(0x16f)](C),_0x9db23=_0x245228[_0x32b818(0x16f)](_0x1d8551),_0x4c0054=[],_0x2393d1=[],{unitId:_0x8088c2,subUnitId:_0x3177fa,shapeId:_0x37cc84,shapeType:_0x467387,shapeData:_0x24767f}=_0x48f35d,_0x41f758=_0x117d75[_0x32b818(0x17f)](_0x8088c2,_0x3177fa,_0x37cc84);if(_0x41f758){let _0x3a2746=_0x41f758[_0x32b818(0x15f)](),_0x42ea1c=Object[_0x32b818(0x19a)]({},_0x41f758[_0x32b818(0x19b)]()),_0x26c337={'unitId':_0x8088c2,'subUnitId':_0x3177fa,'shapeId':_0x37cc84,'shapeType':_0x467387,'shapeData':_0x24767f},_0x1c59ac={'unitId':_0x8088c2,'subUnitId':_0x3177fa,'shapeId':_0x37cc84,'shapeType':_0x3a2746,'shapeData':_0x42ea1c};return _0x4c0054['push']({'id':w['id'],'params':_0x26c337}),_0x2393d1[_0x32b818(0x171)]({'id':w['id'],'params':_0x1c59ac}),_0x4c0054[_0x32b818(0x17e)](_0x31d134=>_0x5afe20[_0x32b818(0x178)](_0x31d134['id'],_0x31d134[_0x32b818(0x15e)]))&&_0x9db23[_0x32b818(0x18c)]({'unitID':_0x8088c2,'redoMutations':[..._0x4c0054],'undoMutations':[..._0x2393d1]}),!0x0;}return!0x1;}},E={'id':_0x11992e(0x180),'type':_0x33941d['MUTATION'],'handler':(_0xdf9fae,_0x4b6851)=>{const _0x17415a=_0x11992e;let {unitId:_0x1c18be,subUnitId:_0x4d670e,shapeType:_0x7004aa,shapeId:_0x23891d,shapeData:_0x414d7c}=_0x4b6851;return _0xdf9fae[_0x17415a(0x16f)](C)['insertShape'](_0x1c18be,_0x4d670e,_0x7004aa,_0x23891d,_0x414d7c),!0x0;}},D={'id':_0x11992e(0x190),'type':_0x33941d['MUTATION'],'handler':(_0x4a7ba1,_0x1be71a)=>{const _0x4d1aca=_0x11992e;let {unitId:_0x20c6e3,subUnitId:_0x1da2a6,shapeId:_0xcf76fa}=_0x1be71a;return _0x4a7ba1[_0x4d1aca(0x16f)](C)['removeShape'](_0x20c6e3,_0x1da2a6,_0xcf76fa),!0x0;}},O={'id':_0x11992e(0x159),'type':_0x33941d[_0x11992e(0x153)],'handler':(_0x5f3fb5,_0x5c3e7c)=>{const _0x55439c=_0x11992e;let {unitId:_0x4bb864,subUnitId:_0x47d25e,shapeType:_0x59aaa8,shapeId:_0x342edc,shapeData:_0x53d0f2}=_0x5c3e7c,_0x4a2fcd=_0x5f3fb5[_0x55439c(0x16f)](C)[_0x55439c(0x17f)](_0x4bb864,_0x47d25e,_0x342edc);return _0x4a2fcd&&(_0x59aaa8!==void 0x0&&_0x4a2fcd[_0x55439c(0x19c)](_0x59aaa8),_0x53d0f2&&(_0x4a2fcd==null||_0x4a2fcd[_0x55439c(0x16b)](_0x53d0f2,!0x0))),!0x0;}};var k='@univerjs-pro/sheets-shape',A=_0x11992e(0x173);const j='sheets-shape.config';Symbol(j);const M={};let N=class extends _0xb211d6{constructor(_0x29c3d8=M,_0xb7d33e,_0x26e349,_0x33dba8){const _0x3f40ac=_0x11992e;super(),this[_0x3f40ac(0x193)]=_0x29c3d8,this[_0x3f40ac(0x182)]=_0xb7d33e,this[_0x3f40ac(0x150)]=_0x26e349,this[_0x3f40ac(0x157)]=_0x33dba8;let {..._0x3eaac9}=_0x4333c5({},M,this[_0x3f40ac(0x193)]);this[_0x3f40ac(0x157)][_0x3f40ac(0x16d)](j,_0x3eaac9),this[_0x3f40ac(0x175)]();}['onRendered'](){_0x7a0a3d(this['_injector'],[]);}['onStarting'](){const _0x5cae60=_0x11992e;let _0x45ed69=this['_injector'];[[b],[C]][_0x5cae60(0x14e)](_0x275ca7=>_0x45ed69[_0x5cae60(0x1a6)](_0x275ca7));}['_initCommands'](){const _0x477f38=_0x11992e;[E,D,w,O][_0x477f38(0x14e)](_0x171f16=>this[_0x477f38(0x163)](this[_0x477f38(0x150)][_0x477f38(0x19e)](_0x171f16)));}};y(N,_0x11992e(0x16e),_0x183d8f[_0x11992e(0x179)]),y(N,_0x11992e(0x1a1),_0x11992e(0x186)),y(N,_0x11992e(0x197),k),y(N,_0x11992e(0x1a3),A),N=S([_0x271e3d(_0x9a8e81),x(0x1,_0x193e03(_0x2e1b1f)),x(0x2,_0x13b7e1),x(0x3,_0x45c9e5)],N);export{E as InsertSheetsShapeMutation,D as RemoveSheetsShapeMutation,C as SheetsShapeService,N as UniverSheetsShapePlugin,O as UpdateSheetsShapeDataMutation,T as UpdateSheetsShapeTypeCommand,w as UpdateSheetsShapeTypeMutation};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x166d1f=_0x5854;function _0x28e8(){const _0x851f03=['keys','0.17.0','_serializeShapeForUnit','448634FrvuGl','setShapeData','10nymXnM','_commandService','getShapeData','_shapes','getShapeType','packageName','pluginName','assign','SHEET_SHAPE_PLUGIN','846964tDWyTM','type','1938180fOlHjB','defineProperty','onStarting','syncExecuteCommand','sheet.command.update-shape-type','dispose','setConfig','addShape','has','length','sheet.mutation.update-shape-data','_initCommands','getShapeModel','forEach','set','delete','174974SBgjVt','toJSON','_linesIds','COMMAND','_initSnapshot','_injector','getShapeDataById','hasShape','setShapeType','every','getBasicShapeType','56fgPksU','@univerjs-pro/sheets-shape','get','getBasicShapeRelation','clear','registerCommand','push','12728592ZUvugl','registerPluginResource','getShapeRelation','version','1321650YRJKYj','_groupIds','_shapeModelManagerMap','_configService','_config','_ensureShapeModelManager','from','145558CByfrB','stringify','fromJSON','parse','_resourcesManagerService','MUTATION','_deserializeShapeForUnit','UNIVER_SHEET','sheet.mutation.update-shape-type','pushUndoRedo','getOwnPropertyDescriptor','insertShape','add','_disposed'];_0x28e8=function(){return _0x851f03;};return _0x28e8();}(function(_0x3df8d1,_0x4757fe){const _0x3e9968=_0x5854,_0x51b447=_0x3df8d1();while(!![]){try{const _0x317f33=parseInt(_0x3e9968(0x1b9))/0x1+-parseInt(_0x3e9968(0x19c))/0x2+-parseInt(_0x3e9968(0x1cf))/0x3+parseInt(_0x3e9968(0x1a7))/0x4*(-parseInt(_0x3e9968(0x19e))/0x5)+-parseInt(_0x3e9968(0x1a9))/0x6+-parseInt(_0x3e9968(0x1d6))/0x7*(-parseInt(_0x3e9968(0x1c4))/0x8)+parseInt(_0x3e9968(0x1cb))/0x9;if(_0x317f33===_0x4757fe)break;else _0x51b447['push'](_0x51b447['shift']());}catch(_0x42f99d){_0x51b447['push'](_0x51b447['shift']());}}}(_0x28e8,0x4ef71));var C=Object[_0x166d1f(0x1aa)],j=(_0x2dcce8,_0x1820ec,_0x55445f)=>_0x1820ec in _0x2dcce8?C(_0x2dcce8,_0x1820ec,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55445f}):_0x2dcce8[_0x1820ec]=_0x55445f,c=(_0x4c0707,_0x2afaba,_0x377de4)=>j(_0x4c0707,typeof _0x2afaba!='symbol'?_0x2afaba+'':_0x2afaba,_0x377de4);import{Disposable as _0x3b9272,UniverInstanceType as _0xa31f1a,IResourceManagerService as _0x266c4d,CommandType as _0x57565f,ICommandService as _0x165bcf,IUndoRedoService as _0x41c357,DependentOn as _0x13c40b,Inject as _0x878c89,Injector as _0x25ab9b,Plugin as _0x3be3a3,merge as _0x4bc9ae,touchDependencies as _0x5e86ea,IConfigService as _0x340db0}from'@univerjs/core';import{ShapeModel as _0x14170d,isConnectorShape as _0x413840}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3f3d2a}from'@univerjs-pro/license';function _0x5854(_0x5a9a1f,_0x6e1b19){_0x5a9a1f=_0x5a9a1f-0x18c;const _0x28e8af=_0x28e8();let _0x58544e=_0x28e8af[_0x5a9a1f];return _0x58544e;}class E extends _0x3b9272{constructor(){const _0x4ba07b=_0x166d1f;super(),c(this,_0x4ba07b(0x1a1),new Map()),c(this,'_linesIds',new Set()),c(this,_0x4ba07b(0x1d0),new Set());}[_0x166d1f(0x1b0)](_0x28de22,_0x4ebf75,_0x58b775){const _0x2d5b64=_0x166d1f,_0x55fb78=new _0x14170d(_0x28de22,_0x4ebf75,_0x58b775);return this['_shapes'][_0x2d5b64(0x1b7)](_0x4ebf75,_0x55fb78),_0x413840(_0x28de22)&&this[_0x2d5b64(0x1bb)]['add'](_0x4ebf75),_0x55fb78;}[_0x166d1f(0x1c7)](_0x378b83){const _0x4e1ca5=_0x166d1f;var _0x3428e3,_0x3a8a3b;const _0x22662c=[];for(const _0x374203 of this[_0x4e1ca5(0x1bb)]){const _0x56c7ea=this[_0x4e1ca5(0x1a1)]['get'](_0x374203);if(_0x56c7ea){const _0xbaec4f=_0x56c7ea[_0x4e1ca5(0x1cd)]();_0xbaec4f&&(((_0x3428e3=_0xbaec4f[_0x4e1ca5(0x1d5)])==null?void 0x0:_0x3428e3['shapeId'])===_0x378b83&&_0x22662c[_0x4e1ca5(0x1ca)]({..._0xbaec4f[_0x4e1ca5(0x1d5)],'lineShapeId':_0x374203,'isFrom':!0x0}),((_0x3a8a3b=_0xbaec4f['to'])==null?void 0x0:_0x3a8a3b['shapeId'])===_0x378b83&&_0x22662c['push']({..._0xbaec4f['to'],'lineShapeId':_0x374203,'isFrom':!0x1}));}}return _0x22662c;}['getLineShapeRelation'](_0x466493){const _0x1c4b53=_0x166d1f,_0x50d019=this['_shapes'][_0x1c4b53(0x1c6)](_0x466493);if(_0x50d019)return _0x50d019[_0x1c4b53(0x1cd)]();}[_0x166d1f(0x1a2)](_0x20ca08){const _0x3f8c35=_0x166d1f,_0x32b12f=this['_shapes'][_0x3f8c35(0x1c6)](_0x20ca08);if(_0x32b12f)return _0x32b12f['getShapeType']();}[_0x166d1f(0x1c0)](_0x1d270c){const _0x45a30b=_0x166d1f;return this['_shapes'][_0x45a30b(0x1b1)](_0x1d270c);}['removeShape'](_0x1aaa79){const _0x3f7966=_0x166d1f,_0x8657ce=this[_0x3f7966(0x1a1)][_0x3f7966(0x1c6)](_0x1aaa79);_0x8657ce&&(_0x413840(_0x8657ce[_0x3f7966(0x1a2)]())&&this[_0x3f7966(0x1bb)][_0x3f7966(0x1b8)](_0x1aaa79),this[_0x3f7966(0x1a1)][_0x3f7966(0x1b8)](_0x1aaa79));}[_0x166d1f(0x1ba)](){const _0x55fab6=[];return this['_shapes']['forEach'](_0x280290=>{const _0x473e58=_0x5854;_0x55fab6['push'](_0x280290[_0x473e58(0x1ba)]());}),_0x55fab6;}['fromJSON'](_0x4c8930){const _0x3949a6=_0x166d1f;for(const _0x2c2718 of _0x4c8930){const {id:_0x5937fb,shapeType:_0x27b2e4}=_0x2c2718,_0xe32c7e=this['addShape'](_0x27b2e4,_0x5937fb,_0x2c2718['shapeData']);_0xe32c7e&&_0xe32c7e['isLineShape']()&&this[_0x3949a6(0x1bb)]['add'](_0x5937fb);}}[_0x166d1f(0x1ae)](){const _0x2cfba9=_0x166d1f;this[_0x2cfba9(0x198)]||(this[_0x2cfba9(0x1a1)]['forEach'](_0x20b58f=>{const _0x4a77b8=_0x2cfba9;_0x20b58f[_0x4a77b8(0x1ae)]();}),this[_0x2cfba9(0x1a1)]['clear'](),this['_linesIds'][_0x2cfba9(0x1c8)](),this[_0x2cfba9(0x1d0)][_0x2cfba9(0x1c8)](),super[_0x2cfba9(0x1ae)]());}}var V=Object[_0x166d1f(0x195)],K=(_0x4fe105,_0x4a1b94,_0x16578b,_0x318468)=>{const _0x59898f=_0x166d1f;for(var _0x386371=_0x318468>0x1?void 0x0:_0x318468?V(_0x4a1b94,_0x16578b):_0x4a1b94,_0x57276d=_0x4fe105[_0x59898f(0x1b2)]-0x1,_0x58bf75;_0x57276d>=0x0;_0x57276d--)(_0x58bf75=_0x4fe105[_0x57276d])&&(_0x386371=_0x58bf75(_0x386371)||_0x386371);return _0x386371;},W=(_0xbc996e,_0x4c0e48)=>(_0x42a778,_0x1652ef)=>_0x4c0e48(_0x42a778,_0x1652ef,_0xbc996e);const Y=_0x166d1f(0x1a6);let i=class extends _0x3b9272{constructor(_0x4be3e3){const _0x49e741=_0x166d1f;super(),c(this,'_shapeModelManagerMap',new Map()),(this[_0x49e741(0x18f)]=_0x4be3e3,this['_initSnapshot']());}[_0x166d1f(0x1d4)](_0x3a1f05,_0x5e27c2){const _0x341f54=_0x166d1f;let _0x4bca6d=this[_0x341f54(0x1d1)][_0x341f54(0x1c6)](_0x3a1f05);_0x4bca6d||(_0x4bca6d=new Map(),this['_shapeModelManagerMap'][_0x341f54(0x1b7)](_0x3a1f05,_0x4bca6d));let _0x4f5c90=_0x4bca6d[_0x341f54(0x1c6)](_0x5e27c2);return _0x4f5c90||(_0x4f5c90=new E(),_0x4bca6d[_0x341f54(0x1b7)](_0x5e27c2,_0x4f5c90)),_0x4f5c90;}[_0x166d1f(0x196)](_0x1f1e72,_0x23fa18,_0x295f1f,_0x4b0dc6,_0x3cd301){const _0x191789=_0x166d1f;this['_ensureShapeModelManager'](_0x1f1e72,_0x23fa18)[_0x191789(0x1b0)](_0x295f1f,_0x4b0dc6,_0x3cd301);}['removeShape'](_0x4f0461,_0x3d9bdc,_0x41abeb){const _0x3416a9=_0x166d1f;this[_0x3416a9(0x1d4)](_0x4f0461,_0x3d9bdc)['removeShape'](_0x41abeb);}[_0x166d1f(0x1c3)](_0x507ebd,_0x1a20f0,_0xd666dc){const _0x488ea2=_0x166d1f;return this[_0x488ea2(0x1d4)](_0x507ebd,_0x1a20f0)[_0x488ea2(0x1a2)](_0xd666dc);}[_0x166d1f(0x1a2)](_0x319bcc,_0x85ecb4,_0x2fee70){const _0x359d4d=_0x166d1f;return this[_0x359d4d(0x1d4)](_0x319bcc,_0x85ecb4)[_0x359d4d(0x1a2)](_0x2fee70);}['hasShape'](_0x57d67a,_0x342643,_0xac9f54){const _0x3d2e45=_0x166d1f;return this[_0x3d2e45(0x1d4)](_0x57d67a,_0x342643)[_0x3d2e45(0x1c0)](_0xac9f54);}['getShapeTypeById'](_0x35e53d,_0x564684,_0x1467cf){const _0x4383b8=_0x166d1f;return this[_0x4383b8(0x1d4)](_0x35e53d,_0x564684)[_0x4383b8(0x1a2)](_0x1467cf);}[_0x166d1f(0x1bf)](_0x491f6b,_0x426f9f,_0x250bef){const _0x176450=_0x166d1f,_0x6cd587=this['_ensureShapeModelManager'](_0x491f6b,_0x426f9f);if(!_0x6cd587[_0x176450(0x1a2)](_0x250bef))return;const _0x153f3f=_0x6cd587[_0x176450(0x1a1)][_0x176450(0x1c6)](_0x250bef);if(_0x153f3f)return _0x153f3f[_0x176450(0x1a0)]();}[_0x166d1f(0x1b5)](_0x3ca1d9,_0x1a1e69,_0xf83b26){const _0x9dd8ff=_0x166d1f;return this[_0x9dd8ff(0x1d4)](_0x3ca1d9,_0x1a1e69)[_0x9dd8ff(0x1a1)][_0x9dd8ff(0x1c6)](_0xf83b26);}['getBasicShapeRelation'](_0xfca483,_0x307968,_0x20beac){return this['_ensureShapeModelManager'](_0xfca483,_0x307968)['getBasicShapeRelation'](_0x20beac);}['getLineShapeRelation'](_0x13eba9,_0x3e6a20,_0x228104){const _0x23cc57=_0x166d1f,_0x1be474=this[_0x23cc57(0x1d4)](_0x13eba9,_0x3e6a20)[_0x23cc57(0x1a1)][_0x23cc57(0x1c6)](_0x228104);if(_0x1be474)return _0x1be474[_0x23cc57(0x1cd)]();}['setShapeType'](){}[_0x166d1f(0x19b)](_0xd79395){const _0x1daab7=_0x166d1f,_0x5f214e={},_0x24d47b=this[_0x1daab7(0x1d1)][_0x1daab7(0x1c6)](_0xd79395);return _0x24d47b&&_0x24d47b[_0x1daab7(0x1b6)]((_0x1d3738,_0x246a80)=>{const _0x281e09=_0x1daab7,_0x392631=_0x1d3738[_0x281e09(0x1ba)]();_0x392631[_0x281e09(0x1b2)]>0x0&&(_0x5f214e[_0x246a80]=_0x392631);}),JSON[_0x1daab7(0x18c)](_0x5f214e);}[_0x166d1f(0x191)](_0x1900d4,_0x34f3f6){const _0x33d945=_0x166d1f;Object[_0x33d945(0x199)](_0x34f3f6)[_0x33d945(0x1b6)](_0x45bf94=>{const _0x42fd0f=_0x33d945;this[_0x42fd0f(0x1d4)](_0x1900d4,_0x45bf94)[_0x42fd0f(0x18d)](_0x34f3f6[_0x45bf94]);});}[_0x166d1f(0x1ba)](){const _0x13bad8=_0x166d1f,_0x18be98={};return this[_0x13bad8(0x1d1)][_0x13bad8(0x1b6)]((_0x4d0e7e,_0x10f2b9)=>{const _0x71fba=_0x13bad8;_0x18be98[_0x10f2b9]={},_0x4d0e7e[_0x71fba(0x1b6)]((_0x2f7f31,_0x3ac202)=>{_0x18be98[_0x10f2b9][_0x3ac202]=_0x2f7f31['toJSON']();});}),_0x18be98;}['fromJSON'](_0x46f812){const _0x59ebe0=_0x166d1f;Object[_0x59ebe0(0x199)](_0x46f812)[_0x59ebe0(0x1b6)](_0x559d3f=>{const _0x20610b=_0x59ebe0,_0x272e51=_0x46f812[_0x559d3f];Object[_0x20610b(0x199)](_0x272e51)[_0x20610b(0x1b6)](_0x27f93a=>{const _0x2762e4=_0x20610b;this['_ensureShapeModelManager'](_0x559d3f,_0x27f93a)[_0x2762e4(0x18d)](_0x272e51[_0x27f93a]);});});}[_0x166d1f(0x1bd)](){const _0x45eb9a=_0x166d1f;this['_resourcesManagerService'][_0x45eb9a(0x1cc)]({'pluginName':Y,'businesses':[_0xa31f1a[_0x45eb9a(0x192)]],'toJson':_0x4681ba=>this['_serializeShapeForUnit'](_0x4681ba),'parseJson':_0x504335=>JSON[_0x45eb9a(0x18e)](_0x504335),'onLoad':(_0x51c5c4,_0x1359c3)=>{this['_deserializeShapeForUnit'](_0x51c5c4,_0x1359c3);},'onUnLoad':_0x32b534=>{const _0x54d29e=_0x45eb9a,_0x68d429=this['_shapeModelManagerMap'][_0x54d29e(0x1c6)](_0x32b534);_0x68d429&&(_0x68d429[_0x54d29e(0x1b6)](_0x32d4ce=>{_0x32d4ce['dispose']();}),this[_0x54d29e(0x1d1)]['delete'](_0x32b534));}});}['dispose'](){this['_shapeModelManagerMap']['forEach'](_0x3c423e=>{const _0x56d5a5=_0x5854;_0x3c423e[_0x56d5a5(0x1b6)](_0x30c0fe=>{_0x30c0fe['dispose']();});});}};i=K([W(0x0,_0x266c4d)],i);const _={'id':_0x166d1f(0x193),'type':_0x57565f[_0x166d1f(0x190)],'handler':(_0x49a88f,_0x3ac100)=>{const _0x5025ee=_0x166d1f,{unitId:_0x26d063,subUnitId:_0x5926de,shapeType:_0x5bd4f6,shapeId:_0x33e85e,shapeData:_0x46f6e}=_0x3ac100,_0x29ee30=_0x49a88f[_0x5025ee(0x1c6)](i)[_0x5025ee(0x1b5)](_0x26d063,_0x5926de,_0x33e85e);return _0x29ee30&&(_0x29ee30[_0x5025ee(0x1c1)](_0x5bd4f6),_0x46f6e&&(_0x29ee30==null||_0x29ee30[_0x5025ee(0x19d)](_0x46f6e))),!0x0;}},de={'id':_0x166d1f(0x1ad),'type':_0x57565f[_0x166d1f(0x1bc)],'handler':(_0x2547f2,_0x195d2d)=>{const _0x5f2ab6=_0x166d1f;if(!_0x195d2d)return!0x1;const _0x8f1180=_0x2547f2['get'](_0x165bcf),_0x52d3db=_0x2547f2[_0x5f2ab6(0x1c6)](i),_0x1bfa45=_0x2547f2[_0x5f2ab6(0x1c6)](_0x41c357),_0x30dd24=[],_0xfe3978=[],{unitId:_0x16d1f0,subUnitId:_0x549bcd,shapeId:_0x536a09,shapeType:_0x30efb9,shapeData:_0x4b170a}=_0x195d2d,_0x3fda8c=_0x52d3db[_0x5f2ab6(0x1b5)](_0x16d1f0,_0x549bcd,_0x536a09);if(_0x3fda8c){const _0x94c1ef=_0x3fda8c[_0x5f2ab6(0x1a2)](),_0x3e2692=Object[_0x5f2ab6(0x1a5)]({},_0x3fda8c['getShapeData']()),_0x2362bb={'unitId':_0x16d1f0,'subUnitId':_0x549bcd,'shapeId':_0x536a09,'shapeType':_0x30efb9,'shapeData':_0x4b170a},_0x257654={'unitId':_0x16d1f0,'subUnitId':_0x549bcd,'shapeId':_0x536a09,'shapeType':_0x94c1ef,'shapeData':_0x3e2692};return _0x30dd24[_0x5f2ab6(0x1ca)]({'id':_['id'],'params':_0x2362bb}),_0xfe3978[_0x5f2ab6(0x1ca)]({'id':_['id'],'params':_0x257654}),_0x30dd24[_0x5f2ab6(0x1c2)](_0x51bb1=>_0x8f1180[_0x5f2ab6(0x1ac)](_0x51bb1['id'],_0x51bb1['params']))&&_0x1bfa45[_0x5f2ab6(0x194)]({'unitID':_0x16d1f0,'redoMutations':[..._0x30dd24],'undoMutations':[..._0xfe3978]}),!0x0;}return!0x1;}},q={'id':'sheet.mutation.insert-shape','type':_0x57565f['MUTATION'],'handler':(_0x34117c,_0x59c807)=>{const _0x33ba1a=_0x166d1f,{unitId:_0x5cb846,subUnitId:_0x1ace1d,shapeType:_0x75fb1f,shapeId:_0x14db89,shapeData:_0x47bbb5}=_0x59c807;return _0x34117c[_0x33ba1a(0x1c6)](i)[_0x33ba1a(0x196)](_0x5cb846,_0x1ace1d,_0x75fb1f,_0x14db89,_0x47bbb5),!0x0;}},Q={'id':'sheet.mutation.remove-shape','type':_0x57565f['MUTATION'],'handler':(_0x55850b,_0xa0f6ba)=>{const {unitId:_0x2641c9,subUnitId:_0x513dbb,shapeId:_0xf3f018}=_0xa0f6ba;return _0x55850b['get'](i)['removeShape'](_0x2641c9,_0x513dbb,_0xf3f018),!0x0;}},X={'id':_0x166d1f(0x1b3),'type':_0x57565f[_0x166d1f(0x190)],'handler':(_0x5b77ec,_0x205a62)=>{const _0x2e8cb9=_0x166d1f,{unitId:_0xe315b7,subUnitId:_0x16715a,shapeType:_0x1066dd,shapeId:_0x48c828,shapeData:_0x371b50}=_0x205a62,_0xf3d248=_0x5b77ec['get'](i)['getShapeModel'](_0xe315b7,_0x16715a,_0x48c828);return _0xf3d248&&(_0x1066dd!==void 0x0&&_0xf3d248[_0x2e8cb9(0x1c1)](_0x1066dd),_0x371b50&&(_0xf3d248==null||_0xf3d248[_0x2e8cb9(0x19d)](_0x371b50,!0x0))),!0x0;}},Z=_0x166d1f(0x1c5),k=_0x166d1f(0x19a),O={'name':Z,'version':k},ee='sheets-shape.config',v={};var ae=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],te=(_0x64e1f2,_0x211fff,_0x95300)=>_0x211fff in _0x64e1f2?ae(_0x64e1f2,_0x211fff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x95300}):_0x64e1f2[_0x211fff]=_0x95300,ne=(_0x394c21,_0x12d862,_0x521883,_0x589ddd)=>{const _0x1a5ab5=_0x166d1f;for(var _0x499e74=_0x589ddd>0x1?void 0x0:_0x589ddd?se(_0x12d862,_0x521883):_0x12d862,_0x378eee=_0x394c21[_0x1a5ab5(0x1b2)]-0x1,_0x1c4b97;_0x378eee>=0x0;_0x378eee--)(_0x1c4b97=_0x394c21[_0x378eee])&&(_0x499e74=_0x1c4b97(_0x499e74)||_0x499e74);return _0x499e74;},u=(_0x4223d2,_0x233277)=>(_0x481f0a,_0x3c49bf)=>_0x233277(_0x481f0a,_0x3c49bf,_0x4223d2),M=(_0x825a34,_0xef644f,_0xaf425c)=>te(_0x825a34,typeof _0xef644f!='symbol'?_0xef644f+'':_0xef644f,_0xaf425c);let d=class extends _0x3be3a3{constructor(_0x59c0e5=v,_0x472f62,_0x1e1bd5,_0x2b4c44){const _0x357cfa=_0x166d1f;super(),this[_0x357cfa(0x1d3)]=_0x59c0e5,this['_injector']=_0x472f62,this[_0x357cfa(0x19f)]=_0x1e1bd5,this[_0x357cfa(0x1d2)]=_0x2b4c44;const {..._0x181ecd}=_0x4bc9ae({},v,this['_config']);this[_0x357cfa(0x1d2)][_0x357cfa(0x1af)](ee,_0x181ecd),this[_0x357cfa(0x1b4)]();}['onRendered'](){const _0x704c5=_0x166d1f;_0x5e86ea(this[_0x704c5(0x1be)],[]);}[_0x166d1f(0x1ab)](){const _0x382e7b=_0x166d1f,_0x103665=this['_injector'];[[E],[i]][_0x382e7b(0x1b6)](_0x185ffe=>_0x103665[_0x382e7b(0x197)](_0x185ffe));}[_0x166d1f(0x1b4)](){const _0xe8a744=_0x166d1f;[q,Q,_,X][_0xe8a744(0x1b6)](_0x45ff82=>this['disposeWithMe'](this[_0xe8a744(0x19f)][_0xe8a744(0x1c9)](_0x45ff82)));}};M(d,_0x166d1f(0x1a8),_0xa31f1a[_0x166d1f(0x192)]),M(d,_0x166d1f(0x1a4),_0x166d1f(0x1a6)),M(d,_0x166d1f(0x1a3),O['name']),M(d,_0x166d1f(0x1ce),O[_0x166d1f(0x1ce)]),d=ne([_0x13c40b(_0x3f3d2a),u(0x1,_0x878c89(_0x25ab9b)),u(0x2,_0x165bcf),u(0x3,_0x340db0)],d);export{q as InsertSheetsShapeMutation,Q as RemoveSheetsShapeMutation,i as SheetsShapeService,d as UniverSheetsShapePlugin,X as UpdateSheetsShapeDataMutation,de as UpdateSheetsShapeTypeCommand,_ as UpdateSheetsShapeTypeMutation};
1
+ const _0x11992e=_0x4c41;(function(_0x45500a,_0x52f170){const _0x3ad2da=_0x4c41,_0x134fc5=_0x45500a();while(!![]){try{const _0x11bed9=parseInt(_0x3ad2da(0x162))/0x1+parseInt(_0x3ad2da(0x14f))/0x2+parseInt(_0x3ad2da(0x152))/0x3+parseInt(_0x3ad2da(0x191))/0x4*(-parseInt(_0x3ad2da(0x172))/0x5)+parseInt(_0x3ad2da(0x15c))/0x6*(parseInt(_0x3ad2da(0x16c))/0x7)+-parseInt(_0x3ad2da(0x167))/0x8*(-parseInt(_0x3ad2da(0x1a0))/0x9)+-parseInt(_0x3ad2da(0x18f))/0xa;if(_0x11bed9===_0x52f170)break;else _0x134fc5['push'](_0x134fc5['shift']());}catch(_0x34a651){_0x134fc5['push'](_0x134fc5['shift']());}}}(_0x4ef7,0xc3653));import{CommandType as _0x33941d,DependentOn as _0x271e3d,Disposable as _0x4f8207,ICommandService as _0x13b7e1,IConfigService as _0x45c9e5,IResourceManagerService as _0x3cc430,IUndoRedoService as _0x1d8551,Inject as _0x193e03,Injector as _0x2e1b1f,Plugin as _0xb211d6,UniverInstanceType as _0x183d8f,merge as _0x4333c5,touchDependencies as _0x7a0a3d}from'@univerjs/core';function _0x4c41(_0x452921,_0x1ef3f1){_0x452921=_0x452921-0x14e;const _0x4ef7ff=_0x4ef7();let _0x4c41fd=_0x4ef7ff[_0x452921];return _0x4c41fd;}import{ShapeModel as _0x50684a,isConnectorShape as _0x5e81f4}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x9a8e81}from'@univerjs-pro/license';function g(_0x3ce36b){'@babel/helpers - typeof';const _0x4813a6=_0x4c41;return g=typeof Symbol==_0x4813a6(0x1a4)&&typeof Symbol[_0x4813a6(0x17d)]=='symbol'?function(_0x57669c){return typeof _0x57669c;}:function(_0xec31ae){const _0x327e9f=_0x4813a6;return _0xec31ae&&typeof Symbol==_0x327e9f(0x1a4)&&_0xec31ae['constructor']===Symbol&&_0xec31ae!==Symbol['prototype']?'symbol':typeof _0xec31ae;},g(_0x3ce36b);}function _(_0x3e318f,_0x14e4ec){const _0x14c3b8=_0x4c41;if(g(_0x3e318f)!=_0x14c3b8(0x176)||!_0x3e318f)return _0x3e318f;var _0x36003b=_0x3e318f[Symbol['toPrimitive']];if(_0x36003b!==void 0x0){var _0xd04e5=_0x36003b[_0x14c3b8(0x17b)](_0x3e318f,_0x14e4ec||_0x14c3b8(0x170));if(g(_0xd04e5)!='object')return _0xd04e5;throw TypeError(_0x14c3b8(0x15b));}return(_0x14e4ec===_0x14c3b8(0x17c)?String:Number)(_0x3e318f);}function v(_0x9e258a){const _0x49e3bd=_0x4c41;var _0x38d84b=_(_0x9e258a,_0x49e3bd(0x17c));return g(_0x38d84b)==_0x49e3bd(0x1a2)?_0x38d84b:_0x38d84b+'';}function y(_0x48477b,_0x47fc31,_0x40f74c){const _0x5a4267=_0x4c41;return(_0x47fc31=v(_0x47fc31))in _0x48477b?Object[_0x5a4267(0x196)](_0x48477b,_0x47fc31,{'value':_0x40f74c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x48477b[_0x47fc31]=_0x40f74c,_0x48477b;}var b=class extends _0x4f8207{constructor(){const _0x536d16=_0x4c41;super(),y(this,_0x536d16(0x188),new Map()),y(this,_0x536d16(0x155),new Set()),y(this,_0x536d16(0x160),new Set());}[_0x11992e(0x168)](_0x3dd3c9,_0x4e1853,_0x4946d2){const _0x1a2911=_0x11992e;let _0x1113ec=new _0x50684a(_0x3dd3c9,_0x4e1853,_0x4946d2);return this[_0x1a2911(0x188)][_0x1a2911(0x15a)](_0x4e1853,_0x1113ec),_0x5e81f4(_0x3dd3c9)&&this[_0x1a2911(0x155)][_0x1a2911(0x1a6)](_0x4e1853),_0x1113ec;}[_0x11992e(0x18a)](_0x2d3d20){const _0x27c172=_0x11992e;let _0x279246=[];for(let _0x3b9f3e of this[_0x27c172(0x155)]){let _0x39bf55=this[_0x27c172(0x188)][_0x27c172(0x16f)](_0x3b9f3e);if(_0x39bf55){let _0xae3a83=_0x39bf55[_0x27c172(0x158)]();if(_0xae3a83){var _0x847d61,_0x5192d6;((_0x847d61=_0xae3a83[_0x27c172(0x181)])==null?void 0x0:_0x847d61[_0x27c172(0x151)])===_0x2d3d20&&_0x279246[_0x27c172(0x171)]({..._0xae3a83[_0x27c172(0x181)],'lineShapeId':_0x3b9f3e,'isFrom':!0x0}),((_0x5192d6=_0xae3a83['to'])==null?void 0x0:_0x5192d6['shapeId'])===_0x2d3d20&&_0x279246['push']({..._0xae3a83['to'],'lineShapeId':_0x3b9f3e,'isFrom':!0x1});}}}return _0x279246;}[_0x11992e(0x187)](_0x411c0d){const _0x8241ac=_0x11992e;let _0x26f10c=this[_0x8241ac(0x188)][_0x8241ac(0x16f)](_0x411c0d);if(_0x26f10c)return _0x26f10c[_0x8241ac(0x158)]();}[_0x11992e(0x15f)](_0x50688f){const _0x430038=_0x11992e;let _0x3d33b4=this[_0x430038(0x188)][_0x430038(0x16f)](_0x50688f);if(_0x3d33b4)return _0x3d33b4[_0x430038(0x15f)]();}['hasShape'](_0x8f9b9a){const _0x99f840=_0x11992e;return this[_0x99f840(0x188)][_0x99f840(0x19f)](_0x8f9b9a);}[_0x11992e(0x166)](_0x39d803){const _0x240b61=_0x11992e;let _0x5939a2=this[_0x240b61(0x188)][_0x240b61(0x16f)](_0x39d803);_0x5939a2&&(_0x5e81f4(_0x5939a2['getShapeType']())&&this[_0x240b61(0x155)]['delete'](_0x39d803),this[_0x240b61(0x188)]['delete'](_0x39d803));}[_0x11992e(0x15d)](){const _0xc6d010=_0x11992e;let _0x54874b=[];return this[_0xc6d010(0x188)][_0xc6d010(0x14e)](_0x58bbd1=>{const _0x363528=_0xc6d010;_0x54874b[_0x363528(0x171)](_0x58bbd1['toJSON']());}),_0x54874b;}[_0x11992e(0x195)](_0x537bdc){const _0x54b70e=_0x11992e;for(let _0x24ba45 of _0x537bdc){let {id:_0x43c7a5,shapeType:_0x1f27f8}=_0x24ba45,_0x5725a1=this[_0x54b70e(0x168)](_0x1f27f8,_0x43c7a5,_0x24ba45[_0x54b70e(0x19d)]);_0x5725a1&&_0x5725a1['isLineShape']()&&this[_0x54b70e(0x155)][_0x54b70e(0x1a6)](_0x43c7a5);}}[_0x11992e(0x192)](){const _0x1ee781=_0x11992e;this[_0x1ee781(0x185)]||(this[_0x1ee781(0x188)][_0x1ee781(0x14e)](_0x3a241c=>{const _0x552768=_0x1ee781;_0x3a241c[_0x552768(0x192)]();}),this[_0x1ee781(0x188)][_0x1ee781(0x199)](),this[_0x1ee781(0x155)][_0x1ee781(0x199)](),this['_groupIds'][_0x1ee781(0x199)](),super[_0x1ee781(0x192)]());}};function _0x4ef7(){const _0x28dacb=['hasShape','syncExecuteCommand','UNIVER_SHEET','_ensureShapeModelManager','call','string','iterator','every','getShapeModel','sheet.mutation.insert-shape','from','_injector','stringify','decorate','_disposed','SHEET_SHAPE_PLUGIN','getLineShapeRelation','_shapes','_serializeShapeForUnit','getBasicShapeRelation','getShapeDataById','pushUndoRedo','_initSnapshot','getOwnPropertyDescriptor','19374380txnidm','sheet.mutation.remove-shape','4676732XudNfw','dispose','_config','_shapeModelManagerMap','fromJSON','defineProperty','packageName','registerPluginResource','clear','assign','getShapeData','setShapeType','shapeData','registerCommand','has','2502VduUEK','pluginName','symbol','version','function','sheet.command.update-shape-type','add','forEach','3142822tzYVMX','_commandService','shapeId','2035191lpMtWm','MUTATION','insertShape','_linesIds','delete','_configService','getShapeRelation','sheet.mutation.update-shape-data','set','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1861032REeCZw','toJSON','params','getShapeType','_groupIds','COMMAND','580964aqpYGv','disposeWithMe','keys','sheet.mutation.update-shape-type','removeShape','4192CoGqZf','addShape','parse','length','setShapeData','21TzqxXS','setConfig','type','get','default','push','5Uyqmot','0.18.0-insiders.20260328-d26c36e','_deserializeShapeForUnit','_initCommands','object'];_0x4ef7=function(){return _0x28dacb;};return _0x4ef7();}function x(_0x3d4daa,_0x1dbf61){return function(_0x1986de,_0x47d650){_0x1dbf61(_0x1986de,_0x47d650,_0x3d4daa);};}function S(_0x1b6e5e,_0x16b448,_0x274fa2,_0x52d494){const _0x1784ce=_0x11992e;var _0x54bdbb=arguments[_0x1784ce(0x16a)],_0x5ee488=_0x54bdbb<0x3?_0x16b448:_0x52d494===null?_0x52d494=Object[_0x1784ce(0x18e)](_0x16b448,_0x274fa2):_0x52d494,_0x30a6ce;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1784ce(0x1a4))_0x5ee488=Reflect[_0x1784ce(0x184)](_0x1b6e5e,_0x16b448,_0x274fa2,_0x52d494);else{for(var _0x3dc448=_0x1b6e5e[_0x1784ce(0x16a)]-0x1;_0x3dc448>=0x0;_0x3dc448--)(_0x30a6ce=_0x1b6e5e[_0x3dc448])&&(_0x5ee488=(_0x54bdbb<0x3?_0x30a6ce(_0x5ee488):_0x54bdbb>0x3?_0x30a6ce(_0x16b448,_0x274fa2,_0x5ee488):_0x30a6ce(_0x16b448,_0x274fa2))||_0x5ee488);}return _0x54bdbb>0x3&&_0x5ee488&&Object[_0x1784ce(0x196)](_0x16b448,_0x274fa2,_0x5ee488),_0x5ee488;}let C=class extends _0x4f8207{constructor(_0x23782d){const _0x57d05e=_0x11992e;super(),this['_resourcesManagerService']=_0x23782d,y(this,_0x57d05e(0x194),new Map()),this[_0x57d05e(0x18d)]();}['_ensureShapeModelManager'](_0x333fb6,_0x46d50b){const _0x2e3e8e=_0x11992e;let _0x679aec=this[_0x2e3e8e(0x194)][_0x2e3e8e(0x16f)](_0x333fb6);_0x679aec||(_0x679aec=new Map(),this[_0x2e3e8e(0x194)]['set'](_0x333fb6,_0x679aec));let _0x5e55d4=_0x679aec[_0x2e3e8e(0x16f)](_0x46d50b);return _0x5e55d4||(_0x5e55d4=new b(),_0x679aec[_0x2e3e8e(0x15a)](_0x46d50b,_0x5e55d4)),_0x5e55d4;}[_0x11992e(0x154)](_0x2ac9f4,_0x43696d,_0x1512e0,_0x2b944f,_0x260fd0){const _0x5c0667=_0x11992e;this['_ensureShapeModelManager'](_0x2ac9f4,_0x43696d)[_0x5c0667(0x168)](_0x1512e0,_0x2b944f,_0x260fd0);}[_0x11992e(0x166)](_0xe8eaf8,_0x540820,_0x3dfdeb){const _0x23d5ee=_0x11992e;this[_0x23d5ee(0x17a)](_0xe8eaf8,_0x540820)[_0x23d5ee(0x166)](_0x3dfdeb);}['getBasicShapeType'](_0x1bc126,_0x3a605b,_0x17901e){const _0x4d51f3=_0x11992e;return this[_0x4d51f3(0x17a)](_0x1bc126,_0x3a605b)['getShapeType'](_0x17901e);}['getShapeType'](_0xf1fb16,_0x407650,_0x1ba758){const _0x310dc6=_0x11992e;return this[_0x310dc6(0x17a)](_0xf1fb16,_0x407650)['getShapeType'](_0x1ba758);}[_0x11992e(0x177)](_0x2e622a,_0x22ce13,_0x4138ef){const _0x1a0859=_0x11992e;return this[_0x1a0859(0x17a)](_0x2e622a,_0x22ce13)[_0x1a0859(0x177)](_0x4138ef);}['getShapeTypeById'](_0x237b75,_0x5419d6,_0x11e306){const _0x5c8864=_0x11992e;return this['_ensureShapeModelManager'](_0x237b75,_0x5419d6)[_0x5c8864(0x15f)](_0x11e306);}[_0x11992e(0x18b)](_0x28faa9,_0x404682,_0x6ee261){const _0x273c61=_0x11992e;let _0x592949=this[_0x273c61(0x17a)](_0x28faa9,_0x404682);if(!_0x592949[_0x273c61(0x15f)](_0x6ee261))return;let _0x31008a=_0x592949[_0x273c61(0x188)][_0x273c61(0x16f)](_0x6ee261);if(_0x31008a)return _0x31008a['getShapeData']();}[_0x11992e(0x17f)](_0x44950b,_0x5ec168,_0x204eb6){return this['_ensureShapeModelManager'](_0x44950b,_0x5ec168)['_shapes']['get'](_0x204eb6);}['getBasicShapeRelation'](_0x356a97,_0x2179c4,_0x3af62d){const _0x3f1790=_0x11992e;return this['_ensureShapeModelManager'](_0x356a97,_0x2179c4)[_0x3f1790(0x18a)](_0x3af62d);}[_0x11992e(0x187)](_0x4ae7f2,_0x510a01,_0x1a9655){const _0x242798=_0x11992e;let _0x6b079f=this[_0x242798(0x17a)](_0x4ae7f2,_0x510a01)[_0x242798(0x188)][_0x242798(0x16f)](_0x1a9655);if(_0x6b079f)return _0x6b079f[_0x242798(0x158)]();}[_0x11992e(0x19c)](){}[_0x11992e(0x189)](_0x1aa935){const _0x53bb85=_0x11992e;let _0x48ae6c={},_0x21484f=this[_0x53bb85(0x194)][_0x53bb85(0x16f)](_0x1aa935);return _0x21484f&&_0x21484f['forEach']((_0x421e93,_0xfb607c)=>{const _0x5d67ad=_0x53bb85;let _0x3cb97a=_0x421e93[_0x5d67ad(0x15d)]();_0x3cb97a[_0x5d67ad(0x16a)]>0x0&&(_0x48ae6c[_0xfb607c]=_0x3cb97a);}),JSON[_0x53bb85(0x183)](_0x48ae6c);}[_0x11992e(0x174)](_0x26a2bc,_0x1d5f24){const _0x19d3aa=_0x11992e;Object[_0x19d3aa(0x164)](_0x1d5f24)['forEach'](_0x3bc248=>{const _0x2325c9=_0x19d3aa;this[_0x2325c9(0x17a)](_0x26a2bc,_0x3bc248)['fromJSON'](_0x1d5f24[_0x3bc248]);});}[_0x11992e(0x15d)](){const _0x51237d=_0x11992e;let _0x4b220c={};return this['_shapeModelManagerMap'][_0x51237d(0x14e)]((_0x43253b,_0x125b5c)=>{const _0x23c7a7=_0x51237d;_0x4b220c[_0x125b5c]={},_0x43253b[_0x23c7a7(0x14e)]((_0x5a82c2,_0x200a6c)=>{const _0x4a1711=_0x23c7a7;_0x4b220c[_0x125b5c][_0x200a6c]=_0x5a82c2[_0x4a1711(0x15d)]();});}),_0x4b220c;}[_0x11992e(0x195)](_0x1f7d02){const _0x191273=_0x11992e;Object[_0x191273(0x164)](_0x1f7d02)['forEach'](_0x3eeaf8=>{const _0x1bf320=_0x191273;let _0x437cd1=_0x1f7d02[_0x3eeaf8];Object[_0x1bf320(0x164)](_0x437cd1)[_0x1bf320(0x14e)](_0x558ca7=>{const _0x29e3e5=_0x1bf320;this[_0x29e3e5(0x17a)](_0x3eeaf8,_0x558ca7)['fromJSON'](_0x437cd1[_0x558ca7]);});});}[_0x11992e(0x18d)](){const _0x4d4c63=_0x11992e;this['_resourcesManagerService'][_0x4d4c63(0x198)]({'pluginName':_0x4d4c63(0x186),'businesses':[_0x183d8f[_0x4d4c63(0x179)]],'toJson':_0x205f14=>this['_serializeShapeForUnit'](_0x205f14),'parseJson':_0x2c6a09=>JSON[_0x4d4c63(0x169)](_0x2c6a09),'onLoad':(_0x295a76,_0x4fccde)=>{const _0xfc2bb7=_0x4d4c63;this[_0xfc2bb7(0x174)](_0x295a76,_0x4fccde);},'onUnLoad':_0x272d71=>{const _0xcee684=_0x4d4c63;let _0x59d63c=this['_shapeModelManagerMap'][_0xcee684(0x16f)](_0x272d71);_0x59d63c&&(_0x59d63c['forEach'](_0x13dc62=>{_0x13dc62['dispose']();}),this['_shapeModelManagerMap'][_0xcee684(0x156)](_0x272d71));}});}[_0x11992e(0x192)](){const _0x3d76a1=_0x11992e;this['_shapeModelManagerMap'][_0x3d76a1(0x14e)](_0x5c6857=>{const _0x2ff1e1=_0x3d76a1;_0x5c6857[_0x2ff1e1(0x14e)](_0x454569=>{const _0x493429=_0x2ff1e1;_0x454569[_0x493429(0x192)]();});});}};C=S([x(0x0,_0x3cc430)],C);const w={'id':_0x11992e(0x165),'type':_0x33941d[_0x11992e(0x153)],'handler':(_0x383835,_0x3830b0)=>{const _0x48c4ed=_0x11992e;let {unitId:_0x4a854c,subUnitId:_0xf7272e,shapeType:_0xd51674,shapeId:_0x2efad3,shapeData:_0x2db938}=_0x3830b0,_0x343ebf=_0x383835['get'](C)[_0x48c4ed(0x17f)](_0x4a854c,_0xf7272e,_0x2efad3);return _0x343ebf&&(_0x343ebf[_0x48c4ed(0x19c)](_0xd51674),_0x2db938&&(_0x343ebf==null||_0x343ebf['setShapeData'](_0x2db938))),!0x0;}},T={'id':_0x11992e(0x1a5),'type':_0x33941d[_0x11992e(0x161)],'handler':(_0x245228,_0x48f35d)=>{const _0x32b818=_0x11992e;if(!_0x48f35d)return!0x1;let _0x5afe20=_0x245228[_0x32b818(0x16f)](_0x13b7e1),_0x117d75=_0x245228[_0x32b818(0x16f)](C),_0x9db23=_0x245228[_0x32b818(0x16f)](_0x1d8551),_0x4c0054=[],_0x2393d1=[],{unitId:_0x8088c2,subUnitId:_0x3177fa,shapeId:_0x37cc84,shapeType:_0x467387,shapeData:_0x24767f}=_0x48f35d,_0x41f758=_0x117d75[_0x32b818(0x17f)](_0x8088c2,_0x3177fa,_0x37cc84);if(_0x41f758){let _0x3a2746=_0x41f758[_0x32b818(0x15f)](),_0x42ea1c=Object[_0x32b818(0x19a)]({},_0x41f758[_0x32b818(0x19b)]()),_0x26c337={'unitId':_0x8088c2,'subUnitId':_0x3177fa,'shapeId':_0x37cc84,'shapeType':_0x467387,'shapeData':_0x24767f},_0x1c59ac={'unitId':_0x8088c2,'subUnitId':_0x3177fa,'shapeId':_0x37cc84,'shapeType':_0x3a2746,'shapeData':_0x42ea1c};return _0x4c0054['push']({'id':w['id'],'params':_0x26c337}),_0x2393d1[_0x32b818(0x171)]({'id':w['id'],'params':_0x1c59ac}),_0x4c0054[_0x32b818(0x17e)](_0x31d134=>_0x5afe20[_0x32b818(0x178)](_0x31d134['id'],_0x31d134[_0x32b818(0x15e)]))&&_0x9db23[_0x32b818(0x18c)]({'unitID':_0x8088c2,'redoMutations':[..._0x4c0054],'undoMutations':[..._0x2393d1]}),!0x0;}return!0x1;}},E={'id':_0x11992e(0x180),'type':_0x33941d['MUTATION'],'handler':(_0xdf9fae,_0x4b6851)=>{const _0x17415a=_0x11992e;let {unitId:_0x1c18be,subUnitId:_0x4d670e,shapeType:_0x7004aa,shapeId:_0x23891d,shapeData:_0x414d7c}=_0x4b6851;return _0xdf9fae[_0x17415a(0x16f)](C)['insertShape'](_0x1c18be,_0x4d670e,_0x7004aa,_0x23891d,_0x414d7c),!0x0;}},D={'id':_0x11992e(0x190),'type':_0x33941d['MUTATION'],'handler':(_0x4a7ba1,_0x1be71a)=>{const _0x4d1aca=_0x11992e;let {unitId:_0x20c6e3,subUnitId:_0x1da2a6,shapeId:_0xcf76fa}=_0x1be71a;return _0x4a7ba1[_0x4d1aca(0x16f)](C)['removeShape'](_0x20c6e3,_0x1da2a6,_0xcf76fa),!0x0;}},O={'id':_0x11992e(0x159),'type':_0x33941d[_0x11992e(0x153)],'handler':(_0x5f3fb5,_0x5c3e7c)=>{const _0x55439c=_0x11992e;let {unitId:_0x4bb864,subUnitId:_0x47d25e,shapeType:_0x59aaa8,shapeId:_0x342edc,shapeData:_0x53d0f2}=_0x5c3e7c,_0x4a2fcd=_0x5f3fb5[_0x55439c(0x16f)](C)[_0x55439c(0x17f)](_0x4bb864,_0x47d25e,_0x342edc);return _0x4a2fcd&&(_0x59aaa8!==void 0x0&&_0x4a2fcd[_0x55439c(0x19c)](_0x59aaa8),_0x53d0f2&&(_0x4a2fcd==null||_0x4a2fcd[_0x55439c(0x16b)](_0x53d0f2,!0x0))),!0x0;}};var k='@univerjs-pro/sheets-shape',A=_0x11992e(0x173);const j='sheets-shape.config';Symbol(j);const M={};let N=class extends _0xb211d6{constructor(_0x29c3d8=M,_0xb7d33e,_0x26e349,_0x33dba8){const _0x3f40ac=_0x11992e;super(),this[_0x3f40ac(0x193)]=_0x29c3d8,this[_0x3f40ac(0x182)]=_0xb7d33e,this[_0x3f40ac(0x150)]=_0x26e349,this[_0x3f40ac(0x157)]=_0x33dba8;let {..._0x3eaac9}=_0x4333c5({},M,this[_0x3f40ac(0x193)]);this[_0x3f40ac(0x157)][_0x3f40ac(0x16d)](j,_0x3eaac9),this[_0x3f40ac(0x175)]();}['onRendered'](){_0x7a0a3d(this['_injector'],[]);}['onStarting'](){const _0x5cae60=_0x11992e;let _0x45ed69=this['_injector'];[[b],[C]][_0x5cae60(0x14e)](_0x275ca7=>_0x45ed69[_0x5cae60(0x1a6)](_0x275ca7));}['_initCommands'](){const _0x477f38=_0x11992e;[E,D,w,O][_0x477f38(0x14e)](_0x171f16=>this[_0x477f38(0x163)](this[_0x477f38(0x150)][_0x477f38(0x19e)](_0x171f16)));}};y(N,_0x11992e(0x16e),_0x183d8f[_0x11992e(0x179)]),y(N,_0x11992e(0x1a1),_0x11992e(0x186)),y(N,_0x11992e(0x197),k),y(N,_0x11992e(0x1a3),A),N=S([_0x271e3d(_0x9a8e81),x(0x1,_0x193e03(_0x2e1b1f)),x(0x2,_0x13b7e1),x(0x3,_0x45c9e5)],N);export{E as InsertSheetsShapeMutation,D as RemoveSheetsShapeMutation,C as SheetsShapeService,N as UniverSheetsShapePlugin,O as UpdateSheetsShapeDataMutation,T as UpdateSheetsShapeTypeCommand,w as UpdateSheetsShapeTypeMutation};
@@ -1,6 +1,6 @@
1
- import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
- import { ICommand } from '@univerjs/core';
3
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
1
+ import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { ICommand } from '@univerjs/core';
3
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IUpdateSheetsShapeTypeCommandParams extends ISheetCommandSharedParams {
5
5
  shapeId: string;
6
6
  shapeType: ShapeTypeEnum;
@@ -1,6 +1,6 @@
1
- import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
- import { IMutation } from '@univerjs/core';
3
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
1
+ import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { IMutation } from '@univerjs/core';
3
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IInsertSheetsShapeMutationParams extends ISheetCommandSharedParams {
5
5
  shapeId: string;
6
6
  shapeType: ShapeTypeEnum;
@@ -1,5 +1,5 @@
1
- import { IMutation } from '@univerjs/core';
2
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
3
3
  export interface IRemoveSheetsShapeMutationParams extends ISheetCommandSharedParams {
4
4
  shapeId: string;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
- import { IMutation } from '@univerjs/core';
3
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
1
+ import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { IMutation } from '@univerjs/core';
3
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IUpdateSheetsShapeDataMutationParams extends ISheetCommandSharedParams {
5
5
  shapeId: string;
6
6
  shapeType: ShapeTypeEnum;
@@ -1,6 +1,6 @@
1
- import { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
- import { IMutation } from '@univerjs/core';
3
- import { ISheetCommandSharedParams } from '@univerjs/sheets';
1
+ import type { IShapeData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import type { IMutation } from '@univerjs/core';
3
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
4
4
  export interface IUpdateSheetsShapeTypeMutationParams extends ISheetCommandSharedParams {
5
5
  shapeId: string;
6
6
  shapeType: ShapeTypeEnum;
@@ -1,4 +1,5 @@
1
- import { IShapeData, IShapeJSONData, IShapeRelation, IShapeRelationItem, ShapeTypeEnum, ShapeModel } from '@univerjs-pro/engine-shape';
1
+ import type { IShapeData, IShapeJSONData, IShapeRelation, IShapeRelationItem, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
+ import { ShapeModel } from '@univerjs-pro/engine-shape';
2
3
  import { Disposable } from '@univerjs/core';
3
4
  export type IShapeRelationItemWithLineId = IShapeRelationItem & {
4
5
  lineShapeId: string;
@@ -1,4 +1,4 @@
1
- import { IUniverSheetsShapeConfig } from './controllers/config.schema';
1
+ import type { IUniverSheetsShapeConfig } from './controllers/config.schema';
2
2
  import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
3
  export declare class UniverSheetsShapePlugin extends Plugin {
4
4
  private readonly _config;
@@ -1,4 +1,4 @@
1
- import { IShapeData, IShapeJSONData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
1
+ import type { IShapeData, IShapeJSONData, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
2
  import { Disposable, IResourceManagerService } from '@univerjs/core';
3
3
  export interface ISheetsShapeResource {
4
4
  [subUnitId: string]: IShapeJSONData[];
@@ -16,9 +16,9 @@ export declare class SheetsShapeService extends Disposable {
16
16
  hasShape(unitId: string, subUnitId: string, shapeId: string): boolean;
17
17
  getShapeTypeById(unitId: string, subUnitId: string, shapeId: string): ShapeTypeEnum | undefined;
18
18
  getShapeDataById(unitId: string, subUnitId: string, shapeId: string): IShapeData | undefined;
19
- getShapeModel(unitId: string, subUnitId: string, shapeId: string): import('@univerjs-pro/engine-shape').ShapeModel | undefined;
20
- getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import('../model/shape-manager').IShapeRelationItemWithLineId[];
21
- getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import('@univerjs-pro/engine-shape').IShapeRelation | undefined;
19
+ getShapeModel(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").ShapeModel | undefined;
20
+ getBasicShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("../model/shape-manager").IShapeRelationItemWithLineId[];
21
+ getLineShapeRelation(unitId: string, subUnitId: string, shapeId: string): import("@univerjs-pro/engine-shape").IShapeRelation | undefined;
22
22
  setShapeType(): void;
23
23
  private _serializeShapeForUnit;
24
24
  private _deserializeShapeForUnit;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1a0e(_0x14930f,_0x17bae7){_0x14930f=_0x14930f-0x1f2;const _0x1e5285=_0x1e52();let _0x1a0e98=_0x1e5285[_0x14930f];return _0x1a0e98;}(function(_0x4cf8d9,_0xa2e791){const _0x3ca624=_0x1a0e,_0x1f0943=_0x4cf8d9();while(!![]){try{const _0x4a7519=-parseInt(_0x3ca624(0x237))/0x1*(-parseInt(_0x3ca624(0x21c))/0x2)+parseInt(_0x3ca624(0x231))/0x3+-parseInt(_0x3ca624(0x211))/0x4*(-parseInt(_0x3ca624(0x20a))/0x5)+-parseInt(_0x3ca624(0x255))/0x6+parseInt(_0x3ca624(0x248))/0x7+-parseInt(_0x3ca624(0x22f))/0x8*(-parseInt(_0x3ca624(0x23d))/0x9)+-parseInt(_0x3ca624(0x202))/0xa;if(_0x4a7519===_0xa2e791)break;else _0x1f0943['push'](_0x1f0943['shift']());}catch(_0x4289d2){_0x1f0943['push'](_0x1f0943['shift']());}}}(_0x1e52,0xf168b),function(_0x3e63ce,_0x41f468){const _0x4ca16c=_0x1a0e;typeof exports==_0x4ca16c(0x238)&&typeof module<'u'?_0x41f468(exports,require('@univerjs/core'),require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license')):typeof define==_0x4ca16c(0x1f3)&&define[_0x4ca16c(0x24a)]?define(['exports','@univerjs/core',_0x4ca16c(0x228),_0x4ca16c(0x217)],_0x41f468):(_0x3e63ce=typeof globalThis<'u'?globalThis:_0x3e63ce||self,_0x41f468(_0x3e63ce[_0x4ca16c(0x21f)]={},_0x3e63ce[_0x4ca16c(0x1f2)],_0x3e63ce[_0x4ca16c(0x233)],_0x3e63ce['UniverProLicense']));}(this,function(_0x7e63bb,_0x4bc444,_0xeb7de0,_0x34050b){'use strict';const _0x2e73d4=_0x1a0e;var _0x5e53cf=Object[_0x2e73d4(0x200)],_0x2703a7=(_0x48a578,_0x55e4c6,_0x57bd5d)=>_0x55e4c6 in _0x48a578?_0x5e53cf(_0x48a578,_0x55e4c6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57bd5d}):_0x48a578[_0x55e4c6]=_0x57bd5d,_0x1b3a0b=(_0x203b5b,_0x2fd0f2,_0x2ed60f)=>_0x2703a7(_0x203b5b,typeof _0x2fd0f2!='symbol'?_0x2fd0f2+'':_0x2fd0f2,_0x2ed60f);class _0x488540 extends _0x4bc444[_0x2e73d4(0x20e)]{constructor(){const _0x11e645=_0x2e73d4;super(),_0x1b3a0b(this,_0x11e645(0x22e),new Map()),_0x1b3a0b(this,_0x11e645(0x210),new Set()),_0x1b3a0b(this,'_groupIds',new Set());}['addShape'](_0x54f232,_0x5edec7,_0x2fffac){const _0x2edcc2=_0x2e73d4,_0x393355=new _0xeb7de0[(_0x2edcc2(0x23c))](_0x54f232,_0x5edec7,_0x2fffac);return this[_0x2edcc2(0x22e)]['set'](_0x5edec7,_0x393355),_0xeb7de0[_0x2edcc2(0x206)](_0x54f232)&&this[_0x2edcc2(0x210)][_0x2edcc2(0x22c)](_0x5edec7),_0x393355;}[_0x2e73d4(0x250)](_0x414371){const _0x238ef3=_0x2e73d4;var _0x43c953,_0x2287d2;const _0xd38241=[];for(const _0x1f0fda of this['_linesIds']){const _0x288891=this['_shapes'][_0x238ef3(0x229)](_0x1f0fda);if(_0x288891){const _0x211f7d=_0x288891[_0x238ef3(0x201)]();_0x211f7d&&(((_0x43c953=_0x211f7d[_0x238ef3(0x203)])==null?void 0x0:_0x43c953[_0x238ef3(0x243)])===_0x414371&&_0xd38241[_0x238ef3(0x1f7)]({..._0x211f7d[_0x238ef3(0x203)],'lineShapeId':_0x1f0fda,'isFrom':!0x0}),((_0x2287d2=_0x211f7d['to'])==null?void 0x0:_0x2287d2[_0x238ef3(0x243)])===_0x414371&&_0xd38241[_0x238ef3(0x1f7)]({..._0x211f7d['to'],'lineShapeId':_0x1f0fda,'isFrom':!0x1}));}}return _0xd38241;}[_0x2e73d4(0x23e)](_0x3d39b5){const _0x195bdf=_0x2e73d4,_0x3eb669=this[_0x195bdf(0x22e)][_0x195bdf(0x229)](_0x3d39b5);if(_0x3eb669)return _0x3eb669[_0x195bdf(0x201)]();}[_0x2e73d4(0x22a)](_0x2fa552){const _0x440e91=_0x2e73d4,_0x14a02f=this[_0x440e91(0x22e)]['get'](_0x2fa552);if(_0x14a02f)return _0x14a02f[_0x440e91(0x22a)]();}[_0x2e73d4(0x207)](_0xe9acd0){const _0xf2be01=_0x2e73d4;return this[_0xf2be01(0x22e)][_0xf2be01(0x253)](_0xe9acd0);}['removeShape'](_0x150d0e){const _0x48f634=_0x2e73d4,_0x4d779e=this[_0x48f634(0x22e)][_0x48f634(0x229)](_0x150d0e);_0x4d779e&&(_0xeb7de0[_0x48f634(0x206)](_0x4d779e[_0x48f634(0x22a)]())&&this['_linesIds'][_0x48f634(0x247)](_0x150d0e),this[_0x48f634(0x22e)][_0x48f634(0x247)](_0x150d0e));}['toJSON'](){const _0x1d9bdc=_0x2e73d4,_0x525e5f=[];return this['_shapes'][_0x1d9bdc(0x24e)](_0x578bc3=>{const _0x4dc910=_0x1d9bdc;_0x525e5f[_0x4dc910(0x1f7)](_0x578bc3[_0x4dc910(0x24f)]());}),_0x525e5f;}[_0x2e73d4(0x258)](_0x112168){const _0x15810d=_0x2e73d4;for(const _0x45e65a of _0x112168){const {id:_0x1efe67,shapeType:_0x599454}=_0x45e65a,_0x56f6cc=this['addShape'](_0x599454,_0x1efe67,_0x45e65a['shapeData']);_0x56f6cc&&_0x56f6cc['isLineShape']()&&this['_linesIds'][_0x15810d(0x22c)](_0x1efe67);}}['dispose'](){const _0x29daa4=_0x2e73d4;this[_0x29daa4(0x1fb)]||(this[_0x29daa4(0x22e)][_0x29daa4(0x24e)](_0x56d582=>{const _0x3433d0=_0x29daa4;_0x56d582[_0x3433d0(0x1f9)]();}),this[_0x29daa4(0x22e)][_0x29daa4(0x25b)](),this['_linesIds'][_0x29daa4(0x25b)](),this[_0x29daa4(0x225)][_0x29daa4(0x25b)](),super[_0x29daa4(0x1f9)]());}}var _0x2f8882=Object[_0x2e73d4(0x20d)],_0x24f2f4=(_0x4ac376,_0x267da0,_0x16a24a,_0x34d726)=>{const _0x7c922f=_0x2e73d4;for(var _0x3bb647=_0x34d726>0x1?void 0x0:_0x34d726?_0x2f8882(_0x267da0,_0x16a24a):_0x267da0,_0xc5b162=_0x4ac376[_0x7c922f(0x244)]-0x1,_0x45c42b;_0xc5b162>=0x0;_0xc5b162--)(_0x45c42b=_0x4ac376[_0xc5b162])&&(_0x3bb647=_0x45c42b(_0x3bb647)||_0x3bb647);return _0x3bb647;},_0x51b95c=(_0x58907b,_0x58d257)=>(_0x5bbdb8,_0x7ca0c0)=>_0x58d257(_0x5bbdb8,_0x7ca0c0,_0x58907b);const _0x14fc02=_0x2e73d4(0x209);_0x7e63bb[_0x2e73d4(0x205)]=class extends _0x4bc444[_0x2e73d4(0x20e)]{constructor(_0x5b1341){const _0x5e78fe=_0x2e73d4;super(),_0x1b3a0b(this,_0x5e78fe(0x21b),new Map()),(this['_resourcesManagerService']=_0x5b1341,this['_initSnapshot']());}['_ensureShapeModelManager'](_0x2978ec,_0x291b0e){const _0x344a48=_0x2e73d4;let _0x5b09a0=this[_0x344a48(0x21b)][_0x344a48(0x229)](_0x2978ec);_0x5b09a0||(_0x5b09a0=new Map(),this['_shapeModelManagerMap']['set'](_0x2978ec,_0x5b09a0));let _0x46746e=_0x5b09a0['get'](_0x291b0e);return _0x46746e||(_0x46746e=new _0x488540(),_0x5b09a0['set'](_0x291b0e,_0x46746e)),_0x46746e;}[_0x2e73d4(0x254)](_0x1300be,_0x4e3678,_0x5f485e,_0x3eb7ed,_0x4254dc){const _0x591aaa=_0x2e73d4;this[_0x591aaa(0x219)](_0x1300be,_0x4e3678)['addShape'](_0x5f485e,_0x3eb7ed,_0x4254dc);}[_0x2e73d4(0x24d)](_0xd93fdb,_0x47905a,_0x2dab0c){const _0x3999c0=_0x2e73d4;this[_0x3999c0(0x219)](_0xd93fdb,_0x47905a)[_0x3999c0(0x24d)](_0x2dab0c);}[_0x2e73d4(0x256)](_0x4cfde4,_0x4e013b,_0x1c673d){const _0x9258fd=_0x2e73d4;return this[_0x9258fd(0x219)](_0x4cfde4,_0x4e013b)['getShapeType'](_0x1c673d);}[_0x2e73d4(0x22a)](_0x5599f6,_0x5377ad,_0x5a38c2){const _0x4fa210=_0x2e73d4;return this['_ensureShapeModelManager'](_0x5599f6,_0x5377ad)[_0x4fa210(0x22a)](_0x5a38c2);}['hasShape'](_0x3d67ab,_0x176693,_0x384a3a){return this['_ensureShapeModelManager'](_0x3d67ab,_0x176693)['hasShape'](_0x384a3a);}[_0x2e73d4(0x224)](_0x3740e8,_0x3d362d,_0x349936){const _0x43a69d=_0x2e73d4;return this['_ensureShapeModelManager'](_0x3740e8,_0x3d362d)[_0x43a69d(0x22a)](_0x349936);}[_0x2e73d4(0x1f6)](_0x45d585,_0x3445f9,_0x5826f9){const _0x3d9b8c=_0x2e73d4,_0x3514c1=this['_ensureShapeModelManager'](_0x45d585,_0x3445f9);if(!_0x3514c1[_0x3d9b8c(0x22a)](_0x5826f9))return;const _0x5a9121=_0x3514c1[_0x3d9b8c(0x22e)][_0x3d9b8c(0x229)](_0x5826f9);if(_0x5a9121)return _0x5a9121[_0x3d9b8c(0x20f)]();}[_0x2e73d4(0x21e)](_0x116b3d,_0x5dc818,_0x1a793e){const _0x1770d2=_0x2e73d4;return this[_0x1770d2(0x219)](_0x116b3d,_0x5dc818)[_0x1770d2(0x22e)][_0x1770d2(0x229)](_0x1a793e);}[_0x2e73d4(0x250)](_0x2c4092,_0x4c2d29,_0x5c2a0d){const _0x5ad79a=_0x2e73d4;return this[_0x5ad79a(0x219)](_0x2c4092,_0x4c2d29)[_0x5ad79a(0x250)](_0x5c2a0d);}['getLineShapeRelation'](_0xb475a3,_0x27e7a7,_0x29f0c3){const _0x553d29=_0x2e73d4,_0x32f263=this[_0x553d29(0x219)](_0xb475a3,_0x27e7a7)[_0x553d29(0x22e)]['get'](_0x29f0c3);if(_0x32f263)return _0x32f263[_0x553d29(0x201)]();}['setShapeType'](){}['_serializeShapeForUnit'](_0x42c4e6){const _0x2b6aec=_0x2e73d4,_0x1c566e={},_0x41bc2d=this[_0x2b6aec(0x21b)][_0x2b6aec(0x229)](_0x42c4e6);return _0x41bc2d&&_0x41bc2d[_0x2b6aec(0x24e)]((_0xd16015,_0x2b7a12)=>{const _0x25153d=_0x2b6aec,_0x455ad5=_0xd16015[_0x25153d(0x24f)]();_0x455ad5[_0x25153d(0x244)]>0x0&&(_0x1c566e[_0x2b7a12]=_0x455ad5);}),JSON[_0x2b6aec(0x234)](_0x1c566e);}['_deserializeShapeForUnit'](_0x2f880a,_0x1aa254){const _0x30da8e=_0x2e73d4;Object['keys'](_0x1aa254)[_0x30da8e(0x24e)](_0x2dfc29=>{const _0x3b77d1=_0x30da8e;this[_0x3b77d1(0x219)](_0x2f880a,_0x2dfc29)[_0x3b77d1(0x258)](_0x1aa254[_0x2dfc29]);});}[_0x2e73d4(0x24f)](){const _0x1cb3d1=_0x2e73d4,_0x455402={};return this[_0x1cb3d1(0x21b)][_0x1cb3d1(0x24e)]((_0x173294,_0x20cffc)=>{const _0x3ac61f=_0x1cb3d1;_0x455402[_0x20cffc]={},_0x173294[_0x3ac61f(0x24e)]((_0x29af85,_0x5a4ea1)=>{const _0x13aec7=_0x3ac61f;_0x455402[_0x20cffc][_0x5a4ea1]=_0x29af85[_0x13aec7(0x24f)]();});}),_0x455402;}[_0x2e73d4(0x258)](_0x44e25a){const _0x3f1bbd=_0x2e73d4;Object[_0x3f1bbd(0x220)](_0x44e25a)[_0x3f1bbd(0x24e)](_0x4661ac=>{const _0xd6d5b8=_0x3f1bbd,_0x510149=_0x44e25a[_0x4661ac];Object[_0xd6d5b8(0x220)](_0x510149)[_0xd6d5b8(0x24e)](_0x5bd484=>{const _0x17fd59=_0xd6d5b8;this[_0x17fd59(0x219)](_0x4661ac,_0x5bd484)[_0x17fd59(0x258)](_0x510149[_0x5bd484]);});});}['_initSnapshot'](){const _0x3180fa=_0x2e73d4;this['_resourcesManagerService'][_0x3180fa(0x22d)]({'pluginName':_0x14fc02,'businesses':[_0x4bc444['UniverInstanceType'][_0x3180fa(0x227)]],'toJson':_0x3c97a3=>this[_0x3180fa(0x230)](_0x3c97a3),'parseJson':_0x2e2116=>JSON[_0x3180fa(0x1ff)](_0x2e2116),'onLoad':(_0x4f7bdc,_0x22f5f3)=>{const _0x106b21=_0x3180fa;this[_0x106b21(0x251)](_0x4f7bdc,_0x22f5f3);},'onUnLoad':_0x19222b=>{const _0x484a92=_0x3180fa,_0x230fb3=this[_0x484a92(0x21b)]['get'](_0x19222b);_0x230fb3&&(_0x230fb3['forEach'](_0x37db0e=>{const _0x47a9a0=_0x484a92;_0x37db0e[_0x47a9a0(0x1f9)]();}),this['_shapeModelManagerMap'][_0x484a92(0x247)](_0x19222b));}});}['dispose'](){const _0x3c5e58=_0x2e73d4;this[_0x3c5e58(0x21b)][_0x3c5e58(0x24e)](_0x5cec76=>{const _0x4fd454=_0x3c5e58;_0x5cec76[_0x4fd454(0x24e)](_0x440ca8=>{const _0x26328b=_0x4fd454;_0x440ca8[_0x26328b(0x1f9)]();});});}},_0x7e63bb['SheetsShapeService']=_0x24f2f4([_0x51b95c(0x0,_0x4bc444[_0x2e73d4(0x21d)])],_0x7e63bb[_0x2e73d4(0x205)]);const _0x58a784={'id':_0x2e73d4(0x226),'type':_0x4bc444[_0x2e73d4(0x257)]['MUTATION'],'handler':(_0x2a17d7,_0x5dd055)=>{const _0x377190=_0x2e73d4,{unitId:_0x2b2be2,subUnitId:_0x400009,shapeType:_0x46533e,shapeId:_0x3a1121,shapeData:_0x412deb}=_0x5dd055,_0x312a91=_0x2a17d7[_0x377190(0x229)](_0x7e63bb[_0x377190(0x205)])['getShapeModel'](_0x2b2be2,_0x400009,_0x3a1121);return _0x312a91&&(_0x312a91['setShapeType'](_0x46533e),_0x412deb&&(_0x312a91==null||_0x312a91[_0x377190(0x23f)](_0x412deb))),!0x0;}},_0x3f2453={'id':_0x2e73d4(0x1f4),'type':_0x4bc444['CommandType'][_0x2e73d4(0x246)],'handler':(_0x5e4adc,_0x183cc2)=>{const _0x3d9902=_0x2e73d4;if(!_0x183cc2)return!0x1;const _0x16054e=_0x5e4adc['get'](_0x4bc444[_0x3d9902(0x259)]),_0x314a15=_0x5e4adc['get'](_0x7e63bb[_0x3d9902(0x205)]),_0x17a99c=_0x5e4adc[_0x3d9902(0x229)](_0x4bc444[_0x3d9902(0x242)]),_0x294c25=[],_0x47a63e=[],{unitId:_0x505287,subUnitId:_0x5c4edd,shapeId:_0x1b4ae0,shapeType:_0x57a8a4,shapeData:_0x26acbb}=_0x183cc2,_0x368987=_0x314a15[_0x3d9902(0x21e)](_0x505287,_0x5c4edd,_0x1b4ae0);if(_0x368987){const _0x45bee8=_0x368987[_0x3d9902(0x22a)](),_0xb2e1bf=Object['assign']({},_0x368987[_0x3d9902(0x20f)]()),_0x30fa2d={'unitId':_0x505287,'subUnitId':_0x5c4edd,'shapeId':_0x1b4ae0,'shapeType':_0x57a8a4,'shapeData':_0x26acbb},_0x18144e={'unitId':_0x505287,'subUnitId':_0x5c4edd,'shapeId':_0x1b4ae0,'shapeType':_0x45bee8,'shapeData':_0xb2e1bf};return _0x294c25['push']({'id':_0x58a784['id'],'params':_0x30fa2d}),_0x47a63e[_0x3d9902(0x1f7)]({'id':_0x58a784['id'],'params':_0x18144e}),_0x294c25[_0x3d9902(0x24b)](_0x1aa22f=>_0x16054e[_0x3d9902(0x235)](_0x1aa22f['id'],_0x1aa22f[_0x3d9902(0x245)]))&&_0x17a99c['pushUndoRedo']({'unitID':_0x505287,'redoMutations':[..._0x294c25],'undoMutations':[..._0x47a63e]}),!0x0;}return!0x1;}},_0x38ca88={'id':_0x2e73d4(0x236),'type':_0x4bc444[_0x2e73d4(0x257)][_0x2e73d4(0x23b)],'handler':(_0xd75e3a,_0x380e1e)=>{const _0x1d8e49=_0x2e73d4,{unitId:_0x4fc45d,subUnitId:_0x2fd2db,shapeType:_0xfb1b8c,shapeId:_0xa62d41,shapeData:_0x458642}=_0x380e1e;return _0xd75e3a[_0x1d8e49(0x229)](_0x7e63bb[_0x1d8e49(0x205)])['insertShape'](_0x4fc45d,_0x2fd2db,_0xfb1b8c,_0xa62d41,_0x458642),!0x0;}},_0x4c7393={'id':'sheet.mutation.remove-shape','type':_0x4bc444[_0x2e73d4(0x257)][_0x2e73d4(0x23b)],'handler':(_0x2b1e57,_0x412ce7)=>{const _0x24575c=_0x2e73d4,{unitId:_0x4508e5,subUnitId:_0x4ac58e,shapeId:_0x419bd3}=_0x412ce7;return _0x2b1e57[_0x24575c(0x229)](_0x7e63bb['SheetsShapeService'])[_0x24575c(0x24d)](_0x4508e5,_0x4ac58e,_0x419bd3),!0x0;}},_0x2f2a9a={'id':'sheet.mutation.update-shape-data','type':_0x4bc444[_0x2e73d4(0x257)][_0x2e73d4(0x23b)],'handler':(_0x2eee09,_0x3b9fc0)=>{const _0x43d56a=_0x2e73d4,{unitId:_0x69a6fa,subUnitId:_0x47a311,shapeType:_0x1a2f36,shapeId:_0x4ec13c,shapeData:_0x1b2eaa}=_0x3b9fc0,_0x82b9ae=_0x2eee09[_0x43d56a(0x229)](_0x7e63bb[_0x43d56a(0x205)])[_0x43d56a(0x21e)](_0x69a6fa,_0x47a311,_0x4ec13c);return _0x82b9ae&&(_0x1a2f36!==void 0x0&&_0x82b9ae[_0x43d56a(0x214)](_0x1a2f36),_0x1b2eaa&&(_0x82b9ae==null||_0x82b9ae[_0x43d56a(0x23f)](_0x1b2eaa,!0x0))),!0x0;}},_0x3b1ec6={'name':_0x2e73d4(0x25c),'version':_0x2e73d4(0x241)},_0x5e2ec5=_0x2e73d4(0x20c),_0x43b191={};var _0x7f33eb=Object[_0x2e73d4(0x200)],_0x1d2b9c=Object['getOwnPropertyDescriptor'],_0x9708ee=(_0x4325f1,_0x3dcd0d,_0x7cb181)=>_0x3dcd0d in _0x4325f1?_0x7f33eb(_0x4325f1,_0x3dcd0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7cb181}):_0x4325f1[_0x3dcd0d]=_0x7cb181,_0x45eb28=(_0x38c1bf,_0x211082,_0x2e9262,_0x19ed31)=>{const _0x297c4f=_0x2e73d4;for(var _0x3c7949=_0x19ed31>0x1?void 0x0:_0x19ed31?_0x1d2b9c(_0x211082,_0x2e9262):_0x211082,_0x33b9fb=_0x38c1bf[_0x297c4f(0x244)]-0x1,_0x53cc3b;_0x33b9fb>=0x0;_0x33b9fb--)(_0x53cc3b=_0x38c1bf[_0x33b9fb])&&(_0x3c7949=_0x53cc3b(_0x3c7949)||_0x3c7949);return _0x3c7949;},_0x16177d=(_0x349dfb,_0x4797eb)=>(_0x414028,_0x4e9562)=>_0x4797eb(_0x414028,_0x4e9562,_0x349dfb),_0x5bd3bc=(_0x306cb1,_0x377541,_0x24f59e)=>_0x9708ee(_0x306cb1,typeof _0x377541!=_0x2e73d4(0x22b)?_0x377541+'':_0x377541,_0x24f59e);_0x7e63bb[_0x2e73d4(0x222)]=class extends _0x4bc444[_0x2e73d4(0x232)]{constructor(_0x3befee=_0x43b191,_0x329039,_0x2d1745,_0x53ea61){const _0x247742=_0x2e73d4;super(),this[_0x247742(0x24c)]=_0x3befee,this[_0x247742(0x1fd)]=_0x329039,this['_commandService']=_0x2d1745,this[_0x247742(0x212)]=_0x53ea61;const {..._0x3df20f}=_0x4bc444[_0x247742(0x221)]({},_0x43b191,this[_0x247742(0x24c)]);this[_0x247742(0x212)]['setConfig'](_0x5e2ec5,_0x3df20f),this[_0x247742(0x213)]();}[_0x2e73d4(0x223)](){_0x4bc444['touchDependencies'](this['_injector'],[]);}[_0x2e73d4(0x1fa)](){const _0x571ee8=_0x2e73d4,_0x25bd16=this['_injector'];[[_0x488540],[_0x7e63bb[_0x571ee8(0x205)]]][_0x571ee8(0x24e)](_0x23dd45=>_0x25bd16[_0x571ee8(0x22c)](_0x23dd45));}[_0x2e73d4(0x213)](){const _0x120cb0=_0x2e73d4;[_0x38ca88,_0x4c7393,_0x58a784,_0x2f2a9a][_0x120cb0(0x24e)](_0x5c0dbb=>this[_0x120cb0(0x23a)](this[_0x120cb0(0x249)][_0x120cb0(0x21a)](_0x5c0dbb)));}},_0x5bd3bc(_0x7e63bb[_0x2e73d4(0x222)],_0x2e73d4(0x1f8),_0x4bc444[_0x2e73d4(0x218)][_0x2e73d4(0x227)]),_0x5bd3bc(_0x7e63bb[_0x2e73d4(0x222)],_0x2e73d4(0x1fc),_0x2e73d4(0x209)),_0x5bd3bc(_0x7e63bb['UniverSheetsShapePlugin'],_0x2e73d4(0x252),_0x3b1ec6[_0x2e73d4(0x240)]),_0x5bd3bc(_0x7e63bb[_0x2e73d4(0x222)],_0x2e73d4(0x25a),_0x3b1ec6[_0x2e73d4(0x25a)]),_0x7e63bb[_0x2e73d4(0x222)]=_0x45eb28([_0x4bc444[_0x2e73d4(0x1f5)](_0x34050b[_0x2e73d4(0x208)]),_0x16177d(0x1,_0x4bc444[_0x2e73d4(0x215)](_0x4bc444['Injector'])),_0x16177d(0x2,_0x4bc444[_0x2e73d4(0x259)]),_0x16177d(0x3,_0x4bc444[_0x2e73d4(0x239)])],_0x7e63bb['UniverSheetsShapePlugin']),_0x7e63bb[_0x2e73d4(0x25d)]=_0x38ca88,_0x7e63bb[_0x2e73d4(0x20b)]=_0x4c7393,_0x7e63bb['UpdateSheetsShapeDataMutation']=_0x2f2a9a,_0x7e63bb[_0x2e73d4(0x204)]=_0x3f2453,_0x7e63bb[_0x2e73d4(0x1fe)]=_0x58a784,Object[_0x2e73d4(0x200)](_0x7e63bb,Symbol[_0x2e73d4(0x216)],{'value':'Module'});}));function _0x1e52(){const _0x457096=['sheet.mutation.update-shape-type','UNIVER_SHEET','@univerjs-pro/engine-shape','get','getShapeType','symbol','add','registerPluginResource','_shapes','2504ewUodP','_serializeShapeForUnit','1872615rLhGuw','Plugin','UniverProEngineShape','stringify','syncExecuteCommand','sheet.mutation.insert-shape','30553exUalJ','object','IConfigService','disposeWithMe','MUTATION','ShapeModel','55881zBIDbq','getLineShapeRelation','setShapeData','name','0.17.0','IUndoRedoService','shapeId','length','params','COMMAND','delete','613242TWHtSR','_commandService','amd','every','_config','removeShape','forEach','toJSON','getBasicShapeRelation','_deserializeShapeForUnit','packageName','has','insertShape','9239472wSxtDr','getBasicShapeType','CommandType','fromJSON','ICommandService','version','clear','@univerjs-pro/sheets-shape','InsertSheetsShapeMutation','UniverCore','function','sheet.command.update-shape-type','DependentOn','getShapeDataById','push','type','dispose','onStarting','_disposed','pluginName','_injector','UpdateSheetsShapeTypeMutation','parse','defineProperty','getShapeRelation','26524230ITQHIS','from','UpdateSheetsShapeTypeCommand','SheetsShapeService','isConnectorShape','hasShape','UniverLicensePlugin','SHEET_SHAPE_PLUGIN','4925dYDPjO','RemoveSheetsShapeMutation','sheets-shape.config','getOwnPropertyDescriptor','Disposable','getShapeData','_linesIds','7652hUDxGw','_configService','_initCommands','setShapeType','Inject','toStringTag','@univerjs-pro/license','UniverInstanceType','_ensureShapeModelManager','registerCommand','_shapeModelManagerMap','42CpTgJU','IResourceManagerService','getShapeModel','UniverProSheetsShape','keys','merge','UniverSheetsShapePlugin','onRendered','getShapeTypeById','_groupIds'];_0x1e52=function(){return _0x457096;};return _0x1e52();}
1
+ function _0x5e8c(_0x5d60e9,_0xffff3a){_0x5d60e9=_0x5d60e9-0xdc;const _0x3978e6=_0x3978();let _0x5e8c54=_0x3978e6[_0x5d60e9];return _0x5e8c54;}(function(_0x297022,_0x4461fd){const _0x2535dc=_0x5e8c,_0x17e89a=_0x297022();while(!![]){try{const _0x4c27bc=parseInt(_0x2535dc(0x113))/0x1+parseInt(_0x2535dc(0xe7))/0x2*(-parseInt(_0x2535dc(0xfe))/0x3)+parseInt(_0x2535dc(0x129))/0x4*(-parseInt(_0x2535dc(0xfb))/0x5)+-parseInt(_0x2535dc(0x14b))/0x6+parseInt(_0x2535dc(0xe0))/0x7+parseInt(_0x2535dc(0x10e))/0x8+-parseInt(_0x2535dc(0xe9))/0x9*(-parseInt(_0x2535dc(0x130))/0xa);if(_0x4c27bc===_0x4461fd)break;else _0x17e89a['push'](_0x17e89a['shift']());}catch(_0x3fe3ec){_0x17e89a['push'](_0x17e89a['shift']());}}}(_0x3978,0x848bb),function(_0xfe0b42,_0x1fc073){const _0x181a26=_0x5e8c;typeof exports==_0x181a26(0xee)&&typeof module<'u'?_0x1fc073(exports,require(`@univerjs/core`),require(`@univerjs-pro/engine-shape`),require(`@univerjs-pro/license`)):typeof define==_0x181a26(0x10a)&&define[_0x181a26(0x109)]?define([_0x181a26(0xed),_0x181a26(0x12d),'@univerjs-pro/engine-shape',_0x181a26(0xea)],_0x1fc073):(_0xfe0b42=typeof globalThis<'u'?globalThis:_0xfe0b42||self,_0x1fc073(_0xfe0b42[_0x181a26(0xde)]={},_0xfe0b42[_0x181a26(0x124)],_0xfe0b42[_0x181a26(0xe6)],_0xfe0b42[_0x181a26(0x10f)]));}(this,function(_0x5e5c0a,_0x37b558,_0x48a564,_0x49af03){const _0xbbce31=_0x5e8c;Object['defineProperty'](_0x5e5c0a,Symbol[_0xbbce31(0xf9)],{'value':_0xbbce31(0x135)});function _0x5b8e99(_0x5d0e21){'@babel/helpers - typeof';const _0x47dd74=_0xbbce31;return _0x5b8e99=typeof Symbol==_0x47dd74(0x10a)&&typeof Symbol['iterator']==_0x47dd74(0x110)?function(_0x4653c3){return typeof _0x4653c3;}:function(_0x4d473d){const _0x2fd83f=_0x47dd74;return _0x4d473d&&typeof Symbol==_0x2fd83f(0x10a)&&_0x4d473d[_0x2fd83f(0x147)]===Symbol&&_0x4d473d!==Symbol[_0x2fd83f(0xfa)]?'symbol':typeof _0x4d473d;},_0x5b8e99(_0x5d0e21);}function _0x164506(_0x1db673,_0x1057ad){const _0x11f5be=_0xbbce31;if(_0x5b8e99(_0x1db673)!=_0x11f5be(0xee)||!_0x1db673)return _0x1db673;var _0x24d2bf=_0x1db673[Symbol[_0x11f5be(0xfc)]];if(_0x24d2bf!==void 0x0){var _0x5bdef9=_0x24d2bf['call'](_0x1db673,_0x1057ad||'default');if(_0x5b8e99(_0x5bdef9)!=_0x11f5be(0xee))return _0x5bdef9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1057ad==='string'?String:Number)(_0x1db673);}function _0x5f0f83(_0xcae56c){const _0x106465=_0xbbce31;var _0x36032b=_0x164506(_0xcae56c,_0x106465(0x11d));return _0x5b8e99(_0x36032b)==_0x106465(0x110)?_0x36032b:_0x36032b+'';}function _0x5a6df2(_0x200464,_0x5211e8,_0x5f0ba9){return(_0x5211e8=_0x5f0f83(_0x5211e8))in _0x200464?Object['defineProperty'](_0x200464,_0x5211e8,{'value':_0x5f0ba9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x200464[_0x5211e8]=_0x5f0ba9,_0x200464;}var _0x2a5374=class extends _0x37b558[_0xbbce31(0x145)]{constructor(){const _0x4f3770=_0xbbce31;super(),_0x5a6df2(this,_0x4f3770(0x138),new Map()),_0x5a6df2(this,_0x4f3770(0x144),new Set()),_0x5a6df2(this,_0x4f3770(0x125),new Set());}[_0xbbce31(0x128)](_0x1e63e8,_0x57e821,_0x54a226){const _0x396bc5=_0xbbce31;let _0x4f22f7=new _0x48a564[(_0x396bc5(0x126))](_0x1e63e8,_0x57e821,_0x54a226);return this[_0x396bc5(0x138)][_0x396bc5(0x10b)](_0x57e821,_0x4f22f7),(0x0,_0x48a564[_0x396bc5(0x11e)])(_0x1e63e8)&&this['_linesIds'][_0x396bc5(0xf4)](_0x57e821),_0x4f22f7;}[_0xbbce31(0xdc)](_0x34c8d0){const _0x469690=_0xbbce31;let _0x3fcf75=[];for(let _0x4d959f of this[_0x469690(0x144)]){let _0x4ee29d=this['_shapes'][_0x469690(0x117)](_0x4d959f);if(_0x4ee29d){let _0x23edcf=_0x4ee29d[_0x469690(0xf7)]();if(_0x23edcf){var _0x3e6cdb,_0x3cd349;((_0x3e6cdb=_0x23edcf[_0x469690(0x136)])==null?void 0x0:_0x3e6cdb['shapeId'])===_0x34c8d0&&_0x3fcf75['push']({..._0x23edcf[_0x469690(0x136)],'lineShapeId':_0x4d959f,'isFrom':!0x0}),((_0x3cd349=_0x23edcf['to'])==null?void 0x0:_0x3cd349[_0x469690(0x13a)])===_0x34c8d0&&_0x3fcf75[_0x469690(0x119)]({..._0x23edcf['to'],'lineShapeId':_0x4d959f,'isFrom':!0x1});}}}return _0x3fcf75;}['getLineShapeRelation'](_0x160aad){const _0xfb2ec2=_0xbbce31;let _0x2fe88a=this[_0xfb2ec2(0x138)][_0xfb2ec2(0x117)](_0x160aad);if(_0x2fe88a)return _0x2fe88a[_0xfb2ec2(0xf7)]();}[_0xbbce31(0xf1)](_0x17f7c9){const _0x1018be=_0xbbce31;let _0x22f482=this[_0x1018be(0x138)][_0x1018be(0x117)](_0x17f7c9);if(_0x22f482)return _0x22f482['getShapeType']();}[_0xbbce31(0x137)](_0x2bf084){const _0x15ffab=_0xbbce31;return this[_0x15ffab(0x138)]['has'](_0x2bf084);}[_0xbbce31(0x132)](_0x401bfe){const _0x20182c=_0xbbce31;let _0x164c37=this[_0x20182c(0x138)]['get'](_0x401bfe);_0x164c37&&((0x0,_0x48a564[_0x20182c(0x11e)])(_0x164c37[_0x20182c(0xf1)]())&&this['_linesIds'][_0x20182c(0x13c)](_0x401bfe),this[_0x20182c(0x138)][_0x20182c(0x13c)](_0x401bfe));}[_0xbbce31(0xdf)](){const _0x41567e=_0xbbce31;let _0x374ac0=[];return this[_0x41567e(0x138)][_0x41567e(0x12c)](_0x5a4428=>{const _0x457365=_0x41567e;_0x374ac0[_0x457365(0x119)](_0x5a4428[_0x457365(0xdf)]());}),_0x374ac0;}['fromJSON'](_0x11d8dd){const _0x4be3eb=_0xbbce31;for(let _0x4e7495 of _0x11d8dd){let {id:_0x4796b6,shapeType:_0x40f697}=_0x4e7495,_0x569679=this[_0x4be3eb(0x128)](_0x40f697,_0x4796b6,_0x4e7495[_0x4be3eb(0x11f)]);_0x569679&&_0x569679[_0x4be3eb(0x123)]()&&this[_0x4be3eb(0x144)][_0x4be3eb(0xf4)](_0x4796b6);}}[_0xbbce31(0x11c)](){const _0x5a26f8=_0xbbce31;this[_0x5a26f8(0x134)]||(this[_0x5a26f8(0x138)][_0x5a26f8(0x12c)](_0xae3683=>{const _0x961d49=_0x5a26f8;_0xae3683[_0x961d49(0x11c)]();}),this[_0x5a26f8(0x138)]['clear'](),this[_0x5a26f8(0x144)][_0x5a26f8(0x108)](),this[_0x5a26f8(0x125)][_0x5a26f8(0x108)](),super[_0x5a26f8(0x11c)]());}};function _0xc45525(_0x330876,_0xf530e2){return function(_0x13ae30,_0x4a023e){_0xf530e2(_0x13ae30,_0x4a023e,_0x330876);};}function _0x33509a(_0xc30a7c,_0x57c0d8,_0x537e3d,_0x2a1538){const _0x2fe06d=_0xbbce31;var _0x19d315=arguments[_0x2fe06d(0xf3)],_0x1a95b2=_0x19d315<0x3?_0x57c0d8:_0x2a1538===null?_0x2a1538=Object[_0x2fe06d(0xe1)](_0x57c0d8,_0x537e3d):_0x2a1538,_0x3e7e8a;if(typeof Reflect==_0x2fe06d(0xee)&&typeof Reflect[_0x2fe06d(0x142)]==_0x2fe06d(0x10a))_0x1a95b2=Reflect[_0x2fe06d(0x142)](_0xc30a7c,_0x57c0d8,_0x537e3d,_0x2a1538);else{for(var _0x2f8008=_0xc30a7c[_0x2fe06d(0xf3)]-0x1;_0x2f8008>=0x0;_0x2f8008--)(_0x3e7e8a=_0xc30a7c[_0x2f8008])&&(_0x1a95b2=(_0x19d315<0x3?_0x3e7e8a(_0x1a95b2):_0x19d315>0x3?_0x3e7e8a(_0x57c0d8,_0x537e3d,_0x1a95b2):_0x3e7e8a(_0x57c0d8,_0x537e3d))||_0x1a95b2);}return _0x19d315>0x3&&_0x1a95b2&&Object[_0x2fe06d(0x121)](_0x57c0d8,_0x537e3d,_0x1a95b2),_0x1a95b2;}let _0x4ab80e=class extends _0x37b558[_0xbbce31(0x145)]{constructor(_0x4fcc4b){const _0x138a62=_0xbbce31;super(),this['_resourcesManagerService']=_0x4fcc4b,_0x5a6df2(this,_0x138a62(0xe4),new Map()),this['_initSnapshot']();}[_0xbbce31(0xec)](_0x47e997,_0x16ef23){const _0x5c4bbd=_0xbbce31;let _0x59d981=this['_shapeModelManagerMap'][_0x5c4bbd(0x117)](_0x47e997);_0x59d981||(_0x59d981=new Map(),this[_0x5c4bbd(0xe4)][_0x5c4bbd(0x10b)](_0x47e997,_0x59d981));let _0x3d9bc6=_0x59d981[_0x5c4bbd(0x117)](_0x16ef23);return _0x3d9bc6||(_0x3d9bc6=new _0x2a5374(),_0x59d981[_0x5c4bbd(0x10b)](_0x16ef23,_0x3d9bc6)),_0x3d9bc6;}[_0xbbce31(0x115)](_0x3daa44,_0x1b1df7,_0x171973,_0x1657f3,_0x5de5fc){const _0x11a71f=_0xbbce31;this['_ensureShapeModelManager'](_0x3daa44,_0x1b1df7)[_0x11a71f(0x128)](_0x171973,_0x1657f3,_0x5de5fc);}['removeShape'](_0x246253,_0x12f3b4,_0x3572c4){const _0x241694=_0xbbce31;this['_ensureShapeModelManager'](_0x246253,_0x12f3b4)[_0x241694(0x132)](_0x3572c4);}[_0xbbce31(0xf0)](_0x5ac4cd,_0x34a6a4,_0x2cf37a){const _0x33c676=_0xbbce31;return this[_0x33c676(0xec)](_0x5ac4cd,_0x34a6a4)[_0x33c676(0xf1)](_0x2cf37a);}[_0xbbce31(0xf1)](_0x1c7c84,_0x31143c,_0x52acc2){return this['_ensureShapeModelManager'](_0x1c7c84,_0x31143c)['getShapeType'](_0x52acc2);}['hasShape'](_0x2d998b,_0xb36deb,_0x566db6){const _0x33b218=_0xbbce31;return this['_ensureShapeModelManager'](_0x2d998b,_0xb36deb)[_0x33b218(0x137)](_0x566db6);}[_0xbbce31(0x114)](_0x36f072,_0x59fbd1,_0x5a2f4f){const _0x4e9441=_0xbbce31;return this[_0x4e9441(0xec)](_0x36f072,_0x59fbd1)['getShapeType'](_0x5a2f4f);}['getShapeDataById'](_0x55d9a2,_0xbce681,_0x7c499c){const _0x31f3aa=_0xbbce31;let _0x3d00aa=this['_ensureShapeModelManager'](_0x55d9a2,_0xbce681);if(!_0x3d00aa[_0x31f3aa(0xf1)](_0x7c499c))return;let _0x45d312=_0x3d00aa['_shapes'][_0x31f3aa(0x117)](_0x7c499c);if(_0x45d312)return _0x45d312['getShapeData']();}[_0xbbce31(0x13f)](_0x1a4ddb,_0x223b98,_0x3ac52e){const _0x10bb24=_0xbbce31;return this[_0x10bb24(0xec)](_0x1a4ddb,_0x223b98)['_shapes']['get'](_0x3ac52e);}[_0xbbce31(0xdc)](_0x233ca3,_0x375fb5,_0x105164){const _0x4ce257=_0xbbce31;return this['_ensureShapeModelManager'](_0x233ca3,_0x375fb5)[_0x4ce257(0xdc)](_0x105164);}[_0xbbce31(0x127)](_0x47394f,_0x46c6dd,_0x57787e){const _0x5c46b5=_0xbbce31;let _0x5d4c56=this[_0x5c46b5(0xec)](_0x47394f,_0x46c6dd)[_0x5c46b5(0x138)][_0x5c46b5(0x117)](_0x57787e);if(_0x5d4c56)return _0x5d4c56[_0x5c46b5(0xf7)]();}[_0xbbce31(0x141)](){}[_0xbbce31(0xe5)](_0x38ddd6){const _0xa4009e=_0xbbce31;let _0x339134={},_0x50b0ec=this['_shapeModelManagerMap'][_0xa4009e(0x117)](_0x38ddd6);return _0x50b0ec&&_0x50b0ec[_0xa4009e(0x12c)]((_0xa47181,_0x519d34)=>{const _0x167c1a=_0xa4009e;let _0x1d4c73=_0xa47181[_0x167c1a(0xdf)]();_0x1d4c73['length']>0x0&&(_0x339134[_0x519d34]=_0x1d4c73);}),JSON[_0xa4009e(0x133)](_0x339134);}[_0xbbce31(0x112)](_0x30cc2d,_0x501f59){const _0x190903=_0xbbce31;Object[_0x190903(0x104)](_0x501f59)[_0x190903(0x12c)](_0xf9b1cd=>{const _0x235084=_0x190903;this['_ensureShapeModelManager'](_0x30cc2d,_0xf9b1cd)[_0x235084(0x120)](_0x501f59[_0xf9b1cd]);});}[_0xbbce31(0xdf)](){const _0x477cc4=_0xbbce31;let _0x4889c6={};return this[_0x477cc4(0xe4)][_0x477cc4(0x12c)]((_0x2886da,_0x32da8b)=>{const _0x372251=_0x477cc4;_0x4889c6[_0x32da8b]={},_0x2886da[_0x372251(0x12c)]((_0x247493,_0x480e8c)=>{_0x4889c6[_0x32da8b][_0x480e8c]=_0x247493['toJSON']();});}),_0x4889c6;}[_0xbbce31(0x120)](_0x263d44){const _0x46f0d5=_0xbbce31;Object[_0x46f0d5(0x104)](_0x263d44)[_0x46f0d5(0x12c)](_0x27c3ec=>{const _0x22f8bb=_0x46f0d5;let _0x4d5a01=_0x263d44[_0x27c3ec];Object['keys'](_0x4d5a01)[_0x22f8bb(0x12c)](_0x259392=>{const _0x40a08b=_0x22f8bb;this[_0x40a08b(0xec)](_0x27c3ec,_0x259392)[_0x40a08b(0x120)](_0x4d5a01[_0x259392]);});});}[_0xbbce31(0x116)](){const _0x10bb69=_0xbbce31;this['_resourcesManagerService'][_0x10bb69(0xe2)]({'pluginName':_0x10bb69(0xeb),'businesses':[_0x37b558[_0x10bb69(0xff)][_0x10bb69(0xf6)]],'toJson':_0xa73d8b=>this['_serializeShapeForUnit'](_0xa73d8b),'parseJson':_0x475f5d=>JSON[_0x10bb69(0xf2)](_0x475f5d),'onLoad':(_0x48f030,_0x560282)=>{this['_deserializeShapeForUnit'](_0x48f030,_0x560282);},'onUnLoad':_0x3e7d56=>{const _0x2824ae=_0x10bb69;let _0x4f9f99=this[_0x2824ae(0xe4)][_0x2824ae(0x117)](_0x3e7d56);_0x4f9f99&&(_0x4f9f99[_0x2824ae(0x12c)](_0x5cf918=>{const _0x4822df=_0x2824ae;_0x5cf918[_0x4822df(0x11c)]();}),this[_0x2824ae(0xe4)][_0x2824ae(0x13c)](_0x3e7d56));}});}[_0xbbce31(0x11c)](){const _0xc80dfb=_0xbbce31;this[_0xc80dfb(0xe4)][_0xc80dfb(0x12c)](_0x35fa97=>{_0x35fa97['forEach'](_0x180ea4=>{_0x180ea4['dispose']();});});}};_0x4ab80e=_0x33509a([_0xc45525(0x0,_0x37b558[_0xbbce31(0x12f)])],_0x4ab80e);let _0x28fc81={'id':_0xbbce31(0xe8),'type':_0x37b558['CommandType'][_0xbbce31(0x143)],'handler':(_0x5eed81,_0x44c47f)=>{const _0x1a546b=_0xbbce31;let {unitId:_0x1368f7,subUnitId:_0x8dfc55,shapeType:_0x3ad11c,shapeId:_0x19999c,shapeData:_0x4d6627}=_0x44c47f,_0x42586d=_0x5eed81[_0x1a546b(0x117)](_0x4ab80e)[_0x1a546b(0x13f)](_0x1368f7,_0x8dfc55,_0x19999c);return _0x42586d&&(_0x42586d['setShapeType'](_0x3ad11c),_0x4d6627&&(_0x42586d==null||_0x42586d[_0x1a546b(0x13d)](_0x4d6627))),!0x0;}},_0x1a2cc6={'id':'sheet.command.update-shape-type','type':_0x37b558[_0xbbce31(0x12a)][_0xbbce31(0xfd)],'handler':(_0x533bdb,_0x5cbd7f)=>{const _0x494cc6=_0xbbce31;if(!_0x5cbd7f)return!0x1;let _0x20c175=_0x533bdb[_0x494cc6(0x117)](_0x37b558[_0x494cc6(0x103)]),_0x4583dc=_0x533bdb[_0x494cc6(0x117)](_0x4ab80e),_0x1e82f4=_0x533bdb[_0x494cc6(0x117)](_0x37b558[_0x494cc6(0xef)]),_0x592d5a=[],_0x28808b=[],{unitId:_0x3bb13f,subUnitId:_0x4a31e,shapeId:_0x3f9f07,shapeType:_0x408392,shapeData:_0x947a7}=_0x5cbd7f,_0x334b24=_0x4583dc[_0x494cc6(0x13f)](_0x3bb13f,_0x4a31e,_0x3f9f07);if(_0x334b24){let _0x3211d0=_0x334b24['getShapeType'](),_0x5072d2=Object[_0x494cc6(0x122)]({},_0x334b24['getShapeData']()),_0x57f0e4={'unitId':_0x3bb13f,'subUnitId':_0x4a31e,'shapeId':_0x3f9f07,'shapeType':_0x408392,'shapeData':_0x947a7},_0x4b7cbf={'unitId':_0x3bb13f,'subUnitId':_0x4a31e,'shapeId':_0x3f9f07,'shapeType':_0x3211d0,'shapeData':_0x5072d2};return _0x592d5a[_0x494cc6(0x119)]({'id':_0x28fc81['id'],'params':_0x57f0e4}),_0x28808b[_0x494cc6(0x119)]({'id':_0x28fc81['id'],'params':_0x4b7cbf}),_0x592d5a['every'](_0x46c798=>_0x20c175[_0x494cc6(0x10d)](_0x46c798['id'],_0x46c798[_0x494cc6(0x105)]))&&_0x1e82f4[_0x494cc6(0x12b)]({'unitID':_0x3bb13f,'redoMutations':[..._0x592d5a],'undoMutations':[..._0x28808b]}),!0x0;}return!0x1;}},_0x9faca={'id':_0xbbce31(0x102),'type':_0x37b558[_0xbbce31(0x12a)]['MUTATION'],'handler':(_0x3af426,_0x371893)=>{const _0x59c32b=_0xbbce31;let {unitId:_0x169cf4,subUnitId:_0x1c8492,shapeType:_0x218f88,shapeId:_0x348f85,shapeData:_0x465169}=_0x371893;return _0x3af426['get'](_0x4ab80e)[_0x59c32b(0x115)](_0x169cf4,_0x1c8492,_0x218f88,_0x348f85,_0x465169),!0x0;}},_0x2551b3={'id':_0xbbce31(0x140),'type':_0x37b558['CommandType']['MUTATION'],'handler':(_0x1cc573,_0x3d271b)=>{const _0x4de5c5=_0xbbce31;let {unitId:_0x4ed918,subUnitId:_0x24bb71,shapeId:_0x47440d}=_0x3d271b;return _0x1cc573['get'](_0x4ab80e)[_0x4de5c5(0x132)](_0x4ed918,_0x24bb71,_0x47440d),!0x0;}},_0x3685dc={'id':_0xbbce31(0xf5),'type':_0x37b558['CommandType']['MUTATION'],'handler':(_0x539078,_0x3e32bd)=>{const _0x10a7a6=_0xbbce31;let {unitId:_0x4cb9cb,subUnitId:_0x53a5b4,shapeType:_0x1e749f,shapeId:_0x507ef2,shapeData:_0xb115d8}=_0x3e32bd,_0x44c120=_0x539078[_0x10a7a6(0x117)](_0x4ab80e)[_0x10a7a6(0x13f)](_0x4cb9cb,_0x53a5b4,_0x507ef2);return _0x44c120&&(_0x1e749f!==void 0x0&&_0x44c120[_0x10a7a6(0x141)](_0x1e749f),_0xb115d8&&(_0x44c120==null||_0x44c120['setShapeData'](_0xb115d8,!0x0))),!0x0;}};var _0x205843='@univerjs-pro/sheets-shape',_0x520494='0.18.0-insiders.20260328-d26c36e';let _0x22764b=_0xbbce31(0x13b);Symbol(_0x22764b);let _0x4f9c10={},_0x473675=class extends _0x37b558['Plugin']{constructor(_0x13e37e=_0x4f9c10,_0x352410,_0x5d43a9,_0x53e825){const _0x5840a9=_0xbbce31;super(),this[_0x5840a9(0xdd)]=_0x13e37e,this[_0x5840a9(0x100)]=_0x352410,this['_commandService']=_0x5d43a9,this[_0x5840a9(0x149)]=_0x53e825;let {..._0x79f351}=(0x0,_0x37b558[_0x5840a9(0x148)])({},_0x4f9c10,this[_0x5840a9(0xdd)]);this[_0x5840a9(0x149)]['setConfig'](_0x22764b,_0x79f351),this[_0x5840a9(0xf8)]();}[_0xbbce31(0x12e)](){const _0x551203=_0xbbce31;(0x0,_0x37b558['touchDependencies'])(this[_0x551203(0x100)],[]);}[_0xbbce31(0x14c)](){const _0xbd4e7b=_0xbbce31;let _0x59b1c9=this['_injector'];[[_0x2a5374],[_0x4ab80e]][_0xbd4e7b(0x12c)](_0x473df1=>_0x59b1c9[_0xbd4e7b(0xf4)](_0x473df1));}['_initCommands'](){const _0x3d1601=_0xbbce31;[_0x9faca,_0x2551b3,_0x28fc81,_0x3685dc][_0x3d1601(0x12c)](_0x2eb3a8=>this[_0x3d1601(0xe3)](this[_0x3d1601(0x139)][_0x3d1601(0x106)](_0x2eb3a8)));}};_0x5a6df2(_0x473675,_0xbbce31(0x10c),_0x37b558[_0xbbce31(0xff)]['UNIVER_SHEET']),_0x5a6df2(_0x473675,_0xbbce31(0x131),'SHEET_SHAPE_PLUGIN'),_0x5a6df2(_0x473675,'packageName',_0x205843),_0x5a6df2(_0x473675,_0xbbce31(0x118),_0x520494),_0x473675=_0x33509a([(0x0,_0x37b558['DependentOn'])(_0x49af03[_0xbbce31(0x11a)]),_0xc45525(0x1,(0x0,_0x37b558['Inject'])(_0x37b558[_0xbbce31(0x14a)])),_0xc45525(0x2,_0x37b558[_0xbbce31(0x103)]),_0xc45525(0x3,_0x37b558['IConfigService'])],_0x473675),_0x5e5c0a[_0xbbce31(0x11b)]=_0x9faca,_0x5e5c0a['RemoveSheetsShapeMutation']=_0x2551b3,Object['defineProperty'](_0x5e5c0a,_0xbbce31(0x101),{'enumerable':!0x0,'get':function(){return _0x4ab80e;}}),Object['defineProperty'](_0x5e5c0a,_0xbbce31(0x13e),{'enumerable':!0x0,'get':function(){return _0x473675;}}),_0x5e5c0a[_0xbbce31(0x107)]=_0x3685dc,_0x5e5c0a[_0xbbce31(0x146)]=_0x1a2cc6,_0x5e5c0a[_0xbbce31(0x111)]=_0x28fc81;}));function _0x3978(){const _0x4036de=['1395uCmSOI','toPrimitive','COMMAND','231eiALWF','UniverInstanceType','_injector','SheetsShapeService','sheet.mutation.insert-shape','ICommandService','keys','params','registerCommand','UpdateSheetsShapeDataMutation','clear','amd','function','set','type','syncExecuteCommand','3069584zxOkbq','UniverProLicense','symbol','UpdateSheetsShapeTypeMutation','_deserializeShapeForUnit','238063lKcFdt','getShapeTypeById','insertShape','_initSnapshot','get','version','push','UniverLicensePlugin','InsertSheetsShapeMutation','dispose','string','isConnectorShape','shapeData','fromJSON','defineProperty','assign','isLineShape','UniverCore','_groupIds','ShapeModel','getLineShapeRelation','addShape','5804hDvDou','CommandType','pushUndoRedo','forEach','@univerjs/core','onRendered','IResourceManagerService','10BTvrhQ','pluginName','removeShape','stringify','_disposed','Module','from','hasShape','_shapes','_commandService','shapeId','sheets-shape.config','delete','setShapeData','UniverSheetsShapePlugin','getShapeModel','sheet.mutation.remove-shape','setShapeType','decorate','MUTATION','_linesIds','Disposable','UpdateSheetsShapeTypeCommand','constructor','merge','_configService','Injector','4408392MvOSLp','onStarting','getBasicShapeRelation','_config','UniverProSheetsShape','toJSON','7302680ooJfTe','getOwnPropertyDescriptor','registerPluginResource','disposeWithMe','_shapeModelManagerMap','_serializeShapeForUnit','UniverProEngineShape','12622nsoWNF','sheet.mutation.update-shape-type','4530726euLNAm','@univerjs-pro/license','SHEET_SHAPE_PLUGIN','_ensureShapeModelManager','exports','object','IUndoRedoService','getBasicShapeType','getShapeType','parse','length','add','sheet.mutation.update-shape-data','UNIVER_SHEET','getShapeRelation','_initCommands','toStringTag','prototype'];_0x3978=function(){return _0x4036de;};return _0x3978();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "0.17.0",
3
+ "version": "0.18.0-insiders.20260328-d26c36e",
4
4
  "private": false,
5
5
  "description": "shape for Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -38,7 +38,6 @@
38
38
  "./lib/*": "./lib/*"
39
39
  },
40
40
  "main": "./lib/es/index.js",
41
- "module": "./lib/es/index.js",
42
41
  "types": "./lib/types/index.d.ts",
43
42
  "publishConfig": {
44
43
  "access": "public"
@@ -53,27 +52,25 @@
53
52
  "node": ">=16.0.0",
54
53
  "npm": ">=8.0.0"
55
54
  },
56
- "peerDependencies": {
57
- "rxjs": ">=7.0.0"
58
- },
59
55
  "dependencies": {
60
- "@univerjs-pro/engine-shape": "0.17.0",
61
- "@univerjs/core": "0.17.0",
62
- "@univerjs-pro/license": "0.17.0"
56
+ "@univerjs-pro/engine-shape": "0.18.0-insiders.20260328-d26c36e",
57
+ "@univerjs-pro/license": "0.18.0-insiders.20260328-d26c36e",
58
+ "@univerjs/core": "0.18.0-insiders.20260328-d26c36e"
63
59
  },
64
60
  "devDependencies": {
65
- "rxjs": "7.8.2",
66
- "typescript": "^5.9.3",
67
- "vite": "^7.3.1",
68
- "vitest": "^4.0.18",
69
- "@univerjs-infra/shared": "0.17.0",
70
- "@univerjs/sheets": "0.17.0"
61
+ "typescript": "^6.0.2",
62
+ "vitest": "^4.1.1",
63
+ "@univerjs-infra/shared": "0.18.0",
64
+ "@univerjs/sheets": "0.18.0-insiders.20260328-d26c36e"
71
65
  },
72
66
  "scripts": {
73
67
  "test": "vitest run",
74
68
  "test:watch": "vitest",
75
69
  "coverage": "vitest run --coverage",
76
70
  "typecheck": "tsc --noEmit",
77
- "build": "univer-cli build"
78
- }
71
+ "build:bundle": "univer-cli build",
72
+ "build:types": "tsc -p tsconfig.node.json",
73
+ "build": "pnpm run build:bundle && pnpm run build:types"
74
+ },
75
+ "module": "./lib/es/index.js"
79
76
  }