@univerjs-pro/ink 1.0.0-beta.0 → 1.0.0-beta.2

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 _0x307b71=_0x4ee8;(function(_0x3cf796,_0x7ebb19){const _0x79ab0a=_0x4ee8,_0x31c5d0=_0x3cf796();while(!![]){try{const _0x3c21db=-parseInt(_0x79ab0a(0x111))/0x1*(-parseInt(_0x79ab0a(0x106))/0x2)+parseInt(_0x79ab0a(0x100))/0x3+-parseInt(_0x79ab0a(0xfa))/0x4*(parseInt(_0x79ab0a(0x116))/0x5)+-parseInt(_0x79ab0a(0xe0))/0x6+parseInt(_0x79ab0a(0xfc))/0x7+parseInt(_0x79ab0a(0x105))/0x8+parseInt(_0x79ab0a(0xe7))/0x9*(-parseInt(_0x79ab0a(0x10f))/0xa);if(_0x3c21db===_0x7ebb19)break;else _0x31c5d0['push'](_0x31c5d0['shift']());}catch(_0x5c9195){_0x31c5d0['push'](_0x31c5d0['shift']());}}}(_0x4eae,0xab275),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x307b71(0xf6)}));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[_0x307b71(0x101)]{['insertInk'](_0x4c3671){const _0x289313=_0x307b71;let _0x4ef3ae=o(_0x4c3671);return _0x4ef3ae&&this[_0x289313(0x10b)](_0x4ef3ae,{'insertIndex':_0x4c3671['insertIndex']})?_0x4ef3ae:null;}[_0x307b71(0x10a)](){const _0x346d6b=_0x307b71;return this[_0x346d6b(0xf3)]({'elementType':e[_0x346d6b(0xf8)]['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x346d6b(0xfe)](f);}};function o(_0x216fe8,_0x2d0da8){const _0xc252b8=_0x307b71;if(!c(_0x216fe8[_0xc252b8(0xf7)])||_0x216fe8['sourceModel']!==void 0x0&&!c(_0x216fe8['sourceModel'])||!l(_0x216fe8[_0xc252b8(0x110)]))return null;let _0x3ab42d=_0x216fe8[_0xc252b8(0x114)]??(_0x2d0da8==null?void 0x0:_0x2d0da8['parentId']),_0x52d84f=r[_0xc252b8(0x115)][_0xc252b8(0xf0)](_0x216fe8[_0xc252b8(0xf7)]),_0x4499c5=(0x0,n[_0xc252b8(0xe8)])({'model':_0x52d84f,'style':_0x216fe8[_0xc252b8(0x110)],'tool':_0x216fe8[_0xc252b8(0xe3)],'sourceModel':_0x216fe8[_0xc252b8(0x103)]?r[_0xc252b8(0x115)][_0xc252b8(0xf0)](_0x216fe8[_0xc252b8(0x103)]):_0x52d84f}),_0x3eb90c=u(_0x2d0da8==null?void 0x0:_0x2d0da8[_0xc252b8(0xf1)]);return{'id':(_0x2d0da8==null?void 0x0:_0x2d0da8['id'])??_0x216fe8['id']??(0x0,r['generateRandomId'])(0x6),'type':e[_0xc252b8(0xf8)][_0xc252b8(0xe4)],'transform':_0x4499c5[_0xc252b8(0xee)],'shapeData':_0x4499c5['shapeData'],'parentId':_0x3ab42d??void 0x0,'laneId':_0x216fe8[_0xc252b8(0xfb)]===void 0x0?_0x2d0da8==null?void 0x0:_0x2d0da8[_0xc252b8(0xfb)]:_0x216fe8['laneId'],'custom':{..._0x3eb90c,'ink':_0x4499c5[_0xc252b8(0xfd)]}};}function s(_0x4c3e1d){const _0x128707=_0x307b71;return Number[_0x128707(0x109)](_0x4c3e1d['x'])&&Number[_0x128707(0x109)](_0x4c3e1d['y']);}function c(_0x179e01){const _0x3a531b=_0x307b71;if(_0x179e01[_0x3a531b(0xf2)]===_0x3a531b(0x117)){let _0x5e3416=new Set();return _0x179e01[_0x3a531b(0xf4)][_0x3a531b(0xea)]>=(_0x179e01['closed']?0x3:0x2)&&_0x179e01['anchors'][_0x3a531b(0x113)](_0x12be06=>{const _0x17272a=_0x3a531b;let _0x3ce5ab=_0x12be06['id'][_0x17272a(0xe1)]()['length']>0x0&&!_0x5e3416['has'](_0x12be06['id'])&&s(_0x12be06)&&(!_0x12be06['in']||s(_0x12be06['in']))&&(!_0x12be06[_0x17272a(0xf5)]||s(_0x12be06['out']));return _0x5e3416[_0x17272a(0x10d)](_0x12be06['id']),_0x3ce5ab;});}return _0x179e01['points']['length']>=0x2&&_0x179e01[_0x3a531b(0xec)][_0x3a531b(0x113)](_0x59af4c=>s(_0x59af4c)&&Number['isFinite'](_0x59af4c['t'])&&(_0x59af4c[_0x3a531b(0xe2)]===void 0x0||Number['isFinite'](_0x59af4c[_0x3a531b(0xe2)])))&&Number[_0x3a531b(0x109)](_0x179e01[_0x3a531b(0x107)])&&_0x179e01['width']>0x0&&Number['isFinite'](_0x179e01['opacity'])&&_0x179e01[_0x3a531b(0xeb)]>=0x0&&_0x179e01[_0x3a531b(0xeb)]<=0x1;}function _0x4ee8(_0x5dabb8,_0x11ba55){_0x5dabb8=_0x5dabb8-0xe0;const _0x4eae0b=_0x4eae();let _0x4ee83f=_0x4eae0b[_0x5dabb8];return _0x4ee83f;}function l(_0x57fb8d){const _0x1014e2=_0x307b71;return _0x57fb8d===void 0x0||(_0x57fb8d[_0x1014e2(0x107)]===void 0x0||Number[_0x1014e2(0x109)](_0x57fb8d[_0x1014e2(0x107)])&&_0x57fb8d[_0x1014e2(0x107)]>0x0)&&(_0x57fb8d[_0x1014e2(0xeb)]===void 0x0||Number[_0x1014e2(0x109)](_0x57fb8d[_0x1014e2(0xeb)])&&_0x57fb8d[_0x1014e2(0xeb)]>=0x0&&_0x57fb8d[_0x1014e2(0xeb)]<=0x1);}function u(_0x4b5677){const _0x301df0=_0x307b71;return _0x4b5677&&typeof _0x4b5677==_0x301df0(0xe9)&&!Array[_0x301df0(0x108)](_0x4b5677)?_0x4b5677:{};}function d(_0x360b42){const _0x3b9250=_0x307b71;let _0x13c2c9=u(_0x360b42[_0x3b9250(0xf1)])[_0x3b9250(0xfd)];if(!_0x13c2c9||typeof _0x13c2c9!=_0x3b9250(0xe9)||Array[_0x3b9250(0x108)](_0x13c2c9))return null;let _0x4c0567=_0x13c2c9;return _0x4c0567[_0x3b9250(0x104)]===0x1&&_0x4c0567['sourceModel']&&typeof _0x4c0567[_0x3b9250(0x103)]==_0x3b9250(0xe9)?_0x4c0567:null;}function _0x4eae(){const _0x306cd3=['findElements','anchors','out','Module','model','BoardElementType','BoardInkHandleKind','312756ZurlHO','laneId','8626436AMNpXC','ink','filter','symmetric','1888200muLqWy','FBoard','extend','sourceModel','version','7359464EmpZzO','6TMpIlh','width','isArray','isFinite','getInks','_addElement','highlighter','add','corner','260HadddS','style','271240hmCNAN','brush','every','parentId','Tools','10WesNWQ','pen','type','4347384GKddOe','trim','pressure','tool','Shape','BoardInkPointType','FEnum','696951JBikoG','buildInkCustomShapePayload','object','length','opacity','points','BoardInkTool','transform','free','deepClone','custom','kind'];_0x4eae=function(){return _0x306cd3;};return _0x4eae();}function f(_0x2c892d){const _0x4977c7=_0x307b71;return _0x2c892d[_0x4977c7(0x118)]===e[_0x4977c7(0xf8)]['Shape']&&!!d(_0x2c892d);}t[_0x307b71(0x101)][_0x307b71(0x102)](a);const p={'Pen':_0x307b71(0x117),'Brush':_0x307b71(0x112),'Highlighter':_0x307b71(0x10c)},m={'Corner':_0x307b71(0x10e),'Smooth':'smooth','Symmetric':_0x307b71(0xff),'Free':_0x307b71(0xef)},h={'Anchor':'anchor','In':'in','Out':_0x307b71(0xf5)};var g=class extends i[_0x307b71(0xe6)]{get[_0x307b71(0xed)](){return p;}get[_0x307b71(0xe5)](){return m;}get[_0x307b71(0xf9)](){return h;}};i[_0x307b71(0xe6)][_0x307b71(0x102)](g),exports[_0x307b71(0xf9)]=h,exports[_0x307b71(0xe5)]=m,exports[_0x307b71(0xed)]=p;
1
+ const _0x290681=_0x3738;(function(_0x5cda1e,_0x14b7a5){const _0x35cb6f=_0x3738,_0x5df2fa=_0x5cda1e();while(!![]){try{const _0x5659a8=-parseInt(_0x35cb6f(0x91))/0x1*(parseInt(_0x35cb6f(0xa3))/0x2)+-parseInt(_0x35cb6f(0x9a))/0x3+-parseInt(_0x35cb6f(0xc7))/0x4+parseInt(_0x35cb6f(0xb1))/0x5+-parseInt(_0x35cb6f(0xb2))/0x6*(-parseInt(_0x35cb6f(0xb3))/0x7)+parseInt(_0x35cb6f(0xad))/0x8+parseInt(_0x35cb6f(0xa8))/0x9;if(_0x5659a8===_0x14b7a5)break;else _0x5df2fa['push'](_0x5df2fa['shift']());}catch(_0x38404e){_0x5df2fa['push'](_0x5df2fa['shift']());}}}(_0x57ff,0x1e6cf),Object[_0x290681(0xaf)](exports,Symbol['toStringTag'],{'value':_0x290681(0x9b)}));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[_0x290681(0xc4)]{[_0x290681(0x92)](_0x2ab7c5){const _0x11e2d9=_0x290681;let _0x189bed=o(_0x2ab7c5);return _0x189bed&&this[_0x11e2d9(0xcb)](_0x189bed,{'insertIndex':_0x2ab7c5[_0x11e2d9(0x97)]})?_0x189bed:null;}['getInks'](){const _0x4f2ed3=_0x290681;return this['findElements']({'elementType':e[_0x4f2ed3(0x96)][_0x4f2ed3(0xca)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x4f2ed3(0xbb)](f);}};function o(_0x3d51be,_0x1b3650){const _0x56492c=_0x290681;if(!c(_0x3d51be[_0x56492c(0x99)])||_0x3d51be[_0x56492c(0xa4)]!==void 0x0&&!c(_0x3d51be[_0x56492c(0xa4)])||!l(_0x3d51be[_0x56492c(0xa6)]))return null;let _0x23f7db=_0x3d51be[_0x56492c(0xb0)]??(_0x1b3650==null?void 0x0:_0x1b3650['parentId']),_0x198ed1=r[_0x56492c(0x93)][_0x56492c(0xbc)](_0x3d51be[_0x56492c(0x99)]),_0x3a9a5e=(0x0,n[_0x56492c(0x9f)])({'model':_0x198ed1,'style':_0x3d51be[_0x56492c(0xa6)],'tool':_0x3d51be[_0x56492c(0xbe)],'sourceModel':_0x3d51be[_0x56492c(0xa4)]?r['Tools'][_0x56492c(0xbc)](_0x3d51be[_0x56492c(0xa4)]):_0x198ed1}),_0x453179=u(_0x1b3650==null?void 0x0:_0x1b3650[_0x56492c(0x90)]);return{'id':(_0x1b3650==null?void 0x0:_0x1b3650['id'])??_0x3d51be['id']??(0x0,r[_0x56492c(0xb4)])(0x6),'type':e[_0x56492c(0x96)]['Shape'],'transform':_0x3a9a5e[_0x56492c(0xa5)],'shapeData':_0x3a9a5e['shapeData'],'parentId':_0x23f7db??void 0x0,'laneId':_0x3d51be[_0x56492c(0xc2)]===void 0x0?_0x1b3650==null?void 0x0:_0x1b3650[_0x56492c(0xc2)]:_0x3d51be[_0x56492c(0xc2)],'custom':{..._0x453179,'ink':_0x3a9a5e[_0x56492c(0xae)]}};}function s(_0x238f83){const _0x5b1857=_0x290681;return Number[_0x5b1857(0x95)](_0x238f83['x'])&&Number[_0x5b1857(0x95)](_0x238f83['y']);}function c(_0x5b4006){const _0x1747bd=_0x290681;if(_0x5b4006['kind']==='pen'){let _0x2ae7c2=new Set();return _0x5b4006[_0x1747bd(0xa2)]['length']>=(_0x5b4006[_0x1747bd(0xa7)]?0x3:0x2)&&_0x5b4006['anchors'][_0x1747bd(0xaa)](_0x33feb2=>{const _0x37221d=_0x1747bd;let _0x348a50=_0x33feb2['id'][_0x37221d(0xbf)]()[_0x37221d(0xa1)]>0x0&&!_0x2ae7c2[_0x37221d(0x9e)](_0x33feb2['id'])&&s(_0x33feb2)&&(!_0x33feb2['in']||s(_0x33feb2['in']))&&(!_0x33feb2[_0x37221d(0x98)]||s(_0x33feb2[_0x37221d(0x98)]));return _0x2ae7c2[_0x37221d(0xbd)](_0x33feb2['id']),_0x348a50;});}return _0x5b4006[_0x1747bd(0x9c)][_0x1747bd(0xa1)]>=0x2&&_0x5b4006[_0x1747bd(0x9c)][_0x1747bd(0xaa)](_0x3fd5c9=>s(_0x3fd5c9)&&Number[_0x1747bd(0x95)](_0x3fd5c9['t'])&&(_0x3fd5c9[_0x1747bd(0xc3)]===void 0x0||Number['isFinite'](_0x3fd5c9[_0x1747bd(0xc3)])))&&Number['isFinite'](_0x5b4006[_0x1747bd(0xb7)])&&_0x5b4006[_0x1747bd(0xb7)]>0x0&&Number['isFinite'](_0x5b4006[_0x1747bd(0xba)])&&_0x5b4006['opacity']>=0x0&&_0x5b4006['opacity']<=0x1;}function l(_0x351c5a){const _0x84c1ca=_0x290681;return _0x351c5a===void 0x0||(_0x351c5a[_0x84c1ca(0xb7)]===void 0x0||Number[_0x84c1ca(0x95)](_0x351c5a[_0x84c1ca(0xb7)])&&_0x351c5a[_0x84c1ca(0xb7)]>0x0)&&(_0x351c5a[_0x84c1ca(0xba)]===void 0x0||Number[_0x84c1ca(0x95)](_0x351c5a[_0x84c1ca(0xba)])&&_0x351c5a[_0x84c1ca(0xba)]>=0x0&&_0x351c5a[_0x84c1ca(0xba)]<=0x1);}function _0x57ff(){const _0x235def=['Tools','pen','isFinite','BoardElementType','insertIndex','out','model','216495gofzxh','Module','points','FEnum','has','buildInkCustomShapePayload','corner','length','anchors','2mvCgwk','sourceModel','transform','style','closed','993564efuLym','BoardInkPointType','every','highlighter','BoardInkHandleKind','62976TYsewI','ink','defineProperty','parentId','316630TzWjMw','23988pDqsQU','357SwpHbx','generateRandomId','free','smooth','width','object','extend','opacity','filter','deepClone','add','tool','trim','symmetric','BoardInkTool','laneId','pressure','FBoard','type','brush','44440vHJnjO','anchor','version','Shape','_addElement','custom','177594PFtJXz','insertInk'];_0x57ff=function(){return _0x235def;};return _0x57ff();}function u(_0x55e796){return _0x55e796&&typeof _0x55e796=='object'&&!Array['isArray'](_0x55e796)?_0x55e796:{};}function _0x3738(_0x47bee5,_0x3656e5){_0x47bee5=_0x47bee5-0x90;const _0x57ffda=_0x57ff();let _0x373831=_0x57ffda[_0x47bee5];return _0x373831;}function d(_0x52819b){const _0x51c1c9=_0x290681;let _0x5be267=u(_0x52819b[_0x51c1c9(0x90)])[_0x51c1c9(0xae)];if(!_0x5be267||typeof _0x5be267!=_0x51c1c9(0xb8)||Array['isArray'](_0x5be267))return null;let _0x1a40f3=_0x5be267;return _0x1a40f3[_0x51c1c9(0xc9)]===0x1&&_0x1a40f3[_0x51c1c9(0xa4)]&&typeof _0x1a40f3[_0x51c1c9(0xa4)]=='object'?_0x1a40f3:null;}function f(_0x51b347){const _0x1881be=_0x290681;return _0x51b347[_0x1881be(0xc5)]===e[_0x1881be(0x96)]['Shape']&&!!d(_0x51b347);}t['FBoard'][_0x290681(0xb9)](a);const p={'Pen':_0x290681(0x94),'Brush':_0x290681(0xc6),'Highlighter':_0x290681(0xab)},m={'Corner':_0x290681(0xa0),'Smooth':_0x290681(0xb6),'Symmetric':_0x290681(0xc0),'Free':_0x290681(0xb5)},h={'Anchor':_0x290681(0xc8),'In':'in','Out':'out'};var g=class extends i[_0x290681(0x9d)]{get['BoardInkTool'](){return p;}get[_0x290681(0xa9)](){return m;}get[_0x290681(0xac)](){return h;}};i['FEnum'][_0x290681(0xb9)](g),exports[_0x290681(0xac)]=h,exports[_0x290681(0xa9)]=m,exports[_0x290681(0xc1)]=p;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0xf8ff5a=_0x39ca;(function(_0x4f664e,_0x593ca9){const _0x334a77=_0x39ca,_0x2e1010=_0x4f664e();while(!![]){try{const _0x18d8e2=parseInt(_0x334a77(0xf1))/0x1*(-parseInt(_0x334a77(0xc9))/0x2)+-parseInt(_0x334a77(0xe7))/0x3+parseInt(_0x334a77(0xf8))/0x4+-parseInt(_0x334a77(0xe6))/0x5+parseInt(_0x334a77(0xab))/0x6+parseInt(_0x334a77(0x103))/0x7*(-parseInt(_0x334a77(0xa7))/0x8)+-parseInt(_0x334a77(0xb9))/0x9*(-parseInt(_0x334a77(0xb8))/0xa);if(_0x18d8e2===_0x593ca9)break;else _0x2e1010['push'](_0x2e1010['shift']());}catch(_0x2cb678){_0x2e1010['push'](_0x2e1010['shift']());}}}(_0x1e55,0xca88d),Object['defineProperty'](exports,Symbol[_0xf8ff5a(0xfb)],{'value':_0xf8ff5a(0xa4)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x5b1ad0){return{'x':_0x5b1ad0['x'],'y':_0x5b1ad0['y']};}function a(_0x37ca7c){const _0x20a85c=_0xf8ff5a;return{..._0x37ca7c,'in':_0x37ca7c['in']?i(_0x37ca7c['in']):void 0x0,'out':_0x37ca7c[_0x20a85c(0xe0)]?i(_0x37ca7c[_0x20a85c(0xe0)]):void 0x0};}function o(_0x2ae095){const _0x3b5269=_0xf8ff5a;return{'kind':_0x3b5269(0xe1),'closed':_0x2ae095[_0x3b5269(0xd5)],'anchors':_0x2ae095[_0x3b5269(0xe8)][_0x3b5269(0x102)](a)};}function s(_0x53e809,_0x5ef25d,_0x3ceb76){return{'x':_0x53e809['x']+(_0x5ef25d['x']-_0x53e809['x'])*_0x3ceb76,'y':_0x53e809['y']+(_0x5ef25d['y']-_0x53e809['y'])*_0x3ceb76};}function c(_0x1f9de3,_0x584c0f){const _0x387254=_0xf8ff5a;return Math[_0x387254(0xed)](_0x1f9de3['x']-_0x584c0f['x'],_0x1f9de3['y']-_0x584c0f['y']);}function l(_0x1fa004){const _0x5d44c9=_0xf8ff5a;let _0x5714ff=Math[_0x5d44c9(0xed)](_0x1fa004['x'],_0x1fa004['y']);return _0x5714ff<r?{'x':0x1,'y':0x0}:{'x':_0x1fa004['x']/_0x5714ff,'y':_0x1fa004['y']/_0x5714ff};}function u(_0x355da8,_0x1e9778,_0x44322c=c(_0x355da8,_0x1e9778)){let _0x500fec=l({'x':_0x355da8['x']-_0x1e9778['x'],'y':_0x355da8['y']-_0x1e9778['y']});return{'x':_0x355da8['x']+_0x500fec['x']*_0x44322c,'y':_0x355da8['y']+_0x500fec['y']*_0x44322c};}function d(_0x30ac23,_0x4d13c4){const _0x42fda7=_0xf8ff5a;let {anchors:_0x343701}=_0x30ac23;return _0x343701[_0x42fda7(0xec)]<0x2||_0x4d13c4<0x0?null:_0x4d13c4<_0x343701[_0x42fda7(0xec)]-0x1?{'startIndex':_0x4d13c4,'endIndex':_0x4d13c4+0x1,'start':_0x343701[_0x4d13c4],'end':_0x343701[_0x4d13c4+0x1]}:_0x30ac23['closed']&&_0x4d13c4===_0x343701['length']-0x1?{'startIndex':_0x343701[_0x42fda7(0xec)]-0x1,'endIndex':0x0,'start':_0x343701[_0x343701['length']-0x1],'end':_0x343701[0x0]}:null;}function f(_0x13b0bc,_0x1cac36){const _0x114899=_0xf8ff5a;let _0xec0907=d(_0x13b0bc,_0x1cac36);return _0xec0907?[_0xec0907[_0x114899(0x9c)],_0xec0907[_0x114899(0x9c)]['out']??_0xec0907[_0x114899(0x9c)],_0xec0907[_0x114899(0xc6)]['in']??_0xec0907[_0x114899(0xc6)],_0xec0907[_0x114899(0xc6)]]:null;}function ee(_0x2be0ef,_0x5aff3e){return _0x5aff3e==='anchor'?_0x2be0ef:_0x2be0ef[_0x5aff3e]??null;}function p(_0x436d04,_0x5353fb,_0x183eba){const _0x39c79c=_0xf8ff5a;return _0x183eba===_0x39c79c(0xd3)||_0x436d04[_0x39c79c(0xd5)]?!0x0:_0x183eba==='in'?_0x5353fb>0x0:_0x5353fb<_0x436d04[_0x39c79c(0xe8)]['length']-0x1;}function m(_0x575da2,_0x320a23){let [_0x376481,_0x1e7d34,_0x44c088,_0x56c7b7]=_0x575da2,_0x81bce3=s(_0x376481,_0x1e7d34,_0x320a23),_0x4dfa7e=s(_0x1e7d34,_0x44c088,_0x320a23),_0x34e1c2=s(_0x44c088,_0x56c7b7,_0x320a23);return s(s(_0x81bce3,_0x4dfa7e,_0x320a23),s(_0x4dfa7e,_0x34e1c2,_0x320a23),_0x320a23);}function h(_0x46fa72,_0x2844d0){let [_0x32f979,_0x5871f1,_0x22f944,_0x43cfbb]=_0x46fa72,_0x4bb254=s(_0x32f979,_0x5871f1,_0x2844d0),_0x46a1a8=s(_0x5871f1,_0x22f944,_0x2844d0),_0x5ca7d4=s(_0x22f944,_0x43cfbb,_0x2844d0),_0x3bbcc8=s(_0x4bb254,_0x46a1a8,_0x2844d0),_0x35c3b9=s(_0x46a1a8,_0x5ca7d4,_0x2844d0),_0x2f7680=s(_0x3bbcc8,_0x35c3b9,_0x2844d0);return{'left':[_0x32f979,_0x4bb254,_0x3bbcc8,_0x2f7680],'right':[_0x2f7680,_0x35c3b9,_0x5ca7d4,_0x43cfbb]};}function g(_0x3d665f,_0x2efead,_0x4cac54){const _0x336853=_0xf8ff5a;let _0x378a7a=_0x4cac54['x']-_0x2efead['x'],_0x2f9c79=_0x4cac54['y']-_0x2efead['y'],_0x4b9401=_0x378a7a*_0x378a7a+_0x2f9c79*_0x2f9c79,_0x4ba0b3=_0x4b9401<=r?0x0:Math['max'](0x0,Math[_0x336853(0x10b)](0x1,((_0x3d665f['x']-_0x2efead['x'])*_0x378a7a+(_0x3d665f['y']-_0x2efead['y'])*_0x2f9c79)/_0x4b9401)),_0x4473eb={'x':_0x2efead['x']+_0x378a7a*_0x4ba0b3,'y':_0x2efead['y']+_0x2f9c79*_0x4ba0b3};return{'point':_0x4473eb,'ratio':_0x4ba0b3,'distance':c(_0x3d665f,_0x4473eb)};}function te(_0x2431be,_0x4cfcff,_0x48b892){const _0xbe8829=_0xf8ff5a;return g(_0x2431be,_0x4cfcff,_0x48b892)[_0xbe8829(0xef)]**0x2;}function _(_0x13f291,_0x1cf35e){const _0x1be61a=_0xf8ff5a;if(_0x13f291[_0x1be61a(0xec)]<=0x2)return _0x13f291[_0x1be61a(0x102)](i);let _0x82ce68=0x0,_0x392c2d=0x0,_0x1dc35c=_0x13f291[0x0],_0x269a00=_0x13f291[_0x13f291[_0x1be61a(0xec)]-0x1],_0x48d1c5=_0x1cf35e*_0x1cf35e;for(let _0x2f4c9e=0x1;_0x2f4c9e<_0x13f291[_0x1be61a(0xec)]-0x1;_0x2f4c9e++){let _0x4cc8d7=te(_0x13f291[_0x2f4c9e],_0x1dc35c,_0x269a00);_0x4cc8d7>_0x82ce68&&(_0x82ce68=_0x4cc8d7,_0x392c2d=_0x2f4c9e);}if(_0x82ce68<=_0x48d1c5)return[i(_0x1dc35c),i(_0x269a00)];let _0x2fa150=_(_0x13f291['slice'](0x0,_0x392c2d+0x1),_0x1cf35e),_0x48283=_(_0x13f291[_0x1be61a(0xcc)](_0x392c2d),_0x1cf35e);return[..._0x2fa150[_0x1be61a(0xcc)](0x0,-0x1),..._0x48283];}function ne(_0x24cd4f,_0x20c035){let _0x3db41e=_0x24cd4f[_0x20c035],_0x41de2e=_0x24cd4f[_0x20c035+0x1],_0x2bad0b=_0x24cd4f[_0x20c035-0x1]??_0x3db41e;return{'x':_0x3db41e['x']+(_0x41de2e['x']-_0x2bad0b['x'])/0x6,'y':_0x3db41e['y']+(_0x41de2e['y']-_0x2bad0b['y'])/0x6};}function v(_0x1b8842,_0x235441){let _0x2da571=_0x1b8842[_0x235441],_0x4b4276=_0x1b8842[_0x235441-0x1],_0x32bda6=_0x1b8842[_0x235441+0x1]??_0x2da571;return{'x':_0x2da571['x']-(_0x32bda6['x']-_0x4b4276['x'])/0x6,'y':_0x2da571['y']-(_0x32bda6['y']-_0x4b4276['y'])/0x6};}function y(_0x487d2c,_0x405454){const _0x16f5e0=_0xf8ff5a;let _0x59c789=_0x487d2c['anchors'][_0x405454],_0x9b324=_0x487d2c[_0x16f5e0(0xe8)][_0x405454-0x1]??(_0x487d2c[_0x16f5e0(0xd5)]?_0x487d2c[_0x16f5e0(0xe8)][_0x487d2c['anchors'][_0x16f5e0(0xec)]-0x1]:null),_0x56547e=_0x487d2c[_0x16f5e0(0xe8)][_0x405454+0x1]??(_0x487d2c[_0x16f5e0(0xd5)]?_0x487d2c[_0x16f5e0(0xe8)][0x0]:null),_0x3fecb2=_0x9b324&&_0x56547e?l({'x':_0x56547e['x']-_0x9b324['x'],'y':_0x56547e['y']-_0x9b324['y']}):_0x56547e?l({'x':_0x56547e['x']-_0x59c789['x'],'y':_0x56547e['y']-_0x59c789['y']}):_0x9b324?l({'x':_0x59c789['x']-_0x9b324['x'],'y':_0x59c789['y']-_0x9b324['y']}):{'x':0x1,'y':0x0},_0x502e19=_0x9b324&&_0x56547e?Math[_0x16f5e0(0xd0)](0x32,c(_0x9b324,_0x56547e)/0x4):0x32;return{'in':{'x':_0x59c789['x']-_0x3fecb2['x']*_0x502e19,'y':_0x59c789['y']-_0x3fecb2['y']*_0x502e19},'out':{'x':_0x59c789['x']+_0x3fecb2['x']*_0x502e19,'y':_0x59c789['y']+_0x3fecb2['y']*_0x502e19}};}function b(_0x561170,_0x5f48cb){const _0xadf304=_0xf8ff5a;let _0x24a614=_0x561170[_0x5f48cb],_0x1409fd=_0x5f48cb==='in'?_0xadf304(0xe0):'in',_0x475040=_0x561170[_0x1409fd];if(_0x24a614){if(_0x561170[_0xadf304(0xca)]==='symmetric'){_0x561170[_0x1409fd]=u(_0x561170,_0x24a614);return;}_0x561170[_0xadf304(0xca)]==='smooth'&&(_0x561170[_0x1409fd]=u(_0x561170,_0x24a614,_0x475040?c(_0x561170,_0x475040):c(_0x561170,_0x24a614)));}}function x(_0xba2d42,_0x16ad68){const _0x472123=_0xf8ff5a;let _0x2903d2=o(_0xba2d42);return!_0x16ad68||_0x2903d2[_0x472123(0xd5)]||_0x2903d2[_0x472123(0xe8)]['length']===0x0||_0x2903d2['anchors'][_0x472123(0x100)]({'id':_0x472123(0xb1),'x':_0x16ad68['x'],'y':_0x16ad68['y'],'pointType':_0x472123(0xf4)}),_0x2903d2;}function re(_0x2b45af,_0x3dbbf={}){const _0x198f1a=_0xf8ff5a;let _0x299927=Math[_0x198f1a(0xd0)](0x0,_0x3dbbf[_0x198f1a(0xb0)]??Math[_0x198f1a(0xd0)](0x4,_0x2b45af[_0x198f1a(0xd7)]*0.35)),_0x285ba8=_0x3dbbf[_0x198f1a(0x91)]??(_0x12ab14=>_0x198f1a(0xaa)+_0x12ab14),_0xe929ce=_(_0x2b45af['points'],_0x299927),_0x41fc68=_0xe929ce['map']((_0x301844,_0x3353b4)=>({'id':_0x285ba8(_0x3353b4),'x':_0x301844['x'],'y':_0x301844['y'],'pointType':_0x198f1a(0xb4)}));for(let _0x14afcb=0x0;_0x14afcb<_0x41fc68['length']-0x1;_0x14afcb++)_0x41fc68[_0x14afcb][_0x198f1a(0xe0)]=ne(_0xe929ce,_0x14afcb),_0x41fc68[_0x14afcb+0x1]['in']=v(_0xe929ce,_0x14afcb+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x41fc68};}function ie(_0x3ca62f,_0x5cd551,_0x4eed18){const _0x4210ab=_0xf8ff5a;let _0x42ee53=null,_0x5ca0ea=[_0x4210ab(0xd3),'in','out'];return _0x3ca62f['anchors']['forEach']((_0x2ed030,_0x207810)=>{_0x5ca0ea['forEach'](_0x197a8b=>{if(!p(_0x3ca62f,_0x207810,_0x197a8b))return;let _0x38a3ec=ee(_0x2ed030,_0x197a8b);if(!_0x38a3ec)return;let _0x48476c=c(_0x5cd551,_0x38a3ec);_0x48476c>_0x4eed18||_0x42ee53&&_0x48476c>=_0x42ee53['distance']||(_0x42ee53={'handle':{'kind':_0x197a8b,'anchorId':_0x2ed030['id']},'point':i(_0x38a3ec),'distance':_0x48476c});});}),_0x42ee53;}function S(_0x5a6298,_0x37fd5d,_0x116522){const _0x478213=_0xf8ff5a;let _0x5c010f=null,_0x420c33=_0x5a6298[_0x478213(0xd5)]?_0x5a6298[_0x478213(0xe8)][_0x478213(0xec)]:Math[_0x478213(0xd0)](0x0,_0x5a6298['anchors']['length']-0x1);for(let _0x2e4529=0x0;_0x2e4529<_0x420c33;_0x2e4529++){let _0x1a679d=f(_0x5a6298,_0x2e4529);if(!_0x1a679d)continue;let _0x293ec8=m(_0x1a679d,0x0);for(let _0x47f376=0x1;_0x47f376<=0x20;_0x47f376++){let _0x4385b7=m(_0x1a679d,_0x47f376/0x20),_0x35655f=g(_0x37fd5d,_0x293ec8,_0x4385b7),_0x5dc708=(_0x47f376-0x1+_0x35655f[_0x478213(0xf5)])/0x20;(!_0x5c010f||_0x35655f[_0x478213(0xef)]<_0x5c010f['distance'])&&(_0x5c010f={'segmentIndex':_0x2e4529,'t':_0x5dc708,'point':_0x35655f[_0x478213(0x10c)],'distance':_0x35655f[_0x478213(0xef)]}),_0x293ec8=_0x4385b7;}}return _0x5c010f&&_0x5c010f[_0x478213(0xef)]<=_0x116522?_0x5c010f:null;}function C(_0x43bcd9,_0xf759a2,_0x18c300){const _0x4be11a=_0xf8ff5a;let _0x4f3dea=o(_0x43bcd9),_0xfadea3=d(_0x4f3dea,_0xf759a2[_0x4be11a(0xa9)]),_0x365766=f(_0x4f3dea,_0xf759a2[_0x4be11a(0xa9)]);if(!_0xfadea3||!_0x365766)return _0x4f3dea;let _0x3d5381=h(_0x365766,Math['max'](0x0,Math[_0x4be11a(0x10b)](0x1,_0xf759a2['t']))),_0x18cbd5={'id':_0x18c300(),'x':_0x3d5381[_0x4be11a(0x97)][0x3]['x'],'y':_0x3d5381[_0x4be11a(0x97)][0x3]['y'],'in':i(_0x3d5381[_0x4be11a(0x97)][0x2]),'out':i(_0x3d5381[_0x4be11a(0xda)][0x1]),'pointType':_0x4be11a(0xb4)};return _0x4f3dea['anchors'][_0xfadea3[_0x4be11a(0x9d)]]['out']=i(_0x3d5381['left'][0x1]),_0x4f3dea[_0x4be11a(0xe8)][_0xfadea3['endIndex']]['in']=i(_0x3d5381[_0x4be11a(0xda)][0x2]),_0x4f3dea[_0x4be11a(0xe8)][_0x4be11a(0x99)](_0xfadea3[_0x4be11a(0x9d)]+0x1,0x0,_0x18cbd5),_0x4f3dea;}function _0x39ca(_0x1f8741,_0x106a16){_0x1f8741=_0x1f8741-0x8e;const _0x1e552a=_0x1e55();let _0x39cade=_0x1e552a[_0x1f8741];return _0x39cade;}function w(_0x355425,_0x4eba5b){const _0x497e08=_0xf8ff5a;let _0x6f2575=o(_0x355425);return _0x6f2575[_0x497e08(0xe8)]=_0x6f2575[_0x497e08(0xe8)][_0x497e08(0xba)](_0x54d229=>_0x54d229['id']!==_0x4eba5b),_0x6f2575['closed']&&_0x6f2575[_0x497e08(0xe8)]['length']<0x3&&(_0x6f2575['closed']=!0x1),_0x6f2575;}function T(_0x3643ba,_0x41a74b,_0x17c9c6){const _0x329920=_0xf8ff5a;let _0x3dc3bf=o(_0x3643ba),_0xefce30=_0x3dc3bf[_0x329920(0xe8)][_0x329920(0x10a)](_0x52d70d=>_0x52d70d['id']===_0x41a74b),_0x35aecc=_0x3dc3bf[_0x329920(0xe8)][_0xefce30];if(!_0x35aecc)return _0x3dc3bf;if(_0x35aecc[_0x329920(0xca)]=_0x17c9c6,_0x17c9c6===_0x329920(0xf4))return delete _0x35aecc['in'],delete _0x35aecc[_0x329920(0xe0)],_0x3dc3bf;let _0x3ac1ad=y(_0x3dc3bf,_0xefce30);if(_0x35aecc['in']=_0x35aecc['in']?i(_0x35aecc['in']):_0x3ac1ad['in'],_0x35aecc[_0x329920(0xe0)]=_0x35aecc[_0x329920(0xe0)]?i(_0x35aecc[_0x329920(0xe0)]):_0x3ac1ad['out'],_0x17c9c6==='symmetric'){let _0x47e677=Math[_0x329920(0xd0)](c(_0x35aecc,_0x35aecc['in']),c(_0x35aecc,_0x35aecc[_0x329920(0xe0)]),0x32),_0xfaf59d=l({'x':_0x35aecc[_0x329920(0xe0)]['x']-_0x35aecc['x'],'y':_0x35aecc['out']['y']-_0x35aecc['y']});_0x35aecc[_0x329920(0xe0)]={'x':_0x35aecc['x']+_0xfaf59d['x']*_0x47e677,'y':_0x35aecc['y']+_0xfaf59d['y']*_0x47e677},_0x35aecc['in']={'x':_0x35aecc['x']-_0xfaf59d['x']*_0x47e677,'y':_0x35aecc['y']-_0xfaf59d['y']*_0x47e677};}else _0x17c9c6===_0x329920(0xdd)&&b(_0x35aecc,_0x329920(0xe0));return _0x3dc3bf;}function E(_0x13bde2,_0x3ac505){const _0x4a676b=_0xf8ff5a;let _0x80e37=_0x13bde2['anchors'][_0x4a676b(0x96)](_0x478c14=>_0x478c14['id']===_0x3ac505),_0x35f8dd=(_0x80e37==null?void 0x0:_0x80e37['pointType'])??_0x4a676b(0xf4);return T(_0x13bde2,_0x3ac505,_0x35f8dd===_0x4a676b(0xf4)?_0x4a676b(0xdd):_0x35f8dd===_0x4a676b(0xdd)?_0x4a676b(0x95):_0x35f8dd===_0x4a676b(0x95)?'free':_0x4a676b(0xf4));}function ae(_0xc636bb,_0x594dba,_0x191dd2){const _0x17ca01=_0xf8ff5a;let _0x336cd3=o(_0xc636bb),_0x27fd36=_0x336cd3[_0x17ca01(0xe8)][_0x17ca01(0x96)](_0x113d20=>_0x113d20['id']===_0x594dba[_0x17ca01(0xbf)]);if(!_0x27fd36)return _0x336cd3;if(_0x594dba[_0x17ca01(0xbc)]==='anchor'){let _0x5a8874={'x':_0x191dd2['x']-_0x27fd36['x'],'y':_0x191dd2['y']-_0x27fd36['y']};return _0x27fd36['x']=_0x191dd2['x'],_0x27fd36['y']=_0x191dd2['y'],_0x27fd36['in']&&={'x':_0x27fd36['in']['x']+_0x5a8874['x'],'y':_0x27fd36['in']['y']+_0x5a8874['y']},_0x27fd36[_0x17ca01(0xe0)]&&={'x':_0x27fd36[_0x17ca01(0xe0)]['x']+_0x5a8874['x'],'y':_0x27fd36[_0x17ca01(0xe0)]['y']+_0x5a8874['y']},_0x336cd3;}return _0x27fd36[_0x594dba[_0x17ca01(0xbc)]]=i(_0x191dd2),_0x27fd36[_0x17ca01(0xca)]===_0x17ca01(0xf4)&&(_0x27fd36[_0x17ca01(0xca)]=_0x17ca01(0xb4)),b(_0x27fd36,_0x594dba[_0x17ca01(0xbc)]),_0x336cd3;}const D=1e-9;function O(_0x4ce209){let _0x4614b9=Math['round'](_0x4ce209*0x2710)/0x2710;return Object['is'](_0x4614b9,-0x0)?'0':String(_0x4614b9);}function k(_0x4660dd){return O(_0x4660dd['x'])+'\x20'+O(_0x4660dd['y']);}function A(_0x142ef0,_0x27f836){return{'x':_0x142ef0['x']-_0x27f836['x'],'y':_0x142ef0['y']-_0x27f836['y']};}function j(_0xb7fc87,_0x1b76b2,_0x562f63,_0x1aeaba,_0x4f3845){let _0xc65437=0x1-_0x4f3845;return{'x':_0xc65437*_0xc65437*_0xc65437*_0xb7fc87['x']+0x3*_0xc65437*_0xc65437*_0x4f3845*_0x1b76b2['x']+0x3*_0xc65437*_0x4f3845*_0x4f3845*_0x562f63['x']+_0x4f3845*_0x4f3845*_0x4f3845*_0x1aeaba['x'],'y':_0xc65437*_0xc65437*_0xc65437*_0xb7fc87['y']+0x3*_0xc65437*_0xc65437*_0x4f3845*_0x1b76b2['y']+0x3*_0xc65437*_0x4f3845*_0x4f3845*_0x562f63['y']+_0x4f3845*_0x4f3845*_0x4f3845*_0x1aeaba['y']};}function M(_0x5e4cf6,_0x2334c0,_0x534f9e,_0x556ddc){const _0x495447=_0xf8ff5a;let _0x4358d9=-_0x5e4cf6+0x3*_0x2334c0-0x3*_0x534f9e+_0x556ddc,_0x574b9a=0x3*_0x5e4cf6-0x6*_0x2334c0+0x3*_0x534f9e,_0x5235c3=-0x3*_0x5e4cf6+0x3*_0x2334c0,_0x2750a9=[];if(Math['abs'](_0x4358d9)<D){if(Math[_0x495447(0x105)](_0x574b9a)<D)return _0x2750a9;let _0x4861bd=-_0x5235c3/(0x2*_0x574b9a);return _0x4861bd>0x0&&_0x4861bd<0x1&&_0x2750a9[_0x495447(0x100)](_0x4861bd),_0x2750a9;}let _0x5c6d65=_0x574b9a*_0x574b9a-0x3*_0x4358d9*_0x5235c3;if(_0x5c6d65<0x0)return _0x2750a9;let _0x4b6600=Math[_0x495447(0xf2)](Math['max'](0x0,_0x5c6d65)),_0x15304c=(-_0x574b9a+_0x4b6600)/(0x3*_0x4358d9),_0x1393fb=(-_0x574b9a-_0x4b6600)/(0x3*_0x4358d9);return _0x15304c>0x0&&_0x15304c<0x1&&_0x2750a9[_0x495447(0x100)](_0x15304c),_0x1393fb>0x0&&_0x1393fb<0x1&&Math['abs'](_0x1393fb-_0x15304c)>D&&_0x2750a9[_0x495447(0x100)](_0x1393fb),_0x2750a9;}function N(_0x36d12e,_0x21cbbf,_0x36822e,_0x304633,_0x4d9efa){const _0x1a0a62=_0xf8ff5a;_0x36d12e[_0x1a0a62(0x100)](_0x21cbbf,_0x4d9efa),new Set([...M(_0x21cbbf['x'],_0x36822e['x'],_0x304633['x'],_0x4d9efa['x']),...M(_0x21cbbf['y'],_0x36822e['y'],_0x304633['y'],_0x4d9efa['y'])])[_0x1a0a62(0xbb)](_0x203352=>{_0x36d12e['push'](j(_0x21cbbf,_0x36822e,_0x304633,_0x4d9efa,_0x203352));});}function P(_0x1be9b2){const _0x4c69f7=_0xf8ff5a;let _0xdb941b=_0x1be9b2['anchors'];if(_0xdb941b[_0x4c69f7(0xec)]<=0x1)return _0xdb941b;let _0x219fbe=[];for(let _0x109e58=0x1;_0x109e58<_0xdb941b[_0x4c69f7(0xec)];_0x109e58++){let _0x35c5ed=_0xdb941b[_0x109e58-0x1],_0x19e80f=_0xdb941b[_0x109e58];N(_0x219fbe,_0x35c5ed,_0x35c5ed[_0x4c69f7(0xe0)]??_0x35c5ed,_0x19e80f['in']??_0x19e80f,_0x19e80f);}if(_0x1be9b2[_0x4c69f7(0xd5)]&&_0xdb941b[_0x4c69f7(0xec)]>0x1){let _0x40fc09=_0xdb941b[_0xdb941b['length']-0x1],_0x401522=_0xdb941b[0x0];N(_0x219fbe,_0x40fc09,_0x40fc09[_0x4c69f7(0xe0)]??_0x40fc09,_0x401522['in']??_0x401522,_0x401522);}return _0x219fbe;}function F(_0x20206f){const _0xf67912=_0xf8ff5a;let _0x209459=_0x20206f[_0xf67912(0xc4)];if(_0x209459[_0xf67912(0xec)]<=0x1)return _0x209459;let _0x2ae012=[];for(let _0x4b88da=0x0;_0x4b88da<_0x209459[_0xf67912(0xec)]-0x1;_0x4b88da++){let _0x17bccc=_0x209459[_0x4b88da],_0xd81e85=_0x209459[_0x4b88da+0x1],_0x367163=_0x209459[_0x4b88da-0x1]??_0x17bccc,_0x5ef881=_0x209459[_0x4b88da+0x2]??_0xd81e85;N(_0x2ae012,_0x17bccc,{'x':_0x17bccc['x']+(_0xd81e85['x']-_0x367163['x'])/0x6,'y':_0x17bccc['y']+(_0xd81e85['y']-_0x367163['y'])/0x6},{'x':_0xd81e85['x']-(_0x5ef881['x']-_0x17bccc['x'])/0x6,'y':_0xd81e85['y']-(_0x5ef881['y']-_0x17bccc['y'])/0x6},_0xd81e85);}return _0x2ae012;}function I(_0x4a424b){const _0x22447a=_0xf8ff5a;return _0x4a424b[_0x22447a(0xbc)]===_0x22447a(0xe1)?P(_0x4a424b):F(_0x4a424b);}function L(_0x11a47f){let _0x4b208c=Math['round'](_0x11a47f*0x2710)/0x2710;return Object['is'](_0x4b208c,-0x0)?0x0:_0x4b208c;}function R(_0x2d3e73){const _0xc9e259=_0xf8ff5a;let _0x19a5b0=I(_0x2d3e73);if(_0x19a5b0[_0xc9e259(0xec)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x357d65=Math['min'](..._0x19a5b0[_0xc9e259(0x102)](_0x13c474=>_0x13c474['x'])),_0x27dcaf=Math['min'](..._0x19a5b0[_0xc9e259(0x102)](_0x364cfc=>_0x364cfc['y'])),_0x18c22e=Math[_0xc9e259(0xd0)](..._0x19a5b0[_0xc9e259(0x102)](_0x5b4757=>_0x5b4757['x'])),_0x50312c=Math[_0xc9e259(0xd0)](..._0x19a5b0[_0xc9e259(0x102)](_0x2473a9=>_0x2473a9['y']));return{'left':L(_0x357d65),'top':L(_0x27dcaf),'width':L(Math['max'](0x1,_0x18c22e-_0x357d65)),'height':L(Math['max'](0x1,_0x50312c-_0x27dcaf))};}function z(_0x10fc91,_0x3f4775){const _0x4d9ef2=_0xf8ff5a;let _0x90acf0=_0x10fc91['anchors'];if(_0x90acf0[_0x4d9ef2(0xec)]===0x0)return'';let _0x1e8233=['M\x20'+k(A(_0x90acf0[0x0],_0x3f4775))];for(let _0x4e2f32=0x1;_0x4e2f32<_0x90acf0[_0x4d9ef2(0xec)];_0x4e2f32++){let _0x5c4c36=_0x90acf0[_0x4e2f32-0x1],_0x535995=_0x90acf0[_0x4e2f32],_0x421a60=_0x5c4c36[_0x4d9ef2(0xe0)]??_0x5c4c36,_0x5cb654=_0x535995['in']??_0x535995;_0x1e8233['push']('C\x20'+k(A(_0x421a60,_0x3f4775))+'\x20'+k(A(_0x5cb654,_0x3f4775))+'\x20'+k(A(_0x535995,_0x3f4775)));}if(_0x10fc91[_0x4d9ef2(0xd5)]&&_0x90acf0['length']>0x1){let _0x30c3a5=_0x90acf0[_0x90acf0[_0x4d9ef2(0xec)]-0x1],_0x364c5a=_0x90acf0[0x0],_0x26b4cd=_0x30c3a5[_0x4d9ef2(0xe0)]??_0x30c3a5,_0xfee7e=_0x364c5a['in']??_0x364c5a;_0x1e8233[_0x4d9ef2(0x100)]('C\x20'+k(A(_0x26b4cd,_0x3f4775))+'\x20'+k(A(_0xfee7e,_0x3f4775))+'\x20'+k(A(_0x364c5a,_0x3f4775))),_0x1e8233[_0x4d9ef2(0x100)]('Z');}return _0x1e8233[_0x4d9ef2(0xad)]('\x20');}function B(_0x319f64,_0xa333ec){const _0x5115a3=_0xf8ff5a;let _0x5a5c20=_0x319f64['points'][_0x5115a3(0x102)](_0x2a31d9=>A(_0x2a31d9,_0xa333ec));if(_0x5a5c20[_0x5115a3(0xec)]===0x0)return'';if(_0x5a5c20[_0x5115a3(0xec)]===0x1)return'M\x20'+k(_0x5a5c20[0x0]);let _0x29ee34=['M\x20'+k(_0x5a5c20[0x0])];for(let _0x44ba90=0x0;_0x44ba90<_0x5a5c20[_0x5115a3(0xec)]-0x1;_0x44ba90++){let _0x30cb46=_0x5a5c20[_0x44ba90],_0x197ac9=_0x5a5c20[_0x44ba90+0x1],_0x23154b=_0x5a5c20[_0x44ba90-0x1]??_0x30cb46,_0x54650f=_0x5a5c20[_0x44ba90+0x2]??_0x197ac9,_0x119aae={'x':_0x30cb46['x']+(_0x197ac9['x']-_0x23154b['x'])/0x6,'y':_0x30cb46['y']+(_0x197ac9['y']-_0x23154b['y'])/0x6},_0x227aeb={'x':_0x197ac9['x']-(_0x54650f['x']-_0x30cb46['x'])/0x6,'y':_0x197ac9['y']-(_0x54650f['y']-_0x30cb46['y'])/0x6};_0x29ee34['push']('C\x20'+k(_0x119aae)+'\x20'+k(_0x227aeb)+'\x20'+k(_0x197ac9));}return _0x29ee34[_0x5115a3(0xad)]('\x20');}function V(_0x2d37e5,_0x7b2d70){const _0x35dbdd=_0xf8ff5a;return _0x2d37e5['kind']===_0x35dbdd(0xe1)?z(_0x2d37e5,_0x7b2d70):B(_0x2d37e5,_0x7b2d70);}function H(_0x5a3fd2,_0x53ae46){const _0xd70f2c=_0xf8ff5a;return _0x53ae46!=null&&_0x53ae46[_0xd70f2c(0xd4)]?_0x53ae46[_0xd70f2c(0xd4)]:_0x5a3fd2[_0xd70f2c(0xbc)]===_0xd70f2c(0xe1)?_0xd70f2c(0xa2):_0x5a3fd2[_0xd70f2c(0xd4)];}function U(_0x52b7c0,_0x934c8d){const _0x4d1aa3=_0xf8ff5a;return(_0x934c8d==null?void 0x0:_0x934c8d[_0x4d1aa3(0xd7)])===void 0x0?_0x52b7c0['kind']===_0x4d1aa3(0xe1)?0x2:_0x52b7c0['width']:_0x934c8d[_0x4d1aa3(0xd7)];}function W(_0x5de3cc,_0x3dfd50){const _0x21ba1d=_0xf8ff5a;return(_0x3dfd50==null?void 0x0:_0x3dfd50[_0x21ba1d(0xb3)])===void 0x0?_0x5de3cc[_0x21ba1d(0xbc)]===_0x21ba1d(0xe1)?void 0x0:_0x5de3cc['opacity']:_0x3dfd50[_0x21ba1d(0xb3)];}function oe(_0x3e0f73,_0x40aab9){const _0x494eba=_0xf8ff5a;let _0x237c41=R(_0x3e0f73),_0x186d06=V(_0x3e0f73,{'x':_0x237c41[_0x494eba(0x97)],'y':_0x237c41['top']}),_0x46de4a=_0x3e0f73[_0x494eba(0xbc)]==='pen'&&_0x3e0f73[_0x494eba(0xd5)],_0x497d33=_0x40aab9==null?void 0x0:_0x40aab9['fillColor'];return{'shapeType':e[_0x494eba(0x8f)][_0x494eba(0x104)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x237c41['width'],'h':_0x237c41[_0x494eba(0xd2)],'fill':_0x46de4a?_0x494eba(0xac):_0x494eba(0x108),'stroke':!0x0,'data':_0x186d06,'dataArray':K(_0x3e0f73,{'x':_0x237c41[_0x494eba(0x97)],'y':_0x237c41[_0x494eba(0xfa)]})}]},'fill':_0x46de4a&&_0x497d33?{'color':_0x497d33,'fillType':e[_0x494eba(0x9a)][_0x494eba(0xd6)]}:{'fillType':e[_0x494eba(0x9a)][_0x494eba(0xf3)]},'stroke':{'color':H(_0x3e0f73,_0x40aab9),'width':U(_0x3e0f73,_0x40aab9),'opacity':W(_0x3e0f73,_0x40aab9),'lineStrokeType':e[_0x494eba(0xc8)][_0x494eba(0xd9)],'capType':e[_0x494eba(0x9b)][_0x494eba(0xa3)],'lineJoinType':e[_0x494eba(0xee)][_0x494eba(0xa3)]}};}function G(_0x3afe87,_0xc51ea2){return{'x':_0x3afe87['x']-_0xc51ea2['x'],'y':_0x3afe87['y']-_0xc51ea2['y']};}function K(_0x4a2b4c,_0x303970){const _0x3b25f8=_0xf8ff5a;if(_0x4a2b4c[_0x3b25f8(0xbc)]===_0x3b25f8(0xe1)){let _0x191038=_0x4a2b4c[_0x3b25f8(0xe8)];if(_0x191038[_0x3b25f8(0xec)]===0x0)return[];let _0x3130d9=G(_0x191038[0x0],_0x303970),_0x4a74f6=[{'command':'M','points':[_0x3130d9['x'],_0x3130d9['y']]}];for(let _0x457385=0x1;_0x457385<_0x191038[_0x3b25f8(0xec)];_0x457385++){let _0x438a34=_0x191038[_0x457385-0x1],_0x5699b3=_0x191038[_0x457385],_0x5e3e58=G(_0x438a34['out']??_0x438a34,_0x303970),_0x9134c9=G(_0x5699b3['in']??_0x5699b3,_0x303970),_0x3af378=G(_0x5699b3,_0x303970);_0x4a74f6[_0x3b25f8(0x100)]({'command':'C','points':[_0x5e3e58['x'],_0x5e3e58['y'],_0x9134c9['x'],_0x9134c9['y'],_0x3af378['x'],_0x3af378['y']]});}if(_0x4a2b4c['closed']&&_0x191038['length']>0x1){let _0x11a620=_0x191038[_0x191038['length']-0x1],_0x1ecb5a=_0x191038[0x0],_0x286821=G(_0x11a620[_0x3b25f8(0xe0)]??_0x11a620,_0x303970),_0x3eaad2=G(_0x1ecb5a['in']??_0x1ecb5a,_0x303970),_0x353341=G(_0x1ecb5a,_0x303970);_0x4a74f6[_0x3b25f8(0x100)]({'command':'C','points':[_0x286821['x'],_0x286821['y'],_0x3eaad2['x'],_0x3eaad2['y'],_0x353341['x'],_0x353341['y']]}),_0x4a74f6['push']({'command':'z','points':[]});}return _0x4a74f6;}let _0x3d8272=_0x4a2b4c[_0x3b25f8(0xc4)][_0x3b25f8(0x102)](_0x39d74e=>G(_0x39d74e,_0x303970));if(_0x3d8272[_0x3b25f8(0xec)]===0x0)return[];let _0x3e2553=[{'command':'M','points':[_0x3d8272[0x0]['x'],_0x3d8272[0x0]['y']]}];for(let _0x267028=0x0;_0x267028<_0x3d8272[_0x3b25f8(0xec)]-0x1;_0x267028++){let _0x109ee1=_0x3d8272[_0x267028],_0x5ce089=_0x3d8272[_0x267028+0x1],_0xc1749b=_0x3d8272[_0x267028-0x1]??_0x109ee1,_0x580020=_0x3d8272[_0x267028+0x2]??_0x5ce089,_0x4f61a9={'x':_0x109ee1['x']+(_0x5ce089['x']-_0xc1749b['x'])/0x6,'y':_0x109ee1['y']+(_0x5ce089['y']-_0xc1749b['y'])/0x6},_0x37f967={'x':_0x5ce089['x']-(_0x580020['x']-_0x109ee1['x'])/0x6,'y':_0x5ce089['y']-(_0x580020['y']-_0x109ee1['y'])/0x6};_0x3e2553['push']({'command':'C','points':[_0x4f61a9['x'],_0x4f61a9['y'],_0x37f967['x'],_0x37f967['y'],_0x5ce089['x'],_0x5ce089['y']]});}return _0x3e2553;}function q(_0x3384b6){const _0x4a6bbc=_0xf8ff5a;let {model:_0x3cf28c,sourceModel:_0x1e3f04=_0x3cf28c,style:_0x548fa1}=_0x3384b6,_0x5848b3=_0x3384b6[_0x4a6bbc(0x94)]??_0x3cf28c[_0x4a6bbc(0xbc)],_0x1f4ab7=R(_0x3cf28c),_0x5b4f00=_0x3cf28c[_0x4a6bbc(0xbc)]===_0x4a6bbc(0xe1)&&_0x5848b3!==_0x4a6bbc(0xe1)?_0x3cf28c:void 0x0;return{'transform':{..._0x1f4ab7,'rotation':0x0},'shapeData':oe(_0x3cf28c,_0x548fa1),'ink':{'version':0x1,'tool':_0x5848b3,'sourceModel':_0x1e3f04,..._0x5b4f00?{'editModel':_0x5b4f00}:{},'normalizedBounds':_0x1f4ab7}};}var se=_0xf8ff5a(0xdf),ce='1.0.0-beta.0';function J(_0x3d8e01){'@babel/helpers - typeof';const _0x462eca=_0xf8ff5a;return J=typeof Symbol==_0x462eca(0xb7)&&typeof Symbol[_0x462eca(0xde)]==_0x462eca(0x8e)?function(_0x553cba){return typeof _0x553cba;}:function(_0x545a47){const _0x56a259=_0x462eca;return _0x545a47&&typeof Symbol==_0x56a259(0xb7)&&_0x545a47[_0x56a259(0xb2)]===Symbol&&_0x545a47!==Symbol[_0x56a259(0xd1)]?'symbol':typeof _0x545a47;},J(_0x3d8e01);}function le(_0xd30962,_0x1ba9fd){const _0x5ee51c=_0xf8ff5a;if(J(_0xd30962)!='object'||!_0xd30962)return _0xd30962;var _0x5e944c=_0xd30962[Symbol[_0x5ee51c(0x109)]];if(_0x5e944c!==void 0x0){var _0x3cbb58=_0x5e944c[_0x5ee51c(0xe2)](_0xd30962,_0x1ba9fd||_0x5ee51c(0x106));if(J(_0x3cbb58)!=_0x5ee51c(0xc1))return _0x3cbb58;throw TypeError(_0x5ee51c(0x10d));}return(_0x1ba9fd===_0x5ee51c(0xce)?String:Number)(_0xd30962);}function ue(_0x2dadc2){var _0x349309=le(_0x2dadc2,'string');return J(_0x349309)=='symbol'?_0x349309:_0x349309+'';}function Y(_0x3c2c64,_0x245ac9,_0x5b5a26){const _0x105b11=_0xf8ff5a;return(_0x245ac9=ue(_0x245ac9))in _0x3c2c64?Object[_0x105b11(0xff)](_0x3c2c64,_0x245ac9,{'value':_0x5b5a26,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3c2c64[_0x245ac9]=_0x5b5a26,_0x3c2c64;}const X=(0x0,n[_0xf8ff5a(0xf0)])(_0xf8ff5a(0xfd));var de=class{constructor(){Y(this,'_adapters',[]);}[_0xf8ff5a(0xe5)](_0x596682){const _0x2c0390=_0xf8ff5a;return this[_0x2c0390(0xae)][_0x2c0390(0x100)](_0x596682),(0x0,n[_0x2c0390(0xd8)])(()=>{const _0x1c2d28=_0x2c0390;let _0x58f9c2=this['_adapters'][_0x1c2d28(0xc5)](_0x596682);_0x58f9c2>=0x0&&this[_0x1c2d28(0xae)][_0x1c2d28(0x99)](_0x58f9c2,0x1);});}[_0xf8ff5a(0xeb)](_0x2fec0b){const _0x308f06=_0xf8ff5a;for(let _0x3eef79 of this[_0x308f06(0xae)])if(_0x3eef79[_0x308f06(0xeb)](_0x2fec0b))return!0x0;return!0x1;}async[_0xf8ff5a(0xc2)](_0x376b23){const _0xb1c3c3=_0xf8ff5a;for(let _0x42c8ca of this[_0xb1c3c3(0xae)])if(_0x42c8ca[_0xb1c3c3(0xc2)]&&await _0x42c8ca['createCustomShape'](_0x376b23))return!0x0;return!0x1;}};function _0x1e55(){const _0x52471a=['_commandService','max','prototype','height','anchor','color','closed','SolidFill','width','toDisposable','SolidLine','right','merge','ink.operation.start','smooth','iterator','@univerjs-pro/ink','out','pen','call','insertInkPenAnchorAt','UNIVER_UNKNOWN','registerAdapter','740080XHShBT','3330735GJPOLo','anchors','version','_injector','beginInkMode','length','hypot','ShapeLineJoinEnum','distance','createIdentifier','36qJZpVY','sqrt','NoFill','corner','ratio','moveInkPenAnchorPoint','onStarting','363224AFsvXR','_configService','top','toStringTag','cycleInkPenAnchorPointType','ink.host-adapter.service','add','defineProperty','push','packageName','map','7WAhKFE','Rect','abs','default','_config','none','toPrimitive','findIndex','min','point','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','ShapeTypeEnum','IConfigService','createId','pluginName','IInkHostAdapterService','tool','symmetric','find','left','setConfig','splice','ShapeFillEnum','ShapeLineCapEnum','start','startIndex','disposeWithMe','UniverInkPlugin','UniverInstanceType','get','#f54a45','Round','Module','findClosestInkPenHandle','Inject','10504120lhuFrh','setInkPenAnchorPointType','segmentIndex','ink-centerline-','5304564AFpVJJ','norm','join','_adapters','ink.config','tolerance','__ink-preview-anchor__','constructor','opacity','free','Plugin','registerCommand','function','970ZXOLuB','227457ulsHMv','filter','forEach','kind','CommandType','isInkPenHandleVisible','anchorId','DependentOn','object','createCustomShape','UniverLicensePlugin','points','indexOf','end','ICommandService','ShapeLineTypeEnum','1418GkqSTD','pointType','type','slice','convertBrushModelToPenModel','string'];_0x1e55=function(){return _0x52471a;};return _0x1e55();}const fe={'id':_0xf8ff5a(0xdc),'type':n[_0xf8ff5a(0xbd)]['OPERATION'],'handler':(_0x14c530,_0x458f56)=>_0x458f56?_0x14c530[_0xf8ff5a(0xa1)](X)[_0xf8ff5a(0xeb)](_0x458f56):!0x1},Z={};function Q(_0x43fd2d,_0x383a08){return function(_0x51011b,_0x50d419){_0x383a08(_0x51011b,_0x50d419,_0x43fd2d);};}function pe(_0x48ddb7,_0x45367d,_0x34c3c9,_0x2d75ff){const _0x2a0896=_0xf8ff5a;var _0x3ace53=arguments[_0x2a0896(0xec)],_0xfaec24=_0x3ace53<0x3?_0x45367d:_0x2d75ff===null?_0x2d75ff=Object['getOwnPropertyDescriptor'](_0x45367d,_0x34c3c9):_0x2d75ff,_0x65aa5e;if(typeof Reflect==_0x2a0896(0xc1)&&typeof Reflect['decorate']==_0x2a0896(0xb7))_0xfaec24=Reflect['decorate'](_0x48ddb7,_0x45367d,_0x34c3c9,_0x2d75ff);else{for(var _0x2503db=_0x48ddb7[_0x2a0896(0xec)]-0x1;_0x2503db>=0x0;_0x2503db--)(_0x65aa5e=_0x48ddb7[_0x2503db])&&(_0xfaec24=(_0x3ace53<0x3?_0x65aa5e(_0xfaec24):_0x3ace53>0x3?_0x65aa5e(_0x45367d,_0x34c3c9,_0xfaec24):_0x65aa5e(_0x45367d,_0x34c3c9))||_0xfaec24);}return _0x3ace53>0x3&&_0xfaec24&&Object[_0x2a0896(0xff)](_0x45367d,_0x34c3c9,_0xfaec24),_0xfaec24;}let $=class extends n[_0xf8ff5a(0xb5)]{constructor(_0x4fd2bd=Z,_0x3eb585,_0x26de3b,_0x5cd047){const _0xf127e2=_0xf8ff5a;super(),this[_0xf127e2(0x107)]=_0x4fd2bd,this[_0xf127e2(0xea)]=_0x3eb585,this['_commandService']=_0x26de3b,this[_0xf127e2(0xf9)]=_0x5cd047;let {..._0x16deb5}=(0x0,n[_0xf127e2(0xdb)])({},Z,this[_0xf127e2(0x107)]);this[_0xf127e2(0xf9)][_0xf127e2(0x98)](_0xf127e2(0xaf),_0x16deb5);}[_0xf8ff5a(0xf7)](){const _0x10e37b=_0xf8ff5a;[[X,{'useClass':de}]][_0x10e37b(0xbb)](_0x2ee1aa=>this['_injector'][_0x10e37b(0xfe)](_0x2ee1aa)),this[_0x10e37b(0x9e)](this[_0x10e37b(0xcf)][_0x10e37b(0xb6)](fe));}};Y($,_0xf8ff5a(0x92),'UNIVER_INK_PLUGIN'),Y($,_0xf8ff5a(0x101),se),Y($,_0xf8ff5a(0xe9),ce),Y($,_0xf8ff5a(0xcb),n[_0xf8ff5a(0xa0)][_0xf8ff5a(0xe4)]),$=pe([(0x0,n[_0xf8ff5a(0xc0)])(t[_0xf8ff5a(0xc3)]),Q(0x1,(0x0,n[_0xf8ff5a(0xa6)])(n['Injector'])),Q(0x2,n[_0xf8ff5a(0xc7)]),Q(0x3,n[_0xf8ff5a(0x90)])],$),exports[_0xf8ff5a(0x93)]=X,Object[_0xf8ff5a(0xff)](exports,_0xf8ff5a(0x9f),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildInkCustomShapePayload']=q,exports[_0xf8ff5a(0xcd)]=re,exports[_0xf8ff5a(0xfc)]=E,exports['deleteInkPenAnchor']=w,exports[_0xf8ff5a(0xa5)]=ie,exports['findClosestInkPenSegment']=S,exports['getInkModelBounds']=R,exports['getInkPenPreviewModel']=x,exports[_0xf8ff5a(0xe3)]=C,exports[_0xf8ff5a(0xbe)]=p,exports[_0xf8ff5a(0xf6)]=ae,exports[_0xf8ff5a(0xa8)]=T;
1
+ const _0x2bdb7a=_0x3670;(function(_0x3801cb,_0x325e8c){const _0x20121b=_0x3670,_0x449f23=_0x3801cb();while(!![]){try{const _0x40b8a3=-parseInt(_0x20121b(0x116))/0x1*(-parseInt(_0x20121b(0xe0))/0x2)+-parseInt(_0x20121b(0x10a))/0x3*(parseInt(_0x20121b(0x151))/0x4)+parseInt(_0x20121b(0xd9))/0x5+-parseInt(_0x20121b(0x112))/0x6+-parseInt(_0x20121b(0xe7))/0x7*(-parseInt(_0x20121b(0x105))/0x8)+-parseInt(_0x20121b(0x11a))/0x9*(parseInt(_0x20121b(0xe6))/0xa)+parseInt(_0x20121b(0xf9))/0xb;if(_0x40b8a3===_0x325e8c)break;else _0x449f23['push'](_0x449f23['shift']());}catch(_0x306c9a){_0x449f23['push'](_0x449f23['shift']());}}}(_0xe1a5,0x27b11),Object[_0x2bdb7a(0x107)](exports,Symbol['toStringTag'],{'value':_0x2bdb7a(0x10c)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x90e20b){return{'x':_0x90e20b['x'],'y':_0x90e20b['y']};}function a(_0xb83ed1){const _0x22ffa8=_0x2bdb7a;return{..._0xb83ed1,'in':_0xb83ed1['in']?i(_0xb83ed1['in']):void 0x0,'out':_0xb83ed1['out']?i(_0xb83ed1[_0x22ffa8(0xfb)]):void 0x0};}function o(_0x2b2811){const _0x5752f4=_0x2bdb7a;return{'kind':'pen','closed':_0x2b2811[_0x5752f4(0x12e)],'anchors':_0x2b2811[_0x5752f4(0x152)][_0x5752f4(0x108)](a)};}function s(_0x4b5aad,_0x19984f,_0x59c34e){return{'x':_0x4b5aad['x']+(_0x19984f['x']-_0x4b5aad['x'])*_0x59c34e,'y':_0x4b5aad['y']+(_0x19984f['y']-_0x4b5aad['y'])*_0x59c34e};}function c(_0x383a2b,_0x2ecd27){const _0x1cfe9f=_0x2bdb7a;return Math[_0x1cfe9f(0x145)](_0x383a2b['x']-_0x2ecd27['x'],_0x383a2b['y']-_0x2ecd27['y']);}function l(_0x40698e){const _0x415c7f=_0x2bdb7a;let _0x431644=Math[_0x415c7f(0x145)](_0x40698e['x'],_0x40698e['y']);return _0x431644<r?{'x':0x1,'y':0x0}:{'x':_0x40698e['x']/_0x431644,'y':_0x40698e['y']/_0x431644};}function u(_0x1ee75c,_0x148bbc,_0x484588=c(_0x1ee75c,_0x148bbc)){let _0x9275ec=l({'x':_0x1ee75c['x']-_0x148bbc['x'],'y':_0x1ee75c['y']-_0x148bbc['y']});return{'x':_0x1ee75c['x']+_0x9275ec['x']*_0x484588,'y':_0x1ee75c['y']+_0x9275ec['y']*_0x484588};}function d(_0x3d9ce2,_0x2fe4d1){const _0x5c3e8b=_0x2bdb7a;let {anchors:_0x414947}=_0x3d9ce2;return _0x414947['length']<0x2||_0x2fe4d1<0x0?null:_0x2fe4d1<_0x414947['length']-0x1?{'startIndex':_0x2fe4d1,'endIndex':_0x2fe4d1+0x1,'start':_0x414947[_0x2fe4d1],'end':_0x414947[_0x2fe4d1+0x1]}:_0x3d9ce2['closed']&&_0x2fe4d1===_0x414947[_0x5c3e8b(0x147)]-0x1?{'startIndex':_0x414947['length']-0x1,'endIndex':0x0,'start':_0x414947[_0x414947[_0x5c3e8b(0x147)]-0x1],'end':_0x414947[0x0]}:null;}function f(_0x3728e1,_0x3598dc){const _0x34c418=_0x2bdb7a;let _0x28faf9=d(_0x3728e1,_0x3598dc);return _0x28faf9?[_0x28faf9[_0x34c418(0xf8)],_0x28faf9[_0x34c418(0xf8)][_0x34c418(0xfb)]??_0x28faf9[_0x34c418(0xf8)],_0x28faf9[_0x34c418(0xda)]['in']??_0x28faf9[_0x34c418(0xda)],_0x28faf9[_0x34c418(0xda)]]:null;}function ee(_0x5a6d43,_0x140f99){const _0x2c1e84=_0x2bdb7a;return _0x140f99===_0x2c1e84(0x14d)?_0x5a6d43:_0x5a6d43[_0x140f99]??null;}function p(_0x5c73db,_0x36c1aa,_0x8bff39){const _0x217608=_0x2bdb7a;return _0x8bff39===_0x217608(0x14d)||_0x5c73db[_0x217608(0x12e)]?!0x0:_0x8bff39==='in'?_0x36c1aa>0x0:_0x36c1aa<_0x5c73db[_0x217608(0x152)]['length']-0x1;}function m(_0x4f91fd,_0x46dcfc){let [_0x51d480,_0x37de0e,_0x5ba377,_0x110a8d]=_0x4f91fd,_0x3db882=s(_0x51d480,_0x37de0e,_0x46dcfc),_0x5237d7=s(_0x37de0e,_0x5ba377,_0x46dcfc),_0xbb70fc=s(_0x5ba377,_0x110a8d,_0x46dcfc);return s(s(_0x3db882,_0x5237d7,_0x46dcfc),s(_0x5237d7,_0xbb70fc,_0x46dcfc),_0x46dcfc);}function h(_0x26ac16,_0x409bfd){let [_0x15c9e6,_0x5d4830,_0xf3e3eb,_0x522051]=_0x26ac16,_0x22be9f=s(_0x15c9e6,_0x5d4830,_0x409bfd),_0x5be4b6=s(_0x5d4830,_0xf3e3eb,_0x409bfd),_0x47a021=s(_0xf3e3eb,_0x522051,_0x409bfd),_0x348a77=s(_0x22be9f,_0x5be4b6,_0x409bfd),_0x296f7e=s(_0x5be4b6,_0x47a021,_0x409bfd),_0x3e42f8=s(_0x348a77,_0x296f7e,_0x409bfd);return{'left':[_0x15c9e6,_0x22be9f,_0x348a77,_0x3e42f8],'right':[_0x3e42f8,_0x296f7e,_0x47a021,_0x522051]};}function g(_0x48419b,_0x11c9a9,_0x29eead){const _0x28615f=_0x2bdb7a;let _0x59df93=_0x29eead['x']-_0x11c9a9['x'],_0x4434e0=_0x29eead['y']-_0x11c9a9['y'],_0x5b3bce=_0x59df93*_0x59df93+_0x4434e0*_0x4434e0,_0xbbbeca=_0x5b3bce<=r?0x0:Math['max'](0x0,Math[_0x28615f(0x155)](0x1,((_0x48419b['x']-_0x11c9a9['x'])*_0x59df93+(_0x48419b['y']-_0x11c9a9['y'])*_0x4434e0)/_0x5b3bce)),_0x1b2c5e={'x':_0x11c9a9['x']+_0x59df93*_0xbbbeca,'y':_0x11c9a9['y']+_0x4434e0*_0xbbbeca};return{'point':_0x1b2c5e,'ratio':_0xbbbeca,'distance':c(_0x48419b,_0x1b2c5e)};}function te(_0x55d734,_0x435c4b,_0x3720d9){const _0x3e6dc9=_0x2bdb7a;return g(_0x55d734,_0x435c4b,_0x3720d9)[_0x3e6dc9(0x114)]**0x2;}function _(_0x1a0340,_0x451644){const _0x361117=_0x2bdb7a;if(_0x1a0340[_0x361117(0x147)]<=0x2)return _0x1a0340['map'](i);let _0x3a1857=0x0,_0x4c407e=0x0,_0x4c77b1=_0x1a0340[0x0],_0xa152b7=_0x1a0340[_0x1a0340['length']-0x1],_0x2dc053=_0x451644*_0x451644;for(let _0x59f5a1=0x1;_0x59f5a1<_0x1a0340[_0x361117(0x147)]-0x1;_0x59f5a1++){let _0x465195=te(_0x1a0340[_0x59f5a1],_0x4c77b1,_0xa152b7);_0x465195>_0x3a1857&&(_0x3a1857=_0x465195,_0x4c407e=_0x59f5a1);}if(_0x3a1857<=_0x2dc053)return[i(_0x4c77b1),i(_0xa152b7)];let _0x194afb=_(_0x1a0340[_0x361117(0xfa)](0x0,_0x4c407e+0x1),_0x451644),_0x55ab3c=_(_0x1a0340[_0x361117(0xfa)](_0x4c407e),_0x451644);return[..._0x194afb[_0x361117(0xfa)](0x0,-0x1),..._0x55ab3c];}function ne(_0x49623e,_0x5b6a15){let _0x171a07=_0x49623e[_0x5b6a15],_0x170052=_0x49623e[_0x5b6a15+0x1],_0x58158c=_0x49623e[_0x5b6a15-0x1]??_0x171a07;return{'x':_0x171a07['x']+(_0x170052['x']-_0x58158c['x'])/0x6,'y':_0x171a07['y']+(_0x170052['y']-_0x58158c['y'])/0x6};}function v(_0x2cec20,_0x1e149f){let _0x917ef3=_0x2cec20[_0x1e149f],_0x2b1deb=_0x2cec20[_0x1e149f-0x1],_0x27d43d=_0x2cec20[_0x1e149f+0x1]??_0x917ef3;return{'x':_0x917ef3['x']-(_0x27d43d['x']-_0x2b1deb['x'])/0x6,'y':_0x917ef3['y']-(_0x27d43d['y']-_0x2b1deb['y'])/0x6};}function y(_0x48f13e,_0x5c8e9a){const _0x674098=_0x2bdb7a;let _0x14b6e0=_0x48f13e['anchors'][_0x5c8e9a],_0x5c369b=_0x48f13e[_0x674098(0x152)][_0x5c8e9a-0x1]??(_0x48f13e[_0x674098(0x12e)]?_0x48f13e[_0x674098(0x152)][_0x48f13e[_0x674098(0x152)][_0x674098(0x147)]-0x1]:null),_0x30ba56=_0x48f13e[_0x674098(0x152)][_0x5c8e9a+0x1]??(_0x48f13e[_0x674098(0x12e)]?_0x48f13e['anchors'][0x0]:null),_0x17ca21=_0x5c369b&&_0x30ba56?l({'x':_0x30ba56['x']-_0x5c369b['x'],'y':_0x30ba56['y']-_0x5c369b['y']}):_0x30ba56?l({'x':_0x30ba56['x']-_0x14b6e0['x'],'y':_0x30ba56['y']-_0x14b6e0['y']}):_0x5c369b?l({'x':_0x14b6e0['x']-_0x5c369b['x'],'y':_0x14b6e0['y']-_0x5c369b['y']}):{'x':0x1,'y':0x0},_0x1d1186=_0x5c369b&&_0x30ba56?Math['max'](0x32,c(_0x5c369b,_0x30ba56)/0x4):0x32;return{'in':{'x':_0x14b6e0['x']-_0x17ca21['x']*_0x1d1186,'y':_0x14b6e0['y']-_0x17ca21['y']*_0x1d1186},'out':{'x':_0x14b6e0['x']+_0x17ca21['x']*_0x1d1186,'y':_0x14b6e0['y']+_0x17ca21['y']*_0x1d1186}};}function b(_0x27db30,_0x455fe0){const _0x3c2605=_0x2bdb7a;let _0x29ca18=_0x27db30[_0x455fe0],_0x33c62a=_0x455fe0==='in'?_0x3c2605(0xfb):'in',_0x4cf38e=_0x27db30[_0x33c62a];if(_0x29ca18){if(_0x27db30[_0x3c2605(0x121)]==='symmetric'){_0x27db30[_0x33c62a]=u(_0x27db30,_0x29ca18);return;}_0x27db30[_0x3c2605(0x121)]==='smooth'&&(_0x27db30[_0x33c62a]=u(_0x27db30,_0x29ca18,_0x4cf38e?c(_0x27db30,_0x4cf38e):c(_0x27db30,_0x29ca18)));}}function x(_0x2bd7db,_0x109d48){const _0x3441e9=_0x2bdb7a;let _0xb988a7=o(_0x2bd7db);return!_0x109d48||_0xb988a7[_0x3441e9(0x12e)]||_0xb988a7['anchors'][_0x3441e9(0x147)]===0x0||_0xb988a7[_0x3441e9(0x152)][_0x3441e9(0x104)]({'id':'__ink-preview-anchor__','x':_0x109d48['x'],'y':_0x109d48['y'],'pointType':_0x3441e9(0x103)}),_0xb988a7;}function re(_0x462553,_0x770dd1={}){const _0x5e637c=_0x2bdb7a;let _0x333cda=Math[_0x5e637c(0xf5)](0x0,_0x770dd1[_0x5e637c(0x123)]??Math[_0x5e637c(0xf5)](0x4,_0x462553['width']*0.35)),_0xc15bc5=_0x770dd1[_0x5e637c(0x142)]??(_0x2c37ca=>_0x5e637c(0xf3)+_0x2c37ca),_0xc232c9=_(_0x462553[_0x5e637c(0x106)],_0x333cda),_0x598ec0=_0xc232c9[_0x5e637c(0x108)]((_0x245d4f,_0x1188f3)=>({'id':_0xc15bc5(_0x1188f3),'x':_0x245d4f['x'],'y':_0x245d4f['y'],'pointType':_0x5e637c(0x10f)}));for(let _0x382f35=0x0;_0x382f35<_0x598ec0[_0x5e637c(0x147)]-0x1;_0x382f35++)_0x598ec0[_0x382f35]['out']=ne(_0xc232c9,_0x382f35),_0x598ec0[_0x382f35+0x1]['in']=v(_0xc232c9,_0x382f35+0x1);return{'kind':_0x5e637c(0x135),'closed':!0x1,'anchors':_0x598ec0};}function ie(_0x9b414e,_0x5c5c28,_0x4a790b){const _0x585a78=_0x2bdb7a;let _0x3ef392=null,_0x2777ed=[_0x585a78(0x14d),'in',_0x585a78(0xfb)];return _0x9b414e[_0x585a78(0x152)][_0x585a78(0x125)]((_0x574ef,_0x39d883)=>{const _0x1ad66a=_0x585a78;_0x2777ed[_0x1ad66a(0x125)](_0x48cbba=>{const _0x331b0a=_0x1ad66a;if(!p(_0x9b414e,_0x39d883,_0x48cbba))return;let _0x104a8b=ee(_0x574ef,_0x48cbba);if(!_0x104a8b)return;let _0x5b2e82=c(_0x5c5c28,_0x104a8b);_0x5b2e82>_0x4a790b||_0x3ef392&&_0x5b2e82>=_0x3ef392[_0x331b0a(0x114)]||(_0x3ef392={'handle':{'kind':_0x48cbba,'anchorId':_0x574ef['id']},'point':i(_0x104a8b),'distance':_0x5b2e82});});}),_0x3ef392;}function S(_0x2bb5a2,_0x104127,_0x202551){const _0x462ddc=_0x2bdb7a;let _0x1aa736=null,_0x5bcf32=_0x2bb5a2[_0x462ddc(0x12e)]?_0x2bb5a2[_0x462ddc(0x152)][_0x462ddc(0x147)]:Math[_0x462ddc(0xf5)](0x0,_0x2bb5a2['anchors'][_0x462ddc(0x147)]-0x1);for(let _0x5705b7=0x0;_0x5705b7<_0x5bcf32;_0x5705b7++){let _0x10e305=f(_0x2bb5a2,_0x5705b7);if(!_0x10e305)continue;let _0x3a74e7=m(_0x10e305,0x0);for(let _0x55fad9=0x1;_0x55fad9<=0x20;_0x55fad9++){let _0x5c3258=m(_0x10e305,_0x55fad9/0x20),_0x2d93de=g(_0x104127,_0x3a74e7,_0x5c3258),_0x57d936=(_0x55fad9-0x1+_0x2d93de[_0x462ddc(0xfd)])/0x20;(!_0x1aa736||_0x2d93de['distance']<_0x1aa736['distance'])&&(_0x1aa736={'segmentIndex':_0x5705b7,'t':_0x57d936,'point':_0x2d93de[_0x462ddc(0x13c)],'distance':_0x2d93de[_0x462ddc(0x114)]}),_0x3a74e7=_0x5c3258;}}return _0x1aa736&&_0x1aa736[_0x462ddc(0x114)]<=_0x202551?_0x1aa736:null;}function _0xe1a5(){const _0x10e8d6=['282980DdBFoW','21AanrMJ','getInkModelBounds','@univerjs-pro/ink','decorate','smooth','_adapters','kind','UniverLicensePlugin','onStarting','abs','fillColor','call','ink-centerline-','prototype','max','default','cycleInkPenAnchorPointType','start','611556QpeSou','slice','out','add','ratio','none','isInkPenHandleVisible','constructor','Rect','splice','corner','push','510216aIXtDj','points','defineProperty','map','packageName','3EJrUlS','pluginName','Module','findClosestInkPenSegment','get','free','type','registerCommand','452328GpcFHb','object','distance','Plugin','122207GKNLhs','sqrt','UniverInstanceType','_commandService','9ptFrvo','insertInkPenAnchorAt','segmentIndex','SolidFill','height','moveInkPenAnchorPoint','round','pointType','CommandType','tolerance','disposeWithMe','forEach','Injector','join','Round','setInkPenAnchorPointType','ink.host-adapter.service','ICommandService','DependentOn','toPrimitive','closed','width','find','ShapeFillEnum','version','ink.operation.start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pen','filter','getInkPenPreviewModel','setConfig','string','_configService','top','point','OPERATION','right','ShapeTypeEnum','getOwnPropertyDescriptor','beginInkMode','createId','1.0.0-beta.2','ShapeLineJoinEnum','hypot','IConfigService','length','startIndex','ShapeLineTypeEnum','Inject','buildInkCustomShapePayload','findIndex','anchor','findClosestInkPenHandle','createIdentifier','UNIVER_UNKNOWN','984484brrQKG','anchors','left','merge','min','opacity','ink.config','716250BjlAKB','end','SolidLine','symmetric','_injector','norm','function','2bhEWvI','symbol','_config','UniverInkPlugin','tool','toDisposable'];_0xe1a5=function(){return _0x10e8d6;};return _0xe1a5();}function C(_0x172eb9,_0x184032,_0xb9e2f4){const _0x33a8df=_0x2bdb7a;let _0xde85a1=o(_0x172eb9),_0x1ec982=d(_0xde85a1,_0x184032[_0x33a8df(0x11c)]),_0x3527f6=f(_0xde85a1,_0x184032[_0x33a8df(0x11c)]);if(!_0x1ec982||!_0x3527f6)return _0xde85a1;let _0x1c266d=h(_0x3527f6,Math[_0x33a8df(0xf5)](0x0,Math['min'](0x1,_0x184032['t']))),_0x1243a9={'id':_0xb9e2f4(),'x':_0x1c266d[_0x33a8df(0x153)][0x3]['x'],'y':_0x1c266d[_0x33a8df(0x153)][0x3]['y'],'in':i(_0x1c266d[_0x33a8df(0x153)][0x2]),'out':i(_0x1c266d[_0x33a8df(0x13e)][0x1]),'pointType':'free'};return _0xde85a1[_0x33a8df(0x152)][_0x1ec982['startIndex']][_0x33a8df(0xfb)]=i(_0x1c266d[_0x33a8df(0x153)][0x1]),_0xde85a1[_0x33a8df(0x152)][_0x1ec982['endIndex']]['in']=i(_0x1c266d[_0x33a8df(0x13e)][0x2]),_0xde85a1[_0x33a8df(0x152)][_0x33a8df(0x102)](_0x1ec982[_0x33a8df(0x148)]+0x1,0x0,_0x1243a9),_0xde85a1;}function w(_0x51bbab,_0x5606b8){const _0x538686=_0x2bdb7a;let _0x13d7cd=o(_0x51bbab);return _0x13d7cd['anchors']=_0x13d7cd['anchors'][_0x538686(0x136)](_0x5c97fc=>_0x5c97fc['id']!==_0x5606b8),_0x13d7cd['closed']&&_0x13d7cd['anchors'][_0x538686(0x147)]<0x3&&(_0x13d7cd[_0x538686(0x12e)]=!0x1),_0x13d7cd;}function T(_0x437f04,_0x180a4f,_0x39da25){const _0x626165=_0x2bdb7a;let _0x491f29=o(_0x437f04),_0x2897fb=_0x491f29[_0x626165(0x152)][_0x626165(0x14c)](_0x1db583=>_0x1db583['id']===_0x180a4f),_0x5f3207=_0x491f29[_0x626165(0x152)][_0x2897fb];if(!_0x5f3207)return _0x491f29;if(_0x5f3207[_0x626165(0x121)]=_0x39da25,_0x39da25===_0x626165(0x103))return delete _0x5f3207['in'],delete _0x5f3207[_0x626165(0xfb)],_0x491f29;let _0x373f29=y(_0x491f29,_0x2897fb);if(_0x5f3207['in']=_0x5f3207['in']?i(_0x5f3207['in']):_0x373f29['in'],_0x5f3207[_0x626165(0xfb)]=_0x5f3207[_0x626165(0xfb)]?i(_0x5f3207[_0x626165(0xfb)]):_0x373f29[_0x626165(0xfb)],_0x39da25==='symmetric'){let _0x44200f=Math[_0x626165(0xf5)](c(_0x5f3207,_0x5f3207['in']),c(_0x5f3207,_0x5f3207[_0x626165(0xfb)]),0x32),_0x59d107=l({'x':_0x5f3207['out']['x']-_0x5f3207['x'],'y':_0x5f3207['out']['y']-_0x5f3207['y']});_0x5f3207[_0x626165(0xfb)]={'x':_0x5f3207['x']+_0x59d107['x']*_0x44200f,'y':_0x5f3207['y']+_0x59d107['y']*_0x44200f},_0x5f3207['in']={'x':_0x5f3207['x']-_0x59d107['x']*_0x44200f,'y':_0x5f3207['y']-_0x59d107['y']*_0x44200f};}else _0x39da25==='smooth'&&b(_0x5f3207,_0x626165(0xfb));return _0x491f29;}function E(_0x272229,_0x5b5ac3){const _0x2718c8=_0x2bdb7a;let _0x49403e=_0x272229[_0x2718c8(0x152)][_0x2718c8(0x130)](_0x4671d9=>_0x4671d9['id']===_0x5b5ac3),_0x4c4a7d=(_0x49403e==null?void 0x0:_0x49403e['pointType'])??_0x2718c8(0x103);return T(_0x272229,_0x5b5ac3,_0x4c4a7d===_0x2718c8(0x103)?_0x2718c8(0xeb):_0x4c4a7d==='smooth'?_0x2718c8(0xdc):_0x4c4a7d===_0x2718c8(0xdc)?_0x2718c8(0x10f):_0x2718c8(0x103));}function ae(_0x329a53,_0x38c302,_0x2306d7){const _0x45de02=_0x2bdb7a;let _0x21ceba=o(_0x329a53),_0x14ea7f=_0x21ceba['anchors'][_0x45de02(0x130)](_0x34d7d0=>_0x34d7d0['id']===_0x38c302['anchorId']);if(!_0x14ea7f)return _0x21ceba;if(_0x38c302['kind']===_0x45de02(0x14d)){let _0x51e79e={'x':_0x2306d7['x']-_0x14ea7f['x'],'y':_0x2306d7['y']-_0x14ea7f['y']};return _0x14ea7f['x']=_0x2306d7['x'],_0x14ea7f['y']=_0x2306d7['y'],_0x14ea7f['in']&&={'x':_0x14ea7f['in']['x']+_0x51e79e['x'],'y':_0x14ea7f['in']['y']+_0x51e79e['y']},_0x14ea7f[_0x45de02(0xfb)]&&={'x':_0x14ea7f[_0x45de02(0xfb)]['x']+_0x51e79e['x'],'y':_0x14ea7f[_0x45de02(0xfb)]['y']+_0x51e79e['y']},_0x21ceba;}return _0x14ea7f[_0x38c302[_0x45de02(0xed)]]=i(_0x2306d7),_0x14ea7f[_0x45de02(0x121)]===_0x45de02(0x103)&&(_0x14ea7f[_0x45de02(0x121)]=_0x45de02(0x10f)),b(_0x14ea7f,_0x38c302[_0x45de02(0xed)]),_0x21ceba;}const D=1e-9;function O(_0x40ebc9){const _0x399d6e=_0x2bdb7a;let _0x271feb=Math[_0x399d6e(0x120)](_0x40ebc9*0x2710)/0x2710;return Object['is'](_0x271feb,-0x0)?'0':String(_0x271feb);}function k(_0x48a464){return O(_0x48a464['x'])+'\x20'+O(_0x48a464['y']);}function A(_0x11c29f,_0x2d0a5b){return{'x':_0x11c29f['x']-_0x2d0a5b['x'],'y':_0x11c29f['y']-_0x2d0a5b['y']};}function j(_0x1bf488,_0x5a7d71,_0x52dbed,_0x453c23,_0x25f584){let _0x5d71f2=0x1-_0x25f584;return{'x':_0x5d71f2*_0x5d71f2*_0x5d71f2*_0x1bf488['x']+0x3*_0x5d71f2*_0x5d71f2*_0x25f584*_0x5a7d71['x']+0x3*_0x5d71f2*_0x25f584*_0x25f584*_0x52dbed['x']+_0x25f584*_0x25f584*_0x25f584*_0x453c23['x'],'y':_0x5d71f2*_0x5d71f2*_0x5d71f2*_0x1bf488['y']+0x3*_0x5d71f2*_0x5d71f2*_0x25f584*_0x5a7d71['y']+0x3*_0x5d71f2*_0x25f584*_0x25f584*_0x52dbed['y']+_0x25f584*_0x25f584*_0x25f584*_0x453c23['y']};}function M(_0x4a6beb,_0x1926a1,_0x363e36,_0x457279){const _0x12566c=_0x2bdb7a;let _0x232f53=-_0x4a6beb+0x3*_0x1926a1-0x3*_0x363e36+_0x457279,_0x50e17a=0x3*_0x4a6beb-0x6*_0x1926a1+0x3*_0x363e36,_0x464e21=-0x3*_0x4a6beb+0x3*_0x1926a1,_0x3f73c7=[];if(Math[_0x12566c(0xf0)](_0x232f53)<D){if(Math[_0x12566c(0xf0)](_0x50e17a)<D)return _0x3f73c7;let _0x31a6f6=-_0x464e21/(0x2*_0x50e17a);return _0x31a6f6>0x0&&_0x31a6f6<0x1&&_0x3f73c7['push'](_0x31a6f6),_0x3f73c7;}let _0x996f23=_0x50e17a*_0x50e17a-0x3*_0x232f53*_0x464e21;if(_0x996f23<0x0)return _0x3f73c7;let _0x508fdc=Math[_0x12566c(0x117)](Math[_0x12566c(0xf5)](0x0,_0x996f23)),_0x4643ff=(-_0x50e17a+_0x508fdc)/(0x3*_0x232f53),_0x3567c4=(-_0x50e17a-_0x508fdc)/(0x3*_0x232f53);return _0x4643ff>0x0&&_0x4643ff<0x1&&_0x3f73c7['push'](_0x4643ff),_0x3567c4>0x0&&_0x3567c4<0x1&&Math[_0x12566c(0xf0)](_0x3567c4-_0x4643ff)>D&&_0x3f73c7[_0x12566c(0x104)](_0x3567c4),_0x3f73c7;}function N(_0x53d2aa,_0x3d63b9,_0x24bee7,_0x49bcb8,_0x12b22c){const _0x3510b4=_0x2bdb7a;_0x53d2aa[_0x3510b4(0x104)](_0x3d63b9,_0x12b22c),new Set([...M(_0x3d63b9['x'],_0x24bee7['x'],_0x49bcb8['x'],_0x12b22c['x']),...M(_0x3d63b9['y'],_0x24bee7['y'],_0x49bcb8['y'],_0x12b22c['y'])])[_0x3510b4(0x125)](_0x3474b9=>{const _0x224b52=_0x3510b4;_0x53d2aa[_0x224b52(0x104)](j(_0x3d63b9,_0x24bee7,_0x49bcb8,_0x12b22c,_0x3474b9));});}function P(_0x2e1c88){const _0x2ca530=_0x2bdb7a;let _0x46ac57=_0x2e1c88[_0x2ca530(0x152)];if(_0x46ac57[_0x2ca530(0x147)]<=0x1)return _0x46ac57;let _0x32de76=[];for(let _0x513059=0x1;_0x513059<_0x46ac57[_0x2ca530(0x147)];_0x513059++){let _0x325c6b=_0x46ac57[_0x513059-0x1],_0x20d7f2=_0x46ac57[_0x513059];N(_0x32de76,_0x325c6b,_0x325c6b[_0x2ca530(0xfb)]??_0x325c6b,_0x20d7f2['in']??_0x20d7f2,_0x20d7f2);}if(_0x2e1c88['closed']&&_0x46ac57[_0x2ca530(0x147)]>0x1){let _0x12028e=_0x46ac57[_0x46ac57[_0x2ca530(0x147)]-0x1],_0x227f1b=_0x46ac57[0x0];N(_0x32de76,_0x12028e,_0x12028e[_0x2ca530(0xfb)]??_0x12028e,_0x227f1b['in']??_0x227f1b,_0x227f1b);}return _0x32de76;}function F(_0x478cbd){const _0x117e91=_0x2bdb7a;let _0x1da30f=_0x478cbd['points'];if(_0x1da30f[_0x117e91(0x147)]<=0x1)return _0x1da30f;let _0x4e8c4b=[];for(let _0x429a23=0x0;_0x429a23<_0x1da30f[_0x117e91(0x147)]-0x1;_0x429a23++){let _0x2eac17=_0x1da30f[_0x429a23],_0x4b5fb4=_0x1da30f[_0x429a23+0x1],_0x3e4937=_0x1da30f[_0x429a23-0x1]??_0x2eac17,_0x3bb5ea=_0x1da30f[_0x429a23+0x2]??_0x4b5fb4;N(_0x4e8c4b,_0x2eac17,{'x':_0x2eac17['x']+(_0x4b5fb4['x']-_0x3e4937['x'])/0x6,'y':_0x2eac17['y']+(_0x4b5fb4['y']-_0x3e4937['y'])/0x6},{'x':_0x4b5fb4['x']-(_0x3bb5ea['x']-_0x2eac17['x'])/0x6,'y':_0x4b5fb4['y']-(_0x3bb5ea['y']-_0x2eac17['y'])/0x6},_0x4b5fb4);}return _0x4e8c4b;}function I(_0x59891e){const _0x58ee39=_0x2bdb7a;return _0x59891e['kind']===_0x58ee39(0x135)?P(_0x59891e):F(_0x59891e);}function L(_0x44f9ff){const _0x335608=_0x2bdb7a;let _0x4e2eba=Math[_0x335608(0x120)](_0x44f9ff*0x2710)/0x2710;return Object['is'](_0x4e2eba,-0x0)?0x0:_0x4e2eba;}function R(_0x2b7109){const _0x41bf40=_0x2bdb7a;let _0x5314fd=I(_0x2b7109);if(_0x5314fd[_0x41bf40(0x147)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x1e6d30=Math[_0x41bf40(0x155)](..._0x5314fd[_0x41bf40(0x108)](_0x9d1964=>_0x9d1964['x'])),_0x4e7d5e=Math['min'](..._0x5314fd['map'](_0x1a7b0b=>_0x1a7b0b['y'])),_0x1bee09=Math[_0x41bf40(0xf5)](..._0x5314fd['map'](_0x422324=>_0x422324['x'])),_0x319d4a=Math[_0x41bf40(0xf5)](..._0x5314fd['map'](_0x27e968=>_0x27e968['y']));return{'left':L(_0x1e6d30),'top':L(_0x4e7d5e),'width':L(Math[_0x41bf40(0xf5)](0x1,_0x1bee09-_0x1e6d30)),'height':L(Math[_0x41bf40(0xf5)](0x1,_0x319d4a-_0x4e7d5e))};}function z(_0xab4a7,_0x505d2a){const _0x364512=_0x2bdb7a;let _0x419ab5=_0xab4a7['anchors'];if(_0x419ab5[_0x364512(0x147)]===0x0)return'';let _0x191989=['M\x20'+k(A(_0x419ab5[0x0],_0x505d2a))];for(let _0x1ee246=0x1;_0x1ee246<_0x419ab5[_0x364512(0x147)];_0x1ee246++){let _0x50e30c=_0x419ab5[_0x1ee246-0x1],_0xfc2656=_0x419ab5[_0x1ee246],_0x32c20d=_0x50e30c[_0x364512(0xfb)]??_0x50e30c,_0x405b7b=_0xfc2656['in']??_0xfc2656;_0x191989[_0x364512(0x104)]('C\x20'+k(A(_0x32c20d,_0x505d2a))+'\x20'+k(A(_0x405b7b,_0x505d2a))+'\x20'+k(A(_0xfc2656,_0x505d2a)));}if(_0xab4a7[_0x364512(0x12e)]&&_0x419ab5[_0x364512(0x147)]>0x1){let _0x25f980=_0x419ab5[_0x419ab5[_0x364512(0x147)]-0x1],_0x484352=_0x419ab5[0x0],_0x1aeda0=_0x25f980[_0x364512(0xfb)]??_0x25f980,_0xc56e47=_0x484352['in']??_0x484352;_0x191989[_0x364512(0x104)]('C\x20'+k(A(_0x1aeda0,_0x505d2a))+'\x20'+k(A(_0xc56e47,_0x505d2a))+'\x20'+k(A(_0x484352,_0x505d2a))),_0x191989['push']('Z');}return _0x191989['join']('\x20');}function B(_0x4bd2d3,_0x4483bf){const _0x5ae690=_0x2bdb7a;let _0x3f1a98=_0x4bd2d3['points'][_0x5ae690(0x108)](_0x1c33b6=>A(_0x1c33b6,_0x4483bf));if(_0x3f1a98['length']===0x0)return'';if(_0x3f1a98['length']===0x1)return'M\x20'+k(_0x3f1a98[0x0]);let _0x5aa3fb=['M\x20'+k(_0x3f1a98[0x0])];for(let _0x21bf5c=0x0;_0x21bf5c<_0x3f1a98['length']-0x1;_0x21bf5c++){let _0x4d62ba=_0x3f1a98[_0x21bf5c],_0x57d3b0=_0x3f1a98[_0x21bf5c+0x1],_0x58a2a0=_0x3f1a98[_0x21bf5c-0x1]??_0x4d62ba,_0x1cd38d=_0x3f1a98[_0x21bf5c+0x2]??_0x57d3b0,_0xd29800={'x':_0x4d62ba['x']+(_0x57d3b0['x']-_0x58a2a0['x'])/0x6,'y':_0x4d62ba['y']+(_0x57d3b0['y']-_0x58a2a0['y'])/0x6},_0x1de56c={'x':_0x57d3b0['x']-(_0x1cd38d['x']-_0x4d62ba['x'])/0x6,'y':_0x57d3b0['y']-(_0x1cd38d['y']-_0x4d62ba['y'])/0x6};_0x5aa3fb[_0x5ae690(0x104)]('C\x20'+k(_0xd29800)+'\x20'+k(_0x1de56c)+'\x20'+k(_0x57d3b0));}return _0x5aa3fb[_0x5ae690(0x127)]('\x20');}function V(_0x43b68a,_0x16c126){return _0x43b68a['kind']==='pen'?z(_0x43b68a,_0x16c126):B(_0x43b68a,_0x16c126);}function H(_0x38b7e2,_0x127a60){const _0x33c99b=_0x2bdb7a;return _0x127a60!=null&&_0x127a60['color']?_0x127a60['color']:_0x38b7e2[_0x33c99b(0xed)]===_0x33c99b(0x135)?'#f54a45':_0x38b7e2['color'];}function U(_0x785bde,_0x1c5a63){const _0x314b9c=_0x2bdb7a;return(_0x1c5a63==null?void 0x0:_0x1c5a63['width'])===void 0x0?_0x785bde[_0x314b9c(0xed)]===_0x314b9c(0x135)?0x2:_0x785bde['width']:_0x1c5a63[_0x314b9c(0x12f)];}function W(_0x48814c,_0x531fee){const _0x105f99=_0x2bdb7a;return(_0x531fee==null?void 0x0:_0x531fee[_0x105f99(0x156)])===void 0x0?_0x48814c[_0x105f99(0xed)]===_0x105f99(0x135)?void 0x0:_0x48814c[_0x105f99(0x156)]:_0x531fee[_0x105f99(0x156)];}function oe(_0x140f91,_0x3a15cc){const _0x2a7fd0=_0x2bdb7a;let _0x5e2159=R(_0x140f91),_0x486c2f=V(_0x140f91,{'x':_0x5e2159[_0x2a7fd0(0x153)],'y':_0x5e2159[_0x2a7fd0(0x13b)]}),_0x38897d=_0x140f91[_0x2a7fd0(0xed)]===_0x2a7fd0(0x135)&&_0x140f91[_0x2a7fd0(0x12e)],_0x4e0bde=_0x3a15cc==null?void 0x0:_0x3a15cc[_0x2a7fd0(0xf1)];return{'shapeType':e[_0x2a7fd0(0x13f)][_0x2a7fd0(0x101)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x5e2159[_0x2a7fd0(0x12f)],'h':_0x5e2159[_0x2a7fd0(0x11e)],'fill':_0x38897d?_0x2a7fd0(0xde):_0x2a7fd0(0xfe),'stroke':!0x0,'data':_0x486c2f,'dataArray':K(_0x140f91,{'x':_0x5e2159['left'],'y':_0x5e2159[_0x2a7fd0(0x13b)]})}]},'fill':_0x38897d&&_0x4e0bde?{'color':_0x4e0bde,'fillType':e[_0x2a7fd0(0x131)][_0x2a7fd0(0x11d)]}:{'fillType':e[_0x2a7fd0(0x131)]['NoFill']},'stroke':{'color':H(_0x140f91,_0x3a15cc),'width':U(_0x140f91,_0x3a15cc),'opacity':W(_0x140f91,_0x3a15cc),'lineStrokeType':e[_0x2a7fd0(0x149)][_0x2a7fd0(0xdb)],'capType':e['ShapeLineCapEnum'][_0x2a7fd0(0x128)],'lineJoinType':e[_0x2a7fd0(0x144)][_0x2a7fd0(0x128)]}};}function G(_0xa9d6c9,_0x465a7e){return{'x':_0xa9d6c9['x']-_0x465a7e['x'],'y':_0xa9d6c9['y']-_0x465a7e['y']};}function K(_0x59184a,_0x86bd7a){const _0x3d5c2b=_0x2bdb7a;if(_0x59184a[_0x3d5c2b(0xed)]==='pen'){let _0x14c375=_0x59184a[_0x3d5c2b(0x152)];if(_0x14c375[_0x3d5c2b(0x147)]===0x0)return[];let _0x2cea9d=G(_0x14c375[0x0],_0x86bd7a),_0x131f94=[{'command':'M','points':[_0x2cea9d['x'],_0x2cea9d['y']]}];for(let _0x170f84=0x1;_0x170f84<_0x14c375[_0x3d5c2b(0x147)];_0x170f84++){let _0x28b032=_0x14c375[_0x170f84-0x1],_0xffa7e=_0x14c375[_0x170f84],_0x184239=G(_0x28b032[_0x3d5c2b(0xfb)]??_0x28b032,_0x86bd7a),_0x1c2d0f=G(_0xffa7e['in']??_0xffa7e,_0x86bd7a),_0x3f0d86=G(_0xffa7e,_0x86bd7a);_0x131f94[_0x3d5c2b(0x104)]({'command':'C','points':[_0x184239['x'],_0x184239['y'],_0x1c2d0f['x'],_0x1c2d0f['y'],_0x3f0d86['x'],_0x3f0d86['y']]});}if(_0x59184a['closed']&&_0x14c375[_0x3d5c2b(0x147)]>0x1){let _0x1a50a8=_0x14c375[_0x14c375[_0x3d5c2b(0x147)]-0x1],_0x15167b=_0x14c375[0x0],_0x43ec20=G(_0x1a50a8[_0x3d5c2b(0xfb)]??_0x1a50a8,_0x86bd7a),_0x2d8ae7=G(_0x15167b['in']??_0x15167b,_0x86bd7a),_0x2da765=G(_0x15167b,_0x86bd7a);_0x131f94[_0x3d5c2b(0x104)]({'command':'C','points':[_0x43ec20['x'],_0x43ec20['y'],_0x2d8ae7['x'],_0x2d8ae7['y'],_0x2da765['x'],_0x2da765['y']]}),_0x131f94[_0x3d5c2b(0x104)]({'command':'z','points':[]});}return _0x131f94;}let _0x2bbf69=_0x59184a[_0x3d5c2b(0x106)][_0x3d5c2b(0x108)](_0x14a1e7=>G(_0x14a1e7,_0x86bd7a));if(_0x2bbf69[_0x3d5c2b(0x147)]===0x0)return[];let _0x2f877e=[{'command':'M','points':[_0x2bbf69[0x0]['x'],_0x2bbf69[0x0]['y']]}];for(let _0xdb509=0x0;_0xdb509<_0x2bbf69[_0x3d5c2b(0x147)]-0x1;_0xdb509++){let _0x443c34=_0x2bbf69[_0xdb509],_0xd2d1e5=_0x2bbf69[_0xdb509+0x1],_0x1cb28a=_0x2bbf69[_0xdb509-0x1]??_0x443c34,_0x541fb2=_0x2bbf69[_0xdb509+0x2]??_0xd2d1e5,_0x2612b4={'x':_0x443c34['x']+(_0xd2d1e5['x']-_0x1cb28a['x'])/0x6,'y':_0x443c34['y']+(_0xd2d1e5['y']-_0x1cb28a['y'])/0x6},_0x286d1a={'x':_0xd2d1e5['x']-(_0x541fb2['x']-_0x443c34['x'])/0x6,'y':_0xd2d1e5['y']-(_0x541fb2['y']-_0x443c34['y'])/0x6};_0x2f877e['push']({'command':'C','points':[_0x2612b4['x'],_0x2612b4['y'],_0x286d1a['x'],_0x286d1a['y'],_0xd2d1e5['x'],_0xd2d1e5['y']]});}return _0x2f877e;}function q(_0x400562){const _0x475640=_0x2bdb7a;let {model:_0x1b1081,sourceModel:_0x4ad53b=_0x1b1081,style:_0x13c4db}=_0x400562,_0x381af4=_0x400562[_0x475640(0xe4)]??_0x1b1081[_0x475640(0xed)],_0x1b9a94=R(_0x1b1081),_0x480253=_0x1b1081['kind']===_0x475640(0x135)&&_0x381af4!==_0x475640(0x135)?_0x1b1081:void 0x0;return{'transform':{..._0x1b9a94,'rotation':0x0},'shapeData':oe(_0x1b1081,_0x13c4db),'ink':{'version':0x1,'tool':_0x381af4,'sourceModel':_0x4ad53b,..._0x480253?{'editModel':_0x480253}:{},'normalizedBounds':_0x1b9a94}};}var se=_0x2bdb7a(0xe9),ce=_0x2bdb7a(0x143);function J(_0x5e49c2){'@babel/helpers - typeof';const _0x40991c=_0x2bdb7a;return J=typeof Symbol==_0x40991c(0xdf)&&typeof Symbol['iterator']==_0x40991c(0xe1)?function(_0x599641){return typeof _0x599641;}:function(_0x2f1cee){const _0x1e32c5=_0x40991c;return _0x2f1cee&&typeof Symbol=='function'&&_0x2f1cee[_0x1e32c5(0x100)]===Symbol&&_0x2f1cee!==Symbol[_0x1e32c5(0xf4)]?_0x1e32c5(0xe1):typeof _0x2f1cee;},J(_0x5e49c2);}function le(_0x498484,_0x2a48fc){const _0x26cfb0=_0x2bdb7a;if(J(_0x498484)!=_0x26cfb0(0x113)||!_0x498484)return _0x498484;var _0x3aafe8=_0x498484[Symbol[_0x26cfb0(0x12d)]];if(_0x3aafe8!==void 0x0){var _0x44dc79=_0x3aafe8[_0x26cfb0(0xf2)](_0x498484,_0x2a48fc||_0x26cfb0(0xf6));if(J(_0x44dc79)!='object')return _0x44dc79;throw TypeError(_0x26cfb0(0x134));}return(_0x2a48fc===_0x26cfb0(0x139)?String:Number)(_0x498484);}function ue(_0x533147){const _0x2a734c=_0x2bdb7a;var _0x1002e0=le(_0x533147,'string');return J(_0x1002e0)==_0x2a734c(0xe1)?_0x1002e0:_0x1002e0+'';}function Y(_0x5a16c1,_0x2a8daa,_0xc32a79){const _0xdcda0=_0x2bdb7a;return(_0x2a8daa=ue(_0x2a8daa))in _0x5a16c1?Object[_0xdcda0(0x107)](_0x5a16c1,_0x2a8daa,{'value':_0xc32a79,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5a16c1[_0x2a8daa]=_0xc32a79,_0x5a16c1;}const X=(0x0,n[_0x2bdb7a(0x14f)])(_0x2bdb7a(0x12a));var de=class{constructor(){Y(this,'_adapters',[]);}['registerAdapter'](_0x2ebf30){const _0x3a3058=_0x2bdb7a;return this[_0x3a3058(0xec)][_0x3a3058(0x104)](_0x2ebf30),(0x0,n[_0x3a3058(0xe5)])(()=>{const _0x389e0e=_0x3a3058;let _0x29ae60=this[_0x389e0e(0xec)]['indexOf'](_0x2ebf30);_0x29ae60>=0x0&&this[_0x389e0e(0xec)][_0x389e0e(0x102)](_0x29ae60,0x1);});}[_0x2bdb7a(0x141)](_0x55eff4){for(let _0x3846cb of this['_adapters'])if(_0x3846cb['beginInkMode'](_0x55eff4))return!0x0;return!0x1;}async['createCustomShape'](_0x59ad61){const _0x57344f=_0x2bdb7a;for(let _0x401dcd of this[_0x57344f(0xec)])if(_0x401dcd['createCustomShape']&&await _0x401dcd['createCustomShape'](_0x59ad61))return!0x0;return!0x1;}};const fe={'id':_0x2bdb7a(0x133),'type':n[_0x2bdb7a(0x122)][_0x2bdb7a(0x13d)],'handler':(_0x520a73,_0x5bddec)=>_0x5bddec?_0x520a73[_0x2bdb7a(0x10e)](X)[_0x2bdb7a(0x141)](_0x5bddec):!0x1},Z={};function _0x3670(_0x141954,_0x416669){_0x141954=_0x141954-0xd8;const _0xe1a531=_0xe1a5();let _0x367078=_0xe1a531[_0x141954];return _0x367078;}function Q(_0x5f19bb,_0x52cfe7){return function(_0x249442,_0x119054){_0x52cfe7(_0x249442,_0x119054,_0x5f19bb);};}function pe(_0x38fc13,_0x3daf2a,_0x5ace4d,_0x3e3079){const _0x3f21c4=_0x2bdb7a;var _0x529284=arguments[_0x3f21c4(0x147)],_0x159444=_0x529284<0x3?_0x3daf2a:_0x3e3079===null?_0x3e3079=Object[_0x3f21c4(0x140)](_0x3daf2a,_0x5ace4d):_0x3e3079,_0x54a5dd;if(typeof Reflect==_0x3f21c4(0x113)&&typeof Reflect['decorate']==_0x3f21c4(0xdf))_0x159444=Reflect[_0x3f21c4(0xea)](_0x38fc13,_0x3daf2a,_0x5ace4d,_0x3e3079);else{for(var _0x1ec0e8=_0x38fc13[_0x3f21c4(0x147)]-0x1;_0x1ec0e8>=0x0;_0x1ec0e8--)(_0x54a5dd=_0x38fc13[_0x1ec0e8])&&(_0x159444=(_0x529284<0x3?_0x54a5dd(_0x159444):_0x529284>0x3?_0x54a5dd(_0x3daf2a,_0x5ace4d,_0x159444):_0x54a5dd(_0x3daf2a,_0x5ace4d))||_0x159444);}return _0x529284>0x3&&_0x159444&&Object[_0x3f21c4(0x107)](_0x3daf2a,_0x5ace4d,_0x159444),_0x159444;}let $=class extends n[_0x2bdb7a(0x115)]{constructor(_0x238182=Z,_0x344779,_0x5c14a7,_0x3a6892){const _0x417929=_0x2bdb7a;super(),this[_0x417929(0xe2)]=_0x238182,this[_0x417929(0xdd)]=_0x344779,this[_0x417929(0x119)]=_0x5c14a7,this[_0x417929(0x13a)]=_0x3a6892;let {..._0x1cdf09}=(0x0,n[_0x417929(0x154)])({},Z,this[_0x417929(0xe2)]);this['_configService'][_0x417929(0x138)](_0x417929(0xd8),_0x1cdf09);}[_0x2bdb7a(0xef)](){const _0x1c2d95=_0x2bdb7a;[[X,{'useClass':de}]]['forEach'](_0x13cb7f=>this[_0x1c2d95(0xdd)][_0x1c2d95(0xfc)](_0x13cb7f)),this[_0x1c2d95(0x124)](this[_0x1c2d95(0x119)][_0x1c2d95(0x111)](fe));}};Y($,_0x2bdb7a(0x10b),'UNIVER_INK_PLUGIN'),Y($,_0x2bdb7a(0x109),se),Y($,_0x2bdb7a(0x132),ce),Y($,_0x2bdb7a(0x110),n[_0x2bdb7a(0x118)][_0x2bdb7a(0x150)]),$=pe([(0x0,n[_0x2bdb7a(0x12c)])(t[_0x2bdb7a(0xee)]),Q(0x1,(0x0,n[_0x2bdb7a(0x14a)])(n[_0x2bdb7a(0x126)])),Q(0x2,n[_0x2bdb7a(0x12b)]),Q(0x3,n[_0x2bdb7a(0x146)])],$),exports['IInkHostAdapterService']=X,Object['defineProperty'](exports,_0x2bdb7a(0xe3),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x2bdb7a(0x14b)]=q,exports['convertBrushModelToPenModel']=re,exports[_0x2bdb7a(0xf7)]=E,exports['deleteInkPenAnchor']=w,exports[_0x2bdb7a(0x14e)]=ie,exports[_0x2bdb7a(0x10d)]=S,exports[_0x2bdb7a(0xe8)]=R,exports[_0x2bdb7a(0x137)]=x,exports[_0x2bdb7a(0x11b)]=C,exports[_0x2bdb7a(0xff)]=p,exports[_0x2bdb7a(0x11f)]=ae,exports[_0x2bdb7a(0x129)]=T;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x10deff=_0x9ffd;(function(_0x240102,_0x1d0053){const _0x39082d=_0x9ffd,_0x434859=_0x240102();while(!![]){try{const _0x2bc20e=parseInt(_0x39082d(0xe1))/0x1+-parseInt(_0x39082d(0xfe))/0x2*(-parseInt(_0x39082d(0xdf))/0x3)+-parseInt(_0x39082d(0xe4))/0x4+parseInt(_0x39082d(0x100))/0x5+-parseInt(_0x39082d(0xe8))/0x6*(-parseInt(_0x39082d(0x107))/0x7)+-parseInt(_0x39082d(0xf9))/0x8*(parseInt(_0x39082d(0xea))/0x9)+-parseInt(_0x39082d(0xe6))/0xa;if(_0x2bc20e===_0x1d0053)break;else _0x434859['push'](_0x434859['shift']());}catch(_0x57ed82){_0x434859['push'](_0x434859['shift']());}}}(_0x5deb,0x67fa3));import{BoardElementType as _0x2fca1a}from'@univerjs-pro/boards';import{FBoard as _0x5d619f}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4d2eb1}from'@univerjs-pro/ink';import{Tools as _0x16901a,generateRandomId as _0x1905fc}from'@univerjs/core';import{FEnum as _0x395991}from'@univerjs/core/facade';var o=class extends _0x5d619f{['insertInk'](_0xc08a26){const _0x408c6e=_0x9ffd;let _0x9336ee=s(_0xc08a26);return _0x9336ee&&this['_addElement'](_0x9336ee,{'insertIndex':_0xc08a26[_0x408c6e(0x106)]})?_0x9336ee:null;}[_0x10deff(0x10a)](){const _0x38884d=_0x10deff;return this[_0x38884d(0xf3)]({'elementType':_0x2fca1a['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x38884d(0xef)](p);}};function s(_0x6f98d3,_0x4354c8){const _0x4d9e72=_0x10deff;if(!l(_0x6f98d3[_0x4d9e72(0xfb)])||_0x6f98d3[_0x4d9e72(0x108)]!==void 0x0&&!l(_0x6f98d3[_0x4d9e72(0x108)])||!u(_0x6f98d3[_0x4d9e72(0xfd)]))return null;let _0x3eece5=_0x6f98d3[_0x4d9e72(0xe9)]??(_0x4354c8==null?void 0x0:_0x4354c8[_0x4d9e72(0xe9)]),_0x38687c=_0x16901a['deepClone'](_0x6f98d3[_0x4d9e72(0xfb)]),_0x14d957=_0x4d2eb1({'model':_0x38687c,'style':_0x6f98d3['style'],'tool':_0x6f98d3[_0x4d9e72(0xf5)],'sourceModel':_0x6f98d3[_0x4d9e72(0x108)]?_0x16901a[_0x4d9e72(0xf6)](_0x6f98d3[_0x4d9e72(0x108)]):_0x38687c}),_0x924a12=d(_0x4354c8==null?void 0x0:_0x4354c8['custom']);return{'id':(_0x4354c8==null?void 0x0:_0x4354c8['id'])??_0x6f98d3['id']??_0x1905fc(0x6),'type':_0x2fca1a['Shape'],'transform':_0x14d957[_0x4d9e72(0xde)],'shapeData':_0x14d957[_0x4d9e72(0x105)],'parentId':_0x3eece5??void 0x0,'laneId':_0x6f98d3[_0x4d9e72(0x101)]===void 0x0?_0x4354c8==null?void 0x0:_0x4354c8[_0x4d9e72(0x101)]:_0x6f98d3[_0x4d9e72(0x101)],'custom':{..._0x924a12,'ink':_0x14d957[_0x4d9e72(0x109)]}};}function _0x5deb(){const _0x57ef65=['2480uliDal','Shape','model','free','style','4DhwEuY','object','3737060PAEQIG','laneId','points','highlighter','trim','shapeData','insertIndex','28tEqqtz','sourceModel','ink','getInks','extend','type','smooth','transform','366963GRVHUX','anchor','190082riUmnP','add','symmetric','1881912WHPbCu','isArray','4152250CvMWQx','length','515502ljtLGD','parentId','6219XGAzHv','out','isFinite','BoardInkTool','opacity','filter','every','custom','pen','findElements','width','tool','deepClone','version','has'];_0x5deb=function(){return _0x57ef65;};return _0x5deb();}function c(_0x47988a){const _0x2ba446=_0x10deff;return Number[_0x2ba446(0xec)](_0x47988a['x'])&&Number[_0x2ba446(0xec)](_0x47988a['y']);}function l(_0xd5a41c){const _0x2d992e=_0x10deff;if(_0xd5a41c['kind']===_0x2d992e(0xf2)){let _0x15cf4a=new Set();return _0xd5a41c['anchors'][_0x2d992e(0xe7)]>=(_0xd5a41c['closed']?0x3:0x2)&&_0xd5a41c['anchors'][_0x2d992e(0xf0)](_0x3e8600=>{const _0x217b20=_0x2d992e;let _0x4cfa72=_0x3e8600['id'][_0x217b20(0x104)]()[_0x217b20(0xe7)]>0x0&&!_0x15cf4a[_0x217b20(0xf8)](_0x3e8600['id'])&&c(_0x3e8600)&&(!_0x3e8600['in']||c(_0x3e8600['in']))&&(!_0x3e8600['out']||c(_0x3e8600[_0x217b20(0xeb)]));return _0x15cf4a[_0x217b20(0xe2)](_0x3e8600['id']),_0x4cfa72;});}return _0xd5a41c['points']['length']>=0x2&&_0xd5a41c[_0x2d992e(0x102)][_0x2d992e(0xf0)](_0x14800d=>c(_0x14800d)&&Number[_0x2d992e(0xec)](_0x14800d['t'])&&(_0x14800d['pressure']===void 0x0||Number[_0x2d992e(0xec)](_0x14800d['pressure'])))&&Number[_0x2d992e(0xec)](_0xd5a41c['width'])&&_0xd5a41c[_0x2d992e(0xf4)]>0x0&&Number[_0x2d992e(0xec)](_0xd5a41c[_0x2d992e(0xee)])&&_0xd5a41c[_0x2d992e(0xee)]>=0x0&&_0xd5a41c['opacity']<=0x1;}function u(_0x5d5282){const _0x19140c=_0x10deff;return _0x5d5282===void 0x0||(_0x5d5282[_0x19140c(0xf4)]===void 0x0||Number[_0x19140c(0xec)](_0x5d5282[_0x19140c(0xf4)])&&_0x5d5282[_0x19140c(0xf4)]>0x0)&&(_0x5d5282[_0x19140c(0xee)]===void 0x0||Number[_0x19140c(0xec)](_0x5d5282['opacity'])&&_0x5d5282[_0x19140c(0xee)]>=0x0&&_0x5d5282[_0x19140c(0xee)]<=0x1);}function d(_0x3c74c2){const _0x503edb=_0x10deff;return _0x3c74c2&&typeof _0x3c74c2=='object'&&!Array[_0x503edb(0xe5)](_0x3c74c2)?_0x3c74c2:{};}function f(_0x1d3f5f){const _0x2e0128=_0x10deff;let _0x5ec492=d(_0x1d3f5f[_0x2e0128(0xf1)])['ink'];if(!_0x5ec492||typeof _0x5ec492!=_0x2e0128(0xff)||Array[_0x2e0128(0xe5)](_0x5ec492))return null;let _0x7f0ade=_0x5ec492;return _0x7f0ade[_0x2e0128(0xf7)]===0x1&&_0x7f0ade[_0x2e0128(0x108)]&&typeof _0x7f0ade[_0x2e0128(0x108)]==_0x2e0128(0xff)?_0x7f0ade:null;}function p(_0x3f9419){const _0x2c7141=_0x10deff;return _0x3f9419[_0x2c7141(0xdc)]===_0x2fca1a[_0x2c7141(0xfa)]&&!!f(_0x3f9419);}function _0x9ffd(_0x110c82,_0x46d458){_0x110c82=_0x110c82-0xdb;const _0x5deba8=_0x5deb();let _0x9ffdf1=_0x5deba8[_0x110c82];return _0x9ffdf1;}_0x5d619f['extend'](o);const m={'Pen':_0x10deff(0xf2),'Brush':'brush','Highlighter':_0x10deff(0x103)},h={'Corner':'corner','Smooth':_0x10deff(0xdd),'Symmetric':_0x10deff(0xe3),'Free':_0x10deff(0xfc)},g={'Anchor':_0x10deff(0xe0),'In':'in','Out':_0x10deff(0xeb)};var _=class extends _0x395991{get[_0x10deff(0xed)](){return m;}get['BoardInkPointType'](){return h;}get['BoardInkHandleKind'](){return g;}};_0x395991[_0x10deff(0xdb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ function _0x5229(_0x3adb99,_0x38123b){_0x3adb99=_0x3adb99-0x1e4;const _0x54d93a=_0x54d9();let _0x522975=_0x54d93a[_0x3adb99];return _0x522975;}const _0x38e767=_0x5229;(function(_0x4c8157,_0x1e3f1f){const _0x1fb5c4=_0x5229,_0x4958de=_0x4c8157();while(!![]){try{const _0x4dab0b=parseInt(_0x1fb5c4(0x211))/0x1+parseInt(_0x1fb5c4(0x1eb))/0x2+-parseInt(_0x1fb5c4(0x201))/0x3+-parseInt(_0x1fb5c4(0x20d))/0x4*(parseInt(_0x1fb5c4(0x205))/0x5)+parseInt(_0x1fb5c4(0x1f4))/0x6*(parseInt(_0x1fb5c4(0x203))/0x7)+parseInt(_0x1fb5c4(0x1f8))/0x8+-parseInt(_0x1fb5c4(0x1e6))/0x9*(parseInt(_0x1fb5c4(0x204))/0xa);if(_0x4dab0b===_0x1e3f1f)break;else _0x4958de['push'](_0x4958de['shift']());}catch(_0x442018){_0x4958de['push'](_0x4958de['shift']());}}}(_0x54d9,0x3a307));import{BoardElementType as _0x2672a7}from'@univerjs-pro/boards';import{FBoard as _0x4d04e6}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x9dc7eb}from'@univerjs-pro/ink';import{Tools as _0x216c7b,generateRandomId as _0x21ad10}from'@univerjs/core';import{FEnum as _0x4e0eac}from'@univerjs/core/facade';var o=class extends _0x4d04e6{[_0x38e767(0x20a)](_0x5e04aa){const _0x53a652=_0x38e767;let _0x5cd216=s(_0x5e04aa);return _0x5cd216&&this['_addElement'](_0x5cd216,{'insertIndex':_0x5e04aa[_0x53a652(0x1ff)]})?_0x5cd216:null;}[_0x38e767(0x1e4)](){const _0x21e82e=_0x38e767;return this[_0x21e82e(0x1e7)]({'elementType':_0x2672a7[_0x21e82e(0x1f5)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x21e82e(0x1f2)](p);}};function s(_0x2b1ee7,_0x571c46){const _0x4a2049=_0x38e767;if(!l(_0x2b1ee7[_0x4a2049(0x212)])||_0x2b1ee7[_0x4a2049(0x20f)]!==void 0x0&&!l(_0x2b1ee7[_0x4a2049(0x20f)])||!u(_0x2b1ee7[_0x4a2049(0x1e9)]))return null;let _0x52a34f=_0x2b1ee7['parentId']??(_0x571c46==null?void 0x0:_0x571c46[_0x4a2049(0x1fd)]),_0x4445fd=_0x216c7b[_0x4a2049(0x20b)](_0x2b1ee7[_0x4a2049(0x212)]),_0x12f08d=_0x9dc7eb({'model':_0x4445fd,'style':_0x2b1ee7['style'],'tool':_0x2b1ee7[_0x4a2049(0x218)],'sourceModel':_0x2b1ee7[_0x4a2049(0x20f)]?_0x216c7b[_0x4a2049(0x20b)](_0x2b1ee7[_0x4a2049(0x20f)]):_0x4445fd}),_0x4be3e7=d(_0x571c46==null?void 0x0:_0x571c46[_0x4a2049(0x1fb)]);return{'id':(_0x571c46==null?void 0x0:_0x571c46['id'])??_0x2b1ee7['id']??_0x21ad10(0x6),'type':_0x2672a7[_0x4a2049(0x1f5)],'transform':_0x12f08d['transform'],'shapeData':_0x12f08d[_0x4a2049(0x1fc)],'parentId':_0x52a34f??void 0x0,'laneId':_0x2b1ee7[_0x4a2049(0x1ec)]===void 0x0?_0x571c46==null?void 0x0:_0x571c46[_0x4a2049(0x1ec)]:_0x2b1ee7[_0x4a2049(0x1ec)],'custom':{..._0x4be3e7,'ink':_0x12f08d[_0x4a2049(0x206)]}};}function c(_0xf4ae57){const _0x11a7fa=_0x38e767;return Number['isFinite'](_0xf4ae57['x'])&&Number[_0x11a7fa(0x208)](_0xf4ae57['y']);}function l(_0x47d13e){const _0x30167b=_0x38e767;if(_0x47d13e[_0x30167b(0x1ea)]===_0x30167b(0x1f9)){let _0x110e4e=new Set();return _0x47d13e[_0x30167b(0x1ef)][_0x30167b(0x20c)]>=(_0x47d13e['closed']?0x3:0x2)&&_0x47d13e[_0x30167b(0x1ef)][_0x30167b(0x202)](_0x11fede=>{const _0x4775df=_0x30167b;let _0x459245=_0x11fede['id'][_0x4775df(0x216)]()[_0x4775df(0x20c)]>0x0&&!_0x110e4e['has'](_0x11fede['id'])&&c(_0x11fede)&&(!_0x11fede['in']||c(_0x11fede['in']))&&(!_0x11fede['out']||c(_0x11fede[_0x4775df(0x1fa)]));return _0x110e4e[_0x4775df(0x1e8)](_0x11fede['id']),_0x459245;});}return _0x47d13e[_0x30167b(0x20e)][_0x30167b(0x20c)]>=0x2&&_0x47d13e[_0x30167b(0x20e)][_0x30167b(0x202)](_0x493021=>c(_0x493021)&&Number['isFinite'](_0x493021['t'])&&(_0x493021[_0x30167b(0x1f0)]===void 0x0||Number[_0x30167b(0x208)](_0x493021[_0x30167b(0x1f0)])))&&Number[_0x30167b(0x208)](_0x47d13e[_0x30167b(0x214)])&&_0x47d13e['width']>0x0&&Number[_0x30167b(0x208)](_0x47d13e['opacity'])&&_0x47d13e[_0x30167b(0x213)]>=0x0&&_0x47d13e[_0x30167b(0x213)]<=0x1;}function u(_0x1195fd){const _0x24a767=_0x38e767;return _0x1195fd===void 0x0||(_0x1195fd[_0x24a767(0x214)]===void 0x0||Number[_0x24a767(0x208)](_0x1195fd[_0x24a767(0x214)])&&_0x1195fd[_0x24a767(0x214)]>0x0)&&(_0x1195fd[_0x24a767(0x213)]===void 0x0||Number['isFinite'](_0x1195fd[_0x24a767(0x213)])&&_0x1195fd[_0x24a767(0x213)]>=0x0&&_0x1195fd['opacity']<=0x1);}function d(_0x1358ee){const _0x5e8128=_0x38e767;return _0x1358ee&&typeof _0x1358ee==_0x5e8128(0x207)&&!Array[_0x5e8128(0x1e5)](_0x1358ee)?_0x1358ee:{};}function _0x54d9(){const _0xcaac2d=['BoardInkPointType','tool','BoardInkHandleKind','getInks','isArray','1394910SrBWax','findElements','add','style','kind','467744WNgsJS','laneId','smooth','free','anchors','pressure','corner','filter','symmetric','15978ywQKCa','Shape','BoardInkTool','type','4648ZSUphl','pen','out','custom','shapeData','parentId','version','insertIndex','brush','552414GQoaOU','every','287XXzGaM','10FSpjzl','35bksBKH','ink','object','isFinite','anchor','insertInk','deepClone','length','37244ncpRLq','points','sourceModel','extend','299012ihmucV','model','opacity','width','highlighter','trim'];_0x54d9=function(){return _0xcaac2d;};return _0x54d9();}function f(_0x30c794){const _0x1f5726=_0x38e767;let _0x4cb250=d(_0x30c794[_0x1f5726(0x1fb)])[_0x1f5726(0x206)];if(!_0x4cb250||typeof _0x4cb250!=_0x1f5726(0x207)||Array[_0x1f5726(0x1e5)](_0x4cb250))return null;let _0x7fd6e8=_0x4cb250;return _0x7fd6e8[_0x1f5726(0x1fe)]===0x1&&_0x7fd6e8['sourceModel']&&typeof _0x7fd6e8[_0x1f5726(0x20f)]=='object'?_0x7fd6e8:null;}function p(_0x33f468){const _0x22c891=_0x38e767;return _0x33f468[_0x22c891(0x1f7)]===_0x2672a7['Shape']&&!!f(_0x33f468);}_0x4d04e6[_0x38e767(0x210)](o);const m={'Pen':_0x38e767(0x1f9),'Brush':_0x38e767(0x200),'Highlighter':_0x38e767(0x215)},h={'Corner':_0x38e767(0x1f1),'Smooth':_0x38e767(0x1ed),'Symmetric':_0x38e767(0x1f3),'Free':_0x38e767(0x1ee)},g={'Anchor':_0x38e767(0x209),'In':'in','Out':_0x38e767(0x1fa)};var _=class extends _0x4e0eac{get[_0x38e767(0x1f6)](){return m;}get[_0x38e767(0x217)](){return h;}get[_0x38e767(0x219)](){return g;}};_0x4e0eac[_0x38e767(0x210)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4b144b=_0xa6e8;(function(_0x2a1230,_0x39b6f6){const _0x1a5676=_0xa6e8,_0x175688=_0x2a1230();while(!![]){try{const _0x3f02e8=-parseInt(_0x1a5676(0xc3))/0x1*(-parseInt(_0x1a5676(0x79))/0x2)+parseInt(_0x1a5676(0x91))/0x3+parseInt(_0x1a5676(0x9b))/0x4*(-parseInt(_0x1a5676(0xaa))/0x5)+parseInt(_0x1a5676(0xad))/0x6*(-parseInt(_0x1a5676(0xa0))/0x7)+parseInt(_0x1a5676(0x85))/0x8+-parseInt(_0x1a5676(0xbd))/0x9*(parseInt(_0x1a5676(0x99))/0xa)+parseInt(_0x1a5676(0x8e))/0xb;if(_0x3f02e8===_0x39b6f6)break;else _0x175688['push'](_0x175688['shift']());}catch(_0x27b4d0){_0x175688['push'](_0x175688['shift']());}}}(_0x5b48,0xdd1e3));import{ShapeFillEnum as _0x44a149,ShapeLineCapEnum as _0x16f41b,ShapeLineJoinEnum as _0x91310c,ShapeLineTypeEnum as _0x1adfb6,ShapeTypeEnum as _0x55f3a7}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5be20a}from'@univerjs-pro/license';import{CommandType as _0x12267a,DependentOn as _0xdb0733,ICommandService as _0x42e8fe,IConfigService as _0x559208,Inject as _0x4c7430,Injector as _0x3cafb4,Plugin as _0x5aaff8,UniverInstanceType as _0x307cd7,createIdentifier as _0x2b9493,merge as _0x2c6874,toDisposable as _0x309fee}from'@univerjs/core';const g=0.0001;function _(_0x4244c9){return{'x':_0x4244c9['x'],'y':_0x4244c9['y']};}function v(_0x21d004){const _0x2f7f4b=_0xa6e8;return{..._0x21d004,'in':_0x21d004['in']?_(_0x21d004['in']):void 0x0,'out':_0x21d004[_0x2f7f4b(0x84)]?_(_0x21d004['out']):void 0x0};}function y(_0x33ee76){const _0x4909da=_0xa6e8;return{'kind':'pen','closed':_0x33ee76[_0x4909da(0x89)],'anchors':_0x33ee76[_0x4909da(0xae)][_0x4909da(0x86)](v)};}function b(_0x1e1978,_0x1da082,_0x2addd3){return{'x':_0x1e1978['x']+(_0x1da082['x']-_0x1e1978['x'])*_0x2addd3,'y':_0x1e1978['y']+(_0x1da082['y']-_0x1e1978['y'])*_0x2addd3};}function x(_0x3e455d,_0x43cf78){return Math['hypot'](_0x3e455d['x']-_0x43cf78['x'],_0x3e455d['y']-_0x43cf78['y']);}function S(_0x48dc8f){const _0x595ecb=_0xa6e8;let _0x2f8d1c=Math[_0x595ecb(0xa1)](_0x48dc8f['x'],_0x48dc8f['y']);return _0x2f8d1c<g?{'x':0x1,'y':0x0}:{'x':_0x48dc8f['x']/_0x2f8d1c,'y':_0x48dc8f['y']/_0x2f8d1c};}function C(_0x708df6,_0x3b9637,_0x18a5fa=x(_0x708df6,_0x3b9637)){let _0x2416fe=S({'x':_0x708df6['x']-_0x3b9637['x'],'y':_0x708df6['y']-_0x3b9637['y']});return{'x':_0x708df6['x']+_0x2416fe['x']*_0x18a5fa,'y':_0x708df6['y']+_0x2416fe['y']*_0x18a5fa};}function w(_0x3096fc,_0x18c15e){const _0x5beac4=_0xa6e8;let {anchors:_0x15474b}=_0x3096fc;return _0x15474b[_0x5beac4(0xab)]<0x2||_0x18c15e<0x0?null:_0x18c15e<_0x15474b[_0x5beac4(0xab)]-0x1?{'startIndex':_0x18c15e,'endIndex':_0x18c15e+0x1,'start':_0x15474b[_0x18c15e],'end':_0x15474b[_0x18c15e+0x1]}:_0x3096fc[_0x5beac4(0x89)]&&_0x18c15e===_0x15474b['length']-0x1?{'startIndex':_0x15474b[_0x5beac4(0xab)]-0x1,'endIndex':0x0,'start':_0x15474b[_0x15474b[_0x5beac4(0xab)]-0x1],'end':_0x15474b[0x0]}:null;}function T(_0x3f8dbe,_0x4e1269){const _0x328447=_0xa6e8;let _0x3af9eb=w(_0x3f8dbe,_0x4e1269);return _0x3af9eb?[_0x3af9eb[_0x328447(0xb4)],_0x3af9eb[_0x328447(0xb4)][_0x328447(0x84)]??_0x3af9eb[_0x328447(0xb4)],_0x3af9eb['end']['in']??_0x3af9eb['end'],_0x3af9eb['end']]:null;}function te(_0x7502a4,_0x2cfa0c){const _0x3f967b=_0xa6e8;return _0x2cfa0c===_0x3f967b(0x75)?_0x7502a4:_0x7502a4[_0x2cfa0c]??null;}function E(_0x257782,_0x1652f8,_0x1609f5){const _0x5b1a51=_0xa6e8;return _0x1609f5===_0x5b1a51(0x75)||_0x257782['closed']?!0x0:_0x1609f5==='in'?_0x1652f8>0x0:_0x1652f8<_0x257782[_0x5b1a51(0xae)]['length']-0x1;}function D(_0x10fb7e,_0x3ab2d1){let [_0x658ce3,_0x52bbad,_0x339528,_0x5c10ac]=_0x10fb7e,_0x5eeeec=b(_0x658ce3,_0x52bbad,_0x3ab2d1),_0x648467=b(_0x52bbad,_0x339528,_0x3ab2d1),_0x55b2d1=b(_0x339528,_0x5c10ac,_0x3ab2d1);return b(b(_0x5eeeec,_0x648467,_0x3ab2d1),b(_0x648467,_0x55b2d1,_0x3ab2d1),_0x3ab2d1);}function ne(_0x1b1c60,_0x149d2e){let [_0x16613b,_0x2060ac,_0x3e4b01,_0x1142bc]=_0x1b1c60,_0x8c15e1=b(_0x16613b,_0x2060ac,_0x149d2e),_0x14d81e=b(_0x2060ac,_0x3e4b01,_0x149d2e),_0x1bce4b=b(_0x3e4b01,_0x1142bc,_0x149d2e),_0x55935d=b(_0x8c15e1,_0x14d81e,_0x149d2e),_0x278c49=b(_0x14d81e,_0x1bce4b,_0x149d2e),_0x204881=b(_0x55935d,_0x278c49,_0x149d2e);return{'left':[_0x16613b,_0x8c15e1,_0x55935d,_0x204881],'right':[_0x204881,_0x278c49,_0x1bce4b,_0x1142bc]};}function _0xa6e8(_0x4c6af2,_0x481f79){_0x4c6af2=_0x4c6af2-0x6c;const _0x5b48bd=_0x5b48();let _0xa6e8b5=_0x5b48bd[_0x4c6af2];return _0xa6e8b5;}function O(_0xc66f48,_0x34747c,_0x598199){const _0x1c1541=_0xa6e8;let _0x9f2e71=_0x598199['x']-_0x34747c['x'],_0x51ea26=_0x598199['y']-_0x34747c['y'],_0x5ecf89=_0x9f2e71*_0x9f2e71+_0x51ea26*_0x51ea26,_0x278aa6=_0x5ecf89<=g?0x0:Math[_0x1c1541(0x71)](0x0,Math[_0x1c1541(0xb2)](0x1,((_0xc66f48['x']-_0x34747c['x'])*_0x9f2e71+(_0xc66f48['y']-_0x34747c['y'])*_0x51ea26)/_0x5ecf89)),_0x41d46a={'x':_0x34747c['x']+_0x9f2e71*_0x278aa6,'y':_0x34747c['y']+_0x51ea26*_0x278aa6};return{'point':_0x41d46a,'ratio':_0x278aa6,'distance':x(_0xc66f48,_0x41d46a)};}function re(_0x5ce28,_0x205545,_0x2b7952){const _0x481bb0=_0xa6e8;return O(_0x5ce28,_0x205545,_0x2b7952)[_0x481bb0(0xa7)]**0x2;}function k(_0x9e9a64,_0x5b2696){const _0x5b725c=_0xa6e8;if(_0x9e9a64['length']<=0x2)return _0x9e9a64[_0x5b725c(0x86)](_);let _0x4448ba=0x0,_0x31bdbc=0x0,_0x12d6df=_0x9e9a64[0x0],_0x489cb3=_0x9e9a64[_0x9e9a64[_0x5b725c(0xab)]-0x1],_0x20478a=_0x5b2696*_0x5b2696;for(let _0x12106f=0x1;_0x12106f<_0x9e9a64[_0x5b725c(0xab)]-0x1;_0x12106f++){let _0x1720f8=re(_0x9e9a64[_0x12106f],_0x12d6df,_0x489cb3);_0x1720f8>_0x4448ba&&(_0x4448ba=_0x1720f8,_0x31bdbc=_0x12106f);}if(_0x4448ba<=_0x20478a)return[_(_0x12d6df),_(_0x489cb3)];let _0x93676d=k(_0x9e9a64['slice'](0x0,_0x31bdbc+0x1),_0x5b2696),_0x5ea466=k(_0x9e9a64['slice'](_0x31bdbc),_0x5b2696);return[..._0x93676d['slice'](0x0,-0x1),..._0x5ea466];}function ie(_0x152fa7,_0x361223){let _0x17e805=_0x152fa7[_0x361223],_0x174a9a=_0x152fa7[_0x361223+0x1],_0x43da0f=_0x152fa7[_0x361223-0x1]??_0x17e805;return{'x':_0x17e805['x']+(_0x174a9a['x']-_0x43da0f['x'])/0x6,'y':_0x17e805['y']+(_0x174a9a['y']-_0x43da0f['y'])/0x6};}function A(_0x3ad810,_0x311c21){let _0x157760=_0x3ad810[_0x311c21],_0x5aee88=_0x3ad810[_0x311c21-0x1],_0xc75b2f=_0x3ad810[_0x311c21+0x1]??_0x157760;return{'x':_0x157760['x']-(_0xc75b2f['x']-_0x5aee88['x'])/0x6,'y':_0x157760['y']-(_0xc75b2f['y']-_0x5aee88['y'])/0x6};}function j(_0x41b2f0,_0x5f29a6){const _0xb9a749=_0xa6e8;let _0x37d3d8=_0x41b2f0[_0xb9a749(0xae)][_0x5f29a6],_0x18bdaa=_0x41b2f0['anchors'][_0x5f29a6-0x1]??(_0x41b2f0[_0xb9a749(0x89)]?_0x41b2f0[_0xb9a749(0xae)][_0x41b2f0[_0xb9a749(0xae)][_0xb9a749(0xab)]-0x1]:null),_0x4fb97b=_0x41b2f0['anchors'][_0x5f29a6+0x1]??(_0x41b2f0[_0xb9a749(0x89)]?_0x41b2f0['anchors'][0x0]:null),_0x372f85=_0x18bdaa&&_0x4fb97b?S({'x':_0x4fb97b['x']-_0x18bdaa['x'],'y':_0x4fb97b['y']-_0x18bdaa['y']}):_0x4fb97b?S({'x':_0x4fb97b['x']-_0x37d3d8['x'],'y':_0x4fb97b['y']-_0x37d3d8['y']}):_0x18bdaa?S({'x':_0x37d3d8['x']-_0x18bdaa['x'],'y':_0x37d3d8['y']-_0x18bdaa['y']}):{'x':0x1,'y':0x0},_0x4d75ac=_0x18bdaa&&_0x4fb97b?Math[_0xb9a749(0x71)](0x32,x(_0x18bdaa,_0x4fb97b)/0x4):0x32;return{'in':{'x':_0x37d3d8['x']-_0x372f85['x']*_0x4d75ac,'y':_0x37d3d8['y']-_0x372f85['y']*_0x4d75ac},'out':{'x':_0x37d3d8['x']+_0x372f85['x']*_0x4d75ac,'y':_0x37d3d8['y']+_0x372f85['y']*_0x4d75ac}};}function M(_0x4a2393,_0x3bef0c){const _0xd99315=_0xa6e8;let _0x1db5e2=_0x4a2393[_0x3bef0c],_0x4d2cfc=_0x3bef0c==='in'?_0xd99315(0x84):'in',_0x133777=_0x4a2393[_0x4d2cfc];if(_0x1db5e2){if(_0x4a2393['pointType']===_0xd99315(0xc4)){_0x4a2393[_0x4d2cfc]=C(_0x4a2393,_0x1db5e2);return;}_0x4a2393[_0xd99315(0xb5)]===_0xd99315(0x6c)&&(_0x4a2393[_0x4d2cfc]=C(_0x4a2393,_0x1db5e2,_0x133777?x(_0x4a2393,_0x133777):x(_0x4a2393,_0x1db5e2)));}}function ae(_0x4379d2,_0x1c426a){const _0x28d8ef=_0xa6e8;let _0x3cdce5=y(_0x4379d2);return!_0x1c426a||_0x3cdce5[_0x28d8ef(0x89)]||_0x3cdce5[_0x28d8ef(0xae)][_0x28d8ef(0xab)]===0x0||_0x3cdce5['anchors'][_0x28d8ef(0x7c)]({'id':'__ink-preview-anchor__','x':_0x1c426a['x'],'y':_0x1c426a['y'],'pointType':_0x28d8ef(0xa3)}),_0x3cdce5;}function oe(_0x3629c8,_0x36b824={}){const _0xa05bdb=_0xa6e8;let _0xc5962d=Math[_0xa05bdb(0x71)](0x0,_0x36b824[_0xa05bdb(0x82)]??Math[_0xa05bdb(0x71)](0x4,_0x3629c8[_0xa05bdb(0x9e)]*0.35)),_0x2022ed=_0x36b824['createId']??(_0x439bc3=>'ink-centerline-'+_0x439bc3),_0x12b038=k(_0x3629c8[_0xa05bdb(0x95)],_0xc5962d),_0x5e348e=_0x12b038[_0xa05bdb(0x86)]((_0x15b5fc,_0xb0f2f0)=>({'id':_0x2022ed(_0xb0f2f0),'x':_0x15b5fc['x'],'y':_0x15b5fc['y'],'pointType':'free'}));for(let _0x369496=0x0;_0x369496<_0x5e348e[_0xa05bdb(0xab)]-0x1;_0x369496++)_0x5e348e[_0x369496][_0xa05bdb(0x84)]=ie(_0x12b038,_0x369496),_0x5e348e[_0x369496+0x1]['in']=A(_0x12b038,_0x369496+0x1);return{'kind':_0xa05bdb(0x7e),'closed':!0x1,'anchors':_0x5e348e};}function se(_0x559961,_0x47a700,_0x1e5c53){const _0x19b0f5=_0xa6e8;let _0x24f5d7=null,_0x5ee64c=[_0x19b0f5(0x75),'in',_0x19b0f5(0x84)];return _0x559961['anchors'][_0x19b0f5(0xa9)]((_0xb9551f,_0x369961)=>{const _0x37480d=_0x19b0f5;_0x5ee64c[_0x37480d(0xa9)](_0x9f0abe=>{if(!E(_0x559961,_0x369961,_0x9f0abe))return;let _0x20636a=te(_0xb9551f,_0x9f0abe);if(!_0x20636a)return;let _0x4c15ad=x(_0x47a700,_0x20636a);_0x4c15ad>_0x1e5c53||_0x24f5d7&&_0x4c15ad>=_0x24f5d7['distance']||(_0x24f5d7={'handle':{'kind':_0x9f0abe,'anchorId':_0xb9551f['id']},'point':_(_0x20636a),'distance':_0x4c15ad});});}),_0x24f5d7;}function ce(_0x2b5382,_0x4b5907,_0x45b57f){const _0x551329=_0xa6e8;let _0x160df6=null,_0x1c6e42=_0x2b5382[_0x551329(0x89)]?_0x2b5382[_0x551329(0xae)]['length']:Math[_0x551329(0x71)](0x0,_0x2b5382[_0x551329(0xae)][_0x551329(0xab)]-0x1);for(let _0x19edd8=0x0;_0x19edd8<_0x1c6e42;_0x19edd8++){let _0x1a9c5c=T(_0x2b5382,_0x19edd8);if(!_0x1a9c5c)continue;let _0x40ac56=D(_0x1a9c5c,0x0);for(let _0x29d6d0=0x1;_0x29d6d0<=0x20;_0x29d6d0++){let _0x31bba2=D(_0x1a9c5c,_0x29d6d0/0x20),_0x34dff3=O(_0x4b5907,_0x40ac56,_0x31bba2),_0x66749=(_0x29d6d0-0x1+_0x34dff3[_0x551329(0x8a)])/0x20;(!_0x160df6||_0x34dff3['distance']<_0x160df6[_0x551329(0xa7)])&&(_0x160df6={'segmentIndex':_0x19edd8,'t':_0x66749,'point':_0x34dff3[_0x551329(0xac)],'distance':_0x34dff3[_0x551329(0xa7)]}),_0x40ac56=_0x31bba2;}}return _0x160df6&&_0x160df6[_0x551329(0xa7)]<=_0x45b57f?_0x160df6:null;}function le(_0x54cf5a,_0x1d8fa6,_0x234861){const _0x6321f2=_0xa6e8;let _0x251b04=y(_0x54cf5a),_0x2db2a2=w(_0x251b04,_0x1d8fa6[_0x6321f2(0x73)]),_0x3ef9c9=T(_0x251b04,_0x1d8fa6[_0x6321f2(0x73)]);if(!_0x2db2a2||!_0x3ef9c9)return _0x251b04;let _0x153c36=ne(_0x3ef9c9,Math[_0x6321f2(0x71)](0x0,Math[_0x6321f2(0xb2)](0x1,_0x1d8fa6['t']))),_0x5094df={'id':_0x234861(),'x':_0x153c36[_0x6321f2(0xb3)][0x3]['x'],'y':_0x153c36['left'][0x3]['y'],'in':_(_0x153c36[_0x6321f2(0xb3)][0x2]),'out':_(_0x153c36[_0x6321f2(0x81)][0x1]),'pointType':_0x6321f2(0xb8)};return _0x251b04['anchors'][_0x2db2a2['startIndex']][_0x6321f2(0x84)]=_(_0x153c36[_0x6321f2(0xb3)][0x1]),_0x251b04[_0x6321f2(0xae)][_0x2db2a2['endIndex']]['in']=_(_0x153c36[_0x6321f2(0x81)][0x2]),_0x251b04[_0x6321f2(0xae)]['splice'](_0x2db2a2['startIndex']+0x1,0x0,_0x5094df),_0x251b04;}function ue(_0x2e4d6d,_0x284c08){const _0x5bdb71=_0xa6e8;let _0x392943=y(_0x2e4d6d);return _0x392943[_0x5bdb71(0xae)]=_0x392943[_0x5bdb71(0xae)][_0x5bdb71(0x98)](_0x99e245=>_0x99e245['id']!==_0x284c08),_0x392943[_0x5bdb71(0x89)]&&_0x392943[_0x5bdb71(0xae)][_0x5bdb71(0xab)]<0x3&&(_0x392943[_0x5bdb71(0x89)]=!0x1),_0x392943;}function N(_0x121236,_0x3410c8,_0x5e7aeb){const _0x3d1e0f=_0xa6e8;let _0x1dc4cd=y(_0x121236),_0x23f969=_0x1dc4cd[_0x3d1e0f(0xae)][_0x3d1e0f(0x7f)](_0xa9c6f8=>_0xa9c6f8['id']===_0x3410c8),_0x527baa=_0x1dc4cd['anchors'][_0x23f969];if(!_0x527baa)return _0x1dc4cd;if(_0x527baa[_0x3d1e0f(0xb5)]=_0x5e7aeb,_0x5e7aeb===_0x3d1e0f(0xa3))return delete _0x527baa['in'],delete _0x527baa['out'],_0x1dc4cd;let _0x44c50c=j(_0x1dc4cd,_0x23f969);if(_0x527baa['in']=_0x527baa['in']?_(_0x527baa['in']):_0x44c50c['in'],_0x527baa[_0x3d1e0f(0x84)]=_0x527baa['out']?_(_0x527baa[_0x3d1e0f(0x84)]):_0x44c50c[_0x3d1e0f(0x84)],_0x5e7aeb===_0x3d1e0f(0xc4)){let _0x17a71c=Math[_0x3d1e0f(0x71)](x(_0x527baa,_0x527baa['in']),x(_0x527baa,_0x527baa[_0x3d1e0f(0x84)]),0x32),_0x490154=S({'x':_0x527baa[_0x3d1e0f(0x84)]['x']-_0x527baa['x'],'y':_0x527baa[_0x3d1e0f(0x84)]['y']-_0x527baa['y']});_0x527baa[_0x3d1e0f(0x84)]={'x':_0x527baa['x']+_0x490154['x']*_0x17a71c,'y':_0x527baa['y']+_0x490154['y']*_0x17a71c},_0x527baa['in']={'x':_0x527baa['x']-_0x490154['x']*_0x17a71c,'y':_0x527baa['y']-_0x490154['y']*_0x17a71c};}else _0x5e7aeb===_0x3d1e0f(0x6c)&&M(_0x527baa,_0x3d1e0f(0x84));return _0x1dc4cd;}function P(_0x2531db,_0x44a56c){const _0x3e3248=_0xa6e8;let _0x2d75d6=_0x2531db['anchors'][_0x3e3248(0x8d)](_0x2ff419=>_0x2ff419['id']===_0x44a56c),_0x358b30=(_0x2d75d6==null?void 0x0:_0x2d75d6['pointType'])??_0x3e3248(0xa3);return N(_0x2531db,_0x44a56c,_0x358b30===_0x3e3248(0xa3)?_0x3e3248(0x6c):_0x358b30===_0x3e3248(0x6c)?'symmetric':_0x358b30==='symmetric'?_0x3e3248(0xb8):'corner');}function F(_0x2d1047,_0x544e0c,_0xfc8ada){const _0x2355e6=_0xa6e8;let _0x4cc9e3=y(_0x2d1047),_0x23be65=_0x4cc9e3[_0x2355e6(0xae)][_0x2355e6(0x8d)](_0x611f7f=>_0x611f7f['id']===_0x544e0c[_0x2355e6(0xb1)]);if(!_0x23be65)return _0x4cc9e3;if(_0x544e0c[_0x2355e6(0x7d)]===_0x2355e6(0x75)){let _0x563207={'x':_0xfc8ada['x']-_0x23be65['x'],'y':_0xfc8ada['y']-_0x23be65['y']};return _0x23be65['x']=_0xfc8ada['x'],_0x23be65['y']=_0xfc8ada['y'],_0x23be65['in']&&={'x':_0x23be65['in']['x']+_0x563207['x'],'y':_0x23be65['in']['y']+_0x563207['y']},_0x23be65[_0x2355e6(0x84)]&&={'x':_0x23be65['out']['x']+_0x563207['x'],'y':_0x23be65[_0x2355e6(0x84)]['y']+_0x563207['y']},_0x4cc9e3;}return _0x23be65[_0x544e0c[_0x2355e6(0x7d)]]=_(_0xfc8ada),_0x23be65[_0x2355e6(0xb5)]===_0x2355e6(0xa3)&&(_0x23be65[_0x2355e6(0xb5)]='free'),M(_0x23be65,_0x544e0c[_0x2355e6(0x7d)]),_0x4cc9e3;}const I=1e-9;function L(_0x2a8fa1){const _0x1bf56f=_0xa6e8;let _0x2b4c95=Math[_0x1bf56f(0x74)](_0x2a8fa1*0x2710)/0x2710;return Object['is'](_0x2b4c95,-0x0)?'0':String(_0x2b4c95);}function R(_0x2daf38){return L(_0x2daf38['x'])+'\x20'+L(_0x2daf38['y']);}function z(_0x172cc6,_0x4605c2){return{'x':_0x172cc6['x']-_0x4605c2['x'],'y':_0x172cc6['y']-_0x4605c2['y']};}function B(_0x2dcfaf,_0x362f06,_0x2c99a3,_0x182b2f,_0x5c350f){let _0x4037ad=0x1-_0x5c350f;return{'x':_0x4037ad*_0x4037ad*_0x4037ad*_0x2dcfaf['x']+0x3*_0x4037ad*_0x4037ad*_0x5c350f*_0x362f06['x']+0x3*_0x4037ad*_0x5c350f*_0x5c350f*_0x2c99a3['x']+_0x5c350f*_0x5c350f*_0x5c350f*_0x182b2f['x'],'y':_0x4037ad*_0x4037ad*_0x4037ad*_0x2dcfaf['y']+0x3*_0x4037ad*_0x4037ad*_0x5c350f*_0x362f06['y']+0x3*_0x4037ad*_0x5c350f*_0x5c350f*_0x2c99a3['y']+_0x5c350f*_0x5c350f*_0x5c350f*_0x182b2f['y']};}function V(_0x1fd8e7,_0x439b6d,_0x46c724,_0x453352){const _0xc2e663=_0xa6e8;let _0x4de1d2=-_0x1fd8e7+0x3*_0x439b6d-0x3*_0x46c724+_0x453352,_0x3606a9=0x3*_0x1fd8e7-0x6*_0x439b6d+0x3*_0x46c724,_0x2b73ba=-0x3*_0x1fd8e7+0x3*_0x439b6d,_0xcb7972=[];if(Math[_0xc2e663(0x96)](_0x4de1d2)<I){if(Math['abs'](_0x3606a9)<I)return _0xcb7972;let _0x192e2b=-_0x2b73ba/(0x2*_0x3606a9);return _0x192e2b>0x0&&_0x192e2b<0x1&&_0xcb7972['push'](_0x192e2b),_0xcb7972;}let _0x52dfec=_0x3606a9*_0x3606a9-0x3*_0x4de1d2*_0x2b73ba;if(_0x52dfec<0x0)return _0xcb7972;let _0xc68246=Math[_0xc2e663(0x97)](Math[_0xc2e663(0x71)](0x0,_0x52dfec)),_0x3df083=(-_0x3606a9+_0xc68246)/(0x3*_0x4de1d2),_0x3e6a57=(-_0x3606a9-_0xc68246)/(0x3*_0x4de1d2);return _0x3df083>0x0&&_0x3df083<0x1&&_0xcb7972[_0xc2e663(0x7c)](_0x3df083),_0x3e6a57>0x0&&_0x3e6a57<0x1&&Math[_0xc2e663(0x96)](_0x3e6a57-_0x3df083)>I&&_0xcb7972[_0xc2e663(0x7c)](_0x3e6a57),_0xcb7972;}function H(_0xcefa55,_0x999634,_0x49742d,_0x3e1ead,_0x501b2e){const _0x1fd5a4=_0xa6e8;_0xcefa55[_0x1fd5a4(0x7c)](_0x999634,_0x501b2e),new Set([...V(_0x999634['x'],_0x49742d['x'],_0x3e1ead['x'],_0x501b2e['x']),...V(_0x999634['y'],_0x49742d['y'],_0x3e1ead['y'],_0x501b2e['y'])])[_0x1fd5a4(0xa9)](_0x7740c1=>{const _0x33457f=_0x1fd5a4;_0xcefa55[_0x33457f(0x7c)](B(_0x999634,_0x49742d,_0x3e1ead,_0x501b2e,_0x7740c1));});}function U(_0x3a410b){const _0x1eaf77=_0xa6e8;let _0x343701=_0x3a410b[_0x1eaf77(0xae)];if(_0x343701[_0x1eaf77(0xab)]<=0x1)return _0x343701;let _0x3cebf3=[];for(let _0x23d098=0x1;_0x23d098<_0x343701[_0x1eaf77(0xab)];_0x23d098++){let _0x289780=_0x343701[_0x23d098-0x1],_0x1261ad=_0x343701[_0x23d098];H(_0x3cebf3,_0x289780,_0x289780['out']??_0x289780,_0x1261ad['in']??_0x1261ad,_0x1261ad);}if(_0x3a410b[_0x1eaf77(0x89)]&&_0x343701['length']>0x1){let _0x523b9a=_0x343701[_0x343701[_0x1eaf77(0xab)]-0x1],_0x3cd466=_0x343701[0x0];H(_0x3cebf3,_0x523b9a,_0x523b9a[_0x1eaf77(0x84)]??_0x523b9a,_0x3cd466['in']??_0x3cd466,_0x3cd466);}return _0x3cebf3;}function de(_0xd4d8e5){const _0x4f95fe=_0xa6e8;let _0x52ab0c=_0xd4d8e5[_0x4f95fe(0x95)];if(_0x52ab0c[_0x4f95fe(0xab)]<=0x1)return _0x52ab0c;let _0x510fe5=[];for(let _0x57cef9=0x0;_0x57cef9<_0x52ab0c[_0x4f95fe(0xab)]-0x1;_0x57cef9++){let _0x54c8f1=_0x52ab0c[_0x57cef9],_0x1fce4c=_0x52ab0c[_0x57cef9+0x1],_0x158d07=_0x52ab0c[_0x57cef9-0x1]??_0x54c8f1,_0x1e7ca8=_0x52ab0c[_0x57cef9+0x2]??_0x1fce4c;H(_0x510fe5,_0x54c8f1,{'x':_0x54c8f1['x']+(_0x1fce4c['x']-_0x158d07['x'])/0x6,'y':_0x54c8f1['y']+(_0x1fce4c['y']-_0x158d07['y'])/0x6},{'x':_0x1fce4c['x']-(_0x1e7ca8['x']-_0x54c8f1['x'])/0x6,'y':_0x1fce4c['y']-(_0x1e7ca8['y']-_0x54c8f1['y'])/0x6},_0x1fce4c);}return _0x510fe5;}function fe(_0x3f83fc){const _0x5a6c0d=_0xa6e8;return _0x3f83fc[_0x5a6c0d(0x7d)]===_0x5a6c0d(0x7e)?U(_0x3f83fc):de(_0x3f83fc);}function W(_0x3c69e3){const _0x1fabc5=_0xa6e8;let _0x3b9b72=Math[_0x1fabc5(0x74)](_0x3c69e3*0x2710)/0x2710;return Object['is'](_0x3b9b72,-0x0)?0x0:_0x3b9b72;}function G(_0x19f094){const _0x1d802a=_0xa6e8;let _0x27edcd=fe(_0x19f094);if(_0x27edcd[_0x1d802a(0xab)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x2c75d2=Math[_0x1d802a(0xb2)](..._0x27edcd[_0x1d802a(0x86)](_0x77b9bb=>_0x77b9bb['x'])),_0x5771bd=Math[_0x1d802a(0xb2)](..._0x27edcd[_0x1d802a(0x86)](_0x4de94d=>_0x4de94d['y'])),_0x5ed010=Math[_0x1d802a(0x71)](..._0x27edcd['map'](_0x2dce57=>_0x2dce57['x'])),_0x4f621b=Math[_0x1d802a(0x71)](..._0x27edcd['map'](_0x553ef3=>_0x553ef3['y']));return{'left':W(_0x2c75d2),'top':W(_0x5771bd),'width':W(Math[_0x1d802a(0x71)](0x1,_0x5ed010-_0x2c75d2)),'height':W(Math[_0x1d802a(0x71)](0x1,_0x4f621b-_0x5771bd))};}function pe(_0x5afb8a,_0x679f8b){const _0x2a9398=_0xa6e8;let _0xa7ed8d=_0x5afb8a['anchors'];if(_0xa7ed8d[_0x2a9398(0xab)]===0x0)return'';let _0x25ff72=['M\x20'+R(z(_0xa7ed8d[0x0],_0x679f8b))];for(let _0xce010f=0x1;_0xce010f<_0xa7ed8d['length'];_0xce010f++){let _0x3a3a84=_0xa7ed8d[_0xce010f-0x1],_0x4c4095=_0xa7ed8d[_0xce010f],_0x30ec4c=_0x3a3a84[_0x2a9398(0x84)]??_0x3a3a84,_0x8b2a41=_0x4c4095['in']??_0x4c4095;_0x25ff72[_0x2a9398(0x7c)]('C\x20'+R(z(_0x30ec4c,_0x679f8b))+'\x20'+R(z(_0x8b2a41,_0x679f8b))+'\x20'+R(z(_0x4c4095,_0x679f8b)));}if(_0x5afb8a[_0x2a9398(0x89)]&&_0xa7ed8d[_0x2a9398(0xab)]>0x1){let _0x35bf97=_0xa7ed8d[_0xa7ed8d['length']-0x1],_0x5a3504=_0xa7ed8d[0x0],_0x76d188=_0x35bf97[_0x2a9398(0x84)]??_0x35bf97,_0x1cf5db=_0x5a3504['in']??_0x5a3504;_0x25ff72[_0x2a9398(0x7c)]('C\x20'+R(z(_0x76d188,_0x679f8b))+'\x20'+R(z(_0x1cf5db,_0x679f8b))+'\x20'+R(z(_0x5a3504,_0x679f8b))),_0x25ff72[_0x2a9398(0x7c)]('Z');}return _0x25ff72[_0x2a9398(0x72)]('\x20');}function me(_0x145651,_0x307647){const _0x42b032=_0xa6e8;let _0x3dcd33=_0x145651['points'][_0x42b032(0x86)](_0xb6ffcb=>z(_0xb6ffcb,_0x307647));if(_0x3dcd33[_0x42b032(0xab)]===0x0)return'';if(_0x3dcd33[_0x42b032(0xab)]===0x1)return'M\x20'+R(_0x3dcd33[0x0]);let _0x1033d0=['M\x20'+R(_0x3dcd33[0x0])];for(let _0x14a3f3=0x0;_0x14a3f3<_0x3dcd33[_0x42b032(0xab)]-0x1;_0x14a3f3++){let _0x34f98c=_0x3dcd33[_0x14a3f3],_0x28b907=_0x3dcd33[_0x14a3f3+0x1],_0x32a1a3=_0x3dcd33[_0x14a3f3-0x1]??_0x34f98c,_0x4e9d01=_0x3dcd33[_0x14a3f3+0x2]??_0x28b907,_0x5e70c7={'x':_0x34f98c['x']+(_0x28b907['x']-_0x32a1a3['x'])/0x6,'y':_0x34f98c['y']+(_0x28b907['y']-_0x32a1a3['y'])/0x6},_0x3dd837={'x':_0x28b907['x']-(_0x4e9d01['x']-_0x34f98c['x'])/0x6,'y':_0x28b907['y']-(_0x4e9d01['y']-_0x34f98c['y'])/0x6};_0x1033d0['push']('C\x20'+R(_0x5e70c7)+'\x20'+R(_0x3dd837)+'\x20'+R(_0x28b907));}return _0x1033d0['join']('\x20');}function he(_0xd7c84d,_0x431852){const _0x58ee8e=_0xa6e8;return _0xd7c84d[_0x58ee8e(0x7d)]===_0x58ee8e(0x7e)?pe(_0xd7c84d,_0x431852):me(_0xd7c84d,_0x431852);}function ge(_0x4d23d9,_0x255e18){const _0x5af349=_0xa6e8;return _0x255e18!=null&&_0x255e18['color']?_0x255e18[_0x5af349(0x9d)]:_0x4d23d9[_0x5af349(0x7d)]==='pen'?_0x5af349(0x76):_0x4d23d9[_0x5af349(0x9d)];}function _e(_0xac9607,_0x5a5b79){const _0xe23c66=_0xa6e8;return(_0x5a5b79==null?void 0x0:_0x5a5b79['width'])===void 0x0?_0xac9607['kind']===_0xe23c66(0x7e)?0x2:_0xac9607[_0xe23c66(0x9e)]:_0x5a5b79[_0xe23c66(0x9e)];}function ve(_0x1ff6f6,_0x3cd9be){const _0x3504cf=_0xa6e8;return(_0x3cd9be==null?void 0x0:_0x3cd9be[_0x3504cf(0xa8)])===void 0x0?_0x1ff6f6[_0x3504cf(0x7d)]==='pen'?void 0x0:_0x1ff6f6[_0x3504cf(0xa8)]:_0x3cd9be[_0x3504cf(0xa8)];}function ye(_0x4b3432,_0x4834e4){const _0x37b7c3=_0xa6e8;let _0x107ee4=G(_0x4b3432),_0x10ea17=he(_0x4b3432,{'x':_0x107ee4['left'],'y':_0x107ee4['top']}),_0x3e021=_0x4b3432[_0x37b7c3(0x7d)]===_0x37b7c3(0x7e)&&_0x4b3432['closed'],_0x26f87d=_0x4834e4==null?void 0x0:_0x4834e4['fillColor'];return{'shapeType':_0x55f3a7[_0x37b7c3(0xc1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x107ee4[_0x37b7c3(0x9e)],'h':_0x107ee4[_0x37b7c3(0xc0)],'fill':_0x3e021?_0x37b7c3(0xbc):'none','stroke':!0x0,'data':_0x10ea17,'dataArray':be(_0x4b3432,{'x':_0x107ee4[_0x37b7c3(0xb3)],'y':_0x107ee4['top']})}]},'fill':_0x3e021&&_0x26f87d?{'color':_0x26f87d,'fillType':_0x44a149[_0x37b7c3(0xbf)]}:{'fillType':_0x44a149[_0x37b7c3(0x8b)]},'stroke':{'color':ge(_0x4b3432,_0x4834e4),'width':_e(_0x4b3432,_0x4834e4),'opacity':ve(_0x4b3432,_0x4834e4),'lineStrokeType':_0x1adfb6[_0x37b7c3(0xb7)],'capType':_0x16f41b[_0x37b7c3(0x80)],'lineJoinType':_0x91310c[_0x37b7c3(0x80)]}};}function K(_0x1b9ca0,_0x329d51){return{'x':_0x1b9ca0['x']-_0x329d51['x'],'y':_0x1b9ca0['y']-_0x329d51['y']};}function be(_0x46806c,_0xc6f0a9){const _0x1e4b4c=_0xa6e8;if(_0x46806c[_0x1e4b4c(0x7d)]===_0x1e4b4c(0x7e)){let _0x5db4d2=_0x46806c[_0x1e4b4c(0xae)];if(_0x5db4d2['length']===0x0)return[];let _0x2489ff=K(_0x5db4d2[0x0],_0xc6f0a9),_0x188b67=[{'command':'M','points':[_0x2489ff['x'],_0x2489ff['y']]}];for(let _0x6acf4=0x1;_0x6acf4<_0x5db4d2[_0x1e4b4c(0xab)];_0x6acf4++){let _0x456655=_0x5db4d2[_0x6acf4-0x1],_0xcf59e0=_0x5db4d2[_0x6acf4],_0x161716=K(_0x456655[_0x1e4b4c(0x84)]??_0x456655,_0xc6f0a9),_0x304f88=K(_0xcf59e0['in']??_0xcf59e0,_0xc6f0a9),_0x21cde8=K(_0xcf59e0,_0xc6f0a9);_0x188b67['push']({'command':'C','points':[_0x161716['x'],_0x161716['y'],_0x304f88['x'],_0x304f88['y'],_0x21cde8['x'],_0x21cde8['y']]});}if(_0x46806c['closed']&&_0x5db4d2[_0x1e4b4c(0xab)]>0x1){let _0x50979d=_0x5db4d2[_0x5db4d2[_0x1e4b4c(0xab)]-0x1],_0x20a745=_0x5db4d2[0x0],_0x28db01=K(_0x50979d['out']??_0x50979d,_0xc6f0a9),_0x4af0c7=K(_0x20a745['in']??_0x20a745,_0xc6f0a9),_0x52015c=K(_0x20a745,_0xc6f0a9);_0x188b67[_0x1e4b4c(0x7c)]({'command':'C','points':[_0x28db01['x'],_0x28db01['y'],_0x4af0c7['x'],_0x4af0c7['y'],_0x52015c['x'],_0x52015c['y']]}),_0x188b67[_0x1e4b4c(0x7c)]({'command':'z','points':[]});}return _0x188b67;}let _0x4de5c7=_0x46806c[_0x1e4b4c(0x95)][_0x1e4b4c(0x86)](_0x1b930e=>K(_0x1b930e,_0xc6f0a9));if(_0x4de5c7[_0x1e4b4c(0xab)]===0x0)return[];let _0x24ee85=[{'command':'M','points':[_0x4de5c7[0x0]['x'],_0x4de5c7[0x0]['y']]}];for(let _0xdd5641=0x0;_0xdd5641<_0x4de5c7[_0x1e4b4c(0xab)]-0x1;_0xdd5641++){let _0x2d9c8a=_0x4de5c7[_0xdd5641],_0x214f24=_0x4de5c7[_0xdd5641+0x1],_0x1afe45=_0x4de5c7[_0xdd5641-0x1]??_0x2d9c8a,_0x11fb33=_0x4de5c7[_0xdd5641+0x2]??_0x214f24,_0xc2fde6={'x':_0x2d9c8a['x']+(_0x214f24['x']-_0x1afe45['x'])/0x6,'y':_0x2d9c8a['y']+(_0x214f24['y']-_0x1afe45['y'])/0x6},_0x3ed11b={'x':_0x214f24['x']-(_0x11fb33['x']-_0x2d9c8a['x'])/0x6,'y':_0x214f24['y']-(_0x11fb33['y']-_0x2d9c8a['y'])/0x6};_0x24ee85[_0x1e4b4c(0x7c)]({'command':'C','points':[_0xc2fde6['x'],_0xc2fde6['y'],_0x3ed11b['x'],_0x3ed11b['y'],_0x214f24['x'],_0x214f24['y']]});}return _0x24ee85;}function xe(_0x3d5ba3){const _0x3e6d86=_0xa6e8;let {model:_0x19f146,sourceModel:_0x5b03c9=_0x19f146,style:_0x51cf1a}=_0x3d5ba3,_0x85a45e=_0x3d5ba3['tool']??_0x19f146[_0x3e6d86(0x7d)],_0x1c2615=G(_0x19f146),_0x33152b=_0x19f146['kind']==='pen'&&_0x85a45e!=='pen'?_0x19f146:void 0x0;return{'transform':{..._0x1c2615,'rotation':0x0},'shapeData':ye(_0x19f146,_0x51cf1a),'ink':{'version':0x1,'tool':_0x85a45e,'sourceModel':_0x5b03c9,..._0x33152b?{'editModel':_0x33152b}:{},'normalizedBounds':_0x1c2615}};}var Se='@univerjs-pro/ink',Ce=_0x4b144b(0xa5);function q(_0x1facf5){'@babel/helpers - typeof';const _0x570018=_0x4b144b;return q=typeof Symbol==_0x570018(0xba)&&typeof Symbol[_0x570018(0xbe)]==_0x570018(0x7b)?function(_0x3d1981){return typeof _0x3d1981;}:function(_0x5223b3){const _0x5d211b=_0x570018;return _0x5223b3&&typeof Symbol=='function'&&_0x5223b3[_0x5d211b(0xbb)]===Symbol&&_0x5223b3!==Symbol[_0x5d211b(0xaf)]?_0x5d211b(0x7b):typeof _0x5223b3;},q(_0x1facf5);}function we(_0x10985f,_0x14ecdf){const _0x558d0d=_0x4b144b;if(q(_0x10985f)!='object'||!_0x10985f)return _0x10985f;var _0x10ab46=_0x10985f[Symbol[_0x558d0d(0x9c)]];if(_0x10ab46!==void 0x0){var _0x1be331=_0x10ab46['call'](_0x10985f,_0x14ecdf||_0x558d0d(0xa2));if(q(_0x1be331)!=_0x558d0d(0x93))return _0x1be331;throw TypeError(_0x558d0d(0x94));}return(_0x14ecdf===_0x558d0d(0x6d)?String:Number)(_0x10985f);}function J(_0x1da09a){const _0x472dfa=_0x4b144b;var _0x18a3eb=we(_0x1da09a,_0x472dfa(0x6d));return q(_0x18a3eb)==_0x472dfa(0x7b)?_0x18a3eb:_0x18a3eb+'';}function _0x5b48(){const _0x15659d=['out','363544uTiaLF','map','ink.config','beginInkMode','closed','ratio','NoFill','indexOf','find','17996979anZsDx','_commandService','registerCommand','3074907mvsAeo','createCustomShape','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','points','abs','sqrt','filter','1475490ZiIDgV','disposeWithMe','4qzUpMU','toPrimitive','color','width','splice','4298HiufEU','hypot','default','corner','onStarting','1.0.0-beta.0','_config','distance','opacity','forEach','3558775YdBCum','length','point','17196CDtEdj','anchors','prototype','registerAdapter','anchorId','min','left','start','pointType','decorate','SolidLine','free','_adapters','function','constructor','norm','9ZJDHWX','iterator','SolidFill','height','Rect','ink.operation.start','409113mVOQtx','symmetric','smooth','string','defineProperty','setConfig','add','max','join','segmentIndex','round','anchor','#f54a45','_configService','_injector','4wCnkGp','version','symbol','push','kind','pen','findIndex','Round','right','tolerance','type'];_0x5b48=function(){return _0x15659d;};return _0x5b48();}function Y(_0x2cd039,_0x49203b,_0x57474e){const _0x318249=_0x4b144b;return(_0x49203b=J(_0x49203b))in _0x2cd039?Object[_0x318249(0x6e)](_0x2cd039,_0x49203b,{'value':_0x57474e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2cd039[_0x49203b]=_0x57474e,_0x2cd039;}const X=_0x2b9493('ink.host-adapter.service');var Te=class{constructor(){const _0x2e3e3e=_0x4b144b;Y(this,_0x2e3e3e(0xb9),[]);}[_0x4b144b(0xb0)](_0x58364a){const _0x57712d=_0x4b144b;return this['_adapters'][_0x57712d(0x7c)](_0x58364a),_0x309fee(()=>{const _0x5dcfce=_0x57712d;let _0x1f35d4=this[_0x5dcfce(0xb9)][_0x5dcfce(0x8c)](_0x58364a);_0x1f35d4>=0x0&&this['_adapters'][_0x5dcfce(0x9f)](_0x1f35d4,0x1);});}[_0x4b144b(0x88)](_0x1b0518){const _0x50e357=_0x4b144b;for(let _0x512cb6 of this[_0x50e357(0xb9)])if(_0x512cb6[_0x50e357(0x88)](_0x1b0518))return!0x0;return!0x1;}async['createCustomShape'](_0x13597d){const _0x3a3d88=_0x4b144b;for(let _0x506fed of this[_0x3a3d88(0xb9)])if(_0x506fed[_0x3a3d88(0x92)]&&await _0x506fed[_0x3a3d88(0x92)](_0x13597d))return!0x0;return!0x1;}};const Ee={'id':_0x4b144b(0xc2),'type':_0x12267a['OPERATION'],'handler':(_0x356ada,_0x5a3929)=>_0x5a3929?_0x356ada['get'](X)[_0x4b144b(0x88)](_0x5a3929):!0x1},Z={};function Q(_0x30f070,_0x153c22){return function(_0x1d3163,_0x4315c8){_0x153c22(_0x1d3163,_0x4315c8,_0x30f070);};}function De(_0x44ef33,_0x510c25,_0x394c76,_0x41c613){const _0x5e2564=_0x4b144b;var _0x29a518=arguments[_0x5e2564(0xab)],_0xffb34d=_0x29a518<0x3?_0x510c25:_0x41c613===null?_0x41c613=Object['getOwnPropertyDescriptor'](_0x510c25,_0x394c76):_0x41c613,_0x1fbf81;if(typeof Reflect==_0x5e2564(0x93)&&typeof Reflect['decorate']==_0x5e2564(0xba))_0xffb34d=Reflect[_0x5e2564(0xb6)](_0x44ef33,_0x510c25,_0x394c76,_0x41c613);else{for(var _0x2a8d54=_0x44ef33[_0x5e2564(0xab)]-0x1;_0x2a8d54>=0x0;_0x2a8d54--)(_0x1fbf81=_0x44ef33[_0x2a8d54])&&(_0xffb34d=(_0x29a518<0x3?_0x1fbf81(_0xffb34d):_0x29a518>0x3?_0x1fbf81(_0x510c25,_0x394c76,_0xffb34d):_0x1fbf81(_0x510c25,_0x394c76))||_0xffb34d);}return _0x29a518>0x3&&_0xffb34d&&Object['defineProperty'](_0x510c25,_0x394c76,_0xffb34d),_0xffb34d;}let $=class extends _0x5aaff8{constructor(_0x4b7fe9=Z,_0x3855a4,_0x24d6c2,_0x4c05b7){const _0x541eb5=_0x4b144b;super(),this[_0x541eb5(0xa6)]=_0x4b7fe9,this[_0x541eb5(0x78)]=_0x3855a4,this[_0x541eb5(0x8f)]=_0x24d6c2,this[_0x541eb5(0x77)]=_0x4c05b7;let {..._0x98179d}=_0x2c6874({},Z,this['_config']);this['_configService'][_0x541eb5(0x6f)](_0x541eb5(0x87),_0x98179d);}[_0x4b144b(0xa4)](){const _0x52e5d0=_0x4b144b;[[X,{'useClass':Te}]][_0x52e5d0(0xa9)](_0x423632=>this['_injector'][_0x52e5d0(0x70)](_0x423632)),this[_0x52e5d0(0x9a)](this[_0x52e5d0(0x8f)][_0x52e5d0(0x90)](Ee));}};Y($,'pluginName','UNIVER_INK_PLUGIN'),Y($,'packageName',Se),Y($,_0x4b144b(0x7a),Ce),Y($,_0x4b144b(0x83),_0x307cd7['UNIVER_UNKNOWN']),$=De([_0xdb0733(_0x5be20a),Q(0x1,_0x4c7430(_0x3cafb4)),Q(0x2,_0x42e8fe),Q(0x3,_0x559208)],$);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 _0x356966=_0x53ef;(function(_0x54451d,_0x3b31d7){const _0x1ce4da=_0x53ef,_0x1c88d7=_0x54451d();while(!![]){try{const _0xbce038=-parseInt(_0x1ce4da(0x24c))/0x1*(-parseInt(_0x1ce4da(0x209))/0x2)+-parseInt(_0x1ce4da(0x223))/0x3*(-parseInt(_0x1ce4da(0x1f0))/0x4)+-parseInt(_0x1ce4da(0x203))/0x5*(parseInt(_0x1ce4da(0x249))/0x6)+parseInt(_0x1ce4da(0x220))/0x7+-parseInt(_0x1ce4da(0x23e))/0x8*(-parseInt(_0x1ce4da(0x214))/0x9)+parseInt(_0x1ce4da(0x201))/0xa*(parseInt(_0x1ce4da(0x21d))/0xb)+-parseInt(_0x1ce4da(0x251))/0xc;if(_0xbce038===_0x3b31d7)break;else _0x1c88d7['push'](_0x1c88d7['shift']());}catch(_0x2022e3){_0x1c88d7['push'](_0x1c88d7['shift']());}}}(_0x1f5c,0x3ead5));import{ShapeFillEnum as _0x2fa4bd,ShapeLineCapEnum as _0x2d6de2,ShapeLineJoinEnum as _0x41dff1,ShapeLineTypeEnum as _0x2d7f81,ShapeTypeEnum as _0x11763b}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x49eb9a}from'@univerjs-pro/license';import{CommandType as _0x1e8d89,DependentOn as _0x1cf1a1,ICommandService as _0x1e9317,IConfigService as _0x5847bc,Inject as _0x5f2ad6,Injector as _0x2eac81,Plugin as _0x22b05a,UniverInstanceType as _0x380ee1,createIdentifier as _0x3e851b,merge as _0x2b1a91,toDisposable as _0x4632ea}from'@univerjs/core';const g=0.0001;function _(_0x48279f){return{'x':_0x48279f['x'],'y':_0x48279f['y']};}function v(_0x444634){const _0x18e054=_0x53ef;return{..._0x444634,'in':_0x444634['in']?_(_0x444634['in']):void 0x0,'out':_0x444634[_0x18e054(0x216)]?_(_0x444634[_0x18e054(0x216)]):void 0x0};}function y(_0x55a2d2){const _0x2a208a=_0x53ef;return{'kind':_0x2a208a(0x20f),'closed':_0x55a2d2[_0x2a208a(0x235)],'anchors':_0x55a2d2[_0x2a208a(0x23f)][_0x2a208a(0x1ef)](v)};}function _0x1f5c(){const _0x185fb5=['max','beginInkMode','smooth','fillColor','77rnZxAW','getOwnPropertyDescriptor','decorate','2467962NgyAdF','segmentIndex','ink.operation.start','3gbvUdv','symbol','setConfig','kind','points','call','function','slice','SolidLine','indexOf','registerAdapter','toPrimitive','_configService','start','filter','left','find','abs','closed','_config','OPERATION','type','UNIVER_INK_PLUGIN','forEach','UNIVER_UNKNOWN','free','createCustomShape','16GWCFsO','anchors','top','endIndex','opacity','version','color','NoFill','tool','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','7734ZpkkSv','right','anchor','2KCucqt','string','get','ink.host-adapter.service','onStarting','5376480yqYQJd','map','22548AUBEFQ','_adapters','@univerjs-pro/ink','tolerance','corner','object','pluginName','findIndex','ratio','width','join','distance','length','default','sqrt','registerCommand','splice','329860STYWvl','hypot','1790uhhIAy','ink-centerline-','none','height','end','ink.config','446300TYHoGC','min','defineProperty','1.0.0-beta.2','createId','Round','pen','pointType','push','symmetric','round','588699RFSYId','packageName','out','__ink-preview-anchor__','_commandService'];_0x1f5c=function(){return _0x185fb5;};return _0x1f5c();}function b(_0x2a952a,_0x2e5661,_0x5e0d99){return{'x':_0x2a952a['x']+(_0x2e5661['x']-_0x2a952a['x'])*_0x5e0d99,'y':_0x2a952a['y']+(_0x2e5661['y']-_0x2a952a['y'])*_0x5e0d99};}function x(_0xaaacec,_0x3c1192){const _0x27b282=_0x53ef;return Math[_0x27b282(0x202)](_0xaaacec['x']-_0x3c1192['x'],_0xaaacec['y']-_0x3c1192['y']);}function S(_0x486b04){const _0x5ceea7=_0x53ef;let _0xe471b9=Math[_0x5ceea7(0x202)](_0x486b04['x'],_0x486b04['y']);return _0xe471b9<g?{'x':0x1,'y':0x0}:{'x':_0x486b04['x']/_0xe471b9,'y':_0x486b04['y']/_0xe471b9};}function C(_0x25793a,_0x4ea531,_0x4f9a3a=x(_0x25793a,_0x4ea531)){let _0x23eb6c=S({'x':_0x25793a['x']-_0x4ea531['x'],'y':_0x25793a['y']-_0x4ea531['y']});return{'x':_0x25793a['x']+_0x23eb6c['x']*_0x4f9a3a,'y':_0x25793a['y']+_0x23eb6c['y']*_0x4f9a3a};}function w(_0x5115ef,_0x2a820e){const _0x554bd4=_0x53ef;let {anchors:_0x1ef8bc}=_0x5115ef;return _0x1ef8bc[_0x554bd4(0x1fc)]<0x2||_0x2a820e<0x0?null:_0x2a820e<_0x1ef8bc[_0x554bd4(0x1fc)]-0x1?{'startIndex':_0x2a820e,'endIndex':_0x2a820e+0x1,'start':_0x1ef8bc[_0x2a820e],'end':_0x1ef8bc[_0x2a820e+0x1]}:_0x5115ef['closed']&&_0x2a820e===_0x1ef8bc['length']-0x1?{'startIndex':_0x1ef8bc['length']-0x1,'endIndex':0x0,'start':_0x1ef8bc[_0x1ef8bc[_0x554bd4(0x1fc)]-0x1],'end':_0x1ef8bc[0x0]}:null;}function T(_0x26461a,_0x4a21cf){const _0x23db50=_0x53ef;let _0x59b75a=w(_0x26461a,_0x4a21cf);return _0x59b75a?[_0x59b75a[_0x23db50(0x230)],_0x59b75a[_0x23db50(0x230)]['out']??_0x59b75a[_0x23db50(0x230)],_0x59b75a[_0x23db50(0x207)]['in']??_0x59b75a[_0x23db50(0x207)],_0x59b75a[_0x23db50(0x207)]]:null;}function te(_0x4b1eab,_0x301c80){return _0x301c80==='anchor'?_0x4b1eab:_0x4b1eab[_0x301c80]??null;}function E(_0x5ee7f1,_0x17bb72,_0x271433){const _0x35c1ad=_0x53ef;return _0x271433===_0x35c1ad(0x24b)||_0x5ee7f1[_0x35c1ad(0x235)]?!0x0:_0x271433==='in'?_0x17bb72>0x0:_0x17bb72<_0x5ee7f1[_0x35c1ad(0x23f)]['length']-0x1;}function D(_0x1204f1,_0x320f6c){let [_0x42129c,_0xf3e572,_0x40f9e3,_0x3de1fd]=_0x1204f1,_0x6d2b7f=b(_0x42129c,_0xf3e572,_0x320f6c),_0xc1192d=b(_0xf3e572,_0x40f9e3,_0x320f6c),_0x18dcee=b(_0x40f9e3,_0x3de1fd,_0x320f6c);return b(b(_0x6d2b7f,_0xc1192d,_0x320f6c),b(_0xc1192d,_0x18dcee,_0x320f6c),_0x320f6c);}function ne(_0x3acbc7,_0x2278c1){let [_0x29f324,_0x11f2b3,_0xdf7f0f,_0x563355]=_0x3acbc7,_0x53dfa5=b(_0x29f324,_0x11f2b3,_0x2278c1),_0x513244=b(_0x11f2b3,_0xdf7f0f,_0x2278c1),_0xc82e23=b(_0xdf7f0f,_0x563355,_0x2278c1),_0x5a77b3=b(_0x53dfa5,_0x513244,_0x2278c1),_0x18eabd=b(_0x513244,_0xc82e23,_0x2278c1),_0x1aa9c8=b(_0x5a77b3,_0x18eabd,_0x2278c1);return{'left':[_0x29f324,_0x53dfa5,_0x5a77b3,_0x1aa9c8],'right':[_0x1aa9c8,_0x18eabd,_0xc82e23,_0x563355]};}function O(_0x127738,_0x19d1b4,_0x48c9c0){const _0x52eefa=_0x53ef;let _0x43611f=_0x48c9c0['x']-_0x19d1b4['x'],_0x5135f6=_0x48c9c0['y']-_0x19d1b4['y'],_0xcb9d79=_0x43611f*_0x43611f+_0x5135f6*_0x5135f6,_0x15616e=_0xcb9d79<=g?0x0:Math['max'](0x0,Math[_0x52eefa(0x20a)](0x1,((_0x127738['x']-_0x19d1b4['x'])*_0x43611f+(_0x127738['y']-_0x19d1b4['y'])*_0x5135f6)/_0xcb9d79)),_0x278579={'x':_0x19d1b4['x']+_0x43611f*_0x15616e,'y':_0x19d1b4['y']+_0x5135f6*_0x15616e};return{'point':_0x278579,'ratio':_0x15616e,'distance':x(_0x127738,_0x278579)};}function re(_0x1c0926,_0x59bba1,_0x4bc406){return O(_0x1c0926,_0x59bba1,_0x4bc406)['distance']**0x2;}function k(_0x2063d9,_0x379c5b){const _0x1e8693=_0x53ef;if(_0x2063d9[_0x1e8693(0x1fc)]<=0x2)return _0x2063d9[_0x1e8693(0x1ef)](_);let _0x463a15=0x0,_0x495139=0x0,_0x11e93c=_0x2063d9[0x0],_0x3b26b4=_0x2063d9[_0x2063d9[_0x1e8693(0x1fc)]-0x1],_0x35b191=_0x379c5b*_0x379c5b;for(let _0x49e8ba=0x1;_0x49e8ba<_0x2063d9[_0x1e8693(0x1fc)]-0x1;_0x49e8ba++){let _0x252ae1=re(_0x2063d9[_0x49e8ba],_0x11e93c,_0x3b26b4);_0x252ae1>_0x463a15&&(_0x463a15=_0x252ae1,_0x495139=_0x49e8ba);}if(_0x463a15<=_0x35b191)return[_(_0x11e93c),_(_0x3b26b4)];let _0x177f45=k(_0x2063d9[_0x1e8693(0x22a)](0x0,_0x495139+0x1),_0x379c5b),_0x1827b1=k(_0x2063d9[_0x1e8693(0x22a)](_0x495139),_0x379c5b);return[..._0x177f45[_0x1e8693(0x22a)](0x0,-0x1),..._0x1827b1];}function ie(_0x59751d,_0x420094){let _0x53d9f5=_0x59751d[_0x420094],_0x298408=_0x59751d[_0x420094+0x1],_0x190738=_0x59751d[_0x420094-0x1]??_0x53d9f5;return{'x':_0x53d9f5['x']+(_0x298408['x']-_0x190738['x'])/0x6,'y':_0x53d9f5['y']+(_0x298408['y']-_0x190738['y'])/0x6};}function A(_0x119f78,_0xd818e8){let _0x3c0892=_0x119f78[_0xd818e8],_0xab5fce=_0x119f78[_0xd818e8-0x1],_0x91a4cb=_0x119f78[_0xd818e8+0x1]??_0x3c0892;return{'x':_0x3c0892['x']-(_0x91a4cb['x']-_0xab5fce['x'])/0x6,'y':_0x3c0892['y']-(_0x91a4cb['y']-_0xab5fce['y'])/0x6};}function j(_0x3f00b2,_0x597f50){const _0x3769bc=_0x53ef;let _0x28fc9d=_0x3f00b2[_0x3769bc(0x23f)][_0x597f50],_0x514a16=_0x3f00b2[_0x3769bc(0x23f)][_0x597f50-0x1]??(_0x3f00b2[_0x3769bc(0x235)]?_0x3f00b2['anchors'][_0x3f00b2[_0x3769bc(0x23f)][_0x3769bc(0x1fc)]-0x1]:null),_0xf246d8=_0x3f00b2['anchors'][_0x597f50+0x1]??(_0x3f00b2['closed']?_0x3f00b2[_0x3769bc(0x23f)][0x0]:null),_0x257b0e=_0x514a16&&_0xf246d8?S({'x':_0xf246d8['x']-_0x514a16['x'],'y':_0xf246d8['y']-_0x514a16['y']}):_0xf246d8?S({'x':_0xf246d8['x']-_0x28fc9d['x'],'y':_0xf246d8['y']-_0x28fc9d['y']}):_0x514a16?S({'x':_0x28fc9d['x']-_0x514a16['x'],'y':_0x28fc9d['y']-_0x514a16['y']}):{'x':0x1,'y':0x0},_0x5c3cf8=_0x514a16&&_0xf246d8?Math[_0x3769bc(0x219)](0x32,x(_0x514a16,_0xf246d8)/0x4):0x32;return{'in':{'x':_0x28fc9d['x']-_0x257b0e['x']*_0x5c3cf8,'y':_0x28fc9d['y']-_0x257b0e['y']*_0x5c3cf8},'out':{'x':_0x28fc9d['x']+_0x257b0e['x']*_0x5c3cf8,'y':_0x28fc9d['y']+_0x257b0e['y']*_0x5c3cf8}};}function M(_0x7a88c1,_0x277009){const _0x3ee4ca=_0x53ef;let _0x2740b7=_0x7a88c1[_0x277009],_0x4bc775=_0x277009==='in'?'out':'in',_0x362f94=_0x7a88c1[_0x4bc775];if(_0x2740b7){if(_0x7a88c1[_0x3ee4ca(0x210)]===_0x3ee4ca(0x212)){_0x7a88c1[_0x4bc775]=C(_0x7a88c1,_0x2740b7);return;}_0x7a88c1[_0x3ee4ca(0x210)]===_0x3ee4ca(0x21b)&&(_0x7a88c1[_0x4bc775]=C(_0x7a88c1,_0x2740b7,_0x362f94?x(_0x7a88c1,_0x362f94):x(_0x7a88c1,_0x2740b7)));}}function ae(_0x59e21c,_0x36d04e){const _0x32c142=_0x53ef;let _0x48c843=y(_0x59e21c);return!_0x36d04e||_0x48c843['closed']||_0x48c843['anchors']['length']===0x0||_0x48c843[_0x32c142(0x23f)][_0x32c142(0x211)]({'id':_0x32c142(0x217),'x':_0x36d04e['x'],'y':_0x36d04e['y'],'pointType':_0x32c142(0x1f4)}),_0x48c843;}function oe(_0xcfc0ea,_0x2cd5b6={}){const _0x4c23e0=_0x53ef;let _0x12de85=Math[_0x4c23e0(0x219)](0x0,_0x2cd5b6[_0x4c23e0(0x1f3)]??Math[_0x4c23e0(0x219)](0x4,_0xcfc0ea['width']*0.35)),_0x3db688=_0x2cd5b6[_0x4c23e0(0x20d)]??(_0x3d6e40=>_0x4c23e0(0x204)+_0x3d6e40),_0x4c2d72=k(_0xcfc0ea[_0x4c23e0(0x227)],_0x12de85),_0xf3a2f6=_0x4c2d72[_0x4c23e0(0x1ef)]((_0x46a440,_0x1095a5)=>({'id':_0x3db688(_0x1095a5),'x':_0x46a440['x'],'y':_0x46a440['y'],'pointType':_0x4c23e0(0x23c)}));for(let _0x23b9af=0x0;_0x23b9af<_0xf3a2f6[_0x4c23e0(0x1fc)]-0x1;_0x23b9af++)_0xf3a2f6[_0x23b9af][_0x4c23e0(0x216)]=ie(_0x4c2d72,_0x23b9af),_0xf3a2f6[_0x23b9af+0x1]['in']=A(_0x4c2d72,_0x23b9af+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0xf3a2f6};}function se(_0x2859a8,_0x2d5283,_0x3f53eb){const _0x27976d=_0x53ef;let _0x5fb0c9=null,_0x1b3869=[_0x27976d(0x24b),'in','out'];return _0x2859a8[_0x27976d(0x23f)][_0x27976d(0x23a)]((_0x4a0cb8,_0x299495)=>{_0x1b3869['forEach'](_0xbbed76=>{if(!E(_0x2859a8,_0x299495,_0xbbed76))return;let _0x453511=te(_0x4a0cb8,_0xbbed76);if(!_0x453511)return;let _0x3d89ff=x(_0x2d5283,_0x453511);_0x3d89ff>_0x3f53eb||_0x5fb0c9&&_0x3d89ff>=_0x5fb0c9['distance']||(_0x5fb0c9={'handle':{'kind':_0xbbed76,'anchorId':_0x4a0cb8['id']},'point':_(_0x453511),'distance':_0x3d89ff});});}),_0x5fb0c9;}function ce(_0x248a3c,_0x1df9ef,_0x1bc909){const _0x19e8d2=_0x53ef;let _0x5d2598=null,_0x5f4d68=_0x248a3c['closed']?_0x248a3c[_0x19e8d2(0x23f)][_0x19e8d2(0x1fc)]:Math['max'](0x0,_0x248a3c[_0x19e8d2(0x23f)][_0x19e8d2(0x1fc)]-0x1);for(let _0x36f160=0x0;_0x36f160<_0x5f4d68;_0x36f160++){let _0x445842=T(_0x248a3c,_0x36f160);if(!_0x445842)continue;let _0x507d6=D(_0x445842,0x0);for(let _0x228462=0x1;_0x228462<=0x20;_0x228462++){let _0xf7ca=D(_0x445842,_0x228462/0x20),_0x4fa499=O(_0x1df9ef,_0x507d6,_0xf7ca),_0x19bab2=(_0x228462-0x1+_0x4fa499[_0x19e8d2(0x1f8)])/0x20;(!_0x5d2598||_0x4fa499[_0x19e8d2(0x1fb)]<_0x5d2598['distance'])&&(_0x5d2598={'segmentIndex':_0x36f160,'t':_0x19bab2,'point':_0x4fa499['point'],'distance':_0x4fa499[_0x19e8d2(0x1fb)]}),_0x507d6=_0xf7ca;}}return _0x5d2598&&_0x5d2598[_0x19e8d2(0x1fb)]<=_0x1bc909?_0x5d2598:null;}function le(_0x384140,_0x21f62d,_0x2d00a6){const _0x8456ef=_0x53ef;let _0x106eec=y(_0x384140),_0xc21a64=w(_0x106eec,_0x21f62d[_0x8456ef(0x221)]),_0x17b06f=T(_0x106eec,_0x21f62d['segmentIndex']);if(!_0xc21a64||!_0x17b06f)return _0x106eec;let _0x2e7114=ne(_0x17b06f,Math['max'](0x0,Math[_0x8456ef(0x20a)](0x1,_0x21f62d['t']))),_0x3c6185={'id':_0x2d00a6(),'x':_0x2e7114[_0x8456ef(0x232)][0x3]['x'],'y':_0x2e7114[_0x8456ef(0x232)][0x3]['y'],'in':_(_0x2e7114['left'][0x2]),'out':_(_0x2e7114['right'][0x1]),'pointType':_0x8456ef(0x23c)};return _0x106eec['anchors'][_0xc21a64['startIndex']][_0x8456ef(0x216)]=_(_0x2e7114[_0x8456ef(0x232)][0x1]),_0x106eec['anchors'][_0xc21a64[_0x8456ef(0x241)]]['in']=_(_0x2e7114[_0x8456ef(0x24a)][0x2]),_0x106eec[_0x8456ef(0x23f)][_0x8456ef(0x200)](_0xc21a64['startIndex']+0x1,0x0,_0x3c6185),_0x106eec;}function ue(_0x162e9a,_0x232ee0){const _0x11a7de=_0x53ef;let _0x42d2e6=y(_0x162e9a);return _0x42d2e6['anchors']=_0x42d2e6[_0x11a7de(0x23f)][_0x11a7de(0x231)](_0x2e4db0=>_0x2e4db0['id']!==_0x232ee0),_0x42d2e6[_0x11a7de(0x235)]&&_0x42d2e6[_0x11a7de(0x23f)][_0x11a7de(0x1fc)]<0x3&&(_0x42d2e6['closed']=!0x1),_0x42d2e6;}function _0x53ef(_0xc57a9,_0x516a4b){_0xc57a9=_0xc57a9-0x1ef;const _0x1f5c9d=_0x1f5c();let _0x53efec=_0x1f5c9d[_0xc57a9];return _0x53efec;}function N(_0xc9b76,_0x510eb1,_0x2e8834){const _0x1762a4=_0x53ef;let _0x33d63e=y(_0xc9b76),_0x38bb2b=_0x33d63e[_0x1762a4(0x23f)][_0x1762a4(0x1f7)](_0x44921e=>_0x44921e['id']===_0x510eb1),_0x160a7f=_0x33d63e[_0x1762a4(0x23f)][_0x38bb2b];if(!_0x160a7f)return _0x33d63e;if(_0x160a7f[_0x1762a4(0x210)]=_0x2e8834,_0x2e8834===_0x1762a4(0x1f4))return delete _0x160a7f['in'],delete _0x160a7f[_0x1762a4(0x216)],_0x33d63e;let _0x572828=j(_0x33d63e,_0x38bb2b);if(_0x160a7f['in']=_0x160a7f['in']?_(_0x160a7f['in']):_0x572828['in'],_0x160a7f[_0x1762a4(0x216)]=_0x160a7f[_0x1762a4(0x216)]?_(_0x160a7f[_0x1762a4(0x216)]):_0x572828[_0x1762a4(0x216)],_0x2e8834===_0x1762a4(0x212)){let _0x3326cb=Math['max'](x(_0x160a7f,_0x160a7f['in']),x(_0x160a7f,_0x160a7f['out']),0x32),_0x43cc20=S({'x':_0x160a7f[_0x1762a4(0x216)]['x']-_0x160a7f['x'],'y':_0x160a7f[_0x1762a4(0x216)]['y']-_0x160a7f['y']});_0x160a7f[_0x1762a4(0x216)]={'x':_0x160a7f['x']+_0x43cc20['x']*_0x3326cb,'y':_0x160a7f['y']+_0x43cc20['y']*_0x3326cb},_0x160a7f['in']={'x':_0x160a7f['x']-_0x43cc20['x']*_0x3326cb,'y':_0x160a7f['y']-_0x43cc20['y']*_0x3326cb};}else _0x2e8834==='smooth'&&M(_0x160a7f,'out');return _0x33d63e;}function P(_0x1af66d,_0x41dd6e){const _0x1a68ea=_0x53ef;let _0x1962e0=_0x1af66d['anchors'][_0x1a68ea(0x233)](_0x5e516e=>_0x5e516e['id']===_0x41dd6e),_0x59c3d3=(_0x1962e0==null?void 0x0:_0x1962e0['pointType'])??'corner';return N(_0x1af66d,_0x41dd6e,_0x59c3d3==='corner'?_0x1a68ea(0x21b):_0x59c3d3===_0x1a68ea(0x21b)?_0x1a68ea(0x212):_0x59c3d3===_0x1a68ea(0x212)?'free':'corner');}function F(_0x5396e5,_0x4f0ea1,_0x250936){const _0x43869d=_0x53ef;let _0x182b40=y(_0x5396e5),_0x1da81c=_0x182b40[_0x43869d(0x23f)]['find'](_0x46f544=>_0x46f544['id']===_0x4f0ea1['anchorId']);if(!_0x1da81c)return _0x182b40;if(_0x4f0ea1[_0x43869d(0x226)]===_0x43869d(0x24b)){let _0xc8a20f={'x':_0x250936['x']-_0x1da81c['x'],'y':_0x250936['y']-_0x1da81c['y']};return _0x1da81c['x']=_0x250936['x'],_0x1da81c['y']=_0x250936['y'],_0x1da81c['in']&&={'x':_0x1da81c['in']['x']+_0xc8a20f['x'],'y':_0x1da81c['in']['y']+_0xc8a20f['y']},_0x1da81c[_0x43869d(0x216)]&&={'x':_0x1da81c[_0x43869d(0x216)]['x']+_0xc8a20f['x'],'y':_0x1da81c[_0x43869d(0x216)]['y']+_0xc8a20f['y']},_0x182b40;}return _0x1da81c[_0x4f0ea1[_0x43869d(0x226)]]=_(_0x250936),_0x1da81c[_0x43869d(0x210)]===_0x43869d(0x1f4)&&(_0x1da81c['pointType']=_0x43869d(0x23c)),M(_0x1da81c,_0x4f0ea1[_0x43869d(0x226)]),_0x182b40;}const I=1e-9;function L(_0x5ce0ba){const _0x5c045b=_0x53ef;let _0x255f97=Math[_0x5c045b(0x213)](_0x5ce0ba*0x2710)/0x2710;return Object['is'](_0x255f97,-0x0)?'0':String(_0x255f97);}function R(_0x4e8cb2){return L(_0x4e8cb2['x'])+'\x20'+L(_0x4e8cb2['y']);}function z(_0x1477ad,_0x26ef50){return{'x':_0x1477ad['x']-_0x26ef50['x'],'y':_0x1477ad['y']-_0x26ef50['y']};}function B(_0x41ad40,_0x129b62,_0xb622f8,_0x2f57eb,_0x3a48f0){let _0x2ffabe=0x1-_0x3a48f0;return{'x':_0x2ffabe*_0x2ffabe*_0x2ffabe*_0x41ad40['x']+0x3*_0x2ffabe*_0x2ffabe*_0x3a48f0*_0x129b62['x']+0x3*_0x2ffabe*_0x3a48f0*_0x3a48f0*_0xb622f8['x']+_0x3a48f0*_0x3a48f0*_0x3a48f0*_0x2f57eb['x'],'y':_0x2ffabe*_0x2ffabe*_0x2ffabe*_0x41ad40['y']+0x3*_0x2ffabe*_0x2ffabe*_0x3a48f0*_0x129b62['y']+0x3*_0x2ffabe*_0x3a48f0*_0x3a48f0*_0xb622f8['y']+_0x3a48f0*_0x3a48f0*_0x3a48f0*_0x2f57eb['y']};}function V(_0x32868a,_0x5c49e9,_0x1619e2,_0x41faf5){const _0x393151=_0x53ef;let _0x4f9ec2=-_0x32868a+0x3*_0x5c49e9-0x3*_0x1619e2+_0x41faf5,_0x40ce8f=0x3*_0x32868a-0x6*_0x5c49e9+0x3*_0x1619e2,_0x1c90e5=-0x3*_0x32868a+0x3*_0x5c49e9,_0x57e4e8=[];if(Math[_0x393151(0x234)](_0x4f9ec2)<I){if(Math['abs'](_0x40ce8f)<I)return _0x57e4e8;let _0x59d4cb=-_0x1c90e5/(0x2*_0x40ce8f);return _0x59d4cb>0x0&&_0x59d4cb<0x1&&_0x57e4e8[_0x393151(0x211)](_0x59d4cb),_0x57e4e8;}let _0x5e2fc3=_0x40ce8f*_0x40ce8f-0x3*_0x4f9ec2*_0x1c90e5;if(_0x5e2fc3<0x0)return _0x57e4e8;let _0xa81f52=Math[_0x393151(0x1fe)](Math['max'](0x0,_0x5e2fc3)),_0x130818=(-_0x40ce8f+_0xa81f52)/(0x3*_0x4f9ec2),_0x1e82e3=(-_0x40ce8f-_0xa81f52)/(0x3*_0x4f9ec2);return _0x130818>0x0&&_0x130818<0x1&&_0x57e4e8['push'](_0x130818),_0x1e82e3>0x0&&_0x1e82e3<0x1&&Math[_0x393151(0x234)](_0x1e82e3-_0x130818)>I&&_0x57e4e8['push'](_0x1e82e3),_0x57e4e8;}function H(_0x4cf027,_0x68c3c2,_0x53f6dd,_0x30586b,_0x502263){const _0x3360df=_0x53ef;_0x4cf027['push'](_0x68c3c2,_0x502263),new Set([...V(_0x68c3c2['x'],_0x53f6dd['x'],_0x30586b['x'],_0x502263['x']),...V(_0x68c3c2['y'],_0x53f6dd['y'],_0x30586b['y'],_0x502263['y'])])[_0x3360df(0x23a)](_0xdd247b=>{const _0x40264f=_0x3360df;_0x4cf027[_0x40264f(0x211)](B(_0x68c3c2,_0x53f6dd,_0x30586b,_0x502263,_0xdd247b));});}function U(_0x5c0fde){const _0x38feb9=_0x53ef;let _0x3f1284=_0x5c0fde[_0x38feb9(0x23f)];if(_0x3f1284[_0x38feb9(0x1fc)]<=0x1)return _0x3f1284;let _0x51c180=[];for(let _0x297215=0x1;_0x297215<_0x3f1284[_0x38feb9(0x1fc)];_0x297215++){let _0x121958=_0x3f1284[_0x297215-0x1],_0x1f28dd=_0x3f1284[_0x297215];H(_0x51c180,_0x121958,_0x121958[_0x38feb9(0x216)]??_0x121958,_0x1f28dd['in']??_0x1f28dd,_0x1f28dd);}if(_0x5c0fde[_0x38feb9(0x235)]&&_0x3f1284[_0x38feb9(0x1fc)]>0x1){let _0x2556fb=_0x3f1284[_0x3f1284['length']-0x1],_0x39925e=_0x3f1284[0x0];H(_0x51c180,_0x2556fb,_0x2556fb[_0x38feb9(0x216)]??_0x2556fb,_0x39925e['in']??_0x39925e,_0x39925e);}return _0x51c180;}function de(_0x54e9a7){const _0x33e7d2=_0x53ef;let _0x3268f4=_0x54e9a7[_0x33e7d2(0x227)];if(_0x3268f4[_0x33e7d2(0x1fc)]<=0x1)return _0x3268f4;let _0x217c42=[];for(let _0x5bb47c=0x0;_0x5bb47c<_0x3268f4['length']-0x1;_0x5bb47c++){let _0x530e46=_0x3268f4[_0x5bb47c],_0xeea96d=_0x3268f4[_0x5bb47c+0x1],_0x302d52=_0x3268f4[_0x5bb47c-0x1]??_0x530e46,_0x388a56=_0x3268f4[_0x5bb47c+0x2]??_0xeea96d;H(_0x217c42,_0x530e46,{'x':_0x530e46['x']+(_0xeea96d['x']-_0x302d52['x'])/0x6,'y':_0x530e46['y']+(_0xeea96d['y']-_0x302d52['y'])/0x6},{'x':_0xeea96d['x']-(_0x388a56['x']-_0x530e46['x'])/0x6,'y':_0xeea96d['y']-(_0x388a56['y']-_0x530e46['y'])/0x6},_0xeea96d);}return _0x217c42;}function fe(_0x76d43f){const _0x284aa2=_0x53ef;return _0x76d43f[_0x284aa2(0x226)]===_0x284aa2(0x20f)?U(_0x76d43f):de(_0x76d43f);}function W(_0x2cc479){let _0x75c89=Math['round'](_0x2cc479*0x2710)/0x2710;return Object['is'](_0x75c89,-0x0)?0x0:_0x75c89;}function G(_0x5abd8d){const _0xa4c604=_0x53ef;let _0x3002b7=fe(_0x5abd8d);if(_0x3002b7[_0xa4c604(0x1fc)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x577485=Math[_0xa4c604(0x20a)](..._0x3002b7[_0xa4c604(0x1ef)](_0x20b1c0=>_0x20b1c0['x'])),_0x2d45f6=Math[_0xa4c604(0x20a)](..._0x3002b7[_0xa4c604(0x1ef)](_0x3d14a6=>_0x3d14a6['y'])),_0x316ffd=Math['max'](..._0x3002b7[_0xa4c604(0x1ef)](_0x2afd5c=>_0x2afd5c['x'])),_0x180653=Math[_0xa4c604(0x219)](..._0x3002b7[_0xa4c604(0x1ef)](_0x17ef23=>_0x17ef23['y']));return{'left':W(_0x577485),'top':W(_0x2d45f6),'width':W(Math[_0xa4c604(0x219)](0x1,_0x316ffd-_0x577485)),'height':W(Math['max'](0x1,_0x180653-_0x2d45f6))};}function pe(_0x5ae1aa,_0x406174){const _0x235739=_0x53ef;let _0xb804a0=_0x5ae1aa[_0x235739(0x23f)];if(_0xb804a0[_0x235739(0x1fc)]===0x0)return'';let _0x9c2558=['M\x20'+R(z(_0xb804a0[0x0],_0x406174))];for(let _0x322c8d=0x1;_0x322c8d<_0xb804a0[_0x235739(0x1fc)];_0x322c8d++){let _0x1845a3=_0xb804a0[_0x322c8d-0x1],_0x214d09=_0xb804a0[_0x322c8d],_0x199306=_0x1845a3[_0x235739(0x216)]??_0x1845a3,_0x502b56=_0x214d09['in']??_0x214d09;_0x9c2558[_0x235739(0x211)]('C\x20'+R(z(_0x199306,_0x406174))+'\x20'+R(z(_0x502b56,_0x406174))+'\x20'+R(z(_0x214d09,_0x406174)));}if(_0x5ae1aa[_0x235739(0x235)]&&_0xb804a0[_0x235739(0x1fc)]>0x1){let _0xd91717=_0xb804a0[_0xb804a0[_0x235739(0x1fc)]-0x1],_0x446ee6=_0xb804a0[0x0],_0x5c2fd3=_0xd91717[_0x235739(0x216)]??_0xd91717,_0x2482e1=_0x446ee6['in']??_0x446ee6;_0x9c2558[_0x235739(0x211)]('C\x20'+R(z(_0x5c2fd3,_0x406174))+'\x20'+R(z(_0x2482e1,_0x406174))+'\x20'+R(z(_0x446ee6,_0x406174))),_0x9c2558[_0x235739(0x211)]('Z');}return _0x9c2558[_0x235739(0x1fa)]('\x20');}function me(_0x38e48b,_0x13e01c){const _0x1de27e=_0x53ef;let _0x271e1a=_0x38e48b[_0x1de27e(0x227)][_0x1de27e(0x1ef)](_0x5d2f29=>z(_0x5d2f29,_0x13e01c));if(_0x271e1a[_0x1de27e(0x1fc)]===0x0)return'';if(_0x271e1a['length']===0x1)return'M\x20'+R(_0x271e1a[0x0]);let _0x146874=['M\x20'+R(_0x271e1a[0x0])];for(let _0x557fb0=0x0;_0x557fb0<_0x271e1a[_0x1de27e(0x1fc)]-0x1;_0x557fb0++){let _0x509ff3=_0x271e1a[_0x557fb0],_0x29af82=_0x271e1a[_0x557fb0+0x1],_0x1f098b=_0x271e1a[_0x557fb0-0x1]??_0x509ff3,_0x357e14=_0x271e1a[_0x557fb0+0x2]??_0x29af82,_0x16b44a={'x':_0x509ff3['x']+(_0x29af82['x']-_0x1f098b['x'])/0x6,'y':_0x509ff3['y']+(_0x29af82['y']-_0x1f098b['y'])/0x6},_0x2444e0={'x':_0x29af82['x']-(_0x357e14['x']-_0x509ff3['x'])/0x6,'y':_0x29af82['y']-(_0x357e14['y']-_0x509ff3['y'])/0x6};_0x146874['push']('C\x20'+R(_0x16b44a)+'\x20'+R(_0x2444e0)+'\x20'+R(_0x29af82));}return _0x146874['join']('\x20');}function he(_0x352bd8,_0x2e846b){const _0x69e8e0=_0x53ef;return _0x352bd8['kind']===_0x69e8e0(0x20f)?pe(_0x352bd8,_0x2e846b):me(_0x352bd8,_0x2e846b);}function ge(_0x4030f1,_0x339fce){const _0xe436a9=_0x53ef;return _0x339fce!=null&&_0x339fce[_0xe436a9(0x244)]?_0x339fce['color']:_0x4030f1['kind']===_0xe436a9(0x20f)?'#f54a45':_0x4030f1[_0xe436a9(0x244)];}function _e(_0x4ca1c0,_0x468885){const _0xb12aab=_0x53ef;return(_0x468885==null?void 0x0:_0x468885[_0xb12aab(0x1f9)])===void 0x0?_0x4ca1c0['kind']==='pen'?0x2:_0x4ca1c0['width']:_0x468885['width'];}function ve(_0x39f282,_0x57727b){const _0x59a521=_0x53ef;return(_0x57727b==null?void 0x0:_0x57727b[_0x59a521(0x242)])===void 0x0?_0x39f282[_0x59a521(0x226)]===_0x59a521(0x20f)?void 0x0:_0x39f282[_0x59a521(0x242)]:_0x57727b[_0x59a521(0x242)];}function ye(_0x5b238c,_0x4fe218){const _0x40bee2=_0x53ef;let _0x15245a=G(_0x5b238c),_0x570241=he(_0x5b238c,{'x':_0x15245a[_0x40bee2(0x232)],'y':_0x15245a[_0x40bee2(0x240)]}),_0x37f918=_0x5b238c['kind']===_0x40bee2(0x20f)&&_0x5b238c['closed'],_0x2469b0=_0x4fe218==null?void 0x0:_0x4fe218[_0x40bee2(0x21c)];return{'shapeType':_0x11763b['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x15245a[_0x40bee2(0x1f9)],'h':_0x15245a[_0x40bee2(0x206)],'fill':_0x37f918?'norm':_0x40bee2(0x205),'stroke':!0x0,'data':_0x570241,'dataArray':be(_0x5b238c,{'x':_0x15245a[_0x40bee2(0x232)],'y':_0x15245a['top']})}]},'fill':_0x37f918&&_0x2469b0?{'color':_0x2469b0,'fillType':_0x2fa4bd['SolidFill']}:{'fillType':_0x2fa4bd[_0x40bee2(0x245)]},'stroke':{'color':ge(_0x5b238c,_0x4fe218),'width':_e(_0x5b238c,_0x4fe218),'opacity':ve(_0x5b238c,_0x4fe218),'lineStrokeType':_0x2d7f81[_0x40bee2(0x22b)],'capType':_0x2d6de2[_0x40bee2(0x20e)],'lineJoinType':_0x41dff1[_0x40bee2(0x20e)]}};}function K(_0x22c11c,_0x3b9cc4){return{'x':_0x22c11c['x']-_0x3b9cc4['x'],'y':_0x22c11c['y']-_0x3b9cc4['y']};}function be(_0x103a8a,_0xc97d34){const _0x37f555=_0x53ef;if(_0x103a8a[_0x37f555(0x226)]===_0x37f555(0x20f)){let _0x487c2c=_0x103a8a[_0x37f555(0x23f)];if(_0x487c2c[_0x37f555(0x1fc)]===0x0)return[];let _0x14233d=K(_0x487c2c[0x0],_0xc97d34),_0x30420d=[{'command':'M','points':[_0x14233d['x'],_0x14233d['y']]}];for(let _0x1748bf=0x1;_0x1748bf<_0x487c2c[_0x37f555(0x1fc)];_0x1748bf++){let _0x16e7af=_0x487c2c[_0x1748bf-0x1],_0x5d672f=_0x487c2c[_0x1748bf],_0x1a8900=K(_0x16e7af['out']??_0x16e7af,_0xc97d34),_0x46bec0=K(_0x5d672f['in']??_0x5d672f,_0xc97d34),_0x41a86c=K(_0x5d672f,_0xc97d34);_0x30420d[_0x37f555(0x211)]({'command':'C','points':[_0x1a8900['x'],_0x1a8900['y'],_0x46bec0['x'],_0x46bec0['y'],_0x41a86c['x'],_0x41a86c['y']]});}if(_0x103a8a[_0x37f555(0x235)]&&_0x487c2c[_0x37f555(0x1fc)]>0x1){let _0x17aeff=_0x487c2c[_0x487c2c[_0x37f555(0x1fc)]-0x1],_0x40b663=_0x487c2c[0x0],_0x1843b9=K(_0x17aeff['out']??_0x17aeff,_0xc97d34),_0x1fe0a2=K(_0x40b663['in']??_0x40b663,_0xc97d34),_0x419244=K(_0x40b663,_0xc97d34);_0x30420d[_0x37f555(0x211)]({'command':'C','points':[_0x1843b9['x'],_0x1843b9['y'],_0x1fe0a2['x'],_0x1fe0a2['y'],_0x419244['x'],_0x419244['y']]}),_0x30420d[_0x37f555(0x211)]({'command':'z','points':[]});}return _0x30420d;}let _0x195f23=_0x103a8a[_0x37f555(0x227)][_0x37f555(0x1ef)](_0xfc75f=>K(_0xfc75f,_0xc97d34));if(_0x195f23['length']===0x0)return[];let _0x1f76c9=[{'command':'M','points':[_0x195f23[0x0]['x'],_0x195f23[0x0]['y']]}];for(let _0x5414bf=0x0;_0x5414bf<_0x195f23[_0x37f555(0x1fc)]-0x1;_0x5414bf++){let _0x4d117e=_0x195f23[_0x5414bf],_0xd8559=_0x195f23[_0x5414bf+0x1],_0x3f71dc=_0x195f23[_0x5414bf-0x1]??_0x4d117e,_0x508db3=_0x195f23[_0x5414bf+0x2]??_0xd8559,_0xfff49f={'x':_0x4d117e['x']+(_0xd8559['x']-_0x3f71dc['x'])/0x6,'y':_0x4d117e['y']+(_0xd8559['y']-_0x3f71dc['y'])/0x6},_0x3ca850={'x':_0xd8559['x']-(_0x508db3['x']-_0x4d117e['x'])/0x6,'y':_0xd8559['y']-(_0x508db3['y']-_0x4d117e['y'])/0x6};_0x1f76c9[_0x37f555(0x211)]({'command':'C','points':[_0xfff49f['x'],_0xfff49f['y'],_0x3ca850['x'],_0x3ca850['y'],_0xd8559['x'],_0xd8559['y']]});}return _0x1f76c9;}function xe(_0x289e2b){const _0x5e1b50=_0x53ef;let {model:_0x4b471a,sourceModel:_0x5926d7=_0x4b471a,style:_0x19d6e0}=_0x289e2b,_0x53183e=_0x289e2b[_0x5e1b50(0x246)]??_0x4b471a['kind'],_0x6dcba4=G(_0x4b471a),_0xbbc2bf=_0x4b471a[_0x5e1b50(0x226)]===_0x5e1b50(0x20f)&&_0x53183e!=='pen'?_0x4b471a:void 0x0;return{'transform':{..._0x6dcba4,'rotation':0x0},'shapeData':ye(_0x4b471a,_0x19d6e0),'ink':{'version':0x1,'tool':_0x53183e,'sourceModel':_0x5926d7,..._0xbbc2bf?{'editModel':_0xbbc2bf}:{},'normalizedBounds':_0x6dcba4}};}var Se=_0x356966(0x1f2),Ce=_0x356966(0x20c);function q(_0x21b509){'@babel/helpers - typeof';const _0x16d79f=_0x356966;return q=typeof Symbol=='function'&&typeof Symbol[_0x16d79f(0x247)]=='symbol'?function(_0x5be096){return typeof _0x5be096;}:function(_0x52b1c3){const _0x383d1f=_0x16d79f;return _0x52b1c3&&typeof Symbol==_0x383d1f(0x229)&&_0x52b1c3['constructor']===Symbol&&_0x52b1c3!==Symbol['prototype']?'symbol':typeof _0x52b1c3;},q(_0x21b509);}function we(_0x509f3d,_0x2ecd3f){const _0x43a713=_0x356966;if(q(_0x509f3d)!=_0x43a713(0x1f5)||!_0x509f3d)return _0x509f3d;var _0x5f1c23=_0x509f3d[Symbol[_0x43a713(0x22e)]];if(_0x5f1c23!==void 0x0){var _0x41b600=_0x5f1c23[_0x43a713(0x228)](_0x509f3d,_0x2ecd3f||_0x43a713(0x1fd));if(q(_0x41b600)!=_0x43a713(0x1f5))return _0x41b600;throw TypeError(_0x43a713(0x248));}return(_0x2ecd3f===_0x43a713(0x24d)?String:Number)(_0x509f3d);}function J(_0x40e864){const _0x3af443=_0x356966;var _0x1e9bce=we(_0x40e864,_0x3af443(0x24d));return q(_0x1e9bce)==_0x3af443(0x224)?_0x1e9bce:_0x1e9bce+'';}function Y(_0x10c612,_0x44f3c9,_0x182c6d){const _0x4b36ef=_0x356966;return(_0x44f3c9=J(_0x44f3c9))in _0x10c612?Object[_0x4b36ef(0x20b)](_0x10c612,_0x44f3c9,{'value':_0x182c6d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x10c612[_0x44f3c9]=_0x182c6d,_0x10c612;}const X=_0x3e851b(_0x356966(0x24f));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x356966(0x22d)](_0x2edd25){const _0x22de3b=_0x356966;return this[_0x22de3b(0x1f1)]['push'](_0x2edd25),_0x4632ea(()=>{const _0x5de6ae=_0x22de3b;let _0xcb6947=this[_0x5de6ae(0x1f1)][_0x5de6ae(0x22c)](_0x2edd25);_0xcb6947>=0x0&&this[_0x5de6ae(0x1f1)][_0x5de6ae(0x200)](_0xcb6947,0x1);});}[_0x356966(0x21a)](_0x10a378){const _0x5e180c=_0x356966;for(let _0x31bb00 of this[_0x5e180c(0x1f1)])if(_0x31bb00[_0x5e180c(0x21a)](_0x10a378))return!0x0;return!0x1;}async[_0x356966(0x23d)](_0x5e1ded){const _0x4e5411=_0x356966;for(let _0x1e9543 of this[_0x4e5411(0x1f1)])if(_0x1e9543[_0x4e5411(0x23d)]&&await _0x1e9543[_0x4e5411(0x23d)](_0x5e1ded))return!0x0;return!0x1;}};const Ee={'id':_0x356966(0x222),'type':_0x1e8d89[_0x356966(0x237)],'handler':(_0x284f21,_0x5dd603)=>_0x5dd603?_0x284f21[_0x356966(0x24e)](X)[_0x356966(0x21a)](_0x5dd603):!0x1},Z={};function Q(_0x2c6a36,_0x4f405c){return function(_0x22704b,_0x3509e0){_0x4f405c(_0x22704b,_0x3509e0,_0x2c6a36);};}function De(_0x3b5759,_0x593799,_0x2cc71b,_0x5bd6de){const _0x5e7659=_0x356966;var _0x58b52a=arguments['length'],_0x5b1212=_0x58b52a<0x3?_0x593799:_0x5bd6de===null?_0x5bd6de=Object[_0x5e7659(0x21e)](_0x593799,_0x2cc71b):_0x5bd6de,_0x5c62d;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5e7659(0x229))_0x5b1212=Reflect[_0x5e7659(0x21f)](_0x3b5759,_0x593799,_0x2cc71b,_0x5bd6de);else{for(var _0x5f51cb=_0x3b5759[_0x5e7659(0x1fc)]-0x1;_0x5f51cb>=0x0;_0x5f51cb--)(_0x5c62d=_0x3b5759[_0x5f51cb])&&(_0x5b1212=(_0x58b52a<0x3?_0x5c62d(_0x5b1212):_0x58b52a>0x3?_0x5c62d(_0x593799,_0x2cc71b,_0x5b1212):_0x5c62d(_0x593799,_0x2cc71b))||_0x5b1212);}return _0x58b52a>0x3&&_0x5b1212&&Object['defineProperty'](_0x593799,_0x2cc71b,_0x5b1212),_0x5b1212;}let $=class extends _0x22b05a{constructor(_0xa1ec1e=Z,_0x42814a,_0x45fe73,_0x334b24){const _0x2eb092=_0x356966;super(),this[_0x2eb092(0x236)]=_0xa1ec1e,this['_injector']=_0x42814a,this['_commandService']=_0x45fe73,this['_configService']=_0x334b24;let {..._0x32839f}=_0x2b1a91({},Z,this[_0x2eb092(0x236)]);this[_0x2eb092(0x22f)][_0x2eb092(0x225)](_0x2eb092(0x208),_0x32839f);}[_0x356966(0x250)](){const _0xf71610=_0x356966;[[X,{'useClass':Te}]][_0xf71610(0x23a)](_0x1039bf=>this['_injector']['add'](_0x1039bf)),this['disposeWithMe'](this[_0xf71610(0x218)][_0xf71610(0x1ff)](Ee));}};Y($,_0x356966(0x1f6),_0x356966(0x239)),Y($,_0x356966(0x215),Se),Y($,_0x356966(0x243),Ce),Y($,_0x356966(0x238),_0x380ee1[_0x356966(0x23b)]),$=De([_0x1cf1a1(_0x49eb9a),Q(0x1,_0x5f2ad6(_0x2eac81)),Q(0x2,_0x1e9317),Q(0x3,_0x5847bc)],$);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 _0x10deff=_0x9ffd;(function(_0x240102,_0x1d0053){const _0x39082d=_0x9ffd,_0x434859=_0x240102();while(!![]){try{const _0x2bc20e=parseInt(_0x39082d(0xe1))/0x1+-parseInt(_0x39082d(0xfe))/0x2*(-parseInt(_0x39082d(0xdf))/0x3)+-parseInt(_0x39082d(0xe4))/0x4+parseInt(_0x39082d(0x100))/0x5+-parseInt(_0x39082d(0xe8))/0x6*(-parseInt(_0x39082d(0x107))/0x7)+-parseInt(_0x39082d(0xf9))/0x8*(parseInt(_0x39082d(0xea))/0x9)+-parseInt(_0x39082d(0xe6))/0xa;if(_0x2bc20e===_0x1d0053)break;else _0x434859['push'](_0x434859['shift']());}catch(_0x57ed82){_0x434859['push'](_0x434859['shift']());}}}(_0x5deb,0x67fa3));import{BoardElementType as _0x2fca1a}from'@univerjs-pro/boards';import{FBoard as _0x5d619f}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4d2eb1}from'@univerjs-pro/ink';import{Tools as _0x16901a,generateRandomId as _0x1905fc}from'@univerjs/core';import{FEnum as _0x395991}from'@univerjs/core/facade';var o=class extends _0x5d619f{['insertInk'](_0xc08a26){const _0x408c6e=_0x9ffd;let _0x9336ee=s(_0xc08a26);return _0x9336ee&&this['_addElement'](_0x9336ee,{'insertIndex':_0xc08a26[_0x408c6e(0x106)]})?_0x9336ee:null;}[_0x10deff(0x10a)](){const _0x38884d=_0x10deff;return this[_0x38884d(0xf3)]({'elementType':_0x2fca1a['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x38884d(0xef)](p);}};function s(_0x6f98d3,_0x4354c8){const _0x4d9e72=_0x10deff;if(!l(_0x6f98d3[_0x4d9e72(0xfb)])||_0x6f98d3[_0x4d9e72(0x108)]!==void 0x0&&!l(_0x6f98d3[_0x4d9e72(0x108)])||!u(_0x6f98d3[_0x4d9e72(0xfd)]))return null;let _0x3eece5=_0x6f98d3[_0x4d9e72(0xe9)]??(_0x4354c8==null?void 0x0:_0x4354c8[_0x4d9e72(0xe9)]),_0x38687c=_0x16901a['deepClone'](_0x6f98d3[_0x4d9e72(0xfb)]),_0x14d957=_0x4d2eb1({'model':_0x38687c,'style':_0x6f98d3['style'],'tool':_0x6f98d3[_0x4d9e72(0xf5)],'sourceModel':_0x6f98d3[_0x4d9e72(0x108)]?_0x16901a[_0x4d9e72(0xf6)](_0x6f98d3[_0x4d9e72(0x108)]):_0x38687c}),_0x924a12=d(_0x4354c8==null?void 0x0:_0x4354c8['custom']);return{'id':(_0x4354c8==null?void 0x0:_0x4354c8['id'])??_0x6f98d3['id']??_0x1905fc(0x6),'type':_0x2fca1a['Shape'],'transform':_0x14d957[_0x4d9e72(0xde)],'shapeData':_0x14d957[_0x4d9e72(0x105)],'parentId':_0x3eece5??void 0x0,'laneId':_0x6f98d3[_0x4d9e72(0x101)]===void 0x0?_0x4354c8==null?void 0x0:_0x4354c8[_0x4d9e72(0x101)]:_0x6f98d3[_0x4d9e72(0x101)],'custom':{..._0x924a12,'ink':_0x14d957[_0x4d9e72(0x109)]}};}function _0x5deb(){const _0x57ef65=['2480uliDal','Shape','model','free','style','4DhwEuY','object','3737060PAEQIG','laneId','points','highlighter','trim','shapeData','insertIndex','28tEqqtz','sourceModel','ink','getInks','extend','type','smooth','transform','366963GRVHUX','anchor','190082riUmnP','add','symmetric','1881912WHPbCu','isArray','4152250CvMWQx','length','515502ljtLGD','parentId','6219XGAzHv','out','isFinite','BoardInkTool','opacity','filter','every','custom','pen','findElements','width','tool','deepClone','version','has'];_0x5deb=function(){return _0x57ef65;};return _0x5deb();}function c(_0x47988a){const _0x2ba446=_0x10deff;return Number[_0x2ba446(0xec)](_0x47988a['x'])&&Number[_0x2ba446(0xec)](_0x47988a['y']);}function l(_0xd5a41c){const _0x2d992e=_0x10deff;if(_0xd5a41c['kind']===_0x2d992e(0xf2)){let _0x15cf4a=new Set();return _0xd5a41c['anchors'][_0x2d992e(0xe7)]>=(_0xd5a41c['closed']?0x3:0x2)&&_0xd5a41c['anchors'][_0x2d992e(0xf0)](_0x3e8600=>{const _0x217b20=_0x2d992e;let _0x4cfa72=_0x3e8600['id'][_0x217b20(0x104)]()[_0x217b20(0xe7)]>0x0&&!_0x15cf4a[_0x217b20(0xf8)](_0x3e8600['id'])&&c(_0x3e8600)&&(!_0x3e8600['in']||c(_0x3e8600['in']))&&(!_0x3e8600['out']||c(_0x3e8600[_0x217b20(0xeb)]));return _0x15cf4a[_0x217b20(0xe2)](_0x3e8600['id']),_0x4cfa72;});}return _0xd5a41c['points']['length']>=0x2&&_0xd5a41c[_0x2d992e(0x102)][_0x2d992e(0xf0)](_0x14800d=>c(_0x14800d)&&Number[_0x2d992e(0xec)](_0x14800d['t'])&&(_0x14800d['pressure']===void 0x0||Number[_0x2d992e(0xec)](_0x14800d['pressure'])))&&Number[_0x2d992e(0xec)](_0xd5a41c['width'])&&_0xd5a41c[_0x2d992e(0xf4)]>0x0&&Number[_0x2d992e(0xec)](_0xd5a41c[_0x2d992e(0xee)])&&_0xd5a41c[_0x2d992e(0xee)]>=0x0&&_0xd5a41c['opacity']<=0x1;}function u(_0x5d5282){const _0x19140c=_0x10deff;return _0x5d5282===void 0x0||(_0x5d5282[_0x19140c(0xf4)]===void 0x0||Number[_0x19140c(0xec)](_0x5d5282[_0x19140c(0xf4)])&&_0x5d5282[_0x19140c(0xf4)]>0x0)&&(_0x5d5282[_0x19140c(0xee)]===void 0x0||Number[_0x19140c(0xec)](_0x5d5282['opacity'])&&_0x5d5282[_0x19140c(0xee)]>=0x0&&_0x5d5282[_0x19140c(0xee)]<=0x1);}function d(_0x3c74c2){const _0x503edb=_0x10deff;return _0x3c74c2&&typeof _0x3c74c2=='object'&&!Array[_0x503edb(0xe5)](_0x3c74c2)?_0x3c74c2:{};}function f(_0x1d3f5f){const _0x2e0128=_0x10deff;let _0x5ec492=d(_0x1d3f5f[_0x2e0128(0xf1)])['ink'];if(!_0x5ec492||typeof _0x5ec492!=_0x2e0128(0xff)||Array[_0x2e0128(0xe5)](_0x5ec492))return null;let _0x7f0ade=_0x5ec492;return _0x7f0ade[_0x2e0128(0xf7)]===0x1&&_0x7f0ade[_0x2e0128(0x108)]&&typeof _0x7f0ade[_0x2e0128(0x108)]==_0x2e0128(0xff)?_0x7f0ade:null;}function p(_0x3f9419){const _0x2c7141=_0x10deff;return _0x3f9419[_0x2c7141(0xdc)]===_0x2fca1a[_0x2c7141(0xfa)]&&!!f(_0x3f9419);}function _0x9ffd(_0x110c82,_0x46d458){_0x110c82=_0x110c82-0xdb;const _0x5deba8=_0x5deb();let _0x9ffdf1=_0x5deba8[_0x110c82];return _0x9ffdf1;}_0x5d619f['extend'](o);const m={'Pen':_0x10deff(0xf2),'Brush':'brush','Highlighter':_0x10deff(0x103)},h={'Corner':'corner','Smooth':_0x10deff(0xdd),'Symmetric':_0x10deff(0xe3),'Free':_0x10deff(0xfc)},g={'Anchor':_0x10deff(0xe0),'In':'in','Out':_0x10deff(0xeb)};var _=class extends _0x395991{get[_0x10deff(0xed)](){return m;}get['BoardInkPointType'](){return h;}get['BoardInkHandleKind'](){return g;}};_0x395991[_0x10deff(0xdb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
1
+ function _0x5229(_0x3adb99,_0x38123b){_0x3adb99=_0x3adb99-0x1e4;const _0x54d93a=_0x54d9();let _0x522975=_0x54d93a[_0x3adb99];return _0x522975;}const _0x38e767=_0x5229;(function(_0x4c8157,_0x1e3f1f){const _0x1fb5c4=_0x5229,_0x4958de=_0x4c8157();while(!![]){try{const _0x4dab0b=parseInt(_0x1fb5c4(0x211))/0x1+parseInt(_0x1fb5c4(0x1eb))/0x2+-parseInt(_0x1fb5c4(0x201))/0x3+-parseInt(_0x1fb5c4(0x20d))/0x4*(parseInt(_0x1fb5c4(0x205))/0x5)+parseInt(_0x1fb5c4(0x1f4))/0x6*(parseInt(_0x1fb5c4(0x203))/0x7)+parseInt(_0x1fb5c4(0x1f8))/0x8+-parseInt(_0x1fb5c4(0x1e6))/0x9*(parseInt(_0x1fb5c4(0x204))/0xa);if(_0x4dab0b===_0x1e3f1f)break;else _0x4958de['push'](_0x4958de['shift']());}catch(_0x442018){_0x4958de['push'](_0x4958de['shift']());}}}(_0x54d9,0x3a307));import{BoardElementType as _0x2672a7}from'@univerjs-pro/boards';import{FBoard as _0x4d04e6}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x9dc7eb}from'@univerjs-pro/ink';import{Tools as _0x216c7b,generateRandomId as _0x21ad10}from'@univerjs/core';import{FEnum as _0x4e0eac}from'@univerjs/core/facade';var o=class extends _0x4d04e6{[_0x38e767(0x20a)](_0x5e04aa){const _0x53a652=_0x38e767;let _0x5cd216=s(_0x5e04aa);return _0x5cd216&&this['_addElement'](_0x5cd216,{'insertIndex':_0x5e04aa[_0x53a652(0x1ff)]})?_0x5cd216:null;}[_0x38e767(0x1e4)](){const _0x21e82e=_0x38e767;return this[_0x21e82e(0x1e7)]({'elementType':_0x2672a7[_0x21e82e(0x1f5)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x21e82e(0x1f2)](p);}};function s(_0x2b1ee7,_0x571c46){const _0x4a2049=_0x38e767;if(!l(_0x2b1ee7[_0x4a2049(0x212)])||_0x2b1ee7[_0x4a2049(0x20f)]!==void 0x0&&!l(_0x2b1ee7[_0x4a2049(0x20f)])||!u(_0x2b1ee7[_0x4a2049(0x1e9)]))return null;let _0x52a34f=_0x2b1ee7['parentId']??(_0x571c46==null?void 0x0:_0x571c46[_0x4a2049(0x1fd)]),_0x4445fd=_0x216c7b[_0x4a2049(0x20b)](_0x2b1ee7[_0x4a2049(0x212)]),_0x12f08d=_0x9dc7eb({'model':_0x4445fd,'style':_0x2b1ee7['style'],'tool':_0x2b1ee7[_0x4a2049(0x218)],'sourceModel':_0x2b1ee7[_0x4a2049(0x20f)]?_0x216c7b[_0x4a2049(0x20b)](_0x2b1ee7[_0x4a2049(0x20f)]):_0x4445fd}),_0x4be3e7=d(_0x571c46==null?void 0x0:_0x571c46[_0x4a2049(0x1fb)]);return{'id':(_0x571c46==null?void 0x0:_0x571c46['id'])??_0x2b1ee7['id']??_0x21ad10(0x6),'type':_0x2672a7[_0x4a2049(0x1f5)],'transform':_0x12f08d['transform'],'shapeData':_0x12f08d[_0x4a2049(0x1fc)],'parentId':_0x52a34f??void 0x0,'laneId':_0x2b1ee7[_0x4a2049(0x1ec)]===void 0x0?_0x571c46==null?void 0x0:_0x571c46[_0x4a2049(0x1ec)]:_0x2b1ee7[_0x4a2049(0x1ec)],'custom':{..._0x4be3e7,'ink':_0x12f08d[_0x4a2049(0x206)]}};}function c(_0xf4ae57){const _0x11a7fa=_0x38e767;return Number['isFinite'](_0xf4ae57['x'])&&Number[_0x11a7fa(0x208)](_0xf4ae57['y']);}function l(_0x47d13e){const _0x30167b=_0x38e767;if(_0x47d13e[_0x30167b(0x1ea)]===_0x30167b(0x1f9)){let _0x110e4e=new Set();return _0x47d13e[_0x30167b(0x1ef)][_0x30167b(0x20c)]>=(_0x47d13e['closed']?0x3:0x2)&&_0x47d13e[_0x30167b(0x1ef)][_0x30167b(0x202)](_0x11fede=>{const _0x4775df=_0x30167b;let _0x459245=_0x11fede['id'][_0x4775df(0x216)]()[_0x4775df(0x20c)]>0x0&&!_0x110e4e['has'](_0x11fede['id'])&&c(_0x11fede)&&(!_0x11fede['in']||c(_0x11fede['in']))&&(!_0x11fede['out']||c(_0x11fede[_0x4775df(0x1fa)]));return _0x110e4e[_0x4775df(0x1e8)](_0x11fede['id']),_0x459245;});}return _0x47d13e[_0x30167b(0x20e)][_0x30167b(0x20c)]>=0x2&&_0x47d13e[_0x30167b(0x20e)][_0x30167b(0x202)](_0x493021=>c(_0x493021)&&Number['isFinite'](_0x493021['t'])&&(_0x493021[_0x30167b(0x1f0)]===void 0x0||Number[_0x30167b(0x208)](_0x493021[_0x30167b(0x1f0)])))&&Number[_0x30167b(0x208)](_0x47d13e[_0x30167b(0x214)])&&_0x47d13e['width']>0x0&&Number[_0x30167b(0x208)](_0x47d13e['opacity'])&&_0x47d13e[_0x30167b(0x213)]>=0x0&&_0x47d13e[_0x30167b(0x213)]<=0x1;}function u(_0x1195fd){const _0x24a767=_0x38e767;return _0x1195fd===void 0x0||(_0x1195fd[_0x24a767(0x214)]===void 0x0||Number[_0x24a767(0x208)](_0x1195fd[_0x24a767(0x214)])&&_0x1195fd[_0x24a767(0x214)]>0x0)&&(_0x1195fd[_0x24a767(0x213)]===void 0x0||Number['isFinite'](_0x1195fd[_0x24a767(0x213)])&&_0x1195fd[_0x24a767(0x213)]>=0x0&&_0x1195fd['opacity']<=0x1);}function d(_0x1358ee){const _0x5e8128=_0x38e767;return _0x1358ee&&typeof _0x1358ee==_0x5e8128(0x207)&&!Array[_0x5e8128(0x1e5)](_0x1358ee)?_0x1358ee:{};}function _0x54d9(){const _0xcaac2d=['BoardInkPointType','tool','BoardInkHandleKind','getInks','isArray','1394910SrBWax','findElements','add','style','kind','467744WNgsJS','laneId','smooth','free','anchors','pressure','corner','filter','symmetric','15978ywQKCa','Shape','BoardInkTool','type','4648ZSUphl','pen','out','custom','shapeData','parentId','version','insertIndex','brush','552414GQoaOU','every','287XXzGaM','10FSpjzl','35bksBKH','ink','object','isFinite','anchor','insertInk','deepClone','length','37244ncpRLq','points','sourceModel','extend','299012ihmucV','model','opacity','width','highlighter','trim'];_0x54d9=function(){return _0xcaac2d;};return _0x54d9();}function f(_0x30c794){const _0x1f5726=_0x38e767;let _0x4cb250=d(_0x30c794[_0x1f5726(0x1fb)])[_0x1f5726(0x206)];if(!_0x4cb250||typeof _0x4cb250!=_0x1f5726(0x207)||Array[_0x1f5726(0x1e5)](_0x4cb250))return null;let _0x7fd6e8=_0x4cb250;return _0x7fd6e8[_0x1f5726(0x1fe)]===0x1&&_0x7fd6e8['sourceModel']&&typeof _0x7fd6e8[_0x1f5726(0x20f)]=='object'?_0x7fd6e8:null;}function p(_0x33f468){const _0x22c891=_0x38e767;return _0x33f468[_0x22c891(0x1f7)]===_0x2672a7['Shape']&&!!f(_0x33f468);}_0x4d04e6[_0x38e767(0x210)](o);const m={'Pen':_0x38e767(0x1f9),'Brush':_0x38e767(0x200),'Highlighter':_0x38e767(0x215)},h={'Corner':_0x38e767(0x1f1),'Smooth':_0x38e767(0x1ed),'Symmetric':_0x38e767(0x1f3),'Free':_0x38e767(0x1ee)},g={'Anchor':_0x38e767(0x209),'In':'in','Out':_0x38e767(0x1fa)};var _=class extends _0x4e0eac{get[_0x38e767(0x1f6)](){return m;}get[_0x38e767(0x217)](){return h;}get[_0x38e767(0x219)](){return g;}};_0x4e0eac[_0x38e767(0x210)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4b144b=_0xa6e8;(function(_0x2a1230,_0x39b6f6){const _0x1a5676=_0xa6e8,_0x175688=_0x2a1230();while(!![]){try{const _0x3f02e8=-parseInt(_0x1a5676(0xc3))/0x1*(-parseInt(_0x1a5676(0x79))/0x2)+parseInt(_0x1a5676(0x91))/0x3+parseInt(_0x1a5676(0x9b))/0x4*(-parseInt(_0x1a5676(0xaa))/0x5)+parseInt(_0x1a5676(0xad))/0x6*(-parseInt(_0x1a5676(0xa0))/0x7)+parseInt(_0x1a5676(0x85))/0x8+-parseInt(_0x1a5676(0xbd))/0x9*(parseInt(_0x1a5676(0x99))/0xa)+parseInt(_0x1a5676(0x8e))/0xb;if(_0x3f02e8===_0x39b6f6)break;else _0x175688['push'](_0x175688['shift']());}catch(_0x27b4d0){_0x175688['push'](_0x175688['shift']());}}}(_0x5b48,0xdd1e3));import{ShapeFillEnum as _0x44a149,ShapeLineCapEnum as _0x16f41b,ShapeLineJoinEnum as _0x91310c,ShapeLineTypeEnum as _0x1adfb6,ShapeTypeEnum as _0x55f3a7}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5be20a}from'@univerjs-pro/license';import{CommandType as _0x12267a,DependentOn as _0xdb0733,ICommandService as _0x42e8fe,IConfigService as _0x559208,Inject as _0x4c7430,Injector as _0x3cafb4,Plugin as _0x5aaff8,UniverInstanceType as _0x307cd7,createIdentifier as _0x2b9493,merge as _0x2c6874,toDisposable as _0x309fee}from'@univerjs/core';const g=0.0001;function _(_0x4244c9){return{'x':_0x4244c9['x'],'y':_0x4244c9['y']};}function v(_0x21d004){const _0x2f7f4b=_0xa6e8;return{..._0x21d004,'in':_0x21d004['in']?_(_0x21d004['in']):void 0x0,'out':_0x21d004[_0x2f7f4b(0x84)]?_(_0x21d004['out']):void 0x0};}function y(_0x33ee76){const _0x4909da=_0xa6e8;return{'kind':'pen','closed':_0x33ee76[_0x4909da(0x89)],'anchors':_0x33ee76[_0x4909da(0xae)][_0x4909da(0x86)](v)};}function b(_0x1e1978,_0x1da082,_0x2addd3){return{'x':_0x1e1978['x']+(_0x1da082['x']-_0x1e1978['x'])*_0x2addd3,'y':_0x1e1978['y']+(_0x1da082['y']-_0x1e1978['y'])*_0x2addd3};}function x(_0x3e455d,_0x43cf78){return Math['hypot'](_0x3e455d['x']-_0x43cf78['x'],_0x3e455d['y']-_0x43cf78['y']);}function S(_0x48dc8f){const _0x595ecb=_0xa6e8;let _0x2f8d1c=Math[_0x595ecb(0xa1)](_0x48dc8f['x'],_0x48dc8f['y']);return _0x2f8d1c<g?{'x':0x1,'y':0x0}:{'x':_0x48dc8f['x']/_0x2f8d1c,'y':_0x48dc8f['y']/_0x2f8d1c};}function C(_0x708df6,_0x3b9637,_0x18a5fa=x(_0x708df6,_0x3b9637)){let _0x2416fe=S({'x':_0x708df6['x']-_0x3b9637['x'],'y':_0x708df6['y']-_0x3b9637['y']});return{'x':_0x708df6['x']+_0x2416fe['x']*_0x18a5fa,'y':_0x708df6['y']+_0x2416fe['y']*_0x18a5fa};}function w(_0x3096fc,_0x18c15e){const _0x5beac4=_0xa6e8;let {anchors:_0x15474b}=_0x3096fc;return _0x15474b[_0x5beac4(0xab)]<0x2||_0x18c15e<0x0?null:_0x18c15e<_0x15474b[_0x5beac4(0xab)]-0x1?{'startIndex':_0x18c15e,'endIndex':_0x18c15e+0x1,'start':_0x15474b[_0x18c15e],'end':_0x15474b[_0x18c15e+0x1]}:_0x3096fc[_0x5beac4(0x89)]&&_0x18c15e===_0x15474b['length']-0x1?{'startIndex':_0x15474b[_0x5beac4(0xab)]-0x1,'endIndex':0x0,'start':_0x15474b[_0x15474b[_0x5beac4(0xab)]-0x1],'end':_0x15474b[0x0]}:null;}function T(_0x3f8dbe,_0x4e1269){const _0x328447=_0xa6e8;let _0x3af9eb=w(_0x3f8dbe,_0x4e1269);return _0x3af9eb?[_0x3af9eb[_0x328447(0xb4)],_0x3af9eb[_0x328447(0xb4)][_0x328447(0x84)]??_0x3af9eb[_0x328447(0xb4)],_0x3af9eb['end']['in']??_0x3af9eb['end'],_0x3af9eb['end']]:null;}function te(_0x7502a4,_0x2cfa0c){const _0x3f967b=_0xa6e8;return _0x2cfa0c===_0x3f967b(0x75)?_0x7502a4:_0x7502a4[_0x2cfa0c]??null;}function E(_0x257782,_0x1652f8,_0x1609f5){const _0x5b1a51=_0xa6e8;return _0x1609f5===_0x5b1a51(0x75)||_0x257782['closed']?!0x0:_0x1609f5==='in'?_0x1652f8>0x0:_0x1652f8<_0x257782[_0x5b1a51(0xae)]['length']-0x1;}function D(_0x10fb7e,_0x3ab2d1){let [_0x658ce3,_0x52bbad,_0x339528,_0x5c10ac]=_0x10fb7e,_0x5eeeec=b(_0x658ce3,_0x52bbad,_0x3ab2d1),_0x648467=b(_0x52bbad,_0x339528,_0x3ab2d1),_0x55b2d1=b(_0x339528,_0x5c10ac,_0x3ab2d1);return b(b(_0x5eeeec,_0x648467,_0x3ab2d1),b(_0x648467,_0x55b2d1,_0x3ab2d1),_0x3ab2d1);}function ne(_0x1b1c60,_0x149d2e){let [_0x16613b,_0x2060ac,_0x3e4b01,_0x1142bc]=_0x1b1c60,_0x8c15e1=b(_0x16613b,_0x2060ac,_0x149d2e),_0x14d81e=b(_0x2060ac,_0x3e4b01,_0x149d2e),_0x1bce4b=b(_0x3e4b01,_0x1142bc,_0x149d2e),_0x55935d=b(_0x8c15e1,_0x14d81e,_0x149d2e),_0x278c49=b(_0x14d81e,_0x1bce4b,_0x149d2e),_0x204881=b(_0x55935d,_0x278c49,_0x149d2e);return{'left':[_0x16613b,_0x8c15e1,_0x55935d,_0x204881],'right':[_0x204881,_0x278c49,_0x1bce4b,_0x1142bc]};}function _0xa6e8(_0x4c6af2,_0x481f79){_0x4c6af2=_0x4c6af2-0x6c;const _0x5b48bd=_0x5b48();let _0xa6e8b5=_0x5b48bd[_0x4c6af2];return _0xa6e8b5;}function O(_0xc66f48,_0x34747c,_0x598199){const _0x1c1541=_0xa6e8;let _0x9f2e71=_0x598199['x']-_0x34747c['x'],_0x51ea26=_0x598199['y']-_0x34747c['y'],_0x5ecf89=_0x9f2e71*_0x9f2e71+_0x51ea26*_0x51ea26,_0x278aa6=_0x5ecf89<=g?0x0:Math[_0x1c1541(0x71)](0x0,Math[_0x1c1541(0xb2)](0x1,((_0xc66f48['x']-_0x34747c['x'])*_0x9f2e71+(_0xc66f48['y']-_0x34747c['y'])*_0x51ea26)/_0x5ecf89)),_0x41d46a={'x':_0x34747c['x']+_0x9f2e71*_0x278aa6,'y':_0x34747c['y']+_0x51ea26*_0x278aa6};return{'point':_0x41d46a,'ratio':_0x278aa6,'distance':x(_0xc66f48,_0x41d46a)};}function re(_0x5ce28,_0x205545,_0x2b7952){const _0x481bb0=_0xa6e8;return O(_0x5ce28,_0x205545,_0x2b7952)[_0x481bb0(0xa7)]**0x2;}function k(_0x9e9a64,_0x5b2696){const _0x5b725c=_0xa6e8;if(_0x9e9a64['length']<=0x2)return _0x9e9a64[_0x5b725c(0x86)](_);let _0x4448ba=0x0,_0x31bdbc=0x0,_0x12d6df=_0x9e9a64[0x0],_0x489cb3=_0x9e9a64[_0x9e9a64[_0x5b725c(0xab)]-0x1],_0x20478a=_0x5b2696*_0x5b2696;for(let _0x12106f=0x1;_0x12106f<_0x9e9a64[_0x5b725c(0xab)]-0x1;_0x12106f++){let _0x1720f8=re(_0x9e9a64[_0x12106f],_0x12d6df,_0x489cb3);_0x1720f8>_0x4448ba&&(_0x4448ba=_0x1720f8,_0x31bdbc=_0x12106f);}if(_0x4448ba<=_0x20478a)return[_(_0x12d6df),_(_0x489cb3)];let _0x93676d=k(_0x9e9a64['slice'](0x0,_0x31bdbc+0x1),_0x5b2696),_0x5ea466=k(_0x9e9a64['slice'](_0x31bdbc),_0x5b2696);return[..._0x93676d['slice'](0x0,-0x1),..._0x5ea466];}function ie(_0x152fa7,_0x361223){let _0x17e805=_0x152fa7[_0x361223],_0x174a9a=_0x152fa7[_0x361223+0x1],_0x43da0f=_0x152fa7[_0x361223-0x1]??_0x17e805;return{'x':_0x17e805['x']+(_0x174a9a['x']-_0x43da0f['x'])/0x6,'y':_0x17e805['y']+(_0x174a9a['y']-_0x43da0f['y'])/0x6};}function A(_0x3ad810,_0x311c21){let _0x157760=_0x3ad810[_0x311c21],_0x5aee88=_0x3ad810[_0x311c21-0x1],_0xc75b2f=_0x3ad810[_0x311c21+0x1]??_0x157760;return{'x':_0x157760['x']-(_0xc75b2f['x']-_0x5aee88['x'])/0x6,'y':_0x157760['y']-(_0xc75b2f['y']-_0x5aee88['y'])/0x6};}function j(_0x41b2f0,_0x5f29a6){const _0xb9a749=_0xa6e8;let _0x37d3d8=_0x41b2f0[_0xb9a749(0xae)][_0x5f29a6],_0x18bdaa=_0x41b2f0['anchors'][_0x5f29a6-0x1]??(_0x41b2f0[_0xb9a749(0x89)]?_0x41b2f0[_0xb9a749(0xae)][_0x41b2f0[_0xb9a749(0xae)][_0xb9a749(0xab)]-0x1]:null),_0x4fb97b=_0x41b2f0['anchors'][_0x5f29a6+0x1]??(_0x41b2f0[_0xb9a749(0x89)]?_0x41b2f0['anchors'][0x0]:null),_0x372f85=_0x18bdaa&&_0x4fb97b?S({'x':_0x4fb97b['x']-_0x18bdaa['x'],'y':_0x4fb97b['y']-_0x18bdaa['y']}):_0x4fb97b?S({'x':_0x4fb97b['x']-_0x37d3d8['x'],'y':_0x4fb97b['y']-_0x37d3d8['y']}):_0x18bdaa?S({'x':_0x37d3d8['x']-_0x18bdaa['x'],'y':_0x37d3d8['y']-_0x18bdaa['y']}):{'x':0x1,'y':0x0},_0x4d75ac=_0x18bdaa&&_0x4fb97b?Math[_0xb9a749(0x71)](0x32,x(_0x18bdaa,_0x4fb97b)/0x4):0x32;return{'in':{'x':_0x37d3d8['x']-_0x372f85['x']*_0x4d75ac,'y':_0x37d3d8['y']-_0x372f85['y']*_0x4d75ac},'out':{'x':_0x37d3d8['x']+_0x372f85['x']*_0x4d75ac,'y':_0x37d3d8['y']+_0x372f85['y']*_0x4d75ac}};}function M(_0x4a2393,_0x3bef0c){const _0xd99315=_0xa6e8;let _0x1db5e2=_0x4a2393[_0x3bef0c],_0x4d2cfc=_0x3bef0c==='in'?_0xd99315(0x84):'in',_0x133777=_0x4a2393[_0x4d2cfc];if(_0x1db5e2){if(_0x4a2393['pointType']===_0xd99315(0xc4)){_0x4a2393[_0x4d2cfc]=C(_0x4a2393,_0x1db5e2);return;}_0x4a2393[_0xd99315(0xb5)]===_0xd99315(0x6c)&&(_0x4a2393[_0x4d2cfc]=C(_0x4a2393,_0x1db5e2,_0x133777?x(_0x4a2393,_0x133777):x(_0x4a2393,_0x1db5e2)));}}function ae(_0x4379d2,_0x1c426a){const _0x28d8ef=_0xa6e8;let _0x3cdce5=y(_0x4379d2);return!_0x1c426a||_0x3cdce5[_0x28d8ef(0x89)]||_0x3cdce5[_0x28d8ef(0xae)][_0x28d8ef(0xab)]===0x0||_0x3cdce5['anchors'][_0x28d8ef(0x7c)]({'id':'__ink-preview-anchor__','x':_0x1c426a['x'],'y':_0x1c426a['y'],'pointType':_0x28d8ef(0xa3)}),_0x3cdce5;}function oe(_0x3629c8,_0x36b824={}){const _0xa05bdb=_0xa6e8;let _0xc5962d=Math[_0xa05bdb(0x71)](0x0,_0x36b824[_0xa05bdb(0x82)]??Math[_0xa05bdb(0x71)](0x4,_0x3629c8[_0xa05bdb(0x9e)]*0.35)),_0x2022ed=_0x36b824['createId']??(_0x439bc3=>'ink-centerline-'+_0x439bc3),_0x12b038=k(_0x3629c8[_0xa05bdb(0x95)],_0xc5962d),_0x5e348e=_0x12b038[_0xa05bdb(0x86)]((_0x15b5fc,_0xb0f2f0)=>({'id':_0x2022ed(_0xb0f2f0),'x':_0x15b5fc['x'],'y':_0x15b5fc['y'],'pointType':'free'}));for(let _0x369496=0x0;_0x369496<_0x5e348e[_0xa05bdb(0xab)]-0x1;_0x369496++)_0x5e348e[_0x369496][_0xa05bdb(0x84)]=ie(_0x12b038,_0x369496),_0x5e348e[_0x369496+0x1]['in']=A(_0x12b038,_0x369496+0x1);return{'kind':_0xa05bdb(0x7e),'closed':!0x1,'anchors':_0x5e348e};}function se(_0x559961,_0x47a700,_0x1e5c53){const _0x19b0f5=_0xa6e8;let _0x24f5d7=null,_0x5ee64c=[_0x19b0f5(0x75),'in',_0x19b0f5(0x84)];return _0x559961['anchors'][_0x19b0f5(0xa9)]((_0xb9551f,_0x369961)=>{const _0x37480d=_0x19b0f5;_0x5ee64c[_0x37480d(0xa9)](_0x9f0abe=>{if(!E(_0x559961,_0x369961,_0x9f0abe))return;let _0x20636a=te(_0xb9551f,_0x9f0abe);if(!_0x20636a)return;let _0x4c15ad=x(_0x47a700,_0x20636a);_0x4c15ad>_0x1e5c53||_0x24f5d7&&_0x4c15ad>=_0x24f5d7['distance']||(_0x24f5d7={'handle':{'kind':_0x9f0abe,'anchorId':_0xb9551f['id']},'point':_(_0x20636a),'distance':_0x4c15ad});});}),_0x24f5d7;}function ce(_0x2b5382,_0x4b5907,_0x45b57f){const _0x551329=_0xa6e8;let _0x160df6=null,_0x1c6e42=_0x2b5382[_0x551329(0x89)]?_0x2b5382[_0x551329(0xae)]['length']:Math[_0x551329(0x71)](0x0,_0x2b5382[_0x551329(0xae)][_0x551329(0xab)]-0x1);for(let _0x19edd8=0x0;_0x19edd8<_0x1c6e42;_0x19edd8++){let _0x1a9c5c=T(_0x2b5382,_0x19edd8);if(!_0x1a9c5c)continue;let _0x40ac56=D(_0x1a9c5c,0x0);for(let _0x29d6d0=0x1;_0x29d6d0<=0x20;_0x29d6d0++){let _0x31bba2=D(_0x1a9c5c,_0x29d6d0/0x20),_0x34dff3=O(_0x4b5907,_0x40ac56,_0x31bba2),_0x66749=(_0x29d6d0-0x1+_0x34dff3[_0x551329(0x8a)])/0x20;(!_0x160df6||_0x34dff3['distance']<_0x160df6[_0x551329(0xa7)])&&(_0x160df6={'segmentIndex':_0x19edd8,'t':_0x66749,'point':_0x34dff3[_0x551329(0xac)],'distance':_0x34dff3[_0x551329(0xa7)]}),_0x40ac56=_0x31bba2;}}return _0x160df6&&_0x160df6[_0x551329(0xa7)]<=_0x45b57f?_0x160df6:null;}function le(_0x54cf5a,_0x1d8fa6,_0x234861){const _0x6321f2=_0xa6e8;let _0x251b04=y(_0x54cf5a),_0x2db2a2=w(_0x251b04,_0x1d8fa6[_0x6321f2(0x73)]),_0x3ef9c9=T(_0x251b04,_0x1d8fa6[_0x6321f2(0x73)]);if(!_0x2db2a2||!_0x3ef9c9)return _0x251b04;let _0x153c36=ne(_0x3ef9c9,Math[_0x6321f2(0x71)](0x0,Math[_0x6321f2(0xb2)](0x1,_0x1d8fa6['t']))),_0x5094df={'id':_0x234861(),'x':_0x153c36[_0x6321f2(0xb3)][0x3]['x'],'y':_0x153c36['left'][0x3]['y'],'in':_(_0x153c36[_0x6321f2(0xb3)][0x2]),'out':_(_0x153c36[_0x6321f2(0x81)][0x1]),'pointType':_0x6321f2(0xb8)};return _0x251b04['anchors'][_0x2db2a2['startIndex']][_0x6321f2(0x84)]=_(_0x153c36[_0x6321f2(0xb3)][0x1]),_0x251b04[_0x6321f2(0xae)][_0x2db2a2['endIndex']]['in']=_(_0x153c36[_0x6321f2(0x81)][0x2]),_0x251b04[_0x6321f2(0xae)]['splice'](_0x2db2a2['startIndex']+0x1,0x0,_0x5094df),_0x251b04;}function ue(_0x2e4d6d,_0x284c08){const _0x5bdb71=_0xa6e8;let _0x392943=y(_0x2e4d6d);return _0x392943[_0x5bdb71(0xae)]=_0x392943[_0x5bdb71(0xae)][_0x5bdb71(0x98)](_0x99e245=>_0x99e245['id']!==_0x284c08),_0x392943[_0x5bdb71(0x89)]&&_0x392943[_0x5bdb71(0xae)][_0x5bdb71(0xab)]<0x3&&(_0x392943[_0x5bdb71(0x89)]=!0x1),_0x392943;}function N(_0x121236,_0x3410c8,_0x5e7aeb){const _0x3d1e0f=_0xa6e8;let _0x1dc4cd=y(_0x121236),_0x23f969=_0x1dc4cd[_0x3d1e0f(0xae)][_0x3d1e0f(0x7f)](_0xa9c6f8=>_0xa9c6f8['id']===_0x3410c8),_0x527baa=_0x1dc4cd['anchors'][_0x23f969];if(!_0x527baa)return _0x1dc4cd;if(_0x527baa[_0x3d1e0f(0xb5)]=_0x5e7aeb,_0x5e7aeb===_0x3d1e0f(0xa3))return delete _0x527baa['in'],delete _0x527baa['out'],_0x1dc4cd;let _0x44c50c=j(_0x1dc4cd,_0x23f969);if(_0x527baa['in']=_0x527baa['in']?_(_0x527baa['in']):_0x44c50c['in'],_0x527baa[_0x3d1e0f(0x84)]=_0x527baa['out']?_(_0x527baa[_0x3d1e0f(0x84)]):_0x44c50c[_0x3d1e0f(0x84)],_0x5e7aeb===_0x3d1e0f(0xc4)){let _0x17a71c=Math[_0x3d1e0f(0x71)](x(_0x527baa,_0x527baa['in']),x(_0x527baa,_0x527baa[_0x3d1e0f(0x84)]),0x32),_0x490154=S({'x':_0x527baa[_0x3d1e0f(0x84)]['x']-_0x527baa['x'],'y':_0x527baa[_0x3d1e0f(0x84)]['y']-_0x527baa['y']});_0x527baa[_0x3d1e0f(0x84)]={'x':_0x527baa['x']+_0x490154['x']*_0x17a71c,'y':_0x527baa['y']+_0x490154['y']*_0x17a71c},_0x527baa['in']={'x':_0x527baa['x']-_0x490154['x']*_0x17a71c,'y':_0x527baa['y']-_0x490154['y']*_0x17a71c};}else _0x5e7aeb===_0x3d1e0f(0x6c)&&M(_0x527baa,_0x3d1e0f(0x84));return _0x1dc4cd;}function P(_0x2531db,_0x44a56c){const _0x3e3248=_0xa6e8;let _0x2d75d6=_0x2531db['anchors'][_0x3e3248(0x8d)](_0x2ff419=>_0x2ff419['id']===_0x44a56c),_0x358b30=(_0x2d75d6==null?void 0x0:_0x2d75d6['pointType'])??_0x3e3248(0xa3);return N(_0x2531db,_0x44a56c,_0x358b30===_0x3e3248(0xa3)?_0x3e3248(0x6c):_0x358b30===_0x3e3248(0x6c)?'symmetric':_0x358b30==='symmetric'?_0x3e3248(0xb8):'corner');}function F(_0x2d1047,_0x544e0c,_0xfc8ada){const _0x2355e6=_0xa6e8;let _0x4cc9e3=y(_0x2d1047),_0x23be65=_0x4cc9e3[_0x2355e6(0xae)][_0x2355e6(0x8d)](_0x611f7f=>_0x611f7f['id']===_0x544e0c[_0x2355e6(0xb1)]);if(!_0x23be65)return _0x4cc9e3;if(_0x544e0c[_0x2355e6(0x7d)]===_0x2355e6(0x75)){let _0x563207={'x':_0xfc8ada['x']-_0x23be65['x'],'y':_0xfc8ada['y']-_0x23be65['y']};return _0x23be65['x']=_0xfc8ada['x'],_0x23be65['y']=_0xfc8ada['y'],_0x23be65['in']&&={'x':_0x23be65['in']['x']+_0x563207['x'],'y':_0x23be65['in']['y']+_0x563207['y']},_0x23be65[_0x2355e6(0x84)]&&={'x':_0x23be65['out']['x']+_0x563207['x'],'y':_0x23be65[_0x2355e6(0x84)]['y']+_0x563207['y']},_0x4cc9e3;}return _0x23be65[_0x544e0c[_0x2355e6(0x7d)]]=_(_0xfc8ada),_0x23be65[_0x2355e6(0xb5)]===_0x2355e6(0xa3)&&(_0x23be65[_0x2355e6(0xb5)]='free'),M(_0x23be65,_0x544e0c[_0x2355e6(0x7d)]),_0x4cc9e3;}const I=1e-9;function L(_0x2a8fa1){const _0x1bf56f=_0xa6e8;let _0x2b4c95=Math[_0x1bf56f(0x74)](_0x2a8fa1*0x2710)/0x2710;return Object['is'](_0x2b4c95,-0x0)?'0':String(_0x2b4c95);}function R(_0x2daf38){return L(_0x2daf38['x'])+'\x20'+L(_0x2daf38['y']);}function z(_0x172cc6,_0x4605c2){return{'x':_0x172cc6['x']-_0x4605c2['x'],'y':_0x172cc6['y']-_0x4605c2['y']};}function B(_0x2dcfaf,_0x362f06,_0x2c99a3,_0x182b2f,_0x5c350f){let _0x4037ad=0x1-_0x5c350f;return{'x':_0x4037ad*_0x4037ad*_0x4037ad*_0x2dcfaf['x']+0x3*_0x4037ad*_0x4037ad*_0x5c350f*_0x362f06['x']+0x3*_0x4037ad*_0x5c350f*_0x5c350f*_0x2c99a3['x']+_0x5c350f*_0x5c350f*_0x5c350f*_0x182b2f['x'],'y':_0x4037ad*_0x4037ad*_0x4037ad*_0x2dcfaf['y']+0x3*_0x4037ad*_0x4037ad*_0x5c350f*_0x362f06['y']+0x3*_0x4037ad*_0x5c350f*_0x5c350f*_0x2c99a3['y']+_0x5c350f*_0x5c350f*_0x5c350f*_0x182b2f['y']};}function V(_0x1fd8e7,_0x439b6d,_0x46c724,_0x453352){const _0xc2e663=_0xa6e8;let _0x4de1d2=-_0x1fd8e7+0x3*_0x439b6d-0x3*_0x46c724+_0x453352,_0x3606a9=0x3*_0x1fd8e7-0x6*_0x439b6d+0x3*_0x46c724,_0x2b73ba=-0x3*_0x1fd8e7+0x3*_0x439b6d,_0xcb7972=[];if(Math[_0xc2e663(0x96)](_0x4de1d2)<I){if(Math['abs'](_0x3606a9)<I)return _0xcb7972;let _0x192e2b=-_0x2b73ba/(0x2*_0x3606a9);return _0x192e2b>0x0&&_0x192e2b<0x1&&_0xcb7972['push'](_0x192e2b),_0xcb7972;}let _0x52dfec=_0x3606a9*_0x3606a9-0x3*_0x4de1d2*_0x2b73ba;if(_0x52dfec<0x0)return _0xcb7972;let _0xc68246=Math[_0xc2e663(0x97)](Math[_0xc2e663(0x71)](0x0,_0x52dfec)),_0x3df083=(-_0x3606a9+_0xc68246)/(0x3*_0x4de1d2),_0x3e6a57=(-_0x3606a9-_0xc68246)/(0x3*_0x4de1d2);return _0x3df083>0x0&&_0x3df083<0x1&&_0xcb7972[_0xc2e663(0x7c)](_0x3df083),_0x3e6a57>0x0&&_0x3e6a57<0x1&&Math[_0xc2e663(0x96)](_0x3e6a57-_0x3df083)>I&&_0xcb7972[_0xc2e663(0x7c)](_0x3e6a57),_0xcb7972;}function H(_0xcefa55,_0x999634,_0x49742d,_0x3e1ead,_0x501b2e){const _0x1fd5a4=_0xa6e8;_0xcefa55[_0x1fd5a4(0x7c)](_0x999634,_0x501b2e),new Set([...V(_0x999634['x'],_0x49742d['x'],_0x3e1ead['x'],_0x501b2e['x']),...V(_0x999634['y'],_0x49742d['y'],_0x3e1ead['y'],_0x501b2e['y'])])[_0x1fd5a4(0xa9)](_0x7740c1=>{const _0x33457f=_0x1fd5a4;_0xcefa55[_0x33457f(0x7c)](B(_0x999634,_0x49742d,_0x3e1ead,_0x501b2e,_0x7740c1));});}function U(_0x3a410b){const _0x1eaf77=_0xa6e8;let _0x343701=_0x3a410b[_0x1eaf77(0xae)];if(_0x343701[_0x1eaf77(0xab)]<=0x1)return _0x343701;let _0x3cebf3=[];for(let _0x23d098=0x1;_0x23d098<_0x343701[_0x1eaf77(0xab)];_0x23d098++){let _0x289780=_0x343701[_0x23d098-0x1],_0x1261ad=_0x343701[_0x23d098];H(_0x3cebf3,_0x289780,_0x289780['out']??_0x289780,_0x1261ad['in']??_0x1261ad,_0x1261ad);}if(_0x3a410b[_0x1eaf77(0x89)]&&_0x343701['length']>0x1){let _0x523b9a=_0x343701[_0x343701[_0x1eaf77(0xab)]-0x1],_0x3cd466=_0x343701[0x0];H(_0x3cebf3,_0x523b9a,_0x523b9a[_0x1eaf77(0x84)]??_0x523b9a,_0x3cd466['in']??_0x3cd466,_0x3cd466);}return _0x3cebf3;}function de(_0xd4d8e5){const _0x4f95fe=_0xa6e8;let _0x52ab0c=_0xd4d8e5[_0x4f95fe(0x95)];if(_0x52ab0c[_0x4f95fe(0xab)]<=0x1)return _0x52ab0c;let _0x510fe5=[];for(let _0x57cef9=0x0;_0x57cef9<_0x52ab0c[_0x4f95fe(0xab)]-0x1;_0x57cef9++){let _0x54c8f1=_0x52ab0c[_0x57cef9],_0x1fce4c=_0x52ab0c[_0x57cef9+0x1],_0x158d07=_0x52ab0c[_0x57cef9-0x1]??_0x54c8f1,_0x1e7ca8=_0x52ab0c[_0x57cef9+0x2]??_0x1fce4c;H(_0x510fe5,_0x54c8f1,{'x':_0x54c8f1['x']+(_0x1fce4c['x']-_0x158d07['x'])/0x6,'y':_0x54c8f1['y']+(_0x1fce4c['y']-_0x158d07['y'])/0x6},{'x':_0x1fce4c['x']-(_0x1e7ca8['x']-_0x54c8f1['x'])/0x6,'y':_0x1fce4c['y']-(_0x1e7ca8['y']-_0x54c8f1['y'])/0x6},_0x1fce4c);}return _0x510fe5;}function fe(_0x3f83fc){const _0x5a6c0d=_0xa6e8;return _0x3f83fc[_0x5a6c0d(0x7d)]===_0x5a6c0d(0x7e)?U(_0x3f83fc):de(_0x3f83fc);}function W(_0x3c69e3){const _0x1fabc5=_0xa6e8;let _0x3b9b72=Math[_0x1fabc5(0x74)](_0x3c69e3*0x2710)/0x2710;return Object['is'](_0x3b9b72,-0x0)?0x0:_0x3b9b72;}function G(_0x19f094){const _0x1d802a=_0xa6e8;let _0x27edcd=fe(_0x19f094);if(_0x27edcd[_0x1d802a(0xab)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x2c75d2=Math[_0x1d802a(0xb2)](..._0x27edcd[_0x1d802a(0x86)](_0x77b9bb=>_0x77b9bb['x'])),_0x5771bd=Math[_0x1d802a(0xb2)](..._0x27edcd[_0x1d802a(0x86)](_0x4de94d=>_0x4de94d['y'])),_0x5ed010=Math[_0x1d802a(0x71)](..._0x27edcd['map'](_0x2dce57=>_0x2dce57['x'])),_0x4f621b=Math[_0x1d802a(0x71)](..._0x27edcd['map'](_0x553ef3=>_0x553ef3['y']));return{'left':W(_0x2c75d2),'top':W(_0x5771bd),'width':W(Math[_0x1d802a(0x71)](0x1,_0x5ed010-_0x2c75d2)),'height':W(Math[_0x1d802a(0x71)](0x1,_0x4f621b-_0x5771bd))};}function pe(_0x5afb8a,_0x679f8b){const _0x2a9398=_0xa6e8;let _0xa7ed8d=_0x5afb8a['anchors'];if(_0xa7ed8d[_0x2a9398(0xab)]===0x0)return'';let _0x25ff72=['M\x20'+R(z(_0xa7ed8d[0x0],_0x679f8b))];for(let _0xce010f=0x1;_0xce010f<_0xa7ed8d['length'];_0xce010f++){let _0x3a3a84=_0xa7ed8d[_0xce010f-0x1],_0x4c4095=_0xa7ed8d[_0xce010f],_0x30ec4c=_0x3a3a84[_0x2a9398(0x84)]??_0x3a3a84,_0x8b2a41=_0x4c4095['in']??_0x4c4095;_0x25ff72[_0x2a9398(0x7c)]('C\x20'+R(z(_0x30ec4c,_0x679f8b))+'\x20'+R(z(_0x8b2a41,_0x679f8b))+'\x20'+R(z(_0x4c4095,_0x679f8b)));}if(_0x5afb8a[_0x2a9398(0x89)]&&_0xa7ed8d[_0x2a9398(0xab)]>0x1){let _0x35bf97=_0xa7ed8d[_0xa7ed8d['length']-0x1],_0x5a3504=_0xa7ed8d[0x0],_0x76d188=_0x35bf97[_0x2a9398(0x84)]??_0x35bf97,_0x1cf5db=_0x5a3504['in']??_0x5a3504;_0x25ff72[_0x2a9398(0x7c)]('C\x20'+R(z(_0x76d188,_0x679f8b))+'\x20'+R(z(_0x1cf5db,_0x679f8b))+'\x20'+R(z(_0x5a3504,_0x679f8b))),_0x25ff72[_0x2a9398(0x7c)]('Z');}return _0x25ff72[_0x2a9398(0x72)]('\x20');}function me(_0x145651,_0x307647){const _0x42b032=_0xa6e8;let _0x3dcd33=_0x145651['points'][_0x42b032(0x86)](_0xb6ffcb=>z(_0xb6ffcb,_0x307647));if(_0x3dcd33[_0x42b032(0xab)]===0x0)return'';if(_0x3dcd33[_0x42b032(0xab)]===0x1)return'M\x20'+R(_0x3dcd33[0x0]);let _0x1033d0=['M\x20'+R(_0x3dcd33[0x0])];for(let _0x14a3f3=0x0;_0x14a3f3<_0x3dcd33[_0x42b032(0xab)]-0x1;_0x14a3f3++){let _0x34f98c=_0x3dcd33[_0x14a3f3],_0x28b907=_0x3dcd33[_0x14a3f3+0x1],_0x32a1a3=_0x3dcd33[_0x14a3f3-0x1]??_0x34f98c,_0x4e9d01=_0x3dcd33[_0x14a3f3+0x2]??_0x28b907,_0x5e70c7={'x':_0x34f98c['x']+(_0x28b907['x']-_0x32a1a3['x'])/0x6,'y':_0x34f98c['y']+(_0x28b907['y']-_0x32a1a3['y'])/0x6},_0x3dd837={'x':_0x28b907['x']-(_0x4e9d01['x']-_0x34f98c['x'])/0x6,'y':_0x28b907['y']-(_0x4e9d01['y']-_0x34f98c['y'])/0x6};_0x1033d0['push']('C\x20'+R(_0x5e70c7)+'\x20'+R(_0x3dd837)+'\x20'+R(_0x28b907));}return _0x1033d0['join']('\x20');}function he(_0xd7c84d,_0x431852){const _0x58ee8e=_0xa6e8;return _0xd7c84d[_0x58ee8e(0x7d)]===_0x58ee8e(0x7e)?pe(_0xd7c84d,_0x431852):me(_0xd7c84d,_0x431852);}function ge(_0x4d23d9,_0x255e18){const _0x5af349=_0xa6e8;return _0x255e18!=null&&_0x255e18['color']?_0x255e18[_0x5af349(0x9d)]:_0x4d23d9[_0x5af349(0x7d)]==='pen'?_0x5af349(0x76):_0x4d23d9[_0x5af349(0x9d)];}function _e(_0xac9607,_0x5a5b79){const _0xe23c66=_0xa6e8;return(_0x5a5b79==null?void 0x0:_0x5a5b79['width'])===void 0x0?_0xac9607['kind']===_0xe23c66(0x7e)?0x2:_0xac9607[_0xe23c66(0x9e)]:_0x5a5b79[_0xe23c66(0x9e)];}function ve(_0x1ff6f6,_0x3cd9be){const _0x3504cf=_0xa6e8;return(_0x3cd9be==null?void 0x0:_0x3cd9be[_0x3504cf(0xa8)])===void 0x0?_0x1ff6f6[_0x3504cf(0x7d)]==='pen'?void 0x0:_0x1ff6f6[_0x3504cf(0xa8)]:_0x3cd9be[_0x3504cf(0xa8)];}function ye(_0x4b3432,_0x4834e4){const _0x37b7c3=_0xa6e8;let _0x107ee4=G(_0x4b3432),_0x10ea17=he(_0x4b3432,{'x':_0x107ee4['left'],'y':_0x107ee4['top']}),_0x3e021=_0x4b3432[_0x37b7c3(0x7d)]===_0x37b7c3(0x7e)&&_0x4b3432['closed'],_0x26f87d=_0x4834e4==null?void 0x0:_0x4834e4['fillColor'];return{'shapeType':_0x55f3a7[_0x37b7c3(0xc1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x107ee4[_0x37b7c3(0x9e)],'h':_0x107ee4[_0x37b7c3(0xc0)],'fill':_0x3e021?_0x37b7c3(0xbc):'none','stroke':!0x0,'data':_0x10ea17,'dataArray':be(_0x4b3432,{'x':_0x107ee4[_0x37b7c3(0xb3)],'y':_0x107ee4['top']})}]},'fill':_0x3e021&&_0x26f87d?{'color':_0x26f87d,'fillType':_0x44a149[_0x37b7c3(0xbf)]}:{'fillType':_0x44a149[_0x37b7c3(0x8b)]},'stroke':{'color':ge(_0x4b3432,_0x4834e4),'width':_e(_0x4b3432,_0x4834e4),'opacity':ve(_0x4b3432,_0x4834e4),'lineStrokeType':_0x1adfb6[_0x37b7c3(0xb7)],'capType':_0x16f41b[_0x37b7c3(0x80)],'lineJoinType':_0x91310c[_0x37b7c3(0x80)]}};}function K(_0x1b9ca0,_0x329d51){return{'x':_0x1b9ca0['x']-_0x329d51['x'],'y':_0x1b9ca0['y']-_0x329d51['y']};}function be(_0x46806c,_0xc6f0a9){const _0x1e4b4c=_0xa6e8;if(_0x46806c[_0x1e4b4c(0x7d)]===_0x1e4b4c(0x7e)){let _0x5db4d2=_0x46806c[_0x1e4b4c(0xae)];if(_0x5db4d2['length']===0x0)return[];let _0x2489ff=K(_0x5db4d2[0x0],_0xc6f0a9),_0x188b67=[{'command':'M','points':[_0x2489ff['x'],_0x2489ff['y']]}];for(let _0x6acf4=0x1;_0x6acf4<_0x5db4d2[_0x1e4b4c(0xab)];_0x6acf4++){let _0x456655=_0x5db4d2[_0x6acf4-0x1],_0xcf59e0=_0x5db4d2[_0x6acf4],_0x161716=K(_0x456655[_0x1e4b4c(0x84)]??_0x456655,_0xc6f0a9),_0x304f88=K(_0xcf59e0['in']??_0xcf59e0,_0xc6f0a9),_0x21cde8=K(_0xcf59e0,_0xc6f0a9);_0x188b67['push']({'command':'C','points':[_0x161716['x'],_0x161716['y'],_0x304f88['x'],_0x304f88['y'],_0x21cde8['x'],_0x21cde8['y']]});}if(_0x46806c['closed']&&_0x5db4d2[_0x1e4b4c(0xab)]>0x1){let _0x50979d=_0x5db4d2[_0x5db4d2[_0x1e4b4c(0xab)]-0x1],_0x20a745=_0x5db4d2[0x0],_0x28db01=K(_0x50979d['out']??_0x50979d,_0xc6f0a9),_0x4af0c7=K(_0x20a745['in']??_0x20a745,_0xc6f0a9),_0x52015c=K(_0x20a745,_0xc6f0a9);_0x188b67[_0x1e4b4c(0x7c)]({'command':'C','points':[_0x28db01['x'],_0x28db01['y'],_0x4af0c7['x'],_0x4af0c7['y'],_0x52015c['x'],_0x52015c['y']]}),_0x188b67[_0x1e4b4c(0x7c)]({'command':'z','points':[]});}return _0x188b67;}let _0x4de5c7=_0x46806c[_0x1e4b4c(0x95)][_0x1e4b4c(0x86)](_0x1b930e=>K(_0x1b930e,_0xc6f0a9));if(_0x4de5c7[_0x1e4b4c(0xab)]===0x0)return[];let _0x24ee85=[{'command':'M','points':[_0x4de5c7[0x0]['x'],_0x4de5c7[0x0]['y']]}];for(let _0xdd5641=0x0;_0xdd5641<_0x4de5c7[_0x1e4b4c(0xab)]-0x1;_0xdd5641++){let _0x2d9c8a=_0x4de5c7[_0xdd5641],_0x214f24=_0x4de5c7[_0xdd5641+0x1],_0x1afe45=_0x4de5c7[_0xdd5641-0x1]??_0x2d9c8a,_0x11fb33=_0x4de5c7[_0xdd5641+0x2]??_0x214f24,_0xc2fde6={'x':_0x2d9c8a['x']+(_0x214f24['x']-_0x1afe45['x'])/0x6,'y':_0x2d9c8a['y']+(_0x214f24['y']-_0x1afe45['y'])/0x6},_0x3ed11b={'x':_0x214f24['x']-(_0x11fb33['x']-_0x2d9c8a['x'])/0x6,'y':_0x214f24['y']-(_0x11fb33['y']-_0x2d9c8a['y'])/0x6};_0x24ee85[_0x1e4b4c(0x7c)]({'command':'C','points':[_0xc2fde6['x'],_0xc2fde6['y'],_0x3ed11b['x'],_0x3ed11b['y'],_0x214f24['x'],_0x214f24['y']]});}return _0x24ee85;}function xe(_0x3d5ba3){const _0x3e6d86=_0xa6e8;let {model:_0x19f146,sourceModel:_0x5b03c9=_0x19f146,style:_0x51cf1a}=_0x3d5ba3,_0x85a45e=_0x3d5ba3['tool']??_0x19f146[_0x3e6d86(0x7d)],_0x1c2615=G(_0x19f146),_0x33152b=_0x19f146['kind']==='pen'&&_0x85a45e!=='pen'?_0x19f146:void 0x0;return{'transform':{..._0x1c2615,'rotation':0x0},'shapeData':ye(_0x19f146,_0x51cf1a),'ink':{'version':0x1,'tool':_0x85a45e,'sourceModel':_0x5b03c9,..._0x33152b?{'editModel':_0x33152b}:{},'normalizedBounds':_0x1c2615}};}var Se='@univerjs-pro/ink',Ce=_0x4b144b(0xa5);function q(_0x1facf5){'@babel/helpers - typeof';const _0x570018=_0x4b144b;return q=typeof Symbol==_0x570018(0xba)&&typeof Symbol[_0x570018(0xbe)]==_0x570018(0x7b)?function(_0x3d1981){return typeof _0x3d1981;}:function(_0x5223b3){const _0x5d211b=_0x570018;return _0x5223b3&&typeof Symbol=='function'&&_0x5223b3[_0x5d211b(0xbb)]===Symbol&&_0x5223b3!==Symbol[_0x5d211b(0xaf)]?_0x5d211b(0x7b):typeof _0x5223b3;},q(_0x1facf5);}function we(_0x10985f,_0x14ecdf){const _0x558d0d=_0x4b144b;if(q(_0x10985f)!='object'||!_0x10985f)return _0x10985f;var _0x10ab46=_0x10985f[Symbol[_0x558d0d(0x9c)]];if(_0x10ab46!==void 0x0){var _0x1be331=_0x10ab46['call'](_0x10985f,_0x14ecdf||_0x558d0d(0xa2));if(q(_0x1be331)!=_0x558d0d(0x93))return _0x1be331;throw TypeError(_0x558d0d(0x94));}return(_0x14ecdf===_0x558d0d(0x6d)?String:Number)(_0x10985f);}function J(_0x1da09a){const _0x472dfa=_0x4b144b;var _0x18a3eb=we(_0x1da09a,_0x472dfa(0x6d));return q(_0x18a3eb)==_0x472dfa(0x7b)?_0x18a3eb:_0x18a3eb+'';}function _0x5b48(){const _0x15659d=['out','363544uTiaLF','map','ink.config','beginInkMode','closed','ratio','NoFill','indexOf','find','17996979anZsDx','_commandService','registerCommand','3074907mvsAeo','createCustomShape','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','points','abs','sqrt','filter','1475490ZiIDgV','disposeWithMe','4qzUpMU','toPrimitive','color','width','splice','4298HiufEU','hypot','default','corner','onStarting','1.0.0-beta.0','_config','distance','opacity','forEach','3558775YdBCum','length','point','17196CDtEdj','anchors','prototype','registerAdapter','anchorId','min','left','start','pointType','decorate','SolidLine','free','_adapters','function','constructor','norm','9ZJDHWX','iterator','SolidFill','height','Rect','ink.operation.start','409113mVOQtx','symmetric','smooth','string','defineProperty','setConfig','add','max','join','segmentIndex','round','anchor','#f54a45','_configService','_injector','4wCnkGp','version','symbol','push','kind','pen','findIndex','Round','right','tolerance','type'];_0x5b48=function(){return _0x15659d;};return _0x5b48();}function Y(_0x2cd039,_0x49203b,_0x57474e){const _0x318249=_0x4b144b;return(_0x49203b=J(_0x49203b))in _0x2cd039?Object[_0x318249(0x6e)](_0x2cd039,_0x49203b,{'value':_0x57474e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2cd039[_0x49203b]=_0x57474e,_0x2cd039;}const X=_0x2b9493('ink.host-adapter.service');var Te=class{constructor(){const _0x2e3e3e=_0x4b144b;Y(this,_0x2e3e3e(0xb9),[]);}[_0x4b144b(0xb0)](_0x58364a){const _0x57712d=_0x4b144b;return this['_adapters'][_0x57712d(0x7c)](_0x58364a),_0x309fee(()=>{const _0x5dcfce=_0x57712d;let _0x1f35d4=this[_0x5dcfce(0xb9)][_0x5dcfce(0x8c)](_0x58364a);_0x1f35d4>=0x0&&this['_adapters'][_0x5dcfce(0x9f)](_0x1f35d4,0x1);});}[_0x4b144b(0x88)](_0x1b0518){const _0x50e357=_0x4b144b;for(let _0x512cb6 of this[_0x50e357(0xb9)])if(_0x512cb6[_0x50e357(0x88)](_0x1b0518))return!0x0;return!0x1;}async['createCustomShape'](_0x13597d){const _0x3a3d88=_0x4b144b;for(let _0x506fed of this[_0x3a3d88(0xb9)])if(_0x506fed[_0x3a3d88(0x92)]&&await _0x506fed[_0x3a3d88(0x92)](_0x13597d))return!0x0;return!0x1;}};const Ee={'id':_0x4b144b(0xc2),'type':_0x12267a['OPERATION'],'handler':(_0x356ada,_0x5a3929)=>_0x5a3929?_0x356ada['get'](X)[_0x4b144b(0x88)](_0x5a3929):!0x1},Z={};function Q(_0x30f070,_0x153c22){return function(_0x1d3163,_0x4315c8){_0x153c22(_0x1d3163,_0x4315c8,_0x30f070);};}function De(_0x44ef33,_0x510c25,_0x394c76,_0x41c613){const _0x5e2564=_0x4b144b;var _0x29a518=arguments[_0x5e2564(0xab)],_0xffb34d=_0x29a518<0x3?_0x510c25:_0x41c613===null?_0x41c613=Object['getOwnPropertyDescriptor'](_0x510c25,_0x394c76):_0x41c613,_0x1fbf81;if(typeof Reflect==_0x5e2564(0x93)&&typeof Reflect['decorate']==_0x5e2564(0xba))_0xffb34d=Reflect[_0x5e2564(0xb6)](_0x44ef33,_0x510c25,_0x394c76,_0x41c613);else{for(var _0x2a8d54=_0x44ef33[_0x5e2564(0xab)]-0x1;_0x2a8d54>=0x0;_0x2a8d54--)(_0x1fbf81=_0x44ef33[_0x2a8d54])&&(_0xffb34d=(_0x29a518<0x3?_0x1fbf81(_0xffb34d):_0x29a518>0x3?_0x1fbf81(_0x510c25,_0x394c76,_0xffb34d):_0x1fbf81(_0x510c25,_0x394c76))||_0xffb34d);}return _0x29a518>0x3&&_0xffb34d&&Object['defineProperty'](_0x510c25,_0x394c76,_0xffb34d),_0xffb34d;}let $=class extends _0x5aaff8{constructor(_0x4b7fe9=Z,_0x3855a4,_0x24d6c2,_0x4c05b7){const _0x541eb5=_0x4b144b;super(),this[_0x541eb5(0xa6)]=_0x4b7fe9,this[_0x541eb5(0x78)]=_0x3855a4,this[_0x541eb5(0x8f)]=_0x24d6c2,this[_0x541eb5(0x77)]=_0x4c05b7;let {..._0x98179d}=_0x2c6874({},Z,this['_config']);this['_configService'][_0x541eb5(0x6f)](_0x541eb5(0x87),_0x98179d);}[_0x4b144b(0xa4)](){const _0x52e5d0=_0x4b144b;[[X,{'useClass':Te}]][_0x52e5d0(0xa9)](_0x423632=>this['_injector'][_0x52e5d0(0x70)](_0x423632)),this[_0x52e5d0(0x9a)](this[_0x52e5d0(0x8f)][_0x52e5d0(0x90)](Ee));}};Y($,'pluginName','UNIVER_INK_PLUGIN'),Y($,'packageName',Se),Y($,_0x4b144b(0x7a),Ce),Y($,_0x4b144b(0x83),_0x307cd7['UNIVER_UNKNOWN']),$=De([_0xdb0733(_0x5be20a),Q(0x1,_0x4c7430(_0x3cafb4)),Q(0x2,_0x42e8fe),Q(0x3,_0x559208)],$);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 _0x356966=_0x53ef;(function(_0x54451d,_0x3b31d7){const _0x1ce4da=_0x53ef,_0x1c88d7=_0x54451d();while(!![]){try{const _0xbce038=-parseInt(_0x1ce4da(0x24c))/0x1*(-parseInt(_0x1ce4da(0x209))/0x2)+-parseInt(_0x1ce4da(0x223))/0x3*(-parseInt(_0x1ce4da(0x1f0))/0x4)+-parseInt(_0x1ce4da(0x203))/0x5*(parseInt(_0x1ce4da(0x249))/0x6)+parseInt(_0x1ce4da(0x220))/0x7+-parseInt(_0x1ce4da(0x23e))/0x8*(-parseInt(_0x1ce4da(0x214))/0x9)+parseInt(_0x1ce4da(0x201))/0xa*(parseInt(_0x1ce4da(0x21d))/0xb)+-parseInt(_0x1ce4da(0x251))/0xc;if(_0xbce038===_0x3b31d7)break;else _0x1c88d7['push'](_0x1c88d7['shift']());}catch(_0x2022e3){_0x1c88d7['push'](_0x1c88d7['shift']());}}}(_0x1f5c,0x3ead5));import{ShapeFillEnum as _0x2fa4bd,ShapeLineCapEnum as _0x2d6de2,ShapeLineJoinEnum as _0x41dff1,ShapeLineTypeEnum as _0x2d7f81,ShapeTypeEnum as _0x11763b}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x49eb9a}from'@univerjs-pro/license';import{CommandType as _0x1e8d89,DependentOn as _0x1cf1a1,ICommandService as _0x1e9317,IConfigService as _0x5847bc,Inject as _0x5f2ad6,Injector as _0x2eac81,Plugin as _0x22b05a,UniverInstanceType as _0x380ee1,createIdentifier as _0x3e851b,merge as _0x2b1a91,toDisposable as _0x4632ea}from'@univerjs/core';const g=0.0001;function _(_0x48279f){return{'x':_0x48279f['x'],'y':_0x48279f['y']};}function v(_0x444634){const _0x18e054=_0x53ef;return{..._0x444634,'in':_0x444634['in']?_(_0x444634['in']):void 0x0,'out':_0x444634[_0x18e054(0x216)]?_(_0x444634[_0x18e054(0x216)]):void 0x0};}function y(_0x55a2d2){const _0x2a208a=_0x53ef;return{'kind':_0x2a208a(0x20f),'closed':_0x55a2d2[_0x2a208a(0x235)],'anchors':_0x55a2d2[_0x2a208a(0x23f)][_0x2a208a(0x1ef)](v)};}function _0x1f5c(){const _0x185fb5=['max','beginInkMode','smooth','fillColor','77rnZxAW','getOwnPropertyDescriptor','decorate','2467962NgyAdF','segmentIndex','ink.operation.start','3gbvUdv','symbol','setConfig','kind','points','call','function','slice','SolidLine','indexOf','registerAdapter','toPrimitive','_configService','start','filter','left','find','abs','closed','_config','OPERATION','type','UNIVER_INK_PLUGIN','forEach','UNIVER_UNKNOWN','free','createCustomShape','16GWCFsO','anchors','top','endIndex','opacity','version','color','NoFill','tool','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','7734ZpkkSv','right','anchor','2KCucqt','string','get','ink.host-adapter.service','onStarting','5376480yqYQJd','map','22548AUBEFQ','_adapters','@univerjs-pro/ink','tolerance','corner','object','pluginName','findIndex','ratio','width','join','distance','length','default','sqrt','registerCommand','splice','329860STYWvl','hypot','1790uhhIAy','ink-centerline-','none','height','end','ink.config','446300TYHoGC','min','defineProperty','1.0.0-beta.2','createId','Round','pen','pointType','push','symmetric','round','588699RFSYId','packageName','out','__ink-preview-anchor__','_commandService'];_0x1f5c=function(){return _0x185fb5;};return _0x1f5c();}function b(_0x2a952a,_0x2e5661,_0x5e0d99){return{'x':_0x2a952a['x']+(_0x2e5661['x']-_0x2a952a['x'])*_0x5e0d99,'y':_0x2a952a['y']+(_0x2e5661['y']-_0x2a952a['y'])*_0x5e0d99};}function x(_0xaaacec,_0x3c1192){const _0x27b282=_0x53ef;return Math[_0x27b282(0x202)](_0xaaacec['x']-_0x3c1192['x'],_0xaaacec['y']-_0x3c1192['y']);}function S(_0x486b04){const _0x5ceea7=_0x53ef;let _0xe471b9=Math[_0x5ceea7(0x202)](_0x486b04['x'],_0x486b04['y']);return _0xe471b9<g?{'x':0x1,'y':0x0}:{'x':_0x486b04['x']/_0xe471b9,'y':_0x486b04['y']/_0xe471b9};}function C(_0x25793a,_0x4ea531,_0x4f9a3a=x(_0x25793a,_0x4ea531)){let _0x23eb6c=S({'x':_0x25793a['x']-_0x4ea531['x'],'y':_0x25793a['y']-_0x4ea531['y']});return{'x':_0x25793a['x']+_0x23eb6c['x']*_0x4f9a3a,'y':_0x25793a['y']+_0x23eb6c['y']*_0x4f9a3a};}function w(_0x5115ef,_0x2a820e){const _0x554bd4=_0x53ef;let {anchors:_0x1ef8bc}=_0x5115ef;return _0x1ef8bc[_0x554bd4(0x1fc)]<0x2||_0x2a820e<0x0?null:_0x2a820e<_0x1ef8bc[_0x554bd4(0x1fc)]-0x1?{'startIndex':_0x2a820e,'endIndex':_0x2a820e+0x1,'start':_0x1ef8bc[_0x2a820e],'end':_0x1ef8bc[_0x2a820e+0x1]}:_0x5115ef['closed']&&_0x2a820e===_0x1ef8bc['length']-0x1?{'startIndex':_0x1ef8bc['length']-0x1,'endIndex':0x0,'start':_0x1ef8bc[_0x1ef8bc[_0x554bd4(0x1fc)]-0x1],'end':_0x1ef8bc[0x0]}:null;}function T(_0x26461a,_0x4a21cf){const _0x23db50=_0x53ef;let _0x59b75a=w(_0x26461a,_0x4a21cf);return _0x59b75a?[_0x59b75a[_0x23db50(0x230)],_0x59b75a[_0x23db50(0x230)]['out']??_0x59b75a[_0x23db50(0x230)],_0x59b75a[_0x23db50(0x207)]['in']??_0x59b75a[_0x23db50(0x207)],_0x59b75a[_0x23db50(0x207)]]:null;}function te(_0x4b1eab,_0x301c80){return _0x301c80==='anchor'?_0x4b1eab:_0x4b1eab[_0x301c80]??null;}function E(_0x5ee7f1,_0x17bb72,_0x271433){const _0x35c1ad=_0x53ef;return _0x271433===_0x35c1ad(0x24b)||_0x5ee7f1[_0x35c1ad(0x235)]?!0x0:_0x271433==='in'?_0x17bb72>0x0:_0x17bb72<_0x5ee7f1[_0x35c1ad(0x23f)]['length']-0x1;}function D(_0x1204f1,_0x320f6c){let [_0x42129c,_0xf3e572,_0x40f9e3,_0x3de1fd]=_0x1204f1,_0x6d2b7f=b(_0x42129c,_0xf3e572,_0x320f6c),_0xc1192d=b(_0xf3e572,_0x40f9e3,_0x320f6c),_0x18dcee=b(_0x40f9e3,_0x3de1fd,_0x320f6c);return b(b(_0x6d2b7f,_0xc1192d,_0x320f6c),b(_0xc1192d,_0x18dcee,_0x320f6c),_0x320f6c);}function ne(_0x3acbc7,_0x2278c1){let [_0x29f324,_0x11f2b3,_0xdf7f0f,_0x563355]=_0x3acbc7,_0x53dfa5=b(_0x29f324,_0x11f2b3,_0x2278c1),_0x513244=b(_0x11f2b3,_0xdf7f0f,_0x2278c1),_0xc82e23=b(_0xdf7f0f,_0x563355,_0x2278c1),_0x5a77b3=b(_0x53dfa5,_0x513244,_0x2278c1),_0x18eabd=b(_0x513244,_0xc82e23,_0x2278c1),_0x1aa9c8=b(_0x5a77b3,_0x18eabd,_0x2278c1);return{'left':[_0x29f324,_0x53dfa5,_0x5a77b3,_0x1aa9c8],'right':[_0x1aa9c8,_0x18eabd,_0xc82e23,_0x563355]};}function O(_0x127738,_0x19d1b4,_0x48c9c0){const _0x52eefa=_0x53ef;let _0x43611f=_0x48c9c0['x']-_0x19d1b4['x'],_0x5135f6=_0x48c9c0['y']-_0x19d1b4['y'],_0xcb9d79=_0x43611f*_0x43611f+_0x5135f6*_0x5135f6,_0x15616e=_0xcb9d79<=g?0x0:Math['max'](0x0,Math[_0x52eefa(0x20a)](0x1,((_0x127738['x']-_0x19d1b4['x'])*_0x43611f+(_0x127738['y']-_0x19d1b4['y'])*_0x5135f6)/_0xcb9d79)),_0x278579={'x':_0x19d1b4['x']+_0x43611f*_0x15616e,'y':_0x19d1b4['y']+_0x5135f6*_0x15616e};return{'point':_0x278579,'ratio':_0x15616e,'distance':x(_0x127738,_0x278579)};}function re(_0x1c0926,_0x59bba1,_0x4bc406){return O(_0x1c0926,_0x59bba1,_0x4bc406)['distance']**0x2;}function k(_0x2063d9,_0x379c5b){const _0x1e8693=_0x53ef;if(_0x2063d9[_0x1e8693(0x1fc)]<=0x2)return _0x2063d9[_0x1e8693(0x1ef)](_);let _0x463a15=0x0,_0x495139=0x0,_0x11e93c=_0x2063d9[0x0],_0x3b26b4=_0x2063d9[_0x2063d9[_0x1e8693(0x1fc)]-0x1],_0x35b191=_0x379c5b*_0x379c5b;for(let _0x49e8ba=0x1;_0x49e8ba<_0x2063d9[_0x1e8693(0x1fc)]-0x1;_0x49e8ba++){let _0x252ae1=re(_0x2063d9[_0x49e8ba],_0x11e93c,_0x3b26b4);_0x252ae1>_0x463a15&&(_0x463a15=_0x252ae1,_0x495139=_0x49e8ba);}if(_0x463a15<=_0x35b191)return[_(_0x11e93c),_(_0x3b26b4)];let _0x177f45=k(_0x2063d9[_0x1e8693(0x22a)](0x0,_0x495139+0x1),_0x379c5b),_0x1827b1=k(_0x2063d9[_0x1e8693(0x22a)](_0x495139),_0x379c5b);return[..._0x177f45[_0x1e8693(0x22a)](0x0,-0x1),..._0x1827b1];}function ie(_0x59751d,_0x420094){let _0x53d9f5=_0x59751d[_0x420094],_0x298408=_0x59751d[_0x420094+0x1],_0x190738=_0x59751d[_0x420094-0x1]??_0x53d9f5;return{'x':_0x53d9f5['x']+(_0x298408['x']-_0x190738['x'])/0x6,'y':_0x53d9f5['y']+(_0x298408['y']-_0x190738['y'])/0x6};}function A(_0x119f78,_0xd818e8){let _0x3c0892=_0x119f78[_0xd818e8],_0xab5fce=_0x119f78[_0xd818e8-0x1],_0x91a4cb=_0x119f78[_0xd818e8+0x1]??_0x3c0892;return{'x':_0x3c0892['x']-(_0x91a4cb['x']-_0xab5fce['x'])/0x6,'y':_0x3c0892['y']-(_0x91a4cb['y']-_0xab5fce['y'])/0x6};}function j(_0x3f00b2,_0x597f50){const _0x3769bc=_0x53ef;let _0x28fc9d=_0x3f00b2[_0x3769bc(0x23f)][_0x597f50],_0x514a16=_0x3f00b2[_0x3769bc(0x23f)][_0x597f50-0x1]??(_0x3f00b2[_0x3769bc(0x235)]?_0x3f00b2['anchors'][_0x3f00b2[_0x3769bc(0x23f)][_0x3769bc(0x1fc)]-0x1]:null),_0xf246d8=_0x3f00b2['anchors'][_0x597f50+0x1]??(_0x3f00b2['closed']?_0x3f00b2[_0x3769bc(0x23f)][0x0]:null),_0x257b0e=_0x514a16&&_0xf246d8?S({'x':_0xf246d8['x']-_0x514a16['x'],'y':_0xf246d8['y']-_0x514a16['y']}):_0xf246d8?S({'x':_0xf246d8['x']-_0x28fc9d['x'],'y':_0xf246d8['y']-_0x28fc9d['y']}):_0x514a16?S({'x':_0x28fc9d['x']-_0x514a16['x'],'y':_0x28fc9d['y']-_0x514a16['y']}):{'x':0x1,'y':0x0},_0x5c3cf8=_0x514a16&&_0xf246d8?Math[_0x3769bc(0x219)](0x32,x(_0x514a16,_0xf246d8)/0x4):0x32;return{'in':{'x':_0x28fc9d['x']-_0x257b0e['x']*_0x5c3cf8,'y':_0x28fc9d['y']-_0x257b0e['y']*_0x5c3cf8},'out':{'x':_0x28fc9d['x']+_0x257b0e['x']*_0x5c3cf8,'y':_0x28fc9d['y']+_0x257b0e['y']*_0x5c3cf8}};}function M(_0x7a88c1,_0x277009){const _0x3ee4ca=_0x53ef;let _0x2740b7=_0x7a88c1[_0x277009],_0x4bc775=_0x277009==='in'?'out':'in',_0x362f94=_0x7a88c1[_0x4bc775];if(_0x2740b7){if(_0x7a88c1[_0x3ee4ca(0x210)]===_0x3ee4ca(0x212)){_0x7a88c1[_0x4bc775]=C(_0x7a88c1,_0x2740b7);return;}_0x7a88c1[_0x3ee4ca(0x210)]===_0x3ee4ca(0x21b)&&(_0x7a88c1[_0x4bc775]=C(_0x7a88c1,_0x2740b7,_0x362f94?x(_0x7a88c1,_0x362f94):x(_0x7a88c1,_0x2740b7)));}}function ae(_0x59e21c,_0x36d04e){const _0x32c142=_0x53ef;let _0x48c843=y(_0x59e21c);return!_0x36d04e||_0x48c843['closed']||_0x48c843['anchors']['length']===0x0||_0x48c843[_0x32c142(0x23f)][_0x32c142(0x211)]({'id':_0x32c142(0x217),'x':_0x36d04e['x'],'y':_0x36d04e['y'],'pointType':_0x32c142(0x1f4)}),_0x48c843;}function oe(_0xcfc0ea,_0x2cd5b6={}){const _0x4c23e0=_0x53ef;let _0x12de85=Math[_0x4c23e0(0x219)](0x0,_0x2cd5b6[_0x4c23e0(0x1f3)]??Math[_0x4c23e0(0x219)](0x4,_0xcfc0ea['width']*0.35)),_0x3db688=_0x2cd5b6[_0x4c23e0(0x20d)]??(_0x3d6e40=>_0x4c23e0(0x204)+_0x3d6e40),_0x4c2d72=k(_0xcfc0ea[_0x4c23e0(0x227)],_0x12de85),_0xf3a2f6=_0x4c2d72[_0x4c23e0(0x1ef)]((_0x46a440,_0x1095a5)=>({'id':_0x3db688(_0x1095a5),'x':_0x46a440['x'],'y':_0x46a440['y'],'pointType':_0x4c23e0(0x23c)}));for(let _0x23b9af=0x0;_0x23b9af<_0xf3a2f6[_0x4c23e0(0x1fc)]-0x1;_0x23b9af++)_0xf3a2f6[_0x23b9af][_0x4c23e0(0x216)]=ie(_0x4c2d72,_0x23b9af),_0xf3a2f6[_0x23b9af+0x1]['in']=A(_0x4c2d72,_0x23b9af+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0xf3a2f6};}function se(_0x2859a8,_0x2d5283,_0x3f53eb){const _0x27976d=_0x53ef;let _0x5fb0c9=null,_0x1b3869=[_0x27976d(0x24b),'in','out'];return _0x2859a8[_0x27976d(0x23f)][_0x27976d(0x23a)]((_0x4a0cb8,_0x299495)=>{_0x1b3869['forEach'](_0xbbed76=>{if(!E(_0x2859a8,_0x299495,_0xbbed76))return;let _0x453511=te(_0x4a0cb8,_0xbbed76);if(!_0x453511)return;let _0x3d89ff=x(_0x2d5283,_0x453511);_0x3d89ff>_0x3f53eb||_0x5fb0c9&&_0x3d89ff>=_0x5fb0c9['distance']||(_0x5fb0c9={'handle':{'kind':_0xbbed76,'anchorId':_0x4a0cb8['id']},'point':_(_0x453511),'distance':_0x3d89ff});});}),_0x5fb0c9;}function ce(_0x248a3c,_0x1df9ef,_0x1bc909){const _0x19e8d2=_0x53ef;let _0x5d2598=null,_0x5f4d68=_0x248a3c['closed']?_0x248a3c[_0x19e8d2(0x23f)][_0x19e8d2(0x1fc)]:Math['max'](0x0,_0x248a3c[_0x19e8d2(0x23f)][_0x19e8d2(0x1fc)]-0x1);for(let _0x36f160=0x0;_0x36f160<_0x5f4d68;_0x36f160++){let _0x445842=T(_0x248a3c,_0x36f160);if(!_0x445842)continue;let _0x507d6=D(_0x445842,0x0);for(let _0x228462=0x1;_0x228462<=0x20;_0x228462++){let _0xf7ca=D(_0x445842,_0x228462/0x20),_0x4fa499=O(_0x1df9ef,_0x507d6,_0xf7ca),_0x19bab2=(_0x228462-0x1+_0x4fa499[_0x19e8d2(0x1f8)])/0x20;(!_0x5d2598||_0x4fa499[_0x19e8d2(0x1fb)]<_0x5d2598['distance'])&&(_0x5d2598={'segmentIndex':_0x36f160,'t':_0x19bab2,'point':_0x4fa499['point'],'distance':_0x4fa499[_0x19e8d2(0x1fb)]}),_0x507d6=_0xf7ca;}}return _0x5d2598&&_0x5d2598[_0x19e8d2(0x1fb)]<=_0x1bc909?_0x5d2598:null;}function le(_0x384140,_0x21f62d,_0x2d00a6){const _0x8456ef=_0x53ef;let _0x106eec=y(_0x384140),_0xc21a64=w(_0x106eec,_0x21f62d[_0x8456ef(0x221)]),_0x17b06f=T(_0x106eec,_0x21f62d['segmentIndex']);if(!_0xc21a64||!_0x17b06f)return _0x106eec;let _0x2e7114=ne(_0x17b06f,Math['max'](0x0,Math[_0x8456ef(0x20a)](0x1,_0x21f62d['t']))),_0x3c6185={'id':_0x2d00a6(),'x':_0x2e7114[_0x8456ef(0x232)][0x3]['x'],'y':_0x2e7114[_0x8456ef(0x232)][0x3]['y'],'in':_(_0x2e7114['left'][0x2]),'out':_(_0x2e7114['right'][0x1]),'pointType':_0x8456ef(0x23c)};return _0x106eec['anchors'][_0xc21a64['startIndex']][_0x8456ef(0x216)]=_(_0x2e7114[_0x8456ef(0x232)][0x1]),_0x106eec['anchors'][_0xc21a64[_0x8456ef(0x241)]]['in']=_(_0x2e7114[_0x8456ef(0x24a)][0x2]),_0x106eec[_0x8456ef(0x23f)][_0x8456ef(0x200)](_0xc21a64['startIndex']+0x1,0x0,_0x3c6185),_0x106eec;}function ue(_0x162e9a,_0x232ee0){const _0x11a7de=_0x53ef;let _0x42d2e6=y(_0x162e9a);return _0x42d2e6['anchors']=_0x42d2e6[_0x11a7de(0x23f)][_0x11a7de(0x231)](_0x2e4db0=>_0x2e4db0['id']!==_0x232ee0),_0x42d2e6[_0x11a7de(0x235)]&&_0x42d2e6[_0x11a7de(0x23f)][_0x11a7de(0x1fc)]<0x3&&(_0x42d2e6['closed']=!0x1),_0x42d2e6;}function _0x53ef(_0xc57a9,_0x516a4b){_0xc57a9=_0xc57a9-0x1ef;const _0x1f5c9d=_0x1f5c();let _0x53efec=_0x1f5c9d[_0xc57a9];return _0x53efec;}function N(_0xc9b76,_0x510eb1,_0x2e8834){const _0x1762a4=_0x53ef;let _0x33d63e=y(_0xc9b76),_0x38bb2b=_0x33d63e[_0x1762a4(0x23f)][_0x1762a4(0x1f7)](_0x44921e=>_0x44921e['id']===_0x510eb1),_0x160a7f=_0x33d63e[_0x1762a4(0x23f)][_0x38bb2b];if(!_0x160a7f)return _0x33d63e;if(_0x160a7f[_0x1762a4(0x210)]=_0x2e8834,_0x2e8834===_0x1762a4(0x1f4))return delete _0x160a7f['in'],delete _0x160a7f[_0x1762a4(0x216)],_0x33d63e;let _0x572828=j(_0x33d63e,_0x38bb2b);if(_0x160a7f['in']=_0x160a7f['in']?_(_0x160a7f['in']):_0x572828['in'],_0x160a7f[_0x1762a4(0x216)]=_0x160a7f[_0x1762a4(0x216)]?_(_0x160a7f[_0x1762a4(0x216)]):_0x572828[_0x1762a4(0x216)],_0x2e8834===_0x1762a4(0x212)){let _0x3326cb=Math['max'](x(_0x160a7f,_0x160a7f['in']),x(_0x160a7f,_0x160a7f['out']),0x32),_0x43cc20=S({'x':_0x160a7f[_0x1762a4(0x216)]['x']-_0x160a7f['x'],'y':_0x160a7f[_0x1762a4(0x216)]['y']-_0x160a7f['y']});_0x160a7f[_0x1762a4(0x216)]={'x':_0x160a7f['x']+_0x43cc20['x']*_0x3326cb,'y':_0x160a7f['y']+_0x43cc20['y']*_0x3326cb},_0x160a7f['in']={'x':_0x160a7f['x']-_0x43cc20['x']*_0x3326cb,'y':_0x160a7f['y']-_0x43cc20['y']*_0x3326cb};}else _0x2e8834==='smooth'&&M(_0x160a7f,'out');return _0x33d63e;}function P(_0x1af66d,_0x41dd6e){const _0x1a68ea=_0x53ef;let _0x1962e0=_0x1af66d['anchors'][_0x1a68ea(0x233)](_0x5e516e=>_0x5e516e['id']===_0x41dd6e),_0x59c3d3=(_0x1962e0==null?void 0x0:_0x1962e0['pointType'])??'corner';return N(_0x1af66d,_0x41dd6e,_0x59c3d3==='corner'?_0x1a68ea(0x21b):_0x59c3d3===_0x1a68ea(0x21b)?_0x1a68ea(0x212):_0x59c3d3===_0x1a68ea(0x212)?'free':'corner');}function F(_0x5396e5,_0x4f0ea1,_0x250936){const _0x43869d=_0x53ef;let _0x182b40=y(_0x5396e5),_0x1da81c=_0x182b40[_0x43869d(0x23f)]['find'](_0x46f544=>_0x46f544['id']===_0x4f0ea1['anchorId']);if(!_0x1da81c)return _0x182b40;if(_0x4f0ea1[_0x43869d(0x226)]===_0x43869d(0x24b)){let _0xc8a20f={'x':_0x250936['x']-_0x1da81c['x'],'y':_0x250936['y']-_0x1da81c['y']};return _0x1da81c['x']=_0x250936['x'],_0x1da81c['y']=_0x250936['y'],_0x1da81c['in']&&={'x':_0x1da81c['in']['x']+_0xc8a20f['x'],'y':_0x1da81c['in']['y']+_0xc8a20f['y']},_0x1da81c[_0x43869d(0x216)]&&={'x':_0x1da81c[_0x43869d(0x216)]['x']+_0xc8a20f['x'],'y':_0x1da81c[_0x43869d(0x216)]['y']+_0xc8a20f['y']},_0x182b40;}return _0x1da81c[_0x4f0ea1[_0x43869d(0x226)]]=_(_0x250936),_0x1da81c[_0x43869d(0x210)]===_0x43869d(0x1f4)&&(_0x1da81c['pointType']=_0x43869d(0x23c)),M(_0x1da81c,_0x4f0ea1[_0x43869d(0x226)]),_0x182b40;}const I=1e-9;function L(_0x5ce0ba){const _0x5c045b=_0x53ef;let _0x255f97=Math[_0x5c045b(0x213)](_0x5ce0ba*0x2710)/0x2710;return Object['is'](_0x255f97,-0x0)?'0':String(_0x255f97);}function R(_0x4e8cb2){return L(_0x4e8cb2['x'])+'\x20'+L(_0x4e8cb2['y']);}function z(_0x1477ad,_0x26ef50){return{'x':_0x1477ad['x']-_0x26ef50['x'],'y':_0x1477ad['y']-_0x26ef50['y']};}function B(_0x41ad40,_0x129b62,_0xb622f8,_0x2f57eb,_0x3a48f0){let _0x2ffabe=0x1-_0x3a48f0;return{'x':_0x2ffabe*_0x2ffabe*_0x2ffabe*_0x41ad40['x']+0x3*_0x2ffabe*_0x2ffabe*_0x3a48f0*_0x129b62['x']+0x3*_0x2ffabe*_0x3a48f0*_0x3a48f0*_0xb622f8['x']+_0x3a48f0*_0x3a48f0*_0x3a48f0*_0x2f57eb['x'],'y':_0x2ffabe*_0x2ffabe*_0x2ffabe*_0x41ad40['y']+0x3*_0x2ffabe*_0x2ffabe*_0x3a48f0*_0x129b62['y']+0x3*_0x2ffabe*_0x3a48f0*_0x3a48f0*_0xb622f8['y']+_0x3a48f0*_0x3a48f0*_0x3a48f0*_0x2f57eb['y']};}function V(_0x32868a,_0x5c49e9,_0x1619e2,_0x41faf5){const _0x393151=_0x53ef;let _0x4f9ec2=-_0x32868a+0x3*_0x5c49e9-0x3*_0x1619e2+_0x41faf5,_0x40ce8f=0x3*_0x32868a-0x6*_0x5c49e9+0x3*_0x1619e2,_0x1c90e5=-0x3*_0x32868a+0x3*_0x5c49e9,_0x57e4e8=[];if(Math[_0x393151(0x234)](_0x4f9ec2)<I){if(Math['abs'](_0x40ce8f)<I)return _0x57e4e8;let _0x59d4cb=-_0x1c90e5/(0x2*_0x40ce8f);return _0x59d4cb>0x0&&_0x59d4cb<0x1&&_0x57e4e8[_0x393151(0x211)](_0x59d4cb),_0x57e4e8;}let _0x5e2fc3=_0x40ce8f*_0x40ce8f-0x3*_0x4f9ec2*_0x1c90e5;if(_0x5e2fc3<0x0)return _0x57e4e8;let _0xa81f52=Math[_0x393151(0x1fe)](Math['max'](0x0,_0x5e2fc3)),_0x130818=(-_0x40ce8f+_0xa81f52)/(0x3*_0x4f9ec2),_0x1e82e3=(-_0x40ce8f-_0xa81f52)/(0x3*_0x4f9ec2);return _0x130818>0x0&&_0x130818<0x1&&_0x57e4e8['push'](_0x130818),_0x1e82e3>0x0&&_0x1e82e3<0x1&&Math[_0x393151(0x234)](_0x1e82e3-_0x130818)>I&&_0x57e4e8['push'](_0x1e82e3),_0x57e4e8;}function H(_0x4cf027,_0x68c3c2,_0x53f6dd,_0x30586b,_0x502263){const _0x3360df=_0x53ef;_0x4cf027['push'](_0x68c3c2,_0x502263),new Set([...V(_0x68c3c2['x'],_0x53f6dd['x'],_0x30586b['x'],_0x502263['x']),...V(_0x68c3c2['y'],_0x53f6dd['y'],_0x30586b['y'],_0x502263['y'])])[_0x3360df(0x23a)](_0xdd247b=>{const _0x40264f=_0x3360df;_0x4cf027[_0x40264f(0x211)](B(_0x68c3c2,_0x53f6dd,_0x30586b,_0x502263,_0xdd247b));});}function U(_0x5c0fde){const _0x38feb9=_0x53ef;let _0x3f1284=_0x5c0fde[_0x38feb9(0x23f)];if(_0x3f1284[_0x38feb9(0x1fc)]<=0x1)return _0x3f1284;let _0x51c180=[];for(let _0x297215=0x1;_0x297215<_0x3f1284[_0x38feb9(0x1fc)];_0x297215++){let _0x121958=_0x3f1284[_0x297215-0x1],_0x1f28dd=_0x3f1284[_0x297215];H(_0x51c180,_0x121958,_0x121958[_0x38feb9(0x216)]??_0x121958,_0x1f28dd['in']??_0x1f28dd,_0x1f28dd);}if(_0x5c0fde[_0x38feb9(0x235)]&&_0x3f1284[_0x38feb9(0x1fc)]>0x1){let _0x2556fb=_0x3f1284[_0x3f1284['length']-0x1],_0x39925e=_0x3f1284[0x0];H(_0x51c180,_0x2556fb,_0x2556fb[_0x38feb9(0x216)]??_0x2556fb,_0x39925e['in']??_0x39925e,_0x39925e);}return _0x51c180;}function de(_0x54e9a7){const _0x33e7d2=_0x53ef;let _0x3268f4=_0x54e9a7[_0x33e7d2(0x227)];if(_0x3268f4[_0x33e7d2(0x1fc)]<=0x1)return _0x3268f4;let _0x217c42=[];for(let _0x5bb47c=0x0;_0x5bb47c<_0x3268f4['length']-0x1;_0x5bb47c++){let _0x530e46=_0x3268f4[_0x5bb47c],_0xeea96d=_0x3268f4[_0x5bb47c+0x1],_0x302d52=_0x3268f4[_0x5bb47c-0x1]??_0x530e46,_0x388a56=_0x3268f4[_0x5bb47c+0x2]??_0xeea96d;H(_0x217c42,_0x530e46,{'x':_0x530e46['x']+(_0xeea96d['x']-_0x302d52['x'])/0x6,'y':_0x530e46['y']+(_0xeea96d['y']-_0x302d52['y'])/0x6},{'x':_0xeea96d['x']-(_0x388a56['x']-_0x530e46['x'])/0x6,'y':_0xeea96d['y']-(_0x388a56['y']-_0x530e46['y'])/0x6},_0xeea96d);}return _0x217c42;}function fe(_0x76d43f){const _0x284aa2=_0x53ef;return _0x76d43f[_0x284aa2(0x226)]===_0x284aa2(0x20f)?U(_0x76d43f):de(_0x76d43f);}function W(_0x2cc479){let _0x75c89=Math['round'](_0x2cc479*0x2710)/0x2710;return Object['is'](_0x75c89,-0x0)?0x0:_0x75c89;}function G(_0x5abd8d){const _0xa4c604=_0x53ef;let _0x3002b7=fe(_0x5abd8d);if(_0x3002b7[_0xa4c604(0x1fc)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x577485=Math[_0xa4c604(0x20a)](..._0x3002b7[_0xa4c604(0x1ef)](_0x20b1c0=>_0x20b1c0['x'])),_0x2d45f6=Math[_0xa4c604(0x20a)](..._0x3002b7[_0xa4c604(0x1ef)](_0x3d14a6=>_0x3d14a6['y'])),_0x316ffd=Math['max'](..._0x3002b7[_0xa4c604(0x1ef)](_0x2afd5c=>_0x2afd5c['x'])),_0x180653=Math[_0xa4c604(0x219)](..._0x3002b7[_0xa4c604(0x1ef)](_0x17ef23=>_0x17ef23['y']));return{'left':W(_0x577485),'top':W(_0x2d45f6),'width':W(Math[_0xa4c604(0x219)](0x1,_0x316ffd-_0x577485)),'height':W(Math['max'](0x1,_0x180653-_0x2d45f6))};}function pe(_0x5ae1aa,_0x406174){const _0x235739=_0x53ef;let _0xb804a0=_0x5ae1aa[_0x235739(0x23f)];if(_0xb804a0[_0x235739(0x1fc)]===0x0)return'';let _0x9c2558=['M\x20'+R(z(_0xb804a0[0x0],_0x406174))];for(let _0x322c8d=0x1;_0x322c8d<_0xb804a0[_0x235739(0x1fc)];_0x322c8d++){let _0x1845a3=_0xb804a0[_0x322c8d-0x1],_0x214d09=_0xb804a0[_0x322c8d],_0x199306=_0x1845a3[_0x235739(0x216)]??_0x1845a3,_0x502b56=_0x214d09['in']??_0x214d09;_0x9c2558[_0x235739(0x211)]('C\x20'+R(z(_0x199306,_0x406174))+'\x20'+R(z(_0x502b56,_0x406174))+'\x20'+R(z(_0x214d09,_0x406174)));}if(_0x5ae1aa[_0x235739(0x235)]&&_0xb804a0[_0x235739(0x1fc)]>0x1){let _0xd91717=_0xb804a0[_0xb804a0[_0x235739(0x1fc)]-0x1],_0x446ee6=_0xb804a0[0x0],_0x5c2fd3=_0xd91717[_0x235739(0x216)]??_0xd91717,_0x2482e1=_0x446ee6['in']??_0x446ee6;_0x9c2558[_0x235739(0x211)]('C\x20'+R(z(_0x5c2fd3,_0x406174))+'\x20'+R(z(_0x2482e1,_0x406174))+'\x20'+R(z(_0x446ee6,_0x406174))),_0x9c2558[_0x235739(0x211)]('Z');}return _0x9c2558[_0x235739(0x1fa)]('\x20');}function me(_0x38e48b,_0x13e01c){const _0x1de27e=_0x53ef;let _0x271e1a=_0x38e48b[_0x1de27e(0x227)][_0x1de27e(0x1ef)](_0x5d2f29=>z(_0x5d2f29,_0x13e01c));if(_0x271e1a[_0x1de27e(0x1fc)]===0x0)return'';if(_0x271e1a['length']===0x1)return'M\x20'+R(_0x271e1a[0x0]);let _0x146874=['M\x20'+R(_0x271e1a[0x0])];for(let _0x557fb0=0x0;_0x557fb0<_0x271e1a[_0x1de27e(0x1fc)]-0x1;_0x557fb0++){let _0x509ff3=_0x271e1a[_0x557fb0],_0x29af82=_0x271e1a[_0x557fb0+0x1],_0x1f098b=_0x271e1a[_0x557fb0-0x1]??_0x509ff3,_0x357e14=_0x271e1a[_0x557fb0+0x2]??_0x29af82,_0x16b44a={'x':_0x509ff3['x']+(_0x29af82['x']-_0x1f098b['x'])/0x6,'y':_0x509ff3['y']+(_0x29af82['y']-_0x1f098b['y'])/0x6},_0x2444e0={'x':_0x29af82['x']-(_0x357e14['x']-_0x509ff3['x'])/0x6,'y':_0x29af82['y']-(_0x357e14['y']-_0x509ff3['y'])/0x6};_0x146874['push']('C\x20'+R(_0x16b44a)+'\x20'+R(_0x2444e0)+'\x20'+R(_0x29af82));}return _0x146874['join']('\x20');}function he(_0x352bd8,_0x2e846b){const _0x69e8e0=_0x53ef;return _0x352bd8['kind']===_0x69e8e0(0x20f)?pe(_0x352bd8,_0x2e846b):me(_0x352bd8,_0x2e846b);}function ge(_0x4030f1,_0x339fce){const _0xe436a9=_0x53ef;return _0x339fce!=null&&_0x339fce[_0xe436a9(0x244)]?_0x339fce['color']:_0x4030f1['kind']===_0xe436a9(0x20f)?'#f54a45':_0x4030f1[_0xe436a9(0x244)];}function _e(_0x4ca1c0,_0x468885){const _0xb12aab=_0x53ef;return(_0x468885==null?void 0x0:_0x468885[_0xb12aab(0x1f9)])===void 0x0?_0x4ca1c0['kind']==='pen'?0x2:_0x4ca1c0['width']:_0x468885['width'];}function ve(_0x39f282,_0x57727b){const _0x59a521=_0x53ef;return(_0x57727b==null?void 0x0:_0x57727b[_0x59a521(0x242)])===void 0x0?_0x39f282[_0x59a521(0x226)]===_0x59a521(0x20f)?void 0x0:_0x39f282[_0x59a521(0x242)]:_0x57727b[_0x59a521(0x242)];}function ye(_0x5b238c,_0x4fe218){const _0x40bee2=_0x53ef;let _0x15245a=G(_0x5b238c),_0x570241=he(_0x5b238c,{'x':_0x15245a[_0x40bee2(0x232)],'y':_0x15245a[_0x40bee2(0x240)]}),_0x37f918=_0x5b238c['kind']===_0x40bee2(0x20f)&&_0x5b238c['closed'],_0x2469b0=_0x4fe218==null?void 0x0:_0x4fe218[_0x40bee2(0x21c)];return{'shapeType':_0x11763b['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x15245a[_0x40bee2(0x1f9)],'h':_0x15245a[_0x40bee2(0x206)],'fill':_0x37f918?'norm':_0x40bee2(0x205),'stroke':!0x0,'data':_0x570241,'dataArray':be(_0x5b238c,{'x':_0x15245a[_0x40bee2(0x232)],'y':_0x15245a['top']})}]},'fill':_0x37f918&&_0x2469b0?{'color':_0x2469b0,'fillType':_0x2fa4bd['SolidFill']}:{'fillType':_0x2fa4bd[_0x40bee2(0x245)]},'stroke':{'color':ge(_0x5b238c,_0x4fe218),'width':_e(_0x5b238c,_0x4fe218),'opacity':ve(_0x5b238c,_0x4fe218),'lineStrokeType':_0x2d7f81[_0x40bee2(0x22b)],'capType':_0x2d6de2[_0x40bee2(0x20e)],'lineJoinType':_0x41dff1[_0x40bee2(0x20e)]}};}function K(_0x22c11c,_0x3b9cc4){return{'x':_0x22c11c['x']-_0x3b9cc4['x'],'y':_0x22c11c['y']-_0x3b9cc4['y']};}function be(_0x103a8a,_0xc97d34){const _0x37f555=_0x53ef;if(_0x103a8a[_0x37f555(0x226)]===_0x37f555(0x20f)){let _0x487c2c=_0x103a8a[_0x37f555(0x23f)];if(_0x487c2c[_0x37f555(0x1fc)]===0x0)return[];let _0x14233d=K(_0x487c2c[0x0],_0xc97d34),_0x30420d=[{'command':'M','points':[_0x14233d['x'],_0x14233d['y']]}];for(let _0x1748bf=0x1;_0x1748bf<_0x487c2c[_0x37f555(0x1fc)];_0x1748bf++){let _0x16e7af=_0x487c2c[_0x1748bf-0x1],_0x5d672f=_0x487c2c[_0x1748bf],_0x1a8900=K(_0x16e7af['out']??_0x16e7af,_0xc97d34),_0x46bec0=K(_0x5d672f['in']??_0x5d672f,_0xc97d34),_0x41a86c=K(_0x5d672f,_0xc97d34);_0x30420d[_0x37f555(0x211)]({'command':'C','points':[_0x1a8900['x'],_0x1a8900['y'],_0x46bec0['x'],_0x46bec0['y'],_0x41a86c['x'],_0x41a86c['y']]});}if(_0x103a8a[_0x37f555(0x235)]&&_0x487c2c[_0x37f555(0x1fc)]>0x1){let _0x17aeff=_0x487c2c[_0x487c2c[_0x37f555(0x1fc)]-0x1],_0x40b663=_0x487c2c[0x0],_0x1843b9=K(_0x17aeff['out']??_0x17aeff,_0xc97d34),_0x1fe0a2=K(_0x40b663['in']??_0x40b663,_0xc97d34),_0x419244=K(_0x40b663,_0xc97d34);_0x30420d[_0x37f555(0x211)]({'command':'C','points':[_0x1843b9['x'],_0x1843b9['y'],_0x1fe0a2['x'],_0x1fe0a2['y'],_0x419244['x'],_0x419244['y']]}),_0x30420d[_0x37f555(0x211)]({'command':'z','points':[]});}return _0x30420d;}let _0x195f23=_0x103a8a[_0x37f555(0x227)][_0x37f555(0x1ef)](_0xfc75f=>K(_0xfc75f,_0xc97d34));if(_0x195f23['length']===0x0)return[];let _0x1f76c9=[{'command':'M','points':[_0x195f23[0x0]['x'],_0x195f23[0x0]['y']]}];for(let _0x5414bf=0x0;_0x5414bf<_0x195f23[_0x37f555(0x1fc)]-0x1;_0x5414bf++){let _0x4d117e=_0x195f23[_0x5414bf],_0xd8559=_0x195f23[_0x5414bf+0x1],_0x3f71dc=_0x195f23[_0x5414bf-0x1]??_0x4d117e,_0x508db3=_0x195f23[_0x5414bf+0x2]??_0xd8559,_0xfff49f={'x':_0x4d117e['x']+(_0xd8559['x']-_0x3f71dc['x'])/0x6,'y':_0x4d117e['y']+(_0xd8559['y']-_0x3f71dc['y'])/0x6},_0x3ca850={'x':_0xd8559['x']-(_0x508db3['x']-_0x4d117e['x'])/0x6,'y':_0xd8559['y']-(_0x508db3['y']-_0x4d117e['y'])/0x6};_0x1f76c9[_0x37f555(0x211)]({'command':'C','points':[_0xfff49f['x'],_0xfff49f['y'],_0x3ca850['x'],_0x3ca850['y'],_0xd8559['x'],_0xd8559['y']]});}return _0x1f76c9;}function xe(_0x289e2b){const _0x5e1b50=_0x53ef;let {model:_0x4b471a,sourceModel:_0x5926d7=_0x4b471a,style:_0x19d6e0}=_0x289e2b,_0x53183e=_0x289e2b[_0x5e1b50(0x246)]??_0x4b471a['kind'],_0x6dcba4=G(_0x4b471a),_0xbbc2bf=_0x4b471a[_0x5e1b50(0x226)]===_0x5e1b50(0x20f)&&_0x53183e!=='pen'?_0x4b471a:void 0x0;return{'transform':{..._0x6dcba4,'rotation':0x0},'shapeData':ye(_0x4b471a,_0x19d6e0),'ink':{'version':0x1,'tool':_0x53183e,'sourceModel':_0x5926d7,..._0xbbc2bf?{'editModel':_0xbbc2bf}:{},'normalizedBounds':_0x6dcba4}};}var Se=_0x356966(0x1f2),Ce=_0x356966(0x20c);function q(_0x21b509){'@babel/helpers - typeof';const _0x16d79f=_0x356966;return q=typeof Symbol=='function'&&typeof Symbol[_0x16d79f(0x247)]=='symbol'?function(_0x5be096){return typeof _0x5be096;}:function(_0x52b1c3){const _0x383d1f=_0x16d79f;return _0x52b1c3&&typeof Symbol==_0x383d1f(0x229)&&_0x52b1c3['constructor']===Symbol&&_0x52b1c3!==Symbol['prototype']?'symbol':typeof _0x52b1c3;},q(_0x21b509);}function we(_0x509f3d,_0x2ecd3f){const _0x43a713=_0x356966;if(q(_0x509f3d)!=_0x43a713(0x1f5)||!_0x509f3d)return _0x509f3d;var _0x5f1c23=_0x509f3d[Symbol[_0x43a713(0x22e)]];if(_0x5f1c23!==void 0x0){var _0x41b600=_0x5f1c23[_0x43a713(0x228)](_0x509f3d,_0x2ecd3f||_0x43a713(0x1fd));if(q(_0x41b600)!=_0x43a713(0x1f5))return _0x41b600;throw TypeError(_0x43a713(0x248));}return(_0x2ecd3f===_0x43a713(0x24d)?String:Number)(_0x509f3d);}function J(_0x40e864){const _0x3af443=_0x356966;var _0x1e9bce=we(_0x40e864,_0x3af443(0x24d));return q(_0x1e9bce)==_0x3af443(0x224)?_0x1e9bce:_0x1e9bce+'';}function Y(_0x10c612,_0x44f3c9,_0x182c6d){const _0x4b36ef=_0x356966;return(_0x44f3c9=J(_0x44f3c9))in _0x10c612?Object[_0x4b36ef(0x20b)](_0x10c612,_0x44f3c9,{'value':_0x182c6d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x10c612[_0x44f3c9]=_0x182c6d,_0x10c612;}const X=_0x3e851b(_0x356966(0x24f));var Te=class{constructor(){Y(this,'_adapters',[]);}[_0x356966(0x22d)](_0x2edd25){const _0x22de3b=_0x356966;return this[_0x22de3b(0x1f1)]['push'](_0x2edd25),_0x4632ea(()=>{const _0x5de6ae=_0x22de3b;let _0xcb6947=this[_0x5de6ae(0x1f1)][_0x5de6ae(0x22c)](_0x2edd25);_0xcb6947>=0x0&&this[_0x5de6ae(0x1f1)][_0x5de6ae(0x200)](_0xcb6947,0x1);});}[_0x356966(0x21a)](_0x10a378){const _0x5e180c=_0x356966;for(let _0x31bb00 of this[_0x5e180c(0x1f1)])if(_0x31bb00[_0x5e180c(0x21a)](_0x10a378))return!0x0;return!0x1;}async[_0x356966(0x23d)](_0x5e1ded){const _0x4e5411=_0x356966;for(let _0x1e9543 of this[_0x4e5411(0x1f1)])if(_0x1e9543[_0x4e5411(0x23d)]&&await _0x1e9543[_0x4e5411(0x23d)](_0x5e1ded))return!0x0;return!0x1;}};const Ee={'id':_0x356966(0x222),'type':_0x1e8d89[_0x356966(0x237)],'handler':(_0x284f21,_0x5dd603)=>_0x5dd603?_0x284f21[_0x356966(0x24e)](X)[_0x356966(0x21a)](_0x5dd603):!0x1},Z={};function Q(_0x2c6a36,_0x4f405c){return function(_0x22704b,_0x3509e0){_0x4f405c(_0x22704b,_0x3509e0,_0x2c6a36);};}function De(_0x3b5759,_0x593799,_0x2cc71b,_0x5bd6de){const _0x5e7659=_0x356966;var _0x58b52a=arguments['length'],_0x5b1212=_0x58b52a<0x3?_0x593799:_0x5bd6de===null?_0x5bd6de=Object[_0x5e7659(0x21e)](_0x593799,_0x2cc71b):_0x5bd6de,_0x5c62d;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5e7659(0x229))_0x5b1212=Reflect[_0x5e7659(0x21f)](_0x3b5759,_0x593799,_0x2cc71b,_0x5bd6de);else{for(var _0x5f51cb=_0x3b5759[_0x5e7659(0x1fc)]-0x1;_0x5f51cb>=0x0;_0x5f51cb--)(_0x5c62d=_0x3b5759[_0x5f51cb])&&(_0x5b1212=(_0x58b52a<0x3?_0x5c62d(_0x5b1212):_0x58b52a>0x3?_0x5c62d(_0x593799,_0x2cc71b,_0x5b1212):_0x5c62d(_0x593799,_0x2cc71b))||_0x5b1212);}return _0x58b52a>0x3&&_0x5b1212&&Object['defineProperty'](_0x593799,_0x2cc71b,_0x5b1212),_0x5b1212;}let $=class extends _0x22b05a{constructor(_0xa1ec1e=Z,_0x42814a,_0x45fe73,_0x334b24){const _0x2eb092=_0x356966;super(),this[_0x2eb092(0x236)]=_0xa1ec1e,this['_injector']=_0x42814a,this['_commandService']=_0x45fe73,this['_configService']=_0x334b24;let {..._0x32839f}=_0x2b1a91({},Z,this[_0x2eb092(0x236)]);this[_0x2eb092(0x22f)][_0x2eb092(0x225)](_0x2eb092(0x208),_0x32839f);}[_0x356966(0x250)](){const _0xf71610=_0x356966;[[X,{'useClass':Te}]][_0xf71610(0x23a)](_0x1039bf=>this['_injector']['add'](_0x1039bf)),this['disposeWithMe'](this[_0xf71610(0x218)][_0xf71610(0x1ff)](Ee));}};Y($,_0x356966(0x1f6),_0x356966(0x239)),Y($,_0x356966(0x215),Se),Y($,_0x356966(0x243),Ce),Y($,_0x356966(0x238),_0x380ee1[_0x356966(0x23b)]),$=De([_0x1cf1a1(_0x49eb9a),Q(0x1,_0x5f2ad6(_0x2eac81)),Q(0x2,_0x1e9317),Q(0x3,_0x5847bc)],$);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 _0x14de(){const _0xf51d8e=['transform','@univerjs-pro/boards/facade','Shape','exports','parentId','UniverCoreFacade','FEnum','shapeData','anchor','10eFysUj','laneId','insertInk','@univerjs-pro/ink','buildInkCustomShapePayload','points','findElements','filter','every','tool','free','15MQrYax','function','highlighter','@univerjs-pro/boards','6332641RNhtAr','has','length','Tools','trim','out','deepClone','BoardElementType','32VAwdOY','custom','amd','495762cjyIFN','generateRandomId','5RcizmQ','495888wHXmqi','pressure','ink','UniverProInkFacade','BoardInkHandleKind','brush','FBoard','360837QMzKLe','isFinite','isArray','sourceModel','corner','UniverProInk','closed','UniverProBoards','style','6076668iKcIey','BoardInkPointType','width','smooth','anchors','19578779fVCUAG','1254714OCzKov','version','model','opacity','@univerjs/core/facade','object','BoardInkTool','extend'];_0x14de=function(){return _0xf51d8e;};return _0x14de();}function _0x7a93(_0x59b3ff,_0x1035c2){_0x59b3ff=_0x59b3ff-0x1ba;const _0x14ded4=_0x14de();let _0x7a9327=_0x14ded4[_0x59b3ff];return _0x7a9327;}(function(_0x257c49,_0x47cbdb){const _0x5dfbb3=_0x7a93,_0x265fe1=_0x257c49();while(!![]){try{const _0x45998c=parseInt(_0x5dfbb3(0x1d1))/0x1+parseInt(_0x5dfbb3(0x1ea))/0x2+-parseInt(_0x5dfbb3(0x1c2))/0x3*(parseInt(_0x5dfbb3(0x1d4))/0x4)+-parseInt(_0x5dfbb3(0x1d3))/0x5*(parseInt(_0x5dfbb3(0x1e4))/0x6)+-parseInt(_0x5dfbb3(0x1c6))/0x7+-parseInt(_0x5dfbb3(0x1ce))/0x8*(-parseInt(_0x5dfbb3(0x1db))/0x9)+parseInt(_0x5dfbb3(0x1fb))/0xa*(parseInt(_0x5dfbb3(0x1e9))/0xb);if(_0x45998c===_0x47cbdb)break;else _0x265fe1['push'](_0x265fe1['shift']());}catch(_0xff9f82){_0x265fe1['push'](_0x265fe1['shift']());}}}(_0x14de,0x806ff),function(_0x48d052,_0x70d1cc){const _0x1570cc=_0x7a93;typeof exports=='object'&&typeof module<'u'?_0x70d1cc(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x1570cc(0x1c3)&&define[_0x1570cc(0x1d0)]?define([_0x1570cc(0x1f5),_0x1570cc(0x1c5),_0x1570cc(0x1f3),_0x1570cc(0x1ba),'@univerjs/core',_0x1570cc(0x1ee)],_0x70d1cc):(_0x48d052=typeof globalThis<'u'?globalThis:_0x48d052||self,_0x70d1cc(_0x48d052[_0x1570cc(0x1d7)]={},_0x48d052[_0x1570cc(0x1e2)],_0x48d052['UniverProBoardsFacade'],_0x48d052[_0x1570cc(0x1e0)],_0x48d052['UniverCore'],_0x48d052[_0x1570cc(0x1f7)]));}(this,function(_0x145292,_0x3afee0,_0x5c24db,_0x1181b5,_0xde919e,_0x56faea){const _0x44ed01=_0x7a93;Object['defineProperty'](_0x145292,Symbol['toStringTag'],{'value':'Module'});var _0x3fdc8e=class extends _0x5c24db[_0x44ed01(0x1da)]{[_0x44ed01(0x1fd)](_0x56f758){let _0x1509a6=_0x1bbaa5(_0x56f758);return _0x1509a6&&this['_addElement'](_0x1509a6,{'insertIndex':_0x56f758['insertIndex']})?_0x1509a6:null;}['getInks'](){const _0x1f1c18=_0x44ed01;return this[_0x1f1c18(0x1bd)]({'elementType':_0x3afee0['BoardElementType'][_0x1f1c18(0x1f4)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x1f1c18(0x1be)](_0x309766);}};function _0x1bbaa5(_0x1cb2bc,_0x111e0d){const _0x3f5179=_0x44ed01;if(!_0x5f2516(_0x1cb2bc[_0x3f5179(0x1ec)])||_0x1cb2bc['sourceModel']!==void 0x0&&!_0x5f2516(_0x1cb2bc[_0x3f5179(0x1de)])||!_0x3ba848(_0x1cb2bc['style']))return null;let _0xe52ec6=_0x1cb2bc[_0x3f5179(0x1f6)]??(_0x111e0d==null?void 0x0:_0x111e0d[_0x3f5179(0x1f6)]),_0x4ed558=_0xde919e[_0x3f5179(0x1c9)][_0x3f5179(0x1cc)](_0x1cb2bc[_0x3f5179(0x1ec)]),_0x348b86=(0x0,_0x1181b5[_0x3f5179(0x1bb)])({'model':_0x4ed558,'style':_0x1cb2bc[_0x3f5179(0x1e3)],'tool':_0x1cb2bc[_0x3f5179(0x1c0)],'sourceModel':_0x1cb2bc['sourceModel']?_0xde919e[_0x3f5179(0x1c9)]['deepClone'](_0x1cb2bc[_0x3f5179(0x1de)]):_0x4ed558}),_0x1f501c=_0x1ceebb(_0x111e0d==null?void 0x0:_0x111e0d['custom']);return{'id':(_0x111e0d==null?void 0x0:_0x111e0d['id'])??_0x1cb2bc['id']??(0x0,_0xde919e[_0x3f5179(0x1d2)])(0x6),'type':_0x3afee0[_0x3f5179(0x1cd)][_0x3f5179(0x1f4)],'transform':_0x348b86[_0x3f5179(0x1f2)],'shapeData':_0x348b86[_0x3f5179(0x1f9)],'parentId':_0xe52ec6??void 0x0,'laneId':_0x1cb2bc[_0x3f5179(0x1fc)]===void 0x0?_0x111e0d==null?void 0x0:_0x111e0d[_0x3f5179(0x1fc)]:_0x1cb2bc[_0x3f5179(0x1fc)],'custom':{..._0x1f501c,'ink':_0x348b86[_0x3f5179(0x1d6)]}};}function _0x279bc2(_0x4214f7){const _0x3a3894=_0x44ed01;return Number[_0x3a3894(0x1dc)](_0x4214f7['x'])&&Number['isFinite'](_0x4214f7['y']);}function _0x5f2516(_0x39ae3c){const _0x19c718=_0x44ed01;if(_0x39ae3c['kind']==='pen'){let _0x32b750=new Set();return _0x39ae3c[_0x19c718(0x1e8)]['length']>=(_0x39ae3c[_0x19c718(0x1e1)]?0x3:0x2)&&_0x39ae3c[_0x19c718(0x1e8)][_0x19c718(0x1bf)](_0x47a1c2=>{const _0x49d2a8=_0x19c718;let _0x2366c6=_0x47a1c2['id'][_0x49d2a8(0x1ca)]()[_0x49d2a8(0x1c8)]>0x0&&!_0x32b750[_0x49d2a8(0x1c7)](_0x47a1c2['id'])&&_0x279bc2(_0x47a1c2)&&(!_0x47a1c2['in']||_0x279bc2(_0x47a1c2['in']))&&(!_0x47a1c2[_0x49d2a8(0x1cb)]||_0x279bc2(_0x47a1c2[_0x49d2a8(0x1cb)]));return _0x32b750['add'](_0x47a1c2['id']),_0x2366c6;});}return _0x39ae3c[_0x19c718(0x1bc)][_0x19c718(0x1c8)]>=0x2&&_0x39ae3c[_0x19c718(0x1bc)][_0x19c718(0x1bf)](_0x413515=>_0x279bc2(_0x413515)&&Number[_0x19c718(0x1dc)](_0x413515['t'])&&(_0x413515[_0x19c718(0x1d5)]===void 0x0||Number[_0x19c718(0x1dc)](_0x413515[_0x19c718(0x1d5)])))&&Number['isFinite'](_0x39ae3c[_0x19c718(0x1e6)])&&_0x39ae3c[_0x19c718(0x1e6)]>0x0&&Number[_0x19c718(0x1dc)](_0x39ae3c[_0x19c718(0x1ed)])&&_0x39ae3c[_0x19c718(0x1ed)]>=0x0&&_0x39ae3c[_0x19c718(0x1ed)]<=0x1;}function _0x3ba848(_0x10ec56){const _0x2207f6=_0x44ed01;return _0x10ec56===void 0x0||(_0x10ec56[_0x2207f6(0x1e6)]===void 0x0||Number[_0x2207f6(0x1dc)](_0x10ec56[_0x2207f6(0x1e6)])&&_0x10ec56[_0x2207f6(0x1e6)]>0x0)&&(_0x10ec56[_0x2207f6(0x1ed)]===void 0x0||Number[_0x2207f6(0x1dc)](_0x10ec56[_0x2207f6(0x1ed)])&&_0x10ec56['opacity']>=0x0&&_0x10ec56[_0x2207f6(0x1ed)]<=0x1);}function _0x1ceebb(_0x21597f){const _0xc3d8f8=_0x44ed01;return _0x21597f&&typeof _0x21597f==_0xc3d8f8(0x1ef)&&!Array[_0xc3d8f8(0x1dd)](_0x21597f)?_0x21597f:{};}function _0x19aeec(_0x3da603){const _0x518920=_0x44ed01;let _0x41cdb2=_0x1ceebb(_0x3da603[_0x518920(0x1cf)])[_0x518920(0x1d6)];if(!_0x41cdb2||typeof _0x41cdb2!=_0x518920(0x1ef)||Array[_0x518920(0x1dd)](_0x41cdb2))return null;let _0x395db6=_0x41cdb2;return _0x395db6[_0x518920(0x1eb)]===0x1&&_0x395db6[_0x518920(0x1de)]&&typeof _0x395db6[_0x518920(0x1de)]==_0x518920(0x1ef)?_0x395db6:null;}function _0x309766(_0x3ef886){const _0x39b651=_0x44ed01;return _0x3ef886['type']===_0x3afee0[_0x39b651(0x1cd)][_0x39b651(0x1f4)]&&!!_0x19aeec(_0x3ef886);}_0x5c24db[_0x44ed01(0x1da)][_0x44ed01(0x1f1)](_0x3fdc8e);let _0x4ebccd={'Pen':'pen','Brush':_0x44ed01(0x1d9),'Highlighter':_0x44ed01(0x1c4)},_0x5e4c04={'Corner':_0x44ed01(0x1df),'Smooth':_0x44ed01(0x1e7),'Symmetric':'symmetric','Free':_0x44ed01(0x1c1)},_0x42bffb={'Anchor':_0x44ed01(0x1fa),'In':'in','Out':_0x44ed01(0x1cb)};var _0xd200e2=class extends _0x56faea[_0x44ed01(0x1f8)]{get[_0x44ed01(0x1f0)](){return _0x4ebccd;}get[_0x44ed01(0x1e5)](){return _0x5e4c04;}get[_0x44ed01(0x1d8)](){return _0x42bffb;}};_0x56faea['FEnum'][_0x44ed01(0x1f1)](_0xd200e2),_0x145292['BoardInkHandleKind']=_0x42bffb,_0x145292[_0x44ed01(0x1e5)]=_0x5e4c04,_0x145292[_0x44ed01(0x1f0)]=_0x4ebccd;}));
1
+ function _0xe11b(){const _0x24db2e=['BoardInkHandleKind','model','FBoard','anchor','deepClone','BoardInkTool','buildInkCustomShapePayload','_addElement','width','highlighter','7882926EtdZNj','pen','6161028GXKpku','toStringTag','generateRandomId','getInks','free','symmetric','insertIndex','has','7322135TbdfNf','points','1421471YeAJRK','ink','filter','defineProperty','UniverProBoards','object','closed','pressure','version','Tools','type','330062dVKAFO','sourceModel','64sqCjzS','1070OGwIGl','FEnum','laneId','6NLzdqv','isArray','brush','isFinite','15543wrTsEI','style','insertInk','UniverProInk','UniverCore','custom','function','BoardElementType','tool','every','shapeData','@univerjs-pro/ink','add','UniverCoreFacade','length','1332541qTNflO','kind','parentId','exports','extend','corner','smooth','Shape','@univerjs-pro/boards','@univerjs/core','out','opacity','trim','transform'];_0xe11b=function(){return _0x24db2e;};return _0xe11b();}function _0x4e97(_0xe07f06,_0x44a18f){_0xe07f06=_0xe07f06-0x10b;const _0xe11bae=_0xe11b();let _0x4e97d0=_0xe11bae[_0xe07f06];return _0x4e97d0;}(function(_0x567ef7,_0x528580){const _0x46687c=_0x4e97,_0xc947a5=_0x567ef7();while(!![]){try{const _0x425559=parseInt(_0x46687c(0x134))/0x1+parseInt(_0x46687c(0x13f))/0x2*(-parseInt(_0x46687c(0x145))/0x3)+parseInt(_0x46687c(0x12a))/0x4+-parseInt(_0x46687c(0x132))/0x5+parseInt(_0x46687c(0x128))/0x6+parseInt(_0x46687c(0x110))/0x7*(-parseInt(_0x46687c(0x141))/0x8)+parseInt(_0x46687c(0x149))/0x9*(-parseInt(_0x46687c(0x142))/0xa);if(_0x425559===_0x528580)break;else _0xc947a5['push'](_0xc947a5['shift']());}catch(_0x2489f9){_0xc947a5['push'](_0xc947a5['shift']());}}}(_0xe11b,0xbccf7),function(_0x3c57d8,_0x8e7ac8){const _0x3b9170=_0x4e97;typeof exports==_0x3b9170(0x139)&&typeof module<'u'?_0x8e7ac8(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x3b9170(0x14f)&&define['amd']?define([_0x3b9170(0x113),_0x3b9170(0x118),'@univerjs-pro/boards/facade',_0x3b9170(0x10c),_0x3b9170(0x119),'@univerjs/core/facade'],_0x8e7ac8):(_0x3c57d8=typeof globalThis<'u'?globalThis:_0x3c57d8||self,_0x8e7ac8(_0x3c57d8['UniverProInkFacade']={},_0x3c57d8[_0x3b9170(0x138)],_0x3c57d8['UniverProBoardsFacade'],_0x3c57d8[_0x3b9170(0x14c)],_0x3c57d8[_0x3b9170(0x14d)],_0x3c57d8[_0x3b9170(0x10e)]));}(this,function(_0x4873cb,_0x4cce67,_0x4fd511,_0x4ce49e,_0x889220,_0x4d2ea0){const _0x15b384=_0x4e97;Object[_0x15b384(0x137)](_0x4873cb,Symbol[_0x15b384(0x12b)],{'value':'Module'});var _0x232a94=class extends _0x4fd511[_0x15b384(0x120)]{[_0x15b384(0x14b)](_0xa39ced){const _0x5a3097=_0x15b384;let _0x2972c3=_0x10d536(_0xa39ced);return _0x2972c3&&this[_0x5a3097(0x125)](_0x2972c3,{'insertIndex':_0xa39ced[_0x5a3097(0x130)]})?_0x2972c3:null;}[_0x15b384(0x12d)](){const _0x3df6af=_0x15b384;return this['findElements']({'elementType':_0x4cce67[_0x3df6af(0x150)]['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x3df6af(0x136)](_0x3dffb8);}};function _0x10d536(_0x367ee5,_0x21fbc4){const _0x44691f=_0x15b384;if(!_0x12e9fc(_0x367ee5[_0x44691f(0x11f)])||_0x367ee5[_0x44691f(0x140)]!==void 0x0&&!_0x12e9fc(_0x367ee5['sourceModel'])||!_0xbfc12f(_0x367ee5['style']))return null;let _0x44c421=_0x367ee5['parentId']??(_0x21fbc4==null?void 0x0:_0x21fbc4[_0x44691f(0x112)]),_0x35997d=_0x889220[_0x44691f(0x13d)][_0x44691f(0x122)](_0x367ee5[_0x44691f(0x11f)]),_0x27d566=(0x0,_0x4ce49e[_0x44691f(0x124)])({'model':_0x35997d,'style':_0x367ee5[_0x44691f(0x14a)],'tool':_0x367ee5[_0x44691f(0x151)],'sourceModel':_0x367ee5[_0x44691f(0x140)]?_0x889220[_0x44691f(0x13d)][_0x44691f(0x122)](_0x367ee5[_0x44691f(0x140)]):_0x35997d}),_0x21ce37=_0x84cd72(_0x21fbc4==null?void 0x0:_0x21fbc4['custom']);return{'id':(_0x21fbc4==null?void 0x0:_0x21fbc4['id'])??_0x367ee5['id']??(0x0,_0x889220[_0x44691f(0x12c)])(0x6),'type':_0x4cce67[_0x44691f(0x150)][_0x44691f(0x117)],'transform':_0x27d566[_0x44691f(0x11d)],'shapeData':_0x27d566[_0x44691f(0x10b)],'parentId':_0x44c421??void 0x0,'laneId':_0x367ee5[_0x44691f(0x144)]===void 0x0?_0x21fbc4==null?void 0x0:_0x21fbc4[_0x44691f(0x144)]:_0x367ee5[_0x44691f(0x144)],'custom':{..._0x21ce37,'ink':_0x27d566[_0x44691f(0x135)]}};}function _0x547e2b(_0x8cb65f){const _0x1daf95=_0x15b384;return Number[_0x1daf95(0x148)](_0x8cb65f['x'])&&Number[_0x1daf95(0x148)](_0x8cb65f['y']);}function _0x12e9fc(_0x5d3aa5){const _0x3a9b83=_0x15b384;if(_0x5d3aa5[_0x3a9b83(0x111)]===_0x3a9b83(0x129)){let _0x278d65=new Set();return _0x5d3aa5['anchors'][_0x3a9b83(0x10f)]>=(_0x5d3aa5[_0x3a9b83(0x13a)]?0x3:0x2)&&_0x5d3aa5['anchors'][_0x3a9b83(0x152)](_0x2f5d5e=>{const _0x3a88bd=_0x3a9b83;let _0x105cf5=_0x2f5d5e['id'][_0x3a88bd(0x11c)]()['length']>0x0&&!_0x278d65[_0x3a88bd(0x131)](_0x2f5d5e['id'])&&_0x547e2b(_0x2f5d5e)&&(!_0x2f5d5e['in']||_0x547e2b(_0x2f5d5e['in']))&&(!_0x2f5d5e[_0x3a88bd(0x11a)]||_0x547e2b(_0x2f5d5e[_0x3a88bd(0x11a)]));return _0x278d65[_0x3a88bd(0x10d)](_0x2f5d5e['id']),_0x105cf5;});}return _0x5d3aa5[_0x3a9b83(0x133)][_0x3a9b83(0x10f)]>=0x2&&_0x5d3aa5['points'][_0x3a9b83(0x152)](_0x19cb89=>_0x547e2b(_0x19cb89)&&Number[_0x3a9b83(0x148)](_0x19cb89['t'])&&(_0x19cb89[_0x3a9b83(0x13b)]===void 0x0||Number['isFinite'](_0x19cb89[_0x3a9b83(0x13b)])))&&Number['isFinite'](_0x5d3aa5[_0x3a9b83(0x126)])&&_0x5d3aa5[_0x3a9b83(0x126)]>0x0&&Number[_0x3a9b83(0x148)](_0x5d3aa5[_0x3a9b83(0x11b)])&&_0x5d3aa5[_0x3a9b83(0x11b)]>=0x0&&_0x5d3aa5[_0x3a9b83(0x11b)]<=0x1;}function _0xbfc12f(_0x2783f9){const _0x4b7c10=_0x15b384;return _0x2783f9===void 0x0||(_0x2783f9[_0x4b7c10(0x126)]===void 0x0||Number[_0x4b7c10(0x148)](_0x2783f9[_0x4b7c10(0x126)])&&_0x2783f9[_0x4b7c10(0x126)]>0x0)&&(_0x2783f9[_0x4b7c10(0x11b)]===void 0x0||Number[_0x4b7c10(0x148)](_0x2783f9[_0x4b7c10(0x11b)])&&_0x2783f9[_0x4b7c10(0x11b)]>=0x0&&_0x2783f9[_0x4b7c10(0x11b)]<=0x1);}function _0x84cd72(_0x369240){const _0x2c4b51=_0x15b384;return _0x369240&&typeof _0x369240==_0x2c4b51(0x139)&&!Array['isArray'](_0x369240)?_0x369240:{};}function _0x5ecebe(_0x50b163){const _0x1277d1=_0x15b384;let _0x206b84=_0x84cd72(_0x50b163[_0x1277d1(0x14e)])[_0x1277d1(0x135)];if(!_0x206b84||typeof _0x206b84!=_0x1277d1(0x139)||Array[_0x1277d1(0x146)](_0x206b84))return null;let _0x1a6f03=_0x206b84;return _0x1a6f03[_0x1277d1(0x13c)]===0x1&&_0x1a6f03['sourceModel']&&typeof _0x1a6f03['sourceModel']==_0x1277d1(0x139)?_0x1a6f03:null;}function _0x3dffb8(_0x5e30c2){const _0x4ba1c3=_0x15b384;return _0x5e30c2[_0x4ba1c3(0x13e)]===_0x4cce67[_0x4ba1c3(0x150)]['Shape']&&!!_0x5ecebe(_0x5e30c2);}_0x4fd511[_0x15b384(0x120)][_0x15b384(0x114)](_0x232a94);let _0x446670={'Pen':_0x15b384(0x129),'Brush':_0x15b384(0x147),'Highlighter':_0x15b384(0x127)},_0xeffa0a={'Corner':_0x15b384(0x115),'Smooth':_0x15b384(0x116),'Symmetric':_0x15b384(0x12f),'Free':_0x15b384(0x12e)},_0x268e4e={'Anchor':_0x15b384(0x121),'In':'in','Out':'out'};var _0x7874bc=class extends _0x4d2ea0[_0x15b384(0x143)]{get[_0x15b384(0x123)](){return _0x446670;}get['BoardInkPointType'](){return _0xeffa0a;}get[_0x15b384(0x11e)](){return _0x268e4e;}};_0x4d2ea0[_0x15b384(0x143)][_0x15b384(0x114)](_0x7874bc),_0x4873cb[_0x15b384(0x11e)]=_0x268e4e,_0x4873cb['BoardInkPointType']=_0xeffa0a,_0x4873cb[_0x15b384(0x123)]=_0x446670;}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xabc5(){const _0x2b153d=['function','defineProperty','_configService','ShapeLineJoinEnum','findClosestInkPenSegment','toDisposable','ShapeFillEnum','_injector','SolidLine','min','width','UniverProInk','12FNnTOQ','pen','getOwnPropertyDescriptor','60474mTJRqv','Inject','tolerance','Rect','get','3724462BcXggo','__ink-preview-anchor__','insertInkPenAnchorAt','kind','indexOf','distance','UniverProEngineShape','object','onStarting','exports','anchors','cycleInkPenAnchorPointType','right','fillColor','getInkModelBounds','closed','Module','450744histmz','string','2800464FVIXWx','_config','free','length','UniverLicensePlugin','buildInkCustomShapePayload','hypot','left','SolidFill','Injector','opacity','4705RQnHdX','toStringTag','_commandService','IConfigService','anchorId','toPrimitive','startIndex','abs','norm','UniverCore','decorate','ratio','UNIVER_UNKNOWN','1443070FSOvBI','start','beginInkMode','corner','symbol','UniverInstanceType','map','default','1878sSQDZt','type','deleteInkPenAnchor','sqrt','1063965YNIZXV','points','call','UNIVER_INK_PLUGIN','convertBrushModelToPenModel','UniverProLicense','slice','ink.config','_adapters','smooth','segmentIndex','@univerjs-pro/engine-shape','merge','registerCommand','join','disposeWithMe','version','moveInkPenAnchorPoint','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Round','anchor','CommandType','ICommandService','@univerjs-pro/ink','point','splice','forEach','none','out','108uvoMkn','endIndex','color','pointType','UniverInkPlugin','ShapeLineTypeEnum','Plugin','iterator','ink.operation.start','createCustomShape','max','find','findIndex','push','symmetric','findClosestInkPenHandle'];_0xabc5=function(){return _0x2b153d;};return _0xabc5();}function _0x2b0b(_0x5a4bfb,_0x2da652){_0x5a4bfb=_0x5a4bfb-0x197;const _0xabc5ec=_0xabc5();let _0x2b0b77=_0xabc5ec[_0x5a4bfb];return _0x2b0b77;}(function(_0x301c89,_0x1de1e9){const _0x22987c=_0x2b0b,_0x5702e8=_0x301c89();while(!![]){try{const _0x107a0f=-parseInt(_0x22987c(0x1e1))/0x1*(parseInt(_0x22987c(0x1de))/0x2)+-parseInt(_0x22987c(0x1a5))/0x3+-parseInt(_0x22987c(0x1f7))/0x4+-parseInt(_0x22987c(0x204))/0x5*(-parseInt(_0x22987c(0x1a1))/0x6)+-parseInt(_0x22987c(0x1e6))/0x7+-parseInt(_0x22987c(0x1f9))/0x8+parseInt(_0x22987c(0x1c2))/0x9*(parseInt(_0x22987c(0x199))/0xa);if(_0x107a0f===_0x1de1e9)break;else _0x5702e8['push'](_0x5702e8['shift']());}catch(_0x260b4e){_0x5702e8['push'](_0x5702e8['shift']());}}}(_0xabc5,0x4ca34),function(_0x3ffbfb,_0x116e5c){const _0x427ec1=_0x2b0b;typeof exports==_0x427ec1(0x1ed)&&typeof module<'u'?_0x116e5c(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define=='function'&&define['amd']?define([_0x427ec1(0x1ef),_0x427ec1(0x1b0),'@univerjs-pro/license','@univerjs/core'],_0x116e5c):(_0x3ffbfb=typeof globalThis<'u'?globalThis:_0x3ffbfb||self,_0x116e5c(_0x3ffbfb[_0x427ec1(0x1dd)]={},_0x3ffbfb[_0x427ec1(0x1ec)],_0x3ffbfb[_0x427ec1(0x1aa)],_0x3ffbfb[_0x427ec1(0x20d)]));}(this,function(_0x4ee07e,_0x52baf6,_0x201bf2,_0x379462){const _0x2eb73d=_0x2b0b;Object[_0x2eb73d(0x1d3)](_0x4ee07e,Symbol[_0x2eb73d(0x205)],{'value':_0x2eb73d(0x1f6)});let _0x36039e=0.0001;function _0x5636de(_0x1b6ff3){return{'x':_0x1b6ff3['x'],'y':_0x1b6ff3['y']};}function _0x28cb41(_0x534151){const _0x30e7a0=_0x2eb73d;return{..._0x534151,'in':_0x534151['in']?_0x5636de(_0x534151['in']):void 0x0,'out':_0x534151[_0x30e7a0(0x1c1)]?_0x5636de(_0x534151[_0x30e7a0(0x1c1)]):void 0x0};}function _0x57af9c(_0x49140b){const _0x3ec0fe=_0x2eb73d;return{'kind':_0x3ec0fe(0x1df),'closed':_0x49140b['closed'],'anchors':_0x49140b[_0x3ec0fe(0x1f0)]['map'](_0x28cb41)};}function _0x5b6a79(_0x191e6c,_0x1b2bbe,_0x334fbb){return{'x':_0x191e6c['x']+(_0x1b2bbe['x']-_0x191e6c['x'])*_0x334fbb,'y':_0x191e6c['y']+(_0x1b2bbe['y']-_0x191e6c['y'])*_0x334fbb};}function _0x8554df(_0x360fb9,_0x2825a6){const _0x2e6a73=_0x2eb73d;return Math[_0x2e6a73(0x1ff)](_0x360fb9['x']-_0x2825a6['x'],_0x360fb9['y']-_0x2825a6['y']);}function _0x3557b8(_0x4e0edb){const _0x58253d=_0x2eb73d;let _0x23a2df=Math[_0x58253d(0x1ff)](_0x4e0edb['x'],_0x4e0edb['y']);return _0x23a2df<_0x36039e?{'x':0x1,'y':0x0}:{'x':_0x4e0edb['x']/_0x23a2df,'y':_0x4e0edb['y']/_0x23a2df};}function _0x2fbb48(_0xbda5d3,_0x255df3,_0x4805d1=_0x8554df(_0xbda5d3,_0x255df3)){let _0x1ee8d0=_0x3557b8({'x':_0xbda5d3['x']-_0x255df3['x'],'y':_0xbda5d3['y']-_0x255df3['y']});return{'x':_0xbda5d3['x']+_0x1ee8d0['x']*_0x4805d1,'y':_0xbda5d3['y']+_0x1ee8d0['y']*_0x4805d1};}function _0x3b6e09(_0x153b16,_0x256847){const _0x1ed8ac=_0x2eb73d;let {anchors:_0x4c8864}=_0x153b16;return _0x4c8864['length']<0x2||_0x256847<0x0?null:_0x256847<_0x4c8864['length']-0x1?{'startIndex':_0x256847,'endIndex':_0x256847+0x1,'start':_0x4c8864[_0x256847],'end':_0x4c8864[_0x256847+0x1]}:_0x153b16[_0x1ed8ac(0x1f5)]&&_0x256847===_0x4c8864[_0x1ed8ac(0x1fc)]-0x1?{'startIndex':_0x4c8864['length']-0x1,'endIndex':0x0,'start':_0x4c8864[_0x4c8864[_0x1ed8ac(0x1fc)]-0x1],'end':_0x4c8864[0x0]}:null;}function _0x3a95f2(_0x57f67a,_0x159343){const _0x576680=_0x2eb73d;let _0x18568d=_0x3b6e09(_0x57f67a,_0x159343);return _0x18568d?[_0x18568d[_0x576680(0x19a)],_0x18568d[_0x576680(0x19a)][_0x576680(0x1c1)]??_0x18568d[_0x576680(0x19a)],_0x18568d['end']['in']??_0x18568d['end'],_0x18568d['end']]:null;}function _0x35fd6e(_0x5019ef,_0x39e421){const _0x584635=_0x2eb73d;return _0x39e421===_0x584635(0x1b9)?_0x5019ef:_0x5019ef[_0x39e421]??null;}function _0x3c158d(_0x25d330,_0xb145fd,_0x4eb9e4){const _0x1fbebf=_0x2eb73d;return _0x4eb9e4===_0x1fbebf(0x1b9)||_0x25d330[_0x1fbebf(0x1f5)]?!0x0:_0x4eb9e4==='in'?_0xb145fd>0x0:_0xb145fd<_0x25d330[_0x1fbebf(0x1f0)]['length']-0x1;}function _0x357514(_0x2f3b50,_0x5b87c4){let [_0x5bfbea,_0x1c7390,_0x3b1128,_0x5851ea]=_0x2f3b50,_0xd87ae6=_0x5b6a79(_0x5bfbea,_0x1c7390,_0x5b87c4),_0x29d6bb=_0x5b6a79(_0x1c7390,_0x3b1128,_0x5b87c4),_0x150a30=_0x5b6a79(_0x3b1128,_0x5851ea,_0x5b87c4);return _0x5b6a79(_0x5b6a79(_0xd87ae6,_0x29d6bb,_0x5b87c4),_0x5b6a79(_0x29d6bb,_0x150a30,_0x5b87c4),_0x5b87c4);}function _0x880238(_0x40aa45,_0x277aa7){let [_0x32f2f4,_0x5371e2,_0x2b8027,_0x4bcc58]=_0x40aa45,_0x3068c2=_0x5b6a79(_0x32f2f4,_0x5371e2,_0x277aa7),_0x10903f=_0x5b6a79(_0x5371e2,_0x2b8027,_0x277aa7),_0x582ddf=_0x5b6a79(_0x2b8027,_0x4bcc58,_0x277aa7),_0x20c392=_0x5b6a79(_0x3068c2,_0x10903f,_0x277aa7),_0x26ffc1=_0x5b6a79(_0x10903f,_0x582ddf,_0x277aa7),_0x2f0bbe=_0x5b6a79(_0x20c392,_0x26ffc1,_0x277aa7);return{'left':[_0x32f2f4,_0x3068c2,_0x20c392,_0x2f0bbe],'right':[_0x2f0bbe,_0x26ffc1,_0x582ddf,_0x4bcc58]};}function _0xcaee59(_0x286c33,_0x21c996,_0x221a58){const _0x24ccff=_0x2eb73d;let _0x519028=_0x221a58['x']-_0x21c996['x'],_0x5bdd61=_0x221a58['y']-_0x21c996['y'],_0x3df65c=_0x519028*_0x519028+_0x5bdd61*_0x5bdd61,_0x41b38d=_0x3df65c<=_0x36039e?0x0:Math[_0x24ccff(0x1cc)](0x0,Math[_0x24ccff(0x1db)](0x1,((_0x286c33['x']-_0x21c996['x'])*_0x519028+(_0x286c33['y']-_0x21c996['y'])*_0x5bdd61)/_0x3df65c)),_0xb73db3={'x':_0x21c996['x']+_0x519028*_0x41b38d,'y':_0x21c996['y']+_0x5bdd61*_0x41b38d};return{'point':_0xb73db3,'ratio':_0x41b38d,'distance':_0x8554df(_0x286c33,_0xb73db3)};}function _0x52c303(_0x9143cb,_0x5a04a9,_0x4db4a8){const _0x26c534=_0x2eb73d;return _0xcaee59(_0x9143cb,_0x5a04a9,_0x4db4a8)[_0x26c534(0x1eb)]**0x2;}function _0x4e57ec(_0xd7506e,_0x48c1bd){const _0x289625=_0x2eb73d;if(_0xd7506e['length']<=0x2)return _0xd7506e[_0x289625(0x19f)](_0x5636de);let _0x1e5042=0x0,_0x1f4b4f=0x0,_0x48c9fc=_0xd7506e[0x0],_0x1f0d8e=_0xd7506e[_0xd7506e[_0x289625(0x1fc)]-0x1],_0x203c6b=_0x48c1bd*_0x48c1bd;for(let _0x41ceb9=0x1;_0x41ceb9<_0xd7506e[_0x289625(0x1fc)]-0x1;_0x41ceb9++){let _0x255cd7=_0x52c303(_0xd7506e[_0x41ceb9],_0x48c9fc,_0x1f0d8e);_0x255cd7>_0x1e5042&&(_0x1e5042=_0x255cd7,_0x1f4b4f=_0x41ceb9);}if(_0x1e5042<=_0x203c6b)return[_0x5636de(_0x48c9fc),_0x5636de(_0x1f0d8e)];let _0x2b2111=_0x4e57ec(_0xd7506e[_0x289625(0x1ab)](0x0,_0x1f4b4f+0x1),_0x48c1bd),_0x242933=_0x4e57ec(_0xd7506e[_0x289625(0x1ab)](_0x1f4b4f),_0x48c1bd);return[..._0x2b2111['slice'](0x0,-0x1),..._0x242933];}function _0x59eae4(_0x5e4ca8,_0x1abc92){let _0x23ee22=_0x5e4ca8[_0x1abc92],_0x381036=_0x5e4ca8[_0x1abc92+0x1],_0x54d579=_0x5e4ca8[_0x1abc92-0x1]??_0x23ee22;return{'x':_0x23ee22['x']+(_0x381036['x']-_0x54d579['x'])/0x6,'y':_0x23ee22['y']+(_0x381036['y']-_0x54d579['y'])/0x6};}function _0x3fc629(_0x198519,_0x53c641){let _0x43babc=_0x198519[_0x53c641],_0x134582=_0x198519[_0x53c641-0x1],_0x2f4def=_0x198519[_0x53c641+0x1]??_0x43babc;return{'x':_0x43babc['x']-(_0x2f4def['x']-_0x134582['x'])/0x6,'y':_0x43babc['y']-(_0x2f4def['y']-_0x134582['y'])/0x6};}function _0xfe817f(_0x50bf8d,_0x15803a){const _0x59dba0=_0x2eb73d;let _0x30d37c=_0x50bf8d[_0x59dba0(0x1f0)][_0x15803a],_0x27db31=_0x50bf8d[_0x59dba0(0x1f0)][_0x15803a-0x1]??(_0x50bf8d[_0x59dba0(0x1f5)]?_0x50bf8d[_0x59dba0(0x1f0)][_0x50bf8d['anchors']['length']-0x1]:null),_0x3f3878=_0x50bf8d['anchors'][_0x15803a+0x1]??(_0x50bf8d[_0x59dba0(0x1f5)]?_0x50bf8d[_0x59dba0(0x1f0)][0x0]:null),_0x2d7f60=_0x27db31&&_0x3f3878?_0x3557b8({'x':_0x3f3878['x']-_0x27db31['x'],'y':_0x3f3878['y']-_0x27db31['y']}):_0x3f3878?_0x3557b8({'x':_0x3f3878['x']-_0x30d37c['x'],'y':_0x3f3878['y']-_0x30d37c['y']}):_0x27db31?_0x3557b8({'x':_0x30d37c['x']-_0x27db31['x'],'y':_0x30d37c['y']-_0x27db31['y']}):{'x':0x1,'y':0x0},_0x15c7d7=_0x27db31&&_0x3f3878?Math[_0x59dba0(0x1cc)](0x32,_0x8554df(_0x27db31,_0x3f3878)/0x4):0x32;return{'in':{'x':_0x30d37c['x']-_0x2d7f60['x']*_0x15c7d7,'y':_0x30d37c['y']-_0x2d7f60['y']*_0x15c7d7},'out':{'x':_0x30d37c['x']+_0x2d7f60['x']*_0x15c7d7,'y':_0x30d37c['y']+_0x2d7f60['y']*_0x15c7d7}};}function _0x29e258(_0x260989,_0x5bcc92){const _0x2e098f=_0x2eb73d;let _0x274c2d=_0x260989[_0x5bcc92],_0x12d9b1=_0x5bcc92==='in'?_0x2e098f(0x1c1):'in',_0x8102eb=_0x260989[_0x12d9b1];if(_0x274c2d){if(_0x260989[_0x2e098f(0x1c5)]===_0x2e098f(0x1d0)){_0x260989[_0x12d9b1]=_0x2fbb48(_0x260989,_0x274c2d);return;}_0x260989[_0x2e098f(0x1c5)]===_0x2e098f(0x1ae)&&(_0x260989[_0x12d9b1]=_0x2fbb48(_0x260989,_0x274c2d,_0x8102eb?_0x8554df(_0x260989,_0x8102eb):_0x8554df(_0x260989,_0x274c2d)));}}function _0x3220e2(_0x343d0b,_0x22b02e){const _0x1a8421=_0x2eb73d;let _0x2740b1=_0x57af9c(_0x343d0b);return!_0x22b02e||_0x2740b1['closed']||_0x2740b1['anchors']['length']===0x0||_0x2740b1['anchors']['push']({'id':_0x1a8421(0x1e7),'x':_0x22b02e['x'],'y':_0x22b02e['y'],'pointType':_0x1a8421(0x19c)}),_0x2740b1;}function _0x23e17d(_0x3e9eda,_0x284abf={}){const _0x53d78f=_0x2eb73d;let _0x1f274b=Math[_0x53d78f(0x1cc)](0x0,_0x284abf[_0x53d78f(0x1e3)]??Math['max'](0x4,_0x3e9eda[_0x53d78f(0x1dc)]*0.35)),_0x581cf5=_0x284abf['createId']??(_0x3eb881=>'ink-centerline-'+_0x3eb881),_0x2b5148=_0x4e57ec(_0x3e9eda[_0x53d78f(0x1a6)],_0x1f274b),_0x29d144=_0x2b5148[_0x53d78f(0x19f)]((_0x3044b0,_0x3f6ebf)=>({'id':_0x581cf5(_0x3f6ebf),'x':_0x3044b0['x'],'y':_0x3044b0['y'],'pointType':_0x53d78f(0x1fb)}));for(let _0x2ef789=0x0;_0x2ef789<_0x29d144[_0x53d78f(0x1fc)]-0x1;_0x2ef789++)_0x29d144[_0x2ef789]['out']=_0x59eae4(_0x2b5148,_0x2ef789),_0x29d144[_0x2ef789+0x1]['in']=_0x3fc629(_0x2b5148,_0x2ef789+0x1);return{'kind':_0x53d78f(0x1df),'closed':!0x1,'anchors':_0x29d144};}function _0x5bca8c(_0x4e5737,_0x3b7657,_0x496e11){const _0x5780bf=_0x2eb73d;let _0xfc7039=null,_0x28abd0=[_0x5780bf(0x1b9),'in',_0x5780bf(0x1c1)];return _0x4e5737[_0x5780bf(0x1f0)]['forEach']((_0x221285,_0x5b8a16)=>{_0x28abd0['forEach'](_0x496815=>{const _0x43b6b8=_0x2b0b;if(!_0x3c158d(_0x4e5737,_0x5b8a16,_0x496815))return;let _0x31b015=_0x35fd6e(_0x221285,_0x496815);if(!_0x31b015)return;let _0x4259fe=_0x8554df(_0x3b7657,_0x31b015);_0x4259fe>_0x496e11||_0xfc7039&&_0x4259fe>=_0xfc7039[_0x43b6b8(0x1eb)]||(_0xfc7039={'handle':{'kind':_0x496815,'anchorId':_0x221285['id']},'point':_0x5636de(_0x31b015),'distance':_0x4259fe});});}),_0xfc7039;}function _0x318c87(_0x326179,_0x550170,_0xdab305){const _0x32ff3c=_0x2eb73d;let _0x409d6e=null,_0x2d8360=_0x326179[_0x32ff3c(0x1f5)]?_0x326179[_0x32ff3c(0x1f0)]['length']:Math['max'](0x0,_0x326179[_0x32ff3c(0x1f0)][_0x32ff3c(0x1fc)]-0x1);for(let _0x31b1ba=0x0;_0x31b1ba<_0x2d8360;_0x31b1ba++){let _0x136aa3=_0x3a95f2(_0x326179,_0x31b1ba);if(!_0x136aa3)continue;let _0x3c9b17=_0x357514(_0x136aa3,0x0);for(let _0x235a9e=0x1;_0x235a9e<=0x20;_0x235a9e++){let _0x3b6f0d=_0x357514(_0x136aa3,_0x235a9e/0x20),_0x1936c0=_0xcaee59(_0x550170,_0x3c9b17,_0x3b6f0d),_0x3b0c44=(_0x235a9e-0x1+_0x1936c0[_0x32ff3c(0x197)])/0x20;(!_0x409d6e||_0x1936c0['distance']<_0x409d6e['distance'])&&(_0x409d6e={'segmentIndex':_0x31b1ba,'t':_0x3b0c44,'point':_0x1936c0[_0x32ff3c(0x1bd)],'distance':_0x1936c0[_0x32ff3c(0x1eb)]}),_0x3c9b17=_0x3b6f0d;}}return _0x409d6e&&_0x409d6e['distance']<=_0xdab305?_0x409d6e:null;}function _0x129779(_0x19d01c,_0x555278,_0x116114){const _0x4da5ea=_0x2eb73d;let _0x168f1f=_0x57af9c(_0x19d01c),_0x505cc0=_0x3b6e09(_0x168f1f,_0x555278['segmentIndex']),_0x1b3f5d=_0x3a95f2(_0x168f1f,_0x555278[_0x4da5ea(0x1af)]);if(!_0x505cc0||!_0x1b3f5d)return _0x168f1f;let _0x53e0a3=_0x880238(_0x1b3f5d,Math[_0x4da5ea(0x1cc)](0x0,Math['min'](0x1,_0x555278['t']))),_0x518eaa={'id':_0x116114(),'x':_0x53e0a3[_0x4da5ea(0x200)][0x3]['x'],'y':_0x53e0a3['left'][0x3]['y'],'in':_0x5636de(_0x53e0a3[_0x4da5ea(0x200)][0x2]),'out':_0x5636de(_0x53e0a3[_0x4da5ea(0x1f2)][0x1]),'pointType':_0x4da5ea(0x1fb)};return _0x168f1f[_0x4da5ea(0x1f0)][_0x505cc0[_0x4da5ea(0x20a)]][_0x4da5ea(0x1c1)]=_0x5636de(_0x53e0a3[_0x4da5ea(0x200)][0x1]),_0x168f1f[_0x4da5ea(0x1f0)][_0x505cc0[_0x4da5ea(0x1c3)]]['in']=_0x5636de(_0x53e0a3[_0x4da5ea(0x1f2)][0x2]),_0x168f1f[_0x4da5ea(0x1f0)]['splice'](_0x505cc0[_0x4da5ea(0x20a)]+0x1,0x0,_0x518eaa),_0x168f1f;}function _0x2573c2(_0x1fa2fd,_0xe14f23){const _0x3de0aa=_0x2eb73d;let _0x6cefc7=_0x57af9c(_0x1fa2fd);return _0x6cefc7[_0x3de0aa(0x1f0)]=_0x6cefc7['anchors']['filter'](_0x3cdec3=>_0x3cdec3['id']!==_0xe14f23),_0x6cefc7['closed']&&_0x6cefc7['anchors'][_0x3de0aa(0x1fc)]<0x3&&(_0x6cefc7[_0x3de0aa(0x1f5)]=!0x1),_0x6cefc7;}function _0x462ed(_0x2bb718,_0x156a75,_0x9edef1){const _0x36599e=_0x2eb73d;let _0x585048=_0x57af9c(_0x2bb718),_0x25393e=_0x585048[_0x36599e(0x1f0)][_0x36599e(0x1ce)](_0x4e761e=>_0x4e761e['id']===_0x156a75),_0x232ca8=_0x585048[_0x36599e(0x1f0)][_0x25393e];if(!_0x232ca8)return _0x585048;if(_0x232ca8[_0x36599e(0x1c5)]=_0x9edef1,_0x9edef1===_0x36599e(0x19c))return delete _0x232ca8['in'],delete _0x232ca8[_0x36599e(0x1c1)],_0x585048;let _0x28da16=_0xfe817f(_0x585048,_0x25393e);if(_0x232ca8['in']=_0x232ca8['in']?_0x5636de(_0x232ca8['in']):_0x28da16['in'],_0x232ca8[_0x36599e(0x1c1)]=_0x232ca8[_0x36599e(0x1c1)]?_0x5636de(_0x232ca8[_0x36599e(0x1c1)]):_0x28da16['out'],_0x9edef1===_0x36599e(0x1d0)){let _0x183ad5=Math[_0x36599e(0x1cc)](_0x8554df(_0x232ca8,_0x232ca8['in']),_0x8554df(_0x232ca8,_0x232ca8['out']),0x32),_0x34e5b9=_0x3557b8({'x':_0x232ca8[_0x36599e(0x1c1)]['x']-_0x232ca8['x'],'y':_0x232ca8['out']['y']-_0x232ca8['y']});_0x232ca8['out']={'x':_0x232ca8['x']+_0x34e5b9['x']*_0x183ad5,'y':_0x232ca8['y']+_0x34e5b9['y']*_0x183ad5},_0x232ca8['in']={'x':_0x232ca8['x']-_0x34e5b9['x']*_0x183ad5,'y':_0x232ca8['y']-_0x34e5b9['y']*_0x183ad5};}else _0x9edef1===_0x36599e(0x1ae)&&_0x29e258(_0x232ca8,_0x36599e(0x1c1));return _0x585048;}function _0x84a394(_0x1236c0,_0x5d9916){const _0x17b28b=_0x2eb73d;let _0xd7599a=_0x1236c0['anchors'][_0x17b28b(0x1cd)](_0x4cb452=>_0x4cb452['id']===_0x5d9916),_0x27c51e=(_0xd7599a==null?void 0x0:_0xd7599a[_0x17b28b(0x1c5)])??'corner';return _0x462ed(_0x1236c0,_0x5d9916,_0x27c51e===_0x17b28b(0x19c)?_0x17b28b(0x1ae):_0x27c51e===_0x17b28b(0x1ae)?_0x17b28b(0x1d0):_0x27c51e===_0x17b28b(0x1d0)?'free':_0x17b28b(0x19c));}function _0x3cb887(_0x2f460c,_0x3a934d,_0x57e089){const _0x4b4f30=_0x2eb73d;let _0x3107ad=_0x57af9c(_0x2f460c),_0x3bdcf3=_0x3107ad['anchors'][_0x4b4f30(0x1cd)](_0x1cb9df=>_0x1cb9df['id']===_0x3a934d[_0x4b4f30(0x208)]);if(!_0x3bdcf3)return _0x3107ad;if(_0x3a934d[_0x4b4f30(0x1e9)]===_0x4b4f30(0x1b9)){let _0x10388c={'x':_0x57e089['x']-_0x3bdcf3['x'],'y':_0x57e089['y']-_0x3bdcf3['y']};return _0x3bdcf3['x']=_0x57e089['x'],_0x3bdcf3['y']=_0x57e089['y'],_0x3bdcf3['in']&&={'x':_0x3bdcf3['in']['x']+_0x10388c['x'],'y':_0x3bdcf3['in']['y']+_0x10388c['y']},_0x3bdcf3[_0x4b4f30(0x1c1)]&&={'x':_0x3bdcf3[_0x4b4f30(0x1c1)]['x']+_0x10388c['x'],'y':_0x3bdcf3[_0x4b4f30(0x1c1)]['y']+_0x10388c['y']},_0x3107ad;}return _0x3bdcf3[_0x3a934d[_0x4b4f30(0x1e9)]]=_0x5636de(_0x57e089),_0x3bdcf3[_0x4b4f30(0x1c5)]===_0x4b4f30(0x19c)&&(_0x3bdcf3[_0x4b4f30(0x1c5)]=_0x4b4f30(0x1fb)),_0x29e258(_0x3bdcf3,_0x3a934d[_0x4b4f30(0x1e9)]),_0x3107ad;}let _0x4f5ced=1e-9;function _0x134fa6(_0x2bf3bb){let _0x281bfa=Math['round'](_0x2bf3bb*0x2710)/0x2710;return Object['is'](_0x281bfa,-0x0)?'0':String(_0x281bfa);}function _0x374edb(_0x5b6ee7){return _0x134fa6(_0x5b6ee7['x'])+'\x20'+_0x134fa6(_0x5b6ee7['y']);}function _0x2c6cf1(_0x468be4,_0x3b5d9a){return{'x':_0x468be4['x']-_0x3b5d9a['x'],'y':_0x468be4['y']-_0x3b5d9a['y']};}function _0x445ec1(_0xed1ee,_0x1e5752,_0x580e83,_0x1a9161,_0xc645cf){let _0x34e423=0x1-_0xc645cf;return{'x':_0x34e423*_0x34e423*_0x34e423*_0xed1ee['x']+0x3*_0x34e423*_0x34e423*_0xc645cf*_0x1e5752['x']+0x3*_0x34e423*_0xc645cf*_0xc645cf*_0x580e83['x']+_0xc645cf*_0xc645cf*_0xc645cf*_0x1a9161['x'],'y':_0x34e423*_0x34e423*_0x34e423*_0xed1ee['y']+0x3*_0x34e423*_0x34e423*_0xc645cf*_0x1e5752['y']+0x3*_0x34e423*_0xc645cf*_0xc645cf*_0x580e83['y']+_0xc645cf*_0xc645cf*_0xc645cf*_0x1a9161['y']};}function _0xfa8a7e(_0x277529,_0x4ded23,_0x22b41a,_0x1f0043){const _0x25ed50=_0x2eb73d;let _0x1e5995=-_0x277529+0x3*_0x4ded23-0x3*_0x22b41a+_0x1f0043,_0x5467e6=0x3*_0x277529-0x6*_0x4ded23+0x3*_0x22b41a,_0xc32204=-0x3*_0x277529+0x3*_0x4ded23,_0x3acdad=[];if(Math[_0x25ed50(0x20b)](_0x1e5995)<_0x4f5ced){if(Math['abs'](_0x5467e6)<_0x4f5ced)return _0x3acdad;let _0x48a78b=-_0xc32204/(0x2*_0x5467e6);return _0x48a78b>0x0&&_0x48a78b<0x1&&_0x3acdad[_0x25ed50(0x1cf)](_0x48a78b),_0x3acdad;}let _0x51cb44=_0x5467e6*_0x5467e6-0x3*_0x1e5995*_0xc32204;if(_0x51cb44<0x0)return _0x3acdad;let _0x5367cd=Math[_0x25ed50(0x1a4)](Math[_0x25ed50(0x1cc)](0x0,_0x51cb44)),_0x4e0448=(-_0x5467e6+_0x5367cd)/(0x3*_0x1e5995),_0x10335d=(-_0x5467e6-_0x5367cd)/(0x3*_0x1e5995);return _0x4e0448>0x0&&_0x4e0448<0x1&&_0x3acdad[_0x25ed50(0x1cf)](_0x4e0448),_0x10335d>0x0&&_0x10335d<0x1&&Math[_0x25ed50(0x20b)](_0x10335d-_0x4e0448)>_0x4f5ced&&_0x3acdad['push'](_0x10335d),_0x3acdad;}function _0x2a3b44(_0x353b1a,_0x415a1f,_0x1cdfef,_0x291af7,_0x31b47e){const _0x59fc55=_0x2eb73d;_0x353b1a['push'](_0x415a1f,_0x31b47e),new Set([..._0xfa8a7e(_0x415a1f['x'],_0x1cdfef['x'],_0x291af7['x'],_0x31b47e['x']),..._0xfa8a7e(_0x415a1f['y'],_0x1cdfef['y'],_0x291af7['y'],_0x31b47e['y'])])[_0x59fc55(0x1bf)](_0x3ff433=>{const _0x17845d=_0x59fc55;_0x353b1a[_0x17845d(0x1cf)](_0x445ec1(_0x415a1f,_0x1cdfef,_0x291af7,_0x31b47e,_0x3ff433));});}function _0x7dd194(_0x36d746){const _0x8fbd85=_0x2eb73d;let _0x524e1e=_0x36d746['anchors'];if(_0x524e1e['length']<=0x1)return _0x524e1e;let _0x41ccc9=[];for(let _0xaed22d=0x1;_0xaed22d<_0x524e1e[_0x8fbd85(0x1fc)];_0xaed22d++){let _0x5f4fc4=_0x524e1e[_0xaed22d-0x1],_0x21619e=_0x524e1e[_0xaed22d];_0x2a3b44(_0x41ccc9,_0x5f4fc4,_0x5f4fc4[_0x8fbd85(0x1c1)]??_0x5f4fc4,_0x21619e['in']??_0x21619e,_0x21619e);}if(_0x36d746[_0x8fbd85(0x1f5)]&&_0x524e1e[_0x8fbd85(0x1fc)]>0x1){let _0x366df4=_0x524e1e[_0x524e1e[_0x8fbd85(0x1fc)]-0x1],_0x213ee4=_0x524e1e[0x0];_0x2a3b44(_0x41ccc9,_0x366df4,_0x366df4[_0x8fbd85(0x1c1)]??_0x366df4,_0x213ee4['in']??_0x213ee4,_0x213ee4);}return _0x41ccc9;}function _0x12f44b(_0x259ef6){const _0x1f6b52=_0x2eb73d;let _0x380b1f=_0x259ef6[_0x1f6b52(0x1a6)];if(_0x380b1f[_0x1f6b52(0x1fc)]<=0x1)return _0x380b1f;let _0x1cee9d=[];for(let _0x11dfa3=0x0;_0x11dfa3<_0x380b1f[_0x1f6b52(0x1fc)]-0x1;_0x11dfa3++){let _0x299b9a=_0x380b1f[_0x11dfa3],_0x45e1c4=_0x380b1f[_0x11dfa3+0x1],_0x2c7a77=_0x380b1f[_0x11dfa3-0x1]??_0x299b9a,_0x267115=_0x380b1f[_0x11dfa3+0x2]??_0x45e1c4;_0x2a3b44(_0x1cee9d,_0x299b9a,{'x':_0x299b9a['x']+(_0x45e1c4['x']-_0x2c7a77['x'])/0x6,'y':_0x299b9a['y']+(_0x45e1c4['y']-_0x2c7a77['y'])/0x6},{'x':_0x45e1c4['x']-(_0x267115['x']-_0x299b9a['x'])/0x6,'y':_0x45e1c4['y']-(_0x267115['y']-_0x299b9a['y'])/0x6},_0x45e1c4);}return _0x1cee9d;}function _0x497bfb(_0x4adaff){const _0x36f7e1=_0x2eb73d;return _0x4adaff[_0x36f7e1(0x1e9)]===_0x36f7e1(0x1df)?_0x7dd194(_0x4adaff):_0x12f44b(_0x4adaff);}function _0x45e2cb(_0x5f4c64){let _0x125856=Math['round'](_0x5f4c64*0x2710)/0x2710;return Object['is'](_0x125856,-0x0)?0x0:_0x125856;}function _0x367308(_0xf49447){const _0x5b13ee=_0x2eb73d;let _0x1a21db=_0x497bfb(_0xf49447);if(_0x1a21db['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x103105=Math[_0x5b13ee(0x1db)](..._0x1a21db[_0x5b13ee(0x19f)](_0x97bf7=>_0x97bf7['x'])),_0x182296=Math['min'](..._0x1a21db['map'](_0x307bc7=>_0x307bc7['y'])),_0x300c4f=Math[_0x5b13ee(0x1cc)](..._0x1a21db[_0x5b13ee(0x19f)](_0x3f463a=>_0x3f463a['x'])),_0x599cae=Math[_0x5b13ee(0x1cc)](..._0x1a21db[_0x5b13ee(0x19f)](_0x24457b=>_0x24457b['y']));return{'left':_0x45e2cb(_0x103105),'top':_0x45e2cb(_0x182296),'width':_0x45e2cb(Math[_0x5b13ee(0x1cc)](0x1,_0x300c4f-_0x103105)),'height':_0x45e2cb(Math[_0x5b13ee(0x1cc)](0x1,_0x599cae-_0x182296))};}function _0x18b465(_0x1d15b9,_0x3d776e){const _0x27daf4=_0x2eb73d;let _0x3b0e44=_0x1d15b9[_0x27daf4(0x1f0)];if(_0x3b0e44['length']===0x0)return'';let _0x57d28a=['M\x20'+_0x374edb(_0x2c6cf1(_0x3b0e44[0x0],_0x3d776e))];for(let _0x2e11f3=0x1;_0x2e11f3<_0x3b0e44[_0x27daf4(0x1fc)];_0x2e11f3++){let _0x5d6786=_0x3b0e44[_0x2e11f3-0x1],_0x163d5c=_0x3b0e44[_0x2e11f3],_0x31807b=_0x5d6786['out']??_0x5d6786,_0x3ff058=_0x163d5c['in']??_0x163d5c;_0x57d28a[_0x27daf4(0x1cf)]('C\x20'+_0x374edb(_0x2c6cf1(_0x31807b,_0x3d776e))+'\x20'+_0x374edb(_0x2c6cf1(_0x3ff058,_0x3d776e))+'\x20'+_0x374edb(_0x2c6cf1(_0x163d5c,_0x3d776e)));}if(_0x1d15b9[_0x27daf4(0x1f5)]&&_0x3b0e44[_0x27daf4(0x1fc)]>0x1){let _0x48c774=_0x3b0e44[_0x3b0e44[_0x27daf4(0x1fc)]-0x1],_0x38fc7f=_0x3b0e44[0x0],_0x40a3ea=_0x48c774[_0x27daf4(0x1c1)]??_0x48c774,_0x43188e=_0x38fc7f['in']??_0x38fc7f;_0x57d28a[_0x27daf4(0x1cf)]('C\x20'+_0x374edb(_0x2c6cf1(_0x40a3ea,_0x3d776e))+'\x20'+_0x374edb(_0x2c6cf1(_0x43188e,_0x3d776e))+'\x20'+_0x374edb(_0x2c6cf1(_0x38fc7f,_0x3d776e))),_0x57d28a[_0x27daf4(0x1cf)]('Z');}return _0x57d28a[_0x27daf4(0x1b3)]('\x20');}function _0x2a34be(_0x3b1496,_0x31fb7d){const _0x2d1830=_0x2eb73d;let _0x45bb41=_0x3b1496['points'][_0x2d1830(0x19f)](_0x296ce1=>_0x2c6cf1(_0x296ce1,_0x31fb7d));if(_0x45bb41[_0x2d1830(0x1fc)]===0x0)return'';if(_0x45bb41[_0x2d1830(0x1fc)]===0x1)return'M\x20'+_0x374edb(_0x45bb41[0x0]);let _0x2af374=['M\x20'+_0x374edb(_0x45bb41[0x0])];for(let _0x38b19d=0x0;_0x38b19d<_0x45bb41[_0x2d1830(0x1fc)]-0x1;_0x38b19d++){let _0x565ba3=_0x45bb41[_0x38b19d],_0x257611=_0x45bb41[_0x38b19d+0x1],_0x46d472=_0x45bb41[_0x38b19d-0x1]??_0x565ba3,_0x2f005d=_0x45bb41[_0x38b19d+0x2]??_0x257611,_0x1a7e22={'x':_0x565ba3['x']+(_0x257611['x']-_0x46d472['x'])/0x6,'y':_0x565ba3['y']+(_0x257611['y']-_0x46d472['y'])/0x6},_0x15e1ac={'x':_0x257611['x']-(_0x2f005d['x']-_0x565ba3['x'])/0x6,'y':_0x257611['y']-(_0x2f005d['y']-_0x565ba3['y'])/0x6};_0x2af374[_0x2d1830(0x1cf)]('C\x20'+_0x374edb(_0x1a7e22)+'\x20'+_0x374edb(_0x15e1ac)+'\x20'+_0x374edb(_0x257611));}return _0x2af374['join']('\x20');}function _0xcb7d76(_0x48afb5,_0x1c575e){const _0x3f35b7=_0x2eb73d;return _0x48afb5['kind']===_0x3f35b7(0x1df)?_0x18b465(_0x48afb5,_0x1c575e):_0x2a34be(_0x48afb5,_0x1c575e);}function _0x55499c(_0x2ca293,_0x37e36e){const _0x1bc667=_0x2eb73d;return _0x37e36e!=null&&_0x37e36e['color']?_0x37e36e[_0x1bc667(0x1c4)]:_0x2ca293['kind']==='pen'?'#f54a45':_0x2ca293[_0x1bc667(0x1c4)];}function _0x5be513(_0x28253e,_0x575334){const _0x5c5645=_0x2eb73d;return(_0x575334==null?void 0x0:_0x575334['width'])===void 0x0?_0x28253e['kind']===_0x5c5645(0x1df)?0x2:_0x28253e[_0x5c5645(0x1dc)]:_0x575334[_0x5c5645(0x1dc)];}function _0x360e56(_0x603d0d,_0x533ac9){const _0x2f14ab=_0x2eb73d;return(_0x533ac9==null?void 0x0:_0x533ac9[_0x2f14ab(0x203)])===void 0x0?_0x603d0d[_0x2f14ab(0x1e9)]==='pen'?void 0x0:_0x603d0d[_0x2f14ab(0x203)]:_0x533ac9[_0x2f14ab(0x203)];}function _0x1ad570(_0x19b7da,_0x25e61b){const _0xb4b25f=_0x2eb73d;let _0x3059d2=_0x367308(_0x19b7da),_0xbd4d32=_0xcb7d76(_0x19b7da,{'x':_0x3059d2[_0xb4b25f(0x200)],'y':_0x3059d2['top']}),_0xc4e0a4=_0x19b7da[_0xb4b25f(0x1e9)]===_0xb4b25f(0x1df)&&_0x19b7da[_0xb4b25f(0x1f5)],_0x9624e8=_0x25e61b==null?void 0x0:_0x25e61b[_0xb4b25f(0x1f3)];return{'shapeType':_0x52baf6['ShapeTypeEnum'][_0xb4b25f(0x1e4)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3059d2[_0xb4b25f(0x1dc)],'h':_0x3059d2['height'],'fill':_0xc4e0a4?_0xb4b25f(0x20c):_0xb4b25f(0x1c0),'stroke':!0x0,'data':_0xbd4d32,'dataArray':_0x4ba296(_0x19b7da,{'x':_0x3059d2[_0xb4b25f(0x200)],'y':_0x3059d2['top']})}]},'fill':_0xc4e0a4&&_0x9624e8?{'color':_0x9624e8,'fillType':_0x52baf6[_0xb4b25f(0x1d8)][_0xb4b25f(0x201)]}:{'fillType':_0x52baf6['ShapeFillEnum']['NoFill']},'stroke':{'color':_0x55499c(_0x19b7da,_0x25e61b),'width':_0x5be513(_0x19b7da,_0x25e61b),'opacity':_0x360e56(_0x19b7da,_0x25e61b),'lineStrokeType':_0x52baf6[_0xb4b25f(0x1c7)][_0xb4b25f(0x1da)],'capType':_0x52baf6['ShapeLineCapEnum'][_0xb4b25f(0x1b8)],'lineJoinType':_0x52baf6[_0xb4b25f(0x1d5)][_0xb4b25f(0x1b8)]}};}function _0x471a6b(_0x581252,_0x46a899){return{'x':_0x581252['x']-_0x46a899['x'],'y':_0x581252['y']-_0x46a899['y']};}function _0x4ba296(_0x55aa01,_0x38d452){const _0x3b6840=_0x2eb73d;if(_0x55aa01['kind']===_0x3b6840(0x1df)){let _0x93ad55=_0x55aa01[_0x3b6840(0x1f0)];if(_0x93ad55[_0x3b6840(0x1fc)]===0x0)return[];let _0x5b3548=_0x471a6b(_0x93ad55[0x0],_0x38d452),_0x523144=[{'command':'M','points':[_0x5b3548['x'],_0x5b3548['y']]}];for(let _0x74864d=0x1;_0x74864d<_0x93ad55['length'];_0x74864d++){let _0x2df253=_0x93ad55[_0x74864d-0x1],_0x2bbc88=_0x93ad55[_0x74864d],_0x2678cb=_0x471a6b(_0x2df253[_0x3b6840(0x1c1)]??_0x2df253,_0x38d452),_0x37a0e0=_0x471a6b(_0x2bbc88['in']??_0x2bbc88,_0x38d452),_0x4a11c6=_0x471a6b(_0x2bbc88,_0x38d452);_0x523144['push']({'command':'C','points':[_0x2678cb['x'],_0x2678cb['y'],_0x37a0e0['x'],_0x37a0e0['y'],_0x4a11c6['x'],_0x4a11c6['y']]});}if(_0x55aa01[_0x3b6840(0x1f5)]&&_0x93ad55[_0x3b6840(0x1fc)]>0x1){let _0x2106c8=_0x93ad55[_0x93ad55[_0x3b6840(0x1fc)]-0x1],_0x356ba1=_0x93ad55[0x0],_0x368877=_0x471a6b(_0x2106c8['out']??_0x2106c8,_0x38d452),_0x4f07e7=_0x471a6b(_0x356ba1['in']??_0x356ba1,_0x38d452),_0x4ace43=_0x471a6b(_0x356ba1,_0x38d452);_0x523144['push']({'command':'C','points':[_0x368877['x'],_0x368877['y'],_0x4f07e7['x'],_0x4f07e7['y'],_0x4ace43['x'],_0x4ace43['y']]}),_0x523144[_0x3b6840(0x1cf)]({'command':'z','points':[]});}return _0x523144;}let _0x2c04a9=_0x55aa01[_0x3b6840(0x1a6)][_0x3b6840(0x19f)](_0x42b4f3=>_0x471a6b(_0x42b4f3,_0x38d452));if(_0x2c04a9[_0x3b6840(0x1fc)]===0x0)return[];let _0x5cc165=[{'command':'M','points':[_0x2c04a9[0x0]['x'],_0x2c04a9[0x0]['y']]}];for(let _0x36a9c9=0x0;_0x36a9c9<_0x2c04a9[_0x3b6840(0x1fc)]-0x1;_0x36a9c9++){let _0x148c4a=_0x2c04a9[_0x36a9c9],_0xc320e=_0x2c04a9[_0x36a9c9+0x1],_0x4cd10c=_0x2c04a9[_0x36a9c9-0x1]??_0x148c4a,_0x345f82=_0x2c04a9[_0x36a9c9+0x2]??_0xc320e,_0x33f278={'x':_0x148c4a['x']+(_0xc320e['x']-_0x4cd10c['x'])/0x6,'y':_0x148c4a['y']+(_0xc320e['y']-_0x4cd10c['y'])/0x6},_0x58a462={'x':_0xc320e['x']-(_0x345f82['x']-_0x148c4a['x'])/0x6,'y':_0xc320e['y']-(_0x345f82['y']-_0x148c4a['y'])/0x6};_0x5cc165[_0x3b6840(0x1cf)]({'command':'C','points':[_0x33f278['x'],_0x33f278['y'],_0x58a462['x'],_0x58a462['y'],_0xc320e['x'],_0xc320e['y']]});}return _0x5cc165;}function _0x41dfa8(_0x44c35a){const _0x3211e9=_0x2eb73d;let {model:_0x569c11,sourceModel:_0x49e887=_0x569c11,style:_0x4f70ea}=_0x44c35a,_0x12f3df=_0x44c35a['tool']??_0x569c11[_0x3211e9(0x1e9)],_0x446f39=_0x367308(_0x569c11),_0x351feb=_0x569c11[_0x3211e9(0x1e9)]==='pen'&&_0x12f3df!==_0x3211e9(0x1df)?_0x569c11:void 0x0;return{'transform':{..._0x446f39,'rotation':0x0},'shapeData':_0x1ad570(_0x569c11,_0x4f70ea),'ink':{'version':0x1,'tool':_0x12f3df,'sourceModel':_0x49e887,..._0x351feb?{'editModel':_0x351feb}:{},'normalizedBounds':_0x446f39}};}var _0x674269=_0x2eb73d(0x1bc),_0x433c87='1.0.0-beta.0';function _0x3ebcb3(_0x40fea5){'@babel/helpers - typeof';const _0x337f19=_0x2eb73d;return _0x3ebcb3=typeof Symbol==_0x337f19(0x1d2)&&typeof Symbol[_0x337f19(0x1c9)]==_0x337f19(0x19d)?function(_0x5316e7){return typeof _0x5316e7;}:function(_0x371195){const _0x2f2778=_0x337f19;return _0x371195&&typeof Symbol=='function'&&_0x371195['constructor']===Symbol&&_0x371195!==Symbol['prototype']?_0x2f2778(0x19d):typeof _0x371195;},_0x3ebcb3(_0x40fea5);}function _0xc60886(_0x45fa41,_0x5edc45){const _0x19d219=_0x2eb73d;if(_0x3ebcb3(_0x45fa41)!=_0x19d219(0x1ed)||!_0x45fa41)return _0x45fa41;var _0x5816ed=_0x45fa41[Symbol[_0x19d219(0x209)]];if(_0x5816ed!==void 0x0){var _0x62da45=_0x5816ed[_0x19d219(0x1a7)](_0x45fa41,_0x5edc45||_0x19d219(0x1a0));if(_0x3ebcb3(_0x62da45)!=_0x19d219(0x1ed))return _0x62da45;throw TypeError(_0x19d219(0x1b7));}return(_0x5edc45===_0x19d219(0x1f8)?String:Number)(_0x45fa41);}function _0x5db58e(_0x39c387){const _0x4ddaf6=_0x2eb73d;var _0x5db5a8=_0xc60886(_0x39c387,'string');return _0x3ebcb3(_0x5db5a8)==_0x4ddaf6(0x19d)?_0x5db5a8:_0x5db5a8+'';}function _0x45069f(_0x465a89,_0x268a3c,_0xe2cbc0){const _0x46508d=_0x2eb73d;return(_0x268a3c=_0x5db58e(_0x268a3c))in _0x465a89?Object[_0x46508d(0x1d3)](_0x465a89,_0x268a3c,{'value':_0xe2cbc0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x465a89[_0x268a3c]=_0xe2cbc0,_0x465a89;}let _0x59fffd=(0x0,_0x379462['createIdentifier'])('ink.host-adapter.service');var _0x45b3e5=class{constructor(){const _0x373955=_0x2eb73d;_0x45069f(this,_0x373955(0x1ad),[]);}['registerAdapter'](_0x32d30e){const _0x3ed8e7=_0x2eb73d;return this[_0x3ed8e7(0x1ad)][_0x3ed8e7(0x1cf)](_0x32d30e),(0x0,_0x379462[_0x3ed8e7(0x1d7)])(()=>{const _0x2e76a3=_0x3ed8e7;let _0x19aeda=this[_0x2e76a3(0x1ad)][_0x2e76a3(0x1ea)](_0x32d30e);_0x19aeda>=0x0&&this[_0x2e76a3(0x1ad)][_0x2e76a3(0x1be)](_0x19aeda,0x1);});}[_0x2eb73d(0x19b)](_0xa61ad7){const _0x5ec3f2=_0x2eb73d;for(let _0x5096dd of this[_0x5ec3f2(0x1ad)])if(_0x5096dd['beginInkMode'](_0xa61ad7))return!0x0;return!0x1;}async[_0x2eb73d(0x1cb)](_0x5d2a8e){const _0x572449=_0x2eb73d;for(let _0x943994 of this[_0x572449(0x1ad)])if(_0x943994[_0x572449(0x1cb)]&&await _0x943994[_0x572449(0x1cb)](_0x5d2a8e))return!0x0;return!0x1;}};let _0x387b61={'id':_0x2eb73d(0x1ca),'type':_0x379462[_0x2eb73d(0x1ba)]['OPERATION'],'handler':(_0x48d0b0,_0x3fcbe2)=>_0x3fcbe2?_0x48d0b0[_0x2eb73d(0x1e5)](_0x59fffd)[_0x2eb73d(0x19b)](_0x3fcbe2):!0x1},_0x385269={};function _0x40e6b0(_0x3fa0de,_0x520663){return function(_0xe5f11e,_0x5d4c7e){_0x520663(_0xe5f11e,_0x5d4c7e,_0x3fa0de);};}function _0x57266a(_0xe89542,_0x86199d,_0x426962,_0x2a1d80){const _0x1da947=_0x2eb73d;var _0x2b8592=arguments['length'],_0x3dddd5=_0x2b8592<0x3?_0x86199d:_0x2a1d80===null?_0x2a1d80=Object[_0x1da947(0x1e0)](_0x86199d,_0x426962):_0x2a1d80,_0x2a5220;if(typeof Reflect==_0x1da947(0x1ed)&&typeof Reflect[_0x1da947(0x20e)]==_0x1da947(0x1d2))_0x3dddd5=Reflect[_0x1da947(0x20e)](_0xe89542,_0x86199d,_0x426962,_0x2a1d80);else{for(var _0x266c19=_0xe89542['length']-0x1;_0x266c19>=0x0;_0x266c19--)(_0x2a5220=_0xe89542[_0x266c19])&&(_0x3dddd5=(_0x2b8592<0x3?_0x2a5220(_0x3dddd5):_0x2b8592>0x3?_0x2a5220(_0x86199d,_0x426962,_0x3dddd5):_0x2a5220(_0x86199d,_0x426962))||_0x3dddd5);}return _0x2b8592>0x3&&_0x3dddd5&&Object[_0x1da947(0x1d3)](_0x86199d,_0x426962,_0x3dddd5),_0x3dddd5;}let _0x790943=class extends _0x379462[_0x2eb73d(0x1c8)]{constructor(_0x3ac066=_0x385269,_0x16ff88,_0x1a1edc,_0x36bad4){const _0x975869=_0x2eb73d;super(),this[_0x975869(0x1fa)]=_0x3ac066,this[_0x975869(0x1d9)]=_0x16ff88,this['_commandService']=_0x1a1edc,this[_0x975869(0x1d4)]=_0x36bad4;let {..._0x196e21}=(0x0,_0x379462[_0x975869(0x1b1)])({},_0x385269,this[_0x975869(0x1fa)]);this[_0x975869(0x1d4)]['setConfig'](_0x975869(0x1ac),_0x196e21);}[_0x2eb73d(0x1ee)](){const _0x4612d3=_0x2eb73d;[[_0x59fffd,{'useClass':_0x45b3e5}]]['forEach'](_0x2193c0=>this[_0x4612d3(0x1d9)]['add'](_0x2193c0)),this[_0x4612d3(0x1b4)](this[_0x4612d3(0x206)][_0x4612d3(0x1b2)](_0x387b61));}};_0x45069f(_0x790943,'pluginName',_0x2eb73d(0x1a8)),_0x45069f(_0x790943,'packageName',_0x674269),_0x45069f(_0x790943,_0x2eb73d(0x1b5),_0x433c87),_0x45069f(_0x790943,_0x2eb73d(0x1a2),_0x379462[_0x2eb73d(0x19e)][_0x2eb73d(0x198)]),_0x790943=_0x57266a([(0x0,_0x379462['DependentOn'])(_0x201bf2[_0x2eb73d(0x1fd)]),_0x40e6b0(0x1,(0x0,_0x379462[_0x2eb73d(0x1e2)])(_0x379462[_0x2eb73d(0x202)])),_0x40e6b0(0x2,_0x379462[_0x2eb73d(0x1bb)]),_0x40e6b0(0x3,_0x379462[_0x2eb73d(0x207)])],_0x790943),_0x4ee07e['IInkHostAdapterService']=_0x59fffd,Object['defineProperty'](_0x4ee07e,_0x2eb73d(0x1c6),{'enumerable':!0x0,'get':function(){return _0x790943;}}),_0x4ee07e[_0x2eb73d(0x1fe)]=_0x41dfa8,_0x4ee07e[_0x2eb73d(0x1a9)]=_0x23e17d,_0x4ee07e[_0x2eb73d(0x1f1)]=_0x84a394,_0x4ee07e[_0x2eb73d(0x1a3)]=_0x2573c2,_0x4ee07e[_0x2eb73d(0x1d1)]=_0x5bca8c,_0x4ee07e[_0x2eb73d(0x1d6)]=_0x318c87,_0x4ee07e[_0x2eb73d(0x1f4)]=_0x367308,_0x4ee07e['getInkPenPreviewModel']=_0x3220e2,_0x4ee07e[_0x2eb73d(0x1e8)]=_0x129779,_0x4ee07e['isInkPenHandleVisible']=_0x3c158d,_0x4ee07e[_0x2eb73d(0x1b6)]=_0x3cb887,_0x4ee07e['setInkPenAnchorPointType']=_0x462ed;}));
1
+ function _0x1153(){const _0x3fe49b=['endIndex','fillColor','@univerjs-pro/ink','toStringTag','findIndex','@univerjs-pro/engine-shape','ink.operation.start','Plugin','@univerjs-pro/license','UniverProLicense','packageName','ShapeTypeEnum','7xDDbPN','ShapeLineTypeEnum','segmentIndex','UniverCore','createCustomShape','setConfig','string','ShapeLineJoinEnum','OPERATION','smooth','opacity','symmetric','none','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ShapeLineCapEnum','indexOf','forEach','exports','ShapeFillEnum','buildInkCustomShapePayload','ink.host-adapter.service','width','object','round','cycleInkPenAnchorPointType','decorate','Injector','Inject','SolidFill','UNIVER_INK_PLUGIN','kind','ratio','8XtNdiN','UniverProEngineShape','distance','pointType','pen','registerCommand','out','prototype','beginInkMode','getInkModelBounds','_adapters','Module','add','constructor','createId','start','defineProperty','UniverInstanceType','_commandService','_config','UniverLicensePlugin','1107419taMawm','push','tool','norm','isInkPenHandleVisible','splice','min','DependentOn','corner','ink.config','point','UniverInkPlugin','type','_configService','tolerance','anchors','end','max','function','toPrimitive','ink-centerline-','moveInkPenAnchorPoint','convertBrushModelToPenModel','Round','color','26iLypSx','8307410gkVofX','map','pluginName','symbol','@univerjs/core','version','SolidLine','1577106dalVuw','slice','1.0.0-beta.2','insertInkPenAnchorAt','left','length','8510000dmXeNC','createIdentifier','closed','filter','free','deleteInkPenAnchor','startIndex','top','setInkPenAnchorPointType','abs','237828mMBIkg','44zxRPHd','CommandType','height','registerAdapter','2514270NJlUgr','Rect','IInkHostAdapterService','_injector','onStarting','7435827kOLGZK','UNIVER_UNKNOWN','points','join','right','anchor','merge'];_0x1153=function(){return _0x3fe49b;};return _0x1153();}function _0xe35f(_0x9d350e,_0x2f8718){_0x9d350e=_0x9d350e-0x1de;const _0x11535c=_0x1153();let _0xe35f17=_0x11535c[_0x9d350e];return _0xe35f17;}(function(_0xfbc5f2,_0x13800e){const _0xc4c5e0=_0xe35f,_0x4edbf8=_0xfbc5f2();while(!![]){try{const _0x3d0da2=-parseInt(_0xc4c5e0(0x203))/0x1+parseInt(_0xc4c5e0(0x21c))/0x2*(-parseInt(_0xc4c5e0(0x234))/0x3)+-parseInt(_0xc4c5e0(0x1ee))/0x4*(parseInt(_0xc4c5e0(0x239))/0x5)+-parseInt(_0xc4c5e0(0x224))/0x6*(-parseInt(_0xc4c5e0(0x251))/0x7)+parseInt(_0xc4c5e0(0x22a))/0x8+-parseInt(_0xc4c5e0(0x23e))/0x9+-parseInt(_0xc4c5e0(0x21d))/0xa*(-parseInt(_0xc4c5e0(0x235))/0xb);if(_0x3d0da2===_0x13800e)break;else _0x4edbf8['push'](_0x4edbf8['shift']());}catch(_0x3f2b8b){_0x4edbf8['push'](_0x4edbf8['shift']());}}}(_0x1153,0xa5edf),function(_0x421a14,_0x55e438){const _0x202d18=_0xe35f;typeof exports==_0x202d18(0x1e4)&&typeof module<'u'?_0x55e438(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x202d18(0x215)&&define['amd']?define([_0x202d18(0x1df),_0x202d18(0x24a),_0x202d18(0x24d),_0x202d18(0x221)],_0x55e438):(_0x421a14=typeof globalThis<'u'?globalThis:_0x421a14||self,_0x55e438(_0x421a14['UniverProInk']={},_0x421a14[_0x202d18(0x1ef)],_0x421a14[_0x202d18(0x24e)],_0x421a14[_0x202d18(0x254)]));}(this,function(_0x55afab,_0x44466f,_0x594073,_0x334201){const _0x40c611=_0xe35f;Object[_0x40c611(0x1fe)](_0x55afab,Symbol[_0x40c611(0x248)],{'value':_0x40c611(0x1f9)});let _0x29f19f=0.0001;function _0x9ab2dd(_0x1ac3da){return{'x':_0x1ac3da['x'],'y':_0x1ac3da['y']};}function _0x161860(_0x9cf807){const _0x45c2f2=_0x40c611;return{..._0x9cf807,'in':_0x9cf807['in']?_0x9ab2dd(_0x9cf807['in']):void 0x0,'out':_0x9cf807[_0x45c2f2(0x1f4)]?_0x9ab2dd(_0x9cf807[_0x45c2f2(0x1f4)]):void 0x0};}function _0x460a2e(_0x2ebe01){const _0x234729=_0x40c611;return{'kind':_0x234729(0x1f2),'closed':_0x2ebe01[_0x234729(0x22c)],'anchors':_0x2ebe01[_0x234729(0x212)][_0x234729(0x21e)](_0x161860)};}function _0x752023(_0x3d316b,_0x272a38,_0x4f2733){return{'x':_0x3d316b['x']+(_0x272a38['x']-_0x3d316b['x'])*_0x4f2733,'y':_0x3d316b['y']+(_0x272a38['y']-_0x3d316b['y'])*_0x4f2733};}function _0x2975fd(_0x18c6a0,_0x4c8579){return Math['hypot'](_0x18c6a0['x']-_0x4c8579['x'],_0x18c6a0['y']-_0x4c8579['y']);}function _0x4937a9(_0x2b857d){let _0x3dbc6f=Math['hypot'](_0x2b857d['x'],_0x2b857d['y']);return _0x3dbc6f<_0x29f19f?{'x':0x1,'y':0x0}:{'x':_0x2b857d['x']/_0x3dbc6f,'y':_0x2b857d['y']/_0x3dbc6f};}function _0x1509dd(_0x4dea5a,_0x51fe3b,_0x55edae=_0x2975fd(_0x4dea5a,_0x51fe3b)){let _0x25742d=_0x4937a9({'x':_0x4dea5a['x']-_0x51fe3b['x'],'y':_0x4dea5a['y']-_0x51fe3b['y']});return{'x':_0x4dea5a['x']+_0x25742d['x']*_0x55edae,'y':_0x4dea5a['y']+_0x25742d['y']*_0x55edae};}function _0x54cb95(_0x379374,_0x5ce787){const _0x37d94b=_0x40c611;let {anchors:_0x5def99}=_0x379374;return _0x5def99['length']<0x2||_0x5ce787<0x0?null:_0x5ce787<_0x5def99[_0x37d94b(0x229)]-0x1?{'startIndex':_0x5ce787,'endIndex':_0x5ce787+0x1,'start':_0x5def99[_0x5ce787],'end':_0x5def99[_0x5ce787+0x1]}:_0x379374[_0x37d94b(0x22c)]&&_0x5ce787===_0x5def99[_0x37d94b(0x229)]-0x1?{'startIndex':_0x5def99[_0x37d94b(0x229)]-0x1,'endIndex':0x0,'start':_0x5def99[_0x5def99[_0x37d94b(0x229)]-0x1],'end':_0x5def99[0x0]}:null;}function _0x34594e(_0x1f785e,_0x2b5fa0){const _0x4d6337=_0x40c611;let _0x5b0706=_0x54cb95(_0x1f785e,_0x2b5fa0);return _0x5b0706?[_0x5b0706[_0x4d6337(0x1fd)],_0x5b0706['start'][_0x4d6337(0x1f4)]??_0x5b0706[_0x4d6337(0x1fd)],_0x5b0706[_0x4d6337(0x213)]['in']??_0x5b0706[_0x4d6337(0x213)],_0x5b0706[_0x4d6337(0x213)]]:null;}function _0x51b5c4(_0x1f9dc7,_0x44d99a){return _0x44d99a==='anchor'?_0x1f9dc7:_0x1f9dc7[_0x44d99a]??null;}function _0x18c1b7(_0x572081,_0xae9c17,_0xb354cd){const _0x330355=_0x40c611;return _0xb354cd===_0x330355(0x243)||_0x572081[_0x330355(0x22c)]?!0x0:_0xb354cd==='in'?_0xae9c17>0x0:_0xae9c17<_0x572081[_0x330355(0x212)][_0x330355(0x229)]-0x1;}function _0x454237(_0x913df1,_0x418ebb){let [_0x4adb69,_0x136d1e,_0x1a912e,_0x50c550]=_0x913df1,_0xc877e3=_0x752023(_0x4adb69,_0x136d1e,_0x418ebb),_0x5e91fe=_0x752023(_0x136d1e,_0x1a912e,_0x418ebb),_0x483379=_0x752023(_0x1a912e,_0x50c550,_0x418ebb);return _0x752023(_0x752023(_0xc877e3,_0x5e91fe,_0x418ebb),_0x752023(_0x5e91fe,_0x483379,_0x418ebb),_0x418ebb);}function _0x26b635(_0x5be54e,_0x2aec8f){let [_0x480923,_0x55610d,_0x1c7e1e,_0x1be5b0]=_0x5be54e,_0x54a35c=_0x752023(_0x480923,_0x55610d,_0x2aec8f),_0x1355e3=_0x752023(_0x55610d,_0x1c7e1e,_0x2aec8f),_0x399ecf=_0x752023(_0x1c7e1e,_0x1be5b0,_0x2aec8f),_0x3ac162=_0x752023(_0x54a35c,_0x1355e3,_0x2aec8f),_0x1867da=_0x752023(_0x1355e3,_0x399ecf,_0x2aec8f),_0x5e222e=_0x752023(_0x3ac162,_0x1867da,_0x2aec8f);return{'left':[_0x480923,_0x54a35c,_0x3ac162,_0x5e222e],'right':[_0x5e222e,_0x1867da,_0x399ecf,_0x1be5b0]};}function _0x114005(_0xd5e191,_0x516cdf,_0x4a93b7){const _0x5bd066=_0x40c611;let _0x572108=_0x4a93b7['x']-_0x516cdf['x'],_0x45428e=_0x4a93b7['y']-_0x516cdf['y'],_0x40c03e=_0x572108*_0x572108+_0x45428e*_0x45428e,_0x242382=_0x40c03e<=_0x29f19f?0x0:Math[_0x5bd066(0x214)](0x0,Math['min'](0x1,((_0xd5e191['x']-_0x516cdf['x'])*_0x572108+(_0xd5e191['y']-_0x516cdf['y'])*_0x45428e)/_0x40c03e)),_0x46d153={'x':_0x516cdf['x']+_0x572108*_0x242382,'y':_0x516cdf['y']+_0x45428e*_0x242382};return{'point':_0x46d153,'ratio':_0x242382,'distance':_0x2975fd(_0xd5e191,_0x46d153)};}function _0x397987(_0x54aee7,_0x5b8ac8,_0x5444c7){const _0x36e438=_0x40c611;return _0x114005(_0x54aee7,_0x5b8ac8,_0x5444c7)[_0x36e438(0x1f0)]**0x2;}function _0x115f19(_0x4e239e,_0x393419){const _0x5db4c8=_0x40c611;if(_0x4e239e[_0x5db4c8(0x229)]<=0x2)return _0x4e239e[_0x5db4c8(0x21e)](_0x9ab2dd);let _0x1c4232=0x0,_0x2c067a=0x0,_0x33dd95=_0x4e239e[0x0],_0x2d1408=_0x4e239e[_0x4e239e[_0x5db4c8(0x229)]-0x1],_0x22f177=_0x393419*_0x393419;for(let _0x1eb695=0x1;_0x1eb695<_0x4e239e[_0x5db4c8(0x229)]-0x1;_0x1eb695++){let _0x55fff2=_0x397987(_0x4e239e[_0x1eb695],_0x33dd95,_0x2d1408);_0x55fff2>_0x1c4232&&(_0x1c4232=_0x55fff2,_0x2c067a=_0x1eb695);}if(_0x1c4232<=_0x22f177)return[_0x9ab2dd(_0x33dd95),_0x9ab2dd(_0x2d1408)];let _0x468793=_0x115f19(_0x4e239e[_0x5db4c8(0x225)](0x0,_0x2c067a+0x1),_0x393419),_0x560b54=_0x115f19(_0x4e239e[_0x5db4c8(0x225)](_0x2c067a),_0x393419);return[..._0x468793['slice'](0x0,-0x1),..._0x560b54];}function _0x2c5eb9(_0x46d8df,_0x56faa8){let _0x18eddd=_0x46d8df[_0x56faa8],_0x287088=_0x46d8df[_0x56faa8+0x1],_0xbfbc79=_0x46d8df[_0x56faa8-0x1]??_0x18eddd;return{'x':_0x18eddd['x']+(_0x287088['x']-_0xbfbc79['x'])/0x6,'y':_0x18eddd['y']+(_0x287088['y']-_0xbfbc79['y'])/0x6};}function _0x1bbde5(_0x585b5a,_0x30bbce){let _0x40f76e=_0x585b5a[_0x30bbce],_0x3a97af=_0x585b5a[_0x30bbce-0x1],_0x55252c=_0x585b5a[_0x30bbce+0x1]??_0x40f76e;return{'x':_0x40f76e['x']-(_0x55252c['x']-_0x3a97af['x'])/0x6,'y':_0x40f76e['y']-(_0x55252c['y']-_0x3a97af['y'])/0x6};}function _0x34cc87(_0x48f88e,_0x1e7014){const _0x2720f8=_0x40c611;let _0x17f21d=_0x48f88e[_0x2720f8(0x212)][_0x1e7014],_0x18d6eb=_0x48f88e[_0x2720f8(0x212)][_0x1e7014-0x1]??(_0x48f88e[_0x2720f8(0x22c)]?_0x48f88e[_0x2720f8(0x212)][_0x48f88e[_0x2720f8(0x212)][_0x2720f8(0x229)]-0x1]:null),_0x3ec7f3=_0x48f88e['anchors'][_0x1e7014+0x1]??(_0x48f88e['closed']?_0x48f88e[_0x2720f8(0x212)][0x0]:null),_0x3ed99d=_0x18d6eb&&_0x3ec7f3?_0x4937a9({'x':_0x3ec7f3['x']-_0x18d6eb['x'],'y':_0x3ec7f3['y']-_0x18d6eb['y']}):_0x3ec7f3?_0x4937a9({'x':_0x3ec7f3['x']-_0x17f21d['x'],'y':_0x3ec7f3['y']-_0x17f21d['y']}):_0x18d6eb?_0x4937a9({'x':_0x17f21d['x']-_0x18d6eb['x'],'y':_0x17f21d['y']-_0x18d6eb['y']}):{'x':0x1,'y':0x0},_0x2b1ef2=_0x18d6eb&&_0x3ec7f3?Math[_0x2720f8(0x214)](0x32,_0x2975fd(_0x18d6eb,_0x3ec7f3)/0x4):0x32;return{'in':{'x':_0x17f21d['x']-_0x3ed99d['x']*_0x2b1ef2,'y':_0x17f21d['y']-_0x3ed99d['y']*_0x2b1ef2},'out':{'x':_0x17f21d['x']+_0x3ed99d['x']*_0x2b1ef2,'y':_0x17f21d['y']+_0x3ed99d['y']*_0x2b1ef2}};}function _0x53414b(_0x46f1de,_0x2099f5){const _0x50b38a=_0x40c611;let _0x5c922f=_0x46f1de[_0x2099f5],_0x511330=_0x2099f5==='in'?_0x50b38a(0x1f4):'in',_0x3bfa78=_0x46f1de[_0x511330];if(_0x5c922f){if(_0x46f1de[_0x50b38a(0x1f1)]===_0x50b38a(0x25c)){_0x46f1de[_0x511330]=_0x1509dd(_0x46f1de,_0x5c922f);return;}_0x46f1de['pointType']===_0x50b38a(0x25a)&&(_0x46f1de[_0x511330]=_0x1509dd(_0x46f1de,_0x5c922f,_0x3bfa78?_0x2975fd(_0x46f1de,_0x3bfa78):_0x2975fd(_0x46f1de,_0x5c922f)));}}function _0x2e533a(_0x5cefde,_0x28b043){const _0x3cca5c=_0x40c611;let _0x17bd99=_0x460a2e(_0x5cefde);return!_0x28b043||_0x17bd99[_0x3cca5c(0x22c)]||_0x17bd99[_0x3cca5c(0x212)][_0x3cca5c(0x229)]===0x0||_0x17bd99['anchors'][_0x3cca5c(0x204)]({'id':'__ink-preview-anchor__','x':_0x28b043['x'],'y':_0x28b043['y'],'pointType':_0x3cca5c(0x20b)}),_0x17bd99;}function _0x49ed33(_0xb36343,_0x33c4eb={}){const _0x49874e=_0x40c611;let _0x1651c2=Math[_0x49874e(0x214)](0x0,_0x33c4eb[_0x49874e(0x211)]??Math[_0x49874e(0x214)](0x4,_0xb36343[_0x49874e(0x1e3)]*0.35)),_0x2950e3=_0x33c4eb[_0x49874e(0x1fc)]??(_0x5a82c7=>_0x49874e(0x217)+_0x5a82c7),_0x273eb6=_0x115f19(_0xb36343[_0x49874e(0x240)],_0x1651c2),_0x458940=_0x273eb6['map']((_0x4939ba,_0x5e53ed)=>({'id':_0x2950e3(_0x5e53ed),'x':_0x4939ba['x'],'y':_0x4939ba['y'],'pointType':_0x49874e(0x22e)}));for(let _0x33dda2=0x0;_0x33dda2<_0x458940[_0x49874e(0x229)]-0x1;_0x33dda2++)_0x458940[_0x33dda2][_0x49874e(0x1f4)]=_0x2c5eb9(_0x273eb6,_0x33dda2),_0x458940[_0x33dda2+0x1]['in']=_0x1bbde5(_0x273eb6,_0x33dda2+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x458940};}function _0x3e0249(_0x3870ac,_0x5e47bb,_0x25d165){const _0x4fa60d=_0x40c611;let _0x10587e=null,_0x467d91=[_0x4fa60d(0x243),'in',_0x4fa60d(0x1f4)];return _0x3870ac[_0x4fa60d(0x212)]['forEach']((_0x537c51,_0x51d177)=>{const _0x1bf30e=_0x4fa60d;_0x467d91[_0x1bf30e(0x1de)](_0x271f80=>{const _0x2b27ce=_0x1bf30e;if(!_0x18c1b7(_0x3870ac,_0x51d177,_0x271f80))return;let _0x59ec00=_0x51b5c4(_0x537c51,_0x271f80);if(!_0x59ec00)return;let _0x221f42=_0x2975fd(_0x5e47bb,_0x59ec00);_0x221f42>_0x25d165||_0x10587e&&_0x221f42>=_0x10587e[_0x2b27ce(0x1f0)]||(_0x10587e={'handle':{'kind':_0x271f80,'anchorId':_0x537c51['id']},'point':_0x9ab2dd(_0x59ec00),'distance':_0x221f42});});}),_0x10587e;}function _0x586168(_0x144bb0,_0x512970,_0x2afb35){const _0x51f26c=_0x40c611;let _0x589b2d=null,_0xfa7049=_0x144bb0['closed']?_0x144bb0['anchors'][_0x51f26c(0x229)]:Math['max'](0x0,_0x144bb0[_0x51f26c(0x212)][_0x51f26c(0x229)]-0x1);for(let _0x58c197=0x0;_0x58c197<_0xfa7049;_0x58c197++){let _0x1be389=_0x34594e(_0x144bb0,_0x58c197);if(!_0x1be389)continue;let _0x42cd19=_0x454237(_0x1be389,0x0);for(let _0x5718d6=0x1;_0x5718d6<=0x20;_0x5718d6++){let _0x95ba6a=_0x454237(_0x1be389,_0x5718d6/0x20),_0x19bf2c=_0x114005(_0x512970,_0x42cd19,_0x95ba6a),_0x2597f6=(_0x5718d6-0x1+_0x19bf2c[_0x51f26c(0x1ed)])/0x20;(!_0x589b2d||_0x19bf2c[_0x51f26c(0x1f0)]<_0x589b2d[_0x51f26c(0x1f0)])&&(_0x589b2d={'segmentIndex':_0x58c197,'t':_0x2597f6,'point':_0x19bf2c[_0x51f26c(0x20d)],'distance':_0x19bf2c[_0x51f26c(0x1f0)]}),_0x42cd19=_0x95ba6a;}}return _0x589b2d&&_0x589b2d[_0x51f26c(0x1f0)]<=_0x2afb35?_0x589b2d:null;}function _0x361d83(_0x58daf2,_0x472ad5,_0x352dc9){const _0x40b171=_0x40c611;let _0x1bf443=_0x460a2e(_0x58daf2),_0x1cd849=_0x54cb95(_0x1bf443,_0x472ad5[_0x40b171(0x253)]),_0xf69bef=_0x34594e(_0x1bf443,_0x472ad5[_0x40b171(0x253)]);if(!_0x1cd849||!_0xf69bef)return _0x1bf443;let _0x11fff7=_0x26b635(_0xf69bef,Math[_0x40b171(0x214)](0x0,Math['min'](0x1,_0x472ad5['t']))),_0x1edacd={'id':_0x352dc9(),'x':_0x11fff7['left'][0x3]['x'],'y':_0x11fff7[_0x40b171(0x228)][0x3]['y'],'in':_0x9ab2dd(_0x11fff7[_0x40b171(0x228)][0x2]),'out':_0x9ab2dd(_0x11fff7['right'][0x1]),'pointType':_0x40b171(0x22e)};return _0x1bf443[_0x40b171(0x212)][_0x1cd849['startIndex']]['out']=_0x9ab2dd(_0x11fff7[_0x40b171(0x228)][0x1]),_0x1bf443[_0x40b171(0x212)][_0x1cd849[_0x40b171(0x245)]]['in']=_0x9ab2dd(_0x11fff7[_0x40b171(0x242)][0x2]),_0x1bf443['anchors'][_0x40b171(0x208)](_0x1cd849[_0x40b171(0x230)]+0x1,0x0,_0x1edacd),_0x1bf443;}function _0x35fdbb(_0x3d62a1,_0x3d0eee){const _0x3fde72=_0x40c611;let _0x2278b5=_0x460a2e(_0x3d62a1);return _0x2278b5[_0x3fde72(0x212)]=_0x2278b5[_0x3fde72(0x212)][_0x3fde72(0x22d)](_0x3fdf87=>_0x3fdf87['id']!==_0x3d0eee),_0x2278b5[_0x3fde72(0x22c)]&&_0x2278b5[_0x3fde72(0x212)]['length']<0x3&&(_0x2278b5[_0x3fde72(0x22c)]=!0x1),_0x2278b5;}function _0x1c623f(_0x3c5b1e,_0x452de0,_0x523bc6){const _0x41853c=_0x40c611;let _0x43324b=_0x460a2e(_0x3c5b1e),_0x3a5514=_0x43324b[_0x41853c(0x212)][_0x41853c(0x249)](_0x440ac5=>_0x440ac5['id']===_0x452de0),_0x5d5ece=_0x43324b[_0x41853c(0x212)][_0x3a5514];if(!_0x5d5ece)return _0x43324b;if(_0x5d5ece[_0x41853c(0x1f1)]=_0x523bc6,_0x523bc6==='corner')return delete _0x5d5ece['in'],delete _0x5d5ece[_0x41853c(0x1f4)],_0x43324b;let _0x21ba2a=_0x34cc87(_0x43324b,_0x3a5514);if(_0x5d5ece['in']=_0x5d5ece['in']?_0x9ab2dd(_0x5d5ece['in']):_0x21ba2a['in'],_0x5d5ece['out']=_0x5d5ece['out']?_0x9ab2dd(_0x5d5ece[_0x41853c(0x1f4)]):_0x21ba2a[_0x41853c(0x1f4)],_0x523bc6===_0x41853c(0x25c)){let _0x47baeb=Math[_0x41853c(0x214)](_0x2975fd(_0x5d5ece,_0x5d5ece['in']),_0x2975fd(_0x5d5ece,_0x5d5ece[_0x41853c(0x1f4)]),0x32),_0x41f9ae=_0x4937a9({'x':_0x5d5ece[_0x41853c(0x1f4)]['x']-_0x5d5ece['x'],'y':_0x5d5ece[_0x41853c(0x1f4)]['y']-_0x5d5ece['y']});_0x5d5ece[_0x41853c(0x1f4)]={'x':_0x5d5ece['x']+_0x41f9ae['x']*_0x47baeb,'y':_0x5d5ece['y']+_0x41f9ae['y']*_0x47baeb},_0x5d5ece['in']={'x':_0x5d5ece['x']-_0x41f9ae['x']*_0x47baeb,'y':_0x5d5ece['y']-_0x41f9ae['y']*_0x47baeb};}else _0x523bc6===_0x41853c(0x25a)&&_0x53414b(_0x5d5ece,'out');return _0x43324b;}function _0xc30d15(_0x30b8fa,_0x152a4b){const _0x38f846=_0x40c611;let _0x2c8ed1=_0x30b8fa[_0x38f846(0x212)]['find'](_0x5712f5=>_0x5712f5['id']===_0x152a4b),_0x569c47=(_0x2c8ed1==null?void 0x0:_0x2c8ed1['pointType'])??_0x38f846(0x20b);return _0x1c623f(_0x30b8fa,_0x152a4b,_0x569c47===_0x38f846(0x20b)?_0x38f846(0x25a):_0x569c47===_0x38f846(0x25a)?'symmetric':_0x569c47===_0x38f846(0x25c)?_0x38f846(0x22e):_0x38f846(0x20b));}function _0x2db9c8(_0x225614,_0x4c5406,_0x3b2898){const _0x27d633=_0x40c611;let _0x1c2f73=_0x460a2e(_0x225614),_0xa9d18a=_0x1c2f73[_0x27d633(0x212)]['find'](_0x1af486=>_0x1af486['id']===_0x4c5406['anchorId']);if(!_0xa9d18a)return _0x1c2f73;if(_0x4c5406[_0x27d633(0x1ec)]===_0x27d633(0x243)){let _0x263f5e={'x':_0x3b2898['x']-_0xa9d18a['x'],'y':_0x3b2898['y']-_0xa9d18a['y']};return _0xa9d18a['x']=_0x3b2898['x'],_0xa9d18a['y']=_0x3b2898['y'],_0xa9d18a['in']&&={'x':_0xa9d18a['in']['x']+_0x263f5e['x'],'y':_0xa9d18a['in']['y']+_0x263f5e['y']},_0xa9d18a[_0x27d633(0x1f4)]&&={'x':_0xa9d18a[_0x27d633(0x1f4)]['x']+_0x263f5e['x'],'y':_0xa9d18a[_0x27d633(0x1f4)]['y']+_0x263f5e['y']},_0x1c2f73;}return _0xa9d18a[_0x4c5406['kind']]=_0x9ab2dd(_0x3b2898),_0xa9d18a[_0x27d633(0x1f1)]===_0x27d633(0x20b)&&(_0xa9d18a['pointType']=_0x27d633(0x22e)),_0x53414b(_0xa9d18a,_0x4c5406['kind']),_0x1c2f73;}let _0x41f877=1e-9;function _0x529bd2(_0x8b3ab){const _0x2d9771=_0x40c611;let _0x5033eb=Math[_0x2d9771(0x1e5)](_0x8b3ab*0x2710)/0x2710;return Object['is'](_0x5033eb,-0x0)?'0':String(_0x5033eb);}function _0xa95336(_0x252905){return _0x529bd2(_0x252905['x'])+'\x20'+_0x529bd2(_0x252905['y']);}function _0x3786ce(_0x8e97af,_0x5a5f3e){return{'x':_0x8e97af['x']-_0x5a5f3e['x'],'y':_0x8e97af['y']-_0x5a5f3e['y']};}function _0x3a1e28(_0x488cf2,_0x2e8732,_0x44e424,_0x34adbb,_0x390d1a){let _0x4bc4a5=0x1-_0x390d1a;return{'x':_0x4bc4a5*_0x4bc4a5*_0x4bc4a5*_0x488cf2['x']+0x3*_0x4bc4a5*_0x4bc4a5*_0x390d1a*_0x2e8732['x']+0x3*_0x4bc4a5*_0x390d1a*_0x390d1a*_0x44e424['x']+_0x390d1a*_0x390d1a*_0x390d1a*_0x34adbb['x'],'y':_0x4bc4a5*_0x4bc4a5*_0x4bc4a5*_0x488cf2['y']+0x3*_0x4bc4a5*_0x4bc4a5*_0x390d1a*_0x2e8732['y']+0x3*_0x4bc4a5*_0x390d1a*_0x390d1a*_0x44e424['y']+_0x390d1a*_0x390d1a*_0x390d1a*_0x34adbb['y']};}function _0x3eda02(_0x2b6fcc,_0x2ae2af,_0x3d2911,_0x536934){const _0x4487d9=_0x40c611;let _0x54ab50=-_0x2b6fcc+0x3*_0x2ae2af-0x3*_0x3d2911+_0x536934,_0x27f67d=0x3*_0x2b6fcc-0x6*_0x2ae2af+0x3*_0x3d2911,_0x335007=-0x3*_0x2b6fcc+0x3*_0x2ae2af,_0x44f70f=[];if(Math[_0x4487d9(0x233)](_0x54ab50)<_0x41f877){if(Math[_0x4487d9(0x233)](_0x27f67d)<_0x41f877)return _0x44f70f;let _0x15e924=-_0x335007/(0x2*_0x27f67d);return _0x15e924>0x0&&_0x15e924<0x1&&_0x44f70f[_0x4487d9(0x204)](_0x15e924),_0x44f70f;}let _0x10e02e=_0x27f67d*_0x27f67d-0x3*_0x54ab50*_0x335007;if(_0x10e02e<0x0)return _0x44f70f;let _0x1d7001=Math['sqrt'](Math[_0x4487d9(0x214)](0x0,_0x10e02e)),_0x225d97=(-_0x27f67d+_0x1d7001)/(0x3*_0x54ab50),_0x37e9fd=(-_0x27f67d-_0x1d7001)/(0x3*_0x54ab50);return _0x225d97>0x0&&_0x225d97<0x1&&_0x44f70f[_0x4487d9(0x204)](_0x225d97),_0x37e9fd>0x0&&_0x37e9fd<0x1&&Math['abs'](_0x37e9fd-_0x225d97)>_0x41f877&&_0x44f70f['push'](_0x37e9fd),_0x44f70f;}function _0x5cd7c2(_0x5647a4,_0x3d1770,_0x532212,_0x42eaf2,_0x2f78ec){const _0x1ac1cb=_0x40c611;_0x5647a4[_0x1ac1cb(0x204)](_0x3d1770,_0x2f78ec),new Set([..._0x3eda02(_0x3d1770['x'],_0x532212['x'],_0x42eaf2['x'],_0x2f78ec['x']),..._0x3eda02(_0x3d1770['y'],_0x532212['y'],_0x42eaf2['y'],_0x2f78ec['y'])])[_0x1ac1cb(0x1de)](_0x83b291=>{const _0x38270b=_0x1ac1cb;_0x5647a4[_0x38270b(0x204)](_0x3a1e28(_0x3d1770,_0x532212,_0x42eaf2,_0x2f78ec,_0x83b291));});}function _0x3ad36e(_0x335fd6){const _0x31b287=_0x40c611;let _0x58b378=_0x335fd6['anchors'];if(_0x58b378[_0x31b287(0x229)]<=0x1)return _0x58b378;let _0x515b37=[];for(let _0x37d4c3=0x1;_0x37d4c3<_0x58b378[_0x31b287(0x229)];_0x37d4c3++){let _0x30918e=_0x58b378[_0x37d4c3-0x1],_0x428bd3=_0x58b378[_0x37d4c3];_0x5cd7c2(_0x515b37,_0x30918e,_0x30918e[_0x31b287(0x1f4)]??_0x30918e,_0x428bd3['in']??_0x428bd3,_0x428bd3);}if(_0x335fd6[_0x31b287(0x22c)]&&_0x58b378[_0x31b287(0x229)]>0x1){let _0x38bac4=_0x58b378[_0x58b378[_0x31b287(0x229)]-0x1],_0x359b63=_0x58b378[0x0];_0x5cd7c2(_0x515b37,_0x38bac4,_0x38bac4[_0x31b287(0x1f4)]??_0x38bac4,_0x359b63['in']??_0x359b63,_0x359b63);}return _0x515b37;}function _0x2397b6(_0x3f5d61){const _0x4f8da1=_0x40c611;let _0x32bbc7=_0x3f5d61['points'];if(_0x32bbc7[_0x4f8da1(0x229)]<=0x1)return _0x32bbc7;let _0x320393=[];for(let _0x274680=0x0;_0x274680<_0x32bbc7[_0x4f8da1(0x229)]-0x1;_0x274680++){let _0x59518f=_0x32bbc7[_0x274680],_0x585526=_0x32bbc7[_0x274680+0x1],_0x46d555=_0x32bbc7[_0x274680-0x1]??_0x59518f,_0x2a7afb=_0x32bbc7[_0x274680+0x2]??_0x585526;_0x5cd7c2(_0x320393,_0x59518f,{'x':_0x59518f['x']+(_0x585526['x']-_0x46d555['x'])/0x6,'y':_0x59518f['y']+(_0x585526['y']-_0x46d555['y'])/0x6},{'x':_0x585526['x']-(_0x2a7afb['x']-_0x59518f['x'])/0x6,'y':_0x585526['y']-(_0x2a7afb['y']-_0x59518f['y'])/0x6},_0x585526);}return _0x320393;}function _0x5ac13f(_0x3cd323){const _0x4e5f14=_0x40c611;return _0x3cd323[_0x4e5f14(0x1ec)]===_0x4e5f14(0x1f2)?_0x3ad36e(_0x3cd323):_0x2397b6(_0x3cd323);}function _0x5e5bdb(_0x373cdf){let _0x6bc588=Math['round'](_0x373cdf*0x2710)/0x2710;return Object['is'](_0x6bc588,-0x0)?0x0:_0x6bc588;}function _0x94a21e(_0x23eb1b){const _0x54f8e6=_0x40c611;let _0x3e1adc=_0x5ac13f(_0x23eb1b);if(_0x3e1adc[_0x54f8e6(0x229)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x1a6be5=Math[_0x54f8e6(0x209)](..._0x3e1adc[_0x54f8e6(0x21e)](_0x5b6f55=>_0x5b6f55['x'])),_0x4356a4=Math[_0x54f8e6(0x209)](..._0x3e1adc[_0x54f8e6(0x21e)](_0x356f3b=>_0x356f3b['y'])),_0x58a142=Math[_0x54f8e6(0x214)](..._0x3e1adc[_0x54f8e6(0x21e)](_0x346ead=>_0x346ead['x'])),_0x42572c=Math[_0x54f8e6(0x214)](..._0x3e1adc[_0x54f8e6(0x21e)](_0x13215d=>_0x13215d['y']));return{'left':_0x5e5bdb(_0x1a6be5),'top':_0x5e5bdb(_0x4356a4),'width':_0x5e5bdb(Math[_0x54f8e6(0x214)](0x1,_0x58a142-_0x1a6be5)),'height':_0x5e5bdb(Math[_0x54f8e6(0x214)](0x1,_0x42572c-_0x4356a4))};}function _0xe0abd0(_0x3103be,_0x53693a){const _0x119c43=_0x40c611;let _0x5affc1=_0x3103be[_0x119c43(0x212)];if(_0x5affc1[_0x119c43(0x229)]===0x0)return'';let _0x4ed17c=['M\x20'+_0xa95336(_0x3786ce(_0x5affc1[0x0],_0x53693a))];for(let _0x4a7d45=0x1;_0x4a7d45<_0x5affc1['length'];_0x4a7d45++){let _0x52e801=_0x5affc1[_0x4a7d45-0x1],_0x13854a=_0x5affc1[_0x4a7d45],_0x266444=_0x52e801[_0x119c43(0x1f4)]??_0x52e801,_0x17eb0f=_0x13854a['in']??_0x13854a;_0x4ed17c[_0x119c43(0x204)]('C\x20'+_0xa95336(_0x3786ce(_0x266444,_0x53693a))+'\x20'+_0xa95336(_0x3786ce(_0x17eb0f,_0x53693a))+'\x20'+_0xa95336(_0x3786ce(_0x13854a,_0x53693a)));}if(_0x3103be['closed']&&_0x5affc1[_0x119c43(0x229)]>0x1){let _0x3f7b3a=_0x5affc1[_0x5affc1[_0x119c43(0x229)]-0x1],_0x2f7893=_0x5affc1[0x0],_0x1c161b=_0x3f7b3a[_0x119c43(0x1f4)]??_0x3f7b3a,_0xb3b48d=_0x2f7893['in']??_0x2f7893;_0x4ed17c[_0x119c43(0x204)]('C\x20'+_0xa95336(_0x3786ce(_0x1c161b,_0x53693a))+'\x20'+_0xa95336(_0x3786ce(_0xb3b48d,_0x53693a))+'\x20'+_0xa95336(_0x3786ce(_0x2f7893,_0x53693a))),_0x4ed17c[_0x119c43(0x204)]('Z');}return _0x4ed17c[_0x119c43(0x241)]('\x20');}function _0x320281(_0x33a3cf,_0x45ba49){const _0x2d6610=_0x40c611;let _0x48f7e3=_0x33a3cf[_0x2d6610(0x240)][_0x2d6610(0x21e)](_0x5c3a2f=>_0x3786ce(_0x5c3a2f,_0x45ba49));if(_0x48f7e3[_0x2d6610(0x229)]===0x0)return'';if(_0x48f7e3['length']===0x1)return'M\x20'+_0xa95336(_0x48f7e3[0x0]);let _0x1aa879=['M\x20'+_0xa95336(_0x48f7e3[0x0])];for(let _0x27b0c3=0x0;_0x27b0c3<_0x48f7e3[_0x2d6610(0x229)]-0x1;_0x27b0c3++){let _0x7eec52=_0x48f7e3[_0x27b0c3],_0x1e0804=_0x48f7e3[_0x27b0c3+0x1],_0x4f1085=_0x48f7e3[_0x27b0c3-0x1]??_0x7eec52,_0x47b15d=_0x48f7e3[_0x27b0c3+0x2]??_0x1e0804,_0x365bdd={'x':_0x7eec52['x']+(_0x1e0804['x']-_0x4f1085['x'])/0x6,'y':_0x7eec52['y']+(_0x1e0804['y']-_0x4f1085['y'])/0x6},_0x597cbe={'x':_0x1e0804['x']-(_0x47b15d['x']-_0x7eec52['x'])/0x6,'y':_0x1e0804['y']-(_0x47b15d['y']-_0x7eec52['y'])/0x6};_0x1aa879[_0x2d6610(0x204)]('C\x20'+_0xa95336(_0x365bdd)+'\x20'+_0xa95336(_0x597cbe)+'\x20'+_0xa95336(_0x1e0804));}return _0x1aa879[_0x2d6610(0x241)]('\x20');}function _0x1dc61b(_0x3b4aff,_0x512979){const _0x57df2b=_0x40c611;return _0x3b4aff['kind']===_0x57df2b(0x1f2)?_0xe0abd0(_0x3b4aff,_0x512979):_0x320281(_0x3b4aff,_0x512979);}function _0x540a43(_0xf04a0d,_0x1f2226){const _0x3ac358=_0x40c611;return _0x1f2226!=null&&_0x1f2226[_0x3ac358(0x21b)]?_0x1f2226[_0x3ac358(0x21b)]:_0xf04a0d['kind']===_0x3ac358(0x1f2)?'#f54a45':_0xf04a0d[_0x3ac358(0x21b)];}function _0x3cf5a2(_0x528726,_0x5a996b){const _0x2bb644=_0x40c611;return(_0x5a996b==null?void 0x0:_0x5a996b[_0x2bb644(0x1e3)])===void 0x0?_0x528726[_0x2bb644(0x1ec)]===_0x2bb644(0x1f2)?0x2:_0x528726['width']:_0x5a996b['width'];}function _0x5aa5d3(_0x5b418b,_0x38c3d0){const _0x3c31ab=_0x40c611;return(_0x38c3d0==null?void 0x0:_0x38c3d0[_0x3c31ab(0x25b)])===void 0x0?_0x5b418b[_0x3c31ab(0x1ec)]===_0x3c31ab(0x1f2)?void 0x0:_0x5b418b['opacity']:_0x38c3d0[_0x3c31ab(0x25b)];}function _0x39936a(_0x2fdb33,_0x5afdf1){const _0x38edc5=_0x40c611;let _0x184faa=_0x94a21e(_0x2fdb33),_0x5cf4df=_0x1dc61b(_0x2fdb33,{'x':_0x184faa[_0x38edc5(0x228)],'y':_0x184faa[_0x38edc5(0x231)]}),_0x2ca0d2=_0x2fdb33[_0x38edc5(0x1ec)]===_0x38edc5(0x1f2)&&_0x2fdb33[_0x38edc5(0x22c)],_0x5446b8=_0x5afdf1==null?void 0x0:_0x5afdf1[_0x38edc5(0x246)];return{'shapeType':_0x44466f[_0x38edc5(0x250)][_0x38edc5(0x23a)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x184faa[_0x38edc5(0x1e3)],'h':_0x184faa[_0x38edc5(0x237)],'fill':_0x2ca0d2?_0x38edc5(0x206):_0x38edc5(0x25d),'stroke':!0x0,'data':_0x5cf4df,'dataArray':_0x48eb3d(_0x2fdb33,{'x':_0x184faa[_0x38edc5(0x228)],'y':_0x184faa['top']})}]},'fill':_0x2ca0d2&&_0x5446b8?{'color':_0x5446b8,'fillType':_0x44466f[_0x38edc5(0x1e0)][_0x38edc5(0x1ea)]}:{'fillType':_0x44466f[_0x38edc5(0x1e0)]['NoFill']},'stroke':{'color':_0x540a43(_0x2fdb33,_0x5afdf1),'width':_0x3cf5a2(_0x2fdb33,_0x5afdf1),'opacity':_0x5aa5d3(_0x2fdb33,_0x5afdf1),'lineStrokeType':_0x44466f[_0x38edc5(0x252)][_0x38edc5(0x223)],'capType':_0x44466f[_0x38edc5(0x25f)][_0x38edc5(0x21a)],'lineJoinType':_0x44466f[_0x38edc5(0x258)]['Round']}};}function _0x2566cf(_0x2a26e5,_0x26c636){return{'x':_0x2a26e5['x']-_0x26c636['x'],'y':_0x2a26e5['y']-_0x26c636['y']};}function _0x48eb3d(_0x4857cf,_0x530bec){const _0x225401=_0x40c611;if(_0x4857cf['kind']==='pen'){let _0x5765c8=_0x4857cf[_0x225401(0x212)];if(_0x5765c8[_0x225401(0x229)]===0x0)return[];let _0x4fe4bf=_0x2566cf(_0x5765c8[0x0],_0x530bec),_0x36c118=[{'command':'M','points':[_0x4fe4bf['x'],_0x4fe4bf['y']]}];for(let _0x2024f7=0x1;_0x2024f7<_0x5765c8[_0x225401(0x229)];_0x2024f7++){let _0x46af6b=_0x5765c8[_0x2024f7-0x1],_0x5388da=_0x5765c8[_0x2024f7],_0x22dd8c=_0x2566cf(_0x46af6b[_0x225401(0x1f4)]??_0x46af6b,_0x530bec),_0x1a4538=_0x2566cf(_0x5388da['in']??_0x5388da,_0x530bec),_0xb08e2f=_0x2566cf(_0x5388da,_0x530bec);_0x36c118['push']({'command':'C','points':[_0x22dd8c['x'],_0x22dd8c['y'],_0x1a4538['x'],_0x1a4538['y'],_0xb08e2f['x'],_0xb08e2f['y']]});}if(_0x4857cf[_0x225401(0x22c)]&&_0x5765c8[_0x225401(0x229)]>0x1){let _0x29236e=_0x5765c8[_0x5765c8[_0x225401(0x229)]-0x1],_0x8a336c=_0x5765c8[0x0],_0x179de2=_0x2566cf(_0x29236e['out']??_0x29236e,_0x530bec),_0x27e356=_0x2566cf(_0x8a336c['in']??_0x8a336c,_0x530bec),_0x1a6146=_0x2566cf(_0x8a336c,_0x530bec);_0x36c118[_0x225401(0x204)]({'command':'C','points':[_0x179de2['x'],_0x179de2['y'],_0x27e356['x'],_0x27e356['y'],_0x1a6146['x'],_0x1a6146['y']]}),_0x36c118[_0x225401(0x204)]({'command':'z','points':[]});}return _0x36c118;}let _0x417a22=_0x4857cf[_0x225401(0x240)][_0x225401(0x21e)](_0x513958=>_0x2566cf(_0x513958,_0x530bec));if(_0x417a22[_0x225401(0x229)]===0x0)return[];let _0x1f4173=[{'command':'M','points':[_0x417a22[0x0]['x'],_0x417a22[0x0]['y']]}];for(let _0xc50f20=0x0;_0xc50f20<_0x417a22[_0x225401(0x229)]-0x1;_0xc50f20++){let _0x2a9edb=_0x417a22[_0xc50f20],_0x29db81=_0x417a22[_0xc50f20+0x1],_0x47edd=_0x417a22[_0xc50f20-0x1]??_0x2a9edb,_0x4a1931=_0x417a22[_0xc50f20+0x2]??_0x29db81,_0x2bb340={'x':_0x2a9edb['x']+(_0x29db81['x']-_0x47edd['x'])/0x6,'y':_0x2a9edb['y']+(_0x29db81['y']-_0x47edd['y'])/0x6},_0x550aa={'x':_0x29db81['x']-(_0x4a1931['x']-_0x2a9edb['x'])/0x6,'y':_0x29db81['y']-(_0x4a1931['y']-_0x2a9edb['y'])/0x6};_0x1f4173[_0x225401(0x204)]({'command':'C','points':[_0x2bb340['x'],_0x2bb340['y'],_0x550aa['x'],_0x550aa['y'],_0x29db81['x'],_0x29db81['y']]});}return _0x1f4173;}function _0x3490d6(_0x181062){const _0x29f394=_0x40c611;let {model:_0x151774,sourceModel:_0x2d303=_0x151774,style:_0xbe748e}=_0x181062,_0x26cb50=_0x181062[_0x29f394(0x205)]??_0x151774[_0x29f394(0x1ec)],_0x1a33b8=_0x94a21e(_0x151774),_0x239a3a=_0x151774['kind']===_0x29f394(0x1f2)&&_0x26cb50!=='pen'?_0x151774:void 0x0;return{'transform':{..._0x1a33b8,'rotation':0x0},'shapeData':_0x39936a(_0x151774,_0xbe748e),'ink':{'version':0x1,'tool':_0x26cb50,'sourceModel':_0x2d303,..._0x239a3a?{'editModel':_0x239a3a}:{},'normalizedBounds':_0x1a33b8}};}var _0x51df4c=_0x40c611(0x247),_0x3863c3=_0x40c611(0x226);function _0x561948(_0x2e0464){'@babel/helpers - typeof';const _0xc09535=_0x40c611;return _0x561948=typeof Symbol==_0xc09535(0x215)&&typeof Symbol['iterator']==_0xc09535(0x220)?function(_0xb05bd4){return typeof _0xb05bd4;}:function(_0x20957a){const _0x3a2255=_0xc09535;return _0x20957a&&typeof Symbol==_0x3a2255(0x215)&&_0x20957a[_0x3a2255(0x1fb)]===Symbol&&_0x20957a!==Symbol[_0x3a2255(0x1f5)]?_0x3a2255(0x220):typeof _0x20957a;},_0x561948(_0x2e0464);}function _0x593f87(_0x2d8496,_0x2d79a7){const _0x42b564=_0x40c611;if(_0x561948(_0x2d8496)!=_0x42b564(0x1e4)||!_0x2d8496)return _0x2d8496;var _0x322a8f=_0x2d8496[Symbol[_0x42b564(0x216)]];if(_0x322a8f!==void 0x0){var _0x2cd264=_0x322a8f['call'](_0x2d8496,_0x2d79a7||'default');if(_0x561948(_0x2cd264)!='object')return _0x2cd264;throw TypeError(_0x42b564(0x25e));}return(_0x2d79a7===_0x42b564(0x257)?String:Number)(_0x2d8496);}function _0x167321(_0x5e244f){const _0x2d86dd=_0x40c611;var _0x130c54=_0x593f87(_0x5e244f,_0x2d86dd(0x257));return _0x561948(_0x130c54)==_0x2d86dd(0x220)?_0x130c54:_0x130c54+'';}function _0x3fc59c(_0x3e8973,_0xe7e1c5,_0x4f5c20){const _0x5d4aa8=_0x40c611;return(_0xe7e1c5=_0x167321(_0xe7e1c5))in _0x3e8973?Object[_0x5d4aa8(0x1fe)](_0x3e8973,_0xe7e1c5,{'value':_0x4f5c20,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3e8973[_0xe7e1c5]=_0x4f5c20,_0x3e8973;}let _0x31c7b3=(0x0,_0x334201[_0x40c611(0x22b)])(_0x40c611(0x1e2));var _0x4c28e6=class{constructor(){const _0x2a8905=_0x40c611;_0x3fc59c(this,_0x2a8905(0x1f8),[]);}[_0x40c611(0x238)](_0x18958d){const _0x904ce4=_0x40c611;return this[_0x904ce4(0x1f8)][_0x904ce4(0x204)](_0x18958d),(0x0,_0x334201['toDisposable'])(()=>{const _0x1ba637=_0x904ce4;let _0x5952d9=this['_adapters'][_0x1ba637(0x260)](_0x18958d);_0x5952d9>=0x0&&this[_0x1ba637(0x1f8)][_0x1ba637(0x208)](_0x5952d9,0x1);});}['beginInkMode'](_0x2aed7e){const _0x17fa4d=_0x40c611;for(let _0x5b206f of this['_adapters'])if(_0x5b206f[_0x17fa4d(0x1f6)](_0x2aed7e))return!0x0;return!0x1;}async['createCustomShape'](_0x369291){const _0x231bc7=_0x40c611;for(let _0x169e0f of this['_adapters'])if(_0x169e0f[_0x231bc7(0x255)]&&await _0x169e0f[_0x231bc7(0x255)](_0x369291))return!0x0;return!0x1;}};let _0x8f05e0={'id':_0x40c611(0x24b),'type':_0x334201[_0x40c611(0x236)][_0x40c611(0x259)],'handler':(_0x4a8c39,_0x1542a8)=>_0x1542a8?_0x4a8c39['get'](_0x31c7b3)['beginInkMode'](_0x1542a8):!0x1},_0x4e5cde={};function _0x4d87d8(_0x98ad3a,_0x121c61){return function(_0x178c3b,_0xa7509d){_0x121c61(_0x178c3b,_0xa7509d,_0x98ad3a);};}function _0xf25d50(_0x574d88,_0xc188de,_0x3b682b,_0x1cc4d5){const _0x2fbbb5=_0x40c611;var _0x40841f=arguments[_0x2fbbb5(0x229)],_0x32fd25=_0x40841f<0x3?_0xc188de:_0x1cc4d5===null?_0x1cc4d5=Object['getOwnPropertyDescriptor'](_0xc188de,_0x3b682b):_0x1cc4d5,_0x55f4b9;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x2fbbb5(0x215))_0x32fd25=Reflect[_0x2fbbb5(0x1e7)](_0x574d88,_0xc188de,_0x3b682b,_0x1cc4d5);else{for(var _0x33b9da=_0x574d88['length']-0x1;_0x33b9da>=0x0;_0x33b9da--)(_0x55f4b9=_0x574d88[_0x33b9da])&&(_0x32fd25=(_0x40841f<0x3?_0x55f4b9(_0x32fd25):_0x40841f>0x3?_0x55f4b9(_0xc188de,_0x3b682b,_0x32fd25):_0x55f4b9(_0xc188de,_0x3b682b))||_0x32fd25);}return _0x40841f>0x3&&_0x32fd25&&Object[_0x2fbbb5(0x1fe)](_0xc188de,_0x3b682b,_0x32fd25),_0x32fd25;}let _0x33c25d=class extends _0x334201[_0x40c611(0x24c)]{constructor(_0x11ad38=_0x4e5cde,_0x474c05,_0x3df137,_0x37941e){const _0x3a9c1b=_0x40c611;super(),this[_0x3a9c1b(0x201)]=_0x11ad38,this[_0x3a9c1b(0x23c)]=_0x474c05,this['_commandService']=_0x3df137,this[_0x3a9c1b(0x210)]=_0x37941e;let {..._0x155675}=(0x0,_0x334201[_0x3a9c1b(0x244)])({},_0x4e5cde,this['_config']);this[_0x3a9c1b(0x210)][_0x3a9c1b(0x256)](_0x3a9c1b(0x20c),_0x155675);}[_0x40c611(0x23d)](){const _0x3061ed=_0x40c611;[[_0x31c7b3,{'useClass':_0x4c28e6}]]['forEach'](_0x3c077c=>this[_0x3061ed(0x23c)][_0x3061ed(0x1fa)](_0x3c077c)),this['disposeWithMe'](this[_0x3061ed(0x200)][_0x3061ed(0x1f3)](_0x8f05e0));}};_0x3fc59c(_0x33c25d,_0x40c611(0x21f),_0x40c611(0x1eb)),_0x3fc59c(_0x33c25d,_0x40c611(0x24f),_0x51df4c),_0x3fc59c(_0x33c25d,_0x40c611(0x222),_0x3863c3),_0x3fc59c(_0x33c25d,_0x40c611(0x20f),_0x334201[_0x40c611(0x1ff)][_0x40c611(0x23f)]),_0x33c25d=_0xf25d50([(0x0,_0x334201[_0x40c611(0x20a)])(_0x594073[_0x40c611(0x202)]),_0x4d87d8(0x1,(0x0,_0x334201[_0x40c611(0x1e9)])(_0x334201[_0x40c611(0x1e8)])),_0x4d87d8(0x2,_0x334201['ICommandService']),_0x4d87d8(0x3,_0x334201['IConfigService'])],_0x33c25d),_0x55afab[_0x40c611(0x23b)]=_0x31c7b3,Object['defineProperty'](_0x55afab,_0x40c611(0x20e),{'enumerable':!0x0,'get':function(){return _0x33c25d;}}),_0x55afab[_0x40c611(0x1e1)]=_0x3490d6,_0x55afab[_0x40c611(0x219)]=_0x49ed33,_0x55afab[_0x40c611(0x1e6)]=_0xc30d15,_0x55afab[_0x40c611(0x22f)]=_0x35fdbb,_0x55afab['findClosestInkPenHandle']=_0x3e0249,_0x55afab['findClosestInkPenSegment']=_0x586168,_0x55afab[_0x40c611(0x1f7)]=_0x94a21e,_0x55afab['getInkPenPreviewModel']=_0x2e533a,_0x55afab[_0x40c611(0x227)]=_0x361d83,_0x55afab[_0x40c611(0x207)]=_0x18c1b7,_0x55afab[_0x40c611(0x218)]=_0x2db9c8,_0x55afab[_0x40c611(0x232)]=_0x1c623f;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/ink",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.2",
4
4
  "private": false,
5
5
  "description": "Reusable ink model and geometry integration for Univer.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -11,7 +11,7 @@
11
11
  "homepage": "https://univer.ai",
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "https://github.com/dream-num/univer"
14
+ "url": "https://github.com/dream-num/univer-pro"
15
15
  },
16
16
  "bugs": {
17
17
  "url": "https://github.com/dream-num/univer/issues"
@@ -58,15 +58,15 @@
58
58
  "lib"
59
59
  ],
60
60
  "dependencies": {
61
- "@univerjs-pro/boards": "1.0.0-beta.0",
62
- "@univerjs-pro/license": "1.0.0-beta.0",
63
- "@univerjs/core": "1.0.0-beta.0",
64
- "@univerjs-pro/engine-shape": "1.0.0-beta.0"
61
+ "@univerjs-pro/boards": "1.0.0-beta.2",
62
+ "@univerjs-pro/engine-shape": "1.0.0-beta.2",
63
+ "@univerjs-pro/license": "1.0.0-beta.2",
64
+ "@univerjs/core": "1.0.0-beta.2"
65
65
  },
66
66
  "devDependencies": {
67
67
  "typescript": "^6.0.3",
68
68
  "vitest": "^4.1.10",
69
- "@univerjs-infra/shared": "1.0.0-beta.0"
69
+ "@univerjs-infra/shared": "1.0.0-beta.2"
70
70
  },
71
71
  "scripts": {
72
72
  "test": "vitest run",