@univerjs-pro/docs-reference 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +6 -6
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x143a92=_0x45d1;(function(_0xff254e,_0x3f10da){const _0x305a0b=_0x45d1,_0x405534=_0xff254e();while(!![]){try{const _0x4a6f65=parseInt(_0x305a0b(0xbd))/0x1*(-parseInt(_0x305a0b(0xa4))/0x2)+parseInt(_0x305a0b(0xbf))/0x3+parseInt(_0x305a0b(0xcd))/0x4+-parseInt(_0x305a0b(0xbb))/0x5+-parseInt(_0x305a0b(0xd2))/0x6*(parseInt(_0x305a0b(0xc2))/0x7)+parseInt(_0x305a0b(0xb0))/0x8+parseInt(_0x305a0b(0xaf))/0x9;if(_0x4a6f65===_0x3f10da)break;else _0x405534['push'](_0x405534['shift']());}catch(_0x302bc7){_0x405534['push'](_0x405534['shift']());}}}(_0x5983,0x89dd2));let e=require('@univerjs-pro/docs-reference'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');function _0x45d1(_0x17eb33,_0x1c9b3a){_0x17eb33=_0x17eb33-0xa3;const _0x5983e6=_0x5983();let _0x45d179=_0x5983e6[_0x17eb33];return _0x45d179;}var r=class extends n['FDocument']{['insertFootnote'](_0x1ef8db,_0x2d3662={}){const _0xb46ad4=_0x45d1;let _0x50b73f=(0x0,t['generateRandomId'])(0xc);return this['_injector']['get'](t[_0xb46ad4(0xcb)])[_0xb46ad4(0xc3)](e['InsertDocumentFootnoteCommand']['id'],{..._0x2d3662,'unitId':this['id'],'offset':_0x1ef8db,'noteId':_0x50b73f})?_0x50b73f:null;}[_0x143a92(0xb2)](){const _0x33f10a=_0x143a92;var _0x19ba33;let _0x11f277=this[_0x33f10a(0xca)]()[_0x33f10a(0xb3)]();return(((_0x19ba33=_0x11f277[_0x33f10a(0xc6)])==null?void 0x0:_0x19ba33[_0x33f10a(0xc5)])??[])[_0x33f10a(0xb9)](_0x40b432=>_0x40b432[_0x33f10a(0xab)]===t[_0x33f10a(0xc4)][_0x33f10a(0xc7)])[_0x33f10a(0xa5)]((_0x454690,_0x1ba3ac)=>_0x454690[_0x33f10a(0xba)]-_0x1ba3ac[_0x33f10a(0xba)])[_0x33f10a(0xb5)](_0x77a092=>{const _0x48095a=_0x33f10a;var _0x42a7f7,_0x11192c;let _0x371be7=(_0x42a7f7=_0x77a092[_0x48095a(0xbe)])==null?void 0x0:_0x42a7f7[_0x48095a(0xb1)],_0x4bbaca=typeof _0x371be7==_0x48095a(0xc8)?(_0x11192c=_0x11f277[_0x48095a(0xa6)])==null?void 0x0:_0x11192c[_0x371be7]:void 0x0;return _0x4bbaca?[t[_0x48095a(0xd0)][_0x48095a(0xc9)](_0x4bbaca)]:[];});}[_0x143a92(0xa7)](_0x3e76c5){const _0x3bd6f3=_0x143a92;return this[_0x3bd6f3(0xce)][_0x3bd6f3(0xaa)](t['ICommandService'])[_0x3bd6f3(0xc3)](e[_0x3bd6f3(0xae)]['id'],{'unitId':this['id'],'noteId':_0x3e76c5});}[_0x143a92(0xcc)](_0xc7d9f5){const _0x13e817=_0x143a92;var _0x58c3c3,_0x3f506c;let _0xfc1082=this[_0x13e817(0xca)]()['getSnapshot'](),_0x12ec44=_0xc7d9f5==null?(_0x58c3c3=_0xfc1082['noteSettings'])==null?void 0x0:_0x58c3c3[_0x13e817(0xb6)]:(_0x3f506c=_0xfc1082[_0x13e817(0xc6)])==null||(_0x3f506c=_0x3f506c[_0x13e817(0xa3)])==null||(_0x3f506c=_0x3f506c['find'](_0x1f351c=>_0x1f351c['sectionId']===_0xc7d9f5))==null||(_0x3f506c=_0x3f506c[_0x13e817(0xa8)])==null?void 0x0:_0x3f506c[_0x13e817(0xb6)];return _0x12ec44==null?void 0x0:t[_0x13e817(0xd0)][_0x13e817(0xc9)](_0x12ec44);}[_0x143a92(0xd1)](_0x359e24,_0x1e44aa){const _0x4254fe=_0x143a92;return this[_0x4254fe(0xce)][_0x4254fe(0xaa)](t[_0x4254fe(0xcb)])[_0x4254fe(0xc3)](e[_0x4254fe(0xb8)]['id'],{'unitId':this['id'],'settings':_0x359e24,'sectionId':_0x1e44aa});}['insertEndnote'](_0x1ce596,_0x404bc1={}){const _0x132c4e=_0x143a92;let _0x56984c=(0x0,t[_0x132c4e(0xad)])(0xc);return this[_0x132c4e(0xce)]['get'](t[_0x132c4e(0xcb)])[_0x132c4e(0xc3)](e['InsertDocumentEndnoteCommand']['id'],{..._0x404bc1,'unitId':this['id'],'offset':_0x1ce596,'noteId':_0x56984c})?_0x56984c:null;}[_0x143a92(0xac)](){const _0x446908=_0x143a92;var _0x52aafd;let _0x16495b=this[_0x446908(0xca)]()['getSnapshot']();return(((_0x52aafd=_0x16495b[_0x446908(0xc6)])==null?void 0x0:_0x52aafd[_0x446908(0xc5)])??[])[_0x446908(0xb9)](_0x316761=>_0x316761[_0x446908(0xab)]===t[_0x446908(0xc4)][_0x446908(0xc0)])[_0x446908(0xa5)]((_0x38fefa,_0x2ee2c6)=>_0x38fefa['startIndex']-_0x2ee2c6[_0x446908(0xba)])['flatMap'](_0x15f2d5=>{const _0x22f435=_0x446908;var _0x5add90,_0x2f5871;let _0x43b1ca=(_0x5add90=_0x15f2d5['properties'])==null?void 0x0:_0x5add90[_0x22f435(0xb1)],_0x41edf1=typeof _0x43b1ca==_0x22f435(0xc8)?(_0x2f5871=_0x16495b[_0x22f435(0xa6)])==null?void 0x0:_0x2f5871[_0x43b1ca]:void 0x0;return _0x41edf1?[t[_0x22f435(0xd0)][_0x22f435(0xc9)](_0x41edf1)]:[];});}['deleteEndnote'](_0xfc8d9e){const _0x1a57d2=_0x143a92;return this[_0x1a57d2(0xce)][_0x1a57d2(0xaa)](t[_0x1a57d2(0xcb)])[_0x1a57d2(0xc3)](e['DeleteDocumentEndnoteCommand']['id'],{'unitId':this['id'],'noteId':_0xfc8d9e});}[_0x143a92(0xa9)](_0x24bfda){const _0x4701ce=_0x143a92;var _0x540617,_0x52b292;let _0x4427c4=this['getDocumentDataModel']()[_0x4701ce(0xb3)](),_0x5799b4=_0x24bfda==null?(_0x540617=_0x4427c4[_0x4701ce(0xcf)])==null?void 0x0:_0x540617['endnote']:(_0x52b292=_0x4427c4[_0x4701ce(0xc6)])==null||(_0x52b292=_0x52b292[_0x4701ce(0xa3)])==null||(_0x52b292=_0x52b292[_0x4701ce(0xb7)](_0x292f90=>_0x292f90[_0x4701ce(0xbc)]===_0x24bfda))==null||(_0x52b292=_0x52b292[_0x4701ce(0xa8)])==null?void 0x0:_0x52b292['endnote'];return _0x5799b4==null?void 0x0:t['Tools'][_0x4701ce(0xc9)](_0x5799b4);}['setEndnoteSettings'](_0x12e370,_0x1250a7){const _0x1ce639=_0x143a92;return this[_0x1ce639(0xce)][_0x1ce639(0xaa)](t[_0x1ce639(0xcb)])['syncExecuteCommand'](e[_0x1ce639(0xb4)]['id'],{'unitId':this['id'],'settings':_0x12e370,'sectionId':_0x1250a7});}};n[_0x143a92(0xc1)]['extend'](r);function _0x5983(){const _0xa78a0e=['5540015ELsiCi','sectionId','17cYzuFj','properties','556200brMNcm','ENDNOTE','FDocument','7666141pNFBAW','syncExecuteCommand','CustomRangeType','customRanges','body','FOOTNOTE','string','deepClone','getDocumentDataModel','ICommandService','getFootnoteSettings','3970272fnfyQV','_injector','noteSettings','Tools','setFootnoteSettings','6lukYse','sectionBreaks','28978Rhbawx','sort','notes','deleteFootnote','noteProperties','getEndnoteSettings','get','rangeType','getEndnotes','generateRandomId','DeleteDocumentFootnoteCommand','9995454yZsClj','5804760KLreyj','noteId','getFootnotes','getSnapshot','SetDocumentEndnoteSettingsCommand','flatMap','footnote','find','SetDocumentFootnoteSettingsCommand','filter','startIndex'];_0x5983=function(){return _0xa78a0e;};return _0x5983();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x551b(_0x1b1b21,_0x1b3d80){_0x1b1b21=_0x1b1b21-0x1bb;const _0x1174e2=_0x1174();let _0x551b45=_0x1174e2[_0x1b1b21];return _0x551b45;}const _0x4ae111=_0x551b;(function(_0x1151fa,_0x33e112){const _0x209c35=_0x551b,_0x44bb2d=_0x1151fa();while(!![]){try{const _0x4173a0=parseInt(_0x209c35(0x21c))/0x1*(parseInt(_0x209c35(0x1c9))/0x2)+-parseInt(_0x209c35(0x20d))/0x3+-parseInt(_0x209c35(0x1e9))/0x4+-parseInt(_0x209c35(0x1e2))/0x5*(parseInt(_0x209c35(0x23a))/0x6)+-parseInt(_0x209c35(0x1ca))/0x7+-parseInt(_0x209c35(0x224))/0x8+parseInt(_0x209c35(0x1e3))/0x9*(parseInt(_0x209c35(0x200))/0xa);if(_0x4173a0===_0x33e112)break;else _0x44bb2d['push'](_0x44bb2d['shift']());}catch(_0x40ff60){_0x44bb2d['push'](_0x44bb2d['shift']());}}}(_0x1174,0xb45cf),Object[_0x4ae111(0x22d)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x12db16,_0x4988d8,_0x45ab87){const _0x51bb04=_0x4ae111;if(_0x12db16[_0x51bb04(0x1ec)]!=null&&!(_0x4988d8===_0x51bb04(0x236)?[_0x51bb04(0x1cb),'beneathText']:[_0x51bb04(0x1fd),_0x51bb04(0x21f)])[_0x51bb04(0x20e)](_0x12db16[_0x51bb04(0x1ec)])||_0x12db16[_0x51bb04(0x1f0)]!=null&&!(_0x4988d8===_0x51bb04(0x236)?[_0x51bb04(0x1d4),'eachSect','eachPage']:[_0x51bb04(0x1d4),_0x51bb04(0x1e1)])['includes'](_0x12db16[_0x51bb04(0x1f0)])||_0x12db16[_0x51bb04(0x20a)]!=null&&(!Number[_0x51bb04(0x216)](_0x12db16[_0x51bb04(0x20a)])||_0x12db16[_0x51bb04(0x20a)]<0x1)||_0x51bb04(0x22b)in _0x12db16&&_0x12db16[_0x51bb04(0x22b)]!=null&&(_0x4988d8!==_0x51bb04(0x236)||!Number[_0x51bb04(0x216)](_0x12db16[_0x51bb04(0x22b)])||_0x12db16['columnCount']<0x0||_0x12db16[_0x51bb04(0x22b)]>0x4)||_0x12db16[_0x51bb04(0x239)]!=null&&(typeof _0x12db16[_0x51bb04(0x239)]!=_0x51bb04(0x1c8)||_0x12db16[_0x51bb04(0x239)][_0x51bb04(0x21b)]===0x0))return!0x1;for(let _0x47fba0 of[_0x12db16[_0x51bb04(0x222)],_0x12db16[_0x51bb04(0x1f9)],_0x12db16[_0x51bb04(0x1d5)]])if(_0x47fba0!=null&&(_0x45ab87!=null||(0x0,e['validateDocBodyStructure'])(_0x47fba0)[_0x51bb04(0x21b)]>0x0))return!0x1;return!0x0;}function i(_0x4c8495,_0x36ba74,_0x3097f9){const _0x1fc1ca=_0x4ae111;var _0x545b1d,_0xa1a545;if(_0x36ba74['settings']!=null&&!r(_0x36ba74['settings'],_0x3097f9,_0x36ba74[_0x1fc1ca(0x228)]))return!0x1;let _0xe1bec1=((_0x545b1d=_0x4c8495[_0x1fc1ca(0x1d9)])==null||(_0x545b1d=_0x545b1d[_0x1fc1ca(0x1ea)])==null?void 0x0:_0x545b1d['findIndex'](_0x485af3=>_0x485af3[_0x1fc1ca(0x228)]===_0x36ba74[_0x1fc1ca(0x228)]))??-0x1;if(_0x36ba74[_0x1fc1ca(0x228)]!=null&&_0xe1bec1<0x0)return!0x1;let _0x52148d=_0x36ba74[_0x1fc1ca(0x228)]==null?_0x4c8495[_0x1fc1ca(0x220)]:(_0xa1a545=_0x4c8495[_0x1fc1ca(0x1d9)])==null||(_0xa1a545=_0xa1a545[_0x1fc1ca(0x1ea)])==null?void 0x0:_0xa1a545[_0xe1bec1][_0x1fc1ca(0x1d3)],_0x117f3f=_0x36ba74['settings']==null?void 0x0:e[_0x1fc1ca(0x234)][_0x1fc1ca(0x213)](_0x36ba74[_0x1fc1ca(0x208)]),_0x261be7=_0x36ba74['sectionId']==null?['noteSettings']:['body','sectionBreaks',_0xe1bec1,_0x1fc1ca(0x1d3)],_0x2c94bd=e[_0x1fc1ca(0x206)][_0x1fc1ca(0x1ff)](),_0x1d8340=null;if(e[_0x1fc1ca(0x234)]['diffValue'](_0x52148d==null?void 0x0:_0x52148d[_0x3097f9],_0x117f3f)||(_0x1d8340=_0x52148d==null?_0x2c94bd['insertOp'](_0x261be7,{[_0x3097f9]:_0x117f3f}):_0x36ba74[_0x1fc1ca(0x228)]!=null&&_0x117f3f==null&&Object[_0x1fc1ca(0x1cf)](_0x52148d)[_0x1fc1ca(0x226)](_0xbb4490=>_0xbb4490===_0x3097f9)?_0x2c94bd[_0x1fc1ca(0x204)](_0x261be7,_0x52148d):_0x2c94bd['replaceOp']([..._0x261be7,_0x3097f9],_0x52148d[_0x3097f9],_0x117f3f)),_0x36ba74[_0x1fc1ca(0x1e6)]!=null){var _0x13b6cc;if(_0x3097f9!=='endnote'||_0x36ba74['sectionId']==null||typeof _0x36ba74[_0x1fc1ca(0x1e6)]!=_0x1fc1ca(0x1e4))return!0x1;let _0x162bc3=(_0x13b6cc=_0x4c8495['body'])==null||(_0x13b6cc=_0x13b6cc['sectionBreaks'])==null?void 0x0:_0x13b6cc[_0xe1bec1]['suppressEndnotes'];_0x162bc3!==_0x36ba74[_0x1fc1ca(0x1e6)]&&(_0x1d8340=e[_0x1fc1ca(0x206)][_0x1fc1ca(0x1f6)](_0x1d8340,_0x2c94bd[_0x1fc1ca(0x1de)]([_0x1fc1ca(0x1d9),'sectionBreaks',_0xe1bec1,_0x1fc1ca(0x1e6)],_0x162bc3,_0x36ba74[_0x1fc1ca(0x1e6)])));}return _0x1d8340;}function a(_0x4b4f92,_0x430d9f,_0x1cbb25){const _0x570497=_0x4ae111;if(!_0x430d9f)return!0x1;let _0x372da8=_0x4b4f92[_0x570497(0x1c3)](e[_0x570497(0x1eb)])[_0x570497(0x1c6)](_0x430d9f[_0x570497(0x1ed)],e[_0x570497(0x20c)]['UNIVER_DOC']),_0x21e07f=_0x372da8==null?void 0x0:_0x372da8[_0x570497(0x237)]();if(!_0x21e07f||_0x21e07f[_0x570497(0x1c2)][_0x570497(0x202)]!==e[_0x570497(0x229)][_0x570497(0x1f5)])return!0x1;let _0x55f5c2=i(_0x21e07f,_0x430d9f,_0x1cbb25);return _0x55f5c2===!0x1||e[_0x570497(0x206)][_0x570497(0x21d)](_0x55f5c2)?!0x1:!!_0x4b4f92[_0x570497(0x1c3)](e[_0x570497(0x1ce)])[_0x570497(0x215)](t[_0x570497(0x1d1)]['id'],{'unitId':_0x430d9f[_0x570497(0x1ed)],'segmentId':'','historyAction':'set-'+_0x1cbb25+_0x570497(0x1c4),'actions':_0x55f5c2,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x4ae111(0x210),'type':e[_0x4ae111(0x207)]['COMMAND'],'handler':(_0x4b3261,_0x1f71f5)=>a(_0x4b3261,_0x1f71f5,_0x4ae111(0x236))},s={'id':_0x4ae111(0x203),'type':e['CommandType'][_0x4ae111(0x1f4)],'handler':(_0x365624,_0x1a52b2)=>a(_0x365624,_0x1a52b2,'endnote')};function c(_0x4bad92,_0x50571c){const _0x4fddf4=_0x4ae111;return(_0x4bad92==null?void 0x0:_0x4bad92[_0x4fddf4(0x1c2)][_0x4fddf4(0x202)])===e[_0x4fddf4(0x229)][_0x4fddf4(0x1f5)]&&!!_0x4bad92[_0x4fddf4(0x1d9)]&&Number[_0x4fddf4(0x216)](_0x50571c)&&_0x50571c>=0x0&&_0x50571c<_0x4bad92[_0x4fddf4(0x1d9)]['dataStream'][_0x4fddf4(0x21b)]-0x1;}function l(_0x4052aa,_0x802839,_0x5f121a){const _0x5d4e40=_0x4ae111;var _0x294b67,_0x3f9e20;if(_0x802839[_0x5d4e40(0x208)]===void 0x0&&_0x802839[_0x5d4e40(0x1e6)]===void 0x0)return null;let _0x1b0e4c=_0x802839['sectionId']==null?(_0x294b67=_0x4052aa[_0x5d4e40(0x220)])==null?void 0x0:_0x294b67[_0x5f121a]:(_0x3f9e20=_0x4052aa[_0x5d4e40(0x1d9)])==null||(_0x3f9e20=_0x3f9e20[_0x5d4e40(0x1ea)])==null||(_0x3f9e20=_0x3f9e20[_0x5d4e40(0x1dc)](_0x479830=>_0x479830[_0x5d4e40(0x228)]===_0x802839[_0x5d4e40(0x228)]))==null||(_0x3f9e20=_0x3f9e20[_0x5d4e40(0x1d3)])==null?void 0x0:_0x3f9e20[_0x5f121a];return i(_0x4052aa,{'settings':_0x802839[_0x5d4e40(0x208)]===void 0x0?_0x1b0e4c??null:_0x802839[_0x5d4e40(0x208)],'sectionId':_0x802839[_0x5d4e40(0x228)],'suppressEndnotes':_0x802839[_0x5d4e40(0x1e6)]},_0x5f121a);}function u(_0x50638f,_0x1d0bc9,_0x472a81){const _0x18be67=_0x4ae111;var _0x2fb0f4,_0x1e32a2,_0x30cea1;if(!_0x1d0bc9||_0x1d0bc9[_0x18be67(0x223)])return!0x1;let _0x2aa666=_0x50638f[_0x18be67(0x1c3)](e[_0x18be67(0x1eb)])[_0x18be67(0x1c6)](_0x1d0bc9[_0x18be67(0x1ed)],e['UniverInstanceType'][_0x18be67(0x1d2)]),_0x3c3707=_0x2aa666==null?void 0x0:_0x2aa666[_0x18be67(0x237)](),{offset:_0x423286}=_0x1d0bc9;if(!c(_0x3c3707,_0x423286))return!0x1;let _0x1a6559=l(_0x3c3707,_0x1d0bc9,_0x472a81);if(_0x1a6559===!0x1)return!0x1;let _0x79ff79=_0x1d0bc9['noteId']??(0x0,e[_0x18be67(0x230)])(0xc);if((_0x2fb0f4=_0x3c3707['notes'])!=null&&_0x2fb0f4[_0x79ff79]||(_0x1e32a2=_0x3c3707[_0x18be67(0x1fc)])!=null&&_0x1e32a2[_0x79ff79]||(_0x30cea1=_0x3c3707['footers'])!=null&&_0x30cea1[_0x79ff79])return!0x1;let _0xd8f5b1=e[_0x18be67(0x234)]['deepClone']({'type':_0x472a81,'noteId':_0x79ff79,'body':_0x1d0bc9[_0x18be67(0x1d9)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e[_0x18be67(0x20f)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e['createSectionId'])(new Set()),'startIndex':0x1}]},'customMark':_0x1d0bc9[_0x18be67(0x227)],'referenceTextStyle':_0x1d0bc9[_0x18be67(0x1ee)],'tableSource':_0x1d0bc9[_0x18be67(0x1d8)],'drawings':_0x1d0bc9[_0x18be67(0x1f8)],'drawingsOrder':_0x1d0bc9[_0x18be67(0x233)],'lists':_0x1d0bc9[_0x18be67(0x217)]});if((0x0,e[_0x18be67(0x221)])({'notes':{[_0x79ff79]:_0xd8f5b1}})[_0x18be67(0x21b)]>0x0)return!0x1;let _0x5a619c=new e[(_0x18be67(0x201))]();_0x423286>0x0&&_0x5a619c['retain'](_0x423286),_0x5a619c[_0x18be67(0x1dd)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x472a81===_0x18be67(0x236)?e[_0x18be67(0x22a)]['FOOTNOTE']:e[_0x18be67(0x22a)][_0x18be67(0x211)],'rangeId':(0x0,e[_0x18be67(0x230)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x79ff79}}]});let _0x2aa1c4=e['JSONX'][_0x18be67(0x1ff)](),_0x2682c3=_0x3c3707[_0x18be67(0x1e5)]==null?_0x2aa1c4[_0x18be67(0x205)]([_0x18be67(0x1e5)],{[_0x79ff79]:_0xd8f5b1}):_0x2aa1c4['insertOp']([_0x18be67(0x1e5),_0x79ff79],_0xd8f5b1);return!!_0x50638f['get'](e[_0x18be67(0x1ce)])[_0x18be67(0x215)](t[_0x18be67(0x1d1)]['id'],{'unitId':_0x1d0bc9['unitId'],'segmentId':'','historyAction':_0x18be67(0x1e0)+_0x472a81,'actions':e[_0x18be67(0x206)][_0x18be67(0x1f6)](e[_0x18be67(0x206)][_0x18be67(0x1f6)](_0x1a6559,_0x2682c3),_0x2aa1c4[_0x18be67(0x1df)](_0x5a619c[_0x18be67(0x1bf)](),[_0x18be67(0x1d9)])),'textRanges':[{'segmentId':_0x79ff79,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x2c647a,_0x48de50,_0x3d6643){const _0x3ab07e=_0x4ae111;var _0x3c0504,_0x1acbfc;if(!_0x48de50)return!0x1;let _0x111d12=_0x2c647a[_0x3ab07e(0x1c3)](e['IUniverInstanceService'])[_0x3ab07e(0x1c6)](_0x48de50[_0x3ab07e(0x1ed)],e[_0x3ab07e(0x20c)][_0x3ab07e(0x1d2)]),_0xaff4a4=_0x111d12==null?void 0x0:_0x111d12['getSnapshot'](),_0x418432=_0xaff4a4==null||(_0x3c0504=_0xaff4a4['notes'])==null?void 0x0:_0x3c0504[_0x48de50[_0x3ab07e(0x231)]],_0x2acc52=_0xaff4a4==null||(_0x1acbfc=_0xaff4a4[_0x3ab07e(0x1d9)])==null||(_0x1acbfc=_0x1acbfc[_0x3ab07e(0x214)])==null?void 0x0:_0x1acbfc[_0x3ab07e(0x1dc)](_0x1c94d2=>{const _0x2820e1=_0x3ab07e;var _0x1a83ed;return(_0x1c94d2[_0x2820e1(0x1cc)]===e[_0x2820e1(0x22a)][_0x2820e1(0x232)]||_0x1c94d2[_0x2820e1(0x1cc)]===e[_0x2820e1(0x22a)][_0x2820e1(0x211)])&&((_0x1a83ed=_0x1c94d2[_0x2820e1(0x1c1)])==null?void 0x0:_0x1a83ed[_0x2820e1(0x231)])===_0x48de50[_0x2820e1(0x231)];});if(!_0xaff4a4||_0xaff4a4[_0x3ab07e(0x1c2)]['documentFlavor']!==e[_0x3ab07e(0x229)][_0x3ab07e(0x1f5)]||!_0x418432||_0x418432[_0x3ab07e(0x1e7)]!==_0x3d6643||!_0x2acc52)return!0x1;let _0x328609=new e[(_0x3ab07e(0x201))]();_0x2acc52[_0x3ab07e(0x1fa)]>0x0&&_0x328609['retain'](_0x2acc52[_0x3ab07e(0x1fa)]),_0x328609[_0x3ab07e(0x1bb)](0x1);let _0x991975=e[_0x3ab07e(0x206)][_0x3ab07e(0x1ff)]();return!!_0x2c647a[_0x3ab07e(0x1c3)](e['ICommandService'])['syncExecuteCommand'](t[_0x3ab07e(0x1d1)]['id'],{'unitId':_0x48de50[_0x3ab07e(0x1ed)],'segmentId':'','historyAction':'delete-'+_0x3d6643,'actions':e['JSONX'][_0x3ab07e(0x1f6)](_0x991975[_0x3ab07e(0x1df)](_0x328609[_0x3ab07e(0x1bf)](),[_0x3ab07e(0x1d9)]),_0x991975[_0x3ab07e(0x204)]([_0x3ab07e(0x1e5),_0x48de50[_0x3ab07e(0x231)]],_0x418432)),'textRanges':[{'startOffset':_0x2acc52['startIndex'],'endOffset':_0x2acc52[_0x3ab07e(0x1fa)],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':'doc.command.insert-footnote','type':e[_0x4ae111(0x207)]['COMMAND'],'handler':(_0x5e9257,_0x3f4f89)=>u(_0x5e9257,_0x3f4f89,_0x4ae111(0x236))},p={'id':'doc.command.delete-footnote','type':e['CommandType'][_0x4ae111(0x1f4)],'handler':(_0x27f5a6,_0x31e0c7)=>d(_0x27f5a6,_0x31e0c7,_0x4ae111(0x236))},m={'id':_0x4ae111(0x21e),'type':e[_0x4ae111(0x207)][_0x4ae111(0x1f4)],'handler':(_0x33c403,_0x119bc3)=>u(_0x33c403,_0x119bc3,_0x4ae111(0x1f2))},h={'id':_0x4ae111(0x23b),'type':e[_0x4ae111(0x207)]['COMMAND'],'handler':(_0x22ecc8,_0x11744f)=>d(_0x22ecc8,_0x11744f,_0x4ae111(0x1f2))};var g='@univerjs-pro/docs-reference',_='1.1.0';const v={};function y(_0x3169b3,_0x5831bf){return function(_0x27c66b,_0x52759b){_0x5831bf(_0x27c66b,_0x52759b,_0x3169b3);};}function b(_0x1b1415,_0x483dab,_0x344012,_0x4f255c){const _0x4722fe=_0x4ae111;var _0x1ea85e=arguments['length'],_0x41f5c3=_0x1ea85e<0x3?_0x483dab:_0x4f255c===null?_0x4f255c=Object['getOwnPropertyDescriptor'](_0x483dab,_0x344012):_0x4f255c,_0x33ffb5;if(typeof Reflect==_0x4722fe(0x1ef)&&typeof Reflect[_0x4722fe(0x1da)]==_0x4722fe(0x225))_0x41f5c3=Reflect['decorate'](_0x1b1415,_0x483dab,_0x344012,_0x4f255c);else{for(var _0x59427e=_0x1b1415['length']-0x1;_0x59427e>=0x0;_0x59427e--)(_0x33ffb5=_0x1b1415[_0x59427e])&&(_0x41f5c3=(_0x1ea85e<0x3?_0x33ffb5(_0x41f5c3):_0x1ea85e>0x3?_0x33ffb5(_0x483dab,_0x344012,_0x41f5c3):_0x33ffb5(_0x483dab,_0x344012))||_0x41f5c3);}return _0x1ea85e>0x3&&_0x41f5c3&&Object['defineProperty'](_0x483dab,_0x344012,_0x41f5c3),_0x41f5c3;}function _0x1174(){const _0x56c1a5=['pageBottom','rangeType','call','ICommandService','keys','DeleteDocumentEndnoteCommand','RichTextEditingMutation','UNIVER_DOC','noteProperties','continuous','continuationNotice','constructor','IConfigService','tableSource','body','decorate','symbol','find','insert','replaceOp','editOp','insert-','eachSect','23710bXGLIH','5922pHeCXc','boolean','notes','suppressEndnotes','type','_configService','5108044yGcYyR','sectionBreaks','IUniverInstanceService','position','unitId','referenceTextStyle','object','restart','InsertDocumentFootnoteCommand','endnote','Inject','COMMAND','TRADITIONAL','compose','toPrimitive','drawings','continuationSeparator','startIndex','DeleteDocumentFootnoteCommand','headers','docEnd','onStarting','getInstance','31150CJQrZs','TextX','documentFlavor','doc.command.set-endnote-settings','removeOp','insertOp','JSONX','CommandType','settings','setConfig','startNumber','_commandService','UniverInstanceType','992517nrIhyO','includes','createParagraphId','doc.command.set-footnote-settings','ENDNOTE','default','deepClone','customRanges','syncExecuteCommand','isInteger','lists','UniverLicensePlugin','_injector','registerCommand','length','6PiYVoM','isNoop','doc.command.insert-endnote','sectEnd','noteSettings','validateDocumentStructure','separator','segmentId','120760IyLKtB','function','every','customMark','sectionId','DocumentFlavor','CustomRangeType','columnCount','pluginName','defineProperty','Injector','forEach','generateRandomId','noteId','FOOTNOTE','drawingsOrder','Tools','disposeWithMe','footnote','getSnapshot','version','numberFormat','258cMACgd','doc.command.delete-endnote','UniverDocsPlugin','delete','docs-reference.config','_config','DependentOn','serialize','iterator','properties','documentStyle','get','-settings','InsertDocumentEndnoteCommand','getUnit','UniverDocsReferencePlugin','string','360928diphva','3967852DuGZTN'];_0x1174=function(){return _0x56c1a5;};return _0x1174();}function x(_0x5e33aa){'@babel/helpers - typeof';const _0x46c750=_0x4ae111;return x=typeof Symbol==_0x46c750(0x225)&&typeof Symbol[_0x46c750(0x1c0)]==_0x46c750(0x1db)?function(_0x1145b2){return typeof _0x1145b2;}:function(_0x161cbc){const _0x52463d=_0x46c750;return _0x161cbc&&typeof Symbol=='function'&&_0x161cbc[_0x52463d(0x1d6)]===Symbol&&_0x161cbc!==Symbol['prototype']?'symbol':typeof _0x161cbc;},x(_0x5e33aa);}function S(_0xab7f78,_0x1601d5){const _0x158ab0=_0x4ae111;if(x(_0xab7f78)!=_0x158ab0(0x1ef)||!_0xab7f78)return _0xab7f78;var _0x15a16e=_0xab7f78[Symbol[_0x158ab0(0x1f7)]];if(_0x15a16e!==void 0x0){var _0x4dc52f=_0x15a16e[_0x158ab0(0x1cd)](_0xab7f78,_0x1601d5||_0x158ab0(0x212));if(x(_0x4dc52f)!=_0x158ab0(0x1ef))return _0x4dc52f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1601d5===_0x158ab0(0x1c8)?String:Number)(_0xab7f78);}function C(_0x2b7218){const _0x3b9812=_0x4ae111;var _0x558cd0=S(_0x2b7218,_0x3b9812(0x1c8));return x(_0x558cd0)==_0x3b9812(0x1db)?_0x558cd0:_0x558cd0+'';}function w(_0x5ef5ea,_0x35d1ed,_0x40b16b){const _0x1d8d70=_0x4ae111;return(_0x35d1ed=C(_0x35d1ed))in _0x5ef5ea?Object[_0x1d8d70(0x22d)](_0x5ef5ea,_0x35d1ed,{'value':_0x40b16b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5ef5ea[_0x35d1ed]=_0x40b16b,_0x5ef5ea;}let T=class extends e['Plugin']{constructor(_0x1842ed=v,_0x333db2,_0x65eb28,_0x2e95a7){const _0x76588c=_0x4ae111;super(),this[_0x76588c(0x1bd)]=_0x1842ed,this[_0x76588c(0x219)]=_0x333db2,this[_0x76588c(0x1e8)]=_0x65eb28,this[_0x76588c(0x20b)]=_0x2e95a7;let {..._0x4a19f3}=(0x0,e['merge'])({},v,this[_0x76588c(0x1bd)]);this[_0x76588c(0x1e8)][_0x76588c(0x209)](_0x76588c(0x1bc),_0x4a19f3);}[_0x4ae111(0x1fe)](){const _0x3a1ffd=_0x4ae111;[f,p,o,m,h,s][_0x3a1ffd(0x22f)](_0x3c4ec4=>this[_0x3a1ffd(0x235)](this[_0x3a1ffd(0x20b)][_0x3a1ffd(0x21a)](_0x3c4ec4)));}};w(T,_0x4ae111(0x22c),'UNIVER_DOCS_REFERENCE_PLUGIN'),w(T,'packageName',g),w(T,_0x4ae111(0x238),_),w(T,_0x4ae111(0x1e7),e[_0x4ae111(0x20c)][_0x4ae111(0x1d2)]),T=b([(0x0,e[_0x4ae111(0x1be)])(n[_0x4ae111(0x218)],t[_0x4ae111(0x23c)]),y(0x1,(0x0,e[_0x4ae111(0x1f3)])(e[_0x4ae111(0x22e)])),y(0x2,e[_0x4ae111(0x1d7)]),y(0x3,e[_0x4ae111(0x1ce)])],T),exports[_0x4ae111(0x1d0)]=h,exports[_0x4ae111(0x1fb)]=p,exports[_0x4ae111(0x1c5)]=m,exports[_0x4ae111(0x1f1)]=f,exports['SetDocumentEndnoteSettingsCommand']=s,exports['SetDocumentFootnoteSettingsCommand']=o,Object[_0x4ae111(0x22d)](exports,_0x4ae111(0x1c7),{'enumerable':!0x0,'get':function(){return T;}});
|
|
1
|
+
const _0x5bbb34=_0x3eb8;(function(_0x4e4545,_0x7be5db){const _0x4eab54=_0x3eb8,_0x43f64a=_0x4e4545();while(!![]){try{const _0x33ad96=parseInt(_0x4eab54(0xdb))/0x1+parseInt(_0x4eab54(0xb7))/0x2*(-parseInt(_0x4eab54(0x88))/0x3)+-parseInt(_0x4eab54(0xb1))/0x4*(-parseInt(_0x4eab54(0x8a))/0x5)+-parseInt(_0x4eab54(0xcb))/0x6*(parseInt(_0x4eab54(0x8d))/0x7)+parseInt(_0x4eab54(0xcd))/0x8+-parseInt(_0x4eab54(0xb3))/0x9+parseInt(_0x4eab54(0xc0))/0xa;if(_0x33ad96===_0x7be5db)break;else _0x43f64a['push'](_0x43f64a['shift']());}catch(_0x582ec5){_0x43f64a['push'](_0x43f64a['shift']());}}}(_0x59e9,0xe902c),Object[_0x5bbb34(0xd4)](exports,Symbol['toStringTag'],{'value':_0x5bbb34(0xee)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x158544,_0x12e3a9,_0xd9f264){const _0x28130e=_0x5bbb34;if(_0x158544[_0x28130e(0xdd)]!=null&&!(_0x12e3a9===_0x28130e(0x66)?[_0x28130e(0x7f),_0x28130e(0x6d)]:[_0x28130e(0xa1),_0x28130e(0xd3)])[_0x28130e(0x69)](_0x158544[_0x28130e(0xdd)])||_0x158544[_0x28130e(0xd0)]!=null&&!(_0x12e3a9===_0x28130e(0x66)?[_0x28130e(0xac),_0x28130e(0x9f),'eachPage']:['continuous',_0x28130e(0x9f)])[_0x28130e(0x69)](_0x158544[_0x28130e(0xd0)])||_0x158544['startNumber']!=null&&(!Number[_0x28130e(0xc7)](_0x158544[_0x28130e(0x92)])||_0x158544[_0x28130e(0x92)]<0x1)||'columnCount'in _0x158544&&_0x158544['columnCount']!=null&&(_0x12e3a9!==_0x28130e(0x66)||!Number['isInteger'](_0x158544[_0x28130e(0x9c)])||_0x158544[_0x28130e(0x9c)]<0x0||_0x158544['columnCount']>0x4)||_0x158544[_0x28130e(0x74)]!=null&&(typeof _0x158544[_0x28130e(0x74)]!=_0x28130e(0xa0)||_0x158544['numberFormat']['length']===0x0))return!0x1;for(let _0x32cd3d of[_0x158544['separator'],_0x158544[_0x28130e(0x81)],_0x158544[_0x28130e(0x7c)]])if(_0x32cd3d!=null&&(_0xd9f264!=null||(0x0,e['validateDocBodyStructure'])(_0x32cd3d)['length']>0x0))return!0x1;return!0x0;}function _0x3eb8(_0x5f38a9,_0x5c0d42){_0x5f38a9=_0x5f38a9-0x64;const _0x59e974=_0x59e9();let _0x3eb8e0=_0x59e974[_0x5f38a9];return _0x3eb8e0;}function i(_0x1343df,_0x4bc132,_0x3d05c3){const _0x4f717c=_0x5bbb34;var _0x1c01b6,_0x4a754d;if(_0x4bc132['settings']!=null&&!r(_0x4bc132[_0x4f717c(0xd9)],_0x3d05c3,_0x4bc132[_0x4f717c(0xe8)]))return!0x1;let _0x66936e=((_0x1c01b6=_0x1343df[_0x4f717c(0xc1)])==null||(_0x1c01b6=_0x1c01b6[_0x4f717c(0xec)])==null?void 0x0:_0x1c01b6[_0x4f717c(0xba)](_0x4c0177=>_0x4c0177[_0x4f717c(0xe8)]===_0x4bc132[_0x4f717c(0xe8)]))??-0x1;if(_0x4bc132[_0x4f717c(0xe8)]!=null&&_0x66936e<0x0)return!0x1;let _0x4adf61=_0x4bc132[_0x4f717c(0xe8)]==null?_0x1343df[_0x4f717c(0xdf)]:(_0x4a754d=_0x1343df[_0x4f717c(0xc1)])==null||(_0x4a754d=_0x4a754d[_0x4f717c(0xec)])==null?void 0x0:_0x4a754d[_0x66936e]['noteProperties'],_0x995ab9=_0x4bc132[_0x4f717c(0xd9)]==null?void 0x0:e['Tools']['deepClone'](_0x4bc132[_0x4f717c(0xd9)]),_0x409eb4=_0x4bc132[_0x4f717c(0xe8)]==null?[_0x4f717c(0xdf)]:['body',_0x4f717c(0xec),_0x66936e,_0x4f717c(0xcf)],_0x1f4002=e['JSONX']['getInstance'](),_0x370778=null;if(e['Tools'][_0x4f717c(0x72)](_0x4adf61==null?void 0x0:_0x4adf61[_0x3d05c3],_0x995ab9)||(_0x370778=_0x4adf61==null?_0x1f4002[_0x4f717c(0x79)](_0x409eb4,{[_0x3d05c3]:_0x995ab9}):_0x4bc132['sectionId']!=null&&_0x995ab9==null&&Object['keys'](_0x4adf61)[_0x4f717c(0xeb)](_0x3dc6b2=>_0x3dc6b2===_0x3d05c3)?_0x1f4002[_0x4f717c(0x7d)](_0x409eb4,_0x4adf61):_0x1f4002['replaceOp']([..._0x409eb4,_0x3d05c3],_0x4adf61[_0x3d05c3],_0x995ab9)),_0x4bc132[_0x4f717c(0x9d)]!=null){var _0x3d8316;if(_0x3d05c3!=='endnote'||_0x4bc132[_0x4f717c(0xe8)]==null||typeof _0x4bc132[_0x4f717c(0x9d)]!='boolean')return!0x1;let _0x2a3a35=(_0x3d8316=_0x1343df[_0x4f717c(0xc1)])==null||(_0x3d8316=_0x3d8316[_0x4f717c(0xec)])==null?void 0x0:_0x3d8316[_0x66936e]['suppressEndnotes'];_0x2a3a35!==_0x4bc132[_0x4f717c(0x9d)]&&(_0x370778=e[_0x4f717c(0xa5)]['compose'](_0x370778,_0x1f4002[_0x4f717c(0x9a)]([_0x4f717c(0xc1),_0x4f717c(0xec),_0x66936e,_0x4f717c(0x9d)],_0x2a3a35,_0x4bc132[_0x4f717c(0x9d)])));}return _0x370778;}function a(_0x36d548,_0x231012,_0x2db359){const _0x124fb0=_0x5bbb34;if(!_0x231012)return!0x1;let _0x51fc03=_0x36d548['get'](e['IUniverInstanceService'])[_0x124fb0(0x8b)](_0x231012['unitId'],e[_0x124fb0(0xe5)]['UNIVER_DOC']),_0xb78162=_0x51fc03==null?void 0x0:_0x51fc03[_0x124fb0(0x67)]();if(!_0xb78162||_0xb78162[_0x124fb0(0x90)][_0x124fb0(0xaf)]!==e[_0x124fb0(0x71)][_0x124fb0(0x7a)])return!0x1;let _0x413620=i(_0xb78162,_0x231012,_0x2db359);return _0x413620===!0x1||e[_0x124fb0(0xa5)][_0x124fb0(0x89)](_0x413620)?!0x1:!!_0x36d548['get'](e['ICommandService'])[_0x124fb0(0x86)](t[_0x124fb0(0x95)]['id'],{'unitId':_0x231012['unitId'],'segmentId':'','historyAction':_0x124fb0(0xb0)+_0x2db359+_0x124fb0(0x6f),'actions':_0x413620,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x5bbb34(0xb8),'type':e[_0x5bbb34(0x96)][_0x5bbb34(0x78)],'handler':(_0x3445a2,_0x55136b)=>a(_0x3445a2,_0x55136b,_0x5bbb34(0x66))},s={'id':_0x5bbb34(0xe6),'type':e[_0x5bbb34(0x96)][_0x5bbb34(0x78)],'handler':(_0x12394f,_0x27b958)=>a(_0x12394f,_0x27b958,'endnote')};function c(_0xd1404a,_0x165f16){const _0x416f22=_0x5bbb34;return(_0xd1404a==null?void 0x0:_0xd1404a[_0x416f22(0x90)][_0x416f22(0xaf)])===e[_0x416f22(0x71)][_0x416f22(0x7a)]&&!!_0xd1404a['body']&&Number['isInteger'](_0x165f16)&&_0x165f16>=0x0&&_0x165f16<_0xd1404a[_0x416f22(0xc1)][_0x416f22(0xcc)]['length']-0x1;}function l(_0x22c980,_0x2343ce,_0x369df0){const _0x401d0f=_0x5bbb34;var _0x501bc0,_0x52aa69;if(_0x2343ce['settings']===void 0x0&&_0x2343ce[_0x401d0f(0x9d)]===void 0x0)return null;let _0x4ac580=_0x2343ce[_0x401d0f(0xe8)]==null?(_0x501bc0=_0x22c980[_0x401d0f(0xdf)])==null?void 0x0:_0x501bc0[_0x369df0]:(_0x52aa69=_0x22c980[_0x401d0f(0xc1)])==null||(_0x52aa69=_0x52aa69[_0x401d0f(0xec)])==null||(_0x52aa69=_0x52aa69['find'](_0x1b1a01=>_0x1b1a01[_0x401d0f(0xe8)]===_0x2343ce[_0x401d0f(0xe8)]))==null||(_0x52aa69=_0x52aa69['noteProperties'])==null?void 0x0:_0x52aa69[_0x369df0];return i(_0x22c980,{'settings':_0x2343ce['settings']===void 0x0?_0x4ac580??null:_0x2343ce[_0x401d0f(0xd9)],'sectionId':_0x2343ce[_0x401d0f(0xe8)],'suppressEndnotes':_0x2343ce[_0x401d0f(0x9d)]},_0x369df0);}function u(_0x5a9c88,_0x1e4096,_0x4adc96){const _0x5b9edc=_0x5bbb34;var _0x5b45d3,_0xed437e,_0xf62abe;if(!_0x1e4096||_0x1e4096[_0x5b9edc(0xa7)])return!0x1;let _0x25d36c=_0x5a9c88[_0x5b9edc(0xd2)](e[_0x5b9edc(0x91)])[_0x5b9edc(0x8b)](_0x1e4096[_0x5b9edc(0x98)],e[_0x5b9edc(0xe5)][_0x5b9edc(0x70)]),_0x365f13=_0x25d36c==null?void 0x0:_0x25d36c[_0x5b9edc(0x67)](),{offset:_0xd9d817}=_0x1e4096;if(!c(_0x365f13,_0xd9d817))return!0x1;let _0x5d0471=l(_0x365f13,_0x1e4096,_0x4adc96);if(_0x5d0471===!0x1)return!0x1;let _0x3f1bfe=_0x1e4096['noteId']??(0x0,e['generateRandomId'])(0xc);if((_0x5b45d3=_0x365f13[_0x5b9edc(0xb5)])!=null&&_0x5b45d3[_0x3f1bfe]||(_0xed437e=_0x365f13[_0x5b9edc(0xda)])!=null&&_0xed437e[_0x3f1bfe]||(_0xf62abe=_0x365f13[_0x5b9edc(0x8f)])!=null&&_0xf62abe[_0x3f1bfe])return!0x1;let _0xf4abef=e[_0x5b9edc(0xd6)][_0x5b9edc(0x97)]({'type':_0x4adc96,'noteId':_0x3f1bfe,'body':_0x1e4096[_0x5b9edc(0xc1)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e['createParagraphId'])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e[_0x5b9edc(0x82)])(new Set()),'startIndex':0x1}]},'customMark':_0x1e4096['customMark'],'referenceTextStyle':_0x1e4096[_0x5b9edc(0x99)],'tableSource':_0x1e4096[_0x5b9edc(0x77)],'drawings':_0x1e4096[_0x5b9edc(0xa6)],'drawingsOrder':_0x1e4096['drawingsOrder'],'lists':_0x1e4096[_0x5b9edc(0xc6)]});if((0x0,e[_0x5b9edc(0xca)])({'notes':{[_0x3f1bfe]:_0xf4abef}})[_0x5b9edc(0xa9)]>0x0)return!0x1;let _0x5258b7=new e[(_0x5b9edc(0x93))]();_0xd9d817>0x0&&_0x5258b7['retain'](_0xd9d817),_0x5258b7[_0x5b9edc(0x80)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x4adc96===_0x5b9edc(0x66)?e[_0x5b9edc(0xae)][_0x5b9edc(0xce)]:e[_0x5b9edc(0xae)]['ENDNOTE'],'rangeId':(0x0,e[_0x5b9edc(0xb4)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x3f1bfe}}]});let _0x241282=e[_0x5b9edc(0xa5)][_0x5b9edc(0xe4)](),_0x402d7a=_0x365f13[_0x5b9edc(0xb5)]==null?_0x241282[_0x5b9edc(0x79)]([_0x5b9edc(0xb5)],{[_0x3f1bfe]:_0xf4abef}):_0x241282[_0x5b9edc(0x79)]([_0x5b9edc(0xb5),_0x3f1bfe],_0xf4abef);return!!_0x5a9c88['get'](e['ICommandService'])[_0x5b9edc(0x86)](t[_0x5b9edc(0x95)]['id'],{'unitId':_0x1e4096['unitId'],'segmentId':'','historyAction':'insert-'+_0x4adc96,'actions':e[_0x5b9edc(0xa5)][_0x5b9edc(0x9e)](e['JSONX']['compose'](_0x5d0471,_0x402d7a),_0x241282[_0x5b9edc(0x73)](_0x5258b7['serialize'](),['body'])),'textRanges':[{'segmentId':_0x3f1bfe,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x75c719,_0x3ee666,_0x4cbb56){const _0x40886b=_0x5bbb34;var _0xf6fa8b,_0x59ed53;if(!_0x3ee666)return!0x1;let _0x574638=_0x75c719[_0x40886b(0xd2)](e['IUniverInstanceService'])[_0x40886b(0x8b)](_0x3ee666[_0x40886b(0x98)],e[_0x40886b(0xe5)]['UNIVER_DOC']),_0x4e4a13=_0x574638==null?void 0x0:_0x574638[_0x40886b(0x67)](),_0x4cefb3=_0x4e4a13==null||(_0xf6fa8b=_0x4e4a13['notes'])==null?void 0x0:_0xf6fa8b[_0x3ee666[_0x40886b(0xa3)]],_0x4f6f35=_0x4e4a13==null||(_0x59ed53=_0x4e4a13[_0x40886b(0xc1)])==null||(_0x59ed53=_0x59ed53['customRanges'])==null?void 0x0:_0x59ed53['find'](_0x29349b=>{const _0x44a041=_0x40886b;var _0x4ea33d;return(_0x29349b[_0x44a041(0x6a)]===e['CustomRangeType']['FOOTNOTE']||_0x29349b['rangeType']===e[_0x44a041(0xae)][_0x44a041(0xb9)])&&((_0x4ea33d=_0x29349b[_0x44a041(0x6e)])==null?void 0x0:_0x4ea33d[_0x44a041(0xa3)])===_0x3ee666[_0x44a041(0xa3)];});if(!_0x4e4a13||_0x4e4a13[_0x40886b(0x90)][_0x40886b(0xaf)]!==e[_0x40886b(0x71)][_0x40886b(0x7a)]||!_0x4cefb3||_0x4cefb3['type']!==_0x4cbb56||!_0x4f6f35)return!0x1;let _0x405471=new e['TextX']();_0x4f6f35[_0x40886b(0xbe)]>0x0&&_0x405471[_0x40886b(0x6b)](_0x4f6f35['startIndex']),_0x405471[_0x40886b(0xbc)](0x1);let _0x2bf8b1=e[_0x40886b(0xa5)][_0x40886b(0xe4)]();return!!_0x75c719[_0x40886b(0xd2)](e['ICommandService'])['syncExecuteCommand'](t[_0x40886b(0x95)]['id'],{'unitId':_0x3ee666[_0x40886b(0x98)],'segmentId':'','historyAction':_0x40886b(0xa2)+_0x4cbb56,'actions':e[_0x40886b(0xa5)][_0x40886b(0x9e)](_0x2bf8b1[_0x40886b(0x73)](_0x405471[_0x40886b(0x7b)](),['body']),_0x2bf8b1[_0x40886b(0x7d)](['notes',_0x3ee666[_0x40886b(0xa3)]],_0x4cefb3)),'textRanges':[{'startOffset':_0x4f6f35[_0x40886b(0xbe)],'endOffset':_0x4f6f35[_0x40886b(0xbe)],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':_0x5bbb34(0xab),'type':e['CommandType']['COMMAND'],'handler':(_0x178ed7,_0x116f65)=>u(_0x178ed7,_0x116f65,'footnote')},p={'id':_0x5bbb34(0x6c),'type':e[_0x5bbb34(0x96)][_0x5bbb34(0x78)],'handler':(_0x519f56,_0x325de5)=>d(_0x519f56,_0x325de5,_0x5bbb34(0x66))},m={'id':_0x5bbb34(0x75),'type':e['CommandType'][_0x5bbb34(0x78)],'handler':(_0x167ce2,_0x2a3abf)=>u(_0x167ce2,_0x2a3abf,_0x5bbb34(0x68))},h={'id':'doc.command.delete-endnote','type':e[_0x5bbb34(0x96)][_0x5bbb34(0x78)],'handler':(_0x109ba8,_0x7ec521)=>d(_0x109ba8,_0x7ec521,_0x5bbb34(0x68))};var g=_0x5bbb34(0xde),_=_0x5bbb34(0xe2);const v={};function y(_0x294e07,_0x9b70bd){return function(_0x3f841d,_0xbd5f84){_0x9b70bd(_0x3f841d,_0xbd5f84,_0x294e07);};}function b(_0x51937a,_0x38f5be,_0x56fa6c,_0x19f2ba){const _0x1c3cfc=_0x5bbb34;var _0x16fd20=arguments[_0x1c3cfc(0xa9)],_0x5a2117=_0x16fd20<0x3?_0x38f5be:_0x19f2ba===null?_0x19f2ba=Object[_0x1c3cfc(0xed)](_0x38f5be,_0x56fa6c):_0x19f2ba,_0xb2d48f;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x1c3cfc(0xaa))_0x5a2117=Reflect[_0x1c3cfc(0xa4)](_0x51937a,_0x38f5be,_0x56fa6c,_0x19f2ba);else{for(var _0x2344de=_0x51937a[_0x1c3cfc(0xa9)]-0x1;_0x2344de>=0x0;_0x2344de--)(_0xb2d48f=_0x51937a[_0x2344de])&&(_0x5a2117=(_0x16fd20<0x3?_0xb2d48f(_0x5a2117):_0x16fd20>0x3?_0xb2d48f(_0x38f5be,_0x56fa6c,_0x5a2117):_0xb2d48f(_0x38f5be,_0x56fa6c))||_0x5a2117);}return _0x16fd20>0x3&&_0x5a2117&&Object[_0x1c3cfc(0xd4)](_0x38f5be,_0x56fa6c,_0x5a2117),_0x5a2117;}function x(_0x2e893d){'@babel/helpers - typeof';const _0x243feb=_0x5bbb34;return x=typeof Symbol==_0x243feb(0xaa)&&typeof Symbol['iterator']==_0x243feb(0x7e)?function(_0x28a1c7){return typeof _0x28a1c7;}:function(_0x3fbc2c){const _0x5eded0=_0x243feb;return _0x3fbc2c&&typeof Symbol=='function'&&_0x3fbc2c[_0x5eded0(0xdc)]===Symbol&&_0x3fbc2c!==Symbol[_0x5eded0(0xc8)]?_0x5eded0(0x7e):typeof _0x3fbc2c;},x(_0x2e893d);}function S(_0x4d419a,_0x45f4ab){const _0x4bdc4f=_0x5bbb34;if(x(_0x4d419a)!=_0x4bdc4f(0xb2)||!_0x4d419a)return _0x4d419a;var _0x27265b=_0x4d419a[Symbol[_0x4bdc4f(0x84)]];if(_0x27265b!==void 0x0){var _0x14ff6f=_0x27265b[_0x4bdc4f(0x83)](_0x4d419a,_0x45f4ab||'default');if(x(_0x14ff6f)!=_0x4bdc4f(0xb2))return _0x14ff6f;throw TypeError(_0x4bdc4f(0x9b));}return(_0x45f4ab==='string'?String:Number)(_0x4d419a);}function C(_0x3f02f2){const _0x369145=_0x5bbb34;var _0x31aeb0=S(_0x3f02f2,_0x369145(0xa0));return x(_0x31aeb0)==_0x369145(0x7e)?_0x31aeb0:_0x31aeb0+'';}function _0x59e9(){const _0xd6e08c=['CustomRangeType','documentFlavor','set-','4faFThe','object','11986650WtlnZN','generateRandomId','notes','_injector','204022MyGSQV','doc.command.set-footnote-settings','ENDNOTE','findIndex','UniverDocsReferencePlugin','delete','Injector','startIndex','_commandService','17211130wWhnoY','body','Plugin','version','Inject','InsertDocumentFootnoteCommand','lists','isInteger','prototype','SetDocumentEndnoteSettingsCommand','validateDocumentStructure','2406aaJFNf','dataStream','7712128RfQZdy','FOOTNOTE','noteProperties','restart','merge','get','sectEnd','defineProperty','setConfig','Tools','UniverLicensePlugin','DeleteDocumentFootnoteCommand','settings','headers','1820499uNNmAR','constructor','position','@univerjs-pro/docs-reference','noteSettings','DependentOn','type','1.2.0','forEach','getInstance','UniverInstanceType','doc.command.set-endnote-settings','_configService','sectionId','pluginName','UniverDocsPlugin','every','sectionBreaks','getOwnPropertyDescriptor','Module','onStarting','ICommandService','footnote','getSnapshot','endnote','includes','rangeType','retain','doc.command.delete-footnote','beneathText','properties','-settings','UNIVER_DOC','DocumentFlavor','diffValue','editOp','numberFormat','doc.command.insert-endnote','registerCommand','tableSource','COMMAND','insertOp','TRADITIONAL','serialize','continuationNotice','removeOp','symbol','pageBottom','insert','continuationSeparator','createSectionId','call','toPrimitive','disposeWithMe','syncExecuteCommand','_config','12CHYJvl','isNoop','168395ltGpub','getUnit','DeleteDocumentEndnoteCommand','32207fLZvDc','InsertDocumentEndnoteCommand','footers','documentStyle','IUniverInstanceService','startNumber','TextX','docs-reference.config','RichTextEditingMutation','CommandType','deepClone','unitId','referenceTextStyle','replaceOp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','columnCount','suppressEndnotes','compose','eachSect','string','docEnd','delete-','noteId','decorate','JSONX','drawings','segmentId','UNIVER_DOCS_REFERENCE_PLUGIN','length','function','doc.command.insert-footnote','continuous','packageName'];_0x59e9=function(){return _0xd6e08c;};return _0x59e9();}function w(_0x39e2d5,_0xa1847,_0x397c09){const _0x1bdf35=_0x5bbb34;return(_0xa1847=C(_0xa1847))in _0x39e2d5?Object[_0x1bdf35(0xd4)](_0x39e2d5,_0xa1847,{'value':_0x397c09,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39e2d5[_0xa1847]=_0x397c09,_0x39e2d5;}let T=class extends e[_0x5bbb34(0xc2)]{constructor(_0x1804cb=v,_0x37aed2,_0x555c28,_0x4c6206){const _0x5dd3b6=_0x5bbb34;super(),this[_0x5dd3b6(0x87)]=_0x1804cb,this[_0x5dd3b6(0xb6)]=_0x37aed2,this[_0x5dd3b6(0xe7)]=_0x555c28,this[_0x5dd3b6(0xbf)]=_0x4c6206;let {..._0x4a3f05}=(0x0,e[_0x5dd3b6(0xd1)])({},v,this[_0x5dd3b6(0x87)]);this[_0x5dd3b6(0xe7)][_0x5dd3b6(0xd5)](_0x5dd3b6(0x94),_0x4a3f05);}[_0x5bbb34(0x64)](){const _0x435033=_0x5bbb34;[f,p,o,m,h,s][_0x435033(0xe3)](_0x2bdd94=>this[_0x435033(0x85)](this[_0x435033(0xbf)][_0x435033(0x76)](_0x2bdd94)));}};w(T,_0x5bbb34(0xe9),_0x5bbb34(0xa8)),w(T,_0x5bbb34(0xad),g),w(T,_0x5bbb34(0xc3),_),w(T,_0x5bbb34(0xe1),e[_0x5bbb34(0xe5)][_0x5bbb34(0x70)]),T=b([(0x0,e[_0x5bbb34(0xe0)])(n[_0x5bbb34(0xd7)],t[_0x5bbb34(0xea)]),y(0x1,(0x0,e[_0x5bbb34(0xc4)])(e[_0x5bbb34(0xbd)])),y(0x2,e['IConfigService']),y(0x3,e[_0x5bbb34(0x65)])],T),exports[_0x5bbb34(0x8c)]=h,exports[_0x5bbb34(0xd8)]=p,exports[_0x5bbb34(0x8e)]=m,exports[_0x5bbb34(0xc5)]=f,exports[_0x5bbb34(0xc9)]=s,exports['SetDocumentFootnoteSettingsCommand']=o,Object[_0x5bbb34(0xd4)](exports,_0x5bbb34(0xbb),{'enumerable':!0x0,'get':function(){return T;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4f9d(){const _0x3c5a46=['43666ObLQxk','deleteEndnote','765420ShjAvr','sort','getFootnoteSettings','5wpKhwN','_injector','insertFootnote','customRanges','getEndnoteSettings','getSnapshot','setEndnoteSettings','getDocumentDataModel','32658sNivpz','58878OUAeds','body','startIndex','sectionBreaks','flatMap','rangeType','properties','string','noteSettings','749946EhbGth','find','endnote','1480yIidmO','deepClone','notes','filter','deleteFootnote','get','noteId','17700370UjDuDU','332QkAHcf','ENDNOTE','setFootnoteSettings','2820696CDWMCf','insertEndnote','syncExecuteCommand'];_0x4f9d=function(){return _0x3c5a46;};return _0x4f9d();}const _0x77d367=_0x1238;function _0x1238(_0x2a2ab5,_0x3309c9){_0x2a2ab5=_0x2a2ab5-0x9f;const _0x4f9dd4=_0x4f9d();let _0x1238f8=_0x4f9dd4[_0x2a2ab5];return _0x1238f8;}(function(_0x8440f8,_0x47c4ed){const _0x4e3f0a=_0x1238,_0x53f61e=_0x8440f8();while(!![]){try{const _0x20d8ad=-parseInt(_0x4e3f0a(0xad))/0x1+-parseInt(_0x4e3f0a(0xc2))/0x2+parseInt(_0x4e3f0a(0xb8))/0x3*(parseInt(_0x4e3f0a(0xa5))/0x4)+parseInt(_0x4e3f0a(0xb0))/0x5*(parseInt(_0x4e3f0a(0xa8))/0x6)+parseInt(_0x4e3f0a(0xab))/0x7+parseInt(_0x4e3f0a(0xc5))/0x8*(-parseInt(_0x4e3f0a(0xb9))/0x9)+parseInt(_0x4e3f0a(0xa4))/0xa;if(_0x20d8ad===_0x47c4ed)break;else _0x53f61e['push'](_0x53f61e['shift']());}catch(_0x4cd0f3){_0x53f61e['push'](_0x53f61e['shift']());}}}(_0x4f9d,0xc3222));import{DeleteDocumentEndnoteCommand as _0x17f5ae,DeleteDocumentFootnoteCommand as _0x4fddd5,InsertDocumentEndnoteCommand as _0x483162,InsertDocumentFootnoteCommand as _0x488473,SetDocumentEndnoteSettingsCommand as _0x4d87d0,SetDocumentFootnoteSettingsCommand as _0x17b887}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x24777d,ICommandService as _0x3730ab,Tools as _0x58b7fb,generateRandomId as _0x1b385b}from'@univerjs/core';import{FDocument as _0x8e0fb4}from'@univerjs/docs/facade';var d=class extends _0x8e0fb4{[_0x77d367(0xb2)](_0x21e555,_0x2953b3={}){const _0x912f99=_0x77d367;let _0x4a8e8b=_0x1b385b(0xc);return this[_0x912f99(0xb1)][_0x912f99(0xa2)](_0x3730ab)[_0x912f99(0xaa)](_0x488473['id'],{..._0x2953b3,'unitId':this['id'],'offset':_0x21e555,'noteId':_0x4a8e8b})?_0x4a8e8b:null;}['getFootnotes'](){const _0x41d0d7=_0x77d367;var _0x24df8a;let _0x19b350=this[_0x41d0d7(0xb7)]()[_0x41d0d7(0xb5)]();return(((_0x24df8a=_0x19b350[_0x41d0d7(0xba)])==null?void 0x0:_0x24df8a[_0x41d0d7(0xb3)])??[])['filter'](_0x42c818=>_0x42c818[_0x41d0d7(0xbe)]===_0x24777d['FOOTNOTE'])[_0x41d0d7(0xae)]((_0x2c7627,_0x94debc)=>_0x2c7627[_0x41d0d7(0xbb)]-_0x94debc['startIndex'])[_0x41d0d7(0xbd)](_0x17600b=>{const _0x3430d2=_0x41d0d7;var _0x25ab2a,_0x35156e;let _0x1ad7ee=(_0x25ab2a=_0x17600b[_0x3430d2(0xbf)])==null?void 0x0:_0x25ab2a[_0x3430d2(0xa3)],_0x4abacd=typeof _0x1ad7ee=='string'?(_0x35156e=_0x19b350[_0x3430d2(0x9f)])==null?void 0x0:_0x35156e[_0x1ad7ee]:void 0x0;return _0x4abacd?[_0x58b7fb[_0x3430d2(0xc6)](_0x4abacd)]:[];});}[_0x77d367(0xa1)](_0x3b4cec){const _0x26c045=_0x77d367;return this[_0x26c045(0xb1)][_0x26c045(0xa2)](_0x3730ab)[_0x26c045(0xaa)](_0x4fddd5['id'],{'unitId':this['id'],'noteId':_0x3b4cec});}[_0x77d367(0xaf)](_0x5db839){const _0x14b931=_0x77d367;var _0x531f42,_0x23b2bb;let _0x16a0ef=this[_0x14b931(0xb7)]()['getSnapshot'](),_0x3d860a=_0x5db839==null?(_0x531f42=_0x16a0ef[_0x14b931(0xc1)])==null?void 0x0:_0x531f42['footnote']:(_0x23b2bb=_0x16a0ef[_0x14b931(0xba)])==null||(_0x23b2bb=_0x23b2bb[_0x14b931(0xbc)])==null||(_0x23b2bb=_0x23b2bb[_0x14b931(0xc3)](_0x5223c5=>_0x5223c5['sectionId']===_0x5db839))==null||(_0x23b2bb=_0x23b2bb['noteProperties'])==null?void 0x0:_0x23b2bb['footnote'];return _0x3d860a==null?void 0x0:_0x58b7fb[_0x14b931(0xc6)](_0x3d860a);}[_0x77d367(0xa7)](_0x1f4b4e,_0x40e732){const _0xd0fdc9=_0x77d367;return this['_injector'][_0xd0fdc9(0xa2)](_0x3730ab)[_0xd0fdc9(0xaa)](_0x17b887['id'],{'unitId':this['id'],'settings':_0x1f4b4e,'sectionId':_0x40e732});}[_0x77d367(0xa9)](_0x47b347,_0x139cfa={}){const _0x4a71e8=_0x77d367;let _0x2ad538=_0x1b385b(0xc);return this[_0x4a71e8(0xb1)]['get'](_0x3730ab)[_0x4a71e8(0xaa)](_0x483162['id'],{..._0x139cfa,'unitId':this['id'],'offset':_0x47b347,'noteId':_0x2ad538})?_0x2ad538:null;}['getEndnotes'](){const _0x2febeb=_0x77d367;var _0x1a69db;let _0x171b47=this[_0x2febeb(0xb7)]()['getSnapshot']();return(((_0x1a69db=_0x171b47[_0x2febeb(0xba)])==null?void 0x0:_0x1a69db[_0x2febeb(0xb3)])??[])[_0x2febeb(0xa0)](_0x434819=>_0x434819[_0x2febeb(0xbe)]===_0x24777d[_0x2febeb(0xa6)])['sort']((_0x1e2f06,_0x29cca6)=>_0x1e2f06[_0x2febeb(0xbb)]-_0x29cca6[_0x2febeb(0xbb)])['flatMap'](_0x4fca30=>{const _0x12a61f=_0x2febeb;var _0x45d60f,_0x31d8ec;let _0x47cfce=(_0x45d60f=_0x4fca30[_0x12a61f(0xbf)])==null?void 0x0:_0x45d60f[_0x12a61f(0xa3)],_0x17d324=typeof _0x47cfce==_0x12a61f(0xc0)?(_0x31d8ec=_0x171b47[_0x12a61f(0x9f)])==null?void 0x0:_0x31d8ec[_0x47cfce]:void 0x0;return _0x17d324?[_0x58b7fb[_0x12a61f(0xc6)](_0x17d324)]:[];});}[_0x77d367(0xac)](_0x542aa2){const _0x3f164e=_0x77d367;return this[_0x3f164e(0xb1)][_0x3f164e(0xa2)](_0x3730ab)['syncExecuteCommand'](_0x17f5ae['id'],{'unitId':this['id'],'noteId':_0x542aa2});}[_0x77d367(0xb4)](_0x43c5ff){const _0x443fb1=_0x77d367;var _0x4fde59,_0x1273df;let _0x4ac104=this[_0x443fb1(0xb7)]()[_0x443fb1(0xb5)](),_0x384153=_0x43c5ff==null?(_0x4fde59=_0x4ac104[_0x443fb1(0xc1)])==null?void 0x0:_0x4fde59[_0x443fb1(0xc4)]:(_0x1273df=_0x4ac104[_0x443fb1(0xba)])==null||(_0x1273df=_0x1273df['sectionBreaks'])==null||(_0x1273df=_0x1273df[_0x443fb1(0xc3)](_0x242d50=>_0x242d50['sectionId']===_0x43c5ff))==null||(_0x1273df=_0x1273df['noteProperties'])==null?void 0x0:_0x1273df[_0x443fb1(0xc4)];return _0x384153==null?void 0x0:_0x58b7fb[_0x443fb1(0xc6)](_0x384153);}[_0x77d367(0xb6)](_0x25d700,_0x225855){const _0x44a2fc=_0x77d367;return this['_injector'][_0x44a2fc(0xa2)](_0x3730ab)[_0x44a2fc(0xaa)](_0x4d87d0['id'],{'unitId':this['id'],'settings':_0x25d700,'sectionId':_0x225855});}};_0x8e0fb4['extend'](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x22b396=_0x3399;(function(_0x15d2ca,_0x1cbd33){const _0x309b25=_0x3399,_0x52a64a=_0x15d2ca();while(!![]){try{const _0x5e5a61=parseInt(_0x309b25(0x184))/0x1+-parseInt(_0x309b25(0x17e))/0x2*(parseInt(_0x309b25(0x15d))/0x3)+-parseInt(_0x309b25(0x16a))/0x4+-parseInt(_0x309b25(0x189))/0x5*(-parseInt(_0x309b25(0x17a))/0x6)+parseInt(_0x309b25(0x1b9))/0x7+parseInt(_0x309b25(0x1bf))/0x8+-parseInt(_0x309b25(0x1c3))/0x9;if(_0x5e5a61===_0x1cbd33)break;else _0x52a64a['push'](_0x52a64a['shift']());}catch(_0x3458a1){_0x52a64a['push'](_0x52a64a['shift']());}}}(_0x4b54,0x5d372));import{CommandType as _0x2c710e,CustomRangeType as _0x1c2972,DependentOn as _0x382a79,DocumentFlavor as _0x5d9527,ICommandService as _0x1dc54d,IConfigService as _0x417b48,IUniverInstanceService as _0x893d89,Inject as _0x72c1ec,Injector as _0xe4c5b2,JSONX as _0x268637,Plugin as _0x3f78bf,TextX as _0x30f2e6,Tools as _0xe26de,UniverInstanceType as _0x176aa1,createParagraphId as _0x1935ce,createSectionId as _0x13d756,generateRandomId as _0x342bc6,merge as _0x5d1571,validateDocBodyStructure as _0x2f43f1,validateDocumentStructure as _0x57396f}from'@univerjs/core';import{RichTextEditingMutation as _0x49f177,UniverDocsPlugin as _0x47677c}from'@univerjs/docs';import{UniverLicensePlugin as _0x163745}from'@univerjs-pro/license';function _0x4b54(){const _0x13e64d=['docEnd','iterator','docs-reference.config','getSnapshot','type','dataStream','_commandService','2080309KOvsXC','UNIVER_DOC','delete','editOp','continuationNotice','documentStyle','5937856HpBZft','continuous','getOwnPropertyDescriptor','diffValue','1733526AwydAz','UNIVER_DOCS_REFERENCE_PLUGIN','headers','restart','function','documentFlavor','deepClone','insert-','get','7827UNTBFw','syncExecuteCommand','settings','segmentId','pluginName','notes','sectEnd','includes','onStarting','COMMAND','separator','doc.command.delete-footnote','drawings','1675484GkGWLy','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','-settings','properties','suppressEndnotes','noteId','findIndex','eachPage','length','defineProperty','ENDNOTE','default','customRanges','@univerjs-pro/docs-reference','position','disposeWithMe','66oziwZv','body','retain','constructor','358QrjkJK','footnote','doc.command.insert-endnote','boolean','setConfig','FOOTNOTE','416278bXwaTk','insert','every','removeOp','compose','2095EZRkza','isNoop','noteSettings','decorate','_configService','TRADITIONAL','tableSource','serialize','footers','customMark','pageBottom','columnCount','drawingsOrder','startNumber','toPrimitive','_config','symbol','continuationSeparator','rangeType','doc.command.set-footnote-settings','delete-','doc.command.delete-endnote','noteProperties','endnote','sectionId','getInstance','referenceTextStyle','eachSect','set-','replaceOp','keys','isInteger','unitId','_injector','insertOp','getUnit','string','object','startIndex','numberFormat','sectionBreaks'];_0x4b54=function(){return _0x13e64d;};return _0x4b54();}function C(_0x4b4634,_0x39b3fa,_0x56d231){const _0x2cd497=_0x3399;if(_0x4b4634[_0x2cd497(0x178)]!=null&&!(_0x39b3fa===_0x2cd497(0x17f)?[_0x2cd497(0x193),'beneathText']:[_0x2cd497(0x1b2),_0x2cd497(0x163)])[_0x2cd497(0x164)](_0x4b4634[_0x2cd497(0x178)])||_0x4b4634[_0x2cd497(0x1c6)]!=null&&!(_0x39b3fa===_0x2cd497(0x17f)?[_0x2cd497(0x1c0),_0x2cd497(0x1a4),_0x2cd497(0x171)]:[_0x2cd497(0x1c0),_0x2cd497(0x1a4)])['includes'](_0x4b4634[_0x2cd497(0x1c6)])||_0x4b4634['startNumber']!=null&&(!Number[_0x2cd497(0x1a8)](_0x4b4634[_0x2cd497(0x196)])||_0x4b4634[_0x2cd497(0x196)]<0x1)||_0x2cd497(0x194)in _0x4b4634&&_0x4b4634[_0x2cd497(0x194)]!=null&&(_0x39b3fa!==_0x2cd497(0x17f)||!Number[_0x2cd497(0x1a8)](_0x4b4634[_0x2cd497(0x194)])||_0x4b4634[_0x2cd497(0x194)]<0x0||_0x4b4634[_0x2cd497(0x194)]>0x4)||_0x4b4634['numberFormat']!=null&&(typeof _0x4b4634['numberFormat']!=_0x2cd497(0x1ad)||_0x4b4634[_0x2cd497(0x1b0)][_0x2cd497(0x172)]===0x0))return!0x1;for(let _0x4b038b of[_0x4b4634[_0x2cd497(0x167)],_0x4b4634[_0x2cd497(0x19a)],_0x4b4634[_0x2cd497(0x1bd)]])if(_0x4b038b!=null&&(_0x56d231!=null||_0x2f43f1(_0x4b038b)[_0x2cd497(0x172)]>0x0))return!0x1;return!0x0;}function w(_0x1a77c6,_0x2e67f2,_0x27e8fe){const _0xfce965=_0x3399;var _0x105553,_0x3112c7;if(_0x2e67f2[_0xfce965(0x15f)]!=null&&!C(_0x2e67f2[_0xfce965(0x15f)],_0x27e8fe,_0x2e67f2[_0xfce965(0x1a1)]))return!0x1;let _0x32e1c0=((_0x105553=_0x1a77c6[_0xfce965(0x17b)])==null||(_0x105553=_0x105553[_0xfce965(0x1b1)])==null?void 0x0:_0x105553[_0xfce965(0x170)](_0x8bde95=>_0x8bde95[_0xfce965(0x1a1)]===_0x2e67f2[_0xfce965(0x1a1)]))??-0x1;if(_0x2e67f2[_0xfce965(0x1a1)]!=null&&_0x32e1c0<0x0)return!0x1;let _0x54d37c=_0x2e67f2['sectionId']==null?_0x1a77c6[_0xfce965(0x18b)]:(_0x3112c7=_0x1a77c6[_0xfce965(0x17b)])==null||(_0x3112c7=_0x3112c7[_0xfce965(0x1b1)])==null?void 0x0:_0x3112c7[_0x32e1c0]['noteProperties'],_0x220218=_0x2e67f2['settings']==null?void 0x0:_0xe26de[_0xfce965(0x1c9)](_0x2e67f2[_0xfce965(0x15f)]),_0x150ff5=_0x2e67f2[_0xfce965(0x1a1)]==null?['noteSettings']:[_0xfce965(0x17b),_0xfce965(0x1b1),_0x32e1c0,_0xfce965(0x19f)],_0x572b90=_0x268637[_0xfce965(0x1a2)](),_0x3876de=null;if(_0xe26de[_0xfce965(0x1c2)](_0x54d37c==null?void 0x0:_0x54d37c[_0x27e8fe],_0x220218)||(_0x3876de=_0x54d37c==null?_0x572b90[_0xfce965(0x1ab)](_0x150ff5,{[_0x27e8fe]:_0x220218}):_0x2e67f2[_0xfce965(0x1a1)]!=null&&_0x220218==null&&Object[_0xfce965(0x1a7)](_0x54d37c)[_0xfce965(0x186)](_0x4b7140=>_0x4b7140===_0x27e8fe)?_0x572b90[_0xfce965(0x187)](_0x150ff5,_0x54d37c):_0x572b90[_0xfce965(0x1a6)]([..._0x150ff5,_0x27e8fe],_0x54d37c[_0x27e8fe],_0x220218)),_0x2e67f2[_0xfce965(0x16e)]!=null){var _0x50837c;if(_0x27e8fe!==_0xfce965(0x1a0)||_0x2e67f2[_0xfce965(0x1a1)]==null||typeof _0x2e67f2[_0xfce965(0x16e)]!=_0xfce965(0x181))return!0x1;let _0x404f37=(_0x50837c=_0x1a77c6['body'])==null||(_0x50837c=_0x50837c[_0xfce965(0x1b1)])==null?void 0x0:_0x50837c[_0x32e1c0]['suppressEndnotes'];_0x404f37!==_0x2e67f2[_0xfce965(0x16e)]&&(_0x3876de=_0x268637[_0xfce965(0x188)](_0x3876de,_0x572b90[_0xfce965(0x1a6)]([_0xfce965(0x17b),'sectionBreaks',_0x32e1c0,_0xfce965(0x16e)],_0x404f37,_0x2e67f2[_0xfce965(0x16e)])));}return _0x3876de;}function T(_0x36f650,_0x1c6a6f,_0x3929e0){const _0x2898f4=_0x3399;if(!_0x1c6a6f)return!0x1;let _0x1f2908=_0x36f650['get'](_0x893d89)['getUnit'](_0x1c6a6f[_0x2898f4(0x1a9)],_0x176aa1['UNIVER_DOC']),_0x316e06=_0x1f2908==null?void 0x0:_0x1f2908['getSnapshot']();if(!_0x316e06||_0x316e06[_0x2898f4(0x1be)]['documentFlavor']!==_0x5d9527['TRADITIONAL'])return!0x1;let _0x271a56=w(_0x316e06,_0x1c6a6f,_0x3929e0);return _0x271a56===!0x1||_0x268637[_0x2898f4(0x18a)](_0x271a56)?!0x1:!!_0x36f650[_0x2898f4(0x1cb)](_0x1dc54d)[_0x2898f4(0x15e)](_0x49f177['id'],{'unitId':_0x1c6a6f[_0x2898f4(0x1a9)],'segmentId':'','historyAction':_0x2898f4(0x1a5)+_0x3929e0+_0x2898f4(0x16c),'actions':_0x271a56,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0x22b396(0x19c),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x1bb322,_0x546598)=>T(_0x1bb322,_0x546598,_0x22b396(0x17f))},D={'id':'doc.command.set-endnote-settings','type':_0x2c710e[_0x22b396(0x166)],'handler':(_0xd2eb8e,_0x2b6186)=>T(_0xd2eb8e,_0x2b6186,_0x22b396(0x1a0))};function O(_0x1de2cb,_0x1679a8){const _0x12399f=_0x22b396;return(_0x1de2cb==null?void 0x0:_0x1de2cb[_0x12399f(0x1be)]['documentFlavor'])===_0x5d9527[_0x12399f(0x18e)]&&!!_0x1de2cb['body']&&Number[_0x12399f(0x1a8)](_0x1679a8)&&_0x1679a8>=0x0&&_0x1679a8<_0x1de2cb[_0x12399f(0x17b)][_0x12399f(0x1b7)][_0x12399f(0x172)]-0x1;}function k(_0x523298,_0x15d1cd,_0x1371d5){const _0x25e8d7=_0x22b396;var _0x3fc59b,_0x2aad74;if(_0x15d1cd[_0x25e8d7(0x15f)]===void 0x0&&_0x15d1cd[_0x25e8d7(0x16e)]===void 0x0)return null;let _0x4aec4a=_0x15d1cd[_0x25e8d7(0x1a1)]==null?(_0x3fc59b=_0x523298['noteSettings'])==null?void 0x0:_0x3fc59b[_0x1371d5]:(_0x2aad74=_0x523298['body'])==null||(_0x2aad74=_0x2aad74['sectionBreaks'])==null||(_0x2aad74=_0x2aad74['find'](_0x4e3733=>_0x4e3733[_0x25e8d7(0x1a1)]===_0x15d1cd[_0x25e8d7(0x1a1)]))==null||(_0x2aad74=_0x2aad74[_0x25e8d7(0x19f)])==null?void 0x0:_0x2aad74[_0x1371d5];return w(_0x523298,{'settings':_0x15d1cd[_0x25e8d7(0x15f)]===void 0x0?_0x4aec4a??null:_0x15d1cd[_0x25e8d7(0x15f)],'sectionId':_0x15d1cd[_0x25e8d7(0x1a1)],'suppressEndnotes':_0x15d1cd[_0x25e8d7(0x16e)]},_0x1371d5);}function A(_0x4faa97,_0x5c4823,_0x3f44e4){const _0xdfb00b=_0x22b396;var _0x1763a4,_0x4b92d2,_0x568fe8;if(!_0x5c4823||_0x5c4823[_0xdfb00b(0x160)])return!0x1;let _0x315b88=_0x4faa97[_0xdfb00b(0x1cb)](_0x893d89)[_0xdfb00b(0x1ac)](_0x5c4823['unitId'],_0x176aa1['UNIVER_DOC']),_0xef938a=_0x315b88==null?void 0x0:_0x315b88[_0xdfb00b(0x1b5)](),{offset:_0x34b498}=_0x5c4823;if(!O(_0xef938a,_0x34b498))return!0x1;let _0x5ec2e3=k(_0xef938a,_0x5c4823,_0x3f44e4);if(_0x5ec2e3===!0x1)return!0x1;let _0x79f238=_0x5c4823[_0xdfb00b(0x16f)]??_0x342bc6(0xc);if((_0x1763a4=_0xef938a[_0xdfb00b(0x162)])!=null&&_0x1763a4[_0x79f238]||(_0x4b92d2=_0xef938a[_0xdfb00b(0x1c5)])!=null&&_0x4b92d2[_0x79f238]||(_0x568fe8=_0xef938a[_0xdfb00b(0x191)])!=null&&_0x568fe8[_0x79f238])return!0x1;let _0x3c4982=_0xe26de[_0xdfb00b(0x1c9)]({'type':_0x3f44e4,'noteId':_0x79f238,'body':_0x5c4823[_0xdfb00b(0x17b)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x1935ce(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x13d756(new Set()),'startIndex':0x1}]},'customMark':_0x5c4823[_0xdfb00b(0x192)],'referenceTextStyle':_0x5c4823[_0xdfb00b(0x1a3)],'tableSource':_0x5c4823[_0xdfb00b(0x18f)],'drawings':_0x5c4823[_0xdfb00b(0x169)],'drawingsOrder':_0x5c4823[_0xdfb00b(0x195)],'lists':_0x5c4823['lists']});if(_0x57396f({'notes':{[_0x79f238]:_0x3c4982}})[_0xdfb00b(0x172)]>0x0)return!0x1;let _0x3dba8f=new _0x30f2e6();_0x34b498>0x0&&_0x3dba8f[_0xdfb00b(0x17c)](_0x34b498),_0x3dba8f[_0xdfb00b(0x185)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x3f44e4===_0xdfb00b(0x17f)?_0x1c2972[_0xdfb00b(0x183)]:_0x1c2972[_0xdfb00b(0x174)],'rangeId':_0x342bc6(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x79f238}}]});let _0x2acb2e=_0x268637[_0xdfb00b(0x1a2)](),_0x4ea11a=_0xef938a[_0xdfb00b(0x162)]==null?_0x2acb2e[_0xdfb00b(0x1ab)](['notes'],{[_0x79f238]:_0x3c4982}):_0x2acb2e[_0xdfb00b(0x1ab)]([_0xdfb00b(0x162),_0x79f238],_0x3c4982);return!!_0x4faa97[_0xdfb00b(0x1cb)](_0x1dc54d)[_0xdfb00b(0x15e)](_0x49f177['id'],{'unitId':_0x5c4823['unitId'],'segmentId':'','historyAction':_0xdfb00b(0x1ca)+_0x3f44e4,'actions':_0x268637['compose'](_0x268637['compose'](_0x5ec2e3,_0x4ea11a),_0x2acb2e[_0xdfb00b(0x1bc)](_0x3dba8f[_0xdfb00b(0x190)](),[_0xdfb00b(0x17b)])),'textRanges':[{'segmentId':_0x79f238,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x3399(_0x131595,_0x167742){_0x131595=_0x131595-0x15d;const _0x4b5495=_0x4b54();let _0x33992e=_0x4b5495[_0x131595];return _0x33992e;}function j(_0x164544,_0x180e32,_0x3e84ac){const _0x595870=_0x22b396;var _0x1a0c28,_0x171543;if(!_0x180e32)return!0x1;let _0x37057d=_0x164544['get'](_0x893d89)[_0x595870(0x1ac)](_0x180e32[_0x595870(0x1a9)],_0x176aa1['UNIVER_DOC']),_0x53f88e=_0x37057d==null?void 0x0:_0x37057d['getSnapshot'](),_0xa31564=_0x53f88e==null||(_0x1a0c28=_0x53f88e[_0x595870(0x162)])==null?void 0x0:_0x1a0c28[_0x180e32[_0x595870(0x16f)]],_0x17debb=_0x53f88e==null||(_0x171543=_0x53f88e[_0x595870(0x17b)])==null||(_0x171543=_0x171543[_0x595870(0x176)])==null?void 0x0:_0x171543['find'](_0x4172a7=>{const _0xc4de05=_0x595870;var _0x5c0551;return(_0x4172a7[_0xc4de05(0x19b)]===_0x1c2972[_0xc4de05(0x183)]||_0x4172a7[_0xc4de05(0x19b)]===_0x1c2972[_0xc4de05(0x174)])&&((_0x5c0551=_0x4172a7[_0xc4de05(0x16d)])==null?void 0x0:_0x5c0551[_0xc4de05(0x16f)])===_0x180e32[_0xc4de05(0x16f)];});if(!_0x53f88e||_0x53f88e[_0x595870(0x1be)][_0x595870(0x1c8)]!==_0x5d9527[_0x595870(0x18e)]||!_0xa31564||_0xa31564[_0x595870(0x1b6)]!==_0x3e84ac||!_0x17debb)return!0x1;let _0x4a324d=new _0x30f2e6();_0x17debb[_0x595870(0x1af)]>0x0&&_0x4a324d[_0x595870(0x17c)](_0x17debb[_0x595870(0x1af)]),_0x4a324d[_0x595870(0x1bb)](0x1);let _0x15782a=_0x268637[_0x595870(0x1a2)]();return!!_0x164544['get'](_0x1dc54d)[_0x595870(0x15e)](_0x49f177['id'],{'unitId':_0x180e32[_0x595870(0x1a9)],'segmentId':'','historyAction':_0x595870(0x19d)+_0x3e84ac,'actions':_0x268637[_0x595870(0x188)](_0x15782a[_0x595870(0x1bc)](_0x4a324d[_0x595870(0x190)](),[_0x595870(0x17b)]),_0x15782a[_0x595870(0x187)]([_0x595870(0x162),_0x180e32[_0x595870(0x16f)]],_0xa31564)),'textRanges':[{'startOffset':_0x17debb['startIndex'],'endOffset':_0x17debb['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':'doc.command.insert-footnote','type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x3fb8d3,_0x59beeb)=>A(_0x3fb8d3,_0x59beeb,'footnote')},N={'id':_0x22b396(0x168),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x78ddae,_0x2a8722)=>j(_0x78ddae,_0x2a8722,_0x22b396(0x17f))},P={'id':_0x22b396(0x180),'type':_0x2c710e['COMMAND'],'handler':(_0x2bb5c6,_0x29719b)=>A(_0x2bb5c6,_0x29719b,_0x22b396(0x1a0))},F={'id':_0x22b396(0x19e),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0xa9bac,_0x286f9a)=>j(_0xa9bac,_0x286f9a,'endnote')};var I=_0x22b396(0x177),L='1.1.0';const R={};function z(_0x50bc0a,_0x319b4f){return function(_0x53ee3e,_0x5229e3){_0x319b4f(_0x53ee3e,_0x5229e3,_0x50bc0a);};}function B(_0x4b90f1,_0x27ee0a,_0x4dce8d,_0x1d3a0e){const _0x17fa7f=_0x22b396;var _0x1935ba=arguments[_0x17fa7f(0x172)],_0x447408=_0x1935ba<0x3?_0x27ee0a:_0x1d3a0e===null?_0x1d3a0e=Object[_0x17fa7f(0x1c1)](_0x27ee0a,_0x4dce8d):_0x1d3a0e,_0x60c5b4;if(typeof Reflect==_0x17fa7f(0x1ae)&&typeof Reflect[_0x17fa7f(0x18c)]==_0x17fa7f(0x1c7))_0x447408=Reflect[_0x17fa7f(0x18c)](_0x4b90f1,_0x27ee0a,_0x4dce8d,_0x1d3a0e);else{for(var _0xef3af9=_0x4b90f1[_0x17fa7f(0x172)]-0x1;_0xef3af9>=0x0;_0xef3af9--)(_0x60c5b4=_0x4b90f1[_0xef3af9])&&(_0x447408=(_0x1935ba<0x3?_0x60c5b4(_0x447408):_0x1935ba>0x3?_0x60c5b4(_0x27ee0a,_0x4dce8d,_0x447408):_0x60c5b4(_0x27ee0a,_0x4dce8d))||_0x447408);}return _0x1935ba>0x3&&_0x447408&&Object[_0x17fa7f(0x173)](_0x27ee0a,_0x4dce8d,_0x447408),_0x447408;}function V(_0x897c02){'@babel/helpers - typeof';const _0x19ec1d=_0x22b396;return V=typeof Symbol==_0x19ec1d(0x1c7)&&typeof Symbol[_0x19ec1d(0x1b3)]==_0x19ec1d(0x199)?function(_0x565405){return typeof _0x565405;}:function(_0x1e53f4){const _0x3aa67=_0x19ec1d;return _0x1e53f4&&typeof Symbol==_0x3aa67(0x1c7)&&_0x1e53f4[_0x3aa67(0x17d)]===Symbol&&_0x1e53f4!==Symbol['prototype']?_0x3aa67(0x199):typeof _0x1e53f4;},V(_0x897c02);}function H(_0x403f6e,_0x40d696){const _0x509b69=_0x22b396;if(V(_0x403f6e)!=_0x509b69(0x1ae)||!_0x403f6e)return _0x403f6e;var _0x33e79f=_0x403f6e[Symbol[_0x509b69(0x197)]];if(_0x33e79f!==void 0x0){var _0x7e58c0=_0x33e79f['call'](_0x403f6e,_0x40d696||_0x509b69(0x175));if(V(_0x7e58c0)!='object')return _0x7e58c0;throw TypeError(_0x509b69(0x16b));}return(_0x40d696===_0x509b69(0x1ad)?String:Number)(_0x403f6e);}function U(_0x1e4f28){const _0x3dab0e=_0x22b396;var _0x264ce4=H(_0x1e4f28,_0x3dab0e(0x1ad));return V(_0x264ce4)==_0x3dab0e(0x199)?_0x264ce4:_0x264ce4+'';}function W(_0x4a00fc,_0x29bfa2,_0x246d2a){const _0x2aa662=_0x22b396;return(_0x29bfa2=U(_0x29bfa2))in _0x4a00fc?Object[_0x2aa662(0x173)](_0x4a00fc,_0x29bfa2,{'value':_0x246d2a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a00fc[_0x29bfa2]=_0x246d2a,_0x4a00fc;}let G=class extends _0x3f78bf{constructor(_0x33fc1a=R,_0x428937,_0x25322f,_0x1df9f0){const _0x345774=_0x22b396;super(),this[_0x345774(0x198)]=_0x33fc1a,this[_0x345774(0x1aa)]=_0x428937,this[_0x345774(0x18d)]=_0x25322f,this[_0x345774(0x1b8)]=_0x1df9f0;let {..._0x35046a}=_0x5d1571({},R,this[_0x345774(0x198)]);this['_configService'][_0x345774(0x182)](_0x345774(0x1b4),_0x35046a);}[_0x22b396(0x165)](){const _0x441759=_0x22b396;[M,N,E,P,F,D]['forEach'](_0x1377b3=>this[_0x441759(0x179)](this[_0x441759(0x1b8)]['registerCommand'](_0x1377b3)));}};W(G,_0x22b396(0x161),_0x22b396(0x1c4)),W(G,'packageName',I),W(G,'version',L),W(G,_0x22b396(0x1b6),_0x176aa1[_0x22b396(0x1ba)]),G=B([_0x382a79(_0x163745,_0x47677c),z(0x1,_0x72c1ec(_0xe4c5b2)),z(0x2,_0x417b48),z(0x3,_0x1dc54d)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
|
|
1
|
+
const _0xcab6d5=_0x2451;function _0xc493(){const _0x1c4c80=['string','eachSect','doc.command.insert-footnote','segmentId','unitId','drawings','syncExecuteCommand','1.2.0','registerCommand','properties','_commandService','diffValue','iterator','docs-reference.config','setConfig','default','32iHzgBZ','forEach','sectionId','continuationNotice','object','every','columnCount','dataStream','386800IVwQit','function','editOp','prototype','serialize','UNIVER_DOC','tableSource','keys','documentFlavor','doc.command.insert-endnote','toPrimitive','boolean','_injector','symbol','body','@univerjs-pro/docs-reference','get','5049608bIjQZz','replaceOp','insert','181300MXfczk','startNumber','_config','delete-','734148xWeWHy','decorate','referenceTextStyle','length','version','footers','constructor','noteProperties','startIndex','UNIVER_DOCS_REFERENCE_PLUGIN','continuous','insertOp','packageName','numberFormat','removeOp','compose','deepClone','2300704uDdEbi','sectionBreaks','notes','getSnapshot','getOwnPropertyDescriptor','onStarting','isNoop','isInteger','noteSettings','find','1819122SScqMc','delete','pluginName','retain','ENDNOTE','docEnd','settings','separator','getInstance','includes','doc.command.set-endnote-settings','findIndex','insert-','footnote','headers','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1166344dMAWpa','type','FOOTNOTE','_configService','set-','suppressEndnotes','documentStyle','noteId','-settings','position','COMMAND','rangeType','drawingsOrder','getUnit','defineProperty','endnote','continuationSeparator','doc.command.delete-endnote','TRADITIONAL'];_0xc493=function(){return _0x1c4c80;};return _0xc493();}(function(_0x5612ec,_0x412e99){const _0x3e746e=_0x2451,_0x2efae7=_0x5612ec();while(!![]){try{const _0x174712=parseInt(_0x3e746e(0x1a3))/0x1+-parseInt(_0x3e746e(0x1d2))/0x2+parseInt(_0x3e746e(0x1a7))/0x3+parseInt(_0x3e746e(0x1f5))/0x4*(parseInt(_0x3e746e(0x1fd))/0x5)+-parseInt(_0x3e746e(0x1c2))/0x6+-parseInt(_0x3e746e(0x1b8))/0x7+parseInt(_0x3e746e(0x20e))/0x8;if(_0x174712===_0x412e99)break;else _0x2efae7['push'](_0x2efae7['shift']());}catch(_0x2aab9c){_0x2efae7['push'](_0x2efae7['shift']());}}}(_0xc493,0x7090a));import{CommandType as _0x76e9a7,CustomRangeType as _0x52b17f,DependentOn as _0x3afae4,DocumentFlavor as _0x316f36,ICommandService as _0xba514f,IConfigService as _0x18a911,IUniverInstanceService as _0x3981be,Inject as _0x453a7f,Injector as _0xcf265b,JSONX as _0x16075d,Plugin as _0x3b736b,TextX as _0x20e6da,Tools as _0x39b95c,UniverInstanceType as _0x1576e6,createParagraphId as _0x102dcb,createSectionId as _0x1a8d07,generateRandomId as _0x4d0e30,merge as _0x173d5f,validateDocBodyStructure as _0xa0a371,validateDocumentStructure as _0x2012aa}from'@univerjs/core';import{RichTextEditingMutation as _0x81e76f,UniverDocsPlugin as _0x17fe40}from'@univerjs/docs';import{UniverLicensePlugin as _0x45f2dd}from'@univerjs-pro/license';function C(_0x3a8612,_0x26572c,_0x510a6e){const _0x44f79f=_0x2451;if(_0x3a8612[_0x44f79f(0x1db)]!=null&&!(_0x26572c===_0x44f79f(0x1cf)?['pageBottom','beneathText']:[_0x44f79f(0x1c7),'sectEnd'])[_0x44f79f(0x1cb)](_0x3a8612[_0x44f79f(0x1db)])||_0x3a8612['restart']!=null&&!(_0x26572c===_0x44f79f(0x1cf)?[_0x44f79f(0x1b1),_0x44f79f(0x1e6),'eachPage']:['continuous','eachSect'])[_0x44f79f(0x1cb)](_0x3a8612['restart'])||_0x3a8612[_0x44f79f(0x1a4)]!=null&&(!Number[_0x44f79f(0x1bf)](_0x3a8612[_0x44f79f(0x1a4)])||_0x3a8612[_0x44f79f(0x1a4)]<0x1)||_0x44f79f(0x1fb)in _0x3a8612&&_0x3a8612[_0x44f79f(0x1fb)]!=null&&(_0x26572c!==_0x44f79f(0x1cf)||!Number['isInteger'](_0x3a8612[_0x44f79f(0x1fb)])||_0x3a8612['columnCount']<0x0||_0x3a8612['columnCount']>0x4)||_0x3a8612['numberFormat']!=null&&(typeof _0x3a8612[_0x44f79f(0x1b4)]!='string'||_0x3a8612[_0x44f79f(0x1b4)][_0x44f79f(0x1aa)]===0x0))return!0x1;for(let _0x4342b1 of[_0x3a8612[_0x44f79f(0x1c9)],_0x3a8612[_0x44f79f(0x1e2)],_0x3a8612[_0x44f79f(0x1f8)]])if(_0x4342b1!=null&&(_0x510a6e!=null||_0xa0a371(_0x4342b1)['length']>0x0))return!0x1;return!0x0;}function w(_0x47ca29,_0x230b3c,_0x5776ca){const _0x3dba84=_0x2451;var _0x57a8cc,_0x3f2e88;if(_0x230b3c['settings']!=null&&!C(_0x230b3c[_0x3dba84(0x1c8)],_0x5776ca,_0x230b3c[_0x3dba84(0x1f7)]))return!0x1;let _0x202ba3=((_0x57a8cc=_0x47ca29[_0x3dba84(0x20b)])==null||(_0x57a8cc=_0x57a8cc['sectionBreaks'])==null?void 0x0:_0x57a8cc[_0x3dba84(0x1cd)](_0x15a6bc=>_0x15a6bc[_0x3dba84(0x1f7)]===_0x230b3c[_0x3dba84(0x1f7)]))??-0x1;if(_0x230b3c[_0x3dba84(0x1f7)]!=null&&_0x202ba3<0x0)return!0x1;let _0x4122c8=_0x230b3c[_0x3dba84(0x1f7)]==null?_0x47ca29[_0x3dba84(0x1c0)]:(_0x3f2e88=_0x47ca29[_0x3dba84(0x20b)])==null||(_0x3f2e88=_0x3f2e88[_0x3dba84(0x1b9)])==null?void 0x0:_0x3f2e88[_0x202ba3][_0x3dba84(0x1ae)],_0x45042e=_0x230b3c[_0x3dba84(0x1c8)]==null?void 0x0:_0x39b95c[_0x3dba84(0x1b7)](_0x230b3c[_0x3dba84(0x1c8)]),_0x2a52b6=_0x230b3c['sectionId']==null?[_0x3dba84(0x1c0)]:[_0x3dba84(0x20b),_0x3dba84(0x1b9),_0x202ba3,_0x3dba84(0x1ae)],_0x360db7=_0x16075d['getInstance'](),_0x40993b=null;if(_0x39b95c[_0x3dba84(0x1f0)](_0x4122c8==null?void 0x0:_0x4122c8[_0x5776ca],_0x45042e)||(_0x40993b=_0x4122c8==null?_0x360db7['insertOp'](_0x2a52b6,{[_0x5776ca]:_0x45042e}):_0x230b3c['sectionId']!=null&&_0x45042e==null&&Object[_0x3dba84(0x204)](_0x4122c8)[_0x3dba84(0x1fa)](_0x26ca43=>_0x26ca43===_0x5776ca)?_0x360db7[_0x3dba84(0x1b5)](_0x2a52b6,_0x4122c8):_0x360db7[_0x3dba84(0x20f)]([..._0x2a52b6,_0x5776ca],_0x4122c8[_0x5776ca],_0x45042e)),_0x230b3c[_0x3dba84(0x1d7)]!=null){var _0x567e6a;if(_0x5776ca!==_0x3dba84(0x1e1)||_0x230b3c[_0x3dba84(0x1f7)]==null||typeof _0x230b3c[_0x3dba84(0x1d7)]!=_0x3dba84(0x208))return!0x1;let _0x144532=(_0x567e6a=_0x47ca29[_0x3dba84(0x20b)])==null||(_0x567e6a=_0x567e6a[_0x3dba84(0x1b9)])==null?void 0x0:_0x567e6a[_0x202ba3]['suppressEndnotes'];_0x144532!==_0x230b3c[_0x3dba84(0x1d7)]&&(_0x40993b=_0x16075d[_0x3dba84(0x1b6)](_0x40993b,_0x360db7[_0x3dba84(0x20f)]([_0x3dba84(0x20b),_0x3dba84(0x1b9),_0x202ba3,'suppressEndnotes'],_0x144532,_0x230b3c[_0x3dba84(0x1d7)])));}return _0x40993b;}function T(_0x90552b,_0x4bcfcc,_0x43942a){const _0x3b7327=_0x2451;if(!_0x4bcfcc)return!0x1;let _0x55b3ec=_0x90552b[_0x3b7327(0x20d)](_0x3981be)[_0x3b7327(0x1df)](_0x4bcfcc[_0x3b7327(0x1e9)],_0x1576e6['UNIVER_DOC']),_0x33ef95=_0x55b3ec==null?void 0x0:_0x55b3ec['getSnapshot']();if(!_0x33ef95||_0x33ef95['documentStyle'][_0x3b7327(0x205)]!==_0x316f36[_0x3b7327(0x1e4)])return!0x1;let _0x8d98a0=w(_0x33ef95,_0x4bcfcc,_0x43942a);return _0x8d98a0===!0x1||_0x16075d[_0x3b7327(0x1be)](_0x8d98a0)?!0x1:!!_0x90552b[_0x3b7327(0x20d)](_0xba514f)[_0x3b7327(0x1eb)](_0x81e76f['id'],{'unitId':_0x4bcfcc[_0x3b7327(0x1e9)],'segmentId':'','historyAction':_0x3b7327(0x1d6)+_0x43942a+_0x3b7327(0x1da),'actions':_0x8d98a0,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x76e9a7[_0xcab6d5(0x1dc)],'handler':(_0x4a1bf6,_0x29a3a9)=>T(_0x4a1bf6,_0x29a3a9,'footnote')},D={'id':_0xcab6d5(0x1cc),'type':_0x76e9a7['COMMAND'],'handler':(_0x4517aa,_0x367ef2)=>T(_0x4517aa,_0x367ef2,_0xcab6d5(0x1e1))};function O(_0x5d82d6,_0x34719a){const _0x2b2572=_0xcab6d5;return(_0x5d82d6==null?void 0x0:_0x5d82d6[_0x2b2572(0x1d8)]['documentFlavor'])===_0x316f36['TRADITIONAL']&&!!_0x5d82d6[_0x2b2572(0x20b)]&&Number[_0x2b2572(0x1bf)](_0x34719a)&&_0x34719a>=0x0&&_0x34719a<_0x5d82d6[_0x2b2572(0x20b)][_0x2b2572(0x1fc)][_0x2b2572(0x1aa)]-0x1;}function k(_0x247c37,_0x32d2ce,_0x29a9d1){const _0x4a8588=_0xcab6d5;var _0x288143,_0x1c0ede;if(_0x32d2ce['settings']===void 0x0&&_0x32d2ce['suppressEndnotes']===void 0x0)return null;let _0x7edba6=_0x32d2ce[_0x4a8588(0x1f7)]==null?(_0x288143=_0x247c37[_0x4a8588(0x1c0)])==null?void 0x0:_0x288143[_0x29a9d1]:(_0x1c0ede=_0x247c37[_0x4a8588(0x20b)])==null||(_0x1c0ede=_0x1c0ede[_0x4a8588(0x1b9)])==null||(_0x1c0ede=_0x1c0ede[_0x4a8588(0x1c1)](_0x549529=>_0x549529['sectionId']===_0x32d2ce['sectionId']))==null||(_0x1c0ede=_0x1c0ede[_0x4a8588(0x1ae)])==null?void 0x0:_0x1c0ede[_0x29a9d1];return w(_0x247c37,{'settings':_0x32d2ce['settings']===void 0x0?_0x7edba6??null:_0x32d2ce[_0x4a8588(0x1c8)],'sectionId':_0x32d2ce['sectionId'],'suppressEndnotes':_0x32d2ce['suppressEndnotes']},_0x29a9d1);}function A(_0x4a7b0c,_0x13c341,_0x26c4d3){const _0x5bbfad=_0xcab6d5;var _0x1512a1,_0x351e52,_0x26229d;if(!_0x13c341||_0x13c341[_0x5bbfad(0x1e8)])return!0x1;let _0xb35a8f=_0x4a7b0c[_0x5bbfad(0x20d)](_0x3981be)[_0x5bbfad(0x1df)](_0x13c341[_0x5bbfad(0x1e9)],_0x1576e6[_0x5bbfad(0x202)]),_0x1f79c4=_0xb35a8f==null?void 0x0:_0xb35a8f[_0x5bbfad(0x1bb)](),{offset:_0x309499}=_0x13c341;if(!O(_0x1f79c4,_0x309499))return!0x1;let _0x43fdf3=k(_0x1f79c4,_0x13c341,_0x26c4d3);if(_0x43fdf3===!0x1)return!0x1;let _0x1ef707=_0x13c341['noteId']??_0x4d0e30(0xc);if((_0x1512a1=_0x1f79c4['notes'])!=null&&_0x1512a1[_0x1ef707]||(_0x351e52=_0x1f79c4[_0x5bbfad(0x1d0)])!=null&&_0x351e52[_0x1ef707]||(_0x26229d=_0x1f79c4[_0x5bbfad(0x1ac)])!=null&&_0x26229d[_0x1ef707])return!0x1;let _0x25e593=_0x39b95c[_0x5bbfad(0x1b7)]({'type':_0x26c4d3,'noteId':_0x1ef707,'body':_0x13c341['body']??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x102dcb(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x1a8d07(new Set()),'startIndex':0x1}]},'customMark':_0x13c341['customMark'],'referenceTextStyle':_0x13c341[_0x5bbfad(0x1a9)],'tableSource':_0x13c341[_0x5bbfad(0x203)],'drawings':_0x13c341[_0x5bbfad(0x1ea)],'drawingsOrder':_0x13c341[_0x5bbfad(0x1de)],'lists':_0x13c341['lists']});if(_0x2012aa({'notes':{[_0x1ef707]:_0x25e593}})[_0x5bbfad(0x1aa)]>0x0)return!0x1;let _0x5cd346=new _0x20e6da();_0x309499>0x0&&_0x5cd346[_0x5bbfad(0x1c5)](_0x309499),_0x5cd346[_0x5bbfad(0x210)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x26c4d3===_0x5bbfad(0x1cf)?_0x52b17f[_0x5bbfad(0x1d4)]:_0x52b17f['ENDNOTE'],'rangeId':_0x4d0e30(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x1ef707}}]});let _0x58528d=_0x16075d[_0x5bbfad(0x1ca)](),_0x142eec=_0x1f79c4[_0x5bbfad(0x1ba)]==null?_0x58528d[_0x5bbfad(0x1b2)](['notes'],{[_0x1ef707]:_0x25e593}):_0x58528d[_0x5bbfad(0x1b2)]([_0x5bbfad(0x1ba),_0x1ef707],_0x25e593);return!!_0x4a7b0c[_0x5bbfad(0x20d)](_0xba514f)['syncExecuteCommand'](_0x81e76f['id'],{'unitId':_0x13c341[_0x5bbfad(0x1e9)],'segmentId':'','historyAction':_0x5bbfad(0x1ce)+_0x26c4d3,'actions':_0x16075d[_0x5bbfad(0x1b6)](_0x16075d['compose'](_0x43fdf3,_0x142eec),_0x58528d[_0x5bbfad(0x1ff)](_0x5cd346[_0x5bbfad(0x201)](),['body'])),'textRanges':[{'segmentId':_0x1ef707,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x5447bb,_0x79a261,_0x5a4eb){const _0x2bf8f6=_0xcab6d5;var _0x3d24a8,_0x1229e1;if(!_0x79a261)return!0x1;let _0x5e3e24=_0x5447bb[_0x2bf8f6(0x20d)](_0x3981be)['getUnit'](_0x79a261[_0x2bf8f6(0x1e9)],_0x1576e6['UNIVER_DOC']),_0x15047e=_0x5e3e24==null?void 0x0:_0x5e3e24[_0x2bf8f6(0x1bb)](),_0x3fec18=_0x15047e==null||(_0x3d24a8=_0x15047e[_0x2bf8f6(0x1ba)])==null?void 0x0:_0x3d24a8[_0x79a261[_0x2bf8f6(0x1d9)]],_0x2c276b=_0x15047e==null||(_0x1229e1=_0x15047e[_0x2bf8f6(0x20b)])==null||(_0x1229e1=_0x1229e1['customRanges'])==null?void 0x0:_0x1229e1[_0x2bf8f6(0x1c1)](_0x129605=>{const _0x838542=_0x2bf8f6;var _0x1d9e21;return(_0x129605['rangeType']===_0x52b17f[_0x838542(0x1d4)]||_0x129605[_0x838542(0x1dd)]===_0x52b17f[_0x838542(0x1c6)])&&((_0x1d9e21=_0x129605[_0x838542(0x1ee)])==null?void 0x0:_0x1d9e21[_0x838542(0x1d9)])===_0x79a261[_0x838542(0x1d9)];});if(!_0x15047e||_0x15047e[_0x2bf8f6(0x1d8)][_0x2bf8f6(0x205)]!==_0x316f36[_0x2bf8f6(0x1e4)]||!_0x3fec18||_0x3fec18[_0x2bf8f6(0x1d3)]!==_0x5a4eb||!_0x2c276b)return!0x1;let _0x2ccd79=new _0x20e6da();_0x2c276b[_0x2bf8f6(0x1af)]>0x0&&_0x2ccd79[_0x2bf8f6(0x1c5)](_0x2c276b[_0x2bf8f6(0x1af)]),_0x2ccd79[_0x2bf8f6(0x1c3)](0x1);let _0x1f28a9=_0x16075d[_0x2bf8f6(0x1ca)]();return!!_0x5447bb[_0x2bf8f6(0x20d)](_0xba514f)[_0x2bf8f6(0x1eb)](_0x81e76f['id'],{'unitId':_0x79a261[_0x2bf8f6(0x1e9)],'segmentId':'','historyAction':_0x2bf8f6(0x1a6)+_0x5a4eb,'actions':_0x16075d[_0x2bf8f6(0x1b6)](_0x1f28a9['editOp'](_0x2ccd79[_0x2bf8f6(0x201)](),[_0x2bf8f6(0x20b)]),_0x1f28a9[_0x2bf8f6(0x1b5)]([_0x2bf8f6(0x1ba),_0x79a261['noteId']],_0x3fec18)),'textRanges':[{'startOffset':_0x2c276b[_0x2bf8f6(0x1af)],'endOffset':_0x2c276b[_0x2bf8f6(0x1af)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0xcab6d5(0x1e7),'type':_0x76e9a7[_0xcab6d5(0x1dc)],'handler':(_0x2cebd0,_0x3a8db5)=>A(_0x2cebd0,_0x3a8db5,_0xcab6d5(0x1cf))},N={'id':'doc.command.delete-footnote','type':_0x76e9a7[_0xcab6d5(0x1dc)],'handler':(_0x5d8391,_0x21980e)=>j(_0x5d8391,_0x21980e,'footnote')},P={'id':_0xcab6d5(0x206),'type':_0x76e9a7[_0xcab6d5(0x1dc)],'handler':(_0x4f75a2,_0x1bdebe)=>A(_0x4f75a2,_0x1bdebe,_0xcab6d5(0x1e1))},F={'id':_0xcab6d5(0x1e3),'type':_0x76e9a7[_0xcab6d5(0x1dc)],'handler':(_0x477b54,_0x256525)=>j(_0x477b54,_0x256525,_0xcab6d5(0x1e1))};var I=_0xcab6d5(0x20c),L=_0xcab6d5(0x1ec);const R={};function z(_0x6b7b7f,_0x454122){return function(_0x55837e,_0x25ab53){_0x454122(_0x55837e,_0x25ab53,_0x6b7b7f);};}function B(_0x19ed6d,_0x69bf7e,_0x2e4b7f,_0x2d934f){const _0x4cea77=_0xcab6d5;var _0x1beb45=arguments[_0x4cea77(0x1aa)],_0x39f6a5=_0x1beb45<0x3?_0x69bf7e:_0x2d934f===null?_0x2d934f=Object[_0x4cea77(0x1bc)](_0x69bf7e,_0x2e4b7f):_0x2d934f,_0x1b7513;if(typeof Reflect==_0x4cea77(0x1f9)&&typeof Reflect[_0x4cea77(0x1a8)]==_0x4cea77(0x1fe))_0x39f6a5=Reflect['decorate'](_0x19ed6d,_0x69bf7e,_0x2e4b7f,_0x2d934f);else{for(var _0x2bffe1=_0x19ed6d['length']-0x1;_0x2bffe1>=0x0;_0x2bffe1--)(_0x1b7513=_0x19ed6d[_0x2bffe1])&&(_0x39f6a5=(_0x1beb45<0x3?_0x1b7513(_0x39f6a5):_0x1beb45>0x3?_0x1b7513(_0x69bf7e,_0x2e4b7f,_0x39f6a5):_0x1b7513(_0x69bf7e,_0x2e4b7f))||_0x39f6a5);}return _0x1beb45>0x3&&_0x39f6a5&&Object[_0x4cea77(0x1e0)](_0x69bf7e,_0x2e4b7f,_0x39f6a5),_0x39f6a5;}function V(_0x29022d){'@babel/helpers - typeof';const _0x22c43b=_0xcab6d5;return V=typeof Symbol=='function'&&typeof Symbol[_0x22c43b(0x1f1)]==_0x22c43b(0x20a)?function(_0x440e0d){return typeof _0x440e0d;}:function(_0x482b5d){const _0x2da32d=_0x22c43b;return _0x482b5d&&typeof Symbol==_0x2da32d(0x1fe)&&_0x482b5d[_0x2da32d(0x1ad)]===Symbol&&_0x482b5d!==Symbol[_0x2da32d(0x200)]?_0x2da32d(0x20a):typeof _0x482b5d;},V(_0x29022d);}function H(_0x3bb24c,_0x4c3450){const _0x34602f=_0xcab6d5;if(V(_0x3bb24c)!=_0x34602f(0x1f9)||!_0x3bb24c)return _0x3bb24c;var _0x3a6480=_0x3bb24c[Symbol[_0x34602f(0x207)]];if(_0x3a6480!==void 0x0){var _0x9b647a=_0x3a6480['call'](_0x3bb24c,_0x4c3450||_0x34602f(0x1f4));if(V(_0x9b647a)!=_0x34602f(0x1f9))return _0x9b647a;throw TypeError(_0x34602f(0x1d1));}return(_0x4c3450==='string'?String:Number)(_0x3bb24c);}function _0x2451(_0x18f4f8,_0x461c6d){_0x18f4f8=_0x18f4f8-0x1a3;const _0xc49367=_0xc493();let _0x24512e=_0xc49367[_0x18f4f8];return _0x24512e;}function U(_0x24b004){const _0x1becef=_0xcab6d5;var _0x289d78=H(_0x24b004,_0x1becef(0x1e5));return V(_0x289d78)=='symbol'?_0x289d78:_0x289d78+'';}function W(_0x4f5504,_0x590c79,_0x5a970c){return(_0x590c79=U(_0x590c79))in _0x4f5504?Object['defineProperty'](_0x4f5504,_0x590c79,{'value':_0x5a970c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f5504[_0x590c79]=_0x5a970c,_0x4f5504;}let G=class extends _0x3b736b{constructor(_0x49c9c0=R,_0x128d4c,_0x515e77,_0x33d75c){const _0x40f382=_0xcab6d5;super(),this[_0x40f382(0x1a5)]=_0x49c9c0,this[_0x40f382(0x209)]=_0x128d4c,this['_configService']=_0x515e77,this['_commandService']=_0x33d75c;let {..._0x16fc63}=_0x173d5f({},R,this[_0x40f382(0x1a5)]);this[_0x40f382(0x1d5)][_0x40f382(0x1f3)](_0x40f382(0x1f2),_0x16fc63);}[_0xcab6d5(0x1bd)](){const _0x4812fc=_0xcab6d5;[M,N,E,P,F,D][_0x4812fc(0x1f6)](_0x3f31d4=>this['disposeWithMe'](this[_0x4812fc(0x1ef)][_0x4812fc(0x1ed)](_0x3f31d4)));}};W(G,_0xcab6d5(0x1c4),_0xcab6d5(0x1b0)),W(G,_0xcab6d5(0x1b3),I),W(G,_0xcab6d5(0x1ab),L),W(G,_0xcab6d5(0x1d3),_0x1576e6['UNIVER_DOC']),G=B([_0x3afae4(_0x45f2dd,_0x17fe40),z(0x1,_0x453a7f(_0xcf265b)),z(0x2,_0x18a911),z(0x3,_0xba514f)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4f9d(){const _0x3c5a46=['43666ObLQxk','deleteEndnote','765420ShjAvr','sort','getFootnoteSettings','5wpKhwN','_injector','insertFootnote','customRanges','getEndnoteSettings','getSnapshot','setEndnoteSettings','getDocumentDataModel','32658sNivpz','58878OUAeds','body','startIndex','sectionBreaks','flatMap','rangeType','properties','string','noteSettings','749946EhbGth','find','endnote','1480yIidmO','deepClone','notes','filter','deleteFootnote','get','noteId','17700370UjDuDU','332QkAHcf','ENDNOTE','setFootnoteSettings','2820696CDWMCf','insertEndnote','syncExecuteCommand'];_0x4f9d=function(){return _0x3c5a46;};return _0x4f9d();}const _0x77d367=_0x1238;function _0x1238(_0x2a2ab5,_0x3309c9){_0x2a2ab5=_0x2a2ab5-0x9f;const _0x4f9dd4=_0x4f9d();let _0x1238f8=_0x4f9dd4[_0x2a2ab5];return _0x1238f8;}(function(_0x8440f8,_0x47c4ed){const _0x4e3f0a=_0x1238,_0x53f61e=_0x8440f8();while(!![]){try{const _0x20d8ad=-parseInt(_0x4e3f0a(0xad))/0x1+-parseInt(_0x4e3f0a(0xc2))/0x2+parseInt(_0x4e3f0a(0xb8))/0x3*(parseInt(_0x4e3f0a(0xa5))/0x4)+parseInt(_0x4e3f0a(0xb0))/0x5*(parseInt(_0x4e3f0a(0xa8))/0x6)+parseInt(_0x4e3f0a(0xab))/0x7+parseInt(_0x4e3f0a(0xc5))/0x8*(-parseInt(_0x4e3f0a(0xb9))/0x9)+parseInt(_0x4e3f0a(0xa4))/0xa;if(_0x20d8ad===_0x47c4ed)break;else _0x53f61e['push'](_0x53f61e['shift']());}catch(_0x4cd0f3){_0x53f61e['push'](_0x53f61e['shift']());}}}(_0x4f9d,0xc3222));import{DeleteDocumentEndnoteCommand as _0x17f5ae,DeleteDocumentFootnoteCommand as _0x4fddd5,InsertDocumentEndnoteCommand as _0x483162,InsertDocumentFootnoteCommand as _0x488473,SetDocumentEndnoteSettingsCommand as _0x4d87d0,SetDocumentFootnoteSettingsCommand as _0x17b887}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x24777d,ICommandService as _0x3730ab,Tools as _0x58b7fb,generateRandomId as _0x1b385b}from'@univerjs/core';import{FDocument as _0x8e0fb4}from'@univerjs/docs/facade';var d=class extends _0x8e0fb4{[_0x77d367(0xb2)](_0x21e555,_0x2953b3={}){const _0x912f99=_0x77d367;let _0x4a8e8b=_0x1b385b(0xc);return this[_0x912f99(0xb1)][_0x912f99(0xa2)](_0x3730ab)[_0x912f99(0xaa)](_0x488473['id'],{..._0x2953b3,'unitId':this['id'],'offset':_0x21e555,'noteId':_0x4a8e8b})?_0x4a8e8b:null;}['getFootnotes'](){const _0x41d0d7=_0x77d367;var _0x24df8a;let _0x19b350=this[_0x41d0d7(0xb7)]()[_0x41d0d7(0xb5)]();return(((_0x24df8a=_0x19b350[_0x41d0d7(0xba)])==null?void 0x0:_0x24df8a[_0x41d0d7(0xb3)])??[])['filter'](_0x42c818=>_0x42c818[_0x41d0d7(0xbe)]===_0x24777d['FOOTNOTE'])[_0x41d0d7(0xae)]((_0x2c7627,_0x94debc)=>_0x2c7627[_0x41d0d7(0xbb)]-_0x94debc['startIndex'])[_0x41d0d7(0xbd)](_0x17600b=>{const _0x3430d2=_0x41d0d7;var _0x25ab2a,_0x35156e;let _0x1ad7ee=(_0x25ab2a=_0x17600b[_0x3430d2(0xbf)])==null?void 0x0:_0x25ab2a[_0x3430d2(0xa3)],_0x4abacd=typeof _0x1ad7ee=='string'?(_0x35156e=_0x19b350[_0x3430d2(0x9f)])==null?void 0x0:_0x35156e[_0x1ad7ee]:void 0x0;return _0x4abacd?[_0x58b7fb[_0x3430d2(0xc6)](_0x4abacd)]:[];});}[_0x77d367(0xa1)](_0x3b4cec){const _0x26c045=_0x77d367;return this[_0x26c045(0xb1)][_0x26c045(0xa2)](_0x3730ab)[_0x26c045(0xaa)](_0x4fddd5['id'],{'unitId':this['id'],'noteId':_0x3b4cec});}[_0x77d367(0xaf)](_0x5db839){const _0x14b931=_0x77d367;var _0x531f42,_0x23b2bb;let _0x16a0ef=this[_0x14b931(0xb7)]()['getSnapshot'](),_0x3d860a=_0x5db839==null?(_0x531f42=_0x16a0ef[_0x14b931(0xc1)])==null?void 0x0:_0x531f42['footnote']:(_0x23b2bb=_0x16a0ef[_0x14b931(0xba)])==null||(_0x23b2bb=_0x23b2bb[_0x14b931(0xbc)])==null||(_0x23b2bb=_0x23b2bb[_0x14b931(0xc3)](_0x5223c5=>_0x5223c5['sectionId']===_0x5db839))==null||(_0x23b2bb=_0x23b2bb['noteProperties'])==null?void 0x0:_0x23b2bb['footnote'];return _0x3d860a==null?void 0x0:_0x58b7fb[_0x14b931(0xc6)](_0x3d860a);}[_0x77d367(0xa7)](_0x1f4b4e,_0x40e732){const _0xd0fdc9=_0x77d367;return this['_injector'][_0xd0fdc9(0xa2)](_0x3730ab)[_0xd0fdc9(0xaa)](_0x17b887['id'],{'unitId':this['id'],'settings':_0x1f4b4e,'sectionId':_0x40e732});}[_0x77d367(0xa9)](_0x47b347,_0x139cfa={}){const _0x4a71e8=_0x77d367;let _0x2ad538=_0x1b385b(0xc);return this[_0x4a71e8(0xb1)]['get'](_0x3730ab)[_0x4a71e8(0xaa)](_0x483162['id'],{..._0x139cfa,'unitId':this['id'],'offset':_0x47b347,'noteId':_0x2ad538})?_0x2ad538:null;}['getEndnotes'](){const _0x2febeb=_0x77d367;var _0x1a69db;let _0x171b47=this[_0x2febeb(0xb7)]()['getSnapshot']();return(((_0x1a69db=_0x171b47[_0x2febeb(0xba)])==null?void 0x0:_0x1a69db[_0x2febeb(0xb3)])??[])[_0x2febeb(0xa0)](_0x434819=>_0x434819[_0x2febeb(0xbe)]===_0x24777d[_0x2febeb(0xa6)])['sort']((_0x1e2f06,_0x29cca6)=>_0x1e2f06[_0x2febeb(0xbb)]-_0x29cca6[_0x2febeb(0xbb)])['flatMap'](_0x4fca30=>{const _0x12a61f=_0x2febeb;var _0x45d60f,_0x31d8ec;let _0x47cfce=(_0x45d60f=_0x4fca30[_0x12a61f(0xbf)])==null?void 0x0:_0x45d60f[_0x12a61f(0xa3)],_0x17d324=typeof _0x47cfce==_0x12a61f(0xc0)?(_0x31d8ec=_0x171b47[_0x12a61f(0x9f)])==null?void 0x0:_0x31d8ec[_0x47cfce]:void 0x0;return _0x17d324?[_0x58b7fb[_0x12a61f(0xc6)](_0x17d324)]:[];});}[_0x77d367(0xac)](_0x542aa2){const _0x3f164e=_0x77d367;return this[_0x3f164e(0xb1)][_0x3f164e(0xa2)](_0x3730ab)['syncExecuteCommand'](_0x17f5ae['id'],{'unitId':this['id'],'noteId':_0x542aa2});}[_0x77d367(0xb4)](_0x43c5ff){const _0x443fb1=_0x77d367;var _0x4fde59,_0x1273df;let _0x4ac104=this[_0x443fb1(0xb7)]()[_0x443fb1(0xb5)](),_0x384153=_0x43c5ff==null?(_0x4fde59=_0x4ac104[_0x443fb1(0xc1)])==null?void 0x0:_0x4fde59[_0x443fb1(0xc4)]:(_0x1273df=_0x4ac104[_0x443fb1(0xba)])==null||(_0x1273df=_0x1273df['sectionBreaks'])==null||(_0x1273df=_0x1273df[_0x443fb1(0xc3)](_0x242d50=>_0x242d50['sectionId']===_0x43c5ff))==null||(_0x1273df=_0x1273df['noteProperties'])==null?void 0x0:_0x1273df[_0x443fb1(0xc4)];return _0x384153==null?void 0x0:_0x58b7fb[_0x443fb1(0xc6)](_0x384153);}[_0x77d367(0xb6)](_0x25d700,_0x225855){const _0x44a2fc=_0x77d367;return this['_injector'][_0x44a2fc(0xa2)](_0x3730ab)[_0x44a2fc(0xaa)](_0x4d87d0['id'],{'unitId':this['id'],'settings':_0x25d700,'sectionId':_0x225855});}};_0x8e0fb4['extend'](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x22b396=_0x3399;(function(_0x15d2ca,_0x1cbd33){const _0x309b25=_0x3399,_0x52a64a=_0x15d2ca();while(!![]){try{const _0x5e5a61=parseInt(_0x309b25(0x184))/0x1+-parseInt(_0x309b25(0x17e))/0x2*(parseInt(_0x309b25(0x15d))/0x3)+-parseInt(_0x309b25(0x16a))/0x4+-parseInt(_0x309b25(0x189))/0x5*(-parseInt(_0x309b25(0x17a))/0x6)+parseInt(_0x309b25(0x1b9))/0x7+parseInt(_0x309b25(0x1bf))/0x8+-parseInt(_0x309b25(0x1c3))/0x9;if(_0x5e5a61===_0x1cbd33)break;else _0x52a64a['push'](_0x52a64a['shift']());}catch(_0x3458a1){_0x52a64a['push'](_0x52a64a['shift']());}}}(_0x4b54,0x5d372));import{CommandType as _0x2c710e,CustomRangeType as _0x1c2972,DependentOn as _0x382a79,DocumentFlavor as _0x5d9527,ICommandService as _0x1dc54d,IConfigService as _0x417b48,IUniverInstanceService as _0x893d89,Inject as _0x72c1ec,Injector as _0xe4c5b2,JSONX as _0x268637,Plugin as _0x3f78bf,TextX as _0x30f2e6,Tools as _0xe26de,UniverInstanceType as _0x176aa1,createParagraphId as _0x1935ce,createSectionId as _0x13d756,generateRandomId as _0x342bc6,merge as _0x5d1571,validateDocBodyStructure as _0x2f43f1,validateDocumentStructure as _0x57396f}from'@univerjs/core';import{RichTextEditingMutation as _0x49f177,UniverDocsPlugin as _0x47677c}from'@univerjs/docs';import{UniverLicensePlugin as _0x163745}from'@univerjs-pro/license';function _0x4b54(){const _0x13e64d=['docEnd','iterator','docs-reference.config','getSnapshot','type','dataStream','_commandService','2080309KOvsXC','UNIVER_DOC','delete','editOp','continuationNotice','documentStyle','5937856HpBZft','continuous','getOwnPropertyDescriptor','diffValue','1733526AwydAz','UNIVER_DOCS_REFERENCE_PLUGIN','headers','restart','function','documentFlavor','deepClone','insert-','get','7827UNTBFw','syncExecuteCommand','settings','segmentId','pluginName','notes','sectEnd','includes','onStarting','COMMAND','separator','doc.command.delete-footnote','drawings','1675484GkGWLy','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','-settings','properties','suppressEndnotes','noteId','findIndex','eachPage','length','defineProperty','ENDNOTE','default','customRanges','@univerjs-pro/docs-reference','position','disposeWithMe','66oziwZv','body','retain','constructor','358QrjkJK','footnote','doc.command.insert-endnote','boolean','setConfig','FOOTNOTE','416278bXwaTk','insert','every','removeOp','compose','2095EZRkza','isNoop','noteSettings','decorate','_configService','TRADITIONAL','tableSource','serialize','footers','customMark','pageBottom','columnCount','drawingsOrder','startNumber','toPrimitive','_config','symbol','continuationSeparator','rangeType','doc.command.set-footnote-settings','delete-','doc.command.delete-endnote','noteProperties','endnote','sectionId','getInstance','referenceTextStyle','eachSect','set-','replaceOp','keys','isInteger','unitId','_injector','insertOp','getUnit','string','object','startIndex','numberFormat','sectionBreaks'];_0x4b54=function(){return _0x13e64d;};return _0x4b54();}function C(_0x4b4634,_0x39b3fa,_0x56d231){const _0x2cd497=_0x3399;if(_0x4b4634[_0x2cd497(0x178)]!=null&&!(_0x39b3fa===_0x2cd497(0x17f)?[_0x2cd497(0x193),'beneathText']:[_0x2cd497(0x1b2),_0x2cd497(0x163)])[_0x2cd497(0x164)](_0x4b4634[_0x2cd497(0x178)])||_0x4b4634[_0x2cd497(0x1c6)]!=null&&!(_0x39b3fa===_0x2cd497(0x17f)?[_0x2cd497(0x1c0),_0x2cd497(0x1a4),_0x2cd497(0x171)]:[_0x2cd497(0x1c0),_0x2cd497(0x1a4)])['includes'](_0x4b4634[_0x2cd497(0x1c6)])||_0x4b4634['startNumber']!=null&&(!Number[_0x2cd497(0x1a8)](_0x4b4634[_0x2cd497(0x196)])||_0x4b4634[_0x2cd497(0x196)]<0x1)||_0x2cd497(0x194)in _0x4b4634&&_0x4b4634[_0x2cd497(0x194)]!=null&&(_0x39b3fa!==_0x2cd497(0x17f)||!Number[_0x2cd497(0x1a8)](_0x4b4634[_0x2cd497(0x194)])||_0x4b4634[_0x2cd497(0x194)]<0x0||_0x4b4634[_0x2cd497(0x194)]>0x4)||_0x4b4634['numberFormat']!=null&&(typeof _0x4b4634['numberFormat']!=_0x2cd497(0x1ad)||_0x4b4634[_0x2cd497(0x1b0)][_0x2cd497(0x172)]===0x0))return!0x1;for(let _0x4b038b of[_0x4b4634[_0x2cd497(0x167)],_0x4b4634[_0x2cd497(0x19a)],_0x4b4634[_0x2cd497(0x1bd)]])if(_0x4b038b!=null&&(_0x56d231!=null||_0x2f43f1(_0x4b038b)[_0x2cd497(0x172)]>0x0))return!0x1;return!0x0;}function w(_0x1a77c6,_0x2e67f2,_0x27e8fe){const _0xfce965=_0x3399;var _0x105553,_0x3112c7;if(_0x2e67f2[_0xfce965(0x15f)]!=null&&!C(_0x2e67f2[_0xfce965(0x15f)],_0x27e8fe,_0x2e67f2[_0xfce965(0x1a1)]))return!0x1;let _0x32e1c0=((_0x105553=_0x1a77c6[_0xfce965(0x17b)])==null||(_0x105553=_0x105553[_0xfce965(0x1b1)])==null?void 0x0:_0x105553[_0xfce965(0x170)](_0x8bde95=>_0x8bde95[_0xfce965(0x1a1)]===_0x2e67f2[_0xfce965(0x1a1)]))??-0x1;if(_0x2e67f2[_0xfce965(0x1a1)]!=null&&_0x32e1c0<0x0)return!0x1;let _0x54d37c=_0x2e67f2['sectionId']==null?_0x1a77c6[_0xfce965(0x18b)]:(_0x3112c7=_0x1a77c6[_0xfce965(0x17b)])==null||(_0x3112c7=_0x3112c7[_0xfce965(0x1b1)])==null?void 0x0:_0x3112c7[_0x32e1c0]['noteProperties'],_0x220218=_0x2e67f2['settings']==null?void 0x0:_0xe26de[_0xfce965(0x1c9)](_0x2e67f2[_0xfce965(0x15f)]),_0x150ff5=_0x2e67f2[_0xfce965(0x1a1)]==null?['noteSettings']:[_0xfce965(0x17b),_0xfce965(0x1b1),_0x32e1c0,_0xfce965(0x19f)],_0x572b90=_0x268637[_0xfce965(0x1a2)](),_0x3876de=null;if(_0xe26de[_0xfce965(0x1c2)](_0x54d37c==null?void 0x0:_0x54d37c[_0x27e8fe],_0x220218)||(_0x3876de=_0x54d37c==null?_0x572b90[_0xfce965(0x1ab)](_0x150ff5,{[_0x27e8fe]:_0x220218}):_0x2e67f2[_0xfce965(0x1a1)]!=null&&_0x220218==null&&Object[_0xfce965(0x1a7)](_0x54d37c)[_0xfce965(0x186)](_0x4b7140=>_0x4b7140===_0x27e8fe)?_0x572b90[_0xfce965(0x187)](_0x150ff5,_0x54d37c):_0x572b90[_0xfce965(0x1a6)]([..._0x150ff5,_0x27e8fe],_0x54d37c[_0x27e8fe],_0x220218)),_0x2e67f2[_0xfce965(0x16e)]!=null){var _0x50837c;if(_0x27e8fe!==_0xfce965(0x1a0)||_0x2e67f2[_0xfce965(0x1a1)]==null||typeof _0x2e67f2[_0xfce965(0x16e)]!=_0xfce965(0x181))return!0x1;let _0x404f37=(_0x50837c=_0x1a77c6['body'])==null||(_0x50837c=_0x50837c[_0xfce965(0x1b1)])==null?void 0x0:_0x50837c[_0x32e1c0]['suppressEndnotes'];_0x404f37!==_0x2e67f2[_0xfce965(0x16e)]&&(_0x3876de=_0x268637[_0xfce965(0x188)](_0x3876de,_0x572b90[_0xfce965(0x1a6)]([_0xfce965(0x17b),'sectionBreaks',_0x32e1c0,_0xfce965(0x16e)],_0x404f37,_0x2e67f2[_0xfce965(0x16e)])));}return _0x3876de;}function T(_0x36f650,_0x1c6a6f,_0x3929e0){const _0x2898f4=_0x3399;if(!_0x1c6a6f)return!0x1;let _0x1f2908=_0x36f650['get'](_0x893d89)['getUnit'](_0x1c6a6f[_0x2898f4(0x1a9)],_0x176aa1['UNIVER_DOC']),_0x316e06=_0x1f2908==null?void 0x0:_0x1f2908['getSnapshot']();if(!_0x316e06||_0x316e06[_0x2898f4(0x1be)]['documentFlavor']!==_0x5d9527['TRADITIONAL'])return!0x1;let _0x271a56=w(_0x316e06,_0x1c6a6f,_0x3929e0);return _0x271a56===!0x1||_0x268637[_0x2898f4(0x18a)](_0x271a56)?!0x1:!!_0x36f650[_0x2898f4(0x1cb)](_0x1dc54d)[_0x2898f4(0x15e)](_0x49f177['id'],{'unitId':_0x1c6a6f[_0x2898f4(0x1a9)],'segmentId':'','historyAction':_0x2898f4(0x1a5)+_0x3929e0+_0x2898f4(0x16c),'actions':_0x271a56,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0x22b396(0x19c),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x1bb322,_0x546598)=>T(_0x1bb322,_0x546598,_0x22b396(0x17f))},D={'id':'doc.command.set-endnote-settings','type':_0x2c710e[_0x22b396(0x166)],'handler':(_0xd2eb8e,_0x2b6186)=>T(_0xd2eb8e,_0x2b6186,_0x22b396(0x1a0))};function O(_0x1de2cb,_0x1679a8){const _0x12399f=_0x22b396;return(_0x1de2cb==null?void 0x0:_0x1de2cb[_0x12399f(0x1be)]['documentFlavor'])===_0x5d9527[_0x12399f(0x18e)]&&!!_0x1de2cb['body']&&Number[_0x12399f(0x1a8)](_0x1679a8)&&_0x1679a8>=0x0&&_0x1679a8<_0x1de2cb[_0x12399f(0x17b)][_0x12399f(0x1b7)][_0x12399f(0x172)]-0x1;}function k(_0x523298,_0x15d1cd,_0x1371d5){const _0x25e8d7=_0x22b396;var _0x3fc59b,_0x2aad74;if(_0x15d1cd[_0x25e8d7(0x15f)]===void 0x0&&_0x15d1cd[_0x25e8d7(0x16e)]===void 0x0)return null;let _0x4aec4a=_0x15d1cd[_0x25e8d7(0x1a1)]==null?(_0x3fc59b=_0x523298['noteSettings'])==null?void 0x0:_0x3fc59b[_0x1371d5]:(_0x2aad74=_0x523298['body'])==null||(_0x2aad74=_0x2aad74['sectionBreaks'])==null||(_0x2aad74=_0x2aad74['find'](_0x4e3733=>_0x4e3733[_0x25e8d7(0x1a1)]===_0x15d1cd[_0x25e8d7(0x1a1)]))==null||(_0x2aad74=_0x2aad74[_0x25e8d7(0x19f)])==null?void 0x0:_0x2aad74[_0x1371d5];return w(_0x523298,{'settings':_0x15d1cd[_0x25e8d7(0x15f)]===void 0x0?_0x4aec4a??null:_0x15d1cd[_0x25e8d7(0x15f)],'sectionId':_0x15d1cd[_0x25e8d7(0x1a1)],'suppressEndnotes':_0x15d1cd[_0x25e8d7(0x16e)]},_0x1371d5);}function A(_0x4faa97,_0x5c4823,_0x3f44e4){const _0xdfb00b=_0x22b396;var _0x1763a4,_0x4b92d2,_0x568fe8;if(!_0x5c4823||_0x5c4823[_0xdfb00b(0x160)])return!0x1;let _0x315b88=_0x4faa97[_0xdfb00b(0x1cb)](_0x893d89)[_0xdfb00b(0x1ac)](_0x5c4823['unitId'],_0x176aa1['UNIVER_DOC']),_0xef938a=_0x315b88==null?void 0x0:_0x315b88[_0xdfb00b(0x1b5)](),{offset:_0x34b498}=_0x5c4823;if(!O(_0xef938a,_0x34b498))return!0x1;let _0x5ec2e3=k(_0xef938a,_0x5c4823,_0x3f44e4);if(_0x5ec2e3===!0x1)return!0x1;let _0x79f238=_0x5c4823[_0xdfb00b(0x16f)]??_0x342bc6(0xc);if((_0x1763a4=_0xef938a[_0xdfb00b(0x162)])!=null&&_0x1763a4[_0x79f238]||(_0x4b92d2=_0xef938a[_0xdfb00b(0x1c5)])!=null&&_0x4b92d2[_0x79f238]||(_0x568fe8=_0xef938a[_0xdfb00b(0x191)])!=null&&_0x568fe8[_0x79f238])return!0x1;let _0x3c4982=_0xe26de[_0xdfb00b(0x1c9)]({'type':_0x3f44e4,'noteId':_0x79f238,'body':_0x5c4823[_0xdfb00b(0x17b)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x1935ce(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x13d756(new Set()),'startIndex':0x1}]},'customMark':_0x5c4823[_0xdfb00b(0x192)],'referenceTextStyle':_0x5c4823[_0xdfb00b(0x1a3)],'tableSource':_0x5c4823[_0xdfb00b(0x18f)],'drawings':_0x5c4823[_0xdfb00b(0x169)],'drawingsOrder':_0x5c4823[_0xdfb00b(0x195)],'lists':_0x5c4823['lists']});if(_0x57396f({'notes':{[_0x79f238]:_0x3c4982}})[_0xdfb00b(0x172)]>0x0)return!0x1;let _0x3dba8f=new _0x30f2e6();_0x34b498>0x0&&_0x3dba8f[_0xdfb00b(0x17c)](_0x34b498),_0x3dba8f[_0xdfb00b(0x185)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x3f44e4===_0xdfb00b(0x17f)?_0x1c2972[_0xdfb00b(0x183)]:_0x1c2972[_0xdfb00b(0x174)],'rangeId':_0x342bc6(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x79f238}}]});let _0x2acb2e=_0x268637[_0xdfb00b(0x1a2)](),_0x4ea11a=_0xef938a[_0xdfb00b(0x162)]==null?_0x2acb2e[_0xdfb00b(0x1ab)](['notes'],{[_0x79f238]:_0x3c4982}):_0x2acb2e[_0xdfb00b(0x1ab)]([_0xdfb00b(0x162),_0x79f238],_0x3c4982);return!!_0x4faa97[_0xdfb00b(0x1cb)](_0x1dc54d)[_0xdfb00b(0x15e)](_0x49f177['id'],{'unitId':_0x5c4823['unitId'],'segmentId':'','historyAction':_0xdfb00b(0x1ca)+_0x3f44e4,'actions':_0x268637['compose'](_0x268637['compose'](_0x5ec2e3,_0x4ea11a),_0x2acb2e[_0xdfb00b(0x1bc)](_0x3dba8f[_0xdfb00b(0x190)](),[_0xdfb00b(0x17b)])),'textRanges':[{'segmentId':_0x79f238,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x3399(_0x131595,_0x167742){_0x131595=_0x131595-0x15d;const _0x4b5495=_0x4b54();let _0x33992e=_0x4b5495[_0x131595];return _0x33992e;}function j(_0x164544,_0x180e32,_0x3e84ac){const _0x595870=_0x22b396;var _0x1a0c28,_0x171543;if(!_0x180e32)return!0x1;let _0x37057d=_0x164544['get'](_0x893d89)[_0x595870(0x1ac)](_0x180e32[_0x595870(0x1a9)],_0x176aa1['UNIVER_DOC']),_0x53f88e=_0x37057d==null?void 0x0:_0x37057d['getSnapshot'](),_0xa31564=_0x53f88e==null||(_0x1a0c28=_0x53f88e[_0x595870(0x162)])==null?void 0x0:_0x1a0c28[_0x180e32[_0x595870(0x16f)]],_0x17debb=_0x53f88e==null||(_0x171543=_0x53f88e[_0x595870(0x17b)])==null||(_0x171543=_0x171543[_0x595870(0x176)])==null?void 0x0:_0x171543['find'](_0x4172a7=>{const _0xc4de05=_0x595870;var _0x5c0551;return(_0x4172a7[_0xc4de05(0x19b)]===_0x1c2972[_0xc4de05(0x183)]||_0x4172a7[_0xc4de05(0x19b)]===_0x1c2972[_0xc4de05(0x174)])&&((_0x5c0551=_0x4172a7[_0xc4de05(0x16d)])==null?void 0x0:_0x5c0551[_0xc4de05(0x16f)])===_0x180e32[_0xc4de05(0x16f)];});if(!_0x53f88e||_0x53f88e[_0x595870(0x1be)][_0x595870(0x1c8)]!==_0x5d9527[_0x595870(0x18e)]||!_0xa31564||_0xa31564[_0x595870(0x1b6)]!==_0x3e84ac||!_0x17debb)return!0x1;let _0x4a324d=new _0x30f2e6();_0x17debb[_0x595870(0x1af)]>0x0&&_0x4a324d[_0x595870(0x17c)](_0x17debb[_0x595870(0x1af)]),_0x4a324d[_0x595870(0x1bb)](0x1);let _0x15782a=_0x268637[_0x595870(0x1a2)]();return!!_0x164544['get'](_0x1dc54d)[_0x595870(0x15e)](_0x49f177['id'],{'unitId':_0x180e32[_0x595870(0x1a9)],'segmentId':'','historyAction':_0x595870(0x19d)+_0x3e84ac,'actions':_0x268637[_0x595870(0x188)](_0x15782a[_0x595870(0x1bc)](_0x4a324d[_0x595870(0x190)](),[_0x595870(0x17b)]),_0x15782a[_0x595870(0x187)]([_0x595870(0x162),_0x180e32[_0x595870(0x16f)]],_0xa31564)),'textRanges':[{'startOffset':_0x17debb['startIndex'],'endOffset':_0x17debb['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':'doc.command.insert-footnote','type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x3fb8d3,_0x59beeb)=>A(_0x3fb8d3,_0x59beeb,'footnote')},N={'id':_0x22b396(0x168),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0x78ddae,_0x2a8722)=>j(_0x78ddae,_0x2a8722,_0x22b396(0x17f))},P={'id':_0x22b396(0x180),'type':_0x2c710e['COMMAND'],'handler':(_0x2bb5c6,_0x29719b)=>A(_0x2bb5c6,_0x29719b,_0x22b396(0x1a0))},F={'id':_0x22b396(0x19e),'type':_0x2c710e[_0x22b396(0x166)],'handler':(_0xa9bac,_0x286f9a)=>j(_0xa9bac,_0x286f9a,'endnote')};var I=_0x22b396(0x177),L='1.1.0';const R={};function z(_0x50bc0a,_0x319b4f){return function(_0x53ee3e,_0x5229e3){_0x319b4f(_0x53ee3e,_0x5229e3,_0x50bc0a);};}function B(_0x4b90f1,_0x27ee0a,_0x4dce8d,_0x1d3a0e){const _0x17fa7f=_0x22b396;var _0x1935ba=arguments[_0x17fa7f(0x172)],_0x447408=_0x1935ba<0x3?_0x27ee0a:_0x1d3a0e===null?_0x1d3a0e=Object[_0x17fa7f(0x1c1)](_0x27ee0a,_0x4dce8d):_0x1d3a0e,_0x60c5b4;if(typeof Reflect==_0x17fa7f(0x1ae)&&typeof Reflect[_0x17fa7f(0x18c)]==_0x17fa7f(0x1c7))_0x447408=Reflect[_0x17fa7f(0x18c)](_0x4b90f1,_0x27ee0a,_0x4dce8d,_0x1d3a0e);else{for(var _0xef3af9=_0x4b90f1[_0x17fa7f(0x172)]-0x1;_0xef3af9>=0x0;_0xef3af9--)(_0x60c5b4=_0x4b90f1[_0xef3af9])&&(_0x447408=(_0x1935ba<0x3?_0x60c5b4(_0x447408):_0x1935ba>0x3?_0x60c5b4(_0x27ee0a,_0x4dce8d,_0x447408):_0x60c5b4(_0x27ee0a,_0x4dce8d))||_0x447408);}return _0x1935ba>0x3&&_0x447408&&Object[_0x17fa7f(0x173)](_0x27ee0a,_0x4dce8d,_0x447408),_0x447408;}function V(_0x897c02){'@babel/helpers - typeof';const _0x19ec1d=_0x22b396;return V=typeof Symbol==_0x19ec1d(0x1c7)&&typeof Symbol[_0x19ec1d(0x1b3)]==_0x19ec1d(0x199)?function(_0x565405){return typeof _0x565405;}:function(_0x1e53f4){const _0x3aa67=_0x19ec1d;return _0x1e53f4&&typeof Symbol==_0x3aa67(0x1c7)&&_0x1e53f4[_0x3aa67(0x17d)]===Symbol&&_0x1e53f4!==Symbol['prototype']?_0x3aa67(0x199):typeof _0x1e53f4;},V(_0x897c02);}function H(_0x403f6e,_0x40d696){const _0x509b69=_0x22b396;if(V(_0x403f6e)!=_0x509b69(0x1ae)||!_0x403f6e)return _0x403f6e;var _0x33e79f=_0x403f6e[Symbol[_0x509b69(0x197)]];if(_0x33e79f!==void 0x0){var _0x7e58c0=_0x33e79f['call'](_0x403f6e,_0x40d696||_0x509b69(0x175));if(V(_0x7e58c0)!='object')return _0x7e58c0;throw TypeError(_0x509b69(0x16b));}return(_0x40d696===_0x509b69(0x1ad)?String:Number)(_0x403f6e);}function U(_0x1e4f28){const _0x3dab0e=_0x22b396;var _0x264ce4=H(_0x1e4f28,_0x3dab0e(0x1ad));return V(_0x264ce4)==_0x3dab0e(0x199)?_0x264ce4:_0x264ce4+'';}function W(_0x4a00fc,_0x29bfa2,_0x246d2a){const _0x2aa662=_0x22b396;return(_0x29bfa2=U(_0x29bfa2))in _0x4a00fc?Object[_0x2aa662(0x173)](_0x4a00fc,_0x29bfa2,{'value':_0x246d2a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4a00fc[_0x29bfa2]=_0x246d2a,_0x4a00fc;}let G=class extends _0x3f78bf{constructor(_0x33fc1a=R,_0x428937,_0x25322f,_0x1df9f0){const _0x345774=_0x22b396;super(),this[_0x345774(0x198)]=_0x33fc1a,this[_0x345774(0x1aa)]=_0x428937,this[_0x345774(0x18d)]=_0x25322f,this[_0x345774(0x1b8)]=_0x1df9f0;let {..._0x35046a}=_0x5d1571({},R,this[_0x345774(0x198)]);this['_configService'][_0x345774(0x182)](_0x345774(0x1b4),_0x35046a);}[_0x22b396(0x165)](){const _0x441759=_0x22b396;[M,N,E,P,F,D]['forEach'](_0x1377b3=>this[_0x441759(0x179)](this[_0x441759(0x1b8)]['registerCommand'](_0x1377b3)));}};W(G,_0x22b396(0x161),_0x22b396(0x1c4)),W(G,'packageName',I),W(G,'version',L),W(G,_0x22b396(0x1b6),_0x176aa1[_0x22b396(0x1ba)]),G=B([_0x382a79(_0x163745,_0x47677c),z(0x1,_0x72c1ec(_0xe4c5b2)),z(0x2,_0x417b48),z(0x3,_0x1dc54d)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
|
|
1
|
+
const _0xcab6d5=_0x2451;function _0xc493(){const _0x1c4c80=['string','eachSect','doc.command.insert-footnote','segmentId','unitId','drawings','syncExecuteCommand','1.2.0','registerCommand','properties','_commandService','diffValue','iterator','docs-reference.config','setConfig','default','32iHzgBZ','forEach','sectionId','continuationNotice','object','every','columnCount','dataStream','386800IVwQit','function','editOp','prototype','serialize','UNIVER_DOC','tableSource','keys','documentFlavor','doc.command.insert-endnote','toPrimitive','boolean','_injector','symbol','body','@univerjs-pro/docs-reference','get','5049608bIjQZz','replaceOp','insert','181300MXfczk','startNumber','_config','delete-','734148xWeWHy','decorate','referenceTextStyle','length','version','footers','constructor','noteProperties','startIndex','UNIVER_DOCS_REFERENCE_PLUGIN','continuous','insertOp','packageName','numberFormat','removeOp','compose','deepClone','2300704uDdEbi','sectionBreaks','notes','getSnapshot','getOwnPropertyDescriptor','onStarting','isNoop','isInteger','noteSettings','find','1819122SScqMc','delete','pluginName','retain','ENDNOTE','docEnd','settings','separator','getInstance','includes','doc.command.set-endnote-settings','findIndex','insert-','footnote','headers','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1166344dMAWpa','type','FOOTNOTE','_configService','set-','suppressEndnotes','documentStyle','noteId','-settings','position','COMMAND','rangeType','drawingsOrder','getUnit','defineProperty','endnote','continuationSeparator','doc.command.delete-endnote','TRADITIONAL'];_0xc493=function(){return _0x1c4c80;};return _0xc493();}(function(_0x5612ec,_0x412e99){const _0x3e746e=_0x2451,_0x2efae7=_0x5612ec();while(!![]){try{const _0x174712=parseInt(_0x3e746e(0x1a3))/0x1+-parseInt(_0x3e746e(0x1d2))/0x2+parseInt(_0x3e746e(0x1a7))/0x3+parseInt(_0x3e746e(0x1f5))/0x4*(parseInt(_0x3e746e(0x1fd))/0x5)+-parseInt(_0x3e746e(0x1c2))/0x6+-parseInt(_0x3e746e(0x1b8))/0x7+parseInt(_0x3e746e(0x20e))/0x8;if(_0x174712===_0x412e99)break;else _0x2efae7['push'](_0x2efae7['shift']());}catch(_0x2aab9c){_0x2efae7['push'](_0x2efae7['shift']());}}}(_0xc493,0x7090a));import{CommandType as _0x76e9a7,CustomRangeType as _0x52b17f,DependentOn as _0x3afae4,DocumentFlavor as _0x316f36,ICommandService as _0xba514f,IConfigService as _0x18a911,IUniverInstanceService as _0x3981be,Inject as _0x453a7f,Injector as _0xcf265b,JSONX as _0x16075d,Plugin as _0x3b736b,TextX as _0x20e6da,Tools as _0x39b95c,UniverInstanceType as _0x1576e6,createParagraphId as _0x102dcb,createSectionId as _0x1a8d07,generateRandomId as _0x4d0e30,merge as _0x173d5f,validateDocBodyStructure as _0xa0a371,validateDocumentStructure as _0x2012aa}from'@univerjs/core';import{RichTextEditingMutation as _0x81e76f,UniverDocsPlugin as _0x17fe40}from'@univerjs/docs';import{UniverLicensePlugin as _0x45f2dd}from'@univerjs-pro/license';function C(_0x3a8612,_0x26572c,_0x510a6e){const _0x44f79f=_0x2451;if(_0x3a8612[_0x44f79f(0x1db)]!=null&&!(_0x26572c===_0x44f79f(0x1cf)?['pageBottom','beneathText']:[_0x44f79f(0x1c7),'sectEnd'])[_0x44f79f(0x1cb)](_0x3a8612[_0x44f79f(0x1db)])||_0x3a8612['restart']!=null&&!(_0x26572c===_0x44f79f(0x1cf)?[_0x44f79f(0x1b1),_0x44f79f(0x1e6),'eachPage']:['continuous','eachSect'])[_0x44f79f(0x1cb)](_0x3a8612['restart'])||_0x3a8612[_0x44f79f(0x1a4)]!=null&&(!Number[_0x44f79f(0x1bf)](_0x3a8612[_0x44f79f(0x1a4)])||_0x3a8612[_0x44f79f(0x1a4)]<0x1)||_0x44f79f(0x1fb)in _0x3a8612&&_0x3a8612[_0x44f79f(0x1fb)]!=null&&(_0x26572c!==_0x44f79f(0x1cf)||!Number['isInteger'](_0x3a8612[_0x44f79f(0x1fb)])||_0x3a8612['columnCount']<0x0||_0x3a8612['columnCount']>0x4)||_0x3a8612['numberFormat']!=null&&(typeof _0x3a8612[_0x44f79f(0x1b4)]!='string'||_0x3a8612[_0x44f79f(0x1b4)][_0x44f79f(0x1aa)]===0x0))return!0x1;for(let _0x4342b1 of[_0x3a8612[_0x44f79f(0x1c9)],_0x3a8612[_0x44f79f(0x1e2)],_0x3a8612[_0x44f79f(0x1f8)]])if(_0x4342b1!=null&&(_0x510a6e!=null||_0xa0a371(_0x4342b1)['length']>0x0))return!0x1;return!0x0;}function w(_0x47ca29,_0x230b3c,_0x5776ca){const _0x3dba84=_0x2451;var _0x57a8cc,_0x3f2e88;if(_0x230b3c['settings']!=null&&!C(_0x230b3c[_0x3dba84(0x1c8)],_0x5776ca,_0x230b3c[_0x3dba84(0x1f7)]))return!0x1;let _0x202ba3=((_0x57a8cc=_0x47ca29[_0x3dba84(0x20b)])==null||(_0x57a8cc=_0x57a8cc['sectionBreaks'])==null?void 0x0:_0x57a8cc[_0x3dba84(0x1cd)](_0x15a6bc=>_0x15a6bc[_0x3dba84(0x1f7)]===_0x230b3c[_0x3dba84(0x1f7)]))??-0x1;if(_0x230b3c[_0x3dba84(0x1f7)]!=null&&_0x202ba3<0x0)return!0x1;let _0x4122c8=_0x230b3c[_0x3dba84(0x1f7)]==null?_0x47ca29[_0x3dba84(0x1c0)]:(_0x3f2e88=_0x47ca29[_0x3dba84(0x20b)])==null||(_0x3f2e88=_0x3f2e88[_0x3dba84(0x1b9)])==null?void 0x0:_0x3f2e88[_0x202ba3][_0x3dba84(0x1ae)],_0x45042e=_0x230b3c[_0x3dba84(0x1c8)]==null?void 0x0:_0x39b95c[_0x3dba84(0x1b7)](_0x230b3c[_0x3dba84(0x1c8)]),_0x2a52b6=_0x230b3c['sectionId']==null?[_0x3dba84(0x1c0)]:[_0x3dba84(0x20b),_0x3dba84(0x1b9),_0x202ba3,_0x3dba84(0x1ae)],_0x360db7=_0x16075d['getInstance'](),_0x40993b=null;if(_0x39b95c[_0x3dba84(0x1f0)](_0x4122c8==null?void 0x0:_0x4122c8[_0x5776ca],_0x45042e)||(_0x40993b=_0x4122c8==null?_0x360db7['insertOp'](_0x2a52b6,{[_0x5776ca]:_0x45042e}):_0x230b3c['sectionId']!=null&&_0x45042e==null&&Object[_0x3dba84(0x204)](_0x4122c8)[_0x3dba84(0x1fa)](_0x26ca43=>_0x26ca43===_0x5776ca)?_0x360db7[_0x3dba84(0x1b5)](_0x2a52b6,_0x4122c8):_0x360db7[_0x3dba84(0x20f)]([..._0x2a52b6,_0x5776ca],_0x4122c8[_0x5776ca],_0x45042e)),_0x230b3c[_0x3dba84(0x1d7)]!=null){var _0x567e6a;if(_0x5776ca!==_0x3dba84(0x1e1)||_0x230b3c[_0x3dba84(0x1f7)]==null||typeof _0x230b3c[_0x3dba84(0x1d7)]!=_0x3dba84(0x208))return!0x1;let _0x144532=(_0x567e6a=_0x47ca29[_0x3dba84(0x20b)])==null||(_0x567e6a=_0x567e6a[_0x3dba84(0x1b9)])==null?void 0x0:_0x567e6a[_0x202ba3]['suppressEndnotes'];_0x144532!==_0x230b3c[_0x3dba84(0x1d7)]&&(_0x40993b=_0x16075d[_0x3dba84(0x1b6)](_0x40993b,_0x360db7[_0x3dba84(0x20f)]([_0x3dba84(0x20b),_0x3dba84(0x1b9),_0x202ba3,'suppressEndnotes'],_0x144532,_0x230b3c[_0x3dba84(0x1d7)])));}return _0x40993b;}function T(_0x90552b,_0x4bcfcc,_0x43942a){const _0x3b7327=_0x2451;if(!_0x4bcfcc)return!0x1;let _0x55b3ec=_0x90552b[_0x3b7327(0x20d)](_0x3981be)[_0x3b7327(0x1df)](_0x4bcfcc[_0x3b7327(0x1e9)],_0x1576e6['UNIVER_DOC']),_0x33ef95=_0x55b3ec==null?void 0x0:_0x55b3ec['getSnapshot']();if(!_0x33ef95||_0x33ef95['documentStyle'][_0x3b7327(0x205)]!==_0x316f36[_0x3b7327(0x1e4)])return!0x1;let _0x8d98a0=w(_0x33ef95,_0x4bcfcc,_0x43942a);return _0x8d98a0===!0x1||_0x16075d[_0x3b7327(0x1be)](_0x8d98a0)?!0x1:!!_0x90552b[_0x3b7327(0x20d)](_0xba514f)[_0x3b7327(0x1eb)](_0x81e76f['id'],{'unitId':_0x4bcfcc[_0x3b7327(0x1e9)],'segmentId':'','historyAction':_0x3b7327(0x1d6)+_0x43942a+_0x3b7327(0x1da),'actions':_0x8d98a0,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x76e9a7[_0xcab6d5(0x1dc)],'handler':(_0x4a1bf6,_0x29a3a9)=>T(_0x4a1bf6,_0x29a3a9,'footnote')},D={'id':_0xcab6d5(0x1cc),'type':_0x76e9a7['COMMAND'],'handler':(_0x4517aa,_0x367ef2)=>T(_0x4517aa,_0x367ef2,_0xcab6d5(0x1e1))};function O(_0x5d82d6,_0x34719a){const _0x2b2572=_0xcab6d5;return(_0x5d82d6==null?void 0x0:_0x5d82d6[_0x2b2572(0x1d8)]['documentFlavor'])===_0x316f36['TRADITIONAL']&&!!_0x5d82d6[_0x2b2572(0x20b)]&&Number[_0x2b2572(0x1bf)](_0x34719a)&&_0x34719a>=0x0&&_0x34719a<_0x5d82d6[_0x2b2572(0x20b)][_0x2b2572(0x1fc)][_0x2b2572(0x1aa)]-0x1;}function k(_0x247c37,_0x32d2ce,_0x29a9d1){const _0x4a8588=_0xcab6d5;var _0x288143,_0x1c0ede;if(_0x32d2ce['settings']===void 0x0&&_0x32d2ce['suppressEndnotes']===void 0x0)return null;let _0x7edba6=_0x32d2ce[_0x4a8588(0x1f7)]==null?(_0x288143=_0x247c37[_0x4a8588(0x1c0)])==null?void 0x0:_0x288143[_0x29a9d1]:(_0x1c0ede=_0x247c37[_0x4a8588(0x20b)])==null||(_0x1c0ede=_0x1c0ede[_0x4a8588(0x1b9)])==null||(_0x1c0ede=_0x1c0ede[_0x4a8588(0x1c1)](_0x549529=>_0x549529['sectionId']===_0x32d2ce['sectionId']))==null||(_0x1c0ede=_0x1c0ede[_0x4a8588(0x1ae)])==null?void 0x0:_0x1c0ede[_0x29a9d1];return w(_0x247c37,{'settings':_0x32d2ce['settings']===void 0x0?_0x7edba6??null:_0x32d2ce[_0x4a8588(0x1c8)],'sectionId':_0x32d2ce['sectionId'],'suppressEndnotes':_0x32d2ce['suppressEndnotes']},_0x29a9d1);}function A(_0x4a7b0c,_0x13c341,_0x26c4d3){const _0x5bbfad=_0xcab6d5;var _0x1512a1,_0x351e52,_0x26229d;if(!_0x13c341||_0x13c341[_0x5bbfad(0x1e8)])return!0x1;let _0xb35a8f=_0x4a7b0c[_0x5bbfad(0x20d)](_0x3981be)[_0x5bbfad(0x1df)](_0x13c341[_0x5bbfad(0x1e9)],_0x1576e6[_0x5bbfad(0x202)]),_0x1f79c4=_0xb35a8f==null?void 0x0:_0xb35a8f[_0x5bbfad(0x1bb)](),{offset:_0x309499}=_0x13c341;if(!O(_0x1f79c4,_0x309499))return!0x1;let _0x43fdf3=k(_0x1f79c4,_0x13c341,_0x26c4d3);if(_0x43fdf3===!0x1)return!0x1;let _0x1ef707=_0x13c341['noteId']??_0x4d0e30(0xc);if((_0x1512a1=_0x1f79c4['notes'])!=null&&_0x1512a1[_0x1ef707]||(_0x351e52=_0x1f79c4[_0x5bbfad(0x1d0)])!=null&&_0x351e52[_0x1ef707]||(_0x26229d=_0x1f79c4[_0x5bbfad(0x1ac)])!=null&&_0x26229d[_0x1ef707])return!0x1;let _0x25e593=_0x39b95c[_0x5bbfad(0x1b7)]({'type':_0x26c4d3,'noteId':_0x1ef707,'body':_0x13c341['body']??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x102dcb(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x1a8d07(new Set()),'startIndex':0x1}]},'customMark':_0x13c341['customMark'],'referenceTextStyle':_0x13c341[_0x5bbfad(0x1a9)],'tableSource':_0x13c341[_0x5bbfad(0x203)],'drawings':_0x13c341[_0x5bbfad(0x1ea)],'drawingsOrder':_0x13c341[_0x5bbfad(0x1de)],'lists':_0x13c341['lists']});if(_0x2012aa({'notes':{[_0x1ef707]:_0x25e593}})[_0x5bbfad(0x1aa)]>0x0)return!0x1;let _0x5cd346=new _0x20e6da();_0x309499>0x0&&_0x5cd346[_0x5bbfad(0x1c5)](_0x309499),_0x5cd346[_0x5bbfad(0x210)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x26c4d3===_0x5bbfad(0x1cf)?_0x52b17f[_0x5bbfad(0x1d4)]:_0x52b17f['ENDNOTE'],'rangeId':_0x4d0e30(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x1ef707}}]});let _0x58528d=_0x16075d[_0x5bbfad(0x1ca)](),_0x142eec=_0x1f79c4[_0x5bbfad(0x1ba)]==null?_0x58528d[_0x5bbfad(0x1b2)](['notes'],{[_0x1ef707]:_0x25e593}):_0x58528d[_0x5bbfad(0x1b2)]([_0x5bbfad(0x1ba),_0x1ef707],_0x25e593);return!!_0x4a7b0c[_0x5bbfad(0x20d)](_0xba514f)['syncExecuteCommand'](_0x81e76f['id'],{'unitId':_0x13c341[_0x5bbfad(0x1e9)],'segmentId':'','historyAction':_0x5bbfad(0x1ce)+_0x26c4d3,'actions':_0x16075d[_0x5bbfad(0x1b6)](_0x16075d['compose'](_0x43fdf3,_0x142eec),_0x58528d[_0x5bbfad(0x1ff)](_0x5cd346[_0x5bbfad(0x201)](),['body'])),'textRanges':[{'segmentId':_0x1ef707,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x5447bb,_0x79a261,_0x5a4eb){const _0x2bf8f6=_0xcab6d5;var _0x3d24a8,_0x1229e1;if(!_0x79a261)return!0x1;let _0x5e3e24=_0x5447bb[_0x2bf8f6(0x20d)](_0x3981be)['getUnit'](_0x79a261[_0x2bf8f6(0x1e9)],_0x1576e6['UNIVER_DOC']),_0x15047e=_0x5e3e24==null?void 0x0:_0x5e3e24[_0x2bf8f6(0x1bb)](),_0x3fec18=_0x15047e==null||(_0x3d24a8=_0x15047e[_0x2bf8f6(0x1ba)])==null?void 0x0:_0x3d24a8[_0x79a261[_0x2bf8f6(0x1d9)]],_0x2c276b=_0x15047e==null||(_0x1229e1=_0x15047e[_0x2bf8f6(0x20b)])==null||(_0x1229e1=_0x1229e1['customRanges'])==null?void 0x0:_0x1229e1[_0x2bf8f6(0x1c1)](_0x129605=>{const _0x838542=_0x2bf8f6;var _0x1d9e21;return(_0x129605['rangeType']===_0x52b17f[_0x838542(0x1d4)]||_0x129605[_0x838542(0x1dd)]===_0x52b17f[_0x838542(0x1c6)])&&((_0x1d9e21=_0x129605[_0x838542(0x1ee)])==null?void 0x0:_0x1d9e21[_0x838542(0x1d9)])===_0x79a261[_0x838542(0x1d9)];});if(!_0x15047e||_0x15047e[_0x2bf8f6(0x1d8)][_0x2bf8f6(0x205)]!==_0x316f36[_0x2bf8f6(0x1e4)]||!_0x3fec18||_0x3fec18[_0x2bf8f6(0x1d3)]!==_0x5a4eb||!_0x2c276b)return!0x1;let _0x2ccd79=new _0x20e6da();_0x2c276b[_0x2bf8f6(0x1af)]>0x0&&_0x2ccd79[_0x2bf8f6(0x1c5)](_0x2c276b[_0x2bf8f6(0x1af)]),_0x2ccd79[_0x2bf8f6(0x1c3)](0x1);let _0x1f28a9=_0x16075d[_0x2bf8f6(0x1ca)]();return!!_0x5447bb[_0x2bf8f6(0x20d)](_0xba514f)[_0x2bf8f6(0x1eb)](_0x81e76f['id'],{'unitId':_0x79a261[_0x2bf8f6(0x1e9)],'segmentId':'','historyAction':_0x2bf8f6(0x1a6)+_0x5a4eb,'actions':_0x16075d[_0x2bf8f6(0x1b6)](_0x1f28a9['editOp'](_0x2ccd79[_0x2bf8f6(0x201)](),[_0x2bf8f6(0x20b)]),_0x1f28a9[_0x2bf8f6(0x1b5)]([_0x2bf8f6(0x1ba),_0x79a261['noteId']],_0x3fec18)),'textRanges':[{'startOffset':_0x2c276b[_0x2bf8f6(0x1af)],'endOffset':_0x2c276b[_0x2bf8f6(0x1af)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0xcab6d5(0x1e7),'type':_0x76e9a7[_0xcab6d5(0x1dc)],'handler':(_0x2cebd0,_0x3a8db5)=>A(_0x2cebd0,_0x3a8db5,_0xcab6d5(0x1cf))},N={'id':'doc.command.delete-footnote','type':_0x76e9a7[_0xcab6d5(0x1dc)],'handler':(_0x5d8391,_0x21980e)=>j(_0x5d8391,_0x21980e,'footnote')},P={'id':_0xcab6d5(0x206),'type':_0x76e9a7[_0xcab6d5(0x1dc)],'handler':(_0x4f75a2,_0x1bdebe)=>A(_0x4f75a2,_0x1bdebe,_0xcab6d5(0x1e1))},F={'id':_0xcab6d5(0x1e3),'type':_0x76e9a7[_0xcab6d5(0x1dc)],'handler':(_0x477b54,_0x256525)=>j(_0x477b54,_0x256525,_0xcab6d5(0x1e1))};var I=_0xcab6d5(0x20c),L=_0xcab6d5(0x1ec);const R={};function z(_0x6b7b7f,_0x454122){return function(_0x55837e,_0x25ab53){_0x454122(_0x55837e,_0x25ab53,_0x6b7b7f);};}function B(_0x19ed6d,_0x69bf7e,_0x2e4b7f,_0x2d934f){const _0x4cea77=_0xcab6d5;var _0x1beb45=arguments[_0x4cea77(0x1aa)],_0x39f6a5=_0x1beb45<0x3?_0x69bf7e:_0x2d934f===null?_0x2d934f=Object[_0x4cea77(0x1bc)](_0x69bf7e,_0x2e4b7f):_0x2d934f,_0x1b7513;if(typeof Reflect==_0x4cea77(0x1f9)&&typeof Reflect[_0x4cea77(0x1a8)]==_0x4cea77(0x1fe))_0x39f6a5=Reflect['decorate'](_0x19ed6d,_0x69bf7e,_0x2e4b7f,_0x2d934f);else{for(var _0x2bffe1=_0x19ed6d['length']-0x1;_0x2bffe1>=0x0;_0x2bffe1--)(_0x1b7513=_0x19ed6d[_0x2bffe1])&&(_0x39f6a5=(_0x1beb45<0x3?_0x1b7513(_0x39f6a5):_0x1beb45>0x3?_0x1b7513(_0x69bf7e,_0x2e4b7f,_0x39f6a5):_0x1b7513(_0x69bf7e,_0x2e4b7f))||_0x39f6a5);}return _0x1beb45>0x3&&_0x39f6a5&&Object[_0x4cea77(0x1e0)](_0x69bf7e,_0x2e4b7f,_0x39f6a5),_0x39f6a5;}function V(_0x29022d){'@babel/helpers - typeof';const _0x22c43b=_0xcab6d5;return V=typeof Symbol=='function'&&typeof Symbol[_0x22c43b(0x1f1)]==_0x22c43b(0x20a)?function(_0x440e0d){return typeof _0x440e0d;}:function(_0x482b5d){const _0x2da32d=_0x22c43b;return _0x482b5d&&typeof Symbol==_0x2da32d(0x1fe)&&_0x482b5d[_0x2da32d(0x1ad)]===Symbol&&_0x482b5d!==Symbol[_0x2da32d(0x200)]?_0x2da32d(0x20a):typeof _0x482b5d;},V(_0x29022d);}function H(_0x3bb24c,_0x4c3450){const _0x34602f=_0xcab6d5;if(V(_0x3bb24c)!=_0x34602f(0x1f9)||!_0x3bb24c)return _0x3bb24c;var _0x3a6480=_0x3bb24c[Symbol[_0x34602f(0x207)]];if(_0x3a6480!==void 0x0){var _0x9b647a=_0x3a6480['call'](_0x3bb24c,_0x4c3450||_0x34602f(0x1f4));if(V(_0x9b647a)!=_0x34602f(0x1f9))return _0x9b647a;throw TypeError(_0x34602f(0x1d1));}return(_0x4c3450==='string'?String:Number)(_0x3bb24c);}function _0x2451(_0x18f4f8,_0x461c6d){_0x18f4f8=_0x18f4f8-0x1a3;const _0xc49367=_0xc493();let _0x24512e=_0xc49367[_0x18f4f8];return _0x24512e;}function U(_0x24b004){const _0x1becef=_0xcab6d5;var _0x289d78=H(_0x24b004,_0x1becef(0x1e5));return V(_0x289d78)=='symbol'?_0x289d78:_0x289d78+'';}function W(_0x4f5504,_0x590c79,_0x5a970c){return(_0x590c79=U(_0x590c79))in _0x4f5504?Object['defineProperty'](_0x4f5504,_0x590c79,{'value':_0x5a970c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4f5504[_0x590c79]=_0x5a970c,_0x4f5504;}let G=class extends _0x3b736b{constructor(_0x49c9c0=R,_0x128d4c,_0x515e77,_0x33d75c){const _0x40f382=_0xcab6d5;super(),this[_0x40f382(0x1a5)]=_0x49c9c0,this[_0x40f382(0x209)]=_0x128d4c,this['_configService']=_0x515e77,this['_commandService']=_0x33d75c;let {..._0x16fc63}=_0x173d5f({},R,this[_0x40f382(0x1a5)]);this[_0x40f382(0x1d5)][_0x40f382(0x1f3)](_0x40f382(0x1f2),_0x16fc63);}[_0xcab6d5(0x1bd)](){const _0x4812fc=_0xcab6d5;[M,N,E,P,F,D][_0x4812fc(0x1f6)](_0x3f31d4=>this['disposeWithMe'](this[_0x4812fc(0x1ef)][_0x4812fc(0x1ed)](_0x3f31d4)));}};W(G,_0xcab6d5(0x1c4),_0xcab6d5(0x1b0)),W(G,_0xcab6d5(0x1b3),I),W(G,_0xcab6d5(0x1ab),L),W(G,_0xcab6d5(0x1d3),_0x1576e6['UNIVER_DOC']),G=B([_0x3afae4(_0x45f2dd,_0x17fe40),z(0x1,_0x453a7f(_0xcf265b)),z(0x2,_0x18a911),z(0x3,_0xba514f)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3a89(){const _0x2a0038=['notes','ENDNOTE','getDocumentDataModel','insertFootnote','get','FOOTNOTE','1241980IzDQBA','customRanges','Tools','setFootnoteSettings','extend','find','17587296bMoXFr','CustomRangeType','ICommandService','body','sectionId','UniverCore','getEndnotes','6sYtBUI','string','@univerjs/core','function','390275MNCbJv','InsertDocumentFootnoteCommand','syncExecuteCommand','1084266PlzpAP','DeleteDocumentFootnoteCommand','UniverProDocsReference','footnote','properties','FDocument','sort','endnote','setEndnoteSettings','deleteEndnote','SetDocumentFootnoteSettingsCommand','flatMap','noteProperties','6741140iYnrGS','rangeType','_injector','841800irVwki','noteId','deleteFootnote','generateRandomId','startIndex','insertEndnote','getSnapshot','deepClone','1475324KrKfuh','filter','sectionBreaks','DeleteDocumentEndnoteCommand','noteSettings','amd','getFootnoteSettings','getEndnoteSettings'];_0x3a89=function(){return _0x2a0038;};return _0x3a89();}function _0x216a(_0x2333f0,_0x5e3db9){_0x2333f0=_0x2333f0-0x10f;const _0x3a8911=_0x3a89();let _0x216a99=_0x3a8911[_0x2333f0];return _0x216a99;}(function(_0x1ebbfb,_0x332b55){const _0x565c8b=_0x216a,_0x52761c=_0x1ebbfb();while(!![]){try{const _0x12dbdf=parseInt(_0x565c8b(0x12d))/0x1+parseInt(_0x565c8b(0x11c))/0x2+parseInt(_0x565c8b(0x129))/0x3*(parseInt(_0x565c8b(0x148))/0x4)+-parseInt(_0x565c8b(0x140))/0x5+parseInt(_0x565c8b(0x130))/0x6+parseInt(_0x565c8b(0x13d))/0x7+-parseInt(_0x565c8b(0x122))/0x8;if(_0x12dbdf===_0x332b55)break;else _0x52761c['push'](_0x52761c['shift']());}catch(_0x51fe79){_0x52761c['push'](_0x52761c['shift']());}}}(_0x3a89,0x8063e),function(_0x24a0ef,_0x126747){const _0xe2805c=_0x216a;typeof exports=='object'&&typeof module<'u'?_0x126747(require('@univerjs-pro/docs-reference'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0xe2805c(0x12c)&&define[_0xe2805c(0x113)]?define(['@univerjs-pro/docs-reference',_0xe2805c(0x12b),'@univerjs/docs/facade'],_0x126747):(_0x24a0ef=typeof globalThis<'u'?globalThis:_0x24a0ef||self,_0x126747(_0x24a0ef[_0xe2805c(0x132)],_0x24a0ef[_0xe2805c(0x127)],_0x24a0ef['UniverDocsFacade']));}(this,function(_0x23e947,_0x5cb4bc,_0x417044){const _0x41af35=_0x216a;var _0x109cbe=class extends _0x417044[_0x41af35(0x135)]{[_0x41af35(0x119)](_0x1faaf2,_0x22db70={}){const _0x1e692c=_0x41af35;let _0x1d0b5d=(0x0,_0x5cb4bc[_0x1e692c(0x143)])(0xc);return this[_0x1e692c(0x13f)]['get'](_0x5cb4bc[_0x1e692c(0x124)])['syncExecuteCommand'](_0x23e947[_0x1e692c(0x12e)]['id'],{..._0x22db70,'unitId':this['id'],'offset':_0x1faaf2,'noteId':_0x1d0b5d})?_0x1d0b5d:null;}['getFootnotes'](){const _0x2e379a=_0x41af35;var _0x43b3d8;let _0x13eb05=this['getDocumentDataModel']()[_0x2e379a(0x146)]();return(((_0x43b3d8=_0x13eb05[_0x2e379a(0x125)])==null?void 0x0:_0x43b3d8[_0x2e379a(0x11d)])??[])[_0x2e379a(0x10f)](_0x4f86d3=>_0x4f86d3[_0x2e379a(0x13e)]===_0x5cb4bc[_0x2e379a(0x123)][_0x2e379a(0x11b)])[_0x2e379a(0x136)]((_0x31f9cd,_0x5ae505)=>_0x31f9cd['startIndex']-_0x5ae505[_0x2e379a(0x144)])[_0x2e379a(0x13b)](_0x10c8a6=>{const _0x1771a4=_0x2e379a;var _0x2c90b4,_0x6a2e11;let _0x4e5d7d=(_0x2c90b4=_0x10c8a6['properties'])==null?void 0x0:_0x2c90b4[_0x1771a4(0x141)],_0x11076b=typeof _0x4e5d7d==_0x1771a4(0x12a)?(_0x6a2e11=_0x13eb05[_0x1771a4(0x116)])==null?void 0x0:_0x6a2e11[_0x4e5d7d]:void 0x0;return _0x11076b?[_0x5cb4bc['Tools']['deepClone'](_0x11076b)]:[];});}[_0x41af35(0x142)](_0x55cc3c){const _0x23b8b7=_0x41af35;return this[_0x23b8b7(0x13f)]['get'](_0x5cb4bc[_0x23b8b7(0x124)])[_0x23b8b7(0x12f)](_0x23e947[_0x23b8b7(0x131)]['id'],{'unitId':this['id'],'noteId':_0x55cc3c});}[_0x41af35(0x114)](_0x534432){const _0x364294=_0x41af35;var _0x1d9c64,_0x54247a;let _0x524913=this[_0x364294(0x118)]()[_0x364294(0x146)](),_0x5abf3=_0x534432==null?(_0x1d9c64=_0x524913[_0x364294(0x112)])==null?void 0x0:_0x1d9c64['footnote']:(_0x54247a=_0x524913['body'])==null||(_0x54247a=_0x54247a[_0x364294(0x110)])==null||(_0x54247a=_0x54247a[_0x364294(0x121)](_0x58cc9b=>_0x58cc9b[_0x364294(0x126)]===_0x534432))==null||(_0x54247a=_0x54247a[_0x364294(0x13c)])==null?void 0x0:_0x54247a[_0x364294(0x133)];return _0x5abf3==null?void 0x0:_0x5cb4bc[_0x364294(0x11e)]['deepClone'](_0x5abf3);}[_0x41af35(0x11f)](_0x5c32c6,_0x4fc7ac){const _0x286c4d=_0x41af35;return this[_0x286c4d(0x13f)][_0x286c4d(0x11a)](_0x5cb4bc[_0x286c4d(0x124)])[_0x286c4d(0x12f)](_0x23e947[_0x286c4d(0x13a)]['id'],{'unitId':this['id'],'settings':_0x5c32c6,'sectionId':_0x4fc7ac});}[_0x41af35(0x145)](_0x380a53,_0xaafa0a={}){const _0x26af99=_0x41af35;let _0x2c55ec=(0x0,_0x5cb4bc[_0x26af99(0x143)])(0xc);return this['_injector']['get'](_0x5cb4bc[_0x26af99(0x124)])['syncExecuteCommand'](_0x23e947['InsertDocumentEndnoteCommand']['id'],{..._0xaafa0a,'unitId':this['id'],'offset':_0x380a53,'noteId':_0x2c55ec})?_0x2c55ec:null;}[_0x41af35(0x128)](){const _0x598ea7=_0x41af35;var _0x51fd20;let _0xe12a39=this[_0x598ea7(0x118)]()[_0x598ea7(0x146)]();return(((_0x51fd20=_0xe12a39[_0x598ea7(0x125)])==null?void 0x0:_0x51fd20[_0x598ea7(0x11d)])??[])[_0x598ea7(0x10f)](_0x5d9c03=>_0x5d9c03[_0x598ea7(0x13e)]===_0x5cb4bc[_0x598ea7(0x123)][_0x598ea7(0x117)])[_0x598ea7(0x136)]((_0x49ffb5,_0x35909c)=>_0x49ffb5[_0x598ea7(0x144)]-_0x35909c[_0x598ea7(0x144)])[_0x598ea7(0x13b)](_0xb072c6=>{const _0xa1528d=_0x598ea7;var _0x46d744,_0x4b6a50;let _0x1a33d7=(_0x46d744=_0xb072c6[_0xa1528d(0x134)])==null?void 0x0:_0x46d744[_0xa1528d(0x141)],_0x51f054=typeof _0x1a33d7==_0xa1528d(0x12a)?(_0x4b6a50=_0xe12a39['notes'])==null?void 0x0:_0x4b6a50[_0x1a33d7]:void 0x0;return _0x51f054?[_0x5cb4bc[_0xa1528d(0x11e)][_0xa1528d(0x147)](_0x51f054)]:[];});}[_0x41af35(0x139)](_0x59820a){const _0x550adb=_0x41af35;return this[_0x550adb(0x13f)][_0x550adb(0x11a)](_0x5cb4bc[_0x550adb(0x124)])[_0x550adb(0x12f)](_0x23e947[_0x550adb(0x111)]['id'],{'unitId':this['id'],'noteId':_0x59820a});}[_0x41af35(0x115)](_0x1e7f22){const _0x2617c6=_0x41af35;var _0x43efa8,_0x2b25ea;let _0x1fcf33=this[_0x2617c6(0x118)]()[_0x2617c6(0x146)](),_0x1e222f=_0x1e7f22==null?(_0x43efa8=_0x1fcf33['noteSettings'])==null?void 0x0:_0x43efa8['endnote']:(_0x2b25ea=_0x1fcf33[_0x2617c6(0x125)])==null||(_0x2b25ea=_0x2b25ea[_0x2617c6(0x110)])==null||(_0x2b25ea=_0x2b25ea[_0x2617c6(0x121)](_0x41559b=>_0x41559b['sectionId']===_0x1e7f22))==null||(_0x2b25ea=_0x2b25ea[_0x2617c6(0x13c)])==null?void 0x0:_0x2b25ea[_0x2617c6(0x137)];return _0x1e222f==null?void 0x0:_0x5cb4bc[_0x2617c6(0x11e)][_0x2617c6(0x147)](_0x1e222f);}[_0x41af35(0x138)](_0x42bffd,_0x4d2f8d){const _0x5e2c2b=_0x41af35;return this[_0x5e2c2b(0x13f)][_0x5e2c2b(0x11a)](_0x5cb4bc['ICommandService'])[_0x5e2c2b(0x12f)](_0x23e947['SetDocumentEndnoteSettingsCommand']['id'],{'unitId':this['id'],'settings':_0x42bffd,'sectionId':_0x4d2f8d});}};_0x417044[_0x41af35(0x135)][_0x41af35(0x120)](_0x109cbe);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5460(){const _0x2a1789=['createSectionId','UniverProDocsReference','docEnd','doc.command.insert-footnote','rangeType','forEach','UniverDocsReferencePlugin','doc.command.set-endnote-settings','Tools','unitId','replaceOp','suppressEndnotes','properties','eachSect','sectionId','365548noZXfM','body','SetDocumentEndnoteSettingsCommand','includes','settings','get','footnote','eachPage','decorate','continuous','CustomRangeType','_configService','delete-','_commandService','doc.command.delete-endnote','TRADITIONAL','@univerjs-pro/license','InsertDocumentFootnoteCommand','beneathText','DependentOn','sectEnd','-settings','63TgjyXs','_config','lists','UniverProLicense','defineProperty','1738990DOoTcf','find','1832047QxAkwH','doc.command.set-footnote-settings','deepClone','startNumber','onStarting','FOOTNOTE','ENDNOTE','UNIVER_DOCS_REFERENCE_PLUGIN','toPrimitive','startIndex','Inject','endnote','IUniverInstanceService','getSnapshot','validateDocBodyStructure','createParagraphId','JSONX','4FgGhis','customMark','string','diffValue','sectionBreaks','getUnit','@univerjs/core','getOwnPropertyDescriptor','@univerjs/docs','iterator','disposeWithMe','registerCommand','segmentId','COMMAND','numberFormat','1.1.0','merge','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','constructor','removeOp','_injector','isInteger','insert-','30Djmmoj','287421rfjKCF','TextX','tableSource','referenceTextStyle','notes','UniverInstanceType','insertOp','ICommandService','noteId','UNIVER_DOC','function','findIndex','position','DocumentFlavor','getInstance','UniverLicensePlugin','drawings','CommandType','keys','delete','footers','exports','toStringTag','UniverCore','customRanges','boolean','SetDocumentFootnoteSettingsCommand','compose','insert','@univerjs-pro/docs-reference','object','generateRandomId','InsertDocumentEndnoteCommand','doc.command.insert-endnote','editOp','headers','serialize','10xLfVeg','restart','noteSettings','columnCount','104752ZyBKJa','set-','documentStyle','documentFlavor','syncExecuteCommand','DeleteDocumentFootnoteCommand','3860358seJnsz','3093277zSPCMZ','symbol','length','type','RichTextEditingMutation','retain','UniverDocsPlugin','noteProperties'];_0x5460=function(){return _0x2a1789;};return _0x5460();}function _0x5648(_0x39d009,_0x2bb904){_0x39d009=_0x39d009-0xab;const _0x5460a9=_0x5460();let _0x564841=_0x5460a9[_0x39d009];return _0x564841;}(function(_0x317df6,_0x1d785a){const _0x155ae9=_0x5648,_0x3a65b5=_0x317df6();while(!![]){try{const _0x3bdc71=parseInt(_0x155ae9(0x11a))/0x1+-parseInt(_0x155ae9(0xf8))/0x2*(-parseInt(_0x155ae9(0xd3))/0x3)+-parseInt(_0x155ae9(0xba))/0x4*(parseInt(_0x155ae9(0x135))/0x5)+-parseInt(_0x155ae9(0x102))/0x6+-parseInt(_0x155ae9(0x137))/0x7+parseInt(_0x155ae9(0xfc))/0x8*(-parseInt(_0x155ae9(0x130))/0x9)+-parseInt(_0x155ae9(0xd2))/0xa*(-parseInt(_0x155ae9(0x103))/0xb);if(_0x3bdc71===_0x1d785a)break;else _0x3a65b5['push'](_0x3a65b5['shift']());}catch(_0x3d6707){_0x3a65b5['push'](_0x3a65b5['shift']());}}}(_0x5460,0x53e52),function(_0x2856be,_0x43368d){const _0x271857=_0x5648;typeof exports=='object'&&typeof module<'u'?_0x43368d(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x271857(0xdd)&&define['amd']?define([_0x271857(0xe8),_0x271857(0xc0),_0x271857(0xc2),_0x271857(0x12a)],_0x43368d):(_0x2856be=typeof globalThis<'u'?globalThis:_0x2856be||self,_0x43368d(_0x2856be[_0x271857(0x10c)]={},_0x2856be[_0x271857(0xea)],_0x2856be['UniverDocs'],_0x2856be[_0x271857(0x133)]));}(this,function(_0x215267,_0x3993c2,_0x36a3dc,_0x1798e2){const _0xc6846c=_0x5648;Object[_0xc6846c(0x134)](_0x215267,Symbol[_0xc6846c(0xe9)],{'value':'Module'});function _0x54f1ba(_0x222069,_0x55a43e,_0x363f86){const _0x5604d3=_0xc6846c;if(_0x222069[_0x5604d3(0xdf)]!=null&&!(_0x55a43e===_0x5604d3(0x120)?['pageBottom',_0x5604d3(0x12c)]:[_0x5604d3(0x10d),_0x5604d3(0x12e)])[_0x5604d3(0x11d)](_0x222069[_0x5604d3(0xdf)])||_0x222069[_0x5604d3(0xf9)]!=null&&!(_0x55a43e===_0x5604d3(0x120)?[_0x5604d3(0x123),_0x5604d3(0x118),_0x5604d3(0x121)]:[_0x5604d3(0x123),_0x5604d3(0x118)])[_0x5604d3(0x11d)](_0x222069[_0x5604d3(0xf9)])||_0x222069['startNumber']!=null&&(!Number['isInteger'](_0x222069[_0x5604d3(0xac)])||_0x222069['startNumber']<0x1)||_0x5604d3(0xfb)in _0x222069&&_0x222069[_0x5604d3(0xfb)]!=null&&(_0x55a43e!==_0x5604d3(0x120)||!Number['isInteger'](_0x222069['columnCount'])||_0x222069[_0x5604d3(0xfb)]<0x0||_0x222069['columnCount']>0x4)||_0x222069[_0x5604d3(0xc8)]!=null&&(typeof _0x222069[_0x5604d3(0xc8)]!=_0x5604d3(0xbc)||_0x222069['numberFormat']['length']===0x0))return!0x1;for(let _0x1a24e1 of[_0x222069['separator'],_0x222069['continuationSeparator'],_0x222069['continuationNotice']])if(_0x1a24e1!=null&&(_0x363f86!=null||(0x0,_0x3993c2[_0x5604d3(0xb7)])(_0x1a24e1)[_0x5604d3(0x105)]>0x0))return!0x1;return!0x0;}function _0x4b523e(_0x23e59d,_0x32e05b,_0x314ab7){const _0x4002eb=_0xc6846c;var _0x155cab,_0x462ac1;if(_0x32e05b[_0x4002eb(0x11e)]!=null&&!_0x54f1ba(_0x32e05b[_0x4002eb(0x11e)],_0x314ab7,_0x32e05b[_0x4002eb(0x119)]))return!0x1;let _0x327c58=((_0x155cab=_0x23e59d['body'])==null||(_0x155cab=_0x155cab[_0x4002eb(0xbe)])==null?void 0x0:_0x155cab[_0x4002eb(0xde)](_0x25f216=>_0x25f216['sectionId']===_0x32e05b[_0x4002eb(0x119)]))??-0x1;if(_0x32e05b['sectionId']!=null&&_0x327c58<0x0)return!0x1;let _0x49c0af=_0x32e05b['sectionId']==null?_0x23e59d[_0x4002eb(0xfa)]:(_0x462ac1=_0x23e59d['body'])==null||(_0x462ac1=_0x462ac1[_0x4002eb(0xbe)])==null?void 0x0:_0x462ac1[_0x327c58][_0x4002eb(0x10a)],_0x5f4244=_0x32e05b['settings']==null?void 0x0:_0x3993c2[_0x4002eb(0x113)][_0x4002eb(0xab)](_0x32e05b[_0x4002eb(0x11e)]),_0x8f5dfa=_0x32e05b[_0x4002eb(0x119)]==null?[_0x4002eb(0xfa)]:['body',_0x4002eb(0xbe),_0x327c58,_0x4002eb(0x10a)],_0xa00dc6=_0x3993c2[_0x4002eb(0xb9)][_0x4002eb(0xe1)](),_0x3aae8f=null;if(_0x3993c2['Tools'][_0x4002eb(0xbd)](_0x49c0af==null?void 0x0:_0x49c0af[_0x314ab7],_0x5f4244)||(_0x3aae8f=_0x49c0af==null?_0xa00dc6[_0x4002eb(0xd9)](_0x8f5dfa,{[_0x314ab7]:_0x5f4244}):_0x32e05b[_0x4002eb(0x119)]!=null&&_0x5f4244==null&&Object[_0x4002eb(0xe5)](_0x49c0af)['every'](_0x2892d5=>_0x2892d5===_0x314ab7)?_0xa00dc6['removeOp'](_0x8f5dfa,_0x49c0af):_0xa00dc6[_0x4002eb(0x115)]([..._0x8f5dfa,_0x314ab7],_0x49c0af[_0x314ab7],_0x5f4244)),_0x32e05b[_0x4002eb(0x116)]!=null){var _0x59f32d;if(_0x314ab7!==_0x4002eb(0xb4)||_0x32e05b['sectionId']==null||typeof _0x32e05b[_0x4002eb(0x116)]!=_0x4002eb(0xec))return!0x1;let _0xd31bf5=(_0x59f32d=_0x23e59d['body'])==null||(_0x59f32d=_0x59f32d[_0x4002eb(0xbe)])==null?void 0x0:_0x59f32d[_0x327c58]['suppressEndnotes'];_0xd31bf5!==_0x32e05b[_0x4002eb(0x116)]&&(_0x3aae8f=_0x3993c2[_0x4002eb(0xb9)][_0x4002eb(0xee)](_0x3aae8f,_0xa00dc6[_0x4002eb(0x115)]([_0x4002eb(0x11b),'sectionBreaks',_0x327c58,_0x4002eb(0x116)],_0xd31bf5,_0x32e05b[_0x4002eb(0x116)])));}return _0x3aae8f;}function _0x5abd37(_0x24aac3,_0x3f7f18,_0x36aa11){const _0x28b611=_0xc6846c;if(!_0x3f7f18)return!0x1;let _0x2c3b8a=_0x24aac3[_0x28b611(0x11f)](_0x3993c2[_0x28b611(0xb5)])['getUnit'](_0x3f7f18[_0x28b611(0x114)],_0x3993c2[_0x28b611(0xd8)][_0x28b611(0xdc)]),_0x30ca26=_0x2c3b8a==null?void 0x0:_0x2c3b8a['getSnapshot']();if(!_0x30ca26||_0x30ca26[_0x28b611(0xfe)][_0x28b611(0xff)]!==_0x3993c2[_0x28b611(0xe0)][_0x28b611(0x129)])return!0x1;let _0x47adbc=_0x4b523e(_0x30ca26,_0x3f7f18,_0x36aa11);return _0x47adbc===!0x1||_0x3993c2[_0x28b611(0xb9)]['isNoop'](_0x47adbc)?!0x1:!!_0x24aac3[_0x28b611(0x11f)](_0x3993c2[_0x28b611(0xda)])['syncExecuteCommand'](_0x36a3dc[_0x28b611(0x107)]['id'],{'unitId':_0x3f7f18['unitId'],'segmentId':'','historyAction':_0x28b611(0xfd)+_0x36aa11+_0x28b611(0x12f),'actions':_0x47adbc,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x5d19a9={'id':_0xc6846c(0x138),'type':_0x3993c2[_0xc6846c(0xe4)]['COMMAND'],'handler':(_0x82e0c,_0x213d48)=>_0x5abd37(_0x82e0c,_0x213d48,_0xc6846c(0x120))},_0xff17c8={'id':_0xc6846c(0x112),'type':_0x3993c2[_0xc6846c(0xe4)][_0xc6846c(0xc7)],'handler':(_0x330490,_0x4e52c2)=>_0x5abd37(_0x330490,_0x4e52c2,_0xc6846c(0xb4))};function _0x4ec6fe(_0x1b3989,_0x119fd3){const _0x57284b=_0xc6846c;return(_0x1b3989==null?void 0x0:_0x1b3989[_0x57284b(0xfe)][_0x57284b(0xff)])===_0x3993c2[_0x57284b(0xe0)]['TRADITIONAL']&&!!_0x1b3989['body']&&Number[_0x57284b(0xd0)](_0x119fd3)&&_0x119fd3>=0x0&&_0x119fd3<_0x1b3989[_0x57284b(0x11b)]['dataStream'][_0x57284b(0x105)]-0x1;}function _0xf46bc7(_0x19c373,_0x50884e,_0x29b144){const _0xb104ac=_0xc6846c;var _0xa1f716,_0x48f656;if(_0x50884e['settings']===void 0x0&&_0x50884e[_0xb104ac(0x116)]===void 0x0)return null;let _0x342dbc=_0x50884e[_0xb104ac(0x119)]==null?(_0xa1f716=_0x19c373[_0xb104ac(0xfa)])==null?void 0x0:_0xa1f716[_0x29b144]:(_0x48f656=_0x19c373[_0xb104ac(0x11b)])==null||(_0x48f656=_0x48f656[_0xb104ac(0xbe)])==null||(_0x48f656=_0x48f656[_0xb104ac(0x136)](_0x2c2443=>_0x2c2443['sectionId']===_0x50884e['sectionId']))==null||(_0x48f656=_0x48f656[_0xb104ac(0x10a)])==null?void 0x0:_0x48f656[_0x29b144];return _0x4b523e(_0x19c373,{'settings':_0x50884e[_0xb104ac(0x11e)]===void 0x0?_0x342dbc??null:_0x50884e[_0xb104ac(0x11e)],'sectionId':_0x50884e[_0xb104ac(0x119)],'suppressEndnotes':_0x50884e['suppressEndnotes']},_0x29b144);}function _0x2bdd6d(_0x4238ef,_0x11a207,_0x29e2c1){const _0x1d0bb6=_0xc6846c;var _0x3027b7,_0x40aa20,_0x522123;if(!_0x11a207||_0x11a207[_0x1d0bb6(0xc6)])return!0x1;let _0x135153=_0x4238ef[_0x1d0bb6(0x11f)](_0x3993c2[_0x1d0bb6(0xb5)])[_0x1d0bb6(0xbf)](_0x11a207[_0x1d0bb6(0x114)],_0x3993c2[_0x1d0bb6(0xd8)][_0x1d0bb6(0xdc)]),_0x12bca0=_0x135153==null?void 0x0:_0x135153[_0x1d0bb6(0xb6)](),{offset:_0x30bd5a}=_0x11a207;if(!_0x4ec6fe(_0x12bca0,_0x30bd5a))return!0x1;let _0x2f600c=_0xf46bc7(_0x12bca0,_0x11a207,_0x29e2c1);if(_0x2f600c===!0x1)return!0x1;let _0x4a3e17=_0x11a207[_0x1d0bb6(0xdb)]??(0x0,_0x3993c2[_0x1d0bb6(0xf2)])(0xc);if((_0x3027b7=_0x12bca0[_0x1d0bb6(0xd7)])!=null&&_0x3027b7[_0x4a3e17]||(_0x40aa20=_0x12bca0[_0x1d0bb6(0xf6)])!=null&&_0x40aa20[_0x4a3e17]||(_0x522123=_0x12bca0[_0x1d0bb6(0xe7)])!=null&&_0x522123[_0x4a3e17])return!0x1;let _0x448264=_0x3993c2[_0x1d0bb6(0x113)][_0x1d0bb6(0xab)]({'type':_0x29e2c1,'noteId':_0x4a3e17,'body':_0x11a207[_0x1d0bb6(0x11b)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x3993c2[_0x1d0bb6(0xb8)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x3993c2[_0x1d0bb6(0x10b)])(new Set()),'startIndex':0x1}]},'customMark':_0x11a207[_0x1d0bb6(0xbb)],'referenceTextStyle':_0x11a207[_0x1d0bb6(0xd6)],'tableSource':_0x11a207[_0x1d0bb6(0xd5)],'drawings':_0x11a207[_0x1d0bb6(0xe3)],'drawingsOrder':_0x11a207['drawingsOrder'],'lists':_0x11a207[_0x1d0bb6(0x132)]});if((0x0,_0x3993c2['validateDocumentStructure'])({'notes':{[_0x4a3e17]:_0x448264}})[_0x1d0bb6(0x105)]>0x0)return!0x1;let _0x3b51f9=new _0x3993c2[(_0x1d0bb6(0xd4))]();_0x30bd5a>0x0&&_0x3b51f9[_0x1d0bb6(0x108)](_0x30bd5a),_0x3b51f9[_0x1d0bb6(0xef)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x29e2c1===_0x1d0bb6(0x120)?_0x3993c2[_0x1d0bb6(0x124)]['FOOTNOTE']:_0x3993c2[_0x1d0bb6(0x124)]['ENDNOTE'],'rangeId':(0x0,_0x3993c2[_0x1d0bb6(0xf2)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4a3e17}}]});let _0x15e44d=_0x3993c2[_0x1d0bb6(0xb9)]['getInstance'](),_0x517347=_0x12bca0[_0x1d0bb6(0xd7)]==null?_0x15e44d[_0x1d0bb6(0xd9)](['notes'],{[_0x4a3e17]:_0x448264}):_0x15e44d[_0x1d0bb6(0xd9)]([_0x1d0bb6(0xd7),_0x4a3e17],_0x448264);return!!_0x4238ef[_0x1d0bb6(0x11f)](_0x3993c2[_0x1d0bb6(0xda)])[_0x1d0bb6(0x100)](_0x36a3dc[_0x1d0bb6(0x107)]['id'],{'unitId':_0x11a207[_0x1d0bb6(0x114)],'segmentId':'','historyAction':_0x1d0bb6(0xd1)+_0x29e2c1,'actions':_0x3993c2[_0x1d0bb6(0xb9)][_0x1d0bb6(0xee)](_0x3993c2[_0x1d0bb6(0xb9)][_0x1d0bb6(0xee)](_0x2f600c,_0x517347),_0x15e44d[_0x1d0bb6(0xf5)](_0x3b51f9[_0x1d0bb6(0xf7)](),[_0x1d0bb6(0x11b)])),'textRanges':[{'segmentId':_0x4a3e17,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x2e0a25(_0x253acb,_0x926295,_0x1dab6c){const _0xfa0a26=_0xc6846c;var _0x5d3ab0,_0x39facc;if(!_0x926295)return!0x1;let _0x4c9aec=_0x253acb[_0xfa0a26(0x11f)](_0x3993c2['IUniverInstanceService'])[_0xfa0a26(0xbf)](_0x926295[_0xfa0a26(0x114)],_0x3993c2['UniverInstanceType']['UNIVER_DOC']),_0xbd8a84=_0x4c9aec==null?void 0x0:_0x4c9aec[_0xfa0a26(0xb6)](),_0x79c866=_0xbd8a84==null||(_0x5d3ab0=_0xbd8a84[_0xfa0a26(0xd7)])==null?void 0x0:_0x5d3ab0[_0x926295[_0xfa0a26(0xdb)]],_0x47b2e9=_0xbd8a84==null||(_0x39facc=_0xbd8a84[_0xfa0a26(0x11b)])==null||(_0x39facc=_0x39facc[_0xfa0a26(0xeb)])==null?void 0x0:_0x39facc[_0xfa0a26(0x136)](_0x56174a=>{const _0xa7d3ad=_0xfa0a26;var _0x49a79f;return(_0x56174a[_0xa7d3ad(0x10f)]===_0x3993c2[_0xa7d3ad(0x124)][_0xa7d3ad(0xae)]||_0x56174a[_0xa7d3ad(0x10f)]===_0x3993c2['CustomRangeType'][_0xa7d3ad(0xaf)])&&((_0x49a79f=_0x56174a[_0xa7d3ad(0x117)])==null?void 0x0:_0x49a79f[_0xa7d3ad(0xdb)])===_0x926295['noteId'];});if(!_0xbd8a84||_0xbd8a84['documentStyle'][_0xfa0a26(0xff)]!==_0x3993c2[_0xfa0a26(0xe0)][_0xfa0a26(0x129)]||!_0x79c866||_0x79c866[_0xfa0a26(0x106)]!==_0x1dab6c||!_0x47b2e9)return!0x1;let _0x5372e1=new _0x3993c2[(_0xfa0a26(0xd4))]();_0x47b2e9['startIndex']>0x0&&_0x5372e1[_0xfa0a26(0x108)](_0x47b2e9[_0xfa0a26(0xb2)]),_0x5372e1[_0xfa0a26(0xe6)](0x1);let _0x531d5d=_0x3993c2[_0xfa0a26(0xb9)]['getInstance']();return!!_0x253acb[_0xfa0a26(0x11f)](_0x3993c2[_0xfa0a26(0xda)])[_0xfa0a26(0x100)](_0x36a3dc['RichTextEditingMutation']['id'],{'unitId':_0x926295[_0xfa0a26(0x114)],'segmentId':'','historyAction':_0xfa0a26(0x126)+_0x1dab6c,'actions':_0x3993c2[_0xfa0a26(0xb9)]['compose'](_0x531d5d[_0xfa0a26(0xf5)](_0x5372e1['serialize'](),[_0xfa0a26(0x11b)]),_0x531d5d[_0xfa0a26(0xce)]([_0xfa0a26(0xd7),_0x926295[_0xfa0a26(0xdb)]],_0x79c866)),'textRanges':[{'startOffset':_0x47b2e9[_0xfa0a26(0xb2)],'endOffset':_0x47b2e9[_0xfa0a26(0xb2)],'collapsed':!0x0}],'debounce':!0x1});}let _0x34e78c={'id':_0xc6846c(0x10e),'type':_0x3993c2[_0xc6846c(0xe4)][_0xc6846c(0xc7)],'handler':(_0x2c9c85,_0x2cabd8)=>_0x2bdd6d(_0x2c9c85,_0x2cabd8,_0xc6846c(0x120))},_0x1b8118={'id':'doc.command.delete-footnote','type':_0x3993c2[_0xc6846c(0xe4)][_0xc6846c(0xc7)],'handler':(_0x17d588,_0x3adb21)=>_0x2e0a25(_0x17d588,_0x3adb21,'footnote')},_0x5ccb16={'id':_0xc6846c(0xf4),'type':_0x3993c2[_0xc6846c(0xe4)][_0xc6846c(0xc7)],'handler':(_0xb6516,_0x327cd6)=>_0x2bdd6d(_0xb6516,_0x327cd6,_0xc6846c(0xb4))},_0x59c260={'id':_0xc6846c(0x128),'type':_0x3993c2[_0xc6846c(0xe4)][_0xc6846c(0xc7)],'handler':(_0x17704f,_0xc7833c)=>_0x2e0a25(_0x17704f,_0xc7833c,'endnote')};var _0x2db123=_0xc6846c(0xf0),_0x5d4741=_0xc6846c(0xc9);let _0x29e3e6={};function _0xd1c73f(_0x172d1c,_0x29b262){return function(_0x1f27d4,_0x4e28b2){_0x29b262(_0x1f27d4,_0x4e28b2,_0x172d1c);};}function _0x4fe0dc(_0x56cd37,_0x66f492,_0x2e12a0,_0x544a7e){const _0x29ca0c=_0xc6846c;var _0x16b5ed=arguments[_0x29ca0c(0x105)],_0x1a80f3=_0x16b5ed<0x3?_0x66f492:_0x544a7e===null?_0x544a7e=Object[_0x29ca0c(0xc1)](_0x66f492,_0x2e12a0):_0x544a7e,_0x3f8dc8;if(typeof Reflect==_0x29ca0c(0xf1)&&typeof Reflect[_0x29ca0c(0x122)]==_0x29ca0c(0xdd))_0x1a80f3=Reflect[_0x29ca0c(0x122)](_0x56cd37,_0x66f492,_0x2e12a0,_0x544a7e);else{for(var _0x3ae3a0=_0x56cd37[_0x29ca0c(0x105)]-0x1;_0x3ae3a0>=0x0;_0x3ae3a0--)(_0x3f8dc8=_0x56cd37[_0x3ae3a0])&&(_0x1a80f3=(_0x16b5ed<0x3?_0x3f8dc8(_0x1a80f3):_0x16b5ed>0x3?_0x3f8dc8(_0x66f492,_0x2e12a0,_0x1a80f3):_0x3f8dc8(_0x66f492,_0x2e12a0))||_0x1a80f3);}return _0x16b5ed>0x3&&_0x1a80f3&&Object[_0x29ca0c(0x134)](_0x66f492,_0x2e12a0,_0x1a80f3),_0x1a80f3;}function _0x57a35c(_0x51d68b){'@babel/helpers - typeof';const _0x13671d=_0xc6846c;return _0x57a35c=typeof Symbol==_0x13671d(0xdd)&&typeof Symbol[_0x13671d(0xc3)]==_0x13671d(0x104)?function(_0x1ccfcf){return typeof _0x1ccfcf;}:function(_0x2f8594){const _0x24829e=_0x13671d;return _0x2f8594&&typeof Symbol==_0x24829e(0xdd)&&_0x2f8594[_0x24829e(0xcd)]===Symbol&&_0x2f8594!==Symbol['prototype']?_0x24829e(0x104):typeof _0x2f8594;},_0x57a35c(_0x51d68b);}function _0x1c4a05(_0x3d75fe,_0x4d725c){const _0x58891c=_0xc6846c;if(_0x57a35c(_0x3d75fe)!=_0x58891c(0xf1)||!_0x3d75fe)return _0x3d75fe;var _0xa54fb=_0x3d75fe[Symbol[_0x58891c(0xb1)]];if(_0xa54fb!==void 0x0){var _0x44ea6b=_0xa54fb['call'](_0x3d75fe,_0x4d725c||'default');if(_0x57a35c(_0x44ea6b)!=_0x58891c(0xf1))return _0x44ea6b;throw TypeError(_0x58891c(0xcc));}return(_0x4d725c===_0x58891c(0xbc)?String:Number)(_0x3d75fe);}function _0x52c22d(_0x139415){const _0x5e60e8=_0xc6846c;var _0x527be0=_0x1c4a05(_0x139415,_0x5e60e8(0xbc));return _0x57a35c(_0x527be0)==_0x5e60e8(0x104)?_0x527be0:_0x527be0+'';}function _0x547f05(_0x15a2be,_0x500390,_0x10d04a){const _0x4f5de5=_0xc6846c;return(_0x500390=_0x52c22d(_0x500390))in _0x15a2be?Object[_0x4f5de5(0x134)](_0x15a2be,_0x500390,{'value':_0x10d04a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15a2be[_0x500390]=_0x10d04a,_0x15a2be;}let _0x3c900d=class extends _0x3993c2['Plugin']{constructor(_0x40d905=_0x29e3e6,_0x5aa390,_0x33ef3e,_0xc0e8c1){const _0x5b37b4=_0xc6846c;super(),this[_0x5b37b4(0x131)]=_0x40d905,this[_0x5b37b4(0xcf)]=_0x5aa390,this['_configService']=_0x33ef3e,this['_commandService']=_0xc0e8c1;let {..._0x2788c8}=(0x0,_0x3993c2[_0x5b37b4(0xca)])({},_0x29e3e6,this['_config']);this[_0x5b37b4(0x125)]['setConfig']('docs-reference.config',_0x2788c8);}[_0xc6846c(0xad)](){const _0x53a37a=_0xc6846c;[_0x34e78c,_0x1b8118,_0x5d19a9,_0x5ccb16,_0x59c260,_0xff17c8][_0x53a37a(0x110)](_0x21f8c8=>this[_0x53a37a(0xc4)](this[_0x53a37a(0x127)][_0x53a37a(0xc5)](_0x21f8c8)));}};_0x547f05(_0x3c900d,'pluginName',_0xc6846c(0xb0)),_0x547f05(_0x3c900d,'packageName',_0x2db123),_0x547f05(_0x3c900d,'version',_0x5d4741),_0x547f05(_0x3c900d,_0xc6846c(0x106),_0x3993c2[_0xc6846c(0xd8)]['UNIVER_DOC']),_0x3c900d=_0x4fe0dc([(0x0,_0x3993c2[_0xc6846c(0x12d)])(_0x1798e2[_0xc6846c(0xe2)],_0x36a3dc[_0xc6846c(0x109)]),_0xd1c73f(0x1,(0x0,_0x3993c2[_0xc6846c(0xb3)])(_0x3993c2['Injector'])),_0xd1c73f(0x2,_0x3993c2[_0xc6846c(0xcb)]),_0xd1c73f(0x3,_0x3993c2[_0xc6846c(0xda)])],_0x3c900d),_0x215267['DeleteDocumentEndnoteCommand']=_0x59c260,_0x215267[_0xc6846c(0x101)]=_0x1b8118,_0x215267[_0xc6846c(0xf3)]=_0x5ccb16,_0x215267[_0xc6846c(0x12b)]=_0x34e78c,_0x215267[_0xc6846c(0x11c)]=_0xff17c8,_0x215267[_0xc6846c(0xed)]=_0x5d19a9,Object[_0xc6846c(0x134)](_0x215267,_0xc6846c(0x111),{'enumerable':!0x0,'get':function(){return _0x3c900d;}});}));
|
|
1
|
+
function _0x3d62(_0x3ae86b,_0x1e4363){_0x3ae86b=_0x3ae86b-0xff;const _0xdd6699=_0xdd66();let _0x3d626c=_0xdd6699[_0x3ae86b];return _0x3d626c;}(function(_0x44a463,_0x17b730){const _0x555433=_0x3d62,_0x26677c=_0x44a463();while(!![]){try{const _0x1092e7=-parseInt(_0x555433(0x17d))/0x1*(parseInt(_0x555433(0x11e))/0x2)+-parseInt(_0x555433(0x103))/0x3*(parseInt(_0x555433(0x151))/0x4)+parseInt(_0x555433(0x146))/0x5+-parseInt(_0x555433(0x15d))/0x6*(-parseInt(_0x555433(0x141))/0x7)+-parseInt(_0x555433(0x119))/0x8+parseInt(_0x555433(0x10a))/0x9*(-parseInt(_0x555433(0x168))/0xa)+-parseInt(_0x555433(0x148))/0xb*(-parseInt(_0x555433(0x191))/0xc);if(_0x1092e7===_0x17b730)break;else _0x26677c['push'](_0x26677c['shift']());}catch(_0x307949){_0x26677c['push'](_0x26677c['shift']());}}}(_0xdd66,0x8c4c2),function(_0x480af3,_0x2d4671){const _0x27112c=_0x3d62;typeof exports==_0x27112c(0x18f)&&typeof module<'u'?_0x2d4671(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x27112c(0x135)&&define[_0x27112c(0x134)]?define([_0x27112c(0x18e),'@univerjs/core',_0x27112c(0x113),_0x27112c(0x136)],_0x2d4671):(_0x480af3=typeof globalThis<'u'?globalThis:_0x480af3||self,_0x2d4671(_0x480af3[_0x27112c(0x116)]={},_0x480af3[_0x27112c(0x18c)],_0x480af3['UniverDocs'],_0x480af3[_0x27112c(0x13d)]));}(this,function(_0x29b34f,_0x3165fc,_0x178d62,_0x26ac39){const _0x34e4a7=_0x3d62;Object[_0x34e4a7(0x11c)](_0x29b34f,Symbol[_0x34e4a7(0x14d)],{'value':_0x34e4a7(0x13a)});function _0x112d94(_0x51dbeb,_0x18de01,_0x2cf246){const _0x21b84d=_0x34e4a7;if(_0x51dbeb[_0x21b84d(0x15f)]!=null&&!(_0x18de01===_0x21b84d(0x150)?[_0x21b84d(0x12e),_0x21b84d(0x162)]:['docEnd','sectEnd'])[_0x21b84d(0x106)](_0x51dbeb[_0x21b84d(0x15f)])||_0x51dbeb[_0x21b84d(0x152)]!=null&&!(_0x18de01===_0x21b84d(0x150)?[_0x21b84d(0x158),_0x21b84d(0x108),_0x21b84d(0x164)]:['continuous',_0x21b84d(0x108)])['includes'](_0x51dbeb[_0x21b84d(0x152)])||_0x51dbeb[_0x21b84d(0x17f)]!=null&&(!Number[_0x21b84d(0x16c)](_0x51dbeb[_0x21b84d(0x17f)])||_0x51dbeb[_0x21b84d(0x17f)]<0x1)||'columnCount'in _0x51dbeb&&_0x51dbeb[_0x21b84d(0x178)]!=null&&(_0x18de01!=='footnote'||!Number[_0x21b84d(0x16c)](_0x51dbeb[_0x21b84d(0x178)])||_0x51dbeb[_0x21b84d(0x178)]<0x0||_0x51dbeb[_0x21b84d(0x178)]>0x4)||_0x51dbeb[_0x21b84d(0x131)]!=null&&(typeof _0x51dbeb[_0x21b84d(0x131)]!=_0x21b84d(0xff)||_0x51dbeb[_0x21b84d(0x131)][_0x21b84d(0x183)]===0x0))return!0x1;for(let _0x31afc7 of[_0x51dbeb['separator'],_0x51dbeb[_0x21b84d(0x173)],_0x51dbeb['continuationNotice']])if(_0x31afc7!=null&&(_0x2cf246!=null||(0x0,_0x3165fc[_0x21b84d(0x10b)])(_0x31afc7)[_0x21b84d(0x183)]>0x0))return!0x1;return!0x0;}function _0x496343(_0x20fb71,_0x2a4f7c,_0x14357a){const _0xcbadd3=_0x34e4a7;var _0x29047a,_0x24e0c7;if(_0x2a4f7c[_0xcbadd3(0x109)]!=null&&!_0x112d94(_0x2a4f7c[_0xcbadd3(0x109)],_0x14357a,_0x2a4f7c[_0xcbadd3(0x10f)]))return!0x1;let _0xec6124=((_0x29047a=_0x20fb71['body'])==null||(_0x29047a=_0x29047a['sectionBreaks'])==null?void 0x0:_0x29047a[_0xcbadd3(0x186)](_0x12ae5a=>_0x12ae5a[_0xcbadd3(0x10f)]===_0x2a4f7c['sectionId']))??-0x1;if(_0x2a4f7c[_0xcbadd3(0x10f)]!=null&&_0xec6124<0x0)return!0x1;let _0x545a97=_0x2a4f7c['sectionId']==null?_0x20fb71[_0xcbadd3(0x128)]:(_0x24e0c7=_0x20fb71[_0xcbadd3(0x118)])==null||(_0x24e0c7=_0x24e0c7['sectionBreaks'])==null?void 0x0:_0x24e0c7[_0xec6124][_0xcbadd3(0x107)],_0x72eb20=_0x2a4f7c[_0xcbadd3(0x109)]==null?void 0x0:_0x3165fc[_0xcbadd3(0x181)][_0xcbadd3(0x185)](_0x2a4f7c['settings']),_0x390240=_0x2a4f7c[_0xcbadd3(0x10f)]==null?[_0xcbadd3(0x128)]:[_0xcbadd3(0x118),_0xcbadd3(0x155),_0xec6124,_0xcbadd3(0x107)],_0x550939=_0x3165fc[_0xcbadd3(0x123)][_0xcbadd3(0x17c)](),_0x5b8783=null;if(_0x3165fc[_0xcbadd3(0x181)][_0xcbadd3(0x140)](_0x545a97==null?void 0x0:_0x545a97[_0x14357a],_0x72eb20)||(_0x5b8783=_0x545a97==null?_0x550939['insertOp'](_0x390240,{[_0x14357a]:_0x72eb20}):_0x2a4f7c['sectionId']!=null&&_0x72eb20==null&&Object[_0xcbadd3(0x18d)](_0x545a97)['every'](_0x18f65c=>_0x18f65c===_0x14357a)?_0x550939[_0xcbadd3(0x192)](_0x390240,_0x545a97):_0x550939[_0xcbadd3(0x147)]([..._0x390240,_0x14357a],_0x545a97[_0x14357a],_0x72eb20)),_0x2a4f7c['suppressEndnotes']!=null){var _0x26485f;if(_0x14357a!==_0xcbadd3(0x15a)||_0x2a4f7c[_0xcbadd3(0x10f)]==null||typeof _0x2a4f7c[_0xcbadd3(0x18b)]!=_0xcbadd3(0x179))return!0x1;let _0x42e587=(_0x26485f=_0x20fb71[_0xcbadd3(0x118)])==null||(_0x26485f=_0x26485f[_0xcbadd3(0x155)])==null?void 0x0:_0x26485f[_0xec6124][_0xcbadd3(0x18b)];_0x42e587!==_0x2a4f7c[_0xcbadd3(0x18b)]&&(_0x5b8783=_0x3165fc['JSONX']['compose'](_0x5b8783,_0x550939[_0xcbadd3(0x147)]([_0xcbadd3(0x118),'sectionBreaks',_0xec6124,_0xcbadd3(0x18b)],_0x42e587,_0x2a4f7c['suppressEndnotes'])));}return _0x5b8783;}function _0x58e489(_0x518fd4,_0xe8a1fe,_0x366714){const _0x71d19f=_0x34e4a7;if(!_0xe8a1fe)return!0x1;let _0x3f7198=_0x518fd4[_0x71d19f(0x132)](_0x3165fc[_0x71d19f(0x10d)])['getUnit'](_0xe8a1fe['unitId'],_0x3165fc[_0x71d19f(0x121)][_0x71d19f(0x12b)]),_0x557e61=_0x3f7198==null?void 0x0:_0x3f7198['getSnapshot']();if(!_0x557e61||_0x557e61['documentStyle'][_0x71d19f(0x115)]!==_0x3165fc[_0x71d19f(0x143)][_0x71d19f(0x172)])return!0x1;let _0x436695=_0x496343(_0x557e61,_0xe8a1fe,_0x366714);return _0x436695===!0x1||_0x3165fc[_0x71d19f(0x123)][_0x71d19f(0x105)](_0x436695)?!0x1:!!_0x518fd4[_0x71d19f(0x132)](_0x3165fc['ICommandService'])[_0x71d19f(0x14c)](_0x178d62[_0x71d19f(0x154)]['id'],{'unitId':_0xe8a1fe[_0x71d19f(0x144)],'segmentId':'','historyAction':'set-'+_0x366714+'-settings','actions':_0x436695,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x1aecbd={'id':_0x34e4a7(0x127),'type':_0x3165fc[_0x34e4a7(0x16d)]['COMMAND'],'handler':(_0x3cc417,_0x252e58)=>_0x58e489(_0x3cc417,_0x252e58,_0x34e4a7(0x150))},_0x27a2d3={'id':_0x34e4a7(0x175),'type':_0x3165fc['CommandType'][_0x34e4a7(0x159)],'handler':(_0x5262d7,_0x5338ea)=>_0x58e489(_0x5262d7,_0x5338ea,'endnote')};function _0x436b5c(_0x1519c6,_0x26ae1b){const _0x560b43=_0x34e4a7;return(_0x1519c6==null?void 0x0:_0x1519c6['documentStyle'][_0x560b43(0x115)])===_0x3165fc['DocumentFlavor'][_0x560b43(0x172)]&&!!_0x1519c6[_0x560b43(0x118)]&&Number[_0x560b43(0x16c)](_0x26ae1b)&&_0x26ae1b>=0x0&&_0x26ae1b<_0x1519c6[_0x560b43(0x118)][_0x560b43(0x112)][_0x560b43(0x183)]-0x1;}function _0x2d067b(_0x23313d,_0xddc41b,_0xa277dd){const _0x1e6623=_0x34e4a7;var _0x31f18f,_0x10d12d;if(_0xddc41b[_0x1e6623(0x109)]===void 0x0&&_0xddc41b[_0x1e6623(0x18b)]===void 0x0)return null;let _0x28b638=_0xddc41b[_0x1e6623(0x10f)]==null?(_0x31f18f=_0x23313d[_0x1e6623(0x128)])==null?void 0x0:_0x31f18f[_0xa277dd]:(_0x10d12d=_0x23313d['body'])==null||(_0x10d12d=_0x10d12d[_0x1e6623(0x155)])==null||(_0x10d12d=_0x10d12d[_0x1e6623(0x110)](_0x15c9a6=>_0x15c9a6[_0x1e6623(0x10f)]===_0xddc41b[_0x1e6623(0x10f)]))==null||(_0x10d12d=_0x10d12d['noteProperties'])==null?void 0x0:_0x10d12d[_0xa277dd];return _0x496343(_0x23313d,{'settings':_0xddc41b['settings']===void 0x0?_0x28b638??null:_0xddc41b[_0x1e6623(0x109)],'sectionId':_0xddc41b[_0x1e6623(0x10f)],'suppressEndnotes':_0xddc41b[_0x1e6623(0x18b)]},_0xa277dd);}function _0x21b099(_0x494c24,_0x46402b,_0x1e1ef8){const _0x4e76b4=_0x34e4a7;var _0x46518d,_0x4a3c42,_0x4390e8;if(!_0x46402b||_0x46402b[_0x4e76b4(0x166)])return!0x1;let _0xedbc57=_0x494c24[_0x4e76b4(0x132)](_0x3165fc[_0x4e76b4(0x10d)])[_0x4e76b4(0x16b)](_0x46402b['unitId'],_0x3165fc[_0x4e76b4(0x121)]['UNIVER_DOC']),_0x480df9=_0xedbc57==null?void 0x0:_0xedbc57[_0x4e76b4(0x16f)](),{offset:_0x422fc5}=_0x46402b;if(!_0x436b5c(_0x480df9,_0x422fc5))return!0x1;let _0xc67dfd=_0x2d067b(_0x480df9,_0x46402b,_0x1e1ef8);if(_0xc67dfd===!0x1)return!0x1;let _0x1425ed=_0x46402b['noteId']??(0x0,_0x3165fc[_0x4e76b4(0x104)])(0xc);if((_0x46518d=_0x480df9[_0x4e76b4(0x169)])!=null&&_0x46518d[_0x1425ed]||(_0x4a3c42=_0x480df9[_0x4e76b4(0x124)])!=null&&_0x4a3c42[_0x1425ed]||(_0x4390e8=_0x480df9[_0x4e76b4(0x10e)])!=null&&_0x4390e8[_0x1425ed])return!0x1;let _0x467242=_0x3165fc[_0x4e76b4(0x181)]['deepClone']({'type':_0x1e1ef8,'noteId':_0x1425ed,'body':_0x46402b[_0x4e76b4(0x118)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x3165fc[_0x4e76b4(0x189)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x3165fc['createSectionId'])(new Set()),'startIndex':0x1}]},'customMark':_0x46402b[_0x4e76b4(0x180)],'referenceTextStyle':_0x46402b['referenceTextStyle'],'tableSource':_0x46402b[_0x4e76b4(0x13c)],'drawings':_0x46402b['drawings'],'drawingsOrder':_0x46402b[_0x4e76b4(0x117)],'lists':_0x46402b[_0x4e76b4(0x156)]});if((0x0,_0x3165fc[_0x4e76b4(0x149)])({'notes':{[_0x1425ed]:_0x467242}})[_0x4e76b4(0x183)]>0x0)return!0x1;let _0x48df1f=new _0x3165fc[(_0x4e76b4(0x11b))]();_0x422fc5>0x0&&_0x48df1f[_0x4e76b4(0x133)](_0x422fc5),_0x48df1f[_0x4e76b4(0x13e)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x1e1ef8===_0x4e76b4(0x150)?_0x3165fc['CustomRangeType'][_0x4e76b4(0x145)]:_0x3165fc[_0x4e76b4(0x12d)]['ENDNOTE'],'rangeId':(0x0,_0x3165fc['generateRandomId'])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x1425ed}}]});let _0x3cd23f=_0x3165fc[_0x4e76b4(0x123)][_0x4e76b4(0x17c)](),_0xacb448=_0x480df9['notes']==null?_0x3cd23f[_0x4e76b4(0x17a)]([_0x4e76b4(0x169)],{[_0x1425ed]:_0x467242}):_0x3cd23f[_0x4e76b4(0x17a)]([_0x4e76b4(0x169),_0x1425ed],_0x467242);return!!_0x494c24['get'](_0x3165fc[_0x4e76b4(0x137)])[_0x4e76b4(0x14c)](_0x178d62['RichTextEditingMutation']['id'],{'unitId':_0x46402b[_0x4e76b4(0x144)],'segmentId':'','historyAction':_0x4e76b4(0x129)+_0x1e1ef8,'actions':_0x3165fc['JSONX'][_0x4e76b4(0x13f)](_0x3165fc['JSONX']['compose'](_0xc67dfd,_0xacb448),_0x3cd23f[_0x4e76b4(0x16a)](_0x48df1f['serialize'](),[_0x4e76b4(0x118)])),'textRanges':[{'segmentId':_0x1425ed,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x45b14e(_0x4b9889,_0x4ff227,_0x5acac3){const _0x2d903b=_0x34e4a7;var _0x186ff3,_0x2d2910;if(!_0x4ff227)return!0x1;let _0x2e1f96=_0x4b9889[_0x2d903b(0x132)](_0x3165fc[_0x2d903b(0x10d)])[_0x2d903b(0x16b)](_0x4ff227[_0x2d903b(0x144)],_0x3165fc[_0x2d903b(0x121)][_0x2d903b(0x12b)]),_0x10bd23=_0x2e1f96==null?void 0x0:_0x2e1f96[_0x2d903b(0x16f)](),_0x208dd8=_0x10bd23==null||(_0x186ff3=_0x10bd23[_0x2d903b(0x169)])==null?void 0x0:_0x186ff3[_0x4ff227[_0x2d903b(0x190)]],_0x393459=_0x10bd23==null||(_0x2d2910=_0x10bd23[_0x2d903b(0x118)])==null||(_0x2d2910=_0x2d2910['customRanges'])==null?void 0x0:_0x2d2910['find'](_0x2b0af8=>{const _0x1635ad=_0x2d903b;var _0xfc0c81;return(_0x2b0af8[_0x1635ad(0x102)]===_0x3165fc['CustomRangeType'][_0x1635ad(0x145)]||_0x2b0af8[_0x1635ad(0x102)]===_0x3165fc[_0x1635ad(0x12d)][_0x1635ad(0x11f)])&&((_0xfc0c81=_0x2b0af8[_0x1635ad(0x174)])==null?void 0x0:_0xfc0c81[_0x1635ad(0x190)])===_0x4ff227[_0x1635ad(0x190)];});if(!_0x10bd23||_0x10bd23[_0x2d903b(0x16e)][_0x2d903b(0x115)]!==_0x3165fc[_0x2d903b(0x143)][_0x2d903b(0x172)]||!_0x208dd8||_0x208dd8[_0x2d903b(0x176)]!==_0x5acac3||!_0x393459)return!0x1;let _0x3afa08=new _0x3165fc[(_0x2d903b(0x11b))]();_0x393459['startIndex']>0x0&&_0x3afa08[_0x2d903b(0x133)](_0x393459['startIndex']),_0x3afa08[_0x2d903b(0x187)](0x1);let _0x19b6f7=_0x3165fc[_0x2d903b(0x123)][_0x2d903b(0x17c)]();return!!_0x4b9889[_0x2d903b(0x132)](_0x3165fc[_0x2d903b(0x137)])['syncExecuteCommand'](_0x178d62[_0x2d903b(0x154)]['id'],{'unitId':_0x4ff227[_0x2d903b(0x144)],'segmentId':'','historyAction':_0x2d903b(0x14a)+_0x5acac3,'actions':_0x3165fc[_0x2d903b(0x123)][_0x2d903b(0x13f)](_0x19b6f7[_0x2d903b(0x16a)](_0x3afa08['serialize'](),['body']),_0x19b6f7[_0x2d903b(0x192)]([_0x2d903b(0x169),_0x4ff227[_0x2d903b(0x190)]],_0x208dd8)),'textRanges':[{'startOffset':_0x393459[_0x2d903b(0x14b)],'endOffset':_0x393459['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}let _0x1e30c6={'id':_0x34e4a7(0x161),'type':_0x3165fc[_0x34e4a7(0x16d)][_0x34e4a7(0x159)],'handler':(_0x472787,_0x314b4e)=>_0x21b099(_0x472787,_0x314b4e,_0x34e4a7(0x150))},_0xaabe9d={'id':_0x34e4a7(0x12a),'type':_0x3165fc[_0x34e4a7(0x16d)]['COMMAND'],'handler':(_0x515f25,_0x3d7fd1)=>_0x45b14e(_0x515f25,_0x3d7fd1,'footnote')},_0x25edc5={'id':_0x34e4a7(0x153),'type':_0x3165fc[_0x34e4a7(0x16d)][_0x34e4a7(0x159)],'handler':(_0x3e1961,_0x285217)=>_0x21b099(_0x3e1961,_0x285217,_0x34e4a7(0x15a))},_0x5affb2={'id':_0x34e4a7(0x12f),'type':_0x3165fc[_0x34e4a7(0x16d)][_0x34e4a7(0x159)],'handler':(_0x554068,_0x3c8926)=>_0x45b14e(_0x554068,_0x3c8926,'endnote')};var _0x12dda2=_0x34e4a7(0x170),_0x43db57='1.2.0';let _0x5cf803={};function _0x286107(_0xf7ca5d,_0x10461d){return function(_0x2b90ea,_0x889c4c){_0x10461d(_0x2b90ea,_0x889c4c,_0xf7ca5d);};}function _0x147f4(_0x197684,_0x240971,_0x3efce,_0x7c827d){const _0x713639=_0x34e4a7;var _0xf2a6f6=arguments[_0x713639(0x183)],_0x12a58a=_0xf2a6f6<0x3?_0x240971:_0x7c827d===null?_0x7c827d=Object[_0x713639(0x12c)](_0x240971,_0x3efce):_0x7c827d,_0x59d697;if(typeof Reflect==_0x713639(0x18f)&&typeof Reflect[_0x713639(0x11a)]=='function')_0x12a58a=Reflect[_0x713639(0x11a)](_0x197684,_0x240971,_0x3efce,_0x7c827d);else{for(var _0x22110f=_0x197684[_0x713639(0x183)]-0x1;_0x22110f>=0x0;_0x22110f--)(_0x59d697=_0x197684[_0x22110f])&&(_0x12a58a=(_0xf2a6f6<0x3?_0x59d697(_0x12a58a):_0xf2a6f6>0x3?_0x59d697(_0x240971,_0x3efce,_0x12a58a):_0x59d697(_0x240971,_0x3efce))||_0x12a58a);}return _0xf2a6f6>0x3&&_0x12a58a&&Object['defineProperty'](_0x240971,_0x3efce,_0x12a58a),_0x12a58a;}function _0x2e7931(_0x312d93){'@babel/helpers - typeof';const _0x3c9e09=_0x34e4a7;return _0x2e7931=typeof Symbol==_0x3c9e09(0x135)&&typeof Symbol[_0x3c9e09(0x13b)]==_0x3c9e09(0x177)?function(_0x3785ac){return typeof _0x3785ac;}:function(_0x2e0138){const _0x832f6d=_0x3c9e09;return _0x2e0138&&typeof Symbol==_0x832f6d(0x135)&&_0x2e0138[_0x832f6d(0x188)]===Symbol&&_0x2e0138!==Symbol[_0x832f6d(0x17e)]?'symbol':typeof _0x2e0138;},_0x2e7931(_0x312d93);}function _0x3802a4(_0x30cab7,_0x807902){const _0x3ef8e6=_0x34e4a7;if(_0x2e7931(_0x30cab7)!=_0x3ef8e6(0x18f)||!_0x30cab7)return _0x30cab7;var _0x44d07b=_0x30cab7[Symbol[_0x3ef8e6(0x14e)]];if(_0x44d07b!==void 0x0){var _0x3a36ff=_0x44d07b[_0x3ef8e6(0x125)](_0x30cab7,_0x807902||_0x3ef8e6(0x15c));if(_0x2e7931(_0x3a36ff)!=_0x3ef8e6(0x18f))return _0x3a36ff;throw TypeError(_0x3ef8e6(0x120));}return(_0x807902===_0x3ef8e6(0xff)?String:Number)(_0x30cab7);}function _0x56eef8(_0x4d56c7){const _0x465ddb=_0x34e4a7;var _0x4e5356=_0x3802a4(_0x4d56c7,_0x465ddb(0xff));return _0x2e7931(_0x4e5356)==_0x465ddb(0x177)?_0x4e5356:_0x4e5356+'';}function _0x5bfeee(_0x376e61,_0x4fbdf9,_0x587a88){const _0x599dd5=_0x34e4a7;return(_0x4fbdf9=_0x56eef8(_0x4fbdf9))in _0x376e61?Object[_0x599dd5(0x11c)](_0x376e61,_0x4fbdf9,{'value':_0x587a88,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x376e61[_0x4fbdf9]=_0x587a88,_0x376e61;}let _0x251bbc=class extends _0x3165fc[_0x34e4a7(0x122)]{constructor(_0x45b076=_0x5cf803,_0x4d3192,_0x5e1cd3,_0x2906bb){const _0x40d065=_0x34e4a7;super(),this[_0x40d065(0x165)]=_0x45b076,this[_0x40d065(0x184)]=_0x4d3192,this[_0x40d065(0x100)]=_0x5e1cd3,this[_0x40d065(0x11d)]=_0x2906bb;let {..._0xeb3f47}=(0x0,_0x3165fc[_0x40d065(0x142)])({},_0x5cf803,this[_0x40d065(0x165)]);this[_0x40d065(0x100)][_0x40d065(0x171)]('docs-reference.config',_0xeb3f47);}[_0x34e4a7(0x157)](){const _0x3018f0=_0x34e4a7;[_0x1e30c6,_0xaabe9d,_0x1aecbd,_0x25edc5,_0x5affb2,_0x27a2d3][_0x3018f0(0x101)](_0x319c31=>this[_0x3018f0(0x139)](this[_0x3018f0(0x11d)][_0x3018f0(0x15b)](_0x319c31)));}};_0x5bfeee(_0x251bbc,_0x34e4a7(0x17b),_0x34e4a7(0x14f)),_0x5bfeee(_0x251bbc,_0x34e4a7(0x130),_0x12dda2),_0x5bfeee(_0x251bbc,_0x34e4a7(0x160),_0x43db57),_0x5bfeee(_0x251bbc,'type',_0x3165fc[_0x34e4a7(0x121)][_0x34e4a7(0x12b)]),_0x251bbc=_0x147f4([(0x0,_0x3165fc['DependentOn'])(_0x26ac39[_0x34e4a7(0x114)],_0x178d62['UniverDocsPlugin']),_0x286107(0x1,(0x0,_0x3165fc[_0x34e4a7(0x15e)])(_0x3165fc[_0x34e4a7(0x111)])),_0x286107(0x2,_0x3165fc[_0x34e4a7(0x126)]),_0x286107(0x3,_0x3165fc[_0x34e4a7(0x137)])],_0x251bbc),_0x29b34f['DeleteDocumentEndnoteCommand']=_0x5affb2,_0x29b34f[_0x34e4a7(0x10c)]=_0xaabe9d,_0x29b34f[_0x34e4a7(0x167)]=_0x25edc5,_0x29b34f[_0x34e4a7(0x138)]=_0x1e30c6,_0x29b34f[_0x34e4a7(0x18a)]=_0x27a2d3,_0x29b34f[_0x34e4a7(0x163)]=_0x1aecbd,Object['defineProperty'](_0x29b34f,_0x34e4a7(0x182),{'enumerable':!0x0,'get':function(){return _0x251bbc;}});}));function _0xdd66(){const _0x9252af=['eachPage','_config','segmentId','InsertDocumentEndnoteCommand','80qqnuKN','notes','editOp','getUnit','isInteger','CommandType','documentStyle','getSnapshot','@univerjs-pro/docs-reference','setConfig','TRADITIONAL','continuationSeparator','properties','doc.command.set-endnote-settings','type','symbol','columnCount','boolean','insertOp','pluginName','getInstance','2RIWdFk','prototype','startNumber','customMark','Tools','UniverDocsReferencePlugin','length','_injector','deepClone','findIndex','delete','constructor','createParagraphId','SetDocumentEndnoteSettingsCommand','suppressEndnotes','UniverCore','keys','exports','object','noteId','23385396dbeQPs','removeOp','string','_configService','forEach','rangeType','19581gQqCYM','generateRandomId','isNoop','includes','noteProperties','eachSect','settings','747900EsJRdg','validateDocBodyStructure','DeleteDocumentFootnoteCommand','IUniverInstanceService','footers','sectionId','find','Injector','dataStream','@univerjs/docs','UniverLicensePlugin','documentFlavor','UniverProDocsReference','drawingsOrder','body','5598264wRCEmP','decorate','TextX','defineProperty','_commandService','185396FlkJjG','ENDNOTE','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverInstanceType','Plugin','JSONX','headers','call','IConfigService','doc.command.set-footnote-settings','noteSettings','insert-','doc.command.delete-footnote','UNIVER_DOC','getOwnPropertyDescriptor','CustomRangeType','pageBottom','doc.command.delete-endnote','packageName','numberFormat','get','retain','amd','function','@univerjs-pro/license','ICommandService','InsertDocumentFootnoteCommand','disposeWithMe','Module','iterator','tableSource','UniverProLicense','insert','compose','diffValue','1135085gdGnin','merge','DocumentFlavor','unitId','FOOTNOTE','1464665yNaGrQ','replaceOp','11uQBZdO','validateDocumentStructure','delete-','startIndex','syncExecuteCommand','toStringTag','toPrimitive','UNIVER_DOCS_REFERENCE_PLUGIN','footnote','668eWFHMw','restart','doc.command.insert-endnote','RichTextEditingMutation','sectionBreaks','lists','onStarting','continuous','COMMAND','endnote','registerCommand','default','36nfsvRR','Inject','position','version','doc.command.insert-footnote','beneathText','SetDocumentFootnoteSettingsCommand'];_0xdd66=function(){return _0x9252af;};return _0xdd66();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-reference",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Document references commands and Facade integration.",
|
|
6
6
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"lib"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@univerjs-pro/license": "1.
|
|
63
|
-
"@univerjs/core": "1.
|
|
64
|
-
"@univerjs/docs": "1.
|
|
62
|
+
"@univerjs-pro/license": "1.2.0",
|
|
63
|
+
"@univerjs/core": "1.2.0",
|
|
64
|
+
"@univerjs/docs": "1.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@univerjs-infra/shared": "1.
|
|
68
|
-
"@univerjs/engine-render": "1.
|
|
67
|
+
"@univerjs-infra/shared": "1.2.0",
|
|
68
|
+
"@univerjs/engine-render": "1.2.0",
|
|
69
69
|
"rxjs": "7.8.2",
|
|
70
70
|
"typescript": "^6.0.3",
|
|
71
71
|
"vitest": "^5.0.4"
|