@univerjs-pro/docs-reference 1.0.4 → 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 +7 -7
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
|
-
const _0x31b473=_0x4601;(function(_0x43997b,_0x5eeb1d){const _0x4bf2a1=_0x4601,_0x1a675c=_0x43997b();while(!![]){try{const _0xd79ab7=-parseInt(_0x4bf2a1(0x220))/0x1+parseInt(_0x4bf2a1(0x1c7))/0x2+-parseInt(_0x4bf2a1(0x1d9))/0x3+parseInt(_0x4bf2a1(0x1d8))/0x4+parseInt(_0x4bf2a1(0x203))/0x5*(-parseInt(_0x4bf2a1(0x22d))/0x6)+-parseInt(_0x4bf2a1(0x224))/0x7*(-parseInt(_0x4bf2a1(0x1e0))/0x8)+-parseInt(_0x4bf2a1(0x1e8))/0x9*(-parseInt(_0x4bf2a1(0x225))/0xa);if(_0xd79ab7===_0x5eeb1d)break;else _0x1a675c['push'](_0x1a675c['shift']());}catch(_0x2c2924){_0x1a675c['push'](_0x1a675c['shift']());}}}(_0x3296,0xeb116),Object[_0x31b473(0x1ed)](exports,Symbol[_0x31b473(0x207)],{'value':'Module'}));function _0x3296(){const _0x184295=['rangeType','merge','validateDocumentStructure','replaceOp','includes','_config','FOOTNOTE','7396376KnYsea','1115301eBaYmB','createSectionId','docs-reference.config','endnote','onStarting','footers','1.0.4','151760pdBZXG','IConfigService','_configService','properties','doc.command.set-endnote-settings','find','insertOp','startIndex','11285883HYtnqj','disposeWithMe','dataStream','SetDocumentEndnoteSettingsCommand','getSnapshot','defineProperty','ENDNOTE','sectionBreaks','type','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','tableSource','UNIVER_DOC','DependentOn','drawings','noteProperties','doc.command.delete-endnote','restart','isInteger','deepClone','IUniverInstanceService','retain','customRanges','serialize','boolean','getOwnPropertyDescriptor','set-','version','10CuijvR','sectEnd','DeleteDocumentEndnoteCommand','columnCount','toStringTag','TRADITIONAL','startNumber','doc.command.set-footnote-settings','COMMAND','eachSect','Injector','compose','-settings','notes','docEnd','referenceTextStyle','doc.command.delete-footnote','decorate','ICommandService','body','continuationNotice','prototype','Tools','every','documentFlavor','CommandType','getUnit','settings','_commandService','1055753bbLZWD','insert','continuationSeparator','numberFormat','7rBHzkT','10asZklN','default','separator','doc.command.insert-footnote','suppressEndnotes','lists','sectionId','removeOp','2491182RRbTvj','noteId','UniverLicensePlugin','eachPage','syncExecuteCommand','diffValue','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','footnote','position','documentStyle','UniverInstanceType','string','DocumentFlavor','CustomRangeType','get','toPrimitive','pageBottom','length','InsertDocumentFootnoteCommand','continuous','function','delete','InsertDocumentEndnoteCommand','_injector','editOp','findIndex','doc.command.insert-endnote','JSONX','customMark','UniverDocsPlugin','SetDocumentFootnoteSettingsCommand','TextX','unitId','197402fZOuvg','RichTextEditingMutation','object','constructor','keys','createParagraphId','beneathText','noteSettings','symbol','generateRandomId'];_0x3296=function(){return _0x184295;};return _0x3296();}let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x2cbc69,_0x12cb3e,_0x5b0048){const _0x2b8c5c=_0x31b473;if(_0x2cbc69['position']!=null&&!(_0x12cb3e===_0x2b8c5c(0x235)?[_0x2b8c5c(0x23e),_0x2b8c5c(0x1cd)]:[_0x2b8c5c(0x211),_0x2b8c5c(0x204)])[_0x2b8c5c(0x1d5)](_0x2cbc69[_0x2b8c5c(0x236)])||_0x2cbc69[_0x2b8c5c(0x1f8)]!=null&&!(_0x12cb3e===_0x2b8c5c(0x235)?['continuous','eachSect',_0x2b8c5c(0x230)]:[_0x2b8c5c(0x241),_0x2b8c5c(0x20c)])[_0x2b8c5c(0x1d5)](_0x2cbc69[_0x2b8c5c(0x1f8)])||_0x2cbc69[_0x2b8c5c(0x209)]!=null&&(!Number['isInteger'](_0x2cbc69[_0x2b8c5c(0x209)])||_0x2cbc69['startNumber']<0x1)||_0x2b8c5c(0x206)in _0x2cbc69&&_0x2cbc69[_0x2b8c5c(0x206)]!=null&&(_0x12cb3e!==_0x2b8c5c(0x235)||!Number[_0x2b8c5c(0x1f9)](_0x2cbc69[_0x2b8c5c(0x206)])||_0x2cbc69[_0x2b8c5c(0x206)]<0x0||_0x2cbc69[_0x2b8c5c(0x206)]>0x4)||_0x2cbc69['numberFormat']!=null&&(typeof _0x2cbc69[_0x2b8c5c(0x223)]!=_0x2b8c5c(0x239)||_0x2cbc69[_0x2b8c5c(0x223)]['length']===0x0))return!0x1;for(let _0x1e9ad7 of[_0x2cbc69[_0x2b8c5c(0x227)],_0x2cbc69[_0x2b8c5c(0x222)],_0x2cbc69[_0x2b8c5c(0x217)]])if(_0x1e9ad7!=null&&(_0x5b0048!=null||(0x0,e['validateDocBodyStructure'])(_0x1e9ad7)[_0x2b8c5c(0x23f)]>0x0))return!0x1;return!0x0;}function i(_0xdbfb36,_0x57080e,_0x3eccc5){const _0x1e1d0f=_0x31b473;var _0xbaf892,_0x51cd15;if(_0x57080e[_0x1e1d0f(0x21e)]!=null&&!r(_0x57080e['settings'],_0x3eccc5,_0x57080e[_0x1e1d0f(0x22b)]))return!0x1;let _0x340bef=((_0xbaf892=_0xdbfb36[_0x1e1d0f(0x216)])==null||(_0xbaf892=_0xbaf892[_0x1e1d0f(0x1ef)])==null?void 0x0:_0xbaf892[_0x1e1d0f(0x1bf)](_0x2f2240=>_0x2f2240[_0x1e1d0f(0x22b)]===_0x57080e[_0x1e1d0f(0x22b)]))??-0x1;if(_0x57080e['sectionId']!=null&&_0x340bef<0x0)return!0x1;let _0x1c1265=_0x57080e[_0x1e1d0f(0x22b)]==null?_0xdbfb36[_0x1e1d0f(0x1ce)]:(_0x51cd15=_0xdbfb36[_0x1e1d0f(0x216)])==null||(_0x51cd15=_0x51cd15[_0x1e1d0f(0x1ef)])==null?void 0x0:_0x51cd15[_0x340bef][_0x1e1d0f(0x1f6)],_0xdab602=_0x57080e[_0x1e1d0f(0x21e)]==null?void 0x0:e[_0x1e1d0f(0x219)][_0x1e1d0f(0x1fa)](_0x57080e[_0x1e1d0f(0x21e)]),_0xfbf8fb=_0x57080e[_0x1e1d0f(0x22b)]==null?[_0x1e1d0f(0x1ce)]:[_0x1e1d0f(0x216),_0x1e1d0f(0x1ef),_0x340bef,_0x1e1d0f(0x1f6)],_0xee6d0b=e[_0x1e1d0f(0x1c1)]['getInstance'](),_0x2bd7b4=null;if(e[_0x1e1d0f(0x219)][_0x1e1d0f(0x232)](_0x1c1265==null?void 0x0:_0x1c1265[_0x3eccc5],_0xdab602)||(_0x2bd7b4=_0x1c1265==null?_0xee6d0b[_0x1e1d0f(0x1e6)](_0xfbf8fb,{[_0x3eccc5]:_0xdab602}):_0x57080e['sectionId']!=null&&_0xdab602==null&&Object[_0x1e1d0f(0x1cb)](_0x1c1265)[_0x1e1d0f(0x21a)](_0x2ca741=>_0x2ca741===_0x3eccc5)?_0xee6d0b['removeOp'](_0xfbf8fb,_0x1c1265):_0xee6d0b[_0x1e1d0f(0x1d4)]([..._0xfbf8fb,_0x3eccc5],_0x1c1265[_0x3eccc5],_0xdab602)),_0x57080e[_0x1e1d0f(0x229)]!=null){var _0xc0b97c;if(_0x3eccc5!==_0x1e1d0f(0x1dc)||_0x57080e[_0x1e1d0f(0x22b)]==null||typeof _0x57080e[_0x1e1d0f(0x229)]!=_0x1e1d0f(0x1ff))return!0x1;let _0x3d672a=(_0xc0b97c=_0xdbfb36[_0x1e1d0f(0x216)])==null||(_0xc0b97c=_0xc0b97c[_0x1e1d0f(0x1ef)])==null?void 0x0:_0xc0b97c[_0x340bef][_0x1e1d0f(0x229)];_0x3d672a!==_0x57080e[_0x1e1d0f(0x229)]&&(_0x2bd7b4=e[_0x1e1d0f(0x1c1)]['compose'](_0x2bd7b4,_0xee6d0b[_0x1e1d0f(0x1d4)](['body','sectionBreaks',_0x340bef,_0x1e1d0f(0x229)],_0x3d672a,_0x57080e[_0x1e1d0f(0x229)])));}return _0x2bd7b4;}function a(_0x3555d2,_0xed7e35,_0x1bff70){const _0x1c160e=_0x31b473;if(!_0xed7e35)return!0x1;let _0x2fc5c0=_0x3555d2[_0x1c160e(0x23c)](e[_0x1c160e(0x1fb)])[_0x1c160e(0x21d)](_0xed7e35[_0x1c160e(0x1c6)],e['UniverInstanceType'][_0x1c160e(0x1f3)]),_0x31d6e9=_0x2fc5c0==null?void 0x0:_0x2fc5c0[_0x1c160e(0x1ec)]();if(!_0x31d6e9||_0x31d6e9['documentStyle'][_0x1c160e(0x21b)]!==e[_0x1c160e(0x23a)][_0x1c160e(0x208)])return!0x1;let _0x14ba7a=i(_0x31d6e9,_0xed7e35,_0x1bff70);return _0x14ba7a===!0x1||e[_0x1c160e(0x1c1)]['isNoop'](_0x14ba7a)?!0x1:!!_0x3555d2[_0x1c160e(0x23c)](e[_0x1c160e(0x215)])[_0x1c160e(0x231)](t['RichTextEditingMutation']['id'],{'unitId':_0xed7e35[_0x1c160e(0x1c6)],'segmentId':'','historyAction':_0x1c160e(0x201)+_0x1bff70+_0x1c160e(0x20f),'actions':_0x14ba7a,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x31b473(0x20a),'type':e[_0x31b473(0x21c)][_0x31b473(0x20b)],'handler':(_0x48b8dc,_0x377b56)=>a(_0x48b8dc,_0x377b56,'footnote')},s={'id':_0x31b473(0x1e4),'type':e['CommandType'][_0x31b473(0x20b)],'handler':(_0x2839f3,_0xc9de31)=>a(_0x2839f3,_0xc9de31,_0x31b473(0x1dc))};function c(_0xd4311f,_0xc75d5b){const _0x569391=_0x31b473;return(_0xd4311f==null?void 0x0:_0xd4311f[_0x569391(0x237)][_0x569391(0x21b)])===e[_0x569391(0x23a)][_0x569391(0x208)]&&!!_0xd4311f[_0x569391(0x216)]&&Number[_0x569391(0x1f9)](_0xc75d5b)&&_0xc75d5b>=0x0&&_0xc75d5b<_0xd4311f[_0x569391(0x216)][_0x569391(0x1ea)][_0x569391(0x23f)]-0x1;}function l(_0x1b9d73,_0x5ce521,_0x40a492){const _0x184ce9=_0x31b473;var _0xc0f74a,_0x1452f3;if(_0x5ce521['settings']===void 0x0&&_0x5ce521[_0x184ce9(0x229)]===void 0x0)return null;let _0x35797c=_0x5ce521[_0x184ce9(0x22b)]==null?(_0xc0f74a=_0x1b9d73[_0x184ce9(0x1ce)])==null?void 0x0:_0xc0f74a[_0x40a492]:(_0x1452f3=_0x1b9d73[_0x184ce9(0x216)])==null||(_0x1452f3=_0x1452f3[_0x184ce9(0x1ef)])==null||(_0x1452f3=_0x1452f3[_0x184ce9(0x1e5)](_0x2331ac=>_0x2331ac[_0x184ce9(0x22b)]===_0x5ce521[_0x184ce9(0x22b)]))==null||(_0x1452f3=_0x1452f3['noteProperties'])==null?void 0x0:_0x1452f3[_0x40a492];return i(_0x1b9d73,{'settings':_0x5ce521[_0x184ce9(0x21e)]===void 0x0?_0x35797c??null:_0x5ce521[_0x184ce9(0x21e)],'sectionId':_0x5ce521[_0x184ce9(0x22b)],'suppressEndnotes':_0x5ce521['suppressEndnotes']},_0x40a492);}function u(_0x27b079,_0x4a9154,_0x41c2aa){const _0x42633a=_0x31b473;var _0x4b1ded,_0x1dd945,_0x5aa939;if(!_0x4a9154||_0x4a9154['segmentId'])return!0x1;let _0x488019=_0x27b079['get'](e[_0x42633a(0x1fb)])[_0x42633a(0x21d)](_0x4a9154[_0x42633a(0x1c6)],e['UniverInstanceType'][_0x42633a(0x1f3)]),_0x25f468=_0x488019==null?void 0x0:_0x488019[_0x42633a(0x1ec)](),{offset:_0x455d9b}=_0x4a9154;if(!c(_0x25f468,_0x455d9b))return!0x1;let _0x530974=l(_0x25f468,_0x4a9154,_0x41c2aa);if(_0x530974===!0x1)return!0x1;let _0x4b662d=_0x4a9154[_0x42633a(0x22e)]??(0x0,e[_0x42633a(0x1d0)])(0xc);if((_0x4b1ded=_0x25f468[_0x42633a(0x210)])!=null&&_0x4b1ded[_0x4b662d]||(_0x1dd945=_0x25f468['headers'])!=null&&_0x1dd945[_0x4b662d]||(_0x5aa939=_0x25f468[_0x42633a(0x1de)])!=null&&_0x5aa939[_0x4b662d])return!0x1;let _0x711bab=e['Tools'][_0x42633a(0x1fa)]({'type':_0x41c2aa,'noteId':_0x4b662d,'body':_0x4a9154[_0x42633a(0x216)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e[_0x42633a(0x1cc)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e[_0x42633a(0x1da)])(new Set()),'startIndex':0x1}]},'customMark':_0x4a9154[_0x42633a(0x1c2)],'referenceTextStyle':_0x4a9154[_0x42633a(0x212)],'tableSource':_0x4a9154[_0x42633a(0x1f2)],'drawings':_0x4a9154[_0x42633a(0x1f5)],'drawingsOrder':_0x4a9154['drawingsOrder'],'lists':_0x4a9154[_0x42633a(0x22a)]});if((0x0,e[_0x42633a(0x1d3)])({'notes':{[_0x4b662d]:_0x711bab}})['length']>0x0)return!0x1;let _0x556929=new e[(_0x42633a(0x1c5))]();_0x455d9b>0x0&&_0x556929[_0x42633a(0x1fc)](_0x455d9b),_0x556929[_0x42633a(0x221)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x41c2aa===_0x42633a(0x235)?e[_0x42633a(0x23b)][_0x42633a(0x1d7)]:e[_0x42633a(0x23b)]['ENDNOTE'],'rangeId':(0x0,e[_0x42633a(0x1d0)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x4b662d}}]});let _0x34abdc=e[_0x42633a(0x1c1)][_0x42633a(0x233)](),_0x2ebe0b=_0x25f468[_0x42633a(0x210)]==null?_0x34abdc['insertOp'](['notes'],{[_0x4b662d]:_0x711bab}):_0x34abdc[_0x42633a(0x1e6)](['notes',_0x4b662d],_0x711bab);return!!_0x27b079[_0x42633a(0x23c)](e[_0x42633a(0x215)])[_0x42633a(0x231)](t[_0x42633a(0x1c8)]['id'],{'unitId':_0x4a9154[_0x42633a(0x1c6)],'segmentId':'','historyAction':'insert-'+_0x41c2aa,'actions':e[_0x42633a(0x1c1)][_0x42633a(0x20e)](e[_0x42633a(0x1c1)]['compose'](_0x530974,_0x2ebe0b),_0x34abdc[_0x42633a(0x1be)](_0x556929[_0x42633a(0x1fe)](),[_0x42633a(0x216)])),'textRanges':[{'segmentId':_0x4b662d,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x4abd3b,_0x40cc29,_0x17ed55){const _0x33b9f6=_0x31b473;var _0x18e134,_0x12203d;if(!_0x40cc29)return!0x1;let _0x7f6588=_0x4abd3b[_0x33b9f6(0x23c)](e[_0x33b9f6(0x1fb)])['getUnit'](_0x40cc29[_0x33b9f6(0x1c6)],e[_0x33b9f6(0x238)]['UNIVER_DOC']),_0xabe10e=_0x7f6588==null?void 0x0:_0x7f6588[_0x33b9f6(0x1ec)](),_0x5241a4=_0xabe10e==null||(_0x18e134=_0xabe10e['notes'])==null?void 0x0:_0x18e134[_0x40cc29[_0x33b9f6(0x22e)]],_0x488a6b=_0xabe10e==null||(_0x12203d=_0xabe10e[_0x33b9f6(0x216)])==null||(_0x12203d=_0x12203d[_0x33b9f6(0x1fd)])==null?void 0x0:_0x12203d[_0x33b9f6(0x1e5)](_0x2227a3=>{const _0x56e5ca=_0x33b9f6;var _0x1522f9;return(_0x2227a3[_0x56e5ca(0x1d1)]===e[_0x56e5ca(0x23b)][_0x56e5ca(0x1d7)]||_0x2227a3[_0x56e5ca(0x1d1)]===e['CustomRangeType'][_0x56e5ca(0x1ee)])&&((_0x1522f9=_0x2227a3[_0x56e5ca(0x1e3)])==null?void 0x0:_0x1522f9[_0x56e5ca(0x22e)])===_0x40cc29[_0x56e5ca(0x22e)];});if(!_0xabe10e||_0xabe10e['documentStyle'][_0x33b9f6(0x21b)]!==e[_0x33b9f6(0x23a)]['TRADITIONAL']||!_0x5241a4||_0x5241a4[_0x33b9f6(0x1f0)]!==_0x17ed55||!_0x488a6b)return!0x1;let _0x3925a5=new e[(_0x33b9f6(0x1c5))]();_0x488a6b['startIndex']>0x0&&_0x3925a5[_0x33b9f6(0x1fc)](_0x488a6b['startIndex']),_0x3925a5[_0x33b9f6(0x1bb)](0x1);let _0x38e818=e[_0x33b9f6(0x1c1)][_0x33b9f6(0x233)]();return!!_0x4abd3b[_0x33b9f6(0x23c)](e[_0x33b9f6(0x215)])[_0x33b9f6(0x231)](t[_0x33b9f6(0x1c8)]['id'],{'unitId':_0x40cc29[_0x33b9f6(0x1c6)],'segmentId':'','historyAction':'delete-'+_0x17ed55,'actions':e[_0x33b9f6(0x1c1)]['compose'](_0x38e818[_0x33b9f6(0x1be)](_0x3925a5[_0x33b9f6(0x1fe)](),['body']),_0x38e818[_0x33b9f6(0x22c)](['notes',_0x40cc29[_0x33b9f6(0x22e)]],_0x5241a4)),'textRanges':[{'startOffset':_0x488a6b[_0x33b9f6(0x1e7)],'endOffset':_0x488a6b['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':_0x31b473(0x228),'type':e[_0x31b473(0x21c)][_0x31b473(0x20b)],'handler':(_0x16c7b3,_0x5cdb07)=>u(_0x16c7b3,_0x5cdb07,_0x31b473(0x235))},p={'id':_0x31b473(0x213),'type':e[_0x31b473(0x21c)][_0x31b473(0x20b)],'handler':(_0x1f8334,_0x49c47c)=>d(_0x1f8334,_0x49c47c,_0x31b473(0x235))},m={'id':_0x31b473(0x1c0),'type':e['CommandType'][_0x31b473(0x20b)],'handler':(_0x52c261,_0x238d2c)=>u(_0x52c261,_0x238d2c,_0x31b473(0x1dc))},h={'id':_0x31b473(0x1f7),'type':e['CommandType'][_0x31b473(0x20b)],'handler':(_0x50b16a,_0x5c4fdb)=>d(_0x50b16a,_0x5c4fdb,_0x31b473(0x1dc))};var g='@univerjs-pro/docs-reference',_=_0x31b473(0x1df);function _0x4601(_0x44ccc1,_0x43aa67){_0x44ccc1=_0x44ccc1-0x1bb;const _0x329649=_0x3296();let _0x46017a=_0x329649[_0x44ccc1];return _0x46017a;}const v={};function y(_0x1eac12,_0x1ba99c){return function(_0x5719e6,_0x2c5460){_0x1ba99c(_0x5719e6,_0x2c5460,_0x1eac12);};}function b(_0x5c39ce,_0x2d0d8d,_0xe4d44a,_0x4635d0){const _0x36a55f=_0x31b473;var _0x99c3a5=arguments[_0x36a55f(0x23f)],_0x163214=_0x99c3a5<0x3?_0x2d0d8d:_0x4635d0===null?_0x4635d0=Object[_0x36a55f(0x200)](_0x2d0d8d,_0xe4d44a):_0x4635d0,_0xf9ae2c;if(typeof Reflect==_0x36a55f(0x1c9)&&typeof Reflect[_0x36a55f(0x214)]==_0x36a55f(0x242))_0x163214=Reflect[_0x36a55f(0x214)](_0x5c39ce,_0x2d0d8d,_0xe4d44a,_0x4635d0);else{for(var _0x45f65d=_0x5c39ce[_0x36a55f(0x23f)]-0x1;_0x45f65d>=0x0;_0x45f65d--)(_0xf9ae2c=_0x5c39ce[_0x45f65d])&&(_0x163214=(_0x99c3a5<0x3?_0xf9ae2c(_0x163214):_0x99c3a5>0x3?_0xf9ae2c(_0x2d0d8d,_0xe4d44a,_0x163214):_0xf9ae2c(_0x2d0d8d,_0xe4d44a))||_0x163214);}return _0x99c3a5>0x3&&_0x163214&&Object[_0x36a55f(0x1ed)](_0x2d0d8d,_0xe4d44a,_0x163214),_0x163214;}function x(_0x5de9f8){'@babel/helpers - typeof';const _0x1d99a0=_0x31b473;return x=typeof Symbol==_0x1d99a0(0x242)&&typeof Symbol['iterator']==_0x1d99a0(0x1cf)?function(_0xceb492){return typeof _0xceb492;}:function(_0x2353b8){const _0x5ccfc4=_0x1d99a0;return _0x2353b8&&typeof Symbol=='function'&&_0x2353b8[_0x5ccfc4(0x1ca)]===Symbol&&_0x2353b8!==Symbol[_0x5ccfc4(0x218)]?'symbol':typeof _0x2353b8;},x(_0x5de9f8);}function S(_0x5591b1,_0xb64901){const _0x5de3de=_0x31b473;if(x(_0x5591b1)!=_0x5de3de(0x1c9)||!_0x5591b1)return _0x5591b1;var _0x331f82=_0x5591b1[Symbol[_0x5de3de(0x23d)]];if(_0x331f82!==void 0x0){var _0x21c8e7=_0x331f82['call'](_0x5591b1,_0xb64901||_0x5de3de(0x226));if(x(_0x21c8e7)!=_0x5de3de(0x1c9))return _0x21c8e7;throw TypeError(_0x5de3de(0x1f1));}return(_0xb64901===_0x5de3de(0x239)?String:Number)(_0x5591b1);}function C(_0x31da72){const _0x5d0714=_0x31b473;var _0x5d337d=S(_0x31da72,_0x5d0714(0x239));return x(_0x5d337d)==_0x5d0714(0x1cf)?_0x5d337d:_0x5d337d+'';}function w(_0x558851,_0x185e30,_0x4814a7){const _0x555922=_0x31b473;return(_0x185e30=C(_0x185e30))in _0x558851?Object[_0x555922(0x1ed)](_0x558851,_0x185e30,{'value':_0x4814a7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x558851[_0x185e30]=_0x4814a7,_0x558851;}let T=class extends e['Plugin']{constructor(_0x2198cf=v,_0x2f4879,_0x3a3732,_0x27a56c){const _0x4b8eb4=_0x31b473;super(),this[_0x4b8eb4(0x1d6)]=_0x2198cf,this[_0x4b8eb4(0x1bd)]=_0x2f4879,this['_configService']=_0x3a3732,this[_0x4b8eb4(0x21f)]=_0x27a56c;let {..._0x21ced5}=(0x0,e[_0x4b8eb4(0x1d2)])({},v,this['_config']);this[_0x4b8eb4(0x1e2)]['setConfig'](_0x4b8eb4(0x1db),_0x21ced5);}[_0x31b473(0x1dd)](){const _0x2ed407=_0x31b473;[f,p,o,m,h,s]['forEach'](_0x12952a=>this[_0x2ed407(0x1e9)](this['_commandService']['registerCommand'](_0x12952a)));}};w(T,'pluginName',_0x31b473(0x234)),w(T,'packageName',g),w(T,_0x31b473(0x202),_),w(T,_0x31b473(0x1f0),e[_0x31b473(0x238)][_0x31b473(0x1f3)]),T=b([(0x0,e[_0x31b473(0x1f4)])(n[_0x31b473(0x22f)],t[_0x31b473(0x1c3)]),y(0x1,(0x0,e['Inject'])(e[_0x31b473(0x20d)])),y(0x2,e[_0x31b473(0x1e1)]),y(0x3,e[_0x31b473(0x215)])],T),exports[_0x31b473(0x205)]=h,exports['DeleteDocumentFootnoteCommand']=p,exports[_0x31b473(0x1bc)]=m,exports[_0x31b473(0x240)]=f,exports[_0x31b473(0x1eb)]=s,exports[_0x31b473(0x1c4)]=o,Object['defineProperty'](exports,'UniverDocsReferencePlugin',{'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 _0x354455=_0x2ad7;(function(_0x243805,_0x5c00f2){const _0x4de663=_0x2ad7,_0x259b48=_0x243805();while(!![]){try{const _0x51c828=parseInt(_0x4de663(0x131))/0x1*(-parseInt(_0x4de663(0x13c))/0x2)+parseInt(_0x4de663(0x119))/0x3+-parseInt(_0x4de663(0x120))/0x4*(-parseInt(_0x4de663(0xfe))/0x5)+-parseInt(_0x4de663(0x118))/0x6*(-parseInt(_0x4de663(0xf9))/0x7)+parseInt(_0x4de663(0x114))/0x8*(parseInt(_0x4de663(0xfd))/0x9)+-parseInt(_0x4de663(0x109))/0xa+-parseInt(_0x4de663(0x127))/0xb;if(_0x51c828===_0x5c00f2)break;else _0x259b48['push'](_0x259b48['shift']());}catch(_0x736753){_0x259b48['push'](_0x259b48['shift']());}}}(_0x1570,0x3798a));import{CommandType as _0x2dea21,CustomRangeType as _0x18c808,DependentOn as _0x25103f,DocumentFlavor as _0x1c338d,ICommandService as _0x96e9cf,IConfigService as _0x31856b,IUniverInstanceService as _0x3749d4,Inject as _0x481bb7,Injector as _0x20836d,JSONX as _0x27e466,Plugin as _0x24f424,TextX as _0x4e06e4,Tools as _0x223dfc,UniverInstanceType as _0x2a21bc,createParagraphId as _0x20e6fe,createSectionId as _0x17cab0,generateRandomId as _0x324573,merge as _0x3dfa1e,validateDocBodyStructure as _0x4b5823,validateDocumentStructure as _0x158a70}from'@univerjs/core';import{RichTextEditingMutation as _0x3c3a8a,UniverDocsPlugin as _0x280ea7}from'@univerjs/docs';import{UniverLicensePlugin as _0x99429e}from'@univerjs-pro/license';function C(_0x2f5685,_0x4e3080,_0x1ea806){const _0x18500f=_0x2ad7;if(_0x2f5685[_0x18500f(0x144)]!=null&&!(_0x4e3080===_0x18500f(0xf1)?['pageBottom',_0x18500f(0x12e)]:['docEnd','sectEnd'])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0x144)])||_0x2f5685['restart']!=null&&!(_0x4e3080===_0x18500f(0xf1)?[_0x18500f(0x10e),_0x18500f(0x108),_0x18500f(0x130)]:[_0x18500f(0x10e),_0x18500f(0x108)])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0xf5)])||_0x2f5685[_0x18500f(0x101)]!=null&&(!Number[_0x18500f(0x145)](_0x2f5685[_0x18500f(0x101)])||_0x2f5685['startNumber']<0x1)||_0x18500f(0xee)in _0x2f5685&&_0x2f5685[_0x18500f(0xee)]!=null&&(_0x4e3080!==_0x18500f(0xf1)||!Number['isInteger'](_0x2f5685['columnCount'])||_0x2f5685[_0x18500f(0xee)]<0x0||_0x2f5685['columnCount']>0x4)||_0x2f5685[_0x18500f(0x112)]!=null&&(typeof _0x2f5685[_0x18500f(0x112)]!=_0x18500f(0x149)||_0x2f5685[_0x18500f(0x112)][_0x18500f(0x11a)]===0x0))return!0x1;for(let _0x3b6638 of[_0x2f5685['separator'],_0x2f5685[_0x18500f(0x139)],_0x2f5685['continuationNotice']])if(_0x3b6638!=null&&(_0x1ea806!=null||_0x4b5823(_0x3b6638)[_0x18500f(0x11a)]>0x0))return!0x1;return!0x0;}function w(_0x5a001c,_0x3e27db,_0x274b4e){const _0x1c0acb=_0x2ad7;var _0x196da4,_0x40c5f6;if(_0x3e27db[_0x1c0acb(0x14d)]!=null&&!C(_0x3e27db[_0x1c0acb(0x14d)],_0x274b4e,_0x3e27db['sectionId']))return!0x1;let _0x30a694=((_0x196da4=_0x5a001c['body'])==null||(_0x196da4=_0x196da4[_0x1c0acb(0x10c)])==null?void 0x0:_0x196da4[_0x1c0acb(0x14c)](_0x5993f8=>_0x5993f8[_0x1c0acb(0x117)]===_0x3e27db['sectionId']))??-0x1;if(_0x3e27db['sectionId']!=null&&_0x30a694<0x0)return!0x1;let _0x5ce190=_0x3e27db['sectionId']==null?_0x5a001c[_0x1c0acb(0x116)]:(_0x40c5f6=_0x5a001c[_0x1c0acb(0x113)])==null||(_0x40c5f6=_0x40c5f6[_0x1c0acb(0x10c)])==null?void 0x0:_0x40c5f6[_0x30a694]['noteProperties'],_0x4276ba=_0x3e27db['settings']==null?void 0x0:_0x223dfc[_0x1c0acb(0x121)](_0x3e27db[_0x1c0acb(0x14d)]),_0x33dd5b=_0x3e27db[_0x1c0acb(0x117)]==null?['noteSettings']:[_0x1c0acb(0x113),_0x1c0acb(0x10c),_0x30a694,_0x1c0acb(0x140)],_0x5ce864=_0x27e466[_0x1c0acb(0x11d)](),_0x2b52f5=null;if(_0x223dfc[_0x1c0acb(0x141)](_0x5ce190==null?void 0x0:_0x5ce190[_0x274b4e],_0x4276ba)||(_0x2b52f5=_0x5ce190==null?_0x5ce864[_0x1c0acb(0x115)](_0x33dd5b,{[_0x274b4e]:_0x4276ba}):_0x3e27db['sectionId']!=null&&_0x4276ba==null&&Object[_0x1c0acb(0x12b)](_0x5ce190)[_0x1c0acb(0x105)](_0x5b0ea4=>_0x5b0ea4===_0x274b4e)?_0x5ce864[_0x1c0acb(0xf0)](_0x33dd5b,_0x5ce190):_0x5ce864['replaceOp']([..._0x33dd5b,_0x274b4e],_0x5ce190[_0x274b4e],_0x4276ba)),_0x3e27db[_0x1c0acb(0x135)]!=null){var _0x404016;if(_0x274b4e!==_0x1c0acb(0x125)||_0x3e27db[_0x1c0acb(0x117)]==null||typeof _0x3e27db[_0x1c0acb(0x135)]!=_0x1c0acb(0x111))return!0x1;let _0x294e40=(_0x404016=_0x5a001c['body'])==null||(_0x404016=_0x404016[_0x1c0acb(0x10c)])==null?void 0x0:_0x404016[_0x30a694][_0x1c0acb(0x135)];_0x294e40!==_0x3e27db['suppressEndnotes']&&(_0x2b52f5=_0x27e466[_0x1c0acb(0xf3)](_0x2b52f5,_0x5ce864[_0x1c0acb(0x11c)]([_0x1c0acb(0x113),'sectionBreaks',_0x30a694,'suppressEndnotes'],_0x294e40,_0x3e27db[_0x1c0acb(0x135)])));}return _0x2b52f5;}function T(_0x9b2920,_0x41e12d,_0x11fdb8){const _0x51999a=_0x2ad7;if(!_0x41e12d)return!0x1;let _0xc9dded=_0x9b2920[_0x51999a(0x11b)](_0x3749d4)['getUnit'](_0x41e12d[_0x51999a(0x13f)],_0x2a21bc[_0x51999a(0x13e)]),_0x58508b=_0xc9dded==null?void 0x0:_0xc9dded[_0x51999a(0x147)]();if(!_0x58508b||_0x58508b['documentStyle'][_0x51999a(0x13d)]!==_0x1c338d[_0x51999a(0xf8)])return!0x1;let _0x34f091=w(_0x58508b,_0x41e12d,_0x11fdb8);return _0x34f091===!0x1||_0x27e466[_0x51999a(0x106)](_0x34f091)?!0x1:!!_0x9b2920[_0x51999a(0x11b)](_0x96e9cf)[_0x51999a(0x110)](_0x3c3a8a['id'],{'unitId':_0x41e12d['unitId'],'segmentId':'','historyAction':_0x51999a(0x107)+_0x11fdb8+_0x51999a(0x122),'actions':_0x34f091,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x149d55,_0x4464dd)=>T(_0x149d55,_0x4464dd,_0x354455(0xf1))},D={'id':_0x354455(0x102),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x580a51,_0x46d6bf)=>T(_0x580a51,_0x46d6bf,_0x354455(0x125))};function O(_0x1d4bb9,_0x15aa09){const _0x4c5320=_0x354455;return(_0x1d4bb9==null?void 0x0:_0x1d4bb9[_0x4c5320(0x12d)][_0x4c5320(0x13d)])===_0x1c338d[_0x4c5320(0xf8)]&&!!_0x1d4bb9[_0x4c5320(0x113)]&&Number['isInteger'](_0x15aa09)&&_0x15aa09>=0x0&&_0x15aa09<_0x1d4bb9[_0x4c5320(0x113)]['dataStream'][_0x4c5320(0x11a)]-0x1;}function k(_0x3626a5,_0x2511c2,_0x356066){const _0x4d1bcb=_0x354455;var _0x1dd9a9,_0xaa62a3;if(_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0&&_0x2511c2[_0x4d1bcb(0x135)]===void 0x0)return null;let _0x575270=_0x2511c2['sectionId']==null?(_0x1dd9a9=_0x3626a5[_0x4d1bcb(0x116)])==null?void 0x0:_0x1dd9a9[_0x356066]:(_0xaa62a3=_0x3626a5[_0x4d1bcb(0x113)])==null||(_0xaa62a3=_0xaa62a3['sectionBreaks'])==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x133)](_0x354b47=>_0x354b47[_0x4d1bcb(0x117)]===_0x2511c2[_0x4d1bcb(0x117)]))==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x140)])==null?void 0x0:_0xaa62a3[_0x356066];return w(_0x3626a5,{'settings':_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0?_0x575270??null:_0x2511c2['settings'],'sectionId':_0x2511c2[_0x4d1bcb(0x117)],'suppressEndnotes':_0x2511c2[_0x4d1bcb(0x135)]},_0x356066);}function A(_0x40d02b,_0xef7492,_0x23a2e4){const _0x4b7d94=_0x354455;var _0x46fd1c,_0xd987d6,_0x2b9b94;if(!_0xef7492||_0xef7492[_0x4b7d94(0x123)])return!0x1;let _0x36c04b=_0x40d02b['get'](_0x3749d4)[_0x4b7d94(0xfc)](_0xef7492['unitId'],_0x2a21bc[_0x4b7d94(0x13e)]),_0x645dce=_0x36c04b==null?void 0x0:_0x36c04b[_0x4b7d94(0x147)](),{offset:_0x39a975}=_0xef7492;if(!O(_0x645dce,_0x39a975))return!0x1;let _0x411a47=k(_0x645dce,_0xef7492,_0x23a2e4);if(_0x411a47===!0x1)return!0x1;let _0x27b863=_0xef7492['noteId']??_0x324573(0xc);if((_0x46fd1c=_0x645dce[_0x4b7d94(0xfb)])!=null&&_0x46fd1c[_0x27b863]||(_0xd987d6=_0x645dce[_0x4b7d94(0x143)])!=null&&_0xd987d6[_0x27b863]||(_0x2b9b94=_0x645dce[_0x4b7d94(0x10a)])!=null&&_0x2b9b94[_0x27b863])return!0x1;let _0x2b0820=_0x223dfc[_0x4b7d94(0x121)]({'type':_0x23a2e4,'noteId':_0x27b863,'body':_0xef7492[_0x4b7d94(0x113)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x20e6fe(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x17cab0(new Set()),'startIndex':0x1}]},'customMark':_0xef7492['customMark'],'referenceTextStyle':_0xef7492[_0x4b7d94(0x14a)],'tableSource':_0xef7492[_0x4b7d94(0x136)],'drawings':_0xef7492[_0x4b7d94(0x13a)],'drawingsOrder':_0xef7492[_0x4b7d94(0x142)],'lists':_0xef7492['lists']});if(_0x158a70({'notes':{[_0x27b863]:_0x2b0820}})[_0x4b7d94(0x11a)]>0x0)return!0x1;let _0x22c30b=new _0x4e06e4();_0x39a975>0x0&&_0x22c30b[_0x4b7d94(0xf4)](_0x39a975),_0x22c30b['insert'](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x23a2e4===_0x4b7d94(0xf1)?_0x18c808[_0x4b7d94(0x150)]:_0x18c808[_0x4b7d94(0x11e)],'rangeId':_0x324573(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x27b863}}]});let _0x5798d5=_0x27e466['getInstance'](),_0x9fbb4a=_0x645dce['notes']==null?_0x5798d5[_0x4b7d94(0x115)]([_0x4b7d94(0xfb)],{[_0x27b863]:_0x2b0820}):_0x5798d5['insertOp'](['notes',_0x27b863],_0x2b0820);return!!_0x40d02b[_0x4b7d94(0x11b)](_0x96e9cf)[_0x4b7d94(0x110)](_0x3c3a8a['id'],{'unitId':_0xef7492[_0x4b7d94(0x13f)],'segmentId':'','historyAction':'insert-'+_0x23a2e4,'actions':_0x27e466['compose'](_0x27e466[_0x4b7d94(0xf3)](_0x411a47,_0x9fbb4a),_0x5798d5[_0x4b7d94(0xfa)](_0x22c30b[_0x4b7d94(0x103)](),[_0x4b7d94(0x113)])),'textRanges':[{'segmentId':_0x27b863,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x50de60,_0x2ec0bb,_0x2acfd5){const _0x391281=_0x354455;var _0x5efb76,_0x292ddc;if(!_0x2ec0bb)return!0x1;let _0x484d3e=_0x50de60[_0x391281(0x11b)](_0x3749d4)[_0x391281(0xfc)](_0x2ec0bb[_0x391281(0x13f)],_0x2a21bc[_0x391281(0x13e)]),_0x1f8c8d=_0x484d3e==null?void 0x0:_0x484d3e[_0x391281(0x147)](),_0x10b90d=_0x1f8c8d==null||(_0x5efb76=_0x1f8c8d[_0x391281(0xfb)])==null?void 0x0:_0x5efb76[_0x2ec0bb[_0x391281(0xff)]],_0x2a2be6=_0x1f8c8d==null||(_0x292ddc=_0x1f8c8d['body'])==null||(_0x292ddc=_0x292ddc['customRanges'])==null?void 0x0:_0x292ddc['find'](_0x3fb58b=>{const _0x2da165=_0x391281;var _0x3454f1;return(_0x3fb58b[_0x2da165(0x12a)]===_0x18c808['FOOTNOTE']||_0x3fb58b['rangeType']===_0x18c808['ENDNOTE'])&&((_0x3454f1=_0x3fb58b[_0x2da165(0x10b)])==null?void 0x0:_0x3454f1['noteId'])===_0x2ec0bb[_0x2da165(0xff)];});if(!_0x1f8c8d||_0x1f8c8d['documentStyle'][_0x391281(0x13d)]!==_0x1c338d[_0x391281(0xf8)]||!_0x10b90d||_0x10b90d['type']!==_0x2acfd5||!_0x2a2be6)return!0x1;let _0x4a773d=new _0x4e06e4();_0x2a2be6[_0x391281(0x104)]>0x0&&_0x4a773d[_0x391281(0xf4)](_0x2a2be6[_0x391281(0x104)]),_0x4a773d[_0x391281(0x137)](0x1);let _0xaebca4=_0x27e466['getInstance']();return!!_0x50de60['get'](_0x96e9cf)[_0x391281(0x110)](_0x3c3a8a['id'],{'unitId':_0x2ec0bb[_0x391281(0x13f)],'segmentId':'','historyAction':'delete-'+_0x2acfd5,'actions':_0x27e466[_0x391281(0xf3)](_0xaebca4[_0x391281(0xfa)](_0x4a773d[_0x391281(0x103)](),[_0x391281(0x113)]),_0xaebca4['removeOp']([_0x391281(0xfb),_0x2ec0bb[_0x391281(0xff)]],_0x10b90d)),'textRanges':[{'startOffset':_0x2a2be6[_0x391281(0x104)],'endOffset':_0x2a2be6['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x354455(0xf7),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x24ee12,_0x2ea241)=>A(_0x24ee12,_0x2ea241,_0x354455(0xf1))},N={'id':'doc.command.delete-footnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x2157ab,_0x1e5999)=>j(_0x2157ab,_0x1e5999,_0x354455(0xf1))},P={'id':'doc.command.insert-endnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x393aff,_0x1d38d8)=>A(_0x393aff,_0x1d38d8,_0x354455(0x125))},F={'id':_0x354455(0x13b),'type':_0x2dea21['COMMAND'],'handler':(_0x1ce22a,_0x3a4e0e)=>j(_0x1ce22a,_0x3a4e0e,'endnote')};var I='@univerjs-pro/docs-reference',L=_0x354455(0x128);const R={};function z(_0xec09fb,_0x22029b){return function(_0x155a81,_0x4ed450){_0x22029b(_0x155a81,_0x4ed450,_0xec09fb);};}function B(_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4){const _0x714d30=_0x354455;var _0x447146=arguments[_0x714d30(0x11a)],_0x493ede=_0x447146<0x3?_0x207d95:_0x1a80e4===null?_0x1a80e4=Object[_0x714d30(0x100)](_0x207d95,_0x1d3f79):_0x1a80e4,_0x46f2af;if(typeof Reflect=='object'&&typeof Reflect[_0x714d30(0x148)]=='function')_0x493ede=Reflect[_0x714d30(0x148)](_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4);else{for(var _0x470fa0=_0x26397f[_0x714d30(0x11a)]-0x1;_0x470fa0>=0x0;_0x470fa0--)(_0x46f2af=_0x26397f[_0x470fa0])&&(_0x493ede=(_0x447146<0x3?_0x46f2af(_0x493ede):_0x447146>0x3?_0x46f2af(_0x207d95,_0x1d3f79,_0x493ede):_0x46f2af(_0x207d95,_0x1d3f79))||_0x493ede);}return _0x447146>0x3&&_0x493ede&&Object[_0x714d30(0x138)](_0x207d95,_0x1d3f79,_0x493ede),_0x493ede;}function V(_0x139767){'@babel/helpers - typeof';const _0xcd2fda=_0x354455;return V=typeof Symbol==_0xcd2fda(0x14b)&&typeof Symbol['iterator']==_0xcd2fda(0xf6)?function(_0x3a7d99){return typeof _0x3a7d99;}:function(_0x2c39d5){const _0x22227e=_0xcd2fda;return _0x2c39d5&&typeof Symbol==_0x22227e(0x14b)&&_0x2c39d5[_0x22227e(0xf2)]===Symbol&&_0x2c39d5!==Symbol['prototype']?_0x22227e(0xf6):typeof _0x2c39d5;},V(_0x139767);}function H(_0x2acbd6,_0x40c98a){const _0xadaed4=_0x354455;if(V(_0x2acbd6)!='object'||!_0x2acbd6)return _0x2acbd6;var _0x13eb0d=_0x2acbd6[Symbol[_0xadaed4(0x146)]];if(_0x13eb0d!==void 0x0){var _0xbbba85=_0x13eb0d[_0xadaed4(0x10d)](_0x2acbd6,_0x40c98a||_0xadaed4(0x10f));if(V(_0xbbba85)!=_0xadaed4(0x151))return _0xbbba85;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x40c98a===_0xadaed4(0x149)?String:Number)(_0x2acbd6);}function U(_0x1c3a68){const _0x21d6dc=_0x354455;var _0x39560d=H(_0x1c3a68,_0x21d6dc(0x149));return V(_0x39560d)=='symbol'?_0x39560d:_0x39560d+'';}function W(_0x4380d9,_0x11a578,_0x4a35d5){const _0x376e7f=_0x354455;return(_0x11a578=U(_0x11a578))in _0x4380d9?Object[_0x376e7f(0x138)](_0x4380d9,_0x11a578,{'value':_0x4a35d5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4380d9[_0x11a578]=_0x4a35d5,_0x4380d9;}let G=class extends _0x24f424{constructor(_0x3a806e=R,_0x4ae6c4,_0x673061,_0x495376){const _0x7f4525=_0x354455;super(),this['_config']=_0x3a806e,this['_injector']=_0x4ae6c4,this[_0x7f4525(0x14f)]=_0x673061,this['_commandService']=_0x495376;let {..._0x5ef51c}=_0x3dfa1e({},R,this['_config']);this[_0x7f4525(0x14f)][_0x7f4525(0x126)](_0x7f4525(0x12f),_0x5ef51c);}['onStarting'](){const _0x1d589=_0x354455;[M,N,E,P,F,D]['forEach'](_0x51ca67=>this['disposeWithMe'](this[_0x1d589(0x12c)]['registerCommand'](_0x51ca67)));}};W(G,_0x354455(0x132),_0x354455(0x134)),W(G,_0x354455(0xef),I),W(G,_0x354455(0x129),L),W(G,_0x354455(0x124),_0x2a21bc['UNIVER_DOC']),G=B([_0x25103f(_0x99429e,_0x280ea7),z(0x1,_0x481bb7(_0x20836d)),z(0x2,_0x31856b),z(0x3,_0x96e9cf)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};function _0x2ad7(_0x2ad720,_0x16e2dd){_0x2ad720=_0x2ad720-0xee;const _0x15704d=_0x1570();let _0x2ad7ce=_0x15704d[_0x2ad720];return _0x2ad7ce;}function _0x1570(){const _0xb51c48=['sectionId','5454IQXbGF','1364799hUQTWe','length','get','replaceOp','getInstance','ENDNOTE','includes','474236nYugCh','deepClone','-settings','segmentId','type','endnote','setConfig','8943066IiFtIm','1.0.4','version','rangeType','keys','_commandService','documentStyle','beneathText','docs-reference.config','eachPage','2571bnZPaC','pluginName','find','UNIVER_DOCS_REFERENCE_PLUGIN','suppressEndnotes','tableSource','delete','defineProperty','continuationSeparator','drawings','doc.command.delete-endnote','236wrFKvG','documentFlavor','UNIVER_DOC','unitId','noteProperties','diffValue','drawingsOrder','headers','position','isInteger','toPrimitive','getSnapshot','decorate','string','referenceTextStyle','function','findIndex','settings','COMMAND','_configService','FOOTNOTE','object','columnCount','packageName','removeOp','footnote','constructor','compose','retain','restart','symbol','doc.command.insert-footnote','TRADITIONAL','2541UZVYCI','editOp','notes','getUnit','9837hppaeA','15ERRpTo','noteId','getOwnPropertyDescriptor','startNumber','doc.command.set-endnote-settings','serialize','startIndex','every','isNoop','set-','eachSect','1320220nHhEnf','footers','properties','sectionBreaks','call','continuous','default','syncExecuteCommand','boolean','numberFormat','body','2456qllCIh','insertOp','noteSettings'];_0x1570=function(){return _0xb51c48;};return _0x1570();}
|
|
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 _0x354455=_0x2ad7;(function(_0x243805,_0x5c00f2){const _0x4de663=_0x2ad7,_0x259b48=_0x243805();while(!![]){try{const _0x51c828=parseInt(_0x4de663(0x131))/0x1*(-parseInt(_0x4de663(0x13c))/0x2)+parseInt(_0x4de663(0x119))/0x3+-parseInt(_0x4de663(0x120))/0x4*(-parseInt(_0x4de663(0xfe))/0x5)+-parseInt(_0x4de663(0x118))/0x6*(-parseInt(_0x4de663(0xf9))/0x7)+parseInt(_0x4de663(0x114))/0x8*(parseInt(_0x4de663(0xfd))/0x9)+-parseInt(_0x4de663(0x109))/0xa+-parseInt(_0x4de663(0x127))/0xb;if(_0x51c828===_0x5c00f2)break;else _0x259b48['push'](_0x259b48['shift']());}catch(_0x736753){_0x259b48['push'](_0x259b48['shift']());}}}(_0x1570,0x3798a));import{CommandType as _0x2dea21,CustomRangeType as _0x18c808,DependentOn as _0x25103f,DocumentFlavor as _0x1c338d,ICommandService as _0x96e9cf,IConfigService as _0x31856b,IUniverInstanceService as _0x3749d4,Inject as _0x481bb7,Injector as _0x20836d,JSONX as _0x27e466,Plugin as _0x24f424,TextX as _0x4e06e4,Tools as _0x223dfc,UniverInstanceType as _0x2a21bc,createParagraphId as _0x20e6fe,createSectionId as _0x17cab0,generateRandomId as _0x324573,merge as _0x3dfa1e,validateDocBodyStructure as _0x4b5823,validateDocumentStructure as _0x158a70}from'@univerjs/core';import{RichTextEditingMutation as _0x3c3a8a,UniverDocsPlugin as _0x280ea7}from'@univerjs/docs';import{UniverLicensePlugin as _0x99429e}from'@univerjs-pro/license';function C(_0x2f5685,_0x4e3080,_0x1ea806){const _0x18500f=_0x2ad7;if(_0x2f5685[_0x18500f(0x144)]!=null&&!(_0x4e3080===_0x18500f(0xf1)?['pageBottom',_0x18500f(0x12e)]:['docEnd','sectEnd'])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0x144)])||_0x2f5685['restart']!=null&&!(_0x4e3080===_0x18500f(0xf1)?[_0x18500f(0x10e),_0x18500f(0x108),_0x18500f(0x130)]:[_0x18500f(0x10e),_0x18500f(0x108)])[_0x18500f(0x11f)](_0x2f5685[_0x18500f(0xf5)])||_0x2f5685[_0x18500f(0x101)]!=null&&(!Number[_0x18500f(0x145)](_0x2f5685[_0x18500f(0x101)])||_0x2f5685['startNumber']<0x1)||_0x18500f(0xee)in _0x2f5685&&_0x2f5685[_0x18500f(0xee)]!=null&&(_0x4e3080!==_0x18500f(0xf1)||!Number['isInteger'](_0x2f5685['columnCount'])||_0x2f5685[_0x18500f(0xee)]<0x0||_0x2f5685['columnCount']>0x4)||_0x2f5685[_0x18500f(0x112)]!=null&&(typeof _0x2f5685[_0x18500f(0x112)]!=_0x18500f(0x149)||_0x2f5685[_0x18500f(0x112)][_0x18500f(0x11a)]===0x0))return!0x1;for(let _0x3b6638 of[_0x2f5685['separator'],_0x2f5685[_0x18500f(0x139)],_0x2f5685['continuationNotice']])if(_0x3b6638!=null&&(_0x1ea806!=null||_0x4b5823(_0x3b6638)[_0x18500f(0x11a)]>0x0))return!0x1;return!0x0;}function w(_0x5a001c,_0x3e27db,_0x274b4e){const _0x1c0acb=_0x2ad7;var _0x196da4,_0x40c5f6;if(_0x3e27db[_0x1c0acb(0x14d)]!=null&&!C(_0x3e27db[_0x1c0acb(0x14d)],_0x274b4e,_0x3e27db['sectionId']))return!0x1;let _0x30a694=((_0x196da4=_0x5a001c['body'])==null||(_0x196da4=_0x196da4[_0x1c0acb(0x10c)])==null?void 0x0:_0x196da4[_0x1c0acb(0x14c)](_0x5993f8=>_0x5993f8[_0x1c0acb(0x117)]===_0x3e27db['sectionId']))??-0x1;if(_0x3e27db['sectionId']!=null&&_0x30a694<0x0)return!0x1;let _0x5ce190=_0x3e27db['sectionId']==null?_0x5a001c[_0x1c0acb(0x116)]:(_0x40c5f6=_0x5a001c[_0x1c0acb(0x113)])==null||(_0x40c5f6=_0x40c5f6[_0x1c0acb(0x10c)])==null?void 0x0:_0x40c5f6[_0x30a694]['noteProperties'],_0x4276ba=_0x3e27db['settings']==null?void 0x0:_0x223dfc[_0x1c0acb(0x121)](_0x3e27db[_0x1c0acb(0x14d)]),_0x33dd5b=_0x3e27db[_0x1c0acb(0x117)]==null?['noteSettings']:[_0x1c0acb(0x113),_0x1c0acb(0x10c),_0x30a694,_0x1c0acb(0x140)],_0x5ce864=_0x27e466[_0x1c0acb(0x11d)](),_0x2b52f5=null;if(_0x223dfc[_0x1c0acb(0x141)](_0x5ce190==null?void 0x0:_0x5ce190[_0x274b4e],_0x4276ba)||(_0x2b52f5=_0x5ce190==null?_0x5ce864[_0x1c0acb(0x115)](_0x33dd5b,{[_0x274b4e]:_0x4276ba}):_0x3e27db['sectionId']!=null&&_0x4276ba==null&&Object[_0x1c0acb(0x12b)](_0x5ce190)[_0x1c0acb(0x105)](_0x5b0ea4=>_0x5b0ea4===_0x274b4e)?_0x5ce864[_0x1c0acb(0xf0)](_0x33dd5b,_0x5ce190):_0x5ce864['replaceOp']([..._0x33dd5b,_0x274b4e],_0x5ce190[_0x274b4e],_0x4276ba)),_0x3e27db[_0x1c0acb(0x135)]!=null){var _0x404016;if(_0x274b4e!==_0x1c0acb(0x125)||_0x3e27db[_0x1c0acb(0x117)]==null||typeof _0x3e27db[_0x1c0acb(0x135)]!=_0x1c0acb(0x111))return!0x1;let _0x294e40=(_0x404016=_0x5a001c['body'])==null||(_0x404016=_0x404016[_0x1c0acb(0x10c)])==null?void 0x0:_0x404016[_0x30a694][_0x1c0acb(0x135)];_0x294e40!==_0x3e27db['suppressEndnotes']&&(_0x2b52f5=_0x27e466[_0x1c0acb(0xf3)](_0x2b52f5,_0x5ce864[_0x1c0acb(0x11c)]([_0x1c0acb(0x113),'sectionBreaks',_0x30a694,'suppressEndnotes'],_0x294e40,_0x3e27db[_0x1c0acb(0x135)])));}return _0x2b52f5;}function T(_0x9b2920,_0x41e12d,_0x11fdb8){const _0x51999a=_0x2ad7;if(!_0x41e12d)return!0x1;let _0xc9dded=_0x9b2920[_0x51999a(0x11b)](_0x3749d4)['getUnit'](_0x41e12d[_0x51999a(0x13f)],_0x2a21bc[_0x51999a(0x13e)]),_0x58508b=_0xc9dded==null?void 0x0:_0xc9dded[_0x51999a(0x147)]();if(!_0x58508b||_0x58508b['documentStyle'][_0x51999a(0x13d)]!==_0x1c338d[_0x51999a(0xf8)])return!0x1;let _0x34f091=w(_0x58508b,_0x41e12d,_0x11fdb8);return _0x34f091===!0x1||_0x27e466[_0x51999a(0x106)](_0x34f091)?!0x1:!!_0x9b2920[_0x51999a(0x11b)](_0x96e9cf)[_0x51999a(0x110)](_0x3c3a8a['id'],{'unitId':_0x41e12d['unitId'],'segmentId':'','historyAction':_0x51999a(0x107)+_0x11fdb8+_0x51999a(0x122),'actions':_0x34f091,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x149d55,_0x4464dd)=>T(_0x149d55,_0x4464dd,_0x354455(0xf1))},D={'id':_0x354455(0x102),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x580a51,_0x46d6bf)=>T(_0x580a51,_0x46d6bf,_0x354455(0x125))};function O(_0x1d4bb9,_0x15aa09){const _0x4c5320=_0x354455;return(_0x1d4bb9==null?void 0x0:_0x1d4bb9[_0x4c5320(0x12d)][_0x4c5320(0x13d)])===_0x1c338d[_0x4c5320(0xf8)]&&!!_0x1d4bb9[_0x4c5320(0x113)]&&Number['isInteger'](_0x15aa09)&&_0x15aa09>=0x0&&_0x15aa09<_0x1d4bb9[_0x4c5320(0x113)]['dataStream'][_0x4c5320(0x11a)]-0x1;}function k(_0x3626a5,_0x2511c2,_0x356066){const _0x4d1bcb=_0x354455;var _0x1dd9a9,_0xaa62a3;if(_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0&&_0x2511c2[_0x4d1bcb(0x135)]===void 0x0)return null;let _0x575270=_0x2511c2['sectionId']==null?(_0x1dd9a9=_0x3626a5[_0x4d1bcb(0x116)])==null?void 0x0:_0x1dd9a9[_0x356066]:(_0xaa62a3=_0x3626a5[_0x4d1bcb(0x113)])==null||(_0xaa62a3=_0xaa62a3['sectionBreaks'])==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x133)](_0x354b47=>_0x354b47[_0x4d1bcb(0x117)]===_0x2511c2[_0x4d1bcb(0x117)]))==null||(_0xaa62a3=_0xaa62a3[_0x4d1bcb(0x140)])==null?void 0x0:_0xaa62a3[_0x356066];return w(_0x3626a5,{'settings':_0x2511c2[_0x4d1bcb(0x14d)]===void 0x0?_0x575270??null:_0x2511c2['settings'],'sectionId':_0x2511c2[_0x4d1bcb(0x117)],'suppressEndnotes':_0x2511c2[_0x4d1bcb(0x135)]},_0x356066);}function A(_0x40d02b,_0xef7492,_0x23a2e4){const _0x4b7d94=_0x354455;var _0x46fd1c,_0xd987d6,_0x2b9b94;if(!_0xef7492||_0xef7492[_0x4b7d94(0x123)])return!0x1;let _0x36c04b=_0x40d02b['get'](_0x3749d4)[_0x4b7d94(0xfc)](_0xef7492['unitId'],_0x2a21bc[_0x4b7d94(0x13e)]),_0x645dce=_0x36c04b==null?void 0x0:_0x36c04b[_0x4b7d94(0x147)](),{offset:_0x39a975}=_0xef7492;if(!O(_0x645dce,_0x39a975))return!0x1;let _0x411a47=k(_0x645dce,_0xef7492,_0x23a2e4);if(_0x411a47===!0x1)return!0x1;let _0x27b863=_0xef7492['noteId']??_0x324573(0xc);if((_0x46fd1c=_0x645dce[_0x4b7d94(0xfb)])!=null&&_0x46fd1c[_0x27b863]||(_0xd987d6=_0x645dce[_0x4b7d94(0x143)])!=null&&_0xd987d6[_0x27b863]||(_0x2b9b94=_0x645dce[_0x4b7d94(0x10a)])!=null&&_0x2b9b94[_0x27b863])return!0x1;let _0x2b0820=_0x223dfc[_0x4b7d94(0x121)]({'type':_0x23a2e4,'noteId':_0x27b863,'body':_0xef7492[_0x4b7d94(0x113)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x20e6fe(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x17cab0(new Set()),'startIndex':0x1}]},'customMark':_0xef7492['customMark'],'referenceTextStyle':_0xef7492[_0x4b7d94(0x14a)],'tableSource':_0xef7492[_0x4b7d94(0x136)],'drawings':_0xef7492[_0x4b7d94(0x13a)],'drawingsOrder':_0xef7492[_0x4b7d94(0x142)],'lists':_0xef7492['lists']});if(_0x158a70({'notes':{[_0x27b863]:_0x2b0820}})[_0x4b7d94(0x11a)]>0x0)return!0x1;let _0x22c30b=new _0x4e06e4();_0x39a975>0x0&&_0x22c30b[_0x4b7d94(0xf4)](_0x39a975),_0x22c30b['insert'](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x23a2e4===_0x4b7d94(0xf1)?_0x18c808[_0x4b7d94(0x150)]:_0x18c808[_0x4b7d94(0x11e)],'rangeId':_0x324573(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x27b863}}]});let _0x5798d5=_0x27e466['getInstance'](),_0x9fbb4a=_0x645dce['notes']==null?_0x5798d5[_0x4b7d94(0x115)]([_0x4b7d94(0xfb)],{[_0x27b863]:_0x2b0820}):_0x5798d5['insertOp'](['notes',_0x27b863],_0x2b0820);return!!_0x40d02b[_0x4b7d94(0x11b)](_0x96e9cf)[_0x4b7d94(0x110)](_0x3c3a8a['id'],{'unitId':_0xef7492[_0x4b7d94(0x13f)],'segmentId':'','historyAction':'insert-'+_0x23a2e4,'actions':_0x27e466['compose'](_0x27e466[_0x4b7d94(0xf3)](_0x411a47,_0x9fbb4a),_0x5798d5[_0x4b7d94(0xfa)](_0x22c30b[_0x4b7d94(0x103)](),[_0x4b7d94(0x113)])),'textRanges':[{'segmentId':_0x27b863,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x50de60,_0x2ec0bb,_0x2acfd5){const _0x391281=_0x354455;var _0x5efb76,_0x292ddc;if(!_0x2ec0bb)return!0x1;let _0x484d3e=_0x50de60[_0x391281(0x11b)](_0x3749d4)[_0x391281(0xfc)](_0x2ec0bb[_0x391281(0x13f)],_0x2a21bc[_0x391281(0x13e)]),_0x1f8c8d=_0x484d3e==null?void 0x0:_0x484d3e[_0x391281(0x147)](),_0x10b90d=_0x1f8c8d==null||(_0x5efb76=_0x1f8c8d[_0x391281(0xfb)])==null?void 0x0:_0x5efb76[_0x2ec0bb[_0x391281(0xff)]],_0x2a2be6=_0x1f8c8d==null||(_0x292ddc=_0x1f8c8d['body'])==null||(_0x292ddc=_0x292ddc['customRanges'])==null?void 0x0:_0x292ddc['find'](_0x3fb58b=>{const _0x2da165=_0x391281;var _0x3454f1;return(_0x3fb58b[_0x2da165(0x12a)]===_0x18c808['FOOTNOTE']||_0x3fb58b['rangeType']===_0x18c808['ENDNOTE'])&&((_0x3454f1=_0x3fb58b[_0x2da165(0x10b)])==null?void 0x0:_0x3454f1['noteId'])===_0x2ec0bb[_0x2da165(0xff)];});if(!_0x1f8c8d||_0x1f8c8d['documentStyle'][_0x391281(0x13d)]!==_0x1c338d[_0x391281(0xf8)]||!_0x10b90d||_0x10b90d['type']!==_0x2acfd5||!_0x2a2be6)return!0x1;let _0x4a773d=new _0x4e06e4();_0x2a2be6[_0x391281(0x104)]>0x0&&_0x4a773d[_0x391281(0xf4)](_0x2a2be6[_0x391281(0x104)]),_0x4a773d[_0x391281(0x137)](0x1);let _0xaebca4=_0x27e466['getInstance']();return!!_0x50de60['get'](_0x96e9cf)[_0x391281(0x110)](_0x3c3a8a['id'],{'unitId':_0x2ec0bb[_0x391281(0x13f)],'segmentId':'','historyAction':'delete-'+_0x2acfd5,'actions':_0x27e466[_0x391281(0xf3)](_0xaebca4[_0x391281(0xfa)](_0x4a773d[_0x391281(0x103)](),[_0x391281(0x113)]),_0xaebca4['removeOp']([_0x391281(0xfb),_0x2ec0bb[_0x391281(0xff)]],_0x10b90d)),'textRanges':[{'startOffset':_0x2a2be6[_0x391281(0x104)],'endOffset':_0x2a2be6['startIndex'],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x354455(0xf7),'type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x24ee12,_0x2ea241)=>A(_0x24ee12,_0x2ea241,_0x354455(0xf1))},N={'id':'doc.command.delete-footnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x2157ab,_0x1e5999)=>j(_0x2157ab,_0x1e5999,_0x354455(0xf1))},P={'id':'doc.command.insert-endnote','type':_0x2dea21[_0x354455(0x14e)],'handler':(_0x393aff,_0x1d38d8)=>A(_0x393aff,_0x1d38d8,_0x354455(0x125))},F={'id':_0x354455(0x13b),'type':_0x2dea21['COMMAND'],'handler':(_0x1ce22a,_0x3a4e0e)=>j(_0x1ce22a,_0x3a4e0e,'endnote')};var I='@univerjs-pro/docs-reference',L=_0x354455(0x128);const R={};function z(_0xec09fb,_0x22029b){return function(_0x155a81,_0x4ed450){_0x22029b(_0x155a81,_0x4ed450,_0xec09fb);};}function B(_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4){const _0x714d30=_0x354455;var _0x447146=arguments[_0x714d30(0x11a)],_0x493ede=_0x447146<0x3?_0x207d95:_0x1a80e4===null?_0x1a80e4=Object[_0x714d30(0x100)](_0x207d95,_0x1d3f79):_0x1a80e4,_0x46f2af;if(typeof Reflect=='object'&&typeof Reflect[_0x714d30(0x148)]=='function')_0x493ede=Reflect[_0x714d30(0x148)](_0x26397f,_0x207d95,_0x1d3f79,_0x1a80e4);else{for(var _0x470fa0=_0x26397f[_0x714d30(0x11a)]-0x1;_0x470fa0>=0x0;_0x470fa0--)(_0x46f2af=_0x26397f[_0x470fa0])&&(_0x493ede=(_0x447146<0x3?_0x46f2af(_0x493ede):_0x447146>0x3?_0x46f2af(_0x207d95,_0x1d3f79,_0x493ede):_0x46f2af(_0x207d95,_0x1d3f79))||_0x493ede);}return _0x447146>0x3&&_0x493ede&&Object[_0x714d30(0x138)](_0x207d95,_0x1d3f79,_0x493ede),_0x493ede;}function V(_0x139767){'@babel/helpers - typeof';const _0xcd2fda=_0x354455;return V=typeof Symbol==_0xcd2fda(0x14b)&&typeof Symbol['iterator']==_0xcd2fda(0xf6)?function(_0x3a7d99){return typeof _0x3a7d99;}:function(_0x2c39d5){const _0x22227e=_0xcd2fda;return _0x2c39d5&&typeof Symbol==_0x22227e(0x14b)&&_0x2c39d5[_0x22227e(0xf2)]===Symbol&&_0x2c39d5!==Symbol['prototype']?_0x22227e(0xf6):typeof _0x2c39d5;},V(_0x139767);}function H(_0x2acbd6,_0x40c98a){const _0xadaed4=_0x354455;if(V(_0x2acbd6)!='object'||!_0x2acbd6)return _0x2acbd6;var _0x13eb0d=_0x2acbd6[Symbol[_0xadaed4(0x146)]];if(_0x13eb0d!==void 0x0){var _0xbbba85=_0x13eb0d[_0xadaed4(0x10d)](_0x2acbd6,_0x40c98a||_0xadaed4(0x10f));if(V(_0xbbba85)!=_0xadaed4(0x151))return _0xbbba85;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x40c98a===_0xadaed4(0x149)?String:Number)(_0x2acbd6);}function U(_0x1c3a68){const _0x21d6dc=_0x354455;var _0x39560d=H(_0x1c3a68,_0x21d6dc(0x149));return V(_0x39560d)=='symbol'?_0x39560d:_0x39560d+'';}function W(_0x4380d9,_0x11a578,_0x4a35d5){const _0x376e7f=_0x354455;return(_0x11a578=U(_0x11a578))in _0x4380d9?Object[_0x376e7f(0x138)](_0x4380d9,_0x11a578,{'value':_0x4a35d5,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4380d9[_0x11a578]=_0x4a35d5,_0x4380d9;}let G=class extends _0x24f424{constructor(_0x3a806e=R,_0x4ae6c4,_0x673061,_0x495376){const _0x7f4525=_0x354455;super(),this['_config']=_0x3a806e,this['_injector']=_0x4ae6c4,this[_0x7f4525(0x14f)]=_0x673061,this['_commandService']=_0x495376;let {..._0x5ef51c}=_0x3dfa1e({},R,this['_config']);this[_0x7f4525(0x14f)][_0x7f4525(0x126)](_0x7f4525(0x12f),_0x5ef51c);}['onStarting'](){const _0x1d589=_0x354455;[M,N,E,P,F,D]['forEach'](_0x51ca67=>this['disposeWithMe'](this[_0x1d589(0x12c)]['registerCommand'](_0x51ca67)));}};W(G,_0x354455(0x132),_0x354455(0x134)),W(G,_0x354455(0xef),I),W(G,_0x354455(0x129),L),W(G,_0x354455(0x124),_0x2a21bc['UNIVER_DOC']),G=B([_0x25103f(_0x99429e,_0x280ea7),z(0x1,_0x481bb7(_0x20836d)),z(0x2,_0x31856b),z(0x3,_0x96e9cf)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};function _0x2ad7(_0x2ad720,_0x16e2dd){_0x2ad720=_0x2ad720-0xee;const _0x15704d=_0x1570();let _0x2ad7ce=_0x15704d[_0x2ad720];return _0x2ad7ce;}function _0x1570(){const _0xb51c48=['sectionId','5454IQXbGF','1364799hUQTWe','length','get','replaceOp','getInstance','ENDNOTE','includes','474236nYugCh','deepClone','-settings','segmentId','type','endnote','setConfig','8943066IiFtIm','1.0.4','version','rangeType','keys','_commandService','documentStyle','beneathText','docs-reference.config','eachPage','2571bnZPaC','pluginName','find','UNIVER_DOCS_REFERENCE_PLUGIN','suppressEndnotes','tableSource','delete','defineProperty','continuationSeparator','drawings','doc.command.delete-endnote','236wrFKvG','documentFlavor','UNIVER_DOC','unitId','noteProperties','diffValue','drawingsOrder','headers','position','isInteger','toPrimitive','getSnapshot','decorate','string','referenceTextStyle','function','findIndex','settings','COMMAND','_configService','FOOTNOTE','object','columnCount','packageName','removeOp','footnote','constructor','compose','retain','restart','symbol','doc.command.insert-footnote','TRADITIONAL','2541UZVYCI','editOp','notes','getUnit','9837hppaeA','15ERRpTo','noteId','getOwnPropertyDescriptor','startNumber','doc.command.set-endnote-settings','serialize','startIndex','every','isNoop','set-','eachSect','1320220nHhEnf','footers','properties','sectionBreaks','call','continuous','default','syncExecuteCommand','boolean','numberFormat','body','2456qllCIh','insertOp','noteSettings'];_0x1570=function(){return _0xb51c48;};return _0x1570();}
|
|
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 _0x1dd0(_0x27efe3,_0x2dced6){_0x27efe3=_0x27efe3-0x6d;const _0x18e67e=_0x18e6();let _0x1dd06d=_0x18e67e[_0x27efe3];return _0x1dd06d;}(function(_0x536dda,_0x5e1c53){const _0x16cbf9=_0x1dd0,_0x4d7000=_0x536dda();while(!![]){try{const _0x29e911=parseInt(_0x16cbf9(0xb4))/0x1*(parseInt(_0x16cbf9(0xe0))/0x2)+-parseInt(_0x16cbf9(0xf8))/0x3*(parseInt(_0x16cbf9(0xc4))/0x4)+parseInt(_0x16cbf9(0x75))/0x5*(-parseInt(_0x16cbf9(0xfb))/0x6)+-parseInt(_0x16cbf9(0xca))/0x7*(-parseInt(_0x16cbf9(0xfe))/0x8)+parseInt(_0x16cbf9(0xc1))/0x9*(parseInt(_0x16cbf9(0x89))/0xa)+parseInt(_0x16cbf9(0x8a))/0xb*(-parseInt(_0x16cbf9(0x81))/0xc)+-parseInt(_0x16cbf9(0x9d))/0xd;if(_0x29e911===_0x5e1c53)break;else _0x4d7000['push'](_0x4d7000['shift']());}catch(_0x666d87){_0x4d7000['push'](_0x4d7000['shift']());}}}(_0x18e6,0x262df),function(_0x74167f,_0x45401d){const _0xe4fbf9=_0x1dd0;typeof exports==_0xe4fbf9(0xe1)&&typeof module<'u'?_0x45401d(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0xe4fbf9(0x7b)&&define['amd']?define([_0xe4fbf9(0xa5),_0xe4fbf9(0xb2),_0xe4fbf9(0xa8),_0xe4fbf9(0xf0)],_0x45401d):(_0x74167f=typeof globalThis<'u'?globalThis:_0x74167f||self,_0x45401d(_0x74167f['UniverProDocsReference']={},_0x74167f['UniverCore'],_0x74167f[_0xe4fbf9(0xef)],_0x74167f[_0xe4fbf9(0x78)]));}(this,function(_0x12639a,_0x4c90e0,_0x4b7b07,_0x3f1e82){const _0x42cf90=_0x1dd0;Object[_0x42cf90(0xdb)](_0x12639a,Symbol[_0x42cf90(0xc2)],{'value':'Module'});function _0x20506f(_0x4549cb,_0x4cb9c4,_0x2412cb){const _0x4b294d=_0x42cf90;if(_0x4549cb[_0x4b294d(0xf5)]!=null&&!(_0x4cb9c4==='footnote'?['pageBottom','beneathText']:[_0x4b294d(0x99),_0x4b294d(0xd7)])[_0x4b294d(0xe5)](_0x4549cb[_0x4b294d(0xf5)])||_0x4549cb[_0x4b294d(0x80)]!=null&&!(_0x4cb9c4===_0x4b294d(0x6f)?[_0x4b294d(0x79),_0x4b294d(0xae),_0x4b294d(0x8c)]:[_0x4b294d(0x79),'eachSect'])[_0x4b294d(0xe5)](_0x4549cb[_0x4b294d(0x80)])||_0x4549cb[_0x4b294d(0x85)]!=null&&(!Number[_0x4b294d(0xd9)](_0x4549cb[_0x4b294d(0x85)])||_0x4549cb['startNumber']<0x1)||_0x4b294d(0xe2)in _0x4549cb&&_0x4549cb[_0x4b294d(0xe2)]!=null&&(_0x4cb9c4!=='footnote'||!Number[_0x4b294d(0xd9)](_0x4549cb[_0x4b294d(0xe2)])||_0x4549cb[_0x4b294d(0xe2)]<0x0||_0x4549cb[_0x4b294d(0xe2)]>0x4)||_0x4549cb['numberFormat']!=null&&(typeof _0x4549cb[_0x4b294d(0xe3)]!='string'||_0x4549cb['numberFormat'][_0x4b294d(0xb0)]===0x0))return!0x1;for(let _0x168e4d of[_0x4549cb[_0x4b294d(0xfc)],_0x4549cb[_0x4b294d(0xce)],_0x4549cb[_0x4b294d(0x6e)]])if(_0x168e4d!=null&&(_0x2412cb!=null||(0x0,_0x4c90e0[_0x4b294d(0x73)])(_0x168e4d)[_0x4b294d(0xb0)]>0x0))return!0x1;return!0x0;}function _0x426eff(_0x259ec8,_0x1df81b,_0x1aa1cf){const _0x33ab09=_0x42cf90;var _0x38c8ab,_0x4a6b29;if(_0x1df81b[_0x33ab09(0x76)]!=null&&!_0x20506f(_0x1df81b[_0x33ab09(0x76)],_0x1aa1cf,_0x1df81b[_0x33ab09(0xbc)]))return!0x1;let _0x94beec=((_0x38c8ab=_0x259ec8[_0x33ab09(0xb5)])==null||(_0x38c8ab=_0x38c8ab[_0x33ab09(0xf1)])==null?void 0x0:_0x38c8ab['findIndex'](_0x50dfe8=>_0x50dfe8['sectionId']===_0x1df81b[_0x33ab09(0xbc)]))??-0x1;if(_0x1df81b['sectionId']!=null&&_0x94beec<0x0)return!0x1;let _0x571c62=_0x1df81b[_0x33ab09(0xbc)]==null?_0x259ec8[_0x33ab09(0x93)]:(_0x4a6b29=_0x259ec8[_0x33ab09(0xb5)])==null||(_0x4a6b29=_0x4a6b29['sectionBreaks'])==null?void 0x0:_0x4a6b29[_0x94beec][_0x33ab09(0xee)],_0x42e690=_0x1df81b[_0x33ab09(0x76)]==null?void 0x0:_0x4c90e0[_0x33ab09(0xa0)][_0x33ab09(0x77)](_0x1df81b[_0x33ab09(0x76)]),_0x4d9c85=_0x1df81b['sectionId']==null?['noteSettings']:[_0x33ab09(0xb5),_0x33ab09(0xf1),_0x94beec,_0x33ab09(0xee)],_0x44c176=_0x4c90e0[_0x33ab09(0xf7)][_0x33ab09(0xac)](),_0x641f8c=null;if(_0x4c90e0[_0x33ab09(0xa0)][_0x33ab09(0x97)](_0x571c62==null?void 0x0:_0x571c62[_0x1aa1cf],_0x42e690)||(_0x641f8c=_0x571c62==null?_0x44c176[_0x33ab09(0xd5)](_0x4d9c85,{[_0x1aa1cf]:_0x42e690}):_0x1df81b[_0x33ab09(0xbc)]!=null&&_0x42e690==null&&Object['keys'](_0x571c62)[_0x33ab09(0xf2)](_0xda0997=>_0xda0997===_0x1aa1cf)?_0x44c176[_0x33ab09(0x6d)](_0x4d9c85,_0x571c62):_0x44c176[_0x33ab09(0xa3)]([..._0x4d9c85,_0x1aa1cf],_0x571c62[_0x1aa1cf],_0x42e690)),_0x1df81b[_0x33ab09(0x92)]!=null){var _0x14ffaf;if(_0x1aa1cf!==_0x33ab09(0x74)||_0x1df81b[_0x33ab09(0xbc)]==null||typeof _0x1df81b[_0x33ab09(0x92)]!='boolean')return!0x1;let _0x393d1f=(_0x14ffaf=_0x259ec8[_0x33ab09(0xb5)])==null||(_0x14ffaf=_0x14ffaf[_0x33ab09(0xf1)])==null?void 0x0:_0x14ffaf[_0x94beec][_0x33ab09(0x92)];_0x393d1f!==_0x1df81b['suppressEndnotes']&&(_0x641f8c=_0x4c90e0[_0x33ab09(0xf7)]['compose'](_0x641f8c,_0x44c176[_0x33ab09(0xa3)](['body','sectionBreaks',_0x94beec,_0x33ab09(0x92)],_0x393d1f,_0x1df81b[_0x33ab09(0x92)])));}return _0x641f8c;}function _0x36f59d(_0xe2b999,_0x2f60ef,_0x5b93c0){const _0x583da7=_0x42cf90;if(!_0x2f60ef)return!0x1;let _0x3e8a3e=_0xe2b999[_0x583da7(0xcd)](_0x4c90e0[_0x583da7(0xec)])[_0x583da7(0xc5)](_0x2f60ef['unitId'],_0x4c90e0['UniverInstanceType'][_0x583da7(0x95)]),_0x1e114=_0x3e8a3e==null?void 0x0:_0x3e8a3e[_0x583da7(0x86)]();if(!_0x1e114||_0x1e114['documentStyle'][_0x583da7(0xed)]!==_0x4c90e0[_0x583da7(0x7a)][_0x583da7(0xb3)])return!0x1;let _0x251e36=_0x426eff(_0x1e114,_0x2f60ef,_0x5b93c0);return _0x251e36===!0x1||_0x4c90e0[_0x583da7(0xf7)][_0x583da7(0x90)](_0x251e36)?!0x1:!!_0xe2b999[_0x583da7(0xcd)](_0x4c90e0['ICommandService'])[_0x583da7(0xe4)](_0x4b7b07[_0x583da7(0x7f)]['id'],{'unitId':_0x2f60ef['unitId'],'segmentId':'','historyAction':_0x583da7(0x8d)+_0x5b93c0+_0x583da7(0xe9),'actions':_0x251e36,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x3ebf59={'id':'doc.command.set-footnote-settings','type':_0x4c90e0[_0x42cf90(0xc7)][_0x42cf90(0xfd)],'handler':(_0x3cae66,_0x103cc0)=>_0x36f59d(_0x3cae66,_0x103cc0,_0x42cf90(0x6f))},_0x2684ed={'id':_0x42cf90(0x82),'type':_0x4c90e0['CommandType'][_0x42cf90(0xfd)],'handler':(_0x1fb934,_0x2f28c8)=>_0x36f59d(_0x1fb934,_0x2f28c8,_0x42cf90(0x74))};function _0x45d47e(_0x256ab0,_0x53a4b9){const _0x25a082=_0x42cf90;return(_0x256ab0==null?void 0x0:_0x256ab0[_0x25a082(0xde)][_0x25a082(0xed)])===_0x4c90e0[_0x25a082(0x7a)]['TRADITIONAL']&&!!_0x256ab0['body']&&Number['isInteger'](_0x53a4b9)&&_0x53a4b9>=0x0&&_0x53a4b9<_0x256ab0[_0x25a082(0xb5)][_0x25a082(0xea)][_0x25a082(0xb0)]-0x1;}function _0x2526cd(_0xae4c7f,_0x50390c,_0x352c3e){const _0x5d4f3f=_0x42cf90;var _0x553960,_0x392333;if(_0x50390c[_0x5d4f3f(0x76)]===void 0x0&&_0x50390c[_0x5d4f3f(0x92)]===void 0x0)return null;let _0x3188d9=_0x50390c[_0x5d4f3f(0xbc)]==null?(_0x553960=_0xae4c7f[_0x5d4f3f(0x93)])==null?void 0x0:_0x553960[_0x352c3e]:(_0x392333=_0xae4c7f[_0x5d4f3f(0xb5)])==null||(_0x392333=_0x392333['sectionBreaks'])==null||(_0x392333=_0x392333[_0x5d4f3f(0xe6)](_0x2b4ff1=>_0x2b4ff1[_0x5d4f3f(0xbc)]===_0x50390c[_0x5d4f3f(0xbc)]))==null||(_0x392333=_0x392333['noteProperties'])==null?void 0x0:_0x392333[_0x352c3e];return _0x426eff(_0xae4c7f,{'settings':_0x50390c[_0x5d4f3f(0x76)]===void 0x0?_0x3188d9??null:_0x50390c[_0x5d4f3f(0x76)],'sectionId':_0x50390c[_0x5d4f3f(0xbc)],'suppressEndnotes':_0x50390c['suppressEndnotes']},_0x352c3e);}function _0x269270(_0x19c8b8,_0x61994,_0x406527){const _0x248e87=_0x42cf90;var _0x42c5df,_0x13da31,_0x275a27;if(!_0x61994||_0x61994[_0x248e87(0xbd)])return!0x1;let _0x369198=_0x19c8b8[_0x248e87(0xcd)](_0x4c90e0[_0x248e87(0xec)])[_0x248e87(0xc5)](_0x61994[_0x248e87(0x7c)],_0x4c90e0[_0x248e87(0xdc)][_0x248e87(0x95)]),_0x286c8a=_0x369198==null?void 0x0:_0x369198[_0x248e87(0x86)](),{offset:_0x5e240f}=_0x61994;if(!_0x45d47e(_0x286c8a,_0x5e240f))return!0x1;let _0x5ce5bc=_0x2526cd(_0x286c8a,_0x61994,_0x406527);if(_0x5ce5bc===!0x1)return!0x1;let _0x27e91a=_0x61994[_0x248e87(0xaf)]??(0x0,_0x4c90e0[_0x248e87(0x9a)])(0xc);if((_0x42c5df=_0x286c8a[_0x248e87(0xd4)])!=null&&_0x42c5df[_0x27e91a]||(_0x13da31=_0x286c8a[_0x248e87(0x8f)])!=null&&_0x13da31[_0x27e91a]||(_0x275a27=_0x286c8a[_0x248e87(0x71)])!=null&&_0x275a27[_0x27e91a])return!0x1;let _0x500a59=_0x4c90e0['Tools']['deepClone']({'type':_0x406527,'noteId':_0x27e91a,'body':_0x61994[_0x248e87(0xb5)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x4c90e0[_0x248e87(0xbe)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x4c90e0[_0x248e87(0x9c)])(new Set()),'startIndex':0x1}]},'customMark':_0x61994[_0x248e87(0xc8)],'referenceTextStyle':_0x61994[_0x248e87(0xab)],'tableSource':_0x61994[_0x248e87(0x84)],'drawings':_0x61994[_0x248e87(0xa4)],'drawingsOrder':_0x61994[_0x248e87(0xd1)],'lists':_0x61994[_0x248e87(0xb7)]});if((0x0,_0x4c90e0['validateDocumentStructure'])({'notes':{[_0x27e91a]:_0x500a59}})['length']>0x0)return!0x1;let _0x1703bc=new _0x4c90e0[(_0x248e87(0xc9))]();_0x5e240f>0x0&&_0x1703bc[_0x248e87(0x9e)](_0x5e240f),_0x1703bc[_0x248e87(0xbf)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x406527==='footnote'?_0x4c90e0[_0x248e87(0x8b)][_0x248e87(0xcb)]:_0x4c90e0['CustomRangeType'][_0x248e87(0xb1)],'rangeId':(0x0,_0x4c90e0[_0x248e87(0x9a)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x27e91a}}]});let _0x600cbc=_0x4c90e0[_0x248e87(0xf7)][_0x248e87(0xac)](),_0x6f816e=_0x286c8a[_0x248e87(0xd4)]==null?_0x600cbc[_0x248e87(0xd5)](['notes'],{[_0x27e91a]:_0x500a59}):_0x600cbc[_0x248e87(0xd5)]([_0x248e87(0xd4),_0x27e91a],_0x500a59);return!!_0x19c8b8[_0x248e87(0xcd)](_0x4c90e0[_0x248e87(0xb8)])['syncExecuteCommand'](_0x4b7b07['RichTextEditingMutation']['id'],{'unitId':_0x61994['unitId'],'segmentId':'','historyAction':_0x248e87(0xc6)+_0x406527,'actions':_0x4c90e0[_0x248e87(0xf7)][_0x248e87(0xda)](_0x4c90e0[_0x248e87(0xf7)]['compose'](_0x5ce5bc,_0x6f816e),_0x600cbc[_0x248e87(0x94)](_0x1703bc[_0x248e87(0xa1)](),[_0x248e87(0xb5)])),'textRanges':[{'segmentId':_0x27e91a,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x3c88b6(_0x10c0ca,_0x41a9e7,_0x39e63b){const _0x28c1e3=_0x42cf90;var _0x3f7fbf,_0x48e40b;if(!_0x41a9e7)return!0x1;let _0x1cef95=_0x10c0ca[_0x28c1e3(0xcd)](_0x4c90e0[_0x28c1e3(0xec)])[_0x28c1e3(0xc5)](_0x41a9e7[_0x28c1e3(0x7c)],_0x4c90e0[_0x28c1e3(0xdc)][_0x28c1e3(0x95)]),_0x340589=_0x1cef95==null?void 0x0:_0x1cef95[_0x28c1e3(0x86)](),_0x4e56f2=_0x340589==null||(_0x3f7fbf=_0x340589[_0x28c1e3(0xd4)])==null?void 0x0:_0x3f7fbf[_0x41a9e7[_0x28c1e3(0xaf)]],_0x30741c=_0x340589==null||(_0x48e40b=_0x340589[_0x28c1e3(0xb5)])==null||(_0x48e40b=_0x48e40b[_0x28c1e3(0xf6)])==null?void 0x0:_0x48e40b['find'](_0x28fc86=>{const _0x4809b5=_0x28c1e3;var _0x4a8522;return(_0x28fc86[_0x4809b5(0x7d)]===_0x4c90e0[_0x4809b5(0x8b)][_0x4809b5(0xcb)]||_0x28fc86[_0x4809b5(0x7d)]===_0x4c90e0[_0x4809b5(0x8b)][_0x4809b5(0xb1)])&&((_0x4a8522=_0x28fc86['properties'])==null?void 0x0:_0x4a8522[_0x4809b5(0xaf)])===_0x41a9e7[_0x4809b5(0xaf)];});if(!_0x340589||_0x340589[_0x28c1e3(0xde)][_0x28c1e3(0xed)]!==_0x4c90e0['DocumentFlavor'][_0x28c1e3(0xb3)]||!_0x4e56f2||_0x4e56f2['type']!==_0x39e63b||!_0x30741c)return!0x1;let _0x322d0d=new _0x4c90e0['TextX']();_0x30741c[_0x28c1e3(0xa6)]>0x0&&_0x322d0d[_0x28c1e3(0x9e)](_0x30741c[_0x28c1e3(0xa6)]),_0x322d0d[_0x28c1e3(0xa2)](0x1);let _0x40ffbc=_0x4c90e0['JSONX'][_0x28c1e3(0xac)]();return!!_0x10c0ca[_0x28c1e3(0xcd)](_0x4c90e0[_0x28c1e3(0xb8)])[_0x28c1e3(0xe4)](_0x4b7b07['RichTextEditingMutation']['id'],{'unitId':_0x41a9e7[_0x28c1e3(0x7c)],'segmentId':'','historyAction':_0x28c1e3(0xf9)+_0x39e63b,'actions':_0x4c90e0['JSONX']['compose'](_0x40ffbc['editOp'](_0x322d0d[_0x28c1e3(0xa1)](),[_0x28c1e3(0xb5)]),_0x40ffbc[_0x28c1e3(0x6d)]([_0x28c1e3(0xd4),_0x41a9e7[_0x28c1e3(0xaf)]],_0x4e56f2)),'textRanges':[{'startOffset':_0x30741c[_0x28c1e3(0xa6)],'endOffset':_0x30741c[_0x28c1e3(0xa6)],'collapsed':!0x0}],'debounce':!0x1});}let _0x5e87d8={'id':_0x42cf90(0xba),'type':_0x4c90e0[_0x42cf90(0xc7)]['COMMAND'],'handler':(_0x1d84ad,_0x430c1c)=>_0x269270(_0x1d84ad,_0x430c1c,_0x42cf90(0x6f))},_0x2f487c={'id':_0x42cf90(0xc3),'type':_0x4c90e0['CommandType'][_0x42cf90(0xfd)],'handler':(_0x170854,_0x51b93a)=>_0x3c88b6(_0x170854,_0x51b93a,_0x42cf90(0x6f))},_0xecc2bc={'id':_0x42cf90(0xeb),'type':_0x4c90e0[_0x42cf90(0xc7)]['COMMAND'],'handler':(_0x25866a,_0x53c975)=>_0x269270(_0x25866a,_0x53c975,_0x42cf90(0x74))},_0xdcf53b={'id':_0x42cf90(0x8e),'type':_0x4c90e0[_0x42cf90(0xc7)][_0x42cf90(0xfd)],'handler':(_0xbab5ce,_0x5a1040)=>_0x3c88b6(_0xbab5ce,_0x5a1040,_0x42cf90(0x74))};var _0x4761e2=_0x42cf90(0xe8),_0x8570c0=_0x42cf90(0x9f);let _0x49bd17={};function _0x27bd0c(_0x3a062c,_0x15555e){return function(_0x45ccad,_0x24a8fe){_0x15555e(_0x45ccad,_0x24a8fe,_0x3a062c);};}function _0x58d9ea(_0x55f46a,_0x13f0fb,_0x3d5d89,_0x1b36e3){const _0x4c51e1=_0x42cf90;var _0x164efc=arguments[_0x4c51e1(0xb0)],_0x5c1b8b=_0x164efc<0x3?_0x13f0fb:_0x1b36e3===null?_0x1b36e3=Object['getOwnPropertyDescriptor'](_0x13f0fb,_0x3d5d89):_0x1b36e3,_0x5ce3fc;if(typeof Reflect==_0x4c51e1(0xe1)&&typeof Reflect[_0x4c51e1(0xfa)]==_0x4c51e1(0x7b))_0x5c1b8b=Reflect[_0x4c51e1(0xfa)](_0x55f46a,_0x13f0fb,_0x3d5d89,_0x1b36e3);else{for(var _0x52c75d=_0x55f46a[_0x4c51e1(0xb0)]-0x1;_0x52c75d>=0x0;_0x52c75d--)(_0x5ce3fc=_0x55f46a[_0x52c75d])&&(_0x5c1b8b=(_0x164efc<0x3?_0x5ce3fc(_0x5c1b8b):_0x164efc>0x3?_0x5ce3fc(_0x13f0fb,_0x3d5d89,_0x5c1b8b):_0x5ce3fc(_0x13f0fb,_0x3d5d89))||_0x5c1b8b);}return _0x164efc>0x3&&_0x5c1b8b&&Object[_0x4c51e1(0xdb)](_0x13f0fb,_0x3d5d89,_0x5c1b8b),_0x5c1b8b;}function _0x2c7feb(_0x4b37c1){'@babel/helpers - typeof';const _0x370000=_0x42cf90;return _0x2c7feb=typeof Symbol==_0x370000(0x7b)&&typeof Symbol[_0x370000(0x96)]==_0x370000(0x7e)?function(_0x211e47){return typeof _0x211e47;}:function(_0x5d1f14){const _0xc83f21=_0x370000;return _0x5d1f14&&typeof Symbol=='function'&&_0x5d1f14[_0xc83f21(0x88)]===Symbol&&_0x5d1f14!==Symbol[_0xc83f21(0x98)]?_0xc83f21(0x7e):typeof _0x5d1f14;},_0x2c7feb(_0x4b37c1);}function _0x4a50db(_0x16e99c,_0x90e5d9){const _0x350fe7=_0x42cf90;if(_0x2c7feb(_0x16e99c)!='object'||!_0x16e99c)return _0x16e99c;var _0x4af580=_0x16e99c[Symbol[_0x350fe7(0xf3)]];if(_0x4af580!==void 0x0){var _0x511cbf=_0x4af580['call'](_0x16e99c,_0x90e5d9||_0x350fe7(0xa9));if(_0x2c7feb(_0x511cbf)!=_0x350fe7(0xe1))return _0x511cbf;throw TypeError(_0x350fe7(0x72));}return(_0x90e5d9===_0x350fe7(0xb9)?String:Number)(_0x16e99c);}function _0x390b6b(_0x4fdcb4){const _0x3184ae=_0x42cf90;var _0x401216=_0x4a50db(_0x4fdcb4,_0x3184ae(0xb9));return _0x2c7feb(_0x401216)==_0x3184ae(0x7e)?_0x401216:_0x401216+'';}function _0x31368a(_0x3a475e,_0x2095bd,_0x1fd209){return(_0x2095bd=_0x390b6b(_0x2095bd))in _0x3a475e?Object['defineProperty'](_0x3a475e,_0x2095bd,{'value':_0x1fd209,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a475e[_0x2095bd]=_0x1fd209,_0x3a475e;}let _0x321418=class extends _0x4c90e0[_0x42cf90(0xdf)]{constructor(_0x3d5b5f=_0x49bd17,_0x1ae7fc,_0x55a7e6,_0x48bbe3){const _0x5ab171=_0x42cf90;super(),this[_0x5ab171(0xaa)]=_0x3d5b5f,this['_injector']=_0x1ae7fc,this['_configService']=_0x55a7e6,this['_commandService']=_0x48bbe3;let {..._0xe6eda5}=(0x0,_0x4c90e0['merge'])({},_0x49bd17,this[_0x5ab171(0xaa)]);this[_0x5ab171(0xa7)][_0x5ab171(0x9b)]('docs-reference.config',_0xe6eda5);}['onStarting'](){const _0x5e9936=_0x42cf90;[_0x5e87d8,_0x2f487c,_0x3ebf59,_0xecc2bc,_0xdcf53b,_0x2684ed]['forEach'](_0xadea0b=>this[_0x5e9936(0xdd)](this['_commandService'][_0x5e9936(0xd8)](_0xadea0b)));}};_0x31368a(_0x321418,_0x42cf90(0xad),'UNIVER_DOCS_REFERENCE_PLUGIN'),_0x31368a(_0x321418,_0x42cf90(0xd0),_0x4761e2),_0x31368a(_0x321418,_0x42cf90(0xd2),_0x8570c0),_0x31368a(_0x321418,_0x42cf90(0x87),_0x4c90e0[_0x42cf90(0xdc)][_0x42cf90(0x95)]),_0x321418=_0x58d9ea([(0x0,_0x4c90e0[_0x42cf90(0xe7)])(_0x3f1e82[_0x42cf90(0xcf)],_0x4b7b07[_0x42cf90(0xc0)]),_0x27bd0c(0x1,(0x0,_0x4c90e0[_0x42cf90(0x91)])(_0x4c90e0[_0x42cf90(0xbb)])),_0x27bd0c(0x2,_0x4c90e0[_0x42cf90(0xd3)]),_0x27bd0c(0x3,_0x4c90e0['ICommandService'])],_0x321418),_0x12639a[_0x42cf90(0xb6)]=_0xdcf53b,_0x12639a['DeleteDocumentFootnoteCommand']=_0x2f487c,_0x12639a[_0x42cf90(0x70)]=_0xecc2bc,_0x12639a[_0x42cf90(0xd6)]=_0x5e87d8,_0x12639a[_0x42cf90(0x83)]=_0x2684ed,_0x12639a[_0x42cf90(0xcc)]=_0x3ebf59,Object[_0x42cf90(0xdb)](_0x12639a,_0x42cf90(0xf4),{'enumerable':!0x0,'get':function(){return _0x321418;}});}));function _0x18e6(){const _0xdc6c35=['toStringTag','doc.command.delete-footnote','8592PIJyJD','getUnit','insert-','CommandType','customMark','TextX','315CjACXx','FOOTNOTE','SetDocumentFootnoteSettingsCommand','get','continuationSeparator','UniverLicensePlugin','packageName','drawingsOrder','version','IConfigService','notes','insertOp','InsertDocumentFootnoteCommand','sectEnd','registerCommand','isInteger','compose','defineProperty','UniverInstanceType','disposeWithMe','documentStyle','Plugin','312082uXkzBi','object','columnCount','numberFormat','syncExecuteCommand','includes','find','DependentOn','@univerjs-pro/docs-reference','-settings','dataStream','doc.command.insert-endnote','IUniverInstanceService','documentFlavor','noteProperties','UniverDocs','@univerjs-pro/license','sectionBreaks','every','toPrimitive','UniverDocsReferencePlugin','position','customRanges','JSONX','51mWHYyY','delete-','decorate','21396GEhIzA','separator','COMMAND','50088seIEeI','removeOp','continuationNotice','footnote','InsertDocumentEndnoteCommand','footers','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','validateDocBodyStructure','endnote','120xqUeNo','settings','deepClone','UniverProLicense','continuous','DocumentFlavor','function','unitId','rangeType','symbol','RichTextEditingMutation','restart','12SHmGSD','doc.command.set-endnote-settings','SetDocumentEndnoteSettingsCommand','tableSource','startNumber','getSnapshot','type','constructor','30iaieeZ','519277diVWPT','CustomRangeType','eachPage','set-','doc.command.delete-endnote','headers','isNoop','Inject','suppressEndnotes','noteSettings','editOp','UNIVER_DOC','iterator','diffValue','prototype','docEnd','generateRandomId','setConfig','createSectionId','4182139UEjKcZ','retain','1.0.4','Tools','serialize','delete','replaceOp','drawings','exports','startIndex','_configService','@univerjs/docs','default','_config','referenceTextStyle','getInstance','pluginName','eachSect','noteId','length','ENDNOTE','@univerjs/core','TRADITIONAL','1hMGieg','body','DeleteDocumentEndnoteCommand','lists','ICommandService','string','doc.command.insert-footnote','Injector','sectionId','segmentId','createParagraphId','insert','UniverDocsPlugin','628821NFEJxQ'];_0x18e6=function(){return _0xdc6c35;};return _0x18e6();}
|
|
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.0
|
|
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,16 +59,16 @@
|
|
|
59
59
|
"lib"
|
|
60
60
|
],
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@univerjs-pro/license": "1.0
|
|
63
|
-
"@univerjs/core": "1.0
|
|
64
|
-
"@univerjs/docs": "1.0
|
|
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.0
|
|
68
|
-
"@univerjs/engine-render": "1.0
|
|
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
|
-
"vitest": "^5.0.
|
|
71
|
+
"vitest": "^5.0.4"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"test": "vitest run",
|