@univerjs-pro/ink 1.5.0 → 1.5.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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x885210=_0x158f;(function(_0x5c3bb1,_0x41580f){const _0x155d1c=_0x158f,_0x1781ff=_0x5c3bb1();while(!![]){try{const _0x533eb1=-parseInt(_0x155d1c(0xf8))/0x1+-parseInt(_0x155d1c(0xfd))/0x2*(-parseInt(_0x155d1c(0xf0))/0x3)+-parseInt(_0x155d1c(0xf7))/0x4+-parseInt(_0x155d1c(0xec))/0x5+parseInt(_0x155d1c(0x109))/0x6*(-parseInt(_0x155d1c(0x14d))/0x7)+parseInt(_0x155d1c(0x111))/0x8+parseInt(_0x155d1c(0x10e))/0x9*(parseInt(_0x155d1c(0x142))/0xa);if(_0x533eb1===_0x41580f)break;else _0x1781ff['push'](_0x1781ff['shift']());}catch(_0x13b51c){_0x1781ff['push'](_0x1781ff['shift']());}}}(_0x6e16,0xec4fd),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x885210(0x143)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0xb94399){return{'x':_0xb94399['x'],'y':_0xb94399['y']};}function a(_0x55b029){const _0x4902fb=_0x885210;return{..._0x55b029,'in':_0x55b029['in']?i(_0x55b029['in']):void 0x0,'out':_0x55b029[_0x4902fb(0x12e)]?i(_0x55b029[_0x4902fb(0x12e)]):void 0x0};}function o(_0x5b653e){const _0xd48e2a=_0x885210;return{'kind':_0xd48e2a(0x104),'closed':_0x5b653e['closed'],'anchors':_0x5b653e[_0xd48e2a(0x100)]['map'](a)};}function s(_0x1ff292,_0x2a3e5f,_0x42409a){return{'x':_0x1ff292['x']+(_0x2a3e5f['x']-_0x1ff292['x'])*_0x42409a,'y':_0x1ff292['y']+(_0x2a3e5f['y']-_0x1ff292['y'])*_0x42409a};}function c(_0x264544,_0x41ef8c){const _0x5621e4=_0x885210;return Math[_0x5621e4(0xff)](_0x264544['x']-_0x41ef8c['x'],_0x264544['y']-_0x41ef8c['y']);}function l(_0x2f2091){const _0x1ea58e=_0x885210;let _0x2bfba2=Math[_0x1ea58e(0xff)](_0x2f2091['x'],_0x2f2091['y']);return _0x2bfba2<r?{'x':0x1,'y':0x0}:{'x':_0x2f2091['x']/_0x2bfba2,'y':_0x2f2091['y']/_0x2bfba2};}function u(_0x4bffc4,_0x20cf76,_0x316426=c(_0x4bffc4,_0x20cf76)){let _0x2af763=l({'x':_0x4bffc4['x']-_0x20cf76['x'],'y':_0x4bffc4['y']-_0x20cf76['y']});return{'x':_0x4bffc4['x']+_0x2af763['x']*_0x316426,'y':_0x4bffc4['y']+_0x2af763['y']*_0x316426};}function d(_0x2bb442,_0x2c6294){const _0x3367d1=_0x885210;let {anchors:_0x20bbc8}=_0x2bb442;return _0x20bbc8[_0x3367d1(0x135)]<0x2||_0x2c6294<0x0?null:_0x2c6294<_0x20bbc8['length']-0x1?{'startIndex':_0x2c6294,'endIndex':_0x2c6294+0x1,'start':_0x20bbc8[_0x2c6294],'end':_0x20bbc8[_0x2c6294+0x1]}:_0x2bb442[_0x3367d1(0x12a)]&&_0x2c6294===_0x20bbc8[_0x3367d1(0x135)]-0x1?{'startIndex':_0x20bbc8[_0x3367d1(0x135)]-0x1,'endIndex':0x0,'start':_0x20bbc8[_0x20bbc8[_0x3367d1(0x135)]-0x1],'end':_0x20bbc8[0x0]}:null;}function f(_0x21fbdf,_0x4cd856){const _0x1ecff9=_0x885210;let _0x185736=d(_0x21fbdf,_0x4cd856);return _0x185736?[_0x185736[_0x1ecff9(0x11b)],_0x185736[_0x1ecff9(0x11b)][_0x1ecff9(0x12e)]??_0x185736[_0x1ecff9(0x11b)],_0x185736['end']['in']??_0x185736['end'],_0x185736[_0x1ecff9(0x152)]]:null;}function ee(_0x141eb4,_0x26082d){return _0x26082d==='anchor'?_0x141eb4:_0x141eb4[_0x26082d]??null;}function p(_0x4ea98a,_0x4dba3e,_0x34ab14){const _0x29a08f=_0x885210;return _0x34ab14==='anchor'||_0x4ea98a[_0x29a08f(0x12a)]?!0x0:_0x34ab14==='in'?_0x4dba3e>0x0:_0x4dba3e<_0x4ea98a['anchors']['length']-0x1;}function m(_0x373ba3,_0x4de7cf){let [_0x170ce0,_0x50c670,_0x31194c,_0x54add7]=_0x373ba3,_0x24b27b=s(_0x170ce0,_0x50c670,_0x4de7cf),_0x2f0e01=s(_0x50c670,_0x31194c,_0x4de7cf),_0x4c8886=s(_0x31194c,_0x54add7,_0x4de7cf);return s(s(_0x24b27b,_0x2f0e01,_0x4de7cf),s(_0x2f0e01,_0x4c8886,_0x4de7cf),_0x4de7cf);}function h(_0x1af147,_0x29e9c4){let [_0x369f9c,_0x5a7842,_0xb33818,_0x4b1240]=_0x1af147,_0x120bc9=s(_0x369f9c,_0x5a7842,_0x29e9c4),_0x28276f=s(_0x5a7842,_0xb33818,_0x29e9c4),_0x3a0342=s(_0xb33818,_0x4b1240,_0x29e9c4),_0xfb3019=s(_0x120bc9,_0x28276f,_0x29e9c4),_0x52006d=s(_0x28276f,_0x3a0342,_0x29e9c4),_0x59dbf2=s(_0xfb3019,_0x52006d,_0x29e9c4);return{'left':[_0x369f9c,_0x120bc9,_0xfb3019,_0x59dbf2],'right':[_0x59dbf2,_0x52006d,_0x3a0342,_0x4b1240]};}function g(_0x26dd9a,_0x328635,_0x5a4680){let _0x5e6bfa=_0x5a4680['x']-_0x328635['x'],_0x57a631=_0x5a4680['y']-_0x328635['y'],_0x4814c0=_0x5e6bfa*_0x5e6bfa+_0x57a631*_0x57a631,_0x2cb28a=_0x4814c0<=r?0x0:Math['max'](0x0,Math['min'](0x1,((_0x26dd9a['x']-_0x328635['x'])*_0x5e6bfa+(_0x26dd9a['y']-_0x328635['y'])*_0x57a631)/_0x4814c0)),_0x2cd8c6={'x':_0x328635['x']+_0x5e6bfa*_0x2cb28a,'y':_0x328635['y']+_0x57a631*_0x2cb28a};return{'point':_0x2cd8c6,'ratio':_0x2cb28a,'distance':c(_0x26dd9a,_0x2cd8c6)};}function te(_0x2cae2a,_0x1be8cd,_0x4bbe75){const _0x5090cd=_0x885210;return g(_0x2cae2a,_0x1be8cd,_0x4bbe75)[_0x5090cd(0x132)]**0x2;}function _(_0x5c8ca5,_0x5f265c){const _0x5ea852=_0x885210;if(_0x5c8ca5[_0x5ea852(0x135)]<=0x2)return _0x5c8ca5[_0x5ea852(0x110)](i);let _0xa5ec6=0x0,_0x4a95bb=0x0,_0x3df6d2=_0x5c8ca5[0x0],_0x2ce14a=_0x5c8ca5[_0x5c8ca5[_0x5ea852(0x135)]-0x1],_0x16bf6d=_0x5f265c*_0x5f265c;for(let _0x3abbc3=0x1;_0x3abbc3<_0x5c8ca5[_0x5ea852(0x135)]-0x1;_0x3abbc3++){let _0xef21bf=te(_0x5c8ca5[_0x3abbc3],_0x3df6d2,_0x2ce14a);_0xef21bf>_0xa5ec6&&(_0xa5ec6=_0xef21bf,_0x4a95bb=_0x3abbc3);}if(_0xa5ec6<=_0x16bf6d)return[i(_0x3df6d2),i(_0x2ce14a)];let _0x4657f6=_(_0x5c8ca5[_0x5ea852(0x13c)](0x0,_0x4a95bb+0x1),_0x5f265c),_0x2da684=_(_0x5c8ca5[_0x5ea852(0x13c)](_0x4a95bb),_0x5f265c);return[..._0x4657f6[_0x5ea852(0x13c)](0x0,-0x1),..._0x2da684];}function ne(_0x553872,_0x46967a){let _0x4db2e6=_0x553872[_0x46967a],_0x4aa36f=_0x553872[_0x46967a+0x1],_0x238d3f=_0x553872[_0x46967a-0x1]??_0x4db2e6;return{'x':_0x4db2e6['x']+(_0x4aa36f['x']-_0x238d3f['x'])/0x6,'y':_0x4db2e6['y']+(_0x4aa36f['y']-_0x238d3f['y'])/0x6};}function v(_0x4b906e,_0x4b23ac){let _0x131e4=_0x4b906e[_0x4b23ac],_0x102a27=_0x4b906e[_0x4b23ac-0x1],_0x55f907=_0x4b906e[_0x4b23ac+0x1]??_0x131e4;return{'x':_0x131e4['x']-(_0x55f907['x']-_0x102a27['x'])/0x6,'y':_0x131e4['y']-(_0x55f907['y']-_0x102a27['y'])/0x6};}function y(_0x4cdb3a,_0x4d32a9){const _0x3ab49e=_0x885210;let _0xc2d547=_0x4cdb3a[_0x3ab49e(0x100)][_0x4d32a9],_0x15bc6a=_0x4cdb3a[_0x3ab49e(0x100)][_0x4d32a9-0x1]??(_0x4cdb3a[_0x3ab49e(0x12a)]?_0x4cdb3a[_0x3ab49e(0x100)][_0x4cdb3a[_0x3ab49e(0x100)]['length']-0x1]:null),_0x154e6a=_0x4cdb3a['anchors'][_0x4d32a9+0x1]??(_0x4cdb3a[_0x3ab49e(0x12a)]?_0x4cdb3a[_0x3ab49e(0x100)][0x0]:null),_0xbaa709=_0x15bc6a&&_0x154e6a?l({'x':_0x154e6a['x']-_0x15bc6a['x'],'y':_0x154e6a['y']-_0x15bc6a['y']}):_0x154e6a?l({'x':_0x154e6a['x']-_0xc2d547['x'],'y':_0x154e6a['y']-_0xc2d547['y']}):_0x15bc6a?l({'x':_0xc2d547['x']-_0x15bc6a['x'],'y':_0xc2d547['y']-_0x15bc6a['y']}):{'x':0x1,'y':0x0},_0x18a67c=_0x15bc6a&&_0x154e6a?Math['max'](0x32,c(_0x15bc6a,_0x154e6a)/0x4):0x32;return{'in':{'x':_0xc2d547['x']-_0xbaa709['x']*_0x18a67c,'y':_0xc2d547['y']-_0xbaa709['y']*_0x18a67c},'out':{'x':_0xc2d547['x']+_0xbaa709['x']*_0x18a67c,'y':_0xc2d547['y']+_0xbaa709['y']*_0x18a67c}};}function b(_0x4a6f55,_0x326679){const _0x5e1144=_0x885210;let _0x28ae7a=_0x4a6f55[_0x326679],_0x113a80=_0x326679==='in'?_0x5e1144(0x12e):'in',_0x164dd2=_0x4a6f55[_0x113a80];_0x28ae7a&&(_0x4a6f55[_0x5e1144(0x117)]==='symmetric'?_0x4a6f55[_0x113a80]=u(_0x4a6f55,_0x28ae7a):_0x4a6f55[_0x5e1144(0x117)]===_0x5e1144(0x114)&&(_0x4a6f55[_0x113a80]=u(_0x4a6f55,_0x28ae7a,_0x164dd2?c(_0x4a6f55,_0x164dd2):c(_0x4a6f55,_0x28ae7a))));}function x(_0xcc664f,_0x5bb080){const _0x178771=_0x885210;let _0x53ff7f=o(_0xcc664f);return!_0x5bb080||_0x53ff7f[_0x178771(0x12a)]||_0x53ff7f[_0x178771(0x100)]['length']===0x0||_0x53ff7f[_0x178771(0x100)][_0x178771(0x146)]({'id':_0x178771(0x11a),'x':_0x5bb080['x'],'y':_0x5bb080['y'],'pointType':_0x178771(0x136)}),_0x53ff7f;}function re(_0x147364,_0x2dbe27={}){const _0x57bfa2=_0x885210;let _0x2e23aa=Math[_0x57bfa2(0x138)](0x0,_0x2dbe27['tolerance']??Math[_0x57bfa2(0x138)](0x4,_0x147364['width']*0.35)),_0x453514=_0x2dbe27[_0x57bfa2(0x12b)]??(_0x34cc9f=>_0x57bfa2(0x121)+_0x34cc9f),_0x3efcc7=_(_0x147364[_0x57bfa2(0xe3)],_0x2e23aa),_0xa43405=_0x3efcc7[_0x57bfa2(0x110)]((_0x4181f7,_0x4202ad)=>({'id':_0x453514(_0x4202ad),'x':_0x4181f7['x'],'y':_0x4181f7['y'],'pointType':'free'}));for(let _0x36f68c=0x0;_0x36f68c<_0xa43405[_0x57bfa2(0x135)]-0x1;_0x36f68c++)_0xa43405[_0x36f68c][_0x57bfa2(0x12e)]=ne(_0x3efcc7,_0x36f68c),_0xa43405[_0x36f68c+0x1]['in']=v(_0x3efcc7,_0x36f68c+0x1);return{'kind':_0x57bfa2(0x104),'closed':!0x1,'anchors':_0xa43405};}function ie(_0x23a097,_0x54bc89,_0x48cad5){const _0x263630=_0x885210;let _0x2ef4ba=null,_0x10d93b=[_0x263630(0x149),'in',_0x263630(0x12e)];return _0x23a097[_0x263630(0x100)]['forEach']((_0x271ef9,_0x38bb21)=>{_0x10d93b['forEach'](_0x3fcda8=>{const _0x318726=_0x158f;if(!p(_0x23a097,_0x38bb21,_0x3fcda8))return;let _0x3dd006=ee(_0x271ef9,_0x3fcda8);if(!_0x3dd006)return;let _0x2f91f4=c(_0x54bc89,_0x3dd006);_0x2f91f4>_0x48cad5||_0x2ef4ba&&_0x2f91f4>=_0x2ef4ba[_0x318726(0x132)]||(_0x2ef4ba={'handle':{'kind':_0x3fcda8,'anchorId':_0x271ef9['id']},'point':i(_0x3dd006),'distance':_0x2f91f4});});}),_0x2ef4ba;}function S(_0x43df54,_0x9a0855,_0x3794d5){const _0x483c82=_0x885210;let _0x5394ac=null,_0xf68bbb=_0x43df54[_0x483c82(0x12a)]?_0x43df54['anchors'][_0x483c82(0x135)]:Math[_0x483c82(0x138)](0x0,_0x43df54['anchors']['length']-0x1);for(let _0x42de3c=0x0;_0x42de3c<_0xf68bbb;_0x42de3c++){let _0x472cc0=f(_0x43df54,_0x42de3c);if(!_0x472cc0)continue;let _0x72c9b5=m(_0x472cc0,0x0);for(let _0x29b0bb=0x1;_0x29b0bb<=0x20;_0x29b0bb++){let _0x5bfefb=m(_0x472cc0,_0x29b0bb/0x20),_0x21f9d0=g(_0x9a0855,_0x72c9b5,_0x5bfefb),_0x479eb2=(_0x29b0bb-0x1+_0x21f9d0[_0x483c82(0x14f)])/0x20;(!_0x5394ac||_0x21f9d0[_0x483c82(0x132)]<_0x5394ac[_0x483c82(0x132)])&&(_0x5394ac={'segmentIndex':_0x42de3c,'t':_0x479eb2,'point':_0x21f9d0['point'],'distance':_0x21f9d0[_0x483c82(0x132)]}),_0x72c9b5=_0x5bfefb;}}return _0x5394ac&&_0x5394ac[_0x483c82(0x132)]<=_0x3794d5?_0x5394ac:null;}function C(_0x4e3f86,_0x26234d,_0x16f0cd){const _0x33a22b=_0x885210;let _0x4c2498=o(_0x4e3f86),_0x3f5993=d(_0x4c2498,_0x26234d[_0x33a22b(0x11e)]),_0x385163=f(_0x4c2498,_0x26234d[_0x33a22b(0x11e)]);if(!_0x3f5993||!_0x385163)return _0x4c2498;let _0x235547=h(_0x385163,Math[_0x33a22b(0x138)](0x0,Math[_0x33a22b(0x118)](0x1,_0x26234d['t']))),_0x28709b={'id':_0x16f0cd(),'x':_0x235547[_0x33a22b(0xf1)][0x3]['x'],'y':_0x235547[_0x33a22b(0xf1)][0x3]['y'],'in':i(_0x235547[_0x33a22b(0xf1)][0x2]),'out':i(_0x235547[_0x33a22b(0xeb)][0x1]),'pointType':_0x33a22b(0x108)};return _0x4c2498[_0x33a22b(0x100)][_0x3f5993[_0x33a22b(0x126)]][_0x33a22b(0x12e)]=i(_0x235547[_0x33a22b(0xf1)][0x1]),_0x4c2498[_0x33a22b(0x100)][_0x3f5993[_0x33a22b(0xe6)]]['in']=i(_0x235547[_0x33a22b(0xeb)][0x2]),_0x4c2498['anchors'][_0x33a22b(0x147)](_0x3f5993[_0x33a22b(0x126)]+0x1,0x0,_0x28709b),_0x4c2498;}function w(_0x4414a9,_0x483072){const _0x4de33f=_0x885210;let _0x47c418=o(_0x4414a9);return _0x47c418[_0x4de33f(0x100)]=_0x47c418[_0x4de33f(0x100)][_0x4de33f(0x156)](_0xe4f9d0=>_0xe4f9d0['id']!==_0x483072),_0x47c418[_0x4de33f(0x12a)]&&_0x47c418[_0x4de33f(0x100)][_0x4de33f(0x135)]<0x3&&(_0x47c418['closed']=!0x1),_0x47c418;}function T(_0x33bd3e,_0x319698,_0x2c4090){const _0x49d1dd=_0x885210;let _0x496b5b=o(_0x33bd3e),_0x416095=_0x496b5b[_0x49d1dd(0x100)][_0x49d1dd(0x140)](_0x43a7bf=>_0x43a7bf['id']===_0x319698),_0x670adb=_0x496b5b[_0x49d1dd(0x100)][_0x416095];if(!_0x670adb)return _0x496b5b;if(_0x670adb[_0x49d1dd(0x117)]=_0x2c4090,_0x2c4090===_0x49d1dd(0x136))return delete _0x670adb['in'],delete _0x670adb[_0x49d1dd(0x12e)],_0x496b5b;let _0x4a3100=y(_0x496b5b,_0x416095);if(_0x670adb['in']=_0x670adb['in']?i(_0x670adb['in']):_0x4a3100['in'],_0x670adb[_0x49d1dd(0x12e)]=_0x670adb[_0x49d1dd(0x12e)]?i(_0x670adb[_0x49d1dd(0x12e)]):_0x4a3100[_0x49d1dd(0x12e)],_0x2c4090===_0x49d1dd(0xe5)){let _0x1bb93f=Math['max'](c(_0x670adb,_0x670adb['in']),c(_0x670adb,_0x670adb[_0x49d1dd(0x12e)]),0x32),_0x39743d=l({'x':_0x670adb[_0x49d1dd(0x12e)]['x']-_0x670adb['x'],'y':_0x670adb[_0x49d1dd(0x12e)]['y']-_0x670adb['y']});_0x670adb[_0x49d1dd(0x12e)]={'x':_0x670adb['x']+_0x39743d['x']*_0x1bb93f,'y':_0x670adb['y']+_0x39743d['y']*_0x1bb93f},_0x670adb['in']={'x':_0x670adb['x']-_0x39743d['x']*_0x1bb93f,'y':_0x670adb['y']-_0x39743d['y']*_0x1bb93f};}else _0x2c4090===_0x49d1dd(0x114)&&b(_0x670adb,_0x49d1dd(0x12e));return _0x496b5b;}function E(_0x4001a8,_0x4fb7f9){const _0x336da0=_0x885210;let _0x174c91=_0x4001a8[_0x336da0(0x100)]['find'](_0x451af3=>_0x451af3['id']===_0x4fb7f9),_0x47c644=(_0x174c91==null?void 0x0:_0x174c91[_0x336da0(0x117)])??_0x336da0(0x136);return T(_0x4001a8,_0x4fb7f9,_0x47c644===_0x336da0(0x136)?_0x336da0(0x114):_0x47c644===_0x336da0(0x114)?_0x336da0(0xe5):_0x47c644===_0x336da0(0xe5)?_0x336da0(0x108):_0x336da0(0x136));}function ae(_0x510c85,_0x58c550,_0x2f5be7){const _0x676291=_0x885210;let _0x3b58be=o(_0x510c85),_0x15ed03=_0x3b58be[_0x676291(0x100)][_0x676291(0x139)](_0x181bab=>_0x181bab['id']===_0x58c550[_0x676291(0x153)]);if(!_0x15ed03)return _0x3b58be;if(_0x58c550['kind']===_0x676291(0x149)){let _0x4a496a={'x':_0x2f5be7['x']-_0x15ed03['x'],'y':_0x2f5be7['y']-_0x15ed03['y']};return _0x15ed03['x']=_0x2f5be7['x'],_0x15ed03['y']=_0x2f5be7['y'],_0x15ed03['in']&&={'x':_0x15ed03['in']['x']+_0x4a496a['x'],'y':_0x15ed03['in']['y']+_0x4a496a['y']},_0x15ed03[_0x676291(0x12e)]&&={'x':_0x15ed03[_0x676291(0x12e)]['x']+_0x4a496a['x'],'y':_0x15ed03['out']['y']+_0x4a496a['y']},_0x3b58be;}return _0x15ed03[_0x58c550[_0x676291(0x103)]]=i(_0x2f5be7),_0x15ed03['pointType']==='corner'&&(_0x15ed03['pointType']='free'),b(_0x15ed03,_0x58c550[_0x676291(0x103)]),_0x3b58be;}const D=1e-9;function O(_0x41106d){const _0x4fd65f=_0x885210;let _0x3fbbab=Math[_0x4fd65f(0xf6)](_0x41106d*0x2710)/0x2710;return Object['is'](_0x3fbbab,-0x0)?'0':String(_0x3fbbab);}function k(_0x567a96){return O(_0x567a96['x'])+'\x20'+O(_0x567a96['y']);}function A(_0x47a550,_0x278afd){return{'x':_0x47a550['x']-_0x278afd['x'],'y':_0x47a550['y']-_0x278afd['y']};}function j(_0x3c820b,_0x450d97,_0x3da54b,_0x86a76e,_0x16d851){let _0x512dad=0x1-_0x16d851;return{'x':_0x512dad*_0x512dad*_0x512dad*_0x3c820b['x']+0x3*_0x512dad*_0x512dad*_0x16d851*_0x450d97['x']+0x3*_0x512dad*_0x16d851*_0x16d851*_0x3da54b['x']+_0x16d851*_0x16d851*_0x16d851*_0x86a76e['x'],'y':_0x512dad*_0x512dad*_0x512dad*_0x3c820b['y']+0x3*_0x512dad*_0x512dad*_0x16d851*_0x450d97['y']+0x3*_0x512dad*_0x16d851*_0x16d851*_0x3da54b['y']+_0x16d851*_0x16d851*_0x16d851*_0x86a76e['y']};}function M(_0x23cf93,_0x464790,_0x58b836,_0x109ed4){const _0x44d4c8=_0x885210;let _0x3b67fe=-_0x23cf93+0x3*_0x464790-0x3*_0x58b836+_0x109ed4,_0x502882=0x3*_0x23cf93-0x6*_0x464790+0x3*_0x58b836,_0x35c157=-0x3*_0x23cf93+0x3*_0x464790,_0x137023=[];if(Math[_0x44d4c8(0x134)](_0x3b67fe)<D){if(Math['abs'](_0x502882)<D)return _0x137023;let _0x278da3=-_0x35c157/(0x2*_0x502882);return _0x278da3>0x0&&_0x278da3<0x1&&_0x137023['push'](_0x278da3),_0x137023;}let _0x2be764=_0x502882*_0x502882-0x3*_0x3b67fe*_0x35c157;if(_0x2be764<0x0)return _0x137023;let _0x3360ac=Math[_0x44d4c8(0x133)](Math['max'](0x0,_0x2be764)),_0x42c9dd=(-_0x502882+_0x3360ac)/(0x3*_0x3b67fe),_0x3eccbf=(-_0x502882-_0x3360ac)/(0x3*_0x3b67fe);return _0x42c9dd>0x0&&_0x42c9dd<0x1&&_0x137023['push'](_0x42c9dd),_0x3eccbf>0x0&&_0x3eccbf<0x1&&Math[_0x44d4c8(0x134)](_0x3eccbf-_0x42c9dd)>D&&_0x137023[_0x44d4c8(0x146)](_0x3eccbf),_0x137023;}function N(_0x169d93,_0x43bedd,_0x4fbaab,_0x218cb8,_0x3cd6d5){const _0x1aaf91=_0x885210;_0x169d93[_0x1aaf91(0x146)](_0x43bedd,_0x3cd6d5),new Set([...M(_0x43bedd['x'],_0x4fbaab['x'],_0x218cb8['x'],_0x3cd6d5['x']),...M(_0x43bedd['y'],_0x4fbaab['y'],_0x218cb8['y'],_0x3cd6d5['y'])])['forEach'](_0xd68b35=>{const _0x213a4d=_0x1aaf91;_0x169d93[_0x213a4d(0x146)](j(_0x43bedd,_0x4fbaab,_0x218cb8,_0x3cd6d5,_0xd68b35));});}function P(_0xf3e0b2){const _0x1d7d8=_0x885210;let _0xeafeaf=_0xf3e0b2[_0x1d7d8(0x100)];if(_0xeafeaf[_0x1d7d8(0x135)]<=0x1)return _0xeafeaf;let _0x3d9e8f=[];for(let _0x3b1864=0x1;_0x3b1864<_0xeafeaf[_0x1d7d8(0x135)];_0x3b1864++){let _0x536e1f=_0xeafeaf[_0x3b1864-0x1],_0x550e78=_0xeafeaf[_0x3b1864];N(_0x3d9e8f,_0x536e1f,_0x536e1f[_0x1d7d8(0x12e)]??_0x536e1f,_0x550e78['in']??_0x550e78,_0x550e78);}if(_0xf3e0b2[_0x1d7d8(0x12a)]&&_0xeafeaf[_0x1d7d8(0x135)]>0x1){let _0x49a7c4=_0xeafeaf[_0xeafeaf[_0x1d7d8(0x135)]-0x1],_0x50661a=_0xeafeaf[0x0];N(_0x3d9e8f,_0x49a7c4,_0x49a7c4[_0x1d7d8(0x12e)]??_0x49a7c4,_0x50661a['in']??_0x50661a,_0x50661a);}return _0x3d9e8f;}function F(_0x2cfda5){const _0x500f4c=_0x885210;let _0x4c1b76=_0x2cfda5[_0x500f4c(0xe3)];if(_0x4c1b76['length']<=0x1)return _0x4c1b76;let _0x40e945=[];for(let _0x1f9eb9=0x0;_0x1f9eb9<_0x4c1b76[_0x500f4c(0x135)]-0x1;_0x1f9eb9++){let _0x467e5e=_0x4c1b76[_0x1f9eb9],_0x3dd115=_0x4c1b76[_0x1f9eb9+0x1],_0x1845f0=_0x4c1b76[_0x1f9eb9-0x1]??_0x467e5e,_0x1961d8=_0x4c1b76[_0x1f9eb9+0x2]??_0x3dd115;N(_0x40e945,_0x467e5e,{'x':_0x467e5e['x']+(_0x3dd115['x']-_0x1845f0['x'])/0x6,'y':_0x467e5e['y']+(_0x3dd115['y']-_0x1845f0['y'])/0x6},{'x':_0x3dd115['x']-(_0x1961d8['x']-_0x467e5e['x'])/0x6,'y':_0x3dd115['y']-(_0x1961d8['y']-_0x467e5e['y'])/0x6},_0x3dd115);}return _0x40e945;}function I(_0x49a407){const _0x2936d3=_0x885210;return _0x49a407[_0x2936d3(0x103)]===_0x2936d3(0x104)?P(_0x49a407):F(_0x49a407);}function L(_0x108c46){const _0xd9bdcd=_0x885210;let _0x132bdf=Math[_0xd9bdcd(0xf6)](_0x108c46*0x2710)/0x2710;return Object['is'](_0x132bdf,-0x0)?0x0:_0x132bdf;}function _0x6e16(){const _0x452e57=['segmentIndex','setConfig','color','ink-centerline-','object','iterator','Injector','getInkPenPreviewModel','startIndex','onStarting','Inject','string','closed','createId','OPERATION','ShapeFillEnum','out','beginInkMode','UniverLicensePlugin','call','distance','sqrt','abs','length','corner','top','max','find','Plugin','deleteInkPenAnchor','slice','createCustomShape','convertBrushModelToPenModel','tool','findIndex','version','35830ViTmZn','Module','opacity','createIdentifier','push','splice','buildInkCustomShapePayload','anchor','_configService','forEach','SolidFill','1514548HnPerm','ShapeLineTypeEnum','ratio','UNIVER_UNKNOWN','toPrimitive','end','anchorId','ShapeTypeEnum','UniverInkPlugin','filter','cycleInkPenAnchorPointType','points','setInkPenAnchorPointType','symmetric','endIndex','norm','ink.operation.start','defineProperty','NoFill','right','211020lOCvjW','symbol','Round','SolidLine','2667fQramS','left','insertInkPenAnchorAt','ink.config','merge','_injector','round','2897112FLHwef','943940XDDkWe','indexOf','CommandType','findClosestInkPenHandle','UNIVER_INK_PLUGIN','186WNgazq','decorate','hypot','anchors','registerCommand','packageName','kind','pen','1.5.0','prototype','constructor','free','12ROnbNb','IConfigService','height','@univerjs-pro/ink','default','3771DcRXFD','add','map','12217032vajvAw','_config','width','smooth','ICommandService','_commandService','pointType','min','function','__ink-preview-anchor__','start','join','_adapters'];_0x6e16=function(){return _0x452e57;};return _0x6e16();}function R(_0x22cec3){const _0x213c28=_0x885210;let _0x337066=I(_0x22cec3);if(_0x337066[_0x213c28(0x135)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x53ddb4=Math[_0x213c28(0x118)](..._0x337066[_0x213c28(0x110)](_0x409e20=>_0x409e20['x'])),_0x1b349c=Math[_0x213c28(0x118)](..._0x337066[_0x213c28(0x110)](_0x10350b=>_0x10350b['y'])),_0x384755=Math['max'](..._0x337066[_0x213c28(0x110)](_0x5a9b1e=>_0x5a9b1e['x'])),_0x51983c=Math[_0x213c28(0x138)](..._0x337066[_0x213c28(0x110)](_0x3ecb31=>_0x3ecb31['y']));return{'left':L(_0x53ddb4),'top':L(_0x1b349c),'width':L(Math[_0x213c28(0x138)](0x1,_0x384755-_0x53ddb4)),'height':L(Math['max'](0x1,_0x51983c-_0x1b349c))};}function z(_0x30ff6f,_0x3b1787){const _0x18fa3e=_0x885210;let _0x3918d6=_0x30ff6f[_0x18fa3e(0x100)];if(_0x3918d6['length']===0x0)return'';let _0x20f3e4=['M\x20'+k(A(_0x3918d6[0x0],_0x3b1787))];for(let _0x253235=0x1;_0x253235<_0x3918d6[_0x18fa3e(0x135)];_0x253235++){let _0x29a83c=_0x3918d6[_0x253235-0x1],_0x50221c=_0x3918d6[_0x253235],_0x108186=_0x29a83c[_0x18fa3e(0x12e)]??_0x29a83c,_0x235617=_0x50221c['in']??_0x50221c;_0x20f3e4[_0x18fa3e(0x146)]('C\x20'+k(A(_0x108186,_0x3b1787))+'\x20'+k(A(_0x235617,_0x3b1787))+'\x20'+k(A(_0x50221c,_0x3b1787)));}if(_0x30ff6f['closed']&&_0x3918d6['length']>0x1){let _0x1d8cb6=_0x3918d6[_0x3918d6[_0x18fa3e(0x135)]-0x1],_0xed17db=_0x3918d6[0x0],_0x329307=_0x1d8cb6[_0x18fa3e(0x12e)]??_0x1d8cb6,_0x20b0bb=_0xed17db['in']??_0xed17db;_0x20f3e4[_0x18fa3e(0x146)]('C\x20'+k(A(_0x329307,_0x3b1787))+'\x20'+k(A(_0x20b0bb,_0x3b1787))+'\x20'+k(A(_0xed17db,_0x3b1787))),_0x20f3e4['push']('Z');}return _0x20f3e4[_0x18fa3e(0x11c)]('\x20');}function B(_0x5c0d26,_0x5cd9db){const _0x4a1803=_0x885210;let _0x3e3835=_0x5c0d26[_0x4a1803(0xe3)][_0x4a1803(0x110)](_0x1e34cd=>A(_0x1e34cd,_0x5cd9db));if(_0x3e3835[_0x4a1803(0x135)]===0x0)return'';if(_0x3e3835[_0x4a1803(0x135)]===0x1)return'M\x20'+k(_0x3e3835[0x0]);let _0x48c637=['M\x20'+k(_0x3e3835[0x0])];for(let _0x21e5e8=0x0;_0x21e5e8<_0x3e3835[_0x4a1803(0x135)]-0x1;_0x21e5e8++){let _0x5bd410=_0x3e3835[_0x21e5e8],_0x2488fc=_0x3e3835[_0x21e5e8+0x1],_0x562860=_0x3e3835[_0x21e5e8-0x1]??_0x5bd410,_0x3da2f6=_0x3e3835[_0x21e5e8+0x2]??_0x2488fc,_0x23cb2a={'x':_0x5bd410['x']+(_0x2488fc['x']-_0x562860['x'])/0x6,'y':_0x5bd410['y']+(_0x2488fc['y']-_0x562860['y'])/0x6},_0x20b740={'x':_0x2488fc['x']-(_0x3da2f6['x']-_0x5bd410['x'])/0x6,'y':_0x2488fc['y']-(_0x3da2f6['y']-_0x5bd410['y'])/0x6};_0x48c637[_0x4a1803(0x146)]('C\x20'+k(_0x23cb2a)+'\x20'+k(_0x20b740)+'\x20'+k(_0x2488fc));}return _0x48c637[_0x4a1803(0x11c)]('\x20');}function V(_0x2c0d2e,_0x30b0e7){const _0x3c0186=_0x885210;return _0x2c0d2e['kind']===_0x3c0186(0x104)?z(_0x2c0d2e,_0x30b0e7):B(_0x2c0d2e,_0x30b0e7);}function H(_0x505eb5,_0x137340){const _0x167a78=_0x885210;return _0x137340!=null&&_0x137340[_0x167a78(0x120)]?_0x137340[_0x167a78(0x120)]:_0x505eb5[_0x167a78(0x103)]===_0x167a78(0x104)?'#f54a45':_0x505eb5['color'];}function U(_0x37fb88,_0x16b833){const _0x17cc66=_0x885210;return(_0x16b833==null?void 0x0:_0x16b833[_0x17cc66(0x113)])===void 0x0?_0x37fb88[_0x17cc66(0x103)]===_0x17cc66(0x104)?0x2:_0x37fb88['width']:_0x16b833['width'];}function W(_0x2c3db9,_0x2c1945){const _0x27a156=_0x885210;return(_0x2c1945==null?void 0x0:_0x2c1945['opacity'])===void 0x0?_0x2c3db9['kind']===_0x27a156(0x104)?void 0x0:_0x2c3db9[_0x27a156(0x144)]:_0x2c1945[_0x27a156(0x144)];}function oe(_0x1d5b0d,_0x85a618){const _0x4f2a53=_0x885210;let _0x19286c=R(_0x1d5b0d),_0x46da11=V(_0x1d5b0d,{'x':_0x19286c[_0x4f2a53(0xf1)],'y':_0x19286c[_0x4f2a53(0x137)]}),_0x30af09=_0x1d5b0d[_0x4f2a53(0x103)]==='pen'&&_0x1d5b0d[_0x4f2a53(0x12a)],_0x4e1aa9=_0x85a618==null?void 0x0:_0x85a618['fillColor'];return{'shapeType':e[_0x4f2a53(0x154)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x19286c[_0x4f2a53(0x113)],'h':_0x19286c[_0x4f2a53(0x10b)],'fill':_0x30af09?_0x4f2a53(0xe7):'none','stroke':!0x0,'data':_0x46da11,'dataArray':K(_0x1d5b0d,{'x':_0x19286c[_0x4f2a53(0xf1)],'y':_0x19286c[_0x4f2a53(0x137)]})}]},'fill':_0x30af09&&_0x4e1aa9?{'color':_0x4e1aa9,'fillType':e[_0x4f2a53(0x12d)][_0x4f2a53(0x14c)]}:{'fillType':e[_0x4f2a53(0x12d)][_0x4f2a53(0xea)]},'stroke':{'color':H(_0x1d5b0d,_0x85a618),'width':U(_0x1d5b0d,_0x85a618),'opacity':W(_0x1d5b0d,_0x85a618),'lineStrokeType':e[_0x4f2a53(0x14e)][_0x4f2a53(0xef)],'capType':e['ShapeLineCapEnum']['Round'],'lineJoinType':e['ShapeLineJoinEnum'][_0x4f2a53(0xee)]}};}function _0x158f(_0x29061b,_0x16b5ba){_0x29061b=_0x29061b-0xe2;const _0x6e1661=_0x6e16();let _0x158f6e=_0x6e1661[_0x29061b];return _0x158f6e;}function G(_0x4ee7e5,_0x32b9ba){return{'x':_0x4ee7e5['x']-_0x32b9ba['x'],'y':_0x4ee7e5['y']-_0x32b9ba['y']};}function K(_0x14d7c1,_0x27d925){const _0x2570dd=_0x885210;if(_0x14d7c1['kind']===_0x2570dd(0x104)){let _0x267ccb=_0x14d7c1[_0x2570dd(0x100)];if(_0x267ccb[_0x2570dd(0x135)]===0x0)return[];let _0x3b2fd9=G(_0x267ccb[0x0],_0x27d925),_0x3c5dc6=[{'command':'M','points':[_0x3b2fd9['x'],_0x3b2fd9['y']]}];for(let _0x17f39e=0x1;_0x17f39e<_0x267ccb['length'];_0x17f39e++){let _0x4c08bb=_0x267ccb[_0x17f39e-0x1],_0x4fb0fb=_0x267ccb[_0x17f39e],_0x1c19f9=G(_0x4c08bb[_0x2570dd(0x12e)]??_0x4c08bb,_0x27d925),_0x5474b1=G(_0x4fb0fb['in']??_0x4fb0fb,_0x27d925),_0x3a1849=G(_0x4fb0fb,_0x27d925);_0x3c5dc6[_0x2570dd(0x146)]({'command':'C','points':[_0x1c19f9['x'],_0x1c19f9['y'],_0x5474b1['x'],_0x5474b1['y'],_0x3a1849['x'],_0x3a1849['y']]});}if(_0x14d7c1[_0x2570dd(0x12a)]&&_0x267ccb[_0x2570dd(0x135)]>0x1){let _0x2e9347=_0x267ccb[_0x267ccb['length']-0x1],_0x4a416b=_0x267ccb[0x0],_0x3d89fa=G(_0x2e9347[_0x2570dd(0x12e)]??_0x2e9347,_0x27d925),_0x47ca7c=G(_0x4a416b['in']??_0x4a416b,_0x27d925),_0x25a923=G(_0x4a416b,_0x27d925);_0x3c5dc6[_0x2570dd(0x146)]({'command':'C','points':[_0x3d89fa['x'],_0x3d89fa['y'],_0x47ca7c['x'],_0x47ca7c['y'],_0x25a923['x'],_0x25a923['y']]}),_0x3c5dc6[_0x2570dd(0x146)]({'command':'z','points':[]});}return _0x3c5dc6;}let _0x448a7f=_0x14d7c1[_0x2570dd(0xe3)]['map'](_0x282987=>G(_0x282987,_0x27d925));if(_0x448a7f[_0x2570dd(0x135)]===0x0)return[];let _0x4c0805=[{'command':'M','points':[_0x448a7f[0x0]['x'],_0x448a7f[0x0]['y']]}];for(let _0x24ca52=0x0;_0x24ca52<_0x448a7f[_0x2570dd(0x135)]-0x1;_0x24ca52++){let _0x1a8103=_0x448a7f[_0x24ca52],_0x2d8caa=_0x448a7f[_0x24ca52+0x1],_0x2771d3=_0x448a7f[_0x24ca52-0x1]??_0x1a8103,_0x2530aa=_0x448a7f[_0x24ca52+0x2]??_0x2d8caa,_0x173473={'x':_0x1a8103['x']+(_0x2d8caa['x']-_0x2771d3['x'])/0x6,'y':_0x1a8103['y']+(_0x2d8caa['y']-_0x2771d3['y'])/0x6},_0x1178ab={'x':_0x2d8caa['x']-(_0x2530aa['x']-_0x1a8103['x'])/0x6,'y':_0x2d8caa['y']-(_0x2530aa['y']-_0x1a8103['y'])/0x6};_0x4c0805['push']({'command':'C','points':[_0x173473['x'],_0x173473['y'],_0x1178ab['x'],_0x1178ab['y'],_0x2d8caa['x'],_0x2d8caa['y']]});}return _0x4c0805;}function q(_0x294faf){const _0x4025a4=_0x885210;let {model:_0x1fbb77,sourceModel:_0x37cce0=_0x1fbb77,style:_0x508a08}=_0x294faf,_0x20b4eb=_0x294faf[_0x4025a4(0x13f)]??_0x1fbb77[_0x4025a4(0x103)],_0x5890c7=R(_0x1fbb77),_0x391833=_0x1fbb77[_0x4025a4(0x103)]==='pen'&&_0x20b4eb!==_0x4025a4(0x104)?_0x1fbb77:void 0x0;return{'transform':{..._0x5890c7,'rotation':0x0},'shapeData':oe(_0x1fbb77,_0x508a08),'ink':{'version':0x1,'tool':_0x20b4eb,'sourceModel':_0x37cce0,..._0x391833?{'editModel':_0x391833}:{},'normalizedBounds':_0x5890c7}};}var se=_0x885210(0x10c),ce=_0x885210(0x105);function J(_0x333789){'@babel/helpers - typeof';const _0x41548f=_0x885210;return J=typeof Symbol=='function'&&typeof Symbol[_0x41548f(0x123)]=='symbol'?function(_0x5c47c7){return typeof _0x5c47c7;}:function(_0x127388){const _0x21be9e=_0x41548f;return _0x127388&&typeof Symbol==_0x21be9e(0x119)&&_0x127388[_0x21be9e(0x107)]===Symbol&&_0x127388!==Symbol[_0x21be9e(0x106)]?_0x21be9e(0xed):typeof _0x127388;},J(_0x333789);}function le(_0x3e93d0,_0x525912){const _0xee7933=_0x885210;if(J(_0x3e93d0)!=_0xee7933(0x122)||!_0x3e93d0)return _0x3e93d0;var _0x303bb4;if(typeof Symbol<'u'&&(_0x303bb4=_0x3e93d0[Symbol[_0xee7933(0x151)]])!==void 0x0){var _0x4921ec=_0x303bb4[_0xee7933(0x131)](_0x3e93d0,_0x525912||_0xee7933(0x10d));if(J(_0x4921ec)!='object')return _0x4921ec;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x525912===_0xee7933(0x129)?String:Number)(_0x3e93d0);}function ue(_0x1a1599){const _0x9698f1=_0x885210;var _0x452df0=le(_0x1a1599,_0x9698f1(0x129));return J(_0x452df0)=='symbol'?_0x452df0:_0x452df0+'';}function Y(_0x518f97,_0x4d6fde,_0x10f037){const _0x6f1171=_0x885210;return(_0x4d6fde=ue(_0x4d6fde))in _0x518f97?Object[_0x6f1171(0xe9)](_0x518f97,_0x4d6fde,{'value':_0x10f037,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x518f97[_0x4d6fde]=_0x10f037,_0x518f97;}const X=(0x0,n[_0x885210(0x145)])('ink.host-adapter.service');var de=class{constructor(){const _0x178e9e=_0x885210;Y(this,_0x178e9e(0x11d),[]);}['registerAdapter'](_0x4775cd){const _0x3418cf=_0x885210;return this[_0x3418cf(0x11d)][_0x3418cf(0x146)](_0x4775cd),(0x0,n['toDisposable'])(()=>{const _0x51ae63=_0x3418cf;let _0x2e28b5=this[_0x51ae63(0x11d)][_0x51ae63(0xf9)](_0x4775cd);_0x2e28b5>=0x0&&this[_0x51ae63(0x11d)]['splice'](_0x2e28b5,0x1);});}[_0x885210(0x12f)](_0x453713){const _0x244fc1=_0x885210;for(let _0x5a843e of this[_0x244fc1(0x11d)])if(_0x5a843e[_0x244fc1(0x12f)](_0x453713))return!0x0;return!0x1;}async['createCustomShape'](_0x14cab3){const _0x12dcfa=_0x885210;for(let _0x39bd82 of this[_0x12dcfa(0x11d)])if(_0x39bd82['createCustomShape']&&await _0x39bd82[_0x12dcfa(0x13d)](_0x14cab3))return!0x0;return!0x1;}};const fe={'id':_0x885210(0xe8),'type':n[_0x885210(0xfa)][_0x885210(0x12c)],'handler':(_0x4abd79,_0x572fbb)=>_0x572fbb?_0x4abd79['get'](X)[_0x885210(0x12f)](_0x572fbb):!0x1},Z={};function Q(_0x5a275f,_0x5cc784){return function(_0x5f521b,_0x227ccd){_0x5cc784(_0x5f521b,_0x227ccd,_0x5a275f);};}function pe(_0x3cfdf9,_0x457557,_0x55a208,_0x4477c3){const _0x173b10=_0x885210;var _0x2b51f5=arguments[_0x173b10(0x135)],_0x151c67=_0x2b51f5<0x3?_0x457557:_0x4477c3===null?_0x4477c3=Object['getOwnPropertyDescriptor'](_0x457557,_0x55a208):_0x4477c3,_0x43626d;if(typeof Reflect==_0x173b10(0x122)&&typeof Reflect['decorate']==_0x173b10(0x119))_0x151c67=Reflect[_0x173b10(0xfe)](_0x3cfdf9,_0x457557,_0x55a208,_0x4477c3);else{for(var _0x13dc87=_0x3cfdf9[_0x173b10(0x135)]-0x1;_0x13dc87>=0x0;_0x13dc87--)(_0x43626d=_0x3cfdf9[_0x13dc87])&&(_0x151c67=(_0x2b51f5<0x3?_0x43626d(_0x151c67):_0x2b51f5>0x3?_0x43626d(_0x457557,_0x55a208,_0x151c67):_0x43626d(_0x457557,_0x55a208))||_0x151c67);}return _0x2b51f5>0x3&&_0x151c67&&Object[_0x173b10(0xe9)](_0x457557,_0x55a208,_0x151c67),_0x151c67;}let $=class extends n[_0x885210(0x13a)]{constructor(_0x2b1e47=Z,_0x186341,_0x26e556,_0x5c6fbd){const _0x46cc25=_0x885210;super(),this['_config']=_0x2b1e47,this[_0x46cc25(0xf5)]=_0x186341,this[_0x46cc25(0x116)]=_0x26e556,this[_0x46cc25(0x14a)]=_0x5c6fbd;let {..._0x4a3d89}=(0x0,n[_0x46cc25(0xf4)])({},Z,this[_0x46cc25(0x112)]);this[_0x46cc25(0x14a)][_0x46cc25(0x11f)](_0x46cc25(0xf3),_0x4a3d89);}[_0x885210(0x127)](){const _0x5e0c2f=_0x885210;[[X,{'useClass':de}]][_0x5e0c2f(0x14b)](_0xc4a382=>this[_0x5e0c2f(0xf5)][_0x5e0c2f(0x10f)](_0xc4a382)),this['disposeWithMe'](this[_0x5e0c2f(0x116)][_0x5e0c2f(0x101)](fe));}};Y($,'pluginName',_0x885210(0xfc)),Y($,_0x885210(0x102),se),Y($,_0x885210(0x141),ce),Y($,'type',n['UniverInstanceType'][_0x885210(0x150)]),$=pe([(0x0,n['DependentOn'])(t[_0x885210(0x130)]),Q(0x1,(0x0,n[_0x885210(0x128)])(n[_0x885210(0x124)])),Q(0x2,n[_0x885210(0x115)]),Q(0x3,n[_0x885210(0x10a)])],$),exports['IInkHostAdapterService']=X,Object[_0x885210(0xe9)](exports,_0x885210(0x155),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x885210(0x148)]=q,exports[_0x885210(0x13e)]=re,exports[_0x885210(0xe2)]=E,exports[_0x885210(0x13b)]=w,exports[_0x885210(0xfb)]=ie,exports['findClosestInkPenSegment']=S,exports['getInkModelBounds']=R,exports[_0x885210(0x125)]=x,exports[_0x885210(0xf2)]=C,exports['isInkPenHandleVisible']=p,exports['moveInkPenAnchorPoint']=ae,exports[_0x885210(0xe4)]=T;
1
+ const _0x4bf3b2=_0x4fd4;(function(_0x2932e9,_0x558b94){const _0xae5b2a=_0x4fd4,_0x22e8d5=_0x2932e9();while(!![]){try{const _0x5f1844=parseInt(_0xae5b2a(0x10b))/0x1+parseInt(_0xae5b2a(0x146))/0x2+parseInt(_0xae5b2a(0x16d))/0x3*(-parseInt(_0xae5b2a(0x17a))/0x4)+parseInt(_0xae5b2a(0x122))/0x5+-parseInt(_0xae5b2a(0x125))/0x6+parseInt(_0xae5b2a(0x142))/0x7*(-parseInt(_0xae5b2a(0x188))/0x8)+-parseInt(_0xae5b2a(0x10a))/0x9;if(_0x5f1844===_0x558b94)break;else _0x22e8d5['push'](_0x22e8d5['shift']());}catch(_0x2515dc){_0x22e8d5['push'](_0x22e8d5['shift']());}}}(_0x5199,0x23ede),Object[_0x4bf3b2(0x159)](exports,Symbol[_0x4bf3b2(0x137)],{'value':_0x4bf3b2(0x161)}));let e=require('@univerjs-pro/engine-shape'),t=require('@univerjs-pro/license'),n=require('@univerjs/core');const r=0.0001;function i(_0x4be364){return{'x':_0x4be364['x'],'y':_0x4be364['y']};}function a(_0x66497b){const _0x1d4102=_0x4bf3b2;return{..._0x66497b,'in':_0x66497b['in']?i(_0x66497b['in']):void 0x0,'out':_0x66497b[_0x1d4102(0x117)]?i(_0x66497b[_0x1d4102(0x117)]):void 0x0};}function o(_0x2e86b6){const _0x1e058f=_0x4bf3b2;return{'kind':_0x1e058f(0x130),'closed':_0x2e86b6[_0x1e058f(0x180)],'anchors':_0x2e86b6['anchors'][_0x1e058f(0x11f)](a)};}function s(_0x5bf69f,_0x4ef026,_0x347563){return{'x':_0x5bf69f['x']+(_0x4ef026['x']-_0x5bf69f['x'])*_0x347563,'y':_0x5bf69f['y']+(_0x4ef026['y']-_0x5bf69f['y'])*_0x347563};}function c(_0x5853fa,_0xdbe632){return Math['hypot'](_0x5853fa['x']-_0xdbe632['x'],_0x5853fa['y']-_0xdbe632['y']);}function l(_0x1ebb96){const _0x154a28=_0x4bf3b2;let _0x2a36bd=Math[_0x154a28(0x16e)](_0x1ebb96['x'],_0x1ebb96['y']);return _0x2a36bd<r?{'x':0x1,'y':0x0}:{'x':_0x1ebb96['x']/_0x2a36bd,'y':_0x1ebb96['y']/_0x2a36bd};}function u(_0x3667d6,_0x323160,_0x796538=c(_0x3667d6,_0x323160)){let _0x184bd2=l({'x':_0x3667d6['x']-_0x323160['x'],'y':_0x3667d6['y']-_0x323160['y']});return{'x':_0x3667d6['x']+_0x184bd2['x']*_0x796538,'y':_0x3667d6['y']+_0x184bd2['y']*_0x796538};}function d(_0x23002a,_0x3432ed){const _0x54243b=_0x4bf3b2;let {anchors:_0x14d2d5}=_0x23002a;return _0x14d2d5['length']<0x2||_0x3432ed<0x0?null:_0x3432ed<_0x14d2d5[_0x54243b(0x121)]-0x1?{'startIndex':_0x3432ed,'endIndex':_0x3432ed+0x1,'start':_0x14d2d5[_0x3432ed],'end':_0x14d2d5[_0x3432ed+0x1]}:_0x23002a[_0x54243b(0x180)]&&_0x3432ed===_0x14d2d5[_0x54243b(0x121)]-0x1?{'startIndex':_0x14d2d5[_0x54243b(0x121)]-0x1,'endIndex':0x0,'start':_0x14d2d5[_0x14d2d5[_0x54243b(0x121)]-0x1],'end':_0x14d2d5[0x0]}:null;}function f(_0x1ea986,_0x21f338){const _0x2117b9=_0x4bf3b2;let _0x4df70d=d(_0x1ea986,_0x21f338);return _0x4df70d?[_0x4df70d[_0x2117b9(0x183)],_0x4df70d[_0x2117b9(0x183)][_0x2117b9(0x117)]??_0x4df70d[_0x2117b9(0x183)],_0x4df70d['end']['in']??_0x4df70d[_0x2117b9(0x149)],_0x4df70d[_0x2117b9(0x149)]]:null;}function ee(_0x16a1cd,_0x39d692){return _0x39d692==='anchor'?_0x16a1cd:_0x16a1cd[_0x39d692]??null;}function p(_0xfdc0c2,_0x3c8a43,_0x455ee6){const _0x54b4c8=_0x4bf3b2;return _0x455ee6===_0x54b4c8(0x110)||_0xfdc0c2[_0x54b4c8(0x180)]?!0x0:_0x455ee6==='in'?_0x3c8a43>0x0:_0x3c8a43<_0xfdc0c2[_0x54b4c8(0x113)][_0x54b4c8(0x121)]-0x1;}function m(_0x21ee48,_0x2d431b){let [_0x2d2a9c,_0xff7d0f,_0x1aae05,_0x25283a]=_0x21ee48,_0x344dca=s(_0x2d2a9c,_0xff7d0f,_0x2d431b),_0x471182=s(_0xff7d0f,_0x1aae05,_0x2d431b),_0x14e89f=s(_0x1aae05,_0x25283a,_0x2d431b);return s(s(_0x344dca,_0x471182,_0x2d431b),s(_0x471182,_0x14e89f,_0x2d431b),_0x2d431b);}function h(_0x2b5dbf,_0x1e1b8d){let [_0x7e6854,_0x48c306,_0x548518,_0x4ea400]=_0x2b5dbf,_0x89e16b=s(_0x7e6854,_0x48c306,_0x1e1b8d),_0x23b97d=s(_0x48c306,_0x548518,_0x1e1b8d),_0x5d0485=s(_0x548518,_0x4ea400,_0x1e1b8d),_0x5398f2=s(_0x89e16b,_0x23b97d,_0x1e1b8d),_0x1177a=s(_0x23b97d,_0x5d0485,_0x1e1b8d),_0x502b4a=s(_0x5398f2,_0x1177a,_0x1e1b8d);return{'left':[_0x7e6854,_0x89e16b,_0x5398f2,_0x502b4a],'right':[_0x502b4a,_0x1177a,_0x5d0485,_0x4ea400]};}function g(_0xf3ad09,_0x3536ba,_0x2d1915){const _0x4f932a=_0x4bf3b2;let _0x4023a5=_0x2d1915['x']-_0x3536ba['x'],_0x192e84=_0x2d1915['y']-_0x3536ba['y'],_0x104486=_0x4023a5*_0x4023a5+_0x192e84*_0x192e84,_0x4c0936=_0x104486<=r?0x0:Math[_0x4f932a(0x13b)](0x0,Math[_0x4f932a(0x17c)](0x1,((_0xf3ad09['x']-_0x3536ba['x'])*_0x4023a5+(_0xf3ad09['y']-_0x3536ba['y'])*_0x192e84)/_0x104486)),_0x8b727b={'x':_0x3536ba['x']+_0x4023a5*_0x4c0936,'y':_0x3536ba['y']+_0x192e84*_0x4c0936};return{'point':_0x8b727b,'ratio':_0x4c0936,'distance':c(_0xf3ad09,_0x8b727b)};}function te(_0x58cd9d,_0x2b8136,_0x544319){const _0x3c6ad2=_0x4bf3b2;return g(_0x58cd9d,_0x2b8136,_0x544319)[_0x3c6ad2(0x147)]**0x2;}function _(_0x3fe69c,_0x4e2310){const _0x11c059=_0x4bf3b2;if(_0x3fe69c[_0x11c059(0x121)]<=0x2)return _0x3fe69c[_0x11c059(0x11f)](i);let _0x169f65=0x0,_0x4964f5=0x0,_0x45af6f=_0x3fe69c[0x0],_0x3fc06d=_0x3fe69c[_0x3fe69c['length']-0x1],_0x316585=_0x4e2310*_0x4e2310;for(let _0x41ee10=0x1;_0x41ee10<_0x3fe69c[_0x11c059(0x121)]-0x1;_0x41ee10++){let _0x351ec4=te(_0x3fe69c[_0x41ee10],_0x45af6f,_0x3fc06d);_0x351ec4>_0x169f65&&(_0x169f65=_0x351ec4,_0x4964f5=_0x41ee10);}if(_0x169f65<=_0x316585)return[i(_0x45af6f),i(_0x3fc06d)];let _0x628c8f=_(_0x3fe69c[_0x11c059(0x131)](0x0,_0x4964f5+0x1),_0x4e2310),_0x572775=_(_0x3fe69c['slice'](_0x4964f5),_0x4e2310);return[..._0x628c8f[_0x11c059(0x131)](0x0,-0x1),..._0x572775];}function ne(_0x49f235,_0x1b276f){let _0x3f6b11=_0x49f235[_0x1b276f],_0x5e17c5=_0x49f235[_0x1b276f+0x1],_0x45f378=_0x49f235[_0x1b276f-0x1]??_0x3f6b11;return{'x':_0x3f6b11['x']+(_0x5e17c5['x']-_0x45f378['x'])/0x6,'y':_0x3f6b11['y']+(_0x5e17c5['y']-_0x45f378['y'])/0x6};}function v(_0x3735de,_0x80b489){let _0x49ae55=_0x3735de[_0x80b489],_0x59dfed=_0x3735de[_0x80b489-0x1],_0x540015=_0x3735de[_0x80b489+0x1]??_0x49ae55;return{'x':_0x49ae55['x']-(_0x540015['x']-_0x59dfed['x'])/0x6,'y':_0x49ae55['y']-(_0x540015['y']-_0x59dfed['y'])/0x6};}function y(_0x6a1ef8,_0x5181b3){const _0x4cf90d=_0x4bf3b2;let _0x308181=_0x6a1ef8[_0x4cf90d(0x113)][_0x5181b3],_0x5f9eba=_0x6a1ef8['anchors'][_0x5181b3-0x1]??(_0x6a1ef8[_0x4cf90d(0x180)]?_0x6a1ef8[_0x4cf90d(0x113)][_0x6a1ef8[_0x4cf90d(0x113)][_0x4cf90d(0x121)]-0x1]:null),_0x13da0c=_0x6a1ef8[_0x4cf90d(0x113)][_0x5181b3+0x1]??(_0x6a1ef8['closed']?_0x6a1ef8[_0x4cf90d(0x113)][0x0]:null),_0x59cf9d=_0x5f9eba&&_0x13da0c?l({'x':_0x13da0c['x']-_0x5f9eba['x'],'y':_0x13da0c['y']-_0x5f9eba['y']}):_0x13da0c?l({'x':_0x13da0c['x']-_0x308181['x'],'y':_0x13da0c['y']-_0x308181['y']}):_0x5f9eba?l({'x':_0x308181['x']-_0x5f9eba['x'],'y':_0x308181['y']-_0x5f9eba['y']}):{'x':0x1,'y':0x0},_0x260779=_0x5f9eba&&_0x13da0c?Math[_0x4cf90d(0x13b)](0x32,c(_0x5f9eba,_0x13da0c)/0x4):0x32;return{'in':{'x':_0x308181['x']-_0x59cf9d['x']*_0x260779,'y':_0x308181['y']-_0x59cf9d['y']*_0x260779},'out':{'x':_0x308181['x']+_0x59cf9d['x']*_0x260779,'y':_0x308181['y']+_0x59cf9d['y']*_0x260779}};}function b(_0x3f2766,_0x4a3dca){const _0x3743c7=_0x4bf3b2;let _0x28e887=_0x3f2766[_0x4a3dca],_0x2afcbf=_0x4a3dca==='in'?_0x3743c7(0x117):'in',_0x47945a=_0x3f2766[_0x2afcbf];_0x28e887&&(_0x3f2766[_0x3743c7(0x16a)]==='symmetric'?_0x3f2766[_0x2afcbf]=u(_0x3f2766,_0x28e887):_0x3f2766[_0x3743c7(0x16a)]===_0x3743c7(0x15b)&&(_0x3f2766[_0x2afcbf]=u(_0x3f2766,_0x28e887,_0x47945a?c(_0x3f2766,_0x47945a):c(_0x3f2766,_0x28e887))));}function x(_0x145556,_0x2e6ae8){const _0x10a1d6=_0x4bf3b2;let _0x3c6ba1=o(_0x145556);return!_0x2e6ae8||_0x3c6ba1[_0x10a1d6(0x180)]||_0x3c6ba1[_0x10a1d6(0x113)][_0x10a1d6(0x121)]===0x0||_0x3c6ba1[_0x10a1d6(0x113)][_0x10a1d6(0x171)]({'id':'__ink-preview-anchor__','x':_0x2e6ae8['x'],'y':_0x2e6ae8['y'],'pointType':_0x10a1d6(0x135)}),_0x3c6ba1;}function re(_0x389f93,_0x121f1b={}){const _0x1f2d9a=_0x4bf3b2;let _0x14ba47=Math[_0x1f2d9a(0x13b)](0x0,_0x121f1b[_0x1f2d9a(0x15a)]??Math[_0x1f2d9a(0x13b)](0x4,_0x389f93['width']*0.35)),_0x3ad34b=_0x121f1b[_0x1f2d9a(0x145)]??(_0x177f96=>_0x1f2d9a(0x128)+_0x177f96),_0x452bc1=_(_0x389f93[_0x1f2d9a(0x15f)],_0x14ba47),_0x3a2ab9=_0x452bc1[_0x1f2d9a(0x11f)]((_0x2a2279,_0x49de73)=>({'id':_0x3ad34b(_0x49de73),'x':_0x2a2279['x'],'y':_0x2a2279['y'],'pointType':'free'}));for(let _0x46530a=0x0;_0x46530a<_0x3a2ab9[_0x1f2d9a(0x121)]-0x1;_0x46530a++)_0x3a2ab9[_0x46530a]['out']=ne(_0x452bc1,_0x46530a),_0x3a2ab9[_0x46530a+0x1]['in']=v(_0x452bc1,_0x46530a+0x1);return{'kind':_0x1f2d9a(0x130),'closed':!0x1,'anchors':_0x3a2ab9};}function ie(_0x48bd0b,_0x46a91f,_0x2c55db){const _0x3e5cbe=_0x4bf3b2;let _0x5c0ece=null,_0x20e067=[_0x3e5cbe(0x110),'in',_0x3e5cbe(0x117)];return _0x48bd0b[_0x3e5cbe(0x113)][_0x3e5cbe(0x132)]((_0x3b972a,_0x183ef7)=>{const _0x4abdd2=_0x3e5cbe;_0x20e067[_0x4abdd2(0x132)](_0x2dded0=>{if(!p(_0x48bd0b,_0x183ef7,_0x2dded0))return;let _0x38a863=ee(_0x3b972a,_0x2dded0);if(!_0x38a863)return;let _0x4c713d=c(_0x46a91f,_0x38a863);_0x4c713d>_0x2c55db||_0x5c0ece&&_0x4c713d>=_0x5c0ece['distance']||(_0x5c0ece={'handle':{'kind':_0x2dded0,'anchorId':_0x3b972a['id']},'point':i(_0x38a863),'distance':_0x4c713d});});}),_0x5c0ece;}function S(_0x8f5cd2,_0xa8eb6f,_0x4ab8ec){const _0x3083bc=_0x4bf3b2;let _0x108f7a=null,_0x583d40=_0x8f5cd2[_0x3083bc(0x180)]?_0x8f5cd2[_0x3083bc(0x113)][_0x3083bc(0x121)]:Math[_0x3083bc(0x13b)](0x0,_0x8f5cd2[_0x3083bc(0x113)]['length']-0x1);for(let _0x4faac0=0x0;_0x4faac0<_0x583d40;_0x4faac0++){let _0x5ddd6a=f(_0x8f5cd2,_0x4faac0);if(!_0x5ddd6a)continue;let _0x59d5f2=m(_0x5ddd6a,0x0);for(let _0x5f0da9=0x1;_0x5f0da9<=0x20;_0x5f0da9++){let _0x5e50e2=m(_0x5ddd6a,_0x5f0da9/0x20),_0x47f420=g(_0xa8eb6f,_0x59d5f2,_0x5e50e2),_0x1b4b1a=(_0x5f0da9-0x1+_0x47f420[_0x3083bc(0x17b)])/0x20;(!_0x108f7a||_0x47f420[_0x3083bc(0x147)]<_0x108f7a['distance'])&&(_0x108f7a={'segmentIndex':_0x4faac0,'t':_0x1b4b1a,'point':_0x47f420[_0x3083bc(0x12e)],'distance':_0x47f420[_0x3083bc(0x147)]}),_0x59d5f2=_0x5e50e2;}}return _0x108f7a&&_0x108f7a['distance']<=_0x4ab8ec?_0x108f7a:null;}function C(_0xcca1ae,_0x2e5cc1,_0x25197c){const _0x27d188=_0x4bf3b2;let _0x46c9ae=o(_0xcca1ae),_0x278f1d=d(_0x46c9ae,_0x2e5cc1[_0x27d188(0x11a)]),_0x2df253=f(_0x46c9ae,_0x2e5cc1[_0x27d188(0x11a)]);if(!_0x278f1d||!_0x2df253)return _0x46c9ae;let _0x50dda6=h(_0x2df253,Math[_0x27d188(0x13b)](0x0,Math[_0x27d188(0x17c)](0x1,_0x2e5cc1['t']))),_0x27bafb={'id':_0x25197c(),'x':_0x50dda6['left'][0x3]['x'],'y':_0x50dda6['left'][0x3]['y'],'in':i(_0x50dda6[_0x27d188(0x164)][0x2]),'out':i(_0x50dda6[_0x27d188(0x13a)][0x1]),'pointType':_0x27d188(0x17d)};return _0x46c9ae[_0x27d188(0x113)][_0x278f1d[_0x27d188(0x14f)]][_0x27d188(0x117)]=i(_0x50dda6[_0x27d188(0x164)][0x1]),_0x46c9ae[_0x27d188(0x113)][_0x278f1d['endIndex']]['in']=i(_0x50dda6[_0x27d188(0x13a)][0x2]),_0x46c9ae[_0x27d188(0x113)][_0x27d188(0x12c)](_0x278f1d[_0x27d188(0x14f)]+0x1,0x0,_0x27bafb),_0x46c9ae;}function w(_0x51b534,_0x23705f){const _0x3208b7=_0x4bf3b2;let _0x2f719e=o(_0x51b534);return _0x2f719e[_0x3208b7(0x113)]=_0x2f719e[_0x3208b7(0x113)]['filter'](_0x5da46b=>_0x5da46b['id']!==_0x23705f),_0x2f719e[_0x3208b7(0x180)]&&_0x2f719e['anchors'][_0x3208b7(0x121)]<0x3&&(_0x2f719e['closed']=!0x1),_0x2f719e;}function T(_0x20ebe6,_0x136ad9,_0x1068e1){const _0x4dc783=_0x4bf3b2;let _0xefcba4=o(_0x20ebe6),_0x476eaf=_0xefcba4['anchors'][_0x4dc783(0x14b)](_0x21117f=>_0x21117f['id']===_0x136ad9),_0x34e8b2=_0xefcba4[_0x4dc783(0x113)][_0x476eaf];if(!_0x34e8b2)return _0xefcba4;if(_0x34e8b2[_0x4dc783(0x16a)]=_0x1068e1,_0x1068e1==='corner')return delete _0x34e8b2['in'],delete _0x34e8b2['out'],_0xefcba4;let _0x547fda=y(_0xefcba4,_0x476eaf);if(_0x34e8b2['in']=_0x34e8b2['in']?i(_0x34e8b2['in']):_0x547fda['in'],_0x34e8b2['out']=_0x34e8b2[_0x4dc783(0x117)]?i(_0x34e8b2[_0x4dc783(0x117)]):_0x547fda[_0x4dc783(0x117)],_0x1068e1===_0x4dc783(0x127)){let _0x443198=Math[_0x4dc783(0x13b)](c(_0x34e8b2,_0x34e8b2['in']),c(_0x34e8b2,_0x34e8b2[_0x4dc783(0x117)]),0x32),_0x33219e=l({'x':_0x34e8b2[_0x4dc783(0x117)]['x']-_0x34e8b2['x'],'y':_0x34e8b2[_0x4dc783(0x117)]['y']-_0x34e8b2['y']});_0x34e8b2['out']={'x':_0x34e8b2['x']+_0x33219e['x']*_0x443198,'y':_0x34e8b2['y']+_0x33219e['y']*_0x443198},_0x34e8b2['in']={'x':_0x34e8b2['x']-_0x33219e['x']*_0x443198,'y':_0x34e8b2['y']-_0x33219e['y']*_0x443198};}else _0x1068e1===_0x4dc783(0x15b)&&b(_0x34e8b2,_0x4dc783(0x117));return _0xefcba4;}function E(_0x2ddd9e,_0x393141){const _0x153ee5=_0x4bf3b2;let _0x2a563e=_0x2ddd9e[_0x153ee5(0x113)][_0x153ee5(0x140)](_0x2090dc=>_0x2090dc['id']===_0x393141),_0x4c4925=(_0x2a563e==null?void 0x0:_0x2a563e[_0x153ee5(0x16a)])??_0x153ee5(0x135);return T(_0x2ddd9e,_0x393141,_0x4c4925===_0x153ee5(0x135)?_0x153ee5(0x15b):_0x4c4925===_0x153ee5(0x15b)?'symmetric':_0x4c4925===_0x153ee5(0x127)?_0x153ee5(0x17d):_0x153ee5(0x135));}function ae(_0x58a195,_0x51532f,_0x46177a){const _0x441e56=_0x4bf3b2;let _0x448b71=o(_0x58a195),_0x43f2ed=_0x448b71['anchors'][_0x441e56(0x140)](_0x31646f=>_0x31646f['id']===_0x51532f[_0x441e56(0x15c)]);if(!_0x43f2ed)return _0x448b71;if(_0x51532f[_0x441e56(0x126)]===_0x441e56(0x110)){let _0x6e0423={'x':_0x46177a['x']-_0x43f2ed['x'],'y':_0x46177a['y']-_0x43f2ed['y']};return _0x43f2ed['x']=_0x46177a['x'],_0x43f2ed['y']=_0x46177a['y'],_0x43f2ed['in']&&={'x':_0x43f2ed['in']['x']+_0x6e0423['x'],'y':_0x43f2ed['in']['y']+_0x6e0423['y']},_0x43f2ed['out']&&={'x':_0x43f2ed[_0x441e56(0x117)]['x']+_0x6e0423['x'],'y':_0x43f2ed[_0x441e56(0x117)]['y']+_0x6e0423['y']},_0x448b71;}return _0x43f2ed[_0x51532f[_0x441e56(0x126)]]=i(_0x46177a),_0x43f2ed[_0x441e56(0x16a)]===_0x441e56(0x135)&&(_0x43f2ed['pointType']='free'),b(_0x43f2ed,_0x51532f[_0x441e56(0x126)]),_0x448b71;}const D=1e-9;function O(_0x5d880b){const _0x4d5a9c=_0x4bf3b2;let _0x33978d=Math[_0x4d5a9c(0x13d)](_0x5d880b*0x2710)/0x2710;return Object['is'](_0x33978d,-0x0)?'0':String(_0x33978d);}function k(_0x28e7e6){return O(_0x28e7e6['x'])+'\x20'+O(_0x28e7e6['y']);}function A(_0x2262f6,_0x2d38c8){return{'x':_0x2262f6['x']-_0x2d38c8['x'],'y':_0x2262f6['y']-_0x2d38c8['y']};}function j(_0x7b6f93,_0x4957c1,_0x15b88c,_0x102016,_0x3d1044){let _0x2ccd77=0x1-_0x3d1044;return{'x':_0x2ccd77*_0x2ccd77*_0x2ccd77*_0x7b6f93['x']+0x3*_0x2ccd77*_0x2ccd77*_0x3d1044*_0x4957c1['x']+0x3*_0x2ccd77*_0x3d1044*_0x3d1044*_0x15b88c['x']+_0x3d1044*_0x3d1044*_0x3d1044*_0x102016['x'],'y':_0x2ccd77*_0x2ccd77*_0x2ccd77*_0x7b6f93['y']+0x3*_0x2ccd77*_0x2ccd77*_0x3d1044*_0x4957c1['y']+0x3*_0x2ccd77*_0x3d1044*_0x3d1044*_0x15b88c['y']+_0x3d1044*_0x3d1044*_0x3d1044*_0x102016['y']};}function M(_0x10df48,_0x4e48a7,_0x53e82d,_0x24b0b7){const _0x1d7059=_0x4bf3b2;let _0x3f1f97=-_0x10df48+0x3*_0x4e48a7-0x3*_0x53e82d+_0x24b0b7,_0x21f377=0x3*_0x10df48-0x6*_0x4e48a7+0x3*_0x53e82d,_0x29b4d1=-0x3*_0x10df48+0x3*_0x4e48a7,_0x371346=[];if(Math[_0x1d7059(0x120)](_0x3f1f97)<D){if(Math[_0x1d7059(0x120)](_0x21f377)<D)return _0x371346;let _0x28a464=-_0x29b4d1/(0x2*_0x21f377);return _0x28a464>0x0&&_0x28a464<0x1&&_0x371346[_0x1d7059(0x171)](_0x28a464),_0x371346;}let _0x112ae6=_0x21f377*_0x21f377-0x3*_0x3f1f97*_0x29b4d1;if(_0x112ae6<0x0)return _0x371346;let _0xe0f0c5=Math[_0x1d7059(0x167)](Math[_0x1d7059(0x13b)](0x0,_0x112ae6)),_0x1324c5=(-_0x21f377+_0xe0f0c5)/(0x3*_0x3f1f97),_0x2d6180=(-_0x21f377-_0xe0f0c5)/(0x3*_0x3f1f97);return _0x1324c5>0x0&&_0x1324c5<0x1&&_0x371346['push'](_0x1324c5),_0x2d6180>0x0&&_0x2d6180<0x1&&Math[_0x1d7059(0x120)](_0x2d6180-_0x1324c5)>D&&_0x371346['push'](_0x2d6180),_0x371346;}function N(_0x47bbb8,_0x74bb55,_0x4a0d37,_0x2b4d3f,_0x46993f){const _0x7b0f71=_0x4bf3b2;_0x47bbb8['push'](_0x74bb55,_0x46993f),new Set([...M(_0x74bb55['x'],_0x4a0d37['x'],_0x2b4d3f['x'],_0x46993f['x']),...M(_0x74bb55['y'],_0x4a0d37['y'],_0x2b4d3f['y'],_0x46993f['y'])])[_0x7b0f71(0x132)](_0xea1cb8=>{_0x47bbb8['push'](j(_0x74bb55,_0x4a0d37,_0x2b4d3f,_0x46993f,_0xea1cb8));});}function P(_0x5d2a77){const _0x3a899e=_0x4bf3b2;let _0x1da045=_0x5d2a77[_0x3a899e(0x113)];if(_0x1da045[_0x3a899e(0x121)]<=0x1)return _0x1da045;let _0x5072ea=[];for(let _0x37da90=0x1;_0x37da90<_0x1da045[_0x3a899e(0x121)];_0x37da90++){let _0xdb6592=_0x1da045[_0x37da90-0x1],_0x189c2b=_0x1da045[_0x37da90];N(_0x5072ea,_0xdb6592,_0xdb6592[_0x3a899e(0x117)]??_0xdb6592,_0x189c2b['in']??_0x189c2b,_0x189c2b);}if(_0x5d2a77[_0x3a899e(0x180)]&&_0x1da045[_0x3a899e(0x121)]>0x1){let _0x1339aa=_0x1da045[_0x1da045[_0x3a899e(0x121)]-0x1],_0x20a4ab=_0x1da045[0x0];N(_0x5072ea,_0x1339aa,_0x1339aa[_0x3a899e(0x117)]??_0x1339aa,_0x20a4ab['in']??_0x20a4ab,_0x20a4ab);}return _0x5072ea;}function F(_0x2484d8){const _0x31a6d0=_0x4bf3b2;let _0xa3eb97=_0x2484d8[_0x31a6d0(0x15f)];if(_0xa3eb97['length']<=0x1)return _0xa3eb97;let _0x17c80a=[];for(let _0x37653a=0x0;_0x37653a<_0xa3eb97[_0x31a6d0(0x121)]-0x1;_0x37653a++){let _0x10e5db=_0xa3eb97[_0x37653a],_0x5235cd=_0xa3eb97[_0x37653a+0x1],_0x26d405=_0xa3eb97[_0x37653a-0x1]??_0x10e5db,_0x315f6c=_0xa3eb97[_0x37653a+0x2]??_0x5235cd;N(_0x17c80a,_0x10e5db,{'x':_0x10e5db['x']+(_0x5235cd['x']-_0x26d405['x'])/0x6,'y':_0x10e5db['y']+(_0x5235cd['y']-_0x26d405['y'])/0x6},{'x':_0x5235cd['x']-(_0x315f6c['x']-_0x10e5db['x'])/0x6,'y':_0x5235cd['y']-(_0x315f6c['y']-_0x10e5db['y'])/0x6},_0x5235cd);}return _0x17c80a;}function I(_0x231e7f){const _0x191afd=_0x4bf3b2;return _0x231e7f[_0x191afd(0x126)]===_0x191afd(0x130)?P(_0x231e7f):F(_0x231e7f);}function L(_0x23f418){const _0x4b3549=_0x4bf3b2;let _0x3d928e=Math[_0x4b3549(0x13d)](_0x23f418*0x2710)/0x2710;return Object['is'](_0x3d928e,-0x0)?0x0:_0x3d928e;}function R(_0x34cbb7){const _0x252869=_0x4bf3b2;let _0x17a257=I(_0x34cbb7);if(_0x17a257[_0x252869(0x121)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0xdbd7c0=Math['min'](..._0x17a257['map'](_0x23ccae=>_0x23ccae['x'])),_0x7b567b=Math[_0x252869(0x17c)](..._0x17a257[_0x252869(0x11f)](_0x418eb7=>_0x418eb7['y'])),_0x33ac9a=Math['max'](..._0x17a257['map'](_0x19dc17=>_0x19dc17['x'])),_0x45202f=Math[_0x252869(0x13b)](..._0x17a257[_0x252869(0x11f)](_0x41f39b=>_0x41f39b['y']));return{'left':L(_0xdbd7c0),'top':L(_0x7b567b),'width':L(Math['max'](0x1,_0x33ac9a-_0xdbd7c0)),'height':L(Math[_0x252869(0x13b)](0x1,_0x45202f-_0x7b567b))};}function _0x5199(){const _0x20e163=['setConfig','UNIVER_UNKNOWN','264252fjehTh','kind','symmetric','ink-centerline-','ICommandService','_commandService','opacity','splice','decorate','point','getInkPenPreviewModel','pen','slice','forEach','getInkModelBounds','pluginName','corner','ShapeLineCapEnum','toStringTag','findClosestInkPenHandle','cycleInkPenAnchorPointType','right','max','disposeWithMe','round','buildInkCustomShapePayload','prototype','find','ShapeTypeEnum','21tIyZsN','Injector','_adapters','createId','2202iDJkca','distance','#f54a45','end','Rect','findIndex','registerAdapter','_injector','tool','startIndex','IConfigService','DependentOn','fillColor','object','insertInkPenAnchorAt','UNIVER_INK_PLUGIN','version','Round','ShapeLineTypeEnum','defineProperty','tolerance','smooth','anchorId','Inject','toPrimitive','points','ShapeLineJoinEnum','Module','ink.operation.start','UniverInstanceType','left','iterator','top','sqrt','UniverInkPlugin','constructor','pointType','UniverLicensePlugin','ShapeFillEnum','24hHbYfJ','hypot','CommandType','color','push','moveInkPenAnchorPoint','createIdentifier','_configService','string','norm','type','indexOf','1.5.1','3128znsdHr','ratio','min','free','function','get','closed','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','start','SolidFill','ink.host-adapter.service','OPERATION','toDisposable','292544LhZNoc','104067qLzhbz','137409ASyhAb','width','merge','Plugin','packageName','anchor','beginInkMode','call','anchors','@univerjs-pro/ink','registerCommand','height','out','symbol','setInkPenAnchorPointType','segmentIndex','createCustomShape','IInkHostAdapterService','join','isInkPenHandleVisible','map','abs','length','901105qEFtOs'];_0x5199=function(){return _0x20e163;};return _0x5199();}function z(_0x40f402,_0x2881fb){const _0x5e8b9b=_0x4bf3b2;let _0x5c2d8a=_0x40f402[_0x5e8b9b(0x113)];if(_0x5c2d8a[_0x5e8b9b(0x121)]===0x0)return'';let _0x467cc5=['M\x20'+k(A(_0x5c2d8a[0x0],_0x2881fb))];for(let _0x222055=0x1;_0x222055<_0x5c2d8a['length'];_0x222055++){let _0x2e8a58=_0x5c2d8a[_0x222055-0x1],_0x5ba59f=_0x5c2d8a[_0x222055],_0x512d95=_0x2e8a58[_0x5e8b9b(0x117)]??_0x2e8a58,_0x8d7710=_0x5ba59f['in']??_0x5ba59f;_0x467cc5[_0x5e8b9b(0x171)]('C\x20'+k(A(_0x512d95,_0x2881fb))+'\x20'+k(A(_0x8d7710,_0x2881fb))+'\x20'+k(A(_0x5ba59f,_0x2881fb)));}if(_0x40f402[_0x5e8b9b(0x180)]&&_0x5c2d8a[_0x5e8b9b(0x121)]>0x1){let _0x45bd11=_0x5c2d8a[_0x5c2d8a[_0x5e8b9b(0x121)]-0x1],_0x3b39ec=_0x5c2d8a[0x0],_0x109ed3=_0x45bd11[_0x5e8b9b(0x117)]??_0x45bd11,_0x35f028=_0x3b39ec['in']??_0x3b39ec;_0x467cc5[_0x5e8b9b(0x171)]('C\x20'+k(A(_0x109ed3,_0x2881fb))+'\x20'+k(A(_0x35f028,_0x2881fb))+'\x20'+k(A(_0x3b39ec,_0x2881fb))),_0x467cc5['push']('Z');}return _0x467cc5[_0x5e8b9b(0x11d)]('\x20');}function B(_0x903639,_0x4e7f19){const _0x3f00ab=_0x4bf3b2;let _0x2275cb=_0x903639[_0x3f00ab(0x15f)][_0x3f00ab(0x11f)](_0x495010=>A(_0x495010,_0x4e7f19));if(_0x2275cb[_0x3f00ab(0x121)]===0x0)return'';if(_0x2275cb[_0x3f00ab(0x121)]===0x1)return'M\x20'+k(_0x2275cb[0x0]);let _0x38ce2c=['M\x20'+k(_0x2275cb[0x0])];for(let _0x2339d4=0x0;_0x2339d4<_0x2275cb[_0x3f00ab(0x121)]-0x1;_0x2339d4++){let _0x2e0c81=_0x2275cb[_0x2339d4],_0x2ce102=_0x2275cb[_0x2339d4+0x1],_0x350d64=_0x2275cb[_0x2339d4-0x1]??_0x2e0c81,_0x6b387b=_0x2275cb[_0x2339d4+0x2]??_0x2ce102,_0x5ebd85={'x':_0x2e0c81['x']+(_0x2ce102['x']-_0x350d64['x'])/0x6,'y':_0x2e0c81['y']+(_0x2ce102['y']-_0x350d64['y'])/0x6},_0x10371a={'x':_0x2ce102['x']-(_0x6b387b['x']-_0x2e0c81['x'])/0x6,'y':_0x2ce102['y']-(_0x6b387b['y']-_0x2e0c81['y'])/0x6};_0x38ce2c[_0x3f00ab(0x171)]('C\x20'+k(_0x5ebd85)+'\x20'+k(_0x10371a)+'\x20'+k(_0x2ce102));}return _0x38ce2c[_0x3f00ab(0x11d)]('\x20');}function V(_0x32a986,_0x245eda){return _0x32a986['kind']==='pen'?z(_0x32a986,_0x245eda):B(_0x32a986,_0x245eda);}function H(_0x24c528,_0x3c60a7){const _0x64f07d=_0x4bf3b2;return _0x3c60a7!=null&&_0x3c60a7['color']?_0x3c60a7[_0x64f07d(0x170)]:_0x24c528[_0x64f07d(0x126)]===_0x64f07d(0x130)?_0x64f07d(0x148):_0x24c528[_0x64f07d(0x170)];}function U(_0xe9115b,_0xa647f2){const _0x3c9073=_0x4bf3b2;return(_0xa647f2==null?void 0x0:_0xa647f2[_0x3c9073(0x10c)])===void 0x0?_0xe9115b[_0x3c9073(0x126)]===_0x3c9073(0x130)?0x2:_0xe9115b[_0x3c9073(0x10c)]:_0xa647f2[_0x3c9073(0x10c)];}function W(_0x596ad2,_0x22d6b1){const _0x1f8c5b=_0x4bf3b2;return(_0x22d6b1==null?void 0x0:_0x22d6b1[_0x1f8c5b(0x12b)])===void 0x0?_0x596ad2[_0x1f8c5b(0x126)]===_0x1f8c5b(0x130)?void 0x0:_0x596ad2[_0x1f8c5b(0x12b)]:_0x22d6b1[_0x1f8c5b(0x12b)];}function oe(_0x1a09f7,_0x1cff57){const _0xcbf50a=_0x4bf3b2;let _0x1552d2=R(_0x1a09f7),_0x15bd36=V(_0x1a09f7,{'x':_0x1552d2['left'],'y':_0x1552d2[_0xcbf50a(0x166)]}),_0x12a150=_0x1a09f7[_0xcbf50a(0x126)]==='pen'&&_0x1a09f7[_0xcbf50a(0x180)],_0x223481=_0x1cff57==null?void 0x0:_0x1cff57[_0xcbf50a(0x152)];return{'shapeType':e[_0xcbf50a(0x141)][_0xcbf50a(0x14a)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1552d2[_0xcbf50a(0x10c)],'h':_0x1552d2[_0xcbf50a(0x116)],'fill':_0x12a150?_0xcbf50a(0x176):'none','stroke':!0x0,'data':_0x15bd36,'dataArray':K(_0x1a09f7,{'x':_0x1552d2[_0xcbf50a(0x164)],'y':_0x1552d2[_0xcbf50a(0x166)]})}]},'fill':_0x12a150&&_0x223481?{'color':_0x223481,'fillType':e[_0xcbf50a(0x16c)][_0xcbf50a(0x184)]}:{'fillType':e['ShapeFillEnum']['NoFill']},'stroke':{'color':H(_0x1a09f7,_0x1cff57),'width':U(_0x1a09f7,_0x1cff57),'opacity':W(_0x1a09f7,_0x1cff57),'lineStrokeType':e[_0xcbf50a(0x158)]['SolidLine'],'capType':e[_0xcbf50a(0x136)][_0xcbf50a(0x157)],'lineJoinType':e[_0xcbf50a(0x160)][_0xcbf50a(0x157)]}};}function G(_0x2a97c1,_0xf2627f){return{'x':_0x2a97c1['x']-_0xf2627f['x'],'y':_0x2a97c1['y']-_0xf2627f['y']};}function K(_0xbc6094,_0x4c6013){const _0x57ef73=_0x4bf3b2;if(_0xbc6094[_0x57ef73(0x126)]===_0x57ef73(0x130)){let _0x502e40=_0xbc6094['anchors'];if(_0x502e40[_0x57ef73(0x121)]===0x0)return[];let _0x2a7485=G(_0x502e40[0x0],_0x4c6013),_0x5defc2=[{'command':'M','points':[_0x2a7485['x'],_0x2a7485['y']]}];for(let _0x14584f=0x1;_0x14584f<_0x502e40[_0x57ef73(0x121)];_0x14584f++){let _0x411cc2=_0x502e40[_0x14584f-0x1],_0x1f10f7=_0x502e40[_0x14584f],_0x330033=G(_0x411cc2['out']??_0x411cc2,_0x4c6013),_0x1bade5=G(_0x1f10f7['in']??_0x1f10f7,_0x4c6013),_0x4a86b2=G(_0x1f10f7,_0x4c6013);_0x5defc2[_0x57ef73(0x171)]({'command':'C','points':[_0x330033['x'],_0x330033['y'],_0x1bade5['x'],_0x1bade5['y'],_0x4a86b2['x'],_0x4a86b2['y']]});}if(_0xbc6094[_0x57ef73(0x180)]&&_0x502e40['length']>0x1){let _0x1ad571=_0x502e40[_0x502e40[_0x57ef73(0x121)]-0x1],_0x1cb9c5=_0x502e40[0x0],_0x5829a2=G(_0x1ad571[_0x57ef73(0x117)]??_0x1ad571,_0x4c6013),_0x5e4192=G(_0x1cb9c5['in']??_0x1cb9c5,_0x4c6013),_0x2225fa=G(_0x1cb9c5,_0x4c6013);_0x5defc2[_0x57ef73(0x171)]({'command':'C','points':[_0x5829a2['x'],_0x5829a2['y'],_0x5e4192['x'],_0x5e4192['y'],_0x2225fa['x'],_0x2225fa['y']]}),_0x5defc2[_0x57ef73(0x171)]({'command':'z','points':[]});}return _0x5defc2;}let _0x16d306=_0xbc6094[_0x57ef73(0x15f)]['map'](_0x2bc3dc=>G(_0x2bc3dc,_0x4c6013));if(_0x16d306[_0x57ef73(0x121)]===0x0)return[];let _0xaac3e6=[{'command':'M','points':[_0x16d306[0x0]['x'],_0x16d306[0x0]['y']]}];for(let _0x38e64c=0x0;_0x38e64c<_0x16d306['length']-0x1;_0x38e64c++){let _0x2a9bc8=_0x16d306[_0x38e64c],_0x13b816=_0x16d306[_0x38e64c+0x1],_0x24fc7a=_0x16d306[_0x38e64c-0x1]??_0x2a9bc8,_0x7c7997=_0x16d306[_0x38e64c+0x2]??_0x13b816,_0x34a273={'x':_0x2a9bc8['x']+(_0x13b816['x']-_0x24fc7a['x'])/0x6,'y':_0x2a9bc8['y']+(_0x13b816['y']-_0x24fc7a['y'])/0x6},_0x403f74={'x':_0x13b816['x']-(_0x7c7997['x']-_0x2a9bc8['x'])/0x6,'y':_0x13b816['y']-(_0x7c7997['y']-_0x2a9bc8['y'])/0x6};_0xaac3e6[_0x57ef73(0x171)]({'command':'C','points':[_0x34a273['x'],_0x34a273['y'],_0x403f74['x'],_0x403f74['y'],_0x13b816['x'],_0x13b816['y']]});}return _0xaac3e6;}function q(_0x55e691){const _0x55fc07=_0x4bf3b2;let {model:_0x2a9ca5,sourceModel:_0x7bf0b1=_0x2a9ca5,style:_0x51649e}=_0x55e691,_0x45e495=_0x55e691[_0x55fc07(0x14e)]??_0x2a9ca5['kind'],_0xb9b05b=R(_0x2a9ca5),_0x73142d=_0x2a9ca5[_0x55fc07(0x126)]===_0x55fc07(0x130)&&_0x45e495!==_0x55fc07(0x130)?_0x2a9ca5:void 0x0;return{'transform':{..._0xb9b05b,'rotation':0x0},'shapeData':oe(_0x2a9ca5,_0x51649e),'ink':{'version':0x1,'tool':_0x45e495,'sourceModel':_0x7bf0b1,..._0x73142d?{'editModel':_0x73142d}:{},'normalizedBounds':_0xb9b05b}};}var se=_0x4bf3b2(0x114),ce=_0x4bf3b2(0x179);function J(_0x2697cd){'@babel/helpers - typeof';const _0x209231=_0x4bf3b2;return J=typeof Symbol==_0x209231(0x17e)&&typeof Symbol[_0x209231(0x165)]==_0x209231(0x118)?function(_0x16d5db){return typeof _0x16d5db;}:function(_0x8fece9){const _0x28197b=_0x209231;return _0x8fece9&&typeof Symbol==_0x28197b(0x17e)&&_0x8fece9[_0x28197b(0x169)]===Symbol&&_0x8fece9!==Symbol[_0x28197b(0x13f)]?_0x28197b(0x118):typeof _0x8fece9;},J(_0x2697cd);}function le(_0x12f39e,_0xe1ba1e){const _0x215d6e=_0x4bf3b2;if(J(_0x12f39e)!='object'||!_0x12f39e)return _0x12f39e;var _0x414699;if(typeof Symbol<'u'&&(_0x414699=_0x12f39e[Symbol[_0x215d6e(0x15e)]])!==void 0x0){var _0x46d68c=_0x414699[_0x215d6e(0x112)](_0x12f39e,_0xe1ba1e||'default');if(J(_0x46d68c)!=_0x215d6e(0x153))return _0x46d68c;throw TypeError(_0x215d6e(0x181));}return(_0xe1ba1e===_0x215d6e(0x175)?String:Number)(_0x12f39e);}function ue(_0x18b1c0){const _0xfa3104=_0x4bf3b2;var _0x7fecfc=le(_0x18b1c0,_0xfa3104(0x175));return J(_0x7fecfc)==_0xfa3104(0x118)?_0x7fecfc:_0x7fecfc+'';}function Y(_0x3014c6,_0x387344,_0x562a3c){const _0x4d61bc=_0x4bf3b2;return(_0x387344=ue(_0x387344))in _0x3014c6?Object[_0x4d61bc(0x159)](_0x3014c6,_0x387344,{'value':_0x562a3c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3014c6[_0x387344]=_0x562a3c,_0x3014c6;}const X=(0x0,n[_0x4bf3b2(0x173)])(_0x4bf3b2(0x185));var de=class{constructor(){const _0x45be97=_0x4bf3b2;Y(this,_0x45be97(0x144),[]);}[_0x4bf3b2(0x14c)](_0x52e6eb){const _0x2f6cb7=_0x4bf3b2;return this[_0x2f6cb7(0x144)]['push'](_0x52e6eb),(0x0,n[_0x2f6cb7(0x187)])(()=>{const _0x2cb357=_0x2f6cb7;let _0x367161=this[_0x2cb357(0x144)][_0x2cb357(0x178)](_0x52e6eb);_0x367161>=0x0&&this[_0x2cb357(0x144)][_0x2cb357(0x12c)](_0x367161,0x1);});}[_0x4bf3b2(0x111)](_0x561cbe){const _0x304ce0=_0x4bf3b2;for(let _0xc93b8f of this[_0x304ce0(0x144)])if(_0xc93b8f[_0x304ce0(0x111)](_0x561cbe))return!0x0;return!0x1;}async[_0x4bf3b2(0x11b)](_0x12d305){const _0x516dee=_0x4bf3b2;for(let _0x17f0de of this[_0x516dee(0x144)])if(_0x17f0de[_0x516dee(0x11b)]&&await _0x17f0de[_0x516dee(0x11b)](_0x12d305))return!0x0;return!0x1;}};const fe={'id':_0x4bf3b2(0x162),'type':n[_0x4bf3b2(0x16f)][_0x4bf3b2(0x186)],'handler':(_0x22af2c,_0x5e93e9)=>_0x5e93e9?_0x22af2c[_0x4bf3b2(0x17f)](X)['beginInkMode'](_0x5e93e9):!0x1},Z={};function _0x4fd4(_0x3f1f32,_0x45014e){_0x3f1f32=_0x3f1f32-0x10a;const _0x5199b6=_0x5199();let _0x4fd464=_0x5199b6[_0x3f1f32];return _0x4fd464;}function Q(_0x45fcec,_0x26f47c){return function(_0x3decc2,_0xf6c69f){_0x26f47c(_0x3decc2,_0xf6c69f,_0x45fcec);};}function pe(_0x2c929f,_0x231cc0,_0x23e08f,_0x5a138b){const _0x3be1fd=_0x4bf3b2;var _0x4cc6e2=arguments['length'],_0x385401=_0x4cc6e2<0x3?_0x231cc0:_0x5a138b===null?_0x5a138b=Object[_0x3be1fd(0x182)](_0x231cc0,_0x23e08f):_0x5a138b,_0x177a11;if(typeof Reflect==_0x3be1fd(0x153)&&typeof Reflect[_0x3be1fd(0x12d)]=='function')_0x385401=Reflect['decorate'](_0x2c929f,_0x231cc0,_0x23e08f,_0x5a138b);else{for(var _0x463c73=_0x2c929f[_0x3be1fd(0x121)]-0x1;_0x463c73>=0x0;_0x463c73--)(_0x177a11=_0x2c929f[_0x463c73])&&(_0x385401=(_0x4cc6e2<0x3?_0x177a11(_0x385401):_0x4cc6e2>0x3?_0x177a11(_0x231cc0,_0x23e08f,_0x385401):_0x177a11(_0x231cc0,_0x23e08f))||_0x385401);}return _0x4cc6e2>0x3&&_0x385401&&Object['defineProperty'](_0x231cc0,_0x23e08f,_0x385401),_0x385401;}let $=class extends n[_0x4bf3b2(0x10e)]{constructor(_0x2320e3=Z,_0x8b2f09,_0x2eed3d,_0x428f56){const _0x23d290=_0x4bf3b2;super(),this['_config']=_0x2320e3,this['_injector']=_0x8b2f09,this[_0x23d290(0x12a)]=_0x2eed3d,this[_0x23d290(0x174)]=_0x428f56;let {..._0x55dc15}=(0x0,n[_0x23d290(0x10d)])({},Z,this['_config']);this[_0x23d290(0x174)][_0x23d290(0x123)]('ink.config',_0x55dc15);}['onStarting'](){const _0x397e01=_0x4bf3b2;[[X,{'useClass':de}]][_0x397e01(0x132)](_0x389003=>this[_0x397e01(0x14d)]['add'](_0x389003)),this[_0x397e01(0x13c)](this[_0x397e01(0x12a)][_0x397e01(0x115)](fe));}};Y($,_0x4bf3b2(0x134),_0x4bf3b2(0x155)),Y($,_0x4bf3b2(0x10f),se),Y($,_0x4bf3b2(0x156),ce),Y($,_0x4bf3b2(0x177),n[_0x4bf3b2(0x163)][_0x4bf3b2(0x124)]),$=pe([(0x0,n[_0x4bf3b2(0x151)])(t[_0x4bf3b2(0x16b)]),Q(0x1,(0x0,n[_0x4bf3b2(0x15d)])(n[_0x4bf3b2(0x143)])),Q(0x2,n[_0x4bf3b2(0x129)]),Q(0x3,n[_0x4bf3b2(0x150)])],$),exports[_0x4bf3b2(0x11c)]=X,Object[_0x4bf3b2(0x159)](exports,_0x4bf3b2(0x168),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x4bf3b2(0x13e)]=q,exports['convertBrushModelToPenModel']=re,exports[_0x4bf3b2(0x139)]=E,exports['deleteInkPenAnchor']=w,exports[_0x4bf3b2(0x138)]=ie,exports['findClosestInkPenSegment']=S,exports[_0x4bf3b2(0x133)]=R,exports[_0x4bf3b2(0x12f)]=x,exports[_0x4bf3b2(0x154)]=C,exports[_0x4bf3b2(0x11e)]=p,exports[_0x4bf3b2(0x172)]=ae,exports[_0x4bf3b2(0x119)]=T;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x46a672=_0x4864;(function(_0x347737,_0x5a5e3c){const _0x43fba8=_0x4864,_0x1d80d3=_0x347737();while(!![]){try{const _0x469c17=parseInt(_0x43fba8(0xba))/0x1+parseInt(_0x43fba8(0x110))/0x2+parseInt(_0x43fba8(0xec))/0x3*(-parseInt(_0x43fba8(0xc8))/0x4)+-parseInt(_0x43fba8(0x10e))/0x5+parseInt(_0x43fba8(0xfc))/0x6+-parseInt(_0x43fba8(0xd7))/0x7+parseInt(_0x43fba8(0xb9))/0x8;if(_0x469c17===_0x5a5e3c)break;else _0x1d80d3['push'](_0x1d80d3['shift']());}catch(_0x3f00b9){_0x1d80d3['push'](_0x1d80d3['shift']());}}}(_0x119e,0xaecde));import{ShapeFillEnum as _0x143b58,ShapeLineCapEnum as _0x138f8d,ShapeLineJoinEnum as _0xd35926,ShapeLineTypeEnum as _0x13bb6c,ShapeTypeEnum as _0x14cfe9}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x266d29}from'@univerjs-pro/license';import{CommandType as _0x1877b6,DependentOn as _0x3399a9,ICommandService as _0x41ee75,IConfigService as _0x161cc6,Inject as _0xa2debd,Injector as _0x119e36,Plugin as _0x100346,UniverInstanceType as _0x5d87b6,createIdentifier as _0x2928cc,merge as _0x346288,toDisposable as _0x4307f3}from'@univerjs/core';const g=0.0001;function _(_0x1cbc7e){return{'x':_0x1cbc7e['x'],'y':_0x1cbc7e['y']};}function _0x119e(){const _0x1a7d20=['segmentIndex','max','symmetric','map','createId','createCustomShape','6563592PKrkmY','UNIVER_INK_PLUGIN','1.5.0','closed','round','points','anchorId','forEach','add','endIndex','onStarting','smooth','packageName','distance','sqrt','string','getOwnPropertyDescriptor','NoFill','2287935XexabH','#f54a45','725604QTumNh','registerAdapter','min','9797304JNGlhy','327115pUTEgE','indexOf','startIndex','pluginName','tolerance','splice','tool','none','_injector','width','beginInkMode','object','top','out','4OadfoJ','_config','prototype','ink.config','_commandService','slice','color','fillColor','anchor','anchors','free','get','ink.operation.start','end','constructor','7857710lrLNOM','kind','find','length','push','point','corner','pointType','iterator','decorate','symbol','left','join','function','Rect','opacity','findIndex','setConfig','abs','height','defineProperty','2137191ytWgkx','Round','norm','_adapters','pen','default','hypot','start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ratio'];_0x119e=function(){return _0x1a7d20;};return _0x119e();}function v(_0x3d68ab){const _0x1bd2a1=_0x4864;return{..._0x3d68ab,'in':_0x3d68ab['in']?_(_0x3d68ab['in']):void 0x0,'out':_0x3d68ab['out']?_(_0x3d68ab[_0x1bd2a1(0xc7)]):void 0x0};}function y(_0x1275cb){const _0x2c3984=_0x4864;return{'kind':_0x2c3984(0xf0),'closed':_0x1275cb['closed'],'anchors':_0x1275cb[_0x2c3984(0xd1)]['map'](v)};}function b(_0x32c32f,_0x17b194,_0x17c64e){return{'x':_0x32c32f['x']+(_0x17b194['x']-_0x32c32f['x'])*_0x17c64e,'y':_0x32c32f['y']+(_0x17b194['y']-_0x32c32f['y'])*_0x17c64e};}function x(_0x570539,_0x1068f8){const _0xf360e6=_0x4864;return Math[_0xf360e6(0xf2)](_0x570539['x']-_0x1068f8['x'],_0x570539['y']-_0x1068f8['y']);}function S(_0x223a37){const _0x37b964=_0x4864;let _0x43103f=Math[_0x37b964(0xf2)](_0x223a37['x'],_0x223a37['y']);return _0x43103f<g?{'x':0x1,'y':0x0}:{'x':_0x223a37['x']/_0x43103f,'y':_0x223a37['y']/_0x43103f};}function C(_0x4c7e50,_0xe9fc4f,_0x51bb31=x(_0x4c7e50,_0xe9fc4f)){let _0x57c5ca=S({'x':_0x4c7e50['x']-_0xe9fc4f['x'],'y':_0x4c7e50['y']-_0xe9fc4f['y']});return{'x':_0x4c7e50['x']+_0x57c5ca['x']*_0x51bb31,'y':_0x4c7e50['y']+_0x57c5ca['y']*_0x51bb31};}function w(_0x2368fe,_0x466283){const _0x2c7c84=_0x4864;let {anchors:_0xdee917}=_0x2368fe;return _0xdee917[_0x2c7c84(0xda)]<0x2||_0x466283<0x0?null:_0x466283<_0xdee917['length']-0x1?{'startIndex':_0x466283,'endIndex':_0x466283+0x1,'start':_0xdee917[_0x466283],'end':_0xdee917[_0x466283+0x1]}:_0x2368fe[_0x2c7c84(0xff)]&&_0x466283===_0xdee917['length']-0x1?{'startIndex':_0xdee917[_0x2c7c84(0xda)]-0x1,'endIndex':0x0,'start':_0xdee917[_0xdee917[_0x2c7c84(0xda)]-0x1],'end':_0xdee917[0x0]}:null;}function T(_0x2a3943,_0x22d871){const _0x1a5ef4=_0x4864;let _0x127efb=w(_0x2a3943,_0x22d871);return _0x127efb?[_0x127efb[_0x1a5ef4(0xf3)],_0x127efb[_0x1a5ef4(0xf3)]['out']??_0x127efb[_0x1a5ef4(0xf3)],_0x127efb[_0x1a5ef4(0xd5)]['in']??_0x127efb['end'],_0x127efb[_0x1a5ef4(0xd5)]]:null;}function te(_0x4ca696,_0x306903){const _0x45b236=_0x4864;return _0x306903===_0x45b236(0xd0)?_0x4ca696:_0x4ca696[_0x306903]??null;}function E(_0x1007e9,_0x146e3e,_0x5b16d4){const _0x363756=_0x4864;return _0x5b16d4===_0x363756(0xd0)||_0x1007e9[_0x363756(0xff)]?!0x0:_0x5b16d4==='in'?_0x146e3e>0x0:_0x146e3e<_0x1007e9[_0x363756(0xd1)][_0x363756(0xda)]-0x1;}function D(_0x2d461a,_0x20874e){let [_0x4a50f7,_0x3b0cd6,_0x193d52,_0x4efa2a]=_0x2d461a,_0x2937d6=b(_0x4a50f7,_0x3b0cd6,_0x20874e),_0x40c317=b(_0x3b0cd6,_0x193d52,_0x20874e),_0x57fce9=b(_0x193d52,_0x4efa2a,_0x20874e);return b(b(_0x2937d6,_0x40c317,_0x20874e),b(_0x40c317,_0x57fce9,_0x20874e),_0x20874e);}function ne(_0x4436c9,_0xb85bf3){let [_0x35c1c7,_0x4e76b8,_0xad73ca,_0x5524aa]=_0x4436c9,_0x1e5219=b(_0x35c1c7,_0x4e76b8,_0xb85bf3),_0x1bff35=b(_0x4e76b8,_0xad73ca,_0xb85bf3),_0x2bcdb4=b(_0xad73ca,_0x5524aa,_0xb85bf3),_0x40a66e=b(_0x1e5219,_0x1bff35,_0xb85bf3),_0x2c2ce9=b(_0x1bff35,_0x2bcdb4,_0xb85bf3),_0x26058f=b(_0x40a66e,_0x2c2ce9,_0xb85bf3);return{'left':[_0x35c1c7,_0x1e5219,_0x40a66e,_0x26058f],'right':[_0x26058f,_0x2c2ce9,_0x2bcdb4,_0x5524aa]};}function O(_0x2f0493,_0x21f58d,_0x8062f7){const _0x5952f9=_0x4864;let _0x1d348f=_0x8062f7['x']-_0x21f58d['x'],_0x2ad1d8=_0x8062f7['y']-_0x21f58d['y'],_0x2a6308=_0x1d348f*_0x1d348f+_0x2ad1d8*_0x2ad1d8,_0x10be02=_0x2a6308<=g?0x0:Math[_0x5952f9(0xf7)](0x0,Math[_0x5952f9(0x112)](0x1,((_0x2f0493['x']-_0x21f58d['x'])*_0x1d348f+(_0x2f0493['y']-_0x21f58d['y'])*_0x2ad1d8)/_0x2a6308)),_0x4c8663={'x':_0x21f58d['x']+_0x1d348f*_0x10be02,'y':_0x21f58d['y']+_0x2ad1d8*_0x10be02};return{'point':_0x4c8663,'ratio':_0x10be02,'distance':x(_0x2f0493,_0x4c8663)};}function re(_0x4ef569,_0x3b4179,_0x293d2b){const _0x15c174=_0x4864;return O(_0x4ef569,_0x3b4179,_0x293d2b)[_0x15c174(0x109)]**0x2;}function k(_0x1d2864,_0x5c731a){const _0x23aefb=_0x4864;if(_0x1d2864['length']<=0x2)return _0x1d2864[_0x23aefb(0xf9)](_);let _0x1a2417=0x0,_0x2bc52e=0x0,_0x5dd2cf=_0x1d2864[0x0],_0x4815b5=_0x1d2864[_0x1d2864[_0x23aefb(0xda)]-0x1],_0x13a89b=_0x5c731a*_0x5c731a;for(let _0x3f30ad=0x1;_0x3f30ad<_0x1d2864[_0x23aefb(0xda)]-0x1;_0x3f30ad++){let _0x302844=re(_0x1d2864[_0x3f30ad],_0x5dd2cf,_0x4815b5);_0x302844>_0x1a2417&&(_0x1a2417=_0x302844,_0x2bc52e=_0x3f30ad);}if(_0x1a2417<=_0x13a89b)return[_(_0x5dd2cf),_(_0x4815b5)];let _0x5777ec=k(_0x1d2864[_0x23aefb(0xcd)](0x0,_0x2bc52e+0x1),_0x5c731a),_0x62fe3b=k(_0x1d2864[_0x23aefb(0xcd)](_0x2bc52e),_0x5c731a);return[..._0x5777ec['slice'](0x0,-0x1),..._0x62fe3b];}function ie(_0x48344a,_0x4d695f){let _0x558a86=_0x48344a[_0x4d695f],_0x8a0995=_0x48344a[_0x4d695f+0x1],_0x1bbb5e=_0x48344a[_0x4d695f-0x1]??_0x558a86;return{'x':_0x558a86['x']+(_0x8a0995['x']-_0x1bbb5e['x'])/0x6,'y':_0x558a86['y']+(_0x8a0995['y']-_0x1bbb5e['y'])/0x6};}function A(_0x175032,_0x332736){let _0x38ad84=_0x175032[_0x332736],_0x4062d2=_0x175032[_0x332736-0x1],_0x5993ec=_0x175032[_0x332736+0x1]??_0x38ad84;return{'x':_0x38ad84['x']-(_0x5993ec['x']-_0x4062d2['x'])/0x6,'y':_0x38ad84['y']-(_0x5993ec['y']-_0x4062d2['y'])/0x6};}function j(_0x50ce5b,_0x480c67){const _0x32a70d=_0x4864;let _0x37e00d=_0x50ce5b[_0x32a70d(0xd1)][_0x480c67],_0x1c2efa=_0x50ce5b[_0x32a70d(0xd1)][_0x480c67-0x1]??(_0x50ce5b['closed']?_0x50ce5b[_0x32a70d(0xd1)][_0x50ce5b[_0x32a70d(0xd1)][_0x32a70d(0xda)]-0x1]:null),_0x3035ae=_0x50ce5b[_0x32a70d(0xd1)][_0x480c67+0x1]??(_0x50ce5b[_0x32a70d(0xff)]?_0x50ce5b[_0x32a70d(0xd1)][0x0]:null),_0x34a335=_0x1c2efa&&_0x3035ae?S({'x':_0x3035ae['x']-_0x1c2efa['x'],'y':_0x3035ae['y']-_0x1c2efa['y']}):_0x3035ae?S({'x':_0x3035ae['x']-_0x37e00d['x'],'y':_0x3035ae['y']-_0x37e00d['y']}):_0x1c2efa?S({'x':_0x37e00d['x']-_0x1c2efa['x'],'y':_0x37e00d['y']-_0x1c2efa['y']}):{'x':0x1,'y':0x0},_0x2bf319=_0x1c2efa&&_0x3035ae?Math[_0x32a70d(0xf7)](0x32,x(_0x1c2efa,_0x3035ae)/0x4):0x32;return{'in':{'x':_0x37e00d['x']-_0x34a335['x']*_0x2bf319,'y':_0x37e00d['y']-_0x34a335['y']*_0x2bf319},'out':{'x':_0x37e00d['x']+_0x34a335['x']*_0x2bf319,'y':_0x37e00d['y']+_0x34a335['y']*_0x2bf319}};}function M(_0x3b3083,_0x2d214d){const _0x52077c=_0x4864;let _0x544f3c=_0x3b3083[_0x2d214d],_0x13592a=_0x2d214d==='in'?'out':'in',_0x507fef=_0x3b3083[_0x13592a];_0x544f3c&&(_0x3b3083[_0x52077c(0xde)]===_0x52077c(0xf8)?_0x3b3083[_0x13592a]=C(_0x3b3083,_0x544f3c):_0x3b3083[_0x52077c(0xde)]===_0x52077c(0x107)&&(_0x3b3083[_0x13592a]=C(_0x3b3083,_0x544f3c,_0x507fef?x(_0x3b3083,_0x507fef):x(_0x3b3083,_0x544f3c))));}function ae(_0x3cb302,_0x1a154c){const _0x314872=_0x4864;let _0x924e33=y(_0x3cb302);return!_0x1a154c||_0x924e33[_0x314872(0xff)]||_0x924e33[_0x314872(0xd1)][_0x314872(0xda)]===0x0||_0x924e33[_0x314872(0xd1)][_0x314872(0xdb)]({'id':'__ink-preview-anchor__','x':_0x1a154c['x'],'y':_0x1a154c['y'],'pointType':_0x314872(0xdd)}),_0x924e33;}function oe(_0x202ea3,_0x366f73={}){const _0x412eec=_0x4864;let _0x100f4a=Math[_0x412eec(0xf7)](0x0,_0x366f73[_0x412eec(0xbe)]??Math[_0x412eec(0xf7)](0x4,_0x202ea3[_0x412eec(0xc3)]*0.35)),_0x548115=_0x366f73[_0x412eec(0xfa)]??(_0x2d56d5=>'ink-centerline-'+_0x2d56d5),_0x22e118=k(_0x202ea3[_0x412eec(0x101)],_0x100f4a),_0x1cc5e5=_0x22e118['map']((_0x1fbf81,_0x15c6a8)=>({'id':_0x548115(_0x15c6a8),'x':_0x1fbf81['x'],'y':_0x1fbf81['y'],'pointType':'free'}));for(let _0x48f298=0x0;_0x48f298<_0x1cc5e5[_0x412eec(0xda)]-0x1;_0x48f298++)_0x1cc5e5[_0x48f298][_0x412eec(0xc7)]=ie(_0x22e118,_0x48f298),_0x1cc5e5[_0x48f298+0x1]['in']=A(_0x22e118,_0x48f298+0x1);return{'kind':_0x412eec(0xf0),'closed':!0x1,'anchors':_0x1cc5e5};}function se(_0x47068e,_0x115a99,_0x305029){const _0x38d6d2=_0x4864;let _0x10c205=null,_0xfa1ae8=[_0x38d6d2(0xd0),'in',_0x38d6d2(0xc7)];return _0x47068e['anchors']['forEach']((_0x3914c8,_0x4975c7)=>{const _0x3f9148=_0x38d6d2;_0xfa1ae8[_0x3f9148(0x103)](_0xd5de7b=>{const _0x87f723=_0x3f9148;if(!E(_0x47068e,_0x4975c7,_0xd5de7b))return;let _0x2b7fbb=te(_0x3914c8,_0xd5de7b);if(!_0x2b7fbb)return;let _0x548c48=x(_0x115a99,_0x2b7fbb);_0x548c48>_0x305029||_0x10c205&&_0x548c48>=_0x10c205[_0x87f723(0x109)]||(_0x10c205={'handle':{'kind':_0xd5de7b,'anchorId':_0x3914c8['id']},'point':_(_0x2b7fbb),'distance':_0x548c48});});}),_0x10c205;}function ce(_0x30ba58,_0x37cc4f,_0x3c061b){const _0x13bba4=_0x4864;let _0x237015=null,_0x3d8c6a=_0x30ba58['closed']?_0x30ba58[_0x13bba4(0xd1)][_0x13bba4(0xda)]:Math[_0x13bba4(0xf7)](0x0,_0x30ba58[_0x13bba4(0xd1)][_0x13bba4(0xda)]-0x1);for(let _0x1afe66=0x0;_0x1afe66<_0x3d8c6a;_0x1afe66++){let _0x584a61=T(_0x30ba58,_0x1afe66);if(!_0x584a61)continue;let _0x5af72f=D(_0x584a61,0x0);for(let _0x183755=0x1;_0x183755<=0x20;_0x183755++){let _0xc6d120=D(_0x584a61,_0x183755/0x20),_0x1782fc=O(_0x37cc4f,_0x5af72f,_0xc6d120),_0x1709dd=(_0x183755-0x1+_0x1782fc[_0x13bba4(0xf5)])/0x20;(!_0x237015||_0x1782fc[_0x13bba4(0x109)]<_0x237015[_0x13bba4(0x109)])&&(_0x237015={'segmentIndex':_0x1afe66,'t':_0x1709dd,'point':_0x1782fc[_0x13bba4(0xdc)],'distance':_0x1782fc[_0x13bba4(0x109)]}),_0x5af72f=_0xc6d120;}}return _0x237015&&_0x237015[_0x13bba4(0x109)]<=_0x3c061b?_0x237015:null;}function le(_0x249b7a,_0x4c5f40,_0x257992){const _0xb55d51=_0x4864;let _0x8509cd=y(_0x249b7a),_0x43a5f9=w(_0x8509cd,_0x4c5f40['segmentIndex']),_0x49f567=T(_0x8509cd,_0x4c5f40[_0xb55d51(0xf6)]);if(!_0x43a5f9||!_0x49f567)return _0x8509cd;let _0x138e9c=ne(_0x49f567,Math[_0xb55d51(0xf7)](0x0,Math['min'](0x1,_0x4c5f40['t']))),_0x52a9ad={'id':_0x257992(),'x':_0x138e9c[_0xb55d51(0xe2)][0x3]['x'],'y':_0x138e9c[_0xb55d51(0xe2)][0x3]['y'],'in':_(_0x138e9c['left'][0x2]),'out':_(_0x138e9c['right'][0x1]),'pointType':'free'};return _0x8509cd[_0xb55d51(0xd1)][_0x43a5f9[_0xb55d51(0xbc)]][_0xb55d51(0xc7)]=_(_0x138e9c[_0xb55d51(0xe2)][0x1]),_0x8509cd[_0xb55d51(0xd1)][_0x43a5f9[_0xb55d51(0x105)]]['in']=_(_0x138e9c['right'][0x2]),_0x8509cd['anchors'][_0xb55d51(0xbf)](_0x43a5f9[_0xb55d51(0xbc)]+0x1,0x0,_0x52a9ad),_0x8509cd;}function ue(_0x1a5faa,_0xf45bfc){const _0x3d5825=_0x4864;let _0xfd6d95=y(_0x1a5faa);return _0xfd6d95[_0x3d5825(0xd1)]=_0xfd6d95[_0x3d5825(0xd1)]['filter'](_0x3f36fa=>_0x3f36fa['id']!==_0xf45bfc),_0xfd6d95['closed']&&_0xfd6d95[_0x3d5825(0xd1)][_0x3d5825(0xda)]<0x3&&(_0xfd6d95[_0x3d5825(0xff)]=!0x1),_0xfd6d95;}function N(_0x4762e5,_0x108118,_0x3fbb26){const _0x204aba=_0x4864;let _0x184d2f=y(_0x4762e5),_0x9d93ca=_0x184d2f[_0x204aba(0xd1)][_0x204aba(0xe7)](_0x411205=>_0x411205['id']===_0x108118),_0xb1926e=_0x184d2f[_0x204aba(0xd1)][_0x9d93ca];if(!_0xb1926e)return _0x184d2f;if(_0xb1926e[_0x204aba(0xde)]=_0x3fbb26,_0x3fbb26===_0x204aba(0xdd))return delete _0xb1926e['in'],delete _0xb1926e['out'],_0x184d2f;let _0x32e08e=j(_0x184d2f,_0x9d93ca);if(_0xb1926e['in']=_0xb1926e['in']?_(_0xb1926e['in']):_0x32e08e['in'],_0xb1926e[_0x204aba(0xc7)]=_0xb1926e['out']?_(_0xb1926e['out']):_0x32e08e[_0x204aba(0xc7)],_0x3fbb26===_0x204aba(0xf8)){let _0x24825e=Math[_0x204aba(0xf7)](x(_0xb1926e,_0xb1926e['in']),x(_0xb1926e,_0xb1926e[_0x204aba(0xc7)]),0x32),_0x3790ea=S({'x':_0xb1926e[_0x204aba(0xc7)]['x']-_0xb1926e['x'],'y':_0xb1926e['out']['y']-_0xb1926e['y']});_0xb1926e[_0x204aba(0xc7)]={'x':_0xb1926e['x']+_0x3790ea['x']*_0x24825e,'y':_0xb1926e['y']+_0x3790ea['y']*_0x24825e},_0xb1926e['in']={'x':_0xb1926e['x']-_0x3790ea['x']*_0x24825e,'y':_0xb1926e['y']-_0x3790ea['y']*_0x24825e};}else _0x3fbb26===_0x204aba(0x107)&&M(_0xb1926e,_0x204aba(0xc7));return _0x184d2f;}function P(_0x19bbda,_0x341825){const _0x46e308=_0x4864;let _0x4084f4=_0x19bbda[_0x46e308(0xd1)][_0x46e308(0xd9)](_0x22d233=>_0x22d233['id']===_0x341825),_0x36fa71=(_0x4084f4==null?void 0x0:_0x4084f4['pointType'])??_0x46e308(0xdd);return N(_0x19bbda,_0x341825,_0x36fa71===_0x46e308(0xdd)?_0x46e308(0x107):_0x36fa71==='smooth'?_0x46e308(0xf8):_0x36fa71===_0x46e308(0xf8)?_0x46e308(0xd2):_0x46e308(0xdd));}function F(_0x4a97a2,_0x3ba4ce,_0x521c9a){const _0x6cfb66=_0x4864;let _0x41f5f2=y(_0x4a97a2),_0x138fd3=_0x41f5f2[_0x6cfb66(0xd1)][_0x6cfb66(0xd9)](_0x515c04=>_0x515c04['id']===_0x3ba4ce[_0x6cfb66(0x102)]);if(!_0x138fd3)return _0x41f5f2;if(_0x3ba4ce[_0x6cfb66(0xd8)]==='anchor'){let _0x25338f={'x':_0x521c9a['x']-_0x138fd3['x'],'y':_0x521c9a['y']-_0x138fd3['y']};return _0x138fd3['x']=_0x521c9a['x'],_0x138fd3['y']=_0x521c9a['y'],_0x138fd3['in']&&={'x':_0x138fd3['in']['x']+_0x25338f['x'],'y':_0x138fd3['in']['y']+_0x25338f['y']},_0x138fd3[_0x6cfb66(0xc7)]&&={'x':_0x138fd3[_0x6cfb66(0xc7)]['x']+_0x25338f['x'],'y':_0x138fd3[_0x6cfb66(0xc7)]['y']+_0x25338f['y']},_0x41f5f2;}return _0x138fd3[_0x3ba4ce[_0x6cfb66(0xd8)]]=_(_0x521c9a),_0x138fd3[_0x6cfb66(0xde)]===_0x6cfb66(0xdd)&&(_0x138fd3[_0x6cfb66(0xde)]=_0x6cfb66(0xd2)),M(_0x138fd3,_0x3ba4ce['kind']),_0x41f5f2;}const I=1e-9;function L(_0x3acded){const _0x15d13a=_0x4864;let _0x352b02=Math[_0x15d13a(0x100)](_0x3acded*0x2710)/0x2710;return Object['is'](_0x352b02,-0x0)?'0':String(_0x352b02);}function R(_0x450bff){return L(_0x450bff['x'])+'\x20'+L(_0x450bff['y']);}function z(_0x114196,_0x305ba6){return{'x':_0x114196['x']-_0x305ba6['x'],'y':_0x114196['y']-_0x305ba6['y']};}function B(_0x20bb2f,_0x14b3a6,_0x2fa185,_0x40d9c6,_0x47f936){let _0xefe79f=0x1-_0x47f936;return{'x':_0xefe79f*_0xefe79f*_0xefe79f*_0x20bb2f['x']+0x3*_0xefe79f*_0xefe79f*_0x47f936*_0x14b3a6['x']+0x3*_0xefe79f*_0x47f936*_0x47f936*_0x2fa185['x']+_0x47f936*_0x47f936*_0x47f936*_0x40d9c6['x'],'y':_0xefe79f*_0xefe79f*_0xefe79f*_0x20bb2f['y']+0x3*_0xefe79f*_0xefe79f*_0x47f936*_0x14b3a6['y']+0x3*_0xefe79f*_0x47f936*_0x47f936*_0x2fa185['y']+_0x47f936*_0x47f936*_0x47f936*_0x40d9c6['y']};}function V(_0x500cef,_0x3e7304,_0x50432f,_0x5ba659){const _0x7e869b=_0x4864;let _0x7346b3=-_0x500cef+0x3*_0x3e7304-0x3*_0x50432f+_0x5ba659,_0x3be311=0x3*_0x500cef-0x6*_0x3e7304+0x3*_0x50432f,_0xc5c94e=-0x3*_0x500cef+0x3*_0x3e7304,_0xc6b634=[];if(Math[_0x7e869b(0xe9)](_0x7346b3)<I){if(Math[_0x7e869b(0xe9)](_0x3be311)<I)return _0xc6b634;let _0x57e569=-_0xc5c94e/(0x2*_0x3be311);return _0x57e569>0x0&&_0x57e569<0x1&&_0xc6b634[_0x7e869b(0xdb)](_0x57e569),_0xc6b634;}let _0x1b2b10=_0x3be311*_0x3be311-0x3*_0x7346b3*_0xc5c94e;if(_0x1b2b10<0x0)return _0xc6b634;let _0x81032=Math[_0x7e869b(0x10a)](Math['max'](0x0,_0x1b2b10)),_0x1307eb=(-_0x3be311+_0x81032)/(0x3*_0x7346b3),_0x1a4d92=(-_0x3be311-_0x81032)/(0x3*_0x7346b3);return _0x1307eb>0x0&&_0x1307eb<0x1&&_0xc6b634[_0x7e869b(0xdb)](_0x1307eb),_0x1a4d92>0x0&&_0x1a4d92<0x1&&Math[_0x7e869b(0xe9)](_0x1a4d92-_0x1307eb)>I&&_0xc6b634[_0x7e869b(0xdb)](_0x1a4d92),_0xc6b634;}function H(_0x57dc7e,_0x53cdff,_0x176a0e,_0x158ef4,_0x6559a6){const _0x27ad13=_0x4864;_0x57dc7e[_0x27ad13(0xdb)](_0x53cdff,_0x6559a6),new Set([...V(_0x53cdff['x'],_0x176a0e['x'],_0x158ef4['x'],_0x6559a6['x']),...V(_0x53cdff['y'],_0x176a0e['y'],_0x158ef4['y'],_0x6559a6['y'])])[_0x27ad13(0x103)](_0xe0e207=>{const _0x2817dc=_0x27ad13;_0x57dc7e[_0x2817dc(0xdb)](B(_0x53cdff,_0x176a0e,_0x158ef4,_0x6559a6,_0xe0e207));});}function U(_0x2da16f){const _0x2facce=_0x4864;let _0x5bcc5f=_0x2da16f[_0x2facce(0xd1)];if(_0x5bcc5f[_0x2facce(0xda)]<=0x1)return _0x5bcc5f;let _0xae61a1=[];for(let _0x4bef58=0x1;_0x4bef58<_0x5bcc5f[_0x2facce(0xda)];_0x4bef58++){let _0x4f34f4=_0x5bcc5f[_0x4bef58-0x1],_0xb5fc8a=_0x5bcc5f[_0x4bef58];H(_0xae61a1,_0x4f34f4,_0x4f34f4[_0x2facce(0xc7)]??_0x4f34f4,_0xb5fc8a['in']??_0xb5fc8a,_0xb5fc8a);}if(_0x2da16f[_0x2facce(0xff)]&&_0x5bcc5f[_0x2facce(0xda)]>0x1){let _0x58abd6=_0x5bcc5f[_0x5bcc5f[_0x2facce(0xda)]-0x1],_0x1a5d44=_0x5bcc5f[0x0];H(_0xae61a1,_0x58abd6,_0x58abd6['out']??_0x58abd6,_0x1a5d44['in']??_0x1a5d44,_0x1a5d44);}return _0xae61a1;}function de(_0x9c5d3c){const _0x508064=_0x4864;let _0x4a14b4=_0x9c5d3c[_0x508064(0x101)];if(_0x4a14b4['length']<=0x1)return _0x4a14b4;let _0x50338a=[];for(let _0x4cab89=0x0;_0x4cab89<_0x4a14b4[_0x508064(0xda)]-0x1;_0x4cab89++){let _0x17a29f=_0x4a14b4[_0x4cab89],_0x5e0425=_0x4a14b4[_0x4cab89+0x1],_0xf5cdf9=_0x4a14b4[_0x4cab89-0x1]??_0x17a29f,_0x31cb16=_0x4a14b4[_0x4cab89+0x2]??_0x5e0425;H(_0x50338a,_0x17a29f,{'x':_0x17a29f['x']+(_0x5e0425['x']-_0xf5cdf9['x'])/0x6,'y':_0x17a29f['y']+(_0x5e0425['y']-_0xf5cdf9['y'])/0x6},{'x':_0x5e0425['x']-(_0x31cb16['x']-_0x17a29f['x'])/0x6,'y':_0x5e0425['y']-(_0x31cb16['y']-_0x17a29f['y'])/0x6},_0x5e0425);}return _0x50338a;}function fe(_0x5419ce){const _0x3e9aac=_0x4864;return _0x5419ce[_0x3e9aac(0xd8)]===_0x3e9aac(0xf0)?U(_0x5419ce):de(_0x5419ce);}function W(_0x55cd35){const _0x32db89=_0x4864;let _0x521ed9=Math[_0x32db89(0x100)](_0x55cd35*0x2710)/0x2710;return Object['is'](_0x521ed9,-0x0)?0x0:_0x521ed9;}function G(_0x1247ac){const _0x1253d5=_0x4864;let _0xcfc9c0=fe(_0x1247ac);if(_0xcfc9c0[_0x1253d5(0xda)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3b0322=Math[_0x1253d5(0x112)](..._0xcfc9c0[_0x1253d5(0xf9)](_0x5d2dec=>_0x5d2dec['x'])),_0x55efd9=Math[_0x1253d5(0x112)](..._0xcfc9c0[_0x1253d5(0xf9)](_0x3a7484=>_0x3a7484['y'])),_0x25e655=Math[_0x1253d5(0xf7)](..._0xcfc9c0['map'](_0x235ae7=>_0x235ae7['x'])),_0x484eb7=Math[_0x1253d5(0xf7)](..._0xcfc9c0[_0x1253d5(0xf9)](_0x4609a2=>_0x4609a2['y']));return{'left':W(_0x3b0322),'top':W(_0x55efd9),'width':W(Math[_0x1253d5(0xf7)](0x1,_0x25e655-_0x3b0322)),'height':W(Math[_0x1253d5(0xf7)](0x1,_0x484eb7-_0x55efd9))};}function pe(_0x2fcc18,_0x104182){const _0x2c4458=_0x4864;let _0x45779e=_0x2fcc18[_0x2c4458(0xd1)];if(_0x45779e['length']===0x0)return'';let _0x2c7cd5=['M\x20'+R(z(_0x45779e[0x0],_0x104182))];for(let _0x11bfeb=0x1;_0x11bfeb<_0x45779e[_0x2c4458(0xda)];_0x11bfeb++){let _0x5b9862=_0x45779e[_0x11bfeb-0x1],_0x173a0c=_0x45779e[_0x11bfeb],_0x55354f=_0x5b9862[_0x2c4458(0xc7)]??_0x5b9862,_0x165ecd=_0x173a0c['in']??_0x173a0c;_0x2c7cd5[_0x2c4458(0xdb)]('C\x20'+R(z(_0x55354f,_0x104182))+'\x20'+R(z(_0x165ecd,_0x104182))+'\x20'+R(z(_0x173a0c,_0x104182)));}if(_0x2fcc18[_0x2c4458(0xff)]&&_0x45779e[_0x2c4458(0xda)]>0x1){let _0x204150=_0x45779e[_0x45779e[_0x2c4458(0xda)]-0x1],_0x4df586=_0x45779e[0x0],_0x3ac608=_0x204150[_0x2c4458(0xc7)]??_0x204150,_0x306e32=_0x4df586['in']??_0x4df586;_0x2c7cd5[_0x2c4458(0xdb)]('C\x20'+R(z(_0x3ac608,_0x104182))+'\x20'+R(z(_0x306e32,_0x104182))+'\x20'+R(z(_0x4df586,_0x104182))),_0x2c7cd5[_0x2c4458(0xdb)]('Z');}return _0x2c7cd5[_0x2c4458(0xe3)]('\x20');}function me(_0x60ad4e,_0x258e15){const _0x29da93=_0x4864;let _0x3dc787=_0x60ad4e[_0x29da93(0x101)][_0x29da93(0xf9)](_0x197e33=>z(_0x197e33,_0x258e15));if(_0x3dc787['length']===0x0)return'';if(_0x3dc787[_0x29da93(0xda)]===0x1)return'M\x20'+R(_0x3dc787[0x0]);let _0x348093=['M\x20'+R(_0x3dc787[0x0])];for(let _0x5bc480=0x0;_0x5bc480<_0x3dc787[_0x29da93(0xda)]-0x1;_0x5bc480++){let _0x2024a7=_0x3dc787[_0x5bc480],_0x593a2e=_0x3dc787[_0x5bc480+0x1],_0x3b8824=_0x3dc787[_0x5bc480-0x1]??_0x2024a7,_0x183656=_0x3dc787[_0x5bc480+0x2]??_0x593a2e,_0x1707d9={'x':_0x2024a7['x']+(_0x593a2e['x']-_0x3b8824['x'])/0x6,'y':_0x2024a7['y']+(_0x593a2e['y']-_0x3b8824['y'])/0x6},_0x2efff4={'x':_0x593a2e['x']-(_0x183656['x']-_0x2024a7['x'])/0x6,'y':_0x593a2e['y']-(_0x183656['y']-_0x2024a7['y'])/0x6};_0x348093['push']('C\x20'+R(_0x1707d9)+'\x20'+R(_0x2efff4)+'\x20'+R(_0x593a2e));}return _0x348093[_0x29da93(0xe3)]('\x20');}function he(_0x20cfcd,_0xada168){const _0x294ba7=_0x4864;return _0x20cfcd[_0x294ba7(0xd8)]==='pen'?pe(_0x20cfcd,_0xada168):me(_0x20cfcd,_0xada168);}function _0x4864(_0x11a350,_0x38b86f){_0x11a350=_0x11a350-0xb9;const _0x119ef1=_0x119e();let _0x486498=_0x119ef1[_0x11a350];return _0x486498;}function ge(_0x5322dc,_0x3b8495){const _0x34b271=_0x4864;return _0x3b8495!=null&&_0x3b8495[_0x34b271(0xce)]?_0x3b8495[_0x34b271(0xce)]:_0x5322dc[_0x34b271(0xd8)]==='pen'?_0x34b271(0x10f):_0x5322dc[_0x34b271(0xce)];}function _e(_0x1e1980,_0x41f5e3){const _0x17fcb9=_0x4864;return(_0x41f5e3==null?void 0x0:_0x41f5e3[_0x17fcb9(0xc3)])===void 0x0?_0x1e1980[_0x17fcb9(0xd8)]==='pen'?0x2:_0x1e1980[_0x17fcb9(0xc3)]:_0x41f5e3[_0x17fcb9(0xc3)];}function ve(_0x4072da,_0x429b56){const _0x426b42=_0x4864;return(_0x429b56==null?void 0x0:_0x429b56[_0x426b42(0xe6)])===void 0x0?_0x4072da[_0x426b42(0xd8)]===_0x426b42(0xf0)?void 0x0:_0x4072da[_0x426b42(0xe6)]:_0x429b56[_0x426b42(0xe6)];}function ye(_0x54ac52,_0x5e0ba6){const _0xa80281=_0x4864;let _0x570dda=G(_0x54ac52),_0x15fc73=he(_0x54ac52,{'x':_0x570dda[_0xa80281(0xe2)],'y':_0x570dda[_0xa80281(0xc6)]}),_0x517d3c=_0x54ac52['kind']===_0xa80281(0xf0)&&_0x54ac52[_0xa80281(0xff)],_0x31623a=_0x5e0ba6==null?void 0x0:_0x5e0ba6[_0xa80281(0xcf)];return{'shapeType':_0x14cfe9[_0xa80281(0xe5)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x570dda[_0xa80281(0xc3)],'h':_0x570dda[_0xa80281(0xea)],'fill':_0x517d3c?_0xa80281(0xee):_0xa80281(0xc1),'stroke':!0x0,'data':_0x15fc73,'dataArray':be(_0x54ac52,{'x':_0x570dda[_0xa80281(0xe2)],'y':_0x570dda[_0xa80281(0xc6)]})}]},'fill':_0x517d3c&&_0x31623a?{'color':_0x31623a,'fillType':_0x143b58['SolidFill']}:{'fillType':_0x143b58[_0xa80281(0x10d)]},'stroke':{'color':ge(_0x54ac52,_0x5e0ba6),'width':_e(_0x54ac52,_0x5e0ba6),'opacity':ve(_0x54ac52,_0x5e0ba6),'lineStrokeType':_0x13bb6c['SolidLine'],'capType':_0x138f8d[_0xa80281(0xed)],'lineJoinType':_0xd35926[_0xa80281(0xed)]}};}function K(_0x28de2b,_0x64a10){return{'x':_0x28de2b['x']-_0x64a10['x'],'y':_0x28de2b['y']-_0x64a10['y']};}function be(_0x5aa340,_0x579f9b){const _0x2bc0d8=_0x4864;if(_0x5aa340[_0x2bc0d8(0xd8)]===_0x2bc0d8(0xf0)){let _0x2ab2bf=_0x5aa340[_0x2bc0d8(0xd1)];if(_0x2ab2bf[_0x2bc0d8(0xda)]===0x0)return[];let _0x1eec10=K(_0x2ab2bf[0x0],_0x579f9b),_0x437e6f=[{'command':'M','points':[_0x1eec10['x'],_0x1eec10['y']]}];for(let _0xdc67fb=0x1;_0xdc67fb<_0x2ab2bf[_0x2bc0d8(0xda)];_0xdc67fb++){let _0x357652=_0x2ab2bf[_0xdc67fb-0x1],_0x540343=_0x2ab2bf[_0xdc67fb],_0x9a2b07=K(_0x357652[_0x2bc0d8(0xc7)]??_0x357652,_0x579f9b),_0x142cb5=K(_0x540343['in']??_0x540343,_0x579f9b),_0x427d3b=K(_0x540343,_0x579f9b);_0x437e6f[_0x2bc0d8(0xdb)]({'command':'C','points':[_0x9a2b07['x'],_0x9a2b07['y'],_0x142cb5['x'],_0x142cb5['y'],_0x427d3b['x'],_0x427d3b['y']]});}if(_0x5aa340[_0x2bc0d8(0xff)]&&_0x2ab2bf['length']>0x1){let _0x273dbe=_0x2ab2bf[_0x2ab2bf[_0x2bc0d8(0xda)]-0x1],_0x465048=_0x2ab2bf[0x0],_0x4d8060=K(_0x273dbe['out']??_0x273dbe,_0x579f9b),_0x564006=K(_0x465048['in']??_0x465048,_0x579f9b),_0x5db3b0=K(_0x465048,_0x579f9b);_0x437e6f[_0x2bc0d8(0xdb)]({'command':'C','points':[_0x4d8060['x'],_0x4d8060['y'],_0x564006['x'],_0x564006['y'],_0x5db3b0['x'],_0x5db3b0['y']]}),_0x437e6f['push']({'command':'z','points':[]});}return _0x437e6f;}let _0x2124ad=_0x5aa340[_0x2bc0d8(0x101)][_0x2bc0d8(0xf9)](_0x55fa04=>K(_0x55fa04,_0x579f9b));if(_0x2124ad['length']===0x0)return[];let _0x4a29f1=[{'command':'M','points':[_0x2124ad[0x0]['x'],_0x2124ad[0x0]['y']]}];for(let _0x4abfe6=0x0;_0x4abfe6<_0x2124ad[_0x2bc0d8(0xda)]-0x1;_0x4abfe6++){let _0x8aa1dd=_0x2124ad[_0x4abfe6],_0x218bf6=_0x2124ad[_0x4abfe6+0x1],_0x19a85c=_0x2124ad[_0x4abfe6-0x1]??_0x8aa1dd,_0x2e8be1=_0x2124ad[_0x4abfe6+0x2]??_0x218bf6,_0x1a3128={'x':_0x8aa1dd['x']+(_0x218bf6['x']-_0x19a85c['x'])/0x6,'y':_0x8aa1dd['y']+(_0x218bf6['y']-_0x19a85c['y'])/0x6},_0x5cc3e7={'x':_0x218bf6['x']-(_0x2e8be1['x']-_0x8aa1dd['x'])/0x6,'y':_0x218bf6['y']-(_0x2e8be1['y']-_0x8aa1dd['y'])/0x6};_0x4a29f1['push']({'command':'C','points':[_0x1a3128['x'],_0x1a3128['y'],_0x5cc3e7['x'],_0x5cc3e7['y'],_0x218bf6['x'],_0x218bf6['y']]});}return _0x4a29f1;}function xe(_0x37a886){const _0xfe2de0=_0x4864;let {model:_0x790f08,sourceModel:_0x57115e=_0x790f08,style:_0x1a79fd}=_0x37a886,_0x5812b4=_0x37a886[_0xfe2de0(0xc0)]??_0x790f08['kind'],_0x3c764a=G(_0x790f08),_0x563198=_0x790f08['kind']==='pen'&&_0x5812b4!==_0xfe2de0(0xf0)?_0x790f08:void 0x0;return{'transform':{..._0x3c764a,'rotation':0x0},'shapeData':ye(_0x790f08,_0x1a79fd),'ink':{'version':0x1,'tool':_0x5812b4,'sourceModel':_0x57115e,..._0x563198?{'editModel':_0x563198}:{},'normalizedBounds':_0x3c764a}};}var Se='@univerjs-pro/ink',Ce=_0x46a672(0xfe);function q(_0x3a510d){'@babel/helpers - typeof';const _0x5b6fff=_0x46a672;return q=typeof Symbol==_0x5b6fff(0xe4)&&typeof Symbol[_0x5b6fff(0xdf)]==_0x5b6fff(0xe1)?function(_0x428c5f){return typeof _0x428c5f;}:function(_0x4a8ac7){const _0x3a86d6=_0x5b6fff;return _0x4a8ac7&&typeof Symbol==_0x3a86d6(0xe4)&&_0x4a8ac7[_0x3a86d6(0xd6)]===Symbol&&_0x4a8ac7!==Symbol[_0x3a86d6(0xca)]?'symbol':typeof _0x4a8ac7;},q(_0x3a510d);}function we(_0x283aca,_0x225855){const _0x35e3e3=_0x46a672;if(q(_0x283aca)!='object'||!_0x283aca)return _0x283aca;var _0xc889b4;if(typeof Symbol<'u'&&(_0xc889b4=_0x283aca[Symbol['toPrimitive']])!==void 0x0){var _0x11ec5a=_0xc889b4['call'](_0x283aca,_0x225855||_0x35e3e3(0xf1));if(q(_0x11ec5a)!=_0x35e3e3(0xc5))return _0x11ec5a;throw TypeError(_0x35e3e3(0xf4));}return(_0x225855===_0x35e3e3(0x10b)?String:Number)(_0x283aca);}function J(_0x88c516){const _0x381d06=_0x46a672;var _0x37f7ed=we(_0x88c516,_0x381d06(0x10b));return q(_0x37f7ed)==_0x381d06(0xe1)?_0x37f7ed:_0x37f7ed+'';}function Y(_0x51aa29,_0x4c3c75,_0x1f7d84){const _0x556e04=_0x46a672;return(_0x4c3c75=J(_0x4c3c75))in _0x51aa29?Object[_0x556e04(0xeb)](_0x51aa29,_0x4c3c75,{'value':_0x1f7d84,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51aa29[_0x4c3c75]=_0x1f7d84,_0x51aa29;}const X=_0x2928cc('ink.host-adapter.service');var Te=class{constructor(){const _0x22b383=_0x46a672;Y(this,_0x22b383(0xef),[]);}[_0x46a672(0x111)](_0x426343){const _0x1616e5=_0x46a672;return this[_0x1616e5(0xef)][_0x1616e5(0xdb)](_0x426343),_0x4307f3(()=>{const _0x42ecd1=_0x1616e5;let _0x4477f7=this['_adapters'][_0x42ecd1(0xbb)](_0x426343);_0x4477f7>=0x0&&this[_0x42ecd1(0xef)][_0x42ecd1(0xbf)](_0x4477f7,0x1);});}[_0x46a672(0xc4)](_0x2b245c){const _0x2ebcf8=_0x46a672;for(let _0x4f867b of this[_0x2ebcf8(0xef)])if(_0x4f867b[_0x2ebcf8(0xc4)](_0x2b245c))return!0x0;return!0x1;}async['createCustomShape'](_0x14157c){const _0x4d33aa=_0x46a672;for(let _0x47fff0 of this[_0x4d33aa(0xef)])if(_0x47fff0[_0x4d33aa(0xfb)]&&await _0x47fff0[_0x4d33aa(0xfb)](_0x14157c))return!0x0;return!0x1;}};const Ee={'id':_0x46a672(0xd4),'type':_0x1877b6['OPERATION'],'handler':(_0x4564a2,_0x6ff024)=>_0x6ff024?_0x4564a2[_0x46a672(0xd3)](X)[_0x46a672(0xc4)](_0x6ff024):!0x1},Z={};function Q(_0x19ca34,_0x55abd3){return function(_0xc3343b,_0x52b7f7){_0x55abd3(_0xc3343b,_0x52b7f7,_0x19ca34);};}function De(_0x12456f,_0x4f37b9,_0x17fa6a,_0x5aaf41){const _0x376d54=_0x46a672;var _0x1e0531=arguments[_0x376d54(0xda)],_0x4bed3c=_0x1e0531<0x3?_0x4f37b9:_0x5aaf41===null?_0x5aaf41=Object[_0x376d54(0x10c)](_0x4f37b9,_0x17fa6a):_0x5aaf41,_0x10b12e;if(typeof Reflect==_0x376d54(0xc5)&&typeof Reflect[_0x376d54(0xe0)]==_0x376d54(0xe4))_0x4bed3c=Reflect['decorate'](_0x12456f,_0x4f37b9,_0x17fa6a,_0x5aaf41);else{for(var _0x5c702e=_0x12456f[_0x376d54(0xda)]-0x1;_0x5c702e>=0x0;_0x5c702e--)(_0x10b12e=_0x12456f[_0x5c702e])&&(_0x4bed3c=(_0x1e0531<0x3?_0x10b12e(_0x4bed3c):_0x1e0531>0x3?_0x10b12e(_0x4f37b9,_0x17fa6a,_0x4bed3c):_0x10b12e(_0x4f37b9,_0x17fa6a))||_0x4bed3c);}return _0x1e0531>0x3&&_0x4bed3c&&Object['defineProperty'](_0x4f37b9,_0x17fa6a,_0x4bed3c),_0x4bed3c;}let $=class extends _0x100346{constructor(_0x151964=Z,_0x19505c,_0x2f8146,_0x5a831b){const _0x253d37=_0x46a672;super(),this[_0x253d37(0xc9)]=_0x151964,this[_0x253d37(0xc2)]=_0x19505c,this[_0x253d37(0xcc)]=_0x2f8146,this['_configService']=_0x5a831b;let {..._0x5b25c3}=_0x346288({},Z,this['_config']);this['_configService'][_0x253d37(0xe8)](_0x253d37(0xcb),_0x5b25c3);}[_0x46a672(0x106)](){const _0x551553=_0x46a672;[[X,{'useClass':Te}]]['forEach'](_0x3b6fbc=>this['_injector'][_0x551553(0x104)](_0x3b6fbc)),this['disposeWithMe'](this[_0x551553(0xcc)]['registerCommand'](Ee));}};Y($,_0x46a672(0xbd),_0x46a672(0xfd)),Y($,_0x46a672(0x108),Se),Y($,'version',Ce),Y($,'type',_0x5d87b6['UNIVER_UNKNOWN']),$=De([_0x3399a9(_0x266d29),Q(0x1,_0xa2debd(_0x119e36)),Q(0x2,_0x41ee75),Q(0x3,_0x161cc6)],$);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 _0x234bb6=_0x2604;(function(_0x49148a,_0x2f325b){const _0x40c754=_0x2604,_0x2ac5de=_0x49148a();while(!![]){try{const _0x47c6eb=parseInt(_0x40c754(0x117))/0x1*(-parseInt(_0x40c754(0x110))/0x2)+parseInt(_0x40c754(0xdb))/0x3+-parseInt(_0x40c754(0x11a))/0x4*(parseInt(_0x40c754(0xee))/0x5)+parseInt(_0x40c754(0x11c))/0x6*(-parseInt(_0x40c754(0x122))/0x7)+parseInt(_0x40c754(0xf3))/0x8+parseInt(_0x40c754(0xc1))/0x9*(parseInt(_0x40c754(0x121))/0xa)+parseInt(_0x40c754(0x10e))/0xb;if(_0x47c6eb===_0x2f325b)break;else _0x2ac5de['push'](_0x2ac5de['shift']());}catch(_0x2d66a4){_0x2ac5de['push'](_0x2ac5de['shift']());}}}(_0x1afd,0x2d1c9));import{ShapeFillEnum as _0x137e22,ShapeLineCapEnum as _0x5f227b,ShapeLineJoinEnum as _0x2cfe25,ShapeLineTypeEnum as _0x3708a3,ShapeTypeEnum as _0x1d5fb3}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x38211f}from'@univerjs-pro/license';import{CommandType as _0x4b603e,DependentOn as _0x226505,ICommandService as _0x171415,IConfigService as _0x5b3d,Inject as _0x1739b1,Injector as _0x4929fc,Plugin as _0x2b18e8,UniverInstanceType as _0x1ecdfc,createIdentifier as _0x4bf0fa,merge as _0x10d687,toDisposable as _0x27c43d}from'@univerjs/core';const g=0.0001;function _(_0x525f4e){return{'x':_0x525f4e['x'],'y':_0x525f4e['y']};}function v(_0x1109a3){const _0x457304=_0x2604;return{..._0x1109a3,'in':_0x1109a3['in']?_(_0x1109a3['in']):void 0x0,'out':_0x1109a3[_0x457304(0xf7)]?_(_0x1109a3[_0x457304(0xf7)]):void 0x0};}function y(_0x1f207c){const _0x3ae541=_0x2604;return{'kind':_0x3ae541(0x11e),'closed':_0x1f207c[_0x3ae541(0x103)],'anchors':_0x1f207c[_0x3ae541(0xf4)]['map'](v)};}function _0x2604(_0x57b2bf,_0x4c8aa5){_0x57b2bf=_0x57b2bf-0xc1;const _0x1afd36=_0x1afd();let _0x260416=_0x1afd36[_0x57b2bf];return _0x260416;}function b(_0x41702f,_0x188f3a,_0x54c659){return{'x':_0x41702f['x']+(_0x188f3a['x']-_0x41702f['x'])*_0x54c659,'y':_0x41702f['y']+(_0x188f3a['y']-_0x41702f['y'])*_0x54c659};}function x(_0x4580a4,_0x2a5c51){const _0x52d796=_0x2604;return Math[_0x52d796(0xcc)](_0x4580a4['x']-_0x2a5c51['x'],_0x4580a4['y']-_0x2a5c51['y']);}function S(_0x36bd59){const _0x22293e=_0x2604;let _0x23b431=Math[_0x22293e(0xcc)](_0x36bd59['x'],_0x36bd59['y']);return _0x23b431<g?{'x':0x1,'y':0x0}:{'x':_0x36bd59['x']/_0x23b431,'y':_0x36bd59['y']/_0x23b431};}function C(_0x9ca61c,_0x59c831,_0x21a884=x(_0x9ca61c,_0x59c831)){let _0x39c546=S({'x':_0x9ca61c['x']-_0x59c831['x'],'y':_0x9ca61c['y']-_0x59c831['y']});return{'x':_0x9ca61c['x']+_0x39c546['x']*_0x21a884,'y':_0x9ca61c['y']+_0x39c546['y']*_0x21a884};}function w(_0x5cb72a,_0x14885f){const _0x41769b=_0x2604;let {anchors:_0x4986bd}=_0x5cb72a;return _0x4986bd[_0x41769b(0x104)]<0x2||_0x14885f<0x0?null:_0x14885f<_0x4986bd[_0x41769b(0x104)]-0x1?{'startIndex':_0x14885f,'endIndex':_0x14885f+0x1,'start':_0x4986bd[_0x14885f],'end':_0x4986bd[_0x14885f+0x1]}:_0x5cb72a[_0x41769b(0x103)]&&_0x14885f===_0x4986bd[_0x41769b(0x104)]-0x1?{'startIndex':_0x4986bd[_0x41769b(0x104)]-0x1,'endIndex':0x0,'start':_0x4986bd[_0x4986bd[_0x41769b(0x104)]-0x1],'end':_0x4986bd[0x0]}:null;}function T(_0x29421c,_0x3f86b2){const _0xe366c9=_0x2604;let _0x5eaedf=w(_0x29421c,_0x3f86b2);return _0x5eaedf?[_0x5eaedf[_0xe366c9(0xd6)],_0x5eaedf[_0xe366c9(0xd6)][_0xe366c9(0xf7)]??_0x5eaedf[_0xe366c9(0xd6)],_0x5eaedf['end']['in']??_0x5eaedf[_0xe366c9(0xf6)],_0x5eaedf['end']]:null;}function te(_0x577129,_0x49e7a7){const _0x570288=_0x2604;return _0x49e7a7===_0x570288(0x11d)?_0x577129:_0x577129[_0x49e7a7]??null;}function E(_0x5d3d32,_0x8abad0,_0x554155){const _0xd96fe9=_0x2604;return _0x554155===_0xd96fe9(0x11d)||_0x5d3d32[_0xd96fe9(0x103)]?!0x0:_0x554155==='in'?_0x8abad0>0x0:_0x8abad0<_0x5d3d32[_0xd96fe9(0xf4)][_0xd96fe9(0x104)]-0x1;}function D(_0x22ca6d,_0x73cf9a){let [_0x1619d5,_0x27da3c,_0x23da44,_0x47134b]=_0x22ca6d,_0x20927b=b(_0x1619d5,_0x27da3c,_0x73cf9a),_0x340f1f=b(_0x27da3c,_0x23da44,_0x73cf9a),_0x347853=b(_0x23da44,_0x47134b,_0x73cf9a);return b(b(_0x20927b,_0x340f1f,_0x73cf9a),b(_0x340f1f,_0x347853,_0x73cf9a),_0x73cf9a);}function ne(_0x3b52fd,_0x429cb1){let [_0x304796,_0x4d1202,_0x308725,_0x51ba1e]=_0x3b52fd,_0x33d6db=b(_0x304796,_0x4d1202,_0x429cb1),_0xfdc897=b(_0x4d1202,_0x308725,_0x429cb1),_0x10b1c8=b(_0x308725,_0x51ba1e,_0x429cb1),_0x355781=b(_0x33d6db,_0xfdc897,_0x429cb1),_0x613f89=b(_0xfdc897,_0x10b1c8,_0x429cb1),_0x32e7b2=b(_0x355781,_0x613f89,_0x429cb1);return{'left':[_0x304796,_0x33d6db,_0x355781,_0x32e7b2],'right':[_0x32e7b2,_0x613f89,_0x10b1c8,_0x51ba1e]};}function O(_0x548ee3,_0x490217,_0x236aed){const _0x56c17b=_0x2604;let _0x2a2569=_0x236aed['x']-_0x490217['x'],_0x1e9f2e=_0x236aed['y']-_0x490217['y'],_0x59b498=_0x2a2569*_0x2a2569+_0x1e9f2e*_0x1e9f2e,_0x2c5c4e=_0x59b498<=g?0x0:Math['max'](0x0,Math[_0x56c17b(0xca)](0x1,((_0x548ee3['x']-_0x490217['x'])*_0x2a2569+(_0x548ee3['y']-_0x490217['y'])*_0x1e9f2e)/_0x59b498)),_0x9c73dc={'x':_0x490217['x']+_0x2a2569*_0x2c5c4e,'y':_0x490217['y']+_0x1e9f2e*_0x2c5c4e};return{'point':_0x9c73dc,'ratio':_0x2c5c4e,'distance':x(_0x548ee3,_0x9c73dc)};}function re(_0x2e80d6,_0x2c4355,_0x599742){return O(_0x2e80d6,_0x2c4355,_0x599742)['distance']**0x2;}function k(_0x5bd837,_0x16fe3b){const _0x350e5b=_0x2604;if(_0x5bd837[_0x350e5b(0x104)]<=0x2)return _0x5bd837[_0x350e5b(0xef)](_);let _0x11af2b=0x0,_0x4cb94d=0x0,_0x5ac12e=_0x5bd837[0x0],_0x17cc1b=_0x5bd837[_0x5bd837[_0x350e5b(0x104)]-0x1],_0x29d3c7=_0x16fe3b*_0x16fe3b;for(let _0x6d1f26=0x1;_0x6d1f26<_0x5bd837[_0x350e5b(0x104)]-0x1;_0x6d1f26++){let _0x11fe76=re(_0x5bd837[_0x6d1f26],_0x5ac12e,_0x17cc1b);_0x11fe76>_0x11af2b&&(_0x11af2b=_0x11fe76,_0x4cb94d=_0x6d1f26);}if(_0x11af2b<=_0x29d3c7)return[_(_0x5ac12e),_(_0x17cc1b)];let _0x31c2ae=k(_0x5bd837[_0x350e5b(0xe2)](0x0,_0x4cb94d+0x1),_0x16fe3b),_0x3d579f=k(_0x5bd837['slice'](_0x4cb94d),_0x16fe3b);return[..._0x31c2ae[_0x350e5b(0xe2)](0x0,-0x1),..._0x3d579f];}function ie(_0x5b6391,_0x2b2fb3){let _0x42d273=_0x5b6391[_0x2b2fb3],_0xd4c348=_0x5b6391[_0x2b2fb3+0x1],_0x142fb2=_0x5b6391[_0x2b2fb3-0x1]??_0x42d273;return{'x':_0x42d273['x']+(_0xd4c348['x']-_0x142fb2['x'])/0x6,'y':_0x42d273['y']+(_0xd4c348['y']-_0x142fb2['y'])/0x6};}function A(_0x4e0f42,_0x53d31c){let _0x5d4764=_0x4e0f42[_0x53d31c],_0x16246d=_0x4e0f42[_0x53d31c-0x1],_0xad5ca9=_0x4e0f42[_0x53d31c+0x1]??_0x5d4764;return{'x':_0x5d4764['x']-(_0xad5ca9['x']-_0x16246d['x'])/0x6,'y':_0x5d4764['y']-(_0xad5ca9['y']-_0x16246d['y'])/0x6};}function j(_0x47698e,_0x4ea418){const _0x591ebd=_0x2604;let _0x4dae16=_0x47698e[_0x591ebd(0xf4)][_0x4ea418],_0x1727e1=_0x47698e[_0x591ebd(0xf4)][_0x4ea418-0x1]??(_0x47698e['closed']?_0x47698e[_0x591ebd(0xf4)][_0x47698e[_0x591ebd(0xf4)][_0x591ebd(0x104)]-0x1]:null),_0x3e5949=_0x47698e[_0x591ebd(0xf4)][_0x4ea418+0x1]??(_0x47698e[_0x591ebd(0x103)]?_0x47698e[_0x591ebd(0xf4)][0x0]:null),_0x3e8a37=_0x1727e1&&_0x3e5949?S({'x':_0x3e5949['x']-_0x1727e1['x'],'y':_0x3e5949['y']-_0x1727e1['y']}):_0x3e5949?S({'x':_0x3e5949['x']-_0x4dae16['x'],'y':_0x3e5949['y']-_0x4dae16['y']}):_0x1727e1?S({'x':_0x4dae16['x']-_0x1727e1['x'],'y':_0x4dae16['y']-_0x1727e1['y']}):{'x':0x1,'y':0x0},_0x129fb4=_0x1727e1&&_0x3e5949?Math[_0x591ebd(0x107)](0x32,x(_0x1727e1,_0x3e5949)/0x4):0x32;return{'in':{'x':_0x4dae16['x']-_0x3e8a37['x']*_0x129fb4,'y':_0x4dae16['y']-_0x3e8a37['y']*_0x129fb4},'out':{'x':_0x4dae16['x']+_0x3e8a37['x']*_0x129fb4,'y':_0x4dae16['y']+_0x3e8a37['y']*_0x129fb4}};}function M(_0x3e3acc,_0x296c75){const _0x9a195b=_0x2604;let _0x33adc6=_0x3e3acc[_0x296c75],_0x5ca41b=_0x296c75==='in'?_0x9a195b(0xf7):'in',_0x3490fb=_0x3e3acc[_0x5ca41b];_0x33adc6&&(_0x3e3acc[_0x9a195b(0x123)]===_0x9a195b(0xce)?_0x3e3acc[_0x5ca41b]=C(_0x3e3acc,_0x33adc6):_0x3e3acc[_0x9a195b(0x123)]===_0x9a195b(0x115)&&(_0x3e3acc[_0x5ca41b]=C(_0x3e3acc,_0x33adc6,_0x3490fb?x(_0x3e3acc,_0x3490fb):x(_0x3e3acc,_0x33adc6))));}function ae(_0x16ea0d,_0x25cf35){const _0x2bc410=_0x2604;let _0x1dbff4=y(_0x16ea0d);return!_0x25cf35||_0x1dbff4[_0x2bc410(0x103)]||_0x1dbff4['anchors']['length']===0x0||_0x1dbff4['anchors'][_0x2bc410(0xcd)]({'id':'__ink-preview-anchor__','x':_0x25cf35['x'],'y':_0x25cf35['y'],'pointType':_0x2bc410(0x10d)}),_0x1dbff4;}function oe(_0x3b1d1c,_0x502343={}){const _0x47e55c=_0x2604;let _0x4d1436=Math[_0x47e55c(0x107)](0x0,_0x502343[_0x47e55c(0xc6)]??Math['max'](0x4,_0x3b1d1c[_0x47e55c(0xc7)]*0.35)),_0x24867d=_0x502343[_0x47e55c(0xe7)]??(_0x25d4d8=>_0x47e55c(0x10c)+_0x25d4d8),_0x4e3286=k(_0x3b1d1c[_0x47e55c(0xd3)],_0x4d1436),_0x2b4009=_0x4e3286[_0x47e55c(0xef)]((_0x57b0e6,_0x54df07)=>({'id':_0x24867d(_0x54df07),'x':_0x57b0e6['x'],'y':_0x57b0e6['y'],'pointType':_0x47e55c(0xed)}));for(let _0x3f0acc=0x0;_0x3f0acc<_0x2b4009[_0x47e55c(0x104)]-0x1;_0x3f0acc++)_0x2b4009[_0x3f0acc]['out']=ie(_0x4e3286,_0x3f0acc),_0x2b4009[_0x3f0acc+0x1]['in']=A(_0x4e3286,_0x3f0acc+0x1);return{'kind':_0x47e55c(0x11e),'closed':!0x1,'anchors':_0x2b4009};}function se(_0x2b1fd2,_0x407e41,_0x3be41c){const _0x2ee319=_0x2604;let _0x2ae37b=null,_0xcf3d66=[_0x2ee319(0x11d),'in','out'];return _0x2b1fd2[_0x2ee319(0xf4)]['forEach']((_0xe8e6ad,_0x4f4725)=>{const _0x405af2=_0x2ee319;_0xcf3d66[_0x405af2(0xfe)](_0xc2571c=>{const _0x57c64e=_0x405af2;if(!E(_0x2b1fd2,_0x4f4725,_0xc2571c))return;let _0x473b98=te(_0xe8e6ad,_0xc2571c);if(!_0x473b98)return;let _0x33b659=x(_0x407e41,_0x473b98);_0x33b659>_0x3be41c||_0x2ae37b&&_0x33b659>=_0x2ae37b[_0x57c64e(0xe6)]||(_0x2ae37b={'handle':{'kind':_0xc2571c,'anchorId':_0xe8e6ad['id']},'point':_(_0x473b98),'distance':_0x33b659});});}),_0x2ae37b;}function ce(_0x1d44e3,_0xbefba3,_0x176643){const _0x196cf1=_0x2604;let _0x290515=null,_0x3328cd=_0x1d44e3[_0x196cf1(0x103)]?_0x1d44e3[_0x196cf1(0xf4)][_0x196cf1(0x104)]:Math[_0x196cf1(0x107)](0x0,_0x1d44e3[_0x196cf1(0xf4)][_0x196cf1(0x104)]-0x1);for(let _0x214c41=0x0;_0x214c41<_0x3328cd;_0x214c41++){let _0x4685a4=T(_0x1d44e3,_0x214c41);if(!_0x4685a4)continue;let _0x108521=D(_0x4685a4,0x0);for(let _0x167951=0x1;_0x167951<=0x20;_0x167951++){let _0x48f261=D(_0x4685a4,_0x167951/0x20),_0x5a15d8=O(_0xbefba3,_0x108521,_0x48f261),_0x4b120c=(_0x167951-0x1+_0x5a15d8[_0x196cf1(0xde)])/0x20;(!_0x290515||_0x5a15d8[_0x196cf1(0xe6)]<_0x290515[_0x196cf1(0xe6)])&&(_0x290515={'segmentIndex':_0x214c41,'t':_0x4b120c,'point':_0x5a15d8[_0x196cf1(0x106)],'distance':_0x5a15d8['distance']}),_0x108521=_0x48f261;}}return _0x290515&&_0x290515[_0x196cf1(0xe6)]<=_0x176643?_0x290515:null;}function le(_0x51fa3f,_0x47c6d9,_0x200146){const _0x5e437c=_0x2604;let _0xe70aca=y(_0x51fa3f),_0x39117b=w(_0xe70aca,_0x47c6d9[_0x5e437c(0xd2)]),_0x15fa67=T(_0xe70aca,_0x47c6d9[_0x5e437c(0xd2)]);if(!_0x39117b||!_0x15fa67)return _0xe70aca;let _0x5b1f1a=ne(_0x15fa67,Math[_0x5e437c(0x107)](0x0,Math[_0x5e437c(0xca)](0x1,_0x47c6d9['t']))),_0x514c96={'id':_0x200146(),'x':_0x5b1f1a['left'][0x3]['x'],'y':_0x5b1f1a['left'][0x3]['y'],'in':_(_0x5b1f1a[_0x5e437c(0xfa)][0x2]),'out':_(_0x5b1f1a['right'][0x1]),'pointType':_0x5e437c(0xed)};return _0xe70aca[_0x5e437c(0xf4)][_0x39117b[_0x5e437c(0xf0)]][_0x5e437c(0xf7)]=_(_0x5b1f1a['left'][0x1]),_0xe70aca['anchors'][_0x39117b[_0x5e437c(0xc9)]]['in']=_(_0x5b1f1a['right'][0x2]),_0xe70aca[_0x5e437c(0xf4)][_0x5e437c(0xe9)](_0x39117b[_0x5e437c(0xf0)]+0x1,0x0,_0x514c96),_0xe70aca;}function ue(_0x27f066,_0x1334f0){const _0x342a26=_0x2604;let _0x530943=y(_0x27f066);return _0x530943[_0x342a26(0xf4)]=_0x530943[_0x342a26(0xf4)][_0x342a26(0x119)](_0x58a581=>_0x58a581['id']!==_0x1334f0),_0x530943[_0x342a26(0x103)]&&_0x530943[_0x342a26(0xf4)]['length']<0x3&&(_0x530943['closed']=!0x1),_0x530943;}function N(_0x245444,_0x20098b,_0x349297){const _0x5bc0a4=_0x2604;let _0xa62d74=y(_0x245444),_0xc442be=_0xa62d74[_0x5bc0a4(0xf4)][_0x5bc0a4(0xe5)](_0xbb47f9=>_0xbb47f9['id']===_0x20098b),_0x1f92b1=_0xa62d74['anchors'][_0xc442be];if(!_0x1f92b1)return _0xa62d74;if(_0x1f92b1[_0x5bc0a4(0x123)]=_0x349297,_0x349297===_0x5bc0a4(0x10d))return delete _0x1f92b1['in'],delete _0x1f92b1[_0x5bc0a4(0xf7)],_0xa62d74;let _0x39c4d5=j(_0xa62d74,_0xc442be);if(_0x1f92b1['in']=_0x1f92b1['in']?_(_0x1f92b1['in']):_0x39c4d5['in'],_0x1f92b1[_0x5bc0a4(0xf7)]=_0x1f92b1[_0x5bc0a4(0xf7)]?_(_0x1f92b1['out']):_0x39c4d5[_0x5bc0a4(0xf7)],_0x349297===_0x5bc0a4(0xce)){let _0x5110ec=Math[_0x5bc0a4(0x107)](x(_0x1f92b1,_0x1f92b1['in']),x(_0x1f92b1,_0x1f92b1[_0x5bc0a4(0xf7)]),0x32),_0x4b528d=S({'x':_0x1f92b1[_0x5bc0a4(0xf7)]['x']-_0x1f92b1['x'],'y':_0x1f92b1['out']['y']-_0x1f92b1['y']});_0x1f92b1[_0x5bc0a4(0xf7)]={'x':_0x1f92b1['x']+_0x4b528d['x']*_0x5110ec,'y':_0x1f92b1['y']+_0x4b528d['y']*_0x5110ec},_0x1f92b1['in']={'x':_0x1f92b1['x']-_0x4b528d['x']*_0x5110ec,'y':_0x1f92b1['y']-_0x4b528d['y']*_0x5110ec};}else _0x349297===_0x5bc0a4(0x115)&&M(_0x1f92b1,_0x5bc0a4(0xf7));return _0xa62d74;}function P(_0x704eb8,_0xa832ea){const _0x4941db=_0x2604;let _0x298d1e=_0x704eb8[_0x4941db(0xf4)][_0x4941db(0xcb)](_0xe6477a=>_0xe6477a['id']===_0xa832ea),_0x369881=(_0x298d1e==null?void 0x0:_0x298d1e[_0x4941db(0x123)])??_0x4941db(0x10d);return N(_0x704eb8,_0xa832ea,_0x369881===_0x4941db(0x10d)?'smooth':_0x369881===_0x4941db(0x115)?_0x4941db(0xce):_0x369881===_0x4941db(0xce)?_0x4941db(0xed):_0x4941db(0x10d));}function F(_0x4d10a9,_0x230ce9,_0x251b4e){const _0x353282=_0x2604;let _0x2f4db7=y(_0x4d10a9),_0x2d7965=_0x2f4db7[_0x353282(0xf4)][_0x353282(0xcb)](_0x3587ac=>_0x3587ac['id']===_0x230ce9[_0x353282(0x11f)]);if(!_0x2d7965)return _0x2f4db7;if(_0x230ce9[_0x353282(0xff)]==='anchor'){let _0x4827f7={'x':_0x251b4e['x']-_0x2d7965['x'],'y':_0x251b4e['y']-_0x2d7965['y']};return _0x2d7965['x']=_0x251b4e['x'],_0x2d7965['y']=_0x251b4e['y'],_0x2d7965['in']&&={'x':_0x2d7965['in']['x']+_0x4827f7['x'],'y':_0x2d7965['in']['y']+_0x4827f7['y']},_0x2d7965[_0x353282(0xf7)]&&={'x':_0x2d7965[_0x353282(0xf7)]['x']+_0x4827f7['x'],'y':_0x2d7965[_0x353282(0xf7)]['y']+_0x4827f7['y']},_0x2f4db7;}return _0x2d7965[_0x230ce9['kind']]=_(_0x251b4e),_0x2d7965[_0x353282(0x123)]===_0x353282(0x10d)&&(_0x2d7965['pointType']=_0x353282(0xed)),M(_0x2d7965,_0x230ce9[_0x353282(0xff)]),_0x2f4db7;}const I=1e-9;function L(_0x47aa74){const _0x317dc7=_0x2604;let _0x54aa9c=Math[_0x317dc7(0xd4)](_0x47aa74*0x2710)/0x2710;return Object['is'](_0x54aa9c,-0x0)?'0':String(_0x54aa9c);}function R(_0x41fe3c){return L(_0x41fe3c['x'])+'\x20'+L(_0x41fe3c['y']);}function z(_0x4f2ad1,_0x367cae){return{'x':_0x4f2ad1['x']-_0x367cae['x'],'y':_0x4f2ad1['y']-_0x367cae['y']};}function B(_0x3f2024,_0x184c3d,_0x2a114e,_0x94ed91,_0x2c50c7){let _0x35d9c1=0x1-_0x2c50c7;return{'x':_0x35d9c1*_0x35d9c1*_0x35d9c1*_0x3f2024['x']+0x3*_0x35d9c1*_0x35d9c1*_0x2c50c7*_0x184c3d['x']+0x3*_0x35d9c1*_0x2c50c7*_0x2c50c7*_0x2a114e['x']+_0x2c50c7*_0x2c50c7*_0x2c50c7*_0x94ed91['x'],'y':_0x35d9c1*_0x35d9c1*_0x35d9c1*_0x3f2024['y']+0x3*_0x35d9c1*_0x35d9c1*_0x2c50c7*_0x184c3d['y']+0x3*_0x35d9c1*_0x2c50c7*_0x2c50c7*_0x2a114e['y']+_0x2c50c7*_0x2c50c7*_0x2c50c7*_0x94ed91['y']};}function V(_0x1355e8,_0x1273bd,_0x3a3022,_0x3d4008){const _0x16b020=_0x2604;let _0x2809ce=-_0x1355e8+0x3*_0x1273bd-0x3*_0x3a3022+_0x3d4008,_0x14ba67=0x3*_0x1355e8-0x6*_0x1273bd+0x3*_0x3a3022,_0x5bc3a6=-0x3*_0x1355e8+0x3*_0x1273bd,_0x5a60c1=[];if(Math[_0x16b020(0xda)](_0x2809ce)<I){if(Math[_0x16b020(0xda)](_0x14ba67)<I)return _0x5a60c1;let _0x924a37=-_0x5bc3a6/(0x2*_0x14ba67);return _0x924a37>0x0&&_0x924a37<0x1&&_0x5a60c1[_0x16b020(0xcd)](_0x924a37),_0x5a60c1;}let _0x28ddf0=_0x14ba67*_0x14ba67-0x3*_0x2809ce*_0x5bc3a6;if(_0x28ddf0<0x0)return _0x5a60c1;let _0x96609d=Math[_0x16b020(0x102)](Math['max'](0x0,_0x28ddf0)),_0x1d8ded=(-_0x14ba67+_0x96609d)/(0x3*_0x2809ce),_0x185308=(-_0x14ba67-_0x96609d)/(0x3*_0x2809ce);return _0x1d8ded>0x0&&_0x1d8ded<0x1&&_0x5a60c1['push'](_0x1d8ded),_0x185308>0x0&&_0x185308<0x1&&Math[_0x16b020(0xda)](_0x185308-_0x1d8ded)>I&&_0x5a60c1[_0x16b020(0xcd)](_0x185308),_0x5a60c1;}function H(_0x5502f7,_0x1cfd3b,_0x2f9517,_0xe51dc0,_0x431ffa){const _0x270833=_0x2604;_0x5502f7['push'](_0x1cfd3b,_0x431ffa),new Set([...V(_0x1cfd3b['x'],_0x2f9517['x'],_0xe51dc0['x'],_0x431ffa['x']),...V(_0x1cfd3b['y'],_0x2f9517['y'],_0xe51dc0['y'],_0x431ffa['y'])])[_0x270833(0xfe)](_0x2740de=>{const _0x59a6be=_0x270833;_0x5502f7[_0x59a6be(0xcd)](B(_0x1cfd3b,_0x2f9517,_0xe51dc0,_0x431ffa,_0x2740de));});}function U(_0x508157){const _0x56cc8a=_0x2604;let _0x269ae1=_0x508157[_0x56cc8a(0xf4)];if(_0x269ae1[_0x56cc8a(0x104)]<=0x1)return _0x269ae1;let _0x33790a=[];for(let _0x49d4d3=0x1;_0x49d4d3<_0x269ae1[_0x56cc8a(0x104)];_0x49d4d3++){let _0x35af72=_0x269ae1[_0x49d4d3-0x1],_0x5d4103=_0x269ae1[_0x49d4d3];H(_0x33790a,_0x35af72,_0x35af72[_0x56cc8a(0xf7)]??_0x35af72,_0x5d4103['in']??_0x5d4103,_0x5d4103);}if(_0x508157['closed']&&_0x269ae1[_0x56cc8a(0x104)]>0x1){let _0x1918c6=_0x269ae1[_0x269ae1['length']-0x1],_0x36deb9=_0x269ae1[0x0];H(_0x33790a,_0x1918c6,_0x1918c6[_0x56cc8a(0xf7)]??_0x1918c6,_0x36deb9['in']??_0x36deb9,_0x36deb9);}return _0x33790a;}function de(_0x340d17){const _0x82b26f=_0x2604;let _0x3c5633=_0x340d17[_0x82b26f(0xd3)];if(_0x3c5633[_0x82b26f(0x104)]<=0x1)return _0x3c5633;let _0x29495d=[];for(let _0x2d2cdb=0x0;_0x2d2cdb<_0x3c5633[_0x82b26f(0x104)]-0x1;_0x2d2cdb++){let _0x28c67f=_0x3c5633[_0x2d2cdb],_0x2ad8c1=_0x3c5633[_0x2d2cdb+0x1],_0x33c8f0=_0x3c5633[_0x2d2cdb-0x1]??_0x28c67f,_0x16c595=_0x3c5633[_0x2d2cdb+0x2]??_0x2ad8c1;H(_0x29495d,_0x28c67f,{'x':_0x28c67f['x']+(_0x2ad8c1['x']-_0x33c8f0['x'])/0x6,'y':_0x28c67f['y']+(_0x2ad8c1['y']-_0x33c8f0['y'])/0x6},{'x':_0x2ad8c1['x']-(_0x16c595['x']-_0x28c67f['x'])/0x6,'y':_0x2ad8c1['y']-(_0x16c595['y']-_0x28c67f['y'])/0x6},_0x2ad8c1);}return _0x29495d;}function fe(_0x56dac0){const _0x1f6eed=_0x2604;return _0x56dac0['kind']===_0x1f6eed(0x11e)?U(_0x56dac0):de(_0x56dac0);}function W(_0x2df196){const _0x1c6f1c=_0x2604;let _0x1215a6=Math[_0x1c6f1c(0xd4)](_0x2df196*0x2710)/0x2710;return Object['is'](_0x1215a6,-0x0)?0x0:_0x1215a6;}function G(_0x20f74d){const _0x12859f=_0x2604;let _0x135bc4=fe(_0x20f74d);if(_0x135bc4['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x49ab27=Math[_0x12859f(0xca)](..._0x135bc4[_0x12859f(0xef)](_0x29dc6e=>_0x29dc6e['x'])),_0x2c7c18=Math[_0x12859f(0xca)](..._0x135bc4[_0x12859f(0xef)](_0x37b274=>_0x37b274['y'])),_0x7562a6=Math[_0x12859f(0x107)](..._0x135bc4[_0x12859f(0xef)](_0x11326f=>_0x11326f['x'])),_0x17f25d=Math['max'](..._0x135bc4[_0x12859f(0xef)](_0x1211c4=>_0x1211c4['y']));return{'left':W(_0x49ab27),'top':W(_0x2c7c18),'width':W(Math[_0x12859f(0x107)](0x1,_0x7562a6-_0x49ab27)),'height':W(Math[_0x12859f(0x107)](0x1,_0x17f25d-_0x2c7c18))};}function pe(_0x1a8913,_0xad4bed){const _0x574d1f=_0x2604;let _0x35aa86=_0x1a8913[_0x574d1f(0xf4)];if(_0x35aa86[_0x574d1f(0x104)]===0x0)return'';let _0x4845af=['M\x20'+R(z(_0x35aa86[0x0],_0xad4bed))];for(let _0x3d80a7=0x1;_0x3d80a7<_0x35aa86[_0x574d1f(0x104)];_0x3d80a7++){let _0x48a955=_0x35aa86[_0x3d80a7-0x1],_0x36c3bd=_0x35aa86[_0x3d80a7],_0x3128f2=_0x48a955[_0x574d1f(0xf7)]??_0x48a955,_0x342b80=_0x36c3bd['in']??_0x36c3bd;_0x4845af['push']('C\x20'+R(z(_0x3128f2,_0xad4bed))+'\x20'+R(z(_0x342b80,_0xad4bed))+'\x20'+R(z(_0x36c3bd,_0xad4bed)));}if(_0x1a8913[_0x574d1f(0x103)]&&_0x35aa86[_0x574d1f(0x104)]>0x1){let _0x5aa808=_0x35aa86[_0x35aa86['length']-0x1],_0x1c55c4=_0x35aa86[0x0],_0x58a660=_0x5aa808[_0x574d1f(0xf7)]??_0x5aa808,_0x2702ea=_0x1c55c4['in']??_0x1c55c4;_0x4845af[_0x574d1f(0xcd)]('C\x20'+R(z(_0x58a660,_0xad4bed))+'\x20'+R(z(_0x2702ea,_0xad4bed))+'\x20'+R(z(_0x1c55c4,_0xad4bed))),_0x4845af['push']('Z');}return _0x4845af[_0x574d1f(0x126)]('\x20');}function me(_0x31679b,_0x469162){const _0x299cf2=_0x2604;let _0xf9d47a=_0x31679b[_0x299cf2(0xd3)]['map'](_0xf1c938=>z(_0xf1c938,_0x469162));if(_0xf9d47a[_0x299cf2(0x104)]===0x0)return'';if(_0xf9d47a['length']===0x1)return'M\x20'+R(_0xf9d47a[0x0]);let _0xb5262=['M\x20'+R(_0xf9d47a[0x0])];for(let _0x1639e5=0x0;_0x1639e5<_0xf9d47a[_0x299cf2(0x104)]-0x1;_0x1639e5++){let _0x3acce3=_0xf9d47a[_0x1639e5],_0x5e97e6=_0xf9d47a[_0x1639e5+0x1],_0x360716=_0xf9d47a[_0x1639e5-0x1]??_0x3acce3,_0x346343=_0xf9d47a[_0x1639e5+0x2]??_0x5e97e6,_0x2aafd2={'x':_0x3acce3['x']+(_0x5e97e6['x']-_0x360716['x'])/0x6,'y':_0x3acce3['y']+(_0x5e97e6['y']-_0x360716['y'])/0x6},_0x2f1ed0={'x':_0x5e97e6['x']-(_0x346343['x']-_0x3acce3['x'])/0x6,'y':_0x5e97e6['y']-(_0x346343['y']-_0x3acce3['y'])/0x6};_0xb5262['push']('C\x20'+R(_0x2aafd2)+'\x20'+R(_0x2f1ed0)+'\x20'+R(_0x5e97e6));}return _0xb5262[_0x299cf2(0x126)]('\x20');}function he(_0x3b658f,_0x14b254){const _0x37021a=_0x2604;return _0x3b658f[_0x37021a(0xff)]===_0x37021a(0x11e)?pe(_0x3b658f,_0x14b254):me(_0x3b658f,_0x14b254);}function ge(_0x1278e3,_0x1219a5){const _0x31abdd=_0x2604;return _0x1219a5!=null&&_0x1219a5[_0x31abdd(0xd7)]?_0x1219a5[_0x31abdd(0xd7)]:_0x1278e3[_0x31abdd(0xff)]==='pen'?_0x31abdd(0x116):_0x1278e3[_0x31abdd(0xd7)];}function _e(_0x2b6f64,_0x498e2f){const _0x1005d7=_0x2604;return(_0x498e2f==null?void 0x0:_0x498e2f[_0x1005d7(0xc7)])===void 0x0?_0x2b6f64[_0x1005d7(0xff)]===_0x1005d7(0x11e)?0x2:_0x2b6f64[_0x1005d7(0xc7)]:_0x498e2f[_0x1005d7(0xc7)];}function _0x1afd(){const _0x33f102=['push','symmetric','object','_config','Rect','segmentIndex','points','round','get','start','color','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','abs','585765ftYvqS','indexOf','NoFill','ratio','UNIVER_UNKNOWN','packageName','createCustomShape','slice','registerAdapter','@univerjs-pro/ink','findIndex','distance','createId','ink.config','splice','fillColor','disposeWithMe','none','free','5paeHLX','map','startIndex','_configService','symbol','1391408lidmku','anchors','version','end','out','string','height','left','call','top','iterator','forEach','kind','ink.operation.start','default','sqrt','closed','length','registerCommand','point','max','function','pluginName','prototype','opacity','ink-centerline-','corner','838871BAbtjo','setConfig','1308wwNISC','tool','decorate','Round','OPERATION','smooth','#f54a45','262LNEeQG','_commandService','filter','147640ChZlGX','beginInkMode','20478gQhdFV','anchor','pen','anchorId','onStarting','10QLFdPI','112rcpJkz','pointType','_injector','constructor','join','19809DKbKnE','defineProperty','ink.host-adapter.service','_adapters','SolidFill','tolerance','width','toPrimitive','endIndex','min','find','hypot'];_0x1afd=function(){return _0x33f102;};return _0x1afd();}function ve(_0x4a54d7,_0x2bbbb3){const _0x423650=_0x2604;return(_0x2bbbb3==null?void 0x0:_0x2bbbb3[_0x423650(0x10b)])===void 0x0?_0x4a54d7[_0x423650(0xff)]===_0x423650(0x11e)?void 0x0:_0x4a54d7[_0x423650(0x10b)]:_0x2bbbb3[_0x423650(0x10b)];}function ye(_0x42096b,_0x8672bc){const _0x359a1c=_0x2604;let _0x3f54be=G(_0x42096b),_0x1f7c7e=he(_0x42096b,{'x':_0x3f54be['left'],'y':_0x3f54be[_0x359a1c(0xfc)]}),_0x56aea4=_0x42096b[_0x359a1c(0xff)]==='pen'&&_0x42096b[_0x359a1c(0x103)],_0x584fbc=_0x8672bc==null?void 0x0:_0x8672bc[_0x359a1c(0xea)];return{'shapeType':_0x1d5fb3[_0x359a1c(0xd1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3f54be['width'],'h':_0x3f54be[_0x359a1c(0xf9)],'fill':_0x56aea4?'norm':_0x359a1c(0xec),'stroke':!0x0,'data':_0x1f7c7e,'dataArray':be(_0x42096b,{'x':_0x3f54be[_0x359a1c(0xfa)],'y':_0x3f54be[_0x359a1c(0xfc)]})}]},'fill':_0x56aea4&&_0x584fbc?{'color':_0x584fbc,'fillType':_0x137e22[_0x359a1c(0xc5)]}:{'fillType':_0x137e22[_0x359a1c(0xdd)]},'stroke':{'color':ge(_0x42096b,_0x8672bc),'width':_e(_0x42096b,_0x8672bc),'opacity':ve(_0x42096b,_0x8672bc),'lineStrokeType':_0x3708a3['SolidLine'],'capType':_0x5f227b[_0x359a1c(0x113)],'lineJoinType':_0x2cfe25['Round']}};}function K(_0x139f6d,_0x5ec5d1){return{'x':_0x139f6d['x']-_0x5ec5d1['x'],'y':_0x139f6d['y']-_0x5ec5d1['y']};}function be(_0x3c11fd,_0x38f439){const _0x4852e9=_0x2604;if(_0x3c11fd['kind']===_0x4852e9(0x11e)){let _0x277e85=_0x3c11fd['anchors'];if(_0x277e85[_0x4852e9(0x104)]===0x0)return[];let _0x47d7e4=K(_0x277e85[0x0],_0x38f439),_0x54d54a=[{'command':'M','points':[_0x47d7e4['x'],_0x47d7e4['y']]}];for(let _0x50ad5e=0x1;_0x50ad5e<_0x277e85['length'];_0x50ad5e++){let _0x37fc89=_0x277e85[_0x50ad5e-0x1],_0x5332cf=_0x277e85[_0x50ad5e],_0x336197=K(_0x37fc89['out']??_0x37fc89,_0x38f439),_0x13a5da=K(_0x5332cf['in']??_0x5332cf,_0x38f439),_0xf3bbdc=K(_0x5332cf,_0x38f439);_0x54d54a['push']({'command':'C','points':[_0x336197['x'],_0x336197['y'],_0x13a5da['x'],_0x13a5da['y'],_0xf3bbdc['x'],_0xf3bbdc['y']]});}if(_0x3c11fd['closed']&&_0x277e85[_0x4852e9(0x104)]>0x1){let _0x333a4b=_0x277e85[_0x277e85[_0x4852e9(0x104)]-0x1],_0x4ac925=_0x277e85[0x0],_0x8e20c7=K(_0x333a4b[_0x4852e9(0xf7)]??_0x333a4b,_0x38f439),_0xfa0070=K(_0x4ac925['in']??_0x4ac925,_0x38f439),_0x30b60a=K(_0x4ac925,_0x38f439);_0x54d54a[_0x4852e9(0xcd)]({'command':'C','points':[_0x8e20c7['x'],_0x8e20c7['y'],_0xfa0070['x'],_0xfa0070['y'],_0x30b60a['x'],_0x30b60a['y']]}),_0x54d54a[_0x4852e9(0xcd)]({'command':'z','points':[]});}return _0x54d54a;}let _0x3d7c97=_0x3c11fd[_0x4852e9(0xd3)]['map'](_0x57561e=>K(_0x57561e,_0x38f439));if(_0x3d7c97[_0x4852e9(0x104)]===0x0)return[];let _0x5a3f9d=[{'command':'M','points':[_0x3d7c97[0x0]['x'],_0x3d7c97[0x0]['y']]}];for(let _0x5ecf7e=0x0;_0x5ecf7e<_0x3d7c97[_0x4852e9(0x104)]-0x1;_0x5ecf7e++){let _0x1e2106=_0x3d7c97[_0x5ecf7e],_0x46c93f=_0x3d7c97[_0x5ecf7e+0x1],_0x3a6f3c=_0x3d7c97[_0x5ecf7e-0x1]??_0x1e2106,_0x272ac6=_0x3d7c97[_0x5ecf7e+0x2]??_0x46c93f,_0x4b1d20={'x':_0x1e2106['x']+(_0x46c93f['x']-_0x3a6f3c['x'])/0x6,'y':_0x1e2106['y']+(_0x46c93f['y']-_0x3a6f3c['y'])/0x6},_0x3658e4={'x':_0x46c93f['x']-(_0x272ac6['x']-_0x1e2106['x'])/0x6,'y':_0x46c93f['y']-(_0x272ac6['y']-_0x1e2106['y'])/0x6};_0x5a3f9d[_0x4852e9(0xcd)]({'command':'C','points':[_0x4b1d20['x'],_0x4b1d20['y'],_0x3658e4['x'],_0x3658e4['y'],_0x46c93f['x'],_0x46c93f['y']]});}return _0x5a3f9d;}function xe(_0x320b0d){const _0x26d092=_0x2604;let {model:_0x2e6d25,sourceModel:_0x1764cb=_0x2e6d25,style:_0x59d69f}=_0x320b0d,_0x5dfce7=_0x320b0d[_0x26d092(0x111)]??_0x2e6d25[_0x26d092(0xff)],_0x48ce05=G(_0x2e6d25),_0x1637fd=_0x2e6d25[_0x26d092(0xff)]===_0x26d092(0x11e)&&_0x5dfce7!==_0x26d092(0x11e)?_0x2e6d25:void 0x0;return{'transform':{..._0x48ce05,'rotation':0x0},'shapeData':ye(_0x2e6d25,_0x59d69f),'ink':{'version':0x1,'tool':_0x5dfce7,'sourceModel':_0x1764cb,..._0x1637fd?{'editModel':_0x1637fd}:{},'normalizedBounds':_0x48ce05}};}var Se=_0x234bb6(0xe4),Ce='1.5.1';function q(_0x38aebd){'@babel/helpers - typeof';const _0x4919af=_0x234bb6;return q=typeof Symbol==_0x4919af(0x108)&&typeof Symbol[_0x4919af(0xfd)]==_0x4919af(0xf2)?function(_0x337300){return typeof _0x337300;}:function(_0x594d95){const _0xefb553=_0x4919af;return _0x594d95&&typeof Symbol==_0xefb553(0x108)&&_0x594d95[_0xefb553(0x125)]===Symbol&&_0x594d95!==Symbol[_0xefb553(0x10a)]?'symbol':typeof _0x594d95;},q(_0x38aebd);}function we(_0x44e13f,_0x58dae6){const _0x52ae95=_0x234bb6;if(q(_0x44e13f)!=_0x52ae95(0xcf)||!_0x44e13f)return _0x44e13f;var _0x544ce6;if(typeof Symbol<'u'&&(_0x544ce6=_0x44e13f[Symbol[_0x52ae95(0xc8)]])!==void 0x0){var _0x2fa087=_0x544ce6[_0x52ae95(0xfb)](_0x44e13f,_0x58dae6||_0x52ae95(0x101));if(q(_0x2fa087)!=_0x52ae95(0xcf))return _0x2fa087;throw TypeError(_0x52ae95(0xd9));}return(_0x58dae6===_0x52ae95(0xf8)?String:Number)(_0x44e13f);}function J(_0xfc3a0d){const _0x34885c=_0x234bb6;var _0x123a48=we(_0xfc3a0d,_0x34885c(0xf8));return q(_0x123a48)=='symbol'?_0x123a48:_0x123a48+'';}function Y(_0x5aad29,_0x3d6dcd,_0x4e2992){return(_0x3d6dcd=J(_0x3d6dcd))in _0x5aad29?Object['defineProperty'](_0x5aad29,_0x3d6dcd,{'value':_0x4e2992,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5aad29[_0x3d6dcd]=_0x4e2992,_0x5aad29;}const X=_0x4bf0fa(_0x234bb6(0xc3));var Te=class{constructor(){const _0x1b7b46=_0x234bb6;Y(this,_0x1b7b46(0xc4),[]);}[_0x234bb6(0xe3)](_0x1cd359){const _0x1f0c2e=_0x234bb6;return this[_0x1f0c2e(0xc4)][_0x1f0c2e(0xcd)](_0x1cd359),_0x27c43d(()=>{const _0x3604de=_0x1f0c2e;let _0x3a0cb8=this[_0x3604de(0xc4)][_0x3604de(0xdc)](_0x1cd359);_0x3a0cb8>=0x0&&this[_0x3604de(0xc4)][_0x3604de(0xe9)](_0x3a0cb8,0x1);});}['beginInkMode'](_0x283ee2){const _0x4a55da=_0x234bb6;for(let _0x3f4f83 of this[_0x4a55da(0xc4)])if(_0x3f4f83[_0x4a55da(0x11b)](_0x283ee2))return!0x0;return!0x1;}async['createCustomShape'](_0xd8bc5d){const _0x250368=_0x234bb6;for(let _0x499a57 of this[_0x250368(0xc4)])if(_0x499a57[_0x250368(0xe1)]&&await _0x499a57['createCustomShape'](_0xd8bc5d))return!0x0;return!0x1;}};const Ee={'id':_0x234bb6(0x100),'type':_0x4b603e[_0x234bb6(0x114)],'handler':(_0x294483,_0x1e725b)=>_0x1e725b?_0x294483[_0x234bb6(0xd5)](X)['beginInkMode'](_0x1e725b):!0x1},Z={};function Q(_0x359797,_0x4c122f){return function(_0xe281b2,_0x279592){_0x4c122f(_0xe281b2,_0x279592,_0x359797);};}function De(_0x18b1b9,_0x5b7305,_0xfeb96b,_0x9e204a){const _0x20e880=_0x234bb6;var _0x3b96ce=arguments[_0x20e880(0x104)],_0x136da2=_0x3b96ce<0x3?_0x5b7305:_0x9e204a===null?_0x9e204a=Object['getOwnPropertyDescriptor'](_0x5b7305,_0xfeb96b):_0x9e204a,_0x296465;if(typeof Reflect==_0x20e880(0xcf)&&typeof Reflect[_0x20e880(0x112)]==_0x20e880(0x108))_0x136da2=Reflect['decorate'](_0x18b1b9,_0x5b7305,_0xfeb96b,_0x9e204a);else{for(var _0x81e108=_0x18b1b9['length']-0x1;_0x81e108>=0x0;_0x81e108--)(_0x296465=_0x18b1b9[_0x81e108])&&(_0x136da2=(_0x3b96ce<0x3?_0x296465(_0x136da2):_0x3b96ce>0x3?_0x296465(_0x5b7305,_0xfeb96b,_0x136da2):_0x296465(_0x5b7305,_0xfeb96b))||_0x136da2);}return _0x3b96ce>0x3&&_0x136da2&&Object[_0x20e880(0xc2)](_0x5b7305,_0xfeb96b,_0x136da2),_0x136da2;}let $=class extends _0x2b18e8{constructor(_0x1c465a=Z,_0x547521,_0x1cc2fd,_0x3382db){const _0x3cc01b=_0x234bb6;super(),this['_config']=_0x1c465a,this[_0x3cc01b(0x124)]=_0x547521,this[_0x3cc01b(0x118)]=_0x1cc2fd,this[_0x3cc01b(0xf1)]=_0x3382db;let {..._0x1a89ac}=_0x10d687({},Z,this[_0x3cc01b(0xd0)]);this[_0x3cc01b(0xf1)][_0x3cc01b(0x10f)](_0x3cc01b(0xe8),_0x1a89ac);}[_0x234bb6(0x120)](){const _0x9e652b=_0x234bb6;[[X,{'useClass':Te}]]['forEach'](_0x4859ca=>this[_0x9e652b(0x124)]['add'](_0x4859ca)),this[_0x9e652b(0xeb)](this['_commandService'][_0x9e652b(0x105)](Ee));}};Y($,_0x234bb6(0x109),_0x234bb6(0xd8)),Y($,_0x234bb6(0xe0),Se),Y($,_0x234bb6(0xf5),Ce),Y($,'type',_0x1ecdfc[_0x234bb6(0xdf)]),$=De([_0x226505(_0x38211f),Q(0x1,_0x1739b1(_0x4929fc)),Q(0x2,_0x171415),Q(0x3,_0x5b3d)],$);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/index.js CHANGED
@@ -1 +1 @@
1
- const _0x46a672=_0x4864;(function(_0x347737,_0x5a5e3c){const _0x43fba8=_0x4864,_0x1d80d3=_0x347737();while(!![]){try{const _0x469c17=parseInt(_0x43fba8(0xba))/0x1+parseInt(_0x43fba8(0x110))/0x2+parseInt(_0x43fba8(0xec))/0x3*(-parseInt(_0x43fba8(0xc8))/0x4)+-parseInt(_0x43fba8(0x10e))/0x5+parseInt(_0x43fba8(0xfc))/0x6+-parseInt(_0x43fba8(0xd7))/0x7+parseInt(_0x43fba8(0xb9))/0x8;if(_0x469c17===_0x5a5e3c)break;else _0x1d80d3['push'](_0x1d80d3['shift']());}catch(_0x3f00b9){_0x1d80d3['push'](_0x1d80d3['shift']());}}}(_0x119e,0xaecde));import{ShapeFillEnum as _0x143b58,ShapeLineCapEnum as _0x138f8d,ShapeLineJoinEnum as _0xd35926,ShapeLineTypeEnum as _0x13bb6c,ShapeTypeEnum as _0x14cfe9}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x266d29}from'@univerjs-pro/license';import{CommandType as _0x1877b6,DependentOn as _0x3399a9,ICommandService as _0x41ee75,IConfigService as _0x161cc6,Inject as _0xa2debd,Injector as _0x119e36,Plugin as _0x100346,UniverInstanceType as _0x5d87b6,createIdentifier as _0x2928cc,merge as _0x346288,toDisposable as _0x4307f3}from'@univerjs/core';const g=0.0001;function _(_0x1cbc7e){return{'x':_0x1cbc7e['x'],'y':_0x1cbc7e['y']};}function _0x119e(){const _0x1a7d20=['segmentIndex','max','symmetric','map','createId','createCustomShape','6563592PKrkmY','UNIVER_INK_PLUGIN','1.5.0','closed','round','points','anchorId','forEach','add','endIndex','onStarting','smooth','packageName','distance','sqrt','string','getOwnPropertyDescriptor','NoFill','2287935XexabH','#f54a45','725604QTumNh','registerAdapter','min','9797304JNGlhy','327115pUTEgE','indexOf','startIndex','pluginName','tolerance','splice','tool','none','_injector','width','beginInkMode','object','top','out','4OadfoJ','_config','prototype','ink.config','_commandService','slice','color','fillColor','anchor','anchors','free','get','ink.operation.start','end','constructor','7857710lrLNOM','kind','find','length','push','point','corner','pointType','iterator','decorate','symbol','left','join','function','Rect','opacity','findIndex','setConfig','abs','height','defineProperty','2137191ytWgkx','Round','norm','_adapters','pen','default','hypot','start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ratio'];_0x119e=function(){return _0x1a7d20;};return _0x119e();}function v(_0x3d68ab){const _0x1bd2a1=_0x4864;return{..._0x3d68ab,'in':_0x3d68ab['in']?_(_0x3d68ab['in']):void 0x0,'out':_0x3d68ab['out']?_(_0x3d68ab[_0x1bd2a1(0xc7)]):void 0x0};}function y(_0x1275cb){const _0x2c3984=_0x4864;return{'kind':_0x2c3984(0xf0),'closed':_0x1275cb['closed'],'anchors':_0x1275cb[_0x2c3984(0xd1)]['map'](v)};}function b(_0x32c32f,_0x17b194,_0x17c64e){return{'x':_0x32c32f['x']+(_0x17b194['x']-_0x32c32f['x'])*_0x17c64e,'y':_0x32c32f['y']+(_0x17b194['y']-_0x32c32f['y'])*_0x17c64e};}function x(_0x570539,_0x1068f8){const _0xf360e6=_0x4864;return Math[_0xf360e6(0xf2)](_0x570539['x']-_0x1068f8['x'],_0x570539['y']-_0x1068f8['y']);}function S(_0x223a37){const _0x37b964=_0x4864;let _0x43103f=Math[_0x37b964(0xf2)](_0x223a37['x'],_0x223a37['y']);return _0x43103f<g?{'x':0x1,'y':0x0}:{'x':_0x223a37['x']/_0x43103f,'y':_0x223a37['y']/_0x43103f};}function C(_0x4c7e50,_0xe9fc4f,_0x51bb31=x(_0x4c7e50,_0xe9fc4f)){let _0x57c5ca=S({'x':_0x4c7e50['x']-_0xe9fc4f['x'],'y':_0x4c7e50['y']-_0xe9fc4f['y']});return{'x':_0x4c7e50['x']+_0x57c5ca['x']*_0x51bb31,'y':_0x4c7e50['y']+_0x57c5ca['y']*_0x51bb31};}function w(_0x2368fe,_0x466283){const _0x2c7c84=_0x4864;let {anchors:_0xdee917}=_0x2368fe;return _0xdee917[_0x2c7c84(0xda)]<0x2||_0x466283<0x0?null:_0x466283<_0xdee917['length']-0x1?{'startIndex':_0x466283,'endIndex':_0x466283+0x1,'start':_0xdee917[_0x466283],'end':_0xdee917[_0x466283+0x1]}:_0x2368fe[_0x2c7c84(0xff)]&&_0x466283===_0xdee917['length']-0x1?{'startIndex':_0xdee917[_0x2c7c84(0xda)]-0x1,'endIndex':0x0,'start':_0xdee917[_0xdee917[_0x2c7c84(0xda)]-0x1],'end':_0xdee917[0x0]}:null;}function T(_0x2a3943,_0x22d871){const _0x1a5ef4=_0x4864;let _0x127efb=w(_0x2a3943,_0x22d871);return _0x127efb?[_0x127efb[_0x1a5ef4(0xf3)],_0x127efb[_0x1a5ef4(0xf3)]['out']??_0x127efb[_0x1a5ef4(0xf3)],_0x127efb[_0x1a5ef4(0xd5)]['in']??_0x127efb['end'],_0x127efb[_0x1a5ef4(0xd5)]]:null;}function te(_0x4ca696,_0x306903){const _0x45b236=_0x4864;return _0x306903===_0x45b236(0xd0)?_0x4ca696:_0x4ca696[_0x306903]??null;}function E(_0x1007e9,_0x146e3e,_0x5b16d4){const _0x363756=_0x4864;return _0x5b16d4===_0x363756(0xd0)||_0x1007e9[_0x363756(0xff)]?!0x0:_0x5b16d4==='in'?_0x146e3e>0x0:_0x146e3e<_0x1007e9[_0x363756(0xd1)][_0x363756(0xda)]-0x1;}function D(_0x2d461a,_0x20874e){let [_0x4a50f7,_0x3b0cd6,_0x193d52,_0x4efa2a]=_0x2d461a,_0x2937d6=b(_0x4a50f7,_0x3b0cd6,_0x20874e),_0x40c317=b(_0x3b0cd6,_0x193d52,_0x20874e),_0x57fce9=b(_0x193d52,_0x4efa2a,_0x20874e);return b(b(_0x2937d6,_0x40c317,_0x20874e),b(_0x40c317,_0x57fce9,_0x20874e),_0x20874e);}function ne(_0x4436c9,_0xb85bf3){let [_0x35c1c7,_0x4e76b8,_0xad73ca,_0x5524aa]=_0x4436c9,_0x1e5219=b(_0x35c1c7,_0x4e76b8,_0xb85bf3),_0x1bff35=b(_0x4e76b8,_0xad73ca,_0xb85bf3),_0x2bcdb4=b(_0xad73ca,_0x5524aa,_0xb85bf3),_0x40a66e=b(_0x1e5219,_0x1bff35,_0xb85bf3),_0x2c2ce9=b(_0x1bff35,_0x2bcdb4,_0xb85bf3),_0x26058f=b(_0x40a66e,_0x2c2ce9,_0xb85bf3);return{'left':[_0x35c1c7,_0x1e5219,_0x40a66e,_0x26058f],'right':[_0x26058f,_0x2c2ce9,_0x2bcdb4,_0x5524aa]};}function O(_0x2f0493,_0x21f58d,_0x8062f7){const _0x5952f9=_0x4864;let _0x1d348f=_0x8062f7['x']-_0x21f58d['x'],_0x2ad1d8=_0x8062f7['y']-_0x21f58d['y'],_0x2a6308=_0x1d348f*_0x1d348f+_0x2ad1d8*_0x2ad1d8,_0x10be02=_0x2a6308<=g?0x0:Math[_0x5952f9(0xf7)](0x0,Math[_0x5952f9(0x112)](0x1,((_0x2f0493['x']-_0x21f58d['x'])*_0x1d348f+(_0x2f0493['y']-_0x21f58d['y'])*_0x2ad1d8)/_0x2a6308)),_0x4c8663={'x':_0x21f58d['x']+_0x1d348f*_0x10be02,'y':_0x21f58d['y']+_0x2ad1d8*_0x10be02};return{'point':_0x4c8663,'ratio':_0x10be02,'distance':x(_0x2f0493,_0x4c8663)};}function re(_0x4ef569,_0x3b4179,_0x293d2b){const _0x15c174=_0x4864;return O(_0x4ef569,_0x3b4179,_0x293d2b)[_0x15c174(0x109)]**0x2;}function k(_0x1d2864,_0x5c731a){const _0x23aefb=_0x4864;if(_0x1d2864['length']<=0x2)return _0x1d2864[_0x23aefb(0xf9)](_);let _0x1a2417=0x0,_0x2bc52e=0x0,_0x5dd2cf=_0x1d2864[0x0],_0x4815b5=_0x1d2864[_0x1d2864[_0x23aefb(0xda)]-0x1],_0x13a89b=_0x5c731a*_0x5c731a;for(let _0x3f30ad=0x1;_0x3f30ad<_0x1d2864[_0x23aefb(0xda)]-0x1;_0x3f30ad++){let _0x302844=re(_0x1d2864[_0x3f30ad],_0x5dd2cf,_0x4815b5);_0x302844>_0x1a2417&&(_0x1a2417=_0x302844,_0x2bc52e=_0x3f30ad);}if(_0x1a2417<=_0x13a89b)return[_(_0x5dd2cf),_(_0x4815b5)];let _0x5777ec=k(_0x1d2864[_0x23aefb(0xcd)](0x0,_0x2bc52e+0x1),_0x5c731a),_0x62fe3b=k(_0x1d2864[_0x23aefb(0xcd)](_0x2bc52e),_0x5c731a);return[..._0x5777ec['slice'](0x0,-0x1),..._0x62fe3b];}function ie(_0x48344a,_0x4d695f){let _0x558a86=_0x48344a[_0x4d695f],_0x8a0995=_0x48344a[_0x4d695f+0x1],_0x1bbb5e=_0x48344a[_0x4d695f-0x1]??_0x558a86;return{'x':_0x558a86['x']+(_0x8a0995['x']-_0x1bbb5e['x'])/0x6,'y':_0x558a86['y']+(_0x8a0995['y']-_0x1bbb5e['y'])/0x6};}function A(_0x175032,_0x332736){let _0x38ad84=_0x175032[_0x332736],_0x4062d2=_0x175032[_0x332736-0x1],_0x5993ec=_0x175032[_0x332736+0x1]??_0x38ad84;return{'x':_0x38ad84['x']-(_0x5993ec['x']-_0x4062d2['x'])/0x6,'y':_0x38ad84['y']-(_0x5993ec['y']-_0x4062d2['y'])/0x6};}function j(_0x50ce5b,_0x480c67){const _0x32a70d=_0x4864;let _0x37e00d=_0x50ce5b[_0x32a70d(0xd1)][_0x480c67],_0x1c2efa=_0x50ce5b[_0x32a70d(0xd1)][_0x480c67-0x1]??(_0x50ce5b['closed']?_0x50ce5b[_0x32a70d(0xd1)][_0x50ce5b[_0x32a70d(0xd1)][_0x32a70d(0xda)]-0x1]:null),_0x3035ae=_0x50ce5b[_0x32a70d(0xd1)][_0x480c67+0x1]??(_0x50ce5b[_0x32a70d(0xff)]?_0x50ce5b[_0x32a70d(0xd1)][0x0]:null),_0x34a335=_0x1c2efa&&_0x3035ae?S({'x':_0x3035ae['x']-_0x1c2efa['x'],'y':_0x3035ae['y']-_0x1c2efa['y']}):_0x3035ae?S({'x':_0x3035ae['x']-_0x37e00d['x'],'y':_0x3035ae['y']-_0x37e00d['y']}):_0x1c2efa?S({'x':_0x37e00d['x']-_0x1c2efa['x'],'y':_0x37e00d['y']-_0x1c2efa['y']}):{'x':0x1,'y':0x0},_0x2bf319=_0x1c2efa&&_0x3035ae?Math[_0x32a70d(0xf7)](0x32,x(_0x1c2efa,_0x3035ae)/0x4):0x32;return{'in':{'x':_0x37e00d['x']-_0x34a335['x']*_0x2bf319,'y':_0x37e00d['y']-_0x34a335['y']*_0x2bf319},'out':{'x':_0x37e00d['x']+_0x34a335['x']*_0x2bf319,'y':_0x37e00d['y']+_0x34a335['y']*_0x2bf319}};}function M(_0x3b3083,_0x2d214d){const _0x52077c=_0x4864;let _0x544f3c=_0x3b3083[_0x2d214d],_0x13592a=_0x2d214d==='in'?'out':'in',_0x507fef=_0x3b3083[_0x13592a];_0x544f3c&&(_0x3b3083[_0x52077c(0xde)]===_0x52077c(0xf8)?_0x3b3083[_0x13592a]=C(_0x3b3083,_0x544f3c):_0x3b3083[_0x52077c(0xde)]===_0x52077c(0x107)&&(_0x3b3083[_0x13592a]=C(_0x3b3083,_0x544f3c,_0x507fef?x(_0x3b3083,_0x507fef):x(_0x3b3083,_0x544f3c))));}function ae(_0x3cb302,_0x1a154c){const _0x314872=_0x4864;let _0x924e33=y(_0x3cb302);return!_0x1a154c||_0x924e33[_0x314872(0xff)]||_0x924e33[_0x314872(0xd1)][_0x314872(0xda)]===0x0||_0x924e33[_0x314872(0xd1)][_0x314872(0xdb)]({'id':'__ink-preview-anchor__','x':_0x1a154c['x'],'y':_0x1a154c['y'],'pointType':_0x314872(0xdd)}),_0x924e33;}function oe(_0x202ea3,_0x366f73={}){const _0x412eec=_0x4864;let _0x100f4a=Math[_0x412eec(0xf7)](0x0,_0x366f73[_0x412eec(0xbe)]??Math[_0x412eec(0xf7)](0x4,_0x202ea3[_0x412eec(0xc3)]*0.35)),_0x548115=_0x366f73[_0x412eec(0xfa)]??(_0x2d56d5=>'ink-centerline-'+_0x2d56d5),_0x22e118=k(_0x202ea3[_0x412eec(0x101)],_0x100f4a),_0x1cc5e5=_0x22e118['map']((_0x1fbf81,_0x15c6a8)=>({'id':_0x548115(_0x15c6a8),'x':_0x1fbf81['x'],'y':_0x1fbf81['y'],'pointType':'free'}));for(let _0x48f298=0x0;_0x48f298<_0x1cc5e5[_0x412eec(0xda)]-0x1;_0x48f298++)_0x1cc5e5[_0x48f298][_0x412eec(0xc7)]=ie(_0x22e118,_0x48f298),_0x1cc5e5[_0x48f298+0x1]['in']=A(_0x22e118,_0x48f298+0x1);return{'kind':_0x412eec(0xf0),'closed':!0x1,'anchors':_0x1cc5e5};}function se(_0x47068e,_0x115a99,_0x305029){const _0x38d6d2=_0x4864;let _0x10c205=null,_0xfa1ae8=[_0x38d6d2(0xd0),'in',_0x38d6d2(0xc7)];return _0x47068e['anchors']['forEach']((_0x3914c8,_0x4975c7)=>{const _0x3f9148=_0x38d6d2;_0xfa1ae8[_0x3f9148(0x103)](_0xd5de7b=>{const _0x87f723=_0x3f9148;if(!E(_0x47068e,_0x4975c7,_0xd5de7b))return;let _0x2b7fbb=te(_0x3914c8,_0xd5de7b);if(!_0x2b7fbb)return;let _0x548c48=x(_0x115a99,_0x2b7fbb);_0x548c48>_0x305029||_0x10c205&&_0x548c48>=_0x10c205[_0x87f723(0x109)]||(_0x10c205={'handle':{'kind':_0xd5de7b,'anchorId':_0x3914c8['id']},'point':_(_0x2b7fbb),'distance':_0x548c48});});}),_0x10c205;}function ce(_0x30ba58,_0x37cc4f,_0x3c061b){const _0x13bba4=_0x4864;let _0x237015=null,_0x3d8c6a=_0x30ba58['closed']?_0x30ba58[_0x13bba4(0xd1)][_0x13bba4(0xda)]:Math[_0x13bba4(0xf7)](0x0,_0x30ba58[_0x13bba4(0xd1)][_0x13bba4(0xda)]-0x1);for(let _0x1afe66=0x0;_0x1afe66<_0x3d8c6a;_0x1afe66++){let _0x584a61=T(_0x30ba58,_0x1afe66);if(!_0x584a61)continue;let _0x5af72f=D(_0x584a61,0x0);for(let _0x183755=0x1;_0x183755<=0x20;_0x183755++){let _0xc6d120=D(_0x584a61,_0x183755/0x20),_0x1782fc=O(_0x37cc4f,_0x5af72f,_0xc6d120),_0x1709dd=(_0x183755-0x1+_0x1782fc[_0x13bba4(0xf5)])/0x20;(!_0x237015||_0x1782fc[_0x13bba4(0x109)]<_0x237015[_0x13bba4(0x109)])&&(_0x237015={'segmentIndex':_0x1afe66,'t':_0x1709dd,'point':_0x1782fc[_0x13bba4(0xdc)],'distance':_0x1782fc[_0x13bba4(0x109)]}),_0x5af72f=_0xc6d120;}}return _0x237015&&_0x237015[_0x13bba4(0x109)]<=_0x3c061b?_0x237015:null;}function le(_0x249b7a,_0x4c5f40,_0x257992){const _0xb55d51=_0x4864;let _0x8509cd=y(_0x249b7a),_0x43a5f9=w(_0x8509cd,_0x4c5f40['segmentIndex']),_0x49f567=T(_0x8509cd,_0x4c5f40[_0xb55d51(0xf6)]);if(!_0x43a5f9||!_0x49f567)return _0x8509cd;let _0x138e9c=ne(_0x49f567,Math[_0xb55d51(0xf7)](0x0,Math['min'](0x1,_0x4c5f40['t']))),_0x52a9ad={'id':_0x257992(),'x':_0x138e9c[_0xb55d51(0xe2)][0x3]['x'],'y':_0x138e9c[_0xb55d51(0xe2)][0x3]['y'],'in':_(_0x138e9c['left'][0x2]),'out':_(_0x138e9c['right'][0x1]),'pointType':'free'};return _0x8509cd[_0xb55d51(0xd1)][_0x43a5f9[_0xb55d51(0xbc)]][_0xb55d51(0xc7)]=_(_0x138e9c[_0xb55d51(0xe2)][0x1]),_0x8509cd[_0xb55d51(0xd1)][_0x43a5f9[_0xb55d51(0x105)]]['in']=_(_0x138e9c['right'][0x2]),_0x8509cd['anchors'][_0xb55d51(0xbf)](_0x43a5f9[_0xb55d51(0xbc)]+0x1,0x0,_0x52a9ad),_0x8509cd;}function ue(_0x1a5faa,_0xf45bfc){const _0x3d5825=_0x4864;let _0xfd6d95=y(_0x1a5faa);return _0xfd6d95[_0x3d5825(0xd1)]=_0xfd6d95[_0x3d5825(0xd1)]['filter'](_0x3f36fa=>_0x3f36fa['id']!==_0xf45bfc),_0xfd6d95['closed']&&_0xfd6d95[_0x3d5825(0xd1)][_0x3d5825(0xda)]<0x3&&(_0xfd6d95[_0x3d5825(0xff)]=!0x1),_0xfd6d95;}function N(_0x4762e5,_0x108118,_0x3fbb26){const _0x204aba=_0x4864;let _0x184d2f=y(_0x4762e5),_0x9d93ca=_0x184d2f[_0x204aba(0xd1)][_0x204aba(0xe7)](_0x411205=>_0x411205['id']===_0x108118),_0xb1926e=_0x184d2f[_0x204aba(0xd1)][_0x9d93ca];if(!_0xb1926e)return _0x184d2f;if(_0xb1926e[_0x204aba(0xde)]=_0x3fbb26,_0x3fbb26===_0x204aba(0xdd))return delete _0xb1926e['in'],delete _0xb1926e['out'],_0x184d2f;let _0x32e08e=j(_0x184d2f,_0x9d93ca);if(_0xb1926e['in']=_0xb1926e['in']?_(_0xb1926e['in']):_0x32e08e['in'],_0xb1926e[_0x204aba(0xc7)]=_0xb1926e['out']?_(_0xb1926e['out']):_0x32e08e[_0x204aba(0xc7)],_0x3fbb26===_0x204aba(0xf8)){let _0x24825e=Math[_0x204aba(0xf7)](x(_0xb1926e,_0xb1926e['in']),x(_0xb1926e,_0xb1926e[_0x204aba(0xc7)]),0x32),_0x3790ea=S({'x':_0xb1926e[_0x204aba(0xc7)]['x']-_0xb1926e['x'],'y':_0xb1926e['out']['y']-_0xb1926e['y']});_0xb1926e[_0x204aba(0xc7)]={'x':_0xb1926e['x']+_0x3790ea['x']*_0x24825e,'y':_0xb1926e['y']+_0x3790ea['y']*_0x24825e},_0xb1926e['in']={'x':_0xb1926e['x']-_0x3790ea['x']*_0x24825e,'y':_0xb1926e['y']-_0x3790ea['y']*_0x24825e};}else _0x3fbb26===_0x204aba(0x107)&&M(_0xb1926e,_0x204aba(0xc7));return _0x184d2f;}function P(_0x19bbda,_0x341825){const _0x46e308=_0x4864;let _0x4084f4=_0x19bbda[_0x46e308(0xd1)][_0x46e308(0xd9)](_0x22d233=>_0x22d233['id']===_0x341825),_0x36fa71=(_0x4084f4==null?void 0x0:_0x4084f4['pointType'])??_0x46e308(0xdd);return N(_0x19bbda,_0x341825,_0x36fa71===_0x46e308(0xdd)?_0x46e308(0x107):_0x36fa71==='smooth'?_0x46e308(0xf8):_0x36fa71===_0x46e308(0xf8)?_0x46e308(0xd2):_0x46e308(0xdd));}function F(_0x4a97a2,_0x3ba4ce,_0x521c9a){const _0x6cfb66=_0x4864;let _0x41f5f2=y(_0x4a97a2),_0x138fd3=_0x41f5f2[_0x6cfb66(0xd1)][_0x6cfb66(0xd9)](_0x515c04=>_0x515c04['id']===_0x3ba4ce[_0x6cfb66(0x102)]);if(!_0x138fd3)return _0x41f5f2;if(_0x3ba4ce[_0x6cfb66(0xd8)]==='anchor'){let _0x25338f={'x':_0x521c9a['x']-_0x138fd3['x'],'y':_0x521c9a['y']-_0x138fd3['y']};return _0x138fd3['x']=_0x521c9a['x'],_0x138fd3['y']=_0x521c9a['y'],_0x138fd3['in']&&={'x':_0x138fd3['in']['x']+_0x25338f['x'],'y':_0x138fd3['in']['y']+_0x25338f['y']},_0x138fd3[_0x6cfb66(0xc7)]&&={'x':_0x138fd3[_0x6cfb66(0xc7)]['x']+_0x25338f['x'],'y':_0x138fd3[_0x6cfb66(0xc7)]['y']+_0x25338f['y']},_0x41f5f2;}return _0x138fd3[_0x3ba4ce[_0x6cfb66(0xd8)]]=_(_0x521c9a),_0x138fd3[_0x6cfb66(0xde)]===_0x6cfb66(0xdd)&&(_0x138fd3[_0x6cfb66(0xde)]=_0x6cfb66(0xd2)),M(_0x138fd3,_0x3ba4ce['kind']),_0x41f5f2;}const I=1e-9;function L(_0x3acded){const _0x15d13a=_0x4864;let _0x352b02=Math[_0x15d13a(0x100)](_0x3acded*0x2710)/0x2710;return Object['is'](_0x352b02,-0x0)?'0':String(_0x352b02);}function R(_0x450bff){return L(_0x450bff['x'])+'\x20'+L(_0x450bff['y']);}function z(_0x114196,_0x305ba6){return{'x':_0x114196['x']-_0x305ba6['x'],'y':_0x114196['y']-_0x305ba6['y']};}function B(_0x20bb2f,_0x14b3a6,_0x2fa185,_0x40d9c6,_0x47f936){let _0xefe79f=0x1-_0x47f936;return{'x':_0xefe79f*_0xefe79f*_0xefe79f*_0x20bb2f['x']+0x3*_0xefe79f*_0xefe79f*_0x47f936*_0x14b3a6['x']+0x3*_0xefe79f*_0x47f936*_0x47f936*_0x2fa185['x']+_0x47f936*_0x47f936*_0x47f936*_0x40d9c6['x'],'y':_0xefe79f*_0xefe79f*_0xefe79f*_0x20bb2f['y']+0x3*_0xefe79f*_0xefe79f*_0x47f936*_0x14b3a6['y']+0x3*_0xefe79f*_0x47f936*_0x47f936*_0x2fa185['y']+_0x47f936*_0x47f936*_0x47f936*_0x40d9c6['y']};}function V(_0x500cef,_0x3e7304,_0x50432f,_0x5ba659){const _0x7e869b=_0x4864;let _0x7346b3=-_0x500cef+0x3*_0x3e7304-0x3*_0x50432f+_0x5ba659,_0x3be311=0x3*_0x500cef-0x6*_0x3e7304+0x3*_0x50432f,_0xc5c94e=-0x3*_0x500cef+0x3*_0x3e7304,_0xc6b634=[];if(Math[_0x7e869b(0xe9)](_0x7346b3)<I){if(Math[_0x7e869b(0xe9)](_0x3be311)<I)return _0xc6b634;let _0x57e569=-_0xc5c94e/(0x2*_0x3be311);return _0x57e569>0x0&&_0x57e569<0x1&&_0xc6b634[_0x7e869b(0xdb)](_0x57e569),_0xc6b634;}let _0x1b2b10=_0x3be311*_0x3be311-0x3*_0x7346b3*_0xc5c94e;if(_0x1b2b10<0x0)return _0xc6b634;let _0x81032=Math[_0x7e869b(0x10a)](Math['max'](0x0,_0x1b2b10)),_0x1307eb=(-_0x3be311+_0x81032)/(0x3*_0x7346b3),_0x1a4d92=(-_0x3be311-_0x81032)/(0x3*_0x7346b3);return _0x1307eb>0x0&&_0x1307eb<0x1&&_0xc6b634[_0x7e869b(0xdb)](_0x1307eb),_0x1a4d92>0x0&&_0x1a4d92<0x1&&Math[_0x7e869b(0xe9)](_0x1a4d92-_0x1307eb)>I&&_0xc6b634[_0x7e869b(0xdb)](_0x1a4d92),_0xc6b634;}function H(_0x57dc7e,_0x53cdff,_0x176a0e,_0x158ef4,_0x6559a6){const _0x27ad13=_0x4864;_0x57dc7e[_0x27ad13(0xdb)](_0x53cdff,_0x6559a6),new Set([...V(_0x53cdff['x'],_0x176a0e['x'],_0x158ef4['x'],_0x6559a6['x']),...V(_0x53cdff['y'],_0x176a0e['y'],_0x158ef4['y'],_0x6559a6['y'])])[_0x27ad13(0x103)](_0xe0e207=>{const _0x2817dc=_0x27ad13;_0x57dc7e[_0x2817dc(0xdb)](B(_0x53cdff,_0x176a0e,_0x158ef4,_0x6559a6,_0xe0e207));});}function U(_0x2da16f){const _0x2facce=_0x4864;let _0x5bcc5f=_0x2da16f[_0x2facce(0xd1)];if(_0x5bcc5f[_0x2facce(0xda)]<=0x1)return _0x5bcc5f;let _0xae61a1=[];for(let _0x4bef58=0x1;_0x4bef58<_0x5bcc5f[_0x2facce(0xda)];_0x4bef58++){let _0x4f34f4=_0x5bcc5f[_0x4bef58-0x1],_0xb5fc8a=_0x5bcc5f[_0x4bef58];H(_0xae61a1,_0x4f34f4,_0x4f34f4[_0x2facce(0xc7)]??_0x4f34f4,_0xb5fc8a['in']??_0xb5fc8a,_0xb5fc8a);}if(_0x2da16f[_0x2facce(0xff)]&&_0x5bcc5f[_0x2facce(0xda)]>0x1){let _0x58abd6=_0x5bcc5f[_0x5bcc5f[_0x2facce(0xda)]-0x1],_0x1a5d44=_0x5bcc5f[0x0];H(_0xae61a1,_0x58abd6,_0x58abd6['out']??_0x58abd6,_0x1a5d44['in']??_0x1a5d44,_0x1a5d44);}return _0xae61a1;}function de(_0x9c5d3c){const _0x508064=_0x4864;let _0x4a14b4=_0x9c5d3c[_0x508064(0x101)];if(_0x4a14b4['length']<=0x1)return _0x4a14b4;let _0x50338a=[];for(let _0x4cab89=0x0;_0x4cab89<_0x4a14b4[_0x508064(0xda)]-0x1;_0x4cab89++){let _0x17a29f=_0x4a14b4[_0x4cab89],_0x5e0425=_0x4a14b4[_0x4cab89+0x1],_0xf5cdf9=_0x4a14b4[_0x4cab89-0x1]??_0x17a29f,_0x31cb16=_0x4a14b4[_0x4cab89+0x2]??_0x5e0425;H(_0x50338a,_0x17a29f,{'x':_0x17a29f['x']+(_0x5e0425['x']-_0xf5cdf9['x'])/0x6,'y':_0x17a29f['y']+(_0x5e0425['y']-_0xf5cdf9['y'])/0x6},{'x':_0x5e0425['x']-(_0x31cb16['x']-_0x17a29f['x'])/0x6,'y':_0x5e0425['y']-(_0x31cb16['y']-_0x17a29f['y'])/0x6},_0x5e0425);}return _0x50338a;}function fe(_0x5419ce){const _0x3e9aac=_0x4864;return _0x5419ce[_0x3e9aac(0xd8)]===_0x3e9aac(0xf0)?U(_0x5419ce):de(_0x5419ce);}function W(_0x55cd35){const _0x32db89=_0x4864;let _0x521ed9=Math[_0x32db89(0x100)](_0x55cd35*0x2710)/0x2710;return Object['is'](_0x521ed9,-0x0)?0x0:_0x521ed9;}function G(_0x1247ac){const _0x1253d5=_0x4864;let _0xcfc9c0=fe(_0x1247ac);if(_0xcfc9c0[_0x1253d5(0xda)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x3b0322=Math[_0x1253d5(0x112)](..._0xcfc9c0[_0x1253d5(0xf9)](_0x5d2dec=>_0x5d2dec['x'])),_0x55efd9=Math[_0x1253d5(0x112)](..._0xcfc9c0[_0x1253d5(0xf9)](_0x3a7484=>_0x3a7484['y'])),_0x25e655=Math[_0x1253d5(0xf7)](..._0xcfc9c0['map'](_0x235ae7=>_0x235ae7['x'])),_0x484eb7=Math[_0x1253d5(0xf7)](..._0xcfc9c0[_0x1253d5(0xf9)](_0x4609a2=>_0x4609a2['y']));return{'left':W(_0x3b0322),'top':W(_0x55efd9),'width':W(Math[_0x1253d5(0xf7)](0x1,_0x25e655-_0x3b0322)),'height':W(Math[_0x1253d5(0xf7)](0x1,_0x484eb7-_0x55efd9))};}function pe(_0x2fcc18,_0x104182){const _0x2c4458=_0x4864;let _0x45779e=_0x2fcc18[_0x2c4458(0xd1)];if(_0x45779e['length']===0x0)return'';let _0x2c7cd5=['M\x20'+R(z(_0x45779e[0x0],_0x104182))];for(let _0x11bfeb=0x1;_0x11bfeb<_0x45779e[_0x2c4458(0xda)];_0x11bfeb++){let _0x5b9862=_0x45779e[_0x11bfeb-0x1],_0x173a0c=_0x45779e[_0x11bfeb],_0x55354f=_0x5b9862[_0x2c4458(0xc7)]??_0x5b9862,_0x165ecd=_0x173a0c['in']??_0x173a0c;_0x2c7cd5[_0x2c4458(0xdb)]('C\x20'+R(z(_0x55354f,_0x104182))+'\x20'+R(z(_0x165ecd,_0x104182))+'\x20'+R(z(_0x173a0c,_0x104182)));}if(_0x2fcc18[_0x2c4458(0xff)]&&_0x45779e[_0x2c4458(0xda)]>0x1){let _0x204150=_0x45779e[_0x45779e[_0x2c4458(0xda)]-0x1],_0x4df586=_0x45779e[0x0],_0x3ac608=_0x204150[_0x2c4458(0xc7)]??_0x204150,_0x306e32=_0x4df586['in']??_0x4df586;_0x2c7cd5[_0x2c4458(0xdb)]('C\x20'+R(z(_0x3ac608,_0x104182))+'\x20'+R(z(_0x306e32,_0x104182))+'\x20'+R(z(_0x4df586,_0x104182))),_0x2c7cd5[_0x2c4458(0xdb)]('Z');}return _0x2c7cd5[_0x2c4458(0xe3)]('\x20');}function me(_0x60ad4e,_0x258e15){const _0x29da93=_0x4864;let _0x3dc787=_0x60ad4e[_0x29da93(0x101)][_0x29da93(0xf9)](_0x197e33=>z(_0x197e33,_0x258e15));if(_0x3dc787['length']===0x0)return'';if(_0x3dc787[_0x29da93(0xda)]===0x1)return'M\x20'+R(_0x3dc787[0x0]);let _0x348093=['M\x20'+R(_0x3dc787[0x0])];for(let _0x5bc480=0x0;_0x5bc480<_0x3dc787[_0x29da93(0xda)]-0x1;_0x5bc480++){let _0x2024a7=_0x3dc787[_0x5bc480],_0x593a2e=_0x3dc787[_0x5bc480+0x1],_0x3b8824=_0x3dc787[_0x5bc480-0x1]??_0x2024a7,_0x183656=_0x3dc787[_0x5bc480+0x2]??_0x593a2e,_0x1707d9={'x':_0x2024a7['x']+(_0x593a2e['x']-_0x3b8824['x'])/0x6,'y':_0x2024a7['y']+(_0x593a2e['y']-_0x3b8824['y'])/0x6},_0x2efff4={'x':_0x593a2e['x']-(_0x183656['x']-_0x2024a7['x'])/0x6,'y':_0x593a2e['y']-(_0x183656['y']-_0x2024a7['y'])/0x6};_0x348093['push']('C\x20'+R(_0x1707d9)+'\x20'+R(_0x2efff4)+'\x20'+R(_0x593a2e));}return _0x348093[_0x29da93(0xe3)]('\x20');}function he(_0x20cfcd,_0xada168){const _0x294ba7=_0x4864;return _0x20cfcd[_0x294ba7(0xd8)]==='pen'?pe(_0x20cfcd,_0xada168):me(_0x20cfcd,_0xada168);}function _0x4864(_0x11a350,_0x38b86f){_0x11a350=_0x11a350-0xb9;const _0x119ef1=_0x119e();let _0x486498=_0x119ef1[_0x11a350];return _0x486498;}function ge(_0x5322dc,_0x3b8495){const _0x34b271=_0x4864;return _0x3b8495!=null&&_0x3b8495[_0x34b271(0xce)]?_0x3b8495[_0x34b271(0xce)]:_0x5322dc[_0x34b271(0xd8)]==='pen'?_0x34b271(0x10f):_0x5322dc[_0x34b271(0xce)];}function _e(_0x1e1980,_0x41f5e3){const _0x17fcb9=_0x4864;return(_0x41f5e3==null?void 0x0:_0x41f5e3[_0x17fcb9(0xc3)])===void 0x0?_0x1e1980[_0x17fcb9(0xd8)]==='pen'?0x2:_0x1e1980[_0x17fcb9(0xc3)]:_0x41f5e3[_0x17fcb9(0xc3)];}function ve(_0x4072da,_0x429b56){const _0x426b42=_0x4864;return(_0x429b56==null?void 0x0:_0x429b56[_0x426b42(0xe6)])===void 0x0?_0x4072da[_0x426b42(0xd8)]===_0x426b42(0xf0)?void 0x0:_0x4072da[_0x426b42(0xe6)]:_0x429b56[_0x426b42(0xe6)];}function ye(_0x54ac52,_0x5e0ba6){const _0xa80281=_0x4864;let _0x570dda=G(_0x54ac52),_0x15fc73=he(_0x54ac52,{'x':_0x570dda[_0xa80281(0xe2)],'y':_0x570dda[_0xa80281(0xc6)]}),_0x517d3c=_0x54ac52['kind']===_0xa80281(0xf0)&&_0x54ac52[_0xa80281(0xff)],_0x31623a=_0x5e0ba6==null?void 0x0:_0x5e0ba6[_0xa80281(0xcf)];return{'shapeType':_0x14cfe9[_0xa80281(0xe5)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x570dda[_0xa80281(0xc3)],'h':_0x570dda[_0xa80281(0xea)],'fill':_0x517d3c?_0xa80281(0xee):_0xa80281(0xc1),'stroke':!0x0,'data':_0x15fc73,'dataArray':be(_0x54ac52,{'x':_0x570dda[_0xa80281(0xe2)],'y':_0x570dda[_0xa80281(0xc6)]})}]},'fill':_0x517d3c&&_0x31623a?{'color':_0x31623a,'fillType':_0x143b58['SolidFill']}:{'fillType':_0x143b58[_0xa80281(0x10d)]},'stroke':{'color':ge(_0x54ac52,_0x5e0ba6),'width':_e(_0x54ac52,_0x5e0ba6),'opacity':ve(_0x54ac52,_0x5e0ba6),'lineStrokeType':_0x13bb6c['SolidLine'],'capType':_0x138f8d[_0xa80281(0xed)],'lineJoinType':_0xd35926[_0xa80281(0xed)]}};}function K(_0x28de2b,_0x64a10){return{'x':_0x28de2b['x']-_0x64a10['x'],'y':_0x28de2b['y']-_0x64a10['y']};}function be(_0x5aa340,_0x579f9b){const _0x2bc0d8=_0x4864;if(_0x5aa340[_0x2bc0d8(0xd8)]===_0x2bc0d8(0xf0)){let _0x2ab2bf=_0x5aa340[_0x2bc0d8(0xd1)];if(_0x2ab2bf[_0x2bc0d8(0xda)]===0x0)return[];let _0x1eec10=K(_0x2ab2bf[0x0],_0x579f9b),_0x437e6f=[{'command':'M','points':[_0x1eec10['x'],_0x1eec10['y']]}];for(let _0xdc67fb=0x1;_0xdc67fb<_0x2ab2bf[_0x2bc0d8(0xda)];_0xdc67fb++){let _0x357652=_0x2ab2bf[_0xdc67fb-0x1],_0x540343=_0x2ab2bf[_0xdc67fb],_0x9a2b07=K(_0x357652[_0x2bc0d8(0xc7)]??_0x357652,_0x579f9b),_0x142cb5=K(_0x540343['in']??_0x540343,_0x579f9b),_0x427d3b=K(_0x540343,_0x579f9b);_0x437e6f[_0x2bc0d8(0xdb)]({'command':'C','points':[_0x9a2b07['x'],_0x9a2b07['y'],_0x142cb5['x'],_0x142cb5['y'],_0x427d3b['x'],_0x427d3b['y']]});}if(_0x5aa340[_0x2bc0d8(0xff)]&&_0x2ab2bf['length']>0x1){let _0x273dbe=_0x2ab2bf[_0x2ab2bf[_0x2bc0d8(0xda)]-0x1],_0x465048=_0x2ab2bf[0x0],_0x4d8060=K(_0x273dbe['out']??_0x273dbe,_0x579f9b),_0x564006=K(_0x465048['in']??_0x465048,_0x579f9b),_0x5db3b0=K(_0x465048,_0x579f9b);_0x437e6f[_0x2bc0d8(0xdb)]({'command':'C','points':[_0x4d8060['x'],_0x4d8060['y'],_0x564006['x'],_0x564006['y'],_0x5db3b0['x'],_0x5db3b0['y']]}),_0x437e6f['push']({'command':'z','points':[]});}return _0x437e6f;}let _0x2124ad=_0x5aa340[_0x2bc0d8(0x101)][_0x2bc0d8(0xf9)](_0x55fa04=>K(_0x55fa04,_0x579f9b));if(_0x2124ad['length']===0x0)return[];let _0x4a29f1=[{'command':'M','points':[_0x2124ad[0x0]['x'],_0x2124ad[0x0]['y']]}];for(let _0x4abfe6=0x0;_0x4abfe6<_0x2124ad[_0x2bc0d8(0xda)]-0x1;_0x4abfe6++){let _0x8aa1dd=_0x2124ad[_0x4abfe6],_0x218bf6=_0x2124ad[_0x4abfe6+0x1],_0x19a85c=_0x2124ad[_0x4abfe6-0x1]??_0x8aa1dd,_0x2e8be1=_0x2124ad[_0x4abfe6+0x2]??_0x218bf6,_0x1a3128={'x':_0x8aa1dd['x']+(_0x218bf6['x']-_0x19a85c['x'])/0x6,'y':_0x8aa1dd['y']+(_0x218bf6['y']-_0x19a85c['y'])/0x6},_0x5cc3e7={'x':_0x218bf6['x']-(_0x2e8be1['x']-_0x8aa1dd['x'])/0x6,'y':_0x218bf6['y']-(_0x2e8be1['y']-_0x8aa1dd['y'])/0x6};_0x4a29f1['push']({'command':'C','points':[_0x1a3128['x'],_0x1a3128['y'],_0x5cc3e7['x'],_0x5cc3e7['y'],_0x218bf6['x'],_0x218bf6['y']]});}return _0x4a29f1;}function xe(_0x37a886){const _0xfe2de0=_0x4864;let {model:_0x790f08,sourceModel:_0x57115e=_0x790f08,style:_0x1a79fd}=_0x37a886,_0x5812b4=_0x37a886[_0xfe2de0(0xc0)]??_0x790f08['kind'],_0x3c764a=G(_0x790f08),_0x563198=_0x790f08['kind']==='pen'&&_0x5812b4!==_0xfe2de0(0xf0)?_0x790f08:void 0x0;return{'transform':{..._0x3c764a,'rotation':0x0},'shapeData':ye(_0x790f08,_0x1a79fd),'ink':{'version':0x1,'tool':_0x5812b4,'sourceModel':_0x57115e,..._0x563198?{'editModel':_0x563198}:{},'normalizedBounds':_0x3c764a}};}var Se='@univerjs-pro/ink',Ce=_0x46a672(0xfe);function q(_0x3a510d){'@babel/helpers - typeof';const _0x5b6fff=_0x46a672;return q=typeof Symbol==_0x5b6fff(0xe4)&&typeof Symbol[_0x5b6fff(0xdf)]==_0x5b6fff(0xe1)?function(_0x428c5f){return typeof _0x428c5f;}:function(_0x4a8ac7){const _0x3a86d6=_0x5b6fff;return _0x4a8ac7&&typeof Symbol==_0x3a86d6(0xe4)&&_0x4a8ac7[_0x3a86d6(0xd6)]===Symbol&&_0x4a8ac7!==Symbol[_0x3a86d6(0xca)]?'symbol':typeof _0x4a8ac7;},q(_0x3a510d);}function we(_0x283aca,_0x225855){const _0x35e3e3=_0x46a672;if(q(_0x283aca)!='object'||!_0x283aca)return _0x283aca;var _0xc889b4;if(typeof Symbol<'u'&&(_0xc889b4=_0x283aca[Symbol['toPrimitive']])!==void 0x0){var _0x11ec5a=_0xc889b4['call'](_0x283aca,_0x225855||_0x35e3e3(0xf1));if(q(_0x11ec5a)!=_0x35e3e3(0xc5))return _0x11ec5a;throw TypeError(_0x35e3e3(0xf4));}return(_0x225855===_0x35e3e3(0x10b)?String:Number)(_0x283aca);}function J(_0x88c516){const _0x381d06=_0x46a672;var _0x37f7ed=we(_0x88c516,_0x381d06(0x10b));return q(_0x37f7ed)==_0x381d06(0xe1)?_0x37f7ed:_0x37f7ed+'';}function Y(_0x51aa29,_0x4c3c75,_0x1f7d84){const _0x556e04=_0x46a672;return(_0x4c3c75=J(_0x4c3c75))in _0x51aa29?Object[_0x556e04(0xeb)](_0x51aa29,_0x4c3c75,{'value':_0x1f7d84,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51aa29[_0x4c3c75]=_0x1f7d84,_0x51aa29;}const X=_0x2928cc('ink.host-adapter.service');var Te=class{constructor(){const _0x22b383=_0x46a672;Y(this,_0x22b383(0xef),[]);}[_0x46a672(0x111)](_0x426343){const _0x1616e5=_0x46a672;return this[_0x1616e5(0xef)][_0x1616e5(0xdb)](_0x426343),_0x4307f3(()=>{const _0x42ecd1=_0x1616e5;let _0x4477f7=this['_adapters'][_0x42ecd1(0xbb)](_0x426343);_0x4477f7>=0x0&&this[_0x42ecd1(0xef)][_0x42ecd1(0xbf)](_0x4477f7,0x1);});}[_0x46a672(0xc4)](_0x2b245c){const _0x2ebcf8=_0x46a672;for(let _0x4f867b of this[_0x2ebcf8(0xef)])if(_0x4f867b[_0x2ebcf8(0xc4)](_0x2b245c))return!0x0;return!0x1;}async['createCustomShape'](_0x14157c){const _0x4d33aa=_0x46a672;for(let _0x47fff0 of this[_0x4d33aa(0xef)])if(_0x47fff0[_0x4d33aa(0xfb)]&&await _0x47fff0[_0x4d33aa(0xfb)](_0x14157c))return!0x0;return!0x1;}};const Ee={'id':_0x46a672(0xd4),'type':_0x1877b6['OPERATION'],'handler':(_0x4564a2,_0x6ff024)=>_0x6ff024?_0x4564a2[_0x46a672(0xd3)](X)[_0x46a672(0xc4)](_0x6ff024):!0x1},Z={};function Q(_0x19ca34,_0x55abd3){return function(_0xc3343b,_0x52b7f7){_0x55abd3(_0xc3343b,_0x52b7f7,_0x19ca34);};}function De(_0x12456f,_0x4f37b9,_0x17fa6a,_0x5aaf41){const _0x376d54=_0x46a672;var _0x1e0531=arguments[_0x376d54(0xda)],_0x4bed3c=_0x1e0531<0x3?_0x4f37b9:_0x5aaf41===null?_0x5aaf41=Object[_0x376d54(0x10c)](_0x4f37b9,_0x17fa6a):_0x5aaf41,_0x10b12e;if(typeof Reflect==_0x376d54(0xc5)&&typeof Reflect[_0x376d54(0xe0)]==_0x376d54(0xe4))_0x4bed3c=Reflect['decorate'](_0x12456f,_0x4f37b9,_0x17fa6a,_0x5aaf41);else{for(var _0x5c702e=_0x12456f[_0x376d54(0xda)]-0x1;_0x5c702e>=0x0;_0x5c702e--)(_0x10b12e=_0x12456f[_0x5c702e])&&(_0x4bed3c=(_0x1e0531<0x3?_0x10b12e(_0x4bed3c):_0x1e0531>0x3?_0x10b12e(_0x4f37b9,_0x17fa6a,_0x4bed3c):_0x10b12e(_0x4f37b9,_0x17fa6a))||_0x4bed3c);}return _0x1e0531>0x3&&_0x4bed3c&&Object['defineProperty'](_0x4f37b9,_0x17fa6a,_0x4bed3c),_0x4bed3c;}let $=class extends _0x100346{constructor(_0x151964=Z,_0x19505c,_0x2f8146,_0x5a831b){const _0x253d37=_0x46a672;super(),this[_0x253d37(0xc9)]=_0x151964,this[_0x253d37(0xc2)]=_0x19505c,this[_0x253d37(0xcc)]=_0x2f8146,this['_configService']=_0x5a831b;let {..._0x5b25c3}=_0x346288({},Z,this['_config']);this['_configService'][_0x253d37(0xe8)](_0x253d37(0xcb),_0x5b25c3);}[_0x46a672(0x106)](){const _0x551553=_0x46a672;[[X,{'useClass':Te}]]['forEach'](_0x3b6fbc=>this['_injector'][_0x551553(0x104)](_0x3b6fbc)),this['disposeWithMe'](this[_0x551553(0xcc)]['registerCommand'](Ee));}};Y($,_0x46a672(0xbd),_0x46a672(0xfd)),Y($,_0x46a672(0x108),Se),Y($,'version',Ce),Y($,'type',_0x5d87b6['UNIVER_UNKNOWN']),$=De([_0x3399a9(_0x266d29),Q(0x1,_0xa2debd(_0x119e36)),Q(0x2,_0x41ee75),Q(0x3,_0x161cc6)],$);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 _0x234bb6=_0x2604;(function(_0x49148a,_0x2f325b){const _0x40c754=_0x2604,_0x2ac5de=_0x49148a();while(!![]){try{const _0x47c6eb=parseInt(_0x40c754(0x117))/0x1*(-parseInt(_0x40c754(0x110))/0x2)+parseInt(_0x40c754(0xdb))/0x3+-parseInt(_0x40c754(0x11a))/0x4*(parseInt(_0x40c754(0xee))/0x5)+parseInt(_0x40c754(0x11c))/0x6*(-parseInt(_0x40c754(0x122))/0x7)+parseInt(_0x40c754(0xf3))/0x8+parseInt(_0x40c754(0xc1))/0x9*(parseInt(_0x40c754(0x121))/0xa)+parseInt(_0x40c754(0x10e))/0xb;if(_0x47c6eb===_0x2f325b)break;else _0x2ac5de['push'](_0x2ac5de['shift']());}catch(_0x2d66a4){_0x2ac5de['push'](_0x2ac5de['shift']());}}}(_0x1afd,0x2d1c9));import{ShapeFillEnum as _0x137e22,ShapeLineCapEnum as _0x5f227b,ShapeLineJoinEnum as _0x2cfe25,ShapeLineTypeEnum as _0x3708a3,ShapeTypeEnum as _0x1d5fb3}from'@univerjs-pro/engine-shape';import{UniverLicensePlugin as _0x38211f}from'@univerjs-pro/license';import{CommandType as _0x4b603e,DependentOn as _0x226505,ICommandService as _0x171415,IConfigService as _0x5b3d,Inject as _0x1739b1,Injector as _0x4929fc,Plugin as _0x2b18e8,UniverInstanceType as _0x1ecdfc,createIdentifier as _0x4bf0fa,merge as _0x10d687,toDisposable as _0x27c43d}from'@univerjs/core';const g=0.0001;function _(_0x525f4e){return{'x':_0x525f4e['x'],'y':_0x525f4e['y']};}function v(_0x1109a3){const _0x457304=_0x2604;return{..._0x1109a3,'in':_0x1109a3['in']?_(_0x1109a3['in']):void 0x0,'out':_0x1109a3[_0x457304(0xf7)]?_(_0x1109a3[_0x457304(0xf7)]):void 0x0};}function y(_0x1f207c){const _0x3ae541=_0x2604;return{'kind':_0x3ae541(0x11e),'closed':_0x1f207c[_0x3ae541(0x103)],'anchors':_0x1f207c[_0x3ae541(0xf4)]['map'](v)};}function _0x2604(_0x57b2bf,_0x4c8aa5){_0x57b2bf=_0x57b2bf-0xc1;const _0x1afd36=_0x1afd();let _0x260416=_0x1afd36[_0x57b2bf];return _0x260416;}function b(_0x41702f,_0x188f3a,_0x54c659){return{'x':_0x41702f['x']+(_0x188f3a['x']-_0x41702f['x'])*_0x54c659,'y':_0x41702f['y']+(_0x188f3a['y']-_0x41702f['y'])*_0x54c659};}function x(_0x4580a4,_0x2a5c51){const _0x52d796=_0x2604;return Math[_0x52d796(0xcc)](_0x4580a4['x']-_0x2a5c51['x'],_0x4580a4['y']-_0x2a5c51['y']);}function S(_0x36bd59){const _0x22293e=_0x2604;let _0x23b431=Math[_0x22293e(0xcc)](_0x36bd59['x'],_0x36bd59['y']);return _0x23b431<g?{'x':0x1,'y':0x0}:{'x':_0x36bd59['x']/_0x23b431,'y':_0x36bd59['y']/_0x23b431};}function C(_0x9ca61c,_0x59c831,_0x21a884=x(_0x9ca61c,_0x59c831)){let _0x39c546=S({'x':_0x9ca61c['x']-_0x59c831['x'],'y':_0x9ca61c['y']-_0x59c831['y']});return{'x':_0x9ca61c['x']+_0x39c546['x']*_0x21a884,'y':_0x9ca61c['y']+_0x39c546['y']*_0x21a884};}function w(_0x5cb72a,_0x14885f){const _0x41769b=_0x2604;let {anchors:_0x4986bd}=_0x5cb72a;return _0x4986bd[_0x41769b(0x104)]<0x2||_0x14885f<0x0?null:_0x14885f<_0x4986bd[_0x41769b(0x104)]-0x1?{'startIndex':_0x14885f,'endIndex':_0x14885f+0x1,'start':_0x4986bd[_0x14885f],'end':_0x4986bd[_0x14885f+0x1]}:_0x5cb72a[_0x41769b(0x103)]&&_0x14885f===_0x4986bd[_0x41769b(0x104)]-0x1?{'startIndex':_0x4986bd[_0x41769b(0x104)]-0x1,'endIndex':0x0,'start':_0x4986bd[_0x4986bd[_0x41769b(0x104)]-0x1],'end':_0x4986bd[0x0]}:null;}function T(_0x29421c,_0x3f86b2){const _0xe366c9=_0x2604;let _0x5eaedf=w(_0x29421c,_0x3f86b2);return _0x5eaedf?[_0x5eaedf[_0xe366c9(0xd6)],_0x5eaedf[_0xe366c9(0xd6)][_0xe366c9(0xf7)]??_0x5eaedf[_0xe366c9(0xd6)],_0x5eaedf['end']['in']??_0x5eaedf[_0xe366c9(0xf6)],_0x5eaedf['end']]:null;}function te(_0x577129,_0x49e7a7){const _0x570288=_0x2604;return _0x49e7a7===_0x570288(0x11d)?_0x577129:_0x577129[_0x49e7a7]??null;}function E(_0x5d3d32,_0x8abad0,_0x554155){const _0xd96fe9=_0x2604;return _0x554155===_0xd96fe9(0x11d)||_0x5d3d32[_0xd96fe9(0x103)]?!0x0:_0x554155==='in'?_0x8abad0>0x0:_0x8abad0<_0x5d3d32[_0xd96fe9(0xf4)][_0xd96fe9(0x104)]-0x1;}function D(_0x22ca6d,_0x73cf9a){let [_0x1619d5,_0x27da3c,_0x23da44,_0x47134b]=_0x22ca6d,_0x20927b=b(_0x1619d5,_0x27da3c,_0x73cf9a),_0x340f1f=b(_0x27da3c,_0x23da44,_0x73cf9a),_0x347853=b(_0x23da44,_0x47134b,_0x73cf9a);return b(b(_0x20927b,_0x340f1f,_0x73cf9a),b(_0x340f1f,_0x347853,_0x73cf9a),_0x73cf9a);}function ne(_0x3b52fd,_0x429cb1){let [_0x304796,_0x4d1202,_0x308725,_0x51ba1e]=_0x3b52fd,_0x33d6db=b(_0x304796,_0x4d1202,_0x429cb1),_0xfdc897=b(_0x4d1202,_0x308725,_0x429cb1),_0x10b1c8=b(_0x308725,_0x51ba1e,_0x429cb1),_0x355781=b(_0x33d6db,_0xfdc897,_0x429cb1),_0x613f89=b(_0xfdc897,_0x10b1c8,_0x429cb1),_0x32e7b2=b(_0x355781,_0x613f89,_0x429cb1);return{'left':[_0x304796,_0x33d6db,_0x355781,_0x32e7b2],'right':[_0x32e7b2,_0x613f89,_0x10b1c8,_0x51ba1e]};}function O(_0x548ee3,_0x490217,_0x236aed){const _0x56c17b=_0x2604;let _0x2a2569=_0x236aed['x']-_0x490217['x'],_0x1e9f2e=_0x236aed['y']-_0x490217['y'],_0x59b498=_0x2a2569*_0x2a2569+_0x1e9f2e*_0x1e9f2e,_0x2c5c4e=_0x59b498<=g?0x0:Math['max'](0x0,Math[_0x56c17b(0xca)](0x1,((_0x548ee3['x']-_0x490217['x'])*_0x2a2569+(_0x548ee3['y']-_0x490217['y'])*_0x1e9f2e)/_0x59b498)),_0x9c73dc={'x':_0x490217['x']+_0x2a2569*_0x2c5c4e,'y':_0x490217['y']+_0x1e9f2e*_0x2c5c4e};return{'point':_0x9c73dc,'ratio':_0x2c5c4e,'distance':x(_0x548ee3,_0x9c73dc)};}function re(_0x2e80d6,_0x2c4355,_0x599742){return O(_0x2e80d6,_0x2c4355,_0x599742)['distance']**0x2;}function k(_0x5bd837,_0x16fe3b){const _0x350e5b=_0x2604;if(_0x5bd837[_0x350e5b(0x104)]<=0x2)return _0x5bd837[_0x350e5b(0xef)](_);let _0x11af2b=0x0,_0x4cb94d=0x0,_0x5ac12e=_0x5bd837[0x0],_0x17cc1b=_0x5bd837[_0x5bd837[_0x350e5b(0x104)]-0x1],_0x29d3c7=_0x16fe3b*_0x16fe3b;for(let _0x6d1f26=0x1;_0x6d1f26<_0x5bd837[_0x350e5b(0x104)]-0x1;_0x6d1f26++){let _0x11fe76=re(_0x5bd837[_0x6d1f26],_0x5ac12e,_0x17cc1b);_0x11fe76>_0x11af2b&&(_0x11af2b=_0x11fe76,_0x4cb94d=_0x6d1f26);}if(_0x11af2b<=_0x29d3c7)return[_(_0x5ac12e),_(_0x17cc1b)];let _0x31c2ae=k(_0x5bd837[_0x350e5b(0xe2)](0x0,_0x4cb94d+0x1),_0x16fe3b),_0x3d579f=k(_0x5bd837['slice'](_0x4cb94d),_0x16fe3b);return[..._0x31c2ae[_0x350e5b(0xe2)](0x0,-0x1),..._0x3d579f];}function ie(_0x5b6391,_0x2b2fb3){let _0x42d273=_0x5b6391[_0x2b2fb3],_0xd4c348=_0x5b6391[_0x2b2fb3+0x1],_0x142fb2=_0x5b6391[_0x2b2fb3-0x1]??_0x42d273;return{'x':_0x42d273['x']+(_0xd4c348['x']-_0x142fb2['x'])/0x6,'y':_0x42d273['y']+(_0xd4c348['y']-_0x142fb2['y'])/0x6};}function A(_0x4e0f42,_0x53d31c){let _0x5d4764=_0x4e0f42[_0x53d31c],_0x16246d=_0x4e0f42[_0x53d31c-0x1],_0xad5ca9=_0x4e0f42[_0x53d31c+0x1]??_0x5d4764;return{'x':_0x5d4764['x']-(_0xad5ca9['x']-_0x16246d['x'])/0x6,'y':_0x5d4764['y']-(_0xad5ca9['y']-_0x16246d['y'])/0x6};}function j(_0x47698e,_0x4ea418){const _0x591ebd=_0x2604;let _0x4dae16=_0x47698e[_0x591ebd(0xf4)][_0x4ea418],_0x1727e1=_0x47698e[_0x591ebd(0xf4)][_0x4ea418-0x1]??(_0x47698e['closed']?_0x47698e[_0x591ebd(0xf4)][_0x47698e[_0x591ebd(0xf4)][_0x591ebd(0x104)]-0x1]:null),_0x3e5949=_0x47698e[_0x591ebd(0xf4)][_0x4ea418+0x1]??(_0x47698e[_0x591ebd(0x103)]?_0x47698e[_0x591ebd(0xf4)][0x0]:null),_0x3e8a37=_0x1727e1&&_0x3e5949?S({'x':_0x3e5949['x']-_0x1727e1['x'],'y':_0x3e5949['y']-_0x1727e1['y']}):_0x3e5949?S({'x':_0x3e5949['x']-_0x4dae16['x'],'y':_0x3e5949['y']-_0x4dae16['y']}):_0x1727e1?S({'x':_0x4dae16['x']-_0x1727e1['x'],'y':_0x4dae16['y']-_0x1727e1['y']}):{'x':0x1,'y':0x0},_0x129fb4=_0x1727e1&&_0x3e5949?Math[_0x591ebd(0x107)](0x32,x(_0x1727e1,_0x3e5949)/0x4):0x32;return{'in':{'x':_0x4dae16['x']-_0x3e8a37['x']*_0x129fb4,'y':_0x4dae16['y']-_0x3e8a37['y']*_0x129fb4},'out':{'x':_0x4dae16['x']+_0x3e8a37['x']*_0x129fb4,'y':_0x4dae16['y']+_0x3e8a37['y']*_0x129fb4}};}function M(_0x3e3acc,_0x296c75){const _0x9a195b=_0x2604;let _0x33adc6=_0x3e3acc[_0x296c75],_0x5ca41b=_0x296c75==='in'?_0x9a195b(0xf7):'in',_0x3490fb=_0x3e3acc[_0x5ca41b];_0x33adc6&&(_0x3e3acc[_0x9a195b(0x123)]===_0x9a195b(0xce)?_0x3e3acc[_0x5ca41b]=C(_0x3e3acc,_0x33adc6):_0x3e3acc[_0x9a195b(0x123)]===_0x9a195b(0x115)&&(_0x3e3acc[_0x5ca41b]=C(_0x3e3acc,_0x33adc6,_0x3490fb?x(_0x3e3acc,_0x3490fb):x(_0x3e3acc,_0x33adc6))));}function ae(_0x16ea0d,_0x25cf35){const _0x2bc410=_0x2604;let _0x1dbff4=y(_0x16ea0d);return!_0x25cf35||_0x1dbff4[_0x2bc410(0x103)]||_0x1dbff4['anchors']['length']===0x0||_0x1dbff4['anchors'][_0x2bc410(0xcd)]({'id':'__ink-preview-anchor__','x':_0x25cf35['x'],'y':_0x25cf35['y'],'pointType':_0x2bc410(0x10d)}),_0x1dbff4;}function oe(_0x3b1d1c,_0x502343={}){const _0x47e55c=_0x2604;let _0x4d1436=Math[_0x47e55c(0x107)](0x0,_0x502343[_0x47e55c(0xc6)]??Math['max'](0x4,_0x3b1d1c[_0x47e55c(0xc7)]*0.35)),_0x24867d=_0x502343[_0x47e55c(0xe7)]??(_0x25d4d8=>_0x47e55c(0x10c)+_0x25d4d8),_0x4e3286=k(_0x3b1d1c[_0x47e55c(0xd3)],_0x4d1436),_0x2b4009=_0x4e3286[_0x47e55c(0xef)]((_0x57b0e6,_0x54df07)=>({'id':_0x24867d(_0x54df07),'x':_0x57b0e6['x'],'y':_0x57b0e6['y'],'pointType':_0x47e55c(0xed)}));for(let _0x3f0acc=0x0;_0x3f0acc<_0x2b4009[_0x47e55c(0x104)]-0x1;_0x3f0acc++)_0x2b4009[_0x3f0acc]['out']=ie(_0x4e3286,_0x3f0acc),_0x2b4009[_0x3f0acc+0x1]['in']=A(_0x4e3286,_0x3f0acc+0x1);return{'kind':_0x47e55c(0x11e),'closed':!0x1,'anchors':_0x2b4009};}function se(_0x2b1fd2,_0x407e41,_0x3be41c){const _0x2ee319=_0x2604;let _0x2ae37b=null,_0xcf3d66=[_0x2ee319(0x11d),'in','out'];return _0x2b1fd2[_0x2ee319(0xf4)]['forEach']((_0xe8e6ad,_0x4f4725)=>{const _0x405af2=_0x2ee319;_0xcf3d66[_0x405af2(0xfe)](_0xc2571c=>{const _0x57c64e=_0x405af2;if(!E(_0x2b1fd2,_0x4f4725,_0xc2571c))return;let _0x473b98=te(_0xe8e6ad,_0xc2571c);if(!_0x473b98)return;let _0x33b659=x(_0x407e41,_0x473b98);_0x33b659>_0x3be41c||_0x2ae37b&&_0x33b659>=_0x2ae37b[_0x57c64e(0xe6)]||(_0x2ae37b={'handle':{'kind':_0xc2571c,'anchorId':_0xe8e6ad['id']},'point':_(_0x473b98),'distance':_0x33b659});});}),_0x2ae37b;}function ce(_0x1d44e3,_0xbefba3,_0x176643){const _0x196cf1=_0x2604;let _0x290515=null,_0x3328cd=_0x1d44e3[_0x196cf1(0x103)]?_0x1d44e3[_0x196cf1(0xf4)][_0x196cf1(0x104)]:Math[_0x196cf1(0x107)](0x0,_0x1d44e3[_0x196cf1(0xf4)][_0x196cf1(0x104)]-0x1);for(let _0x214c41=0x0;_0x214c41<_0x3328cd;_0x214c41++){let _0x4685a4=T(_0x1d44e3,_0x214c41);if(!_0x4685a4)continue;let _0x108521=D(_0x4685a4,0x0);for(let _0x167951=0x1;_0x167951<=0x20;_0x167951++){let _0x48f261=D(_0x4685a4,_0x167951/0x20),_0x5a15d8=O(_0xbefba3,_0x108521,_0x48f261),_0x4b120c=(_0x167951-0x1+_0x5a15d8[_0x196cf1(0xde)])/0x20;(!_0x290515||_0x5a15d8[_0x196cf1(0xe6)]<_0x290515[_0x196cf1(0xe6)])&&(_0x290515={'segmentIndex':_0x214c41,'t':_0x4b120c,'point':_0x5a15d8[_0x196cf1(0x106)],'distance':_0x5a15d8['distance']}),_0x108521=_0x48f261;}}return _0x290515&&_0x290515[_0x196cf1(0xe6)]<=_0x176643?_0x290515:null;}function le(_0x51fa3f,_0x47c6d9,_0x200146){const _0x5e437c=_0x2604;let _0xe70aca=y(_0x51fa3f),_0x39117b=w(_0xe70aca,_0x47c6d9[_0x5e437c(0xd2)]),_0x15fa67=T(_0xe70aca,_0x47c6d9[_0x5e437c(0xd2)]);if(!_0x39117b||!_0x15fa67)return _0xe70aca;let _0x5b1f1a=ne(_0x15fa67,Math[_0x5e437c(0x107)](0x0,Math[_0x5e437c(0xca)](0x1,_0x47c6d9['t']))),_0x514c96={'id':_0x200146(),'x':_0x5b1f1a['left'][0x3]['x'],'y':_0x5b1f1a['left'][0x3]['y'],'in':_(_0x5b1f1a[_0x5e437c(0xfa)][0x2]),'out':_(_0x5b1f1a['right'][0x1]),'pointType':_0x5e437c(0xed)};return _0xe70aca[_0x5e437c(0xf4)][_0x39117b[_0x5e437c(0xf0)]][_0x5e437c(0xf7)]=_(_0x5b1f1a['left'][0x1]),_0xe70aca['anchors'][_0x39117b[_0x5e437c(0xc9)]]['in']=_(_0x5b1f1a['right'][0x2]),_0xe70aca[_0x5e437c(0xf4)][_0x5e437c(0xe9)](_0x39117b[_0x5e437c(0xf0)]+0x1,0x0,_0x514c96),_0xe70aca;}function ue(_0x27f066,_0x1334f0){const _0x342a26=_0x2604;let _0x530943=y(_0x27f066);return _0x530943[_0x342a26(0xf4)]=_0x530943[_0x342a26(0xf4)][_0x342a26(0x119)](_0x58a581=>_0x58a581['id']!==_0x1334f0),_0x530943[_0x342a26(0x103)]&&_0x530943[_0x342a26(0xf4)]['length']<0x3&&(_0x530943['closed']=!0x1),_0x530943;}function N(_0x245444,_0x20098b,_0x349297){const _0x5bc0a4=_0x2604;let _0xa62d74=y(_0x245444),_0xc442be=_0xa62d74[_0x5bc0a4(0xf4)][_0x5bc0a4(0xe5)](_0xbb47f9=>_0xbb47f9['id']===_0x20098b),_0x1f92b1=_0xa62d74['anchors'][_0xc442be];if(!_0x1f92b1)return _0xa62d74;if(_0x1f92b1[_0x5bc0a4(0x123)]=_0x349297,_0x349297===_0x5bc0a4(0x10d))return delete _0x1f92b1['in'],delete _0x1f92b1[_0x5bc0a4(0xf7)],_0xa62d74;let _0x39c4d5=j(_0xa62d74,_0xc442be);if(_0x1f92b1['in']=_0x1f92b1['in']?_(_0x1f92b1['in']):_0x39c4d5['in'],_0x1f92b1[_0x5bc0a4(0xf7)]=_0x1f92b1[_0x5bc0a4(0xf7)]?_(_0x1f92b1['out']):_0x39c4d5[_0x5bc0a4(0xf7)],_0x349297===_0x5bc0a4(0xce)){let _0x5110ec=Math[_0x5bc0a4(0x107)](x(_0x1f92b1,_0x1f92b1['in']),x(_0x1f92b1,_0x1f92b1[_0x5bc0a4(0xf7)]),0x32),_0x4b528d=S({'x':_0x1f92b1[_0x5bc0a4(0xf7)]['x']-_0x1f92b1['x'],'y':_0x1f92b1['out']['y']-_0x1f92b1['y']});_0x1f92b1[_0x5bc0a4(0xf7)]={'x':_0x1f92b1['x']+_0x4b528d['x']*_0x5110ec,'y':_0x1f92b1['y']+_0x4b528d['y']*_0x5110ec},_0x1f92b1['in']={'x':_0x1f92b1['x']-_0x4b528d['x']*_0x5110ec,'y':_0x1f92b1['y']-_0x4b528d['y']*_0x5110ec};}else _0x349297===_0x5bc0a4(0x115)&&M(_0x1f92b1,_0x5bc0a4(0xf7));return _0xa62d74;}function P(_0x704eb8,_0xa832ea){const _0x4941db=_0x2604;let _0x298d1e=_0x704eb8[_0x4941db(0xf4)][_0x4941db(0xcb)](_0xe6477a=>_0xe6477a['id']===_0xa832ea),_0x369881=(_0x298d1e==null?void 0x0:_0x298d1e[_0x4941db(0x123)])??_0x4941db(0x10d);return N(_0x704eb8,_0xa832ea,_0x369881===_0x4941db(0x10d)?'smooth':_0x369881===_0x4941db(0x115)?_0x4941db(0xce):_0x369881===_0x4941db(0xce)?_0x4941db(0xed):_0x4941db(0x10d));}function F(_0x4d10a9,_0x230ce9,_0x251b4e){const _0x353282=_0x2604;let _0x2f4db7=y(_0x4d10a9),_0x2d7965=_0x2f4db7[_0x353282(0xf4)][_0x353282(0xcb)](_0x3587ac=>_0x3587ac['id']===_0x230ce9[_0x353282(0x11f)]);if(!_0x2d7965)return _0x2f4db7;if(_0x230ce9[_0x353282(0xff)]==='anchor'){let _0x4827f7={'x':_0x251b4e['x']-_0x2d7965['x'],'y':_0x251b4e['y']-_0x2d7965['y']};return _0x2d7965['x']=_0x251b4e['x'],_0x2d7965['y']=_0x251b4e['y'],_0x2d7965['in']&&={'x':_0x2d7965['in']['x']+_0x4827f7['x'],'y':_0x2d7965['in']['y']+_0x4827f7['y']},_0x2d7965[_0x353282(0xf7)]&&={'x':_0x2d7965[_0x353282(0xf7)]['x']+_0x4827f7['x'],'y':_0x2d7965[_0x353282(0xf7)]['y']+_0x4827f7['y']},_0x2f4db7;}return _0x2d7965[_0x230ce9['kind']]=_(_0x251b4e),_0x2d7965[_0x353282(0x123)]===_0x353282(0x10d)&&(_0x2d7965['pointType']=_0x353282(0xed)),M(_0x2d7965,_0x230ce9[_0x353282(0xff)]),_0x2f4db7;}const I=1e-9;function L(_0x47aa74){const _0x317dc7=_0x2604;let _0x54aa9c=Math[_0x317dc7(0xd4)](_0x47aa74*0x2710)/0x2710;return Object['is'](_0x54aa9c,-0x0)?'0':String(_0x54aa9c);}function R(_0x41fe3c){return L(_0x41fe3c['x'])+'\x20'+L(_0x41fe3c['y']);}function z(_0x4f2ad1,_0x367cae){return{'x':_0x4f2ad1['x']-_0x367cae['x'],'y':_0x4f2ad1['y']-_0x367cae['y']};}function B(_0x3f2024,_0x184c3d,_0x2a114e,_0x94ed91,_0x2c50c7){let _0x35d9c1=0x1-_0x2c50c7;return{'x':_0x35d9c1*_0x35d9c1*_0x35d9c1*_0x3f2024['x']+0x3*_0x35d9c1*_0x35d9c1*_0x2c50c7*_0x184c3d['x']+0x3*_0x35d9c1*_0x2c50c7*_0x2c50c7*_0x2a114e['x']+_0x2c50c7*_0x2c50c7*_0x2c50c7*_0x94ed91['x'],'y':_0x35d9c1*_0x35d9c1*_0x35d9c1*_0x3f2024['y']+0x3*_0x35d9c1*_0x35d9c1*_0x2c50c7*_0x184c3d['y']+0x3*_0x35d9c1*_0x2c50c7*_0x2c50c7*_0x2a114e['y']+_0x2c50c7*_0x2c50c7*_0x2c50c7*_0x94ed91['y']};}function V(_0x1355e8,_0x1273bd,_0x3a3022,_0x3d4008){const _0x16b020=_0x2604;let _0x2809ce=-_0x1355e8+0x3*_0x1273bd-0x3*_0x3a3022+_0x3d4008,_0x14ba67=0x3*_0x1355e8-0x6*_0x1273bd+0x3*_0x3a3022,_0x5bc3a6=-0x3*_0x1355e8+0x3*_0x1273bd,_0x5a60c1=[];if(Math[_0x16b020(0xda)](_0x2809ce)<I){if(Math[_0x16b020(0xda)](_0x14ba67)<I)return _0x5a60c1;let _0x924a37=-_0x5bc3a6/(0x2*_0x14ba67);return _0x924a37>0x0&&_0x924a37<0x1&&_0x5a60c1[_0x16b020(0xcd)](_0x924a37),_0x5a60c1;}let _0x28ddf0=_0x14ba67*_0x14ba67-0x3*_0x2809ce*_0x5bc3a6;if(_0x28ddf0<0x0)return _0x5a60c1;let _0x96609d=Math[_0x16b020(0x102)](Math['max'](0x0,_0x28ddf0)),_0x1d8ded=(-_0x14ba67+_0x96609d)/(0x3*_0x2809ce),_0x185308=(-_0x14ba67-_0x96609d)/(0x3*_0x2809ce);return _0x1d8ded>0x0&&_0x1d8ded<0x1&&_0x5a60c1['push'](_0x1d8ded),_0x185308>0x0&&_0x185308<0x1&&Math[_0x16b020(0xda)](_0x185308-_0x1d8ded)>I&&_0x5a60c1[_0x16b020(0xcd)](_0x185308),_0x5a60c1;}function H(_0x5502f7,_0x1cfd3b,_0x2f9517,_0xe51dc0,_0x431ffa){const _0x270833=_0x2604;_0x5502f7['push'](_0x1cfd3b,_0x431ffa),new Set([...V(_0x1cfd3b['x'],_0x2f9517['x'],_0xe51dc0['x'],_0x431ffa['x']),...V(_0x1cfd3b['y'],_0x2f9517['y'],_0xe51dc0['y'],_0x431ffa['y'])])[_0x270833(0xfe)](_0x2740de=>{const _0x59a6be=_0x270833;_0x5502f7[_0x59a6be(0xcd)](B(_0x1cfd3b,_0x2f9517,_0xe51dc0,_0x431ffa,_0x2740de));});}function U(_0x508157){const _0x56cc8a=_0x2604;let _0x269ae1=_0x508157[_0x56cc8a(0xf4)];if(_0x269ae1[_0x56cc8a(0x104)]<=0x1)return _0x269ae1;let _0x33790a=[];for(let _0x49d4d3=0x1;_0x49d4d3<_0x269ae1[_0x56cc8a(0x104)];_0x49d4d3++){let _0x35af72=_0x269ae1[_0x49d4d3-0x1],_0x5d4103=_0x269ae1[_0x49d4d3];H(_0x33790a,_0x35af72,_0x35af72[_0x56cc8a(0xf7)]??_0x35af72,_0x5d4103['in']??_0x5d4103,_0x5d4103);}if(_0x508157['closed']&&_0x269ae1[_0x56cc8a(0x104)]>0x1){let _0x1918c6=_0x269ae1[_0x269ae1['length']-0x1],_0x36deb9=_0x269ae1[0x0];H(_0x33790a,_0x1918c6,_0x1918c6[_0x56cc8a(0xf7)]??_0x1918c6,_0x36deb9['in']??_0x36deb9,_0x36deb9);}return _0x33790a;}function de(_0x340d17){const _0x82b26f=_0x2604;let _0x3c5633=_0x340d17[_0x82b26f(0xd3)];if(_0x3c5633[_0x82b26f(0x104)]<=0x1)return _0x3c5633;let _0x29495d=[];for(let _0x2d2cdb=0x0;_0x2d2cdb<_0x3c5633[_0x82b26f(0x104)]-0x1;_0x2d2cdb++){let _0x28c67f=_0x3c5633[_0x2d2cdb],_0x2ad8c1=_0x3c5633[_0x2d2cdb+0x1],_0x33c8f0=_0x3c5633[_0x2d2cdb-0x1]??_0x28c67f,_0x16c595=_0x3c5633[_0x2d2cdb+0x2]??_0x2ad8c1;H(_0x29495d,_0x28c67f,{'x':_0x28c67f['x']+(_0x2ad8c1['x']-_0x33c8f0['x'])/0x6,'y':_0x28c67f['y']+(_0x2ad8c1['y']-_0x33c8f0['y'])/0x6},{'x':_0x2ad8c1['x']-(_0x16c595['x']-_0x28c67f['x'])/0x6,'y':_0x2ad8c1['y']-(_0x16c595['y']-_0x28c67f['y'])/0x6},_0x2ad8c1);}return _0x29495d;}function fe(_0x56dac0){const _0x1f6eed=_0x2604;return _0x56dac0['kind']===_0x1f6eed(0x11e)?U(_0x56dac0):de(_0x56dac0);}function W(_0x2df196){const _0x1c6f1c=_0x2604;let _0x1215a6=Math[_0x1c6f1c(0xd4)](_0x2df196*0x2710)/0x2710;return Object['is'](_0x1215a6,-0x0)?0x0:_0x1215a6;}function G(_0x20f74d){const _0x12859f=_0x2604;let _0x135bc4=fe(_0x20f74d);if(_0x135bc4['length']===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x49ab27=Math[_0x12859f(0xca)](..._0x135bc4[_0x12859f(0xef)](_0x29dc6e=>_0x29dc6e['x'])),_0x2c7c18=Math[_0x12859f(0xca)](..._0x135bc4[_0x12859f(0xef)](_0x37b274=>_0x37b274['y'])),_0x7562a6=Math[_0x12859f(0x107)](..._0x135bc4[_0x12859f(0xef)](_0x11326f=>_0x11326f['x'])),_0x17f25d=Math['max'](..._0x135bc4[_0x12859f(0xef)](_0x1211c4=>_0x1211c4['y']));return{'left':W(_0x49ab27),'top':W(_0x2c7c18),'width':W(Math[_0x12859f(0x107)](0x1,_0x7562a6-_0x49ab27)),'height':W(Math[_0x12859f(0x107)](0x1,_0x17f25d-_0x2c7c18))};}function pe(_0x1a8913,_0xad4bed){const _0x574d1f=_0x2604;let _0x35aa86=_0x1a8913[_0x574d1f(0xf4)];if(_0x35aa86[_0x574d1f(0x104)]===0x0)return'';let _0x4845af=['M\x20'+R(z(_0x35aa86[0x0],_0xad4bed))];for(let _0x3d80a7=0x1;_0x3d80a7<_0x35aa86[_0x574d1f(0x104)];_0x3d80a7++){let _0x48a955=_0x35aa86[_0x3d80a7-0x1],_0x36c3bd=_0x35aa86[_0x3d80a7],_0x3128f2=_0x48a955[_0x574d1f(0xf7)]??_0x48a955,_0x342b80=_0x36c3bd['in']??_0x36c3bd;_0x4845af['push']('C\x20'+R(z(_0x3128f2,_0xad4bed))+'\x20'+R(z(_0x342b80,_0xad4bed))+'\x20'+R(z(_0x36c3bd,_0xad4bed)));}if(_0x1a8913[_0x574d1f(0x103)]&&_0x35aa86[_0x574d1f(0x104)]>0x1){let _0x5aa808=_0x35aa86[_0x35aa86['length']-0x1],_0x1c55c4=_0x35aa86[0x0],_0x58a660=_0x5aa808[_0x574d1f(0xf7)]??_0x5aa808,_0x2702ea=_0x1c55c4['in']??_0x1c55c4;_0x4845af[_0x574d1f(0xcd)]('C\x20'+R(z(_0x58a660,_0xad4bed))+'\x20'+R(z(_0x2702ea,_0xad4bed))+'\x20'+R(z(_0x1c55c4,_0xad4bed))),_0x4845af['push']('Z');}return _0x4845af[_0x574d1f(0x126)]('\x20');}function me(_0x31679b,_0x469162){const _0x299cf2=_0x2604;let _0xf9d47a=_0x31679b[_0x299cf2(0xd3)]['map'](_0xf1c938=>z(_0xf1c938,_0x469162));if(_0xf9d47a[_0x299cf2(0x104)]===0x0)return'';if(_0xf9d47a['length']===0x1)return'M\x20'+R(_0xf9d47a[0x0]);let _0xb5262=['M\x20'+R(_0xf9d47a[0x0])];for(let _0x1639e5=0x0;_0x1639e5<_0xf9d47a[_0x299cf2(0x104)]-0x1;_0x1639e5++){let _0x3acce3=_0xf9d47a[_0x1639e5],_0x5e97e6=_0xf9d47a[_0x1639e5+0x1],_0x360716=_0xf9d47a[_0x1639e5-0x1]??_0x3acce3,_0x346343=_0xf9d47a[_0x1639e5+0x2]??_0x5e97e6,_0x2aafd2={'x':_0x3acce3['x']+(_0x5e97e6['x']-_0x360716['x'])/0x6,'y':_0x3acce3['y']+(_0x5e97e6['y']-_0x360716['y'])/0x6},_0x2f1ed0={'x':_0x5e97e6['x']-(_0x346343['x']-_0x3acce3['x'])/0x6,'y':_0x5e97e6['y']-(_0x346343['y']-_0x3acce3['y'])/0x6};_0xb5262['push']('C\x20'+R(_0x2aafd2)+'\x20'+R(_0x2f1ed0)+'\x20'+R(_0x5e97e6));}return _0xb5262[_0x299cf2(0x126)]('\x20');}function he(_0x3b658f,_0x14b254){const _0x37021a=_0x2604;return _0x3b658f[_0x37021a(0xff)]===_0x37021a(0x11e)?pe(_0x3b658f,_0x14b254):me(_0x3b658f,_0x14b254);}function ge(_0x1278e3,_0x1219a5){const _0x31abdd=_0x2604;return _0x1219a5!=null&&_0x1219a5[_0x31abdd(0xd7)]?_0x1219a5[_0x31abdd(0xd7)]:_0x1278e3[_0x31abdd(0xff)]==='pen'?_0x31abdd(0x116):_0x1278e3[_0x31abdd(0xd7)];}function _e(_0x2b6f64,_0x498e2f){const _0x1005d7=_0x2604;return(_0x498e2f==null?void 0x0:_0x498e2f[_0x1005d7(0xc7)])===void 0x0?_0x2b6f64[_0x1005d7(0xff)]===_0x1005d7(0x11e)?0x2:_0x2b6f64[_0x1005d7(0xc7)]:_0x498e2f[_0x1005d7(0xc7)];}function _0x1afd(){const _0x33f102=['push','symmetric','object','_config','Rect','segmentIndex','points','round','get','start','color','UNIVER_INK_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','abs','585765ftYvqS','indexOf','NoFill','ratio','UNIVER_UNKNOWN','packageName','createCustomShape','slice','registerAdapter','@univerjs-pro/ink','findIndex','distance','createId','ink.config','splice','fillColor','disposeWithMe','none','free','5paeHLX','map','startIndex','_configService','symbol','1391408lidmku','anchors','version','end','out','string','height','left','call','top','iterator','forEach','kind','ink.operation.start','default','sqrt','closed','length','registerCommand','point','max','function','pluginName','prototype','opacity','ink-centerline-','corner','838871BAbtjo','setConfig','1308wwNISC','tool','decorate','Round','OPERATION','smooth','#f54a45','262LNEeQG','_commandService','filter','147640ChZlGX','beginInkMode','20478gQhdFV','anchor','pen','anchorId','onStarting','10QLFdPI','112rcpJkz','pointType','_injector','constructor','join','19809DKbKnE','defineProperty','ink.host-adapter.service','_adapters','SolidFill','tolerance','width','toPrimitive','endIndex','min','find','hypot'];_0x1afd=function(){return _0x33f102;};return _0x1afd();}function ve(_0x4a54d7,_0x2bbbb3){const _0x423650=_0x2604;return(_0x2bbbb3==null?void 0x0:_0x2bbbb3[_0x423650(0x10b)])===void 0x0?_0x4a54d7[_0x423650(0xff)]===_0x423650(0x11e)?void 0x0:_0x4a54d7[_0x423650(0x10b)]:_0x2bbbb3[_0x423650(0x10b)];}function ye(_0x42096b,_0x8672bc){const _0x359a1c=_0x2604;let _0x3f54be=G(_0x42096b),_0x1f7c7e=he(_0x42096b,{'x':_0x3f54be['left'],'y':_0x3f54be[_0x359a1c(0xfc)]}),_0x56aea4=_0x42096b[_0x359a1c(0xff)]==='pen'&&_0x42096b[_0x359a1c(0x103)],_0x584fbc=_0x8672bc==null?void 0x0:_0x8672bc[_0x359a1c(0xea)];return{'shapeType':_0x1d5fb3[_0x359a1c(0xd1)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x3f54be['width'],'h':_0x3f54be[_0x359a1c(0xf9)],'fill':_0x56aea4?'norm':_0x359a1c(0xec),'stroke':!0x0,'data':_0x1f7c7e,'dataArray':be(_0x42096b,{'x':_0x3f54be[_0x359a1c(0xfa)],'y':_0x3f54be[_0x359a1c(0xfc)]})}]},'fill':_0x56aea4&&_0x584fbc?{'color':_0x584fbc,'fillType':_0x137e22[_0x359a1c(0xc5)]}:{'fillType':_0x137e22[_0x359a1c(0xdd)]},'stroke':{'color':ge(_0x42096b,_0x8672bc),'width':_e(_0x42096b,_0x8672bc),'opacity':ve(_0x42096b,_0x8672bc),'lineStrokeType':_0x3708a3['SolidLine'],'capType':_0x5f227b[_0x359a1c(0x113)],'lineJoinType':_0x2cfe25['Round']}};}function K(_0x139f6d,_0x5ec5d1){return{'x':_0x139f6d['x']-_0x5ec5d1['x'],'y':_0x139f6d['y']-_0x5ec5d1['y']};}function be(_0x3c11fd,_0x38f439){const _0x4852e9=_0x2604;if(_0x3c11fd['kind']===_0x4852e9(0x11e)){let _0x277e85=_0x3c11fd['anchors'];if(_0x277e85[_0x4852e9(0x104)]===0x0)return[];let _0x47d7e4=K(_0x277e85[0x0],_0x38f439),_0x54d54a=[{'command':'M','points':[_0x47d7e4['x'],_0x47d7e4['y']]}];for(let _0x50ad5e=0x1;_0x50ad5e<_0x277e85['length'];_0x50ad5e++){let _0x37fc89=_0x277e85[_0x50ad5e-0x1],_0x5332cf=_0x277e85[_0x50ad5e],_0x336197=K(_0x37fc89['out']??_0x37fc89,_0x38f439),_0x13a5da=K(_0x5332cf['in']??_0x5332cf,_0x38f439),_0xf3bbdc=K(_0x5332cf,_0x38f439);_0x54d54a['push']({'command':'C','points':[_0x336197['x'],_0x336197['y'],_0x13a5da['x'],_0x13a5da['y'],_0xf3bbdc['x'],_0xf3bbdc['y']]});}if(_0x3c11fd['closed']&&_0x277e85[_0x4852e9(0x104)]>0x1){let _0x333a4b=_0x277e85[_0x277e85[_0x4852e9(0x104)]-0x1],_0x4ac925=_0x277e85[0x0],_0x8e20c7=K(_0x333a4b[_0x4852e9(0xf7)]??_0x333a4b,_0x38f439),_0xfa0070=K(_0x4ac925['in']??_0x4ac925,_0x38f439),_0x30b60a=K(_0x4ac925,_0x38f439);_0x54d54a[_0x4852e9(0xcd)]({'command':'C','points':[_0x8e20c7['x'],_0x8e20c7['y'],_0xfa0070['x'],_0xfa0070['y'],_0x30b60a['x'],_0x30b60a['y']]}),_0x54d54a[_0x4852e9(0xcd)]({'command':'z','points':[]});}return _0x54d54a;}let _0x3d7c97=_0x3c11fd[_0x4852e9(0xd3)]['map'](_0x57561e=>K(_0x57561e,_0x38f439));if(_0x3d7c97[_0x4852e9(0x104)]===0x0)return[];let _0x5a3f9d=[{'command':'M','points':[_0x3d7c97[0x0]['x'],_0x3d7c97[0x0]['y']]}];for(let _0x5ecf7e=0x0;_0x5ecf7e<_0x3d7c97[_0x4852e9(0x104)]-0x1;_0x5ecf7e++){let _0x1e2106=_0x3d7c97[_0x5ecf7e],_0x46c93f=_0x3d7c97[_0x5ecf7e+0x1],_0x3a6f3c=_0x3d7c97[_0x5ecf7e-0x1]??_0x1e2106,_0x272ac6=_0x3d7c97[_0x5ecf7e+0x2]??_0x46c93f,_0x4b1d20={'x':_0x1e2106['x']+(_0x46c93f['x']-_0x3a6f3c['x'])/0x6,'y':_0x1e2106['y']+(_0x46c93f['y']-_0x3a6f3c['y'])/0x6},_0x3658e4={'x':_0x46c93f['x']-(_0x272ac6['x']-_0x1e2106['x'])/0x6,'y':_0x46c93f['y']-(_0x272ac6['y']-_0x1e2106['y'])/0x6};_0x5a3f9d[_0x4852e9(0xcd)]({'command':'C','points':[_0x4b1d20['x'],_0x4b1d20['y'],_0x3658e4['x'],_0x3658e4['y'],_0x46c93f['x'],_0x46c93f['y']]});}return _0x5a3f9d;}function xe(_0x320b0d){const _0x26d092=_0x2604;let {model:_0x2e6d25,sourceModel:_0x1764cb=_0x2e6d25,style:_0x59d69f}=_0x320b0d,_0x5dfce7=_0x320b0d[_0x26d092(0x111)]??_0x2e6d25[_0x26d092(0xff)],_0x48ce05=G(_0x2e6d25),_0x1637fd=_0x2e6d25[_0x26d092(0xff)]===_0x26d092(0x11e)&&_0x5dfce7!==_0x26d092(0x11e)?_0x2e6d25:void 0x0;return{'transform':{..._0x48ce05,'rotation':0x0},'shapeData':ye(_0x2e6d25,_0x59d69f),'ink':{'version':0x1,'tool':_0x5dfce7,'sourceModel':_0x1764cb,..._0x1637fd?{'editModel':_0x1637fd}:{},'normalizedBounds':_0x48ce05}};}var Se=_0x234bb6(0xe4),Ce='1.5.1';function q(_0x38aebd){'@babel/helpers - typeof';const _0x4919af=_0x234bb6;return q=typeof Symbol==_0x4919af(0x108)&&typeof Symbol[_0x4919af(0xfd)]==_0x4919af(0xf2)?function(_0x337300){return typeof _0x337300;}:function(_0x594d95){const _0xefb553=_0x4919af;return _0x594d95&&typeof Symbol==_0xefb553(0x108)&&_0x594d95[_0xefb553(0x125)]===Symbol&&_0x594d95!==Symbol[_0xefb553(0x10a)]?'symbol':typeof _0x594d95;},q(_0x38aebd);}function we(_0x44e13f,_0x58dae6){const _0x52ae95=_0x234bb6;if(q(_0x44e13f)!=_0x52ae95(0xcf)||!_0x44e13f)return _0x44e13f;var _0x544ce6;if(typeof Symbol<'u'&&(_0x544ce6=_0x44e13f[Symbol[_0x52ae95(0xc8)]])!==void 0x0){var _0x2fa087=_0x544ce6[_0x52ae95(0xfb)](_0x44e13f,_0x58dae6||_0x52ae95(0x101));if(q(_0x2fa087)!=_0x52ae95(0xcf))return _0x2fa087;throw TypeError(_0x52ae95(0xd9));}return(_0x58dae6===_0x52ae95(0xf8)?String:Number)(_0x44e13f);}function J(_0xfc3a0d){const _0x34885c=_0x234bb6;var _0x123a48=we(_0xfc3a0d,_0x34885c(0xf8));return q(_0x123a48)=='symbol'?_0x123a48:_0x123a48+'';}function Y(_0x5aad29,_0x3d6dcd,_0x4e2992){return(_0x3d6dcd=J(_0x3d6dcd))in _0x5aad29?Object['defineProperty'](_0x5aad29,_0x3d6dcd,{'value':_0x4e2992,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5aad29[_0x3d6dcd]=_0x4e2992,_0x5aad29;}const X=_0x4bf0fa(_0x234bb6(0xc3));var Te=class{constructor(){const _0x1b7b46=_0x234bb6;Y(this,_0x1b7b46(0xc4),[]);}[_0x234bb6(0xe3)](_0x1cd359){const _0x1f0c2e=_0x234bb6;return this[_0x1f0c2e(0xc4)][_0x1f0c2e(0xcd)](_0x1cd359),_0x27c43d(()=>{const _0x3604de=_0x1f0c2e;let _0x3a0cb8=this[_0x3604de(0xc4)][_0x3604de(0xdc)](_0x1cd359);_0x3a0cb8>=0x0&&this[_0x3604de(0xc4)][_0x3604de(0xe9)](_0x3a0cb8,0x1);});}['beginInkMode'](_0x283ee2){const _0x4a55da=_0x234bb6;for(let _0x3f4f83 of this[_0x4a55da(0xc4)])if(_0x3f4f83[_0x4a55da(0x11b)](_0x283ee2))return!0x0;return!0x1;}async['createCustomShape'](_0xd8bc5d){const _0x250368=_0x234bb6;for(let _0x499a57 of this[_0x250368(0xc4)])if(_0x499a57[_0x250368(0xe1)]&&await _0x499a57['createCustomShape'](_0xd8bc5d))return!0x0;return!0x1;}};const Ee={'id':_0x234bb6(0x100),'type':_0x4b603e[_0x234bb6(0x114)],'handler':(_0x294483,_0x1e725b)=>_0x1e725b?_0x294483[_0x234bb6(0xd5)](X)['beginInkMode'](_0x1e725b):!0x1},Z={};function Q(_0x359797,_0x4c122f){return function(_0xe281b2,_0x279592){_0x4c122f(_0xe281b2,_0x279592,_0x359797);};}function De(_0x18b1b9,_0x5b7305,_0xfeb96b,_0x9e204a){const _0x20e880=_0x234bb6;var _0x3b96ce=arguments[_0x20e880(0x104)],_0x136da2=_0x3b96ce<0x3?_0x5b7305:_0x9e204a===null?_0x9e204a=Object['getOwnPropertyDescriptor'](_0x5b7305,_0xfeb96b):_0x9e204a,_0x296465;if(typeof Reflect==_0x20e880(0xcf)&&typeof Reflect[_0x20e880(0x112)]==_0x20e880(0x108))_0x136da2=Reflect['decorate'](_0x18b1b9,_0x5b7305,_0xfeb96b,_0x9e204a);else{for(var _0x81e108=_0x18b1b9['length']-0x1;_0x81e108>=0x0;_0x81e108--)(_0x296465=_0x18b1b9[_0x81e108])&&(_0x136da2=(_0x3b96ce<0x3?_0x296465(_0x136da2):_0x3b96ce>0x3?_0x296465(_0x5b7305,_0xfeb96b,_0x136da2):_0x296465(_0x5b7305,_0xfeb96b))||_0x136da2);}return _0x3b96ce>0x3&&_0x136da2&&Object[_0x20e880(0xc2)](_0x5b7305,_0xfeb96b,_0x136da2),_0x136da2;}let $=class extends _0x2b18e8{constructor(_0x1c465a=Z,_0x547521,_0x1cc2fd,_0x3382db){const _0x3cc01b=_0x234bb6;super(),this['_config']=_0x1c465a,this[_0x3cc01b(0x124)]=_0x547521,this[_0x3cc01b(0x118)]=_0x1cc2fd,this[_0x3cc01b(0xf1)]=_0x3382db;let {..._0x1a89ac}=_0x10d687({},Z,this[_0x3cc01b(0xd0)]);this[_0x3cc01b(0xf1)][_0x3cc01b(0x10f)](_0x3cc01b(0xe8),_0x1a89ac);}[_0x234bb6(0x120)](){const _0x9e652b=_0x234bb6;[[X,{'useClass':Te}]]['forEach'](_0x4859ca=>this[_0x9e652b(0x124)]['add'](_0x4859ca)),this[_0x9e652b(0xeb)](this['_commandService'][_0x9e652b(0x105)](Ee));}};Y($,_0x234bb6(0x109),_0x234bb6(0xd8)),Y($,_0x234bb6(0xe0),Se),Y($,_0x234bb6(0xf5),Ce),Y($,'type',_0x1ecdfc[_0x234bb6(0xdf)]),$=De([_0x226505(_0x38211f),Q(0x1,_0x1739b1(_0x4929fc)),Q(0x2,_0x171415),Q(0x3,_0x5b3d)],$);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/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4a1e(_0x44efba,_0x4f7755){_0x44efba=_0x44efba-0x129;const _0x4149d3=_0x4149();let _0x4a1e0c=_0x4149d3[_0x44efba];return _0x4a1e0c;}function _0x4149(){const _0x357ef6=['ratio','anchors','27cvCeMP','string','add','ICommandService','symmetric','_injector','CommandType','@univerjs-pro/license','top','symbol','slice','beginInkMode','amd','2EIgwId','SolidFill','getInkModelBounds','_commandService','createIdentifier','22561Hmmivc','exports','defineProperty','toDisposable','endIndex','anchorId','ShapeLineCapEnum','1.5.0','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','length','IInkHostAdapterService','Round','UniverLicensePlugin','free','findClosestInkPenSegment','Injector','1814160Rfpnmc','findIndex','NoFill','merge','object','SolidLine','packageName','pointType','startIndex','get','fillColor','points','right','@univerjs-pro/ink','UniverInkPlugin','function','__ink-preview-anchor__','deleteInkPenAnchor','1098207LDzAil','join','segmentIndex','ShapeFillEnum','ShapeLineJoinEnum','20zmXhSl','getOwnPropertyDescriptor','tolerance','norm','setConfig','UNIVER_UNKNOWN','decorate','createCustomShape','round','tool','hypot','anchor','toStringTag','@univerjs/core','ShapeLineTypeEnum','UNIVER_INK_PLUGIN','min','color','kind','start','call','pen','point','left','toPrimitive','out','1011684fnNezZ','max','map','end','opacity','_config','513385JuROXC','Module','findClosestInkPenHandle','#f54a45','11EyHKFk','Plugin','ink-centerline-','closed','disposeWithMe','forEach','ShapeTypeEnum','corner','width','distance','smooth','isInkPenHandleVisible','UniverProInk','registerAdapter','sqrt','default','Rect','splice','UniverProEngineShape','abs','7044876jmBcaB','DependentOn','constructor','1046608dVrqtU','840VSwNOc','push','buildInkCustomShapePayload','ink.config','_adapters','createId','ink.operation.start','iterator','setInkPenAnchorPointType'];_0x4149=function(){return _0x357ef6;};return _0x4149();}(function(_0x3be57d,_0x4abf75){const _0x5af169=_0x4a1e,_0x511561=_0x3be57d();while(!![]){try{const _0x52ec15=-parseInt(_0x5af169(0x172))/0x1*(parseInt(_0x5af169(0x1a6))/0x2)+-parseInt(_0x5af169(0x14d))/0x3+parseInt(_0x5af169(0x18d))/0x4+parseInt(_0x5af169(0x152))/0x5*(parseInt(_0x5af169(0x16c))/0x6)+parseInt(_0x5af169(0x12b))/0x7*(parseInt(_0x5af169(0x18e))/0x8)+parseInt(_0x5af169(0x199))/0x9*(parseInt(_0x5af169(0x13b))/0xa)+parseInt(_0x5af169(0x176))/0xb*(-parseInt(_0x5af169(0x18a))/0xc);if(_0x52ec15===_0x4abf75)break;else _0x511561['push'](_0x511561['shift']());}catch(_0x40b3b6){_0x511561['push'](_0x511561['shift']());}}}(_0x4149,0x55ff4),function(_0x1f336f,_0xa923ce){const _0x58f34c=_0x4a1e;typeof exports=='object'&&typeof module<'u'?_0xa923ce(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x58f34c(0x14a)&&define[_0x58f34c(0x1a5)]?define([_0x58f34c(0x12c),'@univerjs-pro/engine-shape',_0x58f34c(0x1a0),_0x58f34c(0x15f)],_0xa923ce):(_0x1f336f=typeof globalThis<'u'?globalThis:_0x1f336f||self,_0xa923ce(_0x1f336f[_0x58f34c(0x182)]={},_0x1f336f[_0x58f34c(0x188)],_0x1f336f['UniverProLicense'],_0x1f336f['UniverCore']));}(this,function(_0x5a60e8,_0x16e248,_0x26de0e,_0x5cbc25){const _0xe80f08=_0x4a1e;Object[_0xe80f08(0x12d)](_0x5a60e8,Symbol[_0xe80f08(0x15e)],{'value':_0xe80f08(0x173)});let _0x489d5f=0.0001;function _0x44c720(_0x26d67a){return{'x':_0x26d67a['x'],'y':_0x26d67a['y']};}function _0x5d4295(_0x402b32){const _0x5f22aa=_0xe80f08;return{..._0x402b32,'in':_0x402b32['in']?_0x44c720(_0x402b32['in']):void 0x0,'out':_0x402b32[_0x5f22aa(0x16b)]?_0x44c720(_0x402b32[_0x5f22aa(0x16b)]):void 0x0};}function _0x485f36(_0x53ee1f){const _0x2ecbaf=_0xe80f08;return{'kind':_0x2ecbaf(0x167),'closed':_0x53ee1f['closed'],'anchors':_0x53ee1f[_0x2ecbaf(0x198)][_0x2ecbaf(0x16e)](_0x5d4295)};}function _0x16d100(_0x3e6306,_0x50acf1,_0x4b60a6){return{'x':_0x3e6306['x']+(_0x50acf1['x']-_0x3e6306['x'])*_0x4b60a6,'y':_0x3e6306['y']+(_0x50acf1['y']-_0x3e6306['y'])*_0x4b60a6};}function _0x3575fc(_0x37a47b,_0x4e97e0){const _0xfa8363=_0xe80f08;return Math[_0xfa8363(0x15c)](_0x37a47b['x']-_0x4e97e0['x'],_0x37a47b['y']-_0x4e97e0['y']);}function _0x258fe2(_0x1ae86b){const _0x37a3a9=_0xe80f08;let _0x41cfa9=Math[_0x37a3a9(0x15c)](_0x1ae86b['x'],_0x1ae86b['y']);return _0x41cfa9<_0x489d5f?{'x':0x1,'y':0x0}:{'x':_0x1ae86b['x']/_0x41cfa9,'y':_0x1ae86b['y']/_0x41cfa9};}function _0x3d8d25(_0x1f4c3d,_0x431e37,_0x6daa1c=_0x3575fc(_0x1f4c3d,_0x431e37)){let _0x53b894=_0x258fe2({'x':_0x1f4c3d['x']-_0x431e37['x'],'y':_0x1f4c3d['y']-_0x431e37['y']});return{'x':_0x1f4c3d['x']+_0x53b894['x']*_0x6daa1c,'y':_0x1f4c3d['y']+_0x53b894['y']*_0x6daa1c};}function _0x4956ce(_0x20dfeb,_0xe540d4){const _0x27eece=_0xe80f08;let {anchors:_0x2aa13e}=_0x20dfeb;return _0x2aa13e[_0x27eece(0x134)]<0x2||_0xe540d4<0x0?null:_0xe540d4<_0x2aa13e['length']-0x1?{'startIndex':_0xe540d4,'endIndex':_0xe540d4+0x1,'start':_0x2aa13e[_0xe540d4],'end':_0x2aa13e[_0xe540d4+0x1]}:_0x20dfeb[_0x27eece(0x179)]&&_0xe540d4===_0x2aa13e[_0x27eece(0x134)]-0x1?{'startIndex':_0x2aa13e[_0x27eece(0x134)]-0x1,'endIndex':0x0,'start':_0x2aa13e[_0x2aa13e[_0x27eece(0x134)]-0x1],'end':_0x2aa13e[0x0]}:null;}function _0x3ad0e1(_0x2d66ba,_0x4f6b4f){const _0x5ba7db=_0xe80f08;let _0xb4bed3=_0x4956ce(_0x2d66ba,_0x4f6b4f);return _0xb4bed3?[_0xb4bed3[_0x5ba7db(0x165)],_0xb4bed3[_0x5ba7db(0x165)][_0x5ba7db(0x16b)]??_0xb4bed3[_0x5ba7db(0x165)],_0xb4bed3[_0x5ba7db(0x16f)]['in']??_0xb4bed3['end'],_0xb4bed3[_0x5ba7db(0x16f)]]:null;}function _0x4ad0cf(_0x13d900,_0x401c08){const _0x292cc2=_0xe80f08;return _0x401c08===_0x292cc2(0x15d)?_0x13d900:_0x13d900[_0x401c08]??null;}function _0x596207(_0x33354b,_0x5b1988,_0x404d78){const _0x3e0b65=_0xe80f08;return _0x404d78===_0x3e0b65(0x15d)||_0x33354b['closed']?!0x0:_0x404d78==='in'?_0x5b1988>0x0:_0x5b1988<_0x33354b[_0x3e0b65(0x198)][_0x3e0b65(0x134)]-0x1;}function _0x443a62(_0x460da9,_0x37b9c8){let [_0x2ffcf2,_0x26e969,_0x46b046,_0x239293]=_0x460da9,_0x3325ae=_0x16d100(_0x2ffcf2,_0x26e969,_0x37b9c8),_0x30eb7f=_0x16d100(_0x26e969,_0x46b046,_0x37b9c8),_0x4fe0cb=_0x16d100(_0x46b046,_0x239293,_0x37b9c8);return _0x16d100(_0x16d100(_0x3325ae,_0x30eb7f,_0x37b9c8),_0x16d100(_0x30eb7f,_0x4fe0cb,_0x37b9c8),_0x37b9c8);}function _0x493491(_0x139d5e,_0x47530f){let [_0x12bec7,_0x5af7fa,_0x5874b7,_0x4eb9fb]=_0x139d5e,_0x3c4b2f=_0x16d100(_0x12bec7,_0x5af7fa,_0x47530f),_0x5c1158=_0x16d100(_0x5af7fa,_0x5874b7,_0x47530f),_0x28c938=_0x16d100(_0x5874b7,_0x4eb9fb,_0x47530f),_0x4e0522=_0x16d100(_0x3c4b2f,_0x5c1158,_0x47530f),_0x2602de=_0x16d100(_0x5c1158,_0x28c938,_0x47530f),_0x13a7ff=_0x16d100(_0x4e0522,_0x2602de,_0x47530f);return{'left':[_0x12bec7,_0x3c4b2f,_0x4e0522,_0x13a7ff],'right':[_0x13a7ff,_0x2602de,_0x28c938,_0x4eb9fb]};}function _0x4465eb(_0x19926c,_0x500af5,_0x21caaf){const _0x29d282=_0xe80f08;let _0x3a9103=_0x21caaf['x']-_0x500af5['x'],_0x223330=_0x21caaf['y']-_0x500af5['y'],_0x33ce1d=_0x3a9103*_0x3a9103+_0x223330*_0x223330,_0x376a83=_0x33ce1d<=_0x489d5f?0x0:Math[_0x29d282(0x16d)](0x0,Math[_0x29d282(0x162)](0x1,((_0x19926c['x']-_0x500af5['x'])*_0x3a9103+(_0x19926c['y']-_0x500af5['y'])*_0x223330)/_0x33ce1d)),_0x357d70={'x':_0x500af5['x']+_0x3a9103*_0x376a83,'y':_0x500af5['y']+_0x223330*_0x376a83};return{'point':_0x357d70,'ratio':_0x376a83,'distance':_0x3575fc(_0x19926c,_0x357d70)};}function _0x177e50(_0x4abdea,_0x17d72a,_0x2be148){const _0x1eb714=_0xe80f08;return _0x4465eb(_0x4abdea,_0x17d72a,_0x2be148)[_0x1eb714(0x17f)]**0x2;}function _0x456513(_0x50a82a,_0x28cb38){const _0x120db9=_0xe80f08;if(_0x50a82a[_0x120db9(0x134)]<=0x2)return _0x50a82a[_0x120db9(0x16e)](_0x44c720);let _0x2a9397=0x0,_0x463424=0x0,_0x4f7fbd=_0x50a82a[0x0],_0x3930a5=_0x50a82a[_0x50a82a['length']-0x1],_0x41453f=_0x28cb38*_0x28cb38;for(let _0x3252e2=0x1;_0x3252e2<_0x50a82a[_0x120db9(0x134)]-0x1;_0x3252e2++){let _0x147f78=_0x177e50(_0x50a82a[_0x3252e2],_0x4f7fbd,_0x3930a5);_0x147f78>_0x2a9397&&(_0x2a9397=_0x147f78,_0x463424=_0x3252e2);}if(_0x2a9397<=_0x41453f)return[_0x44c720(_0x4f7fbd),_0x44c720(_0x3930a5)];let _0x2fd8f0=_0x456513(_0x50a82a[_0x120db9(0x1a3)](0x0,_0x463424+0x1),_0x28cb38),_0x3ac6e3=_0x456513(_0x50a82a[_0x120db9(0x1a3)](_0x463424),_0x28cb38);return[..._0x2fd8f0[_0x120db9(0x1a3)](0x0,-0x1),..._0x3ac6e3];}function _0x39dec2(_0x56941c,_0x3e095c){let _0x37e13f=_0x56941c[_0x3e095c],_0x4e2d75=_0x56941c[_0x3e095c+0x1],_0x235f03=_0x56941c[_0x3e095c-0x1]??_0x37e13f;return{'x':_0x37e13f['x']+(_0x4e2d75['x']-_0x235f03['x'])/0x6,'y':_0x37e13f['y']+(_0x4e2d75['y']-_0x235f03['y'])/0x6};}function _0x3ee214(_0x1bfafe,_0x56c767){let _0x33caa1=_0x1bfafe[_0x56c767],_0x55a572=_0x1bfafe[_0x56c767-0x1],_0x528073=_0x1bfafe[_0x56c767+0x1]??_0x33caa1;return{'x':_0x33caa1['x']-(_0x528073['x']-_0x55a572['x'])/0x6,'y':_0x33caa1['y']-(_0x528073['y']-_0x55a572['y'])/0x6};}function _0x2b20eb(_0x591b64,_0x20e85a){const _0x5b0bff=_0xe80f08;let _0x2da40d=_0x591b64['anchors'][_0x20e85a],_0x495b3c=_0x591b64[_0x5b0bff(0x198)][_0x20e85a-0x1]??(_0x591b64[_0x5b0bff(0x179)]?_0x591b64[_0x5b0bff(0x198)][_0x591b64[_0x5b0bff(0x198)]['length']-0x1]:null),_0x44e86a=_0x591b64[_0x5b0bff(0x198)][_0x20e85a+0x1]??(_0x591b64[_0x5b0bff(0x179)]?_0x591b64['anchors'][0x0]:null),_0x51d9b6=_0x495b3c&&_0x44e86a?_0x258fe2({'x':_0x44e86a['x']-_0x495b3c['x'],'y':_0x44e86a['y']-_0x495b3c['y']}):_0x44e86a?_0x258fe2({'x':_0x44e86a['x']-_0x2da40d['x'],'y':_0x44e86a['y']-_0x2da40d['y']}):_0x495b3c?_0x258fe2({'x':_0x2da40d['x']-_0x495b3c['x'],'y':_0x2da40d['y']-_0x495b3c['y']}):{'x':0x1,'y':0x0},_0x9f0b5d=_0x495b3c&&_0x44e86a?Math[_0x5b0bff(0x16d)](0x32,_0x3575fc(_0x495b3c,_0x44e86a)/0x4):0x32;return{'in':{'x':_0x2da40d['x']-_0x51d9b6['x']*_0x9f0b5d,'y':_0x2da40d['y']-_0x51d9b6['y']*_0x9f0b5d},'out':{'x':_0x2da40d['x']+_0x51d9b6['x']*_0x9f0b5d,'y':_0x2da40d['y']+_0x51d9b6['y']*_0x9f0b5d}};}function _0x3732d7(_0x4807dd,_0x5f37e1){const _0x4c95e4=_0xe80f08;let _0x2f9f7c=_0x4807dd[_0x5f37e1],_0x71402d=_0x5f37e1==='in'?'out':'in',_0xa13e31=_0x4807dd[_0x71402d];_0x2f9f7c&&(_0x4807dd[_0x4c95e4(0x142)]===_0x4c95e4(0x19d)?_0x4807dd[_0x71402d]=_0x3d8d25(_0x4807dd,_0x2f9f7c):_0x4807dd[_0x4c95e4(0x142)]===_0x4c95e4(0x180)&&(_0x4807dd[_0x71402d]=_0x3d8d25(_0x4807dd,_0x2f9f7c,_0xa13e31?_0x3575fc(_0x4807dd,_0xa13e31):_0x3575fc(_0x4807dd,_0x2f9f7c))));}function _0x27d3c8(_0x80e1b1,_0x441793){const _0x272444=_0xe80f08;let _0x367aa8=_0x485f36(_0x80e1b1);return!_0x441793||_0x367aa8[_0x272444(0x179)]||_0x367aa8[_0x272444(0x198)]['length']===0x0||_0x367aa8[_0x272444(0x198)][_0x272444(0x18f)]({'id':_0x272444(0x14b),'x':_0x441793['x'],'y':_0x441793['y'],'pointType':_0x272444(0x17d)}),_0x367aa8;}function _0x56439c(_0x5e5d1b,_0x240caf={}){const _0x32af2c=_0xe80f08;let _0xa7fcac=Math[_0x32af2c(0x16d)](0x0,_0x240caf[_0x32af2c(0x154)]??Math[_0x32af2c(0x16d)](0x4,_0x5e5d1b[_0x32af2c(0x17e)]*0.35)),_0x30f92c=_0x240caf[_0x32af2c(0x193)]??(_0x4a2d8b=>_0x32af2c(0x178)+_0x4a2d8b),_0x1b1198=_0x456513(_0x5e5d1b[_0x32af2c(0x146)],_0xa7fcac),_0x2d29a3=_0x1b1198['map']((_0x1045e7,_0x33f8ae)=>({'id':_0x30f92c(_0x33f8ae),'x':_0x1045e7['x'],'y':_0x1045e7['y'],'pointType':_0x32af2c(0x138)}));for(let _0x3d99c0=0x0;_0x3d99c0<_0x2d29a3[_0x32af2c(0x134)]-0x1;_0x3d99c0++)_0x2d29a3[_0x3d99c0][_0x32af2c(0x16b)]=_0x39dec2(_0x1b1198,_0x3d99c0),_0x2d29a3[_0x3d99c0+0x1]['in']=_0x3ee214(_0x1b1198,_0x3d99c0+0x1);return{'kind':'pen','closed':!0x1,'anchors':_0x2d29a3};}function _0x3e6095(_0x6aceee,_0x184b38,_0x578efa){const _0x3c4c23=_0xe80f08;let _0x233a08=null,_0x33bb1f=['anchor','in','out'];return _0x6aceee[_0x3c4c23(0x198)][_0x3c4c23(0x17b)]((_0x3e8e2d,_0x3ef43a)=>{const _0x2dca3c=_0x3c4c23;_0x33bb1f[_0x2dca3c(0x17b)](_0x52f8fa=>{const _0x2a39ef=_0x2dca3c;if(!_0x596207(_0x6aceee,_0x3ef43a,_0x52f8fa))return;let _0x5ae3d6=_0x4ad0cf(_0x3e8e2d,_0x52f8fa);if(!_0x5ae3d6)return;let _0x9018aa=_0x3575fc(_0x184b38,_0x5ae3d6);_0x9018aa>_0x578efa||_0x233a08&&_0x9018aa>=_0x233a08[_0x2a39ef(0x17f)]||(_0x233a08={'handle':{'kind':_0x52f8fa,'anchorId':_0x3e8e2d['id']},'point':_0x44c720(_0x5ae3d6),'distance':_0x9018aa});});}),_0x233a08;}function _0x32ec26(_0xad3760,_0x4e9b18,_0x24edb6){const _0x3c8da7=_0xe80f08;let _0x32634f=null,_0x389e9e=_0xad3760[_0x3c8da7(0x179)]?_0xad3760['anchors'][_0x3c8da7(0x134)]:Math['max'](0x0,_0xad3760[_0x3c8da7(0x198)][_0x3c8da7(0x134)]-0x1);for(let _0x450cf2=0x0;_0x450cf2<_0x389e9e;_0x450cf2++){let _0xca8584=_0x3ad0e1(_0xad3760,_0x450cf2);if(!_0xca8584)continue;let _0x202b6e=_0x443a62(_0xca8584,0x0);for(let _0x2a8239=0x1;_0x2a8239<=0x20;_0x2a8239++){let _0x24bb15=_0x443a62(_0xca8584,_0x2a8239/0x20),_0xac4cf5=_0x4465eb(_0x4e9b18,_0x202b6e,_0x24bb15),_0x30f8b0=(_0x2a8239-0x1+_0xac4cf5[_0x3c8da7(0x197)])/0x20;(!_0x32634f||_0xac4cf5[_0x3c8da7(0x17f)]<_0x32634f[_0x3c8da7(0x17f)])&&(_0x32634f={'segmentIndex':_0x450cf2,'t':_0x30f8b0,'point':_0xac4cf5[_0x3c8da7(0x168)],'distance':_0xac4cf5[_0x3c8da7(0x17f)]}),_0x202b6e=_0x24bb15;}}return _0x32634f&&_0x32634f[_0x3c8da7(0x17f)]<=_0x24edb6?_0x32634f:null;}function _0x3f6827(_0x5b7cdc,_0x4e568e,_0xd578d8){const _0x4fbc57=_0xe80f08;let _0x432cf3=_0x485f36(_0x5b7cdc),_0x341bb7=_0x4956ce(_0x432cf3,_0x4e568e[_0x4fbc57(0x14f)]),_0x365227=_0x3ad0e1(_0x432cf3,_0x4e568e[_0x4fbc57(0x14f)]);if(!_0x341bb7||!_0x365227)return _0x432cf3;let _0x4cb7b5=_0x493491(_0x365227,Math[_0x4fbc57(0x16d)](0x0,Math['min'](0x1,_0x4e568e['t']))),_0x463414={'id':_0xd578d8(),'x':_0x4cb7b5[_0x4fbc57(0x169)][0x3]['x'],'y':_0x4cb7b5[_0x4fbc57(0x169)][0x3]['y'],'in':_0x44c720(_0x4cb7b5['left'][0x2]),'out':_0x44c720(_0x4cb7b5['right'][0x1]),'pointType':'free'};return _0x432cf3[_0x4fbc57(0x198)][_0x341bb7[_0x4fbc57(0x143)]][_0x4fbc57(0x16b)]=_0x44c720(_0x4cb7b5[_0x4fbc57(0x169)][0x1]),_0x432cf3[_0x4fbc57(0x198)][_0x341bb7[_0x4fbc57(0x12f)]]['in']=_0x44c720(_0x4cb7b5[_0x4fbc57(0x147)][0x2]),_0x432cf3[_0x4fbc57(0x198)]['splice'](_0x341bb7[_0x4fbc57(0x143)]+0x1,0x0,_0x463414),_0x432cf3;}function _0x4ee9d4(_0x72da90,_0x24eab5){const _0x34b28b=_0xe80f08;let _0x486ed4=_0x485f36(_0x72da90);return _0x486ed4[_0x34b28b(0x198)]=_0x486ed4[_0x34b28b(0x198)]['filter'](_0x4f87ab=>_0x4f87ab['id']!==_0x24eab5),_0x486ed4[_0x34b28b(0x179)]&&_0x486ed4[_0x34b28b(0x198)][_0x34b28b(0x134)]<0x3&&(_0x486ed4['closed']=!0x1),_0x486ed4;}function _0x462497(_0x5a0627,_0x148710,_0xf28758){const _0x239f20=_0xe80f08;let _0x266f0a=_0x485f36(_0x5a0627),_0x258454=_0x266f0a[_0x239f20(0x198)][_0x239f20(0x13c)](_0x7589a3=>_0x7589a3['id']===_0x148710),_0x34e0dc=_0x266f0a['anchors'][_0x258454];if(!_0x34e0dc)return _0x266f0a;if(_0x34e0dc['pointType']=_0xf28758,_0xf28758===_0x239f20(0x17d))return delete _0x34e0dc['in'],delete _0x34e0dc[_0x239f20(0x16b)],_0x266f0a;let _0x569b88=_0x2b20eb(_0x266f0a,_0x258454);if(_0x34e0dc['in']=_0x34e0dc['in']?_0x44c720(_0x34e0dc['in']):_0x569b88['in'],_0x34e0dc[_0x239f20(0x16b)]=_0x34e0dc[_0x239f20(0x16b)]?_0x44c720(_0x34e0dc['out']):_0x569b88[_0x239f20(0x16b)],_0xf28758==='symmetric'){let _0x501b15=Math['max'](_0x3575fc(_0x34e0dc,_0x34e0dc['in']),_0x3575fc(_0x34e0dc,_0x34e0dc[_0x239f20(0x16b)]),0x32),_0x255ec9=_0x258fe2({'x':_0x34e0dc[_0x239f20(0x16b)]['x']-_0x34e0dc['x'],'y':_0x34e0dc[_0x239f20(0x16b)]['y']-_0x34e0dc['y']});_0x34e0dc['out']={'x':_0x34e0dc['x']+_0x255ec9['x']*_0x501b15,'y':_0x34e0dc['y']+_0x255ec9['y']*_0x501b15},_0x34e0dc['in']={'x':_0x34e0dc['x']-_0x255ec9['x']*_0x501b15,'y':_0x34e0dc['y']-_0x255ec9['y']*_0x501b15};}else _0xf28758===_0x239f20(0x180)&&_0x3732d7(_0x34e0dc,_0x239f20(0x16b));return _0x266f0a;}function _0x563504(_0x4be369,_0x2cddc5){const _0x35c073=_0xe80f08;let _0x4a9697=_0x4be369[_0x35c073(0x198)]['find'](_0x4e78d5=>_0x4e78d5['id']===_0x2cddc5),_0x37bed9=(_0x4a9697==null?void 0x0:_0x4a9697[_0x35c073(0x142)])??_0x35c073(0x17d);return _0x462497(_0x4be369,_0x2cddc5,_0x37bed9===_0x35c073(0x17d)?_0x35c073(0x180):_0x37bed9===_0x35c073(0x180)?'symmetric':_0x37bed9===_0x35c073(0x19d)?_0x35c073(0x138):_0x35c073(0x17d));}function _0x45f83c(_0x540b11,_0x4aa939,_0x317484){const _0x233493=_0xe80f08;let _0x2b7587=_0x485f36(_0x540b11),_0x497e06=_0x2b7587['anchors']['find'](_0x341c5e=>_0x341c5e['id']===_0x4aa939[_0x233493(0x130)]);if(!_0x497e06)return _0x2b7587;if(_0x4aa939['kind']===_0x233493(0x15d)){let _0x28f2bb={'x':_0x317484['x']-_0x497e06['x'],'y':_0x317484['y']-_0x497e06['y']};return _0x497e06['x']=_0x317484['x'],_0x497e06['y']=_0x317484['y'],_0x497e06['in']&&={'x':_0x497e06['in']['x']+_0x28f2bb['x'],'y':_0x497e06['in']['y']+_0x28f2bb['y']},_0x497e06[_0x233493(0x16b)]&&={'x':_0x497e06['out']['x']+_0x28f2bb['x'],'y':_0x497e06[_0x233493(0x16b)]['y']+_0x28f2bb['y']},_0x2b7587;}return _0x497e06[_0x4aa939['kind']]=_0x44c720(_0x317484),_0x497e06['pointType']===_0x233493(0x17d)&&(_0x497e06[_0x233493(0x142)]=_0x233493(0x138)),_0x3732d7(_0x497e06,_0x4aa939[_0x233493(0x164)]),_0x2b7587;}let _0x2e1325=1e-9;function _0x17f65f(_0x133887){let _0x47ee55=Math['round'](_0x133887*0x2710)/0x2710;return Object['is'](_0x47ee55,-0x0)?'0':String(_0x47ee55);}function _0x5df1a5(_0x3674ee){return _0x17f65f(_0x3674ee['x'])+'\x20'+_0x17f65f(_0x3674ee['y']);}function _0x4f3f52(_0x30bf3c,_0x212ba9){return{'x':_0x30bf3c['x']-_0x212ba9['x'],'y':_0x30bf3c['y']-_0x212ba9['y']};}function _0x168f7d(_0x3058ee,_0x5621a9,_0x4b49f7,_0x345615,_0x138392){let _0x5b4cc3=0x1-_0x138392;return{'x':_0x5b4cc3*_0x5b4cc3*_0x5b4cc3*_0x3058ee['x']+0x3*_0x5b4cc3*_0x5b4cc3*_0x138392*_0x5621a9['x']+0x3*_0x5b4cc3*_0x138392*_0x138392*_0x4b49f7['x']+_0x138392*_0x138392*_0x138392*_0x345615['x'],'y':_0x5b4cc3*_0x5b4cc3*_0x5b4cc3*_0x3058ee['y']+0x3*_0x5b4cc3*_0x5b4cc3*_0x138392*_0x5621a9['y']+0x3*_0x5b4cc3*_0x138392*_0x138392*_0x4b49f7['y']+_0x138392*_0x138392*_0x138392*_0x345615['y']};}function _0x458eaf(_0x337ef7,_0x5711de,_0x3ba0e7,_0x92e7d3){const _0x4fc68c=_0xe80f08;let _0x2aacf9=-_0x337ef7+0x3*_0x5711de-0x3*_0x3ba0e7+_0x92e7d3,_0xc56930=0x3*_0x337ef7-0x6*_0x5711de+0x3*_0x3ba0e7,_0xf7180a=-0x3*_0x337ef7+0x3*_0x5711de,_0x202f23=[];if(Math[_0x4fc68c(0x189)](_0x2aacf9)<_0x2e1325){if(Math[_0x4fc68c(0x189)](_0xc56930)<_0x2e1325)return _0x202f23;let _0x9738f3=-_0xf7180a/(0x2*_0xc56930);return _0x9738f3>0x0&&_0x9738f3<0x1&&_0x202f23[_0x4fc68c(0x18f)](_0x9738f3),_0x202f23;}let _0x124f1b=_0xc56930*_0xc56930-0x3*_0x2aacf9*_0xf7180a;if(_0x124f1b<0x0)return _0x202f23;let _0x27a376=Math[_0x4fc68c(0x184)](Math[_0x4fc68c(0x16d)](0x0,_0x124f1b)),_0x123b7f=(-_0xc56930+_0x27a376)/(0x3*_0x2aacf9),_0x365c5a=(-_0xc56930-_0x27a376)/(0x3*_0x2aacf9);return _0x123b7f>0x0&&_0x123b7f<0x1&&_0x202f23[_0x4fc68c(0x18f)](_0x123b7f),_0x365c5a>0x0&&_0x365c5a<0x1&&Math['abs'](_0x365c5a-_0x123b7f)>_0x2e1325&&_0x202f23['push'](_0x365c5a),_0x202f23;}function _0x64e095(_0x33e367,_0x58d576,_0x187f42,_0x12d045,_0x40a86f){const _0x1ec590=_0xe80f08;_0x33e367[_0x1ec590(0x18f)](_0x58d576,_0x40a86f),new Set([..._0x458eaf(_0x58d576['x'],_0x187f42['x'],_0x12d045['x'],_0x40a86f['x']),..._0x458eaf(_0x58d576['y'],_0x187f42['y'],_0x12d045['y'],_0x40a86f['y'])])['forEach'](_0x4a9497=>{const _0x44a570=_0x1ec590;_0x33e367[_0x44a570(0x18f)](_0x168f7d(_0x58d576,_0x187f42,_0x12d045,_0x40a86f,_0x4a9497));});}function _0xaddf17(_0x315de5){const _0x1380a1=_0xe80f08;let _0x145445=_0x315de5[_0x1380a1(0x198)];if(_0x145445[_0x1380a1(0x134)]<=0x1)return _0x145445;let _0x540882=[];for(let _0x587fe3=0x1;_0x587fe3<_0x145445[_0x1380a1(0x134)];_0x587fe3++){let _0x3536ae=_0x145445[_0x587fe3-0x1],_0x18fe1b=_0x145445[_0x587fe3];_0x64e095(_0x540882,_0x3536ae,_0x3536ae[_0x1380a1(0x16b)]??_0x3536ae,_0x18fe1b['in']??_0x18fe1b,_0x18fe1b);}if(_0x315de5['closed']&&_0x145445[_0x1380a1(0x134)]>0x1){let _0x395c20=_0x145445[_0x145445[_0x1380a1(0x134)]-0x1],_0x4fc8d7=_0x145445[0x0];_0x64e095(_0x540882,_0x395c20,_0x395c20['out']??_0x395c20,_0x4fc8d7['in']??_0x4fc8d7,_0x4fc8d7);}return _0x540882;}function _0x4e437f(_0x5b4c38){const _0x5ca702=_0xe80f08;let _0x383e67=_0x5b4c38['points'];if(_0x383e67[_0x5ca702(0x134)]<=0x1)return _0x383e67;let _0x4c6c23=[];for(let _0x35c869=0x0;_0x35c869<_0x383e67[_0x5ca702(0x134)]-0x1;_0x35c869++){let _0x48c4fa=_0x383e67[_0x35c869],_0x227317=_0x383e67[_0x35c869+0x1],_0x2996e1=_0x383e67[_0x35c869-0x1]??_0x48c4fa,_0x1b3869=_0x383e67[_0x35c869+0x2]??_0x227317;_0x64e095(_0x4c6c23,_0x48c4fa,{'x':_0x48c4fa['x']+(_0x227317['x']-_0x2996e1['x'])/0x6,'y':_0x48c4fa['y']+(_0x227317['y']-_0x2996e1['y'])/0x6},{'x':_0x227317['x']-(_0x1b3869['x']-_0x48c4fa['x'])/0x6,'y':_0x227317['y']-(_0x1b3869['y']-_0x48c4fa['y'])/0x6},_0x227317);}return _0x4c6c23;}function _0x3cd75f(_0x5cb4bf){const _0x5061c8=_0xe80f08;return _0x5cb4bf[_0x5061c8(0x164)]===_0x5061c8(0x167)?_0xaddf17(_0x5cb4bf):_0x4e437f(_0x5cb4bf);}function _0x4e0af2(_0x378349){const _0x4ce9e2=_0xe80f08;let _0x2e7cb2=Math[_0x4ce9e2(0x15a)](_0x378349*0x2710)/0x2710;return Object['is'](_0x2e7cb2,-0x0)?0x0:_0x2e7cb2;}function _0x3f66f3(_0x282887){const _0x27512b=_0xe80f08;let _0x1d0b54=_0x3cd75f(_0x282887);if(_0x1d0b54[_0x27512b(0x134)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x809d1b=Math[_0x27512b(0x162)](..._0x1d0b54[_0x27512b(0x16e)](_0x26ce76=>_0x26ce76['x'])),_0x3c4201=Math[_0x27512b(0x162)](..._0x1d0b54[_0x27512b(0x16e)](_0x786d70=>_0x786d70['y'])),_0x2b5bd4=Math[_0x27512b(0x16d)](..._0x1d0b54[_0x27512b(0x16e)](_0x3be8ff=>_0x3be8ff['x'])),_0x234749=Math[_0x27512b(0x16d)](..._0x1d0b54[_0x27512b(0x16e)](_0x40d51a=>_0x40d51a['y']));return{'left':_0x4e0af2(_0x809d1b),'top':_0x4e0af2(_0x3c4201),'width':_0x4e0af2(Math[_0x27512b(0x16d)](0x1,_0x2b5bd4-_0x809d1b)),'height':_0x4e0af2(Math['max'](0x1,_0x234749-_0x3c4201))};}function _0x2a79c8(_0x22a89d,_0x41aaf4){const _0x19059d=_0xe80f08;let _0x503e95=_0x22a89d['anchors'];if(_0x503e95[_0x19059d(0x134)]===0x0)return'';let _0x10f845=['M\x20'+_0x5df1a5(_0x4f3f52(_0x503e95[0x0],_0x41aaf4))];for(let _0x1e92d0=0x1;_0x1e92d0<_0x503e95[_0x19059d(0x134)];_0x1e92d0++){let _0x4507e3=_0x503e95[_0x1e92d0-0x1],_0x3fe08e=_0x503e95[_0x1e92d0],_0xc6573e=_0x4507e3[_0x19059d(0x16b)]??_0x4507e3,_0x3c5cf1=_0x3fe08e['in']??_0x3fe08e;_0x10f845[_0x19059d(0x18f)]('C\x20'+_0x5df1a5(_0x4f3f52(_0xc6573e,_0x41aaf4))+'\x20'+_0x5df1a5(_0x4f3f52(_0x3c5cf1,_0x41aaf4))+'\x20'+_0x5df1a5(_0x4f3f52(_0x3fe08e,_0x41aaf4)));}if(_0x22a89d[_0x19059d(0x179)]&&_0x503e95[_0x19059d(0x134)]>0x1){let _0x197e6a=_0x503e95[_0x503e95['length']-0x1],_0x5824e7=_0x503e95[0x0],_0x5bc7df=_0x197e6a['out']??_0x197e6a,_0xbb7e68=_0x5824e7['in']??_0x5824e7;_0x10f845[_0x19059d(0x18f)]('C\x20'+_0x5df1a5(_0x4f3f52(_0x5bc7df,_0x41aaf4))+'\x20'+_0x5df1a5(_0x4f3f52(_0xbb7e68,_0x41aaf4))+'\x20'+_0x5df1a5(_0x4f3f52(_0x5824e7,_0x41aaf4))),_0x10f845[_0x19059d(0x18f)]('Z');}return _0x10f845[_0x19059d(0x14e)]('\x20');}function _0x22b29b(_0x457a58,_0x27b620){const _0x2cd000=_0xe80f08;let _0x34b443=_0x457a58[_0x2cd000(0x146)][_0x2cd000(0x16e)](_0x2b2694=>_0x4f3f52(_0x2b2694,_0x27b620));if(_0x34b443['length']===0x0)return'';if(_0x34b443[_0x2cd000(0x134)]===0x1)return'M\x20'+_0x5df1a5(_0x34b443[0x0]);let _0x46f72c=['M\x20'+_0x5df1a5(_0x34b443[0x0])];for(let _0x5e187b=0x0;_0x5e187b<_0x34b443[_0x2cd000(0x134)]-0x1;_0x5e187b++){let _0x3368bc=_0x34b443[_0x5e187b],_0x10ff3c=_0x34b443[_0x5e187b+0x1],_0x107a1f=_0x34b443[_0x5e187b-0x1]??_0x3368bc,_0x35a2a5=_0x34b443[_0x5e187b+0x2]??_0x10ff3c,_0x4d5869={'x':_0x3368bc['x']+(_0x10ff3c['x']-_0x107a1f['x'])/0x6,'y':_0x3368bc['y']+(_0x10ff3c['y']-_0x107a1f['y'])/0x6},_0x5cb1cf={'x':_0x10ff3c['x']-(_0x35a2a5['x']-_0x3368bc['x'])/0x6,'y':_0x10ff3c['y']-(_0x35a2a5['y']-_0x3368bc['y'])/0x6};_0x46f72c[_0x2cd000(0x18f)]('C\x20'+_0x5df1a5(_0x4d5869)+'\x20'+_0x5df1a5(_0x5cb1cf)+'\x20'+_0x5df1a5(_0x10ff3c));}return _0x46f72c[_0x2cd000(0x14e)]('\x20');}function _0xbbdcdc(_0x592806,_0x41d8ca){const _0x18b295=_0xe80f08;return _0x592806[_0x18b295(0x164)]==='pen'?_0x2a79c8(_0x592806,_0x41d8ca):_0x22b29b(_0x592806,_0x41d8ca);}function _0x1b51cb(_0x3a9cd4,_0xcb8379){const _0x5383b8=_0xe80f08;return _0xcb8379!=null&&_0xcb8379[_0x5383b8(0x163)]?_0xcb8379[_0x5383b8(0x163)]:_0x3a9cd4[_0x5383b8(0x164)]===_0x5383b8(0x167)?_0x5383b8(0x175):_0x3a9cd4[_0x5383b8(0x163)];}function _0x11994c(_0x206c8f,_0x30c30d){const _0x4fba28=_0xe80f08;return(_0x30c30d==null?void 0x0:_0x30c30d['width'])===void 0x0?_0x206c8f[_0x4fba28(0x164)]===_0x4fba28(0x167)?0x2:_0x206c8f['width']:_0x30c30d[_0x4fba28(0x17e)];}function _0x36ed3c(_0x4a0e2d,_0x17823a){const _0x52dc5f=_0xe80f08;return(_0x17823a==null?void 0x0:_0x17823a[_0x52dc5f(0x170)])===void 0x0?_0x4a0e2d[_0x52dc5f(0x164)]==='pen'?void 0x0:_0x4a0e2d['opacity']:_0x17823a[_0x52dc5f(0x170)];}function _0xc173b9(_0x29ea4d,_0xe34792){const _0x3e58b1=_0xe80f08;let _0x42aeb7=_0x3f66f3(_0x29ea4d),_0x490748=_0xbbdcdc(_0x29ea4d,{'x':_0x42aeb7[_0x3e58b1(0x169)],'y':_0x42aeb7[_0x3e58b1(0x1a1)]}),_0x112fc6=_0x29ea4d[_0x3e58b1(0x164)]===_0x3e58b1(0x167)&&_0x29ea4d[_0x3e58b1(0x179)],_0x533fdd=_0xe34792==null?void 0x0:_0xe34792[_0x3e58b1(0x145)];return{'shapeType':_0x16e248[_0x3e58b1(0x17c)][_0x3e58b1(0x186)],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x42aeb7['width'],'h':_0x42aeb7['height'],'fill':_0x112fc6?_0x3e58b1(0x155):'none','stroke':!0x0,'data':_0x490748,'dataArray':_0xc23ea2(_0x29ea4d,{'x':_0x42aeb7['left'],'y':_0x42aeb7['top']})}]},'fill':_0x112fc6&&_0x533fdd?{'color':_0x533fdd,'fillType':_0x16e248['ShapeFillEnum'][_0x3e58b1(0x1a7)]}:{'fillType':_0x16e248[_0x3e58b1(0x150)][_0x3e58b1(0x13d)]},'stroke':{'color':_0x1b51cb(_0x29ea4d,_0xe34792),'width':_0x11994c(_0x29ea4d,_0xe34792),'opacity':_0x36ed3c(_0x29ea4d,_0xe34792),'lineStrokeType':_0x16e248[_0x3e58b1(0x160)][_0x3e58b1(0x140)],'capType':_0x16e248[_0x3e58b1(0x131)][_0x3e58b1(0x136)],'lineJoinType':_0x16e248[_0x3e58b1(0x151)]['Round']}};}function _0xcc4980(_0x45aede,_0x519aca){return{'x':_0x45aede['x']-_0x519aca['x'],'y':_0x45aede['y']-_0x519aca['y']};}function _0xc23ea2(_0x457af0,_0x2857a4){const _0x4d4598=_0xe80f08;if(_0x457af0[_0x4d4598(0x164)]===_0x4d4598(0x167)){let _0xb6e2de=_0x457af0[_0x4d4598(0x198)];if(_0xb6e2de[_0x4d4598(0x134)]===0x0)return[];let _0x9b295f=_0xcc4980(_0xb6e2de[0x0],_0x2857a4),_0x4482e5=[{'command':'M','points':[_0x9b295f['x'],_0x9b295f['y']]}];for(let _0x14b05c=0x1;_0x14b05c<_0xb6e2de['length'];_0x14b05c++){let _0x4fca0f=_0xb6e2de[_0x14b05c-0x1],_0x21513=_0xb6e2de[_0x14b05c],_0x3ae35c=_0xcc4980(_0x4fca0f[_0x4d4598(0x16b)]??_0x4fca0f,_0x2857a4),_0x465a48=_0xcc4980(_0x21513['in']??_0x21513,_0x2857a4),_0x1d5424=_0xcc4980(_0x21513,_0x2857a4);_0x4482e5[_0x4d4598(0x18f)]({'command':'C','points':[_0x3ae35c['x'],_0x3ae35c['y'],_0x465a48['x'],_0x465a48['y'],_0x1d5424['x'],_0x1d5424['y']]});}if(_0x457af0[_0x4d4598(0x179)]&&_0xb6e2de[_0x4d4598(0x134)]>0x1){let _0x5539a7=_0xb6e2de[_0xb6e2de[_0x4d4598(0x134)]-0x1],_0x74b743=_0xb6e2de[0x0],_0x306a70=_0xcc4980(_0x5539a7[_0x4d4598(0x16b)]??_0x5539a7,_0x2857a4),_0x2af5d6=_0xcc4980(_0x74b743['in']??_0x74b743,_0x2857a4),_0x393581=_0xcc4980(_0x74b743,_0x2857a4);_0x4482e5['push']({'command':'C','points':[_0x306a70['x'],_0x306a70['y'],_0x2af5d6['x'],_0x2af5d6['y'],_0x393581['x'],_0x393581['y']]}),_0x4482e5[_0x4d4598(0x18f)]({'command':'z','points':[]});}return _0x4482e5;}let _0x4845e5=_0x457af0[_0x4d4598(0x146)][_0x4d4598(0x16e)](_0x405196=>_0xcc4980(_0x405196,_0x2857a4));if(_0x4845e5[_0x4d4598(0x134)]===0x0)return[];let _0x357b3a=[{'command':'M','points':[_0x4845e5[0x0]['x'],_0x4845e5[0x0]['y']]}];for(let _0x895043=0x0;_0x895043<_0x4845e5[_0x4d4598(0x134)]-0x1;_0x895043++){let _0x2cf306=_0x4845e5[_0x895043],_0x3c01ae=_0x4845e5[_0x895043+0x1],_0x28b9a9=_0x4845e5[_0x895043-0x1]??_0x2cf306,_0x112048=_0x4845e5[_0x895043+0x2]??_0x3c01ae,_0x4c6529={'x':_0x2cf306['x']+(_0x3c01ae['x']-_0x28b9a9['x'])/0x6,'y':_0x2cf306['y']+(_0x3c01ae['y']-_0x28b9a9['y'])/0x6},_0x5d50b2={'x':_0x3c01ae['x']-(_0x112048['x']-_0x2cf306['x'])/0x6,'y':_0x3c01ae['y']-(_0x112048['y']-_0x2cf306['y'])/0x6};_0x357b3a['push']({'command':'C','points':[_0x4c6529['x'],_0x4c6529['y'],_0x5d50b2['x'],_0x5d50b2['y'],_0x3c01ae['x'],_0x3c01ae['y']]});}return _0x357b3a;}function _0x5015f3(_0x3a9f3e){const _0xbfa1d2=_0xe80f08;let {model:_0xca251f,sourceModel:_0x5d7a32=_0xca251f,style:_0xa8ed7b}=_0x3a9f3e,_0x569ec7=_0x3a9f3e[_0xbfa1d2(0x15b)]??_0xca251f['kind'],_0x36dde0=_0x3f66f3(_0xca251f),_0x514098=_0xca251f['kind']===_0xbfa1d2(0x167)&&_0x569ec7!==_0xbfa1d2(0x167)?_0xca251f:void 0x0;return{'transform':{..._0x36dde0,'rotation':0x0},'shapeData':_0xc173b9(_0xca251f,_0xa8ed7b),'ink':{'version':0x1,'tool':_0x569ec7,'sourceModel':_0x5d7a32,..._0x514098?{'editModel':_0x514098}:{},'normalizedBounds':_0x36dde0}};}var _0x8d5bbd=_0xe80f08(0x148),_0x15bd29=_0xe80f08(0x132);function _0x43a60a(_0x5249be){'@babel/helpers - typeof';const _0x434e53=_0xe80f08;return _0x43a60a=typeof Symbol==_0x434e53(0x14a)&&typeof Symbol[_0x434e53(0x195)]==_0x434e53(0x1a2)?function(_0x5c5f68){return typeof _0x5c5f68;}:function(_0x329ec2){const _0x1b8c0a=_0x434e53;return _0x329ec2&&typeof Symbol=='function'&&_0x329ec2[_0x1b8c0a(0x18c)]===Symbol&&_0x329ec2!==Symbol['prototype']?_0x1b8c0a(0x1a2):typeof _0x329ec2;},_0x43a60a(_0x5249be);}function _0x1eef89(_0x2ecb57,_0x73bb2e){const _0x129881=_0xe80f08;if(_0x43a60a(_0x2ecb57)!='object'||!_0x2ecb57)return _0x2ecb57;var _0x299c55;if(typeof Symbol<'u'&&(_0x299c55=_0x2ecb57[Symbol[_0x129881(0x16a)]])!==void 0x0){var _0x3f3527=_0x299c55[_0x129881(0x166)](_0x2ecb57,_0x73bb2e||_0x129881(0x185));if(_0x43a60a(_0x3f3527)!=_0x129881(0x13f))return _0x3f3527;throw TypeError(_0x129881(0x133));}return(_0x73bb2e===_0x129881(0x19a)?String:Number)(_0x2ecb57);}function _0x4a60f3(_0x44efd9){const _0x16bc31=_0xe80f08;var _0x39ade5=_0x1eef89(_0x44efd9,'string');return _0x43a60a(_0x39ade5)==_0x16bc31(0x1a2)?_0x39ade5:_0x39ade5+'';}function _0x2cf03d(_0x5c0121,_0x1cc75f,_0x5569ae){return(_0x1cc75f=_0x4a60f3(_0x1cc75f))in _0x5c0121?Object['defineProperty'](_0x5c0121,_0x1cc75f,{'value':_0x5569ae,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c0121[_0x1cc75f]=_0x5569ae,_0x5c0121;}let _0x510603=(0x0,_0x5cbc25[_0xe80f08(0x12a)])('ink.host-adapter.service');var _0x3dca55=class{constructor(){const _0x16ab35=_0xe80f08;_0x2cf03d(this,_0x16ab35(0x192),[]);}[_0xe80f08(0x183)](_0x5577ad){const _0x35084f=_0xe80f08;return this[_0x35084f(0x192)][_0x35084f(0x18f)](_0x5577ad),(0x0,_0x5cbc25[_0x35084f(0x12e)])(()=>{const _0x48352e=_0x35084f;let _0x1489b5=this[_0x48352e(0x192)]['indexOf'](_0x5577ad);_0x1489b5>=0x0&&this[_0x48352e(0x192)][_0x48352e(0x187)](_0x1489b5,0x1);});}[_0xe80f08(0x1a4)](_0xc49c34){const _0x17bee2=_0xe80f08;for(let _0x5178b5 of this[_0x17bee2(0x192)])if(_0x5178b5[_0x17bee2(0x1a4)](_0xc49c34))return!0x0;return!0x1;}async['createCustomShape'](_0x212efb){const _0x9b28fc=_0xe80f08;for(let _0x55f3fb of this[_0x9b28fc(0x192)])if(_0x55f3fb[_0x9b28fc(0x159)]&&await _0x55f3fb['createCustomShape'](_0x212efb))return!0x0;return!0x1;}};let _0x7f431a={'id':_0xe80f08(0x194),'type':_0x5cbc25[_0xe80f08(0x19f)]['OPERATION'],'handler':(_0x41ad46,_0x24ad59)=>_0x24ad59?_0x41ad46[_0xe80f08(0x144)](_0x510603)[_0xe80f08(0x1a4)](_0x24ad59):!0x1},_0x408c31={};function _0x260c7c(_0x353d29,_0x4762fb){return function(_0x3d18f9,_0x21438c){_0x4762fb(_0x3d18f9,_0x21438c,_0x353d29);};}function _0x25eae2(_0xa9e713,_0x3d59be,_0x326def,_0x27dba3){const _0x5cc5a5=_0xe80f08;var _0x3b1f92=arguments[_0x5cc5a5(0x134)],_0x3df090=_0x3b1f92<0x3?_0x3d59be:_0x27dba3===null?_0x27dba3=Object[_0x5cc5a5(0x153)](_0x3d59be,_0x326def):_0x27dba3,_0x3ad70b;if(typeof Reflect==_0x5cc5a5(0x13f)&&typeof Reflect[_0x5cc5a5(0x158)]==_0x5cc5a5(0x14a))_0x3df090=Reflect['decorate'](_0xa9e713,_0x3d59be,_0x326def,_0x27dba3);else{for(var _0x5dc0a3=_0xa9e713[_0x5cc5a5(0x134)]-0x1;_0x5dc0a3>=0x0;_0x5dc0a3--)(_0x3ad70b=_0xa9e713[_0x5dc0a3])&&(_0x3df090=(_0x3b1f92<0x3?_0x3ad70b(_0x3df090):_0x3b1f92>0x3?_0x3ad70b(_0x3d59be,_0x326def,_0x3df090):_0x3ad70b(_0x3d59be,_0x326def))||_0x3df090);}return _0x3b1f92>0x3&&_0x3df090&&Object[_0x5cc5a5(0x12d)](_0x3d59be,_0x326def,_0x3df090),_0x3df090;}let _0x30d8fe=class extends _0x5cbc25[_0xe80f08(0x177)]{constructor(_0x33741a=_0x408c31,_0x1d9ea1,_0x1b443d,_0x29e979){const _0x37a798=_0xe80f08;super(),this[_0x37a798(0x171)]=_0x33741a,this[_0x37a798(0x19e)]=_0x1d9ea1,this['_commandService']=_0x1b443d,this['_configService']=_0x29e979;let {..._0x2cc6b1}=(0x0,_0x5cbc25[_0x37a798(0x13e)])({},_0x408c31,this['_config']);this['_configService'][_0x37a798(0x156)](_0x37a798(0x191),_0x2cc6b1);}['onStarting'](){const _0x157164=_0xe80f08;[[_0x510603,{'useClass':_0x3dca55}]][_0x157164(0x17b)](_0x4e3c38=>this[_0x157164(0x19e)][_0x157164(0x19b)](_0x4e3c38)),this[_0x157164(0x17a)](this[_0x157164(0x129)]['registerCommand'](_0x7f431a));}};_0x2cf03d(_0x30d8fe,'pluginName',_0xe80f08(0x161)),_0x2cf03d(_0x30d8fe,_0xe80f08(0x141),_0x8d5bbd),_0x2cf03d(_0x30d8fe,'version',_0x15bd29),_0x2cf03d(_0x30d8fe,'type',_0x5cbc25['UniverInstanceType'][_0xe80f08(0x157)]),_0x30d8fe=_0x25eae2([(0x0,_0x5cbc25[_0xe80f08(0x18b)])(_0x26de0e[_0xe80f08(0x137)]),_0x260c7c(0x1,(0x0,_0x5cbc25['Inject'])(_0x5cbc25[_0xe80f08(0x13a)])),_0x260c7c(0x2,_0x5cbc25[_0xe80f08(0x19c)]),_0x260c7c(0x3,_0x5cbc25['IConfigService'])],_0x30d8fe),_0x5a60e8[_0xe80f08(0x135)]=_0x510603,Object['defineProperty'](_0x5a60e8,_0xe80f08(0x149),{'enumerable':!0x0,'get':function(){return _0x30d8fe;}}),_0x5a60e8[_0xe80f08(0x190)]=_0x5015f3,_0x5a60e8['convertBrushModelToPenModel']=_0x56439c,_0x5a60e8['cycleInkPenAnchorPointType']=_0x563504,_0x5a60e8[_0xe80f08(0x14c)]=_0x4ee9d4,_0x5a60e8[_0xe80f08(0x174)]=_0x3e6095,_0x5a60e8[_0xe80f08(0x139)]=_0x32ec26,_0x5a60e8[_0xe80f08(0x1a8)]=_0x3f66f3,_0x5a60e8['getInkPenPreviewModel']=_0x27d3c8,_0x5a60e8['insertInkPenAnchorAt']=_0x3f6827,_0x5a60e8[_0xe80f08(0x181)]=_0x596207,_0x5a60e8['moveInkPenAnchorPoint']=_0x45f83c,_0x5a60e8[_0xe80f08(0x196)]=_0x462497;}));
1
+ function _0x2710(_0x2ee22a,_0x1b023b){_0x2ee22a=_0x2ee22a-0x126;const _0x13df92=_0x13df();let _0x2710e4=_0x13df92[_0x2ee22a];return _0x2710e4;}function _0x13df(){const _0xe3251a=['string','anchor','abs','prototype','amd','closed','onStarting','registerCommand','125UURFti','add','ShapeFillEnum','@univerjs-pro/license','beginInkMode','14FWrKho','415152IADhfz','length','fillColor','exports','corner','NoFill','35284BBGwbx','findIndex','kind','packageName','anchors','UNIVER_UNKNOWN','tool','max','12093348TVBDvg','495700BDdlWo','getOwnPropertyDescriptor','UniverInkPlugin','indexOf','left','deleteInkPenAnchor','isInkPenHandleVisible','16862ryFYhc','version','_commandService','free','startIndex','type','#f54a45','CommandType','cycleInkPenAnchorPointType','Injector','DependentOn','_config','toPrimitive','ink.host-adapter.service','symbol','Plugin','ShapeLineTypeEnum','11jEyirq','setConfig','merge','defineProperty','color','ShapeLineJoinEnum','@univerjs-pro/ink','opacity','1.5.1','iterator','point','158076SmbOso','8LSeOhj','insertInkPenAnchorAt','tolerance','SolidLine','pen','distance','symmetric','Module','map','getInkPenPreviewModel','slice','_injector','filter','UniverProInk','setInkPenAnchorPointType','_adapters','createId','createCustomShape','object','anchorId','height','default','SolidFill','out','min','function','ink.config','16VEZWBp','moveInkPenAnchorPoint','@univerjs-pro/engine-shape','right','points','start','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','ink-centerline-','Round','width','pluginName','top','constructor','round','smooth','getInkModelBounds','join','decorate','hypot','pointType','forEach','splice','3142593zKimuZ','push','ratio','toDisposable','find','end','toStringTag','ShapeTypeEnum','_configService','call','OPERATION','get','Inject','segmentIndex','@univerjs/core','norm'];_0x13df=function(){return _0xe3251a;};return _0x13df();}(function(_0x151f49,_0x39e2d2){const _0x9d26bf=_0x2710,_0x1f67b1=_0x151f49();while(!![]){try{const _0x3379f2=parseInt(_0x9d26bf(0x137))/0x1*(-parseInt(_0x9d26bf(0x181))/0x2)+-parseInt(_0x9d26bf(0x16b))/0x3+-parseInt(_0x9d26bf(0x171))/0x4*(parseInt(_0x9d26bf(0x165))/0x5)+-parseInt(_0x9d26bf(0x19d))/0x6*(-parseInt(_0x9d26bf(0x16a))/0x7)+parseInt(_0x9d26bf(0x19e))/0x8*(-parseInt(_0x9d26bf(0x14d))/0x9)+parseInt(_0x9d26bf(0x17a))/0xa+-parseInt(_0x9d26bf(0x192))/0xb*(-parseInt(_0x9d26bf(0x179))/0xc);if(_0x3379f2===_0x39e2d2)break;else _0x1f67b1['push'](_0x1f67b1['shift']());}catch(_0x32cbf8){_0x1f67b1['push'](_0x1f67b1['shift']());}}}(_0x13df,0x41333),function(_0x2455d3,_0x292683){const _0x5998b1=_0x2710;typeof exports==_0x5998b1(0x12e)&&typeof module<'u'?_0x292683(exports,require('@univerjs-pro/engine-shape'),require('@univerjs-pro/license'),require('@univerjs/core')):typeof define==_0x5998b1(0x135)&&define[_0x5998b1(0x161)]?define([_0x5998b1(0x16e),_0x5998b1(0x139),_0x5998b1(0x168),_0x5998b1(0x15b)],_0x292683):(_0x2455d3=typeof globalThis<'u'?globalThis:_0x2455d3||self,_0x292683(_0x2455d3[_0x5998b1(0x129)]={},_0x2455d3['UniverProEngineShape'],_0x2455d3['UniverProLicense'],_0x2455d3['UniverCore']));}(this,function(_0x4b0a5c,_0x131b78,_0x3f32bd,_0xc81ef9){const _0x3f6646=_0x2710;Object[_0x3f6646(0x195)](_0x4b0a5c,Symbol[_0x3f6646(0x153)],{'value':_0x3f6646(0x1a5)});let _0x297569=0.0001;function _0x1c0be7(_0x338092){return{'x':_0x338092['x'],'y':_0x338092['y']};}function _0x4994b9(_0x5027da){const _0x36c6eb=_0x3f6646;return{..._0x5027da,'in':_0x5027da['in']?_0x1c0be7(_0x5027da['in']):void 0x0,'out':_0x5027da[_0x36c6eb(0x133)]?_0x1c0be7(_0x5027da[_0x36c6eb(0x133)]):void 0x0};}function _0x120c30(_0x1b2f35){const _0x520a3c=_0x3f6646;return{'kind':'pen','closed':_0x1b2f35[_0x520a3c(0x162)],'anchors':_0x1b2f35[_0x520a3c(0x175)][_0x520a3c(0x1a6)](_0x4994b9)};}function _0xdf29f3(_0x37f794,_0x1d59ba,_0x1778ed){return{'x':_0x37f794['x']+(_0x1d59ba['x']-_0x37f794['x'])*_0x1778ed,'y':_0x37f794['y']+(_0x1d59ba['y']-_0x37f794['y'])*_0x1778ed};}function _0x14f908(_0x27956c,_0x45a315){const _0x55b7fe=_0x3f6646;return Math[_0x55b7fe(0x149)](_0x27956c['x']-_0x45a315['x'],_0x27956c['y']-_0x45a315['y']);}function _0x5993da(_0x481e86){const _0x4c6758=_0x3f6646;let _0xb80e54=Math[_0x4c6758(0x149)](_0x481e86['x'],_0x481e86['y']);return _0xb80e54<_0x297569?{'x':0x1,'y':0x0}:{'x':_0x481e86['x']/_0xb80e54,'y':_0x481e86['y']/_0xb80e54};}function _0x1315c5(_0x5c7018,_0x451c2a,_0x5bfd77=_0x14f908(_0x5c7018,_0x451c2a)){let _0x268af2=_0x5993da({'x':_0x5c7018['x']-_0x451c2a['x'],'y':_0x5c7018['y']-_0x451c2a['y']});return{'x':_0x5c7018['x']+_0x268af2['x']*_0x5bfd77,'y':_0x5c7018['y']+_0x268af2['y']*_0x5bfd77};}function _0x3a4758(_0x88d590,_0x139411){const _0x3c26d4=_0x3f6646;let {anchors:_0x16a0c9}=_0x88d590;return _0x16a0c9['length']<0x2||_0x139411<0x0?null:_0x139411<_0x16a0c9['length']-0x1?{'startIndex':_0x139411,'endIndex':_0x139411+0x1,'start':_0x16a0c9[_0x139411],'end':_0x16a0c9[_0x139411+0x1]}:_0x88d590[_0x3c26d4(0x162)]&&_0x139411===_0x16a0c9[_0x3c26d4(0x16c)]-0x1?{'startIndex':_0x16a0c9[_0x3c26d4(0x16c)]-0x1,'endIndex':0x0,'start':_0x16a0c9[_0x16a0c9[_0x3c26d4(0x16c)]-0x1],'end':_0x16a0c9[0x0]}:null;}function _0x53c423(_0x29a84c,_0xd556dd){const _0x2b8a0c=_0x3f6646;let _0x169675=_0x3a4758(_0x29a84c,_0xd556dd);return _0x169675?[_0x169675[_0x2b8a0c(0x13c)],_0x169675['start'][_0x2b8a0c(0x133)]??_0x169675['start'],_0x169675[_0x2b8a0c(0x152)]['in']??_0x169675[_0x2b8a0c(0x152)],_0x169675[_0x2b8a0c(0x152)]]:null;}function _0x2cc0c8(_0x524b29,_0x3b1add){const _0x4f933e=_0x3f6646;return _0x3b1add===_0x4f933e(0x15e)?_0x524b29:_0x524b29[_0x3b1add]??null;}function _0x26d0a2(_0x509df7,_0x59a43d,_0x14df01){const _0x52af44=_0x3f6646;return _0x14df01===_0x52af44(0x15e)||_0x509df7['closed']?!0x0:_0x14df01==='in'?_0x59a43d>0x0:_0x59a43d<_0x509df7[_0x52af44(0x175)][_0x52af44(0x16c)]-0x1;}function _0x285d94(_0x3f270f,_0x382a75){let [_0xb9e1b7,_0x47cff6,_0x3490d8,_0x5c8417]=_0x3f270f,_0x384e69=_0xdf29f3(_0xb9e1b7,_0x47cff6,_0x382a75),_0x31a07b=_0xdf29f3(_0x47cff6,_0x3490d8,_0x382a75),_0x2cb47e=_0xdf29f3(_0x3490d8,_0x5c8417,_0x382a75);return _0xdf29f3(_0xdf29f3(_0x384e69,_0x31a07b,_0x382a75),_0xdf29f3(_0x31a07b,_0x2cb47e,_0x382a75),_0x382a75);}function _0xfea6d9(_0x473212,_0x2266e7){let [_0x5a9a0e,_0x4fe548,_0x143bc6,_0x5a5990]=_0x473212,_0xe87f41=_0xdf29f3(_0x5a9a0e,_0x4fe548,_0x2266e7),_0x5ef80f=_0xdf29f3(_0x4fe548,_0x143bc6,_0x2266e7),_0x4b808a=_0xdf29f3(_0x143bc6,_0x5a5990,_0x2266e7),_0x2662f9=_0xdf29f3(_0xe87f41,_0x5ef80f,_0x2266e7),_0x31b104=_0xdf29f3(_0x5ef80f,_0x4b808a,_0x2266e7),_0x13b519=_0xdf29f3(_0x2662f9,_0x31b104,_0x2266e7);return{'left':[_0x5a9a0e,_0xe87f41,_0x2662f9,_0x13b519],'right':[_0x13b519,_0x31b104,_0x4b808a,_0x5a5990]};}function _0x569c6b(_0x1019c2,_0x52ee30,_0x51353f){const _0x37a769=_0x3f6646;let _0x15b876=_0x51353f['x']-_0x52ee30['x'],_0x355c3e=_0x51353f['y']-_0x52ee30['y'],_0x3bc75d=_0x15b876*_0x15b876+_0x355c3e*_0x355c3e,_0x18d630=_0x3bc75d<=_0x297569?0x0:Math[_0x37a769(0x178)](0x0,Math[_0x37a769(0x134)](0x1,((_0x1019c2['x']-_0x52ee30['x'])*_0x15b876+(_0x1019c2['y']-_0x52ee30['y'])*_0x355c3e)/_0x3bc75d)),_0x4c5afd={'x':_0x52ee30['x']+_0x15b876*_0x18d630,'y':_0x52ee30['y']+_0x355c3e*_0x18d630};return{'point':_0x4c5afd,'ratio':_0x18d630,'distance':_0x14f908(_0x1019c2,_0x4c5afd)};}function _0x4be094(_0x13fb95,_0x97bcc2,_0x27a674){const _0x41e3fb=_0x3f6646;return _0x569c6b(_0x13fb95,_0x97bcc2,_0x27a674)[_0x41e3fb(0x1a3)]**0x2;}function _0x22af89(_0x5b15b1,_0x458df2){const _0x49e612=_0x3f6646;if(_0x5b15b1[_0x49e612(0x16c)]<=0x2)return _0x5b15b1[_0x49e612(0x1a6)](_0x1c0be7);let _0x23db87=0x0,_0x111772=0x0,_0x474029=_0x5b15b1[0x0],_0x1d3b87=_0x5b15b1[_0x5b15b1['length']-0x1],_0x37c865=_0x458df2*_0x458df2;for(let _0x9c7a9=0x1;_0x9c7a9<_0x5b15b1[_0x49e612(0x16c)]-0x1;_0x9c7a9++){let _0x17c091=_0x4be094(_0x5b15b1[_0x9c7a9],_0x474029,_0x1d3b87);_0x17c091>_0x23db87&&(_0x23db87=_0x17c091,_0x111772=_0x9c7a9);}if(_0x23db87<=_0x37c865)return[_0x1c0be7(_0x474029),_0x1c0be7(_0x1d3b87)];let _0x5695d8=_0x22af89(_0x5b15b1[_0x49e612(0x126)](0x0,_0x111772+0x1),_0x458df2),_0x1e435f=_0x22af89(_0x5b15b1[_0x49e612(0x126)](_0x111772),_0x458df2);return[..._0x5695d8['slice'](0x0,-0x1),..._0x1e435f];}function _0x52f2ae(_0x5ded31,_0x55e653){let _0x927331=_0x5ded31[_0x55e653],_0x3cc30e=_0x5ded31[_0x55e653+0x1],_0x49fa77=_0x5ded31[_0x55e653-0x1]??_0x927331;return{'x':_0x927331['x']+(_0x3cc30e['x']-_0x49fa77['x'])/0x6,'y':_0x927331['y']+(_0x3cc30e['y']-_0x49fa77['y'])/0x6};}function _0x5e6a38(_0x3f614a,_0x420bd6){let _0x40925e=_0x3f614a[_0x420bd6],_0x23ae97=_0x3f614a[_0x420bd6-0x1],_0x463f43=_0x3f614a[_0x420bd6+0x1]??_0x40925e;return{'x':_0x40925e['x']-(_0x463f43['x']-_0x23ae97['x'])/0x6,'y':_0x40925e['y']-(_0x463f43['y']-_0x23ae97['y'])/0x6};}function _0x26028d(_0x3a877b,_0x42697c){const _0x11a179=_0x3f6646;let _0x171084=_0x3a877b[_0x11a179(0x175)][_0x42697c],_0x2d5031=_0x3a877b[_0x11a179(0x175)][_0x42697c-0x1]??(_0x3a877b[_0x11a179(0x162)]?_0x3a877b[_0x11a179(0x175)][_0x3a877b['anchors'][_0x11a179(0x16c)]-0x1]:null),_0x505671=_0x3a877b[_0x11a179(0x175)][_0x42697c+0x1]??(_0x3a877b[_0x11a179(0x162)]?_0x3a877b['anchors'][0x0]:null),_0x3ad3f7=_0x2d5031&&_0x505671?_0x5993da({'x':_0x505671['x']-_0x2d5031['x'],'y':_0x505671['y']-_0x2d5031['y']}):_0x505671?_0x5993da({'x':_0x505671['x']-_0x171084['x'],'y':_0x505671['y']-_0x171084['y']}):_0x2d5031?_0x5993da({'x':_0x171084['x']-_0x2d5031['x'],'y':_0x171084['y']-_0x2d5031['y']}):{'x':0x1,'y':0x0},_0x258b5c=_0x2d5031&&_0x505671?Math[_0x11a179(0x178)](0x32,_0x14f908(_0x2d5031,_0x505671)/0x4):0x32;return{'in':{'x':_0x171084['x']-_0x3ad3f7['x']*_0x258b5c,'y':_0x171084['y']-_0x3ad3f7['y']*_0x258b5c},'out':{'x':_0x171084['x']+_0x3ad3f7['x']*_0x258b5c,'y':_0x171084['y']+_0x3ad3f7['y']*_0x258b5c}};}function _0x7aecda(_0x411c4e,_0x5639b5){const _0x23514f=_0x3f6646;let _0x2a01c9=_0x411c4e[_0x5639b5],_0xf1e7d7=_0x5639b5==='in'?_0x23514f(0x133):'in',_0x7a02d2=_0x411c4e[_0xf1e7d7];_0x2a01c9&&(_0x411c4e[_0x23514f(0x14a)]==='symmetric'?_0x411c4e[_0xf1e7d7]=_0x1315c5(_0x411c4e,_0x2a01c9):_0x411c4e[_0x23514f(0x14a)]===_0x23514f(0x145)&&(_0x411c4e[_0xf1e7d7]=_0x1315c5(_0x411c4e,_0x2a01c9,_0x7a02d2?_0x14f908(_0x411c4e,_0x7a02d2):_0x14f908(_0x411c4e,_0x2a01c9))));}function _0x3d185e(_0x2f9591,_0x13981d){const _0x51b9c7=_0x3f6646;let _0x5ae47d=_0x120c30(_0x2f9591);return!_0x13981d||_0x5ae47d[_0x51b9c7(0x162)]||_0x5ae47d['anchors'][_0x51b9c7(0x16c)]===0x0||_0x5ae47d[_0x51b9c7(0x175)]['push']({'id':'__ink-preview-anchor__','x':_0x13981d['x'],'y':_0x13981d['y'],'pointType':'corner'}),_0x5ae47d;}function _0x195dfc(_0x138426,_0x46b3f9={}){const _0x454ccf=_0x3f6646;let _0x4dbce7=Math['max'](0x0,_0x46b3f9[_0x454ccf(0x1a0)]??Math['max'](0x4,_0x138426[_0x454ccf(0x140)]*0.35)),_0x505c83=_0x46b3f9[_0x454ccf(0x12c)]??(_0x4772f9=>_0x454ccf(0x13e)+_0x4772f9),_0x3b1e45=_0x22af89(_0x138426[_0x454ccf(0x13b)],_0x4dbce7),_0x50968c=_0x3b1e45['map']((_0x490ed4,_0x11ccc3)=>({'id':_0x505c83(_0x11ccc3),'x':_0x490ed4['x'],'y':_0x490ed4['y'],'pointType':'free'}));for(let _0x150e02=0x0;_0x150e02<_0x50968c[_0x454ccf(0x16c)]-0x1;_0x150e02++)_0x50968c[_0x150e02]['out']=_0x52f2ae(_0x3b1e45,_0x150e02),_0x50968c[_0x150e02+0x1]['in']=_0x5e6a38(_0x3b1e45,_0x150e02+0x1);return{'kind':_0x454ccf(0x1a2),'closed':!0x1,'anchors':_0x50968c};}function _0x358924(_0x342dad,_0x572898,_0x58c3e2){const _0xdcc2d4=_0x3f6646;let _0x329be9=null,_0x3725b7=[_0xdcc2d4(0x15e),'in',_0xdcc2d4(0x133)];return _0x342dad[_0xdcc2d4(0x175)]['forEach']((_0x35abca,_0x4c540d)=>{const _0x8f057=_0xdcc2d4;_0x3725b7[_0x8f057(0x14b)](_0x2a22b7=>{const _0x276e71=_0x8f057;if(!_0x26d0a2(_0x342dad,_0x4c540d,_0x2a22b7))return;let _0x8c2f77=_0x2cc0c8(_0x35abca,_0x2a22b7);if(!_0x8c2f77)return;let _0x980f5b=_0x14f908(_0x572898,_0x8c2f77);_0x980f5b>_0x58c3e2||_0x329be9&&_0x980f5b>=_0x329be9[_0x276e71(0x1a3)]||(_0x329be9={'handle':{'kind':_0x2a22b7,'anchorId':_0x35abca['id']},'point':_0x1c0be7(_0x8c2f77),'distance':_0x980f5b});});}),_0x329be9;}function _0x190a81(_0xe453c1,_0x2cc384,_0x293438){const _0x18dc99=_0x3f6646;let _0x73435d=null,_0x269748=_0xe453c1[_0x18dc99(0x162)]?_0xe453c1[_0x18dc99(0x175)][_0x18dc99(0x16c)]:Math[_0x18dc99(0x178)](0x0,_0xe453c1[_0x18dc99(0x175)]['length']-0x1);for(let _0x15fe4e=0x0;_0x15fe4e<_0x269748;_0x15fe4e++){let _0x36c99d=_0x53c423(_0xe453c1,_0x15fe4e);if(!_0x36c99d)continue;let _0x26b465=_0x285d94(_0x36c99d,0x0);for(let _0x5e9e57=0x1;_0x5e9e57<=0x20;_0x5e9e57++){let _0xe414ac=_0x285d94(_0x36c99d,_0x5e9e57/0x20),_0x48a5a7=_0x569c6b(_0x2cc384,_0x26b465,_0xe414ac),_0x15a079=(_0x5e9e57-0x1+_0x48a5a7[_0x18dc99(0x14f)])/0x20;(!_0x73435d||_0x48a5a7[_0x18dc99(0x1a3)]<_0x73435d['distance'])&&(_0x73435d={'segmentIndex':_0x15fe4e,'t':_0x15a079,'point':_0x48a5a7[_0x18dc99(0x19c)],'distance':_0x48a5a7['distance']}),_0x26b465=_0xe414ac;}}return _0x73435d&&_0x73435d[_0x18dc99(0x1a3)]<=_0x293438?_0x73435d:null;}function _0x4ea821(_0x2bd739,_0x10750c,_0x226780){const _0x6eb24f=_0x3f6646;let _0x5176a1=_0x120c30(_0x2bd739),_0x47c003=_0x3a4758(_0x5176a1,_0x10750c[_0x6eb24f(0x15a)]),_0x47e215=_0x53c423(_0x5176a1,_0x10750c[_0x6eb24f(0x15a)]);if(!_0x47c003||!_0x47e215)return _0x5176a1;let _0xa2779d=_0xfea6d9(_0x47e215,Math['max'](0x0,Math['min'](0x1,_0x10750c['t']))),_0x3117f4={'id':_0x226780(),'x':_0xa2779d['left'][0x3]['x'],'y':_0xa2779d[_0x6eb24f(0x17e)][0x3]['y'],'in':_0x1c0be7(_0xa2779d[_0x6eb24f(0x17e)][0x2]),'out':_0x1c0be7(_0xa2779d[_0x6eb24f(0x13a)][0x1]),'pointType':_0x6eb24f(0x184)};return _0x5176a1[_0x6eb24f(0x175)][_0x47c003[_0x6eb24f(0x185)]][_0x6eb24f(0x133)]=_0x1c0be7(_0xa2779d['left'][0x1]),_0x5176a1[_0x6eb24f(0x175)][_0x47c003['endIndex']]['in']=_0x1c0be7(_0xa2779d[_0x6eb24f(0x13a)][0x2]),_0x5176a1[_0x6eb24f(0x175)][_0x6eb24f(0x14c)](_0x47c003[_0x6eb24f(0x185)]+0x1,0x0,_0x3117f4),_0x5176a1;}function _0x5b243d(_0x543070,_0x36c518){const _0x4811c2=_0x3f6646;let _0x12d8cf=_0x120c30(_0x543070);return _0x12d8cf[_0x4811c2(0x175)]=_0x12d8cf['anchors'][_0x4811c2(0x128)](_0x3e9b41=>_0x3e9b41['id']!==_0x36c518),_0x12d8cf[_0x4811c2(0x162)]&&_0x12d8cf[_0x4811c2(0x175)]['length']<0x3&&(_0x12d8cf[_0x4811c2(0x162)]=!0x1),_0x12d8cf;}function _0x3468a2(_0x5eceac,_0x57b7ec,_0x9a1845){const _0x310844=_0x3f6646;let _0x273949=_0x120c30(_0x5eceac),_0x6c293b=_0x273949['anchors'][_0x310844(0x172)](_0x96333=>_0x96333['id']===_0x57b7ec),_0x168913=_0x273949['anchors'][_0x6c293b];if(!_0x168913)return _0x273949;if(_0x168913[_0x310844(0x14a)]=_0x9a1845,_0x9a1845===_0x310844(0x16f))return delete _0x168913['in'],delete _0x168913[_0x310844(0x133)],_0x273949;let _0x46ee0a=_0x26028d(_0x273949,_0x6c293b);if(_0x168913['in']=_0x168913['in']?_0x1c0be7(_0x168913['in']):_0x46ee0a['in'],_0x168913[_0x310844(0x133)]=_0x168913[_0x310844(0x133)]?_0x1c0be7(_0x168913['out']):_0x46ee0a[_0x310844(0x133)],_0x9a1845===_0x310844(0x1a4)){let _0x1fc343=Math[_0x310844(0x178)](_0x14f908(_0x168913,_0x168913['in']),_0x14f908(_0x168913,_0x168913[_0x310844(0x133)]),0x32),_0x32d368=_0x5993da({'x':_0x168913[_0x310844(0x133)]['x']-_0x168913['x'],'y':_0x168913['out']['y']-_0x168913['y']});_0x168913['out']={'x':_0x168913['x']+_0x32d368['x']*_0x1fc343,'y':_0x168913['y']+_0x32d368['y']*_0x1fc343},_0x168913['in']={'x':_0x168913['x']-_0x32d368['x']*_0x1fc343,'y':_0x168913['y']-_0x32d368['y']*_0x1fc343};}else _0x9a1845===_0x310844(0x145)&&_0x7aecda(_0x168913,'out');return _0x273949;}function _0x460ab3(_0x3a34a7,_0x9299bc){const _0x821e87=_0x3f6646;let _0x27d51d=_0x3a34a7[_0x821e87(0x175)][_0x821e87(0x151)](_0x4f5c5b=>_0x4f5c5b['id']===_0x9299bc),_0x6727eb=(_0x27d51d==null?void 0x0:_0x27d51d['pointType'])??'corner';return _0x3468a2(_0x3a34a7,_0x9299bc,_0x6727eb===_0x821e87(0x16f)?'smooth':_0x6727eb===_0x821e87(0x145)?'symmetric':_0x6727eb===_0x821e87(0x1a4)?_0x821e87(0x184):_0x821e87(0x16f));}function _0x170bb0(_0x4b6b30,_0x501a61,_0x5095a8){const _0x572a95=_0x3f6646;let _0x2965c7=_0x120c30(_0x4b6b30),_0x3de846=_0x2965c7[_0x572a95(0x175)][_0x572a95(0x151)](_0x1e0e88=>_0x1e0e88['id']===_0x501a61[_0x572a95(0x12f)]);if(!_0x3de846)return _0x2965c7;if(_0x501a61[_0x572a95(0x173)]===_0x572a95(0x15e)){let _0x21dad5={'x':_0x5095a8['x']-_0x3de846['x'],'y':_0x5095a8['y']-_0x3de846['y']};return _0x3de846['x']=_0x5095a8['x'],_0x3de846['y']=_0x5095a8['y'],_0x3de846['in']&&={'x':_0x3de846['in']['x']+_0x21dad5['x'],'y':_0x3de846['in']['y']+_0x21dad5['y']},_0x3de846['out']&&={'x':_0x3de846['out']['x']+_0x21dad5['x'],'y':_0x3de846['out']['y']+_0x21dad5['y']},_0x2965c7;}return _0x3de846[_0x501a61[_0x572a95(0x173)]]=_0x1c0be7(_0x5095a8),_0x3de846[_0x572a95(0x14a)]===_0x572a95(0x16f)&&(_0x3de846[_0x572a95(0x14a)]=_0x572a95(0x184)),_0x7aecda(_0x3de846,_0x501a61[_0x572a95(0x173)]),_0x2965c7;}let _0xca6f4d=1e-9;function _0x572832(_0x53e82){const _0x394917=_0x3f6646;let _0x37d21a=Math[_0x394917(0x144)](_0x53e82*0x2710)/0x2710;return Object['is'](_0x37d21a,-0x0)?'0':String(_0x37d21a);}function _0x216a06(_0x367f10){return _0x572832(_0x367f10['x'])+'\x20'+_0x572832(_0x367f10['y']);}function _0x2d06a5(_0x52f333,_0x144f8c){return{'x':_0x52f333['x']-_0x144f8c['x'],'y':_0x52f333['y']-_0x144f8c['y']};}function _0x574985(_0x502a22,_0x58a517,_0x6895b2,_0x38e585,_0x14872e){let _0xaf7b29=0x1-_0x14872e;return{'x':_0xaf7b29*_0xaf7b29*_0xaf7b29*_0x502a22['x']+0x3*_0xaf7b29*_0xaf7b29*_0x14872e*_0x58a517['x']+0x3*_0xaf7b29*_0x14872e*_0x14872e*_0x6895b2['x']+_0x14872e*_0x14872e*_0x14872e*_0x38e585['x'],'y':_0xaf7b29*_0xaf7b29*_0xaf7b29*_0x502a22['y']+0x3*_0xaf7b29*_0xaf7b29*_0x14872e*_0x58a517['y']+0x3*_0xaf7b29*_0x14872e*_0x14872e*_0x6895b2['y']+_0x14872e*_0x14872e*_0x14872e*_0x38e585['y']};}function _0x4371ca(_0x233632,_0xd82609,_0x45ab99,_0x29d78b){const _0x2f4eec=_0x3f6646;let _0x489500=-_0x233632+0x3*_0xd82609-0x3*_0x45ab99+_0x29d78b,_0x27e67a=0x3*_0x233632-0x6*_0xd82609+0x3*_0x45ab99,_0x37d9ff=-0x3*_0x233632+0x3*_0xd82609,_0x4aaefb=[];if(Math['abs'](_0x489500)<_0xca6f4d){if(Math[_0x2f4eec(0x15f)](_0x27e67a)<_0xca6f4d)return _0x4aaefb;let _0xe9eb1c=-_0x37d9ff/(0x2*_0x27e67a);return _0xe9eb1c>0x0&&_0xe9eb1c<0x1&&_0x4aaefb[_0x2f4eec(0x14e)](_0xe9eb1c),_0x4aaefb;}let _0x177e76=_0x27e67a*_0x27e67a-0x3*_0x489500*_0x37d9ff;if(_0x177e76<0x0)return _0x4aaefb;let _0x301c10=Math['sqrt'](Math[_0x2f4eec(0x178)](0x0,_0x177e76)),_0x403e34=(-_0x27e67a+_0x301c10)/(0x3*_0x489500),_0x464b1d=(-_0x27e67a-_0x301c10)/(0x3*_0x489500);return _0x403e34>0x0&&_0x403e34<0x1&&_0x4aaefb[_0x2f4eec(0x14e)](_0x403e34),_0x464b1d>0x0&&_0x464b1d<0x1&&Math[_0x2f4eec(0x15f)](_0x464b1d-_0x403e34)>_0xca6f4d&&_0x4aaefb[_0x2f4eec(0x14e)](_0x464b1d),_0x4aaefb;}function _0x3d50b3(_0x50aa9a,_0x238df5,_0x5131af,_0x1cf3f2,_0x33eb4b){_0x50aa9a['push'](_0x238df5,_0x33eb4b),new Set([..._0x4371ca(_0x238df5['x'],_0x5131af['x'],_0x1cf3f2['x'],_0x33eb4b['x']),..._0x4371ca(_0x238df5['y'],_0x5131af['y'],_0x1cf3f2['y'],_0x33eb4b['y'])])['forEach'](_0x2b557e=>{const _0x5e61f7=_0x2710;_0x50aa9a[_0x5e61f7(0x14e)](_0x574985(_0x238df5,_0x5131af,_0x1cf3f2,_0x33eb4b,_0x2b557e));});}function _0x68b172(_0x121b73){const _0x49a029=_0x3f6646;let _0x40d33f=_0x121b73['anchors'];if(_0x40d33f[_0x49a029(0x16c)]<=0x1)return _0x40d33f;let _0x1ca37d=[];for(let _0x1cdd02=0x1;_0x1cdd02<_0x40d33f[_0x49a029(0x16c)];_0x1cdd02++){let _0x27d08c=_0x40d33f[_0x1cdd02-0x1],_0x103d0c=_0x40d33f[_0x1cdd02];_0x3d50b3(_0x1ca37d,_0x27d08c,_0x27d08c[_0x49a029(0x133)]??_0x27d08c,_0x103d0c['in']??_0x103d0c,_0x103d0c);}if(_0x121b73[_0x49a029(0x162)]&&_0x40d33f[_0x49a029(0x16c)]>0x1){let _0x2b8b46=_0x40d33f[_0x40d33f[_0x49a029(0x16c)]-0x1],_0x23b0c6=_0x40d33f[0x0];_0x3d50b3(_0x1ca37d,_0x2b8b46,_0x2b8b46[_0x49a029(0x133)]??_0x2b8b46,_0x23b0c6['in']??_0x23b0c6,_0x23b0c6);}return _0x1ca37d;}function _0x699f5d(_0x2d226d){const _0x185b77=_0x3f6646;let _0x1c9006=_0x2d226d[_0x185b77(0x13b)];if(_0x1c9006[_0x185b77(0x16c)]<=0x1)return _0x1c9006;let _0x5b23b6=[];for(let _0x4ab759=0x0;_0x4ab759<_0x1c9006[_0x185b77(0x16c)]-0x1;_0x4ab759++){let _0x3c3814=_0x1c9006[_0x4ab759],_0x1fa2a8=_0x1c9006[_0x4ab759+0x1],_0x5c7b4b=_0x1c9006[_0x4ab759-0x1]??_0x3c3814,_0x5e5223=_0x1c9006[_0x4ab759+0x2]??_0x1fa2a8;_0x3d50b3(_0x5b23b6,_0x3c3814,{'x':_0x3c3814['x']+(_0x1fa2a8['x']-_0x5c7b4b['x'])/0x6,'y':_0x3c3814['y']+(_0x1fa2a8['y']-_0x5c7b4b['y'])/0x6},{'x':_0x1fa2a8['x']-(_0x5e5223['x']-_0x3c3814['x'])/0x6,'y':_0x1fa2a8['y']-(_0x5e5223['y']-_0x3c3814['y'])/0x6},_0x1fa2a8);}return _0x5b23b6;}function _0x58097a(_0x4a3747){const _0x493a26=_0x3f6646;return _0x4a3747[_0x493a26(0x173)]===_0x493a26(0x1a2)?_0x68b172(_0x4a3747):_0x699f5d(_0x4a3747);}function _0x350dce(_0x3e3489){const _0x91a77b=_0x3f6646;let _0x55ac3c=Math[_0x91a77b(0x144)](_0x3e3489*0x2710)/0x2710;return Object['is'](_0x55ac3c,-0x0)?0x0:_0x55ac3c;}function _0x4f0b5c(_0x5dcfc3){const _0x216771=_0x3f6646;let _0x4545c0=_0x58097a(_0x5dcfc3);if(_0x4545c0[_0x216771(0x16c)]===0x0)return{'left':0x0,'top':0x0,'width':0x1,'height':0x1};let _0x25f40a=Math[_0x216771(0x134)](..._0x4545c0[_0x216771(0x1a6)](_0x267973=>_0x267973['x'])),_0x388b65=Math[_0x216771(0x134)](..._0x4545c0[_0x216771(0x1a6)](_0x22a148=>_0x22a148['y'])),_0x45f2c3=Math[_0x216771(0x178)](..._0x4545c0[_0x216771(0x1a6)](_0x86e770=>_0x86e770['x'])),_0x3663e9=Math[_0x216771(0x178)](..._0x4545c0['map'](_0x375bdb=>_0x375bdb['y']));return{'left':_0x350dce(_0x25f40a),'top':_0x350dce(_0x388b65),'width':_0x350dce(Math['max'](0x1,_0x45f2c3-_0x25f40a)),'height':_0x350dce(Math[_0x216771(0x178)](0x1,_0x3663e9-_0x388b65))};}function _0x597869(_0xf9c563,_0x1f63a0){const _0x510d3e=_0x3f6646;let _0x3fa3aa=_0xf9c563[_0x510d3e(0x175)];if(_0x3fa3aa['length']===0x0)return'';let _0x8c5734=['M\x20'+_0x216a06(_0x2d06a5(_0x3fa3aa[0x0],_0x1f63a0))];for(let _0x48ae04=0x1;_0x48ae04<_0x3fa3aa[_0x510d3e(0x16c)];_0x48ae04++){let _0x265a37=_0x3fa3aa[_0x48ae04-0x1],_0x212ccd=_0x3fa3aa[_0x48ae04],_0x4e3c7d=_0x265a37[_0x510d3e(0x133)]??_0x265a37,_0x26c5d8=_0x212ccd['in']??_0x212ccd;_0x8c5734[_0x510d3e(0x14e)]('C\x20'+_0x216a06(_0x2d06a5(_0x4e3c7d,_0x1f63a0))+'\x20'+_0x216a06(_0x2d06a5(_0x26c5d8,_0x1f63a0))+'\x20'+_0x216a06(_0x2d06a5(_0x212ccd,_0x1f63a0)));}if(_0xf9c563[_0x510d3e(0x162)]&&_0x3fa3aa[_0x510d3e(0x16c)]>0x1){let _0x458831=_0x3fa3aa[_0x3fa3aa[_0x510d3e(0x16c)]-0x1],_0x501523=_0x3fa3aa[0x0],_0x4c8944=_0x458831[_0x510d3e(0x133)]??_0x458831,_0x27ce34=_0x501523['in']??_0x501523;_0x8c5734[_0x510d3e(0x14e)]('C\x20'+_0x216a06(_0x2d06a5(_0x4c8944,_0x1f63a0))+'\x20'+_0x216a06(_0x2d06a5(_0x27ce34,_0x1f63a0))+'\x20'+_0x216a06(_0x2d06a5(_0x501523,_0x1f63a0))),_0x8c5734[_0x510d3e(0x14e)]('Z');}return _0x8c5734[_0x510d3e(0x147)]('\x20');}function _0x7e8dc4(_0x1898f8,_0x1e9d38){const _0x1f083c=_0x3f6646;let _0x4fd87a=_0x1898f8[_0x1f083c(0x13b)][_0x1f083c(0x1a6)](_0x53799c=>_0x2d06a5(_0x53799c,_0x1e9d38));if(_0x4fd87a[_0x1f083c(0x16c)]===0x0)return'';if(_0x4fd87a[_0x1f083c(0x16c)]===0x1)return'M\x20'+_0x216a06(_0x4fd87a[0x0]);let _0x2e8ff2=['M\x20'+_0x216a06(_0x4fd87a[0x0])];for(let _0x16af56=0x0;_0x16af56<_0x4fd87a[_0x1f083c(0x16c)]-0x1;_0x16af56++){let _0xaaccb5=_0x4fd87a[_0x16af56],_0x2dc47a=_0x4fd87a[_0x16af56+0x1],_0x1cc506=_0x4fd87a[_0x16af56-0x1]??_0xaaccb5,_0x3a2f8b=_0x4fd87a[_0x16af56+0x2]??_0x2dc47a,_0xb13968={'x':_0xaaccb5['x']+(_0x2dc47a['x']-_0x1cc506['x'])/0x6,'y':_0xaaccb5['y']+(_0x2dc47a['y']-_0x1cc506['y'])/0x6},_0x5f19be={'x':_0x2dc47a['x']-(_0x3a2f8b['x']-_0xaaccb5['x'])/0x6,'y':_0x2dc47a['y']-(_0x3a2f8b['y']-_0xaaccb5['y'])/0x6};_0x2e8ff2[_0x1f083c(0x14e)]('C\x20'+_0x216a06(_0xb13968)+'\x20'+_0x216a06(_0x5f19be)+'\x20'+_0x216a06(_0x2dc47a));}return _0x2e8ff2['join']('\x20');}function _0x54ad0c(_0x1d4a0d,_0x36f10c){const _0x58f717=_0x3f6646;return _0x1d4a0d['kind']===_0x58f717(0x1a2)?_0x597869(_0x1d4a0d,_0x36f10c):_0x7e8dc4(_0x1d4a0d,_0x36f10c);}function _0x3ec460(_0x92b5d2,_0x19b293){const _0x47343a=_0x3f6646;return _0x19b293!=null&&_0x19b293[_0x47343a(0x196)]?_0x19b293['color']:_0x92b5d2[_0x47343a(0x173)]===_0x47343a(0x1a2)?_0x47343a(0x187):_0x92b5d2[_0x47343a(0x196)];}function _0x54c328(_0x513cd3,_0x62b677){const _0x43506d=_0x3f6646;return(_0x62b677==null?void 0x0:_0x62b677[_0x43506d(0x140)])===void 0x0?_0x513cd3[_0x43506d(0x173)]==='pen'?0x2:_0x513cd3[_0x43506d(0x140)]:_0x62b677[_0x43506d(0x140)];}function _0x134a76(_0x52970d,_0x2b3e15){const _0xac7b77=_0x3f6646;return(_0x2b3e15==null?void 0x0:_0x2b3e15[_0xac7b77(0x199)])===void 0x0?_0x52970d[_0xac7b77(0x173)]===_0xac7b77(0x1a2)?void 0x0:_0x52970d[_0xac7b77(0x199)]:_0x2b3e15[_0xac7b77(0x199)];}function _0x18d5c3(_0x96d429,_0x3d9c42){const _0x50fb58=_0x3f6646;let _0x1538cd=_0x4f0b5c(_0x96d429),_0x44c85d=_0x54ad0c(_0x96d429,{'x':_0x1538cd[_0x50fb58(0x17e)],'y':_0x1538cd['top']}),_0x5dd3e6=_0x96d429[_0x50fb58(0x173)]===_0x50fb58(0x1a2)&&_0x96d429[_0x50fb58(0x162)],_0x10da19=_0x3d9c42==null?void 0x0:_0x3d9c42[_0x50fb58(0x16d)];return{'shapeType':_0x131b78[_0x50fb58(0x154)]['Rect'],'isCustom':!0x0,'customGeometry':{'rect':{'l':0x0,'t':0x0,'r':'r','b':'b'},'pathLst':[{'w':_0x1538cd[_0x50fb58(0x140)],'h':_0x1538cd[_0x50fb58(0x130)],'fill':_0x5dd3e6?_0x50fb58(0x15c):'none','stroke':!0x0,'data':_0x44c85d,'dataArray':_0x3c7103(_0x96d429,{'x':_0x1538cd[_0x50fb58(0x17e)],'y':_0x1538cd[_0x50fb58(0x142)]})}]},'fill':_0x5dd3e6&&_0x10da19?{'color':_0x10da19,'fillType':_0x131b78[_0x50fb58(0x167)][_0x50fb58(0x132)]}:{'fillType':_0x131b78[_0x50fb58(0x167)][_0x50fb58(0x170)]},'stroke':{'color':_0x3ec460(_0x96d429,_0x3d9c42),'width':_0x54c328(_0x96d429,_0x3d9c42),'opacity':_0x134a76(_0x96d429,_0x3d9c42),'lineStrokeType':_0x131b78[_0x50fb58(0x191)][_0x50fb58(0x1a1)],'capType':_0x131b78['ShapeLineCapEnum'][_0x50fb58(0x13f)],'lineJoinType':_0x131b78[_0x50fb58(0x197)][_0x50fb58(0x13f)]}};}function _0x22c54e(_0x24c6f3,_0x63f119){return{'x':_0x24c6f3['x']-_0x63f119['x'],'y':_0x24c6f3['y']-_0x63f119['y']};}function _0x3c7103(_0x3d8f3a,_0x5ea16c){const _0x3ef408=_0x3f6646;if(_0x3d8f3a['kind']===_0x3ef408(0x1a2)){let _0xaec8e5=_0x3d8f3a[_0x3ef408(0x175)];if(_0xaec8e5['length']===0x0)return[];let _0x5892ad=_0x22c54e(_0xaec8e5[0x0],_0x5ea16c),_0x1597d3=[{'command':'M','points':[_0x5892ad['x'],_0x5892ad['y']]}];for(let _0x45f907=0x1;_0x45f907<_0xaec8e5[_0x3ef408(0x16c)];_0x45f907++){let _0xcf5c59=_0xaec8e5[_0x45f907-0x1],_0x1b67d1=_0xaec8e5[_0x45f907],_0x5bab76=_0x22c54e(_0xcf5c59[_0x3ef408(0x133)]??_0xcf5c59,_0x5ea16c),_0x3c97f9=_0x22c54e(_0x1b67d1['in']??_0x1b67d1,_0x5ea16c),_0x206d04=_0x22c54e(_0x1b67d1,_0x5ea16c);_0x1597d3['push']({'command':'C','points':[_0x5bab76['x'],_0x5bab76['y'],_0x3c97f9['x'],_0x3c97f9['y'],_0x206d04['x'],_0x206d04['y']]});}if(_0x3d8f3a['closed']&&_0xaec8e5[_0x3ef408(0x16c)]>0x1){let _0x254ca1=_0xaec8e5[_0xaec8e5[_0x3ef408(0x16c)]-0x1],_0x494ab1=_0xaec8e5[0x0],_0x4a4c61=_0x22c54e(_0x254ca1[_0x3ef408(0x133)]??_0x254ca1,_0x5ea16c),_0x44754b=_0x22c54e(_0x494ab1['in']??_0x494ab1,_0x5ea16c),_0x54290b=_0x22c54e(_0x494ab1,_0x5ea16c);_0x1597d3['push']({'command':'C','points':[_0x4a4c61['x'],_0x4a4c61['y'],_0x44754b['x'],_0x44754b['y'],_0x54290b['x'],_0x54290b['y']]}),_0x1597d3[_0x3ef408(0x14e)]({'command':'z','points':[]});}return _0x1597d3;}let _0x3c9f7f=_0x3d8f3a[_0x3ef408(0x13b)][_0x3ef408(0x1a6)](_0x2b2e1c=>_0x22c54e(_0x2b2e1c,_0x5ea16c));if(_0x3c9f7f[_0x3ef408(0x16c)]===0x0)return[];let _0x28c59f=[{'command':'M','points':[_0x3c9f7f[0x0]['x'],_0x3c9f7f[0x0]['y']]}];for(let _0x145282=0x0;_0x145282<_0x3c9f7f[_0x3ef408(0x16c)]-0x1;_0x145282++){let _0x1f8e6e=_0x3c9f7f[_0x145282],_0x23bc94=_0x3c9f7f[_0x145282+0x1],_0x25740b=_0x3c9f7f[_0x145282-0x1]??_0x1f8e6e,_0x44f7d7=_0x3c9f7f[_0x145282+0x2]??_0x23bc94,_0x5b29c3={'x':_0x1f8e6e['x']+(_0x23bc94['x']-_0x25740b['x'])/0x6,'y':_0x1f8e6e['y']+(_0x23bc94['y']-_0x25740b['y'])/0x6},_0x447d93={'x':_0x23bc94['x']-(_0x44f7d7['x']-_0x1f8e6e['x'])/0x6,'y':_0x23bc94['y']-(_0x44f7d7['y']-_0x1f8e6e['y'])/0x6};_0x28c59f[_0x3ef408(0x14e)]({'command':'C','points':[_0x5b29c3['x'],_0x5b29c3['y'],_0x447d93['x'],_0x447d93['y'],_0x23bc94['x'],_0x23bc94['y']]});}return _0x28c59f;}function _0x2b4c8b(_0xa53122){const _0x56a8e2=_0x3f6646;let {model:_0x2af798,sourceModel:_0x5928e3=_0x2af798,style:_0x5f51fa}=_0xa53122,_0x24c03f=_0xa53122[_0x56a8e2(0x177)]??_0x2af798[_0x56a8e2(0x173)],_0xe45a94=_0x4f0b5c(_0x2af798),_0x5ae38f=_0x2af798['kind']===_0x56a8e2(0x1a2)&&_0x24c03f!==_0x56a8e2(0x1a2)?_0x2af798:void 0x0;return{'transform':{..._0xe45a94,'rotation':0x0},'shapeData':_0x18d5c3(_0x2af798,_0x5f51fa),'ink':{'version':0x1,'tool':_0x24c03f,'sourceModel':_0x5928e3,..._0x5ae38f?{'editModel':_0x5ae38f}:{},'normalizedBounds':_0xe45a94}};}var _0x39f565=_0x3f6646(0x198),_0x46fc71=_0x3f6646(0x19a);function _0xeb65c5(_0x522726){'@babel/helpers - typeof';const _0xf78b59=_0x3f6646;return _0xeb65c5=typeof Symbol==_0xf78b59(0x135)&&typeof Symbol[_0xf78b59(0x19b)]==_0xf78b59(0x18f)?function(_0x29d58c){return typeof _0x29d58c;}:function(_0x4ba4f6){const _0x492c47=_0xf78b59;return _0x4ba4f6&&typeof Symbol==_0x492c47(0x135)&&_0x4ba4f6[_0x492c47(0x143)]===Symbol&&_0x4ba4f6!==Symbol[_0x492c47(0x160)]?_0x492c47(0x18f):typeof _0x4ba4f6;},_0xeb65c5(_0x522726);}function _0x27db08(_0x51ad54,_0x543de6){const _0x226ea8=_0x3f6646;if(_0xeb65c5(_0x51ad54)!=_0x226ea8(0x12e)||!_0x51ad54)return _0x51ad54;var _0x57917f;if(typeof Symbol<'u'&&(_0x57917f=_0x51ad54[Symbol[_0x226ea8(0x18d)]])!==void 0x0){var _0x3db7e2=_0x57917f[_0x226ea8(0x156)](_0x51ad54,_0x543de6||_0x226ea8(0x131));if(_0xeb65c5(_0x3db7e2)!='object')return _0x3db7e2;throw TypeError(_0x226ea8(0x13d));}return(_0x543de6==='string'?String:Number)(_0x51ad54);}function _0x4c4904(_0x1fa402){const _0x3dac69=_0x3f6646;var _0x3b94ed=_0x27db08(_0x1fa402,_0x3dac69(0x15d));return _0xeb65c5(_0x3b94ed)==_0x3dac69(0x18f)?_0x3b94ed:_0x3b94ed+'';}function _0x3d2a20(_0x191e16,_0x42818e,_0x4d7250){const _0x88565e=_0x3f6646;return(_0x42818e=_0x4c4904(_0x42818e))in _0x191e16?Object[_0x88565e(0x195)](_0x191e16,_0x42818e,{'value':_0x4d7250,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x191e16[_0x42818e]=_0x4d7250,_0x191e16;}let _0x41ed8f=(0x0,_0xc81ef9['createIdentifier'])(_0x3f6646(0x18e));var _0x391c4f=class{constructor(){const _0xe2f868=_0x3f6646;_0x3d2a20(this,_0xe2f868(0x12b),[]);}['registerAdapter'](_0x3e9822){const _0x17341a=_0x3f6646;return this[_0x17341a(0x12b)][_0x17341a(0x14e)](_0x3e9822),(0x0,_0xc81ef9[_0x17341a(0x150)])(()=>{const _0x3f8b13=_0x17341a;let _0x46b95d=this[_0x3f8b13(0x12b)][_0x3f8b13(0x17d)](_0x3e9822);_0x46b95d>=0x0&&this[_0x3f8b13(0x12b)]['splice'](_0x46b95d,0x1);});}[_0x3f6646(0x169)](_0xdbb589){const _0x438492=_0x3f6646;for(let _0x3c099c of this[_0x438492(0x12b)])if(_0x3c099c['beginInkMode'](_0xdbb589))return!0x0;return!0x1;}async[_0x3f6646(0x12d)](_0x44ce46){const _0xc9ec2d=_0x3f6646;for(let _0x37c9ae of this[_0xc9ec2d(0x12b)])if(_0x37c9ae[_0xc9ec2d(0x12d)]&&await _0x37c9ae['createCustomShape'](_0x44ce46))return!0x0;return!0x1;}};let _0x5e6e56={'id':'ink.operation.start','type':_0xc81ef9[_0x3f6646(0x188)][_0x3f6646(0x157)],'handler':(_0x281181,_0x56a8c5)=>_0x56a8c5?_0x281181[_0x3f6646(0x158)](_0x41ed8f)[_0x3f6646(0x169)](_0x56a8c5):!0x1},_0x383fb6={};function _0x139b7b(_0x447709,_0x2409e7){return function(_0x39157d,_0x5a7ef0){_0x2409e7(_0x39157d,_0x5a7ef0,_0x447709);};}function _0x1915c6(_0xacd43a,_0x2dab9b,_0x3c8148,_0x531845){const _0x4b977b=_0x3f6646;var _0x37c0ff=arguments[_0x4b977b(0x16c)],_0x2dcdb1=_0x37c0ff<0x3?_0x2dab9b:_0x531845===null?_0x531845=Object[_0x4b977b(0x17b)](_0x2dab9b,_0x3c8148):_0x531845,_0x170409;if(typeof Reflect==_0x4b977b(0x12e)&&typeof Reflect[_0x4b977b(0x148)]==_0x4b977b(0x135))_0x2dcdb1=Reflect[_0x4b977b(0x148)](_0xacd43a,_0x2dab9b,_0x3c8148,_0x531845);else{for(var _0x51fd0b=_0xacd43a[_0x4b977b(0x16c)]-0x1;_0x51fd0b>=0x0;_0x51fd0b--)(_0x170409=_0xacd43a[_0x51fd0b])&&(_0x2dcdb1=(_0x37c0ff<0x3?_0x170409(_0x2dcdb1):_0x37c0ff>0x3?_0x170409(_0x2dab9b,_0x3c8148,_0x2dcdb1):_0x170409(_0x2dab9b,_0x3c8148))||_0x2dcdb1);}return _0x37c0ff>0x3&&_0x2dcdb1&&Object[_0x4b977b(0x195)](_0x2dab9b,_0x3c8148,_0x2dcdb1),_0x2dcdb1;}let _0x445e1d=class extends _0xc81ef9[_0x3f6646(0x190)]{constructor(_0x4e9b25=_0x383fb6,_0x3fac39,_0x47c8f0,_0x13d6e4){const _0x528531=_0x3f6646;super(),this[_0x528531(0x18c)]=_0x4e9b25,this['_injector']=_0x3fac39,this[_0x528531(0x183)]=_0x47c8f0,this[_0x528531(0x155)]=_0x13d6e4;let {..._0x3b6686}=(0x0,_0xc81ef9[_0x528531(0x194)])({},_0x383fb6,this['_config']);this[_0x528531(0x155)][_0x528531(0x193)](_0x528531(0x136),_0x3b6686);}[_0x3f6646(0x163)](){const _0x4cd76b=_0x3f6646;[[_0x41ed8f,{'useClass':_0x391c4f}]]['forEach'](_0x23ca6f=>this[_0x4cd76b(0x127)][_0x4cd76b(0x166)](_0x23ca6f)),this['disposeWithMe'](this[_0x4cd76b(0x183)][_0x4cd76b(0x164)](_0x5e6e56));}};_0x3d2a20(_0x445e1d,_0x3f6646(0x141),'UNIVER_INK_PLUGIN'),_0x3d2a20(_0x445e1d,_0x3f6646(0x174),_0x39f565),_0x3d2a20(_0x445e1d,_0x3f6646(0x182),_0x46fc71),_0x3d2a20(_0x445e1d,_0x3f6646(0x186),_0xc81ef9['UniverInstanceType'][_0x3f6646(0x176)]),_0x445e1d=_0x1915c6([(0x0,_0xc81ef9[_0x3f6646(0x18b)])(_0x3f32bd['UniverLicensePlugin']),_0x139b7b(0x1,(0x0,_0xc81ef9[_0x3f6646(0x159)])(_0xc81ef9[_0x3f6646(0x18a)])),_0x139b7b(0x2,_0xc81ef9['ICommandService']),_0x139b7b(0x3,_0xc81ef9['IConfigService'])],_0x445e1d),_0x4b0a5c['IInkHostAdapterService']=_0x41ed8f,Object['defineProperty'](_0x4b0a5c,_0x3f6646(0x17c),{'enumerable':!0x0,'get':function(){return _0x445e1d;}}),_0x4b0a5c['buildInkCustomShapePayload']=_0x2b4c8b,_0x4b0a5c['convertBrushModelToPenModel']=_0x195dfc,_0x4b0a5c[_0x3f6646(0x189)]=_0x460ab3,_0x4b0a5c[_0x3f6646(0x17f)]=_0x5b243d,_0x4b0a5c['findClosestInkPenHandle']=_0x358924,_0x4b0a5c['findClosestInkPenSegment']=_0x190a81,_0x4b0a5c[_0x3f6646(0x146)]=_0x4f0b5c,_0x4b0a5c[_0x3f6646(0x1a7)]=_0x3d185e,_0x4b0a5c[_0x3f6646(0x19f)]=_0x4ea821,_0x4b0a5c[_0x3f6646(0x180)]=_0x26d0a2,_0x4b0a5c[_0x3f6646(0x138)]=_0x170bb0,_0x4b0a5c[_0x3f6646(0x12a)]=_0x3468a2;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/ink",
3
- "version": "1.5.0",
3
+ "version": "1.5.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>",
@@ -48,12 +48,12 @@
48
48
  "lib"
49
49
  ],
50
50
  "dependencies": {
51
- "@univerjs-pro/engine-shape": "1.5.0",
52
- "@univerjs-pro/license": "1.5.0",
53
- "@univerjs/core": "1.5.0"
51
+ "@univerjs-pro/engine-shape": "1.5.1",
52
+ "@univerjs-pro/license": "1.5.1",
53
+ "@univerjs/core": "1.5.1"
54
54
  },
55
55
  "devDependencies": {
56
- "@univerjs-infra/shared": "1.5.0",
56
+ "@univerjs-infra/shared": "1.5.1",
57
57
  "tsrs": "0.23.0-ts7.1.0-beta",
58
58
  "vitest": "^5.1.0"
59
59
  },