@univerjs-pro/sheets-shape 0.19.0 → 0.20.0

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.
@@ -0,0 +1,232 @@
1
+ import type { IShapeBuilderInfo } from './f-shape';
2
+ import { FWorksheet } from '@univerjs/sheets/facade';
3
+ import { FConnectorShape } from './f-connector-shape';
4
+ import { FShape } from './f-shape';
5
+ /**
6
+ * Parameters for connecting shapes via a connector.
7
+ */
8
+ export interface IConnectShapesParams {
9
+ /** The connector/line shape to update. */
10
+ connector: FShape;
11
+ /** Optional start target. If provided, connects the connector's start to this shape's connection site. */
12
+ startTarget?: {
13
+ shape: FShape;
14
+ connectionSiteIndex: number;
15
+ };
16
+ /** Optional end target. If provided, connects the connector's end to this shape's connection site. */
17
+ endTarget?: {
18
+ shape: FShape;
19
+ connectionSiteIndex: number;
20
+ };
21
+ }
22
+ /**
23
+ * @ignore
24
+ */
25
+ export interface IFWorksheetShapeMixin {
26
+ /**
27
+ * Adds a new shape to this sheet.
28
+ * @param {IShapeBuilderInfo} shapeBuilderInfo - The shape builder info returned by `FShape.build()`.
29
+ * @returns {Promise<boolean>} - Whether the shape was inserted successfully.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const fWorkbook = univerAPI.getActiveWorkbook();
34
+ * const fWorksheet = fWorkbook.getActiveSheet();
35
+ *
36
+ * // Create a rectangle shape at cell B2.
37
+ * const shapeInfo = fWorksheet.newShape()
38
+ * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
39
+ * .setPosition(1, 1, 0, 0)
40
+ * .setWidth(200)
41
+ * .setHeight(200)
42
+ * .setStrokeColor('#000000')
43
+ * .build();
44
+ * await fWorksheet.insertShape(shapeInfo);
45
+ * ```
46
+ */
47
+ insertShape(shapeBuilderInfo: IShapeBuilderInfo): Promise<boolean>;
48
+ /**
49
+ * Updates an existing shape on this sheet.
50
+ * @param {IShapeBuilderInfo} shapeBuilderInfo - The shape builder info returned by `FShape.build()`.
51
+ * @returns {Promise<boolean>} - Whether the shape was updated successfully.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * const fWorkbook = univerAPI.getActiveWorkbook();
56
+ * const fWorksheet = fWorkbook.getActiveSheet();
57
+ *
58
+ * // Create a rectangle shape at cell B2.
59
+ * const shapeInfo = fWorksheet.newShape()
60
+ * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
61
+ * .setPosition(1, 1, 0, 0)
62
+ * .build();
63
+ * await fWorksheet.insertShape(shapeInfo);
64
+ *
65
+ * // Get all shapes on the active sheet.
66
+ * const shapes = fWorksheet.getShapes();
67
+ *
68
+ * // Update the first shape after 3 seconds.
69
+ * setTimeout(async () => {
70
+ * const newShapeInfo = fWorksheet.newShape(shapes[0])
71
+ * .setStrokeColor('#ff0000')
72
+ * .setStrokeWidth(3)
73
+ * .build();
74
+ * await fWorksheet.updateShape(newShapeInfo);
75
+ * }, 3000);
76
+ * ```
77
+ */
78
+ updateShape(shapeBuilderInfo: IShapeBuilderInfo): Promise<boolean>;
79
+ /**
80
+ * Returns a builder to create a new shape for this sheet. The builder will not automatically create the shape.
81
+ * You must call `build()` on the returned builder to get the shape info, then insert it via `insertShape(shapeInfo)`.
82
+ * @description If an existing FShape is provided, the builder will be initialized with that shape's current properties (id, type, position, size) for updating.
83
+ * @param {FShape} [existingShape] An existing shape to initialize the builder with for updating.
84
+ * @returns {FShape} - A new shape builder.
85
+ *
86
+ * @example
87
+ * ```ts
88
+ * const fWorkbook = univerAPI.getActiveWorkbook();
89
+ * const fWorksheet = fWorkbook.getActiveSheet();
90
+ *
91
+ * // Create a rectangle shape at cell B2 with 200x200 size.
92
+ * const shapeInfo = fWorksheet.newShape()
93
+ * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
94
+ * .setPosition(1, 1, 0, 0)
95
+ * .setWidth(200)
96
+ * .setHeight(200)
97
+ * .build();
98
+ * await fWorksheet.insertShape(shapeInfo);
99
+ * ```
100
+ */
101
+ newShape(existingShape?: FShape): FShape;
102
+ /**
103
+ * Returns an array of shapes on this sheet.
104
+ * @returns {FShape[]} - An array of shapes on this sheet.
105
+ *
106
+ * @example
107
+ * ```ts
108
+ * const fWorkbook = univerAPI.getActiveWorkbook();
109
+ * const fWorksheet = fWorkbook.getActiveSheet();
110
+ *
111
+ * // Get all shapes on the active sheet.
112
+ * const shapes = fWorksheet.getShapes();
113
+ * console.log(shapes);
114
+ * ```
115
+ */
116
+ getShapes(): FShape[];
117
+ /**
118
+ * Removes a shape from this sheet.
119
+ * @param {FShape} shape - The shape to remove.
120
+ * @returns {Promise<boolean>} - Whether the shape was removed successfully.
121
+ *
122
+ * @example
123
+ * ```ts
124
+ * const fWorkbook = univerAPI.getActiveWorkbook();
125
+ * const fWorksheet = fWorkbook.getActiveSheet();
126
+ *
127
+ * // Create a rectangle shape.
128
+ * const shapeInfo = fWorksheet.newShape()
129
+ * .setShapeType(univerAPI.Enum.ShapeTypeEnum.Rect)
130
+ * .setPosition(1, 1, 0, 0)
131
+ * .build();
132
+ * await fWorksheet.insertShape(shapeInfo);
133
+ *
134
+ * // Get all shapes on the active sheet.
135
+ * const shapes = fWorksheet.getShapes();
136
+ *
137
+ * // Remove the first shape after 3 seconds.
138
+ * setTimeout(async () => {
139
+ * await fWorksheet.removeShape(shapes[0]);
140
+ * console.log(fWorksheet.getShapes());
141
+ * }, 3000);
142
+ * ```
143
+ */
144
+ removeShape(shape: FShape): Promise<boolean>;
145
+ /**
146
+ * Connects a connector (line) shape's endpoints to basic shapes' connection sites.
147
+ * At least one of `startTarget` or `endTarget` must be provided. If an endpoint is not provided,
148
+ * its existing connection (if any) is preserved, or it remains as a free point.
149
+ *
150
+ * This method requires the sheet to be active (has a render context).
151
+ *
152
+ * @param {IConnectShapesParams} params - Parameters specifying the connector and target shapes.
153
+ * @returns {Promise<boolean>} - Whether the connection was established successfully.
154
+ *
155
+ * @example
156
+ * ```ts
157
+ * const fWorkbook = univerAPI.getActiveWorkbook();
158
+ * const fWorksheet = fWorkbook.getActiveSheet();
159
+ *
160
+ * // Get all shapes on the sheet.
161
+ * const shapes = fWorksheet.getShapes();
162
+ * const basicShapes = shapes.filter((s) => !s.isLineShape());
163
+ * const connectors = shapes.filter((s) => s.isLineShape());
164
+ *
165
+ * if (connectors.length > 0 && basicShapes.length >= 2) {
166
+ * // Connect the first connector's start to the first basic shape's cxn site 0,
167
+ * // and the end to the second basic shape's cxn site 2.
168
+ * await fWorksheet.connectShapes({
169
+ * connector: connectors[0],
170
+ * startTarget: { shape: basicShapes[0], connectionSiteIndex: 0 },
171
+ * endTarget: { shape: basicShapes[1], connectionSiteIndex: 2 },
172
+ * });
173
+ * }
174
+ * ```
175
+ */
176
+ connectShapes(params: IConnectShapesParams): Promise<boolean>;
177
+ /**
178
+ * Returns a builder to create a new connector (line) shape for this sheet. The builder will not automatically create the connector.
179
+ * You must call `build()` on the returned builder to get the shape info, then insert it via `insertShape(shapeInfo)`.
180
+ * @description If an existing FShape is provided, the builder will be initialized with that shape's current properties (id, type, position, size) for updating.
181
+ * @param {FShape} [existingShape] An existing connector shape to initialize the builder with for updating.
182
+ * @returns {FConnectorShape} - A new connector shape builder.
183
+ *
184
+ * @example
185
+ * ```ts
186
+ * const fWorkbook = univerAPI.getActiveWorkbook();
187
+ * const fWorksheet = fWorkbook.getActiveSheet();
188
+ *
189
+ * // Create a straight connector with arrows at cell B2 with 200x100 size.
190
+ * const connectorInfo = fWorksheet.newConnector()
191
+ * .setShapeType(univerAPI.Enum.ShapeTypeEnum.StraightConnector1)
192
+ * .setPosition(1, 1, 0, 0)
193
+ * .setWidth(200)
194
+ * .setHeight(100)
195
+ * .setStartArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
196
+ * .setEndArrowType(univerAPI.Enum.ShapeArrowTypeEnum.Arrow)
197
+ * .setStrokeColor('#000000')
198
+ * .setStrokeWidth(2)
199
+ * .build();
200
+ * await fWorksheet.insertShape(connectorInfo);
201
+ * ```
202
+ */
203
+ newConnector(existingShape?: FShape): FConnectorShape;
204
+ }
205
+ export declare class FWorksheetShapeMixin extends FWorksheet implements IFWorksheetShapeMixin {
206
+ insertShape(shapeBuilderInfo: IShapeBuilderInfo): Promise<boolean>;
207
+ updateShape(shapeBuilderInfo: IShapeBuilderInfo): Promise<boolean>;
208
+ newShape(existingShape?: FShape): FShape;
209
+ newConnector(existingShape?: FShape): FConnectorShape;
210
+ getShapes(): FShape[];
211
+ removeShape(shape: FShape): Promise<boolean>;
212
+ connectShapes(connectParams: IConnectShapesParams): Promise<boolean>;
213
+ /**
214
+ * @ignore
215
+ */
216
+ private _preloadShapeProperties;
217
+ /**
218
+ * @ignore
219
+ */
220
+ private _resolveEndpoints;
221
+ /**
222
+ * @ignore
223
+ */
224
+ private _resolveExistingOrFreeEndpoint;
225
+ }
226
+ /**
227
+ * @ignore
228
+ */
229
+ declare module '@univerjs/sheets/facade' {
230
+ interface FWorksheet extends IFWorksheetShapeMixin {
231
+ }
232
+ }
@@ -0,0 +1,13 @@
1
+ import './f-enum';
2
+ import './f-shape';
3
+ import './f-worksheet';
4
+ export { FConnectorShape } from './f-connector-shape';
5
+ export { FShape } from './f-shape';
6
+ export type * from './f-shape';
7
+ export type * from './f-worksheet';
8
+ declare module '@univerjs-pro/sheets-shape/facade' {
9
+ interface FShape {
10
+ }
11
+ interface IShapeBuildOptions {
12
+ }
13
+ }
@@ -1,12 +1,15 @@
1
- export { UpdateSheetsShapeTypeCommand } from './commands/command/update-shape-type.command';
2
- export type { IUpdateSheetsShapeTypeCommandParams } from './commands/command/update-shape-type.command';
3
- export { InsertSheetsShapeMutation } from './commands/mutation/add-shape.mutation';
4
- export type { IInsertSheetsShapeMutationParams } from './commands/mutation/add-shape.mutation';
5
- export { RemoveSheetsShapeMutation } from './commands/mutation/remove-shape.mutation';
6
- export type { IRemoveSheetsShapeMutationParams } from './commands/mutation/remove-shape.mutation';
7
- export { UpdateSheetsShapeDataMutation } from './commands/mutation/update-shape-data.mutation';
8
- export type { IUpdateSheetsShapeDataMutationParams } from './commands/mutation/update-shape-data.mutation';
9
- export { UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
10
- export type { IUpdateSheetsShapeTypeMutationParams } from './commands/mutation/update-shape-type.mutation';
1
+ export { type IInsertSheetsShapeCommandParams, InsertShapeCommand } from './commands/command/add-shape-command';
2
+ export { type ISetShapeDrawingDataCommandParams, SetShapeDrawingDataCommand } from './commands/command/set-shape-drawing-data-command';
3
+ export { type IUpdateSheetsShapeFlipCommandParams, ToggleSheetsShapeFlipCommand } from './commands/command/set-shape-flip-command';
4
+ export { type IUpdateSheetsShapeRotateCommandParams, SetSheetsShapeRotateCommand } from './commands/command/set-shape-rotate.command';
5
+ export { type IUpdateConnectorRelationCommandParams, UpdateConnectorRelationCommand } from './commands/command/update-connector-relation.command';
6
+ export { type IUpdateSheetsShapeResizeCommandParams, UpdateLineShapeResizeCommand } from './commands/command/update-line-shape-resize.command';
7
+ export { type IUpdateSheetsShapeTypeCommandParams, UpdateSheetsShapeTypeCommand } from './commands/command/update-shape-type.command';
8
+ export { type IInsertSheetsShapeMutationParams, InsertSheetsShapeMutation } from './commands/mutation/add-shape.mutation';
9
+ export { type IRemoveSheetsShapeMutationParams, RemoveSheetsShapeMutation } from './commands/mutation/remove-shape.mutation';
10
+ export { type IUpdateSheetsShapeDataMutationParams, UpdateSheetsShapeDataMutation } from './commands/mutation/update-shape-data.mutation';
11
+ export { type IUpdateSheetsShapeTypeMutationParams, UpdateSheetsShapeTypeMutation } from './commands/mutation/update-shape-type.mutation';
12
+ export { DEFAULT_SHAPE_HEIGHT, DEFAULT_SHAPE_WIDTH } from './common/const';
13
+ export type { IDrawingShapeData, ISheetShapeDrawingParam } from './common/types';
11
14
  export { UniverSheetsShapePlugin } from './plugin';
12
15
  export { SheetsShapeService } from './services/sheet-shape-services';
@@ -10,7 +10,5 @@ export declare class UniverSheetsShapePlugin extends Plugin {
10
10
  static packageName: string;
11
11
  static version: string;
12
12
  constructor(_config: IUniverSheetsShapeConfig | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
13
- onRendered(): void;
14
13
  onStarting(): void;
15
- private _initCommands;
16
14
  }
@@ -0,0 +1 @@
1
+ function _0x4cd5(){const _0x4808d2=['size','stringify','newConnector','drawingType','getConnectorLinePoints','setEndArrowSize','capType','getShapeType','ConnectorCoordinateTransform','getAdjustValueByName','build','ISheetDrawingService','dashType','@univerjs/core','executeCommand','left','@univerjs-pro/engine-shape','isConnectorShape','opacity','@univerjs-pro/sheets-shape','UniverProEngineShape','InsertShapeCommand','colorStops\x20is\x20required\x20and\x20should\x20contain\x20at\x20least\x20one\x20color\x20stop.','getBasicShapeRotateBound','extend','removeShape','subUnitId','adjustValues','Invalid\x20shape\x20type\x20for\x20connector.\x20Received\x20','9864YFSweD','symbol','ShapeLineTypeEnum','SolidFil','DEFAULT_SHAPE_HEIGHT','getDrawingByParam','IDrawingManagerService','sin','setStrokeLineCapType','@univerjs/sheets','keys','ShapeArrowSizeEnum','entries','DrawingTypeEnum','function','345WaWhDD','DRAWING_SHAPE','shapeData','get','907290hMhdZj','lineJoinType','getPosition','getDrawingPoints','color','4hgpZjD','Skeleton\x20for\x20unitId\x20','from','insertShape','iterator','@univerjs/drawing','updateContext','setHeight','worldRect','top','getEndConnectInfo','relation','gradientAngle','ShapeGradientTypeEnum','routeConnectorLineShape','generateRandomId','RemoveSheetDrawingCommand','drawId','exports','_commandService','\x20and\x20subUnitId\x20','getShapeId','endArrow','904746zuTCgk','gradientStops','getShapeData','setStrokeOpacity','getShapeModel','180793NbSnjP','UniverDrawing','setNoneFill','toStringTag','NoFill','fillType','_injector','flipX','712917OsNibh','type','getSize','SheetsShapeService','getDrawingData','fill','computeConnectorRouteLayout','ShapeArrowTypeEnum','FWorksheet','ShapeFillEnum','index','7TdnNbV','getUnitId','300fzuriH','setStrokeLineType','startArrow','toPrimitive','object','unitId','shapeType','setStartArrowSize','ShapeLineJoinEnum','width','_preloadShapeProperties','ShapeLineDashEnum','setWidth','setStrokeColor','setStrokeLineJoinType','newShape','updateShape','ShapeTypeEnum','UniverCore','@univerjs/core/facade','setStrokeWidth','592vPvdZi','ensureSkeleton','shape','776EeuVPz','convertPositionCellToSheetOverGrid','FEnum','getConnectionSiteList','UniverCoreFacade','setShapeGradientFill','push','UniverProSheetsShapeFacade','ShapeLineCapEnum','206855HMtbgf','SetShapeDrawingDataCommand','setShapeType','setAbsolutePosition','UniverSheetsFacade','transform','flipY','shapeId','default','\x20not\x20found','getShapeRelation','getSheetId','lineType','lineStrokeType','getAdjustNames','length','UniverProSheetsShape','Module','gradientType','call','getStartConnectInfo','stroke','setEndArrowType','connectionSiteIndex','SheetSkeletonService','abs','ang','string','GradientFill','getWorkbook','height','_resolveExistingOrFreeEndpoint','find'];_0x4cd5=function(){return _0x4808d2;};return _0x4cd5();}function _0x4431(_0x56d739,_0x4b0578){_0x56d739=_0x56d739-0x1a7;const _0x4cd575=_0x4cd5();let _0x4431de=_0x4cd575[_0x56d739];return _0x4431de;}(function(_0xb56553,_0x31b88d){const _0x3d4747=_0x4431,_0x58962e=_0xb56553();while(!![]){try{const _0x535e3e=parseInt(_0x3d4747(0x221))/0x1*(-parseInt(_0x3d4747(0x205))/0x2)+-parseInt(_0x3d4747(0x229))/0x3+parseInt(_0x3d4747(0x24b))/0x4*(-parseInt(_0x3d4747(0x1fc))/0x5)+-parseInt(_0x3d4747(0x21c))/0x6*(-parseInt(_0x3d4747(0x234))/0x7)+-parseInt(_0x3d4747(0x24e))/0x8*(-parseInt(_0x3d4747(0x1ed))/0x9)+parseInt(_0x3d4747(0x200))/0xa+parseInt(_0x3d4747(0x1af))/0xb*(parseInt(_0x3d4747(0x236))/0xc);if(_0x535e3e===_0x31b88d)break;else _0x58962e['push'](_0x58962e['shift']());}catch(_0x3d6faf){_0x58962e['push'](_0x58962e['shift']());}}}(_0x4cd5,0x32e88),function(_0x1cc994,_0x4253b4){const _0x7a470f=_0x4431;typeof exports==_0x7a470f(0x23a)&&typeof module<'u'?_0x4253b4(exports,require(`@univerjs-pro/engine-shape`),require(`@univerjs/core/facade`),require(`@univerjs-pro/sheets-shape`),require(`@univerjs/core`),require(`@univerjs/drawing`),require(`@univerjs/sheets`),require(`@univerjs/sheets-drawing`),require(`@univerjs/sheets/facade`)):typeof define==_0x7a470f(0x1fb)&&define['amd']?define([_0x7a470f(0x217),_0x7a470f(0x1e0),_0x7a470f(0x249),_0x7a470f(0x1e3),_0x7a470f(0x1dd),_0x7a470f(0x20a),_0x7a470f(0x1f6),'@univerjs/sheets-drawing','@univerjs/sheets/facade'],_0x4253b4):(_0x1cc994=typeof globalThis<'u'?globalThis:_0x1cc994||self,_0x4253b4(_0x1cc994[_0x7a470f(0x1ad)]={},_0x1cc994[_0x7a470f(0x1e4)],_0x1cc994[_0x7a470f(0x1aa)],_0x1cc994[_0x7a470f(0x1bf)],_0x1cc994[_0x7a470f(0x248)],_0x1cc994[_0x7a470f(0x222)],_0x1cc994['UniverSheets'],_0x1cc994['UniverSheetsDrawing'],_0x1cc994[_0x7a470f(0x1b3)]));}(this,function(_0x621642,_0x2265f4,_0x1c256a,_0x59ff14,_0x371257,_0x317b2d,_0x1ee79f,_0x306a85,_0x357651){const _0x237298=_0x4431;Object['defineProperty'](_0x621642,Symbol[_0x237298(0x224)],{'value':_0x237298(0x1c0)});var _0x596b17=class extends _0x1c256a['FEnum']{get['ShapeTypeEnum'](){const _0x47e0e5=_0x237298;return _0x2265f4[_0x47e0e5(0x247)];}get['ShapeFillEnum'](){return _0x2265f4['ShapeFillEnum'];}get[_0x237298(0x212)](){return _0x2265f4['ShapeGradientTypeEnum'];}get['ShapeLineTypeEnum'](){const _0x4a3bd2=_0x237298;return _0x2265f4[_0x4a3bd2(0x1ef)];}get[_0x237298(0x241)](){const _0x24bc41=_0x237298;return _0x2265f4[_0x24bc41(0x241)];}get[_0x237298(0x1ae)](){const _0x3dbe23=_0x237298;return _0x2265f4[_0x3dbe23(0x1ae)];}get[_0x237298(0x23e)](){const _0x1135b9=_0x237298;return _0x2265f4[_0x1135b9(0x23e)];}get[_0x237298(0x230)](){return _0x2265f4['ShapeArrowTypeEnum'];}get[_0x237298(0x1f8)](){const _0xa59804=_0x237298;return _0x2265f4[_0xa59804(0x1f8)];}};_0x1c256a[_0x237298(0x1a8)][_0x237298(0x1e8)](_0x596b17);function _0x1f2e74(_0x5d7b9b){'@babel/helpers - typeof';const _0x308acc=_0x237298;return _0x1f2e74=typeof Symbol==_0x308acc(0x1fb)&&typeof Symbol[_0x308acc(0x209)]==_0x308acc(0x1ee)?function(_0x570cb7){return typeof _0x570cb7;}:function(_0x3eed0a){const _0x248667=_0x308acc;return _0x3eed0a&&typeof Symbol==_0x248667(0x1fb)&&_0x3eed0a['constructor']===Symbol&&_0x3eed0a!==Symbol['prototype']?_0x248667(0x1ee):typeof _0x3eed0a;},_0x1f2e74(_0x5d7b9b);}function _0x4d5b55(_0x5e77d9,_0x468533){const _0x7ab628=_0x237298;if(_0x1f2e74(_0x5e77d9)!=_0x7ab628(0x23a)||!_0x5e77d9)return _0x5e77d9;var _0x5b3e86=_0x5e77d9[Symbol[_0x7ab628(0x239)]];if(_0x5b3e86!==void 0x0){var _0x4a23f=_0x5b3e86[_0x7ab628(0x1c2)](_0x5e77d9,_0x468533||_0x7ab628(0x1b7));if(_0x1f2e74(_0x4a23f)!=_0x7ab628(0x23a))return _0x4a23f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x468533===_0x7ab628(0x1ca)?String:Number)(_0x5e77d9);}function _0x420657(_0x4a2fd8){var _0x378e45=_0x4d5b55(_0x4a2fd8,'string');return _0x1f2e74(_0x378e45)=='symbol'?_0x378e45:_0x378e45+'';}function _0x54fc39(_0x221035,_0x327cd6,_0x5e58fa){return(_0x327cd6=_0x420657(_0x327cd6))in _0x221035?Object['defineProperty'](_0x221035,_0x327cd6,{'value':_0x5e58fa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x221035[_0x327cd6]=_0x5e58fa,_0x221035;}var _0x1abdf6=class{constructor(_0x4597e3,_0x31f4d1,_0x30a536,_0x4b8efd){const _0x5e68b7=_0x237298;_0x54fc39(this,_0x5e68b7(0x23b),void 0x0),_0x54fc39(this,_0x5e68b7(0x1ea),void 0x0),_0x54fc39(this,'drawId',void 0x0),_0x54fc39(this,'x',0x0),_0x54fc39(this,'y',0x0),_0x54fc39(this,_0x5e68b7(0x23f),_0x59ff14['DEFAULT_SHAPE_WIDTH']),_0x54fc39(this,_0x5e68b7(0x1cd),_0x59ff14[_0x5e68b7(0x1f1)]),_0x54fc39(this,_0x5e68b7(0x23c),void 0x0),_0x54fc39(this,_0x5e68b7(0x1fe),{}),_0x54fc39(this,_0x5e68b7(0x227),void 0x0),this[_0x5e68b7(0x23b)]=_0x4597e3,this[_0x5e68b7(0x1ea)]=_0x31f4d1,this['drawId']=_0x30a536||(0x0,_0x371257[_0x5e68b7(0x214)])(),this[_0x5e68b7(0x227)]=_0x4b8efd;}['setPosition'](_0x5809c3,_0x425685,_0x56cb35,_0x2dacd4){const _0x51ceac=_0x237298;let _0x35ea0f=this[_0x51ceac(0x227)][_0x51ceac(0x1ff)](_0x1ee79f[_0x51ceac(0x1c7)])[_0x51ceac(0x24c)](this['unitId'],this[_0x51ceac(0x1ea)]);if(!_0x35ea0f)throw Error(_0x51ceac(0x206)+this[_0x51ceac(0x23b)]+_0x51ceac(0x219)+this['subUnitId']+_0x51ceac(0x1b8));let {transform:_0x25fb9a}=(0x0,_0x1ee79f[_0x51ceac(0x1a7)])(this['unitId'],this[_0x51ceac(0x1ea)],{'row':_0x5809c3,'column':_0x425685,'rowOffset':_0x56cb35,'columnOffset':_0x2dacd4},0x1,0x1,_0x35ea0f);return this['x']=_0x25fb9a[_0x51ceac(0x1df)],this['y']=_0x25fb9a[_0x51ceac(0x20e)],this;}[_0x237298(0x1b2)](_0x3e7fbd,_0x5a621c){return this['x']=_0x3e7fbd,this['y']=_0x5a621c,this;}['setShapeType'](_0x156b2d){const _0x246ecb=_0x237298;return this[_0x246ecb(0x23c)]=_0x156b2d,this;}['setShapeSolidFill'](_0x2c1e69,_0x28ebd5){const _0x31bdfe=_0x237298;return this[_0x31bdfe(0x1fe)][_0x31bdfe(0x22e)]||(this[_0x31bdfe(0x1fe)][_0x31bdfe(0x22e)]={}),this['shapeData'][_0x31bdfe(0x22e)][_0x31bdfe(0x226)]=_0x2265f4[_0x31bdfe(0x232)][_0x31bdfe(0x1f0)],_0x2c1e69!==void 0x0&&(this['shapeData'][_0x31bdfe(0x22e)][_0x31bdfe(0x204)]=_0x2c1e69),_0x28ebd5!==void 0x0&&(this[_0x31bdfe(0x1fe)][_0x31bdfe(0x22e)][_0x31bdfe(0x1e2)]=_0x28ebd5),this;}[_0x237298(0x1ab)](_0x4c9fea,_0xf1f7f7,_0x109f3e){const _0x476235=_0x237298;if(_0xf1f7f7===void 0x0||_0xf1f7f7['length']===0x0)throw Error(_0x476235(0x1e6));return this[_0x476235(0x1fe)]['fill']||(this[_0x476235(0x1fe)]['fill']={}),this[_0x476235(0x1fe)][_0x476235(0x22e)][_0x476235(0x21d)]=_0xf1f7f7,this[_0x476235(0x1fe)]['fill'][_0x476235(0x226)]=_0x2265f4[_0x476235(0x232)][_0x476235(0x1cb)],this[_0x476235(0x1fe)][_0x476235(0x22e)][_0x476235(0x1c1)]=_0x4c9fea,_0x109f3e!==void 0x0&&(this[_0x476235(0x1fe)][_0x476235(0x22e)][_0x476235(0x211)]=_0x109f3e),this;}[_0x237298(0x223)](){const _0x4e2452=_0x237298;return this[_0x4e2452(0x1fe)]['fill']={'fillType':_0x2265f4['ShapeFillEnum'][_0x4e2452(0x225)]},this;}[_0x237298(0x243)](_0xfa82cb){const _0x3bc467=_0x237298;return this['shapeData'][_0x3bc467(0x1c4)]||(this[_0x3bc467(0x1fe)][_0x3bc467(0x1c4)]={}),this[_0x3bc467(0x1fe)][_0x3bc467(0x1c4)][_0x3bc467(0x204)]=_0xfa82cb,this;}[_0x237298(0x24a)](_0x4805d7){const _0x466fff=_0x237298;return this[_0x466fff(0x1fe)][_0x466fff(0x1c4)]||(this[_0x466fff(0x1fe)][_0x466fff(0x1c4)]={}),this['shapeData'][_0x466fff(0x1c4)][_0x466fff(0x23f)]=_0x4805d7,this;}['setStrokeLineDashType'](_0x2e6249){const _0x326465=_0x237298;return this[_0x326465(0x1fe)]['stroke']||(this[_0x326465(0x1fe)]['stroke']={}),this[_0x326465(0x1fe)][_0x326465(0x1c4)][_0x326465(0x1dc)]=_0x2e6249,this;}[_0x237298(0x244)](_0x9759ad){const _0x24b14a=_0x237298;return this[_0x24b14a(0x1fe)][_0x24b14a(0x1c4)]||(this[_0x24b14a(0x1fe)][_0x24b14a(0x1c4)]={}),this[_0x24b14a(0x1fe)]['stroke'][_0x24b14a(0x201)]=_0x9759ad,this;}[_0x237298(0x1f5)](_0x559b4f){const _0x5d9de4=_0x237298;return this['shapeData'][_0x5d9de4(0x1c4)]||(this['shapeData'][_0x5d9de4(0x1c4)]={}),this['shapeData'][_0x5d9de4(0x1c4)][_0x5d9de4(0x1d6)]=_0x559b4f,this;}[_0x237298(0x21f)](_0x4b27f5){const _0x26cf1f=_0x237298;return this[_0x26cf1f(0x1fe)][_0x26cf1f(0x1c4)]||(this['shapeData'][_0x26cf1f(0x1c4)]={}),this[_0x26cf1f(0x1fe)][_0x26cf1f(0x1c4)]['opacity']=_0x4b27f5,this;}[_0x237298(0x237)](_0x16d835){const _0xd2bd8a=_0x237298;return this[_0xd2bd8a(0x1fe)]['stroke']||(this[_0xd2bd8a(0x1fe)][_0xd2bd8a(0x1c4)]={}),this[_0xd2bd8a(0x1fe)][_0xd2bd8a(0x1c4)][_0xd2bd8a(0x1bc)]=_0x16d835,this;}[_0x237298(0x242)](_0x4dab31){const _0xa276e7=_0x237298;return this[_0xa276e7(0x23f)]=_0x4dab31,this;}[_0x237298(0x20c)](_0xf477d){const _0x595257=_0x237298;return this[_0x595257(0x1cd)]=_0xf477d,this;}['isLineShape'](){const _0x16baaa=_0x237298;let _0x4f775e=this[_0x16baaa(0x227)][_0x16baaa(0x1ff)](_0x59ff14[_0x16baaa(0x22c)])['getShapeModel'](this['unitId'],this[_0x16baaa(0x1ea)],this[_0x16baaa(0x216)]);return _0x4f775e?(0x0,_0x2265f4[_0x16baaa(0x1e1)])(_0x4f775e[_0x16baaa(0x1d7)]()):this[_0x16baaa(0x23c)]?(0x0,_0x2265f4['isConnectorShape'])(this[_0x16baaa(0x23c)]):!0x1;}['getConnectionSites'](){const _0x4997f1=_0x237298;let _0x520d38=this[_0x4997f1(0x227)]['get'](_0x59ff14[_0x4997f1(0x22c)])[_0x4997f1(0x220)](this[_0x4997f1(0x23b)],this[_0x4997f1(0x1ea)],this[_0x4997f1(0x216)]);if(!_0x520d38)return[];let _0x117f9b=this[_0x4997f1(0x227)][_0x4997f1(0x1ff)](_0x317b2d[_0x4997f1(0x1f3)])[_0x4997f1(0x1f2)]({'unitId':this['unitId'],'subUnitId':this[_0x4997f1(0x1ea)],'drawingId':this['drawId']});if(!(_0x117f9b!=null&&_0x117f9b[_0x4997f1(0x1b4)]))return[];let {width:_0x832145=0x0,height:_0x2b7b73=0x0}=_0x117f9b[_0x4997f1(0x1b4)];return _0x520d38[_0x4997f1(0x20b)]({'width':_0x832145,'height':_0x2b7b73}),_0x520d38[_0x4997f1(0x1a9)]();}['getAdjustPoints'](){const _0x522718=_0x237298;let _0x524ac2=this['_injector']['get'](_0x59ff14['SheetsShapeService'])[_0x522718(0x220)](this['unitId'],this[_0x522718(0x1ea)],this[_0x522718(0x216)]);if(!_0x524ac2)return[];let _0x3d1543=this[_0x522718(0x227)][_0x522718(0x1ff)](_0x317b2d[_0x522718(0x1f3)])['getDrawingByParam']({'unitId':this['unitId'],'subUnitId':this[_0x522718(0x1ea)],'drawingId':this['drawId']});if(!(_0x3d1543!=null&&_0x3d1543[_0x522718(0x1b4)]))return[];let {width:_0x1e332c=0x0,height:_0x124a2b=0x0}=_0x3d1543['transform'];return _0x524ac2[_0x522718(0x20b)]({'width':_0x1e332c,'height':_0x124a2b}),_0x524ac2[_0x522718(0x203)]();}[_0x237298(0x1d4)](){const _0x21a73b=_0x237298;let _0x3a0c7d=this[_0x21a73b(0x227)][_0x21a73b(0x1ff)](_0x59ff14[_0x21a73b(0x22c)])[_0x21a73b(0x220)](this[_0x21a73b(0x23b)],this[_0x21a73b(0x1ea)],this['drawId']);if(!_0x3a0c7d||!(0x0,_0x2265f4[_0x21a73b(0x1e1)])(_0x3a0c7d[_0x21a73b(0x1d7)]()))return[];let _0x4af204=this[_0x21a73b(0x227)][_0x21a73b(0x1ff)](_0x317b2d['IDrawingManagerService'])[_0x21a73b(0x1f2)]({'unitId':this[_0x21a73b(0x23b)],'subUnitId':this[_0x21a73b(0x1ea)],'drawingId':this[_0x21a73b(0x216)]});if(!(_0x4af204!=null&&_0x4af204['transform']))return[];let {width:_0x3f17bc=0x0,height:_0x52e1b8=0x0}=_0x4af204[_0x21a73b(0x1b4)];return _0x3a0c7d[_0x21a73b(0x20b)]({'width':_0x3f17bc,'height':_0x52e1b8}),_0x3a0c7d['getConnectorLinePoints']();}['getStartConnectInfo'](){const _0x1fee07=_0x237298;var _0x9a50d9;let _0x30e7cd=this[_0x1fee07(0x227)][_0x1fee07(0x1ff)](_0x59ff14[_0x1fee07(0x22c)])[_0x1fee07(0x220)](this[_0x1fee07(0x23b)],this['subUnitId'],this[_0x1fee07(0x216)]);return _0x30e7cd?(_0x9a50d9=_0x30e7cd[_0x1fee07(0x1c3)]())==null?null:_0x9a50d9:null;}[_0x237298(0x20f)](){const _0x98faef=_0x237298;var _0x526059;let _0x513870=this[_0x98faef(0x227)][_0x98faef(0x1ff)](_0x59ff14[_0x98faef(0x22c)])[_0x98faef(0x220)](this[_0x98faef(0x23b)],this[_0x98faef(0x1ea)],this['drawId']);return _0x513870?(_0x526059=_0x513870[_0x98faef(0x20f)]())==null?null:_0x526059:null;}[_0x237298(0x1da)](){const _0x51aaac=_0x237298;var _0x357304,_0x1bb195;if(!this['shapeType'])throw Error('Shape\x20type\x20is\x20required.\x20Please\x20call\x20setShapeType()\x20before\x20build().');if(this['x']===0x0||this['y']===0x0){let _0x485d0f=this[_0x51aaac(0x227)][_0x51aaac(0x1ff)](_0x1ee79f['SheetSkeletonService'])[_0x51aaac(0x24c)](this[_0x51aaac(0x23b)],this[_0x51aaac(0x1ea)]);if(!_0x485d0f)throw Error('Skeleton\x20for\x20unitId\x20'+this[_0x51aaac(0x23b)]+_0x51aaac(0x219)+this[_0x51aaac(0x1ea)]+_0x51aaac(0x1b8));let {transform:_0x30a9b5}=(0x0,_0x1ee79f[_0x51aaac(0x1a7)])(this[_0x51aaac(0x23b)],this[_0x51aaac(0x1ea)],{'row':0x1,'column':0x1,'rowOffset':0x0,'columnOffset':0x0},0x1,0x1,_0x485d0f);this['x']=this['x']>0x0?this['x']:_0x30a9b5['left'],this['y']=this['y']>0x0?this['y']:_0x30a9b5['top'];}return this['width']=(_0x357304=this[_0x51aaac(0x23f)])==null?_0x59ff14['DEFAULT_SHAPE_WIDTH']:_0x357304,this[_0x51aaac(0x1cd)]=(_0x1bb195=this[_0x51aaac(0x1cd)])==null?_0x59ff14[_0x51aaac(0x1f1)]:_0x1bb195,{'unitId':this[_0x51aaac(0x23b)],'subUnitId':this[_0x51aaac(0x1ea)],'shapeId':this[_0x51aaac(0x216)],'shapeType':this['shapeType'],'shapeData':Object[_0x51aaac(0x1f7)](this['shapeData'])['length']>0x0?this['shapeData']:void 0x0,'x':this['x'],'y':this['y'],'width':this['width'],'height':this[_0x51aaac(0x1cd)]};}[_0x237298(0x21a)](){const _0x41b0cb=_0x237298;return this[_0x41b0cb(0x216)];}['getShapeType'](){return this['shapeType'];}[_0x237298(0x21e)](){const _0xbdeff2=_0x237298;return this[_0xbdeff2(0x1fe)];}[_0x237298(0x202)](){return{'x':this['x'],'y':this['y']};}[_0x237298(0x22b)](){const _0x54883b=_0x237298;return{'width':this['width'],'height':this[_0x54883b(0x1cd)]};}},_0x36ab6c=class extends _0x1abdf6{constructor(_0x3fbfa9,_0x29d1a7,_0x49aa39,_0x3a836f){const _0x1183a6=_0x237298;super(_0x3fbfa9,_0x29d1a7,_0x49aa39,_0x3a836f),_0x54fc39(this,_0x1183a6(0x1fe),{});}[_0x237298(0x1b1)](_0x1bd48f){const _0x5b7673=_0x237298;if(!(0x0,_0x2265f4[_0x5b7673(0x1e1)])(_0x1bd48f))throw Error(_0x5b7673(0x1ec)+_0x1bd48f+',\x20but\x20expected\x20a\x20connector\x20shape\x20type.');return super['setShapeType'](_0x1bd48f),this;}['setStartArrowType'](_0x3cb1a2){const _0x3de7a9=_0x237298;var _0x528e3a,_0x2350ea;return(_0x528e3a=this['shapeData'])!=null&&_0x528e3a['ln']||(this[_0x3de7a9(0x1fe)]['ln']={}),!((_0x2350ea=this['shapeData'])==null||(_0x2350ea=_0x2350ea['ln'])==null)&&_0x2350ea[_0x3de7a9(0x238)]||(this[_0x3de7a9(0x1fe)]['ln'][_0x3de7a9(0x238)]={}),this['shapeData']['ln'][_0x3de7a9(0x238)][_0x3de7a9(0x22a)]=_0x3cb1a2,this;}[_0x237298(0x1c5)](_0xfcfb81){const _0x1d6be0=_0x237298;var _0x325ec5,_0x3ab085;return(_0x325ec5=this['shapeData'])!=null&&_0x325ec5['ln']||(this['shapeData']['ln']={}),!((_0x3ab085=this[_0x1d6be0(0x1fe)])==null||(_0x3ab085=_0x3ab085['ln'])==null)&&_0x3ab085['endArrow']||(this[_0x1d6be0(0x1fe)]['ln']['endArrow']={}),this[_0x1d6be0(0x1fe)]['ln'][_0x1d6be0(0x21b)][_0x1d6be0(0x22a)]=_0xfcfb81,this;}[_0x237298(0x23d)](_0x43fb86){const _0x2f00aa=_0x237298;var _0x299a48,_0x4a9088;return(_0x299a48=this[_0x2f00aa(0x1fe)])!=null&&_0x299a48['ln']||(this['shapeData']['ln']={}),!((_0x4a9088=this[_0x2f00aa(0x1fe)])==null||(_0x4a9088=_0x4a9088['ln'])==null)&&_0x4a9088[_0x2f00aa(0x238)]||(this['shapeData']['ln'][_0x2f00aa(0x238)]={}),this['shapeData']['ln'][_0x2f00aa(0x238)][_0x2f00aa(0x1d0)]=_0x43fb86,this;}[_0x237298(0x1d5)](_0x180ab9){const _0x4cc9df=_0x237298;var _0x50a1ac,_0x124c99;return(_0x50a1ac=this['shapeData'])!=null&&_0x50a1ac['ln']||(this[_0x4cc9df(0x1fe)]['ln']={}),!((_0x124c99=this[_0x4cc9df(0x1fe)])==null||(_0x124c99=_0x124c99['ln'])==null)&&_0x124c99[_0x4cc9df(0x21b)]||(this['shapeData']['ln'][_0x4cc9df(0x21b)]={}),this['shapeData']['ln'][_0x4cc9df(0x21b)][_0x4cc9df(0x1d0)]=_0x180ab9,this;}[_0x237298(0x1da)](){return super['build']();}[_0x237298(0x20f)](){const _0x46bdfc=_0x237298;var _0xeea8ae;return((_0xeea8ae=this[_0x46bdfc(0x1fe)])==null||(_0xeea8ae=_0xeea8ae[_0x46bdfc(0x210)])==null?void 0x0:_0xeea8ae['to'])||null;}[_0x237298(0x1c3)](){const _0x4351e4=_0x237298;var _0x3044a8;return((_0x3044a8=this[_0x4351e4(0x1fe)])==null||(_0x3044a8=_0x3044a8['relation'])==null?void 0x0:_0x3044a8[_0x4351e4(0x207)])||null;}};function _0xaba89d(_0x4e44d1,_0x1d0b04,_0x55acd4,_0x2326c1,_0x1f1984,_0x345583){const _0x4839e6=_0x237298;let _0x1f0c2e=_0x1f1984[_0x4839e6(0x220)](_0x4e44d1,_0x1d0b04,_0x55acd4);if(!_0x1f0c2e)return null;let _0x18428f=_0x345583[_0x4839e6(0x1f2)]({'unitId':_0x4e44d1,'subUnitId':_0x1d0b04,'drawingId':_0x55acd4});if(!(_0x18428f!=null&&_0x18428f[_0x4839e6(0x1b4)]))return null;let {left:_0x713eab=0x0,top:_0x45a03b=0x0,width:_0x3148c4=0x0,height:_0x582484=0x0,flipX:_0x443a82=!0x1,flipY:_0x3c5370=!0x1,angle:_0x247d7a}=_0x18428f[_0x4839e6(0x1b4)];_0x1f0c2e['updateContext']({'width':_0x3148c4,'height':_0x582484});let _0x5212e0=_0x1f0c2e[_0x4839e6(0x1a9)]()[_0x4839e6(0x1cf)](_0x1c8dd5=>_0x1c8dd5[_0x4839e6(0x233)]===_0x2326c1);if(!_0x5212e0)return null;let _0x3d7156=_0x443a82?_0x3148c4-_0x5212e0['x']:_0x5212e0['x'],_0x5b0877=_0x3c5370?_0x582484-_0x5212e0['y']:_0x5212e0['y'];if(_0x247d7a&&_0x247d7a!==0x0){let _0x3217b0=_0x247d7a*Math['PI']/0xb4,_0x4383d6=Math['cos'](_0x3217b0),_0x566ecf=Math[_0x4839e6(0x1f4)](_0x3217b0),_0x4cd3dd=_0x3148c4/0x2,_0x46f4fb=_0x582484/0x2,_0x34d130=_0x3d7156-_0x4cd3dd,_0x224e47=_0x5b0877-_0x46f4fb;_0x3d7156=_0x4cd3dd+_0x34d130*_0x4383d6-_0x224e47*_0x566ecf,_0x5b0877=_0x46f4fb+_0x34d130*_0x566ecf+_0x224e47*_0x4383d6;}_0x3d7156+=_0x713eab,_0x5b0877+=_0x45a03b;let _0x473c3b=_0x5212e0[_0x4839e6(0x1c9)]/0xea60;_0x443a82&&(_0x473c3b=0xb4-_0x473c3b),_0x3c5370&&(_0x473c3b=-_0x473c3b),_0x473c3b+=_0x247d7a||0x0,_0x473c3b=(_0x473c3b%0x168+0x168)%0x168;let _0x22efd2=(0x0,_0x2265f4[_0x4839e6(0x1e7)])({'left':_0x713eab,'top':_0x45a03b,'width':_0x3148c4,'height':_0x582484},_0x247d7a||0x0);return{'point':{'x':_0x3d7156,'y':_0x5b0877},'angle':_0x473c3b,'bounds':_0x22efd2};}function _0x37ccd8(_0x599e3f,_0x5e8a51){const _0x24dd25=_0x237298;let _0x45a83=_0x5e8a51['x']-_0x599e3f['x'],_0x32c33d=_0x5e8a51['y']-_0x599e3f['y'];return Math[_0x24dd25(0x1c8)](_0x45a83)>=Math[_0x24dd25(0x1c8)](_0x32c33d)?_0x45a83>=0x0?0xb4:0x0:_0x32c33d>=0x0?0x10e:0x5a;}function _0x1aaa7b(_0x3ea03e,_0x2f5ebf,_0x424859,_0x79eb4b,_0x47bf3e,_0x35f406,_0x11966f){const _0x114364=_0x237298;let _0x5ec22e=_0x35f406[_0x114364(0x220)](_0x3ea03e,_0x2f5ebf,_0x424859);if(!_0x5ec22e)return null;let _0x35abe3=_0x11966f['getDrawingByParam']({'unitId':_0x3ea03e,'subUnitId':_0x2f5ebf,'drawingId':_0x424859});if(!(_0x35abe3!=null&&_0x35abe3[_0x114364(0x1b4)]))return null;let {left:_0x23d191=0x0,top:_0x255eaa=0x0,width:_0x4faaae=0x0,height:_0x2ea6a3=0x0,flipX:_0x63fa8a=!0x1,flipY:_0x2cb444=!0x1}=_0x35abe3[_0x114364(0x1b4)];_0x5ec22e[_0x114364(0x20b)]({'width':_0x4faaae,'height':_0x2ea6a3});let _0x545d8f=_0x5ec22e[_0x114364(0x1d4)]();if(_0x545d8f[_0x114364(0x1be)]<0x2)return null;let _0x5356be=_0x79eb4b?_0x545d8f[0x0]:_0x545d8f[_0x545d8f['length']-0x1],_0x25ad4e=new _0x2265f4[(_0x114364(0x1d8))]({'left':_0x23d191,'top':_0x255eaa,'width':_0x4faaae,'height':_0x2ea6a3,'flipX':_0x63fa8a,'flipY':_0x2cb444})['localToWorld'](_0x5356be);return{'point':_0x25ad4e,'angle':_0x37ccd8(_0x47bf3e['point'],_0x25ad4e),'bounds':{'left':_0x25ad4e['x'],'top':_0x25ad4e['y'],'width':0x0,'height':0x0}};}var _0x362f12=class extends _0x357651[_0x237298(0x231)]{async[_0x237298(0x208)](_0x28b4e8){const _0x6ee76b=_0x237298;let {unitId:_0x3dd487,subUnitId:_0x4f8314,shapeId:_0x1165a5,shapeType:_0x4d9f6f,shapeData:_0xc84d64,x:_0x4a175f,y:_0x4f1a70,width:_0x316727,height:_0x521a14}=_0x28b4e8;return this['_commandService'][_0x6ee76b(0x1de)](_0x59ff14[_0x6ee76b(0x1e5)]['id'],{'unitId':_0x3dd487,'subUnitId':_0x4f8314,'shapeId':_0x1165a5,'shapeType':_0x4d9f6f,'shapeData':_0xc84d64,'position':{'x':_0x4a175f,'y':_0x4f1a70},'width':_0x316727,'height':_0x521a14});}async[_0x237298(0x246)](_0xfe5969){const _0x3e8c1d=_0x237298;let {unitId:_0x983cd6,subUnitId:_0xc87cc3,shapeId:_0x43859f,shapeType:_0x152728,shapeData:_0x3ae64c,x:_0xe1bf16,y:_0x2d4ea3,width:_0x5f19b6,height:_0x36fe8d}=_0xfe5969;return this[_0x3e8c1d(0x218)][_0x3e8c1d(0x1de)](_0x59ff14[_0x3e8c1d(0x1b0)]['id'],{'unitId':_0x983cd6,'subUnitId':_0xc87cc3,'shapeId':_0x43859f,'shapeType':_0x152728,'shapeData':_0x3ae64c,'position':{'x':_0xe1bf16,'y':_0x2d4ea3},'width':_0x5f19b6,'height':_0x36fe8d});}[_0x237298(0x245)](_0x27d91b){const _0x3106db=_0x237298;let _0x595cf5=this['getWorkbook']()['getUnitId'](),_0x46eab5=this[_0x3106db(0x1ba)]();if(_0x27d91b){let _0x3df51e=new _0x1abdf6(_0x595cf5,_0x46eab5,_0x27d91b['drawId'],this[_0x3106db(0x227)]);return this['_preloadShapeProperties'](_0x3df51e,_0x595cf5,_0x46eab5,_0x27d91b[_0x3106db(0x216)]),_0x3df51e;}return new _0x1abdf6(_0x595cf5,_0x46eab5,(0x0,_0x371257['generateRandomId'])(),this[_0x3106db(0x227)]);}[_0x237298(0x1d2)](_0x351627){const _0x25e217=_0x237298;let _0x4ffb5b=this[_0x25e217(0x1cc)]()[_0x25e217(0x235)](),_0x13d8c9=this['getSheetId']();if(_0x351627){let _0x107de0=new _0x36ab6c(_0x4ffb5b,_0x13d8c9,_0x351627['drawId'],this[_0x25e217(0x227)]);return this[_0x25e217(0x240)](_0x107de0,_0x4ffb5b,_0x13d8c9,_0x351627[_0x25e217(0x216)]),_0x107de0;}return new _0x36ab6c(_0x4ffb5b,_0x13d8c9,(0x0,_0x371257[_0x25e217(0x214)])(),this[_0x25e217(0x227)]);}['getShapes'](){const _0x62bd01=_0x237298;let _0x118bc1=this[_0x62bd01(0x227)][_0x62bd01(0x1ff)](_0x306a85[_0x62bd01(0x1db)]),_0x16cf56=this[_0x62bd01(0x1cc)]()[_0x62bd01(0x235)](),_0x5d8b20=this[_0x62bd01(0x1ba)](),_0x54af1d=_0x118bc1[_0x62bd01(0x22d)](_0x16cf56,_0x5d8b20);if(!_0x54af1d)return[];let _0xe802c8=[];for(let [_0x426cf2,_0x4133c1]of Object[_0x62bd01(0x1f9)](_0x54af1d))if(_0x4133c1&&_0x4133c1[_0x62bd01(0x1d3)]===_0x371257[_0x62bd01(0x1fa)][_0x62bd01(0x1fd)]){let _0x89a6c0=new _0x1abdf6(_0x16cf56,_0x5d8b20,_0x426cf2,this['_injector']);this['_preloadShapeProperties'](_0x89a6c0,_0x16cf56,_0x5d8b20,_0x426cf2),_0xe802c8[_0x62bd01(0x1ac)](_0x89a6c0);}return _0xe802c8;}[_0x237298(0x1e9)](_0x449076){const _0x1136a6=_0x237298;let {unitId:_0x58ebbd,subUnitId:_0x1ddc26,drawId:_0xb53e4a}=_0x449076;return this[_0x1136a6(0x218)]['executeCommand'](_0x306a85[_0x1136a6(0x215)]['id'],{'unitId':_0x58ebbd,'drawings':[{'unitId':_0x58ebbd,'subUnitId':_0x1ddc26,'drawingId':_0xb53e4a,'drawingType':_0x371257[_0x1136a6(0x1fa)]['DRAWING_SHAPE']}]});}async['connectShapes'](_0x5a016e){const _0x384962=_0x237298;let {connector:_0x250b22,startTarget:_0x136510,endTarget:_0x335555}=_0x5a016e;if(!_0x136510&&!_0x335555)return!0x1;let _0x362870=this[_0x384962(0x1cc)]()['getUnitId'](),_0x40dba9=this['getSheetId'](),_0x20874d=this[_0x384962(0x227)][_0x384962(0x1ff)](_0x59ff14[_0x384962(0x22c)]),_0x1e02bd=this[_0x384962(0x227)][_0x384962(0x1ff)](_0x317b2d['IDrawingManagerService']),_0x488b06=_0x20874d['getShapeModel'](_0x362870,_0x40dba9,_0x250b22[_0x384962(0x216)]);if(!_0x488b06)return!0x1;let _0xa96b4a=_0x488b06['getShapeType'](),_0x249ad7=_0x488b06[_0x384962(0x1b9)](),_0xcd6e7d={};for(let _0xa55bb0 of _0x488b06[_0x384962(0x1bd)]()){let _0x1c1c1f=_0x488b06[_0x384962(0x1d9)](_0xa55bb0);_0x1c1c1f!==void 0x0&&(_0xcd6e7d[_0xa55bb0]=_0x1c1c1f);}let {startInfo:_0x25a29b,endInfo:_0x193d47}=this['_resolveEndpoints'](_0x362870,_0x40dba9,_0x250b22,_0x488b06,_0x136510,_0x335555,_0x20874d,_0x1e02bd,_0x249ad7);if(!_0x25a29b||!_0x193d47)return!0x1;let _0xdd9781=(0x0,_0x2265f4[_0x384962(0x22f)])((0x0,_0x2265f4[_0x384962(0x213)])(_0x25a29b,_0x193d47,_0xa96b4a),_0xa96b4a),_0x40ed99={};return _0x136510?_0x40ed99[_0x384962(0x207)]={'shapeId':_0x136510[_0x384962(0x24d)][_0x384962(0x216)],'cxnIndex':_0x136510[_0x384962(0x1c6)]}:_0x249ad7!=null&&_0x249ad7[_0x384962(0x207)]&&(_0x40ed99[_0x384962(0x207)]=_0x249ad7[_0x384962(0x207)]),_0x335555?_0x40ed99['to']={'shapeId':_0x335555[_0x384962(0x24d)][_0x384962(0x216)],'cxnIndex':_0x335555['connectionSiteIndex']}:_0x249ad7!=null&&_0x249ad7['to']&&(_0x40ed99['to']=_0x249ad7['to']),this[_0x384962(0x218)][_0x384962(0x1de)](_0x59ff14['UpdateConnectorRelationCommand']['id'],{'unitId':_0x362870,'subUnitId':_0x40dba9,'connectorShapeId':_0x250b22[_0x384962(0x216)],'width':_0xdd9781[_0x384962(0x20d)]['width'],'height':_0xdd9781['worldRect'][_0x384962(0x1cd)],'left':_0xdd9781['worldRect'][_0x384962(0x1df)],'top':_0xdd9781[_0x384962(0x20d)][_0x384962(0x20e)],'flipX':_0xdd9781[_0x384962(0x20d)][_0x384962(0x228)]||!0x1,'flipY':_0xdd9781[_0x384962(0x20d)][_0x384962(0x1b5)]||!0x1,'oldAdjustValues':_0xcd6e7d,'newAdjustValues':_0xdd9781[_0x384962(0x1eb)],'newLineType':_0xdd9781[_0x384962(0x1bb)],'oldLineType':_0xa96b4a,'rotation':_0xdd9781['rotation'],'oldRelation':_0x249ad7,'newRelation':_0x40ed99});}[_0x237298(0x240)](_0x17ea61,_0x59b2d9,_0x3c63d9,_0x33630a){const _0x36eff6=_0x237298;let _0x4d6fee=this[_0x36eff6(0x227)][_0x36eff6(0x1ff)](_0x317b2d[_0x36eff6(0x1f3)])[_0x36eff6(0x1f2)]({'unitId':_0x59b2d9,'subUnitId':_0x3c63d9,'drawingId':_0x33630a});if(_0x4d6fee!=null&&_0x4d6fee[_0x36eff6(0x1b4)]){var _0x507e5a,_0x395f61,_0x26f073,_0x5def32;_0x17ea61['x']=(_0x507e5a=_0x4d6fee[_0x36eff6(0x1b4)][_0x36eff6(0x1df)])==null?0x0:_0x507e5a,_0x17ea61['y']=(_0x395f61=_0x4d6fee[_0x36eff6(0x1b4)][_0x36eff6(0x20e)])==null?0x0:_0x395f61,_0x17ea61['width']=(_0x26f073=_0x4d6fee[_0x36eff6(0x1b4)]['width'])==null?_0x17ea61[_0x36eff6(0x23f)]:_0x26f073,_0x17ea61[_0x36eff6(0x1cd)]=(_0x5def32=_0x4d6fee['transform'][_0x36eff6(0x1cd)])==null?_0x17ea61[_0x36eff6(0x1cd)]:_0x5def32;}let _0x5696e0=this['_injector']['get'](_0x59ff14[_0x36eff6(0x22c)])[_0x36eff6(0x220)](_0x59b2d9,_0x3c63d9,_0x33630a);if(_0x5696e0){_0x17ea61[_0x36eff6(0x23c)]=_0x5696e0['getShapeType']();let _0x2f40e0=_0x5696e0[_0x36eff6(0x21e)]();_0x2f40e0&&(_0x17ea61[_0x36eff6(0x1fe)]=JSON['parse'](JSON[_0x36eff6(0x1d1)](_0x2f40e0)));}}['_resolveEndpoints'](_0x43b085,_0x4247bb,_0x18f764,_0x2ee75d,_0x11829a,_0x3c3da2,_0x4f181c,_0x217592,_0x37d4fd){const _0x40b8bd=_0x237298;let _0x3f5627=null,_0x41050e=null;return _0x11829a&&(_0x3f5627=_0xaba89d(_0x43b085,_0x4247bb,_0x11829a['shape'][_0x40b8bd(0x216)],_0x11829a[_0x40b8bd(0x1c6)],_0x4f181c,_0x217592)),_0x3c3da2&&(_0x41050e=_0xaba89d(_0x43b085,_0x4247bb,_0x3c3da2['shape'][_0x40b8bd(0x216)],_0x3c3da2['connectionSiteIndex'],_0x4f181c,_0x217592)),_0x3f5627||(_0x3f5627=this[_0x40b8bd(0x1ce)](_0x43b085,_0x4247bb,_0x18f764['drawId'],!0x0,_0x41050e,_0x37d4fd==null?void 0x0:_0x37d4fd[_0x40b8bd(0x207)],_0x4f181c,_0x217592)),_0x41050e||(_0x41050e=this[_0x40b8bd(0x1ce)](_0x43b085,_0x4247bb,_0x18f764[_0x40b8bd(0x216)],!0x1,_0x3f5627,_0x37d4fd==null?void 0x0:_0x37d4fd['to'],_0x4f181c,_0x217592)),{'startInfo':_0x3f5627,'endInfo':_0x41050e};}[_0x237298(0x1ce)](_0x377926,_0x3958d1,_0x195bf0,_0x3d4176,_0x62f66f,_0x1b1564,_0x4aed31,_0x180e33){const _0x168616=_0x237298;if(_0x1b1564){let _0x14739a=_0xaba89d(_0x377926,_0x3958d1,_0x1b1564[_0x168616(0x1b6)],_0x1b1564['cxnIndex'],_0x4aed31,_0x180e33);if(_0x14739a)return _0x14739a;}return _0x62f66f?_0x1aaa7b(_0x377926,_0x3958d1,_0x195bf0,_0x3d4176,_0x62f66f,_0x4aed31,_0x180e33):null;}};_0x357651[_0x237298(0x231)][_0x237298(0x1e8)](_0x362f12),_0x621642['FConnectorShape']=_0x36ab6c,_0x621642['FShape']=_0x1abdf6;}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x47a8b6,_0x2bd78f){const _0x23f856=_0x6b5e,_0x109e94=_0x47a8b6();while(!![]){try{const _0x27c928=-parseInt(_0x23f856(0xf3))/0x1+parseInt(_0x23f856(0x143))/0x2*(parseInt(_0x23f856(0x126))/0x3)+-parseInt(_0x23f856(0x13e))/0x4+parseInt(_0x23f856(0xfc))/0x5+-parseInt(_0x23f856(0x147))/0x6*(-parseInt(_0x23f856(0xe9))/0x7)+parseInt(_0x23f856(0x13d))/0x8*(-parseInt(_0x23f856(0x14f))/0x9)+parseInt(_0x23f856(0x127))/0xa;if(_0x27c928===_0x2bd78f)break;else _0x109e94['push'](_0x109e94['shift']());}catch(_0x37fdcc){_0x109e94['push'](_0x109e94['shift']());}}}(_0x5e47,0x954bf),function(_0x206fba,_0x503348){const _0xc5c39f=_0x6b5e;typeof exports==_0xc5c39f(0x141)&&typeof module<'u'?_0x503348(exports,require(`@univerjs/core`),require(`@univerjs-pro/engine-shape`),require(`@univerjs-pro/license`)):typeof define==_0xc5c39f(0xee)&&define[_0xc5c39f(0x109)]?define([_0xc5c39f(0x12f),_0xc5c39f(0x118),_0xc5c39f(0x105),'@univerjs-pro/license'],_0x503348):(_0x206fba=typeof globalThis<'u'?globalThis:_0x206fba||self,_0x503348(_0x206fba['UniverProSheetsShape']={},_0x206fba['UniverCore'],_0x206fba[_0xc5c39f(0x11a)],_0x206fba[_0xc5c39f(0x135)]));}(this,function(_0x12e3ef,_0x15b111,_0x432763,_0x32de89){const _0x295366=_0x6b5e;Object[_0x295366(0x132)](_0x12e3ef,Symbol['toStringTag'],{'value':_0x295366(0x12b)});function _0x10cecb(_0x5f74dd){'@babel/helpers - typeof';const _0x40afdb=_0x295366;return _0x10cecb=typeof Symbol=='function'&&typeof Symbol[_0x40afdb(0xe6)]==_0x40afdb(0x114)?function(_0x3d059c){return typeof _0x3d059c;}:function(_0x52d9ce){const _0x32a2a5=_0x40afdb;return _0x52d9ce&&typeof Symbol=='function'&&_0x52d9ce['constructor']===Symbol&&_0x52d9ce!==Symbol[_0x32a2a5(0xeb)]?_0x32a2a5(0x114):typeof _0x52d9ce;},_0x10cecb(_0x5f74dd);}function _0x1146f2(_0x188bd9,_0x46ec72){const _0x40f96f=_0x295366;if(_0x10cecb(_0x188bd9)!=_0x40f96f(0x141)||!_0x188bd9)return _0x188bd9;var _0x4b0dfd=_0x188bd9[Symbol[_0x40f96f(0x121)]];if(_0x4b0dfd!==void 0x0){var _0x8da520=_0x4b0dfd[_0x40f96f(0x13f)](_0x188bd9,_0x46ec72||_0x40f96f(0x133));if(_0x10cecb(_0x8da520)!='object')return _0x8da520;throw TypeError(_0x40f96f(0x103));}return(_0x46ec72==='string'?String:Number)(_0x188bd9);}function _0x3ae964(_0x4385c1){const _0x1e35e6=_0x295366;var _0x3e7fe2=_0x1146f2(_0x4385c1,'string');return _0x10cecb(_0x3e7fe2)==_0x1e35e6(0x114)?_0x3e7fe2:_0x3e7fe2+'';}function _0x529e3d(_0x17b286,_0x5af15d,_0x331aee){const _0x6b88a6=_0x295366;return(_0x5af15d=_0x3ae964(_0x5af15d))in _0x17b286?Object[_0x6b88a6(0x132)](_0x17b286,_0x5af15d,{'value':_0x331aee,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x17b286[_0x5af15d]=_0x331aee,_0x17b286;}var _0x7ea750=class extends _0x15b111[_0x295366(0x12d)]{constructor(){const _0x5b7dc3=_0x295366;super(),_0x529e3d(this,'_shapes',new Map()),_0x529e3d(this,'_linesIds',new Set()),_0x529e3d(this,_0x5b7dc3(0x137),new Set());}[_0x295366(0xfd)](_0x126335,_0x33af9d,_0x265631){const _0x2e701d=_0x295366;let _0x2f7814=new _0x432763[(_0x2e701d(0x10a))](_0x126335,_0x33af9d,_0x265631);return this[_0x2e701d(0x11c)][_0x2e701d(0x117)](_0x33af9d,_0x2f7814),(0x0,_0x432763[_0x2e701d(0xe4)])(_0x126335)&&this['_linesIds']['add'](_0x33af9d),_0x2f7814;}[_0x295366(0x106)](_0xd4426c){const _0x28837d=_0x295366;let _0x1205e1=[];for(let _0x2e18a1 of this[_0x28837d(0xe2)]){let _0x3ce473=this[_0x28837d(0x11c)]['get'](_0x2e18a1);if(_0x3ce473){let _0x44ba7a=_0x3ce473['getShapeRelation']();if(_0x44ba7a){var _0x322891,_0x444f81;((_0x322891=_0x44ba7a[_0x28837d(0x139)])==null?void 0x0:_0x322891[_0x28837d(0x12c)])===_0xd4426c&&_0x1205e1[_0x28837d(0xf9)]({..._0x44ba7a[_0x28837d(0x139)],'lineShapeId':_0x2e18a1,'isFrom':!0x0}),((_0x444f81=_0x44ba7a['to'])==null?void 0x0:_0x444f81[_0x28837d(0x12c)])===_0xd4426c&&_0x1205e1[_0x28837d(0xf9)]({..._0x44ba7a['to'],'lineShapeId':_0x2e18a1,'isFrom':!0x1});}}}return _0x1205e1;}[_0x295366(0x11f)](_0x24bf2d){const _0x512a75=_0x295366;let _0x50597d=this['_shapes'][_0x512a75(0xed)](_0x24bf2d);if(_0x50597d)return _0x50597d[_0x512a75(0x10e)]();}['getShapeType'](_0x5bd397){const _0x2ccd03=_0x295366;let _0x29e72e=this[_0x2ccd03(0x11c)][_0x2ccd03(0xed)](_0x5bd397);if(_0x29e72e)return _0x29e72e[_0x2ccd03(0x122)]();}[_0x295366(0x144)](_0xbb406c){const _0x31e167=_0x295366;return this[_0x31e167(0x11c)][_0x31e167(0x11e)](_0xbb406c);}[_0x295366(0x13c)](_0x272e02){const _0x5e57aa=_0x295366;let _0x3ca8c7=this['_shapes'][_0x5e57aa(0xed)](_0x272e02);_0x3ca8c7&&((0x0,_0x432763[_0x5e57aa(0xe4)])(_0x3ca8c7[_0x5e57aa(0x122)]())&&this[_0x5e57aa(0xe2)][_0x5e57aa(0x111)](_0x272e02),this[_0x5e57aa(0x11c)][_0x5e57aa(0x111)](_0x272e02));}[_0x295366(0x14a)](){const _0x268951=_0x295366;let _0x1a8ddb=[];return this[_0x268951(0x11c)][_0x268951(0xff)](_0x41530d=>{const _0x58e01c=_0x268951;_0x1a8ddb[_0x58e01c(0xf9)](_0x41530d[_0x58e01c(0x14a)]());}),_0x1a8ddb;}[_0x295366(0x131)](_0x5633cc){const _0x347105=_0x295366;for(let _0x480161 of _0x5633cc){let {id:_0x1bc0c8,shapeType:_0x44bcff}=_0x480161,_0x5ddc7f=this[_0x347105(0xfd)](_0x44bcff,_0x1bc0c8,_0x480161[_0x347105(0x138)]);_0x5ddc7f&&_0x5ddc7f[_0x347105(0x136)]()&&this[_0x347105(0xe2)][_0x347105(0x14e)](_0x1bc0c8);}}[_0x295366(0xf1)](){const _0x59a6b7=_0x295366;this[_0x59a6b7(0x145)]||(this[_0x59a6b7(0x11c)][_0x59a6b7(0xff)](_0x162604=>{_0x162604['dispose']();}),this['_shapes']['clear'](),this[_0x59a6b7(0xe2)][_0x59a6b7(0x134)](),this[_0x59a6b7(0x137)][_0x59a6b7(0x134)](),super[_0x59a6b7(0xf1)]());}};function _0x502dc4(_0x19b9d0,_0x235ed8){return function(_0xe41436,_0xb6632a){_0x235ed8(_0xe41436,_0xb6632a,_0x19b9d0);};}function _0x1d63f0(_0x118fac,_0x2d4683,_0x1b5f62,_0x35830e){const _0x59f525=_0x295366;var _0x21303b=arguments[_0x59f525(0xf8)],_0x5b732d=_0x21303b<0x3?_0x2d4683:_0x35830e===null?_0x35830e=Object[_0x59f525(0x151)](_0x2d4683,_0x1b5f62):_0x35830e,_0x4593ed;if(typeof Reflect==_0x59f525(0x141)&&typeof Reflect[_0x59f525(0x128)]==_0x59f525(0xee))_0x5b732d=Reflect[_0x59f525(0x128)](_0x118fac,_0x2d4683,_0x1b5f62,_0x35830e);else{for(var _0x137a3e=_0x118fac['length']-0x1;_0x137a3e>=0x0;_0x137a3e--)(_0x4593ed=_0x118fac[_0x137a3e])&&(_0x5b732d=(_0x21303b<0x3?_0x4593ed(_0x5b732d):_0x21303b>0x3?_0x4593ed(_0x2d4683,_0x1b5f62,_0x5b732d):_0x4593ed(_0x2d4683,_0x1b5f62))||_0x5b732d);}return _0x21303b>0x3&&_0x5b732d&&Object[_0x59f525(0x132)](_0x2d4683,_0x1b5f62,_0x5b732d),_0x5b732d;}let _0x1f085e=class extends _0x15b111[_0x295366(0x12d)]{constructor(_0x7d9bc9){const _0x52b2c2=_0x295366;super(),this[_0x52b2c2(0xef)]=_0x7d9bc9,_0x529e3d(this,'_shapeModelManagerMap',new Map()),this[_0x52b2c2(0x129)]();}[_0x295366(0x130)](_0x440e7c,_0x521c50){const _0x5b9697=_0x295366;let _0x499d25=this[_0x5b9697(0xec)][_0x5b9697(0xed)](_0x440e7c);_0x499d25||(_0x499d25=new Map(),this[_0x5b9697(0xec)][_0x5b9697(0x117)](_0x440e7c,_0x499d25));let _0x39d836=_0x499d25[_0x5b9697(0xed)](_0x521c50);return _0x39d836||(_0x39d836=new _0x7ea750(),_0x499d25['set'](_0x521c50,_0x39d836)),_0x39d836;}['insertShape'](_0x552bca,_0x220d37,_0x1c5387,_0x2dfa0e,_0x458c69){const _0x2e05ca=_0x295366;this['_ensureShapeModelManager'](_0x552bca,_0x220d37)[_0x2e05ca(0xfd)](_0x1c5387,_0x2dfa0e,_0x458c69);}[_0x295366(0x13c)](_0x411e9f,_0x5392fd,_0x2ae26e){const _0x344df5=_0x295366;this['_ensureShapeModelManager'](_0x411e9f,_0x5392fd)[_0x344df5(0x13c)](_0x2ae26e);}[_0x295366(0x13a)](_0x4c25ce,_0x26d8fa,_0x75a0c3){const _0x216cb1=_0x295366;return this[_0x216cb1(0x130)](_0x4c25ce,_0x26d8fa)[_0x216cb1(0x122)](_0x75a0c3);}[_0x295366(0x122)](_0x2d54ae,_0x22443a,_0x326d3d){const _0x36414f=_0x295366;return this[_0x36414f(0x130)](_0x2d54ae,_0x22443a)[_0x36414f(0x122)](_0x326d3d);}[_0x295366(0x144)](_0x57be0c,_0x540cf6,_0x254d82){const _0x492d97=_0x295366;return this[_0x492d97(0x130)](_0x57be0c,_0x540cf6)[_0x492d97(0x144)](_0x254d82);}[_0x295366(0x102)](_0x1f30b5,_0x624ca1,_0x4fa1ed){const _0x58ccf3=_0x295366;return this[_0x58ccf3(0x130)](_0x1f30b5,_0x624ca1)[_0x58ccf3(0x122)](_0x4fa1ed);}[_0x295366(0xfb)](_0x22a4e1,_0x4afd15,_0xb03eb5){const _0x5ce716=_0x295366;let _0xde6bf7=this[_0x5ce716(0x130)](_0x22a4e1,_0x4afd15);if(!_0xde6bf7[_0x5ce716(0x122)](_0xb03eb5))return;let _0x11de5b=_0xde6bf7['_shapes']['get'](_0xb03eb5);if(_0x11de5b)return _0x11de5b['getShapeData']();}[_0x295366(0x113)](_0x3f185a,_0x167aa7,_0x2844a6){const _0x8547ac=_0x295366;return this[_0x8547ac(0x130)](_0x3f185a,_0x167aa7)[_0x8547ac(0x11c)][_0x8547ac(0xed)](_0x2844a6);}[_0x295366(0x106)](_0x56cd15,_0x2b7bad,_0x2b4298){return this['_ensureShapeModelManager'](_0x56cd15,_0x2b7bad)['getBasicShapeRelation'](_0x2b4298);}[_0x295366(0x11f)](_0x3bea59,_0x53b55d,_0x5a3112){const _0x226ae8=_0x295366;let _0x435101=this[_0x226ae8(0x130)](_0x3bea59,_0x53b55d)[_0x226ae8(0x11c)][_0x226ae8(0xed)](_0x5a3112);if(_0x435101)return _0x435101[_0x226ae8(0x10e)]();}[_0x295366(0xf7)](){}['_serializeShapeForUnit'](_0x24d7c3){const _0x18097c=_0x295366;let _0xfc40f4={},_0x510fee=this[_0x18097c(0xec)][_0x18097c(0xed)](_0x24d7c3);return _0x510fee&&_0x510fee[_0x18097c(0xff)]((_0x2e5112,_0x23eb42)=>{const _0x4c72a4=_0x18097c;let _0x341336=_0x2e5112[_0x4c72a4(0x14a)]();_0x341336['length']>0x0&&(_0xfc40f4[_0x23eb42]=_0x341336);}),JSON[_0x18097c(0x125)](_0xfc40f4);}[_0x295366(0x101)](_0x922254,_0x5eec5d){const _0x198291=_0x295366;Object[_0x198291(0x11d)](_0x5eec5d)[_0x198291(0xff)](_0x21a78e=>{const _0x2bcbb9=_0x198291;this[_0x2bcbb9(0x130)](_0x922254,_0x21a78e)[_0x2bcbb9(0x131)](_0x5eec5d[_0x21a78e]);});}['toJSON'](){const _0x250880=_0x295366;let _0x2e88dd={};return this[_0x250880(0xec)]['forEach']((_0x3e61e,_0x41c613)=>{const _0xef3e07=_0x250880;_0x2e88dd[_0x41c613]={},_0x3e61e[_0xef3e07(0xff)]((_0x5a1a18,_0x2fc96f)=>{_0x2e88dd[_0x41c613][_0x2fc96f]=_0x5a1a18['toJSON']();});}),_0x2e88dd;}[_0x295366(0x131)](_0x4fb673){const _0x22d370=_0x295366;Object[_0x22d370(0x11d)](_0x4fb673)[_0x22d370(0xff)](_0x3f346f=>{const _0x3d0dbd=_0x22d370;let _0x5ea7a2=_0x4fb673[_0x3f346f];Object[_0x3d0dbd(0x11d)](_0x5ea7a2)[_0x3d0dbd(0xff)](_0x58a3e8=>{const _0x5175f7=_0x3d0dbd;this['_ensureShapeModelManager'](_0x3f346f,_0x58a3e8)[_0x5175f7(0x131)](_0x5ea7a2[_0x58a3e8]);});});}[_0x295366(0x129)](){const _0x19495f=_0x295366;this['_resourcesManagerService'][_0x19495f(0xfa)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0x15b111[_0x19495f(0x108)]['UNIVER_SHEET']],'toJson':_0x50cce5=>this[_0x19495f(0x104)](_0x50cce5),'parseJson':_0x433e9c=>JSON[_0x19495f(0x148)](_0x433e9c),'onLoad':(_0x12ea36,_0x1efc8f)=>{const _0x2346d3=_0x19495f;this[_0x2346d3(0x101)](_0x12ea36,_0x1efc8f);},'onUnLoad':_0x30973e=>{const _0x4f4d4d=_0x19495f;let _0x437c5e=this[_0x4f4d4d(0xec)]['get'](_0x30973e);_0x437c5e&&(_0x437c5e['forEach'](_0x189c31=>{const _0x519e42=_0x4f4d4d;_0x189c31[_0x519e42(0xf1)]();}),this[_0x4f4d4d(0xec)][_0x4f4d4d(0x111)](_0x30973e));}});}[_0x295366(0xf1)](){const _0xaa2b94=_0x295366;this[_0xaa2b94(0xec)][_0xaa2b94(0xff)](_0x44dac3=>{_0x44dac3['forEach'](_0x567787=>{_0x567787['dispose']();});});}};_0x1f085e=_0x1d63f0([_0x502dc4(0x0,_0x15b111[_0x295366(0x12e)])],_0x1f085e);let _0x4eb1cf={'id':'sheet.mutation.update-shape-type','type':_0x15b111[_0x295366(0x12a)]['MUTATION'],'handler':(_0x1c6476,_0x4840bb)=>{const _0x29d21f=_0x295366;let {unitId:_0xf86ebd,subUnitId:_0x4ed295,shapeType:_0x101b45,shapeId:_0x33c8d7,shapeData:_0x6420e2}=_0x4840bb,_0xfaab5=_0x1c6476['get'](_0x1f085e)[_0x29d21f(0x113)](_0xf86ebd,_0x4ed295,_0x33c8d7);return _0xfaab5&&(_0xfaab5[_0x29d21f(0xf7)](_0x101b45),_0x6420e2&&(_0xfaab5==null||_0xfaab5[_0x29d21f(0x150)](_0x6420e2))),!0x0;}},_0x12a369={'id':_0x295366(0xfe),'type':_0x15b111[_0x295366(0x12a)][_0x295366(0x10c)],'handler':(_0x10da66,_0x3a0909)=>{const _0x22566a=_0x295366;if(!_0x3a0909)return!0x1;let _0x5a3b8f=_0x10da66[_0x22566a(0xed)](_0x15b111['ICommandService']),_0x168467=_0x10da66[_0x22566a(0xed)](_0x1f085e),_0x216f62=_0x10da66[_0x22566a(0xed)](_0x15b111[_0x22566a(0x146)]),_0x26fdd2=[],_0x37db7b=[],{unitId:_0x28207a,subUnitId:_0x5197dd,shapeId:_0xf41209,shapeType:_0x230ff3,shapeData:_0x201c57}=_0x3a0909,_0x40f102=_0x168467[_0x22566a(0x113)](_0x28207a,_0x5197dd,_0xf41209);if(_0x40f102){let _0x567e4e=_0x40f102['getShapeType'](),_0x4fe6fc=Object['assign']({},_0x40f102[_0x22566a(0x10f)]()),_0x370bb7={'unitId':_0x28207a,'subUnitId':_0x5197dd,'shapeId':_0xf41209,'shapeType':_0x230ff3,'shapeData':_0x201c57},_0xf561f2={'unitId':_0x28207a,'subUnitId':_0x5197dd,'shapeId':_0xf41209,'shapeType':_0x567e4e,'shapeData':_0x4fe6fc};return _0x26fdd2['push']({'id':_0x4eb1cf['id'],'params':_0x370bb7}),_0x37db7b[_0x22566a(0xf9)]({'id':_0x4eb1cf['id'],'params':_0xf561f2}),_0x26fdd2[_0x22566a(0x14c)](_0x138b32=>_0x5a3b8f['syncExecuteCommand'](_0x138b32['id'],_0x138b32[_0x22566a(0x123)]))&&_0x216f62[_0x22566a(0x10d)]({'unitID':_0x28207a,'redoMutations':[..._0x26fdd2],'undoMutations':[..._0x37db7b]}),!0x0;}return!0x1;}},_0x436905={'id':_0x295366(0x140),'type':_0x15b111[_0x295366(0x12a)][_0x295366(0xf0)],'handler':(_0x15e8e7,_0x3f1103)=>{const _0x44e39e=_0x295366;let {unitId:_0x24b971,subUnitId:_0x5b4e81,shapeType:_0x4b51d2,shapeId:_0x5a8646,shapeData:_0x4cd691}=_0x3f1103;return _0x15e8e7[_0x44e39e(0xed)](_0x1f085e)[_0x44e39e(0xe7)](_0x24b971,_0x5b4e81,_0x4b51d2,_0x5a8646,_0x4cd691),!0x0;}},_0x161b46={'id':_0x295366(0xe5),'type':_0x15b111[_0x295366(0x12a)][_0x295366(0xf0)],'handler':(_0x2821bf,_0x4bff2d)=>{const _0x3e079b=_0x295366;let {unitId:_0xd528d4,subUnitId:_0x36f862,shapeId:_0x4edab5}=_0x4bff2d;return _0x2821bf[_0x3e079b(0xed)](_0x1f085e)[_0x3e079b(0x13c)](_0xd528d4,_0x36f862,_0x4edab5),!0x0;}},_0x3a5522={'id':_0x295366(0x11b),'type':_0x15b111[_0x295366(0x12a)][_0x295366(0xf0)],'handler':(_0x3759b2,_0x56c1af)=>{const _0x101276=_0x295366;let {unitId:_0x3f69ed,subUnitId:_0x41ae2b,shapeType:_0xfb6644,shapeId:_0x2cd3eb,shapeData:_0x24de20}=_0x56c1af,_0x34d503=_0x3759b2[_0x101276(0xed)](_0x1f085e)[_0x101276(0x113)](_0x3f69ed,_0x41ae2b,_0x2cd3eb);return _0x34d503&&(_0xfb6644!==void 0x0&&_0x34d503[_0x101276(0xf7)](_0xfb6644),_0x24de20&&(_0x34d503==null||_0x34d503['setShapeData'](_0x24de20,!0x0))),!0x0;}};var _0x220423=_0x295366(0x124),_0x4bd68a='0.19.0';let _0x344579='sheets-shape.config';Symbol(_0x344579);let _0x2cdfa3={},_0x54581c=class extends _0x15b111['Plugin']{constructor(_0x208ed6=_0x2cdfa3,_0xf2e1a3,_0x78caa8,_0x388813){const _0x1b6761=_0x295366;super(),this[_0x1b6761(0x116)]=_0x208ed6,this[_0x1b6761(0xe8)]=_0xf2e1a3,this['_commandService']=_0x78caa8,this['_configService']=_0x388813;let {..._0x1b0107}=(0x0,_0x15b111['merge'])({},_0x2cdfa3,this['_config']);this[_0x1b6761(0x120)][_0x1b6761(0xe0)](_0x344579,_0x1b0107),this[_0x1b6761(0x10b)]();}[_0x295366(0xe3)](){const _0x2311aa=_0x295366;(0x0,_0x15b111[_0x2311aa(0xf2)])(this[_0x2311aa(0xe8)],[]);}[_0x295366(0xf4)](){const _0x53051d=_0x295366;let _0x1c56d4=this[_0x53051d(0xe8)];[[_0x7ea750],[_0x1f085e]][_0x53051d(0xff)](_0xc7ec7d=>_0x1c56d4[_0x53051d(0x14e)](_0xc7ec7d));}[_0x295366(0x10b)](){const _0x318dba=_0x295366;[_0x436905,_0x161b46,_0x4eb1cf,_0x3a5522][_0x318dba(0xff)](_0x4773a1=>this[_0x318dba(0x107)](this[_0x318dba(0x14b)]['registerCommand'](_0x4773a1)));}};_0x529e3d(_0x54581c,_0x295366(0x115),_0x15b111[_0x295366(0x108)][_0x295366(0xf6)]),_0x529e3d(_0x54581c,_0x295366(0x142),_0x295366(0xea)),_0x529e3d(_0x54581c,_0x295366(0x149),_0x220423),_0x529e3d(_0x54581c,_0x295366(0x14d),_0x4bd68a),_0x54581c=_0x1d63f0([(0x0,_0x15b111[_0x295366(0x119)])(_0x32de89['UniverLicensePlugin']),_0x502dc4(0x1,(0x0,_0x15b111['Inject'])(_0x15b111[_0x295366(0xe1)])),_0x502dc4(0x2,_0x15b111[_0x295366(0x13b)]),_0x502dc4(0x3,_0x15b111['IConfigService'])],_0x54581c),_0x12e3ef[_0x295366(0x110)]=_0x436905,_0x12e3ef['RemoveSheetsShapeMutation']=_0x161b46,Object[_0x295366(0x132)](_0x12e3ef,_0x295366(0x100),{'enumerable':!0x0,'get':function(){return _0x1f085e;}}),Object[_0x295366(0x132)](_0x12e3ef,_0x295366(0x112),{'enumerable':!0x0,'get':function(){return _0x54581c;}}),_0x12e3ef[_0x295366(0xf5)]=_0x3a5522,_0x12e3ef['UpdateSheetsShapeTypeCommand']=_0x12a369,_0x12e3ef['UpdateSheetsShapeTypeMutation']=_0x4eb1cf;}));function _0x6b5e(_0x10d7b6,_0x295e1e){_0x10d7b6=_0x10d7b6-0xe0;const _0x5e473f=_0x5e47();let _0x6b5e8d=_0x5e473f[_0x10d7b6];return _0x6b5e8d;}function _0x5e47(){const _0x45b54c=['insertShape','_injector','22435TPmgYd','SHEET_SHAPE_PLUGIN','prototype','_shapeModelManagerMap','get','function','_resourcesManagerService','MUTATION','dispose','touchDependencies','859779WhALke','onStarting','UpdateSheetsShapeDataMutation','UNIVER_SHEET','setShapeType','length','push','registerPluginResource','getShapeDataById','731305wvSFGc','addShape','sheet.command.update-shape-type','forEach','SheetsShapeService','_deserializeShapeForUnit','getShapeTypeById','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_serializeShapeForUnit','@univerjs-pro/engine-shape','getBasicShapeRelation','disposeWithMe','UniverInstanceType','amd','ShapeModel','_initCommands','COMMAND','pushUndoRedo','getShapeRelation','getShapeData','InsertSheetsShapeMutation','delete','UniverSheetsShapePlugin','getShapeModel','symbol','type','_config','set','@univerjs/core','DependentOn','UniverProEngineShape','sheet.mutation.update-shape-data','_shapes','keys','has','getLineShapeRelation','_configService','toPrimitive','getShapeType','params','@univerjs-pro/sheets-shape','stringify','33GoKvHy','20425880snmhfF','decorate','_initSnapshot','CommandType','Module','shapeId','Disposable','IResourceManagerService','exports','_ensureShapeModelManager','fromJSON','defineProperty','default','clear','UniverProLicense','isLineShape','_groupIds','shapeData','from','getBasicShapeType','ICommandService','removeShape','79408oPnRmT','2813624hfxroe','call','sheet.mutation.insert-shape','object','pluginName','34872cjUpho','hasShape','_disposed','IUndoRedoService','1770abKcWd','parse','packageName','toJSON','_commandService','every','version','add','1044SvVhrY','setShapeData','getOwnPropertyDescriptor','setConfig','Injector','_linesIds','onRendered','isConnectorShape','sheet.mutation.remove-shape','iterator'];_0x5e47=function(){return _0x45b54c;};return _0x5e47();}
1
+ function _0x1b3b(_0x46a8ab,_0xff6081){_0x46a8ab=_0x46a8ab-0xd8;const _0x1bf75c=_0x1bf7();let _0x1b3bcf=_0x1bf75c[_0x46a8ab];return _0x1b3bcf;}(function(_0x46ab29,_0x3764db){const _0xd01c91=_0x1b3b,_0x18cdbd=_0x46ab29();while(!![]){try{const _0x81618c=parseInt(_0xd01c91(0x18b))/0x1*(-parseInt(_0xd01c91(0x162))/0x2)+-parseInt(_0xd01c91(0x13c))/0x3+-parseInt(_0xd01c91(0x13a))/0x4+-parseInt(_0xd01c91(0xf6))/0x5+parseInt(_0xd01c91(0x140))/0x6*(-parseInt(_0xd01c91(0x186))/0x7)+parseInt(_0xd01c91(0x103))/0x8+-parseInt(_0xd01c91(0xf2))/0x9*(-parseInt(_0xd01c91(0x151))/0xa);if(_0x81618c===_0x3764db)break;else _0x18cdbd['push'](_0x18cdbd['shift']());}catch(_0xebfb6a){_0x18cdbd['push'](_0x18cdbd['shift']());}}}(_0x1bf7,0xac77b),function(_0x270384,_0x325b5e){const _0x302a58=_0x1b3b;typeof exports==_0x302a58(0xe7)&&typeof module<'u'?_0x325b5e(exports,require(`@univerjs-pro/engine-shape`),require(`@univerjs/core`),require(`@univerjs/sheets`),require(`@univerjs/sheets-drawing`),require(`@univerjs-pro/license`),require(`@univerjs/drawing`)):typeof define==_0x302a58(0x123)&&define['amd']?define([_0x302a58(0x1a7),'@univerjs-pro/engine-shape',_0x302a58(0x120),_0x302a58(0x14d),_0x302a58(0xf8),'@univerjs-pro/license',_0x302a58(0x19f)],_0x325b5e):(_0x270384=typeof globalThis<'u'?globalThis:_0x270384||self,_0x325b5e(_0x270384[_0x302a58(0x137)]={},_0x270384['UniverProEngineShape'],_0x270384[_0x302a58(0x133)],_0x270384[_0x302a58(0x154)],_0x270384[_0x302a58(0xe6)],_0x270384[_0x302a58(0x1ac)],_0x270384[_0x302a58(0x138)]));}(this,function(_0x41c456,_0x530db4,_0xfb4ab,_0xec1f4e,_0x517876,_0x5010b3,_0x3402d7){const _0x465f7e=_0x1b3b;Object[_0x465f7e(0x117)](_0x41c456,Symbol[_0x465f7e(0x11a)],{'value':_0x465f7e(0x150)});function _0x16ea86(_0x2c0001){'@babel/helpers - typeof';const _0x12745e=_0x465f7e;return _0x16ea86=typeof Symbol==_0x12745e(0x123)&&typeof Symbol['iterator']==_0x12745e(0x12f)?function(_0xd50999){return typeof _0xd50999;}:function(_0x573986){const _0x48e7a7=_0x12745e;return _0x573986&&typeof Symbol=='function'&&_0x573986[_0x48e7a7(0x109)]===Symbol&&_0x573986!==Symbol[_0x48e7a7(0x143)]?_0x48e7a7(0x12f):typeof _0x573986;},_0x16ea86(_0x2c0001);}function _0x14ba61(_0x20412b,_0xee9c7d){const _0x5a5ffa=_0x465f7e;if(_0x16ea86(_0x20412b)!=_0x5a5ffa(0xe7)||!_0x20412b)return _0x20412b;var _0x2efc66=_0x20412b[Symbol[_0x5a5ffa(0x110)]];if(_0x2efc66!==void 0x0){var _0x1ec50b=_0x2efc66[_0x5a5ffa(0x193)](_0x20412b,_0xee9c7d||'default');if(_0x16ea86(_0x1ec50b)!=_0x5a5ffa(0xe7))return _0x1ec50b;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xee9c7d===_0x5a5ffa(0x179)?String:Number)(_0x20412b);}function _0x5017d5(_0x2fc325){const _0x149abb=_0x465f7e;var _0xe8d7d6=_0x14ba61(_0x2fc325,_0x149abb(0x179));return _0x16ea86(_0xe8d7d6)==_0x149abb(0x12f)?_0xe8d7d6:_0xe8d7d6+'';}function _0x4e862d(_0x1b6ca7,_0x306bbe,_0x3065eb){const _0x4354bd=_0x465f7e;return(_0x306bbe=_0x5017d5(_0x306bbe))in _0x1b6ca7?Object[_0x4354bd(0x117)](_0x1b6ca7,_0x306bbe,{'value':_0x3065eb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1b6ca7[_0x306bbe]=_0x3065eb,_0x1b6ca7;}var _0x4e5860=class extends _0xfb4ab[_0x465f7e(0x182)]{constructor(){const _0x4587b5=_0x465f7e;super(),_0x4e862d(this,_0x4587b5(0xfe),new Map()),_0x4e862d(this,_0x4587b5(0x189),new Set()),_0x4e862d(this,'_groupIds',new Set());}[_0x465f7e(0x102)](_0x2d7427,_0x37d7b5,_0x2a906d){const _0xb67f3=_0x465f7e;let _0xe34cae=new _0x530db4[(_0xb67f3(0x107))](_0x2d7427,_0x37d7b5,_0x2a906d);return this['_shapes'][_0xb67f3(0x113)](_0x37d7b5,_0xe34cae),(0x0,_0x530db4[_0xb67f3(0x1a0)])(_0x2d7427)&&this[_0xb67f3(0x189)][_0xb67f3(0x19a)](_0x37d7b5),_0xe34cae;}[_0x465f7e(0x130)](_0x36582b){const _0x48ac9a=_0x465f7e;let _0x1a05ad=[];for(let _0x43cd4c of this[_0x48ac9a(0x189)]){let _0x7bb056=this[_0x48ac9a(0xfe)][_0x48ac9a(0x1aa)](_0x43cd4c);if(_0x7bb056){let _0x4db335=_0x7bb056[_0x48ac9a(0x100)]();if(_0x4db335){var _0x3f4a17,_0x2d6578;((_0x3f4a17=_0x4db335['from'])==null?void 0x0:_0x3f4a17[_0x48ac9a(0x175)])===_0x36582b&&_0x1a05ad[_0x48ac9a(0xe3)]({..._0x4db335[_0x48ac9a(0x128)],'lineShapeId':_0x43cd4c,'isFrom':!0x0}),((_0x2d6578=_0x4db335['to'])==null?void 0x0:_0x2d6578[_0x48ac9a(0x175)])===_0x36582b&&_0x1a05ad['push']({..._0x4db335['to'],'lineShapeId':_0x43cd4c,'isFrom':!0x1});}}}return _0x1a05ad;}[_0x465f7e(0x149)](_0x4dd681){const _0x3b4765=_0x465f7e;let _0x4e1de1=this['_shapes'][_0x3b4765(0x1aa)](_0x4dd681);if(_0x4e1de1)return _0x4e1de1[_0x3b4765(0x100)]();}['getShapeType'](_0x338340){const _0x5b523e=_0x465f7e;let _0x22f866=this[_0x5b523e(0xfe)][_0x5b523e(0x1aa)](_0x338340);if(_0x22f866)return _0x22f866[_0x5b523e(0x181)]();}['hasShape'](_0xba73ea){const _0x295e24=_0x465f7e;return this['_shapes'][_0x295e24(0x10c)](_0xba73ea);}[_0x465f7e(0x19d)](_0x3cc2a5){const _0x464ab8=_0x465f7e;let _0x37227f=this[_0x464ab8(0xfe)][_0x464ab8(0x1aa)](_0x3cc2a5);_0x37227f&&((0x0,_0x530db4['isConnectorShape'])(_0x37227f[_0x464ab8(0x181)]())&&this[_0x464ab8(0x189)][_0x464ab8(0x129)](_0x3cc2a5),this[_0x464ab8(0xfe)][_0x464ab8(0x129)](_0x3cc2a5));}['toJSON'](){const _0x12d460=_0x465f7e;let _0x3c1ee1=[];return this[_0x12d460(0xfe)][_0x12d460(0x17d)](_0x1f66b4=>{const _0x1647b8=_0x12d460;_0x3c1ee1[_0x1647b8(0xe3)](_0x1f66b4[_0x1647b8(0x16a)]());}),_0x3c1ee1;}[_0x465f7e(0x165)](_0xbbd69e){const _0x3700ef=_0x465f7e;for(let _0x409022 of _0xbbd69e){let {id:_0x47a3b6,shapeType:_0x4af303}=_0x409022,_0x43639f=this['addShape'](_0x4af303,_0x47a3b6,_0x409022[_0x3700ef(0xf7)]);_0x43639f&&_0x43639f[_0x3700ef(0x10a)]()&&this['_linesIds'][_0x3700ef(0x19a)](_0x47a3b6);}}[_0x465f7e(0x16e)](){const _0x54022d=_0x465f7e;this[_0x54022d(0x197)]||(this['_shapes']['forEach'](_0x23e63a=>{const _0xca25b1=_0x54022d;_0x23e63a[_0xca25b1(0x16e)]();}),this[_0x54022d(0xfe)][_0x54022d(0x1a9)](),this['_linesIds'][_0x54022d(0x1a9)](),this['_groupIds'][_0x54022d(0x1a9)](),super[_0x54022d(0x16e)]());}};function _0x4be714(_0x2701a1,_0x31ff72){return function(_0xfbe1ed,_0x427b97){_0x31ff72(_0xfbe1ed,_0x427b97,_0x2701a1);};}function _0x25c294(_0x19f3b7,_0x455ada,_0x178199,_0x5bb75f){const _0x662e70=_0x465f7e;var _0x36fe43=arguments['length'],_0x34e137=_0x36fe43<0x3?_0x455ada:_0x5bb75f===null?_0x5bb75f=Object['getOwnPropertyDescriptor'](_0x455ada,_0x178199):_0x5bb75f,_0xb17036;if(typeof Reflect==_0x662e70(0xe7)&&typeof Reflect[_0x662e70(0x11d)]==_0x662e70(0x123))_0x34e137=Reflect['decorate'](_0x19f3b7,_0x455ada,_0x178199,_0x5bb75f);else{for(var _0x31d587=_0x19f3b7['length']-0x1;_0x31d587>=0x0;_0x31d587--)(_0xb17036=_0x19f3b7[_0x31d587])&&(_0x34e137=(_0x36fe43<0x3?_0xb17036(_0x34e137):_0x36fe43>0x3?_0xb17036(_0x455ada,_0x178199,_0x34e137):_0xb17036(_0x455ada,_0x178199))||_0x34e137);}return _0x36fe43>0x3&&_0x34e137&&Object[_0x662e70(0x117)](_0x455ada,_0x178199,_0x34e137),_0x34e137;}let _0x4819b3=class extends _0xfb4ab[_0x465f7e(0x182)]{constructor(_0x2491b8){const _0x2a34d2=_0x465f7e;super(),this[_0x2a34d2(0x18a)]=_0x2491b8,_0x4e862d(this,_0x2a34d2(0xfd),new Map()),this['_initSnapshot']();}['_ensureShapeModelManager'](_0x1c757e,_0x3b6806){const _0x3a5b6c=_0x465f7e;let _0x4f1547=this[_0x3a5b6c(0xfd)][_0x3a5b6c(0x1aa)](_0x1c757e);_0x4f1547||(_0x4f1547=new Map(),this[_0x3a5b6c(0xfd)][_0x3a5b6c(0x113)](_0x1c757e,_0x4f1547));let _0x3e8b2c=_0x4f1547[_0x3a5b6c(0x1aa)](_0x3b6806);return _0x3e8b2c||(_0x3e8b2c=new _0x4e5860(),_0x4f1547[_0x3a5b6c(0x113)](_0x3b6806,_0x3e8b2c)),_0x3e8b2c;}['insertShape'](_0x52ae58,_0xfc1844,_0x164a7d,_0x527d03,_0x3cafd8){const _0x1a84e9=_0x465f7e;this['_ensureShapeModelManager'](_0x52ae58,_0xfc1844)[_0x1a84e9(0x102)](_0x164a7d,_0x527d03,_0x3cafd8);}['removeShape'](_0x2f5888,_0x4e06b0,_0x364c5d){const _0x44e790=_0x465f7e;this['_ensureShapeModelManager'](_0x2f5888,_0x4e06b0)[_0x44e790(0x19d)](_0x364c5d);}['getBasicShapeType'](_0x55f55c,_0x5cd85b,_0x2a6028){const _0x221347=_0x465f7e;return this[_0x221347(0x146)](_0x55f55c,_0x5cd85b)[_0x221347(0x181)](_0x2a6028);}[_0x465f7e(0x181)](_0x1b5dcb,_0x321cd7,_0x8db885){return this['_ensureShapeModelManager'](_0x1b5dcb,_0x321cd7)['getShapeType'](_0x8db885);}[_0x465f7e(0x153)](_0x21f546,_0x335f57,_0x3f3666){const _0x295925=_0x465f7e;return this[_0x295925(0x146)](_0x21f546,_0x335f57)[_0x295925(0x153)](_0x3f3666);}['getShapeTypeById'](_0x13a7b2,_0x363811,_0x51c41e){const _0x428b68=_0x465f7e;return this[_0x428b68(0x146)](_0x13a7b2,_0x363811)[_0x428b68(0x181)](_0x51c41e);}[_0x465f7e(0x1ab)](_0x2355cc,_0xeca6a7,_0x3ad24d){const _0x2176b0=_0x465f7e;let _0x56fdf7=this[_0x2176b0(0x146)](_0x2355cc,_0xeca6a7);if(!_0x56fdf7['getShapeType'](_0x3ad24d))return;let _0x341ef8=_0x56fdf7[_0x2176b0(0xfe)][_0x2176b0(0x1aa)](_0x3ad24d);if(_0x341ef8)return _0x341ef8['getShapeData']();}[_0x465f7e(0xd9)](_0x219ad3,_0x3edb26,_0xf9c479){const _0x59f873=_0x465f7e;return this['_ensureShapeModelManager'](_0x219ad3,_0x3edb26)[_0x59f873(0xfe)][_0x59f873(0x1aa)](_0xf9c479);}['getBasicShapeRelation'](_0x376153,_0x4cb920,_0x120009){const _0x1032ed=_0x465f7e;return this[_0x1032ed(0x146)](_0x376153,_0x4cb920)[_0x1032ed(0x130)](_0x120009);}[_0x465f7e(0x149)](_0x314667,_0x5356e4,_0x1bad57){const _0x524231=_0x465f7e;let _0x433e94=this[_0x524231(0x146)](_0x314667,_0x5356e4)[_0x524231(0xfe)][_0x524231(0x1aa)](_0x1bad57);if(_0x433e94)return _0x433e94[_0x524231(0x100)]();}[_0x465f7e(0x15b)](){}['_serializeShapeForUnit'](_0x37b423){const _0x31c240=_0x465f7e;let _0x4db1f5={},_0x50aafd=this['_shapeModelManagerMap'][_0x31c240(0x1aa)](_0x37b423);return _0x50aafd&&_0x50aafd[_0x31c240(0x17d)]((_0x5e01f5,_0x5e27b6)=>{let _0x562014=_0x5e01f5['toJSON']();_0x562014['length']>0x0&&(_0x4db1f5[_0x5e27b6]=_0x562014);}),JSON[_0x31c240(0x142)](_0x4db1f5);}[_0x465f7e(0x18c)](_0x4bcca9,_0x534716){const _0x12eb1e=_0x465f7e;Object['keys'](_0x534716)[_0x12eb1e(0x17d)](_0x18a878=>{this['_ensureShapeModelManager'](_0x4bcca9,_0x18a878)['fromJSON'](_0x534716[_0x18a878]);});}[_0x465f7e(0x16a)](){const _0x11b584=_0x465f7e;let _0x52001f={};return this[_0x11b584(0xfd)][_0x11b584(0x17d)]((_0x4b9c44,_0xe7055f)=>{const _0x27c7e4=_0x11b584;_0x52001f[_0xe7055f]={},_0x4b9c44[_0x27c7e4(0x17d)]((_0x2131b7,_0x4cb275)=>{_0x52001f[_0xe7055f][_0x4cb275]=_0x2131b7['toJSON']();});}),_0x52001f;}[_0x465f7e(0x165)](_0x331d55){const _0x1ab5ab=_0x465f7e;Object['keys'](_0x331d55)[_0x1ab5ab(0x17d)](_0x22466f=>{const _0x578c15=_0x1ab5ab;let _0x3f1254=_0x331d55[_0x22466f];Object[_0x578c15(0x196)](_0x3f1254)['forEach'](_0x2a350a=>{const _0x318446=_0x578c15;this[_0x318446(0x146)](_0x22466f,_0x2a350a)[_0x318446(0x165)](_0x3f1254[_0x2a350a]);});});}[_0x465f7e(0x12a)](){const _0x398928=_0x465f7e;this[_0x398928(0x18a)][_0x398928(0x136)]({'pluginName':'SHEET_SHAPE_PLUGIN','businesses':[_0xfb4ab[_0x398928(0x10d)][_0x398928(0x101)]],'toJson':_0x1c52fa=>this[_0x398928(0x187)](_0x1c52fa),'parseJson':_0x373f40=>JSON[_0x398928(0x160)](_0x373f40),'onLoad':(_0xcecdc5,_0x2fbd83)=>{const _0x2e5e75=_0x398928;this[_0x2e5e75(0x18c)](_0xcecdc5,_0x2fbd83);},'onUnLoad':_0x5b4447=>{const _0x32da60=_0x398928;let _0x456d7f=this[_0x32da60(0xfd)][_0x32da60(0x1aa)](_0x5b4447);_0x456d7f&&(_0x456d7f[_0x32da60(0x17d)](_0x143ad7=>{const _0x40ffb9=_0x32da60;_0x143ad7[_0x40ffb9(0x16e)]();}),this['_shapeModelManagerMap'][_0x32da60(0x129)](_0x5b4447));}});}[_0x465f7e(0x16e)](){const _0x144d03=_0x465f7e;this[_0x144d03(0xfd)][_0x144d03(0x17d)](_0x1053b0=>{const _0x622469=_0x144d03;_0x1053b0[_0x622469(0x17d)](_0x24f47e=>{const _0x51a783=_0x622469;_0x24f47e[_0x51a783(0x16e)]();});});}};_0x4819b3=_0x25c294([_0x4be714(0x0,_0xfb4ab[_0x465f7e(0x169)])],_0x4819b3);let _0x42f6e6={'id':_0x465f7e(0x13e),'type':_0xfb4ab[_0x465f7e(0x11f)][_0x465f7e(0x173)],'handler':(_0x33c96d,_0x290818)=>{const _0x2a7f69=_0x465f7e;let {unitId:_0x2f0367,subUnitId:_0x498f61,shapeType:_0x375a58,shapeId:_0xf62e1a,shapeData:_0x3c7a62}=_0x290818;return _0x33c96d[_0x2a7f69(0x1aa)](_0x4819b3)[_0x2a7f69(0x158)](_0x2f0367,_0x498f61,_0x375a58,_0xf62e1a,_0x3c7a62),!0x0;}},_0x468f4f={'id':_0x465f7e(0x17a),'type':_0xfb4ab[_0x465f7e(0x11f)][_0x465f7e(0x173)],'handler':(_0x4acc5a,_0x3cdcf2)=>{const _0x530f5d=_0x465f7e;let {unitId:_0x97945c,subUnitId:_0x21b684,shapeId:_0x48ec10}=_0x3cdcf2;return _0x4acc5a[_0x530f5d(0x1aa)](_0x4819b3)[_0x530f5d(0x19d)](_0x97945c,_0x21b684,_0x48ec10),!0x0;}},_0x383020={'type':_0xfb4ab[_0x465f7e(0x11f)][_0x465f7e(0x11c)],'id':_0x465f7e(0x121),'handler':(_0x3f78a3,_0x183f70)=>{const _0x1d19bc=_0x465f7e;var _0x30023a,_0x9158f8;let _0x2e2062=(0x0,_0xec1f4e[_0x1d19bc(0x192)])(_0x3f78a3[_0x1d19bc(0x1aa)](_0xfb4ab[_0x1d19bc(0x1ad)]),_0x183f70);if(!_0x2e2062)return!0x1;let _0x28ac41=_0x3f78a3['get'](_0xec1f4e[_0x1d19bc(0x1a1)]),{unitId:_0x380e19,subUnitId:_0x488d80}=_0x2e2062,_0x8d2fb0=_0x28ac41['ensureSkeleton'](_0x380e19,_0x488d80);if(!_0x8d2fb0)return!0x1;let _0x340b91=_0x3f78a3['get'](_0xfb4ab['ICommandService']),_0x50c28c=_0x3f78a3[_0x1d19bc(0x1aa)](_0xfb4ab['IUndoRedoService']),_0x491e74=_0x3f78a3['get'](_0xec1f4e[_0x1d19bc(0x108)]),_0x3f82c7=_0x3f78a3[_0x1d19bc(0x1aa)](_0x517876[_0x1d19bc(0x114)]),{shapeType:_0x3ba23f,shapeData:_0x13f7df}=_0x183f70,_0x28f91c=_0x183f70[_0x1d19bc(0x175)]||(0x0,_0xfb4ab[_0x1d19bc(0x16d)])(),_0x105b8a={'unitId':_0x380e19,'subUnitId':_0x488d80,'shapeId':_0x28f91c,'shapeType':_0x3ba23f,'shapeData':_0x13f7df},_0x16ab54=_0x183f70['width']||0xc8,_0xecbe03=_0x183f70[_0x1d19bc(0xdb)]||0xc8,_0x2daaa6=0x0,_0x33c2e4=0x0,_0x5d54c7={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0},_0x3ea60e={'row':0x0,'rowOffset':0x0,'column':0x0,'columnOffset':0x0};if(_0x183f70[_0x1d19bc(0x144)]){let {x:_0x3ca041,y:_0x56aced}=_0x183f70[_0x1d19bc(0x144)];_0x2daaa6=_0x3ca041,_0x33c2e4=_0x56aced,_0x5d54c7=_0x8d2fb0[_0x1d19bc(0xdd)](_0x3ca041,_0x56aced),_0x3ea60e=_0x8d2fb0[_0x1d19bc(0xdd)](_0x3ca041+_0x16ab54,_0x56aced+_0xecbe03);}else{if(_0x183f70['range']){let {startRow:_0x2d847b,startColumn:_0xa408e0}=_0x183f70[_0x1d19bc(0x156)];_0x5d54c7={'row':_0x2d847b,'rowOffset':0xa,'column':_0xa408e0,'columnOffset':0xa};let _0x45981b=_0x8d2fb0[_0x1d19bc(0x11b)](_0x2d847b,_0xa408e0);_0x2daaa6=_0x45981b[_0x1d19bc(0xdc)]+0xa,_0x33c2e4=_0x45981b[_0x1d19bc(0x198)]+0xa,_0x3ea60e=_0x8d2fb0[_0x1d19bc(0xdd)](_0x2daaa6+_0x16ab54,_0x33c2e4+_0xecbe03);}}let _0x1d0b2f={'from':_0x5d54c7,'to':_0x3ea60e},_0x4453b2={'unitId':_0x380e19,'subUnitId':_0x488d80,'drawingId':_0x28f91c,'drawingType':_0xfb4ab[_0x1d19bc(0x124)][_0x1d19bc(0x115)],'sheetTransform':_0x1d0b2f,'transform':{'left':_0x2daaa6,'top':_0x33c2e4,'width':_0x16ab54,'height':_0xecbe03},'data':{'shapeType':_0x3ba23f,'shapeData':_0x13f7df},'axisAlignSheetTransform':_0x1d0b2f,'allowTransform':!0x0};(0x0,_0x530db4[_0x1d19bc(0x1a0)])(_0x3ba23f)&&(_0x4453b2['data'][_0x1d19bc(0x191)]=!0x1,_0x4453b2[_0x1d19bc(0x161)][_0x1d19bc(0x188)]=!0x1,_0x4453b2[_0x1d19bc(0x161)][_0x1d19bc(0x12d)]=!0x1,_0x4453b2[_0x1d19bc(0x161)][_0x1d19bc(0x1a2)]=!0x1,_0x4453b2[_0x1d19bc(0x176)]['rotateEnabled']=!0x1,_0x4453b2[_0x1d19bc(0x176)][_0x1d19bc(0x12d)]=!0x1,_0x4453b2[_0x1d19bc(0x176)][_0x1d19bc(0x1a2)]=!0x1);let {undo:_0x145ea3,redo:_0x54bb33,objects:_0x8e7f19}=_0x3f82c7[_0x1d19bc(0x16b)]([_0x4453b2]),_0x4086f4=_0x491e74[_0x1d19bc(0x180)]({'id':_0x517876['InsertSheetDrawingCommand']['id'],'params':{'unitId':_0x380e19,'drawings':[_0x4453b2]}}),_0x3ed7c2=[...(_0x30023a=_0x4086f4[_0x1d19bc(0x13f)])==null?[]:_0x30023a,{'id':_0x517876[_0x1d19bc(0xf5)]['id'],'params':{'unitId':_0x380e19,'subUnitId':_0x488d80,'op':_0x54bb33,'objects':_0x8e7f19,'type':_0x517876[_0x1d19bc(0x167)]['INSERT']}},{'id':_0x517876[_0x1d19bc(0x19e)]['id'],'params':[_0x380e19]},..._0x4086f4[_0x1d19bc(0x119)],{'id':_0x42f6e6['id'],'params':_0x105b8a}],_0x3e4a83=[{'id':_0x468f4f['id'],'params':{'unitId':_0x380e19,'subUnitId':_0x488d80,'shapeId':_0x28f91c}},...(_0x9158f8=_0x4086f4[_0x1d19bc(0x122)])==null?[]:_0x9158f8,{'id':_0x517876['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x380e19,'subUnitId':_0x488d80,'op':_0x145ea3,'objects':_0x8e7f19,'type':_0x517876[_0x1d19bc(0x167)]['REMOVE']}},{'id':_0x517876[_0x1d19bc(0x19e)]['id'],'params':[_0x380e19]},..._0x4086f4[_0x1d19bc(0x183)]];return(0x0,_0xfb4ab[_0x1d19bc(0x127)])(_0x3ed7c2,_0x340b91)?(_0x50c28c[_0x1d19bc(0xee)]({'unitID':_0x380e19,'undoMutations':_0x3e4a83,'redoMutations':_0x3ed7c2}),!0x0):!0x1;}},_0x3c20bc={'id':_0x465f7e(0xec),'type':_0xfb4ab[_0x465f7e(0x11f)][_0x465f7e(0x173)],'handler':(_0x211f0b,_0x541ebd)=>{const _0x282c13=_0x465f7e;let {unitId:_0x33aec8,subUnitId:_0x5af883,shapeType:_0x53e902,shapeId:_0x278230,shapeData:_0x20edac}=_0x541ebd,_0x4f8e33=_0x211f0b[_0x282c13(0x1aa)](_0x4819b3)['getShapeModel'](_0x33aec8,_0x5af883,_0x278230);return _0x4f8e33&&(_0x53e902!==void 0x0&&_0x4f8e33[_0x282c13(0x15b)](_0x53e902),_0x20edac&&(_0x4f8e33==null||_0x4f8e33[_0x282c13(0x118)](_0x20edac,!0x0))),!0x0;}},_0x3d662d={'type':_0xfb4ab[_0x465f7e(0x11f)][_0x465f7e(0x11c)],'id':_0x465f7e(0xe1),'handler':(_0x4b8767,_0x1f1505)=>{const _0x17b025=_0x465f7e;var _0x129ef3,_0x32689c;let _0x2e7859=(0x0,_0xec1f4e[_0x17b025(0x192)])(_0x4b8767['get'](_0xfb4ab['IUniverInstanceService']),_0x1f1505);if(!_0x2e7859)return!0x1;let _0x282525=_0x4b8767['get'](_0xec1f4e[_0x17b025(0x1a1)]),{unitId:_0x22608f,subUnitId:_0x1a3064}=_0x2e7859,_0x4a1f70=_0x282525['ensureSkeleton'](_0x22608f,_0x1a3064);if(!_0x4a1f70)return!0x1;let _0x5dfb32=_0x4b8767[_0x17b025(0x1aa)](_0x4819b3),{shapeId:_0x38c8a2,shapeType:_0x34db21,shapeData:_0x265ae8,position:_0x215d9b,width:_0x36c255,height:_0x25b3cb}=_0x1f1505,_0x3bd993=_0x5dfb32[_0x17b025(0xd9)](_0x22608f,_0x1a3064,_0x38c8a2);if(!_0x3bd993)return!0x1;let _0x291b4f=_0x4b8767[_0x17b025(0x1aa)](_0xfb4ab['ICommandService']),_0x523e4d=_0x4b8767[_0x17b025(0x1aa)](_0xfb4ab[_0x17b025(0x12b)]),_0x3f8640=_0x4b8767['get'](_0xec1f4e[_0x17b025(0x108)]),_0x136298=_0x4b8767[_0x17b025(0x1aa)](_0x517876[_0x17b025(0x114)]),_0x2eda68={'unitId':_0x22608f,'subUnitId':_0x1a3064,'shapeId':_0x38c8a2,'shapeType':_0x34db21,'shapeData':_0x265ae8},_0x1ecaf3=_0x3bd993[_0x17b025(0x181)](),_0x2450dc=_0x3bd993[_0x17b025(0x148)](),{x:_0x5c9b53,y:_0x33a81c}=_0x215d9b,_0x252482={'from':_0x4a1f70[_0x17b025(0xdd)](_0x5c9b53,_0x33a81c),'to':_0x4a1f70[_0x17b025(0xdd)](_0x5c9b53+_0x36c255,_0x33a81c+_0x25b3cb)},_0x1ea96c={'unitId':_0x22608f,'subUnitId':_0x1a3064,'drawingId':_0x38c8a2,'drawingType':_0xfb4ab[_0x17b025(0x124)][_0x17b025(0x115)],'sheetTransform':_0x252482,'transform':{'left':_0x5c9b53,'top':_0x33a81c,'width':_0x36c255,'height':_0x25b3cb},'data':{'shapeType':_0x34db21,'shapeData':_0x265ae8},'axisAlignSheetTransform':_0x252482,'allowTransform':!0x0};(0x0,_0x530db4[_0x17b025(0x1a0)])(_0x34db21)&&(_0x1ea96c[_0x17b025(0x161)][_0x17b025(0x191)]=!0x1,_0x1ea96c[_0x17b025(0x161)][_0x17b025(0x188)]=!0x1,_0x1ea96c[_0x17b025(0x161)][_0x17b025(0x12d)]=!0x1,_0x1ea96c['data']['borderEnabled']=!0x1,_0x1ea96c[_0x17b025(0x176)]['rotateEnabled']=!0x1,_0x1ea96c[_0x17b025(0x176)][_0x17b025(0x12d)]=!0x1,_0x1ea96c[_0x17b025(0x176)][_0x17b025(0x1a2)]=!0x1);let {undo:_0xf65e59,redo:_0x2e2508,objects:_0x491950}=_0x136298['getBatchUpdateOp']([_0x1ea96c]),_0x3b1b28=_0x3f8640['onCommandExecute']({'id':_0x517876[_0x17b025(0xf3)]['id'],'params':{'unitId':_0x22608f,'drawings':[_0x1ea96c]}}),_0x368d82=[...(_0x129ef3=_0x3b1b28['preRedos'])==null?[]:_0x129ef3,{'id':_0x517876[_0x17b025(0xf5)]['id'],'params':{'unitId':_0x22608f,'subUnitId':_0x1a3064,'op':_0x2e2508,'objects':_0x491950,'type':_0x517876[_0x17b025(0x167)][_0x17b025(0xfa)]}},{'id':_0x517876['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x22608f]},..._0x3b1b28[_0x17b025(0x119)],{'id':_0x3c20bc['id'],'params':_0x2eda68}],_0x10be7b=[...(_0x32689c=_0x3b1b28[_0x17b025(0x122)])==null?[]:_0x32689c,{'id':_0x517876[_0x17b025(0xf5)]['id'],'params':{'unitId':_0x22608f,'subUnitId':_0x1a3064,'op':_0xf65e59,'objects':_0x491950,'type':_0x517876[_0x17b025(0x167)][_0x17b025(0xfa)]}},{'id':_0x517876[_0x17b025(0x19e)]['id'],'params':[_0x22608f]},..._0x3b1b28[_0x17b025(0x183)],{'id':_0x3c20bc['id'],'params':{'unitId':_0x22608f,'subUnitId':_0x1a3064,'shapeType':_0x1ecaf3,'shapeId':_0x38c8a2,'shapeData':_0x2450dc}}];return(0x0,_0xfb4ab[_0x17b025(0x127)])(_0x368d82,_0x291b4f)?(_0x523e4d[_0x17b025(0xee)]({'unitID':_0x22608f,'undoMutations':_0x10be7b,'redoMutations':_0x368d82}),!0x0):!0x1;}},_0x4b6993={'type':_0xfb4ab[_0x465f7e(0x11f)][_0x465f7e(0x11c)],'id':'sheet.command.toggle-shape-flip','handler':(_0x12f2d2,_0x25c79b)=>{const _0x13adf8=_0x465f7e;var _0x2ecd10,_0x34ec0e;let _0xe540f2=(0x0,_0xec1f4e['getSheetCommandTarget'])(_0x12f2d2['get'](_0xfb4ab[_0x13adf8(0x1ad)]),_0x25c79b);if(!_0xe540f2)return!0x1;let _0x3aae1b=_0x12f2d2['get'](_0xec1f4e['SheetSkeletonService']),{unitId:_0x12e158,subUnitId:_0x28f608}=_0xe540f2,_0x43eb2f=_0x3aae1b[_0x13adf8(0x13b)](_0x12e158,_0x28f608);if(!_0x43eb2f)return!0x1;let _0x55a7a5=_0x12f2d2[_0x13adf8(0x1aa)](_0x517876[_0x13adf8(0x114)]),{shapeId:_0x1c4274,flipH:_0x9a330b,flipV:_0x2eba54}=_0x25c79b,_0x288862=_0x55a7a5[_0x13adf8(0x171)]({'unitId':_0x12e158,'subUnitId':_0x28f608,'drawingId':_0x1c4274});if(!_0x288862)return!0x1;let _0x2d5d14=_0x12f2d2['get'](_0x4819b3)['getShapeModel'](_0x12e158,_0x28f608,_0x1c4274);if(!_0x2d5d14)return!0x1;let _0x1b7bfc=_0x12f2d2[_0x13adf8(0x1aa)](_0xfb4ab[_0x13adf8(0x106)]),_0x1e299e=_0x12f2d2['get'](_0xfb4ab[_0x13adf8(0x12b)]),_0x509bf6=_0x12f2d2[_0x13adf8(0x1aa)](_0xec1f4e['SheetInterceptorService']),_0x4a8e2d={..._0x288862[_0x13adf8(0x176)]};_0x9a330b!==void 0x0&&(_0x4a8e2d[_0x13adf8(0xea)]=!_0x4a8e2d[_0x13adf8(0xea)]),_0x2eba54!==void 0x0&&(_0x4a8e2d[_0x13adf8(0xe5)]=!_0x4a8e2d['flipY']);let _0x75c4ca=(0x0,_0x517876['transformToDrawingPosition'])(_0x4a8e2d,_0x43eb2f),_0x53bac8=(0x0,_0x517876[_0x13adf8(0x116)])(_0x4a8e2d,_0x43eb2f),_0x290073=_0x2d5d14['getShapeType'](),_0x54d4d0=_0x2d5d14['getShapeData'](),_0x1b0dc1={'unitId':_0x12e158,'subUnitId':_0x28f608,'drawingId':_0x1c4274,'drawingType':_0xfb4ab[_0x13adf8(0x124)]['DRAWING_SHAPE'],'sheetTransform':_0x75c4ca,'transform':_0x4a8e2d,'data':{'shapeType':_0x290073,'shapeData':_0x54d4d0},'axisAlignSheetTransform':_0x53bac8,'allowTransform':!0x0},{undo:_0x4b187f,redo:_0x49416c,objects:_0x1863ef}=_0x55a7a5['getBatchUpdateOp']([_0x1b0dc1]),_0x5eaf40=_0x509bf6[_0x13adf8(0x180)]({'id':_0x517876[_0x13adf8(0xf3)]['id'],'params':{'unitId':_0x12e158,'drawings':[_0x1b0dc1]}}),_0x21436d=[...(_0x2ecd10=_0x5eaf40[_0x13adf8(0x13f)])==null?[]:_0x2ecd10,{'id':_0x517876[_0x13adf8(0xf5)]['id'],'params':{'unitId':_0x12e158,'subUnitId':_0x28f608,'op':_0x49416c,'objects':_0x1863ef,'type':_0x517876['DrawingApplyType']['UPDATE']}},{'id':_0x517876['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x12e158]},..._0x5eaf40[_0x13adf8(0x119)]],_0x3077ab=[...(_0x34ec0e=_0x5eaf40[_0x13adf8(0x122)])==null?[]:_0x34ec0e,{'id':_0x517876[_0x13adf8(0xf5)]['id'],'params':{'unitId':_0x12e158,'subUnitId':_0x28f608,'op':_0x4b187f,'objects':_0x1863ef,'type':_0x517876[_0x13adf8(0x167)]['UPDATE']}},{'id':_0x517876['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x12e158]},..._0x5eaf40[_0x13adf8(0x183)]];if((0x0,_0x530db4[_0x13adf8(0x1a0)])(_0x290073)){let _0x177f93=_0x2d5d14[_0x13adf8(0x100)]();if(_0x177f93){let _0x38fb4a={..._0x177f93};_0x38fb4a['from']=void 0x0,_0x38fb4a['to']=void 0x0,_0x21436d['push']({'id':_0x3c20bc['id'],'params':{'unitId':_0x12e158,'subUnitId':_0x28f608,'shapeId':_0x1c4274,'shapeType':_0x290073,'shapeData':{'relation':_0x38fb4a}}}),_0x3077ab[_0x13adf8(0xe3)]({'id':_0x3c20bc['id'],'params':{'unitId':_0x12e158,'subUnitId':_0x28f608,'shapeId':_0x1c4274,'shapeType':_0x290073,'shapeData':{'relation':_0x177f93}}});}}return(0x0,_0xfb4ab[_0x13adf8(0x127)])(_0x21436d,_0x1b7bfc)?(_0x1e299e['pushUndoRedo']({'unitID':_0x12e158,'undoMutations':_0x3077ab,'redoMutations':_0x21436d}),!0x0):!0x1;}},_0xbeaf66={'type':_0xfb4ab[_0x465f7e(0x11f)]['COMMAND'],'id':_0x465f7e(0x135),'handler':(_0x1db52b,_0x4a8191)=>{const _0x455c97=_0x465f7e;var _0x1dcc97,_0x5aeaad;let _0xbe0365=(0x0,_0xec1f4e[_0x455c97(0x192)])(_0x1db52b[_0x455c97(0x1aa)](_0xfb4ab[_0x455c97(0x1ad)]),_0x4a8191);if(!_0xbe0365)return!0x1;let _0x49e785=_0x1db52b[_0x455c97(0x1aa)](_0xec1f4e['SheetSkeletonService']),{unitId:_0x292a21,subUnitId:_0x1a58d5}=_0xbe0365,_0x40cd5c=_0x49e785['getSkeleton'](_0x292a21,_0x1a58d5);if(!_0x40cd5c)return!0x1;let _0xf3a402=_0x1db52b['get'](_0x517876['ISheetDrawingService']),{shapeId:_0x9c8034,rotate:_0x400682}=_0x4a8191,_0x225284=_0xf3a402['getDrawingByParam']({'unitId':_0x292a21,'subUnitId':_0x1a58d5,'drawingId':_0x9c8034});if(!_0x225284)return!0x1;let _0x55497f=_0x1db52b[_0x455c97(0x1aa)](_0x4819b3)[_0x455c97(0xd9)](_0x292a21,_0x1a58d5,_0x9c8034);if(!_0x55497f)return!0x1;let _0x738e=_0x1db52b[_0x455c97(0x1aa)](_0xfb4ab[_0x455c97(0x106)]),_0x231845=_0x1db52b[_0x455c97(0x1aa)](_0xfb4ab[_0x455c97(0x12b)]),_0x214c7b=_0x1db52b['get'](_0xec1f4e[_0x455c97(0x108)]),_0x535dca={..._0x225284[_0x455c97(0x176)]};_0x400682!==void 0x0&&(_0x535dca['angle']=(_0x535dca[_0x455c97(0x172)]||0x0)+_0x400682);let _0x41db4d=(0x0,_0x517876['transformToDrawingPosition'])(_0x535dca,_0x40cd5c),_0x44855a=(0x0,_0x517876[_0x455c97(0x116)])(_0x535dca,_0x40cd5c),_0x426cea=_0x55497f[_0x455c97(0x181)](),_0x39d6bb=_0x55497f[_0x455c97(0x148)](),_0x431f23={'unitId':_0x292a21,'subUnitId':_0x1a58d5,'drawingId':_0x9c8034,'drawingType':_0xfb4ab[_0x455c97(0x124)][_0x455c97(0x115)],'sheetTransform':_0x41db4d,'transform':_0x535dca,'data':{'shapeType':_0x426cea,'shapeData':_0x39d6bb},'axisAlignSheetTransform':_0x44855a,'allowTransform':!0x0},{undo:_0x465d2d,redo:_0x15a900,objects:_0x30ca35}=_0xf3a402['getBatchUpdateOp']([_0x431f23]),_0x2f533b=_0x214c7b[_0x455c97(0x180)]({'id':_0x517876[_0x455c97(0xf3)]['id'],'params':{'unitId':_0x292a21,'drawings':[_0x431f23]}}),_0x23a1d5=[...(_0x1dcc97=_0x2f533b[_0x455c97(0x13f)])==null?[]:_0x1dcc97,{'id':_0x517876['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x292a21,'subUnitId':_0x1a58d5,'op':_0x15a900,'objects':_0x30ca35,'type':_0x517876[_0x455c97(0x167)][_0x455c97(0xfa)]}},{'id':_0x517876[_0x455c97(0x19e)]['id'],'params':[_0x292a21]},..._0x2f533b[_0x455c97(0x119)]],_0x5648c1=[...(_0x5aeaad=_0x2f533b[_0x455c97(0x122)])==null?[]:_0x5aeaad,{'id':_0x517876[_0x455c97(0xf5)]['id'],'params':{'unitId':_0x292a21,'subUnitId':_0x1a58d5,'op':_0x465d2d,'objects':_0x30ca35,'type':_0x517876['DrawingApplyType'][_0x455c97(0xfa)]}},{'id':_0x517876[_0x455c97(0x19e)]['id'],'params':[_0x292a21]},..._0x2f533b[_0x455c97(0x183)]];return(0x0,_0xfb4ab[_0x455c97(0x127)])(_0x23a1d5,_0x738e)?(_0x231845['pushUndoRedo']({'unitID':_0x292a21,'undoMutations':_0x5648c1,'redoMutations':_0x23a1d5}),!0x0):!0x1;}},_0x56f6ba={'type':_0xfb4ab['CommandType'][_0x465f7e(0x11c)],'id':'sheet.command.update-connector-relation','handler':(_0x2dea3e,_0x29dbfc)=>{const _0x3349b5=_0x465f7e;var _0x2c3ee6,_0x12f8ca,_0x1fbff2,_0x2d4ec8;let _0x3060dc=(0x0,_0xec1f4e['getSheetCommandTarget'])(_0x2dea3e['get'](_0xfb4ab[_0x3349b5(0x1ad)]),_0x29dbfc);if(!_0x3060dc)return!0x1;let _0x169f0e=_0x2dea3e[_0x3349b5(0x1aa)](_0xec1f4e['SheetSkeletonService']),{unitId:_0x143207,subUnitId:_0x5938d1}=_0x3060dc,_0x4470d0=_0x169f0e['getSkeleton'](_0x143207,_0x5938d1);if(!_0x4470d0)return!0x1;let _0x9e0b0d=_0x2dea3e[_0x3349b5(0x1aa)](_0x517876['ISheetDrawingService']),{connectorShapeId:_0x528e10,width:_0x45ccf5,height:_0x344bbe,left:_0x3ee4a6,top:_0xe60124,flipX:_0x564d56,flipY:_0x38031c,rotation:_0x412f9e,oldAdjustValues:_0x117b60,newAdjustValues:_0xdfc059,oldLineType:_0x3c1b74,newLineType:_0x102747,oldRelation:_0x25e954,newRelation:_0x288c75}=_0x29dbfc,_0x5162f2=_0x9e0b0d[_0x3349b5(0x171)]({'unitId':_0x143207,'subUnitId':_0x5938d1,'drawingId':_0x528e10});if(!_0x5162f2)return!0x1;let _0x504265=_0x2dea3e[_0x3349b5(0x1aa)](_0x4819b3)[_0x3349b5(0xd9)](_0x143207,_0x5938d1,_0x528e10);if(!_0x504265)return!0x1;let _0x4d99cb=_0x2dea3e[_0x3349b5(0x1aa)](_0xfb4ab[_0x3349b5(0x106)]),_0x18ddfd=_0x2dea3e['get'](_0xfb4ab[_0x3349b5(0x12b)]),_0x8022ba=_0x2dea3e[_0x3349b5(0x1aa)](_0xec1f4e[_0x3349b5(0x108)]),_0x5cba7b={..._0x5162f2[_0x3349b5(0x176)],'width':_0x45ccf5,'height':_0x344bbe,'left':_0x3ee4a6,'top':_0xe60124,'flipX':_0x564d56,'flipY':_0x38031c,'angle':(_0x2c3ee6=_0x412f9e==null?(_0x12f8ca=_0x5162f2['transform'])==null?void 0x0:_0x12f8ca[_0x3349b5(0x172)]:_0x412f9e)==null?0x0:_0x2c3ee6},_0x115307=(0x0,_0x517876[_0x3349b5(0x105)])(_0x5cba7b,_0x4470d0),_0x594f5d=(0x0,_0x517876[_0x3349b5(0x116)])(_0x5cba7b,_0x4470d0),_0x432cca=_0x504265[_0x3349b5(0x181)](),_0x240098=_0x504265[_0x3349b5(0x148)](),_0xa95841={'unitId':_0x143207,'subUnitId':_0x5938d1,'drawingId':_0x528e10,'drawingType':_0xfb4ab[_0x3349b5(0x124)][_0x3349b5(0x115)],'sheetTransform':_0x115307,'transform':_0x5cba7b,'data':{'shapeType':_0x102747||_0x3c1b74||_0x432cca,'shapeData':{..._0x240098,'adjustValues':_0xdfc059||_0x117b60||(_0x240098==null?void 0x0:_0x240098[_0x3349b5(0x15f)]),'relation':_0x288c75||_0x25e954||(_0x240098==null?void 0x0:_0x240098[_0x3349b5(0xed)])}},'axisAlignSheetTransform':_0x594f5d,'allowTransform':!0x0},{undo:_0x58d010,redo:_0xa9128c,objects:_0x25f890}=_0x9e0b0d['getBatchUpdateOp']([_0xa95841]),_0x45eb38=_0x8022ba[_0x3349b5(0x180)]({'id':_0x517876[_0x3349b5(0xf3)]['id'],'params':{'unitId':_0x143207,'drawings':[_0xa95841]}}),_0x40a924=[...(_0x1fbff2=_0x45eb38[_0x3349b5(0x13f)])==null?[]:_0x1fbff2,{'id':_0x517876['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x143207,'subUnitId':_0x5938d1,'op':_0xa9128c,'objects':_0x25f890,'type':_0x517876[_0x3349b5(0x167)]['UPDATE']}},{'id':_0x517876['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x143207]},..._0x45eb38[_0x3349b5(0x119)],{'id':_0x3c20bc['id'],'params':{'unitId':_0x143207,'subUnitId':_0x5938d1,'shapeId':_0x528e10,'shapeType':_0x102747,'shapeData':{'adjustValues':_0xdfc059,'relation':_0x288c75}}}],_0x2a883a=[...(_0x2d4ec8=_0x45eb38[_0x3349b5(0x122)])==null?[]:_0x2d4ec8,{'id':_0x517876[_0x3349b5(0xf5)]['id'],'params':{'unitId':_0x143207,'subUnitId':_0x5938d1,'op':_0x58d010,'objects':_0x25f890,'type':_0x517876[_0x3349b5(0x167)]['UPDATE']}},{'id':_0x517876['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x143207]},..._0x45eb38['undos'],{'id':_0x3c20bc['id'],'params':{'unitId':_0x143207,'subUnitId':_0x5938d1,'shapeId':_0x528e10,'shapeType':_0x432cca,'shapeData':{..._0x240098,'adjustValues':_0x117b60||(_0x240098==null?void 0x0:_0x240098['adjustValues']),'relation':_0x25e954||(_0x240098==null?void 0x0:_0x240098[_0x3349b5(0xed)])}}}];return(0x0,_0xfb4ab[_0x3349b5(0x127)])(_0x40a924,_0x4d99cb)?(_0x18ddfd[_0x3349b5(0xee)]({'unitID':_0x143207,'undoMutations':_0x2a883a,'redoMutations':_0x40a924}),!0x0):!0x1;}},_0x2bc9e5={'type':_0xfb4ab[_0x465f7e(0x11f)][_0x465f7e(0x11c)],'id':_0x465f7e(0x15d),'handler':(_0x2ef392,_0x1b873a)=>{const _0x37ec66=_0x465f7e;var _0x209963,_0x3c3523;let _0x51a9d1=(0x0,_0xec1f4e[_0x37ec66(0x192)])(_0x2ef392[_0x37ec66(0x1aa)](_0xfb4ab[_0x37ec66(0x1ad)]),_0x1b873a);if(!_0x51a9d1)return!0x1;let _0x3631a8=_0x2ef392['get'](_0xec1f4e[_0x37ec66(0x1a1)]),{unitId:_0x1b6833,subUnitId:_0x1acede}=_0x51a9d1,_0x524c12=_0x3631a8[_0x37ec66(0x13b)](_0x1b6833,_0x1acede);if(!_0x524c12)return!0x1;let _0x34f601=_0x2ef392[_0x37ec66(0x1aa)](_0x517876[_0x37ec66(0x114)]),{shapeId:_0x240556,width:_0x5f2525,height:_0x8705fb,left:_0x1679c5,top:_0x53e0c8,flipX:_0x307404,flipY:_0x441210,angle:_0x365a8a,oldAdjustValues:_0x2f61a3,newAdjustValues:_0x1a33ea,oldLineType:_0x4ac3bb,newLineType:_0x38d7ba}=_0x1b873a,_0x27d322=_0x34f601['getDrawingByParam']({'unitId':_0x1b6833,'subUnitId':_0x1acede,'drawingId':_0x240556});if(!_0x27d322)return!0x1;let _0x548254=_0x2ef392[_0x37ec66(0x1aa)](_0x4819b3)[_0x37ec66(0xd9)](_0x1b6833,_0x1acede,_0x240556);if(!_0x548254)return!0x1;let _0x55acae=_0x2ef392[_0x37ec66(0x1aa)](_0xfb4ab[_0x37ec66(0x106)]),_0x5981f2=_0x2ef392[_0x37ec66(0x1aa)](_0xfb4ab['IUndoRedoService']),_0x2b0c1d=_0x2ef392[_0x37ec66(0x1aa)](_0xec1f4e[_0x37ec66(0x108)]),_0x41db13={..._0x27d322['transform'],'width':_0x5f2525,'height':_0x8705fb,'left':_0x1679c5,'top':_0x53e0c8,'flipX':_0x307404,'flipY':_0x441210,'angle':_0x365a8a},_0x2ea4f5=(0x0,_0x517876[_0x37ec66(0x105)])(_0x41db13,_0x524c12),_0x512c81=(0x0,_0x517876[_0x37ec66(0x116)])(_0x41db13,_0x524c12),_0x39e0d6=_0x548254[_0x37ec66(0x181)](),_0x213b57=_0x548254[_0x37ec66(0x148)](),_0x175ff3={'unitId':_0x1b6833,'subUnitId':_0x1acede,'drawingId':_0x240556,'drawingType':_0xfb4ab[_0x37ec66(0x124)][_0x37ec66(0x115)],'sheetTransform':_0x2ea4f5,'transform':_0x41db13,'data':{'shapeType':_0x38d7ba||_0x4ac3bb||_0x39e0d6,'shapeData':{..._0x213b57,'adjustValues':_0x1a33ea||_0x2f61a3||(_0x213b57==null?void 0x0:_0x213b57[_0x37ec66(0x15f)])}},'axisAlignSheetTransform':_0x512c81,'allowTransform':!0x0},{undo:_0x7cd403,redo:_0x32bfab,objects:_0x156e52}=_0x34f601[_0x37ec66(0x166)]([_0x175ff3]),_0x405cca=_0x2b0c1d[_0x37ec66(0x180)]({'id':_0x517876['SetSheetDrawingCommand']['id'],'params':{'unitId':_0x1b6833,'drawings':[_0x175ff3]}}),_0x4bdd6f=[...(_0x209963=_0x405cca['preRedos'])==null?[]:_0x209963,{'id':_0x517876[_0x37ec66(0xf5)]['id'],'params':{'unitId':_0x1b6833,'subUnitId':_0x1acede,'op':_0x32bfab,'objects':_0x156e52,'type':_0x517876[_0x37ec66(0x167)][_0x37ec66(0xfa)]}},{'id':_0x517876[_0x37ec66(0x19e)]['id'],'params':[_0x1b6833]},..._0x405cca[_0x37ec66(0x119)],{'id':_0x3c20bc['id'],'params':{'unitId':_0x1b6833,'subUnitId':_0x1acede,'shapeId':_0x240556,'shapeType':_0x38d7ba,'shapeData':{'adjustValues':_0x1a33ea}}}],_0x2c9476=[...(_0x3c3523=_0x405cca['preUndos'])==null?[]:_0x3c3523,{'id':_0x517876[_0x37ec66(0xf5)]['id'],'params':{'unitId':_0x1b6833,'subUnitId':_0x1acede,'op':_0x7cd403,'objects':_0x156e52,'type':_0x517876[_0x37ec66(0x167)][_0x37ec66(0xfa)]}},{'id':_0x517876['ClearSheetDrawingTransformerOperation']['id'],'params':[_0x1b6833]},..._0x405cca[_0x37ec66(0x183)],{'id':_0x3c20bc['id'],'params':{'unitId':_0x1b6833,'subUnitId':_0x1acede,'shapeId':_0x240556,'shapeType':_0x39e0d6,'shapeData':{..._0x213b57,'adjustValues':_0x2f61a3||(_0x213b57==null?void 0x0:_0x213b57[_0x37ec66(0x15f)])}}}];return(0x0,_0xfb4ab['sequenceExecute'])(_0x4bdd6f,_0x55acae)?(_0x5981f2['pushUndoRedo']({'unitID':_0x1b6833,'undoMutations':_0x2c9476,'redoMutations':_0x4bdd6f}),!0x0):!0x1;}},_0x1657c3={'id':_0x465f7e(0x157),'type':_0xfb4ab[_0x465f7e(0x11f)][_0x465f7e(0x173)],'handler':(_0x20e8e2,_0x32d057)=>{const _0x592e4e=_0x465f7e;let {unitId:_0xfb9b7f,subUnitId:_0x4c73e4,shapeType:_0x43461b,shapeId:_0x1e9ae2,shapeData:_0x3a685c}=_0x32d057,_0x157ddd=_0x20e8e2[_0x592e4e(0x1aa)](_0x4819b3)[_0x592e4e(0xd9)](_0xfb9b7f,_0x4c73e4,_0x1e9ae2);return _0x157ddd&&(_0x157ddd[_0x592e4e(0x15b)](_0x43461b),_0x3a685c&&(_0x157ddd==null||_0x157ddd['setShapeData'](_0x3a685c))),!0x0;}},_0x5127c3={'id':'sheet.command.update-shape-type','type':_0xfb4ab[_0x465f7e(0x11f)]['COMMAND'],'handler':(_0xe44270,_0x51faab)=>{const _0x8997fe=_0x465f7e;if(!_0x51faab)return!0x1;let _0x2ca5d3=_0xe44270['get'](_0xfb4ab[_0x8997fe(0x106)]),_0x3e5177=_0xe44270['get'](_0x4819b3),_0x2d5b90=_0xe44270[_0x8997fe(0x1aa)](_0xfb4ab[_0x8997fe(0x12b)]),_0x23fda1=[],_0x27833d=[],{unitId:_0x2bda81,subUnitId:_0x1e3268,shapeId:_0x4d0b4b,shapeType:_0x4131a6,shapeData:_0x32c7b4}=_0x51faab,_0x4d116a=_0x3e5177['getShapeModel'](_0x2bda81,_0x1e3268,_0x4d0b4b);if(_0x4d116a){let _0x562105=_0x4d116a[_0x8997fe(0x181)](),_0x2e04fd=Object[_0x8997fe(0xf4)]({},_0x4d116a[_0x8997fe(0x148)]()),_0x30177a={'unitId':_0x2bda81,'subUnitId':_0x1e3268,'shapeId':_0x4d0b4b,'shapeType':_0x4131a6,'shapeData':_0x32c7b4},_0x2ec6bc={'unitId':_0x2bda81,'subUnitId':_0x1e3268,'shapeId':_0x4d0b4b,'shapeType':_0x562105,'shapeData':_0x2e04fd};return _0x23fda1[_0x8997fe(0xe3)]({'id':_0x1657c3['id'],'params':_0x30177a}),_0x27833d['push']({'id':_0x1657c3['id'],'params':_0x2ec6bc}),_0x23fda1[_0x8997fe(0xeb)](_0x471a16=>_0x2ca5d3[_0x8997fe(0xd8)](_0x471a16['id'],_0x471a16['params']))&&_0x2d5b90['pushUndoRedo']({'unitID':_0x2bda81,'redoMutations':[..._0x23fda1],'undoMutations':[..._0x27833d]}),!0x0;}return!0x1;}};var _0x235589=_0x465f7e(0x13d),_0x13a1a7='0.20.0';let _0x1c97b8=_0x465f7e(0x16c);Symbol(_0x1c97b8);let _0x38a247={},_0x94083=class extends _0xfb4ab['Disposable']{constructor(_0x2ef852,_0x1f8d00,_0x481407,_0x4cf0d6,_0x44bf46){const _0x3cb857=_0x465f7e;super(),this[_0x3cb857(0x1a8)]=_0x2ef852,this[_0x3cb857(0x194)]=_0x1f8d00,this[_0x3cb857(0x10b)]=_0x481407,this['_sheetsShapeService']=_0x4cf0d6,this[_0x3cb857(0x163)]=_0x44bf46,this[_0x3cb857(0x10e)](),this['_initCommandInterceptor']();}['_initCommands'](){const _0x641843=_0x465f7e;[_0x383020,_0x3d662d,_0x4b6993,_0xbeaf66,_0x56f6ba,_0x2bc9e5,_0x42f6e6,_0x468f4f,_0x1657c3,_0x3c20bc][_0x641843(0x17d)](_0xe7fb21=>this[_0x641843(0x1a6)](this[_0x641843(0x1a8)][_0x641843(0xe0)](_0xe7fb21)));}[_0x465f7e(0x141)](){const _0x55974a=_0x465f7e;this[_0x55974a(0x1a6)](this[_0x55974a(0x194)][_0x55974a(0x132)]({'getMutations':_0x3dc834=>{const _0x5de457=_0x55974a;if(_0x3dc834['id']===_0x517876[_0x5de457(0x19c)]['id']){let {drawings:_0x1654ac}=_0x3dc834[_0x5de457(0x1a5)],_0x421fb2=_0x1654ac['filter'](_0x275f0e=>_0x275f0e[_0x5de457(0x1a3)]===_0xfb4ab[_0x5de457(0x124)]['DRAWING_SHAPE']);if(_0x421fb2['length']===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x38200b=[],_0x1fe4a1=[];return _0x421fb2[_0x5de457(0x17d)](_0x16ee14=>{const _0x2f2f3a=_0x5de457;let {unitId:_0xdd945d,subUnitId:_0x26e2a8,drawingId:_0x2bdba9}=_0x16ee14,_0x556fa4=this[_0x2f2f3a(0x152)][_0x2f2f3a(0xd9)](_0xdd945d,_0x26e2a8,_0x2bdba9);if(!_0x556fa4)throw TypeError(_0x2f2f3a(0x15a)+_0x556fa4);_0x38200b[_0x2f2f3a(0xe3)]({'id':_0x468f4f['id'],'params':{'unitId':_0xdd945d,'subUnitId':_0x26e2a8,'shapeId':_0x2bdba9}}),_0x1fe4a1['push']({'id':_0x42f6e6['id'],'params':{'unitId':_0xdd945d,'subUnitId':_0x26e2a8,'shapeId':_0x2bdba9,'shapeType':_0x556fa4[_0x2f2f3a(0x181)](),'shapeData':_0x556fa4[_0x2f2f3a(0x148)]()}});let _0x3aab67=this[_0x2f2f3a(0x152)][_0x2f2f3a(0x130)](_0xdd945d,_0x26e2a8,_0x2bdba9);if(_0x3aab67)for(let _0x1b2bf9 of _0x3aab67){let _0xae3efb=_0x1b2bf9['lineShapeId'],_0x4d4d14=_0x1b2bf9[_0x2f2f3a(0x18e)],_0x2cf23c=_0x4d4d14?{'from':void 0x0}:{'to':void 0x0},_0x15e93b=_0x4d4d14?{'from':{'shapeId':_0x1b2bf9['shapeId'],'cxnIndex':_0x1b2bf9[_0x2f2f3a(0x177)]}}:{'to':{'shapeId':_0x1b2bf9['shapeId'],'cxnIndex':_0x1b2bf9[_0x2f2f3a(0x177)]}};_0x38200b[_0x2f2f3a(0xe3)]({'id':_0x3c20bc['id'],'params':{'unitId':_0xdd945d,'subUnitId':_0x26e2a8,'shapeId':_0xae3efb,'shapeData':{'relation':_0x2cf23c}}}),_0x1fe4a1['push']({'id':_0x3c20bc['id'],'params':{'unitId':_0xdd945d,'subUnitId':_0x26e2a8,'shapeId':_0xae3efb,'shapeData':{'relation':_0x15e93b}}});}}),{'preRedos':_0x38200b,'redos':[],'preUndos':[],'undos':_0x1fe4a1};}if(_0x3dc834['id']===_0x517876['SetSheetDrawingCommand']['id']){let {drawings:_0x170599}=_0x3dc834[_0x5de457(0x1a5)],_0x40efa4=_0x170599[_0x5de457(0xe9)](_0x5a3a3d=>_0x5a3a3d[_0x5de457(0x1a3)]===_0xfb4ab['DrawingTypeEnum'][_0x5de457(0x115)]);if(_0x40efa4[_0x5de457(0x14e)]===0x0)return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};let _0x1399ef=[],_0x3845f4=[];for(let _0x21c09b of _0x40efa4){let {unitId:_0x3cf7f2,subUnitId:_0x517142,drawingId:_0x4f5965,transform:_0x586085}=_0x21c09b;if(!_0x3cf7f2||!_0x517142||!_0x4f5965||!_0x586085)continue;let _0xc5b859=this[_0x5de457(0x152)][_0x5de457(0xd9)](_0x3cf7f2,_0x517142,_0x4f5965);if(!_0xc5b859)throw TypeError(_0x5de457(0x15a)+_0xc5b859);if((0x0,_0x530db4[_0x5de457(0x1a0)])(_0xc5b859[_0x5de457(0x181)]())){let _0x3133d5=this[_0x5de457(0x152)]['getLineShapeRelation'](_0x3cf7f2,_0x517142,_0x4f5965);_0x3133d5&&(_0x1399ef[_0x5de457(0xe3)]({'id':_0x3c20bc['id'],'params':{'unitId':_0x3cf7f2,'subUnitId':_0x517142,'shapeId':_0x4f5965,'shapeData':{'relation':{'from':void 0x0,'to':void 0x0}}}}),_0x3845f4[_0x5de457(0xe3)]({'id':_0x3c20bc['id'],'params':{'unitId':_0x3cf7f2,'subUnitId':_0x517142,'shapeId':_0x4f5965,'shapeData':{'relation':_0x3133d5}}}));}else{let _0x28698f=this[_0x5de457(0x152)][_0x5de457(0x130)](_0x3cf7f2,_0x517142,_0x4f5965);if(_0x28698f&&_0x28698f['length']>0x0)for(let _0x41d63b of _0x28698f){let _0x40efbd=_0x41d63b[_0x5de457(0xfc)],_0x24f034=_0x41d63b[_0x5de457(0x18e)],_0x4a237f=this['_sheetsShapeService']['getShapeModel'](_0x3cf7f2,_0x517142,_0x40efbd);if(!_0x4a237f)continue;let _0x17e58b=_0x4a237f[_0x5de457(0xe2)](),_0x24da33=_0x4a237f['getEndConnectInfo']();_0x17e58b&&_0x24da33?this[_0x5de457(0x134)](_0x3cf7f2,_0x517142,_0x40efbd,_0x4a237f,_0x17e58b,_0x24da33,_0x1399ef,_0x3845f4,_0x4f5965,_0x586085):this[_0x5de457(0x126)](_0x3cf7f2,_0x517142,_0x40efbd,_0x4a237f,_0x24f034?_0x17e58b:_0x24da33,_0x24f034,_0x1399ef,_0x3845f4,_0x4f5965,_0x586085);}}}return{'preRedos':[],'redos':_0x1399ef,'preUndos':_0x3845f4,'undos':[]};}return{'preRedos':[],'redos':[],'preUndos':[],'undos':[]};}}));}[_0x465f7e(0x111)](_0xfb6a7,_0x56b895,_0x479eee,_0x406f04,_0x557092){const _0x5c2b60=_0x465f7e;if(!_0x56b895||!_0x479eee)return null;let {shapeId:_0x37d6a8,cxnIndex:_0x4d8255}=_0xfb6a7,_0x2ed62c=this[_0x5c2b60(0x152)]['getShapeModel'](_0x56b895,_0x479eee,_0x37d6a8);if(!_0x2ed62c)return null;let _0x432379=this['_drawingManagerService'][_0x5c2b60(0x171)]({'unitId':_0x56b895,'subUnitId':_0x479eee,'drawingId':_0x37d6a8});if(!(_0x432379!=null&&_0x432379['transform']))return null;let {left:_0x2b5d16=0x0,top:_0x4e5b8c=0x0,width:_0x5acee1=0x0,height:_0x4768a5=0x0,flipX:_0x298f31=!0x1,flipY:_0x28ddf5=!0x1,angle:_0x2b118b}=_0x432379['transform'];if(_0x557092&&_0x406f04===_0x37d6a8){var _0x554411,_0x28881e,_0x327569,_0x5dabf0,_0x3c2e3a,_0x17d39b,_0x401079;_0x2b5d16=(_0x554411=_0x557092['left'])==null?_0x2b5d16:_0x554411,_0x4e5b8c=(_0x28881e=_0x557092[_0x5c2b60(0x17b)])==null?_0x4e5b8c:_0x28881e,_0x5acee1=(_0x327569=_0x557092[_0x5c2b60(0x14a)])==null?_0x5acee1:_0x327569,_0x4768a5=(_0x5dabf0=_0x557092[_0x5c2b60(0xdb)])==null?_0x4768a5:_0x5dabf0,_0x298f31=(_0x3c2e3a=_0x557092[_0x5c2b60(0xea)])==null?_0x298f31:_0x3c2e3a,_0x28ddf5=(_0x17d39b=_0x557092[_0x5c2b60(0xe5)])==null?_0x28ddf5:_0x17d39b,_0x2b118b=(_0x401079=_0x557092['angle'])==null?_0x2b118b:_0x401079;}_0x2ed62c[_0x5c2b60(0x170)]({'width':_0x5acee1,'height':_0x4768a5});let _0x4c589e=_0x2ed62c[_0x5c2b60(0x139)]()[_0x5c2b60(0x19b)](_0x10fc85=>_0x10fc85['index']===_0x4d8255);if(!_0x4c589e)return null;let _0x185ad1=_0x298f31?_0x5acee1-_0x4c589e['x']:_0x4c589e['x'],_0x322b36=_0x28ddf5?_0x4768a5-_0x4c589e['y']:_0x4c589e['y'];if(_0x2b118b!==0x0&&_0x2b118b!=null){let _0xb8baa0=_0x2b118b*Math['PI']/0xb4,_0xbed173=Math[_0x5c2b60(0x147)](_0xb8baa0),_0x35001c=Math['sin'](_0xb8baa0),_0x46c09f=_0x5acee1/0x2,_0x52c229=_0x4768a5/0x2,_0x1d9dea=_0x185ad1-_0x46c09f,_0x33bf95=_0x322b36-_0x52c229;_0x185ad1=_0x46c09f+_0x1d9dea*_0xbed173-_0x33bf95*_0x35001c,_0x322b36=_0x52c229+_0x1d9dea*_0x35001c+_0x33bf95*_0xbed173;}_0x185ad1+=_0x2b5d16,_0x322b36+=_0x4e5b8c;let _0x43d167=_0x4c589e[_0x5c2b60(0x112)]/0xea60;_0x298f31&&(_0x43d167=0xb4-_0x43d167),_0x28ddf5&&(_0x43d167=-_0x43d167),_0x43d167+=_0x2b118b||0x0,_0x43d167=(_0x43d167%0x168+0x168)%0x168;let _0x282aa0=(0x0,_0x530db4['getBasicShapeRotateBound'])({'left':_0x2b5d16,'top':_0x4e5b8c,'width':_0x5acee1,'height':_0x4768a5},_0x2b118b||0x0);return{'point':{'x':_0x185ad1,'y':_0x322b36},'angle':_0x43d167,'bounds':_0x282aa0};}[_0x465f7e(0x134)](_0x3090c1,_0x51ffdf,_0xc60658,_0x4d19fc,_0xb1d4a,_0x43e26c,_0x563423,_0x42481c,_0x5c72e1,_0x119917){const _0x44b2b2=_0x465f7e;let _0x187e28=this[_0x44b2b2(0x10b)][_0x44b2b2(0x13b)](_0x3090c1,_0x51ffdf);if(!_0x187e28)return;let _0x59f27c=_0x4d19fc[_0x44b2b2(0x100)](),_0x150f30=_0x4d19fc[_0x44b2b2(0x104)](),_0x77c78c={},_0x185ff3={};_0x150f30['forEach'](_0x53af04=>{const _0x4063d0=_0x44b2b2;let _0x33be2=_0x4d19fc[_0x4063d0(0x17c)](_0x53af04);_0x185ff3[_0x53af04]=_0x33be2==null?0x0:_0x33be2;});let _0x4fa813=this['_getConnectPointInfo'](_0xb1d4a,_0x3090c1,_0x51ffdf,_0x5c72e1,_0x119917),_0x284f1a=this[_0x44b2b2(0x111)](_0x43e26c,_0x3090c1,_0x51ffdf,_0x5c72e1,_0x119917);if(_0x4fa813&&_0x284f1a){let _0x51a806=_0x4d19fc['getShapeType'](),_0x30fc04=(0x0,_0x530db4[_0x44b2b2(0xdf)])(_0x4fa813,_0x284f1a,_0x51a806),_0x15af81=_0x51a806;if(_0x30fc04){let _0xdfa53b=(0x0,_0x530db4[_0x44b2b2(0x168)])(_0x30fc04,_0x4d19fc[_0x44b2b2(0x181)]()),_0x2814e1=this[_0x44b2b2(0x163)][_0x44b2b2(0x18d)](_0x3090c1,_0x51ffdf);if(_0x2814e1&&_0x2814e1[_0xc60658]){let _0x17281c=_0x2814e1[_0xc60658];_0x15af81=_0xdfa53b[_0x44b2b2(0x15c)];for(let [_0x3199de,_0x1fd0e6]of Object['entries'](_0xdfa53b[_0x44b2b2(0x15f)]))_0x77c78c[_0x3199de]=_0x1fd0e6;let _0x9dfe82={..._0x17281c[_0x44b2b2(0x176)],'width':_0xdfa53b['worldRect'][_0x44b2b2(0x14a)],'height':_0xdfa53b[_0x44b2b2(0x16f)][_0x44b2b2(0xdb)],'left':_0xdfa53b['worldRect'][_0x44b2b2(0xda)],'top':_0xdfa53b[_0x44b2b2(0x16f)][_0x44b2b2(0x17b)],'flipX':_0xdfa53b['worldRect'][_0x44b2b2(0xea)],'flipY':_0xdfa53b[_0x44b2b2(0x16f)][_0x44b2b2(0xe5)],'angle':_0xdfa53b[_0x44b2b2(0x17f)]},_0x466b1b=(0x0,_0x517876[_0x44b2b2(0x105)])(_0x9dfe82,_0x187e28),_0x22992f=(0x0,_0x517876[_0x44b2b2(0x116)])(_0x9dfe82,_0x187e28),_0x3ad58b={'unitId':_0x3090c1,'subUnitId':_0x51ffdf,'drawingType':_0xfb4ab[_0x44b2b2(0x124)][_0x44b2b2(0x115)],'drawingId':_0xc60658,'transform':_0x9dfe82,'sheetTransform':_0x466b1b,'axisAlignSheetTransform':_0x22992f},{unitId:_0x1a9f8d,subUnitId:_0xde743f,undo:_0x598fe9,redo:_0x49969c,objects:_0x283db6}=this[_0x44b2b2(0x163)][_0x44b2b2(0x166)]([_0x3ad58b]);_0x563423['push']({'id':_0x517876[_0x44b2b2(0xf5)]['id'],'params':{'unitId':_0x1a9f8d,'subUnitId':_0xde743f,'op':_0x49969c,'objects':_0x283db6,'type':_0x517876[_0x44b2b2(0x167)][_0x44b2b2(0xfa)]}}),_0x42481c[_0x44b2b2(0xe3)]({'id':_0x517876[_0x44b2b2(0xf5)]['id'],'params':{'unitId':_0x1a9f8d,'subUnitId':_0xde743f,'op':_0x598fe9,'objects':_0x283db6,'type':_0x517876['DrawingApplyType']['UPDATE']}});}_0x4d19fc[_0x44b2b2(0x131)]();}_0x563423[_0x44b2b2(0xe3)]({'id':_0x3c20bc['id'],'params':{'unitId':_0x3090c1,'subUnitId':_0x51ffdf,'shapeId':_0xc60658,'shapeType':_0x15af81,'shapeData':{'adjustValues':_0x77c78c,'relation':_0x59f27c}}}),_0x42481c['push']({'id':_0x3c20bc['id'],'params':{'unitId':_0x3090c1,'subUnitId':_0x51ffdf,'shapeId':_0xc60658,'shapeType':_0x51a806,'shapeData':{'adjustValues':_0x185ff3,'relation':_0x59f27c}}});}}[_0x465f7e(0x126)](_0xf0bc75,_0x454218,_0x3de8b5,_0x5aff88,_0xa536f7,_0x583e24,_0x2615a3,_0x9f97a0,_0x2495ed,_0x4f8366){const _0x363ea1=_0x465f7e;var _0x5d9679;if(!_0xa536f7)return;let _0x2ebacd=this[_0x363ea1(0x10b)]['getSkeleton'](_0xf0bc75,_0x454218);if(!_0x2ebacd)return;let _0x59b41d=(_0x5d9679=this['_drawingManagerService'][_0x363ea1(0x171)]({'unitId':_0xf0bc75,'subUnitId':_0x454218,'drawingId':_0x2495ed}))==null?void 0x0:_0x5d9679[_0x363ea1(0x176)];if(!_0x59b41d)return;let _0x5b3bd9=_0x59b41d['left']!==_0x4f8366[_0x363ea1(0xda)]||_0x59b41d[_0x363ea1(0x17b)]!==_0x4f8366[_0x363ea1(0x17b)],_0x1d764b=_0x59b41d['width']!==_0x4f8366[_0x363ea1(0x14a)]||_0x59b41d['height']!==_0x4f8366['height'],_0x1481fa=_0x59b41d[_0x363ea1(0xea)]!==_0x4f8366[_0x363ea1(0xea)]||_0x59b41d[_0x363ea1(0xe5)]!==_0x4f8366['flipY'],_0xb2c390=_0x59b41d[_0x363ea1(0x172)]!==_0x4f8366[_0x363ea1(0x172)];if(_0x5b3bd9&&!_0x1d764b&&!_0x1481fa&&!_0xb2c390){var _0x195ff8,_0x347c7f,_0x1e2cf7,_0x11211b;let _0x17ac23=((_0x195ff8=_0x4f8366[_0x363ea1(0xda)])==null?0x0:_0x195ff8)-((_0x347c7f=_0x59b41d['left'])==null?0x0:_0x347c7f),_0x52c9d8=((_0x1e2cf7=_0x4f8366['top'])==null?0x0:_0x1e2cf7)-((_0x11211b=_0x59b41d[_0x363ea1(0x17b)])==null?0x0:_0x11211b),_0x47343a=this['_drawingManagerService'][_0x363ea1(0x18d)](_0xf0bc75,_0x454218);if(_0x47343a&&_0x47343a[_0x3de8b5]){var _0x58f19d,_0x405972,_0x2f9b4e,_0x396626;let _0x295ff5=_0x47343a[_0x3de8b5],_0x5eb8fb={..._0x295ff5[_0x363ea1(0x176)],'left':((_0x58f19d=(_0x405972=_0x295ff5['transform'])==null?void 0x0:_0x405972['left'])==null?0x0:_0x58f19d)+_0x17ac23,'top':((_0x2f9b4e=(_0x396626=_0x295ff5[_0x363ea1(0x176)])==null?void 0x0:_0x396626[_0x363ea1(0x17b)])==null?0x0:_0x2f9b4e)+_0x52c9d8},_0x419caf=(0x0,_0x517876[_0x363ea1(0x105)])(_0x5eb8fb,_0x2ebacd),_0x1592a3=(0x0,_0x517876[_0x363ea1(0x116)])(_0x5eb8fb,_0x2ebacd),_0x11a77f={'unitId':_0xf0bc75,'subUnitId':_0x454218,'drawingType':_0xfb4ab['DrawingTypeEnum'][_0x363ea1(0x115)],'drawingId':_0x3de8b5,'transform':_0x5eb8fb,'sheetTransform':_0x419caf,'axisAlignSheetTransform':_0x1592a3},{unitId:_0x2b36d5,subUnitId:_0x404db3,undo:_0x1f85e0,redo:_0xcf833f,objects:_0x35cfae}=this[_0x363ea1(0x163)]['getBatchUpdateOp']([_0x11a77f]);_0x2615a3[_0x363ea1(0xe3)]({'id':_0x517876[_0x363ea1(0xf5)]['id'],'params':{'unitId':_0x2b36d5,'subUnitId':_0x404db3,'op':_0xcf833f,'objects':_0x35cfae,'type':_0x517876['DrawingApplyType'][_0x363ea1(0xfa)]}}),_0x9f97a0['push']({'id':_0x517876['SetDrawingApplyMutation']['id'],'params':{'unitId':_0x2b36d5,'subUnitId':_0x404db3,'op':_0x1f85e0,'objects':_0x35cfae,'type':_0x517876[_0x363ea1(0x167)][_0x363ea1(0xfa)]}});}}else{let _0x583f59=_0x5aff88[_0x363ea1(0xe2)](),_0x4c695c=_0x5aff88[_0x363ea1(0x190)]();this['_addLineRerouteUpdates'](_0xf0bc75,_0x454218,_0x3de8b5,_0x5aff88,_0x583f59,_0x4c695c,_0x2615a3,_0x9f97a0,_0x2495ed,_0x4f8366);}}};_0x94083=_0x25c294([_0x4be714(0x0,_0xfb4ab[_0x465f7e(0x106)]),_0x4be714(0x1,(0x0,_0xfb4ab[_0x465f7e(0x14c)])(_0xec1f4e[_0x465f7e(0x108)])),_0x4be714(0x2,(0x0,_0xfb4ab[_0x465f7e(0x14c)])(_0xec1f4e[_0x465f7e(0x1a1)])),_0x4be714(0x3,(0x0,_0xfb4ab[_0x465f7e(0x14c)])(_0x4819b3)),_0x4be714(0x4,(0x0,_0xfb4ab[_0x465f7e(0x14c)])(_0x3402d7[_0x465f7e(0x155)]))],_0x94083);let _0x340227=class extends _0xfb4ab[_0x465f7e(0xf0)]{constructor(_0x588ef3=_0x38a247,_0x17aa5f,_0x405b2f,_0x3afb47){const _0x455d1f=_0x465f7e;super(),this[_0x455d1f(0x164)]=_0x588ef3,this[_0x455d1f(0x125)]=_0x17aa5f,this['_commandService']=_0x405b2f,this[_0x455d1f(0x184)]=_0x3afb47;let {..._0x16a4fd}=(0x0,_0xfb4ab[_0x455d1f(0x195)])({},_0x38a247,this['_config']);this['_configService'][_0x455d1f(0xff)](_0x1c97b8,_0x16a4fd);}[_0x465f7e(0x12c)](){const _0x3887c6=_0x465f7e;let _0x2042a9=this['_injector'];[[_0x4e5860],[_0x4819b3],[_0x94083]][_0x3887c6(0x17d)](_0x113044=>_0x2042a9[_0x3887c6(0x19a)](_0x113044)),(0x0,_0xfb4ab[_0x3887c6(0xde)])(_0x2042a9,[[_0x4819b3],[_0x94083]]);}};_0x4e862d(_0x340227,_0x465f7e(0xf1),_0xfb4ab[_0x465f7e(0x10d)][_0x465f7e(0x101)]),_0x4e862d(_0x340227,_0x465f7e(0x178),_0x465f7e(0xef)),_0x4e862d(_0x340227,'packageName',_0x235589),_0x4e862d(_0x340227,_0x465f7e(0x10f),_0x13a1a7),_0x340227=_0x25c294([(0x0,_0xfb4ab[_0x465f7e(0x145)])(_0x5010b3[_0x465f7e(0x159)]),_0x4be714(0x1,(0x0,_0xfb4ab[_0x465f7e(0x14c)])(_0xfb4ab[_0x465f7e(0xfb)])),_0x4be714(0x2,_0xfb4ab['ICommandService']),_0x4be714(0x3,_0xfb4ab[_0x465f7e(0x185)])],_0x340227),_0x41c456[_0x465f7e(0x199)]=0xc8,_0x41c456[_0x465f7e(0xe4)]=0xc8,_0x41c456[_0x465f7e(0x14b)]=_0x383020,_0x41c456[_0x465f7e(0xf9)]=_0x42f6e6,_0x41c456[_0x465f7e(0x14f)]=_0x468f4f,_0x41c456[_0x465f7e(0x174)]=_0x3d662d,_0x41c456[_0x465f7e(0x11e)]=_0xbeaf66,Object[_0x465f7e(0x117)](_0x41c456,_0x465f7e(0x15e),{'enumerable':!0x0,'get':function(){return _0x4819b3;}}),_0x41c456[_0x465f7e(0x12e)]=_0x4b6993,Object[_0x465f7e(0x117)](_0x41c456,_0x465f7e(0x18f),{'enumerable':!0x0,'get':function(){return _0x340227;}}),_0x41c456['UpdateConnectorRelationCommand']=_0x56f6ba,_0x41c456[_0x465f7e(0x17e)]=_0x2bc9e5,_0x41c456['UpdateSheetsShapeDataMutation']=_0x3c20bc,_0x41c456[_0x465f7e(0x1a4)]=_0x5127c3,_0x41c456[_0x465f7e(0xe8)]=_0x1657c3;}));function _0x1bf7(){const _0x450ea4=['getEndConnectInfo','fill','getSheetCommandTarget','call','_sheetInterceptorService','merge','keys','_disposed','startY','DEFAULT_SHAPE_HEIGHT','add','find','RemoveSheetDrawingCommand','removeShape','ClearSheetDrawingTransformerOperation','@univerjs/drawing','isConnectorShape','SheetSkeletonService','borderEnabled','drawingType','UpdateSheetsShapeTypeCommand','params','disposeWithMe','exports','_commandService','clear','get','getShapeDataById','UniverProLicense','IUniverInstanceService','syncExecuteCommand','getShapeModel','left','height','startX','getCellIndexAndOffsetByPosition','touchDependencies','routeConnectorLineShape','registerCommand','sheet.command.set-shape-drawing-data','getStartConnectInfo','push','DEFAULT_SHAPE_WIDTH','flipY','UniverSheetsDrawing','object','UpdateSheetsShapeTypeMutation','filter','flipX','every','sheet.mutation.update-shape-data','relation','pushUndoRedo','SHEET_SHAPE_PLUGIN','Plugin','type','9HrXbDb','SetSheetDrawingCommand','assign','SetDrawingApplyMutation','1142865gGbBay','shapeData','@univerjs/sheets-drawing','InsertSheetsShapeMutation','UPDATE','Injector','lineShapeId','_shapeModelManagerMap','_shapes','setConfig','getShapeRelation','UNIVER_SHEET','addShape','1140736eyDbID','getAdjustNames','transformToDrawingPosition','ICommandService','ShapeModel','SheetInterceptorService','constructor','isLineShape','_sheetSkeletonService','has','UniverInstanceType','_initCommands','version','toPrimitive','_getConnectPointInfo','ang','set','ISheetDrawingService','DRAWING_SHAPE','transformToAxisAlignPosition','defineProperty','setShapeData','redos','toStringTag','getCellWithCoordByIndex','COMMAND','decorate','SetSheetsShapeRotateCommand','CommandType','@univerjs/core','sheet.command.insert-shape','preUndos','function','DrawingTypeEnum','_injector','_addLineFollowShapeUpdates','sequenceExecute','from','delete','_initSnapshot','IUndoRedoService','onStarting','resizeEnabled','ToggleSheetsShapeFlipCommand','symbol','getBasicShapeRelation','removeLinePoints','interceptCommand','UniverCore','_addLineRerouteUpdates','sheet.command.set-shape-rotate','registerPluginResource','UniverProSheetsShape','UniverDrawing','getConnectionSiteList','442356YkDMGY','getSkeleton','105078tnowIv','@univerjs-pro/sheets-shape','sheet.mutation.insert-shape','preRedos','2234094TJTWcK','_initCommandInterceptor','stringify','prototype','position','DependentOn','_ensureShapeModelManager','cos','getShapeData','getLineShapeRelation','width','InsertShapeCommand','Inject','@univerjs/sheets','length','RemoveSheetsShapeMutation','Module','21052940gWfcrY','_sheetsShapeService','hasShape','UniverSheets','IDrawingManagerService','range','sheet.mutation.update-shape-type','insertShape','UniverLicensePlugin','Fail\x20to\x20get\x20shape\x20model,\x20get:\x20','setShapeType','lineType','sheet.command.update-line-shape-resize','SheetsShapeService','adjustValues','parse','data','86bWLwtl','_drawingManagerService','_config','fromJSON','getBatchUpdateOp','DrawingApplyType','computeConnectorRouteLayout','IResourceManagerService','toJSON','getBatchAddOp','sheets-shape.config','generateRandomId','dispose','worldRect','updateContext','getDrawingByParam','angle','MUTATION','SetShapeDrawingDataCommand','shapeId','transform','cxnIndex','pluginName','string','sheet.mutation.remove-shape','top','getAdjustValueByName','forEach','UpdateLineShapeResizeCommand','rotation','onCommandExecute','getShapeType','Disposable','undos','_configService','IConfigService','21LTwZwJ','_serializeShapeForUnit','rotateEnabled','_linesIds','_resourcesManagerService','1168OxmiDr','_deserializeShapeForUnit','getDrawingData','isFrom','UniverSheetsShapePlugin'];_0x1bf7=function(){return _0x450ea4;};return _0x1bf7();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/sheets-shape",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "private": false,
5
5
  "description": "shape for Univer.",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -35,6 +35,16 @@
35
35
  "require": "./lib/cjs/*",
36
36
  "types": "./lib/types/index.d.ts"
37
37
  },
38
+ "./facade": {
39
+ "import": "./lib/es/facade.js",
40
+ "require": "./lib/cjs/facade.js",
41
+ "types": "./lib/types/facade/index.d.ts"
42
+ },
43
+ "./lib/facade": {
44
+ "import": "./lib/es/facade.js",
45
+ "require": "./lib/cjs/facade.js",
46
+ "types": "./lib/types/facade/index.d.ts"
47
+ },
38
48
  "./lib/*": "./lib/*"
39
49
  },
40
50
  "main": "./lib/es/index.js",
@@ -53,15 +63,17 @@
53
63
  "npm": ">=8.0.0"
54
64
  },
55
65
  "dependencies": {
56
- "@univerjs-pro/engine-shape": "0.19.0",
57
- "@univerjs-pro/license": "0.19.0",
58
- "@univerjs/core": "0.19.0"
66
+ "@univerjs-pro/engine-shape": "0.20.0",
67
+ "@univerjs/core": "0.20.0",
68
+ "@univerjs/drawing": "0.20.0",
69
+ "@univerjs-pro/license": "0.20.0",
70
+ "@univerjs/sheets-drawing": "0.20.0",
71
+ "@univerjs/sheets": "0.20.0"
59
72
  },
60
73
  "devDependencies": {
61
74
  "typescript": "^6.0.2",
62
75
  "vitest": "^4.1.1",
63
- "@univerjs-infra/shared": "0.19.0",
64
- "@univerjs/sheets": "0.19.0"
76
+ "@univerjs-infra/shared": "0.20.0"
65
77
  },
66
78
  "scripts": {
67
79
  "test": "vitest run",