@univerjs-pro/ink 1.0.0-alpha.3 → 1.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x492546=_0x254d;(function(_0x17087e,_0x1ab369){const _0x1083bc=_0x254d,_0x174350=_0x17087e();while(!![]){try{const _0x21bc32=-parseInt(_0x1083bc(0x7c))/0x1*(-parseInt(_0x1083bc(0x99))/0x2)+parseInt(_0x1083bc(0x81))/0x3*(parseInt(_0x1083bc(0x8f))/0x4)+-parseInt(_0x1083bc(0x9c))/0x5*(parseInt(_0x1083bc(0x73))/0x6)+parseInt(_0x1083bc(0xa1))/0x7*(-parseInt(_0x1083bc(0x98))/0x8)+parseInt(_0x1083bc(0x7a))/0x9+parseInt(_0x1083bc(0x7f))/0xa+parseInt(_0x1083bc(0x70))/0xb;if(_0x21bc32===_0x1ab369)break;else _0x174350['push'](_0x174350['shift']());}catch(_0x1166e8){_0x174350['push'](_0x174350['shift']());}}}(_0x11b7,0x82548),Object[_0x492546(0xaa)](exports,Symbol[_0x492546(0xa6)],{'value':_0x492546(0x96)}));let e=require('@univerjs-pro/boards'),t=require('@univerjs-pro/boards/facade'),n=require('@univerjs-pro/ink'),r=require('@univerjs/core'),i=require('@univerjs/core/facade');var a=class extends t[_0x492546(0x80)]{[_0x492546(0x7b)](_0x692625){const _0x4546c2=_0x492546;let _0x50948d=o(_0x692625);return _0x50948d&&this[_0x4546c2(0x77)](_0x50948d,{'insertIndex':_0x692625[_0x4546c2(0xab)]})?_0x50948d:null;}['getInks'](){const _0x5b277b=_0x492546;return this['findElements']({'elementType':e[_0x5b277b(0x92)]['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x5b277b(0x91)](f);}};function _0x254d(_0x151135,_0x5a163f){_0x151135=_0x151135-0x70;const _0x11b7fe=_0x11b7();let _0x254d4b=_0x11b7fe[_0x151135];return _0x254d4b;}function o(_0x1ef229,_0x3a1197){const _0x5c1978=_0x492546;var _0x390744,_0x32aca4,_0x5318a7;if(!c(_0x1ef229['model'])||_0x1ef229[_0x5c1978(0xa5)]!==void 0x0&&!c(_0x1ef229[_0x5c1978(0xa5)])||!l(_0x1ef229[_0x5c1978(0x87)]))return null;let _0x3074dc=(_0x390744=_0x1ef229[_0x5c1978(0x7e)])==null?_0x3a1197==null?void 0x0:_0x3a1197[_0x5c1978(0x7e)]:_0x390744,_0x30feb1=r['Tools'][_0x5c1978(0xa8)](_0x1ef229[_0x5c1978(0x93)]),_0x325eac=(0x0,n[_0x5c1978(0x9a)])({'model':_0x30feb1,'style':_0x1ef229[_0x5c1978(0x87)],'tool':_0x1ef229[_0x5c1978(0x74)],'sourceModel':_0x1ef229[_0x5c1978(0xa5)]?r[_0x5c1978(0xa7)][_0x5c1978(0xa8)](_0x1ef229['sourceModel']):_0x30feb1}),_0x4690dd=u(_0x3a1197==null?void 0x0:_0x3a1197[_0x5c1978(0x9f)]);return{'id':(_0x32aca4=(_0x5318a7=_0x3a1197==null?void 0x0:_0x3a1197['id'])==null?_0x1ef229['id']:_0x5318a7)==null?(0x0,r[_0x5c1978(0xac)])(0x6):_0x32aca4,'type':e[_0x5c1978(0x92)]['Shape'],'transform':_0x325eac[_0x5c1978(0x72)],'shapeData':_0x325eac[_0x5c1978(0x94)],'parentId':_0x3074dc==null?void 0x0:_0x3074dc,'laneId':_0x1ef229[_0x5c1978(0x9b)]===void 0x0?_0x3a1197==null?void 0x0:_0x3a1197[_0x5c1978(0x9b)]:_0x1ef229['laneId'],'custom':{..._0x4690dd,'ink':_0x325eac['ink']}};}function s(_0x2e3157){const _0x342b41=_0x492546;return Number[_0x342b41(0x8d)](_0x2e3157['x'])&&Number[_0x342b41(0x8d)](_0x2e3157['y']);}function c(_0x225eb5){const _0x1d649f=_0x492546;if(_0x225eb5[_0x1d649f(0x85)]===_0x1d649f(0x82)){let _0x1dc007=new Set();return _0x225eb5[_0x1d649f(0x9d)]['length']>=(_0x225eb5['closed']?0x3:0x2)&&_0x225eb5['anchors'][_0x1d649f(0x7d)](_0x484827=>{const _0x12cee9=_0x1d649f;let _0x80ec29=_0x484827['id'][_0x12cee9(0x90)]()[_0x12cee9(0xa2)]>0x0&&!_0x1dc007['has'](_0x484827['id'])&&s(_0x484827)&&(!_0x484827['in']||s(_0x484827['in']))&&(!_0x484827['out']||s(_0x484827['out']));return _0x1dc007[_0x12cee9(0x89)](_0x484827['id']),_0x80ec29;});}return _0x225eb5[_0x1d649f(0xa3)]['length']>=0x2&&_0x225eb5[_0x1d649f(0xa3)][_0x1d649f(0x7d)](_0x12c308=>s(_0x12c308)&&Number[_0x1d649f(0x8d)](_0x12c308['t'])&&(_0x12c308[_0x1d649f(0x88)]===void 0x0||Number[_0x1d649f(0x8d)](_0x12c308[_0x1d649f(0x88)])))&&Number[_0x1d649f(0x8d)](_0x225eb5[_0x1d649f(0x8c)])&&_0x225eb5['width']>0x0&&Number[_0x1d649f(0x8d)](_0x225eb5[_0x1d649f(0x76)])&&_0x225eb5[_0x1d649f(0x76)]>=0x0&&_0x225eb5[_0x1d649f(0x76)]<=0x1;}function l(_0x22c65b){const _0x45f81b=_0x492546;return _0x22c65b===void 0x0||(_0x22c65b[_0x45f81b(0x8c)]===void 0x0||Number[_0x45f81b(0x8d)](_0x22c65b['width'])&&_0x22c65b['width']>0x0)&&(_0x22c65b[_0x45f81b(0x76)]===void 0x0||Number[_0x45f81b(0x8d)](_0x22c65b['opacity'])&&_0x22c65b['opacity']>=0x0&&_0x22c65b[_0x45f81b(0x76)]<=0x1);}function u(_0x282458){const _0x834d41=_0x492546;return _0x282458&&typeof _0x282458==_0x834d41(0xa4)&&!Array[_0x834d41(0x95)](_0x282458)?_0x282458:{};}function d(_0x38dfb2){const _0x559860=_0x492546;let _0x2a9496=u(_0x38dfb2['custom'])['ink'];if(!_0x2a9496||typeof _0x2a9496!=_0x559860(0xa4)||Array[_0x559860(0x95)](_0x2a9496))return null;let _0x949ca9=_0x2a9496;return _0x949ca9[_0x559860(0x79)]===0x1&&_0x949ca9[_0x559860(0xa5)]&&typeof _0x949ca9[_0x559860(0xa5)]=='object'?_0x949ca9:null;}function f(_0x58ea03){const _0x554e3b=_0x492546;return _0x58ea03['type']===e[_0x554e3b(0x92)][_0x554e3b(0x8b)]&&!!d(_0x58ea03);}t[_0x492546(0x80)][_0x492546(0x97)](a);function _0x11b7(){const _0x40d1fd=['toStringTag','Tools','deepClone','out','defineProperty','insertIndex','generateRandomId','519222CTYgOZ','free','transform','67044tSwYVh','tool','BoardInkHandleKind','opacity','addElement','BoardInkPointType','version','6261120yYaRTz','insertInk','999587yTZhWC','every','parentId','447480eTKeFH','FBoard','63QxSUbd','pen','brush','anchor','kind','BoardInkTool','style','pressure','add','highlighter','Shape','width','isFinite','smooth','28504XPYSKi','trim','filter','BoardElementType','model','shapeData','isArray','Module','extend','216kSmtzu','2TAojTm','buildInkCustomShapePayload','laneId','165HZysjp','anchors','symmetric','custom','corner','268149flKagd','length','points','object','sourceModel'];_0x11b7=function(){return _0x40d1fd;};return _0x11b7();}const p={'Pen':_0x492546(0x82),'Brush':_0x492546(0x83),'Highlighter':_0x492546(0x8a)},m={'Corner':_0x492546(0xa0),'Smooth':_0x492546(0x8e),'Symmetric':_0x492546(0x9e),'Free':_0x492546(0x71)},h={'Anchor':_0x492546(0x84),'In':'in','Out':_0x492546(0xa9)};var g=class extends i['FEnum']{get[_0x492546(0x86)](){return p;}get[_0x492546(0x78)](){return m;}get['BoardInkHandleKind'](){return h;}};i['FEnum'][_0x492546(0x97)](g),exports[_0x492546(0x75)]=h,exports[_0x492546(0x78)]=m,exports[_0x492546(0x86)]=p;
1
+ const _0x565ec9=_0x19e4;(function(_0x1c34ad,_0x3979dd){const _0x3f5cd9=_0x19e4,_0x34e871=_0x1c34ad();while(!![]){try{const _0x42e60e=-parseInt(_0x3f5cd9(0xc4))/0x1*(-parseInt(_0x3f5cd9(0xe0))/0x2)+-parseInt(_0x3f5cd9(0xd2))/0x3+-parseInt(_0x3f5cd9(0xd3))/0x4*(parseInt(_0x3f5cd9(0xf3))/0x5)+parseInt(_0x3f5cd9(0xef))/0x6+-parseInt(_0x3f5cd9(0xf8))/0x7*(parseInt(_0x3f5cd9(0xfa))/0x8)+parseInt(_0x3f5cd9(0xf9))/0x9*(parseInt(_0x3f5cd9(0xf2))/0xa)+-parseInt(_0x3f5cd9(0xc0))/0xb*(-parseInt(_0x3f5cd9(0xed))/0xc);if(_0x42e60e===_0x3979dd)break;else _0x34e871['push'](_0x34e871['shift']());}catch(_0x4ea4d2){_0x34e871['push'](_0x34e871['shift']());}}}(_0x59e8,0xa17d7),Object[_0x565ec9(0xd0)](exports,Symbol[_0x565ec9(0xe5)],{'value':'Module'}));let e=require('@univerjs-pro/boards'),t=require('@univerjs-pro/boards/facade'),n=require('@univerjs-pro/ink'),r=require('@univerjs/core'),i=require('@univerjs/core/facade');var a=class extends t['FBoard']{[_0x565ec9(0xc9)](_0x4bf8cd){let _0x4e0258=o(_0x4bf8cd);return _0x4e0258&&this['addElement'](_0x4e0258,{'insertIndex':_0x4bf8cd['insertIndex']})?_0x4e0258:null;}[_0x565ec9(0xc3)](){const _0x5b7bab=_0x565ec9;return this[_0x5b7bab(0xde)]({'elementType':e['BoardElementType'][_0x5b7bab(0xc5)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x5b7bab(0xcd)](f);}};function o(_0x2a1c65,_0x1e8f86){const _0x2f5401=_0x565ec9;var _0x22c9fc,_0x4a4b72,_0x3ddd85;if(!c(_0x2a1c65[_0x2f5401(0xec)])||_0x2a1c65[_0x2f5401(0xd5)]!==void 0x0&&!c(_0x2a1c65[_0x2f5401(0xd5)])||!l(_0x2a1c65['style']))return null;let _0x5eb932=(_0x22c9fc=_0x2a1c65[_0x2f5401(0xd8)])==null?_0x1e8f86==null?void 0x0:_0x1e8f86['parentId']:_0x22c9fc,_0x1bcc8e=r['Tools']['deepClone'](_0x2a1c65[_0x2f5401(0xec)]),_0x2f5ce7=(0x0,n[_0x2f5401(0xc1)])({'model':_0x1bcc8e,'style':_0x2a1c65[_0x2f5401(0xcc)],'tool':_0x2a1c65[_0x2f5401(0xda)],'sourceModel':_0x2a1c65['sourceModel']?r[_0x2f5401(0xca)][_0x2f5401(0xdf)](_0x2a1c65[_0x2f5401(0xd5)]):_0x1bcc8e}),_0x3bffa1=u(_0x1e8f86==null?void 0x0:_0x1e8f86[_0x2f5401(0xd7)]);return{'id':(_0x4a4b72=(_0x3ddd85=_0x1e8f86==null?void 0x0:_0x1e8f86['id'])==null?_0x2a1c65['id']:_0x3ddd85)==null?(0x0,r[_0x2f5401(0xe8)])(0x6):_0x4a4b72,'type':e[_0x2f5401(0xeb)][_0x2f5401(0xc5)],'transform':_0x2f5ce7[_0x2f5401(0xd1)],'shapeData':_0x2f5ce7['shapeData'],'parentId':_0x5eb932==null?void 0x0:_0x5eb932,'laneId':_0x2a1c65['laneId']===void 0x0?_0x1e8f86==null?void 0x0:_0x1e8f86[_0x2f5401(0xe3)]:_0x2a1c65[_0x2f5401(0xe3)],'custom':{..._0x3bffa1,'ink':_0x2f5ce7['ink']}};}function s(_0x28f5ab){const _0xf87f8=_0x565ec9;return Number[_0xf87f8(0xee)](_0x28f5ab['x'])&&Number['isFinite'](_0x28f5ab['y']);}function c(_0x29459a){const _0x3888be=_0x565ec9;if(_0x29459a[_0x3888be(0xf1)]==='pen'){let _0x592c70=new Set();return _0x29459a['anchors'][_0x3888be(0xcf)]>=(_0x29459a[_0x3888be(0xe1)]?0x3:0x2)&&_0x29459a[_0x3888be(0xc7)]['every'](_0x11f850=>{const _0x8bee13=_0x3888be;let _0x58046f=_0x11f850['id']['trim']()['length']>0x0&&!_0x592c70[_0x8bee13(0xf4)](_0x11f850['id'])&&s(_0x11f850)&&(!_0x11f850['in']||s(_0x11f850['in']))&&(!_0x11f850[_0x8bee13(0xdb)]||s(_0x11f850['out']));return _0x592c70['add'](_0x11f850['id']),_0x58046f;});}return _0x29459a[_0x3888be(0xe4)][_0x3888be(0xcf)]>=0x2&&_0x29459a[_0x3888be(0xe4)][_0x3888be(0xf5)](_0x5e77be=>s(_0x5e77be)&&Number[_0x3888be(0xee)](_0x5e77be['t'])&&(_0x5e77be[_0x3888be(0xd4)]===void 0x0||Number[_0x3888be(0xee)](_0x5e77be[_0x3888be(0xd4)])))&&Number[_0x3888be(0xee)](_0x29459a[_0x3888be(0xd9)])&&_0x29459a[_0x3888be(0xd9)]>0x0&&Number[_0x3888be(0xee)](_0x29459a[_0x3888be(0xc2)])&&_0x29459a[_0x3888be(0xc2)]>=0x0&&_0x29459a[_0x3888be(0xc2)]<=0x1;}function l(_0x4fff08){const _0x2ec7a4=_0x565ec9;return _0x4fff08===void 0x0||(_0x4fff08[_0x2ec7a4(0xd9)]===void 0x0||Number[_0x2ec7a4(0xee)](_0x4fff08['width'])&&_0x4fff08['width']>0x0)&&(_0x4fff08[_0x2ec7a4(0xc2)]===void 0x0||Number[_0x2ec7a4(0xee)](_0x4fff08[_0x2ec7a4(0xc2)])&&_0x4fff08[_0x2ec7a4(0xc2)]>=0x0&&_0x4fff08[_0x2ec7a4(0xc2)]<=0x1);}function u(_0x3b2b16){const _0x339a76=_0x565ec9;return _0x3b2b16&&typeof _0x3b2b16=='object'&&!Array[_0x339a76(0xce)](_0x3b2b16)?_0x3b2b16:{};}function d(_0x2ef614){const _0x47640a=_0x565ec9;let _0x5d93cb=u(_0x2ef614[_0x47640a(0xd7)])[_0x47640a(0xf6)];if(!_0x5d93cb||typeof _0x5d93cb!=_0x47640a(0xf0)||Array[_0x47640a(0xce)](_0x5d93cb))return null;let _0x1457e3=_0x5d93cb;return _0x1457e3[_0x47640a(0xe9)]===0x1&&_0x1457e3[_0x47640a(0xd5)]&&typeof _0x1457e3[_0x47640a(0xd5)]==_0x47640a(0xf0)?_0x1457e3:null;}function f(_0x5f2907){const _0x7c51b=_0x565ec9;return _0x5f2907[_0x7c51b(0xea)]===e[_0x7c51b(0xeb)][_0x7c51b(0xc5)]&&!!d(_0x5f2907);}function _0x59e8(){const _0x3c0a90=['filter','isArray','length','defineProperty','transform','371241MTjJlk','804612QWMAOE','pressure','sourceModel','free','custom','parentId','width','tool','out','anchor','smooth','findElements','deepClone','4OwnXNB','closed','corner','laneId','points','toStringTag','BoardInkTool','extend','generateRandomId','version','type','BoardElementType','model','24888nrnelh','isFinite','101364vqQiTE','object','kind','5990YHQKJc','25nyNwmJ','has','every','ink','symmetric','350iGJpoo','15453gptjvE','204696jATwsV','FBoard','10615MAvgjO','buildInkCustomShapePayload','opacity','getInks','11769sqJGkp','Shape','BoardInkPointType','anchors','FEnum','insertInk','Tools','pen','style'];_0x59e8=function(){return _0x3c0a90;};return _0x59e8();}t[_0x565ec9(0xbf)]['extend'](a);function _0x19e4(_0x50abc9,_0x3b4009){_0x50abc9=_0x50abc9-0xbf;const _0x59e86d=_0x59e8();let _0x19e4cb=_0x59e86d[_0x50abc9];return _0x19e4cb;}const p={'Pen':_0x565ec9(0xcb),'Brush':'brush','Highlighter':'highlighter'},m={'Corner':_0x565ec9(0xe2),'Smooth':_0x565ec9(0xdd),'Symmetric':_0x565ec9(0xf7),'Free':_0x565ec9(0xd6)},h={'Anchor':_0x565ec9(0xdc),'In':'in','Out':_0x565ec9(0xdb)};var g=class extends i[_0x565ec9(0xc8)]{get[_0x565ec9(0xe6)](){return p;}get['BoardInkPointType'](){return m;}get['BoardInkHandleKind'](){return h;}};i[_0x565ec9(0xc8)][_0x565ec9(0xe7)](g),exports['BoardInkHandleKind']=h,exports[_0x565ec9(0xc6)]=m,exports[_0x565ec9(0xe6)]=p;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x28f2e6=_0x5a6d;(function(_0x1106e2,_0x2d27ce){const _0x210409=_0x5a6d,_0xa89cd9=_0x1106e2();while(!![]){try{const _0x436c47=-parseInt(_0x210409(0x182))/0x1*(parseInt(_0x210409(0x123))/0x2)+parseInt(_0x210409(0x172))/0x3+-parseInt(_0x210409(0x18a))/0x4+parseInt(_0x210409(0x13b))/0x5+parseInt(_0x210409(0x156))/0x6*(parseInt(_0x210409(0x184))/0x7)+-parseInt(_0x210409(0x14b))/0x8*(-parseInt(_0x210409(0x177))/0x9)+-parseInt(_0x210409(0x149))/0xa*(parseInt(_0x210409(0x15c))/0xb);if(_0x436c47===_0x2d27ce)break;else _0xa89cd9['push'](_0xa89cd9['shift']());}catch(_0x530623){_0xa89cd9['push'](_0xa89cd9['shift']());}}}(_0x3435,0xcfe1a),Object[_0x28f2e6(0x140)](exports,Symbol['toStringTag'],{'value':_0x28f2e6(0x189)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0xfaa202){return{'x':_0xfaa202['x'],'y':_0xfaa202['y']};}function a(_0x396394){const _0x3dcb64=_0x28f2e6;return{..._0x396394,'in':_0x396394['in']?i(_0x396394['in']):void 0x0,'out':_0x396394[_0x3dcb64(0x14c)]?i(_0x396394['out']):void 0x0};}function o(_0x323d3d){const _0x520943=_0x28f2e6;return{'kind':_0x520943(0x125),'closed':_0x323d3d['closed'],'anchors':_0x323d3d[_0x520943(0x120)]['map'](a)};}function s(_0x317bf5,_0x1d07a8,_0x4a0440){return{'x':_0x317bf5['x']+(_0x1d07a8['x']-_0x317bf5['x'])*_0x4a0440,'y':_0x317bf5['y']+(_0x1d07a8['y']-_0x317bf5['y'])*_0x4a0440};}function c(_0x25a799,_0x50ad6e){const _0x585dac=_0x28f2e6;return Math[_0x585dac(0x16d)](_0x25a799['x']-_0x50ad6e['x'],_0x25a799['y']-_0x50ad6e['y']);}function l(_0x406a4a){const _0x50839e=_0x28f2e6;let _0x14eaf1=Math[_0x50839e(0x16d)](_0x406a4a['x'],_0x406a4a['y']);return _0x14eaf1<r?{'x':0x1,'y':0x0}:{'x':_0x406a4a['x']/_0x14eaf1,'y':_0x406a4a['y']/_0x14eaf1};}function u(_0x4f61c7,_0x207931,_0x338c50=c(_0x4f61c7,_0x207931)){let _0x698253=l({'x':_0x4f61c7['x']-_0x207931['x'],'y':_0x4f61c7['y']-_0x207931['y']});return{'x':_0x4f61c7['x']+_0x698253['x']*_0x338c50,'y':_0x4f61c7['y']+_0x698253['y']*_0x338c50};}function d(_0x16f3c4,_0x18160a){const _0x1fc87d=_0x28f2e6;let {anchors:_0x57cc89}=_0x16f3c4;return _0x57cc89[_0x1fc87d(0x13d)]<0x2||_0x18160a<0x0?null:_0x18160a<_0x57cc89['length']-0x1?{'startIndex':_0x18160a,'endIndex':_0x18160a+0x1,'start':_0x57cc89[_0x18160a],'end':_0x57cc89[_0x18160a+0x1]}:_0x16f3c4[_0x1fc87d(0x175)]&&_0x18160a===_0x57cc89[_0x1fc87d(0x13d)]-0x1?{'startIndex':_0x57cc89[_0x1fc87d(0x13d)]-0x1,'endIndex':0x0,'start':_0x57cc89[_0x57cc89['length']-0x1],'end':_0x57cc89[0x0]}:null;}function f(_0x3d3407,_0x49ae61){const _0x36b98a=_0x28f2e6;var _0x5b0999,_0x1a1bf7;let _0x47d9d3=d(_0x3d3407,_0x49ae61);return _0x47d9d3?[_0x47d9d3['start'],(_0x5b0999=_0x47d9d3[_0x36b98a(0x13c)][_0x36b98a(0x14c)])==null?_0x47d9d3[_0x36b98a(0x13c)]:_0x5b0999,(_0x1a1bf7=_0x47d9d3['end']['in'])==null?_0x47d9d3['end']:_0x1a1bf7,_0x47d9d3[_0x36b98a(0x15b)]]:null;}function ee(_0xeeb525,_0x27a30f){const _0x59addf=_0x28f2e6;var _0x15cbd0;return _0x27a30f===_0x59addf(0x142)?_0xeeb525:(_0x15cbd0=_0xeeb525[_0x27a30f])==null?null:_0x15cbd0;}function p(_0xf3d110,_0x292eb2,_0x3b9c8a){const _0x767940=_0x28f2e6;return _0x3b9c8a===_0x767940(0x142)||_0xf3d110[_0x767940(0x175)]?!0x0:_0x3b9c8a==='in'?_0x292eb2>0x0:_0x292eb2<_0xf3d110[_0x767940(0x120)][_0x767940(0x13d)]-0x1;}function m(_0x9265a,_0x579566){let [_0x350215,_0x5601a0,_0x3ed547,_0x54f007]=_0x9265a,_0x15eb2f=s(_0x350215,_0x5601a0,_0x579566),_0x3c99fb=s(_0x5601a0,_0x3ed547,_0x579566),_0x29fbc7=s(_0x3ed547,_0x54f007,_0x579566);return s(s(_0x15eb2f,_0x3c99fb,_0x579566),s(_0x3c99fb,_0x29fbc7,_0x579566),_0x579566);}function h(_0x140f7a,_0x3a0cb1){let [_0x538b26,_0x76bcd6,_0x337f20,_0x4024f4]=_0x140f7a,_0x526da0=s(_0x538b26,_0x76bcd6,_0x3a0cb1),_0xe0df78=s(_0x76bcd6,_0x337f20,_0x3a0cb1),_0x8889e5=s(_0x337f20,_0x4024f4,_0x3a0cb1),_0x47181f=s(_0x526da0,_0xe0df78,_0x3a0cb1),_0x432896=s(_0xe0df78,_0x8889e5,_0x3a0cb1),_0x3e70a0=s(_0x47181f,_0x432896,_0x3a0cb1);return{'left':[_0x538b26,_0x526da0,_0x47181f,_0x3e70a0],'right':[_0x3e70a0,_0x432896,_0x8889e5,_0x4024f4]};}function g(_0x359cf1,_0x1b835d,_0x2d69dd){const _0x5adcaf=_0x28f2e6;let _0x18dc3d=_0x2d69dd['x']-_0x1b835d['x'],_0x5eabd8=_0x2d69dd['y']-_0x1b835d['y'],_0x5aa504=_0x18dc3d*_0x18dc3d+_0x5eabd8*_0x5eabd8,_0xe33a31=_0x5aa504<=r?0x0:Math[_0x5adcaf(0x11f)](0x0,Math[_0x5adcaf(0x17e)](0x1,((_0x359cf1['x']-_0x1b835d['x'])*_0x18dc3d+(_0x359cf1['y']-_0x1b835d['y'])*_0x5eabd8)/_0x5aa504)),_0x213246={'x':_0x1b835d['x']+_0x18dc3d*_0xe33a31,'y':_0x1b835d['y']+_0x5eabd8*_0xe33a31};return{'point':_0x213246,'ratio':_0xe33a31,'distance':c(_0x359cf1,_0x213246)};}function te(_0x48e7c6,_0x8d89b5,_0x3489ae){return g(_0x48e7c6,_0x8d89b5,_0x3489ae)['distance']**0x2;}function _(_0x254d36,_0x12299b){const _0x44b29a=_0x28f2e6;if(_0x254d36['length']<=0x2)return _0x254d36[_0x44b29a(0x124)](i);let _0x2c5ec3=0x0,_0x2a48a5=0x0,_0x55dca4=_0x254d36[0x0],_0x3ffcb8=_0x254d36[_0x254d36['length']-0x1],_0x10bbb7=_0x12299b*_0x12299b;for(let _0x420157=0x1;_0x420157<_0x254d36[_0x44b29a(0x13d)]-0x1;_0x420157++){let _0x3663bb=te(_0x254d36[_0x420157],_0x55dca4,_0x3ffcb8);_0x3663bb>_0x2c5ec3&&(_0x2c5ec3=_0x3663bb,_0x2a48a5=_0x420157);}if(_0x2c5ec3<=_0x10bbb7)return[i(_0x55dca4),i(_0x3ffcb8)];let _0x520702=_(_0x254d36[_0x44b29a(0x128)](0x0,_0x2a48a5+0x1),_0x12299b),_0x1c27d8=_(_0x254d36['slice'](_0x2a48a5),_0x12299b);return[..._0x520702['slice'](0x0,-0x1),..._0x1c27d8];}function ne(_0x223d9d,_0x469f50){var _0x5bd169;let _0x2236f3=_0x223d9d[_0x469f50],_0x301c6e=_0x223d9d[_0x469f50+0x1],_0x42f7c3=(_0x5bd169=_0x223d9d[_0x469f50-0x1])==null?_0x2236f3:_0x5bd169;return{'x':_0x2236f3['x']+(_0x301c6e['x']-_0x42f7c3['x'])/0x6,'y':_0x2236f3['y']+(_0x301c6e['y']-_0x42f7c3['y'])/0x6};}function v(_0x3afde8,_0x3b2456){var _0x530785;let _0x5192c1=_0x3afde8[_0x3b2456],_0x182c3e=_0x3afde8[_0x3b2456-0x1],_0x1416d6=(_0x530785=_0x3afde8[_0x3b2456+0x1])==null?_0x5192c1:_0x530785;return{'x':_0x5192c1['x']-(_0x1416d6['x']-_0x182c3e['x'])/0x6,'y':_0x5192c1['y']-(_0x1416d6['y']-_0x182c3e['y'])/0x6};}function y(_0x2755a7,_0x521856){const _0x1cefce=_0x28f2e6;var _0x35b2a1,_0x20cd8c;let _0x1ba479=_0x2755a7[_0x1cefce(0x120)][_0x521856],_0xbc1ea9=(_0x35b2a1=_0x2755a7['anchors'][_0x521856-0x1])==null?_0x2755a7[_0x1cefce(0x175)]?_0x2755a7['anchors'][_0x2755a7[_0x1cefce(0x120)][_0x1cefce(0x13d)]-0x1]:null:_0x35b2a1,_0x1f1e61=(_0x20cd8c=_0x2755a7[_0x1cefce(0x120)][_0x521856+0x1])==null?_0x2755a7['closed']?_0x2755a7[_0x1cefce(0x120)][0x0]:null:_0x20cd8c,_0x571be7=_0xbc1ea9&&_0x1f1e61?l({'x':_0x1f1e61['x']-_0xbc1ea9['x'],'y':_0x1f1e61['y']-_0xbc1ea9['y']}):_0x1f1e61?l({'x':_0x1f1e61['x']-_0x1ba479['x'],'y':_0x1f1e61['y']-_0x1ba479['y']}):_0xbc1ea9?l({'x':_0x1ba479['x']-_0xbc1ea9['x'],'y':_0x1ba479['y']-_0xbc1ea9['y']}):{'x':0x1,'y':0x0},_0x37694d=_0xbc1ea9&&_0x1f1e61?Math[_0x1cefce(0x11f)](0x32,c(_0xbc1ea9,_0x1f1e61)/0x4):0x32;return{'in':{'x':_0x1ba479['x']-_0x571be7['x']*_0x37694d,'y':_0x1ba479['y']-_0x571be7['y']*_0x37694d},'out':{'x':_0x1ba479['x']+_0x571be7['x']*_0x37694d,'y':_0x1ba479['y']+_0x571be7['y']*_0x37694d}};}function b(_0x24d1ab,_0x586209){const _0x3d344f=_0x28f2e6;let _0x2b10c4=_0x24d1ab[_0x586209],_0x1454d6=_0x586209==='in'?_0x3d344f(0x14c):'in',_0x136a73=_0x24d1ab[_0x1454d6];if(_0x2b10c4){if(_0x24d1ab[_0x3d344f(0x173)]===_0x3d344f(0x11c)){_0x24d1ab[_0x1454d6]=u(_0x24d1ab,_0x2b10c4);return;}_0x24d1ab['pointType']===_0x3d344f(0x176)&&(_0x24d1ab[_0x1454d6]=u(_0x24d1ab,_0x2b10c4,_0x136a73?c(_0x24d1ab,_0x136a73):c(_0x24d1ab,_0x2b10c4)));}}function x(_0x337027,_0x197318){const _0x5b2723=_0x28f2e6;let _0x15990a=o(_0x337027);return!_0x197318||_0x15990a['closed']||_0x15990a[_0x5b2723(0x120)]['length']===0x0||_0x15990a['anchors']['push']({'id':_0x5b2723(0x130),'x':_0x197318['x'],'y':_0x197318['y'],'pointType':'corner'}),_0x15990a;}function re(_0x3cd86d,_0x59e1d3={}){const _0x38f886=_0x28f2e6;var _0x2159cb,_0x16dfc4;let _0x1a1249=Math[_0x38f886(0x11f)](0x0,(_0x2159cb=_0x59e1d3['tolerance'])==null?Math[_0x38f886(0x11f)](0x4,_0x3cd86d[_0x38f886(0x15a)]*0.35):_0x2159cb),_0x598e69=(_0x16dfc4=_0x59e1d3[_0x38f886(0x16b)])==null?_0x1290a0=>_0x38f886(0x126)+_0x1290a0:_0x16dfc4,_0x33dd3b=_(_0x3cd86d['points'],_0x1a1249),_0x422e85=_0x33dd3b[_0x38f886(0x124)]((_0x1a4800,_0x151ca2)=>({'id':_0x598e69(_0x151ca2),'x':_0x1a4800['x'],'y':_0x1a4800['y'],'pointType':_0x38f886(0x165)}));for(let _0x413e64=0x0;_0x413e64<_0x422e85[_0x38f886(0x13d)]-0x1;_0x413e64++)_0x422e85[_0x413e64][_0x38f886(0x14c)]=ne(_0x33dd3b,_0x413e64),_0x422e85[_0x413e64+0x1]['in']=v(_0x33dd3b,_0x413e64+0x1);return{'kind':_0x38f886(0x125),'closed':!0x1,'anchors':_0x422e85};}function ie(_0x511dd0,_0x21a2c2,_0x5afc66){const _0x569ad2=_0x28f2e6;let _0x1c3cf7=null,_0xedca3f=['anchor','in',_0x569ad2(0x14c)];return _0x511dd0[_0x569ad2(0x120)]['forEach']((_0x5007c8,_0x43c253)=>{const _0x3d9765=_0x569ad2;_0xedca3f[_0x3d9765(0x13f)](_0x12d156=>{const _0xf680d0=_0x3d9765;if(!p(_0x511dd0,_0x43c253,_0x12d156))return;let _0x3b5824=ee(_0x5007c8,_0x12d156);if(!_0x3b5824)return;let _0x33cd30=c(_0x21a2c2,_0x3b5824);_0x33cd30>_0x5afc66||_0x1c3cf7&&_0x33cd30>=_0x1c3cf7[_0xf680d0(0x15e)]||(_0x1c3cf7={'handle':{'kind':_0x12d156,'anchorId':_0x5007c8['id']},'point':i(_0x3b5824),'distance':_0x33cd30});});}),_0x1c3cf7;}function S(_0x586f07,_0x505ca0,_0x232ea3){const _0x41207a=_0x28f2e6;let _0x2820f3=null,_0x6e0633=_0x586f07['closed']?_0x586f07['anchors']['length']:Math['max'](0x0,_0x586f07[_0x41207a(0x120)][_0x41207a(0x13d)]-0x1);for(let _0x493cfe=0x0;_0x493cfe<_0x6e0633;_0x493cfe++){let _0x283417=f(_0x586f07,_0x493cfe);if(!_0x283417)continue;let _0xde8f4c=m(_0x283417,0x0);for(let _0x38c205=0x1;_0x38c205<=0x20;_0x38c205++){let _0x17a71f=m(_0x283417,_0x38c205/0x20),_0x29d3b0=g(_0x505ca0,_0xde8f4c,_0x17a71f),_0xf14d45=(_0x38c205-0x1+_0x29d3b0[_0x41207a(0x11d)])/0x20;(!_0x2820f3||_0x29d3b0[_0x41207a(0x15e)]<_0x2820f3[_0x41207a(0x15e)])&&(_0x2820f3={'segmentIndex':_0x493cfe,'t':_0xf14d45,'point':_0x29d3b0[_0x41207a(0x160)],'distance':_0x29d3b0[_0x41207a(0x15e)]}),_0xde8f4c=_0x17a71f;}}return _0x2820f3&&_0x2820f3['distance']<=_0x232ea3?_0x2820f3:null;}function C(_0x581852,_0x2be1f9,_0x3d1d34){const _0x2e031b=_0x28f2e6;let _0x205a48=o(_0x581852),_0x4cbe30=d(_0x205a48,_0x2be1f9[_0x2e031b(0x122)]),_0x586a9c=f(_0x205a48,_0x2be1f9[_0x2e031b(0x122)]);if(!_0x4cbe30||!_0x586a9c)return _0x205a48;let _0x478387=h(_0x586a9c,Math[_0x2e031b(0x11f)](0x0,Math[_0x2e031b(0x17e)](0x1,_0x2be1f9['t']))),_0x4e076a={'id':_0x3d1d34(),'x':_0x478387[_0x2e031b(0x18f)][0x3]['x'],'y':_0x478387[_0x2e031b(0x18f)][0x3]['y'],'in':i(_0x478387['left'][0x2]),'out':i(_0x478387[_0x2e031b(0x133)][0x1]),'pointType':_0x2e031b(0x165)};return _0x205a48['anchors'][_0x4cbe30['startIndex']][_0x2e031b(0x14c)]=i(_0x478387[_0x2e031b(0x18f)][0x1]),_0x205a48[_0x2e031b(0x120)][_0x4cbe30['endIndex']]['in']=i(_0x478387[_0x2e031b(0x133)][0x2]),_0x205a48[_0x2e031b(0x120)][_0x2e031b(0x188)](_0x4cbe30['startIndex']+0x1,0x0,_0x4e076a),_0x205a48;}function w(_0x563078,_0x59a8a6){const _0x4dffd3=_0x28f2e6;let _0x8b3b35=o(_0x563078);return _0x8b3b35[_0x4dffd3(0x120)]=_0x8b3b35[_0x4dffd3(0x120)][_0x4dffd3(0x162)](_0x26f3a4=>_0x26f3a4['id']!==_0x59a8a6),_0x8b3b35[_0x4dffd3(0x175)]&&_0x8b3b35[_0x4dffd3(0x120)][_0x4dffd3(0x13d)]<0x3&&(_0x8b3b35['closed']=!0x1),_0x8b3b35;}function T(_0x1366f3,_0x5b43cd,_0x1b5a8f){const _0x2d8cc2=_0x28f2e6;let _0x43eb7e=o(_0x1366f3),_0x2da571=_0x43eb7e[_0x2d8cc2(0x120)][_0x2d8cc2(0x152)](_0x58920a=>_0x58920a['id']===_0x5b43cd),_0x583f67=_0x43eb7e[_0x2d8cc2(0x120)][_0x2da571];if(!_0x583f67)return _0x43eb7e;if(_0x583f67[_0x2d8cc2(0x173)]=_0x1b5a8f,_0x1b5a8f===_0x2d8cc2(0x167))return delete _0x583f67['in'],delete _0x583f67[_0x2d8cc2(0x14c)],_0x43eb7e;let _0x3cafde=y(_0x43eb7e,_0x2da571);if(_0x583f67['in']=_0x583f67['in']?i(_0x583f67['in']):_0x3cafde['in'],_0x583f67[_0x2d8cc2(0x14c)]=_0x583f67[_0x2d8cc2(0x14c)]?i(_0x583f67[_0x2d8cc2(0x14c)]):_0x3cafde[_0x2d8cc2(0x14c)],_0x1b5a8f===_0x2d8cc2(0x11c)){let _0x198c37=Math[_0x2d8cc2(0x11f)](c(_0x583f67,_0x583f67['in']),c(_0x583f67,_0x583f67[_0x2d8cc2(0x14c)]),0x32),_0x3525d1=l({'x':_0x583f67[_0x2d8cc2(0x14c)]['x']-_0x583f67['x'],'y':_0x583f67[_0x2d8cc2(0x14c)]['y']-_0x583f67['y']});_0x583f67[_0x2d8cc2(0x14c)]={'x':_0x583f67['x']+_0x3525d1['x']*_0x198c37,'y':_0x583f67['y']+_0x3525d1['y']*_0x198c37},_0x583f67['in']={'x':_0x583f67['x']-_0x3525d1['x']*_0x198c37,'y':_0x583f67['y']-_0x3525d1['y']*_0x198c37};}else _0x1b5a8f===_0x2d8cc2(0x176)&&b(_0x583f67,_0x2d8cc2(0x14c));return _0x43eb7e;}function E(_0x23636d,_0x1ca4dd){const _0x1d9f8c=_0x28f2e6;var _0x1253f0;let _0x52af83=_0x23636d[_0x1d9f8c(0x120)][_0x1d9f8c(0x14f)](_0x11b916=>_0x11b916['id']===_0x1ca4dd),_0x1a49f7=(_0x1253f0=_0x52af83==null?void 0x0:_0x52af83[_0x1d9f8c(0x173)])==null?_0x1d9f8c(0x167):_0x1253f0;return T(_0x23636d,_0x1ca4dd,_0x1a49f7===_0x1d9f8c(0x167)?_0x1d9f8c(0x176):_0x1a49f7===_0x1d9f8c(0x176)?_0x1d9f8c(0x11c):_0x1a49f7===_0x1d9f8c(0x11c)?'free':'corner');}function ae(_0x3a74b0,_0xfc09d5,_0xf2efde){const _0x1e4bc3=_0x28f2e6;let _0x57fe67=o(_0x3a74b0),_0x1c9ede=_0x57fe67['anchors'][_0x1e4bc3(0x14f)](_0x42792b=>_0x42792b['id']===_0xfc09d5['anchorId']);if(!_0x1c9ede)return _0x57fe67;if(_0xfc09d5[_0x1e4bc3(0x161)]===_0x1e4bc3(0x142)){let _0x2992cb={'x':_0xf2efde['x']-_0x1c9ede['x'],'y':_0xf2efde['y']-_0x1c9ede['y']};return _0x1c9ede['x']=_0xf2efde['x'],_0x1c9ede['y']=_0xf2efde['y'],_0x1c9ede['in']&&(_0x1c9ede['in']={'x':_0x1c9ede['in']['x']+_0x2992cb['x'],'y':_0x1c9ede['in']['y']+_0x2992cb['y']}),_0x1c9ede[_0x1e4bc3(0x14c)]&&(_0x1c9ede[_0x1e4bc3(0x14c)]={'x':_0x1c9ede[_0x1e4bc3(0x14c)]['x']+_0x2992cb['x'],'y':_0x1c9ede[_0x1e4bc3(0x14c)]['y']+_0x2992cb['y']}),_0x57fe67;}return _0x1c9ede[_0xfc09d5[_0x1e4bc3(0x161)]]=i(_0xf2efde),_0x1c9ede[_0x1e4bc3(0x173)]===_0x1e4bc3(0x167)&&(_0x1c9ede[_0x1e4bc3(0x173)]='free'),b(_0x1c9ede,_0xfc09d5[_0x1e4bc3(0x161)]),_0x57fe67;}const D=1e-9;function O(_0x487d6a){const _0x2104c6=_0x28f2e6;let _0x3d0776=Math[_0x2104c6(0x12f)](_0x487d6a*0x2710)/0x2710;return Object['is'](_0x3d0776,-0x0)?'0':String(_0x3d0776);}function k(_0x32edb8){return O(_0x32edb8['x'])+'\x20'+O(_0x32edb8['y']);}function A(_0x18f933,_0x2db511){return{'x':_0x18f933['x']-_0x2db511['x'],'y':_0x18f933['y']-_0x2db511['y']};}function j(_0x2eda36,_0x25fe2f,_0x587e8b,_0x548030,_0x1ff2f0){let _0x4e19f5=0x1-_0x1ff2f0;return{'x':_0x4e19f5*_0x4e19f5*_0x4e19f5*_0x2eda36['x']+0x3*_0x4e19f5*_0x4e19f5*_0x1ff2f0*_0x25fe2f['x']+0x3*_0x4e19f5*_0x1ff2f0*_0x1ff2f0*_0x587e8b['x']+_0x1ff2f0*_0x1ff2f0*_0x1ff2f0*_0x548030['x'],'y':_0x4e19f5*_0x4e19f5*_0x4e19f5*_0x2eda36['y']+0x3*_0x4e19f5*_0x4e19f5*_0x1ff2f0*_0x25fe2f['y']+0x3*_0x4e19f5*_0x1ff2f0*_0x1ff2f0*_0x587e8b['y']+_0x1ff2f0*_0x1ff2f0*_0x1ff2f0*_0x548030['y']};}function M(_0x4f841d,_0x201ea4,_0x5d2702,_0xa5695f){const _0xff6a8a=_0x28f2e6;let _0x5154a5=-_0x4f841d+0x3*_0x201ea4-0x3*_0x5d2702+_0xa5695f,_0x11c94f=0x3*_0x4f841d-0x6*_0x201ea4+0x3*_0x5d2702,_0x35d424=-0x3*_0x4f841d+0x3*_0x201ea4,_0x551568=[];if(Math[_0xff6a8a(0x150)](_0x5154a5)<D){if(Math[_0xff6a8a(0x150)](_0x11c94f)<D)return _0x551568;let _0x4d71e9=-_0x35d424/(0x2*_0x11c94f);return _0x4d71e9>0x0&&_0x4d71e9<0x1&&_0x551568[_0xff6a8a(0x17c)](_0x4d71e9),_0x551568;}let _0x27f12e=_0x11c94f*_0x11c94f-0x3*_0x5154a5*_0x35d424;if(_0x27f12e<0x0)return _0x551568;let _0x1acaea=Math[_0xff6a8a(0x166)](Math[_0xff6a8a(0x11f)](0x0,_0x27f12e)),_0xde1a4=(-_0x11c94f+_0x1acaea)/(0x3*_0x5154a5),_0x372063=(-_0x11c94f-_0x1acaea)/(0x3*_0x5154a5);return _0xde1a4>0x0&&_0xde1a4<0x1&&_0x551568[_0xff6a8a(0x17c)](_0xde1a4),_0x372063>0x0&&_0x372063<0x1&&Math['abs'](_0x372063-_0xde1a4)>D&&_0x551568[_0xff6a8a(0x17c)](_0x372063),_0x551568;}function N(_0x582fb1,_0x3e552e,_0x444934,_0x54431d,_0x1bad32){const _0xaad78=_0x28f2e6;_0x582fb1[_0xaad78(0x17c)](_0x3e552e,_0x1bad32),new Set([...M(_0x3e552e['x'],_0x444934['x'],_0x54431d['x'],_0x1bad32['x']),...M(_0x3e552e['y'],_0x444934['y'],_0x54431d['y'],_0x1bad32['y'])])[_0xaad78(0x13f)](_0x20b712=>{const _0x5f4b95=_0xaad78;_0x582fb1[_0x5f4b95(0x17c)](j(_0x3e552e,_0x444934,_0x54431d,_0x1bad32,_0x20b712));});}function P(_0x526cbd){const _0x12d634=_0x28f2e6;let _0x4f58e4=_0x526cbd[_0x12d634(0x120)];if(_0x4f58e4[_0x12d634(0x13d)]<=0x1)return _0x4f58e4;let _0x3ad36c=[];for(let _0x1b5959=0x1;_0x1b5959<_0x4f58e4['length'];_0x1b5959++){var _0x395de4,_0x1b9844;let _0x2e3167=_0x4f58e4[_0x1b5959-0x1],_0x3be3d8=_0x4f58e4[_0x1b5959];N(_0x3ad36c,_0x2e3167,(_0x395de4=_0x2e3167[_0x12d634(0x14c)])==null?_0x2e3167:_0x395de4,(_0x1b9844=_0x3be3d8['in'])==null?_0x3be3d8:_0x1b9844,_0x3be3d8);}if(_0x526cbd[_0x12d634(0x175)]&&_0x4f58e4[_0x12d634(0x13d)]>0x1){var _0x673c82,_0x4fa268;let _0x3b4b44=_0x4f58e4[_0x4f58e4[_0x12d634(0x13d)]-0x1],_0x4fe938=_0x4f58e4[0x0];N(_0x3ad36c,_0x3b4b44,(_0x673c82=_0x3b4b44['out'])==null?_0x3b4b44:_0x673c82,(_0x4fa268=_0x4fe938['in'])==null?_0x4fe938:_0x4fa268,_0x4fe938);}return _0x3ad36c;}function F(_0x101451){const _0x44620c=_0x28f2e6;let _0x46501c=_0x101451[_0x44620c(0x134)];if(_0x46501c[_0x44620c(0x13d)]<=0x1)return _0x46501c;let _0x176ef7=[];for(let _0x4ea4bc=0x0;_0x4ea4bc<_0x46501c[_0x44620c(0x13d)]-0x1;_0x4ea4bc++){var _0x408ceb,_0x13c62e;let _0x35a27c=_0x46501c[_0x4ea4bc],_0x4fc978=_0x46501c[_0x4ea4bc+0x1],_0x2ae719=(_0x408ceb=_0x46501c[_0x4ea4bc-0x1])==null?_0x35a27c:_0x408ceb,_0x3be9c3=(_0x13c62e=_0x46501c[_0x4ea4bc+0x2])==null?_0x4fc978:_0x13c62e;N(_0x176ef7,_0x35a27c,{'x':_0x35a27c['x']+(_0x4fc978['x']-_0x2ae719['x'])/0x6,'y':_0x35a27c['y']+(_0x4fc978['y']-_0x2ae719['y'])/0x6},{'x':_0x4fc978['x']-(_0x3be9c3['x']-_0x35a27c['x'])/0x6,'y':_0x4fc978['y']-(_0x3be9c3['y']-_0x35a27c['y'])/0x6},_0x4fc978);}return _0x176ef7;}function I(_0x1ff45d){const _0x52d876=_0x28f2e6;return _0x1ff45d['kind']===_0x52d876(0x125)?P(_0x1ff45d):F(_0x1ff45d);}function L(_0x33f6dc){const _0x347758=_0x28f2e6;let _0x99b7c8=Math[_0x347758(0x12f)](_0x33f6dc*0x2710)/0x2710;return Object['is'](_0x99b7c8,-0x0)?0x0:_0x99b7c8;}function R(_0x1a6d25){const _0x5cacf5=_0x28f2e6;let _0x457dd6=I(_0x1a6d25);if(_0x457dd6[_0x5cacf5(0x13d)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x17cfc5=Math[_0x5cacf5(0x17e)](..._0x457dd6[_0x5cacf5(0x124)](_0xcd7a93=>_0xcd7a93['x'])),_0x21ea2d=Math[_0x5cacf5(0x17e)](..._0x457dd6[_0x5cacf5(0x124)](_0x565cfa=>_0x565cfa['y'])),_0x5150e0=Math[_0x5cacf5(0x11f)](..._0x457dd6[_0x5cacf5(0x124)](_0xc70b5b=>_0xc70b5b['x'])),_0x54c1bd=Math['max'](..._0x457dd6[_0x5cacf5(0x124)](_0x1ea5bb=>_0x1ea5bb['y']));return{'left':L(_0x17cfc5),'top':L(_0x21ea2d),'width':L(Math['max'](0x1,_0x5150e0-_0x17cfc5)),'height':L(Math[_0x5cacf5(0x11f)](0x1,_0x54c1bd-_0x21ea2d))};}function z(_0x254fc6,_0xf682bd){const _0x2c9168=_0x28f2e6;let _0xf35892=_0x254fc6[_0x2c9168(0x120)];if(_0xf35892[_0x2c9168(0x13d)]===0x0)return'';let _0x3da625=['M\x20'+k(A(_0xf35892[0x0],_0xf682bd))];for(let _0x940b4b=0x1;_0x940b4b<_0xf35892[_0x2c9168(0x13d)];_0x940b4b++){var _0x1d0608,_0x5143b8;let _0x59167b=_0xf35892[_0x940b4b-0x1],_0x43d49e=_0xf35892[_0x940b4b],_0x3e98b7=(_0x1d0608=_0x59167b[_0x2c9168(0x14c)])==null?_0x59167b:_0x1d0608,_0x5b05db=(_0x5143b8=_0x43d49e['in'])==null?_0x43d49e:_0x5143b8;_0x3da625[_0x2c9168(0x17c)]('C\x20'+k(A(_0x3e98b7,_0xf682bd))+'\x20'+k(A(_0x5b05db,_0xf682bd))+'\x20'+k(A(_0x43d49e,_0xf682bd)));}if(_0x254fc6['closed']&&_0xf35892[_0x2c9168(0x13d)]>0x1){var _0x3b7302,_0xe3f4c7;let _0x537248=_0xf35892[_0xf35892[_0x2c9168(0x13d)]-0x1],_0xb3a7fd=_0xf35892[0x0],_0x3670f9=(_0x3b7302=_0x537248['out'])==null?_0x537248:_0x3b7302,_0x4b91aa=(_0xe3f4c7=_0xb3a7fd['in'])==null?_0xb3a7fd:_0xe3f4c7;_0x3da625[_0x2c9168(0x17c)]('C\x20'+k(A(_0x3670f9,_0xf682bd))+'\x20'+k(A(_0x4b91aa,_0xf682bd))+'\x20'+k(A(_0xb3a7fd,_0xf682bd))),_0x3da625[_0x2c9168(0x17c)]('Z');}return _0x3da625[_0x2c9168(0x13a)]('\x20');}function B(_0x2f2e77,_0x23ce8b){const _0x16ab2=_0x28f2e6;let _0x1a2065=_0x2f2e77[_0x16ab2(0x134)][_0x16ab2(0x124)](_0x27bf9c=>A(_0x27bf9c,_0x23ce8b));if(_0x1a2065[_0x16ab2(0x13d)]===0x0)return'';if(_0x1a2065[_0x16ab2(0x13d)]===0x1)return'M\x20'+k(_0x1a2065[0x0]);let _0x1a69f1=['M\x20'+k(_0x1a2065[0x0])];for(let _0x311128=0x0;_0x311128<_0x1a2065[_0x16ab2(0x13d)]-0x1;_0x311128++){var _0x1fd6d2,_0x2bbb55;let _0x18847c=_0x1a2065[_0x311128],_0x1d072f=_0x1a2065[_0x311128+0x1],_0x4e0390=(_0x1fd6d2=_0x1a2065[_0x311128-0x1])==null?_0x18847c:_0x1fd6d2,_0x3aa98b=(_0x2bbb55=_0x1a2065[_0x311128+0x2])==null?_0x1d072f:_0x2bbb55,_0x5b23e8={'x':_0x18847c['x']+(_0x1d072f['x']-_0x4e0390['x'])/0x6,'y':_0x18847c['y']+(_0x1d072f['y']-_0x4e0390['y'])/0x6},_0x51f1c3={'x':_0x1d072f['x']-(_0x3aa98b['x']-_0x18847c['x'])/0x6,'y':_0x1d072f['y']-(_0x3aa98b['y']-_0x18847c['y'])/0x6};_0x1a69f1[_0x16ab2(0x17c)]('C\x20'+k(_0x5b23e8)+'\x20'+k(_0x51f1c3)+'\x20'+k(_0x1d072f));}return _0x1a69f1['join']('\x20');}function V(_0x429378,_0x254b6c){const _0x3faa67=_0x28f2e6;return _0x429378['kind']===_0x3faa67(0x125)?z(_0x429378,_0x254b6c):B(_0x429378,_0x254b6c);}function H(_0x218145,_0x1354e5){const _0x1d357b=_0x28f2e6;return _0x1354e5!=null&&_0x1354e5[_0x1d357b(0x138)]?_0x1354e5['color']:_0x218145[_0x1d357b(0x161)]===_0x1d357b(0x125)?'#f54a45':_0x218145['color'];}function U(_0x4a1249,_0x50a38d){const _0x483155=_0x28f2e6;return(_0x50a38d==null?void 0x0:_0x50a38d[_0x483155(0x15a)])===void 0x0?_0x4a1249[_0x483155(0x161)]==='pen'?0x2:_0x4a1249['width']:_0x50a38d['width'];}function W(_0x16d168,_0x3cd737){const _0x175ddb=_0x28f2e6;return(_0x3cd737==null?void 0x0:_0x3cd737['opacity'])===void 0x0?_0x16d168[_0x175ddb(0x161)]===_0x175ddb(0x125)?void 0x0:_0x16d168[_0x175ddb(0x17a)]:_0x3cd737[_0x175ddb(0x17a)];}function oe(_0x47a787,_0x1d9619){const _0x594527=_0x28f2e6;let _0x3ed312=R(_0x47a787),_0x2d3789=V(_0x47a787,{'x':_0x3ed312[_0x594527(0x18f)],'y':_0x3ed312[_0x594527(0x129)]}),_0x1191e6=_0x47a787[_0x594527(0x161)]===_0x594527(0x125)&&_0x47a787[_0x594527(0x175)],_0x440870=_0x1d9619==null?void 0x0:_0x1d9619[_0x594527(0x17b)];return{'shapeType':e[_0x594527(0x178)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3ed312['width'],'h':_0x3ed312[_0x594527(0x146)],'fill':_0x1191e6?'norm':_0x594527(0x16e),'stroke':!0x0,'data':_0x2d3789,'dataArray':K(_0x47a787,{'x':_0x3ed312[_0x594527(0x18f)],'y':_0x3ed312['top']})}]},'fill':_0x1191e6&&_0x440870?{'color':_0x440870,'fillType':e[_0x594527(0x131)]['SolidFill']}:{'fillType':e[_0x594527(0x131)][_0x594527(0x170)]},'stroke':{'color':H(_0x47a787,_0x1d9619),'width':U(_0x47a787,_0x1d9619),'opacity':W(_0x47a787,_0x1d9619),'lineStrokeType':e[_0x594527(0x11e)][_0x594527(0x191)],'capType':e[_0x594527(0x12b)][_0x594527(0x144)],'lineJoinType':e[_0x594527(0x141)][_0x594527(0x144)]}};}function G(_0x5d6bf8,_0x4ce41a){return{'x':_0x5d6bf8['x']-_0x4ce41a['x'],'y':_0x5d6bf8['y']-_0x4ce41a['y']};}function K(_0x38c7be,_0x4c514f){const _0x2fc907=_0x28f2e6;if(_0x38c7be[_0x2fc907(0x161)]===_0x2fc907(0x125)){let _0x440428=_0x38c7be[_0x2fc907(0x120)];if(_0x440428[_0x2fc907(0x13d)]===0x0)return[];let _0x234cf7=G(_0x440428[0x0],_0x4c514f),_0xe521b2=[{'command':'M','points':[_0x234cf7['x'],_0x234cf7['y']]}];for(let _0x29fc6f=0x1;_0x29fc6f<_0x440428[_0x2fc907(0x13d)];_0x29fc6f++){var _0x31c544,_0x25c7d2;let _0x6779=_0x440428[_0x29fc6f-0x1],_0x927de4=_0x440428[_0x29fc6f],_0xdb0d1f=G((_0x31c544=_0x6779[_0x2fc907(0x14c)])==null?_0x6779:_0x31c544,_0x4c514f),_0x550d42=G((_0x25c7d2=_0x927de4['in'])==null?_0x927de4:_0x25c7d2,_0x4c514f),_0x240988=G(_0x927de4,_0x4c514f);_0xe521b2['push']({'command':'C','points':[_0xdb0d1f['x'],_0xdb0d1f['y'],_0x550d42['x'],_0x550d42['y'],_0x240988['x'],_0x240988['y']]});}if(_0x38c7be[_0x2fc907(0x175)]&&_0x440428[_0x2fc907(0x13d)]>0x1){var _0x230d50,_0x15e103;let _0x2fa204=_0x440428[_0x440428[_0x2fc907(0x13d)]-0x1],_0x5335c4=_0x440428[0x0],_0x46f5a5=G((_0x230d50=_0x2fa204[_0x2fc907(0x14c)])==null?_0x2fa204:_0x230d50,_0x4c514f),_0x20b032=G((_0x15e103=_0x5335c4['in'])==null?_0x5335c4:_0x15e103,_0x4c514f),_0x55d225=G(_0x5335c4,_0x4c514f);_0xe521b2[_0x2fc907(0x17c)]({'command':'C','points':[_0x46f5a5['x'],_0x46f5a5['y'],_0x20b032['x'],_0x20b032['y'],_0x55d225['x'],_0x55d225['y']]}),_0xe521b2[_0x2fc907(0x17c)]({'command':'z','points':[]});}return _0xe521b2;}let _0x5d2eb2=_0x38c7be[_0x2fc907(0x134)][_0x2fc907(0x124)](_0xc98c47=>G(_0xc98c47,_0x4c514f));if(_0x5d2eb2[_0x2fc907(0x13d)]===0x0)return[];let _0x59095e=[{'command':'M','points':[_0x5d2eb2[0x0]['x'],_0x5d2eb2[0x0]['y']]}];for(let _0x5507cd=0x0;_0x5507cd<_0x5d2eb2[_0x2fc907(0x13d)]-0x1;_0x5507cd++){var _0x1e2db7,_0x4dedbd;let _0xa08b52=_0x5d2eb2[_0x5507cd],_0xef8728=_0x5d2eb2[_0x5507cd+0x1],_0x1a7e98=(_0x1e2db7=_0x5d2eb2[_0x5507cd-0x1])==null?_0xa08b52:_0x1e2db7,_0x57d526=(_0x4dedbd=_0x5d2eb2[_0x5507cd+0x2])==null?_0xef8728:_0x4dedbd,_0x3328bb={'x':_0xa08b52['x']+(_0xef8728['x']-_0x1a7e98['x'])/0x6,'y':_0xa08b52['y']+(_0xef8728['y']-_0x1a7e98['y'])/0x6},_0x3e6d64={'x':_0xef8728['x']-(_0x57d526['x']-_0xa08b52['x'])/0x6,'y':_0xef8728['y']-(_0x57d526['y']-_0xa08b52['y'])/0x6};_0x59095e['push']({'command':'C','points':[_0x3328bb['x'],_0x3328bb['y'],_0x3e6d64['x'],_0x3e6d64['y'],_0xef8728['x'],_0xef8728['y']]});}return _0x59095e;}function q(_0x30f6a1){const _0x28423e=_0x28f2e6;var _0x49434f;let {model:_0x6ac922,sourceModel:_0x4610b7=_0x6ac922,style:_0xf6a578}=_0x30f6a1,_0xcee791=(_0x49434f=_0x30f6a1['tool'])==null?_0x6ac922[_0x28423e(0x161)]:_0x49434f,_0xc4ee1f=R(_0x6ac922),_0x4176f4=_0x6ac922['kind']==='pen'&&_0xcee791!==_0x28423e(0x125)?_0x6ac922:void 0x0;return{'transform':{..._0xc4ee1f,'rotation':0x0},'shapeData':oe(_0x6ac922,_0xf6a578),'ink':{'version':0x1,'tool':_0xcee791,'sourceModel':_0x4610b7,..._0x4176f4?{'editModel':_0x4176f4}:{},'normalizedBounds':_0xc4ee1f}};}function _0x5a6d(_0x309911,_0x4d1e57){_0x309911=_0x309911-0x11c;const _0x3435ad=_0x3435();let _0x5a6dd1=_0x3435ad[_0x309911];return _0x5a6dd1;}var se=_0x28f2e6(0x181),ce=_0x28f2e6(0x135);function J(_0x2b8d29){'@babel/helpers - typeof';const _0x2e0788=_0x28f2e6;return J=typeof Symbol==_0x2e0788(0x183)&&typeof Symbol['iterator']==_0x2e0788(0x16a)?function(_0x31165e){return typeof _0x31165e;}:function(_0xb7dc5b){const _0x26e273=_0x2e0788;return _0xb7dc5b&&typeof Symbol=='function'&&_0xb7dc5b[_0x26e273(0x18e)]===Symbol&&_0xb7dc5b!==Symbol['prototype']?_0x26e273(0x16a):typeof _0xb7dc5b;},J(_0x2b8d29);}function le(_0xecfb44,_0x23216d){const _0x3aea2b=_0x28f2e6;if(J(_0xecfb44)!=_0x3aea2b(0x180)||!_0xecfb44)return _0xecfb44;var _0x335faa=_0xecfb44[Symbol[_0x3aea2b(0x179)]];if(_0x335faa!==void 0x0){var _0x2ae351=_0x335faa[_0x3aea2b(0x145)](_0xecfb44,_0x23216d||_0x3aea2b(0x18d));if(J(_0x2ae351)!=_0x3aea2b(0x180))return _0x2ae351;throw TypeError(_0x3aea2b(0x121));}return(_0x23216d===_0x3aea2b(0x16f)?String:Number)(_0xecfb44);}function ue(_0x1bc441){const _0x2ce22d=_0x28f2e6;var _0x54cb20=le(_0x1bc441,_0x2ce22d(0x16f));return J(_0x54cb20)==_0x2ce22d(0x16a)?_0x54cb20:_0x54cb20+'';}function Y(_0x150c1c,_0x393de3,_0xe601e5){const _0x582229=_0x28f2e6;return(_0x393de3=ue(_0x393de3))in _0x150c1c?Object[_0x582229(0x140)](_0x150c1c,_0x393de3,{'value':_0xe601e5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x150c1c[_0x393de3]=_0xe601e5,_0x150c1c;}const X=(0x0,n[_0x28f2e6(0x190)])(_0x28f2e6(0x174));var de=class{constructor(){const _0x16f0bb=_0x28f2e6;Y(this,_0x16f0bb(0x132),[]);}[_0x28f2e6(0x169)](_0x3733de){const _0x32c56b=_0x28f2e6;return this[_0x32c56b(0x132)][_0x32c56b(0x17c)](_0x3733de),(0x0,n[_0x32c56b(0x127)])(()=>{const _0x3f18f2=_0x32c56b;let _0xde21c4=this[_0x3f18f2(0x132)][_0x3f18f2(0x155)](_0x3733de);_0xde21c4>=0x0&&this[_0x3f18f2(0x132)][_0x3f18f2(0x188)](_0xde21c4,0x1);});}[_0x28f2e6(0x12a)](_0x145d9f){const _0x255775=_0x28f2e6;for(let _0x919fcc of this[_0x255775(0x132)])if(_0x919fcc[_0x255775(0x12a)](_0x145d9f))return!0x0;return!0x1;}async[_0x28f2e6(0x185)](_0x57ecb5){const _0x409a40=_0x28f2e6;for(let _0x404147 of this[_0x409a40(0x132)])if(_0x404147[_0x409a40(0x185)]&&await _0x404147[_0x409a40(0x185)](_0x57ecb5))return!0x0;return!0x1;}};const fe={'id':_0x28f2e6(0x16c),'type':n[_0x28f2e6(0x136)][_0x28f2e6(0x171)],'handler':(_0x33edd2,_0x24a3f1)=>_0x24a3f1?_0x33edd2[_0x28f2e6(0x14a)](X)[_0x28f2e6(0x12a)](_0x24a3f1):!0x1},Z={};function Q(_0x206479,_0x365fdb){return function(_0x32da02,_0x31703c){_0x365fdb(_0x32da02,_0x31703c,_0x206479);};}function pe(_0x49baf5,_0x24600c,_0x3e9d84,_0x258754){const _0x2ad11e=_0x28f2e6;var _0xa93a4d=arguments['length'],_0x293c3f=_0xa93a4d<0x3?_0x24600c:_0x258754===null?_0x258754=Object[_0x2ad11e(0x157)](_0x24600c,_0x3e9d84):_0x258754,_0x5f3b17;if(typeof Reflect==_0x2ad11e(0x180)&&typeof Reflect[_0x2ad11e(0x163)]==_0x2ad11e(0x183))_0x293c3f=Reflect['decorate'](_0x49baf5,_0x24600c,_0x3e9d84,_0x258754);else{for(var _0x287c3e=_0x49baf5[_0x2ad11e(0x13d)]-0x1;_0x287c3e>=0x0;_0x287c3e--)(_0x5f3b17=_0x49baf5[_0x287c3e])&&(_0x293c3f=(_0xa93a4d<0x3?_0x5f3b17(_0x293c3f):_0xa93a4d>0x3?_0x5f3b17(_0x24600c,_0x3e9d84,_0x293c3f):_0x5f3b17(_0x24600c,_0x3e9d84))||_0x293c3f);}return _0xa93a4d>0x3&&_0x293c3f&&Object[_0x2ad11e(0x140)](_0x24600c,_0x3e9d84,_0x293c3f),_0x293c3f;}let $=class extends n['Plugin']{constructor(_0x28978d=Z,_0x441c47,_0x372fe4,_0x5794a1){const _0x31b31f=_0x28f2e6;super(),this[_0x31b31f(0x147)]=_0x28978d,this[_0x31b31f(0x153)]=_0x441c47,this[_0x31b31f(0x164)]=_0x372fe4,this['_configService']=_0x5794a1;let {..._0x3243af}=(0x0,n['merge'])({},Z,this['_config']);this[_0x31b31f(0x187)]['setConfig'](_0x31b31f(0x159),_0x3243af);}[_0x28f2e6(0x14d)](){const _0x4f907d=_0x28f2e6;[[X,{'useClass':de}]][_0x4f907d(0x13f)](_0x327c0b=>this['_injector'][_0x4f907d(0x158)](_0x327c0b)),this[_0x4f907d(0x17d)](this['_commandService'][_0x4f907d(0x13e)](fe));}};function _0x3435(){const _0x509c98=['min','DependentOn','object','@univerjs-pro/ink','2gPHlQG','function','6542466YHgWyV','createCustomShape','getInkModelBounds','_configService','splice','Module','6469008ImJzvX','UniverInstanceType','UniverLicensePlugin','default','constructor','left','createIdentifier','SolidLine','moveInkPenAnchorPoint','symmetric','ratio','ShapeLineTypeEnum','max','anchors','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','segmentIndex','715298QTCluZ','map','pen','ink-centerline-','toDisposable','slice','top','beginInkMode','ShapeLineCapEnum','setInkPenAnchorPointType','insertInkPenAnchorAt','IInkHostAdapterService','round','__ink-preview-anchor__','ShapeFillEnum','_adapters','right','points','1.0.0-alpha.3','CommandType','deleteInkPenAnchor','color','convertBrushModelToPenModel','join','5059890rBLjAp','start','length','registerCommand','forEach','defineProperty','ShapeLineJoinEnum','anchor','findClosestInkPenSegment','Round','call','height','_config','ICommandService','10lpQLFS','get','12413208dPXtmD','out','onStarting','buildInkCustomShapePayload','find','abs','cycleInkPenAnchorPointType','findIndex','_injector','UniverInkPlugin','indexOf','6aiibfu','getOwnPropertyDescriptor','add','ink.config','width','end','9151483fdlnnD','type','distance','Inject','point','kind','filter','decorate','_commandService','free','sqrt','corner','UNIVER_INK_PLUGIN','registerAdapter','symbol','createId','ink.operation.start','hypot','none','string','NoFill','OPERATION','1553154SZhLHH','pointType','ink.host-adapter.service','closed','smooth','9tLIjCo','ShapeTypeEnum','toPrimitive','opacity','fillColor','push','disposeWithMe'];_0x3435=function(){return _0x509c98;};return _0x3435();}Y($,'pluginName',_0x28f2e6(0x168)),Y($,'packageName',se),Y($,'version',ce),Y($,_0x28f2e6(0x15d),n[_0x28f2e6(0x18b)]['UNIVER_UNKNOWN']),$=pe([(0x0,n[_0x28f2e6(0x17f)])(t[_0x28f2e6(0x18c)]),Q(0x1,(0x0,n[_0x28f2e6(0x15f)])(n['Injector'])),Q(0x2,n[_0x28f2e6(0x148)]),Q(0x3,n['IConfigService'])],$),exports[_0x28f2e6(0x12e)]=X,Object[_0x28f2e6(0x140)](exports,_0x28f2e6(0x154),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x28f2e6(0x14e)]=q,exports[_0x28f2e6(0x139)]=re,exports[_0x28f2e6(0x151)]=E,exports[_0x28f2e6(0x137)]=w,exports['findClosestInkPenHandle']=ie,exports[_0x28f2e6(0x143)]=S,exports[_0x28f2e6(0x186)]=R,exports['getInkPenPreviewModel']=x,exports[_0x28f2e6(0x12d)]=C,exports['isInkPenHandleVisible']=p,exports[_0x28f2e6(0x192)]=ae,exports[_0x28f2e6(0x12c)]=T;
1
+ const _0x30af30=_0x5cce;(function(_0x117468,_0x41b8a2){const _0x4e7bea=_0x5cce,_0xf0da40=_0x117468();while(!![]){try{const _0x457a55=parseInt(_0x4e7bea(0xe4))/0x1+parseInt(_0x4e7bea(0x105))/0x2+-parseInt(_0x4e7bea(0xbd))/0x3+-parseInt(_0x4e7bea(0xfa))/0x4+-parseInt(_0x4e7bea(0xc2))/0x5+-parseInt(_0x4e7bea(0xfb))/0x6*(parseInt(_0x4e7bea(0xe7))/0x7)+-parseInt(_0x4e7bea(0x103))/0x8*(-parseInt(_0x4e7bea(0xca))/0x9);if(_0x457a55===_0x41b8a2)break;else _0xf0da40['push'](_0xf0da40['shift']());}catch(_0x209ec9){_0xf0da40['push'](_0xf0da40['shift']());}}}(_0x26c7,0xafa9a),Object[_0x30af30(0xf9)](exports,Symbol['toStringTag'],{'value':_0x30af30(0xe8)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x538f14){return{'x':_0x538f14['x'],'y':_0x538f14['y']};}function a(_0x46adb3){const _0x2c179c=_0x30af30;return{..._0x46adb3,'in':_0x46adb3['in']?i(_0x46adb3['in']):void 0x0,'out':_0x46adb3[_0x2c179c(0x114)]?i(_0x46adb3[_0x2c179c(0x114)]):void 0x0};}function o(_0x79045e){const _0x348b68=_0x30af30;return{'kind':_0x348b68(0xd8),'closed':_0x79045e['closed'],'anchors':_0x79045e[_0x348b68(0x10a)][_0x348b68(0x100)](a)};}function s(_0x394b99,_0x49b304,_0x1ddcd4){return{'x':_0x394b99['x']+(_0x49b304['x']-_0x394b99['x'])*_0x1ddcd4,'y':_0x394b99['y']+(_0x49b304['y']-_0x394b99['y'])*_0x1ddcd4};}function c(_0x1f9ede,_0x58cf32){const _0x59a330=_0x30af30;return Math[_0x59a330(0x11d)](_0x1f9ede['x']-_0x58cf32['x'],_0x1f9ede['y']-_0x58cf32['y']);}function l(_0x3dd049){const _0x3f4ecb=_0x30af30;let _0x2a524b=Math[_0x3f4ecb(0x11d)](_0x3dd049['x'],_0x3dd049['y']);return _0x2a524b<r?{'x':0x1,'y':0x0}:{'x':_0x3dd049['x']/_0x2a524b,'y':_0x3dd049['y']/_0x2a524b};}function u(_0x3d34d6,_0x2c13cb,_0x420d02=c(_0x3d34d6,_0x2c13cb)){let _0x19c886=l({'x':_0x3d34d6['x']-_0x2c13cb['x'],'y':_0x3d34d6['y']-_0x2c13cb['y']});return{'x':_0x3d34d6['x']+_0x19c886['x']*_0x420d02,'y':_0x3d34d6['y']+_0x19c886['y']*_0x420d02};}function d(_0x57983a,_0x2b7fec){const _0x224c34=_0x30af30;let {anchors:_0x5753a7}=_0x57983a;return _0x5753a7[_0x224c34(0x109)]<0x2||_0x2b7fec<0x0?null:_0x2b7fec<_0x5753a7[_0x224c34(0x109)]-0x1?{'startIndex':_0x2b7fec,'endIndex':_0x2b7fec+0x1,'start':_0x5753a7[_0x2b7fec],'end':_0x5753a7[_0x2b7fec+0x1]}:_0x57983a['closed']&&_0x2b7fec===_0x5753a7['length']-0x1?{'startIndex':_0x5753a7[_0x224c34(0x109)]-0x1,'endIndex':0x0,'start':_0x5753a7[_0x5753a7['length']-0x1],'end':_0x5753a7[0x0]}:null;}function _0x26c7(){const _0x29fe77=['Round','_injector','_adapters','find','string','pluginName','__ink-preview-anchor__','SolidFill','start','push','tool','prototype','ink.operation.start','defineProperty','2917324UiOvpU','6GMkaon','anchor','Inject','findClosestInkPenSegment','onStarting','map','slice','indexOf','144mcoZBN','ShapeFillEnum','2236452DLGMwm','UNIVER_INK_PLUGIN','registerCommand','endIndex','length','anchors','ICommandService','Rect','round','default','toPrimitive','opacity','DependentOn','symmetric','_config','out','color','points','registerAdapter','setInkPenAnchorPointType','ink-centerline-','createCustomShape','get','toDisposable','hypot','call','ShapeLineTypeEnum','UniverInkPlugin','decorate','corner','deleteInkPenAnchor','forEach','norm','ShapeTypeEnum','anchorId','setConfig','beginInkMode','IConfigService','findClosestInkPenHandle','UniverLicensePlugin','insertInkPenAnchorAt','function','fillColor','moveInkPenAnchorPoint','sqrt','@univerjs-pro/ink','createIdentifier','4199655aEqWSH','min','pointType','disposeWithMe','ShapeLineCapEnum','2041495mUdFRl','constructor','splice','distance','object','findIndex','filter','end','1249470lpiVYf','getInkPenPreviewModel','height','type','startIndex','iterator','free','cycleInkPenAnchorPointType','kind','none','SolidLine','segmentIndex','_configService','join','pen','add','Injector','symbol','UniverInstanceType','max','CommandType','UNIVER_UNKNOWN','merge','closed','_commandService','buildInkCustomShapePayload','359706tjobEU','left','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','5038901brBVib','Module','top','width','smooth'];_0x26c7=function(){return _0x29fe77;};return _0x26c7();}function f(_0x417336,_0x5a4596){const _0x2518ca=_0x30af30;var _0x576475,_0x2960f8;let _0x42088f=d(_0x417336,_0x5a4596);return _0x42088f?[_0x42088f['start'],(_0x576475=_0x42088f[_0x2518ca(0xf4)]['out'])==null?_0x42088f[_0x2518ca(0xf4)]:_0x576475,(_0x2960f8=_0x42088f[_0x2518ca(0xc9)]['in'])==null?_0x42088f[_0x2518ca(0xc9)]:_0x2960f8,_0x42088f[_0x2518ca(0xc9)]]:null;}function ee(_0x25cb54,_0x4c8bf1){const _0x1c860c=_0x30af30;var _0x34a0e2;return _0x4c8bf1===_0x1c860c(0xfc)?_0x25cb54:(_0x34a0e2=_0x25cb54[_0x4c8bf1])==null?null:_0x34a0e2;}function p(_0x2c1425,_0x1a1d73,_0x23e423){const _0x569d10=_0x30af30;return _0x23e423===_0x569d10(0xfc)||_0x2c1425[_0x569d10(0xe1)]?!0x0:_0x23e423==='in'?_0x1a1d73>0x0:_0x1a1d73<_0x2c1425[_0x569d10(0x10a)][_0x569d10(0x109)]-0x1;}function m(_0x379a91,_0x45f137){let [_0x563a88,_0x31f7a1,_0x5b5ba0,_0xf4b63f]=_0x379a91,_0x3600d3=s(_0x563a88,_0x31f7a1,_0x45f137),_0xed7b5b=s(_0x31f7a1,_0x5b5ba0,_0x45f137),_0x2b0c77=s(_0x5b5ba0,_0xf4b63f,_0x45f137);return s(s(_0x3600d3,_0xed7b5b,_0x45f137),s(_0xed7b5b,_0x2b0c77,_0x45f137),_0x45f137);}function h(_0x1b541c,_0x2b6a59){let [_0x555eae,_0x453dc9,_0x5d699,_0x49cf0b]=_0x1b541c,_0x5866cf=s(_0x555eae,_0x453dc9,_0x2b6a59),_0x2f8770=s(_0x453dc9,_0x5d699,_0x2b6a59),_0x29786c=s(_0x5d699,_0x49cf0b,_0x2b6a59),_0x443aca=s(_0x5866cf,_0x2f8770,_0x2b6a59),_0x4f8e40=s(_0x2f8770,_0x29786c,_0x2b6a59),_0x125be1=s(_0x443aca,_0x4f8e40,_0x2b6a59);return{'left':[_0x555eae,_0x5866cf,_0x443aca,_0x125be1],'right':[_0x125be1,_0x4f8e40,_0x29786c,_0x49cf0b]};}function g(_0x84d3a8,_0xb89711,_0x581e9d){const _0x4755b9=_0x30af30;let _0x4e4fd1=_0x581e9d['x']-_0xb89711['x'],_0x573516=_0x581e9d['y']-_0xb89711['y'],_0x3bc0ca=_0x4e4fd1*_0x4e4fd1+_0x573516*_0x573516,_0x56b43f=_0x3bc0ca<=r?0x0:Math['max'](0x0,Math[_0x4755b9(0xbe)](0x1,((_0x84d3a8['x']-_0xb89711['x'])*_0x4e4fd1+(_0x84d3a8['y']-_0xb89711['y'])*_0x573516)/_0x3bc0ca)),_0x55b195={'x':_0xb89711['x']+_0x4e4fd1*_0x56b43f,'y':_0xb89711['y']+_0x573516*_0x56b43f};return{'point':_0x55b195,'ratio':_0x56b43f,'distance':c(_0x84d3a8,_0x55b195)};}function te(_0x1a23ea,_0x22476,_0x1bd2ef){const _0x33031b=_0x30af30;return g(_0x1a23ea,_0x22476,_0x1bd2ef)[_0x33031b(0xc5)]**0x2;}function _(_0xd7c8ec,_0x4ec215){const _0x2e8841=_0x30af30;if(_0xd7c8ec[_0x2e8841(0x109)]<=0x2)return _0xd7c8ec[_0x2e8841(0x100)](i);let _0xf08070=0x0,_0x3a3e4f=0x0,_0x19d907=_0xd7c8ec[0x0],_0x282231=_0xd7c8ec[_0xd7c8ec['length']-0x1],_0x4f1fbb=_0x4ec215*_0x4ec215;for(let _0x14d587=0x1;_0x14d587<_0xd7c8ec[_0x2e8841(0x109)]-0x1;_0x14d587++){let _0x333eed=te(_0xd7c8ec[_0x14d587],_0x19d907,_0x282231);_0x333eed>_0xf08070&&(_0xf08070=_0x333eed,_0x3a3e4f=_0x14d587);}if(_0xf08070<=_0x4f1fbb)return[i(_0x19d907),i(_0x282231)];let _0x102ea1=_(_0xd7c8ec['slice'](0x0,_0x3a3e4f+0x1),_0x4ec215),_0x1359d5=_(_0xd7c8ec[_0x2e8841(0x101)](_0x3a3e4f),_0x4ec215);return[..._0x102ea1[_0x2e8841(0x101)](0x0,-0x1),..._0x1359d5];}function ne(_0x12f0d5,_0x2802e6){var _0x169a38;let _0x45a365=_0x12f0d5[_0x2802e6],_0x274d70=_0x12f0d5[_0x2802e6+0x1],_0x3cbaa0=(_0x169a38=_0x12f0d5[_0x2802e6-0x1])==null?_0x45a365:_0x169a38;return{'x':_0x45a365['x']+(_0x274d70['x']-_0x3cbaa0['x'])/0x6,'y':_0x45a365['y']+(_0x274d70['y']-_0x3cbaa0['y'])/0x6};}function v(_0x4f3b1d,_0x253fd4){var _0x28d454;let _0x5d423d=_0x4f3b1d[_0x253fd4],_0x54837a=_0x4f3b1d[_0x253fd4-0x1],_0x52eebc=(_0x28d454=_0x4f3b1d[_0x253fd4+0x1])==null?_0x5d423d:_0x28d454;return{'x':_0x5d423d['x']-(_0x52eebc['x']-_0x54837a['x'])/0x6,'y':_0x5d423d['y']-(_0x52eebc['y']-_0x54837a['y'])/0x6};}function y(_0x387335,_0x17e202){const _0x482be2=_0x30af30;var _0x386dbd,_0x23ff1d;let _0x434cf5=_0x387335[_0x482be2(0x10a)][_0x17e202],_0xaf85b5=(_0x386dbd=_0x387335[_0x482be2(0x10a)][_0x17e202-0x1])==null?_0x387335[_0x482be2(0xe1)]?_0x387335[_0x482be2(0x10a)][_0x387335[_0x482be2(0x10a)][_0x482be2(0x109)]-0x1]:null:_0x386dbd,_0x21edf8=(_0x23ff1d=_0x387335[_0x482be2(0x10a)][_0x17e202+0x1])==null?_0x387335['closed']?_0x387335[_0x482be2(0x10a)][0x0]:null:_0x23ff1d,_0x2e3e3d=_0xaf85b5&&_0x21edf8?l({'x':_0x21edf8['x']-_0xaf85b5['x'],'y':_0x21edf8['y']-_0xaf85b5['y']}):_0x21edf8?l({'x':_0x21edf8['x']-_0x434cf5['x'],'y':_0x21edf8['y']-_0x434cf5['y']}):_0xaf85b5?l({'x':_0x434cf5['x']-_0xaf85b5['x'],'y':_0x434cf5['y']-_0xaf85b5['y']}):{'x':0x1,'y':0x0},_0x5f118e=_0xaf85b5&&_0x21edf8?Math['max'](0x32,c(_0xaf85b5,_0x21edf8)/0x4):0x32;return{'in':{'x':_0x434cf5['x']-_0x2e3e3d['x']*_0x5f118e,'y':_0x434cf5['y']-_0x2e3e3d['y']*_0x5f118e},'out':{'x':_0x434cf5['x']+_0x2e3e3d['x']*_0x5f118e,'y':_0x434cf5['y']+_0x2e3e3d['y']*_0x5f118e}};}function b(_0x43673d,_0x1beaeb){const _0x3f8908=_0x30af30;let _0x1638b0=_0x43673d[_0x1beaeb],_0x3dfaff=_0x1beaeb==='in'?_0x3f8908(0x114):'in',_0x5eb37e=_0x43673d[_0x3dfaff];if(_0x1638b0){if(_0x43673d[_0x3f8908(0xbf)]===_0x3f8908(0x112)){_0x43673d[_0x3dfaff]=u(_0x43673d,_0x1638b0);return;}_0x43673d[_0x3f8908(0xbf)]===_0x3f8908(0xeb)&&(_0x43673d[_0x3dfaff]=u(_0x43673d,_0x1638b0,_0x5eb37e?c(_0x43673d,_0x5eb37e):c(_0x43673d,_0x1638b0)));}}function x(_0xf2778a,_0x220e37){const _0x9d014b=_0x30af30;let _0x1895aa=o(_0xf2778a);return!_0x220e37||_0x1895aa[_0x9d014b(0xe1)]||_0x1895aa[_0x9d014b(0x10a)]['length']===0x0||_0x1895aa[_0x9d014b(0x10a)]['push']({'id':_0x9d014b(0xf2),'x':_0x220e37['x'],'y':_0x220e37['y'],'pointType':_0x9d014b(0x122)}),_0x1895aa;}function re(_0x892b57,_0x1e5549={}){const _0x2a3320=_0x30af30;var _0x1d9114,_0x3afa40;let _0x2f96e8=Math[_0x2a3320(0xdd)](0x0,(_0x1d9114=_0x1e5549['tolerance'])==null?Math['max'](0x4,_0x892b57[_0x2a3320(0xea)]*0.35):_0x1d9114),_0x5c3b69=(_0x3afa40=_0x1e5549['createId'])==null?_0x548f7c=>_0x2a3320(0x119)+_0x548f7c:_0x3afa40,_0xe03d55=_(_0x892b57[_0x2a3320(0x116)],_0x2f96e8),_0x4428e7=_0xe03d55[_0x2a3320(0x100)]((_0x12f63e,_0x3ebddd)=>({'id':_0x5c3b69(_0x3ebddd),'x':_0x12f63e['x'],'y':_0x12f63e['y'],'pointType':'free'}));for(let _0x3cb257=0x0;_0x3cb257<_0x4428e7[_0x2a3320(0x109)]-0x1;_0x3cb257++)_0x4428e7[_0x3cb257][_0x2a3320(0x114)]=ne(_0xe03d55,_0x3cb257),_0x4428e7[_0x3cb257+0x1]['in']=v(_0xe03d55,_0x3cb257+0x1);return{'kind':_0x2a3320(0xd8),'closed':!0x1,'anchors':_0x4428e7};}function ie(_0xce3982,_0x1ab536,_0x49694a){const _0x43c7ed=_0x30af30;let _0x1b13e5=null,_0x5d6b85=[_0x43c7ed(0xfc),'in',_0x43c7ed(0x114)];return _0xce3982[_0x43c7ed(0x10a)][_0x43c7ed(0x124)]((_0x625e30,_0x511c99)=>{_0x5d6b85['forEach'](_0x2438ee=>{if(!p(_0xce3982,_0x511c99,_0x2438ee))return;let _0x215816=ee(_0x625e30,_0x2438ee);if(!_0x215816)return;let _0x19ad17=c(_0x1ab536,_0x215816);_0x19ad17>_0x49694a||_0x1b13e5&&_0x19ad17>=_0x1b13e5['distance']||(_0x1b13e5={'handle':{'kind':_0x2438ee,'anchorId':_0x625e30['id']},'point':i(_0x215816),'distance':_0x19ad17});});}),_0x1b13e5;}function S(_0x5863cb,_0x19dd00,_0x158b46){const _0x10bc23=_0x30af30;let _0x80edc8=null,_0x2cbcbe=_0x5863cb['closed']?_0x5863cb['anchors'][_0x10bc23(0x109)]:Math['max'](0x0,_0x5863cb['anchors']['length']-0x1);for(let _0xcb4694=0x0;_0xcb4694<_0x2cbcbe;_0xcb4694++){let _0x565b35=f(_0x5863cb,_0xcb4694);if(!_0x565b35)continue;let _0xa6c397=m(_0x565b35,0x0);for(let _0xf67ecc=0x1;_0xf67ecc<=0x20;_0xf67ecc++){let _0x4a4850=m(_0x565b35,_0xf67ecc/0x20),_0x302e22=g(_0x19dd00,_0xa6c397,_0x4a4850),_0x16e757=(_0xf67ecc-0x1+_0x302e22['ratio'])/0x20;(!_0x80edc8||_0x302e22[_0x10bc23(0xc5)]<_0x80edc8[_0x10bc23(0xc5)])&&(_0x80edc8={'segmentIndex':_0xcb4694,'t':_0x16e757,'point':_0x302e22['point'],'distance':_0x302e22[_0x10bc23(0xc5)]}),_0xa6c397=_0x4a4850;}}return _0x80edc8&&_0x80edc8[_0x10bc23(0xc5)]<=_0x158b46?_0x80edc8:null;}function _0x5cce(_0x3f8556,_0x2f8e10){_0x3f8556=_0x3f8556-0xae;const _0x26c7e3=_0x26c7();let _0x5cce71=_0x26c7e3[_0x3f8556];return _0x5cce71;}function C(_0x3c369b,_0x25050c,_0x1e460e){const _0x51014e=_0x30af30;let _0x2ee9b5=o(_0x3c369b),_0x11e76a=d(_0x2ee9b5,_0x25050c[_0x51014e(0xd5)]),_0x2ee308=f(_0x2ee9b5,_0x25050c[_0x51014e(0xd5)]);if(!_0x11e76a||!_0x2ee308)return _0x2ee9b5;let _0x35a967=h(_0x2ee308,Math[_0x51014e(0xdd)](0x0,Math[_0x51014e(0xbe)](0x1,_0x25050c['t']))),_0x8a3e06={'id':_0x1e460e(),'x':_0x35a967[_0x51014e(0xe5)][0x3]['x'],'y':_0x35a967['left'][0x3]['y'],'in':i(_0x35a967[_0x51014e(0xe5)][0x2]),'out':i(_0x35a967['right'][0x1]),'pointType':'free'};return _0x2ee9b5[_0x51014e(0x10a)][_0x11e76a['startIndex']]['out']=i(_0x35a967[_0x51014e(0xe5)][0x1]),_0x2ee9b5[_0x51014e(0x10a)][_0x11e76a[_0x51014e(0x108)]]['in']=i(_0x35a967['right'][0x2]),_0x2ee9b5[_0x51014e(0x10a)][_0x51014e(0xc4)](_0x11e76a[_0x51014e(0xce)]+0x1,0x0,_0x8a3e06),_0x2ee9b5;}function w(_0x3f736c,_0x776d48){const _0xc5b81f=_0x30af30;let _0x4b3717=o(_0x3f736c);return _0x4b3717['anchors']=_0x4b3717[_0xc5b81f(0x10a)][_0xc5b81f(0xc8)](_0x16d38a=>_0x16d38a['id']!==_0x776d48),_0x4b3717[_0xc5b81f(0xe1)]&&_0x4b3717[_0xc5b81f(0x10a)][_0xc5b81f(0x109)]<0x3&&(_0x4b3717[_0xc5b81f(0xe1)]=!0x1),_0x4b3717;}function T(_0x3d9430,_0x1d4d52,_0x3ea0e1){const _0x597b9e=_0x30af30;let _0xc11b95=o(_0x3d9430),_0xed0288=_0xc11b95[_0x597b9e(0x10a)][_0x597b9e(0xc7)](_0x378e99=>_0x378e99['id']===_0x1d4d52),_0x314a06=_0xc11b95[_0x597b9e(0x10a)][_0xed0288];if(!_0x314a06)return _0xc11b95;if(_0x314a06[_0x597b9e(0xbf)]=_0x3ea0e1,_0x3ea0e1===_0x597b9e(0x122))return delete _0x314a06['in'],delete _0x314a06[_0x597b9e(0x114)],_0xc11b95;let _0x27b1e5=y(_0xc11b95,_0xed0288);if(_0x314a06['in']=_0x314a06['in']?i(_0x314a06['in']):_0x27b1e5['in'],_0x314a06['out']=_0x314a06['out']?i(_0x314a06[_0x597b9e(0x114)]):_0x27b1e5[_0x597b9e(0x114)],_0x3ea0e1===_0x597b9e(0x112)){let _0x28de2d=Math[_0x597b9e(0xdd)](c(_0x314a06,_0x314a06['in']),c(_0x314a06,_0x314a06[_0x597b9e(0x114)]),0x32),_0x476be0=l({'x':_0x314a06[_0x597b9e(0x114)]['x']-_0x314a06['x'],'y':_0x314a06[_0x597b9e(0x114)]['y']-_0x314a06['y']});_0x314a06[_0x597b9e(0x114)]={'x':_0x314a06['x']+_0x476be0['x']*_0x28de2d,'y':_0x314a06['y']+_0x476be0['y']*_0x28de2d},_0x314a06['in']={'x':_0x314a06['x']-_0x476be0['x']*_0x28de2d,'y':_0x314a06['y']-_0x476be0['y']*_0x28de2d};}else _0x3ea0e1===_0x597b9e(0xeb)&&b(_0x314a06,_0x597b9e(0x114));return _0xc11b95;}function E(_0x54816e,_0x333e46){const _0x1da103=_0x30af30;var _0x3c4e3e;let _0x27007a=_0x54816e[_0x1da103(0x10a)][_0x1da103(0xef)](_0x3710f8=>_0x3710f8['id']===_0x333e46),_0x51def8=(_0x3c4e3e=_0x27007a==null?void 0x0:_0x27007a['pointType'])==null?'corner':_0x3c4e3e;return T(_0x54816e,_0x333e46,_0x51def8===_0x1da103(0x122)?'smooth':_0x51def8===_0x1da103(0xeb)?_0x1da103(0x112):_0x51def8===_0x1da103(0x112)?_0x1da103(0xd0):_0x1da103(0x122));}function ae(_0x3399e7,_0x13cc92,_0xd32cae){const _0x2fc8fc=_0x30af30;let _0x450da=o(_0x3399e7),_0x3340a1=_0x450da[_0x2fc8fc(0x10a)][_0x2fc8fc(0xef)](_0x2dffdf=>_0x2dffdf['id']===_0x13cc92[_0x2fc8fc(0xb0)]);if(!_0x3340a1)return _0x450da;if(_0x13cc92[_0x2fc8fc(0xd2)]===_0x2fc8fc(0xfc)){let _0x87a14={'x':_0xd32cae['x']-_0x3340a1['x'],'y':_0xd32cae['y']-_0x3340a1['y']};return _0x3340a1['x']=_0xd32cae['x'],_0x3340a1['y']=_0xd32cae['y'],_0x3340a1['in']&&(_0x3340a1['in']={'x':_0x3340a1['in']['x']+_0x87a14['x'],'y':_0x3340a1['in']['y']+_0x87a14['y']}),_0x3340a1['out']&&(_0x3340a1[_0x2fc8fc(0x114)]={'x':_0x3340a1[_0x2fc8fc(0x114)]['x']+_0x87a14['x'],'y':_0x3340a1[_0x2fc8fc(0x114)]['y']+_0x87a14['y']}),_0x450da;}return _0x3340a1[_0x13cc92[_0x2fc8fc(0xd2)]]=i(_0xd32cae),_0x3340a1['pointType']===_0x2fc8fc(0x122)&&(_0x3340a1[_0x2fc8fc(0xbf)]=_0x2fc8fc(0xd0)),b(_0x3340a1,_0x13cc92['kind']),_0x450da;}const D=1e-9;function O(_0x109295){const _0x1c0a3c=_0x30af30;let _0x463326=Math[_0x1c0a3c(0x10d)](_0x109295*0x2710)/0x2710;return Object['is'](_0x463326,-0x0)?'0':String(_0x463326);}function k(_0x38d48c){return O(_0x38d48c['x'])+'\x20'+O(_0x38d48c['y']);}function A(_0x45fbaf,_0x3951ed){return{'x':_0x45fbaf['x']-_0x3951ed['x'],'y':_0x45fbaf['y']-_0x3951ed['y']};}function j(_0x5e9a88,_0x5ac9c7,_0xa0d96e,_0x2149c4,_0x42b32e){let _0x448817=0x1-_0x42b32e;return{'x':_0x448817*_0x448817*_0x448817*_0x5e9a88['x']+0x3*_0x448817*_0x448817*_0x42b32e*_0x5ac9c7['x']+0x3*_0x448817*_0x42b32e*_0x42b32e*_0xa0d96e['x']+_0x42b32e*_0x42b32e*_0x42b32e*_0x2149c4['x'],'y':_0x448817*_0x448817*_0x448817*_0x5e9a88['y']+0x3*_0x448817*_0x448817*_0x42b32e*_0x5ac9c7['y']+0x3*_0x448817*_0x42b32e*_0x42b32e*_0xa0d96e['y']+_0x42b32e*_0x42b32e*_0x42b32e*_0x2149c4['y']};}function M(_0x27e8b9,_0x250b1c,_0x10dbf8,_0x3083b0){const _0x15064e=_0x30af30;let _0x18cd9b=-_0x27e8b9+0x3*_0x250b1c-0x3*_0x10dbf8+_0x3083b0,_0x269e77=0x3*_0x27e8b9-0x6*_0x250b1c+0x3*_0x10dbf8,_0x2e1579=-0x3*_0x27e8b9+0x3*_0x250b1c,_0x2c90eb=[];if(Math['abs'](_0x18cd9b)<D){if(Math['abs'](_0x269e77)<D)return _0x2c90eb;let _0x17d5b4=-_0x2e1579/(0x2*_0x269e77);return _0x17d5b4>0x0&&_0x17d5b4<0x1&&_0x2c90eb['push'](_0x17d5b4),_0x2c90eb;}let _0x23448d=_0x269e77*_0x269e77-0x3*_0x18cd9b*_0x2e1579;if(_0x23448d<0x0)return _0x2c90eb;let _0x5c2631=Math[_0x15064e(0xba)](Math[_0x15064e(0xdd)](0x0,_0x23448d)),_0x57119e=(-_0x269e77+_0x5c2631)/(0x3*_0x18cd9b),_0x1e1664=(-_0x269e77-_0x5c2631)/(0x3*_0x18cd9b);return _0x57119e>0x0&&_0x57119e<0x1&&_0x2c90eb[_0x15064e(0xf5)](_0x57119e),_0x1e1664>0x0&&_0x1e1664<0x1&&Math['abs'](_0x1e1664-_0x57119e)>D&&_0x2c90eb['push'](_0x1e1664),_0x2c90eb;}function N(_0xba0ec2,_0x395626,_0xdf703c,_0x21554f,_0x56405f){const _0x36886a=_0x30af30;_0xba0ec2[_0x36886a(0xf5)](_0x395626,_0x56405f),new Set([...M(_0x395626['x'],_0xdf703c['x'],_0x21554f['x'],_0x56405f['x']),...M(_0x395626['y'],_0xdf703c['y'],_0x21554f['y'],_0x56405f['y'])])['forEach'](_0x4e2cee=>{const _0x1f6407=_0x36886a;_0xba0ec2[_0x1f6407(0xf5)](j(_0x395626,_0xdf703c,_0x21554f,_0x56405f,_0x4e2cee));});}function P(_0x5ae775){const _0x5a762c=_0x30af30;let _0x32c12c=_0x5ae775[_0x5a762c(0x10a)];if(_0x32c12c[_0x5a762c(0x109)]<=0x1)return _0x32c12c;let _0x4a21b3=[];for(let _0x5c759a=0x1;_0x5c759a<_0x32c12c[_0x5a762c(0x109)];_0x5c759a++){var _0x551518,_0x244506;let _0x1298e6=_0x32c12c[_0x5c759a-0x1],_0x53c23b=_0x32c12c[_0x5c759a];N(_0x4a21b3,_0x1298e6,(_0x551518=_0x1298e6[_0x5a762c(0x114)])==null?_0x1298e6:_0x551518,(_0x244506=_0x53c23b['in'])==null?_0x53c23b:_0x244506,_0x53c23b);}if(_0x5ae775['closed']&&_0x32c12c[_0x5a762c(0x109)]>0x1){var _0x17d9b3,_0x56761c;let _0x39d9e9=_0x32c12c[_0x32c12c[_0x5a762c(0x109)]-0x1],_0x234e9c=_0x32c12c[0x0];N(_0x4a21b3,_0x39d9e9,(_0x17d9b3=_0x39d9e9[_0x5a762c(0x114)])==null?_0x39d9e9:_0x17d9b3,(_0x56761c=_0x234e9c['in'])==null?_0x234e9c:_0x56761c,_0x234e9c);}return _0x4a21b3;}function F(_0x530ad4){const _0x29f511=_0x30af30;let _0x5a9cd7=_0x530ad4[_0x29f511(0x116)];if(_0x5a9cd7[_0x29f511(0x109)]<=0x1)return _0x5a9cd7;let _0x26dc32=[];for(let _0x20bb3b=0x0;_0x20bb3b<_0x5a9cd7[_0x29f511(0x109)]-0x1;_0x20bb3b++){var _0x38cd15,_0x4e915b;let _0x27f14b=_0x5a9cd7[_0x20bb3b],_0x501765=_0x5a9cd7[_0x20bb3b+0x1],_0x4363d3=(_0x38cd15=_0x5a9cd7[_0x20bb3b-0x1])==null?_0x27f14b:_0x38cd15,_0x4d6b1e=(_0x4e915b=_0x5a9cd7[_0x20bb3b+0x2])==null?_0x501765:_0x4e915b;N(_0x26dc32,_0x27f14b,{'x':_0x27f14b['x']+(_0x501765['x']-_0x4363d3['x'])/0x6,'y':_0x27f14b['y']+(_0x501765['y']-_0x4363d3['y'])/0x6},{'x':_0x501765['x']-(_0x4d6b1e['x']-_0x27f14b['x'])/0x6,'y':_0x501765['y']-(_0x4d6b1e['y']-_0x27f14b['y'])/0x6},_0x501765);}return _0x26dc32;}function I(_0x5e6857){const _0xf16c9c=_0x30af30;return _0x5e6857[_0xf16c9c(0xd2)]===_0xf16c9c(0xd8)?P(_0x5e6857):F(_0x5e6857);}function L(_0x2cc489){const _0x15d200=_0x30af30;let _0x1920d7=Math[_0x15d200(0x10d)](_0x2cc489*0x2710)/0x2710;return Object['is'](_0x1920d7,-0x0)?0x0:_0x1920d7;}function R(_0x599529){const _0x23d667=_0x30af30;let _0x4e2c90=I(_0x599529);if(_0x4e2c90['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x130d17=Math[_0x23d667(0xbe)](..._0x4e2c90[_0x23d667(0x100)](_0x346dc7=>_0x346dc7['x'])),_0x223eb8=Math['min'](..._0x4e2c90[_0x23d667(0x100)](_0x4f6df2=>_0x4f6df2['y'])),_0x340439=Math['max'](..._0x4e2c90['map'](_0x1b3b69=>_0x1b3b69['x'])),_0x2c0e52=Math[_0x23d667(0xdd)](..._0x4e2c90['map'](_0x219ee9=>_0x219ee9['y']));return{'left':L(_0x130d17),'top':L(_0x223eb8),'width':L(Math[_0x23d667(0xdd)](0x1,_0x340439-_0x130d17)),'height':L(Math[_0x23d667(0xdd)](0x1,_0x2c0e52-_0x223eb8))};}function z(_0x3d2a8d,_0x5e5691){const _0x1b8445=_0x30af30;let _0x153ebf=_0x3d2a8d[_0x1b8445(0x10a)];if(_0x153ebf['length']===0x0)return'';let _0x28fbe8=['M\x20'+k(A(_0x153ebf[0x0],_0x5e5691))];for(let _0x1ee271=0x1;_0x1ee271<_0x153ebf[_0x1b8445(0x109)];_0x1ee271++){var _0x4db8b7,_0x1007a3;let _0x531e10=_0x153ebf[_0x1ee271-0x1],_0x340c1e=_0x153ebf[_0x1ee271],_0x2fe2c1=(_0x4db8b7=_0x531e10[_0x1b8445(0x114)])==null?_0x531e10:_0x4db8b7,_0x464987=(_0x1007a3=_0x340c1e['in'])==null?_0x340c1e:_0x1007a3;_0x28fbe8['push']('C\x20'+k(A(_0x2fe2c1,_0x5e5691))+'\x20'+k(A(_0x464987,_0x5e5691))+'\x20'+k(A(_0x340c1e,_0x5e5691)));}if(_0x3d2a8d['closed']&&_0x153ebf[_0x1b8445(0x109)]>0x1){var _0x1122d0,_0x197c32;let _0x58b3fe=_0x153ebf[_0x153ebf[_0x1b8445(0x109)]-0x1],_0x2eb2fb=_0x153ebf[0x0],_0x23eb24=(_0x1122d0=_0x58b3fe[_0x1b8445(0x114)])==null?_0x58b3fe:_0x1122d0,_0x39a77d=(_0x197c32=_0x2eb2fb['in'])==null?_0x2eb2fb:_0x197c32;_0x28fbe8[_0x1b8445(0xf5)]('C\x20'+k(A(_0x23eb24,_0x5e5691))+'\x20'+k(A(_0x39a77d,_0x5e5691))+'\x20'+k(A(_0x2eb2fb,_0x5e5691))),_0x28fbe8[_0x1b8445(0xf5)]('Z');}return _0x28fbe8[_0x1b8445(0xd7)]('\x20');}function B(_0x28187c,_0x405052){const _0x23bf41=_0x30af30;let _0x52958c=_0x28187c[_0x23bf41(0x116)][_0x23bf41(0x100)](_0x5a47e4=>A(_0x5a47e4,_0x405052));if(_0x52958c['length']===0x0)return'';if(_0x52958c[_0x23bf41(0x109)]===0x1)return'M\x20'+k(_0x52958c[0x0]);let _0x33ec4b=['M\x20'+k(_0x52958c[0x0])];for(let _0x1bbc09=0x0;_0x1bbc09<_0x52958c[_0x23bf41(0x109)]-0x1;_0x1bbc09++){var _0x255405,_0x487b4e;let _0x2f49ec=_0x52958c[_0x1bbc09],_0x369c49=_0x52958c[_0x1bbc09+0x1],_0x4b3234=(_0x255405=_0x52958c[_0x1bbc09-0x1])==null?_0x2f49ec:_0x255405,_0x1085f9=(_0x487b4e=_0x52958c[_0x1bbc09+0x2])==null?_0x369c49:_0x487b4e,_0x1ef4bd={'x':_0x2f49ec['x']+(_0x369c49['x']-_0x4b3234['x'])/0x6,'y':_0x2f49ec['y']+(_0x369c49['y']-_0x4b3234['y'])/0x6},_0x2a9eb0={'x':_0x369c49['x']-(_0x1085f9['x']-_0x2f49ec['x'])/0x6,'y':_0x369c49['y']-(_0x1085f9['y']-_0x2f49ec['y'])/0x6};_0x33ec4b['push']('C\x20'+k(_0x1ef4bd)+'\x20'+k(_0x2a9eb0)+'\x20'+k(_0x369c49));}return _0x33ec4b[_0x23bf41(0xd7)]('\x20');}function V(_0x435e33,_0x503b6d){const _0x6ee77d=_0x30af30;return _0x435e33[_0x6ee77d(0xd2)]===_0x6ee77d(0xd8)?z(_0x435e33,_0x503b6d):B(_0x435e33,_0x503b6d);}function H(_0x47ce1b,_0x36e973){const _0x8b49e9=_0x30af30;return _0x36e973!=null&&_0x36e973[_0x8b49e9(0x115)]?_0x36e973[_0x8b49e9(0x115)]:_0x47ce1b[_0x8b49e9(0xd2)]==='pen'?'#f54a45':_0x47ce1b[_0x8b49e9(0x115)];}function U(_0x32d003,_0x381143){const _0x1dab71=_0x30af30;return(_0x381143==null?void 0x0:_0x381143[_0x1dab71(0xea)])===void 0x0?_0x32d003[_0x1dab71(0xd2)]===_0x1dab71(0xd8)?0x2:_0x32d003[_0x1dab71(0xea)]:_0x381143[_0x1dab71(0xea)];}function W(_0x4a04ab,_0x5ef138){const _0x2d6c0c=_0x30af30;return(_0x5ef138==null?void 0x0:_0x5ef138['opacity'])===void 0x0?_0x4a04ab[_0x2d6c0c(0xd2)]==='pen'?void 0x0:_0x4a04ab[_0x2d6c0c(0x110)]:_0x5ef138[_0x2d6c0c(0x110)];}function oe(_0x3fff4a,_0x565146){const _0x50d4fd=_0x30af30;let _0x345587=R(_0x3fff4a),_0x36ff37=V(_0x3fff4a,{'x':_0x345587[_0x50d4fd(0xe5)],'y':_0x345587[_0x50d4fd(0xe9)]}),_0x46fe7e=_0x3fff4a[_0x50d4fd(0xd2)]==='pen'&&_0x3fff4a[_0x50d4fd(0xe1)],_0x1dc8a4=_0x565146==null?void 0x0:_0x565146[_0x50d4fd(0xb8)];return{'shapeType':e[_0x50d4fd(0xaf)][_0x50d4fd(0x10c)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x345587[_0x50d4fd(0xea)],'h':_0x345587[_0x50d4fd(0xcc)],'fill':_0x46fe7e?_0x50d4fd(0xae):_0x50d4fd(0xd3),'stroke':!0x0,'data':_0x36ff37,'dataArray':K(_0x3fff4a,{'x':_0x345587[_0x50d4fd(0xe5)],'y':_0x345587[_0x50d4fd(0xe9)]})}]},'fill':_0x46fe7e&&_0x1dc8a4?{'color':_0x1dc8a4,'fillType':e[_0x50d4fd(0x104)][_0x50d4fd(0xf3)]}:{'fillType':e[_0x50d4fd(0x104)]['NoFill']},'stroke':{'color':H(_0x3fff4a,_0x565146),'width':U(_0x3fff4a,_0x565146),'opacity':W(_0x3fff4a,_0x565146),'lineStrokeType':e[_0x50d4fd(0x11f)][_0x50d4fd(0xd4)],'capType':e[_0x50d4fd(0xc1)][_0x50d4fd(0xec)],'lineJoinType':e['ShapeLineJoinEnum'][_0x50d4fd(0xec)]}};}function G(_0x40241f,_0x3e0740){return{'x':_0x40241f['x']-_0x3e0740['x'],'y':_0x40241f['y']-_0x3e0740['y']};}function K(_0x69af48,_0x196830){const _0x17a958=_0x30af30;if(_0x69af48[_0x17a958(0xd2)]===_0x17a958(0xd8)){let _0x3e7cd6=_0x69af48[_0x17a958(0x10a)];if(_0x3e7cd6['length']===0x0)return[];let _0x1ad086=G(_0x3e7cd6[0x0],_0x196830),_0x282269=[{'command':'M','points':[_0x1ad086['x'],_0x1ad086['y']]}];for(let _0x427644=0x1;_0x427644<_0x3e7cd6[_0x17a958(0x109)];_0x427644++){var _0x1fcfce,_0x301d8f;let _0x5d3865=_0x3e7cd6[_0x427644-0x1],_0x3ad068=_0x3e7cd6[_0x427644],_0x2182b5=G((_0x1fcfce=_0x5d3865[_0x17a958(0x114)])==null?_0x5d3865:_0x1fcfce,_0x196830),_0x48b3ef=G((_0x301d8f=_0x3ad068['in'])==null?_0x3ad068:_0x301d8f,_0x196830),_0x14712e=G(_0x3ad068,_0x196830);_0x282269[_0x17a958(0xf5)]({'command':'C','points':[_0x2182b5['x'],_0x2182b5['y'],_0x48b3ef['x'],_0x48b3ef['y'],_0x14712e['x'],_0x14712e['y']]});}if(_0x69af48[_0x17a958(0xe1)]&&_0x3e7cd6[_0x17a958(0x109)]>0x1){var _0x944814,_0x289b26;let _0x957bcb=_0x3e7cd6[_0x3e7cd6[_0x17a958(0x109)]-0x1],_0xae8307=_0x3e7cd6[0x0],_0x5a2702=G((_0x944814=_0x957bcb[_0x17a958(0x114)])==null?_0x957bcb:_0x944814,_0x196830),_0x2fe8c9=G((_0x289b26=_0xae8307['in'])==null?_0xae8307:_0x289b26,_0x196830),_0x17184b=G(_0xae8307,_0x196830);_0x282269['push']({'command':'C','points':[_0x5a2702['x'],_0x5a2702['y'],_0x2fe8c9['x'],_0x2fe8c9['y'],_0x17184b['x'],_0x17184b['y']]}),_0x282269[_0x17a958(0xf5)]({'command':'z','points':[]});}return _0x282269;}let _0x307d6c=_0x69af48[_0x17a958(0x116)]['map'](_0x40fe3a=>G(_0x40fe3a,_0x196830));if(_0x307d6c[_0x17a958(0x109)]===0x0)return[];let _0xdcfb3e=[{'command':'M','points':[_0x307d6c[0x0]['x'],_0x307d6c[0x0]['y']]}];for(let _0x326ff1=0x0;_0x326ff1<_0x307d6c['length']-0x1;_0x326ff1++){var _0x2b9b41,_0x2db467;let _0x2c0027=_0x307d6c[_0x326ff1],_0x440842=_0x307d6c[_0x326ff1+0x1],_0x341411=(_0x2b9b41=_0x307d6c[_0x326ff1-0x1])==null?_0x2c0027:_0x2b9b41,_0x300b56=(_0x2db467=_0x307d6c[_0x326ff1+0x2])==null?_0x440842:_0x2db467,_0x40acfa={'x':_0x2c0027['x']+(_0x440842['x']-_0x341411['x'])/0x6,'y':_0x2c0027['y']+(_0x440842['y']-_0x341411['y'])/0x6},_0x122cdc={'x':_0x440842['x']-(_0x300b56['x']-_0x2c0027['x'])/0x6,'y':_0x440842['y']-(_0x300b56['y']-_0x2c0027['y'])/0x6};_0xdcfb3e['push']({'command':'C','points':[_0x40acfa['x'],_0x40acfa['y'],_0x122cdc['x'],_0x122cdc['y'],_0x440842['x'],_0x440842['y']]});}return _0xdcfb3e;}function q(_0x3fc525){const _0x41ac02=_0x30af30;var _0xcc9c19;let {model:_0x502304,sourceModel:_0x2e3df8=_0x502304,style:_0xbca427}=_0x3fc525,_0x573b81=(_0xcc9c19=_0x3fc525[_0x41ac02(0xf6)])==null?_0x502304[_0x41ac02(0xd2)]:_0xcc9c19,_0x4783a1=R(_0x502304),_0x1b9648=_0x502304[_0x41ac02(0xd2)]===_0x41ac02(0xd8)&&_0x573b81!=='pen'?_0x502304:void 0x0;return{'transform':{..._0x4783a1,'rotation':0x0},'shapeData':oe(_0x502304,_0xbca427),'ink':{'version':0x1,'tool':_0x573b81,'sourceModel':_0x2e3df8,..._0x1b9648?{'editModel':_0x1b9648}:{},'normalizedBounds':_0x4783a1}};}var se=_0x30af30(0xbb),ce='1.0.0-alpha.5';function J(_0x2e37ba){'@babel/helpers - typeof';const _0x4c5188=_0x30af30;return J=typeof Symbol==_0x4c5188(0xb7)&&typeof Symbol[_0x4c5188(0xcf)]==_0x4c5188(0xdb)?function(_0x2064a7){return typeof _0x2064a7;}:function(_0x320ea0){const _0x2854d6=_0x4c5188;return _0x320ea0&&typeof Symbol==_0x2854d6(0xb7)&&_0x320ea0[_0x2854d6(0xc3)]===Symbol&&_0x320ea0!==Symbol[_0x2854d6(0xf7)]?_0x2854d6(0xdb):typeof _0x320ea0;},J(_0x2e37ba);}function le(_0x37ca37,_0xd67947){const _0x400f11=_0x30af30;if(J(_0x37ca37)!=_0x400f11(0xc6)||!_0x37ca37)return _0x37ca37;var _0x459a1c=_0x37ca37[Symbol[_0x400f11(0x10f)]];if(_0x459a1c!==void 0x0){var _0x489db2=_0x459a1c[_0x400f11(0x11e)](_0x37ca37,_0xd67947||_0x400f11(0x10e));if(J(_0x489db2)!='object')return _0x489db2;throw TypeError(_0x400f11(0xe6));}return(_0xd67947===_0x400f11(0xf0)?String:Number)(_0x37ca37);}function ue(_0x11cdda){const _0x134ddf=_0x30af30;var _0x10e4f7=le(_0x11cdda,_0x134ddf(0xf0));return J(_0x10e4f7)==_0x134ddf(0xdb)?_0x10e4f7:_0x10e4f7+'';}function Y(_0x46dc2f,_0x3979ac,_0x454cd9){const _0x4cf8e0=_0x30af30;return(_0x3979ac=ue(_0x3979ac))in _0x46dc2f?Object[_0x4cf8e0(0xf9)](_0x46dc2f,_0x3979ac,{'value':_0x454cd9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46dc2f[_0x3979ac]=_0x454cd9,_0x46dc2f;}const X=(0x0,n[_0x30af30(0xbc)])('ink.host-adapter.service');var de=class{constructor(){Y(this,'_adapters',[]);}[_0x30af30(0x117)](_0x4ec81f){const _0x57d9f6=_0x30af30;return this[_0x57d9f6(0xee)][_0x57d9f6(0xf5)](_0x4ec81f),(0x0,n[_0x57d9f6(0x11c)])(()=>{const _0x27cba7=_0x57d9f6;let _0x2eb754=this[_0x27cba7(0xee)][_0x27cba7(0x102)](_0x4ec81f);_0x2eb754>=0x0&&this[_0x27cba7(0xee)][_0x27cba7(0xc4)](_0x2eb754,0x1);});}[_0x30af30(0xb2)](_0x38048d){const _0x4427b9=_0x30af30;for(let _0x42c7d7 of this[_0x4427b9(0xee)])if(_0x42c7d7[_0x4427b9(0xb2)](_0x38048d))return!0x0;return!0x1;}async[_0x30af30(0x11a)](_0x3e81b1){const _0x3d73bb=_0x30af30;for(let _0xb9b333 of this[_0x3d73bb(0xee)])if(_0xb9b333['createCustomShape']&&await _0xb9b333[_0x3d73bb(0x11a)](_0x3e81b1))return!0x0;return!0x1;}};const fe={'id':_0x30af30(0xf8),'type':n[_0x30af30(0xde)]['OPERATION'],'handler':(_0x37fa07,_0x39124d)=>_0x39124d?_0x37fa07[_0x30af30(0x11b)](X)[_0x30af30(0xb2)](_0x39124d):!0x1},Z={};function Q(_0x426ab,_0x33ad67){return function(_0x2d03ce,_0x494561){_0x33ad67(_0x2d03ce,_0x494561,_0x426ab);};}function pe(_0x5c6307,_0x391d65,_0x1f1d27,_0x1a0d56){const _0x2150e1=_0x30af30;var _0x99354c=arguments[_0x2150e1(0x109)],_0x47090f=_0x99354c<0x3?_0x391d65:_0x1a0d56===null?_0x1a0d56=Object['getOwnPropertyDescriptor'](_0x391d65,_0x1f1d27):_0x1a0d56,_0x486fdd;if(typeof Reflect=='object'&&typeof Reflect[_0x2150e1(0x121)]==_0x2150e1(0xb7))_0x47090f=Reflect[_0x2150e1(0x121)](_0x5c6307,_0x391d65,_0x1f1d27,_0x1a0d56);else{for(var _0x54d5f7=_0x5c6307[_0x2150e1(0x109)]-0x1;_0x54d5f7>=0x0;_0x54d5f7--)(_0x486fdd=_0x5c6307[_0x54d5f7])&&(_0x47090f=(_0x99354c<0x3?_0x486fdd(_0x47090f):_0x99354c>0x3?_0x486fdd(_0x391d65,_0x1f1d27,_0x47090f):_0x486fdd(_0x391d65,_0x1f1d27))||_0x47090f);}return _0x99354c>0x3&&_0x47090f&&Object[_0x2150e1(0xf9)](_0x391d65,_0x1f1d27,_0x47090f),_0x47090f;}let $=class extends n['Plugin']{constructor(_0x3fe5b2=Z,_0x1ee381,_0x5d7c98,_0x5a9f30){const _0x1ebcbe=_0x30af30;super(),this[_0x1ebcbe(0x113)]=_0x3fe5b2,this[_0x1ebcbe(0xed)]=_0x1ee381,this[_0x1ebcbe(0xe2)]=_0x5d7c98,this[_0x1ebcbe(0xd6)]=_0x5a9f30;let {..._0x1483c3}=(0x0,n[_0x1ebcbe(0xe0)])({},Z,this['_config']);this[_0x1ebcbe(0xd6)][_0x1ebcbe(0xb1)]('ink.config',_0x1483c3);}[_0x30af30(0xff)](){const _0x4816a3=_0x30af30;[[X,{'useClass':de}]][_0x4816a3(0x124)](_0x1a5be0=>this[_0x4816a3(0xed)][_0x4816a3(0xd9)](_0x1a5be0)),this[_0x4816a3(0xc0)](this[_0x4816a3(0xe2)][_0x4816a3(0x107)](fe));}};Y($,_0x30af30(0xf1),_0x30af30(0x106)),Y($,'packageName',se),Y($,'version',ce),Y($,_0x30af30(0xcd),n[_0x30af30(0xdc)][_0x30af30(0xdf)]),$=pe([(0x0,n[_0x30af30(0x111)])(t[_0x30af30(0xb5)]),Q(0x1,(0x0,n[_0x30af30(0xfd)])(n[_0x30af30(0xda)])),Q(0x2,n[_0x30af30(0x10b)]),Q(0x3,n[_0x30af30(0xb3)])],$),exports['IInkHostAdapterService']=X,Object[_0x30af30(0xf9)](exports,_0x30af30(0x120),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x30af30(0xe3)]=q,exports['convertBrushModelToPenModel']=re,exports[_0x30af30(0xd1)]=E,exports[_0x30af30(0x123)]=w,exports[_0x30af30(0xb4)]=ie,exports[_0x30af30(0xfe)]=S,exports['getInkModelBounds']=R,exports[_0x30af30(0xcb)]=x,exports[_0x30af30(0xb6)]=C,exports['isInkPenHandleVisible']=p,exports[_0x30af30(0xb9)]=ae,exports[_0x30af30(0x118)]=T;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x257e0d=_0x1688;(function(_0x3fc294,_0x1faa95){const _0x45bc5b=_0x1688,_0x395d08=_0x3fc294();while(!![]){try{const _0x3127f2=parseInt(_0x45bc5b(0xc5))/0x1+parseInt(_0x45bc5b(0xc2))/0x2+-parseInt(_0x45bc5b(0xb4))/0x3*(-parseInt(_0x45bc5b(0xcb))/0x4)+parseInt(_0x45bc5b(0xd0))/0x5+-parseInt(_0x45bc5b(0xc3))/0x6*(-parseInt(_0x45bc5b(0xb9))/0x7)+-parseInt(_0x45bc5b(0xcc))/0x8*(parseInt(_0x45bc5b(0xae))/0x9)+-parseInt(_0x45bc5b(0xbf))/0xa;if(_0x3127f2===_0x1faa95)break;else _0x395d08['push'](_0x395d08['shift']());}catch(_0x2b1853){_0x395d08['push'](_0x395d08['shift']());}}}(_0x38f1,0x25621));import{BoardElementType as _0x3f0688}from'@univerjs-pro/boards';import{FBoard as _0xb2b525}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x37940b}from'@univerjs-pro/ink';import{Tools as _0x205ef1,generateRandomId as _0x209f76}from'@univerjs/core';import{FEnum as _0x37284d}from'@univerjs/core/facade';function _0x1688(_0x5aa9e5,_0x926090){_0x5aa9e5=_0x5aa9e5-0xae;const _0x38f137=_0x38f1();let _0x1688f6=_0x38f137[_0x5aa9e5];return _0x1688f6;}var o=class extends _0xb2b525{[_0x257e0d(0xb1)](_0x4362c0){const _0x5dae82=_0x257e0d;let _0x40ea66=s(_0x4362c0);return _0x40ea66&&this[_0x5dae82(0xbe)](_0x40ea66,{'insertIndex':_0x4362c0[_0x5dae82(0xce)]})?_0x40ea66:null;}[_0x257e0d(0xdf)](){const _0x2b134f=_0x257e0d;return this[_0x2b134f(0xdb)]({'elementType':_0x3f0688['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x2b134f(0xbc)](p);}};function s(_0x420802,_0x3b571f){const _0x4d238b=_0x257e0d;var _0x213d2e,_0x291aa2,_0x5c2827;if(!l(_0x420802['model'])||_0x420802['sourceModel']!==void 0x0&&!l(_0x420802[_0x4d238b(0xd5)])||!u(_0x420802[_0x4d238b(0xcf)]))return null;let _0x379c45=(_0x213d2e=_0x420802['parentId'])==null?_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xc0)]:_0x213d2e,_0x1a3383=_0x205ef1[_0x4d238b(0xbd)](_0x420802['model']),_0x228db3=_0x37940b({'model':_0x1a3383,'style':_0x420802[_0x4d238b(0xcf)],'tool':_0x420802[_0x4d238b(0xc1)],'sourceModel':_0x420802['sourceModel']?_0x205ef1[_0x4d238b(0xbd)](_0x420802[_0x4d238b(0xd5)]):_0x1a3383}),_0x1d481a=d(_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xda)]);return{'id':(_0x291aa2=(_0x5c2827=_0x3b571f==null?void 0x0:_0x3b571f['id'])==null?_0x420802['id']:_0x5c2827)==null?_0x209f76(0x6):_0x291aa2,'type':_0x3f0688[_0x4d238b(0xd1)],'transform':_0x228db3[_0x4d238b(0xcd)],'shapeData':_0x228db3[_0x4d238b(0xd3)],'parentId':_0x379c45==null?void 0x0:_0x379c45,'laneId':_0x420802[_0x4d238b(0xc6)]===void 0x0?_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xc6)]:_0x420802['laneId'],'custom':{..._0x1d481a,'ink':_0x228db3['ink']}};}function c(_0x42c4ed){const _0x53c5d9=_0x257e0d;return Number[_0x53c5d9(0xb8)](_0x42c4ed['x'])&&Number[_0x53c5d9(0xb8)](_0x42c4ed['y']);}function l(_0x258652){const _0x27c9f6=_0x257e0d;if(_0x258652[_0x27c9f6(0xb7)]===_0x27c9f6(0xde)){let _0x3c806f=new Set();return _0x258652[_0x27c9f6(0xc4)]['length']>=(_0x258652[_0x27c9f6(0xd9)]?0x3:0x2)&&_0x258652[_0x27c9f6(0xc4)]['every'](_0x9d44c7=>{const _0x49de48=_0x27c9f6;let _0x4fa536=_0x9d44c7['id'][_0x49de48(0xb6)]()['length']>0x0&&!_0x3c806f[_0x49de48(0xd2)](_0x9d44c7['id'])&&c(_0x9d44c7)&&(!_0x9d44c7['in']||c(_0x9d44c7['in']))&&(!_0x9d44c7[_0x49de48(0xd6)]||c(_0x9d44c7[_0x49de48(0xd6)]));return _0x3c806f['add'](_0x9d44c7['id']),_0x4fa536;});}return _0x258652[_0x27c9f6(0xb0)][_0x27c9f6(0xb3)]>=0x2&&_0x258652['points']['every'](_0x2a51ab=>c(_0x2a51ab)&&Number[_0x27c9f6(0xb8)](_0x2a51ab['t'])&&(_0x2a51ab[_0x27c9f6(0xaf)]===void 0x0||Number['isFinite'](_0x2a51ab[_0x27c9f6(0xaf)])))&&Number[_0x27c9f6(0xb8)](_0x258652[_0x27c9f6(0xdd)])&&_0x258652[_0x27c9f6(0xdd)]>0x0&&Number[_0x27c9f6(0xb8)](_0x258652[_0x27c9f6(0xc7)])&&_0x258652[_0x27c9f6(0xc7)]>=0x0&&_0x258652[_0x27c9f6(0xc7)]<=0x1;}function u(_0x592d93){const _0x4d2610=_0x257e0d;return _0x592d93===void 0x0||(_0x592d93[_0x4d2610(0xdd)]===void 0x0||Number['isFinite'](_0x592d93[_0x4d2610(0xdd)])&&_0x592d93['width']>0x0)&&(_0x592d93[_0x4d2610(0xc7)]===void 0x0||Number[_0x4d2610(0xb8)](_0x592d93[_0x4d2610(0xc7)])&&_0x592d93[_0x4d2610(0xc7)]>=0x0&&_0x592d93['opacity']<=0x1);}function d(_0x1d34de){const _0x19728e=_0x257e0d;return _0x1d34de&&typeof _0x1d34de==_0x19728e(0xc8)&&!Array['isArray'](_0x1d34de)?_0x1d34de:{};}function f(_0x410fea){const _0x367447=_0x257e0d;let _0x17a38f=d(_0x410fea['custom'])[_0x367447(0xca)];if(!_0x17a38f||typeof _0x17a38f!=_0x367447(0xc8)||Array[_0x367447(0xd4)](_0x17a38f))return null;let _0x14fe27=_0x17a38f;return _0x14fe27['version']===0x1&&_0x14fe27[_0x367447(0xd5)]&&typeof _0x14fe27[_0x367447(0xd5)]==_0x367447(0xc8)?_0x14fe27:null;}function p(_0x5c6756){const _0x8eb91a=_0x257e0d;return _0x5c6756['type']===_0x3f0688[_0x8eb91a(0xd1)]&&!!f(_0x5c6756);}_0xb2b525[_0x257e0d(0xbb)](o);function _0x38f1(){const _0x5f0f71=['highlighter','BoardInkTool','closed','custom','findElements','BoardInkPointType','width','pen','getInks','3411hANDko','pressure','points','insertInk','smooth','length','754557ICansQ','BoardInkHandleKind','trim','kind','isFinite','60410IBxIkT','brush','extend','filter','deepClone','addElement','6934760ftxREG','parentId','tool','534734jxzAgI','150daLWBZ','anchors','305294Hftqnf','laneId','opacity','object','anchor','ink','4igXLtC','5216xRHHxo','transform','insertIndex','style','268875iKFkOc','Shape','has','shapeData','isArray','sourceModel','out'];_0x38f1=function(){return _0x5f0f71;};return _0x38f1();}const m={'Pen':_0x257e0d(0xde),'Brush':_0x257e0d(0xba),'Highlighter':_0x257e0d(0xd7)},h={'Corner':'corner','Smooth':_0x257e0d(0xb2),'Symmetric':'symmetric','Free':'free'},g={'Anchor':_0x257e0d(0xc9),'In':'in','Out':'out'};var _=class extends _0x37284d{get[_0x257e0d(0xd8)](){return m;}get[_0x257e0d(0xdc)](){return h;}get[_0x257e0d(0xb5)](){return g;}};_0x37284d[_0x257e0d(0xbb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ const _0x525814=_0x4e45;(function(_0x408dc1,_0x160f1f){const _0x2dcb88=_0x4e45,_0x2e485d=_0x408dc1();while(!![]){try{const _0x49ba32=-parseInt(_0x2dcb88(0xd0))/0x1+-parseInt(_0x2dcb88(0xd2))/0x2+parseInt(_0x2dcb88(0xd8))/0x3+-parseInt(_0x2dcb88(0xaf))/0x4+parseInt(_0x2dcb88(0xb1))/0x5+parseInt(_0x2dcb88(0xce))/0x6*(parseInt(_0x2dcb88(0xd1))/0x7)+-parseInt(_0x2dcb88(0xb7))/0x8*(-parseInt(_0x2dcb88(0xbc))/0x9);if(_0x49ba32===_0x160f1f)break;else _0x2e485d['push'](_0x2e485d['shift']());}catch(_0x39af4f){_0x2e485d['push'](_0x2e485d['shift']());}}}(_0x21eb,0xe60aa));import{BoardElementType as _0x55b8b6}from'@univerjs-pro/boards';import{FBoard as _0x2c50cd}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x353af6}from'@univerjs-pro/ink';import{Tools as _0xd1ba4b,generateRandomId as _0x57464c}from'@univerjs/core';import{FEnum as _0x2652ab}from'@univerjs/core/facade';var o=class extends _0x2c50cd{[_0x525814(0xd5)](_0x4a95f7){const _0x50ea36=_0x525814;let _0x2e1e74=s(_0x4a95f7);return _0x2e1e74&&this['addElement'](_0x2e1e74,{'insertIndex':_0x4a95f7[_0x50ea36(0xab)]})?_0x2e1e74:null;}[_0x525814(0xcd)](){const _0x34ee35=_0x525814;return this['findElements']({'elementType':_0x55b8b6['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x34ee35(0xb0)](p);}};function _0x4e45(_0x43a7cf,_0x4de9ee){_0x43a7cf=_0x43a7cf-0xa7;const _0x21eb0c=_0x21eb();let _0x4e45f8=_0x21eb0c[_0x43a7cf];return _0x4e45f8;}function s(_0x114ec4,_0x53f49a){const _0x32a01b=_0x525814;var _0x456dc3,_0x100fb6,_0x5e5ec7;if(!l(_0x114ec4['model'])||_0x114ec4['sourceModel']!==void 0x0&&!l(_0x114ec4[_0x32a01b(0xad)])||!u(_0x114ec4[_0x32a01b(0xb4)]))return null;let _0x12eb4a=(_0x456dc3=_0x114ec4['parentId'])==null?_0x53f49a==null?void 0x0:_0x53f49a[_0x32a01b(0xbf)]:_0x456dc3,_0x2b177e=_0xd1ba4b['deepClone'](_0x114ec4[_0x32a01b(0xc5)]),_0x616cd1=_0x353af6({'model':_0x2b177e,'style':_0x114ec4[_0x32a01b(0xb4)],'tool':_0x114ec4['tool'],'sourceModel':_0x114ec4[_0x32a01b(0xad)]?_0xd1ba4b['deepClone'](_0x114ec4[_0x32a01b(0xad)]):_0x2b177e}),_0x5b5f0c=d(_0x53f49a==null?void 0x0:_0x53f49a[_0x32a01b(0xcf)]);return{'id':(_0x100fb6=(_0x5e5ec7=_0x53f49a==null?void 0x0:_0x53f49a['id'])==null?_0x114ec4['id']:_0x5e5ec7)==null?_0x57464c(0x6):_0x100fb6,'type':_0x55b8b6[_0x32a01b(0xb2)],'transform':_0x616cd1['transform'],'shapeData':_0x616cd1[_0x32a01b(0xd7)],'parentId':_0x12eb4a==null?void 0x0:_0x12eb4a,'laneId':_0x114ec4[_0x32a01b(0xc6)]===void 0x0?_0x53f49a==null?void 0x0:_0x53f49a['laneId']:_0x114ec4['laneId'],'custom':{..._0x5b5f0c,'ink':_0x616cd1['ink']}};}function c(_0x5cf138){const _0x5758ad=_0x525814;return Number['isFinite'](_0x5cf138['x'])&&Number[_0x5758ad(0xd3)](_0x5cf138['y']);}function l(_0x432d2b){const _0x468c8a=_0x525814;if(_0x432d2b[_0x468c8a(0xc3)]===_0x468c8a(0xb5)){let _0x25d769=new Set();return _0x432d2b['anchors'][_0x468c8a(0xbe)]>=(_0x432d2b[_0x468c8a(0xb8)]?0x3:0x2)&&_0x432d2b[_0x468c8a(0xc8)][_0x468c8a(0xd6)](_0x3d9579=>{const _0x42b8cf=_0x468c8a;let _0xc84869=_0x3d9579['id']['trim']()[_0x42b8cf(0xbe)]>0x0&&!_0x25d769[_0x42b8cf(0xc1)](_0x3d9579['id'])&&c(_0x3d9579)&&(!_0x3d9579['in']||c(_0x3d9579['in']))&&(!_0x3d9579[_0x42b8cf(0xac)]||c(_0x3d9579['out']));return _0x25d769['add'](_0x3d9579['id']),_0xc84869;});}return _0x432d2b[_0x468c8a(0xcc)][_0x468c8a(0xbe)]>=0x2&&_0x432d2b['points'][_0x468c8a(0xd6)](_0x4aa43c=>c(_0x4aa43c)&&Number['isFinite'](_0x4aa43c['t'])&&(_0x4aa43c[_0x468c8a(0xb9)]===void 0x0||Number[_0x468c8a(0xd3)](_0x4aa43c['pressure'])))&&Number['isFinite'](_0x432d2b[_0x468c8a(0xc7)])&&_0x432d2b[_0x468c8a(0xc7)]>0x0&&Number[_0x468c8a(0xd3)](_0x432d2b[_0x468c8a(0xc0)])&&_0x432d2b[_0x468c8a(0xc0)]>=0x0&&_0x432d2b[_0x468c8a(0xc0)]<=0x1;}function u(_0x1d4a75){const _0x4a0734=_0x525814;return _0x1d4a75===void 0x0||(_0x1d4a75['width']===void 0x0||Number['isFinite'](_0x1d4a75[_0x4a0734(0xc7)])&&_0x1d4a75['width']>0x0)&&(_0x1d4a75[_0x4a0734(0xc0)]===void 0x0||Number[_0x4a0734(0xd3)](_0x1d4a75[_0x4a0734(0xc0)])&&_0x1d4a75[_0x4a0734(0xc0)]>=0x0&&_0x1d4a75[_0x4a0734(0xc0)]<=0x1);}function d(_0x4e44be){return _0x4e44be&&typeof _0x4e44be=='object'&&!Array['isArray'](_0x4e44be)?_0x4e44be:{};}function f(_0x242149){const _0x539956=_0x525814;let _0x2bae49=d(_0x242149[_0x539956(0xcf)])[_0x539956(0xbb)];if(!_0x2bae49||typeof _0x2bae49!=_0x539956(0xb3)||Array[_0x539956(0xbd)](_0x2bae49))return null;let _0x11b8b9=_0x2bae49;return _0x11b8b9[_0x539956(0xa7)]===0x1&&_0x11b8b9[_0x539956(0xad)]&&typeof _0x11b8b9[_0x539956(0xad)]=='object'?_0x11b8b9:null;}function p(_0x11552d){const _0x301c34=_0x525814;return _0x11552d[_0x301c34(0xae)]===_0x55b8b6[_0x301c34(0xb2)]&&!!f(_0x11552d);}_0x2c50cd['extend'](o);const m={'Pen':_0x525814(0xb5),'Brush':_0x525814(0xba),'Highlighter':_0x525814(0xb6)},h={'Corner':_0x525814(0xc2),'Smooth':_0x525814(0xc9),'Symmetric':_0x525814(0xcb),'Free':_0x525814(0xc4)},g={'Anchor':_0x525814(0xa8),'In':'in','Out':_0x525814(0xac)};var _=class extends _0x2652ab{get[_0x525814(0xa9)](){return m;}get[_0x525814(0xca)](){return h;}get[_0x525814(0xaa)](){return g;}};function _0x21eb(){const _0x122626=['object','style','pen','highlighter','72OugIvA','closed','pressure','brush','ink','1902213fpqJKx','isArray','length','parentId','opacity','has','corner','kind','free','model','laneId','width','anchors','smooth','BoardInkPointType','symmetric','points','getInks','1266fKemzc','custom','961911jgZdLS','4333rYSQdR','1310118LSdpVm','isFinite','extend','insertInk','every','shapeData','1869561pFPvDD','version','anchor','BoardInkTool','BoardInkHandleKind','insertIndex','out','sourceModel','type','2909508zTnuul','filter','3152940KMdtIA','Shape'];_0x21eb=function(){return _0x122626;};return _0x21eb();}_0x2652ab[_0x525814(0xd4)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x42e332=_0x1ced;(function(_0x3f38e3,_0x58f8f1){const _0x5d7c50=_0x1ced,_0x189e84=_0x3f38e3();while(!![]){try{const _0x5f42dc=parseInt(_0x5d7c50(0x87))/0x1+-parseInt(_0x5d7c50(0x86))/0x2*(-parseInt(_0x5d7c50(0xd2))/0x3)+-parseInt(_0x5d7c50(0x8f))/0x4*(-parseInt(_0x5d7c50(0x9e))/0x5)+-parseInt(_0x5d7c50(0xc4))/0x6*(parseInt(_0x5d7c50(0x88))/0x7)+-parseInt(_0x5d7c50(0xd3))/0x8+-parseInt(_0x5d7c50(0x81))/0x9+parseInt(_0x5d7c50(0xc2))/0xa;if(_0x5f42dc===_0x58f8f1)break;else _0x189e84['push'](_0x189e84['shift']());}catch(_0x297107){_0x189e84['push'](_0x189e84['shift']());}}}(_0x2777,0x568c3));import{ShapeFillEnum as _0x40b030,ShapeLineCapEnum as _0x30b81e,ShapeLineJoinEnum as _0xe471ab,ShapeLineTypeEnum as _0x568653,ShapeTypeEnum as _0x5c7e2e}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3f4697}from'@univerjs-pro/license';import{CommandType as _0x2e7563,DependentOn as _0x95406c,ICommandService as _0x1a1bff,IConfigService as _0x2f7050,Inject as _0x9103c7,Injector as _0x17a253,Plugin as _0x2449e5,UniverInstanceType as _0x5370d0,createIdentifier as _0x5690be,merge as _0x11b2d3,toDisposable as _0x4bf3a7}from'@univerjs/core';const g=0.0001;function _(_0x4161f6){return{'x':_0x4161f6['x'],'y':_0x4161f6['y']};}function v(_0x21882c){const _0x12ed7a=_0x1ced;return{..._0x21882c,'in':_0x21882c['in']?_(_0x21882c['in']):void 0x0,'out':_0x21882c[_0x12ed7a(0xb2)]?_(_0x21882c[_0x12ed7a(0xb2)]):void 0x0};}function y(_0x518e53){const _0x880c8f=_0x1ced;return{'kind':'pen','closed':_0x518e53[_0x880c8f(0xcf)],'anchors':_0x518e53[_0x880c8f(0xba)][_0x880c8f(0xce)](v)};}function b(_0x57a4e7,_0x9e8b21,_0x4c773e){return{'x':_0x57a4e7['x']+(_0x9e8b21['x']-_0x57a4e7['x'])*_0x4c773e,'y':_0x57a4e7['y']+(_0x9e8b21['y']-_0x57a4e7['y'])*_0x4c773e};}function x(_0x356032,_0x3d776f){const _0xdcb542=_0x1ced;return Math[_0xdcb542(0x90)](_0x356032['x']-_0x3d776f['x'],_0x356032['y']-_0x3d776f['y']);}function S(_0x12229c){const _0x4024df=_0x1ced;let _0x4e9a68=Math[_0x4024df(0x90)](_0x12229c['x'],_0x12229c['y']);return _0x4e9a68<g?{'x':0x1,'y':0x0}:{'x':_0x12229c['x']/_0x4e9a68,'y':_0x12229c['y']/_0x4e9a68};}function C(_0x1c1a7f,_0x2fb0f7,_0xbf11ab=x(_0x1c1a7f,_0x2fb0f7)){let _0x42126f=S({'x':_0x1c1a7f['x']-_0x2fb0f7['x'],'y':_0x1c1a7f['y']-_0x2fb0f7['y']});return{'x':_0x1c1a7f['x']+_0x42126f['x']*_0xbf11ab,'y':_0x1c1a7f['y']+_0x42126f['y']*_0xbf11ab};}function w(_0x2af16b,_0x2c8365){const _0x7bf8c=_0x1ced;let {anchors:_0x35a9cd}=_0x2af16b;return _0x35a9cd[_0x7bf8c(0xa4)]<0x2||_0x2c8365<0x0?null:_0x2c8365<_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x2c8365,'endIndex':_0x2c8365+0x1,'start':_0x35a9cd[_0x2c8365],'end':_0x35a9cd[_0x2c8365+0x1]}:_0x2af16b[_0x7bf8c(0xcf)]&&_0x2c8365===_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x35a9cd[_0x7bf8c(0xa4)]-0x1,'endIndex':0x0,'start':_0x35a9cd[_0x35a9cd[_0x7bf8c(0xa4)]-0x1],'end':_0x35a9cd[0x0]}:null;}function T(_0x1acb3a,_0x457712){const _0x3bd77f=_0x1ced;var _0x57761f,_0x2e4ec7;let _0x33a487=w(_0x1acb3a,_0x457712);return _0x33a487?[_0x33a487['start'],(_0x57761f=_0x33a487[_0x3bd77f(0xb0)][_0x3bd77f(0xb2)])==null?_0x33a487['start']:_0x57761f,(_0x2e4ec7=_0x33a487[_0x3bd77f(0x98)]['in'])==null?_0x33a487['end']:_0x2e4ec7,_0x33a487['end']]:null;}function te(_0x33e2cb,_0x2ec6c9){const _0x456d92=_0x1ced;var _0x520bd6;return _0x2ec6c9===_0x456d92(0x8e)?_0x33e2cb:(_0x520bd6=_0x33e2cb[_0x2ec6c9])==null?null:_0x520bd6;}function E(_0x51bd63,_0x40881,_0xaf0059){const _0x18414c=_0x1ced;return _0xaf0059==='anchor'||_0x51bd63[_0x18414c(0xcf)]?!0x0:_0xaf0059==='in'?_0x40881>0x0:_0x40881<_0x51bd63['anchors']['length']-0x1;}function D(_0x4cfb16,_0x338484){let [_0x336e2e,_0xc68eb8,_0x313e70,_0x2f0c4f]=_0x4cfb16,_0x103791=b(_0x336e2e,_0xc68eb8,_0x338484),_0x14a37e=b(_0xc68eb8,_0x313e70,_0x338484),_0x49d1d=b(_0x313e70,_0x2f0c4f,_0x338484);return b(b(_0x103791,_0x14a37e,_0x338484),b(_0x14a37e,_0x49d1d,_0x338484),_0x338484);}function ne(_0x105ff2,_0x4a17c3){let [_0x3d9b2d,_0x1a5c0c,_0x56625,_0x51cc05]=_0x105ff2,_0x4f1316=b(_0x3d9b2d,_0x1a5c0c,_0x4a17c3),_0x5c15bc=b(_0x1a5c0c,_0x56625,_0x4a17c3),_0x5e182d=b(_0x56625,_0x51cc05,_0x4a17c3),_0x5339d7=b(_0x4f1316,_0x5c15bc,_0x4a17c3),_0x9ca61e=b(_0x5c15bc,_0x5e182d,_0x4a17c3),_0x377b1a=b(_0x5339d7,_0x9ca61e,_0x4a17c3);return{'left':[_0x3d9b2d,_0x4f1316,_0x5339d7,_0x377b1a],'right':[_0x377b1a,_0x9ca61e,_0x5e182d,_0x51cc05]};}function O(_0x14b959,_0x43e838,_0x33de5e){const _0x3b5921=_0x1ced;let _0x32a47c=_0x33de5e['x']-_0x43e838['x'],_0x14f6d4=_0x33de5e['y']-_0x43e838['y'],_0x1e7c8e=_0x32a47c*_0x32a47c+_0x14f6d4*_0x14f6d4,_0x44ac47=_0x1e7c8e<=g?0x0:Math[_0x3b5921(0x97)](0x0,Math[_0x3b5921(0xb4)](0x1,((_0x14b959['x']-_0x43e838['x'])*_0x32a47c+(_0x14b959['y']-_0x43e838['y'])*_0x14f6d4)/_0x1e7c8e)),_0x19c706={'x':_0x43e838['x']+_0x32a47c*_0x44ac47,'y':_0x43e838['y']+_0x14f6d4*_0x44ac47};return{'point':_0x19c706,'ratio':_0x44ac47,'distance':x(_0x14b959,_0x19c706)};}function re(_0x5b71bf,_0x3c434e,_0x12f2eb){const _0x117646=_0x1ced;return O(_0x5b71bf,_0x3c434e,_0x12f2eb)[_0x117646(0xbc)]**0x2;}function k(_0x21b199,_0x7b4489){const _0x315c47=_0x1ced;if(_0x21b199['length']<=0x2)return _0x21b199[_0x315c47(0xce)](_);let _0xf884ca=0x0,_0x2debc0=0x0,_0x3b204b=_0x21b199[0x0],_0x58d7c5=_0x21b199[_0x21b199[_0x315c47(0xa4)]-0x1],_0x1d41e4=_0x7b4489*_0x7b4489;for(let _0x5020f0=0x1;_0x5020f0<_0x21b199[_0x315c47(0xa4)]-0x1;_0x5020f0++){let _0x3015ef=re(_0x21b199[_0x5020f0],_0x3b204b,_0x58d7c5);_0x3015ef>_0xf884ca&&(_0xf884ca=_0x3015ef,_0x2debc0=_0x5020f0);}if(_0xf884ca<=_0x1d41e4)return[_(_0x3b204b),_(_0x58d7c5)];let _0x431cb7=k(_0x21b199[_0x315c47(0xb5)](0x0,_0x2debc0+0x1),_0x7b4489),_0xf9b1e1=k(_0x21b199[_0x315c47(0xb5)](_0x2debc0),_0x7b4489);return[..._0x431cb7[_0x315c47(0xb5)](0x0,-0x1),..._0xf9b1e1];}function ie(_0x40bda8,_0xfc6272){var _0x772e3b;let _0x41ed39=_0x40bda8[_0xfc6272],_0x47b1be=_0x40bda8[_0xfc6272+0x1],_0x3d271f=(_0x772e3b=_0x40bda8[_0xfc6272-0x1])==null?_0x41ed39:_0x772e3b;return{'x':_0x41ed39['x']+(_0x47b1be['x']-_0x3d271f['x'])/0x6,'y':_0x41ed39['y']+(_0x47b1be['y']-_0x3d271f['y'])/0x6};}function A(_0x6281e1,_0x12a128){var _0x1c6508;let _0x318159=_0x6281e1[_0x12a128],_0x30fbaf=_0x6281e1[_0x12a128-0x1],_0x27d478=(_0x1c6508=_0x6281e1[_0x12a128+0x1])==null?_0x318159:_0x1c6508;return{'x':_0x318159['x']-(_0x27d478['x']-_0x30fbaf['x'])/0x6,'y':_0x318159['y']-(_0x27d478['y']-_0x30fbaf['y'])/0x6};}function j(_0x5ce29b,_0xbe5225){const _0x558889=_0x1ced;var _0x46dc7e,_0xe86033;let _0x697284=_0x5ce29b[_0x558889(0xba)][_0xbe5225],_0x317408=(_0x46dc7e=_0x5ce29b['anchors'][_0xbe5225-0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][_0x5ce29b['anchors'][_0x558889(0xa4)]-0x1]:null:_0x46dc7e,_0x3f02f9=(_0xe86033=_0x5ce29b[_0x558889(0xba)][_0xbe5225+0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][0x0]:null:_0xe86033,_0x48b183=_0x317408&&_0x3f02f9?S({'x':_0x3f02f9['x']-_0x317408['x'],'y':_0x3f02f9['y']-_0x317408['y']}):_0x3f02f9?S({'x':_0x3f02f9['x']-_0x697284['x'],'y':_0x3f02f9['y']-_0x697284['y']}):_0x317408?S({'x':_0x697284['x']-_0x317408['x'],'y':_0x697284['y']-_0x317408['y']}):{'x':0x1,'y':0x0},_0x172a0f=_0x317408&&_0x3f02f9?Math[_0x558889(0x97)](0x32,x(_0x317408,_0x3f02f9)/0x4):0x32;return{'in':{'x':_0x697284['x']-_0x48b183['x']*_0x172a0f,'y':_0x697284['y']-_0x48b183['y']*_0x172a0f},'out':{'x':_0x697284['x']+_0x48b183['x']*_0x172a0f,'y':_0x697284['y']+_0x48b183['y']*_0x172a0f}};}function M(_0x4e1b38,_0x34cb21){const _0x408a36=_0x1ced;let _0x226bbb=_0x4e1b38[_0x34cb21],_0x283f60=_0x34cb21==='in'?_0x408a36(0xb2):'in',_0x1ff740=_0x4e1b38[_0x283f60];if(_0x226bbb){if(_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0x9c)){_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb);return;}_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0xbd)&&(_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb,_0x1ff740?x(_0x4e1b38,_0x1ff740):x(_0x4e1b38,_0x226bbb)));}}function ae(_0x34655e,_0x40d757){const _0x1a1ee3=_0x1ced;let _0x459359=y(_0x34655e);return!_0x40d757||_0x459359[_0x1a1ee3(0xcf)]||_0x459359[_0x1a1ee3(0xba)]['length']===0x0||_0x459359['anchors'][_0x1a1ee3(0xb9)]({'id':'__ink-preview-anchor__','x':_0x40d757['x'],'y':_0x40d757['y'],'pointType':_0x1a1ee3(0x84)}),_0x459359;}function oe(_0x2814d1,_0x2d384f={}){const _0x2518a3=_0x1ced;var _0x15a93c,_0x3060d1;let _0x34d83d=Math[_0x2518a3(0x97)](0x0,(_0x15a93c=_0x2d384f[_0x2518a3(0xc8)])==null?Math[_0x2518a3(0x97)](0x4,_0x2814d1['width']*0.35):_0x15a93c),_0x1ea899=(_0x3060d1=_0x2d384f[_0x2518a3(0x91)])==null?_0x3193ae=>'ink-centerline-'+_0x3193ae:_0x3060d1,_0x1837b9=k(_0x2814d1[_0x2518a3(0x8c)],_0x34d83d),_0x3c8f17=_0x1837b9[_0x2518a3(0xce)]((_0x2880ea,_0x532513)=>({'id':_0x1ea899(_0x532513),'x':_0x2880ea['x'],'y':_0x2880ea['y'],'pointType':_0x2518a3(0xca)}));for(let _0x51b97f=0x0;_0x51b97f<_0x3c8f17['length']-0x1;_0x51b97f++)_0x3c8f17[_0x51b97f][_0x2518a3(0xb2)]=ie(_0x1837b9,_0x51b97f),_0x3c8f17[_0x51b97f+0x1]['in']=A(_0x1837b9,_0x51b97f+0x1);return{'kind':_0x2518a3(0xa3),'closed':!0x1,'anchors':_0x3c8f17};}function se(_0x2a8a7b,_0x4002cb,_0x3b42c0){const _0x16f8af=_0x1ced;let _0x215cfa=null,_0x1afb9c=['anchor','in',_0x16f8af(0xb2)];return _0x2a8a7b[_0x16f8af(0xba)][_0x16f8af(0x93)]((_0x156be8,_0x4e9e8a)=>{const _0x22f5fc=_0x16f8af;_0x1afb9c[_0x22f5fc(0x93)](_0x55f42f=>{const _0x1473eb=_0x22f5fc;if(!E(_0x2a8a7b,_0x4e9e8a,_0x55f42f))return;let _0x42ad36=te(_0x156be8,_0x55f42f);if(!_0x42ad36)return;let _0xe6e78c=x(_0x4002cb,_0x42ad36);_0xe6e78c>_0x3b42c0||_0x215cfa&&_0xe6e78c>=_0x215cfa[_0x1473eb(0xbc)]||(_0x215cfa={'handle':{'kind':_0x55f42f,'anchorId':_0x156be8['id']},'point':_(_0x42ad36),'distance':_0xe6e78c});});}),_0x215cfa;}function ce(_0x3be065,_0x59c988,_0x558a88){const _0x289744=_0x1ced;let _0x2547b2=null,_0x5cfc46=_0x3be065[_0x289744(0xcf)]?_0x3be065['anchors'][_0x289744(0xa4)]:Math[_0x289744(0x97)](0x0,_0x3be065[_0x289744(0xba)]['length']-0x1);for(let _0x975040=0x0;_0x975040<_0x5cfc46;_0x975040++){let _0x388294=T(_0x3be065,_0x975040);if(!_0x388294)continue;let _0x43ed62=D(_0x388294,0x0);for(let _0x124a9f=0x1;_0x124a9f<=0x20;_0x124a9f++){let _0x15511f=D(_0x388294,_0x124a9f/0x20),_0x57ab7f=O(_0x59c988,_0x43ed62,_0x15511f),_0x574b3b=(_0x124a9f-0x1+_0x57ab7f[_0x289744(0x8b)])/0x20;(!_0x2547b2||_0x57ab7f[_0x289744(0xbc)]<_0x2547b2[_0x289744(0xbc)])&&(_0x2547b2={'segmentIndex':_0x975040,'t':_0x574b3b,'point':_0x57ab7f[_0x289744(0xad)],'distance':_0x57ab7f[_0x289744(0xbc)]}),_0x43ed62=_0x15511f;}}return _0x2547b2&&_0x2547b2['distance']<=_0x558a88?_0x2547b2:null;}function le(_0x5440c2,_0xc748f7,_0x7bb2c1){const _0x262447=_0x1ced;let _0x11bf9b=y(_0x5440c2),_0x4ecbf5=w(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]),_0x52148a=T(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]);if(!_0x4ecbf5||!_0x52148a)return _0x11bf9b;let _0xe1d68f=ne(_0x52148a,Math[_0x262447(0x97)](0x0,Math[_0x262447(0xb4)](0x1,_0xc748f7['t']))),_0x2fa6d4={'id':_0x7bb2c1(),'x':_0xe1d68f[_0x262447(0x96)][0x3]['x'],'y':_0xe1d68f[_0x262447(0x96)][0x3]['y'],'in':_(_0xe1d68f['left'][0x2]),'out':_(_0xe1d68f[_0x262447(0xaf)][0x1]),'pointType':'free'};return _0x11bf9b['anchors'][_0x4ecbf5['startIndex']][_0x262447(0xb2)]=_(_0xe1d68f[_0x262447(0x96)][0x1]),_0x11bf9b[_0x262447(0xba)][_0x4ecbf5[_0x262447(0xab)]]['in']=_(_0xe1d68f[_0x262447(0xaf)][0x2]),_0x11bf9b[_0x262447(0xba)]['splice'](_0x4ecbf5[_0x262447(0x85)]+0x1,0x0,_0x2fa6d4),_0x11bf9b;}function ue(_0x9d179f,_0x392227){const _0x3691b4=_0x1ced;let _0x3f62d5=y(_0x9d179f);return _0x3f62d5[_0x3691b4(0xba)]=_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xbb)](_0xb7b7d0=>_0xb7b7d0['id']!==_0x392227),_0x3f62d5[_0x3691b4(0xcf)]&&_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xa4)]<0x3&&(_0x3f62d5[_0x3691b4(0xcf)]=!0x1),_0x3f62d5;}function N(_0x464440,_0x482438,_0x1d85e7){const _0x4c092a=_0x1ced;let _0x31b66b=y(_0x464440),_0x28e6dd=_0x31b66b[_0x4c092a(0xba)]['findIndex'](_0x449879=>_0x449879['id']===_0x482438),_0x44edd1=_0x31b66b[_0x4c092a(0xba)][_0x28e6dd];if(!_0x44edd1)return _0x31b66b;if(_0x44edd1[_0x4c092a(0xa0)]=_0x1d85e7,_0x1d85e7==='corner')return delete _0x44edd1['in'],delete _0x44edd1[_0x4c092a(0xb2)],_0x31b66b;let _0x75b9f9=j(_0x31b66b,_0x28e6dd);if(_0x44edd1['in']=_0x44edd1['in']?_(_0x44edd1['in']):_0x75b9f9['in'],_0x44edd1['out']=_0x44edd1[_0x4c092a(0xb2)]?_(_0x44edd1[_0x4c092a(0xb2)]):_0x75b9f9['out'],_0x1d85e7===_0x4c092a(0x9c)){let _0x9832cb=Math['max'](x(_0x44edd1,_0x44edd1['in']),x(_0x44edd1,_0x44edd1[_0x4c092a(0xb2)]),0x32),_0x16448b=S({'x':_0x44edd1[_0x4c092a(0xb2)]['x']-_0x44edd1['x'],'y':_0x44edd1['out']['y']-_0x44edd1['y']});_0x44edd1[_0x4c092a(0xb2)]={'x':_0x44edd1['x']+_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']+_0x16448b['y']*_0x9832cb},_0x44edd1['in']={'x':_0x44edd1['x']-_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']-_0x16448b['y']*_0x9832cb};}else _0x1d85e7===_0x4c092a(0xbd)&&M(_0x44edd1,'out');return _0x31b66b;}function P(_0x47a09d,_0x11f87a){const _0x341b03=_0x1ced;var _0x339851;let _0x1b0c07=_0x47a09d[_0x341b03(0xba)][_0x341b03(0xac)](_0x52cf4e=>_0x52cf4e['id']===_0x11f87a),_0x2e9d51=(_0x339851=_0x1b0c07==null?void 0x0:_0x1b0c07[_0x341b03(0xa0)])==null?'corner':_0x339851;return N(_0x47a09d,_0x11f87a,_0x2e9d51===_0x341b03(0x84)?_0x341b03(0xbd):_0x2e9d51===_0x341b03(0xbd)?_0x341b03(0x9c):_0x2e9d51==='symmetric'?'free':_0x341b03(0x84));}function F(_0x33c0a5,_0x412924,_0x2b38ae){const _0x118317=_0x1ced;let _0x1b0a2a=y(_0x33c0a5),_0x5a88f4=_0x1b0a2a[_0x118317(0xba)][_0x118317(0xac)](_0x449592=>_0x449592['id']===_0x412924[_0x118317(0x80)]);if(!_0x5a88f4)return _0x1b0a2a;if(_0x412924['kind']==='anchor'){let _0x13318b={'x':_0x2b38ae['x']-_0x5a88f4['x'],'y':_0x2b38ae['y']-_0x5a88f4['y']};return _0x5a88f4['x']=_0x2b38ae['x'],_0x5a88f4['y']=_0x2b38ae['y'],_0x5a88f4['in']&&(_0x5a88f4['in']={'x':_0x5a88f4['in']['x']+_0x13318b['x'],'y':_0x5a88f4['in']['y']+_0x13318b['y']}),_0x5a88f4[_0x118317(0xb2)]&&(_0x5a88f4[_0x118317(0xb2)]={'x':_0x5a88f4['out']['x']+_0x13318b['x'],'y':_0x5a88f4[_0x118317(0xb2)]['y']+_0x13318b['y']}),_0x1b0a2a;}return _0x5a88f4[_0x412924[_0x118317(0xb6)]]=_(_0x2b38ae),_0x5a88f4['pointType']==='corner'&&(_0x5a88f4[_0x118317(0xa0)]='free'),M(_0x5a88f4,_0x412924['kind']),_0x1b0a2a;}const I=1e-9;function L(_0x1e1e75){const _0x3ec61f=_0x1ced;let _0x31d057=Math[_0x3ec61f(0xcb)](_0x1e1e75*0x2710)/0x2710;return Object['is'](_0x31d057,-0x0)?'0':String(_0x31d057);}function R(_0x3ea43b){return L(_0x3ea43b['x'])+'\x20'+L(_0x3ea43b['y']);}function z(_0x56890a,_0x54bee3){return{'x':_0x56890a['x']-_0x54bee3['x'],'y':_0x56890a['y']-_0x54bee3['y']};}function B(_0x48ac06,_0x4822b1,_0xcdd611,_0x43b70e,_0x196050){let _0x25d080=0x1-_0x196050;return{'x':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['x']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['x']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['x']+_0x196050*_0x196050*_0x196050*_0x43b70e['x'],'y':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['y']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['y']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['y']+_0x196050*_0x196050*_0x196050*_0x43b70e['y']};}function V(_0x4f13f8,_0x15beb2,_0xbba490,_0x50f385){const _0x2014a4=_0x1ced;let _0x4cf8be=-_0x4f13f8+0x3*_0x15beb2-0x3*_0xbba490+_0x50f385,_0x59b2cc=0x3*_0x4f13f8-0x6*_0x15beb2+0x3*_0xbba490,_0x4ed9b4=-0x3*_0x4f13f8+0x3*_0x15beb2,_0x5dbb64=[];if(Math[_0x2014a4(0xc5)](_0x4cf8be)<I){if(Math[_0x2014a4(0xc5)](_0x59b2cc)<I)return _0x5dbb64;let _0x26d757=-_0x4ed9b4/(0x2*_0x59b2cc);return _0x26d757>0x0&&_0x26d757<0x1&&_0x5dbb64[_0x2014a4(0xb9)](_0x26d757),_0x5dbb64;}let _0x32ad76=_0x59b2cc*_0x59b2cc-0x3*_0x4cf8be*_0x4ed9b4;if(_0x32ad76<0x0)return _0x5dbb64;let _0x2766bb=Math['sqrt'](Math['max'](0x0,_0x32ad76)),_0x1a43e6=(-_0x59b2cc+_0x2766bb)/(0x3*_0x4cf8be),_0x139125=(-_0x59b2cc-_0x2766bb)/(0x3*_0x4cf8be);return _0x1a43e6>0x0&&_0x1a43e6<0x1&&_0x5dbb64['push'](_0x1a43e6),_0x139125>0x0&&_0x139125<0x1&&Math[_0x2014a4(0xc5)](_0x139125-_0x1a43e6)>I&&_0x5dbb64[_0x2014a4(0xb9)](_0x139125),_0x5dbb64;}function H(_0x10b4f3,_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a){const _0x2c7645=_0x1ced;_0x10b4f3[_0x2c7645(0xb9)](_0x2d32fa,_0x399f6a),new Set([...V(_0x2d32fa['x'],_0x1af334['x'],_0x28dcbd['x'],_0x399f6a['x']),...V(_0x2d32fa['y'],_0x1af334['y'],_0x28dcbd['y'],_0x399f6a['y'])])[_0x2c7645(0x93)](_0x169838=>{const _0x4655de=_0x2c7645;_0x10b4f3[_0x4655de(0xb9)](B(_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a,_0x169838));});}function U(_0x23e05c){const _0x270118=_0x1ced;let _0x3d2633=_0x23e05c['anchors'];if(_0x3d2633[_0x270118(0xa4)]<=0x1)return _0x3d2633;let _0x772e2e=[];for(let _0x27e527=0x1;_0x27e527<_0x3d2633[_0x270118(0xa4)];_0x27e527++){var _0x49c512,_0x1ebcbe;let _0x38535b=_0x3d2633[_0x27e527-0x1],_0x5217f4=_0x3d2633[_0x27e527];H(_0x772e2e,_0x38535b,(_0x49c512=_0x38535b[_0x270118(0xb2)])==null?_0x38535b:_0x49c512,(_0x1ebcbe=_0x5217f4['in'])==null?_0x5217f4:_0x1ebcbe,_0x5217f4);}if(_0x23e05c['closed']&&_0x3d2633['length']>0x1){var _0x483e6a,_0x370c54;let _0x1faf34=_0x3d2633[_0x3d2633[_0x270118(0xa4)]-0x1],_0x11996f=_0x3d2633[0x0];H(_0x772e2e,_0x1faf34,(_0x483e6a=_0x1faf34['out'])==null?_0x1faf34:_0x483e6a,(_0x370c54=_0x11996f['in'])==null?_0x11996f:_0x370c54,_0x11996f);}return _0x772e2e;}function de(_0x331f22){const _0x4d7116=_0x1ced;let _0x4fcec8=_0x331f22[_0x4d7116(0x8c)];if(_0x4fcec8[_0x4d7116(0xa4)]<=0x1)return _0x4fcec8;let _0xa8fd62=[];for(let _0x56f665=0x0;_0x56f665<_0x4fcec8[_0x4d7116(0xa4)]-0x1;_0x56f665++){var _0x136593,_0x483929;let _0x4cd45a=_0x4fcec8[_0x56f665],_0x123505=_0x4fcec8[_0x56f665+0x1],_0x385e25=(_0x136593=_0x4fcec8[_0x56f665-0x1])==null?_0x4cd45a:_0x136593,_0x55433e=(_0x483929=_0x4fcec8[_0x56f665+0x2])==null?_0x123505:_0x483929;H(_0xa8fd62,_0x4cd45a,{'x':_0x4cd45a['x']+(_0x123505['x']-_0x385e25['x'])/0x6,'y':_0x4cd45a['y']+(_0x123505['y']-_0x385e25['y'])/0x6},{'x':_0x123505['x']-(_0x55433e['x']-_0x4cd45a['x'])/0x6,'y':_0x123505['y']-(_0x55433e['y']-_0x4cd45a['y'])/0x6},_0x123505);}return _0xa8fd62;}function fe(_0x471446){const _0x4f4d52=_0x1ced;return _0x471446[_0x4f4d52(0xb6)]===_0x4f4d52(0xa3)?U(_0x471446):de(_0x471446);}function W(_0x5792e9){const _0x1ac618=_0x1ced;let _0x54ec18=Math[_0x1ac618(0xcb)](_0x5792e9*0x2710)/0x2710;return Object['is'](_0x54ec18,-0x0)?0x0:_0x54ec18;}function G(_0x1e599e){const _0x37d1b0=_0x1ced;let _0x5a42fc=fe(_0x1e599e);if(_0x5a42fc['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b033e=Math['min'](..._0x5a42fc['map'](_0x485f6d=>_0x485f6d['x'])),_0xf0a1d7=Math[_0x37d1b0(0xb4)](..._0x5a42fc[_0x37d1b0(0xce)](_0x26e40c=>_0x26e40c['y'])),_0x22d349=Math[_0x37d1b0(0x97)](..._0x5a42fc['map'](_0xee1676=>_0xee1676['x'])),_0x4867bf=Math[_0x37d1b0(0x97)](..._0x5a42fc[_0x37d1b0(0xce)](_0x2eedb0=>_0x2eedb0['y']));return{'left':W(_0x4b033e),'top':W(_0xf0a1d7),'width':W(Math[_0x37d1b0(0x97)](0x1,_0x22d349-_0x4b033e)),'height':W(Math[_0x37d1b0(0x97)](0x1,_0x4867bf-_0xf0a1d7))};}function pe(_0x1de73a,_0x45385c){const _0x4622b9=_0x1ced;let _0x27081c=_0x1de73a[_0x4622b9(0xba)];if(_0x27081c[_0x4622b9(0xa4)]===0x0)return'';let _0x30180a=['M\x20'+R(z(_0x27081c[0x0],_0x45385c))];for(let _0x66d405=0x1;_0x66d405<_0x27081c['length'];_0x66d405++){var _0x3f9c33,_0x3f83f7;let _0x267910=_0x27081c[_0x66d405-0x1],_0xf6cf96=_0x27081c[_0x66d405],_0x23ed5e=(_0x3f9c33=_0x267910[_0x4622b9(0xb2)])==null?_0x267910:_0x3f9c33,_0x44f074=(_0x3f83f7=_0xf6cf96['in'])==null?_0xf6cf96:_0x3f83f7;_0x30180a['push']('C\x20'+R(z(_0x23ed5e,_0x45385c))+'\x20'+R(z(_0x44f074,_0x45385c))+'\x20'+R(z(_0xf6cf96,_0x45385c)));}if(_0x1de73a[_0x4622b9(0xcf)]&&_0x27081c['length']>0x1){var _0x2e84ae,_0x2ad46c;let _0x5c57ac=_0x27081c[_0x27081c['length']-0x1],_0x3357b9=_0x27081c[0x0],_0x32fd94=(_0x2e84ae=_0x5c57ac[_0x4622b9(0xb2)])==null?_0x5c57ac:_0x2e84ae,_0xeecd64=(_0x2ad46c=_0x3357b9['in'])==null?_0x3357b9:_0x2ad46c;_0x30180a['push']('C\x20'+R(z(_0x32fd94,_0x45385c))+'\x20'+R(z(_0xeecd64,_0x45385c))+'\x20'+R(z(_0x3357b9,_0x45385c))),_0x30180a[_0x4622b9(0xb9)]('Z');}return _0x30180a['join']('\x20');}function me(_0x107b6c,_0x269de9){const _0x383ffa=_0x1ced;let _0x51982a=_0x107b6c['points'][_0x383ffa(0xce)](_0xf3d220=>z(_0xf3d220,_0x269de9));if(_0x51982a['length']===0x0)return'';if(_0x51982a['length']===0x1)return'M\x20'+R(_0x51982a[0x0]);let _0x5d03c8=['M\x20'+R(_0x51982a[0x0])];for(let _0x4f459b=0x0;_0x4f459b<_0x51982a[_0x383ffa(0xa4)]-0x1;_0x4f459b++){var _0x3c997a,_0x2d8de1;let _0x428bda=_0x51982a[_0x4f459b],_0xa7f938=_0x51982a[_0x4f459b+0x1],_0x24d403=(_0x3c997a=_0x51982a[_0x4f459b-0x1])==null?_0x428bda:_0x3c997a,_0x31c2bd=(_0x2d8de1=_0x51982a[_0x4f459b+0x2])==null?_0xa7f938:_0x2d8de1,_0x5a52dc={'x':_0x428bda['x']+(_0xa7f938['x']-_0x24d403['x'])/0x6,'y':_0x428bda['y']+(_0xa7f938['y']-_0x24d403['y'])/0x6},_0x4f3231={'x':_0xa7f938['x']-(_0x31c2bd['x']-_0x428bda['x'])/0x6,'y':_0xa7f938['y']-(_0x31c2bd['y']-_0x428bda['y'])/0x6};_0x5d03c8[_0x383ffa(0xb9)]('C\x20'+R(_0x5a52dc)+'\x20'+R(_0x4f3231)+'\x20'+R(_0xa7f938));}return _0x5d03c8['join']('\x20');}function he(_0x3408ac,_0xbbc8c1){const _0x254423=_0x1ced;return _0x3408ac[_0x254423(0xb6)]===_0x254423(0xa3)?pe(_0x3408ac,_0xbbc8c1):me(_0x3408ac,_0xbbc8c1);}function ge(_0x10a586,_0x310e98){const _0x2bb3b1=_0x1ced;return _0x310e98!=null&&_0x310e98['color']?_0x310e98['color']:_0x10a586[_0x2bb3b1(0xb6)]===_0x2bb3b1(0xa3)?_0x2bb3b1(0xc3):_0x10a586['color'];}function _e(_0x4d0a9b,_0x103690){const _0x4ceb3d=_0x1ced;return(_0x103690==null?void 0x0:_0x103690[_0x4ceb3d(0xcd)])===void 0x0?_0x4d0a9b[_0x4ceb3d(0xb6)]===_0x4ceb3d(0xa3)?0x2:_0x4d0a9b[_0x4ceb3d(0xcd)]:_0x103690[_0x4ceb3d(0xcd)];}function ve(_0x119005,_0xa33e6){const _0x3a9293=_0x1ced;return(_0xa33e6==null?void 0x0:_0xa33e6[_0x3a9293(0xb7)])===void 0x0?_0x119005['kind']===_0x3a9293(0xa3)?void 0x0:_0x119005[_0x3a9293(0xb7)]:_0xa33e6[_0x3a9293(0xb7)];}function _0x1ced(_0x27b8a0,_0x1db9ea){_0x27b8a0=_0x27b8a0-0x7e;const _0x2777cd=_0x2777();let _0x1ced70=_0x2777cd[_0x27b8a0];return _0x1ced70;}function ye(_0x397c77,_0x4f0103){const _0x2d5305=_0x1ced;let _0x58cd5c=G(_0x397c77),_0x334e32=he(_0x397c77,{'x':_0x58cd5c['left'],'y':_0x58cd5c[_0x2d5305(0xa6)]}),_0x1868c0=_0x397c77[_0x2d5305(0xb6)]==='pen'&&_0x397c77[_0x2d5305(0xcf)],_0x20e82b=_0x4f0103==null?void 0x0:_0x4f0103[_0x2d5305(0xa8)];return{'shapeType':_0x5c7e2e['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x58cd5c[_0x2d5305(0xcd)],'h':_0x58cd5c['height'],'fill':_0x1868c0?'norm':_0x2d5305(0xbe),'stroke':!0x0,'data':_0x334e32,'dataArray':be(_0x397c77,{'x':_0x58cd5c[_0x2d5305(0x96)],'y':_0x58cd5c[_0x2d5305(0xa6)]})}]},'fill':_0x1868c0&&_0x20e82b?{'color':_0x20e82b,'fillType':_0x40b030[_0x2d5305(0xc1)]}:{'fillType':_0x40b030['NoFill']},'stroke':{'color':ge(_0x397c77,_0x4f0103),'width':_e(_0x397c77,_0x4f0103),'opacity':ve(_0x397c77,_0x4f0103),'lineStrokeType':_0x568653['SolidLine'],'capType':_0x30b81e[_0x2d5305(0x83)],'lineJoinType':_0xe471ab[_0x2d5305(0x83)]}};}function K(_0x233197,_0x3ab8ef){return{'x':_0x233197['x']-_0x3ab8ef['x'],'y':_0x233197['y']-_0x3ab8ef['y']};}function be(_0xfaace9,_0x24ba2f){const _0x41fb44=_0x1ced;if(_0xfaace9['kind']===_0x41fb44(0xa3)){let _0x46f291=_0xfaace9[_0x41fb44(0xba)];if(_0x46f291[_0x41fb44(0xa4)]===0x0)return[];let _0x9d20e0=K(_0x46f291[0x0],_0x24ba2f),_0x1d6722=[{'command':'M','points':[_0x9d20e0['x'],_0x9d20e0['y']]}];for(let _0x255512=0x1;_0x255512<_0x46f291[_0x41fb44(0xa4)];_0x255512++){var _0x14b3ba,_0x58ad77;let _0x47449b=_0x46f291[_0x255512-0x1],_0x35f8c3=_0x46f291[_0x255512],_0x56c7a4=K((_0x14b3ba=_0x47449b[_0x41fb44(0xb2)])==null?_0x47449b:_0x14b3ba,_0x24ba2f),_0x5a6f5b=K((_0x58ad77=_0x35f8c3['in'])==null?_0x35f8c3:_0x58ad77,_0x24ba2f),_0x1fdcf5=K(_0x35f8c3,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x56c7a4['x'],_0x56c7a4['y'],_0x5a6f5b['x'],_0x5a6f5b['y'],_0x1fdcf5['x'],_0x1fdcf5['y']]});}if(_0xfaace9['closed']&&_0x46f291['length']>0x1){var _0x9dd2de,_0x81ac45;let _0x4fc166=_0x46f291[_0x46f291['length']-0x1],_0x3895c1=_0x46f291[0x0],_0x5f245e=K((_0x9dd2de=_0x4fc166[_0x41fb44(0xb2)])==null?_0x4fc166:_0x9dd2de,_0x24ba2f),_0x2a3f18=K((_0x81ac45=_0x3895c1['in'])==null?_0x3895c1:_0x81ac45,_0x24ba2f),_0x43a1c4=K(_0x3895c1,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x5f245e['x'],_0x5f245e['y'],_0x2a3f18['x'],_0x2a3f18['y'],_0x43a1c4['x'],_0x43a1c4['y']]}),_0x1d6722['push']({'command':'z','points':[]});}return _0x1d6722;}let _0x489f9c=_0xfaace9[_0x41fb44(0x8c)][_0x41fb44(0xce)](_0x41695b=>K(_0x41695b,_0x24ba2f));if(_0x489f9c[_0x41fb44(0xa4)]===0x0)return[];let _0x209968=[{'command':'M','points':[_0x489f9c[0x0]['x'],_0x489f9c[0x0]['y']]}];for(let _0x4dcb3f=0x0;_0x4dcb3f<_0x489f9c[_0x41fb44(0xa4)]-0x1;_0x4dcb3f++){var _0x2896d1,_0x361277;let _0x303ecf=_0x489f9c[_0x4dcb3f],_0x14ce62=_0x489f9c[_0x4dcb3f+0x1],_0x46023f=(_0x2896d1=_0x489f9c[_0x4dcb3f-0x1])==null?_0x303ecf:_0x2896d1,_0x220656=(_0x361277=_0x489f9c[_0x4dcb3f+0x2])==null?_0x14ce62:_0x361277,_0x5a3508={'x':_0x303ecf['x']+(_0x14ce62['x']-_0x46023f['x'])/0x6,'y':_0x303ecf['y']+(_0x14ce62['y']-_0x46023f['y'])/0x6},_0xf0ae73={'x':_0x14ce62['x']-(_0x220656['x']-_0x303ecf['x'])/0x6,'y':_0x14ce62['y']-(_0x220656['y']-_0x303ecf['y'])/0x6};_0x209968[_0x41fb44(0xb9)]({'command':'C','points':[_0x5a3508['x'],_0x5a3508['y'],_0xf0ae73['x'],_0xf0ae73['y'],_0x14ce62['x'],_0x14ce62['y']]});}return _0x209968;}function xe(_0x5ced35){const _0x2426a1=_0x1ced;var _0x524876;let {model:_0x855814,sourceModel:_0x4749c0=_0x855814,style:_0x27b2fc}=_0x5ced35,_0x39e8b7=(_0x524876=_0x5ced35[_0x2426a1(0x9f)])==null?_0x855814[_0x2426a1(0xb6)]:_0x524876,_0x84bffb=G(_0x855814),_0x1e77fb=_0x855814[_0x2426a1(0xb6)]===_0x2426a1(0xa3)&&_0x39e8b7!==_0x2426a1(0xa3)?_0x855814:void 0x0;return{'transform':{..._0x84bffb,'rotation':0x0},'shapeData':ye(_0x855814,_0x27b2fc),'ink':{'version':0x1,'tool':_0x39e8b7,'sourceModel':_0x4749c0,..._0x1e77fb?{'editModel':_0x1e77fb}:{},'normalizedBounds':_0x84bffb}};}var Se=_0x42e332(0x82),Ce=_0x42e332(0xaa);function q(_0x28796d){'@babel/helpers - typeof';const _0x1f2c62=_0x42e332;return q=typeof Symbol=='function'&&typeof Symbol[_0x1f2c62(0x7f)]=='symbol'?function(_0x52ce1e){return typeof _0x52ce1e;}:function(_0x216535){const _0x2f168e=_0x1f2c62;return _0x216535&&typeof Symbol==_0x2f168e(0x89)&&_0x216535['constructor']===Symbol&&_0x216535!==Symbol[_0x2f168e(0x7e)]?_0x2f168e(0x9a):typeof _0x216535;},q(_0x28796d);}function we(_0xb004fc,_0x3eef88){const _0x5a6bc1=_0x42e332;if(q(_0xb004fc)!='object'||!_0xb004fc)return _0xb004fc;var _0x36b9e6=_0xb004fc[Symbol[_0x5a6bc1(0x9b)]];if(_0x36b9e6!==void 0x0){var _0x31d247=_0x36b9e6[_0x5a6bc1(0xbf)](_0xb004fc,_0x3eef88||_0x5a6bc1(0xae));if(q(_0x31d247)!=_0x5a6bc1(0xd4))return _0x31d247;throw TypeError(_0x5a6bc1(0xd1));}return(_0x3eef88===_0x5a6bc1(0xc7)?String:Number)(_0xb004fc);}function J(_0x8e1c40){const _0x30d9e3=_0x42e332;var _0x1ac07a=we(_0x8e1c40,_0x30d9e3(0xc7));return q(_0x1ac07a)==_0x30d9e3(0x9a)?_0x1ac07a:_0x1ac07a+'';}function Y(_0xc367ae,_0x2ca74d,_0x35f757){const _0x302533=_0x42e332;return(_0x2ca74d=J(_0x2ca74d))in _0xc367ae?Object[_0x302533(0xd6)](_0xc367ae,_0x2ca74d,{'value':_0x35f757,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc367ae[_0x2ca74d]=_0x35f757,_0xc367ae;}const X=_0x5690be(_0x42e332(0x94));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x42e332(0xc0)](_0xba8cd2){const _0x4526b1=_0x42e332;return this[_0x4526b1(0xa9)][_0x4526b1(0xb9)](_0xba8cd2),_0x4bf3a7(()=>{const _0x277cd0=_0x4526b1;let _0x5984ef=this[_0x277cd0(0xa9)][_0x277cd0(0xc6)](_0xba8cd2);_0x5984ef>=0x0&&this[_0x277cd0(0xa9)][_0x277cd0(0xc9)](_0x5984ef,0x1);});}[_0x42e332(0x95)](_0x7aed7f){const _0x23f1fa=_0x42e332;for(let _0x4b7762 of this[_0x23f1fa(0xa9)])if(_0x4b7762['beginInkMode'](_0x7aed7f))return!0x0;return!0x1;}async['createCustomShape'](_0x3243ec){const _0x1c076d=_0x42e332;for(let _0x4dde3a of this['_adapters'])if(_0x4dde3a['createCustomShape']&&await _0x4dde3a[_0x1c076d(0x8d)](_0x3243ec))return!0x0;return!0x1;}};const Ee={'id':_0x42e332(0xa1),'type':_0x2e7563['OPERATION'],'handler':(_0x2e11ec,_0x535a1b)=>_0x535a1b?_0x2e11ec[_0x42e332(0xa7)](X)['beginInkMode'](_0x535a1b):!0x1},Z={};function Q(_0x3b51e6,_0x3f9417){return function(_0x47485a,_0x1e63cd){_0x3f9417(_0x47485a,_0x1e63cd,_0x3b51e6);};}function De(_0x71168f,_0x113e07,_0x3328e1,_0x351eae){const _0x5d9d54=_0x42e332;var _0x5cc20d=arguments[_0x5d9d54(0xa4)],_0x12dfa3=_0x5cc20d<0x3?_0x113e07:_0x351eae===null?_0x351eae=Object['getOwnPropertyDescriptor'](_0x113e07,_0x3328e1):_0x351eae,_0x131fb8;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x12dfa3=Reflect['decorate'](_0x71168f,_0x113e07,_0x3328e1,_0x351eae);else{for(var _0x14568c=_0x71168f[_0x5d9d54(0xa4)]-0x1;_0x14568c>=0x0;_0x14568c--)(_0x131fb8=_0x71168f[_0x14568c])&&(_0x12dfa3=(_0x5cc20d<0x3?_0x131fb8(_0x12dfa3):_0x5cc20d>0x3?_0x131fb8(_0x113e07,_0x3328e1,_0x12dfa3):_0x131fb8(_0x113e07,_0x3328e1))||_0x12dfa3);}return _0x5cc20d>0x3&&_0x12dfa3&&Object[_0x5d9d54(0xd6)](_0x113e07,_0x3328e1,_0x12dfa3),_0x12dfa3;}let $=class extends _0x2449e5{constructor(_0x5e4e5b=Z,_0x58dfe1,_0x292053,_0x233c6f){const _0x4488c7=_0x42e332;super(),this[_0x4488c7(0x8a)]=_0x5e4e5b,this[_0x4488c7(0xcc)]=_0x58dfe1,this[_0x4488c7(0x9d)]=_0x292053,this[_0x4488c7(0xb8)]=_0x233c6f;let {..._0x880bb5}=_0x11b2d3({},Z,this[_0x4488c7(0x8a)]);this[_0x4488c7(0xb8)][_0x4488c7(0x99)]('ink.config',_0x880bb5);}[_0x42e332(0xa5)](){const _0x324fa2=_0x42e332;[[X,{'useClass':Te}]][_0x324fa2(0x93)](_0x4aa28b=>this['_injector']['add'](_0x4aa28b)),this['disposeWithMe'](this['_commandService']['registerCommand'](Ee));}};function _0x2777(){const _0x51428f=['get','fillColor','_adapters','1.0.0-alpha.3','endIndex','find','point','default','right','start','UNIVER_UNKNOWN','out','segmentIndex','min','slice','kind','opacity','_configService','push','anchors','filter','distance','smooth','none','call','registerAdapter','SolidFill','8858160rRYSbJ','#f54a45','6726GelLiu','abs','indexOf','string','tolerance','splice','free','round','_injector','width','map','closed','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','294lhEVpr','5515120Wczaes','object','version','defineProperty','prototype','iterator','anchorId','2485926oJqkTs','@univerjs-pro/ink','Round','corner','startIndex','7038CIDGAb','386063RWKxik','2177dGkTIG','function','_config','ratio','points','createCustomShape','anchor','69324FRdEaM','hypot','createId','pluginName','forEach','ink.host-adapter.service','beginInkMode','left','max','end','setConfig','symbol','toPrimitive','symmetric','_commandService','15zJioUu','tool','pointType','ink.operation.start','UNIVER_INK_PLUGIN','pen','length','onStarting','top'];_0x2777=function(){return _0x51428f;};return _0x2777();}Y($,_0x42e332(0x92),_0x42e332(0xa2)),Y($,'packageName',Se),Y($,_0x42e332(0xd5),Ce),Y($,_0x42e332(0xd0),_0x5370d0[_0x42e332(0xb1)]),$=De([_0x95406c(_0x3f4697),Q(0x1,_0x9103c7(_0x17a253)),Q(0x2,_0x1a1bff),Q(0x3,_0x2f7050)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
1
+ const _0x4602de=_0x1211;(function(_0x3f01a0,_0x472b08){const _0x2445e8=_0x1211,_0x4562da=_0x3f01a0();while(!![]){try{const _0x4575c4=-parseInt(_0x2445e8(0x1ba))/0x1*(-parseInt(_0x2445e8(0x206))/0x2)+parseInt(_0x2445e8(0x1d7))/0x3+parseInt(_0x2445e8(0x217))/0x4*(-parseInt(_0x2445e8(0x210))/0x5)+parseInt(_0x2445e8(0x20e))/0x6+parseInt(_0x2445e8(0x1c9))/0x7+-parseInt(_0x2445e8(0x213))/0x8*(parseInt(_0x2445e8(0x1cc))/0x9)+-parseInt(_0x2445e8(0x1cf))/0xa;if(_0x4575c4===_0x472b08)break;else _0x4562da['push'](_0x4562da['shift']());}catch(_0x188e55){_0x4562da['push'](_0x4562da['shift']());}}}(_0x4eef,0x9928f));import{ShapeFillEnum as _0x5d1bec,ShapeLineCapEnum as _0x65358a,ShapeLineJoinEnum as _0x3afe2a,ShapeLineTypeEnum as _0x2298b9,ShapeTypeEnum as _0x46339a}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x1c9fb0}from'@univerjs-pro/license';import{CommandType as _0x3e6dda,DependentOn as _0x21f9f4,ICommandService as _0x44cbdf,IConfigService as _0x74df07,Inject as _0x83b12a,Injector as _0x4b9262,Plugin as _0x1732ef,UniverInstanceType as _0x2f3686,createIdentifier as _0x113c29,merge as _0x2ec470,toDisposable as _0x373e13}from'@univerjs/core';const g=0.0001;function _(_0x1b06f7){return{'x':_0x1b06f7['x'],'y':_0x1b06f7['y']};}function v(_0x5d28a2){const _0x330627=_0x1211;return{..._0x5d28a2,'in':_0x5d28a2['in']?_(_0x5d28a2['in']):void 0x0,'out':_0x5d28a2[_0x330627(0x1c1)]?_(_0x5d28a2[_0x330627(0x1c1)]):void 0x0};}function y(_0xc1f21){const _0x5050ee=_0x1211;return{'kind':_0x5050ee(0x218),'closed':_0xc1f21['closed'],'anchors':_0xc1f21['anchors'][_0x5050ee(0x1c4)](v)};}function b(_0xa62ba8,_0x5ab06c,_0x227782){return{'x':_0xa62ba8['x']+(_0x5ab06c['x']-_0xa62ba8['x'])*_0x227782,'y':_0xa62ba8['y']+(_0x5ab06c['y']-_0xa62ba8['y'])*_0x227782};}function x(_0x5f0414,_0x1f50bd){return Math['hypot'](_0x5f0414['x']-_0x1f50bd['x'],_0x5f0414['y']-_0x1f50bd['y']);}function S(_0x213cda){const _0x144da7=_0x1211;let _0x3dcf61=Math[_0x144da7(0x20c)](_0x213cda['x'],_0x213cda['y']);return _0x3dcf61<g?{'x':0x1,'y':0x0}:{'x':_0x213cda['x']/_0x3dcf61,'y':_0x213cda['y']/_0x3dcf61};}function C(_0x3e5920,_0xf56ed9,_0x121ffe=x(_0x3e5920,_0xf56ed9)){let _0x1d0337=S({'x':_0x3e5920['x']-_0xf56ed9['x'],'y':_0x3e5920['y']-_0xf56ed9['y']});return{'x':_0x3e5920['x']+_0x1d0337['x']*_0x121ffe,'y':_0x3e5920['y']+_0x1d0337['y']*_0x121ffe};}function w(_0x56412d,_0x86d914){const _0x3b549c=_0x1211;let {anchors:_0x412221}=_0x56412d;return _0x412221[_0x3b549c(0x1e2)]<0x2||_0x86d914<0x0?null:_0x86d914<_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x86d914,'endIndex':_0x86d914+0x1,'start':_0x412221[_0x86d914],'end':_0x412221[_0x86d914+0x1]}:_0x56412d[_0x3b549c(0x1e0)]&&_0x86d914===_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x412221[_0x3b549c(0x1e2)]-0x1,'endIndex':0x0,'start':_0x412221[_0x412221['length']-0x1],'end':_0x412221[0x0]}:null;}function T(_0x24a0f9,_0x56c8e2){const _0x2e2c3d=_0x1211;var _0x409124,_0x13be96;let _0x1ccda2=w(_0x24a0f9,_0x56c8e2);return _0x1ccda2?[_0x1ccda2['start'],(_0x409124=_0x1ccda2[_0x2e2c3d(0x1fe)][_0x2e2c3d(0x1c1)])==null?_0x1ccda2[_0x2e2c3d(0x1fe)]:_0x409124,(_0x13be96=_0x1ccda2[_0x2e2c3d(0x1bc)]['in'])==null?_0x1ccda2[_0x2e2c3d(0x1bc)]:_0x13be96,_0x1ccda2['end']]:null;}function te(_0x1293cf,_0x5e9d9f){const _0xf2c0b1=_0x1211;var _0x54ac7d;return _0x5e9d9f===_0xf2c0b1(0x1d2)?_0x1293cf:(_0x54ac7d=_0x1293cf[_0x5e9d9f])==null?null:_0x54ac7d;}function E(_0x39b74e,_0x1e87f3,_0x5f40eb){const _0x21bc2d=_0x1211;return _0x5f40eb===_0x21bc2d(0x1d2)||_0x39b74e[_0x21bc2d(0x1e0)]?!0x0:_0x5f40eb==='in'?_0x1e87f3>0x0:_0x1e87f3<_0x39b74e[_0x21bc2d(0x208)]['length']-0x1;}function D(_0xc4a363,_0x24e3ca){let [_0xd205a5,_0x521857,_0x53649d,_0x1cd8b1]=_0xc4a363,_0x5349ff=b(_0xd205a5,_0x521857,_0x24e3ca),_0x19de0c=b(_0x521857,_0x53649d,_0x24e3ca),_0x48bd15=b(_0x53649d,_0x1cd8b1,_0x24e3ca);return b(b(_0x5349ff,_0x19de0c,_0x24e3ca),b(_0x19de0c,_0x48bd15,_0x24e3ca),_0x24e3ca);}function ne(_0x269afc,_0x34cc31){let [_0x125bb2,_0x2dfe57,_0x2d7d5b,_0x1ef5e0]=_0x269afc,_0x1b0e66=b(_0x125bb2,_0x2dfe57,_0x34cc31),_0x3277a6=b(_0x2dfe57,_0x2d7d5b,_0x34cc31),_0xd4755=b(_0x2d7d5b,_0x1ef5e0,_0x34cc31),_0x29c81b=b(_0x1b0e66,_0x3277a6,_0x34cc31),_0x1cab8d=b(_0x3277a6,_0xd4755,_0x34cc31),_0x2fec16=b(_0x29c81b,_0x1cab8d,_0x34cc31);return{'left':[_0x125bb2,_0x1b0e66,_0x29c81b,_0x2fec16],'right':[_0x2fec16,_0x1cab8d,_0xd4755,_0x1ef5e0]};}function O(_0x4409ec,_0x537a41,_0x15fc26){const _0x24a829=_0x1211;let _0x53ae1d=_0x15fc26['x']-_0x537a41['x'],_0x372f42=_0x15fc26['y']-_0x537a41['y'],_0x72ede=_0x53ae1d*_0x53ae1d+_0x372f42*_0x372f42,_0x4e3ceb=_0x72ede<=g?0x0:Math[_0x24a829(0x1f0)](0x0,Math[_0x24a829(0x20d)](0x1,((_0x4409ec['x']-_0x537a41['x'])*_0x53ae1d+(_0x4409ec['y']-_0x537a41['y'])*_0x372f42)/_0x72ede)),_0x46eee2={'x':_0x537a41['x']+_0x53ae1d*_0x4e3ceb,'y':_0x537a41['y']+_0x372f42*_0x4e3ceb};return{'point':_0x46eee2,'ratio':_0x4e3ceb,'distance':x(_0x4409ec,_0x46eee2)};}function re(_0x36345e,_0x5ad9c1,_0x3319f7){const _0xf80425=_0x1211;return O(_0x36345e,_0x5ad9c1,_0x3319f7)[_0xf80425(0x204)]**0x2;}function k(_0x4497aa,_0x570873){const _0x598e87=_0x1211;if(_0x4497aa[_0x598e87(0x1e2)]<=0x2)return _0x4497aa[_0x598e87(0x1c4)](_);let _0x2d0246=0x0,_0x433d3b=0x0,_0x4c83cd=_0x4497aa[0x0],_0x3748c6=_0x4497aa[_0x4497aa[_0x598e87(0x1e2)]-0x1],_0x54fc76=_0x570873*_0x570873;for(let _0x542c3e=0x1;_0x542c3e<_0x4497aa[_0x598e87(0x1e2)]-0x1;_0x542c3e++){let _0x5178d3=re(_0x4497aa[_0x542c3e],_0x4c83cd,_0x3748c6);_0x5178d3>_0x2d0246&&(_0x2d0246=_0x5178d3,_0x433d3b=_0x542c3e);}if(_0x2d0246<=_0x54fc76)return[_(_0x4c83cd),_(_0x3748c6)];let _0xb53819=k(_0x4497aa[_0x598e87(0x1f7)](0x0,_0x433d3b+0x1),_0x570873),_0x14145d=k(_0x4497aa[_0x598e87(0x1f7)](_0x433d3b),_0x570873);return[..._0xb53819[_0x598e87(0x1f7)](0x0,-0x1),..._0x14145d];}function ie(_0x56ba6f,_0x3d7b96){var _0x1690d5;let _0x1a53e6=_0x56ba6f[_0x3d7b96],_0x3b16b8=_0x56ba6f[_0x3d7b96+0x1],_0x12b1d4=(_0x1690d5=_0x56ba6f[_0x3d7b96-0x1])==null?_0x1a53e6:_0x1690d5;return{'x':_0x1a53e6['x']+(_0x3b16b8['x']-_0x12b1d4['x'])/0x6,'y':_0x1a53e6['y']+(_0x3b16b8['y']-_0x12b1d4['y'])/0x6};}function A(_0x4c3d51,_0x3ae085){var _0x469239;let _0xcdb1e2=_0x4c3d51[_0x3ae085],_0x30ba79=_0x4c3d51[_0x3ae085-0x1],_0x2d4a8e=(_0x469239=_0x4c3d51[_0x3ae085+0x1])==null?_0xcdb1e2:_0x469239;return{'x':_0xcdb1e2['x']-(_0x2d4a8e['x']-_0x30ba79['x'])/0x6,'y':_0xcdb1e2['y']-(_0x2d4a8e['y']-_0x30ba79['y'])/0x6};}function j(_0x5f26c4,_0x3c9cfa){const _0x30fc1a=_0x1211;var _0x2cc730,_0x695b47;let _0x30963b=_0x5f26c4[_0x30fc1a(0x208)][_0x3c9cfa],_0xf75166=(_0x2cc730=_0x5f26c4['anchors'][_0x3c9cfa-0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4['anchors'][_0x5f26c4[_0x30fc1a(0x208)][_0x30fc1a(0x1e2)]-0x1]:null:_0x2cc730,_0x3d2d63=(_0x695b47=_0x5f26c4['anchors'][_0x3c9cfa+0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4[_0x30fc1a(0x208)][0x0]:null:_0x695b47,_0x5ac22f=_0xf75166&&_0x3d2d63?S({'x':_0x3d2d63['x']-_0xf75166['x'],'y':_0x3d2d63['y']-_0xf75166['y']}):_0x3d2d63?S({'x':_0x3d2d63['x']-_0x30963b['x'],'y':_0x3d2d63['y']-_0x30963b['y']}):_0xf75166?S({'x':_0x30963b['x']-_0xf75166['x'],'y':_0x30963b['y']-_0xf75166['y']}):{'x':0x1,'y':0x0},_0xea00=_0xf75166&&_0x3d2d63?Math[_0x30fc1a(0x1f0)](0x32,x(_0xf75166,_0x3d2d63)/0x4):0x32;return{'in':{'x':_0x30963b['x']-_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']-_0x5ac22f['y']*_0xea00},'out':{'x':_0x30963b['x']+_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']+_0x5ac22f['y']*_0xea00}};}function M(_0x4e7123,_0x19710d){const _0x192e47=_0x1211;let _0x47150d=_0x4e7123[_0x19710d],_0x17b5c5=_0x19710d==='in'?_0x192e47(0x1c1):'in',_0xb4b260=_0x4e7123[_0x17b5c5];if(_0x47150d){if(_0x4e7123[_0x192e47(0x1ca)]==='symmetric'){_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d);return;}_0x4e7123[_0x192e47(0x1ca)]===_0x192e47(0x1fb)&&(_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d,_0xb4b260?x(_0x4e7123,_0xb4b260):x(_0x4e7123,_0x47150d)));}}function ae(_0x399272,_0x300b72){const _0x295697=_0x1211;let _0x3e60aa=y(_0x399272);return!_0x300b72||_0x3e60aa[_0x295697(0x1e0)]||_0x3e60aa['anchors'][_0x295697(0x1e2)]===0x0||_0x3e60aa[_0x295697(0x208)][_0x295697(0x20b)]({'id':'__ink-preview-anchor__','x':_0x300b72['x'],'y':_0x300b72['y'],'pointType':_0x295697(0x1d0)}),_0x3e60aa;}function oe(_0x886504,_0x164bba={}){const _0x46c4df=_0x1211;var _0x5c3f72,_0x42c755;let _0xd45713=Math['max'](0x0,(_0x5c3f72=_0x164bba[_0x46c4df(0x1c2)])==null?Math[_0x46c4df(0x1f0)](0x4,_0x886504[_0x46c4df(0x1e6)]*0.35):_0x5c3f72),_0x3a33da=(_0x42c755=_0x164bba[_0x46c4df(0x211)])==null?_0x14739f=>'ink-centerline-'+_0x14739f:_0x42c755,_0x5b45f7=k(_0x886504[_0x46c4df(0x1c5)],_0xd45713),_0x2f31ea=_0x5b45f7['map']((_0x361d49,_0x301cc1)=>({'id':_0x3a33da(_0x301cc1),'x':_0x361d49['x'],'y':_0x361d49['y'],'pointType':'free'}));for(let _0x2bdfe1=0x0;_0x2bdfe1<_0x2f31ea[_0x46c4df(0x1e2)]-0x1;_0x2bdfe1++)_0x2f31ea[_0x2bdfe1][_0x46c4df(0x1c1)]=ie(_0x5b45f7,_0x2bdfe1),_0x2f31ea[_0x2bdfe1+0x1]['in']=A(_0x5b45f7,_0x2bdfe1+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2f31ea};}function se(_0x257145,_0x2d28a6,_0x540b63){const _0x74eb19=_0x1211;let _0x5a4344=null,_0x333014=['anchor','in',_0x74eb19(0x1c1)];return _0x257145[_0x74eb19(0x208)]['forEach']((_0x159be7,_0x43724b)=>{const _0x39482a=_0x74eb19;_0x333014[_0x39482a(0x1eb)](_0x4b7b87=>{const _0x28aadd=_0x39482a;if(!E(_0x257145,_0x43724b,_0x4b7b87))return;let _0x11daf2=te(_0x159be7,_0x4b7b87);if(!_0x11daf2)return;let _0xb0b9f4=x(_0x2d28a6,_0x11daf2);_0xb0b9f4>_0x540b63||_0x5a4344&&_0xb0b9f4>=_0x5a4344[_0x28aadd(0x204)]||(_0x5a4344={'handle':{'kind':_0x4b7b87,'anchorId':_0x159be7['id']},'point':_(_0x11daf2),'distance':_0xb0b9f4});});}),_0x5a4344;}function ce(_0x2f4669,_0x4a01bb,_0xf8532d){const _0x3d06b4=_0x1211;let _0x1cf6e5=null,_0x424aae=_0x2f4669[_0x3d06b4(0x1e0)]?_0x2f4669[_0x3d06b4(0x208)]['length']:Math[_0x3d06b4(0x1f0)](0x0,_0x2f4669[_0x3d06b4(0x208)][_0x3d06b4(0x1e2)]-0x1);for(let _0x438b3d=0x0;_0x438b3d<_0x424aae;_0x438b3d++){let _0xa1baef=T(_0x2f4669,_0x438b3d);if(!_0xa1baef)continue;let _0x5a8c61=D(_0xa1baef,0x0);for(let _0x1c3df9=0x1;_0x1c3df9<=0x20;_0x1c3df9++){let _0x2de5d7=D(_0xa1baef,_0x1c3df9/0x20),_0x55ba1f=O(_0x4a01bb,_0x5a8c61,_0x2de5d7),_0x535d41=(_0x1c3df9-0x1+_0x55ba1f[_0x3d06b4(0x201)])/0x20;(!_0x1cf6e5||_0x55ba1f[_0x3d06b4(0x204)]<_0x1cf6e5[_0x3d06b4(0x204)])&&(_0x1cf6e5={'segmentIndex':_0x438b3d,'t':_0x535d41,'point':_0x55ba1f[_0x3d06b4(0x205)],'distance':_0x55ba1f[_0x3d06b4(0x204)]}),_0x5a8c61=_0x2de5d7;}}return _0x1cf6e5&&_0x1cf6e5[_0x3d06b4(0x204)]<=_0xf8532d?_0x1cf6e5:null;}function le(_0x3fb92d,_0x128497,_0x2f749b){const _0x7f4f23=_0x1211;let _0x1a9ee0=y(_0x3fb92d),_0x394f0f=w(_0x1a9ee0,_0x128497[_0x7f4f23(0x1fd)]),_0x1e25ae=T(_0x1a9ee0,_0x128497['segmentIndex']);if(!_0x394f0f||!_0x1e25ae)return _0x1a9ee0;let _0x31dfcf=ne(_0x1e25ae,Math[_0x7f4f23(0x1f0)](0x0,Math[_0x7f4f23(0x20d)](0x1,_0x128497['t']))),_0x2a9439={'id':_0x2f749b(),'x':_0x31dfcf['left'][0x3]['x'],'y':_0x31dfcf['left'][0x3]['y'],'in':_(_0x31dfcf[_0x7f4f23(0x1ea)][0x2]),'out':_(_0x31dfcf[_0x7f4f23(0x1be)][0x1]),'pointType':'free'};return _0x1a9ee0['anchors'][_0x394f0f[_0x7f4f23(0x1ef)]]['out']=_(_0x31dfcf[_0x7f4f23(0x1ea)][0x1]),_0x1a9ee0[_0x7f4f23(0x208)][_0x394f0f[_0x7f4f23(0x1f2)]]['in']=_(_0x31dfcf[_0x7f4f23(0x1be)][0x2]),_0x1a9ee0[_0x7f4f23(0x208)][_0x7f4f23(0x1e9)](_0x394f0f[_0x7f4f23(0x1ef)]+0x1,0x0,_0x2a9439),_0x1a9ee0;}function ue(_0x29689b,_0xb58bb9){const _0x12af36=_0x1211;let _0x2ff724=y(_0x29689b);return _0x2ff724[_0x12af36(0x208)]=_0x2ff724[_0x12af36(0x208)][_0x12af36(0x1f5)](_0x412bcd=>_0x412bcd['id']!==_0xb58bb9),_0x2ff724['closed']&&_0x2ff724['anchors'][_0x12af36(0x1e2)]<0x3&&(_0x2ff724['closed']=!0x1),_0x2ff724;}function N(_0x1b95dc,_0x452f7c,_0x2d0da4){const _0x2ac18c=_0x1211;let _0xbd07b8=y(_0x1b95dc),_0xdf433a=_0xbd07b8[_0x2ac18c(0x208)][_0x2ac18c(0x1d8)](_0x33bb3d=>_0x33bb3d['id']===_0x452f7c),_0x4766e5=_0xbd07b8[_0x2ac18c(0x208)][_0xdf433a];if(!_0x4766e5)return _0xbd07b8;if(_0x4766e5[_0x2ac18c(0x1ca)]=_0x2d0da4,_0x2d0da4===_0x2ac18c(0x1d0))return delete _0x4766e5['in'],delete _0x4766e5[_0x2ac18c(0x1c1)],_0xbd07b8;let _0x4ab650=j(_0xbd07b8,_0xdf433a);if(_0x4766e5['in']=_0x4766e5['in']?_(_0x4766e5['in']):_0x4ab650['in'],_0x4766e5[_0x2ac18c(0x1c1)]=_0x4766e5[_0x2ac18c(0x1c1)]?_(_0x4766e5[_0x2ac18c(0x1c1)]):_0x4ab650['out'],_0x2d0da4==='symmetric'){let _0x3b9cb0=Math[_0x2ac18c(0x1f0)](x(_0x4766e5,_0x4766e5['in']),x(_0x4766e5,_0x4766e5[_0x2ac18c(0x1c1)]),0x32),_0x5bff36=S({'x':_0x4766e5[_0x2ac18c(0x1c1)]['x']-_0x4766e5['x'],'y':_0x4766e5[_0x2ac18c(0x1c1)]['y']-_0x4766e5['y']});_0x4766e5['out']={'x':_0x4766e5['x']+_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']+_0x5bff36['y']*_0x3b9cb0},_0x4766e5['in']={'x':_0x4766e5['x']-_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']-_0x5bff36['y']*_0x3b9cb0};}else _0x2d0da4===_0x2ac18c(0x1fb)&&M(_0x4766e5,'out');return _0xbd07b8;}function P(_0x54aa08,_0x7ffa3a){const _0x39c7e6=_0x1211;var _0x2d548c;let _0x51d1f1=_0x54aa08[_0x39c7e6(0x208)][_0x39c7e6(0x1f3)](_0x4e2fcc=>_0x4e2fcc['id']===_0x7ffa3a),_0x591db9=(_0x2d548c=_0x51d1f1==null?void 0x0:_0x51d1f1[_0x39c7e6(0x1ca)])==null?_0x39c7e6(0x1d0):_0x2d548c;return N(_0x54aa08,_0x7ffa3a,_0x591db9===_0x39c7e6(0x1d0)?_0x39c7e6(0x1fb):_0x591db9===_0x39c7e6(0x1fb)?_0x39c7e6(0x1de):_0x591db9===_0x39c7e6(0x1de)?'free':_0x39c7e6(0x1d0));}function F(_0x2b9e1f,_0x56c7aa,_0x26a2a0){const _0x1dab27=_0x1211;let _0xc44bde=y(_0x2b9e1f),_0x27e436=_0xc44bde[_0x1dab27(0x208)][_0x1dab27(0x1f3)](_0x1ea924=>_0x1ea924['id']===_0x56c7aa['anchorId']);if(!_0x27e436)return _0xc44bde;if(_0x56c7aa[_0x1dab27(0x1f8)]===_0x1dab27(0x1d2)){let _0x39f456={'x':_0x26a2a0['x']-_0x27e436['x'],'y':_0x26a2a0['y']-_0x27e436['y']};return _0x27e436['x']=_0x26a2a0['x'],_0x27e436['y']=_0x26a2a0['y'],_0x27e436['in']&&(_0x27e436['in']={'x':_0x27e436['in']['x']+_0x39f456['x'],'y':_0x27e436['in']['y']+_0x39f456['y']}),_0x27e436[_0x1dab27(0x1c1)]&&(_0x27e436[_0x1dab27(0x1c1)]={'x':_0x27e436[_0x1dab27(0x1c1)]['x']+_0x39f456['x'],'y':_0x27e436[_0x1dab27(0x1c1)]['y']+_0x39f456['y']}),_0xc44bde;}return _0x27e436[_0x56c7aa['kind']]=_(_0x26a2a0),_0x27e436[_0x1dab27(0x1ca)]===_0x1dab27(0x1d0)&&(_0x27e436['pointType']=_0x1dab27(0x1f1)),M(_0x27e436,_0x56c7aa[_0x1dab27(0x1f8)]),_0xc44bde;}const I=1e-9;function L(_0x541be4){let _0x3c36af=Math['round'](_0x541be4*0x2710)/0x2710;return Object['is'](_0x3c36af,-0x0)?'0':String(_0x3c36af);}function R(_0x4c1145){return L(_0x4c1145['x'])+'\x20'+L(_0x4c1145['y']);}function z(_0x1de858,_0x3fc130){return{'x':_0x1de858['x']-_0x3fc130['x'],'y':_0x1de858['y']-_0x3fc130['y']};}function B(_0x241449,_0x550f5b,_0x1cef1b,_0x1a92ff,_0x553fac){let _0x414655=0x1-_0x553fac;return{'x':_0x414655*_0x414655*_0x414655*_0x241449['x']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['x']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['x']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['x'],'y':_0x414655*_0x414655*_0x414655*_0x241449['y']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['y']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['y']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['y']};}function V(_0x3d1ece,_0x345da1,_0x4494f0,_0x4e1c7d){const _0x5b0fea=_0x1211;let _0x2b2437=-_0x3d1ece+0x3*_0x345da1-0x3*_0x4494f0+_0x4e1c7d,_0x2fc981=0x3*_0x3d1ece-0x6*_0x345da1+0x3*_0x4494f0,_0x44d4e4=-0x3*_0x3d1ece+0x3*_0x345da1,_0x34331a=[];if(Math[_0x5b0fea(0x1e4)](_0x2b2437)<I){if(Math['abs'](_0x2fc981)<I)return _0x34331a;let _0x287154=-_0x44d4e4/(0x2*_0x2fc981);return _0x287154>0x0&&_0x287154<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x287154),_0x34331a;}let _0x2792aa=_0x2fc981*_0x2fc981-0x3*_0x2b2437*_0x44d4e4;if(_0x2792aa<0x0)return _0x34331a;let _0x6dd9c4=Math['sqrt'](Math['max'](0x0,_0x2792aa)),_0x14e6b1=(-_0x2fc981+_0x6dd9c4)/(0x3*_0x2b2437),_0x238582=(-_0x2fc981-_0x6dd9c4)/(0x3*_0x2b2437);return _0x14e6b1>0x0&&_0x14e6b1<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x14e6b1),_0x238582>0x0&&_0x238582<0x1&&Math['abs'](_0x238582-_0x14e6b1)>I&&_0x34331a['push'](_0x238582),_0x34331a;}function _0x1211(_0x50ed2e,_0xe8e419){_0x50ed2e=_0x50ed2e-0x1ba;const _0x4eef04=_0x4eef();let _0x121192=_0x4eef04[_0x50ed2e];return _0x121192;}function H(_0x4f601d,_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f){const _0x573c7e=_0x1211;_0x4f601d[_0x573c7e(0x20b)](_0x2224c5,_0x36900f),new Set([...V(_0x2224c5['x'],_0x46cadd['x'],_0x1987c1['x'],_0x36900f['x']),...V(_0x2224c5['y'],_0x46cadd['y'],_0x1987c1['y'],_0x36900f['y'])])[_0x573c7e(0x1eb)](_0x2aeff6=>{const _0x30aae2=_0x573c7e;_0x4f601d[_0x30aae2(0x20b)](B(_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f,_0x2aeff6));});}function U(_0x1c2ad0){const _0x4b8f70=_0x1211;let _0x532f0f=_0x1c2ad0[_0x4b8f70(0x208)];if(_0x532f0f['length']<=0x1)return _0x532f0f;let _0x3cf711=[];for(let _0x6de75a=0x1;_0x6de75a<_0x532f0f[_0x4b8f70(0x1e2)];_0x6de75a++){var _0x2d4159,_0x1d3f32;let _0x42ce86=_0x532f0f[_0x6de75a-0x1],_0x3e729c=_0x532f0f[_0x6de75a];H(_0x3cf711,_0x42ce86,(_0x2d4159=_0x42ce86[_0x4b8f70(0x1c1)])==null?_0x42ce86:_0x2d4159,(_0x1d3f32=_0x3e729c['in'])==null?_0x3e729c:_0x1d3f32,_0x3e729c);}if(_0x1c2ad0['closed']&&_0x532f0f[_0x4b8f70(0x1e2)]>0x1){var _0x30eb6b,_0xed4e9f;let _0x43247a=_0x532f0f[_0x532f0f[_0x4b8f70(0x1e2)]-0x1],_0x25e565=_0x532f0f[0x0];H(_0x3cf711,_0x43247a,(_0x30eb6b=_0x43247a[_0x4b8f70(0x1c1)])==null?_0x43247a:_0x30eb6b,(_0xed4e9f=_0x25e565['in'])==null?_0x25e565:_0xed4e9f,_0x25e565);}return _0x3cf711;}function de(_0x75b221){const _0x2e8f98=_0x1211;let _0x4912c2=_0x75b221[_0x2e8f98(0x1c5)];if(_0x4912c2[_0x2e8f98(0x1e2)]<=0x1)return _0x4912c2;let _0x3dcfc6=[];for(let _0x5ef848=0x0;_0x5ef848<_0x4912c2[_0x2e8f98(0x1e2)]-0x1;_0x5ef848++){var _0x8dcc5c,_0x2081ce;let _0x871f0f=_0x4912c2[_0x5ef848],_0x239bdb=_0x4912c2[_0x5ef848+0x1],_0x546780=(_0x8dcc5c=_0x4912c2[_0x5ef848-0x1])==null?_0x871f0f:_0x8dcc5c,_0x344ea5=(_0x2081ce=_0x4912c2[_0x5ef848+0x2])==null?_0x239bdb:_0x2081ce;H(_0x3dcfc6,_0x871f0f,{'x':_0x871f0f['x']+(_0x239bdb['x']-_0x546780['x'])/0x6,'y':_0x871f0f['y']+(_0x239bdb['y']-_0x546780['y'])/0x6},{'x':_0x239bdb['x']-(_0x344ea5['x']-_0x871f0f['x'])/0x6,'y':_0x239bdb['y']-(_0x344ea5['y']-_0x871f0f['y'])/0x6},_0x239bdb);}return _0x3dcfc6;}function fe(_0x9f0f16){const _0x3f3ed5=_0x1211;return _0x9f0f16['kind']===_0x3f3ed5(0x218)?U(_0x9f0f16):de(_0x9f0f16);}function W(_0x22537b){const _0x4abce3=_0x1211;let _0x4a4690=Math[_0x4abce3(0x20f)](_0x22537b*0x2710)/0x2710;return Object['is'](_0x4a4690,-0x0)?0x0:_0x4a4690;}function G(_0x529191){const _0x59a956=_0x1211;let _0x256152=fe(_0x529191);if(_0x256152['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x467b54=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x5c79ff=>_0x5c79ff['x'])),_0xc4946b=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x142167=>_0x142167['y'])),_0x5aa992=Math[_0x59a956(0x1f0)](..._0x256152[_0x59a956(0x1c4)](_0x7c0829=>_0x7c0829['x'])),_0xe8ac3e=Math['max'](..._0x256152['map'](_0x17e09c=>_0x17e09c['y']));return{'left':W(_0x467b54),'top':W(_0xc4946b),'width':W(Math['max'](0x1,_0x5aa992-_0x467b54)),'height':W(Math[_0x59a956(0x1f0)](0x1,_0xe8ac3e-_0xc4946b))};}function pe(_0x3e2b30,_0x124fb7){const _0x74e596=_0x1211;let _0x47cf4c=_0x3e2b30[_0x74e596(0x208)];if(_0x47cf4c[_0x74e596(0x1e2)]===0x0)return'';let _0x95e36d=['M\x20'+R(z(_0x47cf4c[0x0],_0x124fb7))];for(let _0x4ee1e5=0x1;_0x4ee1e5<_0x47cf4c[_0x74e596(0x1e2)];_0x4ee1e5++){var _0x343f97,_0xb4b90e;let _0x27a4d4=_0x47cf4c[_0x4ee1e5-0x1],_0x4bce27=_0x47cf4c[_0x4ee1e5],_0x338c1b=(_0x343f97=_0x27a4d4[_0x74e596(0x1c1)])==null?_0x27a4d4:_0x343f97,_0x1e3317=(_0xb4b90e=_0x4bce27['in'])==null?_0x4bce27:_0xb4b90e;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0x338c1b,_0x124fb7))+'\x20'+R(z(_0x1e3317,_0x124fb7))+'\x20'+R(z(_0x4bce27,_0x124fb7)));}if(_0x3e2b30[_0x74e596(0x1e0)]&&_0x47cf4c[_0x74e596(0x1e2)]>0x1){var _0x127d8f,_0x391377;let _0x36dfda=_0x47cf4c[_0x47cf4c[_0x74e596(0x1e2)]-0x1],_0x1618b2=_0x47cf4c[0x0],_0xafc868=(_0x127d8f=_0x36dfda[_0x74e596(0x1c1)])==null?_0x36dfda:_0x127d8f,_0x1de550=(_0x391377=_0x1618b2['in'])==null?_0x1618b2:_0x391377;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0xafc868,_0x124fb7))+'\x20'+R(z(_0x1de550,_0x124fb7))+'\x20'+R(z(_0x1618b2,_0x124fb7))),_0x95e36d[_0x74e596(0x20b)]('Z');}return _0x95e36d['join']('\x20');}function me(_0x16c425,_0x5c128b){const _0x38b1ff=_0x1211;let _0x265969=_0x16c425[_0x38b1ff(0x1c5)][_0x38b1ff(0x1c4)](_0xaed080=>z(_0xaed080,_0x5c128b));if(_0x265969[_0x38b1ff(0x1e2)]===0x0)return'';if(_0x265969[_0x38b1ff(0x1e2)]===0x1)return'M\x20'+R(_0x265969[0x0]);let _0x5bc61b=['M\x20'+R(_0x265969[0x0])];for(let _0x4ca555=0x0;_0x4ca555<_0x265969[_0x38b1ff(0x1e2)]-0x1;_0x4ca555++){var _0xc7926b,_0x19feba;let _0x445dca=_0x265969[_0x4ca555],_0x3792ed=_0x265969[_0x4ca555+0x1],_0x4b6c96=(_0xc7926b=_0x265969[_0x4ca555-0x1])==null?_0x445dca:_0xc7926b,_0x17cfc5=(_0x19feba=_0x265969[_0x4ca555+0x2])==null?_0x3792ed:_0x19feba,_0x14c2c2={'x':_0x445dca['x']+(_0x3792ed['x']-_0x4b6c96['x'])/0x6,'y':_0x445dca['y']+(_0x3792ed['y']-_0x4b6c96['y'])/0x6},_0x19d58a={'x':_0x3792ed['x']-(_0x17cfc5['x']-_0x445dca['x'])/0x6,'y':_0x3792ed['y']-(_0x17cfc5['y']-_0x445dca['y'])/0x6};_0x5bc61b[_0x38b1ff(0x20b)]('C\x20'+R(_0x14c2c2)+'\x20'+R(_0x19d58a)+'\x20'+R(_0x3792ed));}return _0x5bc61b['join']('\x20');}function he(_0x3bd850,_0x5b0f86){const _0x3179ab=_0x1211;return _0x3bd850[_0x3179ab(0x1f8)]===_0x3179ab(0x218)?pe(_0x3bd850,_0x5b0f86):me(_0x3bd850,_0x5b0f86);}function ge(_0x57783c,_0x578a2a){const _0x2572b8=_0x1211;return _0x578a2a!=null&&_0x578a2a[_0x2572b8(0x202)]?_0x578a2a['color']:_0x57783c[_0x2572b8(0x1f8)]===_0x2572b8(0x218)?_0x2572b8(0x1d9):_0x57783c[_0x2572b8(0x202)];}function _e(_0x112a65,_0x5bdcf7){const _0x1f50d3=_0x1211;return(_0x5bdcf7==null?void 0x0:_0x5bdcf7[_0x1f50d3(0x1e6)])===void 0x0?_0x112a65['kind']==='pen'?0x2:_0x112a65[_0x1f50d3(0x1e6)]:_0x5bdcf7[_0x1f50d3(0x1e6)];}function ve(_0x599071,_0x2a1419){return(_0x2a1419==null?void 0x0:_0x2a1419['opacity'])===void 0x0?_0x599071['kind']==='pen'?void 0x0:_0x599071['opacity']:_0x2a1419['opacity'];}function ye(_0x3c585a,_0x6ea5f3){const _0x39e5dd=_0x1211;let _0x385a5e=G(_0x3c585a),_0x5ab225=he(_0x3c585a,{'x':_0x385a5e['left'],'y':_0x385a5e[_0x39e5dd(0x216)]}),_0x58a50c=_0x3c585a['kind']===_0x39e5dd(0x218)&&_0x3c585a[_0x39e5dd(0x1e0)],_0xbd4be8=_0x6ea5f3==null?void 0x0:_0x6ea5f3[_0x39e5dd(0x1e8)];return{'shapeType':_0x46339a[_0x39e5dd(0x1e3)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x385a5e['width'],'h':_0x385a5e[_0x39e5dd(0x1df)],'fill':_0x58a50c?_0x39e5dd(0x1e1):_0x39e5dd(0x1ec),'stroke':!0x0,'data':_0x5ab225,'dataArray':be(_0x3c585a,{'x':_0x385a5e[_0x39e5dd(0x1ea)],'y':_0x385a5e[_0x39e5dd(0x216)]})}]},'fill':_0x58a50c&&_0xbd4be8?{'color':_0xbd4be8,'fillType':_0x5d1bec[_0x39e5dd(0x1e7)]}:{'fillType':_0x5d1bec[_0x39e5dd(0x207)]},'stroke':{'color':ge(_0x3c585a,_0x6ea5f3),'width':_e(_0x3c585a,_0x6ea5f3),'opacity':ve(_0x3c585a,_0x6ea5f3),'lineStrokeType':_0x2298b9[_0x39e5dd(0x209)],'capType':_0x65358a['Round'],'lineJoinType':_0x3afe2a[_0x39e5dd(0x203)]}};}function K(_0x32c7ff,_0x2801d5){return{'x':_0x32c7ff['x']-_0x2801d5['x'],'y':_0x32c7ff['y']-_0x2801d5['y']};}function be(_0x2930cd,_0x1b786f){const _0x321054=_0x1211;if(_0x2930cd[_0x321054(0x1f8)]===_0x321054(0x218)){let _0xa547a7=_0x2930cd[_0x321054(0x208)];if(_0xa547a7['length']===0x0)return[];let _0x279dcd=K(_0xa547a7[0x0],_0x1b786f),_0x376d48=[{'command':'M','points':[_0x279dcd['x'],_0x279dcd['y']]}];for(let _0x5d9ba7=0x1;_0x5d9ba7<_0xa547a7[_0x321054(0x1e2)];_0x5d9ba7++){var _0x2bda0c,_0x1845b6;let _0x21ea08=_0xa547a7[_0x5d9ba7-0x1],_0x1e56e0=_0xa547a7[_0x5d9ba7],_0xfebf11=K((_0x2bda0c=_0x21ea08[_0x321054(0x1c1)])==null?_0x21ea08:_0x2bda0c,_0x1b786f),_0x5141fa=K((_0x1845b6=_0x1e56e0['in'])==null?_0x1e56e0:_0x1845b6,_0x1b786f),_0x17b306=K(_0x1e56e0,_0x1b786f);_0x376d48['push']({'command':'C','points':[_0xfebf11['x'],_0xfebf11['y'],_0x5141fa['x'],_0x5141fa['y'],_0x17b306['x'],_0x17b306['y']]});}if(_0x2930cd[_0x321054(0x1e0)]&&_0xa547a7[_0x321054(0x1e2)]>0x1){var _0x455314,_0xd8fe87;let _0x40a46b=_0xa547a7[_0xa547a7[_0x321054(0x1e2)]-0x1],_0x56f055=_0xa547a7[0x0],_0x36dec7=K((_0x455314=_0x40a46b['out'])==null?_0x40a46b:_0x455314,_0x1b786f),_0x3cea01=K((_0xd8fe87=_0x56f055['in'])==null?_0x56f055:_0xd8fe87,_0x1b786f),_0x37d2d9=K(_0x56f055,_0x1b786f);_0x376d48[_0x321054(0x20b)]({'command':'C','points':[_0x36dec7['x'],_0x36dec7['y'],_0x3cea01['x'],_0x3cea01['y'],_0x37d2d9['x'],_0x37d2d9['y']]}),_0x376d48[_0x321054(0x20b)]({'command':'z','points':[]});}return _0x376d48;}let _0x4bf39c=_0x2930cd[_0x321054(0x1c5)][_0x321054(0x1c4)](_0x2a50ac=>K(_0x2a50ac,_0x1b786f));if(_0x4bf39c[_0x321054(0x1e2)]===0x0)return[];let _0x42a2eb=[{'command':'M','points':[_0x4bf39c[0x0]['x'],_0x4bf39c[0x0]['y']]}];for(let _0x2eb88b=0x0;_0x2eb88b<_0x4bf39c[_0x321054(0x1e2)]-0x1;_0x2eb88b++){var _0x5271fe,_0x1e9e16;let _0x4a856f=_0x4bf39c[_0x2eb88b],_0x5a1c20=_0x4bf39c[_0x2eb88b+0x1],_0xd3b4ad=(_0x5271fe=_0x4bf39c[_0x2eb88b-0x1])==null?_0x4a856f:_0x5271fe,_0x3fc1c1=(_0x1e9e16=_0x4bf39c[_0x2eb88b+0x2])==null?_0x5a1c20:_0x1e9e16,_0x2138b6={'x':_0x4a856f['x']+(_0x5a1c20['x']-_0xd3b4ad['x'])/0x6,'y':_0x4a856f['y']+(_0x5a1c20['y']-_0xd3b4ad['y'])/0x6},_0x30c6a8={'x':_0x5a1c20['x']-(_0x3fc1c1['x']-_0x4a856f['x'])/0x6,'y':_0x5a1c20['y']-(_0x3fc1c1['y']-_0x4a856f['y'])/0x6};_0x42a2eb[_0x321054(0x20b)]({'command':'C','points':[_0x2138b6['x'],_0x2138b6['y'],_0x30c6a8['x'],_0x30c6a8['y'],_0x5a1c20['x'],_0x5a1c20['y']]});}return _0x42a2eb;}function xe(_0x43204b){const _0x180ace=_0x1211;var _0x3e228f;let {model:_0xa3d708,sourceModel:_0x24778f=_0xa3d708,style:_0x170177}=_0x43204b,_0x194a95=(_0x3e228f=_0x43204b[_0x180ace(0x215)])==null?_0xa3d708['kind']:_0x3e228f,_0x2525c9=G(_0xa3d708),_0x3214d8=_0xa3d708[_0x180ace(0x1f8)]==='pen'&&_0x194a95!=='pen'?_0xa3d708:void 0x0;return{'transform':{..._0x2525c9,'rotation':0x0},'shapeData':ye(_0xa3d708,_0x170177),'ink':{'version':0x1,'tool':_0x194a95,'sourceModel':_0x24778f,..._0x3214d8?{'editModel':_0x3214d8}:{},'normalizedBounds':_0x2525c9}};}var Se=_0x4602de(0x1c0),Ce=_0x4602de(0x1c7);function q(_0x3db7cb){'@babel/helpers - typeof';const _0xe4ad9e=_0x4602de;return q=typeof Symbol=='function'&&typeof Symbol[_0xe4ad9e(0x1f4)]==_0xe4ad9e(0x214)?function(_0x12e51e){return typeof _0x12e51e;}:function(_0x3d0599){const _0x129da7=_0xe4ad9e;return _0x3d0599&&typeof Symbol=='function'&&_0x3d0599[_0x129da7(0x1bf)]===Symbol&&_0x3d0599!==Symbol[_0x129da7(0x1ff)]?_0x129da7(0x214):typeof _0x3d0599;},q(_0x3db7cb);}function we(_0x4616bb,_0x3450ed){const _0x308030=_0x4602de;if(q(_0x4616bb)!='object'||!_0x4616bb)return _0x4616bb;var _0x37d4fd=_0x4616bb[Symbol[_0x308030(0x1bd)]];if(_0x37d4fd!==void 0x0){var _0x1337d6=_0x37d4fd[_0x308030(0x1c6)](_0x4616bb,_0x3450ed||_0x308030(0x1d1));if(q(_0x1337d6)!=_0x308030(0x1ce))return _0x1337d6;throw TypeError(_0x308030(0x1e5));}return(_0x3450ed===_0x308030(0x1cd)?String:Number)(_0x4616bb);}function J(_0x2cf7d5){var _0x2588a4=we(_0x2cf7d5,'string');return q(_0x2588a4)=='symbol'?_0x2588a4:_0x2588a4+'';}function Y(_0x2c7ade,_0x497417,_0x5a1879){const _0x58d322=_0x4602de;return(_0x497417=J(_0x497417))in _0x2c7ade?Object[_0x58d322(0x1d3)](_0x2c7ade,_0x497417,{'value':_0x5a1879,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c7ade[_0x497417]=_0x5a1879,_0x2c7ade;}const X=_0x113c29(_0x4602de(0x1ee));function _0x4eef(){const _0x496427=['registerCommand','8wQWMzo','symbol','tool','top','100292uigght','pen','1025282PXmaBs','UNIVER_UNKNOWN','end','toPrimitive','right','constructor','@univerjs-pro/ink','out','tolerance','_config','map','points','call','1.0.0-alpha.5','_configService','3181017VlRlDb','pointType','ink.operation.start','3458565PsOtLJ','string','object','9535700nxXkRG','corner','default','anchor','defineProperty','createCustomShape','get','_adapters','2624610OdnZzg','findIndex','#f54a45','pluginName','version','disposeWithMe','_injector','symmetric','height','closed','norm','length','Rect','abs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','width','SolidFill','fillColor','splice','left','forEach','none','add','ink.host-adapter.service','startIndex','max','free','endIndex','find','iterator','filter','decorate','slice','kind','beginInkMode','OPERATION','smooth','getOwnPropertyDescriptor','segmentIndex','start','prototype','type','ratio','color','Round','distance','point','2cOGgSL','NoFill','anchors','SolidLine','_commandService','push','hypot','min','973326xGVAaR','round','110sAsyTy','createId'];_0x4eef=function(){return _0x496427;};return _0x4eef();}var Te=class{constructor(){const _0x13fc70=_0x4602de;Y(this,_0x13fc70(0x1d6),[]);}['registerAdapter'](_0x21da3f){const _0x542b73=_0x4602de;return this['_adapters'][_0x542b73(0x20b)](_0x21da3f),_0x373e13(()=>{const _0x1f15f7=_0x542b73;let _0x1a116b=this[_0x1f15f7(0x1d6)]['indexOf'](_0x21da3f);_0x1a116b>=0x0&&this['_adapters'][_0x1f15f7(0x1e9)](_0x1a116b,0x1);});}[_0x4602de(0x1f9)](_0x5db213){const _0x15ac98=_0x4602de;for(let _0x324ad8 of this['_adapters'])if(_0x324ad8[_0x15ac98(0x1f9)](_0x5db213))return!0x0;return!0x1;}async[_0x4602de(0x1d4)](_0x548593){const _0x17606c=_0x4602de;for(let _0x4ccc14 of this[_0x17606c(0x1d6)])if(_0x4ccc14[_0x17606c(0x1d4)]&&await _0x4ccc14[_0x17606c(0x1d4)](_0x548593))return!0x0;return!0x1;}};const Ee={'id':_0x4602de(0x1cb),'type':_0x3e6dda[_0x4602de(0x1fa)],'handler':(_0x3a5dbd,_0x2585f5)=>_0x2585f5?_0x3a5dbd[_0x4602de(0x1d5)](X)[_0x4602de(0x1f9)](_0x2585f5):!0x1},Z={};function Q(_0x932558,_0x2acae1){return function(_0x1c3776,_0x1cc47c){_0x2acae1(_0x1c3776,_0x1cc47c,_0x932558);};}function De(_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17){const _0x450c75=_0x4602de;var _0x167094=arguments['length'],_0x1012ae=_0x167094<0x3?_0x1a89e1:_0x174c17===null?_0x174c17=Object[_0x450c75(0x1fc)](_0x1a89e1,_0x88ebdb):_0x174c17,_0x5abb30;if(typeof Reflect==_0x450c75(0x1ce)&&typeof Reflect[_0x450c75(0x1f6)]=='function')_0x1012ae=Reflect[_0x450c75(0x1f6)](_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17);else{for(var _0x5857d2=_0x382d75[_0x450c75(0x1e2)]-0x1;_0x5857d2>=0x0;_0x5857d2--)(_0x5abb30=_0x382d75[_0x5857d2])&&(_0x1012ae=(_0x167094<0x3?_0x5abb30(_0x1012ae):_0x167094>0x3?_0x5abb30(_0x1a89e1,_0x88ebdb,_0x1012ae):_0x5abb30(_0x1a89e1,_0x88ebdb))||_0x1012ae);}return _0x167094>0x3&&_0x1012ae&&Object[_0x450c75(0x1d3)](_0x1a89e1,_0x88ebdb,_0x1012ae),_0x1012ae;}let $=class extends _0x1732ef{constructor(_0x49581a=Z,_0x2251c4,_0x2e4743,_0x25a73b){const _0x4a00e1=_0x4602de;super(),this['_config']=_0x49581a,this[_0x4a00e1(0x1dd)]=_0x2251c4,this[_0x4a00e1(0x20a)]=_0x2e4743,this[_0x4a00e1(0x1c8)]=_0x25a73b;let {..._0x2bde7d}=_0x2ec470({},Z,this[_0x4a00e1(0x1c3)]);this['_configService']['setConfig']('ink.config',_0x2bde7d);}['onStarting'](){const _0x5791bb=_0x4602de;[[X,{'useClass':Te}]][_0x5791bb(0x1eb)](_0x1192e8=>this[_0x5791bb(0x1dd)][_0x5791bb(0x1ed)](_0x1192e8)),this[_0x5791bb(0x1dc)](this[_0x5791bb(0x20a)][_0x5791bb(0x212)](Ee));}};Y($,_0x4602de(0x1da),'UNIVER_INK_PLUGIN'),Y($,'packageName',Se),Y($,_0x4602de(0x1db),Ce),Y($,_0x4602de(0x200),_0x2f3686[_0x4602de(0x1bb)]),$=De([_0x21f9f4(_0x1c9fb0),Q(0x1,_0x83b12a(_0x4b9262)),Q(0x2,_0x44cbdf),Q(0x3,_0x74df07)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x257e0d=_0x1688;(function(_0x3fc294,_0x1faa95){const _0x45bc5b=_0x1688,_0x395d08=_0x3fc294();while(!![]){try{const _0x3127f2=parseInt(_0x45bc5b(0xc5))/0x1+parseInt(_0x45bc5b(0xc2))/0x2+-parseInt(_0x45bc5b(0xb4))/0x3*(-parseInt(_0x45bc5b(0xcb))/0x4)+parseInt(_0x45bc5b(0xd0))/0x5+-parseInt(_0x45bc5b(0xc3))/0x6*(-parseInt(_0x45bc5b(0xb9))/0x7)+-parseInt(_0x45bc5b(0xcc))/0x8*(parseInt(_0x45bc5b(0xae))/0x9)+-parseInt(_0x45bc5b(0xbf))/0xa;if(_0x3127f2===_0x1faa95)break;else _0x395d08['push'](_0x395d08['shift']());}catch(_0x2b1853){_0x395d08['push'](_0x395d08['shift']());}}}(_0x38f1,0x25621));import{BoardElementType as _0x3f0688}from'@univerjs-pro/boards';import{FBoard as _0xb2b525}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x37940b}from'@univerjs-pro/ink';import{Tools as _0x205ef1,generateRandomId as _0x209f76}from'@univerjs/core';import{FEnum as _0x37284d}from'@univerjs/core/facade';function _0x1688(_0x5aa9e5,_0x926090){_0x5aa9e5=_0x5aa9e5-0xae;const _0x38f137=_0x38f1();let _0x1688f6=_0x38f137[_0x5aa9e5];return _0x1688f6;}var o=class extends _0xb2b525{[_0x257e0d(0xb1)](_0x4362c0){const _0x5dae82=_0x257e0d;let _0x40ea66=s(_0x4362c0);return _0x40ea66&&this[_0x5dae82(0xbe)](_0x40ea66,{'insertIndex':_0x4362c0[_0x5dae82(0xce)]})?_0x40ea66:null;}[_0x257e0d(0xdf)](){const _0x2b134f=_0x257e0d;return this[_0x2b134f(0xdb)]({'elementType':_0x3f0688['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x2b134f(0xbc)](p);}};function s(_0x420802,_0x3b571f){const _0x4d238b=_0x257e0d;var _0x213d2e,_0x291aa2,_0x5c2827;if(!l(_0x420802['model'])||_0x420802['sourceModel']!==void 0x0&&!l(_0x420802[_0x4d238b(0xd5)])||!u(_0x420802[_0x4d238b(0xcf)]))return null;let _0x379c45=(_0x213d2e=_0x420802['parentId'])==null?_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xc0)]:_0x213d2e,_0x1a3383=_0x205ef1[_0x4d238b(0xbd)](_0x420802['model']),_0x228db3=_0x37940b({'model':_0x1a3383,'style':_0x420802[_0x4d238b(0xcf)],'tool':_0x420802[_0x4d238b(0xc1)],'sourceModel':_0x420802['sourceModel']?_0x205ef1[_0x4d238b(0xbd)](_0x420802[_0x4d238b(0xd5)]):_0x1a3383}),_0x1d481a=d(_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xda)]);return{'id':(_0x291aa2=(_0x5c2827=_0x3b571f==null?void 0x0:_0x3b571f['id'])==null?_0x420802['id']:_0x5c2827)==null?_0x209f76(0x6):_0x291aa2,'type':_0x3f0688[_0x4d238b(0xd1)],'transform':_0x228db3[_0x4d238b(0xcd)],'shapeData':_0x228db3[_0x4d238b(0xd3)],'parentId':_0x379c45==null?void 0x0:_0x379c45,'laneId':_0x420802[_0x4d238b(0xc6)]===void 0x0?_0x3b571f==null?void 0x0:_0x3b571f[_0x4d238b(0xc6)]:_0x420802['laneId'],'custom':{..._0x1d481a,'ink':_0x228db3['ink']}};}function c(_0x42c4ed){const _0x53c5d9=_0x257e0d;return Number[_0x53c5d9(0xb8)](_0x42c4ed['x'])&&Number[_0x53c5d9(0xb8)](_0x42c4ed['y']);}function l(_0x258652){const _0x27c9f6=_0x257e0d;if(_0x258652[_0x27c9f6(0xb7)]===_0x27c9f6(0xde)){let _0x3c806f=new Set();return _0x258652[_0x27c9f6(0xc4)]['length']>=(_0x258652[_0x27c9f6(0xd9)]?0x3:0x2)&&_0x258652[_0x27c9f6(0xc4)]['every'](_0x9d44c7=>{const _0x49de48=_0x27c9f6;let _0x4fa536=_0x9d44c7['id'][_0x49de48(0xb6)]()['length']>0x0&&!_0x3c806f[_0x49de48(0xd2)](_0x9d44c7['id'])&&c(_0x9d44c7)&&(!_0x9d44c7['in']||c(_0x9d44c7['in']))&&(!_0x9d44c7[_0x49de48(0xd6)]||c(_0x9d44c7[_0x49de48(0xd6)]));return _0x3c806f['add'](_0x9d44c7['id']),_0x4fa536;});}return _0x258652[_0x27c9f6(0xb0)][_0x27c9f6(0xb3)]>=0x2&&_0x258652['points']['every'](_0x2a51ab=>c(_0x2a51ab)&&Number[_0x27c9f6(0xb8)](_0x2a51ab['t'])&&(_0x2a51ab[_0x27c9f6(0xaf)]===void 0x0||Number['isFinite'](_0x2a51ab[_0x27c9f6(0xaf)])))&&Number[_0x27c9f6(0xb8)](_0x258652[_0x27c9f6(0xdd)])&&_0x258652[_0x27c9f6(0xdd)]>0x0&&Number[_0x27c9f6(0xb8)](_0x258652[_0x27c9f6(0xc7)])&&_0x258652[_0x27c9f6(0xc7)]>=0x0&&_0x258652[_0x27c9f6(0xc7)]<=0x1;}function u(_0x592d93){const _0x4d2610=_0x257e0d;return _0x592d93===void 0x0||(_0x592d93[_0x4d2610(0xdd)]===void 0x0||Number['isFinite'](_0x592d93[_0x4d2610(0xdd)])&&_0x592d93['width']>0x0)&&(_0x592d93[_0x4d2610(0xc7)]===void 0x0||Number[_0x4d2610(0xb8)](_0x592d93[_0x4d2610(0xc7)])&&_0x592d93[_0x4d2610(0xc7)]>=0x0&&_0x592d93['opacity']<=0x1);}function d(_0x1d34de){const _0x19728e=_0x257e0d;return _0x1d34de&&typeof _0x1d34de==_0x19728e(0xc8)&&!Array['isArray'](_0x1d34de)?_0x1d34de:{};}function f(_0x410fea){const _0x367447=_0x257e0d;let _0x17a38f=d(_0x410fea['custom'])[_0x367447(0xca)];if(!_0x17a38f||typeof _0x17a38f!=_0x367447(0xc8)||Array[_0x367447(0xd4)](_0x17a38f))return null;let _0x14fe27=_0x17a38f;return _0x14fe27['version']===0x1&&_0x14fe27[_0x367447(0xd5)]&&typeof _0x14fe27[_0x367447(0xd5)]==_0x367447(0xc8)?_0x14fe27:null;}function p(_0x5c6756){const _0x8eb91a=_0x257e0d;return _0x5c6756['type']===_0x3f0688[_0x8eb91a(0xd1)]&&!!f(_0x5c6756);}_0xb2b525[_0x257e0d(0xbb)](o);function _0x38f1(){const _0x5f0f71=['highlighter','BoardInkTool','closed','custom','findElements','BoardInkPointType','width','pen','getInks','3411hANDko','pressure','points','insertInk','smooth','length','754557ICansQ','BoardInkHandleKind','trim','kind','isFinite','60410IBxIkT','brush','extend','filter','deepClone','addElement','6934760ftxREG','parentId','tool','534734jxzAgI','150daLWBZ','anchors','305294Hftqnf','laneId','opacity','object','anchor','ink','4igXLtC','5216xRHHxo','transform','insertIndex','style','268875iKFkOc','Shape','has','shapeData','isArray','sourceModel','out'];_0x38f1=function(){return _0x5f0f71;};return _0x38f1();}const m={'Pen':_0x257e0d(0xde),'Brush':_0x257e0d(0xba),'Highlighter':_0x257e0d(0xd7)},h={'Corner':'corner','Smooth':_0x257e0d(0xb2),'Symmetric':'symmetric','Free':'free'},g={'Anchor':_0x257e0d(0xc9),'In':'in','Out':'out'};var _=class extends _0x37284d{get[_0x257e0d(0xd8)](){return m;}get[_0x257e0d(0xdc)](){return h;}get[_0x257e0d(0xb5)](){return g;}};_0x37284d[_0x257e0d(0xbb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ const _0x525814=_0x4e45;(function(_0x408dc1,_0x160f1f){const _0x2dcb88=_0x4e45,_0x2e485d=_0x408dc1();while(!![]){try{const _0x49ba32=-parseInt(_0x2dcb88(0xd0))/0x1+-parseInt(_0x2dcb88(0xd2))/0x2+parseInt(_0x2dcb88(0xd8))/0x3+-parseInt(_0x2dcb88(0xaf))/0x4+parseInt(_0x2dcb88(0xb1))/0x5+parseInt(_0x2dcb88(0xce))/0x6*(parseInt(_0x2dcb88(0xd1))/0x7)+-parseInt(_0x2dcb88(0xb7))/0x8*(-parseInt(_0x2dcb88(0xbc))/0x9);if(_0x49ba32===_0x160f1f)break;else _0x2e485d['push'](_0x2e485d['shift']());}catch(_0x39af4f){_0x2e485d['push'](_0x2e485d['shift']());}}}(_0x21eb,0xe60aa));import{BoardElementType as _0x55b8b6}from'@univerjs-pro/boards';import{FBoard as _0x2c50cd}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x353af6}from'@univerjs-pro/ink';import{Tools as _0xd1ba4b,generateRandomId as _0x57464c}from'@univerjs/core';import{FEnum as _0x2652ab}from'@univerjs/core/facade';var o=class extends _0x2c50cd{[_0x525814(0xd5)](_0x4a95f7){const _0x50ea36=_0x525814;let _0x2e1e74=s(_0x4a95f7);return _0x2e1e74&&this['addElement'](_0x2e1e74,{'insertIndex':_0x4a95f7[_0x50ea36(0xab)]})?_0x2e1e74:null;}[_0x525814(0xcd)](){const _0x34ee35=_0x525814;return this['findElements']({'elementType':_0x55b8b6['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x34ee35(0xb0)](p);}};function _0x4e45(_0x43a7cf,_0x4de9ee){_0x43a7cf=_0x43a7cf-0xa7;const _0x21eb0c=_0x21eb();let _0x4e45f8=_0x21eb0c[_0x43a7cf];return _0x4e45f8;}function s(_0x114ec4,_0x53f49a){const _0x32a01b=_0x525814;var _0x456dc3,_0x100fb6,_0x5e5ec7;if(!l(_0x114ec4['model'])||_0x114ec4['sourceModel']!==void 0x0&&!l(_0x114ec4[_0x32a01b(0xad)])||!u(_0x114ec4[_0x32a01b(0xb4)]))return null;let _0x12eb4a=(_0x456dc3=_0x114ec4['parentId'])==null?_0x53f49a==null?void 0x0:_0x53f49a[_0x32a01b(0xbf)]:_0x456dc3,_0x2b177e=_0xd1ba4b['deepClone'](_0x114ec4[_0x32a01b(0xc5)]),_0x616cd1=_0x353af6({'model':_0x2b177e,'style':_0x114ec4[_0x32a01b(0xb4)],'tool':_0x114ec4['tool'],'sourceModel':_0x114ec4[_0x32a01b(0xad)]?_0xd1ba4b['deepClone'](_0x114ec4[_0x32a01b(0xad)]):_0x2b177e}),_0x5b5f0c=d(_0x53f49a==null?void 0x0:_0x53f49a[_0x32a01b(0xcf)]);return{'id':(_0x100fb6=(_0x5e5ec7=_0x53f49a==null?void 0x0:_0x53f49a['id'])==null?_0x114ec4['id']:_0x5e5ec7)==null?_0x57464c(0x6):_0x100fb6,'type':_0x55b8b6[_0x32a01b(0xb2)],'transform':_0x616cd1['transform'],'shapeData':_0x616cd1[_0x32a01b(0xd7)],'parentId':_0x12eb4a==null?void 0x0:_0x12eb4a,'laneId':_0x114ec4[_0x32a01b(0xc6)]===void 0x0?_0x53f49a==null?void 0x0:_0x53f49a['laneId']:_0x114ec4['laneId'],'custom':{..._0x5b5f0c,'ink':_0x616cd1['ink']}};}function c(_0x5cf138){const _0x5758ad=_0x525814;return Number['isFinite'](_0x5cf138['x'])&&Number[_0x5758ad(0xd3)](_0x5cf138['y']);}function l(_0x432d2b){const _0x468c8a=_0x525814;if(_0x432d2b[_0x468c8a(0xc3)]===_0x468c8a(0xb5)){let _0x25d769=new Set();return _0x432d2b['anchors'][_0x468c8a(0xbe)]>=(_0x432d2b[_0x468c8a(0xb8)]?0x3:0x2)&&_0x432d2b[_0x468c8a(0xc8)][_0x468c8a(0xd6)](_0x3d9579=>{const _0x42b8cf=_0x468c8a;let _0xc84869=_0x3d9579['id']['trim']()[_0x42b8cf(0xbe)]>0x0&&!_0x25d769[_0x42b8cf(0xc1)](_0x3d9579['id'])&&c(_0x3d9579)&&(!_0x3d9579['in']||c(_0x3d9579['in']))&&(!_0x3d9579[_0x42b8cf(0xac)]||c(_0x3d9579['out']));return _0x25d769['add'](_0x3d9579['id']),_0xc84869;});}return _0x432d2b[_0x468c8a(0xcc)][_0x468c8a(0xbe)]>=0x2&&_0x432d2b['points'][_0x468c8a(0xd6)](_0x4aa43c=>c(_0x4aa43c)&&Number['isFinite'](_0x4aa43c['t'])&&(_0x4aa43c[_0x468c8a(0xb9)]===void 0x0||Number[_0x468c8a(0xd3)](_0x4aa43c['pressure'])))&&Number['isFinite'](_0x432d2b[_0x468c8a(0xc7)])&&_0x432d2b[_0x468c8a(0xc7)]>0x0&&Number[_0x468c8a(0xd3)](_0x432d2b[_0x468c8a(0xc0)])&&_0x432d2b[_0x468c8a(0xc0)]>=0x0&&_0x432d2b[_0x468c8a(0xc0)]<=0x1;}function u(_0x1d4a75){const _0x4a0734=_0x525814;return _0x1d4a75===void 0x0||(_0x1d4a75['width']===void 0x0||Number['isFinite'](_0x1d4a75[_0x4a0734(0xc7)])&&_0x1d4a75['width']>0x0)&&(_0x1d4a75[_0x4a0734(0xc0)]===void 0x0||Number[_0x4a0734(0xd3)](_0x1d4a75[_0x4a0734(0xc0)])&&_0x1d4a75[_0x4a0734(0xc0)]>=0x0&&_0x1d4a75[_0x4a0734(0xc0)]<=0x1);}function d(_0x4e44be){return _0x4e44be&&typeof _0x4e44be=='object'&&!Array['isArray'](_0x4e44be)?_0x4e44be:{};}function f(_0x242149){const _0x539956=_0x525814;let _0x2bae49=d(_0x242149[_0x539956(0xcf)])[_0x539956(0xbb)];if(!_0x2bae49||typeof _0x2bae49!=_0x539956(0xb3)||Array[_0x539956(0xbd)](_0x2bae49))return null;let _0x11b8b9=_0x2bae49;return _0x11b8b9[_0x539956(0xa7)]===0x1&&_0x11b8b9[_0x539956(0xad)]&&typeof _0x11b8b9[_0x539956(0xad)]=='object'?_0x11b8b9:null;}function p(_0x11552d){const _0x301c34=_0x525814;return _0x11552d[_0x301c34(0xae)]===_0x55b8b6[_0x301c34(0xb2)]&&!!f(_0x11552d);}_0x2c50cd['extend'](o);const m={'Pen':_0x525814(0xb5),'Brush':_0x525814(0xba),'Highlighter':_0x525814(0xb6)},h={'Corner':_0x525814(0xc2),'Smooth':_0x525814(0xc9),'Symmetric':_0x525814(0xcb),'Free':_0x525814(0xc4)},g={'Anchor':_0x525814(0xa8),'In':'in','Out':_0x525814(0xac)};var _=class extends _0x2652ab{get[_0x525814(0xa9)](){return m;}get[_0x525814(0xca)](){return h;}get[_0x525814(0xaa)](){return g;}};function _0x21eb(){const _0x122626=['object','style','pen','highlighter','72OugIvA','closed','pressure','brush','ink','1902213fpqJKx','isArray','length','parentId','opacity','has','corner','kind','free','model','laneId','width','anchors','smooth','BoardInkPointType','symmetric','points','getInks','1266fKemzc','custom','961911jgZdLS','4333rYSQdR','1310118LSdpVm','isFinite','extend','insertInk','every','shapeData','1869561pFPvDD','version','anchor','BoardInkTool','BoardInkHandleKind','insertIndex','out','sourceModel','type','2909508zTnuul','filter','3152940KMdtIA','Shape'];_0x21eb=function(){return _0x122626;};return _0x21eb();}_0x2652ab[_0x525814(0xd4)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x42e332=_0x1ced;(function(_0x3f38e3,_0x58f8f1){const _0x5d7c50=_0x1ced,_0x189e84=_0x3f38e3();while(!![]){try{const _0x5f42dc=parseInt(_0x5d7c50(0x87))/0x1+-parseInt(_0x5d7c50(0x86))/0x2*(-parseInt(_0x5d7c50(0xd2))/0x3)+-parseInt(_0x5d7c50(0x8f))/0x4*(-parseInt(_0x5d7c50(0x9e))/0x5)+-parseInt(_0x5d7c50(0xc4))/0x6*(parseInt(_0x5d7c50(0x88))/0x7)+-parseInt(_0x5d7c50(0xd3))/0x8+-parseInt(_0x5d7c50(0x81))/0x9+parseInt(_0x5d7c50(0xc2))/0xa;if(_0x5f42dc===_0x58f8f1)break;else _0x189e84['push'](_0x189e84['shift']());}catch(_0x297107){_0x189e84['push'](_0x189e84['shift']());}}}(_0x2777,0x568c3));import{ShapeFillEnum as _0x40b030,ShapeLineCapEnum as _0x30b81e,ShapeLineJoinEnum as _0xe471ab,ShapeLineTypeEnum as _0x568653,ShapeTypeEnum as _0x5c7e2e}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x3f4697}from'@univerjs-pro/license';import{CommandType as _0x2e7563,DependentOn as _0x95406c,ICommandService as _0x1a1bff,IConfigService as _0x2f7050,Inject as _0x9103c7,Injector as _0x17a253,Plugin as _0x2449e5,UniverInstanceType as _0x5370d0,createIdentifier as _0x5690be,merge as _0x11b2d3,toDisposable as _0x4bf3a7}from'@univerjs/core';const g=0.0001;function _(_0x4161f6){return{'x':_0x4161f6['x'],'y':_0x4161f6['y']};}function v(_0x21882c){const _0x12ed7a=_0x1ced;return{..._0x21882c,'in':_0x21882c['in']?_(_0x21882c['in']):void 0x0,'out':_0x21882c[_0x12ed7a(0xb2)]?_(_0x21882c[_0x12ed7a(0xb2)]):void 0x0};}function y(_0x518e53){const _0x880c8f=_0x1ced;return{'kind':'pen','closed':_0x518e53[_0x880c8f(0xcf)],'anchors':_0x518e53[_0x880c8f(0xba)][_0x880c8f(0xce)](v)};}function b(_0x57a4e7,_0x9e8b21,_0x4c773e){return{'x':_0x57a4e7['x']+(_0x9e8b21['x']-_0x57a4e7['x'])*_0x4c773e,'y':_0x57a4e7['y']+(_0x9e8b21['y']-_0x57a4e7['y'])*_0x4c773e};}function x(_0x356032,_0x3d776f){const _0xdcb542=_0x1ced;return Math[_0xdcb542(0x90)](_0x356032['x']-_0x3d776f['x'],_0x356032['y']-_0x3d776f['y']);}function S(_0x12229c){const _0x4024df=_0x1ced;let _0x4e9a68=Math[_0x4024df(0x90)](_0x12229c['x'],_0x12229c['y']);return _0x4e9a68<g?{'x':0x1,'y':0x0}:{'x':_0x12229c['x']/_0x4e9a68,'y':_0x12229c['y']/_0x4e9a68};}function C(_0x1c1a7f,_0x2fb0f7,_0xbf11ab=x(_0x1c1a7f,_0x2fb0f7)){let _0x42126f=S({'x':_0x1c1a7f['x']-_0x2fb0f7['x'],'y':_0x1c1a7f['y']-_0x2fb0f7['y']});return{'x':_0x1c1a7f['x']+_0x42126f['x']*_0xbf11ab,'y':_0x1c1a7f['y']+_0x42126f['y']*_0xbf11ab};}function w(_0x2af16b,_0x2c8365){const _0x7bf8c=_0x1ced;let {anchors:_0x35a9cd}=_0x2af16b;return _0x35a9cd[_0x7bf8c(0xa4)]<0x2||_0x2c8365<0x0?null:_0x2c8365<_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x2c8365,'endIndex':_0x2c8365+0x1,'start':_0x35a9cd[_0x2c8365],'end':_0x35a9cd[_0x2c8365+0x1]}:_0x2af16b[_0x7bf8c(0xcf)]&&_0x2c8365===_0x35a9cd[_0x7bf8c(0xa4)]-0x1?{'startIndex':_0x35a9cd[_0x7bf8c(0xa4)]-0x1,'endIndex':0x0,'start':_0x35a9cd[_0x35a9cd[_0x7bf8c(0xa4)]-0x1],'end':_0x35a9cd[0x0]}:null;}function T(_0x1acb3a,_0x457712){const _0x3bd77f=_0x1ced;var _0x57761f,_0x2e4ec7;let _0x33a487=w(_0x1acb3a,_0x457712);return _0x33a487?[_0x33a487['start'],(_0x57761f=_0x33a487[_0x3bd77f(0xb0)][_0x3bd77f(0xb2)])==null?_0x33a487['start']:_0x57761f,(_0x2e4ec7=_0x33a487[_0x3bd77f(0x98)]['in'])==null?_0x33a487['end']:_0x2e4ec7,_0x33a487['end']]:null;}function te(_0x33e2cb,_0x2ec6c9){const _0x456d92=_0x1ced;var _0x520bd6;return _0x2ec6c9===_0x456d92(0x8e)?_0x33e2cb:(_0x520bd6=_0x33e2cb[_0x2ec6c9])==null?null:_0x520bd6;}function E(_0x51bd63,_0x40881,_0xaf0059){const _0x18414c=_0x1ced;return _0xaf0059==='anchor'||_0x51bd63[_0x18414c(0xcf)]?!0x0:_0xaf0059==='in'?_0x40881>0x0:_0x40881<_0x51bd63['anchors']['length']-0x1;}function D(_0x4cfb16,_0x338484){let [_0x336e2e,_0xc68eb8,_0x313e70,_0x2f0c4f]=_0x4cfb16,_0x103791=b(_0x336e2e,_0xc68eb8,_0x338484),_0x14a37e=b(_0xc68eb8,_0x313e70,_0x338484),_0x49d1d=b(_0x313e70,_0x2f0c4f,_0x338484);return b(b(_0x103791,_0x14a37e,_0x338484),b(_0x14a37e,_0x49d1d,_0x338484),_0x338484);}function ne(_0x105ff2,_0x4a17c3){let [_0x3d9b2d,_0x1a5c0c,_0x56625,_0x51cc05]=_0x105ff2,_0x4f1316=b(_0x3d9b2d,_0x1a5c0c,_0x4a17c3),_0x5c15bc=b(_0x1a5c0c,_0x56625,_0x4a17c3),_0x5e182d=b(_0x56625,_0x51cc05,_0x4a17c3),_0x5339d7=b(_0x4f1316,_0x5c15bc,_0x4a17c3),_0x9ca61e=b(_0x5c15bc,_0x5e182d,_0x4a17c3),_0x377b1a=b(_0x5339d7,_0x9ca61e,_0x4a17c3);return{'left':[_0x3d9b2d,_0x4f1316,_0x5339d7,_0x377b1a],'right':[_0x377b1a,_0x9ca61e,_0x5e182d,_0x51cc05]};}function O(_0x14b959,_0x43e838,_0x33de5e){const _0x3b5921=_0x1ced;let _0x32a47c=_0x33de5e['x']-_0x43e838['x'],_0x14f6d4=_0x33de5e['y']-_0x43e838['y'],_0x1e7c8e=_0x32a47c*_0x32a47c+_0x14f6d4*_0x14f6d4,_0x44ac47=_0x1e7c8e<=g?0x0:Math[_0x3b5921(0x97)](0x0,Math[_0x3b5921(0xb4)](0x1,((_0x14b959['x']-_0x43e838['x'])*_0x32a47c+(_0x14b959['y']-_0x43e838['y'])*_0x14f6d4)/_0x1e7c8e)),_0x19c706={'x':_0x43e838['x']+_0x32a47c*_0x44ac47,'y':_0x43e838['y']+_0x14f6d4*_0x44ac47};return{'point':_0x19c706,'ratio':_0x44ac47,'distance':x(_0x14b959,_0x19c706)};}function re(_0x5b71bf,_0x3c434e,_0x12f2eb){const _0x117646=_0x1ced;return O(_0x5b71bf,_0x3c434e,_0x12f2eb)[_0x117646(0xbc)]**0x2;}function k(_0x21b199,_0x7b4489){const _0x315c47=_0x1ced;if(_0x21b199['length']<=0x2)return _0x21b199[_0x315c47(0xce)](_);let _0xf884ca=0x0,_0x2debc0=0x0,_0x3b204b=_0x21b199[0x0],_0x58d7c5=_0x21b199[_0x21b199[_0x315c47(0xa4)]-0x1],_0x1d41e4=_0x7b4489*_0x7b4489;for(let _0x5020f0=0x1;_0x5020f0<_0x21b199[_0x315c47(0xa4)]-0x1;_0x5020f0++){let _0x3015ef=re(_0x21b199[_0x5020f0],_0x3b204b,_0x58d7c5);_0x3015ef>_0xf884ca&&(_0xf884ca=_0x3015ef,_0x2debc0=_0x5020f0);}if(_0xf884ca<=_0x1d41e4)return[_(_0x3b204b),_(_0x58d7c5)];let _0x431cb7=k(_0x21b199[_0x315c47(0xb5)](0x0,_0x2debc0+0x1),_0x7b4489),_0xf9b1e1=k(_0x21b199[_0x315c47(0xb5)](_0x2debc0),_0x7b4489);return[..._0x431cb7[_0x315c47(0xb5)](0x0,-0x1),..._0xf9b1e1];}function ie(_0x40bda8,_0xfc6272){var _0x772e3b;let _0x41ed39=_0x40bda8[_0xfc6272],_0x47b1be=_0x40bda8[_0xfc6272+0x1],_0x3d271f=(_0x772e3b=_0x40bda8[_0xfc6272-0x1])==null?_0x41ed39:_0x772e3b;return{'x':_0x41ed39['x']+(_0x47b1be['x']-_0x3d271f['x'])/0x6,'y':_0x41ed39['y']+(_0x47b1be['y']-_0x3d271f['y'])/0x6};}function A(_0x6281e1,_0x12a128){var _0x1c6508;let _0x318159=_0x6281e1[_0x12a128],_0x30fbaf=_0x6281e1[_0x12a128-0x1],_0x27d478=(_0x1c6508=_0x6281e1[_0x12a128+0x1])==null?_0x318159:_0x1c6508;return{'x':_0x318159['x']-(_0x27d478['x']-_0x30fbaf['x'])/0x6,'y':_0x318159['y']-(_0x27d478['y']-_0x30fbaf['y'])/0x6};}function j(_0x5ce29b,_0xbe5225){const _0x558889=_0x1ced;var _0x46dc7e,_0xe86033;let _0x697284=_0x5ce29b[_0x558889(0xba)][_0xbe5225],_0x317408=(_0x46dc7e=_0x5ce29b['anchors'][_0xbe5225-0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][_0x5ce29b['anchors'][_0x558889(0xa4)]-0x1]:null:_0x46dc7e,_0x3f02f9=(_0xe86033=_0x5ce29b[_0x558889(0xba)][_0xbe5225+0x1])==null?_0x5ce29b[_0x558889(0xcf)]?_0x5ce29b[_0x558889(0xba)][0x0]:null:_0xe86033,_0x48b183=_0x317408&&_0x3f02f9?S({'x':_0x3f02f9['x']-_0x317408['x'],'y':_0x3f02f9['y']-_0x317408['y']}):_0x3f02f9?S({'x':_0x3f02f9['x']-_0x697284['x'],'y':_0x3f02f9['y']-_0x697284['y']}):_0x317408?S({'x':_0x697284['x']-_0x317408['x'],'y':_0x697284['y']-_0x317408['y']}):{'x':0x1,'y':0x0},_0x172a0f=_0x317408&&_0x3f02f9?Math[_0x558889(0x97)](0x32,x(_0x317408,_0x3f02f9)/0x4):0x32;return{'in':{'x':_0x697284['x']-_0x48b183['x']*_0x172a0f,'y':_0x697284['y']-_0x48b183['y']*_0x172a0f},'out':{'x':_0x697284['x']+_0x48b183['x']*_0x172a0f,'y':_0x697284['y']+_0x48b183['y']*_0x172a0f}};}function M(_0x4e1b38,_0x34cb21){const _0x408a36=_0x1ced;let _0x226bbb=_0x4e1b38[_0x34cb21],_0x283f60=_0x34cb21==='in'?_0x408a36(0xb2):'in',_0x1ff740=_0x4e1b38[_0x283f60];if(_0x226bbb){if(_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0x9c)){_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb);return;}_0x4e1b38[_0x408a36(0xa0)]===_0x408a36(0xbd)&&(_0x4e1b38[_0x283f60]=C(_0x4e1b38,_0x226bbb,_0x1ff740?x(_0x4e1b38,_0x1ff740):x(_0x4e1b38,_0x226bbb)));}}function ae(_0x34655e,_0x40d757){const _0x1a1ee3=_0x1ced;let _0x459359=y(_0x34655e);return!_0x40d757||_0x459359[_0x1a1ee3(0xcf)]||_0x459359[_0x1a1ee3(0xba)]['length']===0x0||_0x459359['anchors'][_0x1a1ee3(0xb9)]({'id':'__ink-preview-anchor__','x':_0x40d757['x'],'y':_0x40d757['y'],'pointType':_0x1a1ee3(0x84)}),_0x459359;}function oe(_0x2814d1,_0x2d384f={}){const _0x2518a3=_0x1ced;var _0x15a93c,_0x3060d1;let _0x34d83d=Math[_0x2518a3(0x97)](0x0,(_0x15a93c=_0x2d384f[_0x2518a3(0xc8)])==null?Math[_0x2518a3(0x97)](0x4,_0x2814d1['width']*0.35):_0x15a93c),_0x1ea899=(_0x3060d1=_0x2d384f[_0x2518a3(0x91)])==null?_0x3193ae=>'ink-centerline-'+_0x3193ae:_0x3060d1,_0x1837b9=k(_0x2814d1[_0x2518a3(0x8c)],_0x34d83d),_0x3c8f17=_0x1837b9[_0x2518a3(0xce)]((_0x2880ea,_0x532513)=>({'id':_0x1ea899(_0x532513),'x':_0x2880ea['x'],'y':_0x2880ea['y'],'pointType':_0x2518a3(0xca)}));for(let _0x51b97f=0x0;_0x51b97f<_0x3c8f17['length']-0x1;_0x51b97f++)_0x3c8f17[_0x51b97f][_0x2518a3(0xb2)]=ie(_0x1837b9,_0x51b97f),_0x3c8f17[_0x51b97f+0x1]['in']=A(_0x1837b9,_0x51b97f+0x1);return{'kind':_0x2518a3(0xa3),'closed':!0x1,'anchors':_0x3c8f17};}function se(_0x2a8a7b,_0x4002cb,_0x3b42c0){const _0x16f8af=_0x1ced;let _0x215cfa=null,_0x1afb9c=['anchor','in',_0x16f8af(0xb2)];return _0x2a8a7b[_0x16f8af(0xba)][_0x16f8af(0x93)]((_0x156be8,_0x4e9e8a)=>{const _0x22f5fc=_0x16f8af;_0x1afb9c[_0x22f5fc(0x93)](_0x55f42f=>{const _0x1473eb=_0x22f5fc;if(!E(_0x2a8a7b,_0x4e9e8a,_0x55f42f))return;let _0x42ad36=te(_0x156be8,_0x55f42f);if(!_0x42ad36)return;let _0xe6e78c=x(_0x4002cb,_0x42ad36);_0xe6e78c>_0x3b42c0||_0x215cfa&&_0xe6e78c>=_0x215cfa[_0x1473eb(0xbc)]||(_0x215cfa={'handle':{'kind':_0x55f42f,'anchorId':_0x156be8['id']},'point':_(_0x42ad36),'distance':_0xe6e78c});});}),_0x215cfa;}function ce(_0x3be065,_0x59c988,_0x558a88){const _0x289744=_0x1ced;let _0x2547b2=null,_0x5cfc46=_0x3be065[_0x289744(0xcf)]?_0x3be065['anchors'][_0x289744(0xa4)]:Math[_0x289744(0x97)](0x0,_0x3be065[_0x289744(0xba)]['length']-0x1);for(let _0x975040=0x0;_0x975040<_0x5cfc46;_0x975040++){let _0x388294=T(_0x3be065,_0x975040);if(!_0x388294)continue;let _0x43ed62=D(_0x388294,0x0);for(let _0x124a9f=0x1;_0x124a9f<=0x20;_0x124a9f++){let _0x15511f=D(_0x388294,_0x124a9f/0x20),_0x57ab7f=O(_0x59c988,_0x43ed62,_0x15511f),_0x574b3b=(_0x124a9f-0x1+_0x57ab7f[_0x289744(0x8b)])/0x20;(!_0x2547b2||_0x57ab7f[_0x289744(0xbc)]<_0x2547b2[_0x289744(0xbc)])&&(_0x2547b2={'segmentIndex':_0x975040,'t':_0x574b3b,'point':_0x57ab7f[_0x289744(0xad)],'distance':_0x57ab7f[_0x289744(0xbc)]}),_0x43ed62=_0x15511f;}}return _0x2547b2&&_0x2547b2['distance']<=_0x558a88?_0x2547b2:null;}function le(_0x5440c2,_0xc748f7,_0x7bb2c1){const _0x262447=_0x1ced;let _0x11bf9b=y(_0x5440c2),_0x4ecbf5=w(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]),_0x52148a=T(_0x11bf9b,_0xc748f7[_0x262447(0xb3)]);if(!_0x4ecbf5||!_0x52148a)return _0x11bf9b;let _0xe1d68f=ne(_0x52148a,Math[_0x262447(0x97)](0x0,Math[_0x262447(0xb4)](0x1,_0xc748f7['t']))),_0x2fa6d4={'id':_0x7bb2c1(),'x':_0xe1d68f[_0x262447(0x96)][0x3]['x'],'y':_0xe1d68f[_0x262447(0x96)][0x3]['y'],'in':_(_0xe1d68f['left'][0x2]),'out':_(_0xe1d68f[_0x262447(0xaf)][0x1]),'pointType':'free'};return _0x11bf9b['anchors'][_0x4ecbf5['startIndex']][_0x262447(0xb2)]=_(_0xe1d68f[_0x262447(0x96)][0x1]),_0x11bf9b[_0x262447(0xba)][_0x4ecbf5[_0x262447(0xab)]]['in']=_(_0xe1d68f[_0x262447(0xaf)][0x2]),_0x11bf9b[_0x262447(0xba)]['splice'](_0x4ecbf5[_0x262447(0x85)]+0x1,0x0,_0x2fa6d4),_0x11bf9b;}function ue(_0x9d179f,_0x392227){const _0x3691b4=_0x1ced;let _0x3f62d5=y(_0x9d179f);return _0x3f62d5[_0x3691b4(0xba)]=_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xbb)](_0xb7b7d0=>_0xb7b7d0['id']!==_0x392227),_0x3f62d5[_0x3691b4(0xcf)]&&_0x3f62d5[_0x3691b4(0xba)][_0x3691b4(0xa4)]<0x3&&(_0x3f62d5[_0x3691b4(0xcf)]=!0x1),_0x3f62d5;}function N(_0x464440,_0x482438,_0x1d85e7){const _0x4c092a=_0x1ced;let _0x31b66b=y(_0x464440),_0x28e6dd=_0x31b66b[_0x4c092a(0xba)]['findIndex'](_0x449879=>_0x449879['id']===_0x482438),_0x44edd1=_0x31b66b[_0x4c092a(0xba)][_0x28e6dd];if(!_0x44edd1)return _0x31b66b;if(_0x44edd1[_0x4c092a(0xa0)]=_0x1d85e7,_0x1d85e7==='corner')return delete _0x44edd1['in'],delete _0x44edd1[_0x4c092a(0xb2)],_0x31b66b;let _0x75b9f9=j(_0x31b66b,_0x28e6dd);if(_0x44edd1['in']=_0x44edd1['in']?_(_0x44edd1['in']):_0x75b9f9['in'],_0x44edd1['out']=_0x44edd1[_0x4c092a(0xb2)]?_(_0x44edd1[_0x4c092a(0xb2)]):_0x75b9f9['out'],_0x1d85e7===_0x4c092a(0x9c)){let _0x9832cb=Math['max'](x(_0x44edd1,_0x44edd1['in']),x(_0x44edd1,_0x44edd1[_0x4c092a(0xb2)]),0x32),_0x16448b=S({'x':_0x44edd1[_0x4c092a(0xb2)]['x']-_0x44edd1['x'],'y':_0x44edd1['out']['y']-_0x44edd1['y']});_0x44edd1[_0x4c092a(0xb2)]={'x':_0x44edd1['x']+_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']+_0x16448b['y']*_0x9832cb},_0x44edd1['in']={'x':_0x44edd1['x']-_0x16448b['x']*_0x9832cb,'y':_0x44edd1['y']-_0x16448b['y']*_0x9832cb};}else _0x1d85e7===_0x4c092a(0xbd)&&M(_0x44edd1,'out');return _0x31b66b;}function P(_0x47a09d,_0x11f87a){const _0x341b03=_0x1ced;var _0x339851;let _0x1b0c07=_0x47a09d[_0x341b03(0xba)][_0x341b03(0xac)](_0x52cf4e=>_0x52cf4e['id']===_0x11f87a),_0x2e9d51=(_0x339851=_0x1b0c07==null?void 0x0:_0x1b0c07[_0x341b03(0xa0)])==null?'corner':_0x339851;return N(_0x47a09d,_0x11f87a,_0x2e9d51===_0x341b03(0x84)?_0x341b03(0xbd):_0x2e9d51===_0x341b03(0xbd)?_0x341b03(0x9c):_0x2e9d51==='symmetric'?'free':_0x341b03(0x84));}function F(_0x33c0a5,_0x412924,_0x2b38ae){const _0x118317=_0x1ced;let _0x1b0a2a=y(_0x33c0a5),_0x5a88f4=_0x1b0a2a[_0x118317(0xba)][_0x118317(0xac)](_0x449592=>_0x449592['id']===_0x412924[_0x118317(0x80)]);if(!_0x5a88f4)return _0x1b0a2a;if(_0x412924['kind']==='anchor'){let _0x13318b={'x':_0x2b38ae['x']-_0x5a88f4['x'],'y':_0x2b38ae['y']-_0x5a88f4['y']};return _0x5a88f4['x']=_0x2b38ae['x'],_0x5a88f4['y']=_0x2b38ae['y'],_0x5a88f4['in']&&(_0x5a88f4['in']={'x':_0x5a88f4['in']['x']+_0x13318b['x'],'y':_0x5a88f4['in']['y']+_0x13318b['y']}),_0x5a88f4[_0x118317(0xb2)]&&(_0x5a88f4[_0x118317(0xb2)]={'x':_0x5a88f4['out']['x']+_0x13318b['x'],'y':_0x5a88f4[_0x118317(0xb2)]['y']+_0x13318b['y']}),_0x1b0a2a;}return _0x5a88f4[_0x412924[_0x118317(0xb6)]]=_(_0x2b38ae),_0x5a88f4['pointType']==='corner'&&(_0x5a88f4[_0x118317(0xa0)]='free'),M(_0x5a88f4,_0x412924['kind']),_0x1b0a2a;}const I=1e-9;function L(_0x1e1e75){const _0x3ec61f=_0x1ced;let _0x31d057=Math[_0x3ec61f(0xcb)](_0x1e1e75*0x2710)/0x2710;return Object['is'](_0x31d057,-0x0)?'0':String(_0x31d057);}function R(_0x3ea43b){return L(_0x3ea43b['x'])+'\x20'+L(_0x3ea43b['y']);}function z(_0x56890a,_0x54bee3){return{'x':_0x56890a['x']-_0x54bee3['x'],'y':_0x56890a['y']-_0x54bee3['y']};}function B(_0x48ac06,_0x4822b1,_0xcdd611,_0x43b70e,_0x196050){let _0x25d080=0x1-_0x196050;return{'x':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['x']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['x']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['x']+_0x196050*_0x196050*_0x196050*_0x43b70e['x'],'y':_0x25d080*_0x25d080*_0x25d080*_0x48ac06['y']+0x3*_0x25d080*_0x25d080*_0x196050*_0x4822b1['y']+0x3*_0x25d080*_0x196050*_0x196050*_0xcdd611['y']+_0x196050*_0x196050*_0x196050*_0x43b70e['y']};}function V(_0x4f13f8,_0x15beb2,_0xbba490,_0x50f385){const _0x2014a4=_0x1ced;let _0x4cf8be=-_0x4f13f8+0x3*_0x15beb2-0x3*_0xbba490+_0x50f385,_0x59b2cc=0x3*_0x4f13f8-0x6*_0x15beb2+0x3*_0xbba490,_0x4ed9b4=-0x3*_0x4f13f8+0x3*_0x15beb2,_0x5dbb64=[];if(Math[_0x2014a4(0xc5)](_0x4cf8be)<I){if(Math[_0x2014a4(0xc5)](_0x59b2cc)<I)return _0x5dbb64;let _0x26d757=-_0x4ed9b4/(0x2*_0x59b2cc);return _0x26d757>0x0&&_0x26d757<0x1&&_0x5dbb64[_0x2014a4(0xb9)](_0x26d757),_0x5dbb64;}let _0x32ad76=_0x59b2cc*_0x59b2cc-0x3*_0x4cf8be*_0x4ed9b4;if(_0x32ad76<0x0)return _0x5dbb64;let _0x2766bb=Math['sqrt'](Math['max'](0x0,_0x32ad76)),_0x1a43e6=(-_0x59b2cc+_0x2766bb)/(0x3*_0x4cf8be),_0x139125=(-_0x59b2cc-_0x2766bb)/(0x3*_0x4cf8be);return _0x1a43e6>0x0&&_0x1a43e6<0x1&&_0x5dbb64['push'](_0x1a43e6),_0x139125>0x0&&_0x139125<0x1&&Math[_0x2014a4(0xc5)](_0x139125-_0x1a43e6)>I&&_0x5dbb64[_0x2014a4(0xb9)](_0x139125),_0x5dbb64;}function H(_0x10b4f3,_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a){const _0x2c7645=_0x1ced;_0x10b4f3[_0x2c7645(0xb9)](_0x2d32fa,_0x399f6a),new Set([...V(_0x2d32fa['x'],_0x1af334['x'],_0x28dcbd['x'],_0x399f6a['x']),...V(_0x2d32fa['y'],_0x1af334['y'],_0x28dcbd['y'],_0x399f6a['y'])])[_0x2c7645(0x93)](_0x169838=>{const _0x4655de=_0x2c7645;_0x10b4f3[_0x4655de(0xb9)](B(_0x2d32fa,_0x1af334,_0x28dcbd,_0x399f6a,_0x169838));});}function U(_0x23e05c){const _0x270118=_0x1ced;let _0x3d2633=_0x23e05c['anchors'];if(_0x3d2633[_0x270118(0xa4)]<=0x1)return _0x3d2633;let _0x772e2e=[];for(let _0x27e527=0x1;_0x27e527<_0x3d2633[_0x270118(0xa4)];_0x27e527++){var _0x49c512,_0x1ebcbe;let _0x38535b=_0x3d2633[_0x27e527-0x1],_0x5217f4=_0x3d2633[_0x27e527];H(_0x772e2e,_0x38535b,(_0x49c512=_0x38535b[_0x270118(0xb2)])==null?_0x38535b:_0x49c512,(_0x1ebcbe=_0x5217f4['in'])==null?_0x5217f4:_0x1ebcbe,_0x5217f4);}if(_0x23e05c['closed']&&_0x3d2633['length']>0x1){var _0x483e6a,_0x370c54;let _0x1faf34=_0x3d2633[_0x3d2633[_0x270118(0xa4)]-0x1],_0x11996f=_0x3d2633[0x0];H(_0x772e2e,_0x1faf34,(_0x483e6a=_0x1faf34['out'])==null?_0x1faf34:_0x483e6a,(_0x370c54=_0x11996f['in'])==null?_0x11996f:_0x370c54,_0x11996f);}return _0x772e2e;}function de(_0x331f22){const _0x4d7116=_0x1ced;let _0x4fcec8=_0x331f22[_0x4d7116(0x8c)];if(_0x4fcec8[_0x4d7116(0xa4)]<=0x1)return _0x4fcec8;let _0xa8fd62=[];for(let _0x56f665=0x0;_0x56f665<_0x4fcec8[_0x4d7116(0xa4)]-0x1;_0x56f665++){var _0x136593,_0x483929;let _0x4cd45a=_0x4fcec8[_0x56f665],_0x123505=_0x4fcec8[_0x56f665+0x1],_0x385e25=(_0x136593=_0x4fcec8[_0x56f665-0x1])==null?_0x4cd45a:_0x136593,_0x55433e=(_0x483929=_0x4fcec8[_0x56f665+0x2])==null?_0x123505:_0x483929;H(_0xa8fd62,_0x4cd45a,{'x':_0x4cd45a['x']+(_0x123505['x']-_0x385e25['x'])/0x6,'y':_0x4cd45a['y']+(_0x123505['y']-_0x385e25['y'])/0x6},{'x':_0x123505['x']-(_0x55433e['x']-_0x4cd45a['x'])/0x6,'y':_0x123505['y']-(_0x55433e['y']-_0x4cd45a['y'])/0x6},_0x123505);}return _0xa8fd62;}function fe(_0x471446){const _0x4f4d52=_0x1ced;return _0x471446[_0x4f4d52(0xb6)]===_0x4f4d52(0xa3)?U(_0x471446):de(_0x471446);}function W(_0x5792e9){const _0x1ac618=_0x1ced;let _0x54ec18=Math[_0x1ac618(0xcb)](_0x5792e9*0x2710)/0x2710;return Object['is'](_0x54ec18,-0x0)?0x0:_0x54ec18;}function G(_0x1e599e){const _0x37d1b0=_0x1ced;let _0x5a42fc=fe(_0x1e599e);if(_0x5a42fc['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b033e=Math['min'](..._0x5a42fc['map'](_0x485f6d=>_0x485f6d['x'])),_0xf0a1d7=Math[_0x37d1b0(0xb4)](..._0x5a42fc[_0x37d1b0(0xce)](_0x26e40c=>_0x26e40c['y'])),_0x22d349=Math[_0x37d1b0(0x97)](..._0x5a42fc['map'](_0xee1676=>_0xee1676['x'])),_0x4867bf=Math[_0x37d1b0(0x97)](..._0x5a42fc[_0x37d1b0(0xce)](_0x2eedb0=>_0x2eedb0['y']));return{'left':W(_0x4b033e),'top':W(_0xf0a1d7),'width':W(Math[_0x37d1b0(0x97)](0x1,_0x22d349-_0x4b033e)),'height':W(Math[_0x37d1b0(0x97)](0x1,_0x4867bf-_0xf0a1d7))};}function pe(_0x1de73a,_0x45385c){const _0x4622b9=_0x1ced;let _0x27081c=_0x1de73a[_0x4622b9(0xba)];if(_0x27081c[_0x4622b9(0xa4)]===0x0)return'';let _0x30180a=['M\x20'+R(z(_0x27081c[0x0],_0x45385c))];for(let _0x66d405=0x1;_0x66d405<_0x27081c['length'];_0x66d405++){var _0x3f9c33,_0x3f83f7;let _0x267910=_0x27081c[_0x66d405-0x1],_0xf6cf96=_0x27081c[_0x66d405],_0x23ed5e=(_0x3f9c33=_0x267910[_0x4622b9(0xb2)])==null?_0x267910:_0x3f9c33,_0x44f074=(_0x3f83f7=_0xf6cf96['in'])==null?_0xf6cf96:_0x3f83f7;_0x30180a['push']('C\x20'+R(z(_0x23ed5e,_0x45385c))+'\x20'+R(z(_0x44f074,_0x45385c))+'\x20'+R(z(_0xf6cf96,_0x45385c)));}if(_0x1de73a[_0x4622b9(0xcf)]&&_0x27081c['length']>0x1){var _0x2e84ae,_0x2ad46c;let _0x5c57ac=_0x27081c[_0x27081c['length']-0x1],_0x3357b9=_0x27081c[0x0],_0x32fd94=(_0x2e84ae=_0x5c57ac[_0x4622b9(0xb2)])==null?_0x5c57ac:_0x2e84ae,_0xeecd64=(_0x2ad46c=_0x3357b9['in'])==null?_0x3357b9:_0x2ad46c;_0x30180a['push']('C\x20'+R(z(_0x32fd94,_0x45385c))+'\x20'+R(z(_0xeecd64,_0x45385c))+'\x20'+R(z(_0x3357b9,_0x45385c))),_0x30180a[_0x4622b9(0xb9)]('Z');}return _0x30180a['join']('\x20');}function me(_0x107b6c,_0x269de9){const _0x383ffa=_0x1ced;let _0x51982a=_0x107b6c['points'][_0x383ffa(0xce)](_0xf3d220=>z(_0xf3d220,_0x269de9));if(_0x51982a['length']===0x0)return'';if(_0x51982a['length']===0x1)return'M\x20'+R(_0x51982a[0x0]);let _0x5d03c8=['M\x20'+R(_0x51982a[0x0])];for(let _0x4f459b=0x0;_0x4f459b<_0x51982a[_0x383ffa(0xa4)]-0x1;_0x4f459b++){var _0x3c997a,_0x2d8de1;let _0x428bda=_0x51982a[_0x4f459b],_0xa7f938=_0x51982a[_0x4f459b+0x1],_0x24d403=(_0x3c997a=_0x51982a[_0x4f459b-0x1])==null?_0x428bda:_0x3c997a,_0x31c2bd=(_0x2d8de1=_0x51982a[_0x4f459b+0x2])==null?_0xa7f938:_0x2d8de1,_0x5a52dc={'x':_0x428bda['x']+(_0xa7f938['x']-_0x24d403['x'])/0x6,'y':_0x428bda['y']+(_0xa7f938['y']-_0x24d403['y'])/0x6},_0x4f3231={'x':_0xa7f938['x']-(_0x31c2bd['x']-_0x428bda['x'])/0x6,'y':_0xa7f938['y']-(_0x31c2bd['y']-_0x428bda['y'])/0x6};_0x5d03c8[_0x383ffa(0xb9)]('C\x20'+R(_0x5a52dc)+'\x20'+R(_0x4f3231)+'\x20'+R(_0xa7f938));}return _0x5d03c8['join']('\x20');}function he(_0x3408ac,_0xbbc8c1){const _0x254423=_0x1ced;return _0x3408ac[_0x254423(0xb6)]===_0x254423(0xa3)?pe(_0x3408ac,_0xbbc8c1):me(_0x3408ac,_0xbbc8c1);}function ge(_0x10a586,_0x310e98){const _0x2bb3b1=_0x1ced;return _0x310e98!=null&&_0x310e98['color']?_0x310e98['color']:_0x10a586[_0x2bb3b1(0xb6)]===_0x2bb3b1(0xa3)?_0x2bb3b1(0xc3):_0x10a586['color'];}function _e(_0x4d0a9b,_0x103690){const _0x4ceb3d=_0x1ced;return(_0x103690==null?void 0x0:_0x103690[_0x4ceb3d(0xcd)])===void 0x0?_0x4d0a9b[_0x4ceb3d(0xb6)]===_0x4ceb3d(0xa3)?0x2:_0x4d0a9b[_0x4ceb3d(0xcd)]:_0x103690[_0x4ceb3d(0xcd)];}function ve(_0x119005,_0xa33e6){const _0x3a9293=_0x1ced;return(_0xa33e6==null?void 0x0:_0xa33e6[_0x3a9293(0xb7)])===void 0x0?_0x119005['kind']===_0x3a9293(0xa3)?void 0x0:_0x119005[_0x3a9293(0xb7)]:_0xa33e6[_0x3a9293(0xb7)];}function _0x1ced(_0x27b8a0,_0x1db9ea){_0x27b8a0=_0x27b8a0-0x7e;const _0x2777cd=_0x2777();let _0x1ced70=_0x2777cd[_0x27b8a0];return _0x1ced70;}function ye(_0x397c77,_0x4f0103){const _0x2d5305=_0x1ced;let _0x58cd5c=G(_0x397c77),_0x334e32=he(_0x397c77,{'x':_0x58cd5c['left'],'y':_0x58cd5c[_0x2d5305(0xa6)]}),_0x1868c0=_0x397c77[_0x2d5305(0xb6)]==='pen'&&_0x397c77[_0x2d5305(0xcf)],_0x20e82b=_0x4f0103==null?void 0x0:_0x4f0103[_0x2d5305(0xa8)];return{'shapeType':_0x5c7e2e['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x58cd5c[_0x2d5305(0xcd)],'h':_0x58cd5c['height'],'fill':_0x1868c0?'norm':_0x2d5305(0xbe),'stroke':!0x0,'data':_0x334e32,'dataArray':be(_0x397c77,{'x':_0x58cd5c[_0x2d5305(0x96)],'y':_0x58cd5c[_0x2d5305(0xa6)]})}]},'fill':_0x1868c0&&_0x20e82b?{'color':_0x20e82b,'fillType':_0x40b030[_0x2d5305(0xc1)]}:{'fillType':_0x40b030['NoFill']},'stroke':{'color':ge(_0x397c77,_0x4f0103),'width':_e(_0x397c77,_0x4f0103),'opacity':ve(_0x397c77,_0x4f0103),'lineStrokeType':_0x568653['SolidLine'],'capType':_0x30b81e[_0x2d5305(0x83)],'lineJoinType':_0xe471ab[_0x2d5305(0x83)]}};}function K(_0x233197,_0x3ab8ef){return{'x':_0x233197['x']-_0x3ab8ef['x'],'y':_0x233197['y']-_0x3ab8ef['y']};}function be(_0xfaace9,_0x24ba2f){const _0x41fb44=_0x1ced;if(_0xfaace9['kind']===_0x41fb44(0xa3)){let _0x46f291=_0xfaace9[_0x41fb44(0xba)];if(_0x46f291[_0x41fb44(0xa4)]===0x0)return[];let _0x9d20e0=K(_0x46f291[0x0],_0x24ba2f),_0x1d6722=[{'command':'M','points':[_0x9d20e0['x'],_0x9d20e0['y']]}];for(let _0x255512=0x1;_0x255512<_0x46f291[_0x41fb44(0xa4)];_0x255512++){var _0x14b3ba,_0x58ad77;let _0x47449b=_0x46f291[_0x255512-0x1],_0x35f8c3=_0x46f291[_0x255512],_0x56c7a4=K((_0x14b3ba=_0x47449b[_0x41fb44(0xb2)])==null?_0x47449b:_0x14b3ba,_0x24ba2f),_0x5a6f5b=K((_0x58ad77=_0x35f8c3['in'])==null?_0x35f8c3:_0x58ad77,_0x24ba2f),_0x1fdcf5=K(_0x35f8c3,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x56c7a4['x'],_0x56c7a4['y'],_0x5a6f5b['x'],_0x5a6f5b['y'],_0x1fdcf5['x'],_0x1fdcf5['y']]});}if(_0xfaace9['closed']&&_0x46f291['length']>0x1){var _0x9dd2de,_0x81ac45;let _0x4fc166=_0x46f291[_0x46f291['length']-0x1],_0x3895c1=_0x46f291[0x0],_0x5f245e=K((_0x9dd2de=_0x4fc166[_0x41fb44(0xb2)])==null?_0x4fc166:_0x9dd2de,_0x24ba2f),_0x2a3f18=K((_0x81ac45=_0x3895c1['in'])==null?_0x3895c1:_0x81ac45,_0x24ba2f),_0x43a1c4=K(_0x3895c1,_0x24ba2f);_0x1d6722['push']({'command':'C','points':[_0x5f245e['x'],_0x5f245e['y'],_0x2a3f18['x'],_0x2a3f18['y'],_0x43a1c4['x'],_0x43a1c4['y']]}),_0x1d6722['push']({'command':'z','points':[]});}return _0x1d6722;}let _0x489f9c=_0xfaace9[_0x41fb44(0x8c)][_0x41fb44(0xce)](_0x41695b=>K(_0x41695b,_0x24ba2f));if(_0x489f9c[_0x41fb44(0xa4)]===0x0)return[];let _0x209968=[{'command':'M','points':[_0x489f9c[0x0]['x'],_0x489f9c[0x0]['y']]}];for(let _0x4dcb3f=0x0;_0x4dcb3f<_0x489f9c[_0x41fb44(0xa4)]-0x1;_0x4dcb3f++){var _0x2896d1,_0x361277;let _0x303ecf=_0x489f9c[_0x4dcb3f],_0x14ce62=_0x489f9c[_0x4dcb3f+0x1],_0x46023f=(_0x2896d1=_0x489f9c[_0x4dcb3f-0x1])==null?_0x303ecf:_0x2896d1,_0x220656=(_0x361277=_0x489f9c[_0x4dcb3f+0x2])==null?_0x14ce62:_0x361277,_0x5a3508={'x':_0x303ecf['x']+(_0x14ce62['x']-_0x46023f['x'])/0x6,'y':_0x303ecf['y']+(_0x14ce62['y']-_0x46023f['y'])/0x6},_0xf0ae73={'x':_0x14ce62['x']-(_0x220656['x']-_0x303ecf['x'])/0x6,'y':_0x14ce62['y']-(_0x220656['y']-_0x303ecf['y'])/0x6};_0x209968[_0x41fb44(0xb9)]({'command':'C','points':[_0x5a3508['x'],_0x5a3508['y'],_0xf0ae73['x'],_0xf0ae73['y'],_0x14ce62['x'],_0x14ce62['y']]});}return _0x209968;}function xe(_0x5ced35){const _0x2426a1=_0x1ced;var _0x524876;let {model:_0x855814,sourceModel:_0x4749c0=_0x855814,style:_0x27b2fc}=_0x5ced35,_0x39e8b7=(_0x524876=_0x5ced35[_0x2426a1(0x9f)])==null?_0x855814[_0x2426a1(0xb6)]:_0x524876,_0x84bffb=G(_0x855814),_0x1e77fb=_0x855814[_0x2426a1(0xb6)]===_0x2426a1(0xa3)&&_0x39e8b7!==_0x2426a1(0xa3)?_0x855814:void 0x0;return{'transform':{..._0x84bffb,'rotation':0x0},'shapeData':ye(_0x855814,_0x27b2fc),'ink':{'version':0x1,'tool':_0x39e8b7,'sourceModel':_0x4749c0,..._0x1e77fb?{'editModel':_0x1e77fb}:{},'normalizedBounds':_0x84bffb}};}var Se=_0x42e332(0x82),Ce=_0x42e332(0xaa);function q(_0x28796d){'@babel/helpers - typeof';const _0x1f2c62=_0x42e332;return q=typeof Symbol=='function'&&typeof Symbol[_0x1f2c62(0x7f)]=='symbol'?function(_0x52ce1e){return typeof _0x52ce1e;}:function(_0x216535){const _0x2f168e=_0x1f2c62;return _0x216535&&typeof Symbol==_0x2f168e(0x89)&&_0x216535['constructor']===Symbol&&_0x216535!==Symbol[_0x2f168e(0x7e)]?_0x2f168e(0x9a):typeof _0x216535;},q(_0x28796d);}function we(_0xb004fc,_0x3eef88){const _0x5a6bc1=_0x42e332;if(q(_0xb004fc)!='object'||!_0xb004fc)return _0xb004fc;var _0x36b9e6=_0xb004fc[Symbol[_0x5a6bc1(0x9b)]];if(_0x36b9e6!==void 0x0){var _0x31d247=_0x36b9e6[_0x5a6bc1(0xbf)](_0xb004fc,_0x3eef88||_0x5a6bc1(0xae));if(q(_0x31d247)!=_0x5a6bc1(0xd4))return _0x31d247;throw TypeError(_0x5a6bc1(0xd1));}return(_0x3eef88===_0x5a6bc1(0xc7)?String:Number)(_0xb004fc);}function J(_0x8e1c40){const _0x30d9e3=_0x42e332;var _0x1ac07a=we(_0x8e1c40,_0x30d9e3(0xc7));return q(_0x1ac07a)==_0x30d9e3(0x9a)?_0x1ac07a:_0x1ac07a+'';}function Y(_0xc367ae,_0x2ca74d,_0x35f757){const _0x302533=_0x42e332;return(_0x2ca74d=J(_0x2ca74d))in _0xc367ae?Object[_0x302533(0xd6)](_0xc367ae,_0x2ca74d,{'value':_0x35f757,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xc367ae[_0x2ca74d]=_0x35f757,_0xc367ae;}const X=_0x5690be(_0x42e332(0x94));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x42e332(0xc0)](_0xba8cd2){const _0x4526b1=_0x42e332;return this[_0x4526b1(0xa9)][_0x4526b1(0xb9)](_0xba8cd2),_0x4bf3a7(()=>{const _0x277cd0=_0x4526b1;let _0x5984ef=this[_0x277cd0(0xa9)][_0x277cd0(0xc6)](_0xba8cd2);_0x5984ef>=0x0&&this[_0x277cd0(0xa9)][_0x277cd0(0xc9)](_0x5984ef,0x1);});}[_0x42e332(0x95)](_0x7aed7f){const _0x23f1fa=_0x42e332;for(let _0x4b7762 of this[_0x23f1fa(0xa9)])if(_0x4b7762['beginInkMode'](_0x7aed7f))return!0x0;return!0x1;}async['createCustomShape'](_0x3243ec){const _0x1c076d=_0x42e332;for(let _0x4dde3a of this['_adapters'])if(_0x4dde3a['createCustomShape']&&await _0x4dde3a[_0x1c076d(0x8d)](_0x3243ec))return!0x0;return!0x1;}};const Ee={'id':_0x42e332(0xa1),'type':_0x2e7563['OPERATION'],'handler':(_0x2e11ec,_0x535a1b)=>_0x535a1b?_0x2e11ec[_0x42e332(0xa7)](X)['beginInkMode'](_0x535a1b):!0x1},Z={};function Q(_0x3b51e6,_0x3f9417){return function(_0x47485a,_0x1e63cd){_0x3f9417(_0x47485a,_0x1e63cd,_0x3b51e6);};}function De(_0x71168f,_0x113e07,_0x3328e1,_0x351eae){const _0x5d9d54=_0x42e332;var _0x5cc20d=arguments[_0x5d9d54(0xa4)],_0x12dfa3=_0x5cc20d<0x3?_0x113e07:_0x351eae===null?_0x351eae=Object['getOwnPropertyDescriptor'](_0x113e07,_0x3328e1):_0x351eae,_0x131fb8;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x12dfa3=Reflect['decorate'](_0x71168f,_0x113e07,_0x3328e1,_0x351eae);else{for(var _0x14568c=_0x71168f[_0x5d9d54(0xa4)]-0x1;_0x14568c>=0x0;_0x14568c--)(_0x131fb8=_0x71168f[_0x14568c])&&(_0x12dfa3=(_0x5cc20d<0x3?_0x131fb8(_0x12dfa3):_0x5cc20d>0x3?_0x131fb8(_0x113e07,_0x3328e1,_0x12dfa3):_0x131fb8(_0x113e07,_0x3328e1))||_0x12dfa3);}return _0x5cc20d>0x3&&_0x12dfa3&&Object[_0x5d9d54(0xd6)](_0x113e07,_0x3328e1,_0x12dfa3),_0x12dfa3;}let $=class extends _0x2449e5{constructor(_0x5e4e5b=Z,_0x58dfe1,_0x292053,_0x233c6f){const _0x4488c7=_0x42e332;super(),this[_0x4488c7(0x8a)]=_0x5e4e5b,this[_0x4488c7(0xcc)]=_0x58dfe1,this[_0x4488c7(0x9d)]=_0x292053,this[_0x4488c7(0xb8)]=_0x233c6f;let {..._0x880bb5}=_0x11b2d3({},Z,this[_0x4488c7(0x8a)]);this[_0x4488c7(0xb8)][_0x4488c7(0x99)]('ink.config',_0x880bb5);}[_0x42e332(0xa5)](){const _0x324fa2=_0x42e332;[[X,{'useClass':Te}]][_0x324fa2(0x93)](_0x4aa28b=>this['_injector']['add'](_0x4aa28b)),this['disposeWithMe'](this['_commandService']['registerCommand'](Ee));}};function _0x2777(){const _0x51428f=['get','fillColor','_adapters','1.0.0-alpha.3','endIndex','find','point','default','right','start','UNIVER_UNKNOWN','out','segmentIndex','min','slice','kind','opacity','_configService','push','anchors','filter','distance','smooth','none','call','registerAdapter','SolidFill','8858160rRYSbJ','#f54a45','6726GelLiu','abs','indexOf','string','tolerance','splice','free','round','_injector','width','map','closed','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','294lhEVpr','5515120Wczaes','object','version','defineProperty','prototype','iterator','anchorId','2485926oJqkTs','@univerjs-pro/ink','Round','corner','startIndex','7038CIDGAb','386063RWKxik','2177dGkTIG','function','_config','ratio','points','createCustomShape','anchor','69324FRdEaM','hypot','createId','pluginName','forEach','ink.host-adapter.service','beginInkMode','left','max','end','setConfig','symbol','toPrimitive','symmetric','_commandService','15zJioUu','tool','pointType','ink.operation.start','UNIVER_INK_PLUGIN','pen','length','onStarting','top'];_0x2777=function(){return _0x51428f;};return _0x2777();}Y($,_0x42e332(0x92),_0x42e332(0xa2)),Y($,'packageName',Se),Y($,_0x42e332(0xd5),Ce),Y($,_0x42e332(0xd0),_0x5370d0[_0x42e332(0xb1)]),$=De([_0x95406c(_0x3f4697),Q(0x1,_0x9103c7(_0x17a253)),Q(0x2,_0x1a1bff),Q(0x3,_0x2f7050)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
1
+ const _0x4602de=_0x1211;(function(_0x3f01a0,_0x472b08){const _0x2445e8=_0x1211,_0x4562da=_0x3f01a0();while(!![]){try{const _0x4575c4=-parseInt(_0x2445e8(0x1ba))/0x1*(-parseInt(_0x2445e8(0x206))/0x2)+parseInt(_0x2445e8(0x1d7))/0x3+parseInt(_0x2445e8(0x217))/0x4*(-parseInt(_0x2445e8(0x210))/0x5)+parseInt(_0x2445e8(0x20e))/0x6+parseInt(_0x2445e8(0x1c9))/0x7+-parseInt(_0x2445e8(0x213))/0x8*(parseInt(_0x2445e8(0x1cc))/0x9)+-parseInt(_0x2445e8(0x1cf))/0xa;if(_0x4575c4===_0x472b08)break;else _0x4562da['push'](_0x4562da['shift']());}catch(_0x188e55){_0x4562da['push'](_0x4562da['shift']());}}}(_0x4eef,0x9928f));import{ShapeFillEnum as _0x5d1bec,ShapeLineCapEnum as _0x65358a,ShapeLineJoinEnum as _0x3afe2a,ShapeLineTypeEnum as _0x2298b9,ShapeTypeEnum as _0x46339a}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x1c9fb0}from'@univerjs-pro/license';import{CommandType as _0x3e6dda,DependentOn as _0x21f9f4,ICommandService as _0x44cbdf,IConfigService as _0x74df07,Inject as _0x83b12a,Injector as _0x4b9262,Plugin as _0x1732ef,UniverInstanceType as _0x2f3686,createIdentifier as _0x113c29,merge as _0x2ec470,toDisposable as _0x373e13}from'@univerjs/core';const g=0.0001;function _(_0x1b06f7){return{'x':_0x1b06f7['x'],'y':_0x1b06f7['y']};}function v(_0x5d28a2){const _0x330627=_0x1211;return{..._0x5d28a2,'in':_0x5d28a2['in']?_(_0x5d28a2['in']):void 0x0,'out':_0x5d28a2[_0x330627(0x1c1)]?_(_0x5d28a2[_0x330627(0x1c1)]):void 0x0};}function y(_0xc1f21){const _0x5050ee=_0x1211;return{'kind':_0x5050ee(0x218),'closed':_0xc1f21['closed'],'anchors':_0xc1f21['anchors'][_0x5050ee(0x1c4)](v)};}function b(_0xa62ba8,_0x5ab06c,_0x227782){return{'x':_0xa62ba8['x']+(_0x5ab06c['x']-_0xa62ba8['x'])*_0x227782,'y':_0xa62ba8['y']+(_0x5ab06c['y']-_0xa62ba8['y'])*_0x227782};}function x(_0x5f0414,_0x1f50bd){return Math['hypot'](_0x5f0414['x']-_0x1f50bd['x'],_0x5f0414['y']-_0x1f50bd['y']);}function S(_0x213cda){const _0x144da7=_0x1211;let _0x3dcf61=Math[_0x144da7(0x20c)](_0x213cda['x'],_0x213cda['y']);return _0x3dcf61<g?{'x':0x1,'y':0x0}:{'x':_0x213cda['x']/_0x3dcf61,'y':_0x213cda['y']/_0x3dcf61};}function C(_0x3e5920,_0xf56ed9,_0x121ffe=x(_0x3e5920,_0xf56ed9)){let _0x1d0337=S({'x':_0x3e5920['x']-_0xf56ed9['x'],'y':_0x3e5920['y']-_0xf56ed9['y']});return{'x':_0x3e5920['x']+_0x1d0337['x']*_0x121ffe,'y':_0x3e5920['y']+_0x1d0337['y']*_0x121ffe};}function w(_0x56412d,_0x86d914){const _0x3b549c=_0x1211;let {anchors:_0x412221}=_0x56412d;return _0x412221[_0x3b549c(0x1e2)]<0x2||_0x86d914<0x0?null:_0x86d914<_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x86d914,'endIndex':_0x86d914+0x1,'start':_0x412221[_0x86d914],'end':_0x412221[_0x86d914+0x1]}:_0x56412d[_0x3b549c(0x1e0)]&&_0x86d914===_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x412221[_0x3b549c(0x1e2)]-0x1,'endIndex':0x0,'start':_0x412221[_0x412221['length']-0x1],'end':_0x412221[0x0]}:null;}function T(_0x24a0f9,_0x56c8e2){const _0x2e2c3d=_0x1211;var _0x409124,_0x13be96;let _0x1ccda2=w(_0x24a0f9,_0x56c8e2);return _0x1ccda2?[_0x1ccda2['start'],(_0x409124=_0x1ccda2[_0x2e2c3d(0x1fe)][_0x2e2c3d(0x1c1)])==null?_0x1ccda2[_0x2e2c3d(0x1fe)]:_0x409124,(_0x13be96=_0x1ccda2[_0x2e2c3d(0x1bc)]['in'])==null?_0x1ccda2[_0x2e2c3d(0x1bc)]:_0x13be96,_0x1ccda2['end']]:null;}function te(_0x1293cf,_0x5e9d9f){const _0xf2c0b1=_0x1211;var _0x54ac7d;return _0x5e9d9f===_0xf2c0b1(0x1d2)?_0x1293cf:(_0x54ac7d=_0x1293cf[_0x5e9d9f])==null?null:_0x54ac7d;}function E(_0x39b74e,_0x1e87f3,_0x5f40eb){const _0x21bc2d=_0x1211;return _0x5f40eb===_0x21bc2d(0x1d2)||_0x39b74e[_0x21bc2d(0x1e0)]?!0x0:_0x5f40eb==='in'?_0x1e87f3>0x0:_0x1e87f3<_0x39b74e[_0x21bc2d(0x208)]['length']-0x1;}function D(_0xc4a363,_0x24e3ca){let [_0xd205a5,_0x521857,_0x53649d,_0x1cd8b1]=_0xc4a363,_0x5349ff=b(_0xd205a5,_0x521857,_0x24e3ca),_0x19de0c=b(_0x521857,_0x53649d,_0x24e3ca),_0x48bd15=b(_0x53649d,_0x1cd8b1,_0x24e3ca);return b(b(_0x5349ff,_0x19de0c,_0x24e3ca),b(_0x19de0c,_0x48bd15,_0x24e3ca),_0x24e3ca);}function ne(_0x269afc,_0x34cc31){let [_0x125bb2,_0x2dfe57,_0x2d7d5b,_0x1ef5e0]=_0x269afc,_0x1b0e66=b(_0x125bb2,_0x2dfe57,_0x34cc31),_0x3277a6=b(_0x2dfe57,_0x2d7d5b,_0x34cc31),_0xd4755=b(_0x2d7d5b,_0x1ef5e0,_0x34cc31),_0x29c81b=b(_0x1b0e66,_0x3277a6,_0x34cc31),_0x1cab8d=b(_0x3277a6,_0xd4755,_0x34cc31),_0x2fec16=b(_0x29c81b,_0x1cab8d,_0x34cc31);return{'left':[_0x125bb2,_0x1b0e66,_0x29c81b,_0x2fec16],'right':[_0x2fec16,_0x1cab8d,_0xd4755,_0x1ef5e0]};}function O(_0x4409ec,_0x537a41,_0x15fc26){const _0x24a829=_0x1211;let _0x53ae1d=_0x15fc26['x']-_0x537a41['x'],_0x372f42=_0x15fc26['y']-_0x537a41['y'],_0x72ede=_0x53ae1d*_0x53ae1d+_0x372f42*_0x372f42,_0x4e3ceb=_0x72ede<=g?0x0:Math[_0x24a829(0x1f0)](0x0,Math[_0x24a829(0x20d)](0x1,((_0x4409ec['x']-_0x537a41['x'])*_0x53ae1d+(_0x4409ec['y']-_0x537a41['y'])*_0x372f42)/_0x72ede)),_0x46eee2={'x':_0x537a41['x']+_0x53ae1d*_0x4e3ceb,'y':_0x537a41['y']+_0x372f42*_0x4e3ceb};return{'point':_0x46eee2,'ratio':_0x4e3ceb,'distance':x(_0x4409ec,_0x46eee2)};}function re(_0x36345e,_0x5ad9c1,_0x3319f7){const _0xf80425=_0x1211;return O(_0x36345e,_0x5ad9c1,_0x3319f7)[_0xf80425(0x204)]**0x2;}function k(_0x4497aa,_0x570873){const _0x598e87=_0x1211;if(_0x4497aa[_0x598e87(0x1e2)]<=0x2)return _0x4497aa[_0x598e87(0x1c4)](_);let _0x2d0246=0x0,_0x433d3b=0x0,_0x4c83cd=_0x4497aa[0x0],_0x3748c6=_0x4497aa[_0x4497aa[_0x598e87(0x1e2)]-0x1],_0x54fc76=_0x570873*_0x570873;for(let _0x542c3e=0x1;_0x542c3e<_0x4497aa[_0x598e87(0x1e2)]-0x1;_0x542c3e++){let _0x5178d3=re(_0x4497aa[_0x542c3e],_0x4c83cd,_0x3748c6);_0x5178d3>_0x2d0246&&(_0x2d0246=_0x5178d3,_0x433d3b=_0x542c3e);}if(_0x2d0246<=_0x54fc76)return[_(_0x4c83cd),_(_0x3748c6)];let _0xb53819=k(_0x4497aa[_0x598e87(0x1f7)](0x0,_0x433d3b+0x1),_0x570873),_0x14145d=k(_0x4497aa[_0x598e87(0x1f7)](_0x433d3b),_0x570873);return[..._0xb53819[_0x598e87(0x1f7)](0x0,-0x1),..._0x14145d];}function ie(_0x56ba6f,_0x3d7b96){var _0x1690d5;let _0x1a53e6=_0x56ba6f[_0x3d7b96],_0x3b16b8=_0x56ba6f[_0x3d7b96+0x1],_0x12b1d4=(_0x1690d5=_0x56ba6f[_0x3d7b96-0x1])==null?_0x1a53e6:_0x1690d5;return{'x':_0x1a53e6['x']+(_0x3b16b8['x']-_0x12b1d4['x'])/0x6,'y':_0x1a53e6['y']+(_0x3b16b8['y']-_0x12b1d4['y'])/0x6};}function A(_0x4c3d51,_0x3ae085){var _0x469239;let _0xcdb1e2=_0x4c3d51[_0x3ae085],_0x30ba79=_0x4c3d51[_0x3ae085-0x1],_0x2d4a8e=(_0x469239=_0x4c3d51[_0x3ae085+0x1])==null?_0xcdb1e2:_0x469239;return{'x':_0xcdb1e2['x']-(_0x2d4a8e['x']-_0x30ba79['x'])/0x6,'y':_0xcdb1e2['y']-(_0x2d4a8e['y']-_0x30ba79['y'])/0x6};}function j(_0x5f26c4,_0x3c9cfa){const _0x30fc1a=_0x1211;var _0x2cc730,_0x695b47;let _0x30963b=_0x5f26c4[_0x30fc1a(0x208)][_0x3c9cfa],_0xf75166=(_0x2cc730=_0x5f26c4['anchors'][_0x3c9cfa-0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4['anchors'][_0x5f26c4[_0x30fc1a(0x208)][_0x30fc1a(0x1e2)]-0x1]:null:_0x2cc730,_0x3d2d63=(_0x695b47=_0x5f26c4['anchors'][_0x3c9cfa+0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4[_0x30fc1a(0x208)][0x0]:null:_0x695b47,_0x5ac22f=_0xf75166&&_0x3d2d63?S({'x':_0x3d2d63['x']-_0xf75166['x'],'y':_0x3d2d63['y']-_0xf75166['y']}):_0x3d2d63?S({'x':_0x3d2d63['x']-_0x30963b['x'],'y':_0x3d2d63['y']-_0x30963b['y']}):_0xf75166?S({'x':_0x30963b['x']-_0xf75166['x'],'y':_0x30963b['y']-_0xf75166['y']}):{'x':0x1,'y':0x0},_0xea00=_0xf75166&&_0x3d2d63?Math[_0x30fc1a(0x1f0)](0x32,x(_0xf75166,_0x3d2d63)/0x4):0x32;return{'in':{'x':_0x30963b['x']-_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']-_0x5ac22f['y']*_0xea00},'out':{'x':_0x30963b['x']+_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']+_0x5ac22f['y']*_0xea00}};}function M(_0x4e7123,_0x19710d){const _0x192e47=_0x1211;let _0x47150d=_0x4e7123[_0x19710d],_0x17b5c5=_0x19710d==='in'?_0x192e47(0x1c1):'in',_0xb4b260=_0x4e7123[_0x17b5c5];if(_0x47150d){if(_0x4e7123[_0x192e47(0x1ca)]==='symmetric'){_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d);return;}_0x4e7123[_0x192e47(0x1ca)]===_0x192e47(0x1fb)&&(_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d,_0xb4b260?x(_0x4e7123,_0xb4b260):x(_0x4e7123,_0x47150d)));}}function ae(_0x399272,_0x300b72){const _0x295697=_0x1211;let _0x3e60aa=y(_0x399272);return!_0x300b72||_0x3e60aa[_0x295697(0x1e0)]||_0x3e60aa['anchors'][_0x295697(0x1e2)]===0x0||_0x3e60aa[_0x295697(0x208)][_0x295697(0x20b)]({'id':'__ink-preview-anchor__','x':_0x300b72['x'],'y':_0x300b72['y'],'pointType':_0x295697(0x1d0)}),_0x3e60aa;}function oe(_0x886504,_0x164bba={}){const _0x46c4df=_0x1211;var _0x5c3f72,_0x42c755;let _0xd45713=Math['max'](0x0,(_0x5c3f72=_0x164bba[_0x46c4df(0x1c2)])==null?Math[_0x46c4df(0x1f0)](0x4,_0x886504[_0x46c4df(0x1e6)]*0.35):_0x5c3f72),_0x3a33da=(_0x42c755=_0x164bba[_0x46c4df(0x211)])==null?_0x14739f=>'ink-centerline-'+_0x14739f:_0x42c755,_0x5b45f7=k(_0x886504[_0x46c4df(0x1c5)],_0xd45713),_0x2f31ea=_0x5b45f7['map']((_0x361d49,_0x301cc1)=>({'id':_0x3a33da(_0x301cc1),'x':_0x361d49['x'],'y':_0x361d49['y'],'pointType':'free'}));for(let _0x2bdfe1=0x0;_0x2bdfe1<_0x2f31ea[_0x46c4df(0x1e2)]-0x1;_0x2bdfe1++)_0x2f31ea[_0x2bdfe1][_0x46c4df(0x1c1)]=ie(_0x5b45f7,_0x2bdfe1),_0x2f31ea[_0x2bdfe1+0x1]['in']=A(_0x5b45f7,_0x2bdfe1+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2f31ea};}function se(_0x257145,_0x2d28a6,_0x540b63){const _0x74eb19=_0x1211;let _0x5a4344=null,_0x333014=['anchor','in',_0x74eb19(0x1c1)];return _0x257145[_0x74eb19(0x208)]['forEach']((_0x159be7,_0x43724b)=>{const _0x39482a=_0x74eb19;_0x333014[_0x39482a(0x1eb)](_0x4b7b87=>{const _0x28aadd=_0x39482a;if(!E(_0x257145,_0x43724b,_0x4b7b87))return;let _0x11daf2=te(_0x159be7,_0x4b7b87);if(!_0x11daf2)return;let _0xb0b9f4=x(_0x2d28a6,_0x11daf2);_0xb0b9f4>_0x540b63||_0x5a4344&&_0xb0b9f4>=_0x5a4344[_0x28aadd(0x204)]||(_0x5a4344={'handle':{'kind':_0x4b7b87,'anchorId':_0x159be7['id']},'point':_(_0x11daf2),'distance':_0xb0b9f4});});}),_0x5a4344;}function ce(_0x2f4669,_0x4a01bb,_0xf8532d){const _0x3d06b4=_0x1211;let _0x1cf6e5=null,_0x424aae=_0x2f4669[_0x3d06b4(0x1e0)]?_0x2f4669[_0x3d06b4(0x208)]['length']:Math[_0x3d06b4(0x1f0)](0x0,_0x2f4669[_0x3d06b4(0x208)][_0x3d06b4(0x1e2)]-0x1);for(let _0x438b3d=0x0;_0x438b3d<_0x424aae;_0x438b3d++){let _0xa1baef=T(_0x2f4669,_0x438b3d);if(!_0xa1baef)continue;let _0x5a8c61=D(_0xa1baef,0x0);for(let _0x1c3df9=0x1;_0x1c3df9<=0x20;_0x1c3df9++){let _0x2de5d7=D(_0xa1baef,_0x1c3df9/0x20),_0x55ba1f=O(_0x4a01bb,_0x5a8c61,_0x2de5d7),_0x535d41=(_0x1c3df9-0x1+_0x55ba1f[_0x3d06b4(0x201)])/0x20;(!_0x1cf6e5||_0x55ba1f[_0x3d06b4(0x204)]<_0x1cf6e5[_0x3d06b4(0x204)])&&(_0x1cf6e5={'segmentIndex':_0x438b3d,'t':_0x535d41,'point':_0x55ba1f[_0x3d06b4(0x205)],'distance':_0x55ba1f[_0x3d06b4(0x204)]}),_0x5a8c61=_0x2de5d7;}}return _0x1cf6e5&&_0x1cf6e5[_0x3d06b4(0x204)]<=_0xf8532d?_0x1cf6e5:null;}function le(_0x3fb92d,_0x128497,_0x2f749b){const _0x7f4f23=_0x1211;let _0x1a9ee0=y(_0x3fb92d),_0x394f0f=w(_0x1a9ee0,_0x128497[_0x7f4f23(0x1fd)]),_0x1e25ae=T(_0x1a9ee0,_0x128497['segmentIndex']);if(!_0x394f0f||!_0x1e25ae)return _0x1a9ee0;let _0x31dfcf=ne(_0x1e25ae,Math[_0x7f4f23(0x1f0)](0x0,Math[_0x7f4f23(0x20d)](0x1,_0x128497['t']))),_0x2a9439={'id':_0x2f749b(),'x':_0x31dfcf['left'][0x3]['x'],'y':_0x31dfcf['left'][0x3]['y'],'in':_(_0x31dfcf[_0x7f4f23(0x1ea)][0x2]),'out':_(_0x31dfcf[_0x7f4f23(0x1be)][0x1]),'pointType':'free'};return _0x1a9ee0['anchors'][_0x394f0f[_0x7f4f23(0x1ef)]]['out']=_(_0x31dfcf[_0x7f4f23(0x1ea)][0x1]),_0x1a9ee0[_0x7f4f23(0x208)][_0x394f0f[_0x7f4f23(0x1f2)]]['in']=_(_0x31dfcf[_0x7f4f23(0x1be)][0x2]),_0x1a9ee0[_0x7f4f23(0x208)][_0x7f4f23(0x1e9)](_0x394f0f[_0x7f4f23(0x1ef)]+0x1,0x0,_0x2a9439),_0x1a9ee0;}function ue(_0x29689b,_0xb58bb9){const _0x12af36=_0x1211;let _0x2ff724=y(_0x29689b);return _0x2ff724[_0x12af36(0x208)]=_0x2ff724[_0x12af36(0x208)][_0x12af36(0x1f5)](_0x412bcd=>_0x412bcd['id']!==_0xb58bb9),_0x2ff724['closed']&&_0x2ff724['anchors'][_0x12af36(0x1e2)]<0x3&&(_0x2ff724['closed']=!0x1),_0x2ff724;}function N(_0x1b95dc,_0x452f7c,_0x2d0da4){const _0x2ac18c=_0x1211;let _0xbd07b8=y(_0x1b95dc),_0xdf433a=_0xbd07b8[_0x2ac18c(0x208)][_0x2ac18c(0x1d8)](_0x33bb3d=>_0x33bb3d['id']===_0x452f7c),_0x4766e5=_0xbd07b8[_0x2ac18c(0x208)][_0xdf433a];if(!_0x4766e5)return _0xbd07b8;if(_0x4766e5[_0x2ac18c(0x1ca)]=_0x2d0da4,_0x2d0da4===_0x2ac18c(0x1d0))return delete _0x4766e5['in'],delete _0x4766e5[_0x2ac18c(0x1c1)],_0xbd07b8;let _0x4ab650=j(_0xbd07b8,_0xdf433a);if(_0x4766e5['in']=_0x4766e5['in']?_(_0x4766e5['in']):_0x4ab650['in'],_0x4766e5[_0x2ac18c(0x1c1)]=_0x4766e5[_0x2ac18c(0x1c1)]?_(_0x4766e5[_0x2ac18c(0x1c1)]):_0x4ab650['out'],_0x2d0da4==='symmetric'){let _0x3b9cb0=Math[_0x2ac18c(0x1f0)](x(_0x4766e5,_0x4766e5['in']),x(_0x4766e5,_0x4766e5[_0x2ac18c(0x1c1)]),0x32),_0x5bff36=S({'x':_0x4766e5[_0x2ac18c(0x1c1)]['x']-_0x4766e5['x'],'y':_0x4766e5[_0x2ac18c(0x1c1)]['y']-_0x4766e5['y']});_0x4766e5['out']={'x':_0x4766e5['x']+_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']+_0x5bff36['y']*_0x3b9cb0},_0x4766e5['in']={'x':_0x4766e5['x']-_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']-_0x5bff36['y']*_0x3b9cb0};}else _0x2d0da4===_0x2ac18c(0x1fb)&&M(_0x4766e5,'out');return _0xbd07b8;}function P(_0x54aa08,_0x7ffa3a){const _0x39c7e6=_0x1211;var _0x2d548c;let _0x51d1f1=_0x54aa08[_0x39c7e6(0x208)][_0x39c7e6(0x1f3)](_0x4e2fcc=>_0x4e2fcc['id']===_0x7ffa3a),_0x591db9=(_0x2d548c=_0x51d1f1==null?void 0x0:_0x51d1f1[_0x39c7e6(0x1ca)])==null?_0x39c7e6(0x1d0):_0x2d548c;return N(_0x54aa08,_0x7ffa3a,_0x591db9===_0x39c7e6(0x1d0)?_0x39c7e6(0x1fb):_0x591db9===_0x39c7e6(0x1fb)?_0x39c7e6(0x1de):_0x591db9===_0x39c7e6(0x1de)?'free':_0x39c7e6(0x1d0));}function F(_0x2b9e1f,_0x56c7aa,_0x26a2a0){const _0x1dab27=_0x1211;let _0xc44bde=y(_0x2b9e1f),_0x27e436=_0xc44bde[_0x1dab27(0x208)][_0x1dab27(0x1f3)](_0x1ea924=>_0x1ea924['id']===_0x56c7aa['anchorId']);if(!_0x27e436)return _0xc44bde;if(_0x56c7aa[_0x1dab27(0x1f8)]===_0x1dab27(0x1d2)){let _0x39f456={'x':_0x26a2a0['x']-_0x27e436['x'],'y':_0x26a2a0['y']-_0x27e436['y']};return _0x27e436['x']=_0x26a2a0['x'],_0x27e436['y']=_0x26a2a0['y'],_0x27e436['in']&&(_0x27e436['in']={'x':_0x27e436['in']['x']+_0x39f456['x'],'y':_0x27e436['in']['y']+_0x39f456['y']}),_0x27e436[_0x1dab27(0x1c1)]&&(_0x27e436[_0x1dab27(0x1c1)]={'x':_0x27e436[_0x1dab27(0x1c1)]['x']+_0x39f456['x'],'y':_0x27e436[_0x1dab27(0x1c1)]['y']+_0x39f456['y']}),_0xc44bde;}return _0x27e436[_0x56c7aa['kind']]=_(_0x26a2a0),_0x27e436[_0x1dab27(0x1ca)]===_0x1dab27(0x1d0)&&(_0x27e436['pointType']=_0x1dab27(0x1f1)),M(_0x27e436,_0x56c7aa[_0x1dab27(0x1f8)]),_0xc44bde;}const I=1e-9;function L(_0x541be4){let _0x3c36af=Math['round'](_0x541be4*0x2710)/0x2710;return Object['is'](_0x3c36af,-0x0)?'0':String(_0x3c36af);}function R(_0x4c1145){return L(_0x4c1145['x'])+'\x20'+L(_0x4c1145['y']);}function z(_0x1de858,_0x3fc130){return{'x':_0x1de858['x']-_0x3fc130['x'],'y':_0x1de858['y']-_0x3fc130['y']};}function B(_0x241449,_0x550f5b,_0x1cef1b,_0x1a92ff,_0x553fac){let _0x414655=0x1-_0x553fac;return{'x':_0x414655*_0x414655*_0x414655*_0x241449['x']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['x']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['x']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['x'],'y':_0x414655*_0x414655*_0x414655*_0x241449['y']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['y']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['y']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['y']};}function V(_0x3d1ece,_0x345da1,_0x4494f0,_0x4e1c7d){const _0x5b0fea=_0x1211;let _0x2b2437=-_0x3d1ece+0x3*_0x345da1-0x3*_0x4494f0+_0x4e1c7d,_0x2fc981=0x3*_0x3d1ece-0x6*_0x345da1+0x3*_0x4494f0,_0x44d4e4=-0x3*_0x3d1ece+0x3*_0x345da1,_0x34331a=[];if(Math[_0x5b0fea(0x1e4)](_0x2b2437)<I){if(Math['abs'](_0x2fc981)<I)return _0x34331a;let _0x287154=-_0x44d4e4/(0x2*_0x2fc981);return _0x287154>0x0&&_0x287154<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x287154),_0x34331a;}let _0x2792aa=_0x2fc981*_0x2fc981-0x3*_0x2b2437*_0x44d4e4;if(_0x2792aa<0x0)return _0x34331a;let _0x6dd9c4=Math['sqrt'](Math['max'](0x0,_0x2792aa)),_0x14e6b1=(-_0x2fc981+_0x6dd9c4)/(0x3*_0x2b2437),_0x238582=(-_0x2fc981-_0x6dd9c4)/(0x3*_0x2b2437);return _0x14e6b1>0x0&&_0x14e6b1<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x14e6b1),_0x238582>0x0&&_0x238582<0x1&&Math['abs'](_0x238582-_0x14e6b1)>I&&_0x34331a['push'](_0x238582),_0x34331a;}function _0x1211(_0x50ed2e,_0xe8e419){_0x50ed2e=_0x50ed2e-0x1ba;const _0x4eef04=_0x4eef();let _0x121192=_0x4eef04[_0x50ed2e];return _0x121192;}function H(_0x4f601d,_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f){const _0x573c7e=_0x1211;_0x4f601d[_0x573c7e(0x20b)](_0x2224c5,_0x36900f),new Set([...V(_0x2224c5['x'],_0x46cadd['x'],_0x1987c1['x'],_0x36900f['x']),...V(_0x2224c5['y'],_0x46cadd['y'],_0x1987c1['y'],_0x36900f['y'])])[_0x573c7e(0x1eb)](_0x2aeff6=>{const _0x30aae2=_0x573c7e;_0x4f601d[_0x30aae2(0x20b)](B(_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f,_0x2aeff6));});}function U(_0x1c2ad0){const _0x4b8f70=_0x1211;let _0x532f0f=_0x1c2ad0[_0x4b8f70(0x208)];if(_0x532f0f['length']<=0x1)return _0x532f0f;let _0x3cf711=[];for(let _0x6de75a=0x1;_0x6de75a<_0x532f0f[_0x4b8f70(0x1e2)];_0x6de75a++){var _0x2d4159,_0x1d3f32;let _0x42ce86=_0x532f0f[_0x6de75a-0x1],_0x3e729c=_0x532f0f[_0x6de75a];H(_0x3cf711,_0x42ce86,(_0x2d4159=_0x42ce86[_0x4b8f70(0x1c1)])==null?_0x42ce86:_0x2d4159,(_0x1d3f32=_0x3e729c['in'])==null?_0x3e729c:_0x1d3f32,_0x3e729c);}if(_0x1c2ad0['closed']&&_0x532f0f[_0x4b8f70(0x1e2)]>0x1){var _0x30eb6b,_0xed4e9f;let _0x43247a=_0x532f0f[_0x532f0f[_0x4b8f70(0x1e2)]-0x1],_0x25e565=_0x532f0f[0x0];H(_0x3cf711,_0x43247a,(_0x30eb6b=_0x43247a[_0x4b8f70(0x1c1)])==null?_0x43247a:_0x30eb6b,(_0xed4e9f=_0x25e565['in'])==null?_0x25e565:_0xed4e9f,_0x25e565);}return _0x3cf711;}function de(_0x75b221){const _0x2e8f98=_0x1211;let _0x4912c2=_0x75b221[_0x2e8f98(0x1c5)];if(_0x4912c2[_0x2e8f98(0x1e2)]<=0x1)return _0x4912c2;let _0x3dcfc6=[];for(let _0x5ef848=0x0;_0x5ef848<_0x4912c2[_0x2e8f98(0x1e2)]-0x1;_0x5ef848++){var _0x8dcc5c,_0x2081ce;let _0x871f0f=_0x4912c2[_0x5ef848],_0x239bdb=_0x4912c2[_0x5ef848+0x1],_0x546780=(_0x8dcc5c=_0x4912c2[_0x5ef848-0x1])==null?_0x871f0f:_0x8dcc5c,_0x344ea5=(_0x2081ce=_0x4912c2[_0x5ef848+0x2])==null?_0x239bdb:_0x2081ce;H(_0x3dcfc6,_0x871f0f,{'x':_0x871f0f['x']+(_0x239bdb['x']-_0x546780['x'])/0x6,'y':_0x871f0f['y']+(_0x239bdb['y']-_0x546780['y'])/0x6},{'x':_0x239bdb['x']-(_0x344ea5['x']-_0x871f0f['x'])/0x6,'y':_0x239bdb['y']-(_0x344ea5['y']-_0x871f0f['y'])/0x6},_0x239bdb);}return _0x3dcfc6;}function fe(_0x9f0f16){const _0x3f3ed5=_0x1211;return _0x9f0f16['kind']===_0x3f3ed5(0x218)?U(_0x9f0f16):de(_0x9f0f16);}function W(_0x22537b){const _0x4abce3=_0x1211;let _0x4a4690=Math[_0x4abce3(0x20f)](_0x22537b*0x2710)/0x2710;return Object['is'](_0x4a4690,-0x0)?0x0:_0x4a4690;}function G(_0x529191){const _0x59a956=_0x1211;let _0x256152=fe(_0x529191);if(_0x256152['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x467b54=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x5c79ff=>_0x5c79ff['x'])),_0xc4946b=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x142167=>_0x142167['y'])),_0x5aa992=Math[_0x59a956(0x1f0)](..._0x256152[_0x59a956(0x1c4)](_0x7c0829=>_0x7c0829['x'])),_0xe8ac3e=Math['max'](..._0x256152['map'](_0x17e09c=>_0x17e09c['y']));return{'left':W(_0x467b54),'top':W(_0xc4946b),'width':W(Math['max'](0x1,_0x5aa992-_0x467b54)),'height':W(Math[_0x59a956(0x1f0)](0x1,_0xe8ac3e-_0xc4946b))};}function pe(_0x3e2b30,_0x124fb7){const _0x74e596=_0x1211;let _0x47cf4c=_0x3e2b30[_0x74e596(0x208)];if(_0x47cf4c[_0x74e596(0x1e2)]===0x0)return'';let _0x95e36d=['M\x20'+R(z(_0x47cf4c[0x0],_0x124fb7))];for(let _0x4ee1e5=0x1;_0x4ee1e5<_0x47cf4c[_0x74e596(0x1e2)];_0x4ee1e5++){var _0x343f97,_0xb4b90e;let _0x27a4d4=_0x47cf4c[_0x4ee1e5-0x1],_0x4bce27=_0x47cf4c[_0x4ee1e5],_0x338c1b=(_0x343f97=_0x27a4d4[_0x74e596(0x1c1)])==null?_0x27a4d4:_0x343f97,_0x1e3317=(_0xb4b90e=_0x4bce27['in'])==null?_0x4bce27:_0xb4b90e;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0x338c1b,_0x124fb7))+'\x20'+R(z(_0x1e3317,_0x124fb7))+'\x20'+R(z(_0x4bce27,_0x124fb7)));}if(_0x3e2b30[_0x74e596(0x1e0)]&&_0x47cf4c[_0x74e596(0x1e2)]>0x1){var _0x127d8f,_0x391377;let _0x36dfda=_0x47cf4c[_0x47cf4c[_0x74e596(0x1e2)]-0x1],_0x1618b2=_0x47cf4c[0x0],_0xafc868=(_0x127d8f=_0x36dfda[_0x74e596(0x1c1)])==null?_0x36dfda:_0x127d8f,_0x1de550=(_0x391377=_0x1618b2['in'])==null?_0x1618b2:_0x391377;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0xafc868,_0x124fb7))+'\x20'+R(z(_0x1de550,_0x124fb7))+'\x20'+R(z(_0x1618b2,_0x124fb7))),_0x95e36d[_0x74e596(0x20b)]('Z');}return _0x95e36d['join']('\x20');}function me(_0x16c425,_0x5c128b){const _0x38b1ff=_0x1211;let _0x265969=_0x16c425[_0x38b1ff(0x1c5)][_0x38b1ff(0x1c4)](_0xaed080=>z(_0xaed080,_0x5c128b));if(_0x265969[_0x38b1ff(0x1e2)]===0x0)return'';if(_0x265969[_0x38b1ff(0x1e2)]===0x1)return'M\x20'+R(_0x265969[0x0]);let _0x5bc61b=['M\x20'+R(_0x265969[0x0])];for(let _0x4ca555=0x0;_0x4ca555<_0x265969[_0x38b1ff(0x1e2)]-0x1;_0x4ca555++){var _0xc7926b,_0x19feba;let _0x445dca=_0x265969[_0x4ca555],_0x3792ed=_0x265969[_0x4ca555+0x1],_0x4b6c96=(_0xc7926b=_0x265969[_0x4ca555-0x1])==null?_0x445dca:_0xc7926b,_0x17cfc5=(_0x19feba=_0x265969[_0x4ca555+0x2])==null?_0x3792ed:_0x19feba,_0x14c2c2={'x':_0x445dca['x']+(_0x3792ed['x']-_0x4b6c96['x'])/0x6,'y':_0x445dca['y']+(_0x3792ed['y']-_0x4b6c96['y'])/0x6},_0x19d58a={'x':_0x3792ed['x']-(_0x17cfc5['x']-_0x445dca['x'])/0x6,'y':_0x3792ed['y']-(_0x17cfc5['y']-_0x445dca['y'])/0x6};_0x5bc61b[_0x38b1ff(0x20b)]('C\x20'+R(_0x14c2c2)+'\x20'+R(_0x19d58a)+'\x20'+R(_0x3792ed));}return _0x5bc61b['join']('\x20');}function he(_0x3bd850,_0x5b0f86){const _0x3179ab=_0x1211;return _0x3bd850[_0x3179ab(0x1f8)]===_0x3179ab(0x218)?pe(_0x3bd850,_0x5b0f86):me(_0x3bd850,_0x5b0f86);}function ge(_0x57783c,_0x578a2a){const _0x2572b8=_0x1211;return _0x578a2a!=null&&_0x578a2a[_0x2572b8(0x202)]?_0x578a2a['color']:_0x57783c[_0x2572b8(0x1f8)]===_0x2572b8(0x218)?_0x2572b8(0x1d9):_0x57783c[_0x2572b8(0x202)];}function _e(_0x112a65,_0x5bdcf7){const _0x1f50d3=_0x1211;return(_0x5bdcf7==null?void 0x0:_0x5bdcf7[_0x1f50d3(0x1e6)])===void 0x0?_0x112a65['kind']==='pen'?0x2:_0x112a65[_0x1f50d3(0x1e6)]:_0x5bdcf7[_0x1f50d3(0x1e6)];}function ve(_0x599071,_0x2a1419){return(_0x2a1419==null?void 0x0:_0x2a1419['opacity'])===void 0x0?_0x599071['kind']==='pen'?void 0x0:_0x599071['opacity']:_0x2a1419['opacity'];}function ye(_0x3c585a,_0x6ea5f3){const _0x39e5dd=_0x1211;let _0x385a5e=G(_0x3c585a),_0x5ab225=he(_0x3c585a,{'x':_0x385a5e['left'],'y':_0x385a5e[_0x39e5dd(0x216)]}),_0x58a50c=_0x3c585a['kind']===_0x39e5dd(0x218)&&_0x3c585a[_0x39e5dd(0x1e0)],_0xbd4be8=_0x6ea5f3==null?void 0x0:_0x6ea5f3[_0x39e5dd(0x1e8)];return{'shapeType':_0x46339a[_0x39e5dd(0x1e3)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x385a5e['width'],'h':_0x385a5e[_0x39e5dd(0x1df)],'fill':_0x58a50c?_0x39e5dd(0x1e1):_0x39e5dd(0x1ec),'stroke':!0x0,'data':_0x5ab225,'dataArray':be(_0x3c585a,{'x':_0x385a5e[_0x39e5dd(0x1ea)],'y':_0x385a5e[_0x39e5dd(0x216)]})}]},'fill':_0x58a50c&&_0xbd4be8?{'color':_0xbd4be8,'fillType':_0x5d1bec[_0x39e5dd(0x1e7)]}:{'fillType':_0x5d1bec[_0x39e5dd(0x207)]},'stroke':{'color':ge(_0x3c585a,_0x6ea5f3),'width':_e(_0x3c585a,_0x6ea5f3),'opacity':ve(_0x3c585a,_0x6ea5f3),'lineStrokeType':_0x2298b9[_0x39e5dd(0x209)],'capType':_0x65358a['Round'],'lineJoinType':_0x3afe2a[_0x39e5dd(0x203)]}};}function K(_0x32c7ff,_0x2801d5){return{'x':_0x32c7ff['x']-_0x2801d5['x'],'y':_0x32c7ff['y']-_0x2801d5['y']};}function be(_0x2930cd,_0x1b786f){const _0x321054=_0x1211;if(_0x2930cd[_0x321054(0x1f8)]===_0x321054(0x218)){let _0xa547a7=_0x2930cd[_0x321054(0x208)];if(_0xa547a7['length']===0x0)return[];let _0x279dcd=K(_0xa547a7[0x0],_0x1b786f),_0x376d48=[{'command':'M','points':[_0x279dcd['x'],_0x279dcd['y']]}];for(let _0x5d9ba7=0x1;_0x5d9ba7<_0xa547a7[_0x321054(0x1e2)];_0x5d9ba7++){var _0x2bda0c,_0x1845b6;let _0x21ea08=_0xa547a7[_0x5d9ba7-0x1],_0x1e56e0=_0xa547a7[_0x5d9ba7],_0xfebf11=K((_0x2bda0c=_0x21ea08[_0x321054(0x1c1)])==null?_0x21ea08:_0x2bda0c,_0x1b786f),_0x5141fa=K((_0x1845b6=_0x1e56e0['in'])==null?_0x1e56e0:_0x1845b6,_0x1b786f),_0x17b306=K(_0x1e56e0,_0x1b786f);_0x376d48['push']({'command':'C','points':[_0xfebf11['x'],_0xfebf11['y'],_0x5141fa['x'],_0x5141fa['y'],_0x17b306['x'],_0x17b306['y']]});}if(_0x2930cd[_0x321054(0x1e0)]&&_0xa547a7[_0x321054(0x1e2)]>0x1){var _0x455314,_0xd8fe87;let _0x40a46b=_0xa547a7[_0xa547a7[_0x321054(0x1e2)]-0x1],_0x56f055=_0xa547a7[0x0],_0x36dec7=K((_0x455314=_0x40a46b['out'])==null?_0x40a46b:_0x455314,_0x1b786f),_0x3cea01=K((_0xd8fe87=_0x56f055['in'])==null?_0x56f055:_0xd8fe87,_0x1b786f),_0x37d2d9=K(_0x56f055,_0x1b786f);_0x376d48[_0x321054(0x20b)]({'command':'C','points':[_0x36dec7['x'],_0x36dec7['y'],_0x3cea01['x'],_0x3cea01['y'],_0x37d2d9['x'],_0x37d2d9['y']]}),_0x376d48[_0x321054(0x20b)]({'command':'z','points':[]});}return _0x376d48;}let _0x4bf39c=_0x2930cd[_0x321054(0x1c5)][_0x321054(0x1c4)](_0x2a50ac=>K(_0x2a50ac,_0x1b786f));if(_0x4bf39c[_0x321054(0x1e2)]===0x0)return[];let _0x42a2eb=[{'command':'M','points':[_0x4bf39c[0x0]['x'],_0x4bf39c[0x0]['y']]}];for(let _0x2eb88b=0x0;_0x2eb88b<_0x4bf39c[_0x321054(0x1e2)]-0x1;_0x2eb88b++){var _0x5271fe,_0x1e9e16;let _0x4a856f=_0x4bf39c[_0x2eb88b],_0x5a1c20=_0x4bf39c[_0x2eb88b+0x1],_0xd3b4ad=(_0x5271fe=_0x4bf39c[_0x2eb88b-0x1])==null?_0x4a856f:_0x5271fe,_0x3fc1c1=(_0x1e9e16=_0x4bf39c[_0x2eb88b+0x2])==null?_0x5a1c20:_0x1e9e16,_0x2138b6={'x':_0x4a856f['x']+(_0x5a1c20['x']-_0xd3b4ad['x'])/0x6,'y':_0x4a856f['y']+(_0x5a1c20['y']-_0xd3b4ad['y'])/0x6},_0x30c6a8={'x':_0x5a1c20['x']-(_0x3fc1c1['x']-_0x4a856f['x'])/0x6,'y':_0x5a1c20['y']-(_0x3fc1c1['y']-_0x4a856f['y'])/0x6};_0x42a2eb[_0x321054(0x20b)]({'command':'C','points':[_0x2138b6['x'],_0x2138b6['y'],_0x30c6a8['x'],_0x30c6a8['y'],_0x5a1c20['x'],_0x5a1c20['y']]});}return _0x42a2eb;}function xe(_0x43204b){const _0x180ace=_0x1211;var _0x3e228f;let {model:_0xa3d708,sourceModel:_0x24778f=_0xa3d708,style:_0x170177}=_0x43204b,_0x194a95=(_0x3e228f=_0x43204b[_0x180ace(0x215)])==null?_0xa3d708['kind']:_0x3e228f,_0x2525c9=G(_0xa3d708),_0x3214d8=_0xa3d708[_0x180ace(0x1f8)]==='pen'&&_0x194a95!=='pen'?_0xa3d708:void 0x0;return{'transform':{..._0x2525c9,'rotation':0x0},'shapeData':ye(_0xa3d708,_0x170177),'ink':{'version':0x1,'tool':_0x194a95,'sourceModel':_0x24778f,..._0x3214d8?{'editModel':_0x3214d8}:{},'normalizedBounds':_0x2525c9}};}var Se=_0x4602de(0x1c0),Ce=_0x4602de(0x1c7);function q(_0x3db7cb){'@babel/helpers - typeof';const _0xe4ad9e=_0x4602de;return q=typeof Symbol=='function'&&typeof Symbol[_0xe4ad9e(0x1f4)]==_0xe4ad9e(0x214)?function(_0x12e51e){return typeof _0x12e51e;}:function(_0x3d0599){const _0x129da7=_0xe4ad9e;return _0x3d0599&&typeof Symbol=='function'&&_0x3d0599[_0x129da7(0x1bf)]===Symbol&&_0x3d0599!==Symbol[_0x129da7(0x1ff)]?_0x129da7(0x214):typeof _0x3d0599;},q(_0x3db7cb);}function we(_0x4616bb,_0x3450ed){const _0x308030=_0x4602de;if(q(_0x4616bb)!='object'||!_0x4616bb)return _0x4616bb;var _0x37d4fd=_0x4616bb[Symbol[_0x308030(0x1bd)]];if(_0x37d4fd!==void 0x0){var _0x1337d6=_0x37d4fd[_0x308030(0x1c6)](_0x4616bb,_0x3450ed||_0x308030(0x1d1));if(q(_0x1337d6)!=_0x308030(0x1ce))return _0x1337d6;throw TypeError(_0x308030(0x1e5));}return(_0x3450ed===_0x308030(0x1cd)?String:Number)(_0x4616bb);}function J(_0x2cf7d5){var _0x2588a4=we(_0x2cf7d5,'string');return q(_0x2588a4)=='symbol'?_0x2588a4:_0x2588a4+'';}function Y(_0x2c7ade,_0x497417,_0x5a1879){const _0x58d322=_0x4602de;return(_0x497417=J(_0x497417))in _0x2c7ade?Object[_0x58d322(0x1d3)](_0x2c7ade,_0x497417,{'value':_0x5a1879,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c7ade[_0x497417]=_0x5a1879,_0x2c7ade;}const X=_0x113c29(_0x4602de(0x1ee));function _0x4eef(){const _0x496427=['registerCommand','8wQWMzo','symbol','tool','top','100292uigght','pen','1025282PXmaBs','UNIVER_UNKNOWN','end','toPrimitive','right','constructor','@univerjs-pro/ink','out','tolerance','_config','map','points','call','1.0.0-alpha.5','_configService','3181017VlRlDb','pointType','ink.operation.start','3458565PsOtLJ','string','object','9535700nxXkRG','corner','default','anchor','defineProperty','createCustomShape','get','_adapters','2624610OdnZzg','findIndex','#f54a45','pluginName','version','disposeWithMe','_injector','symmetric','height','closed','norm','length','Rect','abs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','width','SolidFill','fillColor','splice','left','forEach','none','add','ink.host-adapter.service','startIndex','max','free','endIndex','find','iterator','filter','decorate','slice','kind','beginInkMode','OPERATION','smooth','getOwnPropertyDescriptor','segmentIndex','start','prototype','type','ratio','color','Round','distance','point','2cOGgSL','NoFill','anchors','SolidLine','_commandService','push','hypot','min','973326xGVAaR','round','110sAsyTy','createId'];_0x4eef=function(){return _0x496427;};return _0x4eef();}var Te=class{constructor(){const _0x13fc70=_0x4602de;Y(this,_0x13fc70(0x1d6),[]);}['registerAdapter'](_0x21da3f){const _0x542b73=_0x4602de;return this['_adapters'][_0x542b73(0x20b)](_0x21da3f),_0x373e13(()=>{const _0x1f15f7=_0x542b73;let _0x1a116b=this[_0x1f15f7(0x1d6)]['indexOf'](_0x21da3f);_0x1a116b>=0x0&&this['_adapters'][_0x1f15f7(0x1e9)](_0x1a116b,0x1);});}[_0x4602de(0x1f9)](_0x5db213){const _0x15ac98=_0x4602de;for(let _0x324ad8 of this['_adapters'])if(_0x324ad8[_0x15ac98(0x1f9)](_0x5db213))return!0x0;return!0x1;}async[_0x4602de(0x1d4)](_0x548593){const _0x17606c=_0x4602de;for(let _0x4ccc14 of this[_0x17606c(0x1d6)])if(_0x4ccc14[_0x17606c(0x1d4)]&&await _0x4ccc14[_0x17606c(0x1d4)](_0x548593))return!0x0;return!0x1;}};const Ee={'id':_0x4602de(0x1cb),'type':_0x3e6dda[_0x4602de(0x1fa)],'handler':(_0x3a5dbd,_0x2585f5)=>_0x2585f5?_0x3a5dbd[_0x4602de(0x1d5)](X)[_0x4602de(0x1f9)](_0x2585f5):!0x1},Z={};function Q(_0x932558,_0x2acae1){return function(_0x1c3776,_0x1cc47c){_0x2acae1(_0x1c3776,_0x1cc47c,_0x932558);};}function De(_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17){const _0x450c75=_0x4602de;var _0x167094=arguments['length'],_0x1012ae=_0x167094<0x3?_0x1a89e1:_0x174c17===null?_0x174c17=Object[_0x450c75(0x1fc)](_0x1a89e1,_0x88ebdb):_0x174c17,_0x5abb30;if(typeof Reflect==_0x450c75(0x1ce)&&typeof Reflect[_0x450c75(0x1f6)]=='function')_0x1012ae=Reflect[_0x450c75(0x1f6)](_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17);else{for(var _0x5857d2=_0x382d75[_0x450c75(0x1e2)]-0x1;_0x5857d2>=0x0;_0x5857d2--)(_0x5abb30=_0x382d75[_0x5857d2])&&(_0x1012ae=(_0x167094<0x3?_0x5abb30(_0x1012ae):_0x167094>0x3?_0x5abb30(_0x1a89e1,_0x88ebdb,_0x1012ae):_0x5abb30(_0x1a89e1,_0x88ebdb))||_0x1012ae);}return _0x167094>0x3&&_0x1012ae&&Object[_0x450c75(0x1d3)](_0x1a89e1,_0x88ebdb,_0x1012ae),_0x1012ae;}let $=class extends _0x1732ef{constructor(_0x49581a=Z,_0x2251c4,_0x2e4743,_0x25a73b){const _0x4a00e1=_0x4602de;super(),this['_config']=_0x49581a,this[_0x4a00e1(0x1dd)]=_0x2251c4,this[_0x4a00e1(0x20a)]=_0x2e4743,this[_0x4a00e1(0x1c8)]=_0x25a73b;let {..._0x2bde7d}=_0x2ec470({},Z,this[_0x4a00e1(0x1c3)]);this['_configService']['setConfig']('ink.config',_0x2bde7d);}['onStarting'](){const _0x5791bb=_0x4602de;[[X,{'useClass':Te}]][_0x5791bb(0x1eb)](_0x1192e8=>this[_0x5791bb(0x1dd)][_0x5791bb(0x1ed)](_0x1192e8)),this[_0x5791bb(0x1dc)](this[_0x5791bb(0x20a)][_0x5791bb(0x212)](Ee));}};Y($,_0x4602de(0x1da),'UNIVER_INK_PLUGIN'),Y($,'packageName',Se),Y($,_0x4602de(0x1db),Ce),Y($,_0x4602de(0x200),_0x2f3686[_0x4602de(0x1bb)]),$=De([_0x21f9f4(_0x1c9fb0),Q(0x1,_0x83b12a(_0x4b9262)),Q(0x2,_0x44cbdf),Q(0x3,_0x74df07)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x2754(_0x5347af,_0x417eec){_0x5347af=_0x5347af-0x74;const _0x13d82a=_0x13d8();let _0x275423=_0x13d82a[_0x5347af];return _0x275423;}(function(_0x3f20cb,_0x40cf76){const _0x58be91=_0x2754,_0x515676=_0x3f20cb();while(!![]){try{const _0x3d6c11=-parseInt(_0x58be91(0x84))/0x1+parseInt(_0x58be91(0x79))/0x2+parseInt(_0x58be91(0xaf))/0x3+parseInt(_0x58be91(0xb5))/0x4+parseInt(_0x58be91(0x77))/0x5+-parseInt(_0x58be91(0x8a))/0x6+-parseInt(_0x58be91(0x7e))/0x7;if(_0x3d6c11===_0x40cf76)break;else _0x515676['push'](_0x515676['shift']());}catch(_0x807978){_0x515676['push'](_0x515676['shift']());}}}(_0x13d8,0x2ba1f),function(_0x4ae7ad,_0x38c5ad){const _0xa2bd1d=_0x2754;typeof exports==_0xa2bd1d(0xa9)&&typeof module<'u'?_0x38c5ad(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0xa2bd1d(0x75)&&define['amd']?define([_0xa2bd1d(0x8c),_0xa2bd1d(0x81),'@univerjs-pro/boards/facade',_0xa2bd1d(0x91),_0xa2bd1d(0x96),_0xa2bd1d(0xb3)],_0x38c5ad):(_0x4ae7ad=typeof globalThis<'u'?globalThis:_0x4ae7ad||self,_0x38c5ad(_0x4ae7ad[_0xa2bd1d(0xa3)]={},_0x4ae7ad[_0xa2bd1d(0x76)],_0x4ae7ad['UniverProBoardsFacade'],_0x4ae7ad[_0xa2bd1d(0x83)],_0x4ae7ad[_0xa2bd1d(0xb0)],_0x4ae7ad[_0xa2bd1d(0x94)]));}(this,function(_0x5a02e4,_0x4e0841,_0x35aa16,_0x2faf2e,_0x18d290,_0x47735a){const _0x309572=_0x2754;Object[_0x309572(0x86)](_0x5a02e4,Symbol[_0x309572(0xb6)],{'value':_0x309572(0x8b)});var _0x514479=class extends _0x35aa16[_0x309572(0xa7)]{[_0x309572(0xa6)](_0x4eb5d4){const _0x462eda=_0x309572;let _0x499921=_0x4f568a(_0x4eb5d4);return _0x499921&&this[_0x462eda(0x80)](_0x499921,{'insertIndex':_0x4eb5d4['insertIndex']})?_0x499921:null;}[_0x309572(0x9e)](){const _0x511a74=_0x309572;return this[_0x511a74(0x74)]({'elementType':_0x4e0841['BoardElementType'][_0x511a74(0xa8)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x511a74(0x88)](_0xdd29c7);}};function _0x4f568a(_0x476a47,_0x42646b){const _0x3b43a4=_0x309572;var _0x3622b9,_0x188a74,_0x5972ee;if(!_0x4814e4(_0x476a47[_0x3b43a4(0x7d)])||_0x476a47[_0x3b43a4(0xb2)]!==void 0x0&&!_0x4814e4(_0x476a47[_0x3b43a4(0xb2)])||!_0x5165b3(_0x476a47[_0x3b43a4(0x90)]))return null;let _0x1c0f56=(_0x3622b9=_0x476a47[_0x3b43a4(0x89)])==null?_0x42646b==null?void 0x0:_0x42646b[_0x3b43a4(0x89)]:_0x3622b9,_0x53107e=_0x18d290['Tools'][_0x3b43a4(0x85)](_0x476a47[_0x3b43a4(0x7d)]),_0x3b5f31=(0x0,_0x2faf2e[_0x3b43a4(0xa0)])({'model':_0x53107e,'style':_0x476a47[_0x3b43a4(0x90)],'tool':_0x476a47[_0x3b43a4(0x8d)],'sourceModel':_0x476a47[_0x3b43a4(0xb2)]?_0x18d290[_0x3b43a4(0xa4)][_0x3b43a4(0x85)](_0x476a47[_0x3b43a4(0xb2)]):_0x53107e}),_0xa037ad=_0x457d9d(_0x42646b==null?void 0x0:_0x42646b[_0x3b43a4(0x7c)]);return{'id':(_0x188a74=(_0x5972ee=_0x42646b==null?void 0x0:_0x42646b['id'])==null?_0x476a47['id']:_0x5972ee)==null?(0x0,_0x18d290[_0x3b43a4(0x82)])(0x6):_0x188a74,'type':_0x4e0841[_0x3b43a4(0x95)]['Shape'],'transform':_0x3b5f31['transform'],'shapeData':_0x3b5f31['shapeData'],'parentId':_0x1c0f56==null?void 0x0:_0x1c0f56,'laneId':_0x476a47[_0x3b43a4(0x9c)]===void 0x0?_0x42646b==null?void 0x0:_0x42646b['laneId']:_0x476a47[_0x3b43a4(0x9c)],'custom':{..._0xa037ad,'ink':_0x3b5f31['ink']}};}function _0x29a6c5(_0xfcb9eb){const _0x1ffaed=_0x309572;return Number['isFinite'](_0xfcb9eb['x'])&&Number[_0x1ffaed(0x9b)](_0xfcb9eb['y']);}function _0x4814e4(_0x29a82a){const _0x534403=_0x309572;if(_0x29a82a[_0x534403(0xb4)]===_0x534403(0xb1)){let _0x4ab7a9=new Set();return _0x29a82a[_0x534403(0xad)][_0x534403(0xa5)]>=(_0x29a82a['closed']?0x3:0x2)&&_0x29a82a[_0x534403(0xad)]['every'](_0x5500b0=>{const _0x30d1b8=_0x534403;let _0x49a99e=_0x5500b0['id'][_0x30d1b8(0x93)]()['length']>0x0&&!_0x4ab7a9[_0x30d1b8(0x7f)](_0x5500b0['id'])&&_0x29a6c5(_0x5500b0)&&(!_0x5500b0['in']||_0x29a6c5(_0x5500b0['in']))&&(!_0x5500b0['out']||_0x29a6c5(_0x5500b0[_0x30d1b8(0xac)]));return _0x4ab7a9[_0x30d1b8(0x92)](_0x5500b0['id']),_0x49a99e;});}return _0x29a82a[_0x534403(0x7b)][_0x534403(0xa5)]>=0x2&&_0x29a82a[_0x534403(0x7b)][_0x534403(0x87)](_0x2f4a22=>_0x29a6c5(_0x2f4a22)&&Number[_0x534403(0x9b)](_0x2f4a22['t'])&&(_0x2f4a22[_0x534403(0xae)]===void 0x0||Number[_0x534403(0x9b)](_0x2f4a22[_0x534403(0xae)])))&&Number['isFinite'](_0x29a82a['width'])&&_0x29a82a[_0x534403(0x7a)]>0x0&&Number['isFinite'](_0x29a82a['opacity'])&&_0x29a82a['opacity']>=0x0&&_0x29a82a['opacity']<=0x1;}function _0x5165b3(_0x36f38a){const _0x330762=_0x309572;return _0x36f38a===void 0x0||(_0x36f38a[_0x330762(0x7a)]===void 0x0||Number[_0x330762(0x9b)](_0x36f38a[_0x330762(0x7a)])&&_0x36f38a['width']>0x0)&&(_0x36f38a['opacity']===void 0x0||Number['isFinite'](_0x36f38a[_0x330762(0xa1)])&&_0x36f38a[_0x330762(0xa1)]>=0x0&&_0x36f38a[_0x330762(0xa1)]<=0x1);}function _0x457d9d(_0x5eebaa){const _0x130fcc=_0x309572;return _0x5eebaa&&typeof _0x5eebaa==_0x130fcc(0xa9)&&!Array[_0x130fcc(0x8e)](_0x5eebaa)?_0x5eebaa:{};}function _0x5d433b(_0x3cedb6){const _0xb5e5eb=_0x309572;let _0x1d834d=_0x457d9d(_0x3cedb6[_0xb5e5eb(0x7c)])['ink'];if(!_0x1d834d||typeof _0x1d834d!=_0xb5e5eb(0xa9)||Array[_0xb5e5eb(0x8e)](_0x1d834d))return null;let _0x2839cc=_0x1d834d;return _0x2839cc[_0xb5e5eb(0x9f)]===0x1&&_0x2839cc[_0xb5e5eb(0xb2)]&&typeof _0x2839cc[_0xb5e5eb(0xb2)]==_0xb5e5eb(0xa9)?_0x2839cc:null;}function _0xdd29c7(_0x6f4750){const _0x5a77f6=_0x309572;return _0x6f4750['type']===_0x4e0841[_0x5a77f6(0x95)]['Shape']&&!!_0x5d433b(_0x6f4750);}_0x35aa16['FBoard'][_0x309572(0xab)](_0x514479);let _0x217624={'Pen':'pen','Brush':'brush','Highlighter':_0x309572(0xaa)},_0x39573c={'Corner':_0x309572(0x78),'Smooth':_0x309572(0x99),'Symmetric':_0x309572(0x97),'Free':_0x309572(0xa2)},_0x47495f={'Anchor':_0x309572(0x9d),'In':'in','Out':_0x309572(0xac)};var _0x4b1037=class extends _0x47735a[_0x309572(0x98)]{get[_0x309572(0x8f)](){return _0x217624;}get['BoardInkPointType'](){return _0x39573c;}get['BoardInkHandleKind'](){return _0x47495f;}};_0x47735a[_0x309572(0x98)]['extend'](_0x4b1037),_0x5a02e4['BoardInkHandleKind']=_0x47495f,_0x5a02e4[_0x309572(0x9a)]=_0x39573c,_0x5a02e4[_0x309572(0x8f)]=_0x217624;}));function _0x13d8(){const _0x3c0232=['extend','out','anchors','pressure','930090tKFHFx','UniverCore','pen','sourceModel','@univerjs/core/facade','kind','512560RyPtZP','toStringTag','findElements','function','UniverProBoards','573130uxfdTL','corner','236380AVUlZP','width','points','custom','model','711739OHgHUd','has','addElement','@univerjs-pro/boards','generateRandomId','UniverProInk','118985jDZXcy','deepClone','defineProperty','every','filter','parentId','1629630uScABg','Module','exports','tool','isArray','BoardInkTool','style','@univerjs-pro/ink','add','trim','UniverCoreFacade','BoardElementType','@univerjs/core','symmetric','FEnum','smooth','BoardInkPointType','isFinite','laneId','anchor','getInks','version','buildInkCustomShapePayload','opacity','free','UniverProInkFacade','Tools','length','insertInk','FBoard','Shape','object','highlighter'];_0x13d8=function(){return _0x3c0232;};return _0x13d8();}
1
+ function _0x37a2(_0x2e941e,_0x5bfb87){_0x2e941e=_0x2e941e-0x74;const _0x60e10c=_0x60e1();let _0x37a268=_0x60e10c[_0x2e941e];return _0x37a268;}function _0x60e1(){const _0x4c159a=['anchor','Shape','Tools','UniverProInkFacade','function','points','BoardInkPointType','findElements','18tyCkJl','UniverCore','every','symmetric','UniverProBoards','Module','3554136JfCawF','addElement','has','kind','FBoard','@univerjs-pro/boards','BoardElementType','isFinite','1957743zDjaaS','@univerjs/core','2035880AvVSXp','ink','generateRandomId','deepClone','width','insertInk','3885lMGLTS','560922HhZYIA','sourceModel','BoardInkTool','FEnum','filter','length','UniverCoreFacade','UniverProBoardsFacade','buildInkCustomShapePayload','539955GlFOee','defineProperty','anchors','BoardInkHandleKind','version','opacity','tool','highlighter','object','out','type','trim','custom','pressure','80TSHZSU','style','extend','brush','exports','parentId','isArray','transform','add','UniverProInk','insertIndex','shapeData','model','laneId','20824722lnPaWG'];_0x60e1=function(){return _0x4c159a;};return _0x60e1();}(function(_0x10afa3,_0x1cdd36){const _0x47e7b7=_0x37a2,_0x287adf=_0x10afa3();while(!![]){try{const _0x3533f7=parseInt(_0x47e7b7(0xa4))/0x1+-parseInt(_0x47e7b7(0x9b))/0x2+-parseInt(_0x47e7b7(0x92))/0x3+parseInt(_0x47e7b7(0xb2))/0x4*(parseInt(_0x47e7b7(0x9a))/0x5)+parseInt(_0x47e7b7(0x84))/0x6*(-parseInt(_0x47e7b7(0x94))/0x7)+-parseInt(_0x47e7b7(0x8a))/0x8+parseInt(_0x47e7b7(0x7b))/0x9;if(_0x3533f7===_0x1cdd36)break;else _0x287adf['push'](_0x287adf['shift']());}catch(_0x1158d0){_0x287adf['push'](_0x287adf['shift']());}}}(_0x60e1,0x97404),function(_0xd7dc93,_0x318c70){const _0x568c84=_0x37a2;typeof exports==_0x568c84(0xac)&&typeof module<'u'?_0x318c70(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x568c84(0x80)&&define['amd']?define([_0x568c84(0xb6),_0x568c84(0x8f),'@univerjs-pro/boards/facade','@univerjs-pro/ink',_0x568c84(0x93),'@univerjs/core/facade'],_0x318c70):(_0xd7dc93=typeof globalThis<'u'?globalThis:_0xd7dc93||self,_0x318c70(_0xd7dc93[_0x568c84(0x7f)]={},_0xd7dc93[_0x568c84(0x88)],_0xd7dc93[_0x568c84(0xa2)],_0xd7dc93[_0x568c84(0x76)],_0xd7dc93[_0x568c84(0x85)],_0xd7dc93[_0x568c84(0xa1)]));}(this,function(_0x18ec7b,_0x5b8a52,_0x202a6c,_0x540a82,_0x5e91af,_0x5227fb){const _0x19dddf=_0x37a2;Object[_0x19dddf(0xa5)](_0x18ec7b,Symbol['toStringTag'],{'value':_0x19dddf(0x89)});var _0x72253=class extends _0x202a6c[_0x19dddf(0x8e)]{[_0x19dddf(0x99)](_0x58d394){const _0x4407a4=_0x19dddf;let _0x4a4a1a=_0x5bba81(_0x58d394);return _0x4a4a1a&&this[_0x4407a4(0x8b)](_0x4a4a1a,{'insertIndex':_0x58d394[_0x4407a4(0x77)]})?_0x4a4a1a:null;}['getInks'](){const _0x2be070=_0x19dddf;return this[_0x2be070(0x83)]({'elementType':_0x5b8a52['BoardElementType']['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x2be070(0x9f)](_0x13c5e9);}};function _0x5bba81(_0x4fea51,_0x3635e1){const _0x3573bf=_0x19dddf;var _0x14d5db,_0x5f190a,_0x6e3dd8;if(!_0x23d160(_0x4fea51[_0x3573bf(0x79)])||_0x4fea51[_0x3573bf(0x9c)]!==void 0x0&&!_0x23d160(_0x4fea51[_0x3573bf(0x9c)])||!_0x212ad0(_0x4fea51[_0x3573bf(0xb3)]))return null;let _0x38de8e=(_0x14d5db=_0x4fea51[_0x3573bf(0xb7)])==null?_0x3635e1==null?void 0x0:_0x3635e1[_0x3573bf(0xb7)]:_0x14d5db,_0x54993b=_0x5e91af[_0x3573bf(0x7e)]['deepClone'](_0x4fea51[_0x3573bf(0x79)]),_0x4f7652=(0x0,_0x540a82[_0x3573bf(0xa3)])({'model':_0x54993b,'style':_0x4fea51[_0x3573bf(0xb3)],'tool':_0x4fea51[_0x3573bf(0xaa)],'sourceModel':_0x4fea51[_0x3573bf(0x9c)]?_0x5e91af[_0x3573bf(0x7e)][_0x3573bf(0x97)](_0x4fea51[_0x3573bf(0x9c)]):_0x54993b}),_0x2a0f04=_0x4ddc39(_0x3635e1==null?void 0x0:_0x3635e1[_0x3573bf(0xb0)]);return{'id':(_0x5f190a=(_0x6e3dd8=_0x3635e1==null?void 0x0:_0x3635e1['id'])==null?_0x4fea51['id']:_0x6e3dd8)==null?(0x0,_0x5e91af[_0x3573bf(0x96)])(0x6):_0x5f190a,'type':_0x5b8a52[_0x3573bf(0x90)][_0x3573bf(0x7d)],'transform':_0x4f7652[_0x3573bf(0x74)],'shapeData':_0x4f7652[_0x3573bf(0x78)],'parentId':_0x38de8e==null?void 0x0:_0x38de8e,'laneId':_0x4fea51[_0x3573bf(0x7a)]===void 0x0?_0x3635e1==null?void 0x0:_0x3635e1[_0x3573bf(0x7a)]:_0x4fea51[_0x3573bf(0x7a)],'custom':{..._0x2a0f04,'ink':_0x4f7652[_0x3573bf(0x95)]}};}function _0x23adda(_0x4fae85){const _0x5714ab=_0x19dddf;return Number[_0x5714ab(0x91)](_0x4fae85['x'])&&Number[_0x5714ab(0x91)](_0x4fae85['y']);}function _0x23d160(_0x172149){const _0x1d0f67=_0x19dddf;if(_0x172149[_0x1d0f67(0x8d)]==='pen'){let _0xa76b05=new Set();return _0x172149[_0x1d0f67(0xa6)][_0x1d0f67(0xa0)]>=(_0x172149['closed']?0x3:0x2)&&_0x172149['anchors']['every'](_0x221b11=>{const _0x3ded8e=_0x1d0f67;let _0x4b7678=_0x221b11['id'][_0x3ded8e(0xaf)]()[_0x3ded8e(0xa0)]>0x0&&!_0xa76b05[_0x3ded8e(0x8c)](_0x221b11['id'])&&_0x23adda(_0x221b11)&&(!_0x221b11['in']||_0x23adda(_0x221b11['in']))&&(!_0x221b11[_0x3ded8e(0xad)]||_0x23adda(_0x221b11[_0x3ded8e(0xad)]));return _0xa76b05[_0x3ded8e(0x75)](_0x221b11['id']),_0x4b7678;});}return _0x172149[_0x1d0f67(0x81)][_0x1d0f67(0xa0)]>=0x2&&_0x172149[_0x1d0f67(0x81)][_0x1d0f67(0x86)](_0x45c9b4=>_0x23adda(_0x45c9b4)&&Number[_0x1d0f67(0x91)](_0x45c9b4['t'])&&(_0x45c9b4[_0x1d0f67(0xb1)]===void 0x0||Number[_0x1d0f67(0x91)](_0x45c9b4['pressure'])))&&Number['isFinite'](_0x172149[_0x1d0f67(0x98)])&&_0x172149['width']>0x0&&Number['isFinite'](_0x172149['opacity'])&&_0x172149[_0x1d0f67(0xa9)]>=0x0&&_0x172149[_0x1d0f67(0xa9)]<=0x1;}function _0x212ad0(_0x499639){const _0x301de4=_0x19dddf;return _0x499639===void 0x0||(_0x499639[_0x301de4(0x98)]===void 0x0||Number[_0x301de4(0x91)](_0x499639[_0x301de4(0x98)])&&_0x499639['width']>0x0)&&(_0x499639['opacity']===void 0x0||Number['isFinite'](_0x499639[_0x301de4(0xa9)])&&_0x499639[_0x301de4(0xa9)]>=0x0&&_0x499639[_0x301de4(0xa9)]<=0x1);}function _0x4ddc39(_0x363b36){const _0x436881=_0x19dddf;return _0x363b36&&typeof _0x363b36=='object'&&!Array[_0x436881(0xb8)](_0x363b36)?_0x363b36:{};}function _0x1fa47f(_0x2d1f8c){const _0x8a1d73=_0x19dddf;let _0x231518=_0x4ddc39(_0x2d1f8c[_0x8a1d73(0xb0)])[_0x8a1d73(0x95)];if(!_0x231518||typeof _0x231518!=_0x8a1d73(0xac)||Array[_0x8a1d73(0xb8)](_0x231518))return null;let _0x3e6d75=_0x231518;return _0x3e6d75[_0x8a1d73(0xa8)]===0x1&&_0x3e6d75[_0x8a1d73(0x9c)]&&typeof _0x3e6d75[_0x8a1d73(0x9c)]=='object'?_0x3e6d75:null;}function _0x13c5e9(_0x1d7032){const _0x1b0a10=_0x19dddf;return _0x1d7032[_0x1b0a10(0xae)]===_0x5b8a52[_0x1b0a10(0x90)][_0x1b0a10(0x7d)]&&!!_0x1fa47f(_0x1d7032);}_0x202a6c[_0x19dddf(0x8e)][_0x19dddf(0xb4)](_0x72253);let _0x34ab00={'Pen':'pen','Brush':_0x19dddf(0xb5),'Highlighter':_0x19dddf(0xab)},_0x3e5c22={'Corner':'corner','Smooth':'smooth','Symmetric':_0x19dddf(0x87),'Free':'free'},_0x3060c5={'Anchor':_0x19dddf(0x7c),'In':'in','Out':_0x19dddf(0xad)};var _0x30ad2c=class extends _0x5227fb[_0x19dddf(0x9e)]{get[_0x19dddf(0x9d)](){return _0x34ab00;}get['BoardInkPointType'](){return _0x3e5c22;}get[_0x19dddf(0xa7)](){return _0x3060c5;}};_0x5227fb[_0x19dddf(0x9e)]['extend'](_0x30ad2c),_0x18ec7b[_0x19dddf(0xa7)]=_0x3060c5,_0x18ec7b[_0x19dddf(0x82)]=_0x3e5c22,_0x18ec7b['BoardInkTool']=_0x34ab00;}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x51d9f1,_0x3fbb8c){const _0x1926ec=_0x166a,_0x4a4083=_0x51d9f1();while(!![]){try{const _0x2048cc=parseInt(_0x1926ec(0xc0))/0x1*(-parseInt(_0x1926ec(0xcd))/0x2)+parseInt(_0x1926ec(0x101))/0x3*(parseInt(_0x1926ec(0x95))/0x4)+-parseInt(_0x1926ec(0x10d))/0x5+-parseInt(_0x1926ec(0x9d))/0x6*(-parseInt(_0x1926ec(0x9c))/0x7)+parseInt(_0x1926ec(0xc1))/0x8*(-parseInt(_0x1926ec(0xe1))/0x9)+parseInt(_0x1926ec(0xe8))/0xa*(-parseInt(_0x1926ec(0xb4))/0xb)+parseInt(_0x1926ec(0x9f))/0xc;if(_0x2048cc===_0x3fbb8c)break;else _0x4a4083['push'](_0x4a4083['shift']());}catch(_0x713d03){_0x4a4083['push'](_0x4a4083['shift']());}}}(_0x2571,0xb3884),function(_0x461e24,_0x4c50ef){const _0x56f6f6=_0x166a;typeof exports=='object'&&typeof module<'u'?_0x4c50ef(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x56f6f6(0xfd)&&define['amd']?define([_0x56f6f6(0x108),_0x56f6f6(0xf7),_0x56f6f6(0xa6),_0x56f6f6(0xb6)],_0x4c50ef):(_0x461e24=typeof globalThis<'u'?globalThis:_0x461e24||self,_0x4c50ef(_0x461e24[_0x56f6f6(0xbe)]={},_0x461e24['UniverProEngineShape'],_0x461e24[_0x56f6f6(0xa2)],_0x461e24[_0x56f6f6(0xdd)]));}(this,function(_0x22c953,_0x4f478d,_0x45dfe3,_0x28570e){const _0x36d067=_0x166a;Object[_0x36d067(0x96)](_0x22c953,Symbol[_0x36d067(0xcf)],{'value':_0x36d067(0x112)});let _0x1e9577=0.0001;function _0x2796a9(_0x80fdec){return{'x':_0x80fdec['x'],'y':_0x80fdec['y']};}function _0x46966a(_0x2f48f2){const _0xa2b2f6=_0x36d067;return{..._0x2f48f2,'in':_0x2f48f2['in']?_0x2796a9(_0x2f48f2['in']):void 0x0,'out':_0x2f48f2[_0xa2b2f6(0xac)]?_0x2796a9(_0x2f48f2[_0xa2b2f6(0xac)]):void 0x0};}function _0x4c640b(_0x1e5426){const _0x46bd00=_0x36d067;return{'kind':_0x46bd00(0xfc),'closed':_0x1e5426[_0x46bd00(0xb9)],'anchors':_0x1e5426['anchors']['map'](_0x46966a)};}function _0x57f3e6(_0x31f57e,_0x2f4d52,_0x14e1a5){return{'x':_0x31f57e['x']+(_0x2f4d52['x']-_0x31f57e['x'])*_0x14e1a5,'y':_0x31f57e['y']+(_0x2f4d52['y']-_0x31f57e['y'])*_0x14e1a5};}function _0x371a3c(_0x476bce,_0x2df00a){const _0x32068a=_0x36d067;return Math[_0x32068a(0xb1)](_0x476bce['x']-_0x2df00a['x'],_0x476bce['y']-_0x2df00a['y']);}function _0x480f51(_0x21d051){const _0x1efc6c=_0x36d067;let _0x3dfe77=Math[_0x1efc6c(0xb1)](_0x21d051['x'],_0x21d051['y']);return _0x3dfe77<_0x1e9577?{'x':0x1,'y':0x0}:{'x':_0x21d051['x']/_0x3dfe77,'y':_0x21d051['y']/_0x3dfe77};}function _0x2cbb59(_0x4264ca,_0x3992a5,_0x5d39a4=_0x371a3c(_0x4264ca,_0x3992a5)){let _0x31e666=_0x480f51({'x':_0x4264ca['x']-_0x3992a5['x'],'y':_0x4264ca['y']-_0x3992a5['y']});return{'x':_0x4264ca['x']+_0x31e666['x']*_0x5d39a4,'y':_0x4264ca['y']+_0x31e666['y']*_0x5d39a4};}function _0x44d1ac(_0x36d0b1,_0x138ecc){const _0x537493=_0x36d067;let {anchors:_0x57391a}=_0x36d0b1;return _0x57391a[_0x537493(0xd6)]<0x2||_0x138ecc<0x0?null:_0x138ecc<_0x57391a[_0x537493(0xd6)]-0x1?{'startIndex':_0x138ecc,'endIndex':_0x138ecc+0x1,'start':_0x57391a[_0x138ecc],'end':_0x57391a[_0x138ecc+0x1]}:_0x36d0b1[_0x537493(0xb9)]&&_0x138ecc===_0x57391a[_0x537493(0xd6)]-0x1?{'startIndex':_0x57391a[_0x537493(0xd6)]-0x1,'endIndex':0x0,'start':_0x57391a[_0x57391a[_0x537493(0xd6)]-0x1],'end':_0x57391a[0x0]}:null;}function _0x10d03f(_0x2bdac2,_0x5da539){const _0x245a6c=_0x36d067;var _0x1368d8,_0x1b9e27;let _0x4ed4da=_0x44d1ac(_0x2bdac2,_0x5da539);return _0x4ed4da?[_0x4ed4da[_0x245a6c(0xc2)],(_0x1368d8=_0x4ed4da[_0x245a6c(0xc2)][_0x245a6c(0xac)])==null?_0x4ed4da['start']:_0x1368d8,(_0x1b9e27=_0x4ed4da[_0x245a6c(0xa9)]['in'])==null?_0x4ed4da[_0x245a6c(0xa9)]:_0x1b9e27,_0x4ed4da[_0x245a6c(0xa9)]]:null;}function _0x519201(_0x475143,_0x59b4c5){const _0x1fc4a8=_0x36d067;var _0x4c5f93;return _0x59b4c5===_0x1fc4a8(0x110)?_0x475143:(_0x4c5f93=_0x475143[_0x59b4c5])==null?null:_0x4c5f93;}function _0x5928d2(_0x15ec35,_0x260800,_0x44e3f2){const _0x32a74d=_0x36d067;return _0x44e3f2===_0x32a74d(0x110)||_0x15ec35[_0x32a74d(0xb9)]?!0x0:_0x44e3f2==='in'?_0x260800>0x0:_0x260800<_0x15ec35[_0x32a74d(0xe6)][_0x32a74d(0xd6)]-0x1;}function _0x366cd4(_0x39ff6a,_0x2a9d30){let [_0x2c70cb,_0x16cf4e,_0x4900d5,_0x453303]=_0x39ff6a,_0x16dc53=_0x57f3e6(_0x2c70cb,_0x16cf4e,_0x2a9d30),_0x3527cc=_0x57f3e6(_0x16cf4e,_0x4900d5,_0x2a9d30),_0x256d3b=_0x57f3e6(_0x4900d5,_0x453303,_0x2a9d30);return _0x57f3e6(_0x57f3e6(_0x16dc53,_0x3527cc,_0x2a9d30),_0x57f3e6(_0x3527cc,_0x256d3b,_0x2a9d30),_0x2a9d30);}function _0x38f30c(_0x1edf19,_0x17a6c9){let [_0x4c014a,_0x6c949f,_0x5e1af9,_0x1d1304]=_0x1edf19,_0x1f5e4b=_0x57f3e6(_0x4c014a,_0x6c949f,_0x17a6c9),_0xee8f02=_0x57f3e6(_0x6c949f,_0x5e1af9,_0x17a6c9),_0x138fa9=_0x57f3e6(_0x5e1af9,_0x1d1304,_0x17a6c9),_0x1311c3=_0x57f3e6(_0x1f5e4b,_0xee8f02,_0x17a6c9),_0x4de211=_0x57f3e6(_0xee8f02,_0x138fa9,_0x17a6c9),_0x410d09=_0x57f3e6(_0x1311c3,_0x4de211,_0x17a6c9);return{'left':[_0x4c014a,_0x1f5e4b,_0x1311c3,_0x410d09],'right':[_0x410d09,_0x4de211,_0x138fa9,_0x1d1304]};}function _0x15b74b(_0x296dc9,_0x58d817,_0x11ac70){const _0x43759d=_0x36d067;let _0x5d66eb=_0x11ac70['x']-_0x58d817['x'],_0x20621c=_0x11ac70['y']-_0x58d817['y'],_0x5ca50f=_0x5d66eb*_0x5d66eb+_0x20621c*_0x20621c,_0x4d5035=_0x5ca50f<=_0x1e9577?0x0:Math[_0x43759d(0xbd)](0x0,Math[_0x43759d(0xb2)](0x1,((_0x296dc9['x']-_0x58d817['x'])*_0x5d66eb+(_0x296dc9['y']-_0x58d817['y'])*_0x20621c)/_0x5ca50f)),_0x37be5a={'x':_0x58d817['x']+_0x5d66eb*_0x4d5035,'y':_0x58d817['y']+_0x20621c*_0x4d5035};return{'point':_0x37be5a,'ratio':_0x4d5035,'distance':_0x371a3c(_0x296dc9,_0x37be5a)};}function _0x5c0edb(_0x470934,_0x1c8da4,_0x33333f){const _0x219400=_0x36d067;return _0x15b74b(_0x470934,_0x1c8da4,_0x33333f)[_0x219400(0xea)]**0x2;}function _0x109c50(_0x3af525,_0x3d318a){const _0x361d02=_0x36d067;if(_0x3af525['length']<=0x2)return _0x3af525[_0x361d02(0xd4)](_0x2796a9);let _0x54bfc1=0x0,_0x303057=0x0,_0x5d47cb=_0x3af525[0x0],_0x3ad313=_0x3af525[_0x3af525['length']-0x1],_0x508bd7=_0x3d318a*_0x3d318a;for(let _0x3e1898=0x1;_0x3e1898<_0x3af525[_0x361d02(0xd6)]-0x1;_0x3e1898++){let _0x2d7a0d=_0x5c0edb(_0x3af525[_0x3e1898],_0x5d47cb,_0x3ad313);_0x2d7a0d>_0x54bfc1&&(_0x54bfc1=_0x2d7a0d,_0x303057=_0x3e1898);}if(_0x54bfc1<=_0x508bd7)return[_0x2796a9(_0x5d47cb),_0x2796a9(_0x3ad313)];let _0x5b54ce=_0x109c50(_0x3af525[_0x361d02(0x105)](0x0,_0x303057+0x1),_0x3d318a),_0x4440a2=_0x109c50(_0x3af525[_0x361d02(0x105)](_0x303057),_0x3d318a);return[..._0x5b54ce['slice'](0x0,-0x1),..._0x4440a2];}function _0x15c3f9(_0x202238,_0x4988bc){var _0x2d4e51;let _0x5c92de=_0x202238[_0x4988bc],_0x61b4bd=_0x202238[_0x4988bc+0x1],_0x433ed9=(_0x2d4e51=_0x202238[_0x4988bc-0x1])==null?_0x5c92de:_0x2d4e51;return{'x':_0x5c92de['x']+(_0x61b4bd['x']-_0x433ed9['x'])/0x6,'y':_0x5c92de['y']+(_0x61b4bd['y']-_0x433ed9['y'])/0x6};}function _0x4d3a8c(_0x508bb4,_0x18c37c){var _0x16bdbd;let _0x496f69=_0x508bb4[_0x18c37c],_0x23ac07=_0x508bb4[_0x18c37c-0x1],_0x2a06ab=(_0x16bdbd=_0x508bb4[_0x18c37c+0x1])==null?_0x496f69:_0x16bdbd;return{'x':_0x496f69['x']-(_0x2a06ab['x']-_0x23ac07['x'])/0x6,'y':_0x496f69['y']-(_0x2a06ab['y']-_0x23ac07['y'])/0x6};}function _0x4c1f63(_0x58b165,_0xbc611){const _0x2184b8=_0x36d067;var _0x24e42d,_0x48364b;let _0x4ce057=_0x58b165[_0x2184b8(0xe6)][_0xbc611],_0x454ad5=(_0x24e42d=_0x58b165[_0x2184b8(0xe6)][_0xbc611-0x1])==null?_0x58b165['closed']?_0x58b165[_0x2184b8(0xe6)][_0x58b165[_0x2184b8(0xe6)][_0x2184b8(0xd6)]-0x1]:null:_0x24e42d,_0x52ad7c=(_0x48364b=_0x58b165[_0x2184b8(0xe6)][_0xbc611+0x1])==null?_0x58b165['closed']?_0x58b165[_0x2184b8(0xe6)][0x0]:null:_0x48364b,_0x34f1f3=_0x454ad5&&_0x52ad7c?_0x480f51({'x':_0x52ad7c['x']-_0x454ad5['x'],'y':_0x52ad7c['y']-_0x454ad5['y']}):_0x52ad7c?_0x480f51({'x':_0x52ad7c['x']-_0x4ce057['x'],'y':_0x52ad7c['y']-_0x4ce057['y']}):_0x454ad5?_0x480f51({'x':_0x4ce057['x']-_0x454ad5['x'],'y':_0x4ce057['y']-_0x454ad5['y']}):{'x':0x1,'y':0x0},_0x403aca=_0x454ad5&&_0x52ad7c?Math[_0x2184b8(0xbd)](0x32,_0x371a3c(_0x454ad5,_0x52ad7c)/0x4):0x32;return{'in':{'x':_0x4ce057['x']-_0x34f1f3['x']*_0x403aca,'y':_0x4ce057['y']-_0x34f1f3['y']*_0x403aca},'out':{'x':_0x4ce057['x']+_0x34f1f3['x']*_0x403aca,'y':_0x4ce057['y']+_0x34f1f3['y']*_0x403aca}};}function _0x2cd22f(_0x1c60c0,_0x452d99){const _0x3387d2=_0x36d067;let _0x395869=_0x1c60c0[_0x452d99],_0xb96ed1=_0x452d99==='in'?_0x3387d2(0xac):'in',_0x1ac115=_0x1c60c0[_0xb96ed1];if(_0x395869){if(_0x1c60c0['pointType']===_0x3387d2(0xe5)){_0x1c60c0[_0xb96ed1]=_0x2cbb59(_0x1c60c0,_0x395869);return;}_0x1c60c0[_0x3387d2(0xd8)]==='smooth'&&(_0x1c60c0[_0xb96ed1]=_0x2cbb59(_0x1c60c0,_0x395869,_0x1ac115?_0x371a3c(_0x1c60c0,_0x1ac115):_0x371a3c(_0x1c60c0,_0x395869)));}}function _0x217661(_0x9df340,_0x443b48){const _0x2a2e76=_0x36d067;let _0x1b10cb=_0x4c640b(_0x9df340);return!_0x443b48||_0x1b10cb['closed']||_0x1b10cb['anchors'][_0x2a2e76(0xd6)]===0x0||_0x1b10cb[_0x2a2e76(0xe6)][_0x2a2e76(0xf1)]({'id':_0x2a2e76(0xa5),'x':_0x443b48['x'],'y':_0x443b48['y'],'pointType':_0x2a2e76(0xcb)}),_0x1b10cb;}function _0x43992a(_0x31062d,_0x5685d6={}){const _0x314d06=_0x36d067;var _0x49f3b2,_0x35267f;let _0x1f8180=Math[_0x314d06(0xbd)](0x0,(_0x49f3b2=_0x5685d6[_0x314d06(0x9b)])==null?Math[_0x314d06(0xbd)](0x4,_0x31062d[_0x314d06(0xe4)]*0.35):_0x49f3b2),_0x5dc14d=(_0x35267f=_0x5685d6[_0x314d06(0xee)])==null?_0x35a929=>'ink-centerline-'+_0x35a929:_0x35267f,_0x463a48=_0x109c50(_0x31062d[_0x314d06(0xd2)],_0x1f8180),_0x2b240a=_0x463a48['map']((_0x116788,_0x217415)=>({'id':_0x5dc14d(_0x217415),'x':_0x116788['x'],'y':_0x116788['y'],'pointType':_0x314d06(0xaa)}));for(let _0x2616a0=0x0;_0x2616a0<_0x2b240a[_0x314d06(0xd6)]-0x1;_0x2616a0++)_0x2b240a[_0x2616a0][_0x314d06(0xac)]=_0x15c3f9(_0x463a48,_0x2616a0),_0x2b240a[_0x2616a0+0x1]['in']=_0x4d3a8c(_0x463a48,_0x2616a0+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2b240a};}function _0x17775e(_0x3047bf,_0x4dacc4,_0x5cd721){const _0x137abb=_0x36d067;let _0x26f16c=null,_0x42d8ea=['anchor','in',_0x137abb(0xac)];return _0x3047bf[_0x137abb(0xe6)][_0x137abb(0x107)]((_0x5aac17,_0x4f8336)=>{const _0x275592=_0x137abb;_0x42d8ea[_0x275592(0x107)](_0x23d815=>{const _0x25f2e3=_0x275592;if(!_0x5928d2(_0x3047bf,_0x4f8336,_0x23d815))return;let _0x2a7c13=_0x519201(_0x5aac17,_0x23d815);if(!_0x2a7c13)return;let _0x19658a=_0x371a3c(_0x4dacc4,_0x2a7c13);_0x19658a>_0x5cd721||_0x26f16c&&_0x19658a>=_0x26f16c[_0x25f2e3(0xea)]||(_0x26f16c={'handle':{'kind':_0x23d815,'anchorId':_0x5aac17['id']},'point':_0x2796a9(_0x2a7c13),'distance':_0x19658a});});}),_0x26f16c;}function _0x23735a(_0x8d872d,_0x5e6252,_0x14d110){const _0x547562=_0x36d067;let _0x51d2d6=null,_0x328ad3=_0x8d872d[_0x547562(0xb9)]?_0x8d872d[_0x547562(0xe6)][_0x547562(0xd6)]:Math[_0x547562(0xbd)](0x0,_0x8d872d[_0x547562(0xe6)][_0x547562(0xd6)]-0x1);for(let _0x233a13=0x0;_0x233a13<_0x328ad3;_0x233a13++){let _0x444db7=_0x10d03f(_0x8d872d,_0x233a13);if(!_0x444db7)continue;let _0x266a65=_0x366cd4(_0x444db7,0x0);for(let _0x3bf185=0x1;_0x3bf185<=0x20;_0x3bf185++){let _0x346129=_0x366cd4(_0x444db7,_0x3bf185/0x20),_0x3479d5=_0x15b74b(_0x5e6252,_0x266a65,_0x346129),_0x63adcf=(_0x3bf185-0x1+_0x3479d5['ratio'])/0x20;(!_0x51d2d6||_0x3479d5[_0x547562(0xea)]<_0x51d2d6['distance'])&&(_0x51d2d6={'segmentIndex':_0x233a13,'t':_0x63adcf,'point':_0x3479d5[_0x547562(0xad)],'distance':_0x3479d5[_0x547562(0xea)]}),_0x266a65=_0x346129;}}return _0x51d2d6&&_0x51d2d6[_0x547562(0xea)]<=_0x14d110?_0x51d2d6:null;}function _0x25fc55(_0x4de25,_0xa0a3da,_0x2f4241){const _0x6f6cbb=_0x36d067;let _0x38af19=_0x4c640b(_0x4de25),_0x169814=_0x44d1ac(_0x38af19,_0xa0a3da['segmentIndex']),_0x432621=_0x10d03f(_0x38af19,_0xa0a3da[_0x6f6cbb(0xfa)]);if(!_0x169814||!_0x432621)return _0x38af19;let _0x29bb36=_0x38f30c(_0x432621,Math[_0x6f6cbb(0xbd)](0x0,Math[_0x6f6cbb(0xb2)](0x1,_0xa0a3da['t']))),_0x49c64c={'id':_0x2f4241(),'x':_0x29bb36[_0x6f6cbb(0xeb)][0x3]['x'],'y':_0x29bb36[_0x6f6cbb(0xeb)][0x3]['y'],'in':_0x2796a9(_0x29bb36[_0x6f6cbb(0xeb)][0x2]),'out':_0x2796a9(_0x29bb36[_0x6f6cbb(0xc9)][0x1]),'pointType':'free'};return _0x38af19[_0x6f6cbb(0xe6)][_0x169814[_0x6f6cbb(0xd5)]][_0x6f6cbb(0xac)]=_0x2796a9(_0x29bb36[_0x6f6cbb(0xeb)][0x1]),_0x38af19['anchors'][_0x169814['endIndex']]['in']=_0x2796a9(_0x29bb36[_0x6f6cbb(0xc9)][0x2]),_0x38af19[_0x6f6cbb(0xe6)][_0x6f6cbb(0xa4)](_0x169814['startIndex']+0x1,0x0,_0x49c64c),_0x38af19;}function _0x24528e(_0x593cfc,_0x3b4c57){const _0x4f45c1=_0x36d067;let _0x128242=_0x4c640b(_0x593cfc);return _0x128242[_0x4f45c1(0xe6)]=_0x128242[_0x4f45c1(0xe6)][_0x4f45c1(0xc5)](_0x539c53=>_0x539c53['id']!==_0x3b4c57),_0x128242[_0x4f45c1(0xb9)]&&_0x128242[_0x4f45c1(0xe6)][_0x4f45c1(0xd6)]<0x3&&(_0x128242[_0x4f45c1(0xb9)]=!0x1),_0x128242;}function _0x662da5(_0xba9424,_0x1fd3cd,_0x13664f){const _0x12acfd=_0x36d067;let _0x5952e9=_0x4c640b(_0xba9424),_0x40e320=_0x5952e9[_0x12acfd(0xe6)][_0x12acfd(0xd7)](_0x54aa9b=>_0x54aa9b['id']===_0x1fd3cd),_0x280d5d=_0x5952e9[_0x12acfd(0xe6)][_0x40e320];if(!_0x280d5d)return _0x5952e9;if(_0x280d5d[_0x12acfd(0xd8)]=_0x13664f,_0x13664f===_0x12acfd(0xcb))return delete _0x280d5d['in'],delete _0x280d5d['out'],_0x5952e9;let _0x4ab0f9=_0x4c1f63(_0x5952e9,_0x40e320);if(_0x280d5d['in']=_0x280d5d['in']?_0x2796a9(_0x280d5d['in']):_0x4ab0f9['in'],_0x280d5d['out']=_0x280d5d[_0x12acfd(0xac)]?_0x2796a9(_0x280d5d[_0x12acfd(0xac)]):_0x4ab0f9[_0x12acfd(0xac)],_0x13664f===_0x12acfd(0xe5)){let _0x24c5f3=Math[_0x12acfd(0xbd)](_0x371a3c(_0x280d5d,_0x280d5d['in']),_0x371a3c(_0x280d5d,_0x280d5d[_0x12acfd(0xac)]),0x32),_0x316bd9=_0x480f51({'x':_0x280d5d[_0x12acfd(0xac)]['x']-_0x280d5d['x'],'y':_0x280d5d['out']['y']-_0x280d5d['y']});_0x280d5d[_0x12acfd(0xac)]={'x':_0x280d5d['x']+_0x316bd9['x']*_0x24c5f3,'y':_0x280d5d['y']+_0x316bd9['y']*_0x24c5f3},_0x280d5d['in']={'x':_0x280d5d['x']-_0x316bd9['x']*_0x24c5f3,'y':_0x280d5d['y']-_0x316bd9['y']*_0x24c5f3};}else _0x13664f===_0x12acfd(0xe2)&&_0x2cd22f(_0x280d5d,'out');return _0x5952e9;}function _0x38a269(_0x5a4269,_0x227839){const _0x1dee17=_0x36d067;var _0x51750f;let _0x30d21d=_0x5a4269['anchors'][_0x1dee17(0xda)](_0x39bdde=>_0x39bdde['id']===_0x227839),_0x255ae8=(_0x51750f=_0x30d21d==null?void 0x0:_0x30d21d[_0x1dee17(0xd8)])==null?_0x1dee17(0xcb):_0x51750f;return _0x662da5(_0x5a4269,_0x227839,_0x255ae8===_0x1dee17(0xcb)?_0x1dee17(0xe2):_0x255ae8===_0x1dee17(0xe2)?_0x1dee17(0xe5):_0x255ae8==='symmetric'?'free':'corner');}function _0x24fa03(_0x4a1d17,_0x5c9633,_0x34587d){const _0x1105f1=_0x36d067;let _0xfd6a61=_0x4c640b(_0x4a1d17),_0x2b88ec=_0xfd6a61['anchors'][_0x1105f1(0xda)](_0x1e08ab=>_0x1e08ab['id']===_0x5c9633['anchorId']);if(!_0x2b88ec)return _0xfd6a61;if(_0x5c9633[_0x1105f1(0x98)]==='anchor'){let _0x2da507={'x':_0x34587d['x']-_0x2b88ec['x'],'y':_0x34587d['y']-_0x2b88ec['y']};return _0x2b88ec['x']=_0x34587d['x'],_0x2b88ec['y']=_0x34587d['y'],_0x2b88ec['in']&&(_0x2b88ec['in']={'x':_0x2b88ec['in']['x']+_0x2da507['x'],'y':_0x2b88ec['in']['y']+_0x2da507['y']}),_0x2b88ec[_0x1105f1(0xac)]&&(_0x2b88ec[_0x1105f1(0xac)]={'x':_0x2b88ec[_0x1105f1(0xac)]['x']+_0x2da507['x'],'y':_0x2b88ec[_0x1105f1(0xac)]['y']+_0x2da507['y']}),_0xfd6a61;}return _0x2b88ec[_0x5c9633[_0x1105f1(0x98)]]=_0x2796a9(_0x34587d),_0x2b88ec[_0x1105f1(0xd8)]===_0x1105f1(0xcb)&&(_0x2b88ec[_0x1105f1(0xd8)]='free'),_0x2cd22f(_0x2b88ec,_0x5c9633['kind']),_0xfd6a61;}let _0x37e0c8=1e-9;function _0x187444(_0x3f6104){let _0x5f4824=Math['round'](_0x3f6104*0x2710)/0x2710;return Object['is'](_0x5f4824,-0x0)?'0':String(_0x5f4824);}function _0x4dbe5b(_0x56ea02){return _0x187444(_0x56ea02['x'])+'\x20'+_0x187444(_0x56ea02['y']);}function _0x3d2214(_0x1d8fe4,_0x814b85){return{'x':_0x1d8fe4['x']-_0x814b85['x'],'y':_0x1d8fe4['y']-_0x814b85['y']};}function _0x34cbe4(_0x119a70,_0x2dd445,_0x18aeec,_0x2277a1,_0x11225e){let _0x4d34cc=0x1-_0x11225e;return{'x':_0x4d34cc*_0x4d34cc*_0x4d34cc*_0x119a70['x']+0x3*_0x4d34cc*_0x4d34cc*_0x11225e*_0x2dd445['x']+0x3*_0x4d34cc*_0x11225e*_0x11225e*_0x18aeec['x']+_0x11225e*_0x11225e*_0x11225e*_0x2277a1['x'],'y':_0x4d34cc*_0x4d34cc*_0x4d34cc*_0x119a70['y']+0x3*_0x4d34cc*_0x4d34cc*_0x11225e*_0x2dd445['y']+0x3*_0x4d34cc*_0x11225e*_0x11225e*_0x18aeec['y']+_0x11225e*_0x11225e*_0x11225e*_0x2277a1['y']};}function _0x2ad68c(_0x165c1f,_0x31b69e,_0x2f2fcb,_0x54263c){const _0x66168c=_0x36d067;let _0x2cc608=-_0x165c1f+0x3*_0x31b69e-0x3*_0x2f2fcb+_0x54263c,_0x547b24=0x3*_0x165c1f-0x6*_0x31b69e+0x3*_0x2f2fcb,_0x2a42ed=-0x3*_0x165c1f+0x3*_0x31b69e,_0x68dc6e=[];if(Math[_0x66168c(0xef)](_0x2cc608)<_0x37e0c8){if(Math[_0x66168c(0xef)](_0x547b24)<_0x37e0c8)return _0x68dc6e;let _0xa227e=-_0x2a42ed/(0x2*_0x547b24);return _0xa227e>0x0&&_0xa227e<0x1&&_0x68dc6e['push'](_0xa227e),_0x68dc6e;}let _0x5ebe84=_0x547b24*_0x547b24-0x3*_0x2cc608*_0x2a42ed;if(_0x5ebe84<0x0)return _0x68dc6e;let _0xa44d18=Math[_0x66168c(0xce)](Math[_0x66168c(0xbd)](0x0,_0x5ebe84)),_0x433b28=(-_0x547b24+_0xa44d18)/(0x3*_0x2cc608),_0x575d7e=(-_0x547b24-_0xa44d18)/(0x3*_0x2cc608);return _0x433b28>0x0&&_0x433b28<0x1&&_0x68dc6e[_0x66168c(0xf1)](_0x433b28),_0x575d7e>0x0&&_0x575d7e<0x1&&Math['abs'](_0x575d7e-_0x433b28)>_0x37e0c8&&_0x68dc6e[_0x66168c(0xf1)](_0x575d7e),_0x68dc6e;}function _0x2e9a35(_0x20caad,_0x36dfc4,_0x192a97,_0x3bcf6c,_0x72e48a){const _0x1ededa=_0x36d067;_0x20caad[_0x1ededa(0xf1)](_0x36dfc4,_0x72e48a),new Set([..._0x2ad68c(_0x36dfc4['x'],_0x192a97['x'],_0x3bcf6c['x'],_0x72e48a['x']),..._0x2ad68c(_0x36dfc4['y'],_0x192a97['y'],_0x3bcf6c['y'],_0x72e48a['y'])])[_0x1ededa(0x107)](_0x4df3f1=>{const _0x2b88c5=_0x1ededa;_0x20caad[_0x2b88c5(0xf1)](_0x34cbe4(_0x36dfc4,_0x192a97,_0x3bcf6c,_0x72e48a,_0x4df3f1));});}function _0x367db9(_0x338a22){const _0x457c90=_0x36d067;let _0x51cc88=_0x338a22[_0x457c90(0xe6)];if(_0x51cc88['length']<=0x1)return _0x51cc88;let _0x199631=[];for(let _0x202c3c=0x1;_0x202c3c<_0x51cc88[_0x457c90(0xd6)];_0x202c3c++){var _0x301f8e,_0x549dbf;let _0x37e257=_0x51cc88[_0x202c3c-0x1],_0x52405e=_0x51cc88[_0x202c3c];_0x2e9a35(_0x199631,_0x37e257,(_0x301f8e=_0x37e257['out'])==null?_0x37e257:_0x301f8e,(_0x549dbf=_0x52405e['in'])==null?_0x52405e:_0x549dbf,_0x52405e);}if(_0x338a22['closed']&&_0x51cc88['length']>0x1){var _0x45d46d,_0x3b6f37;let _0x966453=_0x51cc88[_0x51cc88[_0x457c90(0xd6)]-0x1],_0x334429=_0x51cc88[0x0];_0x2e9a35(_0x199631,_0x966453,(_0x45d46d=_0x966453[_0x457c90(0xac)])==null?_0x966453:_0x45d46d,(_0x3b6f37=_0x334429['in'])==null?_0x334429:_0x3b6f37,_0x334429);}return _0x199631;}function _0x5b5e3e(_0x463f0d){const _0x3153bb=_0x36d067;let _0x377eb1=_0x463f0d['points'];if(_0x377eb1[_0x3153bb(0xd6)]<=0x1)return _0x377eb1;let _0x1c43d4=[];for(let _0x21af5f=0x0;_0x21af5f<_0x377eb1[_0x3153bb(0xd6)]-0x1;_0x21af5f++){var _0x520e5f,_0x39282d;let _0xa57467=_0x377eb1[_0x21af5f],_0x31760f=_0x377eb1[_0x21af5f+0x1],_0x4b121e=(_0x520e5f=_0x377eb1[_0x21af5f-0x1])==null?_0xa57467:_0x520e5f,_0xc728d=(_0x39282d=_0x377eb1[_0x21af5f+0x2])==null?_0x31760f:_0x39282d;_0x2e9a35(_0x1c43d4,_0xa57467,{'x':_0xa57467['x']+(_0x31760f['x']-_0x4b121e['x'])/0x6,'y':_0xa57467['y']+(_0x31760f['y']-_0x4b121e['y'])/0x6},{'x':_0x31760f['x']-(_0xc728d['x']-_0xa57467['x'])/0x6,'y':_0x31760f['y']-(_0xc728d['y']-_0xa57467['y'])/0x6},_0x31760f);}return _0x1c43d4;}function _0x5f082d(_0x2565da){const _0x5b4a4e=_0x36d067;return _0x2565da[_0x5b4a4e(0x98)]===_0x5b4a4e(0xfc)?_0x367db9(_0x2565da):_0x5b5e3e(_0x2565da);}function _0xf0e5d4(_0xfd6a57){let _0x4fee26=Math['round'](_0xfd6a57*0x2710)/0x2710;return Object['is'](_0x4fee26,-0x0)?0x0:_0x4fee26;}function _0x26a374(_0x411999){const _0x10a0ff=_0x36d067;let _0x9bb6ce=_0x5f082d(_0x411999);if(_0x9bb6ce[_0x10a0ff(0xd6)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3ed346=Math[_0x10a0ff(0xb2)](..._0x9bb6ce[_0x10a0ff(0xd4)](_0x3c409c=>_0x3c409c['x'])),_0x3427e9=Math[_0x10a0ff(0xb2)](..._0x9bb6ce['map'](_0x42f63d=>_0x42f63d['y'])),_0x4a5775=Math[_0x10a0ff(0xbd)](..._0x9bb6ce[_0x10a0ff(0xd4)](_0x179c28=>_0x179c28['x'])),_0x58b338=Math[_0x10a0ff(0xbd)](..._0x9bb6ce[_0x10a0ff(0xd4)](_0x4f9c2c=>_0x4f9c2c['y']));return{'left':_0xf0e5d4(_0x3ed346),'top':_0xf0e5d4(_0x3427e9),'width':_0xf0e5d4(Math['max'](0x1,_0x4a5775-_0x3ed346)),'height':_0xf0e5d4(Math[_0x10a0ff(0xbd)](0x1,_0x58b338-_0x3427e9))};}function _0x2f5446(_0x326dcb,_0x3023a0){const _0x19747e=_0x36d067;let _0x458302=_0x326dcb[_0x19747e(0xe6)];if(_0x458302[_0x19747e(0xd6)]===0x0)return'';let _0x5be1ed=['M\x20'+_0x4dbe5b(_0x3d2214(_0x458302[0x0],_0x3023a0))];for(let _0x5720fd=0x1;_0x5720fd<_0x458302[_0x19747e(0xd6)];_0x5720fd++){var _0x450c68,_0x20d863;let _0x13f990=_0x458302[_0x5720fd-0x1],_0xb62513=_0x458302[_0x5720fd],_0x4e6c5f=(_0x450c68=_0x13f990[_0x19747e(0xac)])==null?_0x13f990:_0x450c68,_0x3a7088=(_0x20d863=_0xb62513['in'])==null?_0xb62513:_0x20d863;_0x5be1ed[_0x19747e(0xf1)]('C\x20'+_0x4dbe5b(_0x3d2214(_0x4e6c5f,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0x3a7088,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0xb62513,_0x3023a0)));}if(_0x326dcb['closed']&&_0x458302[_0x19747e(0xd6)]>0x1){var _0x32c18c,_0x1e243f;let _0x2774b6=_0x458302[_0x458302['length']-0x1],_0x5e8213=_0x458302[0x0],_0x226af1=(_0x32c18c=_0x2774b6[_0x19747e(0xac)])==null?_0x2774b6:_0x32c18c,_0x9b07e4=(_0x1e243f=_0x5e8213['in'])==null?_0x5e8213:_0x1e243f;_0x5be1ed[_0x19747e(0xf1)]('C\x20'+_0x4dbe5b(_0x3d2214(_0x226af1,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0x9b07e4,_0x3023a0))+'\x20'+_0x4dbe5b(_0x3d2214(_0x5e8213,_0x3023a0))),_0x5be1ed[_0x19747e(0xf1)]('Z');}return _0x5be1ed[_0x19747e(0x10a)]('\x20');}function _0x279ffd(_0x2c086e,_0x3d8153){const _0x27fd77=_0x36d067;let _0x557f29=_0x2c086e[_0x27fd77(0xd2)]['map'](_0x190dae=>_0x3d2214(_0x190dae,_0x3d8153));if(_0x557f29['length']===0x0)return'';if(_0x557f29[_0x27fd77(0xd6)]===0x1)return'M\x20'+_0x4dbe5b(_0x557f29[0x0]);let _0x314ee9=['M\x20'+_0x4dbe5b(_0x557f29[0x0])];for(let _0x1e3217=0x0;_0x1e3217<_0x557f29[_0x27fd77(0xd6)]-0x1;_0x1e3217++){var _0x4d7d9a,_0x1017d9;let _0x3b2768=_0x557f29[_0x1e3217],_0x310e1a=_0x557f29[_0x1e3217+0x1],_0x3718ef=(_0x4d7d9a=_0x557f29[_0x1e3217-0x1])==null?_0x3b2768:_0x4d7d9a,_0x47c881=(_0x1017d9=_0x557f29[_0x1e3217+0x2])==null?_0x310e1a:_0x1017d9,_0xc1bad5={'x':_0x3b2768['x']+(_0x310e1a['x']-_0x3718ef['x'])/0x6,'y':_0x3b2768['y']+(_0x310e1a['y']-_0x3718ef['y'])/0x6},_0xd2ab6c={'x':_0x310e1a['x']-(_0x47c881['x']-_0x3b2768['x'])/0x6,'y':_0x310e1a['y']-(_0x47c881['y']-_0x3b2768['y'])/0x6};_0x314ee9[_0x27fd77(0xf1)]('C\x20'+_0x4dbe5b(_0xc1bad5)+'\x20'+_0x4dbe5b(_0xd2ab6c)+'\x20'+_0x4dbe5b(_0x310e1a));}return _0x314ee9['join']('\x20');}function _0x5d96a5(_0x150b8d,_0x16764e){const _0x5c5085=_0x36d067;return _0x150b8d[_0x5c5085(0x98)]===_0x5c5085(0xfc)?_0x2f5446(_0x150b8d,_0x16764e):_0x279ffd(_0x150b8d,_0x16764e);}function _0x27858(_0x102ddf,_0x9e1e73){const _0x562fcb=_0x36d067;return _0x9e1e73!=null&&_0x9e1e73[_0x562fcb(0x103)]?_0x9e1e73[_0x562fcb(0x103)]:_0x102ddf['kind']===_0x562fcb(0xfc)?'#f54a45':_0x102ddf[_0x562fcb(0x103)];}function _0x1fb11e(_0x291cee,_0x284e3f){const _0x20de0c=_0x36d067;return(_0x284e3f==null?void 0x0:_0x284e3f[_0x20de0c(0xe4)])===void 0x0?_0x291cee['kind']===_0x20de0c(0xfc)?0x2:_0x291cee['width']:_0x284e3f[_0x20de0c(0xe4)];}function _0x2c9fca(_0x47afc5,_0x44f038){const _0x1613f7=_0x36d067;return(_0x44f038==null?void 0x0:_0x44f038[_0x1613f7(0xfe)])===void 0x0?_0x47afc5[_0x1613f7(0x98)]===_0x1613f7(0xfc)?void 0x0:_0x47afc5[_0x1613f7(0xfe)]:_0x44f038['opacity'];}function _0x58f533(_0x215002,_0x414bcf){const _0x189905=_0x36d067;let _0x4fcffa=_0x26a374(_0x215002),_0x52824f=_0x5d96a5(_0x215002,{'x':_0x4fcffa[_0x189905(0xeb)],'y':_0x4fcffa['top']}),_0x150141=_0x215002['kind']===_0x189905(0xfc)&&_0x215002[_0x189905(0xb9)],_0x46fe23=_0x414bcf==null?void 0x0:_0x414bcf['fillColor'];return{'shapeType':_0x4f478d[_0x189905(0x10c)][_0x189905(0x10f)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x4fcffa['width'],'h':_0x4fcffa[_0x189905(0xb7)],'fill':_0x150141?_0x189905(0x113):_0x189905(0xf8),'stroke':!0x0,'data':_0x52824f,'dataArray':_0x5e7cde(_0x215002,{'x':_0x4fcffa[_0x189905(0xeb)],'y':_0x4fcffa[_0x189905(0xf3)]})}]},'fill':_0x150141&&_0x46fe23?{'color':_0x46fe23,'fillType':_0x4f478d[_0x189905(0xba)]['SolidFill']}:{'fillType':_0x4f478d[_0x189905(0xba)][_0x189905(0xaf)]},'stroke':{'color':_0x27858(_0x215002,_0x414bcf),'width':_0x1fb11e(_0x215002,_0x414bcf),'opacity':_0x2c9fca(_0x215002,_0x414bcf),'lineStrokeType':_0x4f478d['ShapeLineTypeEnum'][_0x189905(0xd0)],'capType':_0x4f478d[_0x189905(0x104)]['Round'],'lineJoinType':_0x4f478d['ShapeLineJoinEnum'][_0x189905(0xb0)]}};}function _0x3590cd(_0x13627a,_0x86faeb){return{'x':_0x13627a['x']-_0x86faeb['x'],'y':_0x13627a['y']-_0x86faeb['y']};}function _0x5e7cde(_0x7e3b03,_0x3e6eb9){const _0xcdc0a0=_0x36d067;if(_0x7e3b03[_0xcdc0a0(0x98)]===_0xcdc0a0(0xfc)){let _0x2876bd=_0x7e3b03[_0xcdc0a0(0xe6)];if(_0x2876bd[_0xcdc0a0(0xd6)]===0x0)return[];let _0x9f0e50=_0x3590cd(_0x2876bd[0x0],_0x3e6eb9),_0xeed105=[{'command':'M','points':[_0x9f0e50['x'],_0x9f0e50['y']]}];for(let _0x2e68f6=0x1;_0x2e68f6<_0x2876bd[_0xcdc0a0(0xd6)];_0x2e68f6++){var _0x25c99a,_0xd27b60;let _0x484e10=_0x2876bd[_0x2e68f6-0x1],_0x3adaf5=_0x2876bd[_0x2e68f6],_0x39eacf=_0x3590cd((_0x25c99a=_0x484e10[_0xcdc0a0(0xac)])==null?_0x484e10:_0x25c99a,_0x3e6eb9),_0x275b9a=_0x3590cd((_0xd27b60=_0x3adaf5['in'])==null?_0x3adaf5:_0xd27b60,_0x3e6eb9),_0x4d057c=_0x3590cd(_0x3adaf5,_0x3e6eb9);_0xeed105['push']({'command':'C','points':[_0x39eacf['x'],_0x39eacf['y'],_0x275b9a['x'],_0x275b9a['y'],_0x4d057c['x'],_0x4d057c['y']]});}if(_0x7e3b03[_0xcdc0a0(0xb9)]&&_0x2876bd[_0xcdc0a0(0xd6)]>0x1){var _0x233831,_0xb3e0e5;let _0x1b22c1=_0x2876bd[_0x2876bd['length']-0x1],_0x2501b6=_0x2876bd[0x0],_0x21c8db=_0x3590cd((_0x233831=_0x1b22c1[_0xcdc0a0(0xac)])==null?_0x1b22c1:_0x233831,_0x3e6eb9),_0x5b7f91=_0x3590cd((_0xb3e0e5=_0x2501b6['in'])==null?_0x2501b6:_0xb3e0e5,_0x3e6eb9),_0x54a3b8=_0x3590cd(_0x2501b6,_0x3e6eb9);_0xeed105[_0xcdc0a0(0xf1)]({'command':'C','points':[_0x21c8db['x'],_0x21c8db['y'],_0x5b7f91['x'],_0x5b7f91['y'],_0x54a3b8['x'],_0x54a3b8['y']]}),_0xeed105['push']({'command':'z','points':[]});}return _0xeed105;}let _0x2a8571=_0x7e3b03['points'][_0xcdc0a0(0xd4)](_0x3f0844=>_0x3590cd(_0x3f0844,_0x3e6eb9));if(_0x2a8571[_0xcdc0a0(0xd6)]===0x0)return[];let _0x518ec7=[{'command':'M','points':[_0x2a8571[0x0]['x'],_0x2a8571[0x0]['y']]}];for(let _0x4026b4=0x0;_0x4026b4<_0x2a8571[_0xcdc0a0(0xd6)]-0x1;_0x4026b4++){var _0x368d79,_0x5ddec1;let _0x2c47df=_0x2a8571[_0x4026b4],_0x5ab290=_0x2a8571[_0x4026b4+0x1],_0x3a41a3=(_0x368d79=_0x2a8571[_0x4026b4-0x1])==null?_0x2c47df:_0x368d79,_0x494b52=(_0x5ddec1=_0x2a8571[_0x4026b4+0x2])==null?_0x5ab290:_0x5ddec1,_0x61e714={'x':_0x2c47df['x']+(_0x5ab290['x']-_0x3a41a3['x'])/0x6,'y':_0x2c47df['y']+(_0x5ab290['y']-_0x3a41a3['y'])/0x6},_0x3a3d39={'x':_0x5ab290['x']-(_0x494b52['x']-_0x2c47df['x'])/0x6,'y':_0x5ab290['y']-(_0x494b52['y']-_0x2c47df['y'])/0x6};_0x518ec7[_0xcdc0a0(0xf1)]({'command':'C','points':[_0x61e714['x'],_0x61e714['y'],_0x3a3d39['x'],_0x3a3d39['y'],_0x5ab290['x'],_0x5ab290['y']]});}return _0x518ec7;}function _0x5a1cff(_0x5b1ec0){const _0x270004=_0x36d067;var _0x2f7dc7;let {model:_0x47540f,sourceModel:_0x4c1ba9=_0x47540f,style:_0x3f51e1}=_0x5b1ec0,_0x1bd7e8=(_0x2f7dc7=_0x5b1ec0[_0x270004(0xc4)])==null?_0x47540f[_0x270004(0x98)]:_0x2f7dc7,_0x3777b7=_0x26a374(_0x47540f),_0x1acef8=_0x47540f['kind']===_0x270004(0xfc)&&_0x1bd7e8!==_0x270004(0xfc)?_0x47540f:void 0x0;return{'transform':{..._0x3777b7,'rotation':0x0},'shapeData':_0x58f533(_0x47540f,_0x3f51e1),'ink':{'version':0x1,'tool':_0x1bd7e8,'sourceModel':_0x4c1ba9,..._0x1acef8?{'editModel':_0x1acef8}:{},'normalizedBounds':_0x3777b7}};}var _0x2ea373='@univerjs-pro/ink',_0x3b03e8=_0x36d067(0x100);function _0x59ff21(_0x4c93e9){'@babel/helpers - typeof';const _0x479d93=_0x36d067;return _0x59ff21=typeof Symbol=='function'&&typeof Symbol[_0x479d93(0xf5)]==_0x479d93(0xc8)?function(_0x32b485){return typeof _0x32b485;}:function(_0x1f595){const _0x38f1e5=_0x479d93;return _0x1f595&&typeof Symbol==_0x38f1e5(0xfd)&&_0x1f595['constructor']===Symbol&&_0x1f595!==Symbol[_0x38f1e5(0x9e)]?_0x38f1e5(0xc8):typeof _0x1f595;},_0x59ff21(_0x4c93e9);}function _0x188484(_0x317991,_0x73a8f1){const _0x76f5a5=_0x36d067;if(_0x59ff21(_0x317991)!=_0x76f5a5(0x109)||!_0x317991)return _0x317991;var _0x30e7e2=_0x317991[Symbol[_0x76f5a5(0xa7)]];if(_0x30e7e2!==void 0x0){var _0x42064c=_0x30e7e2['call'](_0x317991,_0x73a8f1||'default');if(_0x59ff21(_0x42064c)!=_0x76f5a5(0x109))return _0x42064c;throw TypeError(_0x76f5a5(0xdf));}return(_0x73a8f1===_0x76f5a5(0xcc)?String:Number)(_0x317991);}function _0x2c93fb(_0xa95b1d){const _0x20635c=_0x36d067;var _0x2b0e74=_0x188484(_0xa95b1d,'string');return _0x59ff21(_0x2b0e74)==_0x20635c(0xc8)?_0x2b0e74:_0x2b0e74+'';}function _0x46a5f5(_0x2ea90a,_0x59a46e,_0x599139){const _0x223947=_0x36d067;return(_0x59a46e=_0x2c93fb(_0x59a46e))in _0x2ea90a?Object[_0x223947(0x96)](_0x2ea90a,_0x59a46e,{'value':_0x599139,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2ea90a[_0x59a46e]=_0x599139,_0x2ea90a;}let _0x508c4e=(0x0,_0x28570e[_0x36d067(0x97)])(_0x36d067(0xf6));var _0x101fbc=class{constructor(){const _0x2db88f=_0x36d067;_0x46a5f5(this,_0x2db88f(0xfb),[]);}[_0x36d067(0xf9)](_0x552118){const _0x1feb24=_0x36d067;return this['_adapters'][_0x1feb24(0xf1)](_0x552118),(0x0,_0x28570e[_0x1feb24(0xb3)])(()=>{const _0x51711c=_0x1feb24;let _0x349330=this[_0x51711c(0xfb)][_0x51711c(0xdc)](_0x552118);_0x349330>=0x0&&this['_adapters'][_0x51711c(0xa4)](_0x349330,0x1);});}[_0x36d067(0xf0)](_0x119602){const _0x24263f=_0x36d067;for(let _0x42b6c2 of this[_0x24263f(0xfb)])if(_0x42b6c2[_0x24263f(0xf0)](_0x119602))return!0x0;return!0x1;}async['createCustomShape'](_0x17bbea){const _0x187348=_0x36d067;for(let _0x43e178 of this[_0x187348(0xfb)])if(_0x43e178[_0x187348(0xff)]&&await _0x43e178[_0x187348(0xff)](_0x17bbea))return!0x0;return!0x1;}};let _0x58d01f={'id':_0x36d067(0xde),'type':_0x28570e[_0x36d067(0x94)][_0x36d067(0x10b)],'handler':(_0x3c2c84,_0x1ae080)=>_0x1ae080?_0x3c2c84['get'](_0x508c4e)[_0x36d067(0xf0)](_0x1ae080):!0x1},_0x35b647={};function _0x47ed42(_0x35ad82,_0x586963){return function(_0x307fdd,_0x5880cd){_0x586963(_0x307fdd,_0x5880cd,_0x35ad82);};}function _0x483555(_0x3d5168,_0x4a831d,_0x85f95c,_0x1d5f6f){const _0x368fcd=_0x36d067;var _0x2805cb=arguments[_0x368fcd(0xd6)],_0x21487f=_0x2805cb<0x3?_0x4a831d:_0x1d5f6f===null?_0x1d5f6f=Object[_0x368fcd(0x115)](_0x4a831d,_0x85f95c):_0x1d5f6f,_0x1be3fc;if(typeof Reflect==_0x368fcd(0x109)&&typeof Reflect[_0x368fcd(0xb5)]==_0x368fcd(0xfd))_0x21487f=Reflect[_0x368fcd(0xb5)](_0x3d5168,_0x4a831d,_0x85f95c,_0x1d5f6f);else{for(var _0x1625a7=_0x3d5168[_0x368fcd(0xd6)]-0x1;_0x1625a7>=0x0;_0x1625a7--)(_0x1be3fc=_0x3d5168[_0x1625a7])&&(_0x21487f=(_0x2805cb<0x3?_0x1be3fc(_0x21487f):_0x2805cb>0x3?_0x1be3fc(_0x4a831d,_0x85f95c,_0x21487f):_0x1be3fc(_0x4a831d,_0x85f95c))||_0x21487f);}return _0x2805cb>0x3&&_0x21487f&&Object[_0x368fcd(0x96)](_0x4a831d,_0x85f95c,_0x21487f),_0x21487f;}let _0x2fac47=class extends _0x28570e[_0x36d067(0xc6)]{constructor(_0x5ab2be=_0x35b647,_0x12e211,_0x47cf19,_0x3728a6){const _0x49c221=_0x36d067;super(),this[_0x49c221(0xe3)]=_0x5ab2be,this[_0x49c221(0xae)]=_0x12e211,this[_0x49c221(0xf2)]=_0x47cf19,this[_0x49c221(0x9a)]=_0x3728a6;let {..._0x57a9c4}=(0x0,_0x28570e['merge'])({},_0x35b647,this[_0x49c221(0xe3)]);this['_configService'][_0x49c221(0x10e)](_0x49c221(0xbf),_0x57a9c4);}[_0x36d067(0xed)](){const _0xd47dee=_0x36d067;[[_0x508c4e,{'useClass':_0x101fbc}]][_0xd47dee(0x107)](_0x253b18=>this[_0xd47dee(0xae)]['add'](_0x253b18)),this[_0xd47dee(0xab)](this['_commandService'][_0xd47dee(0xca)](_0x58d01f));}};_0x46a5f5(_0x2fac47,_0x36d067(0x102),'UNIVER_INK_PLUGIN'),_0x46a5f5(_0x2fac47,_0x36d067(0xd9),_0x2ea373),_0x46a5f5(_0x2fac47,_0x36d067(0xe9),_0x3b03e8),_0x46a5f5(_0x2fac47,_0x36d067(0xbc),_0x28570e['UniverInstanceType'][_0x36d067(0xb8)]),_0x2fac47=_0x483555([(0x0,_0x28570e[_0x36d067(0xdb)])(_0x45dfe3[_0x36d067(0xd1)]),_0x47ed42(0x1,(0x0,_0x28570e[_0x36d067(0xc7)])(_0x28570e[_0x36d067(0xe7)])),_0x47ed42(0x2,_0x28570e[_0x36d067(0x114)]),_0x47ed42(0x3,_0x28570e[_0x36d067(0xa3)])],_0x2fac47),_0x22c953[_0x36d067(0xa1)]=_0x508c4e,Object['defineProperty'](_0x22c953,_0x36d067(0xbb),{'enumerable':!0x0,'get':function(){return _0x2fac47;}}),_0x22c953[_0x36d067(0x99)]=_0x5a1cff,_0x22c953[_0x36d067(0x111)]=_0x43992a,_0x22c953[_0x36d067(0x106)]=_0x38a269,_0x22c953['deleteInkPenAnchor']=_0x24528e,_0x22c953[_0x36d067(0xa8)]=_0x17775e,_0x22c953[_0x36d067(0xf4)]=_0x23735a,_0x22c953['getInkModelBounds']=_0x26a374,_0x22c953[_0x36d067(0xec)]=_0x217661,_0x22c953[_0x36d067(0xc3)]=_0x25fc55,_0x22c953[_0x36d067(0xe0)]=_0x5928d2,_0x22c953[_0x36d067(0xd3)]=_0x24fa03,_0x22c953[_0x36d067(0xa0)]=_0x662da5;}));function _0x166a(_0x204ab5,_0x484dcc){_0x204ab5=_0x204ab5-0x94;const _0x2571db=_0x2571();let _0x166ae4=_0x2571db[_0x204ab5];return _0x166ae4;}function _0x2571(){const _0x151da7=['_commandService','top','findClosestInkPenSegment','iterator','ink.host-adapter.service','@univerjs-pro/engine-shape','none','registerAdapter','segmentIndex','_adapters','pen','function','opacity','createCustomShape','1.0.0-alpha.3','2175wSwemK','pluginName','color','ShapeLineCapEnum','slice','cycleInkPenAnchorPointType','forEach','exports','object','join','OPERATION','ShapeTypeEnum','5405265buwpws','setConfig','Rect','anchor','convertBrushModelToPenModel','Module','norm','ICommandService','getOwnPropertyDescriptor','CommandType','2796vIgsqz','defineProperty','createIdentifier','kind','buildInkCustomShapePayload','_configService','tolerance','14UvEETz','2171712HSFjBx','prototype','31020828qJuuHM','setInkPenAnchorPointType','IInkHostAdapterService','UniverProLicense','IConfigService','splice','__ink-preview-anchor__','@univerjs-pro/license','toPrimitive','findClosestInkPenHandle','end','free','disposeWithMe','out','point','_injector','NoFill','Round','hypot','min','toDisposable','1903gOlnCU','decorate','@univerjs/core','height','UNIVER_UNKNOWN','closed','ShapeFillEnum','UniverInkPlugin','type','max','UniverProInk','ink.config','655458Wrmipu','8FPHKIy','start','insertInkPenAnchorAt','tool','filter','Plugin','Inject','symbol','right','registerCommand','corner','string','4XIoaQG','sqrt','toStringTag','SolidLine','UniverLicensePlugin','points','moveInkPenAnchorPoint','map','startIndex','length','findIndex','pointType','packageName','find','DependentOn','indexOf','UniverCore','ink.operation.start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isInkPenHandleVisible','5359626lFeyid','smooth','_config','width','symmetric','anchors','Injector','5370bSyPXV','version','distance','left','getInkPenPreviewModel','onStarting','createId','abs','beginInkMode','push'];_0x2571=function(){return _0x151da7;};return _0x2571();}
1
+ function _0x5227(_0x181a5c,_0x27dcf1){_0x181a5c=_0x181a5c-0x10f;const _0x502304=_0x5023();let _0x52278d=_0x502304[_0x181a5c];return _0x52278d;}function _0x5023(){const _0x1b4d51=['@univerjs-pro/ink','segmentIndex','kind','anchorId','onStarting','beginInkMode','slice','closed','distance','Module','object','188yhspPF','UniverInkPlugin','corner','toStringTag','UniverInstanceType','_configService','pluginName','__ink-preview-anchor__','9wjjXbg','push','isInkPenHandleVisible','fillColor','setInkPenAnchorPointType','ink.host-adapter.service','@univerjs/core','9437010IGmYxq','join','map','end','length','norm','call','filter','722552DFGToO','startIndex','prototype','OPERATION','7QutKSr','symbol','amd','UNIVER_UNKNOWN','indexOf','out','findClosestInkPenSegment','abs','start','Round','770hHdWjq','444671SfOCce','toDisposable','merge','type','exports','splice','defineProperty','ShapeLineCapEnum','points','ShapeTypeEnum','width','packageName','forEach','IInkHostAdapterService','max','hypot','height','ICommandService','createId','registerAdapter','cycleInkPenAnchorPointType','UNIVER_INK_PLUGIN','46830tqMYzW','min','Inject','_commandService','_injector','anchor','decorate','free','@univerjs-pro/engine-shape','left','buildInkCustomShapePayload','Rect','none','UniverLicensePlugin','ShapeLineTypeEnum','1.0.0-alpha.5','#f54a45','ShapeFillEnum','version','6548fSicGV','Injector','smooth','color','registerCommand','setConfig','10608tfbXLA','pointType','getInkModelBounds','opacity','toPrimitive','UniverCore','CommandType','round','sqrt','symmetric','createCustomShape','endIndex','top','ink-centerline-','function','UniverProInk','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','find','UniverProEngineShape','@univerjs-pro/license','_config','createIdentifier','2351330Iqskjm','findIndex','ShapeLineJoinEnum','_adapters','pen','anchors','moveInkPenAnchorPoint'];_0x5023=function(){return _0x1b4d51;};return _0x5023();}(function(_0x3a6ccf,_0x17d4a4){const _0x1d5682=_0x5227,_0x40133b=_0x3a6ccf();while(!![]){try{const _0x7d0cfe=-parseInt(_0x1d5682(0x150))/0x1+-parseInt(_0x1d5682(0x12a))/0x2*(-parseInt(_0x1d5682(0x17f))/0x3)+parseInt(_0x1d5682(0x179))/0x4*(-parseInt(_0x1d5682(0x14f))/0x5)+-parseInt(_0x1d5682(0x166))/0x6+-parseInt(_0x1d5682(0x145))/0x7*(-parseInt(_0x1d5682(0x141))/0x8)+-parseInt(_0x1d5682(0x132))/0x9*(parseInt(_0x1d5682(0x118))/0xa)+parseInt(_0x1d5682(0x139))/0xb;if(_0x7d0cfe===_0x17d4a4)break;else _0x40133b['push'](_0x40133b['shift']());}catch(_0x4f87fb){_0x40133b['push'](_0x40133b['shift']());}}}(_0x5023,0x533aa),function(_0x4ecaf3,_0xa6743f){const _0xa9054f=_0x5227;typeof exports==_0xa9054f(0x129)&&typeof module<'u'?_0xa6743f(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0xa9054f(0x110)&&define[_0xa9054f(0x147)]?define([_0xa9054f(0x154),_0xa9054f(0x16e),_0xa9054f(0x115),_0xa9054f(0x138)],_0xa6743f):(_0x4ecaf3=typeof globalThis<'u'?globalThis:_0x4ecaf3||self,_0xa6743f(_0x4ecaf3[_0xa9054f(0x111)]={},_0x4ecaf3[_0xa9054f(0x114)],_0x4ecaf3['UniverProLicense'],_0x4ecaf3[_0xa9054f(0x184)]));}(this,function(_0x2ae93c,_0x383e6d,_0xb63ae8,_0x3c4216){const _0x23f9ff=_0x5227;Object[_0x23f9ff(0x156)](_0x2ae93c,Symbol[_0x23f9ff(0x12d)],{'value':_0x23f9ff(0x128)});let _0x12269a=0.0001;function _0x11da20(_0x5a8ede){return{'x':_0x5a8ede['x'],'y':_0x5a8ede['y']};}function _0x1cd352(_0x515f7f){const _0x2fdec6=_0x23f9ff;return{..._0x515f7f,'in':_0x515f7f['in']?_0x11da20(_0x515f7f['in']):void 0x0,'out':_0x515f7f[_0x2fdec6(0x14a)]?_0x11da20(_0x515f7f[_0x2fdec6(0x14a)]):void 0x0};}function _0x2d6319(_0x44be13){const _0x1bc5d3=_0x23f9ff;return{'kind':_0x1bc5d3(0x11c),'closed':_0x44be13[_0x1bc5d3(0x126)],'anchors':_0x44be13[_0x1bc5d3(0x11d)][_0x1bc5d3(0x13b)](_0x1cd352)};}function _0x5bd287(_0x2c51a3,_0x14051b,_0x4b03ad){return{'x':_0x2c51a3['x']+(_0x14051b['x']-_0x2c51a3['x'])*_0x4b03ad,'y':_0x2c51a3['y']+(_0x14051b['y']-_0x2c51a3['y'])*_0x4b03ad};}function _0x4a4a5a(_0x290928,_0x17f60d){return Math['hypot'](_0x290928['x']-_0x17f60d['x'],_0x290928['y']-_0x17f60d['y']);}function _0x56a257(_0x8fc788){const _0x5a293d=_0x23f9ff;let _0x12c483=Math[_0x5a293d(0x15f)](_0x8fc788['x'],_0x8fc788['y']);return _0x12c483<_0x12269a?{'x':0x1,'y':0x0}:{'x':_0x8fc788['x']/_0x12c483,'y':_0x8fc788['y']/_0x12c483};}function _0x2830c7(_0x135542,_0x2752b,_0x410eb2=_0x4a4a5a(_0x135542,_0x2752b)){let _0x4f6e87=_0x56a257({'x':_0x135542['x']-_0x2752b['x'],'y':_0x135542['y']-_0x2752b['y']});return{'x':_0x135542['x']+_0x4f6e87['x']*_0x410eb2,'y':_0x135542['y']+_0x4f6e87['y']*_0x410eb2};}function _0xd81a24(_0x4fe92b,_0x4f130d){const _0x1ccc72=_0x23f9ff;let {anchors:_0x5ddeae}=_0x4fe92b;return _0x5ddeae['length']<0x2||_0x4f130d<0x0?null:_0x4f130d<_0x5ddeae['length']-0x1?{'startIndex':_0x4f130d,'endIndex':_0x4f130d+0x1,'start':_0x5ddeae[_0x4f130d],'end':_0x5ddeae[_0x4f130d+0x1]}:_0x4fe92b[_0x1ccc72(0x126)]&&_0x4f130d===_0x5ddeae[_0x1ccc72(0x13d)]-0x1?{'startIndex':_0x5ddeae[_0x1ccc72(0x13d)]-0x1,'endIndex':0x0,'start':_0x5ddeae[_0x5ddeae[_0x1ccc72(0x13d)]-0x1],'end':_0x5ddeae[0x0]}:null;}function _0x2792ff(_0x350a92,_0x427231){const _0x2c8d3d=_0x23f9ff;var _0x11fcca,_0x125bcc;let _0x32a6e1=_0xd81a24(_0x350a92,_0x427231);return _0x32a6e1?[_0x32a6e1[_0x2c8d3d(0x14d)],(_0x11fcca=_0x32a6e1[_0x2c8d3d(0x14d)]['out'])==null?_0x32a6e1[_0x2c8d3d(0x14d)]:_0x11fcca,(_0x125bcc=_0x32a6e1[_0x2c8d3d(0x13c)]['in'])==null?_0x32a6e1[_0x2c8d3d(0x13c)]:_0x125bcc,_0x32a6e1[_0x2c8d3d(0x13c)]]:null;}function _0x184b1b(_0x2e7575,_0x49c0a7){var _0x80a793;return _0x49c0a7==='anchor'?_0x2e7575:(_0x80a793=_0x2e7575[_0x49c0a7])==null?null:_0x80a793;}function _0x514d33(_0x3e034e,_0x12a291,_0x34d5ec){const _0x5125cb=_0x23f9ff;return _0x34d5ec===_0x5125cb(0x16b)||_0x3e034e[_0x5125cb(0x126)]?!0x0:_0x34d5ec==='in'?_0x12a291>0x0:_0x12a291<_0x3e034e['anchors'][_0x5125cb(0x13d)]-0x1;}function _0x96e224(_0x1b9955,_0xe17c73){let [_0x1c6a56,_0x1473aa,_0x7ca4f8,_0x21251b]=_0x1b9955,_0x9d1c2e=_0x5bd287(_0x1c6a56,_0x1473aa,_0xe17c73),_0x13a9d3=_0x5bd287(_0x1473aa,_0x7ca4f8,_0xe17c73),_0x2dac58=_0x5bd287(_0x7ca4f8,_0x21251b,_0xe17c73);return _0x5bd287(_0x5bd287(_0x9d1c2e,_0x13a9d3,_0xe17c73),_0x5bd287(_0x13a9d3,_0x2dac58,_0xe17c73),_0xe17c73);}function _0x24e57a(_0x30d399,_0x565786){let [_0x27e8e7,_0x2e00c4,_0xac9b9a,_0x4fb238]=_0x30d399,_0x1e1c2d=_0x5bd287(_0x27e8e7,_0x2e00c4,_0x565786),_0x4520cc=_0x5bd287(_0x2e00c4,_0xac9b9a,_0x565786),_0x4d90c4=_0x5bd287(_0xac9b9a,_0x4fb238,_0x565786),_0x14d556=_0x5bd287(_0x1e1c2d,_0x4520cc,_0x565786),_0x8a8f71=_0x5bd287(_0x4520cc,_0x4d90c4,_0x565786),_0xccb516=_0x5bd287(_0x14d556,_0x8a8f71,_0x565786);return{'left':[_0x27e8e7,_0x1e1c2d,_0x14d556,_0xccb516],'right':[_0xccb516,_0x8a8f71,_0x4d90c4,_0x4fb238]};}function _0x516014(_0x431670,_0x5b5626,_0x26df5d){const _0x1b476b=_0x23f9ff;let _0x56c100=_0x26df5d['x']-_0x5b5626['x'],_0x148df3=_0x26df5d['y']-_0x5b5626['y'],_0x39c500=_0x56c100*_0x56c100+_0x148df3*_0x148df3,_0x351c11=_0x39c500<=_0x12269a?0x0:Math['max'](0x0,Math[_0x1b476b(0x167)](0x1,((_0x431670['x']-_0x5b5626['x'])*_0x56c100+(_0x431670['y']-_0x5b5626['y'])*_0x148df3)/_0x39c500)),_0x41d50a={'x':_0x5b5626['x']+_0x56c100*_0x351c11,'y':_0x5b5626['y']+_0x148df3*_0x351c11};return{'point':_0x41d50a,'ratio':_0x351c11,'distance':_0x4a4a5a(_0x431670,_0x41d50a)};}function _0x34e4f0(_0x26318a,_0x5ec77f,_0x11a62e){const _0x3da6bf=_0x23f9ff;return _0x516014(_0x26318a,_0x5ec77f,_0x11a62e)[_0x3da6bf(0x127)]**0x2;}function _0x3e9f25(_0x2babef,_0x15ec56){const _0x765b34=_0x23f9ff;if(_0x2babef[_0x765b34(0x13d)]<=0x2)return _0x2babef['map'](_0x11da20);let _0x202730=0x0,_0x5df5c4=0x0,_0x55288c=_0x2babef[0x0],_0x2548b3=_0x2babef[_0x2babef[_0x765b34(0x13d)]-0x1],_0xa9914e=_0x15ec56*_0x15ec56;for(let _0x921e96=0x1;_0x921e96<_0x2babef[_0x765b34(0x13d)]-0x1;_0x921e96++){let _0x56259c=_0x34e4f0(_0x2babef[_0x921e96],_0x55288c,_0x2548b3);_0x56259c>_0x202730&&(_0x202730=_0x56259c,_0x5df5c4=_0x921e96);}if(_0x202730<=_0xa9914e)return[_0x11da20(_0x55288c),_0x11da20(_0x2548b3)];let _0x49efea=_0x3e9f25(_0x2babef[_0x765b34(0x125)](0x0,_0x5df5c4+0x1),_0x15ec56),_0x335919=_0x3e9f25(_0x2babef[_0x765b34(0x125)](_0x5df5c4),_0x15ec56);return[..._0x49efea['slice'](0x0,-0x1),..._0x335919];}function _0x2d020c(_0x1afa13,_0x195194){var _0x116d47;let _0x3847f1=_0x1afa13[_0x195194],_0x556baf=_0x1afa13[_0x195194+0x1],_0x156eaa=(_0x116d47=_0x1afa13[_0x195194-0x1])==null?_0x3847f1:_0x116d47;return{'x':_0x3847f1['x']+(_0x556baf['x']-_0x156eaa['x'])/0x6,'y':_0x3847f1['y']+(_0x556baf['y']-_0x156eaa['y'])/0x6};}function _0x4847f7(_0x46ba8e,_0x30b6ce){var _0x2e3266;let _0x205bb1=_0x46ba8e[_0x30b6ce],_0x338143=_0x46ba8e[_0x30b6ce-0x1],_0x386a15=(_0x2e3266=_0x46ba8e[_0x30b6ce+0x1])==null?_0x205bb1:_0x2e3266;return{'x':_0x205bb1['x']-(_0x386a15['x']-_0x338143['x'])/0x6,'y':_0x205bb1['y']-(_0x386a15['y']-_0x338143['y'])/0x6};}function _0x51ca40(_0x27c940,_0x8d5103){const _0x8c6099=_0x23f9ff;var _0x94304f,_0x40cdc1;let _0x1dd6c6=_0x27c940[_0x8c6099(0x11d)][_0x8d5103],_0x4dad01=(_0x94304f=_0x27c940[_0x8c6099(0x11d)][_0x8d5103-0x1])==null?_0x27c940[_0x8c6099(0x126)]?_0x27c940[_0x8c6099(0x11d)][_0x27c940[_0x8c6099(0x11d)][_0x8c6099(0x13d)]-0x1]:null:_0x94304f,_0xcb1fe9=(_0x40cdc1=_0x27c940[_0x8c6099(0x11d)][_0x8d5103+0x1])==null?_0x27c940[_0x8c6099(0x126)]?_0x27c940['anchors'][0x0]:null:_0x40cdc1,_0x49cc06=_0x4dad01&&_0xcb1fe9?_0x56a257({'x':_0xcb1fe9['x']-_0x4dad01['x'],'y':_0xcb1fe9['y']-_0x4dad01['y']}):_0xcb1fe9?_0x56a257({'x':_0xcb1fe9['x']-_0x1dd6c6['x'],'y':_0xcb1fe9['y']-_0x1dd6c6['y']}):_0x4dad01?_0x56a257({'x':_0x1dd6c6['x']-_0x4dad01['x'],'y':_0x1dd6c6['y']-_0x4dad01['y']}):{'x':0x1,'y':0x0},_0x319cfb=_0x4dad01&&_0xcb1fe9?Math['max'](0x32,_0x4a4a5a(_0x4dad01,_0xcb1fe9)/0x4):0x32;return{'in':{'x':_0x1dd6c6['x']-_0x49cc06['x']*_0x319cfb,'y':_0x1dd6c6['y']-_0x49cc06['y']*_0x319cfb},'out':{'x':_0x1dd6c6['x']+_0x49cc06['x']*_0x319cfb,'y':_0x1dd6c6['y']+_0x49cc06['y']*_0x319cfb}};}function _0x5c846d(_0x2e5459,_0x1b5d7e){const _0x395ce3=_0x23f9ff;let _0x33fb1d=_0x2e5459[_0x1b5d7e],_0x1493bb=_0x1b5d7e==='in'?'out':'in',_0x19cd3a=_0x2e5459[_0x1493bb];if(_0x33fb1d){if(_0x2e5459['pointType']==='symmetric'){_0x2e5459[_0x1493bb]=_0x2830c7(_0x2e5459,_0x33fb1d);return;}_0x2e5459['pointType']===_0x395ce3(0x17b)&&(_0x2e5459[_0x1493bb]=_0x2830c7(_0x2e5459,_0x33fb1d,_0x19cd3a?_0x4a4a5a(_0x2e5459,_0x19cd3a):_0x4a4a5a(_0x2e5459,_0x33fb1d)));}}function _0x42b6e8(_0x16b003,_0x33e6a4){const _0xd71226=_0x23f9ff;let _0x51440d=_0x2d6319(_0x16b003);return!_0x33e6a4||_0x51440d['closed']||_0x51440d[_0xd71226(0x11d)][_0xd71226(0x13d)]===0x0||_0x51440d[_0xd71226(0x11d)][_0xd71226(0x133)]({'id':_0xd71226(0x131),'x':_0x33e6a4['x'],'y':_0x33e6a4['y'],'pointType':'corner'}),_0x51440d;}function _0x95bfa1(_0x4bd01f,_0x460bd2={}){const _0x50fdec=_0x23f9ff;var _0x19cad9,_0x42d571;let _0xa4794a=Math[_0x50fdec(0x15e)](0x0,(_0x19cad9=_0x460bd2['tolerance'])==null?Math['max'](0x4,_0x4bd01f['width']*0.35):_0x19cad9),_0xd3b446=(_0x42d571=_0x460bd2[_0x50fdec(0x162)])==null?_0x445ea8=>_0x50fdec(0x10f)+_0x445ea8:_0x42d571,_0x1d329e=_0x3e9f25(_0x4bd01f[_0x50fdec(0x158)],_0xa4794a),_0x13977f=_0x1d329e[_0x50fdec(0x13b)]((_0x349d00,_0x35f20a)=>({'id':_0xd3b446(_0x35f20a),'x':_0x349d00['x'],'y':_0x349d00['y'],'pointType':_0x50fdec(0x16d)}));for(let _0x86e258=0x0;_0x86e258<_0x13977f[_0x50fdec(0x13d)]-0x1;_0x86e258++)_0x13977f[_0x86e258][_0x50fdec(0x14a)]=_0x2d020c(_0x1d329e,_0x86e258),_0x13977f[_0x86e258+0x1]['in']=_0x4847f7(_0x1d329e,_0x86e258+0x1);return{'kind':_0x50fdec(0x11c),'closed':!0x1,'anchors':_0x13977f};}function _0x31d540(_0x42163e,_0x29afe4,_0x46dfe3){const _0x16633f=_0x23f9ff;let _0x3fd14c=null,_0x465757=['anchor','in',_0x16633f(0x14a)];return _0x42163e['anchors'][_0x16633f(0x15c)]((_0x4805ae,_0x4000a9)=>{const _0x16001a=_0x16633f;_0x465757[_0x16001a(0x15c)](_0x2f90b3=>{const _0x18159d=_0x16001a;if(!_0x514d33(_0x42163e,_0x4000a9,_0x2f90b3))return;let _0x384722=_0x184b1b(_0x4805ae,_0x2f90b3);if(!_0x384722)return;let _0x41aa92=_0x4a4a5a(_0x29afe4,_0x384722);_0x41aa92>_0x46dfe3||_0x3fd14c&&_0x41aa92>=_0x3fd14c[_0x18159d(0x127)]||(_0x3fd14c={'handle':{'kind':_0x2f90b3,'anchorId':_0x4805ae['id']},'point':_0x11da20(_0x384722),'distance':_0x41aa92});});}),_0x3fd14c;}function _0x53ff64(_0x276ba3,_0x957144,_0x50508d){const _0x4d326e=_0x23f9ff;let _0x251d1c=null,_0x446638=_0x276ba3['closed']?_0x276ba3[_0x4d326e(0x11d)]['length']:Math[_0x4d326e(0x15e)](0x0,_0x276ba3[_0x4d326e(0x11d)][_0x4d326e(0x13d)]-0x1);for(let _0x2f48f3=0x0;_0x2f48f3<_0x446638;_0x2f48f3++){let _0x2f911a=_0x2792ff(_0x276ba3,_0x2f48f3);if(!_0x2f911a)continue;let _0x5a1ac9=_0x96e224(_0x2f911a,0x0);for(let _0x31c676=0x1;_0x31c676<=0x20;_0x31c676++){let _0x3c65e7=_0x96e224(_0x2f911a,_0x31c676/0x20),_0x29dc40=_0x516014(_0x957144,_0x5a1ac9,_0x3c65e7),_0x3cc6c5=(_0x31c676-0x1+_0x29dc40['ratio'])/0x20;(!_0x251d1c||_0x29dc40[_0x4d326e(0x127)]<_0x251d1c[_0x4d326e(0x127)])&&(_0x251d1c={'segmentIndex':_0x2f48f3,'t':_0x3cc6c5,'point':_0x29dc40['point'],'distance':_0x29dc40['distance']}),_0x5a1ac9=_0x3c65e7;}}return _0x251d1c&&_0x251d1c[_0x4d326e(0x127)]<=_0x50508d?_0x251d1c:null;}function _0x5e32b0(_0x3e7211,_0x57e7e5,_0xe42550){const _0x593803=_0x23f9ff;let _0x142a31=_0x2d6319(_0x3e7211),_0x4a740a=_0xd81a24(_0x142a31,_0x57e7e5[_0x593803(0x120)]),_0x277954=_0x2792ff(_0x142a31,_0x57e7e5[_0x593803(0x120)]);if(!_0x4a740a||!_0x277954)return _0x142a31;let _0x5968c6=_0x24e57a(_0x277954,Math[_0x593803(0x15e)](0x0,Math[_0x593803(0x167)](0x1,_0x57e7e5['t']))),_0x335f7d={'id':_0xe42550(),'x':_0x5968c6[_0x593803(0x16f)][0x3]['x'],'y':_0x5968c6[_0x593803(0x16f)][0x3]['y'],'in':_0x11da20(_0x5968c6[_0x593803(0x16f)][0x2]),'out':_0x11da20(_0x5968c6['right'][0x1]),'pointType':'free'};return _0x142a31[_0x593803(0x11d)][_0x4a740a[_0x593803(0x142)]][_0x593803(0x14a)]=_0x11da20(_0x5968c6[_0x593803(0x16f)][0x1]),_0x142a31['anchors'][_0x4a740a[_0x593803(0x18a)]]['in']=_0x11da20(_0x5968c6['right'][0x2]),_0x142a31['anchors'][_0x593803(0x155)](_0x4a740a[_0x593803(0x142)]+0x1,0x0,_0x335f7d),_0x142a31;}function _0x31d78b(_0x30b5ba,_0x4364f2){const _0x1a9538=_0x23f9ff;let _0x5d6012=_0x2d6319(_0x30b5ba);return _0x5d6012[_0x1a9538(0x11d)]=_0x5d6012[_0x1a9538(0x11d)][_0x1a9538(0x140)](_0x5b12a0=>_0x5b12a0['id']!==_0x4364f2),_0x5d6012[_0x1a9538(0x126)]&&_0x5d6012[_0x1a9538(0x11d)][_0x1a9538(0x13d)]<0x3&&(_0x5d6012[_0x1a9538(0x126)]=!0x1),_0x5d6012;}function _0x3a7e54(_0x3e8736,_0xe16535,_0x8d2b13){const _0x10a115=_0x23f9ff;let _0x31fabc=_0x2d6319(_0x3e8736),_0x3bc74f=_0x31fabc[_0x10a115(0x11d)][_0x10a115(0x119)](_0x5ce552=>_0x5ce552['id']===_0xe16535),_0x39f984=_0x31fabc[_0x10a115(0x11d)][_0x3bc74f];if(!_0x39f984)return _0x31fabc;if(_0x39f984[_0x10a115(0x180)]=_0x8d2b13,_0x8d2b13===_0x10a115(0x12c))return delete _0x39f984['in'],delete _0x39f984[_0x10a115(0x14a)],_0x31fabc;let _0x2873e6=_0x51ca40(_0x31fabc,_0x3bc74f);if(_0x39f984['in']=_0x39f984['in']?_0x11da20(_0x39f984['in']):_0x2873e6['in'],_0x39f984[_0x10a115(0x14a)]=_0x39f984[_0x10a115(0x14a)]?_0x11da20(_0x39f984[_0x10a115(0x14a)]):_0x2873e6[_0x10a115(0x14a)],_0x8d2b13===_0x10a115(0x188)){let _0x13eea5=Math[_0x10a115(0x15e)](_0x4a4a5a(_0x39f984,_0x39f984['in']),_0x4a4a5a(_0x39f984,_0x39f984[_0x10a115(0x14a)]),0x32),_0x1bbf8a=_0x56a257({'x':_0x39f984[_0x10a115(0x14a)]['x']-_0x39f984['x'],'y':_0x39f984['out']['y']-_0x39f984['y']});_0x39f984[_0x10a115(0x14a)]={'x':_0x39f984['x']+_0x1bbf8a['x']*_0x13eea5,'y':_0x39f984['y']+_0x1bbf8a['y']*_0x13eea5},_0x39f984['in']={'x':_0x39f984['x']-_0x1bbf8a['x']*_0x13eea5,'y':_0x39f984['y']-_0x1bbf8a['y']*_0x13eea5};}else _0x8d2b13===_0x10a115(0x17b)&&_0x5c846d(_0x39f984,'out');return _0x31fabc;}function _0x2f5c1d(_0x21a4c2,_0x5e510e){const _0x32d578=_0x23f9ff;var _0x4af894;let _0x481fe4=_0x21a4c2[_0x32d578(0x11d)][_0x32d578(0x113)](_0x27dd12=>_0x27dd12['id']===_0x5e510e),_0x38d461=(_0x4af894=_0x481fe4==null?void 0x0:_0x481fe4[_0x32d578(0x180)])==null?'corner':_0x4af894;return _0x3a7e54(_0x21a4c2,_0x5e510e,_0x38d461==='corner'?'smooth':_0x38d461===_0x32d578(0x17b)?'symmetric':_0x38d461===_0x32d578(0x188)?'free':'corner');}function _0x54cc69(_0x35cabb,_0x282c52,_0x569f94){const _0x26f4f7=_0x23f9ff;let _0x3df726=_0x2d6319(_0x35cabb),_0x26dfcc=_0x3df726['anchors'][_0x26f4f7(0x113)](_0x352a90=>_0x352a90['id']===_0x282c52[_0x26f4f7(0x122)]);if(!_0x26dfcc)return _0x3df726;if(_0x282c52[_0x26f4f7(0x121)]===_0x26f4f7(0x16b)){let _0x4ca199={'x':_0x569f94['x']-_0x26dfcc['x'],'y':_0x569f94['y']-_0x26dfcc['y']};return _0x26dfcc['x']=_0x569f94['x'],_0x26dfcc['y']=_0x569f94['y'],_0x26dfcc['in']&&(_0x26dfcc['in']={'x':_0x26dfcc['in']['x']+_0x4ca199['x'],'y':_0x26dfcc['in']['y']+_0x4ca199['y']}),_0x26dfcc['out']&&(_0x26dfcc[_0x26f4f7(0x14a)]={'x':_0x26dfcc[_0x26f4f7(0x14a)]['x']+_0x4ca199['x'],'y':_0x26dfcc[_0x26f4f7(0x14a)]['y']+_0x4ca199['y']}),_0x3df726;}return _0x26dfcc[_0x282c52['kind']]=_0x11da20(_0x569f94),_0x26dfcc[_0x26f4f7(0x180)]===_0x26f4f7(0x12c)&&(_0x26dfcc[_0x26f4f7(0x180)]='free'),_0x5c846d(_0x26dfcc,_0x282c52['kind']),_0x3df726;}let _0x4728ee=1e-9;function _0x1ea1d1(_0x1496f1){const _0x2572ef=_0x23f9ff;let _0x4ab686=Math[_0x2572ef(0x186)](_0x1496f1*0x2710)/0x2710;return Object['is'](_0x4ab686,-0x0)?'0':String(_0x4ab686);}function _0x1cc548(_0x4f0de5){return _0x1ea1d1(_0x4f0de5['x'])+'\x20'+_0x1ea1d1(_0x4f0de5['y']);}function _0x56f4ef(_0x37e125,_0x394bba){return{'x':_0x37e125['x']-_0x394bba['x'],'y':_0x37e125['y']-_0x394bba['y']};}function _0x5747d7(_0x5405bb,_0x1265ef,_0x25abe2,_0x257da6,_0x5580d9){let _0x19cdc8=0x1-_0x5580d9;return{'x':_0x19cdc8*_0x19cdc8*_0x19cdc8*_0x5405bb['x']+0x3*_0x19cdc8*_0x19cdc8*_0x5580d9*_0x1265ef['x']+0x3*_0x19cdc8*_0x5580d9*_0x5580d9*_0x25abe2['x']+_0x5580d9*_0x5580d9*_0x5580d9*_0x257da6['x'],'y':_0x19cdc8*_0x19cdc8*_0x19cdc8*_0x5405bb['y']+0x3*_0x19cdc8*_0x19cdc8*_0x5580d9*_0x1265ef['y']+0x3*_0x19cdc8*_0x5580d9*_0x5580d9*_0x25abe2['y']+_0x5580d9*_0x5580d9*_0x5580d9*_0x257da6['y']};}function _0xe02c92(_0xa70dbd,_0x2f542f,_0xfe087d,_0x2bb659){const _0xa86577=_0x23f9ff;let _0x5a0de2=-_0xa70dbd+0x3*_0x2f542f-0x3*_0xfe087d+_0x2bb659,_0x3067cd=0x3*_0xa70dbd-0x6*_0x2f542f+0x3*_0xfe087d,_0x7ad2c0=-0x3*_0xa70dbd+0x3*_0x2f542f,_0x33a361=[];if(Math[_0xa86577(0x14c)](_0x5a0de2)<_0x4728ee){if(Math[_0xa86577(0x14c)](_0x3067cd)<_0x4728ee)return _0x33a361;let _0x5e2438=-_0x7ad2c0/(0x2*_0x3067cd);return _0x5e2438>0x0&&_0x5e2438<0x1&&_0x33a361['push'](_0x5e2438),_0x33a361;}let _0x5c9de8=_0x3067cd*_0x3067cd-0x3*_0x5a0de2*_0x7ad2c0;if(_0x5c9de8<0x0)return _0x33a361;let _0x15b8eb=Math[_0xa86577(0x187)](Math[_0xa86577(0x15e)](0x0,_0x5c9de8)),_0x5ceeaf=(-_0x3067cd+_0x15b8eb)/(0x3*_0x5a0de2),_0x596019=(-_0x3067cd-_0x15b8eb)/(0x3*_0x5a0de2);return _0x5ceeaf>0x0&&_0x5ceeaf<0x1&&_0x33a361[_0xa86577(0x133)](_0x5ceeaf),_0x596019>0x0&&_0x596019<0x1&&Math[_0xa86577(0x14c)](_0x596019-_0x5ceeaf)>_0x4728ee&&_0x33a361['push'](_0x596019),_0x33a361;}function _0x5adbed(_0x5a1411,_0x7702f2,_0x8783d6,_0x26b6b6,_0x386b2b){const _0x328aef=_0x23f9ff;_0x5a1411[_0x328aef(0x133)](_0x7702f2,_0x386b2b),new Set([..._0xe02c92(_0x7702f2['x'],_0x8783d6['x'],_0x26b6b6['x'],_0x386b2b['x']),..._0xe02c92(_0x7702f2['y'],_0x8783d6['y'],_0x26b6b6['y'],_0x386b2b['y'])])[_0x328aef(0x15c)](_0x36ab21=>{const _0x4feb06=_0x328aef;_0x5a1411[_0x4feb06(0x133)](_0x5747d7(_0x7702f2,_0x8783d6,_0x26b6b6,_0x386b2b,_0x36ab21));});}function _0x2b9b17(_0x501d7a){const _0x302eae=_0x23f9ff;let _0x59ee64=_0x501d7a[_0x302eae(0x11d)];if(_0x59ee64[_0x302eae(0x13d)]<=0x1)return _0x59ee64;let _0x6775a6=[];for(let _0x5a23e5=0x1;_0x5a23e5<_0x59ee64[_0x302eae(0x13d)];_0x5a23e5++){var _0x3882f0,_0x95f1ad;let _0x11d856=_0x59ee64[_0x5a23e5-0x1],_0x3f2306=_0x59ee64[_0x5a23e5];_0x5adbed(_0x6775a6,_0x11d856,(_0x3882f0=_0x11d856[_0x302eae(0x14a)])==null?_0x11d856:_0x3882f0,(_0x95f1ad=_0x3f2306['in'])==null?_0x3f2306:_0x95f1ad,_0x3f2306);}if(_0x501d7a['closed']&&_0x59ee64[_0x302eae(0x13d)]>0x1){var _0x1f4f40,_0x53b2b3;let _0x50240d=_0x59ee64[_0x59ee64['length']-0x1],_0xb21850=_0x59ee64[0x0];_0x5adbed(_0x6775a6,_0x50240d,(_0x1f4f40=_0x50240d[_0x302eae(0x14a)])==null?_0x50240d:_0x1f4f40,(_0x53b2b3=_0xb21850['in'])==null?_0xb21850:_0x53b2b3,_0xb21850);}return _0x6775a6;}function _0x53548c(_0x2f2b76){const _0x1b325b=_0x23f9ff;let _0x489004=_0x2f2b76['points'];if(_0x489004['length']<=0x1)return _0x489004;let _0x44a242=[];for(let _0x23b7c3=0x0;_0x23b7c3<_0x489004[_0x1b325b(0x13d)]-0x1;_0x23b7c3++){var _0x1abd18,_0x37b794;let _0x41ed6a=_0x489004[_0x23b7c3],_0x145ae9=_0x489004[_0x23b7c3+0x1],_0x588d75=(_0x1abd18=_0x489004[_0x23b7c3-0x1])==null?_0x41ed6a:_0x1abd18,_0x367ee9=(_0x37b794=_0x489004[_0x23b7c3+0x2])==null?_0x145ae9:_0x37b794;_0x5adbed(_0x44a242,_0x41ed6a,{'x':_0x41ed6a['x']+(_0x145ae9['x']-_0x588d75['x'])/0x6,'y':_0x41ed6a['y']+(_0x145ae9['y']-_0x588d75['y'])/0x6},{'x':_0x145ae9['x']-(_0x367ee9['x']-_0x41ed6a['x'])/0x6,'y':_0x145ae9['y']-(_0x367ee9['y']-_0x41ed6a['y'])/0x6},_0x145ae9);}return _0x44a242;}function _0x3986e5(_0x17d9a4){const _0x4ebeee=_0x23f9ff;return _0x17d9a4[_0x4ebeee(0x121)]==='pen'?_0x2b9b17(_0x17d9a4):_0x53548c(_0x17d9a4);}function _0x26e333(_0x18c6ad){const _0x4bc759=_0x23f9ff;let _0x32a332=Math[_0x4bc759(0x186)](_0x18c6ad*0x2710)/0x2710;return Object['is'](_0x32a332,-0x0)?0x0:_0x32a332;}function _0x4dcb65(_0x35ae20){const _0x2e62fd=_0x23f9ff;let _0x33b2be=_0x3986e5(_0x35ae20);if(_0x33b2be[_0x2e62fd(0x13d)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x51abee=Math[_0x2e62fd(0x167)](..._0x33b2be[_0x2e62fd(0x13b)](_0x3f0c9c=>_0x3f0c9c['x'])),_0x3b5dfe=Math[_0x2e62fd(0x167)](..._0x33b2be['map'](_0x2ff6ca=>_0x2ff6ca['y'])),_0x1b19d3=Math[_0x2e62fd(0x15e)](..._0x33b2be[_0x2e62fd(0x13b)](_0x1bcdfe=>_0x1bcdfe['x'])),_0xb982ae=Math[_0x2e62fd(0x15e)](..._0x33b2be[_0x2e62fd(0x13b)](_0x3e9745=>_0x3e9745['y']));return{'left':_0x26e333(_0x51abee),'top':_0x26e333(_0x3b5dfe),'width':_0x26e333(Math[_0x2e62fd(0x15e)](0x1,_0x1b19d3-_0x51abee)),'height':_0x26e333(Math[_0x2e62fd(0x15e)](0x1,_0xb982ae-_0x3b5dfe))};}function _0x2566bc(_0x17c50a,_0x128967){const _0x3f01f8=_0x23f9ff;let _0x5e8ea1=_0x17c50a[_0x3f01f8(0x11d)];if(_0x5e8ea1['length']===0x0)return'';let _0x44110a=['M\x20'+_0x1cc548(_0x56f4ef(_0x5e8ea1[0x0],_0x128967))];for(let _0x2c119c=0x1;_0x2c119c<_0x5e8ea1[_0x3f01f8(0x13d)];_0x2c119c++){var _0x510972,_0x1180df;let _0xe09fa3=_0x5e8ea1[_0x2c119c-0x1],_0x2ec340=_0x5e8ea1[_0x2c119c],_0x528aa3=(_0x510972=_0xe09fa3[_0x3f01f8(0x14a)])==null?_0xe09fa3:_0x510972,_0x24a75a=(_0x1180df=_0x2ec340['in'])==null?_0x2ec340:_0x1180df;_0x44110a['push']('C\x20'+_0x1cc548(_0x56f4ef(_0x528aa3,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x24a75a,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x2ec340,_0x128967)));}if(_0x17c50a[_0x3f01f8(0x126)]&&_0x5e8ea1[_0x3f01f8(0x13d)]>0x1){var _0x206f08,_0x102989;let _0x1d1f64=_0x5e8ea1[_0x5e8ea1['length']-0x1],_0x28c5aa=_0x5e8ea1[0x0],_0xf760a4=(_0x206f08=_0x1d1f64[_0x3f01f8(0x14a)])==null?_0x1d1f64:_0x206f08,_0x76d7c8=(_0x102989=_0x28c5aa['in'])==null?_0x28c5aa:_0x102989;_0x44110a[_0x3f01f8(0x133)]('C\x20'+_0x1cc548(_0x56f4ef(_0xf760a4,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x76d7c8,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x28c5aa,_0x128967))),_0x44110a['push']('Z');}return _0x44110a[_0x3f01f8(0x13a)]('\x20');}function _0x5c6ccd(_0x59277a,_0x34f78a){const _0x29b8bf=_0x23f9ff;let _0x544981=_0x59277a[_0x29b8bf(0x158)]['map'](_0x2333fd=>_0x56f4ef(_0x2333fd,_0x34f78a));if(_0x544981[_0x29b8bf(0x13d)]===0x0)return'';if(_0x544981[_0x29b8bf(0x13d)]===0x1)return'M\x20'+_0x1cc548(_0x544981[0x0]);let _0x1ef7bf=['M\x20'+_0x1cc548(_0x544981[0x0])];for(let _0x2576f9=0x0;_0x2576f9<_0x544981[_0x29b8bf(0x13d)]-0x1;_0x2576f9++){var _0x510c11,_0x974a2a;let _0x29dee0=_0x544981[_0x2576f9],_0x5d0c1e=_0x544981[_0x2576f9+0x1],_0x3dd17c=(_0x510c11=_0x544981[_0x2576f9-0x1])==null?_0x29dee0:_0x510c11,_0x2ed8cd=(_0x974a2a=_0x544981[_0x2576f9+0x2])==null?_0x5d0c1e:_0x974a2a,_0x224cac={'x':_0x29dee0['x']+(_0x5d0c1e['x']-_0x3dd17c['x'])/0x6,'y':_0x29dee0['y']+(_0x5d0c1e['y']-_0x3dd17c['y'])/0x6},_0x54cfa0={'x':_0x5d0c1e['x']-(_0x2ed8cd['x']-_0x29dee0['x'])/0x6,'y':_0x5d0c1e['y']-(_0x2ed8cd['y']-_0x29dee0['y'])/0x6};_0x1ef7bf[_0x29b8bf(0x133)]('C\x20'+_0x1cc548(_0x224cac)+'\x20'+_0x1cc548(_0x54cfa0)+'\x20'+_0x1cc548(_0x5d0c1e));}return _0x1ef7bf['join']('\x20');}function _0x3fc1f2(_0x3c487c,_0x5d709a){const _0x2b0bcb=_0x23f9ff;return _0x3c487c[_0x2b0bcb(0x121)]===_0x2b0bcb(0x11c)?_0x2566bc(_0x3c487c,_0x5d709a):_0x5c6ccd(_0x3c487c,_0x5d709a);}function _0x480ee9(_0x52e678,_0xc14fcd){const _0x16cf36=_0x23f9ff;return _0xc14fcd!=null&&_0xc14fcd[_0x16cf36(0x17c)]?_0xc14fcd[_0x16cf36(0x17c)]:_0x52e678['kind']===_0x16cf36(0x11c)?_0x16cf36(0x176):_0x52e678[_0x16cf36(0x17c)];}function _0x48a0d5(_0x4ed7a6,_0x2237a9){const _0x1d666b=_0x23f9ff;return(_0x2237a9==null?void 0x0:_0x2237a9[_0x1d666b(0x15a)])===void 0x0?_0x4ed7a6[_0x1d666b(0x121)]==='pen'?0x2:_0x4ed7a6[_0x1d666b(0x15a)]:_0x2237a9[_0x1d666b(0x15a)];}function _0x54c92e(_0x3926cc,_0x51b87e){const _0x200cb6=_0x23f9ff;return(_0x51b87e==null?void 0x0:_0x51b87e[_0x200cb6(0x182)])===void 0x0?_0x3926cc[_0x200cb6(0x121)]==='pen'?void 0x0:_0x3926cc[_0x200cb6(0x182)]:_0x51b87e[_0x200cb6(0x182)];}function _0x588893(_0x33faf8,_0x549a48){const _0x53eedf=_0x23f9ff;let _0x406ac5=_0x4dcb65(_0x33faf8),_0x3fd61e=_0x3fc1f2(_0x33faf8,{'x':_0x406ac5['left'],'y':_0x406ac5['top']}),_0x40ea7d=_0x33faf8[_0x53eedf(0x121)]===_0x53eedf(0x11c)&&_0x33faf8[_0x53eedf(0x126)],_0x216af7=_0x549a48==null?void 0x0:_0x549a48[_0x53eedf(0x135)];return{'shapeType':_0x383e6d[_0x53eedf(0x159)][_0x53eedf(0x171)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x406ac5[_0x53eedf(0x15a)],'h':_0x406ac5[_0x53eedf(0x160)],'fill':_0x40ea7d?_0x53eedf(0x13e):_0x53eedf(0x172),'stroke':!0x0,'data':_0x3fd61e,'dataArray':_0xccf2bc(_0x33faf8,{'x':_0x406ac5[_0x53eedf(0x16f)],'y':_0x406ac5[_0x53eedf(0x18b)]})}]},'fill':_0x40ea7d&&_0x216af7?{'color':_0x216af7,'fillType':_0x383e6d[_0x53eedf(0x177)]['SolidFill']}:{'fillType':_0x383e6d['ShapeFillEnum']['NoFill']},'stroke':{'color':_0x480ee9(_0x33faf8,_0x549a48),'width':_0x48a0d5(_0x33faf8,_0x549a48),'opacity':_0x54c92e(_0x33faf8,_0x549a48),'lineStrokeType':_0x383e6d[_0x53eedf(0x174)]['SolidLine'],'capType':_0x383e6d[_0x53eedf(0x157)]['Round'],'lineJoinType':_0x383e6d[_0x53eedf(0x11a)][_0x53eedf(0x14e)]}};}function _0x5141dc(_0x3264cf,_0x17cc4e){return{'x':_0x3264cf['x']-_0x17cc4e['x'],'y':_0x3264cf['y']-_0x17cc4e['y']};}function _0xccf2bc(_0x33cf5e,_0x45da68){const _0x875064=_0x23f9ff;if(_0x33cf5e[_0x875064(0x121)]==='pen'){let _0x11fc5c=_0x33cf5e[_0x875064(0x11d)];if(_0x11fc5c[_0x875064(0x13d)]===0x0)return[];let _0x35a706=_0x5141dc(_0x11fc5c[0x0],_0x45da68),_0x4b27dd=[{'command':'M','points':[_0x35a706['x'],_0x35a706['y']]}];for(let _0x10909e=0x1;_0x10909e<_0x11fc5c[_0x875064(0x13d)];_0x10909e++){var _0x394f53,_0x290e9f;let _0x1ed774=_0x11fc5c[_0x10909e-0x1],_0x56336f=_0x11fc5c[_0x10909e],_0x56d71b=_0x5141dc((_0x394f53=_0x1ed774['out'])==null?_0x1ed774:_0x394f53,_0x45da68),_0x39886c=_0x5141dc((_0x290e9f=_0x56336f['in'])==null?_0x56336f:_0x290e9f,_0x45da68),_0x5f5301=_0x5141dc(_0x56336f,_0x45da68);_0x4b27dd[_0x875064(0x133)]({'command':'C','points':[_0x56d71b['x'],_0x56d71b['y'],_0x39886c['x'],_0x39886c['y'],_0x5f5301['x'],_0x5f5301['y']]});}if(_0x33cf5e[_0x875064(0x126)]&&_0x11fc5c[_0x875064(0x13d)]>0x1){var _0x1b6227,_0x2b39b0;let _0x39de6a=_0x11fc5c[_0x11fc5c[_0x875064(0x13d)]-0x1],_0x58796b=_0x11fc5c[0x0],_0x5e7b93=_0x5141dc((_0x1b6227=_0x39de6a[_0x875064(0x14a)])==null?_0x39de6a:_0x1b6227,_0x45da68),_0x2e4a7a=_0x5141dc((_0x2b39b0=_0x58796b['in'])==null?_0x58796b:_0x2b39b0,_0x45da68),_0x3838bb=_0x5141dc(_0x58796b,_0x45da68);_0x4b27dd[_0x875064(0x133)]({'command':'C','points':[_0x5e7b93['x'],_0x5e7b93['y'],_0x2e4a7a['x'],_0x2e4a7a['y'],_0x3838bb['x'],_0x3838bb['y']]}),_0x4b27dd['push']({'command':'z','points':[]});}return _0x4b27dd;}let _0x4e4136=_0x33cf5e['points'][_0x875064(0x13b)](_0x3ae26c=>_0x5141dc(_0x3ae26c,_0x45da68));if(_0x4e4136['length']===0x0)return[];let _0x2d6296=[{'command':'M','points':[_0x4e4136[0x0]['x'],_0x4e4136[0x0]['y']]}];for(let _0x2b8312=0x0;_0x2b8312<_0x4e4136[_0x875064(0x13d)]-0x1;_0x2b8312++){var _0x35aa2c,_0x2e329f;let _0x31db25=_0x4e4136[_0x2b8312],_0x417c2e=_0x4e4136[_0x2b8312+0x1],_0x2ac303=(_0x35aa2c=_0x4e4136[_0x2b8312-0x1])==null?_0x31db25:_0x35aa2c,_0x23f1f0=(_0x2e329f=_0x4e4136[_0x2b8312+0x2])==null?_0x417c2e:_0x2e329f,_0x1790e6={'x':_0x31db25['x']+(_0x417c2e['x']-_0x2ac303['x'])/0x6,'y':_0x31db25['y']+(_0x417c2e['y']-_0x2ac303['y'])/0x6},_0x31ec5a={'x':_0x417c2e['x']-(_0x23f1f0['x']-_0x31db25['x'])/0x6,'y':_0x417c2e['y']-(_0x23f1f0['y']-_0x31db25['y'])/0x6};_0x2d6296[_0x875064(0x133)]({'command':'C','points':[_0x1790e6['x'],_0x1790e6['y'],_0x31ec5a['x'],_0x31ec5a['y'],_0x417c2e['x'],_0x417c2e['y']]});}return _0x2d6296;}function _0xdd7e30(_0x65323){const _0x81767e=_0x23f9ff;var _0x274c1e;let {model:_0x46b38f,sourceModel:_0x63a6a1=_0x46b38f,style:_0x39bf7f}=_0x65323,_0x4b0bb2=(_0x274c1e=_0x65323['tool'])==null?_0x46b38f[_0x81767e(0x121)]:_0x274c1e,_0x3e0fa3=_0x4dcb65(_0x46b38f),_0x23a567=_0x46b38f[_0x81767e(0x121)]==='pen'&&_0x4b0bb2!==_0x81767e(0x11c)?_0x46b38f:void 0x0;return{'transform':{..._0x3e0fa3,'rotation':0x0},'shapeData':_0x588893(_0x46b38f,_0x39bf7f),'ink':{'version':0x1,'tool':_0x4b0bb2,'sourceModel':_0x63a6a1,..._0x23a567?{'editModel':_0x23a567}:{},'normalizedBounds':_0x3e0fa3}};}var _0x2e378a=_0x23f9ff(0x11f),_0x304436=_0x23f9ff(0x175);function _0x18201e(_0x1d866c){'@babel/helpers - typeof';const _0x3151c5=_0x23f9ff;return _0x18201e=typeof Symbol==_0x3151c5(0x110)&&typeof Symbol['iterator']=='symbol'?function(_0xb3c4c1){return typeof _0xb3c4c1;}:function(_0xc505ab){const _0x275434=_0x3151c5;return _0xc505ab&&typeof Symbol=='function'&&_0xc505ab['constructor']===Symbol&&_0xc505ab!==Symbol[_0x275434(0x143)]?_0x275434(0x146):typeof _0xc505ab;},_0x18201e(_0x1d866c);}function _0x562060(_0x5d48df,_0xf578ae){const _0x59d0c1=_0x23f9ff;if(_0x18201e(_0x5d48df)!=_0x59d0c1(0x129)||!_0x5d48df)return _0x5d48df;var _0x420ca5=_0x5d48df[Symbol[_0x59d0c1(0x183)]];if(_0x420ca5!==void 0x0){var _0x319321=_0x420ca5[_0x59d0c1(0x13f)](_0x5d48df,_0xf578ae||'default');if(_0x18201e(_0x319321)!=_0x59d0c1(0x129))return _0x319321;throw TypeError(_0x59d0c1(0x112));}return(_0xf578ae==='string'?String:Number)(_0x5d48df);}function _0x53514a(_0x4fb0ee){var _0x2cecce=_0x562060(_0x4fb0ee,'string');return _0x18201e(_0x2cecce)=='symbol'?_0x2cecce:_0x2cecce+'';}function _0x2122c2(_0x2cf544,_0x39c08c,_0x1605d7){const _0x5810fd=_0x23f9ff;return(_0x39c08c=_0x53514a(_0x39c08c))in _0x2cf544?Object[_0x5810fd(0x156)](_0x2cf544,_0x39c08c,{'value':_0x1605d7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2cf544[_0x39c08c]=_0x1605d7,_0x2cf544;}let _0x1ed639=(0x0,_0x3c4216[_0x23f9ff(0x117)])(_0x23f9ff(0x137));var _0x2be810=class{constructor(){const _0x1b7e45=_0x23f9ff;_0x2122c2(this,_0x1b7e45(0x11b),[]);}[_0x23f9ff(0x163)](_0x35b635){const _0x451e50=_0x23f9ff;return this['_adapters'][_0x451e50(0x133)](_0x35b635),(0x0,_0x3c4216[_0x451e50(0x151)])(()=>{const _0x555d13=_0x451e50;let _0x1ca62b=this[_0x555d13(0x11b)][_0x555d13(0x149)](_0x35b635);_0x1ca62b>=0x0&&this[_0x555d13(0x11b)][_0x555d13(0x155)](_0x1ca62b,0x1);});}[_0x23f9ff(0x124)](_0x1e2a23){const _0x22cc79=_0x23f9ff;for(let _0x3c77b7 of this[_0x22cc79(0x11b)])if(_0x3c77b7[_0x22cc79(0x124)](_0x1e2a23))return!0x0;return!0x1;}async[_0x23f9ff(0x189)](_0x1cb918){const _0x515c0a=_0x23f9ff;for(let _0x112083 of this[_0x515c0a(0x11b)])if(_0x112083[_0x515c0a(0x189)]&&await _0x112083[_0x515c0a(0x189)](_0x1cb918))return!0x0;return!0x1;}};let _0x544e3d={'id':'ink.operation.start','type':_0x3c4216[_0x23f9ff(0x185)][_0x23f9ff(0x144)],'handler':(_0x32de60,_0x1e24f0)=>_0x1e24f0?_0x32de60['get'](_0x1ed639)[_0x23f9ff(0x124)](_0x1e24f0):!0x1},_0x52d8e4={};function _0x3e729c(_0x1b5750,_0x100fe9){return function(_0x51b5af,_0x1265cd){_0x100fe9(_0x51b5af,_0x1265cd,_0x1b5750);};}function _0x1e5c68(_0x15b980,_0x3f73a9,_0x511d82,_0x3fe382){const _0x4477c3=_0x23f9ff;var _0x5da1d2=arguments[_0x4477c3(0x13d)],_0x59c715=_0x5da1d2<0x3?_0x3f73a9:_0x3fe382===null?_0x3fe382=Object['getOwnPropertyDescriptor'](_0x3f73a9,_0x511d82):_0x3fe382,_0x396630;if(typeof Reflect==_0x4477c3(0x129)&&typeof Reflect[_0x4477c3(0x16c)]=='function')_0x59c715=Reflect[_0x4477c3(0x16c)](_0x15b980,_0x3f73a9,_0x511d82,_0x3fe382);else{for(var _0x40df7c=_0x15b980['length']-0x1;_0x40df7c>=0x0;_0x40df7c--)(_0x396630=_0x15b980[_0x40df7c])&&(_0x59c715=(_0x5da1d2<0x3?_0x396630(_0x59c715):_0x5da1d2>0x3?_0x396630(_0x3f73a9,_0x511d82,_0x59c715):_0x396630(_0x3f73a9,_0x511d82))||_0x59c715);}return _0x5da1d2>0x3&&_0x59c715&&Object[_0x4477c3(0x156)](_0x3f73a9,_0x511d82,_0x59c715),_0x59c715;}let _0x570a97=class extends _0x3c4216['Plugin']{constructor(_0x4447b8=_0x52d8e4,_0x45c685,_0x2c9b20,_0x2c0cfc){const _0x2abccb=_0x23f9ff;super(),this[_0x2abccb(0x116)]=_0x4447b8,this[_0x2abccb(0x16a)]=_0x45c685,this[_0x2abccb(0x169)]=_0x2c9b20,this[_0x2abccb(0x12f)]=_0x2c0cfc;let {..._0x2e1d56}=(0x0,_0x3c4216[_0x2abccb(0x152)])({},_0x52d8e4,this[_0x2abccb(0x116)]);this[_0x2abccb(0x12f)][_0x2abccb(0x17e)]('ink.config',_0x2e1d56);}[_0x23f9ff(0x123)](){const _0x46eb28=_0x23f9ff;[[_0x1ed639,{'useClass':_0x2be810}]][_0x46eb28(0x15c)](_0x3ce581=>this[_0x46eb28(0x16a)]['add'](_0x3ce581)),this['disposeWithMe'](this[_0x46eb28(0x169)][_0x46eb28(0x17d)](_0x544e3d));}};_0x2122c2(_0x570a97,_0x23f9ff(0x130),_0x23f9ff(0x165)),_0x2122c2(_0x570a97,_0x23f9ff(0x15b),_0x2e378a),_0x2122c2(_0x570a97,_0x23f9ff(0x178),_0x304436),_0x2122c2(_0x570a97,_0x23f9ff(0x153),_0x3c4216[_0x23f9ff(0x12e)][_0x23f9ff(0x148)]),_0x570a97=_0x1e5c68([(0x0,_0x3c4216['DependentOn'])(_0xb63ae8[_0x23f9ff(0x173)]),_0x3e729c(0x1,(0x0,_0x3c4216[_0x23f9ff(0x168)])(_0x3c4216[_0x23f9ff(0x17a)])),_0x3e729c(0x2,_0x3c4216[_0x23f9ff(0x161)]),_0x3e729c(0x3,_0x3c4216['IConfigService'])],_0x570a97),_0x2ae93c[_0x23f9ff(0x15d)]=_0x1ed639,Object[_0x23f9ff(0x156)](_0x2ae93c,_0x23f9ff(0x12b),{'enumerable':!0x0,'get':function(){return _0x570a97;}}),_0x2ae93c[_0x23f9ff(0x170)]=_0xdd7e30,_0x2ae93c['convertBrushModelToPenModel']=_0x95bfa1,_0x2ae93c[_0x23f9ff(0x164)]=_0x2f5c1d,_0x2ae93c['deleteInkPenAnchor']=_0x31d78b,_0x2ae93c['findClosestInkPenHandle']=_0x31d540,_0x2ae93c[_0x23f9ff(0x14b)]=_0x53ff64,_0x2ae93c[_0x23f9ff(0x181)]=_0x4dcb65,_0x2ae93c['getInkPenPreviewModel']=_0x42b6e8,_0x2ae93c['insertInkPenAnchorAt']=_0x5e32b0,_0x2ae93c[_0x23f9ff(0x134)]=_0x514d33,_0x2ae93c[_0x23f9ff(0x11e)]=_0x54cc69,_0x2ae93c[_0x23f9ff(0x136)]=_0x3a7e54;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/ink",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.5",
4
4
  "private": false,
5
5
  "description": "Reusable ink model and geometry integration for Univer.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -58,15 +58,15 @@
58
58
  "lib"
59
59
  ],
60
60
  "dependencies": {
61
- "@univerjs-pro/boards": "1.0.0-alpha.3",
62
- "@univerjs-pro/engine-shape": "1.0.0-alpha.3",
63
- "@univerjs-pro/license": "1.0.0-alpha.3",
64
- "@univerjs/core": "1.0.0-alpha.3"
61
+ "@univerjs-pro/boards": "1.0.0-alpha.5",
62
+ "@univerjs-pro/engine-shape": "1.0.0-alpha.5",
63
+ "@univerjs-pro/license": "1.0.0-alpha.5",
64
+ "@univerjs/core": "1.0.0-alpha.5"
65
65
  },
66
66
  "devDependencies": {
67
67
  "typescript": "^6.0.3",
68
68
  "vitest": "^4.1.10",
69
- "@univerjs-infra/shared": "1.0.0-alpha.3"
69
+ "@univerjs-infra/shared": "1.0.0-alpha.5"
70
70
  },
71
71
  "scripts": {
72
72
  "test": "vitest run",