@univerjs-pro/docs-reference 1.0.0-rc.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -1
- 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/README.md
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
# @univerjs-pro/docs-reference
|
|
2
2
|
|
|
3
|
+
[](https://npmjs.com/package/@univerjs-pro/docs-reference)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs-pro/docs-reference)
|
|
5
|
+
[](https://npmjs.com/package/@univerjs-pro/docs-reference)
|
|
6
|
+
|
|
3
7
|
Document reference commands and Facade APIs for Univer Pro. Register this plugin for traditional-document footnote and endnote creation, deletion and settings. It has no browser UI and can be used with the Docs runtime on Node.js.
|
|
4
8
|
|
|
9
|
+
## Package Overview
|
|
10
|
+
|
|
11
|
+
| Package | UMD global | CSS | Locales | Facade entry |
|
|
12
|
+
| --- | --- | :---: | :---: | :---: |
|
|
13
|
+
| `@univerjs-pro/docs-reference` | `UniverProDocsReference` | No | No | Yes |
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
pnpm add @univerjs-pro/docs-reference
|
|
19
|
+
# or
|
|
20
|
+
npm install @univerjs-pro/docs-reference
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
24
|
+
|
|
5
25
|
## Usage
|
|
6
26
|
|
|
7
27
|
Keep all Univer packages on the same version and configure `UniverLicensePlugin` with your application license.
|
|
@@ -24,7 +44,7 @@ document?.setFootnoteSettings({ numberFormat: 'decimal', restart: 'eachSect' });
|
|
|
24
44
|
|
|
25
45
|
`getFootnotes()` returns detached note data in reference order. `deleteFootnote(id)` removes both the reference and content. `getFootnoteSettings(sectionId?)` reads explicit settings; `setFootnoteSettings(settings, sectionId?)` replaces them, and `null` restores inheritance.
|
|
26
46
|
|
|
27
|
-
|
|
47
|
+
### Data and editing
|
|
28
48
|
|
|
29
49
|
References use stable IDs and the core document note segments. Commands use the existing rich-text editing mutation, permissions, undo/redo and collaboration channels. No additional collaboration mutation or resource is required. Text offsets are UTF-16 offsets in the document body, including structural tokens.
|
|
30
50
|
|
|
@@ -35,3 +55,13 @@ Install `@univerjs-pro/docs-reference-ui` for the References ribbon, settings an
|
|
|
35
55
|
Endnotes use `insertEndnote(offset, content?)`, `getEndnotes()`, and `deleteEndnote(id)`. Their content is edited with the same segment text-range APIs as footnotes. `setEndnoteSettings({ position: 'docEnd', numberFormat: 'lowerRoman' })` configures document defaults; pass a section ID to configure `sectEnd` placement or numbering restart for that section. `getEndnoteSettings(sectionId?)` reads explicit settings and passing `null` to the setter restores inheritance. Footnotes and endnotes count independently.
|
|
36
56
|
|
|
37
57
|
Snapshots store both kinds in `notes: Record<string, IDocumentNote>`, identified by stable `noteId` and a `type` of `footnote` or `endnote`. Document defaults live in `noteSettings.footnote` and `noteSettings.endnote`; section overrides live in `sectionBreaks[].noteProperties`. References, content and settings use the existing rich-text mutation and undo/collaboration path. All collaborating clients must understand the new snapshot fields and `ENDNOTE` range type.
|
|
58
|
+
|
|
59
|
+
## Integration Notes
|
|
60
|
+
|
|
61
|
+
- Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
62
|
+
- Import `@univerjs-pro/docs-reference/facade` when using the package through Univer Facade APIs.
|
|
63
|
+
|
|
64
|
+
## Resources
|
|
65
|
+
|
|
66
|
+
- [Documentation](https://docs.univer.ai/guides/pro)
|
|
67
|
+
- [NPM package](https://npmjs.com/package/@univerjs-pro/docs-reference)
|
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5ea4b8=_0x8bb4;function _0x166b(){const _0x2f5641=['CustomRangeType','find','footnote','body','syncExecuteCommand','ENDNOTE','endnote','4fiMLNh','1305459YUhfWC','28189ghcAlM','SetDocumentEndnoteSettingsCommand','1014790NoGqZE','insertEndnote','InsertDocumentEndnoteCommand','InsertDocumentFootnoteCommand','9siznCH','setEndnoteSettings','sectionBreaks','deleteFootnote','startIndex','getEndnotes','360fxHfpA','rangeType','getDocumentDataModel','sectionId','ICommandService','4643576VGhNRJ','47465DaRoQi','getSnapshot','deepClone','flatMap','getFootnoteSettings','noteSettings','2191721eIFHwM','FOOTNOTE','sort','DeleteDocumentEndnoteCommand','60500hsZShT','generateRandomId','Tools','filter','deleteEndnote','properties','300fYCVUS','customRanges','notes','string','94UscScu','noteProperties','getFootnotes','noteId','get','FDocument','DeleteDocumentFootnoteCommand','setFootnoteSettings','_injector'];_0x166b=function(){return _0x2f5641;};return _0x166b();}function _0x8bb4(_0x138591,_0x544d81){_0x138591=_0x138591-0x1af;const _0x166b45=_0x166b();let _0x8bb466=_0x166b45[_0x138591];return _0x8bb466;}(function(_0x378365,_0x349bc8){const _0x221ec8=_0x8bb4,_0x2fcf0d=_0x378365();while(!![]){try{const _0x11b0da=parseInt(_0x221ec8(0x1bf))/0x1*(parseInt(_0x221ec8(0x1e5))/0x2)+-parseInt(_0x221ec8(0x1be))/0x3*(parseInt(_0x221ec8(0x1bd))/0x4)+parseInt(_0x221ec8(0x1d1))/0x5*(-parseInt(_0x221ec8(0x1e1))/0x6)+-parseInt(_0x221ec8(0x1d7))/0x7+-parseInt(_0x221ec8(0x1d0))/0x8*(-parseInt(_0x221ec8(0x1c5))/0x9)+-parseInt(_0x221ec8(0x1c1))/0xa+parseInt(_0x221ec8(0x1db))/0xb*(parseInt(_0x221ec8(0x1cb))/0xc);if(_0x11b0da===_0x349bc8)break;else _0x2fcf0d['push'](_0x2fcf0d['shift']());}catch(_0x1f2ed9){_0x2fcf0d['push'](_0x2fcf0d['shift']());}}}(_0x166b,0xb61d9));let e=require('@univerjs-pro/docs-reference'),t=require('@univerjs/core'),n=require('@univerjs/docs/facade');var r=class extends n[_0x5ea4b8(0x1b2)]{['insertFootnote'](_0x44e116,_0x16d98a={}){const _0x5a2ce8=_0x5ea4b8;let _0x123f19=(0x0,t[_0x5a2ce8(0x1dc)])(0xc);return this[_0x5a2ce8(0x1b5)][_0x5a2ce8(0x1b1)](t[_0x5a2ce8(0x1cf)])[_0x5a2ce8(0x1ba)](e[_0x5a2ce8(0x1c4)]['id'],{..._0x16d98a,'unitId':this['id'],'offset':_0x44e116,'noteId':_0x123f19})?_0x123f19:null;}[_0x5ea4b8(0x1af)](){const _0x1296dd=_0x5ea4b8;var _0x518fe1;let _0x341485=this[_0x1296dd(0x1cd)]()['getSnapshot']();return(((_0x518fe1=_0x341485[_0x1296dd(0x1b9)])==null?void 0x0:_0x518fe1[_0x1296dd(0x1e2)])??[])['filter'](_0x9bf09f=>_0x9bf09f[_0x1296dd(0x1cc)]===t[_0x1296dd(0x1b6)][_0x1296dd(0x1d8)])[_0x1296dd(0x1d9)]((_0x14c2b4,_0x37fc44)=>_0x14c2b4[_0x1296dd(0x1c9)]-_0x37fc44[_0x1296dd(0x1c9)])[_0x1296dd(0x1d4)](_0x5c020a=>{const _0x46c65d=_0x1296dd;var _0x342e7b,_0x32267f;let _0x4ef24c=(_0x342e7b=_0x5c020a[_0x46c65d(0x1e0)])==null?void 0x0:_0x342e7b[_0x46c65d(0x1b0)],_0x591e4f=typeof _0x4ef24c==_0x46c65d(0x1e4)?(_0x32267f=_0x341485[_0x46c65d(0x1e3)])==null?void 0x0:_0x32267f[_0x4ef24c]:void 0x0;return _0x591e4f?[t[_0x46c65d(0x1dd)]['deepClone'](_0x591e4f)]:[];});}[_0x5ea4b8(0x1c8)](_0x233d34){const _0x394937=_0x5ea4b8;return this[_0x394937(0x1b5)]['get'](t[_0x394937(0x1cf)])['syncExecuteCommand'](e[_0x394937(0x1b3)]['id'],{'unitId':this['id'],'noteId':_0x233d34});}[_0x5ea4b8(0x1d5)](_0x5c09b7){const _0x305411=_0x5ea4b8;var _0x228b3a,_0x309999;let _0x6ec173=this['getDocumentDataModel']()[_0x305411(0x1d2)](),_0x55e6df=_0x5c09b7==null?(_0x228b3a=_0x6ec173['noteSettings'])==null?void 0x0:_0x228b3a['footnote']:(_0x309999=_0x6ec173[_0x305411(0x1b9)])==null||(_0x309999=_0x309999[_0x305411(0x1c7)])==null||(_0x309999=_0x309999[_0x305411(0x1b7)](_0x386713=>_0x386713[_0x305411(0x1ce)]===_0x5c09b7))==null||(_0x309999=_0x309999[_0x305411(0x1e6)])==null?void 0x0:_0x309999[_0x305411(0x1b8)];return _0x55e6df==null?void 0x0:t[_0x305411(0x1dd)]['deepClone'](_0x55e6df);}[_0x5ea4b8(0x1b4)](_0x2f5811,_0x23ec9b){const _0x578425=_0x5ea4b8;return this[_0x578425(0x1b5)]['get'](t[_0x578425(0x1cf)])['syncExecuteCommand'](e['SetDocumentFootnoteSettingsCommand']['id'],{'unitId':this['id'],'settings':_0x2f5811,'sectionId':_0x23ec9b});}[_0x5ea4b8(0x1c2)](_0x425c4c,_0xef5ca2={}){const _0x27cc5b=_0x5ea4b8;let _0x33bcb6=(0x0,t[_0x27cc5b(0x1dc)])(0xc);return this[_0x27cc5b(0x1b5)][_0x27cc5b(0x1b1)](t[_0x27cc5b(0x1cf)])[_0x27cc5b(0x1ba)](e[_0x27cc5b(0x1c3)]['id'],{..._0xef5ca2,'unitId':this['id'],'offset':_0x425c4c,'noteId':_0x33bcb6})?_0x33bcb6:null;}[_0x5ea4b8(0x1ca)](){const _0x59cdbf=_0x5ea4b8;var _0x25b9d4;let _0x58511d=this['getDocumentDataModel']()['getSnapshot']();return(((_0x25b9d4=_0x58511d['body'])==null?void 0x0:_0x25b9d4['customRanges'])??[])[_0x59cdbf(0x1de)](_0x455f58=>_0x455f58[_0x59cdbf(0x1cc)]===t[_0x59cdbf(0x1b6)][_0x59cdbf(0x1bb)])[_0x59cdbf(0x1d9)]((_0x1b047e,_0x3af24a)=>_0x1b047e[_0x59cdbf(0x1c9)]-_0x3af24a[_0x59cdbf(0x1c9)])['flatMap'](_0x409fcc=>{const _0x21d613=_0x59cdbf;var _0x463bcc,_0x51756e;let _0x7f5047=(_0x463bcc=_0x409fcc['properties'])==null?void 0x0:_0x463bcc['noteId'],_0x162926=typeof _0x7f5047==_0x21d613(0x1e4)?(_0x51756e=_0x58511d[_0x21d613(0x1e3)])==null?void 0x0:_0x51756e[_0x7f5047]:void 0x0;return _0x162926?[t[_0x21d613(0x1dd)][_0x21d613(0x1d3)](_0x162926)]:[];});}[_0x5ea4b8(0x1df)](_0x16cead){const _0x3271a0=_0x5ea4b8;return this[_0x3271a0(0x1b5)]['get'](t[_0x3271a0(0x1cf)])[_0x3271a0(0x1ba)](e[_0x3271a0(0x1da)]['id'],{'unitId':this['id'],'noteId':_0x16cead});}['getEndnoteSettings'](_0x2b20c2){const _0x4d998d=_0x5ea4b8;var _0x2509af,_0x5e55cf;let _0x99c3b8=this[_0x4d998d(0x1cd)]()[_0x4d998d(0x1d2)](),_0x5a2e15=_0x2b20c2==null?(_0x2509af=_0x99c3b8[_0x4d998d(0x1d6)])==null?void 0x0:_0x2509af[_0x4d998d(0x1bc)]:(_0x5e55cf=_0x99c3b8['body'])==null||(_0x5e55cf=_0x5e55cf[_0x4d998d(0x1c7)])==null||(_0x5e55cf=_0x5e55cf[_0x4d998d(0x1b7)](_0x152c41=>_0x152c41[_0x4d998d(0x1ce)]===_0x2b20c2))==null||(_0x5e55cf=_0x5e55cf[_0x4d998d(0x1e6)])==null?void 0x0:_0x5e55cf[_0x4d998d(0x1bc)];return _0x5a2e15==null?void 0x0:t[_0x4d998d(0x1dd)][_0x4d998d(0x1d3)](_0x5a2e15);}[_0x5ea4b8(0x1c6)](_0x155a7c,_0x495be7){const _0x2a92e7=_0x5ea4b8;return this[_0x2a92e7(0x1b5)][_0x2a92e7(0x1b1)](t[_0x2a92e7(0x1cf)])[_0x2a92e7(0x1ba)](e[_0x2a92e7(0x1c0)]['id'],{'unitId':this['id'],'settings':_0x155a7c,'sectionId':_0x495be7});}};n[_0x5ea4b8(0x1b2)]['extend'](r);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x54d71b=_0x48b2;(function(_0x585e98,_0x4687cf){const _0x5d8df5=_0x48b2,_0x4d67d3=_0x585e98();while(!![]){try{const _0x4fb926=-parseInt(_0x5d8df5(0x1f8))/0x1+-parseInt(_0x5d8df5(0x213))/0x2+parseInt(_0x5d8df5(0x219))/0x3*(-parseInt(_0x5d8df5(0x1f5))/0x4)+-parseInt(_0x5d8df5(0x25b))/0x5+-parseInt(_0x5d8df5(0x1dc))/0x6*(parseInt(_0x5d8df5(0x1d6))/0x7)+-parseInt(_0x5d8df5(0x1e5))/0x8+parseInt(_0x5d8df5(0x216))/0x9;if(_0x4fb926===_0x4687cf)break;else _0x4d67d3['push'](_0x4d67d3['shift']());}catch(_0x1c9cb8){_0x4d67d3['push'](_0x4d67d3['shift']());}}}(_0x1905,0xa64b2),Object[_0x54d71b(0x206)](exports,Symbol[_0x54d71b(0x259)],{'value':_0x54d71b(0x242)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function _0x1905(){const _0x313d58=['Tools','pageBottom','DocumentFlavor','set-','doc.command.delete-endnote','sectEnd','noteProperties','getInstance','symbol','unitId','_configService','continuationNotice','registerCommand','noteSettings','Plugin','footers','body','InsertDocumentEndnoteCommand','diffValue','drawingsOrder','continuationSeparator','_config','startNumber','version','validateDocumentStructure','length','Module','delete','lists','1.0.0-rc.0','documentFlavor','ICommandService','eachPage','iterator','UNIVER_DOC','_commandService','UniverInstanceType','UNIVER_DOCS_REFERENCE_PLUGIN','retain','segmentId','CustomRangeType','insertOp','ENDNOTE','InsertDocumentFootnoteCommand','UniverLicensePlugin','deepClone','onStarting','dataStream','includes','toStringTag','settings','5866820TZoJnN','syncExecuteCommand','customRanges','DeleteDocumentEndnoteCommand','doc.command.set-endnote-settings','startIndex','7emvWJS','beneathText','UniverDocsReferencePlugin','eachSect','get','FOOTNOTE','1322418QXxqOQ','DeleteDocumentFootnoteCommand','getUnit','getSnapshot','TextX','drawings','TRADITIONAL','noteId','customMark','3586344nLmOWJ','removeOp','JSONX','pluginName','doc.command.delete-footnote','documentStyle','function','insert-','doc.command.set-footnote-settings','isNoop','createSectionId','DependentOn','IUniverInstanceService','findIndex','insert','suppressEndnotes','12ogmeRy','generateRandomId','validateDocBodyStructure','1073678qZduXn','CommandType','string','editOp','sectionId','find','decorate','getOwnPropertyDescriptor','default','footnote','type','createParagraphId','COMMAND','object','defineProperty','packageName','endnote','compose','headers','Injector','keys','docEnd','call','disposeWithMe','delete-','serialize','@univerjs-pro/docs-reference','225476MzZJif','separator','restart','39793329DGDhVZ','merge','doc.command.insert-footnote','711867rKRQcj','RichTextEditingMutation','replaceOp','notes','sectionBreaks','UniverDocsPlugin','constructor','SetDocumentFootnoteSettingsCommand','continuous','boolean','numberFormat','position','columnCount','rangeType','referenceTextStyle'];_0x1905=function(){return _0x313d58;};return _0x1905();}function r(_0x4bd8b3,_0x4d55ee,_0x1beb67){const _0x511016=_0x54d71b;if(_0x4bd8b3['position']!=null&&!(_0x4d55ee===_0x511016(0x201)?[_0x511016(0x229),_0x511016(0x1d7)]:[_0x511016(0x20d),_0x511016(0x22d)])['includes'](_0x4bd8b3[_0x511016(0x224)])||_0x4bd8b3[_0x511016(0x215)]!=null&&!(_0x4d55ee===_0x511016(0x201)?[_0x511016(0x221),_0x511016(0x1d9),_0x511016(0x248)]:[_0x511016(0x221),_0x511016(0x1d9)])[_0x511016(0x258)](_0x4bd8b3['restart'])||_0x4bd8b3[_0x511016(0x23e)]!=null&&(!Number['isInteger'](_0x4bd8b3[_0x511016(0x23e)])||_0x4bd8b3['startNumber']<0x1)||_0x511016(0x225)in _0x4bd8b3&&_0x4bd8b3[_0x511016(0x225)]!=null&&(_0x4d55ee!==_0x511016(0x201)||!Number['isInteger'](_0x4bd8b3[_0x511016(0x225)])||_0x4bd8b3[_0x511016(0x225)]<0x0||_0x4bd8b3['columnCount']>0x4)||_0x4bd8b3[_0x511016(0x223)]!=null&&(typeof _0x4bd8b3['numberFormat']!=_0x511016(0x1fa)||_0x4bd8b3['numberFormat']['length']===0x0))return!0x1;for(let _0x5adb79 of[_0x4bd8b3[_0x511016(0x214)],_0x4bd8b3[_0x511016(0x23c)],_0x4bd8b3[_0x511016(0x233)]])if(_0x5adb79!=null&&(_0x1beb67!=null||(0x0,e[_0x511016(0x1f7)])(_0x5adb79)[_0x511016(0x241)]>0x0))return!0x1;return!0x0;}function i(_0xa159ef,_0x1b5c4e,_0x3e6293){const _0x5df9c0=_0x54d71b;var _0x53f394,_0x2072d9;if(_0x1b5c4e[_0x5df9c0(0x25a)]!=null&&!r(_0x1b5c4e[_0x5df9c0(0x25a)],_0x3e6293,_0x1b5c4e[_0x5df9c0(0x1fc)]))return!0x1;let _0xc94924=((_0x53f394=_0xa159ef[_0x5df9c0(0x238)])==null||(_0x53f394=_0x53f394[_0x5df9c0(0x21d)])==null?void 0x0:_0x53f394[_0x5df9c0(0x1f2)](_0x85e6b9=>_0x85e6b9[_0x5df9c0(0x1fc)]===_0x1b5c4e[_0x5df9c0(0x1fc)]))??-0x1;if(_0x1b5c4e[_0x5df9c0(0x1fc)]!=null&&_0xc94924<0x0)return!0x1;let _0x29a63a=_0x1b5c4e['sectionId']==null?_0xa159ef[_0x5df9c0(0x235)]:(_0x2072d9=_0xa159ef[_0x5df9c0(0x238)])==null||(_0x2072d9=_0x2072d9[_0x5df9c0(0x21d)])==null?void 0x0:_0x2072d9[_0xc94924][_0x5df9c0(0x22e)],_0x3d34fd=_0x1b5c4e[_0x5df9c0(0x25a)]==null?void 0x0:e[_0x5df9c0(0x228)][_0x5df9c0(0x255)](_0x1b5c4e[_0x5df9c0(0x25a)]),_0x27c365=_0x1b5c4e[_0x5df9c0(0x1fc)]==null?['noteSettings']:['body',_0x5df9c0(0x21d),_0xc94924,_0x5df9c0(0x22e)],_0x5442e4=e[_0x5df9c0(0x1e7)][_0x5df9c0(0x22f)](),_0x4dca32=null;if(e[_0x5df9c0(0x228)][_0x5df9c0(0x23a)](_0x29a63a==null?void 0x0:_0x29a63a[_0x3e6293],_0x3d34fd)||(_0x4dca32=_0x29a63a==null?_0x5442e4[_0x5df9c0(0x251)](_0x27c365,{[_0x3e6293]:_0x3d34fd}):_0x1b5c4e[_0x5df9c0(0x1fc)]!=null&&_0x3d34fd==null&&Object[_0x5df9c0(0x20c)](_0x29a63a)['every'](_0x2e87b3=>_0x2e87b3===_0x3e6293)?_0x5442e4[_0x5df9c0(0x1e6)](_0x27c365,_0x29a63a):_0x5442e4['replaceOp']([..._0x27c365,_0x3e6293],_0x29a63a[_0x3e6293],_0x3d34fd)),_0x1b5c4e[_0x5df9c0(0x1f4)]!=null){var _0xdb834e;if(_0x3e6293!==_0x5df9c0(0x208)||_0x1b5c4e[_0x5df9c0(0x1fc)]==null||typeof _0x1b5c4e[_0x5df9c0(0x1f4)]!=_0x5df9c0(0x222))return!0x1;let _0x4ff814=(_0xdb834e=_0xa159ef[_0x5df9c0(0x238)])==null||(_0xdb834e=_0xdb834e[_0x5df9c0(0x21d)])==null?void 0x0:_0xdb834e[_0xc94924]['suppressEndnotes'];_0x4ff814!==_0x1b5c4e['suppressEndnotes']&&(_0x4dca32=e[_0x5df9c0(0x1e7)][_0x5df9c0(0x209)](_0x4dca32,_0x5442e4[_0x5df9c0(0x21b)](['body',_0x5df9c0(0x21d),_0xc94924,_0x5df9c0(0x1f4)],_0x4ff814,_0x1b5c4e[_0x5df9c0(0x1f4)])));}return _0x4dca32;}function a(_0x146452,_0x3d07f1,_0x4993a5){const _0x3430b5=_0x54d71b;if(!_0x3d07f1)return!0x1;let _0x6d2fa1=_0x146452[_0x3430b5(0x1da)](e[_0x3430b5(0x1f1)])['getUnit'](_0x3d07f1['unitId'],e[_0x3430b5(0x24c)][_0x3430b5(0x24a)]),_0x1fc52f=_0x6d2fa1==null?void 0x0:_0x6d2fa1[_0x3430b5(0x1df)]();if(!_0x1fc52f||_0x1fc52f[_0x3430b5(0x1ea)]['documentFlavor']!==e[_0x3430b5(0x22a)][_0x3430b5(0x1e2)])return!0x1;let _0x5092a5=i(_0x1fc52f,_0x3d07f1,_0x4993a5);return _0x5092a5===!0x1||e[_0x3430b5(0x1e7)][_0x3430b5(0x1ee)](_0x5092a5)?!0x1:!!_0x146452['get'](e[_0x3430b5(0x247)])[_0x3430b5(0x25c)](t[_0x3430b5(0x21a)]['id'],{'unitId':_0x3d07f1['unitId'],'segmentId':'','historyAction':_0x3430b5(0x22b)+_0x4993a5+'-settings','actions':_0x5092a5,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x54d71b(0x1ed),'type':e[_0x54d71b(0x1f9)]['COMMAND'],'handler':(_0x4f73f7,_0x1dfafa)=>a(_0x4f73f7,_0x1dfafa,'footnote')},s={'id':_0x54d71b(0x25f),'type':e[_0x54d71b(0x1f9)][_0x54d71b(0x204)],'handler':(_0x1bef01,_0x4ad098)=>a(_0x1bef01,_0x4ad098,_0x54d71b(0x208))};function c(_0x31e829,_0x3a15b4){const _0x13fbae=_0x54d71b;return(_0x31e829==null?void 0x0:_0x31e829[_0x13fbae(0x1ea)]['documentFlavor'])===e[_0x13fbae(0x22a)][_0x13fbae(0x1e2)]&&!!_0x31e829[_0x13fbae(0x238)]&&Number['isInteger'](_0x3a15b4)&&_0x3a15b4>=0x0&&_0x3a15b4<_0x31e829[_0x13fbae(0x238)][_0x13fbae(0x257)][_0x13fbae(0x241)]-0x1;}function l(_0x25e33a,_0x342d7c,_0x13d8ef){const _0x13e095=_0x54d71b;var _0x244fcf,_0x42be00;if(_0x342d7c['settings']===void 0x0&&_0x342d7c[_0x13e095(0x1f4)]===void 0x0)return null;let _0x584d43=_0x342d7c[_0x13e095(0x1fc)]==null?(_0x244fcf=_0x25e33a[_0x13e095(0x235)])==null?void 0x0:_0x244fcf[_0x13d8ef]:(_0x42be00=_0x25e33a[_0x13e095(0x238)])==null||(_0x42be00=_0x42be00['sectionBreaks'])==null||(_0x42be00=_0x42be00[_0x13e095(0x1fd)](_0x2a152f=>_0x2a152f[_0x13e095(0x1fc)]===_0x342d7c[_0x13e095(0x1fc)]))==null||(_0x42be00=_0x42be00[_0x13e095(0x22e)])==null?void 0x0:_0x42be00[_0x13d8ef];return i(_0x25e33a,{'settings':_0x342d7c['settings']===void 0x0?_0x584d43??null:_0x342d7c['settings'],'sectionId':_0x342d7c[_0x13e095(0x1fc)],'suppressEndnotes':_0x342d7c['suppressEndnotes']},_0x13d8ef);}function u(_0xa69e43,_0x529b53,_0x5dd353){const _0x15982f=_0x54d71b;var _0x239dca,_0x265cc9,_0x4a2a5a;if(!_0x529b53||_0x529b53[_0x15982f(0x24f)])return!0x1;let _0x40de51=_0xa69e43[_0x15982f(0x1da)](e[_0x15982f(0x1f1)])[_0x15982f(0x1de)](_0x529b53['unitId'],e[_0x15982f(0x24c)][_0x15982f(0x24a)]),_0xe20224=_0x40de51==null?void 0x0:_0x40de51['getSnapshot'](),{offset:_0x36bcac}=_0x529b53;if(!c(_0xe20224,_0x36bcac))return!0x1;let _0x1a788e=l(_0xe20224,_0x529b53,_0x5dd353);if(_0x1a788e===!0x1)return!0x1;let _0x472199=_0x529b53['noteId']??(0x0,e[_0x15982f(0x1f6)])(0xc);if((_0x239dca=_0xe20224[_0x15982f(0x21c)])!=null&&_0x239dca[_0x472199]||(_0x265cc9=_0xe20224[_0x15982f(0x20a)])!=null&&_0x265cc9[_0x472199]||(_0x4a2a5a=_0xe20224[_0x15982f(0x237)])!=null&&_0x4a2a5a[_0x472199])return!0x1;let _0x10ca22=e[_0x15982f(0x228)]['deepClone']({'type':_0x5dd353,'noteId':_0x472199,'body':_0x529b53[_0x15982f(0x238)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e[_0x15982f(0x203)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e[_0x15982f(0x1ef)])(new Set()),'startIndex':0x1}]},'customMark':_0x529b53[_0x15982f(0x1e4)],'referenceTextStyle':_0x529b53[_0x15982f(0x227)],'tableSource':_0x529b53['tableSource'],'drawings':_0x529b53[_0x15982f(0x1e1)],'drawingsOrder':_0x529b53[_0x15982f(0x23b)],'lists':_0x529b53[_0x15982f(0x244)]});if((0x0,e[_0x15982f(0x240)])({'notes':{[_0x472199]:_0x10ca22}})[_0x15982f(0x241)]>0x0)return!0x1;let _0x1df3ed=new e[(_0x15982f(0x1e0))]();_0x36bcac>0x0&&_0x1df3ed[_0x15982f(0x24e)](_0x36bcac),_0x1df3ed[_0x15982f(0x1f3)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x5dd353===_0x15982f(0x201)?e[_0x15982f(0x250)][_0x15982f(0x1db)]:e[_0x15982f(0x250)][_0x15982f(0x252)],'rangeId':(0x0,e[_0x15982f(0x1f6)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x472199}}]});let _0x5059bf=e[_0x15982f(0x1e7)][_0x15982f(0x22f)](),_0x34a05d=_0xe20224[_0x15982f(0x21c)]==null?_0x5059bf[_0x15982f(0x251)]([_0x15982f(0x21c)],{[_0x472199]:_0x10ca22}):_0x5059bf[_0x15982f(0x251)]([_0x15982f(0x21c),_0x472199],_0x10ca22);return!!_0xa69e43[_0x15982f(0x1da)](e[_0x15982f(0x247)])[_0x15982f(0x25c)](t['RichTextEditingMutation']['id'],{'unitId':_0x529b53[_0x15982f(0x231)],'segmentId':'','historyAction':_0x15982f(0x1ec)+_0x5dd353,'actions':e[_0x15982f(0x1e7)][_0x15982f(0x209)](e[_0x15982f(0x1e7)][_0x15982f(0x209)](_0x1a788e,_0x34a05d),_0x5059bf[_0x15982f(0x1fb)](_0x1df3ed[_0x15982f(0x211)](),[_0x15982f(0x238)])),'textRanges':[{'segmentId':_0x472199,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x374593,_0x518c95,_0x31d929){const _0x34d382=_0x54d71b;var _0x52f748,_0x13762d;if(!_0x518c95)return!0x1;let _0x33e302=_0x374593[_0x34d382(0x1da)](e[_0x34d382(0x1f1)])[_0x34d382(0x1de)](_0x518c95[_0x34d382(0x231)],e['UniverInstanceType']['UNIVER_DOC']),_0x3f2ec8=_0x33e302==null?void 0x0:_0x33e302[_0x34d382(0x1df)](),_0x89bead=_0x3f2ec8==null||(_0x52f748=_0x3f2ec8[_0x34d382(0x21c)])==null?void 0x0:_0x52f748[_0x518c95[_0x34d382(0x1e3)]],_0x36de76=_0x3f2ec8==null||(_0x13762d=_0x3f2ec8[_0x34d382(0x238)])==null||(_0x13762d=_0x13762d[_0x34d382(0x25d)])==null?void 0x0:_0x13762d[_0x34d382(0x1fd)](_0x38b739=>{const _0x3d44b6=_0x34d382;var _0x558844;return(_0x38b739[_0x3d44b6(0x226)]===e['CustomRangeType']['FOOTNOTE']||_0x38b739[_0x3d44b6(0x226)]===e[_0x3d44b6(0x250)]['ENDNOTE'])&&((_0x558844=_0x38b739['properties'])==null?void 0x0:_0x558844['noteId'])===_0x518c95[_0x3d44b6(0x1e3)];});if(!_0x3f2ec8||_0x3f2ec8[_0x34d382(0x1ea)][_0x34d382(0x246)]!==e[_0x34d382(0x22a)][_0x34d382(0x1e2)]||!_0x89bead||_0x89bead['type']!==_0x31d929||!_0x36de76)return!0x1;let _0x1170d2=new e[(_0x34d382(0x1e0))]();_0x36de76[_0x34d382(0x1d5)]>0x0&&_0x1170d2['retain'](_0x36de76[_0x34d382(0x1d5)]),_0x1170d2[_0x34d382(0x243)](0x1);let _0xba59f=e[_0x34d382(0x1e7)][_0x34d382(0x22f)]();return!!_0x374593[_0x34d382(0x1da)](e['ICommandService'])[_0x34d382(0x25c)](t[_0x34d382(0x21a)]['id'],{'unitId':_0x518c95[_0x34d382(0x231)],'segmentId':'','historyAction':_0x34d382(0x210)+_0x31d929,'actions':e['JSONX']['compose'](_0xba59f['editOp'](_0x1170d2[_0x34d382(0x211)](),[_0x34d382(0x238)]),_0xba59f['removeOp']([_0x34d382(0x21c),_0x518c95[_0x34d382(0x1e3)]],_0x89bead)),'textRanges':[{'startOffset':_0x36de76['startIndex'],'endOffset':_0x36de76[_0x34d382(0x1d5)],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':_0x54d71b(0x218),'type':e['CommandType'][_0x54d71b(0x204)],'handler':(_0x5d4dd4,_0x529ea4)=>u(_0x5d4dd4,_0x529ea4,_0x54d71b(0x201))},p={'id':_0x54d71b(0x1e9),'type':e[_0x54d71b(0x1f9)][_0x54d71b(0x204)],'handler':(_0x1eee13,_0x24891d)=>d(_0x1eee13,_0x24891d,_0x54d71b(0x201))},m={'id':'doc.command.insert-endnote','type':e[_0x54d71b(0x1f9)][_0x54d71b(0x204)],'handler':(_0x466985,_0x8fd62f)=>u(_0x466985,_0x8fd62f,_0x54d71b(0x208))},h={'id':_0x54d71b(0x22c),'type':e[_0x54d71b(0x1f9)]['COMMAND'],'handler':(_0x197a44,_0x1832ae)=>d(_0x197a44,_0x1832ae,_0x54d71b(0x208))};var g=_0x54d71b(0x212),_=_0x54d71b(0x245);const v={};function y(_0x3682a2,_0x409e35){return function(_0x25b60c,_0x4701bf){_0x409e35(_0x25b60c,_0x4701bf,_0x3682a2);};}function b(_0x3020e6,_0x3d5976,_0x41d6d6,_0x5c12e8){const _0x5cb173=_0x54d71b;var _0x3de4cf=arguments['length'],_0x54870e=_0x3de4cf<0x3?_0x3d5976:_0x5c12e8===null?_0x5c12e8=Object[_0x5cb173(0x1ff)](_0x3d5976,_0x41d6d6):_0x5c12e8,_0x4e0114;if(typeof Reflect==_0x5cb173(0x205)&&typeof Reflect['decorate']==_0x5cb173(0x1eb))_0x54870e=Reflect[_0x5cb173(0x1fe)](_0x3020e6,_0x3d5976,_0x41d6d6,_0x5c12e8);else{for(var _0x5622b3=_0x3020e6[_0x5cb173(0x241)]-0x1;_0x5622b3>=0x0;_0x5622b3--)(_0x4e0114=_0x3020e6[_0x5622b3])&&(_0x54870e=(_0x3de4cf<0x3?_0x4e0114(_0x54870e):_0x3de4cf>0x3?_0x4e0114(_0x3d5976,_0x41d6d6,_0x54870e):_0x4e0114(_0x3d5976,_0x41d6d6))||_0x54870e);}return _0x3de4cf>0x3&&_0x54870e&&Object['defineProperty'](_0x3d5976,_0x41d6d6,_0x54870e),_0x54870e;}function x(_0x4ea883){'@babel/helpers - typeof';const _0x5731fd=_0x54d71b;return x=typeof Symbol==_0x5731fd(0x1eb)&&typeof Symbol[_0x5731fd(0x249)]=='symbol'?function(_0x59f738){return typeof _0x59f738;}:function(_0x251919){const _0x49fdcc=_0x5731fd;return _0x251919&&typeof Symbol=='function'&&_0x251919[_0x49fdcc(0x21f)]===Symbol&&_0x251919!==Symbol['prototype']?_0x49fdcc(0x230):typeof _0x251919;},x(_0x4ea883);}function _0x48b2(_0x4f72b0,_0x1aa4f7){_0x4f72b0=_0x4f72b0-0x1d5;const _0x19057f=_0x1905();let _0x48b267=_0x19057f[_0x4f72b0];return _0x48b267;}function S(_0x5e142f,_0x42e669){const _0x3b87f7=_0x54d71b;if(x(_0x5e142f)!=_0x3b87f7(0x205)||!_0x5e142f)return _0x5e142f;var _0x31aad8=_0x5e142f[Symbol['toPrimitive']];if(_0x31aad8!==void 0x0){var _0x14b4ce=_0x31aad8[_0x3b87f7(0x20e)](_0x5e142f,_0x42e669||_0x3b87f7(0x200));if(x(_0x14b4ce)!=_0x3b87f7(0x205))return _0x14b4ce;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x42e669===_0x3b87f7(0x1fa)?String:Number)(_0x5e142f);}function C(_0x1cfee9){const _0x5ccedf=_0x54d71b;var _0x57cbd4=S(_0x1cfee9,_0x5ccedf(0x1fa));return x(_0x57cbd4)==_0x5ccedf(0x230)?_0x57cbd4:_0x57cbd4+'';}function w(_0x39b806,_0x239ad8,_0x4994ce){const _0x477898=_0x54d71b;return(_0x239ad8=C(_0x239ad8))in _0x39b806?Object[_0x477898(0x206)](_0x39b806,_0x239ad8,{'value':_0x4994ce,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39b806[_0x239ad8]=_0x4994ce,_0x39b806;}let T=class extends e[_0x54d71b(0x236)]{constructor(_0x572d52=v,_0x142013,_0x3b6762,_0x45f9e2){const _0xe177be=_0x54d71b;super(),this['_config']=_0x572d52,this['_injector']=_0x142013,this[_0xe177be(0x232)]=_0x3b6762,this[_0xe177be(0x24b)]=_0x45f9e2;let {..._0x2e60a4}=(0x0,e[_0xe177be(0x217)])({},v,this[_0xe177be(0x23d)]);this[_0xe177be(0x232)]['setConfig']('docs-reference.config',_0x2e60a4);}[_0x54d71b(0x256)](){const _0x403c5e=_0x54d71b;[f,p,o,m,h,s]['forEach'](_0x2d0f76=>this[_0x403c5e(0x20f)](this['_commandService'][_0x403c5e(0x234)](_0x2d0f76)));}};w(T,_0x54d71b(0x1e8),_0x54d71b(0x24d)),w(T,_0x54d71b(0x207),g),w(T,_0x54d71b(0x23f),_),w(T,_0x54d71b(0x202),e['UniverInstanceType'][_0x54d71b(0x24a)]),T=b([(0x0,e[_0x54d71b(0x1f0)])(n[_0x54d71b(0x254)],t[_0x54d71b(0x21e)]),y(0x1,(0x0,e['Inject'])(e[_0x54d71b(0x20b)])),y(0x2,e['IConfigService']),y(0x3,e[_0x54d71b(0x247)])],T),exports[_0x54d71b(0x25e)]=h,exports[_0x54d71b(0x1dd)]=p,exports[_0x54d71b(0x239)]=m,exports[_0x54d71b(0x253)]=f,exports['SetDocumentEndnoteSettingsCommand']=s,exports[_0x54d71b(0x220)]=o,Object['defineProperty'](exports,_0x54d71b(0x1d8),{'enumerable':!0x0,'get':function(){return T;}});
|
|
1
|
+
const _0x189c7a=_0x5cf5;(function(_0x8c0aa4,_0xe86b33){const _0x214f6c=_0x5cf5,_0x4eacf9=_0x8c0aa4();while(!![]){try{const _0x260d3b=-parseInt(_0x214f6c(0xfc))/0x1+parseInt(_0x214f6c(0xb3))/0x2*(-parseInt(_0x214f6c(0xc4))/0x3)+parseInt(_0x214f6c(0xc6))/0x4+parseInt(_0x214f6c(0xf7))/0x5+-parseInt(_0x214f6c(0xca))/0x6+parseInt(_0x214f6c(0x10a))/0x7*(parseInt(_0x214f6c(0x9b))/0x8)+-parseInt(_0x214f6c(0x10b))/0x9*(-parseInt(_0x214f6c(0xe4))/0xa);if(_0x260d3b===_0xe86b33)break;else _0x4eacf9['push'](_0x4eacf9['shift']());}catch(_0x10224c){_0x4eacf9['push'](_0x4eacf9['shift']());}}}(_0xb524,0xd19ce),Object['defineProperty'](exports,Symbol[_0x189c7a(0xa6)],{'value':_0x189c7a(0xc8)}));let e=require('@univerjs/core'),t=require('@univerjs/docs'),n=require('@univerjs-pro/license');function r(_0x26d5a4,_0x5472ac,_0xadc989){const _0x4c3ab0=_0x189c7a;if(_0x26d5a4[_0x4c3ab0(0xe0)]!=null&&!(_0x5472ac==='footnote'?['pageBottom',_0x4c3ab0(0xce)]:[_0x4c3ab0(0xeb),_0x4c3ab0(0xd4)])['includes'](_0x26d5a4[_0x4c3ab0(0xe0)])||_0x26d5a4[_0x4c3ab0(0xfa)]!=null&&!(_0x5472ac===_0x4c3ab0(0xa8)?[_0x4c3ab0(0x99),_0x4c3ab0(0xe5),'eachPage']:[_0x4c3ab0(0x99),_0x4c3ab0(0xe5)])['includes'](_0x26d5a4['restart'])||_0x26d5a4[_0x4c3ab0(0xfd)]!=null&&(!Number[_0x4c3ab0(0xdf)](_0x26d5a4['startNumber'])||_0x26d5a4['startNumber']<0x1)||_0x4c3ab0(0xe1)in _0x26d5a4&&_0x26d5a4['columnCount']!=null&&(_0x5472ac!=='footnote'||!Number[_0x4c3ab0(0xdf)](_0x26d5a4[_0x4c3ab0(0xe1)])||_0x26d5a4[_0x4c3ab0(0xe1)]<0x0||_0x26d5a4[_0x4c3ab0(0xe1)]>0x4)||_0x26d5a4[_0x4c3ab0(0xe8)]!=null&&(typeof _0x26d5a4['numberFormat']!=_0x4c3ab0(0x110)||_0x26d5a4[_0x4c3ab0(0xe8)][_0x4c3ab0(0xa5)]===0x0))return!0x1;for(let _0x3a50cc of[_0x26d5a4[_0x4c3ab0(0xc3)],_0x26d5a4['continuationSeparator'],_0x26d5a4[_0x4c3ab0(0x105)]])if(_0x3a50cc!=null&&(_0xadc989!=null||(0x0,e['validateDocBodyStructure'])(_0x3a50cc)['length']>0x0))return!0x1;return!0x0;}function _0x5cf5(_0x20d275,_0x312a5b){_0x20d275=_0x20d275-0x92;const _0xb52451=_0xb524();let _0x5cf5ee=_0xb52451[_0x20d275];return _0x5cf5ee;}function i(_0x374a12,_0x228ec3,_0x357cfc){const _0x5f169d=_0x189c7a;var _0x43f319,_0x3d2328;if(_0x228ec3[_0x5f169d(0xc1)]!=null&&!r(_0x228ec3[_0x5f169d(0xc1)],_0x357cfc,_0x228ec3[_0x5f169d(0x96)]))return!0x1;let _0x45e4a4=((_0x43f319=_0x374a12[_0x5f169d(0xdb)])==null||(_0x43f319=_0x43f319['sectionBreaks'])==null?void 0x0:_0x43f319[_0x5f169d(0xaa)](_0x41d232=>_0x41d232[_0x5f169d(0x96)]===_0x228ec3[_0x5f169d(0x96)]))??-0x1;if(_0x228ec3['sectionId']!=null&&_0x45e4a4<0x0)return!0x1;let _0x77a118=_0x228ec3[_0x5f169d(0x96)]==null?_0x374a12['noteSettings']:(_0x3d2328=_0x374a12['body'])==null||(_0x3d2328=_0x3d2328[_0x5f169d(0xae)])==null?void 0x0:_0x3d2328[_0x45e4a4]['noteProperties'],_0x55b770=_0x228ec3['settings']==null?void 0x0:e['Tools']['deepClone'](_0x228ec3[_0x5f169d(0xc1)]),_0x65c2cc=_0x228ec3['sectionId']==null?[_0x5f169d(0xbc)]:[_0x5f169d(0xdb),_0x5f169d(0xae),_0x45e4a4,'noteProperties'],_0xbcdef0=e[_0x5f169d(0xc2)][_0x5f169d(0xc5)](),_0x4d368a=null;if(e[_0x5f169d(0xd8)][_0x5f169d(0x111)](_0x77a118==null?void 0x0:_0x77a118[_0x357cfc],_0x55b770)||(_0x4d368a=_0x77a118==null?_0xbcdef0['insertOp'](_0x65c2cc,{[_0x357cfc]:_0x55b770}):_0x228ec3[_0x5f169d(0x96)]!=null&&_0x55b770==null&&Object[_0x5f169d(0xa7)](_0x77a118)[_0x5f169d(0xf8)](_0x116638=>_0x116638===_0x357cfc)?_0xbcdef0[_0x5f169d(0xbb)](_0x65c2cc,_0x77a118):_0xbcdef0[_0x5f169d(0xdc)]([..._0x65c2cc,_0x357cfc],_0x77a118[_0x357cfc],_0x55b770)),_0x228ec3[_0x5f169d(0xd7)]!=null){var _0x4c53af;if(_0x357cfc!==_0x5f169d(0xa9)||_0x228ec3[_0x5f169d(0x96)]==null||typeof _0x228ec3[_0x5f169d(0xd7)]!='boolean')return!0x1;let _0x590b3a=(_0x4c53af=_0x374a12[_0x5f169d(0xdb)])==null||(_0x4c53af=_0x4c53af[_0x5f169d(0xae)])==null?void 0x0:_0x4c53af[_0x45e4a4]['suppressEndnotes'];_0x590b3a!==_0x228ec3[_0x5f169d(0xd7)]&&(_0x4d368a=e[_0x5f169d(0xc2)]['compose'](_0x4d368a,_0xbcdef0[_0x5f169d(0xdc)]([_0x5f169d(0xdb),_0x5f169d(0xae),_0x45e4a4,_0x5f169d(0xd7)],_0x590b3a,_0x228ec3['suppressEndnotes'])));}return _0x4d368a;}function a(_0x287ee5,_0x504dae,_0x3c993f){const _0x4f6cb9=_0x189c7a;if(!_0x504dae)return!0x1;let _0x593e6f=_0x287ee5[_0x4f6cb9(0xcd)](e[_0x4f6cb9(0x10f)])[_0x4f6cb9(0xe9)](_0x504dae['unitId'],e[_0x4f6cb9(0xde)][_0x4f6cb9(0xb2)]),_0x3c955f=_0x593e6f==null?void 0x0:_0x593e6f[_0x4f6cb9(0x10c)]();if(!_0x3c955f||_0x3c955f[_0x4f6cb9(0xad)][_0x4f6cb9(0xb0)]!==e['DocumentFlavor'][_0x4f6cb9(0xb5)])return!0x1;let _0x1b1a1e=i(_0x3c955f,_0x504dae,_0x3c993f);return _0x1b1a1e===!0x1||e[_0x4f6cb9(0xc2)][_0x4f6cb9(0x93)](_0x1b1a1e)?!0x1:!!_0x287ee5['get'](e['ICommandService'])[_0x4f6cb9(0xf3)](t[_0x4f6cb9(0xa1)]['id'],{'unitId':_0x504dae['unitId'],'segmentId':'','historyAction':_0x4f6cb9(0x104)+_0x3c993f+_0x4f6cb9(0x9d),'actions':_0x1b1a1e,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const o={'id':_0x189c7a(0x92),'type':e[_0x189c7a(0xa0)]['COMMAND'],'handler':(_0x697411,_0x5f54cc)=>a(_0x697411,_0x5f54cc,_0x189c7a(0xa8))},s={'id':'doc.command.set-endnote-settings','type':e[_0x189c7a(0xa0)]['COMMAND'],'handler':(_0x7247e5,_0x4130d0)=>a(_0x7247e5,_0x4130d0,_0x189c7a(0xa9))};function c(_0x32bc06,_0x3a256f){const _0x2ac420=_0x189c7a;return(_0x32bc06==null?void 0x0:_0x32bc06[_0x2ac420(0xad)][_0x2ac420(0xb0)])===e[_0x2ac420(0x107)]['TRADITIONAL']&&!!_0x32bc06[_0x2ac420(0xdb)]&&Number[_0x2ac420(0xdf)](_0x3a256f)&&_0x3a256f>=0x0&&_0x3a256f<_0x32bc06[_0x2ac420(0xdb)][_0x2ac420(0xd6)][_0x2ac420(0xa5)]-0x1;}function l(_0x7d13bc,_0x55e9c5,_0x41d324){const _0x25e12e=_0x189c7a;var _0x4001fc,_0x4809a4;if(_0x55e9c5[_0x25e12e(0xc1)]===void 0x0&&_0x55e9c5[_0x25e12e(0xd7)]===void 0x0)return null;let _0x790de0=_0x55e9c5[_0x25e12e(0x96)]==null?(_0x4001fc=_0x7d13bc['noteSettings'])==null?void 0x0:_0x4001fc[_0x41d324]:(_0x4809a4=_0x7d13bc[_0x25e12e(0xdb)])==null||(_0x4809a4=_0x4809a4[_0x25e12e(0xae)])==null||(_0x4809a4=_0x4809a4[_0x25e12e(0x114)](_0x290b22=>_0x290b22[_0x25e12e(0x96)]===_0x55e9c5[_0x25e12e(0x96)]))==null||(_0x4809a4=_0x4809a4[_0x25e12e(0xcb)])==null?void 0x0:_0x4809a4[_0x41d324];return i(_0x7d13bc,{'settings':_0x55e9c5[_0x25e12e(0xc1)]===void 0x0?_0x790de0??null:_0x55e9c5[_0x25e12e(0xc1)],'sectionId':_0x55e9c5[_0x25e12e(0x96)],'suppressEndnotes':_0x55e9c5[_0x25e12e(0xd7)]},_0x41d324);}function u(_0x8fca47,_0x4c5126,_0xc6b06d){const _0x330c51=_0x189c7a;var _0x171c69,_0x895856,_0x464d83;if(!_0x4c5126||_0x4c5126[_0x330c51(0xa4)])return!0x1;let _0x81385a=_0x8fca47[_0x330c51(0xcd)](e[_0x330c51(0x10f)])['getUnit'](_0x4c5126[_0x330c51(0x95)],e[_0x330c51(0xde)][_0x330c51(0xb2)]),_0x2a6a77=_0x81385a==null?void 0x0:_0x81385a['getSnapshot'](),{offset:_0x597030}=_0x4c5126;if(!c(_0x2a6a77,_0x597030))return!0x1;let _0xd97b4=l(_0x2a6a77,_0x4c5126,_0xc6b06d);if(_0xd97b4===!0x1)return!0x1;let _0x2bbff7=_0x4c5126[_0x330c51(0xc9)]??(0x0,e[_0x330c51(0xbe)])(0xc);if((_0x171c69=_0x2a6a77[_0x330c51(0xf9)])!=null&&_0x171c69[_0x2bbff7]||(_0x895856=_0x2a6a77[_0x330c51(0xd2)])!=null&&_0x895856[_0x2bbff7]||(_0x464d83=_0x2a6a77['footers'])!=null&&_0x464d83[_0x2bbff7])return!0x1;let _0x46543f=e[_0x330c51(0xd8)][_0x330c51(0xe6)]({'type':_0xc6b06d,'noteId':_0x2bbff7,'body':_0x4c5126[_0x330c51(0xdb)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,e[_0x330c51(0x10e)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,e['createSectionId'])(new Set()),'startIndex':0x1}]},'customMark':_0x4c5126[_0x330c51(0xb1)],'referenceTextStyle':_0x4c5126[_0x330c51(0x9e)],'tableSource':_0x4c5126[_0x330c51(0xdd)],'drawings':_0x4c5126['drawings'],'drawingsOrder':_0x4c5126[_0x330c51(0xc7)],'lists':_0x4c5126[_0x330c51(0xf4)]});if((0x0,e[_0x330c51(0x112)])({'notes':{[_0x2bbff7]:_0x46543f}})['length']>0x0)return!0x1;let _0x5c099b=new e['TextX']();_0x597030>0x0&&_0x5c099b[_0x330c51(0xd0)](_0x597030),_0x5c099b[_0x330c51(0x101)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0xc6b06d==='footnote'?e[_0x330c51(0xcc)][_0x330c51(0xb4)]:e[_0x330c51(0xcc)]['ENDNOTE'],'rangeId':(0x0,e[_0x330c51(0xbe)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x2bbff7}}]});let _0x170a87=e['JSONX'][_0x330c51(0xc5)](),_0x454bbc=_0x2a6a77['notes']==null?_0x170a87[_0x330c51(0xc0)]([_0x330c51(0xf9)],{[_0x2bbff7]:_0x46543f}):_0x170a87[_0x330c51(0xc0)]([_0x330c51(0xf9),_0x2bbff7],_0x46543f);return!!_0x8fca47[_0x330c51(0xcd)](e[_0x330c51(0xb8)])['syncExecuteCommand'](t[_0x330c51(0xa1)]['id'],{'unitId':_0x4c5126[_0x330c51(0x95)],'segmentId':'','historyAction':_0x330c51(0xe3)+_0xc6b06d,'actions':e[_0x330c51(0xc2)][_0x330c51(0xb9)](e[_0x330c51(0xc2)][_0x330c51(0xb9)](_0xd97b4,_0x454bbc),_0x170a87[_0x330c51(0xd1)](_0x5c099b[_0x330c51(0xfe)](),['body'])),'textRanges':[{'segmentId':_0x2bbff7,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function d(_0x3795f3,_0x1698d9,_0x25659b){const _0x46c869=_0x189c7a;var _0x28d174,_0x194340;if(!_0x1698d9)return!0x1;let _0x2f2428=_0x3795f3[_0x46c869(0xcd)](e[_0x46c869(0x10f)])[_0x46c869(0xe9)](_0x1698d9['unitId'],e[_0x46c869(0xde)]['UNIVER_DOC']),_0x1a0ebc=_0x2f2428==null?void 0x0:_0x2f2428['getSnapshot'](),_0x3b0d17=_0x1a0ebc==null||(_0x28d174=_0x1a0ebc[_0x46c869(0xf9)])==null?void 0x0:_0x28d174[_0x1698d9[_0x46c869(0xc9)]],_0x204da3=_0x1a0ebc==null||(_0x194340=_0x1a0ebc['body'])==null||(_0x194340=_0x194340[_0x46c869(0x98)])==null?void 0x0:_0x194340[_0x46c869(0x114)](_0x4d4a68=>{const _0x404536=_0x46c869;var _0x43315b;return(_0x4d4a68['rangeType']===e[_0x404536(0xcc)][_0x404536(0xb4)]||_0x4d4a68[_0x404536(0xcf)]===e['CustomRangeType'][_0x404536(0x9f)])&&((_0x43315b=_0x4d4a68['properties'])==null?void 0x0:_0x43315b[_0x404536(0xc9)])===_0x1698d9[_0x404536(0xc9)];});if(!_0x1a0ebc||_0x1a0ebc[_0x46c869(0xad)][_0x46c869(0xb0)]!==e[_0x46c869(0x107)][_0x46c869(0xb5)]||!_0x3b0d17||_0x3b0d17[_0x46c869(0x113)]!==_0x25659b||!_0x204da3)return!0x1;let _0x496cad=new e[(_0x46c869(0xef))]();_0x204da3[_0x46c869(0xaf)]>0x0&&_0x496cad['retain'](_0x204da3[_0x46c869(0xaf)]),_0x496cad[_0x46c869(0xbf)](0x1);let _0x153ab7=e[_0x46c869(0xc2)][_0x46c869(0xc5)]();return!!_0x3795f3[_0x46c869(0xcd)](e[_0x46c869(0xb8)])[_0x46c869(0xf3)](t['RichTextEditingMutation']['id'],{'unitId':_0x1698d9['unitId'],'segmentId':'','historyAction':'delete-'+_0x25659b,'actions':e[_0x46c869(0xc2)]['compose'](_0x153ab7[_0x46c869(0xd1)](_0x496cad[_0x46c869(0xfe)](),[_0x46c869(0xdb)]),_0x153ab7[_0x46c869(0xbb)]([_0x46c869(0xf9),_0x1698d9[_0x46c869(0xc9)]],_0x3b0d17)),'textRanges':[{'startOffset':_0x204da3[_0x46c869(0xaf)],'endOffset':_0x204da3[_0x46c869(0xaf)],'collapsed':!0x0}],'debounce':!0x1});}const f={'id':_0x189c7a(0xff),'type':e[_0x189c7a(0xa0)][_0x189c7a(0xac)],'handler':(_0xe1681b,_0x1d1754)=>u(_0xe1681b,_0x1d1754,_0x189c7a(0xa8))},p={'id':'doc.command.delete-footnote','type':e['CommandType'][_0x189c7a(0xac)],'handler':(_0x2a1b04,_0x505497)=>d(_0x2a1b04,_0x505497,'footnote')},m={'id':_0x189c7a(0xf1),'type':e['CommandType'][_0x189c7a(0xac)],'handler':(_0x4444eb,_0x316fa1)=>u(_0x4444eb,_0x316fa1,_0x189c7a(0xa9))},h={'id':'doc.command.delete-endnote','type':e['CommandType']['COMMAND'],'handler':(_0x314bee,_0x51068d)=>d(_0x314bee,_0x51068d,_0x189c7a(0xa9))};var g=_0x189c7a(0xfb),_='1.0.1';const v={};function y(_0x58b4fb,_0x1a572c){return function(_0x1b9e6c,_0x1ecc30){_0x1a572c(_0x1b9e6c,_0x1ecc30,_0x58b4fb);};}function b(_0x2acf69,_0x4c6cc0,_0xb122eb,_0x154f9f){const _0x5b4ba9=_0x189c7a;var _0x3e2b9f=arguments['length'],_0x506135=_0x3e2b9f<0x3?_0x4c6cc0:_0x154f9f===null?_0x154f9f=Object[_0x5b4ba9(0x94)](_0x4c6cc0,_0xb122eb):_0x154f9f,_0x5b24cc;if(typeof Reflect==_0x5b4ba9(0xf2)&&typeof Reflect[_0x5b4ba9(0x106)]==_0x5b4ba9(0xe2))_0x506135=Reflect[_0x5b4ba9(0x106)](_0x2acf69,_0x4c6cc0,_0xb122eb,_0x154f9f);else{for(var _0x308332=_0x2acf69[_0x5b4ba9(0xa5)]-0x1;_0x308332>=0x0;_0x308332--)(_0x5b24cc=_0x2acf69[_0x308332])&&(_0x506135=(_0x3e2b9f<0x3?_0x5b24cc(_0x506135):_0x3e2b9f>0x3?_0x5b24cc(_0x4c6cc0,_0xb122eb,_0x506135):_0x5b24cc(_0x4c6cc0,_0xb122eb))||_0x506135);}return _0x3e2b9f>0x3&&_0x506135&&Object['defineProperty'](_0x4c6cc0,_0xb122eb,_0x506135),_0x506135;}function x(_0x3f8463){'@babel/helpers - typeof';const _0x1c0628=_0x189c7a;return x=typeof Symbol=='function'&&typeof Symbol[_0x1c0628(0xbd)]==_0x1c0628(0xe7)?function(_0x5e6bc7){return typeof _0x5e6bc7;}:function(_0x38bea){const _0x540896=_0x1c0628;return _0x38bea&&typeof Symbol==_0x540896(0xe2)&&_0x38bea[_0x540896(0x109)]===Symbol&&_0x38bea!==Symbol['prototype']?'symbol':typeof _0x38bea;},x(_0x3f8463);}function S(_0x44f8a8,_0x235178){const _0x5a5d7a=_0x189c7a;if(x(_0x44f8a8)!=_0x5a5d7a(0xf2)||!_0x44f8a8)return _0x44f8a8;var _0xba2b08=_0x44f8a8[Symbol[_0x5a5d7a(0xf6)]];if(_0xba2b08!==void 0x0){var _0x1bffb6=_0xba2b08['call'](_0x44f8a8,_0x235178||'default');if(x(_0x1bffb6)!=_0x5a5d7a(0xf2))return _0x1bffb6;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x235178==='string'?String:Number)(_0x44f8a8);}function C(_0x72c1cf){const _0x5cd8cb=_0x189c7a;var _0x4d38fa=S(_0x72c1cf,_0x5cd8cb(0x110));return x(_0x4d38fa)==_0x5cd8cb(0xe7)?_0x4d38fa:_0x4d38fa+'';}function _0xb524(){const _0x188ad5=['ENDNOTE','CommandType','RichTextEditingMutation','IConfigService','_config','segmentId','length','toStringTag','keys','footnote','endnote','findIndex','forEach','COMMAND','documentStyle','sectionBreaks','startIndex','documentFlavor','customMark','UNIVER_DOC','2639738QRxnoQ','FOOTNOTE','TRADITIONAL','pluginName','InsertDocumentFootnoteCommand','ICommandService','compose','InsertDocumentEndnoteCommand','removeOp','noteSettings','iterator','generateRandomId','delete','insertOp','settings','JSONX','separator','3Ooqxfs','getInstance','6707376baFfIi','drawingsOrder','Module','noteId','3466836FitNQE','noteProperties','CustomRangeType','get','beneathText','rangeType','retain','editOp','headers','registerCommand','sectEnd','UniverDocsReferencePlugin','dataStream','suppressEndnotes','Tools','packageName','disposeWithMe','body','replaceOp','tableSource','UniverInstanceType','isInteger','position','columnCount','function','insert-','20iXyYOY','eachSect','deepClone','symbol','numberFormat','getUnit','UniverDocsPlugin','docEnd','docs-reference.config','version','onStarting','TextX','_commandService','doc.command.insert-endnote','object','syncExecuteCommand','lists','UniverLicensePlugin','toPrimitive','3142370AHRNzY','every','notes','restart','@univerjs-pro/docs-reference','1157219xNngOW','startNumber','serialize','doc.command.insert-footnote','merge','insert','defineProperty','Plugin','set-','continuationNotice','decorate','DocumentFlavor','SetDocumentFootnoteSettingsCommand','constructor','1253hhnQVw','871614TiqYea','getSnapshot','SetDocumentEndnoteSettingsCommand','createParagraphId','IUniverInstanceService','string','diffValue','validateDocumentStructure','type','find','doc.command.set-footnote-settings','isNoop','getOwnPropertyDescriptor','unitId','sectionId','UNIVER_DOCS_REFERENCE_PLUGIN','customRanges','continuous','Injector','63216IBTMPi','Inject','-settings','referenceTextStyle'];_0xb524=function(){return _0x188ad5;};return _0xb524();}function w(_0x4ac661,_0x440dca,_0x5e45fb){const _0x46e32a=_0x189c7a;return(_0x440dca=C(_0x440dca))in _0x4ac661?Object[_0x46e32a(0x102)](_0x4ac661,_0x440dca,{'value':_0x5e45fb,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ac661[_0x440dca]=_0x5e45fb,_0x4ac661;}let T=class extends e[_0x189c7a(0x103)]{constructor(_0x4a861f=v,_0x3db2a6,_0x1277ce,_0x4bc25a){const _0x31720e=_0x189c7a;super(),this[_0x31720e(0xa3)]=_0x4a861f,this['_injector']=_0x3db2a6,this['_configService']=_0x1277ce,this['_commandService']=_0x4bc25a;let {..._0x232987}=(0x0,e[_0x31720e(0x100)])({},v,this[_0x31720e(0xa3)]);this['_configService']['setConfig'](_0x31720e(0xec),_0x232987);}[_0x189c7a(0xee)](){const _0x499f95=_0x189c7a;[f,p,o,m,h,s][_0x499f95(0xab)](_0x9a9907=>this[_0x499f95(0xda)](this[_0x499f95(0xf0)][_0x499f95(0xd3)](_0x9a9907)));}};w(T,_0x189c7a(0xb6),_0x189c7a(0x97)),w(T,_0x189c7a(0xd9),g),w(T,_0x189c7a(0xed),_),w(T,_0x189c7a(0x113),e[_0x189c7a(0xde)]['UNIVER_DOC']),T=b([(0x0,e['DependentOn'])(n[_0x189c7a(0xf5)],t[_0x189c7a(0xea)]),y(0x1,(0x0,e[_0x189c7a(0x9c)])(e[_0x189c7a(0x9a)])),y(0x2,e[_0x189c7a(0xa2)]),y(0x3,e[_0x189c7a(0xb8)])],T),exports['DeleteDocumentEndnoteCommand']=h,exports['DeleteDocumentFootnoteCommand']=p,exports[_0x189c7a(0xba)]=m,exports[_0x189c7a(0xb7)]=f,exports[_0x189c7a(0x10d)]=s,exports[_0x189c7a(0x108)]=o,Object[_0x189c7a(0x102)](exports,_0x189c7a(0xd5),{'enumerable':!0x0,'get':function(){return T;}});
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x263322=_0x2d32;(function(_0x5a0e1f,_0x306aee){const _0xcbc016=_0x2d32,_0x2c2627=_0x5a0e1f();while(!![]){try{const _0x44f85d=parseInt(_0xcbc016(0x1e1))/0x1*(-parseInt(_0xcbc016(0x1e0))/0x2)+parseInt(_0xcbc016(0x1e5))/0x3+parseInt(_0xcbc016(0x1c3))/0x4+-parseInt(_0xcbc016(0x1da))/0x5*(parseInt(_0xcbc016(0x1db))/0x6)+parseInt(_0xcbc016(0x1d4))/0x7*(-parseInt(_0xcbc016(0x1dc))/0x8)+parseInt(_0xcbc016(0x1de))/0x9+parseInt(_0xcbc016(0x1bf))/0xa;if(_0x44f85d===_0x306aee)break;else _0x2c2627['push'](_0x2c2627['shift']());}catch(_0x28d6da){_0x2c2627['push'](_0x2c2627['shift']());}}}(_0xf518,0x9f41e));function _0x2d32(_0x48ecec,_0x47d6af){_0x48ecec=_0x48ecec-0x1ba;const _0xf518ec=_0xf518();let _0x2d32ef=_0xf518ec[_0x48ecec];return _0x2d32ef;}import{DeleteDocumentEndnoteCommand as _0x3c2ec0,DeleteDocumentFootnoteCommand as _0x1329e2,InsertDocumentEndnoteCommand as _0x4c5569,InsertDocumentFootnoteCommand as _0x4d59f8,SetDocumentEndnoteSettingsCommand as _0x49823,SetDocumentFootnoteSettingsCommand as _0x2e9c16}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x3640e8,ICommandService as _0x3171c9,Tools as _0x5b7f9e,generateRandomId as _0x4e0992}from'@univerjs/core';import{FDocument as _0x33ffe7}from'@univerjs/docs/facade';var d=class extends _0x33ffe7{[_0x263322(0x1c9)](_0x122038,_0x4db28b={}){const _0xa895db=_0x263322;let _0x24bdde=_0x4e0992(0xc);return this[_0xa895db(0x1d3)]['get'](_0x3171c9)[_0xa895db(0x1ba)](_0x4d59f8['id'],{..._0x4db28b,'unitId':this['id'],'offset':_0x122038,'noteId':_0x24bdde})?_0x24bdde:null;}[_0x263322(0x1bb)](){const _0x29dfcd=_0x263322;var _0x2fdd17;let _0x4a8db3=this[_0x29dfcd(0x1bc)]()[_0x29dfcd(0x1be)]();return(((_0x2fdd17=_0x4a8db3['body'])==null?void 0x0:_0x2fdd17[_0x29dfcd(0x1cd)])??[])[_0x29dfcd(0x1df)](_0x1ac66e=>_0x1ac66e['rangeType']===_0x3640e8[_0x29dfcd(0x1c7)])[_0x29dfcd(0x1c8)]((_0x1519ea,_0x405fe1)=>_0x1519ea[_0x29dfcd(0x1c4)]-_0x405fe1[_0x29dfcd(0x1c4)])[_0x29dfcd(0x1d0)](_0x2dcf53=>{const _0x1a4108=_0x29dfcd;var _0x3e3f0c,_0x4c5e8e;let _0x346e24=(_0x3e3f0c=_0x2dcf53[_0x1a4108(0x1cb)])==null?void 0x0:_0x3e3f0c[_0x1a4108(0x1d9)],_0x9fb73f=typeof _0x346e24==_0x1a4108(0x1d2)?(_0x4c5e8e=_0x4a8db3[_0x1a4108(0x1c2)])==null?void 0x0:_0x4c5e8e[_0x346e24]:void 0x0;return _0x9fb73f?[_0x5b7f9e['deepClone'](_0x9fb73f)]:[];});}['deleteFootnote'](_0x31fb0b){const _0x565544=_0x263322;return this[_0x565544(0x1d3)]['get'](_0x3171c9)[_0x565544(0x1ba)](_0x1329e2['id'],{'unitId':this['id'],'noteId':_0x31fb0b});}['getFootnoteSettings'](_0x26e97d){const _0x40c849=_0x263322;var _0x2d9444,_0x2f0787;let _0x4a9b5c=this['getDocumentDataModel']()[_0x40c849(0x1be)](),_0x3503ef=_0x26e97d==null?(_0x2d9444=_0x4a9b5c[_0x40c849(0x1dd)])==null?void 0x0:_0x2d9444[_0x40c849(0x1d7)]:(_0x2f0787=_0x4a9b5c[_0x40c849(0x1c6)])==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1ca)])==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1c0)](_0x423277=>_0x423277[_0x40c849(0x1c5)]===_0x26e97d))==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1ce)])==null?void 0x0:_0x2f0787[_0x40c849(0x1d7)];return _0x3503ef==null?void 0x0:_0x5b7f9e[_0x40c849(0x1d6)](_0x3503ef);}[_0x263322(0x1d8)](_0x5349b7,_0x51ee48){const _0x1a9e80=_0x263322;return this[_0x1a9e80(0x1d3)][_0x1a9e80(0x1bd)](_0x3171c9)['syncExecuteCommand'](_0x2e9c16['id'],{'unitId':this['id'],'settings':_0x5349b7,'sectionId':_0x51ee48});}['insertEndnote'](_0x3bcdf9,_0x4f3508={}){const _0x1c1e00=_0x263322;let _0x3dbd72=_0x4e0992(0xc);return this[_0x1c1e00(0x1d3)][_0x1c1e00(0x1bd)](_0x3171c9)['syncExecuteCommand'](_0x4c5569['id'],{..._0x4f3508,'unitId':this['id'],'offset':_0x3bcdf9,'noteId':_0x3dbd72})?_0x3dbd72:null;}[_0x263322(0x1e3)](){const _0x1ec1ca=_0x263322;var _0x404c74;let _0x988a2b=this[_0x1ec1ca(0x1bc)]()['getSnapshot']();return(((_0x404c74=_0x988a2b['body'])==null?void 0x0:_0x404c74[_0x1ec1ca(0x1cd)])??[])[_0x1ec1ca(0x1df)](_0x42b763=>_0x42b763[_0x1ec1ca(0x1d1)]===_0x3640e8[_0x1ec1ca(0x1cc)])['sort']((_0x18c162,_0x58c500)=>_0x18c162[_0x1ec1ca(0x1c4)]-_0x58c500[_0x1ec1ca(0x1c4)])[_0x1ec1ca(0x1d0)](_0x2c2e6f=>{const _0x47a754=_0x1ec1ca;var _0x238a9b,_0x35f867;let _0x204d90=(_0x238a9b=_0x2c2e6f[_0x47a754(0x1cb)])==null?void 0x0:_0x238a9b[_0x47a754(0x1d9)],_0x29886e=typeof _0x204d90=='string'?(_0x35f867=_0x988a2b[_0x47a754(0x1c2)])==null?void 0x0:_0x35f867[_0x204d90]:void 0x0;return _0x29886e?[_0x5b7f9e[_0x47a754(0x1d6)](_0x29886e)]:[];});}[_0x263322(0x1c1)](_0x3d539b){const _0xa90fe8=_0x263322;return this[_0xa90fe8(0x1d3)][_0xa90fe8(0x1bd)](_0x3171c9)[_0xa90fe8(0x1ba)](_0x3c2ec0['id'],{'unitId':this['id'],'noteId':_0x3d539b});}[_0x263322(0x1cf)](_0x1a08f7){const _0x1e5a83=_0x263322;var _0x4d55d3,_0x4da4f7;let _0x174490=this[_0x1e5a83(0x1bc)]()['getSnapshot'](),_0xd8fed4=_0x1a08f7==null?(_0x4d55d3=_0x174490[_0x1e5a83(0x1dd)])==null?void 0x0:_0x4d55d3['endnote']:(_0x4da4f7=_0x174490[_0x1e5a83(0x1c6)])==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1ca)])==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1c0)](_0x545a43=>_0x545a43['sectionId']===_0x1a08f7))==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1ce)])==null?void 0x0:_0x4da4f7[_0x1e5a83(0x1e2)];return _0xd8fed4==null?void 0x0:_0x5b7f9e[_0x1e5a83(0x1d6)](_0xd8fed4);}[_0x263322(0x1e4)](_0xac9a9f,_0x2b5a4a){const _0x290054=_0x263322;return this['_injector'][_0x290054(0x1bd)](_0x3171c9)[_0x290054(0x1ba)](_0x49823['id'],{'unitId':this['id'],'settings':_0xac9a9f,'sectionId':_0x2b5a4a});}};function _0xf518(){const _0x1946dc=['extend','deepClone','footnote','setFootnoteSettings','noteId','155YVhGaM','128070FhvdmU','8IxeqTR','noteSettings','8118855jQaKQs','filter','2wJYqhk','820411XtaUWd','endnote','getEndnotes','setEndnoteSettings','802080Vithbv','syncExecuteCommand','getFootnotes','getDocumentDataModel','get','getSnapshot','6941650ytOraT','find','deleteEndnote','notes','3233548BRETRR','startIndex','sectionId','body','FOOTNOTE','sort','insertFootnote','sectionBreaks','properties','ENDNOTE','customRanges','noteProperties','getEndnoteSettings','flatMap','rangeType','string','_injector','3763081yfqUzD'];_0xf518=function(){return _0x1946dc;};return _0xf518();}_0x33ffe7[_0x263322(0x1d5)](d);export{};
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xc30877=_0x49dd;(function(_0x4b43cb,_0x1f723b){const _0x5f195b=_0x49dd,_0x2fd8f3=_0x4b43cb();while(!![]){try{const _0x385b24=parseInt(_0x5f195b(0x109))/0x1+-parseInt(_0x5f195b(0x144))/0x2*(-parseInt(_0x5f195b(0x13a))/0x3)+-parseInt(_0x5f195b(0x160))/0x4*(-parseInt(_0x5f195b(0x12e))/0x5)+parseInt(_0x5f195b(0x123))/0x6+-parseInt(_0x5f195b(0x136))/0x7+parseInt(_0x5f195b(0x126))/0x8*(parseInt(_0x5f195b(0x102))/0x9)+parseInt(_0x5f195b(0x14c))/0xa*(-parseInt(_0x5f195b(0x149))/0xb);if(_0x385b24===_0x1f723b)break;else _0x2fd8f3['push'](_0x2fd8f3['shift']());}catch(_0x368c73){_0x2fd8f3['push'](_0x2fd8f3['shift']());}}}(_0x249d,0xb0ac8));import{CommandType as _0x142f06,CustomRangeType as _0x582f35,DependentOn as _0x15001a,DocumentFlavor as _0x217cf5,ICommandService as _0x2b4e4,IConfigService as _0x1f1bae,IUniverInstanceService as _0xe30e64,Inject as _0x3d8cc,Injector as _0x49b800,JSONX as _0x45928d,Plugin as _0x507d43,TextX as _0x58319d,Tools as _0x31c092,UniverInstanceType as _0x5625e7,createParagraphId as _0x5bc908,createSectionId as _0x39906f,generateRandomId as _0x4d4105,merge as _0xd329bd,validateDocBodyStructure as _0x570a6a,validateDocumentStructure as _0x47a580}from'@univerjs/core';import{RichTextEditingMutation as _0x515ab4,UniverDocsPlugin as _0x461dd7}from'@univerjs/docs';import{UniverLicensePlugin as _0x4f32c6}from'@univerjs-pro/license';function C(_0xeb8fbf,_0x2a60fd,_0x45f649){const _0x36ee06=_0x49dd;if(_0xeb8fbf['position']!=null&&!(_0x2a60fd===_0x36ee06(0x108)?[_0x36ee06(0x15d),_0x36ee06(0x112)]:['docEnd','sectEnd'])[_0x36ee06(0x13f)](_0xeb8fbf['position'])||_0xeb8fbf['restart']!=null&&!(_0x2a60fd===_0x36ee06(0x108)?['continuous',_0x36ee06(0x156),'eachPage']:[_0x36ee06(0x121),'eachSect'])[_0x36ee06(0x13f)](_0xeb8fbf['restart'])||_0xeb8fbf[_0x36ee06(0x146)]!=null&&(!Number['isInteger'](_0xeb8fbf[_0x36ee06(0x146)])||_0xeb8fbf[_0x36ee06(0x146)]<0x1)||_0x36ee06(0x103)in _0xeb8fbf&&_0xeb8fbf['columnCount']!=null&&(_0x2a60fd!==_0x36ee06(0x108)||!Number[_0x36ee06(0x165)](_0xeb8fbf['columnCount'])||_0xeb8fbf['columnCount']<0x0||_0xeb8fbf[_0x36ee06(0x103)]>0x4)||_0xeb8fbf[_0x36ee06(0x148)]!=null&&(typeof _0xeb8fbf[_0x36ee06(0x148)]!=_0x36ee06(0x157)||_0xeb8fbf['numberFormat'][_0x36ee06(0x11a)]===0x0))return!0x1;for(let _0x2397a7 of[_0xeb8fbf[_0x36ee06(0x167)],_0xeb8fbf['continuationSeparator'],_0xeb8fbf[_0x36ee06(0x13c)]])if(_0x2397a7!=null&&(_0x45f649!=null||_0x570a6a(_0x2397a7)[_0x36ee06(0x11a)]>0x0))return!0x1;return!0x0;}function w(_0x40ba13,_0x5a965b,_0x32afd9){const _0xe749ba=_0x49dd;var _0x4521f2,_0x48770c;if(_0x5a965b[_0xe749ba(0x10e)]!=null&&!C(_0x5a965b[_0xe749ba(0x10e)],_0x32afd9,_0x5a965b[_0xe749ba(0x12c)]))return!0x1;let _0x14cdff=((_0x4521f2=_0x40ba13[_0xe749ba(0x13d)])==null||(_0x4521f2=_0x4521f2[_0xe749ba(0x163)])==null?void 0x0:_0x4521f2[_0xe749ba(0x15c)](_0x33acd4=>_0x33acd4[_0xe749ba(0x12c)]===_0x5a965b['sectionId']))??-0x1;if(_0x5a965b[_0xe749ba(0x12c)]!=null&&_0x14cdff<0x0)return!0x1;let _0x2627b0=_0x5a965b[_0xe749ba(0x12c)]==null?_0x40ba13['noteSettings']:(_0x48770c=_0x40ba13[_0xe749ba(0x13d)])==null||(_0x48770c=_0x48770c['sectionBreaks'])==null?void 0x0:_0x48770c[_0x14cdff][_0xe749ba(0x12f)],_0x2b4148=_0x5a965b['settings']==null?void 0x0:_0x31c092['deepClone'](_0x5a965b[_0xe749ba(0x10e)]),_0x439f9e=_0x5a965b[_0xe749ba(0x12c)]==null?[_0xe749ba(0x129)]:[_0xe749ba(0x13d),_0xe749ba(0x163),_0x14cdff,_0xe749ba(0x12f)],_0x19477d=_0x45928d[_0xe749ba(0x115)](),_0xf8e8c5=null;if(_0x31c092['diffValue'](_0x2627b0==null?void 0x0:_0x2627b0[_0x32afd9],_0x2b4148)||(_0xf8e8c5=_0x2627b0==null?_0x19477d[_0xe749ba(0x106)](_0x439f9e,{[_0x32afd9]:_0x2b4148}):_0x5a965b[_0xe749ba(0x12c)]!=null&&_0x2b4148==null&&Object[_0xe749ba(0x13e)](_0x2627b0)['every'](_0x542ac2=>_0x542ac2===_0x32afd9)?_0x19477d[_0xe749ba(0x105)](_0x439f9e,_0x2627b0):_0x19477d[_0xe749ba(0x153)]([..._0x439f9e,_0x32afd9],_0x2627b0[_0x32afd9],_0x2b4148)),_0x5a965b[_0xe749ba(0x101)]!=null){var _0x2415ee;if(_0x32afd9!==_0xe749ba(0x10b)||_0x5a965b[_0xe749ba(0x12c)]==null||typeof _0x5a965b[_0xe749ba(0x101)]!=_0xe749ba(0x122))return!0x1;let _0x45110c=(_0x2415ee=_0x40ba13['body'])==null||(_0x2415ee=_0x2415ee[_0xe749ba(0x163)])==null?void 0x0:_0x2415ee[_0x14cdff][_0xe749ba(0x101)];_0x45110c!==_0x5a965b['suppressEndnotes']&&(_0xf8e8c5=_0x45928d[_0xe749ba(0x110)](_0xf8e8c5,_0x19477d[_0xe749ba(0x153)]([_0xe749ba(0x13d),_0xe749ba(0x163),_0x14cdff,_0xe749ba(0x101)],_0x45110c,_0x5a965b[_0xe749ba(0x101)])));}return _0xf8e8c5;}function T(_0x15ffa1,_0x5a2dc7,_0x345299){const _0x56af73=_0x49dd;if(!_0x5a2dc7)return!0x1;let _0xcaddca=_0x15ffa1[_0x56af73(0x145)](_0xe30e64)[_0x56af73(0x124)](_0x5a2dc7[_0x56af73(0x133)],_0x5625e7[_0x56af73(0x11b)]),_0x332f9f=_0xcaddca==null?void 0x0:_0xcaddca['getSnapshot']();if(!_0x332f9f||_0x332f9f[_0x56af73(0x113)][_0x56af73(0x161)]!==_0x217cf5['TRADITIONAL'])return!0x1;let _0x1b2a8f=w(_0x332f9f,_0x5a2dc7,_0x345299);return _0x1b2a8f===!0x1||_0x45928d[_0x56af73(0x15e)](_0x1b2a8f)?!0x1:!!_0x15ffa1['get'](_0x2b4e4)[_0x56af73(0x117)](_0x515ab4['id'],{'unitId':_0x5a2dc7['unitId'],'segmentId':'','historyAction':'set-'+_0x345299+'-settings','actions':_0x1b2a8f,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0xc30877(0x158),'type':_0x142f06[_0xc30877(0x147)],'handler':(_0xd37ac7,_0x33893f)=>T(_0xd37ac7,_0x33893f,_0xc30877(0x108))},D={'id':'doc.command.set-endnote-settings','type':_0x142f06[_0xc30877(0x147)],'handler':(_0x5aa1f1,_0x440bc9)=>T(_0x5aa1f1,_0x440bc9,'endnote')};function O(_0x2bc780,_0x2d18be){const _0x2249fb=_0xc30877;return(_0x2bc780==null?void 0x0:_0x2bc780['documentStyle'][_0x2249fb(0x161)])===_0x217cf5[_0x2249fb(0x168)]&&!!_0x2bc780[_0x2249fb(0x13d)]&&Number['isInteger'](_0x2d18be)&&_0x2d18be>=0x0&&_0x2d18be<_0x2bc780['body']['dataStream'][_0x2249fb(0x11a)]-0x1;}function _0x249d(){const _0x22631c=['registerCommand','6630386dWlxKM','version','startIndex','pluginName','3NQBLVW','type','continuationNotice','body','keys','includes','iterator','object','retain','toPrimitive','1972914VdVTQy','get','startNumber','COMMAND','numberFormat','11ueaBmD','default','headers','17826070PKbPpJ','find','symbol','prototype','customRanges','serialize','getOwnPropertyDescriptor','replaceOp','segmentId','_configService','eachSect','string','doc.command.set-footnote-settings','editOp','1.0.0-rc.0','disposeWithMe','findIndex','pageBottom','isNoop','lists','3764slAMGI','documentFlavor','forEach','sectionBreaks','delete-','isInteger','noteId','separator','TRADITIONAL','suppressEndnotes','11268WseeXC','columnCount','notes','removeOp','insertOp','onStarting','footnote','359307MZTURX','_config','endnote','doc.command.delete-footnote','function','settings','deepClone','compose','ENDNOTE','beneathText','documentStyle','insert','getInstance','decorate','syncExecuteCommand','delete','footers','length','UNIVER_DOC','FOOTNOTE','doc.command.insert-footnote','_commandService','call','_injector','continuous','boolean','4779030gMLeRQ','getUnit','doc.command.insert-endnote','3568UHfpSY','properties','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','noteSettings','@univerjs-pro/docs-reference','drawings','sectionId','referenceTextStyle','4000SFdeij','noteProperties','rangeType','doc.command.delete-endnote','packageName','unitId','constructor'];_0x249d=function(){return _0x22631c;};return _0x249d();}function k(_0x5ce2d6,_0x437df6,_0x2ad0fc){const _0x2dc322=_0xc30877;var _0x309132,_0x3ea3eb;if(_0x437df6[_0x2dc322(0x10e)]===void 0x0&&_0x437df6[_0x2dc322(0x101)]===void 0x0)return null;let _0x849530=_0x437df6['sectionId']==null?(_0x309132=_0x5ce2d6[_0x2dc322(0x129)])==null?void 0x0:_0x309132[_0x2ad0fc]:(_0x3ea3eb=_0x5ce2d6[_0x2dc322(0x13d)])==null||(_0x3ea3eb=_0x3ea3eb[_0x2dc322(0x163)])==null||(_0x3ea3eb=_0x3ea3eb[_0x2dc322(0x14d)](_0x22caae=>_0x22caae['sectionId']===_0x437df6['sectionId']))==null||(_0x3ea3eb=_0x3ea3eb[_0x2dc322(0x12f)])==null?void 0x0:_0x3ea3eb[_0x2ad0fc];return w(_0x5ce2d6,{'settings':_0x437df6[_0x2dc322(0x10e)]===void 0x0?_0x849530??null:_0x437df6[_0x2dc322(0x10e)],'sectionId':_0x437df6['sectionId'],'suppressEndnotes':_0x437df6[_0x2dc322(0x101)]},_0x2ad0fc);}function A(_0x725072,_0x1c06c5,_0x1069da){const _0x68d5b5=_0xc30877;var _0x2748ed,_0xc4371,_0x345808;if(!_0x1c06c5||_0x1c06c5[_0x68d5b5(0x154)])return!0x1;let _0x3bfb03=_0x725072[_0x68d5b5(0x145)](_0xe30e64)[_0x68d5b5(0x124)](_0x1c06c5['unitId'],_0x5625e7['UNIVER_DOC']),_0x595f1c=_0x3bfb03==null?void 0x0:_0x3bfb03['getSnapshot'](),{offset:_0x32a897}=_0x1c06c5;if(!O(_0x595f1c,_0x32a897))return!0x1;let _0x2c7b9c=k(_0x595f1c,_0x1c06c5,_0x1069da);if(_0x2c7b9c===!0x1)return!0x1;let _0x3d933d=_0x1c06c5[_0x68d5b5(0x166)]??_0x4d4105(0xc);if((_0x2748ed=_0x595f1c[_0x68d5b5(0x104)])!=null&&_0x2748ed[_0x3d933d]||(_0xc4371=_0x595f1c[_0x68d5b5(0x14b)])!=null&&_0xc4371[_0x3d933d]||(_0x345808=_0x595f1c[_0x68d5b5(0x119)])!=null&&_0x345808[_0x3d933d])return!0x1;let _0x285ee8=_0x31c092[_0x68d5b5(0x10f)]({'type':_0x1069da,'noteId':_0x3d933d,'body':_0x1c06c5[_0x68d5b5(0x13d)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x5bc908(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x39906f(new Set()),'startIndex':0x1}]},'customMark':_0x1c06c5['customMark'],'referenceTextStyle':_0x1c06c5[_0x68d5b5(0x12d)],'tableSource':_0x1c06c5['tableSource'],'drawings':_0x1c06c5[_0x68d5b5(0x12b)],'drawingsOrder':_0x1c06c5['drawingsOrder'],'lists':_0x1c06c5[_0x68d5b5(0x15f)]});if(_0x47a580({'notes':{[_0x3d933d]:_0x285ee8}})[_0x68d5b5(0x11a)]>0x0)return!0x1;let _0x4a688e=new _0x58319d();_0x32a897>0x0&&_0x4a688e[_0x68d5b5(0x142)](_0x32a897),_0x4a688e[_0x68d5b5(0x114)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x1069da===_0x68d5b5(0x108)?_0x582f35['FOOTNOTE']:_0x582f35[_0x68d5b5(0x111)],'rangeId':_0x4d4105(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x3d933d}}]});let _0x166eeb=_0x45928d[_0x68d5b5(0x115)](),_0x4942ae=_0x595f1c['notes']==null?_0x166eeb['insertOp'](['notes'],{[_0x3d933d]:_0x285ee8}):_0x166eeb[_0x68d5b5(0x106)]([_0x68d5b5(0x104),_0x3d933d],_0x285ee8);return!!_0x725072[_0x68d5b5(0x145)](_0x2b4e4)['syncExecuteCommand'](_0x515ab4['id'],{'unitId':_0x1c06c5[_0x68d5b5(0x133)],'segmentId':'','historyAction':'insert-'+_0x1069da,'actions':_0x45928d[_0x68d5b5(0x110)](_0x45928d[_0x68d5b5(0x110)](_0x2c7b9c,_0x4942ae),_0x166eeb[_0x68d5b5(0x159)](_0x4a688e[_0x68d5b5(0x151)](),[_0x68d5b5(0x13d)])),'textRanges':[{'segmentId':_0x3d933d,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x202040,_0x2a32d3,_0x1e036b){const _0x4fcbef=_0xc30877;var _0x28108a,_0x482db9;if(!_0x2a32d3)return!0x1;let _0x101704=_0x202040[_0x4fcbef(0x145)](_0xe30e64)['getUnit'](_0x2a32d3[_0x4fcbef(0x133)],_0x5625e7[_0x4fcbef(0x11b)]),_0x5b5e78=_0x101704==null?void 0x0:_0x101704['getSnapshot'](),_0x22deec=_0x5b5e78==null||(_0x28108a=_0x5b5e78['notes'])==null?void 0x0:_0x28108a[_0x2a32d3['noteId']],_0x3206a4=_0x5b5e78==null||(_0x482db9=_0x5b5e78['body'])==null||(_0x482db9=_0x482db9[_0x4fcbef(0x150)])==null?void 0x0:_0x482db9[_0x4fcbef(0x14d)](_0x3e6ea9=>{const _0x577f36=_0x4fcbef;var _0x3843c9;return(_0x3e6ea9[_0x577f36(0x130)]===_0x582f35[_0x577f36(0x11c)]||_0x3e6ea9[_0x577f36(0x130)]===_0x582f35[_0x577f36(0x111)])&&((_0x3843c9=_0x3e6ea9[_0x577f36(0x127)])==null?void 0x0:_0x3843c9[_0x577f36(0x166)])===_0x2a32d3[_0x577f36(0x166)];});if(!_0x5b5e78||_0x5b5e78[_0x4fcbef(0x113)][_0x4fcbef(0x161)]!==_0x217cf5[_0x4fcbef(0x168)]||!_0x22deec||_0x22deec[_0x4fcbef(0x13b)]!==_0x1e036b||!_0x3206a4)return!0x1;let _0x417c04=new _0x58319d();_0x3206a4[_0x4fcbef(0x138)]>0x0&&_0x417c04['retain'](_0x3206a4[_0x4fcbef(0x138)]),_0x417c04[_0x4fcbef(0x118)](0x1);let _0x220a25=_0x45928d[_0x4fcbef(0x115)]();return!!_0x202040['get'](_0x2b4e4)[_0x4fcbef(0x117)](_0x515ab4['id'],{'unitId':_0x2a32d3[_0x4fcbef(0x133)],'segmentId':'','historyAction':_0x4fcbef(0x164)+_0x1e036b,'actions':_0x45928d[_0x4fcbef(0x110)](_0x220a25[_0x4fcbef(0x159)](_0x417c04[_0x4fcbef(0x151)](),['body']),_0x220a25[_0x4fcbef(0x105)](['notes',_0x2a32d3[_0x4fcbef(0x166)]],_0x22deec)),'textRanges':[{'startOffset':_0x3206a4[_0x4fcbef(0x138)],'endOffset':_0x3206a4[_0x4fcbef(0x138)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0xc30877(0x11d),'type':_0x142f06[_0xc30877(0x147)],'handler':(_0x5362bd,_0x260229)=>A(_0x5362bd,_0x260229,'footnote')},N={'id':_0xc30877(0x10c),'type':_0x142f06[_0xc30877(0x147)],'handler':(_0x6df550,_0x1eff2d)=>j(_0x6df550,_0x1eff2d,_0xc30877(0x108))},P={'id':_0xc30877(0x125),'type':_0x142f06[_0xc30877(0x147)],'handler':(_0x40ae0c,_0x2688c8)=>A(_0x40ae0c,_0x2688c8,_0xc30877(0x10b))},F={'id':_0xc30877(0x131),'type':_0x142f06[_0xc30877(0x147)],'handler':(_0x2fb9d0,_0x11ee1c)=>j(_0x2fb9d0,_0x11ee1c,_0xc30877(0x10b))};var I=_0xc30877(0x12a),L=_0xc30877(0x15a);const R={};function z(_0x31094a,_0x15f30c){return function(_0x5d9a75,_0x56ab81){_0x15f30c(_0x5d9a75,_0x56ab81,_0x31094a);};}function B(_0x3294a7,_0x3f8675,_0x1f4499,_0x49b4c7){const _0x4a0839=_0xc30877;var _0x23665a=arguments[_0x4a0839(0x11a)],_0x560d56=_0x23665a<0x3?_0x3f8675:_0x49b4c7===null?_0x49b4c7=Object[_0x4a0839(0x152)](_0x3f8675,_0x1f4499):_0x49b4c7,_0x446d95;if(typeof Reflect==_0x4a0839(0x141)&&typeof Reflect['decorate']=='function')_0x560d56=Reflect[_0x4a0839(0x116)](_0x3294a7,_0x3f8675,_0x1f4499,_0x49b4c7);else{for(var _0x344cb0=_0x3294a7[_0x4a0839(0x11a)]-0x1;_0x344cb0>=0x0;_0x344cb0--)(_0x446d95=_0x3294a7[_0x344cb0])&&(_0x560d56=(_0x23665a<0x3?_0x446d95(_0x560d56):_0x23665a>0x3?_0x446d95(_0x3f8675,_0x1f4499,_0x560d56):_0x446d95(_0x3f8675,_0x1f4499))||_0x560d56);}return _0x23665a>0x3&&_0x560d56&&Object['defineProperty'](_0x3f8675,_0x1f4499,_0x560d56),_0x560d56;}function V(_0x1febfb){'@babel/helpers - typeof';const _0x5609cb=_0xc30877;return V=typeof Symbol==_0x5609cb(0x10d)&&typeof Symbol[_0x5609cb(0x140)]==_0x5609cb(0x14e)?function(_0x4babd2){return typeof _0x4babd2;}:function(_0x5175e5){const _0x351214=_0x5609cb;return _0x5175e5&&typeof Symbol==_0x351214(0x10d)&&_0x5175e5[_0x351214(0x134)]===Symbol&&_0x5175e5!==Symbol[_0x351214(0x14f)]?_0x351214(0x14e):typeof _0x5175e5;},V(_0x1febfb);}function H(_0x49000f,_0x43e191){const _0x2f393c=_0xc30877;if(V(_0x49000f)!='object'||!_0x49000f)return _0x49000f;var _0x5642f4=_0x49000f[Symbol[_0x2f393c(0x143)]];if(_0x5642f4!==void 0x0){var _0xb0c750=_0x5642f4[_0x2f393c(0x11f)](_0x49000f,_0x43e191||_0x2f393c(0x14a));if(V(_0xb0c750)!=_0x2f393c(0x141))return _0xb0c750;throw TypeError(_0x2f393c(0x128));}return(_0x43e191==='string'?String:Number)(_0x49000f);}function U(_0x4ae7cb){const _0x1b44bb=_0xc30877;var _0x4f0375=H(_0x4ae7cb,_0x1b44bb(0x157));return V(_0x4f0375)==_0x1b44bb(0x14e)?_0x4f0375:_0x4f0375+'';}function _0x49dd(_0x46b2b6,_0x417e2f){_0x46b2b6=_0x46b2b6-0x101;const _0x249dc5=_0x249d();let _0x49dd7a=_0x249dc5[_0x46b2b6];return _0x49dd7a;}function W(_0x534f2e,_0x10dfc6,_0x28d218){return(_0x10dfc6=U(_0x10dfc6))in _0x534f2e?Object['defineProperty'](_0x534f2e,_0x10dfc6,{'value':_0x28d218,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x534f2e[_0x10dfc6]=_0x28d218,_0x534f2e;}let G=class extends _0x507d43{constructor(_0xa74c62=R,_0x5889ac,_0x304df5,_0x530d84){const _0x39c576=_0xc30877;super(),this['_config']=_0xa74c62,this[_0x39c576(0x120)]=_0x5889ac,this[_0x39c576(0x155)]=_0x304df5,this[_0x39c576(0x11e)]=_0x530d84;let {..._0x592a61}=_0xd329bd({},R,this[_0x39c576(0x10a)]);this[_0x39c576(0x155)]['setConfig']('docs-reference.config',_0x592a61);}[_0xc30877(0x107)](){const _0x2823ac=_0xc30877;[M,N,E,P,F,D][_0x2823ac(0x162)](_0x4c8518=>this[_0x2823ac(0x15b)](this['_commandService'][_0x2823ac(0x135)](_0x4c8518)));}};W(G,_0xc30877(0x139),'UNIVER_DOCS_REFERENCE_PLUGIN'),W(G,_0xc30877(0x132),I),W(G,_0xc30877(0x137),L),W(G,_0xc30877(0x13b),_0x5625e7[_0xc30877(0x11b)]),G=B([_0x15001a(_0x4f32c6,_0x461dd7),z(0x1,_0x3d8cc(_0x49b800)),z(0x2,_0x1f1bae),z(0x3,_0x2b4e4)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
|
|
1
|
+
const _0x4600df=_0x3539;(function(_0x413eed,_0x5ab849){const _0x341caf=_0x3539,_0x298b0a=_0x413eed();while(!![]){try{const _0x13434b=parseInt(_0x341caf(0x20f))/0x1*(-parseInt(_0x341caf(0x208))/0x2)+-parseInt(_0x341caf(0x1cd))/0x3*(-parseInt(_0x341caf(0x1c5))/0x4)+-parseInt(_0x341caf(0x1f7))/0x5+parseInt(_0x341caf(0x1d9))/0x6*(-parseInt(_0x341caf(0x1c9))/0x7)+parseInt(_0x341caf(0x1f0))/0x8+parseInt(_0x341caf(0x1c2))/0x9*(parseInt(_0x341caf(0x216))/0xa)+parseInt(_0x341caf(0x1ec))/0xb*(parseInt(_0x341caf(0x202))/0xc);if(_0x13434b===_0x5ab849)break;else _0x298b0a['push'](_0x298b0a['shift']());}catch(_0x4ddd19){_0x298b0a['push'](_0x298b0a['shift']());}}}(_0x4763,0x67ea3));import{CommandType as _0x2beccf,CustomRangeType as _0x1f509c,DependentOn as _0x126d9d,DocumentFlavor as _0x25b4a1,ICommandService as _0xbc5180,IConfigService as _0x19a8fd,IUniverInstanceService as _0x28d7f0,Inject as _0x4b5c4b,Injector as _0x38617d,JSONX as _0x4f86a5,Plugin as _0x26c983,TextX as _0x7c13a3,Tools as _0x1ea835,UniverInstanceType as _0x45c27a,createParagraphId as _0x57afb1,createSectionId as _0x4111f5,generateRandomId as _0x31c553,merge as _0x50c30f,validateDocBodyStructure as _0x35465e,validateDocumentStructure as _0x3dd22b}from'@univerjs/core';import{RichTextEditingMutation as _0x2b017e,UniverDocsPlugin as _0x1bad7e}from'@univerjs/docs';import{UniverLicensePlugin as _0x1111a2}from'@univerjs-pro/license';function C(_0x33e3bd,_0x32f7ab,_0x3849bc){const _0x905eb0=_0x3539;if(_0x33e3bd[_0x905eb0(0x1ff)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x20a),_0x905eb0(0x1ae)]:[_0x905eb0(0x21a),_0x905eb0(0x1fd)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ff)])||_0x33e3bd[_0x905eb0(0x1ab)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x1e7),_0x905eb0(0x1f5),_0x905eb0(0x210)]:[_0x905eb0(0x1e7),_0x905eb0(0x1f5)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ab)])||_0x33e3bd[_0x905eb0(0x1cb)]!=null&&(!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1cb)])||_0x33e3bd[_0x905eb0(0x1cb)]<0x1)||_0x905eb0(0x1bc)in _0x33e3bd&&_0x33e3bd[_0x905eb0(0x1bc)]!=null&&(_0x32f7ab!=='footnote'||!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1bc)])||_0x33e3bd[_0x905eb0(0x1bc)]<0x0||_0x33e3bd['columnCount']>0x4)||_0x33e3bd[_0x905eb0(0x218)]!=null&&(typeof _0x33e3bd['numberFormat']!='string'||_0x33e3bd[_0x905eb0(0x218)]['length']===0x0))return!0x1;for(let _0x328c56 of[_0x33e3bd[_0x905eb0(0x1b1)],_0x33e3bd[_0x905eb0(0x1f8)],_0x33e3bd['continuationNotice']])if(_0x328c56!=null&&(_0x3849bc!=null||_0x35465e(_0x328c56)[_0x905eb0(0x1e9)]>0x0))return!0x1;return!0x0;}function w(_0x14e80d,_0x5ba25c,_0x55fdfe){const _0x55ce38=_0x3539;var _0x5b4fa3,_0x1e3646;if(_0x5ba25c[_0x55ce38(0x1ba)]!=null&&!C(_0x5ba25c[_0x55ce38(0x1ba)],_0x55fdfe,_0x5ba25c[_0x55ce38(0x1af)]))return!0x1;let _0x10c278=((_0x5b4fa3=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x5b4fa3=_0x5b4fa3[_0x55ce38(0x1bd)])==null?void 0x0:_0x5b4fa3[_0x55ce38(0x1c6)](_0x119f1e=>_0x119f1e[_0x55ce38(0x1af)]===_0x5ba25c[_0x55ce38(0x1af)]))??-0x1;if(_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x10c278<0x0)return!0x1;let _0x4e55ea=_0x5ba25c[_0x55ce38(0x1af)]==null?_0x14e80d[_0x55ce38(0x1dc)]:(_0x1e3646=_0x14e80d['body'])==null||(_0x1e3646=_0x1e3646[_0x55ce38(0x1bd)])==null?void 0x0:_0x1e3646[_0x10c278]['noteProperties'],_0x5eee19=_0x5ba25c[_0x55ce38(0x1ba)]==null?void 0x0:_0x1ea835['deepClone'](_0x5ba25c['settings']),_0x3e6177=_0x5ba25c[_0x55ce38(0x1af)]==null?['noteSettings']:['body',_0x55ce38(0x1bd),_0x10c278,_0x55ce38(0x1cf)],_0x49ce7a=_0x4f86a5[_0x55ce38(0x1f9)](),_0x37e190=null;if(_0x1ea835['diffValue'](_0x4e55ea==null?void 0x0:_0x4e55ea[_0x55fdfe],_0x5eee19)||(_0x37e190=_0x4e55ea==null?_0x49ce7a[_0x55ce38(0x1d1)](_0x3e6177,{[_0x55fdfe]:_0x5eee19}):_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x5eee19==null&&Object[_0x55ce38(0x215)](_0x4e55ea)[_0x55ce38(0x205)](_0x27fe98=>_0x27fe98===_0x55fdfe)?_0x49ce7a[_0x55ce38(0x1e2)](_0x3e6177,_0x4e55ea):_0x49ce7a[_0x55ce38(0x1e4)]([..._0x3e6177,_0x55fdfe],_0x4e55ea[_0x55fdfe],_0x5eee19)),_0x5ba25c['suppressEndnotes']!=null){var _0x26653;if(_0x55fdfe!==_0x55ce38(0x1f4)||_0x5ba25c['sectionId']==null||typeof _0x5ba25c[_0x55ce38(0x201)]!=_0x55ce38(0x1d4))return!0x1;let _0x7bb256=(_0x26653=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x26653=_0x26653[_0x55ce38(0x1bd)])==null?void 0x0:_0x26653[_0x10c278][_0x55ce38(0x201)];_0x7bb256!==_0x5ba25c['suppressEndnotes']&&(_0x37e190=_0x4f86a5[_0x55ce38(0x1d2)](_0x37e190,_0x49ce7a[_0x55ce38(0x1e4)]([_0x55ce38(0x1b5),'sectionBreaks',_0x10c278,_0x55ce38(0x201)],_0x7bb256,_0x5ba25c[_0x55ce38(0x201)])));}return _0x37e190;}function T(_0x4009fa,_0x165f31,_0x51196c){const _0x1c643e=_0x3539;if(!_0x165f31)return!0x1;let _0x39184d=_0x4009fa[_0x1c643e(0x1fc)](_0x28d7f0)['getUnit'](_0x165f31[_0x1c643e(0x1df)],_0x45c27a[_0x1c643e(0x1c8)]),_0x258926=_0x39184d==null?void 0x0:_0x39184d['getSnapshot']();if(!_0x258926||_0x258926[_0x1c643e(0x1f6)][_0x1c643e(0x1d7)]!==_0x25b4a1[_0x1c643e(0x214)])return!0x1;let _0x1b59cf=w(_0x258926,_0x165f31,_0x51196c);return _0x1b59cf===!0x1||_0x4f86a5[_0x1c643e(0x1ea)](_0x1b59cf)?!0x1:!!_0x4009fa['get'](_0xbc5180)[_0x1c643e(0x1d3)](_0x2b017e['id'],{'unitId':_0x165f31['unitId'],'segmentId':'','historyAction':_0x1c643e(0x212)+_0x51196c+_0x1c643e(0x1b9),'actions':_0x1b59cf,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x510078,_0x44f459)=>T(_0x510078,_0x44f459,'footnote')},D={'id':'doc.command.set-endnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x49e484,_0x10e07f)=>T(_0x49e484,_0x10e07f,'endnote')};function O(_0x3b0436,_0x57ee53){const _0x575243=_0x4600df;return(_0x3b0436==null?void 0x0:_0x3b0436[_0x575243(0x1f6)][_0x575243(0x1d7)])===_0x25b4a1['TRADITIONAL']&&!!_0x3b0436[_0x575243(0x1b5)]&&Number[_0x575243(0x1dd)](_0x57ee53)&&_0x57ee53>=0x0&&_0x57ee53<_0x3b0436[_0x575243(0x1b5)][_0x575243(0x1c7)][_0x575243(0x1e9)]-0x1;}function k(_0x2ec1d8,_0x272edc,_0x55f525){const _0xac4721=_0x4600df;var _0x169563,_0x1c06bd;if(_0x272edc[_0xac4721(0x1ba)]===void 0x0&&_0x272edc['suppressEndnotes']===void 0x0)return null;let _0x3690dc=_0x272edc[_0xac4721(0x1af)]==null?(_0x169563=_0x2ec1d8[_0xac4721(0x1dc)])==null?void 0x0:_0x169563[_0x55f525]:(_0x1c06bd=_0x2ec1d8['body'])==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1bd)])==null||(_0x1c06bd=_0x1c06bd['find'](_0x23842c=>_0x23842c[_0xac4721(0x1af)]===_0x272edc['sectionId']))==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1cf)])==null?void 0x0:_0x1c06bd[_0x55f525];return w(_0x2ec1d8,{'settings':_0x272edc[_0xac4721(0x1ba)]===void 0x0?_0x3690dc??null:_0x272edc[_0xac4721(0x1ba)],'sectionId':_0x272edc['sectionId'],'suppressEndnotes':_0x272edc[_0xac4721(0x201)]},_0x55f525);}function A(_0x515098,_0x3f38d2,_0x4b3921){const _0x3f0d98=_0x4600df;var _0x22976a,_0x3ae86a,_0x5cf51c;if(!_0x3f38d2||_0x3f38d2['segmentId'])return!0x1;let _0x5eda21=_0x515098[_0x3f0d98(0x1fc)](_0x28d7f0)['getUnit'](_0x3f38d2['unitId'],_0x45c27a[_0x3f0d98(0x1c8)]),_0x329c5a=_0x5eda21==null?void 0x0:_0x5eda21[_0x3f0d98(0x1b7)](),{offset:_0x29dcbf}=_0x3f38d2;if(!O(_0x329c5a,_0x29dcbf))return!0x1;let _0x1fef75=k(_0x329c5a,_0x3f38d2,_0x4b3921);if(_0x1fef75===!0x1)return!0x1;let _0x415c01=_0x3f38d2[_0x3f0d98(0x1ed)]??_0x31c553(0xc);if((_0x22976a=_0x329c5a[_0x3f0d98(0x1bf)])!=null&&_0x22976a[_0x415c01]||(_0x3ae86a=_0x329c5a['headers'])!=null&&_0x3ae86a[_0x415c01]||(_0x5cf51c=_0x329c5a[_0x3f0d98(0x1cc)])!=null&&_0x5cf51c[_0x415c01])return!0x1;let _0x55959a=_0x1ea835[_0x3f0d98(0x1e0)]({'type':_0x4b3921,'noteId':_0x415c01,'body':_0x3f38d2[_0x3f0d98(0x1b5)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x57afb1(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x4111f5(new Set()),'startIndex':0x1}]},'customMark':_0x3f38d2['customMark'],'referenceTextStyle':_0x3f38d2[_0x3f0d98(0x1c3)],'tableSource':_0x3f38d2[_0x3f0d98(0x206)],'drawings':_0x3f38d2['drawings'],'drawingsOrder':_0x3f38d2['drawingsOrder'],'lists':_0x3f38d2[_0x3f0d98(0x1d0)]});if(_0x3dd22b({'notes':{[_0x415c01]:_0x55959a}})[_0x3f0d98(0x1e9)]>0x0)return!0x1;let _0x48c68f=new _0x7c13a3();_0x29dcbf>0x0&&_0x48c68f[_0x3f0d98(0x1b3)](_0x29dcbf),_0x48c68f[_0x3f0d98(0x200)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x4b3921===_0x3f0d98(0x1ad)?_0x1f509c[_0x3f0d98(0x1ce)]:_0x1f509c['ENDNOTE'],'rangeId':_0x31c553(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x415c01}}]});let _0x4872a4=_0x4f86a5['getInstance'](),_0x2c37ec=_0x329c5a['notes']==null?_0x4872a4[_0x3f0d98(0x1d1)]([_0x3f0d98(0x1bf)],{[_0x415c01]:_0x55959a}):_0x4872a4[_0x3f0d98(0x1d1)](['notes',_0x415c01],_0x55959a);return!!_0x515098[_0x3f0d98(0x1fc)](_0xbc5180)[_0x3f0d98(0x1d3)](_0x2b017e['id'],{'unitId':_0x3f38d2[_0x3f0d98(0x1df)],'segmentId':'','historyAction':_0x3f0d98(0x1b6)+_0x4b3921,'actions':_0x4f86a5['compose'](_0x4f86a5[_0x3f0d98(0x1d2)](_0x1fef75,_0x2c37ec),_0x4872a4[_0x3f0d98(0x1ef)](_0x48c68f[_0x3f0d98(0x1f2)](),[_0x3f0d98(0x1b5)])),'textRanges':[{'segmentId':_0x415c01,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x975d8f,_0x50c57c,_0x46b976){const _0x20d8d9=_0x4600df;var _0x408632,_0xa10cf8;if(!_0x50c57c)return!0x1;let _0x1a6994=_0x975d8f['get'](_0x28d7f0)[_0x20d8d9(0x211)](_0x50c57c[_0x20d8d9(0x1df)],_0x45c27a[_0x20d8d9(0x1c8)]),_0x4b5235=_0x1a6994==null?void 0x0:_0x1a6994[_0x20d8d9(0x1b7)](),_0x4a60f1=_0x4b5235==null||(_0x408632=_0x4b5235[_0x20d8d9(0x1bf)])==null?void 0x0:_0x408632[_0x50c57c[_0x20d8d9(0x1ed)]],_0x522ce6=_0x4b5235==null||(_0xa10cf8=_0x4b5235[_0x20d8d9(0x1b5)])==null||(_0xa10cf8=_0xa10cf8[_0x20d8d9(0x1be)])==null?void 0x0:_0xa10cf8[_0x20d8d9(0x1ee)](_0x3b3029=>{const _0x2d9166=_0x20d8d9;var _0x2c1b3b;return(_0x3b3029['rangeType']===_0x1f509c[_0x2d9166(0x1ce)]||_0x3b3029[_0x2d9166(0x20b)]===_0x1f509c[_0x2d9166(0x1e3)])&&((_0x2c1b3b=_0x3b3029[_0x2d9166(0x1c0)])==null?void 0x0:_0x2c1b3b['noteId'])===_0x50c57c['noteId'];});if(!_0x4b5235||_0x4b5235[_0x20d8d9(0x1f6)][_0x20d8d9(0x1d7)]!==_0x25b4a1[_0x20d8d9(0x214)]||!_0x4a60f1||_0x4a60f1['type']!==_0x46b976||!_0x522ce6)return!0x1;let _0x4c3984=new _0x7c13a3();_0x522ce6['startIndex']>0x0&&_0x4c3984[_0x20d8d9(0x1b3)](_0x522ce6[_0x20d8d9(0x213)]),_0x4c3984[_0x20d8d9(0x1b4)](0x1);let _0x45f4fb=_0x4f86a5[_0x20d8d9(0x1f9)]();return!!_0x975d8f['get'](_0xbc5180)[_0x20d8d9(0x1d3)](_0x2b017e['id'],{'unitId':_0x50c57c[_0x20d8d9(0x1df)],'segmentId':'','historyAction':_0x20d8d9(0x219)+_0x46b976,'actions':_0x4f86a5[_0x20d8d9(0x1d2)](_0x45f4fb[_0x20d8d9(0x1ef)](_0x4c3984[_0x20d8d9(0x1f2)](),[_0x20d8d9(0x1b5)]),_0x45f4fb[_0x20d8d9(0x1e2)]([_0x20d8d9(0x1bf),_0x50c57c[_0x20d8d9(0x1ed)]],_0x4a60f1)),'textRanges':[{'startOffset':_0x522ce6['startIndex'],'endOffset':_0x522ce6[_0x20d8d9(0x213)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x4600df(0x1d6),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x30721f,_0x5e0680)=>A(_0x30721f,_0x5e0680,_0x4600df(0x1ad))},N={'id':_0x4600df(0x20e),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x5c98f8,_0x2d4464)=>j(_0x5c98f8,_0x2d4464,_0x4600df(0x1ad))},P={'id':_0x4600df(0x1d5),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0xfdb615,_0x2eb765)=>A(_0xfdb615,_0x2eb765,_0x4600df(0x1f4))},F={'id':_0x4600df(0x1de),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x10046c,_0x7c3427)=>j(_0x10046c,_0x7c3427,_0x4600df(0x1f4))};function _0x3539(_0xfed6f0,_0x15771d){_0xfed6f0=_0xfed6f0-0x1aa;const _0x4763c3=_0x4763();let _0x35396c=_0x4763c3[_0xfed6f0];return _0x35396c;}var I=_0x4600df(0x1da),L=_0x4600df(0x1c4);const R={};function z(_0x4acdba,_0x4c2d57){return function(_0x366aa1,_0x2f02f3){_0x4c2d57(_0x366aa1,_0x2f02f3,_0x4acdba);};}function B(_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e){const _0x544728=_0x4600df;var _0x3fb182=arguments[_0x544728(0x1e9)],_0x2a8e7f=_0x3fb182<0x3?_0x245561:_0x4e181e===null?_0x4e181e=Object['getOwnPropertyDescriptor'](_0x245561,_0x22bd4d):_0x4e181e,_0x196d1e;if(typeof Reflect==_0x544728(0x1ca)&&typeof Reflect[_0x544728(0x1e1)]==_0x544728(0x1d8))_0x2a8e7f=Reflect['decorate'](_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e);else{for(var _0x3447da=_0x3b3328[_0x544728(0x1e9)]-0x1;_0x3447da>=0x0;_0x3447da--)(_0x196d1e=_0x3b3328[_0x3447da])&&(_0x2a8e7f=(_0x3fb182<0x3?_0x196d1e(_0x2a8e7f):_0x3fb182>0x3?_0x196d1e(_0x245561,_0x22bd4d,_0x2a8e7f):_0x196d1e(_0x245561,_0x22bd4d))||_0x2a8e7f);}return _0x3fb182>0x3&&_0x2a8e7f&&Object[_0x544728(0x1e5)](_0x245561,_0x22bd4d,_0x2a8e7f),_0x2a8e7f;}function V(_0xe7b87e){'@babel/helpers - typeof';const _0x2e8c10=_0x4600df;return V=typeof Symbol=='function'&&typeof Symbol[_0x2e8c10(0x1e6)]==_0x2e8c10(0x1aa)?function(_0x29a605){return typeof _0x29a605;}:function(_0xbf3c23){const _0x43558b=_0x2e8c10;return _0xbf3c23&&typeof Symbol==_0x43558b(0x1d8)&&_0xbf3c23[_0x43558b(0x217)]===Symbol&&_0xbf3c23!==Symbol[_0x43558b(0x209)]?_0x43558b(0x1aa):typeof _0xbf3c23;},V(_0xe7b87e);}function H(_0x1e6791,_0x117acd){const _0x3a8ada=_0x4600df;if(V(_0x1e6791)!='object'||!_0x1e6791)return _0x1e6791;var _0x195df2=_0x1e6791[Symbol[_0x3a8ada(0x1ac)]];if(_0x195df2!==void 0x0){var _0x2ea2bb=_0x195df2['call'](_0x1e6791,_0x117acd||_0x3a8ada(0x1b2));if(V(_0x2ea2bb)!=_0x3a8ada(0x1ca))return _0x2ea2bb;throw TypeError(_0x3a8ada(0x20c));}return(_0x117acd===_0x3a8ada(0x1eb)?String:Number)(_0x1e6791);}function U(_0x287226){const _0x5c9d54=_0x4600df;var _0x5adef8=H(_0x287226,_0x5c9d54(0x1eb));return V(_0x5adef8)=='symbol'?_0x5adef8:_0x5adef8+'';}function W(_0x1972e8,_0x3af945,_0x2a6d37){const _0x4aae17=_0x4600df;return(_0x3af945=U(_0x3af945))in _0x1972e8?Object[_0x4aae17(0x1e5)](_0x1972e8,_0x3af945,{'value':_0x2a6d37,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1972e8[_0x3af945]=_0x2a6d37,_0x1972e8;}function _0x4763(){const _0x152904=['eachPage','getUnit','set-','startIndex','TRADITIONAL','keys','22490fUUvqO','constructor','numberFormat','delete-','docEnd','symbol','restart','toPrimitive','footnote','beneathText','sectionId','includes','separator','default','retain','delete','body','insert-','getSnapshot','_configService','-settings','settings','setConfig','columnCount','sectionBreaks','customRanges','notes','properties','packageName','45SHzOiT','referenceTextStyle','1.0.1','52CcznWu','findIndex','dataStream','UNIVER_DOC','333977nlABkg','object','startNumber','footers','193854IEfIBZ','FOOTNOTE','noteProperties','lists','insertOp','compose','syncExecuteCommand','boolean','doc.command.insert-endnote','doc.command.insert-footnote','documentFlavor','function','42LVboyn','@univerjs-pro/docs-reference','_injector','noteSettings','isInteger','doc.command.delete-endnote','unitId','deepClone','decorate','removeOp','ENDNOTE','replaceOp','defineProperty','iterator','continuous','pluginName','length','isNoop','string','118415BMCwtc','noteId','find','editOp','56424WddhYL','_config','serialize','_commandService','endnote','eachSect','documentStyle','260200zhkUof','continuationSeparator','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','COMMAND','get','sectEnd','docs-reference.config','position','insert','suppressEndnotes','840UIRuGH','type','disposeWithMe','every','tableSource','forEach','18610xbmAoU','prototype','pageBottom','rangeType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','doc.command.delete-footnote','86zXxotq'];_0x4763=function(){return _0x152904;};return _0x4763();}let G=class extends _0x26c983{constructor(_0x184b0f=R,_0x27aa9d,_0x3929a9,_0x4cae4b){const _0x17a5c2=_0x4600df;super(),this[_0x17a5c2(0x1f1)]=_0x184b0f,this[_0x17a5c2(0x1db)]=_0x27aa9d,this[_0x17a5c2(0x1b8)]=_0x3929a9,this[_0x17a5c2(0x1f3)]=_0x4cae4b;let {..._0x5269ea}=_0x50c30f({},R,this[_0x17a5c2(0x1f1)]);this[_0x17a5c2(0x1b8)][_0x17a5c2(0x1bb)](_0x17a5c2(0x1fe),_0x5269ea);}[_0x4600df(0x20d)](){const _0x524f9d=_0x4600df;[M,N,E,P,F,D][_0x524f9d(0x207)](_0x19642b=>this[_0x524f9d(0x204)](this[_0x524f9d(0x1f3)]['registerCommand'](_0x19642b)));}};W(G,_0x4600df(0x1e8),_0x4600df(0x1fa)),W(G,_0x4600df(0x1c1),I),W(G,'version',L),W(G,_0x4600df(0x203),_0x45c27a[_0x4600df(0x1c8)]),G=B([_0x126d9d(_0x1111a2,_0x1bad7e),z(0x1,_0x4b5c4b(_0x38617d)),z(0x2,_0x19a8fd),z(0x3,_0xbc5180)],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
|
+
const _0x263322=_0x2d32;(function(_0x5a0e1f,_0x306aee){const _0xcbc016=_0x2d32,_0x2c2627=_0x5a0e1f();while(!![]){try{const _0x44f85d=parseInt(_0xcbc016(0x1e1))/0x1*(-parseInt(_0xcbc016(0x1e0))/0x2)+parseInt(_0xcbc016(0x1e5))/0x3+parseInt(_0xcbc016(0x1c3))/0x4+-parseInt(_0xcbc016(0x1da))/0x5*(parseInt(_0xcbc016(0x1db))/0x6)+parseInt(_0xcbc016(0x1d4))/0x7*(-parseInt(_0xcbc016(0x1dc))/0x8)+parseInt(_0xcbc016(0x1de))/0x9+parseInt(_0xcbc016(0x1bf))/0xa;if(_0x44f85d===_0x306aee)break;else _0x2c2627['push'](_0x2c2627['shift']());}catch(_0x28d6da){_0x2c2627['push'](_0x2c2627['shift']());}}}(_0xf518,0x9f41e));function _0x2d32(_0x48ecec,_0x47d6af){_0x48ecec=_0x48ecec-0x1ba;const _0xf518ec=_0xf518();let _0x2d32ef=_0xf518ec[_0x48ecec];return _0x2d32ef;}import{DeleteDocumentEndnoteCommand as _0x3c2ec0,DeleteDocumentFootnoteCommand as _0x1329e2,InsertDocumentEndnoteCommand as _0x4c5569,InsertDocumentFootnoteCommand as _0x4d59f8,SetDocumentEndnoteSettingsCommand as _0x49823,SetDocumentFootnoteSettingsCommand as _0x2e9c16}from'@univerjs-pro/docs-reference';import{CustomRangeType as _0x3640e8,ICommandService as _0x3171c9,Tools as _0x5b7f9e,generateRandomId as _0x4e0992}from'@univerjs/core';import{FDocument as _0x33ffe7}from'@univerjs/docs/facade';var d=class extends _0x33ffe7{[_0x263322(0x1c9)](_0x122038,_0x4db28b={}){const _0xa895db=_0x263322;let _0x24bdde=_0x4e0992(0xc);return this[_0xa895db(0x1d3)]['get'](_0x3171c9)[_0xa895db(0x1ba)](_0x4d59f8['id'],{..._0x4db28b,'unitId':this['id'],'offset':_0x122038,'noteId':_0x24bdde})?_0x24bdde:null;}[_0x263322(0x1bb)](){const _0x29dfcd=_0x263322;var _0x2fdd17;let _0x4a8db3=this[_0x29dfcd(0x1bc)]()[_0x29dfcd(0x1be)]();return(((_0x2fdd17=_0x4a8db3['body'])==null?void 0x0:_0x2fdd17[_0x29dfcd(0x1cd)])??[])[_0x29dfcd(0x1df)](_0x1ac66e=>_0x1ac66e['rangeType']===_0x3640e8[_0x29dfcd(0x1c7)])[_0x29dfcd(0x1c8)]((_0x1519ea,_0x405fe1)=>_0x1519ea[_0x29dfcd(0x1c4)]-_0x405fe1[_0x29dfcd(0x1c4)])[_0x29dfcd(0x1d0)](_0x2dcf53=>{const _0x1a4108=_0x29dfcd;var _0x3e3f0c,_0x4c5e8e;let _0x346e24=(_0x3e3f0c=_0x2dcf53[_0x1a4108(0x1cb)])==null?void 0x0:_0x3e3f0c[_0x1a4108(0x1d9)],_0x9fb73f=typeof _0x346e24==_0x1a4108(0x1d2)?(_0x4c5e8e=_0x4a8db3[_0x1a4108(0x1c2)])==null?void 0x0:_0x4c5e8e[_0x346e24]:void 0x0;return _0x9fb73f?[_0x5b7f9e['deepClone'](_0x9fb73f)]:[];});}['deleteFootnote'](_0x31fb0b){const _0x565544=_0x263322;return this[_0x565544(0x1d3)]['get'](_0x3171c9)[_0x565544(0x1ba)](_0x1329e2['id'],{'unitId':this['id'],'noteId':_0x31fb0b});}['getFootnoteSettings'](_0x26e97d){const _0x40c849=_0x263322;var _0x2d9444,_0x2f0787;let _0x4a9b5c=this['getDocumentDataModel']()[_0x40c849(0x1be)](),_0x3503ef=_0x26e97d==null?(_0x2d9444=_0x4a9b5c[_0x40c849(0x1dd)])==null?void 0x0:_0x2d9444[_0x40c849(0x1d7)]:(_0x2f0787=_0x4a9b5c[_0x40c849(0x1c6)])==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1ca)])==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1c0)](_0x423277=>_0x423277[_0x40c849(0x1c5)]===_0x26e97d))==null||(_0x2f0787=_0x2f0787[_0x40c849(0x1ce)])==null?void 0x0:_0x2f0787[_0x40c849(0x1d7)];return _0x3503ef==null?void 0x0:_0x5b7f9e[_0x40c849(0x1d6)](_0x3503ef);}[_0x263322(0x1d8)](_0x5349b7,_0x51ee48){const _0x1a9e80=_0x263322;return this[_0x1a9e80(0x1d3)][_0x1a9e80(0x1bd)](_0x3171c9)['syncExecuteCommand'](_0x2e9c16['id'],{'unitId':this['id'],'settings':_0x5349b7,'sectionId':_0x51ee48});}['insertEndnote'](_0x3bcdf9,_0x4f3508={}){const _0x1c1e00=_0x263322;let _0x3dbd72=_0x4e0992(0xc);return this[_0x1c1e00(0x1d3)][_0x1c1e00(0x1bd)](_0x3171c9)['syncExecuteCommand'](_0x4c5569['id'],{..._0x4f3508,'unitId':this['id'],'offset':_0x3bcdf9,'noteId':_0x3dbd72})?_0x3dbd72:null;}[_0x263322(0x1e3)](){const _0x1ec1ca=_0x263322;var _0x404c74;let _0x988a2b=this[_0x1ec1ca(0x1bc)]()['getSnapshot']();return(((_0x404c74=_0x988a2b['body'])==null?void 0x0:_0x404c74[_0x1ec1ca(0x1cd)])??[])[_0x1ec1ca(0x1df)](_0x42b763=>_0x42b763[_0x1ec1ca(0x1d1)]===_0x3640e8[_0x1ec1ca(0x1cc)])['sort']((_0x18c162,_0x58c500)=>_0x18c162[_0x1ec1ca(0x1c4)]-_0x58c500[_0x1ec1ca(0x1c4)])[_0x1ec1ca(0x1d0)](_0x2c2e6f=>{const _0x47a754=_0x1ec1ca;var _0x238a9b,_0x35f867;let _0x204d90=(_0x238a9b=_0x2c2e6f[_0x47a754(0x1cb)])==null?void 0x0:_0x238a9b[_0x47a754(0x1d9)],_0x29886e=typeof _0x204d90=='string'?(_0x35f867=_0x988a2b[_0x47a754(0x1c2)])==null?void 0x0:_0x35f867[_0x204d90]:void 0x0;return _0x29886e?[_0x5b7f9e[_0x47a754(0x1d6)](_0x29886e)]:[];});}[_0x263322(0x1c1)](_0x3d539b){const _0xa90fe8=_0x263322;return this[_0xa90fe8(0x1d3)][_0xa90fe8(0x1bd)](_0x3171c9)[_0xa90fe8(0x1ba)](_0x3c2ec0['id'],{'unitId':this['id'],'noteId':_0x3d539b});}[_0x263322(0x1cf)](_0x1a08f7){const _0x1e5a83=_0x263322;var _0x4d55d3,_0x4da4f7;let _0x174490=this[_0x1e5a83(0x1bc)]()['getSnapshot'](),_0xd8fed4=_0x1a08f7==null?(_0x4d55d3=_0x174490[_0x1e5a83(0x1dd)])==null?void 0x0:_0x4d55d3['endnote']:(_0x4da4f7=_0x174490[_0x1e5a83(0x1c6)])==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1ca)])==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1c0)](_0x545a43=>_0x545a43['sectionId']===_0x1a08f7))==null||(_0x4da4f7=_0x4da4f7[_0x1e5a83(0x1ce)])==null?void 0x0:_0x4da4f7[_0x1e5a83(0x1e2)];return _0xd8fed4==null?void 0x0:_0x5b7f9e[_0x1e5a83(0x1d6)](_0xd8fed4);}[_0x263322(0x1e4)](_0xac9a9f,_0x2b5a4a){const _0x290054=_0x263322;return this['_injector'][_0x290054(0x1bd)](_0x3171c9)[_0x290054(0x1ba)](_0x49823['id'],{'unitId':this['id'],'settings':_0xac9a9f,'sectionId':_0x2b5a4a});}};function _0xf518(){const _0x1946dc=['extend','deepClone','footnote','setFootnoteSettings','noteId','155YVhGaM','128070FhvdmU','8IxeqTR','noteSettings','8118855jQaKQs','filter','2wJYqhk','820411XtaUWd','endnote','getEndnotes','setEndnoteSettings','802080Vithbv','syncExecuteCommand','getFootnotes','getDocumentDataModel','get','getSnapshot','6941650ytOraT','find','deleteEndnote','notes','3233548BRETRR','startIndex','sectionId','body','FOOTNOTE','sort','insertFootnote','sectionBreaks','properties','ENDNOTE','customRanges','noteProperties','getEndnoteSettings','flatMap','rangeType','string','_injector','3763081yfqUzD'];_0xf518=function(){return _0x1946dc;};return _0xf518();}_0x33ffe7[_0x263322(0x1d5)](d);export{};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xc30877=_0x49dd;(function(_0x4b43cb,_0x1f723b){const _0x5f195b=_0x49dd,_0x2fd8f3=_0x4b43cb();while(!![]){try{const _0x385b24=parseInt(_0x5f195b(0x109))/0x1+-parseInt(_0x5f195b(0x144))/0x2*(-parseInt(_0x5f195b(0x13a))/0x3)+-parseInt(_0x5f195b(0x160))/0x4*(-parseInt(_0x5f195b(0x12e))/0x5)+parseInt(_0x5f195b(0x123))/0x6+-parseInt(_0x5f195b(0x136))/0x7+parseInt(_0x5f195b(0x126))/0x8*(parseInt(_0x5f195b(0x102))/0x9)+parseInt(_0x5f195b(0x14c))/0xa*(-parseInt(_0x5f195b(0x149))/0xb);if(_0x385b24===_0x1f723b)break;else _0x2fd8f3['push'](_0x2fd8f3['shift']());}catch(_0x368c73){_0x2fd8f3['push'](_0x2fd8f3['shift']());}}}(_0x249d,0xb0ac8));import{CommandType as _0x142f06,CustomRangeType as _0x582f35,DependentOn as _0x15001a,DocumentFlavor as _0x217cf5,ICommandService as _0x2b4e4,IConfigService as _0x1f1bae,IUniverInstanceService as _0xe30e64,Inject as _0x3d8cc,Injector as _0x49b800,JSONX as _0x45928d,Plugin as _0x507d43,TextX as _0x58319d,Tools as _0x31c092,UniverInstanceType as _0x5625e7,createParagraphId as _0x5bc908,createSectionId as _0x39906f,generateRandomId as _0x4d4105,merge as _0xd329bd,validateDocBodyStructure as _0x570a6a,validateDocumentStructure as _0x47a580}from'@univerjs/core';import{RichTextEditingMutation as _0x515ab4,UniverDocsPlugin as _0x461dd7}from'@univerjs/docs';import{UniverLicensePlugin as _0x4f32c6}from'@univerjs-pro/license';function C(_0xeb8fbf,_0x2a60fd,_0x45f649){const _0x36ee06=_0x49dd;if(_0xeb8fbf['position']!=null&&!(_0x2a60fd===_0x36ee06(0x108)?[_0x36ee06(0x15d),_0x36ee06(0x112)]:['docEnd','sectEnd'])[_0x36ee06(0x13f)](_0xeb8fbf['position'])||_0xeb8fbf['restart']!=null&&!(_0x2a60fd===_0x36ee06(0x108)?['continuous',_0x36ee06(0x156),'eachPage']:[_0x36ee06(0x121),'eachSect'])[_0x36ee06(0x13f)](_0xeb8fbf['restart'])||_0xeb8fbf[_0x36ee06(0x146)]!=null&&(!Number['isInteger'](_0xeb8fbf[_0x36ee06(0x146)])||_0xeb8fbf[_0x36ee06(0x146)]<0x1)||_0x36ee06(0x103)in _0xeb8fbf&&_0xeb8fbf['columnCount']!=null&&(_0x2a60fd!==_0x36ee06(0x108)||!Number[_0x36ee06(0x165)](_0xeb8fbf['columnCount'])||_0xeb8fbf['columnCount']<0x0||_0xeb8fbf[_0x36ee06(0x103)]>0x4)||_0xeb8fbf[_0x36ee06(0x148)]!=null&&(typeof _0xeb8fbf[_0x36ee06(0x148)]!=_0x36ee06(0x157)||_0xeb8fbf['numberFormat'][_0x36ee06(0x11a)]===0x0))return!0x1;for(let _0x2397a7 of[_0xeb8fbf[_0x36ee06(0x167)],_0xeb8fbf['continuationSeparator'],_0xeb8fbf[_0x36ee06(0x13c)]])if(_0x2397a7!=null&&(_0x45f649!=null||_0x570a6a(_0x2397a7)[_0x36ee06(0x11a)]>0x0))return!0x1;return!0x0;}function w(_0x40ba13,_0x5a965b,_0x32afd9){const _0xe749ba=_0x49dd;var _0x4521f2,_0x48770c;if(_0x5a965b[_0xe749ba(0x10e)]!=null&&!C(_0x5a965b[_0xe749ba(0x10e)],_0x32afd9,_0x5a965b[_0xe749ba(0x12c)]))return!0x1;let _0x14cdff=((_0x4521f2=_0x40ba13[_0xe749ba(0x13d)])==null||(_0x4521f2=_0x4521f2[_0xe749ba(0x163)])==null?void 0x0:_0x4521f2[_0xe749ba(0x15c)](_0x33acd4=>_0x33acd4[_0xe749ba(0x12c)]===_0x5a965b['sectionId']))??-0x1;if(_0x5a965b[_0xe749ba(0x12c)]!=null&&_0x14cdff<0x0)return!0x1;let _0x2627b0=_0x5a965b[_0xe749ba(0x12c)]==null?_0x40ba13['noteSettings']:(_0x48770c=_0x40ba13[_0xe749ba(0x13d)])==null||(_0x48770c=_0x48770c['sectionBreaks'])==null?void 0x0:_0x48770c[_0x14cdff][_0xe749ba(0x12f)],_0x2b4148=_0x5a965b['settings']==null?void 0x0:_0x31c092['deepClone'](_0x5a965b[_0xe749ba(0x10e)]),_0x439f9e=_0x5a965b[_0xe749ba(0x12c)]==null?[_0xe749ba(0x129)]:[_0xe749ba(0x13d),_0xe749ba(0x163),_0x14cdff,_0xe749ba(0x12f)],_0x19477d=_0x45928d[_0xe749ba(0x115)](),_0xf8e8c5=null;if(_0x31c092['diffValue'](_0x2627b0==null?void 0x0:_0x2627b0[_0x32afd9],_0x2b4148)||(_0xf8e8c5=_0x2627b0==null?_0x19477d[_0xe749ba(0x106)](_0x439f9e,{[_0x32afd9]:_0x2b4148}):_0x5a965b[_0xe749ba(0x12c)]!=null&&_0x2b4148==null&&Object[_0xe749ba(0x13e)](_0x2627b0)['every'](_0x542ac2=>_0x542ac2===_0x32afd9)?_0x19477d[_0xe749ba(0x105)](_0x439f9e,_0x2627b0):_0x19477d[_0xe749ba(0x153)]([..._0x439f9e,_0x32afd9],_0x2627b0[_0x32afd9],_0x2b4148)),_0x5a965b[_0xe749ba(0x101)]!=null){var _0x2415ee;if(_0x32afd9!==_0xe749ba(0x10b)||_0x5a965b[_0xe749ba(0x12c)]==null||typeof _0x5a965b[_0xe749ba(0x101)]!=_0xe749ba(0x122))return!0x1;let _0x45110c=(_0x2415ee=_0x40ba13['body'])==null||(_0x2415ee=_0x2415ee[_0xe749ba(0x163)])==null?void 0x0:_0x2415ee[_0x14cdff][_0xe749ba(0x101)];_0x45110c!==_0x5a965b['suppressEndnotes']&&(_0xf8e8c5=_0x45928d[_0xe749ba(0x110)](_0xf8e8c5,_0x19477d[_0xe749ba(0x153)]([_0xe749ba(0x13d),_0xe749ba(0x163),_0x14cdff,_0xe749ba(0x101)],_0x45110c,_0x5a965b[_0xe749ba(0x101)])));}return _0xf8e8c5;}function T(_0x15ffa1,_0x5a2dc7,_0x345299){const _0x56af73=_0x49dd;if(!_0x5a2dc7)return!0x1;let _0xcaddca=_0x15ffa1[_0x56af73(0x145)](_0xe30e64)[_0x56af73(0x124)](_0x5a2dc7[_0x56af73(0x133)],_0x5625e7[_0x56af73(0x11b)]),_0x332f9f=_0xcaddca==null?void 0x0:_0xcaddca['getSnapshot']();if(!_0x332f9f||_0x332f9f[_0x56af73(0x113)][_0x56af73(0x161)]!==_0x217cf5['TRADITIONAL'])return!0x1;let _0x1b2a8f=w(_0x332f9f,_0x5a2dc7,_0x345299);return _0x1b2a8f===!0x1||_0x45928d[_0x56af73(0x15e)](_0x1b2a8f)?!0x1:!!_0x15ffa1['get'](_0x2b4e4)[_0x56af73(0x117)](_0x515ab4['id'],{'unitId':_0x5a2dc7['unitId'],'segmentId':'','historyAction':'set-'+_0x345299+'-settings','actions':_0x1b2a8f,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':_0xc30877(0x158),'type':_0x142f06[_0xc30877(0x147)],'handler':(_0xd37ac7,_0x33893f)=>T(_0xd37ac7,_0x33893f,_0xc30877(0x108))},D={'id':'doc.command.set-endnote-settings','type':_0x142f06[_0xc30877(0x147)],'handler':(_0x5aa1f1,_0x440bc9)=>T(_0x5aa1f1,_0x440bc9,'endnote')};function O(_0x2bc780,_0x2d18be){const _0x2249fb=_0xc30877;return(_0x2bc780==null?void 0x0:_0x2bc780['documentStyle'][_0x2249fb(0x161)])===_0x217cf5[_0x2249fb(0x168)]&&!!_0x2bc780[_0x2249fb(0x13d)]&&Number['isInteger'](_0x2d18be)&&_0x2d18be>=0x0&&_0x2d18be<_0x2bc780['body']['dataStream'][_0x2249fb(0x11a)]-0x1;}function _0x249d(){const _0x22631c=['registerCommand','6630386dWlxKM','version','startIndex','pluginName','3NQBLVW','type','continuationNotice','body','keys','includes','iterator','object','retain','toPrimitive','1972914VdVTQy','get','startNumber','COMMAND','numberFormat','11ueaBmD','default','headers','17826070PKbPpJ','find','symbol','prototype','customRanges','serialize','getOwnPropertyDescriptor','replaceOp','segmentId','_configService','eachSect','string','doc.command.set-footnote-settings','editOp','1.0.0-rc.0','disposeWithMe','findIndex','pageBottom','isNoop','lists','3764slAMGI','documentFlavor','forEach','sectionBreaks','delete-','isInteger','noteId','separator','TRADITIONAL','suppressEndnotes','11268WseeXC','columnCount','notes','removeOp','insertOp','onStarting','footnote','359307MZTURX','_config','endnote','doc.command.delete-footnote','function','settings','deepClone','compose','ENDNOTE','beneathText','documentStyle','insert','getInstance','decorate','syncExecuteCommand','delete','footers','length','UNIVER_DOC','FOOTNOTE','doc.command.insert-footnote','_commandService','call','_injector','continuous','boolean','4779030gMLeRQ','getUnit','doc.command.insert-endnote','3568UHfpSY','properties','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','noteSettings','@univerjs-pro/docs-reference','drawings','sectionId','referenceTextStyle','4000SFdeij','noteProperties','rangeType','doc.command.delete-endnote','packageName','unitId','constructor'];_0x249d=function(){return _0x22631c;};return _0x249d();}function k(_0x5ce2d6,_0x437df6,_0x2ad0fc){const _0x2dc322=_0xc30877;var _0x309132,_0x3ea3eb;if(_0x437df6[_0x2dc322(0x10e)]===void 0x0&&_0x437df6[_0x2dc322(0x101)]===void 0x0)return null;let _0x849530=_0x437df6['sectionId']==null?(_0x309132=_0x5ce2d6[_0x2dc322(0x129)])==null?void 0x0:_0x309132[_0x2ad0fc]:(_0x3ea3eb=_0x5ce2d6[_0x2dc322(0x13d)])==null||(_0x3ea3eb=_0x3ea3eb[_0x2dc322(0x163)])==null||(_0x3ea3eb=_0x3ea3eb[_0x2dc322(0x14d)](_0x22caae=>_0x22caae['sectionId']===_0x437df6['sectionId']))==null||(_0x3ea3eb=_0x3ea3eb[_0x2dc322(0x12f)])==null?void 0x0:_0x3ea3eb[_0x2ad0fc];return w(_0x5ce2d6,{'settings':_0x437df6[_0x2dc322(0x10e)]===void 0x0?_0x849530??null:_0x437df6[_0x2dc322(0x10e)],'sectionId':_0x437df6['sectionId'],'suppressEndnotes':_0x437df6[_0x2dc322(0x101)]},_0x2ad0fc);}function A(_0x725072,_0x1c06c5,_0x1069da){const _0x68d5b5=_0xc30877;var _0x2748ed,_0xc4371,_0x345808;if(!_0x1c06c5||_0x1c06c5[_0x68d5b5(0x154)])return!0x1;let _0x3bfb03=_0x725072[_0x68d5b5(0x145)](_0xe30e64)[_0x68d5b5(0x124)](_0x1c06c5['unitId'],_0x5625e7['UNIVER_DOC']),_0x595f1c=_0x3bfb03==null?void 0x0:_0x3bfb03['getSnapshot'](),{offset:_0x32a897}=_0x1c06c5;if(!O(_0x595f1c,_0x32a897))return!0x1;let _0x2c7b9c=k(_0x595f1c,_0x1c06c5,_0x1069da);if(_0x2c7b9c===!0x1)return!0x1;let _0x3d933d=_0x1c06c5[_0x68d5b5(0x166)]??_0x4d4105(0xc);if((_0x2748ed=_0x595f1c[_0x68d5b5(0x104)])!=null&&_0x2748ed[_0x3d933d]||(_0xc4371=_0x595f1c[_0x68d5b5(0x14b)])!=null&&_0xc4371[_0x3d933d]||(_0x345808=_0x595f1c[_0x68d5b5(0x119)])!=null&&_0x345808[_0x3d933d])return!0x1;let _0x285ee8=_0x31c092[_0x68d5b5(0x10f)]({'type':_0x1069da,'noteId':_0x3d933d,'body':_0x1c06c5[_0x68d5b5(0x13d)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x5bc908(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x39906f(new Set()),'startIndex':0x1}]},'customMark':_0x1c06c5['customMark'],'referenceTextStyle':_0x1c06c5[_0x68d5b5(0x12d)],'tableSource':_0x1c06c5['tableSource'],'drawings':_0x1c06c5[_0x68d5b5(0x12b)],'drawingsOrder':_0x1c06c5['drawingsOrder'],'lists':_0x1c06c5[_0x68d5b5(0x15f)]});if(_0x47a580({'notes':{[_0x3d933d]:_0x285ee8}})[_0x68d5b5(0x11a)]>0x0)return!0x1;let _0x4a688e=new _0x58319d();_0x32a897>0x0&&_0x4a688e[_0x68d5b5(0x142)](_0x32a897),_0x4a688e[_0x68d5b5(0x114)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x1069da===_0x68d5b5(0x108)?_0x582f35['FOOTNOTE']:_0x582f35[_0x68d5b5(0x111)],'rangeId':_0x4d4105(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x3d933d}}]});let _0x166eeb=_0x45928d[_0x68d5b5(0x115)](),_0x4942ae=_0x595f1c['notes']==null?_0x166eeb['insertOp'](['notes'],{[_0x3d933d]:_0x285ee8}):_0x166eeb[_0x68d5b5(0x106)]([_0x68d5b5(0x104),_0x3d933d],_0x285ee8);return!!_0x725072[_0x68d5b5(0x145)](_0x2b4e4)['syncExecuteCommand'](_0x515ab4['id'],{'unitId':_0x1c06c5[_0x68d5b5(0x133)],'segmentId':'','historyAction':'insert-'+_0x1069da,'actions':_0x45928d[_0x68d5b5(0x110)](_0x45928d[_0x68d5b5(0x110)](_0x2c7b9c,_0x4942ae),_0x166eeb[_0x68d5b5(0x159)](_0x4a688e[_0x68d5b5(0x151)](),[_0x68d5b5(0x13d)])),'textRanges':[{'segmentId':_0x3d933d,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x202040,_0x2a32d3,_0x1e036b){const _0x4fcbef=_0xc30877;var _0x28108a,_0x482db9;if(!_0x2a32d3)return!0x1;let _0x101704=_0x202040[_0x4fcbef(0x145)](_0xe30e64)['getUnit'](_0x2a32d3[_0x4fcbef(0x133)],_0x5625e7[_0x4fcbef(0x11b)]),_0x5b5e78=_0x101704==null?void 0x0:_0x101704['getSnapshot'](),_0x22deec=_0x5b5e78==null||(_0x28108a=_0x5b5e78['notes'])==null?void 0x0:_0x28108a[_0x2a32d3['noteId']],_0x3206a4=_0x5b5e78==null||(_0x482db9=_0x5b5e78['body'])==null||(_0x482db9=_0x482db9[_0x4fcbef(0x150)])==null?void 0x0:_0x482db9[_0x4fcbef(0x14d)](_0x3e6ea9=>{const _0x577f36=_0x4fcbef;var _0x3843c9;return(_0x3e6ea9[_0x577f36(0x130)]===_0x582f35[_0x577f36(0x11c)]||_0x3e6ea9[_0x577f36(0x130)]===_0x582f35[_0x577f36(0x111)])&&((_0x3843c9=_0x3e6ea9[_0x577f36(0x127)])==null?void 0x0:_0x3843c9[_0x577f36(0x166)])===_0x2a32d3[_0x577f36(0x166)];});if(!_0x5b5e78||_0x5b5e78[_0x4fcbef(0x113)][_0x4fcbef(0x161)]!==_0x217cf5[_0x4fcbef(0x168)]||!_0x22deec||_0x22deec[_0x4fcbef(0x13b)]!==_0x1e036b||!_0x3206a4)return!0x1;let _0x417c04=new _0x58319d();_0x3206a4[_0x4fcbef(0x138)]>0x0&&_0x417c04['retain'](_0x3206a4[_0x4fcbef(0x138)]),_0x417c04[_0x4fcbef(0x118)](0x1);let _0x220a25=_0x45928d[_0x4fcbef(0x115)]();return!!_0x202040['get'](_0x2b4e4)[_0x4fcbef(0x117)](_0x515ab4['id'],{'unitId':_0x2a32d3[_0x4fcbef(0x133)],'segmentId':'','historyAction':_0x4fcbef(0x164)+_0x1e036b,'actions':_0x45928d[_0x4fcbef(0x110)](_0x220a25[_0x4fcbef(0x159)](_0x417c04[_0x4fcbef(0x151)](),['body']),_0x220a25[_0x4fcbef(0x105)](['notes',_0x2a32d3[_0x4fcbef(0x166)]],_0x22deec)),'textRanges':[{'startOffset':_0x3206a4[_0x4fcbef(0x138)],'endOffset':_0x3206a4[_0x4fcbef(0x138)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0xc30877(0x11d),'type':_0x142f06[_0xc30877(0x147)],'handler':(_0x5362bd,_0x260229)=>A(_0x5362bd,_0x260229,'footnote')},N={'id':_0xc30877(0x10c),'type':_0x142f06[_0xc30877(0x147)],'handler':(_0x6df550,_0x1eff2d)=>j(_0x6df550,_0x1eff2d,_0xc30877(0x108))},P={'id':_0xc30877(0x125),'type':_0x142f06[_0xc30877(0x147)],'handler':(_0x40ae0c,_0x2688c8)=>A(_0x40ae0c,_0x2688c8,_0xc30877(0x10b))},F={'id':_0xc30877(0x131),'type':_0x142f06[_0xc30877(0x147)],'handler':(_0x2fb9d0,_0x11ee1c)=>j(_0x2fb9d0,_0x11ee1c,_0xc30877(0x10b))};var I=_0xc30877(0x12a),L=_0xc30877(0x15a);const R={};function z(_0x31094a,_0x15f30c){return function(_0x5d9a75,_0x56ab81){_0x15f30c(_0x5d9a75,_0x56ab81,_0x31094a);};}function B(_0x3294a7,_0x3f8675,_0x1f4499,_0x49b4c7){const _0x4a0839=_0xc30877;var _0x23665a=arguments[_0x4a0839(0x11a)],_0x560d56=_0x23665a<0x3?_0x3f8675:_0x49b4c7===null?_0x49b4c7=Object[_0x4a0839(0x152)](_0x3f8675,_0x1f4499):_0x49b4c7,_0x446d95;if(typeof Reflect==_0x4a0839(0x141)&&typeof Reflect['decorate']=='function')_0x560d56=Reflect[_0x4a0839(0x116)](_0x3294a7,_0x3f8675,_0x1f4499,_0x49b4c7);else{for(var _0x344cb0=_0x3294a7[_0x4a0839(0x11a)]-0x1;_0x344cb0>=0x0;_0x344cb0--)(_0x446d95=_0x3294a7[_0x344cb0])&&(_0x560d56=(_0x23665a<0x3?_0x446d95(_0x560d56):_0x23665a>0x3?_0x446d95(_0x3f8675,_0x1f4499,_0x560d56):_0x446d95(_0x3f8675,_0x1f4499))||_0x560d56);}return _0x23665a>0x3&&_0x560d56&&Object['defineProperty'](_0x3f8675,_0x1f4499,_0x560d56),_0x560d56;}function V(_0x1febfb){'@babel/helpers - typeof';const _0x5609cb=_0xc30877;return V=typeof Symbol==_0x5609cb(0x10d)&&typeof Symbol[_0x5609cb(0x140)]==_0x5609cb(0x14e)?function(_0x4babd2){return typeof _0x4babd2;}:function(_0x5175e5){const _0x351214=_0x5609cb;return _0x5175e5&&typeof Symbol==_0x351214(0x10d)&&_0x5175e5[_0x351214(0x134)]===Symbol&&_0x5175e5!==Symbol[_0x351214(0x14f)]?_0x351214(0x14e):typeof _0x5175e5;},V(_0x1febfb);}function H(_0x49000f,_0x43e191){const _0x2f393c=_0xc30877;if(V(_0x49000f)!='object'||!_0x49000f)return _0x49000f;var _0x5642f4=_0x49000f[Symbol[_0x2f393c(0x143)]];if(_0x5642f4!==void 0x0){var _0xb0c750=_0x5642f4[_0x2f393c(0x11f)](_0x49000f,_0x43e191||_0x2f393c(0x14a));if(V(_0xb0c750)!=_0x2f393c(0x141))return _0xb0c750;throw TypeError(_0x2f393c(0x128));}return(_0x43e191==='string'?String:Number)(_0x49000f);}function U(_0x4ae7cb){const _0x1b44bb=_0xc30877;var _0x4f0375=H(_0x4ae7cb,_0x1b44bb(0x157));return V(_0x4f0375)==_0x1b44bb(0x14e)?_0x4f0375:_0x4f0375+'';}function _0x49dd(_0x46b2b6,_0x417e2f){_0x46b2b6=_0x46b2b6-0x101;const _0x249dc5=_0x249d();let _0x49dd7a=_0x249dc5[_0x46b2b6];return _0x49dd7a;}function W(_0x534f2e,_0x10dfc6,_0x28d218){return(_0x10dfc6=U(_0x10dfc6))in _0x534f2e?Object['defineProperty'](_0x534f2e,_0x10dfc6,{'value':_0x28d218,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x534f2e[_0x10dfc6]=_0x28d218,_0x534f2e;}let G=class extends _0x507d43{constructor(_0xa74c62=R,_0x5889ac,_0x304df5,_0x530d84){const _0x39c576=_0xc30877;super(),this['_config']=_0xa74c62,this[_0x39c576(0x120)]=_0x5889ac,this[_0x39c576(0x155)]=_0x304df5,this[_0x39c576(0x11e)]=_0x530d84;let {..._0x592a61}=_0xd329bd({},R,this[_0x39c576(0x10a)]);this[_0x39c576(0x155)]['setConfig']('docs-reference.config',_0x592a61);}[_0xc30877(0x107)](){const _0x2823ac=_0xc30877;[M,N,E,P,F,D][_0x2823ac(0x162)](_0x4c8518=>this[_0x2823ac(0x15b)](this['_commandService'][_0x2823ac(0x135)](_0x4c8518)));}};W(G,_0xc30877(0x139),'UNIVER_DOCS_REFERENCE_PLUGIN'),W(G,_0xc30877(0x132),I),W(G,_0xc30877(0x137),L),W(G,_0xc30877(0x13b),_0x5625e7[_0xc30877(0x11b)]),G=B([_0x15001a(_0x4f32c6,_0x461dd7),z(0x1,_0x3d8cc(_0x49b800)),z(0x2,_0x1f1bae),z(0x3,_0x2b4e4)],G);export{F as DeleteDocumentEndnoteCommand,N as DeleteDocumentFootnoteCommand,P as InsertDocumentEndnoteCommand,M as InsertDocumentFootnoteCommand,D as SetDocumentEndnoteSettingsCommand,E as SetDocumentFootnoteSettingsCommand,G as UniverDocsReferencePlugin};
|
|
1
|
+
const _0x4600df=_0x3539;(function(_0x413eed,_0x5ab849){const _0x341caf=_0x3539,_0x298b0a=_0x413eed();while(!![]){try{const _0x13434b=parseInt(_0x341caf(0x20f))/0x1*(-parseInt(_0x341caf(0x208))/0x2)+-parseInt(_0x341caf(0x1cd))/0x3*(-parseInt(_0x341caf(0x1c5))/0x4)+-parseInt(_0x341caf(0x1f7))/0x5+parseInt(_0x341caf(0x1d9))/0x6*(-parseInt(_0x341caf(0x1c9))/0x7)+parseInt(_0x341caf(0x1f0))/0x8+parseInt(_0x341caf(0x1c2))/0x9*(parseInt(_0x341caf(0x216))/0xa)+parseInt(_0x341caf(0x1ec))/0xb*(parseInt(_0x341caf(0x202))/0xc);if(_0x13434b===_0x5ab849)break;else _0x298b0a['push'](_0x298b0a['shift']());}catch(_0x4ddd19){_0x298b0a['push'](_0x298b0a['shift']());}}}(_0x4763,0x67ea3));import{CommandType as _0x2beccf,CustomRangeType as _0x1f509c,DependentOn as _0x126d9d,DocumentFlavor as _0x25b4a1,ICommandService as _0xbc5180,IConfigService as _0x19a8fd,IUniverInstanceService as _0x28d7f0,Inject as _0x4b5c4b,Injector as _0x38617d,JSONX as _0x4f86a5,Plugin as _0x26c983,TextX as _0x7c13a3,Tools as _0x1ea835,UniverInstanceType as _0x45c27a,createParagraphId as _0x57afb1,createSectionId as _0x4111f5,generateRandomId as _0x31c553,merge as _0x50c30f,validateDocBodyStructure as _0x35465e,validateDocumentStructure as _0x3dd22b}from'@univerjs/core';import{RichTextEditingMutation as _0x2b017e,UniverDocsPlugin as _0x1bad7e}from'@univerjs/docs';import{UniverLicensePlugin as _0x1111a2}from'@univerjs-pro/license';function C(_0x33e3bd,_0x32f7ab,_0x3849bc){const _0x905eb0=_0x3539;if(_0x33e3bd[_0x905eb0(0x1ff)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x20a),_0x905eb0(0x1ae)]:[_0x905eb0(0x21a),_0x905eb0(0x1fd)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ff)])||_0x33e3bd[_0x905eb0(0x1ab)]!=null&&!(_0x32f7ab===_0x905eb0(0x1ad)?[_0x905eb0(0x1e7),_0x905eb0(0x1f5),_0x905eb0(0x210)]:[_0x905eb0(0x1e7),_0x905eb0(0x1f5)])[_0x905eb0(0x1b0)](_0x33e3bd[_0x905eb0(0x1ab)])||_0x33e3bd[_0x905eb0(0x1cb)]!=null&&(!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1cb)])||_0x33e3bd[_0x905eb0(0x1cb)]<0x1)||_0x905eb0(0x1bc)in _0x33e3bd&&_0x33e3bd[_0x905eb0(0x1bc)]!=null&&(_0x32f7ab!=='footnote'||!Number['isInteger'](_0x33e3bd[_0x905eb0(0x1bc)])||_0x33e3bd[_0x905eb0(0x1bc)]<0x0||_0x33e3bd['columnCount']>0x4)||_0x33e3bd[_0x905eb0(0x218)]!=null&&(typeof _0x33e3bd['numberFormat']!='string'||_0x33e3bd[_0x905eb0(0x218)]['length']===0x0))return!0x1;for(let _0x328c56 of[_0x33e3bd[_0x905eb0(0x1b1)],_0x33e3bd[_0x905eb0(0x1f8)],_0x33e3bd['continuationNotice']])if(_0x328c56!=null&&(_0x3849bc!=null||_0x35465e(_0x328c56)[_0x905eb0(0x1e9)]>0x0))return!0x1;return!0x0;}function w(_0x14e80d,_0x5ba25c,_0x55fdfe){const _0x55ce38=_0x3539;var _0x5b4fa3,_0x1e3646;if(_0x5ba25c[_0x55ce38(0x1ba)]!=null&&!C(_0x5ba25c[_0x55ce38(0x1ba)],_0x55fdfe,_0x5ba25c[_0x55ce38(0x1af)]))return!0x1;let _0x10c278=((_0x5b4fa3=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x5b4fa3=_0x5b4fa3[_0x55ce38(0x1bd)])==null?void 0x0:_0x5b4fa3[_0x55ce38(0x1c6)](_0x119f1e=>_0x119f1e[_0x55ce38(0x1af)]===_0x5ba25c[_0x55ce38(0x1af)]))??-0x1;if(_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x10c278<0x0)return!0x1;let _0x4e55ea=_0x5ba25c[_0x55ce38(0x1af)]==null?_0x14e80d[_0x55ce38(0x1dc)]:(_0x1e3646=_0x14e80d['body'])==null||(_0x1e3646=_0x1e3646[_0x55ce38(0x1bd)])==null?void 0x0:_0x1e3646[_0x10c278]['noteProperties'],_0x5eee19=_0x5ba25c[_0x55ce38(0x1ba)]==null?void 0x0:_0x1ea835['deepClone'](_0x5ba25c['settings']),_0x3e6177=_0x5ba25c[_0x55ce38(0x1af)]==null?['noteSettings']:['body',_0x55ce38(0x1bd),_0x10c278,_0x55ce38(0x1cf)],_0x49ce7a=_0x4f86a5[_0x55ce38(0x1f9)](),_0x37e190=null;if(_0x1ea835['diffValue'](_0x4e55ea==null?void 0x0:_0x4e55ea[_0x55fdfe],_0x5eee19)||(_0x37e190=_0x4e55ea==null?_0x49ce7a[_0x55ce38(0x1d1)](_0x3e6177,{[_0x55fdfe]:_0x5eee19}):_0x5ba25c[_0x55ce38(0x1af)]!=null&&_0x5eee19==null&&Object[_0x55ce38(0x215)](_0x4e55ea)[_0x55ce38(0x205)](_0x27fe98=>_0x27fe98===_0x55fdfe)?_0x49ce7a[_0x55ce38(0x1e2)](_0x3e6177,_0x4e55ea):_0x49ce7a[_0x55ce38(0x1e4)]([..._0x3e6177,_0x55fdfe],_0x4e55ea[_0x55fdfe],_0x5eee19)),_0x5ba25c['suppressEndnotes']!=null){var _0x26653;if(_0x55fdfe!==_0x55ce38(0x1f4)||_0x5ba25c['sectionId']==null||typeof _0x5ba25c[_0x55ce38(0x201)]!=_0x55ce38(0x1d4))return!0x1;let _0x7bb256=(_0x26653=_0x14e80d[_0x55ce38(0x1b5)])==null||(_0x26653=_0x26653[_0x55ce38(0x1bd)])==null?void 0x0:_0x26653[_0x10c278][_0x55ce38(0x201)];_0x7bb256!==_0x5ba25c['suppressEndnotes']&&(_0x37e190=_0x4f86a5[_0x55ce38(0x1d2)](_0x37e190,_0x49ce7a[_0x55ce38(0x1e4)]([_0x55ce38(0x1b5),'sectionBreaks',_0x10c278,_0x55ce38(0x201)],_0x7bb256,_0x5ba25c[_0x55ce38(0x201)])));}return _0x37e190;}function T(_0x4009fa,_0x165f31,_0x51196c){const _0x1c643e=_0x3539;if(!_0x165f31)return!0x1;let _0x39184d=_0x4009fa[_0x1c643e(0x1fc)](_0x28d7f0)['getUnit'](_0x165f31[_0x1c643e(0x1df)],_0x45c27a[_0x1c643e(0x1c8)]),_0x258926=_0x39184d==null?void 0x0:_0x39184d['getSnapshot']();if(!_0x258926||_0x258926[_0x1c643e(0x1f6)][_0x1c643e(0x1d7)]!==_0x25b4a1[_0x1c643e(0x214)])return!0x1;let _0x1b59cf=w(_0x258926,_0x165f31,_0x51196c);return _0x1b59cf===!0x1||_0x4f86a5[_0x1c643e(0x1ea)](_0x1b59cf)?!0x1:!!_0x4009fa['get'](_0xbc5180)[_0x1c643e(0x1d3)](_0x2b017e['id'],{'unitId':_0x165f31['unitId'],'segmentId':'','historyAction':_0x1c643e(0x212)+_0x51196c+_0x1c643e(0x1b9),'actions':_0x1b59cf,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}const E={'id':'doc.command.set-footnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x510078,_0x44f459)=>T(_0x510078,_0x44f459,'footnote')},D={'id':'doc.command.set-endnote-settings','type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x49e484,_0x10e07f)=>T(_0x49e484,_0x10e07f,'endnote')};function O(_0x3b0436,_0x57ee53){const _0x575243=_0x4600df;return(_0x3b0436==null?void 0x0:_0x3b0436[_0x575243(0x1f6)][_0x575243(0x1d7)])===_0x25b4a1['TRADITIONAL']&&!!_0x3b0436[_0x575243(0x1b5)]&&Number[_0x575243(0x1dd)](_0x57ee53)&&_0x57ee53>=0x0&&_0x57ee53<_0x3b0436[_0x575243(0x1b5)][_0x575243(0x1c7)][_0x575243(0x1e9)]-0x1;}function k(_0x2ec1d8,_0x272edc,_0x55f525){const _0xac4721=_0x4600df;var _0x169563,_0x1c06bd;if(_0x272edc[_0xac4721(0x1ba)]===void 0x0&&_0x272edc['suppressEndnotes']===void 0x0)return null;let _0x3690dc=_0x272edc[_0xac4721(0x1af)]==null?(_0x169563=_0x2ec1d8[_0xac4721(0x1dc)])==null?void 0x0:_0x169563[_0x55f525]:(_0x1c06bd=_0x2ec1d8['body'])==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1bd)])==null||(_0x1c06bd=_0x1c06bd['find'](_0x23842c=>_0x23842c[_0xac4721(0x1af)]===_0x272edc['sectionId']))==null||(_0x1c06bd=_0x1c06bd[_0xac4721(0x1cf)])==null?void 0x0:_0x1c06bd[_0x55f525];return w(_0x2ec1d8,{'settings':_0x272edc[_0xac4721(0x1ba)]===void 0x0?_0x3690dc??null:_0x272edc[_0xac4721(0x1ba)],'sectionId':_0x272edc['sectionId'],'suppressEndnotes':_0x272edc[_0xac4721(0x201)]},_0x55f525);}function A(_0x515098,_0x3f38d2,_0x4b3921){const _0x3f0d98=_0x4600df;var _0x22976a,_0x3ae86a,_0x5cf51c;if(!_0x3f38d2||_0x3f38d2['segmentId'])return!0x1;let _0x5eda21=_0x515098[_0x3f0d98(0x1fc)](_0x28d7f0)['getUnit'](_0x3f38d2['unitId'],_0x45c27a[_0x3f0d98(0x1c8)]),_0x329c5a=_0x5eda21==null?void 0x0:_0x5eda21[_0x3f0d98(0x1b7)](),{offset:_0x29dcbf}=_0x3f38d2;if(!O(_0x329c5a,_0x29dcbf))return!0x1;let _0x1fef75=k(_0x329c5a,_0x3f38d2,_0x4b3921);if(_0x1fef75===!0x1)return!0x1;let _0x415c01=_0x3f38d2[_0x3f0d98(0x1ed)]??_0x31c553(0xc);if((_0x22976a=_0x329c5a[_0x3f0d98(0x1bf)])!=null&&_0x22976a[_0x415c01]||(_0x3ae86a=_0x329c5a['headers'])!=null&&_0x3ae86a[_0x415c01]||(_0x5cf51c=_0x329c5a[_0x3f0d98(0x1cc)])!=null&&_0x5cf51c[_0x415c01])return!0x1;let _0x55959a=_0x1ea835[_0x3f0d98(0x1e0)]({'type':_0x4b3921,'noteId':_0x415c01,'body':_0x3f38d2[_0x3f0d98(0x1b5)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':_0x57afb1(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':_0x4111f5(new Set()),'startIndex':0x1}]},'customMark':_0x3f38d2['customMark'],'referenceTextStyle':_0x3f38d2[_0x3f0d98(0x1c3)],'tableSource':_0x3f38d2[_0x3f0d98(0x206)],'drawings':_0x3f38d2['drawings'],'drawingsOrder':_0x3f38d2['drawingsOrder'],'lists':_0x3f38d2[_0x3f0d98(0x1d0)]});if(_0x3dd22b({'notes':{[_0x415c01]:_0x55959a}})[_0x3f0d98(0x1e9)]>0x0)return!0x1;let _0x48c68f=new _0x7c13a3();_0x29dcbf>0x0&&_0x48c68f[_0x3f0d98(0x1b3)](_0x29dcbf),_0x48c68f[_0x3f0d98(0x200)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x4b3921===_0x3f0d98(0x1ad)?_0x1f509c[_0x3f0d98(0x1ce)]:_0x1f509c['ENDNOTE'],'rangeId':_0x31c553(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x415c01}}]});let _0x4872a4=_0x4f86a5['getInstance'](),_0x2c37ec=_0x329c5a['notes']==null?_0x4872a4[_0x3f0d98(0x1d1)]([_0x3f0d98(0x1bf)],{[_0x415c01]:_0x55959a}):_0x4872a4[_0x3f0d98(0x1d1)](['notes',_0x415c01],_0x55959a);return!!_0x515098[_0x3f0d98(0x1fc)](_0xbc5180)[_0x3f0d98(0x1d3)](_0x2b017e['id'],{'unitId':_0x3f38d2[_0x3f0d98(0x1df)],'segmentId':'','historyAction':_0x3f0d98(0x1b6)+_0x4b3921,'actions':_0x4f86a5['compose'](_0x4f86a5[_0x3f0d98(0x1d2)](_0x1fef75,_0x2c37ec),_0x4872a4[_0x3f0d98(0x1ef)](_0x48c68f[_0x3f0d98(0x1f2)](),[_0x3f0d98(0x1b5)])),'textRanges':[{'segmentId':_0x415c01,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function j(_0x975d8f,_0x50c57c,_0x46b976){const _0x20d8d9=_0x4600df;var _0x408632,_0xa10cf8;if(!_0x50c57c)return!0x1;let _0x1a6994=_0x975d8f['get'](_0x28d7f0)[_0x20d8d9(0x211)](_0x50c57c[_0x20d8d9(0x1df)],_0x45c27a[_0x20d8d9(0x1c8)]),_0x4b5235=_0x1a6994==null?void 0x0:_0x1a6994[_0x20d8d9(0x1b7)](),_0x4a60f1=_0x4b5235==null||(_0x408632=_0x4b5235[_0x20d8d9(0x1bf)])==null?void 0x0:_0x408632[_0x50c57c[_0x20d8d9(0x1ed)]],_0x522ce6=_0x4b5235==null||(_0xa10cf8=_0x4b5235[_0x20d8d9(0x1b5)])==null||(_0xa10cf8=_0xa10cf8[_0x20d8d9(0x1be)])==null?void 0x0:_0xa10cf8[_0x20d8d9(0x1ee)](_0x3b3029=>{const _0x2d9166=_0x20d8d9;var _0x2c1b3b;return(_0x3b3029['rangeType']===_0x1f509c[_0x2d9166(0x1ce)]||_0x3b3029[_0x2d9166(0x20b)]===_0x1f509c[_0x2d9166(0x1e3)])&&((_0x2c1b3b=_0x3b3029[_0x2d9166(0x1c0)])==null?void 0x0:_0x2c1b3b['noteId'])===_0x50c57c['noteId'];});if(!_0x4b5235||_0x4b5235[_0x20d8d9(0x1f6)][_0x20d8d9(0x1d7)]!==_0x25b4a1[_0x20d8d9(0x214)]||!_0x4a60f1||_0x4a60f1['type']!==_0x46b976||!_0x522ce6)return!0x1;let _0x4c3984=new _0x7c13a3();_0x522ce6['startIndex']>0x0&&_0x4c3984[_0x20d8d9(0x1b3)](_0x522ce6[_0x20d8d9(0x213)]),_0x4c3984[_0x20d8d9(0x1b4)](0x1);let _0x45f4fb=_0x4f86a5[_0x20d8d9(0x1f9)]();return!!_0x975d8f['get'](_0xbc5180)[_0x20d8d9(0x1d3)](_0x2b017e['id'],{'unitId':_0x50c57c[_0x20d8d9(0x1df)],'segmentId':'','historyAction':_0x20d8d9(0x219)+_0x46b976,'actions':_0x4f86a5[_0x20d8d9(0x1d2)](_0x45f4fb[_0x20d8d9(0x1ef)](_0x4c3984[_0x20d8d9(0x1f2)](),[_0x20d8d9(0x1b5)]),_0x45f4fb[_0x20d8d9(0x1e2)]([_0x20d8d9(0x1bf),_0x50c57c[_0x20d8d9(0x1ed)]],_0x4a60f1)),'textRanges':[{'startOffset':_0x522ce6['startIndex'],'endOffset':_0x522ce6[_0x20d8d9(0x213)],'collapsed':!0x0}],'debounce':!0x1});}const M={'id':_0x4600df(0x1d6),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x30721f,_0x5e0680)=>A(_0x30721f,_0x5e0680,_0x4600df(0x1ad))},N={'id':_0x4600df(0x20e),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x5c98f8,_0x2d4464)=>j(_0x5c98f8,_0x2d4464,_0x4600df(0x1ad))},P={'id':_0x4600df(0x1d5),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0xfdb615,_0x2eb765)=>A(_0xfdb615,_0x2eb765,_0x4600df(0x1f4))},F={'id':_0x4600df(0x1de),'type':_0x2beccf[_0x4600df(0x1fb)],'handler':(_0x10046c,_0x7c3427)=>j(_0x10046c,_0x7c3427,_0x4600df(0x1f4))};function _0x3539(_0xfed6f0,_0x15771d){_0xfed6f0=_0xfed6f0-0x1aa;const _0x4763c3=_0x4763();let _0x35396c=_0x4763c3[_0xfed6f0];return _0x35396c;}var I=_0x4600df(0x1da),L=_0x4600df(0x1c4);const R={};function z(_0x4acdba,_0x4c2d57){return function(_0x366aa1,_0x2f02f3){_0x4c2d57(_0x366aa1,_0x2f02f3,_0x4acdba);};}function B(_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e){const _0x544728=_0x4600df;var _0x3fb182=arguments[_0x544728(0x1e9)],_0x2a8e7f=_0x3fb182<0x3?_0x245561:_0x4e181e===null?_0x4e181e=Object['getOwnPropertyDescriptor'](_0x245561,_0x22bd4d):_0x4e181e,_0x196d1e;if(typeof Reflect==_0x544728(0x1ca)&&typeof Reflect[_0x544728(0x1e1)]==_0x544728(0x1d8))_0x2a8e7f=Reflect['decorate'](_0x3b3328,_0x245561,_0x22bd4d,_0x4e181e);else{for(var _0x3447da=_0x3b3328[_0x544728(0x1e9)]-0x1;_0x3447da>=0x0;_0x3447da--)(_0x196d1e=_0x3b3328[_0x3447da])&&(_0x2a8e7f=(_0x3fb182<0x3?_0x196d1e(_0x2a8e7f):_0x3fb182>0x3?_0x196d1e(_0x245561,_0x22bd4d,_0x2a8e7f):_0x196d1e(_0x245561,_0x22bd4d))||_0x2a8e7f);}return _0x3fb182>0x3&&_0x2a8e7f&&Object[_0x544728(0x1e5)](_0x245561,_0x22bd4d,_0x2a8e7f),_0x2a8e7f;}function V(_0xe7b87e){'@babel/helpers - typeof';const _0x2e8c10=_0x4600df;return V=typeof Symbol=='function'&&typeof Symbol[_0x2e8c10(0x1e6)]==_0x2e8c10(0x1aa)?function(_0x29a605){return typeof _0x29a605;}:function(_0xbf3c23){const _0x43558b=_0x2e8c10;return _0xbf3c23&&typeof Symbol==_0x43558b(0x1d8)&&_0xbf3c23[_0x43558b(0x217)]===Symbol&&_0xbf3c23!==Symbol[_0x43558b(0x209)]?_0x43558b(0x1aa):typeof _0xbf3c23;},V(_0xe7b87e);}function H(_0x1e6791,_0x117acd){const _0x3a8ada=_0x4600df;if(V(_0x1e6791)!='object'||!_0x1e6791)return _0x1e6791;var _0x195df2=_0x1e6791[Symbol[_0x3a8ada(0x1ac)]];if(_0x195df2!==void 0x0){var _0x2ea2bb=_0x195df2['call'](_0x1e6791,_0x117acd||_0x3a8ada(0x1b2));if(V(_0x2ea2bb)!=_0x3a8ada(0x1ca))return _0x2ea2bb;throw TypeError(_0x3a8ada(0x20c));}return(_0x117acd===_0x3a8ada(0x1eb)?String:Number)(_0x1e6791);}function U(_0x287226){const _0x5c9d54=_0x4600df;var _0x5adef8=H(_0x287226,_0x5c9d54(0x1eb));return V(_0x5adef8)=='symbol'?_0x5adef8:_0x5adef8+'';}function W(_0x1972e8,_0x3af945,_0x2a6d37){const _0x4aae17=_0x4600df;return(_0x3af945=U(_0x3af945))in _0x1972e8?Object[_0x4aae17(0x1e5)](_0x1972e8,_0x3af945,{'value':_0x2a6d37,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1972e8[_0x3af945]=_0x2a6d37,_0x1972e8;}function _0x4763(){const _0x152904=['eachPage','getUnit','set-','startIndex','TRADITIONAL','keys','22490fUUvqO','constructor','numberFormat','delete-','docEnd','symbol','restart','toPrimitive','footnote','beneathText','sectionId','includes','separator','default','retain','delete','body','insert-','getSnapshot','_configService','-settings','settings','setConfig','columnCount','sectionBreaks','customRanges','notes','properties','packageName','45SHzOiT','referenceTextStyle','1.0.1','52CcznWu','findIndex','dataStream','UNIVER_DOC','333977nlABkg','object','startNumber','footers','193854IEfIBZ','FOOTNOTE','noteProperties','lists','insertOp','compose','syncExecuteCommand','boolean','doc.command.insert-endnote','doc.command.insert-footnote','documentFlavor','function','42LVboyn','@univerjs-pro/docs-reference','_injector','noteSettings','isInteger','doc.command.delete-endnote','unitId','deepClone','decorate','removeOp','ENDNOTE','replaceOp','defineProperty','iterator','continuous','pluginName','length','isNoop','string','118415BMCwtc','noteId','find','editOp','56424WddhYL','_config','serialize','_commandService','endnote','eachSect','documentStyle','260200zhkUof','continuationSeparator','getInstance','UNIVER_DOCS_REFERENCE_PLUGIN','COMMAND','get','sectEnd','docs-reference.config','position','insert','suppressEndnotes','840UIRuGH','type','disposeWithMe','every','tableSource','forEach','18610xbmAoU','prototype','pageBottom','rangeType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','doc.command.delete-footnote','86zXxotq'];_0x4763=function(){return _0x152904;};return _0x4763();}let G=class extends _0x26c983{constructor(_0x184b0f=R,_0x27aa9d,_0x3929a9,_0x4cae4b){const _0x17a5c2=_0x4600df;super(),this[_0x17a5c2(0x1f1)]=_0x184b0f,this[_0x17a5c2(0x1db)]=_0x27aa9d,this[_0x17a5c2(0x1b8)]=_0x3929a9,this[_0x17a5c2(0x1f3)]=_0x4cae4b;let {..._0x5269ea}=_0x50c30f({},R,this[_0x17a5c2(0x1f1)]);this[_0x17a5c2(0x1b8)][_0x17a5c2(0x1bb)](_0x17a5c2(0x1fe),_0x5269ea);}[_0x4600df(0x20d)](){const _0x524f9d=_0x4600df;[M,N,E,P,F,D][_0x524f9d(0x207)](_0x19642b=>this[_0x524f9d(0x204)](this[_0x524f9d(0x1f3)]['registerCommand'](_0x19642b)));}};W(G,_0x4600df(0x1e8),_0x4600df(0x1fa)),W(G,_0x4600df(0x1c1),I),W(G,'version',L),W(G,_0x4600df(0x203),_0x45c27a[_0x4600df(0x1c8)]),G=B([_0x126d9d(_0x1111a2,_0x1bad7e),z(0x1,_0x4b5c4b(_0x38617d)),z(0x2,_0x19a8fd),z(0x3,_0xbc5180)],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 _0xed4d(_0x3d8c57,_0x1c1d37){_0x3d8c57=_0x3d8c57-0x15d;const _0x3fd52c=_0x3fd5();let _0xed4dd7=_0x3fd52c[_0x3d8c57];return _0xed4dd7;}(function(_0x1e5fb1,_0x1a630a){const _0x314154=_0xed4d,_0x4c787a=_0x1e5fb1();while(!![]){try{const _0x543fb6=parseInt(_0x314154(0x18e))/0x1*(parseInt(_0x314154(0x196))/0x2)+parseInt(_0x314154(0x184))/0x3+parseInt(_0x314154(0x164))/0x4+parseInt(_0x314154(0x183))/0x5+parseInt(_0x314154(0x171))/0x6*(-parseInt(_0x314154(0x165))/0x7)+-parseInt(_0x314154(0x182))/0x8+-parseInt(_0x314154(0x18f))/0x9*(parseInt(_0x314154(0x17a))/0xa);if(_0x543fb6===_0x1a630a)break;else _0x4c787a['push'](_0x4c787a['shift']());}catch(_0x35e692){_0x4c787a['push'](_0x4c787a['shift']());}}}(_0x3fd5,0x41784),function(_0x536dab,_0xcd2de1){const _0x201b0b=_0xed4d;typeof exports=='object'&&typeof module<'u'?_0xcd2de1(require('@univerjs-pro/docs-reference'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define=='function'&&define[_0x201b0b(0x195)]?define([_0x201b0b(0x160),_0x201b0b(0x16d),_0x201b0b(0x169)],_0xcd2de1):(_0x536dab=typeof globalThis<'u'?globalThis:_0x536dab||self,_0xcd2de1(_0x536dab[_0x201b0b(0x18a)],_0x536dab['UniverCore'],_0x536dab[_0x201b0b(0x17d)]));}(this,function(_0x5b2d4a,_0x51296d,_0x2e6067){const _0xd80e14=_0xed4d;var _0x3ac40a=class extends _0x2e6067['FDocument']{[_0xd80e14(0x180)](_0x26ea18,_0x4396fa={}){const _0x52dbb5=_0xd80e14;let _0x58023a=(0x0,_0x51296d[_0x52dbb5(0x162)])(0xc);return this[_0x52dbb5(0x16f)][_0x52dbb5(0x168)](_0x51296d[_0x52dbb5(0x15f)])[_0x52dbb5(0x17f)](_0x5b2d4a[_0x52dbb5(0x185)]['id'],{..._0x4396fa,'unitId':this['id'],'offset':_0x26ea18,'noteId':_0x58023a})?_0x58023a:null;}[_0xd80e14(0x16c)](){const _0x6687c8=_0xd80e14;var _0x4f49ae;let _0x1d747d=this['getDocumentDataModel']()[_0x6687c8(0x193)]();return(((_0x4f49ae=_0x1d747d['body'])==null?void 0x0:_0x4f49ae['customRanges'])??[])[_0x6687c8(0x18b)](_0xaf9bc5=>_0xaf9bc5[_0x6687c8(0x177)]===_0x51296d[_0x6687c8(0x166)]['FOOTNOTE'])[_0x6687c8(0x17c)]((_0x3392ca,_0x156e9f)=>_0x3392ca[_0x6687c8(0x181)]-_0x156e9f['startIndex'])['flatMap'](_0x301848=>{const _0x2f6c5a=_0x6687c8;var _0x208fcf,_0x5aacf9;let _0x2b7ad3=(_0x208fcf=_0x301848[_0x2f6c5a(0x163)])==null?void 0x0:_0x208fcf[_0x2f6c5a(0x16e)],_0x3412bb=typeof _0x2b7ad3==_0x2f6c5a(0x194)?(_0x5aacf9=_0x1d747d[_0x2f6c5a(0x192)])==null?void 0x0:_0x5aacf9[_0x2b7ad3]:void 0x0;return _0x3412bb?[_0x51296d[_0x2f6c5a(0x174)][_0x2f6c5a(0x16b)](_0x3412bb)]:[];});}[_0xd80e14(0x176)](_0x247604){const _0x2aab80=_0xd80e14;return this[_0x2aab80(0x16f)]['get'](_0x51296d[_0x2aab80(0x15f)])[_0x2aab80(0x17f)](_0x5b2d4a[_0x2aab80(0x191)]['id'],{'unitId':this['id'],'noteId':_0x247604});}[_0xd80e14(0x173)](_0x314729){const _0x24558d=_0xd80e14;var _0x14400f,_0x47d428;let _0x175f75=this[_0x24558d(0x179)]()[_0x24558d(0x193)](),_0x1a6810=_0x314729==null?(_0x14400f=_0x175f75[_0x24558d(0x161)])==null?void 0x0:_0x14400f['footnote']:(_0x47d428=_0x175f75[_0x24558d(0x188)])==null||(_0x47d428=_0x47d428[_0x24558d(0x15e)])==null||(_0x47d428=_0x47d428[_0x24558d(0x18c)](_0x123e1a=>_0x123e1a[_0x24558d(0x172)]===_0x314729))==null||(_0x47d428=_0x47d428[_0x24558d(0x167)])==null?void 0x0:_0x47d428[_0x24558d(0x170)];return _0x1a6810==null?void 0x0:_0x51296d[_0x24558d(0x174)][_0x24558d(0x16b)](_0x1a6810);}[_0xd80e14(0x187)](_0x407cd2,_0x27e0c8){const _0x159ecf=_0xd80e14;return this['_injector'][_0x159ecf(0x168)](_0x51296d[_0x159ecf(0x15f)])['syncExecuteCommand'](_0x5b2d4a[_0x159ecf(0x18d)]['id'],{'unitId':this['id'],'settings':_0x407cd2,'sectionId':_0x27e0c8});}[_0xd80e14(0x190)](_0x10e569,_0x351760={}){const _0x3649b3=_0xd80e14;let _0x19a940=(0x0,_0x51296d['generateRandomId'])(0xc);return this[_0x3649b3(0x16f)][_0x3649b3(0x168)](_0x51296d[_0x3649b3(0x15f)])[_0x3649b3(0x17f)](_0x5b2d4a['InsertDocumentEndnoteCommand']['id'],{..._0x351760,'unitId':this['id'],'offset':_0x10e569,'noteId':_0x19a940})?_0x19a940:null;}[_0xd80e14(0x175)](){const _0x3c6a2c=_0xd80e14;var _0x2525fa;let _0x55863e=this[_0x3c6a2c(0x179)]()[_0x3c6a2c(0x193)]();return(((_0x2525fa=_0x55863e[_0x3c6a2c(0x188)])==null?void 0x0:_0x2525fa[_0x3c6a2c(0x186)])??[])[_0x3c6a2c(0x18b)](_0x79b7f6=>_0x79b7f6[_0x3c6a2c(0x177)]===_0x51296d[_0x3c6a2c(0x166)]['ENDNOTE'])['sort']((_0xd6189e,_0xa24fbf)=>_0xd6189e[_0x3c6a2c(0x181)]-_0xa24fbf['startIndex'])[_0x3c6a2c(0x178)](_0x184a82=>{const _0x124a31=_0x3c6a2c;var _0xda0f94,_0x2893f7;let _0x1ef9e1=(_0xda0f94=_0x184a82[_0x124a31(0x163)])==null?void 0x0:_0xda0f94[_0x124a31(0x16e)],_0x1d5bbd=typeof _0x1ef9e1==_0x124a31(0x194)?(_0x2893f7=_0x55863e[_0x124a31(0x192)])==null?void 0x0:_0x2893f7[_0x1ef9e1]:void 0x0;return _0x1d5bbd?[_0x51296d[_0x124a31(0x174)][_0x124a31(0x16b)](_0x1d5bbd)]:[];});}[_0xd80e14(0x189)](_0x258f13){const _0x33af99=_0xd80e14;return this['_injector'][_0x33af99(0x168)](_0x51296d['ICommandService'])[_0x33af99(0x17f)](_0x5b2d4a[_0x33af99(0x197)]['id'],{'unitId':this['id'],'noteId':_0x258f13});}[_0xd80e14(0x16a)](_0x5f5b0a){const _0x2b41ca=_0xd80e14;var _0x55d35e,_0x3e42b7;let _0x3d097e=this[_0x2b41ca(0x179)]()[_0x2b41ca(0x193)](),_0x11fe41=_0x5f5b0a==null?(_0x55d35e=_0x3d097e[_0x2b41ca(0x161)])==null?void 0x0:_0x55d35e[_0x2b41ca(0x17b)]:(_0x3e42b7=_0x3d097e[_0x2b41ca(0x188)])==null||(_0x3e42b7=_0x3e42b7[_0x2b41ca(0x15e)])==null||(_0x3e42b7=_0x3e42b7['find'](_0x460f6d=>_0x460f6d['sectionId']===_0x5f5b0a))==null||(_0x3e42b7=_0x3e42b7[_0x2b41ca(0x167)])==null?void 0x0:_0x3e42b7[_0x2b41ca(0x17b)];return _0x11fe41==null?void 0x0:_0x51296d[_0x2b41ca(0x174)]['deepClone'](_0x11fe41);}['setEndnoteSettings'](_0x335eb0,_0x53d59a){const _0x1b1e74=_0xd80e14;return this[_0x1b1e74(0x16f)][_0x1b1e74(0x168)](_0x51296d['ICommandService'])[_0x1b1e74(0x17f)](_0x5b2d4a['SetDocumentEndnoteSettingsCommand']['id'],{'unitId':this['id'],'settings':_0x335eb0,'sectionId':_0x53d59a});}};_0x2e6067[_0xd80e14(0x15d)][_0xd80e14(0x17e)](_0x3ac40a);}));function _0x3fd5(){const _0x26627d=['getSnapshot','string','amd','814xhGEcD','DeleteDocumentEndnoteCommand','FDocument','sectionBreaks','ICommandService','@univerjs-pro/docs-reference','noteSettings','generateRandomId','properties','1772520nOtwGD','107191ocUmrz','CustomRangeType','noteProperties','get','@univerjs/docs/facade','getEndnoteSettings','deepClone','getFootnotes','@univerjs/core','noteId','_injector','footnote','210OmhAZM','sectionId','getFootnoteSettings','Tools','getEndnotes','deleteFootnote','rangeType','flatMap','getDocumentDataModel','10JzhKBI','endnote','sort','UniverDocsFacade','extend','syncExecuteCommand','insertFootnote','startIndex','945736isgVLx','7470slOUpy','671067hpBzdt','InsertDocumentFootnoteCommand','customRanges','setFootnoteSettings','body','deleteEndnote','UniverProDocsReference','filter','find','SetDocumentFootnoteSettingsCommand','1051FwAOfI','1563606wFWxne','insertEndnote','DeleteDocumentFootnoteCommand','notes'];_0x3fd5=function(){return _0x26627d;};return _0x3fd5();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x20df(_0x112aea,_0x3e8ab1){_0x112aea=_0x112aea-0x145;const _0xe5927d=_0xe592();let _0x20df0d=_0xe5927d[_0x112aea];return _0x20df0d;}(function(_0x5ad8f1,_0x529c99){const _0x80ae4e=_0x20df,_0x4a533b=_0x5ad8f1();while(!![]){try{const _0x308a93=-parseInt(_0x80ae4e(0x16e))/0x1+parseInt(_0x80ae4e(0x158))/0x2*(parseInt(_0x80ae4e(0x1aa))/0x3)+parseInt(_0x80ae4e(0x14b))/0x4*(parseInt(_0x80ae4e(0x185))/0x5)+parseInt(_0x80ae4e(0x1d6))/0x6*(parseInt(_0x80ae4e(0x199))/0x7)+-parseInt(_0x80ae4e(0x149))/0x8*(parseInt(_0x80ae4e(0x15d))/0x9)+parseInt(_0x80ae4e(0x1b2))/0xa+-parseInt(_0x80ae4e(0x166))/0xb;if(_0x308a93===_0x529c99)break;else _0x4a533b['push'](_0x4a533b['shift']());}catch(_0x5d1cec){_0x4a533b['push'](_0x4a533b['shift']());}}}(_0xe592,0x8325c),function(_0x4d5e86,_0x46bf75){const _0x5133c9=_0x20df;typeof exports==_0x5133c9(0x1c3)&&typeof module<'u'?_0x46bf75(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define==_0x5133c9(0x1d5)&&define[_0x5133c9(0x1d2)]?define([_0x5133c9(0x172),_0x5133c9(0x1ca),_0x5133c9(0x146),_0x5133c9(0x1b9)],_0x46bf75):(_0x4d5e86=typeof globalThis<'u'?globalThis:_0x4d5e86||self,_0x46bf75(_0x4d5e86[_0x5133c9(0x1c2)]={},_0x4d5e86[_0x5133c9(0x16a)],_0x4d5e86[_0x5133c9(0x198)],_0x4d5e86['UniverProLicense']));}(this,function(_0x506898,_0x38833c,_0x4627b8,_0x564f23){const _0x320486=_0x20df;Object['defineProperty'](_0x506898,Symbol[_0x320486(0x168)],{'value':_0x320486(0x19a)});function _0x318221(_0x2be775,_0x5a669a,_0x256238){const _0x3fefb3=_0x320486;if(_0x2be775[_0x3fefb3(0x16c)]!=null&&!(_0x5a669a===_0x3fefb3(0x1c5)?[_0x3fefb3(0x19f),_0x3fefb3(0x180)]:['docEnd',_0x3fefb3(0x1ce)])[_0x3fefb3(0x188)](_0x2be775['position'])||_0x2be775[_0x3fefb3(0x175)]!=null&&!(_0x5a669a==='footnote'?[_0x3fefb3(0x1a0),_0x3fefb3(0x195),_0x3fefb3(0x194)]:[_0x3fefb3(0x1a0),_0x3fefb3(0x195)])[_0x3fefb3(0x188)](_0x2be775[_0x3fefb3(0x175)])||_0x2be775[_0x3fefb3(0x15e)]!=null&&(!Number[_0x3fefb3(0x1b3)](_0x2be775[_0x3fefb3(0x15e)])||_0x2be775[_0x3fefb3(0x15e)]<0x1)||_0x3fefb3(0x17e)in _0x2be775&&_0x2be775[_0x3fefb3(0x17e)]!=null&&(_0x5a669a!==_0x3fefb3(0x1c5)||!Number[_0x3fefb3(0x1b3)](_0x2be775['columnCount'])||_0x2be775['columnCount']<0x0||_0x2be775['columnCount']>0x4)||_0x2be775['numberFormat']!=null&&(typeof _0x2be775[_0x3fefb3(0x1b7)]!='string'||_0x2be775[_0x3fefb3(0x1b7)][_0x3fefb3(0x1bb)]===0x0))return!0x1;for(let _0x1fff0f of[_0x2be775[_0x3fefb3(0x1b5)],_0x2be775[_0x3fefb3(0x18e)],_0x2be775[_0x3fefb3(0x152)]])if(_0x1fff0f!=null&&(_0x256238!=null||(0x0,_0x38833c[_0x3fefb3(0x1b8)])(_0x1fff0f)['length']>0x0))return!0x1;return!0x0;}function _0x4a1aaf(_0x17f5ce,_0x2a6e78,_0x20c6be){const _0x39a318=_0x320486;var _0x122008,_0x326b5a;if(_0x2a6e78[_0x39a318(0x148)]!=null&&!_0x318221(_0x2a6e78[_0x39a318(0x148)],_0x20c6be,_0x2a6e78[_0x39a318(0x14a)]))return!0x1;let _0x555648=((_0x122008=_0x17f5ce['body'])==null||(_0x122008=_0x122008['sectionBreaks'])==null?void 0x0:_0x122008['findIndex'](_0x3969af=>_0x3969af[_0x39a318(0x14a)]===_0x2a6e78[_0x39a318(0x14a)]))??-0x1;if(_0x2a6e78[_0x39a318(0x14a)]!=null&&_0x555648<0x0)return!0x1;let _0x507853=_0x2a6e78[_0x39a318(0x14a)]==null?_0x17f5ce[_0x39a318(0x14c)]:(_0x326b5a=_0x17f5ce[_0x39a318(0x14f)])==null||(_0x326b5a=_0x326b5a[_0x39a318(0x18f)])==null?void 0x0:_0x326b5a[_0x555648][_0x39a318(0x160)],_0x2b68f7=_0x2a6e78[_0x39a318(0x148)]==null?void 0x0:_0x38833c[_0x39a318(0x193)][_0x39a318(0x1cc)](_0x2a6e78[_0x39a318(0x148)]),_0x31d015=_0x2a6e78[_0x39a318(0x14a)]==null?[_0x39a318(0x14c)]:[_0x39a318(0x14f),'sectionBreaks',_0x555648,_0x39a318(0x160)],_0x3286a1=_0x38833c[_0x39a318(0x15b)]['getInstance'](),_0x2855b7=null;if(_0x38833c[_0x39a318(0x193)][_0x39a318(0x14e)](_0x507853==null?void 0x0:_0x507853[_0x20c6be],_0x2b68f7)||(_0x2855b7=_0x507853==null?_0x3286a1[_0x39a318(0x145)](_0x31d015,{[_0x20c6be]:_0x2b68f7}):_0x2a6e78['sectionId']!=null&&_0x2b68f7==null&&Object[_0x39a318(0x1a6)](_0x507853)[_0x39a318(0x196)](_0x1a4c0d=>_0x1a4c0d===_0x20c6be)?_0x3286a1[_0x39a318(0x16b)](_0x31d015,_0x507853):_0x3286a1['replaceOp']([..._0x31d015,_0x20c6be],_0x507853[_0x20c6be],_0x2b68f7)),_0x2a6e78['suppressEndnotes']!=null){var _0x11cad8;if(_0x20c6be!==_0x39a318(0x161)||_0x2a6e78['sectionId']==null||typeof _0x2a6e78[_0x39a318(0x16f)]!=_0x39a318(0x1d0))return!0x1;let _0x17e9fc=(_0x11cad8=_0x17f5ce[_0x39a318(0x14f)])==null||(_0x11cad8=_0x11cad8['sectionBreaks'])==null?void 0x0:_0x11cad8[_0x555648][_0x39a318(0x16f)];_0x17e9fc!==_0x2a6e78[_0x39a318(0x16f)]&&(_0x2855b7=_0x38833c['JSONX'][_0x39a318(0x1c9)](_0x2855b7,_0x3286a1[_0x39a318(0x173)]([_0x39a318(0x14f),_0x39a318(0x18f),_0x555648,_0x39a318(0x16f)],_0x17e9fc,_0x2a6e78['suppressEndnotes'])));}return _0x2855b7;}function _0x4c29ff(_0x2d5e44,_0x1bb34c,_0x5096a0){const _0xd19cc9=_0x320486;if(!_0x1bb34c)return!0x1;let _0x53b79e=_0x2d5e44[_0xd19cc9(0x1a2)](_0x38833c[_0xd19cc9(0x165)])[_0xd19cc9(0x171)](_0x1bb34c[_0xd19cc9(0x19d)],_0x38833c[_0xd19cc9(0x17d)]['UNIVER_DOC']),_0x4f4ed=_0x53b79e==null?void 0x0:_0x53b79e['getSnapshot']();if(!_0x4f4ed||_0x4f4ed[_0xd19cc9(0x1b0)][_0xd19cc9(0x1d3)]!==_0x38833c[_0xd19cc9(0x162)][_0xd19cc9(0x170)])return!0x1;let _0x4338e2=_0x4a1aaf(_0x4f4ed,_0x1bb34c,_0x5096a0);return _0x4338e2===!0x1||_0x38833c[_0xd19cc9(0x15b)]['isNoop'](_0x4338e2)?!0x1:!!_0x2d5e44[_0xd19cc9(0x1a2)](_0x38833c[_0xd19cc9(0x186)])[_0xd19cc9(0x1bc)](_0x4627b8[_0xd19cc9(0x1ad)]['id'],{'unitId':_0x1bb34c[_0xd19cc9(0x19d)],'segmentId':'','historyAction':_0xd19cc9(0x18d)+_0x5096a0+_0xd19cc9(0x1a4),'actions':_0x4338e2,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x481d21={'id':_0x320486(0x179),'type':_0x38833c['CommandType'][_0x320486(0x19c)],'handler':(_0x4abf5c,_0x1ee85f)=>_0x4c29ff(_0x4abf5c,_0x1ee85f,_0x320486(0x1c5))},_0x21cbe6={'id':_0x320486(0x1a3),'type':_0x38833c['CommandType']['COMMAND'],'handler':(_0x425d6c,_0x4215f0)=>_0x4c29ff(_0x425d6c,_0x4215f0,'endnote')};function _0x48ed90(_0x57498a,_0x1cc8d7){const _0x149098=_0x320486;return(_0x57498a==null?void 0x0:_0x57498a[_0x149098(0x1b0)][_0x149098(0x1d3)])===_0x38833c[_0x149098(0x162)][_0x149098(0x170)]&&!!_0x57498a['body']&&Number['isInteger'](_0x1cc8d7)&&_0x1cc8d7>=0x0&&_0x1cc8d7<_0x57498a[_0x149098(0x14f)][_0x149098(0x1ab)]['length']-0x1;}function _0x301749(_0x23b26f,_0xfeb71e,_0x12fb7a){const _0x1b1ea9=_0x320486;var _0x2e26f9,_0xd06ddc;if(_0xfeb71e[_0x1b1ea9(0x148)]===void 0x0&&_0xfeb71e[_0x1b1ea9(0x16f)]===void 0x0)return null;let _0x2a9b91=_0xfeb71e['sectionId']==null?(_0x2e26f9=_0x23b26f[_0x1b1ea9(0x14c)])==null?void 0x0:_0x2e26f9[_0x12fb7a]:(_0xd06ddc=_0x23b26f[_0x1b1ea9(0x14f)])==null||(_0xd06ddc=_0xd06ddc[_0x1b1ea9(0x18f)])==null||(_0xd06ddc=_0xd06ddc[_0x1b1ea9(0x1af)](_0x3da6d2=>_0x3da6d2[_0x1b1ea9(0x14a)]===_0xfeb71e[_0x1b1ea9(0x14a)]))==null||(_0xd06ddc=_0xd06ddc[_0x1b1ea9(0x160)])==null?void 0x0:_0xd06ddc[_0x12fb7a];return _0x4a1aaf(_0x23b26f,{'settings':_0xfeb71e[_0x1b1ea9(0x148)]===void 0x0?_0x2a9b91??null:_0xfeb71e['settings'],'sectionId':_0xfeb71e[_0x1b1ea9(0x14a)],'suppressEndnotes':_0xfeb71e[_0x1b1ea9(0x16f)]},_0x12fb7a);}function _0x15ac1d(_0x260d6f,_0x5dd895,_0x3950f7){const _0x54d6f8=_0x320486;var _0x5883c2,_0x5a61c3,_0x2f5fff;if(!_0x5dd895||_0x5dd895[_0x54d6f8(0x189)])return!0x1;let _0x54ebc1=_0x260d6f[_0x54d6f8(0x1a2)](_0x38833c[_0x54d6f8(0x165)])['getUnit'](_0x5dd895[_0x54d6f8(0x19d)],_0x38833c[_0x54d6f8(0x17d)]['UNIVER_DOC']),_0x4e02f0=_0x54ebc1==null?void 0x0:_0x54ebc1[_0x54d6f8(0x17c)](),{offset:_0x9fc60c}=_0x5dd895;if(!_0x48ed90(_0x4e02f0,_0x9fc60c))return!0x1;let _0x31cbbe=_0x301749(_0x4e02f0,_0x5dd895,_0x3950f7);if(_0x31cbbe===!0x1)return!0x1;let _0xbbfbb7=_0x5dd895[_0x54d6f8(0x1bd)]??(0x0,_0x38833c[_0x54d6f8(0x18a)])(0xc);if((_0x5883c2=_0x4e02f0[_0x54d6f8(0x18c)])!=null&&_0x5883c2[_0xbbfbb7]||(_0x5a61c3=_0x4e02f0[_0x54d6f8(0x1c4)])!=null&&_0x5a61c3[_0xbbfbb7]||(_0x2f5fff=_0x4e02f0[_0x54d6f8(0x164)])!=null&&_0x2f5fff[_0xbbfbb7])return!0x1;let _0x48ce37=_0x38833c['Tools']['deepClone']({'type':_0x3950f7,'noteId':_0xbbfbb7,'body':_0x5dd895[_0x54d6f8(0x14f)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x38833c[_0x54d6f8(0x1a5)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x38833c[_0x54d6f8(0x1d4)])(new Set()),'startIndex':0x1}]},'customMark':_0x5dd895[_0x54d6f8(0x197)],'referenceTextStyle':_0x5dd895[_0x54d6f8(0x187)],'tableSource':_0x5dd895[_0x54d6f8(0x14d)],'drawings':_0x5dd895[_0x54d6f8(0x15f)],'drawingsOrder':_0x5dd895['drawingsOrder'],'lists':_0x5dd895['lists']});if((0x0,_0x38833c[_0x54d6f8(0x1c1)])({'notes':{[_0xbbfbb7]:_0x48ce37}})[_0x54d6f8(0x1bb)]>0x0)return!0x1;let _0x5bbd77=new _0x38833c['TextX']();_0x9fc60c>0x0&&_0x5bbd77[_0x54d6f8(0x1a1)](_0x9fc60c),_0x5bbd77[_0x54d6f8(0x19b)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x3950f7===_0x54d6f8(0x1c5)?_0x38833c[_0x54d6f8(0x1bf)][_0x54d6f8(0x1ac)]:_0x38833c[_0x54d6f8(0x1bf)][_0x54d6f8(0x150)],'rangeId':(0x0,_0x38833c[_0x54d6f8(0x18a)])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0xbbfbb7}}]});let _0x524571=_0x38833c[_0x54d6f8(0x15b)][_0x54d6f8(0x1c8)](),_0x3320cb=_0x4e02f0[_0x54d6f8(0x18c)]==null?_0x524571[_0x54d6f8(0x145)]([_0x54d6f8(0x18c)],{[_0xbbfbb7]:_0x48ce37}):_0x524571[_0x54d6f8(0x145)]([_0x54d6f8(0x18c),_0xbbfbb7],_0x48ce37);return!!_0x260d6f[_0x54d6f8(0x1a2)](_0x38833c[_0x54d6f8(0x186)])['syncExecuteCommand'](_0x4627b8[_0x54d6f8(0x1ad)]['id'],{'unitId':_0x5dd895[_0x54d6f8(0x19d)],'segmentId':'','historyAction':_0x54d6f8(0x16d)+_0x3950f7,'actions':_0x38833c[_0x54d6f8(0x15b)]['compose'](_0x38833c['JSONX'][_0x54d6f8(0x1c9)](_0x31cbbe,_0x3320cb),_0x524571['editOp'](_0x5bbd77[_0x54d6f8(0x154)](),[_0x54d6f8(0x14f)])),'textRanges':[{'segmentId':_0xbbfbb7,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0x596102(_0x870df,_0x56f04e,_0x40fc41){const _0x28047f=_0x320486;var _0x1e3a90,_0x27f447;if(!_0x56f04e)return!0x1;let _0x5d039c=_0x870df[_0x28047f(0x1a2)](_0x38833c[_0x28047f(0x165)])['getUnit'](_0x56f04e[_0x28047f(0x19d)],_0x38833c[_0x28047f(0x17d)][_0x28047f(0x155)]),_0x59cfa3=_0x5d039c==null?void 0x0:_0x5d039c[_0x28047f(0x17c)](),_0x68e2f1=_0x59cfa3==null||(_0x1e3a90=_0x59cfa3[_0x28047f(0x18c)])==null?void 0x0:_0x1e3a90[_0x56f04e[_0x28047f(0x1bd)]],_0x8c91a8=_0x59cfa3==null||(_0x27f447=_0x59cfa3[_0x28047f(0x14f)])==null||(_0x27f447=_0x27f447[_0x28047f(0x1d1)])==null?void 0x0:_0x27f447[_0x28047f(0x1af)](_0x31da7c=>{const _0x5ec599=_0x28047f;var _0x4f7cb8;return(_0x31da7c[_0x5ec599(0x184)]===_0x38833c[_0x5ec599(0x1bf)][_0x5ec599(0x1ac)]||_0x31da7c[_0x5ec599(0x184)]===_0x38833c[_0x5ec599(0x1bf)][_0x5ec599(0x150)])&&((_0x4f7cb8=_0x31da7c[_0x5ec599(0x178)])==null?void 0x0:_0x4f7cb8['noteId'])===_0x56f04e[_0x5ec599(0x1bd)];});if(!_0x59cfa3||_0x59cfa3['documentStyle'][_0x28047f(0x1d3)]!==_0x38833c[_0x28047f(0x162)]['TRADITIONAL']||!_0x68e2f1||_0x68e2f1[_0x28047f(0x17f)]!==_0x40fc41||!_0x8c91a8)return!0x1;let _0x25a5ab=new _0x38833c[(_0x28047f(0x18b))]();_0x8c91a8['startIndex']>0x0&&_0x25a5ab['retain'](_0x8c91a8['startIndex']),_0x25a5ab[_0x28047f(0x1b4)](0x1);let _0x346432=_0x38833c['JSONX'][_0x28047f(0x1c8)]();return!!_0x870df[_0x28047f(0x1a2)](_0x38833c['ICommandService'])[_0x28047f(0x1bc)](_0x4627b8[_0x28047f(0x1ad)]['id'],{'unitId':_0x56f04e[_0x28047f(0x19d)],'segmentId':'','historyAction':_0x28047f(0x1c7)+_0x40fc41,'actions':_0x38833c[_0x28047f(0x15b)][_0x28047f(0x1c9)](_0x346432[_0x28047f(0x153)](_0x25a5ab[_0x28047f(0x154)](),[_0x28047f(0x14f)]),_0x346432['removeOp']([_0x28047f(0x18c),_0x56f04e['noteId']],_0x68e2f1)),'textRanges':[{'startOffset':_0x8c91a8['startIndex'],'endOffset':_0x8c91a8[_0x28047f(0x17a)],'collapsed':!0x0}],'debounce':!0x1});}let _0x2720a1={'id':'doc.command.insert-footnote','type':_0x38833c['CommandType'][_0x320486(0x19c)],'handler':(_0xe5c1a7,_0x1962ac)=>_0x15ac1d(_0xe5c1a7,_0x1962ac,_0x320486(0x1c5))},_0x3268a4={'id':_0x320486(0x182),'type':_0x38833c[_0x320486(0x19e)][_0x320486(0x19c)],'handler':(_0x7a5947,_0x2b8268)=>_0x596102(_0x7a5947,_0x2b8268,_0x320486(0x1c5))},_0x75b689={'id':_0x320486(0x1ae),'type':_0x38833c[_0x320486(0x19e)][_0x320486(0x19c)],'handler':(_0x83b7b0,_0x3e21bb)=>_0x15ac1d(_0x83b7b0,_0x3e21bb,_0x320486(0x161))},_0x4fd571={'id':_0x320486(0x183),'type':_0x38833c['CommandType'][_0x320486(0x19c)],'handler':(_0x440b50,_0x3d2297)=>_0x596102(_0x440b50,_0x3d2297,_0x320486(0x161))};var _0x4bed8d=_0x320486(0x1c0),_0x11ca44=_0x320486(0x1cf);let _0x453acc={};function _0x2eae30(_0x2026ce,_0x30b978){return function(_0x10c1ac,_0x226a6e){_0x30b978(_0x10c1ac,_0x226a6e,_0x2026ce);};}function _0x51a1f6(_0x2a54c8,_0x212313,_0x3fdfdf,_0x39ca39){const _0x515956=_0x320486;var _0x56fc8d=arguments[_0x515956(0x1bb)],_0x3a64fa=_0x56fc8d<0x3?_0x212313:_0x39ca39===null?_0x39ca39=Object[_0x515956(0x169)](_0x212313,_0x3fdfdf):_0x39ca39,_0x225dba;if(typeof Reflect==_0x515956(0x1c3)&&typeof Reflect[_0x515956(0x15c)]==_0x515956(0x1d5))_0x3a64fa=Reflect['decorate'](_0x2a54c8,_0x212313,_0x3fdfdf,_0x39ca39);else{for(var _0x90c9e2=_0x2a54c8[_0x515956(0x1bb)]-0x1;_0x90c9e2>=0x0;_0x90c9e2--)(_0x225dba=_0x2a54c8[_0x90c9e2])&&(_0x3a64fa=(_0x56fc8d<0x3?_0x225dba(_0x3a64fa):_0x56fc8d>0x3?_0x225dba(_0x212313,_0x3fdfdf,_0x3a64fa):_0x225dba(_0x212313,_0x3fdfdf))||_0x3a64fa);}return _0x56fc8d>0x3&&_0x3a64fa&&Object['defineProperty'](_0x212313,_0x3fdfdf,_0x3a64fa),_0x3a64fa;}function _0x433a14(_0x3e636d){'@babel/helpers - typeof';const _0x51789c=_0x320486;return _0x433a14=typeof Symbol==_0x51789c(0x1d5)&&typeof Symbol[_0x51789c(0x1a9)]==_0x51789c(0x1a7)?function(_0x102d14){return typeof _0x102d14;}:function(_0x26b7bd){const _0x177f7d=_0x51789c;return _0x26b7bd&&typeof Symbol=='function'&&_0x26b7bd[_0x177f7d(0x1cb)]===Symbol&&_0x26b7bd!==Symbol['prototype']?_0x177f7d(0x1a7):typeof _0x26b7bd;},_0x433a14(_0x3e636d);}function _0x17d02b(_0x3a2bd8,_0x4d9ea8){const _0x378eb0=_0x320486;if(_0x433a14(_0x3a2bd8)!=_0x378eb0(0x1c3)||!_0x3a2bd8)return _0x3a2bd8;var _0x5861e7=_0x3a2bd8[Symbol[_0x378eb0(0x167)]];if(_0x5861e7!==void 0x0){var _0x4d4d05=_0x5861e7['call'](_0x3a2bd8,_0x4d9ea8||_0x378eb0(0x1be));if(_0x433a14(_0x4d4d05)!='object')return _0x4d4d05;throw TypeError(_0x378eb0(0x163));}return(_0x4d9ea8===_0x378eb0(0x177)?String:Number)(_0x3a2bd8);}function _0x38265b(_0x3b7995){const _0xa7b956=_0x320486;var _0xdf273e=_0x17d02b(_0x3b7995,_0xa7b956(0x177));return _0x433a14(_0xdf273e)=='symbol'?_0xdf273e:_0xdf273e+'';}function _0x1b814e(_0x5599d5,_0x5d5d56,_0x4317a8){const _0x5e6715=_0x320486;return(_0x5d5d56=_0x38265b(_0x5d5d56))in _0x5599d5?Object[_0x5e6715(0x147)](_0x5599d5,_0x5d5d56,{'value':_0x4317a8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5599d5[_0x5d5d56]=_0x4317a8,_0x5599d5;}let _0x59d920=class extends _0x38833c[_0x320486(0x1a8)]{constructor(_0x3c1d96=_0x453acc,_0x20980f,_0x320e52,_0x5f585a){const _0x13b064=_0x320486;super(),this['_config']=_0x3c1d96,this['_injector']=_0x20980f,this['_configService']=_0x320e52,this[_0x13b064(0x176)]=_0x5f585a;let {..._0x545729}=(0x0,_0x38833c[_0x13b064(0x151)])({},_0x453acc,this['_config']);this['_configService']['setConfig']('docs-reference.config',_0x545729);}[_0x320486(0x1ba)](){const _0x3cb845=_0x320486;[_0x2720a1,_0x3268a4,_0x481d21,_0x75b689,_0x4fd571,_0x21cbe6][_0x3cb845(0x1c6)](_0x382c51=>this['disposeWithMe'](this['_commandService'][_0x3cb845(0x15a)](_0x382c51)));}};_0x1b814e(_0x59d920,_0x320486(0x192),_0x320486(0x156)),_0x1b814e(_0x59d920,'packageName',_0x4bed8d),_0x1b814e(_0x59d920,'version',_0x11ca44),_0x1b814e(_0x59d920,_0x320486(0x17f),_0x38833c['UniverInstanceType'][_0x320486(0x155)]),_0x59d920=_0x51a1f6([(0x0,_0x38833c[_0x320486(0x159)])(_0x564f23[_0x320486(0x1b6)],_0x4627b8[_0x320486(0x1cd)]),_0x2eae30(0x1,(0x0,_0x38833c[_0x320486(0x190)])(_0x38833c['Injector'])),_0x2eae30(0x2,_0x38833c[_0x320486(0x157)]),_0x2eae30(0x3,_0x38833c['ICommandService'])],_0x59d920),_0x506898[_0x320486(0x181)]=_0x4fd571,_0x506898['DeleteDocumentFootnoteCommand']=_0x3268a4,_0x506898[_0x320486(0x1b1)]=_0x75b689,_0x506898[_0x320486(0x174)]=_0x2720a1,_0x506898['SetDocumentEndnoteSettingsCommand']=_0x21cbe6,_0x506898[_0x320486(0x191)]=_0x481d21,Object['defineProperty'](_0x506898,_0x320486(0x17b),{'enumerable':!0x0,'get':function(){return _0x59d920;}});}));function _0xe592(){const _0x1a71e7=['onStarting','length','syncExecuteCommand','noteId','default','CustomRangeType','@univerjs-pro/docs-reference','validateDocumentStructure','UniverProDocsReference','object','headers','footnote','forEach','delete-','getInstance','compose','@univerjs/core','constructor','deepClone','UniverDocsPlugin','sectEnd','1.0.0-rc.0','boolean','customRanges','amd','documentFlavor','createSectionId','function','1264962ikUTrh','insertOp','@univerjs/docs','defineProperty','settings','232hgQKDK','sectionId','23972SfFcrp','noteSettings','tableSource','diffValue','body','ENDNOTE','merge','continuationNotice','editOp','serialize','UNIVER_DOC','UNIVER_DOCS_REFERENCE_PLUGIN','IConfigService','10RhVaOI','DependentOn','registerCommand','JSONX','decorate','273042pAQdlY','startNumber','drawings','noteProperties','endnote','DocumentFlavor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','footers','IUniverInstanceService','2066163VEjojI','toPrimitive','toStringTag','getOwnPropertyDescriptor','UniverCore','removeOp','position','insert-','342921QSHaIM','suppressEndnotes','TRADITIONAL','getUnit','exports','replaceOp','InsertDocumentFootnoteCommand','restart','_commandService','string','properties','doc.command.set-footnote-settings','startIndex','UniverDocsReferencePlugin','getSnapshot','UniverInstanceType','columnCount','type','beneathText','DeleteDocumentEndnoteCommand','doc.command.delete-footnote','doc.command.delete-endnote','rangeType','175JowSoT','ICommandService','referenceTextStyle','includes','segmentId','generateRandomId','TextX','notes','set-','continuationSeparator','sectionBreaks','Inject','SetDocumentFootnoteSettingsCommand','pluginName','Tools','eachPage','eachSect','every','customMark','UniverDocs','28KjEpFy','Module','insert','COMMAND','unitId','CommandType','pageBottom','continuous','retain','get','doc.command.set-endnote-settings','-settings','createParagraphId','keys','symbol','Plugin','iterator','131073rojXIy','dataStream','FOOTNOTE','RichTextEditingMutation','doc.command.insert-endnote','find','documentStyle','InsertDocumentEndnoteCommand','6762180CUwoJa','isInteger','delete','separator','UniverLicensePlugin','numberFormat','validateDocBodyStructure','@univerjs-pro/license'];_0xe592=function(){return _0x1a71e7;};return _0xe592();}
|
|
1
|
+
function _0x1ee6(_0x1906d8,_0x326d1d){_0x1906d8=_0x1906d8-0x1a1;const _0x38963d=_0x3896();let _0x1ee6ca=_0x38963d[_0x1906d8];return _0x1ee6ca;}(function(_0x37cd6d,_0x133dd4){const _0x4b554f=_0x1ee6,_0x35b340=_0x37cd6d();while(!![]){try{const _0xd919da=-parseInt(_0x4b554f(0x1c1))/0x1*(parseInt(_0x4b554f(0x21b))/0x2)+-parseInt(_0x4b554f(0x214))/0x3*(parseInt(_0x4b554f(0x1e1))/0x4)+-parseInt(_0x4b554f(0x208))/0x5+parseInt(_0x4b554f(0x1cd))/0x6*(-parseInt(_0x4b554f(0x1f4))/0x7)+-parseInt(_0x4b554f(0x1d5))/0x8*(-parseInt(_0x4b554f(0x1e9))/0x9)+-parseInt(_0x4b554f(0x1ab))/0xa+parseInt(_0x4b554f(0x1f3))/0xb*(parseInt(_0x4b554f(0x21e))/0xc);if(_0xd919da===_0x133dd4)break;else _0x35b340['push'](_0x35b340['shift']());}catch(_0x224859){_0x35b340['push'](_0x35b340['shift']());}}}(_0x3896,0xe7fe1),function(_0x2a695d,_0x519143){const _0xa5a7e5=_0x1ee6;typeof exports==_0xa5a7e5(0x1f5)&&typeof module<'u'?_0x519143(exports,require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs-pro/license')):typeof define=='function'&&define['amd']?define([_0xa5a7e5(0x1af),'@univerjs/core',_0xa5a7e5(0x1fc),_0xa5a7e5(0x1bc)],_0x519143):(_0x2a695d=typeof globalThis<'u'?globalThis:_0x2a695d||self,_0x519143(_0x2a695d[_0xa5a7e5(0x1bf)]={},_0x2a695d['UniverCore'],_0x2a695d['UniverDocs'],_0x2a695d[_0xa5a7e5(0x1e5)]));}(this,function(_0x3423f4,_0x4deab6,_0x53fd2c,_0x30e2f7){const _0x4c827f=_0x1ee6;Object[_0x4c827f(0x1c6)](_0x3423f4,Symbol[_0x4c827f(0x1e8)],{'value':_0x4c827f(0x21c)});function _0x515c54(_0x154b74,_0x1ededb,_0x542636){const _0x4b2111=_0x4c827f;if(_0x154b74[_0x4b2111(0x20c)]!=null&&!(_0x1ededb===_0x4b2111(0x1fa)?[_0x4b2111(0x1b5),_0x4b2111(0x1ff)]:[_0x4b2111(0x205),_0x4b2111(0x1a8)])[_0x4b2111(0x1ef)](_0x154b74[_0x4b2111(0x20c)])||_0x154b74[_0x4b2111(0x229)]!=null&&!(_0x1ededb===_0x4b2111(0x1fa)?[_0x4b2111(0x1a6),_0x4b2111(0x1bb),_0x4b2111(0x1ce)]:[_0x4b2111(0x1a6),'eachSect'])[_0x4b2111(0x1ef)](_0x154b74[_0x4b2111(0x229)])||_0x154b74[_0x4b2111(0x224)]!=null&&(!Number[_0x4b2111(0x211)](_0x154b74[_0x4b2111(0x224)])||_0x154b74[_0x4b2111(0x224)]<0x1)||_0x4b2111(0x1ac)in _0x154b74&&_0x154b74['columnCount']!=null&&(_0x1ededb!=='footnote'||!Number[_0x4b2111(0x211)](_0x154b74['columnCount'])||_0x154b74[_0x4b2111(0x1ac)]<0x0||_0x154b74[_0x4b2111(0x1ac)]>0x4)||_0x154b74[_0x4b2111(0x1d3)]!=null&&(typeof _0x154b74['numberFormat']!=_0x4b2111(0x215)||_0x154b74[_0x4b2111(0x1d3)][_0x4b2111(0x1e2)]===0x0))return!0x1;for(let _0x1b0513 of[_0x154b74[_0x4b2111(0x1a9)],_0x154b74[_0x4b2111(0x20a)],_0x154b74[_0x4b2111(0x1da)]])if(_0x1b0513!=null&&(_0x542636!=null||(0x0,_0x4deab6[_0x4b2111(0x1e7)])(_0x1b0513)[_0x4b2111(0x1e2)]>0x0))return!0x1;return!0x0;}function _0x280a64(_0x1de57e,_0x8de156,_0x796c42){const _0x4d58d0=_0x4c827f;var _0x1b0bcd,_0x1d5100;if(_0x8de156[_0x4d58d0(0x1a4)]!=null&&!_0x515c54(_0x8de156['settings'],_0x796c42,_0x8de156['sectionId']))return!0x1;let _0x4f3f36=((_0x1b0bcd=_0x1de57e[_0x4d58d0(0x1f9)])==null||(_0x1b0bcd=_0x1b0bcd[_0x4d58d0(0x1a2)])==null?void 0x0:_0x1b0bcd['findIndex'](_0x47f1f1=>_0x47f1f1[_0x4d58d0(0x1ed)]===_0x8de156[_0x4d58d0(0x1ed)]))??-0x1;if(_0x8de156[_0x4d58d0(0x1ed)]!=null&&_0x4f3f36<0x0)return!0x1;let _0x3a51c4=_0x8de156[_0x4d58d0(0x1ed)]==null?_0x1de57e['noteSettings']:(_0x1d5100=_0x1de57e[_0x4d58d0(0x1f9)])==null||(_0x1d5100=_0x1d5100[_0x4d58d0(0x1a2)])==null?void 0x0:_0x1d5100[_0x4f3f36][_0x4d58d0(0x1c2)],_0x1f735d=_0x8de156['settings']==null?void 0x0:_0x4deab6[_0x4d58d0(0x201)][_0x4d58d0(0x1ec)](_0x8de156['settings']),_0x27e62e=_0x8de156[_0x4d58d0(0x1ed)]==null?['noteSettings']:['body',_0x4d58d0(0x1a2),_0x4f3f36,_0x4d58d0(0x1c2)],_0x111701=_0x4deab6[_0x4d58d0(0x1cf)][_0x4d58d0(0x1f0)](),_0x5c0db6=null;if(_0x4deab6['Tools'][_0x4d58d0(0x213)](_0x3a51c4==null?void 0x0:_0x3a51c4[_0x796c42],_0x1f735d)||(_0x5c0db6=_0x3a51c4==null?_0x111701[_0x4d58d0(0x1b1)](_0x27e62e,{[_0x796c42]:_0x1f735d}):_0x8de156['sectionId']!=null&&_0x1f735d==null&&Object[_0x4d58d0(0x1b8)](_0x3a51c4)[_0x4d58d0(0x1ad)](_0x9cdee8=>_0x9cdee8===_0x796c42)?_0x111701[_0x4d58d0(0x220)](_0x27e62e,_0x3a51c4):_0x111701[_0x4d58d0(0x1ba)]([..._0x27e62e,_0x796c42],_0x3a51c4[_0x796c42],_0x1f735d)),_0x8de156['suppressEndnotes']!=null){var _0x4b47dd;if(_0x796c42!==_0x4d58d0(0x1d1)||_0x8de156[_0x4d58d0(0x1ed)]==null||typeof _0x8de156['suppressEndnotes']!=_0x4d58d0(0x1cb))return!0x1;let _0x507e92=(_0x4b47dd=_0x1de57e['body'])==null||(_0x4b47dd=_0x4b47dd[_0x4d58d0(0x1a2)])==null?void 0x0:_0x4b47dd[_0x4f3f36][_0x4d58d0(0x1bd)];_0x507e92!==_0x8de156[_0x4d58d0(0x1bd)]&&(_0x5c0db6=_0x4deab6[_0x4d58d0(0x1cf)][_0x4d58d0(0x200)](_0x5c0db6,_0x111701[_0x4d58d0(0x1ba)]([_0x4d58d0(0x1f9),_0x4d58d0(0x1a2),_0x4f3f36,'suppressEndnotes'],_0x507e92,_0x8de156[_0x4d58d0(0x1bd)])));}return _0x5c0db6;}function _0x556ca2(_0x5998d3,_0x27f9bc,_0x5136bf){const _0x16a9c8=_0x4c827f;if(!_0x27f9bc)return!0x1;let _0x5588cb=_0x5998d3[_0x16a9c8(0x1c4)](_0x4deab6[_0x16a9c8(0x1d9)])['getUnit'](_0x27f9bc['unitId'],_0x4deab6[_0x16a9c8(0x1fe)][_0x16a9c8(0x218)]),_0x3ece3e=_0x5588cb==null?void 0x0:_0x5588cb[_0x16a9c8(0x1ee)]();if(!_0x3ece3e||_0x3ece3e['documentStyle'][_0x16a9c8(0x207)]!==_0x4deab6['DocumentFlavor'][_0x16a9c8(0x1d2)])return!0x1;let _0x3c97b4=_0x280a64(_0x3ece3e,_0x27f9bc,_0x5136bf);return _0x3c97b4===!0x1||_0x4deab6['JSONX'][_0x16a9c8(0x225)](_0x3c97b4)?!0x1:!!_0x5998d3['get'](_0x4deab6[_0x16a9c8(0x1c5)])[_0x16a9c8(0x204)](_0x53fd2c[_0x16a9c8(0x1c0)]['id'],{'unitId':_0x27f9bc[_0x16a9c8(0x1ae)],'segmentId':'','historyAction':_0x16a9c8(0x209)+_0x5136bf+_0x16a9c8(0x216),'actions':_0x3c97b4,'textRanges':null,'noNeedSetTextRange':!0x0,'isEditing':!0x1,'debounce':!0x1});}let _0x24cfba={'id':_0x4c827f(0x1df),'type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x3f5ec5,_0x301b3a)=>_0x556ca2(_0x3f5ec5,_0x301b3a,'footnote')},_0x4e5a24={'id':_0x4c827f(0x1d7),'type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x1a6ff9,_0x255f91)=>_0x556ca2(_0x1a6ff9,_0x255f91,_0x4c827f(0x1d1))};function _0x2026e1(_0x5a51f9,_0x28733a){const _0x503ab9=_0x4c827f;return(_0x5a51f9==null?void 0x0:_0x5a51f9[_0x503ab9(0x1b0)][_0x503ab9(0x207)])===_0x4deab6['DocumentFlavor'][_0x503ab9(0x1d2)]&&!!_0x5a51f9['body']&&Number['isInteger'](_0x28733a)&&_0x28733a>=0x0&&_0x28733a<_0x5a51f9['body'][_0x503ab9(0x203)][_0x503ab9(0x1e2)]-0x1;}function _0x2217d0(_0x15a33,_0x1d3975,_0x3f557f){const _0x42f274=_0x4c827f;var _0x4b4755,_0x29f6c3;if(_0x1d3975[_0x42f274(0x1a4)]===void 0x0&&_0x1d3975['suppressEndnotes']===void 0x0)return null;let _0x39c274=_0x1d3975['sectionId']==null?(_0x4b4755=_0x15a33['noteSettings'])==null?void 0x0:_0x4b4755[_0x3f557f]:(_0x29f6c3=_0x15a33[_0x42f274(0x1f9)])==null||(_0x29f6c3=_0x29f6c3[_0x42f274(0x1a2)])==null||(_0x29f6c3=_0x29f6c3['find'](_0x1c5141=>_0x1c5141[_0x42f274(0x1ed)]===_0x1d3975['sectionId']))==null||(_0x29f6c3=_0x29f6c3[_0x42f274(0x1c2)])==null?void 0x0:_0x29f6c3[_0x3f557f];return _0x280a64(_0x15a33,{'settings':_0x1d3975['settings']===void 0x0?_0x39c274??null:_0x1d3975['settings'],'sectionId':_0x1d3975[_0x42f274(0x1ed)],'suppressEndnotes':_0x1d3975[_0x42f274(0x1bd)]},_0x3f557f);}function _0x435730(_0x5e37ac,_0x3e339f,_0x407108){const _0x295037=_0x4c827f;var _0x2a947f,_0x18a7d1,_0x316bb9;if(!_0x3e339f||_0x3e339f[_0x295037(0x1f1)])return!0x1;let _0x5c2440=_0x5e37ac['get'](_0x4deab6[_0x295037(0x1d9)])[_0x295037(0x227)](_0x3e339f[_0x295037(0x1ae)],_0x4deab6[_0x295037(0x1fe)]['UNIVER_DOC']),_0xbe44e9=_0x5c2440==null?void 0x0:_0x5c2440[_0x295037(0x1ee)](),{offset:_0x2f5f6d}=_0x3e339f;if(!_0x2026e1(_0xbe44e9,_0x2f5f6d))return!0x1;let _0x33b5aa=_0x2217d0(_0xbe44e9,_0x3e339f,_0x407108);if(_0x33b5aa===!0x1)return!0x1;let _0x5bd45a=_0x3e339f[_0x295037(0x223)]??(0x0,_0x4deab6[_0x295037(0x1f8)])(0xc);if((_0x2a947f=_0xbe44e9[_0x295037(0x22e)])!=null&&_0x2a947f[_0x5bd45a]||(_0x18a7d1=_0xbe44e9['headers'])!=null&&_0x18a7d1[_0x5bd45a]||(_0x316bb9=_0xbe44e9[_0x295037(0x1d0)])!=null&&_0x316bb9[_0x5bd45a])return!0x1;let _0x14179c=_0x4deab6[_0x295037(0x201)][_0x295037(0x1ec)]({'type':_0x407108,'noteId':_0x5bd45a,'body':_0x3e339f[_0x295037(0x1f9)]??{'dataStream':'\x0d\x0a','paragraphs':[{'paragraphId':(0x0,_0x4deab6[_0x295037(0x1c8)])(new Set()),'startIndex':0x0}],'sectionBreaks':[{'sectionId':(0x0,_0x4deab6[_0x295037(0x1b9)])(new Set()),'startIndex':0x1}]},'customMark':_0x3e339f[_0x295037(0x1c7)],'referenceTextStyle':_0x3e339f[_0x295037(0x1a3)],'tableSource':_0x3e339f[_0x295037(0x1db)],'drawings':_0x3e339f[_0x295037(0x217)],'drawingsOrder':_0x3e339f[_0x295037(0x1cc)],'lists':_0x3e339f[_0x295037(0x1aa)]});if((0x0,_0x4deab6[_0x295037(0x22c)])({'notes':{[_0x5bd45a]:_0x14179c}})['length']>0x0)return!0x1;let _0x391c0d=new _0x4deab6[(_0x295037(0x1a1))]();_0x2f5f6d>0x0&&_0x391c0d['retain'](_0x2f5f6d),_0x391c0d[_0x295037(0x1c9)](0x1,{'dataStream':'','customRanges':[{'rangeType':_0x407108===_0x295037(0x1fa)?_0x4deab6[_0x295037(0x20d)]['FOOTNOTE']:_0x4deab6[_0x295037(0x20d)][_0x295037(0x1e6)],'rangeId':(0x0,_0x4deab6['generateRandomId'])(0xc),'startIndex':0x0,'endIndex':0x0,'wholeEntity':!0x0,'properties':{'noteId':_0x5bd45a}}]});let _0x19c76d=_0x4deab6[_0x295037(0x1cf)][_0x295037(0x1f0)](),_0x479f2d=_0xbe44e9[_0x295037(0x22e)]==null?_0x19c76d[_0x295037(0x1b1)](['notes'],{[_0x5bd45a]:_0x14179c}):_0x19c76d['insertOp']([_0x295037(0x22e),_0x5bd45a],_0x14179c);return!!_0x5e37ac[_0x295037(0x1c4)](_0x4deab6[_0x295037(0x1c5)])[_0x295037(0x204)](_0x53fd2c[_0x295037(0x1c0)]['id'],{'unitId':_0x3e339f[_0x295037(0x1ae)],'segmentId':'','historyAction':'insert-'+_0x407108,'actions':_0x4deab6[_0x295037(0x1cf)]['compose'](_0x4deab6[_0x295037(0x1cf)][_0x295037(0x200)](_0x33b5aa,_0x479f2d),_0x19c76d[_0x295037(0x1d8)](_0x391c0d[_0x295037(0x1fb)](),['body'])),'textRanges':[{'segmentId':_0x5bd45a,'startOffset':0x0,'endOffset':0x0,'collapsed':!0x0}],'debounce':!0x1});}function _0xc72110(_0x2b6b82,_0x14dc99,_0xaebaa3){const _0xd0952f=_0x4c827f;var _0xca8857,_0x233368;if(!_0x14dc99)return!0x1;let _0x2ea9fb=_0x2b6b82[_0xd0952f(0x1c4)](_0x4deab6[_0xd0952f(0x1d9)])[_0xd0952f(0x227)](_0x14dc99[_0xd0952f(0x1ae)],_0x4deab6[_0xd0952f(0x1fe)][_0xd0952f(0x218)]),_0x1b1d87=_0x2ea9fb==null?void 0x0:_0x2ea9fb[_0xd0952f(0x1ee)](),_0x47a798=_0x1b1d87==null||(_0xca8857=_0x1b1d87[_0xd0952f(0x22e)])==null?void 0x0:_0xca8857[_0x14dc99['noteId']],_0x5e5539=_0x1b1d87==null||(_0x233368=_0x1b1d87[_0xd0952f(0x1f9)])==null||(_0x233368=_0x233368[_0xd0952f(0x22d)])==null?void 0x0:_0x233368[_0xd0952f(0x1d4)](_0x54abd5=>{const _0x11ee0c=_0xd0952f;var _0x14ca66;return(_0x54abd5['rangeType']===_0x4deab6[_0x11ee0c(0x20d)][_0x11ee0c(0x226)]||_0x54abd5['rangeType']===_0x4deab6['CustomRangeType'][_0x11ee0c(0x1e6)])&&((_0x14ca66=_0x54abd5[_0x11ee0c(0x1d6)])==null?void 0x0:_0x14ca66[_0x11ee0c(0x223)])===_0x14dc99[_0x11ee0c(0x223)];});if(!_0x1b1d87||_0x1b1d87[_0xd0952f(0x1b0)][_0xd0952f(0x207)]!==_0x4deab6[_0xd0952f(0x1b4)][_0xd0952f(0x1d2)]||!_0x47a798||_0x47a798[_0xd0952f(0x228)]!==_0xaebaa3||!_0x5e5539)return!0x1;let _0xe04e45=new _0x4deab6['TextX']();_0x5e5539[_0xd0952f(0x212)]>0x0&&_0xe04e45[_0xd0952f(0x1b6)](_0x5e5539[_0xd0952f(0x212)]),_0xe04e45[_0xd0952f(0x1b7)](0x1);let _0x24e3a3=_0x4deab6[_0xd0952f(0x1cf)][_0xd0952f(0x1f0)]();return!!_0x2b6b82['get'](_0x4deab6['ICommandService'])[_0xd0952f(0x204)](_0x53fd2c[_0xd0952f(0x1c0)]['id'],{'unitId':_0x14dc99[_0xd0952f(0x1ae)],'segmentId':'','historyAction':'delete-'+_0xaebaa3,'actions':_0x4deab6[_0xd0952f(0x1cf)]['compose'](_0x24e3a3[_0xd0952f(0x1d8)](_0xe04e45[_0xd0952f(0x1fb)](),[_0xd0952f(0x1f9)]),_0x24e3a3['removeOp'](['notes',_0x14dc99[_0xd0952f(0x223)]],_0x47a798)),'textRanges':[{'startOffset':_0x5e5539[_0xd0952f(0x212)],'endOffset':_0x5e5539[_0xd0952f(0x212)],'collapsed':!0x0}],'debounce':!0x1});}let _0xb6c042={'id':_0x4c827f(0x1fd),'type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x95060c,_0x6f6b83)=>_0x435730(_0x95060c,_0x6f6b83,_0x4c827f(0x1fa))},_0x4e90a9={'id':'doc.command.delete-footnote','type':_0x4deab6[_0x4c827f(0x22a)][_0x4c827f(0x1de)],'handler':(_0x4d8832,_0x109848)=>_0xc72110(_0x4d8832,_0x109848,_0x4c827f(0x1fa))},_0x1adffe={'id':'doc.command.insert-endnote','type':_0x4deab6['CommandType'][_0x4c827f(0x1de)],'handler':(_0x38d5e9,_0x5ed557)=>_0x435730(_0x38d5e9,_0x5ed557,_0x4c827f(0x1d1))},_0x4c3c40={'id':'doc.command.delete-endnote','type':_0x4deab6[_0x4c827f(0x22a)]['COMMAND'],'handler':(_0x487ab8,_0x1b4229)=>_0xc72110(_0x487ab8,_0x1b4229,'endnote')};var _0x25024f=_0x4c827f(0x219),_0x586be2='1.0.1';let _0x5482c2={};function _0x1d5d27(_0x7c1e69,_0x1b385f){return function(_0x464c10,_0x435fa3){_0x1b385f(_0x464c10,_0x435fa3,_0x7c1e69);};}function _0x27e6ef(_0x554ec2,_0x10343d,_0x448a68,_0xa4b47a){const _0x291103=_0x4c827f;var _0x12372d=arguments['length'],_0x28ee8a=_0x12372d<0x3?_0x10343d:_0xa4b47a===null?_0xa4b47a=Object[_0x291103(0x22b)](_0x10343d,_0x448a68):_0xa4b47a,_0x4168f0;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x291103(0x210))_0x28ee8a=Reflect[_0x291103(0x221)](_0x554ec2,_0x10343d,_0x448a68,_0xa4b47a);else{for(var _0x165f3d=_0x554ec2[_0x291103(0x1e2)]-0x1;_0x165f3d>=0x0;_0x165f3d--)(_0x4168f0=_0x554ec2[_0x165f3d])&&(_0x28ee8a=(_0x12372d<0x3?_0x4168f0(_0x28ee8a):_0x12372d>0x3?_0x4168f0(_0x10343d,_0x448a68,_0x28ee8a):_0x4168f0(_0x10343d,_0x448a68))||_0x28ee8a);}return _0x12372d>0x3&&_0x28ee8a&&Object[_0x291103(0x1c6)](_0x10343d,_0x448a68,_0x28ee8a),_0x28ee8a;}function _0xd017b1(_0x4db83d){'@babel/helpers - typeof';const _0x459aff=_0x4c827f;return _0xd017b1=typeof Symbol==_0x459aff(0x210)&&typeof Symbol[_0x459aff(0x1f7)]=='symbol'?function(_0x1f3254){return typeof _0x1f3254;}:function(_0x429ba4){const _0x491cd0=_0x459aff;return _0x429ba4&&typeof Symbol==_0x491cd0(0x210)&&_0x429ba4['constructor']===Symbol&&_0x429ba4!==Symbol[_0x491cd0(0x1ca)]?_0x491cd0(0x206):typeof _0x429ba4;},_0xd017b1(_0x4db83d);}function _0x46496e(_0x4d1fac,_0x3e1c13){const _0x20d0c5=_0x4c827f;if(_0xd017b1(_0x4d1fac)!='object'||!_0x4d1fac)return _0x4d1fac;var _0x26ef5c=_0x4d1fac[Symbol[_0x20d0c5(0x222)]];if(_0x26ef5c!==void 0x0){var _0x5dc3b1=_0x26ef5c[_0x20d0c5(0x1b2)](_0x4d1fac,_0x3e1c13||_0x20d0c5(0x1a5));if(_0xd017b1(_0x5dc3b1)!='object')return _0x5dc3b1;throw TypeError(_0x20d0c5(0x1e4));}return(_0x3e1c13==='string'?String:Number)(_0x4d1fac);}function _0x539435(_0x12a1de){const _0xe00d01=_0x4c827f;var _0x563ab0=_0x46496e(_0x12a1de,_0xe00d01(0x215));return _0xd017b1(_0x563ab0)==_0xe00d01(0x206)?_0x563ab0:_0x563ab0+'';}function _0x323a49(_0x3f89ab,_0x5d517b,_0x21d0db){const _0x141f7a=_0x4c827f;return(_0x5d517b=_0x539435(_0x5d517b))in _0x3f89ab?Object[_0x141f7a(0x1c6)](_0x3f89ab,_0x5d517b,{'value':_0x21d0db,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f89ab[_0x5d517b]=_0x21d0db,_0x3f89ab;}let _0x3b82b9=class extends _0x4deab6[_0x4c827f(0x1a7)]{constructor(_0x5e49b7=_0x5482c2,_0x4462f5,_0x4f3de9,_0x271d26){const _0x576d49=_0x4c827f;super(),this[_0x576d49(0x21f)]=_0x5e49b7,this[_0x576d49(0x1b3)]=_0x4462f5,this[_0x576d49(0x1f2)]=_0x4f3de9,this[_0x576d49(0x21d)]=_0x271d26;let {..._0x418dc4}=(0x0,_0x4deab6[_0x576d49(0x1ea)])({},_0x5482c2,this['_config']);this[_0x576d49(0x1f2)][_0x576d49(0x20e)](_0x576d49(0x1e0),_0x418dc4);}['onStarting'](){const _0xf346c2=_0x4c827f;[_0xb6c042,_0x4e90a9,_0x24cfba,_0x1adffe,_0x4c3c40,_0x4e5a24]['forEach'](_0x4e518b=>this['disposeWithMe'](this[_0xf346c2(0x21d)]['registerCommand'](_0x4e518b)));}};_0x323a49(_0x3b82b9,_0x4c827f(0x1dc),'UNIVER_DOCS_REFERENCE_PLUGIN'),_0x323a49(_0x3b82b9,_0x4c827f(0x1dd),_0x25024f),_0x323a49(_0x3b82b9,_0x4c827f(0x202),_0x586be2),_0x323a49(_0x3b82b9,_0x4c827f(0x228),_0x4deab6[_0x4c827f(0x1fe)][_0x4c827f(0x218)]),_0x3b82b9=_0x27e6ef([(0x0,_0x4deab6[_0x4c827f(0x1eb)])(_0x30e2f7['UniverLicensePlugin'],_0x53fd2c[_0x4c827f(0x20b)]),_0x1d5d27(0x1,(0x0,_0x4deab6[_0x4c827f(0x1f6)])(_0x4deab6[_0x4c827f(0x1c3)])),_0x1d5d27(0x2,_0x4deab6[_0x4c827f(0x1e3)]),_0x1d5d27(0x3,_0x4deab6[_0x4c827f(0x1c5)])],_0x3b82b9),_0x3423f4['DeleteDocumentEndnoteCommand']=_0x4c3c40,_0x3423f4['DeleteDocumentFootnoteCommand']=_0x4e90a9,_0x3423f4[_0x4c827f(0x1be)]=_0x1adffe,_0x3423f4['InsertDocumentFootnoteCommand']=_0xb6c042,_0x3423f4[_0x4c827f(0x21a)]=_0x4e5a24,_0x3423f4['SetDocumentFootnoteSettingsCommand']=_0x24cfba,Object[_0x4c827f(0x1c6)](_0x3423f4,_0x4c827f(0x20f),{'enumerable':!0x0,'get':function(){return _0x3b82b9;}});}));function _0x3896(){const _0x1be20d=['diffValue','3xOdCFr','string','-settings','drawings','UNIVER_DOC','@univerjs-pro/docs-reference','SetDocumentEndnoteSettingsCommand','2bJTsBy','Module','_commandService','636IaBHcD','_config','removeOp','decorate','toPrimitive','noteId','startNumber','isNoop','FOOTNOTE','getUnit','type','restart','CommandType','getOwnPropertyDescriptor','validateDocumentStructure','customRanges','notes','TextX','sectionBreaks','referenceTextStyle','settings','default','continuous','Plugin','sectEnd','separator','lists','10310120GkLjMx','columnCount','every','unitId','exports','documentStyle','insertOp','call','_injector','DocumentFlavor','pageBottom','retain','delete','keys','createSectionId','replaceOp','eachSect','@univerjs-pro/license','suppressEndnotes','InsertDocumentEndnoteCommand','UniverProDocsReference','RichTextEditingMutation','1622624ZzXHvN','noteProperties','Injector','get','ICommandService','defineProperty','customMark','createParagraphId','insert','prototype','boolean','drawingsOrder','28794UUSfVS','eachPage','JSONX','footers','endnote','TRADITIONAL','numberFormat','find','16BKjmRV','properties','doc.command.set-endnote-settings','editOp','IUniverInstanceService','continuationNotice','tableSource','pluginName','packageName','COMMAND','doc.command.set-footnote-settings','docs-reference.config','3907068hFdlfr','length','IConfigService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverProLicense','ENDNOTE','validateDocBodyStructure','toStringTag','6773562tVNLJM','merge','DependentOn','deepClone','sectionId','getSnapshot','includes','getInstance','segmentId','_configService','1015421MXfbXE','357BrUhYv','object','Inject','iterator','generateRandomId','body','footnote','serialize','@univerjs/docs','doc.command.insert-footnote','UniverInstanceType','beneathText','compose','Tools','version','dataStream','syncExecuteCommand','docEnd','symbol','documentFlavor','7861630xCazCj','set-','continuationSeparator','UniverDocsPlugin','position','CustomRangeType','setConfig','UniverDocsReferencePlugin','function','isInteger','startIndex'];_0x3896=function(){return _0x1be20d;};return _0x3896();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/docs-reference",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
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.0.1",
|
|
63
|
+
"@univerjs/core": "1.0.1",
|
|
64
|
+
"@univerjs/docs": "1.0.1"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@univerjs-infra/shared": "1.0.
|
|
68
|
-
"@univerjs/engine-render": "1.0.
|
|
67
|
+
"@univerjs-infra/shared": "1.0.1",
|
|
68
|
+
"@univerjs/engine-render": "1.0.1",
|
|
69
69
|
"rxjs": "7.8.2",
|
|
70
70
|
"typescript": "^6.0.3",
|
|
71
|
-
"vitest": "^
|
|
71
|
+
"vitest": "^5.0.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"test": "vitest run",
|