@univerjs-pro/ink 1.0.0-alpha.8 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  | Package | UMD global | CSS | Locales | Facade entry |
12
12
  | --- | --- | :---: | :---: | :---: |
13
- | `@univerjs-pro/ink` | `UniverProInk` | No | No | No |
13
+ | `@univerjs-pro/ink` | `UniverProInk` | No | No | Yes |
14
14
 
15
15
  ## Installation
16
16
 
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x5a63(){const _0x103641=['BoardInkHandleKind','sourceModel','225lzKTiM','tool','laneId','BoardElementType','highlighter','kind','FBoard','buildInkCustomShapePayload','15rGZxbC','custom','11FAiAim','Module','107304gkmdWi','182qeuDKx','type','trim','width','defineProperty','getInks','667701xCqROL','smooth','brush','isArray','shapeData','BoardInkPointType','opacity','model','transform','357fRCspP','BoardInkTool','add','43819jMCXbS','808704ZRItIJ','FEnum','anchors','14iwvhfd','has','length','insertInk','object','335532GnnHBx','every','2793070mUNlgJ','generateRandomId','pressure','pen','version','filter','free','points','Tools','out','isFinite','47298edhEOY','deepClone','Shape','extend','findElements','symmetric','_addElement'];_0x5a63=function(){return _0x103641;};return _0x5a63();}const _0x26ddc2=_0x1372;(function(_0x35b2cd,_0x211889){const _0x2883d5=_0x1372,_0x54dbc5=_0x35b2cd();while(!![]){try{const _0x425f67=parseInt(_0x2883d5(0x18d))/0x1*(-parseInt(_0x2883d5(0x191))/0x2)+parseInt(_0x2883d5(0x181))/0x3+parseInt(_0x2883d5(0x196))/0x4*(parseInt(_0x2883d5(0x1b4))/0x5)+-parseInt(_0x2883d5(0x1a3))/0x6*(-parseInt(_0x2883d5(0x18a))/0x7)+parseInt(_0x2883d5(0x17a))/0x8*(parseInt(_0x2883d5(0x1ac))/0x9)+parseInt(_0x2883d5(0x198))/0xa*(parseInt(_0x2883d5(0x1b6))/0xb)+-parseInt(_0x2883d5(0x18e))/0xc*(parseInt(_0x2883d5(0x17b))/0xd);if(_0x425f67===_0x211889)break;else _0x54dbc5['push'](_0x54dbc5['shift']());}catch(_0x116826){_0x54dbc5['push'](_0x54dbc5['shift']());}}}(_0x5a63,0x3ac14),Object[_0x26ddc2(0x17f)](exports,Symbol['toStringTag'],{'value':_0x26ddc2(0x1b7)}));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[_0x26ddc2(0x1b2)]{[_0x26ddc2(0x194)](_0x334fcb){const _0x4a41e7=_0x26ddc2;let _0x326534=o(_0x334fcb);return _0x326534&&this[_0x4a41e7(0x1a9)](_0x326534,{'insertIndex':_0x334fcb['insertIndex']})?_0x326534:null;}[_0x26ddc2(0x180)](){const _0x430647=_0x26ddc2;return this[_0x430647(0x1a7)]({'elementType':e['BoardElementType'][_0x430647(0x1a5)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x430647(0x19d)](f);}};function _0x1372(_0x4e10ee,_0xb00257){_0x4e10ee=_0x4e10ee-0x17a;const _0x5a637c=_0x5a63();let _0x1372c7=_0x5a637c[_0x4e10ee];return _0x1372c7;}function o(_0x119438,_0x22a030){const _0x326280=_0x26ddc2;var _0x26178a,_0x5e8e8a,_0x13b9e1;if(!c(_0x119438['model'])||_0x119438[_0x326280(0x1ab)]!==void 0x0&&!c(_0x119438[_0x326280(0x1ab)])||!l(_0x119438['style']))return null;let _0x119831=(_0x26178a=_0x119438['parentId'])==null?_0x22a030==null?void 0x0:_0x22a030['parentId']:_0x26178a,_0x5095ac=r[_0x326280(0x1a0)][_0x326280(0x1a4)](_0x119438[_0x326280(0x188)]),_0x227d5e=(0x0,n[_0x326280(0x1b3)])({'model':_0x5095ac,'style':_0x119438['style'],'tool':_0x119438[_0x326280(0x1ad)],'sourceModel':_0x119438[_0x326280(0x1ab)]?r[_0x326280(0x1a0)]['deepClone'](_0x119438[_0x326280(0x1ab)]):_0x5095ac}),_0x4a7e1a=u(_0x22a030==null?void 0x0:_0x22a030[_0x326280(0x1b5)]);return{'id':(_0x5e8e8a=(_0x13b9e1=_0x22a030==null?void 0x0:_0x22a030['id'])==null?_0x119438['id']:_0x13b9e1)==null?(0x0,r[_0x326280(0x199)])(0x6):_0x5e8e8a,'type':e[_0x326280(0x1af)][_0x326280(0x1a5)],'transform':_0x227d5e[_0x326280(0x189)],'shapeData':_0x227d5e[_0x326280(0x185)],'parentId':_0x119831==null?void 0x0:_0x119831,'laneId':_0x119438['laneId']===void 0x0?_0x22a030==null?void 0x0:_0x22a030[_0x326280(0x1ae)]:_0x119438[_0x326280(0x1ae)],'custom':{..._0x4a7e1a,'ink':_0x227d5e['ink']}};}function s(_0x1a72e5){return Number['isFinite'](_0x1a72e5['x'])&&Number['isFinite'](_0x1a72e5['y']);}function c(_0x3f4ea8){const _0x32d470=_0x26ddc2;if(_0x3f4ea8[_0x32d470(0x1b1)]===_0x32d470(0x19b)){let _0x334bd9=new Set();return _0x3f4ea8[_0x32d470(0x190)][_0x32d470(0x193)]>=(_0x3f4ea8['closed']?0x3:0x2)&&_0x3f4ea8[_0x32d470(0x190)][_0x32d470(0x197)](_0xf026f1=>{const _0x369371=_0x32d470;let _0xa1f8ad=_0xf026f1['id'][_0x369371(0x17d)]()['length']>0x0&&!_0x334bd9[_0x369371(0x192)](_0xf026f1['id'])&&s(_0xf026f1)&&(!_0xf026f1['in']||s(_0xf026f1['in']))&&(!_0xf026f1[_0x369371(0x1a1)]||s(_0xf026f1[_0x369371(0x1a1)]));return _0x334bd9[_0x369371(0x18c)](_0xf026f1['id']),_0xa1f8ad;});}return _0x3f4ea8[_0x32d470(0x19f)][_0x32d470(0x193)]>=0x2&&_0x3f4ea8['points']['every'](_0x53886b=>s(_0x53886b)&&Number[_0x32d470(0x1a2)](_0x53886b['t'])&&(_0x53886b['pressure']===void 0x0||Number['isFinite'](_0x53886b[_0x32d470(0x19a)])))&&Number[_0x32d470(0x1a2)](_0x3f4ea8[_0x32d470(0x17e)])&&_0x3f4ea8['width']>0x0&&Number['isFinite'](_0x3f4ea8['opacity'])&&_0x3f4ea8[_0x32d470(0x187)]>=0x0&&_0x3f4ea8[_0x32d470(0x187)]<=0x1;}function l(_0x2ff941){const _0x3e3779=_0x26ddc2;return _0x2ff941===void 0x0||(_0x2ff941[_0x3e3779(0x17e)]===void 0x0||Number[_0x3e3779(0x1a2)](_0x2ff941['width'])&&_0x2ff941[_0x3e3779(0x17e)]>0x0)&&(_0x2ff941[_0x3e3779(0x187)]===void 0x0||Number[_0x3e3779(0x1a2)](_0x2ff941[_0x3e3779(0x187)])&&_0x2ff941['opacity']>=0x0&&_0x2ff941[_0x3e3779(0x187)]<=0x1);}function u(_0x1fed8e){const _0x5f6c=_0x26ddc2;return _0x1fed8e&&typeof _0x1fed8e==_0x5f6c(0x195)&&!Array[_0x5f6c(0x184)](_0x1fed8e)?_0x1fed8e:{};}function d(_0x56570b){const _0x284820=_0x26ddc2;let _0x5934eb=u(_0x56570b[_0x284820(0x1b5)])['ink'];if(!_0x5934eb||typeof _0x5934eb!='object'||Array[_0x284820(0x184)](_0x5934eb))return null;let _0x9bff69=_0x5934eb;return _0x9bff69[_0x284820(0x19c)]===0x1&&_0x9bff69[_0x284820(0x1ab)]&&typeof _0x9bff69[_0x284820(0x1ab)]==_0x284820(0x195)?_0x9bff69:null;}function f(_0x197d20){const _0x5577a7=_0x26ddc2;return _0x197d20[_0x5577a7(0x17c)]===e['BoardElementType'][_0x5577a7(0x1a5)]&&!!d(_0x197d20);}t['FBoard'][_0x26ddc2(0x1a6)](a);const p={'Pen':_0x26ddc2(0x19b),'Brush':_0x26ddc2(0x183),'Highlighter':_0x26ddc2(0x1b0)},m={'Corner':'corner','Smooth':_0x26ddc2(0x182),'Symmetric':_0x26ddc2(0x1a8),'Free':_0x26ddc2(0x19e)},h={'Anchor':'anchor','In':'in','Out':_0x26ddc2(0x1a1)};var g=class extends i[_0x26ddc2(0x18f)]{get['BoardInkTool'](){return p;}get[_0x26ddc2(0x186)](){return m;}get[_0x26ddc2(0x1aa)](){return h;}};i['FEnum']['extend'](g),exports[_0x26ddc2(0x1aa)]=h,exports[_0x26ddc2(0x186)]=m,exports[_0x26ddc2(0x18b)]=p;
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;
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2732bb=_0x448f;(function(_0x4bd00f,_0x8b6670){const _0x21b520=_0x448f,_0x5a0033=_0x4bd00f();while(!![]){try{const _0x2ba724=-parseInt(_0x21b520(0xff))/0x1+parseInt(_0x21b520(0x11e))/0x2*(parseInt(_0x21b520(0xd2))/0x3)+-parseInt(_0x21b520(0xf7))/0x4*(parseInt(_0x21b520(0xe0))/0x5)+-parseInt(_0x21b520(0xf3))/0x6*(parseInt(_0x21b520(0xe7))/0x7)+parseInt(_0x21b520(0xc0))/0x8+parseInt(_0x21b520(0xcf))/0x9+-parseInt(_0x21b520(0xdd))/0xa*(-parseInt(_0x21b520(0xe5))/0xb);if(_0x2ba724===_0x8b6670)break;else _0x5a0033['push'](_0x5a0033['shift']());}catch(_0x14e7eb){_0x5a0033['push'](_0x5a0033['shift']());}}}(_0x27a3,0x7d0ac),Object[_0x2732bb(0xb4)](exports,Symbol[_0x2732bb(0x104)],{'value':_0x2732bb(0xfb)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');function _0x448f(_0x43efaa,_0x1a1f08){_0x43efaa=_0x43efaa-0xab;const _0x27a3f6=_0x27a3();let _0x448ffd=_0x27a3f6[_0x43efaa];return _0x448ffd;}const r=0.0001;function i(_0x2903f5){return{'x':_0x2903f5['x'],'y':_0x2903f5['y']};}function a(_0x1efc46){const _0x89f36c=_0x2732bb;return{..._0x1efc46,'in':_0x1efc46['in']?i(_0x1efc46['in']):void 0x0,'out':_0x1efc46[_0x89f36c(0xea)]?i(_0x1efc46[_0x89f36c(0xea)]):void 0x0};}function o(_0x2ad64c){const _0x42594e=_0x2732bb;return{'kind':'pen','closed':_0x2ad64c[_0x42594e(0xec)],'anchors':_0x2ad64c[_0x42594e(0xf8)]['map'](a)};}function s(_0x5c3e4d,_0x358794,_0x220455){return{'x':_0x5c3e4d['x']+(_0x358794['x']-_0x5c3e4d['x'])*_0x220455,'y':_0x5c3e4d['y']+(_0x358794['y']-_0x5c3e4d['y'])*_0x220455};}function c(_0x546868,_0x512ba8){const _0x2ebe1b=_0x2732bb;return Math[_0x2ebe1b(0xc9)](_0x546868['x']-_0x512ba8['x'],_0x546868['y']-_0x512ba8['y']);}function l(_0x2dfeb1){const _0x3c91f4=_0x2732bb;let _0x12711f=Math[_0x3c91f4(0xc9)](_0x2dfeb1['x'],_0x2dfeb1['y']);return _0x12711f<r?{'x':0x1,'y':0x0}:{'x':_0x2dfeb1['x']/_0x12711f,'y':_0x2dfeb1['y']/_0x12711f};}function u(_0x2cc408,_0x5a6a3f,_0x38fab7=c(_0x2cc408,_0x5a6a3f)){let _0x67923=l({'x':_0x2cc408['x']-_0x5a6a3f['x'],'y':_0x2cc408['y']-_0x5a6a3f['y']});return{'x':_0x2cc408['x']+_0x67923['x']*_0x38fab7,'y':_0x2cc408['y']+_0x67923['y']*_0x38fab7};}function d(_0x2018e0,_0x53cd8e){const _0x4b306c=_0x2732bb;let {anchors:_0x35265e}=_0x2018e0;return _0x35265e[_0x4b306c(0xf2)]<0x2||_0x53cd8e<0x0?null:_0x53cd8e<_0x35265e[_0x4b306c(0xf2)]-0x1?{'startIndex':_0x53cd8e,'endIndex':_0x53cd8e+0x1,'start':_0x35265e[_0x53cd8e],'end':_0x35265e[_0x53cd8e+0x1]}:_0x2018e0[_0x4b306c(0xec)]&&_0x53cd8e===_0x35265e[_0x4b306c(0xf2)]-0x1?{'startIndex':_0x35265e['length']-0x1,'endIndex':0x0,'start':_0x35265e[_0x35265e['length']-0x1],'end':_0x35265e[0x0]}:null;}function f(_0x3a8a68,_0x1a096a){const _0x11cb3c=_0x2732bb;var _0x2bd9a1,_0x575e2f;let _0x185a7c=d(_0x3a8a68,_0x1a096a);return _0x185a7c?[_0x185a7c[_0x11cb3c(0xf6)],(_0x2bd9a1=_0x185a7c[_0x11cb3c(0xf6)][_0x11cb3c(0xea)])==null?_0x185a7c[_0x11cb3c(0xf6)]:_0x2bd9a1,(_0x575e2f=_0x185a7c[_0x11cb3c(0x10c)]['in'])==null?_0x185a7c[_0x11cb3c(0x10c)]:_0x575e2f,_0x185a7c[_0x11cb3c(0x10c)]]:null;}function ee(_0x1a1a9f,_0x2761eb){const _0x365903=_0x2732bb;var _0x4e3dd6;return _0x2761eb===_0x365903(0x116)?_0x1a1a9f:(_0x4e3dd6=_0x1a1a9f[_0x2761eb])==null?null:_0x4e3dd6;}function p(_0x4382df,_0x4d8e36,_0xc12d0a){const _0xcf02a6=_0x2732bb;return _0xc12d0a===_0xcf02a6(0x116)||_0x4382df[_0xcf02a6(0xec)]?!0x0:_0xc12d0a==='in'?_0x4d8e36>0x0:_0x4d8e36<_0x4382df[_0xcf02a6(0xf8)]['length']-0x1;}function m(_0x52279a,_0x5a77d7){let [_0x1a7e49,_0x1ae159,_0x3f5f9a,_0x246dc8]=_0x52279a,_0x577942=s(_0x1a7e49,_0x1ae159,_0x5a77d7),_0x5bcc43=s(_0x1ae159,_0x3f5f9a,_0x5a77d7),_0x24971c=s(_0x3f5f9a,_0x246dc8,_0x5a77d7);return s(s(_0x577942,_0x5bcc43,_0x5a77d7),s(_0x5bcc43,_0x24971c,_0x5a77d7),_0x5a77d7);}function h(_0x4763cb,_0x2bbbec){let [_0x4d62ef,_0x2145b7,_0x4cb40a,_0x5de05e]=_0x4763cb,_0x48052c=s(_0x4d62ef,_0x2145b7,_0x2bbbec),_0x3dc4f1=s(_0x2145b7,_0x4cb40a,_0x2bbbec),_0x49f884=s(_0x4cb40a,_0x5de05e,_0x2bbbec),_0x722e85=s(_0x48052c,_0x3dc4f1,_0x2bbbec),_0x4fc181=s(_0x3dc4f1,_0x49f884,_0x2bbbec),_0x49d669=s(_0x722e85,_0x4fc181,_0x2bbbec);return{'left':[_0x4d62ef,_0x48052c,_0x722e85,_0x49d669],'right':[_0x49d669,_0x4fc181,_0x49f884,_0x5de05e]};}function g(_0x19dbaf,_0x50c324,_0x438825){const _0x26100a=_0x2732bb;let _0x465a8e=_0x438825['x']-_0x50c324['x'],_0xa52680=_0x438825['y']-_0x50c324['y'],_0x37dea8=_0x465a8e*_0x465a8e+_0xa52680*_0xa52680,_0x87e998=_0x37dea8<=r?0x0:Math['max'](0x0,Math[_0x26100a(0xd4)](0x1,((_0x19dbaf['x']-_0x50c324['x'])*_0x465a8e+(_0x19dbaf['y']-_0x50c324['y'])*_0xa52680)/_0x37dea8)),_0x454bd7={'x':_0x50c324['x']+_0x465a8e*_0x87e998,'y':_0x50c324['y']+_0xa52680*_0x87e998};return{'point':_0x454bd7,'ratio':_0x87e998,'distance':c(_0x19dbaf,_0x454bd7)};}function te(_0xa54227,_0x102376,_0x3dd939){return g(_0xa54227,_0x102376,_0x3dd939)['distance']**0x2;}function _0x27a3(){const _0x46c89e=['toDisposable','start','553764oqFWYa','anchors','toPrimitive','opacity','Module','getInkModelBounds','fillColor','abs','926293PetWwS','endIndex','ShapeFillEnum','prototype','getInkPenPreviewModel','toStringTag','IConfigService','left','DependentOn','beginInkMode','ratio','round','max','end','sqrt','anchorId','UniverInstanceType','symmetric','_commandService','pointType','Plugin','convertBrushModelToPenModel','indexOf','anchor','add','SolidFill','constructor','ShapeLineTypeEnum','ShapeLineCapEnum','tool','points','338HUPGom','findIndex','onStarting','symbol','type','top','findClosestInkPenHandle','height','insertInkPenAnchorAt','iterator','none','_configService','string','free','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','findClosestInkPenSegment','forEach','smooth','tolerance','ICommandService','slice','join','cycleInkPenAnchorPointType','defineProperty','#f54a45','UniverInkPlugin','setInkPenAnchorPointType','_injector','Rect','deleteInkPenAnchor','NoFill','call','UNIVER_UNKNOWN','isInkPenHandleVisible','filter','5240664HBYpQB','find','createIdentifier','merge','__ink-preview-anchor__','_config','ShapeLineJoinEnum','segmentIndex','ShapeTypeEnum','hypot','ink-centerline-','registerCommand','push','getOwnPropertyDescriptor','_adapters','5800941faxiKW','createId','pluginName','4749xjqnJo','distance','min','startIndex','SolidLine','right','UniverLicensePlugin','ink.host-adapter.service','decorate','Round','UNIVER_INK_PLUGIN','4890400sLVEEo','pen','width','15pMZWZI','color','createCustomShape','object','point','11gtPWzF','OPERATION','7MTlKPY','corner','@univerjs-pro/ink','out','kind','closed','map','moveInkPenAnchorPoint','1.0.0-alpha.8','packageName','Inject','length','1214466BGxcPL','function'];_0x27a3=function(){return _0x46c89e;};return _0x27a3();}function _(_0x5c06de,_0x3c0848){const _0x9b15fc=_0x2732bb;if(_0x5c06de[_0x9b15fc(0xf2)]<=0x2)return _0x5c06de[_0x9b15fc(0xed)](i);let _0x9f5e16=0x0,_0x542912=0x0,_0x3b15ce=_0x5c06de[0x0],_0x422226=_0x5c06de[_0x5c06de[_0x9b15fc(0xf2)]-0x1],_0xf7a8a9=_0x3c0848*_0x3c0848;for(let _0x39d663=0x1;_0x39d663<_0x5c06de[_0x9b15fc(0xf2)]-0x1;_0x39d663++){let _0x16abbc=te(_0x5c06de[_0x39d663],_0x3b15ce,_0x422226);_0x16abbc>_0x9f5e16&&(_0x9f5e16=_0x16abbc,_0x542912=_0x39d663);}if(_0x9f5e16<=_0xf7a8a9)return[i(_0x3b15ce),i(_0x422226)];let _0x57cfff=_(_0x5c06de['slice'](0x0,_0x542912+0x1),_0x3c0848),_0x1507cb=_(_0x5c06de[_0x9b15fc(0xb1)](_0x542912),_0x3c0848);return[..._0x57cfff['slice'](0x0,-0x1),..._0x1507cb];}function ne(_0x260bc9,_0x12cb59){var _0x228a5c;let _0x1e9b4d=_0x260bc9[_0x12cb59],_0x2e2ff7=_0x260bc9[_0x12cb59+0x1],_0x1f8adc=(_0x228a5c=_0x260bc9[_0x12cb59-0x1])==null?_0x1e9b4d:_0x228a5c;return{'x':_0x1e9b4d['x']+(_0x2e2ff7['x']-_0x1f8adc['x'])/0x6,'y':_0x1e9b4d['y']+(_0x2e2ff7['y']-_0x1f8adc['y'])/0x6};}function v(_0x292c17,_0x21a9e3){var _0x5953dc;let _0x7bef9e=_0x292c17[_0x21a9e3],_0x11ca9f=_0x292c17[_0x21a9e3-0x1],_0x4b596b=(_0x5953dc=_0x292c17[_0x21a9e3+0x1])==null?_0x7bef9e:_0x5953dc;return{'x':_0x7bef9e['x']-(_0x4b596b['x']-_0x11ca9f['x'])/0x6,'y':_0x7bef9e['y']-(_0x4b596b['y']-_0x11ca9f['y'])/0x6};}function y(_0x1a5a7f,_0xde221c){const _0x35bdf1=_0x2732bb;var _0x2f52e2,_0x46b6e7;let _0x1b3b5e=_0x1a5a7f[_0x35bdf1(0xf8)][_0xde221c],_0x351395=(_0x2f52e2=_0x1a5a7f['anchors'][_0xde221c-0x1])==null?_0x1a5a7f[_0x35bdf1(0xec)]?_0x1a5a7f['anchors'][_0x1a5a7f[_0x35bdf1(0xf8)][_0x35bdf1(0xf2)]-0x1]:null:_0x2f52e2,_0x30b05e=(_0x46b6e7=_0x1a5a7f['anchors'][_0xde221c+0x1])==null?_0x1a5a7f[_0x35bdf1(0xec)]?_0x1a5a7f[_0x35bdf1(0xf8)][0x0]:null:_0x46b6e7,_0x1811d8=_0x351395&&_0x30b05e?l({'x':_0x30b05e['x']-_0x351395['x'],'y':_0x30b05e['y']-_0x351395['y']}):_0x30b05e?l({'x':_0x30b05e['x']-_0x1b3b5e['x'],'y':_0x30b05e['y']-_0x1b3b5e['y']}):_0x351395?l({'x':_0x1b3b5e['x']-_0x351395['x'],'y':_0x1b3b5e['y']-_0x351395['y']}):{'x':0x1,'y':0x0},_0x47a79a=_0x351395&&_0x30b05e?Math[_0x35bdf1(0x10b)](0x32,c(_0x351395,_0x30b05e)/0x4):0x32;return{'in':{'x':_0x1b3b5e['x']-_0x1811d8['x']*_0x47a79a,'y':_0x1b3b5e['y']-_0x1811d8['y']*_0x47a79a},'out':{'x':_0x1b3b5e['x']+_0x1811d8['x']*_0x47a79a,'y':_0x1b3b5e['y']+_0x1811d8['y']*_0x47a79a}};}function b(_0x32e3eb,_0x446f72){const _0x30079=_0x2732bb;let _0x127038=_0x32e3eb[_0x446f72],_0x1dce74=_0x446f72==='in'?_0x30079(0xea):'in',_0xc7561=_0x32e3eb[_0x1dce74];if(_0x127038){if(_0x32e3eb[_0x30079(0x112)]===_0x30079(0x110)){_0x32e3eb[_0x1dce74]=u(_0x32e3eb,_0x127038);return;}_0x32e3eb[_0x30079(0x112)]===_0x30079(0xae)&&(_0x32e3eb[_0x1dce74]=u(_0x32e3eb,_0x127038,_0xc7561?c(_0x32e3eb,_0xc7561):c(_0x32e3eb,_0x127038)));}}function x(_0x2b62fe,_0x123516){const _0x1e4230=_0x2732bb;let _0x10a0bd=o(_0x2b62fe);return!_0x123516||_0x10a0bd[_0x1e4230(0xec)]||_0x10a0bd[_0x1e4230(0xf8)][_0x1e4230(0xf2)]===0x0||_0x10a0bd[_0x1e4230(0xf8)][_0x1e4230(0xcc)]({'id':_0x1e4230(0xc4),'x':_0x123516['x'],'y':_0x123516['y'],'pointType':_0x1e4230(0xe8)}),_0x10a0bd;}function re(_0x2284d2,_0xf67bd5={}){const _0x41412f=_0x2732bb;var _0x3a69b2,_0x293d4e;let _0x560052=Math[_0x41412f(0x10b)](0x0,(_0x3a69b2=_0xf67bd5[_0x41412f(0xaf)])==null?Math[_0x41412f(0x10b)](0x4,_0x2284d2['width']*0.35):_0x3a69b2),_0x3f565d=(_0x293d4e=_0xf67bd5[_0x41412f(0xd0)])==null?_0x229b01=>_0x41412f(0xca)+_0x229b01:_0x293d4e,_0x24d487=_(_0x2284d2[_0x41412f(0x11d)],_0x560052),_0x294e88=_0x24d487[_0x41412f(0xed)]((_0x5b9d75,_0x5ad04e)=>({'id':_0x3f565d(_0x5ad04e),'x':_0x5b9d75['x'],'y':_0x5b9d75['y'],'pointType':'free'}));for(let _0x4f890c=0x0;_0x4f890c<_0x294e88[_0x41412f(0xf2)]-0x1;_0x4f890c++)_0x294e88[_0x4f890c]['out']=ne(_0x24d487,_0x4f890c),_0x294e88[_0x4f890c+0x1]['in']=v(_0x24d487,_0x4f890c+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x294e88};}function ie(_0x3a6b82,_0x448e7c,_0x21459b){const _0x5f571d=_0x2732bb;let _0x32c880=null,_0x54eb78=[_0x5f571d(0x116),'in',_0x5f571d(0xea)];return _0x3a6b82[_0x5f571d(0xf8)][_0x5f571d(0xad)]((_0x33453a,_0x1f4f81)=>{_0x54eb78['forEach'](_0x597ae4=>{const _0x5e6eed=_0x448f;if(!p(_0x3a6b82,_0x1f4f81,_0x597ae4))return;let _0x4e5d4d=ee(_0x33453a,_0x597ae4);if(!_0x4e5d4d)return;let _0x649f7d=c(_0x448e7c,_0x4e5d4d);_0x649f7d>_0x21459b||_0x32c880&&_0x649f7d>=_0x32c880[_0x5e6eed(0xd3)]||(_0x32c880={'handle':{'kind':_0x597ae4,'anchorId':_0x33453a['id']},'point':i(_0x4e5d4d),'distance':_0x649f7d});});}),_0x32c880;}function S(_0x4d2e42,_0xaada4a,_0x2edbb0){const _0x48b928=_0x2732bb;let _0x4ad91c=null,_0x131af9=_0x4d2e42[_0x48b928(0xec)]?_0x4d2e42[_0x48b928(0xf8)][_0x48b928(0xf2)]:Math[_0x48b928(0x10b)](0x0,_0x4d2e42[_0x48b928(0xf8)]['length']-0x1);for(let _0x174552=0x0;_0x174552<_0x131af9;_0x174552++){let _0x2ff8dd=f(_0x4d2e42,_0x174552);if(!_0x2ff8dd)continue;let _0x51ca3b=m(_0x2ff8dd,0x0);for(let _0x296ed8=0x1;_0x296ed8<=0x20;_0x296ed8++){let _0x2b90e4=m(_0x2ff8dd,_0x296ed8/0x20),_0x4bbbd3=g(_0xaada4a,_0x51ca3b,_0x2b90e4),_0x122314=(_0x296ed8-0x1+_0x4bbbd3[_0x48b928(0x109)])/0x20;(!_0x4ad91c||_0x4bbbd3[_0x48b928(0xd3)]<_0x4ad91c[_0x48b928(0xd3)])&&(_0x4ad91c={'segmentIndex':_0x174552,'t':_0x122314,'point':_0x4bbbd3[_0x48b928(0xe4)],'distance':_0x4bbbd3[_0x48b928(0xd3)]}),_0x51ca3b=_0x2b90e4;}}return _0x4ad91c&&_0x4ad91c[_0x48b928(0xd3)]<=_0x2edbb0?_0x4ad91c:null;}function C(_0xd5d888,_0xf7b7d,_0xd596cf){const _0x490c5f=_0x2732bb;let _0x42ac3a=o(_0xd5d888),_0xc796f4=d(_0x42ac3a,_0xf7b7d[_0x490c5f(0xc7)]),_0x440943=f(_0x42ac3a,_0xf7b7d['segmentIndex']);if(!_0xc796f4||!_0x440943)return _0x42ac3a;let _0x2ae678=h(_0x440943,Math['max'](0x0,Math['min'](0x1,_0xf7b7d['t']))),_0x38d43c={'id':_0xd596cf(),'x':_0x2ae678[_0x490c5f(0x106)][0x3]['x'],'y':_0x2ae678['left'][0x3]['y'],'in':i(_0x2ae678[_0x490c5f(0x106)][0x2]),'out':i(_0x2ae678[_0x490c5f(0xd7)][0x1]),'pointType':'free'};return _0x42ac3a[_0x490c5f(0xf8)][_0xc796f4['startIndex']][_0x490c5f(0xea)]=i(_0x2ae678[_0x490c5f(0x106)][0x1]),_0x42ac3a[_0x490c5f(0xf8)][_0xc796f4[_0x490c5f(0x100)]]['in']=i(_0x2ae678[_0x490c5f(0xd7)][0x2]),_0x42ac3a[_0x490c5f(0xf8)]['splice'](_0xc796f4[_0x490c5f(0xd5)]+0x1,0x0,_0x38d43c),_0x42ac3a;}function w(_0x1afb6b,_0x22a3e3){const _0x5f5d88=_0x2732bb;let _0x2d863c=o(_0x1afb6b);return _0x2d863c[_0x5f5d88(0xf8)]=_0x2d863c[_0x5f5d88(0xf8)][_0x5f5d88(0xbf)](_0x206210=>_0x206210['id']!==_0x22a3e3),_0x2d863c[_0x5f5d88(0xec)]&&_0x2d863c[_0x5f5d88(0xf8)][_0x5f5d88(0xf2)]<0x3&&(_0x2d863c['closed']=!0x1),_0x2d863c;}function T(_0x1b0c99,_0x32785c,_0x41b76a){const _0x40609b=_0x2732bb;let _0x270732=o(_0x1b0c99),_0x22274f=_0x270732[_0x40609b(0xf8)][_0x40609b(0x11f)](_0x3179d2=>_0x3179d2['id']===_0x32785c),_0x15bb8f=_0x270732[_0x40609b(0xf8)][_0x22274f];if(!_0x15bb8f)return _0x270732;if(_0x15bb8f[_0x40609b(0x112)]=_0x41b76a,_0x41b76a===_0x40609b(0xe8))return delete _0x15bb8f['in'],delete _0x15bb8f[_0x40609b(0xea)],_0x270732;let _0x54e1a2=y(_0x270732,_0x22274f);if(_0x15bb8f['in']=_0x15bb8f['in']?i(_0x15bb8f['in']):_0x54e1a2['in'],_0x15bb8f['out']=_0x15bb8f['out']?i(_0x15bb8f[_0x40609b(0xea)]):_0x54e1a2[_0x40609b(0xea)],_0x41b76a===_0x40609b(0x110)){let _0x45a674=Math['max'](c(_0x15bb8f,_0x15bb8f['in']),c(_0x15bb8f,_0x15bb8f[_0x40609b(0xea)]),0x32),_0x1e39e6=l({'x':_0x15bb8f[_0x40609b(0xea)]['x']-_0x15bb8f['x'],'y':_0x15bb8f['out']['y']-_0x15bb8f['y']});_0x15bb8f['out']={'x':_0x15bb8f['x']+_0x1e39e6['x']*_0x45a674,'y':_0x15bb8f['y']+_0x1e39e6['y']*_0x45a674},_0x15bb8f['in']={'x':_0x15bb8f['x']-_0x1e39e6['x']*_0x45a674,'y':_0x15bb8f['y']-_0x1e39e6['y']*_0x45a674};}else _0x41b76a===_0x40609b(0xae)&&b(_0x15bb8f,_0x40609b(0xea));return _0x270732;}function E(_0x37acc7,_0x496527){const _0x1ff955=_0x2732bb;var _0x19d5d3;let _0x75422e=_0x37acc7[_0x1ff955(0xf8)][_0x1ff955(0xc1)](_0xf85aa3=>_0xf85aa3['id']===_0x496527),_0x15ba8b=(_0x19d5d3=_0x75422e==null?void 0x0:_0x75422e[_0x1ff955(0x112)])==null?_0x1ff955(0xe8):_0x19d5d3;return T(_0x37acc7,_0x496527,_0x15ba8b===_0x1ff955(0xe8)?_0x1ff955(0xae):_0x15ba8b===_0x1ff955(0xae)?_0x1ff955(0x110):_0x15ba8b==='symmetric'?_0x1ff955(0x12b):'corner');}function ae(_0x4deec9,_0x1f1420,_0x464e74){const _0x4bdea1=_0x2732bb;let _0x5d5748=o(_0x4deec9),_0x40a830=_0x5d5748['anchors']['find'](_0x269784=>_0x269784['id']===_0x1f1420[_0x4bdea1(0x10e)]);if(!_0x40a830)return _0x5d5748;if(_0x1f1420[_0x4bdea1(0xeb)]===_0x4bdea1(0x116)){let _0x54a8dd={'x':_0x464e74['x']-_0x40a830['x'],'y':_0x464e74['y']-_0x40a830['y']};return _0x40a830['x']=_0x464e74['x'],_0x40a830['y']=_0x464e74['y'],_0x40a830['in']&&(_0x40a830['in']={'x':_0x40a830['in']['x']+_0x54a8dd['x'],'y':_0x40a830['in']['y']+_0x54a8dd['y']}),_0x40a830['out']&&(_0x40a830[_0x4bdea1(0xea)]={'x':_0x40a830[_0x4bdea1(0xea)]['x']+_0x54a8dd['x'],'y':_0x40a830[_0x4bdea1(0xea)]['y']+_0x54a8dd['y']}),_0x5d5748;}return _0x40a830[_0x1f1420[_0x4bdea1(0xeb)]]=i(_0x464e74),_0x40a830[_0x4bdea1(0x112)]===_0x4bdea1(0xe8)&&(_0x40a830[_0x4bdea1(0x112)]=_0x4bdea1(0x12b)),b(_0x40a830,_0x1f1420[_0x4bdea1(0xeb)]),_0x5d5748;}const D=1e-9;function O(_0x5cbe5){const _0x15b045=_0x2732bb;let _0x32ab49=Math[_0x15b045(0x10a)](_0x5cbe5*0x2710)/0x2710;return Object['is'](_0x32ab49,-0x0)?'0':String(_0x32ab49);}function k(_0x63e37){return O(_0x63e37['x'])+'\x20'+O(_0x63e37['y']);}function A(_0x2c17fe,_0x11b375){return{'x':_0x2c17fe['x']-_0x11b375['x'],'y':_0x2c17fe['y']-_0x11b375['y']};}function j(_0x4845b1,_0x2f5e50,_0x3df24f,_0x2f2d96,_0x38b911){let _0x2fa58f=0x1-_0x38b911;return{'x':_0x2fa58f*_0x2fa58f*_0x2fa58f*_0x4845b1['x']+0x3*_0x2fa58f*_0x2fa58f*_0x38b911*_0x2f5e50['x']+0x3*_0x2fa58f*_0x38b911*_0x38b911*_0x3df24f['x']+_0x38b911*_0x38b911*_0x38b911*_0x2f2d96['x'],'y':_0x2fa58f*_0x2fa58f*_0x2fa58f*_0x4845b1['y']+0x3*_0x2fa58f*_0x2fa58f*_0x38b911*_0x2f5e50['y']+0x3*_0x2fa58f*_0x38b911*_0x38b911*_0x3df24f['y']+_0x38b911*_0x38b911*_0x38b911*_0x2f2d96['y']};}function M(_0x4706fd,_0x7a6bbb,_0x222877,_0x490723){const _0x4aa109=_0x2732bb;let _0x320cb4=-_0x4706fd+0x3*_0x7a6bbb-0x3*_0x222877+_0x490723,_0x36a87e=0x3*_0x4706fd-0x6*_0x7a6bbb+0x3*_0x222877,_0xdd65b3=-0x3*_0x4706fd+0x3*_0x7a6bbb,_0xd15833=[];if(Math[_0x4aa109(0xfe)](_0x320cb4)<D){if(Math['abs'](_0x36a87e)<D)return _0xd15833;let _0x39883c=-_0xdd65b3/(0x2*_0x36a87e);return _0x39883c>0x0&&_0x39883c<0x1&&_0xd15833[_0x4aa109(0xcc)](_0x39883c),_0xd15833;}let _0x53dff4=_0x36a87e*_0x36a87e-0x3*_0x320cb4*_0xdd65b3;if(_0x53dff4<0x0)return _0xd15833;let _0x536c17=Math[_0x4aa109(0x10d)](Math['max'](0x0,_0x53dff4)),_0x4b9a60=(-_0x36a87e+_0x536c17)/(0x3*_0x320cb4),_0x778106=(-_0x36a87e-_0x536c17)/(0x3*_0x320cb4);return _0x4b9a60>0x0&&_0x4b9a60<0x1&&_0xd15833[_0x4aa109(0xcc)](_0x4b9a60),_0x778106>0x0&&_0x778106<0x1&&Math['abs'](_0x778106-_0x4b9a60)>D&&_0xd15833['push'](_0x778106),_0xd15833;}function N(_0x10ab48,_0x48f7e0,_0x10ec11,_0x5db807,_0xcab5d3){const _0x8c8873=_0x2732bb;_0x10ab48['push'](_0x48f7e0,_0xcab5d3),new Set([...M(_0x48f7e0['x'],_0x10ec11['x'],_0x5db807['x'],_0xcab5d3['x']),...M(_0x48f7e0['y'],_0x10ec11['y'],_0x5db807['y'],_0xcab5d3['y'])])[_0x8c8873(0xad)](_0x10400e=>{const _0x12752d=_0x8c8873;_0x10ab48[_0x12752d(0xcc)](j(_0x48f7e0,_0x10ec11,_0x5db807,_0xcab5d3,_0x10400e));});}function P(_0xaa612){const _0x590c69=_0x2732bb;let _0x29c487=_0xaa612[_0x590c69(0xf8)];if(_0x29c487['length']<=0x1)return _0x29c487;let _0x4a7057=[];for(let _0x44d75d=0x1;_0x44d75d<_0x29c487[_0x590c69(0xf2)];_0x44d75d++){var _0x1ec320,_0x1d185e;let _0x10ceee=_0x29c487[_0x44d75d-0x1],_0x819f7b=_0x29c487[_0x44d75d];N(_0x4a7057,_0x10ceee,(_0x1ec320=_0x10ceee[_0x590c69(0xea)])==null?_0x10ceee:_0x1ec320,(_0x1d185e=_0x819f7b['in'])==null?_0x819f7b:_0x1d185e,_0x819f7b);}if(_0xaa612[_0x590c69(0xec)]&&_0x29c487['length']>0x1){var _0x55b867,_0x5b62f8;let _0x2e938f=_0x29c487[_0x29c487[_0x590c69(0xf2)]-0x1],_0x5adeb8=_0x29c487[0x0];N(_0x4a7057,_0x2e938f,(_0x55b867=_0x2e938f['out'])==null?_0x2e938f:_0x55b867,(_0x5b62f8=_0x5adeb8['in'])==null?_0x5adeb8:_0x5b62f8,_0x5adeb8);}return _0x4a7057;}function F(_0x172ce2){const _0x322e9a=_0x2732bb;let _0x17edee=_0x172ce2['points'];if(_0x17edee[_0x322e9a(0xf2)]<=0x1)return _0x17edee;let _0x218073=[];for(let _0x12e9d9=0x0;_0x12e9d9<_0x17edee['length']-0x1;_0x12e9d9++){var _0x36dd4c,_0x2cd075;let _0x26479e=_0x17edee[_0x12e9d9],_0x1a4762=_0x17edee[_0x12e9d9+0x1],_0xc9a53a=(_0x36dd4c=_0x17edee[_0x12e9d9-0x1])==null?_0x26479e:_0x36dd4c,_0x272bee=(_0x2cd075=_0x17edee[_0x12e9d9+0x2])==null?_0x1a4762:_0x2cd075;N(_0x218073,_0x26479e,{'x':_0x26479e['x']+(_0x1a4762['x']-_0xc9a53a['x'])/0x6,'y':_0x26479e['y']+(_0x1a4762['y']-_0xc9a53a['y'])/0x6},{'x':_0x1a4762['x']-(_0x272bee['x']-_0x26479e['x'])/0x6,'y':_0x1a4762['y']-(_0x272bee['y']-_0x26479e['y'])/0x6},_0x1a4762);}return _0x218073;}function I(_0x5500c9){return _0x5500c9['kind']==='pen'?P(_0x5500c9):F(_0x5500c9);}function L(_0x31a2ce){const _0x220ce3=_0x2732bb;let _0x742727=Math[_0x220ce3(0x10a)](_0x31a2ce*0x2710)/0x2710;return Object['is'](_0x742727,-0x0)?0x0:_0x742727;}function R(_0x500c3a){const _0x4950ce=_0x2732bb;let _0x15cd3a=I(_0x500c3a);if(_0x15cd3a[_0x4950ce(0xf2)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3fc2d2=Math[_0x4950ce(0xd4)](..._0x15cd3a['map'](_0x5132fd=>_0x5132fd['x'])),_0x58baed=Math[_0x4950ce(0xd4)](..._0x15cd3a['map'](_0x538210=>_0x538210['y'])),_0x5404e8=Math['max'](..._0x15cd3a[_0x4950ce(0xed)](_0x29d85c=>_0x29d85c['x'])),_0xf6151d=Math[_0x4950ce(0x10b)](..._0x15cd3a[_0x4950ce(0xed)](_0x3d0571=>_0x3d0571['y']));return{'left':L(_0x3fc2d2),'top':L(_0x58baed),'width':L(Math[_0x4950ce(0x10b)](0x1,_0x5404e8-_0x3fc2d2)),'height':L(Math[_0x4950ce(0x10b)](0x1,_0xf6151d-_0x58baed))};}function z(_0x32ba27,_0x3e9d8b){const _0x50ad44=_0x2732bb;let _0x55997e=_0x32ba27[_0x50ad44(0xf8)];if(_0x55997e[_0x50ad44(0xf2)]===0x0)return'';let _0x463a88=['M\x20'+k(A(_0x55997e[0x0],_0x3e9d8b))];for(let _0x1d3cc5=0x1;_0x1d3cc5<_0x55997e[_0x50ad44(0xf2)];_0x1d3cc5++){var _0x487795,_0x5a0ad6;let _0x510e59=_0x55997e[_0x1d3cc5-0x1],_0xd709e0=_0x55997e[_0x1d3cc5],_0x2def19=(_0x487795=_0x510e59[_0x50ad44(0xea)])==null?_0x510e59:_0x487795,_0x1c1964=(_0x5a0ad6=_0xd709e0['in'])==null?_0xd709e0:_0x5a0ad6;_0x463a88[_0x50ad44(0xcc)]('C\x20'+k(A(_0x2def19,_0x3e9d8b))+'\x20'+k(A(_0x1c1964,_0x3e9d8b))+'\x20'+k(A(_0xd709e0,_0x3e9d8b)));}if(_0x32ba27['closed']&&_0x55997e[_0x50ad44(0xf2)]>0x1){var _0x44a3e2,_0x489a28;let _0x2f4f62=_0x55997e[_0x55997e[_0x50ad44(0xf2)]-0x1],_0x3c4b29=_0x55997e[0x0],_0x4cb82e=(_0x44a3e2=_0x2f4f62[_0x50ad44(0xea)])==null?_0x2f4f62:_0x44a3e2,_0x5d5f1e=(_0x489a28=_0x3c4b29['in'])==null?_0x3c4b29:_0x489a28;_0x463a88[_0x50ad44(0xcc)]('C\x20'+k(A(_0x4cb82e,_0x3e9d8b))+'\x20'+k(A(_0x5d5f1e,_0x3e9d8b))+'\x20'+k(A(_0x3c4b29,_0x3e9d8b))),_0x463a88[_0x50ad44(0xcc)]('Z');}return _0x463a88[_0x50ad44(0xb2)]('\x20');}function B(_0xdd309d,_0x39c897){const _0x44a7e1=_0x2732bb;let _0x40c0e2=_0xdd309d[_0x44a7e1(0x11d)]['map'](_0x387940=>A(_0x387940,_0x39c897));if(_0x40c0e2[_0x44a7e1(0xf2)]===0x0)return'';if(_0x40c0e2[_0x44a7e1(0xf2)]===0x1)return'M\x20'+k(_0x40c0e2[0x0]);let _0x3eb57e=['M\x20'+k(_0x40c0e2[0x0])];for(let _0x55f624=0x0;_0x55f624<_0x40c0e2[_0x44a7e1(0xf2)]-0x1;_0x55f624++){var _0x24ea42,_0x193eca;let _0xfc7454=_0x40c0e2[_0x55f624],_0xbfc8ad=_0x40c0e2[_0x55f624+0x1],_0x575beb=(_0x24ea42=_0x40c0e2[_0x55f624-0x1])==null?_0xfc7454:_0x24ea42,_0x2bcc25=(_0x193eca=_0x40c0e2[_0x55f624+0x2])==null?_0xbfc8ad:_0x193eca,_0x235b08={'x':_0xfc7454['x']+(_0xbfc8ad['x']-_0x575beb['x'])/0x6,'y':_0xfc7454['y']+(_0xbfc8ad['y']-_0x575beb['y'])/0x6},_0x11d721={'x':_0xbfc8ad['x']-(_0x2bcc25['x']-_0xfc7454['x'])/0x6,'y':_0xbfc8ad['y']-(_0x2bcc25['y']-_0xfc7454['y'])/0x6};_0x3eb57e['push']('C\x20'+k(_0x235b08)+'\x20'+k(_0x11d721)+'\x20'+k(_0xbfc8ad));}return _0x3eb57e['join']('\x20');}function V(_0x25b4d4,_0x30baba){const _0x1b8eb7=_0x2732bb;return _0x25b4d4[_0x1b8eb7(0xeb)]==='pen'?z(_0x25b4d4,_0x30baba):B(_0x25b4d4,_0x30baba);}function H(_0x508db6,_0x1881b2){const _0x784c=_0x2732bb;return _0x1881b2!=null&&_0x1881b2[_0x784c(0xe1)]?_0x1881b2['color']:_0x508db6['kind']==='pen'?_0x784c(0xb5):_0x508db6[_0x784c(0xe1)];}function U(_0x4a32ef,_0x3df8f5){const _0x521297=_0x2732bb;return(_0x3df8f5==null?void 0x0:_0x3df8f5[_0x521297(0xdf)])===void 0x0?_0x4a32ef[_0x521297(0xeb)]===_0x521297(0xde)?0x2:_0x4a32ef[_0x521297(0xdf)]:_0x3df8f5[_0x521297(0xdf)];}function W(_0x24637c,_0x42d9b3){const _0xdf98a2=_0x2732bb;return(_0x42d9b3==null?void 0x0:_0x42d9b3[_0xdf98a2(0xfa)])===void 0x0?_0x24637c[_0xdf98a2(0xeb)]===_0xdf98a2(0xde)?void 0x0:_0x24637c[_0xdf98a2(0xfa)]:_0x42d9b3[_0xdf98a2(0xfa)];}function oe(_0x155329,_0x170931){const _0x1d3e40=_0x2732bb;let _0x5053f3=R(_0x155329),_0x17ba29=V(_0x155329,{'x':_0x5053f3['left'],'y':_0x5053f3[_0x1d3e40(0x123)]}),_0x1ec01e=_0x155329[_0x1d3e40(0xeb)]===_0x1d3e40(0xde)&&_0x155329[_0x1d3e40(0xec)],_0x25fd90=_0x170931==null?void 0x0:_0x170931[_0x1d3e40(0xfd)];return{'shapeType':e[_0x1d3e40(0xc8)][_0x1d3e40(0xb9)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x5053f3[_0x1d3e40(0xdf)],'h':_0x5053f3[_0x1d3e40(0x125)],'fill':_0x1ec01e?'norm':_0x1d3e40(0x128),'stroke':!0x0,'data':_0x17ba29,'dataArray':K(_0x155329,{'x':_0x5053f3[_0x1d3e40(0x106)],'y':_0x5053f3['top']})}]},'fill':_0x1ec01e&&_0x25fd90?{'color':_0x25fd90,'fillType':e[_0x1d3e40(0x101)][_0x1d3e40(0x118)]}:{'fillType':e['ShapeFillEnum'][_0x1d3e40(0xbb)]},'stroke':{'color':H(_0x155329,_0x170931),'width':U(_0x155329,_0x170931),'opacity':W(_0x155329,_0x170931),'lineStrokeType':e[_0x1d3e40(0x11a)][_0x1d3e40(0xd6)],'capType':e[_0x1d3e40(0x11b)][_0x1d3e40(0xdb)],'lineJoinType':e[_0x1d3e40(0xc6)]['Round']}};}function G(_0x3cf0fa,_0x49c752){return{'x':_0x3cf0fa['x']-_0x49c752['x'],'y':_0x3cf0fa['y']-_0x49c752['y']};}function K(_0x2a987c,_0x189303){const _0x2a0240=_0x2732bb;if(_0x2a987c[_0x2a0240(0xeb)]===_0x2a0240(0xde)){let _0x25f04f=_0x2a987c['anchors'];if(_0x25f04f[_0x2a0240(0xf2)]===0x0)return[];let _0x5e55b1=G(_0x25f04f[0x0],_0x189303),_0x294b08=[{'command':'M','points':[_0x5e55b1['x'],_0x5e55b1['y']]}];for(let _0x2f3fb=0x1;_0x2f3fb<_0x25f04f['length'];_0x2f3fb++){var _0x12eeaa,_0x3418ff;let _0x1e773a=_0x25f04f[_0x2f3fb-0x1],_0x4108c4=_0x25f04f[_0x2f3fb],_0x1dbcf1=G((_0x12eeaa=_0x1e773a[_0x2a0240(0xea)])==null?_0x1e773a:_0x12eeaa,_0x189303),_0x1efd27=G((_0x3418ff=_0x4108c4['in'])==null?_0x4108c4:_0x3418ff,_0x189303),_0x1a71cb=G(_0x4108c4,_0x189303);_0x294b08[_0x2a0240(0xcc)]({'command':'C','points':[_0x1dbcf1['x'],_0x1dbcf1['y'],_0x1efd27['x'],_0x1efd27['y'],_0x1a71cb['x'],_0x1a71cb['y']]});}if(_0x2a987c[_0x2a0240(0xec)]&&_0x25f04f[_0x2a0240(0xf2)]>0x1){var _0x5d92b6,_0x142199;let _0x1b85b8=_0x25f04f[_0x25f04f[_0x2a0240(0xf2)]-0x1],_0x2e7502=_0x25f04f[0x0],_0x1aea4d=G((_0x5d92b6=_0x1b85b8[_0x2a0240(0xea)])==null?_0x1b85b8:_0x5d92b6,_0x189303),_0x490ac5=G((_0x142199=_0x2e7502['in'])==null?_0x2e7502:_0x142199,_0x189303),_0x3e3e02=G(_0x2e7502,_0x189303);_0x294b08[_0x2a0240(0xcc)]({'command':'C','points':[_0x1aea4d['x'],_0x1aea4d['y'],_0x490ac5['x'],_0x490ac5['y'],_0x3e3e02['x'],_0x3e3e02['y']]}),_0x294b08[_0x2a0240(0xcc)]({'command':'z','points':[]});}return _0x294b08;}let _0x2399a0=_0x2a987c[_0x2a0240(0x11d)][_0x2a0240(0xed)](_0x322d65=>G(_0x322d65,_0x189303));if(_0x2399a0[_0x2a0240(0xf2)]===0x0)return[];let _0x2c7e4d=[{'command':'M','points':[_0x2399a0[0x0]['x'],_0x2399a0[0x0]['y']]}];for(let _0x4b27ab=0x0;_0x4b27ab<_0x2399a0[_0x2a0240(0xf2)]-0x1;_0x4b27ab++){var _0x26479f,_0x19c629;let _0xf33576=_0x2399a0[_0x4b27ab],_0x542105=_0x2399a0[_0x4b27ab+0x1],_0x301b59=(_0x26479f=_0x2399a0[_0x4b27ab-0x1])==null?_0xf33576:_0x26479f,_0x4b1f14=(_0x19c629=_0x2399a0[_0x4b27ab+0x2])==null?_0x542105:_0x19c629,_0x4a47f0={'x':_0xf33576['x']+(_0x542105['x']-_0x301b59['x'])/0x6,'y':_0xf33576['y']+(_0x542105['y']-_0x301b59['y'])/0x6},_0x415619={'x':_0x542105['x']-(_0x4b1f14['x']-_0xf33576['x'])/0x6,'y':_0x542105['y']-(_0x4b1f14['y']-_0xf33576['y'])/0x6};_0x2c7e4d[_0x2a0240(0xcc)]({'command':'C','points':[_0x4a47f0['x'],_0x4a47f0['y'],_0x415619['x'],_0x415619['y'],_0x542105['x'],_0x542105['y']]});}return _0x2c7e4d;}function q(_0x376127){const _0x1bff30=_0x2732bb;var _0x4236bb;let {model:_0x5dab74,sourceModel:_0x3ea851=_0x5dab74,style:_0x4756f1}=_0x376127,_0x2337ad=(_0x4236bb=_0x376127[_0x1bff30(0x11c)])==null?_0x5dab74[_0x1bff30(0xeb)]:_0x4236bb,_0x1bb97c=R(_0x5dab74),_0x3b6773=_0x5dab74[_0x1bff30(0xeb)]==='pen'&&_0x2337ad!==_0x1bff30(0xde)?_0x5dab74:void 0x0;return{'transform':{..._0x1bb97c,'rotation':0x0},'shapeData':oe(_0x5dab74,_0x4756f1),'ink':{'version':0x1,'tool':_0x2337ad,'sourceModel':_0x3ea851,..._0x3b6773?{'editModel':_0x3b6773}:{},'normalizedBounds':_0x1bb97c}};}var se=_0x2732bb(0xe9),ce=_0x2732bb(0xef);function J(_0x5b5a46){'@babel/helpers - typeof';const _0x747929=_0x2732bb;return J=typeof Symbol==_0x747929(0xf4)&&typeof Symbol[_0x747929(0x127)]==_0x747929(0x121)?function(_0x48994a){return typeof _0x48994a;}:function(_0x22849d){const _0x299983=_0x747929;return _0x22849d&&typeof Symbol=='function'&&_0x22849d[_0x299983(0x119)]===Symbol&&_0x22849d!==Symbol[_0x299983(0x102)]?_0x299983(0x121):typeof _0x22849d;},J(_0x5b5a46);}function le(_0x59e342,_0x43190d){const _0x37a77c=_0x2732bb;if(J(_0x59e342)!='object'||!_0x59e342)return _0x59e342;var _0x2b3bb4=_0x59e342[Symbol[_0x37a77c(0xf9)]];if(_0x2b3bb4!==void 0x0){var _0x30f8a1=_0x2b3bb4[_0x37a77c(0xbc)](_0x59e342,_0x43190d||'default');if(J(_0x30f8a1)!=_0x37a77c(0xe3))return _0x30f8a1;throw TypeError(_0x37a77c(0xab));}return(_0x43190d==='string'?String:Number)(_0x59e342);}function ue(_0x5b9ab1){const _0x4941c3=_0x2732bb;var _0x5c6551=le(_0x5b9ab1,_0x4941c3(0x12a));return J(_0x5c6551)==_0x4941c3(0x121)?_0x5c6551:_0x5c6551+'';}function Y(_0x255dce,_0x526532,_0x4e9d2e){const _0x246997=_0x2732bb;return(_0x526532=ue(_0x526532))in _0x255dce?Object[_0x246997(0xb4)](_0x255dce,_0x526532,{'value':_0x4e9d2e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x255dce[_0x526532]=_0x4e9d2e,_0x255dce;}const X=(0x0,n[_0x2732bb(0xc2)])(_0x2732bb(0xd9));var de=class{constructor(){const _0x9f0918=_0x2732bb;Y(this,_0x9f0918(0xce),[]);}['registerAdapter'](_0x2e1ba5){const _0x5e10ac=_0x2732bb;return this['_adapters']['push'](_0x2e1ba5),(0x0,n[_0x5e10ac(0xf5)])(()=>{const _0x523829=_0x5e10ac;let _0x2d6eb8=this[_0x523829(0xce)][_0x523829(0x115)](_0x2e1ba5);_0x2d6eb8>=0x0&&this[_0x523829(0xce)]['splice'](_0x2d6eb8,0x1);});}[_0x2732bb(0x108)](_0x1d0154){const _0x197553=_0x2732bb;for(let _0x31f061 of this[_0x197553(0xce)])if(_0x31f061[_0x197553(0x108)](_0x1d0154))return!0x0;return!0x1;}async[_0x2732bb(0xe2)](_0x4c60ea){const _0x153f22=_0x2732bb;for(let _0x389507 of this[_0x153f22(0xce)])if(_0x389507[_0x153f22(0xe2)]&&await _0x389507[_0x153f22(0xe2)](_0x4c60ea))return!0x0;return!0x1;}};const fe={'id':'ink.operation.start','type':n['CommandType'][_0x2732bb(0xe6)],'handler':(_0x166d21,_0xf85345)=>_0xf85345?_0x166d21['get'](X)[_0x2732bb(0x108)](_0xf85345):!0x1},Z={};function Q(_0x38a892,_0x2a5200){return function(_0x34f59f,_0x5c9c4c){_0x2a5200(_0x34f59f,_0x5c9c4c,_0x38a892);};}function pe(_0x2b8452,_0x47bc25,_0x38bba8,_0x2da57d){const _0x29d7c9=_0x2732bb;var _0x20ae9f=arguments['length'],_0x5c2fc6=_0x20ae9f<0x3?_0x47bc25:_0x2da57d===null?_0x2da57d=Object[_0x29d7c9(0xcd)](_0x47bc25,_0x38bba8):_0x2da57d,_0x1c847f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x29d7c9(0xf4))_0x5c2fc6=Reflect[_0x29d7c9(0xda)](_0x2b8452,_0x47bc25,_0x38bba8,_0x2da57d);else{for(var _0x19661d=_0x2b8452[_0x29d7c9(0xf2)]-0x1;_0x19661d>=0x0;_0x19661d--)(_0x1c847f=_0x2b8452[_0x19661d])&&(_0x5c2fc6=(_0x20ae9f<0x3?_0x1c847f(_0x5c2fc6):_0x20ae9f>0x3?_0x1c847f(_0x47bc25,_0x38bba8,_0x5c2fc6):_0x1c847f(_0x47bc25,_0x38bba8))||_0x5c2fc6);}return _0x20ae9f>0x3&&_0x5c2fc6&&Object[_0x29d7c9(0xb4)](_0x47bc25,_0x38bba8,_0x5c2fc6),_0x5c2fc6;}let $=class extends n[_0x2732bb(0x113)]{constructor(_0x189ad9=Z,_0xfa0c94,_0x4e22b4,_0x33eeaa){const _0x58a548=_0x2732bb;super(),this[_0x58a548(0xc5)]=_0x189ad9,this['_injector']=_0xfa0c94,this[_0x58a548(0x111)]=_0x4e22b4,this[_0x58a548(0x129)]=_0x33eeaa;let {..._0x4b4b61}=(0x0,n[_0x58a548(0xc3)])({},Z,this[_0x58a548(0xc5)]);this[_0x58a548(0x129)]['setConfig']('ink.config',_0x4b4b61);}[_0x2732bb(0x120)](){const _0x301420=_0x2732bb;[[X,{'useClass':de}]][_0x301420(0xad)](_0x573790=>this[_0x301420(0xb8)][_0x301420(0x117)](_0x573790)),this['disposeWithMe'](this[_0x301420(0x111)][_0x301420(0xcb)](fe));}};Y($,_0x2732bb(0xd1),_0x2732bb(0xdc)),Y($,_0x2732bb(0xf0),se),Y($,'version',ce),Y($,_0x2732bb(0x122),n[_0x2732bb(0x10f)][_0x2732bb(0xbd)]),$=pe([(0x0,n[_0x2732bb(0x107)])(t[_0x2732bb(0xd8)]),Q(0x1,(0x0,n[_0x2732bb(0xf1)])(n['Injector'])),Q(0x2,n[_0x2732bb(0xb0)]),Q(0x3,n[_0x2732bb(0x105)])],$),exports['IInkHostAdapterService']=X,Object['defineProperty'](exports,_0x2732bb(0xb6),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildInkCustomShapePayload']=q,exports[_0x2732bb(0x114)]=re,exports[_0x2732bb(0xb3)]=E,exports[_0x2732bb(0xba)]=w,exports[_0x2732bb(0x124)]=ie,exports[_0x2732bb(0xac)]=S,exports[_0x2732bb(0xfc)]=R,exports[_0x2732bb(0x103)]=x,exports[_0x2732bb(0x126)]=C,exports[_0x2732bb(0xbe)]=p,exports[_0x2732bb(0xee)]=ae,exports[_0x2732bb(0xb7)]=T;
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;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4fb31f=_0x1633;(function(_0x1191aa,_0x567b74){const _0x131282=_0x1633,_0x4cccc5=_0x1191aa();while(!![]){try{const _0xd48bd7=-parseInt(_0x131282(0x93))/0x1+-parseInt(_0x131282(0x8a))/0x2+-parseInt(_0x131282(0x8e))/0x3*(-parseInt(_0x131282(0x89))/0x4)+-parseInt(_0x131282(0xa2))/0x5*(-parseInt(_0x131282(0x7b))/0x6)+-parseInt(_0x131282(0x90))/0x7+parseInt(_0x131282(0x7e))/0x8+parseInt(_0x131282(0x7d))/0x9*(parseInt(_0x131282(0x80))/0xa);if(_0xd48bd7===_0x567b74)break;else _0x4cccc5['push'](_0x4cccc5['shift']());}catch(_0x203585){_0x4cccc5['push'](_0x4cccc5['shift']());}}}(_0x3758,0xa7ec3));import{BoardElementType as _0x1d6b95}from'@univerjs-pro/boards';import{FBoard as _0x24c860}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x1c1047}from'@univerjs-pro/ink';import{Tools as _0x4ab5cd,generateRandomId as _0x1e053f}from'@univerjs/core';import{FEnum as _0x5988e6}from'@univerjs/core/facade';var o=class extends _0x24c860{['insertInk'](_0x5d270e){const _0x380c30=_0x1633;let _0x5a8b4b=s(_0x5d270e);return _0x5a8b4b&&this['_addElement'](_0x5a8b4b,{'insertIndex':_0x5d270e[_0x380c30(0x98)]})?_0x5a8b4b:null;}[_0x4fb31f(0x9d)](){const _0x56f729=_0x4fb31f;return this[_0x56f729(0x85)]({'elementType':_0x1d6b95['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x56f729(0x8d)](p);}};function s(_0x2c8fa3,_0x232deb){const _0x34b70c=_0x4fb31f;var _0x5b485c,_0x4dc54d,_0x500bea;if(!l(_0x2c8fa3[_0x34b70c(0x88)])||_0x2c8fa3[_0x34b70c(0xa1)]!==void 0x0&&!l(_0x2c8fa3[_0x34b70c(0xa1)])||!u(_0x2c8fa3[_0x34b70c(0x84)]))return null;let _0x42d7cb=(_0x5b485c=_0x2c8fa3[_0x34b70c(0x83)])==null?_0x232deb==null?void 0x0:_0x232deb['parentId']:_0x5b485c,_0xf268f8=_0x4ab5cd[_0x34b70c(0x87)](_0x2c8fa3[_0x34b70c(0x88)]),_0x2bac15=_0x1c1047({'model':_0xf268f8,'style':_0x2c8fa3[_0x34b70c(0x84)],'tool':_0x2c8fa3[_0x34b70c(0x8b)],'sourceModel':_0x2c8fa3['sourceModel']?_0x4ab5cd['deepClone'](_0x2c8fa3['sourceModel']):_0xf268f8}),_0x426410=d(_0x232deb==null?void 0x0:_0x232deb['custom']);return{'id':(_0x4dc54d=(_0x500bea=_0x232deb==null?void 0x0:_0x232deb['id'])==null?_0x2c8fa3['id']:_0x500bea)==null?_0x1e053f(0x6):_0x4dc54d,'type':_0x1d6b95[_0x34b70c(0x92)],'transform':_0x2bac15['transform'],'shapeData':_0x2bac15[_0x34b70c(0x8f)],'parentId':_0x42d7cb==null?void 0x0:_0x42d7cb,'laneId':_0x2c8fa3[_0x34b70c(0x74)]===void 0x0?_0x232deb==null?void 0x0:_0x232deb[_0x34b70c(0x74)]:_0x2c8fa3['laneId'],'custom':{..._0x426410,'ink':_0x2bac15['ink']}};}function c(_0x2c57ba){const _0x507149=_0x4fb31f;return Number['isFinite'](_0x2c57ba['x'])&&Number[_0x507149(0x75)](_0x2c57ba['y']);}function l(_0xfd61d0){const _0x468cb0=_0x4fb31f;if(_0xfd61d0[_0x468cb0(0x76)]===_0x468cb0(0x78)){let _0x56a345=new Set();return _0xfd61d0['anchors']['length']>=(_0xfd61d0['closed']?0x3:0x2)&&_0xfd61d0['anchors'][_0x468cb0(0x86)](_0x46d48b=>{const _0x38b880=_0x468cb0;let _0x96546=_0x46d48b['id'][_0x38b880(0x94)]()[_0x38b880(0x97)]>0x0&&!_0x56a345['has'](_0x46d48b['id'])&&c(_0x46d48b)&&(!_0x46d48b['in']||c(_0x46d48b['in']))&&(!_0x46d48b[_0x38b880(0x95)]||c(_0x46d48b[_0x38b880(0x95)]));return _0x56a345['add'](_0x46d48b['id']),_0x96546;});}return _0xfd61d0[_0x468cb0(0x96)][_0x468cb0(0x97)]>=0x2&&_0xfd61d0[_0x468cb0(0x96)]['every'](_0x2ad9d9=>c(_0x2ad9d9)&&Number[_0x468cb0(0x75)](_0x2ad9d9['t'])&&(_0x2ad9d9[_0x468cb0(0x91)]===void 0x0||Number['isFinite'](_0x2ad9d9[_0x468cb0(0x91)])))&&Number[_0x468cb0(0x75)](_0xfd61d0[_0x468cb0(0x99)])&&_0xfd61d0[_0x468cb0(0x99)]>0x0&&Number[_0x468cb0(0x75)](_0xfd61d0['opacity'])&&_0xfd61d0[_0x468cb0(0x82)]>=0x0&&_0xfd61d0[_0x468cb0(0x82)]<=0x1;}function u(_0x392c34){const _0x46625b=_0x4fb31f;return _0x392c34===void 0x0||(_0x392c34[_0x46625b(0x99)]===void 0x0||Number['isFinite'](_0x392c34[_0x46625b(0x99)])&&_0x392c34[_0x46625b(0x99)]>0x0)&&(_0x392c34[_0x46625b(0x82)]===void 0x0||Number[_0x46625b(0x75)](_0x392c34[_0x46625b(0x82)])&&_0x392c34[_0x46625b(0x82)]>=0x0&&_0x392c34[_0x46625b(0x82)]<=0x1);}function _0x3758(){const _0x515457=['laneId','isFinite','kind','custom','pen','anchor','BoardInkHandleKind','1379640emdEck','version','2920653sHrNqh','3543184txqcMc','smooth','40EdXIWA','brush','opacity','parentId','style','findElements','every','deepClone','model','2290876OHEjNs','1688078jEoZAq','tool','BoardInkPointType','filter','3BimyEA','shapeData','7163660fzfhQU','pressure','Shape','908155sbqRRh','trim','out','points','length','insertIndex','width','highlighter','symmetric','corner','getInks','type','object','extend','sourceModel','25klYnms'];_0x3758=function(){return _0x515457;};return _0x3758();}function _0x1633(_0xf6bbdf,_0x24be70){_0xf6bbdf=_0xf6bbdf-0x74;const _0x3758ac=_0x3758();let _0x163322=_0x3758ac[_0xf6bbdf];return _0x163322;}function d(_0x205d6d){const _0x215838=_0x4fb31f;return _0x205d6d&&typeof _0x205d6d==_0x215838(0x9f)&&!Array['isArray'](_0x205d6d)?_0x205d6d:{};}function f(_0x519392){const _0x4b3491=_0x4fb31f;let _0x52a7bf=d(_0x519392[_0x4b3491(0x77)])['ink'];if(!_0x52a7bf||typeof _0x52a7bf!=_0x4b3491(0x9f)||Array['isArray'](_0x52a7bf))return null;let _0x440921=_0x52a7bf;return _0x440921[_0x4b3491(0x7c)]===0x1&&_0x440921[_0x4b3491(0xa1)]&&typeof _0x440921[_0x4b3491(0xa1)]==_0x4b3491(0x9f)?_0x440921:null;}function p(_0x4d560e){const _0x242859=_0x4fb31f;return _0x4d560e[_0x242859(0x9e)]===_0x1d6b95['Shape']&&!!f(_0x4d560e);}_0x24c860[_0x4fb31f(0xa0)](o);const m={'Pen':_0x4fb31f(0x78),'Brush':_0x4fb31f(0x81),'Highlighter':_0x4fb31f(0x9a)},h={'Corner':_0x4fb31f(0x9c),'Smooth':_0x4fb31f(0x7f),'Symmetric':_0x4fb31f(0x9b),'Free':'free'},g={'Anchor':_0x4fb31f(0x79),'In':'in','Out':_0x4fb31f(0x95)};var _=class extends _0x5988e6{get['BoardInkTool'](){return m;}get[_0x4fb31f(0x8c)](){return h;}get[_0x4fb31f(0x7a)](){return g;}};_0x5988e6['extend'](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
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};
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3265aa=_0xc58c;(function(_0x22c69e,_0x5e28ce){const _0x234c60=_0xc58c,_0xde3f3f=_0x22c69e();while(!![]){try{const _0x575d13=-parseInt(_0x234c60(0x145))/0x1*(parseInt(_0x234c60(0x164))/0x2)+-parseInt(_0x234c60(0x187))/0x3*(-parseInt(_0x234c60(0x17d))/0x4)+-parseInt(_0x234c60(0x142))/0x5*(-parseInt(_0x234c60(0x184))/0x6)+-parseInt(_0x234c60(0x17b))/0x7*(parseInt(_0x234c60(0x179))/0x8)+parseInt(_0x234c60(0x163))/0x9+parseInt(_0x234c60(0x156))/0xa+-parseInt(_0x234c60(0x12d))/0xb;if(_0x575d13===_0x5e28ce)break;else _0xde3f3f['push'](_0xde3f3f['shift']());}catch(_0x4cb105){_0xde3f3f['push'](_0xde3f3f['shift']());}}}(_0x74aa,0xc0adb));import{ShapeFillEnum as _0x41b33d,ShapeLineCapEnum as _0x4f2531,ShapeLineJoinEnum as _0x477814,ShapeLineTypeEnum as _0x1d6f28,ShapeTypeEnum as _0x2890c7}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x361d04}from'@univerjs-pro/license';import{CommandType as _0x26993d,DependentOn as _0x523a19,ICommandService as _0x22c5ef,IConfigService as _0x413199,Inject as _0x1ef38a,Injector as _0x4101f2,Plugin as _0x2d049f,UniverInstanceType as _0x4da895,createIdentifier as _0x17208f,merge as _0x5dbb94,toDisposable as _0x47bed1}from'@univerjs/core';const g=0.0001;function _(_0x44aff3){return{'x':_0x44aff3['x'],'y':_0x44aff3['y']};}function v(_0x182059){const _0x4810b0=_0xc58c;return{..._0x182059,'in':_0x182059['in']?_(_0x182059['in']):void 0x0,'out':_0x182059['out']?_(_0x182059[_0x4810b0(0x136)]):void 0x0};}function y(_0x31b2bb){const _0x292471=_0xc58c;return{'kind':_0x292471(0x157),'closed':_0x31b2bb[_0x292471(0x17e)],'anchors':_0x31b2bb[_0x292471(0x14b)][_0x292471(0x180)](v)};}function b(_0x20ed78,_0x3500aa,_0x4b5432){return{'x':_0x20ed78['x']+(_0x3500aa['x']-_0x20ed78['x'])*_0x4b5432,'y':_0x20ed78['y']+(_0x3500aa['y']-_0x20ed78['y'])*_0x4b5432};}function x(_0x1757cc,_0x13552a){const _0x4e136d=_0xc58c;return Math[_0x4e136d(0x18d)](_0x1757cc['x']-_0x13552a['x'],_0x1757cc['y']-_0x13552a['y']);}function S(_0x3e6cd4){const _0x4cdba2=_0xc58c;let _0x3741f1=Math[_0x4cdba2(0x18d)](_0x3e6cd4['x'],_0x3e6cd4['y']);return _0x3741f1<g?{'x':0x1,'y':0x0}:{'x':_0x3e6cd4['x']/_0x3741f1,'y':_0x3e6cd4['y']/_0x3741f1};}function C(_0x2215bb,_0x4d7f52,_0xfd74a2=x(_0x2215bb,_0x4d7f52)){let _0x57911f=S({'x':_0x2215bb['x']-_0x4d7f52['x'],'y':_0x2215bb['y']-_0x4d7f52['y']});return{'x':_0x2215bb['x']+_0x57911f['x']*_0xfd74a2,'y':_0x2215bb['y']+_0x57911f['y']*_0xfd74a2};}function w(_0x468f21,_0x563560){const _0x505b94=_0xc58c;let {anchors:_0x216174}=_0x468f21;return _0x216174[_0x505b94(0x14e)]<0x2||_0x563560<0x0?null:_0x563560<_0x216174[_0x505b94(0x14e)]-0x1?{'startIndex':_0x563560,'endIndex':_0x563560+0x1,'start':_0x216174[_0x563560],'end':_0x216174[_0x563560+0x1]}:_0x468f21[_0x505b94(0x17e)]&&_0x563560===_0x216174['length']-0x1?{'startIndex':_0x216174[_0x505b94(0x14e)]-0x1,'endIndex':0x0,'start':_0x216174[_0x216174[_0x505b94(0x14e)]-0x1],'end':_0x216174[0x0]}:null;}function T(_0x3234da,_0x2fcb07){const _0x2126dc=_0xc58c;var _0x3d7b6f,_0x38d07d;let _0xd1e1a7=w(_0x3234da,_0x2fcb07);return _0xd1e1a7?[_0xd1e1a7[_0x2126dc(0x146)],(_0x3d7b6f=_0xd1e1a7[_0x2126dc(0x146)][_0x2126dc(0x136)])==null?_0xd1e1a7['start']:_0x3d7b6f,(_0x38d07d=_0xd1e1a7[_0x2126dc(0x15a)]['in'])==null?_0xd1e1a7[_0x2126dc(0x15a)]:_0x38d07d,_0xd1e1a7[_0x2126dc(0x15a)]]:null;}function te(_0x2f1f07,_0xb410e9){var _0x55413a;return _0xb410e9==='anchor'?_0x2f1f07:(_0x55413a=_0x2f1f07[_0xb410e9])==null?null:_0x55413a;}function E(_0x3223f2,_0x1f8aa7,_0x36f4bf){const _0x413f1b=_0xc58c;return _0x36f4bf==='anchor'||_0x3223f2[_0x413f1b(0x17e)]?!0x0:_0x36f4bf==='in'?_0x1f8aa7>0x0:_0x1f8aa7<_0x3223f2[_0x413f1b(0x14b)]['length']-0x1;}function D(_0x5116da,_0x462156){let [_0x3c53a1,_0x681790,_0x53e0e3,_0x29f776]=_0x5116da,_0x32d226=b(_0x3c53a1,_0x681790,_0x462156),_0x4f2512=b(_0x681790,_0x53e0e3,_0x462156),_0x4f69bc=b(_0x53e0e3,_0x29f776,_0x462156);return b(b(_0x32d226,_0x4f2512,_0x462156),b(_0x4f2512,_0x4f69bc,_0x462156),_0x462156);}function ne(_0x2fb6b4,_0x548287){let [_0x2fa8b2,_0x439f4b,_0xf7bfcc,_0x4e0aaa]=_0x2fb6b4,_0x2ea939=b(_0x2fa8b2,_0x439f4b,_0x548287),_0x5edc6c=b(_0x439f4b,_0xf7bfcc,_0x548287),_0x50d147=b(_0xf7bfcc,_0x4e0aaa,_0x548287),_0x48e445=b(_0x2ea939,_0x5edc6c,_0x548287),_0x49a066=b(_0x5edc6c,_0x50d147,_0x548287),_0x15a4d3=b(_0x48e445,_0x49a066,_0x548287);return{'left':[_0x2fa8b2,_0x2ea939,_0x48e445,_0x15a4d3],'right':[_0x15a4d3,_0x49a066,_0x50d147,_0x4e0aaa]};}function O(_0x4f5f0b,_0x4a9516,_0x2a734c){const _0x55929e=_0xc58c;let _0x1e3b2c=_0x2a734c['x']-_0x4a9516['x'],_0xbd0138=_0x2a734c['y']-_0x4a9516['y'],_0x49485b=_0x1e3b2c*_0x1e3b2c+_0xbd0138*_0xbd0138,_0x6b474=_0x49485b<=g?0x0:Math['max'](0x0,Math[_0x55929e(0x18b)](0x1,((_0x4f5f0b['x']-_0x4a9516['x'])*_0x1e3b2c+(_0x4f5f0b['y']-_0x4a9516['y'])*_0xbd0138)/_0x49485b)),_0x12da08={'x':_0x4a9516['x']+_0x1e3b2c*_0x6b474,'y':_0x4a9516['y']+_0xbd0138*_0x6b474};return{'point':_0x12da08,'ratio':_0x6b474,'distance':x(_0x4f5f0b,_0x12da08)};}function re(_0x4e4bf7,_0x5435d3,_0x5680f8){return O(_0x4e4bf7,_0x5435d3,_0x5680f8)['distance']**0x2;}function k(_0x2b210b,_0x35b770){const _0x50b657=_0xc58c;if(_0x2b210b[_0x50b657(0x14e)]<=0x2)return _0x2b210b[_0x50b657(0x180)](_);let _0x5f1e8a=0x0,_0x2e97df=0x0,_0x5a76ae=_0x2b210b[0x0],_0x432329=_0x2b210b[_0x2b210b['length']-0x1],_0x940e29=_0x35b770*_0x35b770;for(let _0x534880=0x1;_0x534880<_0x2b210b[_0x50b657(0x14e)]-0x1;_0x534880++){let _0x207f99=re(_0x2b210b[_0x534880],_0x5a76ae,_0x432329);_0x207f99>_0x5f1e8a&&(_0x5f1e8a=_0x207f99,_0x2e97df=_0x534880);}if(_0x5f1e8a<=_0x940e29)return[_(_0x5a76ae),_(_0x432329)];let _0x16c631=k(_0x2b210b['slice'](0x0,_0x2e97df+0x1),_0x35b770),_0x2ce94b=k(_0x2b210b[_0x50b657(0x141)](_0x2e97df),_0x35b770);return[..._0x16c631['slice'](0x0,-0x1),..._0x2ce94b];}function ie(_0x3ce019,_0x44b146){var _0x4d13d8;let _0x45c534=_0x3ce019[_0x44b146],_0x321d63=_0x3ce019[_0x44b146+0x1],_0x3decd0=(_0x4d13d8=_0x3ce019[_0x44b146-0x1])==null?_0x45c534:_0x4d13d8;return{'x':_0x45c534['x']+(_0x321d63['x']-_0x3decd0['x'])/0x6,'y':_0x45c534['y']+(_0x321d63['y']-_0x3decd0['y'])/0x6};}function A(_0x3f2e9b,_0x46e4af){var _0x46887e;let _0x157669=_0x3f2e9b[_0x46e4af],_0x1db499=_0x3f2e9b[_0x46e4af-0x1],_0x3a6982=(_0x46887e=_0x3f2e9b[_0x46e4af+0x1])==null?_0x157669:_0x46887e;return{'x':_0x157669['x']-(_0x3a6982['x']-_0x1db499['x'])/0x6,'y':_0x157669['y']-(_0x3a6982['y']-_0x1db499['y'])/0x6};}function j(_0x138388,_0x143529){const _0x5e7465=_0xc58c;var _0x59eaab,_0x1052d2;let _0x1f166c=_0x138388[_0x5e7465(0x14b)][_0x143529],_0x266d83=(_0x59eaab=_0x138388[_0x5e7465(0x14b)][_0x143529-0x1])==null?_0x138388['closed']?_0x138388[_0x5e7465(0x14b)][_0x138388['anchors'][_0x5e7465(0x14e)]-0x1]:null:_0x59eaab,_0x55b966=(_0x1052d2=_0x138388[_0x5e7465(0x14b)][_0x143529+0x1])==null?_0x138388[_0x5e7465(0x17e)]?_0x138388[_0x5e7465(0x14b)][0x0]:null:_0x1052d2,_0x51ef38=_0x266d83&&_0x55b966?S({'x':_0x55b966['x']-_0x266d83['x'],'y':_0x55b966['y']-_0x266d83['y']}):_0x55b966?S({'x':_0x55b966['x']-_0x1f166c['x'],'y':_0x55b966['y']-_0x1f166c['y']}):_0x266d83?S({'x':_0x1f166c['x']-_0x266d83['x'],'y':_0x1f166c['y']-_0x266d83['y']}):{'x':0x1,'y':0x0},_0x42ad11=_0x266d83&&_0x55b966?Math[_0x5e7465(0x186)](0x32,x(_0x266d83,_0x55b966)/0x4):0x32;return{'in':{'x':_0x1f166c['x']-_0x51ef38['x']*_0x42ad11,'y':_0x1f166c['y']-_0x51ef38['y']*_0x42ad11},'out':{'x':_0x1f166c['x']+_0x51ef38['x']*_0x42ad11,'y':_0x1f166c['y']+_0x51ef38['y']*_0x42ad11}};}function _0x74aa(){const _0x10aef8=['_commandService','Round','pointType','UNIVER_INK_PLUGIN','registerAdapter','push','SolidLine','find','startIndex','function','disposeWithMe','UNIVER_UNKNOWN','height','kind','abs','ratio','smooth','width','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2584cFhafH','createId','8281ZTLGcb','sqrt','3980vDUTBh','closed','constructor','map','OPERATION','color','_configService','132XCFHVP','createCustomShape','max','2199OjhHMH','registerCommand','anchor','_injector','min','free','hypot','30253102JrUnNk','fillColor','ink-centerline-','segmentIndex','beginInkMode','join','ink.config','distance','packageName','out','get','default','decorate','point','#f54a45','round','symbol','right','anchorId','left','slice','311825gULgan','_adapters','norm','1sCJBPj','start','tool','iterator','opacity','toPrimitive','anchors','__ink-preview-anchor__','ink.operation.start','length','setConfig','tolerance','1.0.0-alpha.8','string','add','@univerjs-pro/ink','symmetric','11834450iTcoya','pen','forEach','points','end','top','getOwnPropertyDescriptor','object','corner','version','call','defineProperty','pluginName','14175810zQsfQN','1876596IbRxVI','splice'];_0x74aa=function(){return _0x10aef8;};return _0x74aa();}function M(_0x4c28b9,_0x1ebab0){const _0x122522=_0xc58c;let _0x37fb75=_0x4c28b9[_0x1ebab0],_0x5df398=_0x1ebab0==='in'?_0x122522(0x136):'in',_0x27bc57=_0x4c28b9[_0x5df398];if(_0x37fb75){if(_0x4c28b9[_0x122522(0x168)]===_0x122522(0x155)){_0x4c28b9[_0x5df398]=C(_0x4c28b9,_0x37fb75);return;}_0x4c28b9[_0x122522(0x168)]===_0x122522(0x176)&&(_0x4c28b9[_0x5df398]=C(_0x4c28b9,_0x37fb75,_0x27bc57?x(_0x4c28b9,_0x27bc57):x(_0x4c28b9,_0x37fb75)));}}function ae(_0x17260a,_0x2528f1){const _0x4a98cb=_0xc58c;let _0x118586=y(_0x17260a);return!_0x2528f1||_0x118586[_0x4a98cb(0x17e)]||_0x118586[_0x4a98cb(0x14b)][_0x4a98cb(0x14e)]===0x0||_0x118586[_0x4a98cb(0x14b)][_0x4a98cb(0x16b)]({'id':_0x4a98cb(0x14c),'x':_0x2528f1['x'],'y':_0x2528f1['y'],'pointType':_0x4a98cb(0x15e)}),_0x118586;}function oe(_0x316cfb,_0x60548f={}){const _0x39c1a1=_0xc58c;var _0x4cee48,_0x3a3034;let _0xd72610=Math['max'](0x0,(_0x4cee48=_0x60548f[_0x39c1a1(0x150)])==null?Math[_0x39c1a1(0x186)](0x4,_0x316cfb[_0x39c1a1(0x177)]*0.35):_0x4cee48),_0x35332a=(_0x3a3034=_0x60548f[_0x39c1a1(0x17a)])==null?_0x4d6d45=>_0x39c1a1(0x12f)+_0x4d6d45:_0x3a3034,_0x31b6f2=k(_0x316cfb[_0x39c1a1(0x159)],_0xd72610),_0x4f026f=_0x31b6f2['map']((_0x1bae72,_0x55f8c5)=>({'id':_0x35332a(_0x55f8c5),'x':_0x1bae72['x'],'y':_0x1bae72['y'],'pointType':'free'}));for(let _0xcd46f3=0x0;_0xcd46f3<_0x4f026f[_0x39c1a1(0x14e)]-0x1;_0xcd46f3++)_0x4f026f[_0xcd46f3][_0x39c1a1(0x136)]=ie(_0x31b6f2,_0xcd46f3),_0x4f026f[_0xcd46f3+0x1]['in']=A(_0x31b6f2,_0xcd46f3+0x1);return{'kind':_0x39c1a1(0x157),'closed':!0x1,'anchors':_0x4f026f};}function se(_0x5e0ef8,_0x1f4627,_0x1329c8){const _0x3eeeff=_0xc58c;let _0x5e88ca=null,_0x13391b=[_0x3eeeff(0x189),'in',_0x3eeeff(0x136)];return _0x5e0ef8['anchors'][_0x3eeeff(0x158)]((_0x5db0d2,_0x52462f)=>{_0x13391b['forEach'](_0x38e48d=>{const _0x1ba6d0=_0xc58c;if(!E(_0x5e0ef8,_0x52462f,_0x38e48d))return;let _0xfe324d=te(_0x5db0d2,_0x38e48d);if(!_0xfe324d)return;let _0x52fba5=x(_0x1f4627,_0xfe324d);_0x52fba5>_0x1329c8||_0x5e88ca&&_0x52fba5>=_0x5e88ca[_0x1ba6d0(0x134)]||(_0x5e88ca={'handle':{'kind':_0x38e48d,'anchorId':_0x5db0d2['id']},'point':_(_0xfe324d),'distance':_0x52fba5});});}),_0x5e88ca;}function ce(_0x4cf40b,_0x3d7f7d,_0x50b4bc){const _0x161bd4=_0xc58c;let _0x2112dd=null,_0x35deb7=_0x4cf40b[_0x161bd4(0x17e)]?_0x4cf40b[_0x161bd4(0x14b)][_0x161bd4(0x14e)]:Math[_0x161bd4(0x186)](0x0,_0x4cf40b['anchors'][_0x161bd4(0x14e)]-0x1);for(let _0x1985a4=0x0;_0x1985a4<_0x35deb7;_0x1985a4++){let _0x3b48c8=T(_0x4cf40b,_0x1985a4);if(!_0x3b48c8)continue;let _0x334b52=D(_0x3b48c8,0x0);for(let _0x5217b7=0x1;_0x5217b7<=0x20;_0x5217b7++){let _0x34591b=D(_0x3b48c8,_0x5217b7/0x20),_0x1bd843=O(_0x3d7f7d,_0x334b52,_0x34591b),_0x547dc9=(_0x5217b7-0x1+_0x1bd843[_0x161bd4(0x175)])/0x20;(!_0x2112dd||_0x1bd843[_0x161bd4(0x134)]<_0x2112dd[_0x161bd4(0x134)])&&(_0x2112dd={'segmentIndex':_0x1985a4,'t':_0x547dc9,'point':_0x1bd843[_0x161bd4(0x13a)],'distance':_0x1bd843[_0x161bd4(0x134)]}),_0x334b52=_0x34591b;}}return _0x2112dd&&_0x2112dd['distance']<=_0x50b4bc?_0x2112dd:null;}function le(_0x211127,_0x288c52,_0x380185){const _0x38b28f=_0xc58c;let _0x4993ad=y(_0x211127),_0x940ab=w(_0x4993ad,_0x288c52[_0x38b28f(0x130)]),_0x2cf1a9=T(_0x4993ad,_0x288c52[_0x38b28f(0x130)]);if(!_0x940ab||!_0x2cf1a9)return _0x4993ad;let _0x3eacee=ne(_0x2cf1a9,Math[_0x38b28f(0x186)](0x0,Math[_0x38b28f(0x18b)](0x1,_0x288c52['t']))),_0x2e631b={'id':_0x380185(),'x':_0x3eacee[_0x38b28f(0x140)][0x3]['x'],'y':_0x3eacee[_0x38b28f(0x140)][0x3]['y'],'in':_(_0x3eacee[_0x38b28f(0x140)][0x2]),'out':_(_0x3eacee[_0x38b28f(0x13e)][0x1]),'pointType':_0x38b28f(0x18c)};return _0x4993ad[_0x38b28f(0x14b)][_0x940ab[_0x38b28f(0x16e)]][_0x38b28f(0x136)]=_(_0x3eacee[_0x38b28f(0x140)][0x1]),_0x4993ad[_0x38b28f(0x14b)][_0x940ab['endIndex']]['in']=_(_0x3eacee[_0x38b28f(0x13e)][0x2]),_0x4993ad[_0x38b28f(0x14b)][_0x38b28f(0x165)](_0x940ab[_0x38b28f(0x16e)]+0x1,0x0,_0x2e631b),_0x4993ad;}function ue(_0x375b85,_0x19ffae){const _0x3f8ef5=_0xc58c;let _0x48e670=y(_0x375b85);return _0x48e670[_0x3f8ef5(0x14b)]=_0x48e670[_0x3f8ef5(0x14b)]['filter'](_0x520a12=>_0x520a12['id']!==_0x19ffae),_0x48e670[_0x3f8ef5(0x17e)]&&_0x48e670[_0x3f8ef5(0x14b)][_0x3f8ef5(0x14e)]<0x3&&(_0x48e670['closed']=!0x1),_0x48e670;}function N(_0x5e0b36,_0x52fc57,_0x18de7b){const _0x3e0d91=_0xc58c;let _0x6aefad=y(_0x5e0b36),_0x4757af=_0x6aefad[_0x3e0d91(0x14b)]['findIndex'](_0x409e16=>_0x409e16['id']===_0x52fc57),_0x4ab263=_0x6aefad[_0x3e0d91(0x14b)][_0x4757af];if(!_0x4ab263)return _0x6aefad;if(_0x4ab263['pointType']=_0x18de7b,_0x18de7b===_0x3e0d91(0x15e))return delete _0x4ab263['in'],delete _0x4ab263[_0x3e0d91(0x136)],_0x6aefad;let _0x17e44c=j(_0x6aefad,_0x4757af);if(_0x4ab263['in']=_0x4ab263['in']?_(_0x4ab263['in']):_0x17e44c['in'],_0x4ab263[_0x3e0d91(0x136)]=_0x4ab263[_0x3e0d91(0x136)]?_(_0x4ab263[_0x3e0d91(0x136)]):_0x17e44c['out'],_0x18de7b===_0x3e0d91(0x155)){let _0x263efa=Math['max'](x(_0x4ab263,_0x4ab263['in']),x(_0x4ab263,_0x4ab263['out']),0x32),_0x409e7b=S({'x':_0x4ab263[_0x3e0d91(0x136)]['x']-_0x4ab263['x'],'y':_0x4ab263[_0x3e0d91(0x136)]['y']-_0x4ab263['y']});_0x4ab263[_0x3e0d91(0x136)]={'x':_0x4ab263['x']+_0x409e7b['x']*_0x263efa,'y':_0x4ab263['y']+_0x409e7b['y']*_0x263efa},_0x4ab263['in']={'x':_0x4ab263['x']-_0x409e7b['x']*_0x263efa,'y':_0x4ab263['y']-_0x409e7b['y']*_0x263efa};}else _0x18de7b===_0x3e0d91(0x176)&&M(_0x4ab263,_0x3e0d91(0x136));return _0x6aefad;}function P(_0x31727b,_0x54b6cb){const _0x165c3f=_0xc58c;var _0x33033f;let _0x290fab=_0x31727b[_0x165c3f(0x14b)][_0x165c3f(0x16d)](_0x4d50d7=>_0x4d50d7['id']===_0x54b6cb),_0x313e32=(_0x33033f=_0x290fab==null?void 0x0:_0x290fab[_0x165c3f(0x168)])==null?_0x165c3f(0x15e):_0x33033f;return N(_0x31727b,_0x54b6cb,_0x313e32==='corner'?_0x165c3f(0x176):_0x313e32==='smooth'?_0x165c3f(0x155):_0x313e32==='symmetric'?_0x165c3f(0x18c):_0x165c3f(0x15e));}function F(_0x121f16,_0x52a303,_0x41cdf6){const _0x442693=_0xc58c;let _0x1e4562=y(_0x121f16),_0x28b743=_0x1e4562[_0x442693(0x14b)][_0x442693(0x16d)](_0x122925=>_0x122925['id']===_0x52a303[_0x442693(0x13f)]);if(!_0x28b743)return _0x1e4562;if(_0x52a303[_0x442693(0x173)]==='anchor'){let _0x344e90={'x':_0x41cdf6['x']-_0x28b743['x'],'y':_0x41cdf6['y']-_0x28b743['y']};return _0x28b743['x']=_0x41cdf6['x'],_0x28b743['y']=_0x41cdf6['y'],_0x28b743['in']&&(_0x28b743['in']={'x':_0x28b743['in']['x']+_0x344e90['x'],'y':_0x28b743['in']['y']+_0x344e90['y']}),_0x28b743[_0x442693(0x136)]&&(_0x28b743[_0x442693(0x136)]={'x':_0x28b743[_0x442693(0x136)]['x']+_0x344e90['x'],'y':_0x28b743[_0x442693(0x136)]['y']+_0x344e90['y']}),_0x1e4562;}return _0x28b743[_0x52a303['kind']]=_(_0x41cdf6),_0x28b743[_0x442693(0x168)]===_0x442693(0x15e)&&(_0x28b743[_0x442693(0x168)]='free'),M(_0x28b743,_0x52a303[_0x442693(0x173)]),_0x1e4562;}const I=1e-9;function L(_0x4dccd8){let _0x3529ea=Math['round'](_0x4dccd8*0x2710)/0x2710;return Object['is'](_0x3529ea,-0x0)?'0':String(_0x3529ea);}function R(_0x16af44){return L(_0x16af44['x'])+'\x20'+L(_0x16af44['y']);}function z(_0x15c7fc,_0x2eccd0){return{'x':_0x15c7fc['x']-_0x2eccd0['x'],'y':_0x15c7fc['y']-_0x2eccd0['y']};}function B(_0x1d2ed9,_0x42747b,_0x4eea84,_0x25d6f6,_0x6590c5){let _0x621540=0x1-_0x6590c5;return{'x':_0x621540*_0x621540*_0x621540*_0x1d2ed9['x']+0x3*_0x621540*_0x621540*_0x6590c5*_0x42747b['x']+0x3*_0x621540*_0x6590c5*_0x6590c5*_0x4eea84['x']+_0x6590c5*_0x6590c5*_0x6590c5*_0x25d6f6['x'],'y':_0x621540*_0x621540*_0x621540*_0x1d2ed9['y']+0x3*_0x621540*_0x621540*_0x6590c5*_0x42747b['y']+0x3*_0x621540*_0x6590c5*_0x6590c5*_0x4eea84['y']+_0x6590c5*_0x6590c5*_0x6590c5*_0x25d6f6['y']};}function V(_0x4dba68,_0x5d2d39,_0x3fe31,_0x147ce2){const _0x454859=_0xc58c;let _0x5a0b4c=-_0x4dba68+0x3*_0x5d2d39-0x3*_0x3fe31+_0x147ce2,_0x11ece5=0x3*_0x4dba68-0x6*_0x5d2d39+0x3*_0x3fe31,_0x53f88f=-0x3*_0x4dba68+0x3*_0x5d2d39,_0x45a9df=[];if(Math[_0x454859(0x174)](_0x5a0b4c)<I){if(Math[_0x454859(0x174)](_0x11ece5)<I)return _0x45a9df;let _0x2534f3=-_0x53f88f/(0x2*_0x11ece5);return _0x2534f3>0x0&&_0x2534f3<0x1&&_0x45a9df['push'](_0x2534f3),_0x45a9df;}let _0x372ab6=_0x11ece5*_0x11ece5-0x3*_0x5a0b4c*_0x53f88f;if(_0x372ab6<0x0)return _0x45a9df;let _0x6d7590=Math[_0x454859(0x17c)](Math['max'](0x0,_0x372ab6)),_0x1c3c27=(-_0x11ece5+_0x6d7590)/(0x3*_0x5a0b4c),_0x1a9298=(-_0x11ece5-_0x6d7590)/(0x3*_0x5a0b4c);return _0x1c3c27>0x0&&_0x1c3c27<0x1&&_0x45a9df['push'](_0x1c3c27),_0x1a9298>0x0&&_0x1a9298<0x1&&Math[_0x454859(0x174)](_0x1a9298-_0x1c3c27)>I&&_0x45a9df[_0x454859(0x16b)](_0x1a9298),_0x45a9df;}function _0xc58c(_0x41e90d,_0x1043a7){_0x41e90d=_0x41e90d-0x12d;const _0x74aaf2=_0x74aa();let _0xc58c62=_0x74aaf2[_0x41e90d];return _0xc58c62;}function H(_0x5935d3,_0x53f6fa,_0x355587,_0x48d2ea,_0x398387){const _0x66d754=_0xc58c;_0x5935d3[_0x66d754(0x16b)](_0x53f6fa,_0x398387),new Set([...V(_0x53f6fa['x'],_0x355587['x'],_0x48d2ea['x'],_0x398387['x']),...V(_0x53f6fa['y'],_0x355587['y'],_0x48d2ea['y'],_0x398387['y'])])[_0x66d754(0x158)](_0x105d4a=>{const _0x37d0c2=_0x66d754;_0x5935d3[_0x37d0c2(0x16b)](B(_0x53f6fa,_0x355587,_0x48d2ea,_0x398387,_0x105d4a));});}function U(_0x2c6357){const _0x12cde8=_0xc58c;let _0x534a04=_0x2c6357[_0x12cde8(0x14b)];if(_0x534a04[_0x12cde8(0x14e)]<=0x1)return _0x534a04;let _0x17054e=[];for(let _0x5d5640=0x1;_0x5d5640<_0x534a04['length'];_0x5d5640++){var _0x1f8cfa,_0x48391e;let _0x3ca47d=_0x534a04[_0x5d5640-0x1],_0x4a61db=_0x534a04[_0x5d5640];H(_0x17054e,_0x3ca47d,(_0x1f8cfa=_0x3ca47d['out'])==null?_0x3ca47d:_0x1f8cfa,(_0x48391e=_0x4a61db['in'])==null?_0x4a61db:_0x48391e,_0x4a61db);}if(_0x2c6357['closed']&&_0x534a04[_0x12cde8(0x14e)]>0x1){var _0x2dc982,_0x4f726d;let _0x1513fe=_0x534a04[_0x534a04[_0x12cde8(0x14e)]-0x1],_0x458fb5=_0x534a04[0x0];H(_0x17054e,_0x1513fe,(_0x2dc982=_0x1513fe[_0x12cde8(0x136)])==null?_0x1513fe:_0x2dc982,(_0x4f726d=_0x458fb5['in'])==null?_0x458fb5:_0x4f726d,_0x458fb5);}return _0x17054e;}function de(_0x3d585f){const _0x1f5c51=_0xc58c;let _0x4de0a7=_0x3d585f[_0x1f5c51(0x159)];if(_0x4de0a7[_0x1f5c51(0x14e)]<=0x1)return _0x4de0a7;let _0x4eef24=[];for(let _0x4807d0=0x0;_0x4807d0<_0x4de0a7[_0x1f5c51(0x14e)]-0x1;_0x4807d0++){var _0x470852,_0x363ff8;let _0x34bf1f=_0x4de0a7[_0x4807d0],_0x5753cb=_0x4de0a7[_0x4807d0+0x1],_0x29d63a=(_0x470852=_0x4de0a7[_0x4807d0-0x1])==null?_0x34bf1f:_0x470852,_0x5da5ec=(_0x363ff8=_0x4de0a7[_0x4807d0+0x2])==null?_0x5753cb:_0x363ff8;H(_0x4eef24,_0x34bf1f,{'x':_0x34bf1f['x']+(_0x5753cb['x']-_0x29d63a['x'])/0x6,'y':_0x34bf1f['y']+(_0x5753cb['y']-_0x29d63a['y'])/0x6},{'x':_0x5753cb['x']-(_0x5da5ec['x']-_0x34bf1f['x'])/0x6,'y':_0x5753cb['y']-(_0x5da5ec['y']-_0x34bf1f['y'])/0x6},_0x5753cb);}return _0x4eef24;}function fe(_0x29a319){const _0x44d2e5=_0xc58c;return _0x29a319[_0x44d2e5(0x173)]===_0x44d2e5(0x157)?U(_0x29a319):de(_0x29a319);}function W(_0x44e055){const _0x4e2f13=_0xc58c;let _0x23a694=Math[_0x4e2f13(0x13c)](_0x44e055*0x2710)/0x2710;return Object['is'](_0x23a694,-0x0)?0x0:_0x23a694;}function G(_0x232735){const _0x18aac0=_0xc58c;let _0x3ab732=fe(_0x232735);if(_0x3ab732[_0x18aac0(0x14e)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x1b5f4b=Math[_0x18aac0(0x18b)](..._0x3ab732[_0x18aac0(0x180)](_0xf0d56d=>_0xf0d56d['x'])),_0x1c3534=Math[_0x18aac0(0x18b)](..._0x3ab732[_0x18aac0(0x180)](_0x2688d3=>_0x2688d3['y'])),_0x373614=Math[_0x18aac0(0x186)](..._0x3ab732['map'](_0x356e74=>_0x356e74['x'])),_0x15e6fc=Math[_0x18aac0(0x186)](..._0x3ab732[_0x18aac0(0x180)](_0x3cdf71=>_0x3cdf71['y']));return{'left':W(_0x1b5f4b),'top':W(_0x1c3534),'width':W(Math[_0x18aac0(0x186)](0x1,_0x373614-_0x1b5f4b)),'height':W(Math[_0x18aac0(0x186)](0x1,_0x15e6fc-_0x1c3534))};}function pe(_0x3cc005,_0x537c2b){const _0x218f68=_0xc58c;let _0x51208c=_0x3cc005[_0x218f68(0x14b)];if(_0x51208c['length']===0x0)return'';let _0x9f2a9=['M\x20'+R(z(_0x51208c[0x0],_0x537c2b))];for(let _0x1b40d7=0x1;_0x1b40d7<_0x51208c[_0x218f68(0x14e)];_0x1b40d7++){var _0x1397c7,_0x45f063;let _0x24ee9e=_0x51208c[_0x1b40d7-0x1],_0x9e013e=_0x51208c[_0x1b40d7],_0x21f76e=(_0x1397c7=_0x24ee9e['out'])==null?_0x24ee9e:_0x1397c7,_0x59cf44=(_0x45f063=_0x9e013e['in'])==null?_0x9e013e:_0x45f063;_0x9f2a9[_0x218f68(0x16b)]('C\x20'+R(z(_0x21f76e,_0x537c2b))+'\x20'+R(z(_0x59cf44,_0x537c2b))+'\x20'+R(z(_0x9e013e,_0x537c2b)));}if(_0x3cc005['closed']&&_0x51208c['length']>0x1){var _0x335207,_0x271a81;let _0x2fef1e=_0x51208c[_0x51208c['length']-0x1],_0x3422e3=_0x51208c[0x0],_0x4db695=(_0x335207=_0x2fef1e[_0x218f68(0x136)])==null?_0x2fef1e:_0x335207,_0x11784b=(_0x271a81=_0x3422e3['in'])==null?_0x3422e3:_0x271a81;_0x9f2a9[_0x218f68(0x16b)]('C\x20'+R(z(_0x4db695,_0x537c2b))+'\x20'+R(z(_0x11784b,_0x537c2b))+'\x20'+R(z(_0x3422e3,_0x537c2b))),_0x9f2a9[_0x218f68(0x16b)]('Z');}return _0x9f2a9[_0x218f68(0x132)]('\x20');}function me(_0x10bf5d,_0x62a0c0){const _0xf234ae=_0xc58c;let _0x798c1e=_0x10bf5d['points'][_0xf234ae(0x180)](_0x2ae5cc=>z(_0x2ae5cc,_0x62a0c0));if(_0x798c1e['length']===0x0)return'';if(_0x798c1e[_0xf234ae(0x14e)]===0x1)return'M\x20'+R(_0x798c1e[0x0]);let _0x27cac0=['M\x20'+R(_0x798c1e[0x0])];for(let _0x431142=0x0;_0x431142<_0x798c1e[_0xf234ae(0x14e)]-0x1;_0x431142++){var _0x283a2b,_0x38b0f0;let _0x32a746=_0x798c1e[_0x431142],_0x44c319=_0x798c1e[_0x431142+0x1],_0x9eb338=(_0x283a2b=_0x798c1e[_0x431142-0x1])==null?_0x32a746:_0x283a2b,_0x447754=(_0x38b0f0=_0x798c1e[_0x431142+0x2])==null?_0x44c319:_0x38b0f0,_0x1a7d5c={'x':_0x32a746['x']+(_0x44c319['x']-_0x9eb338['x'])/0x6,'y':_0x32a746['y']+(_0x44c319['y']-_0x9eb338['y'])/0x6},_0x5917f4={'x':_0x44c319['x']-(_0x447754['x']-_0x32a746['x'])/0x6,'y':_0x44c319['y']-(_0x447754['y']-_0x32a746['y'])/0x6};_0x27cac0[_0xf234ae(0x16b)]('C\x20'+R(_0x1a7d5c)+'\x20'+R(_0x5917f4)+'\x20'+R(_0x44c319));}return _0x27cac0['join']('\x20');}function he(_0x1d4649,_0x4ef855){const _0x35defd=_0xc58c;return _0x1d4649[_0x35defd(0x173)]==='pen'?pe(_0x1d4649,_0x4ef855):me(_0x1d4649,_0x4ef855);}function ge(_0xc272c6,_0x2f17e4){const _0x110c81=_0xc58c;return _0x2f17e4!=null&&_0x2f17e4[_0x110c81(0x182)]?_0x2f17e4[_0x110c81(0x182)]:_0xc272c6[_0x110c81(0x173)]===_0x110c81(0x157)?_0x110c81(0x13b):_0xc272c6['color'];}function _e(_0xe14770,_0x52da6e){const _0x960a65=_0xc58c;return(_0x52da6e==null?void 0x0:_0x52da6e['width'])===void 0x0?_0xe14770[_0x960a65(0x173)]===_0x960a65(0x157)?0x2:_0xe14770[_0x960a65(0x177)]:_0x52da6e[_0x960a65(0x177)];}function ve(_0x74adda,_0x3c1333){const _0x1a5333=_0xc58c;return(_0x3c1333==null?void 0x0:_0x3c1333['opacity'])===void 0x0?_0x74adda[_0x1a5333(0x173)]===_0x1a5333(0x157)?void 0x0:_0x74adda[_0x1a5333(0x149)]:_0x3c1333['opacity'];}function ye(_0x209983,_0x275e03){const _0x109b09=_0xc58c;let _0x170c7e=G(_0x209983),_0x45685a=he(_0x209983,{'x':_0x170c7e[_0x109b09(0x140)],'y':_0x170c7e[_0x109b09(0x15b)]}),_0x42f680=_0x209983[_0x109b09(0x173)]===_0x109b09(0x157)&&_0x209983[_0x109b09(0x17e)],_0x1f3dff=_0x275e03==null?void 0x0:_0x275e03[_0x109b09(0x12e)];return{'shapeType':_0x2890c7['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x170c7e[_0x109b09(0x177)],'h':_0x170c7e[_0x109b09(0x172)],'fill':_0x42f680?_0x109b09(0x144):'none','stroke':!0x0,'data':_0x45685a,'dataArray':be(_0x209983,{'x':_0x170c7e[_0x109b09(0x140)],'y':_0x170c7e[_0x109b09(0x15b)]})}]},'fill':_0x42f680&&_0x1f3dff?{'color':_0x1f3dff,'fillType':_0x41b33d['SolidFill']}:{'fillType':_0x41b33d['NoFill']},'stroke':{'color':ge(_0x209983,_0x275e03),'width':_e(_0x209983,_0x275e03),'opacity':ve(_0x209983,_0x275e03),'lineStrokeType':_0x1d6f28[_0x109b09(0x16c)],'capType':_0x4f2531['Round'],'lineJoinType':_0x477814[_0x109b09(0x167)]}};}function K(_0x48d899,_0x4eebc1){return{'x':_0x48d899['x']-_0x4eebc1['x'],'y':_0x48d899['y']-_0x4eebc1['y']};}function be(_0x5e2ea4,_0x4667bb){const _0x250f07=_0xc58c;if(_0x5e2ea4[_0x250f07(0x173)]==='pen'){let _0x4d3939=_0x5e2ea4[_0x250f07(0x14b)];if(_0x4d3939[_0x250f07(0x14e)]===0x0)return[];let _0x397964=K(_0x4d3939[0x0],_0x4667bb),_0x598f2c=[{'command':'M','points':[_0x397964['x'],_0x397964['y']]}];for(let _0x5e14c6=0x1;_0x5e14c6<_0x4d3939['length'];_0x5e14c6++){var _0x247d33,_0x588bbf;let _0x591f53=_0x4d3939[_0x5e14c6-0x1],_0x5e1ab9=_0x4d3939[_0x5e14c6],_0x34e972=K((_0x247d33=_0x591f53[_0x250f07(0x136)])==null?_0x591f53:_0x247d33,_0x4667bb),_0x218ab5=K((_0x588bbf=_0x5e1ab9['in'])==null?_0x5e1ab9:_0x588bbf,_0x4667bb),_0x6c4527=K(_0x5e1ab9,_0x4667bb);_0x598f2c[_0x250f07(0x16b)]({'command':'C','points':[_0x34e972['x'],_0x34e972['y'],_0x218ab5['x'],_0x218ab5['y'],_0x6c4527['x'],_0x6c4527['y']]});}if(_0x5e2ea4[_0x250f07(0x17e)]&&_0x4d3939[_0x250f07(0x14e)]>0x1){var _0x46804d,_0x16e2ae;let _0x223380=_0x4d3939[_0x4d3939[_0x250f07(0x14e)]-0x1],_0x2ae56f=_0x4d3939[0x0],_0x2f815a=K((_0x46804d=_0x223380[_0x250f07(0x136)])==null?_0x223380:_0x46804d,_0x4667bb),_0x5232ea=K((_0x16e2ae=_0x2ae56f['in'])==null?_0x2ae56f:_0x16e2ae,_0x4667bb),_0x41abd5=K(_0x2ae56f,_0x4667bb);_0x598f2c[_0x250f07(0x16b)]({'command':'C','points':[_0x2f815a['x'],_0x2f815a['y'],_0x5232ea['x'],_0x5232ea['y'],_0x41abd5['x'],_0x41abd5['y']]}),_0x598f2c['push']({'command':'z','points':[]});}return _0x598f2c;}let _0x50aeeb=_0x5e2ea4['points'][_0x250f07(0x180)](_0x49d034=>K(_0x49d034,_0x4667bb));if(_0x50aeeb[_0x250f07(0x14e)]===0x0)return[];let _0x58bfa5=[{'command':'M','points':[_0x50aeeb[0x0]['x'],_0x50aeeb[0x0]['y']]}];for(let _0x1d078b=0x0;_0x1d078b<_0x50aeeb['length']-0x1;_0x1d078b++){var _0x35a91a,_0x3c561a;let _0x49ccca=_0x50aeeb[_0x1d078b],_0x168e9f=_0x50aeeb[_0x1d078b+0x1],_0x3221ff=(_0x35a91a=_0x50aeeb[_0x1d078b-0x1])==null?_0x49ccca:_0x35a91a,_0x561cd1=(_0x3c561a=_0x50aeeb[_0x1d078b+0x2])==null?_0x168e9f:_0x3c561a,_0x10de3d={'x':_0x49ccca['x']+(_0x168e9f['x']-_0x3221ff['x'])/0x6,'y':_0x49ccca['y']+(_0x168e9f['y']-_0x3221ff['y'])/0x6},_0x52816e={'x':_0x168e9f['x']-(_0x561cd1['x']-_0x49ccca['x'])/0x6,'y':_0x168e9f['y']-(_0x561cd1['y']-_0x49ccca['y'])/0x6};_0x58bfa5[_0x250f07(0x16b)]({'command':'C','points':[_0x10de3d['x'],_0x10de3d['y'],_0x52816e['x'],_0x52816e['y'],_0x168e9f['x'],_0x168e9f['y']]});}return _0x58bfa5;}function xe(_0x10c636){const _0x517bd3=_0xc58c;var _0x165a54;let {model:_0x58a44f,sourceModel:_0x3c809a=_0x58a44f,style:_0x4d880f}=_0x10c636,_0x5e11dd=(_0x165a54=_0x10c636[_0x517bd3(0x147)])==null?_0x58a44f[_0x517bd3(0x173)]:_0x165a54,_0xbe90de=G(_0x58a44f),_0x25d647=_0x58a44f['kind']===_0x517bd3(0x157)&&_0x5e11dd!=='pen'?_0x58a44f:void 0x0;return{'transform':{..._0xbe90de,'rotation':0x0},'shapeData':ye(_0x58a44f,_0x4d880f),'ink':{'version':0x1,'tool':_0x5e11dd,'sourceModel':_0x3c809a,..._0x25d647?{'editModel':_0x25d647}:{},'normalizedBounds':_0xbe90de}};}var Se=_0x3265aa(0x154),Ce=_0x3265aa(0x151);function q(_0x5e8d18){'@babel/helpers - typeof';const _0x473489=_0x3265aa;return q=typeof Symbol=='function'&&typeof Symbol[_0x473489(0x148)]=='symbol'?function(_0x5baf79){return typeof _0x5baf79;}:function(_0xf44627){const _0x2218ac=_0x473489;return _0xf44627&&typeof Symbol==_0x2218ac(0x16f)&&_0xf44627[_0x2218ac(0x17f)]===Symbol&&_0xf44627!==Symbol['prototype']?_0x2218ac(0x13d):typeof _0xf44627;},q(_0x5e8d18);}function we(_0x3e3f63,_0x2103e0){const _0x518974=_0x3265aa;if(q(_0x3e3f63)!=_0x518974(0x15d)||!_0x3e3f63)return _0x3e3f63;var _0x6f6e3d=_0x3e3f63[Symbol[_0x518974(0x14a)]];if(_0x6f6e3d!==void 0x0){var _0x21bd8b=_0x6f6e3d[_0x518974(0x160)](_0x3e3f63,_0x2103e0||_0x518974(0x138));if(q(_0x21bd8b)!=_0x518974(0x15d))return _0x21bd8b;throw TypeError(_0x518974(0x178));}return(_0x2103e0===_0x518974(0x152)?String:Number)(_0x3e3f63);}function J(_0x3c90e2){var _0x2004de=we(_0x3c90e2,'string');return q(_0x2004de)=='symbol'?_0x2004de:_0x2004de+'';}function Y(_0x3678ec,_0x48d004,_0x4b775f){const _0x14b688=_0x3265aa;return(_0x48d004=J(_0x48d004))in _0x3678ec?Object[_0x14b688(0x161)](_0x3678ec,_0x48d004,{'value':_0x4b775f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3678ec[_0x48d004]=_0x4b775f,_0x3678ec;}const X=_0x17208f('ink.host-adapter.service');var Te=class{constructor(){const _0x2bfe7d=_0x3265aa;Y(this,_0x2bfe7d(0x143),[]);}[_0x3265aa(0x16a)](_0x4d9cec){const _0x3d275f=_0x3265aa;return this[_0x3d275f(0x143)][_0x3d275f(0x16b)](_0x4d9cec),_0x47bed1(()=>{const _0x36e725=_0x3d275f;let _0x4a1ad1=this[_0x36e725(0x143)]['indexOf'](_0x4d9cec);_0x4a1ad1>=0x0&&this[_0x36e725(0x143)][_0x36e725(0x165)](_0x4a1ad1,0x1);});}['beginInkMode'](_0x3836a9){const _0x522f3a=_0x3265aa;for(let _0x7d843 of this[_0x522f3a(0x143)])if(_0x7d843['beginInkMode'](_0x3836a9))return!0x0;return!0x1;}async[_0x3265aa(0x185)](_0x149d9b){const _0x3495a1=_0x3265aa;for(let _0x4d9b4c of this['_adapters'])if(_0x4d9b4c[_0x3495a1(0x185)]&&await _0x4d9b4c[_0x3495a1(0x185)](_0x149d9b))return!0x0;return!0x1;}};const Ee={'id':_0x3265aa(0x14d),'type':_0x26993d[_0x3265aa(0x181)],'handler':(_0x394c13,_0x3401b3)=>_0x3401b3?_0x394c13[_0x3265aa(0x137)](X)[_0x3265aa(0x131)](_0x3401b3):!0x1},Z={};function Q(_0x2b83c6,_0x379774){return function(_0x6dbac4,_0x5a1928){_0x379774(_0x6dbac4,_0x5a1928,_0x2b83c6);};}function De(_0x7d02a9,_0x2792fd,_0xf9c941,_0x43ea04){const _0x35ba43=_0x3265aa;var _0x7610ec=arguments['length'],_0x30b671=_0x7610ec<0x3?_0x2792fd:_0x43ea04===null?_0x43ea04=Object[_0x35ba43(0x15c)](_0x2792fd,_0xf9c941):_0x43ea04,_0x385ad7;if(typeof Reflect==_0x35ba43(0x15d)&&typeof Reflect[_0x35ba43(0x139)]=='function')_0x30b671=Reflect[_0x35ba43(0x139)](_0x7d02a9,_0x2792fd,_0xf9c941,_0x43ea04);else{for(var _0x8d3f90=_0x7d02a9[_0x35ba43(0x14e)]-0x1;_0x8d3f90>=0x0;_0x8d3f90--)(_0x385ad7=_0x7d02a9[_0x8d3f90])&&(_0x30b671=(_0x7610ec<0x3?_0x385ad7(_0x30b671):_0x7610ec>0x3?_0x385ad7(_0x2792fd,_0xf9c941,_0x30b671):_0x385ad7(_0x2792fd,_0xf9c941))||_0x30b671);}return _0x7610ec>0x3&&_0x30b671&&Object[_0x35ba43(0x161)](_0x2792fd,_0xf9c941,_0x30b671),_0x30b671;}let $=class extends _0x2d049f{constructor(_0x1c4ce1=Z,_0x57ae30,_0x58bd46,_0x5764f6){const _0x5b9aa0=_0x3265aa;super(),this['_config']=_0x1c4ce1,this[_0x5b9aa0(0x18a)]=_0x57ae30,this[_0x5b9aa0(0x166)]=_0x58bd46,this[_0x5b9aa0(0x183)]=_0x5764f6;let {..._0xff97fa}=_0x5dbb94({},Z,this['_config']);this['_configService'][_0x5b9aa0(0x14f)](_0x5b9aa0(0x133),_0xff97fa);}['onStarting'](){const _0x3c0b8e=_0x3265aa;[[X,{'useClass':Te}]][_0x3c0b8e(0x158)](_0x5ba4fe=>this[_0x3c0b8e(0x18a)][_0x3c0b8e(0x153)](_0x5ba4fe)),this[_0x3c0b8e(0x170)](this['_commandService'][_0x3c0b8e(0x188)](Ee));}};Y($,_0x3265aa(0x162),_0x3265aa(0x169)),Y($,_0x3265aa(0x135),Se),Y($,_0x3265aa(0x15f),Ce),Y($,'type',_0x4da895[_0x3265aa(0x171)]),$=De([_0x523a19(_0x361d04),Q(0x1,_0x1ef38a(_0x4101f2)),Q(0x2,_0x22c5ef),Q(0x3,_0x413199)],$);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 _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};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4fb31f=_0x1633;(function(_0x1191aa,_0x567b74){const _0x131282=_0x1633,_0x4cccc5=_0x1191aa();while(!![]){try{const _0xd48bd7=-parseInt(_0x131282(0x93))/0x1+-parseInt(_0x131282(0x8a))/0x2+-parseInt(_0x131282(0x8e))/0x3*(-parseInt(_0x131282(0x89))/0x4)+-parseInt(_0x131282(0xa2))/0x5*(-parseInt(_0x131282(0x7b))/0x6)+-parseInt(_0x131282(0x90))/0x7+parseInt(_0x131282(0x7e))/0x8+parseInt(_0x131282(0x7d))/0x9*(parseInt(_0x131282(0x80))/0xa);if(_0xd48bd7===_0x567b74)break;else _0x4cccc5['push'](_0x4cccc5['shift']());}catch(_0x203585){_0x4cccc5['push'](_0x4cccc5['shift']());}}}(_0x3758,0xa7ec3));import{BoardElementType as _0x1d6b95}from'@univerjs-pro/boards';import{FBoard as _0x24c860}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x1c1047}from'@univerjs-pro/ink';import{Tools as _0x4ab5cd,generateRandomId as _0x1e053f}from'@univerjs/core';import{FEnum as _0x5988e6}from'@univerjs/core/facade';var o=class extends _0x24c860{['insertInk'](_0x5d270e){const _0x380c30=_0x1633;let _0x5a8b4b=s(_0x5d270e);return _0x5a8b4b&&this['_addElement'](_0x5a8b4b,{'insertIndex':_0x5d270e[_0x380c30(0x98)]})?_0x5a8b4b:null;}[_0x4fb31f(0x9d)](){const _0x56f729=_0x4fb31f;return this[_0x56f729(0x85)]({'elementType':_0x1d6b95['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x56f729(0x8d)](p);}};function s(_0x2c8fa3,_0x232deb){const _0x34b70c=_0x4fb31f;var _0x5b485c,_0x4dc54d,_0x500bea;if(!l(_0x2c8fa3[_0x34b70c(0x88)])||_0x2c8fa3[_0x34b70c(0xa1)]!==void 0x0&&!l(_0x2c8fa3[_0x34b70c(0xa1)])||!u(_0x2c8fa3[_0x34b70c(0x84)]))return null;let _0x42d7cb=(_0x5b485c=_0x2c8fa3[_0x34b70c(0x83)])==null?_0x232deb==null?void 0x0:_0x232deb['parentId']:_0x5b485c,_0xf268f8=_0x4ab5cd[_0x34b70c(0x87)](_0x2c8fa3[_0x34b70c(0x88)]),_0x2bac15=_0x1c1047({'model':_0xf268f8,'style':_0x2c8fa3[_0x34b70c(0x84)],'tool':_0x2c8fa3[_0x34b70c(0x8b)],'sourceModel':_0x2c8fa3['sourceModel']?_0x4ab5cd['deepClone'](_0x2c8fa3['sourceModel']):_0xf268f8}),_0x426410=d(_0x232deb==null?void 0x0:_0x232deb['custom']);return{'id':(_0x4dc54d=(_0x500bea=_0x232deb==null?void 0x0:_0x232deb['id'])==null?_0x2c8fa3['id']:_0x500bea)==null?_0x1e053f(0x6):_0x4dc54d,'type':_0x1d6b95[_0x34b70c(0x92)],'transform':_0x2bac15['transform'],'shapeData':_0x2bac15[_0x34b70c(0x8f)],'parentId':_0x42d7cb==null?void 0x0:_0x42d7cb,'laneId':_0x2c8fa3[_0x34b70c(0x74)]===void 0x0?_0x232deb==null?void 0x0:_0x232deb[_0x34b70c(0x74)]:_0x2c8fa3['laneId'],'custom':{..._0x426410,'ink':_0x2bac15['ink']}};}function c(_0x2c57ba){const _0x507149=_0x4fb31f;return Number['isFinite'](_0x2c57ba['x'])&&Number[_0x507149(0x75)](_0x2c57ba['y']);}function l(_0xfd61d0){const _0x468cb0=_0x4fb31f;if(_0xfd61d0[_0x468cb0(0x76)]===_0x468cb0(0x78)){let _0x56a345=new Set();return _0xfd61d0['anchors']['length']>=(_0xfd61d0['closed']?0x3:0x2)&&_0xfd61d0['anchors'][_0x468cb0(0x86)](_0x46d48b=>{const _0x38b880=_0x468cb0;let _0x96546=_0x46d48b['id'][_0x38b880(0x94)]()[_0x38b880(0x97)]>0x0&&!_0x56a345['has'](_0x46d48b['id'])&&c(_0x46d48b)&&(!_0x46d48b['in']||c(_0x46d48b['in']))&&(!_0x46d48b[_0x38b880(0x95)]||c(_0x46d48b[_0x38b880(0x95)]));return _0x56a345['add'](_0x46d48b['id']),_0x96546;});}return _0xfd61d0[_0x468cb0(0x96)][_0x468cb0(0x97)]>=0x2&&_0xfd61d0[_0x468cb0(0x96)]['every'](_0x2ad9d9=>c(_0x2ad9d9)&&Number[_0x468cb0(0x75)](_0x2ad9d9['t'])&&(_0x2ad9d9[_0x468cb0(0x91)]===void 0x0||Number['isFinite'](_0x2ad9d9[_0x468cb0(0x91)])))&&Number[_0x468cb0(0x75)](_0xfd61d0[_0x468cb0(0x99)])&&_0xfd61d0[_0x468cb0(0x99)]>0x0&&Number[_0x468cb0(0x75)](_0xfd61d0['opacity'])&&_0xfd61d0[_0x468cb0(0x82)]>=0x0&&_0xfd61d0[_0x468cb0(0x82)]<=0x1;}function u(_0x392c34){const _0x46625b=_0x4fb31f;return _0x392c34===void 0x0||(_0x392c34[_0x46625b(0x99)]===void 0x0||Number['isFinite'](_0x392c34[_0x46625b(0x99)])&&_0x392c34[_0x46625b(0x99)]>0x0)&&(_0x392c34[_0x46625b(0x82)]===void 0x0||Number[_0x46625b(0x75)](_0x392c34[_0x46625b(0x82)])&&_0x392c34[_0x46625b(0x82)]>=0x0&&_0x392c34[_0x46625b(0x82)]<=0x1);}function _0x3758(){const _0x515457=['laneId','isFinite','kind','custom','pen','anchor','BoardInkHandleKind','1379640emdEck','version','2920653sHrNqh','3543184txqcMc','smooth','40EdXIWA','brush','opacity','parentId','style','findElements','every','deepClone','model','2290876OHEjNs','1688078jEoZAq','tool','BoardInkPointType','filter','3BimyEA','shapeData','7163660fzfhQU','pressure','Shape','908155sbqRRh','trim','out','points','length','insertIndex','width','highlighter','symmetric','corner','getInks','type','object','extend','sourceModel','25klYnms'];_0x3758=function(){return _0x515457;};return _0x3758();}function _0x1633(_0xf6bbdf,_0x24be70){_0xf6bbdf=_0xf6bbdf-0x74;const _0x3758ac=_0x3758();let _0x163322=_0x3758ac[_0xf6bbdf];return _0x163322;}function d(_0x205d6d){const _0x215838=_0x4fb31f;return _0x205d6d&&typeof _0x205d6d==_0x215838(0x9f)&&!Array['isArray'](_0x205d6d)?_0x205d6d:{};}function f(_0x519392){const _0x4b3491=_0x4fb31f;let _0x52a7bf=d(_0x519392[_0x4b3491(0x77)])['ink'];if(!_0x52a7bf||typeof _0x52a7bf!=_0x4b3491(0x9f)||Array['isArray'](_0x52a7bf))return null;let _0x440921=_0x52a7bf;return _0x440921[_0x4b3491(0x7c)]===0x1&&_0x440921[_0x4b3491(0xa1)]&&typeof _0x440921[_0x4b3491(0xa1)]==_0x4b3491(0x9f)?_0x440921:null;}function p(_0x4d560e){const _0x242859=_0x4fb31f;return _0x4d560e[_0x242859(0x9e)]===_0x1d6b95['Shape']&&!!f(_0x4d560e);}_0x24c860[_0x4fb31f(0xa0)](o);const m={'Pen':_0x4fb31f(0x78),'Brush':_0x4fb31f(0x81),'Highlighter':_0x4fb31f(0x9a)},h={'Corner':_0x4fb31f(0x9c),'Smooth':_0x4fb31f(0x7f),'Symmetric':_0x4fb31f(0x9b),'Free':'free'},g={'Anchor':_0x4fb31f(0x79),'In':'in','Out':_0x4fb31f(0x95)};var _=class extends _0x5988e6{get['BoardInkTool'](){return m;}get[_0x4fb31f(0x8c)](){return h;}get[_0x4fb31f(0x7a)](){return g;}};_0x5988e6['extend'](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3265aa=_0xc58c;(function(_0x22c69e,_0x5e28ce){const _0x234c60=_0xc58c,_0xde3f3f=_0x22c69e();while(!![]){try{const _0x575d13=-parseInt(_0x234c60(0x145))/0x1*(parseInt(_0x234c60(0x164))/0x2)+-parseInt(_0x234c60(0x187))/0x3*(-parseInt(_0x234c60(0x17d))/0x4)+-parseInt(_0x234c60(0x142))/0x5*(-parseInt(_0x234c60(0x184))/0x6)+-parseInt(_0x234c60(0x17b))/0x7*(parseInt(_0x234c60(0x179))/0x8)+parseInt(_0x234c60(0x163))/0x9+parseInt(_0x234c60(0x156))/0xa+-parseInt(_0x234c60(0x12d))/0xb;if(_0x575d13===_0x5e28ce)break;else _0xde3f3f['push'](_0xde3f3f['shift']());}catch(_0x4cb105){_0xde3f3f['push'](_0xde3f3f['shift']());}}}(_0x74aa,0xc0adb));import{ShapeFillEnum as _0x41b33d,ShapeLineCapEnum as _0x4f2531,ShapeLineJoinEnum as _0x477814,ShapeLineTypeEnum as _0x1d6f28,ShapeTypeEnum as _0x2890c7}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x361d04}from'@univerjs-pro/license';import{CommandType as _0x26993d,DependentOn as _0x523a19,ICommandService as _0x22c5ef,IConfigService as _0x413199,Inject as _0x1ef38a,Injector as _0x4101f2,Plugin as _0x2d049f,UniverInstanceType as _0x4da895,createIdentifier as _0x17208f,merge as _0x5dbb94,toDisposable as _0x47bed1}from'@univerjs/core';const g=0.0001;function _(_0x44aff3){return{'x':_0x44aff3['x'],'y':_0x44aff3['y']};}function v(_0x182059){const _0x4810b0=_0xc58c;return{..._0x182059,'in':_0x182059['in']?_(_0x182059['in']):void 0x0,'out':_0x182059['out']?_(_0x182059[_0x4810b0(0x136)]):void 0x0};}function y(_0x31b2bb){const _0x292471=_0xc58c;return{'kind':_0x292471(0x157),'closed':_0x31b2bb[_0x292471(0x17e)],'anchors':_0x31b2bb[_0x292471(0x14b)][_0x292471(0x180)](v)};}function b(_0x20ed78,_0x3500aa,_0x4b5432){return{'x':_0x20ed78['x']+(_0x3500aa['x']-_0x20ed78['x'])*_0x4b5432,'y':_0x20ed78['y']+(_0x3500aa['y']-_0x20ed78['y'])*_0x4b5432};}function x(_0x1757cc,_0x13552a){const _0x4e136d=_0xc58c;return Math[_0x4e136d(0x18d)](_0x1757cc['x']-_0x13552a['x'],_0x1757cc['y']-_0x13552a['y']);}function S(_0x3e6cd4){const _0x4cdba2=_0xc58c;let _0x3741f1=Math[_0x4cdba2(0x18d)](_0x3e6cd4['x'],_0x3e6cd4['y']);return _0x3741f1<g?{'x':0x1,'y':0x0}:{'x':_0x3e6cd4['x']/_0x3741f1,'y':_0x3e6cd4['y']/_0x3741f1};}function C(_0x2215bb,_0x4d7f52,_0xfd74a2=x(_0x2215bb,_0x4d7f52)){let _0x57911f=S({'x':_0x2215bb['x']-_0x4d7f52['x'],'y':_0x2215bb['y']-_0x4d7f52['y']});return{'x':_0x2215bb['x']+_0x57911f['x']*_0xfd74a2,'y':_0x2215bb['y']+_0x57911f['y']*_0xfd74a2};}function w(_0x468f21,_0x563560){const _0x505b94=_0xc58c;let {anchors:_0x216174}=_0x468f21;return _0x216174[_0x505b94(0x14e)]<0x2||_0x563560<0x0?null:_0x563560<_0x216174[_0x505b94(0x14e)]-0x1?{'startIndex':_0x563560,'endIndex':_0x563560+0x1,'start':_0x216174[_0x563560],'end':_0x216174[_0x563560+0x1]}:_0x468f21[_0x505b94(0x17e)]&&_0x563560===_0x216174['length']-0x1?{'startIndex':_0x216174[_0x505b94(0x14e)]-0x1,'endIndex':0x0,'start':_0x216174[_0x216174[_0x505b94(0x14e)]-0x1],'end':_0x216174[0x0]}:null;}function T(_0x3234da,_0x2fcb07){const _0x2126dc=_0xc58c;var _0x3d7b6f,_0x38d07d;let _0xd1e1a7=w(_0x3234da,_0x2fcb07);return _0xd1e1a7?[_0xd1e1a7[_0x2126dc(0x146)],(_0x3d7b6f=_0xd1e1a7[_0x2126dc(0x146)][_0x2126dc(0x136)])==null?_0xd1e1a7['start']:_0x3d7b6f,(_0x38d07d=_0xd1e1a7[_0x2126dc(0x15a)]['in'])==null?_0xd1e1a7[_0x2126dc(0x15a)]:_0x38d07d,_0xd1e1a7[_0x2126dc(0x15a)]]:null;}function te(_0x2f1f07,_0xb410e9){var _0x55413a;return _0xb410e9==='anchor'?_0x2f1f07:(_0x55413a=_0x2f1f07[_0xb410e9])==null?null:_0x55413a;}function E(_0x3223f2,_0x1f8aa7,_0x36f4bf){const _0x413f1b=_0xc58c;return _0x36f4bf==='anchor'||_0x3223f2[_0x413f1b(0x17e)]?!0x0:_0x36f4bf==='in'?_0x1f8aa7>0x0:_0x1f8aa7<_0x3223f2[_0x413f1b(0x14b)]['length']-0x1;}function D(_0x5116da,_0x462156){let [_0x3c53a1,_0x681790,_0x53e0e3,_0x29f776]=_0x5116da,_0x32d226=b(_0x3c53a1,_0x681790,_0x462156),_0x4f2512=b(_0x681790,_0x53e0e3,_0x462156),_0x4f69bc=b(_0x53e0e3,_0x29f776,_0x462156);return b(b(_0x32d226,_0x4f2512,_0x462156),b(_0x4f2512,_0x4f69bc,_0x462156),_0x462156);}function ne(_0x2fb6b4,_0x548287){let [_0x2fa8b2,_0x439f4b,_0xf7bfcc,_0x4e0aaa]=_0x2fb6b4,_0x2ea939=b(_0x2fa8b2,_0x439f4b,_0x548287),_0x5edc6c=b(_0x439f4b,_0xf7bfcc,_0x548287),_0x50d147=b(_0xf7bfcc,_0x4e0aaa,_0x548287),_0x48e445=b(_0x2ea939,_0x5edc6c,_0x548287),_0x49a066=b(_0x5edc6c,_0x50d147,_0x548287),_0x15a4d3=b(_0x48e445,_0x49a066,_0x548287);return{'left':[_0x2fa8b2,_0x2ea939,_0x48e445,_0x15a4d3],'right':[_0x15a4d3,_0x49a066,_0x50d147,_0x4e0aaa]};}function O(_0x4f5f0b,_0x4a9516,_0x2a734c){const _0x55929e=_0xc58c;let _0x1e3b2c=_0x2a734c['x']-_0x4a9516['x'],_0xbd0138=_0x2a734c['y']-_0x4a9516['y'],_0x49485b=_0x1e3b2c*_0x1e3b2c+_0xbd0138*_0xbd0138,_0x6b474=_0x49485b<=g?0x0:Math['max'](0x0,Math[_0x55929e(0x18b)](0x1,((_0x4f5f0b['x']-_0x4a9516['x'])*_0x1e3b2c+(_0x4f5f0b['y']-_0x4a9516['y'])*_0xbd0138)/_0x49485b)),_0x12da08={'x':_0x4a9516['x']+_0x1e3b2c*_0x6b474,'y':_0x4a9516['y']+_0xbd0138*_0x6b474};return{'point':_0x12da08,'ratio':_0x6b474,'distance':x(_0x4f5f0b,_0x12da08)};}function re(_0x4e4bf7,_0x5435d3,_0x5680f8){return O(_0x4e4bf7,_0x5435d3,_0x5680f8)['distance']**0x2;}function k(_0x2b210b,_0x35b770){const _0x50b657=_0xc58c;if(_0x2b210b[_0x50b657(0x14e)]<=0x2)return _0x2b210b[_0x50b657(0x180)](_);let _0x5f1e8a=0x0,_0x2e97df=0x0,_0x5a76ae=_0x2b210b[0x0],_0x432329=_0x2b210b[_0x2b210b['length']-0x1],_0x940e29=_0x35b770*_0x35b770;for(let _0x534880=0x1;_0x534880<_0x2b210b[_0x50b657(0x14e)]-0x1;_0x534880++){let _0x207f99=re(_0x2b210b[_0x534880],_0x5a76ae,_0x432329);_0x207f99>_0x5f1e8a&&(_0x5f1e8a=_0x207f99,_0x2e97df=_0x534880);}if(_0x5f1e8a<=_0x940e29)return[_(_0x5a76ae),_(_0x432329)];let _0x16c631=k(_0x2b210b['slice'](0x0,_0x2e97df+0x1),_0x35b770),_0x2ce94b=k(_0x2b210b[_0x50b657(0x141)](_0x2e97df),_0x35b770);return[..._0x16c631['slice'](0x0,-0x1),..._0x2ce94b];}function ie(_0x3ce019,_0x44b146){var _0x4d13d8;let _0x45c534=_0x3ce019[_0x44b146],_0x321d63=_0x3ce019[_0x44b146+0x1],_0x3decd0=(_0x4d13d8=_0x3ce019[_0x44b146-0x1])==null?_0x45c534:_0x4d13d8;return{'x':_0x45c534['x']+(_0x321d63['x']-_0x3decd0['x'])/0x6,'y':_0x45c534['y']+(_0x321d63['y']-_0x3decd0['y'])/0x6};}function A(_0x3f2e9b,_0x46e4af){var _0x46887e;let _0x157669=_0x3f2e9b[_0x46e4af],_0x1db499=_0x3f2e9b[_0x46e4af-0x1],_0x3a6982=(_0x46887e=_0x3f2e9b[_0x46e4af+0x1])==null?_0x157669:_0x46887e;return{'x':_0x157669['x']-(_0x3a6982['x']-_0x1db499['x'])/0x6,'y':_0x157669['y']-(_0x3a6982['y']-_0x1db499['y'])/0x6};}function j(_0x138388,_0x143529){const _0x5e7465=_0xc58c;var _0x59eaab,_0x1052d2;let _0x1f166c=_0x138388[_0x5e7465(0x14b)][_0x143529],_0x266d83=(_0x59eaab=_0x138388[_0x5e7465(0x14b)][_0x143529-0x1])==null?_0x138388['closed']?_0x138388[_0x5e7465(0x14b)][_0x138388['anchors'][_0x5e7465(0x14e)]-0x1]:null:_0x59eaab,_0x55b966=(_0x1052d2=_0x138388[_0x5e7465(0x14b)][_0x143529+0x1])==null?_0x138388[_0x5e7465(0x17e)]?_0x138388[_0x5e7465(0x14b)][0x0]:null:_0x1052d2,_0x51ef38=_0x266d83&&_0x55b966?S({'x':_0x55b966['x']-_0x266d83['x'],'y':_0x55b966['y']-_0x266d83['y']}):_0x55b966?S({'x':_0x55b966['x']-_0x1f166c['x'],'y':_0x55b966['y']-_0x1f166c['y']}):_0x266d83?S({'x':_0x1f166c['x']-_0x266d83['x'],'y':_0x1f166c['y']-_0x266d83['y']}):{'x':0x1,'y':0x0},_0x42ad11=_0x266d83&&_0x55b966?Math[_0x5e7465(0x186)](0x32,x(_0x266d83,_0x55b966)/0x4):0x32;return{'in':{'x':_0x1f166c['x']-_0x51ef38['x']*_0x42ad11,'y':_0x1f166c['y']-_0x51ef38['y']*_0x42ad11},'out':{'x':_0x1f166c['x']+_0x51ef38['x']*_0x42ad11,'y':_0x1f166c['y']+_0x51ef38['y']*_0x42ad11}};}function _0x74aa(){const _0x10aef8=['_commandService','Round','pointType','UNIVER_INK_PLUGIN','registerAdapter','push','SolidLine','find','startIndex','function','disposeWithMe','UNIVER_UNKNOWN','height','kind','abs','ratio','smooth','width','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2584cFhafH','createId','8281ZTLGcb','sqrt','3980vDUTBh','closed','constructor','map','OPERATION','color','_configService','132XCFHVP','createCustomShape','max','2199OjhHMH','registerCommand','anchor','_injector','min','free','hypot','30253102JrUnNk','fillColor','ink-centerline-','segmentIndex','beginInkMode','join','ink.config','distance','packageName','out','get','default','decorate','point','#f54a45','round','symbol','right','anchorId','left','slice','311825gULgan','_adapters','norm','1sCJBPj','start','tool','iterator','opacity','toPrimitive','anchors','__ink-preview-anchor__','ink.operation.start','length','setConfig','tolerance','1.0.0-alpha.8','string','add','@univerjs-pro/ink','symmetric','11834450iTcoya','pen','forEach','points','end','top','getOwnPropertyDescriptor','object','corner','version','call','defineProperty','pluginName','14175810zQsfQN','1876596IbRxVI','splice'];_0x74aa=function(){return _0x10aef8;};return _0x74aa();}function M(_0x4c28b9,_0x1ebab0){const _0x122522=_0xc58c;let _0x37fb75=_0x4c28b9[_0x1ebab0],_0x5df398=_0x1ebab0==='in'?_0x122522(0x136):'in',_0x27bc57=_0x4c28b9[_0x5df398];if(_0x37fb75){if(_0x4c28b9[_0x122522(0x168)]===_0x122522(0x155)){_0x4c28b9[_0x5df398]=C(_0x4c28b9,_0x37fb75);return;}_0x4c28b9[_0x122522(0x168)]===_0x122522(0x176)&&(_0x4c28b9[_0x5df398]=C(_0x4c28b9,_0x37fb75,_0x27bc57?x(_0x4c28b9,_0x27bc57):x(_0x4c28b9,_0x37fb75)));}}function ae(_0x17260a,_0x2528f1){const _0x4a98cb=_0xc58c;let _0x118586=y(_0x17260a);return!_0x2528f1||_0x118586[_0x4a98cb(0x17e)]||_0x118586[_0x4a98cb(0x14b)][_0x4a98cb(0x14e)]===0x0||_0x118586[_0x4a98cb(0x14b)][_0x4a98cb(0x16b)]({'id':_0x4a98cb(0x14c),'x':_0x2528f1['x'],'y':_0x2528f1['y'],'pointType':_0x4a98cb(0x15e)}),_0x118586;}function oe(_0x316cfb,_0x60548f={}){const _0x39c1a1=_0xc58c;var _0x4cee48,_0x3a3034;let _0xd72610=Math['max'](0x0,(_0x4cee48=_0x60548f[_0x39c1a1(0x150)])==null?Math[_0x39c1a1(0x186)](0x4,_0x316cfb[_0x39c1a1(0x177)]*0.35):_0x4cee48),_0x35332a=(_0x3a3034=_0x60548f[_0x39c1a1(0x17a)])==null?_0x4d6d45=>_0x39c1a1(0x12f)+_0x4d6d45:_0x3a3034,_0x31b6f2=k(_0x316cfb[_0x39c1a1(0x159)],_0xd72610),_0x4f026f=_0x31b6f2['map']((_0x1bae72,_0x55f8c5)=>({'id':_0x35332a(_0x55f8c5),'x':_0x1bae72['x'],'y':_0x1bae72['y'],'pointType':'free'}));for(let _0xcd46f3=0x0;_0xcd46f3<_0x4f026f[_0x39c1a1(0x14e)]-0x1;_0xcd46f3++)_0x4f026f[_0xcd46f3][_0x39c1a1(0x136)]=ie(_0x31b6f2,_0xcd46f3),_0x4f026f[_0xcd46f3+0x1]['in']=A(_0x31b6f2,_0xcd46f3+0x1);return{'kind':_0x39c1a1(0x157),'closed':!0x1,'anchors':_0x4f026f};}function se(_0x5e0ef8,_0x1f4627,_0x1329c8){const _0x3eeeff=_0xc58c;let _0x5e88ca=null,_0x13391b=[_0x3eeeff(0x189),'in',_0x3eeeff(0x136)];return _0x5e0ef8['anchors'][_0x3eeeff(0x158)]((_0x5db0d2,_0x52462f)=>{_0x13391b['forEach'](_0x38e48d=>{const _0x1ba6d0=_0xc58c;if(!E(_0x5e0ef8,_0x52462f,_0x38e48d))return;let _0xfe324d=te(_0x5db0d2,_0x38e48d);if(!_0xfe324d)return;let _0x52fba5=x(_0x1f4627,_0xfe324d);_0x52fba5>_0x1329c8||_0x5e88ca&&_0x52fba5>=_0x5e88ca[_0x1ba6d0(0x134)]||(_0x5e88ca={'handle':{'kind':_0x38e48d,'anchorId':_0x5db0d2['id']},'point':_(_0xfe324d),'distance':_0x52fba5});});}),_0x5e88ca;}function ce(_0x4cf40b,_0x3d7f7d,_0x50b4bc){const _0x161bd4=_0xc58c;let _0x2112dd=null,_0x35deb7=_0x4cf40b[_0x161bd4(0x17e)]?_0x4cf40b[_0x161bd4(0x14b)][_0x161bd4(0x14e)]:Math[_0x161bd4(0x186)](0x0,_0x4cf40b['anchors'][_0x161bd4(0x14e)]-0x1);for(let _0x1985a4=0x0;_0x1985a4<_0x35deb7;_0x1985a4++){let _0x3b48c8=T(_0x4cf40b,_0x1985a4);if(!_0x3b48c8)continue;let _0x334b52=D(_0x3b48c8,0x0);for(let _0x5217b7=0x1;_0x5217b7<=0x20;_0x5217b7++){let _0x34591b=D(_0x3b48c8,_0x5217b7/0x20),_0x1bd843=O(_0x3d7f7d,_0x334b52,_0x34591b),_0x547dc9=(_0x5217b7-0x1+_0x1bd843[_0x161bd4(0x175)])/0x20;(!_0x2112dd||_0x1bd843[_0x161bd4(0x134)]<_0x2112dd[_0x161bd4(0x134)])&&(_0x2112dd={'segmentIndex':_0x1985a4,'t':_0x547dc9,'point':_0x1bd843[_0x161bd4(0x13a)],'distance':_0x1bd843[_0x161bd4(0x134)]}),_0x334b52=_0x34591b;}}return _0x2112dd&&_0x2112dd['distance']<=_0x50b4bc?_0x2112dd:null;}function le(_0x211127,_0x288c52,_0x380185){const _0x38b28f=_0xc58c;let _0x4993ad=y(_0x211127),_0x940ab=w(_0x4993ad,_0x288c52[_0x38b28f(0x130)]),_0x2cf1a9=T(_0x4993ad,_0x288c52[_0x38b28f(0x130)]);if(!_0x940ab||!_0x2cf1a9)return _0x4993ad;let _0x3eacee=ne(_0x2cf1a9,Math[_0x38b28f(0x186)](0x0,Math[_0x38b28f(0x18b)](0x1,_0x288c52['t']))),_0x2e631b={'id':_0x380185(),'x':_0x3eacee[_0x38b28f(0x140)][0x3]['x'],'y':_0x3eacee[_0x38b28f(0x140)][0x3]['y'],'in':_(_0x3eacee[_0x38b28f(0x140)][0x2]),'out':_(_0x3eacee[_0x38b28f(0x13e)][0x1]),'pointType':_0x38b28f(0x18c)};return _0x4993ad[_0x38b28f(0x14b)][_0x940ab[_0x38b28f(0x16e)]][_0x38b28f(0x136)]=_(_0x3eacee[_0x38b28f(0x140)][0x1]),_0x4993ad[_0x38b28f(0x14b)][_0x940ab['endIndex']]['in']=_(_0x3eacee[_0x38b28f(0x13e)][0x2]),_0x4993ad[_0x38b28f(0x14b)][_0x38b28f(0x165)](_0x940ab[_0x38b28f(0x16e)]+0x1,0x0,_0x2e631b),_0x4993ad;}function ue(_0x375b85,_0x19ffae){const _0x3f8ef5=_0xc58c;let _0x48e670=y(_0x375b85);return _0x48e670[_0x3f8ef5(0x14b)]=_0x48e670[_0x3f8ef5(0x14b)]['filter'](_0x520a12=>_0x520a12['id']!==_0x19ffae),_0x48e670[_0x3f8ef5(0x17e)]&&_0x48e670[_0x3f8ef5(0x14b)][_0x3f8ef5(0x14e)]<0x3&&(_0x48e670['closed']=!0x1),_0x48e670;}function N(_0x5e0b36,_0x52fc57,_0x18de7b){const _0x3e0d91=_0xc58c;let _0x6aefad=y(_0x5e0b36),_0x4757af=_0x6aefad[_0x3e0d91(0x14b)]['findIndex'](_0x409e16=>_0x409e16['id']===_0x52fc57),_0x4ab263=_0x6aefad[_0x3e0d91(0x14b)][_0x4757af];if(!_0x4ab263)return _0x6aefad;if(_0x4ab263['pointType']=_0x18de7b,_0x18de7b===_0x3e0d91(0x15e))return delete _0x4ab263['in'],delete _0x4ab263[_0x3e0d91(0x136)],_0x6aefad;let _0x17e44c=j(_0x6aefad,_0x4757af);if(_0x4ab263['in']=_0x4ab263['in']?_(_0x4ab263['in']):_0x17e44c['in'],_0x4ab263[_0x3e0d91(0x136)]=_0x4ab263[_0x3e0d91(0x136)]?_(_0x4ab263[_0x3e0d91(0x136)]):_0x17e44c['out'],_0x18de7b===_0x3e0d91(0x155)){let _0x263efa=Math['max'](x(_0x4ab263,_0x4ab263['in']),x(_0x4ab263,_0x4ab263['out']),0x32),_0x409e7b=S({'x':_0x4ab263[_0x3e0d91(0x136)]['x']-_0x4ab263['x'],'y':_0x4ab263[_0x3e0d91(0x136)]['y']-_0x4ab263['y']});_0x4ab263[_0x3e0d91(0x136)]={'x':_0x4ab263['x']+_0x409e7b['x']*_0x263efa,'y':_0x4ab263['y']+_0x409e7b['y']*_0x263efa},_0x4ab263['in']={'x':_0x4ab263['x']-_0x409e7b['x']*_0x263efa,'y':_0x4ab263['y']-_0x409e7b['y']*_0x263efa};}else _0x18de7b===_0x3e0d91(0x176)&&M(_0x4ab263,_0x3e0d91(0x136));return _0x6aefad;}function P(_0x31727b,_0x54b6cb){const _0x165c3f=_0xc58c;var _0x33033f;let _0x290fab=_0x31727b[_0x165c3f(0x14b)][_0x165c3f(0x16d)](_0x4d50d7=>_0x4d50d7['id']===_0x54b6cb),_0x313e32=(_0x33033f=_0x290fab==null?void 0x0:_0x290fab[_0x165c3f(0x168)])==null?_0x165c3f(0x15e):_0x33033f;return N(_0x31727b,_0x54b6cb,_0x313e32==='corner'?_0x165c3f(0x176):_0x313e32==='smooth'?_0x165c3f(0x155):_0x313e32==='symmetric'?_0x165c3f(0x18c):_0x165c3f(0x15e));}function F(_0x121f16,_0x52a303,_0x41cdf6){const _0x442693=_0xc58c;let _0x1e4562=y(_0x121f16),_0x28b743=_0x1e4562[_0x442693(0x14b)][_0x442693(0x16d)](_0x122925=>_0x122925['id']===_0x52a303[_0x442693(0x13f)]);if(!_0x28b743)return _0x1e4562;if(_0x52a303[_0x442693(0x173)]==='anchor'){let _0x344e90={'x':_0x41cdf6['x']-_0x28b743['x'],'y':_0x41cdf6['y']-_0x28b743['y']};return _0x28b743['x']=_0x41cdf6['x'],_0x28b743['y']=_0x41cdf6['y'],_0x28b743['in']&&(_0x28b743['in']={'x':_0x28b743['in']['x']+_0x344e90['x'],'y':_0x28b743['in']['y']+_0x344e90['y']}),_0x28b743[_0x442693(0x136)]&&(_0x28b743[_0x442693(0x136)]={'x':_0x28b743[_0x442693(0x136)]['x']+_0x344e90['x'],'y':_0x28b743[_0x442693(0x136)]['y']+_0x344e90['y']}),_0x1e4562;}return _0x28b743[_0x52a303['kind']]=_(_0x41cdf6),_0x28b743[_0x442693(0x168)]===_0x442693(0x15e)&&(_0x28b743[_0x442693(0x168)]='free'),M(_0x28b743,_0x52a303[_0x442693(0x173)]),_0x1e4562;}const I=1e-9;function L(_0x4dccd8){let _0x3529ea=Math['round'](_0x4dccd8*0x2710)/0x2710;return Object['is'](_0x3529ea,-0x0)?'0':String(_0x3529ea);}function R(_0x16af44){return L(_0x16af44['x'])+'\x20'+L(_0x16af44['y']);}function z(_0x15c7fc,_0x2eccd0){return{'x':_0x15c7fc['x']-_0x2eccd0['x'],'y':_0x15c7fc['y']-_0x2eccd0['y']};}function B(_0x1d2ed9,_0x42747b,_0x4eea84,_0x25d6f6,_0x6590c5){let _0x621540=0x1-_0x6590c5;return{'x':_0x621540*_0x621540*_0x621540*_0x1d2ed9['x']+0x3*_0x621540*_0x621540*_0x6590c5*_0x42747b['x']+0x3*_0x621540*_0x6590c5*_0x6590c5*_0x4eea84['x']+_0x6590c5*_0x6590c5*_0x6590c5*_0x25d6f6['x'],'y':_0x621540*_0x621540*_0x621540*_0x1d2ed9['y']+0x3*_0x621540*_0x621540*_0x6590c5*_0x42747b['y']+0x3*_0x621540*_0x6590c5*_0x6590c5*_0x4eea84['y']+_0x6590c5*_0x6590c5*_0x6590c5*_0x25d6f6['y']};}function V(_0x4dba68,_0x5d2d39,_0x3fe31,_0x147ce2){const _0x454859=_0xc58c;let _0x5a0b4c=-_0x4dba68+0x3*_0x5d2d39-0x3*_0x3fe31+_0x147ce2,_0x11ece5=0x3*_0x4dba68-0x6*_0x5d2d39+0x3*_0x3fe31,_0x53f88f=-0x3*_0x4dba68+0x3*_0x5d2d39,_0x45a9df=[];if(Math[_0x454859(0x174)](_0x5a0b4c)<I){if(Math[_0x454859(0x174)](_0x11ece5)<I)return _0x45a9df;let _0x2534f3=-_0x53f88f/(0x2*_0x11ece5);return _0x2534f3>0x0&&_0x2534f3<0x1&&_0x45a9df['push'](_0x2534f3),_0x45a9df;}let _0x372ab6=_0x11ece5*_0x11ece5-0x3*_0x5a0b4c*_0x53f88f;if(_0x372ab6<0x0)return _0x45a9df;let _0x6d7590=Math[_0x454859(0x17c)](Math['max'](0x0,_0x372ab6)),_0x1c3c27=(-_0x11ece5+_0x6d7590)/(0x3*_0x5a0b4c),_0x1a9298=(-_0x11ece5-_0x6d7590)/(0x3*_0x5a0b4c);return _0x1c3c27>0x0&&_0x1c3c27<0x1&&_0x45a9df['push'](_0x1c3c27),_0x1a9298>0x0&&_0x1a9298<0x1&&Math[_0x454859(0x174)](_0x1a9298-_0x1c3c27)>I&&_0x45a9df[_0x454859(0x16b)](_0x1a9298),_0x45a9df;}function _0xc58c(_0x41e90d,_0x1043a7){_0x41e90d=_0x41e90d-0x12d;const _0x74aaf2=_0x74aa();let _0xc58c62=_0x74aaf2[_0x41e90d];return _0xc58c62;}function H(_0x5935d3,_0x53f6fa,_0x355587,_0x48d2ea,_0x398387){const _0x66d754=_0xc58c;_0x5935d3[_0x66d754(0x16b)](_0x53f6fa,_0x398387),new Set([...V(_0x53f6fa['x'],_0x355587['x'],_0x48d2ea['x'],_0x398387['x']),...V(_0x53f6fa['y'],_0x355587['y'],_0x48d2ea['y'],_0x398387['y'])])[_0x66d754(0x158)](_0x105d4a=>{const _0x37d0c2=_0x66d754;_0x5935d3[_0x37d0c2(0x16b)](B(_0x53f6fa,_0x355587,_0x48d2ea,_0x398387,_0x105d4a));});}function U(_0x2c6357){const _0x12cde8=_0xc58c;let _0x534a04=_0x2c6357[_0x12cde8(0x14b)];if(_0x534a04[_0x12cde8(0x14e)]<=0x1)return _0x534a04;let _0x17054e=[];for(let _0x5d5640=0x1;_0x5d5640<_0x534a04['length'];_0x5d5640++){var _0x1f8cfa,_0x48391e;let _0x3ca47d=_0x534a04[_0x5d5640-0x1],_0x4a61db=_0x534a04[_0x5d5640];H(_0x17054e,_0x3ca47d,(_0x1f8cfa=_0x3ca47d['out'])==null?_0x3ca47d:_0x1f8cfa,(_0x48391e=_0x4a61db['in'])==null?_0x4a61db:_0x48391e,_0x4a61db);}if(_0x2c6357['closed']&&_0x534a04[_0x12cde8(0x14e)]>0x1){var _0x2dc982,_0x4f726d;let _0x1513fe=_0x534a04[_0x534a04[_0x12cde8(0x14e)]-0x1],_0x458fb5=_0x534a04[0x0];H(_0x17054e,_0x1513fe,(_0x2dc982=_0x1513fe[_0x12cde8(0x136)])==null?_0x1513fe:_0x2dc982,(_0x4f726d=_0x458fb5['in'])==null?_0x458fb5:_0x4f726d,_0x458fb5);}return _0x17054e;}function de(_0x3d585f){const _0x1f5c51=_0xc58c;let _0x4de0a7=_0x3d585f[_0x1f5c51(0x159)];if(_0x4de0a7[_0x1f5c51(0x14e)]<=0x1)return _0x4de0a7;let _0x4eef24=[];for(let _0x4807d0=0x0;_0x4807d0<_0x4de0a7[_0x1f5c51(0x14e)]-0x1;_0x4807d0++){var _0x470852,_0x363ff8;let _0x34bf1f=_0x4de0a7[_0x4807d0],_0x5753cb=_0x4de0a7[_0x4807d0+0x1],_0x29d63a=(_0x470852=_0x4de0a7[_0x4807d0-0x1])==null?_0x34bf1f:_0x470852,_0x5da5ec=(_0x363ff8=_0x4de0a7[_0x4807d0+0x2])==null?_0x5753cb:_0x363ff8;H(_0x4eef24,_0x34bf1f,{'x':_0x34bf1f['x']+(_0x5753cb['x']-_0x29d63a['x'])/0x6,'y':_0x34bf1f['y']+(_0x5753cb['y']-_0x29d63a['y'])/0x6},{'x':_0x5753cb['x']-(_0x5da5ec['x']-_0x34bf1f['x'])/0x6,'y':_0x5753cb['y']-(_0x5da5ec['y']-_0x34bf1f['y'])/0x6},_0x5753cb);}return _0x4eef24;}function fe(_0x29a319){const _0x44d2e5=_0xc58c;return _0x29a319[_0x44d2e5(0x173)]===_0x44d2e5(0x157)?U(_0x29a319):de(_0x29a319);}function W(_0x44e055){const _0x4e2f13=_0xc58c;let _0x23a694=Math[_0x4e2f13(0x13c)](_0x44e055*0x2710)/0x2710;return Object['is'](_0x23a694,-0x0)?0x0:_0x23a694;}function G(_0x232735){const _0x18aac0=_0xc58c;let _0x3ab732=fe(_0x232735);if(_0x3ab732[_0x18aac0(0x14e)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x1b5f4b=Math[_0x18aac0(0x18b)](..._0x3ab732[_0x18aac0(0x180)](_0xf0d56d=>_0xf0d56d['x'])),_0x1c3534=Math[_0x18aac0(0x18b)](..._0x3ab732[_0x18aac0(0x180)](_0x2688d3=>_0x2688d3['y'])),_0x373614=Math[_0x18aac0(0x186)](..._0x3ab732['map'](_0x356e74=>_0x356e74['x'])),_0x15e6fc=Math[_0x18aac0(0x186)](..._0x3ab732[_0x18aac0(0x180)](_0x3cdf71=>_0x3cdf71['y']));return{'left':W(_0x1b5f4b),'top':W(_0x1c3534),'width':W(Math[_0x18aac0(0x186)](0x1,_0x373614-_0x1b5f4b)),'height':W(Math[_0x18aac0(0x186)](0x1,_0x15e6fc-_0x1c3534))};}function pe(_0x3cc005,_0x537c2b){const _0x218f68=_0xc58c;let _0x51208c=_0x3cc005[_0x218f68(0x14b)];if(_0x51208c['length']===0x0)return'';let _0x9f2a9=['M\x20'+R(z(_0x51208c[0x0],_0x537c2b))];for(let _0x1b40d7=0x1;_0x1b40d7<_0x51208c[_0x218f68(0x14e)];_0x1b40d7++){var _0x1397c7,_0x45f063;let _0x24ee9e=_0x51208c[_0x1b40d7-0x1],_0x9e013e=_0x51208c[_0x1b40d7],_0x21f76e=(_0x1397c7=_0x24ee9e['out'])==null?_0x24ee9e:_0x1397c7,_0x59cf44=(_0x45f063=_0x9e013e['in'])==null?_0x9e013e:_0x45f063;_0x9f2a9[_0x218f68(0x16b)]('C\x20'+R(z(_0x21f76e,_0x537c2b))+'\x20'+R(z(_0x59cf44,_0x537c2b))+'\x20'+R(z(_0x9e013e,_0x537c2b)));}if(_0x3cc005['closed']&&_0x51208c['length']>0x1){var _0x335207,_0x271a81;let _0x2fef1e=_0x51208c[_0x51208c['length']-0x1],_0x3422e3=_0x51208c[0x0],_0x4db695=(_0x335207=_0x2fef1e[_0x218f68(0x136)])==null?_0x2fef1e:_0x335207,_0x11784b=(_0x271a81=_0x3422e3['in'])==null?_0x3422e3:_0x271a81;_0x9f2a9[_0x218f68(0x16b)]('C\x20'+R(z(_0x4db695,_0x537c2b))+'\x20'+R(z(_0x11784b,_0x537c2b))+'\x20'+R(z(_0x3422e3,_0x537c2b))),_0x9f2a9[_0x218f68(0x16b)]('Z');}return _0x9f2a9[_0x218f68(0x132)]('\x20');}function me(_0x10bf5d,_0x62a0c0){const _0xf234ae=_0xc58c;let _0x798c1e=_0x10bf5d['points'][_0xf234ae(0x180)](_0x2ae5cc=>z(_0x2ae5cc,_0x62a0c0));if(_0x798c1e['length']===0x0)return'';if(_0x798c1e[_0xf234ae(0x14e)]===0x1)return'M\x20'+R(_0x798c1e[0x0]);let _0x27cac0=['M\x20'+R(_0x798c1e[0x0])];for(let _0x431142=0x0;_0x431142<_0x798c1e[_0xf234ae(0x14e)]-0x1;_0x431142++){var _0x283a2b,_0x38b0f0;let _0x32a746=_0x798c1e[_0x431142],_0x44c319=_0x798c1e[_0x431142+0x1],_0x9eb338=(_0x283a2b=_0x798c1e[_0x431142-0x1])==null?_0x32a746:_0x283a2b,_0x447754=(_0x38b0f0=_0x798c1e[_0x431142+0x2])==null?_0x44c319:_0x38b0f0,_0x1a7d5c={'x':_0x32a746['x']+(_0x44c319['x']-_0x9eb338['x'])/0x6,'y':_0x32a746['y']+(_0x44c319['y']-_0x9eb338['y'])/0x6},_0x5917f4={'x':_0x44c319['x']-(_0x447754['x']-_0x32a746['x'])/0x6,'y':_0x44c319['y']-(_0x447754['y']-_0x32a746['y'])/0x6};_0x27cac0[_0xf234ae(0x16b)]('C\x20'+R(_0x1a7d5c)+'\x20'+R(_0x5917f4)+'\x20'+R(_0x44c319));}return _0x27cac0['join']('\x20');}function he(_0x1d4649,_0x4ef855){const _0x35defd=_0xc58c;return _0x1d4649[_0x35defd(0x173)]==='pen'?pe(_0x1d4649,_0x4ef855):me(_0x1d4649,_0x4ef855);}function ge(_0xc272c6,_0x2f17e4){const _0x110c81=_0xc58c;return _0x2f17e4!=null&&_0x2f17e4[_0x110c81(0x182)]?_0x2f17e4[_0x110c81(0x182)]:_0xc272c6[_0x110c81(0x173)]===_0x110c81(0x157)?_0x110c81(0x13b):_0xc272c6['color'];}function _e(_0xe14770,_0x52da6e){const _0x960a65=_0xc58c;return(_0x52da6e==null?void 0x0:_0x52da6e['width'])===void 0x0?_0xe14770[_0x960a65(0x173)]===_0x960a65(0x157)?0x2:_0xe14770[_0x960a65(0x177)]:_0x52da6e[_0x960a65(0x177)];}function ve(_0x74adda,_0x3c1333){const _0x1a5333=_0xc58c;return(_0x3c1333==null?void 0x0:_0x3c1333['opacity'])===void 0x0?_0x74adda[_0x1a5333(0x173)]===_0x1a5333(0x157)?void 0x0:_0x74adda[_0x1a5333(0x149)]:_0x3c1333['opacity'];}function ye(_0x209983,_0x275e03){const _0x109b09=_0xc58c;let _0x170c7e=G(_0x209983),_0x45685a=he(_0x209983,{'x':_0x170c7e[_0x109b09(0x140)],'y':_0x170c7e[_0x109b09(0x15b)]}),_0x42f680=_0x209983[_0x109b09(0x173)]===_0x109b09(0x157)&&_0x209983[_0x109b09(0x17e)],_0x1f3dff=_0x275e03==null?void 0x0:_0x275e03[_0x109b09(0x12e)];return{'shapeType':_0x2890c7['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x170c7e[_0x109b09(0x177)],'h':_0x170c7e[_0x109b09(0x172)],'fill':_0x42f680?_0x109b09(0x144):'none','stroke':!0x0,'data':_0x45685a,'dataArray':be(_0x209983,{'x':_0x170c7e[_0x109b09(0x140)],'y':_0x170c7e[_0x109b09(0x15b)]})}]},'fill':_0x42f680&&_0x1f3dff?{'color':_0x1f3dff,'fillType':_0x41b33d['SolidFill']}:{'fillType':_0x41b33d['NoFill']},'stroke':{'color':ge(_0x209983,_0x275e03),'width':_e(_0x209983,_0x275e03),'opacity':ve(_0x209983,_0x275e03),'lineStrokeType':_0x1d6f28[_0x109b09(0x16c)],'capType':_0x4f2531['Round'],'lineJoinType':_0x477814[_0x109b09(0x167)]}};}function K(_0x48d899,_0x4eebc1){return{'x':_0x48d899['x']-_0x4eebc1['x'],'y':_0x48d899['y']-_0x4eebc1['y']};}function be(_0x5e2ea4,_0x4667bb){const _0x250f07=_0xc58c;if(_0x5e2ea4[_0x250f07(0x173)]==='pen'){let _0x4d3939=_0x5e2ea4[_0x250f07(0x14b)];if(_0x4d3939[_0x250f07(0x14e)]===0x0)return[];let _0x397964=K(_0x4d3939[0x0],_0x4667bb),_0x598f2c=[{'command':'M','points':[_0x397964['x'],_0x397964['y']]}];for(let _0x5e14c6=0x1;_0x5e14c6<_0x4d3939['length'];_0x5e14c6++){var _0x247d33,_0x588bbf;let _0x591f53=_0x4d3939[_0x5e14c6-0x1],_0x5e1ab9=_0x4d3939[_0x5e14c6],_0x34e972=K((_0x247d33=_0x591f53[_0x250f07(0x136)])==null?_0x591f53:_0x247d33,_0x4667bb),_0x218ab5=K((_0x588bbf=_0x5e1ab9['in'])==null?_0x5e1ab9:_0x588bbf,_0x4667bb),_0x6c4527=K(_0x5e1ab9,_0x4667bb);_0x598f2c[_0x250f07(0x16b)]({'command':'C','points':[_0x34e972['x'],_0x34e972['y'],_0x218ab5['x'],_0x218ab5['y'],_0x6c4527['x'],_0x6c4527['y']]});}if(_0x5e2ea4[_0x250f07(0x17e)]&&_0x4d3939[_0x250f07(0x14e)]>0x1){var _0x46804d,_0x16e2ae;let _0x223380=_0x4d3939[_0x4d3939[_0x250f07(0x14e)]-0x1],_0x2ae56f=_0x4d3939[0x0],_0x2f815a=K((_0x46804d=_0x223380[_0x250f07(0x136)])==null?_0x223380:_0x46804d,_0x4667bb),_0x5232ea=K((_0x16e2ae=_0x2ae56f['in'])==null?_0x2ae56f:_0x16e2ae,_0x4667bb),_0x41abd5=K(_0x2ae56f,_0x4667bb);_0x598f2c[_0x250f07(0x16b)]({'command':'C','points':[_0x2f815a['x'],_0x2f815a['y'],_0x5232ea['x'],_0x5232ea['y'],_0x41abd5['x'],_0x41abd5['y']]}),_0x598f2c['push']({'command':'z','points':[]});}return _0x598f2c;}let _0x50aeeb=_0x5e2ea4['points'][_0x250f07(0x180)](_0x49d034=>K(_0x49d034,_0x4667bb));if(_0x50aeeb[_0x250f07(0x14e)]===0x0)return[];let _0x58bfa5=[{'command':'M','points':[_0x50aeeb[0x0]['x'],_0x50aeeb[0x0]['y']]}];for(let _0x1d078b=0x0;_0x1d078b<_0x50aeeb['length']-0x1;_0x1d078b++){var _0x35a91a,_0x3c561a;let _0x49ccca=_0x50aeeb[_0x1d078b],_0x168e9f=_0x50aeeb[_0x1d078b+0x1],_0x3221ff=(_0x35a91a=_0x50aeeb[_0x1d078b-0x1])==null?_0x49ccca:_0x35a91a,_0x561cd1=(_0x3c561a=_0x50aeeb[_0x1d078b+0x2])==null?_0x168e9f:_0x3c561a,_0x10de3d={'x':_0x49ccca['x']+(_0x168e9f['x']-_0x3221ff['x'])/0x6,'y':_0x49ccca['y']+(_0x168e9f['y']-_0x3221ff['y'])/0x6},_0x52816e={'x':_0x168e9f['x']-(_0x561cd1['x']-_0x49ccca['x'])/0x6,'y':_0x168e9f['y']-(_0x561cd1['y']-_0x49ccca['y'])/0x6};_0x58bfa5[_0x250f07(0x16b)]({'command':'C','points':[_0x10de3d['x'],_0x10de3d['y'],_0x52816e['x'],_0x52816e['y'],_0x168e9f['x'],_0x168e9f['y']]});}return _0x58bfa5;}function xe(_0x10c636){const _0x517bd3=_0xc58c;var _0x165a54;let {model:_0x58a44f,sourceModel:_0x3c809a=_0x58a44f,style:_0x4d880f}=_0x10c636,_0x5e11dd=(_0x165a54=_0x10c636[_0x517bd3(0x147)])==null?_0x58a44f[_0x517bd3(0x173)]:_0x165a54,_0xbe90de=G(_0x58a44f),_0x25d647=_0x58a44f['kind']===_0x517bd3(0x157)&&_0x5e11dd!=='pen'?_0x58a44f:void 0x0;return{'transform':{..._0xbe90de,'rotation':0x0},'shapeData':ye(_0x58a44f,_0x4d880f),'ink':{'version':0x1,'tool':_0x5e11dd,'sourceModel':_0x3c809a,..._0x25d647?{'editModel':_0x25d647}:{},'normalizedBounds':_0xbe90de}};}var Se=_0x3265aa(0x154),Ce=_0x3265aa(0x151);function q(_0x5e8d18){'@babel/helpers - typeof';const _0x473489=_0x3265aa;return q=typeof Symbol=='function'&&typeof Symbol[_0x473489(0x148)]=='symbol'?function(_0x5baf79){return typeof _0x5baf79;}:function(_0xf44627){const _0x2218ac=_0x473489;return _0xf44627&&typeof Symbol==_0x2218ac(0x16f)&&_0xf44627[_0x2218ac(0x17f)]===Symbol&&_0xf44627!==Symbol['prototype']?_0x2218ac(0x13d):typeof _0xf44627;},q(_0x5e8d18);}function we(_0x3e3f63,_0x2103e0){const _0x518974=_0x3265aa;if(q(_0x3e3f63)!=_0x518974(0x15d)||!_0x3e3f63)return _0x3e3f63;var _0x6f6e3d=_0x3e3f63[Symbol[_0x518974(0x14a)]];if(_0x6f6e3d!==void 0x0){var _0x21bd8b=_0x6f6e3d[_0x518974(0x160)](_0x3e3f63,_0x2103e0||_0x518974(0x138));if(q(_0x21bd8b)!=_0x518974(0x15d))return _0x21bd8b;throw TypeError(_0x518974(0x178));}return(_0x2103e0===_0x518974(0x152)?String:Number)(_0x3e3f63);}function J(_0x3c90e2){var _0x2004de=we(_0x3c90e2,'string');return q(_0x2004de)=='symbol'?_0x2004de:_0x2004de+'';}function Y(_0x3678ec,_0x48d004,_0x4b775f){const _0x14b688=_0x3265aa;return(_0x48d004=J(_0x48d004))in _0x3678ec?Object[_0x14b688(0x161)](_0x3678ec,_0x48d004,{'value':_0x4b775f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3678ec[_0x48d004]=_0x4b775f,_0x3678ec;}const X=_0x17208f('ink.host-adapter.service');var Te=class{constructor(){const _0x2bfe7d=_0x3265aa;Y(this,_0x2bfe7d(0x143),[]);}[_0x3265aa(0x16a)](_0x4d9cec){const _0x3d275f=_0x3265aa;return this[_0x3d275f(0x143)][_0x3d275f(0x16b)](_0x4d9cec),_0x47bed1(()=>{const _0x36e725=_0x3d275f;let _0x4a1ad1=this[_0x36e725(0x143)]['indexOf'](_0x4d9cec);_0x4a1ad1>=0x0&&this[_0x36e725(0x143)][_0x36e725(0x165)](_0x4a1ad1,0x1);});}['beginInkMode'](_0x3836a9){const _0x522f3a=_0x3265aa;for(let _0x7d843 of this[_0x522f3a(0x143)])if(_0x7d843['beginInkMode'](_0x3836a9))return!0x0;return!0x1;}async[_0x3265aa(0x185)](_0x149d9b){const _0x3495a1=_0x3265aa;for(let _0x4d9b4c of this['_adapters'])if(_0x4d9b4c[_0x3495a1(0x185)]&&await _0x4d9b4c[_0x3495a1(0x185)](_0x149d9b))return!0x0;return!0x1;}};const Ee={'id':_0x3265aa(0x14d),'type':_0x26993d[_0x3265aa(0x181)],'handler':(_0x394c13,_0x3401b3)=>_0x3401b3?_0x394c13[_0x3265aa(0x137)](X)[_0x3265aa(0x131)](_0x3401b3):!0x1},Z={};function Q(_0x2b83c6,_0x379774){return function(_0x6dbac4,_0x5a1928){_0x379774(_0x6dbac4,_0x5a1928,_0x2b83c6);};}function De(_0x7d02a9,_0x2792fd,_0xf9c941,_0x43ea04){const _0x35ba43=_0x3265aa;var _0x7610ec=arguments['length'],_0x30b671=_0x7610ec<0x3?_0x2792fd:_0x43ea04===null?_0x43ea04=Object[_0x35ba43(0x15c)](_0x2792fd,_0xf9c941):_0x43ea04,_0x385ad7;if(typeof Reflect==_0x35ba43(0x15d)&&typeof Reflect[_0x35ba43(0x139)]=='function')_0x30b671=Reflect[_0x35ba43(0x139)](_0x7d02a9,_0x2792fd,_0xf9c941,_0x43ea04);else{for(var _0x8d3f90=_0x7d02a9[_0x35ba43(0x14e)]-0x1;_0x8d3f90>=0x0;_0x8d3f90--)(_0x385ad7=_0x7d02a9[_0x8d3f90])&&(_0x30b671=(_0x7610ec<0x3?_0x385ad7(_0x30b671):_0x7610ec>0x3?_0x385ad7(_0x2792fd,_0xf9c941,_0x30b671):_0x385ad7(_0x2792fd,_0xf9c941))||_0x30b671);}return _0x7610ec>0x3&&_0x30b671&&Object[_0x35ba43(0x161)](_0x2792fd,_0xf9c941,_0x30b671),_0x30b671;}let $=class extends _0x2d049f{constructor(_0x1c4ce1=Z,_0x57ae30,_0x58bd46,_0x5764f6){const _0x5b9aa0=_0x3265aa;super(),this['_config']=_0x1c4ce1,this[_0x5b9aa0(0x18a)]=_0x57ae30,this[_0x5b9aa0(0x166)]=_0x58bd46,this[_0x5b9aa0(0x183)]=_0x5764f6;let {..._0xff97fa}=_0x5dbb94({},Z,this['_config']);this['_configService'][_0x5b9aa0(0x14f)](_0x5b9aa0(0x133),_0xff97fa);}['onStarting'](){const _0x3c0b8e=_0x3265aa;[[X,{'useClass':Te}]][_0x3c0b8e(0x158)](_0x5ba4fe=>this[_0x3c0b8e(0x18a)][_0x3c0b8e(0x153)](_0x5ba4fe)),this[_0x3c0b8e(0x170)](this['_commandService'][_0x3c0b8e(0x188)](Ee));}};Y($,_0x3265aa(0x162),_0x3265aa(0x169)),Y($,_0x3265aa(0x135),Se),Y($,_0x3265aa(0x15f),Ce),Y($,'type',_0x4da895[_0x3265aa(0x171)]),$=De([_0x523a19(_0x361d04),Q(0x1,_0x1ef38a(_0x4101f2)),Q(0x2,_0x22c5ef),Q(0x3,_0x413199)],$);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 _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};
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3f11(){const _0x5331f8=['opacity','UniverProBoards','BoardInkPointType','@univerjs-pro/boards','@univerjs/core','parentId','transform','highlighter','type','every','trim','6079581xlcooU','sourceModel','filter','Module','@univerjs-pro/boards/facade','UniverProBoardsFacade','UniverProInk','pen','isFinite','extend','shapeData','insertInk','1419232nIcnvB','16956KndMkw','closed','10SRplJo','BoardElementType','UniverCoreFacade','anchor','object','tool','style','FEnum','has','106599RgFxdI','Shape','deepClone','@univerjs/core/facade','24hUYplY','255378JKXpxi','BoardInkTool','model','width','434882dWJXex','out','generateRandomId','custom','length','function','531387ksIVIp','FBoard','Tools','anchors','isArray','laneId','ink','pressure','BoardInkHandleKind','UniverProInkFacade','getInks','corner'];_0x3f11=function(){return _0x5331f8;};return _0x3f11();}function _0x5ef5(_0xec3cc1,_0x5af3f0){_0xec3cc1=_0xec3cc1-0x11a;const _0x3f11dd=_0x3f11();let _0x5ef580=_0x3f11dd[_0xec3cc1];return _0x5ef580;}(function(_0xa387d7,_0x589b4b){const _0x536d1d=_0x5ef5,_0x3bfc92=_0xa387d7();while(!![]){try{const _0x181948=-parseInt(_0x536d1d(0x152))/0x1+-parseInt(_0x536d1d(0x148))/0x2+-parseInt(_0x536d1d(0x143))/0x3+parseInt(_0x536d1d(0x137))/0x4+-parseInt(_0x536d1d(0x13a))/0x5*(parseInt(_0x536d1d(0x138))/0x6)+parseInt(_0x536d1d(0x14c))/0x7*(parseInt(_0x536d1d(0x147))/0x8)+parseInt(_0x536d1d(0x12b))/0x9;if(_0x181948===_0x589b4b)break;else _0x3bfc92['push'](_0x3bfc92['shift']());}catch(_0x163972){_0x3bfc92['push'](_0x3bfc92['shift']());}}}(_0x3f11,0x7e152),function(_0x1378da,_0x23939c){const _0x2875be=_0x5ef5;typeof exports==_0x2875be(0x13e)&&typeof module<'u'?_0x23939c(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x2875be(0x151)&&define['amd']?define(['exports',_0x2875be(0x123),_0x2875be(0x12f),'@univerjs-pro/ink',_0x2875be(0x124),_0x2875be(0x146)],_0x23939c):(_0x1378da=typeof globalThis<'u'?globalThis:_0x1378da||self,_0x23939c(_0x1378da[_0x2875be(0x11d)]={},_0x1378da[_0x2875be(0x121)],_0x1378da[_0x2875be(0x130)],_0x1378da[_0x2875be(0x131)],_0x1378da['UniverCore'],_0x1378da[_0x2875be(0x13c)]));}(this,function(_0x3c32fe,_0x3f6f60,_0x580689,_0x42172e,_0x23d259,_0x19250a){const _0x598bd2=_0x5ef5;Object['defineProperty'](_0x3c32fe,Symbol['toStringTag'],{'value':_0x598bd2(0x12e)});var _0x3fcfb7=class extends _0x580689[_0x598bd2(0x153)]{[_0x598bd2(0x136)](_0x4b7e6e){let _0xbd591c=_0x6ad96e(_0x4b7e6e);return _0xbd591c&&this['_addElement'](_0xbd591c,{'insertIndex':_0x4b7e6e['insertIndex']})?_0xbd591c:null;}[_0x598bd2(0x11e)](){const _0x5e442f=_0x598bd2;return this['findElements']({'elementType':_0x3f6f60[_0x5e442f(0x13b)][_0x5e442f(0x144)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x5e442f(0x12d)](_0x2957d3);}};function _0x6ad96e(_0x116e1b,_0xfef5d0){const _0xa42001=_0x598bd2;var _0x38e012,_0x1411ea,_0xcba474;if(!_0x2bff30(_0x116e1b[_0xa42001(0x14a)])||_0x116e1b['sourceModel']!==void 0x0&&!_0x2bff30(_0x116e1b[_0xa42001(0x12c)])||!_0x4c7b27(_0x116e1b[_0xa42001(0x140)]))return null;let _0x51a68a=(_0x38e012=_0x116e1b[_0xa42001(0x125)])==null?_0xfef5d0==null?void 0x0:_0xfef5d0['parentId']:_0x38e012,_0x363416=_0x23d259[_0xa42001(0x154)][_0xa42001(0x145)](_0x116e1b[_0xa42001(0x14a)]),_0x17033d=(0x0,_0x42172e['buildInkCustomShapePayload'])({'model':_0x363416,'style':_0x116e1b[_0xa42001(0x140)],'tool':_0x116e1b[_0xa42001(0x13f)],'sourceModel':_0x116e1b[_0xa42001(0x12c)]?_0x23d259['Tools'][_0xa42001(0x145)](_0x116e1b[_0xa42001(0x12c)]):_0x363416}),_0x2e427c=_0x2f2504(_0xfef5d0==null?void 0x0:_0xfef5d0[_0xa42001(0x14f)]);return{'id':(_0x1411ea=(_0xcba474=_0xfef5d0==null?void 0x0:_0xfef5d0['id'])==null?_0x116e1b['id']:_0xcba474)==null?(0x0,_0x23d259[_0xa42001(0x14e)])(0x6):_0x1411ea,'type':_0x3f6f60[_0xa42001(0x13b)][_0xa42001(0x144)],'transform':_0x17033d[_0xa42001(0x126)],'shapeData':_0x17033d[_0xa42001(0x135)],'parentId':_0x51a68a==null?void 0x0:_0x51a68a,'laneId':_0x116e1b[_0xa42001(0x157)]===void 0x0?_0xfef5d0==null?void 0x0:_0xfef5d0[_0xa42001(0x157)]:_0x116e1b[_0xa42001(0x157)],'custom':{..._0x2e427c,'ink':_0x17033d[_0xa42001(0x11a)]}};}function _0x3d58c9(_0x3131ff){const _0x5683c9=_0x598bd2;return Number[_0x5683c9(0x133)](_0x3131ff['x'])&&Number[_0x5683c9(0x133)](_0x3131ff['y']);}function _0x2bff30(_0x61b1c){const _0x4e9541=_0x598bd2;if(_0x61b1c['kind']===_0x4e9541(0x132)){let _0x537095=new Set();return _0x61b1c[_0x4e9541(0x155)][_0x4e9541(0x150)]>=(_0x61b1c[_0x4e9541(0x139)]?0x3:0x2)&&_0x61b1c[_0x4e9541(0x155)][_0x4e9541(0x129)](_0x56a642=>{const _0x5f6726=_0x4e9541;let _0x2dd090=_0x56a642['id'][_0x5f6726(0x12a)]()['length']>0x0&&!_0x537095[_0x5f6726(0x142)](_0x56a642['id'])&&_0x3d58c9(_0x56a642)&&(!_0x56a642['in']||_0x3d58c9(_0x56a642['in']))&&(!_0x56a642[_0x5f6726(0x14d)]||_0x3d58c9(_0x56a642['out']));return _0x537095['add'](_0x56a642['id']),_0x2dd090;});}return _0x61b1c['points'][_0x4e9541(0x150)]>=0x2&&_0x61b1c['points'][_0x4e9541(0x129)](_0x550ff8=>_0x3d58c9(_0x550ff8)&&Number['isFinite'](_0x550ff8['t'])&&(_0x550ff8[_0x4e9541(0x11b)]===void 0x0||Number[_0x4e9541(0x133)](_0x550ff8[_0x4e9541(0x11b)])))&&Number['isFinite'](_0x61b1c[_0x4e9541(0x14b)])&&_0x61b1c['width']>0x0&&Number[_0x4e9541(0x133)](_0x61b1c['opacity'])&&_0x61b1c[_0x4e9541(0x120)]>=0x0&&_0x61b1c[_0x4e9541(0x120)]<=0x1;}function _0x4c7b27(_0x3c78a3){const _0x24df0e=_0x598bd2;return _0x3c78a3===void 0x0||(_0x3c78a3[_0x24df0e(0x14b)]===void 0x0||Number[_0x24df0e(0x133)](_0x3c78a3[_0x24df0e(0x14b)])&&_0x3c78a3['width']>0x0)&&(_0x3c78a3[_0x24df0e(0x120)]===void 0x0||Number[_0x24df0e(0x133)](_0x3c78a3[_0x24df0e(0x120)])&&_0x3c78a3['opacity']>=0x0&&_0x3c78a3[_0x24df0e(0x120)]<=0x1);}function _0x2f2504(_0x5408c6){const _0x3d001f=_0x598bd2;return _0x5408c6&&typeof _0x5408c6=='object'&&!Array[_0x3d001f(0x156)](_0x5408c6)?_0x5408c6:{};}function _0x2918b9(_0x1d48b2){const _0x21676e=_0x598bd2;let _0x14c81c=_0x2f2504(_0x1d48b2[_0x21676e(0x14f)])[_0x21676e(0x11a)];if(!_0x14c81c||typeof _0x14c81c!=_0x21676e(0x13e)||Array[_0x21676e(0x156)](_0x14c81c))return null;let _0x2010a2=_0x14c81c;return _0x2010a2['version']===0x1&&_0x2010a2[_0x21676e(0x12c)]&&typeof _0x2010a2['sourceModel']==_0x21676e(0x13e)?_0x2010a2:null;}function _0x2957d3(_0x439f81){const _0x372984=_0x598bd2;return _0x439f81[_0x372984(0x128)]===_0x3f6f60[_0x372984(0x13b)][_0x372984(0x144)]&&!!_0x2918b9(_0x439f81);}_0x580689[_0x598bd2(0x153)][_0x598bd2(0x134)](_0x3fcfb7);let _0x4ef056={'Pen':'pen','Brush':'brush','Highlighter':_0x598bd2(0x127)},_0x51ddbc={'Corner':_0x598bd2(0x11f),'Smooth':'smooth','Symmetric':'symmetric','Free':'free'},_0x5ace99={'Anchor':_0x598bd2(0x13d),'In':'in','Out':_0x598bd2(0x14d)};var _0x153adc=class extends _0x19250a[_0x598bd2(0x141)]{get[_0x598bd2(0x149)](){return _0x4ef056;}get[_0x598bd2(0x122)](){return _0x51ddbc;}get[_0x598bd2(0x11c)](){return _0x5ace99;}};_0x19250a[_0x598bd2(0x141)][_0x598bd2(0x134)](_0x153adc),_0x3c32fe['BoardInkHandleKind']=_0x5ace99,_0x3c32fe[_0x598bd2(0x122)]=_0x51ddbc,_0x3c32fe[_0x598bd2(0x149)]=_0x4ef056;}));
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;}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5241(_0x168490,_0x329403){_0x168490=_0x168490-0x1db;const _0x4e1c38=_0x4e1c();let _0x5241ce=_0x4e1c38[_0x168490];return _0x5241ce;}(function(_0x159554,_0x127ef8){const _0x5bd495=_0x5241,_0x4a192=_0x159554();while(!![]){try{const _0x32bddd=parseInt(_0x5bd495(0x210))/0x1*(parseInt(_0x5bd495(0x21d))/0x2)+parseInt(_0x5bd495(0x1eb))/0x3*(parseInt(_0x5bd495(0x1ee))/0x4)+parseInt(_0x5bd495(0x245))/0x5+parseInt(_0x5bd495(0x202))/0x6*(-parseInt(_0x5bd495(0x228))/0x7)+parseInt(_0x5bd495(0x236))/0x8+-parseInt(_0x5bd495(0x1df))/0x9*(parseInt(_0x5bd495(0x215))/0xa)+-parseInt(_0x5bd495(0x201))/0xb;if(_0x32bddd===_0x127ef8)break;else _0x4a192['push'](_0x4a192['shift']());}catch(_0x56536b){_0x4a192['push'](_0x4a192['shift']());}}}(_0x4e1c,0x512e3),function(_0x5158dd,_0x181939){const _0x7434af=_0x5241;typeof exports==_0x7434af(0x1ff)&&typeof module<'u'?_0x181939(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x7434af(0x1e6)&&define[_0x7434af(0x24e)]?define([_0x7434af(0x1ea),_0x7434af(0x20a),_0x7434af(0x254),_0x7434af(0x24d)],_0x181939):(_0x5158dd=typeof globalThis<'u'?globalThis:_0x5158dd||self,_0x181939(_0x5158dd[_0x7434af(0x24f)]={},_0x5158dd[_0x7434af(0x237)],_0x5158dd[_0x7434af(0x249)],_0x5158dd[_0x7434af(0x225)]));}(this,function(_0x18fc87,_0x547db6,_0xe1cdb9,_0x20b30c){const _0x3a7915=_0x5241;Object[_0x3a7915(0x1e0)](_0x18fc87,Symbol[_0x3a7915(0x1f1)],{'value':_0x3a7915(0x219)});let _0xbeda67=0.0001;function _0x27f664(_0x57a13a){return{'x':_0x57a13a['x'],'y':_0x57a13a['y']};}function _0x42983c(_0x50c4b2){const _0xfef5e0=_0x3a7915;return{..._0x50c4b2,'in':_0x50c4b2['in']?_0x27f664(_0x50c4b2['in']):void 0x0,'out':_0x50c4b2['out']?_0x27f664(_0x50c4b2[_0xfef5e0(0x24c)]):void 0x0};}function _0x4ca0a1(_0x4879f5){const _0x5c4553=_0x3a7915;return{'kind':_0x5c4553(0x24a),'closed':_0x4879f5['closed'],'anchors':_0x4879f5[_0x5c4553(0x23a)][_0x5c4553(0x200)](_0x42983c)};}function _0x49a5a9(_0x467b31,_0x4ebc05,_0x17e446){return{'x':_0x467b31['x']+(_0x4ebc05['x']-_0x467b31['x'])*_0x17e446,'y':_0x467b31['y']+(_0x4ebc05['y']-_0x467b31['y'])*_0x17e446};}function _0x2fb3b8(_0x31ff8d,_0x48594d){const _0x54e8fd=_0x3a7915;return Math[_0x54e8fd(0x1f4)](_0x31ff8d['x']-_0x48594d['x'],_0x31ff8d['y']-_0x48594d['y']);}function _0x3d4675(_0x40bd84){const _0x317395=_0x3a7915;let _0x5388bd=Math[_0x317395(0x1f4)](_0x40bd84['x'],_0x40bd84['y']);return _0x5388bd<_0xbeda67?{'x':0x1,'y':0x0}:{'x':_0x40bd84['x']/_0x5388bd,'y':_0x40bd84['y']/_0x5388bd};}function _0x461e78(_0x402a85,_0x398e30,_0x24b97b=_0x2fb3b8(_0x402a85,_0x398e30)){let _0x48141b=_0x3d4675({'x':_0x402a85['x']-_0x398e30['x'],'y':_0x402a85['y']-_0x398e30['y']});return{'x':_0x402a85['x']+_0x48141b['x']*_0x24b97b,'y':_0x402a85['y']+_0x48141b['y']*_0x24b97b};}function _0x432118(_0x213342,_0x23564b){const _0x3f36ed=_0x3a7915;let {anchors:_0x48a0d7}=_0x213342;return _0x48a0d7[_0x3f36ed(0x21a)]<0x2||_0x23564b<0x0?null:_0x23564b<_0x48a0d7[_0x3f36ed(0x21a)]-0x1?{'startIndex':_0x23564b,'endIndex':_0x23564b+0x1,'start':_0x48a0d7[_0x23564b],'end':_0x48a0d7[_0x23564b+0x1]}:_0x213342[_0x3f36ed(0x1e4)]&&_0x23564b===_0x48a0d7[_0x3f36ed(0x21a)]-0x1?{'startIndex':_0x48a0d7[_0x3f36ed(0x21a)]-0x1,'endIndex':0x0,'start':_0x48a0d7[_0x48a0d7[_0x3f36ed(0x21a)]-0x1],'end':_0x48a0d7[0x0]}:null;}function _0x5c339f(_0x34b19d,_0x118d09){const _0x4862ed=_0x3a7915;var _0x52d621,_0x473996;let _0xa730ce=_0x432118(_0x34b19d,_0x118d09);return _0xa730ce?[_0xa730ce[_0x4862ed(0x22b)],(_0x52d621=_0xa730ce[_0x4862ed(0x22b)][_0x4862ed(0x24c)])==null?_0xa730ce[_0x4862ed(0x22b)]:_0x52d621,(_0x473996=_0xa730ce[_0x4862ed(0x21e)]['in'])==null?_0xa730ce[_0x4862ed(0x21e)]:_0x473996,_0xa730ce[_0x4862ed(0x21e)]]:null;}function _0x46e29(_0x30eb02,_0x2d9697){const _0x1ec867=_0x3a7915;var _0x2e3695;return _0x2d9697===_0x1ec867(0x248)?_0x30eb02:(_0x2e3695=_0x30eb02[_0x2d9697])==null?null:_0x2e3695;}function _0x284139(_0x26bb87,_0x24cf13,_0x5a575a){const _0x1f9198=_0x3a7915;return _0x5a575a===_0x1f9198(0x248)||_0x26bb87[_0x1f9198(0x1e4)]?!0x0:_0x5a575a==='in'?_0x24cf13>0x0:_0x24cf13<_0x26bb87[_0x1f9198(0x23a)][_0x1f9198(0x21a)]-0x1;}function _0x2ce3a4(_0x25cbc0,_0x30b0d6){let [_0x432b6f,_0x1e9ba4,_0x505946,_0x58901a]=_0x25cbc0,_0x56fab9=_0x49a5a9(_0x432b6f,_0x1e9ba4,_0x30b0d6),_0x103fc7=_0x49a5a9(_0x1e9ba4,_0x505946,_0x30b0d6),_0x362d66=_0x49a5a9(_0x505946,_0x58901a,_0x30b0d6);return _0x49a5a9(_0x49a5a9(_0x56fab9,_0x103fc7,_0x30b0d6),_0x49a5a9(_0x103fc7,_0x362d66,_0x30b0d6),_0x30b0d6);}function _0x87d2c1(_0x57088c,_0x3dd27c){let [_0x2d43d7,_0x26d91c,_0xa3c189,_0x5e3b6c]=_0x57088c,_0x2cbdd3=_0x49a5a9(_0x2d43d7,_0x26d91c,_0x3dd27c),_0x1d81fe=_0x49a5a9(_0x26d91c,_0xa3c189,_0x3dd27c),_0x507788=_0x49a5a9(_0xa3c189,_0x5e3b6c,_0x3dd27c),_0x30988f=_0x49a5a9(_0x2cbdd3,_0x1d81fe,_0x3dd27c),_0x115b35=_0x49a5a9(_0x1d81fe,_0x507788,_0x3dd27c),_0x2203ba=_0x49a5a9(_0x30988f,_0x115b35,_0x3dd27c);return{'left':[_0x2d43d7,_0x2cbdd3,_0x30988f,_0x2203ba],'right':[_0x2203ba,_0x115b35,_0x507788,_0x5e3b6c]};}function _0x2ae10d(_0x4e9ca7,_0x1fb06e,_0x4a4aa3){const _0x2e3ae2=_0x3a7915;let _0x81d6b=_0x4a4aa3['x']-_0x1fb06e['x'],_0x335b3c=_0x4a4aa3['y']-_0x1fb06e['y'],_0x5e6447=_0x81d6b*_0x81d6b+_0x335b3c*_0x335b3c,_0x384b93=_0x5e6447<=_0xbeda67?0x0:Math[_0x2e3ae2(0x1e3)](0x0,Math[_0x2e3ae2(0x1f3)](0x1,((_0x4e9ca7['x']-_0x1fb06e['x'])*_0x81d6b+(_0x4e9ca7['y']-_0x1fb06e['y'])*_0x335b3c)/_0x5e6447)),_0x5ae694={'x':_0x1fb06e['x']+_0x81d6b*_0x384b93,'y':_0x1fb06e['y']+_0x335b3c*_0x384b93};return{'point':_0x5ae694,'ratio':_0x384b93,'distance':_0x2fb3b8(_0x4e9ca7,_0x5ae694)};}function _0xc2638e(_0x2735d4,_0x59a76f,_0x2b249e){return _0x2ae10d(_0x2735d4,_0x59a76f,_0x2b249e)['distance']**0x2;}function _0x2e140e(_0x74f74a,_0x600d19){const _0x2464bc=_0x3a7915;if(_0x74f74a['length']<=0x2)return _0x74f74a['map'](_0x27f664);let _0x4d30d5=0x0,_0x332868=0x0,_0x559c23=_0x74f74a[0x0],_0x5aa9cb=_0x74f74a[_0x74f74a[_0x2464bc(0x21a)]-0x1],_0x3ca757=_0x600d19*_0x600d19;for(let _0x3ce696=0x1;_0x3ce696<_0x74f74a[_0x2464bc(0x21a)]-0x1;_0x3ce696++){let _0xf39411=_0xc2638e(_0x74f74a[_0x3ce696],_0x559c23,_0x5aa9cb);_0xf39411>_0x4d30d5&&(_0x4d30d5=_0xf39411,_0x332868=_0x3ce696);}if(_0x4d30d5<=_0x3ca757)return[_0x27f664(_0x559c23),_0x27f664(_0x5aa9cb)];let _0x3268ea=_0x2e140e(_0x74f74a[_0x2464bc(0x243)](0x0,_0x332868+0x1),_0x600d19),_0x5093ba=_0x2e140e(_0x74f74a['slice'](_0x332868),_0x600d19);return[..._0x3268ea[_0x2464bc(0x243)](0x0,-0x1),..._0x5093ba];}function _0xf46a05(_0x3fa29d,_0x2b662c){var _0x22b828;let _0x5b54f4=_0x3fa29d[_0x2b662c],_0x223091=_0x3fa29d[_0x2b662c+0x1],_0x31e523=(_0x22b828=_0x3fa29d[_0x2b662c-0x1])==null?_0x5b54f4:_0x22b828;return{'x':_0x5b54f4['x']+(_0x223091['x']-_0x31e523['x'])/0x6,'y':_0x5b54f4['y']+(_0x223091['y']-_0x31e523['y'])/0x6};}function _0x11179e(_0x15fec9,_0x369013){var _0x3342c7;let _0x1401d0=_0x15fec9[_0x369013],_0x2bff3d=_0x15fec9[_0x369013-0x1],_0x540a2b=(_0x3342c7=_0x15fec9[_0x369013+0x1])==null?_0x1401d0:_0x3342c7;return{'x':_0x1401d0['x']-(_0x540a2b['x']-_0x2bff3d['x'])/0x6,'y':_0x1401d0['y']-(_0x540a2b['y']-_0x2bff3d['y'])/0x6};}function _0x17daec(_0x508ca1,_0x3f84fd){const _0x16c573=_0x3a7915;var _0x4e7940,_0xc03c8c;let _0x42b706=_0x508ca1['anchors'][_0x3f84fd],_0x4cebbd=(_0x4e7940=_0x508ca1[_0x16c573(0x23a)][_0x3f84fd-0x1])==null?_0x508ca1[_0x16c573(0x1e4)]?_0x508ca1[_0x16c573(0x23a)][_0x508ca1['anchors'][_0x16c573(0x21a)]-0x1]:null:_0x4e7940,_0x50ebe8=(_0xc03c8c=_0x508ca1['anchors'][_0x3f84fd+0x1])==null?_0x508ca1[_0x16c573(0x1e4)]?_0x508ca1[_0x16c573(0x23a)][0x0]:null:_0xc03c8c,_0x55b816=_0x4cebbd&&_0x50ebe8?_0x3d4675({'x':_0x50ebe8['x']-_0x4cebbd['x'],'y':_0x50ebe8['y']-_0x4cebbd['y']}):_0x50ebe8?_0x3d4675({'x':_0x50ebe8['x']-_0x42b706['x'],'y':_0x50ebe8['y']-_0x42b706['y']}):_0x4cebbd?_0x3d4675({'x':_0x42b706['x']-_0x4cebbd['x'],'y':_0x42b706['y']-_0x4cebbd['y']}):{'x':0x1,'y':0x0},_0x1652e2=_0x4cebbd&&_0x50ebe8?Math['max'](0x32,_0x2fb3b8(_0x4cebbd,_0x50ebe8)/0x4):0x32;return{'in':{'x':_0x42b706['x']-_0x55b816['x']*_0x1652e2,'y':_0x42b706['y']-_0x55b816['y']*_0x1652e2},'out':{'x':_0x42b706['x']+_0x55b816['x']*_0x1652e2,'y':_0x42b706['y']+_0x55b816['y']*_0x1652e2}};}function _0x3fdb9c(_0x29f3b9,_0x320cbe){const _0x586767=_0x3a7915;let _0x2b60a7=_0x29f3b9[_0x320cbe],_0x525f1a=_0x320cbe==='in'?_0x586767(0x24c):'in',_0x264405=_0x29f3b9[_0x525f1a];if(_0x2b60a7){if(_0x29f3b9[_0x586767(0x240)]===_0x586767(0x20d)){_0x29f3b9[_0x525f1a]=_0x461e78(_0x29f3b9,_0x2b60a7);return;}_0x29f3b9[_0x586767(0x240)]===_0x586767(0x23e)&&(_0x29f3b9[_0x525f1a]=_0x461e78(_0x29f3b9,_0x2b60a7,_0x264405?_0x2fb3b8(_0x29f3b9,_0x264405):_0x2fb3b8(_0x29f3b9,_0x2b60a7)));}}function _0x5c1437(_0x1edd11,_0x3b155c){const _0x4f52f1=_0x3a7915;let _0x5ec4e4=_0x4ca0a1(_0x1edd11);return!_0x3b155c||_0x5ec4e4[_0x4f52f1(0x1e4)]||_0x5ec4e4['anchors'][_0x4f52f1(0x21a)]===0x0||_0x5ec4e4[_0x4f52f1(0x23a)][_0x4f52f1(0x21b)]({'id':'__ink-preview-anchor__','x':_0x3b155c['x'],'y':_0x3b155c['y'],'pointType':'corner'}),_0x5ec4e4;}function _0x476273(_0x404afc,_0x48780d={}){const _0x451413=_0x3a7915;var _0x277a18,_0x4ff40b;let _0x3e3b2d=Math['max'](0x0,(_0x277a18=_0x48780d['tolerance'])==null?Math[_0x451413(0x1e3)](0x4,_0x404afc[_0x451413(0x244)]*0.35):_0x277a18),_0x594e03=(_0x4ff40b=_0x48780d[_0x451413(0x1f0)])==null?_0x5aa93c=>_0x451413(0x1e5)+_0x5aa93c:_0x4ff40b,_0x32bbbc=_0x2e140e(_0x404afc[_0x451413(0x1dc)],_0x3e3b2d),_0x1a6ba0=_0x32bbbc[_0x451413(0x200)]((_0x74add3,_0x205ca4)=>({'id':_0x594e03(_0x205ca4),'x':_0x74add3['x'],'y':_0x74add3['y'],'pointType':_0x451413(0x217)}));for(let _0x2db73e=0x0;_0x2db73e<_0x1a6ba0[_0x451413(0x21a)]-0x1;_0x2db73e++)_0x1a6ba0[_0x2db73e][_0x451413(0x24c)]=_0xf46a05(_0x32bbbc,_0x2db73e),_0x1a6ba0[_0x2db73e+0x1]['in']=_0x11179e(_0x32bbbc,_0x2db73e+0x1);return{'kind':_0x451413(0x24a),'closed':!0x1,'anchors':_0x1a6ba0};}function _0xe25858(_0x2397b,_0x1836e3,_0x1ffeb6){const _0x184ff6=_0x3a7915;let _0xf82b67=null,_0x5baf8f=[_0x184ff6(0x248),'in','out'];return _0x2397b[_0x184ff6(0x23a)][_0x184ff6(0x218)]((_0x135d35,_0x323e00)=>{const _0x26157f=_0x184ff6;_0x5baf8f[_0x26157f(0x218)](_0xa3bd95=>{const _0xdca23e=_0x26157f;if(!_0x284139(_0x2397b,_0x323e00,_0xa3bd95))return;let _0x27b791=_0x46e29(_0x135d35,_0xa3bd95);if(!_0x27b791)return;let _0x2d0202=_0x2fb3b8(_0x1836e3,_0x27b791);_0x2d0202>_0x1ffeb6||_0xf82b67&&_0x2d0202>=_0xf82b67[_0xdca23e(0x213)]||(_0xf82b67={'handle':{'kind':_0xa3bd95,'anchorId':_0x135d35['id']},'point':_0x27f664(_0x27b791),'distance':_0x2d0202});});}),_0xf82b67;}function _0x2db93d(_0x192015,_0x598490,_0x6b8a43){const _0x3c8430=_0x3a7915;let _0xb000a5=null,_0x52c92d=_0x192015['closed']?_0x192015[_0x3c8430(0x23a)][_0x3c8430(0x21a)]:Math[_0x3c8430(0x1e3)](0x0,_0x192015[_0x3c8430(0x23a)][_0x3c8430(0x21a)]-0x1);for(let _0x2e3525=0x0;_0x2e3525<_0x52c92d;_0x2e3525++){let _0x5774c7=_0x5c339f(_0x192015,_0x2e3525);if(!_0x5774c7)continue;let _0x1e8479=_0x2ce3a4(_0x5774c7,0x0);for(let _0x36aebd=0x1;_0x36aebd<=0x20;_0x36aebd++){let _0x34365d=_0x2ce3a4(_0x5774c7,_0x36aebd/0x20),_0x1ce2c2=_0x2ae10d(_0x598490,_0x1e8479,_0x34365d),_0x2be9a5=(_0x36aebd-0x1+_0x1ce2c2[_0x3c8430(0x1ef)])/0x20;(!_0xb000a5||_0x1ce2c2['distance']<_0xb000a5['distance'])&&(_0xb000a5={'segmentIndex':_0x2e3525,'t':_0x2be9a5,'point':_0x1ce2c2[_0x3c8430(0x20f)],'distance':_0x1ce2c2['distance']}),_0x1e8479=_0x34365d;}}return _0xb000a5&&_0xb000a5[_0x3c8430(0x213)]<=_0x6b8a43?_0xb000a5:null;}function _0x415f70(_0x27d5f5,_0x29c64f,_0x17a257){const _0x422d15=_0x3a7915;let _0x161036=_0x4ca0a1(_0x27d5f5),_0xd99e59=_0x432118(_0x161036,_0x29c64f[_0x422d15(0x232)]),_0x532060=_0x5c339f(_0x161036,_0x29c64f[_0x422d15(0x232)]);if(!_0xd99e59||!_0x532060)return _0x161036;let _0x28a8d4=_0x87d2c1(_0x532060,Math[_0x422d15(0x1e3)](0x0,Math[_0x422d15(0x1f3)](0x1,_0x29c64f['t']))),_0x57a6d7={'id':_0x17a257(),'x':_0x28a8d4[_0x422d15(0x22a)][0x3]['x'],'y':_0x28a8d4[_0x422d15(0x22a)][0x3]['y'],'in':_0x27f664(_0x28a8d4[_0x422d15(0x22a)][0x2]),'out':_0x27f664(_0x28a8d4[_0x422d15(0x1db)][0x1]),'pointType':_0x422d15(0x217)};return _0x161036[_0x422d15(0x23a)][_0xd99e59[_0x422d15(0x23f)]][_0x422d15(0x24c)]=_0x27f664(_0x28a8d4[_0x422d15(0x22a)][0x1]),_0x161036[_0x422d15(0x23a)][_0xd99e59[_0x422d15(0x224)]]['in']=_0x27f664(_0x28a8d4[_0x422d15(0x1db)][0x2]),_0x161036[_0x422d15(0x23a)][_0x422d15(0x253)](_0xd99e59['startIndex']+0x1,0x0,_0x57a6d7),_0x161036;}function _0x1e231b(_0x5d4802,_0x2c4d4c){const _0x4a94f9=_0x3a7915;let _0x14e68b=_0x4ca0a1(_0x5d4802);return _0x14e68b[_0x4a94f9(0x23a)]=_0x14e68b[_0x4a94f9(0x23a)][_0x4a94f9(0x1fa)](_0x3cec1e=>_0x3cec1e['id']!==_0x2c4d4c),_0x14e68b[_0x4a94f9(0x1e4)]&&_0x14e68b[_0x4a94f9(0x23a)][_0x4a94f9(0x21a)]<0x3&&(_0x14e68b[_0x4a94f9(0x1e4)]=!0x1),_0x14e68b;}function _0x4b7478(_0x46afa9,_0x1c5845,_0x24b5f5){const _0x5e11d3=_0x3a7915;let _0x195116=_0x4ca0a1(_0x46afa9),_0x11ca4a=_0x195116[_0x5e11d3(0x23a)][_0x5e11d3(0x1fe)](_0x68b0a9=>_0x68b0a9['id']===_0x1c5845),_0x341ceb=_0x195116['anchors'][_0x11ca4a];if(!_0x341ceb)return _0x195116;if(_0x341ceb[_0x5e11d3(0x240)]=_0x24b5f5,_0x24b5f5===_0x5e11d3(0x206))return delete _0x341ceb['in'],delete _0x341ceb[_0x5e11d3(0x24c)],_0x195116;let _0x157fd5=_0x17daec(_0x195116,_0x11ca4a);if(_0x341ceb['in']=_0x341ceb['in']?_0x27f664(_0x341ceb['in']):_0x157fd5['in'],_0x341ceb[_0x5e11d3(0x24c)]=_0x341ceb['out']?_0x27f664(_0x341ceb['out']):_0x157fd5['out'],_0x24b5f5===_0x5e11d3(0x20d)){let _0x32be95=Math[_0x5e11d3(0x1e3)](_0x2fb3b8(_0x341ceb,_0x341ceb['in']),_0x2fb3b8(_0x341ceb,_0x341ceb[_0x5e11d3(0x24c)]),0x32),_0x51694f=_0x3d4675({'x':_0x341ceb['out']['x']-_0x341ceb['x'],'y':_0x341ceb['out']['y']-_0x341ceb['y']});_0x341ceb[_0x5e11d3(0x24c)]={'x':_0x341ceb['x']+_0x51694f['x']*_0x32be95,'y':_0x341ceb['y']+_0x51694f['y']*_0x32be95},_0x341ceb['in']={'x':_0x341ceb['x']-_0x51694f['x']*_0x32be95,'y':_0x341ceb['y']-_0x51694f['y']*_0x32be95};}else _0x24b5f5===_0x5e11d3(0x23e)&&_0x3fdb9c(_0x341ceb,_0x5e11d3(0x24c));return _0x195116;}function _0x55122e(_0x965d9e,_0x3fdd4e){const _0x1259fd=_0x3a7915;var _0x2e91be;let _0x3b316d=_0x965d9e[_0x1259fd(0x23a)][_0x1259fd(0x221)](_0x2f4800=>_0x2f4800['id']===_0x3fdd4e),_0x101437=(_0x2e91be=_0x3b316d==null?void 0x0:_0x3b316d[_0x1259fd(0x240)])==null?_0x1259fd(0x206):_0x2e91be;return _0x4b7478(_0x965d9e,_0x3fdd4e,_0x101437===_0x1259fd(0x206)?'smooth':_0x101437===_0x1259fd(0x23e)?_0x1259fd(0x20d):_0x101437===_0x1259fd(0x20d)?_0x1259fd(0x217):'corner');}function _0x4c7cd8(_0x17293a,_0xd97051,_0x2cb3ad){const _0x1ab5a1=_0x3a7915;let _0x589894=_0x4ca0a1(_0x17293a),_0x5275c2=_0x589894[_0x1ab5a1(0x23a)][_0x1ab5a1(0x221)](_0x236238=>_0x236238['id']===_0xd97051[_0x1ab5a1(0x207)]);if(!_0x5275c2)return _0x589894;if(_0xd97051[_0x1ab5a1(0x21c)]===_0x1ab5a1(0x248)){let _0xa673eb={'x':_0x2cb3ad['x']-_0x5275c2['x'],'y':_0x2cb3ad['y']-_0x5275c2['y']};return _0x5275c2['x']=_0x2cb3ad['x'],_0x5275c2['y']=_0x2cb3ad['y'],_0x5275c2['in']&&(_0x5275c2['in']={'x':_0x5275c2['in']['x']+_0xa673eb['x'],'y':_0x5275c2['in']['y']+_0xa673eb['y']}),_0x5275c2[_0x1ab5a1(0x24c)]&&(_0x5275c2[_0x1ab5a1(0x24c)]={'x':_0x5275c2[_0x1ab5a1(0x24c)]['x']+_0xa673eb['x'],'y':_0x5275c2['out']['y']+_0xa673eb['y']}),_0x589894;}return _0x5275c2[_0xd97051['kind']]=_0x27f664(_0x2cb3ad),_0x5275c2[_0x1ab5a1(0x240)]===_0x1ab5a1(0x206)&&(_0x5275c2[_0x1ab5a1(0x240)]=_0x1ab5a1(0x217)),_0x3fdb9c(_0x5275c2,_0xd97051[_0x1ab5a1(0x21c)]),_0x589894;}let _0x4c267e=1e-9;function _0x215fcb(_0x1ea1de){const _0x4c2513=_0x3a7915;let _0xb41f97=Math[_0x4c2513(0x1e1)](_0x1ea1de*0x2710)/0x2710;return Object['is'](_0xb41f97,-0x0)?'0':String(_0xb41f97);}function _0x51a515(_0x2efad7){return _0x215fcb(_0x2efad7['x'])+'\x20'+_0x215fcb(_0x2efad7['y']);}function _0x500ded(_0x13cd58,_0x13a181){return{'x':_0x13cd58['x']-_0x13a181['x'],'y':_0x13cd58['y']-_0x13a181['y']};}function _0xbb8386(_0x5137c2,_0x1353ac,_0x8a61f1,_0x49ddec,_0xe79619){let _0x559611=0x1-_0xe79619;return{'x':_0x559611*_0x559611*_0x559611*_0x5137c2['x']+0x3*_0x559611*_0x559611*_0xe79619*_0x1353ac['x']+0x3*_0x559611*_0xe79619*_0xe79619*_0x8a61f1['x']+_0xe79619*_0xe79619*_0xe79619*_0x49ddec['x'],'y':_0x559611*_0x559611*_0x559611*_0x5137c2['y']+0x3*_0x559611*_0x559611*_0xe79619*_0x1353ac['y']+0x3*_0x559611*_0xe79619*_0xe79619*_0x8a61f1['y']+_0xe79619*_0xe79619*_0xe79619*_0x49ddec['y']};}function _0x1651b3(_0x504fe0,_0x34e789,_0x31a535,_0x521de1){const _0x27c822=_0x3a7915;let _0x2ea571=-_0x504fe0+0x3*_0x34e789-0x3*_0x31a535+_0x521de1,_0x30685c=0x3*_0x504fe0-0x6*_0x34e789+0x3*_0x31a535,_0x7cf8b=-0x3*_0x504fe0+0x3*_0x34e789,_0x1a1556=[];if(Math[_0x27c822(0x216)](_0x2ea571)<_0x4c267e){if(Math[_0x27c822(0x216)](_0x30685c)<_0x4c267e)return _0x1a1556;let _0x1377f9=-_0x7cf8b/(0x2*_0x30685c);return _0x1377f9>0x0&&_0x1377f9<0x1&&_0x1a1556[_0x27c822(0x21b)](_0x1377f9),_0x1a1556;}let _0x2b378e=_0x30685c*_0x30685c-0x3*_0x2ea571*_0x7cf8b;if(_0x2b378e<0x0)return _0x1a1556;let _0x3de31a=Math[_0x27c822(0x1f8)](Math['max'](0x0,_0x2b378e)),_0xa09565=(-_0x30685c+_0x3de31a)/(0x3*_0x2ea571),_0x36597d=(-_0x30685c-_0x3de31a)/(0x3*_0x2ea571);return _0xa09565>0x0&&_0xa09565<0x1&&_0x1a1556['push'](_0xa09565),_0x36597d>0x0&&_0x36597d<0x1&&Math[_0x27c822(0x216)](_0x36597d-_0xa09565)>_0x4c267e&&_0x1a1556['push'](_0x36597d),_0x1a1556;}function _0x1fec81(_0x137100,_0x10028f,_0x4b640d,_0x4fd5e8,_0x2575d4){const _0x327bca=_0x3a7915;_0x137100[_0x327bca(0x21b)](_0x10028f,_0x2575d4),new Set([..._0x1651b3(_0x10028f['x'],_0x4b640d['x'],_0x4fd5e8['x'],_0x2575d4['x']),..._0x1651b3(_0x10028f['y'],_0x4b640d['y'],_0x4fd5e8['y'],_0x2575d4['y'])])[_0x327bca(0x218)](_0x535efb=>{_0x137100['push'](_0xbb8386(_0x10028f,_0x4b640d,_0x4fd5e8,_0x2575d4,_0x535efb));});}function _0x43f071(_0x19d9a3){const _0x1330f7=_0x3a7915;let _0x427b1e=_0x19d9a3['anchors'];if(_0x427b1e[_0x1330f7(0x21a)]<=0x1)return _0x427b1e;let _0x3b2166=[];for(let _0x310045=0x1;_0x310045<_0x427b1e['length'];_0x310045++){var _0x59288e,_0x31c952;let _0x464746=_0x427b1e[_0x310045-0x1],_0xc11ccb=_0x427b1e[_0x310045];_0x1fec81(_0x3b2166,_0x464746,(_0x59288e=_0x464746[_0x1330f7(0x24c)])==null?_0x464746:_0x59288e,(_0x31c952=_0xc11ccb['in'])==null?_0xc11ccb:_0x31c952,_0xc11ccb);}if(_0x19d9a3[_0x1330f7(0x1e4)]&&_0x427b1e[_0x1330f7(0x21a)]>0x1){var _0x2f004c,_0x519b8f;let _0x1c4229=_0x427b1e[_0x427b1e[_0x1330f7(0x21a)]-0x1],_0x54c16c=_0x427b1e[0x0];_0x1fec81(_0x3b2166,_0x1c4229,(_0x2f004c=_0x1c4229[_0x1330f7(0x24c)])==null?_0x1c4229:_0x2f004c,(_0x519b8f=_0x54c16c['in'])==null?_0x54c16c:_0x519b8f,_0x54c16c);}return _0x3b2166;}function _0x4fdccd(_0x4a6a1b){const _0x3e58d2=_0x3a7915;let _0x3606c1=_0x4a6a1b[_0x3e58d2(0x1dc)];if(_0x3606c1[_0x3e58d2(0x21a)]<=0x1)return _0x3606c1;let _0x37360a=[];for(let _0x145489=0x0;_0x145489<_0x3606c1[_0x3e58d2(0x21a)]-0x1;_0x145489++){var _0x1254ba,_0x5d6045;let _0x1d4d6f=_0x3606c1[_0x145489],_0x268677=_0x3606c1[_0x145489+0x1],_0x2036fe=(_0x1254ba=_0x3606c1[_0x145489-0x1])==null?_0x1d4d6f:_0x1254ba,_0x5c90b0=(_0x5d6045=_0x3606c1[_0x145489+0x2])==null?_0x268677:_0x5d6045;_0x1fec81(_0x37360a,_0x1d4d6f,{'x':_0x1d4d6f['x']+(_0x268677['x']-_0x2036fe['x'])/0x6,'y':_0x1d4d6f['y']+(_0x268677['y']-_0x2036fe['y'])/0x6},{'x':_0x268677['x']-(_0x5c90b0['x']-_0x1d4d6f['x'])/0x6,'y':_0x268677['y']-(_0x5c90b0['y']-_0x1d4d6f['y'])/0x6},_0x268677);}return _0x37360a;}function _0x23abde(_0x13b393){const _0x543c6f=_0x3a7915;return _0x13b393[_0x543c6f(0x21c)]===_0x543c6f(0x24a)?_0x43f071(_0x13b393):_0x4fdccd(_0x13b393);}function _0x2f5df1(_0x4dedb5){const _0x14dacb=_0x3a7915;let _0x51ce92=Math[_0x14dacb(0x1e1)](_0x4dedb5*0x2710)/0x2710;return Object['is'](_0x51ce92,-0x0)?0x0:_0x51ce92;}function _0x3ba17e(_0x439238){const _0x5c388c=_0x3a7915;let _0x5617e7=_0x23abde(_0x439238);if(_0x5617e7[_0x5c388c(0x21a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x5050bf=Math['min'](..._0x5617e7[_0x5c388c(0x200)](_0x159e81=>_0x159e81['x'])),_0x1f9432=Math[_0x5c388c(0x1f3)](..._0x5617e7['map'](_0x37a9a1=>_0x37a9a1['y'])),_0x4807af=Math[_0x5c388c(0x1e3)](..._0x5617e7['map'](_0x5e3dad=>_0x5e3dad['x'])),_0x5db824=Math['max'](..._0x5617e7['map'](_0x563344=>_0x563344['y']));return{'left':_0x2f5df1(_0x5050bf),'top':_0x2f5df1(_0x1f9432),'width':_0x2f5df1(Math[_0x5c388c(0x1e3)](0x1,_0x4807af-_0x5050bf)),'height':_0x2f5df1(Math[_0x5c388c(0x1e3)](0x1,_0x5db824-_0x1f9432))};}function _0x355e57(_0x845021,_0xa33543){const _0x32375e=_0x3a7915;let _0x59d928=_0x845021[_0x32375e(0x23a)];if(_0x59d928[_0x32375e(0x21a)]===0x0)return'';let _0x3123b5=['M\x20'+_0x51a515(_0x500ded(_0x59d928[0x0],_0xa33543))];for(let _0x59a1ac=0x1;_0x59a1ac<_0x59d928['length'];_0x59a1ac++){var _0x4229fb,_0x2dfd17;let _0x38989f=_0x59d928[_0x59a1ac-0x1],_0x47cf55=_0x59d928[_0x59a1ac],_0x50c084=(_0x4229fb=_0x38989f['out'])==null?_0x38989f:_0x4229fb,_0x226cc2=(_0x2dfd17=_0x47cf55['in'])==null?_0x47cf55:_0x2dfd17;_0x3123b5[_0x32375e(0x21b)]('C\x20'+_0x51a515(_0x500ded(_0x50c084,_0xa33543))+'\x20'+_0x51a515(_0x500ded(_0x226cc2,_0xa33543))+'\x20'+_0x51a515(_0x500ded(_0x47cf55,_0xa33543)));}if(_0x845021[_0x32375e(0x1e4)]&&_0x59d928['length']>0x1){var _0x27f256,_0x2abfb4;let _0x35ee2a=_0x59d928[_0x59d928['length']-0x1],_0x1e3439=_0x59d928[0x0],_0x59b567=(_0x27f256=_0x35ee2a[_0x32375e(0x24c)])==null?_0x35ee2a:_0x27f256,_0x5340e3=(_0x2abfb4=_0x1e3439['in'])==null?_0x1e3439:_0x2abfb4;_0x3123b5['push']('C\x20'+_0x51a515(_0x500ded(_0x59b567,_0xa33543))+'\x20'+_0x51a515(_0x500ded(_0x5340e3,_0xa33543))+'\x20'+_0x51a515(_0x500ded(_0x1e3439,_0xa33543))),_0x3123b5[_0x32375e(0x21b)]('Z');}return _0x3123b5[_0x32375e(0x239)]('\x20');}function _0x3b078d(_0x24dc14,_0x3dcced){const _0x50ad99=_0x3a7915;let _0x7387c5=_0x24dc14[_0x50ad99(0x1dc)][_0x50ad99(0x200)](_0x5c899c=>_0x500ded(_0x5c899c,_0x3dcced));if(_0x7387c5['length']===0x0)return'';if(_0x7387c5['length']===0x1)return'M\x20'+_0x51a515(_0x7387c5[0x0]);let _0x2450c4=['M\x20'+_0x51a515(_0x7387c5[0x0])];for(let _0x46686b=0x0;_0x46686b<_0x7387c5[_0x50ad99(0x21a)]-0x1;_0x46686b++){var _0x513db7,_0xdf65eb;let _0x39bcc7=_0x7387c5[_0x46686b],_0x2c14c4=_0x7387c5[_0x46686b+0x1],_0x376b00=(_0x513db7=_0x7387c5[_0x46686b-0x1])==null?_0x39bcc7:_0x513db7,_0x1ea2c0=(_0xdf65eb=_0x7387c5[_0x46686b+0x2])==null?_0x2c14c4:_0xdf65eb,_0x546098={'x':_0x39bcc7['x']+(_0x2c14c4['x']-_0x376b00['x'])/0x6,'y':_0x39bcc7['y']+(_0x2c14c4['y']-_0x376b00['y'])/0x6},_0x4f58a4={'x':_0x2c14c4['x']-(_0x1ea2c0['x']-_0x39bcc7['x'])/0x6,'y':_0x2c14c4['y']-(_0x1ea2c0['y']-_0x39bcc7['y'])/0x6};_0x2450c4[_0x50ad99(0x21b)]('C\x20'+_0x51a515(_0x546098)+'\x20'+_0x51a515(_0x4f58a4)+'\x20'+_0x51a515(_0x2c14c4));}return _0x2450c4['join']('\x20');}function _0x30670a(_0x4361c2,_0x3c3269){const _0x1bc5a9=_0x3a7915;return _0x4361c2[_0x1bc5a9(0x21c)]===_0x1bc5a9(0x24a)?_0x355e57(_0x4361c2,_0x3c3269):_0x3b078d(_0x4361c2,_0x3c3269);}function _0x6fe63c(_0x38bb8f,_0x1a046c){const _0x2e944e=_0x3a7915;return _0x1a046c!=null&&_0x1a046c['color']?_0x1a046c[_0x2e944e(0x234)]:_0x38bb8f[_0x2e944e(0x21c)]===_0x2e944e(0x24a)?_0x2e944e(0x214):_0x38bb8f['color'];}function _0x372445(_0x549c80,_0x3f81c9){const _0x345b04=_0x3a7915;return(_0x3f81c9==null?void 0x0:_0x3f81c9[_0x345b04(0x244)])===void 0x0?_0x549c80['kind']==='pen'?0x2:_0x549c80['width']:_0x3f81c9[_0x345b04(0x244)];}function _0x37b8a5(_0x54f2d4,_0x5944b0){const _0x4c1ed9=_0x3a7915;return(_0x5944b0==null?void 0x0:_0x5944b0[_0x4c1ed9(0x1dd)])===void 0x0?_0x54f2d4[_0x4c1ed9(0x21c)]===_0x4c1ed9(0x24a)?void 0x0:_0x54f2d4[_0x4c1ed9(0x1dd)]:_0x5944b0['opacity'];}function _0x43a1fb(_0xdf76cc,_0x52c1ae){const _0x562303=_0x3a7915;let _0x2f7f80=_0x3ba17e(_0xdf76cc),_0x55efd0=_0x30670a(_0xdf76cc,{'x':_0x2f7f80[_0x562303(0x22a)],'y':_0x2f7f80['top']}),_0x11aa93=_0xdf76cc[_0x562303(0x21c)]===_0x562303(0x24a)&&_0xdf76cc[_0x562303(0x1e4)],_0x1787df=_0x52c1ae==null?void 0x0:_0x52c1ae[_0x562303(0x203)];return{'shapeType':_0x547db6[_0x562303(0x1f5)][_0x562303(0x1e9)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x2f7f80[_0x562303(0x244)],'h':_0x2f7f80[_0x562303(0x242)],'fill':_0x11aa93?_0x562303(0x250):_0x562303(0x241),'stroke':!0x0,'data':_0x55efd0,'dataArray':_0xf7c4d1(_0xdf76cc,{'x':_0x2f7f80[_0x562303(0x22a)],'y':_0x2f7f80[_0x562303(0x204)]})}]},'fill':_0x11aa93&&_0x1787df?{'color':_0x1787df,'fillType':_0x547db6[_0x562303(0x23c)][_0x562303(0x1de)]}:{'fillType':_0x547db6[_0x562303(0x23c)][_0x562303(0x235)]},'stroke':{'color':_0x6fe63c(_0xdf76cc,_0x52c1ae),'width':_0x372445(_0xdf76cc,_0x52c1ae),'opacity':_0x37b8a5(_0xdf76cc,_0x52c1ae),'lineStrokeType':_0x547db6[_0x562303(0x231)]['SolidLine'],'capType':_0x547db6[_0x562303(0x1ed)][_0x562303(0x223)],'lineJoinType':_0x547db6[_0x562303(0x22e)][_0x562303(0x223)]}};}function _0x1c2fab(_0x4ed657,_0x7f4ef0){return{'x':_0x4ed657['x']-_0x7f4ef0['x'],'y':_0x4ed657['y']-_0x7f4ef0['y']};}function _0xf7c4d1(_0x3861ea,_0x2d06b3){const _0x3500b6=_0x3a7915;if(_0x3861ea[_0x3500b6(0x21c)]===_0x3500b6(0x24a)){let _0x3b54bb=_0x3861ea['anchors'];if(_0x3b54bb[_0x3500b6(0x21a)]===0x0)return[];let _0x1795e1=_0x1c2fab(_0x3b54bb[0x0],_0x2d06b3),_0x4dd6a1=[{'command':'M','points':[_0x1795e1['x'],_0x1795e1['y']]}];for(let _0x400f76=0x1;_0x400f76<_0x3b54bb[_0x3500b6(0x21a)];_0x400f76++){var _0x268f52,_0x20808a;let _0x537297=_0x3b54bb[_0x400f76-0x1],_0x408769=_0x3b54bb[_0x400f76],_0x29d715=_0x1c2fab((_0x268f52=_0x537297[_0x3500b6(0x24c)])==null?_0x537297:_0x268f52,_0x2d06b3),_0x534c5b=_0x1c2fab((_0x20808a=_0x408769['in'])==null?_0x408769:_0x20808a,_0x2d06b3),_0x5e7710=_0x1c2fab(_0x408769,_0x2d06b3);_0x4dd6a1[_0x3500b6(0x21b)]({'command':'C','points':[_0x29d715['x'],_0x29d715['y'],_0x534c5b['x'],_0x534c5b['y'],_0x5e7710['x'],_0x5e7710['y']]});}if(_0x3861ea[_0x3500b6(0x1e4)]&&_0x3b54bb[_0x3500b6(0x21a)]>0x1){var _0x1635a5,_0x258ef5;let _0x1da14b=_0x3b54bb[_0x3b54bb[_0x3500b6(0x21a)]-0x1],_0x5c5199=_0x3b54bb[0x0],_0x5a537e=_0x1c2fab((_0x1635a5=_0x1da14b[_0x3500b6(0x24c)])==null?_0x1da14b:_0x1635a5,_0x2d06b3),_0x2a5f28=_0x1c2fab((_0x258ef5=_0x5c5199['in'])==null?_0x5c5199:_0x258ef5,_0x2d06b3),_0x43c1b1=_0x1c2fab(_0x5c5199,_0x2d06b3);_0x4dd6a1[_0x3500b6(0x21b)]({'command':'C','points':[_0x5a537e['x'],_0x5a537e['y'],_0x2a5f28['x'],_0x2a5f28['y'],_0x43c1b1['x'],_0x43c1b1['y']]}),_0x4dd6a1[_0x3500b6(0x21b)]({'command':'z','points':[]});}return _0x4dd6a1;}let _0x3062c0=_0x3861ea['points'][_0x3500b6(0x200)](_0x113923=>_0x1c2fab(_0x113923,_0x2d06b3));if(_0x3062c0[_0x3500b6(0x21a)]===0x0)return[];let _0x590cb3=[{'command':'M','points':[_0x3062c0[0x0]['x'],_0x3062c0[0x0]['y']]}];for(let _0x61f9a3=0x0;_0x61f9a3<_0x3062c0[_0x3500b6(0x21a)]-0x1;_0x61f9a3++){var _0x84c340,_0x38075d;let _0x47245d=_0x3062c0[_0x61f9a3],_0x68c4e6=_0x3062c0[_0x61f9a3+0x1],_0x496746=(_0x84c340=_0x3062c0[_0x61f9a3-0x1])==null?_0x47245d:_0x84c340,_0x5e9f13=(_0x38075d=_0x3062c0[_0x61f9a3+0x2])==null?_0x68c4e6:_0x38075d,_0x317183={'x':_0x47245d['x']+(_0x68c4e6['x']-_0x496746['x'])/0x6,'y':_0x47245d['y']+(_0x68c4e6['y']-_0x496746['y'])/0x6},_0x1f4da9={'x':_0x68c4e6['x']-(_0x5e9f13['x']-_0x47245d['x'])/0x6,'y':_0x68c4e6['y']-(_0x5e9f13['y']-_0x47245d['y'])/0x6};_0x590cb3[_0x3500b6(0x21b)]({'command':'C','points':[_0x317183['x'],_0x317183['y'],_0x1f4da9['x'],_0x1f4da9['y'],_0x68c4e6['x'],_0x68c4e6['y']]});}return _0x590cb3;}function _0x55c491(_0x5ae462){const _0x2c5e96=_0x3a7915;var _0x4dc91b;let {model:_0x3d3dde,sourceModel:_0x475a65=_0x3d3dde,style:_0x5f28c4}=_0x5ae462,_0x4a5d26=(_0x4dc91b=_0x5ae462[_0x2c5e96(0x211)])==null?_0x3d3dde[_0x2c5e96(0x21c)]:_0x4dc91b,_0x20a257=_0x3ba17e(_0x3d3dde),_0x5dc8fc=_0x3d3dde[_0x2c5e96(0x21c)]==='pen'&&_0x4a5d26!==_0x2c5e96(0x24a)?_0x3d3dde:void 0x0;return{'transform':{..._0x20a257,'rotation':0x0},'shapeData':_0x43a1fb(_0x3d3dde,_0x5f28c4),'ink':{'version':0x1,'tool':_0x4a5d26,'sourceModel':_0x475a65,..._0x5dc8fc?{'editModel':_0x5dc8fc}:{},'normalizedBounds':_0x20a257}};}var _0x5bc782='@univerjs-pro/ink',_0x5539cf=_0x3a7915(0x208);function _0x3a1679(_0x54a2b8){'@babel/helpers - typeof';const _0x1f5f1d=_0x3a7915;return _0x3a1679=typeof Symbol==_0x1f5f1d(0x1e6)&&typeof Symbol[_0x1f5f1d(0x1f7)]=='symbol'?function(_0x46c7d8){return typeof _0x46c7d8;}:function(_0x1952a2){const _0xb0ec3c=_0x1f5f1d;return _0x1952a2&&typeof Symbol=='function'&&_0x1952a2[_0xb0ec3c(0x251)]===Symbol&&_0x1952a2!==Symbol[_0xb0ec3c(0x220)]?_0xb0ec3c(0x1ec):typeof _0x1952a2;},_0x3a1679(_0x54a2b8);}function _0x499b7e(_0x28adda,_0x497fdf){const _0x571420=_0x3a7915;if(_0x3a1679(_0x28adda)!='object'||!_0x28adda)return _0x28adda;var _0x3d8128=_0x28adda[Symbol[_0x571420(0x229)]];if(_0x3d8128!==void 0x0){var _0xb63c77=_0x3d8128['call'](_0x28adda,_0x497fdf||'default');if(_0x3a1679(_0xb63c77)!='object')return _0xb63c77;throw TypeError(_0x571420(0x1e2));}return(_0x497fdf===_0x571420(0x22c)?String:Number)(_0x28adda);}function _0x5a64ce(_0x1d7ea6){var _0x1078a9=_0x499b7e(_0x1d7ea6,'string');return _0x3a1679(_0x1078a9)=='symbol'?_0x1078a9:_0x1078a9+'';}function _0x2b031b(_0x86b29a,_0x2002f9,_0x44b823){const _0x5702c6=_0x3a7915;return(_0x2002f9=_0x5a64ce(_0x2002f9))in _0x86b29a?Object[_0x5702c6(0x1e0)](_0x86b29a,_0x2002f9,{'value':_0x44b823,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x86b29a[_0x2002f9]=_0x44b823,_0x86b29a;}let _0x28fe64=(0x0,_0x20b30c[_0x3a7915(0x212)])('ink.host-adapter.service');var _0x11cfa7=class{constructor(){const _0x5ea169=_0x3a7915;_0x2b031b(this,_0x5ea169(0x20e),[]);}[_0x3a7915(0x238)](_0x220b8c){const _0x56f312=_0x3a7915;return this[_0x56f312(0x20e)][_0x56f312(0x21b)](_0x220b8c),(0x0,_0x20b30c[_0x56f312(0x226)])(()=>{const _0x2d5058=_0x56f312;let _0x44845a=this[_0x2d5058(0x20e)]['indexOf'](_0x220b8c);_0x44845a>=0x0&&this[_0x2d5058(0x20e)][_0x2d5058(0x253)](_0x44845a,0x1);});}[_0x3a7915(0x21f)](_0x182419){const _0x56049a=_0x3a7915;for(let _0x558d63 of this['_adapters'])if(_0x558d63[_0x56049a(0x21f)](_0x182419))return!0x0;return!0x1;}async[_0x3a7915(0x246)](_0x3d2a05){const _0x5a2d8e=_0x3a7915;for(let _0x2b987e of this[_0x5a2d8e(0x20e)])if(_0x2b987e[_0x5a2d8e(0x246)]&&await _0x2b987e[_0x5a2d8e(0x246)](_0x3d2a05))return!0x0;return!0x1;}};let _0x5bd414={'id':_0x3a7915(0x205),'type':_0x20b30c['CommandType']['OPERATION'],'handler':(_0x107fa5,_0x3d17b7)=>_0x3d17b7?_0x107fa5['get'](_0x28fe64)[_0x3a7915(0x21f)](_0x3d17b7):!0x1},_0x345eda={};function _0x254380(_0x4d6b5c,_0x389544){return function(_0x3685c3,_0x4649a6){_0x389544(_0x3685c3,_0x4649a6,_0x4d6b5c);};}function _0x133656(_0x52f84a,_0x397859,_0x1c9da6,_0x3ffdaa){const _0x48e75d=_0x3a7915;var _0x20ea2d=arguments[_0x48e75d(0x21a)],_0x130e04=_0x20ea2d<0x3?_0x397859:_0x3ffdaa===null?_0x3ffdaa=Object[_0x48e75d(0x20c)](_0x397859,_0x1c9da6):_0x3ffdaa,_0x72c549;if(typeof Reflect==_0x48e75d(0x1ff)&&typeof Reflect[_0x48e75d(0x20b)]==_0x48e75d(0x1e6))_0x130e04=Reflect['decorate'](_0x52f84a,_0x397859,_0x1c9da6,_0x3ffdaa);else{for(var _0x3905c6=_0x52f84a[_0x48e75d(0x21a)]-0x1;_0x3905c6>=0x0;_0x3905c6--)(_0x72c549=_0x52f84a[_0x3905c6])&&(_0x130e04=(_0x20ea2d<0x3?_0x72c549(_0x130e04):_0x20ea2d>0x3?_0x72c549(_0x397859,_0x1c9da6,_0x130e04):_0x72c549(_0x397859,_0x1c9da6))||_0x130e04);}return _0x20ea2d>0x3&&_0x130e04&&Object['defineProperty'](_0x397859,_0x1c9da6,_0x130e04),_0x130e04;}let _0x2de361=class extends _0x20b30c['Plugin']{constructor(_0x1ecb5e=_0x345eda,_0x44dc6d,_0xdeaec,_0x139976){const _0x3469c6=_0x3a7915;super(),this[_0x3469c6(0x247)]=_0x1ecb5e,this[_0x3469c6(0x1f6)]=_0x44dc6d,this[_0x3469c6(0x1fb)]=_0xdeaec,this[_0x3469c6(0x209)]=_0x139976;let {..._0x73c294}=(0x0,_0x20b30c['merge'])({},_0x345eda,this[_0x3469c6(0x247)]);this[_0x3469c6(0x209)]['setConfig'](_0x3469c6(0x1e7),_0x73c294);}[_0x3a7915(0x227)](){const _0x3743d3=_0x3a7915;[[_0x28fe64,{'useClass':_0x11cfa7}]][_0x3743d3(0x218)](_0x6bbb55=>this[_0x3743d3(0x1f6)][_0x3743d3(0x252)](_0x6bbb55)),this[_0x3743d3(0x23d)](this[_0x3743d3(0x1fb)]['registerCommand'](_0x5bd414));}};_0x2b031b(_0x2de361,'pluginName','UNIVER_INK_PLUGIN'),_0x2b031b(_0x2de361,_0x3a7915(0x23b),_0x5bc782),_0x2b031b(_0x2de361,'version',_0x5539cf),_0x2b031b(_0x2de361,'type',_0x20b30c['UniverInstanceType']['UNIVER_UNKNOWN']),_0x2de361=_0x133656([(0x0,_0x20b30c[_0x3a7915(0x230)])(_0xe1cdb9[_0x3a7915(0x255)]),_0x254380(0x1,(0x0,_0x20b30c['Inject'])(_0x20b30c[_0x3a7915(0x1fc)])),_0x254380(0x2,_0x20b30c[_0x3a7915(0x222)]),_0x254380(0x3,_0x20b30c[_0x3a7915(0x24b)])],_0x2de361),_0x18fc87['IInkHostAdapterService']=_0x28fe64,Object[_0x3a7915(0x1e0)](_0x18fc87,_0x3a7915(0x1f9),{'enumerable':!0x0,'get':function(){return _0x2de361;}}),_0x18fc87['buildInkCustomShapePayload']=_0x55c491,_0x18fc87[_0x3a7915(0x1e8)]=_0x476273,_0x18fc87[_0x3a7915(0x22d)]=_0x55122e,_0x18fc87['deleteInkPenAnchor']=_0x1e231b,_0x18fc87['findClosestInkPenHandle']=_0xe25858,_0x18fc87['findClosestInkPenSegment']=_0x2db93d,_0x18fc87[_0x3a7915(0x22f)]=_0x3ba17e,_0x18fc87['getInkPenPreviewModel']=_0x5c1437,_0x18fc87[_0x3a7915(0x1fd)]=_0x415f70,_0x18fc87['isInkPenHandleVisible']=_0x284139,_0x18fc87[_0x3a7915(0x1f2)]=_0x4c7cd8,_0x18fc87[_0x3a7915(0x233)]=_0x4b7478;}));function _0x4e1c(){const _0x27a41b=['add','splice','@univerjs-pro/license','UniverLicensePlugin','right','points','opacity','SolidFill','9uFkbfB','defineProperty','round','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','max','closed','ink-centerline-','function','ink.config','convertBrushModelToPenModel','Rect','exports','559167DJYDaJ','symbol','ShapeLineCapEnum','8fiNGNg','ratio','createId','toStringTag','moveInkPenAnchorPoint','min','hypot','ShapeTypeEnum','_injector','iterator','sqrt','UniverInkPlugin','filter','_commandService','Injector','insertInkPenAnchorAt','findIndex','object','map','258940jsYcJW','6CvEhqB','fillColor','top','ink.operation.start','corner','anchorId','1.0.0-alpha.8','_configService','@univerjs-pro/engine-shape','decorate','getOwnPropertyDescriptor','symmetric','_adapters','point','19BFBJHX','tool','createIdentifier','distance','#f54a45','6009180TGkcVA','abs','free','forEach','Module','length','push','kind','4078qjHCWq','end','beginInkMode','prototype','find','ICommandService','Round','endIndex','UniverCore','toDisposable','onStarting','207067YmmTpu','toPrimitive','left','start','string','cycleInkPenAnchorPointType','ShapeLineJoinEnum','getInkModelBounds','DependentOn','ShapeLineTypeEnum','segmentIndex','setInkPenAnchorPointType','color','NoFill','1471544Wgmpqd','UniverProEngineShape','registerAdapter','join','anchors','packageName','ShapeFillEnum','disposeWithMe','smooth','startIndex','pointType','none','height','slice','width','1955460zvnKJM','createCustomShape','_config','anchor','UniverProLicense','pen','IConfigService','out','@univerjs/core','amd','UniverProInk','norm','constructor'];_0x4e1c=function(){return _0x27a41b;};return _0x4e1c();}
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;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/ink",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0-beta.0",
4
4
  "private": false,
5
5
  "description": "Reusable ink model and geometry integration for Univer.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -58,15 +58,15 @@
58
58
  "lib"
59
59
  ],
60
60
  "dependencies": {
61
- "@univerjs-pro/boards": "1.0.0-alpha.8",
62
- "@univerjs-pro/engine-shape": "1.0.0-alpha.8",
63
- "@univerjs-pro/license": "1.0.0-alpha.8",
64
- "@univerjs/core": "1.0.0-alpha.8"
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"
65
65
  },
66
66
  "devDependencies": {
67
67
  "typescript": "^6.0.3",
68
68
  "vitest": "^4.1.10",
69
- "@univerjs-infra/shared": "1.0.0-alpha.8"
69
+ "@univerjs-infra/shared": "1.0.0-beta.0"
70
70
  },
71
71
  "scripts": {
72
72
  "test": "vitest run",