@univerjs-pro/ink 1.2.0 → 1.3.1
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 _0x187c73=_0x2390;(function(_0x49ad09,_0x4dcb6c){const _0x2cb60b=_0x2390,_0xf72c8d=_0x49ad09();while(!![]){try{const _0x3625f2=-parseInt(_0x2cb60b(0x104))/0x1*(-parseInt(_0x2cb60b(0x11a))/0x2)+-parseInt(_0x2cb60b(0xf3))/0x3+parseInt(_0x2cb60b(0xe8))/0x4+-parseInt(_0x2cb60b(0xe2))/0x5*(-parseInt(_0x2cb60b(0x116))/0x6)+-parseInt(_0x2cb60b(0xe3))/0x7*(-parseInt(_0x2cb60b(0x107))/0x8)+parseInt(_0x2cb60b(0x10d))/0x9*(parseInt(_0x2cb60b(0x10c))/0xa)+-parseInt(_0x2cb60b(0xec))/0xb*(parseInt(_0x2cb60b(0x121))/0xc);if(_0x3625f2===_0x4dcb6c)break;else _0xf72c8d['push'](_0xf72c8d['shift']());}catch(_0x288c04){_0xf72c8d['push'](_0xf72c8d['shift']());}}}(_0xf87a,0xf0e0f),Object[_0x187c73(0x120)](exports,Symbol[_0x187c73(0xf6)],{'value':_0x187c73(0xfa)}));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[_0x187c73(0x10b)]{[_0x187c73(0xf9)](_0x44276f){const _0x209ebe=_0x187c73;let _0xa1b9af=o(_0x44276f);return _0xa1b9af&&this[_0x209ebe(0x114)](_0xa1b9af,{'insertIndex':_0x44276f[_0x209ebe(0xf1)]})?_0xa1b9af:null;}['getInks'](){const _0x3809bd=_0x187c73;return this[_0x3809bd(0xf0)]({'elementType':e[_0x3809bd(0xef)][_0x3809bd(0xe7)],'includeHidden':!0x0,'includeLocked':!0x0})[_0x3809bd(0xf4)](f);}};function o(_0x140b0d,_0x564eef){const _0x351bdd=_0x187c73;if(!c(_0x140b0d[_0x351bdd(0xee)])||_0x140b0d[_0x351bdd(0xe6)]!==void 0x0&&!c(_0x140b0d['sourceModel'])||!l(_0x140b0d[_0x351bdd(0x108)]))return null;let _0x5c7557=_0x140b0d[_0x351bdd(0xe9)]??(_0x564eef==null?void 0x0:_0x564eef[_0x351bdd(0xe9)]),_0x4d2abc=r[_0x351bdd(0xf2)][_0x351bdd(0xfc)](_0x140b0d['model']),_0x2f2e2d=(0x0,n[_0x351bdd(0x112)])({'model':_0x4d2abc,'style':_0x140b0d[_0x351bdd(0x108)],'tool':_0x140b0d[_0x351bdd(0x101)],'sourceModel':_0x140b0d[_0x351bdd(0xe6)]?r['Tools']['deepClone'](_0x140b0d['sourceModel']):_0x4d2abc}),_0x348007=u(_0x564eef==null?void 0x0:_0x564eef[_0x351bdd(0xed)]);return{'id':(_0x564eef==null?void 0x0:_0x564eef['id'])??_0x140b0d['id']??(0x0,r[_0x351bdd(0x11b)])(0x6),'type':e['BoardElementType'][_0x351bdd(0xe7)],'transform':_0x2f2e2d['transform'],'shapeData':_0x2f2e2d[_0x351bdd(0x10f)],'parentId':_0x5c7557??void 0x0,'laneId':_0x140b0d[_0x351bdd(0x10e)]===void 0x0?_0x564eef==null?void 0x0:_0x564eef[_0x351bdd(0x10e)]:_0x140b0d[_0x351bdd(0x10e)],'custom':{..._0x348007,'ink':_0x2f2e2d[_0x351bdd(0xea)]}};}function s(_0x175a5f){const _0x5a7d6b=_0x187c73;return Number[_0x5a7d6b(0x11f)](_0x175a5f['x'])&&Number[_0x5a7d6b(0x11f)](_0x175a5f['y']);}function c(_0x1f4e9f){const _0x4d55b2=_0x187c73;if(_0x1f4e9f[_0x4d55b2(0x111)]==='pen'){let _0x127107=new Set();return _0x1f4e9f['anchors'][_0x4d55b2(0x119)]>=(_0x1f4e9f[_0x4d55b2(0x11d)]?0x3:0x2)&&_0x1f4e9f[_0x4d55b2(0x105)][_0x4d55b2(0xfd)](_0x54c1f4=>{const _0x54582c=_0x4d55b2;let _0x121d22=_0x54c1f4['id'][_0x54582c(0xf7)]()[_0x54582c(0x119)]>0x0&&!_0x127107[_0x54582c(0xf5)](_0x54c1f4['id'])&&s(_0x54c1f4)&&(!_0x54c1f4['in']||s(_0x54c1f4['in']))&&(!_0x54c1f4[_0x54582c(0x11c)]||s(_0x54c1f4[_0x54582c(0x11c)]));return _0x127107[_0x54582c(0x103)](_0x54c1f4['id']),_0x121d22;});}return _0x1f4e9f[_0x4d55b2(0xeb)]['length']>=0x2&&_0x1f4e9f[_0x4d55b2(0xeb)][_0x4d55b2(0xfd)](_0x2c6c92=>s(_0x2c6c92)&&Number['isFinite'](_0x2c6c92['t'])&&(_0x2c6c92[_0x4d55b2(0x115)]===void 0x0||Number[_0x4d55b2(0x11f)](_0x2c6c92['pressure'])))&&Number['isFinite'](_0x1f4e9f['width'])&&_0x1f4e9f['width']>0x0&&Number[_0x4d55b2(0x11f)](_0x1f4e9f[_0x4d55b2(0x109)])&&_0x1f4e9f[_0x4d55b2(0x109)]>=0x0&&_0x1f4e9f[_0x4d55b2(0x109)]<=0x1;}function l(_0x49bd85){const _0x29f588=_0x187c73;return _0x49bd85===void 0x0||(_0x49bd85['width']===void 0x0||Number['isFinite'](_0x49bd85[_0x29f588(0xf8)])&&_0x49bd85['width']>0x0)&&(_0x49bd85['opacity']===void 0x0||Number['isFinite'](_0x49bd85[_0x29f588(0x109)])&&_0x49bd85['opacity']>=0x0&&_0x49bd85['opacity']<=0x1);}function u(_0x270b53){const _0x3f47f2=_0x187c73;return _0x270b53&&typeof _0x270b53==_0x3f47f2(0x118)&&!Array[_0x3f47f2(0x106)](_0x270b53)?_0x270b53:{};}function _0x2390(_0x533ffb,_0x3fcea5){_0x533ffb=_0x533ffb-0xe2;const _0xf87a82=_0xf87a();let _0x23908c=_0xf87a82[_0x533ffb];return _0x23908c;}function d(_0x57e8d0){const _0x18b2e1=_0x187c73;let _0x1a16a4=u(_0x57e8d0[_0x18b2e1(0xed)])[_0x18b2e1(0xea)];if(!_0x1a16a4||typeof _0x1a16a4!='object'||Array[_0x18b2e1(0x106)](_0x1a16a4))return null;let _0x40bc38=_0x1a16a4;return _0x40bc38[_0x18b2e1(0xe5)]===0x1&&_0x40bc38[_0x18b2e1(0xe6)]&&typeof _0x40bc38[_0x18b2e1(0xe6)]==_0x18b2e1(0x118)?_0x40bc38:null;}function f(_0x13047c){const _0x101292=_0x187c73;return _0x13047c[_0x101292(0x117)]===e[_0x101292(0xef)][_0x101292(0xe7)]&&!!d(_0x13047c);}t[_0x187c73(0x10b)]['extend'](a);const p={'Pen':_0x187c73(0x10a),'Brush':_0x187c73(0xe4),'Highlighter':_0x187c73(0x102)},m={'Corner':_0x187c73(0xff),'Smooth':'smooth','Symmetric':_0x187c73(0x122),'Free':_0x187c73(0x100)},h={'Anchor':_0x187c73(0x110),'In':'in','Out':_0x187c73(0x11c)};function _0xf87a(){const _0x24fed3=['pressure','1745526wtJiaK','type','object','length','2kaIHWv','generateRandomId','out','closed','BoardInkTool','isFinite','defineProperty','12cNHjIU','symmetric','10wkinQi','7kZiCaD','brush','version','sourceModel','Shape','677852mCHuIZ','parentId','ink','points','38732683qlAhsH','custom','model','BoardElementType','findElements','insertIndex','Tools','2573634ewUIuv','filter','has','toStringTag','trim','width','insertInk','Module','FEnum','deepClone','every','extend','corner','free','tool','highlighter','add','1775057WVeWWd','anchors','isArray','10321368GNMaHz','style','opacity','pen','FBoard','5163790LSLoWz','27SIwIsE','laneId','shapeData','anchor','kind','buildInkCustomShapePayload','BoardInkPointType','_addElement'];_0xf87a=function(){return _0x24fed3;};return _0xf87a();}var g=class extends i[_0x187c73(0xfb)]{get[_0x187c73(0x11e)](){return p;}get['BoardInkPointType'](){return m;}get['BoardInkHandleKind'](){return h;}};i[_0x187c73(0xfb)][_0x187c73(0xfe)](g),exports['BoardInkHandleKind']=h,exports[_0x187c73(0x113)]=m,exports[_0x187c73(0x11e)]=p;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
const _0x39a0e4=_0x4068;(function(_0x4a4cac,_0x422086){const _0x56f63d=_0x4068,_0x19c90e=_0x4a4cac();while(!![]){try{const _0x127c3b=parseInt(_0x56f63d(0x247))/0x1+-parseInt(_0x56f63d(0x254))/0x2+-parseInt(_0x56f63d(0x20f))/0x3+parseInt(_0x56f63d(0x248))/0x4+parseInt(_0x56f63d(0x216))/0x5*(-parseInt(_0x56f63d(0x250))/0x6)+-parseInt(_0x56f63d(0x205))/0x7+parseInt(_0x56f63d(0x1fe))/0x8;if(_0x127c3b===_0x422086)break;else _0x19c90e['push'](_0x19c90e['shift']());}catch(_0x468f3e){_0x19c90e['push'](_0x19c90e['shift']());}}}(_0x2e77,0xe7a13),Object[_0x39a0e4(0x24b)](exports,Symbol['toStringTag'],{'value':_0x39a0e4(0x20a)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x507d83){return{'x':_0x507d83['x'],'y':_0x507d83['y']};}function a(_0x1b9d20){const _0x20d732=_0x39a0e4;return{..._0x1b9d20,'in':_0x1b9d20['in']?i(_0x1b9d20['in']):void 0x0,'out':_0x1b9d20[_0x20d732(0x1fd)]?i(_0x1b9d20[_0x20d732(0x1fd)]):void 0x0};}function o(_0x47eb48){const _0x9b5ab7=_0x39a0e4;return{'kind':_0x9b5ab7(0x253),'closed':_0x47eb48[_0x9b5ab7(0x244)],'anchors':_0x47eb48[_0x9b5ab7(0x1ee)][_0x9b5ab7(0x238)](a)};}function s(_0x18b38a,_0x1c2840,_0x3bb93e){return{'x':_0x18b38a['x']+(_0x1c2840['x']-_0x18b38a['x'])*_0x3bb93e,'y':_0x18b38a['y']+(_0x1c2840['y']-_0x18b38a['y'])*_0x3bb93e};}function c(_0x58b44c,_0x198406){const _0x1c9d11=_0x39a0e4;return Math[_0x1c9d11(0x217)](_0x58b44c['x']-_0x198406['x'],_0x58b44c['y']-_0x198406['y']);}function l(_0x1aefc2){const _0x1c18be=_0x39a0e4;let _0x38418d=Math[_0x1c18be(0x217)](_0x1aefc2['x'],_0x1aefc2['y']);return _0x38418d<r?{'x':0x1,'y':0x0}:{'x':_0x1aefc2['x']/_0x38418d,'y':_0x1aefc2['y']/_0x38418d};}function u(_0xbd0045,_0x27c756,_0x418159=c(_0xbd0045,_0x27c756)){let _0x1755a4=l({'x':_0xbd0045['x']-_0x27c756['x'],'y':_0xbd0045['y']-_0x27c756['y']});return{'x':_0xbd0045['x']+_0x1755a4['x']*_0x418159,'y':_0xbd0045['y']+_0x1755a4['y']*_0x418159};}function d(_0x6348b2,_0x51a427){const _0x2b0c6a=_0x39a0e4;let {anchors:_0x1fc3e4}=_0x6348b2;return _0x1fc3e4[_0x2b0c6a(0x1f2)]<0x2||_0x51a427<0x0?null:_0x51a427<_0x1fc3e4[_0x2b0c6a(0x1f2)]-0x1?{'startIndex':_0x51a427,'endIndex':_0x51a427+0x1,'start':_0x1fc3e4[_0x51a427],'end':_0x1fc3e4[_0x51a427+0x1]}:_0x6348b2[_0x2b0c6a(0x244)]&&_0x51a427===_0x1fc3e4[_0x2b0c6a(0x1f2)]-0x1?{'startIndex':_0x1fc3e4[_0x2b0c6a(0x1f2)]-0x1,'endIndex':0x0,'start':_0x1fc3e4[_0x1fc3e4[_0x2b0c6a(0x1f2)]-0x1],'end':_0x1fc3e4[0x0]}:null;}function f(_0x28bff3,_0xd54cbf){const _0x486ea8=_0x39a0e4;let _0x323726=d(_0x28bff3,_0xd54cbf);return _0x323726?[_0x323726['start'],_0x323726[_0x486ea8(0x1ea)]['out']??_0x323726[_0x486ea8(0x1ea)],_0x323726['end']['in']??_0x323726[_0x486ea8(0x225)],_0x323726['end']]:null;}function ee(_0x418bda,_0x5c4652){return _0x5c4652==='anchor'?_0x418bda:_0x418bda[_0x5c4652]??null;}function p(_0x46a957,_0x4520ff,_0x1268c5){const _0x1b7ebe=_0x39a0e4;return _0x1268c5===_0x1b7ebe(0x243)||_0x46a957['closed']?!0x0:_0x1268c5==='in'?_0x4520ff>0x0:_0x4520ff<_0x46a957[_0x1b7ebe(0x1ee)]['length']-0x1;}function m(_0x50f4a2,_0x406fbd){let [_0x538666,_0xb90122,_0x333674,_0x16bc30]=_0x50f4a2,_0x1291c1=s(_0x538666,_0xb90122,_0x406fbd),_0x5ef3e8=s(_0xb90122,_0x333674,_0x406fbd),_0x32aed5=s(_0x333674,_0x16bc30,_0x406fbd);return s(s(_0x1291c1,_0x5ef3e8,_0x406fbd),s(_0x5ef3e8,_0x32aed5,_0x406fbd),_0x406fbd);}function h(_0x3f9847,_0x3dd5ff){let [_0x4e99df,_0x35ca51,_0x5d9b09,_0x54cabb]=_0x3f9847,_0x2e67f8=s(_0x4e99df,_0x35ca51,_0x3dd5ff),_0x3c3d7b=s(_0x35ca51,_0x5d9b09,_0x3dd5ff),_0x3cd9eb=s(_0x5d9b09,_0x54cabb,_0x3dd5ff),_0xcb841b=s(_0x2e67f8,_0x3c3d7b,_0x3dd5ff),_0x2cddfc=s(_0x3c3d7b,_0x3cd9eb,_0x3dd5ff),_0x49edce=s(_0xcb841b,_0x2cddfc,_0x3dd5ff);return{'left':[_0x4e99df,_0x2e67f8,_0xcb841b,_0x49edce],'right':[_0x49edce,_0x2cddfc,_0x3cd9eb,_0x54cabb]};}function g(_0x193a5c,_0x17f90e,_0x113dec){const _0x2aba5b=_0x39a0e4;let _0x24b94b=_0x113dec['x']-_0x17f90e['x'],_0x214ae8=_0x113dec['y']-_0x17f90e['y'],_0x115472=_0x24b94b*_0x24b94b+_0x214ae8*_0x214ae8,_0x48b74d=_0x115472<=r?0x0:Math[_0x2aba5b(0x237)](0x0,Math[_0x2aba5b(0x21e)](0x1,((_0x193a5c['x']-_0x17f90e['x'])*_0x24b94b+(_0x193a5c['y']-_0x17f90e['y'])*_0x214ae8)/_0x115472)),_0xf26009={'x':_0x17f90e['x']+_0x24b94b*_0x48b74d,'y':_0x17f90e['y']+_0x214ae8*_0x48b74d};return{'point':_0xf26009,'ratio':_0x48b74d,'distance':c(_0x193a5c,_0xf26009)};}function te(_0x382edd,_0x138a60,_0x60f374){const _0x22e0c4=_0x39a0e4;return g(_0x382edd,_0x138a60,_0x60f374)[_0x22e0c4(0x20b)]**0x2;}function _(_0x3a3946,_0x19e11d){const _0x49fbb4=_0x39a0e4;if(_0x3a3946['length']<=0x2)return _0x3a3946['map'](i);let _0x32c8a6=0x0,_0x473f93=0x0,_0x109b4c=_0x3a3946[0x0],_0x1edd7c=_0x3a3946[_0x3a3946['length']-0x1],_0x5a3301=_0x19e11d*_0x19e11d;for(let _0x3ec2a3=0x1;_0x3ec2a3<_0x3a3946[_0x49fbb4(0x1f2)]-0x1;_0x3ec2a3++){let _0x474f85=te(_0x3a3946[_0x3ec2a3],_0x109b4c,_0x1edd7c);_0x474f85>_0x32c8a6&&(_0x32c8a6=_0x474f85,_0x473f93=_0x3ec2a3);}if(_0x32c8a6<=_0x5a3301)return[i(_0x109b4c),i(_0x1edd7c)];let _0x3ea878=_(_0x3a3946['slice'](0x0,_0x473f93+0x1),_0x19e11d),_0x39591f=_(_0x3a3946[_0x49fbb4(0x21d)](_0x473f93),_0x19e11d);return[..._0x3ea878[_0x49fbb4(0x21d)](0x0,-0x1),..._0x39591f];}function ne(_0x2d97d0,_0x5b845a){let _0x1436d0=_0x2d97d0[_0x5b845a],_0x221a37=_0x2d97d0[_0x5b845a+0x1],_0x246ef5=_0x2d97d0[_0x5b845a-0x1]??_0x1436d0;return{'x':_0x1436d0['x']+(_0x221a37['x']-_0x246ef5['x'])/0x6,'y':_0x1436d0['y']+(_0x221a37['y']-_0x246ef5['y'])/0x6};}function v(_0x1d8261,_0x340b8e){let _0x4cce72=_0x1d8261[_0x340b8e],_0x5197f4=_0x1d8261[_0x340b8e-0x1],_0x2a3c63=_0x1d8261[_0x340b8e+0x1]??_0x4cce72;return{'x':_0x4cce72['x']-(_0x2a3c63['x']-_0x5197f4['x'])/0x6,'y':_0x4cce72['y']-(_0x2a3c63['y']-_0x5197f4['y'])/0x6};}function y(_0x557c5b,_0x3649c7){const _0x368168=_0x39a0e4;let _0x13e1dc=_0x557c5b[_0x368168(0x1ee)][_0x3649c7],_0x466762=_0x557c5b[_0x368168(0x1ee)][_0x3649c7-0x1]??(_0x557c5b[_0x368168(0x244)]?_0x557c5b[_0x368168(0x1ee)][_0x557c5b[_0x368168(0x1ee)]['length']-0x1]:null),_0x1e6890=_0x557c5b[_0x368168(0x1ee)][_0x3649c7+0x1]??(_0x557c5b[_0x368168(0x244)]?_0x557c5b[_0x368168(0x1ee)][0x0]:null),_0x347158=_0x466762&&_0x1e6890?l({'x':_0x1e6890['x']-_0x466762['x'],'y':_0x1e6890['y']-_0x466762['y']}):_0x1e6890?l({'x':_0x1e6890['x']-_0x13e1dc['x'],'y':_0x1e6890['y']-_0x13e1dc['y']}):_0x466762?l({'x':_0x13e1dc['x']-_0x466762['x'],'y':_0x13e1dc['y']-_0x466762['y']}):{'x':0x1,'y':0x0},_0xff7af0=_0x466762&&_0x1e6890?Math[_0x368168(0x237)](0x32,c(_0x466762,_0x1e6890)/0x4):0x32;return{'in':{'x':_0x13e1dc['x']-_0x347158['x']*_0xff7af0,'y':_0x13e1dc['y']-_0x347158['y']*_0xff7af0},'out':{'x':_0x13e1dc['x']+_0x347158['x']*_0xff7af0,'y':_0x13e1dc['y']+_0x347158['y']*_0xff7af0}};}function b(_0x42f52b,_0x3a40f2){const _0x31260e=_0x39a0e4;let _0x5db048=_0x42f52b[_0x3a40f2],_0x23f905=_0x3a40f2==='in'?'out':'in',_0x3c8e91=_0x42f52b[_0x23f905];_0x5db048&&(_0x42f52b[_0x31260e(0x242)]===_0x31260e(0x209)?_0x42f52b[_0x23f905]=u(_0x42f52b,_0x5db048):_0x42f52b[_0x31260e(0x242)]==='smooth'&&(_0x42f52b[_0x23f905]=u(_0x42f52b,_0x5db048,_0x3c8e91?c(_0x42f52b,_0x3c8e91):c(_0x42f52b,_0x5db048))));}function x(_0x2d294b,_0x5e1775){const _0x906c5f=_0x39a0e4;let _0x10e3f7=o(_0x2d294b);return!_0x5e1775||_0x10e3f7[_0x906c5f(0x244)]||_0x10e3f7[_0x906c5f(0x1ee)][_0x906c5f(0x1f2)]===0x0||_0x10e3f7['anchors'][_0x906c5f(0x255)]({'id':'__ink-preview-anchor__','x':_0x5e1775['x'],'y':_0x5e1775['y'],'pointType':_0x906c5f(0x246)}),_0x10e3f7;}function re(_0x5252cf,_0x2ef22b={}){const _0x18c5fd=_0x39a0e4;let _0x502021=Math[_0x18c5fd(0x237)](0x0,_0x2ef22b[_0x18c5fd(0x240)]??Math[_0x18c5fd(0x237)](0x4,_0x5252cf[_0x18c5fd(0x22e)]*0.35)),_0x525594=_0x2ef22b[_0x18c5fd(0x202)]??(_0x28ef7b=>_0x18c5fd(0x245)+_0x28ef7b),_0x280c07=_(_0x5252cf['points'],_0x502021),_0x541dde=_0x280c07[_0x18c5fd(0x238)]((_0x201b94,_0x2a773c)=>({'id':_0x525594(_0x2a773c),'x':_0x201b94['x'],'y':_0x201b94['y'],'pointType':_0x18c5fd(0x1ef)}));for(let _0x54e858=0x0;_0x54e858<_0x541dde[_0x18c5fd(0x1f2)]-0x1;_0x54e858++)_0x541dde[_0x54e858][_0x18c5fd(0x1fd)]=ne(_0x280c07,_0x54e858),_0x541dde[_0x54e858+0x1]['in']=v(_0x280c07,_0x54e858+0x1);return{'kind':_0x18c5fd(0x253),'closed':!0x1,'anchors':_0x541dde};}function ie(_0xbf00fe,_0x28bac2,_0x139bf7){const _0x256f47=_0x39a0e4;let _0x41b62f=null,_0x25cbda=[_0x256f47(0x243),'in',_0x256f47(0x1fd)];return _0xbf00fe[_0x256f47(0x1ee)][_0x256f47(0x1f3)]((_0x55ccae,_0x1b4926)=>{const _0x34089a=_0x256f47;_0x25cbda[_0x34089a(0x1f3)](_0x1e1b04=>{const _0x4f796e=_0x34089a;if(!p(_0xbf00fe,_0x1b4926,_0x1e1b04))return;let _0x466159=ee(_0x55ccae,_0x1e1b04);if(!_0x466159)return;let _0x1356c6=c(_0x28bac2,_0x466159);_0x1356c6>_0x139bf7||_0x41b62f&&_0x1356c6>=_0x41b62f[_0x4f796e(0x20b)]||(_0x41b62f={'handle':{'kind':_0x1e1b04,'anchorId':_0x55ccae['id']},'point':i(_0x466159),'distance':_0x1356c6});});}),_0x41b62f;}function S(_0x394575,_0x3a83c0,_0x68f3f6){const _0x1d6ac9=_0x39a0e4;let _0x4cf9ec=null,_0x5cfe47=_0x394575[_0x1d6ac9(0x244)]?_0x394575[_0x1d6ac9(0x1ee)][_0x1d6ac9(0x1f2)]:Math[_0x1d6ac9(0x237)](0x0,_0x394575['anchors'][_0x1d6ac9(0x1f2)]-0x1);for(let _0x341665=0x0;_0x341665<_0x5cfe47;_0x341665++){let _0x1a6c4e=f(_0x394575,_0x341665);if(!_0x1a6c4e)continue;let _0x28fb9b=m(_0x1a6c4e,0x0);for(let _0x1310c4=0x1;_0x1310c4<=0x20;_0x1310c4++){let _0x176c57=m(_0x1a6c4e,_0x1310c4/0x20),_0x2e720c=g(_0x3a83c0,_0x28fb9b,_0x176c57),_0x536455=(_0x1310c4-0x1+_0x2e720c['ratio'])/0x20;(!_0x4cf9ec||_0x2e720c[_0x1d6ac9(0x20b)]<_0x4cf9ec[_0x1d6ac9(0x20b)])&&(_0x4cf9ec={'segmentIndex':_0x341665,'t':_0x536455,'point':_0x2e720c[_0x1d6ac9(0x1e8)],'distance':_0x2e720c[_0x1d6ac9(0x20b)]}),_0x28fb9b=_0x176c57;}}return _0x4cf9ec&&_0x4cf9ec[_0x1d6ac9(0x20b)]<=_0x68f3f6?_0x4cf9ec:null;}function C(_0x18cab4,_0x89a59f,_0x42123e){const _0x4350b4=_0x39a0e4;let _0x274bec=o(_0x18cab4),_0x5b0226=d(_0x274bec,_0x89a59f[_0x4350b4(0x23e)]),_0x359a1d=f(_0x274bec,_0x89a59f[_0x4350b4(0x23e)]);if(!_0x5b0226||!_0x359a1d)return _0x274bec;let _0x21b450=h(_0x359a1d,Math[_0x4350b4(0x237)](0x0,Math[_0x4350b4(0x21e)](0x1,_0x89a59f['t']))),_0x1e48ff={'id':_0x42123e(),'x':_0x21b450[_0x4350b4(0x230)][0x3]['x'],'y':_0x21b450[_0x4350b4(0x230)][0x3]['y'],'in':i(_0x21b450[_0x4350b4(0x230)][0x2]),'out':i(_0x21b450[_0x4350b4(0x226)][0x1]),'pointType':_0x4350b4(0x1ef)};return _0x274bec['anchors'][_0x5b0226[_0x4350b4(0x23d)]][_0x4350b4(0x1fd)]=i(_0x21b450[_0x4350b4(0x230)][0x1]),_0x274bec[_0x4350b4(0x1ee)][_0x5b0226[_0x4350b4(0x1fa)]]['in']=i(_0x21b450[_0x4350b4(0x226)][0x2]),_0x274bec['anchors']['splice'](_0x5b0226[_0x4350b4(0x23d)]+0x1,0x0,_0x1e48ff),_0x274bec;}function w(_0x13f084,_0x172bce){const _0x42d1b5=_0x39a0e4;let _0x3124db=o(_0x13f084);return _0x3124db['anchors']=_0x3124db[_0x42d1b5(0x1ee)][_0x42d1b5(0x234)](_0x2592a4=>_0x2592a4['id']!==_0x172bce),_0x3124db[_0x42d1b5(0x244)]&&_0x3124db['anchors'][_0x42d1b5(0x1f2)]<0x3&&(_0x3124db[_0x42d1b5(0x244)]=!0x1),_0x3124db;}function T(_0x1b46cf,_0x37a700,_0x5715f8){const _0x3793fa=_0x39a0e4;let _0x164b79=o(_0x1b46cf),_0x314109=_0x164b79[_0x3793fa(0x1ee)]['findIndex'](_0x5861bd=>_0x5861bd['id']===_0x37a700),_0x555791=_0x164b79[_0x3793fa(0x1ee)][_0x314109];if(!_0x555791)return _0x164b79;if(_0x555791[_0x3793fa(0x242)]=_0x5715f8,_0x5715f8===_0x3793fa(0x246))return delete _0x555791['in'],delete _0x555791[_0x3793fa(0x1fd)],_0x164b79;let _0xea067f=y(_0x164b79,_0x314109);if(_0x555791['in']=_0x555791['in']?i(_0x555791['in']):_0xea067f['in'],_0x555791[_0x3793fa(0x1fd)]=_0x555791[_0x3793fa(0x1fd)]?i(_0x555791[_0x3793fa(0x1fd)]):_0xea067f[_0x3793fa(0x1fd)],_0x5715f8===_0x3793fa(0x209)){let _0x552670=Math[_0x3793fa(0x237)](c(_0x555791,_0x555791['in']),c(_0x555791,_0x555791['out']),0x32),_0x42c917=l({'x':_0x555791[_0x3793fa(0x1fd)]['x']-_0x555791['x'],'y':_0x555791[_0x3793fa(0x1fd)]['y']-_0x555791['y']});_0x555791[_0x3793fa(0x1fd)]={'x':_0x555791['x']+_0x42c917['x']*_0x552670,'y':_0x555791['y']+_0x42c917['y']*_0x552670},_0x555791['in']={'x':_0x555791['x']-_0x42c917['x']*_0x552670,'y':_0x555791['y']-_0x42c917['y']*_0x552670};}else _0x5715f8===_0x3793fa(0x223)&&b(_0x555791,_0x3793fa(0x1fd));return _0x164b79;}function E(_0x313d09,_0x3da698){const _0x38f9ba=_0x39a0e4;let _0x4fcf59=_0x313d09[_0x38f9ba(0x1ee)][_0x38f9ba(0x24c)](_0x1d301c=>_0x1d301c['id']===_0x3da698),_0x59a013=(_0x4fcf59==null?void 0x0:_0x4fcf59['pointType'])??_0x38f9ba(0x246);return T(_0x313d09,_0x3da698,_0x59a013===_0x38f9ba(0x246)?_0x38f9ba(0x223):_0x59a013==='smooth'?_0x38f9ba(0x209):_0x59a013===_0x38f9ba(0x209)?'free':'corner');}function ae(_0x2c7276,_0x4269de,_0x245956){const _0x9e5f2e=_0x39a0e4;let _0x1ee504=o(_0x2c7276),_0x48d8cf=_0x1ee504[_0x9e5f2e(0x1ee)]['find'](_0x14c8be=>_0x14c8be['id']===_0x4269de['anchorId']);if(!_0x48d8cf)return _0x1ee504;if(_0x4269de[_0x9e5f2e(0x220)]===_0x9e5f2e(0x243)){let _0x4367df={'x':_0x245956['x']-_0x48d8cf['x'],'y':_0x245956['y']-_0x48d8cf['y']};return _0x48d8cf['x']=_0x245956['x'],_0x48d8cf['y']=_0x245956['y'],_0x48d8cf['in']&&={'x':_0x48d8cf['in']['x']+_0x4367df['x'],'y':_0x48d8cf['in']['y']+_0x4367df['y']},_0x48d8cf[_0x9e5f2e(0x1fd)]&&={'x':_0x48d8cf[_0x9e5f2e(0x1fd)]['x']+_0x4367df['x'],'y':_0x48d8cf[_0x9e5f2e(0x1fd)]['y']+_0x4367df['y']},_0x1ee504;}return _0x48d8cf[_0x4269de[_0x9e5f2e(0x220)]]=i(_0x245956),_0x48d8cf[_0x9e5f2e(0x242)]==='corner'&&(_0x48d8cf[_0x9e5f2e(0x242)]=_0x9e5f2e(0x1ef)),b(_0x48d8cf,_0x4269de[_0x9e5f2e(0x220)]),_0x1ee504;}const D=1e-9;function O(_0x394c7a){let _0xa8d95f=Math['round'](_0x394c7a*0x2710)/0x2710;return Object['is'](_0xa8d95f,-0x0)?'0':String(_0xa8d95f);}function k(_0x5bf66a){return O(_0x5bf66a['x'])+'\x20'+O(_0x5bf66a['y']);}function A(_0x34fde4,_0x5200a9){return{'x':_0x34fde4['x']-_0x5200a9['x'],'y':_0x34fde4['y']-_0x5200a9['y']};}function j(_0x383d45,_0x1680a1,_0x43e266,_0x5985eb,_0x5114fd){let _0x1b09ee=0x1-_0x5114fd;return{'x':_0x1b09ee*_0x1b09ee*_0x1b09ee*_0x383d45['x']+0x3*_0x1b09ee*_0x1b09ee*_0x5114fd*_0x1680a1['x']+0x3*_0x1b09ee*_0x5114fd*_0x5114fd*_0x43e266['x']+_0x5114fd*_0x5114fd*_0x5114fd*_0x5985eb['x'],'y':_0x1b09ee*_0x1b09ee*_0x1b09ee*_0x383d45['y']+0x3*_0x1b09ee*_0x1b09ee*_0x5114fd*_0x1680a1['y']+0x3*_0x1b09ee*_0x5114fd*_0x5114fd*_0x43e266['y']+_0x5114fd*_0x5114fd*_0x5114fd*_0x5985eb['y']};}function M(_0x49f86f,_0xa0a563,_0x56d74d,_0x1e8477){const _0x135991=_0x39a0e4;let _0x4a6797=-_0x49f86f+0x3*_0xa0a563-0x3*_0x56d74d+_0x1e8477,_0x42941f=0x3*_0x49f86f-0x6*_0xa0a563+0x3*_0x56d74d,_0x563fe6=-0x3*_0x49f86f+0x3*_0xa0a563,_0x204771=[];if(Math[_0x135991(0x1f0)](_0x4a6797)<D){if(Math[_0x135991(0x1f0)](_0x42941f)<D)return _0x204771;let _0x76362b=-_0x563fe6/(0x2*_0x42941f);return _0x76362b>0x0&&_0x76362b<0x1&&_0x204771['push'](_0x76362b),_0x204771;}let _0x20c355=_0x42941f*_0x42941f-0x3*_0x4a6797*_0x563fe6;if(_0x20c355<0x0)return _0x204771;let _0x1a596b=Math['sqrt'](Math[_0x135991(0x237)](0x0,_0x20c355)),_0x4cb887=(-_0x42941f+_0x1a596b)/(0x3*_0x4a6797),_0x5a01b8=(-_0x42941f-_0x1a596b)/(0x3*_0x4a6797);return _0x4cb887>0x0&&_0x4cb887<0x1&&_0x204771[_0x135991(0x255)](_0x4cb887),_0x5a01b8>0x0&&_0x5a01b8<0x1&&Math['abs'](_0x5a01b8-_0x4cb887)>D&&_0x204771[_0x135991(0x255)](_0x5a01b8),_0x204771;}function N(_0x5836ad,_0x5a4a7d,_0xdea022,_0x3b9c54,_0x1307f2){const _0x1ee044=_0x39a0e4;_0x5836ad[_0x1ee044(0x255)](_0x5a4a7d,_0x1307f2),new Set([...M(_0x5a4a7d['x'],_0xdea022['x'],_0x3b9c54['x'],_0x1307f2['x']),...M(_0x5a4a7d['y'],_0xdea022['y'],_0x3b9c54['y'],_0x1307f2['y'])])[_0x1ee044(0x1f3)](_0x45633e=>{const _0x12fdb2=_0x1ee044;_0x5836ad[_0x12fdb2(0x255)](j(_0x5a4a7d,_0xdea022,_0x3b9c54,_0x1307f2,_0x45633e));});}function P(_0x9f0749){const _0x479c31=_0x39a0e4;let _0x2ada1e=_0x9f0749[_0x479c31(0x1ee)];if(_0x2ada1e[_0x479c31(0x1f2)]<=0x1)return _0x2ada1e;let _0x410906=[];for(let _0x27c3c=0x1;_0x27c3c<_0x2ada1e['length'];_0x27c3c++){let _0x549b0b=_0x2ada1e[_0x27c3c-0x1],_0x28ed15=_0x2ada1e[_0x27c3c];N(_0x410906,_0x549b0b,_0x549b0b[_0x479c31(0x1fd)]??_0x549b0b,_0x28ed15['in']??_0x28ed15,_0x28ed15);}if(_0x9f0749['closed']&&_0x2ada1e[_0x479c31(0x1f2)]>0x1){let _0x4cb54d=_0x2ada1e[_0x2ada1e[_0x479c31(0x1f2)]-0x1],_0x5c7151=_0x2ada1e[0x0];N(_0x410906,_0x4cb54d,_0x4cb54d['out']??_0x4cb54d,_0x5c7151['in']??_0x5c7151,_0x5c7151);}return _0x410906;}function F(_0x5f3fa0){const _0x7c1487=_0x39a0e4;let _0x419479=_0x5f3fa0[_0x7c1487(0x206)];if(_0x419479[_0x7c1487(0x1f2)]<=0x1)return _0x419479;let _0x406832=[];for(let _0x390a60=0x0;_0x390a60<_0x419479[_0x7c1487(0x1f2)]-0x1;_0x390a60++){let _0x3c57a2=_0x419479[_0x390a60],_0x5f02f5=_0x419479[_0x390a60+0x1],_0x36f30d=_0x419479[_0x390a60-0x1]??_0x3c57a2,_0x56d3d3=_0x419479[_0x390a60+0x2]??_0x5f02f5;N(_0x406832,_0x3c57a2,{'x':_0x3c57a2['x']+(_0x5f02f5['x']-_0x36f30d['x'])/0x6,'y':_0x3c57a2['y']+(_0x5f02f5['y']-_0x36f30d['y'])/0x6},{'x':_0x5f02f5['x']-(_0x56d3d3['x']-_0x3c57a2['x'])/0x6,'y':_0x5f02f5['y']-(_0x56d3d3['y']-_0x3c57a2['y'])/0x6},_0x5f02f5);}return _0x406832;}function I(_0x57f343){const _0x40b1ac=_0x39a0e4;return _0x57f343['kind']===_0x40b1ac(0x253)?P(_0x57f343):F(_0x57f343);}function L(_0x143c39){const _0x2f78db=_0x39a0e4;let _0x2156ec=Math[_0x2f78db(0x1eb)](_0x143c39*0x2710)/0x2710;return Object['is'](_0x2156ec,-0x0)?0x0:_0x2156ec;}function R(_0x45f734){const _0x594e77=_0x39a0e4;let _0x125fad=I(_0x45f734);if(_0x125fad[_0x594e77(0x1f2)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x339035=Math[_0x594e77(0x21e)](..._0x125fad[_0x594e77(0x238)](_0x53a9ee=>_0x53a9ee['x'])),_0xde87f2=Math['min'](..._0x125fad[_0x594e77(0x238)](_0x68bfd1=>_0x68bfd1['y'])),_0xffbdba=Math[_0x594e77(0x237)](..._0x125fad[_0x594e77(0x238)](_0x1eace2=>_0x1eace2['x'])),_0x53fb01=Math['max'](..._0x125fad[_0x594e77(0x238)](_0x37c52a=>_0x37c52a['y']));return{'left':L(_0x339035),'top':L(_0xde87f2),'width':L(Math[_0x594e77(0x237)](0x1,_0xffbdba-_0x339035)),'height':L(Math['max'](0x1,_0x53fb01-_0xde87f2))};}function z(_0x3519f6,_0x15b1eb){const _0x3c0824=_0x39a0e4;let _0x2d7583=_0x3519f6[_0x3c0824(0x1ee)];if(_0x2d7583['length']===0x0)return'';let _0x1645dc=['M\x20'+k(A(_0x2d7583[0x0],_0x15b1eb))];for(let _0x23aa48=0x1;_0x23aa48<_0x2d7583[_0x3c0824(0x1f2)];_0x23aa48++){let _0x3b883b=_0x2d7583[_0x23aa48-0x1],_0x5d2c2a=_0x2d7583[_0x23aa48],_0x574df1=_0x3b883b[_0x3c0824(0x1fd)]??_0x3b883b,_0x149b67=_0x5d2c2a['in']??_0x5d2c2a;_0x1645dc['push']('C\x20'+k(A(_0x574df1,_0x15b1eb))+'\x20'+k(A(_0x149b67,_0x15b1eb))+'\x20'+k(A(_0x5d2c2a,_0x15b1eb)));}if(_0x3519f6[_0x3c0824(0x244)]&&_0x2d7583['length']>0x1){let _0xce7da9=_0x2d7583[_0x2d7583[_0x3c0824(0x1f2)]-0x1],_0x19688d=_0x2d7583[0x0],_0x3d272b=_0xce7da9['out']??_0xce7da9,_0x5784ea=_0x19688d['in']??_0x19688d;_0x1645dc[_0x3c0824(0x255)]('C\x20'+k(A(_0x3d272b,_0x15b1eb))+'\x20'+k(A(_0x5784ea,_0x15b1eb))+'\x20'+k(A(_0x19688d,_0x15b1eb))),_0x1645dc[_0x3c0824(0x255)]('Z');}return _0x1645dc['join']('\x20');}function B(_0xfb6bec,_0x1bbe83){const _0x55c97b=_0x39a0e4;let _0x23fa5a=_0xfb6bec[_0x55c97b(0x206)][_0x55c97b(0x238)](_0x1622a6=>A(_0x1622a6,_0x1bbe83));if(_0x23fa5a[_0x55c97b(0x1f2)]===0x0)return'';if(_0x23fa5a[_0x55c97b(0x1f2)]===0x1)return'M\x20'+k(_0x23fa5a[0x0]);let _0x1eed38=['M\x20'+k(_0x23fa5a[0x0])];for(let _0x338481=0x0;_0x338481<_0x23fa5a[_0x55c97b(0x1f2)]-0x1;_0x338481++){let _0x262504=_0x23fa5a[_0x338481],_0x1143b9=_0x23fa5a[_0x338481+0x1],_0x3b9fdb=_0x23fa5a[_0x338481-0x1]??_0x262504,_0x826d=_0x23fa5a[_0x338481+0x2]??_0x1143b9,_0x3ea9d8={'x':_0x262504['x']+(_0x1143b9['x']-_0x3b9fdb['x'])/0x6,'y':_0x262504['y']+(_0x1143b9['y']-_0x3b9fdb['y'])/0x6},_0x152ee4={'x':_0x1143b9['x']-(_0x826d['x']-_0x262504['x'])/0x6,'y':_0x1143b9['y']-(_0x826d['y']-_0x262504['y'])/0x6};_0x1eed38[_0x55c97b(0x255)]('C\x20'+k(_0x3ea9d8)+'\x20'+k(_0x152ee4)+'\x20'+k(_0x1143b9));}return _0x1eed38['join']('\x20');}function V(_0x252c24,_0x32c233){const _0x23946d=_0x39a0e4;return _0x252c24[_0x23946d(0x220)]===_0x23946d(0x253)?z(_0x252c24,_0x32c233):B(_0x252c24,_0x32c233);}function H(_0x1b92e1,_0x263da6){const _0x3c16b2=_0x39a0e4;return _0x263da6!=null&&_0x263da6[_0x3c16b2(0x213)]?_0x263da6[_0x3c16b2(0x213)]:_0x1b92e1[_0x3c16b2(0x220)]===_0x3c16b2(0x253)?_0x3c16b2(0x228):_0x1b92e1[_0x3c16b2(0x213)];}function U(_0xf6b019,_0x3172b5){const _0x1005fa=_0x39a0e4;return(_0x3172b5==null?void 0x0:_0x3172b5[_0x1005fa(0x22e)])===void 0x0?_0xf6b019[_0x1005fa(0x220)]===_0x1005fa(0x253)?0x2:_0xf6b019[_0x1005fa(0x22e)]:_0x3172b5[_0x1005fa(0x22e)];}function W(_0x7322b,_0x175e03){const _0x4b7342=_0x39a0e4;return(_0x175e03==null?void 0x0:_0x175e03['opacity'])===void 0x0?_0x7322b[_0x4b7342(0x220)]===_0x4b7342(0x253)?void 0x0:_0x7322b[_0x4b7342(0x221)]:_0x175e03[_0x4b7342(0x221)];}function oe(_0x1566bd,_0x59d75d){const _0x4e7755=_0x39a0e4;let _0x3d0118=R(_0x1566bd),_0x5ad6ff=V(_0x1566bd,{'x':_0x3d0118[_0x4e7755(0x230)],'y':_0x3d0118[_0x4e7755(0x212)]}),_0x112c60=_0x1566bd[_0x4e7755(0x220)]===_0x4e7755(0x253)&&_0x1566bd[_0x4e7755(0x244)],_0xcf815d=_0x59d75d==null?void 0x0:_0x59d75d[_0x4e7755(0x22f)];return{'shapeType':e[_0x4e7755(0x23c)][_0x4e7755(0x24a)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3d0118[_0x4e7755(0x22e)],'h':_0x3d0118[_0x4e7755(0x20e)],'fill':_0x112c60?_0x4e7755(0x204):_0x4e7755(0x1f9),'stroke':!0x0,'data':_0x5ad6ff,'dataArray':K(_0x1566bd,{'x':_0x3d0118[_0x4e7755(0x230)],'y':_0x3d0118[_0x4e7755(0x212)]})}]},'fill':_0x112c60&&_0xcf815d?{'color':_0xcf815d,'fillType':e[_0x4e7755(0x22b)][_0x4e7755(0x1f7)]}:{'fillType':e['ShapeFillEnum'][_0x4e7755(0x22a)]},'stroke':{'color':H(_0x1566bd,_0x59d75d),'width':U(_0x1566bd,_0x59d75d),'opacity':W(_0x1566bd,_0x59d75d),'lineStrokeType':e[_0x4e7755(0x215)][_0x4e7755(0x21f)],'capType':e[_0x4e7755(0x232)][_0x4e7755(0x208)],'lineJoinType':e['ShapeLineJoinEnum'][_0x4e7755(0x208)]}};}function G(_0x4d7dee,_0x5bfb8b){return{'x':_0x4d7dee['x']-_0x5bfb8b['x'],'y':_0x4d7dee['y']-_0x5bfb8b['y']};}function K(_0x57b64a,_0x5c4b63){const _0x55b506=_0x39a0e4;if(_0x57b64a[_0x55b506(0x220)]===_0x55b506(0x253)){let _0x1a1458=_0x57b64a[_0x55b506(0x1ee)];if(_0x1a1458['length']===0x0)return[];let _0x534c05=G(_0x1a1458[0x0],_0x5c4b63),_0x19de5e=[{'command':'M','points':[_0x534c05['x'],_0x534c05['y']]}];for(let _0x430c7a=0x1;_0x430c7a<_0x1a1458['length'];_0x430c7a++){let _0x2c40ec=_0x1a1458[_0x430c7a-0x1],_0xb951f6=_0x1a1458[_0x430c7a],_0x7d5b57=G(_0x2c40ec[_0x55b506(0x1fd)]??_0x2c40ec,_0x5c4b63),_0x2a27f4=G(_0xb951f6['in']??_0xb951f6,_0x5c4b63),_0x5c852c=G(_0xb951f6,_0x5c4b63);_0x19de5e['push']({'command':'C','points':[_0x7d5b57['x'],_0x7d5b57['y'],_0x2a27f4['x'],_0x2a27f4['y'],_0x5c852c['x'],_0x5c852c['y']]});}if(_0x57b64a[_0x55b506(0x244)]&&_0x1a1458[_0x55b506(0x1f2)]>0x1){let _0x5f5380=_0x1a1458[_0x1a1458[_0x55b506(0x1f2)]-0x1],_0x309a67=_0x1a1458[0x0],_0x42a513=G(_0x5f5380[_0x55b506(0x1fd)]??_0x5f5380,_0x5c4b63),_0x28ff23=G(_0x309a67['in']??_0x309a67,_0x5c4b63),_0xbc3109=G(_0x309a67,_0x5c4b63);_0x19de5e['push']({'command':'C','points':[_0x42a513['x'],_0x42a513['y'],_0x28ff23['x'],_0x28ff23['y'],_0xbc3109['x'],_0xbc3109['y']]}),_0x19de5e[_0x55b506(0x255)]({'command':'z','points':[]});}return _0x19de5e;}let _0x380da5=_0x57b64a['points']['map'](_0x57a880=>G(_0x57a880,_0x5c4b63));if(_0x380da5[_0x55b506(0x1f2)]===0x0)return[];let _0x4ae747=[{'command':'M','points':[_0x380da5[0x0]['x'],_0x380da5[0x0]['y']]}];for(let _0x184965=0x0;_0x184965<_0x380da5['length']-0x1;_0x184965++){let _0x236d24=_0x380da5[_0x184965],_0x216581=_0x380da5[_0x184965+0x1],_0x4e28d5=_0x380da5[_0x184965-0x1]??_0x236d24,_0x5a2044=_0x380da5[_0x184965+0x2]??_0x216581,_0x107950={'x':_0x236d24['x']+(_0x216581['x']-_0x4e28d5['x'])/0x6,'y':_0x236d24['y']+(_0x216581['y']-_0x4e28d5['y'])/0x6},_0x37d45b={'x':_0x216581['x']-(_0x5a2044['x']-_0x236d24['x'])/0x6,'y':_0x216581['y']-(_0x5a2044['y']-_0x236d24['y'])/0x6};_0x4ae747[_0x55b506(0x255)]({'command':'C','points':[_0x107950['x'],_0x107950['y'],_0x37d45b['x'],_0x37d45b['y'],_0x216581['x'],_0x216581['y']]});}return _0x4ae747;}function q(_0x1e20b0){const _0x5110cb=_0x39a0e4;let {model:_0x4355dd,sourceModel:_0x56779a=_0x4355dd,style:_0x284643}=_0x1e20b0,_0x395238=_0x1e20b0['tool']??_0x4355dd['kind'],_0xe0d6cf=R(_0x4355dd),_0x3c7ae9=_0x4355dd['kind']===_0x5110cb(0x253)&&_0x395238!=='pen'?_0x4355dd:void 0x0;return{'transform':{..._0xe0d6cf,'rotation':0x0},'shapeData':oe(_0x4355dd,_0x284643),'ink':{'version':0x1,'tool':_0x395238,'sourceModel':_0x56779a,..._0x3c7ae9?{'editModel':_0x3c7ae9}:{},'normalizedBounds':_0xe0d6cf}};}var se=_0x39a0e4(0x222),ce=_0x39a0e4(0x236);function J(_0x165f03){'@babel/helpers - typeof';const _0x53e653=_0x39a0e4;return J=typeof Symbol==_0x53e653(0x22c)&&typeof Symbol[_0x53e653(0x256)]==_0x53e653(0x1e7)?function(_0x3fe0b6){return typeof _0x3fe0b6;}:function(_0x4a52c6){const _0x337e6d=_0x53e653;return _0x4a52c6&&typeof Symbol==_0x337e6d(0x22c)&&_0x4a52c6[_0x337e6d(0x201)]===Symbol&&_0x4a52c6!==Symbol[_0x337e6d(0x1ff)]?_0x337e6d(0x1e7):typeof _0x4a52c6;},J(_0x165f03);}function _0x4068(_0x2ff15d,_0xc9a67d){_0x2ff15d=_0x2ff15d-0x1e7;const _0x2e7791=_0x2e77();let _0x40680e=_0x2e7791[_0x2ff15d];return _0x40680e;}function le(_0x2d79ae,_0x4c4174){const _0x2eac8d=_0x39a0e4;if(J(_0x2d79ae)!=_0x2eac8d(0x233)||!_0x2d79ae)return _0x2d79ae;var _0x55f297=_0x2d79ae[Symbol['toPrimitive']];if(_0x55f297!==void 0x0){var _0x4b6b3f=_0x55f297['call'](_0x2d79ae,_0x4c4174||_0x2eac8d(0x23b));if(J(_0x4b6b3f)!=_0x2eac8d(0x233))return _0x4b6b3f;throw TypeError(_0x2eac8d(0x1fc));}return(_0x4c4174===_0x2eac8d(0x203)?String:Number)(_0x2d79ae);}function ue(_0x205e3e){var _0x5745a7=le(_0x205e3e,'string');return J(_0x5745a7)=='symbol'?_0x5745a7:_0x5745a7+'';}function Y(_0x197f0c,_0x877a50,_0x40dbeb){const _0x27eb2c=_0x39a0e4;return(_0x877a50=ue(_0x877a50))in _0x197f0c?Object[_0x27eb2c(0x24b)](_0x197f0c,_0x877a50,{'value':_0x40dbeb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x197f0c[_0x877a50]=_0x40dbeb,_0x197f0c;}const X=(0x0,n[_0x39a0e4(0x214)])(_0x39a0e4(0x1f8));var de=class{constructor(){Y(this,'_adapters',[]);}[_0x39a0e4(0x231)](_0x3fadd5){const _0x342477=_0x39a0e4;return this[_0x342477(0x21c)][_0x342477(0x255)](_0x3fadd5),(0x0,n[_0x342477(0x23f)])(()=>{const _0x41ba72=_0x342477;let _0x27b6e3=this[_0x41ba72(0x21c)][_0x41ba72(0x252)](_0x3fadd5);_0x27b6e3>=0x0&&this[_0x41ba72(0x21c)][_0x41ba72(0x257)](_0x27b6e3,0x1);});}[_0x39a0e4(0x20d)](_0x16f4b7){const _0x5a5ee2=_0x39a0e4;for(let _0x56b8cf of this[_0x5a5ee2(0x21c)])if(_0x56b8cf[_0x5a5ee2(0x20d)](_0x16f4b7))return!0x0;return!0x1;}async[_0x39a0e4(0x1ed)](_0x1f1241){const _0x54d8a5=_0x39a0e4;for(let _0x1934a9 of this[_0x54d8a5(0x21c)])if(_0x1934a9[_0x54d8a5(0x1ed)]&&await _0x1934a9[_0x54d8a5(0x1ed)](_0x1f1241))return!0x0;return!0x1;}};const fe={'id':_0x39a0e4(0x218),'type':n['CommandType'][_0x39a0e4(0x24f)],'handler':(_0x32ab3f,_0x31a07e)=>_0x31a07e?_0x32ab3f[_0x39a0e4(0x229)](X)[_0x39a0e4(0x20d)](_0x31a07e):!0x1},Z={};function Q(_0x59d243,_0x230c03){return function(_0x3a194b,_0x49da88){_0x230c03(_0x3a194b,_0x49da88,_0x59d243);};}function _0x2e77(){const _0x106962=['find','insertInkPenAnchorAt','_config','OPERATION','6bHlplv','findClosestInkPenHandle','indexOf','pen','2344050ExDXzc','push','iterator','splice','symbol','point','findClosestInkPenSegment','start','round','add','createCustomShape','anchors','free','abs','version','length','forEach','merge','deleteInkPenAnchor','UNIVER_INK_PLUGIN','SolidFill','ink.host-adapter.service','none','endIndex','_configService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','out','7029496LzjQUx','prototype','pluginName','constructor','createId','string','norm','6272686hOFbDD','points','moveInkPenAnchorPoint','Round','symmetric','Module','distance','disposeWithMe','beginInkMode','height','1652385IToAGl','buildInkCustomShapePayload','UniverInkPlugin','top','color','createIdentifier','ShapeLineTypeEnum','3302085XtzvWT','hypot','ink.operation.start','Inject','_injector','packageName','_adapters','slice','min','SolidLine','kind','opacity','@univerjs-pro/ink','smooth','_commandService','end','right','UniverLicensePlugin','#f54a45','get','NoFill','ShapeFillEnum','function','decorate','width','fillColor','left','registerAdapter','ShapeLineCapEnum','object','filter','Injector','1.3.1','max','map','getOwnPropertyDescriptor','setConfig','default','ShapeTypeEnum','startIndex','segmentIndex','toDisposable','tolerance','DependentOn','pointType','anchor','closed','ink-centerline-','corner','1805178hOIWDv','6176900eRYdeU','Plugin','Rect','defineProperty'];_0x2e77=function(){return _0x106962;};return _0x2e77();}function pe(_0x286d44,_0x4069f1,_0x2e306a,_0xed29f7){const _0x4855bc=_0x39a0e4;var _0x1d0a5a=arguments['length'],_0x54156b=_0x1d0a5a<0x3?_0x4069f1:_0xed29f7===null?_0xed29f7=Object[_0x4855bc(0x239)](_0x4069f1,_0x2e306a):_0xed29f7,_0x1f54e5;if(typeof Reflect==_0x4855bc(0x233)&&typeof Reflect[_0x4855bc(0x22d)]==_0x4855bc(0x22c))_0x54156b=Reflect[_0x4855bc(0x22d)](_0x286d44,_0x4069f1,_0x2e306a,_0xed29f7);else{for(var _0xb74ae2=_0x286d44[_0x4855bc(0x1f2)]-0x1;_0xb74ae2>=0x0;_0xb74ae2--)(_0x1f54e5=_0x286d44[_0xb74ae2])&&(_0x54156b=(_0x1d0a5a<0x3?_0x1f54e5(_0x54156b):_0x1d0a5a>0x3?_0x1f54e5(_0x4069f1,_0x2e306a,_0x54156b):_0x1f54e5(_0x4069f1,_0x2e306a))||_0x54156b);}return _0x1d0a5a>0x3&&_0x54156b&&Object['defineProperty'](_0x4069f1,_0x2e306a,_0x54156b),_0x54156b;}let $=class extends n[_0x39a0e4(0x249)]{constructor(_0x51e307=Z,_0x58fa9b,_0x3627c1,_0x3b40e1){const _0x264e1a=_0x39a0e4;super(),this[_0x264e1a(0x24e)]=_0x51e307,this[_0x264e1a(0x21a)]=_0x58fa9b,this[_0x264e1a(0x224)]=_0x3627c1,this['_configService']=_0x3b40e1;let {..._0x696df3}=(0x0,n[_0x264e1a(0x1f4)])({},Z,this[_0x264e1a(0x24e)]);this[_0x264e1a(0x1fb)][_0x264e1a(0x23a)]('ink.config',_0x696df3);}['onStarting'](){const _0xce3fb8=_0x39a0e4;[[X,{'useClass':de}]][_0xce3fb8(0x1f3)](_0x32305d=>this[_0xce3fb8(0x21a)][_0xce3fb8(0x1ec)](_0x32305d)),this[_0xce3fb8(0x20c)](this[_0xce3fb8(0x224)]['registerCommand'](fe));}};Y($,_0x39a0e4(0x200),_0x39a0e4(0x1f6)),Y($,_0x39a0e4(0x21b),se),Y($,_0x39a0e4(0x1f1),ce),Y($,'type',n['UniverInstanceType']['UNIVER_UNKNOWN']),$=pe([(0x0,n[_0x39a0e4(0x241)])(t[_0x39a0e4(0x227)]),Q(0x1,(0x0,n[_0x39a0e4(0x219)])(n[_0x39a0e4(0x235)])),Q(0x2,n['ICommandService']),Q(0x3,n['IConfigService'])],$),exports['IInkHostAdapterService']=X,Object[_0x39a0e4(0x24b)](exports,_0x39a0e4(0x211),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x39a0e4(0x210)]=q,exports['convertBrushModelToPenModel']=re,exports['cycleInkPenAnchorPointType']=E,exports[_0x39a0e4(0x1f5)]=w,exports[_0x39a0e4(0x251)]=ie,exports[_0x39a0e4(0x1e9)]=S,exports['getInkModelBounds']=R,exports['getInkPenPreviewModel']=x,exports[_0x39a0e4(0x24d)]=C,exports['isInkPenHandleVisible']=p,exports[_0x39a0e4(0x207)]=ae,exports['setInkPenAnchorPointType']=T;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1fcd42=_0x2403;(function(_0xf41b73,_0x5db4ae){const _0x2ef4ab=_0x2403,_0x4603fa=_0xf41b73();while(!![]){try{const _0x4b40ed=-parseInt(_0x2ef4ab(0x221))/0x1*(-parseInt(_0x2ef4ab(0x21d))/0x2)+-parseInt(_0x2ef4ab(0x216))/0x3+-parseInt(_0x2ef4ab(0x1fd))/0x4*(-parseInt(_0x2ef4ab(0x215))/0x5)+parseInt(_0x2ef4ab(0x200))/0x6*(-parseInt(_0x2ef4ab(0x21f))/0x7)+-parseInt(_0x2ef4ab(0x209))/0x8*(parseInt(_0x2ef4ab(0x1ff))/0x9)+parseInt(_0x2ef4ab(0x204))/0xa+-parseInt(_0x2ef4ab(0x206))/0xb*(-parseInt(_0x2ef4ab(0x1f9))/0xc);if(_0x4b40ed===_0x5db4ae)break;else _0x4603fa['push'](_0x4603fa['shift']());}catch(_0x3fa446){_0x4603fa['push'](_0x4603fa['shift']());}}}(_0x4f93,0x8bfc2));import{BoardElementType as _0x309451}from'@univerjs-pro/boards';import{FBoard as _0x4fa8ae}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4679c0}from'@univerjs-pro/ink';import{Tools as _0xdcd912,generateRandomId as _0x303a91}from'@univerjs/core';import{FEnum as _0x286ee1}from'@univerjs/core/facade';var o=class extends _0x4fa8ae{[_0x1fcd42(0x1f8)](_0x213ff5){const _0x309a5d=_0x1fcd42;let _0x55b55c=s(_0x213ff5);return _0x55b55c&&this[_0x309a5d(0x214)](_0x55b55c,{'insertIndex':_0x213ff5[_0x309a5d(0x202)]})?_0x55b55c:null;}['getInks'](){const _0x53086a=_0x1fcd42;return this['findElements']({'elementType':_0x309451[_0x53086a(0x21e)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x2d613b,_0x7698da){const _0x57998e=_0x1fcd42;if(!l(_0x2d613b[_0x57998e(0x1fe)])||_0x2d613b[_0x57998e(0x210)]!==void 0x0&&!l(_0x2d613b[_0x57998e(0x210)])||!u(_0x2d613b[_0x57998e(0x1f0)]))return null;let _0x2a83bc=_0x2d613b[_0x57998e(0x201)]??(_0x7698da==null?void 0x0:_0x7698da[_0x57998e(0x201)]),_0x64426b=_0xdcd912[_0x57998e(0x218)](_0x2d613b[_0x57998e(0x1fe)]),_0x2d9e86=_0x4679c0({'model':_0x64426b,'style':_0x2d613b[_0x57998e(0x1f0)],'tool':_0x2d613b[_0x57998e(0x21c)],'sourceModel':_0x2d613b['sourceModel']?_0xdcd912[_0x57998e(0x218)](_0x2d613b[_0x57998e(0x210)]):_0x64426b}),_0x5d2c26=d(_0x7698da==null?void 0x0:_0x7698da['custom']);return{'id':(_0x7698da==null?void 0x0:_0x7698da['id'])??_0x2d613b['id']??_0x303a91(0x6),'type':_0x309451[_0x57998e(0x21e)],'transform':_0x2d9e86['transform'],'shapeData':_0x2d9e86[_0x57998e(0x20d)],'parentId':_0x2a83bc??void 0x0,'laneId':_0x2d613b['laneId']===void 0x0?_0x7698da==null?void 0x0:_0x7698da[_0x57998e(0x1f5)]:_0x2d613b[_0x57998e(0x1f5)],'custom':{..._0x5d2c26,'ink':_0x2d9e86[_0x57998e(0x1fc)]}};}function c(_0x219e64){const _0xe38c88=_0x1fcd42;return Number[_0xe38c88(0x20f)](_0x219e64['x'])&&Number[_0xe38c88(0x20f)](_0x219e64['y']);}function l(_0x264aed){const _0x509530=_0x1fcd42;if(_0x264aed['kind']===_0x509530(0x205)){let _0x244193=new Set();return _0x264aed[_0x509530(0x207)]['length']>=(_0x264aed[_0x509530(0x1f2)]?0x3:0x2)&&_0x264aed[_0x509530(0x207)]['every'](_0xde8d6c=>{const _0x7bf1b3=_0x509530;let _0x369531=_0xde8d6c['id'][_0x7bf1b3(0x217)]()[_0x7bf1b3(0x213)]>0x0&&!_0x244193['has'](_0xde8d6c['id'])&&c(_0xde8d6c)&&(!_0xde8d6c['in']||c(_0xde8d6c['in']))&&(!_0xde8d6c[_0x7bf1b3(0x1f1)]||c(_0xde8d6c[_0x7bf1b3(0x1f1)]));return _0x244193['add'](_0xde8d6c['id']),_0x369531;});}return _0x264aed[_0x509530(0x208)][_0x509530(0x213)]>=0x2&&_0x264aed[_0x509530(0x208)][_0x509530(0x21b)](_0x4e6498=>c(_0x4e6498)&&Number[_0x509530(0x20f)](_0x4e6498['t'])&&(_0x4e6498[_0x509530(0x21a)]===void 0x0||Number['isFinite'](_0x4e6498[_0x509530(0x21a)])))&&Number[_0x509530(0x20f)](_0x264aed[_0x509530(0x1f7)])&&_0x264aed[_0x509530(0x1f7)]>0x0&&Number[_0x509530(0x20f)](_0x264aed[_0x509530(0x211)])&&_0x264aed[_0x509530(0x211)]>=0x0&&_0x264aed['opacity']<=0x1;}function u(_0x2d40d3){const _0x44393f=_0x1fcd42;return _0x2d40d3===void 0x0||(_0x2d40d3[_0x44393f(0x1f7)]===void 0x0||Number['isFinite'](_0x2d40d3[_0x44393f(0x1f7)])&&_0x2d40d3[_0x44393f(0x1f7)]>0x0)&&(_0x2d40d3[_0x44393f(0x211)]===void 0x0||Number[_0x44393f(0x20f)](_0x2d40d3[_0x44393f(0x211)])&&_0x2d40d3[_0x44393f(0x211)]>=0x0&&_0x2d40d3['opacity']<=0x1);}function _0x4f93(){const _0x1d0262=['brush','style','out','closed','corner','custom','laneId','free','width','insertInk','975636TqdJJt','type','BoardInkPointType','ink','44HjCbwS','model','81ySGRoI','1067814lirrRP','parentId','insertIndex','BoardInkHandleKind','9378180maBNSc','pen','77PNxQdW','anchors','points','989528JgFLxO','extend','symmetric','version','shapeData','smooth','isFinite','sourceModel','opacity','highlighter','length','_addElement','188805ZDzeUC','1735332LrkKyF','trim','deepClone','isArray','pressure','every','tool','28XLdolE','Shape','21TjrkiV','object','62617oubmOt'];_0x4f93=function(){return _0x1d0262;};return _0x4f93();}function d(_0x5befe4){const _0x2fb959=_0x1fcd42;return _0x5befe4&&typeof _0x5befe4==_0x2fb959(0x220)&&!Array[_0x2fb959(0x219)](_0x5befe4)?_0x5befe4:{};}function f(_0x1a97a5){const _0x302c34=_0x1fcd42;let _0xd267cf=d(_0x1a97a5[_0x302c34(0x1f4)])[_0x302c34(0x1fc)];if(!_0xd267cf||typeof _0xd267cf!='object'||Array['isArray'](_0xd267cf))return null;let _0x21766d=_0xd267cf;return _0x21766d[_0x302c34(0x20c)]===0x1&&_0x21766d[_0x302c34(0x210)]&&typeof _0x21766d[_0x302c34(0x210)]==_0x302c34(0x220)?_0x21766d:null;}function p(_0x43b380){const _0x455ac6=_0x1fcd42;return _0x43b380[_0x455ac6(0x1fa)]===_0x309451[_0x455ac6(0x21e)]&&!!f(_0x43b380);}_0x4fa8ae[_0x1fcd42(0x20a)](o);const m={'Pen':_0x1fcd42(0x205),'Brush':_0x1fcd42(0x1ef),'Highlighter':_0x1fcd42(0x212)},h={'Corner':_0x1fcd42(0x1f3),'Smooth':_0x1fcd42(0x20e),'Symmetric':_0x1fcd42(0x20b),'Free':_0x1fcd42(0x1f6)},g={'Anchor':'anchor','In':'in','Out':_0x1fcd42(0x1f1)};var _=class extends _0x286ee1{get['BoardInkTool'](){return m;}get[_0x1fcd42(0x1fb)](){return h;}get[_0x1fcd42(0x203)](){return g;}};function _0x2403(_0x5774cc,_0x50bf18){_0x5774cc=_0x5774cc-0x1ef;const _0x4f93ba=_0x4f93();let _0x240396=_0x4f93ba[_0x5774cc];return _0x240396;}_0x286ee1[_0x1fcd42(0x20a)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x1fa4ef=_0x489e;(function(_0x509d2a,_0x324a3b){const _0x59c1de=_0x489e,_0x4b3084=_0x509d2a();while(!![]){try{const _0x4a1ead=parseInt(_0x59c1de(0x222))/0x1*(-parseInt(_0x59c1de(0x22a))/0x2)+-parseInt(_0x59c1de(0x206))/0x3+parseInt(_0x59c1de(0x1eb))/0x4*(-parseInt(_0x59c1de(0x21a))/0x5)+parseInt(_0x59c1de(0x203))/0x6+-parseInt(_0x59c1de(0x22d))/0x7+-parseInt(_0x59c1de(0x21c))/0x8+-parseInt(_0x59c1de(0x21f))/0x9*(-parseInt(_0x59c1de(0x218))/0xa);if(_0x4a1ead===_0x324a3b)break;else _0x4b3084['push'](_0x4b3084['shift']());}catch(_0x312116){_0x4b3084['push'](_0x4b3084['shift']());}}}(_0x4054,0x68823));import{ShapeFillEnum as _0x1b495a,ShapeLineCapEnum as _0x3a7c9e,ShapeLineJoinEnum as _0x22697f,ShapeLineTypeEnum as _0xe8f2b9,ShapeTypeEnum as _0x39c117}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x6d97e2}from'@univerjs-pro/license';import{CommandType as _0x51668a,DependentOn as _0x34877c,ICommandService as _0x2f235a,IConfigService as _0x5394e4,Inject as _0x2bb1f8,Injector as _0x190b5e,Plugin as _0x3b534c,UniverInstanceType as _0x621b82,createIdentifier as _0x29c25f,merge as _0x1c0735,toDisposable as _0xb664b1}from'@univerjs/core';const g=0.0001;function _(_0x47807d){return{'x':_0x47807d['x'],'y':_0x47807d['y']};}function v(_0x3b69c0){const _0x175aa2=_0x489e;return{..._0x3b69c0,'in':_0x3b69c0['in']?_(_0x3b69c0['in']):void 0x0,'out':_0x3b69c0[_0x175aa2(0x20e)]?_(_0x3b69c0[_0x175aa2(0x20e)]):void 0x0};}function y(_0x1a5fde){const _0x205c81=_0x489e;return{'kind':_0x205c81(0x20d),'closed':_0x1a5fde[_0x205c81(0x1e7)],'anchors':_0x1a5fde['anchors']['map'](v)};}function b(_0x450f8b,_0x4ef01c,_0x2fc50d){return{'x':_0x450f8b['x']+(_0x4ef01c['x']-_0x450f8b['x'])*_0x2fc50d,'y':_0x450f8b['y']+(_0x4ef01c['y']-_0x450f8b['y'])*_0x2fc50d};}function x(_0xeb0f49,_0x27a8d0){const _0xd04d82=_0x489e;return Math[_0xd04d82(0x1e4)](_0xeb0f49['x']-_0x27a8d0['x'],_0xeb0f49['y']-_0x27a8d0['y']);}function S(_0x5ec264){const _0x2393ce=_0x489e;let _0x29a650=Math[_0x2393ce(0x1e4)](_0x5ec264['x'],_0x5ec264['y']);return _0x29a650<g?{'x':0x1,'y':0x0}:{'x':_0x5ec264['x']/_0x29a650,'y':_0x5ec264['y']/_0x29a650};}function C(_0x788841,_0x57c5da,_0x254f3f=x(_0x788841,_0x57c5da)){let _0xc98794=S({'x':_0x788841['x']-_0x57c5da['x'],'y':_0x788841['y']-_0x57c5da['y']});return{'x':_0x788841['x']+_0xc98794['x']*_0x254f3f,'y':_0x788841['y']+_0xc98794['y']*_0x254f3f};}function w(_0x17757f,_0x46249d){const _0x3e4edd=_0x489e;let {anchors:_0x97207f}=_0x17757f;return _0x97207f[_0x3e4edd(0x227)]<0x2||_0x46249d<0x0?null:_0x46249d<_0x97207f['length']-0x1?{'startIndex':_0x46249d,'endIndex':_0x46249d+0x1,'start':_0x97207f[_0x46249d],'end':_0x97207f[_0x46249d+0x1]}:_0x17757f['closed']&&_0x46249d===_0x97207f[_0x3e4edd(0x227)]-0x1?{'startIndex':_0x97207f['length']-0x1,'endIndex':0x0,'start':_0x97207f[_0x97207f[_0x3e4edd(0x227)]-0x1],'end':_0x97207f[0x0]}:null;}function T(_0xf9d6d5,_0x5a0b0a){const _0x546d2b=_0x489e;let _0x14c63e=w(_0xf9d6d5,_0x5a0b0a);return _0x14c63e?[_0x14c63e[_0x546d2b(0x1f2)],_0x14c63e['start'][_0x546d2b(0x20e)]??_0x14c63e[_0x546d2b(0x1f2)],_0x14c63e['end']['in']??_0x14c63e[_0x546d2b(0x223)],_0x14c63e[_0x546d2b(0x223)]]:null;}function te(_0x478733,_0x348dc5){const _0x5616bf=_0x489e;return _0x348dc5===_0x5616bf(0x230)?_0x478733:_0x478733[_0x348dc5]??null;}function E(_0x4e1f61,_0x3147e8,_0x511d15){const _0xb10b6f=_0x489e;return _0x511d15==='anchor'||_0x4e1f61[_0xb10b6f(0x1e7)]?!0x0:_0x511d15==='in'?_0x3147e8>0x0:_0x3147e8<_0x4e1f61[_0xb10b6f(0x1ed)][_0xb10b6f(0x227)]-0x1;}function D(_0x41ff6f,_0x206f66){let [_0x19081d,_0x33e286,_0x8dd723,_0x11ad1c]=_0x41ff6f,_0x5a4451=b(_0x19081d,_0x33e286,_0x206f66),_0x287e8c=b(_0x33e286,_0x8dd723,_0x206f66),_0x58c285=b(_0x8dd723,_0x11ad1c,_0x206f66);return b(b(_0x5a4451,_0x287e8c,_0x206f66),b(_0x287e8c,_0x58c285,_0x206f66),_0x206f66);}function ne(_0x4b2029,_0x108159){let [_0x2132a6,_0xd4ec25,_0x279113,_0x13eb99]=_0x4b2029,_0x3e4d55=b(_0x2132a6,_0xd4ec25,_0x108159),_0x236dcb=b(_0xd4ec25,_0x279113,_0x108159),_0x10468f=b(_0x279113,_0x13eb99,_0x108159),_0x191cb9=b(_0x3e4d55,_0x236dcb,_0x108159),_0x3f5823=b(_0x236dcb,_0x10468f,_0x108159),_0x981092=b(_0x191cb9,_0x3f5823,_0x108159);return{'left':[_0x2132a6,_0x3e4d55,_0x191cb9,_0x981092],'right':[_0x981092,_0x3f5823,_0x10468f,_0x13eb99]};}function O(_0x54cabe,_0x5bad23,_0xb240a){const _0x5cce56=_0x489e;let _0x5bdd48=_0xb240a['x']-_0x5bad23['x'],_0x326553=_0xb240a['y']-_0x5bad23['y'],_0x2e1b6f=_0x5bdd48*_0x5bdd48+_0x326553*_0x326553,_0x5ba702=_0x2e1b6f<=g?0x0:Math[_0x5cce56(0x1f7)](0x0,Math[_0x5cce56(0x23a)](0x1,((_0x54cabe['x']-_0x5bad23['x'])*_0x5bdd48+(_0x54cabe['y']-_0x5bad23['y'])*_0x326553)/_0x2e1b6f)),_0x1e7c89={'x':_0x5bad23['x']+_0x5bdd48*_0x5ba702,'y':_0x5bad23['y']+_0x326553*_0x5ba702};return{'point':_0x1e7c89,'ratio':_0x5ba702,'distance':x(_0x54cabe,_0x1e7c89)};}function re(_0x25ddc5,_0x59f9f2,_0x37737e){const _0x2ca414=_0x489e;return O(_0x25ddc5,_0x59f9f2,_0x37737e)[_0x2ca414(0x1f6)]**0x2;}function k(_0x452ce6,_0xf54dc8){const _0x1c9d73=_0x489e;if(_0x452ce6[_0x1c9d73(0x227)]<=0x2)return _0x452ce6['map'](_);let _0x4f7be5=0x0,_0x30bb9e=0x0,_0x44f8b7=_0x452ce6[0x0],_0x42ba95=_0x452ce6[_0x452ce6['length']-0x1],_0x51f6c1=_0xf54dc8*_0xf54dc8;for(let _0x297e24=0x1;_0x297e24<_0x452ce6[_0x1c9d73(0x227)]-0x1;_0x297e24++){let _0x4c2361=re(_0x452ce6[_0x297e24],_0x44f8b7,_0x42ba95);_0x4c2361>_0x4f7be5&&(_0x4f7be5=_0x4c2361,_0x30bb9e=_0x297e24);}if(_0x4f7be5<=_0x51f6c1)return[_(_0x44f8b7),_(_0x42ba95)];let _0x41ab01=k(_0x452ce6[_0x1c9d73(0x1ec)](0x0,_0x30bb9e+0x1),_0xf54dc8),_0xb6dba7=k(_0x452ce6['slice'](_0x30bb9e),_0xf54dc8);return[..._0x41ab01[_0x1c9d73(0x1ec)](0x0,-0x1),..._0xb6dba7];}function ie(_0x22f1e6,_0x6bbc22){let _0x5670e6=_0x22f1e6[_0x6bbc22],_0xe00259=_0x22f1e6[_0x6bbc22+0x1],_0x2f918b=_0x22f1e6[_0x6bbc22-0x1]??_0x5670e6;return{'x':_0x5670e6['x']+(_0xe00259['x']-_0x2f918b['x'])/0x6,'y':_0x5670e6['y']+(_0xe00259['y']-_0x2f918b['y'])/0x6};}function A(_0x1a5b73,_0x50f10){let _0x29ad59=_0x1a5b73[_0x50f10],_0x372b76=_0x1a5b73[_0x50f10-0x1],_0x54c1aa=_0x1a5b73[_0x50f10+0x1]??_0x29ad59;return{'x':_0x29ad59['x']-(_0x54c1aa['x']-_0x372b76['x'])/0x6,'y':_0x29ad59['y']-(_0x54c1aa['y']-_0x372b76['y'])/0x6};}function j(_0x27f091,_0x33bb5c){const _0x4932c5=_0x489e;let _0x40dc34=_0x27f091[_0x4932c5(0x1ed)][_0x33bb5c],_0x185f4c=_0x27f091['anchors'][_0x33bb5c-0x1]??(_0x27f091[_0x4932c5(0x1e7)]?_0x27f091[_0x4932c5(0x1ed)][_0x27f091[_0x4932c5(0x1ed)][_0x4932c5(0x227)]-0x1]:null),_0xd46583=_0x27f091[_0x4932c5(0x1ed)][_0x33bb5c+0x1]??(_0x27f091[_0x4932c5(0x1e7)]?_0x27f091[_0x4932c5(0x1ed)][0x0]:null),_0x49c164=_0x185f4c&&_0xd46583?S({'x':_0xd46583['x']-_0x185f4c['x'],'y':_0xd46583['y']-_0x185f4c['y']}):_0xd46583?S({'x':_0xd46583['x']-_0x40dc34['x'],'y':_0xd46583['y']-_0x40dc34['y']}):_0x185f4c?S({'x':_0x40dc34['x']-_0x185f4c['x'],'y':_0x40dc34['y']-_0x185f4c['y']}):{'x':0x1,'y':0x0},_0x3eb983=_0x185f4c&&_0xd46583?Math['max'](0x32,x(_0x185f4c,_0xd46583)/0x4):0x32;return{'in':{'x':_0x40dc34['x']-_0x49c164['x']*_0x3eb983,'y':_0x40dc34['y']-_0x49c164['y']*_0x3eb983},'out':{'x':_0x40dc34['x']+_0x49c164['x']*_0x3eb983,'y':_0x40dc34['y']+_0x49c164['y']*_0x3eb983}};}function M(_0x1fd061,_0x59f15e){const _0x476bb1=_0x489e;let _0x4cc13f=_0x1fd061[_0x59f15e],_0x29bf60=_0x59f15e==='in'?_0x476bb1(0x20e):'in',_0x236a9e=_0x1fd061[_0x29bf60];_0x4cc13f&&(_0x1fd061[_0x476bb1(0x20f)]===_0x476bb1(0x233)?_0x1fd061[_0x29bf60]=C(_0x1fd061,_0x4cc13f):_0x1fd061[_0x476bb1(0x20f)]===_0x476bb1(0x232)&&(_0x1fd061[_0x29bf60]=C(_0x1fd061,_0x4cc13f,_0x236a9e?x(_0x1fd061,_0x236a9e):x(_0x1fd061,_0x4cc13f))));}function ae(_0xc563f7,_0x4d9732){const _0x47d2be=_0x489e;let _0x228de4=y(_0xc563f7);return!_0x4d9732||_0x228de4['closed']||_0x228de4[_0x47d2be(0x1ed)][_0x47d2be(0x227)]===0x0||_0x228de4['anchors'][_0x47d2be(0x221)]({'id':_0x47d2be(0x213),'x':_0x4d9732['x'],'y':_0x4d9732['y'],'pointType':_0x47d2be(0x1fe)}),_0x228de4;}function oe(_0x4b8ff1,_0x21959b={}){const _0x439e86=_0x489e;let _0x3e26f1=Math[_0x439e86(0x1f7)](0x0,_0x21959b[_0x439e86(0x1ff)]??Math[_0x439e86(0x1f7)](0x4,_0x4b8ff1[_0x439e86(0x1e2)]*0.35)),_0x707c10=_0x21959b[_0x439e86(0x235)]??(_0x32169d=>_0x439e86(0x211)+_0x32169d),_0x38c421=k(_0x4b8ff1['points'],_0x3e26f1),_0x2e95cc=_0x38c421[_0x439e86(0x1e6)]((_0x15d06a,_0x59385c)=>({'id':_0x707c10(_0x59385c),'x':_0x15d06a['x'],'y':_0x15d06a['y'],'pointType':_0x439e86(0x204)}));for(let _0x3bbc81=0x0;_0x3bbc81<_0x2e95cc['length']-0x1;_0x3bbc81++)_0x2e95cc[_0x3bbc81][_0x439e86(0x20e)]=ie(_0x38c421,_0x3bbc81),_0x2e95cc[_0x3bbc81+0x1]['in']=A(_0x38c421,_0x3bbc81+0x1);return{'kind':_0x439e86(0x20d),'closed':!0x1,'anchors':_0x2e95cc};}function se(_0x114491,_0x395d4c,_0xbedeb7){const _0x4c0926=_0x489e;let _0x3a35fd=null,_0x4709d0=[_0x4c0926(0x230),'in','out'];return _0x114491['anchors'][_0x4c0926(0x23f)]((_0x211346,_0x5b95cd)=>{const _0x45da5a=_0x4c0926;_0x4709d0[_0x45da5a(0x23f)](_0x1cdaaa=>{if(!E(_0x114491,_0x5b95cd,_0x1cdaaa))return;let _0x322f72=te(_0x211346,_0x1cdaaa);if(!_0x322f72)return;let _0x4cb851=x(_0x395d4c,_0x322f72);_0x4cb851>_0xbedeb7||_0x3a35fd&&_0x4cb851>=_0x3a35fd['distance']||(_0x3a35fd={'handle':{'kind':_0x1cdaaa,'anchorId':_0x211346['id']},'point':_(_0x322f72),'distance':_0x4cb851});});}),_0x3a35fd;}function ce(_0x4377b9,_0x437c39,_0x30213f){const _0x271458=_0x489e;let _0x263b22=null,_0x3cdf20=_0x4377b9[_0x271458(0x1e7)]?_0x4377b9[_0x271458(0x1ed)][_0x271458(0x227)]:Math[_0x271458(0x1f7)](0x0,_0x4377b9[_0x271458(0x1ed)][_0x271458(0x227)]-0x1);for(let _0xc591ef=0x0;_0xc591ef<_0x3cdf20;_0xc591ef++){let _0x540cb5=T(_0x4377b9,_0xc591ef);if(!_0x540cb5)continue;let _0x449f30=D(_0x540cb5,0x0);for(let _0x2183dc=0x1;_0x2183dc<=0x20;_0x2183dc++){let _0x377223=D(_0x540cb5,_0x2183dc/0x20),_0x43d6e4=O(_0x437c39,_0x449f30,_0x377223),_0xa33cc9=(_0x2183dc-0x1+_0x43d6e4['ratio'])/0x20;(!_0x263b22||_0x43d6e4[_0x271458(0x1f6)]<_0x263b22[_0x271458(0x1f6)])&&(_0x263b22={'segmentIndex':_0xc591ef,'t':_0xa33cc9,'point':_0x43d6e4[_0x271458(0x220)],'distance':_0x43d6e4[_0x271458(0x1f6)]}),_0x449f30=_0x377223;}}return _0x263b22&&_0x263b22[_0x271458(0x1f6)]<=_0x30213f?_0x263b22:null;}function le(_0x5554e3,_0x3cf16,_0x379217){const _0xad76ac=_0x489e;let _0x17572d=y(_0x5554e3),_0x100950=w(_0x17572d,_0x3cf16[_0xad76ac(0x236)]),_0x31a8da=T(_0x17572d,_0x3cf16[_0xad76ac(0x236)]);if(!_0x100950||!_0x31a8da)return _0x17572d;let _0x3f9edf=ne(_0x31a8da,Math[_0xad76ac(0x1f7)](0x0,Math[_0xad76ac(0x23a)](0x1,_0x3cf16['t']))),_0x4f4e57={'id':_0x379217(),'x':_0x3f9edf['left'][0x3]['x'],'y':_0x3f9edf['left'][0x3]['y'],'in':_(_0x3f9edf[_0xad76ac(0x20b)][0x2]),'out':_(_0x3f9edf[_0xad76ac(0x225)][0x1]),'pointType':_0xad76ac(0x204)};return _0x17572d[_0xad76ac(0x1ed)][_0x100950[_0xad76ac(0x23b)]][_0xad76ac(0x20e)]=_(_0x3f9edf[_0xad76ac(0x20b)][0x1]),_0x17572d['anchors'][_0x100950[_0xad76ac(0x21d)]]['in']=_(_0x3f9edf[_0xad76ac(0x225)][0x2]),_0x17572d[_0xad76ac(0x1ed)][_0xad76ac(0x1f0)](_0x100950[_0xad76ac(0x23b)]+0x1,0x0,_0x4f4e57),_0x17572d;}function ue(_0x1b548d,_0x3360cb){const _0x225e6b=_0x489e;let _0x3ccc0a=y(_0x1b548d);return _0x3ccc0a[_0x225e6b(0x1ed)]=_0x3ccc0a[_0x225e6b(0x1ed)][_0x225e6b(0x22b)](_0x2b8cf5=>_0x2b8cf5['id']!==_0x3360cb),_0x3ccc0a[_0x225e6b(0x1e7)]&&_0x3ccc0a['anchors'][_0x225e6b(0x227)]<0x3&&(_0x3ccc0a['closed']=!0x1),_0x3ccc0a;}function N(_0x32c76b,_0x4a9f3c,_0x787d96){const _0x322d0b=_0x489e;let _0x2d802d=y(_0x32c76b),_0x4d2137=_0x2d802d[_0x322d0b(0x1ed)][_0x322d0b(0x210)](_0xd53b9f=>_0xd53b9f['id']===_0x4a9f3c),_0x2a68c6=_0x2d802d[_0x322d0b(0x1ed)][_0x4d2137];if(!_0x2a68c6)return _0x2d802d;if(_0x2a68c6[_0x322d0b(0x20f)]=_0x787d96,_0x787d96==='corner')return delete _0x2a68c6['in'],delete _0x2a68c6[_0x322d0b(0x20e)],_0x2d802d;let _0x157dcd=j(_0x2d802d,_0x4d2137);if(_0x2a68c6['in']=_0x2a68c6['in']?_(_0x2a68c6['in']):_0x157dcd['in'],_0x2a68c6[_0x322d0b(0x20e)]=_0x2a68c6['out']?_(_0x2a68c6[_0x322d0b(0x20e)]):_0x157dcd[_0x322d0b(0x20e)],_0x787d96===_0x322d0b(0x233)){let _0x4e9b8e=Math[_0x322d0b(0x1f7)](x(_0x2a68c6,_0x2a68c6['in']),x(_0x2a68c6,_0x2a68c6['out']),0x32),_0x918332=S({'x':_0x2a68c6[_0x322d0b(0x20e)]['x']-_0x2a68c6['x'],'y':_0x2a68c6[_0x322d0b(0x20e)]['y']-_0x2a68c6['y']});_0x2a68c6[_0x322d0b(0x20e)]={'x':_0x2a68c6['x']+_0x918332['x']*_0x4e9b8e,'y':_0x2a68c6['y']+_0x918332['y']*_0x4e9b8e},_0x2a68c6['in']={'x':_0x2a68c6['x']-_0x918332['x']*_0x4e9b8e,'y':_0x2a68c6['y']-_0x918332['y']*_0x4e9b8e};}else _0x787d96==='smooth'&&M(_0x2a68c6,_0x322d0b(0x20e));return _0x2d802d;}function P(_0x5da127,_0x4cff83){const _0x2f0ede=_0x489e;let _0x343040=_0x5da127[_0x2f0ede(0x1ed)][_0x2f0ede(0x1f4)](_0x363f62=>_0x363f62['id']===_0x4cff83),_0x2c4353=(_0x343040==null?void 0x0:_0x343040[_0x2f0ede(0x20f)])??'corner';return N(_0x5da127,_0x4cff83,_0x2c4353===_0x2f0ede(0x1fe)?_0x2f0ede(0x232):_0x2c4353===_0x2f0ede(0x232)?_0x2f0ede(0x233):_0x2c4353===_0x2f0ede(0x233)?_0x2f0ede(0x204):_0x2f0ede(0x1fe));}function F(_0x232e54,_0x4010e0,_0x190603){const _0x5d9682=_0x489e;let _0x8893d9=y(_0x232e54),_0x13755d=_0x8893d9[_0x5d9682(0x1ed)]['find'](_0x167c2b=>_0x167c2b['id']===_0x4010e0['anchorId']);if(!_0x13755d)return _0x8893d9;if(_0x4010e0[_0x5d9682(0x228)]===_0x5d9682(0x230)){let _0x16bae1={'x':_0x190603['x']-_0x13755d['x'],'y':_0x190603['y']-_0x13755d['y']};return _0x13755d['x']=_0x190603['x'],_0x13755d['y']=_0x190603['y'],_0x13755d['in']&&={'x':_0x13755d['in']['x']+_0x16bae1['x'],'y':_0x13755d['in']['y']+_0x16bae1['y']},_0x13755d[_0x5d9682(0x20e)]&&={'x':_0x13755d[_0x5d9682(0x20e)]['x']+_0x16bae1['x'],'y':_0x13755d[_0x5d9682(0x20e)]['y']+_0x16bae1['y']},_0x8893d9;}return _0x13755d[_0x4010e0[_0x5d9682(0x228)]]=_(_0x190603),_0x13755d[_0x5d9682(0x20f)]===_0x5d9682(0x1fe)&&(_0x13755d[_0x5d9682(0x20f)]=_0x5d9682(0x204)),M(_0x13755d,_0x4010e0['kind']),_0x8893d9;}const I=1e-9;function L(_0x4af4bc){const _0x376609=_0x489e;let _0x1e9852=Math[_0x376609(0x229)](_0x4af4bc*0x2710)/0x2710;return Object['is'](_0x1e9852,-0x0)?'0':String(_0x1e9852);}function R(_0x4e3b67){return L(_0x4e3b67['x'])+'\x20'+L(_0x4e3b67['y']);}function z(_0x4807ed,_0x2758c9){return{'x':_0x4807ed['x']-_0x2758c9['x'],'y':_0x4807ed['y']-_0x2758c9['y']};}function B(_0x22e259,_0xc7e155,_0x1a4b2c,_0x1c1bd4,_0x27207c){let _0x454ad9=0x1-_0x27207c;return{'x':_0x454ad9*_0x454ad9*_0x454ad9*_0x22e259['x']+0x3*_0x454ad9*_0x454ad9*_0x27207c*_0xc7e155['x']+0x3*_0x454ad9*_0x27207c*_0x27207c*_0x1a4b2c['x']+_0x27207c*_0x27207c*_0x27207c*_0x1c1bd4['x'],'y':_0x454ad9*_0x454ad9*_0x454ad9*_0x22e259['y']+0x3*_0x454ad9*_0x454ad9*_0x27207c*_0xc7e155['y']+0x3*_0x454ad9*_0x27207c*_0x27207c*_0x1a4b2c['y']+_0x27207c*_0x27207c*_0x27207c*_0x1c1bd4['y']};}function V(_0x4d7b26,_0x641f56,_0x3cab67,_0x21da11){const _0x58f84e=_0x489e;let _0x59d2bc=-_0x4d7b26+0x3*_0x641f56-0x3*_0x3cab67+_0x21da11,_0x3f5ac2=0x3*_0x4d7b26-0x6*_0x641f56+0x3*_0x3cab67,_0x508512=-0x3*_0x4d7b26+0x3*_0x641f56,_0x7ce263=[];if(Math[_0x58f84e(0x216)](_0x59d2bc)<I){if(Math[_0x58f84e(0x216)](_0x3f5ac2)<I)return _0x7ce263;let _0x2aa40a=-_0x508512/(0x2*_0x3f5ac2);return _0x2aa40a>0x0&&_0x2aa40a<0x1&&_0x7ce263[_0x58f84e(0x221)](_0x2aa40a),_0x7ce263;}let _0x507f0e=_0x3f5ac2*_0x3f5ac2-0x3*_0x59d2bc*_0x508512;if(_0x507f0e<0x0)return _0x7ce263;let _0x58c641=Math['sqrt'](Math[_0x58f84e(0x1f7)](0x0,_0x507f0e)),_0x38b867=(-_0x3f5ac2+_0x58c641)/(0x3*_0x59d2bc),_0x3aa7d7=(-_0x3f5ac2-_0x58c641)/(0x3*_0x59d2bc);return _0x38b867>0x0&&_0x38b867<0x1&&_0x7ce263[_0x58f84e(0x221)](_0x38b867),_0x3aa7d7>0x0&&_0x3aa7d7<0x1&&Math[_0x58f84e(0x216)](_0x3aa7d7-_0x38b867)>I&&_0x7ce263[_0x58f84e(0x221)](_0x3aa7d7),_0x7ce263;}function H(_0x456cb0,_0x323378,_0x97bf57,_0x57e066,_0x24d124){const _0xf7a748=_0x489e;_0x456cb0[_0xf7a748(0x221)](_0x323378,_0x24d124),new Set([...V(_0x323378['x'],_0x97bf57['x'],_0x57e066['x'],_0x24d124['x']),...V(_0x323378['y'],_0x97bf57['y'],_0x57e066['y'],_0x24d124['y'])])[_0xf7a748(0x23f)](_0x28fbcb=>{const _0x5a11d9=_0xf7a748;_0x456cb0[_0x5a11d9(0x221)](B(_0x323378,_0x97bf57,_0x57e066,_0x24d124,_0x28fbcb));});}function U(_0x3c37d4){const _0x418887=_0x489e;let _0x426904=_0x3c37d4[_0x418887(0x1ed)];if(_0x426904['length']<=0x1)return _0x426904;let _0x3bc9a4=[];for(let _0x1975eb=0x1;_0x1975eb<_0x426904[_0x418887(0x227)];_0x1975eb++){let _0x11b57b=_0x426904[_0x1975eb-0x1],_0x3f369b=_0x426904[_0x1975eb];H(_0x3bc9a4,_0x11b57b,_0x11b57b[_0x418887(0x20e)]??_0x11b57b,_0x3f369b['in']??_0x3f369b,_0x3f369b);}if(_0x3c37d4[_0x418887(0x1e7)]&&_0x426904[_0x418887(0x227)]>0x1){let _0x3e7a32=_0x426904[_0x426904[_0x418887(0x227)]-0x1],_0x13cf8b=_0x426904[0x0];H(_0x3bc9a4,_0x3e7a32,_0x3e7a32[_0x418887(0x20e)]??_0x3e7a32,_0x13cf8b['in']??_0x13cf8b,_0x13cf8b);}return _0x3bc9a4;}function de(_0x58dc2f){const _0x24170f=_0x489e;let _0x7566c1=_0x58dc2f[_0x24170f(0x22c)];if(_0x7566c1[_0x24170f(0x227)]<=0x1)return _0x7566c1;let _0x4b35a6=[];for(let _0x1eb915=0x0;_0x1eb915<_0x7566c1[_0x24170f(0x227)]-0x1;_0x1eb915++){let _0xf1ecd=_0x7566c1[_0x1eb915],_0x3eddf3=_0x7566c1[_0x1eb915+0x1],_0x367df5=_0x7566c1[_0x1eb915-0x1]??_0xf1ecd,_0x5054d5=_0x7566c1[_0x1eb915+0x2]??_0x3eddf3;H(_0x4b35a6,_0xf1ecd,{'x':_0xf1ecd['x']+(_0x3eddf3['x']-_0x367df5['x'])/0x6,'y':_0xf1ecd['y']+(_0x3eddf3['y']-_0x367df5['y'])/0x6},{'x':_0x3eddf3['x']-(_0x5054d5['x']-_0xf1ecd['x'])/0x6,'y':_0x3eddf3['y']-(_0x5054d5['y']-_0xf1ecd['y'])/0x6},_0x3eddf3);}return _0x4b35a6;}function fe(_0x598b5f){const _0x15131a=_0x489e;return _0x598b5f[_0x15131a(0x228)]==='pen'?U(_0x598b5f):de(_0x598b5f);}function _0x489e(_0x267d42,_0x4f9ea5){_0x267d42=_0x267d42-0x1e2;const _0x40540d=_0x4054();let _0x489e71=_0x40540d[_0x267d42];return _0x489e71;}function W(_0x4f2f16){const _0x466a26=_0x489e;let _0x17abe9=Math[_0x466a26(0x229)](_0x4f2f16*0x2710)/0x2710;return Object['is'](_0x17abe9,-0x0)?0x0:_0x17abe9;}function G(_0x23ef1b){const _0x4c5219=_0x489e;let _0x196422=fe(_0x23ef1b);if(_0x196422[_0x4c5219(0x227)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b8a74=Math['min'](..._0x196422[_0x4c5219(0x1e6)](_0x3c146e=>_0x3c146e['x'])),_0xb521ca=Math[_0x4c5219(0x23a)](..._0x196422[_0x4c5219(0x1e6)](_0x577640=>_0x577640['y'])),_0x2b393e=Math[_0x4c5219(0x1f7)](..._0x196422[_0x4c5219(0x1e6)](_0x1db932=>_0x1db932['x'])),_0x87f5a=Math[_0x4c5219(0x1f7)](..._0x196422['map'](_0x498b3c=>_0x498b3c['y']));return{'left':W(_0x4b8a74),'top':W(_0xb521ca),'width':W(Math[_0x4c5219(0x1f7)](0x1,_0x2b393e-_0x4b8a74)),'height':W(Math[_0x4c5219(0x1f7)](0x1,_0x87f5a-_0xb521ca))};}function pe(_0x35acbd,_0x4ef7d2){const _0x2a7170=_0x489e;let _0x511d4e=_0x35acbd[_0x2a7170(0x1ed)];if(_0x511d4e[_0x2a7170(0x227)]===0x0)return'';let _0x1dc56d=['M\x20'+R(z(_0x511d4e[0x0],_0x4ef7d2))];for(let _0x201750=0x1;_0x201750<_0x511d4e[_0x2a7170(0x227)];_0x201750++){let _0x27ec57=_0x511d4e[_0x201750-0x1],_0x4a0845=_0x511d4e[_0x201750],_0xf36765=_0x27ec57[_0x2a7170(0x20e)]??_0x27ec57,_0x758c2f=_0x4a0845['in']??_0x4a0845;_0x1dc56d['push']('C\x20'+R(z(_0xf36765,_0x4ef7d2))+'\x20'+R(z(_0x758c2f,_0x4ef7d2))+'\x20'+R(z(_0x4a0845,_0x4ef7d2)));}if(_0x35acbd[_0x2a7170(0x1e7)]&&_0x511d4e[_0x2a7170(0x227)]>0x1){let _0x379c07=_0x511d4e[_0x511d4e[_0x2a7170(0x227)]-0x1],_0x3fe042=_0x511d4e[0x0],_0x548105=_0x379c07['out']??_0x379c07,_0x460e6e=_0x3fe042['in']??_0x3fe042;_0x1dc56d[_0x2a7170(0x221)]('C\x20'+R(z(_0x548105,_0x4ef7d2))+'\x20'+R(z(_0x460e6e,_0x4ef7d2))+'\x20'+R(z(_0x3fe042,_0x4ef7d2))),_0x1dc56d[_0x2a7170(0x221)]('Z');}return _0x1dc56d[_0x2a7170(0x21b)]('\x20');}function me(_0x35e6c8,_0xa6796c){const _0x504c8d=_0x489e;let _0x22c829=_0x35e6c8[_0x504c8d(0x22c)][_0x504c8d(0x1e6)](_0x199852=>z(_0x199852,_0xa6796c));if(_0x22c829[_0x504c8d(0x227)]===0x0)return'';if(_0x22c829['length']===0x1)return'M\x20'+R(_0x22c829[0x0]);let _0x78083f=['M\x20'+R(_0x22c829[0x0])];for(let _0x590327=0x0;_0x590327<_0x22c829[_0x504c8d(0x227)]-0x1;_0x590327++){let _0x6a5d36=_0x22c829[_0x590327],_0x42003f=_0x22c829[_0x590327+0x1],_0x481c77=_0x22c829[_0x590327-0x1]??_0x6a5d36,_0x32c5f7=_0x22c829[_0x590327+0x2]??_0x42003f,_0x481b04={'x':_0x6a5d36['x']+(_0x42003f['x']-_0x481c77['x'])/0x6,'y':_0x6a5d36['y']+(_0x42003f['y']-_0x481c77['y'])/0x6},_0x57d1e1={'x':_0x42003f['x']-(_0x32c5f7['x']-_0x6a5d36['x'])/0x6,'y':_0x42003f['y']-(_0x32c5f7['y']-_0x6a5d36['y'])/0x6};_0x78083f[_0x504c8d(0x221)]('C\x20'+R(_0x481b04)+'\x20'+R(_0x57d1e1)+'\x20'+R(_0x42003f));}return _0x78083f[_0x504c8d(0x21b)]('\x20');}function he(_0x2529fc,_0x5efa7f){const _0x440e31=_0x489e;return _0x2529fc['kind']===_0x440e31(0x20d)?pe(_0x2529fc,_0x5efa7f):me(_0x2529fc,_0x5efa7f);}function ge(_0x5404b2,_0xdcb3bb){const _0x414e7a=_0x489e;return _0xdcb3bb!=null&&_0xdcb3bb[_0x414e7a(0x242)]?_0xdcb3bb['color']:_0x5404b2['kind']===_0x414e7a(0x20d)?_0x414e7a(0x22e):_0x5404b2[_0x414e7a(0x242)];}function _e(_0x2952c8,_0x5aade9){const _0x288a95=_0x489e;return(_0x5aade9==null?void 0x0:_0x5aade9[_0x288a95(0x1e2)])===void 0x0?_0x2952c8[_0x288a95(0x228)]===_0x288a95(0x20d)?0x2:_0x2952c8[_0x288a95(0x1e2)]:_0x5aade9[_0x288a95(0x1e2)];}function ve(_0x5a33d0,_0x46b8bf){const _0x2053f9=_0x489e;return(_0x46b8bf==null?void 0x0:_0x46b8bf[_0x2053f9(0x241)])===void 0x0?_0x5a33d0[_0x2053f9(0x228)]===_0x2053f9(0x20d)?void 0x0:_0x5a33d0[_0x2053f9(0x241)]:_0x46b8bf[_0x2053f9(0x241)];}function ye(_0x4d2ef8,_0x5cec7c){const _0x5e4385=_0x489e;let _0x231a1e=G(_0x4d2ef8),_0x238d67=he(_0x4d2ef8,{'x':_0x231a1e[_0x5e4385(0x20b)],'y':_0x231a1e[_0x5e4385(0x209)]}),_0x1f18cc=_0x4d2ef8[_0x5e4385(0x228)]===_0x5e4385(0x20d)&&_0x4d2ef8[_0x5e4385(0x1e7)],_0x42d682=_0x5cec7c==null?void 0x0:_0x5cec7c[_0x5e4385(0x1e5)];return{'shapeType':_0x39c117['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x231a1e[_0x5e4385(0x1e2)],'h':_0x231a1e[_0x5e4385(0x212)],'fill':_0x1f18cc?_0x5e4385(0x219):_0x5e4385(0x234),'stroke':!0x0,'data':_0x238d67,'dataArray':be(_0x4d2ef8,{'x':_0x231a1e[_0x5e4385(0x20b)],'y':_0x231a1e[_0x5e4385(0x209)]})}]},'fill':_0x1f18cc&&_0x42d682?{'color':_0x42d682,'fillType':_0x1b495a[_0x5e4385(0x21e)]}:{'fillType':_0x1b495a[_0x5e4385(0x1ef)]},'stroke':{'color':ge(_0x4d2ef8,_0x5cec7c),'width':_e(_0x4d2ef8,_0x5cec7c),'opacity':ve(_0x4d2ef8,_0x5cec7c),'lineStrokeType':_0xe8f2b9['SolidLine'],'capType':_0x3a7c9e[_0x5e4385(0x217)],'lineJoinType':_0x22697f['Round']}};}function K(_0x36a63c,_0x283065){return{'x':_0x36a63c['x']-_0x283065['x'],'y':_0x36a63c['y']-_0x283065['y']};}function be(_0x1b8421,_0x3a780){const _0x19677d=_0x489e;if(_0x1b8421['kind']===_0x19677d(0x20d)){let _0x442450=_0x1b8421[_0x19677d(0x1ed)];if(_0x442450[_0x19677d(0x227)]===0x0)return[];let _0x319962=K(_0x442450[0x0],_0x3a780),_0x1566f5=[{'command':'M','points':[_0x319962['x'],_0x319962['y']]}];for(let _0x71b55c=0x1;_0x71b55c<_0x442450['length'];_0x71b55c++){let _0xc44656=_0x442450[_0x71b55c-0x1],_0x255866=_0x442450[_0x71b55c],_0x7176b2=K(_0xc44656[_0x19677d(0x20e)]??_0xc44656,_0x3a780),_0x5bf9bd=K(_0x255866['in']??_0x255866,_0x3a780),_0xa6efb7=K(_0x255866,_0x3a780);_0x1566f5['push']({'command':'C','points':[_0x7176b2['x'],_0x7176b2['y'],_0x5bf9bd['x'],_0x5bf9bd['y'],_0xa6efb7['x'],_0xa6efb7['y']]});}if(_0x1b8421[_0x19677d(0x1e7)]&&_0x442450[_0x19677d(0x227)]>0x1){let _0x50c825=_0x442450[_0x442450[_0x19677d(0x227)]-0x1],_0x446745=_0x442450[0x0],_0x2834f2=K(_0x50c825[_0x19677d(0x20e)]??_0x50c825,_0x3a780),_0x5436c5=K(_0x446745['in']??_0x446745,_0x3a780),_0x421264=K(_0x446745,_0x3a780);_0x1566f5[_0x19677d(0x221)]({'command':'C','points':[_0x2834f2['x'],_0x2834f2['y'],_0x5436c5['x'],_0x5436c5['y'],_0x421264['x'],_0x421264['y']]}),_0x1566f5[_0x19677d(0x221)]({'command':'z','points':[]});}return _0x1566f5;}let _0x48d261=_0x1b8421[_0x19677d(0x22c)][_0x19677d(0x1e6)](_0x4ac888=>K(_0x4ac888,_0x3a780));if(_0x48d261[_0x19677d(0x227)]===0x0)return[];let _0x229e71=[{'command':'M','points':[_0x48d261[0x0]['x'],_0x48d261[0x0]['y']]}];for(let _0x5ddc03=0x0;_0x5ddc03<_0x48d261['length']-0x1;_0x5ddc03++){let _0x1fec47=_0x48d261[_0x5ddc03],_0x2b34db=_0x48d261[_0x5ddc03+0x1],_0x4b116b=_0x48d261[_0x5ddc03-0x1]??_0x1fec47,_0x3a986c=_0x48d261[_0x5ddc03+0x2]??_0x2b34db,_0x23e876={'x':_0x1fec47['x']+(_0x2b34db['x']-_0x4b116b['x'])/0x6,'y':_0x1fec47['y']+(_0x2b34db['y']-_0x4b116b['y'])/0x6},_0x4e5b08={'x':_0x2b34db['x']-(_0x3a986c['x']-_0x1fec47['x'])/0x6,'y':_0x2b34db['y']-(_0x3a986c['y']-_0x1fec47['y'])/0x6};_0x229e71[_0x19677d(0x221)]({'command':'C','points':[_0x23e876['x'],_0x23e876['y'],_0x4e5b08['x'],_0x4e5b08['y'],_0x2b34db['x'],_0x2b34db['y']]});}return _0x229e71;}function xe(_0x27f442){const _0x5db691=_0x489e;let {model:_0x451d67,sourceModel:_0x491f99=_0x451d67,style:_0x3c7f0f}=_0x27f442,_0x1584c6=_0x27f442[_0x5db691(0x1fd)]??_0x451d67[_0x5db691(0x228)],_0x1b5dca=G(_0x451d67),_0x1cf9b5=_0x451d67[_0x5db691(0x228)]===_0x5db691(0x20d)&&_0x1584c6!==_0x5db691(0x20d)?_0x451d67:void 0x0;return{'transform':{..._0x1b5dca,'rotation':0x0},'shapeData':ye(_0x451d67,_0x3c7f0f),'ink':{'version':0x1,'tool':_0x1584c6,'sourceModel':_0x491f99,..._0x1cf9b5?{'editModel':_0x1cf9b5}:{},'normalizedBounds':_0x1b5dca}};}var Se=_0x1fa4ef(0x202),Ce=_0x1fa4ef(0x1fc);function q(_0x1aeec4){'@babel/helpers - typeof';const _0x5def27=_0x1fa4ef;return q=typeof Symbol==_0x5def27(0x237)&&typeof Symbol[_0x5def27(0x1ee)]==_0x5def27(0x208)?function(_0x37432a){return typeof _0x37432a;}:function(_0x139f06){const _0x36f8d5=_0x5def27;return _0x139f06&&typeof Symbol==_0x36f8d5(0x237)&&_0x139f06[_0x36f8d5(0x23d)]===Symbol&&_0x139f06!==Symbol[_0x36f8d5(0x1fb)]?_0x36f8d5(0x208):typeof _0x139f06;},q(_0x1aeec4);}function we(_0x2f83be,_0x5bf3ab){const _0x353e78=_0x1fa4ef;if(q(_0x2f83be)!=_0x353e78(0x20c)||!_0x2f83be)return _0x2f83be;var _0x332a00=_0x2f83be[Symbol[_0x353e78(0x1f8)]];if(_0x332a00!==void 0x0){var _0x41fffe=_0x332a00['call'](_0x2f83be,_0x5bf3ab||_0x353e78(0x23e));if(q(_0x41fffe)!='object')return _0x41fffe;throw TypeError(_0x353e78(0x207));}return(_0x5bf3ab===_0x353e78(0x1f9)?String:Number)(_0x2f83be);}function J(_0x4e11a8){var _0x26be84=we(_0x4e11a8,'string');return q(_0x26be84)=='symbol'?_0x26be84:_0x26be84+'';}function Y(_0x4378af,_0x2aa570,_0x5c12ae){const _0x4f42ae=_0x1fa4ef;return(_0x2aa570=J(_0x2aa570))in _0x4378af?Object[_0x4f42ae(0x214)](_0x4378af,_0x2aa570,{'value':_0x5c12ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4378af[_0x2aa570]=_0x5c12ae,_0x4378af;}const X=_0x29c25f('ink.host-adapter.service');var Te=class{constructor(){const _0xc1a387=_0x1fa4ef;Y(this,_0xc1a387(0x1e9),[]);}[_0x1fa4ef(0x1f3)](_0x488bfe){const _0xa172ac=_0x1fa4ef;return this[_0xa172ac(0x1e9)][_0xa172ac(0x221)](_0x488bfe),_0xb664b1(()=>{const _0x55af51=_0xa172ac;let _0x53d53e=this[_0x55af51(0x1e9)]['indexOf'](_0x488bfe);_0x53d53e>=0x0&&this['_adapters'][_0x55af51(0x1f0)](_0x53d53e,0x1);});}[_0x1fa4ef(0x23c)](_0x193342){const _0x4d0e39=_0x1fa4ef;for(let _0xf8f9b1 of this[_0x4d0e39(0x1e9)])if(_0xf8f9b1[_0x4d0e39(0x23c)](_0x193342))return!0x0;return!0x1;}async[_0x1fa4ef(0x226)](_0x3cf5de){const _0x213f6a=_0x1fa4ef;for(let _0x4f1d75 of this['_adapters'])if(_0x4f1d75['createCustomShape']&&await _0x4f1d75[_0x213f6a(0x226)](_0x3cf5de))return!0x0;return!0x1;}};function _0x4054(){const _0x55e230=['find','ink.config','distance','max','toPrimitive','string','OPERATION','prototype','1.3.1','tool','corner','tolerance','_injector','_config','@univerjs-pro/ink','202794mRtXsw','free','_configService','866826SEYvKk','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','top','pluginName','left','object','pen','out','pointType','findIndex','ink-centerline-','height','__ink-preview-anchor__','defineProperty','_commandService','abs','Round','840iBmCrR','norm','287975MilPJq','join','2467928kmnDro','endIndex','SolidFill','197703FvrSzg','point','push','2423UMpKDv','end','UNIVER_INK_PLUGIN','right','createCustomShape','length','kind','round','154GIxMAD','filter','points','233877vyFZDp','#f54a45','packageName','anchor','registerCommand','smooth','symmetric','none','createId','segmentIndex','function','type','disposeWithMe','min','startIndex','beginInkMode','constructor','default','forEach','version','opacity','color','width','get','hypot','fillColor','map','closed','getOwnPropertyDescriptor','_adapters','ink.operation.start','44KCXNmk','slice','anchors','iterator','NoFill','splice','add','start','registerAdapter'];_0x4054=function(){return _0x55e230;};return _0x4054();}const Ee={'id':_0x1fa4ef(0x1ea),'type':_0x51668a[_0x1fa4ef(0x1fa)],'handler':(_0x35ecbd,_0x18ce9a)=>_0x18ce9a?_0x35ecbd[_0x1fa4ef(0x1e3)](X)[_0x1fa4ef(0x23c)](_0x18ce9a):!0x1},Z={};function Q(_0x233d8a,_0x2750a2){return function(_0x1f3a78,_0xb8ef3b){_0x2750a2(_0x1f3a78,_0xb8ef3b,_0x233d8a);};}function De(_0x26ede4,_0x18cc5a,_0x410c8e,_0x3e2ca5){const _0x30ae97=_0x1fa4ef;var _0x13de39=arguments[_0x30ae97(0x227)],_0xf6a977=_0x13de39<0x3?_0x18cc5a:_0x3e2ca5===null?_0x3e2ca5=Object[_0x30ae97(0x1e8)](_0x18cc5a,_0x410c8e):_0x3e2ca5,_0x302ff7;if(typeof Reflect==_0x30ae97(0x20c)&&typeof Reflect['decorate']==_0x30ae97(0x237))_0xf6a977=Reflect['decorate'](_0x26ede4,_0x18cc5a,_0x410c8e,_0x3e2ca5);else{for(var _0x52d440=_0x26ede4['length']-0x1;_0x52d440>=0x0;_0x52d440--)(_0x302ff7=_0x26ede4[_0x52d440])&&(_0xf6a977=(_0x13de39<0x3?_0x302ff7(_0xf6a977):_0x13de39>0x3?_0x302ff7(_0x18cc5a,_0x410c8e,_0xf6a977):_0x302ff7(_0x18cc5a,_0x410c8e))||_0xf6a977);}return _0x13de39>0x3&&_0xf6a977&&Object[_0x30ae97(0x214)](_0x18cc5a,_0x410c8e,_0xf6a977),_0xf6a977;}let $=class extends _0x3b534c{constructor(_0xae5495=Z,_0x387a92,_0x3d51f6,_0x329394){const _0x1b479a=_0x1fa4ef;super(),this[_0x1b479a(0x201)]=_0xae5495,this['_injector']=_0x387a92,this[_0x1b479a(0x215)]=_0x3d51f6,this[_0x1b479a(0x205)]=_0x329394;let {..._0x31d73c}=_0x1c0735({},Z,this[_0x1b479a(0x201)]);this[_0x1b479a(0x205)]['setConfig'](_0x1b479a(0x1f5),_0x31d73c);}['onStarting'](){const _0x2c9e61=_0x1fa4ef;[[X,{'useClass':Te}]][_0x2c9e61(0x23f)](_0x227880=>this[_0x2c9e61(0x200)][_0x2c9e61(0x1f1)](_0x227880)),this[_0x2c9e61(0x239)](this[_0x2c9e61(0x215)][_0x2c9e61(0x231)](Ee));}};Y($,_0x1fa4ef(0x20a),_0x1fa4ef(0x224)),Y($,_0x1fa4ef(0x22f),Se),Y($,_0x1fa4ef(0x240),Ce),Y($,_0x1fa4ef(0x238),_0x621b82['UNIVER_UNKNOWN']),$=De([_0x34877c(_0x6d97e2),Q(0x1,_0x2bb1f8(_0x190b5e)),Q(0x2,_0x2f235a),Q(0x3,_0x5394e4)],$);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 _0x1fcd42=_0x2403;(function(_0xf41b73,_0x5db4ae){const _0x2ef4ab=_0x2403,_0x4603fa=_0xf41b73();while(!![]){try{const _0x4b40ed=-parseInt(_0x2ef4ab(0x221))/0x1*(-parseInt(_0x2ef4ab(0x21d))/0x2)+-parseInt(_0x2ef4ab(0x216))/0x3+-parseInt(_0x2ef4ab(0x1fd))/0x4*(-parseInt(_0x2ef4ab(0x215))/0x5)+parseInt(_0x2ef4ab(0x200))/0x6*(-parseInt(_0x2ef4ab(0x21f))/0x7)+-parseInt(_0x2ef4ab(0x209))/0x8*(parseInt(_0x2ef4ab(0x1ff))/0x9)+parseInt(_0x2ef4ab(0x204))/0xa+-parseInt(_0x2ef4ab(0x206))/0xb*(-parseInt(_0x2ef4ab(0x1f9))/0xc);if(_0x4b40ed===_0x5db4ae)break;else _0x4603fa['push'](_0x4603fa['shift']());}catch(_0x3fa446){_0x4603fa['push'](_0x4603fa['shift']());}}}(_0x4f93,0x8bfc2));import{BoardElementType as _0x309451}from'@univerjs-pro/boards';import{FBoard as _0x4fa8ae}from'@univerjs-pro/boards/facade';import{buildInkCustomShapePayload as _0x4679c0}from'@univerjs-pro/ink';import{Tools as _0xdcd912,generateRandomId as _0x303a91}from'@univerjs/core';import{FEnum as _0x286ee1}from'@univerjs/core/facade';var o=class extends _0x4fa8ae{[_0x1fcd42(0x1f8)](_0x213ff5){const _0x309a5d=_0x1fcd42;let _0x55b55c=s(_0x213ff5);return _0x55b55c&&this[_0x309a5d(0x214)](_0x55b55c,{'insertIndex':_0x213ff5[_0x309a5d(0x202)]})?_0x55b55c:null;}['getInks'](){const _0x53086a=_0x1fcd42;return this['findElements']({'elementType':_0x309451[_0x53086a(0x21e)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](p);}};function s(_0x2d613b,_0x7698da){const _0x57998e=_0x1fcd42;if(!l(_0x2d613b[_0x57998e(0x1fe)])||_0x2d613b[_0x57998e(0x210)]!==void 0x0&&!l(_0x2d613b[_0x57998e(0x210)])||!u(_0x2d613b[_0x57998e(0x1f0)]))return null;let _0x2a83bc=_0x2d613b[_0x57998e(0x201)]??(_0x7698da==null?void 0x0:_0x7698da[_0x57998e(0x201)]),_0x64426b=_0xdcd912[_0x57998e(0x218)](_0x2d613b[_0x57998e(0x1fe)]),_0x2d9e86=_0x4679c0({'model':_0x64426b,'style':_0x2d613b[_0x57998e(0x1f0)],'tool':_0x2d613b[_0x57998e(0x21c)],'sourceModel':_0x2d613b['sourceModel']?_0xdcd912[_0x57998e(0x218)](_0x2d613b[_0x57998e(0x210)]):_0x64426b}),_0x5d2c26=d(_0x7698da==null?void 0x0:_0x7698da['custom']);return{'id':(_0x7698da==null?void 0x0:_0x7698da['id'])??_0x2d613b['id']??_0x303a91(0x6),'type':_0x309451[_0x57998e(0x21e)],'transform':_0x2d9e86['transform'],'shapeData':_0x2d9e86[_0x57998e(0x20d)],'parentId':_0x2a83bc??void 0x0,'laneId':_0x2d613b['laneId']===void 0x0?_0x7698da==null?void 0x0:_0x7698da[_0x57998e(0x1f5)]:_0x2d613b[_0x57998e(0x1f5)],'custom':{..._0x5d2c26,'ink':_0x2d9e86[_0x57998e(0x1fc)]}};}function c(_0x219e64){const _0xe38c88=_0x1fcd42;return Number[_0xe38c88(0x20f)](_0x219e64['x'])&&Number[_0xe38c88(0x20f)](_0x219e64['y']);}function l(_0x264aed){const _0x509530=_0x1fcd42;if(_0x264aed['kind']===_0x509530(0x205)){let _0x244193=new Set();return _0x264aed[_0x509530(0x207)]['length']>=(_0x264aed[_0x509530(0x1f2)]?0x3:0x2)&&_0x264aed[_0x509530(0x207)]['every'](_0xde8d6c=>{const _0x7bf1b3=_0x509530;let _0x369531=_0xde8d6c['id'][_0x7bf1b3(0x217)]()[_0x7bf1b3(0x213)]>0x0&&!_0x244193['has'](_0xde8d6c['id'])&&c(_0xde8d6c)&&(!_0xde8d6c['in']||c(_0xde8d6c['in']))&&(!_0xde8d6c[_0x7bf1b3(0x1f1)]||c(_0xde8d6c[_0x7bf1b3(0x1f1)]));return _0x244193['add'](_0xde8d6c['id']),_0x369531;});}return _0x264aed[_0x509530(0x208)][_0x509530(0x213)]>=0x2&&_0x264aed[_0x509530(0x208)][_0x509530(0x21b)](_0x4e6498=>c(_0x4e6498)&&Number[_0x509530(0x20f)](_0x4e6498['t'])&&(_0x4e6498[_0x509530(0x21a)]===void 0x0||Number['isFinite'](_0x4e6498[_0x509530(0x21a)])))&&Number[_0x509530(0x20f)](_0x264aed[_0x509530(0x1f7)])&&_0x264aed[_0x509530(0x1f7)]>0x0&&Number[_0x509530(0x20f)](_0x264aed[_0x509530(0x211)])&&_0x264aed[_0x509530(0x211)]>=0x0&&_0x264aed['opacity']<=0x1;}function u(_0x2d40d3){const _0x44393f=_0x1fcd42;return _0x2d40d3===void 0x0||(_0x2d40d3[_0x44393f(0x1f7)]===void 0x0||Number['isFinite'](_0x2d40d3[_0x44393f(0x1f7)])&&_0x2d40d3[_0x44393f(0x1f7)]>0x0)&&(_0x2d40d3[_0x44393f(0x211)]===void 0x0||Number[_0x44393f(0x20f)](_0x2d40d3[_0x44393f(0x211)])&&_0x2d40d3[_0x44393f(0x211)]>=0x0&&_0x2d40d3['opacity']<=0x1);}function _0x4f93(){const _0x1d0262=['brush','style','out','closed','corner','custom','laneId','free','width','insertInk','975636TqdJJt','type','BoardInkPointType','ink','44HjCbwS','model','81ySGRoI','1067814lirrRP','parentId','insertIndex','BoardInkHandleKind','9378180maBNSc','pen','77PNxQdW','anchors','points','989528JgFLxO','extend','symmetric','version','shapeData','smooth','isFinite','sourceModel','opacity','highlighter','length','_addElement','188805ZDzeUC','1735332LrkKyF','trim','deepClone','isArray','pressure','every','tool','28XLdolE','Shape','21TjrkiV','object','62617oubmOt'];_0x4f93=function(){return _0x1d0262;};return _0x4f93();}function d(_0x5befe4){const _0x2fb959=_0x1fcd42;return _0x5befe4&&typeof _0x5befe4==_0x2fb959(0x220)&&!Array[_0x2fb959(0x219)](_0x5befe4)?_0x5befe4:{};}function f(_0x1a97a5){const _0x302c34=_0x1fcd42;let _0xd267cf=d(_0x1a97a5[_0x302c34(0x1f4)])[_0x302c34(0x1fc)];if(!_0xd267cf||typeof _0xd267cf!='object'||Array['isArray'](_0xd267cf))return null;let _0x21766d=_0xd267cf;return _0x21766d[_0x302c34(0x20c)]===0x1&&_0x21766d[_0x302c34(0x210)]&&typeof _0x21766d[_0x302c34(0x210)]==_0x302c34(0x220)?_0x21766d:null;}function p(_0x43b380){const _0x455ac6=_0x1fcd42;return _0x43b380[_0x455ac6(0x1fa)]===_0x309451[_0x455ac6(0x21e)]&&!!f(_0x43b380);}_0x4fa8ae[_0x1fcd42(0x20a)](o);const m={'Pen':_0x1fcd42(0x205),'Brush':_0x1fcd42(0x1ef),'Highlighter':_0x1fcd42(0x212)},h={'Corner':_0x1fcd42(0x1f3),'Smooth':_0x1fcd42(0x20e),'Symmetric':_0x1fcd42(0x20b),'Free':_0x1fcd42(0x1f6)},g={'Anchor':'anchor','In':'in','Out':_0x1fcd42(0x1f1)};var _=class extends _0x286ee1{get['BoardInkTool'](){return m;}get[_0x1fcd42(0x1fb)](){return h;}get[_0x1fcd42(0x203)](){return g;}};function _0x2403(_0x5774cc,_0x50bf18){_0x5774cc=_0x5774cc-0x1ef;const _0x4f93ba=_0x4f93();let _0x240396=_0x4f93ba[_0x5774cc];return _0x240396;}_0x286ee1[_0x1fcd42(0x20a)](_);export{g as BoardInkHandleKind,h as BoardInkPointType,m as BoardInkTool};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
const _0x1fa4ef=_0x489e;(function(_0x509d2a,_0x324a3b){const _0x59c1de=_0x489e,_0x4b3084=_0x509d2a();while(!![]){try{const _0x4a1ead=parseInt(_0x59c1de(0x222))/0x1*(-parseInt(_0x59c1de(0x22a))/0x2)+-parseInt(_0x59c1de(0x206))/0x3+parseInt(_0x59c1de(0x1eb))/0x4*(-parseInt(_0x59c1de(0x21a))/0x5)+parseInt(_0x59c1de(0x203))/0x6+-parseInt(_0x59c1de(0x22d))/0x7+-parseInt(_0x59c1de(0x21c))/0x8+-parseInt(_0x59c1de(0x21f))/0x9*(-parseInt(_0x59c1de(0x218))/0xa);if(_0x4a1ead===_0x324a3b)break;else _0x4b3084['push'](_0x4b3084['shift']());}catch(_0x312116){_0x4b3084['push'](_0x4b3084['shift']());}}}(_0x4054,0x68823));import{ShapeFillEnum as _0x1b495a,ShapeLineCapEnum as _0x3a7c9e,ShapeLineJoinEnum as _0x22697f,ShapeLineTypeEnum as _0xe8f2b9,ShapeTypeEnum as _0x39c117}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x6d97e2}from'@univerjs-pro/license';import{CommandType as _0x51668a,DependentOn as _0x34877c,ICommandService as _0x2f235a,IConfigService as _0x5394e4,Inject as _0x2bb1f8,Injector as _0x190b5e,Plugin as _0x3b534c,UniverInstanceType as _0x621b82,createIdentifier as _0x29c25f,merge as _0x1c0735,toDisposable as _0xb664b1}from'@univerjs/core';const g=0.0001;function _(_0x47807d){return{'x':_0x47807d['x'],'y':_0x47807d['y']};}function v(_0x3b69c0){const _0x175aa2=_0x489e;return{..._0x3b69c0,'in':_0x3b69c0['in']?_(_0x3b69c0['in']):void 0x0,'out':_0x3b69c0[_0x175aa2(0x20e)]?_(_0x3b69c0[_0x175aa2(0x20e)]):void 0x0};}function y(_0x1a5fde){const _0x205c81=_0x489e;return{'kind':_0x205c81(0x20d),'closed':_0x1a5fde[_0x205c81(0x1e7)],'anchors':_0x1a5fde['anchors']['map'](v)};}function b(_0x450f8b,_0x4ef01c,_0x2fc50d){return{'x':_0x450f8b['x']+(_0x4ef01c['x']-_0x450f8b['x'])*_0x2fc50d,'y':_0x450f8b['y']+(_0x4ef01c['y']-_0x450f8b['y'])*_0x2fc50d};}function x(_0xeb0f49,_0x27a8d0){const _0xd04d82=_0x489e;return Math[_0xd04d82(0x1e4)](_0xeb0f49['x']-_0x27a8d0['x'],_0xeb0f49['y']-_0x27a8d0['y']);}function S(_0x5ec264){const _0x2393ce=_0x489e;let _0x29a650=Math[_0x2393ce(0x1e4)](_0x5ec264['x'],_0x5ec264['y']);return _0x29a650<g?{'x':0x1,'y':0x0}:{'x':_0x5ec264['x']/_0x29a650,'y':_0x5ec264['y']/_0x29a650};}function C(_0x788841,_0x57c5da,_0x254f3f=x(_0x788841,_0x57c5da)){let _0xc98794=S({'x':_0x788841['x']-_0x57c5da['x'],'y':_0x788841['y']-_0x57c5da['y']});return{'x':_0x788841['x']+_0xc98794['x']*_0x254f3f,'y':_0x788841['y']+_0xc98794['y']*_0x254f3f};}function w(_0x17757f,_0x46249d){const _0x3e4edd=_0x489e;let {anchors:_0x97207f}=_0x17757f;return _0x97207f[_0x3e4edd(0x227)]<0x2||_0x46249d<0x0?null:_0x46249d<_0x97207f['length']-0x1?{'startIndex':_0x46249d,'endIndex':_0x46249d+0x1,'start':_0x97207f[_0x46249d],'end':_0x97207f[_0x46249d+0x1]}:_0x17757f['closed']&&_0x46249d===_0x97207f[_0x3e4edd(0x227)]-0x1?{'startIndex':_0x97207f['length']-0x1,'endIndex':0x0,'start':_0x97207f[_0x97207f[_0x3e4edd(0x227)]-0x1],'end':_0x97207f[0x0]}:null;}function T(_0xf9d6d5,_0x5a0b0a){const _0x546d2b=_0x489e;let _0x14c63e=w(_0xf9d6d5,_0x5a0b0a);return _0x14c63e?[_0x14c63e[_0x546d2b(0x1f2)],_0x14c63e['start'][_0x546d2b(0x20e)]??_0x14c63e[_0x546d2b(0x1f2)],_0x14c63e['end']['in']??_0x14c63e[_0x546d2b(0x223)],_0x14c63e[_0x546d2b(0x223)]]:null;}function te(_0x478733,_0x348dc5){const _0x5616bf=_0x489e;return _0x348dc5===_0x5616bf(0x230)?_0x478733:_0x478733[_0x348dc5]??null;}function E(_0x4e1f61,_0x3147e8,_0x511d15){const _0xb10b6f=_0x489e;return _0x511d15==='anchor'||_0x4e1f61[_0xb10b6f(0x1e7)]?!0x0:_0x511d15==='in'?_0x3147e8>0x0:_0x3147e8<_0x4e1f61[_0xb10b6f(0x1ed)][_0xb10b6f(0x227)]-0x1;}function D(_0x41ff6f,_0x206f66){let [_0x19081d,_0x33e286,_0x8dd723,_0x11ad1c]=_0x41ff6f,_0x5a4451=b(_0x19081d,_0x33e286,_0x206f66),_0x287e8c=b(_0x33e286,_0x8dd723,_0x206f66),_0x58c285=b(_0x8dd723,_0x11ad1c,_0x206f66);return b(b(_0x5a4451,_0x287e8c,_0x206f66),b(_0x287e8c,_0x58c285,_0x206f66),_0x206f66);}function ne(_0x4b2029,_0x108159){let [_0x2132a6,_0xd4ec25,_0x279113,_0x13eb99]=_0x4b2029,_0x3e4d55=b(_0x2132a6,_0xd4ec25,_0x108159),_0x236dcb=b(_0xd4ec25,_0x279113,_0x108159),_0x10468f=b(_0x279113,_0x13eb99,_0x108159),_0x191cb9=b(_0x3e4d55,_0x236dcb,_0x108159),_0x3f5823=b(_0x236dcb,_0x10468f,_0x108159),_0x981092=b(_0x191cb9,_0x3f5823,_0x108159);return{'left':[_0x2132a6,_0x3e4d55,_0x191cb9,_0x981092],'right':[_0x981092,_0x3f5823,_0x10468f,_0x13eb99]};}function O(_0x54cabe,_0x5bad23,_0xb240a){const _0x5cce56=_0x489e;let _0x5bdd48=_0xb240a['x']-_0x5bad23['x'],_0x326553=_0xb240a['y']-_0x5bad23['y'],_0x2e1b6f=_0x5bdd48*_0x5bdd48+_0x326553*_0x326553,_0x5ba702=_0x2e1b6f<=g?0x0:Math[_0x5cce56(0x1f7)](0x0,Math[_0x5cce56(0x23a)](0x1,((_0x54cabe['x']-_0x5bad23['x'])*_0x5bdd48+(_0x54cabe['y']-_0x5bad23['y'])*_0x326553)/_0x2e1b6f)),_0x1e7c89={'x':_0x5bad23['x']+_0x5bdd48*_0x5ba702,'y':_0x5bad23['y']+_0x326553*_0x5ba702};return{'point':_0x1e7c89,'ratio':_0x5ba702,'distance':x(_0x54cabe,_0x1e7c89)};}function re(_0x25ddc5,_0x59f9f2,_0x37737e){const _0x2ca414=_0x489e;return O(_0x25ddc5,_0x59f9f2,_0x37737e)[_0x2ca414(0x1f6)]**0x2;}function k(_0x452ce6,_0xf54dc8){const _0x1c9d73=_0x489e;if(_0x452ce6[_0x1c9d73(0x227)]<=0x2)return _0x452ce6['map'](_);let _0x4f7be5=0x0,_0x30bb9e=0x0,_0x44f8b7=_0x452ce6[0x0],_0x42ba95=_0x452ce6[_0x452ce6['length']-0x1],_0x51f6c1=_0xf54dc8*_0xf54dc8;for(let _0x297e24=0x1;_0x297e24<_0x452ce6[_0x1c9d73(0x227)]-0x1;_0x297e24++){let _0x4c2361=re(_0x452ce6[_0x297e24],_0x44f8b7,_0x42ba95);_0x4c2361>_0x4f7be5&&(_0x4f7be5=_0x4c2361,_0x30bb9e=_0x297e24);}if(_0x4f7be5<=_0x51f6c1)return[_(_0x44f8b7),_(_0x42ba95)];let _0x41ab01=k(_0x452ce6[_0x1c9d73(0x1ec)](0x0,_0x30bb9e+0x1),_0xf54dc8),_0xb6dba7=k(_0x452ce6['slice'](_0x30bb9e),_0xf54dc8);return[..._0x41ab01[_0x1c9d73(0x1ec)](0x0,-0x1),..._0xb6dba7];}function ie(_0x22f1e6,_0x6bbc22){let _0x5670e6=_0x22f1e6[_0x6bbc22],_0xe00259=_0x22f1e6[_0x6bbc22+0x1],_0x2f918b=_0x22f1e6[_0x6bbc22-0x1]??_0x5670e6;return{'x':_0x5670e6['x']+(_0xe00259['x']-_0x2f918b['x'])/0x6,'y':_0x5670e6['y']+(_0xe00259['y']-_0x2f918b['y'])/0x6};}function A(_0x1a5b73,_0x50f10){let _0x29ad59=_0x1a5b73[_0x50f10],_0x372b76=_0x1a5b73[_0x50f10-0x1],_0x54c1aa=_0x1a5b73[_0x50f10+0x1]??_0x29ad59;return{'x':_0x29ad59['x']-(_0x54c1aa['x']-_0x372b76['x'])/0x6,'y':_0x29ad59['y']-(_0x54c1aa['y']-_0x372b76['y'])/0x6};}function j(_0x27f091,_0x33bb5c){const _0x4932c5=_0x489e;let _0x40dc34=_0x27f091[_0x4932c5(0x1ed)][_0x33bb5c],_0x185f4c=_0x27f091['anchors'][_0x33bb5c-0x1]??(_0x27f091[_0x4932c5(0x1e7)]?_0x27f091[_0x4932c5(0x1ed)][_0x27f091[_0x4932c5(0x1ed)][_0x4932c5(0x227)]-0x1]:null),_0xd46583=_0x27f091[_0x4932c5(0x1ed)][_0x33bb5c+0x1]??(_0x27f091[_0x4932c5(0x1e7)]?_0x27f091[_0x4932c5(0x1ed)][0x0]:null),_0x49c164=_0x185f4c&&_0xd46583?S({'x':_0xd46583['x']-_0x185f4c['x'],'y':_0xd46583['y']-_0x185f4c['y']}):_0xd46583?S({'x':_0xd46583['x']-_0x40dc34['x'],'y':_0xd46583['y']-_0x40dc34['y']}):_0x185f4c?S({'x':_0x40dc34['x']-_0x185f4c['x'],'y':_0x40dc34['y']-_0x185f4c['y']}):{'x':0x1,'y':0x0},_0x3eb983=_0x185f4c&&_0xd46583?Math['max'](0x32,x(_0x185f4c,_0xd46583)/0x4):0x32;return{'in':{'x':_0x40dc34['x']-_0x49c164['x']*_0x3eb983,'y':_0x40dc34['y']-_0x49c164['y']*_0x3eb983},'out':{'x':_0x40dc34['x']+_0x49c164['x']*_0x3eb983,'y':_0x40dc34['y']+_0x49c164['y']*_0x3eb983}};}function M(_0x1fd061,_0x59f15e){const _0x476bb1=_0x489e;let _0x4cc13f=_0x1fd061[_0x59f15e],_0x29bf60=_0x59f15e==='in'?_0x476bb1(0x20e):'in',_0x236a9e=_0x1fd061[_0x29bf60];_0x4cc13f&&(_0x1fd061[_0x476bb1(0x20f)]===_0x476bb1(0x233)?_0x1fd061[_0x29bf60]=C(_0x1fd061,_0x4cc13f):_0x1fd061[_0x476bb1(0x20f)]===_0x476bb1(0x232)&&(_0x1fd061[_0x29bf60]=C(_0x1fd061,_0x4cc13f,_0x236a9e?x(_0x1fd061,_0x236a9e):x(_0x1fd061,_0x4cc13f))));}function ae(_0xc563f7,_0x4d9732){const _0x47d2be=_0x489e;let _0x228de4=y(_0xc563f7);return!_0x4d9732||_0x228de4['closed']||_0x228de4[_0x47d2be(0x1ed)][_0x47d2be(0x227)]===0x0||_0x228de4['anchors'][_0x47d2be(0x221)]({'id':_0x47d2be(0x213),'x':_0x4d9732['x'],'y':_0x4d9732['y'],'pointType':_0x47d2be(0x1fe)}),_0x228de4;}function oe(_0x4b8ff1,_0x21959b={}){const _0x439e86=_0x489e;let _0x3e26f1=Math[_0x439e86(0x1f7)](0x0,_0x21959b[_0x439e86(0x1ff)]??Math[_0x439e86(0x1f7)](0x4,_0x4b8ff1[_0x439e86(0x1e2)]*0.35)),_0x707c10=_0x21959b[_0x439e86(0x235)]??(_0x32169d=>_0x439e86(0x211)+_0x32169d),_0x38c421=k(_0x4b8ff1['points'],_0x3e26f1),_0x2e95cc=_0x38c421[_0x439e86(0x1e6)]((_0x15d06a,_0x59385c)=>({'id':_0x707c10(_0x59385c),'x':_0x15d06a['x'],'y':_0x15d06a['y'],'pointType':_0x439e86(0x204)}));for(let _0x3bbc81=0x0;_0x3bbc81<_0x2e95cc['length']-0x1;_0x3bbc81++)_0x2e95cc[_0x3bbc81][_0x439e86(0x20e)]=ie(_0x38c421,_0x3bbc81),_0x2e95cc[_0x3bbc81+0x1]['in']=A(_0x38c421,_0x3bbc81+0x1);return{'kind':_0x439e86(0x20d),'closed':!0x1,'anchors':_0x2e95cc};}function se(_0x114491,_0x395d4c,_0xbedeb7){const _0x4c0926=_0x489e;let _0x3a35fd=null,_0x4709d0=[_0x4c0926(0x230),'in','out'];return _0x114491['anchors'][_0x4c0926(0x23f)]((_0x211346,_0x5b95cd)=>{const _0x45da5a=_0x4c0926;_0x4709d0[_0x45da5a(0x23f)](_0x1cdaaa=>{if(!E(_0x114491,_0x5b95cd,_0x1cdaaa))return;let _0x322f72=te(_0x211346,_0x1cdaaa);if(!_0x322f72)return;let _0x4cb851=x(_0x395d4c,_0x322f72);_0x4cb851>_0xbedeb7||_0x3a35fd&&_0x4cb851>=_0x3a35fd['distance']||(_0x3a35fd={'handle':{'kind':_0x1cdaaa,'anchorId':_0x211346['id']},'point':_(_0x322f72),'distance':_0x4cb851});});}),_0x3a35fd;}function ce(_0x4377b9,_0x437c39,_0x30213f){const _0x271458=_0x489e;let _0x263b22=null,_0x3cdf20=_0x4377b9[_0x271458(0x1e7)]?_0x4377b9[_0x271458(0x1ed)][_0x271458(0x227)]:Math[_0x271458(0x1f7)](0x0,_0x4377b9[_0x271458(0x1ed)][_0x271458(0x227)]-0x1);for(let _0xc591ef=0x0;_0xc591ef<_0x3cdf20;_0xc591ef++){let _0x540cb5=T(_0x4377b9,_0xc591ef);if(!_0x540cb5)continue;let _0x449f30=D(_0x540cb5,0x0);for(let _0x2183dc=0x1;_0x2183dc<=0x20;_0x2183dc++){let _0x377223=D(_0x540cb5,_0x2183dc/0x20),_0x43d6e4=O(_0x437c39,_0x449f30,_0x377223),_0xa33cc9=(_0x2183dc-0x1+_0x43d6e4['ratio'])/0x20;(!_0x263b22||_0x43d6e4[_0x271458(0x1f6)]<_0x263b22[_0x271458(0x1f6)])&&(_0x263b22={'segmentIndex':_0xc591ef,'t':_0xa33cc9,'point':_0x43d6e4[_0x271458(0x220)],'distance':_0x43d6e4[_0x271458(0x1f6)]}),_0x449f30=_0x377223;}}return _0x263b22&&_0x263b22[_0x271458(0x1f6)]<=_0x30213f?_0x263b22:null;}function le(_0x5554e3,_0x3cf16,_0x379217){const _0xad76ac=_0x489e;let _0x17572d=y(_0x5554e3),_0x100950=w(_0x17572d,_0x3cf16[_0xad76ac(0x236)]),_0x31a8da=T(_0x17572d,_0x3cf16[_0xad76ac(0x236)]);if(!_0x100950||!_0x31a8da)return _0x17572d;let _0x3f9edf=ne(_0x31a8da,Math[_0xad76ac(0x1f7)](0x0,Math[_0xad76ac(0x23a)](0x1,_0x3cf16['t']))),_0x4f4e57={'id':_0x379217(),'x':_0x3f9edf['left'][0x3]['x'],'y':_0x3f9edf['left'][0x3]['y'],'in':_(_0x3f9edf[_0xad76ac(0x20b)][0x2]),'out':_(_0x3f9edf[_0xad76ac(0x225)][0x1]),'pointType':_0xad76ac(0x204)};return _0x17572d[_0xad76ac(0x1ed)][_0x100950[_0xad76ac(0x23b)]][_0xad76ac(0x20e)]=_(_0x3f9edf[_0xad76ac(0x20b)][0x1]),_0x17572d['anchors'][_0x100950[_0xad76ac(0x21d)]]['in']=_(_0x3f9edf[_0xad76ac(0x225)][0x2]),_0x17572d[_0xad76ac(0x1ed)][_0xad76ac(0x1f0)](_0x100950[_0xad76ac(0x23b)]+0x1,0x0,_0x4f4e57),_0x17572d;}function ue(_0x1b548d,_0x3360cb){const _0x225e6b=_0x489e;let _0x3ccc0a=y(_0x1b548d);return _0x3ccc0a[_0x225e6b(0x1ed)]=_0x3ccc0a[_0x225e6b(0x1ed)][_0x225e6b(0x22b)](_0x2b8cf5=>_0x2b8cf5['id']!==_0x3360cb),_0x3ccc0a[_0x225e6b(0x1e7)]&&_0x3ccc0a['anchors'][_0x225e6b(0x227)]<0x3&&(_0x3ccc0a['closed']=!0x1),_0x3ccc0a;}function N(_0x32c76b,_0x4a9f3c,_0x787d96){const _0x322d0b=_0x489e;let _0x2d802d=y(_0x32c76b),_0x4d2137=_0x2d802d[_0x322d0b(0x1ed)][_0x322d0b(0x210)](_0xd53b9f=>_0xd53b9f['id']===_0x4a9f3c),_0x2a68c6=_0x2d802d[_0x322d0b(0x1ed)][_0x4d2137];if(!_0x2a68c6)return _0x2d802d;if(_0x2a68c6[_0x322d0b(0x20f)]=_0x787d96,_0x787d96==='corner')return delete _0x2a68c6['in'],delete _0x2a68c6[_0x322d0b(0x20e)],_0x2d802d;let _0x157dcd=j(_0x2d802d,_0x4d2137);if(_0x2a68c6['in']=_0x2a68c6['in']?_(_0x2a68c6['in']):_0x157dcd['in'],_0x2a68c6[_0x322d0b(0x20e)]=_0x2a68c6['out']?_(_0x2a68c6[_0x322d0b(0x20e)]):_0x157dcd[_0x322d0b(0x20e)],_0x787d96===_0x322d0b(0x233)){let _0x4e9b8e=Math[_0x322d0b(0x1f7)](x(_0x2a68c6,_0x2a68c6['in']),x(_0x2a68c6,_0x2a68c6['out']),0x32),_0x918332=S({'x':_0x2a68c6[_0x322d0b(0x20e)]['x']-_0x2a68c6['x'],'y':_0x2a68c6[_0x322d0b(0x20e)]['y']-_0x2a68c6['y']});_0x2a68c6[_0x322d0b(0x20e)]={'x':_0x2a68c6['x']+_0x918332['x']*_0x4e9b8e,'y':_0x2a68c6['y']+_0x918332['y']*_0x4e9b8e},_0x2a68c6['in']={'x':_0x2a68c6['x']-_0x918332['x']*_0x4e9b8e,'y':_0x2a68c6['y']-_0x918332['y']*_0x4e9b8e};}else _0x787d96==='smooth'&&M(_0x2a68c6,_0x322d0b(0x20e));return _0x2d802d;}function P(_0x5da127,_0x4cff83){const _0x2f0ede=_0x489e;let _0x343040=_0x5da127[_0x2f0ede(0x1ed)][_0x2f0ede(0x1f4)](_0x363f62=>_0x363f62['id']===_0x4cff83),_0x2c4353=(_0x343040==null?void 0x0:_0x343040[_0x2f0ede(0x20f)])??'corner';return N(_0x5da127,_0x4cff83,_0x2c4353===_0x2f0ede(0x1fe)?_0x2f0ede(0x232):_0x2c4353===_0x2f0ede(0x232)?_0x2f0ede(0x233):_0x2c4353===_0x2f0ede(0x233)?_0x2f0ede(0x204):_0x2f0ede(0x1fe));}function F(_0x232e54,_0x4010e0,_0x190603){const _0x5d9682=_0x489e;let _0x8893d9=y(_0x232e54),_0x13755d=_0x8893d9[_0x5d9682(0x1ed)]['find'](_0x167c2b=>_0x167c2b['id']===_0x4010e0['anchorId']);if(!_0x13755d)return _0x8893d9;if(_0x4010e0[_0x5d9682(0x228)]===_0x5d9682(0x230)){let _0x16bae1={'x':_0x190603['x']-_0x13755d['x'],'y':_0x190603['y']-_0x13755d['y']};return _0x13755d['x']=_0x190603['x'],_0x13755d['y']=_0x190603['y'],_0x13755d['in']&&={'x':_0x13755d['in']['x']+_0x16bae1['x'],'y':_0x13755d['in']['y']+_0x16bae1['y']},_0x13755d[_0x5d9682(0x20e)]&&={'x':_0x13755d[_0x5d9682(0x20e)]['x']+_0x16bae1['x'],'y':_0x13755d[_0x5d9682(0x20e)]['y']+_0x16bae1['y']},_0x8893d9;}return _0x13755d[_0x4010e0[_0x5d9682(0x228)]]=_(_0x190603),_0x13755d[_0x5d9682(0x20f)]===_0x5d9682(0x1fe)&&(_0x13755d[_0x5d9682(0x20f)]=_0x5d9682(0x204)),M(_0x13755d,_0x4010e0['kind']),_0x8893d9;}const I=1e-9;function L(_0x4af4bc){const _0x376609=_0x489e;let _0x1e9852=Math[_0x376609(0x229)](_0x4af4bc*0x2710)/0x2710;return Object['is'](_0x1e9852,-0x0)?'0':String(_0x1e9852);}function R(_0x4e3b67){return L(_0x4e3b67['x'])+'\x20'+L(_0x4e3b67['y']);}function z(_0x4807ed,_0x2758c9){return{'x':_0x4807ed['x']-_0x2758c9['x'],'y':_0x4807ed['y']-_0x2758c9['y']};}function B(_0x22e259,_0xc7e155,_0x1a4b2c,_0x1c1bd4,_0x27207c){let _0x454ad9=0x1-_0x27207c;return{'x':_0x454ad9*_0x454ad9*_0x454ad9*_0x22e259['x']+0x3*_0x454ad9*_0x454ad9*_0x27207c*_0xc7e155['x']+0x3*_0x454ad9*_0x27207c*_0x27207c*_0x1a4b2c['x']+_0x27207c*_0x27207c*_0x27207c*_0x1c1bd4['x'],'y':_0x454ad9*_0x454ad9*_0x454ad9*_0x22e259['y']+0x3*_0x454ad9*_0x454ad9*_0x27207c*_0xc7e155['y']+0x3*_0x454ad9*_0x27207c*_0x27207c*_0x1a4b2c['y']+_0x27207c*_0x27207c*_0x27207c*_0x1c1bd4['y']};}function V(_0x4d7b26,_0x641f56,_0x3cab67,_0x21da11){const _0x58f84e=_0x489e;let _0x59d2bc=-_0x4d7b26+0x3*_0x641f56-0x3*_0x3cab67+_0x21da11,_0x3f5ac2=0x3*_0x4d7b26-0x6*_0x641f56+0x3*_0x3cab67,_0x508512=-0x3*_0x4d7b26+0x3*_0x641f56,_0x7ce263=[];if(Math[_0x58f84e(0x216)](_0x59d2bc)<I){if(Math[_0x58f84e(0x216)](_0x3f5ac2)<I)return _0x7ce263;let _0x2aa40a=-_0x508512/(0x2*_0x3f5ac2);return _0x2aa40a>0x0&&_0x2aa40a<0x1&&_0x7ce263[_0x58f84e(0x221)](_0x2aa40a),_0x7ce263;}let _0x507f0e=_0x3f5ac2*_0x3f5ac2-0x3*_0x59d2bc*_0x508512;if(_0x507f0e<0x0)return _0x7ce263;let _0x58c641=Math['sqrt'](Math[_0x58f84e(0x1f7)](0x0,_0x507f0e)),_0x38b867=(-_0x3f5ac2+_0x58c641)/(0x3*_0x59d2bc),_0x3aa7d7=(-_0x3f5ac2-_0x58c641)/(0x3*_0x59d2bc);return _0x38b867>0x0&&_0x38b867<0x1&&_0x7ce263[_0x58f84e(0x221)](_0x38b867),_0x3aa7d7>0x0&&_0x3aa7d7<0x1&&Math[_0x58f84e(0x216)](_0x3aa7d7-_0x38b867)>I&&_0x7ce263[_0x58f84e(0x221)](_0x3aa7d7),_0x7ce263;}function H(_0x456cb0,_0x323378,_0x97bf57,_0x57e066,_0x24d124){const _0xf7a748=_0x489e;_0x456cb0[_0xf7a748(0x221)](_0x323378,_0x24d124),new Set([...V(_0x323378['x'],_0x97bf57['x'],_0x57e066['x'],_0x24d124['x']),...V(_0x323378['y'],_0x97bf57['y'],_0x57e066['y'],_0x24d124['y'])])[_0xf7a748(0x23f)](_0x28fbcb=>{const _0x5a11d9=_0xf7a748;_0x456cb0[_0x5a11d9(0x221)](B(_0x323378,_0x97bf57,_0x57e066,_0x24d124,_0x28fbcb));});}function U(_0x3c37d4){const _0x418887=_0x489e;let _0x426904=_0x3c37d4[_0x418887(0x1ed)];if(_0x426904['length']<=0x1)return _0x426904;let _0x3bc9a4=[];for(let _0x1975eb=0x1;_0x1975eb<_0x426904[_0x418887(0x227)];_0x1975eb++){let _0x11b57b=_0x426904[_0x1975eb-0x1],_0x3f369b=_0x426904[_0x1975eb];H(_0x3bc9a4,_0x11b57b,_0x11b57b[_0x418887(0x20e)]??_0x11b57b,_0x3f369b['in']??_0x3f369b,_0x3f369b);}if(_0x3c37d4[_0x418887(0x1e7)]&&_0x426904[_0x418887(0x227)]>0x1){let _0x3e7a32=_0x426904[_0x426904[_0x418887(0x227)]-0x1],_0x13cf8b=_0x426904[0x0];H(_0x3bc9a4,_0x3e7a32,_0x3e7a32[_0x418887(0x20e)]??_0x3e7a32,_0x13cf8b['in']??_0x13cf8b,_0x13cf8b);}return _0x3bc9a4;}function de(_0x58dc2f){const _0x24170f=_0x489e;let _0x7566c1=_0x58dc2f[_0x24170f(0x22c)];if(_0x7566c1[_0x24170f(0x227)]<=0x1)return _0x7566c1;let _0x4b35a6=[];for(let _0x1eb915=0x0;_0x1eb915<_0x7566c1[_0x24170f(0x227)]-0x1;_0x1eb915++){let _0xf1ecd=_0x7566c1[_0x1eb915],_0x3eddf3=_0x7566c1[_0x1eb915+0x1],_0x367df5=_0x7566c1[_0x1eb915-0x1]??_0xf1ecd,_0x5054d5=_0x7566c1[_0x1eb915+0x2]??_0x3eddf3;H(_0x4b35a6,_0xf1ecd,{'x':_0xf1ecd['x']+(_0x3eddf3['x']-_0x367df5['x'])/0x6,'y':_0xf1ecd['y']+(_0x3eddf3['y']-_0x367df5['y'])/0x6},{'x':_0x3eddf3['x']-(_0x5054d5['x']-_0xf1ecd['x'])/0x6,'y':_0x3eddf3['y']-(_0x5054d5['y']-_0xf1ecd['y'])/0x6},_0x3eddf3);}return _0x4b35a6;}function fe(_0x598b5f){const _0x15131a=_0x489e;return _0x598b5f[_0x15131a(0x228)]==='pen'?U(_0x598b5f):de(_0x598b5f);}function _0x489e(_0x267d42,_0x4f9ea5){_0x267d42=_0x267d42-0x1e2;const _0x40540d=_0x4054();let _0x489e71=_0x40540d[_0x267d42];return _0x489e71;}function W(_0x4f2f16){const _0x466a26=_0x489e;let _0x17abe9=Math[_0x466a26(0x229)](_0x4f2f16*0x2710)/0x2710;return Object['is'](_0x17abe9,-0x0)?0x0:_0x17abe9;}function G(_0x23ef1b){const _0x4c5219=_0x489e;let _0x196422=fe(_0x23ef1b);if(_0x196422[_0x4c5219(0x227)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x4b8a74=Math['min'](..._0x196422[_0x4c5219(0x1e6)](_0x3c146e=>_0x3c146e['x'])),_0xb521ca=Math[_0x4c5219(0x23a)](..._0x196422[_0x4c5219(0x1e6)](_0x577640=>_0x577640['y'])),_0x2b393e=Math[_0x4c5219(0x1f7)](..._0x196422[_0x4c5219(0x1e6)](_0x1db932=>_0x1db932['x'])),_0x87f5a=Math[_0x4c5219(0x1f7)](..._0x196422['map'](_0x498b3c=>_0x498b3c['y']));return{'left':W(_0x4b8a74),'top':W(_0xb521ca),'width':W(Math[_0x4c5219(0x1f7)](0x1,_0x2b393e-_0x4b8a74)),'height':W(Math[_0x4c5219(0x1f7)](0x1,_0x87f5a-_0xb521ca))};}function pe(_0x35acbd,_0x4ef7d2){const _0x2a7170=_0x489e;let _0x511d4e=_0x35acbd[_0x2a7170(0x1ed)];if(_0x511d4e[_0x2a7170(0x227)]===0x0)return'';let _0x1dc56d=['M\x20'+R(z(_0x511d4e[0x0],_0x4ef7d2))];for(let _0x201750=0x1;_0x201750<_0x511d4e[_0x2a7170(0x227)];_0x201750++){let _0x27ec57=_0x511d4e[_0x201750-0x1],_0x4a0845=_0x511d4e[_0x201750],_0xf36765=_0x27ec57[_0x2a7170(0x20e)]??_0x27ec57,_0x758c2f=_0x4a0845['in']??_0x4a0845;_0x1dc56d['push']('C\x20'+R(z(_0xf36765,_0x4ef7d2))+'\x20'+R(z(_0x758c2f,_0x4ef7d2))+'\x20'+R(z(_0x4a0845,_0x4ef7d2)));}if(_0x35acbd[_0x2a7170(0x1e7)]&&_0x511d4e[_0x2a7170(0x227)]>0x1){let _0x379c07=_0x511d4e[_0x511d4e[_0x2a7170(0x227)]-0x1],_0x3fe042=_0x511d4e[0x0],_0x548105=_0x379c07['out']??_0x379c07,_0x460e6e=_0x3fe042['in']??_0x3fe042;_0x1dc56d[_0x2a7170(0x221)]('C\x20'+R(z(_0x548105,_0x4ef7d2))+'\x20'+R(z(_0x460e6e,_0x4ef7d2))+'\x20'+R(z(_0x3fe042,_0x4ef7d2))),_0x1dc56d[_0x2a7170(0x221)]('Z');}return _0x1dc56d[_0x2a7170(0x21b)]('\x20');}function me(_0x35e6c8,_0xa6796c){const _0x504c8d=_0x489e;let _0x22c829=_0x35e6c8[_0x504c8d(0x22c)][_0x504c8d(0x1e6)](_0x199852=>z(_0x199852,_0xa6796c));if(_0x22c829[_0x504c8d(0x227)]===0x0)return'';if(_0x22c829['length']===0x1)return'M\x20'+R(_0x22c829[0x0]);let _0x78083f=['M\x20'+R(_0x22c829[0x0])];for(let _0x590327=0x0;_0x590327<_0x22c829[_0x504c8d(0x227)]-0x1;_0x590327++){let _0x6a5d36=_0x22c829[_0x590327],_0x42003f=_0x22c829[_0x590327+0x1],_0x481c77=_0x22c829[_0x590327-0x1]??_0x6a5d36,_0x32c5f7=_0x22c829[_0x590327+0x2]??_0x42003f,_0x481b04={'x':_0x6a5d36['x']+(_0x42003f['x']-_0x481c77['x'])/0x6,'y':_0x6a5d36['y']+(_0x42003f['y']-_0x481c77['y'])/0x6},_0x57d1e1={'x':_0x42003f['x']-(_0x32c5f7['x']-_0x6a5d36['x'])/0x6,'y':_0x42003f['y']-(_0x32c5f7['y']-_0x6a5d36['y'])/0x6};_0x78083f[_0x504c8d(0x221)]('C\x20'+R(_0x481b04)+'\x20'+R(_0x57d1e1)+'\x20'+R(_0x42003f));}return _0x78083f[_0x504c8d(0x21b)]('\x20');}function he(_0x2529fc,_0x5efa7f){const _0x440e31=_0x489e;return _0x2529fc['kind']===_0x440e31(0x20d)?pe(_0x2529fc,_0x5efa7f):me(_0x2529fc,_0x5efa7f);}function ge(_0x5404b2,_0xdcb3bb){const _0x414e7a=_0x489e;return _0xdcb3bb!=null&&_0xdcb3bb[_0x414e7a(0x242)]?_0xdcb3bb['color']:_0x5404b2['kind']===_0x414e7a(0x20d)?_0x414e7a(0x22e):_0x5404b2[_0x414e7a(0x242)];}function _e(_0x2952c8,_0x5aade9){const _0x288a95=_0x489e;return(_0x5aade9==null?void 0x0:_0x5aade9[_0x288a95(0x1e2)])===void 0x0?_0x2952c8[_0x288a95(0x228)]===_0x288a95(0x20d)?0x2:_0x2952c8[_0x288a95(0x1e2)]:_0x5aade9[_0x288a95(0x1e2)];}function ve(_0x5a33d0,_0x46b8bf){const _0x2053f9=_0x489e;return(_0x46b8bf==null?void 0x0:_0x46b8bf[_0x2053f9(0x241)])===void 0x0?_0x5a33d0[_0x2053f9(0x228)]===_0x2053f9(0x20d)?void 0x0:_0x5a33d0[_0x2053f9(0x241)]:_0x46b8bf[_0x2053f9(0x241)];}function ye(_0x4d2ef8,_0x5cec7c){const _0x5e4385=_0x489e;let _0x231a1e=G(_0x4d2ef8),_0x238d67=he(_0x4d2ef8,{'x':_0x231a1e[_0x5e4385(0x20b)],'y':_0x231a1e[_0x5e4385(0x209)]}),_0x1f18cc=_0x4d2ef8[_0x5e4385(0x228)]===_0x5e4385(0x20d)&&_0x4d2ef8[_0x5e4385(0x1e7)],_0x42d682=_0x5cec7c==null?void 0x0:_0x5cec7c[_0x5e4385(0x1e5)];return{'shapeType':_0x39c117['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x231a1e[_0x5e4385(0x1e2)],'h':_0x231a1e[_0x5e4385(0x212)],'fill':_0x1f18cc?_0x5e4385(0x219):_0x5e4385(0x234),'stroke':!0x0,'data':_0x238d67,'dataArray':be(_0x4d2ef8,{'x':_0x231a1e[_0x5e4385(0x20b)],'y':_0x231a1e[_0x5e4385(0x209)]})}]},'fill':_0x1f18cc&&_0x42d682?{'color':_0x42d682,'fillType':_0x1b495a[_0x5e4385(0x21e)]}:{'fillType':_0x1b495a[_0x5e4385(0x1ef)]},'stroke':{'color':ge(_0x4d2ef8,_0x5cec7c),'width':_e(_0x4d2ef8,_0x5cec7c),'opacity':ve(_0x4d2ef8,_0x5cec7c),'lineStrokeType':_0xe8f2b9['SolidLine'],'capType':_0x3a7c9e[_0x5e4385(0x217)],'lineJoinType':_0x22697f['Round']}};}function K(_0x36a63c,_0x283065){return{'x':_0x36a63c['x']-_0x283065['x'],'y':_0x36a63c['y']-_0x283065['y']};}function be(_0x1b8421,_0x3a780){const _0x19677d=_0x489e;if(_0x1b8421['kind']===_0x19677d(0x20d)){let _0x442450=_0x1b8421[_0x19677d(0x1ed)];if(_0x442450[_0x19677d(0x227)]===0x0)return[];let _0x319962=K(_0x442450[0x0],_0x3a780),_0x1566f5=[{'command':'M','points':[_0x319962['x'],_0x319962['y']]}];for(let _0x71b55c=0x1;_0x71b55c<_0x442450['length'];_0x71b55c++){let _0xc44656=_0x442450[_0x71b55c-0x1],_0x255866=_0x442450[_0x71b55c],_0x7176b2=K(_0xc44656[_0x19677d(0x20e)]??_0xc44656,_0x3a780),_0x5bf9bd=K(_0x255866['in']??_0x255866,_0x3a780),_0xa6efb7=K(_0x255866,_0x3a780);_0x1566f5['push']({'command':'C','points':[_0x7176b2['x'],_0x7176b2['y'],_0x5bf9bd['x'],_0x5bf9bd['y'],_0xa6efb7['x'],_0xa6efb7['y']]});}if(_0x1b8421[_0x19677d(0x1e7)]&&_0x442450[_0x19677d(0x227)]>0x1){let _0x50c825=_0x442450[_0x442450[_0x19677d(0x227)]-0x1],_0x446745=_0x442450[0x0],_0x2834f2=K(_0x50c825[_0x19677d(0x20e)]??_0x50c825,_0x3a780),_0x5436c5=K(_0x446745['in']??_0x446745,_0x3a780),_0x421264=K(_0x446745,_0x3a780);_0x1566f5[_0x19677d(0x221)]({'command':'C','points':[_0x2834f2['x'],_0x2834f2['y'],_0x5436c5['x'],_0x5436c5['y'],_0x421264['x'],_0x421264['y']]}),_0x1566f5[_0x19677d(0x221)]({'command':'z','points':[]});}return _0x1566f5;}let _0x48d261=_0x1b8421[_0x19677d(0x22c)][_0x19677d(0x1e6)](_0x4ac888=>K(_0x4ac888,_0x3a780));if(_0x48d261[_0x19677d(0x227)]===0x0)return[];let _0x229e71=[{'command':'M','points':[_0x48d261[0x0]['x'],_0x48d261[0x0]['y']]}];for(let _0x5ddc03=0x0;_0x5ddc03<_0x48d261['length']-0x1;_0x5ddc03++){let _0x1fec47=_0x48d261[_0x5ddc03],_0x2b34db=_0x48d261[_0x5ddc03+0x1],_0x4b116b=_0x48d261[_0x5ddc03-0x1]??_0x1fec47,_0x3a986c=_0x48d261[_0x5ddc03+0x2]??_0x2b34db,_0x23e876={'x':_0x1fec47['x']+(_0x2b34db['x']-_0x4b116b['x'])/0x6,'y':_0x1fec47['y']+(_0x2b34db['y']-_0x4b116b['y'])/0x6},_0x4e5b08={'x':_0x2b34db['x']-(_0x3a986c['x']-_0x1fec47['x'])/0x6,'y':_0x2b34db['y']-(_0x3a986c['y']-_0x1fec47['y'])/0x6};_0x229e71[_0x19677d(0x221)]({'command':'C','points':[_0x23e876['x'],_0x23e876['y'],_0x4e5b08['x'],_0x4e5b08['y'],_0x2b34db['x'],_0x2b34db['y']]});}return _0x229e71;}function xe(_0x27f442){const _0x5db691=_0x489e;let {model:_0x451d67,sourceModel:_0x491f99=_0x451d67,style:_0x3c7f0f}=_0x27f442,_0x1584c6=_0x27f442[_0x5db691(0x1fd)]??_0x451d67[_0x5db691(0x228)],_0x1b5dca=G(_0x451d67),_0x1cf9b5=_0x451d67[_0x5db691(0x228)]===_0x5db691(0x20d)&&_0x1584c6!==_0x5db691(0x20d)?_0x451d67:void 0x0;return{'transform':{..._0x1b5dca,'rotation':0x0},'shapeData':ye(_0x451d67,_0x3c7f0f),'ink':{'version':0x1,'tool':_0x1584c6,'sourceModel':_0x491f99,..._0x1cf9b5?{'editModel':_0x1cf9b5}:{},'normalizedBounds':_0x1b5dca}};}var Se=_0x1fa4ef(0x202),Ce=_0x1fa4ef(0x1fc);function q(_0x1aeec4){'@babel/helpers - typeof';const _0x5def27=_0x1fa4ef;return q=typeof Symbol==_0x5def27(0x237)&&typeof Symbol[_0x5def27(0x1ee)]==_0x5def27(0x208)?function(_0x37432a){return typeof _0x37432a;}:function(_0x139f06){const _0x36f8d5=_0x5def27;return _0x139f06&&typeof Symbol==_0x36f8d5(0x237)&&_0x139f06[_0x36f8d5(0x23d)]===Symbol&&_0x139f06!==Symbol[_0x36f8d5(0x1fb)]?_0x36f8d5(0x208):typeof _0x139f06;},q(_0x1aeec4);}function we(_0x2f83be,_0x5bf3ab){const _0x353e78=_0x1fa4ef;if(q(_0x2f83be)!=_0x353e78(0x20c)||!_0x2f83be)return _0x2f83be;var _0x332a00=_0x2f83be[Symbol[_0x353e78(0x1f8)]];if(_0x332a00!==void 0x0){var _0x41fffe=_0x332a00['call'](_0x2f83be,_0x5bf3ab||_0x353e78(0x23e));if(q(_0x41fffe)!='object')return _0x41fffe;throw TypeError(_0x353e78(0x207));}return(_0x5bf3ab===_0x353e78(0x1f9)?String:Number)(_0x2f83be);}function J(_0x4e11a8){var _0x26be84=we(_0x4e11a8,'string');return q(_0x26be84)=='symbol'?_0x26be84:_0x26be84+'';}function Y(_0x4378af,_0x2aa570,_0x5c12ae){const _0x4f42ae=_0x1fa4ef;return(_0x2aa570=J(_0x2aa570))in _0x4378af?Object[_0x4f42ae(0x214)](_0x4378af,_0x2aa570,{'value':_0x5c12ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4378af[_0x2aa570]=_0x5c12ae,_0x4378af;}const X=_0x29c25f('ink.host-adapter.service');var Te=class{constructor(){const _0xc1a387=_0x1fa4ef;Y(this,_0xc1a387(0x1e9),[]);}[_0x1fa4ef(0x1f3)](_0x488bfe){const _0xa172ac=_0x1fa4ef;return this[_0xa172ac(0x1e9)][_0xa172ac(0x221)](_0x488bfe),_0xb664b1(()=>{const _0x55af51=_0xa172ac;let _0x53d53e=this[_0x55af51(0x1e9)]['indexOf'](_0x488bfe);_0x53d53e>=0x0&&this['_adapters'][_0x55af51(0x1f0)](_0x53d53e,0x1);});}[_0x1fa4ef(0x23c)](_0x193342){const _0x4d0e39=_0x1fa4ef;for(let _0xf8f9b1 of this[_0x4d0e39(0x1e9)])if(_0xf8f9b1[_0x4d0e39(0x23c)](_0x193342))return!0x0;return!0x1;}async[_0x1fa4ef(0x226)](_0x3cf5de){const _0x213f6a=_0x1fa4ef;for(let _0x4f1d75 of this['_adapters'])if(_0x4f1d75['createCustomShape']&&await _0x4f1d75[_0x213f6a(0x226)](_0x3cf5de))return!0x0;return!0x1;}};function _0x4054(){const _0x55e230=['find','ink.config','distance','max','toPrimitive','string','OPERATION','prototype','1.3.1','tool','corner','tolerance','_injector','_config','@univerjs-pro/ink','202794mRtXsw','free','_configService','866826SEYvKk','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','top','pluginName','left','object','pen','out','pointType','findIndex','ink-centerline-','height','__ink-preview-anchor__','defineProperty','_commandService','abs','Round','840iBmCrR','norm','287975MilPJq','join','2467928kmnDro','endIndex','SolidFill','197703FvrSzg','point','push','2423UMpKDv','end','UNIVER_INK_PLUGIN','right','createCustomShape','length','kind','round','154GIxMAD','filter','points','233877vyFZDp','#f54a45','packageName','anchor','registerCommand','smooth','symmetric','none','createId','segmentIndex','function','type','disposeWithMe','min','startIndex','beginInkMode','constructor','default','forEach','version','opacity','color','width','get','hypot','fillColor','map','closed','getOwnPropertyDescriptor','_adapters','ink.operation.start','44KCXNmk','slice','anchors','iterator','NoFill','splice','add','start','registerAdapter'];_0x4054=function(){return _0x55e230;};return _0x4054();}const Ee={'id':_0x1fa4ef(0x1ea),'type':_0x51668a[_0x1fa4ef(0x1fa)],'handler':(_0x35ecbd,_0x18ce9a)=>_0x18ce9a?_0x35ecbd[_0x1fa4ef(0x1e3)](X)[_0x1fa4ef(0x23c)](_0x18ce9a):!0x1},Z={};function Q(_0x233d8a,_0x2750a2){return function(_0x1f3a78,_0xb8ef3b){_0x2750a2(_0x1f3a78,_0xb8ef3b,_0x233d8a);};}function De(_0x26ede4,_0x18cc5a,_0x410c8e,_0x3e2ca5){const _0x30ae97=_0x1fa4ef;var _0x13de39=arguments[_0x30ae97(0x227)],_0xf6a977=_0x13de39<0x3?_0x18cc5a:_0x3e2ca5===null?_0x3e2ca5=Object[_0x30ae97(0x1e8)](_0x18cc5a,_0x410c8e):_0x3e2ca5,_0x302ff7;if(typeof Reflect==_0x30ae97(0x20c)&&typeof Reflect['decorate']==_0x30ae97(0x237))_0xf6a977=Reflect['decorate'](_0x26ede4,_0x18cc5a,_0x410c8e,_0x3e2ca5);else{for(var _0x52d440=_0x26ede4['length']-0x1;_0x52d440>=0x0;_0x52d440--)(_0x302ff7=_0x26ede4[_0x52d440])&&(_0xf6a977=(_0x13de39<0x3?_0x302ff7(_0xf6a977):_0x13de39>0x3?_0x302ff7(_0x18cc5a,_0x410c8e,_0xf6a977):_0x302ff7(_0x18cc5a,_0x410c8e))||_0xf6a977);}return _0x13de39>0x3&&_0xf6a977&&Object[_0x30ae97(0x214)](_0x18cc5a,_0x410c8e,_0xf6a977),_0xf6a977;}let $=class extends _0x3b534c{constructor(_0xae5495=Z,_0x387a92,_0x3d51f6,_0x329394){const _0x1b479a=_0x1fa4ef;super(),this[_0x1b479a(0x201)]=_0xae5495,this['_injector']=_0x387a92,this[_0x1b479a(0x215)]=_0x3d51f6,this[_0x1b479a(0x205)]=_0x329394;let {..._0x31d73c}=_0x1c0735({},Z,this[_0x1b479a(0x201)]);this[_0x1b479a(0x205)]['setConfig'](_0x1b479a(0x1f5),_0x31d73c);}['onStarting'](){const _0x2c9e61=_0x1fa4ef;[[X,{'useClass':Te}]][_0x2c9e61(0x23f)](_0x227880=>this[_0x2c9e61(0x200)][_0x2c9e61(0x1f1)](_0x227880)),this[_0x2c9e61(0x239)](this[_0x2c9e61(0x215)][_0x2c9e61(0x231)](Ee));}};Y($,_0x1fa4ef(0x20a),_0x1fa4ef(0x224)),Y($,_0x1fa4ef(0x22f),Se),Y($,_0x1fa4ef(0x240),Ce),Y($,_0x1fa4ef(0x238),_0x621b82['UNIVER_UNKNOWN']),$=De([_0x34877c(_0x6d97e2),Q(0x1,_0x2bb1f8(_0x190b5e)),Q(0x2,_0x2f235a),Q(0x3,_0x5394e4)],$);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 _0x3369(_0x3e5ad5,_0xe8fe3f){_0x3e5ad5=_0x3e5ad5-0x18f;const _0x3dc350=_0x3dc3();let _0x3369ea=_0x3dc350[_0x3e5ad5];return _0x3369ea;}function _0x3dc3(){const _0x1b5510=['corner','BoardInkPointType','4ynRytp','defineProperty','out','amd','findElements','free','BoardElementType','every','laneId','FEnum','Tools','11066778qYzWyt','width','ink','shapeData','parentId','BoardInkTool','smooth','length','isFinite','pen','UniverProInk','deepClone','style','3523431pdlvlt','UniverCore','toStringTag','anchors','type','version','79623270vUaRHo','UniverProBoards','extend','@univerjs-pro/ink','trim','UniverProBoardsFacade','30lYIClJ','1228565UOgbkJ','UniverCoreFacade','_addElement','Module','UniverProInkFacade','Shape','2572420RwiUuK','pressure','insertInk','custom','insertIndex','getInks','model','sourceModel','generateRandomId','kind','@univerjs/core/facade','symmetric','1789880iRnYUL','points','@univerjs-pro/boards/facade','isArray','tool','1143504dVurBB','object','@univerjs/core','opacity','35eVvTQE'];_0x3dc3=function(){return _0x1b5510;};return _0x3dc3();}(function(_0x239e9,_0x1b2a36){const _0x4cdbe0=_0x3369,_0x2887e5=_0x239e9();while(!![]){try{const _0x5b30c8=-parseInt(_0x4cdbe0(0x1c7))/0x1+-parseInt(_0x4cdbe0(0x1cd))/0x2+parseInt(_0x4cdbe0(0x1ba))/0x3*(-parseInt(_0x4cdbe0(0x1a2))/0x4)+parseInt(_0x4cdbe0(0x1c6))/0x5*(-parseInt(_0x4cdbe0(0x19b))/0x6)+-parseInt(_0x4cdbe0(0x19f))/0x7*(parseInt(_0x4cdbe0(0x196))/0x8)+-parseInt(_0x4cdbe0(0x1ad))/0x9+parseInt(_0x4cdbe0(0x1c0))/0xa;if(_0x5b30c8===_0x1b2a36)break;else _0x2887e5['push'](_0x2887e5['shift']());}catch(_0x533d2b){_0x2887e5['push'](_0x2887e5['shift']());}}}(_0x3dc3,0xbebc6),function(_0x299dac,_0x4cdffd){const _0xcb4af1=_0x3369;typeof exports==_0xcb4af1(0x19c)&&typeof module<'u'?_0x4cdffd(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[_0xcb4af1(0x1a5)]?define(['exports','@univerjs-pro/boards',_0xcb4af1(0x198),_0xcb4af1(0x1c3),_0xcb4af1(0x19d),_0xcb4af1(0x194)],_0x4cdffd):(_0x299dac=typeof globalThis<'u'?globalThis:_0x299dac||self,_0x4cdffd(_0x299dac[_0xcb4af1(0x1cb)]={},_0x299dac[_0xcb4af1(0x1c1)],_0x299dac[_0xcb4af1(0x1c5)],_0x299dac[_0xcb4af1(0x1b7)],_0x299dac[_0xcb4af1(0x1bb)],_0x299dac[_0xcb4af1(0x1c8)]));}(this,function(_0x240d53,_0x2f1a4d,_0x1bcd01,_0x6d2e8e,_0x394867,_0x97e23f){const _0x59a458=_0x3369;Object[_0x59a458(0x1a3)](_0x240d53,Symbol[_0x59a458(0x1bc)],{'value':_0x59a458(0x1ca)});var _0x123452=class extends _0x1bcd01['FBoard']{[_0x59a458(0x1cf)](_0x37d243){const _0x3afc49=_0x59a458;let _0x381dbc=_0xda3c49(_0x37d243);return _0x381dbc&&this[_0x3afc49(0x1c9)](_0x381dbc,{'insertIndex':_0x37d243[_0x3afc49(0x1d1)]})?_0x381dbc:null;}[_0x59a458(0x18f)](){const _0x46674c=_0x59a458;return this[_0x46674c(0x1a6)]({'elementType':_0x2f1a4d[_0x46674c(0x1a8)][_0x46674c(0x1cc)],'includeHidden':!0x0,'includeLocked':!0x0})['filter'](_0x31aa7a);}};function _0xda3c49(_0x51fdba,_0x4c5e8e){const _0xcb8b4d=_0x59a458;if(!_0x6c4de(_0x51fdba[_0xcb8b4d(0x190)])||_0x51fdba[_0xcb8b4d(0x191)]!==void 0x0&&!_0x6c4de(_0x51fdba[_0xcb8b4d(0x191)])||!_0x21202a(_0x51fdba[_0xcb8b4d(0x1b9)]))return null;let _0xcd176a=_0x51fdba[_0xcb8b4d(0x1b1)]??(_0x4c5e8e==null?void 0x0:_0x4c5e8e['parentId']),_0x474ac8=_0x394867['Tools']['deepClone'](_0x51fdba[_0xcb8b4d(0x190)]),_0x42bfa7=(0x0,_0x6d2e8e['buildInkCustomShapePayload'])({'model':_0x474ac8,'style':_0x51fdba['style'],'tool':_0x51fdba[_0xcb8b4d(0x19a)],'sourceModel':_0x51fdba[_0xcb8b4d(0x191)]?_0x394867[_0xcb8b4d(0x1ac)][_0xcb8b4d(0x1b8)](_0x51fdba[_0xcb8b4d(0x191)]):_0x474ac8}),_0x372082=_0x9007d9(_0x4c5e8e==null?void 0x0:_0x4c5e8e[_0xcb8b4d(0x1d0)]);return{'id':(_0x4c5e8e==null?void 0x0:_0x4c5e8e['id'])??_0x51fdba['id']??(0x0,_0x394867[_0xcb8b4d(0x192)])(0x6),'type':_0x2f1a4d[_0xcb8b4d(0x1a8)][_0xcb8b4d(0x1cc)],'transform':_0x42bfa7['transform'],'shapeData':_0x42bfa7[_0xcb8b4d(0x1b0)],'parentId':_0xcd176a??void 0x0,'laneId':_0x51fdba[_0xcb8b4d(0x1aa)]===void 0x0?_0x4c5e8e==null?void 0x0:_0x4c5e8e[_0xcb8b4d(0x1aa)]:_0x51fdba[_0xcb8b4d(0x1aa)],'custom':{..._0x372082,'ink':_0x42bfa7[_0xcb8b4d(0x1af)]}};}function _0x89a619(_0x3fbadb){const _0x3c0b44=_0x59a458;return Number[_0x3c0b44(0x1b5)](_0x3fbadb['x'])&&Number[_0x3c0b44(0x1b5)](_0x3fbadb['y']);}function _0x6c4de(_0x4c1d46){const _0xab6ebb=_0x59a458;if(_0x4c1d46[_0xab6ebb(0x193)]===_0xab6ebb(0x1b6)){let _0x469da9=new Set();return _0x4c1d46[_0xab6ebb(0x1bd)][_0xab6ebb(0x1b4)]>=(_0x4c1d46['closed']?0x3:0x2)&&_0x4c1d46[_0xab6ebb(0x1bd)]['every'](_0x6e260c=>{const _0xb8b47a=_0xab6ebb;let _0xc7b145=_0x6e260c['id'][_0xb8b47a(0x1c4)]()[_0xb8b47a(0x1b4)]>0x0&&!_0x469da9['has'](_0x6e260c['id'])&&_0x89a619(_0x6e260c)&&(!_0x6e260c['in']||_0x89a619(_0x6e260c['in']))&&(!_0x6e260c[_0xb8b47a(0x1a4)]||_0x89a619(_0x6e260c[_0xb8b47a(0x1a4)]));return _0x469da9['add'](_0x6e260c['id']),_0xc7b145;});}return _0x4c1d46[_0xab6ebb(0x197)][_0xab6ebb(0x1b4)]>=0x2&&_0x4c1d46[_0xab6ebb(0x197)][_0xab6ebb(0x1a9)](_0xdae698=>_0x89a619(_0xdae698)&&Number[_0xab6ebb(0x1b5)](_0xdae698['t'])&&(_0xdae698[_0xab6ebb(0x1ce)]===void 0x0||Number['isFinite'](_0xdae698[_0xab6ebb(0x1ce)])))&&Number['isFinite'](_0x4c1d46[_0xab6ebb(0x1ae)])&&_0x4c1d46[_0xab6ebb(0x1ae)]>0x0&&Number[_0xab6ebb(0x1b5)](_0x4c1d46['opacity'])&&_0x4c1d46[_0xab6ebb(0x19e)]>=0x0&&_0x4c1d46[_0xab6ebb(0x19e)]<=0x1;}function _0x21202a(_0x3c5780){const _0x4d7400=_0x59a458;return _0x3c5780===void 0x0||(_0x3c5780[_0x4d7400(0x1ae)]===void 0x0||Number['isFinite'](_0x3c5780[_0x4d7400(0x1ae)])&&_0x3c5780[_0x4d7400(0x1ae)]>0x0)&&(_0x3c5780[_0x4d7400(0x19e)]===void 0x0||Number['isFinite'](_0x3c5780['opacity'])&&_0x3c5780[_0x4d7400(0x19e)]>=0x0&&_0x3c5780[_0x4d7400(0x19e)]<=0x1);}function _0x9007d9(_0x236936){const _0x462905=_0x59a458;return _0x236936&&typeof _0x236936=='object'&&!Array[_0x462905(0x199)](_0x236936)?_0x236936:{};}function _0x3ede9a(_0x2c284a){const _0x48db1c=_0x59a458;let _0x2755e4=_0x9007d9(_0x2c284a[_0x48db1c(0x1d0)])[_0x48db1c(0x1af)];if(!_0x2755e4||typeof _0x2755e4!=_0x48db1c(0x19c)||Array[_0x48db1c(0x199)](_0x2755e4))return null;let _0x1ede04=_0x2755e4;return _0x1ede04[_0x48db1c(0x1bf)]===0x1&&_0x1ede04[_0x48db1c(0x191)]&&typeof _0x1ede04[_0x48db1c(0x191)]=='object'?_0x1ede04:null;}function _0x31aa7a(_0x5bdb84){const _0x148713=_0x59a458;return _0x5bdb84[_0x148713(0x1be)]===_0x2f1a4d[_0x148713(0x1a8)]['Shape']&&!!_0x3ede9a(_0x5bdb84);}_0x1bcd01['FBoard']['extend'](_0x123452);let _0x395749={'Pen':_0x59a458(0x1b6),'Brush':'brush','Highlighter':'highlighter'},_0x85c057={'Corner':_0x59a458(0x1a0),'Smooth':_0x59a458(0x1b3),'Symmetric':_0x59a458(0x195),'Free':_0x59a458(0x1a7)},_0xe73fb6={'Anchor':'anchor','In':'in','Out':_0x59a458(0x1a4)};var _0x527d7a=class extends _0x97e23f[_0x59a458(0x1ab)]{get[_0x59a458(0x1b2)](){return _0x395749;}get['BoardInkPointType'](){return _0x85c057;}get['BoardInkHandleKind'](){return _0xe73fb6;}};_0x97e23f['FEnum'][_0x59a458(0x1c2)](_0x527d7a),_0x240d53['BoardInkHandleKind']=_0xe73fb6,_0x240d53[_0x59a458(0x1a1)]=_0x85c057,_0x240d53[_0x59a458(0x1b2)]=_0x395749;}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;}));
|
|
1
|
+
function _0x34f5(){const _0x3b9e8a=['splice','findClosestInkPenSegment','@univerjs-pro/ink','segmentIndex','@univerjs-pro/license','object','Inject','decorate','hypot','min','filter','Round','corner','ShapeFillEnum','ink-centerline-','27KekdAS','map','registerAdapter','registerCommand','SolidFill','DependentOn','join','cycleInkPenAnchorPointType','UniverProEngineShape','toPrimitive','height','defineProperty','UniverProLicense','setConfig','startIndex','655vbcaYg','pluginName','constructor','distance','8bMVcvJ','__ink-preview-anchor__','kind','deleteInkPenAnchor','top','moveInkPenAnchorPoint','1.3.1','_commandService','onStarting','UniverInkPlugin','symbol','Injector','left','free','amd','buildInkCustomShapePayload','CommandType','anchor','disposeWithMe','ShapeLineJoinEnum','pen','createIdentifier','39800uzuPQt','ratio','ink.config','smooth','right','findClosestInkPenHandle','beginInkMode','iterator','norm','symmetric','OPERATION','UniverLicensePlugin','createId','_configService','out','SolidLine','convertBrushModelToPenModel','fillColor','283838KTiDLX','max','86487GyCwbl','anchors','find','tool','createCustomShape','get','406mKVGaU','_config','start','round','Rect','default','NoFill','UniverCore','opacity','Plugin','closed','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','forEach','sqrt','2061521DSyOKb','prototype','ShapeLineCapEnum','UniverInstanceType','color','points','merge','call','1263066eEdGBf','none','ICommandService','pointType','ShapeLineTypeEnum','slice','setInkPenAnchorPointType','1123910viFUiZ','abs','getInkModelBounds','ShapeTypeEnum','IConfigService','end','point','add','toStringTag','type','string','_injector','@univerjs/core','Module','_adapters','width','length','@univerjs-pro/engine-shape','5756EPmsfh','ink.host-adapter.service','push','packageName','insertInkPenAnchorAt','UniverProInk','getInkPenPreviewModel'];_0x34f5=function(){return _0x3b9e8a;};return _0x34f5();}function _0x2f85(_0x4b7d94,_0x4cf8ce){_0x4b7d94=_0x4b7d94-0x6d;const _0x34f5ef=_0x34f5();let _0x2f85f6=_0x34f5ef[_0x4b7d94];return _0x2f85f6;}(function(_0x59d466,_0x4dca55){const _0x3cf751=_0x2f85,_0x5a3012=_0x59d466();while(!![]){try{const _0x3810ed=parseInt(_0x3cf751(0xc2))/0x1+-parseInt(_0x3cf751(0x9a))/0x2*(parseInt(_0x3cf751(0xc4))/0x3)+parseInt(_0x3cf751(0x71))/0x4*(-parseInt(_0x3cf751(0x96))/0x5)+-parseInt(_0x3cf751(0xe0))/0x6+-parseInt(_0x3cf751(0xca))/0x7*(-parseInt(_0x3cf751(0xb0))/0x8)+parseInt(_0x3cf751(0x87))/0x9*(parseInt(_0x3cf751(0xe7))/0xa)+-parseInt(_0x3cf751(0xd8))/0xb;if(_0x3810ed===_0x4dca55)break;else _0x5a3012['push'](_0x5a3012['shift']());}catch(_0x3a1c2c){_0x5a3012['push'](_0x5a3012['shift']());}}}(_0x34f5,0x32bc6),function(_0x2dec78,_0x45ad47){const _0x146ae0=_0x2f85;typeof exports==_0x146ae0(0x7d)&&typeof module<'u'?_0x45ad47(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define=='function'&&define[_0x146ae0(0xa8)]?define(['exports',_0x146ae0(0x70),_0x146ae0(0x7c),_0x146ae0(0xf3)],_0x45ad47):(_0x2dec78=typeof globalThis<'u'?globalThis:_0x2dec78||self,_0x45ad47(_0x2dec78[_0x146ae0(0x76)]={},_0x2dec78[_0x146ae0(0x8f)],_0x2dec78[_0x146ae0(0x93)],_0x2dec78[_0x146ae0(0xd1)]));}(this,function(_0x28cc4d,_0x417208,_0x58412f,_0x53c816){const _0x48bb08=_0x2f85;Object[_0x48bb08(0x92)](_0x28cc4d,Symbol[_0x48bb08(0xef)],{'value':_0x48bb08(0xf4)});let _0x563e6f=0.0001;function _0x4cb8b4(_0x6815f9){return{'x':_0x6815f9['x'],'y':_0x6815f9['y']};}function _0xa862fa(_0x20cbe5){const _0x269827=_0x48bb08;return{..._0x20cbe5,'in':_0x20cbe5['in']?_0x4cb8b4(_0x20cbe5['in']):void 0x0,'out':_0x20cbe5[_0x269827(0xbe)]?_0x4cb8b4(_0x20cbe5[_0x269827(0xbe)]):void 0x0};}function _0x442cc1(_0x5dc4cc){const _0x50dc8a=_0x48bb08;return{'kind':_0x50dc8a(0xae),'closed':_0x5dc4cc[_0x50dc8a(0xd4)],'anchors':_0x5dc4cc[_0x50dc8a(0xc5)][_0x50dc8a(0x88)](_0xa862fa)};}function _0x712487(_0x3870d0,_0x1c7f8d,_0x326737){return{'x':_0x3870d0['x']+(_0x1c7f8d['x']-_0x3870d0['x'])*_0x326737,'y':_0x3870d0['y']+(_0x1c7f8d['y']-_0x3870d0['y'])*_0x326737};}function _0x548a2b(_0xa378b7,_0x555909){const _0xf9bf8f=_0x48bb08;return Math[_0xf9bf8f(0x80)](_0xa378b7['x']-_0x555909['x'],_0xa378b7['y']-_0x555909['y']);}function _0x57ad93(_0x16e9d7){const _0x49b692=_0x48bb08;let _0x66e99a=Math[_0x49b692(0x80)](_0x16e9d7['x'],_0x16e9d7['y']);return _0x66e99a<_0x563e6f?{'x':0x1,'y':0x0}:{'x':_0x16e9d7['x']/_0x66e99a,'y':_0x16e9d7['y']/_0x66e99a};}function _0x2d962f(_0xef01e,_0x549de7,_0x52d0cb=_0x548a2b(_0xef01e,_0x549de7)){let _0x43f201=_0x57ad93({'x':_0xef01e['x']-_0x549de7['x'],'y':_0xef01e['y']-_0x549de7['y']});return{'x':_0xef01e['x']+_0x43f201['x']*_0x52d0cb,'y':_0xef01e['y']+_0x43f201['y']*_0x52d0cb};}function _0x192955(_0x26cfd8,_0xfa8dfb){const _0x37401e=_0x48bb08;let {anchors:_0x1c68ca}=_0x26cfd8;return _0x1c68ca['length']<0x2||_0xfa8dfb<0x0?null:_0xfa8dfb<_0x1c68ca['length']-0x1?{'startIndex':_0xfa8dfb,'endIndex':_0xfa8dfb+0x1,'start':_0x1c68ca[_0xfa8dfb],'end':_0x1c68ca[_0xfa8dfb+0x1]}:_0x26cfd8[_0x37401e(0xd4)]&&_0xfa8dfb===_0x1c68ca[_0x37401e(0x6f)]-0x1?{'startIndex':_0x1c68ca[_0x37401e(0x6f)]-0x1,'endIndex':0x0,'start':_0x1c68ca[_0x1c68ca[_0x37401e(0x6f)]-0x1],'end':_0x1c68ca[0x0]}:null;}function _0x271d6b(_0x47d149,_0x1fab1f){const _0x3b7180=_0x48bb08;let _0x5c0e5e=_0x192955(_0x47d149,_0x1fab1f);return _0x5c0e5e?[_0x5c0e5e[_0x3b7180(0xcc)],_0x5c0e5e[_0x3b7180(0xcc)][_0x3b7180(0xbe)]??_0x5c0e5e[_0x3b7180(0xcc)],_0x5c0e5e[_0x3b7180(0xec)]['in']??_0x5c0e5e[_0x3b7180(0xec)],_0x5c0e5e[_0x3b7180(0xec)]]:null;}function _0x48bcb0(_0x174e1e,_0x28fc85){return _0x28fc85==='anchor'?_0x174e1e:_0x174e1e[_0x28fc85]??null;}function _0x408a3e(_0x96913a,_0x2ad6c3,_0x56787c){const _0x174a8a=_0x48bb08;return _0x56787c===_0x174a8a(0xab)||_0x96913a['closed']?!0x0:_0x56787c==='in'?_0x2ad6c3>0x0:_0x2ad6c3<_0x96913a['anchors']['length']-0x1;}function _0x348f66(_0x46a0e9,_0xaf8522){let [_0x57d395,_0x52fd32,_0x33d271,_0x36a4af]=_0x46a0e9,_0x453522=_0x712487(_0x57d395,_0x52fd32,_0xaf8522),_0x35d501=_0x712487(_0x52fd32,_0x33d271,_0xaf8522),_0xf30a37=_0x712487(_0x33d271,_0x36a4af,_0xaf8522);return _0x712487(_0x712487(_0x453522,_0x35d501,_0xaf8522),_0x712487(_0x35d501,_0xf30a37,_0xaf8522),_0xaf8522);}function _0x5edaee(_0x4b5b97,_0x612618){let [_0x4a3a79,_0xa28370,_0x3efd66,_0x16eb61]=_0x4b5b97,_0xb449b1=_0x712487(_0x4a3a79,_0xa28370,_0x612618),_0x38d68c=_0x712487(_0xa28370,_0x3efd66,_0x612618),_0x14c588=_0x712487(_0x3efd66,_0x16eb61,_0x612618),_0x473f1c=_0x712487(_0xb449b1,_0x38d68c,_0x612618),_0x319cd5=_0x712487(_0x38d68c,_0x14c588,_0x612618),_0x8acec4=_0x712487(_0x473f1c,_0x319cd5,_0x612618);return{'left':[_0x4a3a79,_0xb449b1,_0x473f1c,_0x8acec4],'right':[_0x8acec4,_0x319cd5,_0x14c588,_0x16eb61]};}function _0x45b250(_0x1760dd,_0x5a50a3,_0x5bab41){let _0xccb78b=_0x5bab41['x']-_0x5a50a3['x'],_0x3542e8=_0x5bab41['y']-_0x5a50a3['y'],_0x3f7d95=_0xccb78b*_0xccb78b+_0x3542e8*_0x3542e8,_0x44b0f8=_0x3f7d95<=_0x563e6f?0x0:Math['max'](0x0,Math['min'](0x1,((_0x1760dd['x']-_0x5a50a3['x'])*_0xccb78b+(_0x1760dd['y']-_0x5a50a3['y'])*_0x3542e8)/_0x3f7d95)),_0x194f22={'x':_0x5a50a3['x']+_0xccb78b*_0x44b0f8,'y':_0x5a50a3['y']+_0x3542e8*_0x44b0f8};return{'point':_0x194f22,'ratio':_0x44b0f8,'distance':_0x548a2b(_0x1760dd,_0x194f22)};}function _0x42f084(_0x456cc6,_0x1f827e,_0x407ab5){const _0x3bf52b=_0x48bb08;return _0x45b250(_0x456cc6,_0x1f827e,_0x407ab5)[_0x3bf52b(0x99)]**0x2;}function _0x4d1989(_0x4f65f2,_0x40ec28){const _0x214bb6=_0x48bb08;if(_0x4f65f2[_0x214bb6(0x6f)]<=0x2)return _0x4f65f2[_0x214bb6(0x88)](_0x4cb8b4);let _0x1e6f89=0x0,_0x44363a=0x0,_0x3ba7d8=_0x4f65f2[0x0],_0x48cb8e=_0x4f65f2[_0x4f65f2[_0x214bb6(0x6f)]-0x1],_0x9020f7=_0x40ec28*_0x40ec28;for(let _0x61bdb=0x1;_0x61bdb<_0x4f65f2[_0x214bb6(0x6f)]-0x1;_0x61bdb++){let _0x353aa6=_0x42f084(_0x4f65f2[_0x61bdb],_0x3ba7d8,_0x48cb8e);_0x353aa6>_0x1e6f89&&(_0x1e6f89=_0x353aa6,_0x44363a=_0x61bdb);}if(_0x1e6f89<=_0x9020f7)return[_0x4cb8b4(_0x3ba7d8),_0x4cb8b4(_0x48cb8e)];let _0x34a851=_0x4d1989(_0x4f65f2[_0x214bb6(0xe5)](0x0,_0x44363a+0x1),_0x40ec28),_0x4d8c7f=_0x4d1989(_0x4f65f2[_0x214bb6(0xe5)](_0x44363a),_0x40ec28);return[..._0x34a851[_0x214bb6(0xe5)](0x0,-0x1),..._0x4d8c7f];}function _0x331baf(_0xc25cf2,_0x44ee2d){let _0x44ad3b=_0xc25cf2[_0x44ee2d],_0x350d23=_0xc25cf2[_0x44ee2d+0x1],_0x212624=_0xc25cf2[_0x44ee2d-0x1]??_0x44ad3b;return{'x':_0x44ad3b['x']+(_0x350d23['x']-_0x212624['x'])/0x6,'y':_0x44ad3b['y']+(_0x350d23['y']-_0x212624['y'])/0x6};}function _0x8bf0c9(_0x29409e,_0xf57ad9){let _0x430658=_0x29409e[_0xf57ad9],_0x38a90e=_0x29409e[_0xf57ad9-0x1],_0xebf8a8=_0x29409e[_0xf57ad9+0x1]??_0x430658;return{'x':_0x430658['x']-(_0xebf8a8['x']-_0x38a90e['x'])/0x6,'y':_0x430658['y']-(_0xebf8a8['y']-_0x38a90e['y'])/0x6};}function _0x4bf2e9(_0xdd6ed3,_0x418997){const _0x2a5918=_0x48bb08;let _0x156d81=_0xdd6ed3[_0x2a5918(0xc5)][_0x418997],_0x452eab=_0xdd6ed3[_0x2a5918(0xc5)][_0x418997-0x1]??(_0xdd6ed3['closed']?_0xdd6ed3['anchors'][_0xdd6ed3['anchors'][_0x2a5918(0x6f)]-0x1]:null),_0xe6539f=_0xdd6ed3[_0x2a5918(0xc5)][_0x418997+0x1]??(_0xdd6ed3[_0x2a5918(0xd4)]?_0xdd6ed3[_0x2a5918(0xc5)][0x0]:null),_0x30e0b8=_0x452eab&&_0xe6539f?_0x57ad93({'x':_0xe6539f['x']-_0x452eab['x'],'y':_0xe6539f['y']-_0x452eab['y']}):_0xe6539f?_0x57ad93({'x':_0xe6539f['x']-_0x156d81['x'],'y':_0xe6539f['y']-_0x156d81['y']}):_0x452eab?_0x57ad93({'x':_0x156d81['x']-_0x452eab['x'],'y':_0x156d81['y']-_0x452eab['y']}):{'x':0x1,'y':0x0},_0x3c63d5=_0x452eab&&_0xe6539f?Math[_0x2a5918(0xc3)](0x32,_0x548a2b(_0x452eab,_0xe6539f)/0x4):0x32;return{'in':{'x':_0x156d81['x']-_0x30e0b8['x']*_0x3c63d5,'y':_0x156d81['y']-_0x30e0b8['y']*_0x3c63d5},'out':{'x':_0x156d81['x']+_0x30e0b8['x']*_0x3c63d5,'y':_0x156d81['y']+_0x30e0b8['y']*_0x3c63d5}};}function _0x1f47b3(_0x4d77c2,_0x3e5747){const _0x20d70d=_0x48bb08;let _0x3b79b6=_0x4d77c2[_0x3e5747],_0x15eea7=_0x3e5747==='in'?'out':'in',_0xd84346=_0x4d77c2[_0x15eea7];_0x3b79b6&&(_0x4d77c2[_0x20d70d(0xe3)]==='symmetric'?_0x4d77c2[_0x15eea7]=_0x2d962f(_0x4d77c2,_0x3b79b6):_0x4d77c2[_0x20d70d(0xe3)]===_0x20d70d(0xb3)&&(_0x4d77c2[_0x15eea7]=_0x2d962f(_0x4d77c2,_0x3b79b6,_0xd84346?_0x548a2b(_0x4d77c2,_0xd84346):_0x548a2b(_0x4d77c2,_0x3b79b6))));}function _0x2cddeb(_0x5d3a60,_0xc2b275){const _0x4c749d=_0x48bb08;let _0x32646c=_0x442cc1(_0x5d3a60);return!_0xc2b275||_0x32646c['closed']||_0x32646c[_0x4c749d(0xc5)]['length']===0x0||_0x32646c['anchors'][_0x4c749d(0x73)]({'id':_0x4c749d(0x9b),'x':_0xc2b275['x'],'y':_0xc2b275['y'],'pointType':_0x4c749d(0x84)}),_0x32646c;}function _0x38847e(_0x1fac52,_0x272cd2={}){const _0x2864c8=_0x48bb08;let _0x43cf28=Math[_0x2864c8(0xc3)](0x0,_0x272cd2['tolerance']??Math[_0x2864c8(0xc3)](0x4,_0x1fac52[_0x2864c8(0x6e)]*0.35)),_0x12a50c=_0x272cd2[_0x2864c8(0xbc)]??(_0x145ff7=>_0x2864c8(0x86)+_0x145ff7),_0x28ab88=_0x4d1989(_0x1fac52[_0x2864c8(0xdd)],_0x43cf28),_0x49f778=_0x28ab88['map']((_0x45cf4b,_0xe551b7)=>({'id':_0x12a50c(_0xe551b7),'x':_0x45cf4b['x'],'y':_0x45cf4b['y'],'pointType':_0x2864c8(0xa7)}));for(let _0x58531e=0x0;_0x58531e<_0x49f778[_0x2864c8(0x6f)]-0x1;_0x58531e++)_0x49f778[_0x58531e][_0x2864c8(0xbe)]=_0x331baf(_0x28ab88,_0x58531e),_0x49f778[_0x58531e+0x1]['in']=_0x8bf0c9(_0x28ab88,_0x58531e+0x1);return{'kind':_0x2864c8(0xae),'closed':!0x1,'anchors':_0x49f778};}function _0x108724(_0x16b3f7,_0x45fa62,_0x3081d5){const _0x2dd7c1=_0x48bb08;let _0x41cd1d=null,_0x35e3c6=[_0x2dd7c1(0xab),'in',_0x2dd7c1(0xbe)];return _0x16b3f7['anchors'][_0x2dd7c1(0xd6)]((_0x2c7a7d,_0x10557d)=>{const _0xae5de5=_0x2dd7c1;_0x35e3c6[_0xae5de5(0xd6)](_0x5ea4a3=>{const _0x5d003a=_0xae5de5;if(!_0x408a3e(_0x16b3f7,_0x10557d,_0x5ea4a3))return;let _0x5232c3=_0x48bcb0(_0x2c7a7d,_0x5ea4a3);if(!_0x5232c3)return;let _0x342028=_0x548a2b(_0x45fa62,_0x5232c3);_0x342028>_0x3081d5||_0x41cd1d&&_0x342028>=_0x41cd1d[_0x5d003a(0x99)]||(_0x41cd1d={'handle':{'kind':_0x5ea4a3,'anchorId':_0x2c7a7d['id']},'point':_0x4cb8b4(_0x5232c3),'distance':_0x342028});});}),_0x41cd1d;}function _0x510d6a(_0x1a9bff,_0x2190c3,_0x261f8e){const _0x119b9d=_0x48bb08;let _0x5d3332=null,_0x3a9019=_0x1a9bff[_0x119b9d(0xd4)]?_0x1a9bff['anchors'][_0x119b9d(0x6f)]:Math[_0x119b9d(0xc3)](0x0,_0x1a9bff['anchors']['length']-0x1);for(let _0x25f814=0x0;_0x25f814<_0x3a9019;_0x25f814++){let _0xfa2d1a=_0x271d6b(_0x1a9bff,_0x25f814);if(!_0xfa2d1a)continue;let _0x294e93=_0x348f66(_0xfa2d1a,0x0);for(let _0xfaea82=0x1;_0xfaea82<=0x20;_0xfaea82++){let _0x21d125=_0x348f66(_0xfa2d1a,_0xfaea82/0x20),_0x2e85fa=_0x45b250(_0x2190c3,_0x294e93,_0x21d125),_0x39252f=(_0xfaea82-0x1+_0x2e85fa[_0x119b9d(0xb1)])/0x20;(!_0x5d3332||_0x2e85fa[_0x119b9d(0x99)]<_0x5d3332[_0x119b9d(0x99)])&&(_0x5d3332={'segmentIndex':_0x25f814,'t':_0x39252f,'point':_0x2e85fa[_0x119b9d(0xed)],'distance':_0x2e85fa['distance']}),_0x294e93=_0x21d125;}}return _0x5d3332&&_0x5d3332[_0x119b9d(0x99)]<=_0x261f8e?_0x5d3332:null;}function _0x3aa36b(_0x8289b7,_0x5e9223,_0x1791bb){const _0x4d48e0=_0x48bb08;let _0x1dd5c1=_0x442cc1(_0x8289b7),_0x50a5a3=_0x192955(_0x1dd5c1,_0x5e9223[_0x4d48e0(0x7b)]),_0x57aedc=_0x271d6b(_0x1dd5c1,_0x5e9223['segmentIndex']);if(!_0x50a5a3||!_0x57aedc)return _0x1dd5c1;let _0x3d5445=_0x5edaee(_0x57aedc,Math['max'](0x0,Math[_0x4d48e0(0x81)](0x1,_0x5e9223['t']))),_0x98c24d={'id':_0x1791bb(),'x':_0x3d5445[_0x4d48e0(0xa6)][0x3]['x'],'y':_0x3d5445[_0x4d48e0(0xa6)][0x3]['y'],'in':_0x4cb8b4(_0x3d5445[_0x4d48e0(0xa6)][0x2]),'out':_0x4cb8b4(_0x3d5445[_0x4d48e0(0xb4)][0x1]),'pointType':_0x4d48e0(0xa7)};return _0x1dd5c1[_0x4d48e0(0xc5)][_0x50a5a3[_0x4d48e0(0x95)]][_0x4d48e0(0xbe)]=_0x4cb8b4(_0x3d5445['left'][0x1]),_0x1dd5c1[_0x4d48e0(0xc5)][_0x50a5a3['endIndex']]['in']=_0x4cb8b4(_0x3d5445[_0x4d48e0(0xb4)][0x2]),_0x1dd5c1['anchors'][_0x4d48e0(0x78)](_0x50a5a3['startIndex']+0x1,0x0,_0x98c24d),_0x1dd5c1;}function _0x1b2c86(_0x2f739f,_0x4b75bf){const _0x20b3f4=_0x48bb08;let _0x734eb8=_0x442cc1(_0x2f739f);return _0x734eb8[_0x20b3f4(0xc5)]=_0x734eb8[_0x20b3f4(0xc5)][_0x20b3f4(0x82)](_0x57ff3d=>_0x57ff3d['id']!==_0x4b75bf),_0x734eb8[_0x20b3f4(0xd4)]&&_0x734eb8[_0x20b3f4(0xc5)][_0x20b3f4(0x6f)]<0x3&&(_0x734eb8[_0x20b3f4(0xd4)]=!0x1),_0x734eb8;}function _0x47ef32(_0x4880c1,_0x2e4277,_0x80ed0a){const _0x3a0b12=_0x48bb08;let _0x1b61d1=_0x442cc1(_0x4880c1),_0x338322=_0x1b61d1[_0x3a0b12(0xc5)]['findIndex'](_0x3cd4d2=>_0x3cd4d2['id']===_0x2e4277),_0x41a7a2=_0x1b61d1[_0x3a0b12(0xc5)][_0x338322];if(!_0x41a7a2)return _0x1b61d1;if(_0x41a7a2[_0x3a0b12(0xe3)]=_0x80ed0a,_0x80ed0a===_0x3a0b12(0x84))return delete _0x41a7a2['in'],delete _0x41a7a2[_0x3a0b12(0xbe)],_0x1b61d1;let _0x3a19a9=_0x4bf2e9(_0x1b61d1,_0x338322);if(_0x41a7a2['in']=_0x41a7a2['in']?_0x4cb8b4(_0x41a7a2['in']):_0x3a19a9['in'],_0x41a7a2[_0x3a0b12(0xbe)]=_0x41a7a2[_0x3a0b12(0xbe)]?_0x4cb8b4(_0x41a7a2['out']):_0x3a19a9[_0x3a0b12(0xbe)],_0x80ed0a==='symmetric'){let _0x456efd=Math['max'](_0x548a2b(_0x41a7a2,_0x41a7a2['in']),_0x548a2b(_0x41a7a2,_0x41a7a2[_0x3a0b12(0xbe)]),0x32),_0x5a3e58=_0x57ad93({'x':_0x41a7a2[_0x3a0b12(0xbe)]['x']-_0x41a7a2['x'],'y':_0x41a7a2[_0x3a0b12(0xbe)]['y']-_0x41a7a2['y']});_0x41a7a2[_0x3a0b12(0xbe)]={'x':_0x41a7a2['x']+_0x5a3e58['x']*_0x456efd,'y':_0x41a7a2['y']+_0x5a3e58['y']*_0x456efd},_0x41a7a2['in']={'x':_0x41a7a2['x']-_0x5a3e58['x']*_0x456efd,'y':_0x41a7a2['y']-_0x5a3e58['y']*_0x456efd};}else _0x80ed0a==='smooth'&&_0x1f47b3(_0x41a7a2,_0x3a0b12(0xbe));return _0x1b61d1;}function _0x4aa47e(_0x2366cb,_0x3cb2df){const _0x3f8231=_0x48bb08;let _0x5967ff=_0x2366cb[_0x3f8231(0xc5)][_0x3f8231(0xc6)](_0x6f4e8a=>_0x6f4e8a['id']===_0x3cb2df),_0x1118b1=(_0x5967ff==null?void 0x0:_0x5967ff[_0x3f8231(0xe3)])??_0x3f8231(0x84);return _0x47ef32(_0x2366cb,_0x3cb2df,_0x1118b1==='corner'?'smooth':_0x1118b1===_0x3f8231(0xb3)?_0x3f8231(0xb9):_0x1118b1==='symmetric'?_0x3f8231(0xa7):_0x3f8231(0x84));}function _0xf67bc2(_0x3637cd,_0x3dfb27,_0x3168de){const _0x34024b=_0x48bb08;let _0x409299=_0x442cc1(_0x3637cd),_0x55a3af=_0x409299[_0x34024b(0xc5)][_0x34024b(0xc6)](_0x1f0200=>_0x1f0200['id']===_0x3dfb27['anchorId']);if(!_0x55a3af)return _0x409299;if(_0x3dfb27[_0x34024b(0x9c)]===_0x34024b(0xab)){let _0x36185f={'x':_0x3168de['x']-_0x55a3af['x'],'y':_0x3168de['y']-_0x55a3af['y']};return _0x55a3af['x']=_0x3168de['x'],_0x55a3af['y']=_0x3168de['y'],_0x55a3af['in']&&={'x':_0x55a3af['in']['x']+_0x36185f['x'],'y':_0x55a3af['in']['y']+_0x36185f['y']},_0x55a3af[_0x34024b(0xbe)]&&={'x':_0x55a3af['out']['x']+_0x36185f['x'],'y':_0x55a3af[_0x34024b(0xbe)]['y']+_0x36185f['y']},_0x409299;}return _0x55a3af[_0x3dfb27['kind']]=_0x4cb8b4(_0x3168de),_0x55a3af[_0x34024b(0xe3)]===_0x34024b(0x84)&&(_0x55a3af['pointType']=_0x34024b(0xa7)),_0x1f47b3(_0x55a3af,_0x3dfb27[_0x34024b(0x9c)]),_0x409299;}let _0x27a57f=1e-9;function _0xa971b5(_0x34ef63){const _0x3b65bf=_0x48bb08;let _0x441223=Math[_0x3b65bf(0xcd)](_0x34ef63*0x2710)/0x2710;return Object['is'](_0x441223,-0x0)?'0':String(_0x441223);}function _0x40c378(_0x305707){return _0xa971b5(_0x305707['x'])+'\x20'+_0xa971b5(_0x305707['y']);}function _0x227f48(_0x887b5f,_0xfa9846){return{'x':_0x887b5f['x']-_0xfa9846['x'],'y':_0x887b5f['y']-_0xfa9846['y']};}function _0x1e04a6(_0x3e4a5e,_0x3554b0,_0x29729c,_0x3c3bc0,_0x490f4f){let _0x115208=0x1-_0x490f4f;return{'x':_0x115208*_0x115208*_0x115208*_0x3e4a5e['x']+0x3*_0x115208*_0x115208*_0x490f4f*_0x3554b0['x']+0x3*_0x115208*_0x490f4f*_0x490f4f*_0x29729c['x']+_0x490f4f*_0x490f4f*_0x490f4f*_0x3c3bc0['x'],'y':_0x115208*_0x115208*_0x115208*_0x3e4a5e['y']+0x3*_0x115208*_0x115208*_0x490f4f*_0x3554b0['y']+0x3*_0x115208*_0x490f4f*_0x490f4f*_0x29729c['y']+_0x490f4f*_0x490f4f*_0x490f4f*_0x3c3bc0['y']};}function _0x5811ee(_0x13fcb3,_0xb76fd0,_0x35482f,_0x585a5a){const _0xeb3cbe=_0x48bb08;let _0x686a0e=-_0x13fcb3+0x3*_0xb76fd0-0x3*_0x35482f+_0x585a5a,_0x15248e=0x3*_0x13fcb3-0x6*_0xb76fd0+0x3*_0x35482f,_0x43ca7f=-0x3*_0x13fcb3+0x3*_0xb76fd0,_0x73ee69=[];if(Math[_0xeb3cbe(0xe8)](_0x686a0e)<_0x27a57f){if(Math[_0xeb3cbe(0xe8)](_0x15248e)<_0x27a57f)return _0x73ee69;let _0x27c4d8=-_0x43ca7f/(0x2*_0x15248e);return _0x27c4d8>0x0&&_0x27c4d8<0x1&&_0x73ee69[_0xeb3cbe(0x73)](_0x27c4d8),_0x73ee69;}let _0x340f1f=_0x15248e*_0x15248e-0x3*_0x686a0e*_0x43ca7f;if(_0x340f1f<0x0)return _0x73ee69;let _0x331402=Math[_0xeb3cbe(0xd7)](Math[_0xeb3cbe(0xc3)](0x0,_0x340f1f)),_0x32656b=(-_0x15248e+_0x331402)/(0x3*_0x686a0e),_0x35b322=(-_0x15248e-_0x331402)/(0x3*_0x686a0e);return _0x32656b>0x0&&_0x32656b<0x1&&_0x73ee69[_0xeb3cbe(0x73)](_0x32656b),_0x35b322>0x0&&_0x35b322<0x1&&Math[_0xeb3cbe(0xe8)](_0x35b322-_0x32656b)>_0x27a57f&&_0x73ee69[_0xeb3cbe(0x73)](_0x35b322),_0x73ee69;}function _0x30f082(_0x44a5f0,_0x38b18d,_0x5edc56,_0x1cc2a0,_0x3340e7){const _0xd9d2e4=_0x48bb08;_0x44a5f0[_0xd9d2e4(0x73)](_0x38b18d,_0x3340e7),new Set([..._0x5811ee(_0x38b18d['x'],_0x5edc56['x'],_0x1cc2a0['x'],_0x3340e7['x']),..._0x5811ee(_0x38b18d['y'],_0x5edc56['y'],_0x1cc2a0['y'],_0x3340e7['y'])])['forEach'](_0xbc1225=>{const _0x98cd5b=_0xd9d2e4;_0x44a5f0[_0x98cd5b(0x73)](_0x1e04a6(_0x38b18d,_0x5edc56,_0x1cc2a0,_0x3340e7,_0xbc1225));});}function _0x1c41cb(_0x115a99){const _0x136dc6=_0x48bb08;let _0xb0f093=_0x115a99[_0x136dc6(0xc5)];if(_0xb0f093['length']<=0x1)return _0xb0f093;let _0x41e053=[];for(let _0x239f0c=0x1;_0x239f0c<_0xb0f093[_0x136dc6(0x6f)];_0x239f0c++){let _0x19a101=_0xb0f093[_0x239f0c-0x1],_0x63be6d=_0xb0f093[_0x239f0c];_0x30f082(_0x41e053,_0x19a101,_0x19a101['out']??_0x19a101,_0x63be6d['in']??_0x63be6d,_0x63be6d);}if(_0x115a99['closed']&&_0xb0f093['length']>0x1){let _0x2d158e=_0xb0f093[_0xb0f093[_0x136dc6(0x6f)]-0x1],_0x3f94d0=_0xb0f093[0x0];_0x30f082(_0x41e053,_0x2d158e,_0x2d158e[_0x136dc6(0xbe)]??_0x2d158e,_0x3f94d0['in']??_0x3f94d0,_0x3f94d0);}return _0x41e053;}function _0x402ed6(_0x21a71e){const _0x44b4cb=_0x48bb08;let _0x5ae4ae=_0x21a71e[_0x44b4cb(0xdd)];if(_0x5ae4ae['length']<=0x1)return _0x5ae4ae;let _0x3227ff=[];for(let _0x142da6=0x0;_0x142da6<_0x5ae4ae[_0x44b4cb(0x6f)]-0x1;_0x142da6++){let _0x1026be=_0x5ae4ae[_0x142da6],_0x49f3b6=_0x5ae4ae[_0x142da6+0x1],_0x1492c7=_0x5ae4ae[_0x142da6-0x1]??_0x1026be,_0x7739b5=_0x5ae4ae[_0x142da6+0x2]??_0x49f3b6;_0x30f082(_0x3227ff,_0x1026be,{'x':_0x1026be['x']+(_0x49f3b6['x']-_0x1492c7['x'])/0x6,'y':_0x1026be['y']+(_0x49f3b6['y']-_0x1492c7['y'])/0x6},{'x':_0x49f3b6['x']-(_0x7739b5['x']-_0x1026be['x'])/0x6,'y':_0x49f3b6['y']-(_0x7739b5['y']-_0x1026be['y'])/0x6},_0x49f3b6);}return _0x3227ff;}function _0x578ccb(_0x6df557){const _0x1efc49=_0x48bb08;return _0x6df557[_0x1efc49(0x9c)]===_0x1efc49(0xae)?_0x1c41cb(_0x6df557):_0x402ed6(_0x6df557);}function _0x19d266(_0x289f20){const _0x595b14=_0x48bb08;let _0x12a6b4=Math[_0x595b14(0xcd)](_0x289f20*0x2710)/0x2710;return Object['is'](_0x12a6b4,-0x0)?0x0:_0x12a6b4;}function _0x13e994(_0x39d64a){const _0x2390da=_0x48bb08;let _0x244cc4=_0x578ccb(_0x39d64a);if(_0x244cc4[_0x2390da(0x6f)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x43fa60=Math[_0x2390da(0x81)](..._0x244cc4['map'](_0xef7cbd=>_0xef7cbd['x'])),_0x96df02=Math[_0x2390da(0x81)](..._0x244cc4[_0x2390da(0x88)](_0x3a9cab=>_0x3a9cab['y'])),_0x410bb9=Math['max'](..._0x244cc4[_0x2390da(0x88)](_0x4fa704=>_0x4fa704['x'])),_0x1e9e5c=Math[_0x2390da(0xc3)](..._0x244cc4['map'](_0x58dea0=>_0x58dea0['y']));return{'left':_0x19d266(_0x43fa60),'top':_0x19d266(_0x96df02),'width':_0x19d266(Math[_0x2390da(0xc3)](0x1,_0x410bb9-_0x43fa60)),'height':_0x19d266(Math[_0x2390da(0xc3)](0x1,_0x1e9e5c-_0x96df02))};}function _0x71c63f(_0x1a015c,_0x14bbdf){const _0x20fe2e=_0x48bb08;let _0x30690e=_0x1a015c['anchors'];if(_0x30690e[_0x20fe2e(0x6f)]===0x0)return'';let _0x4135b6=['M\x20'+_0x40c378(_0x227f48(_0x30690e[0x0],_0x14bbdf))];for(let _0x50fe68=0x1;_0x50fe68<_0x30690e['length'];_0x50fe68++){let _0x1941cb=_0x30690e[_0x50fe68-0x1],_0x11aabe=_0x30690e[_0x50fe68],_0x2396da=_0x1941cb['out']??_0x1941cb,_0x2e70b4=_0x11aabe['in']??_0x11aabe;_0x4135b6['push']('C\x20'+_0x40c378(_0x227f48(_0x2396da,_0x14bbdf))+'\x20'+_0x40c378(_0x227f48(_0x2e70b4,_0x14bbdf))+'\x20'+_0x40c378(_0x227f48(_0x11aabe,_0x14bbdf)));}if(_0x1a015c[_0x20fe2e(0xd4)]&&_0x30690e[_0x20fe2e(0x6f)]>0x1){let _0x5e0fcf=_0x30690e[_0x30690e['length']-0x1],_0x367cf0=_0x30690e[0x0],_0x7c212c=_0x5e0fcf[_0x20fe2e(0xbe)]??_0x5e0fcf,_0x3f1bec=_0x367cf0['in']??_0x367cf0;_0x4135b6[_0x20fe2e(0x73)]('C\x20'+_0x40c378(_0x227f48(_0x7c212c,_0x14bbdf))+'\x20'+_0x40c378(_0x227f48(_0x3f1bec,_0x14bbdf))+'\x20'+_0x40c378(_0x227f48(_0x367cf0,_0x14bbdf))),_0x4135b6[_0x20fe2e(0x73)]('Z');}return _0x4135b6[_0x20fe2e(0x8d)]('\x20');}function _0x3bb2cb(_0x64fa7d,_0x15710f){const _0x2488df=_0x48bb08;let _0x3bac7f=_0x64fa7d['points'][_0x2488df(0x88)](_0x574c04=>_0x227f48(_0x574c04,_0x15710f));if(_0x3bac7f[_0x2488df(0x6f)]===0x0)return'';if(_0x3bac7f[_0x2488df(0x6f)]===0x1)return'M\x20'+_0x40c378(_0x3bac7f[0x0]);let _0x3525eb=['M\x20'+_0x40c378(_0x3bac7f[0x0])];for(let _0x6682fd=0x0;_0x6682fd<_0x3bac7f['length']-0x1;_0x6682fd++){let _0x8d9cda=_0x3bac7f[_0x6682fd],_0x3e22e0=_0x3bac7f[_0x6682fd+0x1],_0x572d42=_0x3bac7f[_0x6682fd-0x1]??_0x8d9cda,_0x15a5fb=_0x3bac7f[_0x6682fd+0x2]??_0x3e22e0,_0x56f317={'x':_0x8d9cda['x']+(_0x3e22e0['x']-_0x572d42['x'])/0x6,'y':_0x8d9cda['y']+(_0x3e22e0['y']-_0x572d42['y'])/0x6},_0x52fb11={'x':_0x3e22e0['x']-(_0x15a5fb['x']-_0x8d9cda['x'])/0x6,'y':_0x3e22e0['y']-(_0x15a5fb['y']-_0x8d9cda['y'])/0x6};_0x3525eb[_0x2488df(0x73)]('C\x20'+_0x40c378(_0x56f317)+'\x20'+_0x40c378(_0x52fb11)+'\x20'+_0x40c378(_0x3e22e0));}return _0x3525eb[_0x2488df(0x8d)]('\x20');}function _0x3239c1(_0x1949b9,_0x35cb88){const _0x555021=_0x48bb08;return _0x1949b9[_0x555021(0x9c)]===_0x555021(0xae)?_0x71c63f(_0x1949b9,_0x35cb88):_0x3bb2cb(_0x1949b9,_0x35cb88);}function _0x489ee9(_0x4dcd38,_0x43d724){const _0x2d1569=_0x48bb08;return _0x43d724!=null&&_0x43d724['color']?_0x43d724[_0x2d1569(0xdc)]:_0x4dcd38[_0x2d1569(0x9c)]===_0x2d1569(0xae)?'#f54a45':_0x4dcd38[_0x2d1569(0xdc)];}function _0x191559(_0x40940e,_0x6cd39){const _0x208dd9=_0x48bb08;return(_0x6cd39==null?void 0x0:_0x6cd39[_0x208dd9(0x6e)])===void 0x0?_0x40940e[_0x208dd9(0x9c)]===_0x208dd9(0xae)?0x2:_0x40940e[_0x208dd9(0x6e)]:_0x6cd39[_0x208dd9(0x6e)];}function _0x182a92(_0x5d391b,_0x21af26){const _0x54f30b=_0x48bb08;return(_0x21af26==null?void 0x0:_0x21af26[_0x54f30b(0xd2)])===void 0x0?_0x5d391b['kind']==='pen'?void 0x0:_0x5d391b[_0x54f30b(0xd2)]:_0x21af26[_0x54f30b(0xd2)];}function _0x1a3307(_0x45c6e0,_0x457f44){const _0x2ec512=_0x48bb08;let _0xf9d92a=_0x13e994(_0x45c6e0),_0x44e437=_0x3239c1(_0x45c6e0,{'x':_0xf9d92a['left'],'y':_0xf9d92a[_0x2ec512(0x9e)]}),_0x8655d9=_0x45c6e0[_0x2ec512(0x9c)]===_0x2ec512(0xae)&&_0x45c6e0[_0x2ec512(0xd4)],_0x29e155=_0x457f44==null?void 0x0:_0x457f44[_0x2ec512(0xc1)];return{'shapeType':_0x417208[_0x2ec512(0xea)][_0x2ec512(0xce)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0xf9d92a['width'],'h':_0xf9d92a[_0x2ec512(0x91)],'fill':_0x8655d9?_0x2ec512(0xb8):_0x2ec512(0xe1),'stroke':!0x0,'data':_0x44e437,'dataArray':_0x47b346(_0x45c6e0,{'x':_0xf9d92a[_0x2ec512(0xa6)],'y':_0xf9d92a['top']})}]},'fill':_0x8655d9&&_0x29e155?{'color':_0x29e155,'fillType':_0x417208[_0x2ec512(0x85)][_0x2ec512(0x8b)]}:{'fillType':_0x417208['ShapeFillEnum'][_0x2ec512(0xd0)]},'stroke':{'color':_0x489ee9(_0x45c6e0,_0x457f44),'width':_0x191559(_0x45c6e0,_0x457f44),'opacity':_0x182a92(_0x45c6e0,_0x457f44),'lineStrokeType':_0x417208[_0x2ec512(0xe4)][_0x2ec512(0xbf)],'capType':_0x417208[_0x2ec512(0xda)][_0x2ec512(0x83)],'lineJoinType':_0x417208[_0x2ec512(0xad)][_0x2ec512(0x83)]}};}function _0x2af21c(_0x3948a4,_0x5880a7){return{'x':_0x3948a4['x']-_0x5880a7['x'],'y':_0x3948a4['y']-_0x5880a7['y']};}function _0x47b346(_0x2cae93,_0x5047c2){const _0x511d1c=_0x48bb08;if(_0x2cae93[_0x511d1c(0x9c)]===_0x511d1c(0xae)){let _0x2b6f69=_0x2cae93[_0x511d1c(0xc5)];if(_0x2b6f69[_0x511d1c(0x6f)]===0x0)return[];let _0x4cdd5c=_0x2af21c(_0x2b6f69[0x0],_0x5047c2),_0x2ef91e=[{'command':'M','points':[_0x4cdd5c['x'],_0x4cdd5c['y']]}];for(let _0x1eae5d=0x1;_0x1eae5d<_0x2b6f69[_0x511d1c(0x6f)];_0x1eae5d++){let _0x53312f=_0x2b6f69[_0x1eae5d-0x1],_0x212a23=_0x2b6f69[_0x1eae5d],_0x5c2c6c=_0x2af21c(_0x53312f['out']??_0x53312f,_0x5047c2),_0x5c5039=_0x2af21c(_0x212a23['in']??_0x212a23,_0x5047c2),_0x2e7cfb=_0x2af21c(_0x212a23,_0x5047c2);_0x2ef91e[_0x511d1c(0x73)]({'command':'C','points':[_0x5c2c6c['x'],_0x5c2c6c['y'],_0x5c5039['x'],_0x5c5039['y'],_0x2e7cfb['x'],_0x2e7cfb['y']]});}if(_0x2cae93[_0x511d1c(0xd4)]&&_0x2b6f69['length']>0x1){let _0x251c92=_0x2b6f69[_0x2b6f69[_0x511d1c(0x6f)]-0x1],_0x2ea7c9=_0x2b6f69[0x0],_0x42f056=_0x2af21c(_0x251c92[_0x511d1c(0xbe)]??_0x251c92,_0x5047c2),_0x1e73d1=_0x2af21c(_0x2ea7c9['in']??_0x2ea7c9,_0x5047c2),_0xb6e952=_0x2af21c(_0x2ea7c9,_0x5047c2);_0x2ef91e[_0x511d1c(0x73)]({'command':'C','points':[_0x42f056['x'],_0x42f056['y'],_0x1e73d1['x'],_0x1e73d1['y'],_0xb6e952['x'],_0xb6e952['y']]}),_0x2ef91e[_0x511d1c(0x73)]({'command':'z','points':[]});}return _0x2ef91e;}let _0xc722bf=_0x2cae93['points'][_0x511d1c(0x88)](_0x230b6f=>_0x2af21c(_0x230b6f,_0x5047c2));if(_0xc722bf[_0x511d1c(0x6f)]===0x0)return[];let _0x3632b2=[{'command':'M','points':[_0xc722bf[0x0]['x'],_0xc722bf[0x0]['y']]}];for(let _0x257d68=0x0;_0x257d68<_0xc722bf[_0x511d1c(0x6f)]-0x1;_0x257d68++){let _0x1db89e=_0xc722bf[_0x257d68],_0x423c3a=_0xc722bf[_0x257d68+0x1],_0x3b11ec=_0xc722bf[_0x257d68-0x1]??_0x1db89e,_0x421f6c=_0xc722bf[_0x257d68+0x2]??_0x423c3a,_0x4830bf={'x':_0x1db89e['x']+(_0x423c3a['x']-_0x3b11ec['x'])/0x6,'y':_0x1db89e['y']+(_0x423c3a['y']-_0x3b11ec['y'])/0x6},_0x15a675={'x':_0x423c3a['x']-(_0x421f6c['x']-_0x1db89e['x'])/0x6,'y':_0x423c3a['y']-(_0x421f6c['y']-_0x1db89e['y'])/0x6};_0x3632b2[_0x511d1c(0x73)]({'command':'C','points':[_0x4830bf['x'],_0x4830bf['y'],_0x15a675['x'],_0x15a675['y'],_0x423c3a['x'],_0x423c3a['y']]});}return _0x3632b2;}function _0x15404f(_0x112101){const _0x84f834=_0x48bb08;let {model:_0x35813d,sourceModel:_0x37b52d=_0x35813d,style:_0x43d77f}=_0x112101,_0x59dd2f=_0x112101[_0x84f834(0xc7)]??_0x35813d[_0x84f834(0x9c)],_0x271858=_0x13e994(_0x35813d),_0x3266f4=_0x35813d[_0x84f834(0x9c)]==='pen'&&_0x59dd2f!==_0x84f834(0xae)?_0x35813d:void 0x0;return{'transform':{..._0x271858,'rotation':0x0},'shapeData':_0x1a3307(_0x35813d,_0x43d77f),'ink':{'version':0x1,'tool':_0x59dd2f,'sourceModel':_0x37b52d,..._0x3266f4?{'editModel':_0x3266f4}:{},'normalizedBounds':_0x271858}};}var _0x119e4b=_0x48bb08(0x7a),_0x5ba77d=_0x48bb08(0xa0);function _0x285127(_0x1ae50c){'@babel/helpers - typeof';const _0x40c24c=_0x48bb08;return _0x285127=typeof Symbol=='function'&&typeof Symbol[_0x40c24c(0xb7)]==_0x40c24c(0xa4)?function(_0x2ebbef){return typeof _0x2ebbef;}:function(_0x298142){const _0x4ab3cb=_0x40c24c;return _0x298142&&typeof Symbol=='function'&&_0x298142[_0x4ab3cb(0x98)]===Symbol&&_0x298142!==Symbol[_0x4ab3cb(0xd9)]?_0x4ab3cb(0xa4):typeof _0x298142;},_0x285127(_0x1ae50c);}function _0x3e50b0(_0x121636,_0x2d9a6b){const _0x15bdec=_0x48bb08;if(_0x285127(_0x121636)!=_0x15bdec(0x7d)||!_0x121636)return _0x121636;var _0x5147c6=_0x121636[Symbol[_0x15bdec(0x90)]];if(_0x5147c6!==void 0x0){var _0x6bb9ef=_0x5147c6[_0x15bdec(0xdf)](_0x121636,_0x2d9a6b||_0x15bdec(0xcf));if(_0x285127(_0x6bb9ef)!=_0x15bdec(0x7d))return _0x6bb9ef;throw TypeError(_0x15bdec(0xd5));}return(_0x2d9a6b===_0x15bdec(0xf1)?String:Number)(_0x121636);}function _0x477abd(_0x4cac90){const _0x1336f3=_0x48bb08;var _0x5283e8=_0x3e50b0(_0x4cac90,_0x1336f3(0xf1));return _0x285127(_0x5283e8)==_0x1336f3(0xa4)?_0x5283e8:_0x5283e8+'';}function _0x406d1a(_0x2f3d21,_0x39544e,_0x3fb0f4){const _0x32e7e2=_0x48bb08;return(_0x39544e=_0x477abd(_0x39544e))in _0x2f3d21?Object[_0x32e7e2(0x92)](_0x2f3d21,_0x39544e,{'value':_0x3fb0f4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2f3d21[_0x39544e]=_0x3fb0f4,_0x2f3d21;}let _0x486df5=(0x0,_0x53c816[_0x48bb08(0xaf)])(_0x48bb08(0x72));var _0x5e9aab=class{constructor(){const _0x2ab9b3=_0x48bb08;_0x406d1a(this,_0x2ab9b3(0x6d),[]);}[_0x48bb08(0x89)](_0x4170b6){const _0x28ce1c=_0x48bb08;return this[_0x28ce1c(0x6d)][_0x28ce1c(0x73)](_0x4170b6),(0x0,_0x53c816['toDisposable'])(()=>{const _0x298555=_0x28ce1c;let _0x57fa8a=this[_0x298555(0x6d)]['indexOf'](_0x4170b6);_0x57fa8a>=0x0&&this[_0x298555(0x6d)][_0x298555(0x78)](_0x57fa8a,0x1);});}[_0x48bb08(0xb6)](_0x1dabfe){const _0x5e4a10=_0x48bb08;for(let _0x5de1fa of this['_adapters'])if(_0x5de1fa[_0x5e4a10(0xb6)](_0x1dabfe))return!0x0;return!0x1;}async[_0x48bb08(0xc8)](_0xa1c1fe){const _0x5b8312=_0x48bb08;for(let _0x154cc4 of this[_0x5b8312(0x6d)])if(_0x154cc4[_0x5b8312(0xc8)]&&await _0x154cc4[_0x5b8312(0xc8)](_0xa1c1fe))return!0x0;return!0x1;}};let _0x99b60c={'id':'ink.operation.start','type':_0x53c816[_0x48bb08(0xaa)][_0x48bb08(0xba)],'handler':(_0x5ba643,_0x55d9b5)=>_0x55d9b5?_0x5ba643[_0x48bb08(0xc9)](_0x486df5)[_0x48bb08(0xb6)](_0x55d9b5):!0x1},_0xd81042={};function _0x403c44(_0xf2d4e0,_0x40eee7){return function(_0x4bf607,_0x89ac6f){_0x40eee7(_0x4bf607,_0x89ac6f,_0xf2d4e0);};}function _0x29d206(_0x45ceba,_0xcdb78,_0xc120a9,_0x3a2070){const _0x2f5473=_0x48bb08;var _0x46bbc=arguments[_0x2f5473(0x6f)],_0x1e611a=_0x46bbc<0x3?_0xcdb78:_0x3a2070===null?_0x3a2070=Object['getOwnPropertyDescriptor'](_0xcdb78,_0xc120a9):_0x3a2070,_0x2353bc;if(typeof Reflect==_0x2f5473(0x7d)&&typeof Reflect[_0x2f5473(0x7f)]=='function')_0x1e611a=Reflect[_0x2f5473(0x7f)](_0x45ceba,_0xcdb78,_0xc120a9,_0x3a2070);else{for(var _0x1a0d17=_0x45ceba['length']-0x1;_0x1a0d17>=0x0;_0x1a0d17--)(_0x2353bc=_0x45ceba[_0x1a0d17])&&(_0x1e611a=(_0x46bbc<0x3?_0x2353bc(_0x1e611a):_0x46bbc>0x3?_0x2353bc(_0xcdb78,_0xc120a9,_0x1e611a):_0x2353bc(_0xcdb78,_0xc120a9))||_0x1e611a);}return _0x46bbc>0x3&&_0x1e611a&&Object[_0x2f5473(0x92)](_0xcdb78,_0xc120a9,_0x1e611a),_0x1e611a;}let _0x4e7ae5=class extends _0x53c816[_0x48bb08(0xd3)]{constructor(_0x43bb50=_0xd81042,_0x1c72dd,_0x105b0a,_0x1ab1ac){const _0x2b1559=_0x48bb08;super(),this[_0x2b1559(0xcb)]=_0x43bb50,this[_0x2b1559(0xf2)]=_0x1c72dd,this[_0x2b1559(0xa1)]=_0x105b0a,this[_0x2b1559(0xbd)]=_0x1ab1ac;let {..._0x244502}=(0x0,_0x53c816[_0x2b1559(0xde)])({},_0xd81042,this[_0x2b1559(0xcb)]);this['_configService'][_0x2b1559(0x94)](_0x2b1559(0xb2),_0x244502);}[_0x48bb08(0xa2)](){const _0x15f66d=_0x48bb08;[[_0x486df5,{'useClass':_0x5e9aab}]][_0x15f66d(0xd6)](_0x192796=>this[_0x15f66d(0xf2)][_0x15f66d(0xee)](_0x192796)),this[_0x15f66d(0xac)](this['_commandService'][_0x15f66d(0x8a)](_0x99b60c));}};_0x406d1a(_0x4e7ae5,_0x48bb08(0x97),'UNIVER_INK_PLUGIN'),_0x406d1a(_0x4e7ae5,_0x48bb08(0x74),_0x119e4b),_0x406d1a(_0x4e7ae5,'version',_0x5ba77d),_0x406d1a(_0x4e7ae5,_0x48bb08(0xf0),_0x53c816[_0x48bb08(0xdb)]['UNIVER_UNKNOWN']),_0x4e7ae5=_0x29d206([(0x0,_0x53c816[_0x48bb08(0x8c)])(_0x58412f[_0x48bb08(0xbb)]),_0x403c44(0x1,(0x0,_0x53c816[_0x48bb08(0x7e)])(_0x53c816[_0x48bb08(0xa5)])),_0x403c44(0x2,_0x53c816[_0x48bb08(0xe2)]),_0x403c44(0x3,_0x53c816[_0x48bb08(0xeb)])],_0x4e7ae5),_0x28cc4d['IInkHostAdapterService']=_0x486df5,Object[_0x48bb08(0x92)](_0x28cc4d,_0x48bb08(0xa3),{'enumerable':!0x0,'get':function(){return _0x4e7ae5;}}),_0x28cc4d[_0x48bb08(0xa9)]=_0x15404f,_0x28cc4d[_0x48bb08(0xc0)]=_0x38847e,_0x28cc4d[_0x48bb08(0x8e)]=_0x4aa47e,_0x28cc4d[_0x48bb08(0x9d)]=_0x1b2c86,_0x28cc4d[_0x48bb08(0xb5)]=_0x108724,_0x28cc4d[_0x48bb08(0x79)]=_0x510d6a,_0x28cc4d[_0x48bb08(0xe9)]=_0x13e994,_0x28cc4d[_0x48bb08(0x77)]=_0x2cddeb,_0x28cc4d[_0x48bb08(0x75)]=_0x3aa36b,_0x28cc4d['isInkPenHandleVisible']=_0x408a3e,_0x28cc4d[_0x48bb08(0x9f)]=_0xf67bc2,_0x28cc4d[_0x48bb08(0xe6)]=_0x47ef32;}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/ink",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
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.3.1",
|
|
62
|
+
"@univerjs-pro/engine-shape": "1.3.1",
|
|
63
|
+
"@univerjs-pro/license": "1.3.1",
|
|
64
|
+
"@univerjs/core": "1.3.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@univerjs-infra/shared": "1.
|
|
67
|
+
"@univerjs-infra/shared": "1.3.1",
|
|
68
68
|
"typescript": "^6.0.3",
|
|
69
69
|
"vitest": "^5.0.4"
|
|
70
70
|
},
|