@univerjs-pro/engine-shape 1.0.0-alpha.8 → 1.0.0-beta.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.
@@ -20,7 +20,7 @@ import { FShape } from './f-shape';
20
20
  * const fConnectorShape = fDocument.insertShape({
21
21
  * shapeType: univerAPI.Enum.ShapeTypeEnum.StraightConnector1,
22
22
  * placement: {
23
- * wrappingStyle: univerAPI.Enum.DocsShapeWrappingStyle.WRAP_SQUARE,
23
+ * wrappingStyle: univerAPI.Enum.TextWrappingStyle.WRAP_SQUARE,
24
24
  * anchor: {
25
25
  * paragraphId: paragraph.getId(),
26
26
  * segmentId: paragraph.getSegmentId(),
@@ -38,7 +38,7 @@ export interface IShapeTextImageFillOptions {
38
38
  * const fShape = fDocument.insertShape({
39
39
  * shapeType: univerAPI.Enum.ShapeTypeEnum.Rect,
40
40
  * placement: {
41
- * wrappingStyle: univerAPI.Enum.DocsShapeWrappingStyle.INLINE,
41
+ * wrappingStyle: univerAPI.Enum.TextWrappingStyle.INLINE,
42
42
  * anchor: {
43
43
  * paragraphId: paragraph.getId(),
44
44
  * segmentId: paragraph.getSegmentId(),
@@ -1,4 +1,4 @@
1
- import type { IBasicShapeData, ImageSourceTypeEnum, IPresetShapeConfig, IShapeAdjustItemResolved, IShapeData, IShapeHostAdapter, IShapeLineStyle, IShapeRef, IShapeRelationItem, IShapeSnapshot, IShapeTransform, IShapeUpdateInput, ShapeGradientTypeEnum, ShapeHostType, ShapeLineCapEnum, ShapeLineDashEnum, ShapeLineJoinEnum, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
1
+ import type { IBasicShapeData, ImageSourceTypeEnum, IPresetShapeConfig, IShapeAdjustItemResolved, IShapeData, IShapeHostAdapter, IShapeLineStyle, IShapePath, IShapeRef, IShapeRelationItem, IShapeSnapshot, IShapeTransform, IShapeUpdateInput, ShapeGradientTypeEnum, ShapeHostType, ShapeLineCapEnum, ShapeLineDashEnum, ShapeLineJoinEnum, ShapeTypeEnum } from '@univerjs-pro/engine-shape';
2
2
  import type { Injector } from '@univerjs/core';
3
3
  import { IShapeHostAdapterRegistry, ShapeLineTypeEnum } from '@univerjs-pro/engine-shape';
4
4
  import { ICommandService } from '@univerjs/core';
@@ -24,6 +24,25 @@ export interface IShapeConnectionSite {
24
24
  /** Outward site angle in OOXML angle units (1/60000 degree). */
25
25
  ang: number;
26
26
  }
27
+ /**
28
+ * A single SVG path accepted by `FShape.setCustomGeometryFromSvgPath()`.
29
+ *
30
+ * `pathData` is the value of an SVG `<path d="...">` attribute, not complete SVG markup or a data
31
+ * URL. Fill and stroke colors remain Shape styles; `fill` and `stroke` only control whether this
32
+ * geometry path participates in filling and stroking.
33
+ */
34
+ export interface IShapeSvgPathGeometryOptions {
35
+ /** SVG `<path>` `d` attribute value. */
36
+ pathData: string;
37
+ /** Optional virtual SVG coordinate-space width. The path scales to the Shape width when set. */
38
+ width?: number;
39
+ /** Optional virtual SVG coordinate-space height. The path scales to the Shape height when set. */
40
+ height?: number;
41
+ /** Optional geometry fill mode. Use `'none'` for an open or stroke-only path. */
42
+ fill?: IShapePath['fill'];
43
+ /** Whether the Shape stroke is applied to this geometry path. */
44
+ stroke?: boolean;
45
+ }
27
46
  /** Optional image-fill properties accepted by `FShape.setImageFill()`. */
28
47
  export type IShapeImageFillOptions = Pick<ShapeFill, 'imageFillMode' | 'imageOpacity' | 'imageRotateWithShape' | 'stretchFillRect' | 'srcRect' | 'imageTile'>;
29
48
  /**
@@ -45,7 +64,7 @@ export type IShapeImageFillOptions = Pick<ShapeFill, 'imageFillMode' | 'imageOpa
45
64
  * const fShape = fDocument.insertShape({
46
65
  * shapeType: univerAPI.Enum.ShapeTypeEnum.Rect,
47
66
  * placement: {
48
- * wrappingStyle: univerAPI.Enum.DocsShapeWrappingStyle.INLINE,
67
+ * wrappingStyle: univerAPI.Enum.TextWrappingStyle.INLINE,
49
68
  * anchor: {
50
69
  * paragraphId: paragraph.getId(),
51
70
  * segmentId: paragraph.getSegmentId(),
@@ -392,6 +411,59 @@ export declare class FShape extends FBase {
392
411
  * ```
393
412
  */
394
413
  setCustomGeometry(customGeometry: IPresetShapeConfig): this;
414
+ /**
415
+ * Replaces this Shape's geometry with one SVG path.
416
+ *
417
+ * Use this method when the source is an SVG `<path>` `d` attribute. Do not pass complete
418
+ * `<svg>`/`<path>` markup, a data URL, CSS, transforms, fill colors, or stroke colors in
419
+ * `options.pathData`. Configure visual styles with Shape facade methods such as
420
+ * `setSolidFill()`, `setNoneFill()`, and `setStroke()`.
421
+ *
422
+ * All standard SVG path commands are supported: `M/m`, `L/l`, `H/h`, `V/v`, `C/c`, `S/s`,
423
+ * `Q/q`, `T/t`, `A/a`, and `Z/z`. Relative commands and repeated coordinate groups are
424
+ * converted to absolute engine-shape commands. SVG arcs are converted to cubic Bézier segments
425
+ * instead of being misinterpreted as engine-shape's semantically different OOXML `A` command.
426
+ *
427
+ * Parsing finishes before the host Shape is updated. Invalid or unsupported path data throws a
428
+ * `SyntaxError` and leaves the existing Shape geometry unchanged.
429
+ *
430
+ * @param {IShapeSvgPathGeometryOptions} options SVG path geometry and optional virtual bounds.
431
+ * @returns {FShape} This Shape facade for chaining.
432
+ *
433
+ * @example Board — executable with `univer execute`
434
+ * ```ts
435
+ * const board = univerAPI.getActiveBoard();
436
+ * if (!board) throw new Error('No active board');
437
+ *
438
+ * const shape = board.insertShape({
439
+ * shapeType: univerAPI.Enum.ShapeTypeEnum.Rect,
440
+ * transform: { left: 300, top: 100, width: 160, height: 200 },
441
+ * });
442
+ * if (!shape) throw new Error('Cannot insert shape');
443
+ *
444
+ * shape
445
+ * .setCustomGeometryFromSvgPath({
446
+ * // This is only the value of <path d="...">.
447
+ * pathData: 'M 50,10 C 34,20 24,64 22,92 L 78,92 C 76,64 66,20 50,10 Z',
448
+ * width: 100,
449
+ * height: 100,
450
+ * fill: 'none',
451
+ * stroke: true,
452
+ * })
453
+ * .setNoneFill()
454
+ * .setStroke({
455
+ * lineStrokeType: univerAPI.Enum.ShapeLineTypeEnum.SolidLine,
456
+ * color: '#F0509B',
457
+ * width: 3,
458
+ * });
459
+ *
460
+ * return {
461
+ * id: shape.getId(),
462
+ * pathCount: shape.getCustomGeometry()?.pathLst?.length ?? 0,
463
+ * };
464
+ * ```
465
+ */
466
+ setCustomGeometryFromSvgPath(options: IShapeSvgPathGeometryOptions): this;
395
467
  /**
396
468
  * Returns the sites where Connector endpoints can attach to this Shape.
397
469
  * Coordinates are local to the unrotated Shape bounds. Shapes without
@@ -1,6 +1,6 @@
1
1
  import './f-enum';
2
2
  export { FConnectorShape } from './f-connector-shape';
3
3
  export { FShape } from './f-shape';
4
- export type { IShapeConnectionSite, IShapeGradientStop, IShapeImageFillOptions } from './f-shape';
4
+ export type { IShapeConnectionSite, IShapeGradientStop, IShapeImageFillOptions, IShapeSvgPathGeometryOptions, } from './f-shape';
5
5
  export { FShapeText } from './f-shape-text';
6
6
  export type { IShapeTextImageFillOptions } from './f-shape-text';
@@ -20,3 +20,4 @@ export { isConnectorShape, isCurvedConnectorShape, } from './util/shape-util';
20
20
  export { buildConnectorEndpointUpdate, buildConnectorRoutePointsUpdate, createFreeConnectorPointInfo, resolveConnectorRoutePoints, resolveShapeConnectionPoint, } from './utils/connector.util';
21
21
  export { applyDocumentToShapeText, applyRichTextToShapeText, applyShapeTextAlignment, applyShapeTextStyle, applyTextToShapeText, normalizeShapeTextData, shapeTextToRichTextValue, } from './utils/shape-text-converter';
22
22
  export type { IShapeTextAlignmentOptions } from './utils/shape-text-converter';
23
+ export { parseSvgPathData } from './utils/svg-path-data';
@@ -5,6 +5,7 @@ export declare abstract class BaseShapeRenderModel {
5
5
  abstract readonly name: string;
6
6
  abstract readonly presetShapeConfig: IPresetShapeConfig;
7
7
  isLineShape(): boolean;
8
+ protected _isStrokeVisible(shapeData: IShapeData): boolean;
8
9
  getConnectorLinePoints(): IShapeGdContextKeyPoint[];
9
10
  /**
10
11
  * This method tests whether a point (pointX, pointY) hits any interactive parts of the shape,
@@ -115,6 +115,11 @@ export interface IShapeHostAdapter {
115
115
  */
116
116
  listShapesInUnit?(unitId: string): IShapeSnapshot[];
117
117
  createShape(scope: IShapeScope, input: IShapeCreateInput): IShapeSnapshot | null;
118
+ /**
119
+ * Creates Shapes atomically and returns snapshots in input order.
120
+ * Implementations must return `null` without retaining partial changes when any input or the host command fails.
121
+ */
122
+ createShapes?(scope: IShapeScope, inputs: IShapeCreateInput[]): IShapeSnapshot[] | null;
118
123
  updateShape(ref: IShapeRef, input: IShapeUpdateInput): boolean;
119
124
  /**
120
125
  * Builds the Host's existing Shape mutation for a successful Formula result.
@@ -81,7 +81,7 @@ export declare enum ShapePresetShadowValEnum {
81
81
  }
82
82
  /**
83
83
  * Shape fill type enum
84
- * Currently, PatternFill and PictureFill are not supported, but we define them for future use, if will be treat as Nofill currently.
84
+ * Shape fill types supported by the renderer.
85
85
  */
86
86
  export declare enum ShapeFillEnum {
87
87
  NoFill = 1,
@@ -0,0 +1,48 @@
1
+ import type { IPathCommand } from '../shape-type';
2
+ /**
3
+ * Parses an SVG `<path>` element's `d` attribute into engine-shape path commands.
4
+ *
5
+ * This helper parses path geometry only. It does not accept complete `<svg>` or `<path>` markup,
6
+ * data URLs, transforms, fill colors, or stroke styles. Configure those properties separately on
7
+ * the Shape.
8
+ *
9
+ * Supported SVG commands:
10
+ *
11
+ * - `M` / `m` — move to
12
+ * - `L` / `l` — line to
13
+ * - `H` / `h` — horizontal line to
14
+ * - `V` / `v` — vertical line to
15
+ * - `C` / `c` — cubic Bézier curve
16
+ * - `S` / `s` — smooth cubic Bézier curve
17
+ * - `Q` / `q` — quadratic Bézier curve
18
+ * - `T` / `t` — smooth quadratic Bézier curve
19
+ * - `A` / `a` — elliptical arc
20
+ * - `Z` / `z` — close path
21
+ *
22
+ * Repeated coordinate groups and relative commands are normalized to absolute `IPathCommand`
23
+ * values. `H` and `V` become `L`, smooth commands expand their reflected control points, and SVG
24
+ * arcs become one or more cubic `C` segments. SVG arcs are never forwarded as engine-shape `A`
25
+ * commands because that command follows different OOXML arc semantics.
26
+ *
27
+ * @param data The value of an SVG `<path d="...">` attribute.
28
+ * @returns Parsed, absolute engine-shape path commands.
29
+ * @throws {SyntaxError} When the path is empty, malformed, starts without `M`/`m`, or uses an
30
+ * unsupported SVG command.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const commands = parseSvgPathData(
35
+ * 'M 50,10 C 34,20 24,64 22,92 L 78,92 C 76,64 66,20 50,10 Z'
36
+ * );
37
+ *
38
+ * console.log(commands);
39
+ * // [
40
+ * // { command: 'M', points: [50, 10] },
41
+ * // { command: 'C', points: [34, 20, 24, 64, 22, 92] },
42
+ * // { command: 'L', points: [78, 92] },
43
+ * // { command: 'C', points: [76, 64, 66, 20, 50, 10] },
44
+ * // { command: 'z', points: [] },
45
+ * // ]
46
+ * ```
47
+ */
48
+ export declare function parseSvgPathData(data: string): IPathCommand[];
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x9a3e(_0x72f652,_0x18b6e5){_0x72f652=_0x72f652-0x77;const _0x2e1efc=_0x2e1e();let _0x9a3e10=_0x2e1efc[_0x72f652];return _0x9a3e10;}(function(_0x2f0eae,_0x3f89c1){const _0x4054bd=_0x9a3e,_0x3f8267=_0x2f0eae();while(!![]){try{const _0x24761=parseInt(_0x4054bd(0x135))/0x1+-parseInt(_0x4054bd(0x10e))/0x2*(-parseInt(_0x4054bd(0x14b))/0x3)+parseInt(_0x4054bd(0xec))/0x4*(parseInt(_0x4054bd(0x161))/0x5)+parseInt(_0x4054bd(0x13f))/0x6+-parseInt(_0x4054bd(0xe8))/0x7*(parseInt(_0x4054bd(0x93))/0x8)+-parseInt(_0x4054bd(0xe9))/0x9*(-parseInt(_0x4054bd(0x13a))/0xa)+-parseInt(_0x4054bd(0x12e))/0xb*(parseInt(_0x4054bd(0x109))/0xc);if(_0x24761===_0x3f89c1)break;else _0x3f8267['push'](_0x3f8267['shift']());}catch(_0x12b73b){_0x3f8267['push'](_0x3f8267['shift']());}}}(_0x2e1e,0x3f339),function(_0x50d2a2,_0x49bb4e){const _0x19d350=_0x9a3e;typeof exports==_0x19d350(0xa6)&&typeof module<'u'?_0x49bb4e(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define==_0x19d350(0xbc)&&define['amd']?define([_0x19d350(0xaf),_0x19d350(0x95),_0x19d350(0xde),_0x19d350(0x8b)],_0x49bb4e):(_0x50d2a2=typeof globalThis<'u'?globalThis:_0x50d2a2||self,_0x49bb4e(_0x50d2a2[_0x19d350(0x158)]={},_0x50d2a2[_0x19d350(0xc6)],_0x50d2a2[_0x19d350(0x12b)],_0x50d2a2[_0x19d350(0xe4)]));}(this,function(_0x11d2b6,_0x468705,_0x418bdc,_0x5adf97){const _0x121483=_0x9a3e;Object[_0x121483(0x123)](_0x11d2b6,Symbol[_0x121483(0x150)],{'value':_0x121483(0x121)});var _0x18b996=class extends _0x418bdc['FEnum']{get[_0x121483(0x138)](){const _0xfcfe10=_0x121483;return _0x468705[_0xfcfe10(0x138)];}get[_0x121483(0x162)](){return _0x468705['ShapeFillEnum'];}get[_0x121483(0x77)](){const _0x31effa=_0x121483;return _0x468705[_0x31effa(0x77)];}get['ShapeImageFillModeEnum'](){const _0x27b1a9=_0x121483;return _0x468705[_0x27b1a9(0x8a)];}get[_0x121483(0x154)](){const _0x510fd8=_0x121483;return _0x468705[_0x510fd8(0xf5)];}get[_0x121483(0x88)](){const _0x3b5ea8=_0x121483;return _0x468705[_0x3b5ea8(0x88)];}get[_0x121483(0x108)](){const _0x45f4e4=_0x121483;return _0x468705[_0x45f4e4(0x108)];}get[_0x121483(0x11f)](){const _0x151f08=_0x121483;return _0x468705[_0x151f08(0x11f)];}get['ShapeLineJoinEnum'](){const _0x27edca=_0x121483;return _0x468705[_0x27edca(0xd5)];}get[_0x121483(0xfc)](){const _0x333c24=_0x121483;return _0x468705[_0x333c24(0xfc)];}get['ShapeArrowTypeEnum'](){const _0x4ed300=_0x121483;return _0x468705[_0x4ed300(0x87)];}get[_0x121483(0xda)](){const _0x5e8224=_0x121483;return _0x468705[_0x5e8224(0xda)];}get[_0x121483(0x13b)](){const _0x5dc0a8=_0x121483;return _0x468705[_0x5dc0a8(0x13b)];}get[_0x121483(0xc1)](){const _0x45c910=_0x121483;return _0x468705[_0x45c910(0xc1)];}get[_0x121483(0x10d)](){return _0x468705['ShapeTextWrapType'];}};_0x418bdc['FEnum'][_0x121483(0x152)](_0x18b996);function _0x396b51(_0x56c1aa){const _0x3252e9=_0x121483;switch(_0x56c1aa){case _0x468705[_0x3252e9(0x77)][_0x3252e9(0x168)]:return'radial';case _0x468705[_0x3252e9(0x77)]['Angular']:return'angular';case _0x468705[_0x3252e9(0x77)]['Diamond']:return _0x3252e9(0xa2);case _0x468705[_0x3252e9(0x77)][_0x3252e9(0x15c)]:default:return _0x3252e9(0x144);}}function _0x4e49b2(_0x5daaba){return _0x5daaba===_0x468705['ImageFillModeEnum']['Tile']?'tile':'stretch';}var _0x3f5ec4=class{constructor(_0x2cb578,_0xda0e03){const _0x3f6f9b=_0x121483;this['_shapeRef']=_0x2cb578,this[_0x3f6f9b(0x12f)]=_0xda0e03;}[_0x121483(0x91)](){const _0x38d0bf=_0x121483;var _0x5b459f;return(0x0,_0x468705[_0x38d0bf(0xcf)])((_0x5b459f=this[_0x38d0bf(0xa9)]())==null?void 0x0:_0x5b459f[_0x38d0bf(0x7b)]);}[_0x121483(0x115)](){const _0x4fbc65=_0x121483;var _0x44ffc9,_0x1cf556;return(_0x44ffc9=(_0x1cf556=this[_0x4fbc65(0x91)]())==null?void 0x0:_0x1cf556[_0x4fbc65(0xa1)]())==null?null:_0x44ffc9;}[_0x121483(0xfe)](_0x1a7eed){return this['_updateShapeData'](_0x1e34aa=>({..._0x1e34aa,'shapeText':(0x0,_0x468705['applyRichTextToShapeText'])(_0x1e34aa['shapeText'],_0x1a7eed)})),this;}[_0x121483(0xd3)](_0x47ad5e){const _0x11047a=_0x121483;return this[_0x11047a(0xab)](_0x32bbb1=>({..._0x32bbb1,'shapeText':(0x0,_0x468705[_0x11047a(0x7a)])(_0x32bbb1['shapeText'],_0x47ad5e)})),this;}['setTextStyle'](_0xa71213){const _0x3625aa=_0x121483;return this['_updateShapeData'](_0x4cee81=>({..._0x4cee81,'shapeText':(0x0,_0x468705[_0x3625aa(0x16e)])(_0x4cee81[_0x3625aa(0x7b)],_0xa71213)})),this;}[_0x121483(0x11e)](_0x2219c8,_0x3b55b1){const _0x3046ec=_0x121483;return this[_0x3046ec(0xc8)]({'cl':{'rgb':_0x2219c8},'textFill':{'type':_0x3046ec(0xa3),'color':_0x2219c8,'opacity':_0x3b55b1}});}[_0x121483(0x157)](){const _0x5eb06b=_0x121483;return this[_0x5eb06b(0xc8)]({'cl':{'rgb':'rgba(0,\x200,\x200,\x200)'},'textFill':{'type':_0x5eb06b(0x145)}});}[_0x121483(0xb8)](_0x4a8832,_0x188d26,_0xca6750){const _0x206016=_0x121483;return _0x188d26[_0x206016(0xd4)]<0x2?(console[_0x206016(0x15a)]('[Shape\x20Text\x20Facade]:\x20Gradient\x20text\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.'),this):this[_0x206016(0xc8)]({'cl':{'rgb':_0x188d26[0x0]['color']},'textFill':{'type':_0x206016(0x166),'gradient':{'type':_0x396b51(_0x4a8832),'angle':_0xca6750,'stops':_0x188d26[_0x206016(0xc4)](({position:_0x1a268d,color:_0x209181,opacity:_0x540622})=>({'offset':_0x1a268d,'color':_0x209181,'opacity':_0x540622}))}}});}['setImageFill'](_0xf8cb65,_0x21648c=_0x468705[_0x121483(0xf5)][_0x121483(0x126)],_0x24a441={}){const _0x499f45=_0x121483;return this['setTextStyle']({'textFill':{'type':_0x499f45(0xc7),'picture':{'source':_0xf8cb65,'sourceType':_0x21648c,'opacity':_0x24a441['opacity'],'mode':_0x4e49b2(_0x24a441[_0x499f45(0x142)]),'scaleX':_0x24a441[_0x499f45(0xae)],'scaleY':_0x24a441['scaleY'],'offsetX':_0x24a441[_0x499f45(0x96)],'offsetY':_0x24a441[_0x499f45(0x156)]}}});}['setFontSize'](_0x28b633){const _0x56979b=_0x121483;return this[_0x56979b(0xc8)]({'fs':_0x28b633});}['setFontFamily'](_0x3eff22){const _0x214c65=_0x121483;return this[_0x214c65(0xc8)]({'ff':_0x3eff22});}[_0x121483(0x94)](_0x2dc34c){const _0x5efa0e=_0x121483;return this[_0x5efa0e(0xc8)]({'bl':_0x2dc34c?_0x5adf97[_0x5efa0e(0x14a)]['TRUE']:_0x5adf97[_0x5efa0e(0x14a)][_0x5efa0e(0xef)]});}[_0x121483(0xfb)](_0x31d0d1){const _0x1c4150=_0x121483;return this[_0x1c4150(0xc8)]({'it':_0x31d0d1?_0x5adf97[_0x1c4150(0x14a)]['TRUE']:_0x5adf97[_0x1c4150(0x14a)]['FALSE']});}['setUnderline'](_0x16d614){const _0x32307f=_0x121483;return this[_0x32307f(0xc8)]({'ul':{'s':_0x16d614?_0x5adf97[_0x32307f(0x14a)][_0x32307f(0x131)]:_0x5adf97[_0x32307f(0x14a)][_0x32307f(0xef)]}});}[_0x121483(0x7c)](_0x7c0055){const _0x1e8a9e=_0x121483;return this['setTextStyle']({'st':{'s':_0x7c0055?_0x5adf97[_0x1e8a9e(0x14a)][_0x1e8a9e(0x131)]:_0x5adf97[_0x1e8a9e(0x14a)][_0x1e8a9e(0xef)]}});}[_0x121483(0x89)](_0x53d074){const _0x28a104=_0x121483;return this[_0x28a104(0xab)](_0x6d781c=>(0x0,_0x468705[_0x28a104(0xe3)])(_0x6d781c,{'horizontalAlign':_0x53d074})),this;}[_0x121483(0x149)](_0x4891d5){const _0x191a92=_0x121483;return this[_0x191a92(0xab)](_0x52a5c6=>(0x0,_0x468705[_0x191a92(0xe3)])(_0x52a5c6,{'verticalAlign':_0x4891d5})),this;}[_0x121483(0x10b)](){const _0xa87cf5=_0x121483;let _0x54316e=this[_0xa87cf5(0xa9)]();return _0x54316e?(0x0,_0x468705[_0xa87cf5(0xf9)])(_0x54316e):null;}[_0x121483(0x82)](_0x55c7c3){const _0x4eeea1=_0x121483;return this[_0x4eeea1(0xab)](_0x5ba4dc=>(0x0,_0x468705['applyShapeTextBoxOptions'])(_0x5ba4dc,_0x55c7c3)),this;}[_0x121483(0x104)](){const _0x1e2f10=_0x121483;return this[_0x1e2f10(0x12f)][_0x1e2f10(0x12c)](_0x468705[_0x1e2f10(0x137)])[_0x1e2f10(0x12c)](this['_shapeRef']['hostType']);}[_0x121483(0xa9)](){const _0x19b5aa=_0x121483;let _0x48b3a5=this[_0x19b5aa(0x104)]();if(!_0x48b3a5)return null;try{var _0x29a2f5;return((_0x29a2f5=_0x48b3a5[_0x19b5aa(0x9c)](this['_shapeRef']))==null?void 0x0:_0x29a2f5[_0x19b5aa(0x128)])||(console[_0x19b5aa(0x15a)](_0x19b5aa(0x112)+this['_shapeRef'][_0x19b5aa(0x9d)]+_0x19b5aa(0x13c)),null);}catch(_0x1aeaae){return console[_0x19b5aa(0x15a)](_0x19b5aa(0x164)+this[_0x19b5aa(0xa0)][_0x19b5aa(0x9d)]+_0x19b5aa(0xeb),_0x1aeaae),null;}}[_0x121483(0xab)](_0x50a103){const _0x22fbd2=_0x121483;let _0xd5ef0d=this[_0x22fbd2(0x104)]();if(!_0xd5ef0d)return!0x1;try{var _0x148b94;let _0x5de373=(_0x148b94=_0xd5ef0d['getShape'](this[_0x22fbd2(0xa0)]))==null?void 0x0:_0x148b94[_0x22fbd2(0x128)];if(!_0x5de373)return console['warn']('[Shape\x20Text\x20Facade]:\x20Shape\x20\x22'+this[_0x22fbd2(0xa0)][_0x22fbd2(0x9d)]+'\x22\x20was\x20not\x20found.'),!0x1;let _0xdef6cc=_0xd5ef0d['updateShape'](this[_0x22fbd2(0xa0)],{'shapeData':_0x50a103(_0x5de373)});return _0xdef6cc||console[_0x22fbd2(0x15a)](_0x22fbd2(0x124)+this['_shapeRef'][_0x22fbd2(0x9d)]+_0x22fbd2(0xeb)),_0xdef6cc;}catch(_0x3c4e96){return console[_0x22fbd2(0x15a)]('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22'+this['_shapeRef']['shapeId']+_0x22fbd2(0xeb),_0x3c4e96),!0x1;}}};function _0xd83e3e(_0x172dcd,_0x56d86d){return function(_0x261806,_0x33f3a3){_0x56d86d(_0x261806,_0x33f3a3,_0x172dcd);};}function _0x1387f1(_0x1f92f7,_0x5c08,_0x112aae,_0x573f1a){const _0x102fa3=_0x121483;var _0x2fd75d=arguments[_0x102fa3(0xd4)],_0x23d052=_0x2fd75d<0x3?_0x5c08:_0x573f1a===null?_0x573f1a=Object[_0x102fa3(0xe5)](_0x5c08,_0x112aae):_0x573f1a,_0x48505b;if(typeof Reflect==_0x102fa3(0xa6)&&typeof Reflect[_0x102fa3(0xb5)]==_0x102fa3(0xbc))_0x23d052=Reflect[_0x102fa3(0xb5)](_0x1f92f7,_0x5c08,_0x112aae,_0x573f1a);else{for(var _0x108d78=_0x1f92f7[_0x102fa3(0xd4)]-0x1;_0x108d78>=0x0;_0x108d78--)(_0x48505b=_0x1f92f7[_0x108d78])&&(_0x23d052=(_0x2fd75d<0x3?_0x48505b(_0x23d052):_0x2fd75d>0x3?_0x48505b(_0x5c08,_0x112aae,_0x23d052):_0x48505b(_0x5c08,_0x112aae))||_0x23d052);}return _0x2fd75d>0x3&&_0x23d052&&Object[_0x102fa3(0x123)](_0x5c08,_0x112aae,_0x23d052),_0x23d052;}let _0x57bc08=class extends _0x418bdc[_0x121483(0x83)]{constructor(_0x58b1d1,_0x2f1ad2,_0x3feb8b,_0x3e9446){const _0x1c4ec7=_0x121483;super(),this['_shapeRef']=_0x58b1d1,this[_0x1c4ec7(0x12f)]=_0x2f1ad2,this['_shapeHostAdapterRegistry']=_0x3feb8b,this['_commandService']=_0x3e9446;}[_0x121483(0xd6)](){return!0x1;}[_0x121483(0x10c)](){const _0x4ab540=_0x121483;return this[_0x4ab540(0xa0)][_0x4ab540(0x9d)];}[_0x121483(0x119)](){const _0x4373b3=_0x121483;var _0x3e48f0;return(_0x3e48f0=this['_getSnapshot']())==null?void 0x0:_0x3e48f0[_0x4373b3(0x15b)];}[_0x121483(0x10a)](_0x4c20b3){return this['update']({'name':_0x4c20b3});}[_0x121483(0x9b)](){const _0x5a2607=_0x121483;var _0x604cde;return(_0x604cde=this[_0x5a2607(0xb7)]())==null?void 0x0:_0x604cde[_0x5a2607(0x86)];}['setDescription'](_0x589584){const _0x2b7f03=_0x121483;return this[_0x2b7f03(0x103)]({'description':_0x589584});}[_0x121483(0xf3)](){const _0x239089=_0x121483;return this[_0x239089(0xa0)]['hostType'];}[_0x121483(0x79)](){const _0x33fa06=_0x121483;var _0x39a673,_0xe88c73;return(_0x39a673=(_0xe88c73=this[_0x33fa06(0xb7)]())==null?void 0x0:_0xe88c73[_0x33fa06(0x80)])==null?null:_0x39a673;}['getShapeData'](){const _0x102091=_0x121483;let _0x478cdd=this[_0x102091(0xb7)]();return _0x478cdd?_0x5adf97[_0x102091(0xbd)]['deepClone'](_0x478cdd[_0x102091(0x128)]):null;}['getSnapshot'](){const _0x23c26a=_0x121483;let _0x397b98=this[_0x23c26a(0xb7)]();return _0x397b98?_0x5adf97['Tools'][_0x23c26a(0xc5)](_0x397b98):null;}[_0x121483(0xc9)](){const _0x4d8e80=_0x121483;let _0x543353=this[_0x4d8e80(0xb7)]();return _0x543353?{..._0x543353[_0x4d8e80(0xd8)]}:null;}[_0x121483(0x114)](){const _0x2b5b7e=_0x121483;var _0x19b858,_0x49d872;return(_0x19b858=(_0x49d872=this[_0x2b5b7e(0xb7)]())==null?void 0x0:_0x49d872[_0x2b5b7e(0x159)])!=null&&_0x19b858;}[_0x121483(0x8f)](_0x80760f){return this['update']({'visible':_0x80760f});}[_0x121483(0x9a)](){const _0xf0bc53=_0x121483;var _0x519f08,_0x5d3b83;return(_0x519f08=(_0x5d3b83=this[_0xf0bc53(0xb7)]())==null?void 0x0:_0x5d3b83[_0xf0bc53(0x84)])!=null&&_0x519f08;}[_0x121483(0x106)](_0x3941ec){return this['update']({'selectable':_0x3941ec});}[_0x121483(0xc0)](){const _0x91b65c=_0x121483;return this[_0x91b65c(0x12f)][_0x91b65c(0xff)](_0x3f5ec4,this[_0x91b65c(0xa0)],this['_injector']);}['isCustomShape'](){const _0xc5f21f=_0x121483;let _0x1cf29c=this[_0xc5f21f(0xd2)]();return(_0x1cf29c==null?void 0x0:_0x1cf29c[_0xc5f21f(0xaa)])===!0x0&&!!_0x1cf29c[_0xc5f21f(0xcd)];}[_0x121483(0x14f)](){const _0x3c21d2=_0x121483;var _0x49bbcf,_0x6b29b1;return(_0x49bbcf=(_0x6b29b1=this[_0x3c21d2(0xd2)]())==null?void 0x0:_0x6b29b1[_0x3c21d2(0xcd)])==null?null:_0x49bbcf;}[_0x121483(0x141)](_0x5e0e5c){return this['_patchShapeData'](_0x4b5710=>({..._0x4b5710,'shapeType':_0x5e0e5c}),_0x5e0e5c);}[_0x121483(0x7f)](_0x298cd8){const _0x3083ed=_0x121483;let _0x633d9e=_0x5adf97['Tools'][_0x3083ed(0xc5)](_0x298cd8);return this['update']({'shapeType':_0x633d9e[_0x3083ed(0x80)],'shapeData':_0x633d9e});}['setTransform'](_0x56b5c2){const _0x38be8c=_0x121483;return this[_0x38be8c(0x103)]({'transform':_0x56b5c2});}[_0x121483(0x92)](_0x3cfef8,_0x3b780a){const _0x284c73=_0x121483;return this[_0x284c73(0x15d)]({'width':_0x3cfef8,'height':_0x3b780a});}[_0x121483(0x9e)](_0x557a3d){const _0x434122=_0x121483;return this[_0x434122(0x15d)]({'rotation':_0x557a3d});}[_0x121483(0xd9)](_0x16fd36,_0x4d467c){const _0x19b73b=_0x121483;return this[_0x19b73b(0x15d)]({'left':_0x16fd36,'top':_0x4d467c});}[_0x121483(0x165)](_0x127f71){const _0x51423d=_0x121483;var _0x4cff1f,_0x10ad7f,_0x5b63a6;let _0xf61384=(_0x4cff1f=(_0x10ad7f=_0x127f71[_0x51423d(0xdb)])==null?void 0x0:_0x10ad7f['findIndex'](({x:_0x3c4cdc,y:_0x1facd0})=>_0x3c4cdc===void 0x0||_0x1facd0===void 0x0))==null?-0x1:_0x4cff1f;if(_0xf61384>=0x0)return console[_0x51423d(0x15a)]('[Shape\x20Facade]:\x20Custom\x20geometry\x20connection\x20site\x20'+_0xf61384+_0x51423d(0xf7)),this;let _0x3b6cb5=_0x5adf97['Tools'][_0x51423d(0xc5)](_0x127f71);if((_0x5b63a6=_0x3b6cb5[_0x51423d(0xdb)])!=null&&_0x5b63a6['length']){let _0x1747ad=this[_0x51423d(0xb7)]();if(!_0x1747ad)return this;try{let _0x4dd4f9=new _0x468705[(_0x51423d(0xc3))](_0x1747ad['shapeType'],_0x1747ad[_0x51423d(0x9d)],{..._0x1747ad[_0x51423d(0x128)],'isCustom':!0x0,'customGeometry':_0x3b6cb5});_0x4dd4f9[_0x51423d(0xf8)]({'width':_0x1747ad[_0x51423d(0xd8)][_0x51423d(0x129)],'height':_0x1747ad[_0x51423d(0xd8)][_0x51423d(0x16b)]}),_0x4dd4f9[_0x51423d(0x136)]();}catch{return console[_0x51423d(0x15a)]('[Shape\x20Facade]:\x20Custom\x20geometry\x20connection\x20sites\x20must\x20resolve\x20to\x20finite\x20coordinates.'),this;}}return this[_0x51423d(0x160)](_0x142aa4=>({..._0x142aa4,'isCustom':!0x0,'customGeometry':_0x3b6cb5}));}[_0x121483(0x90)](){const _0x13f04e=_0x121483;var _0x139945,_0x4a41c7;return(_0x139945=(_0x4a41c7=this['_getGeometryModel']())==null?void 0x0:_0x4a41c7[_0x13f04e(0x136)]()[_0x13f04e(0xc4)](_0x152102=>({..._0x152102})))==null?[]:_0x139945;}['getStartConnectInfo'](){const _0x48642b=_0x121483;var _0x54325a;let _0x294d88=(_0x54325a=this['_getGeometryModel']())==null?void 0x0:_0x54325a[_0x48642b(0xee)]();return _0x294d88?{..._0x294d88}:null;}[_0x121483(0x105)](){const _0x3da6e2=_0x121483;var _0x4fadab;let _0x86bc66=(_0x4fadab=this['_getGeometryModel']())==null?void 0x0:_0x4fadab[_0x3da6e2(0x105)]();return _0x86bc66?{..._0x86bc66}:null;}[_0x121483(0x11c)](){const _0x54b21f=_0x121483;var _0x26a428,_0x574d57;let _0xf845f3=this['_getGeometryModel'](),_0x9b5d10=(_0x26a428=_0xf845f3==null||(_0x574d57=_0xf845f3[_0x54b21f(0x78)]()[_0x54b21f(0x85)])==null?void 0x0:_0x574d57[_0x54b21f(0xd4)])==null?0x0:_0x26a428;return!_0xf845f3||_0x9b5d10===0x0?[]:Array[_0x54b21f(0xdd)]({'length':_0x9b5d10},(_0xf194c2,_0x5292fc)=>_0xf845f3[_0x54b21f(0xb1)](_0x5292fc))[_0x54b21f(0xe6)](_0x3a7ef1=>_0x3a7ef1!==void 0x0)['map'](_0x1da387=>_0x5adf97[_0x54b21f(0xbd)][_0x54b21f(0xc5)](_0x1da387));}[_0x121483(0xd0)](_0x2fb7f8){const _0x34d2d5=_0x121483;let _0x4bf84c=Object[_0x34d2d5(0xf6)](_0x2fb7f8);if(_0x4bf84c['length']===0x0)return this;let _0x2a78c9=this[_0x34d2d5(0xdf)]();if(!_0x2a78c9)return this;let _0xc50426=new Set(_0x2a78c9[_0x34d2d5(0xcb)]());for(let [_0x39c24c,_0x2d5079]of _0x4bf84c){if(!_0xc50426[_0x34d2d5(0xe0)](_0x39c24c))return console[_0x34d2d5(0x15a)]('[Shape\x20Facade]:\x20Shape\x20adjustment\x20\x22'+_0x39c24c+_0x34d2d5(0x16c)),this;if(!Number[_0x34d2d5(0x7d)](_0x2d5079))return console['warn']('[Shape\x20Facade]:\x20Shape\x20adjustment\x20\x22'+_0x39c24c+'\x22\x20must\x20be\x20finite.'),this;}let _0x55962d=Object[_0x34d2d5(0xd1)](_0x4bf84c[_0x34d2d5(0xc4)](([_0x327a1a,_0x38c772])=>[_0x327a1a,_0x2a78c9[_0x34d2d5(0xb3)](_0x327a1a,_0x38c772)]));return this[_0x34d2d5(0x160)](_0x564376=>({..._0x564376,'adjustValues':{..._0x564376[_0x34d2d5(0x9f)],..._0x55962d}}));}[_0x121483(0x98)](){const _0x472154=_0x121483;let _0x5c75f3=this['getShapeData']();return _0x5c75f3!=null&&_0x5c75f3['adjustValues']?(delete _0x5c75f3[_0x472154(0x9f)],this['update']({'shapeData':_0x5c75f3})):this;}[_0x121483(0x12a)](_0x51cb2f,_0x5ce90a){const _0x276002=_0x121483;return this[_0x276002(0x160)](_0x3cf606=>({..._0x3cf606,'fill':{'fillType':_0x468705[_0x276002(0x162)][_0x276002(0x153)],'color':_0x51cb2f,'opacity':_0x5ce90a}}));}[_0x121483(0xb8)](_0x7fb0a4,_0xddb903,_0x86f1ef){const _0x2f34fa=_0x121483;return _0xddb903[_0x2f34fa(0xd4)]<0x2?(console[_0x2f34fa(0x15a)](_0x2f34fa(0xce)),this):this[_0x2f34fa(0x160)](_0x16e18b=>({..._0x16e18b,'fill':{'fillType':_0x468705[_0x2f34fa(0x162)][_0x2f34fa(0x13d)],'gradientType':_0x7fb0a4,'gradientStops':_0x5adf97[_0x2f34fa(0xbd)][_0x2f34fa(0xc5)](_0xddb903),'gradientAngle':_0x86f1ef}}));}[_0x121483(0x111)](_0x230cbc,_0x2f72e1,_0x538971={}){const _0x13867d=_0x121483;return this[_0x13867d(0x160)](_0x32ae6b=>({..._0x32ae6b,'fill':{..._0x5adf97[_0x13867d(0xbd)][_0x13867d(0xc5)](_0x538971),'fillType':_0x468705[_0x13867d(0x162)][_0x13867d(0xca)],'fillImageSource':_0x230cbc,'fillImageSourceType':_0x2f72e1}}));}[_0x121483(0x157)](){const _0x9a86f6=_0x121483;return this[_0x9a86f6(0x160)](_0x26a8f8=>({..._0x26a8f8,'fill':{'fillType':_0x468705[_0x9a86f6(0x162)][_0x9a86f6(0xb4)]}}));}[_0x121483(0xa7)](_0x29fb0f){const _0x28fb5d=_0x121483;return this['_patchShapeData'](_0x4831ac=>({..._0x4831ac,'stroke':_0x5adf97[_0x28fb5d(0xbd)]['deepClone'](_0x29fb0f)}));}[_0x121483(0xc2)](_0x37d5d4){const _0x5789f9=_0x121483;return this[_0x5789f9(0xea)](_0x11bf7d=>({..._0x11bf7d,'color':_0x37d5d4,'lineStrokeType':_0x11bf7d[_0x5789f9(0x130)]===_0x468705[_0x5789f9(0x88)][_0x5789f9(0xf0)]?_0x468705['ShapeLineTypeEnum'][_0x5789f9(0x15f)]:_0x11bf7d['lineStrokeType']}));}[_0x121483(0x10f)](_0xa6dcc0){const _0x10ba4e=_0x121483;return this[_0x10ba4e(0xea)](_0x2f918c=>({..._0x2f918c,'width':_0xa6dcc0,'lineStrokeType':_0x2f918c[_0x10ba4e(0x130)]===_0x468705[_0x10ba4e(0x88)][_0x10ba4e(0xf0)]?_0x468705['ShapeLineTypeEnum'][_0x10ba4e(0x15f)]:_0x2f918c[_0x10ba4e(0x130)]}));}[_0x121483(0xbf)](_0x5df884){const _0xa5d335=_0x121483;return this[_0xa5d335(0xea)](_0x3997eb=>({..._0x3997eb,'opacity':_0x5df884}));}[_0x121483(0x14c)](_0x425d84){const _0x48bb44=_0x121483;return this[_0x48bb44(0xea)](_0x4eb6e5=>({..._0x4eb6e5,'dashType':_0x425d84}));}[_0x121483(0x13e)](_0x8ee952){const _0x37e347=_0x121483;return this[_0x37e347(0xea)](_0x1803f7=>({..._0x1803f7,'lineJoinType':_0x8ee952}));}[_0x121483(0xac)](_0x3e273e){const _0x199d37=_0x121483;return this[_0x199d37(0xea)](_0x3be146=>({..._0x3be146,'capType':_0x3e273e}));}[_0x121483(0xfd)](_0xc66961){const _0x574aef=_0x121483;return this[_0x574aef(0xea)](_0x5023bb=>({..._0x5023bb,'lineStrokeType':_0xc66961}));}[_0x121483(0x103)](_0x1a2aa5){const _0x1cf1cd=_0x121483;var _0x3581cb,_0x5813f6,_0x3fb90a;let _0x253805=_0x1a2aa5[_0x1cf1cd(0x128)],_0x2911e5=_0x253805&&(_0x1cf1cd(0x16d)in _0x253805||_0x1cf1cd(0x15e)in _0x253805)?this[_0x1cf1cd(0x79)]():null,_0x2405df=(_0x3581cb=(_0x5813f6=_0x1a2aa5['shapeType'])==null?(_0x3fb90a=_0x1a2aa5[_0x1cf1cd(0x128)])==null?void 0x0:_0x3fb90a[_0x1cf1cd(0x80)]:_0x5813f6)==null?_0x2911e5:_0x3581cb,_0x3baf6d=_0x41009b(_0x1a2aa5,_0x2405df!==null&&(0x0,_0x468705[_0x1cf1cd(0xd6)])(_0x2405df));return _0x3baf6d?(console['warn'](_0x1cf1cd(0x14d)+_0x3baf6d),this):(this[_0x1cf1cd(0x155)](_0x1cf1cd(0x103),_0x18acf2=>_0x18acf2[_0x1cf1cd(0xed)](this[_0x1cf1cd(0xa0)],_0x1a2aa5)),this);}[_0x121483(0xad)](){const _0x1be426=_0x121483;return this['_mutate'](_0x1be426(0xad),_0x2304f6=>_0x2304f6[_0x1be426(0x122)](this[_0x1be426(0xa0)]));}[_0x121483(0xd7)](){const _0x4ff9a9=_0x121483;return this[_0x4ff9a9(0x155)]('bring\x20to\x20front',_0x3d7896=>_0x3d7896[_0x4ff9a9(0xd7)](this[_0x4ff9a9(0xa0)])),this;}['bringForward'](){const _0x10de8b=_0x121483;return this[_0x10de8b(0x155)](_0x10de8b(0x146),_0x2af7e9=>_0x2af7e9['bringForward'](this[_0x10de8b(0xa0)])),this;}[_0x121483(0x139)](){const _0x20f4c7=_0x121483;return this[_0x20f4c7(0x155)](_0x20f4c7(0xf2),_0x367a6f=>_0x367a6f['sendBackward'](this['_shapeRef'])),this;}['sendToBack'](){const _0xa0f9d=_0x121483;return this[_0xa0f9d(0x155)](_0xa0f9d(0x143),_0x340474=>_0x340474['sendToBack'](this[_0xa0f9d(0xa0)])),this;}['_getAdapter'](){const _0x143080=_0x121483;return this[_0x143080(0xb6)][_0x143080(0x12c)](this[_0x143080(0xa0)][_0x143080(0x163)]);}[_0x121483(0x160)](_0x5031b5,_0x6ed9b5){const _0x35e895=_0x121483;let _0x2fd44b=this[_0x35e895(0xd2)]();return _0x2fd44b?this[_0x35e895(0x103)]({'shapeType':_0x6ed9b5,'shapeData':_0x5031b5(_0x2fd44b)}):this;}[_0x121483(0xea)](_0x41019c){const _0x4a76fe=_0x121483;return this[_0x4a76fe(0x160)](_0x52ec07=>{var _0x1ac166;return{..._0x52ec07,'stroke':_0x41019c((_0x1ac166=_0x52ec07['stroke'])==null?{}:_0x1ac166)};});}[_0x121483(0xb7)](){const _0x140e61=_0x121483;let _0x35b414=this['_getAdapter']();if(!_0x35b414)return null;try{return _0x35b414['getShape'](this['_shapeRef'])||(console[_0x140e61(0x15a)]('[Shape\x20Facade]:\x20Shape\x20\x22'+this[_0x140e61(0xa0)]['shapeId']+_0x140e61(0x13c)),null);}catch(_0x45d44a){return console[_0x140e61(0x15a)](_0x140e61(0xa8)+this[_0x140e61(0xa0)][_0x140e61(0x9d)]+'\x22.',_0x45d44a),null;}}[_0x121483(0xdf)](){const _0x356efd=_0x121483;let _0x32c35a=this[_0x356efd(0xb7)]();if(!_0x32c35a)return null;try{let _0x3b5313=new _0x468705[(_0x356efd(0xc3))](_0x32c35a[_0x356efd(0x80)],_0x32c35a[_0x356efd(0x9d)],_0x5adf97[_0x356efd(0xbd)][_0x356efd(0xc5)](_0x32c35a[_0x356efd(0x128)]));return _0x3b5313['updateContext']({'width':_0x32c35a[_0x356efd(0xd8)][_0x356efd(0x129)],'height':_0x32c35a['transform'][_0x356efd(0x16b)]}),_0x3b5313;}catch(_0x5e3b9d){return console['warn']('[Shape\x20Facade]:\x20Failed\x20to\x20resolve\x20geometry\x20for\x20Shape\x20\x22'+this[_0x356efd(0xa0)][_0x356efd(0x9d)]+'\x22.',_0x5e3b9d),null;}}[_0x121483(0x155)](_0x44c639,_0x52e713){const _0x4645c6=_0x121483;let _0x2ee988=this[_0x4645c6(0x104)]();if(!_0x2ee988)return!0x1;try{let _0x4f1521=_0x52e713(_0x2ee988);return _0x4f1521||console['warn'](_0x4645c6(0x81)+_0x44c639+_0x4645c6(0x140)+this['_shapeRef'][_0x4645c6(0x9d)]+'\x22.'),_0x4f1521;}catch(_0x31b37a){return console[_0x4645c6(0x15a)](_0x4645c6(0x81)+_0x44c639+_0x4645c6(0x140)+this[_0x4645c6(0xa0)]['shapeId']+'\x22.',_0x31b37a),!0x1;}}};_0x57bc08=_0x1387f1([_0xd83e3e(0x2,_0x468705[_0x121483(0x137)]),_0xd83e3e(0x3,_0x5adf97[_0x121483(0x134)])],_0x57bc08);function _0x41009b(_0x42f7ca,_0x509f8e=!0x1){const _0x4bb0ff=_0x121483;for(let _0x7d7b06 of[_0x4bb0ff(0x159),'selectable']){let _0x41ab53=_0x42f7ca[_0x7d7b06];if(_0x41ab53!==void 0x0&&typeof _0x41ab53!='boolean')return _0x4bb0ff(0x148)+_0x7d7b06+_0x4bb0ff(0xa4);}let _0x573013=_0x42f7ca[_0x4bb0ff(0xd8)];if(_0x573013){for(let _0x87eaea of[_0x4bb0ff(0x12d),'top','width',_0x4bb0ff(0x16b),_0x4bb0ff(0x101)]){let _0x17c345=_0x573013[_0x87eaea];if(_0x17c345!==void 0x0&&!Number[_0x4bb0ff(0x7d)](_0x17c345))return'Shape\x20transform\x20\x22'+_0x87eaea+'\x22\x20must\x20be\x20finite.';}if(_0x573013[_0x4bb0ff(0x129)]!==void 0x0&&_0x573013[_0x4bb0ff(0x129)]<=0x0)return _0x4bb0ff(0x11a);if(_0x573013['height']!==void 0x0&&_0x573013[_0x4bb0ff(0x16b)]<=0x0)return _0x4bb0ff(0xb0);for(let _0x1c5221 of[_0x4bb0ff(0x102),_0x4bb0ff(0xbe)]){let _0xcc285=_0x573013[_0x1c5221];if(_0xcc285!==void 0x0&&typeof _0xcc285!=_0x4bb0ff(0xfa))return _0x4bb0ff(0x125)+_0x1c5221+_0x4bb0ff(0xa4);}}let _0x7cdbdf=_0x42f7ca['shapeData'];return!_0x509f8e&&_0x7cdbdf&&('relation'in _0x7cdbdf||_0x4bb0ff(0x15e)in _0x7cdbdf)?_0x4bb0ff(0x11d):null;}var _0x236e8f=class extends _0x57bc08{[_0x121483(0xd6)](){return!0x0;}[_0x121483(0x8e)](){const _0x5d9e6a=_0x121483;let _0x54c5c1=this[_0x5d9e6a(0x116)]();return _0x54c5c1?_0x5adf97[_0x5d9e6a(0xbd)][_0x5d9e6a(0xc5)](_0x54c5c1[_0x5d9e6a(0x107)]):null;}[_0x121483(0x127)](){const _0x53d654=_0x121483;let _0x570997=this[_0x53d654(0x116)]();return _0x570997?_0x5adf97['Tools'][_0x53d654(0xc5)](_0x570997['end']):null;}[_0x121483(0xdc)](){const _0x2d7ca8=_0x121483;let _0x2b598b=this[_0x2d7ca8(0x116)]();return _0x2b598b?_0x5adf97[_0x2d7ca8(0xbd)][_0x2d7ca8(0xc5)](_0x2b598b['routePoints']):null;}[_0x121483(0xa5)](){const _0x5e50ad=_0x121483;let _0x39e469=this[_0x5e50ad(0x116)]();return _0x39e469?_0x5adf97[_0x5e50ad(0xbd)][_0x5e50ad(0xc5)](_0x39e469[_0x5e50ad(0x167)]):null;}[_0x121483(0xe2)](){const _0x1428db=_0x121483;let _0x353f11=this[_0x1428db(0x116)]();return _0x353f11?_0x5adf97[_0x1428db(0xbd)][_0x1428db(0xc5)](_0x353f11[_0x1428db(0x147)]):null;}[_0x121483(0x141)](_0x2b8f55){const _0x3728b3=_0x121483;return(0x0,_0x468705[_0x3728b3(0xd6)])(_0x2b8f55)?super['setShapeType'](_0x2b8f55):(console[_0x3728b3(0x15a)]('[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22'+this[_0x3728b3(0xa0)]['shapeId']+'\x22\x20requires\x20a\x20Connector\x20Shape\x20type.'),this);}[_0x121483(0x7f)](_0x49ce6b){const _0x2ff1ba=_0x121483;return _0x49ce6b[_0x2ff1ba(0x80)]!==void 0x0&&!(0x0,_0x468705[_0x2ff1ba(0xd6)])(_0x49ce6b[_0x2ff1ba(0x80)])?(console[_0x2ff1ba(0x15a)]('[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22'+this[_0x2ff1ba(0xa0)][_0x2ff1ba(0x9d)]+'\x22\x20requires\x20Connector\x20Shape\x20data.'),this):super[_0x2ff1ba(0x7f)](_0x49ce6b);}[_0x121483(0x7e)](_0x2e26eb,_0x40c666){const _0x25a21b=_0x121483;return this[_0x25a21b(0xb9)]('start',_0x2e26eb,_0x40c666),this;}['bindEnd'](_0x451fe6,_0x3168d1){const _0x4aba3e=_0x121483;return this['_bind'](_0x4aba3e(0xbb),_0x451fe6,_0x3168d1),this;}['unbindStart'](){const _0xa63453=_0x121483;return this[_0xa63453(0xf4)](_0xa63453(0x99),_0x51a432=>_0x51a432[_0xa63453(0x8c)](this[_0xa63453(0xa0)])),this;}[_0x121483(0x97)](){const _0x2840a9=_0x121483;return this[_0x2840a9(0xf4)](_0x2840a9(0x16a),_0x2d8b4c=>_0x2d8b4c[_0x2840a9(0x97)](this[_0x2840a9(0xa0)])),this;}[_0x121483(0xba)](_0x506d50){const _0x343fb8=_0x121483;return _0x1b635c(_0x506d50,this[_0x343fb8(0xa0)][_0x343fb8(0x9d)])&&this[_0x343fb8(0xf4)]('set\x20start\x20point',_0x6af343=>_0x6af343['setStartPoint'](this[_0x343fb8(0xa0)],_0x506d50)),this;}[_0x121483(0x100)](_0x505d12){const _0xe1b063=_0x121483;return _0x1b635c(_0x505d12,this[_0xe1b063(0xa0)][_0xe1b063(0x9d)])&&this['_mutateConnector'](_0xe1b063(0xe7),_0x272a29=>_0x272a29[_0xe1b063(0x100)](this[_0xe1b063(0xa0)],_0x505d12)),this;}[_0x121483(0x113)](_0x1e2d14){const _0x59287f=_0x121483;return _0x1e2d14[_0x59287f(0xf1)](_0x5817d0=>_0x1b635c(_0x5817d0,this['_shapeRef'][_0x59287f(0x9d)]))&&this[_0x59287f(0xf4)](_0x59287f(0x169),_0x1d2768=>_0x1d2768[_0x59287f(0x113)](this[_0x59287f(0xa0)],_0x1e2d14)),this;}[_0x121483(0x132)](_0x4fa6d6,_0x211687){const _0x19dd4b=_0x121483;return this['_mutateConnector']('set\x20start\x20arrow',_0x5263f7=>_0x5263f7[_0x19dd4b(0x132)](this[_0x19dd4b(0xa0)],_0x4fa6d6,_0x211687)),this;}['setEndArrow'](_0x33bcbf,_0x2e0381){const _0x32980e=_0x121483;return this[_0x32980e(0xf4)]('set\x20end\x20arrow',_0x5d1e62=>_0x5d1e62[_0x32980e(0xe1)](this[_0x32980e(0xa0)],_0x33bcbf,_0x2e0381)),this;}['_getConnectorAdapter'](){const _0x25cbfb=_0x121483;return this[_0x25cbfb(0x12f)][_0x25cbfb(0x12c)](_0x468705[_0x25cbfb(0x151)]);}[_0x121483(0x116)](){const _0x48d024=_0x121483;let _0x40da66=this['_getConnectorAdapter']();if(!_0x40da66)return null;try{return _0x40da66['getConnector'](this[_0x48d024(0xa0)])||(console[_0x48d024(0x15a)]('[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22'+this[_0x48d024(0xa0)][_0x48d024(0x9d)]+'\x22\x20was\x20not\x20found.'),null);}catch(_0x5b67b6){return console[_0x48d024(0x15a)]('[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Connector\x20Shape\x20\x22'+this['_shapeRef']['shapeId']+'\x22.',_0x5b67b6),null;}}[_0x121483(0xb9)](_0x445358,_0x55f84a,_0x49379c){const _0x3cdfd2=_0x121483;if(!_0x55f84a||!Number[_0x3cdfd2(0x14e)](_0x49379c)||_0x49379c<0x0)return console[_0x3cdfd2(0x15a)]('[Shape\x20Facade]:\x20Connector\x20\x22'+this[_0x3cdfd2(0xa0)][_0x3cdfd2(0x9d)]+_0x3cdfd2(0x118)),!0x1;let _0x58407d={'shapeId':_0x55f84a,'cxnIndex':_0x49379c};return this['_mutateConnector'](_0x3cdfd2(0xb2)+_0x445358,_0x23feb3=>_0x445358==='start'?_0x23feb3[_0x3cdfd2(0x7e)](this[_0x3cdfd2(0xa0)],_0x58407d):_0x23feb3[_0x3cdfd2(0x133)](this[_0x3cdfd2(0xa0)],_0x58407d));}['_mutateConnector'](_0x44c4f0,_0x4443cb){const _0x3e8da8=_0x121483;let _0x1c0f41=this[_0x3e8da8(0x8d)]();if(!_0x1c0f41)return!0x1;try{let _0x53e406=_0x4443cb(_0x1c0f41);return _0x53e406||console[_0x3e8da8(0x15a)](_0x3e8da8(0x81)+_0x44c4f0+_0x3e8da8(0x110)+this[_0x3e8da8(0xa0)][_0x3e8da8(0x9d)]+'\x22.'),_0x53e406;}catch(_0x343454){return console[_0x3e8da8(0x15a)](_0x3e8da8(0x81)+_0x44c4f0+_0x3e8da8(0x110)+this['_shapeRef'][_0x3e8da8(0x9d)]+'\x22.',_0x343454),!0x1;}}};function _0x1b635c(_0xa2b8b7,_0x1d827a){const _0x25dc04=_0x121483;return!Number[_0x25dc04(0x7d)](_0xa2b8b7['x'])||!Number[_0x25dc04(0x7d)](_0xa2b8b7['y'])?(console[_0x25dc04(0x15a)]('[Shape\x20Facade]:\x20Connector\x20\x22'+_0x1d827a+_0x25dc04(0x11b)),!0x1):!0x0;}_0x11d2b6[_0x121483(0x120)]=_0x236e8f,Object[_0x121483(0x123)](_0x11d2b6,_0x121483(0xcc),{'enumerable':!0x0,'get':function(){return _0x57bc08;}}),_0x11d2b6[_0x121483(0x117)]=_0x3f5ec4;}));function _0x2e1e(){const _0x369aff=['toStringTag','IConnectorShapeHostAdapter','extend','SolidFill','ShapeImageSourceTypeEnum','_mutate','offsetY','setNoneFill','UniverProEngineShapeFacade','visible','warn','name','Linear','setTransform','points','SolidLine','_patchShapeData','90meHJMQ','ShapeFillEnum','hostType','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','setCustomGeometry','gradient','startArrow','Radial','set\x20route\x20points','unbind\x20end','height','\x22\x20does\x20not\x20exist.','relation','applyShapeTextStyle','ShapeGradientTypeEnum','getPresetShapeConfig','getShapeType','applyTextToShapeText','shapeText','setStrikethrough','isFinite','bindStart','setShapeData','shapeType','[Shape\x20Facade]:\x20Failed\x20to\x20','setTextBoxOptions','FBase','selectable','ahLst','description','ShapeArrowTypeEnum','ShapeLineTypeEnum','setHorizontalAlign','ImageFillModeEnum','@univerjs/core','unbindStart','_getConnectorAdapter','getStartEndpoint','setVisible','getConnectionSites','getRichText','setSize','194336nRsgtJ','setBold','@univerjs-pro/engine-shape','offsetX','unbindEnd','resetAdjustValues','unbind\x20start','isSelectable','getDescription','getShape','shapeId','setRotation','adjustValues','_shapeRef','toPlainText','diamond','solid','\x22\x20must\x20be\x20boolean.','getStartArrow','object','setStroke','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','_getShapeData','isCustom','_updateShapeData','setStrokeLineCapType','remove','scaleX','exports','Shape\x20height\x20must\x20be\x20greater\x20than\x20zero.','getAdjustInfo','bind\x20','setAdjustValueByName','NoFill','decorate','_shapeHostAdapterRegistry','_getSnapshot','setGradientFill','_bind','setStartPoint','end','function','Tools','flipY','setStrokeOpacity','getText','ShapeTextDirection','setStrokeColor','ShapeModel','map','deepClone','UniverProEngineShape','picture','setTextStyle','getTransform','PictureFill','getAdjustNames','FShape','customGeometry','[Shape\x20Facade]:\x20Gradient\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','shapeTextToRichTextValue','setAdjustValues','fromEntries','getShapeData','setText','length','ShapeLineJoinEnum','isConnectorShape','bringToFront','transform','setAbsolutePosition','ShapeArrowSizeEnum','cxnLst','getRoutePoints','from','@univerjs/core/facade','_getGeometryModel','has','setEndArrow','getEndArrow','applyShapeTextAlignment','UniverCore','getOwnPropertyDescriptor','filter','set\x20end\x20point','119bkcpWv','36nxTQJd','_patchStroke','\x22\x20text.','4948amduZF','updateShape','getStartConnectInfo','FALSE','NoLine','every','send\x20backward','getHostType','_mutateConnector','ImageSourceTypeEnum','entries','\x20requires\x20both\x20\x22x\x22\x20and\x20\x22y\x22.','updateContext','resolveShapeTextBoxOptions','boolean','setItalic','ShapeOperatorEnum','setStrokeLineType','setRichText','createInstance','setEndPoint','rotation','flipX','update','_getAdapter','getEndConnectInfo','setSelectable','start','ShapeLineDashEnum','150504DqLlwl','setName','getTextBoxOptions','getId','ShapeTextWrapType','33310kehfml','setStrokeWidth','\x20Connector\x20Shape\x20\x22','setImageFill','[Shape\x20Text\x20Facade]:\x20Shape\x20\x22','setRoutePoints','isVisible','getPlainText','_getConnectorSnapshot','FShapeText','\x22\x20binding\x20requires\x20a\x20target\x20Shape\x20ID\x20and\x20a\x20non-negative\x20connection\x20site\x20index.','getName','Shape\x20width\x20must\x20be\x20greater\x20than\x20zero.','\x22\x20points\x20must\x20contain\x20finite\x20coordinates.','getAdjustHandles','Connector\x20relationships\x20and\x20route\x20points\x20require\x20FConnectorShape.','setColor','ShapeLineCapEnum','FConnectorShape','Module','removeShape','defineProperty','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22','Shape\x20transform\x20\x22','URL','getEndEndpoint','shapeData','width','setSolidFill','UniverCoreFacade','get','left','143liUnIH','_injector','lineStrokeType','TRUE','setStartArrow','bindEnd','ICommandService','241230iCCqfe','getConnectionSiteList','IShapeHostAdapterRegistry','ShapeTypeEnum','sendBackward','51010JMTQsQ','ShapeTextAutoFitType','\x22\x20was\x20not\x20found.','GradientFill','setStrokeLineJoinType','208068twTXsH','\x20Shape\x20\x22','setShapeType','mode','send\x20to\x20back','linear','none','bring\x20forward','endArrow','Shape\x20\x22','setVerticalAlign','BooleanNumber','93unHuoQ','setStrokeLineDashType','[Shape\x20Facade]:\x20','isInteger','getCustomGeometry'];_0x2e1e=function(){return _0x369aff;};return _0x2e1e();}
1
+ function _0x9571(){const _0x460393=['unbindEnd','SolidLine','setCustomGeometryFromSvgPath','IShapeHostAdapterRegistry','resolveShapeTextBoxOptions','set\x20start\x20point','setShapeType','getEndArrow','endArrow','resetAdjustValues','hostType','visible','setTextBoxOptions','ShapeLineDashEnum','getName','shapeText','setSolidFill','1246uPHeGM','setBold','[Shape\x20Text\x20Facade]:\x20Gradient\x20text\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','transform','\x20Connector\x20Shape\x20\x22','getShapeData','_injector','setText','getPresetShapeConfig','_getAdapter','unbindStart','top','ahLst','warn','isFinite','ShapeLineJoinEnum','defineProperty','[Shape\x20Facade]:\x20Custom\x20geometry\x20connection\x20sites\x20must\x20resolve\x20to\x20finite\x20coordinates.','getEndConnectInfo','getSnapshot','ShapeGradientTypeEnum','flipY','extend','getShapeType','4664855HWcvgp','UniverProEngineShapeFacade','setFontFamily','NoLine','bringForward','map','setUnderline','setNoneFill','Connector\x20relationships\x20and\x20route\x20points\x20require\x20FConnectorShape.','[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22','adjustValues','ImageSourceTypeEnum','_updateShapeData','_getConnectorAdapter','ShapeImageSourceTypeEnum','_bind','_shapeHostAdapterRegistry','getAdjustHandles','getStartConnectInfo','getAdjustInfo','FEnum','sendToBack','Radial','_getConnectorSnapshot','setSelectable','_getSnapshot','_mutate','end','SolidFill','FConnectorShape','47816wIOque','setShapeData','radial','object','bring\x20forward','from','FBase','_getShapeData','setStrokeLineType','\x22\x20requires\x20Connector\x20Shape\x20data.','setEndArrow','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','[Shape\x20Facade]:\x20Shape\x20\x22','setItalic','length','applyShapeTextStyle','setAdjustValueByName','set\x20end\x20arrow','updateShape','getRichText','@univerjs/core/facade','@univerjs/core','setGradientFill','every','scaleY','\x20requires\x20both\x20\x22x\x22\x20and\x20\x22y\x22.','getDescription','[Shape\x20Facade]:\x20Failed\x20to\x20','createInstance','deepClone','\x22\x20text.','ShapeArrowSizeEnum','Tile','[Shape\x20Facade]:\x20Shape\x20adjustment\x20\x22','set\x20start\x20arrow','setTransform','has','setVisible','toStringTag','setStrokeColor','relation','[Shape\x20Facade]:\x20Failed\x20to\x20resolve\x20geometry\x20for\x20Shape\x20\x22','\x22\x20points\x20must\x20contain\x20finite\x20coordinates.','Shape\x20height\x20must\x20be\x20greater\x20than\x20zero.','\x22\x20must\x20be\x20boolean.','flipX','picture','_patchStroke','selectable','start','bindStart','ShapeTextAutoFitType','amd','ShapeModel','parseSvgPathData','ShapeLineCapEnum','isCustomShape','getPlainText','setDescription','getConnector','\x22\x20was\x20not\x20found.','setCustomGeometry','solid','URL','bindEnd','shapeId','height','toPlainText','_commandService','IConnectorShapeHostAdapter','ShapeFillEnum','remove','send\x20to\x20back','shapeType','setStrokeLineDashType','Shape\x20\x22','isConnectorShape','Shape\x20transform\x20\x22','ShapeTextWrapType','[Shape\x20Facade]:\x20Connector\x20\x22','scaleX','Shape\x20width\x20must\x20be\x20greater\x20than\x20zero.','isSelectable','updateContext','none','setAdjustValues','shapeData','pathLst','stroke','opacity','set\x20end\x20point','points','ImageFillModeEnum','setStartPoint','Tools','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22','applyRichTextToShapeText','TRUE','bind\x20','boolean','send\x20backward','startArrow','setAbsolutePosition','ShapeOperatorEnum','FShapeText','width','setName','setStroke','Module','setVerticalAlign','ShapeTypeEnum','328062bTdLek','_mutateConnector','171TMSwjw','[Shape\x20Facade]:\x20Gradient\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','BooleanNumber','UniverProEngineShape','update','getOwnPropertyDescriptor','_shapeRef','_patchShapeData','setRichText','isVisible','UniverCoreFacade','setRotation','sendBackward','rotation','mode','unbind\x20start','setTextStyle','offsetY','setFontSize','9683550ZkaNQY','UniverCore','\x22\x20must\x20be\x20finite.','cxnLst','setEndPoint','lineStrokeType','setStrokeOpacity','applyShapeTextBoxOptions','_getGeometryModel','set\x20route\x20points','Diamond','routePoints','PictureFill','FALSE','2817TzrZzo','setImageFill','bringToFront','29488feCTai','getTextBoxOptions','ICommandService','stretch','FShape','[Shape\x20Facade]:\x20','setSize','ShapeLineTypeEnum','applyShapeTextAlignment','entries','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','ShapeTextDirection','removeShape','Linear','Angular','get','18516hwkYbH','isCustom','data','getCustomGeometry','\x20Shape\x20\x22','gradient','customGeometry','349057NtAOvE','getShape','getEndEndpoint'];_0x9571=function(){return _0x460393;};return _0x9571();}function _0x40a1(_0x578ec6,_0x2249d0){_0x578ec6=_0x578ec6-0x64;const _0x95719f=_0x9571();let _0x40a13b=_0x95719f[_0x578ec6];return _0x40a13b;}(function(_0x1d0b40,_0x18787d){const _0x3f870e=_0x40a1,_0x1caf23=_0x1d0b40();while(!![]){try{const _0x11b3bb=-parseInt(_0x3f870e(0xea))/0x1+parseInt(_0x3f870e(0xad))/0x2+-parseInt(_0x3f870e(0xaf))/0x3*(-parseInt(_0x3f870e(0x134))/0x4)+parseInt(_0x3f870e(0x116))/0x5+parseInt(_0x3f870e(0xe3))/0x6*(-parseInt(_0x3f870e(0xfe))/0x7)+parseInt(_0x3f870e(0xd3))/0x8*(-parseInt(_0x3f870e(0xd0))/0x9)+parseInt(_0x3f870e(0xc2))/0xa;if(_0x11b3bb===_0x18787d)break;else _0x1caf23['push'](_0x1caf23['shift']());}catch(_0x4f8e89){_0x1caf23['push'](_0x1caf23['shift']());}}}(_0x9571,0xa997c),function(_0x30fa45,_0x1521da){const _0x4401e4=_0x40a1;typeof exports==_0x4401e4(0x137)&&typeof module<'u'?_0x1521da(exports,require('@univerjs-pro/engine-shape'),require('@univerjs/core/facade'),require('@univerjs/core')):typeof define=='function'&&define[_0x4401e4(0x72)]?define(['exports','@univerjs-pro/engine-shape',_0x4401e4(0x148),_0x4401e4(0x149)],_0x1521da):(_0x30fa45=typeof globalThis<'u'?globalThis:_0x30fa45||self,_0x1521da(_0x30fa45[_0x4401e4(0x117)]={},_0x30fa45[_0x4401e4(0xb2)],_0x30fa45[_0x4401e4(0xb9)],_0x30fa45[_0x4401e4(0xc3)]));}(this,function(_0x1f467a,_0x45d649,_0x44e441,_0x3624c2){const _0x1b6bd2=_0x40a1;Object['defineProperty'](_0x1f467a,Symbol[_0x1b6bd2(0x64)],{'value':_0x1b6bd2(0xaa)});var _0x25f903=class extends _0x44e441[_0x1b6bd2(0x12a)]{get[_0x1b6bd2(0xac)](){const _0x1f14ff=_0x1b6bd2;return _0x45d649[_0x1f14ff(0xac)];}get[_0x1b6bd2(0x84)](){const _0xd90d4d=_0x1b6bd2;return _0x45d649[_0xd90d4d(0x84)];}get[_0x1b6bd2(0x112)](){const _0x50373b=_0x1b6bd2;return _0x45d649[_0x50373b(0x112)];}get['ShapeImageFillModeEnum'](){const _0x5759e9=_0x1b6bd2;return _0x45d649[_0x5759e9(0x9a)];}get[_0x1b6bd2(0x124)](){return _0x45d649['ImageSourceTypeEnum'];}get['ShapeLineTypeEnum'](){const _0x2fb5aa=_0x1b6bd2;return _0x45d649[_0x2fb5aa(0xda)];}get[_0x1b6bd2(0xfa)](){return _0x45d649['ShapeLineDashEnum'];}get[_0x1b6bd2(0x75)](){return _0x45d649['ShapeLineCapEnum'];}get['ShapeLineJoinEnum'](){const _0x1a61f1=_0x1b6bd2;return _0x45d649[_0x1a61f1(0x10d)];}get[_0x1b6bd2(0xa5)](){const _0xf43c4d=_0x1b6bd2;return _0x45d649[_0xf43c4d(0xa5)];}get['ShapeArrowTypeEnum'](){return _0x45d649['ShapeArrowTypeEnum'];}get[_0x1b6bd2(0x153)](){const _0x390dcd=_0x1b6bd2;return _0x45d649[_0x390dcd(0x153)];}get['ShapeTextAutoFitType'](){const _0x1f9683=_0x1b6bd2;return _0x45d649[_0x1f9683(0x71)];}get[_0x1b6bd2(0xde)](){const _0x19eb0f=_0x1b6bd2;return _0x45d649[_0x19eb0f(0xde)];}get[_0x1b6bd2(0x8c)](){const _0x241c0f=_0x1b6bd2;return _0x45d649[_0x241c0f(0x8c)];}};_0x44e441[_0x1b6bd2(0x12a)][_0x1b6bd2(0x114)](_0x25f903);function _0x5f42ae(_0xfe653e){const _0x56f8d9=_0x1b6bd2;switch(_0xfe653e){case _0x45d649[_0x56f8d9(0x112)][_0x56f8d9(0x12c)]:return _0x56f8d9(0x136);case _0x45d649['ShapeGradientTypeEnum'][_0x56f8d9(0xe1)]:return'angular';case _0x45d649[_0x56f8d9(0x112)][_0x56f8d9(0xcc)]:return'diamond';case _0x45d649[_0x56f8d9(0x112)][_0x56f8d9(0xe0)]:default:return'linear';}}function _0x5119b2(_0x1abeef){const _0x1181d2=_0x1b6bd2;return _0x1abeef===_0x45d649[_0x1181d2(0x9a)][_0x1181d2(0x154)]?'tile':_0x1181d2(0xd6);}var _0x5df612=class{constructor(_0x16469b,_0x9af8f3){const _0x43c542=_0x1b6bd2;this[_0x43c542(0xb5)]=_0x16469b,this[_0x43c542(0x104)]=_0x9af8f3;}[_0x1b6bd2(0x147)](){var _0x4de81b;return(0x0,_0x45d649['shapeTextToRichTextValue'])((_0x4de81b=this['_getShapeData']())==null?void 0x0:_0x4de81b['shapeText']);}[_0x1b6bd2(0x77)](){const _0x3f8c71=_0x1b6bd2;var _0x347a12;return((_0x347a12=this[_0x3f8c71(0x147)]())==null?void 0x0:_0x347a12[_0x3f8c71(0x81)]())??null;}[_0x1b6bd2(0xb7)](_0x12ba2d){const _0x37c7e3=_0x1b6bd2;return this[_0x37c7e3(0x122)](_0x4cf02c=>({..._0x4cf02c,'shapeText':(0x0,_0x45d649[_0x37c7e3(0x9e)])(_0x4cf02c[_0x37c7e3(0xfc)],_0x12ba2d)})),this;}[_0x1b6bd2(0x105)](_0x5945d7){const _0x2ed1d3=_0x1b6bd2;return this[_0x2ed1d3(0x122)](_0x698b79=>({..._0x698b79,'shapeText':(0x0,_0x45d649['applyTextToShapeText'])(_0x698b79[_0x2ed1d3(0xfc)],_0x5945d7)})),this;}[_0x1b6bd2(0xbf)](_0x4b3894){const _0x226ab7=_0x1b6bd2;return this[_0x226ab7(0x122)](_0x4de04f=>({..._0x4de04f,'shapeText':(0x0,_0x45d649[_0x226ab7(0x143)])(_0x4de04f[_0x226ab7(0xfc)],_0x4b3894)})),this;}['setColor'](_0x21f730,_0x2965e8){const _0x4ed1cd=_0x1b6bd2;return this[_0x4ed1cd(0xbf)]({'cl':{'rgb':_0x21f730},'textFill':{'type':_0x4ed1cd(0x7c),'color':_0x21f730,'opacity':_0x2965e8}});}['setNoneFill'](){const _0x46ebcb=_0x1b6bd2;return this[_0x46ebcb(0xbf)]({'cl':{'rgb':'rgba(0,\x200,\x200,\x200)'},'textFill':{'type':_0x46ebcb(0x92)}});}[_0x1b6bd2(0x14a)](_0x4555c2,_0x36fa4f,_0x17e0b0){const _0x38c605=_0x1b6bd2;return _0x36fa4f[_0x38c605(0x142)]<0x2?(console[_0x38c605(0x10b)](_0x38c605(0x100)),this):this['setTextStyle']({'cl':{'rgb':_0x36fa4f[0x0]['color']},'textFill':{'type':_0x38c605(0xe8),'gradient':{'type':_0x5f42ae(_0x4555c2),'angle':_0x17e0b0,'stops':_0x36fa4f[_0x38c605(0x11b)](({position:_0x381bd1,color:_0x3cab14,opacity:_0x15329d})=>({'offset':_0x381bd1,'color':_0x3cab14,'opacity':_0x15329d}))}}});}['setImageFill'](_0x2e3358,_0x2b85bb=_0x45d649[_0x1b6bd2(0x121)][_0x1b6bd2(0x7d)],_0x54dbe5={}){const _0xd30ffa=_0x1b6bd2;return this[_0xd30ffa(0xbf)]({'textFill':{'type':_0xd30ffa(0x6c),'picture':{'source':_0x2e3358,'sourceType':_0x2b85bb,'opacity':_0x54dbe5[_0xd30ffa(0x97)],'mode':_0x5119b2(_0x54dbe5[_0xd30ffa(0xbd)]),'scaleX':_0x54dbe5[_0xd30ffa(0x8e)],'scaleY':_0x54dbe5[_0xd30ffa(0x14c)],'offsetX':_0x54dbe5['offsetX'],'offsetY':_0x54dbe5[_0xd30ffa(0xc0)]}}});}[_0x1b6bd2(0xc1)](_0xac9169){const _0xd1d501=_0x1b6bd2;return this[_0xd1d501(0xbf)]({'fs':_0xac9169});}[_0x1b6bd2(0x118)](_0x3222ba){const _0x1f471c=_0x1b6bd2;return this[_0x1f471c(0xbf)]({'ff':_0x3222ba});}[_0x1b6bd2(0xff)](_0x2959c8){const _0x1e3103=_0x1b6bd2;return this[_0x1e3103(0xbf)]({'bl':_0x2959c8?_0x3624c2['BooleanNumber'][_0x1e3103(0x9f)]:_0x3624c2['BooleanNumber'][_0x1e3103(0xcf)]});}[_0x1b6bd2(0x141)](_0x43db9c){const _0x1c2b3d=_0x1b6bd2;return this[_0x1c2b3d(0xbf)]({'it':_0x43db9c?_0x3624c2[_0x1c2b3d(0xb1)][_0x1c2b3d(0x9f)]:_0x3624c2[_0x1c2b3d(0xb1)][_0x1c2b3d(0xcf)]});}[_0x1b6bd2(0x11c)](_0x46b214){const _0x3774ed=_0x1b6bd2;return this['setTextStyle']({'ul':{'s':_0x46b214?_0x3624c2[_0x3774ed(0xb1)]['TRUE']:_0x3624c2[_0x3774ed(0xb1)][_0x3774ed(0xcf)]}});}['setStrikethrough'](_0x42b501){const _0x438379=_0x1b6bd2;return this[_0x438379(0xbf)]({'st':{'s':_0x42b501?_0x3624c2[_0x438379(0xb1)]['TRUE']:_0x3624c2['BooleanNumber'][_0x438379(0xcf)]}});}['setHorizontalAlign'](_0x3934c7){const _0x3ab256=_0x1b6bd2;return this[_0x3ab256(0x122)](_0x4449e6=>(0x0,_0x45d649[_0x3ab256(0xdb)])(_0x4449e6,{'horizontalAlign':_0x3934c7})),this;}[_0x1b6bd2(0xab)](_0x3c6145){const _0x501d68=_0x1b6bd2;return this[_0x501d68(0x122)](_0x45291c=>(0x0,_0x45d649['applyShapeTextAlignment'])(_0x45291c,{'verticalAlign':_0x3c6145})),this;}[_0x1b6bd2(0xd4)](){const _0x15af9d=_0x1b6bd2;let _0x254a55=this[_0x15af9d(0x13b)]();return _0x254a55?(0x0,_0x45d649[_0x15af9d(0xf1)])(_0x254a55):null;}[_0x1b6bd2(0xf9)](_0x374748){const _0x1af1bd=_0x1b6bd2;return this[_0x1af1bd(0x122)](_0x582fe0=>(0x0,_0x45d649[_0x1af1bd(0xc9)])(_0x582fe0,_0x374748)),this;}['_getAdapter'](){const _0x41eedb=_0x1b6bd2;return this['_injector'][_0x41eedb(0xe2)](_0x45d649[_0x41eedb(0xf0)])[_0x41eedb(0xe2)](this[_0x41eedb(0xb5)][_0x41eedb(0xf7)]);}['_getShapeData'](){const _0x20db37=_0x1b6bd2;let _0x2b3546=this[_0x20db37(0x107)]();if(!_0x2b3546)return null;try{var _0x553026;return((_0x553026=_0x2b3546[_0x20db37(0xeb)](this[_0x20db37(0xb5)]))==null?void 0x0:_0x553026['shapeData'])||(console[_0x20db37(0x10b)]('[Shape\x20Text\x20Facade]:\x20Shape\x20\x22'+this['_shapeRef'][_0x20db37(0x7f)]+_0x20db37(0x7a)),null);}catch(_0x2a6c34){return console['warn'](_0x20db37(0x13f)+this['_shapeRef'][_0x20db37(0x7f)]+_0x20db37(0x152),_0x2a6c34),null;}}[_0x1b6bd2(0x122)](_0x1359c7){const _0x926670=_0x1b6bd2;let _0x48e96b=this['_getAdapter']();if(!_0x48e96b)return!0x1;try{var _0x109e70;let _0x3b669a=(_0x109e70=_0x48e96b['getShape'](this[_0x926670(0xb5)]))==null?void 0x0:_0x109e70[_0x926670(0x94)];if(!_0x3b669a)return console['warn']('[Shape\x20Text\x20Facade]:\x20Shape\x20\x22'+this[_0x926670(0xb5)][_0x926670(0x7f)]+_0x926670(0x7a)),!0x1;let _0x25120f=_0x48e96b['updateShape'](this[_0x926670(0xb5)],{'shapeData':_0x1359c7(_0x3b669a)});return _0x25120f||console[_0x926670(0x10b)](_0x926670(0x9d)+this[_0x926670(0xb5)][_0x926670(0x7f)]+'\x22\x20text.'),_0x25120f;}catch(_0x4b46c1){return console[_0x926670(0x10b)]('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22'+this[_0x926670(0xb5)]['shapeId']+_0x926670(0x152),_0x4b46c1),!0x1;}}};function _0xb5148(_0x453d76,_0x19e4dd){return function(_0x4eb25d,_0x45b22b){_0x19e4dd(_0x4eb25d,_0x45b22b,_0x453d76);};}function _0x1a0c0b(_0x3e7089,_0x3be1c6,_0x3096a4,_0x3880d1){const _0xe1703b=_0x1b6bd2;var _0x5b9052=arguments[_0xe1703b(0x142)],_0x319044=_0x5b9052<0x3?_0x3be1c6:_0x3880d1===null?_0x3880d1=Object[_0xe1703b(0xb4)](_0x3be1c6,_0x3096a4):_0x3880d1,_0x437300;if(typeof Reflect==_0xe1703b(0x137)&&typeof Reflect['decorate']=='function')_0x319044=Reflect['decorate'](_0x3e7089,_0x3be1c6,_0x3096a4,_0x3880d1);else{for(var _0x52bc65=_0x3e7089[_0xe1703b(0x142)]-0x1;_0x52bc65>=0x0;_0x52bc65--)(_0x437300=_0x3e7089[_0x52bc65])&&(_0x319044=(_0x5b9052<0x3?_0x437300(_0x319044):_0x5b9052>0x3?_0x437300(_0x3be1c6,_0x3096a4,_0x319044):_0x437300(_0x3be1c6,_0x3096a4))||_0x319044);}return _0x5b9052>0x3&&_0x319044&&Object[_0xe1703b(0x10e)](_0x3be1c6,_0x3096a4,_0x319044),_0x319044;}function _0x19caff(_0x308a16){const _0x44276a=_0x1b6bd2;let _0x422692=_0x3624c2[_0x44276a(0x9c)]['deepClone'](_0x308a16);return _0x422692[_0x44276a(0x95)]&&=_0x422692[_0x44276a(0x95)][_0x44276a(0x11b)](_0xcbe86f=>{const _0x4df0d1=_0x44276a;var _0x15e7dc;if((_0x15e7dc=_0xcbe86f['dataArray'])!=null&&_0x15e7dc[_0x4df0d1(0x142)]){let {data:_0x408aed,..._0x294c5b}=_0xcbe86f;return _0x294c5b;}if(_0xcbe86f[_0x4df0d1(0xe5)]===void 0x0)return _0xcbe86f;let _0x658f58=(0x0,_0x45d649[_0x4df0d1(0x74)])(_0xcbe86f[_0x4df0d1(0xe5)]),{data:_0x274e02,..._0x41aecd}=_0xcbe86f;return{..._0x41aecd,'dataArray':_0x658f58};}),_0x422692;}let _0xa05e3e=class extends _0x44e441[_0x1b6bd2(0x13a)]{constructor(_0x552f5e,_0x3c4034,_0x55c76c,_0x502b9d){const _0xcf08e6=_0x1b6bd2;super(),this[_0xcf08e6(0xb5)]=_0x552f5e,this[_0xcf08e6(0x104)]=_0x3c4034,this[_0xcf08e6(0x126)]=_0x55c76c,this[_0xcf08e6(0x82)]=_0x502b9d;}[_0x1b6bd2(0x8a)](){return!0x1;}['getId'](){const _0x4642d9=_0x1b6bd2;return this[_0x4642d9(0xb5)][_0x4642d9(0x7f)];}[_0x1b6bd2(0xfb)](){const _0x4a300f=_0x1b6bd2;var _0xa21d7b;return(_0xa21d7b=this[_0x4a300f(0x12f)]())==null?void 0x0:_0xa21d7b['name'];}[_0x1b6bd2(0xa8)](_0x4b8281){const _0x5090f5=_0x1b6bd2;return this[_0x5090f5(0xb3)]({'name':_0x4b8281});}[_0x1b6bd2(0x14e)](){const _0x496f1c=_0x1b6bd2;var _0x16dc76;return(_0x16dc76=this[_0x496f1c(0x12f)]())==null?void 0x0:_0x16dc76['description'];}[_0x1b6bd2(0x78)](_0x3e196a){const _0x14cfc8=_0x1b6bd2;return this[_0x14cfc8(0xb3)]({'description':_0x3e196a});}['getHostType'](){const _0x308f6a=_0x1b6bd2;return this[_0x308f6a(0xb5)][_0x308f6a(0xf7)];}[_0x1b6bd2(0x115)](){const _0x3b9afc=_0x1b6bd2;var _0xa6baed;return((_0xa6baed=this['_getSnapshot']())==null?void 0x0:_0xa6baed[_0x3b9afc(0x87)])??null;}[_0x1b6bd2(0x103)](){const _0x5082a9=_0x1b6bd2;let _0x42f95e=this[_0x5082a9(0x12f)]();return _0x42f95e?_0x3624c2['Tools'][_0x5082a9(0x151)](_0x42f95e[_0x5082a9(0x94)]):null;}[_0x1b6bd2(0x111)](){const _0x179748=_0x1b6bd2;let _0xfa1e04=this[_0x179748(0x12f)]();return _0xfa1e04?_0x3624c2[_0x179748(0x9c)]['deepClone'](_0xfa1e04):null;}['getTransform'](){const _0x1cecca=_0x1b6bd2;let _0x250cf6=this[_0x1cecca(0x12f)]();return _0x250cf6?{..._0x250cf6['transform']}:null;}[_0x1b6bd2(0xb8)](){var _0x4286ec;return((_0x4286ec=this['_getSnapshot']())==null?void 0x0:_0x4286ec['visible'])??!0x1;}[_0x1b6bd2(0x159)](_0x1b8655){const _0x4de5f0=_0x1b6bd2;return this[_0x4de5f0(0xb3)]({'visible':_0x1b8655});}[_0x1b6bd2(0x90)](){const _0x1e5668=_0x1b6bd2;var _0x23452c;return((_0x23452c=this[_0x1e5668(0x12f)]())==null?void 0x0:_0x23452c[_0x1e5668(0x6e)])??!0x1;}[_0x1b6bd2(0x12e)](_0x2b17bc){const _0xa2c1a6=_0x1b6bd2;return this[_0xa2c1a6(0xb3)]({'selectable':_0x2b17bc});}['getText'](){const _0x3a6834=_0x1b6bd2;return this['_injector'][_0x3a6834(0x150)](_0x5df612,this[_0x3a6834(0xb5)],this['_injector']);}[_0x1b6bd2(0x76)](){const _0x25bcbc=_0x1b6bd2;let _0x31adc3=this[_0x25bcbc(0x103)]();return(_0x31adc3==null?void 0x0:_0x31adc3[_0x25bcbc(0xe4)])===!0x0&&!!_0x31adc3['customGeometry'];}[_0x1b6bd2(0xe6)](){const _0x1f61f9=_0x1b6bd2;var _0x33d49a;return((_0x33d49a=this[_0x1f61f9(0x103)]())==null?void 0x0:_0x33d49a[_0x1f61f9(0xe9)])??null;}['setShapeType'](_0x5a31e5){const _0x3f86f5=_0x1b6bd2;return this[_0x3f86f5(0xb6)](_0x3faff2=>({..._0x3faff2,'shapeType':_0x5a31e5}),_0x5a31e5);}[_0x1b6bd2(0x135)](_0x543293){const _0x3ed430=_0x1b6bd2;let _0x133ec5=_0x3624c2['Tools'][_0x3ed430(0x151)](_0x543293);return this['update']({'shapeType':_0x133ec5['shapeType'],'shapeData':_0x133ec5});}[_0x1b6bd2(0x157)](_0x24d4b1){return this['update']({'transform':_0x24d4b1});}[_0x1b6bd2(0xd9)](_0x160a26,_0x359ea6){const _0x5a31ed=_0x1b6bd2;return this[_0x5a31ed(0x157)]({'width':_0x160a26,'height':_0x359ea6});}[_0x1b6bd2(0xba)](_0x5eb30a){const _0x1c87f3=_0x1b6bd2;return this[_0x1c87f3(0x157)]({'rotation':_0x5eb30a});}[_0x1b6bd2(0xa4)](_0x36669b,_0x4c60d3){const _0x573699=_0x1b6bd2;return this[_0x573699(0x157)]({'left':_0x36669b,'top':_0x4c60d3});}[_0x1b6bd2(0x7b)](_0x2a2c3c){const _0x2904ee=_0x1b6bd2;var _0x686568,_0x34bec9;let _0x39c29e=((_0x686568=_0x2a2c3c['cxnLst'])==null?void 0x0:_0x686568['findIndex'](({x:_0x18ca3b,y:_0x376e54})=>_0x18ca3b===void 0x0||_0x376e54===void 0x0))??-0x1;if(_0x39c29e>=0x0)return console[_0x2904ee(0x10b)]('[Shape\x20Facade]:\x20Custom\x20geometry\x20connection\x20site\x20'+_0x39c29e+_0x2904ee(0x14d)),this;let _0x7ff997=_0x19caff(_0x2a2c3c);if((_0x34bec9=_0x7ff997[_0x2904ee(0xc5)])!=null&&_0x34bec9['length']){let _0x363794=this[_0x2904ee(0x12f)]();if(!_0x363794)return this;try{let _0x22b78c=new _0x45d649[(_0x2904ee(0x73))](_0x363794[_0x2904ee(0x87)],_0x363794[_0x2904ee(0x7f)],{..._0x363794[_0x2904ee(0x94)],'isCustom':!0x0,'customGeometry':_0x7ff997});_0x22b78c[_0x2904ee(0x91)]({'width':_0x363794[_0x2904ee(0x101)]['width'],'height':_0x363794[_0x2904ee(0x101)]['height']}),_0x22b78c['getConnectionSiteList']();}catch{return console[_0x2904ee(0x10b)](_0x2904ee(0x10f)),this;}}return this[_0x2904ee(0xb6)](_0x53e1fe=>({..._0x53e1fe,'isCustom':!0x0,'customGeometry':_0x7ff997}));}[_0x1b6bd2(0xef)](_0x3666a6){const _0x9e0c2c=_0x1b6bd2;return this[_0x9e0c2c(0x7b)]({'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3666a6[_0x9e0c2c(0xa7)],'h':_0x3666a6[_0x9e0c2c(0x80)],'fill':_0x3666a6['fill'],'stroke':_0x3666a6[_0x9e0c2c(0x96)],'data':_0x3666a6['pathData']}]});}['getConnectionSites'](){const _0x20a9a4=_0x1b6bd2;var _0x2343e6;return((_0x2343e6=this[_0x20a9a4(0xca)]())==null?void 0x0:_0x2343e6['getConnectionSiteList']()['map'](_0x25a152=>({..._0x25a152})))??[];}[_0x1b6bd2(0x128)](){const _0x5af345=_0x1b6bd2;var _0x43f62c;let _0x54a495=(_0x43f62c=this[_0x5af345(0xca)]())==null?void 0x0:_0x43f62c[_0x5af345(0x128)]();return _0x54a495?{..._0x54a495}:null;}[_0x1b6bd2(0x110)](){const _0x2fd2ca=_0x1b6bd2;var _0x19f0a0;let _0x1bce48=(_0x19f0a0=this[_0x2fd2ca(0xca)]())==null?void 0x0:_0x19f0a0[_0x2fd2ca(0x110)]();return _0x1bce48?{..._0x1bce48}:null;}[_0x1b6bd2(0x127)](){const _0x578879=_0x1b6bd2;var _0xd00187;let _0x313b78=this[_0x578879(0xca)](),_0x5da248=(_0x313b78==null||(_0xd00187=_0x313b78[_0x578879(0x106)]()[_0x578879(0x10a)])==null?void 0x0:_0xd00187[_0x578879(0x142)])??0x0;return!_0x313b78||_0x5da248===0x0?[]:Array[_0x578879(0x139)]({'length':_0x5da248},(_0x3bcfaf,_0x1714e4)=>_0x313b78[_0x578879(0x129)](_0x1714e4))['filter'](_0x2f5673=>_0x2f5673!==void 0x0)['map'](_0x39691d=>_0x3624c2[_0x578879(0x9c)]['deepClone'](_0x39691d));}[_0x1b6bd2(0x93)](_0x1ccd5a){const _0x3f7632=_0x1b6bd2;let _0x104e11=Object[_0x3f7632(0xdc)](_0x1ccd5a);if(_0x104e11[_0x3f7632(0x142)]===0x0)return this;let _0x553b34=this[_0x3f7632(0xca)]();if(!_0x553b34)return this;let _0x1808e1=new Set(_0x553b34['getAdjustNames']());for(let [_0x3bd593,_0x25de69]of _0x104e11){if(!_0x1808e1[_0x3f7632(0x158)](_0x3bd593))return console[_0x3f7632(0x10b)]('[Shape\x20Facade]:\x20Shape\x20adjustment\x20\x22'+_0x3bd593+'\x22\x20does\x20not\x20exist.'),this;if(!Number['isFinite'](_0x25de69))return console[_0x3f7632(0x10b)](_0x3f7632(0x155)+_0x3bd593+_0x3f7632(0xc4)),this;}let _0x5b4bf6=Object['fromEntries'](_0x104e11['map'](([_0x481ca3,_0x512bd6])=>[_0x481ca3,_0x553b34[_0x3f7632(0x144)](_0x481ca3,_0x512bd6)]));return this[_0x3f7632(0xb6)](_0x1d2a8d=>({..._0x1d2a8d,'adjustValues':{..._0x1d2a8d[_0x3f7632(0x120)],..._0x5b4bf6}}));}[_0x1b6bd2(0xf6)](){const _0x18706c=_0x1b6bd2;let _0x1c2c19=this[_0x18706c(0x103)]();return _0x1c2c19!=null&&_0x1c2c19[_0x18706c(0x120)]?(delete _0x1c2c19['adjustValues'],this[_0x18706c(0xb3)]({'shapeData':_0x1c2c19})):this;}[_0x1b6bd2(0xfd)](_0x2fc14f,_0x1db7b5){const _0x4b0b24=_0x1b6bd2;return this[_0x4b0b24(0xb6)](_0x2c6eea=>({..._0x2c6eea,'fill':{'fillType':_0x45d649[_0x4b0b24(0x84)][_0x4b0b24(0x132)],'color':_0x2fc14f,'opacity':_0x1db7b5}}));}[_0x1b6bd2(0x14a)](_0x755d22,_0x2e4e07,_0x2f7f16){const _0x1c47ef=_0x1b6bd2;return _0x2e4e07['length']<0x2?(console[_0x1c47ef(0x10b)](_0x1c47ef(0xb0)),this):this[_0x1c47ef(0xb6)](_0x206ae6=>({..._0x206ae6,'fill':{'fillType':_0x45d649['ShapeFillEnum']['GradientFill'],'gradientType':_0x755d22,'gradientStops':_0x3624c2[_0x1c47ef(0x9c)][_0x1c47ef(0x151)](_0x2e4e07),'gradientAngle':_0x2f7f16}}));}[_0x1b6bd2(0xd1)](_0xb87e3a,_0x91bd9,_0x3d41b2={}){const _0xfdad48=_0x1b6bd2;return this['_patchShapeData'](_0x56b609=>({..._0x56b609,'fill':{..._0x3624c2[_0xfdad48(0x9c)][_0xfdad48(0x151)](_0x3d41b2),'fillType':_0x45d649[_0xfdad48(0x84)][_0xfdad48(0xce)],'fillImageSource':_0xb87e3a,'fillImageSourceType':_0x91bd9}}));}[_0x1b6bd2(0x11d)](){const _0x19e1ef=_0x1b6bd2;return this[_0x19e1ef(0xb6)](_0x13f73f=>({..._0x13f73f,'fill':{'fillType':_0x45d649['ShapeFillEnum']['NoFill']}}));}[_0x1b6bd2(0xa9)](_0x4166fb){const _0x51b494=_0x1b6bd2;return this['_patchShapeData'](_0x42efce=>({..._0x42efce,'stroke':_0x3624c2[_0x51b494(0x9c)]['deepClone'](_0x4166fb)}));}[_0x1b6bd2(0x65)](_0x16c3a6){const _0x3e9700=_0x1b6bd2;return this[_0x3e9700(0x6d)](_0x41be78=>({..._0x41be78,'color':_0x16c3a6,'lineStrokeType':_0x41be78[_0x3e9700(0xc7)]===_0x45d649[_0x3e9700(0xda)][_0x3e9700(0x119)]?_0x45d649[_0x3e9700(0xda)][_0x3e9700(0xee)]:_0x41be78['lineStrokeType']}));}['setStrokeWidth'](_0x815daa){const _0x4eafef=_0x1b6bd2;return this[_0x4eafef(0x6d)](_0x1e47a3=>({..._0x1e47a3,'width':_0x815daa,'lineStrokeType':_0x1e47a3[_0x4eafef(0xc7)]===_0x45d649[_0x4eafef(0xda)][_0x4eafef(0x119)]?_0x45d649['ShapeLineTypeEnum'][_0x4eafef(0xee)]:_0x1e47a3['lineStrokeType']}));}[_0x1b6bd2(0xc8)](_0x16ea73){const _0x22f41b=_0x1b6bd2;return this[_0x22f41b(0x6d)](_0x3f1112=>({..._0x3f1112,'opacity':_0x16ea73}));}[_0x1b6bd2(0x88)](_0x101b56){const _0x539611=_0x1b6bd2;return this[_0x539611(0x6d)](_0x4ca3d2=>({..._0x4ca3d2,'dashType':_0x101b56}));}['setStrokeLineJoinType'](_0x117b8a){const _0x65c078=_0x1b6bd2;return this[_0x65c078(0x6d)](_0x522278=>({..._0x522278,'lineJoinType':_0x117b8a}));}['setStrokeLineCapType'](_0x4a3a08){return this['_patchStroke'](_0x53cbed=>({..._0x53cbed,'capType':_0x4a3a08}));}[_0x1b6bd2(0x13c)](_0x1d8663){const _0x585bf7=_0x1b6bd2;return this[_0x585bf7(0x6d)](_0x2f4a13=>({..._0x2f4a13,'lineStrokeType':_0x1d8663}));}[_0x1b6bd2(0xb3)](_0x53b1d8){const _0x1df884=_0x1b6bd2;var _0x2d1572;let _0x2d7f64=_0x53b1d8[_0x1df884(0x94)],_0x11d1fc=_0x2d7f64&&(_0x1df884(0x66)in _0x2d7f64||_0x1df884(0x99)in _0x2d7f64)?this[_0x1df884(0x115)]():null,_0x6bfb19=_0x53b1d8[_0x1df884(0x87)]??((_0x2d1572=_0x53b1d8[_0x1df884(0x94)])==null?void 0x0:_0x2d1572['shapeType'])??_0x11d1fc,_0x4a3ff4=_0x3b604f(_0x53b1d8,_0x6bfb19!==null&&(0x0,_0x45d649[_0x1df884(0x8a)])(_0x6bfb19));return _0x4a3ff4?(console['warn'](_0x1df884(0xd8)+_0x4a3ff4),this):(this[_0x1df884(0x130)](_0x1df884(0xb3),_0xfe8457=>_0xfe8457[_0x1df884(0x146)](this[_0x1df884(0xb5)],_0x53b1d8)),this);}[_0x1b6bd2(0x85)](){const _0x1a34b1=_0x1b6bd2;return this[_0x1a34b1(0x130)](_0x1a34b1(0x85),_0x465b96=>_0x465b96[_0x1a34b1(0xdf)](this['_shapeRef']));}[_0x1b6bd2(0xd2)](){const _0x43f566=_0x1b6bd2;return this[_0x43f566(0x130)]('bring\x20to\x20front',_0x373670=>_0x373670[_0x43f566(0xd2)](this['_shapeRef'])),this;}[_0x1b6bd2(0x11a)](){const _0x14429f=_0x1b6bd2;return this[_0x14429f(0x130)](_0x14429f(0x138),_0x27bacc=>_0x27bacc[_0x14429f(0x11a)](this[_0x14429f(0xb5)])),this;}[_0x1b6bd2(0xbb)](){const _0x2e56fd=_0x1b6bd2;return this[_0x2e56fd(0x130)](_0x2e56fd(0xa2),_0x51d8aa=>_0x51d8aa[_0x2e56fd(0xbb)](this[_0x2e56fd(0xb5)])),this;}[_0x1b6bd2(0x12b)](){const _0x5c2135=_0x1b6bd2;return this[_0x5c2135(0x130)](_0x5c2135(0x86),_0x394829=>_0x394829[_0x5c2135(0x12b)](this[_0x5c2135(0xb5)])),this;}[_0x1b6bd2(0x107)](){const _0x43f7b9=_0x1b6bd2;return this['_shapeHostAdapterRegistry'][_0x43f7b9(0xe2)](this['_shapeRef'][_0x43f7b9(0xf7)]);}[_0x1b6bd2(0xb6)](_0x54496a,_0x3c04e7){const _0x323f89=_0x1b6bd2;let _0x23421=this[_0x323f89(0x103)]();return _0x23421?this[_0x323f89(0xb3)]({'shapeType':_0x3c04e7,'shapeData':_0x54496a(_0x23421)}):this;}[_0x1b6bd2(0x6d)](_0x4f3ac9){const _0x1a5458=_0x1b6bd2;return this['_patchShapeData'](_0x4ff16e=>({..._0x4ff16e,'stroke':_0x4f3ac9(_0x4ff16e[_0x1a5458(0x96)]??{})}));}[_0x1b6bd2(0x12f)](){const _0x4933fd=_0x1b6bd2;let _0x5e89f2=this['_getAdapter']();if(!_0x5e89f2)return null;try{return _0x5e89f2[_0x4933fd(0xeb)](this['_shapeRef'])||(console['warn'](_0x4933fd(0x140)+this[_0x4933fd(0xb5)][_0x4933fd(0x7f)]+_0x4933fd(0x7a)),null);}catch(_0xc95e43){return console[_0x4933fd(0x10b)](_0x4933fd(0xdd)+this[_0x4933fd(0xb5)][_0x4933fd(0x7f)]+'\x22.',_0xc95e43),null;}}[_0x1b6bd2(0xca)](){const _0x157d38=_0x1b6bd2;let _0x39f475=this[_0x157d38(0x12f)]();if(!_0x39f475)return null;try{let _0x27244c=new _0x45d649['ShapeModel'](_0x39f475['shapeType'],_0x39f475[_0x157d38(0x7f)],_0x3624c2['Tools']['deepClone'](_0x39f475[_0x157d38(0x94)]));return _0x27244c[_0x157d38(0x91)]({'width':_0x39f475[_0x157d38(0x101)][_0x157d38(0xa7)],'height':_0x39f475[_0x157d38(0x101)][_0x157d38(0x80)]}),_0x27244c;}catch(_0x8da01a){return console[_0x157d38(0x10b)](_0x157d38(0x67)+this[_0x157d38(0xb5)][_0x157d38(0x7f)]+'\x22.',_0x8da01a),null;}}[_0x1b6bd2(0x130)](_0x51ddc1,_0xa769c2){const _0x1930d5=_0x1b6bd2;let _0x351433=this['_getAdapter']();if(!_0x351433)return!0x1;try{let _0x6a7e9e=_0xa769c2(_0x351433);return _0x6a7e9e||console[_0x1930d5(0x10b)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x51ddc1+_0x1930d5(0xe7)+this['_shapeRef']['shapeId']+'\x22.'),_0x6a7e9e;}catch(_0x3f64cd){return console[_0x1930d5(0x10b)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x51ddc1+_0x1930d5(0xe7)+this[_0x1930d5(0xb5)][_0x1930d5(0x7f)]+'\x22.',_0x3f64cd),!0x1;}}};_0xa05e3e=_0x1a0c0b([_0xb5148(0x2,_0x45d649[_0x1b6bd2(0xf0)]),_0xb5148(0x3,_0x3624c2[_0x1b6bd2(0xd5)])],_0xa05e3e);function _0x3b604f(_0x5173d2,_0x2dc3a5=!0x1){const _0x5de2be=_0x1b6bd2;for(let _0x1482a4 of[_0x5de2be(0xf8),_0x5de2be(0x6e)]){let _0x57f793=_0x5173d2[_0x1482a4];if(_0x57f793!==void 0x0&&typeof _0x57f793!=_0x5de2be(0xa1))return _0x5de2be(0x89)+_0x1482a4+'\x22\x20must\x20be\x20boolean.';}let _0x3ed4c3=_0x5173d2['transform'];if(_0x3ed4c3){for(let _0xeae92c of['left',_0x5de2be(0x109),'width','height',_0x5de2be(0xbc)]){let _0x5a9385=_0x3ed4c3[_0xeae92c];if(_0x5a9385!==void 0x0&&!Number[_0x5de2be(0x10c)](_0x5a9385))return'Shape\x20transform\x20\x22'+_0xeae92c+_0x5de2be(0xc4);}if(_0x3ed4c3['width']!==void 0x0&&_0x3ed4c3['width']<=0x0)return _0x5de2be(0x8f);if(_0x3ed4c3[_0x5de2be(0x80)]!==void 0x0&&_0x3ed4c3['height']<=0x0)return _0x5de2be(0x69);for(let _0x5b9dc1 of[_0x5de2be(0x6b),_0x5de2be(0x113)]){let _0x43feb4=_0x3ed4c3[_0x5b9dc1];if(_0x43feb4!==void 0x0&&typeof _0x43feb4!='boolean')return _0x5de2be(0x8b)+_0x5b9dc1+_0x5de2be(0x6a);}}let _0x30b767=_0x5173d2[_0x5de2be(0x94)];return!_0x2dc3a5&&_0x30b767&&(_0x5de2be(0x66)in _0x30b767||_0x5de2be(0x99)in _0x30b767)?_0x5de2be(0x11e):null;}var _0x11d06a=class extends _0xa05e3e{[_0x1b6bd2(0x8a)](){return!0x0;}['getStartEndpoint'](){const _0x1aefc9=_0x1b6bd2;let _0x13b15c=this['_getConnectorSnapshot']();return _0x13b15c?_0x3624c2[_0x1aefc9(0x9c)]['deepClone'](_0x13b15c['start']):null;}[_0x1b6bd2(0xec)](){const _0xc71849=_0x1b6bd2;let _0xd8b56d=this[_0xc71849(0x12d)]();return _0xd8b56d?_0x3624c2[_0xc71849(0x9c)][_0xc71849(0x151)](_0xd8b56d[_0xc71849(0x131)]):null;}['getRoutePoints'](){const _0x16f91c=_0x1b6bd2;let _0x81bc92=this[_0x16f91c(0x12d)]();return _0x81bc92?_0x3624c2['Tools'][_0x16f91c(0x151)](_0x81bc92[_0x16f91c(0xcd)]):null;}['getStartArrow'](){const _0x5d86bb=_0x1b6bd2;let _0x165115=this[_0x5d86bb(0x12d)]();return _0x165115?_0x3624c2[_0x5d86bb(0x9c)][_0x5d86bb(0x151)](_0x165115[_0x5d86bb(0xa3)]):null;}[_0x1b6bd2(0xf4)](){const _0x520ca5=_0x1b6bd2;let _0x544e9c=this[_0x520ca5(0x12d)]();return _0x544e9c?_0x3624c2['Tools'][_0x520ca5(0x151)](_0x544e9c[_0x520ca5(0xf5)]):null;}[_0x1b6bd2(0xf3)](_0x4bb28c){const _0x4666a2=_0x1b6bd2;return(0x0,_0x45d649[_0x4666a2(0x8a)])(_0x4bb28c)?super[_0x4666a2(0xf3)](_0x4bb28c):(console[_0x4666a2(0x10b)](_0x4666a2(0x11f)+this['_shapeRef'][_0x4666a2(0x7f)]+'\x22\x20requires\x20a\x20Connector\x20Shape\x20type.'),this);}[_0x1b6bd2(0x135)](_0xbf56f3){const _0x411077=_0x1b6bd2;return _0xbf56f3[_0x411077(0x87)]!==void 0x0&&!(0x0,_0x45d649[_0x411077(0x8a)])(_0xbf56f3[_0x411077(0x87)])?(console[_0x411077(0x10b)]('[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22'+this['_shapeRef']['shapeId']+_0x411077(0x13d)),this):super[_0x411077(0x135)](_0xbf56f3);}['bindStart'](_0x11c6ef,_0x25a0ea){const _0x5360f4=_0x1b6bd2;return this[_0x5360f4(0x125)](_0x5360f4(0x6f),_0x11c6ef,_0x25a0ea),this;}[_0x1b6bd2(0x7e)](_0x2b2704,_0x5bdabb){const _0x5126be=_0x1b6bd2;return this['_bind'](_0x5126be(0x131),_0x2b2704,_0x5bdabb),this;}[_0x1b6bd2(0x108)](){const _0x55f4c9=_0x1b6bd2;return this[_0x55f4c9(0xae)](_0x55f4c9(0xbe),_0x469ba5=>_0x469ba5['unbindStart'](this[_0x55f4c9(0xb5)])),this;}['unbindEnd'](){const _0x38b83f=_0x1b6bd2;return this[_0x38b83f(0xae)]('unbind\x20end',_0x7051b2=>_0x7051b2[_0x38b83f(0xed)](this[_0x38b83f(0xb5)])),this;}[_0x1b6bd2(0x9b)](_0x554fdf){const _0x258c92=_0x1b6bd2;return _0x32e256(_0x554fdf,this[_0x258c92(0xb5)][_0x258c92(0x7f)])&&this[_0x258c92(0xae)](_0x258c92(0xf2),_0x5dc7b4=>_0x5dc7b4[_0x258c92(0x9b)](this[_0x258c92(0xb5)],_0x554fdf)),this;}[_0x1b6bd2(0xc6)](_0x33bfe2){const _0x3b35bb=_0x1b6bd2;return _0x32e256(_0x33bfe2,this[_0x3b35bb(0xb5)][_0x3b35bb(0x7f)])&&this[_0x3b35bb(0xae)](_0x3b35bb(0x98),_0x354683=>_0x354683[_0x3b35bb(0xc6)](this['_shapeRef'],_0x33bfe2)),this;}['setRoutePoints'](_0xfac1e7){const _0x43a2f1=_0x1b6bd2;return _0xfac1e7[_0x43a2f1(0x14b)](_0x26076e=>_0x32e256(_0x26076e,this['_shapeRef'][_0x43a2f1(0x7f)]))&&this[_0x43a2f1(0xae)](_0x43a2f1(0xcb),_0x6b8d5f=>_0x6b8d5f['setRoutePoints'](this[_0x43a2f1(0xb5)],_0xfac1e7)),this;}['setStartArrow'](_0x1dacb9,_0x3e972f){const _0x25089c=_0x1b6bd2;return this[_0x25089c(0xae)](_0x25089c(0x156),_0x3ca1c2=>_0x3ca1c2['setStartArrow'](this[_0x25089c(0xb5)],_0x1dacb9,_0x3e972f)),this;}['setEndArrow'](_0xa60973,_0x5d2662){const _0x56aa06=_0x1b6bd2;return this['_mutateConnector'](_0x56aa06(0x145),_0x3094d3=>_0x3094d3[_0x56aa06(0x13e)](this['_shapeRef'],_0xa60973,_0x5d2662)),this;}[_0x1b6bd2(0x123)](){const _0x2d86d0=_0x1b6bd2;return this[_0x2d86d0(0x104)][_0x2d86d0(0xe2)](_0x45d649[_0x2d86d0(0x83)]);}['_getConnectorSnapshot'](){const _0x9f649d=_0x1b6bd2;let _0x502e33=this[_0x9f649d(0x123)]();if(!_0x502e33)return null;try{return _0x502e33[_0x9f649d(0x79)](this['_shapeRef'])||(console[_0x9f649d(0x10b)](_0x9f649d(0x11f)+this[_0x9f649d(0xb5)][_0x9f649d(0x7f)]+_0x9f649d(0x7a)),null);}catch(_0x678e63){return console[_0x9f649d(0x10b)]('[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Connector\x20Shape\x20\x22'+this[_0x9f649d(0xb5)][_0x9f649d(0x7f)]+'\x22.',_0x678e63),null;}}[_0x1b6bd2(0x125)](_0x2c4371,_0x196b98,_0x4ef5c7){const _0x59c816=_0x1b6bd2;if(!_0x196b98||!Number['isInteger'](_0x4ef5c7)||_0x4ef5c7<0x0)return console[_0x59c816(0x10b)](_0x59c816(0x8d)+this[_0x59c816(0xb5)][_0x59c816(0x7f)]+'\x22\x20binding\x20requires\x20a\x20target\x20Shape\x20ID\x20and\x20a\x20non-negative\x20connection\x20site\x20index.'),!0x1;let _0x34406f={'shapeId':_0x196b98,'cxnIndex':_0x4ef5c7};return this['_mutateConnector'](_0x59c816(0xa0)+_0x2c4371,_0x1aeb88=>_0x2c4371===_0x59c816(0x6f)?_0x1aeb88[_0x59c816(0x70)](this[_0x59c816(0xb5)],_0x34406f):_0x1aeb88[_0x59c816(0x7e)](this[_0x59c816(0xb5)],_0x34406f));}[_0x1b6bd2(0xae)](_0xad2c86,_0x4ddba7){const _0x25926b=_0x1b6bd2;let _0x5d6bb5=this[_0x25926b(0x123)]();if(!_0x5d6bb5)return!0x1;try{let _0xf25fa6=_0x4ddba7(_0x5d6bb5);return _0xf25fa6||console[_0x25926b(0x10b)](_0x25926b(0x14f)+_0xad2c86+_0x25926b(0x102)+this[_0x25926b(0xb5)]['shapeId']+'\x22.'),_0xf25fa6;}catch(_0x884c22){return console[_0x25926b(0x10b)](_0x25926b(0x14f)+_0xad2c86+_0x25926b(0x102)+this['_shapeRef'][_0x25926b(0x7f)]+'\x22.',_0x884c22),!0x1;}}};function _0x32e256(_0x2b6b49,_0x4ed3c7){const _0x540ec1=_0x1b6bd2;return!Number[_0x540ec1(0x10c)](_0x2b6b49['x'])||!Number[_0x540ec1(0x10c)](_0x2b6b49['y'])?(console['warn'](_0x540ec1(0x8d)+_0x4ed3c7+_0x540ec1(0x68)),!0x1):!0x0;}_0x1f467a[_0x1b6bd2(0x133)]=_0x11d06a,Object[_0x1b6bd2(0x10e)](_0x1f467a,_0x1b6bd2(0xd7),{'enumerable':!0x0,'get':function(){return _0xa05e3e;}}),_0x1f467a[_0x1b6bd2(0xa6)]=_0x5df612;}));