@univerjs-pro/ink 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 _0xa4807d=_0x5c84;(function(_0x5c9bea,_0x3d36f2){const _0x7822a8=_0x5c84,_0x203515=_0x5c9bea();while(!![]){try{const _0x116367=-parseInt(_0x7822a8(0x10b))/0x1+parseInt(_0x7822a8(0xe6))/0x2+-parseInt(_0x7822a8(0xe4))/0x3*(-parseInt(_0x7822a8(0xf4))/0x4)+-parseInt(_0x7822a8(0x10a))/0x5+-parseInt(_0x7822a8(0xed))/0x6+parseInt(_0x7822a8(0xff))/0x7+-parseInt(_0x7822a8(0x107))/0x8*(-parseInt(_0x7822a8(0xf8))/0x9);if(_0x116367===_0x3d36f2)break;else _0x203515['push'](_0x203515['shift']());}catch(_0x26f3a7){_0x203515['push'](_0x203515['shift']());}}}(_0xb656,0xc73a4),Object[_0xa4807d(0x105)](exports,Symbol['toStringTag'],{'value':_0xa4807d(0xe2)}));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[_0xa4807d(0xfb)]{[_0xa4807d(0xfe)](_0x4e0d9d){const _0x486c5b=_0xa4807d;let _0x1b697e=o(_0x4e0d9d);return _0x1b697e&&this[_0x486c5b(0xf1)](_0x1b697e,{'insertIndex':_0x4e0d9d[_0x486c5b(0x108)]})?_0x1b697e:null;}[_0xa4807d(0xe3)](){const _0x56a348=_0xa4807d;return this[_0x56a348(0xdd)]({'elementType':e[_0x56a348(0xef)][_0x56a348(0xd9)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x56a348(0xfd)](f);}};function o(_0x1365cd,_0x22dc2e){const _0x35d7a6=_0xa4807d;if(!c(_0x1365cd[_0x35d7a6(0x106)])||_0x1365cd[_0x35d7a6(0xd8)]!==void 0x0&&!c(_0x1365cd['sourceModel'])||!l(_0x1365cd[_0x35d7a6(0x10d)]))return null;let _0x18fafa=_0x1365cd[_0x35d7a6(0xda)]??(_0x22dc2e==null?void 0x0:_0x22dc2e[_0x35d7a6(0xda)]),_0x30023e=r[_0x35d7a6(0xf2)][_0x35d7a6(0xec)](_0x1365cd['model']),_0x394e8c=(0x0,n[_0x35d7a6(0xdc)])({'model':_0x30023e,'style':_0x1365cd[_0x35d7a6(0x10d)],'tool':_0x1365cd[_0x35d7a6(0x10c)],'sourceModel':_0x1365cd[_0x35d7a6(0xd8)]?r[_0x35d7a6(0xf2)][_0x35d7a6(0xec)](_0x1365cd[_0x35d7a6(0xd8)]):_0x30023e}),_0x343d01=u(_0x22dc2e==null?void 0x0:_0x22dc2e[_0x35d7a6(0xf6)]);return{'id':(_0x22dc2e==null?void 0x0:_0x22dc2e['id'])??_0x1365cd['id']??(0x0,r[_0x35d7a6(0xd6)])(0x6),'type':e[_0x35d7a6(0xef)][_0x35d7a6(0xd9)],'transform':_0x394e8c['transform'],'shapeData':_0x394e8c[_0x35d7a6(0xee)],'parentId':_0x18fafa??void 0x0,'laneId':_0x1365cd[_0x35d7a6(0xdf)]===void 0x0?_0x22dc2e==null?void 0x0:_0x22dc2e[_0x35d7a6(0xdf)]:_0x1365cd[_0x35d7a6(0xdf)],'custom':{..._0x343d01,'ink':_0x394e8c['ink']}};}function s(_0x4f0c66){const _0x4a9205=_0xa4807d;return Number[_0x4a9205(0xf9)](_0x4f0c66['x'])&&Number[_0x4a9205(0xf9)](_0x4f0c66['y']);}function c(_0x5a84a6){const _0x48a35c=_0xa4807d;if(_0x5a84a6[_0x48a35c(0xd7)]===_0x48a35c(0x10e)){let _0x59e13c=new Set();return _0x5a84a6['anchors'][_0x48a35c(0x10f)]>=(_0x5a84a6[_0x48a35c(0xe9)]?0x3:0x2)&&_0x5a84a6[_0x48a35c(0x102)][_0x48a35c(0xde)](_0x5c553d=>{const _0x2dadec=_0x48a35c;let _0x44f625=_0x5c553d['id'][_0x2dadec(0x104)]()[_0x2dadec(0x10f)]>0x0&&!_0x59e13c[_0x2dadec(0xd5)](_0x5c553d['id'])&&s(_0x5c553d)&&(!_0x5c553d['in']||s(_0x5c553d['in']))&&(!_0x5c553d[_0x2dadec(0xfa)]||s(_0x5c553d[_0x2dadec(0xfa)]));return _0x59e13c[_0x2dadec(0x109)](_0x5c553d['id']),_0x44f625;});}return _0x5a84a6['points']['length']>=0x2&&_0x5a84a6[_0x48a35c(0xd4)][_0x48a35c(0xde)](_0x244929=>s(_0x244929)&&Number[_0x48a35c(0xf9)](_0x244929['t'])&&(_0x244929['pressure']===void 0x0||Number[_0x48a35c(0xf9)](_0x244929[_0x48a35c(0xf7)])))&&Number[_0x48a35c(0xf9)](_0x5a84a6[_0x48a35c(0xe0)])&&_0x5a84a6[_0x48a35c(0xe0)]>0x0&&Number[_0x48a35c(0xf9)](_0x5a84a6[_0x48a35c(0xf3)])&&_0x5a84a6[_0x48a35c(0xf3)]>=0x0&&_0x5a84a6[_0x48a35c(0xf3)]<=0x1;}function l(_0x18d9cd){const _0x57f036=_0xa4807d;return _0x18d9cd===void 0x0||(_0x18d9cd[_0x57f036(0xe0)]===void 0x0||Number[_0x57f036(0xf9)](_0x18d9cd[_0x57f036(0xe0)])&&_0x18d9cd[_0x57f036(0xe0)]>0x0)&&(_0x18d9cd['opacity']===void 0x0||Number[_0x57f036(0xf9)](_0x18d9cd[_0x57f036(0xf3)])&&_0x18d9cd[_0x57f036(0xf3)]>=0x0&&_0x18d9cd[_0x57f036(0xf3)]<=0x1);}function u(_0x562d5f){const _0x31c25f=_0xa4807d;return _0x562d5f&&typeof _0x562d5f==_0x31c25f(0x101)&&!Array[_0x31c25f(0xdb)](_0x562d5f)?_0x562d5f:{};}function d(_0x5280f0){const _0x1f7445=_0xa4807d;let _0x460a3c=u(_0x5280f0['custom'])['ink'];if(!_0x460a3c||typeof _0x460a3c!=_0x1f7445(0x101)||Array[_0x1f7445(0xdb)](_0x460a3c))return null;let _0x3c64a1=_0x460a3c;return _0x3c64a1[_0x1f7445(0xf0)]===0x1&&_0x3c64a1[_0x1f7445(0xd8)]&&typeof _0x3c64a1[_0x1f7445(0xd8)]==_0x1f7445(0x101)?_0x3c64a1:null;}function f(_0x3dbcb6){const _0x5360ce=_0xa4807d;return _0x3dbcb6[_0x5360ce(0x100)]===e[_0x5360ce(0xef)][_0x5360ce(0xd9)]&&!!d(_0x3dbcb6);}t[_0xa4807d(0xfb)][_0xa4807d(0xe5)](a);const p={'Pen':_0xa4807d(0x10e),'Brush':_0xa4807d(0xea),'Highlighter':'highlighter'},m={'Corner':'corner','Smooth':_0xa4807d(0x103),'Symmetric':'symmetric','Free':_0xa4807d(0xeb)},h={'Anchor':_0xa4807d(0xf5),'In':'in','Out':'out'};var g=class extends i[_0xa4807d(0xfc)]{get['BoardInkTool'](){return p;}get[_0xa4807d(0xe8)](){return m;}get[_0xa4807d(0xe1)](){return h;}};function _0xb656(){const _0x127b59=['style','pen','length','points','has','generateRandomId','kind','sourceModel','Shape','parentId','isArray','buildInkCustomShapePayload','findElements','every','laneId','width','BoardInkHandleKind','Module','getInks','277713vzFDjf','extend','3014786jBVhkX','BoardInkTool','BoardInkPointType','closed','brush','free','deepClone','5108160QIUSNj','shapeData','BoardElementType','version','_addElement','Tools','opacity','4kDQbHD','anchor','custom','pressure','265653RapIJW','isFinite','out','FBoard','FEnum','filter','insertInk','5031117cHTaXV','type','object','anchors','smooth','trim','defineProperty','model','56MDvqVG','insertIndex','add','2065995AiCZmq','444719zGoUYg','tool'];_0xb656=function(){return _0x127b59;};return _0xb656();}function _0x5c84(_0x157c0a,_0x5f3ff2){_0x157c0a=_0x157c0a-0xd4;const _0xb6566=_0xb656();let _0x5c84ff=_0xb6566[_0x157c0a];return _0x5c84ff;}i[_0xa4807d(0xfc)][_0xa4807d(0xe5)](g),exports[_0xa4807d(0xe1)]=h,exports[_0xa4807d(0xe8)]=m,exports[_0xa4807d(0xe7)]=p;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4ebf33=_0x3356;(function(_0x5ce6ad,_0x3aeea2){const _0x353020=_0x3356,_0x5f48f3=_0x5ce6ad();while(!![]){try{const _0x5d9b79=-parseInt(_0x353020(0x11e))/0x1+parseInt(_0x353020(0xdd))/0x2+-parseInt(_0x353020(0x10b))/0x3*(parseInt(_0x353020(0xac))/0x4)+-parseInt(_0x353020(0xd2))/0x5*(parseInt(_0x353020(0xe3))/0x6)+-parseInt(_0x353020(0xce))/0x7*(parseInt(_0x353020(0x106))/0x8)+parseInt(_0x353020(0xf4))/0x9*(-parseInt(_0x353020(0xf8))/0xa)+parseInt(_0x353020(0xe4))/0xb*(parseInt(_0x353020(0xf9))/0xc);if(_0x5d9b79===_0x3aeea2)break;else _0x5f48f3['push'](_0x5f48f3['shift']());}catch(_0xf01e42){_0x5f48f3['push'](_0x5f48f3['shift']());}}}(_0x27dd,0x367c0),Object['defineProperty'](exports,Symbol[_0x4ebf33(0x11c)],{'value':_0x4ebf33(0xcb)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x1cf3b3){return{'x':_0x1cf3b3['x'],'y':_0x1cf3b3['y']};}function a(_0x35e403){return{..._0x35e403,'in':_0x35e403['in']?i(_0x35e403['in']):void 0x0,'out':_0x35e403['out']?i(_0x35e403['out']):void 0x0};}function o(_0x33b883){const _0x1b2c90=_0x4ebf33;return{'kind':_0x1b2c90(0xcf),'closed':_0x33b883[_0x1b2c90(0xe9)],'anchors':_0x33b883[_0x1b2c90(0xc8)][_0x1b2c90(0xee)](a)};}function s(_0xb70350,_0x42bebc,_0x3bf2e7){return{'x':_0xb70350['x']+(_0x42bebc['x']-_0xb70350['x'])*_0x3bf2e7,'y':_0xb70350['y']+(_0x42bebc['y']-_0xb70350['y'])*_0x3bf2e7};}function c(_0x5a3022,_0x215442){const _0x42a25f=_0x4ebf33;return Math[_0x42a25f(0xfa)](_0x5a3022['x']-_0x215442['x'],_0x5a3022['y']-_0x215442['y']);}function l(_0x5c6346){let _0x2880cd=Math['hypot'](_0x5c6346['x'],_0x5c6346['y']);return _0x2880cd<r?{'x':0x1,'y':0x0}:{'x':_0x5c6346['x']/_0x2880cd,'y':_0x5c6346['y']/_0x2880cd};}function u(_0x8a72fc,_0x3144a0,_0x56f264=c(_0x8a72fc,_0x3144a0)){let _0x414db7=l({'x':_0x8a72fc['x']-_0x3144a0['x'],'y':_0x8a72fc['y']-_0x3144a0['y']});return{'x':_0x8a72fc['x']+_0x414db7['x']*_0x56f264,'y':_0x8a72fc['y']+_0x414db7['y']*_0x56f264};}function d(_0x39cd22,_0x18d88f){const _0x374419=_0x4ebf33;let {anchors:_0x4767a8}=_0x39cd22;return _0x4767a8[_0x374419(0xf3)]<0x2||_0x18d88f<0x0?null:_0x18d88f<_0x4767a8[_0x374419(0xf3)]-0x1?{'startIndex':_0x18d88f,'endIndex':_0x18d88f+0x1,'start':_0x4767a8[_0x18d88f],'end':_0x4767a8[_0x18d88f+0x1]}:_0x39cd22[_0x374419(0xe9)]&&_0x18d88f===_0x4767a8['length']-0x1?{'startIndex':_0x4767a8[_0x374419(0xf3)]-0x1,'endIndex':0x0,'start':_0x4767a8[_0x4767a8[_0x374419(0xf3)]-0x1],'end':_0x4767a8[0x0]}:null;}function f(_0x1bada6,_0x48054a){const _0x19c560=_0x4ebf33;let _0x382bbe=d(_0x1bada6,_0x48054a);return _0x382bbe?[_0x382bbe[_0x19c560(0xb8)],_0x382bbe[_0x19c560(0xb8)][_0x19c560(0xb3)]??_0x382bbe[_0x19c560(0xb8)],_0x382bbe[_0x19c560(0xab)]['in']??_0x382bbe[_0x19c560(0xab)],_0x382bbe['end']]:null;}function ee(_0x56b1e0,_0x26bdcc){const _0x3a129c=_0x4ebf33;return _0x26bdcc===_0x3a129c(0xc5)?_0x56b1e0:_0x56b1e0[_0x26bdcc]??null;}function p(_0x4ea54f,_0x5bbfab,_0xed7f9a){const _0x5a1625=_0x4ebf33;return _0xed7f9a==='anchor'||_0x4ea54f[_0x5a1625(0xe9)]?!0x0:_0xed7f9a==='in'?_0x5bbfab>0x0:_0x5bbfab<_0x4ea54f[_0x5a1625(0xc8)][_0x5a1625(0xf3)]-0x1;}function m(_0xbdbd47,_0x26f31c){let [_0x4a4aaf,_0x24b63d,_0x209c0,_0x5d41e7]=_0xbdbd47,_0x47ae11=s(_0x4a4aaf,_0x24b63d,_0x26f31c),_0x13e49e=s(_0x24b63d,_0x209c0,_0x26f31c),_0x2e4b19=s(_0x209c0,_0x5d41e7,_0x26f31c);return s(s(_0x47ae11,_0x13e49e,_0x26f31c),s(_0x13e49e,_0x2e4b19,_0x26f31c),_0x26f31c);}function h(_0x36a355,_0xc06b14){let [_0x3b9b9a,_0x4f1c83,_0x30a16b,_0x5913d9]=_0x36a355,_0x220e37=s(_0x3b9b9a,_0x4f1c83,_0xc06b14),_0xb4df94=s(_0x4f1c83,_0x30a16b,_0xc06b14),_0x3f0623=s(_0x30a16b,_0x5913d9,_0xc06b14),_0x178361=s(_0x220e37,_0xb4df94,_0xc06b14),_0x343e52=s(_0xb4df94,_0x3f0623,_0xc06b14),_0x2c4412=s(_0x178361,_0x343e52,_0xc06b14);return{'left':[_0x3b9b9a,_0x220e37,_0x178361,_0x2c4412],'right':[_0x2c4412,_0x343e52,_0x3f0623,_0x5913d9]};}function _0x27dd(){const _0x4d172d=['IConfigService','end','129304bhSszV','filter','min','NoFill','abs','endIndex','push','out','@univerjs-pro/ink','createCustomShape','ShapeLineTypeEnum','moveInkPenAnchorPoint','start','getInkModelBounds','findIndex','anchorId','ink.host-adapter.service','cycleInkPenAnchorPointType','fillColor','version','Injector','ShapeTypeEnum','string','Round','UniverLicensePlugin','anchor','iterator','color','anchors','Plugin','ratio','Module','packageName','right','2197685zHzSII','pen','DependentOn','join','961420wYXIpY','corner','getOwnPropertyDescriptor','merge','function','startIndex','_adapters','opacity','disposeWithMe','deleteInkPenAnchor','pointType','209060aiJxaj','kind','1.1.0','find','SolidFill','pluginName','6BWCmpu','11jCjkxU','add','tolerance','Inject','indexOf','closed','ink-centerline-','ShapeLineCapEnum','_configService','free','map','ink.config','buildInkCustomShapePayload','_config','SolidLine','length','410751LgwGVQ','UNIVER_UNKNOWN','prototype','ShapeFillEnum','70oSArmZ','15606012bZoJzy','hypot','toPrimitive','top','setConfig','points','Rect','findClosestInkPenSegment','none','findClosestInkPenHandle','smooth','CommandType','createIdentifier','8fJzvTs','UniverInkPlugin','UniverInstanceType','ShapeLineJoinEnum','distance','15pDVaSs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createId','sqrt','slice','symbol','round','defineProperty','get','call','UNIVER_INK_PLUGIN','object','default','forEach','symmetric','width','ICommandService','toStringTag','__ink-preview-anchor__','194521HlhfsX','isInkPenHandleVisible','left','type','beginInkMode','tool','_injector','max','decorate'];_0x27dd=function(){return _0x4d172d;};return _0x27dd();}function g(_0x31ce47,_0x4ea4ac,_0x24c20d){const _0x4e107e=_0x4ebf33;let _0x2a3bce=_0x24c20d['x']-_0x4ea4ac['x'],_0x1292c3=_0x24c20d['y']-_0x4ea4ac['y'],_0x38e96b=_0x2a3bce*_0x2a3bce+_0x1292c3*_0x1292c3,_0x3ea08e=_0x38e96b<=r?0x0:Math[_0x4e107e(0x125)](0x0,Math[_0x4e107e(0xae)](0x1,((_0x31ce47['x']-_0x4ea4ac['x'])*_0x2a3bce+(_0x31ce47['y']-_0x4ea4ac['y'])*_0x1292c3)/_0x38e96b)),_0x3082b1={'x':_0x4ea4ac['x']+_0x2a3bce*_0x3ea08e,'y':_0x4ea4ac['y']+_0x1292c3*_0x3ea08e};return{'point':_0x3082b1,'ratio':_0x3ea08e,'distance':c(_0x31ce47,_0x3082b1)};}function te(_0x292d84,_0x1cfcd9,_0x2a2ef4){const _0x2e976f=_0x4ebf33;return g(_0x292d84,_0x1cfcd9,_0x2a2ef4)[_0x2e976f(0x10a)]**0x2;}function _(_0xcb6e84,_0x3e70a8){const _0x4d9c8b=_0x4ebf33;if(_0xcb6e84['length']<=0x2)return _0xcb6e84[_0x4d9c8b(0xee)](i);let _0x18dbac=0x0,_0x3b8cb1=0x0,_0x56e89f=_0xcb6e84[0x0],_0x52afc0=_0xcb6e84[_0xcb6e84[_0x4d9c8b(0xf3)]-0x1],_0x102c70=_0x3e70a8*_0x3e70a8;for(let _0x18e70b=0x1;_0x18e70b<_0xcb6e84[_0x4d9c8b(0xf3)]-0x1;_0x18e70b++){let _0x1434ef=te(_0xcb6e84[_0x18e70b],_0x56e89f,_0x52afc0);_0x1434ef>_0x18dbac&&(_0x18dbac=_0x1434ef,_0x3b8cb1=_0x18e70b);}if(_0x18dbac<=_0x102c70)return[i(_0x56e89f),i(_0x52afc0)];let _0x5f1785=_(_0xcb6e84[_0x4d9c8b(0x10f)](0x0,_0x3b8cb1+0x1),_0x3e70a8),_0x179e31=_(_0xcb6e84[_0x4d9c8b(0x10f)](_0x3b8cb1),_0x3e70a8);return[..._0x5f1785['slice'](0x0,-0x1),..._0x179e31];}function ne(_0x1dfe90,_0x4f364f){let _0x531eb4=_0x1dfe90[_0x4f364f],_0x23b1c1=_0x1dfe90[_0x4f364f+0x1],_0x1a2e6c=_0x1dfe90[_0x4f364f-0x1]??_0x531eb4;return{'x':_0x531eb4['x']+(_0x23b1c1['x']-_0x1a2e6c['x'])/0x6,'y':_0x531eb4['y']+(_0x23b1c1['y']-_0x1a2e6c['y'])/0x6};}function v(_0x423fdc,_0x775e62){let _0x38c6b7=_0x423fdc[_0x775e62],_0x3705c3=_0x423fdc[_0x775e62-0x1],_0x453681=_0x423fdc[_0x775e62+0x1]??_0x38c6b7;return{'x':_0x38c6b7['x']-(_0x453681['x']-_0x3705c3['x'])/0x6,'y':_0x38c6b7['y']-(_0x453681['y']-_0x3705c3['y'])/0x6};}function y(_0x188bc2,_0x71d9cc){const _0x2fc325=_0x4ebf33;let _0x89e78c=_0x188bc2[_0x2fc325(0xc8)][_0x71d9cc],_0x19dde7=_0x188bc2[_0x2fc325(0xc8)][_0x71d9cc-0x1]??(_0x188bc2['closed']?_0x188bc2[_0x2fc325(0xc8)][_0x188bc2[_0x2fc325(0xc8)][_0x2fc325(0xf3)]-0x1]:null),_0x145c0c=_0x188bc2[_0x2fc325(0xc8)][_0x71d9cc+0x1]??(_0x188bc2[_0x2fc325(0xe9)]?_0x188bc2[_0x2fc325(0xc8)][0x0]:null),_0x5129ce=_0x19dde7&&_0x145c0c?l({'x':_0x145c0c['x']-_0x19dde7['x'],'y':_0x145c0c['y']-_0x19dde7['y']}):_0x145c0c?l({'x':_0x145c0c['x']-_0x89e78c['x'],'y':_0x145c0c['y']-_0x89e78c['y']}):_0x19dde7?l({'x':_0x89e78c['x']-_0x19dde7['x'],'y':_0x89e78c['y']-_0x19dde7['y']}):{'x':0x1,'y':0x0},_0x2bdad0=_0x19dde7&&_0x145c0c?Math[_0x2fc325(0x125)](0x32,c(_0x19dde7,_0x145c0c)/0x4):0x32;return{'in':{'x':_0x89e78c['x']-_0x5129ce['x']*_0x2bdad0,'y':_0x89e78c['y']-_0x5129ce['y']*_0x2bdad0},'out':{'x':_0x89e78c['x']+_0x5129ce['x']*_0x2bdad0,'y':_0x89e78c['y']+_0x5129ce['y']*_0x2bdad0}};}function b(_0x1e350e,_0x4f156e){const _0x2cdaa9=_0x4ebf33;let _0x55d2ca=_0x1e350e[_0x4f156e],_0x10dcd9=_0x4f156e==='in'?'out':'in',_0x4682e7=_0x1e350e[_0x10dcd9];_0x55d2ca&&(_0x1e350e[_0x2cdaa9(0xdc)]===_0x2cdaa9(0x119)?_0x1e350e[_0x10dcd9]=u(_0x1e350e,_0x55d2ca):_0x1e350e['pointType']===_0x2cdaa9(0x103)&&(_0x1e350e[_0x10dcd9]=u(_0x1e350e,_0x55d2ca,_0x4682e7?c(_0x1e350e,_0x4682e7):c(_0x1e350e,_0x55d2ca))));}function x(_0x2fe907,_0x463db3){const _0x778c4a=_0x4ebf33;let _0x2e0f20=o(_0x2fe907);return!_0x463db3||_0x2e0f20[_0x778c4a(0xe9)]||_0x2e0f20[_0x778c4a(0xc8)][_0x778c4a(0xf3)]===0x0||_0x2e0f20[_0x778c4a(0xc8)]['push']({'id':_0x778c4a(0x11d),'x':_0x463db3['x'],'y':_0x463db3['y'],'pointType':_0x778c4a(0xd3)}),_0x2e0f20;}function re(_0x42d2f8,_0xd58144={}){const _0x9bbdf4=_0x4ebf33;let _0x2b8faa=Math[_0x9bbdf4(0x125)](0x0,_0xd58144[_0x9bbdf4(0xe6)]??Math[_0x9bbdf4(0x125)](0x4,_0x42d2f8[_0x9bbdf4(0x11a)]*0.35)),_0x5e44f1=_0xd58144[_0x9bbdf4(0x10d)]??(_0x2f566e=>_0x9bbdf4(0xea)+_0x2f566e),_0x19495e=_(_0x42d2f8['points'],_0x2b8faa),_0x1cfc18=_0x19495e[_0x9bbdf4(0xee)]((_0x4f3f2d,_0xfea4c7)=>({'id':_0x5e44f1(_0xfea4c7),'x':_0x4f3f2d['x'],'y':_0x4f3f2d['y'],'pointType':'free'}));for(let _0x3e0777=0x0;_0x3e0777<_0x1cfc18[_0x9bbdf4(0xf3)]-0x1;_0x3e0777++)_0x1cfc18[_0x3e0777][_0x9bbdf4(0xb3)]=ne(_0x19495e,_0x3e0777),_0x1cfc18[_0x3e0777+0x1]['in']=v(_0x19495e,_0x3e0777+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x1cfc18};}function ie(_0x24f309,_0x45efab,_0x5ee281){const _0xfd2d3f=_0x4ebf33;let _0x479dcd=null,_0x285065=[_0xfd2d3f(0xc5),'in',_0xfd2d3f(0xb3)];return _0x24f309[_0xfd2d3f(0xc8)][_0xfd2d3f(0x118)]((_0x1d5d83,_0x3c385d)=>{const _0xc38616=_0xfd2d3f;_0x285065[_0xc38616(0x118)](_0x29eb46=>{const _0xf4e60d=_0xc38616;if(!p(_0x24f309,_0x3c385d,_0x29eb46))return;let _0x1298a7=ee(_0x1d5d83,_0x29eb46);if(!_0x1298a7)return;let _0x40c540=c(_0x45efab,_0x1298a7);_0x40c540>_0x5ee281||_0x479dcd&&_0x40c540>=_0x479dcd[_0xf4e60d(0x10a)]||(_0x479dcd={'handle':{'kind':_0x29eb46,'anchorId':_0x1d5d83['id']},'point':i(_0x1298a7),'distance':_0x40c540});});}),_0x479dcd;}function S(_0x3a7c20,_0x564026,_0x560597){const _0x69c178=_0x4ebf33;let _0x21ee30=null,_0x39b7be=_0x3a7c20[_0x69c178(0xe9)]?_0x3a7c20[_0x69c178(0xc8)][_0x69c178(0xf3)]:Math[_0x69c178(0x125)](0x0,_0x3a7c20[_0x69c178(0xc8)][_0x69c178(0xf3)]-0x1);for(let _0x38dd8a=0x0;_0x38dd8a<_0x39b7be;_0x38dd8a++){let _0x324428=f(_0x3a7c20,_0x38dd8a);if(!_0x324428)continue;let _0x3e90c0=m(_0x324428,0x0);for(let _0x2d629e=0x1;_0x2d629e<=0x20;_0x2d629e++){let _0x285c2e=m(_0x324428,_0x2d629e/0x20),_0x5b6452=g(_0x564026,_0x3e90c0,_0x285c2e),_0x4b2c67=(_0x2d629e-0x1+_0x5b6452[_0x69c178(0xca)])/0x20;(!_0x21ee30||_0x5b6452[_0x69c178(0x10a)]<_0x21ee30[_0x69c178(0x10a)])&&(_0x21ee30={'segmentIndex':_0x38dd8a,'t':_0x4b2c67,'point':_0x5b6452['point'],'distance':_0x5b6452['distance']}),_0x3e90c0=_0x285c2e;}}return _0x21ee30&&_0x21ee30[_0x69c178(0x10a)]<=_0x560597?_0x21ee30:null;}function C(_0x4e98c2,_0x2fd456,_0x554683){const _0x27af7c=_0x4ebf33;let _0x35e601=o(_0x4e98c2),_0x2a5971=d(_0x35e601,_0x2fd456['segmentIndex']),_0x1d6bfd=f(_0x35e601,_0x2fd456['segmentIndex']);if(!_0x2a5971||!_0x1d6bfd)return _0x35e601;let _0x567644=h(_0x1d6bfd,Math[_0x27af7c(0x125)](0x0,Math[_0x27af7c(0xae)](0x1,_0x2fd456['t']))),_0x419726={'id':_0x554683(),'x':_0x567644['left'][0x3]['x'],'y':_0x567644[_0x27af7c(0x120)][0x3]['y'],'in':i(_0x567644[_0x27af7c(0x120)][0x2]),'out':i(_0x567644[_0x27af7c(0xcd)][0x1]),'pointType':'free'};return _0x35e601[_0x27af7c(0xc8)][_0x2a5971[_0x27af7c(0xd7)]][_0x27af7c(0xb3)]=i(_0x567644['left'][0x1]),_0x35e601[_0x27af7c(0xc8)][_0x2a5971[_0x27af7c(0xb1)]]['in']=i(_0x567644[_0x27af7c(0xcd)][0x2]),_0x35e601[_0x27af7c(0xc8)]['splice'](_0x2a5971[_0x27af7c(0xd7)]+0x1,0x0,_0x419726),_0x35e601;}function w(_0x3fbefa,_0x4aadf2){const _0x254b27=_0x4ebf33;let _0x2b31ae=o(_0x3fbefa);return _0x2b31ae[_0x254b27(0xc8)]=_0x2b31ae[_0x254b27(0xc8)][_0x254b27(0xad)](_0x54ccde=>_0x54ccde['id']!==_0x4aadf2),_0x2b31ae[_0x254b27(0xe9)]&&_0x2b31ae[_0x254b27(0xc8)][_0x254b27(0xf3)]<0x3&&(_0x2b31ae[_0x254b27(0xe9)]=!0x1),_0x2b31ae;}function T(_0x100f1e,_0x22277b,_0x5ac2a8){const _0x3c7d3b=_0x4ebf33;let _0x571b8d=o(_0x100f1e),_0x391b0e=_0x571b8d[_0x3c7d3b(0xc8)][_0x3c7d3b(0xba)](_0x3ec3a8=>_0x3ec3a8['id']===_0x22277b),_0x459a72=_0x571b8d[_0x3c7d3b(0xc8)][_0x391b0e];if(!_0x459a72)return _0x571b8d;if(_0x459a72[_0x3c7d3b(0xdc)]=_0x5ac2a8,_0x5ac2a8===_0x3c7d3b(0xd3))return delete _0x459a72['in'],delete _0x459a72[_0x3c7d3b(0xb3)],_0x571b8d;let _0x5fcfd9=y(_0x571b8d,_0x391b0e);if(_0x459a72['in']=_0x459a72['in']?i(_0x459a72['in']):_0x5fcfd9['in'],_0x459a72[_0x3c7d3b(0xb3)]=_0x459a72[_0x3c7d3b(0xb3)]?i(_0x459a72[_0x3c7d3b(0xb3)]):_0x5fcfd9[_0x3c7d3b(0xb3)],_0x5ac2a8==='symmetric'){let _0xbc0048=Math[_0x3c7d3b(0x125)](c(_0x459a72,_0x459a72['in']),c(_0x459a72,_0x459a72[_0x3c7d3b(0xb3)]),0x32),_0x207c0d=l({'x':_0x459a72[_0x3c7d3b(0xb3)]['x']-_0x459a72['x'],'y':_0x459a72[_0x3c7d3b(0xb3)]['y']-_0x459a72['y']});_0x459a72['out']={'x':_0x459a72['x']+_0x207c0d['x']*_0xbc0048,'y':_0x459a72['y']+_0x207c0d['y']*_0xbc0048},_0x459a72['in']={'x':_0x459a72['x']-_0x207c0d['x']*_0xbc0048,'y':_0x459a72['y']-_0x207c0d['y']*_0xbc0048};}else _0x5ac2a8===_0x3c7d3b(0x103)&&b(_0x459a72,'out');return _0x571b8d;}function E(_0x4b79ac,_0x24f2fb){const _0x368ddc=_0x4ebf33;let _0x21d7e8=_0x4b79ac[_0x368ddc(0xc8)][_0x368ddc(0xe0)](_0x170e65=>_0x170e65['id']===_0x24f2fb),_0x133b46=(_0x21d7e8==null?void 0x0:_0x21d7e8[_0x368ddc(0xdc)])??'corner';return T(_0x4b79ac,_0x24f2fb,_0x133b46===_0x368ddc(0xd3)?_0x368ddc(0x103):_0x133b46===_0x368ddc(0x103)?_0x368ddc(0x119):_0x133b46==='symmetric'?_0x368ddc(0xed):_0x368ddc(0xd3));}function ae(_0x1937d8,_0x973715,_0xf67554){const _0x565ab3=_0x4ebf33;let _0x3ea58d=o(_0x1937d8),_0xff095a=_0x3ea58d['anchors']['find'](_0x64f189=>_0x64f189['id']===_0x973715[_0x565ab3(0xbb)]);if(!_0xff095a)return _0x3ea58d;if(_0x973715[_0x565ab3(0xde)]===_0x565ab3(0xc5)){let _0x1c1062={'x':_0xf67554['x']-_0xff095a['x'],'y':_0xf67554['y']-_0xff095a['y']};return _0xff095a['x']=_0xf67554['x'],_0xff095a['y']=_0xf67554['y'],_0xff095a['in']&&={'x':_0xff095a['in']['x']+_0x1c1062['x'],'y':_0xff095a['in']['y']+_0x1c1062['y']},_0xff095a['out']&&={'x':_0xff095a[_0x565ab3(0xb3)]['x']+_0x1c1062['x'],'y':_0xff095a[_0x565ab3(0xb3)]['y']+_0x1c1062['y']},_0x3ea58d;}return _0xff095a[_0x973715[_0x565ab3(0xde)]]=i(_0xf67554),_0xff095a[_0x565ab3(0xdc)]===_0x565ab3(0xd3)&&(_0xff095a[_0x565ab3(0xdc)]=_0x565ab3(0xed)),b(_0xff095a,_0x973715[_0x565ab3(0xde)]),_0x3ea58d;}const D=1e-9;function O(_0x126f99){const _0x55f1d2=_0x4ebf33;let _0xa9b81d=Math[_0x55f1d2(0x111)](_0x126f99*0x2710)/0x2710;return Object['is'](_0xa9b81d,-0x0)?'0':String(_0xa9b81d);}function k(_0xe569ea){return O(_0xe569ea['x'])+'\x20'+O(_0xe569ea['y']);}function A(_0x50a205,_0x4c17b7){return{'x':_0x50a205['x']-_0x4c17b7['x'],'y':_0x50a205['y']-_0x4c17b7['y']};}function j(_0x3abdec,_0x5f3537,_0x86f6e9,_0x44c94e,_0x527a34){let _0x224a2d=0x1-_0x527a34;return{'x':_0x224a2d*_0x224a2d*_0x224a2d*_0x3abdec['x']+0x3*_0x224a2d*_0x224a2d*_0x527a34*_0x5f3537['x']+0x3*_0x224a2d*_0x527a34*_0x527a34*_0x86f6e9['x']+_0x527a34*_0x527a34*_0x527a34*_0x44c94e['x'],'y':_0x224a2d*_0x224a2d*_0x224a2d*_0x3abdec['y']+0x3*_0x224a2d*_0x224a2d*_0x527a34*_0x5f3537['y']+0x3*_0x224a2d*_0x527a34*_0x527a34*_0x86f6e9['y']+_0x527a34*_0x527a34*_0x527a34*_0x44c94e['y']};}function M(_0x2e71fe,_0x25ffed,_0xce8523,_0x4b7c58){const _0x434d6f=_0x4ebf33;let _0x523977=-_0x2e71fe+0x3*_0x25ffed-0x3*_0xce8523+_0x4b7c58,_0x599c07=0x3*_0x2e71fe-0x6*_0x25ffed+0x3*_0xce8523,_0x4b4075=-0x3*_0x2e71fe+0x3*_0x25ffed,_0x346148=[];if(Math[_0x434d6f(0xb0)](_0x523977)<D){if(Math[_0x434d6f(0xb0)](_0x599c07)<D)return _0x346148;let _0x3f276b=-_0x4b4075/(0x2*_0x599c07);return _0x3f276b>0x0&&_0x3f276b<0x1&&_0x346148[_0x434d6f(0xb2)](_0x3f276b),_0x346148;}let _0x1bb173=_0x599c07*_0x599c07-0x3*_0x523977*_0x4b4075;if(_0x1bb173<0x0)return _0x346148;let _0x367093=Math[_0x434d6f(0x10e)](Math['max'](0x0,_0x1bb173)),_0x434ab4=(-_0x599c07+_0x367093)/(0x3*_0x523977),_0x77c832=(-_0x599c07-_0x367093)/(0x3*_0x523977);return _0x434ab4>0x0&&_0x434ab4<0x1&&_0x346148['push'](_0x434ab4),_0x77c832>0x0&&_0x77c832<0x1&&Math[_0x434d6f(0xb0)](_0x77c832-_0x434ab4)>D&&_0x346148['push'](_0x77c832),_0x346148;}function N(_0x2e498f,_0x32bfd6,_0x3f8f2f,_0x2e9c74,_0x10655f){const _0x53dfa1=_0x4ebf33;_0x2e498f[_0x53dfa1(0xb2)](_0x32bfd6,_0x10655f),new Set([...M(_0x32bfd6['x'],_0x3f8f2f['x'],_0x2e9c74['x'],_0x10655f['x']),...M(_0x32bfd6['y'],_0x3f8f2f['y'],_0x2e9c74['y'],_0x10655f['y'])])[_0x53dfa1(0x118)](_0x1ce771=>{const _0x3a0bd=_0x53dfa1;_0x2e498f[_0x3a0bd(0xb2)](j(_0x32bfd6,_0x3f8f2f,_0x2e9c74,_0x10655f,_0x1ce771));});}function P(_0x4b25e0){const _0x55461e=_0x4ebf33;let _0x10ecdb=_0x4b25e0[_0x55461e(0xc8)];if(_0x10ecdb[_0x55461e(0xf3)]<=0x1)return _0x10ecdb;let _0xd5f53d=[];for(let _0x46b399=0x1;_0x46b399<_0x10ecdb[_0x55461e(0xf3)];_0x46b399++){let _0x7e2040=_0x10ecdb[_0x46b399-0x1],_0xbd37e3=_0x10ecdb[_0x46b399];N(_0xd5f53d,_0x7e2040,_0x7e2040[_0x55461e(0xb3)]??_0x7e2040,_0xbd37e3['in']??_0xbd37e3,_0xbd37e3);}if(_0x4b25e0['closed']&&_0x10ecdb[_0x55461e(0xf3)]>0x1){let _0x200a2a=_0x10ecdb[_0x10ecdb[_0x55461e(0xf3)]-0x1],_0x850efa=_0x10ecdb[0x0];N(_0xd5f53d,_0x200a2a,_0x200a2a[_0x55461e(0xb3)]??_0x200a2a,_0x850efa['in']??_0x850efa,_0x850efa);}return _0xd5f53d;}function F(_0x258682){const _0x50c65e=_0x4ebf33;let _0x48c3fd=_0x258682['points'];if(_0x48c3fd['length']<=0x1)return _0x48c3fd;let _0x5412ac=[];for(let _0x30824a=0x0;_0x30824a<_0x48c3fd[_0x50c65e(0xf3)]-0x1;_0x30824a++){let _0x2663a0=_0x48c3fd[_0x30824a],_0x4bade6=_0x48c3fd[_0x30824a+0x1],_0x3a220f=_0x48c3fd[_0x30824a-0x1]??_0x2663a0,_0x358ae4=_0x48c3fd[_0x30824a+0x2]??_0x4bade6;N(_0x5412ac,_0x2663a0,{'x':_0x2663a0['x']+(_0x4bade6['x']-_0x3a220f['x'])/0x6,'y':_0x2663a0['y']+(_0x4bade6['y']-_0x3a220f['y'])/0x6},{'x':_0x4bade6['x']-(_0x358ae4['x']-_0x2663a0['x'])/0x6,'y':_0x4bade6['y']-(_0x358ae4['y']-_0x2663a0['y'])/0x6},_0x4bade6);}return _0x5412ac;}function I(_0x3185be){const _0xf589=_0x4ebf33;return _0x3185be[_0xf589(0xde)]===_0xf589(0xcf)?P(_0x3185be):F(_0x3185be);}function L(_0x366763){let _0x2ddba3=Math['round'](_0x366763*0x2710)/0x2710;return Object['is'](_0x2ddba3,-0x0)?0x0:_0x2ddba3;}function R(_0x1612f9){const _0xc25400=_0x4ebf33;let _0x3c7c35=I(_0x1612f9);if(_0x3c7c35[_0xc25400(0xf3)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x531d60=Math['min'](..._0x3c7c35[_0xc25400(0xee)](_0x5c3467=>_0x5c3467['x'])),_0x3675e8=Math[_0xc25400(0xae)](..._0x3c7c35['map'](_0x48f516=>_0x48f516['y'])),_0xf0739=Math[_0xc25400(0x125)](..._0x3c7c35['map'](_0x46aade=>_0x46aade['x'])),_0x33db6e=Math['max'](..._0x3c7c35[_0xc25400(0xee)](_0x21565b=>_0x21565b['y']));return{'left':L(_0x531d60),'top':L(_0x3675e8),'width':L(Math[_0xc25400(0x125)](0x1,_0xf0739-_0x531d60)),'height':L(Math['max'](0x1,_0x33db6e-_0x3675e8))};}function z(_0x4e0383,_0x7f4eb8){const _0x17d7ac=_0x4ebf33;let _0x4ffcc7=_0x4e0383[_0x17d7ac(0xc8)];if(_0x4ffcc7[_0x17d7ac(0xf3)]===0x0)return'';let _0x4841a3=['M\x20'+k(A(_0x4ffcc7[0x0],_0x7f4eb8))];for(let _0x53c86a=0x1;_0x53c86a<_0x4ffcc7['length'];_0x53c86a++){let _0xdb287a=_0x4ffcc7[_0x53c86a-0x1],_0x11adda=_0x4ffcc7[_0x53c86a],_0x259edf=_0xdb287a['out']??_0xdb287a,_0x58c342=_0x11adda['in']??_0x11adda;_0x4841a3[_0x17d7ac(0xb2)]('C\x20'+k(A(_0x259edf,_0x7f4eb8))+'\x20'+k(A(_0x58c342,_0x7f4eb8))+'\x20'+k(A(_0x11adda,_0x7f4eb8)));}if(_0x4e0383[_0x17d7ac(0xe9)]&&_0x4ffcc7[_0x17d7ac(0xf3)]>0x1){let _0x261147=_0x4ffcc7[_0x4ffcc7['length']-0x1],_0x174b61=_0x4ffcc7[0x0],_0x4d9f1e=_0x261147['out']??_0x261147,_0x3a2f74=_0x174b61['in']??_0x174b61;_0x4841a3['push']('C\x20'+k(A(_0x4d9f1e,_0x7f4eb8))+'\x20'+k(A(_0x3a2f74,_0x7f4eb8))+'\x20'+k(A(_0x174b61,_0x7f4eb8))),_0x4841a3[_0x17d7ac(0xb2)]('Z');}return _0x4841a3['join']('\x20');}function B(_0x35c4d8,_0x19ad76){const _0x39a619=_0x4ebf33;let _0x320eff=_0x35c4d8[_0x39a619(0xfe)]['map'](_0x5b4e16=>A(_0x5b4e16,_0x19ad76));if(_0x320eff[_0x39a619(0xf3)]===0x0)return'';if(_0x320eff[_0x39a619(0xf3)]===0x1)return'M\x20'+k(_0x320eff[0x0]);let _0x7be0e5=['M\x20'+k(_0x320eff[0x0])];for(let _0x5c7ab0=0x0;_0x5c7ab0<_0x320eff[_0x39a619(0xf3)]-0x1;_0x5c7ab0++){let _0x120386=_0x320eff[_0x5c7ab0],_0x109b7b=_0x320eff[_0x5c7ab0+0x1],_0x208300=_0x320eff[_0x5c7ab0-0x1]??_0x120386,_0x4be09f=_0x320eff[_0x5c7ab0+0x2]??_0x109b7b,_0x26115e={'x':_0x120386['x']+(_0x109b7b['x']-_0x208300['x'])/0x6,'y':_0x120386['y']+(_0x109b7b['y']-_0x208300['y'])/0x6},_0x470ea6={'x':_0x109b7b['x']-(_0x4be09f['x']-_0x120386['x'])/0x6,'y':_0x109b7b['y']-(_0x4be09f['y']-_0x120386['y'])/0x6};_0x7be0e5[_0x39a619(0xb2)]('C\x20'+k(_0x26115e)+'\x20'+k(_0x470ea6)+'\x20'+k(_0x109b7b));}return _0x7be0e5[_0x39a619(0xd1)]('\x20');}function V(_0x57a74e,_0x4b47f2){const _0x541eb3=_0x4ebf33;return _0x57a74e[_0x541eb3(0xde)]==='pen'?z(_0x57a74e,_0x4b47f2):B(_0x57a74e,_0x4b47f2);}function H(_0x574c2b,_0xc5c918){const _0x3c4ce3=_0x4ebf33;return _0xc5c918!=null&&_0xc5c918[_0x3c4ce3(0xc7)]?_0xc5c918[_0x3c4ce3(0xc7)]:_0x574c2b[_0x3c4ce3(0xde)]===_0x3c4ce3(0xcf)?'#f54a45':_0x574c2b[_0x3c4ce3(0xc7)];}function U(_0x28954d,_0x38e42a){const _0xcd2375=_0x4ebf33;return(_0x38e42a==null?void 0x0:_0x38e42a[_0xcd2375(0x11a)])===void 0x0?_0x28954d[_0xcd2375(0xde)]===_0xcd2375(0xcf)?0x2:_0x28954d[_0xcd2375(0x11a)]:_0x38e42a[_0xcd2375(0x11a)];}function W(_0x49738b,_0x3630fe){const _0x39636b=_0x4ebf33;return(_0x3630fe==null?void 0x0:_0x3630fe[_0x39636b(0xd9)])===void 0x0?_0x49738b['kind']==='pen'?void 0x0:_0x49738b[_0x39636b(0xd9)]:_0x3630fe['opacity'];}function oe(_0x149377,_0x1801e7){const _0x531cb0=_0x4ebf33;let _0x31c6c3=R(_0x149377),_0x499ada=V(_0x149377,{'x':_0x31c6c3[_0x531cb0(0x120)],'y':_0x31c6c3[_0x531cb0(0xfc)]}),_0xf7398a=_0x149377['kind']===_0x531cb0(0xcf)&&_0x149377[_0x531cb0(0xe9)],_0x1bbc03=_0x1801e7==null?void 0x0:_0x1801e7[_0x531cb0(0xbe)];return{'shapeType':e[_0x531cb0(0xc1)][_0x531cb0(0xff)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x31c6c3[_0x531cb0(0x11a)],'h':_0x31c6c3['height'],'fill':_0xf7398a?'norm':_0x531cb0(0x101),'stroke':!0x0,'data':_0x499ada,'dataArray':K(_0x149377,{'x':_0x31c6c3['left'],'y':_0x31c6c3['top']})}]},'fill':_0xf7398a&&_0x1bbc03?{'color':_0x1bbc03,'fillType':e[_0x531cb0(0xf7)][_0x531cb0(0xe1)]}:{'fillType':e['ShapeFillEnum'][_0x531cb0(0xaf)]},'stroke':{'color':H(_0x149377,_0x1801e7),'width':U(_0x149377,_0x1801e7),'opacity':W(_0x149377,_0x1801e7),'lineStrokeType':e[_0x531cb0(0xb6)][_0x531cb0(0xf2)],'capType':e[_0x531cb0(0xeb)][_0x531cb0(0xc3)],'lineJoinType':e[_0x531cb0(0x109)][_0x531cb0(0xc3)]}};}function G(_0x9f6a8f,_0x8a3066){return{'x':_0x9f6a8f['x']-_0x8a3066['x'],'y':_0x9f6a8f['y']-_0x8a3066['y']};}function K(_0x23c0f3,_0x5b427d){const _0x26d4f0=_0x4ebf33;if(_0x23c0f3[_0x26d4f0(0xde)]===_0x26d4f0(0xcf)){let _0x42909e=_0x23c0f3[_0x26d4f0(0xc8)];if(_0x42909e['length']===0x0)return[];let _0x4286d2=G(_0x42909e[0x0],_0x5b427d),_0x379689=[{'command':'M','points':[_0x4286d2['x'],_0x4286d2['y']]}];for(let _0x2c3d97=0x1;_0x2c3d97<_0x42909e[_0x26d4f0(0xf3)];_0x2c3d97++){let _0x566cd7=_0x42909e[_0x2c3d97-0x1],_0x393f82=_0x42909e[_0x2c3d97],_0x4cb713=G(_0x566cd7[_0x26d4f0(0xb3)]??_0x566cd7,_0x5b427d),_0x3df3ea=G(_0x393f82['in']??_0x393f82,_0x5b427d),_0xaeaf73=G(_0x393f82,_0x5b427d);_0x379689[_0x26d4f0(0xb2)]({'command':'C','points':[_0x4cb713['x'],_0x4cb713['y'],_0x3df3ea['x'],_0x3df3ea['y'],_0xaeaf73['x'],_0xaeaf73['y']]});}if(_0x23c0f3[_0x26d4f0(0xe9)]&&_0x42909e[_0x26d4f0(0xf3)]>0x1){let _0x3d9439=_0x42909e[_0x42909e[_0x26d4f0(0xf3)]-0x1],_0x2bacfd=_0x42909e[0x0],_0x3bad3d=G(_0x3d9439[_0x26d4f0(0xb3)]??_0x3d9439,_0x5b427d),_0x14c7b3=G(_0x2bacfd['in']??_0x2bacfd,_0x5b427d),_0x4cdb1a=G(_0x2bacfd,_0x5b427d);_0x379689[_0x26d4f0(0xb2)]({'command':'C','points':[_0x3bad3d['x'],_0x3bad3d['y'],_0x14c7b3['x'],_0x14c7b3['y'],_0x4cdb1a['x'],_0x4cdb1a['y']]}),_0x379689[_0x26d4f0(0xb2)]({'command':'z','points':[]});}return _0x379689;}let _0x2523b3=_0x23c0f3['points'][_0x26d4f0(0xee)](_0x19ff56=>G(_0x19ff56,_0x5b427d));if(_0x2523b3['length']===0x0)return[];let _0x3a6c0b=[{'command':'M','points':[_0x2523b3[0x0]['x'],_0x2523b3[0x0]['y']]}];for(let _0x19bf59=0x0;_0x19bf59<_0x2523b3[_0x26d4f0(0xf3)]-0x1;_0x19bf59++){let _0x24e9fd=_0x2523b3[_0x19bf59],_0x486167=_0x2523b3[_0x19bf59+0x1],_0x13f79b=_0x2523b3[_0x19bf59-0x1]??_0x24e9fd,_0x232d5b=_0x2523b3[_0x19bf59+0x2]??_0x486167,_0x59d987={'x':_0x24e9fd['x']+(_0x486167['x']-_0x13f79b['x'])/0x6,'y':_0x24e9fd['y']+(_0x486167['y']-_0x13f79b['y'])/0x6},_0x5ed827={'x':_0x486167['x']-(_0x232d5b['x']-_0x24e9fd['x'])/0x6,'y':_0x486167['y']-(_0x232d5b['y']-_0x24e9fd['y'])/0x6};_0x3a6c0b['push']({'command':'C','points':[_0x59d987['x'],_0x59d987['y'],_0x5ed827['x'],_0x5ed827['y'],_0x486167['x'],_0x486167['y']]});}return _0x3a6c0b;}function q(_0x4db9c5){const _0x5e1956=_0x4ebf33;let {model:_0x22f77b,sourceModel:_0x589ef9=_0x22f77b,style:_0x54169b}=_0x4db9c5,_0x5d940e=_0x4db9c5[_0x5e1956(0x123)]??_0x22f77b[_0x5e1956(0xde)],_0x3044ac=R(_0x22f77b),_0x1cea92=_0x22f77b[_0x5e1956(0xde)]===_0x5e1956(0xcf)&&_0x5d940e!==_0x5e1956(0xcf)?_0x22f77b:void 0x0;return{'transform':{..._0x3044ac,'rotation':0x0},'shapeData':oe(_0x22f77b,_0x54169b),'ink':{'version':0x1,'tool':_0x5d940e,'sourceModel':_0x589ef9,..._0x1cea92?{'editModel':_0x1cea92}:{},'normalizedBounds':_0x3044ac}};}var se=_0x4ebf33(0xb4),ce=_0x4ebf33(0xdf);function J(_0x4b289b){'@babel/helpers - typeof';const _0xe6da87=_0x4ebf33;return J=typeof Symbol==_0xe6da87(0xd6)&&typeof Symbol[_0xe6da87(0xc6)]==_0xe6da87(0x110)?function(_0x872bc7){return typeof _0x872bc7;}:function(_0x413767){const _0x4ee626=_0xe6da87;return _0x413767&&typeof Symbol==_0x4ee626(0xd6)&&_0x413767['constructor']===Symbol&&_0x413767!==Symbol[_0x4ee626(0xf6)]?_0x4ee626(0x110):typeof _0x413767;},J(_0x4b289b);}function le(_0x572844,_0x2f1b8a){const _0x258d01=_0x4ebf33;if(J(_0x572844)!=_0x258d01(0x116)||!_0x572844)return _0x572844;var _0x5f45cc=_0x572844[Symbol[_0x258d01(0xfb)]];if(_0x5f45cc!==void 0x0){var _0x1e63c2=_0x5f45cc[_0x258d01(0x114)](_0x572844,_0x2f1b8a||_0x258d01(0x117));if(J(_0x1e63c2)!='object')return _0x1e63c2;throw TypeError(_0x258d01(0x10c));}return(_0x2f1b8a===_0x258d01(0xc2)?String:Number)(_0x572844);}function ue(_0x5dead4){const _0x4fa7b3=_0x4ebf33;var _0x1dad8e=le(_0x5dead4,_0x4fa7b3(0xc2));return J(_0x1dad8e)==_0x4fa7b3(0x110)?_0x1dad8e:_0x1dad8e+'';}function Y(_0x2493bc,_0x3d0146,_0xa56015){const _0x2bf9ce=_0x4ebf33;return(_0x3d0146=ue(_0x3d0146))in _0x2493bc?Object[_0x2bf9ce(0x112)](_0x2493bc,_0x3d0146,{'value':_0xa56015,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2493bc[_0x3d0146]=_0xa56015,_0x2493bc;}const X=(0x0,n[_0x4ebf33(0x105)])(_0x4ebf33(0xbc));var de=class{constructor(){Y(this,'_adapters',[]);}['registerAdapter'](_0x3ca5ea){const _0x2ea2e9=_0x4ebf33;return this[_0x2ea2e9(0xd8)]['push'](_0x3ca5ea),(0x0,n['toDisposable'])(()=>{const _0x24a64b=_0x2ea2e9;let _0x2dbd8f=this['_adapters'][_0x24a64b(0xe8)](_0x3ca5ea);_0x2dbd8f>=0x0&&this[_0x24a64b(0xd8)]['splice'](_0x2dbd8f,0x1);});}[_0x4ebf33(0x122)](_0x388fbd){const _0x41019d=_0x4ebf33;for(let _0x32f173 of this['_adapters'])if(_0x32f173[_0x41019d(0x122)](_0x388fbd))return!0x0;return!0x1;}async[_0x4ebf33(0xb5)](_0x5c3655){const _0x1b4e8b=_0x4ebf33;for(let _0x220da8 of this[_0x1b4e8b(0xd8)])if(_0x220da8[_0x1b4e8b(0xb5)]&&await _0x220da8[_0x1b4e8b(0xb5)](_0x5c3655))return!0x0;return!0x1;}};function _0x3356(_0x36aafd,_0x37f232){_0x36aafd=_0x36aafd-0xab;const _0x27dd2f=_0x27dd();let _0x3356e1=_0x27dd2f[_0x36aafd];return _0x3356e1;}const fe={'id':'ink.operation.start','type':n[_0x4ebf33(0x104)]['OPERATION'],'handler':(_0x96e69c,_0x343260)=>_0x343260?_0x96e69c[_0x4ebf33(0x113)](X)[_0x4ebf33(0x122)](_0x343260):!0x1},Z={};function Q(_0x47b078,_0x71d4e2){return function(_0x2730c7,_0x31f90a){_0x71d4e2(_0x2730c7,_0x31f90a,_0x47b078);};}function pe(_0x4fc3b3,_0xa7cfbe,_0x385895,_0x3cde1e){const _0x49884d=_0x4ebf33;var _0x32251f=arguments[_0x49884d(0xf3)],_0x1f9602=_0x32251f<0x3?_0xa7cfbe:_0x3cde1e===null?_0x3cde1e=Object[_0x49884d(0xd4)](_0xa7cfbe,_0x385895):_0x3cde1e,_0x1dddb6;if(typeof Reflect==_0x49884d(0x116)&&typeof Reflect['decorate']==_0x49884d(0xd6))_0x1f9602=Reflect[_0x49884d(0x126)](_0x4fc3b3,_0xa7cfbe,_0x385895,_0x3cde1e);else{for(var _0x3e4a42=_0x4fc3b3[_0x49884d(0xf3)]-0x1;_0x3e4a42>=0x0;_0x3e4a42--)(_0x1dddb6=_0x4fc3b3[_0x3e4a42])&&(_0x1f9602=(_0x32251f<0x3?_0x1dddb6(_0x1f9602):_0x32251f>0x3?_0x1dddb6(_0xa7cfbe,_0x385895,_0x1f9602):_0x1dddb6(_0xa7cfbe,_0x385895))||_0x1f9602);}return _0x32251f>0x3&&_0x1f9602&&Object[_0x49884d(0x112)](_0xa7cfbe,_0x385895,_0x1f9602),_0x1f9602;}let $=class extends n[_0x4ebf33(0xc9)]{constructor(_0x1e2503=Z,_0x189603,_0x466d4b,_0x3bb590){const _0x47ecbf=_0x4ebf33;super(),this[_0x47ecbf(0xf1)]=_0x1e2503,this['_injector']=_0x189603,this['_commandService']=_0x466d4b,this['_configService']=_0x3bb590;let {..._0x5a7e5a}=(0x0,n[_0x47ecbf(0xd5)])({},Z,this['_config']);this[_0x47ecbf(0xec)][_0x47ecbf(0xfd)](_0x47ecbf(0xef),_0x5a7e5a);}['onStarting'](){const _0x4fe41e=_0x4ebf33;[[X,{'useClass':de}]][_0x4fe41e(0x118)](_0xafbd7f=>this[_0x4fe41e(0x124)][_0x4fe41e(0xe5)](_0xafbd7f)),this[_0x4fe41e(0xda)](this['_commandService']['registerCommand'](fe));}};Y($,_0x4ebf33(0xe2),_0x4ebf33(0x115)),Y($,_0x4ebf33(0xcc),se),Y($,_0x4ebf33(0xbf),ce),Y($,_0x4ebf33(0x121),n[_0x4ebf33(0x108)][_0x4ebf33(0xf5)]),$=pe([(0x0,n[_0x4ebf33(0xd0)])(t[_0x4ebf33(0xc4)]),Q(0x1,(0x0,n[_0x4ebf33(0xe7)])(n[_0x4ebf33(0xc0)])),Q(0x2,n[_0x4ebf33(0x11b)]),Q(0x3,n[_0x4ebf33(0x127)])],$),exports['IInkHostAdapterService']=X,Object['defineProperty'](exports,_0x4ebf33(0x107),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4ebf33(0xf0)]=q,exports['convertBrushModelToPenModel']=re,exports[_0x4ebf33(0xbd)]=E,exports[_0x4ebf33(0xdb)]=w,exports[_0x4ebf33(0x102)]=ie,exports[_0x4ebf33(0x100)]=S,exports[_0x4ebf33(0xb9)]=R,exports['getInkPenPreviewModel']=x,exports['insertInkPenAnchorAt']=C,exports[_0x4ebf33(0x11f)]=p,exports[_0x4ebf33(0xb7)]=ae,exports['setInkPenAnchorPointType']=T;
|
|
1
|
+
const _0x269a64=_0x3421;(function(_0xa8186e,_0x41cd19){const _0x56c9b1=_0x3421,_0x2e6387=_0xa8186e();while(!![]){try{const _0x386ef6=parseInt(_0x56c9b1(0xed))/0x1+-parseInt(_0x56c9b1(0xec))/0x2+parseInt(_0x56c9b1(0x120))/0x3+parseInt(_0x56c9b1(0x10c))/0x4*(parseInt(_0x56c9b1(0x11b))/0x5)+-parseInt(_0x56c9b1(0x144))/0x6*(-parseInt(_0x56c9b1(0x133))/0x7)+-parseInt(_0x56c9b1(0xfc))/0x8+parseInt(_0x56c9b1(0x101))/0x9*(parseInt(_0x56c9b1(0xd2))/0xa);if(_0x386ef6===_0x41cd19)break;else _0x2e6387['push'](_0x2e6387['shift']());}catch(_0xae2f79){_0x2e6387['push'](_0x2e6387['shift']());}}}(_0x26a1,0xa8714),Object[_0x269a64(0x12b)](exports,Symbol[_0x269a64(0xf1)],{'value':'Module'}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x105120){return{'x':_0x105120['x'],'y':_0x105120['y']};}function a(_0x55b8ec){const _0x547f07=_0x269a64;return{..._0x55b8ec,'in':_0x55b8ec['in']?i(_0x55b8ec['in']):void 0x0,'out':_0x55b8ec[_0x547f07(0x148)]?i(_0x55b8ec[_0x547f07(0x148)]):void 0x0};}function o(_0x5233ba){const _0x27e043=_0x269a64;return{'kind':_0x27e043(0xe2),'closed':_0x5233ba[_0x27e043(0x13a)],'anchors':_0x5233ba[_0x27e043(0x13d)]['map'](a)};}function s(_0x30692d,_0x59bde8,_0x4bdf73){return{'x':_0x30692d['x']+(_0x59bde8['x']-_0x30692d['x'])*_0x4bdf73,'y':_0x30692d['y']+(_0x59bde8['y']-_0x30692d['y'])*_0x4bdf73};}function c(_0x23638c,_0x46dfac){const _0x43965e=_0x269a64;return Math[_0x43965e(0x14a)](_0x23638c['x']-_0x46dfac['x'],_0x23638c['y']-_0x46dfac['y']);}function l(_0x13eabb){const _0x54e3a5=_0x269a64;let _0x46a289=Math[_0x54e3a5(0x14a)](_0x13eabb['x'],_0x13eabb['y']);return _0x46a289<r?{'x':0x1,'y':0x0}:{'x':_0x13eabb['x']/_0x46a289,'y':_0x13eabb['y']/_0x46a289};}function u(_0x69d405,_0x3df8ea,_0x36b2df=c(_0x69d405,_0x3df8ea)){let _0xd787f0=l({'x':_0x69d405['x']-_0x3df8ea['x'],'y':_0x69d405['y']-_0x3df8ea['y']});return{'x':_0x69d405['x']+_0xd787f0['x']*_0x36b2df,'y':_0x69d405['y']+_0xd787f0['y']*_0x36b2df};}function d(_0x520357,_0x750295){const _0x13fcbc=_0x269a64;let {anchors:_0x2fc2d4}=_0x520357;return _0x2fc2d4[_0x13fcbc(0xf8)]<0x2||_0x750295<0x0?null:_0x750295<_0x2fc2d4[_0x13fcbc(0xf8)]-0x1?{'startIndex':_0x750295,'endIndex':_0x750295+0x1,'start':_0x2fc2d4[_0x750295],'end':_0x2fc2d4[_0x750295+0x1]}:_0x520357[_0x13fcbc(0x13a)]&&_0x750295===_0x2fc2d4['length']-0x1?{'startIndex':_0x2fc2d4[_0x13fcbc(0xf8)]-0x1,'endIndex':0x0,'start':_0x2fc2d4[_0x2fc2d4[_0x13fcbc(0xf8)]-0x1],'end':_0x2fc2d4[0x0]}:null;}function f(_0x3f2fb7,_0x3141e7){const _0x1e371c=_0x269a64;let _0x5e41e3=d(_0x3f2fb7,_0x3141e7);return _0x5e41e3?[_0x5e41e3[_0x1e371c(0x115)],_0x5e41e3['start']['out']??_0x5e41e3[_0x1e371c(0x115)],_0x5e41e3['end']['in']??_0x5e41e3[_0x1e371c(0x145)],_0x5e41e3['end']]:null;}function ee(_0x2b6dce,_0x2f7c72){const _0x4a922b=_0x269a64;return _0x2f7c72===_0x4a922b(0x12a)?_0x2b6dce:_0x2b6dce[_0x2f7c72]??null;}function p(_0x468924,_0x4f2ca0,_0x67658d){const _0x4b6cfb=_0x269a64;return _0x67658d==='anchor'||_0x468924[_0x4b6cfb(0x13a)]?!0x0:_0x67658d==='in'?_0x4f2ca0>0x0:_0x4f2ca0<_0x468924['anchors'][_0x4b6cfb(0xf8)]-0x1;}function m(_0x20536a,_0x19614f){let [_0x4721b0,_0x83666c,_0x287108,_0xc7bd9b]=_0x20536a,_0x49f434=s(_0x4721b0,_0x83666c,_0x19614f),_0x2714f7=s(_0x83666c,_0x287108,_0x19614f),_0xafe3f0=s(_0x287108,_0xc7bd9b,_0x19614f);return s(s(_0x49f434,_0x2714f7,_0x19614f),s(_0x2714f7,_0xafe3f0,_0x19614f),_0x19614f);}function h(_0x874ad5,_0x59e8e3){let [_0xe0140c,_0x20523e,_0x48201b,_0x9aead2]=_0x874ad5,_0x40cb7b=s(_0xe0140c,_0x20523e,_0x59e8e3),_0xd03713=s(_0x20523e,_0x48201b,_0x59e8e3),_0xa69944=s(_0x48201b,_0x9aead2,_0x59e8e3),_0xfc1d52=s(_0x40cb7b,_0xd03713,_0x59e8e3),_0x1cb42c=s(_0xd03713,_0xa69944,_0x59e8e3),_0x3af63d=s(_0xfc1d52,_0x1cb42c,_0x59e8e3);return{'left':[_0xe0140c,_0x40cb7b,_0xfc1d52,_0x3af63d],'right':[_0x3af63d,_0x1cb42c,_0xa69944,_0x9aead2]};}function g(_0x37ba25,_0x3970a5,_0x515b4a){let _0x48fb3f=_0x515b4a['x']-_0x3970a5['x'],_0x2f3c4e=_0x515b4a['y']-_0x3970a5['y'],_0x84750f=_0x48fb3f*_0x48fb3f+_0x2f3c4e*_0x2f3c4e,_0x33698b=_0x84750f<=r?0x0:Math['max'](0x0,Math['min'](0x1,((_0x37ba25['x']-_0x3970a5['x'])*_0x48fb3f+(_0x37ba25['y']-_0x3970a5['y'])*_0x2f3c4e)/_0x84750f)),_0x1f9534={'x':_0x3970a5['x']+_0x48fb3f*_0x33698b,'y':_0x3970a5['y']+_0x2f3c4e*_0x33698b};return{'point':_0x1f9534,'ratio':_0x33698b,'distance':c(_0x37ba25,_0x1f9534)};}function te(_0x519aec,_0x43cb9d,_0x459685){const _0x395553=_0x269a64;return g(_0x519aec,_0x43cb9d,_0x459685)[_0x395553(0x12e)]**0x2;}function _(_0x3d1e9a,_0x24b27d){const _0x41e44c=_0x269a64;if(_0x3d1e9a[_0x41e44c(0xf8)]<=0x2)return _0x3d1e9a[_0x41e44c(0xd4)](i);let _0x5c627b=0x0,_0x112c30=0x0,_0x5d624e=_0x3d1e9a[0x0],_0x231e5f=_0x3d1e9a[_0x3d1e9a[_0x41e44c(0xf8)]-0x1],_0x233dbf=_0x24b27d*_0x24b27d;for(let _0x39a157=0x1;_0x39a157<_0x3d1e9a[_0x41e44c(0xf8)]-0x1;_0x39a157++){let _0x462599=te(_0x3d1e9a[_0x39a157],_0x5d624e,_0x231e5f);_0x462599>_0x5c627b&&(_0x5c627b=_0x462599,_0x112c30=_0x39a157);}if(_0x5c627b<=_0x233dbf)return[i(_0x5d624e),i(_0x231e5f)];let _0x30cdf8=_(_0x3d1e9a[_0x41e44c(0xd6)](0x0,_0x112c30+0x1),_0x24b27d),_0x4434fb=_(_0x3d1e9a[_0x41e44c(0xd6)](_0x112c30),_0x24b27d);return[..._0x30cdf8[_0x41e44c(0xd6)](0x0,-0x1),..._0x4434fb];}function ne(_0x467b,_0x2a0755){let _0x1904bb=_0x467b[_0x2a0755],_0x262f02=_0x467b[_0x2a0755+0x1],_0x116127=_0x467b[_0x2a0755-0x1]??_0x1904bb;return{'x':_0x1904bb['x']+(_0x262f02['x']-_0x116127['x'])/0x6,'y':_0x1904bb['y']+(_0x262f02['y']-_0x116127['y'])/0x6};}function v(_0x57ac1f,_0x46f486){let _0x57b99c=_0x57ac1f[_0x46f486],_0x8b205e=_0x57ac1f[_0x46f486-0x1],_0x1c7f64=_0x57ac1f[_0x46f486+0x1]??_0x57b99c;return{'x':_0x57b99c['x']-(_0x1c7f64['x']-_0x8b205e['x'])/0x6,'y':_0x57b99c['y']-(_0x1c7f64['y']-_0x8b205e['y'])/0x6};}function y(_0x185e2b,_0x9e3889){const _0x1a1f7f=_0x269a64;let _0x3b92e4=_0x185e2b['anchors'][_0x9e3889],_0x5d6ebf=_0x185e2b[_0x1a1f7f(0x13d)][_0x9e3889-0x1]??(_0x185e2b[_0x1a1f7f(0x13a)]?_0x185e2b[_0x1a1f7f(0x13d)][_0x185e2b[_0x1a1f7f(0x13d)][_0x1a1f7f(0xf8)]-0x1]:null),_0x21d6b1=_0x185e2b[_0x1a1f7f(0x13d)][_0x9e3889+0x1]??(_0x185e2b[_0x1a1f7f(0x13a)]?_0x185e2b[_0x1a1f7f(0x13d)][0x0]:null),_0x4b1d72=_0x5d6ebf&&_0x21d6b1?l({'x':_0x21d6b1['x']-_0x5d6ebf['x'],'y':_0x21d6b1['y']-_0x5d6ebf['y']}):_0x21d6b1?l({'x':_0x21d6b1['x']-_0x3b92e4['x'],'y':_0x21d6b1['y']-_0x3b92e4['y']}):_0x5d6ebf?l({'x':_0x3b92e4['x']-_0x5d6ebf['x'],'y':_0x3b92e4['y']-_0x5d6ebf['y']}):{'x':0x1,'y':0x0},_0x87061f=_0x5d6ebf&&_0x21d6b1?Math['max'](0x32,c(_0x5d6ebf,_0x21d6b1)/0x4):0x32;return{'in':{'x':_0x3b92e4['x']-_0x4b1d72['x']*_0x87061f,'y':_0x3b92e4['y']-_0x4b1d72['y']*_0x87061f},'out':{'x':_0x3b92e4['x']+_0x4b1d72['x']*_0x87061f,'y':_0x3b92e4['y']+_0x4b1d72['y']*_0x87061f}};}function b(_0x370a89,_0x3ea1be){const _0x2d283c=_0x269a64;let _0x551f1d=_0x370a89[_0x3ea1be],_0x13a5c4=_0x3ea1be==='in'?_0x2d283c(0x148):'in',_0x582a37=_0x370a89[_0x13a5c4];_0x551f1d&&(_0x370a89[_0x2d283c(0x10b)]===_0x2d283c(0x127)?_0x370a89[_0x13a5c4]=u(_0x370a89,_0x551f1d):_0x370a89[_0x2d283c(0x10b)]==='smooth'&&(_0x370a89[_0x13a5c4]=u(_0x370a89,_0x551f1d,_0x582a37?c(_0x370a89,_0x582a37):c(_0x370a89,_0x551f1d))));}function x(_0x43ee32,_0x25fea7){const _0x26c0fd=_0x269a64;let _0x1a3f40=o(_0x43ee32);return!_0x25fea7||_0x1a3f40['closed']||_0x1a3f40[_0x26c0fd(0x13d)][_0x26c0fd(0xf8)]===0x0||_0x1a3f40['anchors'][_0x26c0fd(0xd9)]({'id':_0x26c0fd(0x119),'x':_0x25fea7['x'],'y':_0x25fea7['y'],'pointType':_0x26c0fd(0xea)}),_0x1a3f40;}function re(_0x288a58,_0x529ab6={}){const _0xc21941=_0x269a64;let _0x64984b=Math[_0xc21941(0x10d)](0x0,_0x529ab6[_0xc21941(0x135)]??Math[_0xc21941(0x10d)](0x4,_0x288a58[_0xc21941(0x11e)]*0.35)),_0x5a08f3=_0x529ab6[_0xc21941(0xde)]??(_0x43acd5=>'ink-centerline-'+_0x43acd5),_0x1511d2=_(_0x288a58[_0xc21941(0x149)],_0x64984b),_0x529613=_0x1511d2['map']((_0x2b3af6,_0x45bebd)=>({'id':_0x5a08f3(_0x45bebd),'x':_0x2b3af6['x'],'y':_0x2b3af6['y'],'pointType':_0xc21941(0x107)}));for(let _0x388900=0x0;_0x388900<_0x529613['length']-0x1;_0x388900++)_0x529613[_0x388900][_0xc21941(0x148)]=ne(_0x1511d2,_0x388900),_0x529613[_0x388900+0x1]['in']=v(_0x1511d2,_0x388900+0x1);return{'kind':_0xc21941(0xe2),'closed':!0x1,'anchors':_0x529613};}function ie(_0x502e65,_0x184df5,_0x4dab1a){const _0x4ee9a5=_0x269a64;let _0x565e3e=null,_0x5b8b5d=['anchor','in',_0x4ee9a5(0x148)];return _0x502e65[_0x4ee9a5(0x13d)]['forEach']((_0x376d92,_0x9e7483)=>{const _0xc1537b=_0x4ee9a5;_0x5b8b5d[_0xc1537b(0x103)](_0x10570=>{const _0x28e684=_0xc1537b;if(!p(_0x502e65,_0x9e7483,_0x10570))return;let _0x23b45f=ee(_0x376d92,_0x10570);if(!_0x23b45f)return;let _0x492dee=c(_0x184df5,_0x23b45f);_0x492dee>_0x4dab1a||_0x565e3e&&_0x492dee>=_0x565e3e[_0x28e684(0x12e)]||(_0x565e3e={'handle':{'kind':_0x10570,'anchorId':_0x376d92['id']},'point':i(_0x23b45f),'distance':_0x492dee});});}),_0x565e3e;}function S(_0x1e4b92,_0x250049,_0x1d8f94){const _0x5e9f96=_0x269a64;let _0x1d20c7=null,_0x2b93fc=_0x1e4b92[_0x5e9f96(0x13a)]?_0x1e4b92[_0x5e9f96(0x13d)]['length']:Math[_0x5e9f96(0x10d)](0x0,_0x1e4b92[_0x5e9f96(0x13d)][_0x5e9f96(0xf8)]-0x1);for(let _0x188ea2=0x0;_0x188ea2<_0x2b93fc;_0x188ea2++){let _0x1c62ca=f(_0x1e4b92,_0x188ea2);if(!_0x1c62ca)continue;let _0x3eba29=m(_0x1c62ca,0x0);for(let _0x3cf290=0x1;_0x3cf290<=0x20;_0x3cf290++){let _0x3a2fd9=m(_0x1c62ca,_0x3cf290/0x20),_0x3983ff=g(_0x250049,_0x3eba29,_0x3a2fd9),_0x3324fe=(_0x3cf290-0x1+_0x3983ff[_0x5e9f96(0x14c)])/0x20;(!_0x1d20c7||_0x3983ff['distance']<_0x1d20c7[_0x5e9f96(0x12e)])&&(_0x1d20c7={'segmentIndex':_0x188ea2,'t':_0x3324fe,'point':_0x3983ff[_0x5e9f96(0x128)],'distance':_0x3983ff[_0x5e9f96(0x12e)]}),_0x3eba29=_0x3a2fd9;}}return _0x1d20c7&&_0x1d20c7[_0x5e9f96(0x12e)]<=_0x1d8f94?_0x1d20c7:null;}function C(_0x3a23ed,_0x2b260c,_0x56da22){const _0x5dedae=_0x269a64;let _0x3ab69f=o(_0x3a23ed),_0x4ecbf7=d(_0x3ab69f,_0x2b260c[_0x5dedae(0x110)]),_0x1f46c8=f(_0x3ab69f,_0x2b260c[_0x5dedae(0x110)]);if(!_0x4ecbf7||!_0x1f46c8)return _0x3ab69f;let _0x16deaf=h(_0x1f46c8,Math[_0x5dedae(0x10d)](0x0,Math[_0x5dedae(0x137)](0x1,_0x2b260c['t']))),_0x14b352={'id':_0x56da22(),'x':_0x16deaf['left'][0x3]['x'],'y':_0x16deaf[_0x5dedae(0x117)][0x3]['y'],'in':i(_0x16deaf['left'][0x2]),'out':i(_0x16deaf[_0x5dedae(0xf0)][0x1]),'pointType':'free'};return _0x3ab69f[_0x5dedae(0x13d)][_0x4ecbf7['startIndex']][_0x5dedae(0x148)]=i(_0x16deaf[_0x5dedae(0x117)][0x1]),_0x3ab69f['anchors'][_0x4ecbf7[_0x5dedae(0xee)]]['in']=i(_0x16deaf[_0x5dedae(0xf0)][0x2]),_0x3ab69f[_0x5dedae(0x13d)][_0x5dedae(0xf5)](_0x4ecbf7[_0x5dedae(0x140)]+0x1,0x0,_0x14b352),_0x3ab69f;}function w(_0x3409d6,_0x29e03f){const _0x3ad5aa=_0x269a64;let _0x54ecb8=o(_0x3409d6);return _0x54ecb8[_0x3ad5aa(0x13d)]=_0x54ecb8[_0x3ad5aa(0x13d)][_0x3ad5aa(0x113)](_0x51f082=>_0x51f082['id']!==_0x29e03f),_0x54ecb8[_0x3ad5aa(0x13a)]&&_0x54ecb8[_0x3ad5aa(0x13d)]['length']<0x3&&(_0x54ecb8[_0x3ad5aa(0x13a)]=!0x1),_0x54ecb8;}function T(_0x591999,_0x3251d8,_0x3dc45c){const _0x16813c=_0x269a64;let _0x2bf2c7=o(_0x591999),_0x4e3696=_0x2bf2c7[_0x16813c(0x13d)]['findIndex'](_0x16fe10=>_0x16fe10['id']===_0x3251d8),_0x3151d2=_0x2bf2c7['anchors'][_0x4e3696];if(!_0x3151d2)return _0x2bf2c7;if(_0x3151d2[_0x16813c(0x10b)]=_0x3dc45c,_0x3dc45c==='corner')return delete _0x3151d2['in'],delete _0x3151d2['out'],_0x2bf2c7;let _0x8fb3ba=y(_0x2bf2c7,_0x4e3696);if(_0x3151d2['in']=_0x3151d2['in']?i(_0x3151d2['in']):_0x8fb3ba['in'],_0x3151d2['out']=_0x3151d2['out']?i(_0x3151d2['out']):_0x8fb3ba[_0x16813c(0x148)],_0x3dc45c==='symmetric'){let _0x44f030=Math[_0x16813c(0x10d)](c(_0x3151d2,_0x3151d2['in']),c(_0x3151d2,_0x3151d2[_0x16813c(0x148)]),0x32),_0x46380f=l({'x':_0x3151d2[_0x16813c(0x148)]['x']-_0x3151d2['x'],'y':_0x3151d2[_0x16813c(0x148)]['y']-_0x3151d2['y']});_0x3151d2[_0x16813c(0x148)]={'x':_0x3151d2['x']+_0x46380f['x']*_0x44f030,'y':_0x3151d2['y']+_0x46380f['y']*_0x44f030},_0x3151d2['in']={'x':_0x3151d2['x']-_0x46380f['x']*_0x44f030,'y':_0x3151d2['y']-_0x46380f['y']*_0x44f030};}else _0x3dc45c==='smooth'&&b(_0x3151d2,_0x16813c(0x148));return _0x2bf2c7;}function E(_0x4d9b92,_0x20bb22){const _0x426244=_0x269a64;let _0x32c8a5=_0x4d9b92[_0x426244(0x13d)]['find'](_0x1a6e86=>_0x1a6e86['id']===_0x20bb22),_0xf3d00e=(_0x32c8a5==null?void 0x0:_0x32c8a5[_0x426244(0x10b)])??_0x426244(0xea);return T(_0x4d9b92,_0x20bb22,_0xf3d00e===_0x426244(0xea)?'smooth':_0xf3d00e===_0x426244(0xdb)?_0x426244(0x127):_0xf3d00e===_0x426244(0x127)?_0x426244(0x107):_0x426244(0xea));}function ae(_0x5ed472,_0x234b41,_0x3e674b){const _0x2b4496=_0x269a64;let _0x45ceaa=o(_0x5ed472),_0x5489df=_0x45ceaa['anchors'][_0x2b4496(0xeb)](_0x5c8bb3=>_0x5c8bb3['id']===_0x234b41['anchorId']);if(!_0x5489df)return _0x45ceaa;if(_0x234b41[_0x2b4496(0xe4)]===_0x2b4496(0x12a)){let _0x1f3596={'x':_0x3e674b['x']-_0x5489df['x'],'y':_0x3e674b['y']-_0x5489df['y']};return _0x5489df['x']=_0x3e674b['x'],_0x5489df['y']=_0x3e674b['y'],_0x5489df['in']&&={'x':_0x5489df['in']['x']+_0x1f3596['x'],'y':_0x5489df['in']['y']+_0x1f3596['y']},_0x5489df['out']&&={'x':_0x5489df[_0x2b4496(0x148)]['x']+_0x1f3596['x'],'y':_0x5489df[_0x2b4496(0x148)]['y']+_0x1f3596['y']},_0x45ceaa;}return _0x5489df[_0x234b41['kind']]=i(_0x3e674b),_0x5489df[_0x2b4496(0x10b)]===_0x2b4496(0xea)&&(_0x5489df[_0x2b4496(0x10b)]=_0x2b4496(0x107)),b(_0x5489df,_0x234b41[_0x2b4496(0xe4)]),_0x45ceaa;}const D=1e-9;function O(_0x26719a){let _0xa0b530=Math['round'](_0x26719a*0x2710)/0x2710;return Object['is'](_0xa0b530,-0x0)?'0':String(_0xa0b530);}function k(_0x1ddf5e){return O(_0x1ddf5e['x'])+'\x20'+O(_0x1ddf5e['y']);}function A(_0x58cfe9,_0x46dd79){return{'x':_0x58cfe9['x']-_0x46dd79['x'],'y':_0x58cfe9['y']-_0x46dd79['y']};}function j(_0x256cee,_0x40b96f,_0x1f2353,_0x8da378,_0x17bf68){let _0x3f3239=0x1-_0x17bf68;return{'x':_0x3f3239*_0x3f3239*_0x3f3239*_0x256cee['x']+0x3*_0x3f3239*_0x3f3239*_0x17bf68*_0x40b96f['x']+0x3*_0x3f3239*_0x17bf68*_0x17bf68*_0x1f2353['x']+_0x17bf68*_0x17bf68*_0x17bf68*_0x8da378['x'],'y':_0x3f3239*_0x3f3239*_0x3f3239*_0x256cee['y']+0x3*_0x3f3239*_0x3f3239*_0x17bf68*_0x40b96f['y']+0x3*_0x3f3239*_0x17bf68*_0x17bf68*_0x1f2353['y']+_0x17bf68*_0x17bf68*_0x17bf68*_0x8da378['y']};}function M(_0x234c21,_0x1cef9d,_0x35ecc4,_0x319f6a){const _0x5198b3=_0x269a64;let _0x437075=-_0x234c21+0x3*_0x1cef9d-0x3*_0x35ecc4+_0x319f6a,_0x3b7ff2=0x3*_0x234c21-0x6*_0x1cef9d+0x3*_0x35ecc4,_0x62af92=-0x3*_0x234c21+0x3*_0x1cef9d,_0x4b1ad9=[];if(Math[_0x5198b3(0x132)](_0x437075)<D){if(Math[_0x5198b3(0x132)](_0x3b7ff2)<D)return _0x4b1ad9;let _0x5a82dc=-_0x62af92/(0x2*_0x3b7ff2);return _0x5a82dc>0x0&&_0x5a82dc<0x1&&_0x4b1ad9['push'](_0x5a82dc),_0x4b1ad9;}let _0x633d00=_0x3b7ff2*_0x3b7ff2-0x3*_0x437075*_0x62af92;if(_0x633d00<0x0)return _0x4b1ad9;let _0x4784c7=Math[_0x5198b3(0x108)](Math[_0x5198b3(0x10d)](0x0,_0x633d00)),_0x2267c6=(-_0x3b7ff2+_0x4784c7)/(0x3*_0x437075),_0x12a7bd=(-_0x3b7ff2-_0x4784c7)/(0x3*_0x437075);return _0x2267c6>0x0&&_0x2267c6<0x1&&_0x4b1ad9[_0x5198b3(0xd9)](_0x2267c6),_0x12a7bd>0x0&&_0x12a7bd<0x1&&Math[_0x5198b3(0x132)](_0x12a7bd-_0x2267c6)>D&&_0x4b1ad9[_0x5198b3(0xd9)](_0x12a7bd),_0x4b1ad9;}function N(_0x1d083f,_0x1af9dc,_0x573bf8,_0x17a4bf,_0x2e9edb){const _0x33bb11=_0x269a64;_0x1d083f['push'](_0x1af9dc,_0x2e9edb),new Set([...M(_0x1af9dc['x'],_0x573bf8['x'],_0x17a4bf['x'],_0x2e9edb['x']),...M(_0x1af9dc['y'],_0x573bf8['y'],_0x17a4bf['y'],_0x2e9edb['y'])])[_0x33bb11(0x103)](_0x10efd0=>{const _0x2be6de=_0x33bb11;_0x1d083f[_0x2be6de(0xd9)](j(_0x1af9dc,_0x573bf8,_0x17a4bf,_0x2e9edb,_0x10efd0));});}function P(_0x453bd8){const _0x452c3=_0x269a64;let _0x21cca4=_0x453bd8['anchors'];if(_0x21cca4[_0x452c3(0xf8)]<=0x1)return _0x21cca4;let _0x2eb477=[];for(let _0x176a35=0x1;_0x176a35<_0x21cca4[_0x452c3(0xf8)];_0x176a35++){let _0x13311d=_0x21cca4[_0x176a35-0x1],_0x4ead37=_0x21cca4[_0x176a35];N(_0x2eb477,_0x13311d,_0x13311d[_0x452c3(0x148)]??_0x13311d,_0x4ead37['in']??_0x4ead37,_0x4ead37);}if(_0x453bd8[_0x452c3(0x13a)]&&_0x21cca4[_0x452c3(0xf8)]>0x1){let _0x5bce14=_0x21cca4[_0x21cca4[_0x452c3(0xf8)]-0x1],_0x26d100=_0x21cca4[0x0];N(_0x2eb477,_0x5bce14,_0x5bce14[_0x452c3(0x148)]??_0x5bce14,_0x26d100['in']??_0x26d100,_0x26d100);}return _0x2eb477;}function F(_0x4e07ef){const _0x20db0b=_0x269a64;let _0x41d0b6=_0x4e07ef['points'];if(_0x41d0b6[_0x20db0b(0xf8)]<=0x1)return _0x41d0b6;let _0x12179c=[];for(let _0x3a6796=0x0;_0x3a6796<_0x41d0b6['length']-0x1;_0x3a6796++){let _0x180034=_0x41d0b6[_0x3a6796],_0x30d04b=_0x41d0b6[_0x3a6796+0x1],_0x4959c2=_0x41d0b6[_0x3a6796-0x1]??_0x180034,_0x54042a=_0x41d0b6[_0x3a6796+0x2]??_0x30d04b;N(_0x12179c,_0x180034,{'x':_0x180034['x']+(_0x30d04b['x']-_0x4959c2['x'])/0x6,'y':_0x180034['y']+(_0x30d04b['y']-_0x4959c2['y'])/0x6},{'x':_0x30d04b['x']-(_0x54042a['x']-_0x180034['x'])/0x6,'y':_0x30d04b['y']-(_0x54042a['y']-_0x180034['y'])/0x6},_0x30d04b);}return _0x12179c;}function I(_0x303513){const _0x253a61=_0x269a64;return _0x303513[_0x253a61(0xe4)]===_0x253a61(0xe2)?P(_0x303513):F(_0x303513);}function L(_0x5459f9){const _0x218fca=_0x269a64;let _0x106ad7=Math[_0x218fca(0x11c)](_0x5459f9*0x2710)/0x2710;return Object['is'](_0x106ad7,-0x0)?0x0:_0x106ad7;}function R(_0x33f785){const _0x335b43=_0x269a64;let _0x19549b=I(_0x33f785);if(_0x19549b[_0x335b43(0xf8)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x53595e=Math[_0x335b43(0x137)](..._0x19549b[_0x335b43(0xd4)](_0x65b7ae=>_0x65b7ae['x'])),_0x2bd408=Math[_0x335b43(0x137)](..._0x19549b[_0x335b43(0xd4)](_0x5740b6=>_0x5740b6['y'])),_0x1a50e1=Math[_0x335b43(0x10d)](..._0x19549b[_0x335b43(0xd4)](_0x40f13f=>_0x40f13f['x'])),_0x4f2fd6=Math['max'](..._0x19549b[_0x335b43(0xd4)](_0x43d429=>_0x43d429['y']));return{'left':L(_0x53595e),'top':L(_0x2bd408),'width':L(Math[_0x335b43(0x10d)](0x1,_0x1a50e1-_0x53595e)),'height':L(Math[_0x335b43(0x10d)](0x1,_0x4f2fd6-_0x2bd408))};}function z(_0x2f4a58,_0x3567eb){const _0x517c6f=_0x269a64;let _0x5dc345=_0x2f4a58['anchors'];if(_0x5dc345[_0x517c6f(0xf8)]===0x0)return'';let _0xb24f61=['M\x20'+k(A(_0x5dc345[0x0],_0x3567eb))];for(let _0x1ea50c=0x1;_0x1ea50c<_0x5dc345['length'];_0x1ea50c++){let _0x36fe8c=_0x5dc345[_0x1ea50c-0x1],_0x2dddda=_0x5dc345[_0x1ea50c],_0x1afbe7=_0x36fe8c[_0x517c6f(0x148)]??_0x36fe8c,_0x3b4add=_0x2dddda['in']??_0x2dddda;_0xb24f61[_0x517c6f(0xd9)]('C\x20'+k(A(_0x1afbe7,_0x3567eb))+'\x20'+k(A(_0x3b4add,_0x3567eb))+'\x20'+k(A(_0x2dddda,_0x3567eb)));}if(_0x2f4a58['closed']&&_0x5dc345[_0x517c6f(0xf8)]>0x1){let _0x51356c=_0x5dc345[_0x5dc345[_0x517c6f(0xf8)]-0x1],_0x5ca8bf=_0x5dc345[0x0],_0x2fea2c=_0x51356c[_0x517c6f(0x148)]??_0x51356c,_0x450168=_0x5ca8bf['in']??_0x5ca8bf;_0xb24f61[_0x517c6f(0xd9)]('C\x20'+k(A(_0x2fea2c,_0x3567eb))+'\x20'+k(A(_0x450168,_0x3567eb))+'\x20'+k(A(_0x5ca8bf,_0x3567eb))),_0xb24f61[_0x517c6f(0xd9)]('Z');}return _0xb24f61[_0x517c6f(0xe8)]('\x20');}function B(_0x10ac15,_0x412de7){const _0x40621e=_0x269a64;let _0xce7633=_0x10ac15['points'][_0x40621e(0xd4)](_0x53afec=>A(_0x53afec,_0x412de7));if(_0xce7633[_0x40621e(0xf8)]===0x0)return'';if(_0xce7633[_0x40621e(0xf8)]===0x1)return'M\x20'+k(_0xce7633[0x0]);let _0x37b949=['M\x20'+k(_0xce7633[0x0])];for(let _0x5337d7=0x0;_0x5337d7<_0xce7633[_0x40621e(0xf8)]-0x1;_0x5337d7++){let _0x393e85=_0xce7633[_0x5337d7],_0x191b0b=_0xce7633[_0x5337d7+0x1],_0x141508=_0xce7633[_0x5337d7-0x1]??_0x393e85,_0x1ffd0e=_0xce7633[_0x5337d7+0x2]??_0x191b0b,_0x4ed4a3={'x':_0x393e85['x']+(_0x191b0b['x']-_0x141508['x'])/0x6,'y':_0x393e85['y']+(_0x191b0b['y']-_0x141508['y'])/0x6},_0x1c1589={'x':_0x191b0b['x']-(_0x1ffd0e['x']-_0x393e85['x'])/0x6,'y':_0x191b0b['y']-(_0x1ffd0e['y']-_0x393e85['y'])/0x6};_0x37b949[_0x40621e(0xd9)]('C\x20'+k(_0x4ed4a3)+'\x20'+k(_0x1c1589)+'\x20'+k(_0x191b0b));}return _0x37b949[_0x40621e(0xe8)]('\x20');}function V(_0x4e23a2,_0x3ba6ed){const _0x52b065=_0x269a64;return _0x4e23a2[_0x52b065(0xe4)]===_0x52b065(0xe2)?z(_0x4e23a2,_0x3ba6ed):B(_0x4e23a2,_0x3ba6ed);}function H(_0x1bdc84,_0x2dc7e5){const _0x9ee15=_0x269a64;return _0x2dc7e5!=null&&_0x2dc7e5[_0x9ee15(0x114)]?_0x2dc7e5[_0x9ee15(0x114)]:_0x1bdc84[_0x9ee15(0xe4)]===_0x9ee15(0xe2)?_0x9ee15(0x13f):_0x1bdc84[_0x9ee15(0x114)];}function U(_0x1dd37b,_0x1c6236){const _0x4b0cdb=_0x269a64;return(_0x1c6236==null?void 0x0:_0x1c6236[_0x4b0cdb(0x11e)])===void 0x0?_0x1dd37b[_0x4b0cdb(0xe4)]===_0x4b0cdb(0xe2)?0x2:_0x1dd37b[_0x4b0cdb(0x11e)]:_0x1c6236['width'];}function W(_0x340462,_0x47e00d){const _0x1a6028=_0x269a64;return(_0x47e00d==null?void 0x0:_0x47e00d[_0x1a6028(0xdd)])===void 0x0?_0x340462[_0x1a6028(0xe4)]===_0x1a6028(0xe2)?void 0x0:_0x340462[_0x1a6028(0xdd)]:_0x47e00d['opacity'];}function oe(_0x3274fb,_0x3bc5c1){const _0x57f591=_0x269a64;let _0x155260=R(_0x3274fb),_0x3896a7=V(_0x3274fb,{'x':_0x155260[_0x57f591(0x117)],'y':_0x155260[_0x57f591(0x11d)]}),_0x5aacab=_0x3274fb[_0x57f591(0xe4)]===_0x57f591(0xe2)&&_0x3274fb[_0x57f591(0x13a)],_0x2152c1=_0x3bc5c1==null?void 0x0:_0x3bc5c1[_0x57f591(0x11a)];return{'shapeType':e['ShapeTypeEnum'][_0x57f591(0x136)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x155260[_0x57f591(0x11e)],'h':_0x155260['height'],'fill':_0x5aacab?_0x57f591(0x138):_0x57f591(0xf4),'stroke':!0x0,'data':_0x3896a7,'dataArray':K(_0x3274fb,{'x':_0x155260['left'],'y':_0x155260[_0x57f591(0x11d)]})}]},'fill':_0x5aacab&&_0x2152c1?{'color':_0x2152c1,'fillType':e[_0x57f591(0x123)][_0x57f591(0x129)]}:{'fillType':e[_0x57f591(0x123)]['NoFill']},'stroke':{'color':H(_0x3274fb,_0x3bc5c1),'width':U(_0x3274fb,_0x3bc5c1),'opacity':W(_0x3274fb,_0x3bc5c1),'lineStrokeType':e[_0x57f591(0x12d)]['SolidLine'],'capType':e[_0x57f591(0x10a)][_0x57f591(0x10f)],'lineJoinType':e[_0x57f591(0xd3)][_0x57f591(0x10f)]}};}function G(_0x2adca7,_0x25ea9e){return{'x':_0x2adca7['x']-_0x25ea9e['x'],'y':_0x2adca7['y']-_0x25ea9e['y']};}function K(_0x585be5,_0x1f5dc5){const _0x55b51c=_0x269a64;if(_0x585be5['kind']===_0x55b51c(0xe2)){let _0x34bd62=_0x585be5[_0x55b51c(0x13d)];if(_0x34bd62[_0x55b51c(0xf8)]===0x0)return[];let _0x4b22b7=G(_0x34bd62[0x0],_0x1f5dc5),_0x26896a=[{'command':'M','points':[_0x4b22b7['x'],_0x4b22b7['y']]}];for(let _0x308606=0x1;_0x308606<_0x34bd62[_0x55b51c(0xf8)];_0x308606++){let _0x23460c=_0x34bd62[_0x308606-0x1],_0x1efbb7=_0x34bd62[_0x308606],_0x18a815=G(_0x23460c[_0x55b51c(0x148)]??_0x23460c,_0x1f5dc5),_0x21aecd=G(_0x1efbb7['in']??_0x1efbb7,_0x1f5dc5),_0x2eb835=G(_0x1efbb7,_0x1f5dc5);_0x26896a[_0x55b51c(0xd9)]({'command':'C','points':[_0x18a815['x'],_0x18a815['y'],_0x21aecd['x'],_0x21aecd['y'],_0x2eb835['x'],_0x2eb835['y']]});}if(_0x585be5[_0x55b51c(0x13a)]&&_0x34bd62['length']>0x1){let _0x18b605=_0x34bd62[_0x34bd62[_0x55b51c(0xf8)]-0x1],_0xf90f73=_0x34bd62[0x0],_0x3be734=G(_0x18b605[_0x55b51c(0x148)]??_0x18b605,_0x1f5dc5),_0x1f0ee8=G(_0xf90f73['in']??_0xf90f73,_0x1f5dc5),_0x27fb17=G(_0xf90f73,_0x1f5dc5);_0x26896a[_0x55b51c(0xd9)]({'command':'C','points':[_0x3be734['x'],_0x3be734['y'],_0x1f0ee8['x'],_0x1f0ee8['y'],_0x27fb17['x'],_0x27fb17['y']]}),_0x26896a['push']({'command':'z','points':[]});}return _0x26896a;}let _0x1361a4=_0x585be5[_0x55b51c(0x149)][_0x55b51c(0xd4)](_0x693de=>G(_0x693de,_0x1f5dc5));if(_0x1361a4[_0x55b51c(0xf8)]===0x0)return[];let _0x55ec59=[{'command':'M','points':[_0x1361a4[0x0]['x'],_0x1361a4[0x0]['y']]}];for(let _0x4c3420=0x0;_0x4c3420<_0x1361a4['length']-0x1;_0x4c3420++){let _0xe7b08c=_0x1361a4[_0x4c3420],_0x24635b=_0x1361a4[_0x4c3420+0x1],_0x3189a7=_0x1361a4[_0x4c3420-0x1]??_0xe7b08c,_0x22c6e5=_0x1361a4[_0x4c3420+0x2]??_0x24635b,_0xbf1773={'x':_0xe7b08c['x']+(_0x24635b['x']-_0x3189a7['x'])/0x6,'y':_0xe7b08c['y']+(_0x24635b['y']-_0x3189a7['y'])/0x6},_0x198823={'x':_0x24635b['x']-(_0x22c6e5['x']-_0xe7b08c['x'])/0x6,'y':_0x24635b['y']-(_0x22c6e5['y']-_0xe7b08c['y'])/0x6};_0x55ec59[_0x55b51c(0xd9)]({'command':'C','points':[_0xbf1773['x'],_0xbf1773['y'],_0x198823['x'],_0x198823['y'],_0x24635b['x'],_0x24635b['y']]});}return _0x55ec59;}function q(_0x5a50fe){const _0x345baf=_0x269a64;let {model:_0x374dd1,sourceModel:_0xb590c4=_0x374dd1,style:_0x16fbbd}=_0x5a50fe,_0x3aa437=_0x5a50fe[_0x345baf(0x13c)]??_0x374dd1[_0x345baf(0xe4)],_0x371ca3=R(_0x374dd1),_0x196ae7=_0x374dd1[_0x345baf(0xe4)]===_0x345baf(0xe2)&&_0x3aa437!==_0x345baf(0xe2)?_0x374dd1:void 0x0;return{'transform':{..._0x371ca3,'rotation':0x0},'shapeData':oe(_0x374dd1,_0x16fbbd),'ink':{'version':0x1,'tool':_0x3aa437,'sourceModel':_0xb590c4,..._0x196ae7?{'editModel':_0x196ae7}:{},'normalizedBounds':_0x371ca3}};}var se=_0x269a64(0xfd),ce='1.2.0';function J(_0x75c811){'@babel/helpers - typeof';const _0x13ed13=_0x269a64;return J=typeof Symbol==_0x13ed13(0xd7)&&typeof Symbol[_0x13ed13(0xf9)]==_0x13ed13(0xe0)?function(_0x37bfb9){return typeof _0x37bfb9;}:function(_0x129bf9){const _0x4f5456=_0x13ed13;return _0x129bf9&&typeof Symbol=='function'&&_0x129bf9[_0x4f5456(0x142)]===Symbol&&_0x129bf9!==Symbol['prototype']?'symbol':typeof _0x129bf9;},J(_0x75c811);}function le(_0x2cb104,_0x4b58df){const _0x4c027b=_0x269a64;if(J(_0x2cb104)!=_0x4c027b(0x131)||!_0x2cb104)return _0x2cb104;var _0x210803=_0x2cb104[Symbol['toPrimitive']];if(_0x210803!==void 0x0){var _0x5c0cd7=_0x210803[_0x4c027b(0x112)](_0x2cb104,_0x4b58df||_0x4c027b(0x134));if(J(_0x5c0cd7)!=_0x4c027b(0x131))return _0x5c0cd7;throw TypeError(_0x4c027b(0x13e));}return(_0x4b58df===_0x4c027b(0xe5)?String:Number)(_0x2cb104);}function _0x3421(_0x33a07e,_0x4c0faf){_0x33a07e=_0x33a07e-0xd2;const _0x26a1e1=_0x26a1();let _0x3421a2=_0x26a1e1[_0x33a07e];return _0x3421a2;}function ue(_0x21fbe4){const _0x42919a=_0x269a64;var _0x2a44a0=le(_0x21fbe4,_0x42919a(0xe5));return J(_0x2a44a0)==_0x42919a(0xe0)?_0x2a44a0:_0x2a44a0+'';}function Y(_0x307f9f,_0x347c6e,_0x144b54){return(_0x347c6e=ue(_0x347c6e))in _0x307f9f?Object['defineProperty'](_0x307f9f,_0x347c6e,{'value':_0x144b54,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x307f9f[_0x347c6e]=_0x144b54,_0x307f9f;}const X=(0x0,n['createIdentifier'])(_0x269a64(0xd5));var de=class{constructor(){const _0x5b08c8=_0x269a64;Y(this,_0x5b08c8(0x111),[]);}['registerAdapter'](_0x8e4035){const _0x482cab=_0x269a64;return this['_adapters'][_0x482cab(0xd9)](_0x8e4035),(0x0,n['toDisposable'])(()=>{const _0x5c9639=_0x482cab;let _0x2a1015=this[_0x5c9639(0x111)]['indexOf'](_0x8e4035);_0x2a1015>=0x0&&this['_adapters'][_0x5c9639(0xf5)](_0x2a1015,0x1);});}[_0x269a64(0xe1)](_0x4907bf){const _0x11e9d6=_0x269a64;for(let _0x10318e of this[_0x11e9d6(0x111)])if(_0x10318e[_0x11e9d6(0xe1)](_0x4907bf))return!0x0;return!0x1;}async[_0x269a64(0xef)](_0x3651fc){const _0x47613c=_0x269a64;for(let _0x51cbe3 of this[_0x47613c(0x111)])if(_0x51cbe3['createCustomShape']&&await _0x51cbe3['createCustomShape'](_0x3651fc))return!0x0;return!0x1;}};const fe={'id':_0x269a64(0xf6),'type':n[_0x269a64(0xda)][_0x269a64(0x12c)],'handler':(_0xdcb6e1,_0x2c8db5)=>_0x2c8db5?_0xdcb6e1['get'](X)['beginInkMode'](_0x2c8db5):!0x1},Z={};function Q(_0x4807d9,_0xe5653a){return function(_0x4f8959,_0x55d2a2){_0xe5653a(_0x4f8959,_0x55d2a2,_0x4807d9);};}function pe(_0x10dd52,_0x16cac6,_0xcef145,_0x57906f){const _0x4be51e=_0x269a64;var _0xc15601=arguments[_0x4be51e(0xf8)],_0x2eba1e=_0xc15601<0x3?_0x16cac6:_0x57906f===null?_0x57906f=Object[_0x4be51e(0xf3)](_0x16cac6,_0xcef145):_0x57906f,_0x1c5b59;if(typeof Reflect=='object'&&typeof Reflect[_0x4be51e(0x14b)]==_0x4be51e(0xd7))_0x2eba1e=Reflect[_0x4be51e(0x14b)](_0x10dd52,_0x16cac6,_0xcef145,_0x57906f);else{for(var _0x40a763=_0x10dd52['length']-0x1;_0x40a763>=0x0;_0x40a763--)(_0x1c5b59=_0x10dd52[_0x40a763])&&(_0x2eba1e=(_0xc15601<0x3?_0x1c5b59(_0x2eba1e):_0xc15601>0x3?_0x1c5b59(_0x16cac6,_0xcef145,_0x2eba1e):_0x1c5b59(_0x16cac6,_0xcef145))||_0x2eba1e);}return _0xc15601>0x3&&_0x2eba1e&&Object['defineProperty'](_0x16cac6,_0xcef145,_0x2eba1e),_0x2eba1e;}function _0x26a1(){const _0x252bc7=['defineProperty','OPERATION','ShapeLineTypeEnum','distance','_injector','getInkPenPreviewModel','object','abs','408331NGqJQF','default','tolerance','Rect','min','norm','getInkModelBounds','closed','merge','tool','anchors','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','#f54a45','startIndex','type','constructor','Plugin','12pxjOnk','end','UniverLicensePlugin','UNIVER_UNKNOWN','out','points','hypot','decorate','ratio','90730nYuqwt','ShapeLineJoinEnum','map','ink.host-adapter.service','slice','function','deleteInkPenAnchor','push','CommandType','smooth','pluginName','opacity','createId','ink.config','symbol','beginInkMode','pen','registerCommand','kind','string','insertInkPenAnchorAt','findClosestInkPenHandle','join','_commandService','corner','find','1329818hSBHJH','1288440wGFPKA','endIndex','createCustomShape','right','toStringTag','setInkPenAnchorPointType','getOwnPropertyDescriptor','none','splice','ink.operation.start','disposeWithMe','length','iterator','findClosestInkPenSegment','IConfigService','4729472vuZLAH','@univerjs-pro/ink','UNIVER_INK_PLUGIN','cycleInkPenAnchorPointType','Injector','225GPWoLU','Inject','forEach','onStarting','convertBrushModelToPenModel','ICommandService','free','sqrt','isInkPenHandleVisible','ShapeLineCapEnum','pointType','306556CzDbpt','max','packageName','Round','segmentIndex','_adapters','call','filter','color','start','UniverInkPlugin','left','_configService','__ink-preview-anchor__','fillColor','5Gpuycu','round','top','width','UniverInstanceType','712389CxlvfE','_config','DependentOn','ShapeFillEnum','version','buildInkCustomShapePayload','IInkHostAdapterService','symmetric','point','SolidFill','anchor'];_0x26a1=function(){return _0x252bc7;};return _0x26a1();}let $=class extends n[_0x269a64(0x143)]{constructor(_0xfe11e3=Z,_0x423bfd,_0x38b5e7,_0x300677){const _0x4cbe5e=_0x269a64;super(),this[_0x4cbe5e(0x121)]=_0xfe11e3,this[_0x4cbe5e(0x12f)]=_0x423bfd,this['_commandService']=_0x38b5e7,this[_0x4cbe5e(0x118)]=_0x300677;let {..._0x32ef91}=(0x0,n[_0x4cbe5e(0x13b)])({},Z,this[_0x4cbe5e(0x121)]);this[_0x4cbe5e(0x118)]['setConfig'](_0x4cbe5e(0xdf),_0x32ef91);}[_0x269a64(0x104)](){const _0x1c2407=_0x269a64;[[X,{'useClass':de}]]['forEach'](_0x1c2711=>this[_0x1c2407(0x12f)]['add'](_0x1c2711)),this[_0x1c2407(0xf7)](this[_0x1c2407(0xe9)][_0x1c2407(0xe3)](fe));}};Y($,_0x269a64(0xdc),_0x269a64(0xfe)),Y($,_0x269a64(0x10e),se),Y($,_0x269a64(0x124),ce),Y($,_0x269a64(0x141),n[_0x269a64(0x11f)][_0x269a64(0x147)]),$=pe([(0x0,n[_0x269a64(0x122)])(t[_0x269a64(0x146)]),Q(0x1,(0x0,n[_0x269a64(0x102)])(n[_0x269a64(0x100)])),Q(0x2,n[_0x269a64(0x106)]),Q(0x3,n[_0x269a64(0xfb)])],$),exports[_0x269a64(0x126)]=X,Object[_0x269a64(0x12b)](exports,_0x269a64(0x116),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x269a64(0x125)]=q,exports[_0x269a64(0x105)]=re,exports[_0x269a64(0xff)]=E,exports[_0x269a64(0xd8)]=w,exports[_0x269a64(0xe7)]=ie,exports[_0x269a64(0xfa)]=S,exports[_0x269a64(0x139)]=R,exports[_0x269a64(0x130)]=x,exports[_0x269a64(0xe6)]=C,exports[_0x269a64(0x109)]=p,exports['moveInkPenAnchorPoint']=ae,exports[_0x269a64(0xf2)]=T;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x16ff5b=_0x330d;(function(_0x6cc2a6,_0x2d6fe7){const _0x452d76=_0x330d,_0x2020e3=_0x6cc2a6();while(!![]){try{const _0x3be90e=parseInt(_0x452d76(0x113))/0x1*(parseInt(_0x452d76(0x11c))/0x2)+parseInt(_0x452d76(0x10d))/0x3*(parseInt(_0x452d76(0x11b))/0x4)+-parseInt(_0x452d76(0xef))/0x5*(parseInt(_0x452d76(0x119))/0x6)+parseInt(_0x452d76(0x108))/0x7+parseInt(_0x452d76(0x101))/0x8*(-parseInt(_0x452d76(0xec))/0x9)+parseInt(_0x452d76(0x104))/0xa*(-parseInt(_0x452d76(0x114))/0xb)+parseInt(_0x452d76(0x10b))/0xc;if(_0x3be90e===_0x2d6fe7)break;else _0x2020e3['push'](_0x2020e3['shift']());}catch(_0x1ef773){_0x2020e3['push'](_0x2020e3['shift']());}}}(_0x555c,0x48c81));import{BoardElementType as _0x4e293a}from'@univerjs-pro/boards';import{FBoard as _0x1ab7f9}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4dcdda}from'@univerjs-pro/ink';import{Tools as _0x1b2b2e,generateRandomId as _0x5f1a90}from'@univerjs/core';import{FEnum as _0x42f1ff}from'@univerjs/core/facade';var o=class extends _0x1ab7f9{[_0x16ff5b(0x11f)](_0x474079){const _0x22725a=_0x16ff5b;let _0xcddca4=s(_0x474079);return _0xcddca4&&this[_0x22725a(0xfc)](_0xcddca4,{'insertIndex':_0x474079[_0x22725a(0xf7)]})?_0xcddca4:null;}[_0x16ff5b(0x10c)](){const _0x5b819c=_0x16ff5b;return this[_0x5b819c(0xf9)]({'elementType':_0x4e293a[_0x5b819c(0x10e)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x3f5f2a,_0xd68a4d){const _0x158659=_0x16ff5b;if(!l(_0x3f5f2a[_0x158659(0x100)])||_0x3f5f2a[_0x158659(0x111)]!==void 0x0&&!l(_0x3f5f2a[_0x158659(0x111)])||!u(_0x3f5f2a['style']))return null;let _0x319f8a=_0x3f5f2a[_0x158659(0xea)]??(_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xea)]),_0x2703aa=_0x1b2b2e[_0x158659(0xff)](_0x3f5f2a[_0x158659(0x100)]),_0x414af4=_0x4dcdda({'model':_0x2703aa,'style':_0x3f5f2a['style'],'tool':_0x3f5f2a['tool'],'sourceModel':_0x3f5f2a[_0x158659(0x111)]?_0x1b2b2e['deepClone'](_0x3f5f2a[_0x158659(0x111)]):_0x2703aa}),_0x1d5a70=d(_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xee)]);return{'id':(_0xd68a4d==null?void 0x0:_0xd68a4d['id'])??_0x3f5f2a['id']??_0x5f1a90(0x6),'type':_0x4e293a[_0x158659(0x10e)],'transform':_0x414af4[_0x158659(0xf0)],'shapeData':_0x414af4[_0x158659(0x118)],'parentId':_0x319f8a??void 0x0,'laneId':_0x3f5f2a[_0x158659(0xf6)]===void 0x0?_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xf6)]:_0x3f5f2a[_0x158659(0xf6)],'custom':{..._0x1d5a70,'ink':_0x414af4['ink']}};}function c(_0x65a72f){const _0x3f3a2e=_0x16ff5b;return Number[_0x3f3a2e(0x11a)](_0x65a72f['x'])&&Number[_0x3f3a2e(0x11a)](_0x65a72f['y']);}function l(_0x313fd0){const _0x2e3328=_0x16ff5b;if(_0x313fd0[_0x2e3328(0x112)]===_0x2e3328(0xf4)){let _0x102b11=new Set();return _0x313fd0[_0x2e3328(0x110)][_0x2e3328(0x106)]>=(_0x313fd0['closed']?0x3:0x2)&&_0x313fd0[_0x2e3328(0x110)][_0x2e3328(0xf2)](_0x1791a5=>{const _0x5a5d40=_0x2e3328;let _0x5d3866=_0x1791a5['id'][_0x5a5d40(0xf8)]()[_0x5a5d40(0x106)]>0x0&&!_0x102b11['has'](_0x1791a5['id'])&&c(_0x1791a5)&&(!_0x1791a5['in']||c(_0x1791a5['in']))&&(!_0x1791a5[_0x5a5d40(0x103)]||c(_0x1791a5[_0x5a5d40(0x103)]));return _0x102b11[_0x5a5d40(0x107)](_0x1791a5['id']),_0x5d3866;});}return _0x313fd0[_0x2e3328(0x115)][_0x2e3328(0x106)]>=0x2&&_0x313fd0[_0x2e3328(0x115)][_0x2e3328(0xf2)](_0x8f979b=>c(_0x8f979b)&&Number[_0x2e3328(0x11a)](_0x8f979b['t'])&&(_0x8f979b[_0x2e3328(0x11d)]===void 0x0||Number[_0x2e3328(0x11a)](_0x8f979b[_0x2e3328(0x11d)])))&&Number['isFinite'](_0x313fd0[_0x2e3328(0xf5)])&&_0x313fd0['width']>0x0&&Number[_0x2e3328(0x11a)](_0x313fd0[_0x2e3328(0xfb)])&&_0x313fd0[_0x2e3328(0xfb)]>=0x0&&_0x313fd0[_0x2e3328(0xfb)]<=0x1;}function u(_0x10dc54){const _0x55dd3b=_0x16ff5b;return _0x10dc54===void 0x0||(_0x10dc54[_0x55dd3b(0xf5)]===void 0x0||Number[_0x55dd3b(0x11a)](_0x10dc54[_0x55dd3b(0xf5)])&&_0x10dc54[_0x55dd3b(0xf5)]>0x0)&&(_0x10dc54['opacity']===void 0x0||Number[_0x55dd3b(0x11a)](_0x10dc54[_0x55dd3b(0xfb)])&&_0x10dc54[_0x55dd3b(0xfb)]>=0x0&&_0x10dc54['opacity']<=0x1);}function d(_0x118588){const _0x32e573=_0x16ff5b;return _0x118588&&typeof _0x118588==_0x32e573(0xfe)&&!Array['isArray'](_0x118588)?_0x118588:{};}function f(_0x1bb104){const _0x7ff9a2=_0x16ff5b;let _0x58bd3b=d(_0x1bb104['custom'])[_0x7ff9a2(0x10f)];if(!_0x58bd3b||typeof _0x58bd3b!=_0x7ff9a2(0xfe)||Array[_0x7ff9a2(0x109)](_0x58bd3b))return null;let _0x5793d1=_0x58bd3b;return _0x5793d1[_0x7ff9a2(0x117)]===0x1&&_0x5793d1[_0x7ff9a2(0x111)]&&typeof _0x5793d1[_0x7ff9a2(0x111)]==_0x7ff9a2(0xfe)?_0x5793d1:null;}function p(_0x271c19){const _0x5aa76f=_0x16ff5b;return _0x271c19[_0x5aa76f(0xfd)]===_0x4e293a['Shape']&&!!f(_0x271c19);}_0x1ab7f9[_0x16ff5b(0xeb)](o);function _0x330d(_0x3483fe,_0x5a88db){_0x3483fe=_0x3483fe-0xea;const _0x555c07=_0x555c();let _0x330d5c=_0x555c07[_0x3483fe];return _0x330d5c;}function _0x555c(){const _0x331a71=['add','2988720sfGVos','isArray','highlighter','4038228dJzGzj','getInks','9MHGOtr','Shape','ink','anchors','sourceModel','kind','1khJcFi','9999axsGvD','points','corner','version','shapeData','1538952ePTLBI','isFinite','429920CafOxP','387370CVdgUo','pressure','free','insertInk','parentId','extend','9tLftkb','BoardInkHandleKind','custom','5NoTkKT','transform','smooth','every','anchor','pen','width','laneId','insertIndex','trim','findElements','BoardInkPointType','opacity','_addElement','type','object','deepClone','model','1407704YBRITD','BoardInkTool','out','6040qiZVvX','brush','length'];_0x555c=function(){return _0x331a71;};return _0x555c();}const m={'Pen':'pen','Brush':_0x16ff5b(0x105),'Highlighter':_0x16ff5b(0x10a)},h={'Corner':_0x16ff5b(0x116),'Smooth':_0x16ff5b(0xf1),'Symmetric':'symmetric','Free':_0x16ff5b(0x11e)},g={'Anchor':_0x16ff5b(0xf3),'In':'in','Out':'out'};var _=class extends _0x42f1ff{get[_0x16ff5b(0x102)](){return m;}get[_0x16ff5b(0xfa)](){return h;}get[_0x16ff5b(0xed)](){return g;}};_0x42f1ff[_0x16ff5b(0xeb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x43396f=_0x5b63;(function(_0x4c39c7,_0xda322d){const _0x232cbc=_0x5b63,_0x2be235=_0x4c39c7();while(!![]){try{const _0x28d0f5=-parseInt(_0x232cbc(0x1b5))/0x1+parseInt(_0x232cbc(0x1ab))/0x2*(-parseInt(_0x232cbc(0x1cb))/0x3)+-parseInt(_0x232cbc(0x1df))/0x4*(-parseInt(_0x232cbc(0x19c))/0x5)+-parseInt(_0x232cbc(0x1cc))/0x6*(-parseInt(_0x232cbc(0x1c4))/0x7)+-parseInt(_0x232cbc(0x1b7))/0x8*(-parseInt(_0x232cbc(0x1c7))/0x9)+-parseInt(_0x232cbc(0x1e7))/0xa*(-parseInt(_0x232cbc(0x1d0))/0xb)+-parseInt(_0x232cbc(0x1c9))/0xc;if(_0x28d0f5===_0xda322d)break;else _0x2be235['push'](_0x2be235['shift']());}catch(_0xa02555){_0x2be235['push'](_0x2be235['shift']());}}}(_0x2e72,0x2f376));import{ShapeFillEnum as _0x1415aa,ShapeLineCapEnum as _0x470397,ShapeLineJoinEnum as _0x34e189,ShapeLineTypeEnum as _0x2148f9,ShapeTypeEnum as _0x46da06}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5cf441}from'@univerjs-pro/license';import{CommandType as _0x291e91,DependentOn as _0x40586b,ICommandService as _0x1fafaa,IConfigService as _0x214ca1,Inject as _0x4a0035,Injector as _0x5e60e7,Plugin as _0x23a329,UniverInstanceType as _0x4b2236,createIdentifier as _0x3acfc4,merge as _0x488fc2,toDisposable as _0x5c9d22}from'@univerjs/core';const g=0.0001;function _(_0x4ec654){return{'x':_0x4ec654['x'],'y':_0x4ec654['y']};}function v(_0x29d4c8){const _0x1144ff=_0x5b63;return{..._0x29d4c8,'in':_0x29d4c8['in']?_(_0x29d4c8['in']):void 0x0,'out':_0x29d4c8[_0x1144ff(0x1e5)]?_(_0x29d4c8[_0x1144ff(0x1e5)]):void 0x0};}function y(_0x975f0){const _0x549241=_0x5b63;return{'kind':_0x549241(0x1dc),'closed':_0x975f0['closed'],'anchors':_0x975f0[_0x549241(0x1f0)][_0x549241(0x196)](v)};}function b(_0x47445f,_0x552e91,_0x45e702){return{'x':_0x47445f['x']+(_0x552e91['x']-_0x47445f['x'])*_0x45e702,'y':_0x47445f['y']+(_0x552e91['y']-_0x47445f['y'])*_0x45e702};}function x(_0x4239f2,_0x2e359c){const _0x3d644b=_0x5b63;return Math[_0x3d644b(0x1ca)](_0x4239f2['x']-_0x2e359c['x'],_0x4239f2['y']-_0x2e359c['y']);}function S(_0x4e1cc6){let _0x47a728=Math['hypot'](_0x4e1cc6['x'],_0x4e1cc6['y']);return _0x47a728<g?{'x':0x1,'y':0x0}:{'x':_0x4e1cc6['x']/_0x47a728,'y':_0x4e1cc6['y']/_0x47a728};}function C(_0x2c4165,_0x7cf372,_0x1a625b=x(_0x2c4165,_0x7cf372)){let _0x42174e=S({'x':_0x2c4165['x']-_0x7cf372['x'],'y':_0x2c4165['y']-_0x7cf372['y']});return{'x':_0x2c4165['x']+_0x42174e['x']*_0x1a625b,'y':_0x2c4165['y']+_0x42174e['y']*_0x1a625b};}function w(_0x361a5c,_0x4153ef){const _0x2af2f7=_0x5b63;let {anchors:_0x31dbbe}=_0x361a5c;return _0x31dbbe[_0x2af2f7(0x1ad)]<0x2||_0x4153ef<0x0?null:_0x4153ef<_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x4153ef,'endIndex':_0x4153ef+0x1,'start':_0x31dbbe[_0x4153ef],'end':_0x31dbbe[_0x4153ef+0x1]}:_0x361a5c['closed']&&_0x4153ef===_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x31dbbe[_0x2af2f7(0x1ad)]-0x1,'endIndex':0x0,'start':_0x31dbbe[_0x31dbbe[_0x2af2f7(0x1ad)]-0x1],'end':_0x31dbbe[0x0]}:null;}function T(_0x4ee2f4,_0x269f1a){const _0x49dacf=_0x5b63;let _0x4b740a=w(_0x4ee2f4,_0x269f1a);return _0x4b740a?[_0x4b740a['start'],_0x4b740a['start'][_0x49dacf(0x1e5)]??_0x4b740a[_0x49dacf(0x1c6)],_0x4b740a['end']['in']??_0x4b740a[_0x49dacf(0x1b6)],_0x4b740a[_0x49dacf(0x1b6)]]:null;}function te(_0x2dd2df,_0x1aad87){const _0x31a03d=_0x5b63;return _0x1aad87===_0x31a03d(0x1ee)?_0x2dd2df:_0x2dd2df[_0x1aad87]??null;}function E(_0x186b29,_0x3c5daf,_0x64e68){const _0x3a9a78=_0x5b63;return _0x64e68===_0x3a9a78(0x1ee)||_0x186b29[_0x3a9a78(0x192)]?!0x0:_0x64e68==='in'?_0x3c5daf>0x0:_0x3c5daf<_0x186b29[_0x3a9a78(0x1f0)][_0x3a9a78(0x1ad)]-0x1;}function D(_0x3aa310,_0x5cce6e){let [_0x507bf3,_0x212d02,_0x1750a1,_0x1098c2]=_0x3aa310,_0x171bae=b(_0x507bf3,_0x212d02,_0x5cce6e),_0x29cd81=b(_0x212d02,_0x1750a1,_0x5cce6e),_0x5ba6b4=b(_0x1750a1,_0x1098c2,_0x5cce6e);return b(b(_0x171bae,_0x29cd81,_0x5cce6e),b(_0x29cd81,_0x5ba6b4,_0x5cce6e),_0x5cce6e);}function ne(_0x425162,_0x9db1fc){let [_0x3cb3eb,_0x345d80,_0xff87cb,_0x35154e]=_0x425162,_0xfa8fd1=b(_0x3cb3eb,_0x345d80,_0x9db1fc),_0x2835e3=b(_0x345d80,_0xff87cb,_0x9db1fc),_0x1a8089=b(_0xff87cb,_0x35154e,_0x9db1fc),_0x2c73b4=b(_0xfa8fd1,_0x2835e3,_0x9db1fc),_0x51e7f5=b(_0x2835e3,_0x1a8089,_0x9db1fc),_0x3d8224=b(_0x2c73b4,_0x51e7f5,_0x9db1fc);return{'left':[_0x3cb3eb,_0xfa8fd1,_0x2c73b4,_0x3d8224],'right':[_0x3d8224,_0x51e7f5,_0x1a8089,_0x35154e]};}function O(_0x1da999,_0x3e50b8,_0x5d2a6f){const _0x422541=_0x5b63;let _0x1efa5c=_0x5d2a6f['x']-_0x3e50b8['x'],_0x4fccbc=_0x5d2a6f['y']-_0x3e50b8['y'],_0x2e2b47=_0x1efa5c*_0x1efa5c+_0x4fccbc*_0x4fccbc,_0x4491ea=_0x2e2b47<=g?0x0:Math[_0x422541(0x1c5)](0x0,Math[_0x422541(0x1de)](0x1,((_0x1da999['x']-_0x3e50b8['x'])*_0x1efa5c+(_0x1da999['y']-_0x3e50b8['y'])*_0x4fccbc)/_0x2e2b47)),_0x465e22={'x':_0x3e50b8['x']+_0x1efa5c*_0x4491ea,'y':_0x3e50b8['y']+_0x4fccbc*_0x4491ea};return{'point':_0x465e22,'ratio':_0x4491ea,'distance':x(_0x1da999,_0x465e22)};}function re(_0x3cff44,_0x1d2224,_0x12ee58){const _0x20d29b=_0x5b63;return O(_0x3cff44,_0x1d2224,_0x12ee58)[_0x20d29b(0x1a2)]**0x2;}function k(_0x138460,_0x2d1853){const _0x2c2f3f=_0x5b63;if(_0x138460[_0x2c2f3f(0x1ad)]<=0x2)return _0x138460['map'](_);let _0x3e1b2d=0x0,_0x14b18e=0x0,_0x5eeb76=_0x138460[0x0],_0x1bbf4b=_0x138460[_0x138460[_0x2c2f3f(0x1ad)]-0x1],_0x3923c9=_0x2d1853*_0x2d1853;for(let _0x231204=0x1;_0x231204<_0x138460['length']-0x1;_0x231204++){let _0x4d01a6=re(_0x138460[_0x231204],_0x5eeb76,_0x1bbf4b);_0x4d01a6>_0x3e1b2d&&(_0x3e1b2d=_0x4d01a6,_0x14b18e=_0x231204);}if(_0x3e1b2d<=_0x3923c9)return[_(_0x5eeb76),_(_0x1bbf4b)];let _0x3eda5c=k(_0x138460[_0x2c2f3f(0x1ac)](0x0,_0x14b18e+0x1),_0x2d1853),_0xa5f11a=k(_0x138460[_0x2c2f3f(0x1ac)](_0x14b18e),_0x2d1853);return[..._0x3eda5c['slice'](0x0,-0x1),..._0xa5f11a];}function ie(_0x1b7adf,_0x2f2ada){let _0x3b78b5=_0x1b7adf[_0x2f2ada],_0x35f91b=_0x1b7adf[_0x2f2ada+0x1],_0x4a7258=_0x1b7adf[_0x2f2ada-0x1]??_0x3b78b5;return{'x':_0x3b78b5['x']+(_0x35f91b['x']-_0x4a7258['x'])/0x6,'y':_0x3b78b5['y']+(_0x35f91b['y']-_0x4a7258['y'])/0x6};}function A(_0x2a4cb0,_0x3f14ca){let _0x40aaf7=_0x2a4cb0[_0x3f14ca],_0x4de17b=_0x2a4cb0[_0x3f14ca-0x1],_0x35921f=_0x2a4cb0[_0x3f14ca+0x1]??_0x40aaf7;return{'x':_0x40aaf7['x']-(_0x35921f['x']-_0x4de17b['x'])/0x6,'y':_0x40aaf7['y']-(_0x35921f['y']-_0x4de17b['y'])/0x6};}function j(_0x408c38,_0x50395c){const _0x5e790e=_0x5b63;let _0x52d51b=_0x408c38['anchors'][_0x50395c],_0x5f4790=_0x408c38[_0x5e790e(0x1f0)][_0x50395c-0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38['anchors'][_0x408c38[_0x5e790e(0x1f0)][_0x5e790e(0x1ad)]-0x1]:null),_0x70b51c=_0x408c38[_0x5e790e(0x1f0)][_0x50395c+0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38[_0x5e790e(0x1f0)][0x0]:null),_0x3dd1b7=_0x5f4790&&_0x70b51c?S({'x':_0x70b51c['x']-_0x5f4790['x'],'y':_0x70b51c['y']-_0x5f4790['y']}):_0x70b51c?S({'x':_0x70b51c['x']-_0x52d51b['x'],'y':_0x70b51c['y']-_0x52d51b['y']}):_0x5f4790?S({'x':_0x52d51b['x']-_0x5f4790['x'],'y':_0x52d51b['y']-_0x5f4790['y']}):{'x':0x1,'y':0x0},_0x39e097=_0x5f4790&&_0x70b51c?Math[_0x5e790e(0x1c5)](0x32,x(_0x5f4790,_0x70b51c)/0x4):0x32;return{'in':{'x':_0x52d51b['x']-_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']-_0x3dd1b7['y']*_0x39e097},'out':{'x':_0x52d51b['x']+_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']+_0x3dd1b7['y']*_0x39e097}};}function M(_0xde4f53,_0x543632){const _0x211b55=_0x5b63;let _0x3bbe5a=_0xde4f53[_0x543632],_0x436761=_0x543632==='in'?'out':'in',_0x2577be=_0xde4f53[_0x436761];_0x3bbe5a&&(_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1da)?_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a):_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1a6)&&(_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a,_0x2577be?x(_0xde4f53,_0x2577be):x(_0xde4f53,_0x3bbe5a))));}function ae(_0x361f78,_0x4b0a66){const _0x3e0528=_0x5b63;let _0x21564a=y(_0x361f78);return!_0x4b0a66||_0x21564a[_0x3e0528(0x192)]||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x1ad)]===0x0||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x199)]({'id':_0x3e0528(0x1e9),'x':_0x4b0a66['x'],'y':_0x4b0a66['y'],'pointType':_0x3e0528(0x1c8)}),_0x21564a;}function oe(_0x171597,_0x23ad12={}){const _0x585999=_0x5b63;let _0x33fb6a=Math[_0x585999(0x1c5)](0x0,_0x23ad12['tolerance']??Math['max'](0x4,_0x171597[_0x585999(0x1c3)]*0.35)),_0xa8f2a6=_0x23ad12[_0x585999(0x1a8)]??(_0x10e982=>'ink-centerline-'+_0x10e982),_0x2b86f1=k(_0x171597[_0x585999(0x195)],_0x33fb6a),_0x5406e1=_0x2b86f1['map']((_0x28bbfa,_0x2ff424)=>({'id':_0xa8f2a6(_0x2ff424),'x':_0x28bbfa['x'],'y':_0x28bbfa['y'],'pointType':_0x585999(0x1ea)}));for(let _0x235b0d=0x0;_0x235b0d<_0x5406e1[_0x585999(0x1ad)]-0x1;_0x235b0d++)_0x5406e1[_0x235b0d][_0x585999(0x1e5)]=ie(_0x2b86f1,_0x235b0d),_0x5406e1[_0x235b0d+0x1]['in']=A(_0x2b86f1,_0x235b0d+0x1);return{'kind':_0x585999(0x1dc),'closed':!0x1,'anchors':_0x5406e1};}function se(_0x58fda9,_0x4d3928,_0x51dcbb){const _0x17c666=_0x5b63;let _0x44aca8=null,_0x5bc17b=[_0x17c666(0x1ee),'in',_0x17c666(0x1e5)];return _0x58fda9[_0x17c666(0x1f0)][_0x17c666(0x19e)]((_0x360f6a,_0x42da95)=>{const _0x15339=_0x17c666;_0x5bc17b[_0x15339(0x19e)](_0x55de48=>{const _0x1beed8=_0x15339;if(!E(_0x58fda9,_0x42da95,_0x55de48))return;let _0x4799f3=te(_0x360f6a,_0x55de48);if(!_0x4799f3)return;let _0x1dfcb1=x(_0x4d3928,_0x4799f3);_0x1dfcb1>_0x51dcbb||_0x44aca8&&_0x1dfcb1>=_0x44aca8[_0x1beed8(0x1a2)]||(_0x44aca8={'handle':{'kind':_0x55de48,'anchorId':_0x360f6a['id']},'point':_(_0x4799f3),'distance':_0x1dfcb1});});}),_0x44aca8;}function ce(_0x25c6f9,_0x936968,_0x217cd5){const _0x162939=_0x5b63;let _0x300196=null,_0x3b5600=_0x25c6f9[_0x162939(0x192)]?_0x25c6f9[_0x162939(0x1f0)]['length']:Math['max'](0x0,_0x25c6f9['anchors']['length']-0x1);for(let _0xdd6ac4=0x0;_0xdd6ac4<_0x3b5600;_0xdd6ac4++){let _0x513128=T(_0x25c6f9,_0xdd6ac4);if(!_0x513128)continue;let _0x3fa3d0=D(_0x513128,0x0);for(let _0x21494c=0x1;_0x21494c<=0x20;_0x21494c++){let _0x5a1a35=D(_0x513128,_0x21494c/0x20),_0x3ea94b=O(_0x936968,_0x3fa3d0,_0x5a1a35),_0xbd4031=(_0x21494c-0x1+_0x3ea94b['ratio'])/0x20;(!_0x300196||_0x3ea94b[_0x162939(0x1a2)]<_0x300196['distance'])&&(_0x300196={'segmentIndex':_0xdd6ac4,'t':_0xbd4031,'point':_0x3ea94b[_0x162939(0x1e0)],'distance':_0x3ea94b[_0x162939(0x1a2)]}),_0x3fa3d0=_0x5a1a35;}}return _0x300196&&_0x300196[_0x162939(0x1a2)]<=_0x217cd5?_0x300196:null;}function le(_0x617879,_0x40d83e,_0x1830be){const _0x465052=_0x5b63;let _0xe7e6a2=y(_0x617879),_0x19456e=w(_0xe7e6a2,_0x40d83e['segmentIndex']),_0x3d2114=T(_0xe7e6a2,_0x40d83e[_0x465052(0x1af)]);if(!_0x19456e||!_0x3d2114)return _0xe7e6a2;let _0xf3e387=ne(_0x3d2114,Math['max'](0x0,Math['min'](0x1,_0x40d83e['t']))),_0x52463f={'id':_0x1830be(),'x':_0xf3e387[_0x465052(0x1ce)][0x3]['x'],'y':_0xf3e387[_0x465052(0x1ce)][0x3]['y'],'in':_(_0xf3e387[_0x465052(0x1ce)][0x2]),'out':_(_0xf3e387[_0x465052(0x1d4)][0x1]),'pointType':_0x465052(0x1ea)};return _0xe7e6a2[_0x465052(0x1f0)][_0x19456e[_0x465052(0x1d1)]][_0x465052(0x1e5)]=_(_0xf3e387['left'][0x1]),_0xe7e6a2['anchors'][_0x19456e[_0x465052(0x1cf)]]['in']=_(_0xf3e387[_0x465052(0x1d4)][0x2]),_0xe7e6a2[_0x465052(0x1f0)]['splice'](_0x19456e[_0x465052(0x1d1)]+0x1,0x0,_0x52463f),_0xe7e6a2;}function ue(_0x2a5859,_0x214708){const _0x30fadd=_0x5b63;let _0x4b1f8d=y(_0x2a5859);return _0x4b1f8d['anchors']=_0x4b1f8d[_0x30fadd(0x1f0)]['filter'](_0x31d649=>_0x31d649['id']!==_0x214708),_0x4b1f8d['closed']&&_0x4b1f8d[_0x30fadd(0x1f0)][_0x30fadd(0x1ad)]<0x3&&(_0x4b1f8d[_0x30fadd(0x192)]=!0x1),_0x4b1f8d;}function _0x5b63(_0x5d7baa,_0xe0f7b1){_0x5d7baa=_0x5d7baa-0x192;const _0x2e7274=_0x2e72();let _0x5b6305=_0x2e7274[_0x5d7baa];return _0x5b6305;}function N(_0x4e91ce,_0x29da09,_0x56f6d4){const _0xcef981=_0x5b63;let _0x1580e8=y(_0x4e91ce),_0x46fe69=_0x1580e8[_0xcef981(0x1f0)][_0xcef981(0x1cd)](_0x13e044=>_0x13e044['id']===_0x29da09),_0x437eac=_0x1580e8[_0xcef981(0x1f0)][_0x46fe69];if(!_0x437eac)return _0x1580e8;if(_0x437eac[_0xcef981(0x1ba)]=_0x56f6d4,_0x56f6d4==='corner')return delete _0x437eac['in'],delete _0x437eac[_0xcef981(0x1e5)],_0x1580e8;let _0x516e33=j(_0x1580e8,_0x46fe69);if(_0x437eac['in']=_0x437eac['in']?_(_0x437eac['in']):_0x516e33['in'],_0x437eac[_0xcef981(0x1e5)]=_0x437eac[_0xcef981(0x1e5)]?_(_0x437eac[_0xcef981(0x1e5)]):_0x516e33[_0xcef981(0x1e5)],_0x56f6d4===_0xcef981(0x1da)){let _0x1e4ec2=Math[_0xcef981(0x1c5)](x(_0x437eac,_0x437eac['in']),x(_0x437eac,_0x437eac[_0xcef981(0x1e5)]),0x32),_0x55293d=S({'x':_0x437eac[_0xcef981(0x1e5)]['x']-_0x437eac['x'],'y':_0x437eac[_0xcef981(0x1e5)]['y']-_0x437eac['y']});_0x437eac['out']={'x':_0x437eac['x']+_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']+_0x55293d['y']*_0x1e4ec2},_0x437eac['in']={'x':_0x437eac['x']-_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']-_0x55293d['y']*_0x1e4ec2};}else _0x56f6d4==='smooth'&&M(_0x437eac,_0xcef981(0x1e5));return _0x1580e8;}function P(_0x3b045a,_0xcdb09e){const _0x45f1ba=_0x5b63;let _0x1ec69d=_0x3b045a[_0x45f1ba(0x1f0)][_0x45f1ba(0x1b9)](_0x2a6b10=>_0x2a6b10['id']===_0xcdb09e),_0x3862a2=(_0x1ec69d==null?void 0x0:_0x1ec69d[_0x45f1ba(0x1ba)])??_0x45f1ba(0x1c8);return N(_0x3b045a,_0xcdb09e,_0x3862a2==='corner'?_0x45f1ba(0x1a6):_0x3862a2===_0x45f1ba(0x1a6)?_0x45f1ba(0x1da):_0x3862a2===_0x45f1ba(0x1da)?_0x45f1ba(0x1ea):_0x45f1ba(0x1c8));}function F(_0x1740c2,_0x2c61fc,_0x14584b){const _0x434dbc=_0x5b63;let _0x241490=y(_0x1740c2),_0x3909a8=_0x241490['anchors']['find'](_0x3caa35=>_0x3caa35['id']===_0x2c61fc['anchorId']);if(!_0x3909a8)return _0x241490;if(_0x2c61fc[_0x434dbc(0x1b4)]===_0x434dbc(0x1ee)){let _0x592235={'x':_0x14584b['x']-_0x3909a8['x'],'y':_0x14584b['y']-_0x3909a8['y']};return _0x3909a8['x']=_0x14584b['x'],_0x3909a8['y']=_0x14584b['y'],_0x3909a8['in']&&={'x':_0x3909a8['in']['x']+_0x592235['x'],'y':_0x3909a8['in']['y']+_0x592235['y']},_0x3909a8[_0x434dbc(0x1e5)]&&={'x':_0x3909a8[_0x434dbc(0x1e5)]['x']+_0x592235['x'],'y':_0x3909a8['out']['y']+_0x592235['y']},_0x241490;}return _0x3909a8[_0x2c61fc[_0x434dbc(0x1b4)]]=_(_0x14584b),_0x3909a8[_0x434dbc(0x1ba)]===_0x434dbc(0x1c8)&&(_0x3909a8[_0x434dbc(0x1ba)]=_0x434dbc(0x1ea)),M(_0x3909a8,_0x2c61fc[_0x434dbc(0x1b4)]),_0x241490;}const I=1e-9;function L(_0x1af70c){const _0x3fe7f2=_0x5b63;let _0x5dd935=Math[_0x3fe7f2(0x197)](_0x1af70c*0x2710)/0x2710;return Object['is'](_0x5dd935,-0x0)?'0':String(_0x5dd935);}function R(_0x38220b){return L(_0x38220b['x'])+'\x20'+L(_0x38220b['y']);}function z(_0x30ce80,_0x175b51){return{'x':_0x30ce80['x']-_0x175b51['x'],'y':_0x30ce80['y']-_0x175b51['y']};}function B(_0x4b816f,_0x3915b3,_0x5c78b8,_0x17cfe7,_0x1816ec){let _0x56581d=0x1-_0x1816ec;return{'x':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['x']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['x']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['x']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['x'],'y':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['y']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['y']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['y']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['y']};}function V(_0x18e54d,_0x5813d1,_0x545969,_0x32312c){const _0x41c53f=_0x5b63;let _0x4b9f73=-_0x18e54d+0x3*_0x5813d1-0x3*_0x545969+_0x32312c,_0x14e391=0x3*_0x18e54d-0x6*_0x5813d1+0x3*_0x545969,_0x39476b=-0x3*_0x18e54d+0x3*_0x5813d1,_0x466e48=[];if(Math[_0x41c53f(0x1ef)](_0x4b9f73)<I){if(Math[_0x41c53f(0x1ef)](_0x14e391)<I)return _0x466e48;let _0x47b5c2=-_0x39476b/(0x2*_0x14e391);return _0x47b5c2>0x0&&_0x47b5c2<0x1&&_0x466e48[_0x41c53f(0x199)](_0x47b5c2),_0x466e48;}let _0x4691fd=_0x14e391*_0x14e391-0x3*_0x4b9f73*_0x39476b;if(_0x4691fd<0x0)return _0x466e48;let _0x567805=Math[_0x41c53f(0x1eb)](Math[_0x41c53f(0x1c5)](0x0,_0x4691fd)),_0x336e74=(-_0x14e391+_0x567805)/(0x3*_0x4b9f73),_0x579f5b=(-_0x14e391-_0x567805)/(0x3*_0x4b9f73);return _0x336e74>0x0&&_0x336e74<0x1&&_0x466e48['push'](_0x336e74),_0x579f5b>0x0&&_0x579f5b<0x1&&Math[_0x41c53f(0x1ef)](_0x579f5b-_0x336e74)>I&&_0x466e48['push'](_0x579f5b),_0x466e48;}function H(_0x5ced87,_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be){const _0x55dcce=_0x5b63;_0x5ced87[_0x55dcce(0x199)](_0xf5e7c,_0xef08be),new Set([...V(_0xf5e7c['x'],_0x2aebb5['x'],_0x146f57['x'],_0xef08be['x']),...V(_0xf5e7c['y'],_0x2aebb5['y'],_0x146f57['y'],_0xef08be['y'])])['forEach'](_0x5de4d9=>{const _0x34e751=_0x55dcce;_0x5ced87[_0x34e751(0x199)](B(_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be,_0x5de4d9));});}function U(_0x1333aa){const _0x7e9915=_0x5b63;let _0x2986be=_0x1333aa[_0x7e9915(0x1f0)];if(_0x2986be[_0x7e9915(0x1ad)]<=0x1)return _0x2986be;let _0x5cbc52=[];for(let _0x35e4b6=0x1;_0x35e4b6<_0x2986be[_0x7e9915(0x1ad)];_0x35e4b6++){let _0x18fb54=_0x2986be[_0x35e4b6-0x1],_0x37b667=_0x2986be[_0x35e4b6];H(_0x5cbc52,_0x18fb54,_0x18fb54[_0x7e9915(0x1e5)]??_0x18fb54,_0x37b667['in']??_0x37b667,_0x37b667);}if(_0x1333aa[_0x7e9915(0x192)]&&_0x2986be[_0x7e9915(0x1ad)]>0x1){let _0x2ef0cf=_0x2986be[_0x2986be[_0x7e9915(0x1ad)]-0x1],_0x39d297=_0x2986be[0x0];H(_0x5cbc52,_0x2ef0cf,_0x2ef0cf[_0x7e9915(0x1e5)]??_0x2ef0cf,_0x39d297['in']??_0x39d297,_0x39d297);}return _0x5cbc52;}function de(_0x4e31a3){const _0x2bbfe9=_0x5b63;let _0x604d13=_0x4e31a3[_0x2bbfe9(0x195)];if(_0x604d13[_0x2bbfe9(0x1ad)]<=0x1)return _0x604d13;let _0x4dfb6b=[];for(let _0x151291=0x0;_0x151291<_0x604d13['length']-0x1;_0x151291++){let _0xecb5ef=_0x604d13[_0x151291],_0x3c0222=_0x604d13[_0x151291+0x1],_0x1472b0=_0x604d13[_0x151291-0x1]??_0xecb5ef,_0x45ea24=_0x604d13[_0x151291+0x2]??_0x3c0222;H(_0x4dfb6b,_0xecb5ef,{'x':_0xecb5ef['x']+(_0x3c0222['x']-_0x1472b0['x'])/0x6,'y':_0xecb5ef['y']+(_0x3c0222['y']-_0x1472b0['y'])/0x6},{'x':_0x3c0222['x']-(_0x45ea24['x']-_0xecb5ef['x'])/0x6,'y':_0x3c0222['y']-(_0x45ea24['y']-_0xecb5ef['y'])/0x6},_0x3c0222);}return _0x4dfb6b;}function fe(_0x172440){const _0x6fc696=_0x5b63;return _0x172440[_0x6fc696(0x1b4)]===_0x6fc696(0x1dc)?U(_0x172440):de(_0x172440);}function W(_0x4e2575){const _0x4fcd51=_0x5b63;let _0x4d4ea1=Math[_0x4fcd51(0x197)](_0x4e2575*0x2710)/0x2710;return Object['is'](_0x4d4ea1,-0x0)?0x0:_0x4d4ea1;}function G(_0x332840){const _0x1a3809=_0x5b63;let _0x23f35e=fe(_0x332840);if(_0x23f35e[_0x1a3809(0x1ad)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3211cf=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x9432b5=>_0x9432b5['x'])),_0x11de0d=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x3d21bd=>_0x3d21bd['y'])),_0x4de426=Math[_0x1a3809(0x1c5)](..._0x23f35e['map'](_0x466622=>_0x466622['x'])),_0x1d9d91=Math['max'](..._0x23f35e['map'](_0x201f1f=>_0x201f1f['y']));return{'left':W(_0x3211cf),'top':W(_0x11de0d),'width':W(Math['max'](0x1,_0x4de426-_0x3211cf)),'height':W(Math['max'](0x1,_0x1d9d91-_0x11de0d))};}function pe(_0x521836,_0x4fdbc0){const _0x34b0a2=_0x5b63;let _0x19e0a9=_0x521836['anchors'];if(_0x19e0a9[_0x34b0a2(0x1ad)]===0x0)return'';let _0x1d8e3d=['M\x20'+R(z(_0x19e0a9[0x0],_0x4fdbc0))];for(let _0x487fe1=0x1;_0x487fe1<_0x19e0a9[_0x34b0a2(0x1ad)];_0x487fe1++){let _0x5ec2ca=_0x19e0a9[_0x487fe1-0x1],_0x18235d=_0x19e0a9[_0x487fe1],_0x2acc6a=_0x5ec2ca[_0x34b0a2(0x1e5)]??_0x5ec2ca,_0x2a898c=_0x18235d['in']??_0x18235d;_0x1d8e3d[_0x34b0a2(0x199)]('C\x20'+R(z(_0x2acc6a,_0x4fdbc0))+'\x20'+R(z(_0x2a898c,_0x4fdbc0))+'\x20'+R(z(_0x18235d,_0x4fdbc0)));}if(_0x521836[_0x34b0a2(0x192)]&&_0x19e0a9[_0x34b0a2(0x1ad)]>0x1){let _0x3b31e9=_0x19e0a9[_0x19e0a9[_0x34b0a2(0x1ad)]-0x1],_0x29554c=_0x19e0a9[0x0],_0x1cdd63=_0x3b31e9[_0x34b0a2(0x1e5)]??_0x3b31e9,_0x5a814c=_0x29554c['in']??_0x29554c;_0x1d8e3d['push']('C\x20'+R(z(_0x1cdd63,_0x4fdbc0))+'\x20'+R(z(_0x5a814c,_0x4fdbc0))+'\x20'+R(z(_0x29554c,_0x4fdbc0))),_0x1d8e3d[_0x34b0a2(0x199)]('Z');}return _0x1d8e3d[_0x34b0a2(0x1d8)]('\x20');}function me(_0x259bd0,_0x1ef7ae){const _0x551ef0=_0x5b63;let _0x20ac1d=_0x259bd0[_0x551ef0(0x195)]['map'](_0x566651=>z(_0x566651,_0x1ef7ae));if(_0x20ac1d[_0x551ef0(0x1ad)]===0x0)return'';if(_0x20ac1d[_0x551ef0(0x1ad)]===0x1)return'M\x20'+R(_0x20ac1d[0x0]);let _0x5483c5=['M\x20'+R(_0x20ac1d[0x0])];for(let _0x5364da=0x0;_0x5364da<_0x20ac1d[_0x551ef0(0x1ad)]-0x1;_0x5364da++){let _0x256ccf=_0x20ac1d[_0x5364da],_0x52948f=_0x20ac1d[_0x5364da+0x1],_0x1997a1=_0x20ac1d[_0x5364da-0x1]??_0x256ccf,_0x14a1f7=_0x20ac1d[_0x5364da+0x2]??_0x52948f,_0x2d57bb={'x':_0x256ccf['x']+(_0x52948f['x']-_0x1997a1['x'])/0x6,'y':_0x256ccf['y']+(_0x52948f['y']-_0x1997a1['y'])/0x6},_0x3bcc5d={'x':_0x52948f['x']-(_0x14a1f7['x']-_0x256ccf['x'])/0x6,'y':_0x52948f['y']-(_0x14a1f7['y']-_0x256ccf['y'])/0x6};_0x5483c5[_0x551ef0(0x199)]('C\x20'+R(_0x2d57bb)+'\x20'+R(_0x3bcc5d)+'\x20'+R(_0x52948f));}return _0x5483c5[_0x551ef0(0x1d8)]('\x20');}function he(_0x37b641,_0x2ba77b){const _0x32ea8e=_0x5b63;return _0x37b641[_0x32ea8e(0x1b4)]==='pen'?pe(_0x37b641,_0x2ba77b):me(_0x37b641,_0x2ba77b);}function ge(_0x5a2fcc,_0xa3d057){const _0x1acc2e=_0x5b63;return _0xa3d057!=null&&_0xa3d057['color']?_0xa3d057[_0x1acc2e(0x1bb)]:_0x5a2fcc[_0x1acc2e(0x1b4)]===_0x1acc2e(0x1dc)?_0x1acc2e(0x1e2):_0x5a2fcc[_0x1acc2e(0x1bb)];}function _e(_0x3b9d70,_0x752241){const _0x109c0b=_0x5b63;return(_0x752241==null?void 0x0:_0x752241[_0x109c0b(0x1c3)])===void 0x0?_0x3b9d70[_0x109c0b(0x1b4)]===_0x109c0b(0x1dc)?0x2:_0x3b9d70[_0x109c0b(0x1c3)]:_0x752241[_0x109c0b(0x1c3)];}function ve(_0x2e92c3,_0x560d3c){const _0x48d22d=_0x5b63;return(_0x560d3c==null?void 0x0:_0x560d3c[_0x48d22d(0x1d2)])===void 0x0?_0x2e92c3[_0x48d22d(0x1b4)]===_0x48d22d(0x1dc)?void 0x0:_0x2e92c3[_0x48d22d(0x1d2)]:_0x560d3c['opacity'];}function _0x2e72(){const _0x3c1992=['10SlBgBP','Round','__ink-preview-anchor__','free','sqrt','_adapters','getOwnPropertyDescriptor','anchor','abs','anchors','decorate','default','closed','UNIVER_UNKNOWN','add','points','map','round','@univerjs-pro/ink','push','defineProperty','get','5Xmqjmh','tool','forEach','onStarting','ink.config','constructor','distance','type','iterator','_commandService','smooth','setConfig','createId','registerCommand','none','982mVvxAD','slice','length','_config','segmentIndex','function','Rect','pluginName','height','kind','316670DyGKJa','end','3704tRkUlk','version','find','pointType','color','splice','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createCustomShape','NoFill','_configService','top','width','1239jCYypZ','max','start','3213NglzJw','corner','1199100VKswAW','hypot','171ICMRdA','1878XpbfCG','findIndex','left','endIndex','2225542HhWfXU','startIndex','opacity','disposeWithMe','right','OPERATION','packageName','indexOf','join','symbol','symmetric','beginInkMode','pen','ink.operation.start','min','859864gbakIV','point','SolidFill','#f54a45','1.1.0','object','out','string'];_0x2e72=function(){return _0x3c1992;};return _0x2e72();}function ye(_0x131423,_0x19c971){const _0x5184b9=_0x5b63;let _0x1b6b28=G(_0x131423),_0x1b42fa=he(_0x131423,{'x':_0x1b6b28[_0x5184b9(0x1ce)],'y':_0x1b6b28['top']}),_0x47d6ed=_0x131423['kind']==='pen'&&_0x131423['closed'],_0xb0a7fc=_0x19c971==null?void 0x0:_0x19c971['fillColor'];return{'shapeType':_0x46da06[_0x5184b9(0x1b1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1b6b28[_0x5184b9(0x1c3)],'h':_0x1b6b28[_0x5184b9(0x1b3)],'fill':_0x47d6ed?'norm':_0x5184b9(0x1aa),'stroke':!0x0,'data':_0x1b42fa,'dataArray':be(_0x131423,{'x':_0x1b6b28['left'],'y':_0x1b6b28[_0x5184b9(0x1c2)]})}]},'fill':_0x47d6ed&&_0xb0a7fc?{'color':_0xb0a7fc,'fillType':_0x1415aa[_0x5184b9(0x1e1)]}:{'fillType':_0x1415aa[_0x5184b9(0x1c0)]},'stroke':{'color':ge(_0x131423,_0x19c971),'width':_e(_0x131423,_0x19c971),'opacity':ve(_0x131423,_0x19c971),'lineStrokeType':_0x2148f9['SolidLine'],'capType':_0x470397['Round'],'lineJoinType':_0x34e189[_0x5184b9(0x1e8)]}};}function K(_0x182e0e,_0x8f2a71){return{'x':_0x182e0e['x']-_0x8f2a71['x'],'y':_0x182e0e['y']-_0x8f2a71['y']};}function be(_0x5948b9,_0x101a36){const _0x2de9fd=_0x5b63;if(_0x5948b9[_0x2de9fd(0x1b4)]===_0x2de9fd(0x1dc)){let _0x2684f9=_0x5948b9['anchors'];if(_0x2684f9['length']===0x0)return[];let _0x270b4e=K(_0x2684f9[0x0],_0x101a36),_0x5d0528=[{'command':'M','points':[_0x270b4e['x'],_0x270b4e['y']]}];for(let _0xcf056b=0x1;_0xcf056b<_0x2684f9[_0x2de9fd(0x1ad)];_0xcf056b++){let _0x3f163e=_0x2684f9[_0xcf056b-0x1],_0x18a7bd=_0x2684f9[_0xcf056b],_0x46b10e=K(_0x3f163e[_0x2de9fd(0x1e5)]??_0x3f163e,_0x101a36),_0x1663e2=K(_0x18a7bd['in']??_0x18a7bd,_0x101a36),_0x4dd78a=K(_0x18a7bd,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x46b10e['x'],_0x46b10e['y'],_0x1663e2['x'],_0x1663e2['y'],_0x4dd78a['x'],_0x4dd78a['y']]});}if(_0x5948b9[_0x2de9fd(0x192)]&&_0x2684f9[_0x2de9fd(0x1ad)]>0x1){let _0x2cd089=_0x2684f9[_0x2684f9[_0x2de9fd(0x1ad)]-0x1],_0x4fc80e=_0x2684f9[0x0],_0x5cdbc4=K(_0x2cd089[_0x2de9fd(0x1e5)]??_0x2cd089,_0x101a36),_0x2ff460=K(_0x4fc80e['in']??_0x4fc80e,_0x101a36),_0x2d8ee0=K(_0x4fc80e,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x5cdbc4['x'],_0x5cdbc4['y'],_0x2ff460['x'],_0x2ff460['y'],_0x2d8ee0['x'],_0x2d8ee0['y']]}),_0x5d0528[_0x2de9fd(0x199)]({'command':'z','points':[]});}return _0x5d0528;}let _0x5669d2=_0x5948b9[_0x2de9fd(0x195)]['map'](_0x4caf9d=>K(_0x4caf9d,_0x101a36));if(_0x5669d2['length']===0x0)return[];let _0x4c784c=[{'command':'M','points':[_0x5669d2[0x0]['x'],_0x5669d2[0x0]['y']]}];for(let _0xa6d83f=0x0;_0xa6d83f<_0x5669d2['length']-0x1;_0xa6d83f++){let _0x285a50=_0x5669d2[_0xa6d83f],_0x5f44af=_0x5669d2[_0xa6d83f+0x1],_0x39e52b=_0x5669d2[_0xa6d83f-0x1]??_0x285a50,_0x44ce54=_0x5669d2[_0xa6d83f+0x2]??_0x5f44af,_0x5a7713={'x':_0x285a50['x']+(_0x5f44af['x']-_0x39e52b['x'])/0x6,'y':_0x285a50['y']+(_0x5f44af['y']-_0x39e52b['y'])/0x6},_0x51106e={'x':_0x5f44af['x']-(_0x44ce54['x']-_0x285a50['x'])/0x6,'y':_0x5f44af['y']-(_0x44ce54['y']-_0x285a50['y'])/0x6};_0x4c784c[_0x2de9fd(0x199)]({'command':'C','points':[_0x5a7713['x'],_0x5a7713['y'],_0x51106e['x'],_0x51106e['y'],_0x5f44af['x'],_0x5f44af['y']]});}return _0x4c784c;}function xe(_0x3de858){const _0x1e6861=_0x5b63;let {model:_0x1f53ef,sourceModel:_0x1d9dc1=_0x1f53ef,style:_0x1a49da}=_0x3de858,_0xfa98f2=_0x3de858[_0x1e6861(0x19d)]??_0x1f53ef[_0x1e6861(0x1b4)],_0x53d9f1=G(_0x1f53ef),_0x1696c0=_0x1f53ef[_0x1e6861(0x1b4)]===_0x1e6861(0x1dc)&&_0xfa98f2!==_0x1e6861(0x1dc)?_0x1f53ef:void 0x0;return{'transform':{..._0x53d9f1,'rotation':0x0},'shapeData':ye(_0x1f53ef,_0x1a49da),'ink':{'version':0x1,'tool':_0xfa98f2,'sourceModel':_0x1d9dc1,..._0x1696c0?{'editModel':_0x1696c0}:{},'normalizedBounds':_0x53d9f1}};}var Se=_0x43396f(0x198),Ce=_0x43396f(0x1e3);function q(_0x327fcd){'@babel/helpers - typeof';const _0x555e03=_0x43396f;return q=typeof Symbol==_0x555e03(0x1b0)&&typeof Symbol[_0x555e03(0x1a4)]==_0x555e03(0x1d9)?function(_0x4653e8){return typeof _0x4653e8;}:function(_0x565e75){const _0x7cb9ff=_0x555e03;return _0x565e75&&typeof Symbol=='function'&&_0x565e75[_0x7cb9ff(0x1a1)]===Symbol&&_0x565e75!==Symbol['prototype']?_0x7cb9ff(0x1d9):typeof _0x565e75;},q(_0x327fcd);}function we(_0x4638e5,_0x37d457){const _0x50103e=_0x43396f;if(q(_0x4638e5)!=_0x50103e(0x1e4)||!_0x4638e5)return _0x4638e5;var _0x37cf59=_0x4638e5[Symbol['toPrimitive']];if(_0x37cf59!==void 0x0){var _0x3deef9=_0x37cf59['call'](_0x4638e5,_0x37d457||_0x50103e(0x1f2));if(q(_0x3deef9)!='object')return _0x3deef9;throw TypeError(_0x50103e(0x1be));}return(_0x37d457==='string'?String:Number)(_0x4638e5);}function J(_0x3960c5){const _0x1fef8a=_0x43396f;var _0x1727fe=we(_0x3960c5,_0x1fef8a(0x1e6));return q(_0x1727fe)==_0x1fef8a(0x1d9)?_0x1727fe:_0x1727fe+'';}function Y(_0x12dba5,_0x2776c5,_0x330d02){const _0x5a3df0=_0x43396f;return(_0x2776c5=J(_0x2776c5))in _0x12dba5?Object[_0x5a3df0(0x19a)](_0x12dba5,_0x2776c5,{'value':_0x330d02,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12dba5[_0x2776c5]=_0x330d02,_0x12dba5;}const X=_0x3acfc4('ink.host-adapter.service');var Te=class{constructor(){const _0x4e989f=_0x43396f;Y(this,_0x4e989f(0x1ec),[]);}['registerAdapter'](_0x5e717d){const _0x5e17a1=_0x43396f;return this[_0x5e17a1(0x1ec)]['push'](_0x5e717d),_0x5c9d22(()=>{const _0x12a85d=_0x5e17a1;let _0x54eaca=this[_0x12a85d(0x1ec)][_0x12a85d(0x1d7)](_0x5e717d);_0x54eaca>=0x0&&this[_0x12a85d(0x1ec)][_0x12a85d(0x1bc)](_0x54eaca,0x1);});}[_0x43396f(0x1db)](_0x7e3f30){const _0x1c01a4=_0x43396f;for(let _0x1c865b of this[_0x1c01a4(0x1ec)])if(_0x1c865b[_0x1c01a4(0x1db)](_0x7e3f30))return!0x0;return!0x1;}async[_0x43396f(0x1bf)](_0xd4e7d1){const _0x166569=_0x43396f;for(let _0x3480a0 of this[_0x166569(0x1ec)])if(_0x3480a0['createCustomShape']&&await _0x3480a0[_0x166569(0x1bf)](_0xd4e7d1))return!0x0;return!0x1;}};const Ee={'id':_0x43396f(0x1dd),'type':_0x291e91[_0x43396f(0x1d5)],'handler':(_0x49ed18,_0x1900b9)=>_0x1900b9?_0x49ed18[_0x43396f(0x19b)](X)[_0x43396f(0x1db)](_0x1900b9):!0x1},Z={};function Q(_0x2808e4,_0x55d7cf){return function(_0x3d85b5,_0x568f41){_0x55d7cf(_0x3d85b5,_0x568f41,_0x2808e4);};}function De(_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f){const _0xb63aa=_0x43396f;var _0xf34f97=arguments['length'],_0x24dc5f=_0xf34f97<0x3?_0x2bc677:_0x54cf2f===null?_0x54cf2f=Object[_0xb63aa(0x1ed)](_0x2bc677,_0x408c17):_0x54cf2f,_0x4f1b7f;if(typeof Reflect=='object'&&typeof Reflect[_0xb63aa(0x1f1)]==_0xb63aa(0x1b0))_0x24dc5f=Reflect[_0xb63aa(0x1f1)](_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f);else{for(var _0x1c165b=_0x28cd73[_0xb63aa(0x1ad)]-0x1;_0x1c165b>=0x0;_0x1c165b--)(_0x4f1b7f=_0x28cd73[_0x1c165b])&&(_0x24dc5f=(_0xf34f97<0x3?_0x4f1b7f(_0x24dc5f):_0xf34f97>0x3?_0x4f1b7f(_0x2bc677,_0x408c17,_0x24dc5f):_0x4f1b7f(_0x2bc677,_0x408c17))||_0x24dc5f);}return _0xf34f97>0x3&&_0x24dc5f&&Object[_0xb63aa(0x19a)](_0x2bc677,_0x408c17,_0x24dc5f),_0x24dc5f;}let $=class extends _0x23a329{constructor(_0x328372=Z,_0x23b94c,_0x15efc2,_0x554d0f){const _0x3e6b0f=_0x43396f;super(),this[_0x3e6b0f(0x1ae)]=_0x328372,this['_injector']=_0x23b94c,this['_commandService']=_0x15efc2,this[_0x3e6b0f(0x1c1)]=_0x554d0f;let {..._0x2cd050}=_0x488fc2({},Z,this['_config']);this[_0x3e6b0f(0x1c1)][_0x3e6b0f(0x1a7)](_0x3e6b0f(0x1a0),_0x2cd050);}[_0x43396f(0x19f)](){const _0x493d37=_0x43396f;[[X,{'useClass':Te}]][_0x493d37(0x19e)](_0x1a4d5e=>this['_injector'][_0x493d37(0x194)](_0x1a4d5e)),this[_0x493d37(0x1d3)](this[_0x493d37(0x1a5)][_0x493d37(0x1a9)](Ee));}};Y($,_0x43396f(0x1b2),_0x43396f(0x1bd)),Y($,_0x43396f(0x1d6),Se),Y($,_0x43396f(0x1b8),Ce),Y($,_0x43396f(0x1a3),_0x4b2236[_0x43396f(0x193)]),$=De([_0x40586b(_0x5cf441),Q(0x1,_0x4a0035(_0x5e60e7)),Q(0x2,_0x1fafaa),Q(0x3,_0x214ca1)],$);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 _0x428ca5=_0x34f4;(function(_0x2a7a23,_0x31913){const _0x260a18=_0x34f4,_0x10d146=_0x2a7a23();while(!![]){try{const _0x27909c=parseInt(_0x260a18(0x110))/0x1+-parseInt(_0x260a18(0xe3))/0x2*(parseInt(_0x260a18(0xfe))/0x3)+-parseInt(_0x260a18(0xda))/0x4*(parseInt(_0x260a18(0x12d))/0x5)+-parseInt(_0x260a18(0xe2))/0x6+parseInt(_0x260a18(0xeb))/0x7*(parseInt(_0x260a18(0xd8))/0x8)+parseInt(_0x260a18(0x10a))/0x9+-parseInt(_0x260a18(0xfb))/0xa*(parseInt(_0x260a18(0xfa))/0xb);if(_0x27909c===_0x31913)break;else _0x10d146['push'](_0x10d146['shift']());}catch(_0x4c031b){_0x10d146['push'](_0x10d146['shift']());}}}(_0x52c8,0x6d5e7));import{ShapeFillEnum as _0x1da015,ShapeLineCapEnum as _0x1d6166,ShapeLineJoinEnum as _0x439b44,ShapeLineTypeEnum as _0x5d98d2,ShapeTypeEnum as _0x9ecee9}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x44e568}from'@univerjs-pro/license';import{CommandType as _0x262274,DependentOn as _0x51330d,ICommandService as _0x2a482d,IConfigService as _0x37a4f2,Inject as _0x89bb4c,Injector as _0x169e64,Plugin as _0xd5747,UniverInstanceType as _0x57679c,createIdentifier as _0x290056,merge as _0x18dd0a,toDisposable as _0x243018}from'@univerjs/core';const g=0.0001;function _(_0x27b282){return{'x':_0x27b282['x'],'y':_0x27b282['y']};}function v(_0x431c4c){const _0x883d89=_0x34f4;return{..._0x431c4c,'in':_0x431c4c['in']?_(_0x431c4c['in']):void 0x0,'out':_0x431c4c[_0x883d89(0xe0)]?_(_0x431c4c[_0x883d89(0xe0)]):void 0x0};}function y(_0x30f9af){const _0x81267=_0x34f4;return{'kind':_0x81267(0x11e),'closed':_0x30f9af['closed'],'anchors':_0x30f9af[_0x81267(0x10d)][_0x81267(0xee)](v)};}function b(_0x4d4208,_0x3e6b00,_0x52e7c8){return{'x':_0x4d4208['x']+(_0x3e6b00['x']-_0x4d4208['x'])*_0x52e7c8,'y':_0x4d4208['y']+(_0x3e6b00['y']-_0x4d4208['y'])*_0x52e7c8};}function x(_0x2a10b2,_0x3bb84f){return Math['hypot'](_0x2a10b2['x']-_0x3bb84f['x'],_0x2a10b2['y']-_0x3bb84f['y']);}function S(_0x2ccd49){const _0x117a1c=_0x34f4;let _0x450be1=Math[_0x117a1c(0xf8)](_0x2ccd49['x'],_0x2ccd49['y']);return _0x450be1<g?{'x':0x1,'y':0x0}:{'x':_0x2ccd49['x']/_0x450be1,'y':_0x2ccd49['y']/_0x450be1};}function C(_0x39245c,_0x29e9a6,_0x3dc761=x(_0x39245c,_0x29e9a6)){let _0x264866=S({'x':_0x39245c['x']-_0x29e9a6['x'],'y':_0x39245c['y']-_0x29e9a6['y']});return{'x':_0x39245c['x']+_0x264866['x']*_0x3dc761,'y':_0x39245c['y']+_0x264866['y']*_0x3dc761};}function w(_0x27668a,_0x1d36d9){const _0x1c27a0=_0x34f4;let {anchors:_0x5bbda3}=_0x27668a;return _0x5bbda3['length']<0x2||_0x1d36d9<0x0?null:_0x1d36d9<_0x5bbda3[_0x1c27a0(0x12a)]-0x1?{'startIndex':_0x1d36d9,'endIndex':_0x1d36d9+0x1,'start':_0x5bbda3[_0x1d36d9],'end':_0x5bbda3[_0x1d36d9+0x1]}:_0x27668a[_0x1c27a0(0x108)]&&_0x1d36d9===_0x5bbda3['length']-0x1?{'startIndex':_0x5bbda3[_0x1c27a0(0x12a)]-0x1,'endIndex':0x0,'start':_0x5bbda3[_0x5bbda3[_0x1c27a0(0x12a)]-0x1],'end':_0x5bbda3[0x0]}:null;}function T(_0x453668,_0x323623){const _0x78facb=_0x34f4;let _0x4e1ef=w(_0x453668,_0x323623);return _0x4e1ef?[_0x4e1ef[_0x78facb(0x124)],_0x4e1ef[_0x78facb(0x124)][_0x78facb(0xe0)]??_0x4e1ef[_0x78facb(0x124)],_0x4e1ef['end']['in']??_0x4e1ef['end'],_0x4e1ef['end']]:null;}function te(_0x54f12d,_0x2a6d24){const _0x4e4746=_0x34f4;return _0x2a6d24===_0x4e4746(0xea)?_0x54f12d:_0x54f12d[_0x2a6d24]??null;}function E(_0x2c0d7b,_0x1c2156,_0x987321){const _0x480e84=_0x34f4;return _0x987321==='anchor'||_0x2c0d7b[_0x480e84(0x108)]?!0x0:_0x987321==='in'?_0x1c2156>0x0:_0x1c2156<_0x2c0d7b[_0x480e84(0x10d)][_0x480e84(0x12a)]-0x1;}function D(_0x45a996,_0x18502e){let [_0x7d9f2a,_0x14ed0d,_0x28ff51,_0x17141f]=_0x45a996,_0x134544=b(_0x7d9f2a,_0x14ed0d,_0x18502e),_0x1cb0c6=b(_0x14ed0d,_0x28ff51,_0x18502e),_0x435df4=b(_0x28ff51,_0x17141f,_0x18502e);return b(b(_0x134544,_0x1cb0c6,_0x18502e),b(_0x1cb0c6,_0x435df4,_0x18502e),_0x18502e);}function ne(_0x4b840c,_0x4f08c5){let [_0x44fe60,_0x1e1f40,_0x5b764a,_0x3584c8]=_0x4b840c,_0x116aac=b(_0x44fe60,_0x1e1f40,_0x4f08c5),_0x4567c5=b(_0x1e1f40,_0x5b764a,_0x4f08c5),_0x1eb00a=b(_0x5b764a,_0x3584c8,_0x4f08c5),_0x936904=b(_0x116aac,_0x4567c5,_0x4f08c5),_0x158a9c=b(_0x4567c5,_0x1eb00a,_0x4f08c5),_0x2c43b4=b(_0x936904,_0x158a9c,_0x4f08c5);return{'left':[_0x44fe60,_0x116aac,_0x936904,_0x2c43b4],'right':[_0x2c43b4,_0x158a9c,_0x1eb00a,_0x3584c8]};}function O(_0x1d0fd8,_0x7fd4d1,_0x4f42a8){const _0x43b7c8=_0x34f4;let _0x442bcf=_0x4f42a8['x']-_0x7fd4d1['x'],_0x3b7125=_0x4f42a8['y']-_0x7fd4d1['y'],_0x4b7eab=_0x442bcf*_0x442bcf+_0x3b7125*_0x3b7125,_0x498553=_0x4b7eab<=g?0x0:Math[_0x43b7c8(0x117)](0x0,Math[_0x43b7c8(0x122)](0x1,((_0x1d0fd8['x']-_0x7fd4d1['x'])*_0x442bcf+(_0x1d0fd8['y']-_0x7fd4d1['y'])*_0x3b7125)/_0x4b7eab)),_0x1c3f29={'x':_0x7fd4d1['x']+_0x442bcf*_0x498553,'y':_0x7fd4d1['y']+_0x3b7125*_0x498553};return{'point':_0x1c3f29,'ratio':_0x498553,'distance':x(_0x1d0fd8,_0x1c3f29)};}function re(_0x372356,_0x3553c7,_0x378449){return O(_0x372356,_0x3553c7,_0x378449)['distance']**0x2;}function k(_0x58cee5,_0x21c3f2){const _0x57b922=_0x34f4;if(_0x58cee5['length']<=0x2)return _0x58cee5[_0x57b922(0xee)](_);let _0x23f24e=0x0,_0x3cd684=0x0,_0x3afcc2=_0x58cee5[0x0],_0x111975=_0x58cee5[_0x58cee5[_0x57b922(0x12a)]-0x1],_0x5008e2=_0x21c3f2*_0x21c3f2;for(let _0x291ff6=0x1;_0x291ff6<_0x58cee5[_0x57b922(0x12a)]-0x1;_0x291ff6++){let _0x541f44=re(_0x58cee5[_0x291ff6],_0x3afcc2,_0x111975);_0x541f44>_0x23f24e&&(_0x23f24e=_0x541f44,_0x3cd684=_0x291ff6);}if(_0x23f24e<=_0x5008e2)return[_(_0x3afcc2),_(_0x111975)];let _0x141c65=k(_0x58cee5[_0x57b922(0x10f)](0x0,_0x3cd684+0x1),_0x21c3f2),_0x3c37f4=k(_0x58cee5[_0x57b922(0x10f)](_0x3cd684),_0x21c3f2);return[..._0x141c65[_0x57b922(0x10f)](0x0,-0x1),..._0x3c37f4];}function ie(_0x4859fe,_0x402e47){let _0x4e8a1f=_0x4859fe[_0x402e47],_0x2f919e=_0x4859fe[_0x402e47+0x1],_0x4360ad=_0x4859fe[_0x402e47-0x1]??_0x4e8a1f;return{'x':_0x4e8a1f['x']+(_0x2f919e['x']-_0x4360ad['x'])/0x6,'y':_0x4e8a1f['y']+(_0x2f919e['y']-_0x4360ad['y'])/0x6};}function A(_0x4c6a6f,_0x2fc288){let _0x3b1753=_0x4c6a6f[_0x2fc288],_0x179780=_0x4c6a6f[_0x2fc288-0x1],_0x2a1585=_0x4c6a6f[_0x2fc288+0x1]??_0x3b1753;return{'x':_0x3b1753['x']-(_0x2a1585['x']-_0x179780['x'])/0x6,'y':_0x3b1753['y']-(_0x2a1585['y']-_0x179780['y'])/0x6};}function j(_0x4a36b8,_0xfc973e){const _0x3ef262=_0x34f4;let _0x408436=_0x4a36b8['anchors'][_0xfc973e],_0x385c1d=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e-0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][_0x4a36b8[_0x3ef262(0x10d)][_0x3ef262(0x12a)]-0x1]:null),_0x45ef95=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e+0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][0x0]:null),_0x5ec821=_0x385c1d&&_0x45ef95?S({'x':_0x45ef95['x']-_0x385c1d['x'],'y':_0x45ef95['y']-_0x385c1d['y']}):_0x45ef95?S({'x':_0x45ef95['x']-_0x408436['x'],'y':_0x45ef95['y']-_0x408436['y']}):_0x385c1d?S({'x':_0x408436['x']-_0x385c1d['x'],'y':_0x408436['y']-_0x385c1d['y']}):{'x':0x1,'y':0x0},_0x5f131d=_0x385c1d&&_0x45ef95?Math[_0x3ef262(0x117)](0x32,x(_0x385c1d,_0x45ef95)/0x4):0x32;return{'in':{'x':_0x408436['x']-_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']-_0x5ec821['y']*_0x5f131d},'out':{'x':_0x408436['x']+_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']+_0x5ec821['y']*_0x5f131d}};}function M(_0x306e91,_0x31c41f){const _0x352b83=_0x34f4;let _0x55aadc=_0x306e91[_0x31c41f],_0x4753ca=_0x31c41f==='in'?_0x352b83(0xe0):'in',_0x1ec864=_0x306e91[_0x4753ca];_0x55aadc&&(_0x306e91[_0x352b83(0xf4)]==='symmetric'?_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc):_0x306e91['pointType']===_0x352b83(0xe4)&&(_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc,_0x1ec864?x(_0x306e91,_0x1ec864):x(_0x306e91,_0x55aadc))));}function ae(_0x43dc20,_0x5524fd){const _0x394a11=_0x34f4;let _0x39a7c5=y(_0x43dc20);return!_0x5524fd||_0x39a7c5[_0x394a11(0x108)]||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x12a)]===0x0||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x103)]({'id':_0x394a11(0x104),'x':_0x5524fd['x'],'y':_0x5524fd['y'],'pointType':_0x394a11(0xd9)}),_0x39a7c5;}function oe(_0x1fec87,_0x232b16={}){const _0xfda3a7=_0x34f4;let _0x8b2347=Math['max'](0x0,_0x232b16[_0xfda3a7(0x121)]??Math[_0xfda3a7(0x117)](0x4,_0x1fec87[_0xfda3a7(0x119)]*0.35)),_0x25c45c=_0x232b16[_0xfda3a7(0xe1)]??(_0x52abb0=>_0xfda3a7(0x137)+_0x52abb0),_0x504278=k(_0x1fec87[_0xfda3a7(0x128)],_0x8b2347),_0x34fa42=_0x504278[_0xfda3a7(0xee)]((_0x4518c2,_0x37a0e2)=>({'id':_0x25c45c(_0x37a0e2),'x':_0x4518c2['x'],'y':_0x4518c2['y'],'pointType':'free'}));for(let _0x321446=0x0;_0x321446<_0x34fa42[_0xfda3a7(0x12a)]-0x1;_0x321446++)_0x34fa42[_0x321446][_0xfda3a7(0xe0)]=ie(_0x504278,_0x321446),_0x34fa42[_0x321446+0x1]['in']=A(_0x504278,_0x321446+0x1);return{'kind':_0xfda3a7(0x11e),'closed':!0x1,'anchors':_0x34fa42};}function se(_0x34b1f9,_0x4088be,_0x4fddd7){const _0x4c0499=_0x34f4;let _0x51ff5c=null,_0x2b5849=[_0x4c0499(0xea),'in',_0x4c0499(0xe0)];return _0x34b1f9[_0x4c0499(0x10d)][_0x4c0499(0x11d)]((_0x564231,_0xd3da6d)=>{const _0xc12a21=_0x4c0499;_0x2b5849[_0xc12a21(0x11d)](_0x32295d=>{const _0x19ff1a=_0xc12a21;if(!E(_0x34b1f9,_0xd3da6d,_0x32295d))return;let _0x1fe30f=te(_0x564231,_0x32295d);if(!_0x1fe30f)return;let _0x3a9f94=x(_0x4088be,_0x1fe30f);_0x3a9f94>_0x4fddd7||_0x51ff5c&&_0x3a9f94>=_0x51ff5c[_0x19ff1a(0x11f)]||(_0x51ff5c={'handle':{'kind':_0x32295d,'anchorId':_0x564231['id']},'point':_(_0x1fe30f),'distance':_0x3a9f94});});}),_0x51ff5c;}function ce(_0x390141,_0x3ad76e,_0x25b80d){const _0xdce4e7=_0x34f4;let _0x1ed56d=null,_0x15bbb7=_0x390141[_0xdce4e7(0x108)]?_0x390141[_0xdce4e7(0x10d)]['length']:Math[_0xdce4e7(0x117)](0x0,_0x390141['anchors'][_0xdce4e7(0x12a)]-0x1);for(let _0x2b6fd5=0x0;_0x2b6fd5<_0x15bbb7;_0x2b6fd5++){let _0x788af=T(_0x390141,_0x2b6fd5);if(!_0x788af)continue;let _0x350714=D(_0x788af,0x0);for(let _0x2d3625=0x1;_0x2d3625<=0x20;_0x2d3625++){let _0x1bd4bd=D(_0x788af,_0x2d3625/0x20),_0x23b51d=O(_0x3ad76e,_0x350714,_0x1bd4bd),_0x308ec8=(_0x2d3625-0x1+_0x23b51d[_0xdce4e7(0x127)])/0x20;(!_0x1ed56d||_0x23b51d[_0xdce4e7(0x11f)]<_0x1ed56d[_0xdce4e7(0x11f)])&&(_0x1ed56d={'segmentIndex':_0x2b6fd5,'t':_0x308ec8,'point':_0x23b51d[_0xdce4e7(0xef)],'distance':_0x23b51d[_0xdce4e7(0x11f)]}),_0x350714=_0x1bd4bd;}}return _0x1ed56d&&_0x1ed56d['distance']<=_0x25b80d?_0x1ed56d:null;}function le(_0x5bc239,_0x4f122a,_0x2b6c37){const _0x32ea0b=_0x34f4;let _0x15a416=y(_0x5bc239),_0x57a4df=w(_0x15a416,_0x4f122a['segmentIndex']),_0x4c00ef=T(_0x15a416,_0x4f122a[_0x32ea0b(0xdb)]);if(!_0x57a4df||!_0x4c00ef)return _0x15a416;let _0x593c5a=ne(_0x4c00ef,Math[_0x32ea0b(0x117)](0x0,Math[_0x32ea0b(0x122)](0x1,_0x4f122a['t']))),_0x60809d={'id':_0x2b6c37(),'x':_0x593c5a['left'][0x3]['x'],'y':_0x593c5a[_0x32ea0b(0x134)][0x3]['y'],'in':_(_0x593c5a[_0x32ea0b(0x134)][0x2]),'out':_(_0x593c5a['right'][0x1]),'pointType':_0x32ea0b(0xf3)};return _0x15a416['anchors'][_0x57a4df[_0x32ea0b(0xf5)]][_0x32ea0b(0xe0)]=_(_0x593c5a['left'][0x1]),_0x15a416[_0x32ea0b(0x10d)][_0x57a4df[_0x32ea0b(0xff)]]['in']=_(_0x593c5a['right'][0x2]),_0x15a416[_0x32ea0b(0x10d)]['splice'](_0x57a4df[_0x32ea0b(0xf5)]+0x1,0x0,_0x60809d),_0x15a416;}function ue(_0x4325f9,_0x493098){const _0x336d8a=_0x34f4;let _0x6189dc=y(_0x4325f9);return _0x6189dc[_0x336d8a(0x10d)]=_0x6189dc['anchors'][_0x336d8a(0x101)](_0x2b6b93=>_0x2b6b93['id']!==_0x493098),_0x6189dc['closed']&&_0x6189dc[_0x336d8a(0x10d)][_0x336d8a(0x12a)]<0x3&&(_0x6189dc[_0x336d8a(0x108)]=!0x1),_0x6189dc;}function N(_0x22c8c1,_0x3b73ef,_0x45512e){const _0x3ce140=_0x34f4;let _0x33b10e=y(_0x22c8c1),_0x4b5cc8=_0x33b10e[_0x3ce140(0x10d)][_0x3ce140(0x120)](_0x1adcac=>_0x1adcac['id']===_0x3b73ef),_0x213548=_0x33b10e[_0x3ce140(0x10d)][_0x4b5cc8];if(!_0x213548)return _0x33b10e;if(_0x213548[_0x3ce140(0xf4)]=_0x45512e,_0x45512e==='corner')return delete _0x213548['in'],delete _0x213548[_0x3ce140(0xe0)],_0x33b10e;let _0x3ebc64=j(_0x33b10e,_0x4b5cc8);if(_0x213548['in']=_0x213548['in']?_(_0x213548['in']):_0x3ebc64['in'],_0x213548[_0x3ce140(0xe0)]=_0x213548[_0x3ce140(0xe0)]?_(_0x213548[_0x3ce140(0xe0)]):_0x3ebc64[_0x3ce140(0xe0)],_0x45512e===_0x3ce140(0xf1)){let _0x15ebff=Math[_0x3ce140(0x117)](x(_0x213548,_0x213548['in']),x(_0x213548,_0x213548[_0x3ce140(0xe0)]),0x32),_0x19f882=S({'x':_0x213548[_0x3ce140(0xe0)]['x']-_0x213548['x'],'y':_0x213548[_0x3ce140(0xe0)]['y']-_0x213548['y']});_0x213548[_0x3ce140(0xe0)]={'x':_0x213548['x']+_0x19f882['x']*_0x15ebff,'y':_0x213548['y']+_0x19f882['y']*_0x15ebff},_0x213548['in']={'x':_0x213548['x']-_0x19f882['x']*_0x15ebff,'y':_0x213548['y']-_0x19f882['y']*_0x15ebff};}else _0x45512e===_0x3ce140(0xe4)&&M(_0x213548,'out');return _0x33b10e;}function P(_0x33e8b3,_0x148f3e){const _0x219cab=_0x34f4;let _0x7e6e61=_0x33e8b3[_0x219cab(0x10d)]['find'](_0x6c5a17=>_0x6c5a17['id']===_0x148f3e),_0x36fac9=(_0x7e6e61==null?void 0x0:_0x7e6e61[_0x219cab(0xf4)])??'corner';return N(_0x33e8b3,_0x148f3e,_0x36fac9===_0x219cab(0xd9)?_0x219cab(0xe4):_0x36fac9===_0x219cab(0xe4)?'symmetric':_0x36fac9==='symmetric'?_0x219cab(0xf3):_0x219cab(0xd9));}function F(_0x503e20,_0x11c996,_0x26c33f){const _0x36686e=_0x34f4;let _0x22bade=y(_0x503e20),_0x45fb1f=_0x22bade['anchors']['find'](_0x2c568d=>_0x2c568d['id']===_0x11c996[_0x36686e(0x130)]);if(!_0x45fb1f)return _0x22bade;if(_0x11c996['kind']==='anchor'){let _0xa24b27={'x':_0x26c33f['x']-_0x45fb1f['x'],'y':_0x26c33f['y']-_0x45fb1f['y']};return _0x45fb1f['x']=_0x26c33f['x'],_0x45fb1f['y']=_0x26c33f['y'],_0x45fb1f['in']&&={'x':_0x45fb1f['in']['x']+_0xa24b27['x'],'y':_0x45fb1f['in']['y']+_0xa24b27['y']},_0x45fb1f[_0x36686e(0xe0)]&&={'x':_0x45fb1f['out']['x']+_0xa24b27['x'],'y':_0x45fb1f[_0x36686e(0xe0)]['y']+_0xa24b27['y']},_0x22bade;}return _0x45fb1f[_0x11c996[_0x36686e(0x116)]]=_(_0x26c33f),_0x45fb1f[_0x36686e(0xf4)]===_0x36686e(0xd9)&&(_0x45fb1f[_0x36686e(0xf4)]=_0x36686e(0xf3)),M(_0x45fb1f,_0x11c996['kind']),_0x22bade;}const I=1e-9;function L(_0x316173){const _0x3fdc01=_0x34f4;let _0x1e2988=Math[_0x3fdc01(0xdd)](_0x316173*0x2710)/0x2710;return Object['is'](_0x1e2988,-0x0)?'0':String(_0x1e2988);}function R(_0x30f47a){return L(_0x30f47a['x'])+'\x20'+L(_0x30f47a['y']);}function z(_0x138692,_0x45873d){return{'x':_0x138692['x']-_0x45873d['x'],'y':_0x138692['y']-_0x45873d['y']};}function B(_0x4c1a8d,_0x4cd957,_0x58c479,_0xf43e63,_0x30b59b){let _0xe881cf=0x1-_0x30b59b;return{'x':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['x']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['x']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['x']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['x'],'y':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['y']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['y']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['y']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['y']};}function V(_0x477b29,_0x228058,_0x45e47c,_0x3a8d6f){const _0x4cf181=_0x34f4;let _0x1a9c1e=-_0x477b29+0x3*_0x228058-0x3*_0x45e47c+_0x3a8d6f,_0x35db16=0x3*_0x477b29-0x6*_0x228058+0x3*_0x45e47c,_0x277b3f=-0x3*_0x477b29+0x3*_0x228058,_0x560894=[];if(Math['abs'](_0x1a9c1e)<I){if(Math[_0x4cf181(0x12c)](_0x35db16)<I)return _0x560894;let _0x4f70cc=-_0x277b3f/(0x2*_0x35db16);return _0x4f70cc>0x0&&_0x4f70cc<0x1&&_0x560894[_0x4cf181(0x103)](_0x4f70cc),_0x560894;}let _0x228231=_0x35db16*_0x35db16-0x3*_0x1a9c1e*_0x277b3f;if(_0x228231<0x0)return _0x560894;let _0x207192=Math[_0x4cf181(0x115)](Math[_0x4cf181(0x117)](0x0,_0x228231)),_0x28d17f=(-_0x35db16+_0x207192)/(0x3*_0x1a9c1e),_0x2c24ee=(-_0x35db16-_0x207192)/(0x3*_0x1a9c1e);return _0x28d17f>0x0&&_0x28d17f<0x1&&_0x560894[_0x4cf181(0x103)](_0x28d17f),_0x2c24ee>0x0&&_0x2c24ee<0x1&&Math['abs'](_0x2c24ee-_0x28d17f)>I&&_0x560894['push'](_0x2c24ee),_0x560894;}function H(_0x3aee92,_0x547328,_0xede317,_0x3b069e,_0x4a7deb){const _0x4b31cf=_0x34f4;_0x3aee92['push'](_0x547328,_0x4a7deb),new Set([...V(_0x547328['x'],_0xede317['x'],_0x3b069e['x'],_0x4a7deb['x']),...V(_0x547328['y'],_0xede317['y'],_0x3b069e['y'],_0x4a7deb['y'])])[_0x4b31cf(0x11d)](_0x5b2cd4=>{const _0x41f62c=_0x4b31cf;_0x3aee92[_0x41f62c(0x103)](B(_0x547328,_0xede317,_0x3b069e,_0x4a7deb,_0x5b2cd4));});}function U(_0x54afda){const _0x46e478=_0x34f4;let _0x6c6ede=_0x54afda[_0x46e478(0x10d)];if(_0x6c6ede['length']<=0x1)return _0x6c6ede;let _0x3fdd37=[];for(let _0x1a1146=0x1;_0x1a1146<_0x6c6ede[_0x46e478(0x12a)];_0x1a1146++){let _0x489591=_0x6c6ede[_0x1a1146-0x1],_0x3cc97d=_0x6c6ede[_0x1a1146];H(_0x3fdd37,_0x489591,_0x489591[_0x46e478(0xe0)]??_0x489591,_0x3cc97d['in']??_0x3cc97d,_0x3cc97d);}if(_0x54afda['closed']&&_0x6c6ede[_0x46e478(0x12a)]>0x1){let _0x3b1d90=_0x6c6ede[_0x6c6ede[_0x46e478(0x12a)]-0x1],_0x3f57f2=_0x6c6ede[0x0];H(_0x3fdd37,_0x3b1d90,_0x3b1d90[_0x46e478(0xe0)]??_0x3b1d90,_0x3f57f2['in']??_0x3f57f2,_0x3f57f2);}return _0x3fdd37;}function _0x52c8(){const _0x76cf91=['filter','get','push','__ink-preview-anchor__','UNIVER_INK_PLUGIN','_configService','registerAdapter','closed','setConfig','4022361aXPNCP','constructor','join','anchors','tool','slice','609368TWjUjx','#f54a45','ink.host-adapter.service','defineProperty','_adapters','sqrt','kind','max','type','width','function','version','Round','forEach','pen','distance','findIndex','tolerance','min','UNIVER_UNKNOWN','start','NoFill','top','ratio','points','_config','length','add','abs','3048620mYeYQA','object','SolidLine','anchorId','beginInkMode','Rect','_injector','left','registerCommand','opacity','ink-centerline-','color','2303144HOQZqG','corner','4dWDJXS','segmentIndex','createCustomShape','round','fillColor','indexOf','out','createId','270570UNustx','6vJljhz','smooth','OPERATION','iterator','symbol','onStarting','_commandService','anchor','21DRreEN','norm','default','map','point','@univerjs-pro/ink','symmetric','pluginName','free','pointType','startIndex','call','toPrimitive','hypot','decorate','165xyvoOf','527570QNkJgH','string','SolidFill','25827VLBpok','endIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x52c8=function(){return _0x76cf91;};return _0x52c8();}function de(_0x4efe31){const _0x25ae24=_0x34f4;let _0xdd7256=_0x4efe31[_0x25ae24(0x128)];if(_0xdd7256['length']<=0x1)return _0xdd7256;let _0x5eeb13=[];for(let _0x15e3cc=0x0;_0x15e3cc<_0xdd7256[_0x25ae24(0x12a)]-0x1;_0x15e3cc++){let _0x5a040a=_0xdd7256[_0x15e3cc],_0x195462=_0xdd7256[_0x15e3cc+0x1],_0x376e68=_0xdd7256[_0x15e3cc-0x1]??_0x5a040a,_0x797bc8=_0xdd7256[_0x15e3cc+0x2]??_0x195462;H(_0x5eeb13,_0x5a040a,{'x':_0x5a040a['x']+(_0x195462['x']-_0x376e68['x'])/0x6,'y':_0x5a040a['y']+(_0x195462['y']-_0x376e68['y'])/0x6},{'x':_0x195462['x']-(_0x797bc8['x']-_0x5a040a['x'])/0x6,'y':_0x195462['y']-(_0x797bc8['y']-_0x5a040a['y'])/0x6},_0x195462);}return _0x5eeb13;}function fe(_0xab68b6){const _0x23ecf7=_0x34f4;return _0xab68b6[_0x23ecf7(0x116)]===_0x23ecf7(0x11e)?U(_0xab68b6):de(_0xab68b6);}function W(_0x443cb5){const _0x321b68=_0x34f4;let _0x2579a4=Math[_0x321b68(0xdd)](_0x443cb5*0x2710)/0x2710;return Object['is'](_0x2579a4,-0x0)?0x0:_0x2579a4;}function G(_0x3b9fa2){const _0x5c99f1=_0x34f4;let _0x1ab821=fe(_0x3b9fa2);if(_0x1ab821[_0x5c99f1(0x12a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x575ca7=Math[_0x5c99f1(0x122)](..._0x1ab821['map'](_0x1388dd=>_0x1388dd['x'])),_0xa8cf0a=Math[_0x5c99f1(0x122)](..._0x1ab821[_0x5c99f1(0xee)](_0x131eb9=>_0x131eb9['y'])),_0x3cce5b=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0x552835=>_0x552835['x'])),_0xc38b2f=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0xa50978=>_0xa50978['y']));return{'left':W(_0x575ca7),'top':W(_0xa8cf0a),'width':W(Math[_0x5c99f1(0x117)](0x1,_0x3cce5b-_0x575ca7)),'height':W(Math[_0x5c99f1(0x117)](0x1,_0xc38b2f-_0xa8cf0a))};}function pe(_0x47ce6a,_0x3f853b){const _0xdf60a0=_0x34f4;let _0x2940d7=_0x47ce6a[_0xdf60a0(0x10d)];if(_0x2940d7[_0xdf60a0(0x12a)]===0x0)return'';let _0x5bfc23=['M\x20'+R(z(_0x2940d7[0x0],_0x3f853b))];for(let _0x218845=0x1;_0x218845<_0x2940d7[_0xdf60a0(0x12a)];_0x218845++){let _0x442260=_0x2940d7[_0x218845-0x1],_0x25963b=_0x2940d7[_0x218845],_0xfde85b=_0x442260[_0xdf60a0(0xe0)]??_0x442260,_0x20e037=_0x25963b['in']??_0x25963b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0xfde85b,_0x3f853b))+'\x20'+R(z(_0x20e037,_0x3f853b))+'\x20'+R(z(_0x25963b,_0x3f853b)));}if(_0x47ce6a[_0xdf60a0(0x108)]&&_0x2940d7[_0xdf60a0(0x12a)]>0x1){let _0x5eec34=_0x2940d7[_0x2940d7[_0xdf60a0(0x12a)]-0x1],_0x1e336b=_0x2940d7[0x0],_0x268fdb=_0x5eec34[_0xdf60a0(0xe0)]??_0x5eec34,_0x327d8f=_0x1e336b['in']??_0x1e336b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0x268fdb,_0x3f853b))+'\x20'+R(z(_0x327d8f,_0x3f853b))+'\x20'+R(z(_0x1e336b,_0x3f853b))),_0x5bfc23[_0xdf60a0(0x103)]('Z');}return _0x5bfc23['join']('\x20');}function me(_0x2286c5,_0x514df1){const _0x1329ec=_0x34f4;let _0x1a4cdd=_0x2286c5[_0x1329ec(0x128)][_0x1329ec(0xee)](_0x5dd520=>z(_0x5dd520,_0x514df1));if(_0x1a4cdd[_0x1329ec(0x12a)]===0x0)return'';if(_0x1a4cdd[_0x1329ec(0x12a)]===0x1)return'M\x20'+R(_0x1a4cdd[0x0]);let _0x176bc8=['M\x20'+R(_0x1a4cdd[0x0])];for(let _0x484957=0x0;_0x484957<_0x1a4cdd[_0x1329ec(0x12a)]-0x1;_0x484957++){let _0x34e444=_0x1a4cdd[_0x484957],_0x25c020=_0x1a4cdd[_0x484957+0x1],_0x364a2e=_0x1a4cdd[_0x484957-0x1]??_0x34e444,_0x52a160=_0x1a4cdd[_0x484957+0x2]??_0x25c020,_0x5a38f3={'x':_0x34e444['x']+(_0x25c020['x']-_0x364a2e['x'])/0x6,'y':_0x34e444['y']+(_0x25c020['y']-_0x364a2e['y'])/0x6},_0x39d47d={'x':_0x25c020['x']-(_0x52a160['x']-_0x34e444['x'])/0x6,'y':_0x25c020['y']-(_0x52a160['y']-_0x34e444['y'])/0x6};_0x176bc8[_0x1329ec(0x103)]('C\x20'+R(_0x5a38f3)+'\x20'+R(_0x39d47d)+'\x20'+R(_0x25c020));}return _0x176bc8[_0x1329ec(0x10c)]('\x20');}function he(_0x13cbc0,_0x2e3dec){const _0x16f932=_0x34f4;return _0x13cbc0[_0x16f932(0x116)]===_0x16f932(0x11e)?pe(_0x13cbc0,_0x2e3dec):me(_0x13cbc0,_0x2e3dec);}function ge(_0xd354bc,_0x13c795){const _0x5c6286=_0x34f4;return _0x13c795!=null&&_0x13c795[_0x5c6286(0xd7)]?_0x13c795[_0x5c6286(0xd7)]:_0xd354bc[_0x5c6286(0x116)]===_0x5c6286(0x11e)?_0x5c6286(0x111):_0xd354bc[_0x5c6286(0xd7)];}function _e(_0x2fbc46,_0x47747b){const _0x1184ee=_0x34f4;return(_0x47747b==null?void 0x0:_0x47747b[_0x1184ee(0x119)])===void 0x0?_0x2fbc46[_0x1184ee(0x116)]==='pen'?0x2:_0x2fbc46[_0x1184ee(0x119)]:_0x47747b[_0x1184ee(0x119)];}function ve(_0x34506b,_0x456df7){const _0x223312=_0x34f4;return(_0x456df7==null?void 0x0:_0x456df7['opacity'])===void 0x0?_0x34506b['kind']==='pen'?void 0x0:_0x34506b[_0x223312(0x136)]:_0x456df7[_0x223312(0x136)];}function _0x34f4(_0x5e8668,_0x548cb6){_0x5e8668=_0x5e8668-0xd7;const _0x52c89a=_0x52c8();let _0x34f490=_0x52c89a[_0x5e8668];return _0x34f490;}function ye(_0x317f66,_0x1eb63f){const _0x5910ef=_0x34f4;let _0x229974=G(_0x317f66),_0x52ec0f=he(_0x317f66,{'x':_0x229974['left'],'y':_0x229974[_0x5910ef(0x126)]}),_0x46fbf9=_0x317f66[_0x5910ef(0x116)]===_0x5910ef(0x11e)&&_0x317f66[_0x5910ef(0x108)],_0x390cf7=_0x1eb63f==null?void 0x0:_0x1eb63f[_0x5910ef(0xde)];return{'shapeType':_0x9ecee9[_0x5910ef(0x132)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x229974[_0x5910ef(0x119)],'h':_0x229974['height'],'fill':_0x46fbf9?_0x5910ef(0xec):'none','stroke':!0x0,'data':_0x52ec0f,'dataArray':be(_0x317f66,{'x':_0x229974[_0x5910ef(0x134)],'y':_0x229974[_0x5910ef(0x126)]})}]},'fill':_0x46fbf9&&_0x390cf7?{'color':_0x390cf7,'fillType':_0x1da015[_0x5910ef(0xfd)]}:{'fillType':_0x1da015[_0x5910ef(0x125)]},'stroke':{'color':ge(_0x317f66,_0x1eb63f),'width':_e(_0x317f66,_0x1eb63f),'opacity':ve(_0x317f66,_0x1eb63f),'lineStrokeType':_0x5d98d2[_0x5910ef(0x12f)],'capType':_0x1d6166[_0x5910ef(0x11c)],'lineJoinType':_0x439b44[_0x5910ef(0x11c)]}};}function K(_0x38c8f0,_0x3e58da){return{'x':_0x38c8f0['x']-_0x3e58da['x'],'y':_0x38c8f0['y']-_0x3e58da['y']};}function be(_0x4b330d,_0x719918){const _0xbd57f2=_0x34f4;if(_0x4b330d[_0xbd57f2(0x116)]===_0xbd57f2(0x11e)){let _0x16fef1=_0x4b330d[_0xbd57f2(0x10d)];if(_0x16fef1[_0xbd57f2(0x12a)]===0x0)return[];let _0x1e200c=K(_0x16fef1[0x0],_0x719918),_0x5a854c=[{'command':'M','points':[_0x1e200c['x'],_0x1e200c['y']]}];for(let _0xb89288=0x1;_0xb89288<_0x16fef1['length'];_0xb89288++){let _0x1053e7=_0x16fef1[_0xb89288-0x1],_0x64166b=_0x16fef1[_0xb89288],_0x479c57=K(_0x1053e7[_0xbd57f2(0xe0)]??_0x1053e7,_0x719918),_0x21bd99=K(_0x64166b['in']??_0x64166b,_0x719918),_0x5418df=K(_0x64166b,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x479c57['x'],_0x479c57['y'],_0x21bd99['x'],_0x21bd99['y'],_0x5418df['x'],_0x5418df['y']]});}if(_0x4b330d[_0xbd57f2(0x108)]&&_0x16fef1[_0xbd57f2(0x12a)]>0x1){let _0xe3b2d4=_0x16fef1[_0x16fef1['length']-0x1],_0x433c20=_0x16fef1[0x0],_0x393860=K(_0xe3b2d4[_0xbd57f2(0xe0)]??_0xe3b2d4,_0x719918),_0x315164=K(_0x433c20['in']??_0x433c20,_0x719918),_0x24d9f5=K(_0x433c20,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x393860['x'],_0x393860['y'],_0x315164['x'],_0x315164['y'],_0x24d9f5['x'],_0x24d9f5['y']]}),_0x5a854c[_0xbd57f2(0x103)]({'command':'z','points':[]});}return _0x5a854c;}let _0x2d20bf=_0x4b330d['points'][_0xbd57f2(0xee)](_0x34d944=>K(_0x34d944,_0x719918));if(_0x2d20bf[_0xbd57f2(0x12a)]===0x0)return[];let _0x239de4=[{'command':'M','points':[_0x2d20bf[0x0]['x'],_0x2d20bf[0x0]['y']]}];for(let _0x4b7d3d=0x0;_0x4b7d3d<_0x2d20bf[_0xbd57f2(0x12a)]-0x1;_0x4b7d3d++){let _0x176ce4=_0x2d20bf[_0x4b7d3d],_0x59d0c2=_0x2d20bf[_0x4b7d3d+0x1],_0x39ef4f=_0x2d20bf[_0x4b7d3d-0x1]??_0x176ce4,_0x1c3a5e=_0x2d20bf[_0x4b7d3d+0x2]??_0x59d0c2,_0x58fd18={'x':_0x176ce4['x']+(_0x59d0c2['x']-_0x39ef4f['x'])/0x6,'y':_0x176ce4['y']+(_0x59d0c2['y']-_0x39ef4f['y'])/0x6},_0x470276={'x':_0x59d0c2['x']-(_0x1c3a5e['x']-_0x176ce4['x'])/0x6,'y':_0x59d0c2['y']-(_0x1c3a5e['y']-_0x176ce4['y'])/0x6};_0x239de4['push']({'command':'C','points':[_0x58fd18['x'],_0x58fd18['y'],_0x470276['x'],_0x470276['y'],_0x59d0c2['x'],_0x59d0c2['y']]});}return _0x239de4;}function xe(_0x12c644){const _0x13e3a2=_0x34f4;let {model:_0x3c3f62,sourceModel:_0x20c348=_0x3c3f62,style:_0x1ad5b5}=_0x12c644,_0x2ddbcd=_0x12c644[_0x13e3a2(0x10e)]??_0x3c3f62[_0x13e3a2(0x116)],_0x1066d0=G(_0x3c3f62),_0x4d6f7c=_0x3c3f62[_0x13e3a2(0x116)]==='pen'&&_0x2ddbcd!==_0x13e3a2(0x11e)?_0x3c3f62:void 0x0;return{'transform':{..._0x1066d0,'rotation':0x0},'shapeData':ye(_0x3c3f62,_0x1ad5b5),'ink':{'version':0x1,'tool':_0x2ddbcd,'sourceModel':_0x20c348,..._0x4d6f7c?{'editModel':_0x4d6f7c}:{},'normalizedBounds':_0x1066d0}};}var Se=_0x428ca5(0xf0),Ce='1.2.0';function q(_0x4ba76b){'@babel/helpers - typeof';const _0x384fb4=_0x428ca5;return q=typeof Symbol==_0x384fb4(0x11a)&&typeof Symbol[_0x384fb4(0xe6)]==_0x384fb4(0xe7)?function(_0x3a9b4e){return typeof _0x3a9b4e;}:function(_0x3aec00){const _0x542123=_0x384fb4;return _0x3aec00&&typeof Symbol==_0x542123(0x11a)&&_0x3aec00[_0x542123(0x10b)]===Symbol&&_0x3aec00!==Symbol['prototype']?_0x542123(0xe7):typeof _0x3aec00;},q(_0x4ba76b);}function we(_0x53d8f9,_0x29d70a){const _0x2cbfb0=_0x428ca5;if(q(_0x53d8f9)!=_0x2cbfb0(0x12e)||!_0x53d8f9)return _0x53d8f9;var _0x4bd9ac=_0x53d8f9[Symbol[_0x2cbfb0(0xf7)]];if(_0x4bd9ac!==void 0x0){var _0x51b7a4=_0x4bd9ac[_0x2cbfb0(0xf6)](_0x53d8f9,_0x29d70a||_0x2cbfb0(0xed));if(q(_0x51b7a4)!='object')return _0x51b7a4;throw TypeError(_0x2cbfb0(0x100));}return(_0x29d70a===_0x2cbfb0(0xfc)?String:Number)(_0x53d8f9);}function J(_0x2856c1){const _0x4d725f=_0x428ca5;var _0x478bc8=we(_0x2856c1,'string');return q(_0x478bc8)==_0x4d725f(0xe7)?_0x478bc8:_0x478bc8+'';}function Y(_0x438dd4,_0x3eff29,_0x371227){const _0x72379c=_0x428ca5;return(_0x3eff29=J(_0x3eff29))in _0x438dd4?Object[_0x72379c(0x113)](_0x438dd4,_0x3eff29,{'value':_0x371227,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x438dd4[_0x3eff29]=_0x371227,_0x438dd4;}const X=_0x290056(_0x428ca5(0x112));var Te=class{constructor(){const _0x1593a7=_0x428ca5;Y(this,_0x1593a7(0x114),[]);}[_0x428ca5(0x107)](_0x31351b){const _0x2baaea=_0x428ca5;return this[_0x2baaea(0x114)]['push'](_0x31351b),_0x243018(()=>{const _0x5cf8fd=_0x2baaea;let _0x3344f1=this[_0x5cf8fd(0x114)][_0x5cf8fd(0xdf)](_0x31351b);_0x3344f1>=0x0&&this[_0x5cf8fd(0x114)]['splice'](_0x3344f1,0x1);});}['beginInkMode'](_0x26f2aa){const _0x57ec38=_0x428ca5;for(let _0x372f66 of this[_0x57ec38(0x114)])if(_0x372f66[_0x57ec38(0x131)](_0x26f2aa))return!0x0;return!0x1;}async['createCustomShape'](_0x2decc2){const _0x3c3899=_0x428ca5;for(let _0x45a930 of this[_0x3c3899(0x114)])if(_0x45a930[_0x3c3899(0xdc)]&&await _0x45a930[_0x3c3899(0xdc)](_0x2decc2))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x262274[_0x428ca5(0xe5)],'handler':(_0x263eca,_0x10247d)=>_0x10247d?_0x263eca[_0x428ca5(0x102)](X)[_0x428ca5(0x131)](_0x10247d):!0x1},Z={};function Q(_0x4728ab,_0x58ce78){return function(_0x3c3c6f,_0x59dd04){_0x58ce78(_0x3c3c6f,_0x59dd04,_0x4728ab);};}function De(_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc){const _0x1fa6fd=_0x428ca5;var _0x4557f7=arguments[_0x1fa6fd(0x12a)],_0x453c3=_0x4557f7<0x3?_0x3ecbbc:_0x497fcc===null?_0x497fcc=Object['getOwnPropertyDescriptor'](_0x3ecbbc,_0xdd64c7):_0x497fcc,_0x59ffc2;if(typeof Reflect=='object'&&typeof Reflect[_0x1fa6fd(0xf9)]==_0x1fa6fd(0x11a))_0x453c3=Reflect[_0x1fa6fd(0xf9)](_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc);else{for(var _0x1840b8=_0x19c24b[_0x1fa6fd(0x12a)]-0x1;_0x1840b8>=0x0;_0x1840b8--)(_0x59ffc2=_0x19c24b[_0x1840b8])&&(_0x453c3=(_0x4557f7<0x3?_0x59ffc2(_0x453c3):_0x4557f7>0x3?_0x59ffc2(_0x3ecbbc,_0xdd64c7,_0x453c3):_0x59ffc2(_0x3ecbbc,_0xdd64c7))||_0x453c3);}return _0x4557f7>0x3&&_0x453c3&&Object['defineProperty'](_0x3ecbbc,_0xdd64c7,_0x453c3),_0x453c3;}let $=class extends _0xd5747{constructor(_0x5d28f2=Z,_0x48f601,_0x3081b0,_0x56b884){const _0x47b5de=_0x428ca5;super(),this['_config']=_0x5d28f2,this[_0x47b5de(0x133)]=_0x48f601,this[_0x47b5de(0xe9)]=_0x3081b0,this[_0x47b5de(0x106)]=_0x56b884;let {..._0x498b0e}=_0x18dd0a({},Z,this[_0x47b5de(0x129)]);this[_0x47b5de(0x106)][_0x47b5de(0x109)]('ink.config',_0x498b0e);}[_0x428ca5(0xe8)](){const _0x285104=_0x428ca5;[[X,{'useClass':Te}]][_0x285104(0x11d)](_0x1e0137=>this[_0x285104(0x133)][_0x285104(0x12b)](_0x1e0137)),this['disposeWithMe'](this['_commandService'][_0x285104(0x135)](Ee));}};Y($,_0x428ca5(0xf2),_0x428ca5(0x105)),Y($,'packageName',Se),Y($,_0x428ca5(0x11b),Ce),Y($,_0x428ca5(0x118),_0x57679c[_0x428ca5(0x123)]),$=De([_0x51330d(_0x44e568),Q(0x1,_0x89bb4c(_0x169e64)),Q(0x2,_0x2a482d),Q(0x3,_0x37a4f2)],$);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 _0x16ff5b=_0x330d;(function(_0x6cc2a6,_0x2d6fe7){const _0x452d76=_0x330d,_0x2020e3=_0x6cc2a6();while(!![]){try{const _0x3be90e=parseInt(_0x452d76(0x113))/0x1*(parseInt(_0x452d76(0x11c))/0x2)+parseInt(_0x452d76(0x10d))/0x3*(parseInt(_0x452d76(0x11b))/0x4)+-parseInt(_0x452d76(0xef))/0x5*(parseInt(_0x452d76(0x119))/0x6)+parseInt(_0x452d76(0x108))/0x7+parseInt(_0x452d76(0x101))/0x8*(-parseInt(_0x452d76(0xec))/0x9)+parseInt(_0x452d76(0x104))/0xa*(-parseInt(_0x452d76(0x114))/0xb)+parseInt(_0x452d76(0x10b))/0xc;if(_0x3be90e===_0x2d6fe7)break;else _0x2020e3['push'](_0x2020e3['shift']());}catch(_0x1ef773){_0x2020e3['push'](_0x2020e3['shift']());}}}(_0x555c,0x48c81));import{BoardElementType as _0x4e293a}from'@univerjs-pro/boards';import{FBoard as _0x1ab7f9}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4dcdda}from'@univerjs-pro/ink';import{Tools as _0x1b2b2e,generateRandomId as _0x5f1a90}from'@univerjs/core';import{FEnum as _0x42f1ff}from'@univerjs/core/facade';var o=class extends _0x1ab7f9{[_0x16ff5b(0x11f)](_0x474079){const _0x22725a=_0x16ff5b;let _0xcddca4=s(_0x474079);return _0xcddca4&&this[_0x22725a(0xfc)](_0xcddca4,{'insertIndex':_0x474079[_0x22725a(0xf7)]})?_0xcddca4:null;}[_0x16ff5b(0x10c)](){const _0x5b819c=_0x16ff5b;return this[_0x5b819c(0xf9)]({'elementType':_0x4e293a[_0x5b819c(0x10e)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x3f5f2a,_0xd68a4d){const _0x158659=_0x16ff5b;if(!l(_0x3f5f2a[_0x158659(0x100)])||_0x3f5f2a[_0x158659(0x111)]!==void 0x0&&!l(_0x3f5f2a[_0x158659(0x111)])||!u(_0x3f5f2a['style']))return null;let _0x319f8a=_0x3f5f2a[_0x158659(0xea)]??(_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xea)]),_0x2703aa=_0x1b2b2e[_0x158659(0xff)](_0x3f5f2a[_0x158659(0x100)]),_0x414af4=_0x4dcdda({'model':_0x2703aa,'style':_0x3f5f2a['style'],'tool':_0x3f5f2a['tool'],'sourceModel':_0x3f5f2a[_0x158659(0x111)]?_0x1b2b2e['deepClone'](_0x3f5f2a[_0x158659(0x111)]):_0x2703aa}),_0x1d5a70=d(_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xee)]);return{'id':(_0xd68a4d==null?void 0x0:_0xd68a4d['id'])??_0x3f5f2a['id']??_0x5f1a90(0x6),'type':_0x4e293a[_0x158659(0x10e)],'transform':_0x414af4[_0x158659(0xf0)],'shapeData':_0x414af4[_0x158659(0x118)],'parentId':_0x319f8a??void 0x0,'laneId':_0x3f5f2a[_0x158659(0xf6)]===void 0x0?_0xd68a4d==null?void 0x0:_0xd68a4d[_0x158659(0xf6)]:_0x3f5f2a[_0x158659(0xf6)],'custom':{..._0x1d5a70,'ink':_0x414af4['ink']}};}function c(_0x65a72f){const _0x3f3a2e=_0x16ff5b;return Number[_0x3f3a2e(0x11a)](_0x65a72f['x'])&&Number[_0x3f3a2e(0x11a)](_0x65a72f['y']);}function l(_0x313fd0){const _0x2e3328=_0x16ff5b;if(_0x313fd0[_0x2e3328(0x112)]===_0x2e3328(0xf4)){let _0x102b11=new Set();return _0x313fd0[_0x2e3328(0x110)][_0x2e3328(0x106)]>=(_0x313fd0['closed']?0x3:0x2)&&_0x313fd0[_0x2e3328(0x110)][_0x2e3328(0xf2)](_0x1791a5=>{const _0x5a5d40=_0x2e3328;let _0x5d3866=_0x1791a5['id'][_0x5a5d40(0xf8)]()[_0x5a5d40(0x106)]>0x0&&!_0x102b11['has'](_0x1791a5['id'])&&c(_0x1791a5)&&(!_0x1791a5['in']||c(_0x1791a5['in']))&&(!_0x1791a5[_0x5a5d40(0x103)]||c(_0x1791a5[_0x5a5d40(0x103)]));return _0x102b11[_0x5a5d40(0x107)](_0x1791a5['id']),_0x5d3866;});}return _0x313fd0[_0x2e3328(0x115)][_0x2e3328(0x106)]>=0x2&&_0x313fd0[_0x2e3328(0x115)][_0x2e3328(0xf2)](_0x8f979b=>c(_0x8f979b)&&Number[_0x2e3328(0x11a)](_0x8f979b['t'])&&(_0x8f979b[_0x2e3328(0x11d)]===void 0x0||Number[_0x2e3328(0x11a)](_0x8f979b[_0x2e3328(0x11d)])))&&Number['isFinite'](_0x313fd0[_0x2e3328(0xf5)])&&_0x313fd0['width']>0x0&&Number[_0x2e3328(0x11a)](_0x313fd0[_0x2e3328(0xfb)])&&_0x313fd0[_0x2e3328(0xfb)]>=0x0&&_0x313fd0[_0x2e3328(0xfb)]<=0x1;}function u(_0x10dc54){const _0x55dd3b=_0x16ff5b;return _0x10dc54===void 0x0||(_0x10dc54[_0x55dd3b(0xf5)]===void 0x0||Number[_0x55dd3b(0x11a)](_0x10dc54[_0x55dd3b(0xf5)])&&_0x10dc54[_0x55dd3b(0xf5)]>0x0)&&(_0x10dc54['opacity']===void 0x0||Number[_0x55dd3b(0x11a)](_0x10dc54[_0x55dd3b(0xfb)])&&_0x10dc54[_0x55dd3b(0xfb)]>=0x0&&_0x10dc54['opacity']<=0x1);}function d(_0x118588){const _0x32e573=_0x16ff5b;return _0x118588&&typeof _0x118588==_0x32e573(0xfe)&&!Array['isArray'](_0x118588)?_0x118588:{};}function f(_0x1bb104){const _0x7ff9a2=_0x16ff5b;let _0x58bd3b=d(_0x1bb104['custom'])[_0x7ff9a2(0x10f)];if(!_0x58bd3b||typeof _0x58bd3b!=_0x7ff9a2(0xfe)||Array[_0x7ff9a2(0x109)](_0x58bd3b))return null;let _0x5793d1=_0x58bd3b;return _0x5793d1[_0x7ff9a2(0x117)]===0x1&&_0x5793d1[_0x7ff9a2(0x111)]&&typeof _0x5793d1[_0x7ff9a2(0x111)]==_0x7ff9a2(0xfe)?_0x5793d1:null;}function p(_0x271c19){const _0x5aa76f=_0x16ff5b;return _0x271c19[_0x5aa76f(0xfd)]===_0x4e293a['Shape']&&!!f(_0x271c19);}_0x1ab7f9[_0x16ff5b(0xeb)](o);function _0x330d(_0x3483fe,_0x5a88db){_0x3483fe=_0x3483fe-0xea;const _0x555c07=_0x555c();let _0x330d5c=_0x555c07[_0x3483fe];return _0x330d5c;}function _0x555c(){const _0x331a71=['add','2988720sfGVos','isArray','highlighter','4038228dJzGzj','getInks','9MHGOtr','Shape','ink','anchors','sourceModel','kind','1khJcFi','9999axsGvD','points','corner','version','shapeData','1538952ePTLBI','isFinite','429920CafOxP','387370CVdgUo','pressure','free','insertInk','parentId','extend','9tLftkb','BoardInkHandleKind','custom','5NoTkKT','transform','smooth','every','anchor','pen','width','laneId','insertIndex','trim','findElements','BoardInkPointType','opacity','_addElement','type','object','deepClone','model','1407704YBRITD','BoardInkTool','out','6040qiZVvX','brush','length'];_0x555c=function(){return _0x331a71;};return _0x555c();}const m={'Pen':'pen','Brush':_0x16ff5b(0x105),'Highlighter':_0x16ff5b(0x10a)},h={'Corner':_0x16ff5b(0x116),'Smooth':_0x16ff5b(0xf1),'Symmetric':'symmetric','Free':_0x16ff5b(0x11e)},g={'Anchor':_0x16ff5b(0xf3),'In':'in','Out':'out'};var _=class extends _0x42f1ff{get[_0x16ff5b(0x102)](){return m;}get[_0x16ff5b(0xfa)](){return h;}get[_0x16ff5b(0xed)](){return g;}};_0x42f1ff[_0x16ff5b(0xeb)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x43396f=_0x5b63;(function(_0x4c39c7,_0xda322d){const _0x232cbc=_0x5b63,_0x2be235=_0x4c39c7();while(!![]){try{const _0x28d0f5=-parseInt(_0x232cbc(0x1b5))/0x1+parseInt(_0x232cbc(0x1ab))/0x2*(-parseInt(_0x232cbc(0x1cb))/0x3)+-parseInt(_0x232cbc(0x1df))/0x4*(-parseInt(_0x232cbc(0x19c))/0x5)+-parseInt(_0x232cbc(0x1cc))/0x6*(-parseInt(_0x232cbc(0x1c4))/0x7)+-parseInt(_0x232cbc(0x1b7))/0x8*(-parseInt(_0x232cbc(0x1c7))/0x9)+-parseInt(_0x232cbc(0x1e7))/0xa*(-parseInt(_0x232cbc(0x1d0))/0xb)+-parseInt(_0x232cbc(0x1c9))/0xc;if(_0x28d0f5===_0xda322d)break;else _0x2be235['push'](_0x2be235['shift']());}catch(_0xa02555){_0x2be235['push'](_0x2be235['shift']());}}}(_0x2e72,0x2f376));import{ShapeFillEnum as _0x1415aa,ShapeLineCapEnum as _0x470397,ShapeLineJoinEnum as _0x34e189,ShapeLineTypeEnum as _0x2148f9,ShapeTypeEnum as _0x46da06}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x5cf441}from'@univerjs-pro/license';import{CommandType as _0x291e91,DependentOn as _0x40586b,ICommandService as _0x1fafaa,IConfigService as _0x214ca1,Inject as _0x4a0035,Injector as _0x5e60e7,Plugin as _0x23a329,UniverInstanceType as _0x4b2236,createIdentifier as _0x3acfc4,merge as _0x488fc2,toDisposable as _0x5c9d22}from'@univerjs/core';const g=0.0001;function _(_0x4ec654){return{'x':_0x4ec654['x'],'y':_0x4ec654['y']};}function v(_0x29d4c8){const _0x1144ff=_0x5b63;return{..._0x29d4c8,'in':_0x29d4c8['in']?_(_0x29d4c8['in']):void 0x0,'out':_0x29d4c8[_0x1144ff(0x1e5)]?_(_0x29d4c8[_0x1144ff(0x1e5)]):void 0x0};}function y(_0x975f0){const _0x549241=_0x5b63;return{'kind':_0x549241(0x1dc),'closed':_0x975f0['closed'],'anchors':_0x975f0[_0x549241(0x1f0)][_0x549241(0x196)](v)};}function b(_0x47445f,_0x552e91,_0x45e702){return{'x':_0x47445f['x']+(_0x552e91['x']-_0x47445f['x'])*_0x45e702,'y':_0x47445f['y']+(_0x552e91['y']-_0x47445f['y'])*_0x45e702};}function x(_0x4239f2,_0x2e359c){const _0x3d644b=_0x5b63;return Math[_0x3d644b(0x1ca)](_0x4239f2['x']-_0x2e359c['x'],_0x4239f2['y']-_0x2e359c['y']);}function S(_0x4e1cc6){let _0x47a728=Math['hypot'](_0x4e1cc6['x'],_0x4e1cc6['y']);return _0x47a728<g?{'x':0x1,'y':0x0}:{'x':_0x4e1cc6['x']/_0x47a728,'y':_0x4e1cc6['y']/_0x47a728};}function C(_0x2c4165,_0x7cf372,_0x1a625b=x(_0x2c4165,_0x7cf372)){let _0x42174e=S({'x':_0x2c4165['x']-_0x7cf372['x'],'y':_0x2c4165['y']-_0x7cf372['y']});return{'x':_0x2c4165['x']+_0x42174e['x']*_0x1a625b,'y':_0x2c4165['y']+_0x42174e['y']*_0x1a625b};}function w(_0x361a5c,_0x4153ef){const _0x2af2f7=_0x5b63;let {anchors:_0x31dbbe}=_0x361a5c;return _0x31dbbe[_0x2af2f7(0x1ad)]<0x2||_0x4153ef<0x0?null:_0x4153ef<_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x4153ef,'endIndex':_0x4153ef+0x1,'start':_0x31dbbe[_0x4153ef],'end':_0x31dbbe[_0x4153ef+0x1]}:_0x361a5c['closed']&&_0x4153ef===_0x31dbbe[_0x2af2f7(0x1ad)]-0x1?{'startIndex':_0x31dbbe[_0x2af2f7(0x1ad)]-0x1,'endIndex':0x0,'start':_0x31dbbe[_0x31dbbe[_0x2af2f7(0x1ad)]-0x1],'end':_0x31dbbe[0x0]}:null;}function T(_0x4ee2f4,_0x269f1a){const _0x49dacf=_0x5b63;let _0x4b740a=w(_0x4ee2f4,_0x269f1a);return _0x4b740a?[_0x4b740a['start'],_0x4b740a['start'][_0x49dacf(0x1e5)]??_0x4b740a[_0x49dacf(0x1c6)],_0x4b740a['end']['in']??_0x4b740a[_0x49dacf(0x1b6)],_0x4b740a[_0x49dacf(0x1b6)]]:null;}function te(_0x2dd2df,_0x1aad87){const _0x31a03d=_0x5b63;return _0x1aad87===_0x31a03d(0x1ee)?_0x2dd2df:_0x2dd2df[_0x1aad87]??null;}function E(_0x186b29,_0x3c5daf,_0x64e68){const _0x3a9a78=_0x5b63;return _0x64e68===_0x3a9a78(0x1ee)||_0x186b29[_0x3a9a78(0x192)]?!0x0:_0x64e68==='in'?_0x3c5daf>0x0:_0x3c5daf<_0x186b29[_0x3a9a78(0x1f0)][_0x3a9a78(0x1ad)]-0x1;}function D(_0x3aa310,_0x5cce6e){let [_0x507bf3,_0x212d02,_0x1750a1,_0x1098c2]=_0x3aa310,_0x171bae=b(_0x507bf3,_0x212d02,_0x5cce6e),_0x29cd81=b(_0x212d02,_0x1750a1,_0x5cce6e),_0x5ba6b4=b(_0x1750a1,_0x1098c2,_0x5cce6e);return b(b(_0x171bae,_0x29cd81,_0x5cce6e),b(_0x29cd81,_0x5ba6b4,_0x5cce6e),_0x5cce6e);}function ne(_0x425162,_0x9db1fc){let [_0x3cb3eb,_0x345d80,_0xff87cb,_0x35154e]=_0x425162,_0xfa8fd1=b(_0x3cb3eb,_0x345d80,_0x9db1fc),_0x2835e3=b(_0x345d80,_0xff87cb,_0x9db1fc),_0x1a8089=b(_0xff87cb,_0x35154e,_0x9db1fc),_0x2c73b4=b(_0xfa8fd1,_0x2835e3,_0x9db1fc),_0x51e7f5=b(_0x2835e3,_0x1a8089,_0x9db1fc),_0x3d8224=b(_0x2c73b4,_0x51e7f5,_0x9db1fc);return{'left':[_0x3cb3eb,_0xfa8fd1,_0x2c73b4,_0x3d8224],'right':[_0x3d8224,_0x51e7f5,_0x1a8089,_0x35154e]};}function O(_0x1da999,_0x3e50b8,_0x5d2a6f){const _0x422541=_0x5b63;let _0x1efa5c=_0x5d2a6f['x']-_0x3e50b8['x'],_0x4fccbc=_0x5d2a6f['y']-_0x3e50b8['y'],_0x2e2b47=_0x1efa5c*_0x1efa5c+_0x4fccbc*_0x4fccbc,_0x4491ea=_0x2e2b47<=g?0x0:Math[_0x422541(0x1c5)](0x0,Math[_0x422541(0x1de)](0x1,((_0x1da999['x']-_0x3e50b8['x'])*_0x1efa5c+(_0x1da999['y']-_0x3e50b8['y'])*_0x4fccbc)/_0x2e2b47)),_0x465e22={'x':_0x3e50b8['x']+_0x1efa5c*_0x4491ea,'y':_0x3e50b8['y']+_0x4fccbc*_0x4491ea};return{'point':_0x465e22,'ratio':_0x4491ea,'distance':x(_0x1da999,_0x465e22)};}function re(_0x3cff44,_0x1d2224,_0x12ee58){const _0x20d29b=_0x5b63;return O(_0x3cff44,_0x1d2224,_0x12ee58)[_0x20d29b(0x1a2)]**0x2;}function k(_0x138460,_0x2d1853){const _0x2c2f3f=_0x5b63;if(_0x138460[_0x2c2f3f(0x1ad)]<=0x2)return _0x138460['map'](_);let _0x3e1b2d=0x0,_0x14b18e=0x0,_0x5eeb76=_0x138460[0x0],_0x1bbf4b=_0x138460[_0x138460[_0x2c2f3f(0x1ad)]-0x1],_0x3923c9=_0x2d1853*_0x2d1853;for(let _0x231204=0x1;_0x231204<_0x138460['length']-0x1;_0x231204++){let _0x4d01a6=re(_0x138460[_0x231204],_0x5eeb76,_0x1bbf4b);_0x4d01a6>_0x3e1b2d&&(_0x3e1b2d=_0x4d01a6,_0x14b18e=_0x231204);}if(_0x3e1b2d<=_0x3923c9)return[_(_0x5eeb76),_(_0x1bbf4b)];let _0x3eda5c=k(_0x138460[_0x2c2f3f(0x1ac)](0x0,_0x14b18e+0x1),_0x2d1853),_0xa5f11a=k(_0x138460[_0x2c2f3f(0x1ac)](_0x14b18e),_0x2d1853);return[..._0x3eda5c['slice'](0x0,-0x1),..._0xa5f11a];}function ie(_0x1b7adf,_0x2f2ada){let _0x3b78b5=_0x1b7adf[_0x2f2ada],_0x35f91b=_0x1b7adf[_0x2f2ada+0x1],_0x4a7258=_0x1b7adf[_0x2f2ada-0x1]??_0x3b78b5;return{'x':_0x3b78b5['x']+(_0x35f91b['x']-_0x4a7258['x'])/0x6,'y':_0x3b78b5['y']+(_0x35f91b['y']-_0x4a7258['y'])/0x6};}function A(_0x2a4cb0,_0x3f14ca){let _0x40aaf7=_0x2a4cb0[_0x3f14ca],_0x4de17b=_0x2a4cb0[_0x3f14ca-0x1],_0x35921f=_0x2a4cb0[_0x3f14ca+0x1]??_0x40aaf7;return{'x':_0x40aaf7['x']-(_0x35921f['x']-_0x4de17b['x'])/0x6,'y':_0x40aaf7['y']-(_0x35921f['y']-_0x4de17b['y'])/0x6};}function j(_0x408c38,_0x50395c){const _0x5e790e=_0x5b63;let _0x52d51b=_0x408c38['anchors'][_0x50395c],_0x5f4790=_0x408c38[_0x5e790e(0x1f0)][_0x50395c-0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38['anchors'][_0x408c38[_0x5e790e(0x1f0)][_0x5e790e(0x1ad)]-0x1]:null),_0x70b51c=_0x408c38[_0x5e790e(0x1f0)][_0x50395c+0x1]??(_0x408c38[_0x5e790e(0x192)]?_0x408c38[_0x5e790e(0x1f0)][0x0]:null),_0x3dd1b7=_0x5f4790&&_0x70b51c?S({'x':_0x70b51c['x']-_0x5f4790['x'],'y':_0x70b51c['y']-_0x5f4790['y']}):_0x70b51c?S({'x':_0x70b51c['x']-_0x52d51b['x'],'y':_0x70b51c['y']-_0x52d51b['y']}):_0x5f4790?S({'x':_0x52d51b['x']-_0x5f4790['x'],'y':_0x52d51b['y']-_0x5f4790['y']}):{'x':0x1,'y':0x0},_0x39e097=_0x5f4790&&_0x70b51c?Math[_0x5e790e(0x1c5)](0x32,x(_0x5f4790,_0x70b51c)/0x4):0x32;return{'in':{'x':_0x52d51b['x']-_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']-_0x3dd1b7['y']*_0x39e097},'out':{'x':_0x52d51b['x']+_0x3dd1b7['x']*_0x39e097,'y':_0x52d51b['y']+_0x3dd1b7['y']*_0x39e097}};}function M(_0xde4f53,_0x543632){const _0x211b55=_0x5b63;let _0x3bbe5a=_0xde4f53[_0x543632],_0x436761=_0x543632==='in'?'out':'in',_0x2577be=_0xde4f53[_0x436761];_0x3bbe5a&&(_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1da)?_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a):_0xde4f53[_0x211b55(0x1ba)]===_0x211b55(0x1a6)&&(_0xde4f53[_0x436761]=C(_0xde4f53,_0x3bbe5a,_0x2577be?x(_0xde4f53,_0x2577be):x(_0xde4f53,_0x3bbe5a))));}function ae(_0x361f78,_0x4b0a66){const _0x3e0528=_0x5b63;let _0x21564a=y(_0x361f78);return!_0x4b0a66||_0x21564a[_0x3e0528(0x192)]||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x1ad)]===0x0||_0x21564a[_0x3e0528(0x1f0)][_0x3e0528(0x199)]({'id':_0x3e0528(0x1e9),'x':_0x4b0a66['x'],'y':_0x4b0a66['y'],'pointType':_0x3e0528(0x1c8)}),_0x21564a;}function oe(_0x171597,_0x23ad12={}){const _0x585999=_0x5b63;let _0x33fb6a=Math[_0x585999(0x1c5)](0x0,_0x23ad12['tolerance']??Math['max'](0x4,_0x171597[_0x585999(0x1c3)]*0.35)),_0xa8f2a6=_0x23ad12[_0x585999(0x1a8)]??(_0x10e982=>'ink-centerline-'+_0x10e982),_0x2b86f1=k(_0x171597[_0x585999(0x195)],_0x33fb6a),_0x5406e1=_0x2b86f1['map']((_0x28bbfa,_0x2ff424)=>({'id':_0xa8f2a6(_0x2ff424),'x':_0x28bbfa['x'],'y':_0x28bbfa['y'],'pointType':_0x585999(0x1ea)}));for(let _0x235b0d=0x0;_0x235b0d<_0x5406e1[_0x585999(0x1ad)]-0x1;_0x235b0d++)_0x5406e1[_0x235b0d][_0x585999(0x1e5)]=ie(_0x2b86f1,_0x235b0d),_0x5406e1[_0x235b0d+0x1]['in']=A(_0x2b86f1,_0x235b0d+0x1);return{'kind':_0x585999(0x1dc),'closed':!0x1,'anchors':_0x5406e1};}function se(_0x58fda9,_0x4d3928,_0x51dcbb){const _0x17c666=_0x5b63;let _0x44aca8=null,_0x5bc17b=[_0x17c666(0x1ee),'in',_0x17c666(0x1e5)];return _0x58fda9[_0x17c666(0x1f0)][_0x17c666(0x19e)]((_0x360f6a,_0x42da95)=>{const _0x15339=_0x17c666;_0x5bc17b[_0x15339(0x19e)](_0x55de48=>{const _0x1beed8=_0x15339;if(!E(_0x58fda9,_0x42da95,_0x55de48))return;let _0x4799f3=te(_0x360f6a,_0x55de48);if(!_0x4799f3)return;let _0x1dfcb1=x(_0x4d3928,_0x4799f3);_0x1dfcb1>_0x51dcbb||_0x44aca8&&_0x1dfcb1>=_0x44aca8[_0x1beed8(0x1a2)]||(_0x44aca8={'handle':{'kind':_0x55de48,'anchorId':_0x360f6a['id']},'point':_(_0x4799f3),'distance':_0x1dfcb1});});}),_0x44aca8;}function ce(_0x25c6f9,_0x936968,_0x217cd5){const _0x162939=_0x5b63;let _0x300196=null,_0x3b5600=_0x25c6f9[_0x162939(0x192)]?_0x25c6f9[_0x162939(0x1f0)]['length']:Math['max'](0x0,_0x25c6f9['anchors']['length']-0x1);for(let _0xdd6ac4=0x0;_0xdd6ac4<_0x3b5600;_0xdd6ac4++){let _0x513128=T(_0x25c6f9,_0xdd6ac4);if(!_0x513128)continue;let _0x3fa3d0=D(_0x513128,0x0);for(let _0x21494c=0x1;_0x21494c<=0x20;_0x21494c++){let _0x5a1a35=D(_0x513128,_0x21494c/0x20),_0x3ea94b=O(_0x936968,_0x3fa3d0,_0x5a1a35),_0xbd4031=(_0x21494c-0x1+_0x3ea94b['ratio'])/0x20;(!_0x300196||_0x3ea94b[_0x162939(0x1a2)]<_0x300196['distance'])&&(_0x300196={'segmentIndex':_0xdd6ac4,'t':_0xbd4031,'point':_0x3ea94b[_0x162939(0x1e0)],'distance':_0x3ea94b[_0x162939(0x1a2)]}),_0x3fa3d0=_0x5a1a35;}}return _0x300196&&_0x300196[_0x162939(0x1a2)]<=_0x217cd5?_0x300196:null;}function le(_0x617879,_0x40d83e,_0x1830be){const _0x465052=_0x5b63;let _0xe7e6a2=y(_0x617879),_0x19456e=w(_0xe7e6a2,_0x40d83e['segmentIndex']),_0x3d2114=T(_0xe7e6a2,_0x40d83e[_0x465052(0x1af)]);if(!_0x19456e||!_0x3d2114)return _0xe7e6a2;let _0xf3e387=ne(_0x3d2114,Math['max'](0x0,Math['min'](0x1,_0x40d83e['t']))),_0x52463f={'id':_0x1830be(),'x':_0xf3e387[_0x465052(0x1ce)][0x3]['x'],'y':_0xf3e387[_0x465052(0x1ce)][0x3]['y'],'in':_(_0xf3e387[_0x465052(0x1ce)][0x2]),'out':_(_0xf3e387[_0x465052(0x1d4)][0x1]),'pointType':_0x465052(0x1ea)};return _0xe7e6a2[_0x465052(0x1f0)][_0x19456e[_0x465052(0x1d1)]][_0x465052(0x1e5)]=_(_0xf3e387['left'][0x1]),_0xe7e6a2['anchors'][_0x19456e[_0x465052(0x1cf)]]['in']=_(_0xf3e387[_0x465052(0x1d4)][0x2]),_0xe7e6a2[_0x465052(0x1f0)]['splice'](_0x19456e[_0x465052(0x1d1)]+0x1,0x0,_0x52463f),_0xe7e6a2;}function ue(_0x2a5859,_0x214708){const _0x30fadd=_0x5b63;let _0x4b1f8d=y(_0x2a5859);return _0x4b1f8d['anchors']=_0x4b1f8d[_0x30fadd(0x1f0)]['filter'](_0x31d649=>_0x31d649['id']!==_0x214708),_0x4b1f8d['closed']&&_0x4b1f8d[_0x30fadd(0x1f0)][_0x30fadd(0x1ad)]<0x3&&(_0x4b1f8d[_0x30fadd(0x192)]=!0x1),_0x4b1f8d;}function _0x5b63(_0x5d7baa,_0xe0f7b1){_0x5d7baa=_0x5d7baa-0x192;const _0x2e7274=_0x2e72();let _0x5b6305=_0x2e7274[_0x5d7baa];return _0x5b6305;}function N(_0x4e91ce,_0x29da09,_0x56f6d4){const _0xcef981=_0x5b63;let _0x1580e8=y(_0x4e91ce),_0x46fe69=_0x1580e8[_0xcef981(0x1f0)][_0xcef981(0x1cd)](_0x13e044=>_0x13e044['id']===_0x29da09),_0x437eac=_0x1580e8[_0xcef981(0x1f0)][_0x46fe69];if(!_0x437eac)return _0x1580e8;if(_0x437eac[_0xcef981(0x1ba)]=_0x56f6d4,_0x56f6d4==='corner')return delete _0x437eac['in'],delete _0x437eac[_0xcef981(0x1e5)],_0x1580e8;let _0x516e33=j(_0x1580e8,_0x46fe69);if(_0x437eac['in']=_0x437eac['in']?_(_0x437eac['in']):_0x516e33['in'],_0x437eac[_0xcef981(0x1e5)]=_0x437eac[_0xcef981(0x1e5)]?_(_0x437eac[_0xcef981(0x1e5)]):_0x516e33[_0xcef981(0x1e5)],_0x56f6d4===_0xcef981(0x1da)){let _0x1e4ec2=Math[_0xcef981(0x1c5)](x(_0x437eac,_0x437eac['in']),x(_0x437eac,_0x437eac[_0xcef981(0x1e5)]),0x32),_0x55293d=S({'x':_0x437eac[_0xcef981(0x1e5)]['x']-_0x437eac['x'],'y':_0x437eac[_0xcef981(0x1e5)]['y']-_0x437eac['y']});_0x437eac['out']={'x':_0x437eac['x']+_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']+_0x55293d['y']*_0x1e4ec2},_0x437eac['in']={'x':_0x437eac['x']-_0x55293d['x']*_0x1e4ec2,'y':_0x437eac['y']-_0x55293d['y']*_0x1e4ec2};}else _0x56f6d4==='smooth'&&M(_0x437eac,_0xcef981(0x1e5));return _0x1580e8;}function P(_0x3b045a,_0xcdb09e){const _0x45f1ba=_0x5b63;let _0x1ec69d=_0x3b045a[_0x45f1ba(0x1f0)][_0x45f1ba(0x1b9)](_0x2a6b10=>_0x2a6b10['id']===_0xcdb09e),_0x3862a2=(_0x1ec69d==null?void 0x0:_0x1ec69d[_0x45f1ba(0x1ba)])??_0x45f1ba(0x1c8);return N(_0x3b045a,_0xcdb09e,_0x3862a2==='corner'?_0x45f1ba(0x1a6):_0x3862a2===_0x45f1ba(0x1a6)?_0x45f1ba(0x1da):_0x3862a2===_0x45f1ba(0x1da)?_0x45f1ba(0x1ea):_0x45f1ba(0x1c8));}function F(_0x1740c2,_0x2c61fc,_0x14584b){const _0x434dbc=_0x5b63;let _0x241490=y(_0x1740c2),_0x3909a8=_0x241490['anchors']['find'](_0x3caa35=>_0x3caa35['id']===_0x2c61fc['anchorId']);if(!_0x3909a8)return _0x241490;if(_0x2c61fc[_0x434dbc(0x1b4)]===_0x434dbc(0x1ee)){let _0x592235={'x':_0x14584b['x']-_0x3909a8['x'],'y':_0x14584b['y']-_0x3909a8['y']};return _0x3909a8['x']=_0x14584b['x'],_0x3909a8['y']=_0x14584b['y'],_0x3909a8['in']&&={'x':_0x3909a8['in']['x']+_0x592235['x'],'y':_0x3909a8['in']['y']+_0x592235['y']},_0x3909a8[_0x434dbc(0x1e5)]&&={'x':_0x3909a8[_0x434dbc(0x1e5)]['x']+_0x592235['x'],'y':_0x3909a8['out']['y']+_0x592235['y']},_0x241490;}return _0x3909a8[_0x2c61fc[_0x434dbc(0x1b4)]]=_(_0x14584b),_0x3909a8[_0x434dbc(0x1ba)]===_0x434dbc(0x1c8)&&(_0x3909a8[_0x434dbc(0x1ba)]=_0x434dbc(0x1ea)),M(_0x3909a8,_0x2c61fc[_0x434dbc(0x1b4)]),_0x241490;}const I=1e-9;function L(_0x1af70c){const _0x3fe7f2=_0x5b63;let _0x5dd935=Math[_0x3fe7f2(0x197)](_0x1af70c*0x2710)/0x2710;return Object['is'](_0x5dd935,-0x0)?'0':String(_0x5dd935);}function R(_0x38220b){return L(_0x38220b['x'])+'\x20'+L(_0x38220b['y']);}function z(_0x30ce80,_0x175b51){return{'x':_0x30ce80['x']-_0x175b51['x'],'y':_0x30ce80['y']-_0x175b51['y']};}function B(_0x4b816f,_0x3915b3,_0x5c78b8,_0x17cfe7,_0x1816ec){let _0x56581d=0x1-_0x1816ec;return{'x':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['x']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['x']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['x']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['x'],'y':_0x56581d*_0x56581d*_0x56581d*_0x4b816f['y']+0x3*_0x56581d*_0x56581d*_0x1816ec*_0x3915b3['y']+0x3*_0x56581d*_0x1816ec*_0x1816ec*_0x5c78b8['y']+_0x1816ec*_0x1816ec*_0x1816ec*_0x17cfe7['y']};}function V(_0x18e54d,_0x5813d1,_0x545969,_0x32312c){const _0x41c53f=_0x5b63;let _0x4b9f73=-_0x18e54d+0x3*_0x5813d1-0x3*_0x545969+_0x32312c,_0x14e391=0x3*_0x18e54d-0x6*_0x5813d1+0x3*_0x545969,_0x39476b=-0x3*_0x18e54d+0x3*_0x5813d1,_0x466e48=[];if(Math[_0x41c53f(0x1ef)](_0x4b9f73)<I){if(Math[_0x41c53f(0x1ef)](_0x14e391)<I)return _0x466e48;let _0x47b5c2=-_0x39476b/(0x2*_0x14e391);return _0x47b5c2>0x0&&_0x47b5c2<0x1&&_0x466e48[_0x41c53f(0x199)](_0x47b5c2),_0x466e48;}let _0x4691fd=_0x14e391*_0x14e391-0x3*_0x4b9f73*_0x39476b;if(_0x4691fd<0x0)return _0x466e48;let _0x567805=Math[_0x41c53f(0x1eb)](Math[_0x41c53f(0x1c5)](0x0,_0x4691fd)),_0x336e74=(-_0x14e391+_0x567805)/(0x3*_0x4b9f73),_0x579f5b=(-_0x14e391-_0x567805)/(0x3*_0x4b9f73);return _0x336e74>0x0&&_0x336e74<0x1&&_0x466e48['push'](_0x336e74),_0x579f5b>0x0&&_0x579f5b<0x1&&Math[_0x41c53f(0x1ef)](_0x579f5b-_0x336e74)>I&&_0x466e48['push'](_0x579f5b),_0x466e48;}function H(_0x5ced87,_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be){const _0x55dcce=_0x5b63;_0x5ced87[_0x55dcce(0x199)](_0xf5e7c,_0xef08be),new Set([...V(_0xf5e7c['x'],_0x2aebb5['x'],_0x146f57['x'],_0xef08be['x']),...V(_0xf5e7c['y'],_0x2aebb5['y'],_0x146f57['y'],_0xef08be['y'])])['forEach'](_0x5de4d9=>{const _0x34e751=_0x55dcce;_0x5ced87[_0x34e751(0x199)](B(_0xf5e7c,_0x2aebb5,_0x146f57,_0xef08be,_0x5de4d9));});}function U(_0x1333aa){const _0x7e9915=_0x5b63;let _0x2986be=_0x1333aa[_0x7e9915(0x1f0)];if(_0x2986be[_0x7e9915(0x1ad)]<=0x1)return _0x2986be;let _0x5cbc52=[];for(let _0x35e4b6=0x1;_0x35e4b6<_0x2986be[_0x7e9915(0x1ad)];_0x35e4b6++){let _0x18fb54=_0x2986be[_0x35e4b6-0x1],_0x37b667=_0x2986be[_0x35e4b6];H(_0x5cbc52,_0x18fb54,_0x18fb54[_0x7e9915(0x1e5)]??_0x18fb54,_0x37b667['in']??_0x37b667,_0x37b667);}if(_0x1333aa[_0x7e9915(0x192)]&&_0x2986be[_0x7e9915(0x1ad)]>0x1){let _0x2ef0cf=_0x2986be[_0x2986be[_0x7e9915(0x1ad)]-0x1],_0x39d297=_0x2986be[0x0];H(_0x5cbc52,_0x2ef0cf,_0x2ef0cf[_0x7e9915(0x1e5)]??_0x2ef0cf,_0x39d297['in']??_0x39d297,_0x39d297);}return _0x5cbc52;}function de(_0x4e31a3){const _0x2bbfe9=_0x5b63;let _0x604d13=_0x4e31a3[_0x2bbfe9(0x195)];if(_0x604d13[_0x2bbfe9(0x1ad)]<=0x1)return _0x604d13;let _0x4dfb6b=[];for(let _0x151291=0x0;_0x151291<_0x604d13['length']-0x1;_0x151291++){let _0xecb5ef=_0x604d13[_0x151291],_0x3c0222=_0x604d13[_0x151291+0x1],_0x1472b0=_0x604d13[_0x151291-0x1]??_0xecb5ef,_0x45ea24=_0x604d13[_0x151291+0x2]??_0x3c0222;H(_0x4dfb6b,_0xecb5ef,{'x':_0xecb5ef['x']+(_0x3c0222['x']-_0x1472b0['x'])/0x6,'y':_0xecb5ef['y']+(_0x3c0222['y']-_0x1472b0['y'])/0x6},{'x':_0x3c0222['x']-(_0x45ea24['x']-_0xecb5ef['x'])/0x6,'y':_0x3c0222['y']-(_0x45ea24['y']-_0xecb5ef['y'])/0x6},_0x3c0222);}return _0x4dfb6b;}function fe(_0x172440){const _0x6fc696=_0x5b63;return _0x172440[_0x6fc696(0x1b4)]===_0x6fc696(0x1dc)?U(_0x172440):de(_0x172440);}function W(_0x4e2575){const _0x4fcd51=_0x5b63;let _0x4d4ea1=Math[_0x4fcd51(0x197)](_0x4e2575*0x2710)/0x2710;return Object['is'](_0x4d4ea1,-0x0)?0x0:_0x4d4ea1;}function G(_0x332840){const _0x1a3809=_0x5b63;let _0x23f35e=fe(_0x332840);if(_0x23f35e[_0x1a3809(0x1ad)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3211cf=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x9432b5=>_0x9432b5['x'])),_0x11de0d=Math['min'](..._0x23f35e[_0x1a3809(0x196)](_0x3d21bd=>_0x3d21bd['y'])),_0x4de426=Math[_0x1a3809(0x1c5)](..._0x23f35e['map'](_0x466622=>_0x466622['x'])),_0x1d9d91=Math['max'](..._0x23f35e['map'](_0x201f1f=>_0x201f1f['y']));return{'left':W(_0x3211cf),'top':W(_0x11de0d),'width':W(Math['max'](0x1,_0x4de426-_0x3211cf)),'height':W(Math['max'](0x1,_0x1d9d91-_0x11de0d))};}function pe(_0x521836,_0x4fdbc0){const _0x34b0a2=_0x5b63;let _0x19e0a9=_0x521836['anchors'];if(_0x19e0a9[_0x34b0a2(0x1ad)]===0x0)return'';let _0x1d8e3d=['M\x20'+R(z(_0x19e0a9[0x0],_0x4fdbc0))];for(let _0x487fe1=0x1;_0x487fe1<_0x19e0a9[_0x34b0a2(0x1ad)];_0x487fe1++){let _0x5ec2ca=_0x19e0a9[_0x487fe1-0x1],_0x18235d=_0x19e0a9[_0x487fe1],_0x2acc6a=_0x5ec2ca[_0x34b0a2(0x1e5)]??_0x5ec2ca,_0x2a898c=_0x18235d['in']??_0x18235d;_0x1d8e3d[_0x34b0a2(0x199)]('C\x20'+R(z(_0x2acc6a,_0x4fdbc0))+'\x20'+R(z(_0x2a898c,_0x4fdbc0))+'\x20'+R(z(_0x18235d,_0x4fdbc0)));}if(_0x521836[_0x34b0a2(0x192)]&&_0x19e0a9[_0x34b0a2(0x1ad)]>0x1){let _0x3b31e9=_0x19e0a9[_0x19e0a9[_0x34b0a2(0x1ad)]-0x1],_0x29554c=_0x19e0a9[0x0],_0x1cdd63=_0x3b31e9[_0x34b0a2(0x1e5)]??_0x3b31e9,_0x5a814c=_0x29554c['in']??_0x29554c;_0x1d8e3d['push']('C\x20'+R(z(_0x1cdd63,_0x4fdbc0))+'\x20'+R(z(_0x5a814c,_0x4fdbc0))+'\x20'+R(z(_0x29554c,_0x4fdbc0))),_0x1d8e3d[_0x34b0a2(0x199)]('Z');}return _0x1d8e3d[_0x34b0a2(0x1d8)]('\x20');}function me(_0x259bd0,_0x1ef7ae){const _0x551ef0=_0x5b63;let _0x20ac1d=_0x259bd0[_0x551ef0(0x195)]['map'](_0x566651=>z(_0x566651,_0x1ef7ae));if(_0x20ac1d[_0x551ef0(0x1ad)]===0x0)return'';if(_0x20ac1d[_0x551ef0(0x1ad)]===0x1)return'M\x20'+R(_0x20ac1d[0x0]);let _0x5483c5=['M\x20'+R(_0x20ac1d[0x0])];for(let _0x5364da=0x0;_0x5364da<_0x20ac1d[_0x551ef0(0x1ad)]-0x1;_0x5364da++){let _0x256ccf=_0x20ac1d[_0x5364da],_0x52948f=_0x20ac1d[_0x5364da+0x1],_0x1997a1=_0x20ac1d[_0x5364da-0x1]??_0x256ccf,_0x14a1f7=_0x20ac1d[_0x5364da+0x2]??_0x52948f,_0x2d57bb={'x':_0x256ccf['x']+(_0x52948f['x']-_0x1997a1['x'])/0x6,'y':_0x256ccf['y']+(_0x52948f['y']-_0x1997a1['y'])/0x6},_0x3bcc5d={'x':_0x52948f['x']-(_0x14a1f7['x']-_0x256ccf['x'])/0x6,'y':_0x52948f['y']-(_0x14a1f7['y']-_0x256ccf['y'])/0x6};_0x5483c5[_0x551ef0(0x199)]('C\x20'+R(_0x2d57bb)+'\x20'+R(_0x3bcc5d)+'\x20'+R(_0x52948f));}return _0x5483c5[_0x551ef0(0x1d8)]('\x20');}function he(_0x37b641,_0x2ba77b){const _0x32ea8e=_0x5b63;return _0x37b641[_0x32ea8e(0x1b4)]==='pen'?pe(_0x37b641,_0x2ba77b):me(_0x37b641,_0x2ba77b);}function ge(_0x5a2fcc,_0xa3d057){const _0x1acc2e=_0x5b63;return _0xa3d057!=null&&_0xa3d057['color']?_0xa3d057[_0x1acc2e(0x1bb)]:_0x5a2fcc[_0x1acc2e(0x1b4)]===_0x1acc2e(0x1dc)?_0x1acc2e(0x1e2):_0x5a2fcc[_0x1acc2e(0x1bb)];}function _e(_0x3b9d70,_0x752241){const _0x109c0b=_0x5b63;return(_0x752241==null?void 0x0:_0x752241[_0x109c0b(0x1c3)])===void 0x0?_0x3b9d70[_0x109c0b(0x1b4)]===_0x109c0b(0x1dc)?0x2:_0x3b9d70[_0x109c0b(0x1c3)]:_0x752241[_0x109c0b(0x1c3)];}function ve(_0x2e92c3,_0x560d3c){const _0x48d22d=_0x5b63;return(_0x560d3c==null?void 0x0:_0x560d3c[_0x48d22d(0x1d2)])===void 0x0?_0x2e92c3[_0x48d22d(0x1b4)]===_0x48d22d(0x1dc)?void 0x0:_0x2e92c3[_0x48d22d(0x1d2)]:_0x560d3c['opacity'];}function _0x2e72(){const _0x3c1992=['10SlBgBP','Round','__ink-preview-anchor__','free','sqrt','_adapters','getOwnPropertyDescriptor','anchor','abs','anchors','decorate','default','closed','UNIVER_UNKNOWN','add','points','map','round','@univerjs-pro/ink','push','defineProperty','get','5Xmqjmh','tool','forEach','onStarting','ink.config','constructor','distance','type','iterator','_commandService','smooth','setConfig','createId','registerCommand','none','982mVvxAD','slice','length','_config','segmentIndex','function','Rect','pluginName','height','kind','316670DyGKJa','end','3704tRkUlk','version','find','pointType','color','splice','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','createCustomShape','NoFill','_configService','top','width','1239jCYypZ','max','start','3213NglzJw','corner','1199100VKswAW','hypot','171ICMRdA','1878XpbfCG','findIndex','left','endIndex','2225542HhWfXU','startIndex','opacity','disposeWithMe','right','OPERATION','packageName','indexOf','join','symbol','symmetric','beginInkMode','pen','ink.operation.start','min','859864gbakIV','point','SolidFill','#f54a45','1.1.0','object','out','string'];_0x2e72=function(){return _0x3c1992;};return _0x2e72();}function ye(_0x131423,_0x19c971){const _0x5184b9=_0x5b63;let _0x1b6b28=G(_0x131423),_0x1b42fa=he(_0x131423,{'x':_0x1b6b28[_0x5184b9(0x1ce)],'y':_0x1b6b28['top']}),_0x47d6ed=_0x131423['kind']==='pen'&&_0x131423['closed'],_0xb0a7fc=_0x19c971==null?void 0x0:_0x19c971['fillColor'];return{'shapeType':_0x46da06[_0x5184b9(0x1b1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1b6b28[_0x5184b9(0x1c3)],'h':_0x1b6b28[_0x5184b9(0x1b3)],'fill':_0x47d6ed?'norm':_0x5184b9(0x1aa),'stroke':!0x0,'data':_0x1b42fa,'dataArray':be(_0x131423,{'x':_0x1b6b28['left'],'y':_0x1b6b28[_0x5184b9(0x1c2)]})}]},'fill':_0x47d6ed&&_0xb0a7fc?{'color':_0xb0a7fc,'fillType':_0x1415aa[_0x5184b9(0x1e1)]}:{'fillType':_0x1415aa[_0x5184b9(0x1c0)]},'stroke':{'color':ge(_0x131423,_0x19c971),'width':_e(_0x131423,_0x19c971),'opacity':ve(_0x131423,_0x19c971),'lineStrokeType':_0x2148f9['SolidLine'],'capType':_0x470397['Round'],'lineJoinType':_0x34e189[_0x5184b9(0x1e8)]}};}function K(_0x182e0e,_0x8f2a71){return{'x':_0x182e0e['x']-_0x8f2a71['x'],'y':_0x182e0e['y']-_0x8f2a71['y']};}function be(_0x5948b9,_0x101a36){const _0x2de9fd=_0x5b63;if(_0x5948b9[_0x2de9fd(0x1b4)]===_0x2de9fd(0x1dc)){let _0x2684f9=_0x5948b9['anchors'];if(_0x2684f9['length']===0x0)return[];let _0x270b4e=K(_0x2684f9[0x0],_0x101a36),_0x5d0528=[{'command':'M','points':[_0x270b4e['x'],_0x270b4e['y']]}];for(let _0xcf056b=0x1;_0xcf056b<_0x2684f9[_0x2de9fd(0x1ad)];_0xcf056b++){let _0x3f163e=_0x2684f9[_0xcf056b-0x1],_0x18a7bd=_0x2684f9[_0xcf056b],_0x46b10e=K(_0x3f163e[_0x2de9fd(0x1e5)]??_0x3f163e,_0x101a36),_0x1663e2=K(_0x18a7bd['in']??_0x18a7bd,_0x101a36),_0x4dd78a=K(_0x18a7bd,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x46b10e['x'],_0x46b10e['y'],_0x1663e2['x'],_0x1663e2['y'],_0x4dd78a['x'],_0x4dd78a['y']]});}if(_0x5948b9[_0x2de9fd(0x192)]&&_0x2684f9[_0x2de9fd(0x1ad)]>0x1){let _0x2cd089=_0x2684f9[_0x2684f9[_0x2de9fd(0x1ad)]-0x1],_0x4fc80e=_0x2684f9[0x0],_0x5cdbc4=K(_0x2cd089[_0x2de9fd(0x1e5)]??_0x2cd089,_0x101a36),_0x2ff460=K(_0x4fc80e['in']??_0x4fc80e,_0x101a36),_0x2d8ee0=K(_0x4fc80e,_0x101a36);_0x5d0528[_0x2de9fd(0x199)]({'command':'C','points':[_0x5cdbc4['x'],_0x5cdbc4['y'],_0x2ff460['x'],_0x2ff460['y'],_0x2d8ee0['x'],_0x2d8ee0['y']]}),_0x5d0528[_0x2de9fd(0x199)]({'command':'z','points':[]});}return _0x5d0528;}let _0x5669d2=_0x5948b9[_0x2de9fd(0x195)]['map'](_0x4caf9d=>K(_0x4caf9d,_0x101a36));if(_0x5669d2['length']===0x0)return[];let _0x4c784c=[{'command':'M','points':[_0x5669d2[0x0]['x'],_0x5669d2[0x0]['y']]}];for(let _0xa6d83f=0x0;_0xa6d83f<_0x5669d2['length']-0x1;_0xa6d83f++){let _0x285a50=_0x5669d2[_0xa6d83f],_0x5f44af=_0x5669d2[_0xa6d83f+0x1],_0x39e52b=_0x5669d2[_0xa6d83f-0x1]??_0x285a50,_0x44ce54=_0x5669d2[_0xa6d83f+0x2]??_0x5f44af,_0x5a7713={'x':_0x285a50['x']+(_0x5f44af['x']-_0x39e52b['x'])/0x6,'y':_0x285a50['y']+(_0x5f44af['y']-_0x39e52b['y'])/0x6},_0x51106e={'x':_0x5f44af['x']-(_0x44ce54['x']-_0x285a50['x'])/0x6,'y':_0x5f44af['y']-(_0x44ce54['y']-_0x285a50['y'])/0x6};_0x4c784c[_0x2de9fd(0x199)]({'command':'C','points':[_0x5a7713['x'],_0x5a7713['y'],_0x51106e['x'],_0x51106e['y'],_0x5f44af['x'],_0x5f44af['y']]});}return _0x4c784c;}function xe(_0x3de858){const _0x1e6861=_0x5b63;let {model:_0x1f53ef,sourceModel:_0x1d9dc1=_0x1f53ef,style:_0x1a49da}=_0x3de858,_0xfa98f2=_0x3de858[_0x1e6861(0x19d)]??_0x1f53ef[_0x1e6861(0x1b4)],_0x53d9f1=G(_0x1f53ef),_0x1696c0=_0x1f53ef[_0x1e6861(0x1b4)]===_0x1e6861(0x1dc)&&_0xfa98f2!==_0x1e6861(0x1dc)?_0x1f53ef:void 0x0;return{'transform':{..._0x53d9f1,'rotation':0x0},'shapeData':ye(_0x1f53ef,_0x1a49da),'ink':{'version':0x1,'tool':_0xfa98f2,'sourceModel':_0x1d9dc1,..._0x1696c0?{'editModel':_0x1696c0}:{},'normalizedBounds':_0x53d9f1}};}var Se=_0x43396f(0x198),Ce=_0x43396f(0x1e3);function q(_0x327fcd){'@babel/helpers - typeof';const _0x555e03=_0x43396f;return q=typeof Symbol==_0x555e03(0x1b0)&&typeof Symbol[_0x555e03(0x1a4)]==_0x555e03(0x1d9)?function(_0x4653e8){return typeof _0x4653e8;}:function(_0x565e75){const _0x7cb9ff=_0x555e03;return _0x565e75&&typeof Symbol=='function'&&_0x565e75[_0x7cb9ff(0x1a1)]===Symbol&&_0x565e75!==Symbol['prototype']?_0x7cb9ff(0x1d9):typeof _0x565e75;},q(_0x327fcd);}function we(_0x4638e5,_0x37d457){const _0x50103e=_0x43396f;if(q(_0x4638e5)!=_0x50103e(0x1e4)||!_0x4638e5)return _0x4638e5;var _0x37cf59=_0x4638e5[Symbol['toPrimitive']];if(_0x37cf59!==void 0x0){var _0x3deef9=_0x37cf59['call'](_0x4638e5,_0x37d457||_0x50103e(0x1f2));if(q(_0x3deef9)!='object')return _0x3deef9;throw TypeError(_0x50103e(0x1be));}return(_0x37d457==='string'?String:Number)(_0x4638e5);}function J(_0x3960c5){const _0x1fef8a=_0x43396f;var _0x1727fe=we(_0x3960c5,_0x1fef8a(0x1e6));return q(_0x1727fe)==_0x1fef8a(0x1d9)?_0x1727fe:_0x1727fe+'';}function Y(_0x12dba5,_0x2776c5,_0x330d02){const _0x5a3df0=_0x43396f;return(_0x2776c5=J(_0x2776c5))in _0x12dba5?Object[_0x5a3df0(0x19a)](_0x12dba5,_0x2776c5,{'value':_0x330d02,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12dba5[_0x2776c5]=_0x330d02,_0x12dba5;}const X=_0x3acfc4('ink.host-adapter.service');var Te=class{constructor(){const _0x4e989f=_0x43396f;Y(this,_0x4e989f(0x1ec),[]);}['registerAdapter'](_0x5e717d){const _0x5e17a1=_0x43396f;return this[_0x5e17a1(0x1ec)]['push'](_0x5e717d),_0x5c9d22(()=>{const _0x12a85d=_0x5e17a1;let _0x54eaca=this[_0x12a85d(0x1ec)][_0x12a85d(0x1d7)](_0x5e717d);_0x54eaca>=0x0&&this[_0x12a85d(0x1ec)][_0x12a85d(0x1bc)](_0x54eaca,0x1);});}[_0x43396f(0x1db)](_0x7e3f30){const _0x1c01a4=_0x43396f;for(let _0x1c865b of this[_0x1c01a4(0x1ec)])if(_0x1c865b[_0x1c01a4(0x1db)](_0x7e3f30))return!0x0;return!0x1;}async[_0x43396f(0x1bf)](_0xd4e7d1){const _0x166569=_0x43396f;for(let _0x3480a0 of this[_0x166569(0x1ec)])if(_0x3480a0['createCustomShape']&&await _0x3480a0[_0x166569(0x1bf)](_0xd4e7d1))return!0x0;return!0x1;}};const Ee={'id':_0x43396f(0x1dd),'type':_0x291e91[_0x43396f(0x1d5)],'handler':(_0x49ed18,_0x1900b9)=>_0x1900b9?_0x49ed18[_0x43396f(0x19b)](X)[_0x43396f(0x1db)](_0x1900b9):!0x1},Z={};function Q(_0x2808e4,_0x55d7cf){return function(_0x3d85b5,_0x568f41){_0x55d7cf(_0x3d85b5,_0x568f41,_0x2808e4);};}function De(_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f){const _0xb63aa=_0x43396f;var _0xf34f97=arguments['length'],_0x24dc5f=_0xf34f97<0x3?_0x2bc677:_0x54cf2f===null?_0x54cf2f=Object[_0xb63aa(0x1ed)](_0x2bc677,_0x408c17):_0x54cf2f,_0x4f1b7f;if(typeof Reflect=='object'&&typeof Reflect[_0xb63aa(0x1f1)]==_0xb63aa(0x1b0))_0x24dc5f=Reflect[_0xb63aa(0x1f1)](_0x28cd73,_0x2bc677,_0x408c17,_0x54cf2f);else{for(var _0x1c165b=_0x28cd73[_0xb63aa(0x1ad)]-0x1;_0x1c165b>=0x0;_0x1c165b--)(_0x4f1b7f=_0x28cd73[_0x1c165b])&&(_0x24dc5f=(_0xf34f97<0x3?_0x4f1b7f(_0x24dc5f):_0xf34f97>0x3?_0x4f1b7f(_0x2bc677,_0x408c17,_0x24dc5f):_0x4f1b7f(_0x2bc677,_0x408c17))||_0x24dc5f);}return _0xf34f97>0x3&&_0x24dc5f&&Object[_0xb63aa(0x19a)](_0x2bc677,_0x408c17,_0x24dc5f),_0x24dc5f;}let $=class extends _0x23a329{constructor(_0x328372=Z,_0x23b94c,_0x15efc2,_0x554d0f){const _0x3e6b0f=_0x43396f;super(),this[_0x3e6b0f(0x1ae)]=_0x328372,this['_injector']=_0x23b94c,this['_commandService']=_0x15efc2,this[_0x3e6b0f(0x1c1)]=_0x554d0f;let {..._0x2cd050}=_0x488fc2({},Z,this['_config']);this[_0x3e6b0f(0x1c1)][_0x3e6b0f(0x1a7)](_0x3e6b0f(0x1a0),_0x2cd050);}[_0x43396f(0x19f)](){const _0x493d37=_0x43396f;[[X,{'useClass':Te}]][_0x493d37(0x19e)](_0x1a4d5e=>this['_injector'][_0x493d37(0x194)](_0x1a4d5e)),this[_0x493d37(0x1d3)](this[_0x493d37(0x1a5)][_0x493d37(0x1a9)](Ee));}};Y($,_0x43396f(0x1b2),_0x43396f(0x1bd)),Y($,_0x43396f(0x1d6),Se),Y($,_0x43396f(0x1b8),Ce),Y($,_0x43396f(0x1a3),_0x4b2236[_0x43396f(0x193)]),$=De([_0x40586b(_0x5cf441),Q(0x1,_0x4a0035(_0x5e60e7)),Q(0x2,_0x1fafaa),Q(0x3,_0x214ca1)],$);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 _0x428ca5=_0x34f4;(function(_0x2a7a23,_0x31913){const _0x260a18=_0x34f4,_0x10d146=_0x2a7a23();while(!![]){try{const _0x27909c=parseInt(_0x260a18(0x110))/0x1+-parseInt(_0x260a18(0xe3))/0x2*(parseInt(_0x260a18(0xfe))/0x3)+-parseInt(_0x260a18(0xda))/0x4*(parseInt(_0x260a18(0x12d))/0x5)+-parseInt(_0x260a18(0xe2))/0x6+parseInt(_0x260a18(0xeb))/0x7*(parseInt(_0x260a18(0xd8))/0x8)+parseInt(_0x260a18(0x10a))/0x9+-parseInt(_0x260a18(0xfb))/0xa*(parseInt(_0x260a18(0xfa))/0xb);if(_0x27909c===_0x31913)break;else _0x10d146['push'](_0x10d146['shift']());}catch(_0x4c031b){_0x10d146['push'](_0x10d146['shift']());}}}(_0x52c8,0x6d5e7));import{ShapeFillEnum as _0x1da015,ShapeLineCapEnum as _0x1d6166,ShapeLineJoinEnum as _0x439b44,ShapeLineTypeEnum as _0x5d98d2,ShapeTypeEnum as _0x9ecee9}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x44e568}from'@univerjs-pro/license';import{CommandType as _0x262274,DependentOn as _0x51330d,ICommandService as _0x2a482d,IConfigService as _0x37a4f2,Inject as _0x89bb4c,Injector as _0x169e64,Plugin as _0xd5747,UniverInstanceType as _0x57679c,createIdentifier as _0x290056,merge as _0x18dd0a,toDisposable as _0x243018}from'@univerjs/core';const g=0.0001;function _(_0x27b282){return{'x':_0x27b282['x'],'y':_0x27b282['y']};}function v(_0x431c4c){const _0x883d89=_0x34f4;return{..._0x431c4c,'in':_0x431c4c['in']?_(_0x431c4c['in']):void 0x0,'out':_0x431c4c[_0x883d89(0xe0)]?_(_0x431c4c[_0x883d89(0xe0)]):void 0x0};}function y(_0x30f9af){const _0x81267=_0x34f4;return{'kind':_0x81267(0x11e),'closed':_0x30f9af['closed'],'anchors':_0x30f9af[_0x81267(0x10d)][_0x81267(0xee)](v)};}function b(_0x4d4208,_0x3e6b00,_0x52e7c8){return{'x':_0x4d4208['x']+(_0x3e6b00['x']-_0x4d4208['x'])*_0x52e7c8,'y':_0x4d4208['y']+(_0x3e6b00['y']-_0x4d4208['y'])*_0x52e7c8};}function x(_0x2a10b2,_0x3bb84f){return Math['hypot'](_0x2a10b2['x']-_0x3bb84f['x'],_0x2a10b2['y']-_0x3bb84f['y']);}function S(_0x2ccd49){const _0x117a1c=_0x34f4;let _0x450be1=Math[_0x117a1c(0xf8)](_0x2ccd49['x'],_0x2ccd49['y']);return _0x450be1<g?{'x':0x1,'y':0x0}:{'x':_0x2ccd49['x']/_0x450be1,'y':_0x2ccd49['y']/_0x450be1};}function C(_0x39245c,_0x29e9a6,_0x3dc761=x(_0x39245c,_0x29e9a6)){let _0x264866=S({'x':_0x39245c['x']-_0x29e9a6['x'],'y':_0x39245c['y']-_0x29e9a6['y']});return{'x':_0x39245c['x']+_0x264866['x']*_0x3dc761,'y':_0x39245c['y']+_0x264866['y']*_0x3dc761};}function w(_0x27668a,_0x1d36d9){const _0x1c27a0=_0x34f4;let {anchors:_0x5bbda3}=_0x27668a;return _0x5bbda3['length']<0x2||_0x1d36d9<0x0?null:_0x1d36d9<_0x5bbda3[_0x1c27a0(0x12a)]-0x1?{'startIndex':_0x1d36d9,'endIndex':_0x1d36d9+0x1,'start':_0x5bbda3[_0x1d36d9],'end':_0x5bbda3[_0x1d36d9+0x1]}:_0x27668a[_0x1c27a0(0x108)]&&_0x1d36d9===_0x5bbda3['length']-0x1?{'startIndex':_0x5bbda3[_0x1c27a0(0x12a)]-0x1,'endIndex':0x0,'start':_0x5bbda3[_0x5bbda3[_0x1c27a0(0x12a)]-0x1],'end':_0x5bbda3[0x0]}:null;}function T(_0x453668,_0x323623){const _0x78facb=_0x34f4;let _0x4e1ef=w(_0x453668,_0x323623);return _0x4e1ef?[_0x4e1ef[_0x78facb(0x124)],_0x4e1ef[_0x78facb(0x124)][_0x78facb(0xe0)]??_0x4e1ef[_0x78facb(0x124)],_0x4e1ef['end']['in']??_0x4e1ef['end'],_0x4e1ef['end']]:null;}function te(_0x54f12d,_0x2a6d24){const _0x4e4746=_0x34f4;return _0x2a6d24===_0x4e4746(0xea)?_0x54f12d:_0x54f12d[_0x2a6d24]??null;}function E(_0x2c0d7b,_0x1c2156,_0x987321){const _0x480e84=_0x34f4;return _0x987321==='anchor'||_0x2c0d7b[_0x480e84(0x108)]?!0x0:_0x987321==='in'?_0x1c2156>0x0:_0x1c2156<_0x2c0d7b[_0x480e84(0x10d)][_0x480e84(0x12a)]-0x1;}function D(_0x45a996,_0x18502e){let [_0x7d9f2a,_0x14ed0d,_0x28ff51,_0x17141f]=_0x45a996,_0x134544=b(_0x7d9f2a,_0x14ed0d,_0x18502e),_0x1cb0c6=b(_0x14ed0d,_0x28ff51,_0x18502e),_0x435df4=b(_0x28ff51,_0x17141f,_0x18502e);return b(b(_0x134544,_0x1cb0c6,_0x18502e),b(_0x1cb0c6,_0x435df4,_0x18502e),_0x18502e);}function ne(_0x4b840c,_0x4f08c5){let [_0x44fe60,_0x1e1f40,_0x5b764a,_0x3584c8]=_0x4b840c,_0x116aac=b(_0x44fe60,_0x1e1f40,_0x4f08c5),_0x4567c5=b(_0x1e1f40,_0x5b764a,_0x4f08c5),_0x1eb00a=b(_0x5b764a,_0x3584c8,_0x4f08c5),_0x936904=b(_0x116aac,_0x4567c5,_0x4f08c5),_0x158a9c=b(_0x4567c5,_0x1eb00a,_0x4f08c5),_0x2c43b4=b(_0x936904,_0x158a9c,_0x4f08c5);return{'left':[_0x44fe60,_0x116aac,_0x936904,_0x2c43b4],'right':[_0x2c43b4,_0x158a9c,_0x1eb00a,_0x3584c8]};}function O(_0x1d0fd8,_0x7fd4d1,_0x4f42a8){const _0x43b7c8=_0x34f4;let _0x442bcf=_0x4f42a8['x']-_0x7fd4d1['x'],_0x3b7125=_0x4f42a8['y']-_0x7fd4d1['y'],_0x4b7eab=_0x442bcf*_0x442bcf+_0x3b7125*_0x3b7125,_0x498553=_0x4b7eab<=g?0x0:Math[_0x43b7c8(0x117)](0x0,Math[_0x43b7c8(0x122)](0x1,((_0x1d0fd8['x']-_0x7fd4d1['x'])*_0x442bcf+(_0x1d0fd8['y']-_0x7fd4d1['y'])*_0x3b7125)/_0x4b7eab)),_0x1c3f29={'x':_0x7fd4d1['x']+_0x442bcf*_0x498553,'y':_0x7fd4d1['y']+_0x3b7125*_0x498553};return{'point':_0x1c3f29,'ratio':_0x498553,'distance':x(_0x1d0fd8,_0x1c3f29)};}function re(_0x372356,_0x3553c7,_0x378449){return O(_0x372356,_0x3553c7,_0x378449)['distance']**0x2;}function k(_0x58cee5,_0x21c3f2){const _0x57b922=_0x34f4;if(_0x58cee5['length']<=0x2)return _0x58cee5[_0x57b922(0xee)](_);let _0x23f24e=0x0,_0x3cd684=0x0,_0x3afcc2=_0x58cee5[0x0],_0x111975=_0x58cee5[_0x58cee5[_0x57b922(0x12a)]-0x1],_0x5008e2=_0x21c3f2*_0x21c3f2;for(let _0x291ff6=0x1;_0x291ff6<_0x58cee5[_0x57b922(0x12a)]-0x1;_0x291ff6++){let _0x541f44=re(_0x58cee5[_0x291ff6],_0x3afcc2,_0x111975);_0x541f44>_0x23f24e&&(_0x23f24e=_0x541f44,_0x3cd684=_0x291ff6);}if(_0x23f24e<=_0x5008e2)return[_(_0x3afcc2),_(_0x111975)];let _0x141c65=k(_0x58cee5[_0x57b922(0x10f)](0x0,_0x3cd684+0x1),_0x21c3f2),_0x3c37f4=k(_0x58cee5[_0x57b922(0x10f)](_0x3cd684),_0x21c3f2);return[..._0x141c65[_0x57b922(0x10f)](0x0,-0x1),..._0x3c37f4];}function ie(_0x4859fe,_0x402e47){let _0x4e8a1f=_0x4859fe[_0x402e47],_0x2f919e=_0x4859fe[_0x402e47+0x1],_0x4360ad=_0x4859fe[_0x402e47-0x1]??_0x4e8a1f;return{'x':_0x4e8a1f['x']+(_0x2f919e['x']-_0x4360ad['x'])/0x6,'y':_0x4e8a1f['y']+(_0x2f919e['y']-_0x4360ad['y'])/0x6};}function A(_0x4c6a6f,_0x2fc288){let _0x3b1753=_0x4c6a6f[_0x2fc288],_0x179780=_0x4c6a6f[_0x2fc288-0x1],_0x2a1585=_0x4c6a6f[_0x2fc288+0x1]??_0x3b1753;return{'x':_0x3b1753['x']-(_0x2a1585['x']-_0x179780['x'])/0x6,'y':_0x3b1753['y']-(_0x2a1585['y']-_0x179780['y'])/0x6};}function j(_0x4a36b8,_0xfc973e){const _0x3ef262=_0x34f4;let _0x408436=_0x4a36b8['anchors'][_0xfc973e],_0x385c1d=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e-0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][_0x4a36b8[_0x3ef262(0x10d)][_0x3ef262(0x12a)]-0x1]:null),_0x45ef95=_0x4a36b8[_0x3ef262(0x10d)][_0xfc973e+0x1]??(_0x4a36b8[_0x3ef262(0x108)]?_0x4a36b8[_0x3ef262(0x10d)][0x0]:null),_0x5ec821=_0x385c1d&&_0x45ef95?S({'x':_0x45ef95['x']-_0x385c1d['x'],'y':_0x45ef95['y']-_0x385c1d['y']}):_0x45ef95?S({'x':_0x45ef95['x']-_0x408436['x'],'y':_0x45ef95['y']-_0x408436['y']}):_0x385c1d?S({'x':_0x408436['x']-_0x385c1d['x'],'y':_0x408436['y']-_0x385c1d['y']}):{'x':0x1,'y':0x0},_0x5f131d=_0x385c1d&&_0x45ef95?Math[_0x3ef262(0x117)](0x32,x(_0x385c1d,_0x45ef95)/0x4):0x32;return{'in':{'x':_0x408436['x']-_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']-_0x5ec821['y']*_0x5f131d},'out':{'x':_0x408436['x']+_0x5ec821['x']*_0x5f131d,'y':_0x408436['y']+_0x5ec821['y']*_0x5f131d}};}function M(_0x306e91,_0x31c41f){const _0x352b83=_0x34f4;let _0x55aadc=_0x306e91[_0x31c41f],_0x4753ca=_0x31c41f==='in'?_0x352b83(0xe0):'in',_0x1ec864=_0x306e91[_0x4753ca];_0x55aadc&&(_0x306e91[_0x352b83(0xf4)]==='symmetric'?_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc):_0x306e91['pointType']===_0x352b83(0xe4)&&(_0x306e91[_0x4753ca]=C(_0x306e91,_0x55aadc,_0x1ec864?x(_0x306e91,_0x1ec864):x(_0x306e91,_0x55aadc))));}function ae(_0x43dc20,_0x5524fd){const _0x394a11=_0x34f4;let _0x39a7c5=y(_0x43dc20);return!_0x5524fd||_0x39a7c5[_0x394a11(0x108)]||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x12a)]===0x0||_0x39a7c5[_0x394a11(0x10d)][_0x394a11(0x103)]({'id':_0x394a11(0x104),'x':_0x5524fd['x'],'y':_0x5524fd['y'],'pointType':_0x394a11(0xd9)}),_0x39a7c5;}function oe(_0x1fec87,_0x232b16={}){const _0xfda3a7=_0x34f4;let _0x8b2347=Math['max'](0x0,_0x232b16[_0xfda3a7(0x121)]??Math[_0xfda3a7(0x117)](0x4,_0x1fec87[_0xfda3a7(0x119)]*0.35)),_0x25c45c=_0x232b16[_0xfda3a7(0xe1)]??(_0x52abb0=>_0xfda3a7(0x137)+_0x52abb0),_0x504278=k(_0x1fec87[_0xfda3a7(0x128)],_0x8b2347),_0x34fa42=_0x504278[_0xfda3a7(0xee)]((_0x4518c2,_0x37a0e2)=>({'id':_0x25c45c(_0x37a0e2),'x':_0x4518c2['x'],'y':_0x4518c2['y'],'pointType':'free'}));for(let _0x321446=0x0;_0x321446<_0x34fa42[_0xfda3a7(0x12a)]-0x1;_0x321446++)_0x34fa42[_0x321446][_0xfda3a7(0xe0)]=ie(_0x504278,_0x321446),_0x34fa42[_0x321446+0x1]['in']=A(_0x504278,_0x321446+0x1);return{'kind':_0xfda3a7(0x11e),'closed':!0x1,'anchors':_0x34fa42};}function se(_0x34b1f9,_0x4088be,_0x4fddd7){const _0x4c0499=_0x34f4;let _0x51ff5c=null,_0x2b5849=[_0x4c0499(0xea),'in',_0x4c0499(0xe0)];return _0x34b1f9[_0x4c0499(0x10d)][_0x4c0499(0x11d)]((_0x564231,_0xd3da6d)=>{const _0xc12a21=_0x4c0499;_0x2b5849[_0xc12a21(0x11d)](_0x32295d=>{const _0x19ff1a=_0xc12a21;if(!E(_0x34b1f9,_0xd3da6d,_0x32295d))return;let _0x1fe30f=te(_0x564231,_0x32295d);if(!_0x1fe30f)return;let _0x3a9f94=x(_0x4088be,_0x1fe30f);_0x3a9f94>_0x4fddd7||_0x51ff5c&&_0x3a9f94>=_0x51ff5c[_0x19ff1a(0x11f)]||(_0x51ff5c={'handle':{'kind':_0x32295d,'anchorId':_0x564231['id']},'point':_(_0x1fe30f),'distance':_0x3a9f94});});}),_0x51ff5c;}function ce(_0x390141,_0x3ad76e,_0x25b80d){const _0xdce4e7=_0x34f4;let _0x1ed56d=null,_0x15bbb7=_0x390141[_0xdce4e7(0x108)]?_0x390141[_0xdce4e7(0x10d)]['length']:Math[_0xdce4e7(0x117)](0x0,_0x390141['anchors'][_0xdce4e7(0x12a)]-0x1);for(let _0x2b6fd5=0x0;_0x2b6fd5<_0x15bbb7;_0x2b6fd5++){let _0x788af=T(_0x390141,_0x2b6fd5);if(!_0x788af)continue;let _0x350714=D(_0x788af,0x0);for(let _0x2d3625=0x1;_0x2d3625<=0x20;_0x2d3625++){let _0x1bd4bd=D(_0x788af,_0x2d3625/0x20),_0x23b51d=O(_0x3ad76e,_0x350714,_0x1bd4bd),_0x308ec8=(_0x2d3625-0x1+_0x23b51d[_0xdce4e7(0x127)])/0x20;(!_0x1ed56d||_0x23b51d[_0xdce4e7(0x11f)]<_0x1ed56d[_0xdce4e7(0x11f)])&&(_0x1ed56d={'segmentIndex':_0x2b6fd5,'t':_0x308ec8,'point':_0x23b51d[_0xdce4e7(0xef)],'distance':_0x23b51d[_0xdce4e7(0x11f)]}),_0x350714=_0x1bd4bd;}}return _0x1ed56d&&_0x1ed56d['distance']<=_0x25b80d?_0x1ed56d:null;}function le(_0x5bc239,_0x4f122a,_0x2b6c37){const _0x32ea0b=_0x34f4;let _0x15a416=y(_0x5bc239),_0x57a4df=w(_0x15a416,_0x4f122a['segmentIndex']),_0x4c00ef=T(_0x15a416,_0x4f122a[_0x32ea0b(0xdb)]);if(!_0x57a4df||!_0x4c00ef)return _0x15a416;let _0x593c5a=ne(_0x4c00ef,Math[_0x32ea0b(0x117)](0x0,Math[_0x32ea0b(0x122)](0x1,_0x4f122a['t']))),_0x60809d={'id':_0x2b6c37(),'x':_0x593c5a['left'][0x3]['x'],'y':_0x593c5a[_0x32ea0b(0x134)][0x3]['y'],'in':_(_0x593c5a[_0x32ea0b(0x134)][0x2]),'out':_(_0x593c5a['right'][0x1]),'pointType':_0x32ea0b(0xf3)};return _0x15a416['anchors'][_0x57a4df[_0x32ea0b(0xf5)]][_0x32ea0b(0xe0)]=_(_0x593c5a['left'][0x1]),_0x15a416[_0x32ea0b(0x10d)][_0x57a4df[_0x32ea0b(0xff)]]['in']=_(_0x593c5a['right'][0x2]),_0x15a416[_0x32ea0b(0x10d)]['splice'](_0x57a4df[_0x32ea0b(0xf5)]+0x1,0x0,_0x60809d),_0x15a416;}function ue(_0x4325f9,_0x493098){const _0x336d8a=_0x34f4;let _0x6189dc=y(_0x4325f9);return _0x6189dc[_0x336d8a(0x10d)]=_0x6189dc['anchors'][_0x336d8a(0x101)](_0x2b6b93=>_0x2b6b93['id']!==_0x493098),_0x6189dc['closed']&&_0x6189dc[_0x336d8a(0x10d)][_0x336d8a(0x12a)]<0x3&&(_0x6189dc[_0x336d8a(0x108)]=!0x1),_0x6189dc;}function N(_0x22c8c1,_0x3b73ef,_0x45512e){const _0x3ce140=_0x34f4;let _0x33b10e=y(_0x22c8c1),_0x4b5cc8=_0x33b10e[_0x3ce140(0x10d)][_0x3ce140(0x120)](_0x1adcac=>_0x1adcac['id']===_0x3b73ef),_0x213548=_0x33b10e[_0x3ce140(0x10d)][_0x4b5cc8];if(!_0x213548)return _0x33b10e;if(_0x213548[_0x3ce140(0xf4)]=_0x45512e,_0x45512e==='corner')return delete _0x213548['in'],delete _0x213548[_0x3ce140(0xe0)],_0x33b10e;let _0x3ebc64=j(_0x33b10e,_0x4b5cc8);if(_0x213548['in']=_0x213548['in']?_(_0x213548['in']):_0x3ebc64['in'],_0x213548[_0x3ce140(0xe0)]=_0x213548[_0x3ce140(0xe0)]?_(_0x213548[_0x3ce140(0xe0)]):_0x3ebc64[_0x3ce140(0xe0)],_0x45512e===_0x3ce140(0xf1)){let _0x15ebff=Math[_0x3ce140(0x117)](x(_0x213548,_0x213548['in']),x(_0x213548,_0x213548[_0x3ce140(0xe0)]),0x32),_0x19f882=S({'x':_0x213548[_0x3ce140(0xe0)]['x']-_0x213548['x'],'y':_0x213548[_0x3ce140(0xe0)]['y']-_0x213548['y']});_0x213548[_0x3ce140(0xe0)]={'x':_0x213548['x']+_0x19f882['x']*_0x15ebff,'y':_0x213548['y']+_0x19f882['y']*_0x15ebff},_0x213548['in']={'x':_0x213548['x']-_0x19f882['x']*_0x15ebff,'y':_0x213548['y']-_0x19f882['y']*_0x15ebff};}else _0x45512e===_0x3ce140(0xe4)&&M(_0x213548,'out');return _0x33b10e;}function P(_0x33e8b3,_0x148f3e){const _0x219cab=_0x34f4;let _0x7e6e61=_0x33e8b3[_0x219cab(0x10d)]['find'](_0x6c5a17=>_0x6c5a17['id']===_0x148f3e),_0x36fac9=(_0x7e6e61==null?void 0x0:_0x7e6e61[_0x219cab(0xf4)])??'corner';return N(_0x33e8b3,_0x148f3e,_0x36fac9===_0x219cab(0xd9)?_0x219cab(0xe4):_0x36fac9===_0x219cab(0xe4)?'symmetric':_0x36fac9==='symmetric'?_0x219cab(0xf3):_0x219cab(0xd9));}function F(_0x503e20,_0x11c996,_0x26c33f){const _0x36686e=_0x34f4;let _0x22bade=y(_0x503e20),_0x45fb1f=_0x22bade['anchors']['find'](_0x2c568d=>_0x2c568d['id']===_0x11c996[_0x36686e(0x130)]);if(!_0x45fb1f)return _0x22bade;if(_0x11c996['kind']==='anchor'){let _0xa24b27={'x':_0x26c33f['x']-_0x45fb1f['x'],'y':_0x26c33f['y']-_0x45fb1f['y']};return _0x45fb1f['x']=_0x26c33f['x'],_0x45fb1f['y']=_0x26c33f['y'],_0x45fb1f['in']&&={'x':_0x45fb1f['in']['x']+_0xa24b27['x'],'y':_0x45fb1f['in']['y']+_0xa24b27['y']},_0x45fb1f[_0x36686e(0xe0)]&&={'x':_0x45fb1f['out']['x']+_0xa24b27['x'],'y':_0x45fb1f[_0x36686e(0xe0)]['y']+_0xa24b27['y']},_0x22bade;}return _0x45fb1f[_0x11c996[_0x36686e(0x116)]]=_(_0x26c33f),_0x45fb1f[_0x36686e(0xf4)]===_0x36686e(0xd9)&&(_0x45fb1f[_0x36686e(0xf4)]=_0x36686e(0xf3)),M(_0x45fb1f,_0x11c996['kind']),_0x22bade;}const I=1e-9;function L(_0x316173){const _0x3fdc01=_0x34f4;let _0x1e2988=Math[_0x3fdc01(0xdd)](_0x316173*0x2710)/0x2710;return Object['is'](_0x1e2988,-0x0)?'0':String(_0x1e2988);}function R(_0x30f47a){return L(_0x30f47a['x'])+'\x20'+L(_0x30f47a['y']);}function z(_0x138692,_0x45873d){return{'x':_0x138692['x']-_0x45873d['x'],'y':_0x138692['y']-_0x45873d['y']};}function B(_0x4c1a8d,_0x4cd957,_0x58c479,_0xf43e63,_0x30b59b){let _0xe881cf=0x1-_0x30b59b;return{'x':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['x']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['x']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['x']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['x'],'y':_0xe881cf*_0xe881cf*_0xe881cf*_0x4c1a8d['y']+0x3*_0xe881cf*_0xe881cf*_0x30b59b*_0x4cd957['y']+0x3*_0xe881cf*_0x30b59b*_0x30b59b*_0x58c479['y']+_0x30b59b*_0x30b59b*_0x30b59b*_0xf43e63['y']};}function V(_0x477b29,_0x228058,_0x45e47c,_0x3a8d6f){const _0x4cf181=_0x34f4;let _0x1a9c1e=-_0x477b29+0x3*_0x228058-0x3*_0x45e47c+_0x3a8d6f,_0x35db16=0x3*_0x477b29-0x6*_0x228058+0x3*_0x45e47c,_0x277b3f=-0x3*_0x477b29+0x3*_0x228058,_0x560894=[];if(Math['abs'](_0x1a9c1e)<I){if(Math[_0x4cf181(0x12c)](_0x35db16)<I)return _0x560894;let _0x4f70cc=-_0x277b3f/(0x2*_0x35db16);return _0x4f70cc>0x0&&_0x4f70cc<0x1&&_0x560894[_0x4cf181(0x103)](_0x4f70cc),_0x560894;}let _0x228231=_0x35db16*_0x35db16-0x3*_0x1a9c1e*_0x277b3f;if(_0x228231<0x0)return _0x560894;let _0x207192=Math[_0x4cf181(0x115)](Math[_0x4cf181(0x117)](0x0,_0x228231)),_0x28d17f=(-_0x35db16+_0x207192)/(0x3*_0x1a9c1e),_0x2c24ee=(-_0x35db16-_0x207192)/(0x3*_0x1a9c1e);return _0x28d17f>0x0&&_0x28d17f<0x1&&_0x560894[_0x4cf181(0x103)](_0x28d17f),_0x2c24ee>0x0&&_0x2c24ee<0x1&&Math['abs'](_0x2c24ee-_0x28d17f)>I&&_0x560894['push'](_0x2c24ee),_0x560894;}function H(_0x3aee92,_0x547328,_0xede317,_0x3b069e,_0x4a7deb){const _0x4b31cf=_0x34f4;_0x3aee92['push'](_0x547328,_0x4a7deb),new Set([...V(_0x547328['x'],_0xede317['x'],_0x3b069e['x'],_0x4a7deb['x']),...V(_0x547328['y'],_0xede317['y'],_0x3b069e['y'],_0x4a7deb['y'])])[_0x4b31cf(0x11d)](_0x5b2cd4=>{const _0x41f62c=_0x4b31cf;_0x3aee92[_0x41f62c(0x103)](B(_0x547328,_0xede317,_0x3b069e,_0x4a7deb,_0x5b2cd4));});}function U(_0x54afda){const _0x46e478=_0x34f4;let _0x6c6ede=_0x54afda[_0x46e478(0x10d)];if(_0x6c6ede['length']<=0x1)return _0x6c6ede;let _0x3fdd37=[];for(let _0x1a1146=0x1;_0x1a1146<_0x6c6ede[_0x46e478(0x12a)];_0x1a1146++){let _0x489591=_0x6c6ede[_0x1a1146-0x1],_0x3cc97d=_0x6c6ede[_0x1a1146];H(_0x3fdd37,_0x489591,_0x489591[_0x46e478(0xe0)]??_0x489591,_0x3cc97d['in']??_0x3cc97d,_0x3cc97d);}if(_0x54afda['closed']&&_0x6c6ede[_0x46e478(0x12a)]>0x1){let _0x3b1d90=_0x6c6ede[_0x6c6ede[_0x46e478(0x12a)]-0x1],_0x3f57f2=_0x6c6ede[0x0];H(_0x3fdd37,_0x3b1d90,_0x3b1d90[_0x46e478(0xe0)]??_0x3b1d90,_0x3f57f2['in']??_0x3f57f2,_0x3f57f2);}return _0x3fdd37;}function _0x52c8(){const _0x76cf91=['filter','get','push','__ink-preview-anchor__','UNIVER_INK_PLUGIN','_configService','registerAdapter','closed','setConfig','4022361aXPNCP','constructor','join','anchors','tool','slice','609368TWjUjx','#f54a45','ink.host-adapter.service','defineProperty','_adapters','sqrt','kind','max','type','width','function','version','Round','forEach','pen','distance','findIndex','tolerance','min','UNIVER_UNKNOWN','start','NoFill','top','ratio','points','_config','length','add','abs','3048620mYeYQA','object','SolidLine','anchorId','beginInkMode','Rect','_injector','left','registerCommand','opacity','ink-centerline-','color','2303144HOQZqG','corner','4dWDJXS','segmentIndex','createCustomShape','round','fillColor','indexOf','out','createId','270570UNustx','6vJljhz','smooth','OPERATION','iterator','symbol','onStarting','_commandService','anchor','21DRreEN','norm','default','map','point','@univerjs-pro/ink','symmetric','pluginName','free','pointType','startIndex','call','toPrimitive','hypot','decorate','165xyvoOf','527570QNkJgH','string','SolidFill','25827VLBpok','endIndex','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.'];_0x52c8=function(){return _0x76cf91;};return _0x52c8();}function de(_0x4efe31){const _0x25ae24=_0x34f4;let _0xdd7256=_0x4efe31[_0x25ae24(0x128)];if(_0xdd7256['length']<=0x1)return _0xdd7256;let _0x5eeb13=[];for(let _0x15e3cc=0x0;_0x15e3cc<_0xdd7256[_0x25ae24(0x12a)]-0x1;_0x15e3cc++){let _0x5a040a=_0xdd7256[_0x15e3cc],_0x195462=_0xdd7256[_0x15e3cc+0x1],_0x376e68=_0xdd7256[_0x15e3cc-0x1]??_0x5a040a,_0x797bc8=_0xdd7256[_0x15e3cc+0x2]??_0x195462;H(_0x5eeb13,_0x5a040a,{'x':_0x5a040a['x']+(_0x195462['x']-_0x376e68['x'])/0x6,'y':_0x5a040a['y']+(_0x195462['y']-_0x376e68['y'])/0x6},{'x':_0x195462['x']-(_0x797bc8['x']-_0x5a040a['x'])/0x6,'y':_0x195462['y']-(_0x797bc8['y']-_0x5a040a['y'])/0x6},_0x195462);}return _0x5eeb13;}function fe(_0xab68b6){const _0x23ecf7=_0x34f4;return _0xab68b6[_0x23ecf7(0x116)]===_0x23ecf7(0x11e)?U(_0xab68b6):de(_0xab68b6);}function W(_0x443cb5){const _0x321b68=_0x34f4;let _0x2579a4=Math[_0x321b68(0xdd)](_0x443cb5*0x2710)/0x2710;return Object['is'](_0x2579a4,-0x0)?0x0:_0x2579a4;}function G(_0x3b9fa2){const _0x5c99f1=_0x34f4;let _0x1ab821=fe(_0x3b9fa2);if(_0x1ab821[_0x5c99f1(0x12a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x575ca7=Math[_0x5c99f1(0x122)](..._0x1ab821['map'](_0x1388dd=>_0x1388dd['x'])),_0xa8cf0a=Math[_0x5c99f1(0x122)](..._0x1ab821[_0x5c99f1(0xee)](_0x131eb9=>_0x131eb9['y'])),_0x3cce5b=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0x552835=>_0x552835['x'])),_0xc38b2f=Math[_0x5c99f1(0x117)](..._0x1ab821[_0x5c99f1(0xee)](_0xa50978=>_0xa50978['y']));return{'left':W(_0x575ca7),'top':W(_0xa8cf0a),'width':W(Math[_0x5c99f1(0x117)](0x1,_0x3cce5b-_0x575ca7)),'height':W(Math[_0x5c99f1(0x117)](0x1,_0xc38b2f-_0xa8cf0a))};}function pe(_0x47ce6a,_0x3f853b){const _0xdf60a0=_0x34f4;let _0x2940d7=_0x47ce6a[_0xdf60a0(0x10d)];if(_0x2940d7[_0xdf60a0(0x12a)]===0x0)return'';let _0x5bfc23=['M\x20'+R(z(_0x2940d7[0x0],_0x3f853b))];for(let _0x218845=0x1;_0x218845<_0x2940d7[_0xdf60a0(0x12a)];_0x218845++){let _0x442260=_0x2940d7[_0x218845-0x1],_0x25963b=_0x2940d7[_0x218845],_0xfde85b=_0x442260[_0xdf60a0(0xe0)]??_0x442260,_0x20e037=_0x25963b['in']??_0x25963b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0xfde85b,_0x3f853b))+'\x20'+R(z(_0x20e037,_0x3f853b))+'\x20'+R(z(_0x25963b,_0x3f853b)));}if(_0x47ce6a[_0xdf60a0(0x108)]&&_0x2940d7[_0xdf60a0(0x12a)]>0x1){let _0x5eec34=_0x2940d7[_0x2940d7[_0xdf60a0(0x12a)]-0x1],_0x1e336b=_0x2940d7[0x0],_0x268fdb=_0x5eec34[_0xdf60a0(0xe0)]??_0x5eec34,_0x327d8f=_0x1e336b['in']??_0x1e336b;_0x5bfc23[_0xdf60a0(0x103)]('C\x20'+R(z(_0x268fdb,_0x3f853b))+'\x20'+R(z(_0x327d8f,_0x3f853b))+'\x20'+R(z(_0x1e336b,_0x3f853b))),_0x5bfc23[_0xdf60a0(0x103)]('Z');}return _0x5bfc23['join']('\x20');}function me(_0x2286c5,_0x514df1){const _0x1329ec=_0x34f4;let _0x1a4cdd=_0x2286c5[_0x1329ec(0x128)][_0x1329ec(0xee)](_0x5dd520=>z(_0x5dd520,_0x514df1));if(_0x1a4cdd[_0x1329ec(0x12a)]===0x0)return'';if(_0x1a4cdd[_0x1329ec(0x12a)]===0x1)return'M\x20'+R(_0x1a4cdd[0x0]);let _0x176bc8=['M\x20'+R(_0x1a4cdd[0x0])];for(let _0x484957=0x0;_0x484957<_0x1a4cdd[_0x1329ec(0x12a)]-0x1;_0x484957++){let _0x34e444=_0x1a4cdd[_0x484957],_0x25c020=_0x1a4cdd[_0x484957+0x1],_0x364a2e=_0x1a4cdd[_0x484957-0x1]??_0x34e444,_0x52a160=_0x1a4cdd[_0x484957+0x2]??_0x25c020,_0x5a38f3={'x':_0x34e444['x']+(_0x25c020['x']-_0x364a2e['x'])/0x6,'y':_0x34e444['y']+(_0x25c020['y']-_0x364a2e['y'])/0x6},_0x39d47d={'x':_0x25c020['x']-(_0x52a160['x']-_0x34e444['x'])/0x6,'y':_0x25c020['y']-(_0x52a160['y']-_0x34e444['y'])/0x6};_0x176bc8[_0x1329ec(0x103)]('C\x20'+R(_0x5a38f3)+'\x20'+R(_0x39d47d)+'\x20'+R(_0x25c020));}return _0x176bc8[_0x1329ec(0x10c)]('\x20');}function he(_0x13cbc0,_0x2e3dec){const _0x16f932=_0x34f4;return _0x13cbc0[_0x16f932(0x116)]===_0x16f932(0x11e)?pe(_0x13cbc0,_0x2e3dec):me(_0x13cbc0,_0x2e3dec);}function ge(_0xd354bc,_0x13c795){const _0x5c6286=_0x34f4;return _0x13c795!=null&&_0x13c795[_0x5c6286(0xd7)]?_0x13c795[_0x5c6286(0xd7)]:_0xd354bc[_0x5c6286(0x116)]===_0x5c6286(0x11e)?_0x5c6286(0x111):_0xd354bc[_0x5c6286(0xd7)];}function _e(_0x2fbc46,_0x47747b){const _0x1184ee=_0x34f4;return(_0x47747b==null?void 0x0:_0x47747b[_0x1184ee(0x119)])===void 0x0?_0x2fbc46[_0x1184ee(0x116)]==='pen'?0x2:_0x2fbc46[_0x1184ee(0x119)]:_0x47747b[_0x1184ee(0x119)];}function ve(_0x34506b,_0x456df7){const _0x223312=_0x34f4;return(_0x456df7==null?void 0x0:_0x456df7['opacity'])===void 0x0?_0x34506b['kind']==='pen'?void 0x0:_0x34506b[_0x223312(0x136)]:_0x456df7[_0x223312(0x136)];}function _0x34f4(_0x5e8668,_0x548cb6){_0x5e8668=_0x5e8668-0xd7;const _0x52c89a=_0x52c8();let _0x34f490=_0x52c89a[_0x5e8668];return _0x34f490;}function ye(_0x317f66,_0x1eb63f){const _0x5910ef=_0x34f4;let _0x229974=G(_0x317f66),_0x52ec0f=he(_0x317f66,{'x':_0x229974['left'],'y':_0x229974[_0x5910ef(0x126)]}),_0x46fbf9=_0x317f66[_0x5910ef(0x116)]===_0x5910ef(0x11e)&&_0x317f66[_0x5910ef(0x108)],_0x390cf7=_0x1eb63f==null?void 0x0:_0x1eb63f[_0x5910ef(0xde)];return{'shapeType':_0x9ecee9[_0x5910ef(0x132)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x229974[_0x5910ef(0x119)],'h':_0x229974['height'],'fill':_0x46fbf9?_0x5910ef(0xec):'none','stroke':!0x0,'data':_0x52ec0f,'dataArray':be(_0x317f66,{'x':_0x229974[_0x5910ef(0x134)],'y':_0x229974[_0x5910ef(0x126)]})}]},'fill':_0x46fbf9&&_0x390cf7?{'color':_0x390cf7,'fillType':_0x1da015[_0x5910ef(0xfd)]}:{'fillType':_0x1da015[_0x5910ef(0x125)]},'stroke':{'color':ge(_0x317f66,_0x1eb63f),'width':_e(_0x317f66,_0x1eb63f),'opacity':ve(_0x317f66,_0x1eb63f),'lineStrokeType':_0x5d98d2[_0x5910ef(0x12f)],'capType':_0x1d6166[_0x5910ef(0x11c)],'lineJoinType':_0x439b44[_0x5910ef(0x11c)]}};}function K(_0x38c8f0,_0x3e58da){return{'x':_0x38c8f0['x']-_0x3e58da['x'],'y':_0x38c8f0['y']-_0x3e58da['y']};}function be(_0x4b330d,_0x719918){const _0xbd57f2=_0x34f4;if(_0x4b330d[_0xbd57f2(0x116)]===_0xbd57f2(0x11e)){let _0x16fef1=_0x4b330d[_0xbd57f2(0x10d)];if(_0x16fef1[_0xbd57f2(0x12a)]===0x0)return[];let _0x1e200c=K(_0x16fef1[0x0],_0x719918),_0x5a854c=[{'command':'M','points':[_0x1e200c['x'],_0x1e200c['y']]}];for(let _0xb89288=0x1;_0xb89288<_0x16fef1['length'];_0xb89288++){let _0x1053e7=_0x16fef1[_0xb89288-0x1],_0x64166b=_0x16fef1[_0xb89288],_0x479c57=K(_0x1053e7[_0xbd57f2(0xe0)]??_0x1053e7,_0x719918),_0x21bd99=K(_0x64166b['in']??_0x64166b,_0x719918),_0x5418df=K(_0x64166b,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x479c57['x'],_0x479c57['y'],_0x21bd99['x'],_0x21bd99['y'],_0x5418df['x'],_0x5418df['y']]});}if(_0x4b330d[_0xbd57f2(0x108)]&&_0x16fef1[_0xbd57f2(0x12a)]>0x1){let _0xe3b2d4=_0x16fef1[_0x16fef1['length']-0x1],_0x433c20=_0x16fef1[0x0],_0x393860=K(_0xe3b2d4[_0xbd57f2(0xe0)]??_0xe3b2d4,_0x719918),_0x315164=K(_0x433c20['in']??_0x433c20,_0x719918),_0x24d9f5=K(_0x433c20,_0x719918);_0x5a854c[_0xbd57f2(0x103)]({'command':'C','points':[_0x393860['x'],_0x393860['y'],_0x315164['x'],_0x315164['y'],_0x24d9f5['x'],_0x24d9f5['y']]}),_0x5a854c[_0xbd57f2(0x103)]({'command':'z','points':[]});}return _0x5a854c;}let _0x2d20bf=_0x4b330d['points'][_0xbd57f2(0xee)](_0x34d944=>K(_0x34d944,_0x719918));if(_0x2d20bf[_0xbd57f2(0x12a)]===0x0)return[];let _0x239de4=[{'command':'M','points':[_0x2d20bf[0x0]['x'],_0x2d20bf[0x0]['y']]}];for(let _0x4b7d3d=0x0;_0x4b7d3d<_0x2d20bf[_0xbd57f2(0x12a)]-0x1;_0x4b7d3d++){let _0x176ce4=_0x2d20bf[_0x4b7d3d],_0x59d0c2=_0x2d20bf[_0x4b7d3d+0x1],_0x39ef4f=_0x2d20bf[_0x4b7d3d-0x1]??_0x176ce4,_0x1c3a5e=_0x2d20bf[_0x4b7d3d+0x2]??_0x59d0c2,_0x58fd18={'x':_0x176ce4['x']+(_0x59d0c2['x']-_0x39ef4f['x'])/0x6,'y':_0x176ce4['y']+(_0x59d0c2['y']-_0x39ef4f['y'])/0x6},_0x470276={'x':_0x59d0c2['x']-(_0x1c3a5e['x']-_0x176ce4['x'])/0x6,'y':_0x59d0c2['y']-(_0x1c3a5e['y']-_0x176ce4['y'])/0x6};_0x239de4['push']({'command':'C','points':[_0x58fd18['x'],_0x58fd18['y'],_0x470276['x'],_0x470276['y'],_0x59d0c2['x'],_0x59d0c2['y']]});}return _0x239de4;}function xe(_0x12c644){const _0x13e3a2=_0x34f4;let {model:_0x3c3f62,sourceModel:_0x20c348=_0x3c3f62,style:_0x1ad5b5}=_0x12c644,_0x2ddbcd=_0x12c644[_0x13e3a2(0x10e)]??_0x3c3f62[_0x13e3a2(0x116)],_0x1066d0=G(_0x3c3f62),_0x4d6f7c=_0x3c3f62[_0x13e3a2(0x116)]==='pen'&&_0x2ddbcd!==_0x13e3a2(0x11e)?_0x3c3f62:void 0x0;return{'transform':{..._0x1066d0,'rotation':0x0},'shapeData':ye(_0x3c3f62,_0x1ad5b5),'ink':{'version':0x1,'tool':_0x2ddbcd,'sourceModel':_0x20c348,..._0x4d6f7c?{'editModel':_0x4d6f7c}:{},'normalizedBounds':_0x1066d0}};}var Se=_0x428ca5(0xf0),Ce='1.2.0';function q(_0x4ba76b){'@babel/helpers - typeof';const _0x384fb4=_0x428ca5;return q=typeof Symbol==_0x384fb4(0x11a)&&typeof Symbol[_0x384fb4(0xe6)]==_0x384fb4(0xe7)?function(_0x3a9b4e){return typeof _0x3a9b4e;}:function(_0x3aec00){const _0x542123=_0x384fb4;return _0x3aec00&&typeof Symbol==_0x542123(0x11a)&&_0x3aec00[_0x542123(0x10b)]===Symbol&&_0x3aec00!==Symbol['prototype']?_0x542123(0xe7):typeof _0x3aec00;},q(_0x4ba76b);}function we(_0x53d8f9,_0x29d70a){const _0x2cbfb0=_0x428ca5;if(q(_0x53d8f9)!=_0x2cbfb0(0x12e)||!_0x53d8f9)return _0x53d8f9;var _0x4bd9ac=_0x53d8f9[Symbol[_0x2cbfb0(0xf7)]];if(_0x4bd9ac!==void 0x0){var _0x51b7a4=_0x4bd9ac[_0x2cbfb0(0xf6)](_0x53d8f9,_0x29d70a||_0x2cbfb0(0xed));if(q(_0x51b7a4)!='object')return _0x51b7a4;throw TypeError(_0x2cbfb0(0x100));}return(_0x29d70a===_0x2cbfb0(0xfc)?String:Number)(_0x53d8f9);}function J(_0x2856c1){const _0x4d725f=_0x428ca5;var _0x478bc8=we(_0x2856c1,'string');return q(_0x478bc8)==_0x4d725f(0xe7)?_0x478bc8:_0x478bc8+'';}function Y(_0x438dd4,_0x3eff29,_0x371227){const _0x72379c=_0x428ca5;return(_0x3eff29=J(_0x3eff29))in _0x438dd4?Object[_0x72379c(0x113)](_0x438dd4,_0x3eff29,{'value':_0x371227,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x438dd4[_0x3eff29]=_0x371227,_0x438dd4;}const X=_0x290056(_0x428ca5(0x112));var Te=class{constructor(){const _0x1593a7=_0x428ca5;Y(this,_0x1593a7(0x114),[]);}[_0x428ca5(0x107)](_0x31351b){const _0x2baaea=_0x428ca5;return this[_0x2baaea(0x114)]['push'](_0x31351b),_0x243018(()=>{const _0x5cf8fd=_0x2baaea;let _0x3344f1=this[_0x5cf8fd(0x114)][_0x5cf8fd(0xdf)](_0x31351b);_0x3344f1>=0x0&&this[_0x5cf8fd(0x114)]['splice'](_0x3344f1,0x1);});}['beginInkMode'](_0x26f2aa){const _0x57ec38=_0x428ca5;for(let _0x372f66 of this[_0x57ec38(0x114)])if(_0x372f66[_0x57ec38(0x131)](_0x26f2aa))return!0x0;return!0x1;}async['createCustomShape'](_0x2decc2){const _0x3c3899=_0x428ca5;for(let _0x45a930 of this[_0x3c3899(0x114)])if(_0x45a930[_0x3c3899(0xdc)]&&await _0x45a930[_0x3c3899(0xdc)](_0x2decc2))return!0x0;return!0x1;}};const Ee={'id':'ink.operation.start','type':_0x262274[_0x428ca5(0xe5)],'handler':(_0x263eca,_0x10247d)=>_0x10247d?_0x263eca[_0x428ca5(0x102)](X)[_0x428ca5(0x131)](_0x10247d):!0x1},Z={};function Q(_0x4728ab,_0x58ce78){return function(_0x3c3c6f,_0x59dd04){_0x58ce78(_0x3c3c6f,_0x59dd04,_0x4728ab);};}function De(_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc){const _0x1fa6fd=_0x428ca5;var _0x4557f7=arguments[_0x1fa6fd(0x12a)],_0x453c3=_0x4557f7<0x3?_0x3ecbbc:_0x497fcc===null?_0x497fcc=Object['getOwnPropertyDescriptor'](_0x3ecbbc,_0xdd64c7):_0x497fcc,_0x59ffc2;if(typeof Reflect=='object'&&typeof Reflect[_0x1fa6fd(0xf9)]==_0x1fa6fd(0x11a))_0x453c3=Reflect[_0x1fa6fd(0xf9)](_0x19c24b,_0x3ecbbc,_0xdd64c7,_0x497fcc);else{for(var _0x1840b8=_0x19c24b[_0x1fa6fd(0x12a)]-0x1;_0x1840b8>=0x0;_0x1840b8--)(_0x59ffc2=_0x19c24b[_0x1840b8])&&(_0x453c3=(_0x4557f7<0x3?_0x59ffc2(_0x453c3):_0x4557f7>0x3?_0x59ffc2(_0x3ecbbc,_0xdd64c7,_0x453c3):_0x59ffc2(_0x3ecbbc,_0xdd64c7))||_0x453c3);}return _0x4557f7>0x3&&_0x453c3&&Object['defineProperty'](_0x3ecbbc,_0xdd64c7,_0x453c3),_0x453c3;}let $=class extends _0xd5747{constructor(_0x5d28f2=Z,_0x48f601,_0x3081b0,_0x56b884){const _0x47b5de=_0x428ca5;super(),this['_config']=_0x5d28f2,this[_0x47b5de(0x133)]=_0x48f601,this[_0x47b5de(0xe9)]=_0x3081b0,this[_0x47b5de(0x106)]=_0x56b884;let {..._0x498b0e}=_0x18dd0a({},Z,this[_0x47b5de(0x129)]);this[_0x47b5de(0x106)][_0x47b5de(0x109)]('ink.config',_0x498b0e);}[_0x428ca5(0xe8)](){const _0x285104=_0x428ca5;[[X,{'useClass':Te}]][_0x285104(0x11d)](_0x1e0137=>this[_0x285104(0x133)][_0x285104(0x12b)](_0x1e0137)),this['disposeWithMe'](this['_commandService'][_0x285104(0x135)](Ee));}};Y($,_0x428ca5(0xf2),_0x428ca5(0x105)),Y($,'packageName',Se),Y($,_0x428ca5(0x11b),Ce),Y($,_0x428ca5(0x118),_0x57679c[_0x428ca5(0x123)]),$=De([_0x51330d(_0x44e568),Q(0x1,_0x89bb4c(_0x169e64)),Q(0x2,_0x2a482d),Q(0x3,_0x37a4f2)],$);export{X as IInkHostAdapterService,$ as UniverInkPlugin,xe as buildInkCustomShapePayload,oe as convertBrushModelToPenModel,P as cycleInkPenAnchorPointType,ue as deleteInkPenAnchor,se as findClosestInkPenHandle,ce as findClosestInkPenSegment,G as getInkModelBounds,ae as getInkPenPreviewModel,le as insertInkPenAnchorAt,E as isInkPenHandleVisible,F as moveInkPenAnchorPoint,N as setInkPenAnchorPointType};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2e17(_0x42f4e9,_0x361ffb){_0x42f4e9=_0x42f4e9-0x181;const _0x1251c9=_0x1251();let _0x2e17a3=_0x1251c9[_0x42f4e9];return _0x2e17a3;}function _0x1251(){const _0x14b6c4=['UniverProBoards','out','BoardInkHandleKind','BoardElementType','3JSUSUa','72549GiJwQZ','object','points','isFinite','free','opacity','transform','insertInk','brush','deepClone','Tools','ink','length','parentId','exports','style','sourceModel','FBoard','2715450WaMxtU','tool','add','model','UniverProInk','generateRandomId','insertIndex','isArray','highlighter','has','4552WIsguv','@univerjs/core','kind','UniverProBoardsFacade','anchors','width','@univerjs-pro/ink','Module','version','smooth','extend','filter','9299560cphdxm','5176822KTahcy','BoardInkPointType','@univerjs/core/facade','1660117OPLoNS','@univerjs-pro/boards/facade','7363518KgzVYU','pressure','amd','custom','corner','buildInkCustomShapePayload','1956036QXmlVy','laneId','defineProperty','@univerjs-pro/boards','BoardInkTool','Shape','toStringTag','shapeData'];_0x1251=function(){return _0x14b6c4;};return _0x1251();}(function(_0x46de42,_0x185669){const _0x4c6988=_0x2e17,_0x4894e7=_0x46de42();while(!![]){try{const _0x17e97d=-parseInt(_0x4c6988(0x1a4))/0x1+parseInt(_0x4c6988(0x18a))/0x2+parseInt(_0x4c6988(0x1b8))/0x3*(parseInt(_0x4c6988(0x1ac))/0x4)+-parseInt(_0x4c6988(0x1a0))/0x5+-parseInt(_0x4c6988(0x1a6))/0x6+-parseInt(_0x4c6988(0x1a1))/0x7+parseInt(_0x4c6988(0x194))/0x8*(parseInt(_0x4c6988(0x1b9))/0x9);if(_0x17e97d===_0x185669)break;else _0x4894e7['push'](_0x4894e7['shift']());}catch(_0x100203){_0x4894e7['push'](_0x4894e7['shift']());}}}(_0x1251,0xe71b7),function(_0x154beb,_0x407714){const _0x1dac71=_0x2e17;typeof exports==_0x1dac71(0x1ba)&&typeof module<'u'?_0x407714(exports,require('@univerjs-pro/boards'),require('@univerjs-pro/boards/facade'),require('@univerjs-pro/ink'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x1dac71(0x1a8)]?define([_0x1dac71(0x186),_0x1dac71(0x1af),_0x1dac71(0x1a5),_0x1dac71(0x19a),_0x1dac71(0x195),_0x1dac71(0x1a3)],_0x407714):(_0x154beb=typeof globalThis<'u'?globalThis:_0x154beb||self,_0x407714(_0x154beb['UniverProInkFacade']={},_0x154beb[_0x1dac71(0x1b4)],_0x154beb[_0x1dac71(0x197)],_0x154beb[_0x1dac71(0x18e)],_0x154beb['UniverCore'],_0x154beb['UniverCoreFacade']));}(this,function(_0x2520ab,_0x16db2c,_0x143eec,_0x45297d,_0x1bfc8f,_0x24ae4a){const _0x2f3472=_0x2e17;Object[_0x2f3472(0x1ae)](_0x2520ab,Symbol[_0x2f3472(0x1b2)],{'value':_0x2f3472(0x19b)});var _0x1c60d7=class extends _0x143eec[_0x2f3472(0x189)]{[_0x2f3472(0x1c0)](_0x557d37){const _0x480b57=_0x2f3472;let _0x272a05=_0x36ef34(_0x557d37);return _0x272a05&&this['_addElement'](_0x272a05,{'insertIndex':_0x557d37[_0x480b57(0x190)]})?_0x272a05:null;}['getInks'](){const _0x181f94=_0x2f3472;return this['findElements']({'elementType':_0x16db2c[_0x181f94(0x1b7)][_0x181f94(0x1b1)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x181f94(0x19f)](_0x41ae9b);}};function _0x36ef34(_0x3e70c3,_0x5a332b){const _0x257f76=_0x2f3472;if(!_0x1d29e2(_0x3e70c3[_0x257f76(0x18d)])||_0x3e70c3[_0x257f76(0x188)]!==void 0x0&&!_0x1d29e2(_0x3e70c3['sourceModel'])||!_0x40e015(_0x3e70c3[_0x257f76(0x187)]))return null;let _0x50bc87=_0x3e70c3[_0x257f76(0x185)]??(_0x5a332b==null?void 0x0:_0x5a332b['parentId']),_0x273d08=_0x1bfc8f[_0x257f76(0x182)][_0x257f76(0x181)](_0x3e70c3[_0x257f76(0x18d)]),_0x3f6110=(0x0,_0x45297d[_0x257f76(0x1ab)])({'model':_0x273d08,'style':_0x3e70c3[_0x257f76(0x187)],'tool':_0x3e70c3[_0x257f76(0x18b)],'sourceModel':_0x3e70c3[_0x257f76(0x188)]?_0x1bfc8f[_0x257f76(0x182)]['deepClone'](_0x3e70c3[_0x257f76(0x188)]):_0x273d08}),_0x4a9ba9=_0x202b58(_0x5a332b==null?void 0x0:_0x5a332b[_0x257f76(0x1a9)]);return{'id':(_0x5a332b==null?void 0x0:_0x5a332b['id'])??_0x3e70c3['id']??(0x0,_0x1bfc8f[_0x257f76(0x18f)])(0x6),'type':_0x16db2c[_0x257f76(0x1b7)][_0x257f76(0x1b1)],'transform':_0x3f6110[_0x257f76(0x1bf)],'shapeData':_0x3f6110[_0x257f76(0x1b3)],'parentId':_0x50bc87??void 0x0,'laneId':_0x3e70c3[_0x257f76(0x1ad)]===void 0x0?_0x5a332b==null?void 0x0:_0x5a332b['laneId']:_0x3e70c3[_0x257f76(0x1ad)],'custom':{..._0x4a9ba9,'ink':_0x3f6110[_0x257f76(0x183)]}};}function _0x6d881e(_0x565326){const _0x434611=_0x2f3472;return Number[_0x434611(0x1bc)](_0x565326['x'])&&Number[_0x434611(0x1bc)](_0x565326['y']);}function _0x1d29e2(_0x202629){const _0x5dfb9c=_0x2f3472;if(_0x202629[_0x5dfb9c(0x196)]==='pen'){let _0x41df61=new Set();return _0x202629['anchors'][_0x5dfb9c(0x184)]>=(_0x202629['closed']?0x3:0x2)&&_0x202629[_0x5dfb9c(0x198)]['every'](_0x2ff050=>{const _0x97c880=_0x5dfb9c;let _0x48e413=_0x2ff050['id']['trim']()[_0x97c880(0x184)]>0x0&&!_0x41df61[_0x97c880(0x193)](_0x2ff050['id'])&&_0x6d881e(_0x2ff050)&&(!_0x2ff050['in']||_0x6d881e(_0x2ff050['in']))&&(!_0x2ff050['out']||_0x6d881e(_0x2ff050[_0x97c880(0x1b5)]));return _0x41df61[_0x97c880(0x18c)](_0x2ff050['id']),_0x48e413;});}return _0x202629['points'][_0x5dfb9c(0x184)]>=0x2&&_0x202629[_0x5dfb9c(0x1bb)]['every'](_0x4547db=>_0x6d881e(_0x4547db)&&Number[_0x5dfb9c(0x1bc)](_0x4547db['t'])&&(_0x4547db[_0x5dfb9c(0x1a7)]===void 0x0||Number[_0x5dfb9c(0x1bc)](_0x4547db[_0x5dfb9c(0x1a7)])))&&Number['isFinite'](_0x202629[_0x5dfb9c(0x199)])&&_0x202629[_0x5dfb9c(0x199)]>0x0&&Number['isFinite'](_0x202629[_0x5dfb9c(0x1be)])&&_0x202629[_0x5dfb9c(0x1be)]>=0x0&&_0x202629[_0x5dfb9c(0x1be)]<=0x1;}function _0x40e015(_0x2d8a9){const _0xeaeef8=_0x2f3472;return _0x2d8a9===void 0x0||(_0x2d8a9[_0xeaeef8(0x199)]===void 0x0||Number[_0xeaeef8(0x1bc)](_0x2d8a9[_0xeaeef8(0x199)])&&_0x2d8a9[_0xeaeef8(0x199)]>0x0)&&(_0x2d8a9['opacity']===void 0x0||Number[_0xeaeef8(0x1bc)](_0x2d8a9[_0xeaeef8(0x1be)])&&_0x2d8a9[_0xeaeef8(0x1be)]>=0x0&&_0x2d8a9[_0xeaeef8(0x1be)]<=0x1);}function _0x202b58(_0x5e3bd6){const _0x400440=_0x2f3472;return _0x5e3bd6&&typeof _0x5e3bd6==_0x400440(0x1ba)&&!Array[_0x400440(0x191)](_0x5e3bd6)?_0x5e3bd6:{};}function _0x1acc37(_0xaa62ee){const _0xce3ec7=_0x2f3472;let _0x284630=_0x202b58(_0xaa62ee[_0xce3ec7(0x1a9)])[_0xce3ec7(0x183)];if(!_0x284630||typeof _0x284630!=_0xce3ec7(0x1ba)||Array[_0xce3ec7(0x191)](_0x284630))return null;let _0x5e3696=_0x284630;return _0x5e3696[_0xce3ec7(0x19c)]===0x1&&_0x5e3696[_0xce3ec7(0x188)]&&typeof _0x5e3696[_0xce3ec7(0x188)]==_0xce3ec7(0x1ba)?_0x5e3696:null;}function _0x41ae9b(_0xfe425b){const _0x5edf5a=_0x2f3472;return _0xfe425b['type']===_0x16db2c[_0x5edf5a(0x1b7)]['Shape']&&!!_0x1acc37(_0xfe425b);}_0x143eec[_0x2f3472(0x189)][_0x2f3472(0x19e)](_0x1c60d7);let _0x4a5ef3={'Pen':'pen','Brush':_0x2f3472(0x1c1),'Highlighter':_0x2f3472(0x192)},_0x41d868={'Corner':_0x2f3472(0x1aa),'Smooth':_0x2f3472(0x19d),'Symmetric':'symmetric','Free':_0x2f3472(0x1bd)},_0x42c4ef={'Anchor':'anchor','In':'in','Out':_0x2f3472(0x1b5)};var _0x1ef72a=class extends _0x24ae4a['FEnum']{get['BoardInkTool'](){return _0x4a5ef3;}get['BoardInkPointType'](){return _0x41d868;}get['BoardInkHandleKind'](){return _0x42c4ef;}};_0x24ae4a['FEnum']['extend'](_0x1ef72a),_0x2520ab[_0x2f3472(0x1b6)]=_0x42c4ef,_0x2520ab[_0x2f3472(0x1a2)]=_0x41d868,_0x2520ab[_0x2f3472(0x1b0)]=_0x4a5ef3;}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2948(){const _0x2c304e=['@univerjs-pro/engine-shape','UniverInstanceType','_commandService','_config','CommandType','getOwnPropertyDescriptor','toPrimitive','ICommandService','createCustomShape','kind','splice','join','setInkPenAnchorPointType','color','version','max','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ink-centerline-','5386792rYnWSZ','ShapeLineCapEnum','prototype','ink.operation.start','type','string','forEach','Round','ink.host-adapter.service','1506253ngmLjH','Rect','UniverProLicense','35ECArET','width','Plugin','findClosestInkPenHandle','pluginName','#f54a45','push','smooth','onStarting','ink.config','abs','object','IConfigService','UniverInkPlugin','packageName','UNIVER_UNKNOWN','defineProperty','points','left','ShapeLineJoinEnum','tolerance','OPERATION','cycleInkPenAnchorPointType','SolidFill','_configService','_injector','add','@univerjs-pro/ink','1281510NYTXrV','decorate','20ChjRqQ','2160106cNRzir','distance','right','UniverCore','anchor','171828zRhpTa','endIndex','toStringTag','registerAdapter','fillColor','symmetric','4109289cCiGIX','top','default','DependentOn','exports','norm','start','startIndex','segmentIndex','beginInkMode','hypot','42gdaKgd','anchors','UNIVER_INK_PLUGIN','createId','isInkPenHandleVisible','amd','Injector','map','out','SolidLine','UniverProInk','function','indexOf','pen','round','corner','buildInkCustomShapePayload','_adapters','symbol','ShapeFillEnum','disposeWithMe','slice','ShapeTypeEnum','getInkModelBounds','UniverProEngineShape','pointType','find','min','closed','findClosestInkPenSegment','moveInkPenAnchorPoint','insertInkPenAnchorAt','Module','length','iterator','UniverLicensePlugin','end','point','@univerjs-pro/license','1401205XIYkUz','call','free','opacity'];_0x2948=function(){return _0x2c304e;};return _0x2948();}function _0x1077(_0x5895d8,_0x49de0b){_0x5895d8=_0x5895d8-0x15c;const _0x29485b=_0x2948();let _0x1077fa=_0x29485b[_0x5895d8];return _0x1077fa;}(function(_0x45cc2a,_0x95e22d){const _0xbeffa9=_0x1077,_0x2553e8=_0x45cc2a();while(!![]){try{const _0x8db7ab=parseInt(_0xbeffa9(0x190))/0x1+parseInt(_0xbeffa9(0x1d1))/0x2+-parseInt(_0xbeffa9(0x15e))/0x3+-parseInt(_0xbeffa9(0x1d6))/0x4*(-parseInt(_0xbeffa9(0x1b2))/0x5)+parseInt(_0xbeffa9(0x169))/0x6*(-parseInt(_0xbeffa9(0x1af))/0x7)+parseInt(_0xbeffa9(0x1a6))/0x8+-parseInt(_0xbeffa9(0x1ce))/0x9*(-parseInt(_0xbeffa9(0x1d0))/0xa);if(_0x8db7ab===_0x95e22d)break;else _0x2553e8['push'](_0x2553e8['shift']());}catch(_0x2dd9b0){_0x2553e8['push'](_0x2553e8['shift']());}}}(_0x2948,0xd2f46),function(_0x4117db,_0x3092e6){const _0x4f15d3=_0x1077;typeof exports==_0x4f15d3(0x1bd)&&typeof module<'u'?_0x3092e6(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x4f15d3(0x174)&&define[_0x4f15d3(0x16e)]?define([_0x4f15d3(0x162),_0x4f15d3(0x194),_0x4f15d3(0x18f),'@univerjs/core'],_0x3092e6):(_0x4117db=typeof globalThis<'u'?globalThis:_0x4117db||self,_0x3092e6(_0x4117db[_0x4f15d3(0x173)]={},_0x4117db[_0x4f15d3(0x181)],_0x4117db[_0x4f15d3(0x1b1)],_0x4117db[_0x4f15d3(0x1d4)]));}(this,function(_0x4dd190,_0x578d4f,_0x356d8f,_0x1d0f37){const _0x4e38a9=_0x1077;Object[_0x4e38a9(0x1c2)](_0x4dd190,Symbol[_0x4e38a9(0x1d8)],{'value':_0x4e38a9(0x189)});let _0x3c56f3=0.0001;function _0xe8a5eb(_0x347ad9){return{'x':_0x347ad9['x'],'y':_0x347ad9['y']};}function _0x9b2196(_0x37014c){return{..._0x37014c,'in':_0x37014c['in']?_0xe8a5eb(_0x37014c['in']):void 0x0,'out':_0x37014c['out']?_0xe8a5eb(_0x37014c['out']):void 0x0};}function _0xf61b07(_0x2217c4){const _0x50efe8=_0x4e38a9;return{'kind':_0x50efe8(0x176),'closed':_0x2217c4[_0x50efe8(0x185)],'anchors':_0x2217c4[_0x50efe8(0x16a)][_0x50efe8(0x170)](_0x9b2196)};}function _0x3b34b7(_0x55714b,_0x4d9a8a,_0x4b0b96){return{'x':_0x55714b['x']+(_0x4d9a8a['x']-_0x55714b['x'])*_0x4b0b96,'y':_0x55714b['y']+(_0x4d9a8a['y']-_0x55714b['y'])*_0x4b0b96};}function _0x170211(_0xfc3e87,_0xa77f92){return Math['hypot'](_0xfc3e87['x']-_0xa77f92['x'],_0xfc3e87['y']-_0xa77f92['y']);}function _0x43cf75(_0x4ab7af){const _0x1c7eda=_0x4e38a9;let _0x5f0339=Math[_0x1c7eda(0x168)](_0x4ab7af['x'],_0x4ab7af['y']);return _0x5f0339<_0x3c56f3?{'x':0x1,'y':0x0}:{'x':_0x4ab7af['x']/_0x5f0339,'y':_0x4ab7af['y']/_0x5f0339};}function _0x508ee7(_0x2a5490,_0x2c7249,_0x307812=_0x170211(_0x2a5490,_0x2c7249)){let _0x3e53b1=_0x43cf75({'x':_0x2a5490['x']-_0x2c7249['x'],'y':_0x2a5490['y']-_0x2c7249['y']});return{'x':_0x2a5490['x']+_0x3e53b1['x']*_0x307812,'y':_0x2a5490['y']+_0x3e53b1['y']*_0x307812};}function _0x16b07b(_0x9adae5,_0x2152ef){const _0x13034c=_0x4e38a9;let {anchors:_0x70ec62}=_0x9adae5;return _0x70ec62[_0x13034c(0x18a)]<0x2||_0x2152ef<0x0?null:_0x2152ef<_0x70ec62['length']-0x1?{'startIndex':_0x2152ef,'endIndex':_0x2152ef+0x1,'start':_0x70ec62[_0x2152ef],'end':_0x70ec62[_0x2152ef+0x1]}:_0x9adae5[_0x13034c(0x185)]&&_0x2152ef===_0x70ec62[_0x13034c(0x18a)]-0x1?{'startIndex':_0x70ec62['length']-0x1,'endIndex':0x0,'start':_0x70ec62[_0x70ec62[_0x13034c(0x18a)]-0x1],'end':_0x70ec62[0x0]}:null;}function _0x54080c(_0x4b47d8,_0xe61d3c){const _0x4355de=_0x4e38a9;let _0x27b3cc=_0x16b07b(_0x4b47d8,_0xe61d3c);return _0x27b3cc?[_0x27b3cc[_0x4355de(0x164)],_0x27b3cc[_0x4355de(0x164)][_0x4355de(0x171)]??_0x27b3cc[_0x4355de(0x164)],_0x27b3cc[_0x4355de(0x18d)]['in']??_0x27b3cc[_0x4355de(0x18d)],_0x27b3cc[_0x4355de(0x18d)]]:null;}function _0x54413c(_0x48fe84,_0x7a8b49){return _0x7a8b49==='anchor'?_0x48fe84:_0x48fe84[_0x7a8b49]??null;}function _0x2ea2f6(_0xf405d1,_0x6e71bf,_0x196a46){const _0x52904a=_0x4e38a9;return _0x196a46==='anchor'||_0xf405d1[_0x52904a(0x185)]?!0x0:_0x196a46==='in'?_0x6e71bf>0x0:_0x6e71bf<_0xf405d1[_0x52904a(0x16a)][_0x52904a(0x18a)]-0x1;}function _0x5b7549(_0x427cc2,_0x1a88ff){let [_0x10cc28,_0x2582e7,_0x3ccf50,_0x5a90aa]=_0x427cc2,_0x24378d=_0x3b34b7(_0x10cc28,_0x2582e7,_0x1a88ff),_0x57ff8c=_0x3b34b7(_0x2582e7,_0x3ccf50,_0x1a88ff),_0x1414e9=_0x3b34b7(_0x3ccf50,_0x5a90aa,_0x1a88ff);return _0x3b34b7(_0x3b34b7(_0x24378d,_0x57ff8c,_0x1a88ff),_0x3b34b7(_0x57ff8c,_0x1414e9,_0x1a88ff),_0x1a88ff);}function _0x31af5b(_0x13f3a8,_0x269262){let [_0x548b33,_0x1178c4,_0x4c6f3c,_0x3d3207]=_0x13f3a8,_0x6ed588=_0x3b34b7(_0x548b33,_0x1178c4,_0x269262),_0x517f9f=_0x3b34b7(_0x1178c4,_0x4c6f3c,_0x269262),_0xfee068=_0x3b34b7(_0x4c6f3c,_0x3d3207,_0x269262),_0x5c8507=_0x3b34b7(_0x6ed588,_0x517f9f,_0x269262),_0x1b51e8=_0x3b34b7(_0x517f9f,_0xfee068,_0x269262),_0x42b3eb=_0x3b34b7(_0x5c8507,_0x1b51e8,_0x269262);return{'left':[_0x548b33,_0x6ed588,_0x5c8507,_0x42b3eb],'right':[_0x42b3eb,_0x1b51e8,_0xfee068,_0x3d3207]};}function _0x49ab6f(_0x326778,_0x3abafe,_0xf9f143){const _0x432293=_0x4e38a9;let _0x2ca007=_0xf9f143['x']-_0x3abafe['x'],_0x4a3c5a=_0xf9f143['y']-_0x3abafe['y'],_0x374b4a=_0x2ca007*_0x2ca007+_0x4a3c5a*_0x4a3c5a,_0x2bfaf0=_0x374b4a<=_0x3c56f3?0x0:Math[_0x432293(0x1a3)](0x0,Math[_0x432293(0x184)](0x1,((_0x326778['x']-_0x3abafe['x'])*_0x2ca007+(_0x326778['y']-_0x3abafe['y'])*_0x4a3c5a)/_0x374b4a)),_0x271758={'x':_0x3abafe['x']+_0x2ca007*_0x2bfaf0,'y':_0x3abafe['y']+_0x4a3c5a*_0x2bfaf0};return{'point':_0x271758,'ratio':_0x2bfaf0,'distance':_0x170211(_0x326778,_0x271758)};}function _0x3c8fa8(_0x2db08e,_0x335fbf,_0x4f72d7){const _0x5bfdfc=_0x4e38a9;return _0x49ab6f(_0x2db08e,_0x335fbf,_0x4f72d7)[_0x5bfdfc(0x1d2)]**0x2;}function _0x49ae55(_0x20b328,_0x14ff28){const _0x9eab1a=_0x4e38a9;if(_0x20b328[_0x9eab1a(0x18a)]<=0x2)return _0x20b328[_0x9eab1a(0x170)](_0xe8a5eb);let _0x59be1d=0x0,_0x316359=0x0,_0x587926=_0x20b328[0x0],_0x4b3c83=_0x20b328[_0x20b328['length']-0x1],_0x3a91d3=_0x14ff28*_0x14ff28;for(let _0x41fd07=0x1;_0x41fd07<_0x20b328[_0x9eab1a(0x18a)]-0x1;_0x41fd07++){let _0x103587=_0x3c8fa8(_0x20b328[_0x41fd07],_0x587926,_0x4b3c83);_0x103587>_0x59be1d&&(_0x59be1d=_0x103587,_0x316359=_0x41fd07);}if(_0x59be1d<=_0x3a91d3)return[_0xe8a5eb(_0x587926),_0xe8a5eb(_0x4b3c83)];let _0x2488ac=_0x49ae55(_0x20b328['slice'](0x0,_0x316359+0x1),_0x14ff28),_0x122a10=_0x49ae55(_0x20b328[_0x9eab1a(0x17e)](_0x316359),_0x14ff28);return[..._0x2488ac['slice'](0x0,-0x1),..._0x122a10];}function _0x120ae2(_0x2ccd95,_0x1ee371){let _0x254305=_0x2ccd95[_0x1ee371],_0x75f379=_0x2ccd95[_0x1ee371+0x1],_0x37faba=_0x2ccd95[_0x1ee371-0x1]??_0x254305;return{'x':_0x254305['x']+(_0x75f379['x']-_0x37faba['x'])/0x6,'y':_0x254305['y']+(_0x75f379['y']-_0x37faba['y'])/0x6};}function _0x26633b(_0xed58,_0x16a25b){let _0x36d50c=_0xed58[_0x16a25b],_0x450090=_0xed58[_0x16a25b-0x1],_0x4290e0=_0xed58[_0x16a25b+0x1]??_0x36d50c;return{'x':_0x36d50c['x']-(_0x4290e0['x']-_0x450090['x'])/0x6,'y':_0x36d50c['y']-(_0x4290e0['y']-_0x450090['y'])/0x6};}function _0x410d17(_0x4365dc,_0x4eaa1e){const _0x4c8787=_0x4e38a9;let _0x78176c=_0x4365dc['anchors'][_0x4eaa1e],_0x367483=_0x4365dc[_0x4c8787(0x16a)][_0x4eaa1e-0x1]??(_0x4365dc['closed']?_0x4365dc['anchors'][_0x4365dc['anchors'][_0x4c8787(0x18a)]-0x1]:null),_0x5359fa=_0x4365dc['anchors'][_0x4eaa1e+0x1]??(_0x4365dc['closed']?_0x4365dc[_0x4c8787(0x16a)][0x0]:null),_0x24d904=_0x367483&&_0x5359fa?_0x43cf75({'x':_0x5359fa['x']-_0x367483['x'],'y':_0x5359fa['y']-_0x367483['y']}):_0x5359fa?_0x43cf75({'x':_0x5359fa['x']-_0x78176c['x'],'y':_0x5359fa['y']-_0x78176c['y']}):_0x367483?_0x43cf75({'x':_0x78176c['x']-_0x367483['x'],'y':_0x78176c['y']-_0x367483['y']}):{'x':0x1,'y':0x0},_0xd25f72=_0x367483&&_0x5359fa?Math[_0x4c8787(0x1a3)](0x32,_0x170211(_0x367483,_0x5359fa)/0x4):0x32;return{'in':{'x':_0x78176c['x']-_0x24d904['x']*_0xd25f72,'y':_0x78176c['y']-_0x24d904['y']*_0xd25f72},'out':{'x':_0x78176c['x']+_0x24d904['x']*_0xd25f72,'y':_0x78176c['y']+_0x24d904['y']*_0xd25f72}};}function _0x36ae8f(_0x36a07f,_0x1c80e9){const _0x39dbfd=_0x4e38a9;let _0xa289f=_0x36a07f[_0x1c80e9],_0x29d00b=_0x1c80e9==='in'?_0x39dbfd(0x171):'in',_0x2c4406=_0x36a07f[_0x29d00b];_0xa289f&&(_0x36a07f['pointType']===_0x39dbfd(0x15d)?_0x36a07f[_0x29d00b]=_0x508ee7(_0x36a07f,_0xa289f):_0x36a07f[_0x39dbfd(0x182)]===_0x39dbfd(0x1b9)&&(_0x36a07f[_0x29d00b]=_0x508ee7(_0x36a07f,_0xa289f,_0x2c4406?_0x170211(_0x36a07f,_0x2c4406):_0x170211(_0x36a07f,_0xa289f))));}function _0x3007fb(_0x50aa88,_0x2f5e8e){const _0xa0452c=_0x4e38a9;let _0x24a950=_0xf61b07(_0x50aa88);return!_0x2f5e8e||_0x24a950['closed']||_0x24a950[_0xa0452c(0x16a)][_0xa0452c(0x18a)]===0x0||_0x24a950[_0xa0452c(0x16a)]['push']({'id':'__ink-preview-anchor__','x':_0x2f5e8e['x'],'y':_0x2f5e8e['y'],'pointType':_0xa0452c(0x178)}),_0x24a950;}function _0x1920f4(_0x22c795,_0x87d921={}){const _0x259cd9=_0x4e38a9;let _0x498b7f=Math['max'](0x0,_0x87d921[_0x259cd9(0x1c6)]??Math[_0x259cd9(0x1a3)](0x4,_0x22c795[_0x259cd9(0x1b3)]*0.35)),_0x3f0ecb=_0x87d921[_0x259cd9(0x16c)]??(_0x4e3bed=>_0x259cd9(0x1a5)+_0x4e3bed),_0x3b8097=_0x49ae55(_0x22c795[_0x259cd9(0x1c3)],_0x498b7f),_0x5e9dd=_0x3b8097[_0x259cd9(0x170)]((_0xa92502,_0x2f7a36)=>({'id':_0x3f0ecb(_0x2f7a36),'x':_0xa92502['x'],'y':_0xa92502['y'],'pointType':_0x259cd9(0x192)}));for(let _0x3ac11c=0x0;_0x3ac11c<_0x5e9dd[_0x259cd9(0x18a)]-0x1;_0x3ac11c++)_0x5e9dd[_0x3ac11c][_0x259cd9(0x171)]=_0x120ae2(_0x3b8097,_0x3ac11c),_0x5e9dd[_0x3ac11c+0x1]['in']=_0x26633b(_0x3b8097,_0x3ac11c+0x1);return{'kind':_0x259cd9(0x176),'closed':!0x1,'anchors':_0x5e9dd};}function _0x1e5948(_0x4faf33,_0x1f33cd,_0x41c2c3){const _0xd2d231=_0x4e38a9;let _0x47df6d=null,_0x2cb6ff=[_0xd2d231(0x1d5),'in',_0xd2d231(0x171)];return _0x4faf33[_0xd2d231(0x16a)][_0xd2d231(0x1ac)]((_0x14f7ed,_0x27dadd)=>{const _0x2548d8=_0xd2d231;_0x2cb6ff[_0x2548d8(0x1ac)](_0x473f19=>{const _0x3ee369=_0x2548d8;if(!_0x2ea2f6(_0x4faf33,_0x27dadd,_0x473f19))return;let _0x101f12=_0x54413c(_0x14f7ed,_0x473f19);if(!_0x101f12)return;let _0x1c6486=_0x170211(_0x1f33cd,_0x101f12);_0x1c6486>_0x41c2c3||_0x47df6d&&_0x1c6486>=_0x47df6d[_0x3ee369(0x1d2)]||(_0x47df6d={'handle':{'kind':_0x473f19,'anchorId':_0x14f7ed['id']},'point':_0xe8a5eb(_0x101f12),'distance':_0x1c6486});});}),_0x47df6d;}function _0x23b578(_0x31c4e5,_0x177638,_0x1fa8ee){const _0x164f51=_0x4e38a9;let _0x100ffc=null,_0x382f4d=_0x31c4e5['closed']?_0x31c4e5['anchors'][_0x164f51(0x18a)]:Math['max'](0x0,_0x31c4e5[_0x164f51(0x16a)][_0x164f51(0x18a)]-0x1);for(let _0x22ad79=0x0;_0x22ad79<_0x382f4d;_0x22ad79++){let _0x271861=_0x54080c(_0x31c4e5,_0x22ad79);if(!_0x271861)continue;let _0x505d01=_0x5b7549(_0x271861,0x0);for(let _0x466010=0x1;_0x466010<=0x20;_0x466010++){let _0x3f3bf6=_0x5b7549(_0x271861,_0x466010/0x20),_0x45763b=_0x49ab6f(_0x177638,_0x505d01,_0x3f3bf6),_0x2aea9e=(_0x466010-0x1+_0x45763b['ratio'])/0x20;(!_0x100ffc||_0x45763b['distance']<_0x100ffc[_0x164f51(0x1d2)])&&(_0x100ffc={'segmentIndex':_0x22ad79,'t':_0x2aea9e,'point':_0x45763b[_0x164f51(0x18e)],'distance':_0x45763b[_0x164f51(0x1d2)]}),_0x505d01=_0x3f3bf6;}}return _0x100ffc&&_0x100ffc[_0x164f51(0x1d2)]<=_0x1fa8ee?_0x100ffc:null;}function _0x1fa9a8(_0x5fe668,_0x41093,_0x35a261){const _0x3b618f=_0x4e38a9;let _0x5c892b=_0xf61b07(_0x5fe668),_0x447067=_0x16b07b(_0x5c892b,_0x41093[_0x3b618f(0x166)]),_0x222eb9=_0x54080c(_0x5c892b,_0x41093['segmentIndex']);if(!_0x447067||!_0x222eb9)return _0x5c892b;let _0x17d836=_0x31af5b(_0x222eb9,Math[_0x3b618f(0x1a3)](0x0,Math[_0x3b618f(0x184)](0x1,_0x41093['t']))),_0x25d017={'id':_0x35a261(),'x':_0x17d836['left'][0x3]['x'],'y':_0x17d836[_0x3b618f(0x1c4)][0x3]['y'],'in':_0xe8a5eb(_0x17d836[_0x3b618f(0x1c4)][0x2]),'out':_0xe8a5eb(_0x17d836[_0x3b618f(0x1d3)][0x1]),'pointType':_0x3b618f(0x192)};return _0x5c892b['anchors'][_0x447067[_0x3b618f(0x165)]][_0x3b618f(0x171)]=_0xe8a5eb(_0x17d836[_0x3b618f(0x1c4)][0x1]),_0x5c892b[_0x3b618f(0x16a)][_0x447067[_0x3b618f(0x1d7)]]['in']=_0xe8a5eb(_0x17d836[_0x3b618f(0x1d3)][0x2]),_0x5c892b['anchors']['splice'](_0x447067[_0x3b618f(0x165)]+0x1,0x0,_0x25d017),_0x5c892b;}function _0x571ff4(_0x2e9455,_0x536af6){const _0x5e50da=_0x4e38a9;let _0x5f1342=_0xf61b07(_0x2e9455);return _0x5f1342['anchors']=_0x5f1342['anchors']['filter'](_0x17d4bf=>_0x17d4bf['id']!==_0x536af6),_0x5f1342[_0x5e50da(0x185)]&&_0x5f1342['anchors']['length']<0x3&&(_0x5f1342[_0x5e50da(0x185)]=!0x1),_0x5f1342;}function _0x3aa496(_0x7625f3,_0x2910b8,_0x20f3ef){const _0x857251=_0x4e38a9;let _0x1680eb=_0xf61b07(_0x7625f3),_0x23b913=_0x1680eb[_0x857251(0x16a)]['findIndex'](_0xbfa20d=>_0xbfa20d['id']===_0x2910b8),_0x368141=_0x1680eb[_0x857251(0x16a)][_0x23b913];if(!_0x368141)return _0x1680eb;if(_0x368141[_0x857251(0x182)]=_0x20f3ef,_0x20f3ef===_0x857251(0x178))return delete _0x368141['in'],delete _0x368141[_0x857251(0x171)],_0x1680eb;let _0xa1f4ab=_0x410d17(_0x1680eb,_0x23b913);if(_0x368141['in']=_0x368141['in']?_0xe8a5eb(_0x368141['in']):_0xa1f4ab['in'],_0x368141['out']=_0x368141['out']?_0xe8a5eb(_0x368141['out']):_0xa1f4ab[_0x857251(0x171)],_0x20f3ef===_0x857251(0x15d)){let _0x302ec5=Math[_0x857251(0x1a3)](_0x170211(_0x368141,_0x368141['in']),_0x170211(_0x368141,_0x368141[_0x857251(0x171)]),0x32),_0x1fa7fe=_0x43cf75({'x':_0x368141['out']['x']-_0x368141['x'],'y':_0x368141['out']['y']-_0x368141['y']});_0x368141[_0x857251(0x171)]={'x':_0x368141['x']+_0x1fa7fe['x']*_0x302ec5,'y':_0x368141['y']+_0x1fa7fe['y']*_0x302ec5},_0x368141['in']={'x':_0x368141['x']-_0x1fa7fe['x']*_0x302ec5,'y':_0x368141['y']-_0x1fa7fe['y']*_0x302ec5};}else _0x20f3ef==='smooth'&&_0x36ae8f(_0x368141,_0x857251(0x171));return _0x1680eb;}function _0x4481db(_0x3f4868,_0x46aadb){const _0x281819=_0x4e38a9;let _0x4be044=_0x3f4868['anchors']['find'](_0x42f3b5=>_0x42f3b5['id']===_0x46aadb),_0x200073=(_0x4be044==null?void 0x0:_0x4be044[_0x281819(0x182)])??_0x281819(0x178);return _0x3aa496(_0x3f4868,_0x46aadb,_0x200073===_0x281819(0x178)?'smooth':_0x200073===_0x281819(0x1b9)?_0x281819(0x15d):_0x200073===_0x281819(0x15d)?_0x281819(0x192):'corner');}function _0x147bc9(_0x2ac2e0,_0xa1fc6a,_0x38b38f){const _0x39e99e=_0x4e38a9;let _0x2a9035=_0xf61b07(_0x2ac2e0),_0x58b9e3=_0x2a9035[_0x39e99e(0x16a)][_0x39e99e(0x183)](_0x58ac01=>_0x58ac01['id']===_0xa1fc6a['anchorId']);if(!_0x58b9e3)return _0x2a9035;if(_0xa1fc6a['kind']===_0x39e99e(0x1d5)){let _0x4e7b88={'x':_0x38b38f['x']-_0x58b9e3['x'],'y':_0x38b38f['y']-_0x58b9e3['y']};return _0x58b9e3['x']=_0x38b38f['x'],_0x58b9e3['y']=_0x38b38f['y'],_0x58b9e3['in']&&={'x':_0x58b9e3['in']['x']+_0x4e7b88['x'],'y':_0x58b9e3['in']['y']+_0x4e7b88['y']},_0x58b9e3['out']&&={'x':_0x58b9e3['out']['x']+_0x4e7b88['x'],'y':_0x58b9e3[_0x39e99e(0x171)]['y']+_0x4e7b88['y']},_0x2a9035;}return _0x58b9e3[_0xa1fc6a[_0x39e99e(0x19d)]]=_0xe8a5eb(_0x38b38f),_0x58b9e3[_0x39e99e(0x182)]===_0x39e99e(0x178)&&(_0x58b9e3[_0x39e99e(0x182)]=_0x39e99e(0x192)),_0x36ae8f(_0x58b9e3,_0xa1fc6a[_0x39e99e(0x19d)]),_0x2a9035;}let _0x3961a4=1e-9;function _0x1daabf(_0x33841e){const _0x35c422=_0x4e38a9;let _0x56cae7=Math[_0x35c422(0x177)](_0x33841e*0x2710)/0x2710;return Object['is'](_0x56cae7,-0x0)?'0':String(_0x56cae7);}function _0x2f0797(_0x47bb38){return _0x1daabf(_0x47bb38['x'])+'\x20'+_0x1daabf(_0x47bb38['y']);}function _0x21f681(_0x5bd93d,_0x488728){return{'x':_0x5bd93d['x']-_0x488728['x'],'y':_0x5bd93d['y']-_0x488728['y']};}function _0x1d2111(_0x4cc233,_0x3c721d,_0x4957e2,_0xfb9699,_0x821c9a){let _0x5c7845=0x1-_0x821c9a;return{'x':_0x5c7845*_0x5c7845*_0x5c7845*_0x4cc233['x']+0x3*_0x5c7845*_0x5c7845*_0x821c9a*_0x3c721d['x']+0x3*_0x5c7845*_0x821c9a*_0x821c9a*_0x4957e2['x']+_0x821c9a*_0x821c9a*_0x821c9a*_0xfb9699['x'],'y':_0x5c7845*_0x5c7845*_0x5c7845*_0x4cc233['y']+0x3*_0x5c7845*_0x5c7845*_0x821c9a*_0x3c721d['y']+0x3*_0x5c7845*_0x821c9a*_0x821c9a*_0x4957e2['y']+_0x821c9a*_0x821c9a*_0x821c9a*_0xfb9699['y']};}function _0x120186(_0x3866f1,_0x5a9dcc,_0xc98aed,_0x3bf1c8){const _0x2e6130=_0x4e38a9;let _0x3addd4=-_0x3866f1+0x3*_0x5a9dcc-0x3*_0xc98aed+_0x3bf1c8,_0x2a6a2f=0x3*_0x3866f1-0x6*_0x5a9dcc+0x3*_0xc98aed,_0x47e63b=-0x3*_0x3866f1+0x3*_0x5a9dcc,_0x5c5cad=[];if(Math['abs'](_0x3addd4)<_0x3961a4){if(Math[_0x2e6130(0x1bc)](_0x2a6a2f)<_0x3961a4)return _0x5c5cad;let _0xb3e3c2=-_0x47e63b/(0x2*_0x2a6a2f);return _0xb3e3c2>0x0&&_0xb3e3c2<0x1&&_0x5c5cad[_0x2e6130(0x1b8)](_0xb3e3c2),_0x5c5cad;}let _0x567a8a=_0x2a6a2f*_0x2a6a2f-0x3*_0x3addd4*_0x47e63b;if(_0x567a8a<0x0)return _0x5c5cad;let _0x512167=Math['sqrt'](Math[_0x2e6130(0x1a3)](0x0,_0x567a8a)),_0x4fd001=(-_0x2a6a2f+_0x512167)/(0x3*_0x3addd4),_0x1c2ae2=(-_0x2a6a2f-_0x512167)/(0x3*_0x3addd4);return _0x4fd001>0x0&&_0x4fd001<0x1&&_0x5c5cad[_0x2e6130(0x1b8)](_0x4fd001),_0x1c2ae2>0x0&&_0x1c2ae2<0x1&&Math[_0x2e6130(0x1bc)](_0x1c2ae2-_0x4fd001)>_0x3961a4&&_0x5c5cad[_0x2e6130(0x1b8)](_0x1c2ae2),_0x5c5cad;}function _0x523186(_0x7f3d5c,_0x40f992,_0x190601,_0x37d65b,_0x3e37e3){const _0x1dc48d=_0x4e38a9;_0x7f3d5c[_0x1dc48d(0x1b8)](_0x40f992,_0x3e37e3),new Set([..._0x120186(_0x40f992['x'],_0x190601['x'],_0x37d65b['x'],_0x3e37e3['x']),..._0x120186(_0x40f992['y'],_0x190601['y'],_0x37d65b['y'],_0x3e37e3['y'])])['forEach'](_0x775de7=>{const _0xa8a816=_0x1dc48d;_0x7f3d5c[_0xa8a816(0x1b8)](_0x1d2111(_0x40f992,_0x190601,_0x37d65b,_0x3e37e3,_0x775de7));});}function _0xd788e3(_0x53ad4f){const _0x4e8fa2=_0x4e38a9;let _0x8401b=_0x53ad4f[_0x4e8fa2(0x16a)];if(_0x8401b[_0x4e8fa2(0x18a)]<=0x1)return _0x8401b;let _0x24cda4=[];for(let _0x611fa5=0x1;_0x611fa5<_0x8401b['length'];_0x611fa5++){let _0xb41a88=_0x8401b[_0x611fa5-0x1],_0x3dbdfa=_0x8401b[_0x611fa5];_0x523186(_0x24cda4,_0xb41a88,_0xb41a88['out']??_0xb41a88,_0x3dbdfa['in']??_0x3dbdfa,_0x3dbdfa);}if(_0x53ad4f['closed']&&_0x8401b[_0x4e8fa2(0x18a)]>0x1){let _0x29619b=_0x8401b[_0x8401b['length']-0x1],_0x1776d5=_0x8401b[0x0];_0x523186(_0x24cda4,_0x29619b,_0x29619b[_0x4e8fa2(0x171)]??_0x29619b,_0x1776d5['in']??_0x1776d5,_0x1776d5);}return _0x24cda4;}function _0xa3ce09(_0x1351b9){const _0x173a72=_0x4e38a9;let _0x2468db=_0x1351b9[_0x173a72(0x1c3)];if(_0x2468db[_0x173a72(0x18a)]<=0x1)return _0x2468db;let _0xa5f69a=[];for(let _0x34fa22=0x0;_0x34fa22<_0x2468db[_0x173a72(0x18a)]-0x1;_0x34fa22++){let _0x4c0fff=_0x2468db[_0x34fa22],_0x4cb362=_0x2468db[_0x34fa22+0x1],_0x92608b=_0x2468db[_0x34fa22-0x1]??_0x4c0fff,_0x257aab=_0x2468db[_0x34fa22+0x2]??_0x4cb362;_0x523186(_0xa5f69a,_0x4c0fff,{'x':_0x4c0fff['x']+(_0x4cb362['x']-_0x92608b['x'])/0x6,'y':_0x4c0fff['y']+(_0x4cb362['y']-_0x92608b['y'])/0x6},{'x':_0x4cb362['x']-(_0x257aab['x']-_0x4c0fff['x'])/0x6,'y':_0x4cb362['y']-(_0x257aab['y']-_0x4c0fff['y'])/0x6},_0x4cb362);}return _0xa5f69a;}function _0x2f8c6d(_0x9849b1){const _0x5eea94=_0x4e38a9;return _0x9849b1[_0x5eea94(0x19d)]===_0x5eea94(0x176)?_0xd788e3(_0x9849b1):_0xa3ce09(_0x9849b1);}function _0x1b6983(_0x2bb948){let _0x27777d=Math['round'](_0x2bb948*0x2710)/0x2710;return Object['is'](_0x27777d,-0x0)?0x0:_0x27777d;}function _0x43f7f6(_0x5f4530){const _0x8e4634=_0x4e38a9;let _0x5778a9=_0x2f8c6d(_0x5f4530);if(_0x5778a9[_0x8e4634(0x18a)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b6031=Math[_0x8e4634(0x184)](..._0x5778a9[_0x8e4634(0x170)](_0x1bde37=>_0x1bde37['x'])),_0x4ca602=Math[_0x8e4634(0x184)](..._0x5778a9[_0x8e4634(0x170)](_0x56ad56=>_0x56ad56['y'])),_0x14bf20=Math[_0x8e4634(0x1a3)](..._0x5778a9[_0x8e4634(0x170)](_0x216386=>_0x216386['x'])),_0x131e47=Math[_0x8e4634(0x1a3)](..._0x5778a9['map'](_0x45166c=>_0x45166c['y']));return{'left':_0x1b6983(_0x4b6031),'top':_0x1b6983(_0x4ca602),'width':_0x1b6983(Math[_0x8e4634(0x1a3)](0x1,_0x14bf20-_0x4b6031)),'height':_0x1b6983(Math[_0x8e4634(0x1a3)](0x1,_0x131e47-_0x4ca602))};}function _0x3f48ce(_0x37d1c1,_0x27da52){const _0x342a76=_0x4e38a9;let _0x47025e=_0x37d1c1[_0x342a76(0x16a)];if(_0x47025e[_0x342a76(0x18a)]===0x0)return'';let _0x2314d5=['M\x20'+_0x2f0797(_0x21f681(_0x47025e[0x0],_0x27da52))];for(let _0x436c4d=0x1;_0x436c4d<_0x47025e[_0x342a76(0x18a)];_0x436c4d++){let _0x552661=_0x47025e[_0x436c4d-0x1],_0x5540f7=_0x47025e[_0x436c4d],_0x56ea5d=_0x552661[_0x342a76(0x171)]??_0x552661,_0x51c984=_0x5540f7['in']??_0x5540f7;_0x2314d5[_0x342a76(0x1b8)]('C\x20'+_0x2f0797(_0x21f681(_0x56ea5d,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x51c984,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x5540f7,_0x27da52)));}if(_0x37d1c1[_0x342a76(0x185)]&&_0x47025e['length']>0x1){let _0x53beb9=_0x47025e[_0x47025e[_0x342a76(0x18a)]-0x1],_0x196d41=_0x47025e[0x0],_0xa7d08a=_0x53beb9[_0x342a76(0x171)]??_0x53beb9,_0x3a220f=_0x196d41['in']??_0x196d41;_0x2314d5[_0x342a76(0x1b8)]('C\x20'+_0x2f0797(_0x21f681(_0xa7d08a,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x3a220f,_0x27da52))+'\x20'+_0x2f0797(_0x21f681(_0x196d41,_0x27da52))),_0x2314d5['push']('Z');}return _0x2314d5[_0x342a76(0x19f)]('\x20');}function _0x3ad25a(_0x3a6bd9,_0x4358ab){const _0x46d3d9=_0x4e38a9;let _0x440924=_0x3a6bd9[_0x46d3d9(0x1c3)][_0x46d3d9(0x170)](_0x5da778=>_0x21f681(_0x5da778,_0x4358ab));if(_0x440924[_0x46d3d9(0x18a)]===0x0)return'';if(_0x440924[_0x46d3d9(0x18a)]===0x1)return'M\x20'+_0x2f0797(_0x440924[0x0]);let _0x119a14=['M\x20'+_0x2f0797(_0x440924[0x0])];for(let _0x1acaa1=0x0;_0x1acaa1<_0x440924[_0x46d3d9(0x18a)]-0x1;_0x1acaa1++){let _0x3b5839=_0x440924[_0x1acaa1],_0x10d6de=_0x440924[_0x1acaa1+0x1],_0x1e8ee7=_0x440924[_0x1acaa1-0x1]??_0x3b5839,_0x33381a=_0x440924[_0x1acaa1+0x2]??_0x10d6de,_0x266ff2={'x':_0x3b5839['x']+(_0x10d6de['x']-_0x1e8ee7['x'])/0x6,'y':_0x3b5839['y']+(_0x10d6de['y']-_0x1e8ee7['y'])/0x6},_0x190f81={'x':_0x10d6de['x']-(_0x33381a['x']-_0x3b5839['x'])/0x6,'y':_0x10d6de['y']-(_0x33381a['y']-_0x3b5839['y'])/0x6};_0x119a14[_0x46d3d9(0x1b8)]('C\x20'+_0x2f0797(_0x266ff2)+'\x20'+_0x2f0797(_0x190f81)+'\x20'+_0x2f0797(_0x10d6de));}return _0x119a14[_0x46d3d9(0x19f)]('\x20');}function _0xc3c4f3(_0xcb552a,_0x10fb15){const _0x21a861=_0x4e38a9;return _0xcb552a[_0x21a861(0x19d)]===_0x21a861(0x176)?_0x3f48ce(_0xcb552a,_0x10fb15):_0x3ad25a(_0xcb552a,_0x10fb15);}function _0x55a71b(_0x2e1437,_0x11348f){const _0x1e90c6=_0x4e38a9;return _0x11348f!=null&&_0x11348f['color']?_0x11348f[_0x1e90c6(0x1a1)]:_0x2e1437['kind']===_0x1e90c6(0x176)?_0x1e90c6(0x1b7):_0x2e1437[_0x1e90c6(0x1a1)];}function _0x2dd779(_0x41b3f3,_0x2cc30c){const _0x57033c=_0x4e38a9;return(_0x2cc30c==null?void 0x0:_0x2cc30c[_0x57033c(0x1b3)])===void 0x0?_0x41b3f3['kind']===_0x57033c(0x176)?0x2:_0x41b3f3[_0x57033c(0x1b3)]:_0x2cc30c['width'];}function _0x2923b7(_0x3de4fc,_0x3e2796){const _0x298b3a=_0x4e38a9;return(_0x3e2796==null?void 0x0:_0x3e2796['opacity'])===void 0x0?_0x3de4fc[_0x298b3a(0x19d)]==='pen'?void 0x0:_0x3de4fc[_0x298b3a(0x193)]:_0x3e2796['opacity'];}function _0x4c3d34(_0x50d9bd,_0xcc7175){const _0x1a160e=_0x4e38a9;let _0x3e8316=_0x43f7f6(_0x50d9bd),_0xecd23=_0xc3c4f3(_0x50d9bd,{'x':_0x3e8316[_0x1a160e(0x1c4)],'y':_0x3e8316[_0x1a160e(0x15f)]}),_0x430b15=_0x50d9bd[_0x1a160e(0x19d)]===_0x1a160e(0x176)&&_0x50d9bd[_0x1a160e(0x185)],_0x2d8049=_0xcc7175==null?void 0x0:_0xcc7175[_0x1a160e(0x15c)];return{'shapeType':_0x578d4f[_0x1a160e(0x17f)][_0x1a160e(0x1b0)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3e8316[_0x1a160e(0x1b3)],'h':_0x3e8316['height'],'fill':_0x430b15?_0x1a160e(0x163):'none','stroke':!0x0,'data':_0xecd23,'dataArray':_0x3dbe09(_0x50d9bd,{'x':_0x3e8316[_0x1a160e(0x1c4)],'y':_0x3e8316[_0x1a160e(0x15f)]})}]},'fill':_0x430b15&&_0x2d8049?{'color':_0x2d8049,'fillType':_0x578d4f[_0x1a160e(0x17c)][_0x1a160e(0x1c9)]}:{'fillType':_0x578d4f[_0x1a160e(0x17c)]['NoFill']},'stroke':{'color':_0x55a71b(_0x50d9bd,_0xcc7175),'width':_0x2dd779(_0x50d9bd,_0xcc7175),'opacity':_0x2923b7(_0x50d9bd,_0xcc7175),'lineStrokeType':_0x578d4f['ShapeLineTypeEnum'][_0x1a160e(0x172)],'capType':_0x578d4f[_0x1a160e(0x1a7)][_0x1a160e(0x1ad)],'lineJoinType':_0x578d4f[_0x1a160e(0x1c5)][_0x1a160e(0x1ad)]}};}function _0x291408(_0x249cad,_0x1ce80e){return{'x':_0x249cad['x']-_0x1ce80e['x'],'y':_0x249cad['y']-_0x1ce80e['y']};}function _0x3dbe09(_0x4f4416,_0x1a02e9){const _0x47d493=_0x4e38a9;if(_0x4f4416[_0x47d493(0x19d)]==='pen'){let _0x3feffe=_0x4f4416[_0x47d493(0x16a)];if(_0x3feffe['length']===0x0)return[];let _0x51921a=_0x291408(_0x3feffe[0x0],_0x1a02e9),_0x4d130d=[{'command':'M','points':[_0x51921a['x'],_0x51921a['y']]}];for(let _0x3cdad1=0x1;_0x3cdad1<_0x3feffe[_0x47d493(0x18a)];_0x3cdad1++){let _0x40acb3=_0x3feffe[_0x3cdad1-0x1],_0x1476a4=_0x3feffe[_0x3cdad1],_0x2a1d6a=_0x291408(_0x40acb3[_0x47d493(0x171)]??_0x40acb3,_0x1a02e9),_0x55bf38=_0x291408(_0x1476a4['in']??_0x1476a4,_0x1a02e9),_0x14efc1=_0x291408(_0x1476a4,_0x1a02e9);_0x4d130d[_0x47d493(0x1b8)]({'command':'C','points':[_0x2a1d6a['x'],_0x2a1d6a['y'],_0x55bf38['x'],_0x55bf38['y'],_0x14efc1['x'],_0x14efc1['y']]});}if(_0x4f4416[_0x47d493(0x185)]&&_0x3feffe['length']>0x1){let _0x21a81c=_0x3feffe[_0x3feffe[_0x47d493(0x18a)]-0x1],_0x3fc506=_0x3feffe[0x0],_0x13b083=_0x291408(_0x21a81c[_0x47d493(0x171)]??_0x21a81c,_0x1a02e9),_0x4134f4=_0x291408(_0x3fc506['in']??_0x3fc506,_0x1a02e9),_0x2eff72=_0x291408(_0x3fc506,_0x1a02e9);_0x4d130d['push']({'command':'C','points':[_0x13b083['x'],_0x13b083['y'],_0x4134f4['x'],_0x4134f4['y'],_0x2eff72['x'],_0x2eff72['y']]}),_0x4d130d[_0x47d493(0x1b8)]({'command':'z','points':[]});}return _0x4d130d;}let _0x2fe3b0=_0x4f4416[_0x47d493(0x1c3)]['map'](_0x591fe5=>_0x291408(_0x591fe5,_0x1a02e9));if(_0x2fe3b0[_0x47d493(0x18a)]===0x0)return[];let _0x60a5fc=[{'command':'M','points':[_0x2fe3b0[0x0]['x'],_0x2fe3b0[0x0]['y']]}];for(let _0x22f744=0x0;_0x22f744<_0x2fe3b0['length']-0x1;_0x22f744++){let _0x3f5b2e=_0x2fe3b0[_0x22f744],_0x40033a=_0x2fe3b0[_0x22f744+0x1],_0x5a46b3=_0x2fe3b0[_0x22f744-0x1]??_0x3f5b2e,_0x24b303=_0x2fe3b0[_0x22f744+0x2]??_0x40033a,_0x3210cd={'x':_0x3f5b2e['x']+(_0x40033a['x']-_0x5a46b3['x'])/0x6,'y':_0x3f5b2e['y']+(_0x40033a['y']-_0x5a46b3['y'])/0x6},_0x455747={'x':_0x40033a['x']-(_0x24b303['x']-_0x3f5b2e['x'])/0x6,'y':_0x40033a['y']-(_0x24b303['y']-_0x3f5b2e['y'])/0x6};_0x60a5fc[_0x47d493(0x1b8)]({'command':'C','points':[_0x3210cd['x'],_0x3210cd['y'],_0x455747['x'],_0x455747['y'],_0x40033a['x'],_0x40033a['y']]});}return _0x60a5fc;}function _0x3d018b(_0x372778){const _0x303dc0=_0x4e38a9;let {model:_0x10c79b,sourceModel:_0x1872a6=_0x10c79b,style:_0x2ba73d}=_0x372778,_0x2e89c6=_0x372778['tool']??_0x10c79b[_0x303dc0(0x19d)],_0x24ec8f=_0x43f7f6(_0x10c79b),_0x5de053=_0x10c79b['kind']===_0x303dc0(0x176)&&_0x2e89c6!==_0x303dc0(0x176)?_0x10c79b:void 0x0;return{'transform':{..._0x24ec8f,'rotation':0x0},'shapeData':_0x4c3d34(_0x10c79b,_0x2ba73d),'ink':{'version':0x1,'tool':_0x2e89c6,'sourceModel':_0x1872a6,..._0x5de053?{'editModel':_0x5de053}:{},'normalizedBounds':_0x24ec8f}};}var _0x283b12=_0x4e38a9(0x1cd),_0x588dcf='1.1.0';function _0xfa633a(_0x4e9ddc){'@babel/helpers - typeof';const _0x419f0d=_0x4e38a9;return _0xfa633a=typeof Symbol=='function'&&typeof Symbol[_0x419f0d(0x18b)]==_0x419f0d(0x17b)?function(_0x253b55){return typeof _0x253b55;}:function(_0x280724){const _0x125b3a=_0x419f0d;return _0x280724&&typeof Symbol==_0x125b3a(0x174)&&_0x280724['constructor']===Symbol&&_0x280724!==Symbol[_0x125b3a(0x1a8)]?'symbol':typeof _0x280724;},_0xfa633a(_0x4e9ddc);}function _0x3d927a(_0x36715f,_0x4f713c){const _0xe4a611=_0x4e38a9;if(_0xfa633a(_0x36715f)!=_0xe4a611(0x1bd)||!_0x36715f)return _0x36715f;var _0x22caff=_0x36715f[Symbol[_0xe4a611(0x19a)]];if(_0x22caff!==void 0x0){var _0x3f110f=_0x22caff[_0xe4a611(0x191)](_0x36715f,_0x4f713c||_0xe4a611(0x160));if(_0xfa633a(_0x3f110f)!=_0xe4a611(0x1bd))return _0x3f110f;throw TypeError(_0xe4a611(0x1a4));}return(_0x4f713c===_0xe4a611(0x1ab)?String:Number)(_0x36715f);}function _0x247aae(_0x47db4c){const _0x8c82e8=_0x4e38a9;var _0x1a9237=_0x3d927a(_0x47db4c,_0x8c82e8(0x1ab));return _0xfa633a(_0x1a9237)=='symbol'?_0x1a9237:_0x1a9237+'';}function _0x230d2a(_0x175492,_0x4259ca,_0x5eaa1c){const _0x59f26c=_0x4e38a9;return(_0x4259ca=_0x247aae(_0x4259ca))in _0x175492?Object[_0x59f26c(0x1c2)](_0x175492,_0x4259ca,{'value':_0x5eaa1c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x175492[_0x4259ca]=_0x5eaa1c,_0x175492;}let _0x20701a=(0x0,_0x1d0f37['createIdentifier'])(_0x4e38a9(0x1ae));var _0x8e1f60=class{constructor(){const _0x423f92=_0x4e38a9;_0x230d2a(this,_0x423f92(0x17a),[]);}[_0x4e38a9(0x1d9)](_0x5de9e8){const _0x3c44cc=_0x4e38a9;return this[_0x3c44cc(0x17a)]['push'](_0x5de9e8),(0x0,_0x1d0f37['toDisposable'])(()=>{const _0x1e0240=_0x3c44cc;let _0x5047f4=this[_0x1e0240(0x17a)][_0x1e0240(0x175)](_0x5de9e8);_0x5047f4>=0x0&&this['_adapters'][_0x1e0240(0x19e)](_0x5047f4,0x1);});}[_0x4e38a9(0x167)](_0x157220){const _0x27dff4=_0x4e38a9;for(let _0x52d87d of this[_0x27dff4(0x17a)])if(_0x52d87d['beginInkMode'](_0x157220))return!0x0;return!0x1;}async[_0x4e38a9(0x19c)](_0x5b318e){const _0xd76358=_0x4e38a9;for(let _0x1e02a6 of this[_0xd76358(0x17a)])if(_0x1e02a6[_0xd76358(0x19c)]&&await _0x1e02a6['createCustomShape'](_0x5b318e))return!0x0;return!0x1;}};let _0x958287={'id':_0x4e38a9(0x1a9),'type':_0x1d0f37[_0x4e38a9(0x198)][_0x4e38a9(0x1c7)],'handler':(_0x353085,_0x1dd131)=>_0x1dd131?_0x353085['get'](_0x20701a)['beginInkMode'](_0x1dd131):!0x1},_0x36f7be={};function _0x1eacf4(_0x10d1e5,_0xb081a7){return function(_0x3066f4,_0x161a2e){_0xb081a7(_0x3066f4,_0x161a2e,_0x10d1e5);};}function _0x10e221(_0xbba19e,_0x16be48,_0x3313ed,_0x2dc907){const _0x476e93=_0x4e38a9;var _0x383068=arguments[_0x476e93(0x18a)],_0x5e4324=_0x383068<0x3?_0x16be48:_0x2dc907===null?_0x2dc907=Object[_0x476e93(0x199)](_0x16be48,_0x3313ed):_0x2dc907,_0x13d8d1;if(typeof Reflect==_0x476e93(0x1bd)&&typeof Reflect[_0x476e93(0x1cf)]==_0x476e93(0x174))_0x5e4324=Reflect[_0x476e93(0x1cf)](_0xbba19e,_0x16be48,_0x3313ed,_0x2dc907);else{for(var _0x569e87=_0xbba19e[_0x476e93(0x18a)]-0x1;_0x569e87>=0x0;_0x569e87--)(_0x13d8d1=_0xbba19e[_0x569e87])&&(_0x5e4324=(_0x383068<0x3?_0x13d8d1(_0x5e4324):_0x383068>0x3?_0x13d8d1(_0x16be48,_0x3313ed,_0x5e4324):_0x13d8d1(_0x16be48,_0x3313ed))||_0x5e4324);}return _0x383068>0x3&&_0x5e4324&&Object[_0x476e93(0x1c2)](_0x16be48,_0x3313ed,_0x5e4324),_0x5e4324;}let _0x52a115=class extends _0x1d0f37[_0x4e38a9(0x1b4)]{constructor(_0x2b1587=_0x36f7be,_0x554e81,_0x52668f,_0x59b433){const _0x2c5e9a=_0x4e38a9;super(),this[_0x2c5e9a(0x197)]=_0x2b1587,this[_0x2c5e9a(0x1cb)]=_0x554e81,this[_0x2c5e9a(0x196)]=_0x52668f,this[_0x2c5e9a(0x1ca)]=_0x59b433;let {..._0x855ebd}=(0x0,_0x1d0f37['merge'])({},_0x36f7be,this[_0x2c5e9a(0x197)]);this[_0x2c5e9a(0x1ca)]['setConfig'](_0x2c5e9a(0x1bb),_0x855ebd);}[_0x4e38a9(0x1ba)](){const _0x16181f=_0x4e38a9;[[_0x20701a,{'useClass':_0x8e1f60}]][_0x16181f(0x1ac)](_0x4b304a=>this['_injector'][_0x16181f(0x1cc)](_0x4b304a)),this[_0x16181f(0x17d)](this['_commandService']['registerCommand'](_0x958287));}};_0x230d2a(_0x52a115,_0x4e38a9(0x1b6),_0x4e38a9(0x16b)),_0x230d2a(_0x52a115,_0x4e38a9(0x1c0),_0x283b12),_0x230d2a(_0x52a115,_0x4e38a9(0x1a2),_0x588dcf),_0x230d2a(_0x52a115,_0x4e38a9(0x1aa),_0x1d0f37[_0x4e38a9(0x195)][_0x4e38a9(0x1c1)]),_0x52a115=_0x10e221([(0x0,_0x1d0f37[_0x4e38a9(0x161)])(_0x356d8f[_0x4e38a9(0x18c)]),_0x1eacf4(0x1,(0x0,_0x1d0f37['Inject'])(_0x1d0f37[_0x4e38a9(0x16f)])),_0x1eacf4(0x2,_0x1d0f37[_0x4e38a9(0x19b)]),_0x1eacf4(0x3,_0x1d0f37[_0x4e38a9(0x1be)])],_0x52a115),_0x4dd190['IInkHostAdapterService']=_0x20701a,Object[_0x4e38a9(0x1c2)](_0x4dd190,_0x4e38a9(0x1bf),{'enumerable':!0x0,'get':function(){return _0x52a115;}}),_0x4dd190[_0x4e38a9(0x179)]=_0x3d018b,_0x4dd190['convertBrushModelToPenModel']=_0x1920f4,_0x4dd190[_0x4e38a9(0x1c8)]=_0x4481db,_0x4dd190['deleteInkPenAnchor']=_0x571ff4,_0x4dd190[_0x4e38a9(0x1b5)]=_0x1e5948,_0x4dd190[_0x4e38a9(0x186)]=_0x23b578,_0x4dd190[_0x4e38a9(0x180)]=_0x43f7f6,_0x4dd190['getInkPenPreviewModel']=_0x3007fb,_0x4dd190[_0x4e38a9(0x188)]=_0x1fa9a8,_0x4dd190[_0x4e38a9(0x16d)]=_0x2ea2f6,_0x4dd190[_0x4e38a9(0x187)]=_0x147bc9,_0x4dd190[_0x4e38a9(0x1a0)]=_0x3aa496;}));
|
|
1
|
+
function _0x48cf(){const _0x5512a=['findClosestInkPenSegment','ShapeFillEnum','tool','join','UniverCore','norm','toPrimitive','DependentOn','anchorId','indexOf','1866832WrVawb','UniverProLicense','disposeWithMe','sqrt','prototype','2410gCykXe','decorate','max','pointType','_config','string','opacity','1.2.0','forEach','kind','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/engine-shape','fillColor','defineProperty','free','find','push','getInkPenPreviewModel','SolidLine','symmetric','Module','hypot','onStarting','endIndex','ink.host-adapter.service','7RWowtm','get','version','NoFill','IInkHostAdapterService','width','toStringTag','11vOZFaE','segmentIndex','createId','pen','SolidFill','smooth','abs','ShapeLineJoinEnum','245832fDixmI','1623044QlfKNq','convertBrushModelToPenModel','toDisposable','length','slice','function','min','buildInkCustomShapePayload','call','anchors','329502dmdaGh','OPERATION','UniverInstanceType','constructor','5rnhUlo','round','2867775OAlwxT','default','IConfigService','@univerjs-pro/ink','ink-centerline-','UniverProInk','_injector','ShapeTypeEnum','symbol','Round','corner','left','UNIVER_INK_PLUGIN','beginInkMode','packageName','start','createCustomShape','_adapters','end','_configService','7158070dKhwAv','color','map','startIndex','@univerjs-pro/license','right','ShapeLineTypeEnum','UniverLicensePlugin','splice','anchor','setInkPenAnchorPointType','ink.operation.start','cycleInkPenAnchorPointType','#f54a45','out','923dzpFhk','distance','iterator','point','Injector','deleteInkPenAnchor','filter','Rect','ICommandService','UniverInkPlugin','260AcRHUL','object','ShapeLineCapEnum','closed','points','top','9yKXpjD','_commandService'];_0x48cf=function(){return _0x5512a;};return _0x48cf();}function _0x5020(_0x337e34,_0x2789b4){_0x337e34=_0x337e34-0x168;const _0x48cf31=_0x48cf();let _0x50200b=_0x48cf31[_0x337e34];return _0x50200b;}(function(_0x5609c5,_0x40b4bc){const _0x1eb630=_0x5020,_0x2f9e06=_0x5609c5();while(!![]){try{const _0x170e48=parseInt(_0x1eb630(0x182))/0x1*(-parseInt(_0x1eb630(0x199))/0x2)+parseInt(_0x1eb630(0x1d2))/0x3+parseInt(_0x1eb630(0x1c2))/0x4*(parseInt(_0x1eb630(0x1d0))/0x5)+parseInt(_0x1eb630(0x1cc))/0x6*(-parseInt(_0x1eb630(0x1b2))/0x7)+-parseInt(_0x1eb630(0x194))/0x8*(-parseInt(_0x1eb630(0x188))/0x9)+-parseInt(_0x1eb630(0x169))/0xa*(-parseInt(_0x1eb630(0x1b9))/0xb)+-parseInt(_0x1eb630(0x1c1))/0xc*(parseInt(_0x1eb630(0x178))/0xd);if(_0x170e48===_0x40b4bc)break;else _0x2f9e06['push'](_0x2f9e06['shift']());}catch(_0x5b4a65){_0x2f9e06['push'](_0x2f9e06['shift']());}}}(_0x48cf,0x772bc),function(_0x5443e8,_0x509924){const _0x491c3a=_0x5020;typeof exports==_0x491c3a(0x183)&&typeof module<'u'?_0x509924(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x491c3a(0x1c7)&&define['amd']?define(['exports',_0x491c3a(0x1a4),_0x491c3a(0x16d),'@univerjs/core'],_0x509924):(_0x5443e8=typeof globalThis<'u'?globalThis:_0x5443e8||self,_0x509924(_0x5443e8[_0x491c3a(0x1d7)]={},_0x5443e8['UniverProEngineShape'],_0x5443e8[_0x491c3a(0x195)],_0x5443e8[_0x491c3a(0x18e)]));}(this,function(_0x5199c0,_0x44e042,_0x298c72,_0x11bd66){const _0x4b5f8d=_0x5020;Object[_0x4b5f8d(0x1a6)](_0x5199c0,Symbol[_0x4b5f8d(0x1b8)],{'value':_0x4b5f8d(0x1ad)});let _0x4a852d=0.0001;function _0x1bb78c(_0x2f8670){return{'x':_0x2f8670['x'],'y':_0x2f8670['y']};}function _0x4d9d42(_0x50cdd1){const _0x3c2339=_0x4b5f8d;return{..._0x50cdd1,'in':_0x50cdd1['in']?_0x1bb78c(_0x50cdd1['in']):void 0x0,'out':_0x50cdd1[_0x3c2339(0x177)]?_0x1bb78c(_0x50cdd1[_0x3c2339(0x177)]):void 0x0};}function _0x2ffb8a(_0x4c13f8){const _0x36f90a=_0x4b5f8d;return{'kind':_0x36f90a(0x1bc),'closed':_0x4c13f8[_0x36f90a(0x185)],'anchors':_0x4c13f8[_0x36f90a(0x1cb)][_0x36f90a(0x16b)](_0x4d9d42)};}function _0x4c5e72(_0x379fa3,_0x5d36dc,_0x2db572){return{'x':_0x379fa3['x']+(_0x5d36dc['x']-_0x379fa3['x'])*_0x2db572,'y':_0x379fa3['y']+(_0x5d36dc['y']-_0x379fa3['y'])*_0x2db572};}function _0x1f90c5(_0x47ab50,_0x2184ca){const _0xe2cede=_0x4b5f8d;return Math[_0xe2cede(0x1ae)](_0x47ab50['x']-_0x2184ca['x'],_0x47ab50['y']-_0x2184ca['y']);}function _0x4285f3(_0x3140a6){let _0x374880=Math['hypot'](_0x3140a6['x'],_0x3140a6['y']);return _0x374880<_0x4a852d?{'x':0x1,'y':0x0}:{'x':_0x3140a6['x']/_0x374880,'y':_0x3140a6['y']/_0x374880};}function _0x3cc879(_0x195b59,_0x505b4a,_0x1b333b=_0x1f90c5(_0x195b59,_0x505b4a)){let _0x384690=_0x4285f3({'x':_0x195b59['x']-_0x505b4a['x'],'y':_0x195b59['y']-_0x505b4a['y']});return{'x':_0x195b59['x']+_0x384690['x']*_0x1b333b,'y':_0x195b59['y']+_0x384690['y']*_0x1b333b};}function _0x4e3d47(_0x3d83ca,_0x53bd1b){const _0x1a32d2=_0x4b5f8d;let {anchors:_0x144b45}=_0x3d83ca;return _0x144b45['length']<0x2||_0x53bd1b<0x0?null:_0x53bd1b<_0x144b45[_0x1a32d2(0x1c5)]-0x1?{'startIndex':_0x53bd1b,'endIndex':_0x53bd1b+0x1,'start':_0x144b45[_0x53bd1b],'end':_0x144b45[_0x53bd1b+0x1]}:_0x3d83ca['closed']&&_0x53bd1b===_0x144b45['length']-0x1?{'startIndex':_0x144b45[_0x1a32d2(0x1c5)]-0x1,'endIndex':0x0,'start':_0x144b45[_0x144b45[_0x1a32d2(0x1c5)]-0x1],'end':_0x144b45[0x0]}:null;}function _0x4140ea(_0x1e0027,_0x52a6ef){const _0x5daf9d=_0x4b5f8d;let _0x45a77c=_0x4e3d47(_0x1e0027,_0x52a6ef);return _0x45a77c?[_0x45a77c[_0x5daf9d(0x1e1)],_0x45a77c['start'][_0x5daf9d(0x177)]??_0x45a77c[_0x5daf9d(0x1e1)],_0x45a77c[_0x5daf9d(0x1e4)]['in']??_0x45a77c['end'],_0x45a77c[_0x5daf9d(0x1e4)]]:null;}function _0x14fb80(_0x546e0f,_0x30f074){const _0x3aebda=_0x4b5f8d;return _0x30f074===_0x3aebda(0x172)?_0x546e0f:_0x546e0f[_0x30f074]??null;}function _0x2084de(_0x5b7f35,_0x4e7be2,_0x1100b3){const _0x9a59d6=_0x4b5f8d;return _0x1100b3==='anchor'||_0x5b7f35[_0x9a59d6(0x185)]?!0x0:_0x1100b3==='in'?_0x4e7be2>0x0:_0x4e7be2<_0x5b7f35['anchors'][_0x9a59d6(0x1c5)]-0x1;}function _0x198444(_0x10e6f0,_0x54ea41){let [_0x592af9,_0x5e07fe,_0x52ba9d,_0x1a4b20]=_0x10e6f0,_0x5aab36=_0x4c5e72(_0x592af9,_0x5e07fe,_0x54ea41),_0x329856=_0x4c5e72(_0x5e07fe,_0x52ba9d,_0x54ea41),_0x2aacc4=_0x4c5e72(_0x52ba9d,_0x1a4b20,_0x54ea41);return _0x4c5e72(_0x4c5e72(_0x5aab36,_0x329856,_0x54ea41),_0x4c5e72(_0x329856,_0x2aacc4,_0x54ea41),_0x54ea41);}function _0xd973f9(_0x4d39bd,_0x94d78e){let [_0x31767f,_0x12ddfa,_0x45f35e,_0x2ae486]=_0x4d39bd,_0x29f88c=_0x4c5e72(_0x31767f,_0x12ddfa,_0x94d78e),_0xaece30=_0x4c5e72(_0x12ddfa,_0x45f35e,_0x94d78e),_0x217089=_0x4c5e72(_0x45f35e,_0x2ae486,_0x94d78e),_0x16ba0d=_0x4c5e72(_0x29f88c,_0xaece30,_0x94d78e),_0xdbf8e8=_0x4c5e72(_0xaece30,_0x217089,_0x94d78e),_0x543a67=_0x4c5e72(_0x16ba0d,_0xdbf8e8,_0x94d78e);return{'left':[_0x31767f,_0x29f88c,_0x16ba0d,_0x543a67],'right':[_0x543a67,_0xdbf8e8,_0x217089,_0x2ae486]};}function _0x6655d9(_0x1bbd11,_0x4dcc30,_0x11d0e9){const _0x2ab5b7=_0x4b5f8d;let _0x16b81a=_0x11d0e9['x']-_0x4dcc30['x'],_0x415eb1=_0x11d0e9['y']-_0x4dcc30['y'],_0x2019e=_0x16b81a*_0x16b81a+_0x415eb1*_0x415eb1,_0x2fb090=_0x2019e<=_0x4a852d?0x0:Math[_0x2ab5b7(0x19b)](0x0,Math[_0x2ab5b7(0x1c8)](0x1,((_0x1bbd11['x']-_0x4dcc30['x'])*_0x16b81a+(_0x1bbd11['y']-_0x4dcc30['y'])*_0x415eb1)/_0x2019e)),_0x30a41c={'x':_0x4dcc30['x']+_0x16b81a*_0x2fb090,'y':_0x4dcc30['y']+_0x415eb1*_0x2fb090};return{'point':_0x30a41c,'ratio':_0x2fb090,'distance':_0x1f90c5(_0x1bbd11,_0x30a41c)};}function _0x1d687f(_0x108664,_0x33af25,_0x3dbc8d){const _0x4d4859=_0x4b5f8d;return _0x6655d9(_0x108664,_0x33af25,_0x3dbc8d)[_0x4d4859(0x179)]**0x2;}function _0x10018a(_0x47bc67,_0x320a24){const _0x1fbf22=_0x4b5f8d;if(_0x47bc67[_0x1fbf22(0x1c5)]<=0x2)return _0x47bc67[_0x1fbf22(0x16b)](_0x1bb78c);let _0x311cc7=0x0,_0x11e17f=0x0,_0x79ad17=_0x47bc67[0x0],_0x459b87=_0x47bc67[_0x47bc67[_0x1fbf22(0x1c5)]-0x1],_0x50f03d=_0x320a24*_0x320a24;for(let _0x71171b=0x1;_0x71171b<_0x47bc67['length']-0x1;_0x71171b++){let _0x14a3e2=_0x1d687f(_0x47bc67[_0x71171b],_0x79ad17,_0x459b87);_0x14a3e2>_0x311cc7&&(_0x311cc7=_0x14a3e2,_0x11e17f=_0x71171b);}if(_0x311cc7<=_0x50f03d)return[_0x1bb78c(_0x79ad17),_0x1bb78c(_0x459b87)];let _0x4243dc=_0x10018a(_0x47bc67[_0x1fbf22(0x1c6)](0x0,_0x11e17f+0x1),_0x320a24),_0x111f1d=_0x10018a(_0x47bc67['slice'](_0x11e17f),_0x320a24);return[..._0x4243dc['slice'](0x0,-0x1),..._0x111f1d];}function _0x5c59c9(_0x52d5be,_0x534e29){let _0x2ad6e5=_0x52d5be[_0x534e29],_0x58cc0a=_0x52d5be[_0x534e29+0x1],_0x3c20d5=_0x52d5be[_0x534e29-0x1]??_0x2ad6e5;return{'x':_0x2ad6e5['x']+(_0x58cc0a['x']-_0x3c20d5['x'])/0x6,'y':_0x2ad6e5['y']+(_0x58cc0a['y']-_0x3c20d5['y'])/0x6};}function _0x471ef9(_0x44ab4d,_0x48b0ee){let _0x34e4f8=_0x44ab4d[_0x48b0ee],_0x48906e=_0x44ab4d[_0x48b0ee-0x1],_0x4d1e8a=_0x44ab4d[_0x48b0ee+0x1]??_0x34e4f8;return{'x':_0x34e4f8['x']-(_0x4d1e8a['x']-_0x48906e['x'])/0x6,'y':_0x34e4f8['y']-(_0x4d1e8a['y']-_0x48906e['y'])/0x6};}function _0x33ea3f(_0x492993,_0x2d6f05){const _0x112b12=_0x4b5f8d;let _0x2b6f06=_0x492993[_0x112b12(0x1cb)][_0x2d6f05],_0x4e1f18=_0x492993[_0x112b12(0x1cb)][_0x2d6f05-0x1]??(_0x492993['closed']?_0x492993[_0x112b12(0x1cb)][_0x492993['anchors'][_0x112b12(0x1c5)]-0x1]:null),_0x465de8=_0x492993[_0x112b12(0x1cb)][_0x2d6f05+0x1]??(_0x492993[_0x112b12(0x185)]?_0x492993[_0x112b12(0x1cb)][0x0]:null),_0x3e26dc=_0x4e1f18&&_0x465de8?_0x4285f3({'x':_0x465de8['x']-_0x4e1f18['x'],'y':_0x465de8['y']-_0x4e1f18['y']}):_0x465de8?_0x4285f3({'x':_0x465de8['x']-_0x2b6f06['x'],'y':_0x465de8['y']-_0x2b6f06['y']}):_0x4e1f18?_0x4285f3({'x':_0x2b6f06['x']-_0x4e1f18['x'],'y':_0x2b6f06['y']-_0x4e1f18['y']}):{'x':0x1,'y':0x0},_0x43a11f=_0x4e1f18&&_0x465de8?Math['max'](0x32,_0x1f90c5(_0x4e1f18,_0x465de8)/0x4):0x32;return{'in':{'x':_0x2b6f06['x']-_0x3e26dc['x']*_0x43a11f,'y':_0x2b6f06['y']-_0x3e26dc['y']*_0x43a11f},'out':{'x':_0x2b6f06['x']+_0x3e26dc['x']*_0x43a11f,'y':_0x2b6f06['y']+_0x3e26dc['y']*_0x43a11f}};}function _0x47eca7(_0x142740,_0x4d9982){const _0x187ee1=_0x4b5f8d;let _0x1ae206=_0x142740[_0x4d9982],_0x565e4d=_0x4d9982==='in'?_0x187ee1(0x177):'in',_0x29dec5=_0x142740[_0x565e4d];_0x1ae206&&(_0x142740['pointType']===_0x187ee1(0x1ac)?_0x142740[_0x565e4d]=_0x3cc879(_0x142740,_0x1ae206):_0x142740[_0x187ee1(0x19c)]===_0x187ee1(0x1be)&&(_0x142740[_0x565e4d]=_0x3cc879(_0x142740,_0x1ae206,_0x29dec5?_0x1f90c5(_0x142740,_0x29dec5):_0x1f90c5(_0x142740,_0x1ae206))));}function _0x15af0b(_0xc904c9,_0x46e6f8){const _0x47390f=_0x4b5f8d;let _0x5a0fae=_0x2ffb8a(_0xc904c9);return!_0x46e6f8||_0x5a0fae['closed']||_0x5a0fae['anchors'][_0x47390f(0x1c5)]===0x0||_0x5a0fae['anchors']['push']({'id':'__ink-preview-anchor__','x':_0x46e6f8['x'],'y':_0x46e6f8['y'],'pointType':_0x47390f(0x1dc)}),_0x5a0fae;}function _0x372455(_0x1e3ed4,_0x637011={}){const _0x22f8ce=_0x4b5f8d;let _0x53e4e6=Math[_0x22f8ce(0x19b)](0x0,_0x637011['tolerance']??Math[_0x22f8ce(0x19b)](0x4,_0x1e3ed4[_0x22f8ce(0x1b7)]*0.35)),_0x154f5b=_0x637011[_0x22f8ce(0x1bb)]??(_0x109fee=>_0x22f8ce(0x1d6)+_0x109fee),_0x5bd1ea=_0x10018a(_0x1e3ed4[_0x22f8ce(0x186)],_0x53e4e6),_0x27f3f6=_0x5bd1ea[_0x22f8ce(0x16b)]((_0x3e137e,_0x2138de)=>({'id':_0x154f5b(_0x2138de),'x':_0x3e137e['x'],'y':_0x3e137e['y'],'pointType':_0x22f8ce(0x1a7)}));for(let _0x1ebc35=0x0;_0x1ebc35<_0x27f3f6[_0x22f8ce(0x1c5)]-0x1;_0x1ebc35++)_0x27f3f6[_0x1ebc35][_0x22f8ce(0x177)]=_0x5c59c9(_0x5bd1ea,_0x1ebc35),_0x27f3f6[_0x1ebc35+0x1]['in']=_0x471ef9(_0x5bd1ea,_0x1ebc35+0x1);return{'kind':_0x22f8ce(0x1bc),'closed':!0x1,'anchors':_0x27f3f6};}function _0x6ab892(_0xa676c6,_0x499afa,_0x27079a){const _0x22b37d=_0x4b5f8d;let _0xb1ecf8=null,_0x32f5a3=['anchor','in',_0x22b37d(0x177)];return _0xa676c6[_0x22b37d(0x1cb)][_0x22b37d(0x1a1)]((_0x542ffb,_0x5f1a14)=>{const _0x4a67ea=_0x22b37d;_0x32f5a3[_0x4a67ea(0x1a1)](_0x9fb9b7=>{if(!_0x2084de(_0xa676c6,_0x5f1a14,_0x9fb9b7))return;let _0x1f492a=_0x14fb80(_0x542ffb,_0x9fb9b7);if(!_0x1f492a)return;let _0x3f8ff6=_0x1f90c5(_0x499afa,_0x1f492a);_0x3f8ff6>_0x27079a||_0xb1ecf8&&_0x3f8ff6>=_0xb1ecf8['distance']||(_0xb1ecf8={'handle':{'kind':_0x9fb9b7,'anchorId':_0x542ffb['id']},'point':_0x1bb78c(_0x1f492a),'distance':_0x3f8ff6});});}),_0xb1ecf8;}function _0x591ccc(_0x42b84a,_0xe58555,_0x9fe05a){const _0x354335=_0x4b5f8d;let _0x59f3ad=null,_0x19ad69=_0x42b84a['closed']?_0x42b84a[_0x354335(0x1cb)]['length']:Math['max'](0x0,_0x42b84a[_0x354335(0x1cb)][_0x354335(0x1c5)]-0x1);for(let _0xe4908f=0x0;_0xe4908f<_0x19ad69;_0xe4908f++){let _0x3d5e9d=_0x4140ea(_0x42b84a,_0xe4908f);if(!_0x3d5e9d)continue;let _0x51eb15=_0x198444(_0x3d5e9d,0x0);for(let _0x3e5b50=0x1;_0x3e5b50<=0x20;_0x3e5b50++){let _0x352c3b=_0x198444(_0x3d5e9d,_0x3e5b50/0x20),_0x3b2108=_0x6655d9(_0xe58555,_0x51eb15,_0x352c3b),_0x3c59f5=(_0x3e5b50-0x1+_0x3b2108['ratio'])/0x20;(!_0x59f3ad||_0x3b2108[_0x354335(0x179)]<_0x59f3ad['distance'])&&(_0x59f3ad={'segmentIndex':_0xe4908f,'t':_0x3c59f5,'point':_0x3b2108[_0x354335(0x17b)],'distance':_0x3b2108['distance']}),_0x51eb15=_0x352c3b;}}return _0x59f3ad&&_0x59f3ad[_0x354335(0x179)]<=_0x9fe05a?_0x59f3ad:null;}function _0xe07201(_0x488c3a,_0x1c06d8,_0x27d417){const _0x350a35=_0x4b5f8d;let _0xb588c5=_0x2ffb8a(_0x488c3a),_0x291805=_0x4e3d47(_0xb588c5,_0x1c06d8[_0x350a35(0x1ba)]),_0x275ab0=_0x4140ea(_0xb588c5,_0x1c06d8[_0x350a35(0x1ba)]);if(!_0x291805||!_0x275ab0)return _0xb588c5;let _0x15286d=_0xd973f9(_0x275ab0,Math[_0x350a35(0x19b)](0x0,Math[_0x350a35(0x1c8)](0x1,_0x1c06d8['t']))),_0x5e36e0={'id':_0x27d417(),'x':_0x15286d[_0x350a35(0x1dd)][0x3]['x'],'y':_0x15286d[_0x350a35(0x1dd)][0x3]['y'],'in':_0x1bb78c(_0x15286d[_0x350a35(0x1dd)][0x2]),'out':_0x1bb78c(_0x15286d['right'][0x1]),'pointType':_0x350a35(0x1a7)};return _0xb588c5[_0x350a35(0x1cb)][_0x291805['startIndex']][_0x350a35(0x177)]=_0x1bb78c(_0x15286d[_0x350a35(0x1dd)][0x1]),_0xb588c5[_0x350a35(0x1cb)][_0x291805[_0x350a35(0x1b0)]]['in']=_0x1bb78c(_0x15286d[_0x350a35(0x16e)][0x2]),_0xb588c5[_0x350a35(0x1cb)][_0x350a35(0x171)](_0x291805[_0x350a35(0x16c)]+0x1,0x0,_0x5e36e0),_0xb588c5;}function _0x1e3fda(_0x5b216f,_0x34778f){const _0x2a6d25=_0x4b5f8d;let _0x38e6ad=_0x2ffb8a(_0x5b216f);return _0x38e6ad['anchors']=_0x38e6ad[_0x2a6d25(0x1cb)][_0x2a6d25(0x17e)](_0x436869=>_0x436869['id']!==_0x34778f),_0x38e6ad[_0x2a6d25(0x185)]&&_0x38e6ad[_0x2a6d25(0x1cb)][_0x2a6d25(0x1c5)]<0x3&&(_0x38e6ad[_0x2a6d25(0x185)]=!0x1),_0x38e6ad;}function _0x13f1a2(_0x3467b5,_0x1b6ec8,_0x3a2507){const _0x2627d8=_0x4b5f8d;let _0x59af2c=_0x2ffb8a(_0x3467b5),_0x5f37fc=_0x59af2c[_0x2627d8(0x1cb)]['findIndex'](_0x5952d0=>_0x5952d0['id']===_0x1b6ec8),_0x1c7816=_0x59af2c['anchors'][_0x5f37fc];if(!_0x1c7816)return _0x59af2c;if(_0x1c7816[_0x2627d8(0x19c)]=_0x3a2507,_0x3a2507===_0x2627d8(0x1dc))return delete _0x1c7816['in'],delete _0x1c7816[_0x2627d8(0x177)],_0x59af2c;let _0x496af8=_0x33ea3f(_0x59af2c,_0x5f37fc);if(_0x1c7816['in']=_0x1c7816['in']?_0x1bb78c(_0x1c7816['in']):_0x496af8['in'],_0x1c7816[_0x2627d8(0x177)]=_0x1c7816['out']?_0x1bb78c(_0x1c7816['out']):_0x496af8[_0x2627d8(0x177)],_0x3a2507===_0x2627d8(0x1ac)){let _0x230dd8=Math[_0x2627d8(0x19b)](_0x1f90c5(_0x1c7816,_0x1c7816['in']),_0x1f90c5(_0x1c7816,_0x1c7816[_0x2627d8(0x177)]),0x32),_0x9281a9=_0x4285f3({'x':_0x1c7816[_0x2627d8(0x177)]['x']-_0x1c7816['x'],'y':_0x1c7816['out']['y']-_0x1c7816['y']});_0x1c7816['out']={'x':_0x1c7816['x']+_0x9281a9['x']*_0x230dd8,'y':_0x1c7816['y']+_0x9281a9['y']*_0x230dd8},_0x1c7816['in']={'x':_0x1c7816['x']-_0x9281a9['x']*_0x230dd8,'y':_0x1c7816['y']-_0x9281a9['y']*_0x230dd8};}else _0x3a2507==='smooth'&&_0x47eca7(_0x1c7816,_0x2627d8(0x177));return _0x59af2c;}function _0x1fab29(_0x52c714,_0x2e688f){const _0x55b13f=_0x4b5f8d;let _0x29679a=_0x52c714[_0x55b13f(0x1cb)][_0x55b13f(0x1a8)](_0x452a2e=>_0x452a2e['id']===_0x2e688f),_0x512ec5=(_0x29679a==null?void 0x0:_0x29679a[_0x55b13f(0x19c)])??_0x55b13f(0x1dc);return _0x13f1a2(_0x52c714,_0x2e688f,_0x512ec5===_0x55b13f(0x1dc)?_0x55b13f(0x1be):_0x512ec5===_0x55b13f(0x1be)?_0x55b13f(0x1ac):_0x512ec5===_0x55b13f(0x1ac)?_0x55b13f(0x1a7):_0x55b13f(0x1dc));}function _0x4c35c9(_0x5221b3,_0x1cf072,_0x4da862){const _0x4226bf=_0x4b5f8d;let _0x512f0b=_0x2ffb8a(_0x5221b3),_0x433918=_0x512f0b['anchors'][_0x4226bf(0x1a8)](_0x3a3a32=>_0x3a3a32['id']===_0x1cf072[_0x4226bf(0x192)]);if(!_0x433918)return _0x512f0b;if(_0x1cf072[_0x4226bf(0x1a2)]===_0x4226bf(0x172)){let _0x2b2559={'x':_0x4da862['x']-_0x433918['x'],'y':_0x4da862['y']-_0x433918['y']};return _0x433918['x']=_0x4da862['x'],_0x433918['y']=_0x4da862['y'],_0x433918['in']&&={'x':_0x433918['in']['x']+_0x2b2559['x'],'y':_0x433918['in']['y']+_0x2b2559['y']},_0x433918[_0x4226bf(0x177)]&&={'x':_0x433918[_0x4226bf(0x177)]['x']+_0x2b2559['x'],'y':_0x433918[_0x4226bf(0x177)]['y']+_0x2b2559['y']},_0x512f0b;}return _0x433918[_0x1cf072[_0x4226bf(0x1a2)]]=_0x1bb78c(_0x4da862),_0x433918[_0x4226bf(0x19c)]===_0x4226bf(0x1dc)&&(_0x433918['pointType']=_0x4226bf(0x1a7)),_0x47eca7(_0x433918,_0x1cf072[_0x4226bf(0x1a2)]),_0x512f0b;}let _0x5094a4=1e-9;function _0x1fed24(_0x14a9d5){const _0x2c7cc4=_0x4b5f8d;let _0x570cdb=Math[_0x2c7cc4(0x1d1)](_0x14a9d5*0x2710)/0x2710;return Object['is'](_0x570cdb,-0x0)?'0':String(_0x570cdb);}function _0x5a172d(_0x274b1f){return _0x1fed24(_0x274b1f['x'])+'\x20'+_0x1fed24(_0x274b1f['y']);}function _0x1d3ccb(_0xd949c8,_0x3ccbd9){return{'x':_0xd949c8['x']-_0x3ccbd9['x'],'y':_0xd949c8['y']-_0x3ccbd9['y']};}function _0x1efd32(_0xc5e820,_0xcdeb68,_0xf9a4c1,_0x407fdd,_0x2fb836){let _0x5ef9d0=0x1-_0x2fb836;return{'x':_0x5ef9d0*_0x5ef9d0*_0x5ef9d0*_0xc5e820['x']+0x3*_0x5ef9d0*_0x5ef9d0*_0x2fb836*_0xcdeb68['x']+0x3*_0x5ef9d0*_0x2fb836*_0x2fb836*_0xf9a4c1['x']+_0x2fb836*_0x2fb836*_0x2fb836*_0x407fdd['x'],'y':_0x5ef9d0*_0x5ef9d0*_0x5ef9d0*_0xc5e820['y']+0x3*_0x5ef9d0*_0x5ef9d0*_0x2fb836*_0xcdeb68['y']+0x3*_0x5ef9d0*_0x2fb836*_0x2fb836*_0xf9a4c1['y']+_0x2fb836*_0x2fb836*_0x2fb836*_0x407fdd['y']};}function _0x16c304(_0x44671f,_0x563f0e,_0x413629,_0x46eeb5){const _0x22452d=_0x4b5f8d;let _0x2d6d46=-_0x44671f+0x3*_0x563f0e-0x3*_0x413629+_0x46eeb5,_0x50c843=0x3*_0x44671f-0x6*_0x563f0e+0x3*_0x413629,_0x7e5455=-0x3*_0x44671f+0x3*_0x563f0e,_0xfe759a=[];if(Math[_0x22452d(0x1bf)](_0x2d6d46)<_0x5094a4){if(Math['abs'](_0x50c843)<_0x5094a4)return _0xfe759a;let _0x4506eb=-_0x7e5455/(0x2*_0x50c843);return _0x4506eb>0x0&&_0x4506eb<0x1&&_0xfe759a[_0x22452d(0x1a9)](_0x4506eb),_0xfe759a;}let _0x4ebbc2=_0x50c843*_0x50c843-0x3*_0x2d6d46*_0x7e5455;if(_0x4ebbc2<0x0)return _0xfe759a;let _0x2a45bd=Math[_0x22452d(0x197)](Math[_0x22452d(0x19b)](0x0,_0x4ebbc2)),_0x514191=(-_0x50c843+_0x2a45bd)/(0x3*_0x2d6d46),_0x3542c9=(-_0x50c843-_0x2a45bd)/(0x3*_0x2d6d46);return _0x514191>0x0&&_0x514191<0x1&&_0xfe759a[_0x22452d(0x1a9)](_0x514191),_0x3542c9>0x0&&_0x3542c9<0x1&&Math['abs'](_0x3542c9-_0x514191)>_0x5094a4&&_0xfe759a['push'](_0x3542c9),_0xfe759a;}function _0x21e1d0(_0x3151a5,_0x2a4b0b,_0x116078,_0x537258,_0x4cfa7a){const _0x368557=_0x4b5f8d;_0x3151a5[_0x368557(0x1a9)](_0x2a4b0b,_0x4cfa7a),new Set([..._0x16c304(_0x2a4b0b['x'],_0x116078['x'],_0x537258['x'],_0x4cfa7a['x']),..._0x16c304(_0x2a4b0b['y'],_0x116078['y'],_0x537258['y'],_0x4cfa7a['y'])])[_0x368557(0x1a1)](_0x4b22c4=>{const _0x105742=_0x368557;_0x3151a5[_0x105742(0x1a9)](_0x1efd32(_0x2a4b0b,_0x116078,_0x537258,_0x4cfa7a,_0x4b22c4));});}function _0x4306b2(_0x3b0966){const _0x4542e9=_0x4b5f8d;let _0x112d0b=_0x3b0966[_0x4542e9(0x1cb)];if(_0x112d0b['length']<=0x1)return _0x112d0b;let _0x2356cc=[];for(let _0x1b65e0=0x1;_0x1b65e0<_0x112d0b[_0x4542e9(0x1c5)];_0x1b65e0++){let _0x59892b=_0x112d0b[_0x1b65e0-0x1],_0xd4cb79=_0x112d0b[_0x1b65e0];_0x21e1d0(_0x2356cc,_0x59892b,_0x59892b[_0x4542e9(0x177)]??_0x59892b,_0xd4cb79['in']??_0xd4cb79,_0xd4cb79);}if(_0x3b0966[_0x4542e9(0x185)]&&_0x112d0b[_0x4542e9(0x1c5)]>0x1){let _0x1bc067=_0x112d0b[_0x112d0b['length']-0x1],_0x343159=_0x112d0b[0x0];_0x21e1d0(_0x2356cc,_0x1bc067,_0x1bc067[_0x4542e9(0x177)]??_0x1bc067,_0x343159['in']??_0x343159,_0x343159);}return _0x2356cc;}function _0xb814f9(_0x4eee21){const _0x2e2920=_0x4b5f8d;let _0x55ae36=_0x4eee21['points'];if(_0x55ae36[_0x2e2920(0x1c5)]<=0x1)return _0x55ae36;let _0x3df9f1=[];for(let _0x291f02=0x0;_0x291f02<_0x55ae36['length']-0x1;_0x291f02++){let _0x49f23a=_0x55ae36[_0x291f02],_0x3e2b9b=_0x55ae36[_0x291f02+0x1],_0x5d4300=_0x55ae36[_0x291f02-0x1]??_0x49f23a,_0x43a4e0=_0x55ae36[_0x291f02+0x2]??_0x3e2b9b;_0x21e1d0(_0x3df9f1,_0x49f23a,{'x':_0x49f23a['x']+(_0x3e2b9b['x']-_0x5d4300['x'])/0x6,'y':_0x49f23a['y']+(_0x3e2b9b['y']-_0x5d4300['y'])/0x6},{'x':_0x3e2b9b['x']-(_0x43a4e0['x']-_0x49f23a['x'])/0x6,'y':_0x3e2b9b['y']-(_0x43a4e0['y']-_0x49f23a['y'])/0x6},_0x3e2b9b);}return _0x3df9f1;}function _0x2bd326(_0x56da9e){const _0x5a162d=_0x4b5f8d;return _0x56da9e[_0x5a162d(0x1a2)]===_0x5a162d(0x1bc)?_0x4306b2(_0x56da9e):_0xb814f9(_0x56da9e);}function _0xc3c344(_0x3c2498){const _0x49646c=_0x4b5f8d;let _0x2136a0=Math[_0x49646c(0x1d1)](_0x3c2498*0x2710)/0x2710;return Object['is'](_0x2136a0,-0x0)?0x0:_0x2136a0;}function _0x6c99a9(_0x2f24d6){const _0x4a272b=_0x4b5f8d;let _0x1caa82=_0x2bd326(_0x2f24d6);if(_0x1caa82[_0x4a272b(0x1c5)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x5dfbc7=Math[_0x4a272b(0x1c8)](..._0x1caa82[_0x4a272b(0x16b)](_0x3a7652=>_0x3a7652['x'])),_0x703fc5=Math[_0x4a272b(0x1c8)](..._0x1caa82[_0x4a272b(0x16b)](_0x541044=>_0x541044['y'])),_0x51d11a=Math[_0x4a272b(0x19b)](..._0x1caa82[_0x4a272b(0x16b)](_0x5dfc84=>_0x5dfc84['x'])),_0x52e309=Math[_0x4a272b(0x19b)](..._0x1caa82[_0x4a272b(0x16b)](_0x226193=>_0x226193['y']));return{'left':_0xc3c344(_0x5dfbc7),'top':_0xc3c344(_0x703fc5),'width':_0xc3c344(Math[_0x4a272b(0x19b)](0x1,_0x51d11a-_0x5dfbc7)),'height':_0xc3c344(Math['max'](0x1,_0x52e309-_0x703fc5))};}function _0x431d4b(_0x14dffb,_0x448f76){const _0x17948e=_0x4b5f8d;let _0x13d44b=_0x14dffb['anchors'];if(_0x13d44b['length']===0x0)return'';let _0x17686f=['M\x20'+_0x5a172d(_0x1d3ccb(_0x13d44b[0x0],_0x448f76))];for(let _0x1c72c=0x1;_0x1c72c<_0x13d44b[_0x17948e(0x1c5)];_0x1c72c++){let _0x2a8809=_0x13d44b[_0x1c72c-0x1],_0x2acf1d=_0x13d44b[_0x1c72c],_0x438203=_0x2a8809[_0x17948e(0x177)]??_0x2a8809,_0x2b7a29=_0x2acf1d['in']??_0x2acf1d;_0x17686f[_0x17948e(0x1a9)]('C\x20'+_0x5a172d(_0x1d3ccb(_0x438203,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0x2b7a29,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0x2acf1d,_0x448f76)));}if(_0x14dffb['closed']&&_0x13d44b[_0x17948e(0x1c5)]>0x1){let _0x5dffee=_0x13d44b[_0x13d44b[_0x17948e(0x1c5)]-0x1],_0x191f40=_0x13d44b[0x0],_0xe00553=_0x5dffee['out']??_0x5dffee,_0xc3c963=_0x191f40['in']??_0x191f40;_0x17686f[_0x17948e(0x1a9)]('C\x20'+_0x5a172d(_0x1d3ccb(_0xe00553,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0xc3c963,_0x448f76))+'\x20'+_0x5a172d(_0x1d3ccb(_0x191f40,_0x448f76))),_0x17686f['push']('Z');}return _0x17686f['join']('\x20');}function _0x697320(_0x5ddfe1,_0x15cec1){const _0x3878cb=_0x4b5f8d;let _0x13e095=_0x5ddfe1[_0x3878cb(0x186)][_0x3878cb(0x16b)](_0x9c73b2=>_0x1d3ccb(_0x9c73b2,_0x15cec1));if(_0x13e095['length']===0x0)return'';if(_0x13e095[_0x3878cb(0x1c5)]===0x1)return'M\x20'+_0x5a172d(_0x13e095[0x0]);let _0x2bf0f5=['M\x20'+_0x5a172d(_0x13e095[0x0])];for(let _0x4946d4=0x0;_0x4946d4<_0x13e095[_0x3878cb(0x1c5)]-0x1;_0x4946d4++){let _0x4b4e7c=_0x13e095[_0x4946d4],_0x7e37bf=_0x13e095[_0x4946d4+0x1],_0x2d14d8=_0x13e095[_0x4946d4-0x1]??_0x4b4e7c,_0x376618=_0x13e095[_0x4946d4+0x2]??_0x7e37bf,_0xc6f52c={'x':_0x4b4e7c['x']+(_0x7e37bf['x']-_0x2d14d8['x'])/0x6,'y':_0x4b4e7c['y']+(_0x7e37bf['y']-_0x2d14d8['y'])/0x6},_0x45b7cc={'x':_0x7e37bf['x']-(_0x376618['x']-_0x4b4e7c['x'])/0x6,'y':_0x7e37bf['y']-(_0x376618['y']-_0x4b4e7c['y'])/0x6};_0x2bf0f5[_0x3878cb(0x1a9)]('C\x20'+_0x5a172d(_0xc6f52c)+'\x20'+_0x5a172d(_0x45b7cc)+'\x20'+_0x5a172d(_0x7e37bf));}return _0x2bf0f5[_0x3878cb(0x18d)]('\x20');}function _0x27394e(_0x1fe347,_0xfdd277){const _0x2b74cd=_0x4b5f8d;return _0x1fe347[_0x2b74cd(0x1a2)]===_0x2b74cd(0x1bc)?_0x431d4b(_0x1fe347,_0xfdd277):_0x697320(_0x1fe347,_0xfdd277);}function _0x3fadd9(_0x2bf679,_0x1ddbf5){const _0x5c21ed=_0x4b5f8d;return _0x1ddbf5!=null&&_0x1ddbf5[_0x5c21ed(0x16a)]?_0x1ddbf5[_0x5c21ed(0x16a)]:_0x2bf679['kind']===_0x5c21ed(0x1bc)?_0x5c21ed(0x176):_0x2bf679[_0x5c21ed(0x16a)];}function _0x1a566b(_0x5f2ed1,_0x3f7cd5){const _0x18f00f=_0x4b5f8d;return(_0x3f7cd5==null?void 0x0:_0x3f7cd5[_0x18f00f(0x1b7)])===void 0x0?_0x5f2ed1[_0x18f00f(0x1a2)]===_0x18f00f(0x1bc)?0x2:_0x5f2ed1[_0x18f00f(0x1b7)]:_0x3f7cd5[_0x18f00f(0x1b7)];}function _0x363330(_0x5bbd95,_0x3c64cf){const _0x220686=_0x4b5f8d;return(_0x3c64cf==null?void 0x0:_0x3c64cf['opacity'])===void 0x0?_0x5bbd95[_0x220686(0x1a2)]==='pen'?void 0x0:_0x5bbd95[_0x220686(0x19f)]:_0x3c64cf[_0x220686(0x19f)];}function _0x4649c2(_0x3463bd,_0x4851b7){const _0x88463f=_0x4b5f8d;let _0x39735b=_0x6c99a9(_0x3463bd),_0xd4842f=_0x27394e(_0x3463bd,{'x':_0x39735b[_0x88463f(0x1dd)],'y':_0x39735b[_0x88463f(0x187)]}),_0x53882e=_0x3463bd['kind']==='pen'&&_0x3463bd[_0x88463f(0x185)],_0x16b896=_0x4851b7==null?void 0x0:_0x4851b7[_0x88463f(0x1a5)];return{'shapeType':_0x44e042[_0x88463f(0x1d9)][_0x88463f(0x17f)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x39735b['width'],'h':_0x39735b['height'],'fill':_0x53882e?_0x88463f(0x18f):'none','stroke':!0x0,'data':_0xd4842f,'dataArray':_0x5e57b1(_0x3463bd,{'x':_0x39735b['left'],'y':_0x39735b['top']})}]},'fill':_0x53882e&&_0x16b896?{'color':_0x16b896,'fillType':_0x44e042[_0x88463f(0x18b)][_0x88463f(0x1bd)]}:{'fillType':_0x44e042[_0x88463f(0x18b)][_0x88463f(0x1b5)]},'stroke':{'color':_0x3fadd9(_0x3463bd,_0x4851b7),'width':_0x1a566b(_0x3463bd,_0x4851b7),'opacity':_0x363330(_0x3463bd,_0x4851b7),'lineStrokeType':_0x44e042[_0x88463f(0x16f)][_0x88463f(0x1ab)],'capType':_0x44e042[_0x88463f(0x184)][_0x88463f(0x1db)],'lineJoinType':_0x44e042[_0x88463f(0x1c0)]['Round']}};}function _0xbf94c7(_0x1cc55c,_0x5edc39){return{'x':_0x1cc55c['x']-_0x5edc39['x'],'y':_0x1cc55c['y']-_0x5edc39['y']};}function _0x5e57b1(_0x549bf5,_0x4070f4){const _0x55f657=_0x4b5f8d;if(_0x549bf5[_0x55f657(0x1a2)]===_0x55f657(0x1bc)){let _0x485c61=_0x549bf5[_0x55f657(0x1cb)];if(_0x485c61[_0x55f657(0x1c5)]===0x0)return[];let _0xf9cc22=_0xbf94c7(_0x485c61[0x0],_0x4070f4),_0x1633c1=[{'command':'M','points':[_0xf9cc22['x'],_0xf9cc22['y']]}];for(let _0x1579a3=0x1;_0x1579a3<_0x485c61['length'];_0x1579a3++){let _0x358c6d=_0x485c61[_0x1579a3-0x1],_0x184a2=_0x485c61[_0x1579a3],_0x40d514=_0xbf94c7(_0x358c6d['out']??_0x358c6d,_0x4070f4),_0x115d1d=_0xbf94c7(_0x184a2['in']??_0x184a2,_0x4070f4),_0x2083c8=_0xbf94c7(_0x184a2,_0x4070f4);_0x1633c1[_0x55f657(0x1a9)]({'command':'C','points':[_0x40d514['x'],_0x40d514['y'],_0x115d1d['x'],_0x115d1d['y'],_0x2083c8['x'],_0x2083c8['y']]});}if(_0x549bf5['closed']&&_0x485c61[_0x55f657(0x1c5)]>0x1){let _0x2d0e72=_0x485c61[_0x485c61[_0x55f657(0x1c5)]-0x1],_0x4e554a=_0x485c61[0x0],_0xab9c30=_0xbf94c7(_0x2d0e72[_0x55f657(0x177)]??_0x2d0e72,_0x4070f4),_0x35ff13=_0xbf94c7(_0x4e554a['in']??_0x4e554a,_0x4070f4),_0x4dc799=_0xbf94c7(_0x4e554a,_0x4070f4);_0x1633c1[_0x55f657(0x1a9)]({'command':'C','points':[_0xab9c30['x'],_0xab9c30['y'],_0x35ff13['x'],_0x35ff13['y'],_0x4dc799['x'],_0x4dc799['y']]}),_0x1633c1['push']({'command':'z','points':[]});}return _0x1633c1;}let _0x4d4e4e=_0x549bf5['points']['map'](_0x2311ef=>_0xbf94c7(_0x2311ef,_0x4070f4));if(_0x4d4e4e[_0x55f657(0x1c5)]===0x0)return[];let _0x3c6b4a=[{'command':'M','points':[_0x4d4e4e[0x0]['x'],_0x4d4e4e[0x0]['y']]}];for(let _0xdfee90=0x0;_0xdfee90<_0x4d4e4e['length']-0x1;_0xdfee90++){let _0x555f2d=_0x4d4e4e[_0xdfee90],_0x343aa6=_0x4d4e4e[_0xdfee90+0x1],_0x3d4a41=_0x4d4e4e[_0xdfee90-0x1]??_0x555f2d,_0x27a5ed=_0x4d4e4e[_0xdfee90+0x2]??_0x343aa6,_0x408e9b={'x':_0x555f2d['x']+(_0x343aa6['x']-_0x3d4a41['x'])/0x6,'y':_0x555f2d['y']+(_0x343aa6['y']-_0x3d4a41['y'])/0x6},_0xd14de={'x':_0x343aa6['x']-(_0x27a5ed['x']-_0x555f2d['x'])/0x6,'y':_0x343aa6['y']-(_0x27a5ed['y']-_0x555f2d['y'])/0x6};_0x3c6b4a[_0x55f657(0x1a9)]({'command':'C','points':[_0x408e9b['x'],_0x408e9b['y'],_0xd14de['x'],_0xd14de['y'],_0x343aa6['x'],_0x343aa6['y']]});}return _0x3c6b4a;}function _0x80b26c(_0x1c4ef2){const _0x304a08=_0x4b5f8d;let {model:_0x59ae86,sourceModel:_0x35824d=_0x59ae86,style:_0x2a1f2e}=_0x1c4ef2,_0x124b62=_0x1c4ef2[_0x304a08(0x18c)]??_0x59ae86[_0x304a08(0x1a2)],_0x2ccabc=_0x6c99a9(_0x59ae86),_0x2f2499=_0x59ae86[_0x304a08(0x1a2)]===_0x304a08(0x1bc)&&_0x124b62!==_0x304a08(0x1bc)?_0x59ae86:void 0x0;return{'transform':{..._0x2ccabc,'rotation':0x0},'shapeData':_0x4649c2(_0x59ae86,_0x2a1f2e),'ink':{'version':0x1,'tool':_0x124b62,'sourceModel':_0x35824d,..._0x2f2499?{'editModel':_0x2f2499}:{},'normalizedBounds':_0x2ccabc}};}var _0x28c0f4=_0x4b5f8d(0x1d5),_0x46cfa3=_0x4b5f8d(0x1a0);function _0x110de8(_0x40f14d){'@babel/helpers - typeof';const _0x11ee67=_0x4b5f8d;return _0x110de8=typeof Symbol==_0x11ee67(0x1c7)&&typeof Symbol[_0x11ee67(0x17a)]==_0x11ee67(0x1da)?function(_0x51ab9b){return typeof _0x51ab9b;}:function(_0x5f4651){const _0xc4dbd=_0x11ee67;return _0x5f4651&&typeof Symbol==_0xc4dbd(0x1c7)&&_0x5f4651[_0xc4dbd(0x1cf)]===Symbol&&_0x5f4651!==Symbol[_0xc4dbd(0x198)]?_0xc4dbd(0x1da):typeof _0x5f4651;},_0x110de8(_0x40f14d);}function _0x2a47df(_0x3476d1,_0x352984){const _0x3b5d2e=_0x4b5f8d;if(_0x110de8(_0x3476d1)!=_0x3b5d2e(0x183)||!_0x3476d1)return _0x3476d1;var _0x1f010a=_0x3476d1[Symbol[_0x3b5d2e(0x190)]];if(_0x1f010a!==void 0x0){var _0x501369=_0x1f010a[_0x3b5d2e(0x1ca)](_0x3476d1,_0x352984||_0x3b5d2e(0x1d3));if(_0x110de8(_0x501369)!=_0x3b5d2e(0x183))return _0x501369;throw TypeError(_0x3b5d2e(0x1a3));}return(_0x352984===_0x3b5d2e(0x19e)?String:Number)(_0x3476d1);}function _0x5cb14c(_0x56edd5){const _0x47d468=_0x4b5f8d;var _0x267daa=_0x2a47df(_0x56edd5,'string');return _0x110de8(_0x267daa)==_0x47d468(0x1da)?_0x267daa:_0x267daa+'';}function _0x2f841d(_0x2a7384,_0x3a1fac,_0x24bec3){const _0x4fd01e=_0x4b5f8d;return(_0x3a1fac=_0x5cb14c(_0x3a1fac))in _0x2a7384?Object[_0x4fd01e(0x1a6)](_0x2a7384,_0x3a1fac,{'value':_0x24bec3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2a7384[_0x3a1fac]=_0x24bec3,_0x2a7384;}let _0x11bd0f=(0x0,_0x11bd66['createIdentifier'])(_0x4b5f8d(0x1b1));var _0x38c2ac=class{constructor(){const _0x327668=_0x4b5f8d;_0x2f841d(this,_0x327668(0x1e3),[]);}['registerAdapter'](_0xea2b33){const _0x23e4e8=_0x4b5f8d;return this[_0x23e4e8(0x1e3)][_0x23e4e8(0x1a9)](_0xea2b33),(0x0,_0x11bd66[_0x23e4e8(0x1c4)])(()=>{const _0x16f809=_0x23e4e8;let _0x30d46c=this[_0x16f809(0x1e3)][_0x16f809(0x193)](_0xea2b33);_0x30d46c>=0x0&&this['_adapters'][_0x16f809(0x171)](_0x30d46c,0x1);});}['beginInkMode'](_0x24c626){const _0xd884c3=_0x4b5f8d;for(let _0x390223 of this[_0xd884c3(0x1e3)])if(_0x390223[_0xd884c3(0x1df)](_0x24c626))return!0x0;return!0x1;}async[_0x4b5f8d(0x1e2)](_0x4d8e76){const _0x33dc3e=_0x4b5f8d;for(let _0x221fcd of this[_0x33dc3e(0x1e3)])if(_0x221fcd[_0x33dc3e(0x1e2)]&&await _0x221fcd['createCustomShape'](_0x4d8e76))return!0x0;return!0x1;}};let _0x3e73f3={'id':_0x4b5f8d(0x174),'type':_0x11bd66['CommandType'][_0x4b5f8d(0x1cd)],'handler':(_0x2022ad,_0x142f62)=>_0x142f62?_0x2022ad[_0x4b5f8d(0x1b3)](_0x11bd0f)[_0x4b5f8d(0x1df)](_0x142f62):!0x1},_0x15ebdb={};function _0xc59892(_0x405f8f,_0x1a3afd){return function(_0x7552f0,_0x21e5c3){_0x1a3afd(_0x7552f0,_0x21e5c3,_0x405f8f);};}function _0x1b967c(_0x42c250,_0x54be9a,_0x5a4153,_0x2dcf1b){const _0x1bf93f=_0x4b5f8d;var _0xdb9d2f=arguments[_0x1bf93f(0x1c5)],_0x17a43d=_0xdb9d2f<0x3?_0x54be9a:_0x2dcf1b===null?_0x2dcf1b=Object['getOwnPropertyDescriptor'](_0x54be9a,_0x5a4153):_0x2dcf1b,_0x39269c;if(typeof Reflect==_0x1bf93f(0x183)&&typeof Reflect['decorate']==_0x1bf93f(0x1c7))_0x17a43d=Reflect[_0x1bf93f(0x19a)](_0x42c250,_0x54be9a,_0x5a4153,_0x2dcf1b);else{for(var _0x30ca84=_0x42c250[_0x1bf93f(0x1c5)]-0x1;_0x30ca84>=0x0;_0x30ca84--)(_0x39269c=_0x42c250[_0x30ca84])&&(_0x17a43d=(_0xdb9d2f<0x3?_0x39269c(_0x17a43d):_0xdb9d2f>0x3?_0x39269c(_0x54be9a,_0x5a4153,_0x17a43d):_0x39269c(_0x54be9a,_0x5a4153))||_0x17a43d);}return _0xdb9d2f>0x3&&_0x17a43d&&Object[_0x1bf93f(0x1a6)](_0x54be9a,_0x5a4153,_0x17a43d),_0x17a43d;}let _0x471dfb=class extends _0x11bd66['Plugin']{constructor(_0x3b6979=_0x15ebdb,_0x15ac70,_0x43b37a,_0x88cd30){const _0x4f8a11=_0x4b5f8d;super(),this[_0x4f8a11(0x19d)]=_0x3b6979,this[_0x4f8a11(0x1d8)]=_0x15ac70,this['_commandService']=_0x43b37a,this['_configService']=_0x88cd30;let {..._0x1f709d}=(0x0,_0x11bd66['merge'])({},_0x15ebdb,this['_config']);this[_0x4f8a11(0x168)]['setConfig']('ink.config',_0x1f709d);}[_0x4b5f8d(0x1af)](){const _0x1ba45a=_0x4b5f8d;[[_0x11bd0f,{'useClass':_0x38c2ac}]][_0x1ba45a(0x1a1)](_0xe2bbf5=>this[_0x1ba45a(0x1d8)]['add'](_0xe2bbf5)),this[_0x1ba45a(0x196)](this[_0x1ba45a(0x189)]['registerCommand'](_0x3e73f3));}};_0x2f841d(_0x471dfb,'pluginName',_0x4b5f8d(0x1de)),_0x2f841d(_0x471dfb,_0x4b5f8d(0x1e0),_0x28c0f4),_0x2f841d(_0x471dfb,_0x4b5f8d(0x1b4),_0x46cfa3),_0x2f841d(_0x471dfb,'type',_0x11bd66[_0x4b5f8d(0x1ce)]['UNIVER_UNKNOWN']),_0x471dfb=_0x1b967c([(0x0,_0x11bd66[_0x4b5f8d(0x191)])(_0x298c72[_0x4b5f8d(0x170)]),_0xc59892(0x1,(0x0,_0x11bd66['Inject'])(_0x11bd66[_0x4b5f8d(0x17c)])),_0xc59892(0x2,_0x11bd66[_0x4b5f8d(0x180)]),_0xc59892(0x3,_0x11bd66[_0x4b5f8d(0x1d4)])],_0x471dfb),_0x5199c0[_0x4b5f8d(0x1b6)]=_0x11bd0f,Object['defineProperty'](_0x5199c0,_0x4b5f8d(0x181),{'enumerable':!0x0,'get':function(){return _0x471dfb;}}),_0x5199c0[_0x4b5f8d(0x1c9)]=_0x80b26c,_0x5199c0[_0x4b5f8d(0x1c3)]=_0x372455,_0x5199c0[_0x4b5f8d(0x175)]=_0x1fab29,_0x5199c0[_0x4b5f8d(0x17d)]=_0x1e3fda,_0x5199c0['findClosestInkPenHandle']=_0x6ab892,_0x5199c0[_0x4b5f8d(0x18a)]=_0x591ccc,_0x5199c0['getInkModelBounds']=_0x6c99a9,_0x5199c0[_0x4b5f8d(0x1aa)]=_0x15af0b,_0x5199c0['insertInkPenAnchorAt']=_0xe07201,_0x5199c0['isInkPenHandleVisible']=_0x2084de,_0x5199c0['moveInkPenAnchorPoint']=_0x4c35c9,_0x5199c0[_0x4b5f8d(0x173)]=_0x13f1a2;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/ink",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Reusable ink model and geometry integration for Univer.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"lib"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs-pro/boards": "1.
|
|
62
|
-
"@univerjs-pro/engine-shape": "1.
|
|
63
|
-
"@univerjs-pro/license": "1.
|
|
64
|
-
"@univerjs/core": "1.
|
|
61
|
+
"@univerjs-pro/boards": "1.2.0",
|
|
62
|
+
"@univerjs-pro/engine-shape": "1.2.0",
|
|
63
|
+
"@univerjs-pro/license": "1.2.0",
|
|
64
|
+
"@univerjs/core": "1.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@univerjs-infra/shared": "1.
|
|
67
|
+
"@univerjs-infra/shared": "1.2.0",
|
|
68
68
|
"typescript": "^6.0.3",
|
|
69
69
|
"vitest": "^5.0.4"
|
|
70
70
|
},
|