@univerjs-pro/ink 1.0.0-alpha.5 → 1.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4a2e80=_0x5cb5;(function(_0x41ea79,_0x2ddf27){const _0x44e237=_0x5cb5,_0x136f33=_0x41ea79();while(!![]){try{const _0x2c1828=-parseInt(_0x44e237(0x9a))/0x1+parseInt(_0x44e237(0x8b))/0x2+parseInt(_0x44e237(0xad))/0x3+-parseInt(_0x44e237(0xaf))/0x4*(-parseInt(_0x44e237(0xc0))/0x5)+parseInt(_0x44e237(0x9e))/0x6*(-parseInt(_0x44e237(0xb6))/0x7)+parseInt(_0x44e237(0x90))/0x8+-parseInt(_0x44e237(0xba))/0x9;if(_0x2c1828===_0x2ddf27)break;else _0x136f33['push'](_0x136f33['shift']());}catch(_0x4c4438){_0x136f33['push'](_0x136f33['shift']());}}}(_0x5cad,0x58fa5),Object[_0x4a2e80(0x94)](exports,Symbol[_0x4a2e80(0xa3)],{'value':_0x4a2e80(0xa8)}));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[_0x4a2e80(0x92)]{[_0x4a2e80(0xa5)](_0xc7fa0f){const _0x303325=_0x4a2e80;let _0x3e6cd3=o(_0xc7fa0f);return _0x3e6cd3&&this[_0x303325(0xc1)](_0x3e6cd3,{'insertIndex':_0xc7fa0f[_0x303325(0xb2)]})?_0x3e6cd3:null;}['getInks'](){const _0x2c7596=_0x4a2e80;return this[_0x2c7596(0xbb)]({'elementType':e[_0x2c7596(0xa6)][_0x2c7596(0xb8)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](f);}};function o(_0x423db2,_0x306c86){const _0x28d1cf=_0x4a2e80;var _0x4e8ece,_0x447227,_0x58a978;if(!c(_0x423db2[_0x28d1cf(0x98)])||_0x423db2[_0x28d1cf(0x93)]!==void 0x0&&!c(_0x423db2[_0x28d1cf(0x93)])||!l(_0x423db2[_0x28d1cf(0xbf)]))return null;let _0x5972eb=(_0x4e8ece=_0x423db2[_0x28d1cf(0xab)])==null?_0x306c86==null?void 0x0:_0x306c86[_0x28d1cf(0xab)]:_0x4e8ece,_0x29e14a=r[_0x28d1cf(0x96)]['deepClone'](_0x423db2[_0x28d1cf(0x98)]),_0x4803bb=(0x0,n[_0x28d1cf(0xa0)])({'model':_0x29e14a,'style':_0x423db2[_0x28d1cf(0xbf)],'tool':_0x423db2[_0x28d1cf(0xb5)],'sourceModel':_0x423db2[_0x28d1cf(0x93)]?r[_0x28d1cf(0x96)][_0x28d1cf(0xac)](_0x423db2[_0x28d1cf(0x93)]):_0x29e14a}),_0xb26ed8=u(_0x306c86==null?void 0x0:_0x306c86[_0x28d1cf(0xb3)]);return{'id':(_0x447227=(_0x58a978=_0x306c86==null?void 0x0:_0x306c86['id'])==null?_0x423db2['id']:_0x58a978)==null?(0x0,r[_0x28d1cf(0xc2)])(0x6):_0x447227,'type':e[_0x28d1cf(0xa6)][_0x28d1cf(0xb8)],'transform':_0x4803bb[_0x28d1cf(0xa7)],'shapeData':_0x4803bb[_0x28d1cf(0xb7)],'parentId':_0x5972eb==null?void 0x0:_0x5972eb,'laneId':_0x423db2['laneId']===void 0x0?_0x306c86==null?void 0x0:_0x306c86[_0x28d1cf(0xbd)]:_0x423db2[_0x28d1cf(0xbd)],'custom':{..._0xb26ed8,'ink':_0x4803bb[_0x28d1cf(0xb0)]}};}function s(_0x33c5ea){return Number['isFinite'](_0x33c5ea['x'])&&Number['isFinite'](_0x33c5ea['y']);}function c(_0x584915){const _0x503b93=_0x4a2e80;if(_0x584915[_0x503b93(0xa9)]===_0x503b93(0xbe)){let _0x20b0bc=new Set();return _0x584915[_0x503b93(0xb1)]['length']>=(_0x584915[_0x503b93(0xb4)]?0x3:0x2)&&_0x584915['anchors'][_0x503b93(0xa1)](_0x14d4f7=>{const _0x3efcd7=_0x503b93;let _0x4e9b96=_0x14d4f7['id']['trim']()[_0x3efcd7(0x9d)]>0x0&&!_0x20b0bc['has'](_0x14d4f7['id'])&&s(_0x14d4f7)&&(!_0x14d4f7['in']||s(_0x14d4f7['in']))&&(!_0x14d4f7[_0x3efcd7(0xa2)]||s(_0x14d4f7['out']));return _0x20b0bc[_0x3efcd7(0xbc)](_0x14d4f7['id']),_0x4e9b96;});}return _0x584915[_0x503b93(0xaa)][_0x503b93(0x9d)]>=0x2&&_0x584915[_0x503b93(0xaa)][_0x503b93(0xa1)](_0x1b99f9=>s(_0x1b99f9)&&Number[_0x503b93(0x99)](_0x1b99f9['t'])&&(_0x1b99f9['pressure']===void 0x0||Number[_0x503b93(0x99)](_0x1b99f9['pressure'])))&&Number[_0x503b93(0x99)](_0x584915[_0x503b93(0x8e)])&&_0x584915[_0x503b93(0x8e)]>0x0&&Number[_0x503b93(0x99)](_0x584915[_0x503b93(0xb9)])&&_0x584915[_0x503b93(0xb9)]>=0x0&&_0x584915[_0x503b93(0xb9)]<=0x1;}function l(_0x45105b){const _0x46ad7c=_0x4a2e80;return _0x45105b===void 0x0||(_0x45105b['width']===void 0x0||Number[_0x46ad7c(0x99)](_0x45105b['width'])&&_0x45105b[_0x46ad7c(0x8e)]>0x0)&&(_0x45105b['opacity']===void 0x0||Number[_0x46ad7c(0x99)](_0x45105b['opacity'])&&_0x45105b[_0x46ad7c(0xb9)]>=0x0&&_0x45105b[_0x46ad7c(0xb9)]<=0x1);}function _0x5cad(){const _0x35d139=['491547lSGOsG','BoardInkHandleKind','object','length','96OHTtJo','highlighter','buildInkCustomShapePayload','every','out','toStringTag','brush','insertInk','BoardElementType','transform','Module','kind','points','parentId','deepClone','784893tauOZW','FEnum','2813376WfCvfZ','ink','anchors','insertIndex','custom','closed','tool','84091FGWIuo','shapeData','Shape','opacity','4865166YByZgw','findElements','add','laneId','pen','style','5KACEjg','addElement','generateRandomId','725020spuiWp','smooth','extend','width','BoardInkTool','2090376FWlQgK','BoardInkPointType','FBoard','sourceModel','defineProperty','version','Tools','free','model','isFinite'];_0x5cad=function(){return _0x35d139;};return _0x5cad();}function _0x5cb5(_0x4bd682,_0x39405d){_0x4bd682=_0x4bd682-0x8b;const _0x5cadaa=_0x5cad();let _0x5cb5e8=_0x5cadaa[_0x4bd682];return _0x5cb5e8;}function u(_0x401ad4){return _0x401ad4&&typeof _0x401ad4=='object'&&!Array['isArray'](_0x401ad4)?_0x401ad4:{};}function d(_0x38f5ee){const _0x10bfed=_0x4a2e80;let _0x50fa71=u(_0x38f5ee[_0x10bfed(0xb3)])[_0x10bfed(0xb0)];if(!_0x50fa71||typeof _0x50fa71!=_0x10bfed(0x9c)||Array['isArray'](_0x50fa71))return null;let _0x4f0011=_0x50fa71;return _0x4f0011[_0x10bfed(0x95)]===0x1&&_0x4f0011['sourceModel']&&typeof _0x4f0011['sourceModel']==_0x10bfed(0x9c)?_0x4f0011:null;}function f(_0x431956){const _0x459bac=_0x4a2e80;return _0x431956['type']===e[_0x459bac(0xa6)]['Shape']&&!!d(_0x431956);}t[_0x4a2e80(0x92)][_0x4a2e80(0x8d)](a);const p={'Pen':_0x4a2e80(0xbe),'Brush':_0x4a2e80(0xa4),'Highlighter':_0x4a2e80(0x9f)},m={'Corner':'corner','Smooth':_0x4a2e80(0x8c),'Symmetric':'symmetric','Free':_0x4a2e80(0x97)},h={'Anchor':'anchor','In':'in','Out':_0x4a2e80(0xa2)};var g=class extends i[_0x4a2e80(0xae)]{get[_0x4a2e80(0x8f)](){return p;}get[_0x4a2e80(0x91)](){return m;}get[_0x4a2e80(0x9b)](){return h;}};i[_0x4a2e80(0xae)][_0x4a2e80(0x8d)](g),exports[_0x4a2e80(0x9b)]=h,exports[_0x4a2e80(0x91)]=m,exports[_0x4a2e80(0x8f)]=p;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x30af30=_0x5cce;(function(_0x117468,_0x41b8a2){const _0x4e7bea=_0x5cce,_0xf0da40=_0x117468();while(!![]){try{const _0x457a55=parseInt(_0x4e7bea(0xe4))/0x1+parseInt(_0x4e7bea(0x105))/0x2+-parseInt(_0x4e7bea(0xbd))/0x3+-parseInt(_0x4e7bea(0xfa))/0x4+-parseInt(_0x4e7bea(0xc2))/0x5+-parseInt(_0x4e7bea(0xfb))/0x6*(parseInt(_0x4e7bea(0xe7))/0x7)+-parseInt(_0x4e7bea(0x103))/0x8*(-parseInt(_0x4e7bea(0xca))/0x9);if(_0x457a55===_0x41b8a2)break;else _0xf0da40['push'](_0xf0da40['shift']());}catch(_0x209ec9){_0xf0da40['push'](_0xf0da40['shift']());}}}(_0x26c7,0xafa9a),Object[_0x30af30(0xf9)](exports,Symbol['toStringTag'],{'value':_0x30af30(0xe8)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x538f14){return{'x':_0x538f14['x'],'y':_0x538f14['y']};}function a(_0x46adb3){const _0x2c179c=_0x30af30;return{..._0x46adb3,'in':_0x46adb3['in']?i(_0x46adb3['in']):void 0x0,'out':_0x46adb3[_0x2c179c(0x114)]?i(_0x46adb3[_0x2c179c(0x114)]):void 0x0};}function o(_0x79045e){const _0x348b68=_0x30af30;return{'kind':_0x348b68(0xd8),'closed':_0x79045e['closed'],'anchors':_0x79045e[_0x348b68(0x10a)][_0x348b68(0x100)](a)};}function s(_0x394b99,_0x49b304,_0x1ddcd4){return{'x':_0x394b99['x']+(_0x49b304['x']-_0x394b99['x'])*_0x1ddcd4,'y':_0x394b99['y']+(_0x49b304['y']-_0x394b99['y'])*_0x1ddcd4};}function c(_0x1f9ede,_0x58cf32){const _0x59a330=_0x30af30;return Math[_0x59a330(0x11d)](_0x1f9ede['x']-_0x58cf32['x'],_0x1f9ede['y']-_0x58cf32['y']);}function l(_0x3dd049){const _0x3f4ecb=_0x30af30;let _0x2a524b=Math[_0x3f4ecb(0x11d)](_0x3dd049['x'],_0x3dd049['y']);return _0x2a524b<r?{'x':0x1,'y':0x0}:{'x':_0x3dd049['x']/_0x2a524b,'y':_0x3dd049['y']/_0x2a524b};}function u(_0x3d34d6,_0x2c13cb,_0x420d02=c(_0x3d34d6,_0x2c13cb)){let _0x19c886=l({'x':_0x3d34d6['x']-_0x2c13cb['x'],'y':_0x3d34d6['y']-_0x2c13cb['y']});return{'x':_0x3d34d6['x']+_0x19c886['x']*_0x420d02,'y':_0x3d34d6['y']+_0x19c886['y']*_0x420d02};}function d(_0x57983a,_0x2b7fec){const _0x224c34=_0x30af30;let {anchors:_0x5753a7}=_0x57983a;return _0x5753a7[_0x224c34(0x109)]<0x2||_0x2b7fec<0x0?null:_0x2b7fec<_0x5753a7[_0x224c34(0x109)]-0x1?{'startIndex':_0x2b7fec,'endIndex':_0x2b7fec+0x1,'start':_0x5753a7[_0x2b7fec],'end':_0x5753a7[_0x2b7fec+0x1]}:_0x57983a['closed']&&_0x2b7fec===_0x5753a7['length']-0x1?{'startIndex':_0x5753a7[_0x224c34(0x109)]-0x1,'endIndex':0x0,'start':_0x5753a7[_0x5753a7['length']-0x1],'end':_0x5753a7[0x0]}:null;}function _0x26c7(){const _0x29fe77=['Round','_injector','_adapters','find','string','pluginName','__ink-preview-anchor__','SolidFill','start','push','tool','prototype','ink.operation.start','defineProperty','2917324UiOvpU','6GMkaon','anchor','Inject','findClosestInkPenSegment','onStarting','map','slice','indexOf','144mcoZBN','ShapeFillEnum','2236452DLGMwm','UNIVER_INK_PLUGIN','registerCommand','endIndex','length','anchors','ICommandService','Rect','round','default','toPrimitive','opacity','DependentOn','symmetric','_config','out','color','points','registerAdapter','setInkPenAnchorPointType','ink-centerline-','createCustomShape','get','toDisposable','hypot','call','ShapeLineTypeEnum','UniverInkPlugin','decorate','corner','deleteInkPenAnchor','forEach','norm','ShapeTypeEnum','anchorId','setConfig','beginInkMode','IConfigService','findClosestInkPenHandle','UniverLicensePlugin','insertInkPenAnchorAt','function','fillColor','moveInkPenAnchorPoint','sqrt','@univerjs-pro/ink','createIdentifier','4199655aEqWSH','min','pointType','disposeWithMe','ShapeLineCapEnum','2041495mUdFRl','constructor','splice','distance','object','findIndex','filter','end','1249470lpiVYf','getInkPenPreviewModel','height','type','startIndex','iterator','free','cycleInkPenAnchorPointType','kind','none','SolidLine','segmentIndex','_configService','join','pen','add','Injector','symbol','UniverInstanceType','max','CommandType','UNIVER_UNKNOWN','merge','closed','_commandService','buildInkCustomShapePayload','359706tjobEU','left','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','5038901brBVib','Module','top','width','smooth'];_0x26c7=function(){return _0x29fe77;};return _0x26c7();}function f(_0x417336,_0x5a4596){const _0x2518ca=_0x30af30;var _0x576475,_0x2960f8;let _0x42088f=d(_0x417336,_0x5a4596);return _0x42088f?[_0x42088f['start'],(_0x576475=_0x42088f[_0x2518ca(0xf4)]['out'])==null?_0x42088f[_0x2518ca(0xf4)]:_0x576475,(_0x2960f8=_0x42088f[_0x2518ca(0xc9)]['in'])==null?_0x42088f[_0x2518ca(0xc9)]:_0x2960f8,_0x42088f[_0x2518ca(0xc9)]]:null;}function ee(_0x25cb54,_0x4c8bf1){const _0x1c860c=_0x30af30;var _0x34a0e2;return _0x4c8bf1===_0x1c860c(0xfc)?_0x25cb54:(_0x34a0e2=_0x25cb54[_0x4c8bf1])==null?null:_0x34a0e2;}function p(_0x2c1425,_0x1a1d73,_0x23e423){const _0x569d10=_0x30af30;return _0x23e423===_0x569d10(0xfc)||_0x2c1425[_0x569d10(0xe1)]?!0x0:_0x23e423==='in'?_0x1a1d73>0x0:_0x1a1d73<_0x2c1425[_0x569d10(0x10a)][_0x569d10(0x109)]-0x1;}function m(_0x379a91,_0x45f137){let [_0x563a88,_0x31f7a1,_0x5b5ba0,_0xf4b63f]=_0x379a91,_0x3600d3=s(_0x563a88,_0x31f7a1,_0x45f137),_0xed7b5b=s(_0x31f7a1,_0x5b5ba0,_0x45f137),_0x2b0c77=s(_0x5b5ba0,_0xf4b63f,_0x45f137);return s(s(_0x3600d3,_0xed7b5b,_0x45f137),s(_0xed7b5b,_0x2b0c77,_0x45f137),_0x45f137);}function h(_0x1b541c,_0x2b6a59){let [_0x555eae,_0x453dc9,_0x5d699,_0x49cf0b]=_0x1b541c,_0x5866cf=s(_0x555eae,_0x453dc9,_0x2b6a59),_0x2f8770=s(_0x453dc9,_0x5d699,_0x2b6a59),_0x29786c=s(_0x5d699,_0x49cf0b,_0x2b6a59),_0x443aca=s(_0x5866cf,_0x2f8770,_0x2b6a59),_0x4f8e40=s(_0x2f8770,_0x29786c,_0x2b6a59),_0x125be1=s(_0x443aca,_0x4f8e40,_0x2b6a59);return{'left':[_0x555eae,_0x5866cf,_0x443aca,_0x125be1],'right':[_0x125be1,_0x4f8e40,_0x29786c,_0x49cf0b]};}function g(_0x84d3a8,_0xb89711,_0x581e9d){const _0x4755b9=_0x30af30;let _0x4e4fd1=_0x581e9d['x']-_0xb89711['x'],_0x573516=_0x581e9d['y']-_0xb89711['y'],_0x3bc0ca=_0x4e4fd1*_0x4e4fd1+_0x573516*_0x573516,_0x56b43f=_0x3bc0ca<=r?0x0:Math['max'](0x0,Math[_0x4755b9(0xbe)](0x1,((_0x84d3a8['x']-_0xb89711['x'])*_0x4e4fd1+(_0x84d3a8['y']-_0xb89711['y'])*_0x573516)/_0x3bc0ca)),_0x55b195={'x':_0xb89711['x']+_0x4e4fd1*_0x56b43f,'y':_0xb89711['y']+_0x573516*_0x56b43f};return{'point':_0x55b195,'ratio':_0x56b43f,'distance':c(_0x84d3a8,_0x55b195)};}function te(_0x1a23ea,_0x22476,_0x1bd2ef){const _0x33031b=_0x30af30;return g(_0x1a23ea,_0x22476,_0x1bd2ef)[_0x33031b(0xc5)]**0x2;}function _(_0xd7c8ec,_0x4ec215){const _0x2e8841=_0x30af30;if(_0xd7c8ec[_0x2e8841(0x109)]<=0x2)return _0xd7c8ec[_0x2e8841(0x100)](i);let _0xf08070=0x0,_0x3a3e4f=0x0,_0x19d907=_0xd7c8ec[0x0],_0x282231=_0xd7c8ec[_0xd7c8ec['length']-0x1],_0x4f1fbb=_0x4ec215*_0x4ec215;for(let _0x14d587=0x1;_0x14d587<_0xd7c8ec[_0x2e8841(0x109)]-0x1;_0x14d587++){let _0x333eed=te(_0xd7c8ec[_0x14d587],_0x19d907,_0x282231);_0x333eed>_0xf08070&&(_0xf08070=_0x333eed,_0x3a3e4f=_0x14d587);}if(_0xf08070<=_0x4f1fbb)return[i(_0x19d907),i(_0x282231)];let _0x102ea1=_(_0xd7c8ec['slice'](0x0,_0x3a3e4f+0x1),_0x4ec215),_0x1359d5=_(_0xd7c8ec[_0x2e8841(0x101)](_0x3a3e4f),_0x4ec215);return[..._0x102ea1[_0x2e8841(0x101)](0x0,-0x1),..._0x1359d5];}function ne(_0x12f0d5,_0x2802e6){var _0x169a38;let _0x45a365=_0x12f0d5[_0x2802e6],_0x274d70=_0x12f0d5[_0x2802e6+0x1],_0x3cbaa0=(_0x169a38=_0x12f0d5[_0x2802e6-0x1])==null?_0x45a365:_0x169a38;return{'x':_0x45a365['x']+(_0x274d70['x']-_0x3cbaa0['x'])/0x6,'y':_0x45a365['y']+(_0x274d70['y']-_0x3cbaa0['y'])/0x6};}function v(_0x4f3b1d,_0x253fd4){var _0x28d454;let _0x5d423d=_0x4f3b1d[_0x253fd4],_0x54837a=_0x4f3b1d[_0x253fd4-0x1],_0x52eebc=(_0x28d454=_0x4f3b1d[_0x253fd4+0x1])==null?_0x5d423d:_0x28d454;return{'x':_0x5d423d['x']-(_0x52eebc['x']-_0x54837a['x'])/0x6,'y':_0x5d423d['y']-(_0x52eebc['y']-_0x54837a['y'])/0x6};}function y(_0x387335,_0x17e202){const _0x482be2=_0x30af30;var _0x386dbd,_0x23ff1d;let _0x434cf5=_0x387335[_0x482be2(0x10a)][_0x17e202],_0xaf85b5=(_0x386dbd=_0x387335[_0x482be2(0x10a)][_0x17e202-0x1])==null?_0x387335[_0x482be2(0xe1)]?_0x387335[_0x482be2(0x10a)][_0x387335[_0x482be2(0x10a)][_0x482be2(0x109)]-0x1]:null:_0x386dbd,_0x21edf8=(_0x23ff1d=_0x387335[_0x482be2(0x10a)][_0x17e202+0x1])==null?_0x387335['closed']?_0x387335[_0x482be2(0x10a)][0x0]:null:_0x23ff1d,_0x2e3e3d=_0xaf85b5&&_0x21edf8?l({'x':_0x21edf8['x']-_0xaf85b5['x'],'y':_0x21edf8['y']-_0xaf85b5['y']}):_0x21edf8?l({'x':_0x21edf8['x']-_0x434cf5['x'],'y':_0x21edf8['y']-_0x434cf5['y']}):_0xaf85b5?l({'x':_0x434cf5['x']-_0xaf85b5['x'],'y':_0x434cf5['y']-_0xaf85b5['y']}):{'x':0x1,'y':0x0},_0x5f118e=_0xaf85b5&&_0x21edf8?Math['max'](0x32,c(_0xaf85b5,_0x21edf8)/0x4):0x32;return{'in':{'x':_0x434cf5['x']-_0x2e3e3d['x']*_0x5f118e,'y':_0x434cf5['y']-_0x2e3e3d['y']*_0x5f118e},'out':{'x':_0x434cf5['x']+_0x2e3e3d['x']*_0x5f118e,'y':_0x434cf5['y']+_0x2e3e3d['y']*_0x5f118e}};}function b(_0x43673d,_0x1beaeb){const _0x3f8908=_0x30af30;let _0x1638b0=_0x43673d[_0x1beaeb],_0x3dfaff=_0x1beaeb==='in'?_0x3f8908(0x114):'in',_0x5eb37e=_0x43673d[_0x3dfaff];if(_0x1638b0){if(_0x43673d[_0x3f8908(0xbf)]===_0x3f8908(0x112)){_0x43673d[_0x3dfaff]=u(_0x43673d,_0x1638b0);return;}_0x43673d[_0x3f8908(0xbf)]===_0x3f8908(0xeb)&&(_0x43673d[_0x3dfaff]=u(_0x43673d,_0x1638b0,_0x5eb37e?c(_0x43673d,_0x5eb37e):c(_0x43673d,_0x1638b0)));}}function x(_0xf2778a,_0x220e37){const _0x9d014b=_0x30af30;let _0x1895aa=o(_0xf2778a);return!_0x220e37||_0x1895aa[_0x9d014b(0xe1)]||_0x1895aa[_0x9d014b(0x10a)]['length']===0x0||_0x1895aa[_0x9d014b(0x10a)]['push']({'id':_0x9d014b(0xf2),'x':_0x220e37['x'],'y':_0x220e37['y'],'pointType':_0x9d014b(0x122)}),_0x1895aa;}function re(_0x892b57,_0x1e5549={}){const _0x2a3320=_0x30af30;var _0x1d9114,_0x3afa40;let _0x2f96e8=Math[_0x2a3320(0xdd)](0x0,(_0x1d9114=_0x1e5549['tolerance'])==null?Math['max'](0x4,_0x892b57[_0x2a3320(0xea)]*0.35):_0x1d9114),_0x5c3b69=(_0x3afa40=_0x1e5549['createId'])==null?_0x548f7c=>_0x2a3320(0x119)+_0x548f7c:_0x3afa40,_0xe03d55=_(_0x892b57[_0x2a3320(0x116)],_0x2f96e8),_0x4428e7=_0xe03d55[_0x2a3320(0x100)]((_0x12f63e,_0x3ebddd)=>({'id':_0x5c3b69(_0x3ebddd),'x':_0x12f63e['x'],'y':_0x12f63e['y'],'pointType':'free'}));for(let _0x3cb257=0x0;_0x3cb257<_0x4428e7[_0x2a3320(0x109)]-0x1;_0x3cb257++)_0x4428e7[_0x3cb257][_0x2a3320(0x114)]=ne(_0xe03d55,_0x3cb257),_0x4428e7[_0x3cb257+0x1]['in']=v(_0xe03d55,_0x3cb257+0x1);return{'kind':_0x2a3320(0xd8),'closed':!0x1,'anchors':_0x4428e7};}function ie(_0xce3982,_0x1ab536,_0x49694a){const _0x43c7ed=_0x30af30;let _0x1b13e5=null,_0x5d6b85=[_0x43c7ed(0xfc),'in',_0x43c7ed(0x114)];return _0xce3982[_0x43c7ed(0x10a)][_0x43c7ed(0x124)]((_0x625e30,_0x511c99)=>{_0x5d6b85['forEach'](_0x2438ee=>{if(!p(_0xce3982,_0x511c99,_0x2438ee))return;let _0x215816=ee(_0x625e30,_0x2438ee);if(!_0x215816)return;let _0x19ad17=c(_0x1ab536,_0x215816);_0x19ad17>_0x49694a||_0x1b13e5&&_0x19ad17>=_0x1b13e5['distance']||(_0x1b13e5={'handle':{'kind':_0x2438ee,'anchorId':_0x625e30['id']},'point':i(_0x215816),'distance':_0x19ad17});});}),_0x1b13e5;}function S(_0x5863cb,_0x19dd00,_0x158b46){const _0x10bc23=_0x30af30;let _0x80edc8=null,_0x2cbcbe=_0x5863cb['closed']?_0x5863cb['anchors'][_0x10bc23(0x109)]:Math['max'](0x0,_0x5863cb['anchors']['length']-0x1);for(let _0xcb4694=0x0;_0xcb4694<_0x2cbcbe;_0xcb4694++){let _0x565b35=f(_0x5863cb,_0xcb4694);if(!_0x565b35)continue;let _0xa6c397=m(_0x565b35,0x0);for(let _0xf67ecc=0x1;_0xf67ecc<=0x20;_0xf67ecc++){let _0x4a4850=m(_0x565b35,_0xf67ecc/0x20),_0x302e22=g(_0x19dd00,_0xa6c397,_0x4a4850),_0x16e757=(_0xf67ecc-0x1+_0x302e22['ratio'])/0x20;(!_0x80edc8||_0x302e22[_0x10bc23(0xc5)]<_0x80edc8[_0x10bc23(0xc5)])&&(_0x80edc8={'segmentIndex':_0xcb4694,'t':_0x16e757,'point':_0x302e22['point'],'distance':_0x302e22[_0x10bc23(0xc5)]}),_0xa6c397=_0x4a4850;}}return _0x80edc8&&_0x80edc8[_0x10bc23(0xc5)]<=_0x158b46?_0x80edc8:null;}function _0x5cce(_0x3f8556,_0x2f8e10){_0x3f8556=_0x3f8556-0xae;const _0x26c7e3=_0x26c7();let _0x5cce71=_0x26c7e3[_0x3f8556];return _0x5cce71;}function C(_0x3c369b,_0x25050c,_0x1e460e){const _0x51014e=_0x30af30;let _0x2ee9b5=o(_0x3c369b),_0x11e76a=d(_0x2ee9b5,_0x25050c[_0x51014e(0xd5)]),_0x2ee308=f(_0x2ee9b5,_0x25050c[_0x51014e(0xd5)]);if(!_0x11e76a||!_0x2ee308)return _0x2ee9b5;let _0x35a967=h(_0x2ee308,Math[_0x51014e(0xdd)](0x0,Math[_0x51014e(0xbe)](0x1,_0x25050c['t']))),_0x8a3e06={'id':_0x1e460e(),'x':_0x35a967[_0x51014e(0xe5)][0x3]['x'],'y':_0x35a967['left'][0x3]['y'],'in':i(_0x35a967[_0x51014e(0xe5)][0x2]),'out':i(_0x35a967['right'][0x1]),'pointType':'free'};return _0x2ee9b5[_0x51014e(0x10a)][_0x11e76a['startIndex']]['out']=i(_0x35a967[_0x51014e(0xe5)][0x1]),_0x2ee9b5[_0x51014e(0x10a)][_0x11e76a[_0x51014e(0x108)]]['in']=i(_0x35a967['right'][0x2]),_0x2ee9b5[_0x51014e(0x10a)][_0x51014e(0xc4)](_0x11e76a[_0x51014e(0xce)]+0x1,0x0,_0x8a3e06),_0x2ee9b5;}function w(_0x3f736c,_0x776d48){const _0xc5b81f=_0x30af30;let _0x4b3717=o(_0x3f736c);return _0x4b3717['anchors']=_0x4b3717[_0xc5b81f(0x10a)][_0xc5b81f(0xc8)](_0x16d38a=>_0x16d38a['id']!==_0x776d48),_0x4b3717[_0xc5b81f(0xe1)]&&_0x4b3717[_0xc5b81f(0x10a)][_0xc5b81f(0x109)]<0x3&&(_0x4b3717[_0xc5b81f(0xe1)]=!0x1),_0x4b3717;}function T(_0x3d9430,_0x1d4d52,_0x3ea0e1){const _0x597b9e=_0x30af30;let _0xc11b95=o(_0x3d9430),_0xed0288=_0xc11b95[_0x597b9e(0x10a)][_0x597b9e(0xc7)](_0x378e99=>_0x378e99['id']===_0x1d4d52),_0x314a06=_0xc11b95[_0x597b9e(0x10a)][_0xed0288];if(!_0x314a06)return _0xc11b95;if(_0x314a06[_0x597b9e(0xbf)]=_0x3ea0e1,_0x3ea0e1===_0x597b9e(0x122))return delete _0x314a06['in'],delete _0x314a06[_0x597b9e(0x114)],_0xc11b95;let _0x27b1e5=y(_0xc11b95,_0xed0288);if(_0x314a06['in']=_0x314a06['in']?i(_0x314a06['in']):_0x27b1e5['in'],_0x314a06['out']=_0x314a06['out']?i(_0x314a06[_0x597b9e(0x114)]):_0x27b1e5[_0x597b9e(0x114)],_0x3ea0e1===_0x597b9e(0x112)){let _0x28de2d=Math[_0x597b9e(0xdd)](c(_0x314a06,_0x314a06['in']),c(_0x314a06,_0x314a06[_0x597b9e(0x114)]),0x32),_0x476be0=l({'x':_0x314a06[_0x597b9e(0x114)]['x']-_0x314a06['x'],'y':_0x314a06[_0x597b9e(0x114)]['y']-_0x314a06['y']});_0x314a06[_0x597b9e(0x114)]={'x':_0x314a06['x']+_0x476be0['x']*_0x28de2d,'y':_0x314a06['y']+_0x476be0['y']*_0x28de2d},_0x314a06['in']={'x':_0x314a06['x']-_0x476be0['x']*_0x28de2d,'y':_0x314a06['y']-_0x476be0['y']*_0x28de2d};}else _0x3ea0e1===_0x597b9e(0xeb)&&b(_0x314a06,_0x597b9e(0x114));return _0xc11b95;}function E(_0x54816e,_0x333e46){const _0x1da103=_0x30af30;var _0x3c4e3e;let _0x27007a=_0x54816e[_0x1da103(0x10a)][_0x1da103(0xef)](_0x3710f8=>_0x3710f8['id']===_0x333e46),_0x51def8=(_0x3c4e3e=_0x27007a==null?void 0x0:_0x27007a['pointType'])==null?'corner':_0x3c4e3e;return T(_0x54816e,_0x333e46,_0x51def8===_0x1da103(0x122)?'smooth':_0x51def8===_0x1da103(0xeb)?_0x1da103(0x112):_0x51def8===_0x1da103(0x112)?_0x1da103(0xd0):_0x1da103(0x122));}function ae(_0x3399e7,_0x13cc92,_0xd32cae){const _0x2fc8fc=_0x30af30;let _0x450da=o(_0x3399e7),_0x3340a1=_0x450da[_0x2fc8fc(0x10a)][_0x2fc8fc(0xef)](_0x2dffdf=>_0x2dffdf['id']===_0x13cc92[_0x2fc8fc(0xb0)]);if(!_0x3340a1)return _0x450da;if(_0x13cc92[_0x2fc8fc(0xd2)]===_0x2fc8fc(0xfc)){let _0x87a14={'x':_0xd32cae['x']-_0x3340a1['x'],'y':_0xd32cae['y']-_0x3340a1['y']};return _0x3340a1['x']=_0xd32cae['x'],_0x3340a1['y']=_0xd32cae['y'],_0x3340a1['in']&&(_0x3340a1['in']={'x':_0x3340a1['in']['x']+_0x87a14['x'],'y':_0x3340a1['in']['y']+_0x87a14['y']}),_0x3340a1['out']&&(_0x3340a1[_0x2fc8fc(0x114)]={'x':_0x3340a1[_0x2fc8fc(0x114)]['x']+_0x87a14['x'],'y':_0x3340a1[_0x2fc8fc(0x114)]['y']+_0x87a14['y']}),_0x450da;}return _0x3340a1[_0x13cc92[_0x2fc8fc(0xd2)]]=i(_0xd32cae),_0x3340a1['pointType']===_0x2fc8fc(0x122)&&(_0x3340a1[_0x2fc8fc(0xbf)]=_0x2fc8fc(0xd0)),b(_0x3340a1,_0x13cc92['kind']),_0x450da;}const D=1e-9;function O(_0x109295){const _0x1c0a3c=_0x30af30;let _0x463326=Math[_0x1c0a3c(0x10d)](_0x109295*0x2710)/0x2710;return Object['is'](_0x463326,-0x0)?'0':String(_0x463326);}function k(_0x38d48c){return O(_0x38d48c['x'])+'\x20'+O(_0x38d48c['y']);}function A(_0x45fbaf,_0x3951ed){return{'x':_0x45fbaf['x']-_0x3951ed['x'],'y':_0x45fbaf['y']-_0x3951ed['y']};}function j(_0x5e9a88,_0x5ac9c7,_0xa0d96e,_0x2149c4,_0x42b32e){let _0x448817=0x1-_0x42b32e;return{'x':_0x448817*_0x448817*_0x448817*_0x5e9a88['x']+0x3*_0x448817*_0x448817*_0x42b32e*_0x5ac9c7['x']+0x3*_0x448817*_0x42b32e*_0x42b32e*_0xa0d96e['x']+_0x42b32e*_0x42b32e*_0x42b32e*_0x2149c4['x'],'y':_0x448817*_0x448817*_0x448817*_0x5e9a88['y']+0x3*_0x448817*_0x448817*_0x42b32e*_0x5ac9c7['y']+0x3*_0x448817*_0x42b32e*_0x42b32e*_0xa0d96e['y']+_0x42b32e*_0x42b32e*_0x42b32e*_0x2149c4['y']};}function M(_0x27e8b9,_0x250b1c,_0x10dbf8,_0x3083b0){const _0x15064e=_0x30af30;let _0x18cd9b=-_0x27e8b9+0x3*_0x250b1c-0x3*_0x10dbf8+_0x3083b0,_0x269e77=0x3*_0x27e8b9-0x6*_0x250b1c+0x3*_0x10dbf8,_0x2e1579=-0x3*_0x27e8b9+0x3*_0x250b1c,_0x2c90eb=[];if(Math['abs'](_0x18cd9b)<D){if(Math['abs'](_0x269e77)<D)return _0x2c90eb;let _0x17d5b4=-_0x2e1579/(0x2*_0x269e77);return _0x17d5b4>0x0&&_0x17d5b4<0x1&&_0x2c90eb['push'](_0x17d5b4),_0x2c90eb;}let _0x23448d=_0x269e77*_0x269e77-0x3*_0x18cd9b*_0x2e1579;if(_0x23448d<0x0)return _0x2c90eb;let _0x5c2631=Math[_0x15064e(0xba)](Math[_0x15064e(0xdd)](0x0,_0x23448d)),_0x57119e=(-_0x269e77+_0x5c2631)/(0x3*_0x18cd9b),_0x1e1664=(-_0x269e77-_0x5c2631)/(0x3*_0x18cd9b);return _0x57119e>0x0&&_0x57119e<0x1&&_0x2c90eb[_0x15064e(0xf5)](_0x57119e),_0x1e1664>0x0&&_0x1e1664<0x1&&Math['abs'](_0x1e1664-_0x57119e)>D&&_0x2c90eb['push'](_0x1e1664),_0x2c90eb;}function N(_0xba0ec2,_0x395626,_0xdf703c,_0x21554f,_0x56405f){const _0x36886a=_0x30af30;_0xba0ec2[_0x36886a(0xf5)](_0x395626,_0x56405f),new Set([...M(_0x395626['x'],_0xdf703c['x'],_0x21554f['x'],_0x56405f['x']),...M(_0x395626['y'],_0xdf703c['y'],_0x21554f['y'],_0x56405f['y'])])['forEach'](_0x4e2cee=>{const _0x1f6407=_0x36886a;_0xba0ec2[_0x1f6407(0xf5)](j(_0x395626,_0xdf703c,_0x21554f,_0x56405f,_0x4e2cee));});}function P(_0x5ae775){const _0x5a762c=_0x30af30;let _0x32c12c=_0x5ae775[_0x5a762c(0x10a)];if(_0x32c12c[_0x5a762c(0x109)]<=0x1)return _0x32c12c;let _0x4a21b3=[];for(let _0x5c759a=0x1;_0x5c759a<_0x32c12c[_0x5a762c(0x109)];_0x5c759a++){var _0x551518,_0x244506;let _0x1298e6=_0x32c12c[_0x5c759a-0x1],_0x53c23b=_0x32c12c[_0x5c759a];N(_0x4a21b3,_0x1298e6,(_0x551518=_0x1298e6[_0x5a762c(0x114)])==null?_0x1298e6:_0x551518,(_0x244506=_0x53c23b['in'])==null?_0x53c23b:_0x244506,_0x53c23b);}if(_0x5ae775['closed']&&_0x32c12c[_0x5a762c(0x109)]>0x1){var _0x17d9b3,_0x56761c;let _0x39d9e9=_0x32c12c[_0x32c12c[_0x5a762c(0x109)]-0x1],_0x234e9c=_0x32c12c[0x0];N(_0x4a21b3,_0x39d9e9,(_0x17d9b3=_0x39d9e9[_0x5a762c(0x114)])==null?_0x39d9e9:_0x17d9b3,(_0x56761c=_0x234e9c['in'])==null?_0x234e9c:_0x56761c,_0x234e9c);}return _0x4a21b3;}function F(_0x530ad4){const _0x29f511=_0x30af30;let _0x5a9cd7=_0x530ad4[_0x29f511(0x116)];if(_0x5a9cd7[_0x29f511(0x109)]<=0x1)return _0x5a9cd7;let _0x26dc32=[];for(let _0x20bb3b=0x0;_0x20bb3b<_0x5a9cd7[_0x29f511(0x109)]-0x1;_0x20bb3b++){var _0x38cd15,_0x4e915b;let _0x27f14b=_0x5a9cd7[_0x20bb3b],_0x501765=_0x5a9cd7[_0x20bb3b+0x1],_0x4363d3=(_0x38cd15=_0x5a9cd7[_0x20bb3b-0x1])==null?_0x27f14b:_0x38cd15,_0x4d6b1e=(_0x4e915b=_0x5a9cd7[_0x20bb3b+0x2])==null?_0x501765:_0x4e915b;N(_0x26dc32,_0x27f14b,{'x':_0x27f14b['x']+(_0x501765['x']-_0x4363d3['x'])/0x6,'y':_0x27f14b['y']+(_0x501765['y']-_0x4363d3['y'])/0x6},{'x':_0x501765['x']-(_0x4d6b1e['x']-_0x27f14b['x'])/0x6,'y':_0x501765['y']-(_0x4d6b1e['y']-_0x27f14b['y'])/0x6},_0x501765);}return _0x26dc32;}function I(_0x5e6857){const _0xf16c9c=_0x30af30;return _0x5e6857[_0xf16c9c(0xd2)]===_0xf16c9c(0xd8)?P(_0x5e6857):F(_0x5e6857);}function L(_0x2cc489){const _0x15d200=_0x30af30;let _0x1920d7=Math[_0x15d200(0x10d)](_0x2cc489*0x2710)/0x2710;return Object['is'](_0x1920d7,-0x0)?0x0:_0x1920d7;}function R(_0x599529){const _0x23d667=_0x30af30;let _0x4e2c90=I(_0x599529);if(_0x4e2c90['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x130d17=Math[_0x23d667(0xbe)](..._0x4e2c90[_0x23d667(0x100)](_0x346dc7=>_0x346dc7['x'])),_0x223eb8=Math['min'](..._0x4e2c90[_0x23d667(0x100)](_0x4f6df2=>_0x4f6df2['y'])),_0x340439=Math['max'](..._0x4e2c90['map'](_0x1b3b69=>_0x1b3b69['x'])),_0x2c0e52=Math[_0x23d667(0xdd)](..._0x4e2c90['map'](_0x219ee9=>_0x219ee9['y']));return{'left':L(_0x130d17),'top':L(_0x223eb8),'width':L(Math[_0x23d667(0xdd)](0x1,_0x340439-_0x130d17)),'height':L(Math[_0x23d667(0xdd)](0x1,_0x2c0e52-_0x223eb8))};}function z(_0x3d2a8d,_0x5e5691){const _0x1b8445=_0x30af30;let _0x153ebf=_0x3d2a8d[_0x1b8445(0x10a)];if(_0x153ebf['length']===0x0)return'';let _0x28fbe8=['M\x20'+k(A(_0x153ebf[0x0],_0x5e5691))];for(let _0x1ee271=0x1;_0x1ee271<_0x153ebf[_0x1b8445(0x109)];_0x1ee271++){var _0x4db8b7,_0x1007a3;let _0x531e10=_0x153ebf[_0x1ee271-0x1],_0x340c1e=_0x153ebf[_0x1ee271],_0x2fe2c1=(_0x4db8b7=_0x531e10[_0x1b8445(0x114)])==null?_0x531e10:_0x4db8b7,_0x464987=(_0x1007a3=_0x340c1e['in'])==null?_0x340c1e:_0x1007a3;_0x28fbe8['push']('C\x20'+k(A(_0x2fe2c1,_0x5e5691))+'\x20'+k(A(_0x464987,_0x5e5691))+'\x20'+k(A(_0x340c1e,_0x5e5691)));}if(_0x3d2a8d['closed']&&_0x153ebf[_0x1b8445(0x109)]>0x1){var _0x1122d0,_0x197c32;let _0x58b3fe=_0x153ebf[_0x153ebf[_0x1b8445(0x109)]-0x1],_0x2eb2fb=_0x153ebf[0x0],_0x23eb24=(_0x1122d0=_0x58b3fe[_0x1b8445(0x114)])==null?_0x58b3fe:_0x1122d0,_0x39a77d=(_0x197c32=_0x2eb2fb['in'])==null?_0x2eb2fb:_0x197c32;_0x28fbe8[_0x1b8445(0xf5)]('C\x20'+k(A(_0x23eb24,_0x5e5691))+'\x20'+k(A(_0x39a77d,_0x5e5691))+'\x20'+k(A(_0x2eb2fb,_0x5e5691))),_0x28fbe8[_0x1b8445(0xf5)]('Z');}return _0x28fbe8[_0x1b8445(0xd7)]('\x20');}function B(_0x28187c,_0x405052){const _0x23bf41=_0x30af30;let _0x52958c=_0x28187c[_0x23bf41(0x116)][_0x23bf41(0x100)](_0x5a47e4=>A(_0x5a47e4,_0x405052));if(_0x52958c['length']===0x0)return'';if(_0x52958c[_0x23bf41(0x109)]===0x1)return'M\x20'+k(_0x52958c[0x0]);let _0x33ec4b=['M\x20'+k(_0x52958c[0x0])];for(let _0x1bbc09=0x0;_0x1bbc09<_0x52958c[_0x23bf41(0x109)]-0x1;_0x1bbc09++){var _0x255405,_0x487b4e;let _0x2f49ec=_0x52958c[_0x1bbc09],_0x369c49=_0x52958c[_0x1bbc09+0x1],_0x4b3234=(_0x255405=_0x52958c[_0x1bbc09-0x1])==null?_0x2f49ec:_0x255405,_0x1085f9=(_0x487b4e=_0x52958c[_0x1bbc09+0x2])==null?_0x369c49:_0x487b4e,_0x1ef4bd={'x':_0x2f49ec['x']+(_0x369c49['x']-_0x4b3234['x'])/0x6,'y':_0x2f49ec['y']+(_0x369c49['y']-_0x4b3234['y'])/0x6},_0x2a9eb0={'x':_0x369c49['x']-(_0x1085f9['x']-_0x2f49ec['x'])/0x6,'y':_0x369c49['y']-(_0x1085f9['y']-_0x2f49ec['y'])/0x6};_0x33ec4b['push']('C\x20'+k(_0x1ef4bd)+'\x20'+k(_0x2a9eb0)+'\x20'+k(_0x369c49));}return _0x33ec4b[_0x23bf41(0xd7)]('\x20');}function V(_0x435e33,_0x503b6d){const _0x6ee77d=_0x30af30;return _0x435e33[_0x6ee77d(0xd2)]===_0x6ee77d(0xd8)?z(_0x435e33,_0x503b6d):B(_0x435e33,_0x503b6d);}function H(_0x47ce1b,_0x36e973){const _0x8b49e9=_0x30af30;return _0x36e973!=null&&_0x36e973[_0x8b49e9(0x115)]?_0x36e973[_0x8b49e9(0x115)]:_0x47ce1b[_0x8b49e9(0xd2)]==='pen'?'#f54a45':_0x47ce1b[_0x8b49e9(0x115)];}function U(_0x32d003,_0x381143){const _0x1dab71=_0x30af30;return(_0x381143==null?void 0x0:_0x381143[_0x1dab71(0xea)])===void 0x0?_0x32d003[_0x1dab71(0xd2)]===_0x1dab71(0xd8)?0x2:_0x32d003[_0x1dab71(0xea)]:_0x381143[_0x1dab71(0xea)];}function W(_0x4a04ab,_0x5ef138){const _0x2d6c0c=_0x30af30;return(_0x5ef138==null?void 0x0:_0x5ef138['opacity'])===void 0x0?_0x4a04ab[_0x2d6c0c(0xd2)]==='pen'?void 0x0:_0x4a04ab[_0x2d6c0c(0x110)]:_0x5ef138[_0x2d6c0c(0x110)];}function oe(_0x3fff4a,_0x565146){const _0x50d4fd=_0x30af30;let _0x345587=R(_0x3fff4a),_0x36ff37=V(_0x3fff4a,{'x':_0x345587[_0x50d4fd(0xe5)],'y':_0x345587[_0x50d4fd(0xe9)]}),_0x46fe7e=_0x3fff4a[_0x50d4fd(0xd2)]==='pen'&&_0x3fff4a[_0x50d4fd(0xe1)],_0x1dc8a4=_0x565146==null?void 0x0:_0x565146[_0x50d4fd(0xb8)];return{'shapeType':e[_0x50d4fd(0xaf)][_0x50d4fd(0x10c)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x345587[_0x50d4fd(0xea)],'h':_0x345587[_0x50d4fd(0xcc)],'fill':_0x46fe7e?_0x50d4fd(0xae):_0x50d4fd(0xd3),'stroke':!0x0,'data':_0x36ff37,'dataArray':K(_0x3fff4a,{'x':_0x345587[_0x50d4fd(0xe5)],'y':_0x345587[_0x50d4fd(0xe9)]})}]},'fill':_0x46fe7e&&_0x1dc8a4?{'color':_0x1dc8a4,'fillType':e[_0x50d4fd(0x104)][_0x50d4fd(0xf3)]}:{'fillType':e[_0x50d4fd(0x104)]['NoFill']},'stroke':{'color':H(_0x3fff4a,_0x565146),'width':U(_0x3fff4a,_0x565146),'opacity':W(_0x3fff4a,_0x565146),'lineStrokeType':e[_0x50d4fd(0x11f)][_0x50d4fd(0xd4)],'capType':e[_0x50d4fd(0xc1)][_0x50d4fd(0xec)],'lineJoinType':e['ShapeLineJoinEnum'][_0x50d4fd(0xec)]}};}function G(_0x40241f,_0x3e0740){return{'x':_0x40241f['x']-_0x3e0740['x'],'y':_0x40241f['y']-_0x3e0740['y']};}function K(_0x69af48,_0x196830){const _0x17a958=_0x30af30;if(_0x69af48[_0x17a958(0xd2)]===_0x17a958(0xd8)){let _0x3e7cd6=_0x69af48[_0x17a958(0x10a)];if(_0x3e7cd6['length']===0x0)return[];let _0x1ad086=G(_0x3e7cd6[0x0],_0x196830),_0x282269=[{'command':'M','points':[_0x1ad086['x'],_0x1ad086['y']]}];for(let _0x427644=0x1;_0x427644<_0x3e7cd6[_0x17a958(0x109)];_0x427644++){var _0x1fcfce,_0x301d8f;let _0x5d3865=_0x3e7cd6[_0x427644-0x1],_0x3ad068=_0x3e7cd6[_0x427644],_0x2182b5=G((_0x1fcfce=_0x5d3865[_0x17a958(0x114)])==null?_0x5d3865:_0x1fcfce,_0x196830),_0x48b3ef=G((_0x301d8f=_0x3ad068['in'])==null?_0x3ad068:_0x301d8f,_0x196830),_0x14712e=G(_0x3ad068,_0x196830);_0x282269[_0x17a958(0xf5)]({'command':'C','points':[_0x2182b5['x'],_0x2182b5['y'],_0x48b3ef['x'],_0x48b3ef['y'],_0x14712e['x'],_0x14712e['y']]});}if(_0x69af48[_0x17a958(0xe1)]&&_0x3e7cd6[_0x17a958(0x109)]>0x1){var _0x944814,_0x289b26;let _0x957bcb=_0x3e7cd6[_0x3e7cd6[_0x17a958(0x109)]-0x1],_0xae8307=_0x3e7cd6[0x0],_0x5a2702=G((_0x944814=_0x957bcb[_0x17a958(0x114)])==null?_0x957bcb:_0x944814,_0x196830),_0x2fe8c9=G((_0x289b26=_0xae8307['in'])==null?_0xae8307:_0x289b26,_0x196830),_0x17184b=G(_0xae8307,_0x196830);_0x282269['push']({'command':'C','points':[_0x5a2702['x'],_0x5a2702['y'],_0x2fe8c9['x'],_0x2fe8c9['y'],_0x17184b['x'],_0x17184b['y']]}),_0x282269[_0x17a958(0xf5)]({'command':'z','points':[]});}return _0x282269;}let _0x307d6c=_0x69af48[_0x17a958(0x116)]['map'](_0x40fe3a=>G(_0x40fe3a,_0x196830));if(_0x307d6c[_0x17a958(0x109)]===0x0)return[];let _0xdcfb3e=[{'command':'M','points':[_0x307d6c[0x0]['x'],_0x307d6c[0x0]['y']]}];for(let _0x326ff1=0x0;_0x326ff1<_0x307d6c['length']-0x1;_0x326ff1++){var _0x2b9b41,_0x2db467;let _0x2c0027=_0x307d6c[_0x326ff1],_0x440842=_0x307d6c[_0x326ff1+0x1],_0x341411=(_0x2b9b41=_0x307d6c[_0x326ff1-0x1])==null?_0x2c0027:_0x2b9b41,_0x300b56=(_0x2db467=_0x307d6c[_0x326ff1+0x2])==null?_0x440842:_0x2db467,_0x40acfa={'x':_0x2c0027['x']+(_0x440842['x']-_0x341411['x'])/0x6,'y':_0x2c0027['y']+(_0x440842['y']-_0x341411['y'])/0x6},_0x122cdc={'x':_0x440842['x']-(_0x300b56['x']-_0x2c0027['x'])/0x6,'y':_0x440842['y']-(_0x300b56['y']-_0x2c0027['y'])/0x6};_0xdcfb3e['push']({'command':'C','points':[_0x40acfa['x'],_0x40acfa['y'],_0x122cdc['x'],_0x122cdc['y'],_0x440842['x'],_0x440842['y']]});}return _0xdcfb3e;}function q(_0x3fc525){const _0x41ac02=_0x30af30;var _0xcc9c19;let {model:_0x502304,sourceModel:_0x2e3df8=_0x502304,style:_0xbca427}=_0x3fc525,_0x573b81=(_0xcc9c19=_0x3fc525[_0x41ac02(0xf6)])==null?_0x502304[_0x41ac02(0xd2)]:_0xcc9c19,_0x4783a1=R(_0x502304),_0x1b9648=_0x502304[_0x41ac02(0xd2)]===_0x41ac02(0xd8)&&_0x573b81!=='pen'?_0x502304:void 0x0;return{'transform':{..._0x4783a1,'rotation':0x0},'shapeData':oe(_0x502304,_0xbca427),'ink':{'version':0x1,'tool':_0x573b81,'sourceModel':_0x2e3df8,..._0x1b9648?{'editModel':_0x1b9648}:{},'normalizedBounds':_0x4783a1}};}var se=_0x30af30(0xbb),ce='1.0.0-alpha.5';function J(_0x2e37ba){'@babel/helpers - typeof';const _0x4c5188=_0x30af30;return J=typeof Symbol==_0x4c5188(0xb7)&&typeof Symbol[_0x4c5188(0xcf)]==_0x4c5188(0xdb)?function(_0x2064a7){return typeof _0x2064a7;}:function(_0x320ea0){const _0x2854d6=_0x4c5188;return _0x320ea0&&typeof Symbol==_0x2854d6(0xb7)&&_0x320ea0[_0x2854d6(0xc3)]===Symbol&&_0x320ea0!==Symbol[_0x2854d6(0xf7)]?_0x2854d6(0xdb):typeof _0x320ea0;},J(_0x2e37ba);}function le(_0x37ca37,_0xd67947){const _0x400f11=_0x30af30;if(J(_0x37ca37)!=_0x400f11(0xc6)||!_0x37ca37)return _0x37ca37;var _0x459a1c=_0x37ca37[Symbol[_0x400f11(0x10f)]];if(_0x459a1c!==void 0x0){var _0x489db2=_0x459a1c[_0x400f11(0x11e)](_0x37ca37,_0xd67947||_0x400f11(0x10e));if(J(_0x489db2)!='object')return _0x489db2;throw TypeError(_0x400f11(0xe6));}return(_0xd67947===_0x400f11(0xf0)?String:Number)(_0x37ca37);}function ue(_0x11cdda){const _0x134ddf=_0x30af30;var _0x10e4f7=le(_0x11cdda,_0x134ddf(0xf0));return J(_0x10e4f7)==_0x134ddf(0xdb)?_0x10e4f7:_0x10e4f7+'';}function Y(_0x46dc2f,_0x3979ac,_0x454cd9){const _0x4cf8e0=_0x30af30;return(_0x3979ac=ue(_0x3979ac))in _0x46dc2f?Object[_0x4cf8e0(0xf9)](_0x46dc2f,_0x3979ac,{'value':_0x454cd9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46dc2f[_0x3979ac]=_0x454cd9,_0x46dc2f;}const X=(0x0,n[_0x30af30(0xbc)])('ink.host-adapter.service');var de=class{constructor(){Y(this,'_adapters',[]);}[_0x30af30(0x117)](_0x4ec81f){const _0x57d9f6=_0x30af30;return this[_0x57d9f6(0xee)][_0x57d9f6(0xf5)](_0x4ec81f),(0x0,n[_0x57d9f6(0x11c)])(()=>{const _0x27cba7=_0x57d9f6;let _0x2eb754=this[_0x27cba7(0xee)][_0x27cba7(0x102)](_0x4ec81f);_0x2eb754>=0x0&&this[_0x27cba7(0xee)][_0x27cba7(0xc4)](_0x2eb754,0x1);});}[_0x30af30(0xb2)](_0x38048d){const _0x4427b9=_0x30af30;for(let _0x42c7d7 of this[_0x4427b9(0xee)])if(_0x42c7d7[_0x4427b9(0xb2)](_0x38048d))return!0x0;return!0x1;}async[_0x30af30(0x11a)](_0x3e81b1){const _0x3d73bb=_0x30af30;for(let _0xb9b333 of this[_0x3d73bb(0xee)])if(_0xb9b333['createCustomShape']&&await _0xb9b333[_0x3d73bb(0x11a)](_0x3e81b1))return!0x0;return!0x1;}};const fe={'id':_0x30af30(0xf8),'type':n[_0x30af30(0xde)]['OPERATION'],'handler':(_0x37fa07,_0x39124d)=>_0x39124d?_0x37fa07[_0x30af30(0x11b)](X)[_0x30af30(0xb2)](_0x39124d):!0x1},Z={};function Q(_0x426ab,_0x33ad67){return function(_0x2d03ce,_0x494561){_0x33ad67(_0x2d03ce,_0x494561,_0x426ab);};}function pe(_0x5c6307,_0x391d65,_0x1f1d27,_0x1a0d56){const _0x2150e1=_0x30af30;var _0x99354c=arguments[_0x2150e1(0x109)],_0x47090f=_0x99354c<0x3?_0x391d65:_0x1a0d56===null?_0x1a0d56=Object['getOwnPropertyDescriptor'](_0x391d65,_0x1f1d27):_0x1a0d56,_0x486fdd;if(typeof Reflect=='object'&&typeof Reflect[_0x2150e1(0x121)]==_0x2150e1(0xb7))_0x47090f=Reflect[_0x2150e1(0x121)](_0x5c6307,_0x391d65,_0x1f1d27,_0x1a0d56);else{for(var _0x54d5f7=_0x5c6307[_0x2150e1(0x109)]-0x1;_0x54d5f7>=0x0;_0x54d5f7--)(_0x486fdd=_0x5c6307[_0x54d5f7])&&(_0x47090f=(_0x99354c<0x3?_0x486fdd(_0x47090f):_0x99354c>0x3?_0x486fdd(_0x391d65,_0x1f1d27,_0x47090f):_0x486fdd(_0x391d65,_0x1f1d27))||_0x47090f);}return _0x99354c>0x3&&_0x47090f&&Object[_0x2150e1(0xf9)](_0x391d65,_0x1f1d27,_0x47090f),_0x47090f;}let $=class extends n['Plugin']{constructor(_0x3fe5b2=Z,_0x1ee381,_0x5d7c98,_0x5a9f30){const _0x1ebcbe=_0x30af30;super(),this[_0x1ebcbe(0x113)]=_0x3fe5b2,this[_0x1ebcbe(0xed)]=_0x1ee381,this[_0x1ebcbe(0xe2)]=_0x5d7c98,this[_0x1ebcbe(0xd6)]=_0x5a9f30;let {..._0x1483c3}=(0x0,n[_0x1ebcbe(0xe0)])({},Z,this['_config']);this[_0x1ebcbe(0xd6)][_0x1ebcbe(0xb1)]('ink.config',_0x1483c3);}[_0x30af30(0xff)](){const _0x4816a3=_0x30af30;[[X,{'useClass':de}]][_0x4816a3(0x124)](_0x1a5be0=>this[_0x4816a3(0xed)][_0x4816a3(0xd9)](_0x1a5be0)),this[_0x4816a3(0xc0)](this[_0x4816a3(0xe2)][_0x4816a3(0x107)](fe));}};Y($,_0x30af30(0xf1),_0x30af30(0x106)),Y($,'packageName',se),Y($,'version',ce),Y($,_0x30af30(0xcd),n[_0x30af30(0xdc)][_0x30af30(0xdf)]),$=pe([(0x0,n[_0x30af30(0x111)])(t[_0x30af30(0xb5)]),Q(0x1,(0x0,n[_0x30af30(0xfd)])(n[_0x30af30(0xda)])),Q(0x2,n[_0x30af30(0x10b)]),Q(0x3,n[_0x30af30(0xb3)])],$),exports['IInkHostAdapterService']=X,Object[_0x30af30(0xf9)](exports,_0x30af30(0x120),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x30af30(0xe3)]=q,exports['convertBrushModelToPenModel']=re,exports[_0x30af30(0xd1)]=E,exports[_0x30af30(0x123)]=w,exports[_0x30af30(0xb4)]=ie,exports[_0x30af30(0xfe)]=S,exports['getInkModelBounds']=R,exports[_0x30af30(0xcb)]=x,exports[_0x30af30(0xb6)]=C,exports['isInkPenHandleVisible']=p,exports[_0x30af30(0xb9)]=ae,exports[_0x30af30(0x118)]=T;
|
|
1
|
+
const _0x59a874=_0x193f;(function(_0x4f5db1,_0xe390d2){const _0x1b0e9f=_0x193f,_0x26299b=_0x4f5db1();while(!![]){try{const _0x47024a=parseInt(_0x1b0e9f(0x1b3))/0x1+-parseInt(_0x1b0e9f(0x183))/0x2+parseInt(_0x1b0e9f(0x172))/0x3*(-parseInt(_0x1b0e9f(0x180))/0x4)+-parseInt(_0x1b0e9f(0x1a4))/0x5+-parseInt(_0x1b0e9f(0x187))/0x6+-parseInt(_0x1b0e9f(0x1b0))/0x7*(-parseInt(_0x1b0e9f(0x1c1))/0x8)+-parseInt(_0x1b0e9f(0x1ca))/0x9*(-parseInt(_0x1b0e9f(0x1d2))/0xa);if(_0x47024a===_0xe390d2)break;else _0x26299b['push'](_0x26299b['shift']());}catch(_0x22d8eb){_0x26299b['push'](_0x26299b['shift']());}}}(_0x46e4,0x93b6b),Object[_0x59a874(0x164)](exports,Symbol['toStringTag'],{'value':_0x59a874(0x175)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x889d19){return{'x':_0x889d19['x'],'y':_0x889d19['y']};}function a(_0x341a6b){const _0x178b85=_0x59a874;return{..._0x341a6b,'in':_0x341a6b['in']?i(_0x341a6b['in']):void 0x0,'out':_0x341a6b['out']?i(_0x341a6b[_0x178b85(0x1b6)]):void 0x0};}function o(_0x5000c0){const _0x3d6090=_0x59a874;return{'kind':_0x3d6090(0x174),'closed':_0x5000c0[_0x3d6090(0x16d)],'anchors':_0x5000c0[_0x3d6090(0x188)][_0x3d6090(0x17a)](a)};}function s(_0x316b4e,_0x43d3e3,_0x1f47d6){return{'x':_0x316b4e['x']+(_0x43d3e3['x']-_0x316b4e['x'])*_0x1f47d6,'y':_0x316b4e['y']+(_0x43d3e3['y']-_0x316b4e['y'])*_0x1f47d6};}function c(_0x59c9da,_0x2dbbea){const _0x157487=_0x59a874;return Math[_0x157487(0x16b)](_0x59c9da['x']-_0x2dbbea['x'],_0x59c9da['y']-_0x2dbbea['y']);}function l(_0x98f842){const _0xfc3492=_0x59a874;let _0x453f6d=Math[_0xfc3492(0x16b)](_0x98f842['x'],_0x98f842['y']);return _0x453f6d<r?{'x':0x1,'y':0x0}:{'x':_0x98f842['x']/_0x453f6d,'y':_0x98f842['y']/_0x453f6d};}function u(_0x33d0da,_0x4f0d94,_0x7a2900=c(_0x33d0da,_0x4f0d94)){let _0x495a8f=l({'x':_0x33d0da['x']-_0x4f0d94['x'],'y':_0x33d0da['y']-_0x4f0d94['y']});return{'x':_0x33d0da['x']+_0x495a8f['x']*_0x7a2900,'y':_0x33d0da['y']+_0x495a8f['y']*_0x7a2900};}function d(_0xff1417,_0xb65cad){const _0x3bda45=_0x59a874;let {anchors:_0x47a94f}=_0xff1417;return _0x47a94f[_0x3bda45(0x198)]<0x2||_0xb65cad<0x0?null:_0xb65cad<_0x47a94f['length']-0x1?{'startIndex':_0xb65cad,'endIndex':_0xb65cad+0x1,'start':_0x47a94f[_0xb65cad],'end':_0x47a94f[_0xb65cad+0x1]}:_0xff1417[_0x3bda45(0x16d)]&&_0xb65cad===_0x47a94f[_0x3bda45(0x198)]-0x1?{'startIndex':_0x47a94f[_0x3bda45(0x198)]-0x1,'endIndex':0x0,'start':_0x47a94f[_0x47a94f[_0x3bda45(0x198)]-0x1],'end':_0x47a94f[0x0]}:null;}function f(_0x510ded,_0x3c366c){const _0xfaeb6a=_0x59a874;var _0x3dca57,_0x833402;let _0x2c9a57=d(_0x510ded,_0x3c366c);return _0x2c9a57?[_0x2c9a57[_0xfaeb6a(0x191)],(_0x3dca57=_0x2c9a57['start'][_0xfaeb6a(0x1b6)])==null?_0x2c9a57[_0xfaeb6a(0x191)]:_0x3dca57,(_0x833402=_0x2c9a57[_0xfaeb6a(0x19f)]['in'])==null?_0x2c9a57[_0xfaeb6a(0x19f)]:_0x833402,_0x2c9a57[_0xfaeb6a(0x19f)]]:null;}function ee(_0x197be2,_0x1eeba9){var _0x5173fe;return _0x1eeba9==='anchor'?_0x197be2:(_0x5173fe=_0x197be2[_0x1eeba9])==null?null:_0x5173fe;}function p(_0x51c8cb,_0x312194,_0x20594f){const _0x3b1c14=_0x59a874;return _0x20594f===_0x3b1c14(0x1ce)||_0x51c8cb[_0x3b1c14(0x16d)]?!0x0:_0x20594f==='in'?_0x312194>0x0:_0x312194<_0x51c8cb[_0x3b1c14(0x188)]['length']-0x1;}function m(_0x11ee17,_0x339cbb){let [_0x592f48,_0x24cf3d,_0x5f4aef,_0x4a1aca]=_0x11ee17,_0x4b502e=s(_0x592f48,_0x24cf3d,_0x339cbb),_0x320de1=s(_0x24cf3d,_0x5f4aef,_0x339cbb),_0x1cd89f=s(_0x5f4aef,_0x4a1aca,_0x339cbb);return s(s(_0x4b502e,_0x320de1,_0x339cbb),s(_0x320de1,_0x1cd89f,_0x339cbb),_0x339cbb);}function h(_0x3f6fc6,_0x386e33){let [_0xc2e0ef,_0x339aca,_0x413512,_0x15ada4]=_0x3f6fc6,_0x42040d=s(_0xc2e0ef,_0x339aca,_0x386e33),_0x35f973=s(_0x339aca,_0x413512,_0x386e33),_0x46990a=s(_0x413512,_0x15ada4,_0x386e33),_0x3ff375=s(_0x42040d,_0x35f973,_0x386e33),_0x2574c5=s(_0x35f973,_0x46990a,_0x386e33),_0x413e99=s(_0x3ff375,_0x2574c5,_0x386e33);return{'left':[_0xc2e0ef,_0x42040d,_0x3ff375,_0x413e99],'right':[_0x413e99,_0x2574c5,_0x46990a,_0x15ada4]};}function g(_0x1f1879,_0x4dc181,_0x4ab63c){const _0x59caeb=_0x59a874;let _0x3aa640=_0x4ab63c['x']-_0x4dc181['x'],_0x120940=_0x4ab63c['y']-_0x4dc181['y'],_0x7d19e9=_0x3aa640*_0x3aa640+_0x120940*_0x120940,_0x3636f1=_0x7d19e9<=r?0x0:Math[_0x59caeb(0x189)](0x0,Math[_0x59caeb(0x1ba)](0x1,((_0x1f1879['x']-_0x4dc181['x'])*_0x3aa640+(_0x1f1879['y']-_0x4dc181['y'])*_0x120940)/_0x7d19e9)),_0x38eb45={'x':_0x4dc181['x']+_0x3aa640*_0x3636f1,'y':_0x4dc181['y']+_0x120940*_0x3636f1};return{'point':_0x38eb45,'ratio':_0x3636f1,'distance':c(_0x1f1879,_0x38eb45)};}function te(_0x915348,_0x55fb5a,_0xa7aae2){return g(_0x915348,_0x55fb5a,_0xa7aae2)['distance']**0x2;}function _(_0x133000,_0x5c3e5b){const _0x269b6e=_0x59a874;if(_0x133000[_0x269b6e(0x198)]<=0x2)return _0x133000[_0x269b6e(0x17a)](i);let _0x46a117=0x0,_0x26b48e=0x0,_0x4e9847=_0x133000[0x0],_0x1f4cca=_0x133000[_0x133000[_0x269b6e(0x198)]-0x1],_0x3729bf=_0x5c3e5b*_0x5c3e5b;for(let _0x109e6e=0x1;_0x109e6e<_0x133000[_0x269b6e(0x198)]-0x1;_0x109e6e++){let _0x1bb6a9=te(_0x133000[_0x109e6e],_0x4e9847,_0x1f4cca);_0x1bb6a9>_0x46a117&&(_0x46a117=_0x1bb6a9,_0x26b48e=_0x109e6e);}if(_0x46a117<=_0x3729bf)return[i(_0x4e9847),i(_0x1f4cca)];let _0x15b063=_(_0x133000[_0x269b6e(0x1c6)](0x0,_0x26b48e+0x1),_0x5c3e5b),_0x21ee26=_(_0x133000[_0x269b6e(0x1c6)](_0x26b48e),_0x5c3e5b);return[..._0x15b063[_0x269b6e(0x1c6)](0x0,-0x1),..._0x21ee26];}function ne(_0x55d7ea,_0x4654ee){var _0x37372e;let _0x24ba50=_0x55d7ea[_0x4654ee],_0x30d351=_0x55d7ea[_0x4654ee+0x1],_0x261e69=(_0x37372e=_0x55d7ea[_0x4654ee-0x1])==null?_0x24ba50:_0x37372e;return{'x':_0x24ba50['x']+(_0x30d351['x']-_0x261e69['x'])/0x6,'y':_0x24ba50['y']+(_0x30d351['y']-_0x261e69['y'])/0x6};}function v(_0x4687b0,_0x50a46b){var _0x594b80;let _0x2cb43e=_0x4687b0[_0x50a46b],_0x3abbf6=_0x4687b0[_0x50a46b-0x1],_0x31d175=(_0x594b80=_0x4687b0[_0x50a46b+0x1])==null?_0x2cb43e:_0x594b80;return{'x':_0x2cb43e['x']-(_0x31d175['x']-_0x3abbf6['x'])/0x6,'y':_0x2cb43e['y']-(_0x31d175['y']-_0x3abbf6['y'])/0x6};}function y(_0x3620f8,_0x161f82){const _0x396b42=_0x59a874;var _0x48601c,_0x201de4;let _0x860045=_0x3620f8[_0x396b42(0x188)][_0x161f82],_0x40633b=(_0x48601c=_0x3620f8['anchors'][_0x161f82-0x1])==null?_0x3620f8['closed']?_0x3620f8[_0x396b42(0x188)][_0x3620f8[_0x396b42(0x188)][_0x396b42(0x198)]-0x1]:null:_0x48601c,_0x255ee8=(_0x201de4=_0x3620f8[_0x396b42(0x188)][_0x161f82+0x1])==null?_0x3620f8[_0x396b42(0x16d)]?_0x3620f8[_0x396b42(0x188)][0x0]:null:_0x201de4,_0x34bdbd=_0x40633b&&_0x255ee8?l({'x':_0x255ee8['x']-_0x40633b['x'],'y':_0x255ee8['y']-_0x40633b['y']}):_0x255ee8?l({'x':_0x255ee8['x']-_0x860045['x'],'y':_0x255ee8['y']-_0x860045['y']}):_0x40633b?l({'x':_0x860045['x']-_0x40633b['x'],'y':_0x860045['y']-_0x40633b['y']}):{'x':0x1,'y':0x0},_0x2dd9c2=_0x40633b&&_0x255ee8?Math['max'](0x32,c(_0x40633b,_0x255ee8)/0x4):0x32;return{'in':{'x':_0x860045['x']-_0x34bdbd['x']*_0x2dd9c2,'y':_0x860045['y']-_0x34bdbd['y']*_0x2dd9c2},'out':{'x':_0x860045['x']+_0x34bdbd['x']*_0x2dd9c2,'y':_0x860045['y']+_0x34bdbd['y']*_0x2dd9c2}};}function b(_0x3aaa89,_0x563bd9){const _0x3d191a=_0x59a874;let _0x2f2d34=_0x3aaa89[_0x563bd9],_0x5b93dc=_0x563bd9==='in'?_0x3d191a(0x1b6):'in',_0x108c7d=_0x3aaa89[_0x5b93dc];if(_0x2f2d34){if(_0x3aaa89[_0x3d191a(0x18c)]===_0x3d191a(0x1a0)){_0x3aaa89[_0x5b93dc]=u(_0x3aaa89,_0x2f2d34);return;}_0x3aaa89[_0x3d191a(0x18c)]==='smooth'&&(_0x3aaa89[_0x5b93dc]=u(_0x3aaa89,_0x2f2d34,_0x108c7d?c(_0x3aaa89,_0x108c7d):c(_0x3aaa89,_0x2f2d34)));}}function x(_0x268fdf,_0x9e347d){const _0x3251fe=_0x59a874;let _0x22d0a1=o(_0x268fdf);return!_0x9e347d||_0x22d0a1[_0x3251fe(0x16d)]||_0x22d0a1[_0x3251fe(0x188)][_0x3251fe(0x198)]===0x0||_0x22d0a1[_0x3251fe(0x188)][_0x3251fe(0x16f)]({'id':_0x3251fe(0x170),'x':_0x9e347d['x'],'y':_0x9e347d['y'],'pointType':_0x3251fe(0x186)}),_0x22d0a1;}function re(_0x10665c,_0x58c883={}){const _0x17cb56=_0x59a874;var _0x176d7d,_0x5023e6;let _0x58874e=Math[_0x17cb56(0x189)](0x0,(_0x176d7d=_0x58c883[_0x17cb56(0x1bf)])==null?Math[_0x17cb56(0x189)](0x4,_0x10665c['width']*0.35):_0x176d7d),_0x55f162=(_0x5023e6=_0x58c883[_0x17cb56(0x1c0)])==null?_0x339ed3=>_0x17cb56(0x1a6)+_0x339ed3:_0x5023e6,_0x97c22a=_(_0x10665c[_0x17cb56(0x195)],_0x58874e),_0x598bf7=_0x97c22a[_0x17cb56(0x17a)]((_0x28ad76,_0x344a11)=>({'id':_0x55f162(_0x344a11),'x':_0x28ad76['x'],'y':_0x28ad76['y'],'pointType':_0x17cb56(0x1b8)}));for(let _0x2a93d8=0x0;_0x2a93d8<_0x598bf7['length']-0x1;_0x2a93d8++)_0x598bf7[_0x2a93d8][_0x17cb56(0x1b6)]=ne(_0x97c22a,_0x2a93d8),_0x598bf7[_0x2a93d8+0x1]['in']=v(_0x97c22a,_0x2a93d8+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x598bf7};}function _0x46e4(){const _0x2264a6=['object','ShapeFillEnum','string','slice','default','SolidFill','1.0.0-alpha.7','218394owSsJX','startIndex','moveInkPenAnchorPoint','ShapeTypeEnum','anchor','tool','Round','kind','890MyIxJW','toPrimitive','color','defineProperty','registerCommand','decorate','_configService','_adapters','onStarting','forEach','hypot','splice','closed','UNIVER_UNKNOWN','push','__ink-preview-anchor__','distance','6jcPjiI','setInkPenAnchorPointType','pen','Module','ICommandService','norm','createCustomShape','find','map','ink.host-adapter.service','OPERATION','findIndex','left','call','1957724XEbgeB','IInkHostAdapterService','getInkPenPreviewModel','633222BsKZwn','insertInkPenAnchorAt','filter','corner','3534630efFeeE','anchors','max','symbol','ink.operation.start','pointType','UNIVER_INK_PLUGIN','_commandService','indexOf','findClosestInkPenHandle','start','ShapeLineCapEnum','constructor','ShapeLineJoinEnum','points','abs','merge','length','prototype','getOwnPropertyDescriptor','findClosestInkPenSegment','top','Inject','opacity','end','symmetric','SolidLine','endIndex','width','5674260pwamPG','UniverInkPlugin','ink-centerline-','segmentIndex','UniverLicensePlugin','iterator','join','point','NoFill','ShapeLineTypeEnum','Plugin','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','134715FMrbTo','registerAdapter','get','714236sfrVbj','smooth','toDisposable','out','_config','free','convertBrushModelToPenModel','min','function','beginInkMode','height','anchorId','tolerance','createId','312slTZjO','round'];_0x46e4=function(){return _0x2264a6;};return _0x46e4();}function ie(_0x22a915,_0x1bde6e,_0x16771b){const _0x986a14=_0x59a874;let _0x282b75=null,_0x254c21=[_0x986a14(0x1ce),'in',_0x986a14(0x1b6)];return _0x22a915[_0x986a14(0x188)][_0x986a14(0x16a)]((_0x329961,_0x6ee73e)=>{const _0x16a46a=_0x986a14;_0x254c21[_0x16a46a(0x16a)](_0x1c6f71=>{const _0x151cec=_0x16a46a;if(!p(_0x22a915,_0x6ee73e,_0x1c6f71))return;let _0x5efdc4=ee(_0x329961,_0x1c6f71);if(!_0x5efdc4)return;let _0x2cbed0=c(_0x1bde6e,_0x5efdc4);_0x2cbed0>_0x16771b||_0x282b75&&_0x2cbed0>=_0x282b75[_0x151cec(0x171)]||(_0x282b75={'handle':{'kind':_0x1c6f71,'anchorId':_0x329961['id']},'point':i(_0x5efdc4),'distance':_0x2cbed0});});}),_0x282b75;}function S(_0x54c289,_0x195ef8,_0x412d1a){const _0x4dd555=_0x59a874;let _0x31a1e7=null,_0x14a205=_0x54c289[_0x4dd555(0x16d)]?_0x54c289['anchors'][_0x4dd555(0x198)]:Math[_0x4dd555(0x189)](0x0,_0x54c289['anchors'][_0x4dd555(0x198)]-0x1);for(let _0x314cac=0x0;_0x314cac<_0x14a205;_0x314cac++){let _0x32b367=f(_0x54c289,_0x314cac);if(!_0x32b367)continue;let _0x1e58b6=m(_0x32b367,0x0);for(let _0x2bf85a=0x1;_0x2bf85a<=0x20;_0x2bf85a++){let _0x59cba2=m(_0x32b367,_0x2bf85a/0x20),_0x5cd7c3=g(_0x195ef8,_0x1e58b6,_0x59cba2),_0x5014f6=(_0x2bf85a-0x1+_0x5cd7c3['ratio'])/0x20;(!_0x31a1e7||_0x5cd7c3['distance']<_0x31a1e7[_0x4dd555(0x171)])&&(_0x31a1e7={'segmentIndex':_0x314cac,'t':_0x5014f6,'point':_0x5cd7c3[_0x4dd555(0x1ab)],'distance':_0x5cd7c3[_0x4dd555(0x171)]}),_0x1e58b6=_0x59cba2;}}return _0x31a1e7&&_0x31a1e7[_0x4dd555(0x171)]<=_0x412d1a?_0x31a1e7:null;}function C(_0x2fbeec,_0x905720,_0x476442){const _0x48f8ed=_0x59a874;let _0x4c2634=o(_0x2fbeec),_0x45f38c=d(_0x4c2634,_0x905720[_0x48f8ed(0x1a7)]),_0x2d1d69=f(_0x4c2634,_0x905720['segmentIndex']);if(!_0x45f38c||!_0x2d1d69)return _0x4c2634;let _0x3b1fe0=h(_0x2d1d69,Math[_0x48f8ed(0x189)](0x0,Math[_0x48f8ed(0x1ba)](0x1,_0x905720['t']))),_0x51c556={'id':_0x476442(),'x':_0x3b1fe0[_0x48f8ed(0x17e)][0x3]['x'],'y':_0x3b1fe0['left'][0x3]['y'],'in':i(_0x3b1fe0[_0x48f8ed(0x17e)][0x2]),'out':i(_0x3b1fe0['right'][0x1]),'pointType':_0x48f8ed(0x1b8)};return _0x4c2634[_0x48f8ed(0x188)][_0x45f38c[_0x48f8ed(0x1cb)]][_0x48f8ed(0x1b6)]=i(_0x3b1fe0[_0x48f8ed(0x17e)][0x1]),_0x4c2634[_0x48f8ed(0x188)][_0x45f38c[_0x48f8ed(0x1a2)]]['in']=i(_0x3b1fe0['right'][0x2]),_0x4c2634[_0x48f8ed(0x188)][_0x48f8ed(0x16c)](_0x45f38c[_0x48f8ed(0x1cb)]+0x1,0x0,_0x51c556),_0x4c2634;}function w(_0x76a63,_0x21404f){const _0x434c65=_0x59a874;let _0x5b1855=o(_0x76a63);return _0x5b1855['anchors']=_0x5b1855[_0x434c65(0x188)][_0x434c65(0x185)](_0x144581=>_0x144581['id']!==_0x21404f),_0x5b1855[_0x434c65(0x16d)]&&_0x5b1855['anchors']['length']<0x3&&(_0x5b1855[_0x434c65(0x16d)]=!0x1),_0x5b1855;}function T(_0x53e92e,_0x11dbf9,_0x5f2118){const _0x290d06=_0x59a874;let _0x2a2f06=o(_0x53e92e),_0x41956e=_0x2a2f06['anchors'][_0x290d06(0x17d)](_0xbc6de0=>_0xbc6de0['id']===_0x11dbf9),_0x491e54=_0x2a2f06[_0x290d06(0x188)][_0x41956e];if(!_0x491e54)return _0x2a2f06;if(_0x491e54[_0x290d06(0x18c)]=_0x5f2118,_0x5f2118===_0x290d06(0x186))return delete _0x491e54['in'],delete _0x491e54[_0x290d06(0x1b6)],_0x2a2f06;let _0x422cb8=y(_0x2a2f06,_0x41956e);if(_0x491e54['in']=_0x491e54['in']?i(_0x491e54['in']):_0x422cb8['in'],_0x491e54[_0x290d06(0x1b6)]=_0x491e54[_0x290d06(0x1b6)]?i(_0x491e54[_0x290d06(0x1b6)]):_0x422cb8['out'],_0x5f2118===_0x290d06(0x1a0)){let _0x378685=Math['max'](c(_0x491e54,_0x491e54['in']),c(_0x491e54,_0x491e54[_0x290d06(0x1b6)]),0x32),_0x3f894d=l({'x':_0x491e54[_0x290d06(0x1b6)]['x']-_0x491e54['x'],'y':_0x491e54[_0x290d06(0x1b6)]['y']-_0x491e54['y']});_0x491e54['out']={'x':_0x491e54['x']+_0x3f894d['x']*_0x378685,'y':_0x491e54['y']+_0x3f894d['y']*_0x378685},_0x491e54['in']={'x':_0x491e54['x']-_0x3f894d['x']*_0x378685,'y':_0x491e54['y']-_0x3f894d['y']*_0x378685};}else _0x5f2118===_0x290d06(0x1b4)&&b(_0x491e54,_0x290d06(0x1b6));return _0x2a2f06;}function E(_0x30da42,_0x4baa68){const _0x5abf48=_0x59a874;var _0x33c9c6;let _0xb9e319=_0x30da42[_0x5abf48(0x188)]['find'](_0x479f0b=>_0x479f0b['id']===_0x4baa68),_0x4d66db=(_0x33c9c6=_0xb9e319==null?void 0x0:_0xb9e319[_0x5abf48(0x18c)])==null?_0x5abf48(0x186):_0x33c9c6;return T(_0x30da42,_0x4baa68,_0x4d66db===_0x5abf48(0x186)?'smooth':_0x4d66db===_0x5abf48(0x1b4)?_0x5abf48(0x1a0):_0x4d66db===_0x5abf48(0x1a0)?_0x5abf48(0x1b8):_0x5abf48(0x186));}function ae(_0x42cc6f,_0x2752de,_0x54d36a){const _0x293a74=_0x59a874;let _0x5386d8=o(_0x42cc6f),_0x28e324=_0x5386d8[_0x293a74(0x188)][_0x293a74(0x179)](_0x263245=>_0x263245['id']===_0x2752de[_0x293a74(0x1be)]);if(!_0x28e324)return _0x5386d8;if(_0x2752de[_0x293a74(0x1d1)]===_0x293a74(0x1ce)){let _0x510ce6={'x':_0x54d36a['x']-_0x28e324['x'],'y':_0x54d36a['y']-_0x28e324['y']};return _0x28e324['x']=_0x54d36a['x'],_0x28e324['y']=_0x54d36a['y'],_0x28e324['in']&&(_0x28e324['in']={'x':_0x28e324['in']['x']+_0x510ce6['x'],'y':_0x28e324['in']['y']+_0x510ce6['y']}),_0x28e324[_0x293a74(0x1b6)]&&(_0x28e324[_0x293a74(0x1b6)]={'x':_0x28e324[_0x293a74(0x1b6)]['x']+_0x510ce6['x'],'y':_0x28e324['out']['y']+_0x510ce6['y']}),_0x5386d8;}return _0x28e324[_0x2752de[_0x293a74(0x1d1)]]=i(_0x54d36a),_0x28e324[_0x293a74(0x18c)]===_0x293a74(0x186)&&(_0x28e324[_0x293a74(0x18c)]=_0x293a74(0x1b8)),b(_0x28e324,_0x2752de[_0x293a74(0x1d1)]),_0x5386d8;}const D=1e-9;function O(_0x324304){let _0x21794f=Math['round'](_0x324304*0x2710)/0x2710;return Object['is'](_0x21794f,-0x0)?'0':String(_0x21794f);}function k(_0x552dd0){return O(_0x552dd0['x'])+'\x20'+O(_0x552dd0['y']);}function A(_0x17744b,_0x10bc27){return{'x':_0x17744b['x']-_0x10bc27['x'],'y':_0x17744b['y']-_0x10bc27['y']};}function j(_0xc82808,_0x442dc9,_0x18d5f4,_0x246b9a,_0x5ae311){let _0x3988c4=0x1-_0x5ae311;return{'x':_0x3988c4*_0x3988c4*_0x3988c4*_0xc82808['x']+0x3*_0x3988c4*_0x3988c4*_0x5ae311*_0x442dc9['x']+0x3*_0x3988c4*_0x5ae311*_0x5ae311*_0x18d5f4['x']+_0x5ae311*_0x5ae311*_0x5ae311*_0x246b9a['x'],'y':_0x3988c4*_0x3988c4*_0x3988c4*_0xc82808['y']+0x3*_0x3988c4*_0x3988c4*_0x5ae311*_0x442dc9['y']+0x3*_0x3988c4*_0x5ae311*_0x5ae311*_0x18d5f4['y']+_0x5ae311*_0x5ae311*_0x5ae311*_0x246b9a['y']};}function M(_0x3471a8,_0xac42d6,_0x86b447,_0x3ec75e){const _0x86734e=_0x59a874;let _0x5ec3ec=-_0x3471a8+0x3*_0xac42d6-0x3*_0x86b447+_0x3ec75e,_0x250b1e=0x3*_0x3471a8-0x6*_0xac42d6+0x3*_0x86b447,_0x5791c6=-0x3*_0x3471a8+0x3*_0xac42d6,_0x4a4dc8=[];if(Math[_0x86734e(0x196)](_0x5ec3ec)<D){if(Math[_0x86734e(0x196)](_0x250b1e)<D)return _0x4a4dc8;let _0x5d5d3d=-_0x5791c6/(0x2*_0x250b1e);return _0x5d5d3d>0x0&&_0x5d5d3d<0x1&&_0x4a4dc8[_0x86734e(0x16f)](_0x5d5d3d),_0x4a4dc8;}let _0x7fcefa=_0x250b1e*_0x250b1e-0x3*_0x5ec3ec*_0x5791c6;if(_0x7fcefa<0x0)return _0x4a4dc8;let _0x43b592=Math['sqrt'](Math[_0x86734e(0x189)](0x0,_0x7fcefa)),_0x41429b=(-_0x250b1e+_0x43b592)/(0x3*_0x5ec3ec),_0xfa4eb=(-_0x250b1e-_0x43b592)/(0x3*_0x5ec3ec);return _0x41429b>0x0&&_0x41429b<0x1&&_0x4a4dc8[_0x86734e(0x16f)](_0x41429b),_0xfa4eb>0x0&&_0xfa4eb<0x1&&Math['abs'](_0xfa4eb-_0x41429b)>D&&_0x4a4dc8[_0x86734e(0x16f)](_0xfa4eb),_0x4a4dc8;}function _0x193f(_0x3ebf7d,_0x1ac285){_0x3ebf7d=_0x3ebf7d-0x164;const _0x46e4d7=_0x46e4();let _0x193f53=_0x46e4d7[_0x3ebf7d];return _0x193f53;}function N(_0x247b4c,_0x210e26,_0x4131cd,_0x16f064,_0x273101){const _0x4ea912=_0x59a874;_0x247b4c[_0x4ea912(0x16f)](_0x210e26,_0x273101),new Set([...M(_0x210e26['x'],_0x4131cd['x'],_0x16f064['x'],_0x273101['x']),...M(_0x210e26['y'],_0x4131cd['y'],_0x16f064['y'],_0x273101['y'])])[_0x4ea912(0x16a)](_0x5a4789=>{const _0x3b0c82=_0x4ea912;_0x247b4c[_0x3b0c82(0x16f)](j(_0x210e26,_0x4131cd,_0x16f064,_0x273101,_0x5a4789));});}function P(_0x232c84){const _0x32b65b=_0x59a874;let _0x4dab35=_0x232c84['anchors'];if(_0x4dab35[_0x32b65b(0x198)]<=0x1)return _0x4dab35;let _0x33dbda=[];for(let _0x4332e5=0x1;_0x4332e5<_0x4dab35[_0x32b65b(0x198)];_0x4332e5++){var _0x1e11f5,_0x545da6;let _0x487ca9=_0x4dab35[_0x4332e5-0x1],_0x4e698b=_0x4dab35[_0x4332e5];N(_0x33dbda,_0x487ca9,(_0x1e11f5=_0x487ca9[_0x32b65b(0x1b6)])==null?_0x487ca9:_0x1e11f5,(_0x545da6=_0x4e698b['in'])==null?_0x4e698b:_0x545da6,_0x4e698b);}if(_0x232c84[_0x32b65b(0x16d)]&&_0x4dab35[_0x32b65b(0x198)]>0x1){var _0x350283,_0x56a24d;let _0x2d4fa1=_0x4dab35[_0x4dab35['length']-0x1],_0x20bcfd=_0x4dab35[0x0];N(_0x33dbda,_0x2d4fa1,(_0x350283=_0x2d4fa1['out'])==null?_0x2d4fa1:_0x350283,(_0x56a24d=_0x20bcfd['in'])==null?_0x20bcfd:_0x56a24d,_0x20bcfd);}return _0x33dbda;}function F(_0x101e52){const _0x1801c2=_0x59a874;let _0x49cdfa=_0x101e52['points'];if(_0x49cdfa[_0x1801c2(0x198)]<=0x1)return _0x49cdfa;let _0x5e994d=[];for(let _0xc4915=0x0;_0xc4915<_0x49cdfa[_0x1801c2(0x198)]-0x1;_0xc4915++){var _0x243d15,_0x50d2ee;let _0x47a63c=_0x49cdfa[_0xc4915],_0x4ba4f9=_0x49cdfa[_0xc4915+0x1],_0x1b3ed6=(_0x243d15=_0x49cdfa[_0xc4915-0x1])==null?_0x47a63c:_0x243d15,_0x54e02a=(_0x50d2ee=_0x49cdfa[_0xc4915+0x2])==null?_0x4ba4f9:_0x50d2ee;N(_0x5e994d,_0x47a63c,{'x':_0x47a63c['x']+(_0x4ba4f9['x']-_0x1b3ed6['x'])/0x6,'y':_0x47a63c['y']+(_0x4ba4f9['y']-_0x1b3ed6['y'])/0x6},{'x':_0x4ba4f9['x']-(_0x54e02a['x']-_0x47a63c['x'])/0x6,'y':_0x4ba4f9['y']-(_0x54e02a['y']-_0x47a63c['y'])/0x6},_0x4ba4f9);}return _0x5e994d;}function I(_0x4624a6){const _0x47ec15=_0x59a874;return _0x4624a6['kind']===_0x47ec15(0x174)?P(_0x4624a6):F(_0x4624a6);}function L(_0x3199b2){const _0x10ad4b=_0x59a874;let _0x3896f0=Math[_0x10ad4b(0x1c2)](_0x3199b2*0x2710)/0x2710;return Object['is'](_0x3896f0,-0x0)?0x0:_0x3896f0;}function R(_0xcdb471){const _0x1cd628=_0x59a874;let _0x331b55=I(_0xcdb471);if(_0x331b55[_0x1cd628(0x198)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x52033c=Math[_0x1cd628(0x1ba)](..._0x331b55[_0x1cd628(0x17a)](_0x1827fc=>_0x1827fc['x'])),_0x191aaa=Math[_0x1cd628(0x1ba)](..._0x331b55[_0x1cd628(0x17a)](_0x392c76=>_0x392c76['y'])),_0x35c185=Math[_0x1cd628(0x189)](..._0x331b55['map'](_0x22dd89=>_0x22dd89['x'])),_0x4bb1b8=Math['max'](..._0x331b55[_0x1cd628(0x17a)](_0xce9fb8=>_0xce9fb8['y']));return{'left':L(_0x52033c),'top':L(_0x191aaa),'width':L(Math['max'](0x1,_0x35c185-_0x52033c)),'height':L(Math['max'](0x1,_0x4bb1b8-_0x191aaa))};}function z(_0x1aa911,_0x423ff9){const _0x5a3064=_0x59a874;let _0xdf214d=_0x1aa911[_0x5a3064(0x188)];if(_0xdf214d[_0x5a3064(0x198)]===0x0)return'';let _0x3740be=['M\x20'+k(A(_0xdf214d[0x0],_0x423ff9))];for(let _0x42f1ef=0x1;_0x42f1ef<_0xdf214d['length'];_0x42f1ef++){var _0x515d6c,_0x89b90a;let _0x46e432=_0xdf214d[_0x42f1ef-0x1],_0x4dc879=_0xdf214d[_0x42f1ef],_0xa60d53=(_0x515d6c=_0x46e432['out'])==null?_0x46e432:_0x515d6c,_0x18254c=(_0x89b90a=_0x4dc879['in'])==null?_0x4dc879:_0x89b90a;_0x3740be[_0x5a3064(0x16f)]('C\x20'+k(A(_0xa60d53,_0x423ff9))+'\x20'+k(A(_0x18254c,_0x423ff9))+'\x20'+k(A(_0x4dc879,_0x423ff9)));}if(_0x1aa911[_0x5a3064(0x16d)]&&_0xdf214d['length']>0x1){var _0x2cc17c,_0x46cfa4;let _0x19e3a4=_0xdf214d[_0xdf214d[_0x5a3064(0x198)]-0x1],_0x578512=_0xdf214d[0x0],_0x3b4ec5=(_0x2cc17c=_0x19e3a4[_0x5a3064(0x1b6)])==null?_0x19e3a4:_0x2cc17c,_0x2d563f=(_0x46cfa4=_0x578512['in'])==null?_0x578512:_0x46cfa4;_0x3740be[_0x5a3064(0x16f)]('C\x20'+k(A(_0x3b4ec5,_0x423ff9))+'\x20'+k(A(_0x2d563f,_0x423ff9))+'\x20'+k(A(_0x578512,_0x423ff9))),_0x3740be[_0x5a3064(0x16f)]('Z');}return _0x3740be[_0x5a3064(0x1aa)]('\x20');}function B(_0x4b8155,_0x12dc0c){const _0x2c47c8=_0x59a874;let _0x33d710=_0x4b8155[_0x2c47c8(0x195)][_0x2c47c8(0x17a)](_0x47b1e8=>A(_0x47b1e8,_0x12dc0c));if(_0x33d710[_0x2c47c8(0x198)]===0x0)return'';if(_0x33d710[_0x2c47c8(0x198)]===0x1)return'M\x20'+k(_0x33d710[0x0]);let _0x27f9dd=['M\x20'+k(_0x33d710[0x0])];for(let _0xa83e7=0x0;_0xa83e7<_0x33d710[_0x2c47c8(0x198)]-0x1;_0xa83e7++){var _0x510a7e,_0x58030c;let _0x3f5626=_0x33d710[_0xa83e7],_0xc7a88f=_0x33d710[_0xa83e7+0x1],_0x37b81a=(_0x510a7e=_0x33d710[_0xa83e7-0x1])==null?_0x3f5626:_0x510a7e,_0x24375b=(_0x58030c=_0x33d710[_0xa83e7+0x2])==null?_0xc7a88f:_0x58030c,_0x3c8f25={'x':_0x3f5626['x']+(_0xc7a88f['x']-_0x37b81a['x'])/0x6,'y':_0x3f5626['y']+(_0xc7a88f['y']-_0x37b81a['y'])/0x6},_0x445210={'x':_0xc7a88f['x']-(_0x24375b['x']-_0x3f5626['x'])/0x6,'y':_0xc7a88f['y']-(_0x24375b['y']-_0x3f5626['y'])/0x6};_0x27f9dd[_0x2c47c8(0x16f)]('C\x20'+k(_0x3c8f25)+'\x20'+k(_0x445210)+'\x20'+k(_0xc7a88f));}return _0x27f9dd[_0x2c47c8(0x1aa)]('\x20');}function V(_0x50c6be,_0x1d861c){const _0x45a0fa=_0x59a874;return _0x50c6be['kind']===_0x45a0fa(0x174)?z(_0x50c6be,_0x1d861c):B(_0x50c6be,_0x1d861c);}function H(_0x5def3e,_0x404f26){const _0x10d8f5=_0x59a874;return _0x404f26!=null&&_0x404f26['color']?_0x404f26[_0x10d8f5(0x1d4)]:_0x5def3e[_0x10d8f5(0x1d1)]===_0x10d8f5(0x174)?'#f54a45':_0x5def3e['color'];}function U(_0x1da639,_0x590b6b){const _0x52e7d3=_0x59a874;return(_0x590b6b==null?void 0x0:_0x590b6b[_0x52e7d3(0x1a3)])===void 0x0?_0x1da639['kind']===_0x52e7d3(0x174)?0x2:_0x1da639[_0x52e7d3(0x1a3)]:_0x590b6b['width'];}function W(_0x41b064,_0x56d7d2){const _0x3d5c8d=_0x59a874;return(_0x56d7d2==null?void 0x0:_0x56d7d2[_0x3d5c8d(0x19e)])===void 0x0?_0x41b064[_0x3d5c8d(0x1d1)]===_0x3d5c8d(0x174)?void 0x0:_0x41b064[_0x3d5c8d(0x19e)]:_0x56d7d2[_0x3d5c8d(0x19e)];}function oe(_0x4dbf90,_0x393109){const _0x123f0a=_0x59a874;let _0x304ba7=R(_0x4dbf90),_0x4b02e3=V(_0x4dbf90,{'x':_0x304ba7[_0x123f0a(0x17e)],'y':_0x304ba7[_0x123f0a(0x19c)]}),_0x3364ab=_0x4dbf90['kind']===_0x123f0a(0x174)&&_0x4dbf90['closed'],_0x312a27=_0x393109==null?void 0x0:_0x393109['fillColor'];return{'shapeType':e[_0x123f0a(0x1cd)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x304ba7[_0x123f0a(0x1a3)],'h':_0x304ba7[_0x123f0a(0x1bd)],'fill':_0x3364ab?_0x123f0a(0x177):'none','stroke':!0x0,'data':_0x4b02e3,'dataArray':K(_0x4dbf90,{'x':_0x304ba7['left'],'y':_0x304ba7['top']})}]},'fill':_0x3364ab&&_0x312a27?{'color':_0x312a27,'fillType':e[_0x123f0a(0x1c4)][_0x123f0a(0x1c8)]}:{'fillType':e[_0x123f0a(0x1c4)][_0x123f0a(0x1ac)]},'stroke':{'color':H(_0x4dbf90,_0x393109),'width':U(_0x4dbf90,_0x393109),'opacity':W(_0x4dbf90,_0x393109),'lineStrokeType':e[_0x123f0a(0x1ad)][_0x123f0a(0x1a1)],'capType':e[_0x123f0a(0x192)]['Round'],'lineJoinType':e[_0x123f0a(0x194)][_0x123f0a(0x1d0)]}};}function G(_0x3753ac,_0x3c55e5){return{'x':_0x3753ac['x']-_0x3c55e5['x'],'y':_0x3753ac['y']-_0x3c55e5['y']};}function K(_0x3dbfbc,_0x5efb73){const _0x2eeb65=_0x59a874;if(_0x3dbfbc['kind']===_0x2eeb65(0x174)){let _0x4696b3=_0x3dbfbc[_0x2eeb65(0x188)];if(_0x4696b3[_0x2eeb65(0x198)]===0x0)return[];let _0x275e6f=G(_0x4696b3[0x0],_0x5efb73),_0x4a23b5=[{'command':'M','points':[_0x275e6f['x'],_0x275e6f['y']]}];for(let _0x1f2b67=0x1;_0x1f2b67<_0x4696b3[_0x2eeb65(0x198)];_0x1f2b67++){var _0x5ae7a3,_0x4f22c8;let _0x286f5a=_0x4696b3[_0x1f2b67-0x1],_0x133ba9=_0x4696b3[_0x1f2b67],_0xf6dbec=G((_0x5ae7a3=_0x286f5a[_0x2eeb65(0x1b6)])==null?_0x286f5a:_0x5ae7a3,_0x5efb73),_0xc3c58d=G((_0x4f22c8=_0x133ba9['in'])==null?_0x133ba9:_0x4f22c8,_0x5efb73),_0x12df3f=G(_0x133ba9,_0x5efb73);_0x4a23b5[_0x2eeb65(0x16f)]({'command':'C','points':[_0xf6dbec['x'],_0xf6dbec['y'],_0xc3c58d['x'],_0xc3c58d['y'],_0x12df3f['x'],_0x12df3f['y']]});}if(_0x3dbfbc['closed']&&_0x4696b3[_0x2eeb65(0x198)]>0x1){var _0x4ba7a4,_0x552c68;let _0x4a2042=_0x4696b3[_0x4696b3[_0x2eeb65(0x198)]-0x1],_0x1604f9=_0x4696b3[0x0],_0x2f200f=G((_0x4ba7a4=_0x4a2042[_0x2eeb65(0x1b6)])==null?_0x4a2042:_0x4ba7a4,_0x5efb73),_0x4936ba=G((_0x552c68=_0x1604f9['in'])==null?_0x1604f9:_0x552c68,_0x5efb73),_0x5d0950=G(_0x1604f9,_0x5efb73);_0x4a23b5[_0x2eeb65(0x16f)]({'command':'C','points':[_0x2f200f['x'],_0x2f200f['y'],_0x4936ba['x'],_0x4936ba['y'],_0x5d0950['x'],_0x5d0950['y']]}),_0x4a23b5['push']({'command':'z','points':[]});}return _0x4a23b5;}let _0x36bb2c=_0x3dbfbc[_0x2eeb65(0x195)][_0x2eeb65(0x17a)](_0x2187fd=>G(_0x2187fd,_0x5efb73));if(_0x36bb2c[_0x2eeb65(0x198)]===0x0)return[];let _0x3831a0=[{'command':'M','points':[_0x36bb2c[0x0]['x'],_0x36bb2c[0x0]['y']]}];for(let _0x125054=0x0;_0x125054<_0x36bb2c[_0x2eeb65(0x198)]-0x1;_0x125054++){var _0x579628,_0x297d08;let _0x349b8a=_0x36bb2c[_0x125054],_0x32b98f=_0x36bb2c[_0x125054+0x1],_0x383cf=(_0x579628=_0x36bb2c[_0x125054-0x1])==null?_0x349b8a:_0x579628,_0x55fd9d=(_0x297d08=_0x36bb2c[_0x125054+0x2])==null?_0x32b98f:_0x297d08,_0x24f6ce={'x':_0x349b8a['x']+(_0x32b98f['x']-_0x383cf['x'])/0x6,'y':_0x349b8a['y']+(_0x32b98f['y']-_0x383cf['y'])/0x6},_0x174934={'x':_0x32b98f['x']-(_0x55fd9d['x']-_0x349b8a['x'])/0x6,'y':_0x32b98f['y']-(_0x55fd9d['y']-_0x349b8a['y'])/0x6};_0x3831a0[_0x2eeb65(0x16f)]({'command':'C','points':[_0x24f6ce['x'],_0x24f6ce['y'],_0x174934['x'],_0x174934['y'],_0x32b98f['x'],_0x32b98f['y']]});}return _0x3831a0;}function q(_0x2e2607){const _0x332927=_0x59a874;var _0x3a991b;let {model:_0x585b92,sourceModel:_0x394c97=_0x585b92,style:_0x4e836f}=_0x2e2607,_0x5b28ea=(_0x3a991b=_0x2e2607[_0x332927(0x1cf)])==null?_0x585b92[_0x332927(0x1d1)]:_0x3a991b,_0x497af0=R(_0x585b92),_0x36ea49=_0x585b92[_0x332927(0x1d1)]===_0x332927(0x174)&&_0x5b28ea!==_0x332927(0x174)?_0x585b92:void 0x0;return{'transform':{..._0x497af0,'rotation':0x0},'shapeData':oe(_0x585b92,_0x4e836f),'ink':{'version':0x1,'tool':_0x5b28ea,'sourceModel':_0x394c97,..._0x36ea49?{'editModel':_0x36ea49}:{},'normalizedBounds':_0x497af0}};}var se='@univerjs-pro/ink',ce=_0x59a874(0x1c9);function J(_0x47d8ce){'@babel/helpers - typeof';const _0x9e2b24=_0x59a874;return J=typeof Symbol==_0x9e2b24(0x1bb)&&typeof Symbol[_0x9e2b24(0x1a9)]==_0x9e2b24(0x18a)?function(_0xd7719e){return typeof _0xd7719e;}:function(_0x4e556d){const _0x41fbcc=_0x9e2b24;return _0x4e556d&&typeof Symbol==_0x41fbcc(0x1bb)&&_0x4e556d[_0x41fbcc(0x193)]===Symbol&&_0x4e556d!==Symbol[_0x41fbcc(0x199)]?_0x41fbcc(0x18a):typeof _0x4e556d;},J(_0x47d8ce);}function le(_0x5379e5,_0x3922af){const _0x2524d4=_0x59a874;if(J(_0x5379e5)!=_0x2524d4(0x1c3)||!_0x5379e5)return _0x5379e5;var _0x358c71=_0x5379e5[Symbol[_0x2524d4(0x1d3)]];if(_0x358c71!==void 0x0){var _0x5e2be2=_0x358c71[_0x2524d4(0x17f)](_0x5379e5,_0x3922af||_0x2524d4(0x1c7));if(J(_0x5e2be2)!='object')return _0x5e2be2;throw TypeError(_0x2524d4(0x1af));}return(_0x3922af===_0x2524d4(0x1c5)?String:Number)(_0x5379e5);}function ue(_0x8fe591){const _0x40c5f1=_0x59a874;var _0x56bcd2=le(_0x8fe591,'string');return J(_0x56bcd2)==_0x40c5f1(0x18a)?_0x56bcd2:_0x56bcd2+'';}function Y(_0x4f6de3,_0x1ecd0e,_0x259194){const _0x25a693=_0x59a874;return(_0x1ecd0e=ue(_0x1ecd0e))in _0x4f6de3?Object[_0x25a693(0x164)](_0x4f6de3,_0x1ecd0e,{'value':_0x259194,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f6de3[_0x1ecd0e]=_0x259194,_0x4f6de3;}const X=(0x0,n['createIdentifier'])(_0x59a874(0x17b));var de=class{constructor(){const _0x209e2d=_0x59a874;Y(this,_0x209e2d(0x168),[]);}[_0x59a874(0x1b1)](_0x429d63){const _0x42cdb1=_0x59a874;return this['_adapters'][_0x42cdb1(0x16f)](_0x429d63),(0x0,n[_0x42cdb1(0x1b5)])(()=>{const _0x3c1f41=_0x42cdb1;let _0x246aa9=this['_adapters'][_0x3c1f41(0x18f)](_0x429d63);_0x246aa9>=0x0&&this[_0x3c1f41(0x168)][_0x3c1f41(0x16c)](_0x246aa9,0x1);});}[_0x59a874(0x1bc)](_0x3b4436){const _0x2862ef=_0x59a874;for(let _0x52fd30 of this[_0x2862ef(0x168)])if(_0x52fd30[_0x2862ef(0x1bc)](_0x3b4436))return!0x0;return!0x1;}async[_0x59a874(0x178)](_0x51ef30){const _0x5d9456=_0x59a874;for(let _0x32885e of this[_0x5d9456(0x168)])if(_0x32885e['createCustomShape']&&await _0x32885e['createCustomShape'](_0x51ef30))return!0x0;return!0x1;}};const fe={'id':_0x59a874(0x18b),'type':n['CommandType'][_0x59a874(0x17c)],'handler':(_0x36dca0,_0x4e31bf)=>_0x4e31bf?_0x36dca0[_0x59a874(0x1b2)](X)[_0x59a874(0x1bc)](_0x4e31bf):!0x1},Z={};function Q(_0x3398c8,_0x9737bb){return function(_0xee0fac,_0x584548){_0x9737bb(_0xee0fac,_0x584548,_0x3398c8);};}function pe(_0x58c361,_0x444650,_0x20aa73,_0x3ce9a4){const _0x4d18bd=_0x59a874;var _0x2d75b5=arguments[_0x4d18bd(0x198)],_0xad1e94=_0x2d75b5<0x3?_0x444650:_0x3ce9a4===null?_0x3ce9a4=Object[_0x4d18bd(0x19a)](_0x444650,_0x20aa73):_0x3ce9a4,_0x2621cd;if(typeof Reflect==_0x4d18bd(0x1c3)&&typeof Reflect[_0x4d18bd(0x166)]==_0x4d18bd(0x1bb))_0xad1e94=Reflect['decorate'](_0x58c361,_0x444650,_0x20aa73,_0x3ce9a4);else{for(var _0x3bad82=_0x58c361[_0x4d18bd(0x198)]-0x1;_0x3bad82>=0x0;_0x3bad82--)(_0x2621cd=_0x58c361[_0x3bad82])&&(_0xad1e94=(_0x2d75b5<0x3?_0x2621cd(_0xad1e94):_0x2d75b5>0x3?_0x2621cd(_0x444650,_0x20aa73,_0xad1e94):_0x2621cd(_0x444650,_0x20aa73))||_0xad1e94);}return _0x2d75b5>0x3&&_0xad1e94&&Object['defineProperty'](_0x444650,_0x20aa73,_0xad1e94),_0xad1e94;}let $=class extends n[_0x59a874(0x1ae)]{constructor(_0x160ea9=Z,_0x39e4c1,_0x14f4f9,_0x1bf9f2){const _0x2560b=_0x59a874;super(),this['_config']=_0x160ea9,this['_injector']=_0x39e4c1,this['_commandService']=_0x14f4f9,this[_0x2560b(0x167)]=_0x1bf9f2;let {..._0x5b9baf}=(0x0,n[_0x2560b(0x197)])({},Z,this[_0x2560b(0x1b7)]);this['_configService']['setConfig']('ink.config',_0x5b9baf);}[_0x59a874(0x169)](){const _0x111633=_0x59a874;[[X,{'useClass':de}]]['forEach'](_0xa0c0e3=>this['_injector']['add'](_0xa0c0e3)),this['disposeWithMe'](this[_0x111633(0x18e)][_0x111633(0x165)](fe));}};Y($,'pluginName',_0x59a874(0x18d)),Y($,'packageName',se),Y($,'version',ce),Y($,'type',n['UniverInstanceType'][_0x59a874(0x16e)]),$=pe([(0x0,n['DependentOn'])(t[_0x59a874(0x1a8)]),Q(0x1,(0x0,n[_0x59a874(0x19d)])(n['Injector'])),Q(0x2,n[_0x59a874(0x176)]),Q(0x3,n['IConfigService'])],$),exports[_0x59a874(0x181)]=X,Object['defineProperty'](exports,_0x59a874(0x1a5),{'enumerable':!0x0,'get':function(){return $;}}),exports['buildInkCustomShapePayload']=q,exports[_0x59a874(0x1b9)]=re,exports['cycleInkPenAnchorPointType']=E,exports['deleteInkPenAnchor']=w,exports[_0x59a874(0x190)]=ie,exports[_0x59a874(0x19b)]=S,exports['getInkModelBounds']=R,exports[_0x59a874(0x182)]=x,exports[_0x59a874(0x184)]=C,exports['isInkPenHandleVisible']=p,exports[_0x59a874(0x1cc)]=ae,exports[_0x59a874(0x173)]=T;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3fa0d0=_0x3b86;(function(_0x2adaeb,_0x1758f2){const _0x1501d1=_0x3b86,_0x1b9c56=_0x2adaeb();while(!![]){try{const _0x274a20=-parseInt(_0x1501d1(0xc6))/0x1*(-parseInt(_0x1501d1(0xc0))/0x2)+parseInt(_0x1501d1(0xb5))/0x3*(-parseInt(_0x1501d1(0xa6))/0x4)+-parseInt(_0x1501d1(0xb9))/0x5+parseInt(_0x1501d1(0xb8))/0x6*(-parseInt(_0x1501d1(0xc7))/0x7)+parseInt(_0x1501d1(0xb1))/0x8*(-parseInt(_0x1501d1(0xb7))/0x9)+parseInt(_0x1501d1(0xd2))/0xa+parseInt(_0x1501d1(0xad))/0xb;if(_0x274a20===_0x1758f2)break;else _0x1b9c56['push'](_0x1b9c56['shift']());}catch(_0x47073f){_0x1b9c56['push'](_0x1b9c56['shift']());}}}(_0x5c1f,0x1f538));import{BoardElementType as _0x4b7f28}from'@univerjs-pro/boards';import{FBoard as _0x574130}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x34cc3e}from'@univerjs-pro/ink';function _0x3b86(_0x49d4d5,_0x25e835){_0x49d4d5=_0x49d4d5-0x9e;const _0x5c1fcf=_0x5c1f();let _0x3b8647=_0x5c1fcf[_0x49d4d5];return _0x3b8647;}import{Tools as _0x1128aa,generateRandomId as _0x515e51}from'@univerjs/core';import{FEnum as _0x4fc35c}from'@univerjs/core/facade';var o=class extends _0x574130{[_0x3fa0d0(0xa9)](_0x1d4145){const _0x364815=_0x3fa0d0;let _0x2d0da4=s(_0x1d4145);return _0x2d0da4&&this[_0x364815(0xa1)](_0x2d0da4,{'insertIndex':_0x1d4145[_0x364815(0xd1)]})?_0x2d0da4:null;}[_0x3fa0d0(0xc5)](){const _0x1a8629=_0x3fa0d0;return this[_0x1a8629(0xc3)]({'elementType':_0x4b7f28[_0x1a8629(0xaf)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x1a8629(0xba)](p);}};function _0x5c1f(){const _0x53bcf4=['5752WLmzUC','anchors','transform','findElements','closed','getInks','20ffqrsN','294910JSXlfR','symmetric','model','laneId','smooth','BoardInkHandleKind','type','corner','version','points','insertIndex','1027280iDqnXo','add','width','deepClone','addElement','BoardInkTool','highlighter','pen','custom','1236WbtPqY','length','style','insertInk','object','shapeData','every','6895933xjXkIn','isFinite','Shape','pressure','2936LjuNsW','isArray','ink','extend','1494PcCPNJ','parentId','3564zqymgo','36PBEhYg','534225oyFSIr','filter','out','sourceModel','tool','opacity','has'];_0x5c1f=function(){return _0x53bcf4;};return _0x5c1f();}function s(_0x5a6c52,_0xc650d9){const _0x37e422=_0x3fa0d0;var _0x477dd2,_0x2ae01c,_0x5c6e8a;if(!l(_0x5a6c52[_0x37e422(0xc9)])||_0x5a6c52[_0x37e422(0xbc)]!==void 0x0&&!l(_0x5a6c52[_0x37e422(0xbc)])||!u(_0x5a6c52['style']))return null;let _0x1a63bc=(_0x477dd2=_0x5a6c52['parentId'])==null?_0xc650d9==null?void 0x0:_0xc650d9[_0x37e422(0xb6)]:_0x477dd2,_0x10c557=_0x1128aa[_0x37e422(0xa0)](_0x5a6c52[_0x37e422(0xc9)]),_0x4ffa8d=_0x34cc3e({'model':_0x10c557,'style':_0x5a6c52[_0x37e422(0xa8)],'tool':_0x5a6c52[_0x37e422(0xbd)],'sourceModel':_0x5a6c52['sourceModel']?_0x1128aa['deepClone'](_0x5a6c52[_0x37e422(0xbc)]):_0x10c557}),_0x2e5330=d(_0xc650d9==null?void 0x0:_0xc650d9[_0x37e422(0xa5)]);return{'id':(_0x2ae01c=(_0x5c6e8a=_0xc650d9==null?void 0x0:_0xc650d9['id'])==null?_0x5a6c52['id']:_0x5c6e8a)==null?_0x515e51(0x6):_0x2ae01c,'type':_0x4b7f28[_0x37e422(0xaf)],'transform':_0x4ffa8d[_0x37e422(0xc2)],'shapeData':_0x4ffa8d[_0x37e422(0xab)],'parentId':_0x1a63bc==null?void 0x0:_0x1a63bc,'laneId':_0x5a6c52[_0x37e422(0xca)]===void 0x0?_0xc650d9==null?void 0x0:_0xc650d9[_0x37e422(0xca)]:_0x5a6c52[_0x37e422(0xca)],'custom':{..._0x2e5330,'ink':_0x4ffa8d[_0x37e422(0xb3)]}};}function c(_0x538160){const _0xf2613f=_0x3fa0d0;return Number[_0xf2613f(0xae)](_0x538160['x'])&&Number['isFinite'](_0x538160['y']);}function l(_0x31e202){const _0x16f6f2=_0x3fa0d0;if(_0x31e202['kind']===_0x16f6f2(0xa4)){let _0x4363b7=new Set();return _0x31e202[_0x16f6f2(0xc1)][_0x16f6f2(0xa7)]>=(_0x31e202[_0x16f6f2(0xc4)]?0x3:0x2)&&_0x31e202[_0x16f6f2(0xc1)]['every'](_0x18bd8b=>{const _0x82911b=_0x16f6f2;let _0x47ea38=_0x18bd8b['id']['trim']()[_0x82911b(0xa7)]>0x0&&!_0x4363b7[_0x82911b(0xbf)](_0x18bd8b['id'])&&c(_0x18bd8b)&&(!_0x18bd8b['in']||c(_0x18bd8b['in']))&&(!_0x18bd8b[_0x82911b(0xbb)]||c(_0x18bd8b['out']));return _0x4363b7[_0x82911b(0x9e)](_0x18bd8b['id']),_0x47ea38;});}return _0x31e202[_0x16f6f2(0xd0)][_0x16f6f2(0xa7)]>=0x2&&_0x31e202[_0x16f6f2(0xd0)][_0x16f6f2(0xac)](_0x2c636f=>c(_0x2c636f)&&Number[_0x16f6f2(0xae)](_0x2c636f['t'])&&(_0x2c636f[_0x16f6f2(0xb0)]===void 0x0||Number['isFinite'](_0x2c636f[_0x16f6f2(0xb0)])))&&Number[_0x16f6f2(0xae)](_0x31e202[_0x16f6f2(0x9f)])&&_0x31e202[_0x16f6f2(0x9f)]>0x0&&Number['isFinite'](_0x31e202['opacity'])&&_0x31e202[_0x16f6f2(0xbe)]>=0x0&&_0x31e202[_0x16f6f2(0xbe)]<=0x1;}function u(_0x5e2307){const _0x25b037=_0x3fa0d0;return _0x5e2307===void 0x0||(_0x5e2307['width']===void 0x0||Number['isFinite'](_0x5e2307[_0x25b037(0x9f)])&&_0x5e2307[_0x25b037(0x9f)]>0x0)&&(_0x5e2307[_0x25b037(0xbe)]===void 0x0||Number[_0x25b037(0xae)](_0x5e2307[_0x25b037(0xbe)])&&_0x5e2307['opacity']>=0x0&&_0x5e2307[_0x25b037(0xbe)]<=0x1);}function d(_0x1a583b){const _0x1f6d5a=_0x3fa0d0;return _0x1a583b&&typeof _0x1a583b==_0x1f6d5a(0xaa)&&!Array[_0x1f6d5a(0xb2)](_0x1a583b)?_0x1a583b:{};}function f(_0x33d0b9){const _0x3abb06=_0x3fa0d0;let _0x49f3ef=d(_0x33d0b9['custom'])[_0x3abb06(0xb3)];if(!_0x49f3ef||typeof _0x49f3ef!=_0x3abb06(0xaa)||Array['isArray'](_0x49f3ef))return null;let _0x14eb04=_0x49f3ef;return _0x14eb04[_0x3abb06(0xcf)]===0x1&&_0x14eb04[_0x3abb06(0xbc)]&&typeof _0x14eb04[_0x3abb06(0xbc)]==_0x3abb06(0xaa)?_0x14eb04:null;}function p(_0x2a774a){const _0x20ee52=_0x3fa0d0;return _0x2a774a[_0x20ee52(0xcd)]===_0x4b7f28[_0x20ee52(0xaf)]&&!!f(_0x2a774a);}_0x574130[_0x3fa0d0(0xb4)](o);const m={'Pen':_0x3fa0d0(0xa4),'Brush':'brush','Highlighter':_0x3fa0d0(0xa3)},h={'Corner':_0x3fa0d0(0xce),'Smooth':_0x3fa0d0(0xcb),'Symmetric':_0x3fa0d0(0xc8),'Free':'free'},g={'Anchor':'anchor','In':'in','Out':_0x3fa0d0(0xbb)};var _=class extends _0x4fc35c{get[_0x3fa0d0(0xa2)](){return m;}get['BoardInkPointType'](){return h;}get[_0x3fa0d0(0xcc)](){return g;}};_0x4fc35c[_0x3fa0d0(0xb4)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4602de=_0x1211;(function(_0x3f01a0,_0x472b08){const _0x2445e8=_0x1211,_0x4562da=_0x3f01a0();while(!![]){try{const _0x4575c4=-parseInt(_0x2445e8(0x1ba))/0x1*(-parseInt(_0x2445e8(0x206))/0x2)+parseInt(_0x2445e8(0x1d7))/0x3+parseInt(_0x2445e8(0x217))/0x4*(-parseInt(_0x2445e8(0x210))/0x5)+parseInt(_0x2445e8(0x20e))/0x6+parseInt(_0x2445e8(0x1c9))/0x7+-parseInt(_0x2445e8(0x213))/0x8*(parseInt(_0x2445e8(0x1cc))/0x9)+-parseInt(_0x2445e8(0x1cf))/0xa;if(_0x4575c4===_0x472b08)break;else _0x4562da['push'](_0x4562da['shift']());}catch(_0x188e55){_0x4562da['push'](_0x4562da['shift']());}}}(_0x4eef,0x9928f));import{ShapeFillEnum as _0x5d1bec,ShapeLineCapEnum as _0x65358a,ShapeLineJoinEnum as _0x3afe2a,ShapeLineTypeEnum as _0x2298b9,ShapeTypeEnum as _0x46339a}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x1c9fb0}from'@univerjs-pro/license';import{CommandType as _0x3e6dda,DependentOn as _0x21f9f4,ICommandService as _0x44cbdf,IConfigService as _0x74df07,Inject as _0x83b12a,Injector as _0x4b9262,Plugin as _0x1732ef,UniverInstanceType as _0x2f3686,createIdentifier as _0x113c29,merge as _0x2ec470,toDisposable as _0x373e13}from'@univerjs/core';const g=0.0001;function _(_0x1b06f7){return{'x':_0x1b06f7['x'],'y':_0x1b06f7['y']};}function v(_0x5d28a2){const _0x330627=_0x1211;return{..._0x5d28a2,'in':_0x5d28a2['in']?_(_0x5d28a2['in']):void 0x0,'out':_0x5d28a2[_0x330627(0x1c1)]?_(_0x5d28a2[_0x330627(0x1c1)]):void 0x0};}function y(_0xc1f21){const _0x5050ee=_0x1211;return{'kind':_0x5050ee(0x218),'closed':_0xc1f21['closed'],'anchors':_0xc1f21['anchors'][_0x5050ee(0x1c4)](v)};}function b(_0xa62ba8,_0x5ab06c,_0x227782){return{'x':_0xa62ba8['x']+(_0x5ab06c['x']-_0xa62ba8['x'])*_0x227782,'y':_0xa62ba8['y']+(_0x5ab06c['y']-_0xa62ba8['y'])*_0x227782};}function x(_0x5f0414,_0x1f50bd){return Math['hypot'](_0x5f0414['x']-_0x1f50bd['x'],_0x5f0414['y']-_0x1f50bd['y']);}function S(_0x213cda){const _0x144da7=_0x1211;let _0x3dcf61=Math[_0x144da7(0x20c)](_0x213cda['x'],_0x213cda['y']);return _0x3dcf61<g?{'x':0x1,'y':0x0}:{'x':_0x213cda['x']/_0x3dcf61,'y':_0x213cda['y']/_0x3dcf61};}function C(_0x3e5920,_0xf56ed9,_0x121ffe=x(_0x3e5920,_0xf56ed9)){let _0x1d0337=S({'x':_0x3e5920['x']-_0xf56ed9['x'],'y':_0x3e5920['y']-_0xf56ed9['y']});return{'x':_0x3e5920['x']+_0x1d0337['x']*_0x121ffe,'y':_0x3e5920['y']+_0x1d0337['y']*_0x121ffe};}function w(_0x56412d,_0x86d914){const _0x3b549c=_0x1211;let {anchors:_0x412221}=_0x56412d;return _0x412221[_0x3b549c(0x1e2)]<0x2||_0x86d914<0x0?null:_0x86d914<_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x86d914,'endIndex':_0x86d914+0x1,'start':_0x412221[_0x86d914],'end':_0x412221[_0x86d914+0x1]}:_0x56412d[_0x3b549c(0x1e0)]&&_0x86d914===_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x412221[_0x3b549c(0x1e2)]-0x1,'endIndex':0x0,'start':_0x412221[_0x412221['length']-0x1],'end':_0x412221[0x0]}:null;}function T(_0x24a0f9,_0x56c8e2){const _0x2e2c3d=_0x1211;var _0x409124,_0x13be96;let _0x1ccda2=w(_0x24a0f9,_0x56c8e2);return _0x1ccda2?[_0x1ccda2['start'],(_0x409124=_0x1ccda2[_0x2e2c3d(0x1fe)][_0x2e2c3d(0x1c1)])==null?_0x1ccda2[_0x2e2c3d(0x1fe)]:_0x409124,(_0x13be96=_0x1ccda2[_0x2e2c3d(0x1bc)]['in'])==null?_0x1ccda2[_0x2e2c3d(0x1bc)]:_0x13be96,_0x1ccda2['end']]:null;}function te(_0x1293cf,_0x5e9d9f){const _0xf2c0b1=_0x1211;var _0x54ac7d;return _0x5e9d9f===_0xf2c0b1(0x1d2)?_0x1293cf:(_0x54ac7d=_0x1293cf[_0x5e9d9f])==null?null:_0x54ac7d;}function E(_0x39b74e,_0x1e87f3,_0x5f40eb){const _0x21bc2d=_0x1211;return _0x5f40eb===_0x21bc2d(0x1d2)||_0x39b74e[_0x21bc2d(0x1e0)]?!0x0:_0x5f40eb==='in'?_0x1e87f3>0x0:_0x1e87f3<_0x39b74e[_0x21bc2d(0x208)]['length']-0x1;}function D(_0xc4a363,_0x24e3ca){let [_0xd205a5,_0x521857,_0x53649d,_0x1cd8b1]=_0xc4a363,_0x5349ff=b(_0xd205a5,_0x521857,_0x24e3ca),_0x19de0c=b(_0x521857,_0x53649d,_0x24e3ca),_0x48bd15=b(_0x53649d,_0x1cd8b1,_0x24e3ca);return b(b(_0x5349ff,_0x19de0c,_0x24e3ca),b(_0x19de0c,_0x48bd15,_0x24e3ca),_0x24e3ca);}function ne(_0x269afc,_0x34cc31){let [_0x125bb2,_0x2dfe57,_0x2d7d5b,_0x1ef5e0]=_0x269afc,_0x1b0e66=b(_0x125bb2,_0x2dfe57,_0x34cc31),_0x3277a6=b(_0x2dfe57,_0x2d7d5b,_0x34cc31),_0xd4755=b(_0x2d7d5b,_0x1ef5e0,_0x34cc31),_0x29c81b=b(_0x1b0e66,_0x3277a6,_0x34cc31),_0x1cab8d=b(_0x3277a6,_0xd4755,_0x34cc31),_0x2fec16=b(_0x29c81b,_0x1cab8d,_0x34cc31);return{'left':[_0x125bb2,_0x1b0e66,_0x29c81b,_0x2fec16],'right':[_0x2fec16,_0x1cab8d,_0xd4755,_0x1ef5e0]};}function O(_0x4409ec,_0x537a41,_0x15fc26){const _0x24a829=_0x1211;let _0x53ae1d=_0x15fc26['x']-_0x537a41['x'],_0x372f42=_0x15fc26['y']-_0x537a41['y'],_0x72ede=_0x53ae1d*_0x53ae1d+_0x372f42*_0x372f42,_0x4e3ceb=_0x72ede<=g?0x0:Math[_0x24a829(0x1f0)](0x0,Math[_0x24a829(0x20d)](0x1,((_0x4409ec['x']-_0x537a41['x'])*_0x53ae1d+(_0x4409ec['y']-_0x537a41['y'])*_0x372f42)/_0x72ede)),_0x46eee2={'x':_0x537a41['x']+_0x53ae1d*_0x4e3ceb,'y':_0x537a41['y']+_0x372f42*_0x4e3ceb};return{'point':_0x46eee2,'ratio':_0x4e3ceb,'distance':x(_0x4409ec,_0x46eee2)};}function re(_0x36345e,_0x5ad9c1,_0x3319f7){const _0xf80425=_0x1211;return O(_0x36345e,_0x5ad9c1,_0x3319f7)[_0xf80425(0x204)]**0x2;}function k(_0x4497aa,_0x570873){const _0x598e87=_0x1211;if(_0x4497aa[_0x598e87(0x1e2)]<=0x2)return _0x4497aa[_0x598e87(0x1c4)](_);let _0x2d0246=0x0,_0x433d3b=0x0,_0x4c83cd=_0x4497aa[0x0],_0x3748c6=_0x4497aa[_0x4497aa[_0x598e87(0x1e2)]-0x1],_0x54fc76=_0x570873*_0x570873;for(let _0x542c3e=0x1;_0x542c3e<_0x4497aa[_0x598e87(0x1e2)]-0x1;_0x542c3e++){let _0x5178d3=re(_0x4497aa[_0x542c3e],_0x4c83cd,_0x3748c6);_0x5178d3>_0x2d0246&&(_0x2d0246=_0x5178d3,_0x433d3b=_0x542c3e);}if(_0x2d0246<=_0x54fc76)return[_(_0x4c83cd),_(_0x3748c6)];let _0xb53819=k(_0x4497aa[_0x598e87(0x1f7)](0x0,_0x433d3b+0x1),_0x570873),_0x14145d=k(_0x4497aa[_0x598e87(0x1f7)](_0x433d3b),_0x570873);return[..._0xb53819[_0x598e87(0x1f7)](0x0,-0x1),..._0x14145d];}function ie(_0x56ba6f,_0x3d7b96){var _0x1690d5;let _0x1a53e6=_0x56ba6f[_0x3d7b96],_0x3b16b8=_0x56ba6f[_0x3d7b96+0x1],_0x12b1d4=(_0x1690d5=_0x56ba6f[_0x3d7b96-0x1])==null?_0x1a53e6:_0x1690d5;return{'x':_0x1a53e6['x']+(_0x3b16b8['x']-_0x12b1d4['x'])/0x6,'y':_0x1a53e6['y']+(_0x3b16b8['y']-_0x12b1d4['y'])/0x6};}function A(_0x4c3d51,_0x3ae085){var _0x469239;let _0xcdb1e2=_0x4c3d51[_0x3ae085],_0x30ba79=_0x4c3d51[_0x3ae085-0x1],_0x2d4a8e=(_0x469239=_0x4c3d51[_0x3ae085+0x1])==null?_0xcdb1e2:_0x469239;return{'x':_0xcdb1e2['x']-(_0x2d4a8e['x']-_0x30ba79['x'])/0x6,'y':_0xcdb1e2['y']-(_0x2d4a8e['y']-_0x30ba79['y'])/0x6};}function j(_0x5f26c4,_0x3c9cfa){const _0x30fc1a=_0x1211;var _0x2cc730,_0x695b47;let _0x30963b=_0x5f26c4[_0x30fc1a(0x208)][_0x3c9cfa],_0xf75166=(_0x2cc730=_0x5f26c4['anchors'][_0x3c9cfa-0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4['anchors'][_0x5f26c4[_0x30fc1a(0x208)][_0x30fc1a(0x1e2)]-0x1]:null:_0x2cc730,_0x3d2d63=(_0x695b47=_0x5f26c4['anchors'][_0x3c9cfa+0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4[_0x30fc1a(0x208)][0x0]:null:_0x695b47,_0x5ac22f=_0xf75166&&_0x3d2d63?S({'x':_0x3d2d63['x']-_0xf75166['x'],'y':_0x3d2d63['y']-_0xf75166['y']}):_0x3d2d63?S({'x':_0x3d2d63['x']-_0x30963b['x'],'y':_0x3d2d63['y']-_0x30963b['y']}):_0xf75166?S({'x':_0x30963b['x']-_0xf75166['x'],'y':_0x30963b['y']-_0xf75166['y']}):{'x':0x1,'y':0x0},_0xea00=_0xf75166&&_0x3d2d63?Math[_0x30fc1a(0x1f0)](0x32,x(_0xf75166,_0x3d2d63)/0x4):0x32;return{'in':{'x':_0x30963b['x']-_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']-_0x5ac22f['y']*_0xea00},'out':{'x':_0x30963b['x']+_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']+_0x5ac22f['y']*_0xea00}};}function M(_0x4e7123,_0x19710d){const _0x192e47=_0x1211;let _0x47150d=_0x4e7123[_0x19710d],_0x17b5c5=_0x19710d==='in'?_0x192e47(0x1c1):'in',_0xb4b260=_0x4e7123[_0x17b5c5];if(_0x47150d){if(_0x4e7123[_0x192e47(0x1ca)]==='symmetric'){_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d);return;}_0x4e7123[_0x192e47(0x1ca)]===_0x192e47(0x1fb)&&(_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d,_0xb4b260?x(_0x4e7123,_0xb4b260):x(_0x4e7123,_0x47150d)));}}function ae(_0x399272,_0x300b72){const _0x295697=_0x1211;let _0x3e60aa=y(_0x399272);return!_0x300b72||_0x3e60aa[_0x295697(0x1e0)]||_0x3e60aa['anchors'][_0x295697(0x1e2)]===0x0||_0x3e60aa[_0x295697(0x208)][_0x295697(0x20b)]({'id':'__ink-preview-anchor__','x':_0x300b72['x'],'y':_0x300b72['y'],'pointType':_0x295697(0x1d0)}),_0x3e60aa;}function oe(_0x886504,_0x164bba={}){const _0x46c4df=_0x1211;var _0x5c3f72,_0x42c755;let _0xd45713=Math['max'](0x0,(_0x5c3f72=_0x164bba[_0x46c4df(0x1c2)])==null?Math[_0x46c4df(0x1f0)](0x4,_0x886504[_0x46c4df(0x1e6)]*0.35):_0x5c3f72),_0x3a33da=(_0x42c755=_0x164bba[_0x46c4df(0x211)])==null?_0x14739f=>'ink-centerline-'+_0x14739f:_0x42c755,_0x5b45f7=k(_0x886504[_0x46c4df(0x1c5)],_0xd45713),_0x2f31ea=_0x5b45f7['map']((_0x361d49,_0x301cc1)=>({'id':_0x3a33da(_0x301cc1),'x':_0x361d49['x'],'y':_0x361d49['y'],'pointType':'free'}));for(let _0x2bdfe1=0x0;_0x2bdfe1<_0x2f31ea[_0x46c4df(0x1e2)]-0x1;_0x2bdfe1++)_0x2f31ea[_0x2bdfe1][_0x46c4df(0x1c1)]=ie(_0x5b45f7,_0x2bdfe1),_0x2f31ea[_0x2bdfe1+0x1]['in']=A(_0x5b45f7,_0x2bdfe1+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2f31ea};}function se(_0x257145,_0x2d28a6,_0x540b63){const _0x74eb19=_0x1211;let _0x5a4344=null,_0x333014=['anchor','in',_0x74eb19(0x1c1)];return _0x257145[_0x74eb19(0x208)]['forEach']((_0x159be7,_0x43724b)=>{const _0x39482a=_0x74eb19;_0x333014[_0x39482a(0x1eb)](_0x4b7b87=>{const _0x28aadd=_0x39482a;if(!E(_0x257145,_0x43724b,_0x4b7b87))return;let _0x11daf2=te(_0x159be7,_0x4b7b87);if(!_0x11daf2)return;let _0xb0b9f4=x(_0x2d28a6,_0x11daf2);_0xb0b9f4>_0x540b63||_0x5a4344&&_0xb0b9f4>=_0x5a4344[_0x28aadd(0x204)]||(_0x5a4344={'handle':{'kind':_0x4b7b87,'anchorId':_0x159be7['id']},'point':_(_0x11daf2),'distance':_0xb0b9f4});});}),_0x5a4344;}function ce(_0x2f4669,_0x4a01bb,_0xf8532d){const _0x3d06b4=_0x1211;let _0x1cf6e5=null,_0x424aae=_0x2f4669[_0x3d06b4(0x1e0)]?_0x2f4669[_0x3d06b4(0x208)]['length']:Math[_0x3d06b4(0x1f0)](0x0,_0x2f4669[_0x3d06b4(0x208)][_0x3d06b4(0x1e2)]-0x1);for(let _0x438b3d=0x0;_0x438b3d<_0x424aae;_0x438b3d++){let _0xa1baef=T(_0x2f4669,_0x438b3d);if(!_0xa1baef)continue;let _0x5a8c61=D(_0xa1baef,0x0);for(let _0x1c3df9=0x1;_0x1c3df9<=0x20;_0x1c3df9++){let _0x2de5d7=D(_0xa1baef,_0x1c3df9/0x20),_0x55ba1f=O(_0x4a01bb,_0x5a8c61,_0x2de5d7),_0x535d41=(_0x1c3df9-0x1+_0x55ba1f[_0x3d06b4(0x201)])/0x20;(!_0x1cf6e5||_0x55ba1f[_0x3d06b4(0x204)]<_0x1cf6e5[_0x3d06b4(0x204)])&&(_0x1cf6e5={'segmentIndex':_0x438b3d,'t':_0x535d41,'point':_0x55ba1f[_0x3d06b4(0x205)],'distance':_0x55ba1f[_0x3d06b4(0x204)]}),_0x5a8c61=_0x2de5d7;}}return _0x1cf6e5&&_0x1cf6e5[_0x3d06b4(0x204)]<=_0xf8532d?_0x1cf6e5:null;}function le(_0x3fb92d,_0x128497,_0x2f749b){const _0x7f4f23=_0x1211;let _0x1a9ee0=y(_0x3fb92d),_0x394f0f=w(_0x1a9ee0,_0x128497[_0x7f4f23(0x1fd)]),_0x1e25ae=T(_0x1a9ee0,_0x128497['segmentIndex']);if(!_0x394f0f||!_0x1e25ae)return _0x1a9ee0;let _0x31dfcf=ne(_0x1e25ae,Math[_0x7f4f23(0x1f0)](0x0,Math[_0x7f4f23(0x20d)](0x1,_0x128497['t']))),_0x2a9439={'id':_0x2f749b(),'x':_0x31dfcf['left'][0x3]['x'],'y':_0x31dfcf['left'][0x3]['y'],'in':_(_0x31dfcf[_0x7f4f23(0x1ea)][0x2]),'out':_(_0x31dfcf[_0x7f4f23(0x1be)][0x1]),'pointType':'free'};return _0x1a9ee0['anchors'][_0x394f0f[_0x7f4f23(0x1ef)]]['out']=_(_0x31dfcf[_0x7f4f23(0x1ea)][0x1]),_0x1a9ee0[_0x7f4f23(0x208)][_0x394f0f[_0x7f4f23(0x1f2)]]['in']=_(_0x31dfcf[_0x7f4f23(0x1be)][0x2]),_0x1a9ee0[_0x7f4f23(0x208)][_0x7f4f23(0x1e9)](_0x394f0f[_0x7f4f23(0x1ef)]+0x1,0x0,_0x2a9439),_0x1a9ee0;}function ue(_0x29689b,_0xb58bb9){const _0x12af36=_0x1211;let _0x2ff724=y(_0x29689b);return _0x2ff724[_0x12af36(0x208)]=_0x2ff724[_0x12af36(0x208)][_0x12af36(0x1f5)](_0x412bcd=>_0x412bcd['id']!==_0xb58bb9),_0x2ff724['closed']&&_0x2ff724['anchors'][_0x12af36(0x1e2)]<0x3&&(_0x2ff724['closed']=!0x1),_0x2ff724;}function N(_0x1b95dc,_0x452f7c,_0x2d0da4){const _0x2ac18c=_0x1211;let _0xbd07b8=y(_0x1b95dc),_0xdf433a=_0xbd07b8[_0x2ac18c(0x208)][_0x2ac18c(0x1d8)](_0x33bb3d=>_0x33bb3d['id']===_0x452f7c),_0x4766e5=_0xbd07b8[_0x2ac18c(0x208)][_0xdf433a];if(!_0x4766e5)return _0xbd07b8;if(_0x4766e5[_0x2ac18c(0x1ca)]=_0x2d0da4,_0x2d0da4===_0x2ac18c(0x1d0))return delete _0x4766e5['in'],delete _0x4766e5[_0x2ac18c(0x1c1)],_0xbd07b8;let _0x4ab650=j(_0xbd07b8,_0xdf433a);if(_0x4766e5['in']=_0x4766e5['in']?_(_0x4766e5['in']):_0x4ab650['in'],_0x4766e5[_0x2ac18c(0x1c1)]=_0x4766e5[_0x2ac18c(0x1c1)]?_(_0x4766e5[_0x2ac18c(0x1c1)]):_0x4ab650['out'],_0x2d0da4==='symmetric'){let _0x3b9cb0=Math[_0x2ac18c(0x1f0)](x(_0x4766e5,_0x4766e5['in']),x(_0x4766e5,_0x4766e5[_0x2ac18c(0x1c1)]),0x32),_0x5bff36=S({'x':_0x4766e5[_0x2ac18c(0x1c1)]['x']-_0x4766e5['x'],'y':_0x4766e5[_0x2ac18c(0x1c1)]['y']-_0x4766e5['y']});_0x4766e5['out']={'x':_0x4766e5['x']+_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']+_0x5bff36['y']*_0x3b9cb0},_0x4766e5['in']={'x':_0x4766e5['x']-_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']-_0x5bff36['y']*_0x3b9cb0};}else _0x2d0da4===_0x2ac18c(0x1fb)&&M(_0x4766e5,'out');return _0xbd07b8;}function P(_0x54aa08,_0x7ffa3a){const _0x39c7e6=_0x1211;var _0x2d548c;let _0x51d1f1=_0x54aa08[_0x39c7e6(0x208)][_0x39c7e6(0x1f3)](_0x4e2fcc=>_0x4e2fcc['id']===_0x7ffa3a),_0x591db9=(_0x2d548c=_0x51d1f1==null?void 0x0:_0x51d1f1[_0x39c7e6(0x1ca)])==null?_0x39c7e6(0x1d0):_0x2d548c;return N(_0x54aa08,_0x7ffa3a,_0x591db9===_0x39c7e6(0x1d0)?_0x39c7e6(0x1fb):_0x591db9===_0x39c7e6(0x1fb)?_0x39c7e6(0x1de):_0x591db9===_0x39c7e6(0x1de)?'free':_0x39c7e6(0x1d0));}function F(_0x2b9e1f,_0x56c7aa,_0x26a2a0){const _0x1dab27=_0x1211;let _0xc44bde=y(_0x2b9e1f),_0x27e436=_0xc44bde[_0x1dab27(0x208)][_0x1dab27(0x1f3)](_0x1ea924=>_0x1ea924['id']===_0x56c7aa['anchorId']);if(!_0x27e436)return _0xc44bde;if(_0x56c7aa[_0x1dab27(0x1f8)]===_0x1dab27(0x1d2)){let _0x39f456={'x':_0x26a2a0['x']-_0x27e436['x'],'y':_0x26a2a0['y']-_0x27e436['y']};return _0x27e436['x']=_0x26a2a0['x'],_0x27e436['y']=_0x26a2a0['y'],_0x27e436['in']&&(_0x27e436['in']={'x':_0x27e436['in']['x']+_0x39f456['x'],'y':_0x27e436['in']['y']+_0x39f456['y']}),_0x27e436[_0x1dab27(0x1c1)]&&(_0x27e436[_0x1dab27(0x1c1)]={'x':_0x27e436[_0x1dab27(0x1c1)]['x']+_0x39f456['x'],'y':_0x27e436[_0x1dab27(0x1c1)]['y']+_0x39f456['y']}),_0xc44bde;}return _0x27e436[_0x56c7aa['kind']]=_(_0x26a2a0),_0x27e436[_0x1dab27(0x1ca)]===_0x1dab27(0x1d0)&&(_0x27e436['pointType']=_0x1dab27(0x1f1)),M(_0x27e436,_0x56c7aa[_0x1dab27(0x1f8)]),_0xc44bde;}const I=1e-9;function L(_0x541be4){let _0x3c36af=Math['round'](_0x541be4*0x2710)/0x2710;return Object['is'](_0x3c36af,-0x0)?'0':String(_0x3c36af);}function R(_0x4c1145){return L(_0x4c1145['x'])+'\x20'+L(_0x4c1145['y']);}function z(_0x1de858,_0x3fc130){return{'x':_0x1de858['x']-_0x3fc130['x'],'y':_0x1de858['y']-_0x3fc130['y']};}function B(_0x241449,_0x550f5b,_0x1cef1b,_0x1a92ff,_0x553fac){let _0x414655=0x1-_0x553fac;return{'x':_0x414655*_0x414655*_0x414655*_0x241449['x']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['x']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['x']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['x'],'y':_0x414655*_0x414655*_0x414655*_0x241449['y']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['y']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['y']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['y']};}function V(_0x3d1ece,_0x345da1,_0x4494f0,_0x4e1c7d){const _0x5b0fea=_0x1211;let _0x2b2437=-_0x3d1ece+0x3*_0x345da1-0x3*_0x4494f0+_0x4e1c7d,_0x2fc981=0x3*_0x3d1ece-0x6*_0x345da1+0x3*_0x4494f0,_0x44d4e4=-0x3*_0x3d1ece+0x3*_0x345da1,_0x34331a=[];if(Math[_0x5b0fea(0x1e4)](_0x2b2437)<I){if(Math['abs'](_0x2fc981)<I)return _0x34331a;let _0x287154=-_0x44d4e4/(0x2*_0x2fc981);return _0x287154>0x0&&_0x287154<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x287154),_0x34331a;}let _0x2792aa=_0x2fc981*_0x2fc981-0x3*_0x2b2437*_0x44d4e4;if(_0x2792aa<0x0)return _0x34331a;let _0x6dd9c4=Math['sqrt'](Math['max'](0x0,_0x2792aa)),_0x14e6b1=(-_0x2fc981+_0x6dd9c4)/(0x3*_0x2b2437),_0x238582=(-_0x2fc981-_0x6dd9c4)/(0x3*_0x2b2437);return _0x14e6b1>0x0&&_0x14e6b1<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x14e6b1),_0x238582>0x0&&_0x238582<0x1&&Math['abs'](_0x238582-_0x14e6b1)>I&&_0x34331a['push'](_0x238582),_0x34331a;}function _0x1211(_0x50ed2e,_0xe8e419){_0x50ed2e=_0x50ed2e-0x1ba;const _0x4eef04=_0x4eef();let _0x121192=_0x4eef04[_0x50ed2e];return _0x121192;}function H(_0x4f601d,_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f){const _0x573c7e=_0x1211;_0x4f601d[_0x573c7e(0x20b)](_0x2224c5,_0x36900f),new Set([...V(_0x2224c5['x'],_0x46cadd['x'],_0x1987c1['x'],_0x36900f['x']),...V(_0x2224c5['y'],_0x46cadd['y'],_0x1987c1['y'],_0x36900f['y'])])[_0x573c7e(0x1eb)](_0x2aeff6=>{const _0x30aae2=_0x573c7e;_0x4f601d[_0x30aae2(0x20b)](B(_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f,_0x2aeff6));});}function U(_0x1c2ad0){const _0x4b8f70=_0x1211;let _0x532f0f=_0x1c2ad0[_0x4b8f70(0x208)];if(_0x532f0f['length']<=0x1)return _0x532f0f;let _0x3cf711=[];for(let _0x6de75a=0x1;_0x6de75a<_0x532f0f[_0x4b8f70(0x1e2)];_0x6de75a++){var _0x2d4159,_0x1d3f32;let _0x42ce86=_0x532f0f[_0x6de75a-0x1],_0x3e729c=_0x532f0f[_0x6de75a];H(_0x3cf711,_0x42ce86,(_0x2d4159=_0x42ce86[_0x4b8f70(0x1c1)])==null?_0x42ce86:_0x2d4159,(_0x1d3f32=_0x3e729c['in'])==null?_0x3e729c:_0x1d3f32,_0x3e729c);}if(_0x1c2ad0['closed']&&_0x532f0f[_0x4b8f70(0x1e2)]>0x1){var _0x30eb6b,_0xed4e9f;let _0x43247a=_0x532f0f[_0x532f0f[_0x4b8f70(0x1e2)]-0x1],_0x25e565=_0x532f0f[0x0];H(_0x3cf711,_0x43247a,(_0x30eb6b=_0x43247a[_0x4b8f70(0x1c1)])==null?_0x43247a:_0x30eb6b,(_0xed4e9f=_0x25e565['in'])==null?_0x25e565:_0xed4e9f,_0x25e565);}return _0x3cf711;}function de(_0x75b221){const _0x2e8f98=_0x1211;let _0x4912c2=_0x75b221[_0x2e8f98(0x1c5)];if(_0x4912c2[_0x2e8f98(0x1e2)]<=0x1)return _0x4912c2;let _0x3dcfc6=[];for(let _0x5ef848=0x0;_0x5ef848<_0x4912c2[_0x2e8f98(0x1e2)]-0x1;_0x5ef848++){var _0x8dcc5c,_0x2081ce;let _0x871f0f=_0x4912c2[_0x5ef848],_0x239bdb=_0x4912c2[_0x5ef848+0x1],_0x546780=(_0x8dcc5c=_0x4912c2[_0x5ef848-0x1])==null?_0x871f0f:_0x8dcc5c,_0x344ea5=(_0x2081ce=_0x4912c2[_0x5ef848+0x2])==null?_0x239bdb:_0x2081ce;H(_0x3dcfc6,_0x871f0f,{'x':_0x871f0f['x']+(_0x239bdb['x']-_0x546780['x'])/0x6,'y':_0x871f0f['y']+(_0x239bdb['y']-_0x546780['y'])/0x6},{'x':_0x239bdb['x']-(_0x344ea5['x']-_0x871f0f['x'])/0x6,'y':_0x239bdb['y']-(_0x344ea5['y']-_0x871f0f['y'])/0x6},_0x239bdb);}return _0x3dcfc6;}function fe(_0x9f0f16){const _0x3f3ed5=_0x1211;return _0x9f0f16['kind']===_0x3f3ed5(0x218)?U(_0x9f0f16):de(_0x9f0f16);}function W(_0x22537b){const _0x4abce3=_0x1211;let _0x4a4690=Math[_0x4abce3(0x20f)](_0x22537b*0x2710)/0x2710;return Object['is'](_0x4a4690,-0x0)?0x0:_0x4a4690;}function G(_0x529191){const _0x59a956=_0x1211;let _0x256152=fe(_0x529191);if(_0x256152['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x467b54=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x5c79ff=>_0x5c79ff['x'])),_0xc4946b=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x142167=>_0x142167['y'])),_0x5aa992=Math[_0x59a956(0x1f0)](..._0x256152[_0x59a956(0x1c4)](_0x7c0829=>_0x7c0829['x'])),_0xe8ac3e=Math['max'](..._0x256152['map'](_0x17e09c=>_0x17e09c['y']));return{'left':W(_0x467b54),'top':W(_0xc4946b),'width':W(Math['max'](0x1,_0x5aa992-_0x467b54)),'height':W(Math[_0x59a956(0x1f0)](0x1,_0xe8ac3e-_0xc4946b))};}function pe(_0x3e2b30,_0x124fb7){const _0x74e596=_0x1211;let _0x47cf4c=_0x3e2b30[_0x74e596(0x208)];if(_0x47cf4c[_0x74e596(0x1e2)]===0x0)return'';let _0x95e36d=['M\x20'+R(z(_0x47cf4c[0x0],_0x124fb7))];for(let _0x4ee1e5=0x1;_0x4ee1e5<_0x47cf4c[_0x74e596(0x1e2)];_0x4ee1e5++){var _0x343f97,_0xb4b90e;let _0x27a4d4=_0x47cf4c[_0x4ee1e5-0x1],_0x4bce27=_0x47cf4c[_0x4ee1e5],_0x338c1b=(_0x343f97=_0x27a4d4[_0x74e596(0x1c1)])==null?_0x27a4d4:_0x343f97,_0x1e3317=(_0xb4b90e=_0x4bce27['in'])==null?_0x4bce27:_0xb4b90e;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0x338c1b,_0x124fb7))+'\x20'+R(z(_0x1e3317,_0x124fb7))+'\x20'+R(z(_0x4bce27,_0x124fb7)));}if(_0x3e2b30[_0x74e596(0x1e0)]&&_0x47cf4c[_0x74e596(0x1e2)]>0x1){var _0x127d8f,_0x391377;let _0x36dfda=_0x47cf4c[_0x47cf4c[_0x74e596(0x1e2)]-0x1],_0x1618b2=_0x47cf4c[0x0],_0xafc868=(_0x127d8f=_0x36dfda[_0x74e596(0x1c1)])==null?_0x36dfda:_0x127d8f,_0x1de550=(_0x391377=_0x1618b2['in'])==null?_0x1618b2:_0x391377;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0xafc868,_0x124fb7))+'\x20'+R(z(_0x1de550,_0x124fb7))+'\x20'+R(z(_0x1618b2,_0x124fb7))),_0x95e36d[_0x74e596(0x20b)]('Z');}return _0x95e36d['join']('\x20');}function me(_0x16c425,_0x5c128b){const _0x38b1ff=_0x1211;let _0x265969=_0x16c425[_0x38b1ff(0x1c5)][_0x38b1ff(0x1c4)](_0xaed080=>z(_0xaed080,_0x5c128b));if(_0x265969[_0x38b1ff(0x1e2)]===0x0)return'';if(_0x265969[_0x38b1ff(0x1e2)]===0x1)return'M\x20'+R(_0x265969[0x0]);let _0x5bc61b=['M\x20'+R(_0x265969[0x0])];for(let _0x4ca555=0x0;_0x4ca555<_0x265969[_0x38b1ff(0x1e2)]-0x1;_0x4ca555++){var _0xc7926b,_0x19feba;let _0x445dca=_0x265969[_0x4ca555],_0x3792ed=_0x265969[_0x4ca555+0x1],_0x4b6c96=(_0xc7926b=_0x265969[_0x4ca555-0x1])==null?_0x445dca:_0xc7926b,_0x17cfc5=(_0x19feba=_0x265969[_0x4ca555+0x2])==null?_0x3792ed:_0x19feba,_0x14c2c2={'x':_0x445dca['x']+(_0x3792ed['x']-_0x4b6c96['x'])/0x6,'y':_0x445dca['y']+(_0x3792ed['y']-_0x4b6c96['y'])/0x6},_0x19d58a={'x':_0x3792ed['x']-(_0x17cfc5['x']-_0x445dca['x'])/0x6,'y':_0x3792ed['y']-(_0x17cfc5['y']-_0x445dca['y'])/0x6};_0x5bc61b[_0x38b1ff(0x20b)]('C\x20'+R(_0x14c2c2)+'\x20'+R(_0x19d58a)+'\x20'+R(_0x3792ed));}return _0x5bc61b['join']('\x20');}function he(_0x3bd850,_0x5b0f86){const _0x3179ab=_0x1211;return _0x3bd850[_0x3179ab(0x1f8)]===_0x3179ab(0x218)?pe(_0x3bd850,_0x5b0f86):me(_0x3bd850,_0x5b0f86);}function ge(_0x57783c,_0x578a2a){const _0x2572b8=_0x1211;return _0x578a2a!=null&&_0x578a2a[_0x2572b8(0x202)]?_0x578a2a['color']:_0x57783c[_0x2572b8(0x1f8)]===_0x2572b8(0x218)?_0x2572b8(0x1d9):_0x57783c[_0x2572b8(0x202)];}function _e(_0x112a65,_0x5bdcf7){const _0x1f50d3=_0x1211;return(_0x5bdcf7==null?void 0x0:_0x5bdcf7[_0x1f50d3(0x1e6)])===void 0x0?_0x112a65['kind']==='pen'?0x2:_0x112a65[_0x1f50d3(0x1e6)]:_0x5bdcf7[_0x1f50d3(0x1e6)];}function ve(_0x599071,_0x2a1419){return(_0x2a1419==null?void 0x0:_0x2a1419['opacity'])===void 0x0?_0x599071['kind']==='pen'?void 0x0:_0x599071['opacity']:_0x2a1419['opacity'];}function ye(_0x3c585a,_0x6ea5f3){const _0x39e5dd=_0x1211;let _0x385a5e=G(_0x3c585a),_0x5ab225=he(_0x3c585a,{'x':_0x385a5e['left'],'y':_0x385a5e[_0x39e5dd(0x216)]}),_0x58a50c=_0x3c585a['kind']===_0x39e5dd(0x218)&&_0x3c585a[_0x39e5dd(0x1e0)],_0xbd4be8=_0x6ea5f3==null?void 0x0:_0x6ea5f3[_0x39e5dd(0x1e8)];return{'shapeType':_0x46339a[_0x39e5dd(0x1e3)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x385a5e['width'],'h':_0x385a5e[_0x39e5dd(0x1df)],'fill':_0x58a50c?_0x39e5dd(0x1e1):_0x39e5dd(0x1ec),'stroke':!0x0,'data':_0x5ab225,'dataArray':be(_0x3c585a,{'x':_0x385a5e[_0x39e5dd(0x1ea)],'y':_0x385a5e[_0x39e5dd(0x216)]})}]},'fill':_0x58a50c&&_0xbd4be8?{'color':_0xbd4be8,'fillType':_0x5d1bec[_0x39e5dd(0x1e7)]}:{'fillType':_0x5d1bec[_0x39e5dd(0x207)]},'stroke':{'color':ge(_0x3c585a,_0x6ea5f3),'width':_e(_0x3c585a,_0x6ea5f3),'opacity':ve(_0x3c585a,_0x6ea5f3),'lineStrokeType':_0x2298b9[_0x39e5dd(0x209)],'capType':_0x65358a['Round'],'lineJoinType':_0x3afe2a[_0x39e5dd(0x203)]}};}function K(_0x32c7ff,_0x2801d5){return{'x':_0x32c7ff['x']-_0x2801d5['x'],'y':_0x32c7ff['y']-_0x2801d5['y']};}function be(_0x2930cd,_0x1b786f){const _0x321054=_0x1211;if(_0x2930cd[_0x321054(0x1f8)]===_0x321054(0x218)){let _0xa547a7=_0x2930cd[_0x321054(0x208)];if(_0xa547a7['length']===0x0)return[];let _0x279dcd=K(_0xa547a7[0x0],_0x1b786f),_0x376d48=[{'command':'M','points':[_0x279dcd['x'],_0x279dcd['y']]}];for(let _0x5d9ba7=0x1;_0x5d9ba7<_0xa547a7[_0x321054(0x1e2)];_0x5d9ba7++){var _0x2bda0c,_0x1845b6;let _0x21ea08=_0xa547a7[_0x5d9ba7-0x1],_0x1e56e0=_0xa547a7[_0x5d9ba7],_0xfebf11=K((_0x2bda0c=_0x21ea08[_0x321054(0x1c1)])==null?_0x21ea08:_0x2bda0c,_0x1b786f),_0x5141fa=K((_0x1845b6=_0x1e56e0['in'])==null?_0x1e56e0:_0x1845b6,_0x1b786f),_0x17b306=K(_0x1e56e0,_0x1b786f);_0x376d48['push']({'command':'C','points':[_0xfebf11['x'],_0xfebf11['y'],_0x5141fa['x'],_0x5141fa['y'],_0x17b306['x'],_0x17b306['y']]});}if(_0x2930cd[_0x321054(0x1e0)]&&_0xa547a7[_0x321054(0x1e2)]>0x1){var _0x455314,_0xd8fe87;let _0x40a46b=_0xa547a7[_0xa547a7[_0x321054(0x1e2)]-0x1],_0x56f055=_0xa547a7[0x0],_0x36dec7=K((_0x455314=_0x40a46b['out'])==null?_0x40a46b:_0x455314,_0x1b786f),_0x3cea01=K((_0xd8fe87=_0x56f055['in'])==null?_0x56f055:_0xd8fe87,_0x1b786f),_0x37d2d9=K(_0x56f055,_0x1b786f);_0x376d48[_0x321054(0x20b)]({'command':'C','points':[_0x36dec7['x'],_0x36dec7['y'],_0x3cea01['x'],_0x3cea01['y'],_0x37d2d9['x'],_0x37d2d9['y']]}),_0x376d48[_0x321054(0x20b)]({'command':'z','points':[]});}return _0x376d48;}let _0x4bf39c=_0x2930cd[_0x321054(0x1c5)][_0x321054(0x1c4)](_0x2a50ac=>K(_0x2a50ac,_0x1b786f));if(_0x4bf39c[_0x321054(0x1e2)]===0x0)return[];let _0x42a2eb=[{'command':'M','points':[_0x4bf39c[0x0]['x'],_0x4bf39c[0x0]['y']]}];for(let _0x2eb88b=0x0;_0x2eb88b<_0x4bf39c[_0x321054(0x1e2)]-0x1;_0x2eb88b++){var _0x5271fe,_0x1e9e16;let _0x4a856f=_0x4bf39c[_0x2eb88b],_0x5a1c20=_0x4bf39c[_0x2eb88b+0x1],_0xd3b4ad=(_0x5271fe=_0x4bf39c[_0x2eb88b-0x1])==null?_0x4a856f:_0x5271fe,_0x3fc1c1=(_0x1e9e16=_0x4bf39c[_0x2eb88b+0x2])==null?_0x5a1c20:_0x1e9e16,_0x2138b6={'x':_0x4a856f['x']+(_0x5a1c20['x']-_0xd3b4ad['x'])/0x6,'y':_0x4a856f['y']+(_0x5a1c20['y']-_0xd3b4ad['y'])/0x6},_0x30c6a8={'x':_0x5a1c20['x']-(_0x3fc1c1['x']-_0x4a856f['x'])/0x6,'y':_0x5a1c20['y']-(_0x3fc1c1['y']-_0x4a856f['y'])/0x6};_0x42a2eb[_0x321054(0x20b)]({'command':'C','points':[_0x2138b6['x'],_0x2138b6['y'],_0x30c6a8['x'],_0x30c6a8['y'],_0x5a1c20['x'],_0x5a1c20['y']]});}return _0x42a2eb;}function xe(_0x43204b){const _0x180ace=_0x1211;var _0x3e228f;let {model:_0xa3d708,sourceModel:_0x24778f=_0xa3d708,style:_0x170177}=_0x43204b,_0x194a95=(_0x3e228f=_0x43204b[_0x180ace(0x215)])==null?_0xa3d708['kind']:_0x3e228f,_0x2525c9=G(_0xa3d708),_0x3214d8=_0xa3d708[_0x180ace(0x1f8)]==='pen'&&_0x194a95!=='pen'?_0xa3d708:void 0x0;return{'transform':{..._0x2525c9,'rotation':0x0},'shapeData':ye(_0xa3d708,_0x170177),'ink':{'version':0x1,'tool':_0x194a95,'sourceModel':_0x24778f,..._0x3214d8?{'editModel':_0x3214d8}:{},'normalizedBounds':_0x2525c9}};}var Se=_0x4602de(0x1c0),Ce=_0x4602de(0x1c7);function q(_0x3db7cb){'@babel/helpers - typeof';const _0xe4ad9e=_0x4602de;return q=typeof Symbol=='function'&&typeof Symbol[_0xe4ad9e(0x1f4)]==_0xe4ad9e(0x214)?function(_0x12e51e){return typeof _0x12e51e;}:function(_0x3d0599){const _0x129da7=_0xe4ad9e;return _0x3d0599&&typeof Symbol=='function'&&_0x3d0599[_0x129da7(0x1bf)]===Symbol&&_0x3d0599!==Symbol[_0x129da7(0x1ff)]?_0x129da7(0x214):typeof _0x3d0599;},q(_0x3db7cb);}function we(_0x4616bb,_0x3450ed){const _0x308030=_0x4602de;if(q(_0x4616bb)!='object'||!_0x4616bb)return _0x4616bb;var _0x37d4fd=_0x4616bb[Symbol[_0x308030(0x1bd)]];if(_0x37d4fd!==void 0x0){var _0x1337d6=_0x37d4fd[_0x308030(0x1c6)](_0x4616bb,_0x3450ed||_0x308030(0x1d1));if(q(_0x1337d6)!=_0x308030(0x1ce))return _0x1337d6;throw TypeError(_0x308030(0x1e5));}return(_0x3450ed===_0x308030(0x1cd)?String:Number)(_0x4616bb);}function J(_0x2cf7d5){var _0x2588a4=we(_0x2cf7d5,'string');return q(_0x2588a4)=='symbol'?_0x2588a4:_0x2588a4+'';}function Y(_0x2c7ade,_0x497417,_0x5a1879){const _0x58d322=_0x4602de;return(_0x497417=J(_0x497417))in _0x2c7ade?Object[_0x58d322(0x1d3)](_0x2c7ade,_0x497417,{'value':_0x5a1879,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c7ade[_0x497417]=_0x5a1879,_0x2c7ade;}const X=_0x113c29(_0x4602de(0x1ee));function _0x4eef(){const _0x496427=['registerCommand','8wQWMzo','symbol','tool','top','100292uigght','pen','1025282PXmaBs','UNIVER_UNKNOWN','end','toPrimitive','right','constructor','@univerjs-pro/ink','out','tolerance','_config','map','points','call','1.0.0-alpha.5','_configService','3181017VlRlDb','pointType','ink.operation.start','3458565PsOtLJ','string','object','9535700nxXkRG','corner','default','anchor','defineProperty','createCustomShape','get','_adapters','2624610OdnZzg','findIndex','#f54a45','pluginName','version','disposeWithMe','_injector','symmetric','height','closed','norm','length','Rect','abs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','width','SolidFill','fillColor','splice','left','forEach','none','add','ink.host-adapter.service','startIndex','max','free','endIndex','find','iterator','filter','decorate','slice','kind','beginInkMode','OPERATION','smooth','getOwnPropertyDescriptor','segmentIndex','start','prototype','type','ratio','color','Round','distance','point','2cOGgSL','NoFill','anchors','SolidLine','_commandService','push','hypot','min','973326xGVAaR','round','110sAsyTy','createId'];_0x4eef=function(){return _0x496427;};return _0x4eef();}var Te=class{constructor(){const _0x13fc70=_0x4602de;Y(this,_0x13fc70(0x1d6),[]);}['registerAdapter'](_0x21da3f){const _0x542b73=_0x4602de;return this['_adapters'][_0x542b73(0x20b)](_0x21da3f),_0x373e13(()=>{const _0x1f15f7=_0x542b73;let _0x1a116b=this[_0x1f15f7(0x1d6)]['indexOf'](_0x21da3f);_0x1a116b>=0x0&&this['_adapters'][_0x1f15f7(0x1e9)](_0x1a116b,0x1);});}[_0x4602de(0x1f9)](_0x5db213){const _0x15ac98=_0x4602de;for(let _0x324ad8 of this['_adapters'])if(_0x324ad8[_0x15ac98(0x1f9)](_0x5db213))return!0x0;return!0x1;}async[_0x4602de(0x1d4)](_0x548593){const _0x17606c=_0x4602de;for(let _0x4ccc14 of this[_0x17606c(0x1d6)])if(_0x4ccc14[_0x17606c(0x1d4)]&&await _0x4ccc14[_0x17606c(0x1d4)](_0x548593))return!0x0;return!0x1;}};const Ee={'id':_0x4602de(0x1cb),'type':_0x3e6dda[_0x4602de(0x1fa)],'handler':(_0x3a5dbd,_0x2585f5)=>_0x2585f5?_0x3a5dbd[_0x4602de(0x1d5)](X)[_0x4602de(0x1f9)](_0x2585f5):!0x1},Z={};function Q(_0x932558,_0x2acae1){return function(_0x1c3776,_0x1cc47c){_0x2acae1(_0x1c3776,_0x1cc47c,_0x932558);};}function De(_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17){const _0x450c75=_0x4602de;var _0x167094=arguments['length'],_0x1012ae=_0x167094<0x3?_0x1a89e1:_0x174c17===null?_0x174c17=Object[_0x450c75(0x1fc)](_0x1a89e1,_0x88ebdb):_0x174c17,_0x5abb30;if(typeof Reflect==_0x450c75(0x1ce)&&typeof Reflect[_0x450c75(0x1f6)]=='function')_0x1012ae=Reflect[_0x450c75(0x1f6)](_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17);else{for(var _0x5857d2=_0x382d75[_0x450c75(0x1e2)]-0x1;_0x5857d2>=0x0;_0x5857d2--)(_0x5abb30=_0x382d75[_0x5857d2])&&(_0x1012ae=(_0x167094<0x3?_0x5abb30(_0x1012ae):_0x167094>0x3?_0x5abb30(_0x1a89e1,_0x88ebdb,_0x1012ae):_0x5abb30(_0x1a89e1,_0x88ebdb))||_0x1012ae);}return _0x167094>0x3&&_0x1012ae&&Object[_0x450c75(0x1d3)](_0x1a89e1,_0x88ebdb,_0x1012ae),_0x1012ae;}let $=class extends _0x1732ef{constructor(_0x49581a=Z,_0x2251c4,_0x2e4743,_0x25a73b){const _0x4a00e1=_0x4602de;super(),this['_config']=_0x49581a,this[_0x4a00e1(0x1dd)]=_0x2251c4,this[_0x4a00e1(0x20a)]=_0x2e4743,this[_0x4a00e1(0x1c8)]=_0x25a73b;let {..._0x2bde7d}=_0x2ec470({},Z,this[_0x4a00e1(0x1c3)]);this['_configService']['setConfig']('ink.config',_0x2bde7d);}['onStarting'](){const _0x5791bb=_0x4602de;[[X,{'useClass':Te}]][_0x5791bb(0x1eb)](_0x1192e8=>this[_0x5791bb(0x1dd)][_0x5791bb(0x1ed)](_0x1192e8)),this[_0x5791bb(0x1dc)](this[_0x5791bb(0x20a)][_0x5791bb(0x212)](Ee));}};Y($,_0x4602de(0x1da),'UNIVER_INK_PLUGIN'),Y($,'packageName',Se),Y($,_0x4602de(0x1db),Ce),Y($,_0x4602de(0x200),_0x2f3686[_0x4602de(0x1bb)]),$=De([_0x21f9f4(_0x1c9fb0),Q(0x1,_0x83b12a(_0x4b9262)),Q(0x2,_0x44cbdf),Q(0x3,_0x74df07)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
|
1
|
+
const _0xd9ea97=_0x5d75;(function(_0x583a21,_0x3dd7e7){const _0x56c90b=_0x5d75,_0x37ba04=_0x583a21();while(!![]){try{const _0x47bcfa=-parseInt(_0x56c90b(0x173))/0x1+-parseInt(_0x56c90b(0x140))/0x2+parseInt(_0x56c90b(0x14f))/0x3+-parseInt(_0x56c90b(0x13d))/0x4+parseInt(_0x56c90b(0x16b))/0x5+-parseInt(_0x56c90b(0x187))/0x6*(-parseInt(_0x56c90b(0x15e))/0x7)+parseInt(_0x56c90b(0x18e))/0x8;if(_0x47bcfa===_0x3dd7e7)break;else _0x37ba04['push'](_0x37ba04['shift']());}catch(_0xaae5ca){_0x37ba04['push'](_0x37ba04['shift']());}}}(_0x1f0e,0xd2e2d));import{ShapeFillEnum as _0x157d04,ShapeLineCapEnum as _0x363052,ShapeLineJoinEnum as _0x56486c,ShapeLineTypeEnum as _0x41a350,ShapeTypeEnum as _0x2fc13d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x42d00b}from'@univerjs-pro/license';import{CommandType as _0x3450b2,DependentOn as _0xbc0f6e,ICommandService as _0x16de20,IConfigService as _0x3c718d,Inject as _0x4e3a63,Injector as _0x5500c4,Plugin as _0x205aab,UniverInstanceType as _0x42f687,createIdentifier as _0x1ab48e,merge as _0x1239fb,toDisposable as _0x29412f}from'@univerjs/core';const g=0.0001;function _(_0x1c4784){return{'x':_0x1c4784['x'],'y':_0x1c4784['y']};}function v(_0x2a107c){const _0x2cd110=_0x5d75;return{..._0x2a107c,'in':_0x2a107c['in']?_(_0x2a107c['in']):void 0x0,'out':_0x2a107c['out']?_(_0x2a107c[_0x2cd110(0x139)]):void 0x0};}function y(_0x5c7ca3){const _0x3ce2bc=_0x5d75;return{'kind':_0x3ce2bc(0x195),'closed':_0x5c7ca3[_0x3ce2bc(0x177)],'anchors':_0x5c7ca3[_0x3ce2bc(0x143)][_0x3ce2bc(0x13c)](v)};}function b(_0x421435,_0x3ecbc4,_0x13d740){return{'x':_0x421435['x']+(_0x3ecbc4['x']-_0x421435['x'])*_0x13d740,'y':_0x421435['y']+(_0x3ecbc4['y']-_0x421435['y'])*_0x13d740};}function x(_0x3ed006,_0x2248cc){const _0x303571=_0x5d75;return Math[_0x303571(0x179)](_0x3ed006['x']-_0x2248cc['x'],_0x3ed006['y']-_0x2248cc['y']);}function S(_0x43b2af){let _0x4ce1e7=Math['hypot'](_0x43b2af['x'],_0x43b2af['y']);return _0x4ce1e7<g?{'x':0x1,'y':0x0}:{'x':_0x43b2af['x']/_0x4ce1e7,'y':_0x43b2af['y']/_0x4ce1e7};}function C(_0x1b10ba,_0x4d4b62,_0x57b104=x(_0x1b10ba,_0x4d4b62)){let _0x29f3c0=S({'x':_0x1b10ba['x']-_0x4d4b62['x'],'y':_0x1b10ba['y']-_0x4d4b62['y']});return{'x':_0x1b10ba['x']+_0x29f3c0['x']*_0x57b104,'y':_0x1b10ba['y']+_0x29f3c0['y']*_0x57b104};}function w(_0x4fa05c,_0x4d9b3c){const _0x168da6=_0x5d75;let {anchors:_0x16ed3e}=_0x4fa05c;return _0x16ed3e[_0x168da6(0x15b)]<0x2||_0x4d9b3c<0x0?null:_0x4d9b3c<_0x16ed3e['length']-0x1?{'startIndex':_0x4d9b3c,'endIndex':_0x4d9b3c+0x1,'start':_0x16ed3e[_0x4d9b3c],'end':_0x16ed3e[_0x4d9b3c+0x1]}:_0x4fa05c[_0x168da6(0x177)]&&_0x4d9b3c===_0x16ed3e['length']-0x1?{'startIndex':_0x16ed3e[_0x168da6(0x15b)]-0x1,'endIndex':0x0,'start':_0x16ed3e[_0x16ed3e[_0x168da6(0x15b)]-0x1],'end':_0x16ed3e[0x0]}:null;}function T(_0x252e88,_0x516bc5){const _0x1124c8=_0x5d75;var _0xe8f2fe,_0x23763c;let _0x876388=w(_0x252e88,_0x516bc5);return _0x876388?[_0x876388['start'],(_0xe8f2fe=_0x876388[_0x1124c8(0x181)][_0x1124c8(0x139)])==null?_0x876388[_0x1124c8(0x181)]:_0xe8f2fe,(_0x23763c=_0x876388[_0x1124c8(0x169)]['in'])==null?_0x876388[_0x1124c8(0x169)]:_0x23763c,_0x876388[_0x1124c8(0x169)]]:null;}function te(_0x137d6a,_0x28c135){var _0x4001aa;return _0x28c135==='anchor'?_0x137d6a:(_0x4001aa=_0x137d6a[_0x28c135])==null?null:_0x4001aa;}function E(_0x1c5905,_0x107d8e,_0x1ccfbc){const _0x112356=_0x5d75;return _0x1ccfbc===_0x112356(0x163)||_0x1c5905[_0x112356(0x177)]?!0x0:_0x1ccfbc==='in'?_0x107d8e>0x0:_0x107d8e<_0x1c5905['anchors'][_0x112356(0x15b)]-0x1;}function D(_0x30166d,_0x59ad48){let [_0xff4e02,_0x486f37,_0x25b23f,_0x1c2b6f]=_0x30166d,_0x5a6c14=b(_0xff4e02,_0x486f37,_0x59ad48),_0x2e6c74=b(_0x486f37,_0x25b23f,_0x59ad48),_0x165d33=b(_0x25b23f,_0x1c2b6f,_0x59ad48);return b(b(_0x5a6c14,_0x2e6c74,_0x59ad48),b(_0x2e6c74,_0x165d33,_0x59ad48),_0x59ad48);}function ne(_0x1b6283,_0x135d30){let [_0x561704,_0x90133e,_0x41c9d4,_0x428715]=_0x1b6283,_0x5092ca=b(_0x561704,_0x90133e,_0x135d30),_0x37b48c=b(_0x90133e,_0x41c9d4,_0x135d30),_0x2b4dc5=b(_0x41c9d4,_0x428715,_0x135d30),_0x5a3e1e=b(_0x5092ca,_0x37b48c,_0x135d30),_0x3b1b03=b(_0x37b48c,_0x2b4dc5,_0x135d30),_0x478d72=b(_0x5a3e1e,_0x3b1b03,_0x135d30);return{'left':[_0x561704,_0x5092ca,_0x5a3e1e,_0x478d72],'right':[_0x478d72,_0x3b1b03,_0x2b4dc5,_0x428715]};}function O(_0x250740,_0xc0a51b,_0x345ecb){const _0x4aff10=_0x5d75;let _0x580f77=_0x345ecb['x']-_0xc0a51b['x'],_0x2d4d1b=_0x345ecb['y']-_0xc0a51b['y'],_0x2f93e5=_0x580f77*_0x580f77+_0x2d4d1b*_0x2d4d1b,_0x5a4687=_0x2f93e5<=g?0x0:Math[_0x4aff10(0x14a)](0x0,Math['min'](0x1,((_0x250740['x']-_0xc0a51b['x'])*_0x580f77+(_0x250740['y']-_0xc0a51b['y'])*_0x2d4d1b)/_0x2f93e5)),_0x5045d2={'x':_0xc0a51b['x']+_0x580f77*_0x5a4687,'y':_0xc0a51b['y']+_0x2d4d1b*_0x5a4687};return{'point':_0x5045d2,'ratio':_0x5a4687,'distance':x(_0x250740,_0x5045d2)};}function re(_0x316cf3,_0x2c511a,_0x16ea29){return O(_0x316cf3,_0x2c511a,_0x16ea29)['distance']**0x2;}function k(_0x41db0d,_0x5c6cd1){const _0x5cb9ec=_0x5d75;if(_0x41db0d[_0x5cb9ec(0x15b)]<=0x2)return _0x41db0d[_0x5cb9ec(0x13c)](_);let _0x527150=0x0,_0x1f759b=0x0,_0xa900a5=_0x41db0d[0x0],_0x5da654=_0x41db0d[_0x41db0d[_0x5cb9ec(0x15b)]-0x1],_0x49d039=_0x5c6cd1*_0x5c6cd1;for(let _0x4ee1c2=0x1;_0x4ee1c2<_0x41db0d[_0x5cb9ec(0x15b)]-0x1;_0x4ee1c2++){let _0x29b206=re(_0x41db0d[_0x4ee1c2],_0xa900a5,_0x5da654);_0x29b206>_0x527150&&(_0x527150=_0x29b206,_0x1f759b=_0x4ee1c2);}if(_0x527150<=_0x49d039)return[_(_0xa900a5),_(_0x5da654)];let _0x29d723=k(_0x41db0d[_0x5cb9ec(0x168)](0x0,_0x1f759b+0x1),_0x5c6cd1),_0x287549=k(_0x41db0d[_0x5cb9ec(0x168)](_0x1f759b),_0x5c6cd1);return[..._0x29d723['slice'](0x0,-0x1),..._0x287549];}function ie(_0x3ebe1e,_0x168b14){var _0x1fd1fb;let _0x55f4a4=_0x3ebe1e[_0x168b14],_0x11235c=_0x3ebe1e[_0x168b14+0x1],_0x177792=(_0x1fd1fb=_0x3ebe1e[_0x168b14-0x1])==null?_0x55f4a4:_0x1fd1fb;return{'x':_0x55f4a4['x']+(_0x11235c['x']-_0x177792['x'])/0x6,'y':_0x55f4a4['y']+(_0x11235c['y']-_0x177792['y'])/0x6};}function A(_0x40ed69,_0x105113){var _0x36c000;let _0x1bee18=_0x40ed69[_0x105113],_0x13e58e=_0x40ed69[_0x105113-0x1],_0x5d1cf4=(_0x36c000=_0x40ed69[_0x105113+0x1])==null?_0x1bee18:_0x36c000;return{'x':_0x1bee18['x']-(_0x5d1cf4['x']-_0x13e58e['x'])/0x6,'y':_0x1bee18['y']-(_0x5d1cf4['y']-_0x13e58e['y'])/0x6};}function j(_0x5a8e8d,_0x34b014){const _0x325343=_0x5d75;var _0x54c804,_0x319837;let _0x173d6c=_0x5a8e8d[_0x325343(0x143)][_0x34b014],_0x1ce829=(_0x54c804=_0x5a8e8d['anchors'][_0x34b014-0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][_0x5a8e8d['anchors'][_0x325343(0x15b)]-0x1]:null:_0x54c804,_0x21c725=(_0x319837=_0x5a8e8d['anchors'][_0x34b014+0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][0x0]:null:_0x319837,_0x3b9465=_0x1ce829&&_0x21c725?S({'x':_0x21c725['x']-_0x1ce829['x'],'y':_0x21c725['y']-_0x1ce829['y']}):_0x21c725?S({'x':_0x21c725['x']-_0x173d6c['x'],'y':_0x21c725['y']-_0x173d6c['y']}):_0x1ce829?S({'x':_0x173d6c['x']-_0x1ce829['x'],'y':_0x173d6c['y']-_0x1ce829['y']}):{'x':0x1,'y':0x0},_0x1bb118=_0x1ce829&&_0x21c725?Math[_0x325343(0x14a)](0x32,x(_0x1ce829,_0x21c725)/0x4):0x32;return{'in':{'x':_0x173d6c['x']-_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']-_0x3b9465['y']*_0x1bb118},'out':{'x':_0x173d6c['x']+_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']+_0x3b9465['y']*_0x1bb118}};}function M(_0x331f34,_0x225f45){const _0x1635fa=_0x5d75;let _0x5c5948=_0x331f34[_0x225f45],_0x34a908=_0x225f45==='in'?_0x1635fa(0x139):'in',_0x1d5124=_0x331f34[_0x34a908];if(_0x5c5948){if(_0x331f34['pointType']==='symmetric'){_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948);return;}_0x331f34[_0x1635fa(0x155)]===_0x1635fa(0x146)&&(_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948,_0x1d5124?x(_0x331f34,_0x1d5124):x(_0x331f34,_0x5c5948)));}}function ae(_0x32764f,_0x140103){const _0x501204=_0x5d75;let _0x4d5d43=y(_0x32764f);return!_0x140103||_0x4d5d43['closed']||_0x4d5d43[_0x501204(0x143)][_0x501204(0x15b)]===0x0||_0x4d5d43[_0x501204(0x143)][_0x501204(0x18d)]({'id':_0x501204(0x144),'x':_0x140103['x'],'y':_0x140103['y'],'pointType':_0x501204(0x188)}),_0x4d5d43;}function oe(_0x95db77,_0x335c81={}){const _0x3ff665=_0x5d75;var _0x455e4b,_0x4a9cd2;let _0x42e572=Math[_0x3ff665(0x14a)](0x0,(_0x455e4b=_0x335c81[_0x3ff665(0x178)])==null?Math['max'](0x4,_0x95db77['width']*0.35):_0x455e4b),_0x5c818d=(_0x4a9cd2=_0x335c81[_0x3ff665(0x194)])==null?_0x298564=>_0x3ff665(0x152)+_0x298564:_0x4a9cd2,_0x519604=k(_0x95db77['points'],_0x42e572),_0x4b6ddc=_0x519604[_0x3ff665(0x13c)]((_0x40e9b8,_0x42a616)=>({'id':_0x5c818d(_0x42a616),'x':_0x40e9b8['x'],'y':_0x40e9b8['y'],'pointType':_0x3ff665(0x13b)}));for(let _0x265a12=0x0;_0x265a12<_0x4b6ddc[_0x3ff665(0x15b)]-0x1;_0x265a12++)_0x4b6ddc[_0x265a12][_0x3ff665(0x139)]=ie(_0x519604,_0x265a12),_0x4b6ddc[_0x265a12+0x1]['in']=A(_0x519604,_0x265a12+0x1);return{'kind':_0x3ff665(0x195),'closed':!0x1,'anchors':_0x4b6ddc};}function se(_0x208dd5,_0x5e25e0,_0x2962f8){const _0x5cda09=_0x5d75;let _0x38bab0=null,_0x16fa07=[_0x5cda09(0x163),'in',_0x5cda09(0x139)];return _0x208dd5[_0x5cda09(0x143)]['forEach']((_0x8f85da,_0x3ef198)=>{const _0x1731ad=_0x5cda09;_0x16fa07[_0x1731ad(0x193)](_0x405653=>{const _0x4c7e97=_0x1731ad;if(!E(_0x208dd5,_0x3ef198,_0x405653))return;let _0xb85dac=te(_0x8f85da,_0x405653);if(!_0xb85dac)return;let _0x3d87c9=x(_0x5e25e0,_0xb85dac);_0x3d87c9>_0x2962f8||_0x38bab0&&_0x3d87c9>=_0x38bab0[_0x4c7e97(0x17d)]||(_0x38bab0={'handle':{'kind':_0x405653,'anchorId':_0x8f85da['id']},'point':_(_0xb85dac),'distance':_0x3d87c9});});}),_0x38bab0;}function ce(_0x4655b2,_0x265026,_0x1c40a5){const _0x41aee7=_0x5d75;let _0x4973e7=null,_0x2466ba=_0x4655b2['closed']?_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]:Math[_0x41aee7(0x14a)](0x0,_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]-0x1);for(let _0x31f18d=0x0;_0x31f18d<_0x2466ba;_0x31f18d++){let _0x51465b=T(_0x4655b2,_0x31f18d);if(!_0x51465b)continue;let _0x3e8297=D(_0x51465b,0x0);for(let _0x16aaad=0x1;_0x16aaad<=0x20;_0x16aaad++){let _0x43e783=D(_0x51465b,_0x16aaad/0x20),_0x117a70=O(_0x265026,_0x3e8297,_0x43e783),_0x552101=(_0x16aaad-0x1+_0x117a70[_0x41aee7(0x16e)])/0x20;(!_0x4973e7||_0x117a70['distance']<_0x4973e7[_0x41aee7(0x17d)])&&(_0x4973e7={'segmentIndex':_0x31f18d,'t':_0x552101,'point':_0x117a70['point'],'distance':_0x117a70['distance']}),_0x3e8297=_0x43e783;}}return _0x4973e7&&_0x4973e7[_0x41aee7(0x17d)]<=_0x1c40a5?_0x4973e7:null;}function le(_0x1b6e6c,_0x1718f5,_0x31090c){const _0x3d0d01=_0x5d75;let _0xa81a9b=y(_0x1b6e6c),_0x1dce41=w(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]),_0x2870c8=T(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]);if(!_0x1dce41||!_0x2870c8)return _0xa81a9b;let _0x59758a=ne(_0x2870c8,Math['max'](0x0,Math[_0x3d0d01(0x18b)](0x1,_0x1718f5['t']))),_0x337435={'id':_0x31090c(),'x':_0x59758a['left'][0x3]['x'],'y':_0x59758a[_0x3d0d01(0x175)][0x3]['y'],'in':_(_0x59758a[_0x3d0d01(0x175)][0x2]),'out':_(_0x59758a[_0x3d0d01(0x182)][0x1]),'pointType':_0x3d0d01(0x13b)};return _0xa81a9b['anchors'][_0x1dce41[_0x3d0d01(0x15a)]][_0x3d0d01(0x139)]=_(_0x59758a[_0x3d0d01(0x175)][0x1]),_0xa81a9b[_0x3d0d01(0x143)][_0x1dce41[_0x3d0d01(0x189)]]['in']=_(_0x59758a[_0x3d0d01(0x182)][0x2]),_0xa81a9b['anchors'][_0x3d0d01(0x16c)](_0x1dce41[_0x3d0d01(0x15a)]+0x1,0x0,_0x337435),_0xa81a9b;}function ue(_0x1d9e10,_0x3e5793){const _0x287dcd=_0x5d75;let _0x4e4cf8=y(_0x1d9e10);return _0x4e4cf8['anchors']=_0x4e4cf8[_0x287dcd(0x143)][_0x287dcd(0x164)](_0x457dfe=>_0x457dfe['id']!==_0x3e5793),_0x4e4cf8['closed']&&_0x4e4cf8[_0x287dcd(0x143)]['length']<0x3&&(_0x4e4cf8['closed']=!0x1),_0x4e4cf8;}function N(_0x3d3393,_0x3a4f81,_0x181438){const _0x2db96c=_0x5d75;let _0x2fe297=y(_0x3d3393),_0x1999b5=_0x2fe297[_0x2db96c(0x143)][_0x2db96c(0x150)](_0x3a3f41=>_0x3a3f41['id']===_0x3a4f81),_0x2055e7=_0x2fe297['anchors'][_0x1999b5];if(!_0x2055e7)return _0x2fe297;if(_0x2055e7['pointType']=_0x181438,_0x181438===_0x2db96c(0x188))return delete _0x2055e7['in'],delete _0x2055e7[_0x2db96c(0x139)],_0x2fe297;let _0x3c9431=j(_0x2fe297,_0x1999b5);if(_0x2055e7['in']=_0x2055e7['in']?_(_0x2055e7['in']):_0x3c9431['in'],_0x2055e7[_0x2db96c(0x139)]=_0x2055e7['out']?_(_0x2055e7[_0x2db96c(0x139)]):_0x3c9431[_0x2db96c(0x139)],_0x181438===_0x2db96c(0x13f)){let _0x16372e=Math['max'](x(_0x2055e7,_0x2055e7['in']),x(_0x2055e7,_0x2055e7['out']),0x32),_0xf3593c=S({'x':_0x2055e7[_0x2db96c(0x139)]['x']-_0x2055e7['x'],'y':_0x2055e7['out']['y']-_0x2055e7['y']});_0x2055e7[_0x2db96c(0x139)]={'x':_0x2055e7['x']+_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']+_0xf3593c['y']*_0x16372e},_0x2055e7['in']={'x':_0x2055e7['x']-_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']-_0xf3593c['y']*_0x16372e};}else _0x181438===_0x2db96c(0x146)&&M(_0x2055e7,_0x2db96c(0x139));return _0x2fe297;}function P(_0x8faea0,_0x4d05f0){const _0x587d9c=_0x5d75;var _0x474a43;let _0x68e57f=_0x8faea0[_0x587d9c(0x143)][_0x587d9c(0x154)](_0x33bfe9=>_0x33bfe9['id']===_0x4d05f0),_0x19db64=(_0x474a43=_0x68e57f==null?void 0x0:_0x68e57f[_0x587d9c(0x155)])==null?_0x587d9c(0x188):_0x474a43;return N(_0x8faea0,_0x4d05f0,_0x19db64===_0x587d9c(0x188)?_0x587d9c(0x146):_0x19db64===_0x587d9c(0x146)?'symmetric':_0x19db64===_0x587d9c(0x13f)?_0x587d9c(0x13b):_0x587d9c(0x188));}function F(_0x3530c9,_0x3e48d2,_0x2043a9){const _0x4a851f=_0x5d75;let _0x232366=y(_0x3530c9),_0x5e5d14=_0x232366['anchors'][_0x4a851f(0x154)](_0x34c602=>_0x34c602['id']===_0x3e48d2['anchorId']);if(!_0x5e5d14)return _0x232366;if(_0x3e48d2[_0x4a851f(0x172)]===_0x4a851f(0x163)){let _0x831642={'x':_0x2043a9['x']-_0x5e5d14['x'],'y':_0x2043a9['y']-_0x5e5d14['y']};return _0x5e5d14['x']=_0x2043a9['x'],_0x5e5d14['y']=_0x2043a9['y'],_0x5e5d14['in']&&(_0x5e5d14['in']={'x':_0x5e5d14['in']['x']+_0x831642['x'],'y':_0x5e5d14['in']['y']+_0x831642['y']}),_0x5e5d14[_0x4a851f(0x139)]&&(_0x5e5d14[_0x4a851f(0x139)]={'x':_0x5e5d14[_0x4a851f(0x139)]['x']+_0x831642['x'],'y':_0x5e5d14[_0x4a851f(0x139)]['y']+_0x831642['y']}),_0x232366;}return _0x5e5d14[_0x3e48d2['kind']]=_(_0x2043a9),_0x5e5d14[_0x4a851f(0x155)]==='corner'&&(_0x5e5d14['pointType']=_0x4a851f(0x13b)),M(_0x5e5d14,_0x3e48d2[_0x4a851f(0x172)]),_0x232366;}const I=1e-9;function L(_0x2563c6){const _0x12a095=_0x5d75;let _0x407f4f=Math[_0x12a095(0x16d)](_0x2563c6*0x2710)/0x2710;return Object['is'](_0x407f4f,-0x0)?'0':String(_0x407f4f);}function R(_0x6b4dcc){return L(_0x6b4dcc['x'])+'\x20'+L(_0x6b4dcc['y']);}function z(_0x1e0f2c,_0x2de331){return{'x':_0x1e0f2c['x']-_0x2de331['x'],'y':_0x1e0f2c['y']-_0x2de331['y']};}function B(_0xacfda9,_0x2e249b,_0x98a8a6,_0x3ace9c,_0x2d3f80){let _0x157773=0x1-_0x2d3f80;return{'x':_0x157773*_0x157773*_0x157773*_0xacfda9['x']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['x']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['x']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['x'],'y':_0x157773*_0x157773*_0x157773*_0xacfda9['y']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['y']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['y']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['y']};}function V(_0x4f5ce8,_0xba8f6f,_0x5cc759,_0x43106a){const _0x1c5686=_0x5d75;let _0x2c581c=-_0x4f5ce8+0x3*_0xba8f6f-0x3*_0x5cc759+_0x43106a,_0xa4545c=0x3*_0x4f5ce8-0x6*_0xba8f6f+0x3*_0x5cc759,_0x2d2f6d=-0x3*_0x4f5ce8+0x3*_0xba8f6f,_0x2df6c3=[];if(Math[_0x1c5686(0x171)](_0x2c581c)<I){if(Math[_0x1c5686(0x171)](_0xa4545c)<I)return _0x2df6c3;let _0x5d7fd2=-_0x2d2f6d/(0x2*_0xa4545c);return _0x5d7fd2>0x0&&_0x5d7fd2<0x1&&_0x2df6c3[_0x1c5686(0x18d)](_0x5d7fd2),_0x2df6c3;}let _0x2173b7=_0xa4545c*_0xa4545c-0x3*_0x2c581c*_0x2d2f6d;if(_0x2173b7<0x0)return _0x2df6c3;let _0x16cc2e=Math[_0x1c5686(0x186)](Math[_0x1c5686(0x14a)](0x0,_0x2173b7)),_0x3f270f=(-_0xa4545c+_0x16cc2e)/(0x3*_0x2c581c),_0x3c4d7c=(-_0xa4545c-_0x16cc2e)/(0x3*_0x2c581c);return _0x3f270f>0x0&&_0x3f270f<0x1&&_0x2df6c3['push'](_0x3f270f),_0x3c4d7c>0x0&&_0x3c4d7c<0x1&&Math[_0x1c5686(0x171)](_0x3c4d7c-_0x3f270f)>I&&_0x2df6c3['push'](_0x3c4d7c),_0x2df6c3;}function H(_0x363c5d,_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336){const _0x4618cf=_0x5d75;_0x363c5d[_0x4618cf(0x18d)](_0x468aa2,_0xc68336),new Set([...V(_0x468aa2['x'],_0x37313d['x'],_0x2b50a2['x'],_0xc68336['x']),...V(_0x468aa2['y'],_0x37313d['y'],_0x2b50a2['y'],_0xc68336['y'])])[_0x4618cf(0x193)](_0x3f830d=>{const _0x12bb73=_0x4618cf;_0x363c5d[_0x12bb73(0x18d)](B(_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336,_0x3f830d));});}function U(_0x442e04){const _0xbe0606=_0x5d75;let _0x350ec2=_0x442e04[_0xbe0606(0x143)];if(_0x350ec2[_0xbe0606(0x15b)]<=0x1)return _0x350ec2;let _0x2aed2d=[];for(let _0x396f42=0x1;_0x396f42<_0x350ec2[_0xbe0606(0x15b)];_0x396f42++){var _0x5e79a9,_0x2f4f9b;let _0x5ebdf1=_0x350ec2[_0x396f42-0x1],_0xe9b299=_0x350ec2[_0x396f42];H(_0x2aed2d,_0x5ebdf1,(_0x5e79a9=_0x5ebdf1['out'])==null?_0x5ebdf1:_0x5e79a9,(_0x2f4f9b=_0xe9b299['in'])==null?_0xe9b299:_0x2f4f9b,_0xe9b299);}if(_0x442e04[_0xbe0606(0x177)]&&_0x350ec2[_0xbe0606(0x15b)]>0x1){var _0x3a2839,_0x32de18;let _0x3b4a69=_0x350ec2[_0x350ec2[_0xbe0606(0x15b)]-0x1],_0x2d8f81=_0x350ec2[0x0];H(_0x2aed2d,_0x3b4a69,(_0x3a2839=_0x3b4a69[_0xbe0606(0x139)])==null?_0x3b4a69:_0x3a2839,(_0x32de18=_0x2d8f81['in'])==null?_0x2d8f81:_0x32de18,_0x2d8f81);}return _0x2aed2d;}function de(_0x4a97cb){const _0x2b4158=_0x5d75;let _0x4e941c=_0x4a97cb['points'];if(_0x4e941c[_0x2b4158(0x15b)]<=0x1)return _0x4e941c;let _0x57784e=[];for(let _0x576090=0x0;_0x576090<_0x4e941c[_0x2b4158(0x15b)]-0x1;_0x576090++){var _0xf30f9c,_0x4b5c5e;let _0x275902=_0x4e941c[_0x576090],_0x40e952=_0x4e941c[_0x576090+0x1],_0x248644=(_0xf30f9c=_0x4e941c[_0x576090-0x1])==null?_0x275902:_0xf30f9c,_0x434f63=(_0x4b5c5e=_0x4e941c[_0x576090+0x2])==null?_0x40e952:_0x4b5c5e;H(_0x57784e,_0x275902,{'x':_0x275902['x']+(_0x40e952['x']-_0x248644['x'])/0x6,'y':_0x275902['y']+(_0x40e952['y']-_0x248644['y'])/0x6},{'x':_0x40e952['x']-(_0x434f63['x']-_0x275902['x'])/0x6,'y':_0x40e952['y']-(_0x434f63['y']-_0x275902['y'])/0x6},_0x40e952);}return _0x57784e;}function fe(_0x9511fb){const _0x4ae3e7=_0x5d75;return _0x9511fb[_0x4ae3e7(0x172)]===_0x4ae3e7(0x195)?U(_0x9511fb):de(_0x9511fb);}function _0x1f0e(){const _0x3ccca4=['out','height','free','map','5280012gcHgel','width','symmetric','1307234iubbVe','string','Rect','anchors','__ink-preview-anchor__','top','smooth','OPERATION','none','_configService','max','onStarting','ink.host-adapter.service','add','_config','2383332VilSed','findIndex','_injector','ink-centerline-','ink.config','find','pointType','createCustomShape','default','color','fillColor','startIndex','length','pluginName','function','6405xMnsxe','disposeWithMe','1.0.0-alpha.7','version','norm','anchor','filter','toPrimitive','SolidLine','join','slice','end','beginInkMode','7111505pjiuRz','splice','round','ratio','points','getOwnPropertyDescriptor','abs','kind','315613ByEvnX','segmentIndex','left','call','closed','tolerance','hypot','registerAdapter','NoFill','opacity','distance','prototype','setConfig','type','start','right','indexOf','UNIVER_UNKNOWN','decorate','sqrt','4890NshZEP','corner','endIndex','get','min','object','push','1524416ZDxBmg','constructor','_adapters','#f54a45','symbol','forEach','createId','pen','packageName','defineProperty','tool','_commandService'];_0x1f0e=function(){return _0x3ccca4;};return _0x1f0e();}function W(_0x4abd06){let _0x31810a=Math['round'](_0x4abd06*0x2710)/0x2710;return Object['is'](_0x31810a,-0x0)?0x0:_0x31810a;}function G(_0x3aefeb){const _0x6e0444=_0x5d75;let _0xcf3dd2=fe(_0x3aefeb);if(_0xcf3dd2[_0x6e0444(0x15b)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x54267d=Math[_0x6e0444(0x18b)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x45fa62=>_0x45fa62['x'])),_0x4166b5=Math[_0x6e0444(0x18b)](..._0xcf3dd2['map'](_0x33a011=>_0x33a011['y'])),_0x233859=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x29c37e=>_0x29c37e['x'])),_0x132a2a=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x4e5cbd=>_0x4e5cbd['y']));return{'left':W(_0x54267d),'top':W(_0x4166b5),'width':W(Math['max'](0x1,_0x233859-_0x54267d)),'height':W(Math['max'](0x1,_0x132a2a-_0x4166b5))};}function pe(_0x334233,_0x3d41e9){const _0x3dfa26=_0x5d75;let _0x2648ae=_0x334233[_0x3dfa26(0x143)];if(_0x2648ae[_0x3dfa26(0x15b)]===0x0)return'';let _0x598b18=['M\x20'+R(z(_0x2648ae[0x0],_0x3d41e9))];for(let _0x4bce92=0x1;_0x4bce92<_0x2648ae[_0x3dfa26(0x15b)];_0x4bce92++){var _0x56bf23,_0x2d1a27;let _0x3b9355=_0x2648ae[_0x4bce92-0x1],_0x5b049c=_0x2648ae[_0x4bce92],_0x1f109d=(_0x56bf23=_0x3b9355[_0x3dfa26(0x139)])==null?_0x3b9355:_0x56bf23,_0x40e6d3=(_0x2d1a27=_0x5b049c['in'])==null?_0x5b049c:_0x2d1a27;_0x598b18['push']('C\x20'+R(z(_0x1f109d,_0x3d41e9))+'\x20'+R(z(_0x40e6d3,_0x3d41e9))+'\x20'+R(z(_0x5b049c,_0x3d41e9)));}if(_0x334233[_0x3dfa26(0x177)]&&_0x2648ae[_0x3dfa26(0x15b)]>0x1){var _0x561711,_0x1457c5;let _0x258a7c=_0x2648ae[_0x2648ae[_0x3dfa26(0x15b)]-0x1],_0x216813=_0x2648ae[0x0],_0xe8667c=(_0x561711=_0x258a7c['out'])==null?_0x258a7c:_0x561711,_0x37a844=(_0x1457c5=_0x216813['in'])==null?_0x216813:_0x1457c5;_0x598b18['push']('C\x20'+R(z(_0xe8667c,_0x3d41e9))+'\x20'+R(z(_0x37a844,_0x3d41e9))+'\x20'+R(z(_0x216813,_0x3d41e9))),_0x598b18[_0x3dfa26(0x18d)]('Z');}return _0x598b18[_0x3dfa26(0x167)]('\x20');}function me(_0x5b09e9,_0x4f66d2){const _0x33c9b4=_0x5d75;let _0x1db0de=_0x5b09e9[_0x33c9b4(0x16f)][_0x33c9b4(0x13c)](_0x43b973=>z(_0x43b973,_0x4f66d2));if(_0x1db0de['length']===0x0)return'';if(_0x1db0de[_0x33c9b4(0x15b)]===0x1)return'M\x20'+R(_0x1db0de[0x0]);let _0x3624b6=['M\x20'+R(_0x1db0de[0x0])];for(let _0x792733=0x0;_0x792733<_0x1db0de[_0x33c9b4(0x15b)]-0x1;_0x792733++){var _0x507bf8,_0x594f92;let _0x5885df=_0x1db0de[_0x792733],_0x25455a=_0x1db0de[_0x792733+0x1],_0x48cbfa=(_0x507bf8=_0x1db0de[_0x792733-0x1])==null?_0x5885df:_0x507bf8,_0x3c13b7=(_0x594f92=_0x1db0de[_0x792733+0x2])==null?_0x25455a:_0x594f92,_0x1e02f3={'x':_0x5885df['x']+(_0x25455a['x']-_0x48cbfa['x'])/0x6,'y':_0x5885df['y']+(_0x25455a['y']-_0x48cbfa['y'])/0x6},_0x45d4ba={'x':_0x25455a['x']-(_0x3c13b7['x']-_0x5885df['x'])/0x6,'y':_0x25455a['y']-(_0x3c13b7['y']-_0x5885df['y'])/0x6};_0x3624b6[_0x33c9b4(0x18d)]('C\x20'+R(_0x1e02f3)+'\x20'+R(_0x45d4ba)+'\x20'+R(_0x25455a));}return _0x3624b6[_0x33c9b4(0x167)]('\x20');}function he(_0x141417,_0x520a99){const _0x16b282=_0x5d75;return _0x141417[_0x16b282(0x172)]===_0x16b282(0x195)?pe(_0x141417,_0x520a99):me(_0x141417,_0x520a99);}function ge(_0x1a6011,_0x3afb42){const _0x3f7058=_0x5d75;return _0x3afb42!=null&&_0x3afb42[_0x3f7058(0x158)]?_0x3afb42[_0x3f7058(0x158)]:_0x1a6011['kind']===_0x3f7058(0x195)?_0x3f7058(0x191):_0x1a6011[_0x3f7058(0x158)];}function _e(_0x366021,_0x28ed85){const _0x695865=_0x5d75;return(_0x28ed85==null?void 0x0:_0x28ed85[_0x695865(0x13e)])===void 0x0?_0x366021[_0x695865(0x172)]===_0x695865(0x195)?0x2:_0x366021[_0x695865(0x13e)]:_0x28ed85[_0x695865(0x13e)];}function ve(_0x2b8123,_0x4340cf){const _0x4bc57d=_0x5d75;return(_0x4340cf==null?void 0x0:_0x4340cf[_0x4bc57d(0x17c)])===void 0x0?_0x2b8123[_0x4bc57d(0x172)]===_0x4bc57d(0x195)?void 0x0:_0x2b8123[_0x4bc57d(0x17c)]:_0x4340cf['opacity'];}function _0x5d75(_0x1bc714,_0x4d42ab){_0x1bc714=_0x1bc714-0x136;const _0x1f0e4c=_0x1f0e();let _0x5d75b0=_0x1f0e4c[_0x1bc714];return _0x5d75b0;}function ye(_0x7bb899,_0x2db820){const _0x470b01=_0x5d75;let _0x1e3437=G(_0x7bb899),_0x12d0b4=he(_0x7bb899,{'x':_0x1e3437['left'],'y':_0x1e3437[_0x470b01(0x145)]}),_0x15a7a1=_0x7bb899[_0x470b01(0x172)]===_0x470b01(0x195)&&_0x7bb899[_0x470b01(0x177)],_0xbd4d92=_0x2db820==null?void 0x0:_0x2db820[_0x470b01(0x159)];return{'shapeType':_0x2fc13d[_0x470b01(0x142)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1e3437[_0x470b01(0x13e)],'h':_0x1e3437[_0x470b01(0x13a)],'fill':_0x15a7a1?_0x470b01(0x162):_0x470b01(0x148),'stroke':!0x0,'data':_0x12d0b4,'dataArray':be(_0x7bb899,{'x':_0x1e3437[_0x470b01(0x175)],'y':_0x1e3437['top']})}]},'fill':_0x15a7a1&&_0xbd4d92?{'color':_0xbd4d92,'fillType':_0x157d04['SolidFill']}:{'fillType':_0x157d04[_0x470b01(0x17b)]},'stroke':{'color':ge(_0x7bb899,_0x2db820),'width':_e(_0x7bb899,_0x2db820),'opacity':ve(_0x7bb899,_0x2db820),'lineStrokeType':_0x41a350[_0x470b01(0x166)],'capType':_0x363052['Round'],'lineJoinType':_0x56486c['Round']}};}function K(_0x766837,_0x43fad4){return{'x':_0x766837['x']-_0x43fad4['x'],'y':_0x766837['y']-_0x43fad4['y']};}function be(_0x143aee,_0x4d1d82){const _0x22ba30=_0x5d75;if(_0x143aee[_0x22ba30(0x172)]===_0x22ba30(0x195)){let _0x179f00=_0x143aee[_0x22ba30(0x143)];if(_0x179f00[_0x22ba30(0x15b)]===0x0)return[];let _0x4fb16b=K(_0x179f00[0x0],_0x4d1d82),_0x23f539=[{'command':'M','points':[_0x4fb16b['x'],_0x4fb16b['y']]}];for(let _0x12c749=0x1;_0x12c749<_0x179f00[_0x22ba30(0x15b)];_0x12c749++){var _0x2bb2f3,_0xef5a00;let _0x23fd86=_0x179f00[_0x12c749-0x1],_0x54c1b6=_0x179f00[_0x12c749],_0x296aa1=K((_0x2bb2f3=_0x23fd86[_0x22ba30(0x139)])==null?_0x23fd86:_0x2bb2f3,_0x4d1d82),_0x2242ed=K((_0xef5a00=_0x54c1b6['in'])==null?_0x54c1b6:_0xef5a00,_0x4d1d82),_0x23db98=K(_0x54c1b6,_0x4d1d82);_0x23f539['push']({'command':'C','points':[_0x296aa1['x'],_0x296aa1['y'],_0x2242ed['x'],_0x2242ed['y'],_0x23db98['x'],_0x23db98['y']]});}if(_0x143aee[_0x22ba30(0x177)]&&_0x179f00['length']>0x1){var _0x2656b6,_0x4b44e1;let _0x29f6bd=_0x179f00[_0x179f00[_0x22ba30(0x15b)]-0x1],_0x1168d2=_0x179f00[0x0],_0x3af9f5=K((_0x2656b6=_0x29f6bd[_0x22ba30(0x139)])==null?_0x29f6bd:_0x2656b6,_0x4d1d82),_0x120745=K((_0x4b44e1=_0x1168d2['in'])==null?_0x1168d2:_0x4b44e1,_0x4d1d82),_0x1587f4=K(_0x1168d2,_0x4d1d82);_0x23f539[_0x22ba30(0x18d)]({'command':'C','points':[_0x3af9f5['x'],_0x3af9f5['y'],_0x120745['x'],_0x120745['y'],_0x1587f4['x'],_0x1587f4['y']]}),_0x23f539[_0x22ba30(0x18d)]({'command':'z','points':[]});}return _0x23f539;}let _0x314f03=_0x143aee['points'][_0x22ba30(0x13c)](_0x5d6b03=>K(_0x5d6b03,_0x4d1d82));if(_0x314f03[_0x22ba30(0x15b)]===0x0)return[];let _0x5528aa=[{'command':'M','points':[_0x314f03[0x0]['x'],_0x314f03[0x0]['y']]}];for(let _0x4db741=0x0;_0x4db741<_0x314f03[_0x22ba30(0x15b)]-0x1;_0x4db741++){var _0x1cce6c,_0x3668f2;let _0x29cc40=_0x314f03[_0x4db741],_0x37cdc5=_0x314f03[_0x4db741+0x1],_0x35d8db=(_0x1cce6c=_0x314f03[_0x4db741-0x1])==null?_0x29cc40:_0x1cce6c,_0x58235c=(_0x3668f2=_0x314f03[_0x4db741+0x2])==null?_0x37cdc5:_0x3668f2,_0x332416={'x':_0x29cc40['x']+(_0x37cdc5['x']-_0x35d8db['x'])/0x6,'y':_0x29cc40['y']+(_0x37cdc5['y']-_0x35d8db['y'])/0x6},_0x1ac2ed={'x':_0x37cdc5['x']-(_0x58235c['x']-_0x29cc40['x'])/0x6,'y':_0x37cdc5['y']-(_0x58235c['y']-_0x29cc40['y'])/0x6};_0x5528aa[_0x22ba30(0x18d)]({'command':'C','points':[_0x332416['x'],_0x332416['y'],_0x1ac2ed['x'],_0x1ac2ed['y'],_0x37cdc5['x'],_0x37cdc5['y']]});}return _0x5528aa;}function xe(_0x588b9a){const _0x8e653=_0x5d75;var _0x1f1de2;let {model:_0x1ea07a,sourceModel:_0xecba1=_0x1ea07a,style:_0x3770c8}=_0x588b9a,_0x2078d1=(_0x1f1de2=_0x588b9a[_0x8e653(0x137)])==null?_0x1ea07a[_0x8e653(0x172)]:_0x1f1de2,_0xc349b6=G(_0x1ea07a),_0x4335c9=_0x1ea07a['kind']===_0x8e653(0x195)&&_0x2078d1!==_0x8e653(0x195)?_0x1ea07a:void 0x0;return{'transform':{..._0xc349b6,'rotation':0x0},'shapeData':ye(_0x1ea07a,_0x3770c8),'ink':{'version':0x1,'tool':_0x2078d1,'sourceModel':_0xecba1,..._0x4335c9?{'editModel':_0x4335c9}:{},'normalizedBounds':_0xc349b6}};}var Se='@univerjs-pro/ink',Ce=_0xd9ea97(0x160);function q(_0xf0db8e){'@babel/helpers - typeof';const _0x5d8d4e=_0xd9ea97;return q=typeof Symbol==_0x5d8d4e(0x15d)&&typeof Symbol['iterator']==_0x5d8d4e(0x192)?function(_0x24b45b){return typeof _0x24b45b;}:function(_0x26e7cd){const _0xbf86d7=_0x5d8d4e;return _0x26e7cd&&typeof Symbol==_0xbf86d7(0x15d)&&_0x26e7cd[_0xbf86d7(0x18f)]===Symbol&&_0x26e7cd!==Symbol[_0xbf86d7(0x17e)]?_0xbf86d7(0x192):typeof _0x26e7cd;},q(_0xf0db8e);}function we(_0x371f38,_0x5a98fe){const _0x118f7f=_0xd9ea97;if(q(_0x371f38)!=_0x118f7f(0x18c)||!_0x371f38)return _0x371f38;var _0x5cef0e=_0x371f38[Symbol[_0x118f7f(0x165)]];if(_0x5cef0e!==void 0x0){var _0x4c12fa=_0x5cef0e[_0x118f7f(0x176)](_0x371f38,_0x5a98fe||_0x118f7f(0x157));if(q(_0x4c12fa)!='object')return _0x4c12fa;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5a98fe===_0x118f7f(0x141)?String:Number)(_0x371f38);}function J(_0x207d73){const _0x1e708a=_0xd9ea97;var _0x51aab3=we(_0x207d73,_0x1e708a(0x141));return q(_0x51aab3)==_0x1e708a(0x192)?_0x51aab3:_0x51aab3+'';}function Y(_0x519233,_0x36e28c,_0x4da7f7){const _0x56af46=_0xd9ea97;return(_0x36e28c=J(_0x36e28c))in _0x519233?Object[_0x56af46(0x136)](_0x519233,_0x36e28c,{'value':_0x4da7f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x519233[_0x36e28c]=_0x4da7f7,_0x519233;}const X=_0x1ab48e(_0xd9ea97(0x14c));var Te=class{constructor(){const _0x3e1613=_0xd9ea97;Y(this,_0x3e1613(0x190),[]);}[_0xd9ea97(0x17a)](_0x28cc61){const _0x152a73=_0xd9ea97;return this[_0x152a73(0x190)][_0x152a73(0x18d)](_0x28cc61),_0x29412f(()=>{const _0x565455=_0x152a73;let _0xaa94e7=this[_0x565455(0x190)][_0x565455(0x183)](_0x28cc61);_0xaa94e7>=0x0&&this['_adapters'][_0x565455(0x16c)](_0xaa94e7,0x1);});}['beginInkMode'](_0x4f93b2){const _0x322df5=_0xd9ea97;for(let _0x47f994 of this[_0x322df5(0x190)])if(_0x47f994[_0x322df5(0x16a)](_0x4f93b2))return!0x0;return!0x1;}async[_0xd9ea97(0x156)](_0x4cfe8e){const _0xa467ed=_0xd9ea97;for(let _0x4a6b52 of this[_0xa467ed(0x190)])if(_0x4a6b52['createCustomShape']&&await _0x4a6b52['createCustomShape'](_0x4cfe8e))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x3450b2[_0xd9ea97(0x147)],'handler':(_0x1273c6,_0x1aed1d)=>_0x1aed1d?_0x1273c6[_0xd9ea97(0x18a)](X)[_0xd9ea97(0x16a)](_0x1aed1d):!0x1},Z={};function Q(_0x55af48,_0x31d419){return function(_0x43e9e7,_0x483b20){_0x31d419(_0x43e9e7,_0x483b20,_0x55af48);};}function De(_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb){const _0x1e66c2=_0xd9ea97;var _0x351722=arguments[_0x1e66c2(0x15b)],_0x269040=_0x351722<0x3?_0x433ad3:_0x4819fb===null?_0x4819fb=Object[_0x1e66c2(0x170)](_0x433ad3,_0x2f01f1):_0x4819fb,_0x543774;if(typeof Reflect=='object'&&typeof Reflect[_0x1e66c2(0x185)]=='function')_0x269040=Reflect[_0x1e66c2(0x185)](_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb);else{for(var _0x500a5b=_0x263be4['length']-0x1;_0x500a5b>=0x0;_0x500a5b--)(_0x543774=_0x263be4[_0x500a5b])&&(_0x269040=(_0x351722<0x3?_0x543774(_0x269040):_0x351722>0x3?_0x543774(_0x433ad3,_0x2f01f1,_0x269040):_0x543774(_0x433ad3,_0x2f01f1))||_0x269040);}return _0x351722>0x3&&_0x269040&&Object['defineProperty'](_0x433ad3,_0x2f01f1,_0x269040),_0x269040;}let $=class extends _0x205aab{constructor(_0x38ea78=Z,_0x794021,_0x6333bb,_0xe202d0){const _0xeafa4d=_0xd9ea97;super(),this[_0xeafa4d(0x14e)]=_0x38ea78,this['_injector']=_0x794021,this[_0xeafa4d(0x138)]=_0x6333bb,this[_0xeafa4d(0x149)]=_0xe202d0;let {..._0x581cc3}=_0x1239fb({},Z,this['_config']);this[_0xeafa4d(0x149)][_0xeafa4d(0x17f)](_0xeafa4d(0x153),_0x581cc3);}[_0xd9ea97(0x14b)](){const _0x191e72=_0xd9ea97;[[X,{'useClass':Te}]]['forEach'](_0x5cd6c4=>this[_0x191e72(0x151)][_0x191e72(0x14d)](_0x5cd6c4)),this[_0x191e72(0x15f)](this['_commandService']['registerCommand'](Ee));}};Y($,_0xd9ea97(0x15c),'UNIVER_INK_PLUGIN'),Y($,_0xd9ea97(0x196),Se),Y($,_0xd9ea97(0x161),Ce),Y($,_0xd9ea97(0x180),_0x42f687[_0xd9ea97(0x184)]),$=De([_0xbc0f6e(_0x42d00b),Q(0x1,_0x4e3a63(_0x5500c4)),Q(0x2,_0x16de20),Q(0x3,_0x3c718d)],$);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
|
|
1
|
+
const _0x3fa0d0=_0x3b86;(function(_0x2adaeb,_0x1758f2){const _0x1501d1=_0x3b86,_0x1b9c56=_0x2adaeb();while(!![]){try{const _0x274a20=-parseInt(_0x1501d1(0xc6))/0x1*(-parseInt(_0x1501d1(0xc0))/0x2)+parseInt(_0x1501d1(0xb5))/0x3*(-parseInt(_0x1501d1(0xa6))/0x4)+-parseInt(_0x1501d1(0xb9))/0x5+parseInt(_0x1501d1(0xb8))/0x6*(-parseInt(_0x1501d1(0xc7))/0x7)+parseInt(_0x1501d1(0xb1))/0x8*(-parseInt(_0x1501d1(0xb7))/0x9)+parseInt(_0x1501d1(0xd2))/0xa+parseInt(_0x1501d1(0xad))/0xb;if(_0x274a20===_0x1758f2)break;else _0x1b9c56['push'](_0x1b9c56['shift']());}catch(_0x47073f){_0x1b9c56['push'](_0x1b9c56['shift']());}}}(_0x5c1f,0x1f538));import{BoardElementType as _0x4b7f28}from'@univerjs-pro/boards';import{FBoard as _0x574130}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x34cc3e}from'@univerjs-pro/ink';function _0x3b86(_0x49d4d5,_0x25e835){_0x49d4d5=_0x49d4d5-0x9e;const _0x5c1fcf=_0x5c1f();let _0x3b8647=_0x5c1fcf[_0x49d4d5];return _0x3b8647;}import{Tools as _0x1128aa,generateRandomId as _0x515e51}from'@univerjs/core';import{FEnum as _0x4fc35c}from'@univerjs/core/facade';var o=class extends _0x574130{[_0x3fa0d0(0xa9)](_0x1d4145){const _0x364815=_0x3fa0d0;let _0x2d0da4=s(_0x1d4145);return _0x2d0da4&&this[_0x364815(0xa1)](_0x2d0da4,{'insertIndex':_0x1d4145[_0x364815(0xd1)]})?_0x2d0da4:null;}[_0x3fa0d0(0xc5)](){const _0x1a8629=_0x3fa0d0;return this[_0x1a8629(0xc3)]({'elementType':_0x4b7f28[_0x1a8629(0xaf)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x1a8629(0xba)](p);}};function _0x5c1f(){const _0x53bcf4=['5752WLmzUC','anchors','transform','findElements','closed','getInks','20ffqrsN','294910JSXlfR','symmetric','model','laneId','smooth','BoardInkHandleKind','type','corner','version','points','insertIndex','1027280iDqnXo','add','width','deepClone','addElement','BoardInkTool','highlighter','pen','custom','1236WbtPqY','length','style','insertInk','object','shapeData','every','6895933xjXkIn','isFinite','Shape','pressure','2936LjuNsW','isArray','ink','extend','1494PcCPNJ','parentId','3564zqymgo','36PBEhYg','534225oyFSIr','filter','out','sourceModel','tool','opacity','has'];_0x5c1f=function(){return _0x53bcf4;};return _0x5c1f();}function s(_0x5a6c52,_0xc650d9){const _0x37e422=_0x3fa0d0;var _0x477dd2,_0x2ae01c,_0x5c6e8a;if(!l(_0x5a6c52[_0x37e422(0xc9)])||_0x5a6c52[_0x37e422(0xbc)]!==void 0x0&&!l(_0x5a6c52[_0x37e422(0xbc)])||!u(_0x5a6c52['style']))return null;let _0x1a63bc=(_0x477dd2=_0x5a6c52['parentId'])==null?_0xc650d9==null?void 0x0:_0xc650d9[_0x37e422(0xb6)]:_0x477dd2,_0x10c557=_0x1128aa[_0x37e422(0xa0)](_0x5a6c52[_0x37e422(0xc9)]),_0x4ffa8d=_0x34cc3e({'model':_0x10c557,'style':_0x5a6c52[_0x37e422(0xa8)],'tool':_0x5a6c52[_0x37e422(0xbd)],'sourceModel':_0x5a6c52['sourceModel']?_0x1128aa['deepClone'](_0x5a6c52[_0x37e422(0xbc)]):_0x10c557}),_0x2e5330=d(_0xc650d9==null?void 0x0:_0xc650d9[_0x37e422(0xa5)]);return{'id':(_0x2ae01c=(_0x5c6e8a=_0xc650d9==null?void 0x0:_0xc650d9['id'])==null?_0x5a6c52['id']:_0x5c6e8a)==null?_0x515e51(0x6):_0x2ae01c,'type':_0x4b7f28[_0x37e422(0xaf)],'transform':_0x4ffa8d[_0x37e422(0xc2)],'shapeData':_0x4ffa8d[_0x37e422(0xab)],'parentId':_0x1a63bc==null?void 0x0:_0x1a63bc,'laneId':_0x5a6c52[_0x37e422(0xca)]===void 0x0?_0xc650d9==null?void 0x0:_0xc650d9[_0x37e422(0xca)]:_0x5a6c52[_0x37e422(0xca)],'custom':{..._0x2e5330,'ink':_0x4ffa8d[_0x37e422(0xb3)]}};}function c(_0x538160){const _0xf2613f=_0x3fa0d0;return Number[_0xf2613f(0xae)](_0x538160['x'])&&Number['isFinite'](_0x538160['y']);}function l(_0x31e202){const _0x16f6f2=_0x3fa0d0;if(_0x31e202['kind']===_0x16f6f2(0xa4)){let _0x4363b7=new Set();return _0x31e202[_0x16f6f2(0xc1)][_0x16f6f2(0xa7)]>=(_0x31e202[_0x16f6f2(0xc4)]?0x3:0x2)&&_0x31e202[_0x16f6f2(0xc1)]['every'](_0x18bd8b=>{const _0x82911b=_0x16f6f2;let _0x47ea38=_0x18bd8b['id']['trim']()[_0x82911b(0xa7)]>0x0&&!_0x4363b7[_0x82911b(0xbf)](_0x18bd8b['id'])&&c(_0x18bd8b)&&(!_0x18bd8b['in']||c(_0x18bd8b['in']))&&(!_0x18bd8b[_0x82911b(0xbb)]||c(_0x18bd8b['out']));return _0x4363b7[_0x82911b(0x9e)](_0x18bd8b['id']),_0x47ea38;});}return _0x31e202[_0x16f6f2(0xd0)][_0x16f6f2(0xa7)]>=0x2&&_0x31e202[_0x16f6f2(0xd0)][_0x16f6f2(0xac)](_0x2c636f=>c(_0x2c636f)&&Number[_0x16f6f2(0xae)](_0x2c636f['t'])&&(_0x2c636f[_0x16f6f2(0xb0)]===void 0x0||Number['isFinite'](_0x2c636f[_0x16f6f2(0xb0)])))&&Number[_0x16f6f2(0xae)](_0x31e202[_0x16f6f2(0x9f)])&&_0x31e202[_0x16f6f2(0x9f)]>0x0&&Number['isFinite'](_0x31e202['opacity'])&&_0x31e202[_0x16f6f2(0xbe)]>=0x0&&_0x31e202[_0x16f6f2(0xbe)]<=0x1;}function u(_0x5e2307){const _0x25b037=_0x3fa0d0;return _0x5e2307===void 0x0||(_0x5e2307['width']===void 0x0||Number['isFinite'](_0x5e2307[_0x25b037(0x9f)])&&_0x5e2307[_0x25b037(0x9f)]>0x0)&&(_0x5e2307[_0x25b037(0xbe)]===void 0x0||Number[_0x25b037(0xae)](_0x5e2307[_0x25b037(0xbe)])&&_0x5e2307['opacity']>=0x0&&_0x5e2307[_0x25b037(0xbe)]<=0x1);}function d(_0x1a583b){const _0x1f6d5a=_0x3fa0d0;return _0x1a583b&&typeof _0x1a583b==_0x1f6d5a(0xaa)&&!Array[_0x1f6d5a(0xb2)](_0x1a583b)?_0x1a583b:{};}function f(_0x33d0b9){const _0x3abb06=_0x3fa0d0;let _0x49f3ef=d(_0x33d0b9['custom'])[_0x3abb06(0xb3)];if(!_0x49f3ef||typeof _0x49f3ef!=_0x3abb06(0xaa)||Array['isArray'](_0x49f3ef))return null;let _0x14eb04=_0x49f3ef;return _0x14eb04[_0x3abb06(0xcf)]===0x1&&_0x14eb04[_0x3abb06(0xbc)]&&typeof _0x14eb04[_0x3abb06(0xbc)]==_0x3abb06(0xaa)?_0x14eb04:null;}function p(_0x2a774a){const _0x20ee52=_0x3fa0d0;return _0x2a774a[_0x20ee52(0xcd)]===_0x4b7f28[_0x20ee52(0xaf)]&&!!f(_0x2a774a);}_0x574130[_0x3fa0d0(0xb4)](o);const m={'Pen':_0x3fa0d0(0xa4),'Brush':'brush','Highlighter':_0x3fa0d0(0xa3)},h={'Corner':_0x3fa0d0(0xce),'Smooth':_0x3fa0d0(0xcb),'Symmetric':_0x3fa0d0(0xc8),'Free':'free'},g={'Anchor':'anchor','In':'in','Out':_0x3fa0d0(0xbb)};var _=class extends _0x4fc35c{get[_0x3fa0d0(0xa2)](){return m;}get['BoardInkPointType'](){return h;}get[_0x3fa0d0(0xcc)](){return g;}};_0x4fc35c[_0x3fa0d0(0xb4)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4602de=_0x1211;(function(_0x3f01a0,_0x472b08){const _0x2445e8=_0x1211,_0x4562da=_0x3f01a0();while(!![]){try{const _0x4575c4=-parseInt(_0x2445e8(0x1ba))/0x1*(-parseInt(_0x2445e8(0x206))/0x2)+parseInt(_0x2445e8(0x1d7))/0x3+parseInt(_0x2445e8(0x217))/0x4*(-parseInt(_0x2445e8(0x210))/0x5)+parseInt(_0x2445e8(0x20e))/0x6+parseInt(_0x2445e8(0x1c9))/0x7+-parseInt(_0x2445e8(0x213))/0x8*(parseInt(_0x2445e8(0x1cc))/0x9)+-parseInt(_0x2445e8(0x1cf))/0xa;if(_0x4575c4===_0x472b08)break;else _0x4562da['push'](_0x4562da['shift']());}catch(_0x188e55){_0x4562da['push'](_0x4562da['shift']());}}}(_0x4eef,0x9928f));import{ShapeFillEnum as _0x5d1bec,ShapeLineCapEnum as _0x65358a,ShapeLineJoinEnum as _0x3afe2a,ShapeLineTypeEnum as _0x2298b9,ShapeTypeEnum as _0x46339a}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x1c9fb0}from'@univerjs-pro/license';import{CommandType as _0x3e6dda,DependentOn as _0x21f9f4,ICommandService as _0x44cbdf,IConfigService as _0x74df07,Inject as _0x83b12a,Injector as _0x4b9262,Plugin as _0x1732ef,UniverInstanceType as _0x2f3686,createIdentifier as _0x113c29,merge as _0x2ec470,toDisposable as _0x373e13}from'@univerjs/core';const g=0.0001;function _(_0x1b06f7){return{'x':_0x1b06f7['x'],'y':_0x1b06f7['y']};}function v(_0x5d28a2){const _0x330627=_0x1211;return{..._0x5d28a2,'in':_0x5d28a2['in']?_(_0x5d28a2['in']):void 0x0,'out':_0x5d28a2[_0x330627(0x1c1)]?_(_0x5d28a2[_0x330627(0x1c1)]):void 0x0};}function y(_0xc1f21){const _0x5050ee=_0x1211;return{'kind':_0x5050ee(0x218),'closed':_0xc1f21['closed'],'anchors':_0xc1f21['anchors'][_0x5050ee(0x1c4)](v)};}function b(_0xa62ba8,_0x5ab06c,_0x227782){return{'x':_0xa62ba8['x']+(_0x5ab06c['x']-_0xa62ba8['x'])*_0x227782,'y':_0xa62ba8['y']+(_0x5ab06c['y']-_0xa62ba8['y'])*_0x227782};}function x(_0x5f0414,_0x1f50bd){return Math['hypot'](_0x5f0414['x']-_0x1f50bd['x'],_0x5f0414['y']-_0x1f50bd['y']);}function S(_0x213cda){const _0x144da7=_0x1211;let _0x3dcf61=Math[_0x144da7(0x20c)](_0x213cda['x'],_0x213cda['y']);return _0x3dcf61<g?{'x':0x1,'y':0x0}:{'x':_0x213cda['x']/_0x3dcf61,'y':_0x213cda['y']/_0x3dcf61};}function C(_0x3e5920,_0xf56ed9,_0x121ffe=x(_0x3e5920,_0xf56ed9)){let _0x1d0337=S({'x':_0x3e5920['x']-_0xf56ed9['x'],'y':_0x3e5920['y']-_0xf56ed9['y']});return{'x':_0x3e5920['x']+_0x1d0337['x']*_0x121ffe,'y':_0x3e5920['y']+_0x1d0337['y']*_0x121ffe};}function w(_0x56412d,_0x86d914){const _0x3b549c=_0x1211;let {anchors:_0x412221}=_0x56412d;return _0x412221[_0x3b549c(0x1e2)]<0x2||_0x86d914<0x0?null:_0x86d914<_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x86d914,'endIndex':_0x86d914+0x1,'start':_0x412221[_0x86d914],'end':_0x412221[_0x86d914+0x1]}:_0x56412d[_0x3b549c(0x1e0)]&&_0x86d914===_0x412221[_0x3b549c(0x1e2)]-0x1?{'startIndex':_0x412221[_0x3b549c(0x1e2)]-0x1,'endIndex':0x0,'start':_0x412221[_0x412221['length']-0x1],'end':_0x412221[0x0]}:null;}function T(_0x24a0f9,_0x56c8e2){const _0x2e2c3d=_0x1211;var _0x409124,_0x13be96;let _0x1ccda2=w(_0x24a0f9,_0x56c8e2);return _0x1ccda2?[_0x1ccda2['start'],(_0x409124=_0x1ccda2[_0x2e2c3d(0x1fe)][_0x2e2c3d(0x1c1)])==null?_0x1ccda2[_0x2e2c3d(0x1fe)]:_0x409124,(_0x13be96=_0x1ccda2[_0x2e2c3d(0x1bc)]['in'])==null?_0x1ccda2[_0x2e2c3d(0x1bc)]:_0x13be96,_0x1ccda2['end']]:null;}function te(_0x1293cf,_0x5e9d9f){const _0xf2c0b1=_0x1211;var _0x54ac7d;return _0x5e9d9f===_0xf2c0b1(0x1d2)?_0x1293cf:(_0x54ac7d=_0x1293cf[_0x5e9d9f])==null?null:_0x54ac7d;}function E(_0x39b74e,_0x1e87f3,_0x5f40eb){const _0x21bc2d=_0x1211;return _0x5f40eb===_0x21bc2d(0x1d2)||_0x39b74e[_0x21bc2d(0x1e0)]?!0x0:_0x5f40eb==='in'?_0x1e87f3>0x0:_0x1e87f3<_0x39b74e[_0x21bc2d(0x208)]['length']-0x1;}function D(_0xc4a363,_0x24e3ca){let [_0xd205a5,_0x521857,_0x53649d,_0x1cd8b1]=_0xc4a363,_0x5349ff=b(_0xd205a5,_0x521857,_0x24e3ca),_0x19de0c=b(_0x521857,_0x53649d,_0x24e3ca),_0x48bd15=b(_0x53649d,_0x1cd8b1,_0x24e3ca);return b(b(_0x5349ff,_0x19de0c,_0x24e3ca),b(_0x19de0c,_0x48bd15,_0x24e3ca),_0x24e3ca);}function ne(_0x269afc,_0x34cc31){let [_0x125bb2,_0x2dfe57,_0x2d7d5b,_0x1ef5e0]=_0x269afc,_0x1b0e66=b(_0x125bb2,_0x2dfe57,_0x34cc31),_0x3277a6=b(_0x2dfe57,_0x2d7d5b,_0x34cc31),_0xd4755=b(_0x2d7d5b,_0x1ef5e0,_0x34cc31),_0x29c81b=b(_0x1b0e66,_0x3277a6,_0x34cc31),_0x1cab8d=b(_0x3277a6,_0xd4755,_0x34cc31),_0x2fec16=b(_0x29c81b,_0x1cab8d,_0x34cc31);return{'left':[_0x125bb2,_0x1b0e66,_0x29c81b,_0x2fec16],'right':[_0x2fec16,_0x1cab8d,_0xd4755,_0x1ef5e0]};}function O(_0x4409ec,_0x537a41,_0x15fc26){const _0x24a829=_0x1211;let _0x53ae1d=_0x15fc26['x']-_0x537a41['x'],_0x372f42=_0x15fc26['y']-_0x537a41['y'],_0x72ede=_0x53ae1d*_0x53ae1d+_0x372f42*_0x372f42,_0x4e3ceb=_0x72ede<=g?0x0:Math[_0x24a829(0x1f0)](0x0,Math[_0x24a829(0x20d)](0x1,((_0x4409ec['x']-_0x537a41['x'])*_0x53ae1d+(_0x4409ec['y']-_0x537a41['y'])*_0x372f42)/_0x72ede)),_0x46eee2={'x':_0x537a41['x']+_0x53ae1d*_0x4e3ceb,'y':_0x537a41['y']+_0x372f42*_0x4e3ceb};return{'point':_0x46eee2,'ratio':_0x4e3ceb,'distance':x(_0x4409ec,_0x46eee2)};}function re(_0x36345e,_0x5ad9c1,_0x3319f7){const _0xf80425=_0x1211;return O(_0x36345e,_0x5ad9c1,_0x3319f7)[_0xf80425(0x204)]**0x2;}function k(_0x4497aa,_0x570873){const _0x598e87=_0x1211;if(_0x4497aa[_0x598e87(0x1e2)]<=0x2)return _0x4497aa[_0x598e87(0x1c4)](_);let _0x2d0246=0x0,_0x433d3b=0x0,_0x4c83cd=_0x4497aa[0x0],_0x3748c6=_0x4497aa[_0x4497aa[_0x598e87(0x1e2)]-0x1],_0x54fc76=_0x570873*_0x570873;for(let _0x542c3e=0x1;_0x542c3e<_0x4497aa[_0x598e87(0x1e2)]-0x1;_0x542c3e++){let _0x5178d3=re(_0x4497aa[_0x542c3e],_0x4c83cd,_0x3748c6);_0x5178d3>_0x2d0246&&(_0x2d0246=_0x5178d3,_0x433d3b=_0x542c3e);}if(_0x2d0246<=_0x54fc76)return[_(_0x4c83cd),_(_0x3748c6)];let _0xb53819=k(_0x4497aa[_0x598e87(0x1f7)](0x0,_0x433d3b+0x1),_0x570873),_0x14145d=k(_0x4497aa[_0x598e87(0x1f7)](_0x433d3b),_0x570873);return[..._0xb53819[_0x598e87(0x1f7)](0x0,-0x1),..._0x14145d];}function ie(_0x56ba6f,_0x3d7b96){var _0x1690d5;let _0x1a53e6=_0x56ba6f[_0x3d7b96],_0x3b16b8=_0x56ba6f[_0x3d7b96+0x1],_0x12b1d4=(_0x1690d5=_0x56ba6f[_0x3d7b96-0x1])==null?_0x1a53e6:_0x1690d5;return{'x':_0x1a53e6['x']+(_0x3b16b8['x']-_0x12b1d4['x'])/0x6,'y':_0x1a53e6['y']+(_0x3b16b8['y']-_0x12b1d4['y'])/0x6};}function A(_0x4c3d51,_0x3ae085){var _0x469239;let _0xcdb1e2=_0x4c3d51[_0x3ae085],_0x30ba79=_0x4c3d51[_0x3ae085-0x1],_0x2d4a8e=(_0x469239=_0x4c3d51[_0x3ae085+0x1])==null?_0xcdb1e2:_0x469239;return{'x':_0xcdb1e2['x']-(_0x2d4a8e['x']-_0x30ba79['x'])/0x6,'y':_0xcdb1e2['y']-(_0x2d4a8e['y']-_0x30ba79['y'])/0x6};}function j(_0x5f26c4,_0x3c9cfa){const _0x30fc1a=_0x1211;var _0x2cc730,_0x695b47;let _0x30963b=_0x5f26c4[_0x30fc1a(0x208)][_0x3c9cfa],_0xf75166=(_0x2cc730=_0x5f26c4['anchors'][_0x3c9cfa-0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4['anchors'][_0x5f26c4[_0x30fc1a(0x208)][_0x30fc1a(0x1e2)]-0x1]:null:_0x2cc730,_0x3d2d63=(_0x695b47=_0x5f26c4['anchors'][_0x3c9cfa+0x1])==null?_0x5f26c4[_0x30fc1a(0x1e0)]?_0x5f26c4[_0x30fc1a(0x208)][0x0]:null:_0x695b47,_0x5ac22f=_0xf75166&&_0x3d2d63?S({'x':_0x3d2d63['x']-_0xf75166['x'],'y':_0x3d2d63['y']-_0xf75166['y']}):_0x3d2d63?S({'x':_0x3d2d63['x']-_0x30963b['x'],'y':_0x3d2d63['y']-_0x30963b['y']}):_0xf75166?S({'x':_0x30963b['x']-_0xf75166['x'],'y':_0x30963b['y']-_0xf75166['y']}):{'x':0x1,'y':0x0},_0xea00=_0xf75166&&_0x3d2d63?Math[_0x30fc1a(0x1f0)](0x32,x(_0xf75166,_0x3d2d63)/0x4):0x32;return{'in':{'x':_0x30963b['x']-_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']-_0x5ac22f['y']*_0xea00},'out':{'x':_0x30963b['x']+_0x5ac22f['x']*_0xea00,'y':_0x30963b['y']+_0x5ac22f['y']*_0xea00}};}function M(_0x4e7123,_0x19710d){const _0x192e47=_0x1211;let _0x47150d=_0x4e7123[_0x19710d],_0x17b5c5=_0x19710d==='in'?_0x192e47(0x1c1):'in',_0xb4b260=_0x4e7123[_0x17b5c5];if(_0x47150d){if(_0x4e7123[_0x192e47(0x1ca)]==='symmetric'){_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d);return;}_0x4e7123[_0x192e47(0x1ca)]===_0x192e47(0x1fb)&&(_0x4e7123[_0x17b5c5]=C(_0x4e7123,_0x47150d,_0xb4b260?x(_0x4e7123,_0xb4b260):x(_0x4e7123,_0x47150d)));}}function ae(_0x399272,_0x300b72){const _0x295697=_0x1211;let _0x3e60aa=y(_0x399272);return!_0x300b72||_0x3e60aa[_0x295697(0x1e0)]||_0x3e60aa['anchors'][_0x295697(0x1e2)]===0x0||_0x3e60aa[_0x295697(0x208)][_0x295697(0x20b)]({'id':'__ink-preview-anchor__','x':_0x300b72['x'],'y':_0x300b72['y'],'pointType':_0x295697(0x1d0)}),_0x3e60aa;}function oe(_0x886504,_0x164bba={}){const _0x46c4df=_0x1211;var _0x5c3f72,_0x42c755;let _0xd45713=Math['max'](0x0,(_0x5c3f72=_0x164bba[_0x46c4df(0x1c2)])==null?Math[_0x46c4df(0x1f0)](0x4,_0x886504[_0x46c4df(0x1e6)]*0.35):_0x5c3f72),_0x3a33da=(_0x42c755=_0x164bba[_0x46c4df(0x211)])==null?_0x14739f=>'ink-centerline-'+_0x14739f:_0x42c755,_0x5b45f7=k(_0x886504[_0x46c4df(0x1c5)],_0xd45713),_0x2f31ea=_0x5b45f7['map']((_0x361d49,_0x301cc1)=>({'id':_0x3a33da(_0x301cc1),'x':_0x361d49['x'],'y':_0x361d49['y'],'pointType':'free'}));for(let _0x2bdfe1=0x0;_0x2bdfe1<_0x2f31ea[_0x46c4df(0x1e2)]-0x1;_0x2bdfe1++)_0x2f31ea[_0x2bdfe1][_0x46c4df(0x1c1)]=ie(_0x5b45f7,_0x2bdfe1),_0x2f31ea[_0x2bdfe1+0x1]['in']=A(_0x5b45f7,_0x2bdfe1+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2f31ea};}function se(_0x257145,_0x2d28a6,_0x540b63){const _0x74eb19=_0x1211;let _0x5a4344=null,_0x333014=['anchor','in',_0x74eb19(0x1c1)];return _0x257145[_0x74eb19(0x208)]['forEach']((_0x159be7,_0x43724b)=>{const _0x39482a=_0x74eb19;_0x333014[_0x39482a(0x1eb)](_0x4b7b87=>{const _0x28aadd=_0x39482a;if(!E(_0x257145,_0x43724b,_0x4b7b87))return;let _0x11daf2=te(_0x159be7,_0x4b7b87);if(!_0x11daf2)return;let _0xb0b9f4=x(_0x2d28a6,_0x11daf2);_0xb0b9f4>_0x540b63||_0x5a4344&&_0xb0b9f4>=_0x5a4344[_0x28aadd(0x204)]||(_0x5a4344={'handle':{'kind':_0x4b7b87,'anchorId':_0x159be7['id']},'point':_(_0x11daf2),'distance':_0xb0b9f4});});}),_0x5a4344;}function ce(_0x2f4669,_0x4a01bb,_0xf8532d){const _0x3d06b4=_0x1211;let _0x1cf6e5=null,_0x424aae=_0x2f4669[_0x3d06b4(0x1e0)]?_0x2f4669[_0x3d06b4(0x208)]['length']:Math[_0x3d06b4(0x1f0)](0x0,_0x2f4669[_0x3d06b4(0x208)][_0x3d06b4(0x1e2)]-0x1);for(let _0x438b3d=0x0;_0x438b3d<_0x424aae;_0x438b3d++){let _0xa1baef=T(_0x2f4669,_0x438b3d);if(!_0xa1baef)continue;let _0x5a8c61=D(_0xa1baef,0x0);for(let _0x1c3df9=0x1;_0x1c3df9<=0x20;_0x1c3df9++){let _0x2de5d7=D(_0xa1baef,_0x1c3df9/0x20),_0x55ba1f=O(_0x4a01bb,_0x5a8c61,_0x2de5d7),_0x535d41=(_0x1c3df9-0x1+_0x55ba1f[_0x3d06b4(0x201)])/0x20;(!_0x1cf6e5||_0x55ba1f[_0x3d06b4(0x204)]<_0x1cf6e5[_0x3d06b4(0x204)])&&(_0x1cf6e5={'segmentIndex':_0x438b3d,'t':_0x535d41,'point':_0x55ba1f[_0x3d06b4(0x205)],'distance':_0x55ba1f[_0x3d06b4(0x204)]}),_0x5a8c61=_0x2de5d7;}}return _0x1cf6e5&&_0x1cf6e5[_0x3d06b4(0x204)]<=_0xf8532d?_0x1cf6e5:null;}function le(_0x3fb92d,_0x128497,_0x2f749b){const _0x7f4f23=_0x1211;let _0x1a9ee0=y(_0x3fb92d),_0x394f0f=w(_0x1a9ee0,_0x128497[_0x7f4f23(0x1fd)]),_0x1e25ae=T(_0x1a9ee0,_0x128497['segmentIndex']);if(!_0x394f0f||!_0x1e25ae)return _0x1a9ee0;let _0x31dfcf=ne(_0x1e25ae,Math[_0x7f4f23(0x1f0)](0x0,Math[_0x7f4f23(0x20d)](0x1,_0x128497['t']))),_0x2a9439={'id':_0x2f749b(),'x':_0x31dfcf['left'][0x3]['x'],'y':_0x31dfcf['left'][0x3]['y'],'in':_(_0x31dfcf[_0x7f4f23(0x1ea)][0x2]),'out':_(_0x31dfcf[_0x7f4f23(0x1be)][0x1]),'pointType':'free'};return _0x1a9ee0['anchors'][_0x394f0f[_0x7f4f23(0x1ef)]]['out']=_(_0x31dfcf[_0x7f4f23(0x1ea)][0x1]),_0x1a9ee0[_0x7f4f23(0x208)][_0x394f0f[_0x7f4f23(0x1f2)]]['in']=_(_0x31dfcf[_0x7f4f23(0x1be)][0x2]),_0x1a9ee0[_0x7f4f23(0x208)][_0x7f4f23(0x1e9)](_0x394f0f[_0x7f4f23(0x1ef)]+0x1,0x0,_0x2a9439),_0x1a9ee0;}function ue(_0x29689b,_0xb58bb9){const _0x12af36=_0x1211;let _0x2ff724=y(_0x29689b);return _0x2ff724[_0x12af36(0x208)]=_0x2ff724[_0x12af36(0x208)][_0x12af36(0x1f5)](_0x412bcd=>_0x412bcd['id']!==_0xb58bb9),_0x2ff724['closed']&&_0x2ff724['anchors'][_0x12af36(0x1e2)]<0x3&&(_0x2ff724['closed']=!0x1),_0x2ff724;}function N(_0x1b95dc,_0x452f7c,_0x2d0da4){const _0x2ac18c=_0x1211;let _0xbd07b8=y(_0x1b95dc),_0xdf433a=_0xbd07b8[_0x2ac18c(0x208)][_0x2ac18c(0x1d8)](_0x33bb3d=>_0x33bb3d['id']===_0x452f7c),_0x4766e5=_0xbd07b8[_0x2ac18c(0x208)][_0xdf433a];if(!_0x4766e5)return _0xbd07b8;if(_0x4766e5[_0x2ac18c(0x1ca)]=_0x2d0da4,_0x2d0da4===_0x2ac18c(0x1d0))return delete _0x4766e5['in'],delete _0x4766e5[_0x2ac18c(0x1c1)],_0xbd07b8;let _0x4ab650=j(_0xbd07b8,_0xdf433a);if(_0x4766e5['in']=_0x4766e5['in']?_(_0x4766e5['in']):_0x4ab650['in'],_0x4766e5[_0x2ac18c(0x1c1)]=_0x4766e5[_0x2ac18c(0x1c1)]?_(_0x4766e5[_0x2ac18c(0x1c1)]):_0x4ab650['out'],_0x2d0da4==='symmetric'){let _0x3b9cb0=Math[_0x2ac18c(0x1f0)](x(_0x4766e5,_0x4766e5['in']),x(_0x4766e5,_0x4766e5[_0x2ac18c(0x1c1)]),0x32),_0x5bff36=S({'x':_0x4766e5[_0x2ac18c(0x1c1)]['x']-_0x4766e5['x'],'y':_0x4766e5[_0x2ac18c(0x1c1)]['y']-_0x4766e5['y']});_0x4766e5['out']={'x':_0x4766e5['x']+_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']+_0x5bff36['y']*_0x3b9cb0},_0x4766e5['in']={'x':_0x4766e5['x']-_0x5bff36['x']*_0x3b9cb0,'y':_0x4766e5['y']-_0x5bff36['y']*_0x3b9cb0};}else _0x2d0da4===_0x2ac18c(0x1fb)&&M(_0x4766e5,'out');return _0xbd07b8;}function P(_0x54aa08,_0x7ffa3a){const _0x39c7e6=_0x1211;var _0x2d548c;let _0x51d1f1=_0x54aa08[_0x39c7e6(0x208)][_0x39c7e6(0x1f3)](_0x4e2fcc=>_0x4e2fcc['id']===_0x7ffa3a),_0x591db9=(_0x2d548c=_0x51d1f1==null?void 0x0:_0x51d1f1[_0x39c7e6(0x1ca)])==null?_0x39c7e6(0x1d0):_0x2d548c;return N(_0x54aa08,_0x7ffa3a,_0x591db9===_0x39c7e6(0x1d0)?_0x39c7e6(0x1fb):_0x591db9===_0x39c7e6(0x1fb)?_0x39c7e6(0x1de):_0x591db9===_0x39c7e6(0x1de)?'free':_0x39c7e6(0x1d0));}function F(_0x2b9e1f,_0x56c7aa,_0x26a2a0){const _0x1dab27=_0x1211;let _0xc44bde=y(_0x2b9e1f),_0x27e436=_0xc44bde[_0x1dab27(0x208)][_0x1dab27(0x1f3)](_0x1ea924=>_0x1ea924['id']===_0x56c7aa['anchorId']);if(!_0x27e436)return _0xc44bde;if(_0x56c7aa[_0x1dab27(0x1f8)]===_0x1dab27(0x1d2)){let _0x39f456={'x':_0x26a2a0['x']-_0x27e436['x'],'y':_0x26a2a0['y']-_0x27e436['y']};return _0x27e436['x']=_0x26a2a0['x'],_0x27e436['y']=_0x26a2a0['y'],_0x27e436['in']&&(_0x27e436['in']={'x':_0x27e436['in']['x']+_0x39f456['x'],'y':_0x27e436['in']['y']+_0x39f456['y']}),_0x27e436[_0x1dab27(0x1c1)]&&(_0x27e436[_0x1dab27(0x1c1)]={'x':_0x27e436[_0x1dab27(0x1c1)]['x']+_0x39f456['x'],'y':_0x27e436[_0x1dab27(0x1c1)]['y']+_0x39f456['y']}),_0xc44bde;}return _0x27e436[_0x56c7aa['kind']]=_(_0x26a2a0),_0x27e436[_0x1dab27(0x1ca)]===_0x1dab27(0x1d0)&&(_0x27e436['pointType']=_0x1dab27(0x1f1)),M(_0x27e436,_0x56c7aa[_0x1dab27(0x1f8)]),_0xc44bde;}const I=1e-9;function L(_0x541be4){let _0x3c36af=Math['round'](_0x541be4*0x2710)/0x2710;return Object['is'](_0x3c36af,-0x0)?'0':String(_0x3c36af);}function R(_0x4c1145){return L(_0x4c1145['x'])+'\x20'+L(_0x4c1145['y']);}function z(_0x1de858,_0x3fc130){return{'x':_0x1de858['x']-_0x3fc130['x'],'y':_0x1de858['y']-_0x3fc130['y']};}function B(_0x241449,_0x550f5b,_0x1cef1b,_0x1a92ff,_0x553fac){let _0x414655=0x1-_0x553fac;return{'x':_0x414655*_0x414655*_0x414655*_0x241449['x']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['x']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['x']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['x'],'y':_0x414655*_0x414655*_0x414655*_0x241449['y']+0x3*_0x414655*_0x414655*_0x553fac*_0x550f5b['y']+0x3*_0x414655*_0x553fac*_0x553fac*_0x1cef1b['y']+_0x553fac*_0x553fac*_0x553fac*_0x1a92ff['y']};}function V(_0x3d1ece,_0x345da1,_0x4494f0,_0x4e1c7d){const _0x5b0fea=_0x1211;let _0x2b2437=-_0x3d1ece+0x3*_0x345da1-0x3*_0x4494f0+_0x4e1c7d,_0x2fc981=0x3*_0x3d1ece-0x6*_0x345da1+0x3*_0x4494f0,_0x44d4e4=-0x3*_0x3d1ece+0x3*_0x345da1,_0x34331a=[];if(Math[_0x5b0fea(0x1e4)](_0x2b2437)<I){if(Math['abs'](_0x2fc981)<I)return _0x34331a;let _0x287154=-_0x44d4e4/(0x2*_0x2fc981);return _0x287154>0x0&&_0x287154<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x287154),_0x34331a;}let _0x2792aa=_0x2fc981*_0x2fc981-0x3*_0x2b2437*_0x44d4e4;if(_0x2792aa<0x0)return _0x34331a;let _0x6dd9c4=Math['sqrt'](Math['max'](0x0,_0x2792aa)),_0x14e6b1=(-_0x2fc981+_0x6dd9c4)/(0x3*_0x2b2437),_0x238582=(-_0x2fc981-_0x6dd9c4)/(0x3*_0x2b2437);return _0x14e6b1>0x0&&_0x14e6b1<0x1&&_0x34331a[_0x5b0fea(0x20b)](_0x14e6b1),_0x238582>0x0&&_0x238582<0x1&&Math['abs'](_0x238582-_0x14e6b1)>I&&_0x34331a['push'](_0x238582),_0x34331a;}function _0x1211(_0x50ed2e,_0xe8e419){_0x50ed2e=_0x50ed2e-0x1ba;const _0x4eef04=_0x4eef();let _0x121192=_0x4eef04[_0x50ed2e];return _0x121192;}function H(_0x4f601d,_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f){const _0x573c7e=_0x1211;_0x4f601d[_0x573c7e(0x20b)](_0x2224c5,_0x36900f),new Set([...V(_0x2224c5['x'],_0x46cadd['x'],_0x1987c1['x'],_0x36900f['x']),...V(_0x2224c5['y'],_0x46cadd['y'],_0x1987c1['y'],_0x36900f['y'])])[_0x573c7e(0x1eb)](_0x2aeff6=>{const _0x30aae2=_0x573c7e;_0x4f601d[_0x30aae2(0x20b)](B(_0x2224c5,_0x46cadd,_0x1987c1,_0x36900f,_0x2aeff6));});}function U(_0x1c2ad0){const _0x4b8f70=_0x1211;let _0x532f0f=_0x1c2ad0[_0x4b8f70(0x208)];if(_0x532f0f['length']<=0x1)return _0x532f0f;let _0x3cf711=[];for(let _0x6de75a=0x1;_0x6de75a<_0x532f0f[_0x4b8f70(0x1e2)];_0x6de75a++){var _0x2d4159,_0x1d3f32;let _0x42ce86=_0x532f0f[_0x6de75a-0x1],_0x3e729c=_0x532f0f[_0x6de75a];H(_0x3cf711,_0x42ce86,(_0x2d4159=_0x42ce86[_0x4b8f70(0x1c1)])==null?_0x42ce86:_0x2d4159,(_0x1d3f32=_0x3e729c['in'])==null?_0x3e729c:_0x1d3f32,_0x3e729c);}if(_0x1c2ad0['closed']&&_0x532f0f[_0x4b8f70(0x1e2)]>0x1){var _0x30eb6b,_0xed4e9f;let _0x43247a=_0x532f0f[_0x532f0f[_0x4b8f70(0x1e2)]-0x1],_0x25e565=_0x532f0f[0x0];H(_0x3cf711,_0x43247a,(_0x30eb6b=_0x43247a[_0x4b8f70(0x1c1)])==null?_0x43247a:_0x30eb6b,(_0xed4e9f=_0x25e565['in'])==null?_0x25e565:_0xed4e9f,_0x25e565);}return _0x3cf711;}function de(_0x75b221){const _0x2e8f98=_0x1211;let _0x4912c2=_0x75b221[_0x2e8f98(0x1c5)];if(_0x4912c2[_0x2e8f98(0x1e2)]<=0x1)return _0x4912c2;let _0x3dcfc6=[];for(let _0x5ef848=0x0;_0x5ef848<_0x4912c2[_0x2e8f98(0x1e2)]-0x1;_0x5ef848++){var _0x8dcc5c,_0x2081ce;let _0x871f0f=_0x4912c2[_0x5ef848],_0x239bdb=_0x4912c2[_0x5ef848+0x1],_0x546780=(_0x8dcc5c=_0x4912c2[_0x5ef848-0x1])==null?_0x871f0f:_0x8dcc5c,_0x344ea5=(_0x2081ce=_0x4912c2[_0x5ef848+0x2])==null?_0x239bdb:_0x2081ce;H(_0x3dcfc6,_0x871f0f,{'x':_0x871f0f['x']+(_0x239bdb['x']-_0x546780['x'])/0x6,'y':_0x871f0f['y']+(_0x239bdb['y']-_0x546780['y'])/0x6},{'x':_0x239bdb['x']-(_0x344ea5['x']-_0x871f0f['x'])/0x6,'y':_0x239bdb['y']-(_0x344ea5['y']-_0x871f0f['y'])/0x6},_0x239bdb);}return _0x3dcfc6;}function fe(_0x9f0f16){const _0x3f3ed5=_0x1211;return _0x9f0f16['kind']===_0x3f3ed5(0x218)?U(_0x9f0f16):de(_0x9f0f16);}function W(_0x22537b){const _0x4abce3=_0x1211;let _0x4a4690=Math[_0x4abce3(0x20f)](_0x22537b*0x2710)/0x2710;return Object['is'](_0x4a4690,-0x0)?0x0:_0x4a4690;}function G(_0x529191){const _0x59a956=_0x1211;let _0x256152=fe(_0x529191);if(_0x256152['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x467b54=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x5c79ff=>_0x5c79ff['x'])),_0xc4946b=Math[_0x59a956(0x20d)](..._0x256152[_0x59a956(0x1c4)](_0x142167=>_0x142167['y'])),_0x5aa992=Math[_0x59a956(0x1f0)](..._0x256152[_0x59a956(0x1c4)](_0x7c0829=>_0x7c0829['x'])),_0xe8ac3e=Math['max'](..._0x256152['map'](_0x17e09c=>_0x17e09c['y']));return{'left':W(_0x467b54),'top':W(_0xc4946b),'width':W(Math['max'](0x1,_0x5aa992-_0x467b54)),'height':W(Math[_0x59a956(0x1f0)](0x1,_0xe8ac3e-_0xc4946b))};}function pe(_0x3e2b30,_0x124fb7){const _0x74e596=_0x1211;let _0x47cf4c=_0x3e2b30[_0x74e596(0x208)];if(_0x47cf4c[_0x74e596(0x1e2)]===0x0)return'';let _0x95e36d=['M\x20'+R(z(_0x47cf4c[0x0],_0x124fb7))];for(let _0x4ee1e5=0x1;_0x4ee1e5<_0x47cf4c[_0x74e596(0x1e2)];_0x4ee1e5++){var _0x343f97,_0xb4b90e;let _0x27a4d4=_0x47cf4c[_0x4ee1e5-0x1],_0x4bce27=_0x47cf4c[_0x4ee1e5],_0x338c1b=(_0x343f97=_0x27a4d4[_0x74e596(0x1c1)])==null?_0x27a4d4:_0x343f97,_0x1e3317=(_0xb4b90e=_0x4bce27['in'])==null?_0x4bce27:_0xb4b90e;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0x338c1b,_0x124fb7))+'\x20'+R(z(_0x1e3317,_0x124fb7))+'\x20'+R(z(_0x4bce27,_0x124fb7)));}if(_0x3e2b30[_0x74e596(0x1e0)]&&_0x47cf4c[_0x74e596(0x1e2)]>0x1){var _0x127d8f,_0x391377;let _0x36dfda=_0x47cf4c[_0x47cf4c[_0x74e596(0x1e2)]-0x1],_0x1618b2=_0x47cf4c[0x0],_0xafc868=(_0x127d8f=_0x36dfda[_0x74e596(0x1c1)])==null?_0x36dfda:_0x127d8f,_0x1de550=(_0x391377=_0x1618b2['in'])==null?_0x1618b2:_0x391377;_0x95e36d[_0x74e596(0x20b)]('C\x20'+R(z(_0xafc868,_0x124fb7))+'\x20'+R(z(_0x1de550,_0x124fb7))+'\x20'+R(z(_0x1618b2,_0x124fb7))),_0x95e36d[_0x74e596(0x20b)]('Z');}return _0x95e36d['join']('\x20');}function me(_0x16c425,_0x5c128b){const _0x38b1ff=_0x1211;let _0x265969=_0x16c425[_0x38b1ff(0x1c5)][_0x38b1ff(0x1c4)](_0xaed080=>z(_0xaed080,_0x5c128b));if(_0x265969[_0x38b1ff(0x1e2)]===0x0)return'';if(_0x265969[_0x38b1ff(0x1e2)]===0x1)return'M\x20'+R(_0x265969[0x0]);let _0x5bc61b=['M\x20'+R(_0x265969[0x0])];for(let _0x4ca555=0x0;_0x4ca555<_0x265969[_0x38b1ff(0x1e2)]-0x1;_0x4ca555++){var _0xc7926b,_0x19feba;let _0x445dca=_0x265969[_0x4ca555],_0x3792ed=_0x265969[_0x4ca555+0x1],_0x4b6c96=(_0xc7926b=_0x265969[_0x4ca555-0x1])==null?_0x445dca:_0xc7926b,_0x17cfc5=(_0x19feba=_0x265969[_0x4ca555+0x2])==null?_0x3792ed:_0x19feba,_0x14c2c2={'x':_0x445dca['x']+(_0x3792ed['x']-_0x4b6c96['x'])/0x6,'y':_0x445dca['y']+(_0x3792ed['y']-_0x4b6c96['y'])/0x6},_0x19d58a={'x':_0x3792ed['x']-(_0x17cfc5['x']-_0x445dca['x'])/0x6,'y':_0x3792ed['y']-(_0x17cfc5['y']-_0x445dca['y'])/0x6};_0x5bc61b[_0x38b1ff(0x20b)]('C\x20'+R(_0x14c2c2)+'\x20'+R(_0x19d58a)+'\x20'+R(_0x3792ed));}return _0x5bc61b['join']('\x20');}function he(_0x3bd850,_0x5b0f86){const _0x3179ab=_0x1211;return _0x3bd850[_0x3179ab(0x1f8)]===_0x3179ab(0x218)?pe(_0x3bd850,_0x5b0f86):me(_0x3bd850,_0x5b0f86);}function ge(_0x57783c,_0x578a2a){const _0x2572b8=_0x1211;return _0x578a2a!=null&&_0x578a2a[_0x2572b8(0x202)]?_0x578a2a['color']:_0x57783c[_0x2572b8(0x1f8)]===_0x2572b8(0x218)?_0x2572b8(0x1d9):_0x57783c[_0x2572b8(0x202)];}function _e(_0x112a65,_0x5bdcf7){const _0x1f50d3=_0x1211;return(_0x5bdcf7==null?void 0x0:_0x5bdcf7[_0x1f50d3(0x1e6)])===void 0x0?_0x112a65['kind']==='pen'?0x2:_0x112a65[_0x1f50d3(0x1e6)]:_0x5bdcf7[_0x1f50d3(0x1e6)];}function ve(_0x599071,_0x2a1419){return(_0x2a1419==null?void 0x0:_0x2a1419['opacity'])===void 0x0?_0x599071['kind']==='pen'?void 0x0:_0x599071['opacity']:_0x2a1419['opacity'];}function ye(_0x3c585a,_0x6ea5f3){const _0x39e5dd=_0x1211;let _0x385a5e=G(_0x3c585a),_0x5ab225=he(_0x3c585a,{'x':_0x385a5e['left'],'y':_0x385a5e[_0x39e5dd(0x216)]}),_0x58a50c=_0x3c585a['kind']===_0x39e5dd(0x218)&&_0x3c585a[_0x39e5dd(0x1e0)],_0xbd4be8=_0x6ea5f3==null?void 0x0:_0x6ea5f3[_0x39e5dd(0x1e8)];return{'shapeType':_0x46339a[_0x39e5dd(0x1e3)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x385a5e['width'],'h':_0x385a5e[_0x39e5dd(0x1df)],'fill':_0x58a50c?_0x39e5dd(0x1e1):_0x39e5dd(0x1ec),'stroke':!0x0,'data':_0x5ab225,'dataArray':be(_0x3c585a,{'x':_0x385a5e[_0x39e5dd(0x1ea)],'y':_0x385a5e[_0x39e5dd(0x216)]})}]},'fill':_0x58a50c&&_0xbd4be8?{'color':_0xbd4be8,'fillType':_0x5d1bec[_0x39e5dd(0x1e7)]}:{'fillType':_0x5d1bec[_0x39e5dd(0x207)]},'stroke':{'color':ge(_0x3c585a,_0x6ea5f3),'width':_e(_0x3c585a,_0x6ea5f3),'opacity':ve(_0x3c585a,_0x6ea5f3),'lineStrokeType':_0x2298b9[_0x39e5dd(0x209)],'capType':_0x65358a['Round'],'lineJoinType':_0x3afe2a[_0x39e5dd(0x203)]}};}function K(_0x32c7ff,_0x2801d5){return{'x':_0x32c7ff['x']-_0x2801d5['x'],'y':_0x32c7ff['y']-_0x2801d5['y']};}function be(_0x2930cd,_0x1b786f){const _0x321054=_0x1211;if(_0x2930cd[_0x321054(0x1f8)]===_0x321054(0x218)){let _0xa547a7=_0x2930cd[_0x321054(0x208)];if(_0xa547a7['length']===0x0)return[];let _0x279dcd=K(_0xa547a7[0x0],_0x1b786f),_0x376d48=[{'command':'M','points':[_0x279dcd['x'],_0x279dcd['y']]}];for(let _0x5d9ba7=0x1;_0x5d9ba7<_0xa547a7[_0x321054(0x1e2)];_0x5d9ba7++){var _0x2bda0c,_0x1845b6;let _0x21ea08=_0xa547a7[_0x5d9ba7-0x1],_0x1e56e0=_0xa547a7[_0x5d9ba7],_0xfebf11=K((_0x2bda0c=_0x21ea08[_0x321054(0x1c1)])==null?_0x21ea08:_0x2bda0c,_0x1b786f),_0x5141fa=K((_0x1845b6=_0x1e56e0['in'])==null?_0x1e56e0:_0x1845b6,_0x1b786f),_0x17b306=K(_0x1e56e0,_0x1b786f);_0x376d48['push']({'command':'C','points':[_0xfebf11['x'],_0xfebf11['y'],_0x5141fa['x'],_0x5141fa['y'],_0x17b306['x'],_0x17b306['y']]});}if(_0x2930cd[_0x321054(0x1e0)]&&_0xa547a7[_0x321054(0x1e2)]>0x1){var _0x455314,_0xd8fe87;let _0x40a46b=_0xa547a7[_0xa547a7[_0x321054(0x1e2)]-0x1],_0x56f055=_0xa547a7[0x0],_0x36dec7=K((_0x455314=_0x40a46b['out'])==null?_0x40a46b:_0x455314,_0x1b786f),_0x3cea01=K((_0xd8fe87=_0x56f055['in'])==null?_0x56f055:_0xd8fe87,_0x1b786f),_0x37d2d9=K(_0x56f055,_0x1b786f);_0x376d48[_0x321054(0x20b)]({'command':'C','points':[_0x36dec7['x'],_0x36dec7['y'],_0x3cea01['x'],_0x3cea01['y'],_0x37d2d9['x'],_0x37d2d9['y']]}),_0x376d48[_0x321054(0x20b)]({'command':'z','points':[]});}return _0x376d48;}let _0x4bf39c=_0x2930cd[_0x321054(0x1c5)][_0x321054(0x1c4)](_0x2a50ac=>K(_0x2a50ac,_0x1b786f));if(_0x4bf39c[_0x321054(0x1e2)]===0x0)return[];let _0x42a2eb=[{'command':'M','points':[_0x4bf39c[0x0]['x'],_0x4bf39c[0x0]['y']]}];for(let _0x2eb88b=0x0;_0x2eb88b<_0x4bf39c[_0x321054(0x1e2)]-0x1;_0x2eb88b++){var _0x5271fe,_0x1e9e16;let _0x4a856f=_0x4bf39c[_0x2eb88b],_0x5a1c20=_0x4bf39c[_0x2eb88b+0x1],_0xd3b4ad=(_0x5271fe=_0x4bf39c[_0x2eb88b-0x1])==null?_0x4a856f:_0x5271fe,_0x3fc1c1=(_0x1e9e16=_0x4bf39c[_0x2eb88b+0x2])==null?_0x5a1c20:_0x1e9e16,_0x2138b6={'x':_0x4a856f['x']+(_0x5a1c20['x']-_0xd3b4ad['x'])/0x6,'y':_0x4a856f['y']+(_0x5a1c20['y']-_0xd3b4ad['y'])/0x6},_0x30c6a8={'x':_0x5a1c20['x']-(_0x3fc1c1['x']-_0x4a856f['x'])/0x6,'y':_0x5a1c20['y']-(_0x3fc1c1['y']-_0x4a856f['y'])/0x6};_0x42a2eb[_0x321054(0x20b)]({'command':'C','points':[_0x2138b6['x'],_0x2138b6['y'],_0x30c6a8['x'],_0x30c6a8['y'],_0x5a1c20['x'],_0x5a1c20['y']]});}return _0x42a2eb;}function xe(_0x43204b){const _0x180ace=_0x1211;var _0x3e228f;let {model:_0xa3d708,sourceModel:_0x24778f=_0xa3d708,style:_0x170177}=_0x43204b,_0x194a95=(_0x3e228f=_0x43204b[_0x180ace(0x215)])==null?_0xa3d708['kind']:_0x3e228f,_0x2525c9=G(_0xa3d708),_0x3214d8=_0xa3d708[_0x180ace(0x1f8)]==='pen'&&_0x194a95!=='pen'?_0xa3d708:void 0x0;return{'transform':{..._0x2525c9,'rotation':0x0},'shapeData':ye(_0xa3d708,_0x170177),'ink':{'version':0x1,'tool':_0x194a95,'sourceModel':_0x24778f,..._0x3214d8?{'editModel':_0x3214d8}:{},'normalizedBounds':_0x2525c9}};}var Se=_0x4602de(0x1c0),Ce=_0x4602de(0x1c7);function q(_0x3db7cb){'@babel/helpers - typeof';const _0xe4ad9e=_0x4602de;return q=typeof Symbol=='function'&&typeof Symbol[_0xe4ad9e(0x1f4)]==_0xe4ad9e(0x214)?function(_0x12e51e){return typeof _0x12e51e;}:function(_0x3d0599){const _0x129da7=_0xe4ad9e;return _0x3d0599&&typeof Symbol=='function'&&_0x3d0599[_0x129da7(0x1bf)]===Symbol&&_0x3d0599!==Symbol[_0x129da7(0x1ff)]?_0x129da7(0x214):typeof _0x3d0599;},q(_0x3db7cb);}function we(_0x4616bb,_0x3450ed){const _0x308030=_0x4602de;if(q(_0x4616bb)!='object'||!_0x4616bb)return _0x4616bb;var _0x37d4fd=_0x4616bb[Symbol[_0x308030(0x1bd)]];if(_0x37d4fd!==void 0x0){var _0x1337d6=_0x37d4fd[_0x308030(0x1c6)](_0x4616bb,_0x3450ed||_0x308030(0x1d1));if(q(_0x1337d6)!=_0x308030(0x1ce))return _0x1337d6;throw TypeError(_0x308030(0x1e5));}return(_0x3450ed===_0x308030(0x1cd)?String:Number)(_0x4616bb);}function J(_0x2cf7d5){var _0x2588a4=we(_0x2cf7d5,'string');return q(_0x2588a4)=='symbol'?_0x2588a4:_0x2588a4+'';}function Y(_0x2c7ade,_0x497417,_0x5a1879){const _0x58d322=_0x4602de;return(_0x497417=J(_0x497417))in _0x2c7ade?Object[_0x58d322(0x1d3)](_0x2c7ade,_0x497417,{'value':_0x5a1879,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c7ade[_0x497417]=_0x5a1879,_0x2c7ade;}const X=_0x113c29(_0x4602de(0x1ee));function _0x4eef(){const _0x496427=['registerCommand','8wQWMzo','symbol','tool','top','100292uigght','pen','1025282PXmaBs','UNIVER_UNKNOWN','end','toPrimitive','right','constructor','@univerjs-pro/ink','out','tolerance','_config','map','points','call','1.0.0-alpha.5','_configService','3181017VlRlDb','pointType','ink.operation.start','3458565PsOtLJ','string','object','9535700nxXkRG','corner','default','anchor','defineProperty','createCustomShape','get','_adapters','2624610OdnZzg','findIndex','#f54a45','pluginName','version','disposeWithMe','_injector','symmetric','height','closed','norm','length','Rect','abs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','width','SolidFill','fillColor','splice','left','forEach','none','add','ink.host-adapter.service','startIndex','max','free','endIndex','find','iterator','filter','decorate','slice','kind','beginInkMode','OPERATION','smooth','getOwnPropertyDescriptor','segmentIndex','start','prototype','type','ratio','color','Round','distance','point','2cOGgSL','NoFill','anchors','SolidLine','_commandService','push','hypot','min','973326xGVAaR','round','110sAsyTy','createId'];_0x4eef=function(){return _0x496427;};return _0x4eef();}var Te=class{constructor(){const _0x13fc70=_0x4602de;Y(this,_0x13fc70(0x1d6),[]);}['registerAdapter'](_0x21da3f){const _0x542b73=_0x4602de;return this['_adapters'][_0x542b73(0x20b)](_0x21da3f),_0x373e13(()=>{const _0x1f15f7=_0x542b73;let _0x1a116b=this[_0x1f15f7(0x1d6)]['indexOf'](_0x21da3f);_0x1a116b>=0x0&&this['_adapters'][_0x1f15f7(0x1e9)](_0x1a116b,0x1);});}[_0x4602de(0x1f9)](_0x5db213){const _0x15ac98=_0x4602de;for(let _0x324ad8 of this['_adapters'])if(_0x324ad8[_0x15ac98(0x1f9)](_0x5db213))return!0x0;return!0x1;}async[_0x4602de(0x1d4)](_0x548593){const _0x17606c=_0x4602de;for(let _0x4ccc14 of this[_0x17606c(0x1d6)])if(_0x4ccc14[_0x17606c(0x1d4)]&&await _0x4ccc14[_0x17606c(0x1d4)](_0x548593))return!0x0;return!0x1;}};const Ee={'id':_0x4602de(0x1cb),'type':_0x3e6dda[_0x4602de(0x1fa)],'handler':(_0x3a5dbd,_0x2585f5)=>_0x2585f5?_0x3a5dbd[_0x4602de(0x1d5)](X)[_0x4602de(0x1f9)](_0x2585f5):!0x1},Z={};function Q(_0x932558,_0x2acae1){return function(_0x1c3776,_0x1cc47c){_0x2acae1(_0x1c3776,_0x1cc47c,_0x932558);};}function De(_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17){const _0x450c75=_0x4602de;var _0x167094=arguments['length'],_0x1012ae=_0x167094<0x3?_0x1a89e1:_0x174c17===null?_0x174c17=Object[_0x450c75(0x1fc)](_0x1a89e1,_0x88ebdb):_0x174c17,_0x5abb30;if(typeof Reflect==_0x450c75(0x1ce)&&typeof Reflect[_0x450c75(0x1f6)]=='function')_0x1012ae=Reflect[_0x450c75(0x1f6)](_0x382d75,_0x1a89e1,_0x88ebdb,_0x174c17);else{for(var _0x5857d2=_0x382d75[_0x450c75(0x1e2)]-0x1;_0x5857d2>=0x0;_0x5857d2--)(_0x5abb30=_0x382d75[_0x5857d2])&&(_0x1012ae=(_0x167094<0x3?_0x5abb30(_0x1012ae):_0x167094>0x3?_0x5abb30(_0x1a89e1,_0x88ebdb,_0x1012ae):_0x5abb30(_0x1a89e1,_0x88ebdb))||_0x1012ae);}return _0x167094>0x3&&_0x1012ae&&Object[_0x450c75(0x1d3)](_0x1a89e1,_0x88ebdb,_0x1012ae),_0x1012ae;}let $=class extends _0x1732ef{constructor(_0x49581a=Z,_0x2251c4,_0x2e4743,_0x25a73b){const _0x4a00e1=_0x4602de;super(),this['_config']=_0x49581a,this[_0x4a00e1(0x1dd)]=_0x2251c4,this[_0x4a00e1(0x20a)]=_0x2e4743,this[_0x4a00e1(0x1c8)]=_0x25a73b;let {..._0x2bde7d}=_0x2ec470({},Z,this[_0x4a00e1(0x1c3)]);this['_configService']['setConfig']('ink.config',_0x2bde7d);}['onStarting'](){const _0x5791bb=_0x4602de;[[X,{'useClass':Te}]][_0x5791bb(0x1eb)](_0x1192e8=>this[_0x5791bb(0x1dd)][_0x5791bb(0x1ed)](_0x1192e8)),this[_0x5791bb(0x1dc)](this[_0x5791bb(0x20a)][_0x5791bb(0x212)](Ee));}};Y($,_0x4602de(0x1da),'UNIVER_INK_PLUGIN'),Y($,'packageName',Se),Y($,_0x4602de(0x1db),Ce),Y($,_0x4602de(0x200),_0x2f3686[_0x4602de(0x1bb)]),$=De([_0x21f9f4(_0x1c9fb0),Q(0x1,_0x83b12a(_0x4b9262)),Q(0x2,_0x44cbdf),Q(0x3,_0x74df07)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
|
1
|
+
const _0xd9ea97=_0x5d75;(function(_0x583a21,_0x3dd7e7){const _0x56c90b=_0x5d75,_0x37ba04=_0x583a21();while(!![]){try{const _0x47bcfa=-parseInt(_0x56c90b(0x173))/0x1+-parseInt(_0x56c90b(0x140))/0x2+parseInt(_0x56c90b(0x14f))/0x3+-parseInt(_0x56c90b(0x13d))/0x4+parseInt(_0x56c90b(0x16b))/0x5+-parseInt(_0x56c90b(0x187))/0x6*(-parseInt(_0x56c90b(0x15e))/0x7)+parseInt(_0x56c90b(0x18e))/0x8;if(_0x47bcfa===_0x3dd7e7)break;else _0x37ba04['push'](_0x37ba04['shift']());}catch(_0xaae5ca){_0x37ba04['push'](_0x37ba04['shift']());}}}(_0x1f0e,0xd2e2d));import{ShapeFillEnum as _0x157d04,ShapeLineCapEnum as _0x363052,ShapeLineJoinEnum as _0x56486c,ShapeLineTypeEnum as _0x41a350,ShapeTypeEnum as _0x2fc13d}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x42d00b}from'@univerjs-pro/license';import{CommandType as _0x3450b2,DependentOn as _0xbc0f6e,ICommandService as _0x16de20,IConfigService as _0x3c718d,Inject as _0x4e3a63,Injector as _0x5500c4,Plugin as _0x205aab,UniverInstanceType as _0x42f687,createIdentifier as _0x1ab48e,merge as _0x1239fb,toDisposable as _0x29412f}from'@univerjs/core';const g=0.0001;function _(_0x1c4784){return{'x':_0x1c4784['x'],'y':_0x1c4784['y']};}function v(_0x2a107c){const _0x2cd110=_0x5d75;return{..._0x2a107c,'in':_0x2a107c['in']?_(_0x2a107c['in']):void 0x0,'out':_0x2a107c['out']?_(_0x2a107c[_0x2cd110(0x139)]):void 0x0};}function y(_0x5c7ca3){const _0x3ce2bc=_0x5d75;return{'kind':_0x3ce2bc(0x195),'closed':_0x5c7ca3[_0x3ce2bc(0x177)],'anchors':_0x5c7ca3[_0x3ce2bc(0x143)][_0x3ce2bc(0x13c)](v)};}function b(_0x421435,_0x3ecbc4,_0x13d740){return{'x':_0x421435['x']+(_0x3ecbc4['x']-_0x421435['x'])*_0x13d740,'y':_0x421435['y']+(_0x3ecbc4['y']-_0x421435['y'])*_0x13d740};}function x(_0x3ed006,_0x2248cc){const _0x303571=_0x5d75;return Math[_0x303571(0x179)](_0x3ed006['x']-_0x2248cc['x'],_0x3ed006['y']-_0x2248cc['y']);}function S(_0x43b2af){let _0x4ce1e7=Math['hypot'](_0x43b2af['x'],_0x43b2af['y']);return _0x4ce1e7<g?{'x':0x1,'y':0x0}:{'x':_0x43b2af['x']/_0x4ce1e7,'y':_0x43b2af['y']/_0x4ce1e7};}function C(_0x1b10ba,_0x4d4b62,_0x57b104=x(_0x1b10ba,_0x4d4b62)){let _0x29f3c0=S({'x':_0x1b10ba['x']-_0x4d4b62['x'],'y':_0x1b10ba['y']-_0x4d4b62['y']});return{'x':_0x1b10ba['x']+_0x29f3c0['x']*_0x57b104,'y':_0x1b10ba['y']+_0x29f3c0['y']*_0x57b104};}function w(_0x4fa05c,_0x4d9b3c){const _0x168da6=_0x5d75;let {anchors:_0x16ed3e}=_0x4fa05c;return _0x16ed3e[_0x168da6(0x15b)]<0x2||_0x4d9b3c<0x0?null:_0x4d9b3c<_0x16ed3e['length']-0x1?{'startIndex':_0x4d9b3c,'endIndex':_0x4d9b3c+0x1,'start':_0x16ed3e[_0x4d9b3c],'end':_0x16ed3e[_0x4d9b3c+0x1]}:_0x4fa05c[_0x168da6(0x177)]&&_0x4d9b3c===_0x16ed3e['length']-0x1?{'startIndex':_0x16ed3e[_0x168da6(0x15b)]-0x1,'endIndex':0x0,'start':_0x16ed3e[_0x16ed3e[_0x168da6(0x15b)]-0x1],'end':_0x16ed3e[0x0]}:null;}function T(_0x252e88,_0x516bc5){const _0x1124c8=_0x5d75;var _0xe8f2fe,_0x23763c;let _0x876388=w(_0x252e88,_0x516bc5);return _0x876388?[_0x876388['start'],(_0xe8f2fe=_0x876388[_0x1124c8(0x181)][_0x1124c8(0x139)])==null?_0x876388[_0x1124c8(0x181)]:_0xe8f2fe,(_0x23763c=_0x876388[_0x1124c8(0x169)]['in'])==null?_0x876388[_0x1124c8(0x169)]:_0x23763c,_0x876388[_0x1124c8(0x169)]]:null;}function te(_0x137d6a,_0x28c135){var _0x4001aa;return _0x28c135==='anchor'?_0x137d6a:(_0x4001aa=_0x137d6a[_0x28c135])==null?null:_0x4001aa;}function E(_0x1c5905,_0x107d8e,_0x1ccfbc){const _0x112356=_0x5d75;return _0x1ccfbc===_0x112356(0x163)||_0x1c5905[_0x112356(0x177)]?!0x0:_0x1ccfbc==='in'?_0x107d8e>0x0:_0x107d8e<_0x1c5905['anchors'][_0x112356(0x15b)]-0x1;}function D(_0x30166d,_0x59ad48){let [_0xff4e02,_0x486f37,_0x25b23f,_0x1c2b6f]=_0x30166d,_0x5a6c14=b(_0xff4e02,_0x486f37,_0x59ad48),_0x2e6c74=b(_0x486f37,_0x25b23f,_0x59ad48),_0x165d33=b(_0x25b23f,_0x1c2b6f,_0x59ad48);return b(b(_0x5a6c14,_0x2e6c74,_0x59ad48),b(_0x2e6c74,_0x165d33,_0x59ad48),_0x59ad48);}function ne(_0x1b6283,_0x135d30){let [_0x561704,_0x90133e,_0x41c9d4,_0x428715]=_0x1b6283,_0x5092ca=b(_0x561704,_0x90133e,_0x135d30),_0x37b48c=b(_0x90133e,_0x41c9d4,_0x135d30),_0x2b4dc5=b(_0x41c9d4,_0x428715,_0x135d30),_0x5a3e1e=b(_0x5092ca,_0x37b48c,_0x135d30),_0x3b1b03=b(_0x37b48c,_0x2b4dc5,_0x135d30),_0x478d72=b(_0x5a3e1e,_0x3b1b03,_0x135d30);return{'left':[_0x561704,_0x5092ca,_0x5a3e1e,_0x478d72],'right':[_0x478d72,_0x3b1b03,_0x2b4dc5,_0x428715]};}function O(_0x250740,_0xc0a51b,_0x345ecb){const _0x4aff10=_0x5d75;let _0x580f77=_0x345ecb['x']-_0xc0a51b['x'],_0x2d4d1b=_0x345ecb['y']-_0xc0a51b['y'],_0x2f93e5=_0x580f77*_0x580f77+_0x2d4d1b*_0x2d4d1b,_0x5a4687=_0x2f93e5<=g?0x0:Math[_0x4aff10(0x14a)](0x0,Math['min'](0x1,((_0x250740['x']-_0xc0a51b['x'])*_0x580f77+(_0x250740['y']-_0xc0a51b['y'])*_0x2d4d1b)/_0x2f93e5)),_0x5045d2={'x':_0xc0a51b['x']+_0x580f77*_0x5a4687,'y':_0xc0a51b['y']+_0x2d4d1b*_0x5a4687};return{'point':_0x5045d2,'ratio':_0x5a4687,'distance':x(_0x250740,_0x5045d2)};}function re(_0x316cf3,_0x2c511a,_0x16ea29){return O(_0x316cf3,_0x2c511a,_0x16ea29)['distance']**0x2;}function k(_0x41db0d,_0x5c6cd1){const _0x5cb9ec=_0x5d75;if(_0x41db0d[_0x5cb9ec(0x15b)]<=0x2)return _0x41db0d[_0x5cb9ec(0x13c)](_);let _0x527150=0x0,_0x1f759b=0x0,_0xa900a5=_0x41db0d[0x0],_0x5da654=_0x41db0d[_0x41db0d[_0x5cb9ec(0x15b)]-0x1],_0x49d039=_0x5c6cd1*_0x5c6cd1;for(let _0x4ee1c2=0x1;_0x4ee1c2<_0x41db0d[_0x5cb9ec(0x15b)]-0x1;_0x4ee1c2++){let _0x29b206=re(_0x41db0d[_0x4ee1c2],_0xa900a5,_0x5da654);_0x29b206>_0x527150&&(_0x527150=_0x29b206,_0x1f759b=_0x4ee1c2);}if(_0x527150<=_0x49d039)return[_(_0xa900a5),_(_0x5da654)];let _0x29d723=k(_0x41db0d[_0x5cb9ec(0x168)](0x0,_0x1f759b+0x1),_0x5c6cd1),_0x287549=k(_0x41db0d[_0x5cb9ec(0x168)](_0x1f759b),_0x5c6cd1);return[..._0x29d723['slice'](0x0,-0x1),..._0x287549];}function ie(_0x3ebe1e,_0x168b14){var _0x1fd1fb;let _0x55f4a4=_0x3ebe1e[_0x168b14],_0x11235c=_0x3ebe1e[_0x168b14+0x1],_0x177792=(_0x1fd1fb=_0x3ebe1e[_0x168b14-0x1])==null?_0x55f4a4:_0x1fd1fb;return{'x':_0x55f4a4['x']+(_0x11235c['x']-_0x177792['x'])/0x6,'y':_0x55f4a4['y']+(_0x11235c['y']-_0x177792['y'])/0x6};}function A(_0x40ed69,_0x105113){var _0x36c000;let _0x1bee18=_0x40ed69[_0x105113],_0x13e58e=_0x40ed69[_0x105113-0x1],_0x5d1cf4=(_0x36c000=_0x40ed69[_0x105113+0x1])==null?_0x1bee18:_0x36c000;return{'x':_0x1bee18['x']-(_0x5d1cf4['x']-_0x13e58e['x'])/0x6,'y':_0x1bee18['y']-(_0x5d1cf4['y']-_0x13e58e['y'])/0x6};}function j(_0x5a8e8d,_0x34b014){const _0x325343=_0x5d75;var _0x54c804,_0x319837;let _0x173d6c=_0x5a8e8d[_0x325343(0x143)][_0x34b014],_0x1ce829=(_0x54c804=_0x5a8e8d['anchors'][_0x34b014-0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][_0x5a8e8d['anchors'][_0x325343(0x15b)]-0x1]:null:_0x54c804,_0x21c725=(_0x319837=_0x5a8e8d['anchors'][_0x34b014+0x1])==null?_0x5a8e8d[_0x325343(0x177)]?_0x5a8e8d[_0x325343(0x143)][0x0]:null:_0x319837,_0x3b9465=_0x1ce829&&_0x21c725?S({'x':_0x21c725['x']-_0x1ce829['x'],'y':_0x21c725['y']-_0x1ce829['y']}):_0x21c725?S({'x':_0x21c725['x']-_0x173d6c['x'],'y':_0x21c725['y']-_0x173d6c['y']}):_0x1ce829?S({'x':_0x173d6c['x']-_0x1ce829['x'],'y':_0x173d6c['y']-_0x1ce829['y']}):{'x':0x1,'y':0x0},_0x1bb118=_0x1ce829&&_0x21c725?Math[_0x325343(0x14a)](0x32,x(_0x1ce829,_0x21c725)/0x4):0x32;return{'in':{'x':_0x173d6c['x']-_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']-_0x3b9465['y']*_0x1bb118},'out':{'x':_0x173d6c['x']+_0x3b9465['x']*_0x1bb118,'y':_0x173d6c['y']+_0x3b9465['y']*_0x1bb118}};}function M(_0x331f34,_0x225f45){const _0x1635fa=_0x5d75;let _0x5c5948=_0x331f34[_0x225f45],_0x34a908=_0x225f45==='in'?_0x1635fa(0x139):'in',_0x1d5124=_0x331f34[_0x34a908];if(_0x5c5948){if(_0x331f34['pointType']==='symmetric'){_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948);return;}_0x331f34[_0x1635fa(0x155)]===_0x1635fa(0x146)&&(_0x331f34[_0x34a908]=C(_0x331f34,_0x5c5948,_0x1d5124?x(_0x331f34,_0x1d5124):x(_0x331f34,_0x5c5948)));}}function ae(_0x32764f,_0x140103){const _0x501204=_0x5d75;let _0x4d5d43=y(_0x32764f);return!_0x140103||_0x4d5d43['closed']||_0x4d5d43[_0x501204(0x143)][_0x501204(0x15b)]===0x0||_0x4d5d43[_0x501204(0x143)][_0x501204(0x18d)]({'id':_0x501204(0x144),'x':_0x140103['x'],'y':_0x140103['y'],'pointType':_0x501204(0x188)}),_0x4d5d43;}function oe(_0x95db77,_0x335c81={}){const _0x3ff665=_0x5d75;var _0x455e4b,_0x4a9cd2;let _0x42e572=Math[_0x3ff665(0x14a)](0x0,(_0x455e4b=_0x335c81[_0x3ff665(0x178)])==null?Math['max'](0x4,_0x95db77['width']*0.35):_0x455e4b),_0x5c818d=(_0x4a9cd2=_0x335c81[_0x3ff665(0x194)])==null?_0x298564=>_0x3ff665(0x152)+_0x298564:_0x4a9cd2,_0x519604=k(_0x95db77['points'],_0x42e572),_0x4b6ddc=_0x519604[_0x3ff665(0x13c)]((_0x40e9b8,_0x42a616)=>({'id':_0x5c818d(_0x42a616),'x':_0x40e9b8['x'],'y':_0x40e9b8['y'],'pointType':_0x3ff665(0x13b)}));for(let _0x265a12=0x0;_0x265a12<_0x4b6ddc[_0x3ff665(0x15b)]-0x1;_0x265a12++)_0x4b6ddc[_0x265a12][_0x3ff665(0x139)]=ie(_0x519604,_0x265a12),_0x4b6ddc[_0x265a12+0x1]['in']=A(_0x519604,_0x265a12+0x1);return{'kind':_0x3ff665(0x195),'closed':!0x1,'anchors':_0x4b6ddc};}function se(_0x208dd5,_0x5e25e0,_0x2962f8){const _0x5cda09=_0x5d75;let _0x38bab0=null,_0x16fa07=[_0x5cda09(0x163),'in',_0x5cda09(0x139)];return _0x208dd5[_0x5cda09(0x143)]['forEach']((_0x8f85da,_0x3ef198)=>{const _0x1731ad=_0x5cda09;_0x16fa07[_0x1731ad(0x193)](_0x405653=>{const _0x4c7e97=_0x1731ad;if(!E(_0x208dd5,_0x3ef198,_0x405653))return;let _0xb85dac=te(_0x8f85da,_0x405653);if(!_0xb85dac)return;let _0x3d87c9=x(_0x5e25e0,_0xb85dac);_0x3d87c9>_0x2962f8||_0x38bab0&&_0x3d87c9>=_0x38bab0[_0x4c7e97(0x17d)]||(_0x38bab0={'handle':{'kind':_0x405653,'anchorId':_0x8f85da['id']},'point':_(_0xb85dac),'distance':_0x3d87c9});});}),_0x38bab0;}function ce(_0x4655b2,_0x265026,_0x1c40a5){const _0x41aee7=_0x5d75;let _0x4973e7=null,_0x2466ba=_0x4655b2['closed']?_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]:Math[_0x41aee7(0x14a)](0x0,_0x4655b2[_0x41aee7(0x143)][_0x41aee7(0x15b)]-0x1);for(let _0x31f18d=0x0;_0x31f18d<_0x2466ba;_0x31f18d++){let _0x51465b=T(_0x4655b2,_0x31f18d);if(!_0x51465b)continue;let _0x3e8297=D(_0x51465b,0x0);for(let _0x16aaad=0x1;_0x16aaad<=0x20;_0x16aaad++){let _0x43e783=D(_0x51465b,_0x16aaad/0x20),_0x117a70=O(_0x265026,_0x3e8297,_0x43e783),_0x552101=(_0x16aaad-0x1+_0x117a70[_0x41aee7(0x16e)])/0x20;(!_0x4973e7||_0x117a70['distance']<_0x4973e7[_0x41aee7(0x17d)])&&(_0x4973e7={'segmentIndex':_0x31f18d,'t':_0x552101,'point':_0x117a70['point'],'distance':_0x117a70['distance']}),_0x3e8297=_0x43e783;}}return _0x4973e7&&_0x4973e7[_0x41aee7(0x17d)]<=_0x1c40a5?_0x4973e7:null;}function le(_0x1b6e6c,_0x1718f5,_0x31090c){const _0x3d0d01=_0x5d75;let _0xa81a9b=y(_0x1b6e6c),_0x1dce41=w(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]),_0x2870c8=T(_0xa81a9b,_0x1718f5[_0x3d0d01(0x174)]);if(!_0x1dce41||!_0x2870c8)return _0xa81a9b;let _0x59758a=ne(_0x2870c8,Math['max'](0x0,Math[_0x3d0d01(0x18b)](0x1,_0x1718f5['t']))),_0x337435={'id':_0x31090c(),'x':_0x59758a['left'][0x3]['x'],'y':_0x59758a[_0x3d0d01(0x175)][0x3]['y'],'in':_(_0x59758a[_0x3d0d01(0x175)][0x2]),'out':_(_0x59758a[_0x3d0d01(0x182)][0x1]),'pointType':_0x3d0d01(0x13b)};return _0xa81a9b['anchors'][_0x1dce41[_0x3d0d01(0x15a)]][_0x3d0d01(0x139)]=_(_0x59758a[_0x3d0d01(0x175)][0x1]),_0xa81a9b[_0x3d0d01(0x143)][_0x1dce41[_0x3d0d01(0x189)]]['in']=_(_0x59758a[_0x3d0d01(0x182)][0x2]),_0xa81a9b['anchors'][_0x3d0d01(0x16c)](_0x1dce41[_0x3d0d01(0x15a)]+0x1,0x0,_0x337435),_0xa81a9b;}function ue(_0x1d9e10,_0x3e5793){const _0x287dcd=_0x5d75;let _0x4e4cf8=y(_0x1d9e10);return _0x4e4cf8['anchors']=_0x4e4cf8[_0x287dcd(0x143)][_0x287dcd(0x164)](_0x457dfe=>_0x457dfe['id']!==_0x3e5793),_0x4e4cf8['closed']&&_0x4e4cf8[_0x287dcd(0x143)]['length']<0x3&&(_0x4e4cf8['closed']=!0x1),_0x4e4cf8;}function N(_0x3d3393,_0x3a4f81,_0x181438){const _0x2db96c=_0x5d75;let _0x2fe297=y(_0x3d3393),_0x1999b5=_0x2fe297[_0x2db96c(0x143)][_0x2db96c(0x150)](_0x3a3f41=>_0x3a3f41['id']===_0x3a4f81),_0x2055e7=_0x2fe297['anchors'][_0x1999b5];if(!_0x2055e7)return _0x2fe297;if(_0x2055e7['pointType']=_0x181438,_0x181438===_0x2db96c(0x188))return delete _0x2055e7['in'],delete _0x2055e7[_0x2db96c(0x139)],_0x2fe297;let _0x3c9431=j(_0x2fe297,_0x1999b5);if(_0x2055e7['in']=_0x2055e7['in']?_(_0x2055e7['in']):_0x3c9431['in'],_0x2055e7[_0x2db96c(0x139)]=_0x2055e7['out']?_(_0x2055e7[_0x2db96c(0x139)]):_0x3c9431[_0x2db96c(0x139)],_0x181438===_0x2db96c(0x13f)){let _0x16372e=Math['max'](x(_0x2055e7,_0x2055e7['in']),x(_0x2055e7,_0x2055e7['out']),0x32),_0xf3593c=S({'x':_0x2055e7[_0x2db96c(0x139)]['x']-_0x2055e7['x'],'y':_0x2055e7['out']['y']-_0x2055e7['y']});_0x2055e7[_0x2db96c(0x139)]={'x':_0x2055e7['x']+_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']+_0xf3593c['y']*_0x16372e},_0x2055e7['in']={'x':_0x2055e7['x']-_0xf3593c['x']*_0x16372e,'y':_0x2055e7['y']-_0xf3593c['y']*_0x16372e};}else _0x181438===_0x2db96c(0x146)&&M(_0x2055e7,_0x2db96c(0x139));return _0x2fe297;}function P(_0x8faea0,_0x4d05f0){const _0x587d9c=_0x5d75;var _0x474a43;let _0x68e57f=_0x8faea0[_0x587d9c(0x143)][_0x587d9c(0x154)](_0x33bfe9=>_0x33bfe9['id']===_0x4d05f0),_0x19db64=(_0x474a43=_0x68e57f==null?void 0x0:_0x68e57f[_0x587d9c(0x155)])==null?_0x587d9c(0x188):_0x474a43;return N(_0x8faea0,_0x4d05f0,_0x19db64===_0x587d9c(0x188)?_0x587d9c(0x146):_0x19db64===_0x587d9c(0x146)?'symmetric':_0x19db64===_0x587d9c(0x13f)?_0x587d9c(0x13b):_0x587d9c(0x188));}function F(_0x3530c9,_0x3e48d2,_0x2043a9){const _0x4a851f=_0x5d75;let _0x232366=y(_0x3530c9),_0x5e5d14=_0x232366['anchors'][_0x4a851f(0x154)](_0x34c602=>_0x34c602['id']===_0x3e48d2['anchorId']);if(!_0x5e5d14)return _0x232366;if(_0x3e48d2[_0x4a851f(0x172)]===_0x4a851f(0x163)){let _0x831642={'x':_0x2043a9['x']-_0x5e5d14['x'],'y':_0x2043a9['y']-_0x5e5d14['y']};return _0x5e5d14['x']=_0x2043a9['x'],_0x5e5d14['y']=_0x2043a9['y'],_0x5e5d14['in']&&(_0x5e5d14['in']={'x':_0x5e5d14['in']['x']+_0x831642['x'],'y':_0x5e5d14['in']['y']+_0x831642['y']}),_0x5e5d14[_0x4a851f(0x139)]&&(_0x5e5d14[_0x4a851f(0x139)]={'x':_0x5e5d14[_0x4a851f(0x139)]['x']+_0x831642['x'],'y':_0x5e5d14[_0x4a851f(0x139)]['y']+_0x831642['y']}),_0x232366;}return _0x5e5d14[_0x3e48d2['kind']]=_(_0x2043a9),_0x5e5d14[_0x4a851f(0x155)]==='corner'&&(_0x5e5d14['pointType']=_0x4a851f(0x13b)),M(_0x5e5d14,_0x3e48d2[_0x4a851f(0x172)]),_0x232366;}const I=1e-9;function L(_0x2563c6){const _0x12a095=_0x5d75;let _0x407f4f=Math[_0x12a095(0x16d)](_0x2563c6*0x2710)/0x2710;return Object['is'](_0x407f4f,-0x0)?'0':String(_0x407f4f);}function R(_0x6b4dcc){return L(_0x6b4dcc['x'])+'\x20'+L(_0x6b4dcc['y']);}function z(_0x1e0f2c,_0x2de331){return{'x':_0x1e0f2c['x']-_0x2de331['x'],'y':_0x1e0f2c['y']-_0x2de331['y']};}function B(_0xacfda9,_0x2e249b,_0x98a8a6,_0x3ace9c,_0x2d3f80){let _0x157773=0x1-_0x2d3f80;return{'x':_0x157773*_0x157773*_0x157773*_0xacfda9['x']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['x']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['x']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['x'],'y':_0x157773*_0x157773*_0x157773*_0xacfda9['y']+0x3*_0x157773*_0x157773*_0x2d3f80*_0x2e249b['y']+0x3*_0x157773*_0x2d3f80*_0x2d3f80*_0x98a8a6['y']+_0x2d3f80*_0x2d3f80*_0x2d3f80*_0x3ace9c['y']};}function V(_0x4f5ce8,_0xba8f6f,_0x5cc759,_0x43106a){const _0x1c5686=_0x5d75;let _0x2c581c=-_0x4f5ce8+0x3*_0xba8f6f-0x3*_0x5cc759+_0x43106a,_0xa4545c=0x3*_0x4f5ce8-0x6*_0xba8f6f+0x3*_0x5cc759,_0x2d2f6d=-0x3*_0x4f5ce8+0x3*_0xba8f6f,_0x2df6c3=[];if(Math[_0x1c5686(0x171)](_0x2c581c)<I){if(Math[_0x1c5686(0x171)](_0xa4545c)<I)return _0x2df6c3;let _0x5d7fd2=-_0x2d2f6d/(0x2*_0xa4545c);return _0x5d7fd2>0x0&&_0x5d7fd2<0x1&&_0x2df6c3[_0x1c5686(0x18d)](_0x5d7fd2),_0x2df6c3;}let _0x2173b7=_0xa4545c*_0xa4545c-0x3*_0x2c581c*_0x2d2f6d;if(_0x2173b7<0x0)return _0x2df6c3;let _0x16cc2e=Math[_0x1c5686(0x186)](Math[_0x1c5686(0x14a)](0x0,_0x2173b7)),_0x3f270f=(-_0xa4545c+_0x16cc2e)/(0x3*_0x2c581c),_0x3c4d7c=(-_0xa4545c-_0x16cc2e)/(0x3*_0x2c581c);return _0x3f270f>0x0&&_0x3f270f<0x1&&_0x2df6c3['push'](_0x3f270f),_0x3c4d7c>0x0&&_0x3c4d7c<0x1&&Math[_0x1c5686(0x171)](_0x3c4d7c-_0x3f270f)>I&&_0x2df6c3['push'](_0x3c4d7c),_0x2df6c3;}function H(_0x363c5d,_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336){const _0x4618cf=_0x5d75;_0x363c5d[_0x4618cf(0x18d)](_0x468aa2,_0xc68336),new Set([...V(_0x468aa2['x'],_0x37313d['x'],_0x2b50a2['x'],_0xc68336['x']),...V(_0x468aa2['y'],_0x37313d['y'],_0x2b50a2['y'],_0xc68336['y'])])[_0x4618cf(0x193)](_0x3f830d=>{const _0x12bb73=_0x4618cf;_0x363c5d[_0x12bb73(0x18d)](B(_0x468aa2,_0x37313d,_0x2b50a2,_0xc68336,_0x3f830d));});}function U(_0x442e04){const _0xbe0606=_0x5d75;let _0x350ec2=_0x442e04[_0xbe0606(0x143)];if(_0x350ec2[_0xbe0606(0x15b)]<=0x1)return _0x350ec2;let _0x2aed2d=[];for(let _0x396f42=0x1;_0x396f42<_0x350ec2[_0xbe0606(0x15b)];_0x396f42++){var _0x5e79a9,_0x2f4f9b;let _0x5ebdf1=_0x350ec2[_0x396f42-0x1],_0xe9b299=_0x350ec2[_0x396f42];H(_0x2aed2d,_0x5ebdf1,(_0x5e79a9=_0x5ebdf1['out'])==null?_0x5ebdf1:_0x5e79a9,(_0x2f4f9b=_0xe9b299['in'])==null?_0xe9b299:_0x2f4f9b,_0xe9b299);}if(_0x442e04[_0xbe0606(0x177)]&&_0x350ec2[_0xbe0606(0x15b)]>0x1){var _0x3a2839,_0x32de18;let _0x3b4a69=_0x350ec2[_0x350ec2[_0xbe0606(0x15b)]-0x1],_0x2d8f81=_0x350ec2[0x0];H(_0x2aed2d,_0x3b4a69,(_0x3a2839=_0x3b4a69[_0xbe0606(0x139)])==null?_0x3b4a69:_0x3a2839,(_0x32de18=_0x2d8f81['in'])==null?_0x2d8f81:_0x32de18,_0x2d8f81);}return _0x2aed2d;}function de(_0x4a97cb){const _0x2b4158=_0x5d75;let _0x4e941c=_0x4a97cb['points'];if(_0x4e941c[_0x2b4158(0x15b)]<=0x1)return _0x4e941c;let _0x57784e=[];for(let _0x576090=0x0;_0x576090<_0x4e941c[_0x2b4158(0x15b)]-0x1;_0x576090++){var _0xf30f9c,_0x4b5c5e;let _0x275902=_0x4e941c[_0x576090],_0x40e952=_0x4e941c[_0x576090+0x1],_0x248644=(_0xf30f9c=_0x4e941c[_0x576090-0x1])==null?_0x275902:_0xf30f9c,_0x434f63=(_0x4b5c5e=_0x4e941c[_0x576090+0x2])==null?_0x40e952:_0x4b5c5e;H(_0x57784e,_0x275902,{'x':_0x275902['x']+(_0x40e952['x']-_0x248644['x'])/0x6,'y':_0x275902['y']+(_0x40e952['y']-_0x248644['y'])/0x6},{'x':_0x40e952['x']-(_0x434f63['x']-_0x275902['x'])/0x6,'y':_0x40e952['y']-(_0x434f63['y']-_0x275902['y'])/0x6},_0x40e952);}return _0x57784e;}function fe(_0x9511fb){const _0x4ae3e7=_0x5d75;return _0x9511fb[_0x4ae3e7(0x172)]===_0x4ae3e7(0x195)?U(_0x9511fb):de(_0x9511fb);}function _0x1f0e(){const _0x3ccca4=['out','height','free','map','5280012gcHgel','width','symmetric','1307234iubbVe','string','Rect','anchors','__ink-preview-anchor__','top','smooth','OPERATION','none','_configService','max','onStarting','ink.host-adapter.service','add','_config','2383332VilSed','findIndex','_injector','ink-centerline-','ink.config','find','pointType','createCustomShape','default','color','fillColor','startIndex','length','pluginName','function','6405xMnsxe','disposeWithMe','1.0.0-alpha.7','version','norm','anchor','filter','toPrimitive','SolidLine','join','slice','end','beginInkMode','7111505pjiuRz','splice','round','ratio','points','getOwnPropertyDescriptor','abs','kind','315613ByEvnX','segmentIndex','left','call','closed','tolerance','hypot','registerAdapter','NoFill','opacity','distance','prototype','setConfig','type','start','right','indexOf','UNIVER_UNKNOWN','decorate','sqrt','4890NshZEP','corner','endIndex','get','min','object','push','1524416ZDxBmg','constructor','_adapters','#f54a45','symbol','forEach','createId','pen','packageName','defineProperty','tool','_commandService'];_0x1f0e=function(){return _0x3ccca4;};return _0x1f0e();}function W(_0x4abd06){let _0x31810a=Math['round'](_0x4abd06*0x2710)/0x2710;return Object['is'](_0x31810a,-0x0)?0x0:_0x31810a;}function G(_0x3aefeb){const _0x6e0444=_0x5d75;let _0xcf3dd2=fe(_0x3aefeb);if(_0xcf3dd2[_0x6e0444(0x15b)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x54267d=Math[_0x6e0444(0x18b)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x45fa62=>_0x45fa62['x'])),_0x4166b5=Math[_0x6e0444(0x18b)](..._0xcf3dd2['map'](_0x33a011=>_0x33a011['y'])),_0x233859=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x29c37e=>_0x29c37e['x'])),_0x132a2a=Math[_0x6e0444(0x14a)](..._0xcf3dd2[_0x6e0444(0x13c)](_0x4e5cbd=>_0x4e5cbd['y']));return{'left':W(_0x54267d),'top':W(_0x4166b5),'width':W(Math['max'](0x1,_0x233859-_0x54267d)),'height':W(Math['max'](0x1,_0x132a2a-_0x4166b5))};}function pe(_0x334233,_0x3d41e9){const _0x3dfa26=_0x5d75;let _0x2648ae=_0x334233[_0x3dfa26(0x143)];if(_0x2648ae[_0x3dfa26(0x15b)]===0x0)return'';let _0x598b18=['M\x20'+R(z(_0x2648ae[0x0],_0x3d41e9))];for(let _0x4bce92=0x1;_0x4bce92<_0x2648ae[_0x3dfa26(0x15b)];_0x4bce92++){var _0x56bf23,_0x2d1a27;let _0x3b9355=_0x2648ae[_0x4bce92-0x1],_0x5b049c=_0x2648ae[_0x4bce92],_0x1f109d=(_0x56bf23=_0x3b9355[_0x3dfa26(0x139)])==null?_0x3b9355:_0x56bf23,_0x40e6d3=(_0x2d1a27=_0x5b049c['in'])==null?_0x5b049c:_0x2d1a27;_0x598b18['push']('C\x20'+R(z(_0x1f109d,_0x3d41e9))+'\x20'+R(z(_0x40e6d3,_0x3d41e9))+'\x20'+R(z(_0x5b049c,_0x3d41e9)));}if(_0x334233[_0x3dfa26(0x177)]&&_0x2648ae[_0x3dfa26(0x15b)]>0x1){var _0x561711,_0x1457c5;let _0x258a7c=_0x2648ae[_0x2648ae[_0x3dfa26(0x15b)]-0x1],_0x216813=_0x2648ae[0x0],_0xe8667c=(_0x561711=_0x258a7c['out'])==null?_0x258a7c:_0x561711,_0x37a844=(_0x1457c5=_0x216813['in'])==null?_0x216813:_0x1457c5;_0x598b18['push']('C\x20'+R(z(_0xe8667c,_0x3d41e9))+'\x20'+R(z(_0x37a844,_0x3d41e9))+'\x20'+R(z(_0x216813,_0x3d41e9))),_0x598b18[_0x3dfa26(0x18d)]('Z');}return _0x598b18[_0x3dfa26(0x167)]('\x20');}function me(_0x5b09e9,_0x4f66d2){const _0x33c9b4=_0x5d75;let _0x1db0de=_0x5b09e9[_0x33c9b4(0x16f)][_0x33c9b4(0x13c)](_0x43b973=>z(_0x43b973,_0x4f66d2));if(_0x1db0de['length']===0x0)return'';if(_0x1db0de[_0x33c9b4(0x15b)]===0x1)return'M\x20'+R(_0x1db0de[0x0]);let _0x3624b6=['M\x20'+R(_0x1db0de[0x0])];for(let _0x792733=0x0;_0x792733<_0x1db0de[_0x33c9b4(0x15b)]-0x1;_0x792733++){var _0x507bf8,_0x594f92;let _0x5885df=_0x1db0de[_0x792733],_0x25455a=_0x1db0de[_0x792733+0x1],_0x48cbfa=(_0x507bf8=_0x1db0de[_0x792733-0x1])==null?_0x5885df:_0x507bf8,_0x3c13b7=(_0x594f92=_0x1db0de[_0x792733+0x2])==null?_0x25455a:_0x594f92,_0x1e02f3={'x':_0x5885df['x']+(_0x25455a['x']-_0x48cbfa['x'])/0x6,'y':_0x5885df['y']+(_0x25455a['y']-_0x48cbfa['y'])/0x6},_0x45d4ba={'x':_0x25455a['x']-(_0x3c13b7['x']-_0x5885df['x'])/0x6,'y':_0x25455a['y']-(_0x3c13b7['y']-_0x5885df['y'])/0x6};_0x3624b6[_0x33c9b4(0x18d)]('C\x20'+R(_0x1e02f3)+'\x20'+R(_0x45d4ba)+'\x20'+R(_0x25455a));}return _0x3624b6[_0x33c9b4(0x167)]('\x20');}function he(_0x141417,_0x520a99){const _0x16b282=_0x5d75;return _0x141417[_0x16b282(0x172)]===_0x16b282(0x195)?pe(_0x141417,_0x520a99):me(_0x141417,_0x520a99);}function ge(_0x1a6011,_0x3afb42){const _0x3f7058=_0x5d75;return _0x3afb42!=null&&_0x3afb42[_0x3f7058(0x158)]?_0x3afb42[_0x3f7058(0x158)]:_0x1a6011['kind']===_0x3f7058(0x195)?_0x3f7058(0x191):_0x1a6011[_0x3f7058(0x158)];}function _e(_0x366021,_0x28ed85){const _0x695865=_0x5d75;return(_0x28ed85==null?void 0x0:_0x28ed85[_0x695865(0x13e)])===void 0x0?_0x366021[_0x695865(0x172)]===_0x695865(0x195)?0x2:_0x366021[_0x695865(0x13e)]:_0x28ed85[_0x695865(0x13e)];}function ve(_0x2b8123,_0x4340cf){const _0x4bc57d=_0x5d75;return(_0x4340cf==null?void 0x0:_0x4340cf[_0x4bc57d(0x17c)])===void 0x0?_0x2b8123[_0x4bc57d(0x172)]===_0x4bc57d(0x195)?void 0x0:_0x2b8123[_0x4bc57d(0x17c)]:_0x4340cf['opacity'];}function _0x5d75(_0x1bc714,_0x4d42ab){_0x1bc714=_0x1bc714-0x136;const _0x1f0e4c=_0x1f0e();let _0x5d75b0=_0x1f0e4c[_0x1bc714];return _0x5d75b0;}function ye(_0x7bb899,_0x2db820){const _0x470b01=_0x5d75;let _0x1e3437=G(_0x7bb899),_0x12d0b4=he(_0x7bb899,{'x':_0x1e3437['left'],'y':_0x1e3437[_0x470b01(0x145)]}),_0x15a7a1=_0x7bb899[_0x470b01(0x172)]===_0x470b01(0x195)&&_0x7bb899[_0x470b01(0x177)],_0xbd4d92=_0x2db820==null?void 0x0:_0x2db820[_0x470b01(0x159)];return{'shapeType':_0x2fc13d[_0x470b01(0x142)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1e3437[_0x470b01(0x13e)],'h':_0x1e3437[_0x470b01(0x13a)],'fill':_0x15a7a1?_0x470b01(0x162):_0x470b01(0x148),'stroke':!0x0,'data':_0x12d0b4,'dataArray':be(_0x7bb899,{'x':_0x1e3437[_0x470b01(0x175)],'y':_0x1e3437['top']})}]},'fill':_0x15a7a1&&_0xbd4d92?{'color':_0xbd4d92,'fillType':_0x157d04['SolidFill']}:{'fillType':_0x157d04[_0x470b01(0x17b)]},'stroke':{'color':ge(_0x7bb899,_0x2db820),'width':_e(_0x7bb899,_0x2db820),'opacity':ve(_0x7bb899,_0x2db820),'lineStrokeType':_0x41a350[_0x470b01(0x166)],'capType':_0x363052['Round'],'lineJoinType':_0x56486c['Round']}};}function K(_0x766837,_0x43fad4){return{'x':_0x766837['x']-_0x43fad4['x'],'y':_0x766837['y']-_0x43fad4['y']};}function be(_0x143aee,_0x4d1d82){const _0x22ba30=_0x5d75;if(_0x143aee[_0x22ba30(0x172)]===_0x22ba30(0x195)){let _0x179f00=_0x143aee[_0x22ba30(0x143)];if(_0x179f00[_0x22ba30(0x15b)]===0x0)return[];let _0x4fb16b=K(_0x179f00[0x0],_0x4d1d82),_0x23f539=[{'command':'M','points':[_0x4fb16b['x'],_0x4fb16b['y']]}];for(let _0x12c749=0x1;_0x12c749<_0x179f00[_0x22ba30(0x15b)];_0x12c749++){var _0x2bb2f3,_0xef5a00;let _0x23fd86=_0x179f00[_0x12c749-0x1],_0x54c1b6=_0x179f00[_0x12c749],_0x296aa1=K((_0x2bb2f3=_0x23fd86[_0x22ba30(0x139)])==null?_0x23fd86:_0x2bb2f3,_0x4d1d82),_0x2242ed=K((_0xef5a00=_0x54c1b6['in'])==null?_0x54c1b6:_0xef5a00,_0x4d1d82),_0x23db98=K(_0x54c1b6,_0x4d1d82);_0x23f539['push']({'command':'C','points':[_0x296aa1['x'],_0x296aa1['y'],_0x2242ed['x'],_0x2242ed['y'],_0x23db98['x'],_0x23db98['y']]});}if(_0x143aee[_0x22ba30(0x177)]&&_0x179f00['length']>0x1){var _0x2656b6,_0x4b44e1;let _0x29f6bd=_0x179f00[_0x179f00[_0x22ba30(0x15b)]-0x1],_0x1168d2=_0x179f00[0x0],_0x3af9f5=K((_0x2656b6=_0x29f6bd[_0x22ba30(0x139)])==null?_0x29f6bd:_0x2656b6,_0x4d1d82),_0x120745=K((_0x4b44e1=_0x1168d2['in'])==null?_0x1168d2:_0x4b44e1,_0x4d1d82),_0x1587f4=K(_0x1168d2,_0x4d1d82);_0x23f539[_0x22ba30(0x18d)]({'command':'C','points':[_0x3af9f5['x'],_0x3af9f5['y'],_0x120745['x'],_0x120745['y'],_0x1587f4['x'],_0x1587f4['y']]}),_0x23f539[_0x22ba30(0x18d)]({'command':'z','points':[]});}return _0x23f539;}let _0x314f03=_0x143aee['points'][_0x22ba30(0x13c)](_0x5d6b03=>K(_0x5d6b03,_0x4d1d82));if(_0x314f03[_0x22ba30(0x15b)]===0x0)return[];let _0x5528aa=[{'command':'M','points':[_0x314f03[0x0]['x'],_0x314f03[0x0]['y']]}];for(let _0x4db741=0x0;_0x4db741<_0x314f03[_0x22ba30(0x15b)]-0x1;_0x4db741++){var _0x1cce6c,_0x3668f2;let _0x29cc40=_0x314f03[_0x4db741],_0x37cdc5=_0x314f03[_0x4db741+0x1],_0x35d8db=(_0x1cce6c=_0x314f03[_0x4db741-0x1])==null?_0x29cc40:_0x1cce6c,_0x58235c=(_0x3668f2=_0x314f03[_0x4db741+0x2])==null?_0x37cdc5:_0x3668f2,_0x332416={'x':_0x29cc40['x']+(_0x37cdc5['x']-_0x35d8db['x'])/0x6,'y':_0x29cc40['y']+(_0x37cdc5['y']-_0x35d8db['y'])/0x6},_0x1ac2ed={'x':_0x37cdc5['x']-(_0x58235c['x']-_0x29cc40['x'])/0x6,'y':_0x37cdc5['y']-(_0x58235c['y']-_0x29cc40['y'])/0x6};_0x5528aa[_0x22ba30(0x18d)]({'command':'C','points':[_0x332416['x'],_0x332416['y'],_0x1ac2ed['x'],_0x1ac2ed['y'],_0x37cdc5['x'],_0x37cdc5['y']]});}return _0x5528aa;}function xe(_0x588b9a){const _0x8e653=_0x5d75;var _0x1f1de2;let {model:_0x1ea07a,sourceModel:_0xecba1=_0x1ea07a,style:_0x3770c8}=_0x588b9a,_0x2078d1=(_0x1f1de2=_0x588b9a[_0x8e653(0x137)])==null?_0x1ea07a[_0x8e653(0x172)]:_0x1f1de2,_0xc349b6=G(_0x1ea07a),_0x4335c9=_0x1ea07a['kind']===_0x8e653(0x195)&&_0x2078d1!==_0x8e653(0x195)?_0x1ea07a:void 0x0;return{'transform':{..._0xc349b6,'rotation':0x0},'shapeData':ye(_0x1ea07a,_0x3770c8),'ink':{'version':0x1,'tool':_0x2078d1,'sourceModel':_0xecba1,..._0x4335c9?{'editModel':_0x4335c9}:{},'normalizedBounds':_0xc349b6}};}var Se='@univerjs-pro/ink',Ce=_0xd9ea97(0x160);function q(_0xf0db8e){'@babel/helpers - typeof';const _0x5d8d4e=_0xd9ea97;return q=typeof Symbol==_0x5d8d4e(0x15d)&&typeof Symbol['iterator']==_0x5d8d4e(0x192)?function(_0x24b45b){return typeof _0x24b45b;}:function(_0x26e7cd){const _0xbf86d7=_0x5d8d4e;return _0x26e7cd&&typeof Symbol==_0xbf86d7(0x15d)&&_0x26e7cd[_0xbf86d7(0x18f)]===Symbol&&_0x26e7cd!==Symbol[_0xbf86d7(0x17e)]?_0xbf86d7(0x192):typeof _0x26e7cd;},q(_0xf0db8e);}function we(_0x371f38,_0x5a98fe){const _0x118f7f=_0xd9ea97;if(q(_0x371f38)!=_0x118f7f(0x18c)||!_0x371f38)return _0x371f38;var _0x5cef0e=_0x371f38[Symbol[_0x118f7f(0x165)]];if(_0x5cef0e!==void 0x0){var _0x4c12fa=_0x5cef0e[_0x118f7f(0x176)](_0x371f38,_0x5a98fe||_0x118f7f(0x157));if(q(_0x4c12fa)!='object')return _0x4c12fa;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5a98fe===_0x118f7f(0x141)?String:Number)(_0x371f38);}function J(_0x207d73){const _0x1e708a=_0xd9ea97;var _0x51aab3=we(_0x207d73,_0x1e708a(0x141));return q(_0x51aab3)==_0x1e708a(0x192)?_0x51aab3:_0x51aab3+'';}function Y(_0x519233,_0x36e28c,_0x4da7f7){const _0x56af46=_0xd9ea97;return(_0x36e28c=J(_0x36e28c))in _0x519233?Object[_0x56af46(0x136)](_0x519233,_0x36e28c,{'value':_0x4da7f7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x519233[_0x36e28c]=_0x4da7f7,_0x519233;}const X=_0x1ab48e(_0xd9ea97(0x14c));var Te=class{constructor(){const _0x3e1613=_0xd9ea97;Y(this,_0x3e1613(0x190),[]);}[_0xd9ea97(0x17a)](_0x28cc61){const _0x152a73=_0xd9ea97;return this[_0x152a73(0x190)][_0x152a73(0x18d)](_0x28cc61),_0x29412f(()=>{const _0x565455=_0x152a73;let _0xaa94e7=this[_0x565455(0x190)][_0x565455(0x183)](_0x28cc61);_0xaa94e7>=0x0&&this['_adapters'][_0x565455(0x16c)](_0xaa94e7,0x1);});}['beginInkMode'](_0x4f93b2){const _0x322df5=_0xd9ea97;for(let _0x47f994 of this[_0x322df5(0x190)])if(_0x47f994[_0x322df5(0x16a)](_0x4f93b2))return!0x0;return!0x1;}async[_0xd9ea97(0x156)](_0x4cfe8e){const _0xa467ed=_0xd9ea97;for(let _0x4a6b52 of this[_0xa467ed(0x190)])if(_0x4a6b52['createCustomShape']&&await _0x4a6b52['createCustomShape'](_0x4cfe8e))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x3450b2[_0xd9ea97(0x147)],'handler':(_0x1273c6,_0x1aed1d)=>_0x1aed1d?_0x1273c6[_0xd9ea97(0x18a)](X)[_0xd9ea97(0x16a)](_0x1aed1d):!0x1},Z={};function Q(_0x55af48,_0x31d419){return function(_0x43e9e7,_0x483b20){_0x31d419(_0x43e9e7,_0x483b20,_0x55af48);};}function De(_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb){const _0x1e66c2=_0xd9ea97;var _0x351722=arguments[_0x1e66c2(0x15b)],_0x269040=_0x351722<0x3?_0x433ad3:_0x4819fb===null?_0x4819fb=Object[_0x1e66c2(0x170)](_0x433ad3,_0x2f01f1):_0x4819fb,_0x543774;if(typeof Reflect=='object'&&typeof Reflect[_0x1e66c2(0x185)]=='function')_0x269040=Reflect[_0x1e66c2(0x185)](_0x263be4,_0x433ad3,_0x2f01f1,_0x4819fb);else{for(var _0x500a5b=_0x263be4['length']-0x1;_0x500a5b>=0x0;_0x500a5b--)(_0x543774=_0x263be4[_0x500a5b])&&(_0x269040=(_0x351722<0x3?_0x543774(_0x269040):_0x351722>0x3?_0x543774(_0x433ad3,_0x2f01f1,_0x269040):_0x543774(_0x433ad3,_0x2f01f1))||_0x269040);}return _0x351722>0x3&&_0x269040&&Object['defineProperty'](_0x433ad3,_0x2f01f1,_0x269040),_0x269040;}let $=class extends _0x205aab{constructor(_0x38ea78=Z,_0x794021,_0x6333bb,_0xe202d0){const _0xeafa4d=_0xd9ea97;super(),this[_0xeafa4d(0x14e)]=_0x38ea78,this['_injector']=_0x794021,this[_0xeafa4d(0x138)]=_0x6333bb,this[_0xeafa4d(0x149)]=_0xe202d0;let {..._0x581cc3}=_0x1239fb({},Z,this['_config']);this[_0xeafa4d(0x149)][_0xeafa4d(0x17f)](_0xeafa4d(0x153),_0x581cc3);}[_0xd9ea97(0x14b)](){const _0x191e72=_0xd9ea97;[[X,{'useClass':Te}]]['forEach'](_0x5cd6c4=>this[_0x191e72(0x151)][_0x191e72(0x14d)](_0x5cd6c4)),this[_0x191e72(0x15f)](this['_commandService']['registerCommand'](Ee));}};Y($,_0xd9ea97(0x15c),'UNIVER_INK_PLUGIN'),Y($,_0xd9ea97(0x196),Se),Y($,_0xd9ea97(0x161),Ce),Y($,_0xd9ea97(0x180),_0x42f687[_0xd9ea97(0x184)]),$=De([_0xbc0f6e(_0x42d00b),Q(0x1,_0x4e3a63(_0x5500c4)),Q(0x2,_0x16de20),Q(0x3,_0x3c718d)],$);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
|
-
|
|
1
|
+
(function(_0x58baac,_0x2b1add){const _0x51ab4e=_0x2bff,_0x2e72b9=_0x58baac();while(!![]){try{const _0xe4fdab=-parseInt(_0x51ab4e(0x213))/0x1+parseInt(_0x51ab4e(0x202))/0x2+-parseInt(_0x51ab4e(0x1d5))/0x3+-parseInt(_0x51ab4e(0x1f2))/0x4*(parseInt(_0x51ab4e(0x1d4))/0x5)+-parseInt(_0x51ab4e(0x212))/0x6+-parseInt(_0x51ab4e(0x207))/0x7*(parseInt(_0x51ab4e(0x1cb))/0x8)+parseInt(_0x51ab4e(0x211))/0x9*(parseInt(_0x51ab4e(0x1ed))/0xa);if(_0xe4fdab===_0x2b1add)break;else _0x2e72b9['push'](_0x2e72b9['shift']());}catch(_0x27be6a){_0x2e72b9['push'](_0x2e72b9['shift']());}}}(_0x67f2,0x5f8c4),function(_0x6c72c0,_0x25c49c){const _0x20cd4b=_0x2bff;typeof exports==_0x20cd4b(0x1ff)&&typeof module<'u'?_0x25c49c(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x20cd4b(0x210)&&define[_0x20cd4b(0x1e9)]?define(['exports',_0x20cd4b(0x1e2),_0x20cd4b(0x1fb),_0x20cd4b(0x1ce),_0x20cd4b(0x1dd),_0x20cd4b(0x20e)],_0x25c49c):(_0x6c72c0=typeof globalThis<'u'?globalThis:_0x6c72c0||self,_0x25c49c(_0x6c72c0['UniverProInkFacade']={},_0x6c72c0[_0x20cd4b(0x1d9)],_0x6c72c0[_0x20cd4b(0x1ec)],_0x6c72c0[_0x20cd4b(0x1fd)],_0x6c72c0['UniverCore'],_0x6c72c0[_0x20cd4b(0x1fc)]));}(this,function(_0x2ed569,_0x35ccdf,_0x379441,_0x3f9cc9,_0x428216,_0x4e125d){const _0x290b95=_0x2bff;Object[_0x290b95(0x1fe)](_0x2ed569,Symbol[_0x290b95(0x204)],{'value':_0x290b95(0x1e7)});var _0x10c449=class extends _0x379441['FBoard']{[_0x290b95(0x1f7)](_0x383ff1){const _0x374362=_0x290b95;let _0x55f21=_0xd95bc2(_0x383ff1);return _0x55f21&&this[_0x374362(0x20c)](_0x55f21,{'insertIndex':_0x383ff1[_0x374362(0x20d)]})?_0x55f21:null;}[_0x290b95(0x1f0)](){const _0x19bb4e=_0x290b95;return this[_0x19bb4e(0x1d8)]({'elementType':_0x35ccdf[_0x19bb4e(0x1d1)]['Shape'],'includeHidden':!0x0,'includeLocked':!0x0})[_0x19bb4e(0x201)](_0x5af837);}};function _0xd95bc2(_0x5060e2,_0x32ec46){const _0x18d31f=_0x290b95;var _0x5bc9e0,_0x316fd4,_0x5620d6;if(!_0x25af0b(_0x5060e2['model'])||_0x5060e2[_0x18d31f(0x1eb)]!==void 0x0&&!_0x25af0b(_0x5060e2['sourceModel'])||!_0x117a12(_0x5060e2[_0x18d31f(0x1ea)]))return null;let _0x213694=(_0x5bc9e0=_0x5060e2['parentId'])==null?_0x32ec46==null?void 0x0:_0x32ec46[_0x18d31f(0x200)]:_0x5bc9e0,_0x3e4409=_0x428216[_0x18d31f(0x1f9)]['deepClone'](_0x5060e2[_0x18d31f(0x1e3)]),_0x408446=(0x0,_0x3f9cc9['buildInkCustomShapePayload'])({'model':_0x3e4409,'style':_0x5060e2['style'],'tool':_0x5060e2[_0x18d31f(0x1e4)],'sourceModel':_0x5060e2[_0x18d31f(0x1eb)]?_0x428216[_0x18d31f(0x1f9)][_0x18d31f(0x1f1)](_0x5060e2[_0x18d31f(0x1eb)]):_0x3e4409}),_0x5d3b6b=_0x24b0c2(_0x32ec46==null?void 0x0:_0x32ec46[_0x18d31f(0x1e1)]);return{'id':(_0x316fd4=(_0x5620d6=_0x32ec46==null?void 0x0:_0x32ec46['id'])==null?_0x5060e2['id']:_0x5620d6)==null?(0x0,_0x428216['generateRandomId'])(0x6):_0x316fd4,'type':_0x35ccdf['BoardElementType'][_0x18d31f(0x1f4)],'transform':_0x408446[_0x18d31f(0x1f6)],'shapeData':_0x408446[_0x18d31f(0x1e6)],'parentId':_0x213694==null?void 0x0:_0x213694,'laneId':_0x5060e2[_0x18d31f(0x1dc)]===void 0x0?_0x32ec46==null?void 0x0:_0x32ec46['laneId']:_0x5060e2['laneId'],'custom':{..._0x5d3b6b,'ink':_0x408446[_0x18d31f(0x1ee)]}};}function _0x3f1efb(_0x50db06){const _0x55ecc7=_0x290b95;return Number[_0x55ecc7(0x208)](_0x50db06['x'])&&Number[_0x55ecc7(0x208)](_0x50db06['y']);}function _0x25af0b(_0x14c74c){const _0x3fec89=_0x290b95;if(_0x14c74c[_0x3fec89(0x20b)]==='pen'){let _0x1a149f=new Set();return _0x14c74c['anchors'][_0x3fec89(0x1cd)]>=(_0x14c74c[_0x3fec89(0x1d6)]?0x3:0x2)&&_0x14c74c[_0x3fec89(0x1cc)]['every'](_0x221380=>{const _0x362372=_0x3fec89;let _0x4b2162=_0x221380['id'][_0x362372(0x1e8)]()[_0x362372(0x1cd)]>0x0&&!_0x1a149f[_0x362372(0x20a)](_0x221380['id'])&&_0x3f1efb(_0x221380)&&(!_0x221380['in']||_0x3f1efb(_0x221380['in']))&&(!_0x221380[_0x362372(0x20f)]||_0x3f1efb(_0x221380['out']));return _0x1a149f[_0x362372(0x1f3)](_0x221380['id']),_0x4b2162;});}return _0x14c74c[_0x3fec89(0x206)]['length']>=0x2&&_0x14c74c[_0x3fec89(0x206)]['every'](_0x1800a0=>_0x3f1efb(_0x1800a0)&&Number[_0x3fec89(0x208)](_0x1800a0['t'])&&(_0x1800a0[_0x3fec89(0x1d0)]===void 0x0||Number['isFinite'](_0x1800a0[_0x3fec89(0x1d0)])))&&Number[_0x3fec89(0x208)](_0x14c74c[_0x3fec89(0x1d7)])&&_0x14c74c[_0x3fec89(0x1d7)]>0x0&&Number[_0x3fec89(0x208)](_0x14c74c['opacity'])&&_0x14c74c[_0x3fec89(0x1e0)]>=0x0&&_0x14c74c['opacity']<=0x1;}function _0x117a12(_0x28bab3){const _0x55d41f=_0x290b95;return _0x28bab3===void 0x0||(_0x28bab3[_0x55d41f(0x1d7)]===void 0x0||Number[_0x55d41f(0x208)](_0x28bab3[_0x55d41f(0x1d7)])&&_0x28bab3[_0x55d41f(0x1d7)]>0x0)&&(_0x28bab3[_0x55d41f(0x1e0)]===void 0x0||Number[_0x55d41f(0x208)](_0x28bab3[_0x55d41f(0x1e0)])&&_0x28bab3[_0x55d41f(0x1e0)]>=0x0&&_0x28bab3[_0x55d41f(0x1e0)]<=0x1);}function _0x24b0c2(_0x63a2af){const _0x2b3385=_0x290b95;return _0x63a2af&&typeof _0x63a2af==_0x2b3385(0x1ff)&&!Array['isArray'](_0x63a2af)?_0x63a2af:{};}function _0x399e8d(_0x2562fc){const _0x301c88=_0x290b95;let _0x255544=_0x24b0c2(_0x2562fc['custom'])[_0x301c88(0x1ee)];if(!_0x255544||typeof _0x255544!=_0x301c88(0x1ff)||Array[_0x301c88(0x209)](_0x255544))return null;let _0x437c0e=_0x255544;return _0x437c0e[_0x301c88(0x1da)]===0x1&&_0x437c0e['sourceModel']&&typeof _0x437c0e[_0x301c88(0x1eb)]==_0x301c88(0x1ff)?_0x437c0e:null;}function _0x5af837(_0x2bd9a4){const _0x1ea939=_0x290b95;return _0x2bd9a4[_0x1ea939(0x205)]===_0x35ccdf[_0x1ea939(0x1d1)][_0x1ea939(0x1f4)]&&!!_0x399e8d(_0x2bd9a4);}_0x379441['FBoard'][_0x290b95(0x1d2)](_0x10c449);let _0xd94c7b={'Pen':_0x290b95(0x1cf),'Brush':_0x290b95(0x1df),'Highlighter':_0x290b95(0x1db)},_0x415266={'Corner':_0x290b95(0x1de),'Smooth':_0x290b95(0x1d3),'Symmetric':_0x290b95(0x1f8),'Free':'free'},_0x55071c={'Anchor':_0x290b95(0x1e5),'In':'in','Out':_0x290b95(0x20f)};var _0x34046a=class extends _0x4e125d[_0x290b95(0x203)]{get[_0x290b95(0x1fa)](){return _0xd94c7b;}get[_0x290b95(0x1f5)](){return _0x415266;}get['BoardInkHandleKind'](){return _0x55071c;}};_0x4e125d['FEnum'][_0x290b95(0x1d2)](_0x34046a),_0x2ed569[_0x290b95(0x1ef)]=_0x55071c,_0x2ed569[_0x290b95(0x1f5)]=_0x415266,_0x2ed569[_0x290b95(0x1fa)]=_0xd94c7b;}));function _0x2bff(_0x2f8cd7,_0x3cd1fa){_0x2f8cd7=_0x2f8cd7-0x1cb;const _0x67f28a=_0x67f2();let _0x2bff7a=_0x67f28a[_0x2f8cd7];return _0x2bff7a;}function _0x67f2(){const _0x5d497c=['sourceModel','UniverProBoardsFacade','10718210egmcMS','ink','BoardInkHandleKind','getInks','deepClone','8WcvThX','add','Shape','BoardInkPointType','transform','insertInk','symmetric','Tools','BoardInkTool','@univerjs-pro/boards/facade','UniverCoreFacade','UniverProInk','defineProperty','object','parentId','filter','589530hakuVG','FEnum','toStringTag','type','points','161FROptO','isFinite','isArray','has','kind','addElement','insertIndex','@univerjs/core/facade','out','function','18KKaQHa','4132038vBEyAk','293218OMlDJB','144184xOcExh','anchors','length','@univerjs-pro/ink','pen','pressure','BoardElementType','extend','smooth','997075EeRqIF','755379kjFmUm','closed','width','findElements','UniverProBoards','version','highlighter','laneId','@univerjs/core','corner','brush','opacity','custom','@univerjs-pro/boards','model','tool','anchor','shapeData','Module','trim','amd','style'];_0x67f2=function(){return _0x5d497c;};return _0x67f2();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5227(_0x181a5c,_0x27dcf1){_0x181a5c=_0x181a5c-0x10f;const _0x502304=_0x5023();let _0x52278d=_0x502304[_0x181a5c];return _0x52278d;}function _0x5023(){const _0x1b4d51=['@univerjs-pro/ink','segmentIndex','kind','anchorId','onStarting','beginInkMode','slice','closed','distance','Module','object','188yhspPF','UniverInkPlugin','corner','toStringTag','UniverInstanceType','_configService','pluginName','__ink-preview-anchor__','9wjjXbg','push','isInkPenHandleVisible','fillColor','setInkPenAnchorPointType','ink.host-adapter.service','@univerjs/core','9437010IGmYxq','join','map','end','length','norm','call','filter','722552DFGToO','startIndex','prototype','OPERATION','7QutKSr','symbol','amd','UNIVER_UNKNOWN','indexOf','out','findClosestInkPenSegment','abs','start','Round','770hHdWjq','444671SfOCce','toDisposable','merge','type','exports','splice','defineProperty','ShapeLineCapEnum','points','ShapeTypeEnum','width','packageName','forEach','IInkHostAdapterService','max','hypot','height','ICommandService','createId','registerAdapter','cycleInkPenAnchorPointType','UNIVER_INK_PLUGIN','46830tqMYzW','min','Inject','_commandService','_injector','anchor','decorate','free','@univerjs-pro/engine-shape','left','buildInkCustomShapePayload','Rect','none','UniverLicensePlugin','ShapeLineTypeEnum','1.0.0-alpha.5','#f54a45','ShapeFillEnum','version','6548fSicGV','Injector','smooth','color','registerCommand','setConfig','10608tfbXLA','pointType','getInkModelBounds','opacity','toPrimitive','UniverCore','CommandType','round','sqrt','symmetric','createCustomShape','endIndex','top','ink-centerline-','function','UniverProInk','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','find','UniverProEngineShape','@univerjs-pro/license','_config','createIdentifier','2351330Iqskjm','findIndex','ShapeLineJoinEnum','_adapters','pen','anchors','moveInkPenAnchorPoint'];_0x5023=function(){return _0x1b4d51;};return _0x5023();}(function(_0x3a6ccf,_0x17d4a4){const _0x1d5682=_0x5227,_0x40133b=_0x3a6ccf();while(!![]){try{const _0x7d0cfe=-parseInt(_0x1d5682(0x150))/0x1+-parseInt(_0x1d5682(0x12a))/0x2*(-parseInt(_0x1d5682(0x17f))/0x3)+parseInt(_0x1d5682(0x179))/0x4*(-parseInt(_0x1d5682(0x14f))/0x5)+-parseInt(_0x1d5682(0x166))/0x6+-parseInt(_0x1d5682(0x145))/0x7*(-parseInt(_0x1d5682(0x141))/0x8)+-parseInt(_0x1d5682(0x132))/0x9*(parseInt(_0x1d5682(0x118))/0xa)+parseInt(_0x1d5682(0x139))/0xb;if(_0x7d0cfe===_0x17d4a4)break;else _0x40133b['push'](_0x40133b['shift']());}catch(_0x4f87fb){_0x40133b['push'](_0x40133b['shift']());}}}(_0x5023,0x533aa),function(_0x4ecaf3,_0xa6743f){const _0xa9054f=_0x5227;typeof exports==_0xa9054f(0x129)&&typeof module<'u'?_0xa6743f(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0xa9054f(0x110)&&define[_0xa9054f(0x147)]?define([_0xa9054f(0x154),_0xa9054f(0x16e),_0xa9054f(0x115),_0xa9054f(0x138)],_0xa6743f):(_0x4ecaf3=typeof globalThis<'u'?globalThis:_0x4ecaf3||self,_0xa6743f(_0x4ecaf3[_0xa9054f(0x111)]={},_0x4ecaf3[_0xa9054f(0x114)],_0x4ecaf3['UniverProLicense'],_0x4ecaf3[_0xa9054f(0x184)]));}(this,function(_0x2ae93c,_0x383e6d,_0xb63ae8,_0x3c4216){const _0x23f9ff=_0x5227;Object[_0x23f9ff(0x156)](_0x2ae93c,Symbol[_0x23f9ff(0x12d)],{'value':_0x23f9ff(0x128)});let _0x12269a=0.0001;function _0x11da20(_0x5a8ede){return{'x':_0x5a8ede['x'],'y':_0x5a8ede['y']};}function _0x1cd352(_0x515f7f){const _0x2fdec6=_0x23f9ff;return{..._0x515f7f,'in':_0x515f7f['in']?_0x11da20(_0x515f7f['in']):void 0x0,'out':_0x515f7f[_0x2fdec6(0x14a)]?_0x11da20(_0x515f7f[_0x2fdec6(0x14a)]):void 0x0};}function _0x2d6319(_0x44be13){const _0x1bc5d3=_0x23f9ff;return{'kind':_0x1bc5d3(0x11c),'closed':_0x44be13[_0x1bc5d3(0x126)],'anchors':_0x44be13[_0x1bc5d3(0x11d)][_0x1bc5d3(0x13b)](_0x1cd352)};}function _0x5bd287(_0x2c51a3,_0x14051b,_0x4b03ad){return{'x':_0x2c51a3['x']+(_0x14051b['x']-_0x2c51a3['x'])*_0x4b03ad,'y':_0x2c51a3['y']+(_0x14051b['y']-_0x2c51a3['y'])*_0x4b03ad};}function _0x4a4a5a(_0x290928,_0x17f60d){return Math['hypot'](_0x290928['x']-_0x17f60d['x'],_0x290928['y']-_0x17f60d['y']);}function _0x56a257(_0x8fc788){const _0x5a293d=_0x23f9ff;let _0x12c483=Math[_0x5a293d(0x15f)](_0x8fc788['x'],_0x8fc788['y']);return _0x12c483<_0x12269a?{'x':0x1,'y':0x0}:{'x':_0x8fc788['x']/_0x12c483,'y':_0x8fc788['y']/_0x12c483};}function _0x2830c7(_0x135542,_0x2752b,_0x410eb2=_0x4a4a5a(_0x135542,_0x2752b)){let _0x4f6e87=_0x56a257({'x':_0x135542['x']-_0x2752b['x'],'y':_0x135542['y']-_0x2752b['y']});return{'x':_0x135542['x']+_0x4f6e87['x']*_0x410eb2,'y':_0x135542['y']+_0x4f6e87['y']*_0x410eb2};}function _0xd81a24(_0x4fe92b,_0x4f130d){const _0x1ccc72=_0x23f9ff;let {anchors:_0x5ddeae}=_0x4fe92b;return _0x5ddeae['length']<0x2||_0x4f130d<0x0?null:_0x4f130d<_0x5ddeae['length']-0x1?{'startIndex':_0x4f130d,'endIndex':_0x4f130d+0x1,'start':_0x5ddeae[_0x4f130d],'end':_0x5ddeae[_0x4f130d+0x1]}:_0x4fe92b[_0x1ccc72(0x126)]&&_0x4f130d===_0x5ddeae[_0x1ccc72(0x13d)]-0x1?{'startIndex':_0x5ddeae[_0x1ccc72(0x13d)]-0x1,'endIndex':0x0,'start':_0x5ddeae[_0x5ddeae[_0x1ccc72(0x13d)]-0x1],'end':_0x5ddeae[0x0]}:null;}function _0x2792ff(_0x350a92,_0x427231){const _0x2c8d3d=_0x23f9ff;var _0x11fcca,_0x125bcc;let _0x32a6e1=_0xd81a24(_0x350a92,_0x427231);return _0x32a6e1?[_0x32a6e1[_0x2c8d3d(0x14d)],(_0x11fcca=_0x32a6e1[_0x2c8d3d(0x14d)]['out'])==null?_0x32a6e1[_0x2c8d3d(0x14d)]:_0x11fcca,(_0x125bcc=_0x32a6e1[_0x2c8d3d(0x13c)]['in'])==null?_0x32a6e1[_0x2c8d3d(0x13c)]:_0x125bcc,_0x32a6e1[_0x2c8d3d(0x13c)]]:null;}function _0x184b1b(_0x2e7575,_0x49c0a7){var _0x80a793;return _0x49c0a7==='anchor'?_0x2e7575:(_0x80a793=_0x2e7575[_0x49c0a7])==null?null:_0x80a793;}function _0x514d33(_0x3e034e,_0x12a291,_0x34d5ec){const _0x5125cb=_0x23f9ff;return _0x34d5ec===_0x5125cb(0x16b)||_0x3e034e[_0x5125cb(0x126)]?!0x0:_0x34d5ec==='in'?_0x12a291>0x0:_0x12a291<_0x3e034e['anchors'][_0x5125cb(0x13d)]-0x1;}function _0x96e224(_0x1b9955,_0xe17c73){let [_0x1c6a56,_0x1473aa,_0x7ca4f8,_0x21251b]=_0x1b9955,_0x9d1c2e=_0x5bd287(_0x1c6a56,_0x1473aa,_0xe17c73),_0x13a9d3=_0x5bd287(_0x1473aa,_0x7ca4f8,_0xe17c73),_0x2dac58=_0x5bd287(_0x7ca4f8,_0x21251b,_0xe17c73);return _0x5bd287(_0x5bd287(_0x9d1c2e,_0x13a9d3,_0xe17c73),_0x5bd287(_0x13a9d3,_0x2dac58,_0xe17c73),_0xe17c73);}function _0x24e57a(_0x30d399,_0x565786){let [_0x27e8e7,_0x2e00c4,_0xac9b9a,_0x4fb238]=_0x30d399,_0x1e1c2d=_0x5bd287(_0x27e8e7,_0x2e00c4,_0x565786),_0x4520cc=_0x5bd287(_0x2e00c4,_0xac9b9a,_0x565786),_0x4d90c4=_0x5bd287(_0xac9b9a,_0x4fb238,_0x565786),_0x14d556=_0x5bd287(_0x1e1c2d,_0x4520cc,_0x565786),_0x8a8f71=_0x5bd287(_0x4520cc,_0x4d90c4,_0x565786),_0xccb516=_0x5bd287(_0x14d556,_0x8a8f71,_0x565786);return{'left':[_0x27e8e7,_0x1e1c2d,_0x14d556,_0xccb516],'right':[_0xccb516,_0x8a8f71,_0x4d90c4,_0x4fb238]};}function _0x516014(_0x431670,_0x5b5626,_0x26df5d){const _0x1b476b=_0x23f9ff;let _0x56c100=_0x26df5d['x']-_0x5b5626['x'],_0x148df3=_0x26df5d['y']-_0x5b5626['y'],_0x39c500=_0x56c100*_0x56c100+_0x148df3*_0x148df3,_0x351c11=_0x39c500<=_0x12269a?0x0:Math['max'](0x0,Math[_0x1b476b(0x167)](0x1,((_0x431670['x']-_0x5b5626['x'])*_0x56c100+(_0x431670['y']-_0x5b5626['y'])*_0x148df3)/_0x39c500)),_0x41d50a={'x':_0x5b5626['x']+_0x56c100*_0x351c11,'y':_0x5b5626['y']+_0x148df3*_0x351c11};return{'point':_0x41d50a,'ratio':_0x351c11,'distance':_0x4a4a5a(_0x431670,_0x41d50a)};}function _0x34e4f0(_0x26318a,_0x5ec77f,_0x11a62e){const _0x3da6bf=_0x23f9ff;return _0x516014(_0x26318a,_0x5ec77f,_0x11a62e)[_0x3da6bf(0x127)]**0x2;}function _0x3e9f25(_0x2babef,_0x15ec56){const _0x765b34=_0x23f9ff;if(_0x2babef[_0x765b34(0x13d)]<=0x2)return _0x2babef['map'](_0x11da20);let _0x202730=0x0,_0x5df5c4=0x0,_0x55288c=_0x2babef[0x0],_0x2548b3=_0x2babef[_0x2babef[_0x765b34(0x13d)]-0x1],_0xa9914e=_0x15ec56*_0x15ec56;for(let _0x921e96=0x1;_0x921e96<_0x2babef[_0x765b34(0x13d)]-0x1;_0x921e96++){let _0x56259c=_0x34e4f0(_0x2babef[_0x921e96],_0x55288c,_0x2548b3);_0x56259c>_0x202730&&(_0x202730=_0x56259c,_0x5df5c4=_0x921e96);}if(_0x202730<=_0xa9914e)return[_0x11da20(_0x55288c),_0x11da20(_0x2548b3)];let _0x49efea=_0x3e9f25(_0x2babef[_0x765b34(0x125)](0x0,_0x5df5c4+0x1),_0x15ec56),_0x335919=_0x3e9f25(_0x2babef[_0x765b34(0x125)](_0x5df5c4),_0x15ec56);return[..._0x49efea['slice'](0x0,-0x1),..._0x335919];}function _0x2d020c(_0x1afa13,_0x195194){var _0x116d47;let _0x3847f1=_0x1afa13[_0x195194],_0x556baf=_0x1afa13[_0x195194+0x1],_0x156eaa=(_0x116d47=_0x1afa13[_0x195194-0x1])==null?_0x3847f1:_0x116d47;return{'x':_0x3847f1['x']+(_0x556baf['x']-_0x156eaa['x'])/0x6,'y':_0x3847f1['y']+(_0x556baf['y']-_0x156eaa['y'])/0x6};}function _0x4847f7(_0x46ba8e,_0x30b6ce){var _0x2e3266;let _0x205bb1=_0x46ba8e[_0x30b6ce],_0x338143=_0x46ba8e[_0x30b6ce-0x1],_0x386a15=(_0x2e3266=_0x46ba8e[_0x30b6ce+0x1])==null?_0x205bb1:_0x2e3266;return{'x':_0x205bb1['x']-(_0x386a15['x']-_0x338143['x'])/0x6,'y':_0x205bb1['y']-(_0x386a15['y']-_0x338143['y'])/0x6};}function _0x51ca40(_0x27c940,_0x8d5103){const _0x8c6099=_0x23f9ff;var _0x94304f,_0x40cdc1;let _0x1dd6c6=_0x27c940[_0x8c6099(0x11d)][_0x8d5103],_0x4dad01=(_0x94304f=_0x27c940[_0x8c6099(0x11d)][_0x8d5103-0x1])==null?_0x27c940[_0x8c6099(0x126)]?_0x27c940[_0x8c6099(0x11d)][_0x27c940[_0x8c6099(0x11d)][_0x8c6099(0x13d)]-0x1]:null:_0x94304f,_0xcb1fe9=(_0x40cdc1=_0x27c940[_0x8c6099(0x11d)][_0x8d5103+0x1])==null?_0x27c940[_0x8c6099(0x126)]?_0x27c940['anchors'][0x0]:null:_0x40cdc1,_0x49cc06=_0x4dad01&&_0xcb1fe9?_0x56a257({'x':_0xcb1fe9['x']-_0x4dad01['x'],'y':_0xcb1fe9['y']-_0x4dad01['y']}):_0xcb1fe9?_0x56a257({'x':_0xcb1fe9['x']-_0x1dd6c6['x'],'y':_0xcb1fe9['y']-_0x1dd6c6['y']}):_0x4dad01?_0x56a257({'x':_0x1dd6c6['x']-_0x4dad01['x'],'y':_0x1dd6c6['y']-_0x4dad01['y']}):{'x':0x1,'y':0x0},_0x319cfb=_0x4dad01&&_0xcb1fe9?Math['max'](0x32,_0x4a4a5a(_0x4dad01,_0xcb1fe9)/0x4):0x32;return{'in':{'x':_0x1dd6c6['x']-_0x49cc06['x']*_0x319cfb,'y':_0x1dd6c6['y']-_0x49cc06['y']*_0x319cfb},'out':{'x':_0x1dd6c6['x']+_0x49cc06['x']*_0x319cfb,'y':_0x1dd6c6['y']+_0x49cc06['y']*_0x319cfb}};}function _0x5c846d(_0x2e5459,_0x1b5d7e){const _0x395ce3=_0x23f9ff;let _0x33fb1d=_0x2e5459[_0x1b5d7e],_0x1493bb=_0x1b5d7e==='in'?'out':'in',_0x19cd3a=_0x2e5459[_0x1493bb];if(_0x33fb1d){if(_0x2e5459['pointType']==='symmetric'){_0x2e5459[_0x1493bb]=_0x2830c7(_0x2e5459,_0x33fb1d);return;}_0x2e5459['pointType']===_0x395ce3(0x17b)&&(_0x2e5459[_0x1493bb]=_0x2830c7(_0x2e5459,_0x33fb1d,_0x19cd3a?_0x4a4a5a(_0x2e5459,_0x19cd3a):_0x4a4a5a(_0x2e5459,_0x33fb1d)));}}function _0x42b6e8(_0x16b003,_0x33e6a4){const _0xd71226=_0x23f9ff;let _0x51440d=_0x2d6319(_0x16b003);return!_0x33e6a4||_0x51440d['closed']||_0x51440d[_0xd71226(0x11d)][_0xd71226(0x13d)]===0x0||_0x51440d[_0xd71226(0x11d)][_0xd71226(0x133)]({'id':_0xd71226(0x131),'x':_0x33e6a4['x'],'y':_0x33e6a4['y'],'pointType':'corner'}),_0x51440d;}function _0x95bfa1(_0x4bd01f,_0x460bd2={}){const _0x50fdec=_0x23f9ff;var _0x19cad9,_0x42d571;let _0xa4794a=Math[_0x50fdec(0x15e)](0x0,(_0x19cad9=_0x460bd2['tolerance'])==null?Math['max'](0x4,_0x4bd01f['width']*0.35):_0x19cad9),_0xd3b446=(_0x42d571=_0x460bd2[_0x50fdec(0x162)])==null?_0x445ea8=>_0x50fdec(0x10f)+_0x445ea8:_0x42d571,_0x1d329e=_0x3e9f25(_0x4bd01f[_0x50fdec(0x158)],_0xa4794a),_0x13977f=_0x1d329e[_0x50fdec(0x13b)]((_0x349d00,_0x35f20a)=>({'id':_0xd3b446(_0x35f20a),'x':_0x349d00['x'],'y':_0x349d00['y'],'pointType':_0x50fdec(0x16d)}));for(let _0x86e258=0x0;_0x86e258<_0x13977f[_0x50fdec(0x13d)]-0x1;_0x86e258++)_0x13977f[_0x86e258][_0x50fdec(0x14a)]=_0x2d020c(_0x1d329e,_0x86e258),_0x13977f[_0x86e258+0x1]['in']=_0x4847f7(_0x1d329e,_0x86e258+0x1);return{'kind':_0x50fdec(0x11c),'closed':!0x1,'anchors':_0x13977f};}function _0x31d540(_0x42163e,_0x29afe4,_0x46dfe3){const _0x16633f=_0x23f9ff;let _0x3fd14c=null,_0x465757=['anchor','in',_0x16633f(0x14a)];return _0x42163e['anchors'][_0x16633f(0x15c)]((_0x4805ae,_0x4000a9)=>{const _0x16001a=_0x16633f;_0x465757[_0x16001a(0x15c)](_0x2f90b3=>{const _0x18159d=_0x16001a;if(!_0x514d33(_0x42163e,_0x4000a9,_0x2f90b3))return;let _0x384722=_0x184b1b(_0x4805ae,_0x2f90b3);if(!_0x384722)return;let _0x41aa92=_0x4a4a5a(_0x29afe4,_0x384722);_0x41aa92>_0x46dfe3||_0x3fd14c&&_0x41aa92>=_0x3fd14c[_0x18159d(0x127)]||(_0x3fd14c={'handle':{'kind':_0x2f90b3,'anchorId':_0x4805ae['id']},'point':_0x11da20(_0x384722),'distance':_0x41aa92});});}),_0x3fd14c;}function _0x53ff64(_0x276ba3,_0x957144,_0x50508d){const _0x4d326e=_0x23f9ff;let _0x251d1c=null,_0x446638=_0x276ba3['closed']?_0x276ba3[_0x4d326e(0x11d)]['length']:Math[_0x4d326e(0x15e)](0x0,_0x276ba3[_0x4d326e(0x11d)][_0x4d326e(0x13d)]-0x1);for(let _0x2f48f3=0x0;_0x2f48f3<_0x446638;_0x2f48f3++){let _0x2f911a=_0x2792ff(_0x276ba3,_0x2f48f3);if(!_0x2f911a)continue;let _0x5a1ac9=_0x96e224(_0x2f911a,0x0);for(let _0x31c676=0x1;_0x31c676<=0x20;_0x31c676++){let _0x3c65e7=_0x96e224(_0x2f911a,_0x31c676/0x20),_0x29dc40=_0x516014(_0x957144,_0x5a1ac9,_0x3c65e7),_0x3cc6c5=(_0x31c676-0x1+_0x29dc40['ratio'])/0x20;(!_0x251d1c||_0x29dc40[_0x4d326e(0x127)]<_0x251d1c[_0x4d326e(0x127)])&&(_0x251d1c={'segmentIndex':_0x2f48f3,'t':_0x3cc6c5,'point':_0x29dc40['point'],'distance':_0x29dc40['distance']}),_0x5a1ac9=_0x3c65e7;}}return _0x251d1c&&_0x251d1c[_0x4d326e(0x127)]<=_0x50508d?_0x251d1c:null;}function _0x5e32b0(_0x3e7211,_0x57e7e5,_0xe42550){const _0x593803=_0x23f9ff;let _0x142a31=_0x2d6319(_0x3e7211),_0x4a740a=_0xd81a24(_0x142a31,_0x57e7e5[_0x593803(0x120)]),_0x277954=_0x2792ff(_0x142a31,_0x57e7e5[_0x593803(0x120)]);if(!_0x4a740a||!_0x277954)return _0x142a31;let _0x5968c6=_0x24e57a(_0x277954,Math[_0x593803(0x15e)](0x0,Math[_0x593803(0x167)](0x1,_0x57e7e5['t']))),_0x335f7d={'id':_0xe42550(),'x':_0x5968c6[_0x593803(0x16f)][0x3]['x'],'y':_0x5968c6[_0x593803(0x16f)][0x3]['y'],'in':_0x11da20(_0x5968c6[_0x593803(0x16f)][0x2]),'out':_0x11da20(_0x5968c6['right'][0x1]),'pointType':'free'};return _0x142a31[_0x593803(0x11d)][_0x4a740a[_0x593803(0x142)]][_0x593803(0x14a)]=_0x11da20(_0x5968c6[_0x593803(0x16f)][0x1]),_0x142a31['anchors'][_0x4a740a[_0x593803(0x18a)]]['in']=_0x11da20(_0x5968c6['right'][0x2]),_0x142a31['anchors'][_0x593803(0x155)](_0x4a740a[_0x593803(0x142)]+0x1,0x0,_0x335f7d),_0x142a31;}function _0x31d78b(_0x30b5ba,_0x4364f2){const _0x1a9538=_0x23f9ff;let _0x5d6012=_0x2d6319(_0x30b5ba);return _0x5d6012[_0x1a9538(0x11d)]=_0x5d6012[_0x1a9538(0x11d)][_0x1a9538(0x140)](_0x5b12a0=>_0x5b12a0['id']!==_0x4364f2),_0x5d6012[_0x1a9538(0x126)]&&_0x5d6012[_0x1a9538(0x11d)][_0x1a9538(0x13d)]<0x3&&(_0x5d6012[_0x1a9538(0x126)]=!0x1),_0x5d6012;}function _0x3a7e54(_0x3e8736,_0xe16535,_0x8d2b13){const _0x10a115=_0x23f9ff;let _0x31fabc=_0x2d6319(_0x3e8736),_0x3bc74f=_0x31fabc[_0x10a115(0x11d)][_0x10a115(0x119)](_0x5ce552=>_0x5ce552['id']===_0xe16535),_0x39f984=_0x31fabc[_0x10a115(0x11d)][_0x3bc74f];if(!_0x39f984)return _0x31fabc;if(_0x39f984[_0x10a115(0x180)]=_0x8d2b13,_0x8d2b13===_0x10a115(0x12c))return delete _0x39f984['in'],delete _0x39f984[_0x10a115(0x14a)],_0x31fabc;let _0x2873e6=_0x51ca40(_0x31fabc,_0x3bc74f);if(_0x39f984['in']=_0x39f984['in']?_0x11da20(_0x39f984['in']):_0x2873e6['in'],_0x39f984[_0x10a115(0x14a)]=_0x39f984[_0x10a115(0x14a)]?_0x11da20(_0x39f984[_0x10a115(0x14a)]):_0x2873e6[_0x10a115(0x14a)],_0x8d2b13===_0x10a115(0x188)){let _0x13eea5=Math[_0x10a115(0x15e)](_0x4a4a5a(_0x39f984,_0x39f984['in']),_0x4a4a5a(_0x39f984,_0x39f984[_0x10a115(0x14a)]),0x32),_0x1bbf8a=_0x56a257({'x':_0x39f984[_0x10a115(0x14a)]['x']-_0x39f984['x'],'y':_0x39f984['out']['y']-_0x39f984['y']});_0x39f984[_0x10a115(0x14a)]={'x':_0x39f984['x']+_0x1bbf8a['x']*_0x13eea5,'y':_0x39f984['y']+_0x1bbf8a['y']*_0x13eea5},_0x39f984['in']={'x':_0x39f984['x']-_0x1bbf8a['x']*_0x13eea5,'y':_0x39f984['y']-_0x1bbf8a['y']*_0x13eea5};}else _0x8d2b13===_0x10a115(0x17b)&&_0x5c846d(_0x39f984,'out');return _0x31fabc;}function _0x2f5c1d(_0x21a4c2,_0x5e510e){const _0x32d578=_0x23f9ff;var _0x4af894;let _0x481fe4=_0x21a4c2[_0x32d578(0x11d)][_0x32d578(0x113)](_0x27dd12=>_0x27dd12['id']===_0x5e510e),_0x38d461=(_0x4af894=_0x481fe4==null?void 0x0:_0x481fe4[_0x32d578(0x180)])==null?'corner':_0x4af894;return _0x3a7e54(_0x21a4c2,_0x5e510e,_0x38d461==='corner'?'smooth':_0x38d461===_0x32d578(0x17b)?'symmetric':_0x38d461===_0x32d578(0x188)?'free':'corner');}function _0x54cc69(_0x35cabb,_0x282c52,_0x569f94){const _0x26f4f7=_0x23f9ff;let _0x3df726=_0x2d6319(_0x35cabb),_0x26dfcc=_0x3df726['anchors'][_0x26f4f7(0x113)](_0x352a90=>_0x352a90['id']===_0x282c52[_0x26f4f7(0x122)]);if(!_0x26dfcc)return _0x3df726;if(_0x282c52[_0x26f4f7(0x121)]===_0x26f4f7(0x16b)){let _0x4ca199={'x':_0x569f94['x']-_0x26dfcc['x'],'y':_0x569f94['y']-_0x26dfcc['y']};return _0x26dfcc['x']=_0x569f94['x'],_0x26dfcc['y']=_0x569f94['y'],_0x26dfcc['in']&&(_0x26dfcc['in']={'x':_0x26dfcc['in']['x']+_0x4ca199['x'],'y':_0x26dfcc['in']['y']+_0x4ca199['y']}),_0x26dfcc['out']&&(_0x26dfcc[_0x26f4f7(0x14a)]={'x':_0x26dfcc[_0x26f4f7(0x14a)]['x']+_0x4ca199['x'],'y':_0x26dfcc[_0x26f4f7(0x14a)]['y']+_0x4ca199['y']}),_0x3df726;}return _0x26dfcc[_0x282c52['kind']]=_0x11da20(_0x569f94),_0x26dfcc[_0x26f4f7(0x180)]===_0x26f4f7(0x12c)&&(_0x26dfcc[_0x26f4f7(0x180)]='free'),_0x5c846d(_0x26dfcc,_0x282c52['kind']),_0x3df726;}let _0x4728ee=1e-9;function _0x1ea1d1(_0x1496f1){const _0x2572ef=_0x23f9ff;let _0x4ab686=Math[_0x2572ef(0x186)](_0x1496f1*0x2710)/0x2710;return Object['is'](_0x4ab686,-0x0)?'0':String(_0x4ab686);}function _0x1cc548(_0x4f0de5){return _0x1ea1d1(_0x4f0de5['x'])+'\x20'+_0x1ea1d1(_0x4f0de5['y']);}function _0x56f4ef(_0x37e125,_0x394bba){return{'x':_0x37e125['x']-_0x394bba['x'],'y':_0x37e125['y']-_0x394bba['y']};}function _0x5747d7(_0x5405bb,_0x1265ef,_0x25abe2,_0x257da6,_0x5580d9){let _0x19cdc8=0x1-_0x5580d9;return{'x':_0x19cdc8*_0x19cdc8*_0x19cdc8*_0x5405bb['x']+0x3*_0x19cdc8*_0x19cdc8*_0x5580d9*_0x1265ef['x']+0x3*_0x19cdc8*_0x5580d9*_0x5580d9*_0x25abe2['x']+_0x5580d9*_0x5580d9*_0x5580d9*_0x257da6['x'],'y':_0x19cdc8*_0x19cdc8*_0x19cdc8*_0x5405bb['y']+0x3*_0x19cdc8*_0x19cdc8*_0x5580d9*_0x1265ef['y']+0x3*_0x19cdc8*_0x5580d9*_0x5580d9*_0x25abe2['y']+_0x5580d9*_0x5580d9*_0x5580d9*_0x257da6['y']};}function _0xe02c92(_0xa70dbd,_0x2f542f,_0xfe087d,_0x2bb659){const _0xa86577=_0x23f9ff;let _0x5a0de2=-_0xa70dbd+0x3*_0x2f542f-0x3*_0xfe087d+_0x2bb659,_0x3067cd=0x3*_0xa70dbd-0x6*_0x2f542f+0x3*_0xfe087d,_0x7ad2c0=-0x3*_0xa70dbd+0x3*_0x2f542f,_0x33a361=[];if(Math[_0xa86577(0x14c)](_0x5a0de2)<_0x4728ee){if(Math[_0xa86577(0x14c)](_0x3067cd)<_0x4728ee)return _0x33a361;let _0x5e2438=-_0x7ad2c0/(0x2*_0x3067cd);return _0x5e2438>0x0&&_0x5e2438<0x1&&_0x33a361['push'](_0x5e2438),_0x33a361;}let _0x5c9de8=_0x3067cd*_0x3067cd-0x3*_0x5a0de2*_0x7ad2c0;if(_0x5c9de8<0x0)return _0x33a361;let _0x15b8eb=Math[_0xa86577(0x187)](Math[_0xa86577(0x15e)](0x0,_0x5c9de8)),_0x5ceeaf=(-_0x3067cd+_0x15b8eb)/(0x3*_0x5a0de2),_0x596019=(-_0x3067cd-_0x15b8eb)/(0x3*_0x5a0de2);return _0x5ceeaf>0x0&&_0x5ceeaf<0x1&&_0x33a361[_0xa86577(0x133)](_0x5ceeaf),_0x596019>0x0&&_0x596019<0x1&&Math[_0xa86577(0x14c)](_0x596019-_0x5ceeaf)>_0x4728ee&&_0x33a361['push'](_0x596019),_0x33a361;}function _0x5adbed(_0x5a1411,_0x7702f2,_0x8783d6,_0x26b6b6,_0x386b2b){const _0x328aef=_0x23f9ff;_0x5a1411[_0x328aef(0x133)](_0x7702f2,_0x386b2b),new Set([..._0xe02c92(_0x7702f2['x'],_0x8783d6['x'],_0x26b6b6['x'],_0x386b2b['x']),..._0xe02c92(_0x7702f2['y'],_0x8783d6['y'],_0x26b6b6['y'],_0x386b2b['y'])])[_0x328aef(0x15c)](_0x36ab21=>{const _0x4feb06=_0x328aef;_0x5a1411[_0x4feb06(0x133)](_0x5747d7(_0x7702f2,_0x8783d6,_0x26b6b6,_0x386b2b,_0x36ab21));});}function _0x2b9b17(_0x501d7a){const _0x302eae=_0x23f9ff;let _0x59ee64=_0x501d7a[_0x302eae(0x11d)];if(_0x59ee64[_0x302eae(0x13d)]<=0x1)return _0x59ee64;let _0x6775a6=[];for(let _0x5a23e5=0x1;_0x5a23e5<_0x59ee64[_0x302eae(0x13d)];_0x5a23e5++){var _0x3882f0,_0x95f1ad;let _0x11d856=_0x59ee64[_0x5a23e5-0x1],_0x3f2306=_0x59ee64[_0x5a23e5];_0x5adbed(_0x6775a6,_0x11d856,(_0x3882f0=_0x11d856[_0x302eae(0x14a)])==null?_0x11d856:_0x3882f0,(_0x95f1ad=_0x3f2306['in'])==null?_0x3f2306:_0x95f1ad,_0x3f2306);}if(_0x501d7a['closed']&&_0x59ee64[_0x302eae(0x13d)]>0x1){var _0x1f4f40,_0x53b2b3;let _0x50240d=_0x59ee64[_0x59ee64['length']-0x1],_0xb21850=_0x59ee64[0x0];_0x5adbed(_0x6775a6,_0x50240d,(_0x1f4f40=_0x50240d[_0x302eae(0x14a)])==null?_0x50240d:_0x1f4f40,(_0x53b2b3=_0xb21850['in'])==null?_0xb21850:_0x53b2b3,_0xb21850);}return _0x6775a6;}function _0x53548c(_0x2f2b76){const _0x1b325b=_0x23f9ff;let _0x489004=_0x2f2b76['points'];if(_0x489004['length']<=0x1)return _0x489004;let _0x44a242=[];for(let _0x23b7c3=0x0;_0x23b7c3<_0x489004[_0x1b325b(0x13d)]-0x1;_0x23b7c3++){var _0x1abd18,_0x37b794;let _0x41ed6a=_0x489004[_0x23b7c3],_0x145ae9=_0x489004[_0x23b7c3+0x1],_0x588d75=(_0x1abd18=_0x489004[_0x23b7c3-0x1])==null?_0x41ed6a:_0x1abd18,_0x367ee9=(_0x37b794=_0x489004[_0x23b7c3+0x2])==null?_0x145ae9:_0x37b794;_0x5adbed(_0x44a242,_0x41ed6a,{'x':_0x41ed6a['x']+(_0x145ae9['x']-_0x588d75['x'])/0x6,'y':_0x41ed6a['y']+(_0x145ae9['y']-_0x588d75['y'])/0x6},{'x':_0x145ae9['x']-(_0x367ee9['x']-_0x41ed6a['x'])/0x6,'y':_0x145ae9['y']-(_0x367ee9['y']-_0x41ed6a['y'])/0x6},_0x145ae9);}return _0x44a242;}function _0x3986e5(_0x17d9a4){const _0x4ebeee=_0x23f9ff;return _0x17d9a4[_0x4ebeee(0x121)]==='pen'?_0x2b9b17(_0x17d9a4):_0x53548c(_0x17d9a4);}function _0x26e333(_0x18c6ad){const _0x4bc759=_0x23f9ff;let _0x32a332=Math[_0x4bc759(0x186)](_0x18c6ad*0x2710)/0x2710;return Object['is'](_0x32a332,-0x0)?0x0:_0x32a332;}function _0x4dcb65(_0x35ae20){const _0x2e62fd=_0x23f9ff;let _0x33b2be=_0x3986e5(_0x35ae20);if(_0x33b2be[_0x2e62fd(0x13d)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x51abee=Math[_0x2e62fd(0x167)](..._0x33b2be[_0x2e62fd(0x13b)](_0x3f0c9c=>_0x3f0c9c['x'])),_0x3b5dfe=Math[_0x2e62fd(0x167)](..._0x33b2be['map'](_0x2ff6ca=>_0x2ff6ca['y'])),_0x1b19d3=Math[_0x2e62fd(0x15e)](..._0x33b2be[_0x2e62fd(0x13b)](_0x1bcdfe=>_0x1bcdfe['x'])),_0xb982ae=Math[_0x2e62fd(0x15e)](..._0x33b2be[_0x2e62fd(0x13b)](_0x3e9745=>_0x3e9745['y']));return{'left':_0x26e333(_0x51abee),'top':_0x26e333(_0x3b5dfe),'width':_0x26e333(Math[_0x2e62fd(0x15e)](0x1,_0x1b19d3-_0x51abee)),'height':_0x26e333(Math[_0x2e62fd(0x15e)](0x1,_0xb982ae-_0x3b5dfe))};}function _0x2566bc(_0x17c50a,_0x128967){const _0x3f01f8=_0x23f9ff;let _0x5e8ea1=_0x17c50a[_0x3f01f8(0x11d)];if(_0x5e8ea1['length']===0x0)return'';let _0x44110a=['M\x20'+_0x1cc548(_0x56f4ef(_0x5e8ea1[0x0],_0x128967))];for(let _0x2c119c=0x1;_0x2c119c<_0x5e8ea1[_0x3f01f8(0x13d)];_0x2c119c++){var _0x510972,_0x1180df;let _0xe09fa3=_0x5e8ea1[_0x2c119c-0x1],_0x2ec340=_0x5e8ea1[_0x2c119c],_0x528aa3=(_0x510972=_0xe09fa3[_0x3f01f8(0x14a)])==null?_0xe09fa3:_0x510972,_0x24a75a=(_0x1180df=_0x2ec340['in'])==null?_0x2ec340:_0x1180df;_0x44110a['push']('C\x20'+_0x1cc548(_0x56f4ef(_0x528aa3,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x24a75a,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x2ec340,_0x128967)));}if(_0x17c50a[_0x3f01f8(0x126)]&&_0x5e8ea1[_0x3f01f8(0x13d)]>0x1){var _0x206f08,_0x102989;let _0x1d1f64=_0x5e8ea1[_0x5e8ea1['length']-0x1],_0x28c5aa=_0x5e8ea1[0x0],_0xf760a4=(_0x206f08=_0x1d1f64[_0x3f01f8(0x14a)])==null?_0x1d1f64:_0x206f08,_0x76d7c8=(_0x102989=_0x28c5aa['in'])==null?_0x28c5aa:_0x102989;_0x44110a[_0x3f01f8(0x133)]('C\x20'+_0x1cc548(_0x56f4ef(_0xf760a4,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x76d7c8,_0x128967))+'\x20'+_0x1cc548(_0x56f4ef(_0x28c5aa,_0x128967))),_0x44110a['push']('Z');}return _0x44110a[_0x3f01f8(0x13a)]('\x20');}function _0x5c6ccd(_0x59277a,_0x34f78a){const _0x29b8bf=_0x23f9ff;let _0x544981=_0x59277a[_0x29b8bf(0x158)]['map'](_0x2333fd=>_0x56f4ef(_0x2333fd,_0x34f78a));if(_0x544981[_0x29b8bf(0x13d)]===0x0)return'';if(_0x544981[_0x29b8bf(0x13d)]===0x1)return'M\x20'+_0x1cc548(_0x544981[0x0]);let _0x1ef7bf=['M\x20'+_0x1cc548(_0x544981[0x0])];for(let _0x2576f9=0x0;_0x2576f9<_0x544981[_0x29b8bf(0x13d)]-0x1;_0x2576f9++){var _0x510c11,_0x974a2a;let _0x29dee0=_0x544981[_0x2576f9],_0x5d0c1e=_0x544981[_0x2576f9+0x1],_0x3dd17c=(_0x510c11=_0x544981[_0x2576f9-0x1])==null?_0x29dee0:_0x510c11,_0x2ed8cd=(_0x974a2a=_0x544981[_0x2576f9+0x2])==null?_0x5d0c1e:_0x974a2a,_0x224cac={'x':_0x29dee0['x']+(_0x5d0c1e['x']-_0x3dd17c['x'])/0x6,'y':_0x29dee0['y']+(_0x5d0c1e['y']-_0x3dd17c['y'])/0x6},_0x54cfa0={'x':_0x5d0c1e['x']-(_0x2ed8cd['x']-_0x29dee0['x'])/0x6,'y':_0x5d0c1e['y']-(_0x2ed8cd['y']-_0x29dee0['y'])/0x6};_0x1ef7bf[_0x29b8bf(0x133)]('C\x20'+_0x1cc548(_0x224cac)+'\x20'+_0x1cc548(_0x54cfa0)+'\x20'+_0x1cc548(_0x5d0c1e));}return _0x1ef7bf['join']('\x20');}function _0x3fc1f2(_0x3c487c,_0x5d709a){const _0x2b0bcb=_0x23f9ff;return _0x3c487c[_0x2b0bcb(0x121)]===_0x2b0bcb(0x11c)?_0x2566bc(_0x3c487c,_0x5d709a):_0x5c6ccd(_0x3c487c,_0x5d709a);}function _0x480ee9(_0x52e678,_0xc14fcd){const _0x16cf36=_0x23f9ff;return _0xc14fcd!=null&&_0xc14fcd[_0x16cf36(0x17c)]?_0xc14fcd[_0x16cf36(0x17c)]:_0x52e678['kind']===_0x16cf36(0x11c)?_0x16cf36(0x176):_0x52e678[_0x16cf36(0x17c)];}function _0x48a0d5(_0x4ed7a6,_0x2237a9){const _0x1d666b=_0x23f9ff;return(_0x2237a9==null?void 0x0:_0x2237a9[_0x1d666b(0x15a)])===void 0x0?_0x4ed7a6[_0x1d666b(0x121)]==='pen'?0x2:_0x4ed7a6[_0x1d666b(0x15a)]:_0x2237a9[_0x1d666b(0x15a)];}function _0x54c92e(_0x3926cc,_0x51b87e){const _0x200cb6=_0x23f9ff;return(_0x51b87e==null?void 0x0:_0x51b87e[_0x200cb6(0x182)])===void 0x0?_0x3926cc[_0x200cb6(0x121)]==='pen'?void 0x0:_0x3926cc[_0x200cb6(0x182)]:_0x51b87e[_0x200cb6(0x182)];}function _0x588893(_0x33faf8,_0x549a48){const _0x53eedf=_0x23f9ff;let _0x406ac5=_0x4dcb65(_0x33faf8),_0x3fd61e=_0x3fc1f2(_0x33faf8,{'x':_0x406ac5['left'],'y':_0x406ac5['top']}),_0x40ea7d=_0x33faf8[_0x53eedf(0x121)]===_0x53eedf(0x11c)&&_0x33faf8[_0x53eedf(0x126)],_0x216af7=_0x549a48==null?void 0x0:_0x549a48[_0x53eedf(0x135)];return{'shapeType':_0x383e6d[_0x53eedf(0x159)][_0x53eedf(0x171)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x406ac5[_0x53eedf(0x15a)],'h':_0x406ac5[_0x53eedf(0x160)],'fill':_0x40ea7d?_0x53eedf(0x13e):_0x53eedf(0x172),'stroke':!0x0,'data':_0x3fd61e,'dataArray':_0xccf2bc(_0x33faf8,{'x':_0x406ac5[_0x53eedf(0x16f)],'y':_0x406ac5[_0x53eedf(0x18b)]})}]},'fill':_0x40ea7d&&_0x216af7?{'color':_0x216af7,'fillType':_0x383e6d[_0x53eedf(0x177)]['SolidFill']}:{'fillType':_0x383e6d['ShapeFillEnum']['NoFill']},'stroke':{'color':_0x480ee9(_0x33faf8,_0x549a48),'width':_0x48a0d5(_0x33faf8,_0x549a48),'opacity':_0x54c92e(_0x33faf8,_0x549a48),'lineStrokeType':_0x383e6d[_0x53eedf(0x174)]['SolidLine'],'capType':_0x383e6d[_0x53eedf(0x157)]['Round'],'lineJoinType':_0x383e6d[_0x53eedf(0x11a)][_0x53eedf(0x14e)]}};}function _0x5141dc(_0x3264cf,_0x17cc4e){return{'x':_0x3264cf['x']-_0x17cc4e['x'],'y':_0x3264cf['y']-_0x17cc4e['y']};}function _0xccf2bc(_0x33cf5e,_0x45da68){const _0x875064=_0x23f9ff;if(_0x33cf5e[_0x875064(0x121)]==='pen'){let _0x11fc5c=_0x33cf5e[_0x875064(0x11d)];if(_0x11fc5c[_0x875064(0x13d)]===0x0)return[];let _0x35a706=_0x5141dc(_0x11fc5c[0x0],_0x45da68),_0x4b27dd=[{'command':'M','points':[_0x35a706['x'],_0x35a706['y']]}];for(let _0x10909e=0x1;_0x10909e<_0x11fc5c[_0x875064(0x13d)];_0x10909e++){var _0x394f53,_0x290e9f;let _0x1ed774=_0x11fc5c[_0x10909e-0x1],_0x56336f=_0x11fc5c[_0x10909e],_0x56d71b=_0x5141dc((_0x394f53=_0x1ed774['out'])==null?_0x1ed774:_0x394f53,_0x45da68),_0x39886c=_0x5141dc((_0x290e9f=_0x56336f['in'])==null?_0x56336f:_0x290e9f,_0x45da68),_0x5f5301=_0x5141dc(_0x56336f,_0x45da68);_0x4b27dd[_0x875064(0x133)]({'command':'C','points':[_0x56d71b['x'],_0x56d71b['y'],_0x39886c['x'],_0x39886c['y'],_0x5f5301['x'],_0x5f5301['y']]});}if(_0x33cf5e[_0x875064(0x126)]&&_0x11fc5c[_0x875064(0x13d)]>0x1){var _0x1b6227,_0x2b39b0;let _0x39de6a=_0x11fc5c[_0x11fc5c[_0x875064(0x13d)]-0x1],_0x58796b=_0x11fc5c[0x0],_0x5e7b93=_0x5141dc((_0x1b6227=_0x39de6a[_0x875064(0x14a)])==null?_0x39de6a:_0x1b6227,_0x45da68),_0x2e4a7a=_0x5141dc((_0x2b39b0=_0x58796b['in'])==null?_0x58796b:_0x2b39b0,_0x45da68),_0x3838bb=_0x5141dc(_0x58796b,_0x45da68);_0x4b27dd[_0x875064(0x133)]({'command':'C','points':[_0x5e7b93['x'],_0x5e7b93['y'],_0x2e4a7a['x'],_0x2e4a7a['y'],_0x3838bb['x'],_0x3838bb['y']]}),_0x4b27dd['push']({'command':'z','points':[]});}return _0x4b27dd;}let _0x4e4136=_0x33cf5e['points'][_0x875064(0x13b)](_0x3ae26c=>_0x5141dc(_0x3ae26c,_0x45da68));if(_0x4e4136['length']===0x0)return[];let _0x2d6296=[{'command':'M','points':[_0x4e4136[0x0]['x'],_0x4e4136[0x0]['y']]}];for(let _0x2b8312=0x0;_0x2b8312<_0x4e4136[_0x875064(0x13d)]-0x1;_0x2b8312++){var _0x35aa2c,_0x2e329f;let _0x31db25=_0x4e4136[_0x2b8312],_0x417c2e=_0x4e4136[_0x2b8312+0x1],_0x2ac303=(_0x35aa2c=_0x4e4136[_0x2b8312-0x1])==null?_0x31db25:_0x35aa2c,_0x23f1f0=(_0x2e329f=_0x4e4136[_0x2b8312+0x2])==null?_0x417c2e:_0x2e329f,_0x1790e6={'x':_0x31db25['x']+(_0x417c2e['x']-_0x2ac303['x'])/0x6,'y':_0x31db25['y']+(_0x417c2e['y']-_0x2ac303['y'])/0x6},_0x31ec5a={'x':_0x417c2e['x']-(_0x23f1f0['x']-_0x31db25['x'])/0x6,'y':_0x417c2e['y']-(_0x23f1f0['y']-_0x31db25['y'])/0x6};_0x2d6296[_0x875064(0x133)]({'command':'C','points':[_0x1790e6['x'],_0x1790e6['y'],_0x31ec5a['x'],_0x31ec5a['y'],_0x417c2e['x'],_0x417c2e['y']]});}return _0x2d6296;}function _0xdd7e30(_0x65323){const _0x81767e=_0x23f9ff;var _0x274c1e;let {model:_0x46b38f,sourceModel:_0x63a6a1=_0x46b38f,style:_0x39bf7f}=_0x65323,_0x4b0bb2=(_0x274c1e=_0x65323['tool'])==null?_0x46b38f[_0x81767e(0x121)]:_0x274c1e,_0x3e0fa3=_0x4dcb65(_0x46b38f),_0x23a567=_0x46b38f[_0x81767e(0x121)]==='pen'&&_0x4b0bb2!==_0x81767e(0x11c)?_0x46b38f:void 0x0;return{'transform':{..._0x3e0fa3,'rotation':0x0},'shapeData':_0x588893(_0x46b38f,_0x39bf7f),'ink':{'version':0x1,'tool':_0x4b0bb2,'sourceModel':_0x63a6a1,..._0x23a567?{'editModel':_0x23a567}:{},'normalizedBounds':_0x3e0fa3}};}var _0x2e378a=_0x23f9ff(0x11f),_0x304436=_0x23f9ff(0x175);function _0x18201e(_0x1d866c){'@babel/helpers - typeof';const _0x3151c5=_0x23f9ff;return _0x18201e=typeof Symbol==_0x3151c5(0x110)&&typeof Symbol['iterator']=='symbol'?function(_0xb3c4c1){return typeof _0xb3c4c1;}:function(_0xc505ab){const _0x275434=_0x3151c5;return _0xc505ab&&typeof Symbol=='function'&&_0xc505ab['constructor']===Symbol&&_0xc505ab!==Symbol[_0x275434(0x143)]?_0x275434(0x146):typeof _0xc505ab;},_0x18201e(_0x1d866c);}function _0x562060(_0x5d48df,_0xf578ae){const _0x59d0c1=_0x23f9ff;if(_0x18201e(_0x5d48df)!=_0x59d0c1(0x129)||!_0x5d48df)return _0x5d48df;var _0x420ca5=_0x5d48df[Symbol[_0x59d0c1(0x183)]];if(_0x420ca5!==void 0x0){var _0x319321=_0x420ca5[_0x59d0c1(0x13f)](_0x5d48df,_0xf578ae||'default');if(_0x18201e(_0x319321)!=_0x59d0c1(0x129))return _0x319321;throw TypeError(_0x59d0c1(0x112));}return(_0xf578ae==='string'?String:Number)(_0x5d48df);}function _0x53514a(_0x4fb0ee){var _0x2cecce=_0x562060(_0x4fb0ee,'string');return _0x18201e(_0x2cecce)=='symbol'?_0x2cecce:_0x2cecce+'';}function _0x2122c2(_0x2cf544,_0x39c08c,_0x1605d7){const _0x5810fd=_0x23f9ff;return(_0x39c08c=_0x53514a(_0x39c08c))in _0x2cf544?Object[_0x5810fd(0x156)](_0x2cf544,_0x39c08c,{'value':_0x1605d7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2cf544[_0x39c08c]=_0x1605d7,_0x2cf544;}let _0x1ed639=(0x0,_0x3c4216[_0x23f9ff(0x117)])(_0x23f9ff(0x137));var _0x2be810=class{constructor(){const _0x1b7e45=_0x23f9ff;_0x2122c2(this,_0x1b7e45(0x11b),[]);}[_0x23f9ff(0x163)](_0x35b635){const _0x451e50=_0x23f9ff;return this['_adapters'][_0x451e50(0x133)](_0x35b635),(0x0,_0x3c4216[_0x451e50(0x151)])(()=>{const _0x555d13=_0x451e50;let _0x1ca62b=this[_0x555d13(0x11b)][_0x555d13(0x149)](_0x35b635);_0x1ca62b>=0x0&&this[_0x555d13(0x11b)][_0x555d13(0x155)](_0x1ca62b,0x1);});}[_0x23f9ff(0x124)](_0x1e2a23){const _0x22cc79=_0x23f9ff;for(let _0x3c77b7 of this[_0x22cc79(0x11b)])if(_0x3c77b7[_0x22cc79(0x124)](_0x1e2a23))return!0x0;return!0x1;}async[_0x23f9ff(0x189)](_0x1cb918){const _0x515c0a=_0x23f9ff;for(let _0x112083 of this[_0x515c0a(0x11b)])if(_0x112083[_0x515c0a(0x189)]&&await _0x112083[_0x515c0a(0x189)](_0x1cb918))return!0x0;return!0x1;}};let _0x544e3d={'id':'ink.operation.start','type':_0x3c4216[_0x23f9ff(0x185)][_0x23f9ff(0x144)],'handler':(_0x32de60,_0x1e24f0)=>_0x1e24f0?_0x32de60['get'](_0x1ed639)[_0x23f9ff(0x124)](_0x1e24f0):!0x1},_0x52d8e4={};function _0x3e729c(_0x1b5750,_0x100fe9){return function(_0x51b5af,_0x1265cd){_0x100fe9(_0x51b5af,_0x1265cd,_0x1b5750);};}function _0x1e5c68(_0x15b980,_0x3f73a9,_0x511d82,_0x3fe382){const _0x4477c3=_0x23f9ff;var _0x5da1d2=arguments[_0x4477c3(0x13d)],_0x59c715=_0x5da1d2<0x3?_0x3f73a9:_0x3fe382===null?_0x3fe382=Object['getOwnPropertyDescriptor'](_0x3f73a9,_0x511d82):_0x3fe382,_0x396630;if(typeof Reflect==_0x4477c3(0x129)&&typeof Reflect[_0x4477c3(0x16c)]=='function')_0x59c715=Reflect[_0x4477c3(0x16c)](_0x15b980,_0x3f73a9,_0x511d82,_0x3fe382);else{for(var _0x40df7c=_0x15b980['length']-0x1;_0x40df7c>=0x0;_0x40df7c--)(_0x396630=_0x15b980[_0x40df7c])&&(_0x59c715=(_0x5da1d2<0x3?_0x396630(_0x59c715):_0x5da1d2>0x3?_0x396630(_0x3f73a9,_0x511d82,_0x59c715):_0x396630(_0x3f73a9,_0x511d82))||_0x59c715);}return _0x5da1d2>0x3&&_0x59c715&&Object[_0x4477c3(0x156)](_0x3f73a9,_0x511d82,_0x59c715),_0x59c715;}let _0x570a97=class extends _0x3c4216['Plugin']{constructor(_0x4447b8=_0x52d8e4,_0x45c685,_0x2c9b20,_0x2c0cfc){const _0x2abccb=_0x23f9ff;super(),this[_0x2abccb(0x116)]=_0x4447b8,this[_0x2abccb(0x16a)]=_0x45c685,this[_0x2abccb(0x169)]=_0x2c9b20,this[_0x2abccb(0x12f)]=_0x2c0cfc;let {..._0x2e1d56}=(0x0,_0x3c4216[_0x2abccb(0x152)])({},_0x52d8e4,this[_0x2abccb(0x116)]);this[_0x2abccb(0x12f)][_0x2abccb(0x17e)]('ink.config',_0x2e1d56);}[_0x23f9ff(0x123)](){const _0x46eb28=_0x23f9ff;[[_0x1ed639,{'useClass':_0x2be810}]][_0x46eb28(0x15c)](_0x3ce581=>this[_0x46eb28(0x16a)]['add'](_0x3ce581)),this['disposeWithMe'](this[_0x46eb28(0x169)][_0x46eb28(0x17d)](_0x544e3d));}};_0x2122c2(_0x570a97,_0x23f9ff(0x130),_0x23f9ff(0x165)),_0x2122c2(_0x570a97,_0x23f9ff(0x15b),_0x2e378a),_0x2122c2(_0x570a97,_0x23f9ff(0x178),_0x304436),_0x2122c2(_0x570a97,_0x23f9ff(0x153),_0x3c4216[_0x23f9ff(0x12e)][_0x23f9ff(0x148)]),_0x570a97=_0x1e5c68([(0x0,_0x3c4216['DependentOn'])(_0xb63ae8[_0x23f9ff(0x173)]),_0x3e729c(0x1,(0x0,_0x3c4216[_0x23f9ff(0x168)])(_0x3c4216[_0x23f9ff(0x17a)])),_0x3e729c(0x2,_0x3c4216[_0x23f9ff(0x161)]),_0x3e729c(0x3,_0x3c4216['IConfigService'])],_0x570a97),_0x2ae93c[_0x23f9ff(0x15d)]=_0x1ed639,Object[_0x23f9ff(0x156)](_0x2ae93c,_0x23f9ff(0x12b),{'enumerable':!0x0,'get':function(){return _0x570a97;}}),_0x2ae93c[_0x23f9ff(0x170)]=_0xdd7e30,_0x2ae93c['convertBrushModelToPenModel']=_0x95bfa1,_0x2ae93c[_0x23f9ff(0x164)]=_0x2f5c1d,_0x2ae93c['deleteInkPenAnchor']=_0x31d78b,_0x2ae93c['findClosestInkPenHandle']=_0x31d540,_0x2ae93c[_0x23f9ff(0x14b)]=_0x53ff64,_0x2ae93c[_0x23f9ff(0x181)]=_0x4dcb65,_0x2ae93c['getInkPenPreviewModel']=_0x42b6e8,_0x2ae93c['insertInkPenAnchorAt']=_0x5e32b0,_0x2ae93c[_0x23f9ff(0x134)]=_0x514d33,_0x2ae93c[_0x23f9ff(0x11e)]=_0x54cc69,_0x2ae93c[_0x23f9ff(0x136)]=_0x3a7e54;}));
|
|
1
|
+
(function(_0x333a8d,_0x3774ad){const _0x5c7150=_0x3a25,_0x211721=_0x333a8d();while(!![]){try{const _0x5bae21=parseInt(_0x5c7150(0x1ab))/0x1*(-parseInt(_0x5c7150(0x1a3))/0x2)+-parseInt(_0x5c7150(0x1f0))/0x3+parseInt(_0x5c7150(0x1b9))/0x4+-parseInt(_0x5c7150(0x200))/0x5*(parseInt(_0x5c7150(0x1c8))/0x6)+-parseInt(_0x5c7150(0x20b))/0x7+-parseInt(_0x5c7150(0x1d9))/0x8*(-parseInt(_0x5c7150(0x1b8))/0x9)+parseInt(_0x5c7150(0x1df))/0xa;if(_0x5bae21===_0x3774ad)break;else _0x211721['push'](_0x211721['shift']());}catch(_0x544444){_0x211721['push'](_0x211721['shift']());}}}(_0x5601,0xda0be),function(_0x27e1e0,_0x3ee756){const _0x10d8fb=_0x3a25;typeof exports==_0x10d8fb(0x1bf)&&typeof module<'u'?_0x3ee756(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x10d8fb(0x1d3)&&define[_0x10d8fb(0x204)]?define(['exports',_0x10d8fb(0x1f6),_0x10d8fb(0x1d7),_0x10d8fb(0x1f2)],_0x3ee756):(_0x27e1e0=typeof globalThis<'u'?globalThis:_0x27e1e0||self,_0x3ee756(_0x27e1e0['UniverProInk']={},_0x27e1e0[_0x10d8fb(0x1a2)],_0x27e1e0[_0x10d8fb(0x1e4)],_0x27e1e0[_0x10d8fb(0x1a5)]));}(this,function(_0x1e5548,_0x5d0e63,_0x5a5096,_0x3c5076){const _0x3e2d3d=_0x3a25;Object[_0x3e2d3d(0x1c9)](_0x1e5548,Symbol[_0x3e2d3d(0x1ce)],{'value':_0x3e2d3d(0x1c2)});let _0x750d33=0.0001;function _0x4faa80(_0x3579a9){return{'x':_0x3579a9['x'],'y':_0x3579a9['y']};}function _0x27923b(_0x9a3af3){const _0x309c3e=_0x3e2d3d;return{..._0x9a3af3,'in':_0x9a3af3['in']?_0x4faa80(_0x9a3af3['in']):void 0x0,'out':_0x9a3af3[_0x309c3e(0x1e3)]?_0x4faa80(_0x9a3af3[_0x309c3e(0x1e3)]):void 0x0};}function _0x45f530(_0x1ff9d8){const _0x14a99f=_0x3e2d3d;return{'kind':'pen','closed':_0x1ff9d8[_0x14a99f(0x21a)],'anchors':_0x1ff9d8[_0x14a99f(0x219)][_0x14a99f(0x1d6)](_0x27923b)};}function _0x20aa2d(_0x304374,_0x2849fb,_0x4e009e){return{'x':_0x304374['x']+(_0x2849fb['x']-_0x304374['x'])*_0x4e009e,'y':_0x304374['y']+(_0x2849fb['y']-_0x304374['y'])*_0x4e009e};}function _0x4c79dd(_0x1f2bd6,_0x442af4){const _0x260107=_0x3e2d3d;return Math[_0x260107(0x1e7)](_0x1f2bd6['x']-_0x442af4['x'],_0x1f2bd6['y']-_0x442af4['y']);}function _0x2d266b(_0x404356){const _0x54e0c7=_0x3e2d3d;let _0xeef88c=Math[_0x54e0c7(0x1e7)](_0x404356['x'],_0x404356['y']);return _0xeef88c<_0x750d33?{'x':0x1,'y':0x0}:{'x':_0x404356['x']/_0xeef88c,'y':_0x404356['y']/_0xeef88c};}function _0x5ea08e(_0x1ffbf5,_0x26a936,_0x114724=_0x4c79dd(_0x1ffbf5,_0x26a936)){let _0x5e407e=_0x2d266b({'x':_0x1ffbf5['x']-_0x26a936['x'],'y':_0x1ffbf5['y']-_0x26a936['y']});return{'x':_0x1ffbf5['x']+_0x5e407e['x']*_0x114724,'y':_0x1ffbf5['y']+_0x5e407e['y']*_0x114724};}function _0x95c95c(_0x1057fb,_0x25ccad){const _0x1b4ea8=_0x3e2d3d;let {anchors:_0x29adc7}=_0x1057fb;return _0x29adc7[_0x1b4ea8(0x1a0)]<0x2||_0x25ccad<0x0?null:_0x25ccad<_0x29adc7['length']-0x1?{'startIndex':_0x25ccad,'endIndex':_0x25ccad+0x1,'start':_0x29adc7[_0x25ccad],'end':_0x29adc7[_0x25ccad+0x1]}:_0x1057fb['closed']&&_0x25ccad===_0x29adc7['length']-0x1?{'startIndex':_0x29adc7[_0x1b4ea8(0x1a0)]-0x1,'endIndex':0x0,'start':_0x29adc7[_0x29adc7[_0x1b4ea8(0x1a0)]-0x1],'end':_0x29adc7[0x0]}:null;}function _0x37e941(_0x10f53e,_0x18d588){const _0x2b488c=_0x3e2d3d;var _0x4cd7c6,_0x4f9292;let _0x53b94c=_0x95c95c(_0x10f53e,_0x18d588);return _0x53b94c?[_0x53b94c[_0x2b488c(0x1a1)],(_0x4cd7c6=_0x53b94c['start'][_0x2b488c(0x1e3)])==null?_0x53b94c[_0x2b488c(0x1a1)]:_0x4cd7c6,(_0x4f9292=_0x53b94c['end']['in'])==null?_0x53b94c[_0x2b488c(0x1c3)]:_0x4f9292,_0x53b94c['end']]:null;}function _0x1b4f30(_0x53248f,_0x4b3577){const _0xd8b5cc=_0x3e2d3d;var _0x4f961f;return _0x4b3577===_0xd8b5cc(0x1b3)?_0x53248f:(_0x4f961f=_0x53248f[_0x4b3577])==null?null:_0x4f961f;}function _0x3dd58e(_0x290827,_0x81112f,_0x1aae3f){const _0x306a71=_0x3e2d3d;return _0x1aae3f==='anchor'||_0x290827[_0x306a71(0x21a)]?!0x0:_0x1aae3f==='in'?_0x81112f>0x0:_0x81112f<_0x290827[_0x306a71(0x219)][_0x306a71(0x1a0)]-0x1;}function _0x4ab5a6(_0x5393dc,_0x4f9617){let [_0x4d3fbc,_0x116adc,_0x20d219,_0x14e458]=_0x5393dc,_0x3d7031=_0x20aa2d(_0x4d3fbc,_0x116adc,_0x4f9617),_0x4b6221=_0x20aa2d(_0x116adc,_0x20d219,_0x4f9617),_0x54745d=_0x20aa2d(_0x20d219,_0x14e458,_0x4f9617);return _0x20aa2d(_0x20aa2d(_0x3d7031,_0x4b6221,_0x4f9617),_0x20aa2d(_0x4b6221,_0x54745d,_0x4f9617),_0x4f9617);}function _0x445693(_0x3e4c5d,_0x66df80){let [_0x45373c,_0x3f824a,_0x403ca6,_0x55e853]=_0x3e4c5d,_0x3213dd=_0x20aa2d(_0x45373c,_0x3f824a,_0x66df80),_0xea7d32=_0x20aa2d(_0x3f824a,_0x403ca6,_0x66df80),_0x13be45=_0x20aa2d(_0x403ca6,_0x55e853,_0x66df80),_0x190701=_0x20aa2d(_0x3213dd,_0xea7d32,_0x66df80),_0x75057e=_0x20aa2d(_0xea7d32,_0x13be45,_0x66df80),_0x10db2e=_0x20aa2d(_0x190701,_0x75057e,_0x66df80);return{'left':[_0x45373c,_0x3213dd,_0x190701,_0x10db2e],'right':[_0x10db2e,_0x75057e,_0x13be45,_0x55e853]};}function _0x38956b(_0x360a2b,_0x18e35c,_0x93c675){const _0x173269=_0x3e2d3d;let _0x2a6931=_0x93c675['x']-_0x18e35c['x'],_0x29a125=_0x93c675['y']-_0x18e35c['y'],_0x58ca46=_0x2a6931*_0x2a6931+_0x29a125*_0x29a125,_0x2f6d0c=_0x58ca46<=_0x750d33?0x0:Math[_0x173269(0x206)](0x0,Math[_0x173269(0x1bb)](0x1,((_0x360a2b['x']-_0x18e35c['x'])*_0x2a6931+(_0x360a2b['y']-_0x18e35c['y'])*_0x29a125)/_0x58ca46)),_0x4ae6fe={'x':_0x18e35c['x']+_0x2a6931*_0x2f6d0c,'y':_0x18e35c['y']+_0x29a125*_0x2f6d0c};return{'point':_0x4ae6fe,'ratio':_0x2f6d0c,'distance':_0x4c79dd(_0x360a2b,_0x4ae6fe)};}function _0x2fa1e9(_0x5cd0ac,_0x12c22f,_0xef9a14){const _0x37b629=_0x3e2d3d;return _0x38956b(_0x5cd0ac,_0x12c22f,_0xef9a14)[_0x37b629(0x216)]**0x2;}function _0x5d41a5(_0x6573aa,_0x4e0aea){const _0x400939=_0x3e2d3d;if(_0x6573aa[_0x400939(0x1a0)]<=0x2)return _0x6573aa[_0x400939(0x1d6)](_0x4faa80);let _0x4b7b6b=0x0,_0x444b7a=0x0,_0x3c4a2d=_0x6573aa[0x0],_0x37a8b9=_0x6573aa[_0x6573aa[_0x400939(0x1a0)]-0x1],_0x3bf940=_0x4e0aea*_0x4e0aea;for(let _0x4e1ac0=0x1;_0x4e1ac0<_0x6573aa['length']-0x1;_0x4e1ac0++){let _0x57c66d=_0x2fa1e9(_0x6573aa[_0x4e1ac0],_0x3c4a2d,_0x37a8b9);_0x57c66d>_0x4b7b6b&&(_0x4b7b6b=_0x57c66d,_0x444b7a=_0x4e1ac0);}if(_0x4b7b6b<=_0x3bf940)return[_0x4faa80(_0x3c4a2d),_0x4faa80(_0x37a8b9)];let _0x14eccd=_0x5d41a5(_0x6573aa['slice'](0x0,_0x444b7a+0x1),_0x4e0aea),_0x342be8=_0x5d41a5(_0x6573aa['slice'](_0x444b7a),_0x4e0aea);return[..._0x14eccd[_0x400939(0x1a8)](0x0,-0x1),..._0x342be8];}function _0x45abf2(_0x4b0415,_0x316567){var _0x48c856;let _0x5e7e96=_0x4b0415[_0x316567],_0x5434e4=_0x4b0415[_0x316567+0x1],_0x513edc=(_0x48c856=_0x4b0415[_0x316567-0x1])==null?_0x5e7e96:_0x48c856;return{'x':_0x5e7e96['x']+(_0x5434e4['x']-_0x513edc['x'])/0x6,'y':_0x5e7e96['y']+(_0x5434e4['y']-_0x513edc['y'])/0x6};}function _0x596826(_0x550b2f,_0x23c7ba){var _0x1129e9;let _0xfcfa86=_0x550b2f[_0x23c7ba],_0x5c0bf7=_0x550b2f[_0x23c7ba-0x1],_0x2f2bb5=(_0x1129e9=_0x550b2f[_0x23c7ba+0x1])==null?_0xfcfa86:_0x1129e9;return{'x':_0xfcfa86['x']-(_0x2f2bb5['x']-_0x5c0bf7['x'])/0x6,'y':_0xfcfa86['y']-(_0x2f2bb5['y']-_0x5c0bf7['y'])/0x6};}function _0x2a0f36(_0x1c08bb,_0x2cb990){const _0x31a791=_0x3e2d3d;var _0x17106a,_0x4f160e;let _0x148206=_0x1c08bb[_0x31a791(0x219)][_0x2cb990],_0x12cdb2=(_0x17106a=_0x1c08bb['anchors'][_0x2cb990-0x1])==null?_0x1c08bb[_0x31a791(0x21a)]?_0x1c08bb[_0x31a791(0x219)][_0x1c08bb[_0x31a791(0x219)][_0x31a791(0x1a0)]-0x1]:null:_0x17106a,_0x3139a1=(_0x4f160e=_0x1c08bb['anchors'][_0x2cb990+0x1])==null?_0x1c08bb[_0x31a791(0x21a)]?_0x1c08bb[_0x31a791(0x219)][0x0]:null:_0x4f160e,_0x3f2825=_0x12cdb2&&_0x3139a1?_0x2d266b({'x':_0x3139a1['x']-_0x12cdb2['x'],'y':_0x3139a1['y']-_0x12cdb2['y']}):_0x3139a1?_0x2d266b({'x':_0x3139a1['x']-_0x148206['x'],'y':_0x3139a1['y']-_0x148206['y']}):_0x12cdb2?_0x2d266b({'x':_0x148206['x']-_0x12cdb2['x'],'y':_0x148206['y']-_0x12cdb2['y']}):{'x':0x1,'y':0x0},_0x287a9b=_0x12cdb2&&_0x3139a1?Math[_0x31a791(0x206)](0x32,_0x4c79dd(_0x12cdb2,_0x3139a1)/0x4):0x32;return{'in':{'x':_0x148206['x']-_0x3f2825['x']*_0x287a9b,'y':_0x148206['y']-_0x3f2825['y']*_0x287a9b},'out':{'x':_0x148206['x']+_0x3f2825['x']*_0x287a9b,'y':_0x148206['y']+_0x3f2825['y']*_0x287a9b}};}function _0x538446(_0x1041ff,_0x21a2ee){const _0x1959df=_0x3e2d3d;let _0x4d6619=_0x1041ff[_0x21a2ee],_0x2224e2=_0x21a2ee==='in'?_0x1959df(0x1e3):'in',_0x36cffd=_0x1041ff[_0x2224e2];if(_0x4d6619){if(_0x1041ff[_0x1959df(0x1e8)]===_0x1959df(0x1ff)){_0x1041ff[_0x2224e2]=_0x5ea08e(_0x1041ff,_0x4d6619);return;}_0x1041ff[_0x1959df(0x1e8)]===_0x1959df(0x1c7)&&(_0x1041ff[_0x2224e2]=_0x5ea08e(_0x1041ff,_0x4d6619,_0x36cffd?_0x4c79dd(_0x1041ff,_0x36cffd):_0x4c79dd(_0x1041ff,_0x4d6619)));}}function _0x1255d5(_0x1c4e69,_0x46232f){const _0x5ce0dc=_0x3e2d3d;let _0x4c0747=_0x45f530(_0x1c4e69);return!_0x46232f||_0x4c0747[_0x5ce0dc(0x21a)]||_0x4c0747[_0x5ce0dc(0x219)][_0x5ce0dc(0x1a0)]===0x0||_0x4c0747['anchors'][_0x5ce0dc(0x1d2)]({'id':_0x5ce0dc(0x1f1),'x':_0x46232f['x'],'y':_0x46232f['y'],'pointType':'corner'}),_0x4c0747;}function _0x1dd37a(_0x4f7e50,_0x22da49={}){const _0x1166da=_0x3e2d3d;var _0x2329a,_0x412256;let _0x555143=Math['max'](0x0,(_0x2329a=_0x22da49['tolerance'])==null?Math[_0x1166da(0x206)](0x4,_0x4f7e50[_0x1166da(0x1ac)]*0.35):_0x2329a),_0xcbe75f=(_0x412256=_0x22da49[_0x1166da(0x1ba)])==null?_0x22d273=>_0x1166da(0x1af)+_0x22d273:_0x412256,_0x13d2ab=_0x5d41a5(_0x4f7e50[_0x1166da(0x1cc)],_0x555143),_0x27cd59=_0x13d2ab[_0x1166da(0x1d6)]((_0x59de22,_0xbb756)=>({'id':_0xcbe75f(_0xbb756),'x':_0x59de22['x'],'y':_0x59de22['y'],'pointType':_0x1166da(0x1d0)}));for(let _0x599319=0x0;_0x599319<_0x27cd59[_0x1166da(0x1a0)]-0x1;_0x599319++)_0x27cd59[_0x599319]['out']=_0x45abf2(_0x13d2ab,_0x599319),_0x27cd59[_0x599319+0x1]['in']=_0x596826(_0x13d2ab,_0x599319+0x1);return{'kind':_0x1166da(0x1c0),'closed':!0x1,'anchors':_0x27cd59};}function _0x9d965(_0x259eb7,_0x47f957,_0x4a7dff){const _0x24c94e=_0x3e2d3d;let _0x431f84=null,_0x37cd15=[_0x24c94e(0x1b3),'in',_0x24c94e(0x1e3)];return _0x259eb7[_0x24c94e(0x219)][_0x24c94e(0x1e5)]((_0x32fa6b,_0x1026f6)=>{_0x37cd15['forEach'](_0x4107cd=>{const _0x5e6727=_0x3a25;if(!_0x3dd58e(_0x259eb7,_0x1026f6,_0x4107cd))return;let _0x4fa852=_0x1b4f30(_0x32fa6b,_0x4107cd);if(!_0x4fa852)return;let _0x2defb8=_0x4c79dd(_0x47f957,_0x4fa852);_0x2defb8>_0x4a7dff||_0x431f84&&_0x2defb8>=_0x431f84[_0x5e6727(0x216)]||(_0x431f84={'handle':{'kind':_0x4107cd,'anchorId':_0x32fa6b['id']},'point':_0x4faa80(_0x4fa852),'distance':_0x2defb8});});}),_0x431f84;}function _0x1b364a(_0x579564,_0x40f881,_0x1643e8){const _0x37e6c0=_0x3e2d3d;let _0x154fe0=null,_0x4dbea4=_0x579564['closed']?_0x579564[_0x37e6c0(0x219)][_0x37e6c0(0x1a0)]:Math[_0x37e6c0(0x206)](0x0,_0x579564[_0x37e6c0(0x219)]['length']-0x1);for(let _0x32c3af=0x0;_0x32c3af<_0x4dbea4;_0x32c3af++){let _0x224909=_0x37e941(_0x579564,_0x32c3af);if(!_0x224909)continue;let _0x4edb29=_0x4ab5a6(_0x224909,0x0);for(let _0xaff366=0x1;_0xaff366<=0x20;_0xaff366++){let _0x2597f1=_0x4ab5a6(_0x224909,_0xaff366/0x20),_0x2b0e4b=_0x38956b(_0x40f881,_0x4edb29,_0x2597f1),_0x48f6e9=(_0xaff366-0x1+_0x2b0e4b[_0x37e6c0(0x1fa)])/0x20;(!_0x154fe0||_0x2b0e4b[_0x37e6c0(0x216)]<_0x154fe0['distance'])&&(_0x154fe0={'segmentIndex':_0x32c3af,'t':_0x48f6e9,'point':_0x2b0e4b[_0x37e6c0(0x1cd)],'distance':_0x2b0e4b[_0x37e6c0(0x216)]}),_0x4edb29=_0x2597f1;}}return _0x154fe0&&_0x154fe0[_0x37e6c0(0x216)]<=_0x1643e8?_0x154fe0:null;}function _0x29f2ef(_0x310685,_0x30bc9c,_0x2cda7c){const _0x298eb3=_0x3e2d3d;let _0x3dcb36=_0x45f530(_0x310685),_0x188832=_0x95c95c(_0x3dcb36,_0x30bc9c[_0x298eb3(0x1a7)]),_0x8da484=_0x37e941(_0x3dcb36,_0x30bc9c['segmentIndex']);if(!_0x188832||!_0x8da484)return _0x3dcb36;let _0x547497=_0x445693(_0x8da484,Math[_0x298eb3(0x206)](0x0,Math['min'](0x1,_0x30bc9c['t']))),_0x3094d3={'id':_0x2cda7c(),'x':_0x547497[_0x298eb3(0x20a)][0x3]['x'],'y':_0x547497[_0x298eb3(0x20a)][0x3]['y'],'in':_0x4faa80(_0x547497[_0x298eb3(0x20a)][0x2]),'out':_0x4faa80(_0x547497[_0x298eb3(0x1b2)][0x1]),'pointType':'free'};return _0x3dcb36[_0x298eb3(0x219)][_0x188832[_0x298eb3(0x1c1)]][_0x298eb3(0x1e3)]=_0x4faa80(_0x547497[_0x298eb3(0x20a)][0x1]),_0x3dcb36[_0x298eb3(0x219)][_0x188832[_0x298eb3(0x1f5)]]['in']=_0x4faa80(_0x547497[_0x298eb3(0x1b2)][0x2]),_0x3dcb36['anchors'][_0x298eb3(0x1fe)](_0x188832['startIndex']+0x1,0x0,_0x3094d3),_0x3dcb36;}function _0x243a10(_0x2d7eb9,_0x2dc6a3){const _0x1c7458=_0x3e2d3d;let _0x43f8ab=_0x45f530(_0x2d7eb9);return _0x43f8ab[_0x1c7458(0x219)]=_0x43f8ab[_0x1c7458(0x219)]['filter'](_0x247d33=>_0x247d33['id']!==_0x2dc6a3),_0x43f8ab[_0x1c7458(0x21a)]&&_0x43f8ab[_0x1c7458(0x219)][_0x1c7458(0x1a0)]<0x3&&(_0x43f8ab[_0x1c7458(0x21a)]=!0x1),_0x43f8ab;}function _0x4bb597(_0x5c5b64,_0x274024,_0x59b45a){const _0x838d74=_0x3e2d3d;let _0x1b1ecc=_0x45f530(_0x5c5b64),_0x28c07c=_0x1b1ecc[_0x838d74(0x219)][_0x838d74(0x1ed)](_0x5931db=>_0x5931db['id']===_0x274024),_0x179c6d=_0x1b1ecc['anchors'][_0x28c07c];if(!_0x179c6d)return _0x1b1ecc;if(_0x179c6d['pointType']=_0x59b45a,_0x59b45a===_0x838d74(0x1cf))return delete _0x179c6d['in'],delete _0x179c6d[_0x838d74(0x1e3)],_0x1b1ecc;let _0x52ede4=_0x2a0f36(_0x1b1ecc,_0x28c07c);if(_0x179c6d['in']=_0x179c6d['in']?_0x4faa80(_0x179c6d['in']):_0x52ede4['in'],_0x179c6d[_0x838d74(0x1e3)]=_0x179c6d['out']?_0x4faa80(_0x179c6d[_0x838d74(0x1e3)]):_0x52ede4[_0x838d74(0x1e3)],_0x59b45a==='symmetric'){let _0x16a3ba=Math[_0x838d74(0x206)](_0x4c79dd(_0x179c6d,_0x179c6d['in']),_0x4c79dd(_0x179c6d,_0x179c6d[_0x838d74(0x1e3)]),0x32),_0x44fedb=_0x2d266b({'x':_0x179c6d[_0x838d74(0x1e3)]['x']-_0x179c6d['x'],'y':_0x179c6d['out']['y']-_0x179c6d['y']});_0x179c6d[_0x838d74(0x1e3)]={'x':_0x179c6d['x']+_0x44fedb['x']*_0x16a3ba,'y':_0x179c6d['y']+_0x44fedb['y']*_0x16a3ba},_0x179c6d['in']={'x':_0x179c6d['x']-_0x44fedb['x']*_0x16a3ba,'y':_0x179c6d['y']-_0x44fedb['y']*_0x16a3ba};}else _0x59b45a===_0x838d74(0x1c7)&&_0x538446(_0x179c6d,'out');return _0x1b1ecc;}function _0x4e4a28(_0x298c14,_0x1cb35c){const _0x2f209a=_0x3e2d3d;var _0x46e667;let _0x3b571e=_0x298c14['anchors'][_0x2f209a(0x211)](_0x33816f=>_0x33816f['id']===_0x1cb35c),_0x3269a9=(_0x46e667=_0x3b571e==null?void 0x0:_0x3b571e[_0x2f209a(0x1e8)])==null?_0x2f209a(0x1cf):_0x46e667;return _0x4bb597(_0x298c14,_0x1cb35c,_0x3269a9===_0x2f209a(0x1cf)?'smooth':_0x3269a9===_0x2f209a(0x1c7)?_0x2f209a(0x1ff):_0x3269a9===_0x2f209a(0x1ff)?_0x2f209a(0x1d0):_0x2f209a(0x1cf));}function _0x1f11e4(_0x3eb447,_0x4b52a3,_0x39d3b4){const _0x28393e=_0x3e2d3d;let _0x2f8d30=_0x45f530(_0x3eb447),_0x5473bc=_0x2f8d30['anchors'][_0x28393e(0x211)](_0x51edfe=>_0x51edfe['id']===_0x4b52a3[_0x28393e(0x1ef)]);if(!_0x5473bc)return _0x2f8d30;if(_0x4b52a3[_0x28393e(0x21d)]===_0x28393e(0x1b3)){let _0x2f9930={'x':_0x39d3b4['x']-_0x5473bc['x'],'y':_0x39d3b4['y']-_0x5473bc['y']};return _0x5473bc['x']=_0x39d3b4['x'],_0x5473bc['y']=_0x39d3b4['y'],_0x5473bc['in']&&(_0x5473bc['in']={'x':_0x5473bc['in']['x']+_0x2f9930['x'],'y':_0x5473bc['in']['y']+_0x2f9930['y']}),_0x5473bc[_0x28393e(0x1e3)]&&(_0x5473bc[_0x28393e(0x1e3)]={'x':_0x5473bc[_0x28393e(0x1e3)]['x']+_0x2f9930['x'],'y':_0x5473bc[_0x28393e(0x1e3)]['y']+_0x2f9930['y']}),_0x2f8d30;}return _0x5473bc[_0x4b52a3[_0x28393e(0x21d)]]=_0x4faa80(_0x39d3b4),_0x5473bc[_0x28393e(0x1e8)]===_0x28393e(0x1cf)&&(_0x5473bc[_0x28393e(0x1e8)]=_0x28393e(0x1d0)),_0x538446(_0x5473bc,_0x4b52a3[_0x28393e(0x21d)]),_0x2f8d30;}let _0x4de1bb=1e-9;function _0x429f4e(_0x540c2b){const _0x2d5555=_0x3e2d3d;let _0x155c26=Math[_0x2d5555(0x1ec)](_0x540c2b*0x2710)/0x2710;return Object['is'](_0x155c26,-0x0)?'0':String(_0x155c26);}function _0x2201d8(_0x414637){return _0x429f4e(_0x414637['x'])+'\x20'+_0x429f4e(_0x414637['y']);}function _0x5189ee(_0x16560d,_0x32a447){return{'x':_0x16560d['x']-_0x32a447['x'],'y':_0x16560d['y']-_0x32a447['y']};}function _0x23e84a(_0x40b807,_0x11e935,_0x537853,_0x3787d9,_0x505b9b){let _0xdb0355=0x1-_0x505b9b;return{'x':_0xdb0355*_0xdb0355*_0xdb0355*_0x40b807['x']+0x3*_0xdb0355*_0xdb0355*_0x505b9b*_0x11e935['x']+0x3*_0xdb0355*_0x505b9b*_0x505b9b*_0x537853['x']+_0x505b9b*_0x505b9b*_0x505b9b*_0x3787d9['x'],'y':_0xdb0355*_0xdb0355*_0xdb0355*_0x40b807['y']+0x3*_0xdb0355*_0xdb0355*_0x505b9b*_0x11e935['y']+0x3*_0xdb0355*_0x505b9b*_0x505b9b*_0x537853['y']+_0x505b9b*_0x505b9b*_0x505b9b*_0x3787d9['y']};}function _0x28155a(_0x5dd945,_0x2dc2d1,_0x3476e5,_0x2d297a){const _0x387d2c=_0x3e2d3d;let _0x635044=-_0x5dd945+0x3*_0x2dc2d1-0x3*_0x3476e5+_0x2d297a,_0x1b9749=0x3*_0x5dd945-0x6*_0x2dc2d1+0x3*_0x3476e5,_0x3e7f41=-0x3*_0x5dd945+0x3*_0x2dc2d1,_0x4f5d99=[];if(Math['abs'](_0x635044)<_0x4de1bb){if(Math['abs'](_0x1b9749)<_0x4de1bb)return _0x4f5d99;let _0x3f4855=-_0x3e7f41/(0x2*_0x1b9749);return _0x3f4855>0x0&&_0x3f4855<0x1&&_0x4f5d99[_0x387d2c(0x1d2)](_0x3f4855),_0x4f5d99;}let _0x3db204=_0x1b9749*_0x1b9749-0x3*_0x635044*_0x3e7f41;if(_0x3db204<0x0)return _0x4f5d99;let _0x1c5b80=Math[_0x387d2c(0x1bc)](Math[_0x387d2c(0x206)](0x0,_0x3db204)),_0x47938c=(-_0x1b9749+_0x1c5b80)/(0x3*_0x635044),_0x5dd727=(-_0x1b9749-_0x1c5b80)/(0x3*_0x635044);return _0x47938c>0x0&&_0x47938c<0x1&&_0x4f5d99[_0x387d2c(0x1d2)](_0x47938c),_0x5dd727>0x0&&_0x5dd727<0x1&&Math[_0x387d2c(0x1c6)](_0x5dd727-_0x47938c)>_0x4de1bb&&_0x4f5d99[_0x387d2c(0x1d2)](_0x5dd727),_0x4f5d99;}function _0x452c10(_0x5b0df5,_0x34ab3a,_0x1a1b1e,_0x57063c,_0x2b1b12){const _0xc1e072=_0x3e2d3d;_0x5b0df5[_0xc1e072(0x1d2)](_0x34ab3a,_0x2b1b12),new Set([..._0x28155a(_0x34ab3a['x'],_0x1a1b1e['x'],_0x57063c['x'],_0x2b1b12['x']),..._0x28155a(_0x34ab3a['y'],_0x1a1b1e['y'],_0x57063c['y'],_0x2b1b12['y'])])['forEach'](_0x5bec93=>{const _0x373e78=_0xc1e072;_0x5b0df5[_0x373e78(0x1d2)](_0x23e84a(_0x34ab3a,_0x1a1b1e,_0x57063c,_0x2b1b12,_0x5bec93));});}function _0x241a41(_0x193e47){const _0x2a7683=_0x3e2d3d;let _0x2544f8=_0x193e47['anchors'];if(_0x2544f8['length']<=0x1)return _0x2544f8;let _0x219c16=[];for(let _0x15f519=0x1;_0x15f519<_0x2544f8[_0x2a7683(0x1a0)];_0x15f519++){var _0x3c9086,_0x41594a;let _0x2fc3e5=_0x2544f8[_0x15f519-0x1],_0x4b4ad7=_0x2544f8[_0x15f519];_0x452c10(_0x219c16,_0x2fc3e5,(_0x3c9086=_0x2fc3e5['out'])==null?_0x2fc3e5:_0x3c9086,(_0x41594a=_0x4b4ad7['in'])==null?_0x4b4ad7:_0x41594a,_0x4b4ad7);}if(_0x193e47[_0x2a7683(0x21a)]&&_0x2544f8[_0x2a7683(0x1a0)]>0x1){var _0x30eb94,_0x480c4c;let _0x27cc4a=_0x2544f8[_0x2544f8[_0x2a7683(0x1a0)]-0x1],_0x15099d=_0x2544f8[0x0];_0x452c10(_0x219c16,_0x27cc4a,(_0x30eb94=_0x27cc4a['out'])==null?_0x27cc4a:_0x30eb94,(_0x480c4c=_0x15099d['in'])==null?_0x15099d:_0x480c4c,_0x15099d);}return _0x219c16;}function _0x18e165(_0x2c130d){const _0x5e88fd=_0x3e2d3d;let _0x5ed27d=_0x2c130d[_0x5e88fd(0x1cc)];if(_0x5ed27d[_0x5e88fd(0x1a0)]<=0x1)return _0x5ed27d;let _0x592bf8=[];for(let _0x9384ac=0x0;_0x9384ac<_0x5ed27d[_0x5e88fd(0x1a0)]-0x1;_0x9384ac++){var _0xca0bd1,_0x55a850;let _0x4c7dce=_0x5ed27d[_0x9384ac],_0x308ff6=_0x5ed27d[_0x9384ac+0x1],_0x3519f1=(_0xca0bd1=_0x5ed27d[_0x9384ac-0x1])==null?_0x4c7dce:_0xca0bd1,_0x4a93bd=(_0x55a850=_0x5ed27d[_0x9384ac+0x2])==null?_0x308ff6:_0x55a850;_0x452c10(_0x592bf8,_0x4c7dce,{'x':_0x4c7dce['x']+(_0x308ff6['x']-_0x3519f1['x'])/0x6,'y':_0x4c7dce['y']+(_0x308ff6['y']-_0x3519f1['y'])/0x6},{'x':_0x308ff6['x']-(_0x4a93bd['x']-_0x4c7dce['x'])/0x6,'y':_0x308ff6['y']-(_0x4a93bd['y']-_0x4c7dce['y'])/0x6},_0x308ff6);}return _0x592bf8;}function _0xd80d1f(_0x2cb1f2){const _0x50e1e8=_0x3e2d3d;return _0x2cb1f2[_0x50e1e8(0x21d)]===_0x50e1e8(0x1c0)?_0x241a41(_0x2cb1f2):_0x18e165(_0x2cb1f2);}function _0x28c626(_0x398a60){const _0x27499b=_0x3e2d3d;let _0x49e360=Math[_0x27499b(0x1ec)](_0x398a60*0x2710)/0x2710;return Object['is'](_0x49e360,-0x0)?0x0:_0x49e360;}function _0x6a552(_0x54ccfb){const _0x5e1232=_0x3e2d3d;let _0x6aa795=_0xd80d1f(_0x54ccfb);if(_0x6aa795[_0x5e1232(0x1a0)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xe5ccfe=Math[_0x5e1232(0x1bb)](..._0x6aa795[_0x5e1232(0x1d6)](_0x576e3c=>_0x576e3c['x'])),_0x12401c=Math[_0x5e1232(0x1bb)](..._0x6aa795['map'](_0x59d429=>_0x59d429['y'])),_0x4ade20=Math['max'](..._0x6aa795[_0x5e1232(0x1d6)](_0x4ba525=>_0x4ba525['x'])),_0x565c32=Math['max'](..._0x6aa795[_0x5e1232(0x1d6)](_0x12b025=>_0x12b025['y']));return{'left':_0x28c626(_0xe5ccfe),'top':_0x28c626(_0x12401c),'width':_0x28c626(Math[_0x5e1232(0x206)](0x1,_0x4ade20-_0xe5ccfe)),'height':_0x28c626(Math[_0x5e1232(0x206)](0x1,_0x565c32-_0x12401c))};}function _0x29ad79(_0x42788e,_0x36d182){const _0x3742f0=_0x3e2d3d;let _0x443b9d=_0x42788e[_0x3742f0(0x219)];if(_0x443b9d[_0x3742f0(0x1a0)]===0x0)return'';let _0x2a5b8d=['M\x20'+_0x2201d8(_0x5189ee(_0x443b9d[0x0],_0x36d182))];for(let _0x5dbb67=0x1;_0x5dbb67<_0x443b9d[_0x3742f0(0x1a0)];_0x5dbb67++){var _0x42f78d,_0x5d4571;let _0x3a8c47=_0x443b9d[_0x5dbb67-0x1],_0x5f370d=_0x443b9d[_0x5dbb67],_0x596521=(_0x42f78d=_0x3a8c47['out'])==null?_0x3a8c47:_0x42f78d,_0xf83837=(_0x5d4571=_0x5f370d['in'])==null?_0x5f370d:_0x5d4571;_0x2a5b8d[_0x3742f0(0x1d2)]('C\x20'+_0x2201d8(_0x5189ee(_0x596521,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0xf83837,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0x5f370d,_0x36d182)));}if(_0x42788e[_0x3742f0(0x21a)]&&_0x443b9d[_0x3742f0(0x1a0)]>0x1){var _0x138c0e,_0x1539c8;let _0xc6ebed=_0x443b9d[_0x443b9d[_0x3742f0(0x1a0)]-0x1],_0xa1da4e=_0x443b9d[0x0],_0x256543=(_0x138c0e=_0xc6ebed[_0x3742f0(0x1e3)])==null?_0xc6ebed:_0x138c0e,_0x270196=(_0x1539c8=_0xa1da4e['in'])==null?_0xa1da4e:_0x1539c8;_0x2a5b8d[_0x3742f0(0x1d2)]('C\x20'+_0x2201d8(_0x5189ee(_0x256543,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0x270196,_0x36d182))+'\x20'+_0x2201d8(_0x5189ee(_0xa1da4e,_0x36d182))),_0x2a5b8d[_0x3742f0(0x1d2)]('Z');}return _0x2a5b8d[_0x3742f0(0x1ea)]('\x20');}function _0x32b2f1(_0x5d6304,_0x12c0ab){const _0x413cb8=_0x3e2d3d;let _0x5ce2dd=_0x5d6304[_0x413cb8(0x1cc)]['map'](_0x50ee60=>_0x5189ee(_0x50ee60,_0x12c0ab));if(_0x5ce2dd[_0x413cb8(0x1a0)]===0x0)return'';if(_0x5ce2dd[_0x413cb8(0x1a0)]===0x1)return'M\x20'+_0x2201d8(_0x5ce2dd[0x0]);let _0x6f473d=['M\x20'+_0x2201d8(_0x5ce2dd[0x0])];for(let _0x559b6f=0x0;_0x559b6f<_0x5ce2dd['length']-0x1;_0x559b6f++){var _0x5c8946,_0x4c6301;let _0x3298a2=_0x5ce2dd[_0x559b6f],_0x4ad527=_0x5ce2dd[_0x559b6f+0x1],_0x5b8684=(_0x5c8946=_0x5ce2dd[_0x559b6f-0x1])==null?_0x3298a2:_0x5c8946,_0x9e91ca=(_0x4c6301=_0x5ce2dd[_0x559b6f+0x2])==null?_0x4ad527:_0x4c6301,_0x59e7d9={'x':_0x3298a2['x']+(_0x4ad527['x']-_0x5b8684['x'])/0x6,'y':_0x3298a2['y']+(_0x4ad527['y']-_0x5b8684['y'])/0x6},_0x378794={'x':_0x4ad527['x']-(_0x9e91ca['x']-_0x3298a2['x'])/0x6,'y':_0x4ad527['y']-(_0x9e91ca['y']-_0x3298a2['y'])/0x6};_0x6f473d[_0x413cb8(0x1d2)]('C\x20'+_0x2201d8(_0x59e7d9)+'\x20'+_0x2201d8(_0x378794)+'\x20'+_0x2201d8(_0x4ad527));}return _0x6f473d[_0x413cb8(0x1ea)]('\x20');}function _0x28f44c(_0x31751f,_0x5247f0){return _0x31751f['kind']==='pen'?_0x29ad79(_0x31751f,_0x5247f0):_0x32b2f1(_0x31751f,_0x5247f0);}function _0x2a3fad(_0xe512bc,_0x407734){const _0x4ee38d=_0x3e2d3d;return _0x407734!=null&&_0x407734['color']?_0x407734['color']:_0xe512bc[_0x4ee38d(0x21d)]===_0x4ee38d(0x1c0)?_0x4ee38d(0x1bd):_0xe512bc[_0x4ee38d(0x1f8)];}function _0x3d3526(_0x4c455c,_0x52136f){const _0xf27174=_0x3e2d3d;return(_0x52136f==null?void 0x0:_0x52136f[_0xf27174(0x1ac)])===void 0x0?_0x4c455c[_0xf27174(0x21d)]===_0xf27174(0x1c0)?0x2:_0x4c455c[_0xf27174(0x1ac)]:_0x52136f['width'];}function _0x1d9af3(_0x125172,_0x2bb674){const _0x13b305=_0x3e2d3d;return(_0x2bb674==null?void 0x0:_0x2bb674['opacity'])===void 0x0?_0x125172[_0x13b305(0x21d)]===_0x13b305(0x1c0)?void 0x0:_0x125172['opacity']:_0x2bb674[_0x13b305(0x1b0)];}function _0xab0b95(_0x43d299,_0x256737){const _0x58ca11=_0x3e2d3d;let _0x27561a=_0x6a552(_0x43d299),_0xec0930=_0x28f44c(_0x43d299,{'x':_0x27561a[_0x58ca11(0x20a)],'y':_0x27561a[_0x58ca11(0x207)]}),_0x39135b=_0x43d299[_0x58ca11(0x21d)]==='pen'&&_0x43d299[_0x58ca11(0x21a)],_0x314a03=_0x256737==null?void 0x0:_0x256737[_0x58ca11(0x217)];return{'shapeType':_0x5d0e63[_0x58ca11(0x1f4)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x27561a[_0x58ca11(0x1ac)],'h':_0x27561a[_0x58ca11(0x1b4)],'fill':_0x39135b?_0x58ca11(0x1f9):_0x58ca11(0x1da),'stroke':!0x0,'data':_0xec0930,'dataArray':_0x1fe57d(_0x43d299,{'x':_0x27561a['left'],'y':_0x27561a[_0x58ca11(0x207)]})}]},'fill':_0x39135b&&_0x314a03?{'color':_0x314a03,'fillType':_0x5d0e63[_0x58ca11(0x1b1)][_0x58ca11(0x20d)]}:{'fillType':_0x5d0e63['ShapeFillEnum'][_0x58ca11(0x215)]},'stroke':{'color':_0x2a3fad(_0x43d299,_0x256737),'width':_0x3d3526(_0x43d299,_0x256737),'opacity':_0x1d9af3(_0x43d299,_0x256737),'lineStrokeType':_0x5d0e63['ShapeLineTypeEnum'][_0x58ca11(0x203)],'capType':_0x5d0e63[_0x58ca11(0x1fb)][_0x58ca11(0x201)],'lineJoinType':_0x5d0e63['ShapeLineJoinEnum'][_0x58ca11(0x201)]}};}function _0xe8730e(_0xc93258,_0x274938){return{'x':_0xc93258['x']-_0x274938['x'],'y':_0xc93258['y']-_0x274938['y']};}function _0x1fe57d(_0x1a33f5,_0x4c7e5b){const _0x14cd67=_0x3e2d3d;if(_0x1a33f5[_0x14cd67(0x21d)]==='pen'){let _0x38d662=_0x1a33f5[_0x14cd67(0x219)];if(_0x38d662['length']===0x0)return[];let _0x455753=_0xe8730e(_0x38d662[0x0],_0x4c7e5b),_0x365c73=[{'command':'M','points':[_0x455753['x'],_0x455753['y']]}];for(let _0x17ed81=0x1;_0x17ed81<_0x38d662[_0x14cd67(0x1a0)];_0x17ed81++){var _0x546f13,_0x461f39;let _0x4e95c8=_0x38d662[_0x17ed81-0x1],_0x54bed9=_0x38d662[_0x17ed81],_0x2f1bef=_0xe8730e((_0x546f13=_0x4e95c8[_0x14cd67(0x1e3)])==null?_0x4e95c8:_0x546f13,_0x4c7e5b),_0x461fc7=_0xe8730e((_0x461f39=_0x54bed9['in'])==null?_0x54bed9:_0x461f39,_0x4c7e5b),_0x13295b=_0xe8730e(_0x54bed9,_0x4c7e5b);_0x365c73[_0x14cd67(0x1d2)]({'command':'C','points':[_0x2f1bef['x'],_0x2f1bef['y'],_0x461fc7['x'],_0x461fc7['y'],_0x13295b['x'],_0x13295b['y']]});}if(_0x1a33f5[_0x14cd67(0x21a)]&&_0x38d662['length']>0x1){var _0x31827b,_0x444ab1;let _0x235fff=_0x38d662[_0x38d662['length']-0x1],_0x1105a5=_0x38d662[0x0],_0x170195=_0xe8730e((_0x31827b=_0x235fff[_0x14cd67(0x1e3)])==null?_0x235fff:_0x31827b,_0x4c7e5b),_0x1f68eb=_0xe8730e((_0x444ab1=_0x1105a5['in'])==null?_0x1105a5:_0x444ab1,_0x4c7e5b),_0x21faed=_0xe8730e(_0x1105a5,_0x4c7e5b);_0x365c73[_0x14cd67(0x1d2)]({'command':'C','points':[_0x170195['x'],_0x170195['y'],_0x1f68eb['x'],_0x1f68eb['y'],_0x21faed['x'],_0x21faed['y']]}),_0x365c73['push']({'command':'z','points':[]});}return _0x365c73;}let _0x3c7e08=_0x1a33f5['points'][_0x14cd67(0x1d6)](_0x5deadc=>_0xe8730e(_0x5deadc,_0x4c7e5b));if(_0x3c7e08['length']===0x0)return[];let _0x12aee1=[{'command':'M','points':[_0x3c7e08[0x0]['x'],_0x3c7e08[0x0]['y']]}];for(let _0x1b1cda=0x0;_0x1b1cda<_0x3c7e08[_0x14cd67(0x1a0)]-0x1;_0x1b1cda++){var _0x25059e,_0x394aa8;let _0x21d77a=_0x3c7e08[_0x1b1cda],_0x1b3218=_0x3c7e08[_0x1b1cda+0x1],_0x1c549f=(_0x25059e=_0x3c7e08[_0x1b1cda-0x1])==null?_0x21d77a:_0x25059e,_0x4020fb=(_0x394aa8=_0x3c7e08[_0x1b1cda+0x2])==null?_0x1b3218:_0x394aa8,_0x2b6f22={'x':_0x21d77a['x']+(_0x1b3218['x']-_0x1c549f['x'])/0x6,'y':_0x21d77a['y']+(_0x1b3218['y']-_0x1c549f['y'])/0x6},_0x540faa={'x':_0x1b3218['x']-(_0x4020fb['x']-_0x21d77a['x'])/0x6,'y':_0x1b3218['y']-(_0x4020fb['y']-_0x21d77a['y'])/0x6};_0x12aee1[_0x14cd67(0x1d2)]({'command':'C','points':[_0x2b6f22['x'],_0x2b6f22['y'],_0x540faa['x'],_0x540faa['y'],_0x1b3218['x'],_0x1b3218['y']]});}return _0x12aee1;}function _0x124243(_0x2befcb){const _0xf0516f=_0x3e2d3d;var _0x28a0c5;let {model:_0x452b1d,sourceModel:_0x35a2aa=_0x452b1d,style:_0x4a1646}=_0x2befcb,_0x438637=(_0x28a0c5=_0x2befcb[_0xf0516f(0x1eb)])==null?_0x452b1d['kind']:_0x28a0c5,_0x57abe0=_0x6a552(_0x452b1d),_0xb5ff79=_0x452b1d['kind']===_0xf0516f(0x1c0)&&_0x438637!=='pen'?_0x452b1d:void 0x0;return{'transform':{..._0x57abe0,'rotation':0x0},'shapeData':_0xab0b95(_0x452b1d,_0x4a1646),'ink':{'version':0x1,'tool':_0x438637,'sourceModel':_0x35a2aa,..._0xb5ff79?{'editModel':_0xb5ff79}:{},'normalizedBounds':_0x57abe0}};}var _0x4c00b0=_0x3e2d3d(0x20f),_0x1f09d8=_0x3e2d3d(0x1e0);function _0x404e25(_0x1341e5){'@babel/helpers - typeof';const _0x389909=_0x3e2d3d;return _0x404e25=typeof Symbol==_0x389909(0x1d3)&&typeof Symbol['iterator']==_0x389909(0x214)?function(_0x33278b){return typeof _0x33278b;}:function(_0x6c24a9){const _0x51ebe2=_0x389909;return _0x6c24a9&&typeof Symbol==_0x51ebe2(0x1d3)&&_0x6c24a9[_0x51ebe2(0x1aa)]===Symbol&&_0x6c24a9!==Symbol[_0x51ebe2(0x1b6)]?_0x51ebe2(0x214):typeof _0x6c24a9;},_0x404e25(_0x1341e5);}function _0x4b75d1(_0x3137f4,_0x4c457e){const _0xc962be=_0x3e2d3d;if(_0x404e25(_0x3137f4)!=_0xc962be(0x1bf)||!_0x3137f4)return _0x3137f4;var _0x9241bb=_0x3137f4[Symbol[_0xc962be(0x21c)]];if(_0x9241bb!==void 0x0){var _0x149106=_0x9241bb['call'](_0x3137f4,_0x4c457e||_0xc962be(0x21e));if(_0x404e25(_0x149106)!=_0xc962be(0x1bf))return _0x149106;throw TypeError(_0xc962be(0x1dc));}return(_0x4c457e==='string'?String:Number)(_0x3137f4);}function _0x1d2c18(_0x5788d9){const _0x559284=_0x3e2d3d;var _0x150dc6=_0x4b75d1(_0x5788d9,'string');return _0x404e25(_0x150dc6)==_0x559284(0x214)?_0x150dc6:_0x150dc6+'';}function _0x5d299a(_0x4ebf7b,_0xe59687,_0x378e28){const _0x442c71=_0x3e2d3d;return(_0xe59687=_0x1d2c18(_0xe59687))in _0x4ebf7b?Object[_0x442c71(0x1c9)](_0x4ebf7b,_0xe59687,{'value':_0x378e28,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ebf7b[_0xe59687]=_0x378e28,_0x4ebf7b;}let _0x248220=(0x0,_0x3c5076[_0x3e2d3d(0x1cb)])(_0x3e2d3d(0x1a6));var _0x5a8206=class{constructor(){const _0x573234=_0x3e2d3d;_0x5d299a(this,_0x573234(0x20c),[]);}[_0x3e2d3d(0x1de)](_0x41ff62){const _0x906695=_0x3e2d3d;return this[_0x906695(0x20c)][_0x906695(0x1d2)](_0x41ff62),(0x0,_0x3c5076[_0x906695(0x1a9)])(()=>{const _0x5a5773=_0x906695;let _0x2ad084=this[_0x5a5773(0x20c)][_0x5a5773(0x1a4)](_0x41ff62);_0x2ad084>=0x0&&this[_0x5a5773(0x20c)][_0x5a5773(0x1fe)](_0x2ad084,0x1);});}[_0x3e2d3d(0x1ae)](_0x4e394c){const _0x38bf7=_0x3e2d3d;for(let _0x19b68a of this[_0x38bf7(0x20c)])if(_0x19b68a['beginInkMode'](_0x4e394c))return!0x0;return!0x1;}async[_0x3e2d3d(0x210)](_0x141645){const _0x5ef37c=_0x3e2d3d;for(let _0x4d94f6 of this[_0x5ef37c(0x20c)])if(_0x4d94f6[_0x5ef37c(0x210)]&&await _0x4d94f6[_0x5ef37c(0x210)](_0x141645))return!0x0;return!0x1;}};let _0x5a802a={'id':_0x3e2d3d(0x1e6),'type':_0x3c5076[_0x3e2d3d(0x1ad)]['OPERATION'],'handler':(_0x4c8a57,_0x99f52f)=>_0x99f52f?_0x4c8a57[_0x3e2d3d(0x1b7)](_0x248220)[_0x3e2d3d(0x1ae)](_0x99f52f):!0x1},_0x1e9ceb={};function _0x5680b7(_0xa3aed8,_0x124210){return function(_0x5a5dc0,_0x394d80){_0x124210(_0x5a5dc0,_0x394d80,_0xa3aed8);};}function _0x72a505(_0x52615b,_0x2215ed,_0x577992,_0x546693){const _0x27758a=_0x3e2d3d;var _0x226938=arguments[_0x27758a(0x1a0)],_0x2db658=_0x226938<0x3?_0x2215ed:_0x546693===null?_0x546693=Object['getOwnPropertyDescriptor'](_0x2215ed,_0x577992):_0x546693,_0x31b16f;if(typeof Reflect==_0x27758a(0x1bf)&&typeof Reflect['decorate']==_0x27758a(0x1d3))_0x2db658=Reflect[_0x27758a(0x218)](_0x52615b,_0x2215ed,_0x577992,_0x546693);else{for(var _0x3444bd=_0x52615b[_0x27758a(0x1a0)]-0x1;_0x3444bd>=0x0;_0x3444bd--)(_0x31b16f=_0x52615b[_0x3444bd])&&(_0x2db658=(_0x226938<0x3?_0x31b16f(_0x2db658):_0x226938>0x3?_0x31b16f(_0x2215ed,_0x577992,_0x2db658):_0x31b16f(_0x2215ed,_0x577992))||_0x2db658);}return _0x226938>0x3&&_0x2db658&&Object[_0x27758a(0x1c9)](_0x2215ed,_0x577992,_0x2db658),_0x2db658;}let _0x3a54e7=class extends _0x3c5076[_0x3e2d3d(0x205)]{constructor(_0x2ecb44=_0x1e9ceb,_0x1810d8,_0x180204,_0x39d4ff){const _0x5aef00=_0x3e2d3d;super(),this[_0x5aef00(0x1b5)]=_0x2ecb44,this[_0x5aef00(0x19e)]=_0x1810d8,this[_0x5aef00(0x21b)]=_0x180204,this[_0x5aef00(0x1fc)]=_0x39d4ff;let {..._0x3fe1ca}=(0x0,_0x3c5076[_0x5aef00(0x1ca)])({},_0x1e9ceb,this[_0x5aef00(0x1b5)]);this[_0x5aef00(0x1fc)][_0x5aef00(0x1e1)]('ink.config',_0x3fe1ca);}['onStarting'](){const _0x18d484=_0x3e2d3d;[[_0x248220,{'useClass':_0x5a8206}]][_0x18d484(0x1e5)](_0x23947a=>this[_0x18d484(0x19e)][_0x18d484(0x202)](_0x23947a)),this['disposeWithMe'](this[_0x18d484(0x21b)][_0x18d484(0x1d8)](_0x5a802a));}};_0x5d299a(_0x3a54e7,'pluginName',_0x3e2d3d(0x1db)),_0x5d299a(_0x3a54e7,_0x3e2d3d(0x1ee),_0x4c00b0),_0x5d299a(_0x3a54e7,'version',_0x1f09d8),_0x5d299a(_0x3a54e7,_0x3e2d3d(0x1fd),_0x3c5076[_0x3e2d3d(0x213)]['UNIVER_UNKNOWN']),_0x3a54e7=_0x72a505([(0x0,_0x3c5076[_0x3e2d3d(0x1be)])(_0x5a5096[_0x3e2d3d(0x1f3)]),_0x5680b7(0x1,(0x0,_0x3c5076[_0x3e2d3d(0x1dd)])(_0x3c5076[_0x3e2d3d(0x209)])),_0x5680b7(0x2,_0x3c5076[_0x3e2d3d(0x1d5)]),_0x5680b7(0x3,_0x3c5076[_0x3e2d3d(0x1e9)])],_0x3a54e7),_0x1e5548[_0x3e2d3d(0x1c4)]=_0x248220,Object[_0x3e2d3d(0x1c9)](_0x1e5548,'UniverInkPlugin',{'enumerable':!0x0,'get':function(){return _0x3a54e7;}}),_0x1e5548[_0x3e2d3d(0x1f7)]=_0x124243,_0x1e5548['convertBrushModelToPenModel']=_0x1dd37a,_0x1e5548['cycleInkPenAnchorPointType']=_0x4e4a28,_0x1e5548[_0x3e2d3d(0x1d1)]=_0x243a10,_0x1e5548[_0x3e2d3d(0x212)]=_0x9d965,_0x1e5548[_0x3e2d3d(0x208)]=_0x1b364a,_0x1e5548[_0x3e2d3d(0x20e)]=_0x6a552,_0x1e5548[_0x3e2d3d(0x1e2)]=_0x1255d5,_0x1e5548['insertInkPenAnchorAt']=_0x29f2ef,_0x1e5548[_0x3e2d3d(0x1d4)]=_0x3dd58e,_0x1e5548[_0x3e2d3d(0x19f)]=_0x1f11e4,_0x1e5548[_0x3e2d3d(0x1c5)]=_0x4bb597;}));function _0x3a25(_0x43493d,_0x47b4ce){_0x43493d=_0x43493d-0x19e;const _0x560183=_0x5601();let _0x3a25d1=_0x560183[_0x43493d];return _0x3a25d1;}function _0x5601(){const _0x2e1285=['__ink-preview-anchor__','@univerjs/core','UniverLicensePlugin','ShapeTypeEnum','endIndex','@univerjs-pro/engine-shape','buildInkCustomShapePayload','color','norm','ratio','ShapeLineCapEnum','_configService','type','splice','symmetric','20xbcgzL','Round','add','SolidLine','amd','Plugin','max','top','findClosestInkPenSegment','Injector','left','1076677XoaYDi','_adapters','SolidFill','getInkModelBounds','@univerjs-pro/ink','createCustomShape','find','findClosestInkPenHandle','UniverInstanceType','symbol','NoFill','distance','fillColor','decorate','anchors','closed','_commandService','toPrimitive','kind','default','_injector','moveInkPenAnchorPoint','length','start','UniverProEngineShape','241622fKprLn','indexOf','UniverCore','ink.host-adapter.service','segmentIndex','slice','toDisposable','constructor','11WtirBI','width','CommandType','beginInkMode','ink-centerline-','opacity','ShapeFillEnum','right','anchor','height','_config','prototype','get','405LlmurC','3777936CQqcCW','createId','min','sqrt','#f54a45','DependentOn','object','pen','startIndex','Module','end','IInkHostAdapterService','setInkPenAnchorPointType','abs','smooth','1093332wmStSy','defineProperty','merge','createIdentifier','points','point','toStringTag','corner','free','deleteInkPenAnchor','push','function','isInkPenHandleVisible','ICommandService','map','@univerjs-pro/license','registerCommand','166688vlWeXe','none','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Inject','registerAdapter','13533350rPXVuX','1.0.0-alpha.7','setConfig','getInkPenPreviewModel','out','UniverProLicense','forEach','ink.operation.start','hypot','pointType','IConfigService','join','tool','round','findIndex','packageName','anchorId','392103BQkMDS'];_0x5601=function(){return _0x2e1285;};return _0x5601();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/ink",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.7",
|
|
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.
|
|
62
|
-
"@univerjs-pro/
|
|
63
|
-
"@univerjs
|
|
64
|
-
"@univerjs/
|
|
61
|
+
"@univerjs-pro/boards": "1.0.0-alpha.7",
|
|
62
|
+
"@univerjs-pro/license": "1.0.0-alpha.7",
|
|
63
|
+
"@univerjs/core": "1.0.0-alpha.7",
|
|
64
|
+
"@univerjs-pro/engine-shape": "1.0.0-alpha.7"
|
|
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.
|
|
69
|
+
"@univerjs-infra/shared": "1.0.0-alpha.7"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"test": "vitest run",
|