@univerjs-pro/docs-code 1.0.0-alpha.1 → 1.0.0-alpha.3

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.
@@ -0,0 +1,132 @@
1
+ import type { FDocumentParagraph } from '@univerjs/docs/facade';
2
+ import type { IDocsCodeFindQuery, IDocsCodeInsertFacadeOptions, IDocsCodeInsertParagraphFacadeOptions } from './types';
3
+ import { FDocument } from '@univerjs/docs/facade';
4
+ import { FDocumentCode } from './f-document-code';
5
+ export interface IFDocumentCodeMixin {
6
+ /**
7
+ * Returns all code block ranges in this document.
8
+ * @returns {FDocumentCode[]} An array of FDocumentCode instances, or an empty array if no code block ranges exist in the document.
9
+ * @example
10
+ * ```ts
11
+ * const fDocument = univerAPI.getActiveDocument();
12
+ * const codes = fDocument.getCodes();
13
+ * console.log(codes);
14
+ * ```
15
+ */
16
+ getCodes(): FDocumentCode[];
17
+ /**
18
+ * Returns a code block range by its block id.
19
+ * @param {string} blockId The code block range id.
20
+ * @returns {FDocumentCode | null} The FDocumentCode instance, or `null` if no code block range with the id exists in the document.
21
+ * @example
22
+ * ```ts
23
+ * const fDocument = univerAPI.getActiveDocument();
24
+ * const code = fDocument.getCode('block-id-123');
25
+ * console.log(code);
26
+ * ```
27
+ */
28
+ getCode(blockId: string): FDocumentCode | null;
29
+ /**
30
+ * Returns the code that contains a document data stream offset.
31
+ * @param {number} offset The document data stream offset.
32
+ * @returns {FDocumentCode | null} The FDocumentCode instance, or `null` if no code block range contains the offset.
33
+ * @example
34
+ * ```ts
35
+ * const fDocument = univerAPI.getActiveDocument();
36
+ * const code = fDocument.getCodeAt(150);
37
+ * console.log(code);
38
+ * ```
39
+ */
40
+ getCodeAt(offset: number): FDocumentCode | null;
41
+ /**
42
+ * Finds the first code whose text contains the given string.
43
+ * @param {string} text Text to search inside code content.
44
+ * @returns {FDocumentCode | null} The first matching FDocumentCode instance, or `null` if no match is found.
45
+ * @example
46
+ * ```ts
47
+ * const fDocument = univerAPI.getActiveDocument();
48
+ * const code = fDocument.findCodeByText('function');
49
+ * console.log(code);
50
+ * ```
51
+ */
52
+ findCodeByText(text: string): FDocumentCode | null;
53
+ /**
54
+ * Finds codes by text or block id.
55
+ * @param {string | IDocsCodeFindQuery} query A plain text query or a structured code query.
56
+ * @returns {FDocumentCode[]} An array of matching FDocumentCode instances, or an empty array if no match is found.
57
+ * @example
58
+ * ```ts
59
+ * const fDocument = univerAPI.getActiveDocument();
60
+ * const codesWithText = fDocument.findCodes('function');
61
+ * const codesWithId = fDocument.findCodes({ blockId: 'block-id-123' });
62
+ * console.log(codesWithText, codesWithId);
63
+ * ```
64
+ */
65
+ findCodes(query: string | IDocsCodeFindQuery): FDocumentCode[];
66
+ /**
67
+ * Inserts a code block around a paragraph element.
68
+ * The paragraph wrapper is resolved by persisted `paragraphId` before the command runs, so facade edits
69
+ * inserted before the paragraph do not require recalculating offsets.
70
+ * @param {FDocumentParagraph} paragraph The paragraph to convert to a code block.
71
+ * @param {IDocsCodeInsertParagraphFacadeOptions} [options] Optional block id and code config.
72
+ * @returns {FDocumentCode | null} The newly inserted FDocumentCode instance, or `null` if the insert code failed.
73
+ * @example
74
+ * ```ts
75
+ * const fDocument = univerAPI.getActiveDocument();
76
+ *
77
+ * // Insert a code block around a paragraph with TypeScript language config.
78
+ * const paragraph = fDocument.appendParagraph('const total = rows.length;');
79
+ * const code = fDocument.insertCode(paragraph, {
80
+ * config: { language: 'typescript' },
81
+ * });
82
+ * console.log(code?.getConfig()?.language);
83
+ * ```
84
+ */
85
+ insertCode(paragraph: FDocumentParagraph, options?: IDocsCodeInsertParagraphFacadeOptions): FDocumentCode | null;
86
+ /**
87
+ * Inserts a code around a document range, or inserts an empty code when the range is collapsed.
88
+ * Prefer the paragraph overload for agent-authored code.
89
+ * @param {IDocsCodeInsertFacadeOptions} [options] Optional block id and start/end offsets.
90
+ * @returns {FDocumentCode | null} The newly inserted FDocumentCode instance, or `null` if the insert code failed.
91
+ * @example
92
+ * ```ts
93
+ * const fDocument = univerAPI.getActiveDocument();
94
+ *
95
+ * // Insert a code block around the text "Snippet" in a table cell with TypeScript language config.
96
+ * const table = fDocument.findTableByText('Snippet');
97
+ * const range = table?.getCell(1, 0)?.getContentRange();
98
+ * const code = range ? fDocument.insertCode({ ...range, config: { language: 'typescript' } }) : null;
99
+ * console.log(code);
100
+ *
101
+ * // Insert a code block around the text "const" and the next three paragraphs with TypeScript language config.
102
+ * // const cell = {
103
+ * // width: 960,
104
+ * // blocks: ['code', 'callout', 'quote']
105
+ * // };
106
+ * const paragraph = fDocument.findParagraphByText('const');
107
+ * if (paragraph) {
108
+ * const paragraphs = fDocument.getParagraphs();
109
+ * const { paragraphIndex, startOffset } = paragraph.getInfo();
110
+ * const { endOffset } = paragraphs[paragraphIndex + 3].getInfo();
111
+ * const code2 = fDocument.insertCode({ startOffset, endOffset, config: { language: 'typescript' } });
112
+ * console.log(code2);
113
+ * }
114
+ * ```
115
+ */
116
+ insertCode(options?: IDocsCodeInsertFacadeOptions): FDocumentCode | null;
117
+ }
118
+ export declare class FDocumentCodeMixin extends FDocument implements IFDocumentCodeMixin {
119
+ getCodes(): FDocumentCode[];
120
+ getCode(blockId: string): FDocumentCode | null;
121
+ getCodeAt(offset: number): FDocumentCode | null;
122
+ findCodeByText(text: string): FDocumentCode | null;
123
+ findCodes(query: string | IDocsCodeFindQuery): FDocumentCode[];
124
+ insertCode(paragraph: FDocumentParagraph, options?: IDocsCodeInsertParagraphFacadeOptions): FDocumentCode | null;
125
+ insertCode(options?: IDocsCodeInsertFacadeOptions): FDocumentCode | null;
126
+ private _getBlockRanges;
127
+ private _createFDocumentCode;
128
+ }
129
+ declare module '@univerjs/docs/facade' {
130
+ interface FDocument extends IFDocumentCodeMixin {
131
+ }
132
+ }
@@ -0,0 +1,3 @@
1
+ import './f-document';
2
+ export { FDocumentCode } from './f-document-code';
3
+ export * from './types';
@@ -0,0 +1,26 @@
1
+ import type { IDocsCodeConfig } from '@univerjs-pro/docs-code';
2
+ import type { DocumentBlockRangeType } from '@univerjs/core';
3
+ export interface IDocsCodeInsertFacadeOptions {
4
+ blockId?: string;
5
+ startOffset?: number;
6
+ endOffset?: number;
7
+ config?: Partial<IDocsCodeConfig>;
8
+ }
9
+ export type IDocsCodeInsertParagraphFacadeOptions = Omit<IDocsCodeInsertFacadeOptions, 'startOffset' | 'endOffset'>;
10
+ export interface IDocsCodeUpdateFacadeOptions {
11
+ config: Partial<IDocsCodeConfig>;
12
+ }
13
+ export interface IDocsCodeFindQuery {
14
+ blockId?: string;
15
+ text?: string;
16
+ }
17
+ export interface IDocsCodeRange {
18
+ blockId: string;
19
+ startIndex: number;
20
+ endIndex: number;
21
+ }
22
+ export interface IDocsCodeInfo extends IDocsCodeRange {
23
+ config?: IDocsCodeConfig;
24
+ type: DocumentBlockRangeType.CODE;
25
+ text: string;
26
+ }
@@ -0,0 +1,8 @@
1
+ export { DocsCodeCancelEmptyParagraphCommand, DocsCodeConsumeBoundaryDeleteCommand, DocsCodeInsertBelowCommand, DocsCodeInsertCommand, DocsCodeRemoveCommand, DocsCodeUnwrapCommand, DocsCodeUpdateCommand, } from './commands/code.command';
2
+ export type { IDocsCodeInsertCommandParams, IDocsCodeRemoveCommandParams, IDocsCodeUnwrapCommandParams, IDocsCodeUpdateCommandParams, } from './commands/code.command';
3
+ export { buildCancelEmptyCodeParagraphActions, isCodeBoundaryDelete, } from './common/actions';
4
+ export { DOCS_CODE_PLUGIN } from './common/const';
5
+ export { normalizeDocsCodeConfig } from './common/metadata';
6
+ export type { IDocsCodeConfig } from './common/type';
7
+ export { DocsCodeModel } from './models/docs-code-model';
8
+ export { UniverDocsCodePlugin } from './plugin';
@@ -0,0 +1,18 @@
1
+ import type { IDocsCodeConfig, IDocsCodeMetadataResource } from '../common/type';
2
+ import { Disposable } from '@univerjs/core';
3
+ export declare class DocsCodeModel extends Disposable {
4
+ private readonly _resources;
5
+ private readonly _change$;
6
+ readonly change$: import("rxjs").Observable<{
7
+ unitId: string;
8
+ blockId?: string;
9
+ }>;
10
+ getCodeConfig(unitId: string, blockId: string): IDocsCodeConfig | undefined;
11
+ setCodeConfig(unitId: string, blockId: string, config: Partial<IDocsCodeConfig>): void;
12
+ removeCode(unitId: string, blockId: string): void;
13
+ serialize(unitId: string): IDocsCodeMetadataResource;
14
+ deserialize(unitId: string, resource: IDocsCodeMetadataResource): void;
15
+ removeUnit(unitId: string): void;
16
+ dispose(): void;
17
+ private _setResource;
18
+ }
@@ -0,0 +1,14 @@
1
+ import type { IUniverDocsCodeConfig } from './config/config';
2
+ import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
+ export declare class UniverDocsCodePlugin extends Plugin {
4
+ private readonly _config;
5
+ readonly _injector: Injector;
6
+ private readonly _commandService;
7
+ private readonly _configService;
8
+ static pluginName: string;
9
+ static packageName: string;
10
+ static version: string;
11
+ static type: UniverInstanceType;
12
+ constructor(_config: IUniverDocsCodeConfig | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService);
13
+ onStarting(): void;
14
+ }
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2fc9b3,_0x51ecee){var _0x49d87e=_0x261f,_0x5a9b9e=_0x2fc9b3();while(!![]){try{var _0x30c347=parseInt(_0x49d87e(0xce))/0x1*(parseInt(_0x49d87e(0xf5))/0x2)+-parseInt(_0x49d87e(0x109))/0x3*(-parseInt(_0x49d87e(0xd6))/0x4)+-parseInt(_0x49d87e(0xeb))/0x5*(-parseInt(_0x49d87e(0x108))/0x6)+parseInt(_0x49d87e(0x11c))/0x7+parseInt(_0x49d87e(0x100))/0x8+parseInt(_0x49d87e(0xe0))/0x9+-parseInt(_0x49d87e(0xd5))/0xa;if(_0x30c347===_0x51ecee)break;else _0x5a9b9e['push'](_0x5a9b9e['shift']());}catch(_0x544251){_0x5a9b9e['push'](_0x5a9b9e['shift']());}}}(_0x401d,0xa34f9),function(_0x2bf6fd,_0x162804){var _0xaa1e24=_0x261f;typeof exports=='object'&&typeof module<'u'?_0x162804(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0xaa1e24(0xd7)&&define[_0xaa1e24(0x113)]?define([_0xaa1e24(0xe1),_0xaa1e24(0xd9),'@univerjs/core','@univerjs/docs/facade'],_0x162804):(_0x2bf6fd=typeof globalThis<'u'?globalThis:_0x2bf6fd||self,_0x162804(_0x2bf6fd[_0xaa1e24(0x110)]={},_0x2bf6fd['UniverProDocsCode'],_0x2bf6fd[_0xaa1e24(0x105)],_0x2bf6fd[_0xaa1e24(0xea)]));}(this,function(_0x332042,_0xd2c11,_0xeebcc9,_0x10dfdf){var _0x3f7d9c=_0x261f;Object[_0x3f7d9c(0x119)](_0x332042,Symbol[_0x3f7d9c(0xf4)],{'value':_0x3f7d9c(0x103)});function _0x42f57b(_0x26c034){'@babel/helpers - typeof';var _0x3eb260=_0x3f7d9c;return _0x42f57b=typeof Symbol==_0x3eb260(0xd7)&&typeof Symbol['iterator']==_0x3eb260(0xf2)?function(_0x5c26db){return typeof _0x5c26db;}:function(_0x4c9c45){var _0x1ba7f1=_0x3eb260;return _0x4c9c45&&typeof Symbol==_0x1ba7f1(0xd7)&&_0x4c9c45[_0x1ba7f1(0xd4)]===Symbol&&_0x4c9c45!==Symbol[_0x1ba7f1(0x118)]?_0x1ba7f1(0xf2):typeof _0x4c9c45;},_0x42f57b(_0x26c034);}function _0x151441(_0x537ad1,_0x511c4d){var _0x5e6a22=_0x3f7d9c;if(_0x42f57b(_0x537ad1)!=_0x5e6a22(0xec)||!_0x537ad1)return _0x537ad1;var _0x5ac59c=_0x537ad1[Symbol[_0x5e6a22(0xee)]];if(_0x5ac59c!==void 0x0){var _0x3742ec=_0x5ac59c[_0x5e6a22(0xe7)](_0x537ad1,_0x511c4d||_0x5e6a22(0xe4));if(_0x42f57b(_0x3742ec)!=_0x5e6a22(0xec))return _0x3742ec;throw TypeError(_0x5e6a22(0xcb));}return(_0x511c4d===_0x5e6a22(0x10f)?String:Number)(_0x537ad1);}function _0x646ca4(_0x1fc35e){var _0x4e9529=_0x3f7d9c,_0x78682a=_0x151441(_0x1fc35e,_0x4e9529(0x10f));return _0x42f57b(_0x78682a)==_0x4e9529(0xf2)?_0x78682a:_0x78682a+'';}function _0x493317(_0x1ac5f9,_0x2b2250,_0x4dbcd9){var _0xc9c690=_0x3f7d9c;return(_0x2b2250=_0x646ca4(_0x2b2250))in _0x1ac5f9?Object[_0xc9c690(0x119)](_0x1ac5f9,_0x2b2250,{'value':_0x4dbcd9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1ac5f9[_0x2b2250]=_0x4dbcd9,_0x1ac5f9;}function _0xe18890(_0x5545ad,_0x5ac693){return function(_0x4d3524,_0x133a7b){_0x5ac693(_0x4d3524,_0x133a7b,_0x5545ad);};}function _0x27454e(_0x20c443,_0x5331be,_0x331b61,_0xca4dd2){var _0x134248=_0x3f7d9c,_0x3ec866=arguments['length'],_0x43c383=_0x3ec866<0x3?_0x5331be:_0xca4dd2===null?_0xca4dd2=Object[_0x134248(0xd8)](_0x5331be,_0x331b61):_0xca4dd2,_0x223dca;if(typeof Reflect==_0x134248(0xec)&&typeof Reflect[_0x134248(0xe2)]==_0x134248(0xd7))_0x43c383=Reflect[_0x134248(0xe2)](_0x20c443,_0x5331be,_0x331b61,_0xca4dd2);else{for(var _0x428b6b=_0x20c443[_0x134248(0x10c)]-0x1;_0x428b6b>=0x0;_0x428b6b--)(_0x223dca=_0x20c443[_0x428b6b])&&(_0x43c383=(_0x3ec866<0x3?_0x223dca(_0x43c383):_0x3ec866>0x3?_0x223dca(_0x5331be,_0x331b61,_0x43c383):_0x223dca(_0x5331be,_0x331b61))||_0x43c383);}return _0x3ec866>0x3&&_0x43c383&&Object[_0x134248(0x119)](_0x5331be,_0x331b61,_0x43c383),_0x43c383;}let _0xab9e57=class{constructor(_0x4eb9ed,_0x1441f5,_0x2f6a16){var _0x1834c6=_0x3f7d9c;this[_0x1834c6(0xe8)]=_0x4eb9ed,this[_0x1834c6(0xfe)]=_0x1441f5,this[_0x1834c6(0x10a)]=_0x2f6a16,_0x493317(this,_0x1834c6(0xf0),void 0x0),this[_0x1834c6(0xf0)]=this['_document']['getId']();}['getId'](){var _0x4c3cc1=_0x3f7d9c;return this[_0x4c3cc1(0xfe)];}['getRange'](){var _0x239e86=_0x3f7d9c;let _0x4981f1=this[_0x239e86(0x104)]();return _0x4981f1?{'blockId':_0x4981f1[_0x239e86(0xd1)],'endIndex':_0x4981f1[_0x239e86(0x111)],'startIndex':_0x4981f1[_0x239e86(0xd3)]}:null;}[_0x3f7d9c(0xda)](){var _0x56a6d5=_0x3f7d9c,_0x206f26;let _0x1a3646=this['_getBlockRange'](),_0xc77a9a=(_0x206f26=this[_0x56a6d5(0x116)]()[_0x56a6d5(0xfa)])==null?void 0x0:_0x206f26[_0x56a6d5(0xd0)];return!_0x1a3646||!_0xc77a9a?'':_0x5cfcac(_0xc77a9a[_0x56a6d5(0x106)](_0x1a3646[_0x56a6d5(0xd3)]+0x1,_0x1a3646[_0x56a6d5(0x111)]));}[_0x3f7d9c(0xfc)](){var _0x3be99e=_0x3f7d9c;let _0x4b561b=this[_0x3be99e(0xf6)]();return _0x4b561b?{..._0x4b561b,'config':this[_0x3be99e(0x112)](),'text':this[_0x3be99e(0xda)](),'type':_0xeebcc9['DocumentBlockRangeType'][_0x3be99e(0xf8)]}:null;}[_0x3f7d9c(0x112)](){var _0x116654=_0x3f7d9c;return(0x0,_0xd2c11['normalizeDocsCodeConfig'])(this[_0x116654(0x10a)][_0x116654(0xef)](_0xd2c11['DocsCodeModel'])[_0x116654(0x10d)](this[_0x116654(0xf0)],this[_0x116654(0xfe)]));}['updateConfig'](_0x573cd6){var _0xc22eb4=_0x3f7d9c;return this[_0xc22eb4(0x10a)]['get'](_0xeebcc9['ICommandService'])[_0xc22eb4(0xed)](_0xd2c11[_0xc22eb4(0x102)]['id'],{'blockId':this[_0xc22eb4(0xfe)],'config':_0x573cd6[_0xc22eb4(0xdd)],'unitId':this[_0xc22eb4(0xf0)]});}[_0x3f7d9c(0x117)](_0x2036ad){var _0x38191b=_0x3f7d9c;return this[_0x38191b(0x10a)][_0x38191b(0xef)](_0xeebcc9[_0x38191b(0xdb)])[_0x38191b(0xed)](_0xd2c11['DocsCodeExitCommand']['id'],{'cursorOffset':_0x2036ad,'unitId':this['_unitId']});}['cancelEmptyParagraph'](_0x3bbfb0={}){var _0x3b0508=_0x3f7d9c;return this['_injector'][_0x3b0508(0xef)](_0xeebcc9[_0x3b0508(0xdb)])[_0x3b0508(0xed)](_0xd2c11[_0x3b0508(0xdc)]['id'],{..._0x3bbfb0,'unitId':this[_0x3b0508(0xf0)]});}[_0x3f7d9c(0x116)](){var _0xa497c1=_0x3f7d9c;return this[_0xa497c1(0xe8)][_0xa497c1(0xc7)]();}['_getBlockRange'](){var _0xfcfba2=_0x3f7d9c,_0x2952cc;let _0x31488a=(_0x2952cc=this[_0xfcfba2(0x116)]()[_0xfcfba2(0xfa)])==null||(_0x2952cc=_0x2952cc['blockRanges'])==null?void 0x0:_0x2952cc[_0xfcfba2(0x11d)](_0x2e37d3=>_0x2e37d3['blockId']===this[_0xfcfba2(0xfe)]&&_0x2e37d3[_0xfcfba2(0xf3)]===_0xeebcc9['DocumentBlockRangeType'][_0xfcfba2(0xf8)]);return _0x31488a==null?null:_0x31488a;}};_0xab9e57=_0x27454e([_0xe18890(0x2,(0x0,_0xeebcc9['Inject'])(_0xeebcc9[_0x3f7d9c(0xc8)]))],_0xab9e57);function _0x5cfcac(_0x12384b){var _0x145409=_0x3f7d9c;return Array[_0x145409(0xdf)](_0x12384b)[_0x145409(0xcc)](_0xed378d=>_0xed378d===_0xeebcc9[_0x145409(0x10b)]['PARAGRAPH']?'\x0a':_0xed378d)[_0x145409(0xca)](_0x10fd4f=>_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)][_0x145409(0xc9)]&&_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)]['BLOCK_END']&&_0x10fd4f!==_0xeebcc9[_0x145409(0x10b)][_0x145409(0xfb)])[_0x145409(0x115)]('')[_0x145409(0xd2)](/\n$/,'');}var _0x1820ac=class extends _0x10dfdf[_0x3f7d9c(0x107)]{[_0x3f7d9c(0xe6)](){var _0x20e7ad=_0x3f7d9c;return this[_0x20e7ad(0xe5)]()[_0x20e7ad(0xca)](_0x5b1eeb=>_0x5b1eeb[_0x20e7ad(0xf3)]===_0xeebcc9[_0x20e7ad(0xf7)][_0x20e7ad(0xf8)])['map'](_0x19a19b=>this[_0x20e7ad(0x11b)](_0x19a19b['blockId']));}[_0x3f7d9c(0xf1)](_0x2af45e){var _0xf01a88=_0x3f7d9c;return this[_0xf01a88(0xe5)]()['some'](_0x21722b=>_0x21722b[_0xf01a88(0xd1)]===_0x2af45e&&_0x21722b[_0xf01a88(0xf3)]===_0xeebcc9[_0xf01a88(0xf7)][_0xf01a88(0xf8)])?this[_0xf01a88(0x11b)](_0x2af45e):null;}['getCodeAt'](_0x4688ab){var _0x14200a=_0x3f7d9c;let _0x31df9c=this['_getBlockRanges']()['find'](_0x385e75=>_0x385e75[_0x14200a(0xf3)]===_0xeebcc9[_0x14200a(0xf7)][_0x14200a(0xf8)]&&_0x385e75['startIndex']<=_0x4688ab&&_0x4688ab<=_0x385e75[_0x14200a(0x111)]);return _0x31df9c?this[_0x14200a(0x11b)](_0x31df9c[_0x14200a(0xd1)]):null;}[_0x3f7d9c(0xde)](_0x8c3c24){var _0x13023e=_0x3f7d9c,_0x4b35e0;return(_0x4b35e0=this[_0x13023e(0xf9)](_0x8c3c24)[0x0])==null?null:_0x4b35e0;}[_0x3f7d9c(0xf9)](_0x25c39d){var _0x872002=_0x3f7d9c;let _0x480b99=typeof _0x25c39d==_0x872002(0x10f)?{'text':_0x25c39d}:_0x25c39d;return this[_0x872002(0xe6)]()[_0x872002(0xca)](_0x22a836=>!(_0x480b99['blockId']&&_0x22a836[_0x872002(0xfd)]()!==_0x480b99[_0x872002(0xd1)]||_0x480b99[_0x872002(0x11a)]&&!_0x22a836[_0x872002(0xda)]()['includes'](_0x480b99[_0x872002(0x11a)])));}[_0x3f7d9c(0x114)](_0x438cb6={},_0x1a06e5={}){var _0x4c01d7=_0x3f7d9c,_0x132af6;let _0x349648=this[_0x4c01d7(0x10a)][_0x4c01d7(0xef)](_0xeebcc9['ICommandService']),_0x35f51f=_0x2e1b85(_0x438cb6)?{..._0x1a06e5,..._0xed42e0(_0x438cb6)}:_0x438cb6,_0x28c29a=(_0x132af6=_0x35f51f['blockId'])==null?(0x0,_0xeebcc9[_0x4c01d7(0xff)])(0x6):_0x132af6;return _0x349648[_0x4c01d7(0xed)](_0xd2c11[_0x4c01d7(0xcd)]['id'],{..._0x35f51f,'blockId':_0x28c29a,'unitId':this[_0x4c01d7(0xfd)]()})?this[_0x4c01d7(0x11b)](_0x28c29a):null;}['exitCode'](_0xa7bfc){var _0x323a28=_0x3f7d9c;return this[_0x323a28(0x10a)][_0x323a28(0xef)](_0xeebcc9[_0x323a28(0xdb)])[_0x323a28(0xed)](_0xd2c11['DocsCodeExitCommand']['id'],{'cursorOffset':_0xa7bfc,'unitId':this[_0x323a28(0xfd)]()});}['cancelEmptyCodeParagraph'](_0x4132d4={}){var _0x5a8d13=_0x3f7d9c;return this[_0x5a8d13(0x10a)]['get'](_0xeebcc9[_0x5a8d13(0xdb)])['syncExecuteCommand'](_0xd2c11['DocsCodeCancelEmptyParagraphCommand']['id'],{..._0x4132d4,'unitId':this[_0x5a8d13(0xfd)]()});}['_getBlockRanges'](){var _0x45c102=_0x3f7d9c,_0x12d38c,_0x3b20e3;return(_0x12d38c=(_0x3b20e3=this[_0x45c102(0xc7)]()[_0x45c102(0xfa)])==null?void 0x0:_0x3b20e3[_0x45c102(0x10e)])==null?[]:_0x12d38c;}[_0x3f7d9c(0x11b)](_0x12cc22){var _0xad62ea=_0x3f7d9c;return this[_0xad62ea(0x10a)][_0xad62ea(0x101)](_0xab9e57,this,_0x12cc22);}};function _0x2e1b85(_0xcac523){var _0x177f69=_0x3f7d9c;return typeof _0xcac523==_0x177f69(0xec)&&!!_0xcac523&&typeof _0xcac523[_0x177f69(0xe3)]==_0x177f69(0xd7)&&typeof _0xcac523[_0x177f69(0xf6)]==_0x177f69(0xd7)&&typeof _0xcac523[_0x177f69(0xe9)]=='function'&&_0xcac523['getType']()==='paragraph';}function _0xed42e0(_0x15eb09){var _0x40d193=_0x3f7d9c;return _0x15eb09[_0x40d193(0xf6)]();}_0x10dfdf[_0x3f7d9c(0x107)][_0x3f7d9c(0xcf)](_0x1820ac),Object[_0x3f7d9c(0x119)](_0x332042,'FDocumentCode',{'enumerable':!0x0,'get':function(){return _0xab9e57;}});}));function _0x261f(_0x399cc2,_0x3d55e4){_0x399cc2=_0x399cc2-0xc7;var _0x401da4=_0x401d();var _0x261f56=_0x401da4[_0x399cc2];return _0x261f56;}function _0x401d(){var _0x284cd3=['syncExecuteCommand','toPrimitive','get','_unitId','getCode','symbol','blockType','toStringTag','160222sGSgkb','getRange','DocumentBlockRangeType','CODE','findCodes','body','SECTION_BREAK','describe','getId','_blockId','generateRandomId','7007824BUKcLD','createInstance','DocsCodeUpdateCommand','Module','_getBlockRange','UniverCore','slice','FDocument','333528NoHDHX','748725ExRWFr','_injector','DataStreamTreeTokenType','length','getCodeConfig','blockRanges','string','UniverProDocsCodeFacade','endIndex','getConfig','amd','insertCode','join','_getDocumentData','exit','prototype','defineProperty','text','_createFDocumentCode','4657478UjFJDl','find','save','Injector','BLOCK_START','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','map','DocsCodeInsertCommand','11YpFfIT','extend','dataStream','blockId','replace','startIndex','constructor','35767930xGDTra','16ILCewl','function','getOwnPropertyDescriptor','@univerjs-pro/docs-code','getText','ICommandService','DocsCodeCancelEmptyParagraphCommand','config','findCodeByText','from','3921705sUsbha','exports','decorate','getKey','default','_getBlockRanges','getCodes','call','_document','getType','UniverDocsFacade','35IBfIlO','object'];_0x401d=function(){return _0x284cd3;};return _0x401d();}
1
+ function _0x10a7(_0x264979,_0x58e68b){_0x264979=_0x264979-0x125;var _0x2bfc60=_0x2bfc();var _0x10a7c3=_0x2bfc60[_0x264979];return _0x10a7c3;}function _0x2bfc(){var _0x3d0cfa=['getId','_unitId','1197966LguXBD','text','10uesFbN','startIndex','_getBlockRange','amd','blockId','48060HqDSxK','20700IudsdK','join','DocsCodeInsertCommand','DocsCodeUnwrapCommand','_getBlockRanges','string','object','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','CODE','config','21bHzMxL','from','17958CYEllR','toStringTag','includes','find','defineProperty','_blockId','iterator','_getDocumentData','exports','1633509ehLCVI','get','describe','194794GSYIkD','getCodeConfig','Module','call','symbol','_createFDocumentCode','@univerjs/docs/facade','getCode','filter','decorate','endIndex','save','getCodeAt','BLOCK_START','syncExecuteCommand','unwrap','remove','_injector','blockType','function','length','replace','Inject','DocsCodeRemoveCommand','ICommandService','getText','DocumentBlockRangeType','191552VGQOMw','slice','DataStreamTreeTokenType','BLOCK_END','UniverCore','14Inacdu','body','prototype','@univerjs-pro/docs-code','map','isParagraphFacade','getCodes','_document','findCodes','getRange','PARAGRAPH','UniverProDocsCode','default','getOwnPropertyDescriptor','40uQRwIb','FDocument','blockRanges'];_0x2bfc=function(){return _0x3d0cfa;};return _0x2bfc();}(function(_0xf83460,_0x2b03d6){var _0x9cfe0f=_0x10a7,_0x47389b=_0xf83460();while(!![]){try{var _0x56e27a=parseInt(_0x9cfe0f(0x149))/0x1+-parseInt(_0x9cfe0f(0x131))/0x2*(-parseInt(_0x9cfe0f(0x13b))/0x3)+parseInt(_0x9cfe0f(0x177))/0x4*(-parseInt(_0x9cfe0f(0x130))/0x5)+-parseInt(_0x9cfe0f(0x13d))/0x6+-parseInt(_0x9cfe0f(0x169))/0x7*(parseInt(_0x9cfe0f(0x164))/0x8)+parseInt(_0x9cfe0f(0x146))/0x9*(parseInt(_0x9cfe0f(0x12b))/0xa)+-parseInt(_0x9cfe0f(0x129))/0xb;if(_0x56e27a===_0x2b03d6)break;else _0x47389b['push'](_0x47389b['shift']());}catch(_0x4e78db){_0x47389b['push'](_0x47389b['shift']());}}}(_0x2bfc,0x2f146),function(_0x3da630,_0x3fec1d){var _0x35b0ab=_0x10a7;typeof exports=='object'&&typeof module<'u'?_0x3fec1d(exports,require('@univerjs-pro/docs-code'),require('@univerjs/core'),require('@univerjs/docs/facade')):typeof define==_0x35b0ab(0x15c)&&define[_0x35b0ab(0x12e)]?define([_0x35b0ab(0x145),_0x35b0ab(0x16c),'@univerjs/core',_0x35b0ab(0x14f)],_0x3fec1d):(_0x3da630=typeof globalThis<'u'?globalThis:_0x3da630||self,_0x3fec1d(_0x3da630['UniverProDocsCodeFacade']={},_0x3da630[_0x35b0ab(0x174)],_0x3da630[_0x35b0ab(0x168)],_0x3da630['UniverDocsFacade']));}(this,function(_0x2c1b3a,_0x30e95e,_0x1b20fe,_0x47a7ad){var _0x2f2609=_0x10a7;Object[_0x2f2609(0x141)](_0x2c1b3a,Symbol[_0x2f2609(0x13e)],{'value':_0x2f2609(0x14b)});function _0x1b989d(_0x234904){'@babel/helpers - typeof';var _0x143c07=_0x2f2609;return _0x1b989d=typeof Symbol==_0x143c07(0x15c)&&typeof Symbol[_0x143c07(0x143)]==_0x143c07(0x14d)?function(_0x300946){return typeof _0x300946;}:function(_0x374bb7){var _0x1aa38d=_0x143c07;return _0x374bb7&&typeof Symbol==_0x1aa38d(0x15c)&&_0x374bb7['constructor']===Symbol&&_0x374bb7!==Symbol[_0x1aa38d(0x16b)]?'symbol':typeof _0x374bb7;},_0x1b989d(_0x234904);}function _0x2eb9a2(_0x378002,_0x48c49c){var _0x441f9b=_0x2f2609;if(_0x1b989d(_0x378002)!=_0x441f9b(0x137)||!_0x378002)return _0x378002;var _0x3a7dda=_0x378002[Symbol['toPrimitive']];if(_0x3a7dda!==void 0x0){var _0x27eb97=_0x3a7dda[_0x441f9b(0x14c)](_0x378002,_0x48c49c||_0x441f9b(0x175));if(_0x1b989d(_0x27eb97)!='object')return _0x27eb97;throw TypeError(_0x441f9b(0x138));}return(_0x48c49c===_0x441f9b(0x136)?String:Number)(_0x378002);}function _0x36f3c7(_0x137acc){var _0x4e35d6=_0x2f2609,_0x40935f=_0x2eb9a2(_0x137acc,_0x4e35d6(0x136));return _0x1b989d(_0x40935f)=='symbol'?_0x40935f:_0x40935f+'';}function _0x2b237c(_0x3f4039,_0x14b9c3,_0x60bd88){var _0x2b1c28=_0x2f2609;return(_0x14b9c3=_0x36f3c7(_0x14b9c3))in _0x3f4039?Object[_0x2b1c28(0x141)](_0x3f4039,_0x14b9c3,{'value':_0x60bd88,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f4039[_0x14b9c3]=_0x60bd88,_0x3f4039;}function _0x50512e(_0x2f33f0,_0x38773c){return function(_0x373197,_0x261b49){_0x38773c(_0x373197,_0x261b49,_0x2f33f0);};}function _0x3c9db7(_0x5d0ed8,_0x191c7e,_0x557d23,_0x369b48){var _0x15a71a=_0x2f2609,_0x2edbab=arguments[_0x15a71a(0x15d)],_0x32efca=_0x2edbab<0x3?_0x191c7e:_0x369b48===null?_0x369b48=Object[_0x15a71a(0x176)](_0x191c7e,_0x557d23):_0x369b48,_0x110183;if(typeof Reflect==_0x15a71a(0x137)&&typeof Reflect['decorate']==_0x15a71a(0x15c))_0x32efca=Reflect[_0x15a71a(0x152)](_0x5d0ed8,_0x191c7e,_0x557d23,_0x369b48);else{for(var _0x1a949b=_0x5d0ed8['length']-0x1;_0x1a949b>=0x0;_0x1a949b--)(_0x110183=_0x5d0ed8[_0x1a949b])&&(_0x32efca=(_0x2edbab<0x3?_0x110183(_0x32efca):_0x2edbab>0x3?_0x110183(_0x191c7e,_0x557d23,_0x32efca):_0x110183(_0x191c7e,_0x557d23))||_0x32efca);}return _0x2edbab>0x3&&_0x32efca&&Object[_0x15a71a(0x141)](_0x191c7e,_0x557d23,_0x32efca),_0x32efca;}let _0x155004=class{constructor(_0x51a5c8,_0x1d1013,_0x13e186){var _0x4544aa=_0x2f2609;this[_0x4544aa(0x170)]=_0x51a5c8,this[_0x4544aa(0x142)]=_0x1d1013,this[_0x4544aa(0x15a)]=_0x13e186,_0x2b237c(this,_0x4544aa(0x128),void 0x0),this[_0x4544aa(0x128)]=this[_0x4544aa(0x170)]['getId']();}[_0x2f2609(0x127)](){var _0x2aa272=_0x2f2609;return this[_0x2aa272(0x142)];}[_0x2f2609(0x172)](){var _0x1a6b58=_0x2f2609;let _0x56b5ce=this[_0x1a6b58(0x12d)]();return _0x56b5ce?{'blockId':_0x56b5ce[_0x1a6b58(0x12f)],'endIndex':_0x56b5ce[_0x1a6b58(0x153)],'startIndex':_0x56b5ce[_0x1a6b58(0x12c)]}:null;}[_0x2f2609(0x162)](){var _0x416d77=_0x2f2609,_0xbbc743;let _0x4da3fa=this[_0x416d77(0x12d)](),_0x3ebc50=(_0xbbc743=this['_getDocumentData']()[_0x416d77(0x16a)])==null?void 0x0:_0xbbc743['dataStream'];return!_0x4da3fa||!_0x3ebc50?'':_0x57875d(_0x3ebc50[_0x416d77(0x165)](_0x4da3fa[_0x416d77(0x12c)]+0x1,_0x4da3fa[_0x416d77(0x153)]));}[_0x2f2609(0x148)](){var _0x12d191=_0x2f2609;let _0x2e2124=this[_0x12d191(0x172)]();return _0x2e2124?{..._0x2e2124,'config':this['getConfig'](),'text':this[_0x12d191(0x162)](),'type':_0x1b20fe[_0x12d191(0x163)][_0x12d191(0x139)]}:null;}['getConfig'](){var _0xc85822=_0x2f2609;return(0x0,_0x30e95e['normalizeDocsCodeConfig'])(this[_0xc85822(0x15a)][_0xc85822(0x147)](_0x30e95e['DocsCodeModel'])[_0xc85822(0x14a)](this[_0xc85822(0x128)],this[_0xc85822(0x142)]));}['updateConfig'](_0x49e1dd){var _0x303a23=_0x2f2609;return this['_injector'][_0x303a23(0x147)](_0x1b20fe['ICommandService'])[_0x303a23(0x157)](_0x30e95e['DocsCodeUpdateCommand']['id'],{'blockId':this[_0x303a23(0x142)],'config':_0x49e1dd[_0x303a23(0x13a)],'unitId':this[_0x303a23(0x128)]});}[_0x2f2609(0x158)](){var _0x43175a=_0x2f2609;return this[_0x43175a(0x15a)][_0x43175a(0x147)](_0x1b20fe[_0x43175a(0x161)])[_0x43175a(0x157)](_0x30e95e[_0x43175a(0x134)]['id'],{'blockId':this[_0x43175a(0x142)],'unitId':this[_0x43175a(0x128)]});}[_0x2f2609(0x159)](){var _0xc38de8=_0x2f2609;return this[_0xc38de8(0x15a)]['get'](_0x1b20fe[_0xc38de8(0x161)])[_0xc38de8(0x157)](_0x30e95e[_0xc38de8(0x160)]['id'],{'blockId':this[_0xc38de8(0x142)],'unitId':this[_0xc38de8(0x128)]});}[_0x2f2609(0x12d)](){var _0x4f8cb6=_0x2f2609,_0xc2d99c;let _0x270358=(_0xc2d99c=this['_getDocumentData']()[_0x4f8cb6(0x16a)])==null||(_0xc2d99c=_0xc2d99c[_0x4f8cb6(0x126)])==null?void 0x0:_0xc2d99c[_0x4f8cb6(0x140)](_0x3d8b54=>_0x3d8b54[_0x4f8cb6(0x12f)]===this[_0x4f8cb6(0x142)]&&_0x3d8b54[_0x4f8cb6(0x15b)]===_0x1b20fe[_0x4f8cb6(0x163)][_0x4f8cb6(0x139)]);return _0x270358==null?null:_0x270358;}[_0x2f2609(0x144)](){var _0x923951=_0x2f2609;return this[_0x923951(0x170)][_0x923951(0x154)]();}};_0x155004=_0x3c9db7([_0x50512e(0x2,(0x0,_0x1b20fe[_0x2f2609(0x15f)])(_0x1b20fe['Injector']))],_0x155004);function _0x57875d(_0x4bb6a5){var _0x443f02=_0x2f2609;return Array[_0x443f02(0x13c)](_0x4bb6a5)[_0x443f02(0x16d)](_0x2f32cf=>_0x2f32cf===_0x1b20fe[_0x443f02(0x166)][_0x443f02(0x173)]?'\x0a':_0x2f32cf)[_0x443f02(0x151)](_0x40845c=>_0x40845c!==_0x1b20fe[_0x443f02(0x166)][_0x443f02(0x156)]&&_0x40845c!==_0x1b20fe[_0x443f02(0x166)][_0x443f02(0x167)]&&_0x40845c!==_0x1b20fe[_0x443f02(0x166)]['SECTION_BREAK'])[_0x443f02(0x132)]('')[_0x443f02(0x15e)](/\n$/,'');}var _0x5b56d8=class extends _0x47a7ad[_0x2f2609(0x125)]{[_0x2f2609(0x16f)](){var _0x31390a=_0x2f2609;return this[_0x31390a(0x135)]()[_0x31390a(0x151)](_0x53b88a=>_0x53b88a[_0x31390a(0x15b)]===_0x1b20fe[_0x31390a(0x163)][_0x31390a(0x139)])[_0x31390a(0x16d)](_0x1373c3=>this[_0x31390a(0x14e)](_0x1373c3['blockId']));}[_0x2f2609(0x150)](_0x13012a){var _0x25aa1a=_0x2f2609;return this['_getBlockRanges']()['some'](_0x17ce42=>_0x17ce42[_0x25aa1a(0x12f)]===_0x13012a&&_0x17ce42[_0x25aa1a(0x15b)]===_0x1b20fe[_0x25aa1a(0x163)][_0x25aa1a(0x139)])?this[_0x25aa1a(0x14e)](_0x13012a):null;}[_0x2f2609(0x155)](_0x357d0b){var _0x47b344=_0x2f2609;let _0x73c95f=this[_0x47b344(0x135)]()['find'](_0x4654f9=>_0x4654f9[_0x47b344(0x15b)]===_0x1b20fe[_0x47b344(0x163)]['CODE']&&_0x4654f9['startIndex']<=_0x357d0b&&_0x357d0b<=_0x4654f9[_0x47b344(0x153)]);return _0x73c95f?this['_createFDocumentCode'](_0x73c95f[_0x47b344(0x12f)]):null;}['findCodeByText'](_0x204edd){var _0x2f08cb;return(_0x2f08cb=this['findCodes'](_0x204edd)[0x0])==null?null:_0x2f08cb;}[_0x2f2609(0x171)](_0x5b9d30){var _0x2897dd=_0x2f2609;let _0xcf7a4a=typeof _0x5b9d30==_0x2897dd(0x136)?{'text':_0x5b9d30}:_0x5b9d30;return this[_0x2897dd(0x16f)]()[_0x2897dd(0x151)](_0x1dad28=>!(_0xcf7a4a['blockId']&&_0x1dad28[_0x2897dd(0x127)]()!==_0xcf7a4a[_0x2897dd(0x12f)]||_0xcf7a4a['text']&&!_0x1dad28['getText']()[_0x2897dd(0x13f)](_0xcf7a4a[_0x2897dd(0x12a)])));}['insertCode'](_0x3dde7d={},_0x4b9309={}){var _0x4ae277=_0x2f2609,_0xc79b19;let _0x55feae=this[_0x4ae277(0x15a)][_0x4ae277(0x147)](_0x1b20fe[_0x4ae277(0x161)]),_0x3660d8=(0x0,_0x47a7ad[_0x4ae277(0x16e)])(_0x3dde7d)?{..._0x4b9309,..._0x3dde7d[_0x4ae277(0x172)]()}:_0x3dde7d,_0x27fb49=(_0xc79b19=_0x3660d8[_0x4ae277(0x12f)])==null?(0x0,_0x1b20fe['generateRandomId'])(0x6):_0xc79b19;return _0x55feae[_0x4ae277(0x157)](_0x30e95e[_0x4ae277(0x133)]['id'],{..._0x3660d8,'blockId':_0x27fb49,'unitId':this[_0x4ae277(0x127)]()})?this[_0x4ae277(0x150)](_0x27fb49):null;}[_0x2f2609(0x135)](){var _0x3de8c0=_0x2f2609,_0x17880a,_0x512f09;return(_0x17880a=(_0x512f09=this[_0x3de8c0(0x154)]()[_0x3de8c0(0x16a)])==null?void 0x0:_0x512f09[_0x3de8c0(0x126)])==null?[]:_0x17880a;}[_0x2f2609(0x14e)](_0x38c85f){var _0x51e9bf=_0x2f2609;return this[_0x51e9bf(0x15a)]['createInstance'](_0x155004,this,_0x38c85f);}};_0x47a7ad['FDocument']['extend'](_0x5b56d8),Object[_0x2f2609(0x141)](_0x2c1b3a,'FDocumentCode',{'enumerable':!0x0,'get':function(){return _0x155004;}});}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x3e30(){const _0xe33266=['commandService','91092uDyKTZ','DocsCodeInsertBelowCommand','DocsCodeUpdateCommand','UniverDocs','indentStart','object','indentEnd','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pluginName','version','string','IResourceManagerService','normalizeDocsCodeConfig','UniverDocsCodePlugin','_resources','symbol','asObservable','every','COMMAND','previousDocumentData','DEFAULT_CODE_CONFIG','isCodeBoundaryDelete','42JgBPdo','packageName','CODE','UNIVER_DOC','paragraphs','Tools','@univerjs-pro/license','customDecorations','DOC_CODE_PLUGIN','exports','UniverInstanceType','from','paragraphId','function','range','deserialize','direction','spaceAbove','next','model','buildExitCodeActions','set','map','blockRanges','syncExecuteCommand','javascript','indexOf','1325010vAAWpA','2204364VoKliI','PARAGRAPH','merge','DocsCodeInsertCommand','diffValue','DocContentInsertService','getTextRanges','find','get','length','@univerjs/core','UniverProLicense','clear','entries','1.0.0-alpha.1','getOwnPropertyDescriptor','blockType','spaceBelow','min','41292IhAZqW','startIndex','prototype','reduce','disposeWithMe','DependentOn','decorate','220703bduipV','parse','Injector','defineProperty','setConfig','nextMetadata','unitId','removeCode','getCurrentUnitOfType','getCodeConfig','docs-code.command.cancel-empty-paragraph','constructor','paragraph','toStringTag','_injector','RichTextEditingMutation','max','removeUnit','_change$','cursorOffset','registerPluginResource','JSONX','setCodeConfig','textStyle','textRuns','CommandType','nextDocumentData','_config','rxjs','complete','paragraphStartIndex','Disposable','join','buildUpdateCodeActions','9cnZtGc','buildInsertCodeActions','change$','4696JrrVxs','DocsCodeCancelEmptyParagraphCommand','22pVNdQg','_docsCodeModel','_commandService','@univerjs-pro/docs-code','deepClone','sort','endIndex','DocumentBlockRangeType','BLOCK_START','startOffset','forEach','_resourceManagerService','Inject','documentData','some','docs-code.config','DataStreamTreeTokenType','BLOCK_END','docs-code.command.insert-below','delete','serialize','call','dataStream','Subject','paragraphStyle','getInstance','findCodeRangeAtOffset','tables','dispose','add','sectionBreaks','_configService','900xFaNJD','getBody','blockId','body','endOffset','onStarting','filter','customBlocks','generateRandomId','IUniverInstanceService','codes','replaceOp','config','8TYJBDJ','getUnitId','monospace','_setResource','docs-code.command.insert','UniverDocsPlugin','createParagraphId','Module','ICommandService','SECTION_BREAK','slice','414320glvXpM','fromEntries','_initResource','UniverLicensePlugin','customRanges','amd','consumeInsertRange','type','getUniverDocInstance','metadata'];_0x3e30=function(){return _0xe33266;};return _0x3e30();}function _0x1a29(_0x539223,_0x200863){_0x539223=_0x539223-0x18b;const _0x3e3092=_0x3e30();let _0x1a29e4=_0x3e3092[_0x539223];return _0x1a29e4;}(function(_0xf86dfe,_0x210d9e){const _0x252623=_0x1a29,_0xc8e074=_0xf86dfe();while(!![]){try{const _0x49c647=parseInt(_0x252623(0x1c5))/0x1+-parseInt(_0x252623(0x220))/0x2*(-parseInt(_0x252623(0x236))/0x3)+parseInt(_0x252623(0x1f1))/0x4*(parseInt(_0x252623(0x213))/0x5)+parseInt(_0x252623(0x196))/0x6*(parseInt(_0x252623(0x1cc))/0x7)+parseInt(_0x252623(0x22b))/0x8+-parseInt(_0x252623(0x1ee))/0x9*(parseInt(_0x252623(0x1b1))/0xa)+-parseInt(_0x252623(0x1f3))/0xb*(parseInt(_0x252623(0x1b2))/0xc);if(_0x49c647===_0x210d9e)break;else _0xc8e074['push'](_0xc8e074['shift']());}catch(_0x23b5ed){_0xc8e074['push'](_0xc8e074['shift']());}}}(_0x3e30,0x23cea),function(_0x3ad434,_0x12ddfe){const _0x544dd5=_0x1a29;typeof exports=='object'&&typeof module<'u'?_0x12ddfe(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x544dd5(0x1a3)&&define[_0x544dd5(0x230)]?define([_0x544dd5(0x19f),_0x544dd5(0x1bc),'@univerjs/docs',_0x544dd5(0x1e8),_0x544dd5(0x19c)],_0x12ddfe):(_0x3ad434=typeof globalThis<'u'?globalThis:_0x3ad434||self,_0x12ddfe(_0x3ad434['UniverProDocsCode']={},_0x3ad434['UniverCore'],_0x3ad434[_0x544dd5(0x239)],_0x3ad434[_0x544dd5(0x1e8)],_0x3ad434[_0x544dd5(0x1bd)]));}(this,function(_0x323281,_0x2d2ae4,_0x420f42,_0x6794,_0x181267){const _0x18bb44=_0x1a29;Object['defineProperty'](_0x323281,Symbol[_0x18bb44(0x1d9)],{'value':_0x18bb44(0x227)});let _0x44adb7={'language':_0x18bb44(0x1af),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x566ed2(_0x5cb8ac){return{..._0x44adb7,..._0x5cb8ac};}function _0x44cb53(_0x13c591){const _0x49ef01=_0x18bb44;var _0x327ffc;let _0x281d1b=(_0x327ffc=_0x13c591==null?void 0x0:_0x13c591[_0x49ef01(0x21d)])==null?{}:_0x327ffc;return{'codes':Object[_0x49ef01(0x22c)](Object[_0x49ef01(0x1bf)](_0x281d1b)[_0x49ef01(0x1ac)](([_0x35c427,_0x1df97e])=>[_0x35c427,_0x566ed2(_0x1df97e)]))};}function _0x372441(_0x24fc4e,_0x3f7693,_0x19c8bd){const _0x4c0027=_0x18bb44;let _0x47b713=_0x44cb53(_0x24fc4e);return _0x47b713[_0x4c0027(0x21d)][_0x3f7693]=_0x566ed2({..._0x47b713['codes'][_0x3f7693],..._0x19c8bd}),_0x47b713;}function _0x49632f(_0x37237b,_0x4c996f){const _0x50a16c=_0x18bb44;let _0x432c23=_0x44cb53(_0x37237b);return delete _0x432c23[_0x50a16c(0x21d)][_0x4c996f],_0x432c23;}let _0x40102b=_0x18bb44(0x222);function _0x125d20(_0x52e064){const _0x4bf278=_0x18bb44;var _0x1e8fd1,_0x52c250,_0x412ea2;let _0x4c3d42=_0x34bf55(_0x52e064[_0x4bf278(0x200)]),_0x19901f=_0x174fb6(_0x4c3d42),_0x455e18=_0x574187(_0x52e064[_0x4bf278(0x1fc)],_0x52e064[_0x4bf278(0x217)]),_0x7e67b5=_0x455e18?(_0x1e8fd1=_0x19901f['blockRanges'])==null?void 0x0:_0x1e8fd1[_0x4bf278(0x1b9)](_0x20d67c=>_0x20d67c[_0x4bf278(0x1c6)]===_0x455e18['startOffset']&&_0x20d67c['endIndex']+0x1===_0x455e18['endOffset']):void 0x0,{startOffset:_0x1aedd8,endOffset:_0x187a9b}=_0x7e67b5?_0x455e18:_0x1bfbe8(_0x19901f,_0x52e064[_0x4bf278(0x1fc)],_0x52e064[_0x4bf278(0x217)]),_0x19e468=_0x1d7302(_0x19901f,_0x1aedd8,_0x187a9b),_0x730958=(_0x52c250=_0x7e67b5==null?void 0x0:_0x7e67b5[_0x4bf278(0x215)])==null?_0x52e064['blockId']:_0x52c250,_0x5ba9cd=_0x372441(_0x52e064['metadata'],_0x730958,{..._0x44adb7,..._0x52e064['config']});if(_0x7e67b5)return _0x7e67b5[_0x4bf278(0x1c2)]=_0x2d2ae4['DocumentBlockRangeType'][_0x4bf278(0x198)],_0x569549(_0x19901f,_0x1aedd8,_0x187a9b),_0x9c4542(_0x19901f,_0x1aedd8,_0x187a9b,_0x19e468),_0x925f26(_0x19901f,_0x7e67b5),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};if(_0x1aedd8===_0x187a9b){var _0x1c5750,_0x40b1f6;let _0x363720=''+_0x2d2ae4[_0x4bf278(0x203)][_0x4bf278(0x1fb)]+_0x2d2ae4['DataStreamTreeTokenType'][_0x4bf278(0x1b3)]+_0x2d2ae4[_0x4bf278(0x203)]['BLOCK_END'];_0x2625f3(_0x19901f,_0x1aedd8,_0x363720,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x2d2ae4[_0x4bf278(0x226)])(new Set((_0x1c5750=_0x19901f['paragraphs'])==null?void 0x0:_0x1c5750['map'](_0x2f37f2=>_0x2f37f2[_0x4bf278(0x1a2)]))),'paragraphStyle':_0x4f732c(!0x0,!0x0,_0x19e468)}],'blockRanges':[{'blockId':_0x730958,'blockType':_0x2d2ae4['DocumentBlockRangeType']['CODE'],'startIndex':0x0,'endIndex':_0x363720[_0x4bf278(0x1bb)]-0x1}]});let _0x52a3be=(_0x40b1f6=_0x19901f['blockRanges'])==null?void 0x0:_0x40b1f6[_0x4bf278(0x1b9)](_0x1d8eef=>_0x1d8eef['blockId']===_0x730958);return _0x52a3be&&_0x925f26(_0x19901f,_0x52a3be),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};}_0x2625f3(_0x19901f,_0x187a9b,_0x2d2ae4[_0x4bf278(0x203)][_0x4bf278(0x204)]),_0x2625f3(_0x19901f,_0x1aedd8,_0x2d2ae4['DataStreamTreeTokenType'][_0x4bf278(0x1fb)]),_0x9c4542(_0x19901f,_0x1aedd8,_0x187a9b+0x1,_0x19e468);let _0x5bdffc={'blockId':_0x730958,'blockType':_0x2d2ae4[_0x4bf278(0x1fa)][_0x4bf278(0x198)],'startIndex':_0x1aedd8,'endIndex':_0x187a9b+0x1};return _0x19901f['blockRanges']=[...(_0x412ea2=_0x19901f[_0x4bf278(0x1ad)])==null?[]:_0x412ea2,_0x5bdffc][_0x4bf278(0x1f8)]((_0x24d1d2,_0x5386a3)=>_0x24d1d2[_0x4bf278(0x1c6)]-_0x5386a3[_0x4bf278(0x1c6)]),_0x925f26(_0x19901f,_0x5bdffc),{'nextDocumentData':_0x4c3d42,'nextMetadata':_0x5ba9cd,'cursorOffset':_0x1aedd8+0x1};}function _0x569549(_0x5be7ad,_0x8f172c,_0x3183ca){const _0x5b9ba6=_0x18bb44;var _0x22834f;((_0x22834f=_0x5be7ad[_0x5b9ba6(0x19a)])==null?[]:_0x22834f)[_0x5b9ba6(0x219)](_0x37b307=>_0x37b307['startIndex']>_0x8f172c&&_0x37b307[_0x5b9ba6(0x1c6)]<_0x3183ca)['forEach'](_0x4a284d=>{const _0xfac6fc=_0x5b9ba6;var _0x575833;let _0x429ac9={...(_0x575833=_0x4a284d[_0xfac6fc(0x20b)])==null?{}:_0x575833};delete _0x429ac9[_0xfac6fc(0x1a7)],delete _0x429ac9[_0xfac6fc(0x1c3)],_0x4a284d[_0xfac6fc(0x20b)]=_0x429ac9;});}function _0x574187(_0x22118b,_0x4e9e1b){const _0x252da2=_0x18bb44;return _0x22118b==null||_0x4e9e1b==null||_0x22118b===_0x4e9e1b?null:{'startOffset':Math[_0x252da2(0x1c4)](_0x22118b,_0x4e9e1b),'endOffset':Math[_0x252da2(0x1dc)](_0x22118b,_0x4e9e1b)};}function _0x5a5761(_0x1aacc8){const _0x1e7a80=_0x18bb44;return{'nextDocumentData':_0x34bf55(_0x1aacc8[_0x1e7a80(0x200)]),'nextMetadata':_0x372441(_0x1aacc8[_0x1e7a80(0x234)],_0x1aacc8[_0x1e7a80(0x215)],_0x1aacc8[_0x1e7a80(0x21f)]),'cursorOffset':0x0};}function _0x4f2c21(_0x571f50){const _0x2aeba7=_0x18bb44;var _0x4b41bf,_0x25c80f;let _0x3b1f80=_0x34bf55(_0x571f50[_0x2aeba7(0x200)]),_0x35e2b7=_0x174fb6(_0x3b1f80),_0x5d53ac=_0x178c6c(_0x35e2b7,_0x571f50[_0x2aeba7(0x1df)]);if(!_0x5d53ac)return null;let _0x1fbe82=_0x5ec5bf(_0x35e2b7,_0x5d53ac),_0x56ef03=_0x1fbe82[_0x1fbe82[_0x2aeba7(0x1bb)]-0x1];if(!_0x56ef03||!_0x20e23f(_0x35e2b7,_0x5d53ac,_0x56ef03)||_0x571f50[_0x2aeba7(0x1df)]<_0x56ef03[_0x2aeba7(0x1c6)])return null;let _0x4ec033=_0x509b08(_0x35e2b7,_0x5d53ac,_0x56ef03);if(_0x4ec033>=_0x5d53ac[_0x2aeba7(0x1f9)])return null;_0x35e2b7[_0x2aeba7(0x209)]=[_0x35e2b7['dataStream']['slice'](0x0,_0x4ec033),_0x2d2ae4[_0x2aeba7(0x203)][_0x2aeba7(0x204)],_0x35e2b7['dataStream'][_0x2aeba7(0x22a)](_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)]),_0x35e2b7[_0x2aeba7(0x209)][_0x2aeba7(0x22a)](_0x5d53ac[_0x2aeba7(0x1f9)]+0x1)][_0x2aeba7(0x1ec)](''),_0x423a0d(_0x35e2b7[_0x2aeba7(0x19a)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x423a0d(_0x35e2b7[_0x2aeba7(0x211)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x423a0d(_0x35e2b7[_0x2aeba7(0x21a)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x163ccc(_0x35e2b7[_0x2aeba7(0x1e4)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x20e)],_0x4ec033,_0x5d53ac['endIndex'],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x22f)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),_0x1f7efe(_0x35e2b7[_0x2aeba7(0x19d)],_0x4ec033,_0x5d53ac[_0x2aeba7(0x1f9)],0x1),(_0x4b41bf=_0x35e2b7[_0x2aeba7(0x1ad)])==null||_0x4b41bf[_0x2aeba7(0x1fd)](_0x1fb831=>{const _0x574da0=_0x2aeba7;_0x1fb831===_0x5d53ac||_0x1fb831[_0x574da0(0x215)]===_0x5d53ac[_0x574da0(0x215)]?_0x1fb831[_0x574da0(0x1f9)]=_0x4ec033:_0x1fb831['startIndex']>=_0x4ec033&&_0x1fb831['startIndex']<_0x5d53ac['endIndex']&&(_0x1fb831['startIndex']+=0x1,_0x1fb831['endIndex']+=0x1);});let _0x3157f6=_0x5ec5bf(_0x35e2b7,{..._0x5d53ac,'endIndex':_0x4ec033});_0x3157f6[_0x2aeba7(0x1fd)]((_0x461101,_0x3ab8f8)=>{const _0x550568=_0x2aeba7;var _0x54c794;_0x461101[_0x550568(0x20b)]={...(_0x54c794=_0x461101['paragraphStyle'])==null?{}:_0x54c794,..._0x4f732c(_0x3ab8f8===0x0,_0x3ab8f8===_0x3157f6['length']-0x1)};});let _0x43e4bf=(_0x25c80f=_0x35e2b7[_0x2aeba7(0x19a)])==null?void 0x0:_0x25c80f[_0x2aeba7(0x1b9)](_0x2545c3=>_0x2545c3[_0x2aeba7(0x1c6)]===_0x4ec033+0x1);return _0x43e4bf&&(_0x43e4bf['paragraphStyle']=_0xc6ed51(_0x43e4bf[_0x2aeba7(0x20b)])),{'nextDocumentData':_0x3b1f80,'cursorOffset':_0x4ec033+0x1};}function _0x5d4520(_0x162042){const _0x27c103=_0x18bb44;let _0x470e2d=_0x34bf55(_0x162042[_0x27c103(0x200)]),_0x39df63=_0x174fb6(_0x470e2d),_0xcf16b2=_0x178c6c(_0x39df63,_0x162042[_0x27c103(0x1df)]);return _0xcf16b2&&_0x156a22(_0x470e2d,_0x39df63,_0xcf16b2,_0x162042[_0x27c103(0x1df)],_0x162042[_0x27c103(0x1ea)])||null;}function _0x156a22(_0x405fa8,_0x3c96f3,_0x19a278,_0x5bb3fc,_0x26989e){const _0x521f8e=_0x18bb44;let _0x20df62=_0x377190(_0x3c96f3,_0x19a278,_0x5bb3fc,_0x26989e);if(!_0x20df62)return null;let _0x153687=_0x20df62['endTokenOffset']-0x1;return _0x2621f2(_0x3c96f3,_0x20df62[_0x521f8e(0x1d8)]['startIndex'],_0x20df62[_0x521f8e(0x1d8)][_0x521f8e(0x1c6)]+0x1),{'nextDocumentData':_0x405fa8,'cursorOffset':_0x153687};}function _0x13a49b(_0x596c29,_0x22f275){const _0x1ccf0e=_0x18bb44;var _0x52bdc7;return _0x596c29==null||(_0x52bdc7=_0x596c29['blockRanges'])==null?void 0x0:_0x52bdc7[_0x1ccf0e(0x1b9)](_0xf1a9b5=>_0xf1a9b5[_0x1ccf0e(0x1c2)]===_0x2d2ae4[_0x1ccf0e(0x1fa)][_0x1ccf0e(0x198)]&&_0xf1a9b5[_0x1ccf0e(0x1c6)]<=_0x22f275&&_0x22f275<=_0xf1a9b5[_0x1ccf0e(0x1f9)]);}function _0x363106(_0x393173){const _0x1cf706=_0x18bb44;var _0x5b1088;let _0x5abee0=_0x393173[_0x1cf706(0x200)][_0x1cf706(0x216)];if(!_0x5abee0)return!0x1;let _0x2284b3=_0x393173['direction']==='left'?_0x393173[_0x1cf706(0x1df)]-0x1:_0x393173[_0x1cf706(0x1df)],_0x1161cd=_0x393173[_0x1cf706(0x1a6)]==='right'?_0x393173[_0x1cf706(0x1df)]+0x1:_0x2284b3;return((_0x5b1088=_0x5abee0[_0x1cf706(0x1ad)])==null?[]:_0x5b1088)[_0x1cf706(0x201)](_0x3b0546=>_0x3b0546[_0x1cf706(0x1c2)]===_0x2d2ae4[_0x1cf706(0x1fa)]['CODE']?_0x2284b3===_0x3b0546[_0x1cf706(0x1c6)]||_0x2284b3===_0x3b0546[_0x1cf706(0x1f9)]||_0x1161cd===_0x3b0546[_0x1cf706(0x1c6)]||_0x1161cd===_0x3b0546[_0x1cf706(0x1f9)]:!0x1);}function _0x178c6c(_0x57008f,_0x2c975a){const _0x142e7f=_0x18bb44;var _0x286481;return(_0x286481=_0x57008f[_0x142e7f(0x1ad)])==null?void 0x0:_0x286481['find'](_0x436ec9=>{const _0xb554a6=_0x142e7f;let _0x11c5a4=_0x4aa120(_0x57008f,_0x436ec9);return _0x436ec9[_0xb554a6(0x1c2)]===_0x2d2ae4[_0xb554a6(0x1fa)][_0xb554a6(0x198)]&&_0x436ec9['startIndex']<=_0x2c975a&&_0x2c975a<=_0x11c5a4+0x2;});}function _0x4f732c(_0x1a6434,_0xd829aa,_0x5b21dd=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x1a6434&&_0x5b21dd?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x40102b,'fs':0xc}};}function _0x9c4542(_0x300898,_0x4817d1,_0x303131,_0x351454=!0x1){const _0x13da71=_0x18bb44;var _0x47ff0f;let _0x847421=((_0x47ff0f=_0x300898[_0x13da71(0x19a)])==null?[]:_0x47ff0f)[_0x13da71(0x219)](_0x162407=>_0x162407[_0x13da71(0x1c6)]>_0x4817d1&&_0x162407[_0x13da71(0x1c6)]<_0x303131);_0x847421['forEach']((_0xc8d7e6,_0x3ee914)=>{const _0x36c66a=_0x13da71;var _0x5537a2;_0xc8d7e6[_0x36c66a(0x20b)]={...(_0x5537a2=_0xc8d7e6[_0x36c66a(0x20b)])==null?{}:_0x5537a2,..._0x4f732c(_0x3ee914===0x0,_0x3ee914===_0x847421[_0x36c66a(0x1bb)]-0x1,_0x351454)};});}function _0xc6ed51(_0x2839cb){const _0x4698fa=_0x18bb44;var _0x1982b6,_0x3ecfb5;let _0x3a0586={..._0x2839cb==null?{}:_0x2839cb};return delete _0x3a0586[_0x4698fa(0x23c)],delete _0x3a0586[_0x4698fa(0x23a)],delete _0x3a0586[_0x4698fa(0x1a7)],delete _0x3a0586[_0x4698fa(0x1c3)],((_0x1982b6=_0x3a0586['textStyle'])==null?void 0x0:_0x1982b6['ff'])===_0x40102b&&((_0x3ecfb5=_0x3a0586[_0x4698fa(0x1e3)])==null?void 0x0:_0x3ecfb5['fs'])===0xc&&delete _0x3a0586[_0x4698fa(0x1e3)],_0x3a0586;}function _0x5ec5bf(_0x40e708,_0x305b86){const _0x4039d9=_0x18bb44;var _0x5d5722;let _0x1a33d8=_0x4aa120(_0x40e708,_0x305b86);return((_0x5d5722=_0x40e708[_0x4039d9(0x19a)])==null?[]:_0x5d5722)[_0x4039d9(0x219)](_0x1fa3c8=>_0x1fa3c8[_0x4039d9(0x1c6)]>_0x305b86[_0x4039d9(0x1c6)]&&_0x1fa3c8[_0x4039d9(0x1c6)]<_0x1a33d8);}function _0x20e23f(_0x38b7d9,_0x4621cd,_0x4c0df9){const _0x2a4490=_0x18bb44;let _0x139267=_0x509b08(_0x38b7d9,_0x4621cd,_0x4c0df9),_0x228329=_0x38b7d9[_0x2a4490(0x209)]['slice'](_0x139267,_0x4c0df9['startIndex']);return Array[_0x2a4490(0x1a1)](_0x228329)['every'](_0x18d486=>_0x18d486===_0x2d2ae4[_0x2a4490(0x203)][_0x2a4490(0x1fb)]||_0x18d486===_0x2d2ae4[_0x2a4490(0x203)]['BLOCK_END']);}function _0x34bf55(_0x5a1d90){const _0xb71dee=_0x18bb44;return _0x2d2ae4[_0xb71dee(0x19b)][_0xb71dee(0x1f7)](_0x5a1d90);}function _0x174fb6(_0xfd21fd){const _0x2ff199=_0x18bb44;if(!_0xfd21fd[_0x2ff199(0x216)])throw Error('Document\x20body\x20is\x20required');return _0xfd21fd['body'];}function _0x1bfbe8(_0x1f6a98,_0x207653,_0x273ecc){const _0x4c2466=_0x18bb44;if(_0x207653==null||_0x273ecc==null){let _0x4b98e6=_0x342a88(_0x1f6a98);return{'startOffset':_0x4b98e6,'endOffset':_0x4b98e6};}let _0x368f5c=Math[_0x4c2466(0x1c4)](_0x207653,_0x273ecc),_0x383d50=Math['max'](_0x207653,_0x273ecc);if(_0x368f5c===_0x383d50){let _0x3bad31=_0x125f8d(_0x1f6a98,_0x368f5c);return{'startOffset':_0x3bad31,'endOffset':_0x3bad31};}return _0x5ba5f5(_0x1f6a98,_0x368f5c,_0x383d50);}function _0x125f8d(_0x304a1a,_0x516ac3){const _0x5e28c3=_0x18bb44;return _0x516ac3===0x0&&_0x304a1a['dataStream'][0x0]===_0x2d2ae4[_0x5e28c3(0x203)][_0x5e28c3(0x1b3)]?0x1:_0x516ac3;}function _0x342a88(_0x1e1815){const _0x84e574=_0x18bb44;return _0x1e1815[_0x84e574(0x209)]['endsWith'](_0x2d2ae4[_0x84e574(0x203)]['SECTION_BREAK'])?Math[_0x84e574(0x1dc)](0x0,_0x1e1815['dataStream']['length']-0x1):_0x1e1815['dataStream'][_0x84e574(0x1bb)];}function _0x1d7302(_0x19113a,_0xce2cfa,_0x39cf86){const _0xa49e11=_0x18bb44;var _0x4d56d3;let _0x6f41a=Math[_0xa49e11(0x1c4)](_0xce2cfa,_0x39cf86),_0x3fe054=Math[_0xa49e11(0x1dc)](_0xce2cfa,_0x39cf86);return!!((_0x4d56d3=_0x19113a[_0xa49e11(0x20e)])!=null&&_0x4d56d3[_0xa49e11(0x201)](_0x1d63a1=>_0x6f41a>_0x1d63a1[_0xa49e11(0x1c6)]&&_0x6f41a<_0x1d63a1['endIndex']||_0x3fe054>_0x1d63a1[_0xa49e11(0x1c6)]&&_0x3fe054<_0x1d63a1[_0xa49e11(0x1f9)]||_0x6f41a<=_0x1d63a1['startIndex']&&_0x3fe054>=_0x1d63a1[_0xa49e11(0x1f9)]));}function _0x5ba5f5(_0x3f099e,_0x4200a5,_0x5b10c1){const _0x593c59=_0x18bb44;var _0x229c9f,_0x34c2fc;let _0x2e05b4=[...(_0x229c9f=_0x3f099e['paragraphs'])==null?[]:_0x229c9f][_0x593c59(0x1f8)]((_0x5286a6,_0x677ffb)=>_0x5286a6[_0x593c59(0x1c6)]-_0x677ffb[_0x593c59(0x1c6)]),_0xd97ea3=_0x2e05b4[_0x593c59(0x1b9)]((_0x5e36ce,_0x4a88e)=>(_0x4a88e===0x0?0x0:_0x2e05b4[_0x4a88e-0x1]['startIndex']+0x1)<=_0x4200a5&&_0x4200a5<=_0x5e36ce[_0x593c59(0x1c6)]),_0x5097b1=(_0x34c2fc=_0x2e05b4[_0x593c59(0x1b9)](_0x1ad0d8=>_0x1ad0d8[_0x593c59(0x1c6)]>=_0x5b10c1-0x1))==null?_0x2e05b4[_0x2e05b4[_0x593c59(0x1bb)]-0x1]:_0x34c2fc;return{'startOffset':_0xd97ea3?_0x3da0a2(_0x2e05b4,_0xd97ea3):_0x4200a5,'endOffset':_0x5097b1?_0x5097b1[_0x593c59(0x1c6)]+0x1:_0x5b10c1};}function _0x3da0a2(_0x1d0e7a,_0x5adc23){const _0x1853e6=_0x18bb44;let _0x50c771=_0x1d0e7a[_0x1853e6(0x1b0)](_0x5adc23);return _0x50c771>0x0?_0x1d0e7a[_0x50c771-0x1][_0x1853e6(0x1c6)]+0x1:0x0;}function _0x509b08(_0x598f10,_0x159419,_0x2ec6db){const _0x4c2d57=_0x18bb44;var _0x74962;return Math[_0x4c2d57(0x1dc)](_0x3da0a2((_0x74962=_0x598f10[_0x4c2d57(0x19a)])==null?[]:_0x74962,_0x2ec6db),_0x159419[_0x4c2d57(0x1c6)]+0x1);}function _0x4aa120(_0x22d98b,_0x4842b0){const _0x3e0eb9=_0x18bb44;return _0x22d98b[_0x3e0eb9(0x209)][_0x4842b0[_0x3e0eb9(0x1f9)]]===_0x2d2ae4[_0x3e0eb9(0x203)][_0x3e0eb9(0x204)]?_0x4842b0[_0x3e0eb9(0x1f9)]:_0x22d98b[_0x3e0eb9(0x209)][_0x4842b0[_0x3e0eb9(0x1f9)]+0x1]===_0x2d2ae4[_0x3e0eb9(0x203)][_0x3e0eb9(0x204)]?_0x4842b0[_0x3e0eb9(0x1f9)]+0x1:_0x4842b0['endIndex'];}function _0x377190(_0x292c49,_0x1015d1,_0x33e423,_0x12e49b){const _0x33bb15=_0x18bb44;var _0x370757,_0x250776;let _0x2e59cd=_0x4aa120(_0x292c49,_0x1015d1),_0x30d249=((_0x370757=_0x292c49[_0x33bb15(0x19a)])==null?[]:_0x370757)[_0x33bb15(0x1b9)](_0x50f871=>_0x50f871[_0x33bb15(0x1c6)]===_0x2e59cd+0x1);if(!_0x30d249||_0x12e49b!=null&&_0x30d249[_0x33bb15(0x1c6)]!==_0x12e49b||_0x33e423<_0x2e59cd||_0x33e423>_0x30d249[_0x33bb15(0x1c6)]+0x1||_0x292c49[_0x33bb15(0x209)][_0x30d249[_0x33bb15(0x1c6)]]!==_0x2d2ae4['DataStreamTreeTokenType'][_0x33bb15(0x1b3)])return null;let _0x1473de=_0x3da0a2((_0x250776=_0x292c49[_0x33bb15(0x19a)])==null?[]:_0x250776,_0x30d249),_0x57eca1=_0x292c49[_0x33bb15(0x209)]['slice'](_0x1473de,_0x30d249['startIndex']);return Array[_0x33bb15(0x1a1)](_0x57eca1)[_0x33bb15(0x191)](_0xc0202c=>_0xc0202c===_0x2d2ae4[_0x33bb15(0x203)][_0x33bb15(0x204)])?{'paragraph':_0x30d249,'endTokenOffset':_0x2e59cd}:null;}function _0x925f26(_0x2f9e8b,_0x54c307){const _0x428afa=_0x18bb44;var _0x5dfb20;let _0x4f57ab=_0x4aa120(_0x2f9e8b,_0x54c307),_0x47a0c3=_0x2f9e8b[_0x428afa(0x209)][_0x4f57ab+0x1];_0x47a0c3!==_0x2d2ae4[_0x428afa(0x203)][_0x428afa(0x229)]&&_0x47a0c3!==void 0x0||_0x2625f3(_0x2f9e8b,_0x4f57ab+0x1,_0x2d2ae4[_0x428afa(0x203)][_0x428afa(0x1b3)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x2d2ae4[_0x428afa(0x226)])(new Set((_0x5dfb20=_0x2f9e8b['paragraphs'])==null?void 0x0:_0x5dfb20['map'](_0x39aeef=>_0x39aeef[_0x428afa(0x1a2)])))}]});}function _0x2625f3(_0x12d926,_0x5ac570,_0x5e223b,_0x150b6b={}){const _0x3c3fb8=_0x18bb44;var _0x130b2a,_0x2d1c7f;if(_0x5e223b){if(_0x12d926['dataStream']=''+_0x12d926[_0x3c3fb8(0x209)]['slice'](0x0,_0x5ac570)+_0x5e223b+_0x12d926[_0x3c3fb8(0x209)][_0x3c3fb8(0x22a)](_0x5ac570),_0x344e10(_0x12d926,_0x5ac570,_0x5e223b[_0x3c3fb8(0x1bb)]),(_0x130b2a=_0x150b6b['paragraphs'])!=null&&_0x130b2a[_0x3c3fb8(0x1bb)]){var _0x2dfbc8;_0x12d926['paragraphs']=[...(_0x2dfbc8=_0x12d926['paragraphs'])==null?[]:_0x2dfbc8,..._0x150b6b[_0x3c3fb8(0x19a)]['map'](_0x1a2448=>({..._0x1a2448,'startIndex':_0x1a2448[_0x3c3fb8(0x1c6)]+_0x5ac570}))][_0x3c3fb8(0x1f8)]((_0x40449f,_0x188795)=>_0x40449f[_0x3c3fb8(0x1c6)]-_0x188795[_0x3c3fb8(0x1c6)]);}if((_0x2d1c7f=_0x150b6b[_0x3c3fb8(0x1ad)])!=null&&_0x2d1c7f['length']){var _0x3a89c3;_0x12d926[_0x3c3fb8(0x1ad)]=[...(_0x3a89c3=_0x12d926[_0x3c3fb8(0x1ad)])==null?[]:_0x3a89c3,..._0x150b6b[_0x3c3fb8(0x1ad)][_0x3c3fb8(0x1ac)](_0x122f5a=>({..._0x122f5a,'startIndex':_0x122f5a['startIndex']+_0x5ac570,'endIndex':_0x122f5a['endIndex']+_0x5ac570}))]['sort']((_0x3a5b84,_0xf35539)=>_0x3a5b84[_0x3c3fb8(0x1c6)]-_0xf35539[_0x3c3fb8(0x1c6)]);}}}function _0x2621f2(_0x5d5f9b,_0x325410,_0x27fc49){const _0x4206d8=_0x18bb44;let _0x4f412d=_0x27fc49-_0x325410;_0x5d5f9b[_0x4206d8(0x209)]=''+_0x5d5f9b[_0x4206d8(0x209)]['slice'](0x0,_0x325410)+_0x5d5f9b['dataStream']['slice'](_0x27fc49),_0x1afad3(_0x5d5f9b,_0x325410,_0x4f412d);}function _0x344e10(_0x30e8dc,_0x30db06,_0x1d915d){const _0x31e98c=_0x18bb44;_0x30e8dc['paragraphs']=_0x27650c(_0x30e8dc[_0x31e98c(0x19a)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x211)]=_0x27650c(_0x30e8dc[_0x31e98c(0x211)],_0x30db06,_0x1d915d),_0x30e8dc['customBlocks']=_0x27650c(_0x30e8dc['customBlocks'],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x1e4)]=_0x4a3cef(_0x30e8dc[_0x31e98c(0x1e4)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x20e)]=_0x10e841(_0x30e8dc['tables'],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x22f)]=_0x10e841(_0x30e8dc[_0x31e98c(0x22f)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x19d)]=_0x10e841(_0x30e8dc[_0x31e98c(0x19d)],_0x30db06,_0x1d915d),_0x30e8dc[_0x31e98c(0x1ad)]=_0x10e841(_0x30e8dc[_0x31e98c(0x1ad)],_0x30db06,_0x1d915d);}function _0x1afad3(_0xd297f0,_0x5c6b6e,_0x5ed043){const _0x1620e9=_0x18bb44;var _0x5b0c2f,_0x5ba7ef;_0xd297f0[_0x1620e9(0x19a)]=_0x4c7590(_0xd297f0[_0x1620e9(0x19a)],_0x5c6b6e,_0x5ed043),_0xd297f0[_0x1620e9(0x211)]=_0x4c7590(_0xd297f0[_0x1620e9(0x211)],_0x5c6b6e,_0x5ed043),_0xd297f0['customBlocks']=_0x4c7590(_0xd297f0[_0x1620e9(0x21a)],_0x5c6b6e,_0x5ed043),_0xd297f0['textRuns']=(_0x5b0c2f=_0x35ffb6((_0x5ba7ef=_0xd297f0[_0x1620e9(0x1e4)])==null?void 0x0:_0x5ba7ef['map'](_0x44b1e2=>({..._0x44b1e2,'startIndex':_0x44b1e2['st'],'endIndex':_0x44b1e2['ed']})),_0x5c6b6e,_0x5ed043))==null?void 0x0:_0x5b0c2f['map'](_0x2c0c1d=>{let {startIndex:_0x51bfb4,endIndex:_0x320069,..._0x532592}=_0x2c0c1d;return{..._0x532592,'st':_0x51bfb4,'ed':_0x320069};}),_0xd297f0[_0x1620e9(0x20e)]=_0x35ffb6(_0xd297f0['tables'],_0x5c6b6e,_0x5ed043),_0xd297f0['customRanges']=_0x35ffb6(_0xd297f0[_0x1620e9(0x22f)],_0x5c6b6e,_0x5ed043),_0xd297f0['customDecorations']=_0x35ffb6(_0xd297f0[_0x1620e9(0x19d)],_0x5c6b6e,_0x5ed043),_0xd297f0['blockRanges']=_0x35ffb6(_0xd297f0['blockRanges'],_0x5c6b6e,_0x5ed043);}function _0x27650c(_0x461008,_0x2732fc,_0x2adf4c){const _0x261ab6=_0x18bb44;return _0x461008==null?void 0x0:_0x461008[_0x261ab6(0x1ac)](_0x5300cf=>_0x5300cf[_0x261ab6(0x1c6)]>=_0x2732fc?{..._0x5300cf,'startIndex':_0x5300cf[_0x261ab6(0x1c6)]+_0x2adf4c}:_0x5300cf);}function _0x4c7590(_0x40f355,_0x3a87c5,_0x1b7670){const _0x190ba9=_0x18bb44;let _0x151b59=_0x3a87c5+_0x1b7670;return _0x40f355==null?void 0x0:_0x40f355[_0x190ba9(0x1ac)](_0x354a96=>_0x354a96[_0x190ba9(0x1c6)]>=_0x3a87c5&&_0x354a96['startIndex']<_0x151b59?null:_0x354a96[_0x190ba9(0x1c6)]>=_0x151b59?{..._0x354a96,'startIndex':_0x354a96['startIndex']-_0x1b7670}:_0x354a96)['filter'](_0xa5755a=>_0xa5755a!=null);}function _0x4a3cef(_0x1f8d66,_0x295c5f,_0x38bdd2){const _0x2db228=_0x18bb44;return _0x1f8d66==null?void 0x0:_0x1f8d66[_0x2db228(0x1ac)](_0x535d57=>_0x535d57['st']>=_0x295c5f?{..._0x535d57,'st':_0x535d57['st']+_0x38bdd2,'ed':_0x535d57['ed']+_0x38bdd2}:_0x535d57['ed']>_0x295c5f?{..._0x535d57,'ed':_0x535d57['ed']+_0x38bdd2}:_0x535d57);}function _0x10e841(_0x12733a,_0x3bda48,_0x4a60e){const _0x11d4b8=_0x18bb44;return _0x12733a==null?void 0x0:_0x12733a[_0x11d4b8(0x1ac)](_0x13ecef=>_0x13ecef[_0x11d4b8(0x1c6)]>=_0x3bda48?{..._0x13ecef,'startIndex':_0x13ecef[_0x11d4b8(0x1c6)]+_0x4a60e,'endIndex':_0x13ecef[_0x11d4b8(0x1f9)]+_0x4a60e}:_0x13ecef[_0x11d4b8(0x1f9)]>=_0x3bda48?{..._0x13ecef,'endIndex':_0x13ecef['endIndex']+_0x4a60e}:_0x13ecef);}function _0x35ffb6(_0x507557,_0x5dc634,_0x224bf5){const _0x4f00d1=_0x18bb44;let _0x31dced=_0x5dc634+_0x224bf5;return _0x507557==null?void 0x0:_0x507557[_0x4f00d1(0x1ac)](_0x4ac6b9=>_0x4ac6b9['startIndex']>=_0x5dc634&&_0x4ac6b9[_0x4f00d1(0x1f9)]<_0x31dced?null:_0x4ac6b9[_0x4f00d1(0x1c6)]>=_0x31dced?{..._0x4ac6b9,'startIndex':_0x4ac6b9[_0x4f00d1(0x1c6)]-_0x224bf5,'endIndex':_0x4ac6b9[_0x4f00d1(0x1f9)]-_0x224bf5}:_0x4ac6b9[_0x4f00d1(0x1f9)]>=_0x5dc634?{..._0x4ac6b9,'startIndex':_0x4ac6b9[_0x4f00d1(0x1c6)]<_0x5dc634?_0x4ac6b9[_0x4f00d1(0x1c6)]:_0x5dc634,'endIndex':Math[_0x4f00d1(0x1dc)](_0x5dc634,_0x4ac6b9[_0x4f00d1(0x1f9)]-_0x224bf5)}:_0x4ac6b9)[_0x4f00d1(0x219)](_0x1434cf=>_0x1434cf!=null);}function _0x423a0d(_0x320c32,_0x13f96e,_0x1324fc,_0x45c31f){const _0x51480f=_0x18bb44;_0x320c32==null||_0x320c32[_0x51480f(0x1fd)](_0x36f06d=>{const _0x91c7ff=_0x51480f;_0x36f06d[_0x91c7ff(0x1c6)]>=_0x13f96e&&_0x36f06d[_0x91c7ff(0x1c6)]<_0x1324fc&&(_0x36f06d['startIndex']+=_0x45c31f);});}function _0x163ccc(_0x4ae414,_0xa60bfb,_0x224e2a,_0xcd427b){const _0x2d7317=_0x18bb44;_0x4ae414==null||_0x4ae414[_0x2d7317(0x1fd)](_0x88d4b0=>{_0x88d4b0['st']>=_0xa60bfb&&_0x88d4b0['st']<_0x224e2a?(_0x88d4b0['st']+=_0xcd427b,_0x88d4b0['ed']+=_0xcd427b):_0x88d4b0['ed']>_0xa60bfb&&_0x88d4b0['ed']<_0x224e2a&&(_0x88d4b0['ed']+=_0xcd427b);});}function _0x1f7efe(_0x2691e4,_0x44c1fa,_0x492ade,_0x14bb5a){const _0x5db0c9=_0x18bb44;_0x2691e4==null||_0x2691e4[_0x5db0c9(0x1fd)](_0x1d1e19=>{const _0x353a2f=_0x5db0c9;_0x1d1e19[_0x353a2f(0x1c6)]>=_0x44c1fa&&_0x1d1e19[_0x353a2f(0x1c6)]<_0x492ade?(_0x1d1e19[_0x353a2f(0x1c6)]+=_0x14bb5a,_0x1d1e19[_0x353a2f(0x1f9)]+=_0x14bb5a):_0x1d1e19[_0x353a2f(0x1f9)]>_0x44c1fa&&_0x1d1e19[_0x353a2f(0x1f9)]<_0x492ade&&(_0x1d1e19[_0x353a2f(0x1f9)]+=_0x14bb5a);});}function _0x52c8be(_0x10d523){'@babel/helpers - typeof';const _0x4d196e=_0x18bb44;return _0x52c8be=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x4d196e(0x18f)?function(_0x301c8c){return typeof _0x301c8c;}:function(_0x4dd721){const _0x1ba13d=_0x4d196e;return _0x4dd721&&typeof Symbol=='function'&&_0x4dd721[_0x1ba13d(0x1d7)]===Symbol&&_0x4dd721!==Symbol[_0x1ba13d(0x1c7)]?_0x1ba13d(0x18f):typeof _0x4dd721;},_0x52c8be(_0x10d523);}function _0x143cf9(_0x392153,_0x2f36f5){const _0x1055a6=_0x18bb44;if(_0x52c8be(_0x392153)!=_0x1055a6(0x23b)||!_0x392153)return _0x392153;var _0x4a18fa=_0x392153[Symbol['toPrimitive']];if(_0x4a18fa!==void 0x0){var _0x2cfced=_0x4a18fa[_0x1055a6(0x208)](_0x392153,_0x2f36f5||'default');if(_0x52c8be(_0x2cfced)!='object')return _0x2cfced;throw TypeError(_0x1055a6(0x23d));}return(_0x2f36f5===_0x1055a6(0x240)?String:Number)(_0x392153);}function _0x33500a(_0x339ef8){const _0x2cdf46=_0x18bb44;var _0x504876=_0x143cf9(_0x339ef8,_0x2cdf46(0x240));return _0x52c8be(_0x504876)==_0x2cdf46(0x18f)?_0x504876:_0x504876+'';}function _0x355256(_0x2fdda4,_0x4bd284,_0x4bb156){const _0x59efe0=_0x18bb44;return(_0x4bd284=_0x33500a(_0x4bd284))in _0x2fdda4?Object[_0x59efe0(0x1cf)](_0x2fdda4,_0x4bd284,{'value':_0x4bb156,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2fdda4[_0x4bd284]=_0x4bb156,_0x2fdda4;}var _0x4cee88=class extends _0x2d2ae4[_0x18bb44(0x1eb)]{constructor(..._0x28c1d1){const _0x43b4f5=_0x18bb44;super(..._0x28c1d1),_0x355256(this,_0x43b4f5(0x18e),new Map()),_0x355256(this,_0x43b4f5(0x1de),new _0x6794[(_0x43b4f5(0x20a))]()),_0x355256(this,_0x43b4f5(0x1f0),this[_0x43b4f5(0x1de)][_0x43b4f5(0x190)]());}[_0x18bb44(0x1d5)](_0x3e67a0,_0x5f065a){const _0x27820d=_0x18bb44;return _0x44cb53(this[_0x27820d(0x18e)][_0x27820d(0x1ba)](_0x3e67a0))[_0x27820d(0x21d)][_0x5f065a];}[_0x18bb44(0x1e2)](_0x553717,_0x57d6df,_0x25a829){const _0x53acea=_0x18bb44;this['_setResource'](_0x553717,_0x57d6df,_0x372441(this[_0x53acea(0x18e)]['get'](_0x553717),_0x57d6df,_0x25a829));}[_0x18bb44(0x1d3)](_0x2b31a3,_0x1b49bd){const _0x54c8ca=_0x18bb44;this[_0x54c8ca(0x223)](_0x2b31a3,_0x1b49bd,_0x49632f(this[_0x54c8ca(0x18e)][_0x54c8ca(0x1ba)](_0x2b31a3),_0x1b49bd));}['serialize'](_0x4531f6){const _0x3d9377=_0x18bb44;return _0x44cb53(this[_0x3d9377(0x18e)][_0x3d9377(0x1ba)](_0x4531f6));}[_0x18bb44(0x1a5)](_0x596950,_0x349d50){const _0x4dd7aa=_0x18bb44;this['_resources']['set'](_0x596950,_0x44cb53(_0x349d50)),this[_0x4dd7aa(0x1de)][_0x4dd7aa(0x1a8)]({'unitId':_0x596950});}[_0x18bb44(0x1dd)](_0x1afa52){const _0x5ec46b=_0x18bb44;this['_resources'][_0x5ec46b(0x206)](_0x1afa52),this[_0x5ec46b(0x1de)][_0x5ec46b(0x1a8)]({'unitId':_0x1afa52});}['dispose'](){const _0x99a486=_0x18bb44;super[_0x99a486(0x20f)](),this[_0x99a486(0x18e)][_0x99a486(0x1be)](),this[_0x99a486(0x1de)][_0x99a486(0x1e9)]();}['_setResource'](_0x5626a8,_0x1dfa8c,_0x1bcb54){const _0x58ef67=_0x18bb44;this['_resources'][_0x58ef67(0x1ab)](_0x5626a8,_0x1bcb54),this[_0x58ef67(0x1de)][_0x58ef67(0x1a8)]({'unitId':_0x5626a8,'blockId':_0x1dfa8c});}};let _0x31e639={'id':_0x18bb44(0x205),'type':_0x2d2ae4['CommandType'][_0x18bb44(0x192)],'handler':_0x2cd6d7=>{const _0x8a3151=_0x18bb44;let _0x2cf67e=_0x24fbff(_0x2cd6d7);if(_0x2cf67e)return _0x2cd6d7[_0x8a3151(0x1ba)](_0x2d2ae4[_0x8a3151(0x228)])['syncExecuteCommand'](_0x3da0e4['id'],{'startOffset':_0x2cf67e[_0x8a3151(0x1fc)],'endOffset':_0x2cf67e[_0x8a3151(0x217)],'unitId':_0x2cf67e['unitId']});let _0x469c2f=_0x8febec(_0x2cd6d7);if(!_0x469c2f)return!0x1;let _0x457185=_0x469c2f[_0x8a3151(0x1c6)]+0x1;return _0x2cd6d7[_0x8a3151(0x1ba)](_0x2d2ae4['ICommandService'])[_0x8a3151(0x1ae)](_0x3da0e4['id'],{'startOffset':_0x457185,'endOffset':_0x457185});}},_0x509773={'id':'docs-code.command.consume-boundary-delete','type':_0x2d2ae4['CommandType'][_0x18bb44(0x192)],'handler':()=>!0x0},_0x3da0e4={'id':_0x18bb44(0x224),'type':_0x2d2ae4[_0x18bb44(0x1e5)]['COMMAND'],'handler':(_0xe1e9ad,_0x48da87)=>{const _0x2cdebc=_0x18bb44;var _0x347e6a,_0x16cae9,_0x28e00d;let _0x308a97=_0x492273(_0xe1e9ad,_0x48da87==null?void 0x0:_0x48da87['unitId']);if(!_0x308a97)return!0x1;let _0x2a7516=_0x5330b4(_0xe1e9ad),_0x2f3e9a=_0x125d20({'blockId':(_0x347e6a=_0x48da87==null?void 0x0:_0x48da87['blockId'])==null?(0x0,_0x2d2ae4[_0x2cdebc(0x21b)])(0x6):_0x347e6a,'config':_0x48da87==null?void 0x0:_0x48da87['config'],'documentData':_0x308a97[_0x2cdebc(0x193)],'endOffset':(_0x16cae9=_0x48da87==null?void 0x0:_0x48da87[_0x2cdebc(0x217)])==null?_0x2a7516==null?void 0x0:_0x2a7516[_0x2cdebc(0x217)]:_0x16cae9,'metadata':_0x308a97[_0x2cdebc(0x1a9)][_0x2cdebc(0x207)](_0x308a97[_0x2cdebc(0x1d2)]),'startOffset':(_0x28e00d=_0x48da87==null?void 0x0:_0x48da87[_0x2cdebc(0x1fc)])==null?_0x2a7516==null?void 0x0:_0x2a7516[_0x2cdebc(0x1fc)]:_0x28e00d}),_0x32deae=_0x1bb343(_0x308a97['commandService'],_0x308a97[_0x2cdebc(0x1d2)],_0x308a97['previousDocumentData'],_0x2f3e9a['nextDocumentData'],_0x2f3e9a[_0x2cdebc(0x1df)]);return _0x32deae&&_0x2f3e9a[_0x2cdebc(0x1d1)]&&_0x308a97[_0x2cdebc(0x1a9)][_0x2cdebc(0x1a5)](_0x308a97['unitId'],_0x2f3e9a[_0x2cdebc(0x1d1)]),_0x32deae;}},_0x1fcaba={'id':'docs-code.command.update','type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x22ef3c,_0x5a160a)=>{const _0x720427=_0x18bb44;if(!_0x5a160a)return!0x1;let _0xa50924=_0x492273(_0x22ef3c,_0x5a160a['unitId']);if(!_0xa50924)return!0x1;let _0x383662=_0x5a5761({'blockId':_0x5a160a[_0x720427(0x215)],'config':_0x5a160a[_0x720427(0x21f)],'documentData':_0xa50924['previousDocumentData'],'metadata':_0xa50924[_0x720427(0x1a9)][_0x720427(0x207)](_0xa50924['unitId'])});return _0x383662['nextMetadata']&&_0xa50924[_0x720427(0x1a9)][_0x720427(0x1a5)](_0xa50924[_0x720427(0x1d2)],_0x383662['nextMetadata']),!0x0;}},_0x37dca5={'id':'docs-code.command.exit','type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x393e70,_0x4db286)=>{const _0x47d2aa=_0x18bb44;var _0x399394,_0x2c5738;let _0x276b1f=_0x492273(_0x393e70,_0x4db286==null?void 0x0:_0x4db286[_0x47d2aa(0x1d2)]);if(!_0x276b1f)return!0x1;let _0x188993=(_0x399394=_0x4db286==null?void 0x0:_0x4db286['cursorOffset'])==null?(_0x2c5738=_0x5330b4(_0x393e70))==null?void 0x0:_0x2c5738['startOffset']:_0x399394;if(_0x188993==null)return!0x1;let _0x392f65=_0x4f2c21({'cursorOffset':_0x188993,'documentData':_0x276b1f[_0x47d2aa(0x193)]});return _0x392f65?_0x1bb343(_0x276b1f['commandService'],_0x276b1f['unitId'],_0x276b1f[_0x47d2aa(0x193)],_0x392f65[_0x47d2aa(0x1e6)],_0x392f65['cursorOffset']):!0x1;}},_0x3b4d94={'id':_0x18bb44(0x1d6),'type':_0x2d2ae4[_0x18bb44(0x1e5)][_0x18bb44(0x192)],'handler':(_0x5bbf6b,_0x3bba85)=>{const _0x32a58d=_0x18bb44;var _0x135167,_0x446ba3;let _0xea79b6=_0x492273(_0x5bbf6b,_0x3bba85==null?void 0x0:_0x3bba85['unitId']);if(!_0xea79b6)return!0x1;let _0x61bffc=(_0x135167=_0x3bba85==null?void 0x0:_0x3bba85[_0x32a58d(0x1df)])==null?(_0x446ba3=_0x5330b4(_0x5bbf6b))==null?void 0x0:_0x446ba3[_0x32a58d(0x1fc)]:_0x135167;if(_0x61bffc==null)return!0x1;let _0x4e72f9=_0x5d4520({'cursorOffset':_0x61bffc,'documentData':_0xea79b6[_0x32a58d(0x193)],'paragraphStartIndex':_0x3bba85==null?void 0x0:_0x3bba85['paragraphStartIndex']});return _0x4e72f9?_0x1bb343(_0xea79b6[_0x32a58d(0x235)],_0xea79b6[_0x32a58d(0x1d2)],_0xea79b6[_0x32a58d(0x193)],_0x4e72f9[_0x32a58d(0x1e6)],_0x4e72f9['cursorOffset']):!0x1;}};function _0x492273(_0x2ce90c,_0xf6aeea){const _0x3042ad=_0x18bb44;let _0x2de3fa=_0x2ce90c['get'](_0x2d2ae4[_0x3042ad(0x21c)]),_0x443435=_0xf6aeea?_0x2de3fa[_0x3042ad(0x233)](_0xf6aeea):_0x2de3fa[_0x3042ad(0x1d4)](_0x2d2ae4['UniverInstanceType'][_0x3042ad(0x199)]);return _0x443435?{'commandService':_0x2ce90c[_0x3042ad(0x1ba)](_0x2d2ae4[_0x3042ad(0x228)]),'model':_0x2ce90c[_0x3042ad(0x1ba)](_0x4cee88),'previousDocumentData':_0x443435['getSnapshot'](),'unitId':_0x443435[_0x3042ad(0x221)]()}:null;}function _0x5330b4(_0x4da611){const _0x3c9643=_0x18bb44;var _0x473cd3;return(_0x473cd3=_0x4da611[_0x3c9643(0x1ba)](_0x420f42['DocSelectionManagerService'])[_0x3c9643(0x1b8)]())==null?void 0x0:_0x473cd3[0x0];}function _0x24fbff(_0x1d5246){const _0x12c983=_0x18bb44;var _0x477f8f;let _0x351969=(_0x477f8f=_0x1d5246[_0x12c983(0x1ba)](_0x2d2ae4[_0x12c983(0x21c)])['getCurrentUnitOfType'](_0x2d2ae4['UniverInstanceType'][_0x12c983(0x199)]))==null?void 0x0:_0x477f8f[_0x12c983(0x221)]();try{return _0x1d5246[_0x12c983(0x1ba)](_0x420f42[_0x12c983(0x1b7)])[_0x12c983(0x231)](_0x351969);}catch{return null;}}function _0x8febec(_0x4cbb88){const _0x3a2c9c=_0x18bb44;var _0x10209e,_0x4f1c07,_0x439eb3;let _0x5dde41=_0x5330b4(_0x4cbb88);if(!_0x5dde41)return null;let _0x56f504=_0x4cbb88[_0x3a2c9c(0x1ba)](_0x2d2ae4[_0x3a2c9c(0x21c)])[_0x3a2c9c(0x1d4)](_0x2d2ae4[_0x3a2c9c(0x1a0)]['UNIVER_DOC']),_0x3efb27=_0x56f504==null?void 0x0:_0x56f504[_0x3a2c9c(0x214)]();return _0x3efb27?(_0x10209e=_0x2d2ae4['BuildTextUtils'][_0x3a2c9c(0x1a4)]['getParagraphsInRange'](_0x5dde41,(_0x4f1c07=_0x3efb27[_0x3a2c9c(0x19a)])==null?[]:_0x4f1c07,(_0x439eb3=_0x3efb27['dataStream'])==null?'':_0x439eb3)[0x0])==null?null:_0x10209e:null;}function _0x1c1bc4(_0x207bf7,_0x25813a){const _0x2ce4c0=_0x18bb44;var _0x321c58,_0xf0aefe,_0x4811c4,_0xe33741,_0x240c61,_0x19d348,_0x75467b,_0x53698a,_0x316ed8,_0x23301a,_0x3a7cf3,_0x331b9c,_0x2c32eb,_0x440e19,_0x184870,_0x412711,_0x3aed07,_0x4809be;let _0x3b6d61=_0x2d2ae4[_0x2ce4c0(0x1e1)][_0x2ce4c0(0x20c)]();return[_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x209)],(_0x321c58=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x321c58[_0x2ce4c0(0x209)],(_0xf0aefe=_0x25813a['body'])==null?void 0x0:_0xf0aefe['dataStream']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x19a)],(_0x4811c4=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x4811c4[_0x2ce4c0(0x19a)],(_0xe33741=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0xe33741['paragraphs']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x211)],(_0x240c61=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x240c61[_0x2ce4c0(0x211)],(_0x19d348=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x19d348[_0x2ce4c0(0x211)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x1e4)],(_0x75467b=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x75467b[_0x2ce4c0(0x1e4)],(_0x53698a=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x53698a[_0x2ce4c0(0x1e4)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x21a)],(_0x316ed8=_0x207bf7['body'])==null?void 0x0:_0x316ed8[_0x2ce4c0(0x21a)],(_0x23301a=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x23301a[_0x2ce4c0(0x21a)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x22f)],(_0x3a7cf3=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x3a7cf3[_0x2ce4c0(0x22f)],(_0x331b9c=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x331b9c['customRanges']),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),_0x2ce4c0(0x19d)],(_0x2c32eb=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x2c32eb['customDecorations'],(_0x440e19=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x440e19[_0x2ce4c0(0x19d)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),'tables'],(_0x184870=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x184870[_0x2ce4c0(0x20e)],(_0x412711=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x412711[_0x2ce4c0(0x20e)]),_0x484a69(_0x3b6d61,[_0x2ce4c0(0x216),'blockRanges'],(_0x3aed07=_0x207bf7[_0x2ce4c0(0x216)])==null?void 0x0:_0x3aed07[_0x2ce4c0(0x1ad)],(_0x4809be=_0x25813a[_0x2ce4c0(0x216)])==null?void 0x0:_0x4809be[_0x2ce4c0(0x1ad)])]['filter'](Boolean)[_0x2ce4c0(0x1c8)]((_0x155421,_0x27252c)=>_0x2d2ae4[_0x2ce4c0(0x1e1)]['compose'](_0x155421,_0x27252c),null);}function _0x484a69(_0x3fdb40,_0x186b88,_0x414050,_0x340abb){const _0x42bbac=_0x18bb44;return _0x2d2ae4[_0x42bbac(0x19b)][_0x42bbac(0x1b6)](_0x414050,_0x340abb)?null:_0x3fdb40[_0x42bbac(0x21e)](_0x186b88,_0x414050,_0x340abb);}function _0x1bb343(_0x1b172d,_0x169d2d,_0x9d73b2,_0x520d15,_0x107c54){const _0x3add32=_0x18bb44;let _0x196673=_0x1c1bc4(_0x9d73b2,_0x520d15);return _0x196673?!!_0x1b172d['syncExecuteCommand'](_0x420f42[_0x3add32(0x1db)]['id'],{'unitId':_0x169d2d,'actions':_0x196673,'textRanges':[{'startOffset':_0x107c54,'endOffset':_0x107c54,'collapsed':!0x0}],'isEditing':!0x1}):!0x1;}let _0x1e3738=_0x18bb44(0x19e);var _0x5a3dcb=_0x18bb44(0x1f6),_0x54f6ef=_0x18bb44(0x1c0);let _0x234ecf={};function _0x5d501f(_0xc002d7,_0x45474e){return function(_0x3ec368,_0xc614dd){_0x45474e(_0x3ec368,_0xc614dd,_0xc002d7);};}function _0xc0f957(_0xd80a37,_0x5a3aa7,_0x80b769,_0x556801){const _0x1c92ae=_0x18bb44;var _0x334e88=arguments[_0x1c92ae(0x1bb)],_0x161254=_0x334e88<0x3?_0x5a3aa7:_0x556801===null?_0x556801=Object[_0x1c92ae(0x1c1)](_0x5a3aa7,_0x80b769):_0x556801,_0x2c8d52;if(typeof Reflect=='object'&&typeof Reflect[_0x1c92ae(0x1cb)]==_0x1c92ae(0x1a3))_0x161254=Reflect[_0x1c92ae(0x1cb)](_0xd80a37,_0x5a3aa7,_0x80b769,_0x556801);else{for(var _0x499bf2=_0xd80a37[_0x1c92ae(0x1bb)]-0x1;_0x499bf2>=0x0;_0x499bf2--)(_0x2c8d52=_0xd80a37[_0x499bf2])&&(_0x161254=(_0x334e88<0x3?_0x2c8d52(_0x161254):_0x334e88>0x3?_0x2c8d52(_0x5a3aa7,_0x80b769,_0x161254):_0x2c8d52(_0x5a3aa7,_0x80b769))||_0x161254);}return _0x334e88>0x3&&_0x161254&&Object[_0x1c92ae(0x1cf)](_0x5a3aa7,_0x80b769,_0x161254),_0x161254;}let _0x478c4e=class extends _0x2d2ae4['Disposable']{constructor(_0x31c1f1,_0x10e8d3){const _0x1e2832=_0x18bb44;super(),this[_0x1e2832(0x1fe)]=_0x31c1f1,this[_0x1e2832(0x1f4)]=_0x10e8d3,this[_0x1e2832(0x22d)]();}[_0x18bb44(0x22d)](){const _0x529a69=_0x18bb44;this[_0x529a69(0x1c9)](this['_resourceManagerService'][_0x529a69(0x1e0)]({'pluginName':_0x1e3738,'businesses':[_0x2d2ae4[_0x529a69(0x1a0)]['UNIVER_DOC']],'toJson':_0x3a1301=>JSON['stringify'](this[_0x529a69(0x1f4)][_0x529a69(0x207)](_0x3a1301)),'parseJson':_0x459c7f=>_0x44cb53(JSON[_0x529a69(0x1cd)](_0x459c7f)),'onLoad':(_0x36aaa8,_0x3fcd40)=>this[_0x529a69(0x1f4)][_0x529a69(0x1a5)](_0x36aaa8,_0x3fcd40),'onUnLoad':_0x5beba7=>this['_docsCodeModel'][_0x529a69(0x1dd)](_0x5beba7)}));}};_0x478c4e=_0xc0f957([_0x5d501f(0x0,_0x2d2ae4[_0x18bb44(0x18b)]),_0x5d501f(0x1,(0x0,_0x2d2ae4['Inject'])(_0x4cee88))],_0x478c4e);let _0x147529=class extends _0x2d2ae4['Plugin']{constructor(_0x1d0194=_0x234ecf,_0x3df27c,_0x4df3ea,_0x3e36cd){const _0x2a3508=_0x18bb44;super(),this['_config']=_0x1d0194,this[_0x2a3508(0x1da)]=_0x3df27c,this[_0x2a3508(0x1f5)]=_0x4df3ea,this[_0x2a3508(0x212)]=_0x3e36cd;let {..._0x6498fd}=(0x0,_0x2d2ae4[_0x2a3508(0x1b4)])({},_0x234ecf,this[_0x2a3508(0x1e7)]);this[_0x2a3508(0x212)][_0x2a3508(0x1d0)](_0x2a3508(0x202),_0x6498fd);}[_0x18bb44(0x218)](){const _0x26e5d6=_0x18bb44;this[_0x26e5d6(0x1da)][_0x26e5d6(0x210)]([_0x4cee88]),this[_0x26e5d6(0x1da)][_0x26e5d6(0x210)]([_0x478c4e]),this[_0x26e5d6(0x1da)][_0x26e5d6(0x1ba)](_0x4cee88),this[_0x26e5d6(0x1da)][_0x26e5d6(0x1ba)](_0x478c4e),[_0x3da0e4,_0x31e639,_0x1fcaba,_0x37dca5,_0x3b4d94,_0x509773]['forEach'](_0x4e3fd8=>this[_0x26e5d6(0x1c9)](this[_0x26e5d6(0x1f5)]['registerCommand'](_0x4e3fd8)));}};_0x355256(_0x147529,_0x18bb44(0x23e),_0x1e3738),_0x355256(_0x147529,_0x18bb44(0x197),_0x5a3dcb),_0x355256(_0x147529,_0x18bb44(0x23f),_0x54f6ef),_0x355256(_0x147529,_0x18bb44(0x232),_0x2d2ae4[_0x18bb44(0x1a0)][_0x18bb44(0x199)]),_0x147529=_0xc0f957([(0x0,_0x2d2ae4[_0x18bb44(0x1ca)])(_0x181267[_0x18bb44(0x22e)],_0x420f42[_0x18bb44(0x225)]),_0x5d501f(0x1,(0x0,_0x2d2ae4[_0x18bb44(0x1ff)])(_0x2d2ae4[_0x18bb44(0x1ce)])),_0x5d501f(0x2,_0x2d2ae4[_0x18bb44(0x228)]),_0x5d501f(0x3,_0x2d2ae4['IConfigService'])],_0x147529),_0x323281[_0x18bb44(0x194)]=_0x44adb7,_0x323281['DOCS_CODE_PLUGIN']=_0x1e3738,_0x323281[_0x18bb44(0x1f2)]=_0x3b4d94,_0x323281['DocsCodeConsumeBoundaryDeleteCommand']=_0x509773,_0x323281['DocsCodeExitCommand']=_0x37dca5,_0x323281[_0x18bb44(0x237)]=_0x31e639,_0x323281[_0x18bb44(0x1b5)]=_0x3da0e4,_0x323281['DocsCodeModel']=_0x4cee88,_0x323281[_0x18bb44(0x238)]=_0x1fcaba,Object[_0x18bb44(0x1cf)](_0x323281,_0x18bb44(0x18d),{'enumerable':!0x0,'get':function(){return _0x147529;}}),_0x323281['buildCancelEmptyCodeParagraphActions']=_0x5d4520,_0x323281[_0x18bb44(0x1aa)]=_0x4f2c21,_0x323281[_0x18bb44(0x1ef)]=_0x125d20,_0x323281[_0x18bb44(0x1ed)]=_0x5a5761,_0x323281[_0x18bb44(0x20d)]=_0x13a49b,_0x323281[_0x18bb44(0x195)]=_0x363106,_0x323281[_0x18bb44(0x18c)]=_0x566ed2;}));
1
+ function _0x3fa0(){const _0x408103=['DataStreamTreeTokenType','blockType','amd','isArray','getSnapshot','UniverLicensePlugin','deleteLength','some','docs-code.command.insert','blockRanges','DocsCodeModel','@univerjs/core','docs-code.command.insert-below','CODE','RichTextEditingMutation','textStyle','DocsCodeRemoveCommand','blockId','nextDocumentData','_setResource','function','retain','paragraphStartIndex','forEach','_commandService','@univerjs/docs','push','DocsCodeCancelEmptyParagraphCommand','docs-code.command.consume-boundary-delete','stringify','docs-code.command.unwrap','handler','DependentOn','columns','insert-new','javascript','_change$','unitId','entries','DocSelectionManagerService','convert-paragraph','insertLength','paragraphs','UniverCore','selectionManager','max','endIndex','bullet','model','endTokenOffset','IUniverInstanceService','merge','containsStreamIndex','@univerjs-pro/docs-code','min','_configService','DocsCodeInsertBelowCommand','UniverDocsCodePlugin','UniverProDocsCode','direction','set','docs-code.config','getUnit','DOC_CODE_PLUGIN','range','DOCS_CODE_PLUGIN','_initResource','replaceDocRanges','Subject','isHeaderFooterSelection','_config','SECTION_BREAK','containsInteriorInsertionOffset','docs-code.command.cancel-empty-paragraph','left','getParagraphFollowingBlockOffset','change$','iterator','JSONX','getBlockRangeInterval','previousDocumentData','BLOCK_START','string','Document\x20body\x20is\x20required','customRanges','rxjs','14732WYflKN','editOp','isCodeBoundaryDelete','getBodySliceForTextXAction','insertOp','metadata','Plugin','UniverInstanceType','shiftInclusiveRangeOnInsert','removeOp','Insert\x20range\x20cannot\x20overlap\x20an\x20existing\x20document\x20block','TABLE_CELL_END','registerCommand','paragraphStyle','@univerjs-pro/license','paragraph','columnGroups','paragraphId','documentData','getParagraphContentStartOffsets','DocsCodeUnwrapCommand','deserialize','docs-code.command.remove','dataStream','get','51gPICBV','version','keys','commandService','22095qLcsEN','101286dZTGgt','getUnitId','UNIVER_DOC','customBlocks','Inject','9979648pPamMB','constructor','monospace','BLOCK_END','3312932hZpsrH','getInstance','add','exports','DocumentBlockRangeType','getBody','getOwnPropertyDescriptor','symbol','nextMetadata','_docsCodeModel','onStarting','DocsCodeInsertCommand','find','insert','_injector','endOffset','customDecorations','startIndex','_resources','defineProperty','object','config','disposeWithMe','shiftExclusiveRangeOnInsert','spaceAbove','body','docs-code.command.exit','startTokenOffset','replaceOp','DocContentInsertService','_resourceManagerService','6553026YzlVnN','delete','fromEntries','sectionBreaks','Insert\x20range\x20cannot\x20cross\x20table\x20cell\x20boundaries','buildCancelEmptyCodeParagraphActions','PARAGRAPH','COMMAND','indentStart','length','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Disposable','10AmXXEj','1.0.0-alpha.3','next','cursorOffset','normalizeDocsCodeConfig','shiftInclusiveRangeOnDelete','registerPluginResource','toPrimitive','2414008RSsgHx','spaceBelow','sort','textRuns','intersectsOperationalIntervals','createParagraphId','codes','docs-code.command.update','slice','map','removeUnit','filter','packageName','TABLE_CELL_START','parse','call','20cjvJMI','syncExecuteCommand','consumeInsertRange','default','ICommandService','CommandType','getCurrentUnitOfType','Injector','BuildTextUtils','startOffset','serialize','pluginName','getParagraphsInRange','TextX','start','UniverDocs','right','Module','tables'];_0x3fa0=function(){return _0x408103;};return _0x3fa0();}function _0xadf6(_0x5d0c5e,_0x2f7a8a){_0x5d0c5e=_0x5d0c5e-0xff;const _0x3fa084=_0x3fa0();let _0xadf613=_0x3fa084[_0x5d0c5e];return _0xadf613;}(function(_0x483338,_0x5126e4){const _0x36412c=_0xadf6,_0x3c4728=_0x483338();while(!![]){try{const _0x4b62f2=-parseInt(_0x36412c(0x1c9))/0x1+parseInt(_0x36412c(0x1ac))/0x2*(-parseInt(_0x36412c(0x1c5))/0x3)+-parseInt(_0x36412c(0x133))/0x4*(parseInt(_0x36412c(0x12b))/0x5)+parseInt(_0x36412c(0x1ca))/0x6+-parseInt(_0x36412c(0x100))/0x7+parseInt(_0x36412c(0x1cf))/0x8+-parseInt(_0x36412c(0x11f))/0x9*(-parseInt(_0x36412c(0x143))/0xa);if(_0x4b62f2===_0x5126e4)break;else _0x3c4728['push'](_0x3c4728['shift']());}catch(_0x49523e){_0x3c4728['push'](_0x3c4728['shift']());}}}(_0x3fa0,0xda028),function(_0x2dfa70,_0x13eeb6){const _0x3a40b5=_0xadf6;typeof exports==_0x3a40b5(0x114)&&typeof module<'u'?_0x13eeb6(exports,require('@univerjs/core'),require('@univerjs/docs'),require('rxjs'),require('@univerjs-pro/license')):typeof define==_0x3a40b5(0x16a)&&define[_0x3a40b5(0x158)]?define([_0x3a40b5(0x103),_0x3a40b5(0x161),_0x3a40b5(0x16f),_0x3a40b5(0x1ab),_0x3a40b5(0x1ba)],_0x13eeb6):(_0x2dfa70=typeof globalThis<'u'?globalThis:_0x2dfa70||self,_0x13eeb6(_0x2dfa70[_0x3a40b5(0x190)]={},_0x2dfa70[_0x3a40b5(0x181)],_0x2dfa70[_0x3a40b5(0x152)],_0x2dfa70[_0x3a40b5(0x1ab)],_0x2dfa70['UniverProLicense']));}(this,function(_0x28bc3e,_0x4a55e0,_0x29cbcb,_0x2c9f36,_0x251453){const _0x4a7827=_0xadf6;Object[_0x4a7827(0x113)](_0x28bc3e,Symbol['toStringTag'],{'value':_0x4a7827(0x154)});let _0x424ee6={'language':_0x4a7827(0x179),'showLineNumbers':!0x1,'tabSize':0x4,'wrap':!0x0};function _0x31e9d8(_0x5ce07d){return{..._0x424ee6,..._0x5ce07d};}function _0x39da7a(_0x4b4a4c){const _0x40968f=_0x4a7827;var _0x50381f;let _0x4859f6=(_0x50381f=_0x4b4a4c==null?void 0x0:_0x4b4a4c[_0x40968f(0x139)])==null?{}:_0x50381f;return{'codes':Object[_0x40968f(0x121)](Object[_0x40968f(0x17c)](_0x4859f6)[_0x40968f(0x13c)](([_0x4e3866,_0x9799ac])=>[_0x4e3866,_0x31e9d8(_0x9799ac)]))};}function _0x1d8d2c(_0x413cd0,_0x5ef23b,_0x5ed5b3){const _0x5ddd04=_0x4a7827;let _0x3df0ef=_0x39da7a(_0x413cd0);return _0x3df0ef[_0x5ddd04(0x139)][_0x5ef23b]=_0x31e9d8({..._0x3df0ef[_0x5ddd04(0x139)][_0x5ef23b],..._0x5ed5b3}),_0x3df0ef;}function _0x160fa5(_0x2bf41b,_0xcd82d5){const _0x29de1b=_0x4a7827;let _0xf1510e=_0x39da7a(_0x2bf41b);return delete _0xf1510e[_0x29de1b(0x139)][_0xcd82d5],_0xf1510e;}let _0x2bc77a=_0x4a7827(0x1d1);var _0x45a58a=class extends Error{constructor(_0x8632a4=_0x4a7827(0x123)){super(_0x8632a4);}};function _0x3c3262(_0x1303d3){const _0x3ce555=_0x4a7827;var _0x54d7f4,_0x496093,_0x455d28;let _0x421d87=_0x34320a(_0x1303d3[_0x3ce555(0x1be)]),_0x4889e0=_0x411ad6(_0x421d87),_0x4e5746=_0x591ef4(_0x1303d3[_0x3ce555(0x14c)],_0x1303d3[_0x3ce555(0x10f)]),_0x556420=_0x4e5746?(_0x54d7f4=_0x4889e0[_0x3ce555(0x15f)])==null?void 0x0:_0x54d7f4[_0x3ce555(0x10c)](_0xb54b4f=>{const _0x2b37ff=_0x3ce555;let _0x3eb888=(0x0,_0x4a55e0[_0x2b37ff(0x1a5)])(_0xb54b4f);return _0x3eb888[_0x2b37ff(0x14c)]===_0x4e5746[_0x2b37ff(0x14c)]&&_0x3eb888[_0x2b37ff(0x10f)]===_0x4e5746[_0x2b37ff(0x10f)];}):void 0x0,{startOffset:_0x48382d,endOffset:_0x2ebb49}=_0x556420?_0x4e5746:_0x47b19e(_0x4889e0,_0x1303d3[_0x3ce555(0x14c)],_0x1303d3[_0x3ce555(0x10f)],_0x1303d3['insertionMode']);if(!_0x556420&&_0x1d1ff2(_0x4889e0,_0x48382d,_0x2ebb49))throw new _0x45a58a(_0x3ce555(0x1b6));let _0x1730b0=_0x34e2b0(_0x4889e0,_0x48382d,_0x2ebb49),_0x47a3dc=(_0x496093=_0x556420==null?void 0x0:_0x556420['blockId'])==null?_0x1303d3[_0x3ce555(0x167)]:_0x496093,_0x35e27d=_0x1d8d2c(_0x1303d3['metadata'],_0x47a3dc,{..._0x424ee6,..._0x1303d3[_0x3ce555(0x115)]});if(_0x556420)return _0x556420[_0x3ce555(0x157)]=_0x4a55e0[_0x3ce555(0x104)]['CODE'],_0x2d797a(_0x4889e0,_0x48382d,_0x2ebb49),_0x19e94f(_0x4889e0,_0x48382d,_0x2ebb49,_0x1730b0),_0x2cfb6b(_0x4889e0,_0x556420),{'nextDocumentData':_0x421d87,'nextMetadata':_0x35e27d,'cursorOffset':_0x48382d+0x1};if(_0x48382d===_0x2ebb49){var _0x2a72dd,_0x50dbc3;let _0x294a97=''+_0x4a55e0['DataStreamTreeTokenType']['BLOCK_START']+_0x4a55e0[_0x3ce555(0x156)][_0x3ce555(0x125)]+_0x4a55e0[_0x3ce555(0x156)]['BLOCK_END'];_0x104ca0(_0x4889e0,_0x48382d,_0x294a97,{'paragraphs':[{'startIndex':0x1,'paragraphId':(0x0,_0x4a55e0[_0x3ce555(0x138)])(new Set((_0x2a72dd=_0x4889e0[_0x3ce555(0x180)])==null?void 0x0:_0x2a72dd['map'](_0x2d94d6=>_0x2d94d6[_0x3ce555(0x1bd)]))),'paragraphStyle':_0x425c69(!0x0,!0x0,_0x1730b0)}],'blockRanges':[{'blockId':_0x47a3dc,'blockType':_0x4a55e0[_0x3ce555(0x104)][_0x3ce555(0x163)],'startIndex':0x0,'endIndex':_0x294a97[_0x3ce555(0x128)]-0x1}]});let _0x3b2100=(_0x50dbc3=_0x4889e0[_0x3ce555(0x15f)])==null?void 0x0:_0x50dbc3[_0x3ce555(0x10c)](_0x23af5a=>_0x23af5a[_0x3ce555(0x167)]===_0x47a3dc);return _0x3b2100&&_0x2cfb6b(_0x4889e0,_0x3b2100),{'nextDocumentData':_0x421d87,'nextMetadata':_0x35e27d,'cursorOffset':_0x48382d+0x1};}_0x104ca0(_0x4889e0,_0x2ebb49,_0x4a55e0[_0x3ce555(0x156)]['BLOCK_END']),_0x104ca0(_0x4889e0,_0x48382d,_0x4a55e0[_0x3ce555(0x156)][_0x3ce555(0x1a7)]),_0x19e94f(_0x4889e0,_0x48382d,_0x2ebb49+0x1,_0x1730b0);let _0x3d0f01={'blockId':_0x47a3dc,'blockType':_0x4a55e0[_0x3ce555(0x104)][_0x3ce555(0x163)],'startIndex':_0x48382d,'endIndex':_0x2ebb49+0x1};return _0x4889e0[_0x3ce555(0x15f)]=[...(_0x455d28=_0x4889e0['blockRanges'])==null?[]:_0x455d28,_0x3d0f01][_0x3ce555(0x135)]((_0x43e974,_0x4075d5)=>_0x43e974['startIndex']-_0x4075d5[_0x3ce555(0x111)]),_0x2cfb6b(_0x4889e0,_0x3d0f01),{'nextDocumentData':_0x421d87,'nextMetadata':_0x35e27d,'cursorOffset':_0x48382d+0x1};}function _0x2d797a(_0x1a5c53,_0x26f1b2,_0x5a1c79){const _0x5cfdfa=_0x4a7827;var _0x4b3603;((_0x4b3603=_0x1a5c53[_0x5cfdfa(0x180)])==null?[]:_0x4b3603)[_0x5cfdfa(0x13e)](_0xec390c=>_0xec390c['startIndex']>_0x26f1b2&&_0xec390c[_0x5cfdfa(0x111)]<_0x5a1c79)[_0x5cfdfa(0x16d)](_0x1b0f5c=>{const _0x5a367b=_0x5cfdfa;var _0x22b5c9;let _0x5da21c={...(_0x22b5c9=_0x1b0f5c[_0x5a367b(0x1b9)])==null?{}:_0x22b5c9};delete _0x5da21c[_0x5a367b(0x118)],delete _0x5da21c[_0x5a367b(0x134)],_0x1b0f5c[_0x5a367b(0x1b9)]=_0x5da21c;});}function _0x591ef4(_0x244b7f,_0x44dbaa){const _0x9e1098=_0x4a7827;return _0x244b7f==null||_0x44dbaa==null||_0x244b7f===_0x44dbaa?null:{'startOffset':Math[_0x9e1098(0x18c)](_0x244b7f,_0x44dbaa),'endOffset':Math[_0x9e1098(0x183)](_0x244b7f,_0x44dbaa)};}function _0x1d1ff2(_0x56c650,_0x42b644,_0x42c55b){const _0x4a0f4d=_0x4a7827;var _0x2f19ae;return((_0x2f19ae=_0x56c650[_0x4a0f4d(0x15f)])==null?[]:_0x2f19ae)[_0x4a0f4d(0x15d)](_0x4739f8=>{const _0x4812ba=_0x4a0f4d;let _0x180522=(0x0,_0x4a55e0[_0x4812ba(0x1a5)])(_0x4739f8);return _0x42b644===_0x42c55b?(0x0,_0x4a55e0[_0x4812ba(0x19e)])(_0x180522,_0x42b644):(0x0,_0x4a55e0[_0x4812ba(0x137)])(_0x180522,{'startOffset':_0x42b644,'endOffset':_0x42c55b});});}function _0x3ba210(_0x113c1d){const _0x23cf74=_0x4a7827;return{'nextDocumentData':_0x34320a(_0x113c1d[_0x23cf74(0x1be)]),'nextMetadata':_0x1d8d2c(_0x113c1d[_0x23cf74(0x1b1)],_0x113c1d['blockId'],_0x113c1d[_0x23cf74(0x115)]),'cursorOffset':0x0};}function _0x19857f(_0x50be38){const _0x32d8ba=_0x4a7827;let _0x5aceaa=_0x34320a(_0x50be38[_0x32d8ba(0x1be)]),_0xfeaea3=_0x411ad6(_0x5aceaa),_0x5e3f90=_0x5d3694(_0xfeaea3,_0x50be38[_0x32d8ba(0x167)]);if(!_0x5e3f90)return null;let _0x13a8d0=_0x2b4c99(_0xfeaea3,_0x5e3f90);return{'nextDocumentData':_0x5aceaa,'nextMetadata':_0x160fa5(_0x50be38['metadata'],_0x50be38['blockId']),'cursorOffset':_0x13a8d0};}function _0x48a6f4(_0x52a101){const _0x2e975e=_0x4a7827;var _0x45e719;let _0x3c6927=_0x34320a(_0x52a101['documentData']),_0x495f83=_0x411ad6(_0x3c6927),_0x2e8ed9=_0x5d3694(_0x495f83,_0x52a101['blockId']);if(!_0x2e8ed9)return null;let _0x2cbfc1=(0x0,_0x4a55e0['getBlockRangeInterval'])(_0x2e8ed9);return _0x4d296c(_0x495f83,_0x2cbfc1[_0x2e975e(0x14c)],_0x2cbfc1[_0x2e975e(0x10f)]),_0x495f83[_0x2e975e(0x15f)]=(_0x45e719=_0x495f83[_0x2e975e(0x15f)])==null?void 0x0:_0x45e719[_0x2e975e(0x13e)](_0x3b7542=>_0x3b7542[_0x2e975e(0x167)]!==_0x52a101[_0x2e975e(0x167)]),{'nextDocumentData':_0x3c6927,'nextMetadata':_0x160fa5(_0x52a101[_0x2e975e(0x1b1)],_0x52a101[_0x2e975e(0x167)]),'cursorOffset':_0x2e8ed9['startIndex']};}function _0x30eceb(_0x883cbf){const _0x262088=_0x4a7827;let _0x1ced01=_0x34320a(_0x883cbf[_0x262088(0x1be)]),_0x189d16=_0x411ad6(_0x1ced01),_0x5ec58c=_0x3f64e9(_0x189d16,_0x883cbf[_0x262088(0x12e)]);return _0x5ec58c&&_0x1f3918(_0x1ced01,_0x189d16,_0x5ec58c,_0x883cbf[_0x262088(0x12e)],_0x883cbf['paragraphStartIndex'])||null;}function _0x1f3918(_0x19127c,_0x176576,_0x2a0567,_0x1b0b59,_0xa89307){const _0x57dca7=_0x4a7827;let _0x14f97c=_0x2c9c06(_0x176576,_0x2a0567,_0x1b0b59,_0xa89307);if(!_0x14f97c)return null;let _0x1e4c61=_0x14f97c['endTokenOffset']-0x1;return _0x4d296c(_0x176576,_0x14f97c[_0x57dca7(0x1bb)]['startIndex'],_0x14f97c[_0x57dca7(0x1bb)][_0x57dca7(0x111)]+0x1),{'nextDocumentData':_0x19127c,'cursorOffset':_0x1e4c61};}function _0x5d3694(_0x4cfacf,_0x171103){const _0x17c9d9=_0x4a7827;var _0x4803ff;return _0x4cfacf==null||(_0x4803ff=_0x4cfacf[_0x17c9d9(0x15f)])==null?void 0x0:_0x4803ff[_0x17c9d9(0x10c)](_0x2f3784=>_0x2f3784[_0x17c9d9(0x157)]===_0x4a55e0[_0x17c9d9(0x104)][_0x17c9d9(0x163)]&&_0x2f3784[_0x17c9d9(0x167)]===_0x171103);}function _0x3f4ad1(_0x10fd38){const _0xf77fcb=_0x4a7827;var _0x2adf7e;let _0x420d4b=_0x10fd38[_0xf77fcb(0x1be)][_0xf77fcb(0x119)];if(!_0x420d4b)return!0x1;let _0x1b851e=_0x10fd38[_0xf77fcb(0x191)]===_0xf77fcb(0x1a0)?_0x10fd38['cursorOffset']-0x1:_0x10fd38['cursorOffset'],_0x3d059c=_0x10fd38['direction']===_0xf77fcb(0x153)?_0x10fd38[_0xf77fcb(0x12e)]+0x1:_0x1b851e;return((_0x2adf7e=_0x420d4b['blockRanges'])==null?[]:_0x2adf7e)[_0xf77fcb(0x15d)](_0x535e17=>_0x535e17[_0xf77fcb(0x157)]===_0x4a55e0['DocumentBlockRangeType'][_0xf77fcb(0x163)]?_0x1b851e===_0x535e17[_0xf77fcb(0x111)]||_0x1b851e===_0x535e17[_0xf77fcb(0x184)]||_0x3d059c===_0x535e17['startIndex']||_0x3d059c===_0x535e17['endIndex']:!0x1);}function _0x3f64e9(_0x514947,_0x6d0c68){const _0x50ac47=_0x4a7827;var _0x58ddf8;return(_0x58ddf8=_0x514947[_0x50ac47(0x15f)])==null?void 0x0:_0x58ddf8[_0x50ac47(0x10c)](_0x2c271a=>{const _0xa80983=_0x50ac47;let _0x31fad5=_0x3bfba5(_0x2c271a);return _0x2c271a['blockType']===_0x4a55e0['DocumentBlockRangeType'][_0xa80983(0x163)]&&_0x2c271a[_0xa80983(0x111)]<=_0x6d0c68&&_0x6d0c68<=_0x31fad5+0x2;});}function _0x425c69(_0x377fef,_0x25b468,_0x205389=!0x1){return{'indentEnd':{'v':0x14},'indentStart':{'v':0x14},..._0x377fef&&_0x205389?{'spaceAbove':{'v':0x8}}:{},'textStyle':{'ff':_0x2bc77a,'fs':0xc}};}function _0x19e94f(_0x2c8d83,_0x33d273,_0x36d1d4,_0x1de2c9=!0x1){const _0x21f6a5=_0x4a7827;var _0x14dae8;let _0xfbf6fc=((_0x14dae8=_0x2c8d83['paragraphs'])==null?[]:_0x14dae8)[_0x21f6a5(0x13e)](_0xe1e1cd=>_0xe1e1cd[_0x21f6a5(0x111)]>_0x33d273&&_0xe1e1cd['startIndex']<_0x36d1d4);_0xfbf6fc[_0x21f6a5(0x16d)]((_0x112f35,_0x1d75e7)=>{const _0x107c8f=_0x21f6a5;var _0x5da904;_0x112f35[_0x107c8f(0x1b9)]={...(_0x5da904=_0x112f35[_0x107c8f(0x1b9)])==null?{}:_0x5da904,..._0x425c69(_0x1d75e7===0x0,_0x1d75e7===_0xfbf6fc[_0x107c8f(0x128)]-0x1,_0x1de2c9)};});}function _0x3eebbb(_0x446748){const _0x313295=_0x4a7827;var _0x173337,_0x188ffa;let _0x2c6ade={..._0x446748==null?{}:_0x446748};return delete _0x2c6ade['indentEnd'],delete _0x2c6ade[_0x313295(0x127)],delete _0x2c6ade[_0x313295(0x118)],delete _0x2c6ade[_0x313295(0x134)],((_0x173337=_0x2c6ade['textStyle'])==null?void 0x0:_0x173337['ff'])===_0x2bc77a&&((_0x188ffa=_0x2c6ade[_0x313295(0x165)])==null?void 0x0:_0x188ffa['fs'])===0xc&&delete _0x2c6ade[_0x313295(0x165)],_0x2c6ade;}function _0x5d2ef7(_0x37b7cc,_0x39fe8d){const _0xec4282=_0x4a7827;var _0x691df5;let _0x263de3=_0x3bfba5(_0x39fe8d);return((_0x691df5=_0x37b7cc['paragraphs'])==null?[]:_0x691df5)[_0xec4282(0x13e)](_0x2def34=>_0x2def34[_0xec4282(0x111)]>_0x39fe8d['startIndex']&&_0x2def34[_0xec4282(0x111)]<_0x263de3);}function _0x2b4c99(_0x22288a,_0x27d1c7){const _0x29b3fd=_0x4a7827;var _0x4761fd;let _0x5ddb1d=_0x3bfba5(_0x27d1c7);return _0x5d2ef7(_0x22288a,_0x27d1c7)[_0x29b3fd(0x16d)](_0x3aa757=>{const _0x14e409=_0x29b3fd;_0x3aa757['paragraphStyle']=_0x3eebbb(_0x3aa757[_0x14e409(0x1b9)]);}),_0x4d296c(_0x22288a,_0x5ddb1d,_0x5ddb1d+0x1),_0x4d296c(_0x22288a,_0x27d1c7[_0x29b3fd(0x111)],_0x27d1c7[_0x29b3fd(0x111)]+0x1),_0x22288a['blockRanges']=(_0x4761fd=_0x22288a[_0x29b3fd(0x15f)])==null?void 0x0:_0x4761fd[_0x29b3fd(0x13e)](_0x5e8480=>_0x5e8480['blockId']!==_0x27d1c7[_0x29b3fd(0x167)]),_0x27d1c7['startIndex'];}function _0x34320a(_0x30703c){const _0x2ec209=_0x4a7827;return{..._0x30703c,'body':_0x30703c[_0x2ec209(0x119)]?_0xc70022(_0x30703c[_0x2ec209(0x119)]):_0x30703c[_0x2ec209(0x119)]};}function _0xc70022(_0x5c200c){const _0xfa0b03=_0x4a7827;var _0x2203b0,_0x1adea3,_0x4bcb2c,_0xa2fb78,_0x246be7,_0x58b87c,_0x3458f0,_0x131cf1,_0x3d0b4c;return{..._0x5c200c,'paragraphs':(_0x2203b0=_0x5c200c[_0xfa0b03(0x180)])==null?void 0x0:_0x2203b0[_0xfa0b03(0x13c)](_0x5ec15b=>({..._0x5ec15b,'bullet':_0xe49e67(_0x5ec15b[_0xfa0b03(0x185)]),'paragraphStyle':_0xe49e67(_0x5ec15b[_0xfa0b03(0x1b9)])})),'sectionBreaks':(_0x1adea3=_0x5c200c[_0xfa0b03(0x122)])==null?void 0x0:_0x1adea3['map'](_0x3d3047=>({..._0x3d3047})),'textRuns':(_0x4bcb2c=_0x5c200c[_0xfa0b03(0x136)])==null?void 0x0:_0x4bcb2c[_0xfa0b03(0x13c)](_0x2a9456=>({..._0x2a9456})),'tables':(_0xa2fb78=_0x5c200c[_0xfa0b03(0x155)])==null?void 0x0:_0xa2fb78[_0xfa0b03(0x13c)](_0x2c7276=>({..._0x2c7276})),'columnGroups':(_0x246be7=_0x5c200c[_0xfa0b03(0x1bc)])==null?void 0x0:_0x246be7[_0xfa0b03(0x13c)](_0x2ee978=>{const _0x1f011d=_0xfa0b03;var _0x148b89;return{..._0x2ee978,'columns':(_0x148b89=_0x2ee978[_0x1f011d(0x177)])==null?void 0x0:_0x148b89[_0x1f011d(0x13c)](_0x16e9e3=>_0xe49e67(_0x16e9e3))};}),'blockRanges':(_0x58b87c=_0x5c200c[_0xfa0b03(0x15f)])==null?void 0x0:_0x58b87c[_0xfa0b03(0x13c)](_0xd778b5=>({..._0xd778b5})),'customRanges':(_0x3458f0=_0x5c200c[_0xfa0b03(0x1aa)])==null?void 0x0:_0x3458f0['map'](_0x4e0b76=>({..._0x4e0b76})),'customDecorations':(_0x131cf1=_0x5c200c[_0xfa0b03(0x110)])==null?void 0x0:_0x131cf1['map'](_0xf02f7=>({..._0xf02f7})),'customBlocks':(_0x3d0b4c=_0x5c200c['customBlocks'])==null?void 0x0:_0x3d0b4c['map'](_0x4f27fc=>({..._0x4f27fc}))};}function _0xe49e67(_0x15c913){const _0x5d7d83=_0x4a7827;return Array[_0x5d7d83(0x159)](_0x15c913)?_0x15c913[_0x5d7d83(0x13c)](_0x1dcaea=>_0xe49e67(_0x1dcaea)):!_0x15c913||typeof _0x15c913!='object'?_0x15c913:Object[_0x5d7d83(0x121)](Object[_0x5d7d83(0x17c)](_0x15c913)[_0x5d7d83(0x13c)](([_0x343a6e,_0x24bff4])=>[_0x343a6e,_0xe49e67(_0x24bff4)]));}function _0x411ad6(_0xc2cb74){const _0x133101=_0x4a7827;if(!_0xc2cb74[_0x133101(0x119)])throw Error(_0x133101(0x1a9));return _0xc2cb74[_0x133101(0x119)];}function _0x47b19e(_0x47bd48,_0xac72a1,_0x5c046d,_0x262e29=_0x4a7827(0x17e)){const _0x48755c=_0x4a7827;if(_0xac72a1==null||_0x5c046d==null){let _0x1ad897=_0x7bad88(_0x47bd48);return{'startOffset':_0x1ad897,'endOffset':_0x1ad897};}let _0x403d9d=Math[_0x48755c(0x18c)](_0xac72a1,_0x5c046d),_0x990df1=Math[_0x48755c(0x183)](_0xac72a1,_0x5c046d),_0x316b52=_0xab88f4(_0x47bd48,_0x403d9d,_0x990df1);return _0x403d9d===_0x990df1?_0x262e29===_0x48755c(0x178)?{'startOffset':_0x403d9d,'endOffset':_0x990df1}:_0x51e3be(_0x47bd48,_0x403d9d,_0x316b52):_0x4efd0b(_0x47bd48,_0x403d9d,_0x990df1,_0x316b52);}function _0x51e3be(_0x4ae582,_0x27f60a,_0x45ac15){const _0x5da2a0=_0x4a7827;let _0x4397e9=_0x468ad5(_0x4ae582,_0x27f60a);if(_0x4397e9){let _0x4ace10=_0x366aa3(_0x4ae582,_0x4397e9,_0x45ac15);if(_0x4ace10<_0x4397e9[_0x5da2a0(0x111)])return{'startOffset':_0x4ace10,'endOffset':_0x45ac15?Math[_0x5da2a0(0x18c)](_0x4397e9[_0x5da2a0(0x111)]+0x1,_0x45ac15[_0x5da2a0(0x10f)]):_0x4397e9[_0x5da2a0(0x111)]+0x1};}let _0x4bc772=_0x27f60a===0x0&&_0x4ae582['dataStream'][0x0]===_0x4a55e0[_0x5da2a0(0x156)][_0x5da2a0(0x125)]?0x1:_0x27f60a;return{'startOffset':_0x4bc772,'endOffset':_0x4bc772};}function _0x7bad88(_0x34c393){const _0x136e71=_0x4a7827;return _0x34c393[_0x136e71(0x1c3)]['endsWith'](_0x4a55e0[_0x136e71(0x156)]['SECTION_BREAK'])?Math['max'](0x0,_0x34c393[_0x136e71(0x1c3)][_0x136e71(0x128)]-0x1):_0x34c393['dataStream']['length'];}function _0x34e2b0(_0x35df7f,_0x2a3d1d,_0x28c1fd){const _0x116fdd=_0x4a7827;var _0x4e7fce;let _0x213c2e=Math['min'](_0x2a3d1d,_0x28c1fd),_0x456096=Math[_0x116fdd(0x183)](_0x2a3d1d,_0x28c1fd);return!!((_0x4e7fce=_0x35df7f[_0x116fdd(0x155)])!=null&&_0x4e7fce[_0x116fdd(0x15d)](_0x5b8691=>_0x213c2e>_0x5b8691[_0x116fdd(0x111)]&&_0x213c2e<_0x5b8691[_0x116fdd(0x184)]||_0x456096>_0x5b8691[_0x116fdd(0x111)]&&_0x456096<_0x5b8691[_0x116fdd(0x184)]||_0x213c2e<=_0x5b8691[_0x116fdd(0x111)]&&_0x456096>=_0x5b8691[_0x116fdd(0x184)]));}function _0x4efd0b(_0x142bfb,_0x2fc0b1,_0x1141f1,_0x496382){const _0x46b44d=_0x4a7827;var _0x3d2ef0,_0x348519;let _0x341046=[...(_0x3d2ef0=_0x142bfb[_0x46b44d(0x180)])==null?[]:_0x3d2ef0][_0x46b44d(0x135)]((_0x16aaaf,_0xd166f)=>_0x16aaaf['startIndex']-_0xd166f[_0x46b44d(0x111)]),_0xa40553=(0x0,_0x4a55e0['getParagraphContentStartOffsets'])(_0x142bfb),_0x53c910=_0x341046[_0x46b44d(0x10c)](_0x16b2ac=>_0x366aa3(_0x142bfb,_0x16b2ac,_0x496382,_0xa40553)<=_0x2fc0b1&&_0x2fc0b1<=_0x16b2ac[_0x46b44d(0x111)]),_0x433bf1=(_0x348519=_0x341046[_0x46b44d(0x10c)](_0x256661=>_0x256661[_0x46b44d(0x111)]>=_0x1141f1-0x1))==null?_0x341046[_0x341046[_0x46b44d(0x128)]-0x1]:_0x348519;return{'startOffset':_0x53c910?_0x366aa3(_0x142bfb,_0x53c910,_0x496382,_0xa40553):_0x2fc0b1,'endOffset':_0x433bf1?_0x4ac8e1(_0x433bf1,_0x496382):_0x1141f1};}function _0x468ad5(_0x2dd693,_0x5b59b8){const _0x458f2c=_0x4a7827;var _0x568adb;let _0xebb87d=[...(_0x568adb=_0x2dd693[_0x458f2c(0x180)])==null?[]:_0x568adb][_0x458f2c(0x135)]((_0x44d8bb,_0x583c79)=>_0x44d8bb[_0x458f2c(0x111)]-_0x583c79[_0x458f2c(0x111)]),_0x243e0f=(0x0,_0x4a55e0[_0x458f2c(0x1bf)])(_0x2dd693);return _0xebb87d['find'](_0x53df3a=>{const _0x444ac1=_0x458f2c;var _0x962e77;return((_0x962e77=_0x243e0f[_0x444ac1(0x1c4)](_0x53df3a[_0x444ac1(0x111)]))==null?0x0:_0x962e77)<=_0x5b59b8&&_0x5b59b8<=_0x53df3a[_0x444ac1(0x111)];});}function _0x366aa3(_0x11e6dc,_0x4b8474,_0x5a3bb3,_0x5b099b){const _0x53871f=_0x4a7827;var _0x1a90ad;let _0x139af5=(_0x1a90ad=_0x5b099b==null?void 0x0:_0x5b099b[_0x53871f(0x1c4)](_0x4b8474['startIndex']))==null?(0x0,_0x4a55e0['getParagraphContentStartOffset'])(_0x11e6dc,_0x4b8474):_0x1a90ad;return _0x5a3bb3?Math[_0x53871f(0x183)](_0x139af5,_0x5a3bb3['startOffset']):_0x139af5;}function _0x4ac8e1(_0x4ff145,_0x5387d2){const _0x8373bd=_0x4a7827;let _0x2b6ae1=_0x4ff145[_0x8373bd(0x111)]+0x1;return _0x5387d2?Math[_0x8373bd(0x18c)](_0x2b6ae1,_0x5387d2[_0x8373bd(0x10f)]):_0x2b6ae1;}function _0xab88f4(_0x1ad77d,_0x3a01b0,_0x42c11d){const _0x386033=_0x4a7827;let _0x8fbaa5=_0x5453ee(_0x1ad77d,_0x3a01b0),_0x14d5be=_0x5453ee(_0x1ad77d,_0x3a01b0===_0x42c11d?_0x42c11d:Math[_0x386033(0x183)](_0x3a01b0,_0x42c11d-0x1));if(!(!_0x8fbaa5&&!_0x14d5be)){if(!_0x8fbaa5||!_0x14d5be||_0x8fbaa5['startTokenOffset']!==_0x14d5be[_0x386033(0x11b)]||_0x8fbaa5[_0x386033(0x187)]!==_0x14d5be[_0x386033(0x187)])throw new _0x45a58a();return _0x8fbaa5;}}function _0x5453ee(_0x17748a,_0x5e5298){const _0x275013=_0x4a7827;let _0x3d8769=_0x17748a[_0x275013(0x1c3)],_0x52f7e4=-0x1;for(let _0x30abb4=Math[_0x275013(0x18c)](_0x5e5298,_0x3d8769[_0x275013(0x128)]-0x1);_0x30abb4>=0x0;_0x30abb4--){let _0x114ad5=_0x3d8769[_0x30abb4];if(_0x114ad5===_0x4a55e0[_0x275013(0x156)][_0x275013(0x1b7)])return;if(_0x114ad5===_0x4a55e0['DataStreamTreeTokenType'][_0x275013(0x140)]){_0x52f7e4=_0x30abb4;break;}}if(_0x52f7e4<0x0)return;let _0x1532f8=_0x3d8769['indexOf'](_0x4a55e0['DataStreamTreeTokenType'][_0x275013(0x1b7)],_0x52f7e4+0x1);if(!(_0x1532f8<0x0||_0x5e5298<_0x52f7e4+0x1||_0x5e5298>_0x1532f8-0x1))return{'startOffset':_0x52f7e4+0x1,'endOffset':Math['max'](_0x52f7e4+0x1,_0x1532f8-0x1),'startTokenOffset':_0x52f7e4,'endTokenOffset':_0x1532f8};}function _0x3bfba5(_0x758003){const _0x20930c=_0x4a7827;return(0x0,_0x4a55e0[_0x20930c(0x1a5)])(_0x758003)[_0x20930c(0x10f)]-0x1;}function _0x2c9c06(_0x1c4931,_0x1a2791,_0x35582d,_0x51f0cc){const _0x49e254=_0x4a7827;var _0x3634d0;let _0x727a63=_0x3bfba5(_0x1a2791),_0x5369e9=((_0x3634d0=_0x1c4931[_0x49e254(0x180)])==null?[]:_0x3634d0)[_0x49e254(0x10c)](_0x15186c=>_0x15186c[_0x49e254(0x111)]===_0x727a63+0x1);if(!_0x5369e9||_0x51f0cc!=null&&_0x5369e9[_0x49e254(0x111)]!==_0x51f0cc||_0x35582d!=null&&(_0x35582d<_0x727a63||_0x35582d>_0x5369e9['startIndex']+0x1)||_0x1c4931[_0x49e254(0x1c3)][_0x5369e9[_0x49e254(0x111)]]!==_0x4a55e0[_0x49e254(0x156)][_0x49e254(0x125)])return null;let _0x1a3089=(0x0,_0x4a55e0['getParagraphContentStartOffset'])(_0x1c4931,_0x5369e9),_0x275ebd=_0x1c4931[_0x49e254(0x1c3)][_0x49e254(0x13b)](_0x1a3089,_0x5369e9['startIndex']);return Array['from'](_0x275ebd)['every'](_0x230161=>_0x230161===_0x4a55e0['DataStreamTreeTokenType'][_0x49e254(0xff)])?{'paragraph':_0x5369e9,'endTokenOffset':_0x727a63}:null;}function _0x2cfb6b(_0x12755b,_0x23eb1f){const _0xd8478e=_0x4a7827;var _0x28dd7e;let _0x3ab2c0=_0x3bfba5(_0x23eb1f),_0x357c54=_0x12755b[_0xd8478e(0x1c3)][_0x3ab2c0+0x1];_0x357c54!==_0x4a55e0[_0xd8478e(0x156)][_0xd8478e(0x19d)]&&_0x357c54!==void 0x0||_0x104ca0(_0x12755b,_0x3ab2c0+0x1,_0x4a55e0[_0xd8478e(0x156)][_0xd8478e(0x125)],{'paragraphs':[{'startIndex':0x0,'paragraphId':(0x0,_0x4a55e0[_0xd8478e(0x138)])(new Set((_0x28dd7e=_0x12755b[_0xd8478e(0x180)])==null?void 0x0:_0x28dd7e[_0xd8478e(0x13c)](_0x51d87e=>_0x51d87e[_0xd8478e(0x1bd)])))}]});}function _0x104ca0(_0x43980f,_0x51d90a,_0x5e2210,_0x54a159={}){const _0x289782=_0x4a7827;var _0x24b8a0,_0x218b70;if(_0x5e2210){if(_0x43980f[_0x289782(0x1c3)]=''+_0x43980f[_0x289782(0x1c3)]['slice'](0x0,_0x51d90a)+_0x5e2210+_0x43980f[_0x289782(0x1c3)][_0x289782(0x13b)](_0x51d90a),_0x8426da(_0x43980f,_0x51d90a,_0x5e2210['length']),(_0x24b8a0=_0x54a159[_0x289782(0x180)])!=null&&_0x24b8a0[_0x289782(0x128)]){var _0x3ceee3;_0x43980f[_0x289782(0x180)]=[...(_0x3ceee3=_0x43980f[_0x289782(0x180)])==null?[]:_0x3ceee3,..._0x54a159[_0x289782(0x180)][_0x289782(0x13c)](_0x3d3322=>({..._0x3d3322,'startIndex':_0x3d3322[_0x289782(0x111)]+_0x51d90a}))]['sort']((_0x1c2422,_0xe690aa)=>_0x1c2422[_0x289782(0x111)]-_0xe690aa[_0x289782(0x111)]);}if((_0x218b70=_0x54a159[_0x289782(0x15f)])!=null&&_0x218b70[_0x289782(0x128)]){var _0x48bd33;_0x43980f[_0x289782(0x15f)]=[...(_0x48bd33=_0x43980f[_0x289782(0x15f)])==null?[]:_0x48bd33,..._0x54a159[_0x289782(0x15f)][_0x289782(0x13c)](_0x1a7fbb=>({..._0x1a7fbb,'startIndex':_0x1a7fbb[_0x289782(0x111)]+_0x51d90a,'endIndex':_0x1a7fbb[_0x289782(0x184)]+_0x51d90a}))]['sort']((_0x241292,_0x4cd471)=>_0x241292[_0x289782(0x111)]-_0x4cd471['startIndex']);}}}function _0x4d296c(_0x432280,_0x1e0313,_0x3bad25){const _0x301dc7=_0x4a7827;let _0xcc1e88=_0x3bad25-_0x1e0313;_0x432280[_0x301dc7(0x1c3)]=''+_0x432280[_0x301dc7(0x1c3)][_0x301dc7(0x13b)](0x0,_0x1e0313)+_0x432280[_0x301dc7(0x1c3)]['slice'](_0x3bad25),_0x3accf8(_0x432280,_0x1e0313,_0xcc1e88);}function _0x8426da(_0x531c86,_0x330cf1,_0x25299f){const _0xdc7fc6=_0x4a7827;_0x531c86['paragraphs']=_0x2e560a(_0x531c86[_0xdc7fc6(0x180)],_0x330cf1,_0x25299f),_0x531c86['sectionBreaks']=_0x2e560a(_0x531c86['sectionBreaks'],_0x330cf1,_0x25299f),_0x531c86[_0xdc7fc6(0x1cd)]=_0x2e560a(_0x531c86[_0xdc7fc6(0x1cd)],_0x330cf1,_0x25299f),_0x531c86[_0xdc7fc6(0x136)]=_0x1ffff4(_0x531c86[_0xdc7fc6(0x136)],_0x330cf1,_0x25299f),_0x531c86[_0xdc7fc6(0x155)]=_0x1e8e28(_0x531c86['tables'],_0x330cf1,_0x25299f),_0x531c86[_0xdc7fc6(0x1bc)]=_0x16e51d(_0x531c86[_0xdc7fc6(0x1bc)],_0x330cf1,_0x25299f),_0x531c86[_0xdc7fc6(0x1aa)]=_0x16e51d(_0x531c86[_0xdc7fc6(0x1aa)],_0x330cf1,_0x25299f),_0x531c86[_0xdc7fc6(0x110)]=_0x16e51d(_0x531c86[_0xdc7fc6(0x110)],_0x330cf1,_0x25299f),_0x531c86[_0xdc7fc6(0x15f)]=_0x16e51d(_0x531c86['blockRanges'],_0x330cf1,_0x25299f);}function _0x3accf8(_0x3038f4,_0x3fe628,_0x182ea3){const _0x49f894=_0x4a7827;var _0x370126,_0x1854f9;_0x3038f4[_0x49f894(0x180)]=_0x20b563(_0x3038f4[_0x49f894(0x180)],_0x3fe628,_0x182ea3),_0x3038f4[_0x49f894(0x122)]=_0x20b563(_0x3038f4[_0x49f894(0x122)],_0x3fe628,_0x182ea3),_0x3038f4[_0x49f894(0x1cd)]=_0x20b563(_0x3038f4[_0x49f894(0x1cd)],_0x3fe628,_0x182ea3),_0x3038f4[_0x49f894(0x136)]=(_0x370126=_0x31ccbb((_0x1854f9=_0x3038f4['textRuns'])==null?void 0x0:_0x1854f9[_0x49f894(0x13c)](_0x1cc76a=>({..._0x1cc76a,'startIndex':_0x1cc76a['st'],'endIndex':_0x1cc76a['ed']})),_0x3fe628,_0x182ea3))==null?void 0x0:_0x370126[_0x49f894(0x13c)](_0x5ecb7a=>{let {startIndex:_0x56c181,endIndex:_0x562af2,..._0x555550}=_0x5ecb7a;return{..._0x555550,'st':_0x56c181,'ed':_0x562af2};}),_0x3038f4[_0x49f894(0x155)]=_0x31ccbb(_0x3038f4[_0x49f894(0x155)],_0x3fe628,_0x182ea3),_0x3038f4[_0x49f894(0x1bc)]=_0x1fdd8f(_0x3038f4['columnGroups'],_0x3fe628,_0x182ea3),_0x3038f4[_0x49f894(0x1aa)]=_0x1fdd8f(_0x3038f4['customRanges'],_0x3fe628,_0x182ea3),_0x3038f4[_0x49f894(0x110)]=_0x1fdd8f(_0x3038f4[_0x49f894(0x110)],_0x3fe628,_0x182ea3),_0x3038f4[_0x49f894(0x15f)]=_0x1fdd8f(_0x3038f4[_0x49f894(0x15f)],_0x3fe628,_0x182ea3);}function _0x2e560a(_0x30498d,_0x57c64e,_0x1c9dd8){const _0x46838c=_0x4a7827;return _0x30498d==null?void 0x0:_0x30498d['map'](_0x2fe0a5=>_0x2fe0a5[_0x46838c(0x111)]>=_0x57c64e?{..._0x2fe0a5,'startIndex':_0x2fe0a5['startIndex']+_0x1c9dd8}:_0x2fe0a5);}function _0x20b563(_0x27c3c0,_0x57df8a,_0x4f0ade){const _0x4d93c1=_0x4a7827;let _0x56294f=_0x57df8a+_0x4f0ade;return _0x27c3c0==null?void 0x0:_0x27c3c0[_0x4d93c1(0x13c)](_0x2c6e78=>_0x2c6e78[_0x4d93c1(0x111)]>=_0x57df8a&&_0x2c6e78[_0x4d93c1(0x111)]<_0x56294f?null:_0x2c6e78[_0x4d93c1(0x111)]>=_0x56294f?{..._0x2c6e78,'startIndex':_0x2c6e78[_0x4d93c1(0x111)]-_0x4f0ade}:_0x2c6e78)[_0x4d93c1(0x13e)](_0x4c9632=>_0x4c9632!=null);}function _0x1ffff4(_0x21b18e,_0x459b0d,_0x4b040e){const _0x226ccf=_0x4a7827;return _0x21b18e==null?void 0x0:_0x21b18e[_0x226ccf(0x13c)](_0x330b67=>_0x330b67['st']>=_0x459b0d?{..._0x330b67,'st':_0x330b67['st']+_0x4b040e,'ed':_0x330b67['ed']+_0x4b040e}:_0x330b67['ed']>_0x459b0d?{..._0x330b67,'ed':_0x330b67['ed']+_0x4b040e}:_0x330b67);}function _0x16e51d(_0x5e536f,_0x39aa73,_0x301c67){const _0x398183=_0x4a7827;return _0x5e536f==null?void 0x0:_0x5e536f[_0x398183(0x13c)](_0x3a3d76=>(0x0,_0x4a55e0[_0x398183(0x1b4)])(_0x3a3d76,_0x39aa73,_0x301c67));}function _0x1e8e28(_0x590ec7,_0x1d7ba9,_0x1686f0){const _0x5757be=_0x4a7827;return _0x590ec7==null?void 0x0:_0x590ec7[_0x5757be(0x13c)](_0x3a25dd=>(0x0,_0x4a55e0[_0x5757be(0x117)])(_0x3a25dd,_0x1d7ba9,_0x1686f0));}function _0x1fdd8f(_0x93b021,_0x302f5e,_0x11445d){const _0x46f433=_0x4a7827;return _0x93b021==null?void 0x0:_0x93b021[_0x46f433(0x13c)](_0xdd9c40=>(0x0,_0x4a55e0[_0x46f433(0x130)])(_0xdd9c40,_0x302f5e,_0x11445d))[_0x46f433(0x13e)](_0x2f905c=>_0x2f905c!=null);}function _0x31ccbb(_0x33c793,_0x88b87f,_0x48be40){const _0x38412e=_0x4a7827;return _0x33c793==null?void 0x0:_0x33c793[_0x38412e(0x13c)](_0x2a9ea9=>(0x0,_0x4a55e0['shiftExclusiveRangeOnDelete'])(_0x2a9ea9,_0x88b87f,_0x48be40))[_0x38412e(0x13e)](_0x12727f=>_0x12727f!=null);}function _0x2b7fa6(_0x1ec4ff){'@babel/helpers - typeof';const _0x287f4a=_0x4a7827;return _0x2b7fa6=typeof Symbol==_0x287f4a(0x16a)&&typeof Symbol[_0x287f4a(0x1a3)]==_0x287f4a(0x107)?function(_0x24cdf2){return typeof _0x24cdf2;}:function(_0x47cbda){const _0x1ca1dc=_0x287f4a;return _0x47cbda&&typeof Symbol==_0x1ca1dc(0x16a)&&_0x47cbda[_0x1ca1dc(0x1d0)]===Symbol&&_0x47cbda!==Symbol['prototype']?_0x1ca1dc(0x107):typeof _0x47cbda;},_0x2b7fa6(_0x1ec4ff);}function _0x3077dd(_0x7e1d37,_0x53866f){const _0x2a87e5=_0x4a7827;if(_0x2b7fa6(_0x7e1d37)!='object'||!_0x7e1d37)return _0x7e1d37;var _0x576fdc=_0x7e1d37[Symbol[_0x2a87e5(0x132)]];if(_0x576fdc!==void 0x0){var _0x5d9030=_0x576fdc[_0x2a87e5(0x142)](_0x7e1d37,_0x53866f||_0x2a87e5(0x146));if(_0x2b7fa6(_0x5d9030)!=_0x2a87e5(0x114))return _0x5d9030;throw TypeError(_0x2a87e5(0x129));}return(_0x53866f===_0x2a87e5(0x1a8)?String:Number)(_0x7e1d37);}function _0xb94e52(_0x274bcf){const _0x139a47=_0x4a7827;var _0x3bdfa6=_0x3077dd(_0x274bcf,_0x139a47(0x1a8));return _0x2b7fa6(_0x3bdfa6)==_0x139a47(0x107)?_0x3bdfa6:_0x3bdfa6+'';}function _0x16a6fe(_0x527d4f,_0x24de2e,_0x32deb6){const _0x36a1aa=_0x4a7827;return(_0x24de2e=_0xb94e52(_0x24de2e))in _0x527d4f?Object[_0x36a1aa(0x113)](_0x527d4f,_0x24de2e,{'value':_0x32deb6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x527d4f[_0x24de2e]=_0x32deb6,_0x527d4f;}var _0x264ef2=class extends _0x4a55e0['Disposable']{constructor(..._0xca8a28){const _0x1e0889=_0x4a7827;super(..._0xca8a28),_0x16a6fe(this,_0x1e0889(0x112),new Map()),_0x16a6fe(this,_0x1e0889(0x17a),new _0x2c9f36[(_0x1e0889(0x19a))]()),_0x16a6fe(this,_0x1e0889(0x1a2),this[_0x1e0889(0x17a)]['asObservable']());}['getCodeConfig'](_0x4fe381,_0x2dadff){const _0x7c2679=_0x4a7827;return _0x39da7a(this[_0x7c2679(0x112)][_0x7c2679(0x1c4)](_0x4fe381))[_0x7c2679(0x139)][_0x2dadff];}['setCodeConfig'](_0xd1ab27,_0x1c715e,_0x1363c7){const _0x47338a=_0x4a7827;this[_0x47338a(0x169)](_0xd1ab27,_0x1c715e,_0x1d8d2c(this[_0x47338a(0x112)][_0x47338a(0x1c4)](_0xd1ab27),_0x1c715e,_0x1363c7));}['removeCode'](_0x429735,_0x15fb3c){const _0x4c45b5=_0x4a7827;this[_0x4c45b5(0x169)](_0x429735,_0x15fb3c,_0x160fa5(this['_resources'][_0x4c45b5(0x1c4)](_0x429735),_0x15fb3c));}[_0x4a7827(0x14d)](_0x437d64){const _0x18cf0f=_0x4a7827;return _0x39da7a(this[_0x18cf0f(0x112)][_0x18cf0f(0x1c4)](_0x437d64));}[_0x4a7827(0x1c1)](_0x4c9fb8,_0x3e9d27){const _0x5a5f64=_0x4a7827;this['_resources'][_0x5a5f64(0x192)](_0x4c9fb8,_0x39da7a(_0x3e9d27)),this[_0x5a5f64(0x17a)]['next']({'unitId':_0x4c9fb8});}[_0x4a7827(0x13d)](_0x561d0f){const _0x47c7e8=_0x4a7827;this[_0x47c7e8(0x112)]['delete'](_0x561d0f),this['_change$'][_0x47c7e8(0x12d)]({'unitId':_0x561d0f});}['dispose'](){const _0x52c349=_0x4a7827;super['dispose'](),this[_0x52c349(0x112)]['clear'](),this[_0x52c349(0x17a)]['complete']();}['_setResource'](_0x51f1a7,_0x11c048,_0x476b76){const _0x2138ad=_0x4a7827;this[_0x2138ad(0x112)][_0x2138ad(0x192)](_0x51f1a7,_0x476b76),this[_0x2138ad(0x17a)][_0x2138ad(0x12d)]({'unitId':_0x51f1a7,'blockId':_0x11c048});}};let _0x22e2e8={'id':_0x4a7827(0x162),'type':_0x4a55e0[_0x4a7827(0x148)][_0x4a7827(0x126)],'handler':_0x321b6d=>{const _0x1e6f63=_0x4a7827;var _0x176e66;if((0x0,_0x29cbcb[_0x1e6f63(0x19b)])(_0xb81a21(_0x321b6d)))return!0x1;let _0x3a6080=_0x13f3d8(_0x321b6d);if(_0x3a6080)return _0x321b6d[_0x1e6f63(0x1c4)](_0x4a55e0[_0x1e6f63(0x147)])[_0x1e6f63(0x144)](_0x110e96['id'],{'startOffset':_0x3a6080[_0x1e6f63(0x14c)],'endOffset':_0x3a6080['endOffset'],'insertionMode':_0x1e6f63(0x178),'unitId':_0x3a6080['unitId']});let _0x599787=_0x3a2579(_0x321b6d);if(!_0x599787)return!0x1;let _0x434d98=(_0x176e66=_0x321b6d[_0x1e6f63(0x1c4)](_0x4a55e0[_0x1e6f63(0x188)])[_0x1e6f63(0x149)](_0x4a55e0[_0x1e6f63(0x1b3)][_0x1e6f63(0x1cc)]))==null?void 0x0:_0x176e66['getBody'](),_0x56f069=_0x434d98?(0x0,_0x4a55e0[_0x1e6f63(0x1a1)])(_0x434d98,_0x599787):_0x599787['startIndex']+0x1;return _0x321b6d[_0x1e6f63(0x1c4)](_0x4a55e0[_0x1e6f63(0x147)])[_0x1e6f63(0x144)](_0x110e96['id'],{'startOffset':_0x56f069,'endOffset':_0x56f069});}},_0x31613e={'id':_0x4a7827(0x172),'type':_0x4a55e0[_0x4a7827(0x148)][_0x4a7827(0x126)],'handler':()=>!0x0},_0x110e96={'id':_0x4a7827(0x15e),'type':_0x4a55e0[_0x4a7827(0x148)]['COMMAND'],'handler':(_0x3ce834,_0x4c281c)=>{const _0x1ca1b5=_0x4a7827;var _0x46214f;let _0x21673e=_0x5e3171(_0x3ce834,_0x4c281c==null?void 0x0:_0x4c281c[_0x1ca1b5(0x17b)]);if(!_0x21673e)return!0x1;let _0x58a63a=_0xb81a21(_0x3ce834);if((0x0,_0x29cbcb[_0x1ca1b5(0x19b)])(_0x58a63a))return!0x1;let _0xf724cd=_0x21673e[_0x1ca1b5(0x186)][_0x1ca1b5(0x14d)](_0x21673e['unitId']),_0x5cd546=_0x5d74e6(_0x4c281c,_0x58a63a),_0x25bf75=_0x146bef(_0x21673e[_0x1ca1b5(0x1a6)],_0x5cd546);if(_0x25bf75){if(_0x25bf75[_0x1ca1b5(0x157)]!==_0x4a55e0[_0x1ca1b5(0x104)][_0x1ca1b5(0x163)])return!0x1;let _0x7dd5c5=_0x19857f({'blockId':_0x25bf75[_0x1ca1b5(0x167)],'documentData':_0x21673e[_0x1ca1b5(0x1a6)],'metadata':_0xf724cd});if(!_0x7dd5c5)return!0x1;let _0xa43cd1=_0x5c66ba(_0x21673e[_0x1ca1b5(0x1c8)],_0x21673e['selectionManager'],_0x21673e[_0x1ca1b5(0x17b)],_0x21673e[_0x1ca1b5(0x1a6)],_0x7dd5c5['nextDocumentData'],_0x110e96['id'],_0x7dd5c5[_0x1ca1b5(0x12e)]);return _0xa43cd1&&_0x7dd5c5['nextMetadata']&&_0x21673e[_0x1ca1b5(0x186)][_0x1ca1b5(0x1c1)](_0x21673e[_0x1ca1b5(0x17b)],_0x7dd5c5[_0x1ca1b5(0x108)]),_0xa43cd1;}let _0x3e9c9b=(_0x46214f=_0x4c281c==null?void 0x0:_0x4c281c[_0x1ca1b5(0x167)])==null?(0x0,_0x4a55e0['generateRandomId'])(0x6):_0x46214f,_0x4a5642;try{_0x4a5642=_0x3c3262({'blockId':_0x3e9c9b,'config':_0x4c281c==null?void 0x0:_0x4c281c[_0x1ca1b5(0x115)],'documentData':_0x21673e[_0x1ca1b5(0x1a6)],'endOffset':_0x5cd546==null?void 0x0:_0x5cd546['endOffset'],'insertionMode':_0x4c281c==null?void 0x0:_0x4c281c['insertionMode'],'metadata':_0xf724cd,'startOffset':_0x5cd546==null?void 0x0:_0x5cd546['startOffset']});}catch(_0x5af7b9){if(_0x5af7b9 instanceof _0x45a58a)return!0x1;throw _0x5af7b9;}let _0xdaba04=_0x5c66ba(_0x21673e[_0x1ca1b5(0x1c8)],_0x21673e[_0x1ca1b5(0x182)],_0x21673e[_0x1ca1b5(0x17b)],_0x21673e[_0x1ca1b5(0x1a6)],_0x4a5642[_0x1ca1b5(0x168)],_0x110e96['id'],_0x4a5642[_0x1ca1b5(0x12e)]);return _0xdaba04&&_0x4a5642[_0x1ca1b5(0x108)]&&_0x21673e['model']['deserialize'](_0x21673e[_0x1ca1b5(0x17b)],_0x4a5642[_0x1ca1b5(0x108)]),_0xdaba04;}},_0x2994f9={'id':_0x4a7827(0x13a),'type':_0x4a55e0[_0x4a7827(0x148)]['COMMAND'],'handler':(_0x4d9807,_0x2e3b72)=>{const _0x406276=_0x4a7827;if(!_0x2e3b72)return!0x1;let _0x54b56b=_0x5e3171(_0x4d9807,_0x2e3b72[_0x406276(0x17b)]);if(!_0x54b56b)return!0x1;let _0x14c83b=_0x3ba210({'blockId':_0x2e3b72['blockId'],'config':_0x2e3b72[_0x406276(0x115)],'documentData':_0x54b56b[_0x406276(0x1a6)],'metadata':_0x54b56b[_0x406276(0x186)][_0x406276(0x14d)](_0x54b56b[_0x406276(0x17b)])});return _0x14c83b[_0x406276(0x108)]&&_0x54b56b['model'][_0x406276(0x1c1)](_0x54b56b[_0x406276(0x17b)],_0x14c83b['nextMetadata']),!0x0;}},_0x53b1d7={'id':_0x4a7827(0x11a),'type':_0x4a55e0[_0x4a7827(0x148)][_0x4a7827(0x126)],'handler':(_0x8819fd,_0x4f7580)=>_0x5d7fb3[_0x4a7827(0x175)](_0x8819fd,_0x4f7580)},_0x5d7fb3={'id':_0x4a7827(0x174),'type':_0x4a55e0[_0x4a7827(0x148)]['COMMAND'],'handler':(_0xa7eaff,_0x1d2249)=>{const _0x118610=_0x4a7827;if(!_0x1d2249)return!0x1;let _0x2980b7=_0x5e3171(_0xa7eaff,_0x1d2249==null?void 0x0:_0x1d2249[_0x118610(0x17b)]);if(!_0x2980b7)return!0x1;let _0x27d06e=_0x19857f({'blockId':_0x1d2249[_0x118610(0x167)],'documentData':_0x2980b7[_0x118610(0x1a6)],'metadata':_0x2980b7[_0x118610(0x186)]['serialize'](_0x2980b7[_0x118610(0x17b)])});if(!_0x27d06e)return!0x1;let _0x679dd1=_0x5c66ba(_0x2980b7[_0x118610(0x1c8)],_0x2980b7[_0x118610(0x182)],_0x2980b7['unitId'],_0x2980b7['previousDocumentData'],_0x27d06e[_0x118610(0x168)],_0x5d7fb3['id'],_0x27d06e[_0x118610(0x12e)]);return _0x679dd1&&_0x27d06e['nextMetadata']&&_0x2980b7[_0x118610(0x186)][_0x118610(0x1c1)](_0x2980b7[_0x118610(0x17b)],_0x27d06e[_0x118610(0x108)]),_0x679dd1;}},_0x25c374={'id':_0x4a7827(0x1c2),'type':_0x4a55e0['CommandType'][_0x4a7827(0x126)],'handler':(_0x5ed935,_0x123c59)=>{const _0x160c77=_0x4a7827;if(!_0x123c59)return!0x1;let _0x17dad2=_0x5e3171(_0x5ed935,_0x123c59==null?void 0x0:_0x123c59[_0x160c77(0x17b)]);if(!_0x17dad2)return!0x1;let _0x51d3cc=_0x48a6f4({'blockId':_0x123c59[_0x160c77(0x167)],'documentData':_0x17dad2[_0x160c77(0x1a6)],'metadata':_0x17dad2[_0x160c77(0x186)][_0x160c77(0x14d)](_0x17dad2[_0x160c77(0x17b)])});if(!_0x51d3cc)return!0x1;let _0x3afc73=_0x5c66ba(_0x17dad2[_0x160c77(0x1c8)],_0x17dad2['selectionManager'],_0x17dad2['unitId'],_0x17dad2[_0x160c77(0x1a6)],_0x51d3cc[_0x160c77(0x168)],_0x25c374['id'],_0x51d3cc[_0x160c77(0x12e)]);return _0x3afc73&&_0x51d3cc['nextMetadata']&&_0x17dad2[_0x160c77(0x186)][_0x160c77(0x1c1)](_0x17dad2[_0x160c77(0x17b)],_0x51d3cc[_0x160c77(0x108)]),_0x3afc73;}},_0x4ed235={'id':_0x4a7827(0x19f),'type':_0x4a55e0['CommandType'][_0x4a7827(0x126)],'handler':(_0x18061b,_0x38ec1c)=>{const _0x34740a=_0x4a7827;var _0x22307c,_0x5d25eb;let _0x29aad6=_0x5e3171(_0x18061b,_0x38ec1c==null?void 0x0:_0x38ec1c['unitId']);if(!_0x29aad6)return!0x1;let _0x20ced7=(_0x22307c=_0x38ec1c==null?void 0x0:_0x38ec1c['cursorOffset'])==null?(_0x5d25eb=_0xb81a21(_0x18061b))==null?void 0x0:_0x5d25eb[_0x34740a(0x14c)]:_0x22307c;if(_0x20ced7==null)return!0x1;let _0x4faaf6=_0x30eceb({'cursorOffset':_0x20ced7,'documentData':_0x29aad6[_0x34740a(0x1a6)],'paragraphStartIndex':_0x38ec1c==null?void 0x0:_0x38ec1c[_0x34740a(0x16c)]});return _0x4faaf6?_0x5c66ba(_0x29aad6['commandService'],_0x29aad6[_0x34740a(0x182)],_0x29aad6['unitId'],_0x29aad6[_0x34740a(0x1a6)],_0x4faaf6[_0x34740a(0x168)],_0x4ed235['id'],_0x4faaf6[_0x34740a(0x12e)]):!0x1;}};function _0x5e3171(_0x3de580,_0x28f530){const _0x375c86=_0x4a7827;let _0x30b9e7=_0x3de580[_0x375c86(0x1c4)](_0x4a55e0[_0x375c86(0x188)]),_0x558aa7=_0x28f530?_0x30b9e7[_0x375c86(0x194)](_0x28f530,_0x4a55e0['UniverInstanceType']['UNIVER_DOC']):_0x30b9e7[_0x375c86(0x149)](_0x4a55e0[_0x375c86(0x1b3)]['UNIVER_DOC']);return _0x558aa7?{'commandService':_0x3de580[_0x375c86(0x1c4)](_0x4a55e0['ICommandService']),'model':_0x3de580[_0x375c86(0x1c4)](_0x264ef2),'previousDocumentData':_0x558aa7[_0x375c86(0x15a)](),'selectionManager':_0x3de580['get'](_0x29cbcb[_0x375c86(0x17d)]),'unitId':_0x558aa7[_0x375c86(0x1cb)]()}:null;}function _0xb81a21(_0x4f8181){const _0x413105=_0x4a7827;var _0x593cd9;return(_0x593cd9=_0x4f8181[_0x413105(0x1c4)](_0x29cbcb['DocSelectionManagerService'])['getTextRanges']())==null?void 0x0:_0x593cd9[0x0];}function _0x5d74e6(_0x47f856,_0x57c557){const _0xfe7eb0=_0x4a7827;var _0x525f75,_0x56df80;let _0x4e0e1f=(_0x525f75=_0x47f856==null?void 0x0:_0x47f856['startOffset'])==null?_0x57c557==null?void 0x0:_0x57c557[_0xfe7eb0(0x14c)]:_0x525f75,_0x729e76=(_0x56df80=_0x47f856==null?void 0x0:_0x47f856['endOffset'])==null?_0x57c557==null?void 0x0:_0x57c557[_0xfe7eb0(0x10f)]:_0x56df80;if(!(_0x4e0e1f==null||_0x729e76==null))return{'endOffset':Math[_0xfe7eb0(0x183)](_0x4e0e1f,_0x729e76),'startOffset':Math['min'](_0x4e0e1f,_0x729e76)};}function _0x146bef(_0x563ca9,_0x4aa054){const _0x162195=_0x4a7827;var _0x43f141;if(!_0x4aa054)return;let _0x3014f0=_0x1e54eb(_0x4aa054);return(_0x43f141=_0x563ca9[_0x162195(0x119)])==null||(_0x43f141=_0x43f141['blockRanges'])==null?void 0x0:_0x43f141['find'](_0x1f3595=>{const _0x5551d3=_0x162195;let _0x2ff5c4=(0x0,_0x4a55e0[_0x5551d3(0x1a5)])(_0x1f3595);return _0x4aa054[_0x5551d3(0x14c)]===_0x4aa054[_0x5551d3(0x10f)]?(0x0,_0x4a55e0[_0x5551d3(0x19e)])(_0x2ff5c4,_0x3014f0):(0x0,_0x4a55e0[_0x5551d3(0x18a)])(_0x2ff5c4,_0x3014f0);});}function _0x1e54eb(_0x44ee0d){const _0x4b1b8e=_0x4a7827;return _0x44ee0d[_0x4b1b8e(0x14c)]===_0x44ee0d[_0x4b1b8e(0x10f)]?_0x44ee0d[_0x4b1b8e(0x14c)]:_0x44ee0d[_0x4b1b8e(0x14c)]+0x1;}function _0x13f3d8(_0x1dd9ad){const _0x3ecd9e=_0x4a7827;var _0x44be57;let _0x563e06=(_0x44be57=_0x1dd9ad[_0x3ecd9e(0x1c4)](_0x4a55e0[_0x3ecd9e(0x188)])[_0x3ecd9e(0x149)](_0x4a55e0['UniverInstanceType']['UNIVER_DOC']))==null?void 0x0:_0x44be57[_0x3ecd9e(0x1cb)]();try{return _0x1dd9ad[_0x3ecd9e(0x1c4)](_0x29cbcb[_0x3ecd9e(0x11d)])[_0x3ecd9e(0x145)](_0x563e06);}catch{return null;}}function _0x3a2579(_0x1b34e4){const _0x32d046=_0x4a7827;var _0x47cd57,_0xf36ae2,_0x1cc602;let _0x91e081=_0xb81a21(_0x1b34e4);if(!_0x91e081)return null;let _0xe83ab1=_0x1b34e4[_0x32d046(0x1c4)](_0x4a55e0[_0x32d046(0x188)])[_0x32d046(0x149)](_0x4a55e0[_0x32d046(0x1b3)]['UNIVER_DOC']),_0x34c5ef=_0xe83ab1==null?void 0x0:_0xe83ab1[_0x32d046(0x105)]();return _0x34c5ef?(_0x47cd57=_0x4a55e0[_0x32d046(0x14b)][_0x32d046(0x196)][_0x32d046(0x14f)](_0x91e081,(_0xf36ae2=_0x34c5ef['paragraphs'])==null?[]:_0xf36ae2,(_0x1cc602=_0x34c5ef['dataStream'])==null?'':_0x1cc602)[0x0])==null?null:_0x47cd57:null;}function _0x5ee270(_0x30973e,_0x51492f){const _0x52ba79=_0x4a7827;let _0x415bf0=_0x30973e['body'],_0x3c9a26=_0x51492f[_0x52ba79(0x119)],_0x29811e=(0x0,_0x4a55e0['getSingleDataStreamChange'])(_0x415bf0,_0x3c9a26);return[_0x29811e&&_0x3c9a26?_0x43aa93(_0x3c9a26,_0x29811e):null,_0x29811e?null:_0x2c962f(_0x415bf0,_0x3c9a26)][_0x52ba79(0x13e)](Boolean)['reduce']((_0x5c7f31,_0xc118f3)=>_0x4a55e0[_0x52ba79(0x1a4)]['compose'](_0x5c7f31,_0xc118f3),null);}function _0x43aa93(_0x59488d,_0x1fe114){const _0x4adbd2=_0x4a7827;let _0x4549cd=new _0x4a55e0[(_0x4adbd2(0x150))]();return _0x4549cd[_0x4adbd2(0x16b)](_0x1fe114[_0x4adbd2(0x151)]),_0x1fe114[_0x4adbd2(0x17f)]>0x0&&_0x4549cd[_0x4adbd2(0x10d)](_0x1fe114[_0x4adbd2(0x17f)],(0x0,_0x4a55e0[_0x4adbd2(0x1af)])(_0x59488d,_0x1fe114[_0x4adbd2(0x151)],_0x1fe114[_0x4adbd2(0x151)]+_0x1fe114['insertLength'],!0x1)),_0x1fe114[_0x4adbd2(0x15c)]>0x0&&_0x4549cd[_0x4adbd2(0x120)](_0x1fe114[_0x4adbd2(0x15c)]),_0x4a55e0[_0x4adbd2(0x1a4)][_0x4adbd2(0x101)]()[_0x4adbd2(0x1ad)](_0x4549cd['serialize'](),[_0x4adbd2(0x119)]);}function _0x2c962f(_0x3937a2,_0x11cca8){const _0x424d68=_0x4a7827;let _0x17c35e=[],_0x23dd5c=_0x3937a2?_0x50028e(_0x3937a2):void 0x0,_0x4c981c=_0x11cca8?_0x50028e(_0x11cca8):void 0x0;for(let _0x2c4e60 of _0x2c3a4a)_0x8caae5(_0x4a55e0[_0x424d68(0x1a4)]['getInstance'](),[_0x424d68(0x119),_0x2c4e60],_0x23dd5c==null?void 0x0:_0x23dd5c[_0x2c4e60],_0x4c981c==null?void 0x0:_0x4c981c[_0x2c4e60],_0x17c35e);return _0x17c35e['reduce']((_0x150c1a,_0x2441a1)=>_0x4a55e0['JSONX']['compose'](_0x150c1a,_0x2441a1),null);}let _0x2c3a4a=[_0x4a7827(0x180),_0x4a7827(0x122),_0x4a7827(0x155),_0x4a7827(0x1bc),_0x4a7827(0x15f),'customBlocks',_0x4a7827(0x1aa),'customDecorations',_0x4a7827(0x136)];function _0x50028e(_0x39dba4){return _0x39dba4;}function _0x8caae5(_0xba5cb6,_0x3391cb,_0x52a50f,_0x560dfe,_0x475ff2){const _0x3b2dc4=_0x4a7827;if(!_0x4a2afd(_0x52a50f,_0x560dfe)){if(_0x52a50f==null){_0x475ff2[_0x3b2dc4(0x170)](_0xba5cb6[_0x3b2dc4(0x1b0)](_0x3391cb,_0x560dfe));return;}if(_0x560dfe==null){_0x475ff2[_0x3b2dc4(0x170)](_0xba5cb6[_0x3b2dc4(0x1b5)](_0x3391cb,_0x52a50f));return;}if(Array[_0x3b2dc4(0x159)](_0x52a50f)&&Array[_0x3b2dc4(0x159)](_0x560dfe)){_0x5712b8(_0xba5cb6,_0x3391cb,_0x52a50f,_0x560dfe,_0x475ff2);return;}if(_0x3ae277(_0x52a50f)&&_0x3ae277(_0x560dfe)){new Set([...Object[_0x3b2dc4(0x1c7)](_0x52a50f),...Object[_0x3b2dc4(0x1c7)](_0x560dfe)])[_0x3b2dc4(0x16d)](_0x3b08e3=>{_0x8caae5(_0xba5cb6,[..._0x3391cb,_0x3b08e3],_0x52a50f[_0x3b08e3],_0x560dfe[_0x3b08e3],_0x475ff2);});return;}_0x475ff2[_0x3b2dc4(0x170)](_0xba5cb6[_0x3b2dc4(0x11c)](_0x3391cb,_0x52a50f,_0x560dfe));}}function _0x5712b8(_0x3ebb2f,_0x18b9b8,_0x44d155,_0x3fc292,_0x48ca8e){const _0xef9601=_0x4a7827;if(_0x44d155[_0xef9601(0x128)]===_0x3fc292[_0xef9601(0x128)]){_0x44d155[_0xef9601(0x16d)]((_0x57c07e,_0xa58d55)=>_0x8caae5(_0x3ebb2f,[..._0x18b9b8,_0xa58d55],_0x57c07e,_0x3fc292[_0xa58d55],_0x48ca8e));return;}let _0x4551ca=0x0;for(;_0x4551ca<_0x44d155[_0xef9601(0x128)]&&_0x4551ca<_0x3fc292[_0xef9601(0x128)]&&_0x4a2afd(_0x44d155[_0x4551ca],_0x3fc292[_0x4551ca]);)_0x4551ca++;let _0x17957e=_0x44d155[_0xef9601(0x128)]-0x1,_0x9bc140=_0x3fc292[_0xef9601(0x128)]-0x1;for(;_0x17957e>=_0x4551ca&&_0x9bc140>=_0x4551ca&&_0x4a2afd(_0x44d155[_0x17957e],_0x3fc292[_0x9bc140]);)_0x17957e--,_0x9bc140--;for(let _0x3535a7=_0x17957e;_0x3535a7>=_0x4551ca;_0x3535a7--)_0x48ca8e['push'](_0x3ebb2f[_0xef9601(0x1b5)]([..._0x18b9b8,_0x3535a7],_0x44d155[_0x3535a7]));for(let _0x5efbcd=_0x4551ca;_0x5efbcd<=_0x9bc140;_0x5efbcd++)_0x48ca8e[_0xef9601(0x170)](_0x3ebb2f['insertOp']([..._0x18b9b8,_0x5efbcd],_0x3fc292[_0x5efbcd]));}function _0x3ae277(_0x401e2b){const _0x12ca2e=_0x4a7827;return typeof _0x401e2b==_0x12ca2e(0x114)&&!!_0x401e2b&&!Array['isArray'](_0x401e2b);}function _0x4a2afd(_0x1b8d20,_0x375326){const _0x21edaf=_0x4a7827;return JSON[_0x21edaf(0x173)](_0x1b8d20)===JSON['stringify'](_0x375326);}function _0x5c66ba(_0x5130ab,_0x400eee,_0x31cf61,_0x921653,_0x4d0bf5,_0x57b083,_0x5acdae){const _0x17670d=_0x4a7827;let _0x23320f=_0x5ee270(_0x921653,_0x4d0bf5);return _0x23320f?!!_0x5130ab[_0x17670d(0x144)](_0x29cbcb[_0x17670d(0x164)]['id'],{'unitId':_0x31cf61,'actions':_0x23320f,'textRanges':[{'startOffset':_0x5acdae,'endOffset':_0x5acdae,'collapsed':!0x0}],'isEditing':!0x1,'trigger':_0x57b083}):(_0x400eee[_0x17670d(0x199)]([{'startOffset':_0x5acdae,'endOffset':_0x5acdae}],{'unitId':_0x31cf61,'subUnitId':_0x31cf61},!0x1),!0x0);}let _0x2996e6=_0x4a7827(0x195);var _0x1cf644=_0x4a7827(0x18b),_0x4d27e4=_0x4a7827(0x12c);let _0x2f5e74={};function _0x10975b(_0x152d34,_0x37d5fe){return function(_0x52f3cd,_0x1c4770){_0x37d5fe(_0x52f3cd,_0x1c4770,_0x152d34);};}function _0x34ccf5(_0x2b2e0c,_0x534f3c,_0x101fac,_0x45e4ab){const _0x3d22a4=_0x4a7827;var _0x398382=arguments['length'],_0x39d289=_0x398382<0x3?_0x534f3c:_0x45e4ab===null?_0x45e4ab=Object[_0x3d22a4(0x106)](_0x534f3c,_0x101fac):_0x45e4ab,_0x41398d;if(typeof Reflect==_0x3d22a4(0x114)&&typeof Reflect['decorate']==_0x3d22a4(0x16a))_0x39d289=Reflect['decorate'](_0x2b2e0c,_0x534f3c,_0x101fac,_0x45e4ab);else{for(var _0x2051c5=_0x2b2e0c[_0x3d22a4(0x128)]-0x1;_0x2051c5>=0x0;_0x2051c5--)(_0x41398d=_0x2b2e0c[_0x2051c5])&&(_0x39d289=(_0x398382<0x3?_0x41398d(_0x39d289):_0x398382>0x3?_0x41398d(_0x534f3c,_0x101fac,_0x39d289):_0x41398d(_0x534f3c,_0x101fac))||_0x39d289);}return _0x398382>0x3&&_0x39d289&&Object[_0x3d22a4(0x113)](_0x534f3c,_0x101fac,_0x39d289),_0x39d289;}let _0x32011a=class extends _0x4a55e0[_0x4a7827(0x12a)]{constructor(_0x55b815,_0x123ac9){const _0x4d69db=_0x4a7827;super(),this[_0x4d69db(0x11e)]=_0x55b815,this[_0x4d69db(0x109)]=_0x123ac9,this['_initResource']();}[_0x4a7827(0x198)](){const _0x620424=_0x4a7827;this[_0x620424(0x116)](this['_resourceManagerService'][_0x620424(0x131)]({'pluginName':_0x2996e6,'businesses':[_0x4a55e0[_0x620424(0x1b3)][_0x620424(0x1cc)]],'toJson':_0x10185f=>JSON[_0x620424(0x173)](this[_0x620424(0x109)][_0x620424(0x14d)](_0x10185f)),'parseJson':_0x386762=>_0x39da7a(JSON[_0x620424(0x141)](_0x386762)),'onLoad':(_0x440c85,_0x562a77)=>this[_0x620424(0x109)][_0x620424(0x1c1)](_0x440c85,_0x562a77),'onUnLoad':_0x2f0a4f=>this[_0x620424(0x109)][_0x620424(0x13d)](_0x2f0a4f)}));}};_0x32011a=_0x34ccf5([_0x10975b(0x0,_0x4a55e0['IResourceManagerService']),_0x10975b(0x1,(0x0,_0x4a55e0[_0x4a7827(0x1ce)])(_0x264ef2))],_0x32011a);let _0x537bc3=class extends _0x4a55e0[_0x4a7827(0x1b2)]{constructor(_0x338c2f=_0x2f5e74,_0x63e216,_0x41ec12,_0x18e5d1){const _0x891d35=_0x4a7827;super(),this[_0x891d35(0x19c)]=_0x338c2f,this['_injector']=_0x63e216,this[_0x891d35(0x16e)]=_0x41ec12,this['_configService']=_0x18e5d1;let {..._0x2274e1}=(0x0,_0x4a55e0[_0x891d35(0x189)])({},_0x2f5e74,this[_0x891d35(0x19c)]);this[_0x891d35(0x18d)]['setConfig'](_0x891d35(0x193),_0x2274e1);}[_0x4a7827(0x10a)](){const _0x5a7893=_0x4a7827;this[_0x5a7893(0x10e)][_0x5a7893(0x102)]([_0x264ef2]),this[_0x5a7893(0x10e)]['add']([_0x32011a]),this[_0x5a7893(0x10e)][_0x5a7893(0x1c4)](_0x264ef2),this['_injector'][_0x5a7893(0x1c4)](_0x32011a),[_0x110e96,_0x22e2e8,_0x2994f9,_0x5d7fb3,_0x25c374,_0x53b1d7,_0x4ed235,_0x31613e]['forEach'](_0x248e2f=>this[_0x5a7893(0x116)](this[_0x5a7893(0x16e)][_0x5a7893(0x1b8)](_0x248e2f)));}};_0x16a6fe(_0x537bc3,_0x4a7827(0x14e),_0x2996e6),_0x16a6fe(_0x537bc3,_0x4a7827(0x13f),_0x1cf644),_0x16a6fe(_0x537bc3,_0x4a7827(0x1c6),_0x4d27e4),_0x16a6fe(_0x537bc3,'type',_0x4a55e0['UniverInstanceType'][_0x4a7827(0x1cc)]),_0x537bc3=_0x34ccf5([(0x0,_0x4a55e0[_0x4a7827(0x176)])(_0x251453[_0x4a7827(0x15b)],_0x29cbcb['UniverDocsPlugin']),_0x10975b(0x1,(0x0,_0x4a55e0[_0x4a7827(0x1ce)])(_0x4a55e0[_0x4a7827(0x14a)])),_0x10975b(0x2,_0x4a55e0[_0x4a7827(0x147)]),_0x10975b(0x3,_0x4a55e0['IConfigService'])],_0x537bc3),_0x28bc3e[_0x4a7827(0x197)]=_0x2996e6,_0x28bc3e[_0x4a7827(0x171)]=_0x4ed235,_0x28bc3e['DocsCodeConsumeBoundaryDeleteCommand']=_0x31613e,_0x28bc3e[_0x4a7827(0x18e)]=_0x22e2e8,_0x28bc3e[_0x4a7827(0x10b)]=_0x110e96,_0x28bc3e[_0x4a7827(0x160)]=_0x264ef2,_0x28bc3e[_0x4a7827(0x166)]=_0x25c374,_0x28bc3e[_0x4a7827(0x1c0)]=_0x5d7fb3,_0x28bc3e['DocsCodeUpdateCommand']=_0x2994f9,Object[_0x4a7827(0x113)](_0x28bc3e,_0x4a7827(0x18f),{'enumerable':!0x0,'get':function(){return _0x537bc3;}}),_0x28bc3e[_0x4a7827(0x124)]=_0x30eceb,_0x28bc3e[_0x4a7827(0x1ae)]=_0x3f4ad1,_0x28bc3e[_0x4a7827(0x12f)]=_0x31e9d8;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/docs-code",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.3",
4
4
  "private": false,
5
5
  "description": "Code block model integration for Univer Docs.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -61,15 +61,15 @@
61
61
  "rxjs": ">=7.0.0"
62
62
  },
63
63
  "dependencies": {
64
- "@univerjs-pro/license": "1.0.0-alpha.1",
65
- "@univerjs/core": "1.0.0-alpha.1",
66
- "@univerjs/docs": "1.0.0-alpha.1"
64
+ "@univerjs-pro/license": "1.0.0-alpha.3",
65
+ "@univerjs/core": "1.0.0-alpha.3",
66
+ "@univerjs/docs": "1.0.0-alpha.3"
67
67
  },
68
68
  "devDependencies": {
69
69
  "rxjs": "7.8.2",
70
70
  "typescript": "^6.0.3",
71
- "vitest": "^4.1.9",
72
- "@univerjs-infra/shared": "1.0.0-alpha.1"
71
+ "vitest": "^4.1.10",
72
+ "@univerjs-infra/shared": "1.0.0-alpha.3"
73
73
  },
74
74
  "scripts": {
75
75
  "test": "vitest run",