@univerjs-pro/engine-shape 1.0.0-alpha.7 → 1.0.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x433b6d=_0x2cd6;function _0x23f6(){const _0x159a53=['ShapeTextDirection','toPlainText','SolidLine','getHostType','diamond','getDescription','_getConnectorAdapter','setText','setFontFamily','ShapeImageFillModeEnum','2539906jTuCGl','853758btdjkP','width','getEndEndpoint','\x20Shape\x20\x22','linear','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22','_mutate','ShapeLineTypeEnum','length','[Shape\x20Facade]:\x20Connector\x20\x22','bindStart','setTextBoxOptions','setShapeData','setSelectable','boolean','\x20Connector\x20Shape\x20\x22','39MAWTSS','updateShape','color','GradientFill','scaleX','angular','ShapeGradientTypeEnum','setStrokeLineJoinType','243988IgsfIA','bring\x20forward','5637924uHQTGC','bindEnd','isFinite','setBold','solid','get','opacity','shapeId','getStartEndpoint','sendToBack','_updateShapeData','customGeometry','end','setStartArrow','set\x20end\x20arrow','update','bring\x20to\x20front','ShapeArrowSizeEnum','top','shapeData','set\x20route\x20points','setImageFill','TRUE','_shapeRef','setTextStyle','_patchShapeData','sendBackward','isCustom','getPlainText','setStartPoint','\x22\x20text.','getConnectionSiteList','setGradientFill','setVerticalAlign','ShapeTypeEnum','bringForward','\x22\x20binding\x20requires\x20a\x20target\x20Shape\x20ID\x20and\x20a\x20non-negative\x20connection\x20site\x20index.','removeShape','start','Shape\x20height\x20must\x20be\x20greater\x20than\x20zero.','setEndPoint','setName','height','getShapeType','getName','\x22\x20must\x20be\x20boolean.','PictureFill','set\x20start\x20point','setStrokeLineCapType','remove','send\x20to\x20back','setRichText','every','7608825doYWHr','relation','warn','startArrow','_injector','setStrikethrough','[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22','setNoneFill','getShape','setStrokeColor','bind\x20','_patchStroke','\x22\x20points\x20must\x20contain\x20finite\x20coordinates.','_mutateConnector','description','_getSnapshot','setShapeType','getSnapshot','46672cHSGSK','Tile','Shape\x20\x22','map','_getGeometryModel','ShapeFillEnum','NoFill','getTransform','setDescription','visible','unbindStart','setStrokeLineDashType','routePoints','bringToFront','Connector\x20relationships\x20and\x20route\x20points\x20require\x20FConnectorShape.','offsetX','isSelectable','[Shape\x20Facade]:\x20Failed\x20to\x20','\x22\x20requires\x20Connector\x20Shape\x20data.','createInstance','setStrokeLineType','isCustomShape','setRoutePoints','_bind','_getAdapter','_getShapeData','setStrokeWidth','getRichText','ShapeLineJoinEnum','lineStrokeType','hostType','deepClone','getDrawingPoints','SolidFill','[Shape\x20Text\x20Facade]:\x20Gradient\x20text\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','ShapeOperatorEnum','selectable','shapeType','gradient','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Connector\x20Shape\x20\x22','getRoutePoints','radial','[Shape\x20Facade]:\x20Gradient\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','_getConnectorSnapshot','setFontSize','Shape\x20transform\x20\x22','[Shape\x20Facade]:\x20Shape\x20\x22','430VWqTMv','setItalic','stretch','462681vVScNH','unbindEnd','FALSE','left','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','set\x20start\x20arrow','getStartConnectInfo','[Shape\x20Facade]:\x20Failed\x20to\x20resolve\x20geometry\x20for\x20Shape\x20\x22','getConnectionSites','Linear','setVisible','none','1253FHmhWY','shapeText','getEndConnectInfo','setTransform','setEndArrow','send\x20backward','\x22\x20was\x20not\x20found.','setStroke','getShapeData','isConnectorShape','[Shape\x20Text\x20Facade]:\x20Shape\x20\x22','transform','updateContext','mode','endArrow','NoLine','stroke','getStartArrow','Shape\x20width\x20must\x20be\x20greater\x20than\x20zero.','rotation','points','offsetY'];_0x23f6=function(){return _0x159a53;};return _0x23f6();}(function(_0x44740d,_0x1c3252){const _0x22c9c8=_0x2cd6,_0x3b3b80=_0x44740d();while(!![]){try{const _0x115ce4=-parseInt(_0x22c9c8(0xfa))/0x1+-parseInt(_0x22c9c8(0xf9))/0x2+-parseInt(_0x22c9c8(0x10a))/0x3*(parseInt(_0x22c9c8(0x112))/0x4)+parseInt(_0x22c9c8(0x149))/0x5+-parseInt(_0x22c9c8(0x114))/0x6+parseInt(_0x22c9c8(0xd9))/0x7*(parseInt(_0x22c9c8(0x15b))/0x8)+-parseInt(_0x22c9c8(0xcd))/0x9*(-parseInt(_0x22c9c8(0xca))/0xa);if(_0x115ce4===_0x1c3252)break;else _0x3b3b80['push'](_0x3b3b80['shift']());}catch(_0x1a8f35){_0x3b3b80['push'](_0x3b3b80['shift']());}}}(_0x23f6,0xe0af8));import{IConnectorShapeHostAdapter as _0x16708f,IShapeHostAdapterRegistry as _0x4ae540,ImageFillModeEnum as _0x2ec5be,ImageSourceTypeEnum as _0x4440bd,ShapeArrowSizeEnum as _0x398055,ShapeArrowTypeEnum as _0xbc4ea7,ShapeFillEnum as _0x2533cb,ShapeGradientTypeEnum as _0x1cbbf7,ShapeLineCapEnum as _0xe84ee6,ShapeLineDashEnum as _0x41789d,ShapeLineJoinEnum as _0x14b1ea,ShapeLineTypeEnum as _0x1b809a,ShapeModel as _0x42c72b,ShapeOperatorEnum as _0x21d5a6,ShapeTextAutoFitType as _0x4c62ac,ShapeTextDirection as _0x3d4681,ShapeTextWrapType as _0x38edac,ShapeTypeEnum as _0x48fcf2,applyRichTextToShapeText as _0x13d644,applyShapeTextAlignment as _0x2c4c22,applyShapeTextBoxOptions as _0x47d449,applyShapeTextStyle as _0x2a3888,applyTextToShapeText as _0x20bed2,isConnectorShape as _0x27d6d1,resolveShapeTextBoxOptions as _0x32c686,shapeTextToRichTextValue as _0x4fa01a}from'@univerjs-pro/engine-shape';import{FBase as _0x422559,FEnum as _0x3915cf}from'@univerjs/core/facade';import{BooleanNumber as _0x1fcab0,Tools as _0x16ae0e}from'@univerjs/core';var A=class extends _0x3915cf{get[_0x433b6d(0x136)](){return _0x48fcf2;}get[_0x433b6d(0x160)](){return _0x2533cb;}get[_0x433b6d(0x110)](){return _0x1cbbf7;}get[_0x433b6d(0xf8)](){return _0x2ec5be;}get['ShapeImageSourceTypeEnum'](){return _0x4440bd;}get[_0x433b6d(0x101)](){return _0x1b809a;}get['ShapeLineDashEnum'](){return _0x41789d;}get['ShapeLineCapEnum'](){return _0xe84ee6;}get[_0x433b6d(0x177)](){return _0x14b1ea;}get[_0x433b6d(0xbe)](){return _0x21d5a6;}get['ShapeArrowTypeEnum'](){return _0xbc4ea7;}get[_0x433b6d(0x125)](){return _0x398055;}get['ShapeTextAutoFitType'](){return _0x4c62ac;}get[_0x433b6d(0xef)](){return _0x3d4681;}get['ShapeTextWrapType'](){return _0x38edac;}};_0x3915cf['extend'](A);function j(_0x496470){const _0x4535ce=_0x433b6d;switch(_0x496470){case _0x1cbbf7['Radial']:return _0x4535ce(0xc4);case _0x1cbbf7['Angular']:return _0x4535ce(0x10f);case _0x1cbbf7['Diamond']:return _0x4535ce(0xf3);case _0x1cbbf7[_0x4535ce(0xd6)]:default:return _0x4535ce(0xfe);}}function M(_0x10919b){const _0x677599=_0x433b6d;return _0x10919b===_0x2ec5be[_0x677599(0x15c)]?'tile':_0x677599(0xcc);}var N=class{constructor(_0x2ea796,_0x20afb7){const _0x20e89=_0x433b6d;this[_0x20e89(0x12b)]=_0x2ea796,this[_0x20e89(0x14d)]=_0x20afb7;}['getRichText'](){const _0x15acdb=_0x433b6d;var _0x5a47a3;return _0x4fa01a((_0x5a47a3=this[_0x15acdb(0x174)]())==null?void 0x0:_0x5a47a3[_0x15acdb(0xda)]);}[_0x433b6d(0x130)](){const _0x127e8f=_0x433b6d;var _0x32b82e,_0x23f97e;return(_0x32b82e=(_0x23f97e=this[_0x127e8f(0x176)]())==null?void 0x0:_0x23f97e[_0x127e8f(0xf0)]())==null?null:_0x32b82e;}[_0x433b6d(0x147)](_0x2e93f1){const _0x2c4866=_0x433b6d;return this[_0x2c4866(0x11e)](_0x32404e=>({..._0x32404e,'shapeText':_0x13d644(_0x32404e[_0x2c4866(0xda)],_0x2e93f1)})),this;}[_0x433b6d(0xf6)](_0x3e8924){const _0x156b21=_0x433b6d;return this[_0x156b21(0x11e)](_0x9519bb=>({..._0x9519bb,'shapeText':_0x20bed2(_0x9519bb[_0x156b21(0xda)],_0x3e8924)})),this;}[_0x433b6d(0x12c)](_0xc04558){const _0x61a6c6=_0x433b6d;return this[_0x61a6c6(0x11e)](_0x176516=>({..._0x176516,'shapeText':_0x2a3888(_0x176516[_0x61a6c6(0xda)],_0xc04558)})),this;}['setColor'](_0x9f34,_0x593d99){const _0x269d12=_0x433b6d;return this['setTextStyle']({'cl':{'rgb':_0x9f34},'textFill':{'type':_0x269d12(0x118),'color':_0x9f34,'opacity':_0x593d99}});}[_0x433b6d(0x150)](){const _0x14f0fc=_0x433b6d;return this['setTextStyle']({'cl':{'rgb':'rgba(0,\x200,\x200,\x200)'},'textFill':{'type':_0x14f0fc(0xd8)}});}[_0x433b6d(0x134)](_0x5084e2,_0x228fbf,_0x30e6df){const _0x105978=_0x433b6d;return _0x228fbf['length']<0x2?(console['warn'](_0x105978(0x17d)),this):this[_0x105978(0x12c)]({'cl':{'rgb':_0x228fbf[0x0][_0x105978(0x10c)]},'textFill':{'type':_0x105978(0xc1),'gradient':{'type':j(_0x5084e2),'angle':_0x30e6df,'stops':_0x228fbf['map'](({position:_0x13294a,color:_0x1fae6f,opacity:_0x1d1fc9})=>({'offset':_0x13294a,'color':_0x1fae6f,'opacity':_0x1d1fc9}))}}});}['setImageFill'](_0x55a269,_0x46f631=_0x4440bd['URL'],_0x46ccb0={}){const _0x1019b4=_0x433b6d;return this['setTextStyle']({'textFill':{'type':'picture','picture':{'source':_0x55a269,'sourceType':_0x46f631,'opacity':_0x46ccb0[_0x1019b4(0x11a)],'mode':M(_0x46ccb0[_0x1019b4(0xe6)]),'scaleX':_0x46ccb0[_0x1019b4(0x10e)],'scaleY':_0x46ccb0['scaleY'],'offsetX':_0x46ccb0[_0x1019b4(0x16a)],'offsetY':_0x46ccb0[_0x1019b4(0xee)]}}});}[_0x433b6d(0xc7)](_0xa7e712){const _0x3878e5=_0x433b6d;return this[_0x3878e5(0x12c)]({'fs':_0xa7e712});}[_0x433b6d(0xf7)](_0x4a70b2){const _0x27d7af=_0x433b6d;return this[_0x27d7af(0x12c)]({'ff':_0x4a70b2});}[_0x433b6d(0x117)](_0x52cad0){const _0x423473=_0x433b6d;return this[_0x423473(0x12c)]({'bl':_0x52cad0?_0x1fcab0[_0x423473(0x12a)]:_0x1fcab0[_0x423473(0xcf)]});}[_0x433b6d(0xcb)](_0x47dce0){const _0x10a3ff=_0x433b6d;return this[_0x10a3ff(0x12c)]({'it':_0x47dce0?_0x1fcab0[_0x10a3ff(0x12a)]:_0x1fcab0[_0x10a3ff(0xcf)]});}['setUnderline'](_0xfa6adc){const _0x41e062=_0x433b6d;return this[_0x41e062(0x12c)]({'ul':{'s':_0xfa6adc?_0x1fcab0[_0x41e062(0x12a)]:_0x1fcab0[_0x41e062(0xcf)]}});}[_0x433b6d(0x14e)](_0x3a7a92){const _0x1785d5=_0x433b6d;return this['setTextStyle']({'st':{'s':_0x3a7a92?_0x1fcab0['TRUE']:_0x1fcab0[_0x1785d5(0xcf)]}});}['setHorizontalAlign'](_0x299f3b){const _0x1831f2=_0x433b6d;return this[_0x1831f2(0x11e)](_0xb96622=>_0x2c4c22(_0xb96622,{'horizontalAlign':_0x299f3b})),this;}[_0x433b6d(0x135)](_0x2478da){return this['_updateShapeData'](_0x3c573f=>_0x2c4c22(_0x3c573f,{'verticalAlign':_0x2478da})),this;}['getTextBoxOptions'](){let _0x102357=this['_getShapeData']();return _0x102357?_0x32c686(_0x102357):null;}[_0x433b6d(0x105)](_0x5052a3){const _0x4977c3=_0x433b6d;return this[_0x4977c3(0x11e)](_0x40a73=>_0x47d449(_0x40a73,_0x5052a3)),this;}['_getAdapter'](){const _0x277eec=_0x433b6d;return this[_0x277eec(0x14d)]['get'](_0x4ae540)[_0x277eec(0x119)](this[_0x277eec(0x12b)][_0x277eec(0x179)]);}[_0x433b6d(0x174)](){const _0x5cc328=_0x433b6d;let _0xe1981c=this[_0x5cc328(0x173)]();if(!_0xe1981c)return null;try{var _0x270061;return((_0x270061=_0xe1981c[_0x5cc328(0x151)](this[_0x5cc328(0x12b)]))==null?void 0x0:_0x270061[_0x5cc328(0x127)])||(console[_0x5cc328(0x14b)](_0x5cc328(0xe3)+this[_0x5cc328(0x12b)][_0x5cc328(0x11b)]+_0x5cc328(0xdf)),null);}catch(_0x61a381){return console[_0x5cc328(0x14b)]('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22'+this['_shapeRef'][_0x5cc328(0x11b)]+_0x5cc328(0x132),_0x61a381),null;}}[_0x433b6d(0x11e)](_0x29d912){const _0x362f04=_0x433b6d;let _0x565ff2=this[_0x362f04(0x173)]();if(!_0x565ff2)return!0x1;try{var _0x59f3e7;let _0x2d5c4e=(_0x59f3e7=_0x565ff2['getShape'](this[_0x362f04(0x12b)]))==null?void 0x0:_0x59f3e7[_0x362f04(0x127)];if(!_0x2d5c4e)return console[_0x362f04(0x14b)](_0x362f04(0xe3)+this[_0x362f04(0x12b)][_0x362f04(0x11b)]+_0x362f04(0xdf)),!0x1;let _0x5dab6c=_0x565ff2[_0x362f04(0x10b)](this['_shapeRef'],{'shapeData':_0x29d912(_0x2d5c4e)});return _0x5dab6c||console['warn'](_0x362f04(0xff)+this[_0x362f04(0x12b)][_0x362f04(0x11b)]+'\x22\x20text.'),_0x5dab6c;}catch(_0x4db3e3){return console[_0x362f04(0x14b)](_0x362f04(0xff)+this[_0x362f04(0x12b)]['shapeId']+_0x362f04(0x132),_0x4db3e3),!0x1;}}},P=class extends _0x422559{constructor(_0x570db4,_0x328138){const _0x2f0d7c=_0x433b6d;super(),this[_0x2f0d7c(0x12b)]=_0x570db4,this[_0x2f0d7c(0x14d)]=_0x328138;}[_0x433b6d(0xe2)](){return!0x1;}['getId'](){return this['_shapeRef']['shapeId'];}[_0x433b6d(0x140)](){const _0x72273d=_0x433b6d;var _0x397421;return(_0x397421=this[_0x72273d(0x158)]())==null?void 0x0:_0x397421['name'];}[_0x433b6d(0x13d)](_0x3e0d01){return this['update']({'name':_0x3e0d01});}[_0x433b6d(0xf4)](){const _0x4ad498=_0x433b6d;var _0x3a58a2;return(_0x3a58a2=this[_0x4ad498(0x158)]())==null?void 0x0:_0x3a58a2[_0x4ad498(0x157)];}[_0x433b6d(0x163)](_0xd2baef){const _0x4bf4dd=_0x433b6d;return this[_0x4bf4dd(0x123)]({'description':_0xd2baef});}[_0x433b6d(0xf2)](){const _0x35e33b=_0x433b6d;return this[_0x35e33b(0x12b)][_0x35e33b(0x179)];}[_0x433b6d(0x13f)](){const _0x584a8f=_0x433b6d;var _0x46d6c9,_0x7fa163;return(_0x46d6c9=(_0x7fa163=this['_getSnapshot']())==null?void 0x0:_0x7fa163[_0x584a8f(0xc0)])==null?null:_0x46d6c9;}['getShapeData'](){const _0x15432f=_0x433b6d;let _0x5e4f2e=this[_0x15432f(0x158)]();return _0x5e4f2e?_0x16ae0e[_0x15432f(0x17a)](_0x5e4f2e[_0x15432f(0x127)]):null;}[_0x433b6d(0x15a)](){const _0x457cba=_0x433b6d;let _0x43507f=this['_getSnapshot']();return _0x43507f?_0x16ae0e[_0x457cba(0x17a)](_0x43507f):null;}[_0x433b6d(0x162)](){const _0x214f08=_0x433b6d;let _0x4f4476=this[_0x214f08(0x158)]();return _0x4f4476?{..._0x4f4476[_0x214f08(0xe4)]}:null;}['isVisible'](){const _0x572353=_0x433b6d;var _0x469c70,_0x2b5146;return(_0x469c70=(_0x2b5146=this['_getSnapshot']())==null?void 0x0:_0x2b5146[_0x572353(0x164)])==null?!0x1:_0x469c70;}[_0x433b6d(0xd7)](_0x5b3fb3){const _0x53707a=_0x433b6d;return this[_0x53707a(0x123)]({'visible':_0x5b3fb3});}[_0x433b6d(0x16b)](){const _0x421821=_0x433b6d;var _0xf4b206,_0x2bdb97;return(_0xf4b206=(_0x2bdb97=this[_0x421821(0x158)]())==null?void 0x0:_0x2bdb97[_0x421821(0xbf)])==null?!0x1:_0xf4b206;}[_0x433b6d(0x107)](_0x5de53e){const _0x2b788=_0x433b6d;return this[_0x2b788(0x123)]({'selectable':_0x5de53e});}['getText'](){const _0x27ab1c=_0x433b6d;return this[_0x27ab1c(0x14d)][_0x27ab1c(0x16e)](N,this['_shapeRef'],this['_injector']);}[_0x433b6d(0x170)](){const _0x2b854d=_0x433b6d;let _0x1b21e3=this['getShapeData']();return(_0x1b21e3==null?void 0x0:_0x1b21e3[_0x2b854d(0x12f)])===!0x0&&!!_0x1b21e3['customGeometry'];}['getCustomGeometry'](){const _0x5dff4f=_0x433b6d;var _0x3ed00c,_0x26bded;return(_0x3ed00c=(_0x26bded=this[_0x5dff4f(0xe1)]())==null?void 0x0:_0x26bded[_0x5dff4f(0x11f)])==null?null:_0x3ed00c;}[_0x433b6d(0x159)](_0x109e9c){const _0x55dc39=_0x433b6d;return this[_0x55dc39(0x12d)](_0x481de6=>({..._0x481de6,'shapeType':_0x109e9c}),_0x109e9c);}[_0x433b6d(0x106)](_0x58e1fd){const _0x51502c=_0x433b6d;let _0x7404f3=_0x16ae0e[_0x51502c(0x17a)](_0x58e1fd);return this['update']({'shapeType':_0x7404f3[_0x51502c(0xc0)],'shapeData':_0x7404f3});}[_0x433b6d(0xdc)](_0x454274){return this['update']({'transform':_0x454274});}['setSize'](_0x3dfdff,_0x5d958e){return this['setTransform']({'width':_0x3dfdff,'height':_0x5d958e});}['setRotation'](_0x5f2ac7){const _0x2d95a8=_0x433b6d;return this[_0x2d95a8(0xdc)]({'rotation':_0x5f2ac7});}['setAbsolutePosition'](_0x115729,_0x1ac19e){const _0x1649f2=_0x433b6d;return this[_0x1649f2(0xdc)]({'left':_0x115729,'top':_0x1ac19e});}['setCustomGeometry'](_0x33925d){const _0x2edca3=_0x433b6d;let _0x3ac4b1=_0x16ae0e[_0x2edca3(0x17a)](_0x33925d);return this['_patchShapeData'](_0x19bc09=>({..._0x19bc09,'isCustom':!0x0,'customGeometry':_0x3ac4b1}));}[_0x433b6d(0xd5)](){const _0x2ff0ff=_0x433b6d;var _0x451be1,_0x460ed6;return(_0x451be1=(_0x460ed6=this[_0x2ff0ff(0x15f)]())==null?void 0x0:_0x460ed6[_0x2ff0ff(0x133)]()['map'](_0x91eeb=>({..._0x91eeb})))==null?[]:_0x451be1;}['getAdjustPoints'](){const _0x454e02=_0x433b6d;var _0x4f774a,_0x312800;return(_0x4f774a=(_0x312800=this[_0x454e02(0x15f)]())==null?void 0x0:_0x312800[_0x454e02(0x17b)]()[_0x454e02(0x15e)](_0x1b22c3=>({..._0x1b22c3})))==null?[]:_0x4f774a;}[_0x433b6d(0xd3)](){var _0x1e638b;let _0x4ce639=(_0x1e638b=this['_getGeometryModel']())==null?void 0x0:_0x1e638b['getStartConnectInfo']();return _0x4ce639?{..._0x4ce639}:null;}[_0x433b6d(0xdb)](){const _0x22b490=_0x433b6d;var _0x4e00c9;let _0x4bf5f1=(_0x4e00c9=this[_0x22b490(0x15f)]())==null?void 0x0:_0x4e00c9[_0x22b490(0xdb)]();return _0x4bf5f1?{..._0x4bf5f1}:null;}['setSolidFill'](_0x33cd6e,_0x8e8d96){const _0xaa1639=_0x433b6d;return this['_patchShapeData'](_0x362825=>({..._0x362825,'fill':{'fillType':_0x2533cb[_0xaa1639(0x17c)],'color':_0x33cd6e,'opacity':_0x8e8d96}}));}[_0x433b6d(0x134)](_0x494311,_0x152e49,_0x1ecf61){const _0x19beeb=_0x433b6d;return _0x152e49[_0x19beeb(0x102)]<0x2?(console[_0x19beeb(0x14b)](_0x19beeb(0xc5)),this):this[_0x19beeb(0x12d)](_0x3ec88a=>({..._0x3ec88a,'fill':{'fillType':_0x2533cb[_0x19beeb(0x10d)],'gradientType':_0x494311,'gradientStops':_0x16ae0e['deepClone'](_0x152e49),'gradientAngle':_0x1ecf61}}));}[_0x433b6d(0x129)](_0x48690a,_0x26f9b9,_0x47a276={}){const _0x3479a4=_0x433b6d;return this[_0x3479a4(0x12d)](_0x89b88d=>({..._0x89b88d,'fill':{..._0x16ae0e['deepClone'](_0x47a276),'fillType':_0x2533cb[_0x3479a4(0x142)],'fillImageSource':_0x48690a,'fillImageSourceType':_0x26f9b9}}));}[_0x433b6d(0x150)](){const _0x2ecf62=_0x433b6d;return this[_0x2ecf62(0x12d)](_0x56903b=>({..._0x56903b,'fill':{'fillType':_0x2533cb[_0x2ecf62(0x161)]}}));}[_0x433b6d(0xe0)](_0x1e1def){const _0x31d3f4=_0x433b6d;return this[_0x31d3f4(0x12d)](_0x4a8e24=>({..._0x4a8e24,'stroke':_0x16ae0e[_0x31d3f4(0x17a)](_0x1e1def)}));}[_0x433b6d(0x152)](_0xaba992){const _0x25c76f=_0x433b6d;return this[_0x25c76f(0x154)](_0xca9be4=>({..._0xca9be4,'color':_0xaba992,'lineStrokeType':_0xca9be4[_0x25c76f(0x178)]===_0x1b809a[_0x25c76f(0xe8)]?_0x1b809a[_0x25c76f(0xf1)]:_0xca9be4['lineStrokeType']}));}[_0x433b6d(0x175)](_0xf39e91){const _0x5177da=_0x433b6d;return this[_0x5177da(0x154)](_0x555287=>({..._0x555287,'width':_0xf39e91,'lineStrokeType':_0x555287[_0x5177da(0x178)]===_0x1b809a[_0x5177da(0xe8)]?_0x1b809a[_0x5177da(0xf1)]:_0x555287['lineStrokeType']}));}['setStrokeOpacity'](_0x5c06fa){const _0x5a9de8=_0x433b6d;return this[_0x5a9de8(0x154)](_0x2b0b83=>({..._0x2b0b83,'opacity':_0x5c06fa}));}[_0x433b6d(0x166)](_0x48e9c3){const _0x25c108=_0x433b6d;return this[_0x25c108(0x154)](_0x3c157e=>({..._0x3c157e,'dashType':_0x48e9c3}));}[_0x433b6d(0x111)](_0x5d54f9){return this['_patchStroke'](_0x3b622f=>({..._0x3b622f,'lineJoinType':_0x5d54f9}));}[_0x433b6d(0x144)](_0x4dcd1b){const _0x21d552=_0x433b6d;return this[_0x21d552(0x154)](_0x69f31c=>({..._0x69f31c,'capType':_0x4dcd1b}));}[_0x433b6d(0x16f)](_0x65e91f){const _0x322db8=_0x433b6d;return this[_0x322db8(0x154)](_0x3fffdb=>({..._0x3fffdb,'lineStrokeType':_0x65e91f}));}['update'](_0x1f2b22){const _0x1c25cf=_0x433b6d;var _0x45a4ba,_0xf461fa,_0x3bda0c;let _0x5d1004=_0x1f2b22[_0x1c25cf(0x127)],_0xdecd14=_0x5d1004&&(_0x1c25cf(0x14a)in _0x5d1004||_0x1c25cf(0xed)in _0x5d1004)?this[_0x1c25cf(0x13f)]():null,_0x31526a=(_0x45a4ba=(_0xf461fa=_0x1f2b22[_0x1c25cf(0xc0)])==null?(_0x3bda0c=_0x1f2b22[_0x1c25cf(0x127)])==null?void 0x0:_0x3bda0c['shapeType']:_0xf461fa)==null?_0xdecd14:_0x45a4ba,_0x1fc8b6=F(_0x1f2b22,_0x31526a!==null&&_0x27d6d1(_0x31526a));return _0x1fc8b6?(console[_0x1c25cf(0x14b)]('[Shape\x20Facade]:\x20'+_0x1fc8b6),this):(this['_mutate'](_0x1c25cf(0x123),_0x14b9b5=>_0x14b9b5[_0x1c25cf(0x10b)](this[_0x1c25cf(0x12b)],_0x1f2b22)),this);}[_0x433b6d(0x145)](){const _0x4e4082=_0x433b6d;return this[_0x4e4082(0x100)]('remove',_0x4458e4=>_0x4458e4[_0x4e4082(0x139)](this[_0x4e4082(0x12b)]));}[_0x433b6d(0x168)](){const _0x42ea35=_0x433b6d;return this[_0x42ea35(0x100)](_0x42ea35(0x124),_0x31c791=>_0x31c791['bringToFront'](this[_0x42ea35(0x12b)])),this;}['bringForward'](){const _0x15d031=_0x433b6d;return this[_0x15d031(0x100)](_0x15d031(0x113),_0x261bd0=>_0x261bd0[_0x15d031(0x137)](this[_0x15d031(0x12b)])),this;}['sendBackward'](){const _0x4bc5f3=_0x433b6d;return this[_0x4bc5f3(0x100)](_0x4bc5f3(0xde),_0x193ca6=>_0x193ca6[_0x4bc5f3(0x12e)](this[_0x4bc5f3(0x12b)])),this;}[_0x433b6d(0x11d)](){const _0xd48c2d=_0x433b6d;return this[_0xd48c2d(0x100)](_0xd48c2d(0x146),_0x1a6671=>_0x1a6671[_0xd48c2d(0x11d)](this[_0xd48c2d(0x12b)])),this;}[_0x433b6d(0x173)](){const _0xbd90dd=_0x433b6d;return this[_0xbd90dd(0x14d)][_0xbd90dd(0x119)](_0x4ae540)[_0xbd90dd(0x119)](this[_0xbd90dd(0x12b)]['hostType']);}[_0x433b6d(0x12d)](_0x125b83,_0x28624b){const _0x3a0936=_0x433b6d;let _0x581c00=this['getShapeData']();return _0x581c00?this[_0x3a0936(0x123)]({'shapeType':_0x28624b,'shapeData':_0x125b83(_0x581c00)}):this;}[_0x433b6d(0x154)](_0x26f2ec){const _0x398d2f=_0x433b6d;return this[_0x398d2f(0x12d)](_0x265d61=>{const _0x446b30=_0x398d2f;var _0x491831;return{..._0x265d61,'stroke':_0x26f2ec((_0x491831=_0x265d61[_0x446b30(0xe9)])==null?{}:_0x491831)};});}[_0x433b6d(0x158)](){const _0x5371e6=_0x433b6d;let _0xfbac61=this[_0x5371e6(0x173)]();if(!_0xfbac61)return null;try{return _0xfbac61['getShape'](this[_0x5371e6(0x12b)])||(console[_0x5371e6(0x14b)](_0x5371e6(0xc9)+this[_0x5371e6(0x12b)][_0x5371e6(0x11b)]+'\x22\x20was\x20not\x20found.'),null);}catch(_0x28dd23){return console[_0x5371e6(0x14b)](_0x5371e6(0xd1)+this['_shapeRef'][_0x5371e6(0x11b)]+'\x22.',_0x28dd23),null;}}[_0x433b6d(0x15f)](){const _0x4c20b9=_0x433b6d;let _0x207ca5=this[_0x4c20b9(0x158)]();if(!_0x207ca5)return null;try{let _0xfc00f3=new _0x42c72b(_0x207ca5[_0x4c20b9(0xc0)],_0x207ca5[_0x4c20b9(0x11b)],_0x207ca5[_0x4c20b9(0x127)]);return _0xfc00f3[_0x4c20b9(0xe5)]({'width':_0x207ca5[_0x4c20b9(0xe4)][_0x4c20b9(0xfb)],'height':_0x207ca5[_0x4c20b9(0xe4)][_0x4c20b9(0x13e)]}),_0xfc00f3;}catch(_0x556729){return console['warn'](_0x4c20b9(0xd4)+this[_0x4c20b9(0x12b)][_0x4c20b9(0x11b)]+'\x22.',_0x556729),null;}}[_0x433b6d(0x100)](_0x58b34d,_0x1af6bc){const _0x440e74=_0x433b6d;let _0x2167cf=this[_0x440e74(0x173)]();if(!_0x2167cf)return!0x1;try{let _0x43cfd6=_0x1af6bc(_0x2167cf);return _0x43cfd6||console['warn']('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x58b34d+_0x440e74(0xfd)+this[_0x440e74(0x12b)][_0x440e74(0x11b)]+'\x22.'),_0x43cfd6;}catch(_0x3d59a0){return console['warn'](_0x440e74(0x16c)+_0x58b34d+_0x440e74(0xfd)+this['_shapeRef'][_0x440e74(0x11b)]+'\x22.',_0x3d59a0),!0x1;}}};function _0x2cd6(_0x10c0dd,_0x549036){_0x10c0dd=_0x10c0dd-0xbe;const _0x23f676=_0x23f6();let _0x2cd657=_0x23f676[_0x10c0dd];return _0x2cd657;}function F(_0x13e887,_0x3e36a1=!0x1){const _0x2c17d9=_0x433b6d;for(let _0x65a4dd of[_0x2c17d9(0x164),_0x2c17d9(0xbf)]){let _0x29909f=_0x13e887[_0x65a4dd];if(_0x29909f!==void 0x0&&typeof _0x29909f!='boolean')return _0x2c17d9(0x15d)+_0x65a4dd+_0x2c17d9(0x141);}let _0x4aa9fc=_0x13e887['transform'];if(_0x4aa9fc){for(let _0x1da40b of[_0x2c17d9(0xd0),_0x2c17d9(0x126),_0x2c17d9(0xfb),_0x2c17d9(0x13e),_0x2c17d9(0xec)]){let _0x2d425c=_0x4aa9fc[_0x1da40b];if(_0x2d425c!==void 0x0&&!Number['isFinite'](_0x2d425c))return _0x2c17d9(0xc8)+_0x1da40b+'\x22\x20must\x20be\x20finite.';}if(_0x4aa9fc[_0x2c17d9(0xfb)]!==void 0x0&&_0x4aa9fc['width']<=0x0)return _0x2c17d9(0xeb);if(_0x4aa9fc['height']!==void 0x0&&_0x4aa9fc[_0x2c17d9(0x13e)]<=0x0)return _0x2c17d9(0x13b);for(let _0xeef9f4 of['flipX','flipY']){let _0x526480=_0x4aa9fc[_0xeef9f4];if(_0x526480!==void 0x0&&typeof _0x526480!=_0x2c17d9(0x108))return _0x2c17d9(0xc8)+_0xeef9f4+_0x2c17d9(0x141);}}let _0xd952d0=_0x13e887[_0x2c17d9(0x127)];return!_0x3e36a1&&_0xd952d0&&(_0x2c17d9(0x14a)in _0xd952d0||'points'in _0xd952d0)?_0x2c17d9(0x169):null;}var I=class extends P{[_0x433b6d(0xe2)](){return!0x0;}[_0x433b6d(0x11c)](){const _0x303365=_0x433b6d;let _0x11ae49=this[_0x303365(0xc6)]();return _0x11ae49?_0x16ae0e[_0x303365(0x17a)](_0x11ae49[_0x303365(0x13a)]):null;}[_0x433b6d(0xfc)](){const _0x5a1595=_0x433b6d;let _0x2dc3c5=this[_0x5a1595(0xc6)]();return _0x2dc3c5?_0x16ae0e[_0x5a1595(0x17a)](_0x2dc3c5['end']):null;}[_0x433b6d(0xc3)](){const _0x250c11=_0x433b6d;let _0x47e8dd=this[_0x250c11(0xc6)]();return _0x47e8dd?_0x16ae0e['deepClone'](_0x47e8dd[_0x250c11(0x167)]):null;}[_0x433b6d(0xea)](){const _0x1778c6=_0x433b6d;let _0xe74dae=this['_getConnectorSnapshot']();return _0xe74dae?_0x16ae0e[_0x1778c6(0x17a)](_0xe74dae[_0x1778c6(0x14c)]):null;}['getEndArrow'](){const _0xfcebe9=_0x433b6d;let _0x8f540d=this[_0xfcebe9(0xc6)]();return _0x8f540d?_0x16ae0e[_0xfcebe9(0x17a)](_0x8f540d[_0xfcebe9(0xe7)]):null;}['setShapeType'](_0x1fd7ce){const _0x26c2d3=_0x433b6d;return _0x27d6d1(_0x1fd7ce)?super[_0x26c2d3(0x159)](_0x1fd7ce):(console['warn'](_0x26c2d3(0x14f)+this['_shapeRef']['shapeId']+'\x22\x20requires\x20a\x20Connector\x20Shape\x20type.'),this);}[_0x433b6d(0x106)](_0x4d9d6d){const _0x133d3b=_0x433b6d;return _0x4d9d6d[_0x133d3b(0xc0)]!==void 0x0&&!_0x27d6d1(_0x4d9d6d[_0x133d3b(0xc0)])?(console[_0x133d3b(0x14b)](_0x133d3b(0x14f)+this[_0x133d3b(0x12b)][_0x133d3b(0x11b)]+_0x133d3b(0x16d)),this):super[_0x133d3b(0x106)](_0x4d9d6d);}['bindStart'](_0x332bb2,_0x54d764){const _0x2533a1=_0x433b6d;return this[_0x2533a1(0x172)](_0x2533a1(0x13a),_0x332bb2,_0x54d764),this;}[_0x433b6d(0x115)](_0x44c872,_0xaa3894){const _0x59f7f5=_0x433b6d;return this[_0x59f7f5(0x172)](_0x59f7f5(0x120),_0x44c872,_0xaa3894),this;}[_0x433b6d(0x165)](){const _0x28ccbc=_0x433b6d;return this[_0x28ccbc(0x156)]('unbind\x20start',_0x476863=>_0x476863[_0x28ccbc(0x165)](this[_0x28ccbc(0x12b)])),this;}[_0x433b6d(0xce)](){const _0x25cb13=_0x433b6d;return this[_0x25cb13(0x156)]('unbind\x20end',_0x36d1ef=>_0x36d1ef[_0x25cb13(0xce)](this[_0x25cb13(0x12b)])),this;}[_0x433b6d(0x131)](_0x505537){const _0x34ca23=_0x433b6d;return L(_0x505537,this[_0x34ca23(0x12b)][_0x34ca23(0x11b)])&&this['_mutateConnector'](_0x34ca23(0x143),_0x3059cd=>_0x3059cd['setStartPoint'](this[_0x34ca23(0x12b)],_0x505537)),this;}[_0x433b6d(0x13c)](_0x3177e6){const _0x5f0697=_0x433b6d;return L(_0x3177e6,this[_0x5f0697(0x12b)][_0x5f0697(0x11b)])&&this[_0x5f0697(0x156)]('set\x20end\x20point',_0x50a371=>_0x50a371[_0x5f0697(0x13c)](this[_0x5f0697(0x12b)],_0x3177e6)),this;}[_0x433b6d(0x171)](_0x51e0fb){const _0x4f97ba=_0x433b6d;return _0x51e0fb[_0x4f97ba(0x148)](_0x49ab3f=>L(_0x49ab3f,this['_shapeRef'][_0x4f97ba(0x11b)]))&&this[_0x4f97ba(0x156)](_0x4f97ba(0x128),_0x33b5a9=>_0x33b5a9[_0x4f97ba(0x171)](this[_0x4f97ba(0x12b)],_0x51e0fb)),this;}[_0x433b6d(0x121)](_0x9b7b39,_0x3d190c){const _0x4b1efe=_0x433b6d;return this[_0x4b1efe(0x156)](_0x4b1efe(0xd2),_0x449f92=>_0x449f92[_0x4b1efe(0x121)](this[_0x4b1efe(0x12b)],_0x9b7b39,_0x3d190c)),this;}[_0x433b6d(0xdd)](_0x2ffc04,_0x231698){const _0x2f7399=_0x433b6d;return this[_0x2f7399(0x156)](_0x2f7399(0x122),_0x4000ec=>_0x4000ec[_0x2f7399(0xdd)](this[_0x2f7399(0x12b)],_0x2ffc04,_0x231698)),this;}[_0x433b6d(0xf5)](){const _0x303321=_0x433b6d;return this[_0x303321(0x14d)][_0x303321(0x119)](_0x16708f);}[_0x433b6d(0xc6)](){const _0xaa1b3a=_0x433b6d;let _0x3ad847=this[_0xaa1b3a(0xf5)]();if(!_0x3ad847)return null;try{return _0x3ad847['getConnector'](this[_0xaa1b3a(0x12b)])||(console[_0xaa1b3a(0x14b)](_0xaa1b3a(0x14f)+this[_0xaa1b3a(0x12b)][_0xaa1b3a(0x11b)]+'\x22\x20was\x20not\x20found.'),null);}catch(_0x151655){return console[_0xaa1b3a(0x14b)](_0xaa1b3a(0xc2)+this[_0xaa1b3a(0x12b)][_0xaa1b3a(0x11b)]+'\x22.',_0x151655),null;}}['_bind'](_0x38133b,_0x231eb4,_0x5af6ef){const _0x87e083=_0x433b6d;if(!_0x231eb4||!Number['isInteger'](_0x5af6ef)||_0x5af6ef<0x0)return console[_0x87e083(0x14b)](_0x87e083(0x103)+this['_shapeRef'][_0x87e083(0x11b)]+_0x87e083(0x138)),!0x1;let _0x3879ba={'shapeId':_0x231eb4,'cxnIndex':_0x5af6ef};return this[_0x87e083(0x156)](_0x87e083(0x153)+_0x38133b,_0x78a972=>_0x38133b===_0x87e083(0x13a)?_0x78a972[_0x87e083(0x104)](this['_shapeRef'],_0x3879ba):_0x78a972['bindEnd'](this[_0x87e083(0x12b)],_0x3879ba));}[_0x433b6d(0x156)](_0x1f419b,_0xae1f31){const _0x1df699=_0x433b6d;let _0x4cc3ad=this['_getConnectorAdapter']();if(!_0x4cc3ad)return!0x1;try{let _0x23f4e8=_0xae1f31(_0x4cc3ad);return _0x23f4e8||console['warn'](_0x1df699(0x16c)+_0x1f419b+_0x1df699(0x109)+this[_0x1df699(0x12b)][_0x1df699(0x11b)]+'\x22.'),_0x23f4e8;}catch(_0x4b19a4){return console[_0x1df699(0x14b)]('[Shape\x20Facade]:\x20Failed\x20to\x20'+_0x1f419b+_0x1df699(0x109)+this[_0x1df699(0x12b)]['shapeId']+'\x22.',_0x4b19a4),!0x1;}}};function L(_0x12b1c2,_0x4dec93){const _0x32b112=_0x433b6d;return!Number['isFinite'](_0x12b1c2['x'])||!Number[_0x32b112(0x116)](_0x12b1c2['y'])?(console[_0x32b112(0x14b)](_0x32b112(0x103)+_0x4dec93+_0x32b112(0x155)),!0x1):!0x0;}export{I as FConnectorShape,P as FShape,N as FShapeText};
1
+ const _0x52ff57=_0x5efd;(function(_0x160bed,_0x5e3fd7){const _0x1c8b85=_0x5efd,_0x7f065=_0x160bed();while(!![]){try{const _0x1f68a6=-parseInt(_0x1c8b85(0x265))/0x1+-parseInt(_0x1c8b85(0x1b5))/0x2+-parseInt(_0x1c8b85(0x1c5))/0x3+parseInt(_0x1c8b85(0x1c6))/0x4+-parseInt(_0x1c8b85(0x1ff))/0x5*(parseInt(_0x1c8b85(0x202))/0x6)+parseInt(_0x1c8b85(0x18f))/0x7*(parseInt(_0x1c8b85(0x225))/0x8)+-parseInt(_0x1c8b85(0x18a))/0x9*(-parseInt(_0x1c8b85(0x1db))/0xa);if(_0x1f68a6===_0x5e3fd7)break;else _0x7f065['push'](_0x7f065['shift']());}catch(_0x48af24){_0x7f065['push'](_0x7f065['shift']());}}}(_0x1883,0x67e32));import{IConnectorShapeHostAdapter as _0x3d4dd5,IShapeHostAdapterRegistry as _0x44688f,ImageFillModeEnum as _0x48e2ec,ImageSourceTypeEnum as _0x72e6bc,ShapeArrowSizeEnum as _0x201bed,ShapeArrowTypeEnum as _0x5150d1,ShapeFillEnum as _0x3546b0,ShapeGradientTypeEnum as _0xfd85c3,ShapeLineCapEnum as _0x4c9f20,ShapeLineDashEnum as _0x3bee9e,ShapeLineJoinEnum as _0x228f54,ShapeLineTypeEnum as _0x223320,ShapeModel as _0x25f06b,ShapeOperatorEnum as _0x452433,ShapeTextAutoFitType as _0x36aa28,ShapeTextDirection as _0x30cf2f,ShapeTextWrapType as _0x35f981,ShapeTypeEnum as _0x152a87,applyRichTextToShapeText as _0x3bdd5c,applyShapeTextAlignment as _0x5a2f55,applyShapeTextBoxOptions as _0x462165,applyShapeTextStyle as _0x2cf550,applyTextToShapeText as _0x599626,isConnectorShape as _0x1e0639,resolveShapeTextBoxOptions as _0x2c0abb,shapeTextToRichTextValue as _0x3c05f3}from'@univerjs-pro/engine-shape';function _0x1883(){const _0x15f9a6=['shapeType','solid','setStrikethrough','[Shape\x20Facade]:\x20Failed\x20to\x20','getAdjustNames','ShapeFillEnum','flipX','bring\x20forward','deepClone','_getGeometryModel','opacity','setVisible','getAdjustInfo','setStrokeWidth','_patchShapeData','setGradientFill','ShapeLineTypeEnum','NoLine','[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20update\x20Shape\x20\x22','setStrokeOpacity','_patchStroke','shapeId','[Shape\x20Text\x20Facade]:\x20Shape\x20\x22','setSelectable','bringToFront','[Shape\x20Facade]:\x20Gradient\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','\x22\x20was\x20not\x20found.','_getConnectorSnapshot','from','remove','set\x20end\x20point','unbindEnd','Connector\x20relationships\x20and\x20route\x20points\x20require\x20FConnectorShape.','setRotation','Tile','unbindStart','getName','setAbsolutePosition','getCustomGeometry','tile','function','740547lHADeq','[Shape\x20Facade]:\x20Custom\x20geometry\x20connection\x20site\x20','radial','setName','setFontSize','bindEnd','getConnectionSiteList','boolean','392103LYkaGj','ShapeOperatorEnum','\x20requires\x20both\x20\x22x\x22\x20and\x20\x22y\x22.','has','lineStrokeType','85183BryUAF','shapeText','PictureFill','[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22','set\x20start\x20point','_mutate','[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22','ShapeTextDirection','getShapeData','getStartConnectInfo','gradient','setStrokeLineDashType','customGeometry','set\x20start\x20arrow','setEndArrow','updateShape','getConnectionSites','send\x20to\x20back','getPlainText','getConnector','isCustom','hostType','findIndex','createInstance','setDescription','_getAdapter','every','mode','unbind\x20start','[Shape\x20Facade]:\x20Custom\x20geometry\x20connection\x20sites\x20must\x20resolve\x20to\x20finite\x20coordinates.','setShapeData','defineProperty','[Shape\x20Text\x20Facade]:\x20Gradient\x20text\x20fill\x20requires\x20at\x20least\x20two\x20color\x20stops.','setColor','FALSE','diamond','sendBackward','getHostType','129216yoVCGU','setStartPoint','getStartArrow','transform','setText','ShapeArrowSizeEnum','getTextBoxOptions','isVisible','TRUE','\x22\x20points\x20must\x20contain\x20finite\x20coordinates.','_getConnectorAdapter','Linear','setSize','entries','width','unbind\x20end','2273403BNxjKy','2260960cbPBpD','ahLst','setEndPoint','Shape\x20\x22','ShapeImageSourceTypeEnum','ShapeTextAutoFitType','getId','_getSnapshot','_injector','getEndConnectInfo','NoFill','bindStart','setStrokeLineCapType','bring\x20to\x20front','start','adjustValues','setCustomGeometry','getTransform','cxnLst','SolidLine','shapeData','330YSVaau','get','routePoints','GradientFill','offsetX','selectable','getOwnPropertyDescriptor','bringForward','[Shape\x20Facade]:\x20Shape\x20adjustment\x20\x22','isFinite','\x22\x20text.','rotation','points','updateContext','ShapeArrowTypeEnum','setItalic','getEndEndpoint','_shapeHostAdapterRegistry','_bind','resetAdjustValues','filter','toPlainText','\x22\x20must\x20be\x20boolean.','ShapeTypeEnum','_shapeRef','setRoutePoints','getShapeType','ShapeTextWrapType','setStroke','isSelectable','end','setTextBoxOptions','relation','getSnapshot','rgba(0,\x200,\x200,\x200)','setHorizontalAlign','10fAALmP','Shape\x20transform\x20\x22','URL','1686234MArAjs','decorate','visible','\x22\x20must\x20be\x20finite.','setSolidFill','setStrokeColor','setStartArrow','setTextStyle','scaleX','[Shape\x20Facade]:\x20Connector\x20\x22','update','fromEntries','none','setAdjustValues','getStartEndpoint','\x22\x20does\x20not\x20exist.','scaleY','stroke','isCustomShape','set\x20route\x20points','length','getDescription','getEndArrow','setImageFill','getRoutePoints','name','ShapeLineDashEnum','setNoneFill','setAdjustValueByName','bind\x20','stretch','extend','map','\x20Connector\x20Shape\x20\x22','Shape\x20height\x20must\x20be\x20greater\x20than\x20zero.','360SSQKJd','getRichText','_getShapeData','object','ShapeLineCapEnum','setTransform','warn','getText','removeShape','\x22\x20requires\x20a\x20Connector\x20Shape\x20type.','setUnderline','ShapeLineJoinEnum','setRichText','picture','setStrokeLineJoinType','flipY','getShape','offsetY','setShapeType','height','_updateShapeData','_mutateConnector','top'];_0x1883=function(){return _0x15f9a6;};return _0x1883();}import{FBase as _0x1be8f9,FEnum as _0x512883}from'@univerjs/core/facade';import{BooleanNumber as _0x4d425c,ICommandService as _0x3f53d2,Tools as _0x4fc5b0}from'@univerjs/core';var j=class extends _0x512883{get[_0x52ff57(0x1f2)](){return _0x152a87;}get[_0x52ff57(0x241)](){return _0x3546b0;}get['ShapeGradientTypeEnum'](){return _0xfd85c3;}get['ShapeImageFillModeEnum'](){return _0x48e2ec;}get[_0x52ff57(0x1ca)](){return _0x72e6bc;}get[_0x52ff57(0x24c)](){return _0x223320;}get[_0x52ff57(0x21c)](){return _0x3bee9e;}get[_0x52ff57(0x229)](){return _0x4c9f20;}get[_0x52ff57(0x230)](){return _0x228f54;}get[_0x52ff57(0x18b)](){return _0x452433;}get[_0x52ff57(0x1e9)](){return _0x5150d1;}get[_0x52ff57(0x1ba)](){return _0x201bed;}get[_0x52ff57(0x1cb)](){return _0x36aa28;}get[_0x52ff57(0x196)](){return _0x30cf2f;}get[_0x52ff57(0x1f6)](){return _0x35f981;}};_0x512883[_0x52ff57(0x221)](j);function M(_0x1709e6){const _0xcb82da=_0x52ff57;switch(_0x1709e6){case _0xfd85c3['Radial']:return _0xcb82da(0x267);case _0xfd85c3['Angular']:return'angular';case _0xfd85c3['Diamond']:return _0xcb82da(0x1b2);case _0xfd85c3[_0xcb82da(0x1c0)]:default:return'linear';}}function N(_0x152f02){const _0x172e0e=_0x52ff57;return _0x152f02===_0x48e2ec[_0x172e0e(0x25e)]?_0x172e0e(0x263):_0x172e0e(0x220);}var P=class{constructor(_0x30ebda,_0x472fa6){const _0x848d26=_0x52ff57;this['_shapeRef']=_0x30ebda,this[_0x848d26(0x1ce)]=_0x472fa6;}[_0x52ff57(0x226)](){const _0xc4a31b=_0x52ff57;var _0x170d63;return _0x3c05f3((_0x170d63=this[_0xc4a31b(0x227)]())==null?void 0x0:_0x170d63[_0xc4a31b(0x190)]);}[_0x52ff57(0x1a1)](){const _0x288b73=_0x52ff57;var _0x3fced0,_0x22c5ec;return(_0x3fced0=(_0x22c5ec=this['getRichText']())==null?void 0x0:_0x22c5ec[_0x288b73(0x1f0)]())==null?null:_0x3fced0;}[_0x52ff57(0x231)](_0x378013){const _0x3eaac9=_0x52ff57;return this[_0x3eaac9(0x239)](_0x327a05=>({..._0x327a05,'shapeText':_0x3bdd5c(_0x327a05[_0x3eaac9(0x190)],_0x378013)})),this;}[_0x52ff57(0x1b9)](_0x38405b){const _0x59c6b0=_0x52ff57;return this[_0x59c6b0(0x239)](_0xdca72b=>({..._0xdca72b,'shapeText':_0x599626(_0xdca72b['shapeText'],_0x38405b)})),this;}[_0x52ff57(0x209)](_0x49f97e){const _0x47db73=_0x52ff57;return this[_0x47db73(0x239)](_0x18f3c9=>({..._0x18f3c9,'shapeText':_0x2cf550(_0x18f3c9['shapeText'],_0x49f97e)})),this;}[_0x52ff57(0x1b0)](_0x221853,_0x457254){const _0x2381c4=_0x52ff57;return this['setTextStyle']({'cl':{'rgb':_0x221853},'textFill':{'type':_0x2381c4(0x23d),'color':_0x221853,'opacity':_0x457254}});}[_0x52ff57(0x21d)](){const _0x570acf=_0x52ff57;return this['setTextStyle']({'cl':{'rgb':_0x570acf(0x1fd)},'textFill':{'type':_0x570acf(0x20e)}});}[_0x52ff57(0x24b)](_0x18d197,_0x39c490,_0x19d703){const _0x3382cd=_0x52ff57;return _0x39c490[_0x3382cd(0x216)]<0x2?(console[_0x3382cd(0x22b)](_0x3382cd(0x1af)),this):this[_0x3382cd(0x209)]({'cl':{'rgb':_0x39c490[0x0]['color']},'textFill':{'type':_0x3382cd(0x199),'gradient':{'type':M(_0x18d197),'angle':_0x19d703,'stops':_0x39c490[_0x3382cd(0x222)](({position:_0x30eaaa,color:_0x21b2a3,opacity:_0x253316})=>({'offset':_0x30eaaa,'color':_0x21b2a3,'opacity':_0x253316}))}}});}[_0x52ff57(0x219)](_0x219b03,_0x1acd42=_0x72e6bc[_0x52ff57(0x201)],_0x10e863={}){const _0x10bcad=_0x52ff57;return this[_0x10bcad(0x209)]({'textFill':{'type':_0x10bcad(0x232),'picture':{'source':_0x219b03,'sourceType':_0x1acd42,'opacity':_0x10e863[_0x10bcad(0x246)],'mode':N(_0x10e863[_0x10bcad(0x1aa)]),'scaleX':_0x10e863[_0x10bcad(0x20a)],'scaleY':_0x10e863[_0x10bcad(0x212)],'offsetX':_0x10e863[_0x10bcad(0x1df)],'offsetY':_0x10e863[_0x10bcad(0x236)]}}});}[_0x52ff57(0x269)](_0x56b789){const _0x386606=_0x52ff57;return this[_0x386606(0x209)]({'fs':_0x56b789});}['setFontFamily'](_0x44bf56){const _0x4bc195=_0x52ff57;return this[_0x4bc195(0x209)]({'ff':_0x44bf56});}['setBold'](_0x5c8f61){const _0x153dda=_0x52ff57;return this[_0x153dda(0x209)]({'bl':_0x5c8f61?_0x4d425c[_0x153dda(0x1bd)]:_0x4d425c['FALSE']});}[_0x52ff57(0x1ea)](_0x1bc981){const _0x362090=_0x52ff57;return this['setTextStyle']({'it':_0x1bc981?_0x4d425c[_0x362090(0x1bd)]:_0x4d425c[_0x362090(0x1b1)]});}[_0x52ff57(0x22f)](_0x1475dc){const _0x29d593=_0x52ff57;return this[_0x29d593(0x209)]({'ul':{'s':_0x1475dc?_0x4d425c['TRUE']:_0x4d425c['FALSE']}});}[_0x52ff57(0x23e)](_0x164276){const _0x58406f=_0x52ff57;return this[_0x58406f(0x209)]({'st':{'s':_0x164276?_0x4d425c['TRUE']:_0x4d425c[_0x58406f(0x1b1)]}});}[_0x52ff57(0x1fe)](_0x15918f){const _0x399812=_0x52ff57;return this[_0x399812(0x239)](_0x3530df=>_0x5a2f55(_0x3530df,{'horizontalAlign':_0x15918f})),this;}['setVerticalAlign'](_0x278ef0){const _0x392f0a=_0x52ff57;return this[_0x392f0a(0x239)](_0x581e39=>_0x5a2f55(_0x581e39,{'verticalAlign':_0x278ef0})),this;}[_0x52ff57(0x1bb)](){const _0x5b86e1=_0x52ff57;let _0x30b182=this[_0x5b86e1(0x227)]();return _0x30b182?_0x2c0abb(_0x30b182):null;}[_0x52ff57(0x1fa)](_0x49b62e){const _0x431b83=_0x52ff57;return this[_0x431b83(0x239)](_0x67bd62=>_0x462165(_0x67bd62,_0x49b62e)),this;}[_0x52ff57(0x1a8)](){const _0x218e52=_0x52ff57;return this[_0x218e52(0x1ce)][_0x218e52(0x1dc)](_0x44688f)[_0x218e52(0x1dc)](this[_0x218e52(0x1f3)]['hostType']);}['_getShapeData'](){const _0x5910c9=_0x52ff57;let _0x74d1d5=this[_0x5910c9(0x1a8)]();if(!_0x74d1d5)return null;try{var _0x1d683c;return((_0x1d683c=_0x74d1d5['getShape'](this[_0x5910c9(0x1f3)]))==null?void 0x0:_0x1d683c[_0x5910c9(0x1da)])||(console['warn'](_0x5910c9(0x252)+this[_0x5910c9(0x1f3)][_0x5910c9(0x251)]+_0x5910c9(0x256)),null);}catch(_0x477195){return console[_0x5910c9(0x22b)]('[Shape\x20Text\x20Facade]:\x20Failed\x20to\x20read\x20Shape\x20\x22'+this['_shapeRef'][_0x5910c9(0x251)]+_0x5910c9(0x1e5),_0x477195),null;}}[_0x52ff57(0x239)](_0x2c5f86){const _0x38759d=_0x52ff57;let _0x5a4fb2=this[_0x38759d(0x1a8)]();if(!_0x5a4fb2)return!0x1;try{var _0x219882;let _0x58dc46=(_0x219882=_0x5a4fb2[_0x38759d(0x235)](this[_0x38759d(0x1f3)]))==null?void 0x0:_0x219882[_0x38759d(0x1da)];if(!_0x58dc46)return console[_0x38759d(0x22b)](_0x38759d(0x252)+this[_0x38759d(0x1f3)][_0x38759d(0x251)]+_0x38759d(0x256)),!0x1;let _0x41c948=_0x5a4fb2[_0x38759d(0x19e)](this[_0x38759d(0x1f3)],{'shapeData':_0x2c5f86(_0x58dc46)});return _0x41c948||console[_0x38759d(0x22b)](_0x38759d(0x24e)+this[_0x38759d(0x1f3)][_0x38759d(0x251)]+_0x38759d(0x1e5)),_0x41c948;}catch(_0x935219){return console[_0x38759d(0x22b)](_0x38759d(0x24e)+this[_0x38759d(0x1f3)][_0x38759d(0x251)]+_0x38759d(0x1e5),_0x935219),!0x1;}}};function F(_0x489d46,_0x441f23){return function(_0x419717,_0x1a0152){_0x441f23(_0x419717,_0x1a0152,_0x489d46);};}function I(_0xa71479,_0xf8dd13,_0x52c1ec,_0x2a69cb){const _0x326a19=_0x52ff57;var _0x5cb71b=arguments[_0x326a19(0x216)],_0x31078e=_0x5cb71b<0x3?_0xf8dd13:_0x2a69cb===null?_0x2a69cb=Object[_0x326a19(0x1e1)](_0xf8dd13,_0x52c1ec):_0x2a69cb,_0x366876;if(typeof Reflect==_0x326a19(0x228)&&typeof Reflect[_0x326a19(0x203)]==_0x326a19(0x264))_0x31078e=Reflect[_0x326a19(0x203)](_0xa71479,_0xf8dd13,_0x52c1ec,_0x2a69cb);else{for(var _0x10d66b=_0xa71479[_0x326a19(0x216)]-0x1;_0x10d66b>=0x0;_0x10d66b--)(_0x366876=_0xa71479[_0x10d66b])&&(_0x31078e=(_0x5cb71b<0x3?_0x366876(_0x31078e):_0x5cb71b>0x3?_0x366876(_0xf8dd13,_0x52c1ec,_0x31078e):_0x366876(_0xf8dd13,_0x52c1ec))||_0x31078e);}return _0x5cb71b>0x3&&_0x31078e&&Object[_0x326a19(0x1ae)](_0xf8dd13,_0x52c1ec,_0x31078e),_0x31078e;}let L=class extends _0x1be8f9{constructor(_0x36785d,_0x5deab8,_0x2d2bea,_0x445465){const _0x1402eb=_0x52ff57;super(),this[_0x1402eb(0x1f3)]=_0x36785d,this[_0x1402eb(0x1ce)]=_0x5deab8,this[_0x1402eb(0x1ec)]=_0x2d2bea,this['_commandService']=_0x445465;}['isConnectorShape'](){return!0x1;}[_0x52ff57(0x1cc)](){const _0x30ab77=_0x52ff57;return this[_0x30ab77(0x1f3)][_0x30ab77(0x251)];}[_0x52ff57(0x260)](){const _0x2f893a=_0x52ff57;var _0x27099f;return(_0x27099f=this[_0x2f893a(0x1cd)]())==null?void 0x0:_0x27099f[_0x2f893a(0x21b)];}[_0x52ff57(0x268)](_0x4febd7){return this['update']({'name':_0x4febd7});}[_0x52ff57(0x217)](){const _0x24ca46=_0x52ff57;var _0x4d613f;return(_0x4d613f=this[_0x24ca46(0x1cd)]())==null?void 0x0:_0x4d613f['description'];}[_0x52ff57(0x1a7)](_0x22fe40){const _0x3871f9=_0x52ff57;return this[_0x3871f9(0x20c)]({'description':_0x22fe40});}[_0x52ff57(0x1b4)](){const _0x13c765=_0x52ff57;return this[_0x13c765(0x1f3)][_0x13c765(0x1a4)];}[_0x52ff57(0x1f5)](){const _0x23b85f=_0x52ff57;var _0x69c9c2,_0x3d3777;return(_0x69c9c2=(_0x3d3777=this[_0x23b85f(0x1cd)]())==null?void 0x0:_0x3d3777[_0x23b85f(0x23c)])==null?null:_0x69c9c2;}[_0x52ff57(0x197)](){const _0xabfbf3=_0x52ff57;let _0x2d4dd2=this['_getSnapshot']();return _0x2d4dd2?_0x4fc5b0['deepClone'](_0x2d4dd2[_0xabfbf3(0x1da)]):null;}[_0x52ff57(0x1fc)](){const _0x32b07a=_0x52ff57;let _0x303982=this[_0x32b07a(0x1cd)]();return _0x303982?_0x4fc5b0['deepClone'](_0x303982):null;}[_0x52ff57(0x1d7)](){const _0x1b14af=_0x52ff57;let _0x34591e=this[_0x1b14af(0x1cd)]();return _0x34591e?{..._0x34591e['transform']}:null;}[_0x52ff57(0x1bc)](){const _0x5443dc=_0x52ff57;var _0xe8cf3f,_0x22d16c;return(_0xe8cf3f=(_0x22d16c=this[_0x5443dc(0x1cd)]())==null?void 0x0:_0x22d16c[_0x5443dc(0x204)])!=null&&_0xe8cf3f;}[_0x52ff57(0x247)](_0x3b447c){const _0x56d888=_0x52ff57;return this[_0x56d888(0x20c)]({'visible':_0x3b447c});}[_0x52ff57(0x1f8)](){const _0x3a66e2=_0x52ff57;var _0x3d3e20,_0x5a9505;return(_0x3d3e20=(_0x5a9505=this[_0x3a66e2(0x1cd)]())==null?void 0x0:_0x5a9505[_0x3a66e2(0x1e0)])!=null&&_0x3d3e20;}[_0x52ff57(0x253)](_0x325ffb){return this['update']({'selectable':_0x325ffb});}[_0x52ff57(0x22c)](){const _0xc9d5dd=_0x52ff57;return this[_0xc9d5dd(0x1ce)][_0xc9d5dd(0x1a6)](P,this[_0xc9d5dd(0x1f3)],this['_injector']);}[_0x52ff57(0x214)](){const _0x5e0088=_0x52ff57;let _0x1760a2=this[_0x5e0088(0x197)]();return(_0x1760a2==null?void 0x0:_0x1760a2[_0x5e0088(0x1a3)])===!0x0&&!!_0x1760a2[_0x5e0088(0x19b)];}[_0x52ff57(0x262)](){const _0x172ce9=_0x52ff57;var _0x57c884,_0x563ea1;return(_0x57c884=(_0x563ea1=this[_0x172ce9(0x197)]())==null?void 0x0:_0x563ea1[_0x172ce9(0x19b)])==null?null:_0x57c884;}[_0x52ff57(0x237)](_0x409a9f){const _0x19625f=_0x52ff57;return this[_0x19625f(0x24a)](_0x5d146c=>({..._0x5d146c,'shapeType':_0x409a9f}),_0x409a9f);}[_0x52ff57(0x1ad)](_0xaa2077){const _0x248113=_0x52ff57;let _0x1e3972=_0x4fc5b0[_0x248113(0x244)](_0xaa2077);return this[_0x248113(0x20c)]({'shapeType':_0x1e3972[_0x248113(0x23c)],'shapeData':_0x1e3972});}['setTransform'](_0x2bb4ed){const _0xa8b190=_0x52ff57;return this[_0xa8b190(0x20c)]({'transform':_0x2bb4ed});}[_0x52ff57(0x1c1)](_0x1fd13c,_0x179d65){return this['setTransform']({'width':_0x1fd13c,'height':_0x179d65});}[_0x52ff57(0x25d)](_0x372208){const _0x3476b1=_0x52ff57;return this[_0x3476b1(0x22a)]({'rotation':_0x372208});}[_0x52ff57(0x261)](_0x17667f,_0x2b0846){const _0x5a6701=_0x52ff57;return this[_0x5a6701(0x22a)]({'left':_0x17667f,'top':_0x2b0846});}[_0x52ff57(0x1d6)](_0x31e989){const _0x2dd9a5=_0x52ff57;var _0x5baf60,_0x239e2e,_0x18ce84;let _0x3ca751=(_0x5baf60=(_0x239e2e=_0x31e989[_0x2dd9a5(0x1d8)])==null?void 0x0:_0x239e2e[_0x2dd9a5(0x1a5)](({x:_0xfd4582,y:_0xd38217})=>_0xfd4582===void 0x0||_0xd38217===void 0x0))==null?-0x1:_0x5baf60;if(_0x3ca751>=0x0)return console[_0x2dd9a5(0x22b)](_0x2dd9a5(0x266)+_0x3ca751+_0x2dd9a5(0x18c)),this;let _0x9db547=_0x4fc5b0[_0x2dd9a5(0x244)](_0x31e989);if((_0x18ce84=_0x9db547[_0x2dd9a5(0x1d8)])!=null&&_0x18ce84[_0x2dd9a5(0x216)]){let _0x1d9c65=this[_0x2dd9a5(0x1cd)]();if(!_0x1d9c65)return this;try{let _0x1737c6=new _0x25f06b(_0x1d9c65[_0x2dd9a5(0x23c)],_0x1d9c65[_0x2dd9a5(0x251)],{..._0x1d9c65[_0x2dd9a5(0x1da)],'isCustom':!0x0,'customGeometry':_0x9db547});_0x1737c6[_0x2dd9a5(0x1e8)]({'width':_0x1d9c65[_0x2dd9a5(0x1b8)]['width'],'height':_0x1d9c65[_0x2dd9a5(0x1b8)]['height']}),_0x1737c6[_0x2dd9a5(0x188)]();}catch{return console[_0x2dd9a5(0x22b)](_0x2dd9a5(0x1ac)),this;}}return this[_0x2dd9a5(0x24a)](_0x2bbbeb=>({..._0x2bbbeb,'isCustom':!0x0,'customGeometry':_0x9db547}));}[_0x52ff57(0x19f)](){const _0x2d76fc=_0x52ff57;var _0x5e721d,_0x1be1fa;return(_0x5e721d=(_0x1be1fa=this['_getGeometryModel']())==null?void 0x0:_0x1be1fa[_0x2d76fc(0x188)]()[_0x2d76fc(0x222)](_0x1771ad=>({..._0x1771ad})))==null?[]:_0x5e721d;}[_0x52ff57(0x198)](){const _0x4a0709=_0x52ff57;var _0x3f53ec;let _0x59492b=(_0x3f53ec=this[_0x4a0709(0x245)]())==null?void 0x0:_0x3f53ec['getStartConnectInfo']();return _0x59492b?{..._0x59492b}:null;}[_0x52ff57(0x1cf)](){const _0x3673fb=_0x52ff57;var _0x35dd2a;let _0x592735=(_0x35dd2a=this[_0x3673fb(0x245)]())==null?void 0x0:_0x35dd2a[_0x3673fb(0x1cf)]();return _0x592735?{..._0x592735}:null;}['getAdjustHandles'](){const _0x31d366=_0x52ff57;var _0x5c4da7,_0x14f579;let _0x460e2=this[_0x31d366(0x245)](),_0x1ea495=(_0x5c4da7=_0x460e2==null||(_0x14f579=_0x460e2['getPresetShapeConfig']()[_0x31d366(0x1c7)])==null?void 0x0:_0x14f579[_0x31d366(0x216)])==null?0x0:_0x5c4da7;return!_0x460e2||_0x1ea495===0x0?[]:Array[_0x31d366(0x258)]({'length':_0x1ea495},(_0x533ef4,_0x521874)=>_0x460e2[_0x31d366(0x248)](_0x521874))[_0x31d366(0x1ef)](_0x4db08c=>_0x4db08c!==void 0x0)[_0x31d366(0x222)](_0x37ab6a=>_0x4fc5b0[_0x31d366(0x244)](_0x37ab6a));}[_0x52ff57(0x20f)](_0x5ac60b){const _0x63cbf4=_0x52ff57;let _0x1fee64=Object[_0x63cbf4(0x1c2)](_0x5ac60b);if(_0x1fee64[_0x63cbf4(0x216)]===0x0)return this;let _0x4541c8=this[_0x63cbf4(0x245)]();if(!_0x4541c8)return this;let _0x26590f=new Set(_0x4541c8[_0x63cbf4(0x240)]());for(let [_0x44df4e,_0x25d4e2]of _0x1fee64){if(!_0x26590f[_0x63cbf4(0x18d)](_0x44df4e))return console[_0x63cbf4(0x22b)](_0x63cbf4(0x1e3)+_0x44df4e+_0x63cbf4(0x211)),this;if(!Number[_0x63cbf4(0x1e4)](_0x25d4e2))return console[_0x63cbf4(0x22b)](_0x63cbf4(0x1e3)+_0x44df4e+_0x63cbf4(0x205)),this;}let _0x37810b=Object[_0x63cbf4(0x20d)](_0x1fee64[_0x63cbf4(0x222)](([_0x124585,_0x2a0746])=>[_0x124585,_0x4541c8[_0x63cbf4(0x21e)](_0x124585,_0x2a0746)]));return this[_0x63cbf4(0x24a)](_0x106389=>({..._0x106389,'adjustValues':{..._0x106389[_0x63cbf4(0x1d5)],..._0x37810b}}));}[_0x52ff57(0x1ee)](){const _0x127eb1=_0x52ff57;let _0x4bff65=this['getShapeData']();return _0x4bff65!=null&&_0x4bff65[_0x127eb1(0x1d5)]?(delete _0x4bff65['adjustValues'],this['update']({'shapeData':_0x4bff65})):this;}[_0x52ff57(0x206)](_0x442463,_0x27177b){const _0x50cdc7=_0x52ff57;return this[_0x50cdc7(0x24a)](_0x5615c4=>({..._0x5615c4,'fill':{'fillType':_0x3546b0['SolidFill'],'color':_0x442463,'opacity':_0x27177b}}));}[_0x52ff57(0x24b)](_0x28c253,_0x1fff2e,_0x3e2c1d){const _0x401681=_0x52ff57;return _0x1fff2e[_0x401681(0x216)]<0x2?(console[_0x401681(0x22b)](_0x401681(0x255)),this):this[_0x401681(0x24a)](_0x262dd2=>({..._0x262dd2,'fill':{'fillType':_0x3546b0[_0x401681(0x1de)],'gradientType':_0x28c253,'gradientStops':_0x4fc5b0[_0x401681(0x244)](_0x1fff2e),'gradientAngle':_0x3e2c1d}}));}[_0x52ff57(0x219)](_0x1819bd,_0x25b748,_0x7fa352={}){const _0x27c21f=_0x52ff57;return this['_patchShapeData'](_0x3b9da0=>({..._0x3b9da0,'fill':{..._0x4fc5b0['deepClone'](_0x7fa352),'fillType':_0x3546b0[_0x27c21f(0x191)],'fillImageSource':_0x1819bd,'fillImageSourceType':_0x25b748}}));}[_0x52ff57(0x21d)](){const _0x41d8a2=_0x52ff57;return this[_0x41d8a2(0x24a)](_0x571fae=>({..._0x571fae,'fill':{'fillType':_0x3546b0[_0x41d8a2(0x1d0)]}}));}[_0x52ff57(0x1f7)](_0x8409cc){const _0x45af8c=_0x52ff57;return this[_0x45af8c(0x24a)](_0x5ba293=>({..._0x5ba293,'stroke':_0x4fc5b0[_0x45af8c(0x244)](_0x8409cc)}));}[_0x52ff57(0x207)](_0x10a5de){const _0xd5f026=_0x52ff57;return this['_patchStroke'](_0x3891cf=>({..._0x3891cf,'color':_0x10a5de,'lineStrokeType':_0x3891cf[_0xd5f026(0x18e)]===_0x223320[_0xd5f026(0x24d)]?_0x223320[_0xd5f026(0x1d9)]:_0x3891cf[_0xd5f026(0x18e)]}));}[_0x52ff57(0x249)](_0x1a1aa6){const _0x121b8a=_0x52ff57;return this[_0x121b8a(0x250)](_0x11606f=>({..._0x11606f,'width':_0x1a1aa6,'lineStrokeType':_0x11606f['lineStrokeType']===_0x223320[_0x121b8a(0x24d)]?_0x223320[_0x121b8a(0x1d9)]:_0x11606f[_0x121b8a(0x18e)]}));}[_0x52ff57(0x24f)](_0x5363f7){const _0x31a490=_0x52ff57;return this[_0x31a490(0x250)](_0x2237a8=>({..._0x2237a8,'opacity':_0x5363f7}));}[_0x52ff57(0x19a)](_0x15afc4){const _0x34e7da=_0x52ff57;return this[_0x34e7da(0x250)](_0x7beab0=>({..._0x7beab0,'dashType':_0x15afc4}));}[_0x52ff57(0x233)](_0x350b30){return this['_patchStroke'](_0x280e22=>({..._0x280e22,'lineJoinType':_0x350b30}));}[_0x52ff57(0x1d2)](_0x5dbcb9){const _0x3a4c54=_0x52ff57;return this[_0x3a4c54(0x250)](_0x3ce372=>({..._0x3ce372,'capType':_0x5dbcb9}));}['setStrokeLineType'](_0x567556){const _0x26c34c=_0x52ff57;return this[_0x26c34c(0x250)](_0x18dc04=>({..._0x18dc04,'lineStrokeType':_0x567556}));}['update'](_0x771bdd){const _0xa0ceb2=_0x52ff57;var _0x3304d9,_0x58da76,_0x1192a3;let _0x363df6=_0x771bdd[_0xa0ceb2(0x1da)],_0x510d56=_0x363df6&&(_0xa0ceb2(0x1fb)in _0x363df6||_0xa0ceb2(0x1e7)in _0x363df6)?this[_0xa0ceb2(0x1f5)]():null,_0x352719=(_0x3304d9=(_0x58da76=_0x771bdd[_0xa0ceb2(0x23c)])==null?(_0x1192a3=_0x771bdd['shapeData'])==null?void 0x0:_0x1192a3['shapeType']:_0x58da76)==null?_0x510d56:_0x3304d9,_0x16b290=R(_0x771bdd,_0x352719!==null&&_0x1e0639(_0x352719));return _0x16b290?(console[_0xa0ceb2(0x22b)]('[Shape\x20Facade]:\x20'+_0x16b290),this):(this[_0xa0ceb2(0x194)]('update',_0x3b7357=>_0x3b7357[_0xa0ceb2(0x19e)](this[_0xa0ceb2(0x1f3)],_0x771bdd)),this);}[_0x52ff57(0x259)](){const _0x576ce7=_0x52ff57;return this['_mutate'](_0x576ce7(0x259),_0x33e8f6=>_0x33e8f6[_0x576ce7(0x22d)](this[_0x576ce7(0x1f3)]));}['bringToFront'](){const _0x20f25b=_0x52ff57;return this['_mutate'](_0x20f25b(0x1d3),_0x314fb4=>_0x314fb4[_0x20f25b(0x254)](this[_0x20f25b(0x1f3)])),this;}['bringForward'](){const _0x29b81a=_0x52ff57;return this[_0x29b81a(0x194)](_0x29b81a(0x243),_0x3bbe97=>_0x3bbe97[_0x29b81a(0x1e2)](this[_0x29b81a(0x1f3)])),this;}[_0x52ff57(0x1b3)](){const _0x19b8df=_0x52ff57;return this[_0x19b8df(0x194)]('send\x20backward',_0x34700c=>_0x34700c[_0x19b8df(0x1b3)](this['_shapeRef'])),this;}['sendToBack'](){const _0x50643c=_0x52ff57;return this[_0x50643c(0x194)](_0x50643c(0x1a0),_0x92f203=>_0x92f203['sendToBack'](this['_shapeRef'])),this;}[_0x52ff57(0x1a8)](){const _0x5a1525=_0x52ff57;return this['_shapeHostAdapterRegistry']['get'](this[_0x5a1525(0x1f3)][_0x5a1525(0x1a4)]);}[_0x52ff57(0x24a)](_0xdc72a2,_0x582ff5){const _0x10ba81=_0x52ff57;let _0x2e5628=this[_0x10ba81(0x197)]();return _0x2e5628?this[_0x10ba81(0x20c)]({'shapeType':_0x582ff5,'shapeData':_0xdc72a2(_0x2e5628)}):this;}[_0x52ff57(0x250)](_0x377185){const _0x34dd8f=_0x52ff57;return this[_0x34dd8f(0x24a)](_0x5dbc9e=>{const _0x3a68cf=_0x34dd8f;var _0x16beac;return{..._0x5dbc9e,'stroke':_0x377185((_0x16beac=_0x5dbc9e[_0x3a68cf(0x213)])==null?{}:_0x16beac)};});}[_0x52ff57(0x1cd)](){const _0x38f894=_0x52ff57;let _0x31d080=this[_0x38f894(0x1a8)]();if(!_0x31d080)return null;try{return _0x31d080[_0x38f894(0x235)](this[_0x38f894(0x1f3)])||(console[_0x38f894(0x22b)]('[Shape\x20Facade]:\x20Shape\x20\x22'+this[_0x38f894(0x1f3)][_0x38f894(0x251)]+'\x22\x20was\x20not\x20found.'),null);}catch(_0x39b284){return console[_0x38f894(0x22b)](_0x38f894(0x195)+this[_0x38f894(0x1f3)][_0x38f894(0x251)]+'\x22.',_0x39b284),null;}}[_0x52ff57(0x245)](){const _0x3d1dbc=_0x52ff57;let _0x1e80ce=this[_0x3d1dbc(0x1cd)]();if(!_0x1e80ce)return null;try{let _0x5e67ad=new _0x25f06b(_0x1e80ce[_0x3d1dbc(0x23c)],_0x1e80ce[_0x3d1dbc(0x251)],_0x4fc5b0[_0x3d1dbc(0x244)](_0x1e80ce[_0x3d1dbc(0x1da)]));return _0x5e67ad['updateContext']({'width':_0x1e80ce[_0x3d1dbc(0x1b8)][_0x3d1dbc(0x1c3)],'height':_0x1e80ce[_0x3d1dbc(0x1b8)][_0x3d1dbc(0x238)]}),_0x5e67ad;}catch(_0x500aec){return console[_0x3d1dbc(0x22b)]('[Shape\x20Facade]:\x20Failed\x20to\x20resolve\x20geometry\x20for\x20Shape\x20\x22'+this['_shapeRef'][_0x3d1dbc(0x251)]+'\x22.',_0x500aec),null;}}[_0x52ff57(0x194)](_0xbae897,_0x1156b9){const _0xa43b2d=_0x52ff57;let _0xf170a6=this[_0xa43b2d(0x1a8)]();if(!_0xf170a6)return!0x1;try{let _0x403ec0=_0x1156b9(_0xf170a6);return _0x403ec0||console[_0xa43b2d(0x22b)](_0xa43b2d(0x23f)+_0xbae897+'\x20Shape\x20\x22'+this[_0xa43b2d(0x1f3)][_0xa43b2d(0x251)]+'\x22.'),_0x403ec0;}catch(_0x43d2fe){return console[_0xa43b2d(0x22b)](_0xa43b2d(0x23f)+_0xbae897+'\x20Shape\x20\x22'+this['_shapeRef']['shapeId']+'\x22.',_0x43d2fe),!0x1;}}};L=I([F(0x2,_0x44688f),F(0x3,_0x3f53d2)],L);function R(_0x4a3f75,_0x36d49d=!0x1){const _0x47bb37=_0x52ff57;for(let _0x3a9a39 of[_0x47bb37(0x204),'selectable']){let _0x29ce6a=_0x4a3f75[_0x3a9a39];if(_0x29ce6a!==void 0x0&&typeof _0x29ce6a!=_0x47bb37(0x189))return _0x47bb37(0x1c9)+_0x3a9a39+_0x47bb37(0x1f1);}let _0x4baf9a=_0x4a3f75[_0x47bb37(0x1b8)];if(_0x4baf9a){for(let _0x51fedf of['left',_0x47bb37(0x23b),_0x47bb37(0x1c3),'height',_0x47bb37(0x1e6)]){let _0x5a0b0d=_0x4baf9a[_0x51fedf];if(_0x5a0b0d!==void 0x0&&!Number[_0x47bb37(0x1e4)](_0x5a0b0d))return _0x47bb37(0x200)+_0x51fedf+_0x47bb37(0x205);}if(_0x4baf9a[_0x47bb37(0x1c3)]!==void 0x0&&_0x4baf9a[_0x47bb37(0x1c3)]<=0x0)return'Shape\x20width\x20must\x20be\x20greater\x20than\x20zero.';if(_0x4baf9a['height']!==void 0x0&&_0x4baf9a[_0x47bb37(0x238)]<=0x0)return _0x47bb37(0x224);for(let _0x3410fc of[_0x47bb37(0x242),_0x47bb37(0x234)]){let _0x1f2ba4=_0x4baf9a[_0x3410fc];if(_0x1f2ba4!==void 0x0&&typeof _0x1f2ba4!=_0x47bb37(0x189))return _0x47bb37(0x200)+_0x3410fc+_0x47bb37(0x1f1);}}let _0x29fd85=_0x4a3f75[_0x47bb37(0x1da)];return!_0x36d49d&&_0x29fd85&&(_0x47bb37(0x1fb)in _0x29fd85||_0x47bb37(0x1e7)in _0x29fd85)?_0x47bb37(0x25c):null;}var z=class extends L{['isConnectorShape'](){return!0x0;}[_0x52ff57(0x210)](){const _0x356772=_0x52ff57;let _0x48e07f=this[_0x356772(0x257)]();return _0x48e07f?_0x4fc5b0[_0x356772(0x244)](_0x48e07f[_0x356772(0x1d4)]):null;}[_0x52ff57(0x1eb)](){const _0x563abb=_0x52ff57;let _0x4a5a9e=this[_0x563abb(0x257)]();return _0x4a5a9e?_0x4fc5b0[_0x563abb(0x244)](_0x4a5a9e[_0x563abb(0x1f9)]):null;}[_0x52ff57(0x21a)](){const _0x1658f7=_0x52ff57;let _0x214825=this[_0x1658f7(0x257)]();return _0x214825?_0x4fc5b0[_0x1658f7(0x244)](_0x214825[_0x1658f7(0x1dd)]):null;}[_0x52ff57(0x1b7)](){const _0x177b01=_0x52ff57;let _0x2d70e4=this[_0x177b01(0x257)]();return _0x2d70e4?_0x4fc5b0[_0x177b01(0x244)](_0x2d70e4['startArrow']):null;}[_0x52ff57(0x218)](){const _0xee6bdd=_0x52ff57;let _0x41afae=this[_0xee6bdd(0x257)]();return _0x41afae?_0x4fc5b0['deepClone'](_0x41afae['endArrow']):null;}[_0x52ff57(0x237)](_0x5627ce){const _0x4ea990=_0x52ff57;return _0x1e0639(_0x5627ce)?super[_0x4ea990(0x237)](_0x5627ce):(console[_0x4ea990(0x22b)](_0x4ea990(0x192)+this[_0x4ea990(0x1f3)][_0x4ea990(0x251)]+_0x4ea990(0x22e)),this);}[_0x52ff57(0x1ad)](_0x58a92d){const _0x5204f2=_0x52ff57;return _0x58a92d[_0x5204f2(0x23c)]!==void 0x0&&!_0x1e0639(_0x58a92d[_0x5204f2(0x23c)])?(console[_0x5204f2(0x22b)]('[Shape\x20Facade]:\x20Connector\x20Shape\x20\x22'+this[_0x5204f2(0x1f3)][_0x5204f2(0x251)]+'\x22\x20requires\x20Connector\x20Shape\x20data.'),this):super[_0x5204f2(0x1ad)](_0x58a92d);}[_0x52ff57(0x1d1)](_0x2f4f35,_0x3a69d1){const _0x1878dd=_0x52ff57;return this[_0x1878dd(0x1ed)](_0x1878dd(0x1d4),_0x2f4f35,_0x3a69d1),this;}[_0x52ff57(0x187)](_0xc76d00,_0x33f9ec){const _0x459e92=_0x52ff57;return this[_0x459e92(0x1ed)](_0x459e92(0x1f9),_0xc76d00,_0x33f9ec),this;}[_0x52ff57(0x25f)](){const _0x32ddc7=_0x52ff57;return this[_0x32ddc7(0x23a)](_0x32ddc7(0x1ab),_0x2bc635=>_0x2bc635['unbindStart'](this[_0x32ddc7(0x1f3)])),this;}[_0x52ff57(0x25b)](){const _0x3160de=_0x52ff57;return this[_0x3160de(0x23a)](_0x3160de(0x1c4),_0x175f50=>_0x175f50[_0x3160de(0x25b)](this[_0x3160de(0x1f3)])),this;}['setStartPoint'](_0x90be66){const _0x11e40d=_0x52ff57;return B(_0x90be66,this[_0x11e40d(0x1f3)][_0x11e40d(0x251)])&&this['_mutateConnector'](_0x11e40d(0x193),_0x4f2bd0=>_0x4f2bd0[_0x11e40d(0x1b6)](this[_0x11e40d(0x1f3)],_0x90be66)),this;}[_0x52ff57(0x1c8)](_0x525bde){const _0x4f5dbb=_0x52ff57;return B(_0x525bde,this[_0x4f5dbb(0x1f3)][_0x4f5dbb(0x251)])&&this['_mutateConnector'](_0x4f5dbb(0x25a),_0x50c6f9=>_0x50c6f9[_0x4f5dbb(0x1c8)](this[_0x4f5dbb(0x1f3)],_0x525bde)),this;}['setRoutePoints'](_0x16a479){const _0x351a29=_0x52ff57;return _0x16a479[_0x351a29(0x1a9)](_0x19013b=>B(_0x19013b,this[_0x351a29(0x1f3)][_0x351a29(0x251)]))&&this['_mutateConnector'](_0x351a29(0x215),_0x19bf72=>_0x19bf72[_0x351a29(0x1f4)](this['_shapeRef'],_0x16a479)),this;}[_0x52ff57(0x208)](_0x26f886,_0x54b910){const _0x248eb7=_0x52ff57;return this[_0x248eb7(0x23a)](_0x248eb7(0x19c),_0x4e6563=>_0x4e6563[_0x248eb7(0x208)](this[_0x248eb7(0x1f3)],_0x26f886,_0x54b910)),this;}['setEndArrow'](_0x5ddba9,_0x15e236){const _0x26ba91=_0x52ff57;return this[_0x26ba91(0x23a)]('set\x20end\x20arrow',_0x225e13=>_0x225e13[_0x26ba91(0x19d)](this[_0x26ba91(0x1f3)],_0x5ddba9,_0x15e236)),this;}['_getConnectorAdapter'](){return this['_injector']['get'](_0x3d4dd5);}[_0x52ff57(0x257)](){const _0x41c285=_0x52ff57;let _0x27878e=this[_0x41c285(0x1bf)]();if(!_0x27878e)return null;try{return _0x27878e[_0x41c285(0x1a2)](this['_shapeRef'])||(console[_0x41c285(0x22b)](_0x41c285(0x192)+this[_0x41c285(0x1f3)][_0x41c285(0x251)]+_0x41c285(0x256)),null);}catch(_0x19bbc7){return console[_0x41c285(0x22b)]('[Shape\x20Facade]:\x20Failed\x20to\x20read\x20Connector\x20Shape\x20\x22'+this[_0x41c285(0x1f3)][_0x41c285(0x251)]+'\x22.',_0x19bbc7),null;}}['_bind'](_0x26cd29,_0xd0deed,_0x187446){const _0x502448=_0x52ff57;if(!_0xd0deed||!Number['isInteger'](_0x187446)||_0x187446<0x0)return console[_0x502448(0x22b)](_0x502448(0x20b)+this[_0x502448(0x1f3)][_0x502448(0x251)]+'\x22\x20binding\x20requires\x20a\x20target\x20Shape\x20ID\x20and\x20a\x20non-negative\x20connection\x20site\x20index.'),!0x1;let _0x19f114={'shapeId':_0xd0deed,'cxnIndex':_0x187446};return this[_0x502448(0x23a)](_0x502448(0x21f)+_0x26cd29,_0x3b0876=>_0x26cd29===_0x502448(0x1d4)?_0x3b0876[_0x502448(0x1d1)](this[_0x502448(0x1f3)],_0x19f114):_0x3b0876[_0x502448(0x187)](this['_shapeRef'],_0x19f114));}[_0x52ff57(0x23a)](_0x257ee4,_0x205000){const _0x371cbe=_0x52ff57;let _0x2f5d44=this[_0x371cbe(0x1bf)]();if(!_0x2f5d44)return!0x1;try{let _0x437cbe=_0x205000(_0x2f5d44);return _0x437cbe||console[_0x371cbe(0x22b)](_0x371cbe(0x23f)+_0x257ee4+_0x371cbe(0x223)+this[_0x371cbe(0x1f3)][_0x371cbe(0x251)]+'\x22.'),_0x437cbe;}catch(_0x204fc2){return console[_0x371cbe(0x22b)](_0x371cbe(0x23f)+_0x257ee4+_0x371cbe(0x223)+this['_shapeRef'][_0x371cbe(0x251)]+'\x22.',_0x204fc2),!0x1;}}};function _0x5efd(_0x21bbd0,_0x1a0d4d){_0x21bbd0=_0x21bbd0-0x187;const _0x188373=_0x1883();let _0x5efd59=_0x188373[_0x21bbd0];return _0x5efd59;}function B(_0x5d14f7,_0x3f9fb6){const _0x4af37f=_0x52ff57;return!Number['isFinite'](_0x5d14f7['x'])||!Number['isFinite'](_0x5d14f7['y'])?(console['warn'](_0x4af37f(0x20b)+_0x3f9fb6+_0x4af37f(0x1be)),!0x1):!0x0;}export{z as FConnectorShape,L as FShape,P as FShapeText};