@univerjs-pro/collaboration-client 0.4.2 → 0.5.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -0
- package/lib/cjs/locale/fa-IR.js +1 -0
- package/lib/cjs/locale/ru-RU.js +1 -0
- package/lib/cjs/locale/vi-VN.js +1 -0
- package/lib/cjs/locale/zh-CN.js +1 -0
- package/lib/cjs/locale/zh-TW.js +1 -0
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -0
- package/lib/es/locale/fa-IR.js +1 -0
- package/lib/es/locale/ru-RU.js +1 -0
- package/lib/es/locale/vi-VN.js +1 -0
- package/lib/es/locale/zh-CN.js +1 -0
- package/lib/es/locale/zh-TW.js +1 -0
- package/lib/types/index.d.ts +890 -34
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -0
- package/lib/umd/locale/fa-IR.js +1 -0
- package/lib/umd/locale/ru-RU.js +1 -0
- package/lib/umd/locale/vi-VN.js +1 -0
- package/lib/umd/locale/zh-CN.js +1 -0
- package/lib/umd/locale/zh-TW.js +1 -0
- package/package.json +39 -31
- package/lib/locale/en-US.json +0 -38
- package/lib/locale/fa-IR.json +0 -38
- package/lib/locale/ru-RU.json +0 -38
- package/lib/locale/vi-VN.json +0 -38
- package/lib/locale/zh-CN.json +0 -38
- package/lib/locale/zh-TW.json +0 -38
- package/lib/types/config/config.d.ts +0 -48
- package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +0 -23
- package/lib/types/controllers/collab-cursor/__tests__/serialize-text-ranges.spec.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/__tests__/sheet-collab-cursor.controller.spec.d.ts +0 -1
- package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +0 -22
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +0 -38
- package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +0 -24
- package/lib/types/controllers/collab-cursor/serialize-text-ranges.d.ts +0 -3
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +0 -39
- package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +0 -21
- package/lib/types/controllers/collab-status/collab-status.controller.d.ts +0 -18
- package/lib/types/controllers/collaboration/__tests__/collaboration.controller.spec.d.ts +0 -4
- package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -0
- package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +0 -54
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +0 -91
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +0 -303
- package/lib/types/controllers/collaboration/collaboration.controller.d.ts +0 -24
- package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +0 -18
- package/lib/types/controllers/collaboration/utils/empty.d.ts +0 -2
- package/lib/types/controllers/config.schema.d.ts +0 -29
- package/lib/types/controllers/data-loader/__tests__/data-loader.controller.spec.d.ts +0 -1
- package/lib/types/controllers/data-loader/data-loader.controller.d.ts +0 -22
- package/lib/types/controllers/file-name/file-name.controller.d.ts +0 -12
- package/lib/types/controllers/telemetry.d.ts +0 -11
- package/lib/types/locale/en-US.d.ts +0 -3
- package/lib/types/locale/fa-IR.d.ts +0 -3
- package/lib/types/locale/ru-RU.d.ts +0 -3
- package/lib/types/locale/vi-VN.d.ts +0 -3
- package/lib/types/locale/zh-CN.d.ts +0 -39
- package/lib/types/locale/zh-TW.d.ts +0 -3
- package/lib/types/models/cursor.d.ts +0 -30
- package/lib/types/plugin.d.ts +0 -18
- package/lib/types/services/auth-server/auth-server.service.d.ts +0 -10
- package/lib/types/services/auth-server/authz-io-http.service.d.ts +0 -30
- package/lib/types/services/auth-server/domain-request.service.d.ts +0 -6
- package/lib/types/services/auth-server/util.d.ts +0 -1
- package/lib/types/services/collaboration-session/collaboration-session.d.ts +0 -59
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +0 -61
- package/lib/types/services/color-assign/color-assign.service.d.ts +0 -10
- package/lib/types/services/comment/comment.service.d.ts +0 -6
- package/lib/types/services/image-remote/image-io.service.d.ts +0 -34
- package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +0 -13
- package/lib/types/services/local-cache/local-cache.service.d.ts +0 -37
- package/lib/types/services/member/member.service.d.ts +0 -77
- package/lib/types/services/permission/permission.service.d.ts +0 -12
- package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +0 -13
- package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +0 -39
- package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +0 -21
- package/lib/types/services/socket/collaboration-socket.service.d.ts +0 -34
- package/lib/types/services/socket/serialize.d.ts +0 -3
- package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +0 -12
- package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +0 -13
- package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +0 -8
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +0 -19
- package/lib/types/services/url/url.service.d.ts +0 -12
- package/lib/types/services/url/web-url.service.d.ts +0 -10
- package/lib/types/views/components/CollabStatus.d.ts +0 -10
- package/lib/types/views/components/CollabStatus.stories.d.ts +0 -8
- package/lib/types/views/shapes/doc-collab-cursor.d.ts +0 -27
- package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +0 -27
- package/lib/types/views/shapes/text-bubble.shape.d.ts +0 -19
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x17671e=_0x35f6;(function(_0x1cf9c5,_0x40e71c){const _0x24d5b3=_0x35f6,_0x36961b=_0x1cf9c5();while(!![]){try{const _0x375c21=parseInt(_0x24d5b3(0x3f9))/0x1*(-parseInt(_0x24d5b3(0x1df))/0x2)+-parseInt(_0x24d5b3(0x276))/0x3*(-parseInt(_0x24d5b3(0x57e))/0x4)+-parseInt(_0x24d5b3(0x277))/0x5*(parseInt(_0x24d5b3(0x493))/0x6)+-parseInt(_0x24d5b3(0x3d6))/0x7+-parseInt(_0x24d5b3(0x1fc))/0x8*(parseInt(_0x24d5b3(0x566))/0x9)+-parseInt(_0x24d5b3(0x1f2))/0xa+parseInt(_0x24d5b3(0x32c))/0xb;if(_0x375c21===_0x40e71c)break;else _0x36961b['push'](_0x36961b['shift']());}catch(_0x2475b1){_0x36961b['push'](_0x36961b['shift']());}}}(_0x15d4,0x1cb17));var Mn=Object[_0x17671e(0x545)],An=(_0x51478d,_0x3e14bb,_0x4d4e3a)=>_0x3e14bb in _0x51478d?Mn(_0x51478d,_0x3e14bb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4d4e3a}):_0x51478d[_0x3e14bb]=_0x4d4e3a,I=(_0x31c19a,_0x1c2b98,_0x2f07e6)=>An(_0x31c19a,typeof _0x1c2b98!=_0x17671e(0x421)?_0x1c2b98+'':_0x1c2b98,_0x2f07e6);Object[_0x17671e(0x545)](exports,Symbol['toStringTag'],{'value':_0x17671e(0x1e5)});const a=require('@univerjs/core'),A=require(_0x17671e(0x3ac)),V=require(_0x17671e(0x1dc)),Se=require(_0x17671e(0x568)),te=require('@univerjs/ui'),Q=require(_0x17671e(0x344)),p=require(_0x17671e(0x5e0)),Nn=require('@univerjs/telemetry'),Z=require('@univerjs/docs-ui'),k=require(_0x17671e(0x2db)),K=require('@univerjs/engine-render'),Re=require(_0x17671e(0x28b)),ie=require(_0x17671e(0x3ec)),wt=require(_0x17671e(0x252)),Te=require(_0x17671e(0x416)),z=require(_0x17671e(0x389)),Ln=require(_0x17671e(0x5c1)),Jt=_0x17671e(0x517),xn=_0x17671e(0x63c),Zt=_0x17671e(0x2d1),$n='SEND_CHANGESET_TIMEOUT',jn=0x7d0,Qt=_0x17671e(0x65d),Hn='ws://127.0.0.1:8000/universer-api/comb/connect',en=_0x17671e(0x67a),Bn=0x7530,It='HEARTBEAT_TIMEOUT',tn=0x4e20,kn=0x4e20,nn='RETRY_CONNECTING_MAX_COUNT',Wn=0x3,sn=_0x17671e(0x295),Fn=0x3e8,rn='COLLAB_SUBMIT_CHANGESET_URL',Vn=_0x17671e(0x563),on=_0x17671e(0x3c6),Gn=_0x17671e(0x370);var an=(_0x3d6ef1=>(_0x3d6ef1[_0x3d6ef1['UNDEFINED']=0x0]='UNDEFINED',_0x3d6ef1[_0x3d6ef1['OK']=0x1]='OK',_0x3d6ef1[_0x3d6ef1[_0x17671e(0x596)]=0x2]=_0x17671e(0x596),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x202)]=0x3]=_0x17671e(0x202),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x3ae)]=0x4]='NOT_FOUND',_0x3d6ef1[_0x3d6ef1['UNAUTHENTICATED']=0x5]=_0x17671e(0x5c7),_0x3d6ef1[_0x3d6ef1['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x3d6ef1[_0x3d6ef1[_0x17671e(0x235)]=0x7]=_0x17671e(0x235),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x638)]=0x8]=_0x17671e(0x638),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x61b)]=0x9]=_0x17671e(0x61b),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x564)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3d6ef1[_0x3d6ef1[_0x17671e(0x3f6)]=0x1771]=_0x17671e(0x3f6),_0x3d6ef1[_0x3d6ef1['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]=_0x17671e(0x655),_0x3d6ef1[_0x3d6ef1['ENSURE_SNAPSHOT_EXECUTION']=0x1773]=_0x17671e(0x338),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x582)]=0x1b59]=_0x17671e(0x582),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x658)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3d6ef1[_0x3d6ef1['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x17671e(0x3da),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x413)]=0x1b5c]=_0x17671e(0x413),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x1d6)]=0x1b5d]=_0x17671e(0x1d6),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x65a)]=0x1f41]=_0x17671e(0x65a),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x43a)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3d6ef1[_0x3d6ef1[_0x17671e(0x5bb)]=0x232a]=_0x17671e(0x5bb),_0x3d6ef1[_0x3d6ef1['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x17671e(0x24a),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x4cb)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x3d6ef1[_0x3d6ef1['LICENSE_DISTRO_REJECTED']=0x232d]=_0x17671e(0x245),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x528)]=0x2711]=_0x17671e(0x528),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x672)]=0x2712]=_0x17671e(0x672),_0x3d6ef1[_0x3d6ef1['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x17671e(0x2f2),_0x3d6ef1[_0x3d6ef1[_0x17671e(0x30c)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x3d6ef1[_0x3d6ef1['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x3d6ef1))(an||{}),se=(_0x44ed73=>(_0x44ed73[_0x44ed73[_0x17671e(0x41b)]=0x0]=_0x17671e(0x41b),_0x44ed73[_0x44ed73[_0x17671e(0x4ca)]=0x1]=_0x17671e(0x4ca),_0x44ed73[_0x44ed73[_0x17671e(0x360)]=0x2]=_0x17671e(0x360),_0x44ed73[_0x44ed73[_0x17671e(0x522)]=0x3]=_0x17671e(0x522),_0x44ed73[_0x44ed73[_0x17671e(0x3a6)]=0x4]=_0x17671e(0x3a6),_0x44ed73[_0x44ed73[_0x17671e(0x223)]=-0x1]=_0x17671e(0x223),_0x44ed73))(se||{}),G=(_0x5c4e28=>(_0x5c4e28[_0x5c4e28[_0x17671e(0x1e2)]=0x0]=_0x17671e(0x1e2),_0x5c4e28[_0x5c4e28['HELLO']=0x1]=_0x17671e(0x3a3),_0x5c4e28[_0x5c4e28['JOIN']=0x2]=_0x17671e(0x2fc),_0x5c4e28[_0x5c4e28[_0x17671e(0x398)]=0x3]=_0x17671e(0x398),_0x5c4e28[_0x5c4e28[_0x17671e(0x4eb)]=0x4]=_0x17671e(0x4eb),_0x5c4e28[_0x5c4e28['HEARTBEAT']=0x5]=_0x17671e(0x608),_0x5c4e28[_0x5c4e28[_0x17671e(0x334)]=0x6]=_0x17671e(0x334),_0x5c4e28[_0x5c4e28[_0x17671e(0x223)]=-0x1]='UNRECOGNIZED',_0x5c4e28))(G||{}),Ct=(_0xc58584=>(_0xc58584[_0xc58584[_0x17671e(0x38f)]=0x0]=_0x17671e(0x38f),_0xc58584[_0xc58584['OK']=0x1]='OK',_0xc58584[_0xc58584[_0x17671e(0x533)]=0x2]=_0x17671e(0x533),_0xc58584[_0xc58584[_0x17671e(0x223)]=-0x1]='UNRECOGNIZED',_0xc58584))(Ct||{}),cn=(_0x28f5ef=>(_0x28f5ef[_0x28f5ef[_0x17671e(0x34f)]=0x0]=_0x17671e(0x34f),_0x28f5ef[_0x28f5ef[_0x17671e(0x278)]=0x1]=_0x17671e(0x278),_0x28f5ef[_0x28f5ef[_0x17671e(0x315)]=0x2]=_0x17671e(0x315),_0x28f5ef[_0x28f5ef['UnitEmbedded']=0x3]=_0x17671e(0x48d),_0x28f5ef[_0x28f5ef['UnitSnapshot']=0x4]=_0x17671e(0x244),_0x28f5ef[_0x28f5ef[_0x17671e(0x223)]=-0x1]=_0x17671e(0x223),_0x28f5ef))(cn||{});const ne='collaboration-client.config',Yn={};function ln(_0x4b6071){const _0xcd66f0=_0x17671e;var _0x6f97ce,_0x55b182,_0xb3984c,_0xfd4fde,_0x361fb1;const _0x585e04=_0x4b6071['data'],_0x56b462=JSON['parse'](_0x585e04);switch(_0x56b462['cmd']){case G[_0xcd66f0(0x608)]:case G['HELLO']:{const _0x186399=_0x56b462[_0xcd66f0(0x441)];return{..._0x56b462,'data':_0x186399,'cmd':_0x56b462[_0xcd66f0(0x3f5)]};}case G[_0xcd66f0(0x2fc)]:{const _0x1769a0=_0x56b462[_0xcd66f0(0x350)];return{..._0x56b462,'data':_0x1769a0,'cmd':_0x56b462['cmd']};}case G[_0xcd66f0(0x334)]:{const _0xab713e=_0x56b462[_0xcd66f0(0x356)];switch(_0xab713e[_0xcd66f0(0x3ee)]){case p[_0xcd66f0(0x2d6)][_0xcd66f0(0x2b7)]:return{..._0x56b462,'data':{..._0xab713e,'data':(_0x6f97ce=_0xab713e[_0xcd66f0(0x67b)])==null?void 0x0:_0x6f97ce['cs']},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p[_0xcd66f0(0x2d6)][_0xcd66f0(0x1eb)]:return{..._0x56b462,'data':{..._0xab713e,'data':(_0x55b182=_0xab713e[_0xcd66f0(0x5cb)])==null?void 0x0:_0x55b182['cs']},'cmd':_0x56b462['cmd']};case p[_0xcd66f0(0x2d6)]['NEW_CHANGESETS']:return{..._0x56b462,'data':{..._0xab713e,'data':(_0xb3984c=_0xab713e[_0xcd66f0(0x3c1)])==null?void 0x0:_0xb3984c['cs']},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p['CollaborationEvent']['CHANGESET_REJ']:return{..._0x56b462,'data':{..._0xab713e,'data':(_0xfd4fde=_0xab713e[_0xcd66f0(0x298)])==null?void 0x0:_0xfd4fde['cs']},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p[_0xcd66f0(0x2d6)][_0xcd66f0(0x3b8)]:return{..._0x56b462,'data':{..._0xab713e,'data':(_0x361fb1=_0xab713e[_0xcd66f0(0x291)])==null?void 0x0:_0x361fb1['cs']},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p['CollaborationEvent'][_0xcd66f0(0x2d7)]:return{..._0x56b462,'data':{..._0xab713e,'data':_0xab713e[_0xcd66f0(0x59f)]},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p['CollaborationEvent']['USERS_ENTER']:return{..._0x56b462,'data':{..._0xab713e,'data':_0xab713e[_0xcd66f0(0x65c)]},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p['CollaborationEvent'][_0xcd66f0(0x63a)]:return{..._0x56b462,'data':{..._0xab713e,'data':_0xab713e[_0xcd66f0(0x319)]},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p[_0xcd66f0(0x2d6)][_0xcd66f0(0x35f)]:return{..._0x56b462,'data':{..._0xab713e,'data':_0xab713e['liveShareNewHost']},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p[_0xcd66f0(0x2d6)][_0xcd66f0(0x5ff)]:case p['CollaborationEvent'][_0xcd66f0(0x38c)]:return{..._0x56b462,'data':{..._0xab713e,'data':_0xab713e['liveShareOperation']},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x56b462,'data':{..._0xab713e,'data':_0xab713e['liveShareNewHost']},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p[_0xcd66f0(0x2d6)][_0xcd66f0(0x231)]:return{..._0x56b462,'data':_0xab713e,'cmd':_0x56b462['cmd']};case p[_0xcd66f0(0x2d6)][_0xcd66f0(0x4fb)]:return{..._0x56b462,'data':{..._0xab713e,'data':_0xab713e[_0xcd66f0(0x52f)]},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p['CollaborationEvent'][_0xcd66f0(0x5b5)]:return{..._0x56b462,'data':{..._0xab713e,'data':_0xab713e[_0xcd66f0(0x2da)]},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};case p[_0xcd66f0(0x2d6)][_0xcd66f0(0x519)]:return{..._0x56b462,'data':{..._0xab713e,'data':_0xab713e[_0xcd66f0(0x4db)]},'cmd':_0x56b462[_0xcd66f0(0x3f5)]};default:return _0x56b462;}}default:return _0x56b462;}}function hn(_0x47d588){const _0x20a7f9=_0x17671e;switch(_0x47d588[_0x20a7f9(0x3f5)]){case G['HEARTBEAT']:case G[_0x20a7f9(0x3a3)]:return JSON['stringify']({'cmd':_0x47d588[_0x20a7f9(0x3f5)],'routeKey':_0x47d588[_0x20a7f9(0x3eb)]});case G[_0x20a7f9(0x4eb)]:{let _0x31f957;switch(_0x47d588[_0x20a7f9(0x1e9)][_0x20a7f9(0x3ee)]){case p[_0x20a7f9(0x2d6)][_0x20a7f9(0x2d7)]:{_0x31f957={'eventID':p[_0x20a7f9(0x2d6)][_0x20a7f9(0x2d7)],'updateCursorEvent':_0x47d588[_0x20a7f9(0x1e9)][_0x20a7f9(0x1e9)]};break;}case p[_0x20a7f9(0x2d6)][_0x20a7f9(0x63a)]:{_0x31f957={'eventID':p[_0x20a7f9(0x2d6)][_0x20a7f9(0x63a)],'leaveEvent':_0x47d588[_0x20a7f9(0x1e9)]['data']};break;}case p['CollaborationEvent']['USERS_ENTER']:{_0x31f957={'eventID':p[_0x20a7f9(0x2d6)][_0x20a7f9(0x644)],'joinEvent':_0x47d588[_0x20a7f9(0x1e9)][_0x20a7f9(0x1e9)]};break;}case p[_0x20a7f9(0x2d6)][_0x20a7f9(0x35f)]:{_0x31f957={'eventID':p[_0x20a7f9(0x2d6)][_0x20a7f9(0x35f)],'liveShareNewHost':_0x47d588[_0x20a7f9(0x1e9)][_0x20a7f9(0x1e9)]};break;}case p[_0x20a7f9(0x2d6)][_0x20a7f9(0x38c)]:{_0x31f957={'eventID':p[_0x20a7f9(0x2d6)][_0x20a7f9(0x38c)],'liveShareOperation':_0x47d588['data'][_0x20a7f9(0x1e9)]};break;}case p[_0x20a7f9(0x2d6)][_0x20a7f9(0x3b0)]:{_0x31f957={'eventID':p[_0x20a7f9(0x2d6)][_0x20a7f9(0x3b0)],'liveShareTerminate':_0x47d588['data'][_0x20a7f9(0x1e9)]};break;}case p[_0x20a7f9(0x2d6)][_0x20a7f9(0x668)]:{_0x31f957={'eventID':p[_0x20a7f9(0x2d6)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x47d588[_0x20a7f9(0x1e9)]['data']};break;}case p[_0x20a7f9(0x2d6)]['LIVESHARE_FETCH_OPERATIONS']:{_0x31f957={'eventID':p[_0x20a7f9(0x2d6)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x31f957={'eventID':_0x47d588[_0x20a7f9(0x1e9)]['eventID']};}return JSON[_0x20a7f9(0x65e)]({'cmd':_0x47d588[_0x20a7f9(0x3f5)],'routeKey':_0x47d588[_0x20a7f9(0x3eb)],'collaMsg':_0x31f957});}case G[_0x20a7f9(0x2fc)]:return JSON[_0x20a7f9(0x65e)]({'cmd':_0x47d588['cmd'],'routeKey':_0x47d588[_0x20a7f9(0x3eb)],'joinReq':_0x47d588[_0x20a7f9(0x1e9)]});case G['LEAVE']:return JSON['stringify']({'cmd':_0x47d588[_0x20a7f9(0x3f5)],'routeKey':_0x47d588[_0x20a7f9(0x3eb)],'leaveReq':_0x47d588[_0x20a7f9(0x1e9)]});default:throw new Error(_0x20a7f9(0x4a5));}}function _0x15d4(){const _0x4f40dc=['HTTPService','@univerjs-pro/collaboration','RevisionService','resend','text','_executeRemoteChangeset','sendChangesetTimeout','DocSkeletonManagerService','_decreaseWaiting','ImageSourceType','_acknowledgedAwaitingChangeset','forEach','getCollabCursors$','pad','xlink:href','_singleActiveUnitService','_commentService','MUTATION','disposeWithMe','_getMergeRange','SUCCUSS','univer-pro.collaboration-client.single-active-unit-service','_fetchMissChangesets','concatMap','Hex','_checkMissing','collaboration_new_changeset','_getSignURL','enc','capture','/-/object/-/batch_allowed','setWaitCount','LIVESHARE_FETCH_OPERATIONS','_socket$','from','getRoom','useObservable','_onMessage','touchDependencies','buffer','sequenceExecute','HEARTBEAT','_handleLeaveEvent','toDisposable','getColor','_updateStatus','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_onOffline','_labelPosition','forwardRef','ImageIoService','_docTransformIMECacheService','clear','_tryReconnect','MoveRangeCommandId','ONLINE','registerHTTPInterceptor','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','onTransformRemoteChangesetByStateCache','getDocRanges','COMPLETION_FINISHED','height','interceptor','session.will-retry','closePath','getSkeleton','_initStatusComponent','_telemetryService','_doFinalize','_data','getMemberID','uni.network.url-service','_unitStatus','textEncoder','useDependency','_eventUnsubscribe','objectID','_handleHeartbeatEvent','href','getItem','join','parseProtocolChangeset','VIEWPORT_KEY','Disposable','offline','parse','_remoteChangesetQueue','getOwnPropertySymbols','_collaborationController','TOO_MANY_REQUESTS','ILocalStorageService','USERS_LEAVE','_commandService','/universer-api/snapshot','CollaborationStatusDisplay','triggerDblclick','_docStateChangeManagerService','_submitChangeset','addEventListener','_resendTimeout','_unlockTransition','USERS_ENTER','_refreshCollabCursors','failed\x20to\x20apply\x20missed\x20changesets!','Rect','setTimeout','userID','_collabCursorState$','collabStatus.conflict','_localStorageService','_getAPIPrefixPath','removeMember','_listenToOfflineEvent','OTHER_CLIENTS_EDITING','transformStateCache','RemoveColCommandId','RefRangeService','switchMap','SNAPSHOT_HAS_BEEN_REMOVED','\x20-\x20','ColorKit','APPLY_NON_SEQUENTIAL_REVISION','_registerDependencies','CONNECTOR_DATA_TOO_LARGE','_clearScheduledTask','joinEvent','COLLAB_WEB_SOCKET_URL','stringify','_startTelemetryCollaborationNewChangeset','url','_onCombEvent','addObjects','_collabCursorController','UniverInstanceType','MD5','getSheetObject','HTTPRequest','LIVESHARE_REQUEST_HOST','_notificationService','/universer-api/snapshot/','urlChange$','TRANSFORM_CHANGE_OBSERVABLE_TYPE','Error\x20on\x20receiving\x20event','initWorkbookPermissionChange','session.collaboration-timeout','Vector2','_messageService','YUUMI_URL_COL_OUT_OF_RANGE','_colorIndex','_beforeCloseService','location','stopTime','collab-rect-range-','unitId','localeService','HEARTBEAT_INTERVAL','permissionRejEvent','clearInterval','_type','APPLY_DUPLICATED','ERROR_IMAGE','getInterceptPoints','sigBytes','post','title','rxjs/operators','transformSelections','_startCollaboration','24QcSsKS','_socketService','BehaviorSubject','UNKNOWN_CMD','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','result','Module','_nDataBytes','sid','deserializeToCombResponse','data','_clearRedo','CHANGESET_ACK','PSEUDO_FETCH_MISSING_RESULT','_updateCollabCursors','function','/-/object/list','getVpScrollXYInfoByPosToVp','_initStatusListener','791240zQhlIo','off-line-single_clip0_910_343','_retryConnectingTimer','disableLocalCache','findNodePositionByCharIndex','transformMutationsWithChangeset','1em','_snapshotService','IUndoRedoService','_getSheetObject','1464kqomDh','getViewport','c1Prime','ISnapshotServerService','charAt','univer-pro.collaboration-client-socket-service','PERMISSION_DENIED','beginPath','getCurrentUser','_anchorDot','collabSubmitChangesetUrl','transformMutation','abs','onTransformChange$','throttleTime','_initCommandExecutedListener','number','_clearOtherTimers','SetTextSelectionsOperation','getMember','getImage','[CollaborationSession]','url(#off-line-single_clip0_910_343)','_createHandler','_selfUnitIDs','getUndoRedoMutationParamsCache','refreshPermission','_reverseMap','[FetchMissState]','unitID','IMessageService','BlockCipherMode','getUnitId','HEARTBEAT_INTERVAL_KEY','focused$','_getScale','_hasher','handleIRemoveRow','submit\x20changeset\x20error!','UNRECOGNIZED','type','toggleOnline','getTypeOfUnitDisposed$','Rectangle','url(#$1','collaboratorID','visibilityState','_undoRedoService','_telemetryInfo','getStateCache','splice','idSuffix','_transitionLocked','MSG_FOR_ERROR','ITransformService','onStateChange','getCurrentUnitForType','INVALID_ARGUMENT','exports','_shouldReportTelemetry','RETRY_CONNECTING_MAX_COUNT_KEY','_range','storage','popstate','reject','error$','_cursorShapes','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','_timeoutTimer','_pendingMutations','path','UnitSnapshot','LICENSE_DISTRO_REJECTED','transformUndoRedo','[PendingState]:\x20received\x20rejection.','collaboration-client.offline-data-not-saved','getUnitType','LICENSE_IMPORT_SIZE_EXCEEDED','_oKey','_transformHistoryAndStateStack','decrypt','addImageSourceCache','ICollaborationSocketService','close','_commentUpdate$','@univerjs/engine-formula','awaiting','bind','getCoordByCell','assign','_textBubble','_createHelper','encrypt','telemetry\x20info\x20is\x20not\x20initialized','_getSaveTimeout','_heartbeatTimer','/block/','_append','getAncestorScale','closeSession','isInternalEditorID','_onLocalMutation','push','_parse','\x0aCurrent:\x20','CHANGESET_REJ','replaceState','backgroundColor','handleIRemoveCol','resourceIDs','CommandType','extend','CollaborationController','collaboration.single-unit.warning','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','slice','CollaborationSession','includes','_drawTextRange','_createHmacHelper','floor','9uWwAIR','49295PZTVkj','HttpImport','startColumn','_toggleOnline','add','sheets','unpad','_injector','save','Error','_docSkeletonManagerService','iterations','update','b64DecodeUnicode','formatter','auth.needGotoLoginAlert','updateMember','hidden','RECT','hasher','@univerjs/docs','Plugin','hovered','color','online','attrs','csShouldRetryEvent','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','InsertRangeMoveDownCommandId','crypto','LOCAL_CACHE_INTERVAL','pluginName','_collaborationSessionService','csRejEvent','0\x200\x2016\x2016','Injector','_ws','gold400','_onConnectionFailed','FromArray','sheetId','_xformMode','blue400','then','_themeService','now','_loadSheet','setShowComponents','get','activeSheet$','debounce','changesets','decryptBlock','substring','_createInitialStateImpl','_onConflict','getParam','_status$','[SyncedState]:\x20received\x20acknowledgement.','socket\x20close','_prevBlock','displayName','defs','_cursors','PERMISSION_REJ','fetch_missing','_removeCollabCursors','_univerInstanceService','roomInfos','encryptBlock','VIEW_MAIN','_initResize','DocStateChangeManagerService','_name','objectActions','lineTo','_joinRoom','RxDisposable','[CollaborationUndoRedoService]','width','InsertSheetMutation','collabCursorState$','error','_onRemoteRetry','send','clipPath','registerDependencies','init','getConfig','batchAllowed','SNAPSHOT_URL_KEY','createIdentifier','awaiting_with_pending','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','clearTimeout','CollaborationEvent','UPDATE_CURSOR','getUnhiddenWorksheets','getValue','updatePermissionObjEvent','@univerjs/sheets','image/jpg','registerRenderModule','next','delay','isTransformChangesetsSuccess','StreamCipher','round','_ENC_XFORM_MODE','[OfflineState]:\x20received\x20rejection.','syncEditingCollabCursor','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','_resendTimer','getRenderById','Encryptor','unitId\x20is\x20not\x20found','FETCH_MISSING','_createSocket','removeParam','fetchThroughInterceptors','NEW_CHANGESETS','WebURLService','onRemoteAck','YUUMI_RATE_OVER_LIMIT','visibilitychange','_rescheduleHeartbeat','LocalCacheService','onMissedChangesetFetched','_replaceFileID','randomUUID','_startDocCollabCursor','size','assignAColorForMemberID','JOIN','ERROR_EXCEED_SIZE','onMouseMove','key','_updateLocalCache','BufferedBlockAlgorithm','[CollaborationSessionService]','PENDING','tag','skeleton','CollaborationEntity','\x20in\x20_schedule.','UNIVER_COLLABORATION_CLIENT_PLUGIN','fill','_transformUndoredo','_onConnectionOpen','YUUMI_SUBSCRIPTION_NOT_FOUND','_transformStack','ciphertext','show','_invKeySchedule','find','debounceTime','font','_renderManagerService','HttpExport','enableSingleActiveInstanceLock','/collaborator','constructor','leaveEvent','_updateURLWithCurrentState','padding','COLORS','random','_getLoginPath','min','transformRemoteChangeset','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_sendHeartbeatTimer','WordArray','_updateSubUnitFromURLParams','CompressMutationService','Tooltip','_scheduleHeartbeat','onTransformIME','onCommandExecuted','Base','onlineStatusIcon','6184662Pjnfhg','arc','Base64','_collabSessionService','subUnitId','{fileID}','newValue','OFFLINE','RECV','filter','ICommandService','memberID','ENSURE_SNAPSHOT_EXECUTION','setItem','some','setParam','_instanceService','_doCryptBlock','_updateLocalCursor','EmptyMutation','Utf8','Tools','getRandomValues','FileId','@univerjs/network','red300','_onRefRangeChange','_map','default','_clearTimeoutTimer','_transformSelections','image/jpeg','NodePositionConvertToCursor','saveImage','_http','Undefined','joinRsp','keySize','_schedule','_lockTransition','permission.content','CollaborationSessionService','collaMsg','[PendingState]:\x20unhandled\x20univer\x20type:\x20','requireSession','isPermissionRej','subscribeEvent','setShapeProps','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','LOCAL_CACHE_INTERVAL_KEY','off-line-single','LIVESHARE_NEW_HOST','UNIVER_SHEET','unit','SHA1','getActiveSheet','_handleHover','undoState','onRemoteRetry','length','defIds','_initMergeInterceptor','getSheetId','_getSendChangesetTimeout','saveSnapshot','getCollabEntity$','\x0aAfter:\x20','replaceTextRanges','/universer-api/oidc/authpage','getTime','map','currentTheme$','hostname','CONFLICT','replace','_imageSourceCache','HEARTBEAT_TIMEOUT_KEY','getDeserializedSheetBlock','createCollaborator','_id','permission.title','dispose','_initUnitPermissionChange','_awaitingChangeset','_scheduleSaving','saveOfflineData','clone','subscribe','saveChangeset','isArray','IPermissionService','updateOfflineData','resolve','react','createElement','_cursor','LIVESHARE_OPERATION','patch','_entities','UNKNOWN_CODE','InsertRowCommandId','_replayCachedMutations','endRow','MessageType','unknown','put','UniverCollaborationClientPlugin','_toggleOffline','LEAVE','_hash','deleteCollaborator','getUnitOnRev','_hover','state','subunit','c2Prime','_queuedRemoteChangesets','duration','currentColor','HELLO','getUniverSheetInstance','connection\x20error','UNIVER_PROJECT','MergeInterceptorFactory','COMPRESS_MUTATION_APPLY','COLLAB_SUBMIT_CHANGESET_URL_KEY','_getUndoStack','getFocusedUnit','rxjs','__esModule','NOT_FOUND','_snapshotServerService','LIVESHARE_TERMINATE','sessionStatus$','_loadDoc','awaitingChangeset','asObservable','/new_changes','responseType','...','CHANGESET_SHOULD_RETRY','_socketReady','_userManagerService','drawWith','_uiPartsService','&assign=','ReplaySubject','downloadEndpointUrl','_transformIMECache','newCsEvent','_handler','string','NO_OTHER_CLIENTS_EDITING','_state$','LOGIN_URL_KEY','TEXT','JSONX','executeCommand','status$','collabStatus.syncing','_sessionStatus$','_roomMembers','_transformRemoteChangesetByIMECache','_handleEvent','with','isTransformMutationFailure','_clearUndo','loadOfflineData','sheetID','values','964824fjIrtV','pending','$super','evenodd','APPLY_REVISION_CONFILICT','serializeRangeWithSheet','getLatestCsReqIdBySid','_scheduleCollaborationTimeoutTimer','collab-text-anchor-','randomBytes','url(#on-line-single_clip0_910_349)','EffectRefRangId','_isPermissionRej','AuthzIoHttpService','_lastPointer','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','range','generateRandomId','_onRemoteACK','_drawAnchor','name','routeKey','@univerjs/drawing','DocIMEInputManagerService','eventID','getSheetBlock','svg','NodePositionConvertToRectRange','sin','DOC_RANGE_TYPE','_logService','cmd','SNAPSHOT_INVALID_SNAPSHOT','collab-text-range-','createDecryptor','16479mZBmnF','currentSkeleton$','SetWorksheetActivateCommand','format','_sendHeartbeat','repeat','_context','_tryEnsureSocket','toString','AUTHZ_URL_KEY','HmacMD5','_incrementRevisionNumber','_key','split','handleDeleteRangeMoveUp','_iKey','complete','_onCursorDelete','UserManagerService','clamp','BASE64','apply','CommentService','contains','salt','startsWith','APPLY_PERMISSION_DENIED','open$','Decryptor','@univerjs/sheets-ui','restore','jiqing500','COMPRESS_MUTATION_SEND','registerComponent','UNIVER_UNKNOWN','file','onPointerMove$','_scene','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','isTransformMutationsWithChangesetFailure','symbol','_init','UniverCollaborationPlugin','readAsDataURL','selection','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','action','_throwTelemetryCollaborationNewChangeset','revision','_docTransformSelectionsService','_collaborationTimeoutTimer','fromEvent','current','_removeRoom','pipe','delete','ILogService','onTransformRemoteChangesetByIMECache','_waitCount','_changesetSessionId','EXCHANGE_SIGN_URL_SERVER_URL_KEY','SnapshotServerOverHTTPService','handleInsertRow','Hasher','_sessions','LICENSE_MAX_UNITS_EXCEEDED','_scheduleTimestamp','entries','_members','_change$','useCallback','_keyPriorReset','infoRsp','cfg','DisposableCollection','univer-online-status-icon','close$','finalize','onStarting','_getCtorByUniverType','engine','_revisionService','doc.mutation.rich-text-editing','workbook','has','snapshot','onlyLocal','baseRev','ImageUploadStatusType','ACTIVE_UNIT_EVENT_CHANNEL','conflict','mode','runRefRangeMutations','_stopTelemetryCollaborationNewChangeset','_localeService','_disabled','addObject','src','roomMembers','none','collaboration.closeRoom','Optional','SheetSkeletonManagerService','socket$','_ensureSubject','registerBeforeClose','_sheetSkeletonManagerService','div','_exhaustRemoteChangesetQueue','_onCursorUpdate','setConfig','handleInsertRangeMoveDown','reqId','_process','collabStatus.notCollab','_socketMessageSubscription','_initEventListeners','_getDownloadEndpointURL','_clearCollaborationTimeoutTimer','children','image/gif','onMissingChangesets','black','_backgroundColor','DeleteRangeMoveLeftCommandId','getWorkbookSelections','_color','_registerRenderDependencies','_onJoinRoomEvent','status','resize','lib','[DataLoaderController]','indexOf','getOwnPropertyDescriptor','registerRefRange','collabStatus.synced','onSendChangeset','OnLineSingle','/rev/','Unknown\x20user','SheetCollabCursorShape','_unitOnClients','CollaborationSocketService','_anchor','transformChangesets','SEND_CHANGESET_TIMEOUT_KEY','roomMembers$','UnitEmbedded','univerjs-icon\x20univerjs-icon-','_setupSubUnitSync','unit-cache-','m2Prime','_getAnchorBounding','12FGFbSR','processBlock','_compressMutationService','CipherParams','commentUpdate$','getRangePointData','max','algo','DeleteRangeMoveUpCommandId','_onRemoteChangeset','_disableEditing','_initRequestHeader','M0\x200H16V16H0z','_changesetReqId','bottom','message$','_localCacheService','mutations','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','disposeUnit','/universer-api/stream/file/upload','blockSize','_startSheetCollabCursor','mixIn','onlineStatusTitle','_syncEditingCollabCursor','setStateCache','_nRounds','params','Warning','row','retryConnectingInterval','makeDirty','transformIMECache','catch','transformStack\x20failed!','NOT_COLLAB','_colorAssignService','IContextService','Could\x20not\x20dynamically\x20require\x20\x22','encode','__creator','_entityInit$','enableLocalCache','MemberService','getCurrentRevOfUnit','unsubscribe','Subject','Univer','event$','_socket','updateCollaborator','createEncryptor','equals','_applyRemoteChangeset','UNIVER_DOC','LICENSE_EXPORT_SIZE_EXCEEDED','_DEC_XFORM_MODE','[CollaborationState]:\x20apply\x20error!','_cachedData','_event$','setUndoRedoMutationParamsCache','_substituteUndoStack','getMergeData','_hovered','_getCurrentRevision','cursorInfo$','_docTransformStateCacheService','compose','_sheetTransformSelectionsService','DataLoaderController','set','shouldCloseConn','onReady','Latin1','handleMoveRange','isTransformMutationsWithChangesetSuccess','_initDependencies','flatMap','univer-offline','SetSelectionsOperation','image/bmp','SheetCollaborationEntity','SnapshotService','/object','_removeClearOtherTimer','sessionStatus','onTransformState','INGEST','_onUserLeave','createInstance','listCollaborators','prototype','_transformUndoRedoStack','use','_urlService','redoState','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','override','InsertRangeMoveRightCommandId','_mode','listRoles','IRenderManagerService','append','COMMENT_UPDATE','IUniverInstanceService','/object/','exhaustSavingTask','collaborators','takeUntil','compute','IBeforeCloseService','synced','searchParams','IConfigService','_config','fetchMissingChangesets','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','createSocket','?url=','collab-client.tooltip.reconnect','combineLatest','getOffsetConfig','SerializableCipher','session','msCrypto','session.room-full','actions','toggleOffline','IRemoteInstanceService','appendMutation','_transformPreviousActiveRange','SNAPSHOT_SERVER_URL_KEY','requestParams','SHOULD_CLOSE_CONN','_onUserJoin','connectInjector','&source=','WorkbookEditablePermission','collabWebSocketUrl','_updateState','words','handleInsertRangeMoveRight','UNIVER_SLIDE','_handleJoinEvent','setAlpha','incrementRevOfUnit','onSyncEditingCollabCursor','m1Prime','YUUMI_UNABLE_LOAD_URL','reset','objects','ThemeService','_roomMembers$','dispose$','Inject','commentUpdateEvent','LocaleService','_state','Shape','FAIL','_onRecvEvent','onCommentUpdate','colorChannel1','onPointerLeave$','execute','every','_iv','_clearHeartbeatTimer','_shapes','_getRedoStack','snapshotServerUrl','socket\x20open.','onRemoteChangeset','/resources','_drawRectRange','OpenSSL','reconnect','defineProperty','code','readInt32LE','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','column','fetchMiss','FETCH_MISS','#FFF','_httpService','/unit/','copyFileMeta','withCredentials','cursorInfo','AES','_syncEditingCollabCursorService','_getAPIPrefix','create','DesktopCollaborationStatusDisplayController','DocCollaborationEntity','setCurrentUser','getResourcesRequest','_showConflictNotification','measureText','_doReset','univer-online','getActiveRange','_scheduleClearOtherTimer','IDLE','_getUploadFileURL','SUBMIT_CHANGESET','/universer-api/comb','CHANGESET_REVISION_CONFILICT','DocSelectionManagerService','3582PEApeo','_listenToOnlineEvent','@univerjs/design','ThresholdInterceptorFactory','_refRangeService','PasswordBasedCipher','collaboration-session-retry','_transformStateCache','keys','serializeCombRequest','_collaborationPaused','_doProcessBlock','unshift','_configService','deepClone','getImageSourceCache','POST','hasOwnProperty','RegularPolygon','_resendWithTimeout','collabStatus.offline','textRanges','selections','SetDocZoomRatioOperation','83388AoNeGs','headers','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','authzUrl','APPLY_REJECT','getCollabEntity','toLowerCase','_transformRemoteChangesetByStateCache','fromEventSubject','useRef','kdf','WebSocketService','getTypeOfUnitAdded$','_cursorInfo$','_memberService','_assignedColors','fromCharCode','JOINING','/allowed','_hideTimer','NoPadding','_onRemoteRejected','AWAITING','_session','INTERNAL_ERROR','debug','editing\x20status\x20changed\x20to','body','_HTTPService','hide','SYNCED','_createInitialState','concat','updateCursorEvent','change$','_clearLocalCache','state$','_sender','getUnitStatus$','confirm','_draw','putCollaborators','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','collabStatus.fetchMiss','onTransformSelections','/universer-api/authz','_saveTaskMap','TEXT_RANGE_LAYER_INDEX','ranges','_send','call','_substituteRedoStack','unload','RemoveRowCommandId','_candidateSocket','UPDATE_PERMISSION_OBJ','SheetsSelectionsService','[CollaborationSessionService]:\x20socket\x20error','objectType','_transformService','onRemoteRej','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','UniverIcon','_unitID','_sendingTimer','encodeURIComponent','@univerjs/rpc','_online','EvpKDF','history','mergeOverrideWithDependencies','charCodeAt','UNAUTHENTICATED','fetching\x20missing\x20changesets\x20from\x20','updatePermissionPoint','originalMeta','csAckEvent','[CollaborationEntity]','BlockCipher','CollaborationStatus','_minBufferSize','reverse','className','rev','_retryCount','shareReplay','_keySchedule','setActiveRange','_permissionService','_saveCache','take','loadSheet','propertyIsEnumerable','merge','[OfflineState]:\x20received\x20changeset.','_cipher'];_0x15d4=function(){return _0x4f40dc;};return _0x15d4();}var Kn=Object['defineProperty'],qn=Object[_0x17671e(0x47f)],zn=(_0x6d4f66,_0x320d0d,_0x48da19,_0x504ebc)=>{for(var _0x580693=_0x504ebc>0x1?void 0x0:_0x504ebc?qn(_0x320d0d,_0x48da19):_0x320d0d,_0x234342=_0x6d4f66['length']-0x1,_0x29f51a;_0x234342>=0x0;_0x234342--)(_0x29f51a=_0x6d4f66[_0x234342])&&(_0x580693=(_0x504ebc?_0x29f51a(_0x320d0d,_0x48da19,_0x580693):_0x29f51a(_0x580693))||_0x580693);return _0x504ebc&&_0x580693&&Kn(_0x320d0d,_0x48da19,_0x580693),_0x580693;},De=(_0x4a2762,_0x34a417)=>(_0x4f5b63,_0x5ed951)=>_0x34a417(_0x4f5b63,_0x5ed951,_0x4a2762);const Et=a['createIdentifier'](_0x17671e(0x201));function Xn(_0x2f83f7,_0x4e6b00,_0x1f19fa){const _0x26e378=_0x17671e;return _0x2f83f7+'/'+_0x4e6b00+'/unit/'+_0x1f19fa+_0x26e378(0x3b5);}exports[_0x17671e(0x488)]=class extends a[_0x17671e(0x632)]{constructor(_0x1f26db,_0x48c69c,_0x28f54f,_0x29e66b,_0x470e64){const _0x287f2c=_0x17671e;super(),this[_0x287f2c(0x34e)]=_0x1f26db,this[_0x287f2c(0x29b)]=_0x48c69c,this[_0x287f2c(0x573)]=_0x28f54f,this['_logService']=_0x29e66b,this['_snapshotServerService']=_0x470e64;}[_0x17671e(0x509)](_0x4b63c3){const _0x4282db=_0x17671e,_0x30347c=this[_0x4282db(0x29b)][_0x4282db(0x509)](_0x4b63c3);if(!_0x30347c)throw new Error(_0x4282db(0x60d));const _0x52d71f=new a[(_0x4282db(0x443))](),_0x368339=new A[(_0x4282db(0x4c2))]();_0x52d71f[_0x4282db(0x27b)](_0x30347c['close$'][_0x4282db(0x383)](_0x308c92=>_0x368339[_0x4282db(0x2de)](_0x308c92))),_0x52d71f['add'](a[_0x4282db(0x60a)](()=>_0x368339[_0x4282db(0x409)]()));const _0x171317=new A[(_0x4282db(0x4c2))]();_0x52d71f['add'](_0x30347c[_0x4282db(0x23d)]['subscribe'](_0x3ba7f1=>_0x171317[_0x4282db(0x2de)](_0x3ba7f1))),_0x52d71f[_0x4282db(0x27b)](a[_0x4282db(0x60a)](()=>_0x171317['complete']()));const _0x33697c=new A['Subject']();_0x52d71f['add'](_0x30347c[_0x4282db(0x4a2)][_0x4282db(0x383)](_0x4142bc=>{const _0x301b8b=ln(_0x4142bc);_0x33697c['next'](_0x301b8b);})),_0x52d71f[_0x4282db(0x27b)](a['toDisposable'](()=>_0x33697c['complete']()));let _0x33510a;const _0x38ca81=()=>{const _0x5a9c92=_0x4282db;_0x171317[_0x5a9c92(0x2de)](new Event(_0x5a9c92(0x3a5))),_0x368339['next'](new CloseEvent(_0x5a9c92(0x3a5))),_0x33510a[_0x5a9c92(0x250)]();};return _0x33510a={'memberID':'','close$':_0x368339[_0x4282db(0x3b4)](),'error$':_0x171317[_0x4282db(0x3b4)](),'open$':_0x30347c[_0x4282db(0x414)],'message$':_0x33697c[_0x4282db(0x3b4)](),'send':_0x391e5f=>{const _0x12406c=_0x4282db;if(_0x391e5f[_0x12406c(0x3f5)]===G[_0x12406c(0x4eb)]){if(_0x391e5f[_0x12406c(0x1e9)][_0x12406c(0x3ee)]===p[_0x12406c(0x2d6)][_0x12406c(0x562)]){this['_submitChangeset'](_0x33510a,_0x391e5f['data'])[_0x12406c(0x4b5)](_0x3878ce=>{const _0x47ea86=_0x12406c;this[_0x47ea86(0x3f4)][_0x47ea86(0x2c9)](_0x3878ce),_0x38ca81();});return;}if(_0x391e5f[_0x12406c(0x1e9)][_0x12406c(0x3ee)]===p[_0x12406c(0x2d6)][_0x12406c(0x2eb)]){const _0x26531e=_0x391e5f[_0x12406c(0x1e9)];this[_0x12406c(0x5f5)](_0x26531e)[_0x12406c(0x2a2)](_0xca5fb6=>{const _0x31325f=_0x12406c;_0x33697c[_0x31325f(0x2de)]({'cmd':G[_0x31325f(0x334)],'code':Ct['OK'],'routeKey':_0x26531e['data'][_0x31325f(0x219)],'routeType':'','data':{'eventID':p[_0x31325f(0x2d6)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0xca5fb6}}});})['catch'](_0x1955d6=>{const _0x5705fc=_0x12406c;this[_0x5705fc(0x3f4)][_0x5705fc(0x2c9)](_0x1955d6),_0x38ca81();});return;}}_0x30347c[_0x12406c(0x2cb)](hn(_0x391e5f));},'close':()=>{const _0x34e81b=_0x4282db;_0x30347c[_0x34e81b(0x250)](),_0x52d71f[_0x34e81b(0x37d)]();}},_0x33510a;}async[_0x17671e(0x640)](_0x480804,_0x1e6398){const _0x38d8a5=_0x17671e;var _0x3115d2,_0x3f69c0;const {unitType:_0x41fa81,unitID:_0x4892d5,changeset:_0x1be346}=_0x1e6398[_0x38d8a5(0x1e9)],_0x59d93f={'unitID':_0x4892d5,'memberID':_0x480804[_0x38d8a5(0x337)],'type':_0x41fa81,'changeset':p['parseChangesetToProtocol'](_0x1be346)},_0x5d46c7=this[_0x38d8a5(0x573)][_0x38d8a5(0x2cf)](rn),_0x460a9f=this[_0x38d8a5(0x573)][_0x38d8a5(0x2cf)](ne),_0x30d5bc=Xn((_0x3f69c0=(_0x3115d2=_0x460a9f==null?void 0x0:_0x460a9f[_0x38d8a5(0x206)])!=null?_0x3115d2:_0x5d46c7)!=null?_0x3f69c0:Vn,_0x41fa81,_0x4892d5);try{await this[_0x38d8a5(0x34e)][_0x38d8a5(0x1da)](_0x30d5bc,{'body':_0x59d93f});}catch(_0x14efd1){throw this[_0x38d8a5(0x3f4)]['error'](_0x38d8a5(0x211),_0x38d8a5(0x222)),_0x14efd1;}}async['_fetchMissChangesets'](_0x344ea5){const _0x40da7f=_0x17671e,{unitID:_0x340c02,from:_0x392dbd,to:_0x58763c,unitType:_0x5e9b30}=_0x344ea5[_0x40da7f(0x1e9)];return(await this[_0x40da7f(0x3af)][_0x40da7f(0x507)]({'metadata':void 0x0},{'unitID':_0x340c02,'type':_0x5e9b30,'from':_0x392dbd,'to':_0x58763c}))['changesets'];}},exports[_0x17671e(0x488)]=zn([De(0x0,a[_0x17671e(0x52e)](Q[_0x17671e(0x5df)])),De(0x1,a[_0x17671e(0x52e)](Q[_0x17671e(0x589)])),De(0x2,a[_0x17671e(0x505)]),De(0x3,a[_0x17671e(0x431)]),De(0x4,p[_0x17671e(0x1ff)])],exports[_0x17671e(0x488)]);const Jn=_0x17671e(0x5f9);function Zn(_0x1d70c8){const _0x1f2121=_0x17671e;return JSON[_0x1f2121(0x65e)](_0x1d70c8)[_0x1f2121(0x367)];}class bt{constructor(){const _0x1e0fc6=_0x17671e;I(this,_0x1e0fc6(0x251),new A['Subject']()),I(this,_0x1e0fc6(0x497),this['_commentUpdate$'][_0x1e0fc6(0x3b4)]());}[_0x17671e(0x535)](_0x13d93d){this['_commentUpdate$']['next'](_0x13d93d);}}var Qn=Object[_0x17671e(0x545)],ei=Object[_0x17671e(0x47f)],ti=(_0x2eb1d2,_0x53f61b,_0x12fb5e,_0x29c9aa)=>{const _0x378085=_0x17671e;for(var _0x108884=_0x29c9aa>0x1?void 0x0:_0x29c9aa?ei(_0x53f61b,_0x12fb5e):_0x53f61b,_0x2dcfb7=_0x2eb1d2[_0x378085(0x367)]-0x1,_0x2019e1;_0x2dcfb7>=0x0;_0x2dcfb7--)(_0x2019e1=_0x2eb1d2[_0x2dcfb7])&&(_0x108884=(_0x29c9aa?_0x2019e1(_0x53f61b,_0x12fb5e,_0x108884):_0x2019e1(_0x108884))||_0x108884);return _0x29c9aa&&_0x108884&&Qn(_0x53f61b,_0x12fb5e,_0x108884),_0x108884;},Pt=(_0x112872,_0x5f0dac)=>(_0x5383ae,_0x524504)=>_0x5f0dac(_0x5383ae,_0x524504,_0x112872);exports[_0x17671e(0x4bf)]=class extends a[_0x17671e(0x632)]{constructor(_0x2131c6,_0x7a7e79){const _0xd727d4=_0x17671e;super(),I(this,_0xd727d4(0x3cd),new Map()),(this[_0xd727d4(0x2ba)]=_0x2131c6,this[_0xd727d4(0x3ba)]=_0x7a7e79,this[_0xd727d4(0x5f1)](a[_0xd727d4(0x60a)](A[_0xd727d4(0x5dc)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0xd727d4(0x664)][_0xd727d4(0x360)])[_0xd727d4(0x42f)](V[_0xd727d4(0x372)](_0x19ff59=>_0x19ff59['getUnitId']())),this[_0xd727d4(0x2ba)][_0xd727d4(0x226)](a[_0xd727d4(0x664)]['UNIVER_DOC'])[_0xd727d4(0x42f)](V[_0xd727d4(0x372)](_0x2d6c42=>_0x2d6c42[_0xd727d4(0x21c)]())),this[_0xd727d4(0x2ba)][_0xd727d4(0x226)](a[_0xd727d4(0x664)]['UNIVER_SLIDE'])[_0xd727d4(0x42f)](V['map'](_0x252752=>_0x252752[_0xd727d4(0x21c)]())))[_0xd727d4(0x383)](_0x59ad2d=>this[_0xd727d4(0x42e)](_0x59ad2d)))));}[_0x17671e(0x558)](_0x5daa65){const _0x35b8e4=_0x17671e;this[_0x35b8e4(0x3ba)]['setCurrentUser'](_0x5daa65);}['getCurrentUser'](){const _0x52d592=_0x17671e;return this[_0x52d592(0x3ba)]['getCurrentUser']();}[_0x17671e(0x287)](_0x3c14ba,_0x3f644a){const _0x3889e8=_0x17671e;let _0x272e57=this[_0x3889e8(0x3cd)][_0x3889e8(0x2a7)](_0x3c14ba);_0x272e57||(_0x272e57=new ni(),this['_roomMembers']['set'](_0x3c14ba,_0x272e57)),_0x272e57[_0x3889e8(0x287)](_0x3f644a);}[_0x17671e(0x64e)](_0x3a7202,_0x52e4cf){const _0xcd291f=_0x17671e,_0x43b4c5=this[_0xcd291f(0x3cd)]['get'](_0x3a7202);_0x43b4c5&&_0x43b4c5[_0xcd291f(0x64e)](_0x52e4cf);}[_0x17671e(0x602)](_0x58d5e4){const _0x3a3528=_0x17671e;return this['_roomMembers'][_0x3a3528(0x2a7)](_0x58d5e4);}['getMember'](_0x1ad7fc,_0x246979){const _0x85fd62=_0x17671e,_0x3923b2=this[_0x85fd62(0x3cd)][_0x85fd62(0x2a7)](_0x1ad7fc);if(_0x3923b2)return _0x3923b2[_0x85fd62(0x20f)](_0x246979);}[_0x17671e(0x42e)](_0x34773e){const _0x33f4ba=_0x17671e,_0x422013=this['_roomMembers'][_0x33f4ba(0x2a7)](_0x34773e);_0x422013&&(_0x422013['dispose'](),this[_0x33f4ba(0x3cd)][_0x33f4ba(0x430)](_0x34773e));}[_0x17671e(0x37d)](){const _0x418731=_0x17671e;this['_roomMembers']['forEach'](_0x116997=>_0x116997[_0x418731(0x37d)]()),this[_0x418731(0x3cd)][_0x418731(0x613)]();}},exports[_0x17671e(0x4bf)]=ti([Pt(0x0,a[_0x17671e(0x4fc)]),Pt(0x1,a[_0x17671e(0x52e)](a[_0x17671e(0x40b)]))],exports[_0x17671e(0x4bf)]);class ni extends a['Disposable']{constructor(){super(...arguments),I(this,'_members',new Map());}[_0x17671e(0x37d)](){const _0x23ed77=_0x17671e;this[_0x23ed77(0x43d)][_0x23ed77(0x613)]();}[_0x17671e(0x287)](_0x80460){const _0x5af7a1=_0x17671e;this[_0x5af7a1(0x43d)][_0x5af7a1(0x4da)](_0x80460[_0x5af7a1(0x337)],_0x80460);}[_0x17671e(0x64e)](_0x239caa){const _0x309038=_0x17671e;this[_0x309038(0x43d)]['delete'](_0x239caa);}[_0x17671e(0x20f)](_0x362cd6){const _0x20f41f=_0x17671e;return this[_0x20f41f(0x43d)][_0x20f41f(0x2a7)](_0x362cd6);}['getAllMembers'](){const _0x78aef3=_0x17671e;return Array[_0x78aef3(0x601)](this[_0x78aef3(0x43d)][_0x78aef3(0x3d5)]());}}var ii=Object[_0x17671e(0x545)],si=Object['getOwnPropertyDescriptor'],ri=(_0x480a47,_0x2b4da,_0x14687c,_0xc5c2f4)=>{const _0xb05c92=_0x17671e;for(var _0xae1a14=_0xc5c2f4>0x1?void 0x0:_0xc5c2f4?si(_0x2b4da,_0x14687c):_0x2b4da,_0x2802ce=_0x480a47[_0xb05c92(0x367)]-0x1,_0x1698f3;_0x2802ce>=0x0;_0x2802ce--)(_0x1698f3=_0x480a47[_0x2802ce])&&(_0xae1a14=(_0xc5c2f4?_0x1698f3(_0x2b4da,_0x14687c,_0xae1a14):_0x1698f3(_0xae1a14))||_0xae1a14);return _0xc5c2f4&&_0xae1a14&&ii(_0x2b4da,_0x14687c,_0xae1a14),_0xae1a14;},de=(_0x5af077,_0x2db83d)=>(_0x146964,_0x4ebc85)=>_0x2db83d(_0x146964,_0x4ebc85,_0x5af077),re=(_0x68ca96=>(_0x68ca96[_0x68ca96[_0x17671e(0x560)]=0x0]=_0x17671e(0x560),_0x68ca96[_0x68ca96[_0x17671e(0x58f)]=0x1]=_0x17671e(0x58f),_0x68ca96[_0x68ca96[_0x17671e(0x333)]=0x2]=_0x17671e(0x333),_0x68ca96[_0x68ca96['ONLINE']=0x3]=_0x17671e(0x616),_0x68ca96))(re||{});exports[_0x17671e(0x271)]=class extends a[_0x17671e(0x2c4)]{constructor(_0x8f21a3,_0x18fb3c,_0x28ae07,_0x340149,_0x447bd7,_0x205836,_0xa5654d,_0x3a8694,_0x86be8d,_0x595aee){const _0x39a6f1=_0x17671e;super(),I(this,_0x39a6f1(0x3cc),new A['BehaviorSubject'](0x0)),I(this,_0x39a6f1(0x3b1),this['_sessionStatus$'][_0x39a6f1(0x3b4)]()),I(this,'_event$',new A[(_0x39a6f1(0x4c2))]()),I(this,_0x39a6f1(0x4c4),this[_0x39a6f1(0x4cf)]['asObservable']()),I(this,_0x39a6f1(0x4c5)),I(this,_0x39a6f1(0x46c)),I(this,'_collaborationTimeoutTimer'),I(this,'_shouldReportTelemetry',!0x1),I(this,'_telemetryInfo',null),(this[_0x39a6f1(0x5be)]=_0x8f21a3,this[_0x39a6f1(0x3f4)]=_0x28ae07,this[_0x39a6f1(0x674)]=_0x340149,this[_0x39a6f1(0x671)]=_0x447bd7,this[_0x39a6f1(0x573)]=_0x205836,this['_localeService']=_0xa5654d,this[_0x39a6f1(0x58c)]=_0x3a8694,this[_0x39a6f1(0x5ef)]=_0x86be8d,this[_0x39a6f1(0x622)]=_0x595aee,this[_0x39a6f1(0x237)]=!!this[_0x39a6f1(0x622)],_0x18fb3c[_0x39a6f1(0x42f)](A[_0x39a6f1(0x500)](this[_0x39a6f1(0x52d)]))[_0x39a6f1(0x383)](_0x4abaae=>{const _0x407b98=_0x39a6f1;var _0x162260;typeof _0x4abaae>'u'||(this[_0x407b98(0x4c5)]=_0x4abaae,_0x4abaae?(this[_0x407b98(0x2c3)](_0x4abaae),this[_0x407b98(0x46c)]=_0x4abaae[_0x407b98(0x4a2)]['subscribe'](_0xa2f705=>{const _0x546591=_0x407b98;_0xa2f705[_0x546591(0x3eb)]===this[_0x546591(0x5be)]&&this[_0x546591(0x661)](_0xa2f705);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x407b98(0x3cc)][_0x407b98(0x2de)](0x2),(_0x162260=this['_socketMessageSubscription'])==null||_0x162260['unsubscribe'](),this[_0x407b98(0x46c)]=null));}),this[_0x39a6f1(0x5f1)](this['_beforeCloseService']['registerOnClose'](()=>{const _0x226cad=_0x39a6f1;var _0x109bac;(_0x109bac=this[_0x226cad(0x4c5)])==null||_0x109bac[_0x226cad(0x2cb)]({'cmd':G['LEAVE'],'data':{'roomID':this[_0x226cad(0x5be)]}});})));}get[_0x17671e(0x4e9)](){const _0x533ad7=_0x17671e;return this[_0x533ad7(0x3cc)][_0x533ad7(0x2d9)]();}[_0x17671e(0x625)](){const _0x4af27a=_0x17671e;var _0x53d333,_0x17afc4;return(_0x17afc4=(_0x53d333=this[_0x4af27a(0x4c5)])==null?void 0x0:_0x53d333[_0x4af27a(0x337)])!=null?_0x17afc4:null;}[_0x17671e(0x37d)](){const _0x5d2640=_0x17671e;super[_0x5d2640(0x37d)](),this[_0x5d2640(0x52d)][_0x5d2640(0x2de)](),this[_0x5d2640(0x52d)][_0x5d2640(0x409)]();}[_0x17671e(0x250)](){const _0x155441=_0x17671e;var _0x40dcc4,_0x2f1ba9;this[_0x155441(0x428)](),(_0x40dcc4=this['_socket'])==null||_0x40dcc4[_0x155441(0x2cb)]({'cmd':G[_0x155441(0x398)],'data':{'roomID':this[_0x155441(0x5be)]}}),(_0x2f1ba9=this[_0x155441(0x4c5)])==null||_0x2f1ba9[_0x155441(0x250)](),this[_0x155441(0x4cf)]['complete'](),this[_0x155441(0x3cc)][_0x155441(0x409)](),this[_0x155441(0x37d)]();}[_0x17671e(0x661)](_0x205810){const _0x5ba707=_0x17671e;_0x205810[_0x5ba707(0x3f5)]===G[_0x5ba707(0x2fc)]?this['_onJoinRoomEvent'](_0x205810):_0x205810[_0x5ba707(0x3f5)]===G[_0x5ba707(0x334)]&&this['_onRecvEvent'](_0x205810);}[_0x17671e(0x2c3)](_0x1eed8c){const _0x3ae72a=_0x17671e;this[_0x3ae72a(0x3cc)][_0x3ae72a(0x2de)](0x1),_0x1eed8c[_0x3ae72a(0x2cb)]({'cmd':G[_0x3ae72a(0x2fc)],'routeKey':this[_0x3ae72a(0x5be)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x17671e(0x479)](_0xbc6dc4){const _0x57d5cf=_0x17671e;var _0x401b0a;if(_0xbc6dc4[_0x57d5cf(0x546)]===Ct[_0x57d5cf(0x533)]){this[_0x57d5cf(0x671)][_0x57d5cf(0x30f)]({'type':Se['MessageType'][_0x57d5cf(0x4b0)],'content':this[_0x57d5cf(0x457)]['t'](_0x57d5cf(0x511))}),this[_0x57d5cf(0x3cc)][_0x57d5cf(0x2de)](0x2);return;}this[_0x57d5cf(0x3cc)]['next'](0x3);const _0xf0127b=(_0x401b0a=_0xbc6dc4[_0x57d5cf(0x1e9)][_0x57d5cf(0x2bb)][this[_0x57d5cf(0x5be)]])==null?void 0x0:_0x401b0a['members'];_0xf0127b&&_0xf0127b[_0x57d5cf(0x5ea)](_0x58643b=>this[_0x57d5cf(0x58c)]['updateMember'](this['_unitID'],_0x58643b));}[_0x17671e(0x534)](_0x339e4a){const _0x5ab8a7=_0x17671e;try{const _0x48b812=_0x339e4a[_0x5ab8a7(0x1e9)];switch(_0x48b812[_0x5ab8a7(0x3ee)]){case p[_0x5ab8a7(0x2d6)]['USERS_ENTER']:this[_0x5ab8a7(0x51a)](_0x48b812),this[_0x5ab8a7(0x4cf)]['next'](_0x48b812);break;case p[_0x5ab8a7(0x2d6)][_0x5ab8a7(0x63a)]:this[_0x5ab8a7(0x4ec)](_0x48b812),this[_0x5ab8a7(0x4cf)][_0x5ab8a7(0x2de)](_0x48b812);break;case p[_0x5ab8a7(0x2d6)][_0x5ab8a7(0x1eb)]:case p[_0x5ab8a7(0x2d6)]['CHANGESET_SHOULD_RETRY']:this[_0x5ab8a7(0x456)](),this[_0x5ab8a7(0x46f)](),this['_event$']['next'](_0x48b812);break;case p[_0x5ab8a7(0x2d6)][_0x5ab8a7(0x231)]:this[_0x5ab8a7(0x3f4)]['error']('save\x20fail\x20reason\x20is\x20'+JSON[_0x5ab8a7(0x65e)](_0x48b812)),this[_0x5ab8a7(0x4cf)][_0x5ab8a7(0x2de)](_0x48b812);break;case p[_0x5ab8a7(0x2d6)][_0x5ab8a7(0x4fb)]:this[_0x5ab8a7(0x5ef)][_0x5ab8a7(0x535)](_0x48b812[_0x5ab8a7(0x1e9)]),this['_event$'][_0x5ab8a7(0x2de)](_0x48b812);break;default:this[_0x5ab8a7(0x4cf)][_0x5ab8a7(0x2de)](_0x48b812);}}catch(_0x34e3b7){this[_0x5ab8a7(0x3f4)][_0x5ab8a7(0x2c9)](_0x34e3b7,_0x339e4a);}}[_0x17671e(0x51a)](_0x3e1a31){const _0x53cb0d=_0x17671e;this[_0x53cb0d(0x58c)][_0x53cb0d(0x287)](this[_0x53cb0d(0x5be)],_0x3e1a31[_0x53cb0d(0x1e9)]);}[_0x17671e(0x4ec)](_0x5f3524){const _0x415230=_0x17671e;this[_0x415230(0x58c)][_0x415230(0x64e)](this[_0x415230(0x5be)],_0x5f3524[_0x415230(0x1e9)]['memberID']);}async[_0x17671e(0x2cb)](_0x2ea2ab,_0x5528a4){const _0x211f11=_0x17671e;if(this['sessionStatus']!==0x3||!this[_0x211f11(0x4c5)])throw new Error(_0x211f11(0x426));try{_0x2ea2ab[_0x211f11(0x3ee)]===p['CollaborationEvent']['SUBMIT_CHANGESET']&&(this[_0x211f11(0x3dd)](),this[_0x211f11(0x65f)](_0x2ea2ab)),this['_socket'][_0x211f11(0x2cb)]({'cmd':G['INGEST'],'routeKey':_0x5528a4,'routeType':'','data':_0x2ea2ab});}catch(_0x5d6d36){this[_0x211f11(0x3f4)][_0x211f11(0x2c9)](_0x5d6d36);}}[_0x17671e(0x3dd)](){const _0x285a0b=_0x17671e;var _0x5d8906;this[_0x285a0b(0x42b)]=window[_0x285a0b(0x648)](()=>{const _0x565978=_0x285a0b;this[_0x565978(0x42b)]=null,this[_0x565978(0x671)][_0x565978(0x30f)]({'type':Se['MessageType'][_0x565978(0x280)],'content':this[_0x565978(0x457)]['t'](_0x565978(0x66f))});},(_0x5d8906=this[_0x285a0b(0x573)]['getConfig'](It))!=null?_0x5d8906:tn);}[_0x17671e(0x46f)](){const _0xaa289d=_0x17671e;this[_0xaa289d(0x42b)]&&(clearTimeout(this[_0xaa289d(0x42b)]),this['_collaborationTimeoutTimer']=null);}[_0x17671e(0x65f)](_0x5d142e){const _0x4c1d39=_0x17671e;if(!this[_0x4c1d39(0x237)])return;const {data:_0x2502b4}=_0x5d142e,{unitID:_0x10cdf8,changeset:_0x5757cd}=_0x2502b4,{mutations:_0x590c64,type:_0x45dde4}=_0x5757cd;this[_0x4c1d39(0x22c)]={'unitId':_0x10cdf8,'type':_0x45dde4,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':Zn(_0x590c64)};}[_0x17671e(0x456)](){const _0x4c28a4=_0x17671e;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x4c28a4(0x3f4)][_0x4c28a4(0x2c9)]('[CollaborationSession]',_0x4c28a4(0x25a));return;}this[_0x4c28a4(0x22c)][_0x4c28a4(0x676)]=performance[_0x4c28a4(0x2a4)](),this[_0x4c28a4(0x22c)][_0x4c28a4(0x3a1)]=this['_telemetryInfo'][_0x4c28a4(0x676)]-this[_0x4c28a4(0x22c)]['startTime'],this[_0x4c28a4(0x622)][_0x4c28a4(0x5fc)](Jn,this[_0x4c28a4(0x22c)]),this[_0x4c28a4(0x22c)]=null;}}[_0x17671e(0x428)](){this['_telemetryInfo']=null;}},exports[_0x17671e(0x271)]=ri([de(0x2,a['ILogService']),de(0x3,te[_0x17671e(0x502)]),de(0x4,te['IMessageService']),de(0x5,a[_0x17671e(0x505)]),de(0x6,a[_0x17671e(0x52e)](a[_0x17671e(0x530)])),de(0x7,a[_0x17671e(0x52e)](exports[_0x17671e(0x4bf)])),de(0x8,a[_0x17671e(0x52e)](bt)),de(0x9,a[_0x17671e(0x45e)](Nn['ITelemetryService']))],exports[_0x17671e(0x271)]);var oi=Object['defineProperty'],ai=Object[_0x17671e(0x47f)],ci=(_0x27bac8,_0x18caa1,_0x1db1c4,_0x37e2ae)=>{for(var _0x48f7d5=_0x37e2ae>0x1?void 0x0:_0x37e2ae?ai(_0x18caa1,_0x1db1c4):_0x18caa1,_0x4b3da6=_0x27bac8['length']-0x1,_0x2d50b1;_0x4b3da6>=0x0;_0x4b3da6--)(_0x2d50b1=_0x27bac8[_0x4b3da6])&&(_0x48f7d5=(_0x37e2ae?_0x2d50b1(_0x18caa1,_0x1db1c4,_0x48f7d5):_0x2d50b1(_0x48f7d5))||_0x48f7d5);return _0x37e2ae&&_0x48f7d5&&oi(_0x18caa1,_0x1db1c4,_0x48f7d5),_0x48f7d5;},Ce=(_0x4876e6,_0x3976dd)=>(_0x5dc786,_0x65f851)=>_0x3976dd(_0x5dc786,_0x65f851,_0x4876e6);exports[_0x17671e(0x355)]=class extends a[_0x17671e(0x632)]{constructor(_0x5f5aba,_0x32d59d,_0x32d2ea,_0x2c1601,_0x517e28,_0x4d009e){const _0xffa5b8=_0x17671e;super(),I(this,_0xffa5b8(0x600),new A[(_0xffa5b8(0x1e1))](void 0x0)),I(this,_0xffa5b8(0x460),this[_0xffa5b8(0x600)][_0xffa5b8(0x3b4)]()),I(this,_0xffa5b8(0x5b4),null),I(this,_0xffa5b8(0x439),new Map()),I(this,'_status$',new A[(_0xffa5b8(0x1e1))](re[_0xffa5b8(0x560)])),I(this,_0xffa5b8(0x3ca),this['_status$']['asObservable']()),I(this,'_socketReady',!0x1),I(this,_0xffa5b8(0x1f4)),I(this,_0xffa5b8(0x5d3),0x0),I(this,_0xffa5b8(0x322)),I(this,'_timeoutTimer'),(this['_injector']=_0x5f5aba,this[_0xffa5b8(0x457)]=_0x32d59d,this[_0xffa5b8(0x671)]=_0x32d2ea,this['_logService']=_0x2c1601,this[_0xffa5b8(0x573)]=_0x517e28,this[_0xffa5b8(0x1e0)]=_0x4d009e,this[_0xffa5b8(0x46d)]());}get[_0x17671e(0x4c5)](){const _0x508dce=_0x17671e;return this[_0x508dce(0x600)][_0x508dce(0x2d9)]();}[_0x17671e(0x46d)](){const _0x24ebac=_0x17671e;this[_0x24ebac(0x64f)](),this[_0x24ebac(0x567)]();}[_0x17671e(0x37d)](){const _0x8b47d3=_0x17671e;super[_0x8b47d3(0x37d)](),this[_0x8b47d3(0x439)][_0x8b47d3(0x5ea)](_0x4c15a4=>_0x4c15a4[_0x8b47d3(0x37d)]()),this[_0x8b47d3(0x439)][_0x8b47d3(0x613)](),this['_status$']['complete']();}async[_0x17671e(0x358)](_0xb4930){const _0x1180ae=_0x17671e;if(this[_0x1180ae(0x439)][_0x1180ae(0x44d)](_0xb4930))return this[_0x1180ae(0x439)]['get'](_0xb4930);this[_0x1180ae(0x400)]();const _0x21be2f=this[_0x1180ae(0x27e)][_0x1180ae(0x4ed)](exports['CollaborationSession'],_0xb4930,this[_0x1180ae(0x600)][_0x1180ae(0x3b4)]());return this[_0x1180ae(0x439)][_0x1180ae(0x4da)](_0xb4930,_0x21be2f),_0x21be2f;}[_0x17671e(0x260)](_0x208309){const _0x5665ab=_0x17671e;var _0x229f49;const _0x2a6476=this[_0x5665ab(0x439)][_0x5665ab(0x2a7)](_0x208309);_0x2a6476&&(this[_0x5665ab(0x439)][_0x5665ab(0x430)](_0x208309),_0x2a6476['close']()),this[_0x5665ab(0x439)]['size']||(_0x229f49=this['_socket'])==null||_0x229f49[_0x5665ab(0x250)]();}[_0x17671e(0x544)](){const _0xccf549=_0x17671e;this[_0xccf549(0x5d3)]=0x0,this[_0xccf549(0x1f4)]!=null&&(clearTimeout(this[_0xccf549(0x1f4)]),this[_0xccf549(0x1f4)]=null),this[_0xccf549(0x614)]();}[_0x17671e(0x2ec)](){const _0x482d31=_0x17671e;var _0x3ecf55,_0x104971;const _0x39c2c5=this[_0x482d31(0x573)]['getConfig'](Qt),_0x256b46=this['_configService'][_0x482d31(0x2cf)](ne),_0x2b1247=(_0x104971=(_0x3ecf55=_0x256b46==null?void 0x0:_0x256b46[_0x482d31(0x51e)])!=null?_0x3ecf55:_0x39c2c5)!=null?_0x104971:Hn,_0x172582=this[_0x482d31(0x1e0)][_0x482d31(0x509)](_0x2b1247);return this[_0x482d31(0x5b4)]=_0x172582,_0x172582;}[_0x17671e(0x400)](){const _0x2bf022=_0x17671e;var _0x2b05da,_0x530ab8;try{const _0x4e632d=(_0x530ab8=(_0x2b05da=this[_0x2bf022(0x4c5)])!=null?_0x2b05da:this[_0x2bf022(0x5b4)])!=null?_0x530ab8:this[_0x2bf022(0x2ec)]();if(_0x4e632d){const _0x59364c=_0x4e632d[_0x2bf022(0x2cb)];_0x4e632d[_0x2bf022(0x2cb)]=_0x46ec31=>(this[_0x2bf022(0x2f4)](),_0x59364c[_0x2bf022(0x40e)](_0x4e632d,[_0x46ec31])),_0x4e632d[_0x2bf022(0x4a2)][_0x2bf022(0x383)](_0x1c2c4d=>this[_0x2bf022(0x604)](_0x4e632d,_0x1c2c4d)),_0x4e632d[_0x2bf022(0x23d)]['pipe'](V[_0x2bf022(0x5d9)](0x1))[_0x2bf022(0x383)](_0x45d39f=>this['_logService'][_0x2bf022(0x2c9)](_0x2bf022(0x5b7),_0x45d39f)),_0x4e632d[_0x2bf022(0x414)]['pipe'](V[_0x2bf022(0x5d9)](0x1))[_0x2bf022(0x383)](()=>{const _0x19cd54=_0x2bf022;this[_0x19cd54(0x30b)](_0x4e632d);}),_0x4e632d[_0x2bf022(0x445)]['pipe'](V[_0x2bf022(0x5d9)](0x1))[_0x2bf022(0x383)](_0x55f130=>{const _0x26333d=_0x2bf022;this[_0x26333d(0x3f4)]['debug'](_0x26333d(0x302),_0x26333d(0x2b2),_0x55f130),this[_0x26333d(0x29d)]();});}}catch(_0x4ddfbb){this[_0x2bf022(0x3f4)]['error'](_0x4ddfbb),this[_0x2bf022(0x29d)]();}}['_onConnectionOpen'](_0x8bb5d4){const _0x2f07fb=_0x17671e;this['_logService'][_0x2f07fb(0x597)]('[CollaborationSessionService]',_0x2f07fb(0x53f)),_0x8bb5d4['send']({'cmd':G['HELLO']}),this[_0x2f07fb(0x2f4)]();}['_listenToOfflineEvent'](){const _0x272825=_0x17671e;window[_0x272825(0x641)](_0x272825(0x633),()=>this[_0x272825(0x60e)]());}[_0x17671e(0x60e)](){const _0x5029c0=_0x17671e;this[_0x5029c0(0x3b9)]=!0x1,this[_0x5029c0(0x5b4)]=null,this['_status$'][_0x5029c0(0x2de)](re['OFFLINE']),this['_socket$'][_0x5029c0(0x2de)](null),this[_0x5029c0(0x349)](),this[_0x5029c0(0x53b)]();}[_0x17671e(0x29d)](){const _0x3fc538=_0x17671e;var _0x264050;this[_0x3fc538(0x60e)](),this[_0x3fc538(0x5d3)]<((_0x264050=this[_0x3fc538(0x573)][_0x3fc538(0x2cf)](nn))!=null?_0x264050:Wn)?(this[_0x3fc538(0x671)]['show']({'key':'collaboration-session-retry','type':Se[_0x3fc538(0x393)][_0x3fc538(0x4b0)],'content':this[_0x3fc538(0x457)]['t'](_0x3fc538(0x61e))}),this[_0x3fc538(0x614)]()):this[_0x3fc538(0x671)]['show']({'key':_0x3fc538(0x56c),'type':Se['MessageType'][_0x3fc538(0x280)],'content':this[_0x3fc538(0x457)]['t']('session.connection-failed')});}[_0x17671e(0x567)](){const _0x4af938=_0x17671e,_0x17454e=()=>{const _0x9719c9=_0x35f6;this[_0x9719c9(0x4c5)]||this['reconnect']();},_0x5a7de1=()=>{const _0x444f3d=_0x35f6;this['_socket']||document[_0x444f3d(0x22a)]===_0x444f3d(0x288)||this[_0x444f3d(0x544)]();};window[_0x4af938(0x641)](_0x4af938(0x28f),_0x17454e),document[_0x4af938(0x641)](_0x4af938(0x2f3),_0x5a7de1);}[_0x17671e(0x614)](){const _0x4544df=_0x17671e;var _0x155f73;const _0x493f35=this[_0x4544df(0x5d3)],_0x30e9f8=this[_0x4544df(0x573)]['getConfig'](ne),_0x3d248b=_0x493f35===0x0?0x0:((_0x155f73=_0x30e9f8==null?void 0x0:_0x30e9f8[_0x4544df(0x4b2)])!=null?_0x155f73:kn)*0x2**_0x493f35;this['_retryConnectingTimer']=window[_0x4544df(0x648)](()=>{const _0x54137f=_0x4544df;clearTimeout(this[_0x54137f(0x1f4)]),this[_0x54137f(0x1f4)]=null,this[_0x54137f(0x400)]();},_0x3d248b),this[_0x4544df(0x5d3)]+=0x1;}[_0x17671e(0x604)](_0x5b37db,_0x59ab89){const _0xf70f10=_0x17671e,{cmd:_0x503106}=_0x59ab89;_0x503106===G[_0xf70f10(0x3a3)]&&!this[_0xf70f10(0x3b9)]&&(_0x5b37db[_0xf70f10(0x337)]=_0x59ab89[_0xf70f10(0x1e9)]['memberID'],this[_0xf70f10(0x600)][_0xf70f10(0x2de)](_0x5b37db),this[_0xf70f10(0x2b0)][_0xf70f10(0x2de)](re['ONLINE']),this[_0xf70f10(0x3b9)]=!0x0,this[_0xf70f10(0x5b4)]=null),_0x503106===G[_0xf70f10(0x608)]&&this[_0xf70f10(0x349)](),this['_rescheduleHeartbeat']();}[_0x17671e(0x2f4)](){const _0x36773f=_0x17671e;var _0x5ce802;this['_clearHeartbeatTimer'](),this[_0x36773f(0x322)]=window[_0x36773f(0x648)](()=>this['_sendHeartbeat'](),(_0x5ce802=this[_0x36773f(0x573)]['getConfig'](en))!=null?_0x5ce802:Bn);}[_0x17671e(0x3fd)](){const _0x4e921d=_0x17671e;this[_0x4e921d(0x4c5)][_0x4e921d(0x2cb)]({'cmd':G[_0x4e921d(0x608)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0xd8cdce=_0x17671e;var _0x389ae;this['_timeoutTimer']=window[_0xd8cdce(0x648)](()=>this[_0xd8cdce(0x29d)](),(_0x389ae=this[_0xd8cdce(0x573)]['getConfig'](It))!=null?_0x389ae:tn);}[_0x17671e(0x53b)](){const _0xb2c456=_0x17671e;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0xb2c456(0x322)]),this[_0xb2c456(0x322)]=null);}[_0x17671e(0x349)](){const _0xadabe9=_0x17671e;this[_0xadabe9(0x241)]!=null&&(clearTimeout(this[_0xadabe9(0x241)]),this[_0xadabe9(0x241)]=null);}},exports[_0x17671e(0x355)]=ci([Ce(0x0,a['Inject'](a[_0x17671e(0x29a)])),Ce(0x1,a[_0x17671e(0x52e)](a[_0x17671e(0x530)])),Ce(0x2,te['IMessageService']),Ce(0x3,a['ILogService']),Ce(0x4,a[_0x17671e(0x505)]),Ce(0x5,Et)],exports['CollaborationSessionService']);var Y=[];for(var Xe=0x0;Xe<0x100;++Xe)Y['push']((Xe+0x100)[_0x17671e(0x401)](0x10)['slice'](0x1));function li(_0x32f97b,_0x10cf98=0x0){const _0x1ee00b=_0x17671e;return(Y[_0x32f97b[_0x10cf98+0x0]]+Y[_0x32f97b[_0x10cf98+0x1]]+Y[_0x32f97b[_0x10cf98+0x2]]+Y[_0x32f97b[_0x10cf98+0x3]]+'-'+Y[_0x32f97b[_0x10cf98+0x4]]+Y[_0x32f97b[_0x10cf98+0x5]]+'-'+Y[_0x32f97b[_0x10cf98+0x6]]+Y[_0x32f97b[_0x10cf98+0x7]]+'-'+Y[_0x32f97b[_0x10cf98+0x8]]+Y[_0x32f97b[_0x10cf98+0x9]]+'-'+Y[_0x32f97b[_0x10cf98+0xa]]+Y[_0x32f97b[_0x10cf98+0xb]]+Y[_0x32f97b[_0x10cf98+0xc]]+Y[_0x32f97b[_0x10cf98+0xd]]+Y[_0x32f97b[_0x10cf98+0xe]]+Y[_0x32f97b[_0x10cf98+0xf]])[_0x1ee00b(0x584)]();}var xe,hi=new Uint8Array(0x10);function _i(){const _0x2cc431=_0x17671e;if(!xe&&(xe=typeof crypto<'u'&&crypto[_0x2cc431(0x342)]&&crypto['getRandomValues'][_0x2cc431(0x254)](crypto),!xe))throw new Error(_0x2cc431(0x292));return xe(hi);}var ui=typeof crypto<'u'&&crypto[_0x17671e(0x2f8)]&&crypto[_0x17671e(0x2f8)][_0x17671e(0x254)](crypto);const Ut={'randomUUID':ui};function di(_0x18f014,_0x144c24,_0xb8d3b1){const _0x484ab=_0x17671e;if(Ut[_0x484ab(0x2f8)]&&!_0x144c24&&!_0x18f014)return Ut['randomUUID']();_0x18f014=_0x18f014||{};var _0x23daed=_0x18f014[_0x484ab(0x31d)]||(_0x18f014['rng']||_i)();return _0x23daed[0x6]=_0x23daed[0x6]&0xf|0x40,_0x23daed[0x8]=_0x23daed[0x8]&0x3f|0x80,li(_0x23daed);}var fi=Object['defineProperty'],vi=Object[_0x17671e(0x47f)],mi=(_0x438ce4,_0x1b2c26,_0x133324,_0x5057e2)=>{for(var _0x2b6bd0=_0x5057e2>0x1?void 0x0:_0x5057e2?vi(_0x1b2c26,_0x133324):_0x1b2c26,_0x5c1dd7=_0x438ce4['length']-0x1,_0x1c1183;_0x5c1dd7>=0x0;_0x5c1dd7--)(_0x1c1183=_0x438ce4[_0x5c1dd7])&&(_0x2b6bd0=(_0x5057e2?_0x1c1183(_0x1b2c26,_0x133324,_0x2b6bd0):_0x1c1183(_0x2b6bd0))||_0x2b6bd0);return _0x5057e2&&_0x2b6bd0&&fi(_0x1b2c26,_0x133324,_0x2b6bd0),_0x2b6bd0;},Je=(_0x104f8c,_0x45edb2)=>(_0x10b084,_0x3b9433)=>_0x45edb2(_0x10b084,_0x3b9433,_0x104f8c);let Be=class{constructor(_0x5377ed,_0xa1d79c,_0x28cf31){const _0x2f54c2=_0x17671e;this[_0x2f54c2(0x27e)]=_0x5377ed,this[_0x2f54c2(0x5b9)]=_0xa1d79c,this['_renderManagerService']=_0x28cf31;}[_0x17671e(0x4b4)](_0x1231f4){const _0x127d14=_0x17671e;this[_0x127d14(0x4f0)](_0x1231f4),this[_0x127d14(0x516)](_0x1231f4);}['transformRemoteChangeset'](_0x3488f2){const _0x235ebf=_0x17671e,{unitID:_0x13a17f}=_0x3488f2,_0x2914cb=this['_renderManagerService'][_0x235ebf(0x2e8)](_0x13a17f)['with'](Z[_0x235ebf(0x3ed)]),{redoCache:_0x1803b0}=_0x2914cb[_0x235ebf(0x215)]();if(_0x1803b0[_0x235ebf(0x367)]===0x0)return _0x3488f2;let _0x3b1d12=a[_0x235ebf(0x341)][_0x235ebf(0x574)](_0x3488f2[_0x235ebf(0x4a4)][0x0]);for(let _0x4831f6=0x0;_0x4831f6<_0x1803b0[_0x235ebf(0x367)];_0x4831f6++){const _0x4ce10e={'id':_0x235ebf(0x44b),'params':{..._0x1803b0[_0x4831f6]}},_0x1fad51=this[_0x235ebf(0x5b9)][_0x235ebf(0x207)](_0x3b1d12,_0x4ce10e,!0x1);if(p[_0x235ebf(0x3d1)](_0x1fad51))throw _0x1fad51[_0x235ebf(0x2c9)];_0x3b1d12=_0x1fad51[_0x235ebf(0x527)];}return{...a[_0x235ebf(0x341)][_0x235ebf(0x574)](_0x3488f2),'mutations':[_0x3b1d12]};}['_transformUndoRedoStack'](_0x3c05d9){const _0x80bf6b=_0x17671e,{unitID:_0x441143}=_0x3c05d9,_0x15fc03=this[_0x80bf6b(0x314)][_0x80bf6b(0x2e8)](_0x441143)['with'](Z[_0x80bf6b(0x3ed)]),{undoCache:_0x305072,redoCache:_0x4e176e}=_0x15fc03[_0x80bf6b(0x215)]();if(_0x305072[_0x80bf6b(0x367)]===0x0||_0x4e176e[_0x80bf6b(0x367)]===0x0)return;const _0x99a7e5=[],_0x29974c=[];let _0x4334db=a[_0x80bf6b(0x341)][_0x80bf6b(0x574)](_0x3c05d9[_0x80bf6b(0x4a4)][0x0]),_0x30e3cf=a['Tools']['deepClone'](_0x3c05d9[_0x80bf6b(0x4a4)][0x0]);for(let _0x1bbd8e=_0x305072[_0x80bf6b(0x367)]-0x1;_0x1bbd8e>=0x0;_0x1bbd8e--){const _0x478f75={'id':'doc.mutation.rich-text-editing','params':{..._0x305072[_0x1bbd8e]}},_0x4d4441={'id':_0x80bf6b(0x44b),'params':{..._0x4e176e[_0x1bbd8e]}},_0x19554a=this[_0x80bf6b(0x5b9)]['transformMutation'](_0x4334db,_0x478f75,!0x1),_0x29c416=this[_0x80bf6b(0x5b9)]['transformMutation'](_0x30e3cf,_0x4d4441,!0x1);if(p['isTransformMutationFailure'](_0x19554a))throw _0x19554a['error'];if(p[_0x80bf6b(0x3d1)](_0x29c416))throw _0x29c416[_0x80bf6b(0x2c9)];_0x99a7e5[_0x80bf6b(0x572)](_0x19554a[_0x80bf6b(0x491)][_0x80bf6b(0x4af)]),_0x29974c['unshift'](_0x29c416[_0x80bf6b(0x491)][_0x80bf6b(0x4af)]),_0x4334db=_0x19554a[_0x80bf6b(0x527)],_0x30e3cf=_0x29c416[_0x80bf6b(0x527)];}_0x15fc03[_0x80bf6b(0x4d0)]({'undoCache':_0x99a7e5,'redoCache':_0x29974c});}[_0x17671e(0x516)](_0x58f184){const _0x189ba7=_0x17671e,{unitID:_0x23d215}=_0x58f184,_0x5a145c=this[_0x189ba7(0x314)][_0x189ba7(0x2e8)](_0x23d215)[_0x189ba7(0x3d0)](Z[_0x189ba7(0x3ed)]),_0x517705=_0x5a145c[_0x189ba7(0x55e)]();if(_0x517705==null)return;const _0x31f180=[{'id':_0x189ba7(0x44b),'params':{'unitId':_0x58f184[_0x189ba7(0x219)],'actions':null,'textRanges':[_0x517705]}}],_0x143105=this['_transformService'][_0x189ba7(0x1f7)](_0x58f184,_0x31f180);if(!p['isTransformMutationsWithChangesetSuccess'](_0x143105))throw _0x143105[_0x189ba7(0x2c9)];const _0xf94a9f=_0x143105[_0x189ba7(0x491)][0x0][_0x189ba7(0x4af)][_0x189ba7(0x57b)];Array['isArray'](_0xf94a9f)&&_0xf94a9f[_0x189ba7(0x367)]&&_0x5a145c[_0x189ba7(0x5d6)](_0xf94a9f[0x0]);}};Be=mi([Je(0x0,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),Je(0x1,p['ITransformService']),Je(0x2,K[_0x17671e(0x4f9)])],Be);var pi=Object['defineProperty'],Si=Object[_0x17671e(0x47f)],gi=(_0x3e962f,_0x172023,_0x313412,_0x5a6427)=>{const _0x10eb75=_0x17671e;for(var _0x3939a3=_0x5a6427>0x1?void 0x0:_0x5a6427?Si(_0x172023,_0x313412):_0x172023,_0x422bb9=_0x3e962f[_0x10eb75(0x367)]-0x1,_0x4c2778;_0x422bb9>=0x0;_0x422bb9--)(_0x4c2778=_0x3e962f[_0x422bb9])&&(_0x3939a3=(_0x5a6427?_0x4c2778(_0x172023,_0x313412,_0x3939a3):_0x4c2778(_0x3939a3))||_0x3939a3);return _0x5a6427&&_0x3939a3&&pi(_0x172023,_0x313412,_0x3939a3),_0x3939a3;},we=(_0x5ec5ad,_0x32f4e8)=>(_0x17dea8,_0x6080d8)=>_0x32f4e8(_0x17dea8,_0x6080d8,_0x5ec5ad);exports['LocalCacheService']=class extends a[_0x17671e(0x632)]{constructor(_0x404e52,_0x19530a,_0x39c615,_0x5e10bb,_0x53067e){const _0x2c1625=_0x17671e;super(),I(this,_0x2c1625(0x4ce),new Map()),I(this,_0x2c1625(0x5ac),new Map()),I(this,'_disabled',!0x1),(this['_configService']=_0x404e52,this[_0x2c1625(0x64c)]=_0x19530a,this[_0x2c1625(0x674)]=_0x39c615,this[_0x2c1625(0x457)]=_0x5e10bb,this[_0x2c1625(0x44a)]=_0x53067e,this['_setupBeforeClosingHandler']());}[_0x17671e(0x1f5)](){const _0x1cf49f=_0x17671e;this[_0x1cf49f(0x458)]=!0x0;}[_0x17671e(0x4be)](){this['_disabled']=!0x1;}[_0x17671e(0x37d)](){const _0x2414c3=_0x17671e;this[_0x2414c3(0x4fe)]()[_0x2414c3(0x2a2)](()=>super[_0x2414c3(0x37d)]());}async[_0x17671e(0x3d3)](_0x135e52){const _0x17ddef=_0x17671e;return this[_0x17ddef(0x458)]?null:this[_0x17ddef(0x64c)][_0x17ddef(0x62e)](Mt(_0x135e52));}async[_0x17671e(0x381)](_0xcc7fd2,_0x1ef4e3){const _0x32dfd0=_0x17671e;return!!this[_0x32dfd0(0x64c)][_0x32dfd0(0x339)](_0xcc7fd2,_0x1ef4e3);}[_0x17671e(0x387)](_0x5a457e,_0x2a1466,_0x217893,_0x398fbc){const _0x25624e=_0x17671e,_0x333a8b=this['_revisionService'][_0x25624e(0x4c0)](_0x5a457e);this['_cachedData'][_0x25624e(0x4da)](_0x5a457e,{'unitID':_0x5a457e,'type':_0x2a1466,'awaitingChangeset':_0x217893,'mutations':_0x398fbc,'rev':_0x333a8b}),this['_saveTaskMap']['has'](_0x5a457e)||this[_0x25624e(0x380)](_0x5a457e);}[_0x17671e(0x380)](_0x449497){const _0x61ce58=_0x17671e,_0x47dad9=this[_0x61ce58(0x25b)]();_0x47dad9===0x0?this['_saveCache'](_0x449497):this[_0x61ce58(0x5ac)]['set'](_0x449497,setTimeout(()=>this[_0x61ce58(0x5d8)](_0x449497),_0x47dad9));}['_getSaveTimeout'](){const _0x1f29fd=_0x17671e;var _0x9643dc;return(_0x9643dc=this['_configService'][_0x1f29fd(0x2cf)](sn))!=null?_0x9643dc:Fn;}[_0x17671e(0x5d8)](_0x15c55d){const _0x2d61a2=_0x17671e,_0x3bf087=this[_0x2d61a2(0x5ac)]['get'](_0x15c55d);return _0x3bf087!==void 0x0&&window['clearTimeout'](_0x3bf087),this[_0x2d61a2(0x64c)][_0x2d61a2(0x339)](Mt(_0x15c55d),this[_0x2d61a2(0x4ce)][_0x2d61a2(0x2a7)](_0x15c55d))[_0x2d61a2(0x2a2)](()=>this[_0x2d61a2(0x5ac)][_0x2d61a2(0x430)](_0x15c55d));}async[_0x17671e(0x4fe)](){const _0x3dc66b=_0x17671e,_0x1d93a9=[];this[_0x3dc66b(0x5ac)][_0x3dc66b(0x5ea)]((_0x1f0a48,_0x123d41)=>{const _0x2cd652=_0x3dc66b;window[_0x2cd652(0x2d5)](_0x1f0a48),_0x1d93a9[_0x2cd652(0x263)](this[_0x2cd652(0x5d8)](_0x123d41)['then'](()=>{const _0x1b96d7=_0x2cd652;this['_saveTaskMap'][_0x1b96d7(0x430)](_0x123d41);}));}),await Promise['all'](_0x1d93a9);}['_setupBeforeClosingHandler'](){const _0x588af3=_0x17671e;this[_0x588af3(0x5f1)](this['_beforeCloseService'][_0x588af3(0x462)](()=>{const _0x310b22=_0x588af3;if(this[_0x310b22(0x5ac)][_0x310b22(0x2fa)])return this[_0x310b22(0x457)]['t'](_0x310b22(0x248));}));}},exports[_0x17671e(0x2f5)]=gi([we(0x0,a[_0x17671e(0x505)]),we(0x1,a[_0x17671e(0x639)]),we(0x2,te[_0x17671e(0x502)]),we(0x3,a[_0x17671e(0x52e)](a[_0x17671e(0x530)])),we(0x4,a[_0x17671e(0x52e)](p[_0x17671e(0x5e1)]))],exports['LocalCacheService']);function Mt(_0xbe2205){const _0x2ba76a=_0x17671e;return _0x2ba76a(0x490)+_0xbe2205;}var Ii=Object[_0x17671e(0x545)],Ci=Object['getOwnPropertyDescriptor'],Ei=(_0x561d03,_0x1d1833,_0x7ea196,_0x55a3e0)=>{const _0x4fea17=_0x17671e;for(var _0x4e0192=_0x55a3e0>0x1?void 0x0:_0x55a3e0?Ci(_0x1d1833,_0x7ea196):_0x1d1833,_0x530e90=_0x561d03[_0x4fea17(0x367)]-0x1,_0x110e9d;_0x530e90>=0x0;_0x530e90--)(_0x110e9d=_0x561d03[_0x530e90])&&(_0x4e0192=(_0x55a3e0?_0x110e9d(_0x1d1833,_0x7ea196,_0x4e0192):_0x110e9d(_0x4e0192))||_0x4e0192);return _0x55a3e0&&_0x4e0192&&Ii(_0x1d1833,_0x7ea196,_0x4e0192),_0x4e0192;},Ze=(_0x18053f,_0x3eb986)=>(_0x178cb1,_0x1de01f)=>_0x3eb986(_0x178cb1,_0x1de01f,_0x18053f);function bi(_0x33da5c){const _0xe27ae2=_0x17671e,{unitID:_0x2a1230,mutations:_0x4dd5b0}=_0x33da5c;return{'unitId':_0x2a1230,'subUnitId':_0x4dd5b0[0x0][_0xe27ae2(0x4af)]['subUnitId']};}let ke=class{constructor(_0x284cea,_0x5c9c94,_0x47a4da){const _0x425a11=_0x17671e;this[_0x425a11(0x27e)]=_0x284cea,this[_0x425a11(0x5b9)]=_0x5c9c94,this[_0x425a11(0x33c)]=_0x47a4da;}[_0x17671e(0x1dd)](_0x305dac){const _0x3a620b=_0x17671e;var _0xc56726,_0x191183,_0x2607c5,_0x331de9;const _0x151c9a=this[_0x3a620b(0x27e)][_0x3a620b(0x2a7)](k[_0x3a620b(0x5b6)]),{unitId:_0xa00422,subUnitId:_0x5d83ae}=bi(_0x305dac),_0x444ecb=_0x151c9a[_0x3a620b(0x476)](_0xa00422)['getCurrentSelections'](),_0x8eb9e6=(_0x191183=(_0xc56726=this[_0x3a620b(0x33c)]['getUnit'](_0xa00422))==null?void 0x0:_0xc56726['getActiveSheet']())==null?void 0x0:_0x191183[_0x3a620b(0x36a)]();if(_0x444ecb[_0x3a620b(0x367)]===0x0||!_0xa00422||!_0x5d83ae)return;const _0x43908a=[{'id':k['SetSelectionsOperation']['id'],'params':{'unitId':_0xa00422,'subUnitId':_0x8eb9e6,'selections':a[_0x3a620b(0x341)][_0x3a620b(0x574)](_0x444ecb)}}],_0x18edab=this['_transformService'][_0x3a620b(0x1f7)](_0x305dac,_0x43908a);if(!p[_0x3a620b(0x4df)](_0x18edab))throw _0x18edab[_0x3a620b(0x2c9)];const _0x1b3ce1=(_0x331de9=(_0x2607c5=_0x18edab[_0x3a620b(0x491)][0x0])==null?void 0x0:_0x2607c5[_0x3a620b(0x4af)])==null?void 0x0:_0x331de9[_0x3a620b(0x57c)];if(Array[_0x3a620b(0x385)](_0x1b3ce1)&&_0x1b3ce1[_0x3a620b(0x367)]){if(_0x1b3ce1['length']===_0x43908a[0x0][_0x3a620b(0x4af)][_0x3a620b(0x57c)][_0x3a620b(0x367)]&&_0x1b3ce1[_0x3a620b(0x539)]((_0xce3718,_0x5e63d9)=>a[_0x3a620b(0x227)][_0x3a620b(0x4c8)](_0xce3718['range'],_0x43908a[0x0]['params']['selections'][_0x5e63d9][_0x3a620b(0x3e6)])))return;this[_0x3a620b(0x27e)][_0x3a620b(0x2a7)](a['ICommandService'])[_0x3a620b(0x3c9)](k[_0x3a620b(0x4e3)]['id'],{'unitId':_0xa00422,'subUnitId':_0x8eb9e6,'selections':_0x1b3ce1});}}};ke=Ei([Ze(0x0,a['Inject'](a['Injector'])),Ze(0x1,p[_0x17671e(0x232)]),Ze(0x2,a['IUniverInstanceService'])],ke);const qe=a['createIdentifier'](_0x17671e(0x5f4));var _n=(_0x6eff2c=>(_0x6eff2c[_0x6eff2c[_0x17671e(0x3c4)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x6eff2c[_0x6eff2c[_0x17671e(0x650)]=0x1]=_0x17671e(0x650),_0x6eff2c))(_n||{});const At=0x7530,Nt=_0x17671e(0x452);class Ti extends a['Disposable']{constructor(){const _0x2f1fb2=_0x17671e;super(),I(this,_0x2f1fb2(0x37b),a[_0x2f1fb2(0x341)][_0x2f1fb2(0x3e7)]()),I(this,_0x2f1fb2(0x214),new Set()),I(this,'_unitOnClients',new Map()),I(this,_0x2f1fb2(0x25c),null),I(this,'_clearOtherTimers',new Map()),I(this,_0x2f1fb2(0x627),new Map()),this[_0x2f1fb2(0x422)]();}[_0x17671e(0x37d)](){const _0x50c246=_0x17671e;super['dispose'](),this[_0x50c246(0x20d)]['forEach']((_0x30937c,_0x759c3f)=>this[_0x50c246(0x4e8)](_0x759c3f)),this[_0x50c246(0x25c)]&&window[_0x50c246(0x1d4)](this[_0x50c246(0x25c)]);}[_0x17671e(0x5a4)](_0x381d9b){const _0x5aa251=_0x17671e;return this[_0x5aa251(0x461)](_0x381d9b)['pipe'](A['distinctUntilChanged']());}['editingUnit'](_0x5d3a17){const _0x4567db=_0x17671e;this['_selfUnitIDs']['size']===0x0&&this[_0x4567db(0x327)](),this[_0x4567db(0x214)][_0x4567db(0x27b)](_0x5d3a17),this[_0x4567db(0x5af)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x5d3a17],'isForwarded':!0x1});}[_0x17671e(0x4a6)](_0x48e4d5){const _0x3d55ca=_0x17671e;this['_selfUnitIDs']['delete'](_0x48e4d5),this[_0x3d55ca(0x214)][_0x3d55ca(0x2fa)]===0x0&&this[_0x3d55ca(0x25c)]&&window[_0x3d55ca(0x1d4)](this[_0x3d55ca(0x25c)]);}['_init'](){const _0x5d25a4=_0x17671e;this[_0x5d25a4(0x5f1)](a[_0x5d25a4(0x60a)](A['fromEvent'](window,_0x5d25a4(0x23a))[_0x5d25a4(0x383)](_0x5a592e=>{const _0x488834=_0x5d25a4;if(_0x5a592e['key']!==Nt||!_0x5a592e[_0x488834(0x332)])return;const _0x199502=JSON[_0x488834(0x634)](_0x5a592e[_0x488834(0x332)]);this[_0x488834(0x3cf)](_0x199502);}))),window[_0x5d25a4(0x641)](_0x5d25a4(0x5b2),()=>this[_0x5d25a4(0x5af)]({'type':0x1,'memberID':this[_0x5d25a4(0x37b)],'unitIDs':Array['from'](this[_0x5d25a4(0x214)])}));}[_0x17671e(0x3cf)](_0x5d8d54){const _0x3f6af0=_0x17671e;switch(_0x5d8d54[_0x3f6af0(0x224)]){case 0x0:this[_0x3f6af0(0x523)](_0x5d8d54);break;case 0x1:this['_handleLeaveEvent'](_0x5d8d54);break;case 0x2:this[_0x3f6af0(0x62c)](_0x5d8d54);break;}}[_0x17671e(0x523)](_0x27708b){const _0x389d48=_0x17671e,{unitIDs:_0x2b53b4,memberID:_0x2b7354,isForwarded:_0xc70b16}=_0x27708b;_0x2b53b4['forEach'](_0x4f1cf6=>{const _0x3d2c21=_0x35f6;if(!_0xc70b16&&this[_0x3d2c21(0x487)]['has'](_0x4f1cf6)&&this[_0x3d2c21(0x461)](_0x4f1cf6)[_0x3d2c21(0x2de)](0x1),!this[_0x3d2c21(0x487)][_0x3d2c21(0x44d)](_0x4f1cf6)||!this[_0x3d2c21(0x487)][_0x3d2c21(0x2a7)](_0x4f1cf6)[_0x3d2c21(0x44d)](_0x2b7354)){const _0x1fae96=this[_0x3d2c21(0x487)]['get'](_0x4f1cf6)||new Set();_0x1fae96[_0x3d2c21(0x27b)](_0x2b7354),this['_unitOnClients'][_0x3d2c21(0x4da)](_0x4f1cf6,_0x1fae96),this[_0x3d2c21(0x55f)](_0x2b7354);}}),_0xc70b16||this[_0x389d48(0x5af)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x389d48(0x214)]],'isForwarded':!0x0});}[_0x17671e(0x55f)](_0x2a2cc1){const _0x376f66=_0x17671e;this['_removeClearOtherTimer'](_0x2a2cc1);const _0x11d7b7=window[_0x376f66(0x648)](()=>{const _0x2a4ee6=_0x376f66;this[_0x2a4ee6(0x487)][_0x2a4ee6(0x5ea)](_0x214ca1=>{const _0x2e66b5=_0x2a4ee6;_0x214ca1[_0x2e66b5(0x430)](_0x2a2cc1);});},At*0x2);this[_0x376f66(0x20d)][_0x376f66(0x4da)](_0x2a2cc1,_0x11d7b7);}[_0x17671e(0x4e8)](_0x35ed69){const _0x1732f8=_0x17671e;if(this['_clearOtherTimers'][_0x1732f8(0x44d)](_0x35ed69)){const _0x1c655e=this[_0x1732f8(0x20d)][_0x1732f8(0x2a7)](_0x35ed69);_0x1c655e&&window[_0x1732f8(0x2d5)](_0x1c655e),this[_0x1732f8(0x20d)][_0x1732f8(0x4da)](_0x35ed69,null);}}[_0x17671e(0x609)](_0x1fff3a){const _0x1d57e1=_0x17671e,{memberID:_0x1b5f67,unitIDs:_0x13d5b6}=_0x1fff3a;_0x13d5b6[_0x1d57e1(0x5ea)](_0x5607fb=>{const _0x1f480d=_0x1d57e1;var _0x3fc07b;const _0x40b7c7=this[_0x1f480d(0x487)][_0x1f480d(0x2a7)](_0x5607fb);_0x40b7c7&&(_0x40b7c7[_0x1f480d(0x430)](_0x1b5f67),(_0x3fc07b=this['_ensureSubject'](_0x5607fb))==null||_0x3fc07b[_0x1f480d(0x2de)](_0x40b7c7[_0x1f480d(0x2fa)]===0x0?0x0:0x1));}),this[_0x1d57e1(0x4e8)](_0x1b5f67);}[_0x17671e(0x62c)](_0x229831){const _0x2fdbed=_0x17671e;this[_0x2fdbed(0x55f)](_0x229831[_0x2fdbed(0x337)]);}['_send'](_0x1adab3){const _0x2a19e0=_0x17671e;localStorage['setItem'](Nt,JSON[_0x2a19e0(0x65e)](_0x1adab3));}[_0x17671e(0x327)](){this['_heartbeatTimer']=window['setInterval'](()=>{const _0x163a91=_0x35f6;this[_0x163a91(0x5af)]({'type':0x2,'memberID':this[_0x163a91(0x37b)]});},At);}[_0x17671e(0x461)](_0x9a9134){const _0x3729b1=_0x17671e;return this[_0x3729b1(0x627)][_0x3729b1(0x44d)](_0x9a9134)||this['_unitStatus']['set'](_0x9a9134,new A[(_0x3729b1(0x1e1))](0x0)),this[_0x3729b1(0x627)][_0x3729b1(0x2a7)](_0x9a9134);}}var Ri=Object[_0x17671e(0x545)],yi=Object[_0x17671e(0x47f)],Oi=(_0x4f8f30,_0x1dae53,_0x6fcc79,_0x5897aa)=>{const _0x35573c=_0x17671e;for(var _0x2c0f7e=_0x5897aa>0x1?void 0x0:_0x5897aa?yi(_0x1dae53,_0x6fcc79):_0x1dae53,_0x1a64c6=_0x4f8f30[_0x35573c(0x367)]-0x1,_0xeaa026;_0x1a64c6>=0x0;_0x1a64c6--)(_0xeaa026=_0x4f8f30[_0x1a64c6])&&(_0x2c0f7e=(_0x5897aa?_0xeaa026(_0x1dae53,_0x6fcc79,_0x2c0f7e):_0xeaa026(_0x2c0f7e))||_0x2c0f7e);return _0x5897aa&&_0x2c0f7e&&Ri(_0x1dae53,_0x6fcc79,_0x2c0f7e),_0x2c0f7e;},Qe=(_0x420f4d,_0x40db9a)=>(_0x4feb8e,_0x358892)=>_0x40db9a(_0x4feb8e,_0x358892,_0x420f4d);let We=class{constructor(_0x54eb65,_0x1ef9e7,_0x163a39){const _0x559dc=_0x17671e;this[_0x559dc(0x27e)]=_0x54eb65,this[_0x559dc(0x5b9)]=_0x1ef9e7,this['_docStateChangeManagerService']=_0x163a39;}[_0x17671e(0x651)](_0xdb9a51){const _0x46a34d=_0x17671e;this[_0x46a34d(0x24c)](_0xdb9a51);}[_0x17671e(0x320)](_0x3fdd20){const _0x4a9d75=_0x17671e,{unitID:_0x175bc2}=_0x3fdd20,{collaboration:_0x93d06b}=this[_0x4a9d75(0x63f)][_0x4a9d75(0x22d)](_0x175bc2);if(_0x93d06b['length']===0x0)return _0x3fdd20;let _0x3fd547=a[_0x4a9d75(0x341)][_0x4a9d75(0x574)](_0x3fdd20[_0x4a9d75(0x4a4)][0x0]);for(let _0x341556=0x0;_0x341556<_0x93d06b[_0x4a9d75(0x367)];_0x341556++){const _0x31cd11={'id':_0x4a9d75(0x44b),'params':{'unitId':_0x93d06b[_0x341556][_0x4a9d75(0x678)],..._0x93d06b[_0x341556][_0x4a9d75(0x4f3)]}},_0x1f883a=this[_0x4a9d75(0x5b9)]['transformMutation'](_0x3fd547,_0x31cd11,!0x1);if(p['isTransformMutationFailure'](_0x1f883a))throw _0x1f883a[_0x4a9d75(0x2c9)];_0x3fd547=_0x1f883a[_0x4a9d75(0x527)];}return{...a[_0x4a9d75(0x341)]['deepClone'](_0x3fdd20),'mutations':[_0x3fd547]};}[_0x17671e(0x24c)](_0x398e2b){const _0x5ace3e=_0x17671e,{unitID:_0xdc9eb9}=_0x398e2b,{history:_0x42900b,collaboration:_0x3d5421}=this['_docStateChangeManagerService']['getStateCache'](_0xdc9eb9);if(_0x42900b['length']===0x0&&_0x3d5421[_0x5ace3e(0x367)]===0x0)return;const _0x321ff4=[],_0x13ddb2=[];let _0x24b08a=a[_0x5ace3e(0x341)][_0x5ace3e(0x574)](_0x398e2b['mutations'][0x0]),_0x4fe6b9=a[_0x5ace3e(0x341)][_0x5ace3e(0x574)](_0x398e2b[_0x5ace3e(0x4a4)][0x0]);for(let _0x26a1f9=_0x42900b[_0x5ace3e(0x367)]-0x1;_0x26a1f9>=0x0;_0x26a1f9--){const _0x4c9071={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x42900b[_0x26a1f9][_0x5ace3e(0x678)],..._0x42900b[_0x26a1f9]['undoState']}},_0x5cf760={'id':_0x5ace3e(0x44b),'params':{'unitId':_0x42900b[_0x26a1f9][_0x5ace3e(0x678)],..._0x42900b[_0x26a1f9][_0x5ace3e(0x4f3)]}},_0x2aa4b6=this[_0x5ace3e(0x5b9)][_0x5ace3e(0x207)](_0x24b08a,_0x4c9071,!0x1),_0x6766e1=this[_0x5ace3e(0x5b9)][_0x5ace3e(0x207)](_0x4fe6b9,_0x5cf760,!0x1);if(p['isTransformMutationFailure'](_0x2aa4b6))throw _0x2aa4b6['error'];if(p[_0x5ace3e(0x3d1)](_0x6766e1))throw _0x6766e1[_0x5ace3e(0x2c9)];_0x321ff4[_0x5ace3e(0x572)]({..._0x42900b[_0x26a1f9],'undoState':_0x2aa4b6[_0x5ace3e(0x491)][_0x5ace3e(0x4af)],'redoState':_0x6766e1[_0x5ace3e(0x491)][_0x5ace3e(0x4af)]}),_0x24b08a=_0x2aa4b6[_0x5ace3e(0x527)],_0x4fe6b9=_0x6766e1['m1Prime'];}_0x24b08a=a[_0x5ace3e(0x341)][_0x5ace3e(0x574)](_0x398e2b[_0x5ace3e(0x4a4)][0x0]),_0x4fe6b9=a[_0x5ace3e(0x341)][_0x5ace3e(0x574)](_0x398e2b[_0x5ace3e(0x4a4)][0x0]);for(let _0xf1833f=_0x3d5421[_0x5ace3e(0x367)]-0x1;_0xf1833f>=0x0;_0xf1833f--){const _0x2171fb={'id':_0x5ace3e(0x44b),'params':{'unitId':_0x3d5421[_0xf1833f][_0x5ace3e(0x678)],..._0x3d5421[_0xf1833f][_0x5ace3e(0x365)]}},_0x714698={'id':_0x5ace3e(0x44b),'params':{'unitId':_0x3d5421[_0xf1833f][_0x5ace3e(0x678)],..._0x3d5421[_0xf1833f]['redoState']}},_0x4e553b=this[_0x5ace3e(0x5b9)][_0x5ace3e(0x207)](_0x24b08a,_0x2171fb,!0x1),_0x53235e=this['_transformService'][_0x5ace3e(0x207)](_0x4fe6b9,_0x714698,!0x1);if(p[_0x5ace3e(0x3d1)](_0x4e553b))throw _0x4e553b[_0x5ace3e(0x2c9)];if(p[_0x5ace3e(0x3d1)](_0x53235e))throw _0x53235e[_0x5ace3e(0x2c9)];_0x13ddb2['unshift']({..._0x3d5421[_0xf1833f],'undoState':_0x4e553b[_0x5ace3e(0x491)]['params'],'redoState':_0x53235e['m2Prime'][_0x5ace3e(0x4af)]}),_0x24b08a=_0x4e553b[_0x5ace3e(0x527)],_0x4fe6b9=_0x53235e[_0x5ace3e(0x527)];}this['_docStateChangeManagerService'][_0x5ace3e(0x4ad)](_0xdc9eb9,{'history':_0x321ff4,'collaboration':_0x13ddb2});}};We=Oi([Qe(0x0,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),Qe(0x1,p['ITransformService']),Qe(0x2,a[_0x17671e(0x52e)](Z[_0x17671e(0x2bf)]))],We);function un(_0x567635){const _0x184d7c=_0x17671e;let _0x56bc29='';for(const _0x54bb40 of _0x567635){const {startOffset:_0x58e590,endOffset:_0x5a3a65,isActive:_0x7773a7,rangeType:_0x39b781,segmentId:_0x26f93b,segmentPage:_0x435346}=_0x54bb40;_0x56bc29[_0x184d7c(0x367)]&&(_0x56bc29+=','),_0x56bc29+=_0x58e590+':'+_0x5a3a65+':'+(_0x7773a7?'1':'0')+':'+_0x39b781+':'+_0x26f93b+':'+_0x435346;}return _0x56bc29;}function Di(_0x5c1051){const _0x53fbcc=_0x17671e,_0x3acbb7=_0x5c1051[_0x53fbcc(0x406)](','),_0x51c5ae=[];for(const _0x26a4c2 of _0x3acbb7){const [_0x255ae2,_0x344667,_0x4f277b,_0xc9d1d7,_0x255244,_0x22d59f]=_0x26a4c2[_0x53fbcc(0x406)](':');_0x51c5ae[_0x53fbcc(0x263)]({'startOffset':Number(_0x255ae2),'endOffset':Number(_0x344667),'collapsed':_0x255ae2===_0x344667,'isActive':_0x4f277b==='1','rangeType':_0xc9d1d7===a[_0x53fbcc(0x3f3)][_0x53fbcc(0x3c7)]?a[_0x53fbcc(0x3f3)]['TEXT']:a[_0x53fbcc(0x3f3)]['RECT'],'segmentId':typeof _0x255244==_0x53fbcc(0x3c3)?String(_0x255244):'','segmentPage':Number(_0x22d59f!=null?_0x22d59f:-0x1)});}return _0x51c5ae[_0x53fbcc(0x33a)](_0x36a60b=>_0x36a60b['isActive'])||(_0x51c5ae[0x0]['isActive']=!0x0),_0x51c5ae;}class Tt extends a[_0x17671e(0x2c4)]{constructor(){const _0x4e4185=_0x17671e;super(...arguments),I(this,_0x4e4185(0x64a),new A[(_0x4e4185(0x1e1))](null)),I(this,_0x4e4185(0x2c8),this['_collabCursorState$'][_0x4e4185(0x3b4)]());}[_0x17671e(0x2e5)](_0x2cd4a7){const _0x1f6db4=_0x17671e,{unitID:_0x576fe0,memberID:_0x3aca91,textRanges:_0x4c8c54}=_0x2cd4a7,_0x30b916=un(_0x4c8c54);if(_0x30b916==='')return;const _0x265fd8={'unitID':_0x576fe0,'memberID':_0x3aca91,'selection':_0x30b916};this['_collabCursorState$'][_0x1f6db4(0x2de)](_0x265fd8);}}var wi=Object['defineProperty'],Pi=Object['getOwnPropertyDescriptor'],Ui=(_0x549554,_0x27c643,_0x5c6ea2,_0x6f7da7)=>{const _0x9e30ad=_0x17671e;for(var _0x4e161b=_0x6f7da7>0x1?void 0x0:_0x6f7da7?Pi(_0x27c643,_0x5c6ea2):_0x27c643,_0x7c69d9=_0x549554[_0x9e30ad(0x367)]-0x1,_0x12c850;_0x7c69d9>=0x0;_0x7c69d9--)(_0x12c850=_0x549554[_0x7c69d9])&&(_0x4e161b=(_0x6f7da7?_0x12c850(_0x27c643,_0x5c6ea2,_0x4e161b):_0x12c850(_0x4e161b))||_0x4e161b);return _0x6f7da7&&_0x4e161b&&wi(_0x27c643,_0x5c6ea2,_0x4e161b),_0x4e161b;},Lt=(_0x2c39fc,_0x2f3597)=>(_0x37be6b,_0x38ff26)=>_0x2f3597(_0x37be6b,_0x38ff26,_0x2c39fc);let Fe=class{constructor(_0x17555a,_0x402fa8){const _0x46881a=_0x17671e;this[_0x46881a(0x27e)]=_0x17555a,this['_transformService']=_0x402fa8;}[_0x17671e(0x1dd)](_0x44aeca){const _0x10fc51=_0x17671e;var _0x4ff542;const _0x3d29bc=this[_0x10fc51(0x27e)]['get'](Re['DocSelectionManagerService']),_0x4eff6c=(_0x4ff542=_0x3d29bc[_0x10fc51(0x61a)]())!=null?_0x4ff542:[];if(_0x4eff6c['length']===0x0)return;const _0x1db088=[{'id':_0x10fc51(0x44b),'params':{'unitId':_0x44aeca[_0x10fc51(0x219)],'actions':null,'textRanges':_0x4eff6c}}],_0x5da7a4=this[_0x10fc51(0x5b9)][_0x10fc51(0x1f7)](_0x44aeca,_0x1db088);if(!p[_0x10fc51(0x4df)](_0x5da7a4))throw _0x5da7a4[_0x10fc51(0x2c9)];const _0x159a5a=_0x5da7a4['m2Prime'][0x0][_0x10fc51(0x4af)][_0x10fc51(0x57b)];Array[_0x10fc51(0x385)](_0x159a5a)&&_0x159a5a[_0x10fc51(0x367)]&&_0x3d29bc[_0x10fc51(0x36f)](_0x159a5a,!0x1);}};Fe=Ui([Lt(0x0,a['Inject'](a['Injector'])),Lt(0x1,p[_0x17671e(0x232)])],Fe);const Mi=new Set([k[_0x17671e(0x2c7)]['id']]);function xt(_0x136d76,_0x24f6d1,_0x21dfdd,_0x29f2a5,_0x18cc4c){const _0x5c8a21=_0x17671e;var _0x486d86,_0x2fde3d,_0x264940,_0x30282c;const _0x16d0fb=[];for(const _0x49a14a of _0x136d76)if(Mi[_0x5c8a21(0x44d)](_0x49a14a['id'])){if(_0x16d0fb['length']>0x0)break;_0x16d0fb[_0x5c8a21(0x263)](_0x49a14a);break;}else _0x16d0fb[_0x5c8a21(0x263)](_0x49a14a);const _0x393d8b=(_0x2fde3d=(_0x486d86=_0x18cc4c[_0x5c8a21(0x204)]())==null?void 0x0:_0x486d86[_0x5c8a21(0x649)])!=null?_0x2fde3d:_0x5c8a21(0x394),_0x2a3220=(_0x30282c=(_0x264940=_0x18cc4c[_0x5c8a21(0x204)]())==null?void 0x0:_0x264940['memberID'])!=null?_0x30282c:'unknown';return{'changeset':{'unitID':_0x24f6d1,'type':p['mapDocumentTypeToUniverType'](_0x21dfdd['getUnitType'](_0x24f6d1)),'baseRev':_0x29f2a5[_0x5c8a21(0x4c0)](_0x24f6d1),'revision':0x0,'userID':_0x393d8b,'memberID':_0x2a3220,'mutations':_0x16d0fb},'pendingMutations':_0x136d76[_0x5c8a21(0x270)](_0x16d0fb[_0x5c8a21(0x367)])};}function Ai(_0x3c1882,_0x3ffd89,_0x529b3a,_0x33a1ec,_0x1ae38b){const _0x323651=_0x17671e;var _0x20abc9,_0x1def81,_0x3bf3dc,_0xa2bcf7;const _0x1f97f9=[_0x3c1882['reduce']((_0x50f9dc,_0x5146e4)=>{const _0x77f22c=_0x35f6;var _0x40da76;const {id:_0x4a65fa}=_0x50f9dc,{id:_0x303cf5,type:_0x4acadf}=_0x5146e4,_0x427464=(_0x40da76=_0x50f9dc[_0x77f22c(0x4af)])!=null?_0x40da76:{'actions':null},_0x488fd9=_0x5146e4[_0x77f22c(0x4af)];if(_0x4a65fa&&_0x4a65fa!==_0x303cf5)throw new Error(_0x77f22c(0x35c)+_0x4a65fa+_0x77f22c(0x656)+_0x303cf5+'.');return{..._0x50f9dc,'id':_0x303cf5,'type':_0x4acadf,'params':{'unitId':_0x488fd9[_0x77f22c(0x678)],'textRanges':_0x488fd9['textRanges'],'actions':a[_0x77f22c(0x3c8)][_0x77f22c(0x4d7)](_0x427464[_0x77f22c(0x512)],_0x488fd9[_0x77f22c(0x512)])}};},{})],_0x55ad49=(_0x1def81=(_0x20abc9=_0x1ae38b[_0x323651(0x204)]())==null?void 0x0:_0x20abc9[_0x323651(0x649)])!=null?_0x1def81:_0x323651(0x394),_0x52f610=(_0xa2bcf7=(_0x3bf3dc=_0x1ae38b[_0x323651(0x204)]())==null?void 0x0:_0x3bf3dc[_0x323651(0x337)])!=null?_0xa2bcf7:_0x323651(0x394);return{'changeset':{'unitID':_0x3ffd89,'type':p['mapDocumentTypeToUniverType'](_0x529b3a[_0x323651(0x249)](_0x3ffd89)),'baseRev':_0x33a1ec[_0x323651(0x4c0)](_0x3ffd89),'revision':0x0,'userID':_0x55ad49,'memberID':_0x52f610,'mutations':_0x1f97f9},'pendingMutations':[]};}function dn(_0x5495a1,_0x136b21){const _0x290857=_0x17671e,_0x360bed=new A[(_0x290857(0x3be))](0x1);return setTimeout(()=>_0x360bed[_0x290857(0x2de)](_0x136b21),_0x5495a1),_0x360bed[_0x290857(0x3b4)]()[_0x290857(0x42f)](A[_0x290857(0x5d9)](0x1));}const Ni={'id':k[_0x17671e(0x33f)]['id'],'type':a['CommandType']['MUTATION'],'params':{}};var Li=Object[_0x17671e(0x545)],xi=Object[_0x17671e(0x47f)],ge=(_0x3c40e4,_0x48a9ce,_0x3ec180,_0x5e202c)=>{const _0x45eea0=_0x17671e;for(var _0x3238b9=_0x5e202c>0x1?void 0x0:_0x5e202c?xi(_0x48a9ce,_0x3ec180):_0x48a9ce,_0x69c9d=_0x3c40e4[_0x45eea0(0x367)]-0x1,_0x643cbe;_0x69c9d>=0x0;_0x69c9d--)(_0x643cbe=_0x3c40e4[_0x69c9d])&&(_0x3238b9=(_0x5e202c?_0x643cbe(_0x48a9ce,_0x3ec180,_0x3238b9):_0x643cbe(_0x3238b9))||_0x3238b9);return _0x5e202c&&_0x3238b9&&Li(_0x48a9ce,_0x3ec180,_0x3238b9),_0x3238b9;},N=(_0x2d3c87,_0x3d081b)=>(_0x503b3b,_0xe8ff0e)=>_0x3d081b(_0x503b3b,_0xe8ff0e,_0x2d3c87),q=(_0x55ec2a=>(_0x55ec2a[_0x17671e(0x4b7)]='not_collab',_0x55ec2a[_0x17671e(0x59c)]=_0x17671e(0x503),_0x55ec2a[_0x17671e(0x303)]=_0x17671e(0x3d7),_0x55ec2a['AWAITING']=_0x17671e(0x253),_0x55ec2a['AWAITING_WITH_PENDING']=_0x17671e(0x2d3),_0x55ec2a[_0x17671e(0x54b)]=_0x17671e(0x2b8),_0x55ec2a[_0x17671e(0x375)]=_0x17671e(0x453),_0x55ec2a[_0x17671e(0x333)]=_0x17671e(0x633),_0x55ec2a))(q||{});const fn=0xea60;class Ie{constructor(_0x17b44a,_0xca3880,_0x2b5ca1,_0x389085,_0x3848d5,_0xf1b53b,_0x556c2b,_0x32559b,_0xacce4a){const _0x5ada02=_0x17671e;I(this,'_awaitingChangeset',null),I(this,'_pendingMutations',[]),(this['unitID']=_0x17b44a,this[_0x5ada02(0x224)]=_0xca3880,this[_0x5ada02(0x3c2)]=_0x3848d5,this[_0x5ada02(0x63b)]=_0xf1b53b,this[_0x5ada02(0x22b)]=_0x556c2b,this[_0x5ada02(0x44a)]=_0x32559b,this[_0x5ada02(0x4a3)]=_0xacce4a,this['_awaitingChangeset']=_0x2b5ca1,this[_0x5ada02(0x242)]=_0x389085);}[_0x17671e(0x5f8)](_0xb2ba6){const _0x2c347d=_0x17671e,_0x2652fd=this['_revisionService'][_0x2c347d(0x4c0)](this['unitID']);return _0xb2ba6[_0x2c347d(0x429)]>_0x2652fd+0x1?(this[_0x2c347d(0x3c2)]['onMissingChangesets']({'from':_0x2652fd,'to':_0xb2ba6[_0x2c347d(0x429)]-0x1}),!0x0):!0x1;}[_0x17671e(0x30a)](_0x20c887){const _0xd1bf9c=_0x17671e;this[_0xd1bf9c(0x22b)][_0xd1bf9c(0x246)](this[_0xd1bf9c(0x219)],_0x20c887);}[_0x17671e(0x34a)](_0x34d416){const _0x4acb0c=_0x17671e;var _0x423195,_0x251182;(_0x251182=(_0x423195=this[_0x4acb0c(0x3c2)])[_0x4acb0c(0x5aa)])==null||_0x251182['call'](_0x423195,_0x34d416);}[_0x17671e(0x3c0)](_0x4e4dea){const _0x2bbff6=_0x17671e;var _0x5c3a94,_0x217000;return(_0x217000=(_0x5c3a94=this['_handler'])['onTransformIME'])==null?void 0x0:_0x217000[_0x2bbff6(0x5b0)](_0x5c3a94,_0x4e4dea);}[_0x17671e(0x56d)](_0x44967a){const _0x2a2af0=_0x17671e;var _0x115fb5,_0x3f72e0;return(_0x3f72e0=(_0x115fb5=this[_0x2a2af0(0x3c2)])[_0x2a2af0(0x4ea)])==null?void 0x0:_0x3f72e0[_0x2a2af0(0x5b0)](_0x115fb5,_0x44967a);}[_0x17671e(0x3ce)](_0x2c0236){var _0x56bc8b,_0x33e5ad,_0x4b939b;return(_0x4b939b=(_0x33e5ad=(_0x56bc8b=this['_handler'])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x33e5ad['call'](_0x56bc8b,_0x2c0236))!=null?_0x4b939b:_0x2c0236;}[_0x17671e(0x585)](_0x321644){const _0x58ffc7=_0x17671e;var _0x53c32e,_0x2e090a,_0x59d1f3;return(_0x59d1f3=(_0x2e090a=(_0x53c32e=this[_0x58ffc7(0x3c2)])[_0x58ffc7(0x619)])==null?void 0x0:_0x2e090a[_0x58ffc7(0x5b0)](_0x53c32e,_0x321644))!=null?_0x59d1f3:_0x321644;}[_0x17671e(0x4ac)](_0x531aad){const _0x581f98=_0x17671e;var _0x19f267,_0x77f0cb;if(this['type']===se[_0x581f98(0x4ca)]){const {unitID:_0x628ae9,mutations:_0x338182,memberID:_0x4db1c8}=_0x531aad,_0x7fb4c1=_0x338182[0x0][_0x581f98(0x4af)][_0x581f98(0x57b)];Array[_0x581f98(0x385)](_0x7fb4c1)&&_0x7fb4c1[_0x581f98(0x367)]>0x0&&((_0x77f0cb=(_0x19f267=this['_handler'])[_0x581f98(0x526)])==null||_0x77f0cb['call'](_0x19f267,{'unitID':_0x628ae9,'memberID':_0x4db1c8,'textRanges':_0x7fb4c1}));}}[_0x17671e(0x300)](){const _0x88e81=_0x17671e;this['_localCacheService']['updateOfflineData'](this[_0x88e81(0x219)],this['type'],this[_0x88e81(0x37f)],this[_0x88e81(0x242)]);}[_0x17671e(0x4d4)](){const _0x2b080f=_0x17671e;return this[_0x2b080f(0x44a)][_0x2b080f(0x4c0)](this[_0x2b080f(0x219)]);}[_0x17671e(0x404)](){const _0x2c78c9=_0x17671e;this[_0x2c78c9(0x44a)][_0x2c78c9(0x525)](this['unitID']);}[_0x17671e(0x5e4)](_0x39bed6){const _0x37263d=_0x17671e;var _0x41ad96;let _0x18ee4c=this['_transformRemoteChangesetByIMECache'](_0x39bed6);_0x18ee4c=this[_0x37263d(0x585)](_0x18ee4c);const _0x136a41=a[_0x37263d(0x607)](_0x18ee4c[_0x37263d(0x4a4)],this['_commandService'],{'fromCollab':!0x0});if(!_0x136a41[_0x37263d(0x1e4)])throw _0x136a41[_0x37263d(0x2c9)]instanceof Error?_0x136a41[_0x37263d(0x2c9)]:new Error((_0x41ad96=_0x136a41['error'])!=null?_0x41ad96:_0x37263d(0x4cd));this['_transformIMECache'](_0x18ee4c),this[_0x37263d(0x56d)](_0x18ee4c),this[_0x37263d(0x30a)](_0x39bed6),this[_0x37263d(0x34a)](_0x18ee4c),this[_0x37263d(0x4ac)](_0x18ee4c),this['_incrementRevisionNumber']();}}let ye=class extends Ie{constructor(_0x51cb47,_0x438964,_0x2bf97a,_0x5499fc,_0x54e5c9,_0x3cd58f,_0x358f4c,_0x5c0f3c,_0x4d3ede,_0x13b956){const _0x3b919a=_0x17671e;super(_0x51cb47,_0x438964,null,[],_0x2bf97a,_0x5c0f3c,_0x358f4c,_0x5499fc,_0x54e5c9),I(this,_0x3b919a(0x47a),_0x3b919a(0x503)),(this['_injector']=_0x3cd58f,this[_0x3b919a(0x3f4)]=_0x4d3ede,this[_0x3b919a(0x5b9)]=_0x13b956);}['appendMutation'](_0x481fe8){const _0x3fd86b=_0x17671e,_0x160a4e=this[_0x3fd86b(0x27e)][_0x3fd86b(0x4ed)](ce,this[_0x3fd86b(0x219)],this[_0x3fd86b(0x224)],[_0x481fe8],this[_0x3fd86b(0x3c2)]);return _0x160a4e[_0x3fd86b(0x352)](),_0x160a4e[_0x3fd86b(0x300)](),_0x160a4e;}[_0x17671e(0x540)](_0x513d33){const _0x8930e3=_0x17671e;if(this['_checkMissing'](_0x513d33))return this[_0x8930e3(0x27e)]['createInstance'](oe,this[_0x8930e3(0x219)],this[_0x8930e3(0x224)],null,[],null,[_0x513d33],this[_0x8930e3(0x3c2)]);try{const _0x33ed4c=this['_transformService']['transformMutationsWithChangeset'](_0x513d33,[Ni]);if(p[_0x8930e3(0x4df)](_0x33ed4c)){const {c1Prime:_0x16ffbe}=_0x33ed4c;return this[_0x8930e3(0x5e4)](_0x16ffbe),this;}throw _0x33ed4c['error'];}catch(_0x279bea){return this[_0x8930e3(0x3f4)][_0x8930e3(0x2c9)](_0x279bea),this[_0x8930e3(0x2ae)](!0x1);}}[_0x17671e(0x2ae)](_0x3c0613){const _0x157a6a=_0x17671e;return this['_injector']['createInstance'](ve,this[_0x157a6a(0x219)],this[_0x157a6a(0x224)],null,[],this[_0x157a6a(0x3c2)],_0x3c0613);}[_0x17671e(0x2f1)](){const _0x215332=_0x17671e;throw new Error(_0x215332(0x2b1));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x17671e(0x366)](){return this;}[_0x17671e(0x513)](){const _0x1bde60=_0x17671e;return this[_0x1bde60(0x27e)][_0x1bde60(0x4ed)](me,this[_0x1bde60(0x219)],this[_0x1bde60(0x224)],null,[],this[_0x1bde60(0x3c2)]);}[_0x17671e(0x225)](){return this;}[_0x17671e(0x5e2)](){const _0x273dc1=_0x17671e;throw new Error(_0x273dc1(0x508));}[_0x17671e(0x54a)](){const _0x4868a4=_0x17671e,_0x3585ea=this[_0x4868a4(0x44a)]['getCurrentRevOfUnit'](this[_0x4868a4(0x219)]);return this['_handler'][_0x4868a4(0x472)]({'from':_0x3585ea,'to':0x0}),this['_injector'][_0x4868a4(0x4ed)](oe,this[_0x4868a4(0x219)],this[_0x4868a4(0x224)],null,[],null,[],this[_0x4868a4(0x3c2)]);}};ye=ge([N(0x3,a[_0x17671e(0x52e)](p['RevisionService'])),N(0x4,a[_0x17671e(0x52e)](exports['LocalCacheService'])),N(0x5,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),N(0x6,a[_0x17671e(0x1fa)]),N(0x7,a[_0x17671e(0x336)]),N(0x8,a[_0x17671e(0x431)]),N(0x9,p[_0x17671e(0x232)])],ye);let ce=class extends Ie{constructor(_0x331710,_0x5b6a50,_0x408a5f,_0x329d6a,_0x35751d,_0x9ee43f,_0x162ccb,_0x12faa5,_0xa72be7,_0xe1c333,_0x47b100,_0x57e027,_0xc7f339,_0x56d7ce){const _0x3768c3=_0x17671e;super(_0x331710,_0x5b6a50,null,_0x408a5f,_0x329d6a,_0xe1c333,_0x56d7ce,_0x9ee43f,_0x162ccb),I(this,_0x3768c3(0x47a),_0x3768c3(0x3d7)),I(this,'_scheduleTimestamp',null),I(this,'_sendingTimer',null),(this['_injector']=_0x35751d,this[_0x3768c3(0x58c)]=_0x12faa5,this['_logService']=_0xa72be7,this['_configService']=_0x47b100,this[_0x3768c3(0x5b9)]=_0x57e027,this[_0x3768c3(0x2ba)]=_0xc7f339);}[_0x17671e(0x515)](_0x994fca){const _0x1f2313=_0x17671e;return this[_0x1f2313(0x242)][_0x1f2313(0x263)](_0x994fca),this[_0x1f2313(0x300)](),this;}['onRemoteChangeset'](_0x14c493){const _0x23154c=_0x17671e;if(this[_0x23154c(0x5f8)](_0x14c493))return this['_clearScheduledTask'](),this[_0x23154c(0x27e)][_0x23154c(0x4ed)](oe,this[_0x23154c(0x219)],this['type'],null,this[_0x23154c(0x242)],null,[_0x14c493],this[_0x23154c(0x3c2)]);try{const _0x40c897=this[_0x23154c(0x5b9)]['transformMutationsWithChangeset'](_0x14c493,this[_0x23154c(0x242)]);if(p['isTransformMutationsWithChangesetSuccess'](_0x40c897)){const {c1Prime:_0x65305f,m2Prime:_0x501b08}=_0x40c897;this[_0x23154c(0x5e4)](_0x65305f);const _0x3f9473=this[_0x23154c(0x27e)][_0x23154c(0x4ed)](ce,this[_0x23154c(0x219)],this['type'],_0x501b08,this[_0x23154c(0x3c2)]);return this['_clearScheduledTask'](),_0x3f9473[_0x23154c(0x352)](this[_0x23154c(0x43b)]?Math[_0x23154c(0x499)](0x0,new Date()[_0x23154c(0x371)]()-this[_0x23154c(0x43b)]):this[_0x23154c(0x36b)]()),_0x3f9473;}throw _0x40c897[_0x23154c(0x2c9)];}catch(_0x4f3c59){return this[_0x23154c(0x3f4)][_0x23154c(0x2c9)](_0x4f3c59),this['_onConflict'](!0x1);}}['onRemoteAck'](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0xa58690=_0x17671e;throw new Error(_0xa58690(0x247));}[_0x17671e(0x366)](){return this;}[_0x17671e(0x513)](){const _0x57adc8=_0x17671e;return this[_0x57adc8(0x65b)](),this[_0x57adc8(0x27e)][_0x57adc8(0x4ed)](me,this[_0x57adc8(0x219)],this['type'],null,this[_0x57adc8(0x242)],this['_handler']);}[_0x17671e(0x225)](){return this;}['_schedule'](_0x1b75c7){const _0x57b268=_0x17671e,_0x5ca4aa=_0x1b75c7!=null?_0x1b75c7:this[_0x57b268(0x36b)]();this[_0x57b268(0x43b)]=new Date()[_0x57b268(0x371)](),this['_sendingTimer']=window[_0x57b268(0x648)](()=>{const _0x58e715=_0x57b268;this[_0x58e715(0x65b)]();let _0x28a78b=null;switch(this[_0x58e715(0x224)]){case se['UNIVER_SHEET']:{_0x28a78b=xt(this[_0x58e715(0x242)],this[_0x58e715(0x219)],this[_0x58e715(0x2ba)],this[_0x58e715(0x44a)],this[_0x58e715(0x58c)]);break;}case se[_0x58e715(0x4ca)]:{this[_0x58e715(0x242)][_0x58e715(0x539)](_0x4da53b=>_0x4da53b['id']===Re['RichTextEditingMutation']['id'])?_0x28a78b=Ai(this[_0x58e715(0x242)],this['unitID'],this[_0x58e715(0x2ba)],this['_revisionService'],this[_0x58e715(0x58c)]):_0x28a78b=xt(this[_0x58e715(0x242)],this['unitID'],this[_0x58e715(0x2ba)],this[_0x58e715(0x44a)],this[_0x58e715(0x58c)]);break;}default:throw new Error(_0x58e715(0x357)+this[_0x58e715(0x224)]+_0x58e715(0x307));}const {changeset:_0x2f13f9,pendingMutations:_0x2dbae0}=_0x28a78b;this['_handler'][_0x58e715(0x482)](_0x2f13f9);const _0x2b4eb=_0x2dbae0[_0x58e715(0x367)]?this['_injector'][_0x58e715(0x4ed)](le,this['unitID'],this['type'],_0x2f13f9,_0x2dbae0,this['_handler'],void 0x0):this[_0x58e715(0x27e)][_0x58e715(0x4ed)](fe,this[_0x58e715(0x219)],this[_0x58e715(0x224)],_0x2f13f9,this['_handler']);_0x2b4eb[_0x58e715(0x300)](),this[_0x58e715(0x3c2)][_0x58e715(0x233)](this,_0x2b4eb);},_0x5ca4aa);}['_getSendChangesetTimeout'](){const _0x54d649=_0x17671e;var _0x38a8ef;const _0x32a057=this[_0x54d649(0x573)]['getConfig'](ne);return(_0x38a8ef=_0x32a057==null?void 0x0:_0x32a057[_0x54d649(0x5e5)])!=null?_0x38a8ef:jn;}[_0x17671e(0x5e2)](){const _0x1125f5=_0x17671e;throw new Error(_0x1125f5(0x618));}[_0x17671e(0x65b)](){const _0x552997=_0x17671e;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0x552997(0x5bf)]=null);}[_0x17671e(0x2ae)](_0x32f7d2){const _0x572c8e=_0x17671e;return this[_0x572c8e(0x65b)](),this[_0x572c8e(0x27e)][_0x572c8e(0x4ed)](ve,this[_0x572c8e(0x219)],this[_0x572c8e(0x224)],null,this['_pendingMutations'],this[_0x572c8e(0x3c2)],_0x32f7d2);}};ce=ge([N(0x4,a[_0x17671e(0x52e)](a['Injector'])),N(0x5,a[_0x17671e(0x52e)](p['RevisionService'])),N(0x6,a[_0x17671e(0x52e)](exports['LocalCacheService'])),N(0x7,a[_0x17671e(0x52e)](exports['MemberService'])),N(0x8,a[_0x17671e(0x431)]),N(0x9,a[_0x17671e(0x336)]),N(0xa,a[_0x17671e(0x505)]),N(0xb,p['ITransformService']),N(0xc,a[_0x17671e(0x4fc)]),N(0xd,a[_0x17671e(0x1fa)])],ce);let fe=class extends Ie{constructor(_0x33f8fd,_0x273df6,_0xe0b7f4,_0x352f40,_0x8848d8,_0x3b7ab5,_0x16f4df,_0x40b9c2,_0x158fb8,_0x5ca38f,_0x4fd04d){const _0x18baff=_0x17671e;super(_0x33f8fd,_0x273df6,_0xe0b7f4,[],_0x352f40,_0x40b9c2,_0x4fd04d,_0x3b7ab5,_0x16f4df),I(this,_0x18baff(0x47a),_0x18baff(0x253)),I(this,_0x18baff(0x642),0x0),I(this,_0x18baff(0x2e7)),I(this,_0x18baff(0x5a3)),(this[_0x18baff(0x27e)]=_0x8848d8,this[_0x18baff(0x3f4)]=_0x158fb8,this[_0x18baff(0x5b9)]=_0x5ca38f);}[_0x17671e(0x515)](_0x259bab){const _0x9bfd13=_0x17671e;this[_0x9bfd13(0x65b)]();const _0x240acf=this[_0x9bfd13(0x27e)][_0x9bfd13(0x4ed)](le,this[_0x9bfd13(0x219)],this[_0x9bfd13(0x224)],this[_0x9bfd13(0x37f)],[_0x259bab],this[_0x9bfd13(0x3c2)],this[_0x9bfd13(0x2e7)]);return _0x240acf[_0x9bfd13(0x300)](),_0x240acf;}[_0x17671e(0x540)](_0x597151){const _0x427037=_0x17671e;if(this[_0x427037(0x5f8)](_0x597151))return this['_clearScheduledTask'](),this[_0x427037(0x27e)][_0x427037(0x4ed)](oe,this[_0x427037(0x219)],this['type'],this[_0x427037(0x37f)],[],null,[_0x597151],this['_handler']);try{const _0x469a8f=this['_transformService'][_0x427037(0x48a)]([_0x597151],[this['_awaitingChangeset']],!0x1);if(p['isTransformChangesetsSuccess'](_0x469a8f)){const {c1Prime:_0x1242ac,c2Prime:_0xc0728}=_0x469a8f;this[_0x427037(0x5e4)](_0x1242ac[0x0]),_0xc0728[0x0]['baseRev']=this[_0x427037(0x4d4)](),this[_0x427037(0x65b)]();const _0x31d6e6=this[_0x427037(0x27e)][_0x427037(0x4ed)](fe,this[_0x427037(0x219)],this[_0x427037(0x224)],_0xc0728[0x0],this['_handler']);return _0x31d6e6[_0x427037(0x300)](),_0x31d6e6;}return this[_0x427037(0x2ae)](!0x1);}catch(_0x4ed668){return this['_logService'][_0x427037(0x2c9)](_0x4ed668),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x2917f8){const _0x52d2db=_0x17671e;this[_0x52d2db(0x65b)]();const _0x276d55=this['_revisionService'][_0x52d2db(0x4c0)](this[_0x52d2db(0x219)]);if(_0x2917f8[_0x52d2db(0x429)]<_0x276d55-0x1)return this;if(this[_0x52d2db(0x5f8)](_0x2917f8))return this['_injector'][_0x52d2db(0x4ed)](oe,this[_0x52d2db(0x219)],this[_0x52d2db(0x224)],null,[],this[_0x52d2db(0x37f)],[],this[_0x52d2db(0x3c2)]);this[_0x52d2db(0x404)]();const _0x174eaa=this[_0x52d2db(0x27e)][_0x52d2db(0x4ed)](ye,this[_0x52d2db(0x219)],this['type'],this['_handler']);return _0x174eaa[_0x52d2db(0x300)](),_0x174eaa;}[_0x17671e(0x5ba)](_0x480af1){const _0x563010=_0x17671e;return this[_0x563010(0x2ae)](!!(_0x480af1!=null&&_0x480af1['isPermissionRej']));}[_0x17671e(0x366)](_0x472454){const _0x276b18=_0x17671e;return this['_resendTimeout']>fn?this[_0x276b18(0x513)]():(this[_0x276b18(0x2e7)]=dn(this['_resendTimeout'],{'timeout':this[_0x276b18(0x642)],'reqId':_0x472454[_0x276b18(0x469)]}),this[_0x276b18(0x5a3)]=this[_0x276b18(0x2e7)]['subscribe'](({reqId:_0x4d7a5b,timeout:_0x1eaa90})=>{this['_resendWithTimeout'](_0x4d7a5b,_0x1eaa90);}),this);}[_0x17671e(0x513)](){const _0x2c8e28=_0x17671e;return this[_0x2c8e28(0x65b)](),this[_0x2c8e28(0x27e)]['createInstance'](me,this['unitID'],this[_0x2c8e28(0x224)],this[_0x2c8e28(0x37f)],[],this[_0x2c8e28(0x3c2)]);}[_0x17671e(0x225)](){return this;}[_0x17671e(0x5e2)](){const _0x229fbd=_0x17671e;this[_0x229fbd(0x3c2)][_0x229fbd(0x482)](this[_0x229fbd(0x37f)]);}['_onConflict'](_0x4cf809){const _0x17e0f3=_0x17671e;return this[_0x17e0f3(0x65b)](),this[_0x17e0f3(0x27e)][_0x17e0f3(0x4ed)](ve,this[_0x17e0f3(0x219)],this['type'],this[_0x17e0f3(0x37f)],[],this[_0x17e0f3(0x3c2)],_0x4cf809);}[_0x17671e(0x579)](_0x5c167c,_0x1ab257){const _0x573240=_0x17671e;var _0x290a93;_0x5c167c===((_0x290a93=this[_0x573240(0x37f)])==null?void 0x0:_0x290a93['reqId'])&&(this[_0x573240(0x5e2)](),this[_0x573240(0x642)]=_0x1ab257===0x0?0x3e8:_0x1ab257*0x2);}[_0x17671e(0x65b)](){const _0x305159=_0x17671e;var _0x451ea1;(_0x451ea1=this['_sender'])==null||_0x451ea1[_0x305159(0x4c1)](),this[_0x305159(0x642)]=0x0;}};fe=ge([N(0x4,a['Inject'](a[_0x17671e(0x29a)])),N(0x5,a[_0x17671e(0x52e)](p['RevisionService'])),N(0x6,a[_0x17671e(0x52e)](exports[_0x17671e(0x2f5)])),N(0x7,a['ICommandService']),N(0x8,a[_0x17671e(0x431)]),N(0x9,p[_0x17671e(0x232)]),N(0xa,a[_0x17671e(0x1fa)])],fe);let le=class extends Ie{constructor(_0xcbfa69,_0x3089a8,_0x37c9be,_0x4d7257,_0x3ee29d,_0x86253b,_0x576a84,_0x3670d5,_0x2e28a4,_0x1dfdd0,_0x1e3886,_0x4c5b8e,_0x528a68){const _0x36d41b=_0x17671e;super(_0xcbfa69,_0x3089a8,_0x37c9be,_0x4d7257,_0x3ee29d,_0x1dfdd0,_0x528a68,_0x3670d5,_0x2e28a4),I(this,_0x36d41b(0x47a),'awaiting_with_pending'),I(this,'_resendTimeout',0x0),I(this,_0x36d41b(0x2e7)),I(this,_0x36d41b(0x5a3)),(this[_0x36d41b(0x27e)]=_0x576a84,this['_logService']=_0x1e3886,this['_transformService']=_0x4c5b8e,_0x86253b&&(this['_resendTimer']=_0x86253b,this[_0x36d41b(0x5a3)]=this[_0x36d41b(0x2e7)][_0x36d41b(0x383)](({reqId:_0xc47b4a,timeout:_0x400f29})=>{this['_resendWithTimeout'](_0xc47b4a,_0x400f29);})));}[_0x17671e(0x515)](_0x53073c){const _0x2d0df9=_0x17671e;return this[_0x2d0df9(0x242)]['push'](_0x53073c),this;}['onRemoteChangeset'](_0x4199f6){const _0x1570f7=_0x17671e;if(this[_0x1570f7(0x5f8)](_0x4199f6))return this[_0x1570f7(0x65b)](),this[_0x1570f7(0x27e)][_0x1570f7(0x4ed)](oe,this[_0x1570f7(0x219)],this[_0x1570f7(0x224)],this[_0x1570f7(0x37f)],this[_0x1570f7(0x242)],null,[_0x4199f6],this[_0x1570f7(0x3c2)]);try{const _0x160ee4=this['_transformService'][_0x1570f7(0x48a)]([_0x4199f6],[this[_0x1570f7(0x37f)]],!0x1);if(p[_0x1570f7(0x2e0)](_0x160ee4)){const {c1Prime:_0x21dff6,c2Prime:_0x409aad}=_0x160ee4,_0x514238=this[_0x1570f7(0x5b9)][_0x1570f7(0x1f7)](_0x21dff6[0x0],this['_pendingMutations']);if(p[_0x1570f7(0x4df)](_0x514238)){const {c1Prime:_0x4ff7a3,m2Prime:_0x53ac07}=_0x514238;return this['_executeRemoteChangeset'](_0x4ff7a3),_0x409aad[0x0]['baseRev']=this[_0x1570f7(0x4d4)](),this['_clearScheduledTask'](),this['_injector'][_0x1570f7(0x4ed)](le,this[_0x1570f7(0x219)],this[_0x1570f7(0x224)],_0x409aad[0x0],_0x53ac07,this['_handler'],void 0x0);}throw _0x514238[_0x1570f7(0x2c9)];}throw _0x160ee4[_0x1570f7(0x2c9)];}catch(_0x29dbaf){return this[_0x1570f7(0x3f4)][_0x1570f7(0x2c9)](_0x29dbaf),this['_onConflict'](!0x1);}}[_0x17671e(0x2f1)](_0x3b9812){const _0x50b131=_0x17671e;if(this[_0x50b131(0x65b)](),this[_0x50b131(0x5f8)](_0x3b9812))return this[_0x50b131(0x27e)][_0x50b131(0x4ed)](oe,this[_0x50b131(0x219)],this[_0x50b131(0x224)],null,this[_0x50b131(0x242)],this[_0x50b131(0x37f)],[],this[_0x50b131(0x3c2)]);this['_incrementRevisionNumber']();const _0x4a9bfc=this[_0x50b131(0x27e)][_0x50b131(0x4ed)](ce,this[_0x50b131(0x219)],this[_0x50b131(0x224)],this[_0x50b131(0x242)],this[_0x50b131(0x3c2)]);return _0x4a9bfc['_schedule'](),_0x4a9bfc[_0x50b131(0x300)](),_0x4a9bfc;}['onRemoteRej'](_0x5e0602){const _0x1488be=_0x17671e;return this[_0x1488be(0x2ae)](!!(_0x5e0602!=null&&_0x5e0602['isPermissionRej']));}['onRemoteRetry'](_0x3050c6){const _0x43ce34=_0x17671e;return this[_0x43ce34(0x642)]>fn?this[_0x43ce34(0x513)]():(this[_0x43ce34(0x2e7)]=dn(this['_resendTimeout'],{'timeout':this[_0x43ce34(0x642)],'reqId':_0x3050c6['reqId']}),this['_sender']=this[_0x43ce34(0x2e7)][_0x43ce34(0x383)](({reqId:_0x66299d,timeout:_0x4abd38})=>{this['_resendWithTimeout'](_0x66299d,_0x4abd38);}),this);}['toggleOffline'](){const _0x876a71=_0x17671e;return this['_clearScheduledTask'](),this[_0x876a71(0x27e)][_0x876a71(0x4ed)](me,this[_0x876a71(0x219)],this[_0x876a71(0x224)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x876a71(0x3c2)]);}[_0x17671e(0x225)](){return this;}[_0x17671e(0x5e2)](){const _0x239879=_0x17671e;this['_handler'][_0x239879(0x482)](this[_0x239879(0x37f)]);}['_onConflict'](_0x24bfc1){const _0x329f4c=_0x17671e;return this[_0x329f4c(0x65b)](),this[_0x329f4c(0x27e)][_0x329f4c(0x4ed)](ve,this[_0x329f4c(0x219)],this['type'],null,this['_pendingMutations'],this[_0x329f4c(0x3c2)],_0x24bfc1);}[_0x17671e(0x579)](_0x3e83f1,_0x5bf2f6){const _0x5b0aa2=_0x17671e;var _0x444cfb;_0x3e83f1===((_0x444cfb=this[_0x5b0aa2(0x37f)])==null?void 0x0:_0x444cfb[_0x5b0aa2(0x469)])&&(this[_0x5b0aa2(0x5e2)](),this[_0x5b0aa2(0x642)]=_0x5bf2f6===0x0?0x3e8:_0x5bf2f6*0x2);}['_clearScheduledTask'](){const _0x7c29de=_0x17671e;var _0x34a85a;(_0x34a85a=this['_sender'])==null||_0x34a85a[_0x7c29de(0x4c1)](),this['_resendTimeout']=0x0;}};le=ge([N(0x6,a[_0x17671e(0x52e)](a['Injector'])),N(0x7,a[_0x17671e(0x52e)](p[_0x17671e(0x5e1)])),N(0x8,a[_0x17671e(0x52e)](exports[_0x17671e(0x2f5)])),N(0x9,a[_0x17671e(0x336)]),N(0xa,a[_0x17671e(0x431)]),N(0xb,p[_0x17671e(0x232)]),N(0xc,a[_0x17671e(0x1fa)])],le);let ve=class extends Ie{constructor(_0x3ae53c,_0x430290,_0x371539,_0x28b247,_0x483ce4,_0x1ee63f=!0x1,_0x1e3065,_0x308918,_0x1021c4,_0x2fd515,_0x11c46c,_0x1ff577,_0x51e211){const _0x1bd667=_0x17671e;super(_0x3ae53c,_0x430290,_0x371539,_0x28b247,_0x483ce4,_0x308918,_0x1021c4,_0x11c46c,_0x2fd515),I(this,_0x1bd667(0x47a),'conflict'),(this[_0x1bd667(0x3e2)]=_0x1ee63f,this['_permissionService']=_0x1e3065,this[_0x1bd667(0x457)]=_0x1ff577,this['_notificationService']=_0x51e211,this['_showConflictNotification'](),this[_0x1bd667(0x5a1)](),this[_0x1bd667(0x49d)]());}[_0x17671e(0x515)](){return this;}['onRemoteChangeset'](){return this;}[_0x17671e(0x2f1)](){return this;}['onRemoteRej'](){return this;}[_0x17671e(0x366)](){return this;}[_0x17671e(0x513)](){return this;}[_0x17671e(0x225)](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x17671e(0x5a1)](){const _0x2bbd63=_0x17671e;this[_0x2bbd63(0x4a3)][_0x2bbd63(0x387)](this[_0x2bbd63(0x219)],this['type'],null,[]);}[_0x17671e(0x55a)](){const _0x40ef7c=_0x17671e;this[_0x40ef7c(0x3e2)]?this[_0x40ef7c(0x669)][_0x40ef7c(0x30f)]({'title':this[_0x40ef7c(0x457)]['t'](_0x40ef7c(0x37c)),'content':this[_0x40ef7c(0x457)]['t'](_0x40ef7c(0x354)),'type':'error','duration':0x0}):this[_0x40ef7c(0x669)][_0x40ef7c(0x30f)]({'title':this[_0x40ef7c(0x457)]['t']('conflict.title'),'content':this[_0x40ef7c(0x457)]['t']('conflict.content'),'type':'error','duration':0x0});}['_disableEditing'](){const _0x3c16e3=_0x17671e;this[_0x3c16e3(0x5d7)]['updatePermissionPoint'](new k['WorkbookEditablePermission'](this[_0x3c16e3(0x219)])['id'],!0x1);}};ve=ge([N(0x6,a[_0x17671e(0x52e)](a['IPermissionService'])),N(0x7,a[_0x17671e(0x336)]),N(0x8,a[_0x17671e(0x1fa)]),N(0x9,a['Inject'](exports[_0x17671e(0x2f5)])),N(0xa,a[_0x17671e(0x52e)](p[_0x17671e(0x5e1)])),N(0xb,a[_0x17671e(0x52e)](a[_0x17671e(0x530)])),N(0xc,te['INotificationService'])],ve);let me=class extends Ie{constructor(_0x3abd62,_0x2b9600,_0x131525,_0x5f0145,_0x1383f2,_0x179b14,_0x3e22d7,_0x23db3f,_0x3c15ec,_0x5952de){const _0x4236ca=_0x17671e;super(_0x3abd62,_0x2b9600,_0x131525,_0x5f0145,_0x1383f2,_0x3c15ec,_0x5952de,_0x3e22d7,_0x23db3f),I(this,_0x4236ca(0x47a),_0x4236ca(0x633)),this[_0x4236ca(0x27e)]=_0x179b14;}[_0x17671e(0x515)](_0x9d2f02){const _0x38b196=_0x17671e;return this[_0x38b196(0x242)][_0x38b196(0x263)](_0x9d2f02),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x107aec){const _0x50a9f9=_0x17671e;throw new Error(_0x50a9f9(0x5dd));}[_0x17671e(0x2f1)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x17671e(0x5ba)](){const _0x18e9e1=_0x17671e;throw new Error(_0x18e9e1(0x2e4));}[_0x17671e(0x366)](){return this;}['toggleOffline'](){return this;}[_0x17671e(0x225)](){const _0x24068b=_0x17671e,{_injector:_0x7683de,_pendingMutations:_0x444ecd,_awaitingChangeset:_0x11964c,unitID:_0x5cfb6c,_handler:_0x42fb81,type:_0x36ec6d}=this,_0x4f129a=vn(_0x7683de,_0x5cfb6c,_0x36ec6d,_0x11964c,_0x444ecd,_0x42fb81);return _0x4f129a instanceof ce?_0x4f129a[_0x24068b(0x352)]():(_0x4f129a instanceof le||_0x4f129a instanceof fe)&&_0x4f129a[_0x24068b(0x5e2)](),_0x4f129a;}['resend'](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};me=ge([N(0x5,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),N(0x6,a[_0x17671e(0x52e)](p[_0x17671e(0x5e1)])),N(0x7,a['Inject'](exports[_0x17671e(0x2f5)])),N(0x8,a['ICommandService']),N(0x9,a['IUndoRedoService'])],me);let oe=class extends Ie{constructor(_0x18de91,_0x23bc80,_0x837783,_0x5266f2,_0xaca206,_0x400d6a,_0x340353,_0x1f1589,_0x3c9214,_0x3f053b,_0x5bcd25,_0x4e9859,_0x551d51,_0x101e57){const _0x3f8af7=_0x17671e;super(_0x18de91,_0x23bc80,_0x837783,_0x5266f2,_0x340353,_0x4e9859,_0x551d51,_0x3c9214,_0x3f053b),I(this,_0x3f8af7(0x47a),_0x3f8af7(0x2b8)),(this[_0x3f8af7(0x5e9)]=_0xaca206,this['_queuedRemoteChangesets']=_0x400d6a,this[_0x3f8af7(0x27e)]=_0x1f1589,this[_0x3f8af7(0x3f4)]=_0x5bcd25,this['_transformService']=_0x101e57);}[_0x17671e(0x2f6)](_0x167a48){const _0x1fac0c=_0x17671e;try{const _0x41bd49=[..._0x167a48,...this[_0x1fac0c(0x3a0)]],_0x458c5c=[this['_awaitingChangeset']||this['_acknowledgedAwaitingChangeset']][_0x1fac0c(0x335)](_0x3cddbb=>!!_0x3cddbb);let _0x5e046e,_0x217e97;if(_0x458c5c[_0x1fac0c(0x367)]){const _0x37e0a3=this[_0x1fac0c(0x5b9)][_0x1fac0c(0x48a)](_0x41bd49,_0x458c5c,!0x1);if(!p[_0x1fac0c(0x2e0)](_0x37e0a3))throw _0x37e0a3['error'];_0x5e046e=_0x37e0a3[_0x1fac0c(0x1fe)],_0x217e97=_0x37e0a3[_0x1fac0c(0x39f)];}else _0x5e046e=_0x41bd49,_0x217e97=[];let _0x15d7fd=this['_pendingMutations'];_0x5e046e[_0x1fac0c(0x5ea)](_0x34ca88=>{const _0x5cfbd6=_0x1fac0c;let _0x7365d2;if(_0x15d7fd['length']){const _0x2cdcf8=this['_transformService']['transformMutationsWithChangeset'](_0x34ca88,_0x15d7fd);if(!p['isTransformMutationsWithChangesetSuccess'](_0x2cdcf8))throw _0x2cdcf8[_0x5cfbd6(0x2c9)];_0x7365d2=_0x2cdcf8[_0x5cfbd6(0x1fe)],_0x15d7fd=_0x2cdcf8[_0x5cfbd6(0x491)];}else _0x7365d2=_0x34ca88;this[_0x5cfbd6(0x5e4)](_0x7365d2);}),this[_0x1fac0c(0x5e9)]&&this['_incrementRevisionNumber'](),this[_0x1fac0c(0x37f)]&&_0x217e97['length']&&(_0x217e97[0x0][_0x1fac0c(0x450)]=this[_0x1fac0c(0x4d4)]());let _0x1182b4;if(this[_0x1fac0c(0x37f)]&&_0x15d7fd[_0x1fac0c(0x367)]!==0x0)_0x1182b4=this[_0x1fac0c(0x27e)]['createInstance'](le,this[_0x1fac0c(0x219)],this[_0x1fac0c(0x224)],_0x217e97[0x0],_0x15d7fd,this[_0x1fac0c(0x3c2)],void 0x0);else{if(this[_0x1fac0c(0x37f)]&&_0x15d7fd[_0x1fac0c(0x367)]===0x0)_0x217e97[0x0][_0x1fac0c(0x450)]=this[_0x1fac0c(0x4d4)](),_0x1182b4=this[_0x1fac0c(0x27e)][_0x1fac0c(0x4ed)](fe,this[_0x1fac0c(0x219)],this[_0x1fac0c(0x224)],_0x217e97[0x0],this['_handler']);else{if(_0x15d7fd['length']!==0x0){const _0x7c36bd=this['_injector'][_0x1fac0c(0x4ed)](ce,this[_0x1fac0c(0x219)],this['type'],_0x15d7fd,this[_0x1fac0c(0x3c2)]);_0x7c36bd[_0x1fac0c(0x352)](),_0x1182b4=_0x7c36bd;}else _0x1182b4=this[_0x1fac0c(0x27e)][_0x1fac0c(0x4ed)](ye,this[_0x1fac0c(0x219)],this['type'],this[_0x1fac0c(0x3c2)]);}}return _0x1182b4[_0x1fac0c(0x300)](),_0x1182b4;}catch(_0x38787d){return this[_0x1fac0c(0x3f4)][_0x1fac0c(0x2c9)](_0x1fac0c(0x218),_0x1fac0c(0x646),_0x38787d),this['_injector'][_0x1fac0c(0x4ed)](ve,this[_0x1fac0c(0x219)],this[_0x1fac0c(0x224)],this[_0x1fac0c(0x37f)],this[_0x1fac0c(0x242)],this[_0x1fac0c(0x3c2)],!0x1);}}[_0x17671e(0x5e2)](){const _0x4c4f6e=_0x17671e;throw new Error(_0x4c4f6e(0x3e5));}[_0x17671e(0x515)](_0x1d4df4){const _0x284f44=_0x17671e;return this[_0x284f44(0x242)]['push'](_0x1d4df4),this;}[_0x17671e(0x540)](_0x559ad4){const _0x140186=_0x17671e;return this[_0x140186(0x3a0)][_0x140186(0x263)](_0x559ad4),this;}[_0x17671e(0x2f1)](_0x58f786){const _0x142f2c=_0x17671e;if(this[_0x142f2c(0x37f)])return this[_0x142f2c(0x5e9)]=this['_awaitingChangeset'],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x17671e(0x5ba)](_0x594cce){const _0xb9c11f=_0x17671e;return this[_0xb9c11f(0x2ae)](!!(_0x594cce!=null&&_0x594cce[_0xb9c11f(0x359)]));}[_0x17671e(0x366)](){return this;}['toggleOffline'](){const _0x28f102=_0x17671e;return this[_0x28f102(0x27e)]['createInstance'](me,this[_0x28f102(0x219)],this['type'],this[_0x28f102(0x37f)],this['_pendingMutations'],this[_0x28f102(0x3c2)]);}['toggleOnline'](){return this;}[_0x17671e(0x2ae)](_0x585a41){const _0x5749f6=_0x17671e;return this[_0x5749f6(0x27e)][_0x5749f6(0x4ed)](ve,this[_0x5749f6(0x219)],this[_0x5749f6(0x224)],this[_0x5749f6(0x37f)],this['_pendingMutations'],this['_handler'],_0x585a41);}};oe=ge([N(0x7,a[_0x17671e(0x52e)](a['Injector'])),N(0x8,a['Inject'](p[_0x17671e(0x5e1)])),N(0x9,a[_0x17671e(0x52e)](exports[_0x17671e(0x2f5)])),N(0xa,a[_0x17671e(0x431)]),N(0xb,a[_0x17671e(0x336)]),N(0xc,a[_0x17671e(0x1fa)]),N(0xd,p['ITransformService'])],oe);function vn(_0x5a3549,_0x531ea4,_0x58ff9f,_0x263dd2,_0x5843eb,_0x15d8dc){const _0x49bedc=_0x17671e;return _0x263dd2&&_0x5843eb[_0x49bedc(0x367)]?_0x5a3549['createInstance'](le,_0x531ea4,_0x58ff9f,_0x263dd2,_0x5843eb,_0x15d8dc,void 0x0):_0x263dd2?_0x5a3549[_0x49bedc(0x4ed)](fe,_0x531ea4,_0x58ff9f,_0x263dd2,_0x15d8dc):_0x5843eb[_0x49bedc(0x367)]?_0x5a3549[_0x49bedc(0x4ed)](ce,_0x531ea4,_0x58ff9f,_0x5843eb,_0x15d8dc):_0x5a3549[_0x49bedc(0x4ed)](ye,_0x531ea4,_0x58ff9f,_0x15d8dc);}var $i=Object[_0x17671e(0x545)],ji=Object[_0x17671e(0x47f)],Rt=(_0x447698,_0x5b5450,_0x384de3,_0x57a8fb)=>{const _0x4be088=_0x17671e;for(var _0x43bf6c=_0x57a8fb>0x1?void 0x0:_0x57a8fb?ji(_0x5b5450,_0x384de3):_0x5b5450,_0x390564=_0x447698[_0x4be088(0x367)]-0x1,_0x150f37;_0x390564>=0x0;_0x390564--)(_0x150f37=_0x447698[_0x390564])&&(_0x43bf6c=(_0x57a8fb?_0x150f37(_0x5b5450,_0x384de3,_0x43bf6c):_0x150f37(_0x43bf6c))||_0x43bf6c);return _0x57a8fb&&_0x43bf6c&&$i(_0x5b5450,_0x384de3,_0x43bf6c),_0x43bf6c;},H=(_0x5e550e,_0x1e711f)=>(_0x217982,_0xffca7f)=>_0x1e711f(_0x217982,_0xffca7f,_0x5e550e);exports[_0x17671e(0x306)]=class extends a[_0x17671e(0x2c4)]{constructor(_0x9204e8,_0x1378c8,_0x403f5b,_0x498297,_0x47ba9c,_0x1ff402,_0x5aee2e,_0xccb19b,_0x596bce,_0x34e7e1,_0x54fbd3,_0x14751b,_0x25d806){const _0xea99c9=_0x17671e;super(),I(this,'_state$',new A[(_0xea99c9(0x1e1))](null)),I(this,_0xea99c9(0x5a2),this['_state$'][_0xea99c9(0x3b4)]()),I(this,_0xea99c9(0x531)),I(this,_0xea99c9(0x570),!0x1),I(this,_0xea99c9(0x434),''),I(this,_0xea99c9(0x4a0),0x0),I(this,_0xea99c9(0x3ca),this[_0xea99c9(0x5a2)]['pipe'](A['map'](_0x27f044=>_0x27f044?_0x27f044[_0xea99c9(0x47a)]:q[_0xea99c9(0x333)]),A[_0xea99c9(0x5d4)](0x1))),I(this,_0xea99c9(0x230),!0x1),I(this,_0xea99c9(0x635),[]),(this[_0xea99c9(0x219)]=_0x9204e8,this['session']=_0x1378c8,this[_0xea99c9(0x1d5)]=_0x403f5b,this[_0xea99c9(0x27e)]=_0x498297,this[_0xea99c9(0x4a3)]=_0x47ba9c,this[_0xea99c9(0x495)]=_0x1ff402,this[_0xea99c9(0x457)]=_0x5aee2e,this['_revisionService']=_0xccb19b,this['_logService']=_0x596bce,this['_commandService']=_0x34e7e1,this[_0xea99c9(0x671)]=_0x54fbd3,this[_0xea99c9(0x5d7)]=_0x14751b,this['_singleActiveUnitService']=_0x25d806);}get[_0x17671e(0x39d)](){const _0x4ac61a=_0x17671e;return this[_0x4ac61a(0x531)];}async[_0x17671e(0x2ce)](){const _0x3b5aa0=_0x17671e;if(this[_0x3b5aa0(0x39d)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}['pauseCollaboration'](){const _0x2723d5=_0x17671e;return this[_0x2723d5(0x570)]=!0x0,a[_0x2723d5(0x60a)](()=>{const _0x56bfe0=_0x2723d5;this[_0x56bfe0(0x570)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x17671e(0x51f)](_0x2900e3){const _0x3f451b=_0x17671e;this[_0x3f451b(0x531)]=_0x2900e3,this[_0x3f451b(0x3c5)][_0x3f451b(0x2de)](_0x2900e3);}async[_0x17671e(0x422)](){const _0x51ba84=_0x17671e;var _0x365bd4;this[_0x51ba84(0x51f)](await this[_0x51ba84(0x59d)]()),this['_singleActiveUnitService']&&((_0x365bd4=this[_0x51ba84(0x5ee)])==null||_0x365bd4['editingUnit'](this[_0x51ba84(0x219)]),this[_0x51ba84(0x5f1)](this[_0x51ba84(0x5ee)]['getUnitStatus$'](this[_0x51ba84(0x219)])[_0x51ba84(0x383)](_0x269093=>{const _0x24bfbe=_0x51ba84;this[_0x24bfbe(0x3f4)][_0x24bfbe(0x597)](_0x24bfbe(0x5cc),_0x24bfbe(0x598),_0x269093),_0x269093===_n['OTHER_CLIENTS_EDITING']?(this[_0x24bfbe(0x671)]['show']({'content':this['_localeService']['t'](_0x24bfbe(0x26e)),'type':Se[_0x24bfbe(0x393)][_0x24bfbe(0x4b0)]}),this[_0x24bfbe(0x5d7)][_0x24bfbe(0x5c9)](new k[(_0x24bfbe(0x51d))](this[_0x24bfbe(0x219)])['id'],!0x1),this['_permissionService'][_0x24bfbe(0x2a6)](!0x1)):(this[_0x24bfbe(0x5d7)][_0x24bfbe(0x5c9)](new k[(_0x24bfbe(0x51d))](this[_0x24bfbe(0x219)])['id'],!0x0),this[_0x24bfbe(0x5d7)]['setShowComponents'](!0x0));})));let _0x22a623=!0x1;return this[_0x51ba84(0x5f1)](this[_0x51ba84(0x50f)][_0x51ba84(0x3b1)]['subscribe'](_0x1f54f4=>{const _0x67a022=_0x51ba84;_0x1f54f4===re[_0x67a022(0x616)]?this[_0x67a022(0x27a)](_0x22a623):_0x1f54f4===re['OFFLINE']&&(_0x22a623=!0x0,this[_0x67a022(0x397)]());})),this[_0x51ba84(0x5f1)](this['session'][_0x51ba84(0x4c4)]['subscribe'](_0x2ad8f5=>{const _0x477841=_0x51ba84;try{switch(_0x2ad8f5[_0x477841(0x3ee)]){case p['CollaborationEvent'][_0x477841(0x2ef)]:{this[_0x477841(0x49c)](p[_0x477841(0x630)](_0x2ad8f5[_0x477841(0x1e9)]));break;}case p['CollaborationEvent'][_0x477841(0x1eb)]:{this[_0x477841(0x3e8)](_0x2ad8f5[_0x477841(0x1e9)]);break;}case p[_0x477841(0x2d6)][_0x477841(0x266)]:{this[_0x477841(0x593)]();break;}case p[_0x477841(0x2d6)][_0x477841(0x3b8)]:{this[_0x477841(0x2ca)](_0x2ad8f5[_0x477841(0x1e9)]);break;}case p[_0x477841(0x2d6)][_0x477841(0x1ec)]:{this['_onFetchMissResult'](_0x2ad8f5[_0x477841(0x1e9)][_0x477841(0x2aa)][_0x477841(0x372)](_0x57631e=>p[_0x477841(0x630)](_0x57631e)));break;}case p[_0x477841(0x2d6)][_0x477841(0x2b7)]:this[_0x477841(0x593)]({'isPermissionRej':!0x0});}}catch(_0x3a4566){throw console['error'](_0x477841(0x66d),_0x3a4566),_0x3a4566;}})),this[_0x51ba84(0x531)];}[_0x17671e(0x643)](){this['_transitionLocked']=!0x1;}[_0x17671e(0x353)](){const _0x15a7e8=_0x17671e;if(this[_0x15a7e8(0x230)])throw new Error(_0x15a7e8(0x26f));this[_0x15a7e8(0x230)]=!0x0;}[_0x17671e(0x262)](_0x2d5b57){const _0x198d2c=_0x17671e;this['_lockTransition'](),this[_0x198d2c(0x51f)](this[_0x198d2c(0x531)][_0x198d2c(0x515)](_0x2d5b57)),this[_0x198d2c(0x643)]();}[_0x17671e(0x49c)](_0x57d3cd){const _0x491647=_0x17671e;if(!(_0x57d3cd['revision']<=this['_revisionService'][_0x491647(0x4c0)](this[_0x491647(0x219)]))){if(this[_0x491647(0x570)]){this[_0x491647(0x635)][_0x491647(0x263)](_0x57d3cd);return;}this[_0x491647(0x4c9)](_0x57d3cd);}}[_0x17671e(0x465)](){const _0x2980ca=_0x17671e;this['_remoteChangesetQueue'][_0x2980ca(0x5ea)](_0x32e622=>this[_0x2980ca(0x4c9)](_0x32e622)),this[_0x2980ca(0x635)]=[];}[_0x17671e(0x4c9)](_0x2b4fcd){const _0x5e625a=_0x17671e,_0x32c460=this[_0x5e625a(0x495)]['interceptor'][_0x5e625a(0x2ee)](this[_0x5e625a(0x495)][_0x5e625a(0x61d)]['getInterceptPoints']()[_0x5e625a(0x3a8)])(_0x2b4fcd[_0x5e625a(0x4a4)],null)||_0x2b4fcd[_0x5e625a(0x4a4)],_0x55d5a4={..._0x2b4fcd,'mutations':_0x32c460};this[_0x5e625a(0x353)](),this['_updateState'](this[_0x5e625a(0x531)]['onRemoteChangeset'](_0x55d5a4)),this['_unlockTransition']();}['_onRemoteACK'](_0x5a173a){const _0x25dae1=_0x17671e;this[_0x25dae1(0x353)](),this[_0x25dae1(0x51f)](this['_state'][_0x25dae1(0x2f1)](_0x5a173a)),this[_0x25dae1(0x643)]();}[_0x17671e(0x593)](_0x55f497){const _0x380b80=_0x17671e;this['_lockTransition'](),this[_0x380b80(0x51f)](this[_0x380b80(0x531)][_0x380b80(0x5ba)](_0x55f497)),this['_unlockTransition']();}['_onRemoteRetry'](_0x432267){const _0x39cb5c=_0x17671e;this[_0x39cb5c(0x353)](),this[_0x39cb5c(0x51f)](this[_0x39cb5c(0x531)][_0x39cb5c(0x366)](_0x432267)),this[_0x39cb5c(0x643)]();}['_onFetchMissResult'](_0x11e0b2){const _0x17bcab=_0x17671e;if(!(this[_0x17bcab(0x531)]instanceof oe))throw new TypeError(_0x17bcab(0x5bc));const _0x57fe07=_0x11e0b2[_0x17bcab(0x372)](_0x5acc05=>{const _0x43bcdc=_0x17bcab,_0x4ce08c=this['_compressMutationService'][_0x43bcdc(0x61d)][_0x43bcdc(0x2ee)](this[_0x43bcdc(0x495)][_0x43bcdc(0x61d)][_0x43bcdc(0x1d8)]()[_0x43bcdc(0x3a8)])(_0x5acc05[_0x43bcdc(0x4a4)],null)||_0x5acc05['mutations'];return{..._0x5acc05,'mutations':_0x4ce08c};});this[_0x17bcab(0x353)](),this[_0x17bcab(0x51f)](this[_0x17bcab(0x531)][_0x17bcab(0x2f6)](_0x57fe07)),this['_unlockTransition']();}['_toggleOffline'](){const _0x4942ae=_0x17671e;this[_0x4942ae(0x353)](),this[_0x4942ae(0x51f)](this['_state'][_0x4942ae(0x513)]()),this['_unlockTransition']();}[_0x17671e(0x27a)](_0x448c3f=!0x1){const _0x224975=_0x17671e;this['_lockTransition'](),this['_updateState'](this['_state'][_0x224975(0x225)]()),this[_0x224975(0x643)]();const _0x7b7856=this['_state'];_0x448c3f&&_0x7b7856 instanceof ye&&(this[_0x224975(0x353)](),this[_0x224975(0x51f)](_0x7b7856['fetchMiss']()),this[_0x224975(0x643)]());}async[_0x17671e(0x59d)](){return new Promise(_0x33e79a=>{const _0x2f00cb=_0x35f6;this['session'][_0x2f00cb(0x3b1)][_0x2f00cb(0x42f)](A[_0x2f00cb(0x5d9)](0x1))[_0x2f00cb(0x383)](async _0x30d80d=>{const _0x366fbc=_0x2f00cb;_0x33e79a(await this['_createInitialStateImpl'](_0x30d80d===re[_0x366fbc(0x616)]));});});}['_createHandler'](){const _0x42b8ee=_0x17671e,_0x5b220b=this[_0x42b8ee(0x219)];return{'onStateChange':(_0x21edfe,_0xb8dff0)=>{const _0x200b68=_0x42b8ee;if(_0x21edfe!==this['_state'])throw new Error(_0x200b68(0x41f)+_0x21edfe[_0x200b68(0x47a)]+_0x200b68(0x36e)+_0xb8dff0['status']+_0x200b68(0x265)+this[_0x200b68(0x531)][_0x200b68(0x47a)]);this['_updateState'](_0xb8dff0);},'onSendChangeset':_0x4ccebb=>{const _0x9e2fae=_0x42b8ee;_0x4ccebb[_0x9e2fae(0x1e7)]||(_0x4ccebb['sid']=this[_0x9e2fae(0x434)],_0x4ccebb[_0x9e2fae(0x469)]=++this['_changesetReqId']);const _0x19b473={'eventID':p['CollaborationEvent'][_0x9e2fae(0x562)],'data':{'unitID':_0x4ccebb['unitID'],'unitType':this[_0x9e2fae(0x1d5)],'changeset':_0x4ccebb,'memberID':this[_0x9e2fae(0x50f)][_0x9e2fae(0x625)]()}};this[_0x9e2fae(0x50f)][_0x9e2fae(0x2cb)](_0x19b473,this[_0x9e2fae(0x219)]);},'onMissingChangesets':({from:_0x54d64a,to:_0x3ef43c})=>{const _0x17a139=_0x42b8ee;this['_logService'][_0x17a139(0x597)]('[CollaborationEntity]',_0x17a139(0x5c8)+_0x54d64a+'\x20to\x20'+_0x3ef43c);const _0x209081={'eventID':p[_0x17a139(0x2d6)][_0x17a139(0x2eb)],'data':{'unitID':_0x5b220b,'unitType':this[_0x17a139(0x1d5)],'from':_0x54d64a,'to':_0x3ef43c}};this[_0x17a139(0x50f)][_0x17a139(0x2cb)](_0x209081,this[_0x17a139(0x219)]);}};}async[_0x17671e(0x2ad)](_0x5dc885){const _0x2b9415=_0x17671e;var _0x1b20c0,_0x183079;const _0x1ca0d9=await this[_0x2b9415(0x4a3)]['loadOfflineData'](this['unitID']),_0x1e0565=(_0x1b20c0=_0x1ca0d9==null?void 0x0:_0x1ca0d9[_0x2b9415(0x4a4)])!=null?_0x1b20c0:[],_0x4e6e59=(_0x183079=_0x1ca0d9==null?void 0x0:_0x1ca0d9[_0x2b9415(0x3b3)])!=null?_0x183079:null,_0x1d1d97=!!(_0x4e6e59!=null&&_0x4e6e59[_0x2b9415(0x1e7)])&&!!(_0x4e6e59!=null&&_0x4e6e59['reqId']);this[_0x2b9415(0x434)]=_0x1d1d97?_0x4e6e59[_0x2b9415(0x1e7)]:di(),this[_0x2b9415(0x4a0)]=_0x1d1d97?_0x4e6e59[_0x2b9415(0x469)]:0x0;const _0x159d7b=this[_0x2b9415(0x219)];try{this[_0x2b9415(0x391)](_0x4e6e59,_0x1e0565);}catch(_0x3dc2ed){this[_0x2b9415(0x3f4)][_0x2b9415(0x2c9)](_0x3dc2ed);}const _0x11ce2d=this[_0x2b9415(0x213)]();if(_0x5dc885){const _0x3068f4=vn(this['_injector'],_0x159d7b,this['_type'],_0x4e6e59,_0x1e0565,_0x11ce2d);return _0x3068f4 instanceof ce?_0x3068f4[_0x2b9415(0x352)]():(_0x3068f4 instanceof le||_0x3068f4 instanceof fe)&&_0x3068f4[_0x2b9415(0x5e2)](),_0x3068f4;}return this[_0x2b9415(0x27e)][_0x2b9415(0x4ed)](me,_0x159d7b,this['_type'],_0x4e6e59,_0x1e0565,_0x11ce2d);}['_replayCachedMutations'](_0xb531d9,_0x1452e8){const _0x4aebf0=_0x17671e;var _0x29c7a6,_0x3dd856;const _0xef185e=this[_0x4aebf0(0x495)][_0x4aebf0(0x61d)][_0x4aebf0(0x2ee)](this[_0x4aebf0(0x495)][_0x4aebf0(0x61d)][_0x4aebf0(0x1d8)]()[_0x4aebf0(0x3a8)]);(_0x29c7a6=_0xef185e((_0xb531d9==null?void 0x0:_0xb531d9['mutations'])||[],null))==null||_0x29c7a6[_0x4aebf0(0x5ea)](_0x39a1b6=>this[_0x4aebf0(0x63b)][_0x4aebf0(0x3c9)](_0x39a1b6['id'],_0x39a1b6[_0x4aebf0(0x4af)])),(_0x3dd856=_0xef185e(_0x1452e8||[],null))==null||_0x3dd856[_0x4aebf0(0x5ea)](_0x741196=>this[_0x4aebf0(0x63b)][_0x4aebf0(0x3c9)](_0x741196['id'],_0x741196['params']));}},exports['CollaborationEntity']=Rt([H(0x3,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),H(0x4,a['Inject'](exports[_0x17671e(0x2f5)])),H(0x5,a['Inject'](p['CompressMutationService'])),H(0x6,a[_0x17671e(0x52e)](a[_0x17671e(0x530)])),H(0x7,a[_0x17671e(0x52e)](p[_0x17671e(0x5e1)])),H(0x8,a[_0x17671e(0x431)]),H(0x9,a[_0x17671e(0x336)]),H(0xa,te[_0x17671e(0x21a)]),H(0xb,a[_0x17671e(0x386)]),H(0xc,a[_0x17671e(0x45e)](qe))],exports[_0x17671e(0x306)]),exports[_0x17671e(0x557)]=class extends exports[_0x17671e(0x306)]{constructor(_0x1d7433,_0x367c6f,_0x4267b2,_0x37c088,_0x705a63,_0x380813,_0x1619dd,_0x4d8d15,_0xab645a,_0x17ee08,_0x47156f,_0x501c3f,_0x4c17db,_0x12df0a,_0x3ec54a,_0x446564,_0xd1f4b1,_0x4f4316){const _0x565da9=_0x17671e;super(_0x1d7433,_0x4267b2,_0x367c6f,_0x37c088,_0x705a63,_0x380813,_0x1619dd,_0x4d8d15,_0x12df0a,_0x3ec54a,_0x446564,_0xd1f4b1,_0x4f4316),this['unitID']=_0x1d7433,this[_0x565da9(0x224)]=_0x367c6f,this[_0x565da9(0x63f)]=_0xab645a,this[_0x565da9(0x612)]=_0x17ee08,this['_docTransformStateCacheService']=_0x47156f,this[_0x565da9(0x42a)]=_0x501c3f,this['_docSyncEditingCollabCursorService']=_0x4c17db;}[_0x17671e(0x213)](){const _0x2c7ed4=_0x17671e,_0x112f76=super[_0x2c7ed4(0x213)]();return _0x112f76[_0x2c7ed4(0x328)]=_0x5160e1=>this[_0x2c7ed4(0x612)][_0x2c7ed4(0x4b4)](_0x5160e1),_0x112f76[_0x2c7ed4(0x4ea)]=_0x4797dd=>this['_docTransformStateCacheService'][_0x2c7ed4(0x651)](_0x4797dd),_0x112f76[_0x2c7ed4(0x5aa)]=_0x2a7307=>this['_docTransformSelectionsService'][_0x2c7ed4(0x1dd)](_0x2a7307),_0x112f76[_0x2c7ed4(0x526)]=_0x4964fa=>this['_docSyncEditingCollabCursorService'][_0x2c7ed4(0x2e5)](_0x4964fa),_0x112f76[_0x2c7ed4(0x432)]=_0x4f5913=>this[_0x2c7ed4(0x612)][_0x2c7ed4(0x320)](_0x4f5913),_0x112f76[_0x2c7ed4(0x619)]=_0x5da3fa=>this[_0x2c7ed4(0x4d6)][_0x2c7ed4(0x320)](_0x5da3fa),_0x112f76;}async[_0x17671e(0x422)](){const _0x1ba23e=_0x17671e,_0x2ebcf4=await super[_0x1ba23e(0x422)]();return this[_0x1ba23e(0x63f)]['docStateChange$'][_0x1ba23e(0x42f)](A[_0x1ba23e(0x500)](this[_0x1ba23e(0x52d)]))[_0x1ba23e(0x383)](_0x4e481b=>{const _0x5071d4=_0x1ba23e;if(_0x4e481b==null)return;const {unitId:_0x1ccf31,redoState:_0x602922,commandId:_0x3c0ec0}=_0x4e481b;if(_0x1ccf31!==this[_0x5071d4(0x219)])return;const _0x288978={'id':_0x3c0ec0,'type':a[_0x5071d4(0x26b)][_0x5071d4(0x5f0)],'params':{'unitId':_0x1ccf31,'actions':_0x602922['actions'],'textRanges':null}};this[_0x5071d4(0x262)](_0x288978);}),_0x2ebcf4;}},exports[_0x17671e(0x557)]=Rt([H(0x3,a['Inject'](a[_0x17671e(0x29a)])),H(0x4,a[_0x17671e(0x52e)](exports[_0x17671e(0x2f5)])),H(0x5,a[_0x17671e(0x52e)](p[_0x17671e(0x325)])),H(0x6,a[_0x17671e(0x52e)](a['LocaleService'])),H(0x7,a[_0x17671e(0x52e)](p[_0x17671e(0x5e1)])),H(0x8,a['Inject'](Z[_0x17671e(0x2bf)])),H(0x9,a[_0x17671e(0x52e)](Be)),H(0xa,a[_0x17671e(0x52e)](We)),H(0xb,a[_0x17671e(0x52e)](Fe)),H(0xc,a['Inject'](Tt)),H(0xd,a['ILogService']),H(0xe,a['ICommandService']),H(0xf,te['IMessageService']),H(0x10,a['IPermissionService']),H(0x11,a[_0x17671e(0x45e)](qe))],exports[_0x17671e(0x557)]),exports['SheetCollaborationEntity']=class extends exports[_0x17671e(0x306)]{constructor(_0x54a7e8,_0x2d1680,_0x14fc18,_0x54f4ba,_0x44af6a,_0x3665c0,_0x42e7d,_0x7496b3,_0x3a1479,_0x3c9b38,_0x1ef730,_0x49991c,_0x5fcbb3,_0x50dec6){const _0x4d9923=_0x17671e;super(_0x54a7e8,_0x14fc18,_0x2d1680,_0x54f4ba,_0x44af6a,_0x3665c0,_0x42e7d,_0x7496b3,_0x3c9b38,_0x1ef730,_0x49991c,_0x5fcbb3,_0x50dec6),this[_0x4d9923(0x219)]=_0x54a7e8,this[_0x4d9923(0x224)]=_0x2d1680,this[_0x4d9923(0x4d8)]=_0x3a1479;}[_0x17671e(0x213)](){const _0x2188d7=_0x17671e,_0x3bbf39=super['_createHandler']();return _0x3bbf39[_0x2188d7(0x5aa)]=_0x336687=>this['_sheetTransformSelectionsService']['transformSelections'](_0x336687),_0x3bbf39;}async['_init'](){const _0x3144ad=_0x17671e,_0x2d03eb=await super[_0x3144ad(0x422)]();return this[_0x3144ad(0x5f1)](this['_commandService']['onCommandExecuted']((_0x5d6c51,_0x42cd8d)=>{const _0x579307=_0x3144ad;if(_0x5d6c51[_0x579307(0x224)]!==a[_0x579307(0x26b)][_0x579307(0x5f0)]||_0x42cd8d!=null&&_0x42cd8d['fromCollab']||_0x42cd8d!=null&&_0x42cd8d[_0x579307(0x44f)])return;const _0x1e7fc3=_0x5d6c51[_0x579307(0x4af)];if((_0x1e7fc3==null?void 0x0:_0x1e7fc3['unitId'])!==this[_0x579307(0x219)])return;const _0x2cc21b=_0x5d6c51,_0x23bcc2=this['_compressMutationService'][_0x579307(0x61d)][_0x579307(0x2ee)](this['_compressMutationService'][_0x579307(0x61d)][_0x579307(0x1d8)]()[_0x579307(0x419)])([_0x2cc21b],null)||[_0x2cc21b];this['_onLocalMutation'](_0x23bcc2[0x0]);})),_0x2d03eb;}},exports['SheetCollaborationEntity']=Rt([H(0x3,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),H(0x4,a[_0x17671e(0x52e)](exports[_0x17671e(0x2f5)])),H(0x5,a[_0x17671e(0x52e)](p[_0x17671e(0x325)])),H(0x6,a[_0x17671e(0x52e)](a[_0x17671e(0x530)])),H(0x7,a[_0x17671e(0x52e)](p[_0x17671e(0x5e1)])),H(0x8,a[_0x17671e(0x52e)](ke)),H(0x9,a[_0x17671e(0x431)]),H(0xa,a['ICommandService']),H(0xb,te[_0x17671e(0x21a)]),H(0xc,a[_0x17671e(0x386)]),H(0xd,a['Optional'](qe))],exports[_0x17671e(0x4e5)]);var Hi=Object['defineProperty'],Bi=Object[_0x17671e(0x47f)],ki=(_0x46ab4b,_0x4eaedb,_0x43ef72,_0x571c60)=>{const _0x3c427f=_0x17671e;for(var _0xa4cd41=_0x571c60>0x1?void 0x0:_0x571c60?Bi(_0x4eaedb,_0x43ef72):_0x4eaedb,_0x246ec2=_0x46ab4b[_0x3c427f(0x367)]-0x1,_0x1fe690;_0x246ec2>=0x0;_0x246ec2--)(_0x1fe690=_0x46ab4b[_0x246ec2])&&(_0xa4cd41=(_0x571c60?_0x1fe690(_0x4eaedb,_0x43ef72,_0xa4cd41):_0x1fe690(_0xa4cd41))||_0xa4cd41);return _0x571c60&&_0xa4cd41&&Hi(_0x4eaedb,_0x43ef72,_0xa4cd41),_0xa4cd41;},et=(_0x1c267f,_0x275ff3)=>(_0x50a56e,_0x598fd4)=>_0x275ff3(_0x50a56e,_0x598fd4,_0x1c267f);exports[_0x17671e(0x26d)]=class extends a[_0x17671e(0x2c4)]{constructor(_0x47524d,_0x5247ba,_0x5ef335){const _0x5f3236=_0x17671e;super(),I(this,_0x5f3236(0x38e),new Map()),I(this,_0x5f3236(0x4bd),new A[(_0x5f3236(0x4c2))]()),(this[_0x5f3236(0x27e)]=_0x47524d,this['_collabSessionService']=_0x5247ba,this[_0x5f3236(0x2ba)]=_0x5ef335,this[_0x5f3236(0x422)]());}['dispose'](){const _0x42c815=_0x17671e;super[_0x42c815(0x37d)](),this[_0x42c815(0x38e)][_0x42c815(0x5ea)](_0x5b30bb=>_0x5b30bb[_0x42c815(0x37d)]()),this['_entities']['clear']();}[_0x17671e(0x583)](_0x3ee80a){const _0x3d5daa=_0x17671e;var _0x14db61;return(_0x14db61=this[_0x3d5daa(0x38e)][_0x3d5daa(0x2a7)](_0x3ee80a))!=null?_0x14db61:null;}[_0x17671e(0x36d)](_0x36e06f){const _0x2492a0=_0x17671e,_0x6c8421=this[_0x2492a0(0x583)](_0x36e06f);return _0x6c8421?A['of'](_0x6c8421):this['_entityInit$'][_0x2492a0(0x42f)](V[_0x2492a0(0x335)](_0x172796=>_0x172796[_0x2492a0(0x219)]===_0x36e06f));}[_0x17671e(0x422)](){const _0x273684=_0x17671e;this['_univerInstanceService'][_0x273684(0x58a)](a[_0x273684(0x664)][_0x273684(0x360)])[_0x273684(0x42f)](A[_0x273684(0x500)](this[_0x273684(0x52d)]),V[_0x273684(0x2df)](0x10))[_0x273684(0x383)](async _0x3fee9b=>{const _0x16b1f2=_0x273684,_0x29f45f=_0x3fee9b[_0x16b1f2(0x21c)](),_0x8e27=await this[_0x16b1f2(0x1de)](_0x29f45f,se[_0x16b1f2(0x360)]);this[_0x16b1f2(0x38e)][_0x16b1f2(0x4da)](_0x29f45f,_0x8e27);}),this[_0x273684(0x2ba)][_0x273684(0x58a)](a[_0x273684(0x664)]['UNIVER_DOC'])['pipe'](A['takeUntil'](this['dispose$']),V[_0x273684(0x2df)](0x10))[_0x273684(0x42f)](V[_0x273684(0x335)](_0x39e1a1=>!_0x39e1a1[_0x273684(0x21c)]()[_0x273684(0x412)]('__')))['subscribe'](async _0x19f15b=>{const _0x2669d0=_0x273684,_0x37d5b6=_0x19f15b[_0x2669d0(0x21c)](),_0xcc5240=await this[_0x2669d0(0x1de)](_0x37d5b6,se[_0x2669d0(0x4ca)]);this[_0x2669d0(0x38e)][_0x2669d0(0x4da)](_0x37d5b6,_0xcc5240);}),A[_0x273684(0x5dc)](this[_0x273684(0x2ba)][_0x273684(0x226)](a[_0x273684(0x664)][_0x273684(0x360)]),this[_0x273684(0x2ba)]['getTypeOfUnitDisposed$'](a[_0x273684(0x664)][_0x273684(0x4ca)]))[_0x273684(0x42f)](A[_0x273684(0x500)](this['dispose$']))['subscribe'](_0x2e7801=>{const _0x2f771=_0x273684,_0x1081f3=_0x2e7801[_0x2f771(0x21c)](),_0x31f476=this[_0x2f771(0x38e)]['get'](_0x1081f3);_0x31f476&&(_0x31f476[_0x2f771(0x37d)](),this[_0x2f771(0x38e)]['delete'](_0x1081f3));});}async['_startCollaboration'](_0x4fbfd5,_0x111144){const _0x1548b7=_0x17671e,_0x3a755b=await this[_0x1548b7(0x32f)][_0x1548b7(0x358)](_0x4fbfd5),_0x595c88=this[_0x1548b7(0x27e)]['createInstance'](this['_getCtorByUniverType'](_0x111144),_0x4fbfd5,_0x111144,_0x3a755b);return await _0x595c88['init'](),this[_0x1548b7(0x4bd)][_0x1548b7(0x2de)](_0x595c88),_0x595c88;}[_0x17671e(0x448)](_0x4e460e){const _0x2c2716=_0x17671e;switch(_0x4e460e){case se[_0x2c2716(0x4ca)]:return exports[_0x2c2716(0x557)];case se['UNIVER_SHEET']:return exports[_0x2c2716(0x4e5)];default:throw new Error(_0x2c2716(0x580)+_0x4e460e);}}},exports[_0x17671e(0x26d)]=ki([et(0x0,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),et(0x1,a[_0x17671e(0x52e)](exports['CollaborationSessionService'])),et(0x2,a[_0x17671e(0x4fc)])],exports[_0x17671e(0x26d)]);const $t=['purple300',_0x17671e(0x418),'verdancy600',_0x17671e(0x345),_0x17671e(0x2a1),_0x17671e(0x29c)];class yt extends a['Disposable']{constructor(){const _0x54446e=_0x17671e;super(...arguments),I(this,_0x54446e(0x58d),new Map()),I(this,'_colorIndex',0x0);}[_0x17671e(0x2fb)](_0x14579a){const _0x3ee388=_0x17671e;if(this[_0x3ee388(0x58d)][_0x3ee388(0x44d)](_0x14579a))return this[_0x3ee388(0x58d)][_0x3ee388(0x2a7)](_0x14579a);const _0x25fe4e=$t[this[_0x3ee388(0x673)]];return this[_0x3ee388(0x673)]=(this[_0x3ee388(0x673)]+0x1)%$t['length'],this[_0x3ee388(0x58d)][_0x3ee388(0x4da)](_0x14579a,_0x25fe4e),_0x25fe4e;}}var Wi=Object[_0x17671e(0x545)],Fi=Object['getOwnPropertyDescriptor'],Vi=(_0x2c11fe,_0x437784,_0x4b75f1,_0x3a705f)=>{const _0x5ef82d=_0x17671e;for(var _0x142385=_0x3a705f>0x1?void 0x0:_0x3a705f?Fi(_0x437784,_0x4b75f1):_0x437784,_0x118ad6=_0x2c11fe[_0x5ef82d(0x367)]-0x1,_0x3b2fcb;_0x118ad6>=0x0;_0x118ad6--)(_0x3b2fcb=_0x2c11fe[_0x118ad6])&&(_0x142385=(_0x3a705f?_0x3b2fcb(_0x437784,_0x4b75f1,_0x142385):_0x3b2fcb(_0x142385))||_0x142385);return _0x3a705f&&_0x142385&&Wi(_0x437784,_0x4b75f1,_0x142385),_0x142385;},pe=(_0x517cea,_0x3ba900)=>(_0xbfb241,_0x481dab)=>_0x3ba900(_0xbfb241,_0x481dab,_0x517cea);const Gi=0x12c,Yi=0x64;let vt=class extends a[_0x17671e(0x2c4)]{constructor(_0x241136,_0x2df32a,_0x44e2c7,_0xed5912,_0x5b62db,_0x2c1320,_0xcc5c31,_0x4c44e9,_0x12f8bb){const _0x22324b=_0x17671e;super(),I(this,'_online',!0x1),I(this,_0x22324b(0x422),!0x1),I(this,_0x22324b(0x58b),new A['BehaviorSubject'](new Map())),I(this,_0x22324b(0x4d5),this[_0x22324b(0x58b)]['asObservable']()),I(this,_0x22324b(0x52c),new A[(_0x22324b(0x1e1))]([])),I(this,_0x22324b(0x48c),this['_roomMembers$']['pipe'](A[_0x22324b(0x312)](Gi))),I(this,'_updateLocalCursor',a[_0x22324b(0x2a9)](_0x11c482=>{const _0x185499=_0x22324b,_0xb9b722={'eventID':p[_0x185499(0x2d6)][_0x185499(0x2d7)],'data':{'unitID':this[_0x185499(0x219)],'memberID':this[_0x185499(0x595)]['getMemberID'](),'selection':un(_0x11c482)}};this[_0x185499(0x595)][_0x185499(0x2cb)](_0xb9b722,this[_0x185499(0x219)]);},Yi)),(this[_0x22324b(0x219)]=_0x241136,this[_0x22324b(0x595)]=_0x2df32a,this['_injector']=_0x44e2c7,this[_0x22324b(0x4b8)]=_0xed5912,this['_memberService']=_0x5b62db,this[_0x22324b(0x553)]=_0x2c1320,this[_0x22324b(0x5b9)]=_0xcc5c31,this[_0x22324b(0x2ba)]=_0x4c44e9,this[_0x22324b(0x63b)]=_0x12f8bb);}get[_0x17671e(0x551)](){const _0x579633=_0x17671e;return this[_0x579633(0x58b)][_0x579633(0x2d9)]();}get[_0x17671e(0x45b)](){const _0xda045d=_0x17671e;return this['_roomMembers$'][_0xda045d(0x2d9)]();}[_0x17671e(0x37d)](){const _0x8dd487=_0x17671e;super[_0x8dd487(0x37d)](),this[_0x8dd487(0x58b)]['next'](new Map()),this[_0x8dd487(0x58b)][_0x8dd487(0x409)](),this[_0x8dd487(0x52c)][_0x8dd487(0x2de)]([]),this[_0x8dd487(0x52c)]['complete']();}['init'](){const _0x99cf3f=_0x17671e;this[_0x99cf3f(0x422)]||(this[_0x99cf3f(0x422)]=!0x0,this[_0x99cf3f(0x595)][_0x99cf3f(0x3b1)][_0x99cf3f(0x42f)](A[_0x99cf3f(0x500)](this[_0x99cf3f(0x52d)]))[_0x99cf3f(0x383)](_0x3b4aaf=>{_0x3b4aaf===re['ONLINE']?this['_toggleOnline']():this['_toggleOffline']();}),this['_session'][_0x99cf3f(0x4c4)]['pipe'](A[_0x99cf3f(0x500)](this['dispose$']))[_0x99cf3f(0x383)](_0x44319a=>{const _0x19a5de=_0x99cf3f,_0x55c141=_0x44319a[_0x19a5de(0x3ee)];_0x55c141===p['CollaborationEvent']['UPDATE_CURSOR']&&this[_0x19a5de(0x466)](_0x44319a),_0x55c141===p[_0x19a5de(0x2d6)][_0x19a5de(0x63a)]&&this[_0x19a5de(0x40a)](_0x44319a);}),this[_0x99cf3f(0x5f1)](this[_0x99cf3f(0x63b)]['onCommandExecuted'](_0x533702=>{const _0x45adfc=_0x99cf3f,_0x342dd8=_0x533702[_0x45adfc(0x4af)];_0x342dd8!=null&&this['_online']&&_0x533702['id']===Re[_0x45adfc(0x20e)]['id']&&_0x342dd8[_0x45adfc(0x678)]===this['unitID']&&_0x342dd8['isEditing']===!0x1&&_0x342dd8[_0x45adfc(0x5ae)][_0x45adfc(0x367)]>0x0&&this['_updateLocalCursor'](_0x342dd8[_0x45adfc(0x5ae)]);})),this[_0x99cf3f(0x553)][_0x99cf3f(0x2c8)][_0x99cf3f(0x42f)](A[_0x99cf3f(0x500)](this[_0x99cf3f(0x52d)]))[_0x99cf3f(0x383)](_0x31bcfd=>{const _0x41723a=_0x99cf3f;if((_0x31bcfd==null?void 0x0:_0x31bcfd[_0x41723a(0x219)])!==this[_0x41723a(0x219)])return;const _0x2b0125={'eventID':p[_0x41723a(0x2d6)][_0x41723a(0x2d7)],'data':_0x31bcfd};this[_0x41723a(0x466)](_0x2b0125);}),this[_0x99cf3f(0x5f1)](this[_0x99cf3f(0x63b)][_0x99cf3f(0x329)](_0x3cd83f=>{const _0x897757=_0x99cf3f;if(_0x3cd83f[_0x897757(0x4af)]==null)return;const _0x43afdd=_0x3cd83f['params'];if(_0x3cd83f['id']!==Re['RichTextEditingMutation']['id']||_0x43afdd['unitId']!==this['unitID'])return;const _0x137254={'id':_0x897757(0x44b),'params':_0x43afdd},_0x194fdc=this['cursorInfo'];for(const [_0x343d62,_0x2b3aeb]of _0x194fdc){const _0x45b5c9={'id':_0x897757(0x44b),'params':{'unitId':this[_0x897757(0x219)],'actions':null,'textRanges':_0x2b3aeb[_0x897757(0x5ae)]}},_0x3365b4=this[_0x897757(0x5b9)][_0x897757(0x207)](_0x137254,_0x45b5c9,!0x1);if(p[_0x897757(0x3d1)](_0x3365b4))throw _0x3365b4['error'];_0x194fdc[_0x897757(0x4da)](_0x343d62,{..._0x2b3aeb,'ranges':_0x3365b4['m2Prime']['params']['textRanges']});}queueMicrotask(()=>{const _0x59ec2e=_0x897757;this[_0x59ec2e(0x58b)]['next'](_0x194fdc);});})));}['_onCursorUpdate'](_0x4d1f6b){const _0x3fe665=_0x17671e;var _0x1b4fad,_0x47fcf8;const {memberID:_0x1b9854,selection:_0x5ad59f}=_0x4d1f6b[_0x3fe665(0x1e9)],_0x1d1573=Di(_0x5ad59f),_0x5d24f3=(_0x47fcf8=(_0x1b4fad=this['_memberService'][_0x3fe665(0x20f)](this['unitID'],_0x1b9854))==null?void 0x0:_0x1b4fad[_0x3fe665(0x3ea)])!=null?_0x47fcf8:_0x3fe665(0x485),_0x283cf5={'color':this[_0x3fe665(0x4b8)][_0x3fe665(0x2fb)](_0x1b9854),'name':_0x5d24f3,'ranges':_0x1d1573},_0x58817f=this[_0x3fe665(0x551)];_0x58817f[_0x3fe665(0x4da)](_0x1b9854,_0x283cf5),this[_0x3fe665(0x58b)]['next'](_0x58817f);}[_0x17671e(0x40a)](_0x2fafa6){const _0x1660d3=_0x17671e,{memberID:_0x27e1fc}=_0x2fafa6[_0x1660d3(0x1e9)],_0x136614=this[_0x1660d3(0x551)];_0x136614[_0x1660d3(0x430)](_0x27e1fc),this[_0x1660d3(0x58b)][_0x1660d3(0x2de)](_0x136614);}[_0x17671e(0x27a)](){const _0x370773=_0x17671e;var _0x804a11;if(this[_0x370773(0x5c2)]=!0x0,((_0x804a11=this[_0x370773(0x2ba)][_0x370773(0x3ab)]())==null?void 0x0:_0x804a11['getUnitId']())!==this[_0x370773(0x219)])return;const _0x2fa8bb=this[_0x370773(0x27e)]['get'](Re[_0x370773(0x565)])[_0x370773(0x61a)]();Array[_0x370773(0x385)](_0x2fa8bb)&&_0x2fa8bb['length']>0x0&&this[_0x370773(0x33e)](_0x2fa8bb);}[_0x17671e(0x397)](){const _0x353f70=_0x17671e;this[_0x353f70(0x5c2)]=!0x1;}};vt=Vi([pe(0x2,a[_0x17671e(0x52e)](a['Injector'])),pe(0x3,a[_0x17671e(0x52e)](yt)),pe(0x4,a[_0x17671e(0x52e)](exports[_0x17671e(0x4bf)])),pe(0x5,a['Inject'](Tt)),pe(0x6,p[_0x17671e(0x232)]),pe(0x7,a[_0x17671e(0x4fc)]),pe(0x8,a[_0x17671e(0x336)])],vt);var Ki=Object['defineProperty'],qi=Object[_0x17671e(0x47f)],zi=(_0xea79f5,_0x5e498d,_0x112ac9,_0x580326)=>{const _0x149ae0=_0x17671e;for(var _0x2dea3e=_0x580326>0x1?void 0x0:_0x580326?qi(_0x5e498d,_0x112ac9):_0x5e498d,_0x5792b7=_0xea79f5[_0x149ae0(0x367)]-0x1,_0x4c35db;_0x5792b7>=0x0;_0x5792b7--)(_0x4c35db=_0xea79f5[_0x5792b7])&&(_0x2dea3e=(_0x580326?_0x4c35db(_0x5e498d,_0x112ac9,_0x2dea3e):_0x4c35db(_0x2dea3e))||_0x2dea3e);return _0x580326&&_0x2dea3e&&Ki(_0x5e498d,_0x112ac9,_0x2dea3e),_0x2dea3e;},Ee=(_0x58b1d3,_0x3eed91)=>(_0x1a4be9,_0x438f24)=>_0x3eed91(_0x1a4be9,_0x438f24,_0x58b1d3);const Xi=0x12c,Ji=0x64,Zi=()=>{let _0x27339b=[],_0x4c00ef=!0x1;return _0xee8059=>{const _0x1e5a18=_0x35f6;_0x27339b[_0x1e5a18(0x263)](_0xee8059),_0x4c00ef||(_0x4c00ef=!0x0,setTimeout(()=>{const _0x145c39=_0x1e5a18;_0x27339b[_0x145c39(0x5ea)](_0x351372=>_0x351372()),_0x27339b=[],_0x4c00ef=!0x1;}));};};let mt=class extends a['RxDisposable']{constructor(_0x442b16,_0xf2e202,_0x18f5dc,_0x14b45f,_0x2fceb4,_0x4daeda,_0x7dff23,_0x5baa0e){const _0x41772e=_0x17671e;super(),I(this,_0x41772e(0x5c2),!0x1),I(this,'_init',!0x1),I(this,'_cursorInfo$',new A[(_0x41772e(0x1e1))](new Map())),I(this,_0x41772e(0x4d5),this[_0x41772e(0x58b)][_0x41772e(0x3b4)]()),I(this,_0x41772e(0x52c),new A[(_0x41772e(0x1e1))]([])),I(this,_0x41772e(0x48c),this[_0x41772e(0x52c)][_0x41772e(0x42f)](A[_0x41772e(0x312)](Xi))),I(this,_0x41772e(0x33e),a[_0x41772e(0x2a9)]((_0xd2656a,_0x399e53)=>{const _0xb6e9c0=_0x41772e,_0x4d16c7={'eventID':p[_0xb6e9c0(0x2d6)][_0xb6e9c0(0x2d7)],'data':{'unitID':this[_0xb6e9c0(0x219)],'memberID':this['_session'][_0xb6e9c0(0x625)](),'selection':wt[_0xb6e9c0(0x3db)](_0xd2656a,_0x399e53[_0xb6e9c0(0x3e6)])}};this[_0xb6e9c0(0x595)][_0xb6e9c0(0x2cb)](_0x4d16c7,this[_0xb6e9c0(0x219)]);},Ji)),(this[_0x41772e(0x219)]=_0x442b16,this[_0x41772e(0x595)]=_0xf2e202,this[_0x41772e(0x27e)]=_0x18f5dc,this[_0x41772e(0x4b8)]=_0x14b45f,this[_0x41772e(0x58c)]=_0x2fceb4,this[_0x41772e(0x2ba)]=_0x4daeda,this[_0x41772e(0x63b)]=_0x7dff23,this['_refRangeService']=_0x5baa0e);}get['cursorInfo'](){const _0x4217d5=_0x17671e;return this['_cursorInfo$'][_0x4217d5(0x2d9)]();}get[_0x17671e(0x45b)](){const _0x57aef0=_0x17671e;return this[_0x57aef0(0x52c)][_0x57aef0(0x2d9)]();}[_0x17671e(0x37d)](){const _0x11c3f8=_0x17671e;super[_0x11c3f8(0x37d)](),this[_0x11c3f8(0x58b)]['next'](new Map()),this[_0x11c3f8(0x58b)][_0x11c3f8(0x409)](),this['_roomMembers$']['next']([]),this[_0x11c3f8(0x52c)][_0x11c3f8(0x409)]();}[_0x17671e(0x2ce)](){const _0x42f7ed=_0x17671e;this['_init']||(this[_0x42f7ed(0x422)]=!0x0,this[_0x42f7ed(0x595)][_0x42f7ed(0x3b1)][_0x42f7ed(0x42f)](A[_0x42f7ed(0x500)](this[_0x42f7ed(0x52d)]))[_0x42f7ed(0x383)](_0x5a9f9e=>{const _0x49c156=_0x42f7ed;_0x5a9f9e===re[_0x49c156(0x616)]?this[_0x49c156(0x27a)]():this['_toggleOffline']();}),this['_session'][_0x42f7ed(0x4c4)][_0x42f7ed(0x42f)](A[_0x42f7ed(0x500)](this[_0x42f7ed(0x52d)]))['subscribe'](_0x332b50=>{const _0x4d5182=_0x42f7ed,_0x6d79e9=_0x332b50['eventID'];_0x6d79e9===p[_0x4d5182(0x2d6)][_0x4d5182(0x2d7)]&&this[_0x4d5182(0x466)](_0x332b50),_0x6d79e9===p['CollaborationEvent'][_0x4d5182(0x63a)]&&this[_0x4d5182(0x40a)](_0x332b50);}),this[_0x42f7ed(0x346)](),this[_0x42f7ed(0x5f1)](this[_0x42f7ed(0x63b)][_0x42f7ed(0x329)](_0xbb5e71=>{const _0xb15c28=_0x42f7ed;if(this['_online']&&_0xbb5e71['id']===k['SetSelectionsOperation']['id']&&_0xbb5e71[_0xb15c28(0x4af)][_0xb15c28(0x678)]===this[_0xb15c28(0x219)]){const _0x5df4c4=_0xbb5e71[_0xb15c28(0x4af)];this['_updateLocalCursor'](_0x5df4c4[_0xb15c28(0x330)],_0x5df4c4[_0xb15c28(0x57c)][0x0]);}})));}[_0x17671e(0x466)](_0x1c27c0){const _0x519df8=_0x17671e;var _0x9d470f,_0x551f08;const {memberID:_0x4e34f4,selection:_0x36dc1c}=_0x1c27c0[_0x519df8(0x1e9)],{sheetName:_0x4bae25,range:_0x5cbc80}=wt['deserializeRangeWithSheet'](_0x36dc1c),_0x1369ff={'name':(_0x551f08=(_0x9d470f=this['_memberService']['getMember'](this['unitID'],_0x4e34f4))==null?void 0x0:_0x9d470f['name'])!=null?_0x551f08:'Unknown\x20user','range':this['_getMergeRange'](_0x4bae25,_0x5cbc80),'sheetID':_0x4bae25,'color':this[_0x519df8(0x4b8)][_0x519df8(0x2fb)](_0x4e34f4),'selection':_0x36dc1c},_0x546a16=this[_0x519df8(0x551)];_0x546a16['set'](_0x4e34f4,_0x1369ff),this['_cursorInfo$']['next'](_0x546a16);}['_onCursorDelete'](_0x340896){const _0x4276d3=_0x17671e,{memberID:_0x2547d3}=_0x340896[_0x4276d3(0x1e9)],_0x4076f4=this[_0x4276d3(0x551)];_0x4076f4[_0x4276d3(0x430)](_0x2547d3),this[_0x4276d3(0x58b)][_0x4276d3(0x2de)](_0x4076f4);}[_0x17671e(0x5f2)](_0x1d4182,_0x44b4ba){const _0xace0c5=_0x17671e;var _0x2db3ca,_0x580dbe;const _0x32872e=(_0x580dbe=(_0x2db3ca=this[_0xace0c5(0x2ba)][_0xace0c5(0x3a4)](this[_0xace0c5(0x219)]))==null?void 0x0:_0x2db3ca['getSheetBySheetId'](_0x1d4182))==null?void 0x0:_0x580dbe[_0xace0c5(0x4d2)]();return(_0x32872e==null?void 0x0:_0x32872e[_0xace0c5(0x311)](_0x4f3c99=>a[_0xace0c5(0x227)][_0xace0c5(0x410)](_0x4f3c99,_0x44b4ba)))||_0x44b4ba;}['_onRefRangeChange'](){const _0x4a3615=_0x17671e,_0x217e4b=new a[(_0x4a3615(0x443))](),_0xec31ed=Zi(),_0x3ca0c1=()=>{const _0x3be936=_0x4a3615;_0x217e4b[_0x3be936(0x37d)]();const _0x4110e0=(_0x58fc80,_0xf53ef,_0x20a14f,_0x64816d)=>{const _0x357c08=_0x3be936;let _0x42326b=[];switch(_0x58fc80['id']){case k[_0x357c08(0x3e1)][_0x357c08(0x475)]:{_0x42326b=k['handleDeleteRangeMoveLeft'](_0x58fc80,_0x64816d);break;}case k[_0x357c08(0x3e1)][_0x357c08(0x49b)]:{_0x42326b=k[_0x357c08(0x407)](_0x58fc80,_0x64816d);break;}case k[_0x357c08(0x3e1)]['InsertColCommandId']:{_0x42326b=k['handleInsertCol'](_0x58fc80,_0x64816d);break;}case k['EffectRefRangId'][_0x357c08(0x293)]:{_0x42326b=k[_0x357c08(0x468)](_0x58fc80,_0x64816d);break;}case k[_0x357c08(0x3e1)][_0x357c08(0x4f6)]:{_0x42326b=k[_0x357c08(0x521)](_0x58fc80,_0x64816d);break;}case k[_0x357c08(0x3e1)][_0x357c08(0x390)]:{_0x42326b=k[_0x357c08(0x437)](_0x58fc80,_0x64816d);break;}case k[_0x357c08(0x3e1)][_0x357c08(0x615)]:{_0x42326b=k[_0x357c08(0x4de)](_0x58fc80,_0x64816d);break;}case k[_0x357c08(0x3e1)][_0x357c08(0x652)]:{_0x42326b=k[_0x357c08(0x269)](_0x58fc80,_0x64816d);break;}case k[_0x357c08(0x3e1)][_0x357c08(0x5b3)]:{_0x42326b=k[_0x357c08(0x221)](_0x58fc80,_0x64816d);break;}}const _0x5e007f=k[_0x357c08(0x455)](_0x42326b,_0x64816d),_0x549f4c=this[_0x357c08(0x551)][_0x357c08(0x2a7)](_0xf53ef);if(_0x549f4c&&_0x5e007f){const _0x105c14={..._0x549f4c,'range':_0x5e007f};this[_0x357c08(0x551)]['set'](_0xf53ef,_0x105c14),_0xec31ed(()=>{const _0xe815d=_0x357c08,_0x554d95=this[_0xe815d(0x56a)][_0xe815d(0x480)](_0x5e007f,_0x4c0c73=>(_0x554d95['dispose'](),_0x4110e0(_0x4c0c73,_0xf53ef,_0x20a14f,_0x5e007f)));_0x217e4b['add'](_0x554d95);});}return{'redos':[],'undos':[]};};this[_0x3be936(0x551)][_0x3be936(0x5ea)]((_0xfba0bc,_0x3a49d6)=>{const _0x533a6a=_0x3be936,{range:_0x4274fe,sheetID:_0x50cb1b}=_0xfba0bc,_0x206faa=this[_0x533a6a(0x56a)][_0x533a6a(0x480)](_0x4274fe,_0x489872=>(_0x206faa['dispose'](),_0x4110e0(_0x489872,_0x3a49d6,_0x50cb1b,_0x4274fe)));_0x217e4b[_0x533a6a(0x27b)](_0x206faa);});};this['disposeWithMe'](a[_0x4a3615(0x60a)](this[_0x4a3615(0x58b)][_0x4a3615(0x383)](()=>{_0x3ca0c1();})));}[_0x17671e(0x27a)](){const _0x46cd3b=_0x17671e;var _0x556c91,_0x7f62bd;if(this[_0x46cd3b(0x5c2)]=!0x0,((_0x556c91=this['_univerInstanceService'][_0x46cd3b(0x3ab)]())==null?void 0x0:_0x556c91['getUnitId']())!==this['unitID'])return;const _0x42c38a=(_0x7f62bd=this[_0x46cd3b(0x27e)][_0x46cd3b(0x2a7)](k[_0x46cd3b(0x5b6)])['getCurrentSelections']())==null?void 0x0:_0x7f62bd[0x0],_0x4358af=this[_0x46cd3b(0x2ba)][_0x46cd3b(0x234)](a['UniverInstanceType'][_0x46cd3b(0x360)])[_0x46cd3b(0x363)]();_0x42c38a&&_0x4358af&&this[_0x46cd3b(0x33e)](_0x4358af[_0x46cd3b(0x36a)](),_0x42c38a);}[_0x17671e(0x397)](){const _0x298bef=_0x17671e;this[_0x298bef(0x5c2)]=!0x1;}};mt=zi([Ee(0x2,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),Ee(0x3,a[_0x17671e(0x52e)](yt)),Ee(0x4,a[_0x17671e(0x52e)](exports['MemberService'])),Ee(0x5,a[_0x17671e(0x4fc)]),Ee(0x6,a[_0x17671e(0x336)]),Ee(0x7,a['Inject'](k[_0x17671e(0x653)]))],mt);var Qi=Object[_0x17671e(0x545)],es=Object[_0x17671e(0x47f)],ts=(_0x27c29d,_0xb5d360,_0x543e2e,_0x30c792)=>{const _0x3bfef3=_0x17671e;for(var _0x1d559f=_0x30c792>0x1?void 0x0:_0x30c792?es(_0xb5d360,_0x543e2e):_0xb5d360,_0x3f9b29=_0x27c29d[_0x3bfef3(0x367)]-0x1,_0x15f077;_0x3f9b29>=0x0;_0x3f9b29--)(_0x15f077=_0x27c29d[_0x3f9b29])&&(_0x1d559f=(_0x30c792?_0x15f077(_0xb5d360,_0x543e2e,_0x1d559f):_0x15f077(_0x1d559f))||_0x1d559f);return _0x30c792&&_0x1d559f&&Qi(_0xb5d360,_0x543e2e,_0x1d559f),_0x1d559f;},tt=(_0x59782c,_0x53a1fd)=>(_0x244581,_0x2f94bc)=>_0x53a1fd(_0x244581,_0x2f94bc,_0x59782c);let Oe=class extends a[_0x17671e(0x2c4)]{constructor(_0xd3a490,_0x1c3336,_0x43062b){const _0x38b75b=_0x17671e;super(),I(this,_0x38b75b(0x38e),new Map()),I(this,'_entityInit$',new A[(_0x38b75b(0x4c2))]()),(this['_univerInstanceService']=_0xd3a490,this[_0x38b75b(0x27e)]=_0x1c3336,this[_0x38b75b(0x32f)]=_0x43062b,this[_0x38b75b(0x422)]());}['dispose'](){const _0x4bc4b2=_0x17671e;super[_0x4bc4b2(0x37d)](),this[_0x4bc4b2(0x4bd)][_0x4bc4b2(0x409)](),this[_0x4bc4b2(0x38e)]['forEach'](_0x562aa9=>_0x562aa9[_0x4bc4b2(0x37d)]());}[_0x17671e(0x5eb)](_0x4e7711){const _0x1625f0=_0x17671e;return this[_0x1625f0(0x38e)]['has'](_0x4e7711)?this[_0x1625f0(0x38e)][_0x1625f0(0x2a7)](_0x4e7711)[_0x1625f0(0x4d5)]:this['_entityInit$'][_0x1625f0(0x42f)](A[_0x1625f0(0x335)](_0x546863=>_0x546863[_0x1625f0(0x219)]===_0x4e7711),A[_0x1625f0(0x654)](_0x2baea1=>_0x2baea1[_0x1625f0(0x4d5)]));}[_0x17671e(0x422)](){const _0x1101e5=_0x17671e;this['_univerInstanceService'][_0x1101e5(0x58a)](a['UniverInstanceType'][_0x1101e5(0x360)])[_0x1101e5(0x42f)](A[_0x1101e5(0x500)](this[_0x1101e5(0x52d)]))['subscribe'](async _0x25d50c=>{const _0xcbf85c=_0x1101e5,_0x4350da=_0x25d50c[_0xcbf85c(0x21c)](),_0x18bc8d=await this['_startSheetCollabCursor'](_0x4350da);this[_0xcbf85c(0x4bd)][_0xcbf85c(0x2de)](_0x18bc8d),this[_0xcbf85c(0x38e)][_0xcbf85c(0x4da)](_0x4350da,_0x18bc8d);}),this[_0x1101e5(0x2ba)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x1101e5(0x4ca)])[_0x1101e5(0x42f)](A[_0x1101e5(0x500)](this[_0x1101e5(0x52d)]))[_0x1101e5(0x42f)](A[_0x1101e5(0x335)](_0x259b00=>!_0x259b00[_0x1101e5(0x21c)]()[_0x1101e5(0x412)]('__')))[_0x1101e5(0x383)](async _0x1b3b4d=>{const _0x35d5b5=_0x1101e5,_0x3d5e69=_0x1b3b4d['getUnitId'](),_0x2fbd04=await this[_0x35d5b5(0x2f9)](_0x3d5e69);this[_0x35d5b5(0x4bd)][_0x35d5b5(0x2de)](_0x2fbd04),this[_0x35d5b5(0x38e)]['set'](_0x3d5e69,_0x2fbd04);}),A[_0x1101e5(0x5dc)](this[_0x1101e5(0x2ba)][_0x1101e5(0x226)](a[_0x1101e5(0x664)]['UNIVER_DOC']),this[_0x1101e5(0x2ba)][_0x1101e5(0x226)](a[_0x1101e5(0x664)][_0x1101e5(0x360)]))[_0x1101e5(0x42f)](A['takeUntil'](this[_0x1101e5(0x52d)]))[_0x1101e5(0x383)](_0x507626=>{const _0x3d9dc5=_0x1101e5,_0x8ec6c3=_0x507626[_0x3d9dc5(0x21c)](),_0x1b0537=this[_0x3d9dc5(0x38e)][_0x3d9dc5(0x2a7)](_0x8ec6c3);_0x1b0537&&(_0x1b0537['dispose'](),this['_entities']['delete'](_0x8ec6c3));});}async[_0x17671e(0x4a9)](_0x48f1fe){const _0x2e6ac7=_0x17671e,_0x10f863=await this[_0x2e6ac7(0x32f)][_0x2e6ac7(0x358)](_0x48f1fe),_0x379a10=this[_0x2e6ac7(0x27e)][_0x2e6ac7(0x4ed)](mt,_0x48f1fe,_0x10f863);return _0x379a10[_0x2e6ac7(0x2ce)](),_0x379a10;}async[_0x17671e(0x2f9)](_0x2ffc23){const _0x1864cf=_0x17671e,_0x215fdd=await this[_0x1864cf(0x32f)][_0x1864cf(0x358)](_0x2ffc23),_0xd1db37=this[_0x1864cf(0x27e)][_0x1864cf(0x4ed)](vt,_0x2ffc23,_0x215fdd);return _0xd1db37[_0x1864cf(0x2ce)](),_0xd1db37;}};Oe=ts([tt(0x0,a[_0x17671e(0x4fc)]),tt(0x1,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),tt(0x2,a[_0x17671e(0x52e)](exports[_0x17671e(0x355)]))],Oe);const Ne=0x14,jt=0xc8,nt=0x4,ns=0x5;function is(_0x4bd7d6,_0x16688c){const _0x1e482a=_0x17671e;let {radius:_0x593f7a,width:_0x1f7f9d,height:_0x4d600d}=_0x16688c;_0x593f7a=_0x593f7a!=null?_0x593f7a:0x0,_0x1f7f9d=_0x1f7f9d!=null?_0x1f7f9d:0x1e,_0x4d600d=_0x4d600d!=null?_0x4d600d:0x1e;let _0x1c1e05=0x0,_0x594486=0x0,_0x5722c7=0x0;_0x1c1e05=_0x594486=_0x5722c7=Math['min'](_0x593f7a,_0x1f7f9d/0x2,_0x4d600d/0x2),_0x4bd7d6[_0x1e482a(0x203)](),_0x4bd7d6['moveTo'](_0x1c1e05,0x0),_0x4bd7d6[_0x1e482a(0x2c2)](_0x1f7f9d-_0x594486,0x0),_0x4bd7d6[_0x1e482a(0x32d)](_0x1f7f9d-_0x594486,_0x594486,_0x594486,Math['PI']*0x3/0x2,0x0,!0x1),_0x4bd7d6['lineTo'](_0x1f7f9d,_0x4d600d-_0x5722c7),_0x4bd7d6[_0x1e482a(0x32d)](_0x1f7f9d-_0x5722c7,_0x4d600d-_0x5722c7,_0x5722c7,0x0,Math['PI']/0x2,!0x1),_0x4bd7d6[_0x1e482a(0x2c2)](0x0,_0x4d600d),_0x4bd7d6[_0x1e482a(0x2c2)](0x0,_0x1c1e05),_0x4bd7d6[_0x1e482a(0x32d)](_0x1c1e05,_0x1c1e05,_0x1c1e05,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4bd7d6[_0x1e482a(0x61f)](),_0x16688c['fill']&&(_0x4bd7d6[_0x1e482a(0x27f)](),_0x4bd7d6['fillStyle']=_0x16688c[_0x1e482a(0x309)],_0x16688c['fillRule']===_0x1e482a(0x3d9)?_0x4bd7d6[_0x1e482a(0x309)]('evenodd'):_0x4bd7d6['fill'](),_0x4bd7d6[_0x1e482a(0x417)]());}class ze extends K[_0x17671e(0x532)]{constructor(_0x4268e2,_0x28b70a){const _0x33e5d0=_0x17671e;super(_0x4268e2,_0x28b70a),I(this,_0x33e5d0(0x28e)),I(this,_0x33e5d0(0x5e3)),(this['color']=_0x28b70a==null?void 0x0:_0x28b70a['color'],this[_0x33e5d0(0x5e3)]=_0x28b70a==null?void 0x0:_0x28b70a[_0x33e5d0(0x5e3)]);}static[_0x17671e(0x3bb)](_0x3eb1b9,_0xd881bc){const _0x3fac75=_0x17671e,{text:_0x895eee,color:_0xc56c0a}=_0xd881bc;_0x3eb1b9[_0x3fac75(0x27f)](),_0x3eb1b9[_0x3fac75(0x313)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x85b780=_0x3eb1b9[_0x3fac75(0x55b)](_0x895eee)['width'],_0x2b1536=Math[_0x3fac75(0x31f)](_0x85b780+0x2*nt,jt);is(_0x3eb1b9,{'height':Ne,'radius':0x4,'width':_0x2b1536,'fill':_0xc56c0a,'evented':!0x1}),_0x3eb1b9['fillStyle']=_0x3fac75(0x54c);const _0xd2f040=nt,_0x5d1c29=Ne-ns,_0x16a171=jt-0x2*nt;if(_0x85b780>_0x16a171){let _0xd16936='',_0x135cbc=0x0;for(const _0x5ac09 of _0x895eee){const _0x103644=_0x3eb1b9[_0x3fac75(0x55b)](_0x5ac09)['width'];if(_0x135cbc+_0x103644<=_0x16a171-_0x3eb1b9[_0x3fac75(0x55b)](_0x3fac75(0x3b7))[_0x3fac75(0x2c6)])_0xd16936+=_0x5ac09,_0x135cbc+=_0x103644;else{_0xd16936+=_0x3fac75(0x3b7);break;}}_0x3eb1b9['fillText'](_0xd16936,_0xd2f040,_0x5d1c29);}else _0x3eb1b9['fillText'](_0x895eee,_0xd2f040,_0x5d1c29);_0x3eb1b9[_0x3fac75(0x417)]();}[_0x17671e(0x5a6)](_0x3c12eb){const _0x5a70dd=_0x17671e;ze[_0x5a70dd(0x3bb)](_0x3c12eb,this);}}const it=_0x17671e(0x3de),ss=_0x17671e(0x3f7),rs=_0x17671e(0x677),Pe=0x6,os=1.5,st=0x4,as=1.5,cs='rgba(255,\x20255,\x20255,\x200.01)';class Ht{constructor(_0x30dc5c,_0x334d12,_0x4423ef,_0x3ed385){const _0x196a9c=_0x17671e;I(this,_0x196a9c(0x53c),[]),I(this,_0x196a9c(0x489),null),I(this,_0x196a9c(0x257),null),I(this,_0x196a9c(0x205),null),I(this,_0x196a9c(0x591),null),I(this,'_eventUnsubscribe',null),(this[_0x196a9c(0x38b)]=_0x30dc5c,this[_0x196a9c(0x41e)]=_0x334d12,this['_docSkeleton']=_0x4423ef,this['_document']=_0x3ed385,this['_render']());}set['_hover'](_0x22810c){const _0x145017=_0x17671e;_0x22810c?(this[_0x145017(0x205)]&&this[_0x145017(0x205)]['hide'](),this[_0x145017(0x257)]&&this[_0x145017(0x257)][_0x145017(0x30f)]()):(this[_0x145017(0x205)]&&this[_0x145017(0x205)][_0x145017(0x30f)](),this[_0x145017(0x257)]&&this[_0x145017(0x257)][_0x145017(0x59b)]());}[_0x17671e(0x37d)](){const _0x769863=_0x17671e;for(const _0x2ec440 of this['_shapes'])_0x2ec440[_0x769863(0x37d)]();this['_textBubble']&&this[_0x769863(0x257)]['dispose'](),this[_0x769863(0x205)]&&this[_0x769863(0x205)][_0x769863(0x37d)](),this[_0x769863(0x489)]&&this[_0x769863(0x489)][_0x769863(0x37d)](),this['_eventUnsubscribe']&&this[_0x769863(0x62a)]();}['_render'](){const _0x5b30e0=_0x17671e;var _0x28e240;const {_docSkeleton:_0x2a2437,_document:_0xe9dc99}=this,{color:_0x2cfa3c,name:_0x5a0b41,ranges:_0x105536}=this[_0x5b30e0(0x38b)],_0x2e5032=_0xe9dc99[_0x5b30e0(0x50d)](),{docsLeft:_0x50cc31,docsTop:_0x32f841}=_0x2e5032,_0xc1682b=new Z[(_0x5b30e0(0x34c))](_0x2e5032,_0x2a2437);for(const {startOffset:_0xc36416,endOffset:_0x55a911,rangeType:_0x1ece2f,segmentId:_0x516872,segmentPage:_0x1845de,collapsed:_0x3ca621,isActive:_0x192455}of _0x105536){const _0x577ad3=_0x2a2437[_0x5b30e0(0x1f6)](_0xc36416,!0x0,_0x516872,_0x1845de);let _0x5120b7=_0x2a2437[_0x5b30e0(0x1f6)](_0x55a911,!0x0,_0x516872,_0x1845de);if(_0x5120b7==null&&(_0x5120b7=_0x2a2437[_0x5b30e0(0x1f6)](_0x55a911-0x1,!0x1,_0x516872,_0x1845de)),_0x192455){const {contentBoxPointGroup:_0x24e0d0}=_0xc1682b['getRangePointData'](_0x5120b7,_0x5120b7);if(_0x24e0d0[_0x5b30e0(0x367)]===0x0)continue;this[_0x5b30e0(0x3e9)](_0x2cfa3c,_0x24e0d0,_0x50cc31,_0x32f841,_0x5a0b41),this[_0x5b30e0(0x62a)]=this['_handleHover']();}if(!_0x3ca621&&_0x577ad3&&_0x5120b7){if(_0x1ece2f===a[_0x5b30e0(0x3f3)][_0x5b30e0(0x289)]){const _0x2ec89a=new Z[(_0x5b30e0(0x3f1))](_0x2e5032,_0x2a2437),{pointGroup:_0xe06aa0}=(_0x28e240=_0x2ec89a[_0x5b30e0(0x498)](_0x577ad3,_0x5120b7))!=null?_0x28e240:{};if(_0xe06aa0==null||_0xe06aa0[_0x5b30e0(0x367)]===0x0)continue;this['_drawRectRange'](_0x2cfa3c,_0xe06aa0,_0x50cc31,_0x32f841);}else{const {borderBoxPointGroup:_0x17f4fd}=_0xc1682b[_0x5b30e0(0x498)](_0x577ad3,_0x5120b7);if(_0x17f4fd['length']===0x0)continue;this['_drawTextRange'](_0x2cfa3c,_0x17f4fd,_0x50cc31,_0x32f841);}}}}[_0x17671e(0x3e9)](_0x356e6c,_0x2b0ad3,_0x339e31,_0x109888,_0x4d7a4a){const _0x1cfc4d=_0x17671e,_0xf91843=this[_0x1cfc4d(0x492)](_0x2b0ad3),{left:_0x4b7773,top:_0x14a516,height:_0x52bf35}=_0xf91843,_0x9b7e52=this['_getScale'](),_0x4573e4=as/_0x9b7e52,_0x4d2542=new K['Rect'](it+a[_0x1cfc4d(0x341)][_0x1cfc4d(0x3e7)](Pe),{'left':_0x4b7773+_0x339e31-_0x4573e4,'top':_0x14a516+_0x109888,'height':_0x52bf35,'width':os,'fill':_0x356e6c||K[_0x1cfc4d(0x60b)](a[_0x1cfc4d(0x31c)][_0x1cfc4d(0x473)],0x0),'strokeWidth':_0x4573e4,'stroke':cs,'evented':!0x0});this[_0x1cfc4d(0x489)]=_0x4d2542,this[_0x1cfc4d(0x41e)]['addObject'](_0x4d2542,Z[_0x1cfc4d(0x5ad)]);const _0x2980f3=new K[(_0x1cfc4d(0x647))](it+a[_0x1cfc4d(0x341)][_0x1cfc4d(0x3e7)](Pe),{'left':_0x4b7773+_0x339e31-_0x4573e4,'top':_0x14a516+_0x109888-st/0x2,'height':st,'width':st,'fill':_0x356e6c||K['getColor'](a[_0x1cfc4d(0x31c)][_0x1cfc4d(0x473)],0x0),'strokeWidth':0x0,'stroke':_0x356e6c||K[_0x1cfc4d(0x60b)](a[_0x1cfc4d(0x31c)][_0x1cfc4d(0x473)],0x0),'evented':!0x1});this[_0x1cfc4d(0x205)]=_0x2980f3,this['_scene']['addObject'](_0x2980f3,Z[_0x1cfc4d(0x5ad)]);const _0x124cd4=new ze(it+a[_0x1cfc4d(0x341)][_0x1cfc4d(0x3e7)](Pe),{'left':_0x4b7773+_0x339e31-_0x4573e4,'top':_0x14a516+_0x109888-Ne,'text':_0x4d7a4a,'color':_0x356e6c});this['_textBubble']=_0x124cd4,this['_scene'][_0x1cfc4d(0x459)](_0x124cd4,Z[_0x1cfc4d(0x5ad)]),this[_0x1cfc4d(0x39c)]=!0x1;}[_0x17671e(0x364)](){const _0x2370c7=_0x17671e,_0x659c74=this[_0x2370c7(0x489)]['onPointerEnter$'][_0x2370c7(0x35a)](()=>{this['_hover']=!0x0;}),_0x360740=this[_0x2370c7(0x489)][_0x2370c7(0x537)][_0x2370c7(0x35a)](()=>{const _0x2e6761=_0x2370c7;this['_hideTimer']&&clearTimeout(this[_0x2e6761(0x591)]),this['_hideTimer']=setTimeout(()=>{const _0xdceba1=_0x2e6761;this[_0xdceba1(0x39c)]=!0x1;},0x7d0);});return()=>{const _0x3264d0=_0x2370c7;_0x659c74[_0x3264d0(0x4c1)](),_0x360740['unsubscribe']();};}[_0x17671e(0x273)](_0x4edf96,_0x3927b4,_0x5c5fdd,_0x43806e){const _0x2315ac=_0x17671e,_0x4942a8=new a[(_0x2315ac(0x657))](_0x4edf96)[_0x2315ac(0x524)](0.2)['toRgbString'](),_0x28eb63=new K[(_0x2315ac(0x578))](ss+a[_0x2315ac(0x341)][_0x2315ac(0x3e7)](Pe),{'pointsGroup':_0x3927b4,'fill':_0x4942a8||K[_0x2315ac(0x60b)](a['COLORS'][_0x2315ac(0x473)],0.2),'left':_0x5c5fdd,'top':_0x43806e,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x2315ac(0x263)](_0x28eb63),this[_0x2315ac(0x41e)][_0x2315ac(0x459)](_0x28eb63,Z[_0x2315ac(0x5ad)]);}[_0x17671e(0x542)](_0x9e19e1,_0x1fbe30,_0x151cce,_0x175949){const _0x4c085d=_0x17671e,_0x41a4a3=new a[(_0x4c085d(0x657))](_0x9e19e1)[_0x4c085d(0x524)](0.2)['toRgbString'](),_0x436db9=new K['RegularPolygon'](rs+a[_0x4c085d(0x341)][_0x4c085d(0x3e7)](Pe),{'pointsGroup':_0x1fbe30,'fill':_0x41a4a3||K[_0x4c085d(0x60b)](a[_0x4c085d(0x31c)][_0x4c085d(0x473)],0.2),'left':_0x151cce,'top':_0x175949,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4c085d(0x53c)]['push'](_0x436db9),this[_0x4c085d(0x41e)]['addObject'](_0x436db9,Z[_0x4c085d(0x5ad)]);}[_0x17671e(0x492)](_0x3a974f){const _0xe41c47=_0x3a974f[0x0],_0x16e033=_0xe41c47[0x0],_0x5c6962=_0xe41c47[0x2],{x:_0x422c2f,y:_0x156301}=_0x16e033,{x:_0x1d3710,y:_0x278a9d}=_0x5c6962;return{'left':_0x422c2f,'top':_0x156301,'width':_0x1d3710-_0x422c2f,'height':_0x278a9d-_0x156301};}[_0x17671e(0x21f)](){const _0x32c39d=_0x17671e,{scaleX:_0x8384bb,scaleY:_0x131c38}=this['_scene'][_0x32c39d(0x25f)]();return Math[_0x32c39d(0x499)](_0x8384bb,_0x131c38);}}var ls=Object[_0x17671e(0x545)],hs=Object[_0x17671e(0x47f)],_s=(_0x3a88b6,_0x518116,_0x159f79,_0x4a4331)=>{for(var _0x26b318=_0x4a4331>0x1?void 0x0:_0x4a4331?hs(_0x518116,_0x159f79):_0x518116,_0x4ed7cc=_0x3a88b6['length']-0x1,_0x45c2e1;_0x4ed7cc>=0x0;_0x4ed7cc--)(_0x45c2e1=_0x3a88b6[_0x4ed7cc])&&(_0x26b318=(_0x4a4331?_0x45c2e1(_0x518116,_0x159f79,_0x26b318):_0x45c2e1(_0x26b318))||_0x26b318);return _0x4a4331&&_0x26b318&&ls(_0x518116,_0x159f79,_0x26b318),_0x26b318;},$e=(_0x29ad3e,_0xbe5582)=>(_0x15859e,_0x1548a4)=>_0xbe5582(_0x15859e,_0x1548a4,_0x29ad3e);let pt=class extends a[_0x17671e(0x2c4)]{constructor(_0x3e9f1f,_0x39d3f4,_0x2beca6,_0x2fa141,_0xc376bd){const _0x5cf052=_0x17671e;super(),I(this,'_cursorShapes',[]),I(this,_0x5cf052(0x2b6),[]),(this[_0x5cf052(0x3ff)]=_0x3e9f1f,this[_0x5cf052(0x281)]=_0x39d3f4,this[_0x5cf052(0x663)]=_0x2beca6,this[_0x5cf052(0x63b)]=_0x2fa141,this[_0x5cf052(0x2a3)]=_0xc376bd,this[_0x5cf052(0x422)]());}[_0x17671e(0x422)](){const _0x595041=_0x17671e,_0x796c13=this[_0x595041(0x3ff)][_0x595041(0x678)],_0x434d19=this[_0x595041(0x281)];this[_0x595041(0x5f1)](A[_0x595041(0x50c)]([this['_collabCursorController'][_0x595041(0x5eb)](_0x796c13),this[_0x595041(0x2a3)][_0x595041(0x373)]])['pipe'](V[_0x595041(0x372)](([_0x1bbf43,_0x531fbc])=>({'skeleton':_0x434d19[_0x595041(0x620)](),'cursors':[..._0x1bbf43[_0x595041(0x3d5)]()][_0x595041(0x4e1)](_0x2b7a2c=>({..._0x2b7a2c,'color':_0x531fbc[_0x2b7a2c[_0x595041(0x28e)]]}))})))['subscribe'](_0xfe0865=>{const _0x3ff14b=_0x595041;if(this[_0x3ff14b(0x2b9)](),_0xfe0865){const {skeleton:_0x483030,cursors:_0xdbf514}=_0xfe0865;this[_0x3ff14b(0x1ed)](_0x483030,_0xdbf514);}})),this[_0x595041(0x2be)](),this[_0x595041(0x20b)]();}[_0x17671e(0x1ed)](_0x1f238e,_0x4f263b){const _0x414337=_0x17671e,{scene:_0x38dbc1,mainComponent:_0x2730e6}=this[_0x414337(0x3ff)],_0x40b1c4=_0x4f263b[_0x414337(0x372)](_0x2cac8a=>new Ht(_0x2cac8a,_0x38dbc1,_0x1f238e,_0x2730e6));this[_0x414337(0x23e)]=_0x40b1c4,this['_cursors']=_0x4f263b;}['_refreshCollabCursors'](){const _0x22e3b5=_0x17671e;this['_removeCollabCursors']();const {scene:_0x37a1be,mainComponent:_0x2f764f}=this[_0x22e3b5(0x3ff)],_0x594797=this[_0x22e3b5(0x281)][_0x22e3b5(0x620)](),_0x20eb55=this[_0x22e3b5(0x2b6)][_0x22e3b5(0x372)](_0x351115=>new Ht(_0x351115,_0x37a1be,_0x594797,_0x2f764f));this[_0x22e3b5(0x23e)]=_0x20eb55;}['_removeCollabCursors'](){const _0x28f1bc=_0x17671e;this[_0x28f1bc(0x23e)][_0x28f1bc(0x5ea)](_0x288638=>_0x288638['dispose']()),this[_0x28f1bc(0x23e)]=[];}[_0x17671e(0x20b)](){const _0x3840f7=_0x17671e,_0x308ab9=[Z[_0x3840f7(0x57d)]['id']];this[_0x3840f7(0x5f1)](this['_commandService'][_0x3840f7(0x329)](_0x232669=>{const _0x5839d7=_0x3840f7;_0x308ab9[_0x5839d7(0x272)](_0x232669['id'])&&_0x232669[_0x5839d7(0x4af)]['unitId']===this[_0x5839d7(0x3ff)][_0x5839d7(0x678)]&&this[_0x5839d7(0x645)]();}));}[_0x17671e(0x2be)](){const _0x14e10d=_0x17671e;this['disposeWithMe'](a[_0x14e10d(0x586)](this['_context'][_0x14e10d(0x449)][_0x14e10d(0x209)])['pipe'](V[_0x14e10d(0x335)](_0x3e38b6=>_0x3e38b6['type']===K[_0x14e10d(0x66c)][_0x14e10d(0x47b)]),V[_0x14e10d(0x20a)](0x10))[_0x14e10d(0x383)](()=>{const _0x3d4f63=_0x14e10d;this[_0x3d4f63(0x645)]();}));}};pt=_s([$e(0x1,a[_0x17671e(0x52e)](Re[_0x17671e(0x5e6)])),$e(0x2,a['Inject'](Oe)),$e(0x3,a['ICommandService']),$e(0x4,a[_0x17671e(0x52e)](a[_0x17671e(0x52b)]))],pt);const us=0x1,ds=1.5;class mn extends K['Shape']{constructor(_0x5dcde3,_0x698a30){const _0x541b89=_0x17671e;super(_0x5dcde3,_0x698a30),I(this,_0x541b89(0x477)),I(this,_0x541b89(0x4d3),!0x1),I(this,'_range'),I(this,'_name',''),I(this,_0x541b89(0x60f),'top'),I(this,'_backgroundColor'),(_0x698a30&&this[_0x541b89(0x35b)](_0x698a30),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x541b89(0x35b)]({'hovered':!0x0})),this[_0x541b89(0x537)]['subscribeEvent'](()=>this[_0x541b89(0x35b)]({'hovered':!0x1})));}[_0x17671e(0x35b)](_0x3b4ed2){const _0x599f76=_0x17671e;var _0x25ce76,_0x1e78c7,_0xabd7e8,_0x188088,_0xe546d6,_0x10168b;this['_color']=(_0x25ce76=_0x3b4ed2[_0x599f76(0x28e)])!=null?_0x25ce76:this['_color'],this[_0x599f76(0x4d3)]=(_0x1e78c7=_0x3b4ed2[_0x599f76(0x28d)])!=null?_0x1e78c7:this['_hovered'],this[_0x599f76(0x239)]=(_0xabd7e8=_0x3b4ed2[_0x599f76(0x3e6)])!=null?_0xabd7e8:this[_0x599f76(0x239)],this[_0x599f76(0x2c0)]=(_0x188088=_0x3b4ed2[_0x599f76(0x3ea)])!=null?_0x188088:this[_0x599f76(0x2c0)],this[_0x599f76(0x60f)]=(_0xe546d6=_0x3b4ed2['labelPosition'])!=null?_0xe546d6:this[_0x599f76(0x60f)],this[_0x599f76(0x474)]=(_0x10168b=_0x3b4ed2[_0x599f76(0x268)])!=null?_0x10168b:this[_0x599f76(0x474)],this['transformByState']({'width':_0x3b4ed2[_0x599f76(0x2c6)],'height':_0x3b4ed2[_0x599f76(0x61c)]});}[_0x17671e(0x2fe)](_0xb95000){const _0x15a927=_0x17671e,{row:_0x4cd9af,column:_0x3d41e7}=_0xb95000;if(_0x4cd9af>=this['_range']['startRow']&&_0x4cd9af<=this[_0x15a927(0x239)][_0x15a927(0x392)]&&_0x3d41e7>=this[_0x15a927(0x239)][_0x15a927(0x279)]&&_0x3d41e7<=this['_range']['endColumn']){this[_0x15a927(0x35b)]({'hovered':!0x0});return;}this[_0x15a927(0x35b)]({'hovered':!0x1});}[_0x17671e(0x63e)](_0x5c1f62){return!0x1;}[_0x17671e(0x5a6)](_0x5a8849){const _0x18af15=_0x17671e;K[_0x18af15(0x647)][_0x18af15(0x3bb)](_0x5a8849,{'width':this['width'],'height':this[_0x18af15(0x61c)],'strokeWidth':ds,'stroke':this[_0x18af15(0x477)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x18af15(0x4d3)]&&(_0x5a8849[_0x18af15(0x27f)](),_0x5a8849['transform'](0x1,0x0,0x0,0x1,this[_0x18af15(0x2c6)],this['_labelPosition']===_0x18af15(0x4a1)?0x0:-Ne),ze[_0x18af15(0x3bb)](_0x5a8849,{'text':this[_0x18af15(0x2c0)],'color':this[_0x18af15(0x477)]}),_0x5a8849['restore']());}}var fs=Object[_0x17671e(0x545)],vs=Object[_0x17671e(0x47f)],ms=(_0x20a5ff,_0x1fb350,_0x3d7293,_0x98011b)=>{const _0xe1e85c=_0x17671e;for(var _0x43e263=_0x98011b>0x1?void 0x0:_0x98011b?vs(_0x1fb350,_0x3d7293):_0x1fb350,_0x2cebea=_0x20a5ff[_0xe1e85c(0x367)]-0x1,_0x16e117;_0x2cebea>=0x0;_0x2cebea--)(_0x16e117=_0x20a5ff[_0x2cebea])&&(_0x43e263=(_0x98011b?_0x16e117(_0x1fb350,_0x3d7293,_0x43e263):_0x16e117(_0x43e263))||_0x43e263);return _0x98011b&&_0x43e263&&fs(_0x1fb350,_0x3d7293,_0x43e263),_0x43e263;},rt=(_0x30db88,_0x4c4b65)=>(_0x28904a,_0x5c2542)=>_0x4c4b65(_0x28904a,_0x5c2542,_0x30db88);const ps=0x1389;let St=class extends a['RxDisposable']{constructor(_0x150683,_0x22317a,_0x34c6af,_0x45f6f5){const _0x45e5b=_0x17671e;super(),I(this,_0x45e5b(0x2b6),new Set()),I(this,_0x45e5b(0x3e4),null),(this[_0x45e5b(0x3ff)]=_0x150683,this['_sheetSkeletonManagerService']=_0x22317a,this[_0x45e5b(0x663)]=_0x34c6af,this[_0x45e5b(0x2a3)]=_0x45f6f5,this[_0x45e5b(0x422)]());}['_init'](){const _0x55587f=_0x17671e;this[_0x55587f(0x463)][_0x55587f(0x3fa)][_0x55587f(0x42f)](V['takeUntil'](this[_0x55587f(0x52d)]),V[_0x55587f(0x654)](_0x2204b3=>{const _0x3ee681=_0x55587f;if(_0x2204b3){const _0x3077c1=_0x2204b3[_0x3ee681(0x29f)];return A[_0x3ee681(0x50c)](this['_collabCursorController'][_0x3ee681(0x5eb)](this[_0x3ee681(0x3ff)][_0x3ee681(0x678)]),this[_0x3ee681(0x2a3)][_0x3ee681(0x373)])[_0x3ee681(0x42f)](V[_0x3ee681(0x372)](([_0x53b639,_0x4b7dde])=>{const _0x475677=_0x3ee681,_0x30da9d=new Map();return _0x53b639[_0x475677(0x5ea)]((_0x20b4c1,_0x41a030)=>{const _0x350632=_0x475677;if(_0x20b4c1[_0x350632(0x3d4)]===_0x3077c1){const _0x79993d={..._0x20b4c1};_0x79993d['color']=_0x4b7dde[_0x20b4c1['color']],_0x30da9d[_0x350632(0x4da)](_0x41a030,_0x79993d);}}),{'skeleton':_0x2204b3,'cursors':_0x30da9d};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3116ce,cursors:_0x32c209})=>{const _0xfc4de9=_0x55587f;this[_0xfc4de9(0x2b9)](),_0x3116ce&&this[_0xfc4de9(0x1ed)](_0x3116ce,_0x32c209);}),this[_0x55587f(0x463)][_0x55587f(0x3fa)][_0x55587f(0x383)](_0xd62c50=>{const _0x5df7c7=_0x55587f;if(_0xd62c50==null)return;const {skeleton:_0x5e4ae6}=_0xd62c50,{scene:_0x6ee888}=this[_0x5df7c7(0x3ff)];_0x6ee888[_0x5df7c7(0x41d)][_0x5df7c7(0x35a)](a[_0x5df7c7(0x2a9)](_0x33cf91=>{const _0x5e3a38=_0x5df7c7;var _0x448aa7,_0x2b1524;const {offsetX:_0x39775d,offsetY:_0x412342}=_0x33cf91,{x:_0x3d4071,y:_0x4b2100}=_0x6ee888['getRelativeToViewportCoord'](K['Vector2']['FromArray']([_0x39775d,_0x412342])),{scaleX:_0x43ad8a,scaleY:_0x3fe45b}=_0x6ee888['getAncestorScale'](),_0x9ff43f=_0x6ee888[_0x5e3a38(0x1fd)](Te[_0x5e3a38(0x631)][_0x5e3a38(0x2bd)]),_0x45b808=_0x6ee888[_0x5e3a38(0x1f0)](K[_0x5e3a38(0x670)][_0x5e3a38(0x29e)]([_0x3d4071,_0x4b2100]),_0x9ff43f),_0x5c8437=_0x5e4ae6['getCellPositionByOffset'](_0x39775d,_0x412342,_0x43ad8a,_0x3fe45b,_0x45b808);((_0x448aa7=this[_0x5e3a38(0x3e4)])==null?void 0x0:_0x448aa7[_0x5e3a38(0x549)])===_0x5c8437[_0x5e3a38(0x549)]&&((_0x2b1524=this[_0x5e3a38(0x3e4)])==null?void 0x0:_0x2b1524[_0x5e3a38(0x4b1)])===_0x5c8437[_0x5e3a38(0x4b1)]||this[_0x5e3a38(0x2b6)]['forEach'](_0x535765=>{const _0x4fa239=_0x5e3a38;_0x535765[_0x4fa239(0x2fe)](_0x5c8437);});},0x64));});}['_updateCollabCursors'](_0x5be85c,_0x379401){const _0x1b58ed=_0x17671e;var _0x33f42d;const _0x2711cd=(_0x33f42d=this[_0x1b58ed(0x463)]['getCurrent']())==null?void 0x0:_0x33f42d[_0x1b58ed(0x305)];if(!_0x2711cd)return;const _0x35f180=this[_0x1b58ed(0x1fb)]();if(!_0x35f180)return;this[_0x1b58ed(0x2b6)][_0x1b58ed(0x5ea)](_0x7aa3e5=>{const _0x2c7da9=_0x1b58ed;_0x7aa3e5[_0x2c7da9(0x4b3)]();});const {scene:_0x19e0e0}=_0x35f180,_0x3d6590=Ss(Array[_0x1b58ed(0x601)](_0x379401[_0x1b58ed(0x3d5)]()))['map'](_0x17c4f3=>{const _0x480d96=_0x1b58ed,{color:_0x2b6ca9,range:_0x9b6304,name:_0x3279bd,selection:_0x12942a,sheetID:_0x3903f9}=_0x17c4f3,{startColumn:_0x20730d,startRow:_0x26446e,endColumn:_0x48ddbf,endRow:_0x13c1b2}=_0x9b6304,_0x5be369=Te[_0x480d96(0x255)](_0x26446e,_0x20730d,_0x19e0e0,_0x2711cd),_0x13d25f=Te[_0x480d96(0x255)](_0x13c1b2,_0x48ddbf,_0x19e0e0,_0x2711cd),{columnHeaderHeightAndMarginTop:_0x2da6d2}=_0x2711cd,{startX:_0x311f16,startY:_0x55a5df}=_0x5be369,{endX:_0x3276ea,endY:_0x41c3cd}=_0x13d25f,_0x372e96=_0x3276ea-_0x311f16,_0x191038=_0x41c3cd-_0x55a5df,_0x18cdcd={'labelPosition':_0x55a5df-_0x2da6d2>=Ne?'top':_0x480d96(0x4a1),'sheetID':_0x3903f9,'range':_0x9b6304,'color':_0x2b6ca9,'name':_0x3279bd,'selection':_0x12942a,'left':_0x311f16,'top':_0x55a5df,'width':_0x372e96,'height':_0x191038,'evented':!0x1,'zIndex':ps};return new mn(_0x3279bd,_0x18cdcd);});_0x19e0e0[_0x1b58ed(0x662)](_0x3d6590,us),this['_cursors']=new Set(_0x3d6590);}[_0x17671e(0x2b9)](){const _0x1d9f29=_0x17671e;var _0x586b41;(_0x586b41=this['_cursors'])==null||_0x586b41['forEach'](_0x50c330=>_0x50c330[_0x1d9f29(0x37d)]());}[_0x17671e(0x1fb)](){const _0x1e235c=_0x17671e;return Te[_0x1e235c(0x666)](this[_0x1e235c(0x3ff)][_0x1e235c(0x361)],this[_0x1e235c(0x3ff)]);}};St=ms([rt(0x1,a[_0x17671e(0x52e)](Te[_0x17671e(0x45f)])),rt(0x2,a[_0x17671e(0x52e)](Oe)),rt(0x3,a[_0x17671e(0x52e)](a[_0x17671e(0x52b)]))],St);function Ss(_0x5d2197){const _0x2f9cc9=_0x17671e,_0x5bc7e0=new Map();return _0x5d2197[_0x2f9cc9(0x5ea)](_0x48fa33=>{const _0x78a545=_0x2f9cc9;if(_0x5bc7e0[_0x78a545(0x44d)](_0x48fa33['selection'])){const _0x2869ca=_0x5bc7e0[_0x78a545(0x2a7)](_0x48fa33['selection']);_0x2869ca[_0x78a545(0x3ea)]+=',\x20'+_0x48fa33[_0x78a545(0x3ea)];}else _0x5bc7e0['set'](_0x48fa33[_0x78a545(0x425)],_0x48fa33);}),Array['from'](_0x5bc7e0[_0x2f9cc9(0x3d5)]());}var ee=function(){const _0x59d11d=_0x17671e;return ee=Object[_0x59d11d(0x256)]||function(_0x3436da){const _0x466a2a=_0x59d11d;for(var _0x1ceb49,_0x119e24=0x1,_0x50fbfc=arguments['length'];_0x119e24<_0x50fbfc;_0x119e24++){_0x1ceb49=arguments[_0x119e24];for(var _0x1224b2 in _0x1ceb49)Object[_0x466a2a(0x4ef)]['hasOwnProperty']['call'](_0x1ceb49,_0x1224b2)&&(_0x3436da[_0x1224b2]=_0x1ceb49[_0x1224b2]);}return _0x3436da;},ee[_0x59d11d(0x40e)](this,arguments);},gs=function(_0x4d764e,_0x2c1b68){const _0x48429b=_0x17671e;var _0x5e60b1={};for(var _0x196791 in _0x4d764e)Object[_0x48429b(0x4ef)][_0x48429b(0x577)][_0x48429b(0x5b0)](_0x4d764e,_0x196791)&&_0x2c1b68[_0x48429b(0x47e)](_0x196791)<0x0&&(_0x5e60b1[_0x196791]=_0x4d764e[_0x196791]);if(_0x4d764e!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x199bdb=0x0,_0x196791=Object[_0x48429b(0x636)](_0x4d764e);_0x199bdb<_0x196791['length'];_0x199bdb++)_0x2c1b68[_0x48429b(0x47e)](_0x196791[_0x199bdb])<0x0&&Object['prototype'][_0x48429b(0x5db)][_0x48429b(0x5b0)](_0x4d764e,_0x196791[_0x199bdb])&&(_0x5e60b1[_0x196791[_0x199bdb]]=_0x4d764e[_0x196791[_0x199bdb]]);}return _0x5e60b1;},Ot=z[_0x17671e(0x610)](function(_0x2244f2,_0x5689f5){const _0x4bb899=_0x17671e;var _0x2c71dd=_0x2244f2['icon'],_0x127c5c=_0x2244f2['id'],_0x86e3ea=_0x2244f2[_0x4bb899(0x5d1)],_0x2683ff=_0x2244f2[_0x4bb899(0x26c)],_0x5e3030=gs(_0x2244f2,['icon','id','className',_0x4bb899(0x26c)]),_0x282bd1=_0x4bb899(0x48e)['concat'](_0x127c5c,'\x20')[_0x4bb899(0x59e)](_0x86e3ea||'')['trim'](),_0x213bca=z[_0x4bb899(0x587)]('_'[_0x4bb899(0x59e)](Es()));return pn(_0x2c71dd,''[_0x4bb899(0x59e)](_0x127c5c),{'defIds':_0x2c71dd[_0x4bb899(0x368)],'idSuffix':_0x213bca[_0x4bb899(0x42d)]},ee({'ref':_0x5689f5,'className':_0x282bd1},_0x5e3030),_0x2683ff);});function pn(_0x1c3c9b,_0xc8eb5c,_0x21b2ee,_0x4c7181,_0x46d8b0){const _0x1ef584=_0x17671e;return z[_0x1ef584(0x38a)](_0x1c3c9b[_0x1ef584(0x304)],ee(ee({'key':_0xc8eb5c},Is(_0x1c3c9b,_0x21b2ee,_0x46d8b0)),_0x4c7181),(Cs(_0x1c3c9b,_0x21b2ee)[_0x1ef584(0x470)]||[])[_0x1ef584(0x372)](function(_0x17e49d,_0x1f2157){const _0x2d8c7a=_0x1ef584;return pn(_0x17e49d,''['concat'](_0xc8eb5c,'-')[_0x2d8c7a(0x59e)](_0x1c3c9b[_0x2d8c7a(0x304)],'-')[_0x2d8c7a(0x59e)](_0x1f2157),_0x21b2ee,void 0x0,_0x46d8b0);}));}function Is(_0x316893,_0x32dec9,_0x4152ac){const _0x3615ee=_0x17671e;var _0x1927ee=ee({},_0x316893['attrs']);_0x4152ac!=null&&_0x4152ac[_0x3615ee(0x536)]&&_0x1927ee[_0x3615ee(0x309)]===_0x3615ee(0x536)&&(_0x1927ee['fill']=_0x4152ac[_0x3615ee(0x536)]);var _0x469a9e=_0x32dec9[_0x3615ee(0x368)];return!_0x469a9e||_0x469a9e[_0x3615ee(0x367)]===0x0||(_0x316893[_0x3615ee(0x304)]===_0x3615ee(0x4f1)&&_0x1927ee['xlink:href']&&(_0x1927ee[_0x3615ee(0x5ed)]=_0x1927ee[_0x3615ee(0x5ed)]+_0x32dec9[_0x3615ee(0x22f)]),Object['entries'](_0x1927ee)[_0x3615ee(0x5ea)](function(_0x3958ab){const _0x196f91=_0x3615ee;var _0x3cea8d=_0x3958ab[0x0],_0x2f8770=_0x3958ab[0x1];typeof _0x2f8770==_0x196f91(0x3c3)&&(_0x1927ee[_0x3cea8d]=_0x2f8770['replace'](/url\(#(.*)\)/,_0x196f91(0x228)[_0x196f91(0x59e)](_0x32dec9[_0x196f91(0x22f)],')')));})),_0x1927ee;}function Cs(_0xb18ee4,_0x46eba9){const _0x479c08=_0x17671e;var _0x24ead2,_0x30300c=_0x46eba9[_0x479c08(0x368)];return!_0x30300c||_0x30300c[_0x479c08(0x367)]===0x0?_0xb18ee4:_0xb18ee4[_0x479c08(0x304)]===_0x479c08(0x2b5)&&(!((_0x24ead2=_0xb18ee4[_0x479c08(0x470)])===null||_0x24ead2===void 0x0)&&_0x24ead2[_0x479c08(0x367)])?ee(ee({},_0xb18ee4),{'children':_0xb18ee4[_0x479c08(0x470)][_0x479c08(0x372)](function(_0x5844c8){const _0x3ce55f=_0x479c08;return typeof _0x5844c8[_0x3ce55f(0x290)]['id']==_0x3ce55f(0x3c3)&&_0x30300c&&_0x30300c[_0x3ce55f(0x47e)](_0x5844c8[_0x3ce55f(0x290)]['id'])>-0x1?ee(ee({},_0x5844c8),{'attrs':ee(ee({},_0x5844c8[_0x3ce55f(0x290)]),{'id':_0x5844c8[_0x3ce55f(0x290)]['id']+_0x46eba9['idSuffix']})}):_0x5844c8;})}):_0xb18ee4;}function Es(){const _0xa569b2=_0x17671e;return Math[_0xa569b2(0x31d)]()[_0xa569b2(0x401)](0x24)[_0xa569b2(0x2ac)](0x2,0x8);}Ot[_0x17671e(0x2b4)]=_0x17671e(0x5bd);var bs={'tag':_0x17671e(0x3f0),'attrs':{'fill':_0x17671e(0x45c),'viewBox':_0x17671e(0x299),'width':_0x17671e(0x1f8),'height':_0x17671e(0x1f8)},'children':[{'tag':'g','attrs':{'clipPath':_0x17671e(0x212)},'children':[{'tag':_0x17671e(0x243),'attrs':{'stroke':_0x17671e(0x3a2),'d':_0x17671e(0x1e3),'strokeLinecap':_0x17671e(0x2e2),'strokeLinejoin':_0x17671e(0x2e2),'strokeWidth':1.2}}]},{'tag':_0x17671e(0x2b5),'attrs':{},'children':[{'tag':_0x17671e(0x2cc),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x17671e(0x243),'attrs':{'fill':'#fff','d':_0x17671e(0x49f)}}]}]}],'defIds':[_0x17671e(0x1f3)]},Sn=z['forwardRef'](function(_0x7f08a2,_0x2a8983){const _0x16cd4a=_0x17671e;return z[_0x16cd4a(0x38a)](Ot,Object['assign']({},_0x7f08a2,{'id':_0x16cd4a(0x35e),'ref':_0x2a8983,'icon':bs}));});Sn[_0x17671e(0x2b4)]='OffLineSingle';var Ts={'tag':_0x17671e(0x3f0),'attrs':{'fill':_0x17671e(0x45c),'viewBox':'0\x200\x2017\x2016','width':_0x17671e(0x1f8),'height':_0x17671e(0x1f8)},'children':[{'tag':'g','attrs':{'clipPath':_0x17671e(0x3e0)},'children':[{'tag':_0x17671e(0x243),'attrs':{'stroke':_0x17671e(0x3a2),'d':_0x17671e(0x548),'strokeLinecap':_0x17671e(0x2e2),'strokeLinejoin':_0x17671e(0x2e2),'strokeWidth':1.2}}]},{'tag':_0x17671e(0x2b5),'attrs':{},'children':[{'tag':_0x17671e(0x2cc),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x17671e(0x49f),'transform':'translate(.97)'}}]}]}],'defIds':['on-line-single_clip0_910_349']},gn=z['forwardRef'](function(_0x2a3741,_0x1cf41c){const _0xeae26e=_0x17671e;return z[_0xeae26e(0x38a)](Ot,Object[_0xeae26e(0x256)]({},_0x2a3741,{'id':'on-line-single','ref':_0x1cf41c,'icon':Ts}));});gn['displayName']=_0x17671e(0x483);function In(_0x202a21){const _0x40c6b9=_0x17671e;var _0x5ab70f,_0x5c637d,_0x3bf4cc='';if(typeof _0x202a21==_0x40c6b9(0x3c3)||typeof _0x202a21==_0x40c6b9(0x20c))_0x3bf4cc+=_0x202a21;else{if(typeof _0x202a21=='object'){if(Array[_0x40c6b9(0x385)](_0x202a21)){var _0x2048fa=_0x202a21[_0x40c6b9(0x367)];for(_0x5ab70f=0x0;_0x5ab70f<_0x2048fa;_0x5ab70f++)_0x202a21[_0x5ab70f]&&(_0x5c637d=In(_0x202a21[_0x5ab70f]))&&(_0x3bf4cc&&(_0x3bf4cc+='\x20'),_0x3bf4cc+=_0x5c637d);}else{for(_0x5c637d in _0x202a21)_0x202a21[_0x5c637d]&&(_0x3bf4cc&&(_0x3bf4cc+='\x20'),_0x3bf4cc+=_0x5c637d);}}}return _0x3bf4cc;}function Rs(){const _0x4f8eac=_0x17671e;for(var _0x59f829,_0x511ba4,_0xf1912e=0x0,_0x21819d='',_0x12209e=arguments[_0x4f8eac(0x367)];_0xf1912e<_0x12209e;_0xf1912e++)(_0x59f829=arguments[_0xf1912e])&&(_0x511ba4=In(_0x59f829))&&(_0x21819d&&(_0x21819d+='\x20'),_0x21819d+=_0x511ba4);return _0x21819d;}const ys=_0x17671e(0x444),Os='univer-online-status-title',Ds='univer-online-status',ws=_0x17671e(0x55d),Ps=_0x17671e(0x4e2),Ue={'onlineStatusIcon':ys,'onlineStatusTitle':Os,'onlineStatus':Ds,'online':ws,'offline':Ps};function Us(_0x4074a5){const _0x35807f=_0x17671e;switch(_0x4074a5){case q[_0x35807f(0x333)]:return _0x35807f(0x57a);case q['CONFLICT']:return _0x35807f(0x64b);case q[_0x35807f(0x54b)]:return _0x35807f(0x5a9);case q[_0x35807f(0x4b7)]:return _0x35807f(0x46b);case q[_0x35807f(0x594)]:case q['AWAITING_WITH_PENDING']:return _0x35807f(0x3cb);case q[_0x35807f(0x59c)]:case q[_0x35807f(0x303)]:return _0x35807f(0x481);}}function Cn(_0x364774){const _0x592a15=_0x17671e,{status$:_0x59d046}=_0x364774,_0x2061a5=te[_0x592a15(0x603)](_0x59d046,q[_0x592a15(0x4b7)]),_0x4b78ff=a['useDependency'](a[_0x592a15(0x530)]),_0x3d054a=a[_0x592a15(0x629)](exports[_0x592a15(0x355)]),_0x56c98f=_0x2061a5!==q[_0x592a15(0x333)],_0x54f9be=_0x4b78ff['t'](Us(_0x2061a5)),_0x17bc62=Rs(Ue['onlineStatus'],{[Ue[_0x592a15(0x28f)]]:_0x56c98f,[Ue[_0x592a15(0x633)]]:!_0x56c98f}),_0x111d9c=_0x56c98f?z[_0x592a15(0x38a)](gn,null):z[_0x592a15(0x38a)](Sn,null),_0x5e8686=z[_0x592a15(0x43f)](()=>{const _0x309fd7=_0x592a15;_0x56c98f||_0x3d054a[_0x309fd7(0x544)]();},[_0x56c98f,_0x3d054a]);function _0x3eb6ee(){const _0x59acde=_0x592a15;return z[_0x59acde(0x38a)](_0x59acde(0x464),{'className':_0x17bc62,'onClick':_0x5e8686},z[_0x59acde(0x38a)](_0x59acde(0x464),{'className':Ue[_0x59acde(0x32b)]},_0x111d9c),z[_0x59acde(0x38a)](_0x59acde(0x464),{'className':Ue[_0x59acde(0x4ab)]},_0x54f9be));}return _0x56c98f?_0x3eb6ee():z['createElement'](Se[_0x592a15(0x326)],{'title':_0x4b78ff['t'](_0x592a15(0x50b))},_0x3eb6ee());}var Ms=Object['defineProperty'],As=Object['getOwnPropertyDescriptor'],Ns=(_0x51479d,_0x294889,_0x2d1388,_0x590a12)=>{const _0x79b451=_0x17671e;for(var _0x54fc07=_0x590a12>0x1?void 0x0:_0x590a12?As(_0x294889,_0x2d1388):_0x294889,_0x4f977a=_0x51479d[_0x79b451(0x367)]-0x1,_0x500cec;_0x4f977a>=0x0;_0x4f977a--)(_0x500cec=_0x51479d[_0x4f977a])&&(_0x54fc07=(_0x590a12?_0x500cec(_0x294889,_0x2d1388,_0x54fc07):_0x500cec(_0x54fc07))||_0x54fc07);return _0x590a12&&_0x54fc07&&Ms(_0x294889,_0x2d1388,_0x54fc07),_0x54fc07;},je=(_0x26afb4,_0x1b06fe)=>(_0x18b5f2,_0x28ad84)=>_0x1b06fe(_0x18b5f2,_0x28ad84,_0x26afb4);exports['DesktopCollaborationStatusDisplayController']=class extends a['Disposable']{constructor(_0xb19326,_0x3c2c86,_0x46c6be,_0x474ee7){const _0x5a9733=_0x17671e;super(),I(this,'_status$',new A[(_0x5a9733(0x1e1))](q[_0x5a9733(0x4b7)])),(this[_0x5a9733(0x2ba)]=_0xb19326,this[_0x5a9733(0x3bc)]=_0x3c2c86,this[_0x5a9733(0x27e)]=_0x46c6be,this[_0x5a9733(0x637)]=_0x474ee7,this['_initStatusComponent'](),this[_0x5a9733(0x1f1)]());}[_0x17671e(0x1f1)](){const _0x2177fd=_0x17671e;this['disposeWithMe'](this[_0x2177fd(0x2ba)][_0x2177fd(0x21e)][_0x2177fd(0x42f)](A[_0x2177fd(0x654)](()=>{const _0x35a2e2=_0x2177fd,_0x414cfe=this[_0x35a2e2(0x2ba)]['getFocusedUnit']();return _0x414cfe?this['_collaborationController'][_0x35a2e2(0x36d)](_0x414cfe[_0x35a2e2(0x21c)]()):A['of'](null);}),A['switchMap'](_0x3c4103=>_0x3c4103?_0x3c4103[_0x2177fd(0x3ca)]:A['of'](q[_0x2177fd(0x4b7)])))[_0x2177fd(0x383)](_0x1edf8c=>{const _0x44f1b0=_0x2177fd;this[_0x44f1b0(0x2b0)][_0x44f1b0(0x2de)](_0x1edf8c);}));}[_0x17671e(0x621)](){const _0x366a2e=_0x17671e;this['disposeWithMe'](this[_0x366a2e(0x3bc)][_0x366a2e(0x41a)](te['BuiltInUIPart']['HEADER_MENU'],()=>a[_0x366a2e(0x51b)](Ls({'status$':this[_0x366a2e(0x2b0)][_0x366a2e(0x3b4)]()}),this['_injector'])));}},exports[_0x17671e(0x556)]=Ns([je(0x0,a['IUniverInstanceService']),je(0x1,te['IUIPartsService']),je(0x2,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),je(0x3,a[_0x17671e(0x52e)](exports['CollaborationController']))],exports['DesktopCollaborationStatusDisplayController']);function Ls(_0xd7c3b4){const {status$:_0x3c8b79}=_0xd7c3b4;return function(){return z['createElement'](Cn,{'status$':_0x3c8b79});};}const Dt=a[_0x17671e(0x2d2)](_0x17671e(0x626));var xs=Object[_0x17671e(0x545)],$s=Object['getOwnPropertyDescriptor'],js=(_0x33d546,_0x1b8f80,_0x1c3531,_0xf64b83)=>{const _0xc8fd84=_0x17671e;for(var _0x3b3377=_0xf64b83>0x1?void 0x0:_0xf64b83?$s(_0x1b8f80,_0x1c3531):_0x1b8f80,_0x12b1c3=_0x33d546[_0xc8fd84(0x367)]-0x1,_0x524999;_0x12b1c3>=0x0;_0x12b1c3--)(_0x524999=_0x33d546[_0x12b1c3])&&(_0x3b3377=(_0xf64b83?_0x524999(_0x1b8f80,_0x1c3531,_0x3b3377):_0x524999(_0x3b3377))||_0x3b3377);return _0xf64b83&&_0x3b3377&&xs(_0x1b8f80,_0x1c3531,_0x3b3377),_0x3b3377;},be=(_0x323f9a,_0x5da3c2)=>(_0x2fe406,_0x3fca11)=>_0x5da3c2(_0x2fe406,_0x3fca11,_0x323f9a);exports['DataLoaderController']=class extends a[_0x17671e(0x2c4)]{constructor(_0x1235e7,_0x340821,_0x107c78,_0x1083b5,_0x323f37,_0x4f0f1e){const _0x394057=_0x17671e;super(),this['_urlService']=_0x1235e7,this[_0x394057(0x3f4)]=_0x340821,this['_commandService']=_0x107c78,this['_localCacheService']=_0x1083b5,this['_snapshotService']=_0x323f37,_0x4f0f1e?_0x4f0f1e==null||_0x4f0f1e['whenReady']()[_0x394057(0x2a2)](()=>this[_0x394057(0x422)]()):(this[_0x394057(0x3f4)][_0x394057(0x597)](_0x394057(0x47d),_0x394057(0x23f)),this['_init']());}async[_0x17671e(0x422)](){const _0x2492dd=_0x17671e,_0x493716=this['_urlService']['getParam'](_0x2492dd(0x361)),_0xd9dc96=this['_urlService'][_0x2492dd(0x2af)](_0x2492dd(0x224));if(!_0x493716||!_0xd9dc96){this[_0x2492dd(0x3f4)][_0x2492dd(0x597)]('[DataLoaderController]',_0x2492dd(0x321));return;}switch(Number(_0xd9dc96)){case se[_0x2492dd(0x360)]:{const _0x37a22a=await this[_0x2492dd(0x2a5)](_0x493716);this[_0x2492dd(0x48f)](_0x37a22a);break;}case se[_0x2492dd(0x4ca)]:{await this[_0x2492dd(0x3b2)](_0x493716);break;}default:{this['_logService'][_0x2492dd(0x2c9)]('[DataLoaderController]','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x17671e(0x48f)](_0x429984){const _0x5ed08e=_0x17671e;await this[_0x5ed08e(0x324)](_0x429984),_0x429984[_0x5ed08e(0x2a8)]['pipe'](A['takeUntil'](this[_0x5ed08e(0x52d)]))[_0x5ed08e(0x383)](_0x141db9=>{_0x141db9&&this['_updateURLWithCurrentState'](_0x141db9);}),this[_0x5ed08e(0x4f2)][_0x5ed08e(0x66b)][_0x5ed08e(0x42f)](A[_0x5ed08e(0x500)](this[_0x5ed08e(0x52d)]))[_0x5ed08e(0x383)](()=>this[_0x5ed08e(0x324)](_0x429984));}[_0x17671e(0x31a)](_0x48614d,_0x1ed745=!0x1){const _0x27595d=_0x17671e,_0x170214=this[_0x27595d(0x4f2)]['getParam'](_0x27595d(0x39e));_0x48614d[_0x27595d(0x36a)]()!==_0x170214&&this['_urlService'][_0x27595d(0x33b)]('subunit',_0x48614d['getSheetId'](),_0x1ed745);}async['_updateSubUnitFromURLParams'](_0x48739f){const _0x2e553d=_0x17671e;var _0x247c21;const _0x10de02=this[_0x2e553d(0x4f2)][_0x2e553d(0x2af)]('subunit');if(!_0x10de02||!_0x48739f['getSheetBySheetId'](_0x10de02)){const _0x45cf1=_0x48739f[_0x2e553d(0x2d8)]()[0x0],_0x1f551d=_0x48739f['getSheetBySheetId'](_0x45cf1);if(!_0x1f551d)return;this[_0x2e553d(0x31a)](_0x1f551d,!0x0),await this[_0x2e553d(0x63b)][_0x2e553d(0x3c9)](k[_0x2e553d(0x3fb)]['id'],{'unitId':_0x48739f[_0x2e553d(0x21c)](),'subUnitId':_0x45cf1});return;}((_0x247c21=_0x48739f[_0x2e553d(0x363)]())==null?void 0x0:_0x247c21[_0x2e553d(0x36a)]())!==_0x10de02&&await this['_commandService']['executeCommand'](k[_0x2e553d(0x3fb)]['id'],{'unitId':_0x48739f[_0x2e553d(0x21c)](),'subUnitId':_0x10de02});}async[_0x17671e(0x2a5)](_0x2ac758){const _0x3eecfd=_0x17671e;let _0x5ecf8f=0x0;const _0x34db54=await this[_0x3eecfd(0x4a3)][_0x3eecfd(0x3d3)](_0x2ac758);return _0x34db54&&(_0x34db54[_0x3eecfd(0x3b3)]||_0x34db54[_0x3eecfd(0x4a4)][_0x3eecfd(0x367)]!==0x0)&&(_0x5ecf8f=_0x34db54[_0x3eecfd(0x5d2)]),_0x5ecf8f===0x0&&this[_0x3eecfd(0x3f4)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x3eecfd(0x1f9)][_0x3eecfd(0x5da)](_0x2ac758,_0x5ecf8f);}async[_0x17671e(0x3b2)](_0x511498){const _0xffc0c5=_0x17671e;let _0x2d860e=0x0;const _0x135a0b=await this[_0xffc0c5(0x4a3)][_0xffc0c5(0x3d3)](_0x511498);return _0x135a0b&&(_0x135a0b[_0xffc0c5(0x3b3)]||_0x135a0b[_0xffc0c5(0x4a4)][_0xffc0c5(0x367)]!==0x0)&&(_0x2d860e=_0x135a0b[_0xffc0c5(0x5d2)]),_0x2d860e===0x0&&this['_logService'][_0xffc0c5(0x597)](_0xffc0c5(0x47d),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xffc0c5(0x1f9)]['loadDoc'](_0x511498,_0x2d860e);}},exports[_0x17671e(0x4d9)]=js([be(0x0,Dt),be(0x1,a[_0x17671e(0x431)]),be(0x2,a[_0x17671e(0x336)]),be(0x3,a['Inject'](exports[_0x17671e(0x2f5)])),be(0x4,a[_0x17671e(0x52e)](p[_0x17671e(0x4e6)])),be(0x5,a['Optional'](Ln[_0x17671e(0x514)]))],exports[_0x17671e(0x4d9)]);var Hs=Object[_0x17671e(0x545)],Bs=Object[_0x17671e(0x47f)],ks=(_0x1aaa98,_0x314576,_0x3d414d,_0x464994)=>{const _0x276efb=_0x17671e;for(var _0x3b7ef5=_0x464994>0x1?void 0x0:_0x464994?Bs(_0x314576,_0x3d414d):_0x314576,_0x20ae7f=_0x1aaa98[_0x276efb(0x367)]-0x1,_0x3e34ea;_0x20ae7f>=0x0;_0x20ae7f--)(_0x3e34ea=_0x1aaa98[_0x20ae7f])&&(_0x3b7ef5=(_0x464994?_0x3e34ea(_0x314576,_0x3d414d,_0x3b7ef5):_0x3e34ea(_0x3b7ef5))||_0x3b7ef5);return _0x464994&&_0x3b7ef5&&Hs(_0x314576,_0x3d414d,_0x3b7ef5),_0x3b7ef5;},Bt=(_0x26f60c,_0x1e0467)=>(_0x1b01a1,_0xa248bd)=>_0x1e0467(_0x1b01a1,_0xa248bd,_0x26f60c);const Ws='DEFAULT_FILE_NAME',Fs=_0x17671e(0x4c3);let Ve=class extends a['Disposable']{constructor(_0x42bbfc,_0x30ae2b){const _0x457ccd=_0x17671e;super(),this['_univerInstanceService']=_0x42bbfc,this[_0x457ccd(0x573)]=_0x30ae2b,this[_0x457ccd(0x422)]();}[_0x17671e(0x422)](){const _0x3ac683=_0x17671e;this[_0x3ac683(0x5f1)](this[_0x3ac683(0x2ba)]['focused$'][_0x3ac683(0x383)](()=>{const _0x2dc5b4=_0x3ac683;var _0x3d56b8;const _0x249206=this['_univerInstanceService'][_0x2dc5b4(0x3ab)]();let _0x3a47e9=(_0x3d56b8=this[_0x2dc5b4(0x573)]['getConfig'](Ws))!=null?_0x3d56b8:Fs;_0x249206 instanceof a['Workbook']&&(_0x3a47e9=_0x249206[_0x2dc5b4(0x3ea)]),document[_0x2dc5b4(0x1db)]=_0x3a47e9;}));}};Ve=ks([Bt(0x0,a[_0x17671e(0x4fc)]),Bt(0x1,a[_0x17671e(0x505)])],Ve);var Vs=Object[_0x17671e(0x545)],Gs=Object['getOwnPropertyDescriptor'],Ys=(_0x3997dc,_0x3e6fee,_0x549dfc,_0x129b6b)=>{const _0x401709=_0x17671e;for(var _0x1ce301=_0x129b6b>0x1?void 0x0:_0x129b6b?Gs(_0x3e6fee,_0x549dfc):_0x3e6fee,_0x299ff7=_0x3997dc[_0x401709(0x367)]-0x1,_0x14963f;_0x299ff7>=0x0;_0x299ff7--)(_0x14963f=_0x3997dc[_0x299ff7])&&(_0x1ce301=(_0x129b6b?_0x14963f(_0x3e6fee,_0x549dfc,_0x1ce301):_0x14963f(_0x1ce301))||_0x1ce301);return _0x129b6b&&_0x1ce301&&Vs(_0x3e6fee,_0x549dfc,_0x1ce301),_0x1ce301;},ot=(_0xa04a77,_0x19ef33)=>(_0xbe088f,_0x5ae117)=>_0x19ef33(_0xbe088f,_0x5ae117,_0xa04a77);let Ge=class{constructor(_0x56db92,_0xab7438,_0x3a03fa){const _0x3f2c9d=_0x17671e;this[_0x3f2c9d(0x573)]=_0x56db92,this['_httpService']=_0xab7438,this[_0x3f2c9d(0x679)]=_0x3a03fa,this[_0x3f2c9d(0x2ce)]();}[_0x17671e(0x2ce)](){const _0x3b1a8e=_0x17671e;this[_0x3b1a8e(0x54d)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x53fc4c,_0x5a2385)=>_0x5a2385(_0x53fc4c)[_0x3b1a8e(0x42f)](A[_0x3b1a8e(0x5f6)](async _0xf538f6=>{const _0x27073=_0x3b1a8e,_0x41c26f=_0xf538f6;if(_0x41c26f['status']===0x191&&window[_0x27073(0x5a5)](this[_0x27073(0x679)]['t'](_0x27073(0x286)))){const _0x347300=window[_0x27073(0x5c0)](window[_0x27073(0x675)][_0x27073(0x62d)]);window[_0x27073(0x675)][_0x27073(0x62d)]=this[_0x27073(0x31e)]()+_0x27073(0x50a)+_0x347300;}return _0x41c26f;}))});}[_0x17671e(0x31e)](){const _0x4b1ccf=_0x17671e;var _0x508ad3,_0x556adf;const _0x1018b7=this['_configService'][_0x4b1ccf(0x2cf)](on),_0x2b9c3f=this[_0x4b1ccf(0x573)][_0x4b1ccf(0x2cf)](ne);return(_0x556adf=(_0x508ad3=_0x2b9c3f==null?void 0x0:_0x2b9c3f['loginUrlKey'])!=null?_0x508ad3:_0x1018b7)!=null?_0x556adf:Gn;}};Ge=Ys([ot(0x0,a['IConfigService']),ot(0x1,a['Inject'](Q[_0x17671e(0x5df)])),ot(0x2,a['Inject'](a['LocaleService']))],Ge);var Ks=Object[_0x17671e(0x545)],qs=Object['getOwnPropertyDescriptor'],zs=(_0x4dffd1,_0x46ce49,_0xced53,_0x1e8f12)=>{const _0x164113=_0x17671e;for(var _0x295387=_0x1e8f12>0x1?void 0x0:_0x1e8f12?qs(_0x46ce49,_0xced53):_0x46ce49,_0x29a3ce=_0x4dffd1[_0x164113(0x367)]-0x1,_0xfcda43;_0x29a3ce>=0x0;_0x29a3ce--)(_0xfcda43=_0x4dffd1[_0x29a3ce])&&(_0x295387=(_0x1e8f12?_0xfcda43(_0x46ce49,_0xced53,_0x295387):_0xfcda43(_0x295387))||_0x295387);return _0x1e8f12&&_0x295387&&Ks(_0x46ce49,_0xced53,_0x295387),_0x295387;},kt=(_0xc1851b,_0x40c4b5)=>(_0x2c6283,_0x14f30d)=>_0x40c4b5(_0x2c6283,_0x14f30d,_0xc1851b);const En=_0x17671e(0x402),Xs=_0x17671e(0x5ab);exports['AuthzIoHttpService']=class extends a[_0x17671e(0x632)]{constructor(_0x10e8a8,_0x4900ff){const _0x5ea5a1=_0x17671e;super(),this[_0x5ea5a1(0x59a)]=_0x10e8a8,this[_0x5ea5a1(0x573)]=_0x4900ff,this[_0x5ea5a1(0x369)]();}[_0x17671e(0x369)](){const _0x529aa8=_0x17671e,_0x62f190=this;this[_0x529aa8(0x5f1)](this[_0x529aa8(0x59a)][_0x529aa8(0x617)]({'priority':0x3e7,'interceptor':Q[_0x529aa8(0x3a7)]({'isMatch'(_0x4d4039){const _0x8a5efb=_0x529aa8;var _0x297089;if(_0x4d4039['method']===_0x8a5efb(0x576)&&((_0x297089=_0x4d4039[_0x8a5efb(0x518)])!=null&&_0x297089['body'])){const {objectID:_0x5d42be,objectType:_0x6a822f}=_0x4d4039[_0x8a5efb(0x518)][_0x8a5efb(0x599)]||{};if(!_0x5d42be||_0x6a822f===void 0x0)return!0x1;const _0x452cd9=_0x62f190[_0x8a5efb(0x64d)]()+'/'+_0x6a822f+_0x8a5efb(0x4fd)+_0x5d42be+_0x8a5efb(0x590);if(_0x4d4039[_0x8a5efb(0x660)]===_0x452cd9)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x369643){const _0x43c6b4=_0x529aa8;var _0x539d96;return(_0x539d96=_0x369643[_0x43c6b4(0x518)])==null?void 0x0:_0x539d96[_0x43c6b4(0x599)];},'mergeParamsToRequest'(_0x5b9064,_0x29c8b9){const _0x3ddcdd=_0x529aa8,_0x2f362f=_0x62f190[_0x3ddcdd(0x64d)]()+_0x3ddcdd(0x5fd),_0x29fe43=_0x5b9064['reduce']((_0x3ab269,_0x9a224c)=>{const _0x2339a8=_0x3ddcdd,{unitID:_0xdbf84,objectID:_0x5b0c22,objectType:_0x33de1d,actions:_0x126c15}=_0x9a224c;return _0x3ab269[_0xdbf84]||(_0x3ab269[_0xdbf84]={}),_0x3ab269[_0xdbf84][_0x5b0c22]||(_0x3ab269[_0xdbf84][_0x5b0c22]={'objectID':_0x5b0c22,'objectType':_0x33de1d,'actions':[]}),_0x3ab269[_0xdbf84][_0x5b0c22]['actions'][_0x2339a8(0x263)](..._0x126c15),_0x3ab269;},{}),_0x44ba4b=[];for(const _0x53aade in _0x29fe43)for(const _0x2b56a4 in _0x29fe43[_0x53aade]){const {actions:_0x35475f,objectType:_0x3d72e7}=_0x29fe43[_0x53aade][_0x2b56a4],_0x16022a=[...new Set(_0x35475f)];_0x44ba4b[_0x3ddcdd(0x263)]({'unitID':_0x53aade,'objectID':_0x2b56a4,'objectType':_0x3d72e7,'actions':_0x16022a});}return new Q[(_0x3ddcdd(0x667))](_0x3ddcdd(0x576),_0x2f362f,{'headers':_0x29c8b9[_0x3ddcdd(0x57f)],'withCredentials':_0x29c8b9[_0x3ddcdd(0x550)],'responseType':_0x29c8b9[_0x3ddcdd(0x3b6)],'body':{'requests':_0x44ba4b}});}},{'distributeResult'(_0x4de3d0,_0x57e157){const _0x2742d3=_0x529aa8,{objectActions:_0x20ecc0}=_0x4de3d0;return _0x57e157[_0x2742d3(0x372)](_0x4e7bc5=>{const _0x459478=_0x2742d3,{unitID:_0x170421,objectID:_0x1c3714,actions:_0x2f8809}=_0x4e7bc5,_0x295025=_0x20ecc0[_0x459478(0x311)](_0xa6632f=>_0xa6632f[_0x459478(0x219)]===_0x170421&&_0xa6632f[_0x459478(0x62b)]===_0x1c3714),_0x3da11e=_0x2f8809[_0x459478(0x372)](_0x417cbf=>_0x295025==null?void 0x0:_0x295025[_0x459478(0x512)][_0x459478(0x311)](_0x36f5a7=>_0x36f5a7[_0x459478(0x427)]===_0x417cbf))[_0x459478(0x335)](_0xd9b442=>!!_0xd9b442);return{'config':_0x4e7bc5,'result':{'actions':_0x3da11e,'error':_0x4de3d0[_0x459478(0x2c9)]}};});}})}));}[_0x17671e(0x64d)](){const _0x3c7b69=_0x17671e;var _0x4e9e4d,_0x2e0ee7;const _0x37bf04=this[_0x3c7b69(0x573)][_0x3c7b69(0x2cf)](En),_0x1ed17c=this[_0x3c7b69(0x573)][_0x3c7b69(0x2cf)](ne);return(_0x2e0ee7=(_0x4e9e4d=_0x1ed17c==null?void 0x0:_0x1ed17c[_0x3c7b69(0x581)])!=null?_0x4e9e4d:_0x37bf04)!=null?_0x2e0ee7:Xs;}async[_0x17671e(0x555)](_0x58c0bb){const _0x4f6c91=_0x17671e,_0x2d740d=this[_0x4f6c91(0x64d)]()+'/'+_0x58c0bb[_0x4f6c91(0x5b8)]+_0x4f6c91(0x4e7);return(await this[_0x4f6c91(0x59a)][_0x4f6c91(0x1da)](_0x2d740d,{'body':_0x58c0bb}))['body']['objectID']||'';}async['list'](_0x344d9d){const _0xa12b18=_0x17671e,_0x5b79ec=this[_0xa12b18(0x64d)]()+_0xa12b18(0x1ef);return(await this[_0xa12b18(0x59a)][_0xa12b18(0x1da)](_0x5b79ec,{'body':_0x344d9d}))[_0xa12b18(0x599)][_0xa12b18(0x52a)];}async[_0x17671e(0x283)](_0x41633f){const _0x242393=_0x17671e,_0x3353e9=this['_getAPIPrefixPath']()+'/'+_0x41633f[_0x242393(0x5b8)]+_0x242393(0x4fd)+_0x41633f[_0x242393(0x62b)];await this[_0x242393(0x59a)][_0x242393(0x395)](_0x3353e9,{'body':_0x41633f});}async['allowed'](_0x5b1220){const _0x2950ff=_0x17671e,_0x57bd0d=this['_getAPIPrefixPath']()+'/'+_0x5b1220[_0x2950ff(0x5b8)]+'/object/'+_0x5b1220[_0x2950ff(0x62b)]+_0x2950ff(0x590);return(await this[_0x2950ff(0x59a)][_0x2950ff(0x1da)](_0x57bd0d,{'body':_0x5b1220}))[_0x2950ff(0x599)][_0x2950ff(0x512)];}async[_0x17671e(0x2d0)](_0x1c63f1){const _0x406645=_0x17671e,_0x22920d=this['_getAPIPrefixPath']()+_0x406645(0x5fd);return(await this['_HTTPService']['post'](_0x22920d,{'body':{'requests':_0x1c63f1}}))[_0x406645(0x599)][_0x406645(0x2c1)];}async[_0x17671e(0x4f8)](_0xaf2aef){const _0x4ee4b5=_0x17671e,_0x37c609=this['_getAPIPrefixPath']()+'/'+_0xaf2aef[_0x4ee4b5(0x5b8)]+'/role',_0x53a5db=await this['_HTTPService'][_0x4ee4b5(0x1da)](_0x37c609,{'body':_0xaf2aef});return{'roles':_0x53a5db[_0x4ee4b5(0x599)]['roles'],'actions':_0x53a5db['body']['actions']};}async[_0x17671e(0x39a)](_0x13b741){const _0x410c91=_0x17671e,_0x19e21c=this[_0x410c91(0x64d)]()+_0x410c91(0x317);await this[_0x410c91(0x59a)][_0x410c91(0x430)](_0x19e21c,{'params':{'collaboratorID':_0x13b741[_0x410c91(0x229)],'objectID':_0x13b741[_0x410c91(0x62b)],'unitID':_0x13b741['unitID']}});}async[_0x17671e(0x4c6)](_0x1117b0){const _0x527190=_0x17671e,_0x1c7a7e=this[_0x527190(0x64d)]()+_0x527190(0x317);await this[_0x527190(0x59a)][_0x527190(0x38d)](_0x1c7a7e,{'body':_0x1117b0});}async[_0x17671e(0x37a)](_0x4be42d){const _0x21367a=_0x17671e,_0x51d04b=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x21367a(0x59a)]['post'](_0x51d04b,{'body':_0x4be42d});}async[_0x17671e(0x4ee)](_0x4a0ef2){const _0x3e2d23=_0x17671e,_0x252804=this[_0x3e2d23(0x64d)]()+_0x3e2d23(0x317);return(await this['_HTTPService']['get'](_0x252804,{'params':{'objectID':_0x4a0ef2[_0x3e2d23(0x62b)],'unitID':_0x4a0ef2[_0x3e2d23(0x219)]}}))[_0x3e2d23(0x599)][_0x3e2d23(0x4ff)];}async[_0x17671e(0x5a7)](_0x196938){const _0x245aa0=_0x17671e,_0x13a293=this[_0x245aa0(0x64d)]()+_0x245aa0(0x317);await this['_HTTPService'][_0x245aa0(0x395)](_0x13a293,{'body':_0x196938});}},exports['AuthzIoHttpService']=zs([kt(0x0,a[_0x17671e(0x52e)](Q['HTTPService'])),kt(0x1,a[_0x17671e(0x52e)](a[_0x17671e(0x505)]))],exports[_0x17671e(0x3e3)]);var J=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function Le(_0x51fff1){const _0x225470=_0x17671e;return _0x51fff1&&_0x51fff1[_0x225470(0x3ad)]&&Object[_0x225470(0x4ef)][_0x225470(0x577)][_0x225470(0x5b0)](_0x51fff1,'default')?_0x51fff1['default']:_0x51fff1;}function Js(_0x4c22ce){const _0x3afb85=_0x17671e;if(_0x4c22ce[_0x3afb85(0x3ad)])return _0x4c22ce;var _0x3581c8=_0x4c22ce[_0x3afb85(0x348)];if(typeof _0x3581c8=='function'){var _0x4a2aec=function _0x17bdd3(){const _0x200f8f=_0x3afb85;return this instanceof _0x17bdd3?Reflect['construct'](_0x3581c8,arguments,this[_0x200f8f(0x318)]):_0x3581c8[_0x200f8f(0x40e)](this,arguments);};_0x4a2aec[_0x3afb85(0x4ef)]=_0x3581c8[_0x3afb85(0x4ef)];}else _0x4a2aec={};return Object[_0x3afb85(0x545)](_0x4a2aec,_0x3afb85(0x3ad),{'value':!0x0}),Object[_0x3afb85(0x56e)](_0x4c22ce)[_0x3afb85(0x5ea)](function(_0x1edc88){const _0x37eaef=_0x3afb85;var _0x3868c3=Object[_0x37eaef(0x47f)](_0x4c22ce,_0x1edc88);Object[_0x37eaef(0x545)](_0x4a2aec,_0x1edc88,_0x3868c3[_0x37eaef(0x2a7)]?_0x3868c3:{'enumerable':!0x0,'get':function(){return _0x4c22ce[_0x1edc88];}});}),_0x4a2aec;}var bn={'exports':{}};function Zs(_0xa299e0){const _0x5c90b9=_0x17671e;throw new Error(_0x5c90b9(0x4ba)+_0xa299e0+_0x5c90b9(0x240));}var at={'exports':{}};const Qs={},er=Object['freeze'](Object['defineProperty']({'__proto__':null,'default':Qs},Symbol['toStringTag'],{'value':_0x17671e(0x1e5)})),tr=Js(er);var Wt;function ae(){const _0x25299a=_0x17671e;return Wt||(Wt=0x1,function(_0x2f64b8,_0x55f5b0){(function(_0x583da4,_0x565eaa){const _0x467a71=_0x35f6;_0x2f64b8[_0x467a71(0x236)]=_0x565eaa();}(J,function(){var _0x1c605d=_0x1c605d||function(_0x56dd8e,_0x477493){const _0x5eb985=_0x35f6;var _0x5e8fe5;if(typeof window<'u'&&window[_0x5eb985(0x294)]&&(_0x5e8fe5=window[_0x5eb985(0x294)]),typeof self<'u'&&self['crypto']&&(_0x5e8fe5=self[_0x5eb985(0x294)]),typeof globalThis<'u'&&globalThis[_0x5eb985(0x294)]&&(_0x5e8fe5=globalThis[_0x5eb985(0x294)]),!_0x5e8fe5&&typeof window<'u'&&window[_0x5eb985(0x510)]&&(_0x5e8fe5=window[_0x5eb985(0x510)]),!_0x5e8fe5&&typeof J<'u'&&J['crypto']&&(_0x5e8fe5=J['crypto']),!_0x5e8fe5&&typeof Zs==_0x5eb985(0x1ee))try{_0x5e8fe5=tr;}catch{}var _0x5126f2=function(){const _0x431bb5=_0x5eb985;if(_0x5e8fe5){if(typeof _0x5e8fe5[_0x431bb5(0x342)]==_0x431bb5(0x1ee))try{return _0x5e8fe5[_0x431bb5(0x342)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x5e8fe5[_0x431bb5(0x3df)]=='function')try{return _0x5e8fe5['randomBytes'](0x4)[_0x431bb5(0x547)]();}catch{}}throw new Error(_0x431bb5(0x2e6));},_0x5279e2=Object['create']||(function(){function _0xd6ca74(){}return function(_0x221bba){const _0x551f16=_0x35f6;var _0xd960bb;return _0xd6ca74[_0x551f16(0x4ef)]=_0x221bba,_0xd960bb=new _0xd6ca74(),_0xd6ca74[_0x551f16(0x4ef)]=null,_0xd960bb;};}()),_0x1e898e={},_0xcaff69=_0x1e898e[_0x5eb985(0x47c)]={},_0x46db73=_0xcaff69['Base']=(function(){return{'extend':function(_0x18ed45){const _0x5c5479=_0x35f6;var _0x3006e0=_0x5279e2(this);return _0x18ed45&&_0x3006e0['mixIn'](_0x18ed45),(!_0x3006e0[_0x5c5479(0x577)]('init')||this[_0x5c5479(0x2ce)]===_0x3006e0[_0x5c5479(0x2ce)])&&(_0x3006e0[_0x5c5479(0x2ce)]=function(){const _0x4cfb4c=_0x5c5479;_0x3006e0[_0x4cfb4c(0x3d8)]['init'][_0x4cfb4c(0x40e)](this,arguments);}),_0x3006e0[_0x5c5479(0x2ce)][_0x5c5479(0x4ef)]=_0x3006e0,_0x3006e0['$super']=this,_0x3006e0;},'create':function(){const _0x295b51=_0x35f6;var _0x450746=this[_0x295b51(0x26c)]();return _0x450746[_0x295b51(0x2ce)]['apply'](_0x450746,arguments),_0x450746;},'init':function(){},'mixIn':function(_0x4a35a6){const _0x3eb2c0=_0x35f6;for(var _0x3f22ab in _0x4a35a6)_0x4a35a6['hasOwnProperty'](_0x3f22ab)&&(this[_0x3f22ab]=_0x4a35a6[_0x3f22ab]);_0x4a35a6['hasOwnProperty'](_0x3eb2c0(0x401))&&(this['toString']=_0x4a35a6[_0x3eb2c0(0x401)]);},'clone':function(){const _0x824c88=_0x35f6;return this['init'][_0x824c88(0x4ef)][_0x824c88(0x26c)](this);}};}()),_0x4861d7=_0xcaff69[_0x5eb985(0x323)]=_0x46db73[_0x5eb985(0x26c)]({'init':function(_0x459e45,_0x3e206e){const _0x257836=_0x5eb985;_0x459e45=this['words']=_0x459e45||[],_0x3e206e!=_0x477493?this[_0x257836(0x1d9)]=_0x3e206e:this[_0x257836(0x1d9)]=_0x459e45[_0x257836(0x367)]*0x4;},'toString':function(_0x427164){const _0x4731dc=_0x5eb985;return(_0x427164||_0x2acf94)[_0x4731dc(0x65e)](this);},'concat':function(_0x1565e8){const _0x5f1b82=_0x5eb985;var _0x1c3b28=this[_0x5f1b82(0x520)],_0x1e77e7=_0x1565e8[_0x5f1b82(0x520)],_0x4c86bd=this[_0x5f1b82(0x1d9)],_0x2c44b9=_0x1565e8['sigBytes'];if(this[_0x5f1b82(0x40c)](),_0x4c86bd%0x4)for(var _0x4fe31e=0x0;_0x4fe31e<_0x2c44b9;_0x4fe31e++){var _0x352ddb=_0x1e77e7[_0x4fe31e>>>0x2]>>>0x18-_0x4fe31e%0x4*0x8&0xff;_0x1c3b28[_0x4c86bd+_0x4fe31e>>>0x2]|=_0x352ddb<<0x18-(_0x4c86bd+_0x4fe31e)%0x4*0x8;}else{for(var _0x39eeec=0x0;_0x39eeec<_0x2c44b9;_0x39eeec+=0x4)_0x1c3b28[_0x4c86bd+_0x39eeec>>>0x2]=_0x1e77e7[_0x39eeec>>>0x2];}return this['sigBytes']+=_0x2c44b9,this;},'clamp':function(){const _0x126838=_0x5eb985;var _0x448bbd=this[_0x126838(0x520)],_0x5c20c4=this[_0x126838(0x1d9)];_0x448bbd[_0x5c20c4>>>0x2]&=0xffffffff<<0x20-_0x5c20c4%0x4*0x8,_0x448bbd[_0x126838(0x367)]=_0x56dd8e['ceil'](_0x5c20c4/0x4);},'clone':function(){const _0x110f60=_0x5eb985;var _0x5d93e5=_0x46db73[_0x110f60(0x382)][_0x110f60(0x5b0)](this);return _0x5d93e5[_0x110f60(0x520)]=this['words'][_0x110f60(0x270)](0x0),_0x5d93e5;},'random':function(_0x4b50bc){const _0x5bf278=_0x5eb985;for(var _0x242895=[],_0x592c29=0x0;_0x592c29<_0x4b50bc;_0x592c29+=0x4)_0x242895['push'](_0x5126f2());return new _0x4861d7[(_0x5bf278(0x2ce))](_0x242895,_0x4b50bc);}}),_0x3fceac=_0x1e898e[_0x5eb985(0x5fb)]={},_0x2acf94=_0x3fceac[_0x5eb985(0x5f7)]={'stringify':function(_0x3eb40b){const _0xb05c47=_0x5eb985;for(var _0x4718fb=_0x3eb40b['words'],_0x3c7b0f=_0x3eb40b[_0xb05c47(0x1d9)],_0x323da8=[],_0x44af15=0x0;_0x44af15<_0x3c7b0f;_0x44af15++){var _0x5cb488=_0x4718fb[_0x44af15>>>0x2]>>>0x18-_0x44af15%0x4*0x8&0xff;_0x323da8[_0xb05c47(0x263)]((_0x5cb488>>>0x4)[_0xb05c47(0x401)](0x10)),_0x323da8['push']((_0x5cb488&0xf)[_0xb05c47(0x401)](0x10));}return _0x323da8[_0xb05c47(0x62f)]('');},'parse':function(_0x5cbc7e){const _0x1139b8=_0x5eb985;for(var _0x156200=_0x5cbc7e[_0x1139b8(0x367)],_0xf7fa3d=[],_0x246b46=0x0;_0x246b46<_0x156200;_0x246b46+=0x2)_0xf7fa3d[_0x246b46>>>0x3]|=parseInt(_0x5cbc7e['substr'](_0x246b46,0x2),0x10)<<0x18-_0x246b46%0x8*0x4;return new _0x4861d7[(_0x1139b8(0x2ce))](_0xf7fa3d,_0x156200/0x2);}},_0x59f2e5=_0x3fceac[_0x5eb985(0x4dd)]={'stringify':function(_0x1c1ac7){const _0x18f3f6=_0x5eb985;for(var _0xbae2d9=_0x1c1ac7['words'],_0x5e0ac7=_0x1c1ac7[_0x18f3f6(0x1d9)],_0x19b27d=[],_0x4fceaa=0x0;_0x4fceaa<_0x5e0ac7;_0x4fceaa++){var _0x282075=_0xbae2d9[_0x4fceaa>>>0x2]>>>0x18-_0x4fceaa%0x4*0x8&0xff;_0x19b27d[_0x18f3f6(0x263)](String[_0x18f3f6(0x58e)](_0x282075));}return _0x19b27d['join']('');},'parse':function(_0x2925a6){const _0x3c113a=_0x5eb985;for(var _0x13977a=_0x2925a6[_0x3c113a(0x367)],_0x147eab=[],_0x325982=0x0;_0x325982<_0x13977a;_0x325982++)_0x147eab[_0x325982>>>0x2]|=(_0x2925a6[_0x3c113a(0x5c6)](_0x325982)&0xff)<<0x18-_0x325982%0x4*0x8;return new _0x4861d7[(_0x3c113a(0x2ce))](_0x147eab,_0x13977a);}},_0x4f88da=_0x3fceac[_0x5eb985(0x340)]={'stringify':function(_0x262efc){const _0x1a9feb=_0x5eb985;try{return decodeURIComponent(escape(_0x59f2e5[_0x1a9feb(0x65e)](_0x262efc)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'parse':function(_0x5a29b1){const _0x47217c=_0x5eb985;return _0x59f2e5[_0x47217c(0x634)](unescape(encodeURIComponent(_0x5a29b1)));}},_0x1308fd=_0xcaff69[_0x5eb985(0x301)]=_0x46db73[_0x5eb985(0x26c)]({'reset':function(){const _0x5cdf92=_0x5eb985;this[_0x5cdf92(0x624)]=new _0x4861d7[(_0x5cdf92(0x2ce))](),this[_0x5cdf92(0x1e6)]=0x0;},'_append':function(_0x256ed3){const _0xf32392=_0x5eb985;typeof _0x256ed3==_0xf32392(0x3c3)&&(_0x256ed3=_0x4f88da[_0xf32392(0x634)](_0x256ed3)),this[_0xf32392(0x624)][_0xf32392(0x59e)](_0x256ed3),this['_nDataBytes']+=_0x256ed3[_0xf32392(0x1d9)];},'_process':function(_0x738b12){const _0x1ada8f=_0x5eb985;var _0x4a712d,_0x39111c=this[_0x1ada8f(0x624)],_0x4f54d9=_0x39111c[_0x1ada8f(0x520)],_0x266349=_0x39111c[_0x1ada8f(0x1d9)],_0x8b54a9=this[_0x1ada8f(0x4a8)],_0x17e21c=_0x8b54a9*0x4,_0x582a5f=_0x266349/_0x17e21c;_0x738b12?_0x582a5f=_0x56dd8e['ceil'](_0x582a5f):_0x582a5f=_0x56dd8e['max']((_0x582a5f|0x0)-this[_0x1ada8f(0x5cf)],0x0);var _0x1be3e2=_0x582a5f*_0x8b54a9,_0x1ee44f=_0x56dd8e[_0x1ada8f(0x31f)](_0x1be3e2*0x4,_0x266349);if(_0x1be3e2){for(var _0x5d079f=0x0;_0x5d079f<_0x1be3e2;_0x5d079f+=_0x8b54a9)this[_0x1ada8f(0x571)](_0x4f54d9,_0x5d079f);_0x4a712d=_0x4f54d9['splice'](0x0,_0x1be3e2),_0x39111c['sigBytes']-=_0x1ee44f;}return new _0x4861d7['init'](_0x4a712d,_0x1ee44f);},'clone':function(){const _0x1857c4=_0x5eb985;var _0x2750eb=_0x46db73[_0x1857c4(0x382)][_0x1857c4(0x5b0)](this);return _0x2750eb[_0x1857c4(0x624)]=this['_data'][_0x1857c4(0x382)](),_0x2750eb;},'_minBufferSize':0x0});_0xcaff69[_0x5eb985(0x438)]=_0x1308fd['extend']({'cfg':_0x46db73[_0x5eb985(0x26c)](),'init':function(_0x3ae2db){const _0x29e094=_0x5eb985;this[_0x29e094(0x442)]=this['cfg']['extend'](_0x3ae2db),this[_0x29e094(0x529)]();},'reset':function(){const _0x4dbe5f=_0x5eb985;_0x1308fd[_0x4dbe5f(0x529)][_0x4dbe5f(0x5b0)](this),this['_doReset']();},'update':function(_0x38ce87){const _0x4d488e=_0x5eb985;return this[_0x4d488e(0x25e)](_0x38ce87),this[_0x4d488e(0x46a)](),this;},'finalize':function(_0x237486){const _0xba7054=_0x5eb985;_0x237486&&this[_0xba7054(0x25e)](_0x237486);var _0xe09261=this[_0xba7054(0x623)]();return _0xe09261;},'blockSize':0x10,'_createHelper':function(_0x3fcbf5){return function(_0x1a08ff,_0x1698e9){const _0x17c518=_0x35f6;return new _0x3fcbf5[(_0x17c518(0x2ce))](_0x1698e9)[_0x17c518(0x446)](_0x1a08ff);};},'_createHmacHelper':function(_0x5888d2){return function(_0x3fd2d3,_0x48d167){const _0x280399=_0x35f6;return new _0x1457d6['HMAC'][(_0x280399(0x2ce))](_0x5888d2,_0x48d167)[_0x280399(0x446)](_0x3fd2d3);};}});var _0x1457d6=_0x1e898e['algo']={};return _0x1e898e;}(Math);return _0x1c605d;}));}(at)),at[_0x25299a(0x236)];}var ct={'exports':{}},Ft;function Tn(){const _0x117964=_0x17671e;return Ft||(Ft=0x1,function(_0xcb171a,_0x5197f7){(function(_0x108a4f,_0x14fb1e){const _0x35a45f=_0x35f6;_0xcb171a[_0x35a45f(0x236)]=_0x14fb1e(ae());}(J,function(_0x15bc5d){const _0x5bdacb=_0x35f6;return(function(){const _0x4a7ce8=_0x35f6;var _0x2e698c=_0x15bc5d,_0x8fb0db=_0x2e698c[_0x4a7ce8(0x47c)],_0x253dd3=_0x8fb0db['WordArray'],_0x5133cc=_0x2e698c[_0x4a7ce8(0x5fb)];_0x5133cc['Base64']={'stringify':function(_0x14aa14){const _0x3cc0c2=_0x4a7ce8;var _0x2d366f=_0x14aa14['words'],_0x4224fe=_0x14aa14[_0x3cc0c2(0x1d9)],_0x56dd64=this[_0x3cc0c2(0x347)];_0x14aa14[_0x3cc0c2(0x40c)]();for(var _0x31ab01=[],_0x3505b7=0x0;_0x3505b7<_0x4224fe;_0x3505b7+=0x3)for(var _0x1679b5=_0x2d366f[_0x3505b7>>>0x2]>>>0x18-_0x3505b7%0x4*0x8&0xff,_0x3a0207=_0x2d366f[_0x3505b7+0x1>>>0x2]>>>0x18-(_0x3505b7+0x1)%0x4*0x8&0xff,_0xa6ee6d=_0x2d366f[_0x3505b7+0x2>>>0x2]>>>0x18-(_0x3505b7+0x2)%0x4*0x8&0xff,_0x44b3ba=_0x1679b5<<0x10|_0x3a0207<<0x8|_0xa6ee6d,_0x44d42b=0x0;_0x44d42b<0x4&&_0x3505b7+_0x44d42b*0.75<_0x4224fe;_0x44d42b++)_0x31ab01[_0x3cc0c2(0x263)](_0x56dd64[_0x3cc0c2(0x200)](_0x44b3ba>>>0x6*(0x3-_0x44d42b)&0x3f));var _0x4f2d66=_0x56dd64['charAt'](0x40);if(_0x4f2d66){for(;_0x31ab01['length']%0x4;)_0x31ab01[_0x3cc0c2(0x263)](_0x4f2d66);}return _0x31ab01[_0x3cc0c2(0x62f)]('');},'parse':function(_0x4120ba){const _0x2e5ed9=_0x4a7ce8;var _0x26f747=_0x4120ba[_0x2e5ed9(0x367)],_0x1304c5=this['_map'],_0x24074c=this[_0x2e5ed9(0x217)];if(!_0x24074c){_0x24074c=this[_0x2e5ed9(0x217)]=[];for(var _0x3c3f78=0x0;_0x3c3f78<_0x1304c5['length'];_0x3c3f78++)_0x24074c[_0x1304c5[_0x2e5ed9(0x5c6)](_0x3c3f78)]=_0x3c3f78;}var _0x1cf532=_0x1304c5[_0x2e5ed9(0x200)](0x40);if(_0x1cf532){var _0x3acf64=_0x4120ba[_0x2e5ed9(0x47e)](_0x1cf532);_0x3acf64!==-0x1&&(_0x26f747=_0x3acf64);}return _0x2994f9(_0x4120ba,_0x26f747,_0x24074c);},'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0x2994f9(_0x15a7c9,_0x46ad49,_0x5df1fe){const _0x367961=_0x4a7ce8;for(var _0x5e9373=[],_0x13a6aa=0x0,_0x3249c0=0x0;_0x3249c0<_0x46ad49;_0x3249c0++)if(_0x3249c0%0x4){var _0x5f398f=_0x5df1fe[_0x15a7c9[_0x367961(0x5c6)](_0x3249c0-0x1)]<<_0x3249c0%0x4*0x2,_0x5ccc29=_0x5df1fe[_0x15a7c9[_0x367961(0x5c6)](_0x3249c0)]>>>0x6-_0x3249c0%0x4*0x2,_0x1057df=_0x5f398f|_0x5ccc29;_0x5e9373[_0x13a6aa>>>0x2]|=_0x1057df<<0x18-_0x13a6aa%0x4*0x8,_0x13a6aa++;}return _0x253dd3['create'](_0x5e9373,_0x13a6aa);}}()),_0x15bc5d[_0x5bdacb(0x5fb)][_0x5bdacb(0x32e)];}));}(ct)),ct[_0x117964(0x236)];}var lt={'exports':{}},Vt;function nr(){const _0x5b99c1=_0x17671e;return Vt||(Vt=0x1,function(_0x4f8426,_0x2bf122){(function(_0x5a43f4,_0x22718c){_0x4f8426['exports']=_0x22718c(ae());}(J,function(_0x443cbc){const _0x183754=_0x35f6;return function(_0x2216ef){const _0x4b8846=_0x35f6;var _0x5bf313=_0x443cbc,_0x10afd8=_0x5bf313[_0x4b8846(0x47c)],_0x4f77eb=_0x10afd8[_0x4b8846(0x323)],_0xf062ee=_0x10afd8[_0x4b8846(0x438)],_0x31c67c=_0x5bf313[_0x4b8846(0x49a)],_0x39a959=[];(function(){const _0x3f8bb=_0x4b8846;for(var _0x9baf8e=0x0;_0x9baf8e<0x40;_0x9baf8e++)_0x39a959[_0x9baf8e]=_0x2216ef[_0x3f8bb(0x208)](_0x2216ef[_0x3f8bb(0x3f2)](_0x9baf8e+0x1))*0x100000000|0x0;}());var _0x39c675=_0x31c67c[_0x4b8846(0x665)]=_0xf062ee[_0x4b8846(0x26c)]({'_doReset':function(){const _0x3f005f=_0x4b8846;this[_0x3f005f(0x399)]=new _0x4f77eb[(_0x3f005f(0x2ce))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x4b8f2e,_0x16c930){const _0x49e6fd=_0x4b8846;for(var _0x50d74f=0x0;_0x50d74f<0x10;_0x50d74f++){var _0xd8c3c1=_0x16c930+_0x50d74f,_0x37926e=_0x4b8f2e[_0xd8c3c1];_0x4b8f2e[_0xd8c3c1]=(_0x37926e<<0x8|_0x37926e>>>0x18)&0xff00ff|(_0x37926e<<0x18|_0x37926e>>>0x8)&0xff00ff00;}var _0x4a8312=this[_0x49e6fd(0x399)]['words'],_0x228fdf=_0x4b8f2e[_0x16c930+0x0],_0x39c0a8=_0x4b8f2e[_0x16c930+0x1],_0x4e433c=_0x4b8f2e[_0x16c930+0x2],_0x21648e=_0x4b8f2e[_0x16c930+0x3],_0x1b494c=_0x4b8f2e[_0x16c930+0x4],_0x3496c4=_0x4b8f2e[_0x16c930+0x5],_0x5b2cce=_0x4b8f2e[_0x16c930+0x6],_0x10f4fe=_0x4b8f2e[_0x16c930+0x7],_0x494d9b=_0x4b8f2e[_0x16c930+0x8],_0x33ca79=_0x4b8f2e[_0x16c930+0x9],_0x26a63f=_0x4b8f2e[_0x16c930+0xa],_0x4e0f50=_0x4b8f2e[_0x16c930+0xb],_0x455609=_0x4b8f2e[_0x16c930+0xc],_0x36c056=_0x4b8f2e[_0x16c930+0xd],_0x50a336=_0x4b8f2e[_0x16c930+0xe],_0x8c372b=_0x4b8f2e[_0x16c930+0xf],_0x877540=_0x4a8312[0x0],_0x3a08e6=_0x4a8312[0x1],_0xe8195b=_0x4a8312[0x2],_0x2d9633=_0x4a8312[0x3];_0x877540=_0x2c16c5(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x228fdf,0x7,_0x39a959[0x0]),_0x2d9633=_0x2c16c5(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x39c0a8,0xc,_0x39a959[0x1]),_0xe8195b=_0x2c16c5(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x4e433c,0x11,_0x39a959[0x2]),_0x3a08e6=_0x2c16c5(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x21648e,0x16,_0x39a959[0x3]),_0x877540=_0x2c16c5(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x1b494c,0x7,_0x39a959[0x4]),_0x2d9633=_0x2c16c5(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x3496c4,0xc,_0x39a959[0x5]),_0xe8195b=_0x2c16c5(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x5b2cce,0x11,_0x39a959[0x6]),_0x3a08e6=_0x2c16c5(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x10f4fe,0x16,_0x39a959[0x7]),_0x877540=_0x2c16c5(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x494d9b,0x7,_0x39a959[0x8]),_0x2d9633=_0x2c16c5(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x33ca79,0xc,_0x39a959[0x9]),_0xe8195b=_0x2c16c5(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x26a63f,0x11,_0x39a959[0xa]),_0x3a08e6=_0x2c16c5(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x4e0f50,0x16,_0x39a959[0xb]),_0x877540=_0x2c16c5(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x455609,0x7,_0x39a959[0xc]),_0x2d9633=_0x2c16c5(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x36c056,0xc,_0x39a959[0xd]),_0xe8195b=_0x2c16c5(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x50a336,0x11,_0x39a959[0xe]),_0x3a08e6=_0x2c16c5(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x8c372b,0x16,_0x39a959[0xf]),_0x877540=_0x52c329(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x39c0a8,0x5,_0x39a959[0x10]),_0x2d9633=_0x52c329(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x5b2cce,0x9,_0x39a959[0x11]),_0xe8195b=_0x52c329(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x4e0f50,0xe,_0x39a959[0x12]),_0x3a08e6=_0x52c329(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x228fdf,0x14,_0x39a959[0x13]),_0x877540=_0x52c329(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x3496c4,0x5,_0x39a959[0x14]),_0x2d9633=_0x52c329(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x26a63f,0x9,_0x39a959[0x15]),_0xe8195b=_0x52c329(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x8c372b,0xe,_0x39a959[0x16]),_0x3a08e6=_0x52c329(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x1b494c,0x14,_0x39a959[0x17]),_0x877540=_0x52c329(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x33ca79,0x5,_0x39a959[0x18]),_0x2d9633=_0x52c329(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x50a336,0x9,_0x39a959[0x19]),_0xe8195b=_0x52c329(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x21648e,0xe,_0x39a959[0x1a]),_0x3a08e6=_0x52c329(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x494d9b,0x14,_0x39a959[0x1b]),_0x877540=_0x52c329(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x36c056,0x5,_0x39a959[0x1c]),_0x2d9633=_0x52c329(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x4e433c,0x9,_0x39a959[0x1d]),_0xe8195b=_0x52c329(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x10f4fe,0xe,_0x39a959[0x1e]),_0x3a08e6=_0x52c329(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x455609,0x14,_0x39a959[0x1f]),_0x877540=_0x1671ea(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x3496c4,0x4,_0x39a959[0x20]),_0x2d9633=_0x1671ea(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x494d9b,0xb,_0x39a959[0x21]),_0xe8195b=_0x1671ea(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x4e0f50,0x10,_0x39a959[0x22]),_0x3a08e6=_0x1671ea(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x50a336,0x17,_0x39a959[0x23]),_0x877540=_0x1671ea(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x39c0a8,0x4,_0x39a959[0x24]),_0x2d9633=_0x1671ea(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x1b494c,0xb,_0x39a959[0x25]),_0xe8195b=_0x1671ea(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x10f4fe,0x10,_0x39a959[0x26]),_0x3a08e6=_0x1671ea(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x26a63f,0x17,_0x39a959[0x27]),_0x877540=_0x1671ea(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x36c056,0x4,_0x39a959[0x28]),_0x2d9633=_0x1671ea(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x228fdf,0xb,_0x39a959[0x29]),_0xe8195b=_0x1671ea(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x21648e,0x10,_0x39a959[0x2a]),_0x3a08e6=_0x1671ea(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x5b2cce,0x17,_0x39a959[0x2b]),_0x877540=_0x1671ea(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x33ca79,0x4,_0x39a959[0x2c]),_0x2d9633=_0x1671ea(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x455609,0xb,_0x39a959[0x2d]),_0xe8195b=_0x1671ea(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x8c372b,0x10,_0x39a959[0x2e]),_0x3a08e6=_0x1671ea(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x4e433c,0x17,_0x39a959[0x2f]),_0x877540=_0x5dfef1(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x228fdf,0x6,_0x39a959[0x30]),_0x2d9633=_0x5dfef1(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x10f4fe,0xa,_0x39a959[0x31]),_0xe8195b=_0x5dfef1(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x50a336,0xf,_0x39a959[0x32]),_0x3a08e6=_0x5dfef1(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x3496c4,0x15,_0x39a959[0x33]),_0x877540=_0x5dfef1(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x455609,0x6,_0x39a959[0x34]),_0x2d9633=_0x5dfef1(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x21648e,0xa,_0x39a959[0x35]),_0xe8195b=_0x5dfef1(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x26a63f,0xf,_0x39a959[0x36]),_0x3a08e6=_0x5dfef1(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x39c0a8,0x15,_0x39a959[0x37]),_0x877540=_0x5dfef1(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x494d9b,0x6,_0x39a959[0x38]),_0x2d9633=_0x5dfef1(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x8c372b,0xa,_0x39a959[0x39]),_0xe8195b=_0x5dfef1(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x5b2cce,0xf,_0x39a959[0x3a]),_0x3a08e6=_0x5dfef1(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x36c056,0x15,_0x39a959[0x3b]),_0x877540=_0x5dfef1(_0x877540,_0x3a08e6,_0xe8195b,_0x2d9633,_0x1b494c,0x6,_0x39a959[0x3c]),_0x2d9633=_0x5dfef1(_0x2d9633,_0x877540,_0x3a08e6,_0xe8195b,_0x4e0f50,0xa,_0x39a959[0x3d]),_0xe8195b=_0x5dfef1(_0xe8195b,_0x2d9633,_0x877540,_0x3a08e6,_0x4e433c,0xf,_0x39a959[0x3e]),_0x3a08e6=_0x5dfef1(_0x3a08e6,_0xe8195b,_0x2d9633,_0x877540,_0x33ca79,0x15,_0x39a959[0x3f]),_0x4a8312[0x0]=_0x4a8312[0x0]+_0x877540|0x0,_0x4a8312[0x1]=_0x4a8312[0x1]+_0x3a08e6|0x0,_0x4a8312[0x2]=_0x4a8312[0x2]+_0xe8195b|0x0,_0x4a8312[0x3]=_0x4a8312[0x3]+_0x2d9633|0x0;},'_doFinalize':function(){const _0x5e6d4c=_0x4b8846;var _0x2dedd2=this[_0x5e6d4c(0x624)],_0x534120=_0x2dedd2[_0x5e6d4c(0x520)],_0x4eee1e=this[_0x5e6d4c(0x1e6)]*0x8,_0x4e34fe=_0x2dedd2[_0x5e6d4c(0x1d9)]*0x8;_0x534120[_0x4e34fe>>>0x5]|=0x80<<0x18-_0x4e34fe%0x20;var _0x362556=_0x2216ef[_0x5e6d4c(0x275)](_0x4eee1e/0x100000000),_0x23ee1c=_0x4eee1e;_0x534120[(_0x4e34fe+0x40>>>0x9<<0x4)+0xf]=(_0x362556<<0x8|_0x362556>>>0x18)&0xff00ff|(_0x362556<<0x18|_0x362556>>>0x8)&0xff00ff00,_0x534120[(_0x4e34fe+0x40>>>0x9<<0x4)+0xe]=(_0x23ee1c<<0x8|_0x23ee1c>>>0x18)&0xff00ff|(_0x23ee1c<<0x18|_0x23ee1c>>>0x8)&0xff00ff00,_0x2dedd2[_0x5e6d4c(0x1d9)]=(_0x534120[_0x5e6d4c(0x367)]+0x1)*0x4,this[_0x5e6d4c(0x46a)]();for(var _0x1fd88e=this[_0x5e6d4c(0x399)],_0x230d13=_0x1fd88e[_0x5e6d4c(0x520)],_0x5a18ce=0x0;_0x5a18ce<0x4;_0x5a18ce++){var _0x17b715=_0x230d13[_0x5a18ce];_0x230d13[_0x5a18ce]=(_0x17b715<<0x8|_0x17b715>>>0x18)&0xff00ff|(_0x17b715<<0x18|_0x17b715>>>0x8)&0xff00ff00;}return _0x1fd88e;},'clone':function(){const _0xf0113d=_0x4b8846;var _0x532cdb=_0xf062ee['clone'][_0xf0113d(0x5b0)](this);return _0x532cdb[_0xf0113d(0x399)]=this[_0xf0113d(0x399)][_0xf0113d(0x382)](),_0x532cdb;}});function _0x2c16c5(_0x3dd534,_0x47ee24,_0x2b0590,_0x4df596,_0x141d28,_0x32168a,_0x4e8d7e){var _0x2b8934=_0x3dd534+(_0x47ee24&_0x2b0590|~_0x47ee24&_0x4df596)+_0x141d28+_0x4e8d7e;return(_0x2b8934<<_0x32168a|_0x2b8934>>>0x20-_0x32168a)+_0x47ee24;}function _0x52c329(_0x35e003,_0x537cf6,_0x7c5fe7,_0x39b04e,_0xdf515c,_0x136f41,_0x5a19c0){var _0x5a5d66=_0x35e003+(_0x537cf6&_0x39b04e|_0x7c5fe7&~_0x39b04e)+_0xdf515c+_0x5a19c0;return(_0x5a5d66<<_0x136f41|_0x5a5d66>>>0x20-_0x136f41)+_0x537cf6;}function _0x1671ea(_0x1422fb,_0x5857e0,_0x25447d,_0x5023d3,_0x259d6c,_0x14050d,_0x21fee0){var _0x39bdd6=_0x1422fb+(_0x5857e0^_0x25447d^_0x5023d3)+_0x259d6c+_0x21fee0;return(_0x39bdd6<<_0x14050d|_0x39bdd6>>>0x20-_0x14050d)+_0x5857e0;}function _0x5dfef1(_0x31230c,_0x35da5b,_0x532eb1,_0x2e58a9,_0x3eecf0,_0x335f14,_0x52d756){var _0x33a6e4=_0x31230c+(_0x532eb1^(_0x35da5b|~_0x2e58a9))+_0x3eecf0+_0x52d756;return(_0x33a6e4<<_0x335f14|_0x33a6e4>>>0x20-_0x335f14)+_0x35da5b;}_0x5bf313[_0x4b8846(0x665)]=_0xf062ee[_0x4b8846(0x258)](_0x39c675),_0x5bf313[_0x4b8846(0x403)]=_0xf062ee[_0x4b8846(0x274)](_0x39c675);}(Math),_0x443cbc[_0x183754(0x665)];}));}(lt)),lt[_0x5b99c1(0x236)];}var ht={'exports':{}},_t={'exports':{}},Gt;function ir(){const _0x336733=_0x17671e;return Gt||(Gt=0x1,function(_0x2ea6ef,_0x27e300){(function(_0x2270c1,_0x1aabe6){const _0x12dd57=_0x35f6;_0x2ea6ef[_0x12dd57(0x236)]=_0x1aabe6(ae());}(J,function(_0x4a2307){const _0xef382d=_0x35f6;return(function(){const _0x393906=_0x35f6;var _0xd23c0c=_0x4a2307,_0x144d31=_0xd23c0c[_0x393906(0x47c)],_0x3176bc=_0x144d31['WordArray'],_0x3c4d99=_0x144d31['Hasher'],_0x28e6b3=_0xd23c0c[_0x393906(0x49a)],_0x3b6f50=[],_0x4f646c=_0x28e6b3['SHA1']=_0x3c4d99[_0x393906(0x26c)]({'_doReset':function(){const _0x5a9e7d=_0x393906;this[_0x5a9e7d(0x399)]=new _0x3176bc[(_0x5a9e7d(0x2ce))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x716320,_0x1b7026){const _0x1e7209=_0x393906;for(var _0x1618b9=this[_0x1e7209(0x399)][_0x1e7209(0x520)],_0x3e4204=_0x1618b9[0x0],_0x59e81c=_0x1618b9[0x1],_0x570808=_0x1618b9[0x2],_0x6d22b2=_0x1618b9[0x3],_0x511b20=_0x1618b9[0x4],_0x1db8be=0x0;_0x1db8be<0x50;_0x1db8be++){if(_0x1db8be<0x10)_0x3b6f50[_0x1db8be]=_0x716320[_0x1b7026+_0x1db8be]|0x0;else{var _0x1faf5f=_0x3b6f50[_0x1db8be-0x3]^_0x3b6f50[_0x1db8be-0x8]^_0x3b6f50[_0x1db8be-0xe]^_0x3b6f50[_0x1db8be-0x10];_0x3b6f50[_0x1db8be]=_0x1faf5f<<0x1|_0x1faf5f>>>0x1f;}var _0x597a5a=(_0x3e4204<<0x5|_0x3e4204>>>0x1b)+_0x511b20+_0x3b6f50[_0x1db8be];_0x1db8be<0x14?_0x597a5a+=(_0x59e81c&_0x570808|~_0x59e81c&_0x6d22b2)+0x5a827999:_0x1db8be<0x28?_0x597a5a+=(_0x59e81c^_0x570808^_0x6d22b2)+0x6ed9eba1:_0x1db8be<0x3c?_0x597a5a+=(_0x59e81c&_0x570808|_0x59e81c&_0x6d22b2|_0x570808&_0x6d22b2)-0x70e44324:_0x597a5a+=(_0x59e81c^_0x570808^_0x6d22b2)-0x359d3e2a,_0x511b20=_0x6d22b2,_0x6d22b2=_0x570808,_0x570808=_0x59e81c<<0x1e|_0x59e81c>>>0x2,_0x59e81c=_0x3e4204,_0x3e4204=_0x597a5a;}_0x1618b9[0x0]=_0x1618b9[0x0]+_0x3e4204|0x0,_0x1618b9[0x1]=_0x1618b9[0x1]+_0x59e81c|0x0,_0x1618b9[0x2]=_0x1618b9[0x2]+_0x570808|0x0,_0x1618b9[0x3]=_0x1618b9[0x3]+_0x6d22b2|0x0,_0x1618b9[0x4]=_0x1618b9[0x4]+_0x511b20|0x0;},'_doFinalize':function(){const _0x135179=_0x393906;var _0x48932b=this[_0x135179(0x624)],_0x365ec9=_0x48932b[_0x135179(0x520)],_0x2c5db9=this[_0x135179(0x1e6)]*0x8,_0x474221=_0x48932b[_0x135179(0x1d9)]*0x8;return _0x365ec9[_0x474221>>>0x5]|=0x80<<0x18-_0x474221%0x20,_0x365ec9[(_0x474221+0x40>>>0x9<<0x4)+0xe]=Math[_0x135179(0x275)](_0x2c5db9/0x100000000),_0x365ec9[(_0x474221+0x40>>>0x9<<0x4)+0xf]=_0x2c5db9,_0x48932b['sigBytes']=_0x365ec9[_0x135179(0x367)]*0x4,this[_0x135179(0x46a)](),this[_0x135179(0x399)];},'clone':function(){const _0x46c6f9=_0x393906;var _0x4cdd47=_0x3c4d99['clone'][_0x46c6f9(0x5b0)](this);return _0x4cdd47[_0x46c6f9(0x399)]=this[_0x46c6f9(0x399)]['clone'](),_0x4cdd47;}});_0xd23c0c['SHA1']=_0x3c4d99[_0x393906(0x258)](_0x4f646c),_0xd23c0c['HmacSHA1']=_0x3c4d99[_0x393906(0x274)](_0x4f646c);}()),_0x4a2307[_0xef382d(0x362)];}));}(_t)),_t[_0x336733(0x236)];}var ut={'exports':{}},Yt;function sr(){const _0x5ac57d=_0x17671e;return Yt||(Yt=0x1,function(_0x1a5bf1,_0x3ba58b){(function(_0x3e3d44,_0x2cbeb4){const _0x5c9c4a=_0x35f6;_0x1a5bf1[_0x5c9c4a(0x236)]=_0x2cbeb4(ae());}(J,function(_0xf0f47){(function(){const _0x62025a=_0x35f6;var _0x9c73c5=_0xf0f47,_0x5c2fcf=_0x9c73c5[_0x62025a(0x47c)],_0x2d2b41=_0x5c2fcf[_0x62025a(0x32a)],_0x5d7a68=_0x9c73c5['enc'],_0x1b0086=_0x5d7a68['Utf8'],_0x37d42d=_0x9c73c5[_0x62025a(0x49a)];_0x37d42d['HMAC']=_0x2d2b41['extend']({'init':function(_0x518ad5,_0x17244e){const _0x4a90c8=_0x62025a;_0x518ad5=this[_0x4a90c8(0x220)]=new _0x518ad5['init'](),typeof _0x17244e==_0x4a90c8(0x3c3)&&(_0x17244e=_0x1b0086[_0x4a90c8(0x634)](_0x17244e));var _0x101d94=_0x518ad5[_0x4a90c8(0x4a8)],_0x269617=_0x101d94*0x4;_0x17244e['sigBytes']>_0x269617&&(_0x17244e=_0x518ad5[_0x4a90c8(0x446)](_0x17244e)),_0x17244e[_0x4a90c8(0x40c)]();for(var _0x53e52c=this[_0x4a90c8(0x24b)]=_0x17244e['clone'](),_0x3e17a1=this[_0x4a90c8(0x408)]=_0x17244e[_0x4a90c8(0x382)](),_0xcbeef=_0x53e52c[_0x4a90c8(0x520)],_0x1b6c5a=_0x3e17a1[_0x4a90c8(0x520)],_0x3e9a8e=0x0;_0x3e9a8e<_0x101d94;_0x3e9a8e++)_0xcbeef[_0x3e9a8e]^=0x5c5c5c5c,_0x1b6c5a[_0x3e9a8e]^=0x36363636;_0x53e52c[_0x4a90c8(0x1d9)]=_0x3e17a1[_0x4a90c8(0x1d9)]=_0x269617,this[_0x4a90c8(0x529)]();},'reset':function(){const _0x493bab=_0x62025a;var _0x179f34=this[_0x493bab(0x220)];_0x179f34['reset'](),_0x179f34[_0x493bab(0x283)](this['_iKey']);},'update':function(_0x44bce3){const _0x35f41e=_0x62025a;return this[_0x35f41e(0x220)][_0x35f41e(0x283)](_0x44bce3),this;},'finalize':function(_0xf0a78d){const _0x39dbf2=_0x62025a;var _0x493883=this['_hasher'],_0x4e77b5=_0x493883[_0x39dbf2(0x446)](_0xf0a78d);_0x493883['reset']();var _0x9745c0=_0x493883['finalize'](this[_0x39dbf2(0x24b)][_0x39dbf2(0x382)]()[_0x39dbf2(0x59e)](_0x4e77b5));return _0x9745c0;}});}());}));}(ut)),ut[_0x5ac57d(0x236)];}var Kt;function Rn(){const _0x530351=_0x17671e;return Kt||(Kt=0x1,function(_0x5b895c,_0x6b535b){(function(_0x378a1e,_0x5021dc,_0x3e9ab6){const _0x428ea0=_0x35f6;_0x5b895c[_0x428ea0(0x236)]=_0x5021dc(ae(),ir(),sr());}(J,function(_0x5267cd){return(function(){const _0x4a2731=_0x35f6;var _0x3ba9fa=_0x5267cd,_0x5eeac4=_0x3ba9fa[_0x4a2731(0x47c)],_0x10e167=_0x5eeac4['Base'],_0x2bb98e=_0x5eeac4[_0x4a2731(0x323)],_0x19f4c5=_0x3ba9fa[_0x4a2731(0x49a)],_0x31e076=_0x19f4c5[_0x4a2731(0x665)],_0x565bfe=_0x19f4c5[_0x4a2731(0x5c3)]=_0x10e167[_0x4a2731(0x26c)]({'cfg':_0x10e167['extend']({'keySize':0x80/0x20,'hasher':_0x31e076,'iterations':0x1}),'init':function(_0x3a023e){const _0x2d47d1=_0x4a2731;this['cfg']=this[_0x2d47d1(0x442)][_0x2d47d1(0x26c)](_0x3a023e);},'compute':function(_0xe4c033,_0x4f88a4){const _0x5447e8=_0x4a2731;for(var _0x6e8e62,_0x4cc1cf=this[_0x5447e8(0x442)],_0x37d980=_0x4cc1cf['hasher']['create'](),_0x313fcb=_0x2bb98e[_0x5447e8(0x555)](),_0x5e7f60=_0x313fcb[_0x5447e8(0x520)],_0x14bbb1=_0x4cc1cf[_0x5447e8(0x351)],_0x2af595=_0x4cc1cf[_0x5447e8(0x282)];_0x5e7f60['length']<_0x14bbb1;){_0x6e8e62&&_0x37d980['update'](_0x6e8e62),_0x6e8e62=_0x37d980[_0x5447e8(0x283)](_0xe4c033)['finalize'](_0x4f88a4),_0x37d980[_0x5447e8(0x529)]();for(var _0x2b9348=0x1;_0x2b9348<_0x2af595;_0x2b9348++)_0x6e8e62=_0x37d980[_0x5447e8(0x446)](_0x6e8e62),_0x37d980['reset']();_0x313fcb[_0x5447e8(0x59e)](_0x6e8e62);}return _0x313fcb['sigBytes']=_0x14bbb1*0x4,_0x313fcb;}});_0x3ba9fa[_0x4a2731(0x5c3)]=function(_0x386ac6,_0xfe5f91,_0x3634a1){const _0xa0e437=_0x4a2731;return _0x565bfe[_0xa0e437(0x555)](_0x3634a1)['compute'](_0x386ac6,_0xfe5f91);};}()),_0x5267cd['EvpKDF'];}));}(ht)),ht[_0x530351(0x236)];}var dt={'exports':{}},qt;function yn(){return qt||(qt=0x1,function(_0x283395,_0xcc0039){(function(_0x14fe21,_0x37b352,_0x17d7e7){const _0x38d446=_0x35f6;_0x283395[_0x38d446(0x236)]=_0x37b352(ae(),Rn());}(J,function(_0x306789){const _0x15cec4=_0x35f6;_0x306789[_0x15cec4(0x47c)]['Cipher']||function(_0x2a88b8){const _0xd128e1=_0x15cec4;var _0x21b405=_0x306789,_0x3947f0=_0x21b405['lib'],_0x118baa=_0x3947f0[_0xd128e1(0x32a)],_0x20f016=_0x3947f0['WordArray'],_0xb8b477=_0x3947f0[_0xd128e1(0x301)],_0x1c9f67=_0x21b405[_0xd128e1(0x5fb)];_0x1c9f67[_0xd128e1(0x340)];var _0xeda338=_0x1c9f67[_0xd128e1(0x32e)],_0x1b081c=_0x21b405['algo'],_0x47a84d=_0x1b081c[_0xd128e1(0x5c3)],_0x1037a0=_0x3947f0['Cipher']=_0xb8b477[_0xd128e1(0x26c)]({'cfg':_0x118baa[_0xd128e1(0x26c)](),'createEncryptor':function(_0x5b1bc5,_0x2f7562){return this['create'](this['_ENC_XFORM_MODE'],_0x5b1bc5,_0x2f7562);},'createDecryptor':function(_0x343fef,_0x56da0a){const _0xe7c5c6=_0xd128e1;return this['create'](this[_0xe7c5c6(0x4cc)],_0x343fef,_0x56da0a);},'init':function(_0x26ce6b,_0x3711f8,_0x553cf6){const _0x46a007=_0xd128e1;this[_0x46a007(0x442)]=this[_0x46a007(0x442)][_0x46a007(0x26c)](_0x553cf6),this[_0x46a007(0x2a0)]=_0x26ce6b,this[_0x46a007(0x405)]=_0x3711f8,this[_0x46a007(0x529)]();},'reset':function(){const _0x138dca=_0xd128e1;_0xb8b477['reset']['call'](this),this[_0x138dca(0x55c)]();},'process':function(_0x127144){const _0x1d917a=_0xd128e1;return this[_0x1d917a(0x25e)](_0x127144),this['_process']();},'finalize':function(_0x1b9b21){const _0x792d35=_0xd128e1;_0x1b9b21&&this[_0x792d35(0x25e)](_0x1b9b21);var _0x2900d7=this[_0x792d35(0x623)]();return _0x2900d7;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x1f5cfe(_0x31f62e){const _0x2acad2=_0x35f6;return typeof _0x31f62e==_0x2acad2(0x3c3)?_0x5cdbd0:_0x1ca10e;}return function(_0x3a554e){return{'encrypt':function(_0x6898b0,_0x30855f,_0x3da700){const _0xf2d565=_0x35f6;return _0x1f5cfe(_0x30855f)[_0xf2d565(0x259)](_0x3a554e,_0x6898b0,_0x30855f,_0x3da700);},'decrypt':function(_0x3d77d2,_0x409549,_0x4f0d78){const _0x5d18b6=_0x35f6;return _0x1f5cfe(_0x409549)[_0x5d18b6(0x24d)](_0x3a554e,_0x3d77d2,_0x409549,_0x4f0d78);}};};}())});_0x3947f0[_0xd128e1(0x2e1)]=_0x1037a0[_0xd128e1(0x26c)]({'_doFinalize':function(){const _0x12ff5a=_0xd128e1;var _0x1cc513=this[_0x12ff5a(0x46a)](!0x0);return _0x1cc513;},'blockSize':0x1});var _0x504b14=_0x21b405[_0xd128e1(0x454)]={},_0x5dfd6a=_0x3947f0[_0xd128e1(0x21b)]=_0x118baa[_0xd128e1(0x26c)]({'createEncryptor':function(_0x1e749e,_0x50eb7c){const _0x956c31=_0xd128e1;return this[_0x956c31(0x2e9)][_0x956c31(0x555)](_0x1e749e,_0x50eb7c);},'createDecryptor':function(_0xacb291,_0x4fbaf9){const _0x553db0=_0xd128e1;return this[_0x553db0(0x415)]['create'](_0xacb291,_0x4fbaf9);},'init':function(_0x561630,_0x2ea288){const _0x1a72df=_0xd128e1;this[_0x1a72df(0x5de)]=_0x561630,this[_0x1a72df(0x53a)]=_0x2ea288;}}),_0x41ecfd=_0x504b14['CBC']=(function(){const _0x16fd01=_0xd128e1;var _0x4c6d29=_0x5dfd6a[_0x16fd01(0x26c)]();_0x4c6d29[_0x16fd01(0x2e9)]=_0x4c6d29[_0x16fd01(0x26c)]({'processBlock':function(_0x14d2d7,_0x42dd7e){const _0x1ab05b=_0x16fd01;var _0x350c57=this[_0x1ab05b(0x5de)],_0x4d3770=_0x350c57['blockSize'];_0x34c415['call'](this,_0x14d2d7,_0x42dd7e,_0x4d3770),_0x350c57[_0x1ab05b(0x2bc)](_0x14d2d7,_0x42dd7e),this[_0x1ab05b(0x2b3)]=_0x14d2d7[_0x1ab05b(0x270)](_0x42dd7e,_0x42dd7e+_0x4d3770);}}),_0x4c6d29[_0x16fd01(0x415)]=_0x4c6d29[_0x16fd01(0x26c)]({'processBlock':function(_0x46347b,_0x48d642){const _0x5a4a12=_0x16fd01;var _0x1acef5=this[_0x5a4a12(0x5de)],_0x468453=_0x1acef5[_0x5a4a12(0x4a8)],_0x439bfb=_0x46347b['slice'](_0x48d642,_0x48d642+_0x468453);_0x1acef5[_0x5a4a12(0x2ab)](_0x46347b,_0x48d642),_0x34c415['call'](this,_0x46347b,_0x48d642,_0x468453),this[_0x5a4a12(0x2b3)]=_0x439bfb;}});function _0x34c415(_0xe5eff6,_0x42a838,_0x47d3a9){const _0x4f7e22=_0x16fd01;var _0x5572d7,_0x34e741=this[_0x4f7e22(0x53a)];_0x34e741?(_0x5572d7=_0x34e741,this['_iv']=_0x2a88b8):_0x5572d7=this[_0x4f7e22(0x2b3)];for(var _0x215548=0x0;_0x215548<_0x47d3a9;_0x215548++)_0xe5eff6[_0x42a838+_0x215548]^=_0x5572d7[_0x215548];}return _0x4c6d29;}()),_0x1c406a=_0x21b405[_0xd128e1(0x5ec)]={},_0x4bb6ba=_0x1c406a['Pkcs7']={'pad':function(_0x140410,_0x10e961){const _0x3a6a84=_0xd128e1;for(var _0x4d7dbb=_0x10e961*0x4,_0x4ebf40=_0x4d7dbb-_0x140410['sigBytes']%_0x4d7dbb,_0x2ab150=_0x4ebf40<<0x18|_0x4ebf40<<0x10|_0x4ebf40<<0x8|_0x4ebf40,_0x4ce874=[],_0x4747b4=0x0;_0x4747b4<_0x4ebf40;_0x4747b4+=0x4)_0x4ce874[_0x3a6a84(0x263)](_0x2ab150);var _0x44e435=_0x20f016['create'](_0x4ce874,_0x4ebf40);_0x140410['concat'](_0x44e435);},'unpad':function(_0x5dbd50){const _0x5a67c5=_0xd128e1;var _0x53dc34=_0x5dbd50[_0x5a67c5(0x520)][_0x5dbd50[_0x5a67c5(0x1d9)]-0x1>>>0x2]&0xff;_0x5dbd50[_0x5a67c5(0x1d9)]-=_0x53dc34;}};_0x3947f0[_0xd128e1(0x5cd)]=_0x1037a0['extend']({'cfg':_0x1037a0['cfg'][_0xd128e1(0x26c)]({'mode':_0x41ecfd,'padding':_0x4bb6ba}),'reset':function(){const _0x4ddbc2=_0xd128e1;var _0x16f3c3;_0x1037a0['reset'][_0x4ddbc2(0x5b0)](this);var _0x20b6b2=this[_0x4ddbc2(0x442)],_0xc4f178=_0x20b6b2['iv'],_0x2cbe58=_0x20b6b2[_0x4ddbc2(0x454)];this['_xformMode']==this[_0x4ddbc2(0x2e3)]?_0x16f3c3=_0x2cbe58[_0x4ddbc2(0x4c7)]:(_0x16f3c3=_0x2cbe58[_0x4ddbc2(0x3f8)],this[_0x4ddbc2(0x5cf)]=0x1),this['_mode']&&this[_0x4ddbc2(0x4f7)][_0x4ddbc2(0x4bc)]==_0x16f3c3?this[_0x4ddbc2(0x4f7)][_0x4ddbc2(0x2ce)](this,_0xc4f178&&_0xc4f178[_0x4ddbc2(0x520)]):(this['_mode']=_0x16f3c3['call'](_0x2cbe58,this,_0xc4f178&&_0xc4f178[_0x4ddbc2(0x520)]),this[_0x4ddbc2(0x4f7)][_0x4ddbc2(0x4bc)]=_0x16f3c3);},'_doProcessBlock':function(_0x216d01,_0x3bad65){const _0x128f52=_0xd128e1;this[_0x128f52(0x4f7)][_0x128f52(0x494)](_0x216d01,_0x3bad65);},'_doFinalize':function(){const _0x4736a7=_0xd128e1;var _0x51a4e1,_0x23a00f=this[_0x4736a7(0x442)][_0x4736a7(0x31b)];return this[_0x4736a7(0x2a0)]==this['_ENC_XFORM_MODE']?(_0x23a00f[_0x4736a7(0x5ec)](this[_0x4736a7(0x624)],this[_0x4736a7(0x4a8)]),_0x51a4e1=this[_0x4736a7(0x46a)](!0x0)):(_0x51a4e1=this[_0x4736a7(0x46a)](!0x0),_0x23a00f[_0x4736a7(0x27d)](_0x51a4e1)),_0x51a4e1;},'blockSize':0x80/0x20});var _0x208e8e=_0x3947f0[_0xd128e1(0x496)]=_0x118baa[_0xd128e1(0x26c)]({'init':function(_0x11a8a3){const _0x440785=_0xd128e1;this[_0x440785(0x4aa)](_0x11a8a3);},'toString':function(_0x30ab4f){const _0x37d848=_0xd128e1;return(_0x30ab4f||this[_0x37d848(0x285)])[_0x37d848(0x65e)](this);}}),_0x214466=_0x21b405['format']={},_0x37fa4=_0x214466[_0xd128e1(0x543)]={'stringify':function(_0x3d9140){const _0x140db4=_0xd128e1;var _0x16ce56,_0x3b2de0=_0x3d9140['ciphertext'],_0x2f42c4=_0x3d9140[_0x140db4(0x411)];return _0x2f42c4?_0x16ce56=_0x20f016[_0x140db4(0x555)]([0x53616c74,0x65645f5f])[_0x140db4(0x59e)](_0x2f42c4)['concat'](_0x3b2de0):_0x16ce56=_0x3b2de0,_0x16ce56[_0x140db4(0x401)](_0xeda338);},'parse':function(_0x4c9978){const _0xc27143=_0xd128e1;var _0x46023c,_0x1a7c6b=_0xeda338[_0xc27143(0x634)](_0x4c9978),_0xa595ac=_0x1a7c6b[_0xc27143(0x520)];return _0xa595ac[0x0]==0x53616c74&&_0xa595ac[0x1]==0x65645f5f&&(_0x46023c=_0x20f016[_0xc27143(0x555)](_0xa595ac[_0xc27143(0x270)](0x2,0x4)),_0xa595ac[_0xc27143(0x22e)](0x0,0x4),_0x1a7c6b['sigBytes']-=0x10),_0x208e8e[_0xc27143(0x555)]({'ciphertext':_0x1a7c6b,'salt':_0x46023c});}},_0x1ca10e=_0x3947f0[_0xd128e1(0x50e)]=_0x118baa[_0xd128e1(0x26c)]({'cfg':_0x118baa[_0xd128e1(0x26c)]({'format':_0x37fa4}),'encrypt':function(_0x40d7b4,_0x2004d4,_0x2ab654,_0x54e64f){const _0x31d8e8=_0xd128e1;_0x54e64f=this[_0x31d8e8(0x442)][_0x31d8e8(0x26c)](_0x54e64f);var _0x3fcf2d=_0x40d7b4[_0x31d8e8(0x4c7)](_0x2ab654,_0x54e64f),_0x501ada=_0x3fcf2d[_0x31d8e8(0x446)](_0x2004d4),_0x1e0445=_0x3fcf2d['cfg'];return _0x208e8e['create']({'ciphertext':_0x501ada,'key':_0x2ab654,'iv':_0x1e0445['iv'],'algorithm':_0x40d7b4,'mode':_0x1e0445[_0x31d8e8(0x454)],'padding':_0x1e0445[_0x31d8e8(0x31b)],'blockSize':_0x40d7b4[_0x31d8e8(0x4a8)],'formatter':_0x54e64f['format']});},'decrypt':function(_0x42fe73,_0x3640d2,_0x3d568d,_0x404ec9){const _0x182541=_0xd128e1;_0x404ec9=this['cfg'][_0x182541(0x26c)](_0x404ec9),_0x3640d2=this['_parse'](_0x3640d2,_0x404ec9[_0x182541(0x3fc)]);var _0x1fc163=_0x42fe73[_0x182541(0x3f8)](_0x3d568d,_0x404ec9)[_0x182541(0x446)](_0x3640d2[_0x182541(0x30e)]);return _0x1fc163;},'_parse':function(_0x4fc49c,_0x15114d){return typeof _0x4fc49c=='string'?_0x15114d['parse'](_0x4fc49c,this):_0x4fc49c;}}),_0x20c1de=_0x21b405[_0xd128e1(0x588)]={},_0x459f18=_0x20c1de[_0xd128e1(0x543)]={'execute':function(_0x456ab2,_0x55515f,_0x4eecd1,_0x106f64,_0x5d0fa8){const _0x50392a=_0xd128e1;if(_0x106f64||(_0x106f64=_0x20f016[_0x50392a(0x31d)](0x40/0x8)),_0x5d0fa8)var _0x555c5f=_0x47a84d['create']({'keySize':_0x55515f+_0x4eecd1,'hasher':_0x5d0fa8})[_0x50392a(0x501)](_0x456ab2,_0x106f64);else var _0x555c5f=_0x47a84d['create']({'keySize':_0x55515f+_0x4eecd1})[_0x50392a(0x501)](_0x456ab2,_0x106f64);var _0x3c189a=_0x20f016[_0x50392a(0x555)](_0x555c5f['words']['slice'](_0x55515f),_0x4eecd1*0x4);return _0x555c5f[_0x50392a(0x1d9)]=_0x55515f*0x4,_0x208e8e[_0x50392a(0x555)]({'key':_0x555c5f,'iv':_0x3c189a,'salt':_0x106f64});}},_0x5cdbd0=_0x3947f0[_0xd128e1(0x56b)]=_0x1ca10e[_0xd128e1(0x26c)]({'cfg':_0x1ca10e[_0xd128e1(0x442)]['extend']({'kdf':_0x459f18}),'encrypt':function(_0x358a32,_0x4a4a3f,_0x33dfbf,_0x16a0f0){const _0x5e06dd=_0xd128e1;_0x16a0f0=this[_0x5e06dd(0x442)][_0x5e06dd(0x26c)](_0x16a0f0);var _0x5ac562=_0x16a0f0['kdf'][_0x5e06dd(0x538)](_0x33dfbf,_0x358a32['keySize'],_0x358a32['ivSize'],_0x16a0f0[_0x5e06dd(0x411)],_0x16a0f0[_0x5e06dd(0x28a)]);_0x16a0f0['iv']=_0x5ac562['iv'];var _0x2b0054=_0x1ca10e[_0x5e06dd(0x259)][_0x5e06dd(0x5b0)](this,_0x358a32,_0x4a4a3f,_0x5ac562['key'],_0x16a0f0);return _0x2b0054['mixIn'](_0x5ac562),_0x2b0054;},'decrypt':function(_0x58b770,_0xeefc04,_0x15c50c,_0x528567){const _0x103888=_0xd128e1;_0x528567=this['cfg'][_0x103888(0x26c)](_0x528567),_0xeefc04=this[_0x103888(0x264)](_0xeefc04,_0x528567[_0x103888(0x3fc)]);var _0x550562=_0x528567[_0x103888(0x588)][_0x103888(0x538)](_0x15c50c,_0x58b770['keySize'],_0x58b770['ivSize'],_0xeefc04['salt'],_0x528567[_0x103888(0x28a)]);_0x528567['iv']=_0x550562['iv'];var _0x1d530b=_0x1ca10e['decrypt'][_0x103888(0x5b0)](this,_0x58b770,_0xeefc04,_0x550562[_0x103888(0x2ff)],_0x528567);return _0x1d530b;}});}();}));}(dt)),dt['exports'];}(function(_0x319f3e,_0x42222b){(function(_0x24f849,_0x5a12db,_0x13f8ed){const _0x1b8a4a=_0x35f6;_0x319f3e[_0x1b8a4a(0x236)]=_0x5a12db(ae(),Tn(),nr(),Rn(),yn());}(J,function(_0x12160e){const _0x249f55=_0x35f6;return(function(){const _0x428b16=_0x35f6;var _0x300222=_0x12160e,_0x153c04=_0x300222['lib'],_0x5b260b=_0x153c04[_0x428b16(0x5cd)],_0x11dc39=_0x300222[_0x428b16(0x49a)],_0x3b803a=[],_0x37a8f3=[],_0x256aa5=[],_0x3948b5=[],_0x2a134b=[],_0x1770d2=[],_0x4bb5db=[],_0x27f4b1=[],_0x3d109c=[],_0x345842=[];(function(){for(var _0xb06594=[],_0x2463d5=0x0;_0x2463d5<0x100;_0x2463d5++)_0x2463d5<0x80?_0xb06594[_0x2463d5]=_0x2463d5<<0x1:_0xb06594[_0x2463d5]=_0x2463d5<<0x1^0x11b;for(var _0x54ea99=0x0,_0x93afc5=0x0,_0x2463d5=0x0;_0x2463d5<0x100;_0x2463d5++){var _0x51e780=_0x93afc5^_0x93afc5<<0x1^_0x93afc5<<0x2^_0x93afc5<<0x3^_0x93afc5<<0x4;_0x51e780=_0x51e780>>>0x8^_0x51e780&0xff^0x63,_0x3b803a[_0x54ea99]=_0x51e780,_0x37a8f3[_0x51e780]=_0x54ea99;var _0x43561f=_0xb06594[_0x54ea99],_0x4a3bdf=_0xb06594[_0x43561f],_0x197429=_0xb06594[_0x4a3bdf],_0x36dabe=_0xb06594[_0x51e780]*0x101^_0x51e780*0x1010100;_0x256aa5[_0x54ea99]=_0x36dabe<<0x18|_0x36dabe>>>0x8,_0x3948b5[_0x54ea99]=_0x36dabe<<0x10|_0x36dabe>>>0x10,_0x2a134b[_0x54ea99]=_0x36dabe<<0x8|_0x36dabe>>>0x18,_0x1770d2[_0x54ea99]=_0x36dabe;var _0x36dabe=_0x197429*0x1010101^_0x4a3bdf*0x10001^_0x43561f*0x101^_0x54ea99*0x1010100;_0x4bb5db[_0x51e780]=_0x36dabe<<0x18|_0x36dabe>>>0x8,_0x27f4b1[_0x51e780]=_0x36dabe<<0x10|_0x36dabe>>>0x10,_0x3d109c[_0x51e780]=_0x36dabe<<0x8|_0x36dabe>>>0x18,_0x345842[_0x51e780]=_0x36dabe,_0x54ea99?(_0x54ea99=_0x43561f^_0xb06594[_0xb06594[_0xb06594[_0x197429^_0x43561f]]],_0x93afc5^=_0xb06594[_0xb06594[_0x93afc5]]):_0x54ea99=_0x93afc5=0x1;}}());var _0x563feb=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0xbe4164=_0x11dc39['AES']=_0x5b260b[_0x428b16(0x26c)]({'_doReset':function(){const _0xc2249f=_0x428b16;var _0x458f76;if(!(this[_0xc2249f(0x4ae)]&&this[_0xc2249f(0x440)]===this[_0xc2249f(0x405)])){for(var _0x116f2b=this[_0xc2249f(0x440)]=this[_0xc2249f(0x405)],_0x9ec5db=_0x116f2b[_0xc2249f(0x520)],_0x1f89b2=_0x116f2b[_0xc2249f(0x1d9)]/0x4,_0x53b18d=this[_0xc2249f(0x4ae)]=_0x1f89b2+0x6,_0x40f553=(_0x53b18d+0x1)*0x4,_0x3ee8ba=this[_0xc2249f(0x5d5)]=[],_0x9aa6a1=0x0;_0x9aa6a1<_0x40f553;_0x9aa6a1++)_0x9aa6a1<_0x1f89b2?_0x3ee8ba[_0x9aa6a1]=_0x9ec5db[_0x9aa6a1]:(_0x458f76=_0x3ee8ba[_0x9aa6a1-0x1],_0x9aa6a1%_0x1f89b2?_0x1f89b2>0x6&&_0x9aa6a1%_0x1f89b2==0x4&&(_0x458f76=_0x3b803a[_0x458f76>>>0x18]<<0x18|_0x3b803a[_0x458f76>>>0x10&0xff]<<0x10|_0x3b803a[_0x458f76>>>0x8&0xff]<<0x8|_0x3b803a[_0x458f76&0xff]):(_0x458f76=_0x458f76<<0x8|_0x458f76>>>0x18,_0x458f76=_0x3b803a[_0x458f76>>>0x18]<<0x18|_0x3b803a[_0x458f76>>>0x10&0xff]<<0x10|_0x3b803a[_0x458f76>>>0x8&0xff]<<0x8|_0x3b803a[_0x458f76&0xff],_0x458f76^=_0x563feb[_0x9aa6a1/_0x1f89b2|0x0]<<0x18),_0x3ee8ba[_0x9aa6a1]=_0x3ee8ba[_0x9aa6a1-_0x1f89b2]^_0x458f76);for(var _0x409961=this[_0xc2249f(0x310)]=[],_0x35bc5f=0x0;_0x35bc5f<_0x40f553;_0x35bc5f++){var _0x9aa6a1=_0x40f553-_0x35bc5f;if(_0x35bc5f%0x4)var _0x458f76=_0x3ee8ba[_0x9aa6a1];else var _0x458f76=_0x3ee8ba[_0x9aa6a1-0x4];_0x35bc5f<0x4||_0x9aa6a1<=0x4?_0x409961[_0x35bc5f]=_0x458f76:_0x409961[_0x35bc5f]=_0x4bb5db[_0x3b803a[_0x458f76>>>0x18]]^_0x27f4b1[_0x3b803a[_0x458f76>>>0x10&0xff]]^_0x3d109c[_0x3b803a[_0x458f76>>>0x8&0xff]]^_0x345842[_0x3b803a[_0x458f76&0xff]];}}},'encryptBlock':function(_0x26656d,_0x55fd7e){const _0x30c3f3=_0x428b16;this[_0x30c3f3(0x33d)](_0x26656d,_0x55fd7e,this['_keySchedule'],_0x256aa5,_0x3948b5,_0x2a134b,_0x1770d2,_0x3b803a);},'decryptBlock':function(_0x53a16e,_0x23e560){const _0xfcbbef=_0x428b16;var _0xdb1835=_0x53a16e[_0x23e560+0x1];_0x53a16e[_0x23e560+0x1]=_0x53a16e[_0x23e560+0x3],_0x53a16e[_0x23e560+0x3]=_0xdb1835,this[_0xfcbbef(0x33d)](_0x53a16e,_0x23e560,this[_0xfcbbef(0x310)],_0x4bb5db,_0x27f4b1,_0x3d109c,_0x345842,_0x37a8f3);var _0xdb1835=_0x53a16e[_0x23e560+0x1];_0x53a16e[_0x23e560+0x1]=_0x53a16e[_0x23e560+0x3],_0x53a16e[_0x23e560+0x3]=_0xdb1835;},'_doCryptBlock':function(_0x5a091c,_0x183062,_0x8b958a,_0x22fd43,_0x121206,_0x34876f,_0x5ab347,_0x298b26){const _0x2fe472=_0x428b16;for(var _0x4add1f=this[_0x2fe472(0x4ae)],_0x3c8c56=_0x5a091c[_0x183062]^_0x8b958a[0x0],_0x1f7e63=_0x5a091c[_0x183062+0x1]^_0x8b958a[0x1],_0x4d4d71=_0x5a091c[_0x183062+0x2]^_0x8b958a[0x2],_0x430d08=_0x5a091c[_0x183062+0x3]^_0x8b958a[0x3],_0x3cb1d9=0x4,_0x1d88ac=0x1;_0x1d88ac<_0x4add1f;_0x1d88ac++){var _0xb357a9=_0x22fd43[_0x3c8c56>>>0x18]^_0x121206[_0x1f7e63>>>0x10&0xff]^_0x34876f[_0x4d4d71>>>0x8&0xff]^_0x5ab347[_0x430d08&0xff]^_0x8b958a[_0x3cb1d9++],_0x494a0d=_0x22fd43[_0x1f7e63>>>0x18]^_0x121206[_0x4d4d71>>>0x10&0xff]^_0x34876f[_0x430d08>>>0x8&0xff]^_0x5ab347[_0x3c8c56&0xff]^_0x8b958a[_0x3cb1d9++],_0x2ef64e=_0x22fd43[_0x4d4d71>>>0x18]^_0x121206[_0x430d08>>>0x10&0xff]^_0x34876f[_0x3c8c56>>>0x8&0xff]^_0x5ab347[_0x1f7e63&0xff]^_0x8b958a[_0x3cb1d9++],_0xa11176=_0x22fd43[_0x430d08>>>0x18]^_0x121206[_0x3c8c56>>>0x10&0xff]^_0x34876f[_0x1f7e63>>>0x8&0xff]^_0x5ab347[_0x4d4d71&0xff]^_0x8b958a[_0x3cb1d9++];_0x3c8c56=_0xb357a9,_0x1f7e63=_0x494a0d,_0x4d4d71=_0x2ef64e,_0x430d08=_0xa11176;}var _0xb357a9=(_0x298b26[_0x3c8c56>>>0x18]<<0x18|_0x298b26[_0x1f7e63>>>0x10&0xff]<<0x10|_0x298b26[_0x4d4d71>>>0x8&0xff]<<0x8|_0x298b26[_0x430d08&0xff])^_0x8b958a[_0x3cb1d9++],_0x494a0d=(_0x298b26[_0x1f7e63>>>0x18]<<0x18|_0x298b26[_0x4d4d71>>>0x10&0xff]<<0x10|_0x298b26[_0x430d08>>>0x8&0xff]<<0x8|_0x298b26[_0x3c8c56&0xff])^_0x8b958a[_0x3cb1d9++],_0x2ef64e=(_0x298b26[_0x4d4d71>>>0x18]<<0x18|_0x298b26[_0x430d08>>>0x10&0xff]<<0x10|_0x298b26[_0x3c8c56>>>0x8&0xff]<<0x8|_0x298b26[_0x1f7e63&0xff])^_0x8b958a[_0x3cb1d9++],_0xa11176=(_0x298b26[_0x430d08>>>0x18]<<0x18|_0x298b26[_0x3c8c56>>>0x10&0xff]<<0x10|_0x298b26[_0x1f7e63>>>0x8&0xff]<<0x8|_0x298b26[_0x4d4d71&0xff])^_0x8b958a[_0x3cb1d9++];_0x5a091c[_0x183062]=_0xb357a9,_0x5a091c[_0x183062+0x1]=_0x494a0d,_0x5a091c[_0x183062+0x2]=_0x2ef64e,_0x5a091c[_0x183062+0x3]=_0xa11176;},'keySize':0x100/0x20});_0x300222[_0x428b16(0x552)]=_0x5b260b[_0x428b16(0x258)](_0xbe4164);}()),_0x12160e[_0x249f55(0x552)];}));}(bn));var rr=bn['exports'];const or=Le(rr);var ar=Tn();function _0x35f6(_0x312763,_0x4c45b6){const _0x15d4c2=_0x15d4();return _0x35f6=function(_0x35f6f,_0x3fb596){_0x35f6f=_0x35f6f-0x1d4;let _0xcc9b47=_0x15d4c2[_0x35f6f];return _0xcc9b47;},_0x35f6(_0x312763,_0x4c45b6);}const zt=Le(ar);var On={'exports':{}};(function(_0x7ca0d5,_0x1e363b){(function(_0x5acf25,_0x25fd17){const _0x5de0de=_0x35f6;_0x7ca0d5[_0x5de0de(0x236)]=_0x25fd17(ae());}(J,function(_0x3861c4){const _0x13a4ad=_0x35f6;return _0x3861c4[_0x13a4ad(0x5fb)][_0x13a4ad(0x340)];}));}(On));var cr=On[_0x17671e(0x236)];const lr=Le(cr);var Dn={'exports':{}};(function(_0x498911,_0x153595){(function(_0x4cbb50,_0x453624){const _0xf53873=_0x35f6;_0x498911[_0xf53873(0x236)]=_0x453624(ae());}(J,function(_0x3aec0e){const _0x60a120=_0x35f6;return(function(){const _0x33baaf=_0x35f6;if(typeof ArrayBuffer==_0x33baaf(0x1ee)){var _0x9cd4c0=_0x3aec0e,_0x4ba2d5=_0x9cd4c0['lib'],_0x5a3e94=_0x4ba2d5[_0x33baaf(0x323)],_0x9627ef=_0x5a3e94[_0x33baaf(0x2ce)],_0x17ed44=_0x5a3e94['init']=function(_0x4c5785){const _0x33108d=_0x33baaf;if(_0x4c5785 instanceof ArrayBuffer&&(_0x4c5785=new Uint8Array(_0x4c5785)),(_0x4c5785 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x4c5785 instanceof Uint8ClampedArray||_0x4c5785 instanceof Int16Array||_0x4c5785 instanceof Uint16Array||_0x4c5785 instanceof Int32Array||_0x4c5785 instanceof Uint32Array||_0x4c5785 instanceof Float32Array||_0x4c5785 instanceof Float64Array)&&(_0x4c5785=new Uint8Array(_0x4c5785[_0x33108d(0x606)],_0x4c5785['byteOffset'],_0x4c5785['byteLength'])),_0x4c5785 instanceof Uint8Array){for(var _0x2df702=_0x4c5785['byteLength'],_0x4555b5=[],_0x29b75e=0x0;_0x29b75e<_0x2df702;_0x29b75e++)_0x4555b5[_0x29b75e>>>0x2]|=_0x4c5785[_0x29b75e]<<0x18-_0x29b75e%0x4*0x8;_0x9627ef[_0x33108d(0x5b0)](this,_0x4555b5,_0x2df702);}else _0x9627ef['apply'](this,arguments);};_0x17ed44[_0x33baaf(0x4ef)]=_0x5a3e94;}}()),_0x3aec0e['lib'][_0x60a120(0x323)];}));}(Dn));var hr=Dn[_0x17671e(0x236)];const _r=Le(hr);var wn={'exports':{}};(function(_0x151462,_0x781865){(function(_0x4ec6d1,_0x2cdc80,_0x5d5f67){_0x151462['exports']=_0x2cdc80(ae(),yn());}(J,function(_0x2964ce){const _0x1b239f=_0x35f6;return _0x2964ce[_0x1b239f(0x5ec)][_0x1b239f(0x592)]={'pad':function(){},'unpad':function(){}},_0x2964ce[_0x1b239f(0x5ec)][_0x1b239f(0x592)];}));}(wn));var ur=wn[_0x17671e(0x236)];const dr=Le(ur);function fr(_0xe25106,_0x31572a){const _0x297de6=_0x17671e,_0x155a49=_0x31572a-_0xe25106['length']%_0x31572a,_0x4de3ab=String[_0x297de6(0x58e)](_0x155a49)[_0x297de6(0x3fe)](_0x155a49);return _0xe25106+_0x4de3ab;}function vr(_0x372951,_0x1e76dc){const _0x51d8f4=_0x17671e,_0x7dd484=_r[_0x51d8f4(0x31d)](0x10),_0x1ab4d4=fr(_0x372951,0x10),_0x13d075=or[_0x51d8f4(0x259)](lr[_0x51d8f4(0x634)](_0x1ab4d4),zt['parse'](_0x1e76dc),{'iv':_0x7dd484,'padding':dr});return _0x7dd484[_0x51d8f4(0x59e)](_0x13d075[_0x51d8f4(0x30e)])['toString'](zt);}function mr(){const _0x1e6794=_0x17671e,_0x576de9=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)['__Key__'];if(_0x576de9){const _0x26faed={'time':Math[_0x1e6794(0x275)](Date[_0x1e6794(0x2a4)]()/0x3e8),'domain':location[_0x1e6794(0x374)]};return vr(JSON['stringify'](_0x26faed),_0x576de9);}}var pr=Object[_0x17671e(0x545)],Sr=Object['getOwnPropertyDescriptor'],gr=(_0x4c046a,_0x59b549,_0x27574e,_0x228336)=>{for(var _0x55f19a=_0x228336>0x1?void 0x0:_0x228336?Sr(_0x59b549,_0x27574e):_0x59b549,_0x587f07=_0x4c046a['length']-0x1,_0x1f9122;_0x587f07>=0x0;_0x587f07--)(_0x1f9122=_0x4c046a[_0x587f07])&&(_0x55f19a=(_0x228336?_0x1f9122(_0x59b549,_0x27574e,_0x55f19a):_0x1f9122(_0x55f19a))||_0x55f19a);return _0x228336&&_0x55f19a&&pr(_0x59b549,_0x27574e,_0x55f19a),_0x55f19a;},Ir=(_0x316119,_0x48da17)=>(_0xcdc531,_0x3fc847)=>_0x48da17(_0xcdc531,_0x3fc847,_0x316119);let Ye=class{constructor(_0x11ce53){const _0x5379a4=_0x17671e;this[_0x5379a4(0x54d)]=_0x11ce53,this[_0x5379a4(0x49e)]();}['_initRequestHeader'](){const _0x513a04=_0x17671e;this['_httpService'][_0x513a04(0x617)]({'interceptor':(_0xd00fbe,_0x2765e4)=>{const _0x2dad48=_0xd00fbe['headers'],_0x3b931d=mr();return _0x3b931d&&_0x2dad48['set']('x-univer-host',_0x3b931d),_0x2765e4(_0xd00fbe);}});}};Ye=gr([Ir(0x0,a['Inject'](Q[_0x17671e(0x5df)]))],Ye);var Cr=Object[_0x17671e(0x545)],Er=Object[_0x17671e(0x47f)],br=(_0x44117a,_0x3bf1ad,_0x54bdc1,_0x8b3a2d)=>{const _0x4fe9e1=_0x17671e;for(var _0x2a3e81=_0x8b3a2d>0x1?void 0x0:_0x8b3a2d?Er(_0x3bf1ad,_0x54bdc1):_0x3bf1ad,_0x5c8626=_0x44117a[_0x4fe9e1(0x367)]-0x1,_0x8750c5;_0x5c8626>=0x0;_0x5c8626--)(_0x8750c5=_0x44117a[_0x5c8626])&&(_0x2a3e81=(_0x8b3a2d?_0x8750c5(_0x3bf1ad,_0x54bdc1,_0x2a3e81):_0x8750c5(_0x2a3e81))||_0x2a3e81);return _0x8b3a2d&&_0x2a3e81&&Cr(_0x3bf1ad,_0x54bdc1,_0x2a3e81),_0x2a3e81;},ft=(_0x258a21,_0x4b3d12)=>(_0x462d1b,_0x43a11e)=>_0x4b3d12(_0x462d1b,_0x43a11e,_0x258a21);const Tr=['image/png',_0x17671e(0x34b),_0x17671e(0x2dc),_0x17671e(0x471),_0x17671e(0x4e4)],Rr=0x5*0x400*0x400,yr=_0x17671e(0x2d4),Or=_0x17671e(0x4a7),Dr=_0x17671e(0x435),wr='/universer-api/file/{fileID}/sign-url';exports[_0x17671e(0x611)]=class{constructor(_0x3fb49d,_0x3696d1,_0x52bf3f){const _0x308f1c=_0x17671e;I(this,'_waitCount',0x0),I(this,_0x308f1c(0x43e),new A[(_0x308f1c(0x4c2))]()),I(this,_0x308f1c(0x5a0),this['_change$']),I(this,'_imageSourceCache',new Map()),(this[_0x308f1c(0x54d)]=_0x3fb49d,this['_configService']=_0x3696d1,this[_0x308f1c(0x2ba)]=_0x52bf3f);}[_0x17671e(0x5fe)](_0x467ac7){const _0x24aa82=_0x17671e;this[_0x24aa82(0x433)]=_0x467ac7,this[_0x24aa82(0x43e)]['next'](_0x467ac7);}[_0x17671e(0x575)](_0x13e784,_0x3e2bff){const _0x26b945=_0x17671e;if(_0x3e2bff===ie[_0x26b945(0x5e8)][_0x26b945(0x40d)]){const _0x2649d6=new Image();return _0x2649d6[_0x26b945(0x45a)]=_0x13e784,_0x2649d6;}return this['_imageSourceCache'][_0x26b945(0x2a7)](_0x13e784);}[_0x17671e(0x24e)](_0x2334c5,_0x11877c,_0x4cc3e5){const _0x18247e=_0x17671e;_0x11877c===ie[_0x18247e(0x5e8)]['BASE64']||_0x4cc3e5==null||this[_0x18247e(0x377)][_0x18247e(0x4da)](_0x2334c5,_0x4cc3e5);}async[_0x17671e(0x210)](_0x44dec0){const _0x2ee4ed=_0x17671e;try{const _0x220ad3=this[_0x2ee4ed(0x2f7)](this[_0x2ee4ed(0x5fa)](),''+_0x44dec0),_0x473535=(await this['_httpService'][_0x2ee4ed(0x2a7)](_0x220ad3))[_0x2ee4ed(0x599)];if(_0x473535[_0x2ee4ed(0x2c9)]&&_0x473535[_0x2ee4ed(0x2c9)]['code']===an['OK']){const _0x402bfc=new URL(_0x473535[_0x2ee4ed(0x660)],this[_0x2ee4ed(0x46e)]())[_0x2ee4ed(0x401)]();return Promise[_0x2ee4ed(0x388)](_0x402bfc);}return Promise[_0x2ee4ed(0x23c)](_0x473535[_0x2ee4ed(0x2c9)]);}catch(_0x5792af){return Promise[_0x2ee4ed(0x23c)](_0x5792af);}}async[_0x17671e(0x34d)](_0x58e2a7){const _0x4c3b5d=_0x17671e;let _0x2fd9f4='';if(!Tr['includes'](_0x58e2a7['type']))return this[_0x4c3b5d(0x5e7)](),Promise[_0x4c3b5d(0x23c)](new Error(ie[_0x4c3b5d(0x451)]['ERROR_IMAGE_TYPE']));if(_0x58e2a7[_0x4c3b5d(0x2fa)]>Rr)return this[_0x4c3b5d(0x5e7)](),Promise[_0x4c3b5d(0x23c)](new Error(ie[_0x4c3b5d(0x451)][_0x4c3b5d(0x2fd)]));try{const _0x4c0b2a=new FormData();_0x4c0b2a[_0x4c3b5d(0x4fa)](_0x4c3b5d(0x41c),_0x58e2a7);const _0xc772e8=this[_0x4c3b5d(0x2ba)][_0x4c3b5d(0x3ab)](),_0x1919ed=_0xc772e8==null?void 0x0:_0xc772e8[_0x4c3b5d(0x21c)]();if(!_0x1919ed)throw new Error(_0x4c3b5d(0x2ea));const _0x5cb7a8=this['_getUploadFileURL']()+'?size='+_0x58e2a7[_0x4c3b5d(0x2fa)][_0x4c3b5d(0x401)]()+_0x4c3b5d(0x51c)+cn[_0x4c3b5d(0x48d)]+_0x4c3b5d(0x3bd)+encodeURIComponent(_0x1919ed),_0x413d71=await(await fetch(_0x5cb7a8,{'method':_0x4c3b5d(0x576),'body':_0x4c0b2a}))['json']();if(typeof _0x413d71[_0x4c3b5d(0x343)]!=_0x4c3b5d(0x3c3))return this[_0x4c3b5d(0x5e7)](),Promise[_0x4c3b5d(0x23c)](new Error(ie[_0x4c3b5d(0x451)][_0x4c3b5d(0x1d7)]));_0x2fd9f4=_0x413d71['FileId'];}catch{return this[_0x4c3b5d(0x5e7)](),Promise[_0x4c3b5d(0x23c)](new Error(ie[_0x4c3b5d(0x451)][_0x4c3b5d(0x1d7)]));}return new Promise((_0x21d397,_0x13be93)=>{const _0x51cf9f=_0x4c3b5d,_0x260967=new FileReader();_0x260967[_0x51cf9f(0x424)](_0x58e2a7),_0x260967['onload']=_0x28baa6=>{const _0x4f6bad=_0x51cf9f;var _0xf4d4d3;const _0x56add2=(_0xf4d4d3=_0x28baa6['target'])==null?void 0x0:_0xf4d4d3[_0x4f6bad(0x1e4)];if(_0x56add2==null){this[_0x4f6bad(0x5e7)](),_0x13be93(new Error(ie[_0x4f6bad(0x451)][_0x4f6bad(0x1d7)]));return;}const _0x3144b7=a[_0x4f6bad(0x341)]['generateRandomId'](0x6);_0x21d397({'imageId':_0x3144b7,'imageSourceType':ie['ImageSourceType']['UUID'],'source':_0x2fd9f4,'base64Cache':_0x56add2,'status':ie['ImageUploadStatusType'][_0x4f6bad(0x5f3)]}),this[_0x4f6bad(0x5e7)]();};});}[_0x17671e(0x561)](){const _0x4bfc0e=_0x17671e;var _0x49f703,_0x2cd719;const _0x9f6edc=this[_0x4bfc0e(0x573)][_0x4bfc0e(0x2cf)](yr),_0x577da7=this[_0x4bfc0e(0x573)][_0x4bfc0e(0x2cf)](ne);return(_0x2cd719=(_0x49f703=_0x577da7==null?void 0x0:_0x577da7['uploadFileServerUrl'])!=null?_0x49f703:_0x9f6edc)!=null?_0x2cd719:Or;}[_0x17671e(0x5fa)](){const _0x595851=_0x17671e;var _0x40013e,_0x489b1f;const _0x3eb0ee=this[_0x595851(0x573)][_0x595851(0x2cf)](Dr),_0x2261ce=this[_0x595851(0x573)][_0x595851(0x2cf)](ne);return(_0x489b1f=(_0x40013e=_0x2261ce==null?void 0x0:_0x2261ce['signUrlServerUrl'])!=null?_0x40013e:_0x3eb0ee)!=null?_0x489b1f:wr;}['_getDownloadEndpointURL'](){const _0x5e14cf=_0x17671e;var _0x495349;const _0x23c4dd=this[_0x5e14cf(0x573)][_0x5e14cf(0x2cf)](ne);return(_0x495349=_0x23c4dd==null?void 0x0:_0x23c4dd[_0x5e14cf(0x3bf)])!=null?_0x495349:location['origin'];}[_0x17671e(0x2f7)](_0x2ed6bd,_0x45587c){const _0x574ba0=_0x17671e;return _0x2ed6bd[_0x574ba0(0x376)](_0x574ba0(0x331),_0x45587c);}[_0x17671e(0x5e7)](){const _0x3c6b01=_0x17671e;this['_waitCount']-=0x1,this[_0x3c6b01(0x43e)][_0x3c6b01(0x2de)](this[_0x3c6b01(0x433)]);}},exports['ImageIoService']=br([ft(0x0,a[_0x17671e(0x52e)](Q['HTTPService'])),ft(0x1,a[_0x17671e(0x505)]),ft(0x2,a['Inject'](a[_0x17671e(0x4fc)]))],exports['ImageIoService']);var Pr=Object[_0x17671e(0x545)],Ur=Object[_0x17671e(0x47f)],Mr=(_0x216398,_0x11649a,_0x1e496b,_0x68077f)=>{const _0x47a125=_0x17671e;for(var _0x59be8f=_0x68077f>0x1?void 0x0:_0x68077f?Ur(_0x11649a,_0x1e496b):_0x11649a,_0x124cc2=_0x216398[_0x47a125(0x367)]-0x1,_0x2463fb;_0x124cc2>=0x0;_0x124cc2--)(_0x2463fb=_0x216398[_0x124cc2])&&(_0x59be8f=(_0x68077f?_0x2463fb(_0x11649a,_0x1e496b,_0x59be8f):_0x2463fb(_0x59be8f))||_0x59be8f);return _0x68077f&&_0x59be8f&&Pr(_0x11649a,_0x1e496b,_0x59be8f),_0x59be8f;},Me=(_0x4e33c3,_0x17b19f)=>(_0x3bc344,_0x416e74)=>_0x17b19f(_0x3bc344,_0x416e74,_0x4e33c3);let Ke=class extends a['RxDisposable']{constructor(_0x52161b,_0x2b5c13,_0x368fb8,_0xd3fd3e,_0x44208a){const _0x354d0a=_0x17671e;super(),this['_injector']=_0x52161b,this[_0x354d0a(0x2ba)]=_0x2b5c13,this[_0x354d0a(0x5d7)]=_0x368fb8,this['_collaborationSessionService']=_0xd3fd3e,this[_0x354d0a(0x457)]=_0x44208a,this[_0x354d0a(0x37e)](),this['_initCloseConn']();}['_initCloseConn'](){const _0x31ad72=_0x17671e,_0x335e2f=async _0xfb87ad=>{const _0x1f97af=_0x35f6;(await this[_0x1f97af(0x297)][_0x1f97af(0x358)](_0xfb87ad))[_0x1f97af(0x4c4)][_0x1f97af(0x42f)](V['filter'](_0x39a086=>_0x39a086[_0x1f97af(0x3ee)]===p['CollaborationEvent'][_0x1f97af(0x519)]),V[_0x1f97af(0x500)](this[_0x1f97af(0x52d)]))[_0x1f97af(0x383)](_0x353b8a=>{const _0x14848a=_0x1f97af,_0x1fbc71=_0x353b8a,{reason:_0x1affe}=_0x1fbc71[_0x14848a(0x1e9)];this[_0x14848a(0x27e)]['get'](te[_0x14848a(0x21a)])['show']({'type':Se[_0x14848a(0x393)][_0x14848a(0x280)],'content':this[_0x14848a(0x457)]['t'](_0x14848a(0x45d))+'('+_0x1affe+')'}),this[_0x14848a(0x5d7)][_0x14848a(0x5c9)](new k[(_0x14848a(0x51d))](_0xfb87ad)['id'],!0x1),this['_collaborationSessionService'][_0x14848a(0x260)](_0xfb87ad);});};A[_0x31ad72(0x5dc)](this[_0x31ad72(0x2ba)][_0x31ad72(0x58a)](a[_0x31ad72(0x664)]['UNIVER_SHEET']),this[_0x31ad72(0x2ba)][_0x31ad72(0x58a)](a['UniverInstanceType'][_0x31ad72(0x4ca)]))[_0x31ad72(0x42f)](V[_0x31ad72(0x372)](_0x539a2d=>_0x539a2d[_0x31ad72(0x21c)]()),V[_0x31ad72(0x335)](_0x272452=>!a[_0x31ad72(0x261)](_0x272452)),V['takeUntil'](this['dispose$']))[_0x31ad72(0x383)](_0x9d1cdb=>{_0x335e2f(_0x9d1cdb);});}['_initUnitPermissionChange'](){const _0xae6bdb=_0x17671e,_0x2ce0a6=async _0x2618c4=>{const _0x1ce13a=_0x35f6;(await this[_0x1ce13a(0x297)][_0x1ce13a(0x358)](_0x2618c4))[_0x1ce13a(0x4c4)][_0x1ce13a(0x42f)](V['filter'](_0x513a18=>_0x513a18[_0x1ce13a(0x3ee)]===p[_0x1ce13a(0x2d6)][_0x1ce13a(0x5b5)]),V[_0x1ce13a(0x500)](this['dispose$']))[_0x1ce13a(0x383)](_0x48df7b=>{const _0x466589=_0x1ce13a,_0x55f212=_0x48df7b,{objectId:_0x34b38f}=_0x55f212[_0x466589(0x1e9)],_0x4b1754=this['_injector'][_0x466589(0x2a7)](Te['SheetPermissionInitController']);_0x34b38f===_0x2618c4?_0x4b1754[_0x466589(0x66e)](_0x2618c4):_0x4b1754[_0x466589(0x216)](_0x2618c4,_0x34b38f);});};A[_0xae6bdb(0x5dc)](this[_0xae6bdb(0x2ba)][_0xae6bdb(0x58a)](a['UniverInstanceType'][_0xae6bdb(0x360)]),this[_0xae6bdb(0x2ba)][_0xae6bdb(0x58a)](a['UniverInstanceType'][_0xae6bdb(0x4ca)]))[_0xae6bdb(0x42f)](V[_0xae6bdb(0x372)](_0x13b28a=>_0x13b28a['getUnitId']()),V['filter'](_0x1732e2=>!a[_0xae6bdb(0x261)](_0x1732e2)),V[_0xae6bdb(0x500)](this[_0xae6bdb(0x52d)]))[_0xae6bdb(0x383)](_0x32ca01=>{_0x2ce0a6(_0x32ca01);});}};Ke=Mr([Me(0x0,a['Inject'](a[_0x17671e(0x29a)])),Me(0x1,a[_0x17671e(0x4fc)]),Me(0x2,a[_0x17671e(0x386)]),Me(0x3,a['Inject'](exports[_0x17671e(0x355)])),Me(0x4,a[_0x17671e(0x52e)](a[_0x17671e(0x530)]))],Ke);var Ar=Object[_0x17671e(0x545)],Nr=Object[_0x17671e(0x47f)],Lr=(_0x290f1d,_0x404cfd,_0x47967e,_0x2d43fa)=>{const _0x884118=_0x17671e;for(var _0x488da7=_0x2d43fa>0x1?void 0x0:_0x2d43fa?Nr(_0x404cfd,_0x47967e):_0x404cfd,_0x38d94e=_0x290f1d[_0x884118(0x367)]-0x1,_0x36a59e;_0x38d94e>=0x0;_0x38d94e--)(_0x36a59e=_0x290f1d[_0x38d94e])&&(_0x488da7=(_0x2d43fa?_0x36a59e(_0x404cfd,_0x47967e,_0x488da7):_0x36a59e(_0x488da7))||_0x488da7);return _0x2d43fa&&_0x488da7&&Ar(_0x404cfd,_0x47967e,_0x488da7),_0x488da7;},Xt=(_0x11112f,_0x3893ea)=>(_0x28449d,_0x167a8b)=>_0x3893ea(_0x28449d,_0x167a8b,_0x11112f);exports[_0x17671e(0x436)]=class{constructor(_0x3c0317,_0x584f69){const _0x418f95=_0x17671e;this[_0x418f95(0x573)]=_0x3c0317,this['_httpService']=_0x584f69;}async[_0x17671e(0x39b)](_0x88abfe,_0x3df4c3){const _0xa8ca02=_0x17671e;var _0x143062;const {unitID:_0x179342,type:_0x31d4b9,revision:_0x38e64e=0x0}=_0x3df4c3,_0x38752e=this['_getSnapshotAPIPrefix']()+'/'+_0x31d4b9+_0xa8ca02(0x54e)+_0x179342+_0xa8ca02(0x484)+_0x38e64e,_0x166088=(await this[_0xa8ca02(0x54d)][_0xa8ca02(0x2a7)](_0x38752e))[_0xa8ca02(0x599)],_0x1f5081=(_0x143062=_0x166088[_0xa8ca02(0x44e)])==null?void 0x0:_0x143062[_0xa8ca02(0x44c)];if(_0x1f5081){const _0x2a36ae=_0x1f5081==null?void 0x0:_0x1f5081[_0xa8ca02(0x5ca)],_0x582bd1=p[_0xa8ca02(0x628)][_0xa8ca02(0x4bb)](p[_0xa8ca02(0x284)](_0x2a36ae));_0x1f5081[_0xa8ca02(0x5ca)]=_0x582bd1,Object[_0xa8ca02(0x43c)](_0x1f5081[_0xa8ca02(0x27c)])[_0xa8ca02(0x5ea)](([,_0x7f7bf])=>{const _0x21481c=_0xa8ca02,_0x123ccf=_0x7f7bf[_0x21481c(0x5ca)],_0x5c379d=p[_0x21481c(0x628)][_0x21481c(0x4bb)](p[_0x21481c(0x284)](_0x123ccf));_0x7f7bf[_0x21481c(0x5ca)]=_0x5c379d;});}return _0x166088;}async[_0x17671e(0x3ef)](_0x21256c,_0x343cd0){const _0x3b2c83=_0x17671e,{unitID:_0x30409a,type:_0x2465c5,blockID:_0xcc6754}=_0x343cd0,_0x352fcf=this[_0x3b2c83(0x554)]()+'/'+_0x2465c5+_0x3b2c83(0x54e)+_0x30409a+_0x3b2c83(0x25d)+_0xcc6754;return(await this[_0x3b2c83(0x54d)][_0x3b2c83(0x2a7)](_0x352fcf))['body'];}async[_0x17671e(0x379)](_0x233dca,_0x2e47ee){const _0x2f0989=_0x17671e,{unitID:_0x3da200,type:_0x1faa43,blockID:_0x32281e}=_0x2e47ee,_0x51acfd=this[_0x2f0989(0x554)]()+_0x2f0989(0x25d)+_0x1faa43+_0x2f0989(0x54e)+_0x3da200+_0x2f0989(0x25d)+_0x32281e;return(await this[_0x2f0989(0x54d)]['get'](_0x51acfd))[_0x2f0989(0x599)];}async[_0x17671e(0x507)](_0x24ec2a,_0x195d90){const _0x2e95d8=_0x17671e,{unitID:_0x206d80,type:_0x58830d,from:_0x1888b8,to:_0x306f5f}=_0x195d90,_0x26c3d9=this[_0x2e95d8(0x554)]()+'/'+_0x58830d+_0x2e95d8(0x54e)+_0x206d80+'/fetchmissing?from='+_0x1888b8+'&to='+_0x306f5f;return(await this[_0x2e95d8(0x54d)][_0x2e95d8(0x2a7)](_0x26c3d9))[_0x2e95d8(0x599)];}['_getSnapshotAPIPrefix'](){const _0x3b36ab=_0x17671e;var _0x850fa3;return(_0x850fa3=this[_0x3b36ab(0x573)][_0x3b36ab(0x2cf)](Zt))!=null?_0x850fa3:this[_0x3b36ab(0x554)]();}[_0x17671e(0x554)](){const _0x8d9b6a=_0x17671e;var _0x5a02d4,_0x1940c2;const _0x585b88=this[_0x8d9b6a(0x573)]['getConfig'](Jt),_0x19b0dd=this['_configService'][_0x8d9b6a(0x2cf)](ne);return(_0x1940c2=(_0x5a02d4=_0x19b0dd==null?void 0x0:_0x19b0dd[_0x8d9b6a(0x53e)])!=null?_0x5a02d4:_0x585b88)!=null?_0x1940c2:xn;}async[_0x17671e(0x559)](_0x138b4e,_0x1f1f6a){const _0x333684=_0x17671e,_0x394fbf=_0x333684(0x66a)+_0x1f1f6a[_0x333684(0x224)]+_0x333684(0x54e)+_0x1f1f6a[_0x333684(0x219)]+_0x333684(0x541);return(await this[_0x333684(0x54d)][_0x333684(0x2a7)](_0x394fbf,{'params':{'resourceId':JSON['stringify'](_0x1f1f6a[_0x333684(0x26a)])}}))[_0x333684(0x599)];}[_0x17671e(0x36c)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x17115c=_0x17671e;throw new Error(_0x17115c(0x4f4));}[_0x17671e(0x384)](){const _0xf941cc=_0x17671e;throw new Error(_0xf941cc(0x4f4));}[_0x17671e(0x54f)](){const _0x1734a3=_0x17671e;throw new Error(_0x1734a3(0x4f4));}[_0x17671e(0x3dc)](){const _0x57ca80=_0x17671e;throw new Error(_0x57ca80(0x4f4));}},exports[_0x17671e(0x436)]=Lr([Xt(0x0,a['IConfigService']),Xt(0x1,a['Inject'](Q[_0x17671e(0x5df)]))],exports[_0x17671e(0x436)]);var xr=Object['defineProperty'],$r=Object['getOwnPropertyDescriptor'],jr=(_0x57e268,_0x665e7f,_0x35f02c,_0x3f108f)=>{const _0x684fa2=_0x17671e;for(var _0x3879cd=_0x3f108f>0x1?void 0x0:_0x3f108f?$r(_0x665e7f,_0x35f02c):_0x665e7f,_0xfff7b6=_0x57e268[_0x684fa2(0x367)]-0x1,_0x5c4598;_0xfff7b6>=0x0;_0xfff7b6--)(_0x5c4598=_0x57e268[_0xfff7b6])&&(_0x3879cd=(_0x3f108f?_0x5c4598(_0x665e7f,_0x35f02c,_0x3879cd):_0x5c4598(_0x3879cd))||_0x3879cd);return _0x3f108f&&_0x3879cd&&xr(_0x665e7f,_0x35f02c,_0x3879cd),_0x3879cd;},Ae=(_0x121aec,_0x32784a)=>(_0x33a4f6,_0x3cb0a1)=>_0x32784a(_0x33a4f6,_0x3cb0a1,_0x121aec);let gt=class extends a['LocalUndoRedoService']{constructor(_0x33e745,_0x3b22f3,_0x45c4d6,_0x46d31c,_0x5ada1f){const _0x2dc3ad=_0x17671e;super(_0x33e745,_0x3b22f3,_0x45c4d6),this[_0x2dc3ad(0x5b9)]=_0x46d31c,this[_0x2dc3ad(0x3f4)]=_0x5ada1f;}[_0x17671e(0x246)](_0x3bae64,_0x2eba4d){const _0x5129f7=_0x17671e,_0x1e94e4=this[_0x5129f7(0x3aa)](_0x3bae64);if(_0x1e94e4)try{const _0x30d28a=this[_0x5129f7(0x30d)](_0x1e94e4,_0x2eba4d);this[_0x5129f7(0x4d1)](_0x3bae64,_0x30d28a);}catch(_0x542425){this[_0x5129f7(0x3f4)][_0x5129f7(0x2c9)](_0x5129f7(0x2c5),_0x542425),this[_0x5129f7(0x3d2)](_0x3bae64);}const _0x47635a=this['_getRedoStack'](_0x3bae64);if(_0x47635a)try{const _0x5cb5b0=this[_0x5129f7(0x30d)](_0x47635a,_0x2eba4d);this[_0x5129f7(0x5b1)](_0x3bae64,_0x5cb5b0);}catch(_0x8d134b){this[_0x5129f7(0x3f4)][_0x5129f7(0x2c9)](_0x8d134b),this[_0x5129f7(0x1ea)](_0x3bae64);}}[_0x17671e(0x3d2)](_0x1c7c67){const _0x53a31e=_0x17671e,_0x3dfd24=this['_getUndoStack'](_0x1c7c67);_0x3dfd24&&(_0x3dfd24[_0x53a31e(0x367)]=0x0,this[_0x53a31e(0x60c)]());}[_0x17671e(0x1ea)](_0xd2e3cc){const _0x3b72b1=_0x17671e,_0xb0365f=this[_0x3b72b1(0x53d)](_0xd2e3cc);_0xb0365f&&(_0xb0365f[_0x3b72b1(0x367)]=0x0,this[_0x3b72b1(0x60c)]());}['_substituteUndoStack'](_0x1f1923,_0x327eca){const _0xbe65a7=_0x17671e;this['_undoStacks'][_0xbe65a7(0x4da)](_0x1f1923,_0x327eca),this[_0xbe65a7(0x60c)]();}[_0x17671e(0x5b1)](_0x52fd54,_0x5bb2a8){const _0x99d3bb=_0x17671e;this['_redoStacks'][_0x99d3bb(0x4da)](_0x52fd54,_0x5bb2a8),this['_updateStatus']();}[_0x17671e(0x30d)](_0x19d5f5,_0x16f2e2){const _0x3ad6b9=_0x17671e,_0x181ed6=[];let _0x2b8675=_0x16f2e2,_0x350f88=_0x16f2e2;for(let _0x183d43=_0x19d5f5[_0x3ad6b9(0x367)]-0x1;_0x183d43>=0x0;_0x183d43--){const {unitID:_0x3d9381,undoMutations:_0x3efedd,redoMutations:_0x4f74c2}=_0x19d5f5[_0x183d43],_0x38db84=this['_transformService'][_0x3ad6b9(0x1f7)](_0x2b8675,_0x3efedd),_0x5bcb46=this[_0x3ad6b9(0x5b9)][_0x3ad6b9(0x1f7)](_0x350f88,_0x4f74c2);if(p[_0x3ad6b9(0x420)](_0x38db84)||p[_0x3ad6b9(0x420)](_0x5bcb46)){this[_0x3ad6b9(0x3f4)][_0x3ad6b9(0x2c9)](_0x3ad6b9(0x2c5),_0x3ad6b9(0x4b6),_0x38db84,_0x5bcb46);break;}_0x2b8675=_0x38db84['c1Prime'],_0x350f88=_0x5bcb46[_0x3ad6b9(0x1fe)],_0x181ed6['push']({'unitID':_0x3d9381,'undoMutations':_0x38db84[_0x3ad6b9(0x491)],'redoMutations':_0x5bcb46[_0x3ad6b9(0x491)]});}return _0x181ed6[_0x3ad6b9(0x5d0)]();}};gt=jr([Ae(0x0,a[_0x17671e(0x4fc)]),Ae(0x1,a[_0x17671e(0x336)]),Ae(0x2,a[_0x17671e(0x4b9)]),Ae(0x3,p[_0x17671e(0x232)]),Ae(0x4,a[_0x17671e(0x431)])],gt);class Pn extends a[_0x17671e(0x2c4)]{constructor(){const _0x3754b2=_0x17671e;super(),I(this,_0x3754b2(0x66b)),this[_0x3754b2(0x66b)]=A[_0x3754b2(0x42c)](window,_0x3754b2(0x23b))['pipe'](A['takeUntil'](this[_0x3754b2(0x52d)]),A[_0x3754b2(0x5d4)](0x1),A['mapTo'](void 0x0));}[_0x17671e(0x33b)](_0xff3847,_0x3e015e,_0x58f7a0=!0x1){const _0x231375=_0x17671e,_0x3f1d2b=new URL(window[_0x231375(0x675)]['href']);_0x3f1d2b['searchParams'][_0x231375(0x4da)](_0xff3847,_0x3e015e),_0x58f7a0?window[_0x231375(0x5c4)][_0x231375(0x267)]('','',_0x3f1d2b[_0x231375(0x401)]()):window[_0x231375(0x5c4)]['pushState']('','',_0x3f1d2b[_0x231375(0x401)]());}[_0x17671e(0x2ed)](_0x28f1c7,_0x483300=!0x1){const _0x3b6420=_0x17671e,_0x50a4df=new URL(window[_0x3b6420(0x675)][_0x3b6420(0x62d)]);_0x50a4df[_0x3b6420(0x504)][_0x3b6420(0x430)](_0x28f1c7),_0x483300?window[_0x3b6420(0x5c4)]['replaceState']('','',_0x50a4df['toString']()):window[_0x3b6420(0x5c4)]['pushState']('','',_0x50a4df['toString']());}[_0x17671e(0x2af)](_0x5eb252){const _0x42e47=_0x17671e;var _0x49c9d1;return(_0x49c9d1=new URL(window[_0x42e47(0x675)][_0x42e47(0x62d)])[_0x42e47(0x504)][_0x42e47(0x2a7)](_0x5eb252))!=null?_0x49c9d1:void 0x0;}}var Un=Object[_0x17671e(0x545)],Hr=Object[_0x17671e(0x47f)],Br=(_0x381d5f,_0x10df8f,_0x5d6700)=>_0x10df8f in _0x381d5f?Un(_0x381d5f,_0x10df8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d6700}):_0x381d5f[_0x10df8f]=_0x5d6700,kr=(_0x595c97,_0x224fe3,_0x39976a,_0xffee45)=>{const _0x43ab4f=_0x17671e;for(var _0x374bc9=_0xffee45>0x1?void 0x0:_0xffee45?Hr(_0x224fe3,_0x39976a):_0x224fe3,_0x6b3fed=_0x595c97[_0x43ab4f(0x367)]-0x1,_0x312950;_0x6b3fed>=0x0;_0x6b3fed--)(_0x312950=_0x595c97[_0x6b3fed])&&(_0x374bc9=(_0xffee45?_0x312950(_0x224fe3,_0x39976a,_0x374bc9):_0x312950(_0x374bc9))||_0x374bc9);return _0xffee45&&_0x374bc9&&Un(_0x224fe3,_0x39976a,_0x374bc9),_0x374bc9;},He=(_0x33ae31,_0x32c6ec)=>(_0x387ba1,_0x2f5de1)=>_0x32c6ec(_0x387ba1,_0x2f5de1,_0x33ae31),Wr=(_0x5cb6ff,_0x1fe72e,_0x379764)=>Br(_0x5cb6ff,_0x1fe72e+'',_0x379764);const Fr=_0x17671e(0x308);exports[_0x17671e(0x396)]=class extends a[_0x17671e(0x28c)]{constructor(_0x47a900=Yn,_0x352479,_0x344c24,_0x18eee5,_0x389690){const _0x478c74=_0x17671e;super(),this[_0x478c74(0x506)]=_0x47a900,this[_0x478c74(0x3f4)]=_0x352479,this['_renderManagerService']=_0x344c24,this[_0x478c74(0x27e)]=_0x18eee5,this[_0x478c74(0x573)]=_0x389690;const {..._0x261f7b}=this[_0x478c74(0x506)];this['_configService'][_0x478c74(0x467)](ne,_0x261f7b);}[_0x17671e(0x447)](){const _0x267fd9=_0x17671e;this[_0x267fd9(0x659)](),this[_0x267fd9(0x4e0)]();}[_0x17671e(0x4dc)](){const _0x54022e=_0x17671e;a[_0x54022e(0x605)](this['_injector'],[[Ve]]);}['onRendered'](){this['_registerRenderDependencies']();}[_0x17671e(0x659)](){const _0x34ae58=_0x17671e;var _0x36953e,_0x4fd505,_0x517d8a,_0x4bf31e;this['_injector'][_0x34ae58(0x44d)](a[_0x34ae58(0x1fa)])&&this[_0x34ae58(0x3f4)][_0x34ae58(0x2c9)]('[UniverCollaborationClientPlugin]',_0x34ae58(0x5a8));const _0x5741a9=[[a['IUndoRedoService'],{'useClass':gt}],[exports[_0x34ae58(0x355)]],[yt],[Dt,{'useClass':Pn}],[exports[_0x34ae58(0x4bf)]],[exports['LocalCacheService']],[Q[_0x34ae58(0x589)]],[ke],[Fe],[Be],[We],[Tt],[Ge],[Ye],[bt],[Ke],[Et,{'useClass':(_0x4fd505=(_0x36953e=this['_config'])==null?void 0x0:_0x36953e['socketService'])!=null?_0x4fd505:exports[_0x34ae58(0x488)]}],[p[_0x34ae58(0x1ff)],{'useClass':exports[_0x34ae58(0x436)]}],[a['IAuthzIoService'],{'useClass':exports[_0x34ae58(0x3e3)]}],[ie['IImageIoService'],{'useClass':exports[_0x34ae58(0x611)]}],[exports[_0x34ae58(0x26d)]],[exports[_0x34ae58(0x4d9)]],[exports[_0x34ae58(0x556)]],[Ve],[Oe]];(_0x517d8a=this['_config'])!=null&&_0x517d8a[_0x34ae58(0x316)]&&_0x5741a9[_0x34ae58(0x263)]([qe,{'useClass':Ti}]),a[_0x34ae58(0x2cd)](this['_injector'],a[_0x34ae58(0x5c5)](_0x5741a9,(_0x4bf31e=this[_0x34ae58(0x506)])==null?void 0x0:_0x4bf31e[_0x34ae58(0x4f5)]));}[_0x17671e(0x478)](){const _0x42b99b=_0x17671e;this[_0x42b99b(0x5f1)](this[_0x42b99b(0x314)][_0x42b99b(0x2dd)](a['UniverInstanceType'][_0x42b99b(0x4ca)],[pt])),this[_0x42b99b(0x5f1)](this[_0x42b99b(0x314)][_0x42b99b(0x2dd)](a[_0x42b99b(0x664)]['UNIVER_SHEET'],[St]));}[_0x17671e(0x4e0)](){const _0x4dbe5e=_0x17671e;var _0x4c2ac0,_0x3fa3b6;this[_0x4dbe5e(0x27e)][_0x4dbe5e(0x2a7)](Q['HTTPService'])[_0x4dbe5e(0x617)]({'priority':0x14,'interceptor':Q[_0x4dbe5e(0x569)]({'maxParallel':0x6})}),(_0x4c2ac0=this[_0x4dbe5e(0x506)])!=null&&_0x4c2ac0['enableOfflineEditing']||this[_0x4dbe5e(0x27e)][_0x4dbe5e(0x2a7)](exports[_0x4dbe5e(0x2f5)])[_0x4dbe5e(0x1f5)](),(_0x3fa3b6=this[_0x4dbe5e(0x506)])!=null&&_0x3fa3b6['enableAuthServer']&&a[_0x4dbe5e(0x605)](this[_0x4dbe5e(0x27e)],[[Ge]]),a[_0x4dbe5e(0x605)](this[_0x4dbe5e(0x27e)],[[Ye],[Oe],[exports[_0x4dbe5e(0x4d9)]],[exports[_0x4dbe5e(0x26d)]],[exports[_0x4dbe5e(0x556)]],[Ke]]);}},Wr(exports[_0x17671e(0x396)],_0x17671e(0x296),Fr),exports['UniverCollaborationClientPlugin']=kr([a['DependentOn'](p[_0x17671e(0x423)],Q['UniverNetworkPlugin']),He(0x1,a[_0x17671e(0x431)]),He(0x2,K['IRenderManagerService']),He(0x3,a[_0x17671e(0x52e)](a[_0x17671e(0x29a)])),He(0x4,a[_0x17671e(0x505)])],exports[_0x17671e(0x396)]),exports[_0x17671e(0x402)]=En,exports[_0x17671e(0x3a9)]=rn,exports['COLLAB_WEB_SOCKET_URL_KEY']=Qt,exports[_0x17671e(0x5ce)]=q,exports[_0x17671e(0x63d)]=Cn,exports[_0x17671e(0x40f)]=bt,exports[_0x17671e(0x21d)]=en,exports[_0x17671e(0x378)]=It,exports[_0x17671e(0x24f)]=Et,exports['IURLService']=Dt,exports[_0x17671e(0x35d)]=sn,exports[_0x17671e(0x3c6)]=on,exports[_0x17671e(0x238)]=nn,exports[_0x17671e(0x48b)]=$n,exports[_0x17671e(0x517)]=Jt,exports['SNAPSHOT_URL_KEY']=Zt,exports['SessionStatus']=re,exports[_0x17671e(0x486)]=mn,exports[_0x17671e(0x2f0)]=Pn,exports[_0x17671e(0x1e8)]=ln,exports[_0x17671e(0x56f)]=hn;
|
1
|
+
'use strict';const _0x4a9685=_0x5f2c;(function(_0x5f360c,_0x2dd306){const _0x2d77c2=_0x5f2c,_0xfe0c38=_0x5f360c();while(!![]){try{const _0x5d4038=parseInt(_0x2d77c2(0x1f7))/0x1+-parseInt(_0x2d77c2(0x1fb))/0x2*(-parseInt(_0x2d77c2(0x4e6))/0x3)+-parseInt(_0x2d77c2(0x44f))/0x4+parseInt(_0x2d77c2(0x4e5))/0x5+parseInt(_0x2d77c2(0x3b6))/0x6+-parseInt(_0x2d77c2(0x3ea))/0x7+parseInt(_0x2d77c2(0x4b1))/0x8*(-parseInt(_0x2d77c2(0x1d5))/0x9);if(_0x5d4038===_0x2dd306)break;else _0xfe0c38['push'](_0xfe0c38['shift']());}catch(_0xc7f311){_0xfe0c38['push'](_0xfe0c38['shift']());}}}(_0x2b0a,0xe46fc));var Ln=Object[_0x4a9685(0x377)],xn=(_0x45e995,_0x1471b2,_0x46dff5)=>_0x1471b2 in _0x45e995?Ln(_0x45e995,_0x1471b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46dff5}):_0x45e995[_0x1471b2]=_0x46dff5,I=(_0x3aaf61,_0x3c30c4,_0x567403)=>xn(_0x3aaf61,typeof _0x3c30c4!=_0x4a9685(0x184)?_0x3c30c4+'':_0x3c30c4,_0x567403);Object[_0x4a9685(0x377)](exports,Symbol[_0x4a9685(0x59a)],{'value':_0x4a9685(0x3b8)});const a=require(_0x4a9685(0x1a5)),A=require(_0x4a9685(0x384)),V=require(_0x4a9685(0x54f)),ge=require(_0x4a9685(0x369)),ee=require('@univerjs/ui'),Z=require(_0x4a9685(0x5bb)),S=require(_0x4a9685(0x48d)),jn=require(_0x4a9685(0x1da)),J=require(_0x4a9685(0x3c0)),k=require(_0x4a9685(0x539)),K=require(_0x4a9685(0x46d)),ye=require(_0x4a9685(0x351)),ne=require(_0x4a9685(0x16c)),Pt=require('@univerjs/engine-formula'),Re=require('@univerjs/sheets-ui'),ae=require(_0x4a9685(0x258)),$n=require(_0x4a9685(0x29d)),Zt='SNAPSHOT_SERVER_URL_KEY',Hn=_0x4a9685(0x152),Qt=_0x4a9685(0x442),Bn=_0x4a9685(0x49b),kn=0x7d0,en=_0x4a9685(0x1e8),Wn='ws://127.0.0.1:8000/universer-api/comb/connect',tn=_0x4a9685(0x488),Fn=0x7530,Ct=_0x4a9685(0x56c),nn=0x4e20,Vn=0x4e20,sn=_0x4a9685(0x191),Gn=0x3,rn='LOCAL_CACHE_INTERVAL',Yn=0x3e8,on=_0x4a9685(0x1a8),Kn=_0x4a9685(0x265),an=_0x4a9685(0x49e),qn=_0x4a9685(0x53d);var cn=(_0x14f6b8=>(_0x14f6b8[_0x14f6b8[_0x4a9685(0x268)]=0x0]=_0x4a9685(0x268),_0x14f6b8[_0x14f6b8['OK']=0x1]='OK',_0x14f6b8[_0x14f6b8['INTERNAL_ERROR']=0x2]=_0x4a9685(0x243),_0x14f6b8[_0x14f6b8['PERMISSION_DENIED']=0x3]=_0x4a9685(0x178),_0x14f6b8[_0x14f6b8[_0x4a9685(0x584)]=0x4]=_0x4a9685(0x584),_0x14f6b8[_0x14f6b8[_0x4a9685(0x43c)]=0x5]=_0x4a9685(0x43c),_0x14f6b8[_0x14f6b8[_0x4a9685(0x2b0)]=0x6]=_0x4a9685(0x2b0),_0x14f6b8[_0x14f6b8[_0x4a9685(0x42c)]=0x7]=_0x4a9685(0x42c),_0x14f6b8[_0x14f6b8[_0x4a9685(0x44e)]=0x8]=_0x4a9685(0x44e),_0x14f6b8[_0x14f6b8[_0x4a9685(0x4ac)]=0x9]=_0x4a9685(0x4ac),_0x14f6b8[_0x14f6b8[_0x4a9685(0x21a)]=0x1389]=_0x4a9685(0x21a),_0x14f6b8[_0x14f6b8[_0x4a9685(0x52b)]=0x1771]=_0x4a9685(0x52b),_0x14f6b8[_0x14f6b8[_0x4a9685(0x3a9)]=0x1772]=_0x4a9685(0x3a9),_0x14f6b8[_0x14f6b8[_0x4a9685(0x517)]=0x1773]=_0x4a9685(0x517),_0x14f6b8[_0x14f6b8['APPLY_REJECT']=0x1b59]=_0x4a9685(0x373),_0x14f6b8[_0x14f6b8['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4a9685(0x38d),_0x14f6b8[_0x14f6b8['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4a9685(0x30e),_0x14f6b8[_0x14f6b8['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4a9685(0x16b),_0x14f6b8[_0x14f6b8[_0x4a9685(0x2c8)]=0x1b5d]=_0x4a9685(0x2c8),_0x14f6b8[_0x14f6b8[_0x4a9685(0x511)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x14f6b8[_0x14f6b8[_0x4a9685(0x1f2)]=0x2329]=_0x4a9685(0x1f2),_0x14f6b8[_0x14f6b8[_0x4a9685(0x1bb)]=0x232a]=_0x4a9685(0x1bb),_0x14f6b8[_0x14f6b8[_0x4a9685(0x535)]=0x232b]=_0x4a9685(0x535),_0x14f6b8[_0x14f6b8['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x4a9685(0x547),_0x14f6b8[_0x14f6b8[_0x4a9685(0x5ad)]=0x232d]=_0x4a9685(0x5ad),_0x14f6b8[_0x14f6b8[_0x4a9685(0x447)]=0x2711]=_0x4a9685(0x447),_0x14f6b8[_0x14f6b8[_0x4a9685(0x2fd)]=0x2712]=_0x4a9685(0x2fd),_0x14f6b8[_0x14f6b8[_0x4a9685(0x227)]=0x2713]=_0x4a9685(0x227),_0x14f6b8[_0x14f6b8[_0x4a9685(0x567)]=0x2714]=_0x4a9685(0x567),_0x14f6b8[_0x14f6b8['UNRECOGNIZED']=-0x1]=_0x4a9685(0x4be),_0x14f6b8))(cn||{}),ie=(_0x401808=>(_0x401808[_0x401808['UNIVER_UNKNOWN']=0x0]='UNIVER_UNKNOWN',_0x401808[_0x401808[_0x4a9685(0x22a)]=0x1]=_0x4a9685(0x22a),_0x401808[_0x401808[_0x4a9685(0x1af)]=0x2]=_0x4a9685(0x1af),_0x401808[_0x401808['UNIVER_SLIDE']=0x3]=_0x4a9685(0x518),_0x401808[_0x401808[_0x4a9685(0x433)]=0x4]=_0x4a9685(0x433),_0x401808[_0x401808[_0x4a9685(0x4be)]=-0x1]='UNRECOGNIZED',_0x401808))(ie||{}),G=(_0x5a2263=>(_0x5a2263[_0x5a2263[_0x4a9685(0x41d)]=0x0]=_0x4a9685(0x41d),_0x5a2263[_0x5a2263[_0x4a9685(0x3f5)]=0x1]=_0x4a9685(0x3f5),_0x5a2263[_0x5a2263[_0x4a9685(0x1d3)]=0x2]=_0x4a9685(0x1d3),_0x5a2263[_0x5a2263[_0x4a9685(0x5c2)]=0x3]=_0x4a9685(0x5c2),_0x5a2263[_0x5a2263['INGEST']=0x4]=_0x4a9685(0x3a1),_0x5a2263[_0x5a2263['HEARTBEAT']=0x5]='HEARTBEAT',_0x5a2263[_0x5a2263['RECV']=0x6]=_0x4a9685(0x52e),_0x5a2263[_0x5a2263[_0x4a9685(0x4be)]=-0x1]=_0x4a9685(0x4be),_0x5a2263))(G||{}),Et=(_0x201fc0=>(_0x201fc0[_0x201fc0[_0x4a9685(0x57d)]=0x0]=_0x4a9685(0x57d),_0x201fc0[_0x201fc0['OK']=0x1]='OK',_0x201fc0[_0x201fc0[_0x4a9685(0x5d6)]=0x2]='FAIL',_0x201fc0[_0x201fc0[_0x4a9685(0x4be)]=-0x1]=_0x4a9685(0x4be),_0x201fc0))(Et||{}),ln=(_0x2b63df=>(_0x2b63df[_0x2b63df[_0x4a9685(0x417)]=0x0]='Undefined',_0x2b63df[_0x2b63df[_0x4a9685(0x34c)]=0x1]=_0x4a9685(0x34c),_0x2b63df[_0x2b63df[_0x4a9685(0x4d2)]=0x2]=_0x4a9685(0x4d2),_0x2b63df[_0x2b63df['UnitEmbedded']=0x3]=_0x4a9685(0x3d4),_0x2b63df[_0x2b63df[_0x4a9685(0x1f3)]=0x4]=_0x4a9685(0x1f3),_0x2b63df[_0x2b63df[_0x4a9685(0x4be)]=-0x1]='UNRECOGNIZED',_0x2b63df))(ln||{});const te=_0x4a9685(0x322),zn={};function hn(_0x5d4e9a){const _0x44fe0d=_0x4a9685;var _0x1bb251,_0x77d156,_0x5640ef,_0x18756f,_0x33f382;const _0x2043eb=_0x5d4e9a[_0x44fe0d(0x18f)],_0x548b6f=JSON[_0x44fe0d(0x2af)](_0x2043eb);switch(_0x548b6f['cmd']){case G['HEARTBEAT']:case G[_0x44fe0d(0x3f5)]:{const _0x54fa60=_0x548b6f[_0x44fe0d(0x183)];return{..._0x548b6f,'data':_0x54fa60,'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};}case G[_0x44fe0d(0x1d3)]:{const _0x27bfb5=_0x548b6f['joinRsp'];return{..._0x548b6f,'data':_0x27bfb5,'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};}case G[_0x44fe0d(0x52e)]:{const _0x3cb4be=_0x548b6f[_0x44fe0d(0x5a5)];switch(_0x3cb4be['eventID']){case S[_0x44fe0d(0x35a)][_0x44fe0d(0x5d2)]:return{..._0x548b6f,'data':{..._0x3cb4be,'data':(_0x1bb251=_0x3cb4be['permissionRejEvent'])==null?void 0x0:_0x1bb251['cs']},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)][_0x44fe0d(0x272)]:return{..._0x548b6f,'data':{..._0x3cb4be,'data':(_0x77d156=_0x3cb4be['csAckEvent'])==null?void 0x0:_0x77d156['cs']},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)][_0x44fe0d(0x27c)]:return{..._0x548b6f,'data':{..._0x3cb4be,'data':(_0x5640ef=_0x3cb4be[_0x44fe0d(0x580)])==null?void 0x0:_0x5640ef['cs']},'cmd':_0x548b6f['cmd']};case S['CollaborationEvent']['CHANGESET_REJ']:return{..._0x548b6f,'data':{..._0x3cb4be,'data':(_0x18756f=_0x3cb4be['csRejEvent'])==null?void 0x0:_0x18756f['cs']},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)]['CHANGESET_SHOULD_RETRY']:return{..._0x548b6f,'data':{..._0x3cb4be,'data':(_0x33f382=_0x3cb4be[_0x44fe0d(0x5e0)])==null?void 0x0:_0x33f382['cs']},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)][_0x44fe0d(0x49a)]:return{..._0x548b6f,'data':{..._0x3cb4be,'data':_0x3cb4be[_0x44fe0d(0x5d9)]},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)][_0x44fe0d(0x1ec)]:return{..._0x548b6f,'data':{..._0x3cb4be,'data':_0x3cb4be['joinEvent']},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)]['USERS_LEAVE']:return{..._0x548b6f,'data':{..._0x3cb4be,'data':_0x3cb4be[_0x44fe0d(0x53f)]},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)][_0x44fe0d(0x1c9)]:return{..._0x548b6f,'data':{..._0x3cb4be,'data':_0x3cb4be[_0x44fe0d(0x4b3)]},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)]['LIVESHARE_FETCH_OPERATIONS']:case S[_0x44fe0d(0x35a)][_0x44fe0d(0x25d)]:return{..._0x548b6f,'data':{..._0x3cb4be,'data':_0x3cb4be[_0x44fe0d(0x474)]},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)][_0x44fe0d(0x283)]:return{..._0x548b6f,'data':{..._0x3cb4be,'data':_0x3cb4be[_0x44fe0d(0x4b3)]},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)][_0x44fe0d(0x42e)]:return{..._0x548b6f,'data':_0x3cb4be,'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)]['COMMENT_UPDATE']:return{..._0x548b6f,'data':{..._0x3cb4be,'data':_0x3cb4be[_0x44fe0d(0x425)]},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S['CollaborationEvent'][_0x44fe0d(0x347)]:return{..._0x548b6f,'data':{..._0x3cb4be,'data':_0x3cb4be[_0x44fe0d(0x285)]},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};case S[_0x44fe0d(0x35a)][_0x44fe0d(0x42b)]:return{..._0x548b6f,'data':{..._0x3cb4be,'data':_0x3cb4be[_0x44fe0d(0x4d0)]},'cmd':_0x548b6f[_0x44fe0d(0x5a3)]};default:return _0x548b6f;}}default:return _0x548b6f;}}function _n(_0x29ba33){const _0x307618=_0x4a9685;switch(_0x29ba33[_0x307618(0x5a3)]){case G[_0x307618(0x427)]:case G['HELLO']:return JSON[_0x307618(0x2d1)]({'cmd':_0x29ba33[_0x307618(0x5a3)],'routeKey':_0x29ba33[_0x307618(0x4f2)]});case G['INGEST']:{let _0x594013;switch(_0x29ba33['data'][_0x307618(0x3af)]){case S[_0x307618(0x35a)]['UPDATE_CURSOR']:{_0x594013={'eventID':S[_0x307618(0x35a)][_0x307618(0x49a)],'updateCursorEvent':_0x29ba33[_0x307618(0x18f)][_0x307618(0x18f)]};break;}case S[_0x307618(0x35a)][_0x307618(0x5c3)]:{_0x594013={'eventID':S['CollaborationEvent'][_0x307618(0x5c3)],'leaveEvent':_0x29ba33[_0x307618(0x18f)][_0x307618(0x18f)]};break;}case S[_0x307618(0x35a)][_0x307618(0x1ec)]:{_0x594013={'eventID':S[_0x307618(0x35a)]['USERS_ENTER'],'joinEvent':_0x29ba33[_0x307618(0x18f)][_0x307618(0x18f)]};break;}case S['CollaborationEvent'][_0x307618(0x1c9)]:{_0x594013={'eventID':S[_0x307618(0x35a)][_0x307618(0x1c9)],'liveShareNewHost':_0x29ba33['data'][_0x307618(0x18f)]};break;}case S[_0x307618(0x35a)][_0x307618(0x25d)]:{_0x594013={'eventID':S[_0x307618(0x35a)][_0x307618(0x25d)],'liveShareOperation':_0x29ba33[_0x307618(0x18f)]['data']};break;}case S[_0x307618(0x35a)]['LIVESHARE_TERMINATE']:{_0x594013={'eventID':S[_0x307618(0x35a)][_0x307618(0x283)],'liveShareTerminate':_0x29ba33[_0x307618(0x18f)][_0x307618(0x18f)]};break;}case S['CollaborationEvent'][_0x307618(0x32a)]:{_0x594013={'eventID':S[_0x307618(0x35a)][_0x307618(0x32a)],'liveShareRequestHost':_0x29ba33[_0x307618(0x18f)]['data']};break;}case S[_0x307618(0x35a)][_0x307618(0x40d)]:{_0x594013={'eventID':S[_0x307618(0x35a)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x594013={'eventID':_0x29ba33['data']['eventID']};}return JSON['stringify']({'cmd':_0x29ba33[_0x307618(0x5a3)],'routeKey':_0x29ba33[_0x307618(0x4f2)],'collaMsg':_0x594013});}case G[_0x307618(0x1d3)]:return JSON[_0x307618(0x2d1)]({'cmd':_0x29ba33[_0x307618(0x5a3)],'routeKey':_0x29ba33['routeKey'],'joinReq':_0x29ba33[_0x307618(0x18f)]});case G[_0x307618(0x5c2)]:return JSON['stringify']({'cmd':_0x29ba33[_0x307618(0x5a3)],'routeKey':_0x29ba33[_0x307618(0x4f2)],'leaveReq':_0x29ba33[_0x307618(0x18f)]});default:throw new Error(_0x307618(0x357));}}var Xn=Object[_0x4a9685(0x377)],Jn=Object[_0x4a9685(0x484)],Zn=(_0x1be594,_0x259c43,_0x1c13e3,_0x16ce22)=>{const _0x208297=_0x4a9685;for(var _0x9d7745=_0x16ce22>0x1?void 0x0:_0x16ce22?Jn(_0x259c43,_0x1c13e3):_0x259c43,_0x45033b=_0x1be594[_0x208297(0x530)]-0x1,_0x584ef3;_0x45033b>=0x0;_0x45033b--)(_0x584ef3=_0x1be594[_0x45033b])&&(_0x9d7745=(_0x16ce22?_0x584ef3(_0x259c43,_0x1c13e3,_0x9d7745):_0x584ef3(_0x9d7745))||_0x9d7745);return _0x16ce22&&_0x9d7745&&Xn(_0x259c43,_0x1c13e3,_0x9d7745),_0x9d7745;},we=(_0x3ebd51,_0x4115ee)=>(_0x136d2f,_0x538dc4)=>_0x4115ee(_0x136d2f,_0x538dc4,_0x3ebd51);const bt=a[_0x4a9685(0x1e3)](_0x4a9685(0x55f));function Qn(_0x20aba7,_0x4a42f7,_0x45f844){const _0x4531c1=_0x4a9685;return _0x20aba7+'/'+_0x4a42f7+_0x4531c1(0x33b)+_0x45f844+_0x4531c1(0x199);}exports[_0x4a9685(0x53c)]=class extends a[_0x4a9685(0x261)]{constructor(_0xecb7b,_0x1963c0,_0xfc0bb6,_0x2d7033,_0x1ee8cd){const _0xc8a667=_0x4a9685;super(),this[_0xc8a667(0x23d)]=_0xecb7b,this[_0xc8a667(0x3c1)]=_0x1963c0,this[_0xc8a667(0x294)]=_0xfc0bb6,this[_0xc8a667(0x480)]=_0x2d7033,this['_snapshotServerService']=_0x1ee8cd;}[_0x4a9685(0x332)](_0x19e762){const _0x70e249=_0x4a9685,_0x428da3=this['_ws'][_0x70e249(0x332)](_0x19e762);if(!_0x428da3)throw new Error(_0x70e249(0x1f6));const _0x5549f4=new a[(_0x70e249(0x4b2))](),_0x4fa8b8=new A[(_0x70e249(0x4c3))]();_0x5549f4[_0x70e249(0x42a)](_0x428da3['close$'][_0x70e249(0x419)](_0x617ecc=>_0x4fa8b8['next'](_0x617ecc))),_0x5549f4[_0x70e249(0x42a)](a['toDisposable'](()=>_0x4fa8b8[_0x70e249(0x2f7)]()));const _0x231723=new A[(_0x70e249(0x4c3))]();_0x5549f4[_0x70e249(0x42a)](_0x428da3[_0x70e249(0x37c)]['subscribe'](_0xb183ce=>_0x231723['next'](_0xb183ce))),_0x5549f4[_0x70e249(0x42a)](a[_0x70e249(0x4fd)](()=>_0x231723['complete']()));const _0x25253c=new A[(_0x70e249(0x4c3))]();_0x5549f4[_0x70e249(0x42a)](_0x428da3[_0x70e249(0x1cf)][_0x70e249(0x419)](_0x1cb8f7=>{const _0x3e40d3=hn(_0x1cb8f7);_0x25253c['next'](_0x3e40d3);})),_0x5549f4[_0x70e249(0x42a)](a['toDisposable'](()=>_0x25253c[_0x70e249(0x2f7)]()));let _0x230ad1;const _0x32e2a7=()=>{const _0x94e3ca=_0x70e249;_0x231723[_0x94e3ca(0x503)](new Event(_0x94e3ca(0x182))),_0x4fa8b8[_0x94e3ca(0x503)](new CloseEvent(_0x94e3ca(0x182))),_0x230ad1[_0x94e3ca(0x176)]();};return _0x230ad1={'memberID':'','close$':_0x4fa8b8['asObservable'](),'error$':_0x231723[_0x70e249(0x135)](),'open$':_0x428da3[_0x70e249(0x5d5)],'message$':_0x25253c[_0x70e249(0x135)](),'send':_0x6e4dc=>{const _0x267ebf=_0x70e249;if(_0x6e4dc[_0x267ebf(0x5a3)]===G[_0x267ebf(0x3a1)]){if(_0x6e4dc['data'][_0x267ebf(0x3af)]===S[_0x267ebf(0x35a)][_0x267ebf(0x5eb)]){this[_0x267ebf(0x26f)](_0x230ad1,_0x6e4dc['data'])['catch'](_0x3a00ff=>{const _0x4e2661=_0x267ebf;this[_0x4e2661(0x480)][_0x4e2661(0x3d8)](_0x3a00ff),_0x32e2a7();});return;}if(_0x6e4dc[_0x267ebf(0x18f)][_0x267ebf(0x3af)]===S[_0x267ebf(0x35a)][_0x267ebf(0x2b4)]){const _0x12c3a9=_0x6e4dc[_0x267ebf(0x18f)];this[_0x267ebf(0x4a4)](_0x12c3a9)['then'](_0x430cc1=>{const _0x5007b4=_0x267ebf;_0x25253c['next']({'cmd':G[_0x5007b4(0x52e)],'code':Et['OK'],'routeKey':_0x12c3a9['data'][_0x5007b4(0x197)],'routeType':'','data':{'eventID':S[_0x5007b4(0x35a)][_0x5007b4(0x47b)],'data':{'changesets':_0x430cc1}}});})[_0x267ebf(0x4f9)](_0x5c35fa=>{const _0x2adf3d=_0x267ebf;this[_0x2adf3d(0x480)][_0x2adf3d(0x3d8)](_0x5c35fa),_0x32e2a7();});return;}}_0x428da3[_0x267ebf(0x170)](_n(_0x6e4dc));},'close':()=>{const _0x5569d7=_0x70e249;_0x428da3[_0x5569d7(0x176)](),_0x5549f4[_0x5569d7(0x1d7)]();}},_0x230ad1;}async[_0x4a9685(0x26f)](_0x5d1567,_0x7df8b0){const _0x10b6df=_0x4a9685;var _0x4018b1,_0x151791;const {unitType:_0x6ed9ea,unitID:_0x263e72,changeset:_0x9f83c2}=_0x7df8b0[_0x10b6df(0x18f)],_0x154d36={'unitID':_0x263e72,'memberID':_0x5d1567[_0x10b6df(0x1e5)],'type':_0x6ed9ea,'changeset':S[_0x10b6df(0x424)](_0x9f83c2)},_0xc4d8ab=this['_configService'][_0x10b6df(0x4a1)](on),_0x4a4220=this[_0x10b6df(0x294)][_0x10b6df(0x4a1)](te),_0x3200dd=Qn((_0x151791=(_0x4018b1=_0x4a4220==null?void 0x0:_0x4a4220['collabSubmitChangesetUrl'])!=null?_0x4018b1:_0xc4d8ab)!=null?_0x151791:Kn,_0x6ed9ea,_0x263e72);try{await this[_0x10b6df(0x23d)][_0x10b6df(0x171)](_0x3200dd,{'body':_0x154d36});}catch(_0x1b7e84){throw this[_0x10b6df(0x480)][_0x10b6df(0x3d8)](_0x10b6df(0x404),_0x10b6df(0x165)),_0x1b7e84;}}async['_fetchMissChangesets'](_0x2dc864){const _0x2ae173=_0x4a9685,{unitID:_0x5b0ee0,from:_0x571f2a,to:_0x37849b,unitType:_0xb295d9}=_0x2dc864[_0x2ae173(0x18f)];return(await this['_snapshotServerService']['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5b0ee0,'type':_0xb295d9,'from':_0x571f2a,'to':_0x37849b}))[_0x2ae173(0x2c1)];}},exports[_0x4a9685(0x53c)]=Zn([we(0x0,a[_0x4a9685(0x27a)](Z['HTTPService'])),we(0x1,a[_0x4a9685(0x27a)](Z['WebSocketService'])),we(0x2,a[_0x4a9685(0x3fb)]),we(0x3,a[_0x4a9685(0x2e8)]),we(0x4,S[_0x4a9685(0x188)])],exports['CollaborationSocketService']);const ei='collaboration_new_changeset';function ti(_0x1f671c){const _0x34b9ac=_0x4a9685;return JSON[_0x34b9ac(0x2d1)](_0x1f671c)[_0x34b9ac(0x530)];}class Tt{constructor(){const _0x232f63=_0x4a9685;I(this,_0x232f63(0x262),new A['Subject']()),I(this,'commentUpdate$',this['_commentUpdate$'][_0x232f63(0x135)]());}[_0x4a9685(0x26e)](_0x444124){const _0x5c24c9=_0x4a9685;this['_commentUpdate$'][_0x5c24c9(0x503)](_0x444124);}}var ni=Object[_0x4a9685(0x377)],ii=Object[_0x4a9685(0x484)],si=(_0x50d48a,_0x36e93f,_0x7de9a9,_0x5dacec)=>{const _0x5969e0=_0x4a9685;for(var _0x13c0c7=_0x5dacec>0x1?void 0x0:_0x5dacec?ii(_0x36e93f,_0x7de9a9):_0x36e93f,_0x1eaf5b=_0x50d48a[_0x5969e0(0x530)]-0x1,_0x1d19a9;_0x1eaf5b>=0x0;_0x1eaf5b--)(_0x1d19a9=_0x50d48a[_0x1eaf5b])&&(_0x13c0c7=(_0x5dacec?_0x1d19a9(_0x36e93f,_0x7de9a9,_0x13c0c7):_0x1d19a9(_0x13c0c7))||_0x13c0c7);return _0x5dacec&&_0x13c0c7&&ni(_0x36e93f,_0x7de9a9,_0x13c0c7),_0x13c0c7;},Ut=(_0x6f5f68,_0x223f89)=>(_0x104f65,_0x5ac08e)=>_0x223f89(_0x104f65,_0x5ac08e,_0x6f5f68);exports[_0x4a9685(0x3e1)]=class extends a['Disposable']{constructor(_0x129b6b,_0x4ed26b){const _0x403638=_0x4a9685;super(),I(this,_0x403638(0x59c),new Map()),(this[_0x403638(0x54a)]=_0x129b6b,this[_0x403638(0x31f)]=_0x4ed26b,this['disposeWithMe'](a[_0x403638(0x4fd)](A[_0x403638(0x345)](this['_univerInstanceService'][_0x403638(0x388)](a['UniverInstanceType']['UNIVER_SHEET'])['pipe'](V[_0x403638(0x28a)](_0x3f753e=>_0x3f753e[_0x403638(0x56f)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x403638(0x33e)][_0x403638(0x22a)])[_0x403638(0x172)](V['map'](_0x42744c=>_0x42744c[_0x403638(0x56f)]())),this[_0x403638(0x54a)][_0x403638(0x388)](a[_0x403638(0x33e)]['UNIVER_SLIDE'])['pipe'](V[_0x403638(0x28a)](_0x24056b=>_0x24056b[_0x403638(0x56f)]())))[_0x403638(0x419)](_0x358881=>this[_0x403638(0x1cc)](_0x358881)))));}[_0x4a9685(0x14d)](_0x5e402f){const _0x4d834e=_0x4a9685;this[_0x4d834e(0x31f)][_0x4d834e(0x14d)](_0x5e402f);}[_0x4a9685(0x459)](){const _0x213715=_0x4a9685;return this[_0x213715(0x31f)][_0x213715(0x459)]();}['updateMember'](_0x348313,_0x3b3bf1){const _0x248f54=_0x4a9685;let _0x3710bf=this[_0x248f54(0x59c)]['get'](_0x348313);_0x3710bf||(_0x3710bf=new ri(),this[_0x248f54(0x59c)]['set'](_0x348313,_0x3710bf)),_0x3710bf['updateMember'](_0x3b3bf1);}['removeMember'](_0x255bd7,_0x182056){const _0x1ddfe9=_0x4a9685,_0x4a7aa9=this['_roomMembers'][_0x1ddfe9(0x542)](_0x255bd7);_0x4a7aa9&&_0x4a7aa9[_0x1ddfe9(0x1de)](_0x182056);}[_0x4a9685(0x1c2)](_0x35e715){const _0x4af77=_0x4a9685;return this['_roomMembers'][_0x4af77(0x542)](_0x35e715);}['getMember'](_0x15d990,_0x10d825){const _0x234c5c=_0x4a9685,_0x216696=this['_roomMembers'][_0x234c5c(0x542)](_0x15d990);if(_0x216696)return _0x216696[_0x234c5c(0x5a6)](_0x10d825);}['_removeRoom'](_0x19fe95){const _0x1603bd=_0x4a9685,_0x392016=this[_0x1603bd(0x59c)][_0x1603bd(0x542)](_0x19fe95);_0x392016&&(_0x392016['dispose'](),this[_0x1603bd(0x59c)][_0x1603bd(0x224)](_0x19fe95));}['dispose'](){const _0x200158=_0x4a9685;this[_0x200158(0x59c)][_0x200158(0x38f)](_0x317ed0=>_0x317ed0[_0x200158(0x1d7)]()),this[_0x200158(0x59c)]['clear']();}},exports['MemberService']=si([Ut(0x0,a[_0x4a9685(0x3c5)]),Ut(0x1,a[_0x4a9685(0x27a)](a['UserManagerService']))],exports[_0x4a9685(0x3e1)]);class ri extends a[_0x4a9685(0x261)]{constructor(){const _0x46fd7f=_0x4a9685;super(...arguments),I(this,_0x46fd7f(0x143),new Map());}[_0x4a9685(0x1d7)](){const _0x38eceb=_0x4a9685;this[_0x38eceb(0x143)][_0x38eceb(0x271)]();}[_0x4a9685(0x31e)](_0x43e870){const _0x14723a=_0x4a9685;this[_0x14723a(0x143)][_0x14723a(0x568)](_0x43e870['memberID'],_0x43e870);}[_0x4a9685(0x1de)](_0x332ce9){const _0x3e55f7=_0x4a9685;this[_0x3e55f7(0x143)][_0x3e55f7(0x224)](_0x332ce9);}[_0x4a9685(0x5a6)](_0x118388){const _0xabdc51=_0x4a9685;return this['_members'][_0xabdc51(0x542)](_0x118388);}[_0x4a9685(0x2c0)](){const _0x5225dc=_0x4a9685;return Array[_0x5225dc(0x239)](this[_0x5225dc(0x143)]['values']());}}var oi=Object[_0x4a9685(0x377)],ai=Object[_0x4a9685(0x484)],ci=(_0x39ac44,_0x563e19,_0x50ab2e,_0x34cdbe)=>{const _0x48bd85=_0x4a9685;for(var _0x1bf32f=_0x34cdbe>0x1?void 0x0:_0x34cdbe?ai(_0x563e19,_0x50ab2e):_0x563e19,_0x1f515e=_0x39ac44[_0x48bd85(0x530)]-0x1,_0x50b5f2;_0x1f515e>=0x0;_0x1f515e--)(_0x50b5f2=_0x39ac44[_0x1f515e])&&(_0x1bf32f=(_0x34cdbe?_0x50b5f2(_0x563e19,_0x50ab2e,_0x1bf32f):_0x50b5f2(_0x1bf32f))||_0x1bf32f);return _0x34cdbe&&_0x1bf32f&&oi(_0x563e19,_0x50ab2e,_0x1bf32f),_0x1bf32f;},de=(_0x240b38,_0x377456)=>(_0x4a948c,_0x5266f0)=>_0x377456(_0x4a948c,_0x5266f0,_0x240b38),se=(_0x23278c=>(_0x23278c[_0x23278c[_0x4a9685(0x3a0)]=0x0]=_0x4a9685(0x3a0),_0x23278c[_0x23278c['JOINING']=0x1]=_0x4a9685(0x543),_0x23278c[_0x23278c['OFFLINE']=0x2]=_0x4a9685(0x338),_0x23278c[_0x23278c[_0x4a9685(0x244)]=0x3]=_0x4a9685(0x244),_0x23278c))(se||{});exports[_0x4a9685(0x2d2)]=class extends a[_0x4a9685(0x2c7)]{constructor(_0x257ed3,_0xa5032a,_0x1cc9bd,_0x574612,_0x3759e2,_0xe42d43,_0x4dbefa,_0x1ccbc7,_0x27f264,_0x4f7639){const _0x4ac145=_0x4a9685;super(),I(this,_0x4ac145(0x138),new A[(_0x4ac145(0x563))](0x0)),I(this,_0x4ac145(0x44d),this[_0x4ac145(0x138)][_0x4ac145(0x135)]()),I(this,_0x4ac145(0x50b),new A[(_0x4ac145(0x4c3))]()),I(this,_0x4ac145(0x297),this[_0x4ac145(0x50b)][_0x4ac145(0x135)]()),I(this,_0x4ac145(0x2ef)),I(this,_0x4ac145(0x3df)),I(this,_0x4ac145(0x405)),I(this,_0x4ac145(0x5b5),!0x1),I(this,_0x4ac145(0x33f),null),(this[_0x4ac145(0x18a)]=_0x257ed3,this[_0x4ac145(0x480)]=_0x1cc9bd,this[_0x4ac145(0x5b8)]=_0x574612,this[_0x4ac145(0x3a7)]=_0x3759e2,this['_configService']=_0xe42d43,this['_localeService']=_0x4dbefa,this[_0x4ac145(0x1f9)]=_0x1ccbc7,this[_0x4ac145(0x346)]=_0x27f264,this[_0x4ac145(0x1d9)]=_0x4f7639,this[_0x4ac145(0x5b5)]=!!this[_0x4ac145(0x1d9)],_0xa5032a[_0x4ac145(0x172)](A[_0x4ac145(0x5e8)](this['dispose$']))['subscribe'](_0x1c0cb5=>{const _0x198fa6=_0x4ac145;var _0x33f8db;typeof _0x1c0cb5>'u'||(this[_0x198fa6(0x2ef)]=_0x1c0cb5,_0x1c0cb5?(this[_0x198fa6(0x260)](_0x1c0cb5),this['_socketMessageSubscription']=_0x1c0cb5[_0x198fa6(0x1cf)][_0x198fa6(0x419)](_0x208027=>{const _0x3b023b=_0x198fa6;_0x208027[_0x3b023b(0x4f2)]===this[_0x3b023b(0x18a)]&&this[_0x3b023b(0x59f)](_0x208027);})):(this[_0x198fa6(0x1b7)](),this['_sessionStatus$']['next'](0x2),(_0x33f8db=this['_socketMessageSubscription'])==null||_0x33f8db['unsubscribe'](),this[_0x198fa6(0x3df)]=null));}),this[_0x4ac145(0x3c7)](this[_0x4ac145(0x5b8)][_0x4ac145(0x281)](()=>{const _0x1c60df=_0x4ac145;var _0x2ee6a1;(_0x2ee6a1=this['_socket'])==null||_0x2ee6a1[_0x1c60df(0x170)]({'cmd':G[_0x1c60df(0x5c2)],'data':{'roomID':this[_0x1c60df(0x18a)]}});})));}get['sessionStatus'](){const _0x257c7c=_0x4a9685;return this[_0x257c7c(0x138)][_0x257c7c(0x1ae)]();}[_0x4a9685(0x204)](){const _0x3bd8bf=_0x4a9685;var _0x169532,_0x3691ab;return(_0x3691ab=(_0x169532=this['_socket'])==null?void 0x0:_0x169532[_0x3bd8bf(0x1e5)])!=null?_0x3691ab:null;}['dispose'](){const _0x534565=_0x4a9685;super[_0x534565(0x1d7)](),this[_0x534565(0x5c9)][_0x534565(0x503)](),this['dispose$']['complete']();}['close'](){const _0x25a19f=_0x4a9685;var _0x45a88a,_0xcddd46;this[_0x25a19f(0x1b7)](),(_0x45a88a=this[_0x25a19f(0x2ef)])==null||_0x45a88a[_0x25a19f(0x170)]({'cmd':G['LEAVE'],'data':{'roomID':this[_0x25a19f(0x18a)]}}),(_0xcddd46=this[_0x25a19f(0x2ef)])==null||_0xcddd46[_0x25a19f(0x176)](),this[_0x25a19f(0x50b)][_0x25a19f(0x2f7)](),this[_0x25a19f(0x138)][_0x25a19f(0x2f7)](),this[_0x25a19f(0x1d7)]();}[_0x4a9685(0x59f)](_0x461e28){const _0xca78b3=_0x4a9685;_0x461e28['cmd']===G[_0xca78b3(0x1d3)]?this[_0xca78b3(0x58c)](_0x461e28):_0x461e28[_0xca78b3(0x5a3)]===G[_0xca78b3(0x52e)]&&this[_0xca78b3(0x479)](_0x461e28);}[_0x4a9685(0x260)](_0x207b69){const _0x3363b4=_0x4a9685;this[_0x3363b4(0x138)][_0x3363b4(0x503)](0x1),_0x207b69[_0x3363b4(0x170)]({'cmd':G[_0x3363b4(0x1d3)],'routeKey':this[_0x3363b4(0x18a)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3363b4(0x18a)]}]}});}['_onJoinRoomEvent'](_0x2010d8){const _0x509920=_0x4a9685;var _0x4739e1;if(_0x2010d8['code']===Et[_0x509920(0x5d6)]){this['_messageService'][_0x509920(0x36b)]({'type':ge['MessageType'][_0x509920(0x174)],'content':this[_0x509920(0x39c)]['t']('session.room-full')}),this[_0x509920(0x138)][_0x509920(0x503)](0x2);return;}this['_sessionStatus$']['next'](0x3);const _0x6eb6f9=(_0x4739e1=_0x2010d8[_0x509920(0x18f)]['roomInfos'][this[_0x509920(0x18a)]])==null?void 0x0:_0x4739e1[_0x509920(0x1e4)];_0x6eb6f9&&_0x6eb6f9[_0x509920(0x38f)](_0x192297=>this['_memberService'][_0x509920(0x31e)](this['_unitID'],_0x192297));}[_0x4a9685(0x479)](_0x293577){const _0x2cf106=_0x4a9685;try{const _0x557abd=_0x293577[_0x2cf106(0x18f)];switch(_0x557abd[_0x2cf106(0x3af)]){case S[_0x2cf106(0x35a)][_0x2cf106(0x1ec)]:this[_0x2cf106(0x34a)](_0x557abd),this[_0x2cf106(0x50b)][_0x2cf106(0x503)](_0x557abd);break;case S[_0x2cf106(0x35a)][_0x2cf106(0x5c3)]:this['_onUserLeave'](_0x557abd),this[_0x2cf106(0x50b)]['next'](_0x557abd);break;case S['CollaborationEvent']['CHANGESET_ACK']:case S[_0x2cf106(0x35a)][_0x2cf106(0x398)]:this[_0x2cf106(0x5ac)](),this['_clearCollaborationTimeoutTimer'](),this['_event$'][_0x2cf106(0x503)](_0x557abd);break;case S[_0x2cf106(0x35a)][_0x2cf106(0x42e)]:this[_0x2cf106(0x480)][_0x2cf106(0x3d8)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x2cf106(0x2d1)](_0x557abd)),this[_0x2cf106(0x50b)][_0x2cf106(0x503)](_0x557abd);break;case S[_0x2cf106(0x35a)][_0x2cf106(0x38a)]:this['_commentService'][_0x2cf106(0x26e)](_0x557abd[_0x2cf106(0x18f)]),this[_0x2cf106(0x50b)][_0x2cf106(0x503)](_0x557abd);break;default:this['_event$'][_0x2cf106(0x503)](_0x557abd);}}catch(_0x4d1e7f){this[_0x2cf106(0x480)]['error'](_0x4d1e7f,_0x293577);}}['_onUserJoin'](_0x16a835){const _0x2b2812=_0x4a9685;this['_memberService'][_0x2b2812(0x31e)](this[_0x2b2812(0x18a)],_0x16a835[_0x2b2812(0x18f)]);}[_0x4a9685(0x31b)](_0x2aefb0){const _0x16a645=_0x4a9685;this[_0x16a645(0x1f9)][_0x16a645(0x1de)](this['_unitID'],_0x2aefb0[_0x16a645(0x18f)][_0x16a645(0x1e5)]);}async[_0x4a9685(0x170)](_0x26628d,_0x385c69){const _0x225509=_0x4a9685;if(this[_0x225509(0x450)]!==0x3||!this['_socket'])throw new Error(_0x225509(0x515));try{_0x26628d[_0x225509(0x3af)]===S[_0x225509(0x35a)]['SUBMIT_CHANGESET']&&(this[_0x225509(0x28f)](),this[_0x225509(0x548)](_0x26628d)),this['_socket']['send']({'cmd':G[_0x225509(0x3a1)],'routeKey':_0x385c69,'routeType':'','data':_0x26628d});}catch(_0x246136){this['_logService'][_0x225509(0x3d8)](_0x246136);}}[_0x4a9685(0x28f)](){const _0x43438e=_0x4a9685;var _0x1cf6ce;this['_collaborationTimeoutTimer']=window[_0x43438e(0x595)](()=>{const _0x187d0b=_0x43438e;this[_0x187d0b(0x405)]=null,this['_messageService']['show']({'type':ge[_0x187d0b(0x2e3)][_0x187d0b(0x2d0)],'content':this[_0x187d0b(0x39c)]['t']('session.collaboration-timeout')});},(_0x1cf6ce=this['_configService'][_0x43438e(0x4a1)](Ct))!=null?_0x1cf6ce:nn);}[_0x4a9685(0x278)](){const _0x5aece3=_0x4a9685;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5aece3(0x405)]),this[_0x5aece3(0x405)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x54a588){const _0x4275e3=_0x4a9685;if(!this[_0x4275e3(0x5b5)])return;const {data:_0x204a6d}=_0x54a588,{unitID:_0x1d8ec2,changeset:_0x3548c1}=_0x204a6d,{mutations:_0x4e2931,type:_0xb7aea7}=_0x3548c1;this[_0x4275e3(0x33f)]={'unitId':_0x1d8ec2,'type':_0xb7aea7,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':ti(_0x4e2931)};}[_0x4a9685(0x5ac)](){const _0x3f6353=_0x4a9685;if(this[_0x3f6353(0x5b5)]){if(!this[_0x3f6353(0x33f)]){this[_0x3f6353(0x480)][_0x3f6353(0x3d8)](_0x3f6353(0x404),_0x3f6353(0x157));return;}this['_telemetryInfo'][_0x3f6353(0x26c)]=performance[_0x3f6353(0x358)](),this[_0x3f6353(0x33f)][_0x3f6353(0x301)]=this[_0x3f6353(0x33f)][_0x3f6353(0x26c)]-this['_telemetryInfo'][_0x3f6353(0x5ab)],this[_0x3f6353(0x1d9)][_0x3f6353(0x15a)](ei,this['_telemetryInfo']),this[_0x3f6353(0x33f)]=null;}}[_0x4a9685(0x1b7)](){this['_telemetryInfo']=null;}},exports['CollaborationSession']=ci([de(0x2,a[_0x4a9685(0x2e8)]),de(0x3,ee['IBeforeCloseService']),de(0x4,ee[_0x4a9685(0x27d)]),de(0x5,a[_0x4a9685(0x3fb)]),de(0x6,a['Inject'](a[_0x4a9685(0x4a8)])),de(0x7,a[_0x4a9685(0x27a)](exports['MemberService'])),de(0x8,a[_0x4a9685(0x27a)](Tt)),de(0x9,a[_0x4a9685(0x59b)](jn[_0x4a9685(0x483)]))],exports[_0x4a9685(0x2d2)]);var li=Object[_0x4a9685(0x377)],hi=Object['getOwnPropertyDescriptor'],_i=(_0xeeea51,_0x128b59,_0x2e14a8,_0x12327a)=>{const _0x2468b9=_0x4a9685;for(var _0x5ac518=_0x12327a>0x1?void 0x0:_0x12327a?hi(_0x128b59,_0x2e14a8):_0x128b59,_0x1b1799=_0xeeea51[_0x2468b9(0x530)]-0x1,_0x57ac1e;_0x1b1799>=0x0;_0x1b1799--)(_0x57ac1e=_0xeeea51[_0x1b1799])&&(_0x5ac518=(_0x12327a?_0x57ac1e(_0x128b59,_0x2e14a8,_0x5ac518):_0x57ac1e(_0x5ac518))||_0x5ac518);return _0x12327a&&_0x5ac518&&li(_0x128b59,_0x2e14a8,_0x5ac518),_0x5ac518;},Ee=(_0x1db3c5,_0x4a61df)=>(_0x4d36c0,_0x498cfa)=>_0x4a61df(_0x4d36c0,_0x498cfa,_0x1db3c5);exports['CollaborationSessionService']=class extends a[_0x4a9685(0x261)]{constructor(_0x11fd66,_0x15e69a,_0x1f15f7,_0x5e66a6,_0x264414,_0x2a514f){const _0x4edd9c=_0x4a9685;super(),I(this,_0x4edd9c(0x491),new A[(_0x4edd9c(0x563))](void 0x0)),I(this,_0x4edd9c(0x495),this['_socket$'][_0x4edd9c(0x135)]()),I(this,_0x4edd9c(0x2d4),null),I(this,'_sessions',new Map()),I(this,'_status$',new A[(_0x4edd9c(0x563))](se[_0x4edd9c(0x3a0)])),I(this,_0x4edd9c(0x4ba),this[_0x4edd9c(0x366)]['asObservable']()),I(this,_0x4edd9c(0x392),!0x1),I(this,_0x4edd9c(0x3c9)),I(this,_0x4edd9c(0x4f1),0x0),I(this,_0x4edd9c(0x349)),I(this,'_timeoutTimer'),(this[_0x4edd9c(0x372)]=_0x11fd66,this[_0x4edd9c(0x39c)]=_0x15e69a,this[_0x4edd9c(0x3a7)]=_0x1f15f7,this[_0x4edd9c(0x480)]=_0x5e66a6,this[_0x4edd9c(0x294)]=_0x264414,this[_0x4edd9c(0x48b)]=_0x2a514f,this[_0x4edd9c(0x39f)]());}get[_0x4a9685(0x2ef)](){const _0x1b9ee5=_0x4a9685;return this['_socket$'][_0x1b9ee5(0x1ae)]();}[_0x4a9685(0x39f)](){const _0x3d7d2c=_0x4a9685;this[_0x3d7d2c(0x57b)](),this['_listenToOnlineEvent']();}[_0x4a9685(0x1d7)](){const _0x53f35d=_0x4a9685;super['dispose'](),this[_0x53f35d(0x577)][_0x53f35d(0x38f)](_0x2f9b6d=>_0x2f9b6d[_0x53f35d(0x1d7)]()),this[_0x53f35d(0x577)]['clear'](),this[_0x53f35d(0x366)][_0x53f35d(0x2f7)]();}async[_0x4a9685(0x461)](_0x4eeb6c){const _0x1f63f3=_0x4a9685;if(this[_0x1f63f3(0x577)]['has'](_0x4eeb6c))return this[_0x1f63f3(0x577)][_0x1f63f3(0x542)](_0x4eeb6c);this[_0x1f63f3(0x160)]();const _0x206205=this[_0x1f63f3(0x372)]['createInstance'](exports['CollaborationSession'],_0x4eeb6c,this[_0x1f63f3(0x491)][_0x1f63f3(0x135)]());return this[_0x1f63f3(0x577)]['set'](_0x4eeb6c,_0x206205),_0x206205;}['closeSession'](_0xe6278e){const _0x14a245=_0x4a9685;var _0x31cd7f;const _0x3bccf9=this[_0x14a245(0x577)][_0x14a245(0x542)](_0xe6278e);_0x3bccf9&&(this[_0x14a245(0x577)]['delete'](_0xe6278e),_0x3bccf9['close']()),this[_0x14a245(0x577)][_0x14a245(0x2d6)]||(_0x31cd7f=this['_socket'])==null||_0x31cd7f[_0x14a245(0x176)]();}[_0x4a9685(0x24a)](){const _0x55eca2=_0x4a9685;this[_0x55eca2(0x4f1)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x55eca2(0x3c9)]),this['_retryConnectingTimer']=null),this[_0x55eca2(0x24c)]();}[_0x4a9685(0x1b3)](){const _0x2c5e23=_0x4a9685;var _0xddd346,_0x40b1a0;const _0x44e80a=this[_0x2c5e23(0x294)]['getConfig'](en),_0xd7ef34=this[_0x2c5e23(0x294)][_0x2c5e23(0x4a1)](te),_0x2f621c=(_0x40b1a0=(_0xddd346=_0xd7ef34==null?void 0x0:_0xd7ef34[_0x2c5e23(0x253)])!=null?_0xddd346:_0x44e80a)!=null?_0x40b1a0:Wn,_0x1702d8=this[_0x2c5e23(0x48b)][_0x2c5e23(0x332)](_0x2f621c);return this[_0x2c5e23(0x2d4)]=_0x1702d8,_0x1702d8;}['_tryEnsureSocket'](){const _0x4c5249=_0x4a9685;var _0x48c4d5,_0x14b36d;try{const _0x26a5f4=(_0x14b36d=(_0x48c4d5=this['_socket'])!=null?_0x48c4d5:this[_0x4c5249(0x2d4)])!=null?_0x14b36d:this[_0x4c5249(0x1b3)]();if(_0x26a5f4){const _0x805f17=_0x26a5f4[_0x4c5249(0x170)];_0x26a5f4[_0x4c5249(0x170)]=_0x3fdb26=>(this['_rescheduleHeartbeat'](),_0x805f17['apply'](_0x26a5f4,[_0x3fdb26])),_0x26a5f4[_0x4c5249(0x1cf)][_0x4c5249(0x419)](_0x41417b=>this['_onMessage'](_0x26a5f4,_0x41417b)),_0x26a5f4[_0x4c5249(0x37c)]['pipe'](V[_0x4c5249(0x3a5)](0x1))['subscribe'](_0x36da5e=>this[_0x4c5249(0x480)]['error'](_0x4c5249(0x37e),_0x36da5e)),_0x26a5f4[_0x4c5249(0x5d5)][_0x4c5249(0x172)](V[_0x4c5249(0x3a5)](0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x26a5f4);}),_0x26a5f4['close$']['pipe'](V[_0x4c5249(0x3a5)](0x1))[_0x4c5249(0x419)](_0x2d05c8=>{const _0x1ba83b=_0x4c5249;this[_0x1ba83b(0x480)][_0x1ba83b(0x37a)](_0x1ba83b(0x25a),'socket\x20close',_0x2d05c8),this['_onConnectionFailed']();});}}catch(_0x4598fd){this[_0x4c5249(0x480)][_0x4c5249(0x3d8)](_0x4598fd),this[_0x4c5249(0x254)]();}}[_0x4a9685(0x408)](_0x7636c3){const _0x5dd8df=_0x4a9685;this[_0x5dd8df(0x480)][_0x5dd8df(0x37a)](_0x5dd8df(0x25a),_0x5dd8df(0x56d)),_0x7636c3[_0x5dd8df(0x170)]({'cmd':G[_0x5dd8df(0x3f5)]}),this[_0x5dd8df(0x4fb)]();}[_0x4a9685(0x57b)](){const _0x41b34d=_0x4a9685;window[_0x41b34d(0x368)](_0x41b34d(0x277),()=>this[_0x41b34d(0x263)]());}[_0x4a9685(0x263)](){const _0x411675=_0x4a9685;this[_0x411675(0x392)]=!0x1,this[_0x411675(0x2d4)]=null,this[_0x411675(0x366)][_0x411675(0x503)](se[_0x411675(0x338)]),this[_0x411675(0x491)][_0x411675(0x503)](null),this[_0x411675(0x299)](),this[_0x411675(0x33c)]();}[_0x4a9685(0x254)](){const _0x247087=_0x4a9685;var _0x1b5153;this[_0x247087(0x263)](),this[_0x247087(0x4f1)]<((_0x1b5153=this[_0x247087(0x294)]['getConfig'](sn))!=null?_0x1b5153:Gn)?(this['_messageService'][_0x247087(0x36b)]({'key':'collaboration-session-retry','type':ge[_0x247087(0x2e3)][_0x247087(0x174)],'content':this[_0x247087(0x39c)]['t'](_0x247087(0x573))}),this[_0x247087(0x24c)]()):this[_0x247087(0x3a7)][_0x247087(0x36b)]({'key':_0x247087(0x508),'type':ge[_0x247087(0x2e3)][_0x247087(0x2d0)],'content':this[_0x247087(0x39c)]['t'](_0x247087(0x386))});}[_0x4a9685(0x2bb)](){const _0x496128=_0x4a9685,_0x2d4207=()=>{const _0xa80011=_0x5f2c;this['_socket']||this[_0xa80011(0x24a)]();},_0xa65b88=()=>{const _0x539a9d=_0x5f2c;this[_0x539a9d(0x2ef)]||document[_0x539a9d(0x361)]===_0x539a9d(0x15b)||this['reconnect']();};window['addEventListener']('online',_0x2d4207),document[_0x496128(0x368)](_0x496128(0x2dc),_0xa65b88);}['_tryReconnect'](){const _0x5a8269=_0x4a9685;var _0x4d05a3;const _0x350b32=this['_retryCount'],_0x5e2a5a=this[_0x5a8269(0x294)][_0x5a8269(0x4a1)](te),_0x1d87bc=_0x350b32===0x0?0x0:((_0x4d05a3=_0x5e2a5a==null?void 0x0:_0x5e2a5a[_0x5a8269(0x295)])!=null?_0x4d05a3:Vn)*0x2**_0x350b32;this[_0x5a8269(0x3c9)]=window[_0x5a8269(0x595)](()=>{const _0x709bc8=_0x5a8269;clearTimeout(this[_0x709bc8(0x3c9)]),this['_retryConnectingTimer']=null,this[_0x709bc8(0x160)]();},_0x1d87bc),this[_0x5a8269(0x4f1)]+=0x1;}[_0x4a9685(0x571)](_0x5c98a4,_0xd59711){const _0x34aaba=_0x4a9685,{cmd:_0xd7460c}=_0xd59711;_0xd7460c===G[_0x34aaba(0x3f5)]&&!this['_socketReady']&&(_0x5c98a4['memberID']=_0xd59711[_0x34aaba(0x18f)]['memberID'],this[_0x34aaba(0x491)][_0x34aaba(0x503)](_0x5c98a4),this[_0x34aaba(0x366)][_0x34aaba(0x503)](se['ONLINE']),this[_0x34aaba(0x392)]=!0x0,this[_0x34aaba(0x2d4)]=null),_0xd7460c===G[_0x34aaba(0x427)]&&this[_0x34aaba(0x299)](),this[_0x34aaba(0x4fb)]();}[_0x4a9685(0x4fb)](){const _0x54eafb=_0x4a9685;var _0x1d326d;this['_clearHeartbeatTimer'](),this[_0x54eafb(0x349)]=window['setTimeout'](()=>this[_0x54eafb(0x1f0)](),(_0x1d326d=this[_0x54eafb(0x294)][_0x54eafb(0x4a1)](tn))!=null?_0x1d326d:Fn);}['_sendHeartbeat'](){const _0x1858b5=_0x4a9685;this[_0x1858b5(0x2ef)][_0x1858b5(0x170)]({'cmd':G['HEARTBEAT']}),this[_0x1858b5(0x264)]();}[_0x4a9685(0x264)](){const _0x52dd42=_0x4a9685;var _0x16cd7c;this[_0x52dd42(0x363)]=window['setTimeout'](()=>this[_0x52dd42(0x254)](),(_0x16cd7c=this[_0x52dd42(0x294)][_0x52dd42(0x4a1)](Ct))!=null?_0x16cd7c:nn);}[_0x4a9685(0x33c)](){const _0x1a74db=_0x4a9685;this[_0x1a74db(0x349)]!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x1a74db(0x349)]=null);}[_0x4a9685(0x299)](){const _0x592c2b=_0x4a9685;this[_0x592c2b(0x363)]!=null&&(clearTimeout(this[_0x592c2b(0x363)]),this['_timeoutTimer']=null);}},exports['CollaborationSessionService']=_i([Ee(0x0,a[_0x4a9685(0x27a)](a[_0x4a9685(0x17d)])),Ee(0x1,a['Inject'](a[_0x4a9685(0x4a8)])),Ee(0x2,ee[_0x4a9685(0x27d)]),Ee(0x3,a[_0x4a9685(0x2e8)]),Ee(0x4,a[_0x4a9685(0x3fb)]),Ee(0x5,bt)],exports[_0x4a9685(0x2a7)]);const Y=[];for(let s=0x0;s<0x100;++s)Y['push']((s+0x100)[_0x4a9685(0x350)](0x10)[_0x4a9685(0x2f2)](0x1));function ui(_0x556254,_0x3e7a31=0x0){const _0x83e8a3=_0x4a9685;return(Y[_0x556254[_0x3e7a31+0x0]]+Y[_0x556254[_0x3e7a31+0x1]]+Y[_0x556254[_0x3e7a31+0x2]]+Y[_0x556254[_0x3e7a31+0x3]]+'-'+Y[_0x556254[_0x3e7a31+0x4]]+Y[_0x556254[_0x3e7a31+0x5]]+'-'+Y[_0x556254[_0x3e7a31+0x6]]+Y[_0x556254[_0x3e7a31+0x7]]+'-'+Y[_0x556254[_0x3e7a31+0x8]]+Y[_0x556254[_0x3e7a31+0x9]]+'-'+Y[_0x556254[_0x3e7a31+0xa]]+Y[_0x556254[_0x3e7a31+0xb]]+Y[_0x556254[_0x3e7a31+0xc]]+Y[_0x556254[_0x3e7a31+0xd]]+Y[_0x556254[_0x3e7a31+0xe]]+Y[_0x556254[_0x3e7a31+0xf]])[_0x83e8a3(0x5c4)]();}let Je;const di=new Uint8Array(0x10);function fi(){const _0x18936d=_0x4a9685;if(!Je){if(typeof crypto>'u'||!crypto['getRandomValues'])throw new Error(_0x18936d(0x4ee));Je=crypto[_0x18936d(0x1c8)][_0x18936d(0x151)](crypto);}return Je(di);}const vi=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x4a9685(0x3a4)][_0x4a9685(0x151)](crypto),Mt={'randomUUID':vi};function mi(_0x51692a,_0x38185a,_0x4f5f25){const _0x1b3080=_0x4a9685;if(Mt[_0x1b3080(0x3a4)]&&!_0x38185a&&!_0x51692a)return Mt[_0x1b3080(0x3a4)]();_0x51692a=_0x51692a||{};const _0x179502=_0x51692a[_0x1b3080(0x588)]||(_0x51692a[_0x1b3080(0x550)]||fi)();return _0x179502[0x6]=_0x179502[0x6]&0xf|0x40,_0x179502[0x8]=_0x179502[0x8]&0x3f|0x80,ui(_0x179502);}var Si=Object[_0x4a9685(0x377)],pi=Object[_0x4a9685(0x484)],gi=(_0x2b387b,_0x3ff0aa,_0x38c8eb,_0x19f33c)=>{for(var _0x43dc87=_0x19f33c>0x1?void 0x0:_0x19f33c?pi(_0x3ff0aa,_0x38c8eb):_0x3ff0aa,_0x4d8f47=_0x2b387b['length']-0x1,_0xb1b877;_0x4d8f47>=0x0;_0x4d8f47--)(_0xb1b877=_0x2b387b[_0x4d8f47])&&(_0x43dc87=(_0x19f33c?_0xb1b877(_0x3ff0aa,_0x38c8eb,_0x43dc87):_0xb1b877(_0x43dc87))||_0x43dc87);return _0x19f33c&&_0x43dc87&&Si(_0x3ff0aa,_0x38c8eb,_0x43dc87),_0x43dc87;},Ze=(_0x59722d,_0x4b1a1c)=>(_0x1ca1bd,_0x2b755e)=>_0x4b1a1c(_0x1ca1bd,_0x2b755e,_0x59722d);let Be=class{constructor(_0x33a6a4,_0x56076b,_0x5ec7fa){const _0x358508=_0x4a9685;this[_0x358508(0x372)]=_0x33a6a4,this['_transformService']=_0x56076b,this[_0x358508(0x582)]=_0x5ec7fa;}[_0x4a9685(0x4fc)](_0x4c3c49){const _0x438717=_0x4a9685;this['_transformUndoRedoStack'](_0x4c3c49),this[_0x438717(0x20b)](_0x4c3c49);}[_0x4a9685(0x203)](_0x498c36){const _0x23e570=_0x4a9685,{unitID:_0x5a00b2}=_0x498c36,_0x17a810=this[_0x23e570(0x582)][_0x23e570(0x31a)](_0x5a00b2)[_0x23e570(0x326)](J[_0x23e570(0x35b)]),{redoCache:_0x2857b7}=_0x17a810[_0x23e570(0x1eb)]();if(_0x2857b7[_0x23e570(0x530)]===0x0)return _0x498c36;let _0x233c20=a[_0x23e570(0x426)]['deepClone'](_0x498c36[_0x23e570(0x1b8)][0x0]);for(let _0x3260d0=0x0;_0x3260d0<_0x2857b7[_0x23e570(0x530)];_0x3260d0++){const _0x5b0747={'id':_0x23e570(0x3cf),'params':{..._0x2857b7[_0x3260d0]}},_0x4c3c5f=this[_0x23e570(0x4f6)][_0x23e570(0x23e)](_0x233c20,_0x5b0747,!0x1);if(S['isTransformMutationFailure'](_0x4c3c5f))throw _0x4c3c5f['error'];_0x233c20=_0x4c3c5f[_0x23e570(0x208)];}return{...a[_0x23e570(0x426)]['deepClone'](_0x498c36),'mutations':[_0x233c20]};}[_0x4a9685(0x3e3)](_0x43c060){const _0x4a5c3b=_0x4a9685,{unitID:_0x22afbe}=_0x43c060,_0x42a87b=this[_0x4a5c3b(0x582)][_0x4a5c3b(0x31a)](_0x22afbe)[_0x4a5c3b(0x326)](J[_0x4a5c3b(0x35b)]),{undoCache:_0x468a6b,redoCache:_0x5ed74d}=_0x42a87b[_0x4a5c3b(0x1eb)]();if(_0x468a6b[_0x4a5c3b(0x530)]===0x0||_0x5ed74d[_0x4a5c3b(0x530)]===0x0)return;const _0x5a10e3=[],_0x1564cd=[];let _0x1e376a=a['Tools']['deepClone'](_0x43c060[_0x4a5c3b(0x1b8)][0x0]),_0x595551=a['Tools'][_0x4a5c3b(0x513)](_0x43c060[_0x4a5c3b(0x1b8)][0x0]);for(let _0x2c0226=_0x468a6b[_0x4a5c3b(0x530)]-0x1;_0x2c0226>=0x0;_0x2c0226--){const _0x305d1a={'id':'doc.mutation.rich-text-editing','params':{..._0x468a6b[_0x2c0226]}},_0x5a1879={'id':_0x4a5c3b(0x3cf),'params':{..._0x5ed74d[_0x2c0226]}},_0x48999b=this['_transformService'][_0x4a5c3b(0x23e)](_0x1e376a,_0x305d1a,!0x1),_0x40ce50=this['_transformService']['transformMutation'](_0x595551,_0x5a1879,!0x1);if(S[_0x4a5c3b(0x498)](_0x48999b))throw _0x48999b[_0x4a5c3b(0x3d8)];if(S['isTransformMutationFailure'](_0x40ce50))throw _0x40ce50[_0x4a5c3b(0x3d8)];_0x5a10e3[_0x4a5c3b(0x1d6)](_0x48999b[_0x4a5c3b(0x403)][_0x4a5c3b(0x4da)]),_0x1564cd['unshift'](_0x40ce50['m2Prime'][_0x4a5c3b(0x4da)]),_0x1e376a=_0x48999b['m1Prime'],_0x595551=_0x40ce50[_0x4a5c3b(0x208)];}_0x42a87b[_0x4a5c3b(0x19d)]({'undoCache':_0x5a10e3,'redoCache':_0x1564cd});}['_transformPreviousActiveRange'](_0x347593){const _0x47a046=_0x4a9685,{unitID:_0x54bcbb}=_0x347593,_0x3fb0b2=this[_0x47a046(0x582)]['getRenderById'](_0x54bcbb)['with'](J['DocIMEInputManagerService']),_0x143772=_0x3fb0b2['getActiveRange']();if(_0x143772==null)return;const _0x4b0d74=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x347593['unitID'],'actions':null,'textRanges':[_0x143772]}}],_0x1d43ad=this[_0x47a046(0x4f6)][_0x47a046(0x4ed)](_0x347593,_0x4b0d74);if(!S['isTransformMutationsWithChangesetSuccess'](_0x1d43ad))throw _0x1d43ad[_0x47a046(0x3d8)];const _0x505c18=_0x1d43ad['m2Prime'][0x0][_0x47a046(0x4da)]['textRanges'];Array[_0x47a046(0x36d)](_0x505c18)&&_0x505c18[_0x47a046(0x530)]&&_0x3fb0b2[_0x47a046(0x4eb)](_0x505c18[0x0]);}};Be=gi([Ze(0x0,a[_0x4a9685(0x27a)](a[_0x4a9685(0x17d)])),Ze(0x1,S[_0x4a9685(0x315)]),Ze(0x2,K[_0x4a9685(0x147)])],Be);var Ii=Object[_0x4a9685(0x377)],Ci=Object[_0x4a9685(0x484)],Ei=(_0x1dee14,_0x5c3f9e,_0x47b8fb,_0x16b544)=>{for(var _0x233afb=_0x16b544>0x1?void 0x0:_0x16b544?Ci(_0x5c3f9e,_0x47b8fb):_0x5c3f9e,_0x58f1bb=_0x1dee14['length']-0x1,_0x499d1e;_0x58f1bb>=0x0;_0x58f1bb--)(_0x499d1e=_0x1dee14[_0x58f1bb])&&(_0x233afb=(_0x16b544?_0x499d1e(_0x5c3f9e,_0x47b8fb,_0x233afb):_0x499d1e(_0x233afb))||_0x233afb);return _0x16b544&&_0x233afb&&Ii(_0x5c3f9e,_0x47b8fb,_0x233afb),_0x233afb;},Pe=(_0x2fae49,_0x41a866)=>(_0x2926d8,_0xe3de3a)=>_0x41a866(_0x2926d8,_0xe3de3a,_0x2fae49);exports['LocalCacheService']=class extends a['Disposable']{constructor(_0x18b4ba,_0x123008,_0x4340c5,_0x144b40,_0x80ed36){const _0x8b7983=_0x4a9685;super(),I(this,_0x8b7983(0x5f8),new Map()),I(this,_0x8b7983(0x523),new Map()),I(this,'_disabled',!0x1),(this[_0x8b7983(0x294)]=_0x18b4ba,this['_localStorageService']=_0x123008,this[_0x8b7983(0x5b8)]=_0x4340c5,this['_localeService']=_0x144b40,this[_0x8b7983(0x26d)]=_0x80ed36,this[_0x8b7983(0x5b2)]());}[_0x4a9685(0x360)](){const _0x3d7bb0=_0x4a9685;this[_0x3d7bb0(0x2d8)]=!0x0;}[_0x4a9685(0x306)](){const _0x35f485=_0x4a9685;this[_0x35f485(0x2d8)]=!0x1;}[_0x4a9685(0x1d7)](){const _0x52a793=_0x4a9685;this['exhaustSavingTask']()[_0x52a793(0x5ce)](()=>super['dispose']());}async[_0x4a9685(0x206)](_0x644f7e){const _0x1965c0=_0x4a9685;return this[_0x1965c0(0x2d8)]?null:this['_localStorageService'][_0x1965c0(0x286)](At(_0x644f7e));}async[_0x4a9685(0x546)](_0x2e7ed8,_0x52d89e){const _0x511d4d=_0x4a9685;return!!this[_0x511d4d(0x48f)][_0x511d4d(0x2a4)](_0x2e7ed8,_0x52d89e);}[_0x4a9685(0x14f)](_0x418772,_0x2dde02,_0x1c5281,_0x13e8ec){const _0x37cc85=_0x4a9685,_0x1b4a2e=this[_0x37cc85(0x26d)][_0x37cc85(0x3e5)](_0x418772);this[_0x37cc85(0x5f8)][_0x37cc85(0x568)](_0x418772,{'unitID':_0x418772,'type':_0x2dde02,'awaitingChangeset':_0x1c5281,'mutations':_0x13e8ec,'rev':_0x1b4a2e}),this[_0x37cc85(0x523)][_0x37cc85(0x1d2)](_0x418772)||this['_scheduleSaving'](_0x418772);}['_scheduleSaving'](_0x2906ec){const _0x4b2ce2=_0x4a9685,_0x2d6cc5=this[_0x4b2ce2(0x4b6)]();_0x2d6cc5===0x0?this['_saveCache'](_0x2906ec):this[_0x4b2ce2(0x523)]['set'](_0x2906ec,setTimeout(()=>this[_0x4b2ce2(0x1aa)](_0x2906ec),_0x2d6cc5));}[_0x4a9685(0x4b6)](){const _0x1202e8=_0x4a9685;var _0x1517f4;return(_0x1517f4=this[_0x1202e8(0x294)]['getConfig'](rn))!=null?_0x1517f4:Yn;}['_saveCache'](_0x341736){const _0x2099cf=_0x4a9685,_0x2e840e=this[_0x2099cf(0x523)][_0x2099cf(0x542)](_0x341736);return _0x2e840e!==void 0x0&&window[_0x2099cf(0x3b3)](_0x2e840e),this[_0x2099cf(0x48f)][_0x2099cf(0x2a4)](At(_0x341736),this[_0x2099cf(0x5f8)][_0x2099cf(0x542)](_0x341736))['then'](()=>this[_0x2099cf(0x523)][_0x2099cf(0x224)](_0x341736));}async[_0x4a9685(0x45e)](){const _0x572c69=_0x4a9685,_0x8c8a47=[];this[_0x572c69(0x523)][_0x572c69(0x38f)]((_0x21815c,_0x5252d2)=>{const _0x5d884b=_0x572c69;window['clearTimeout'](_0x21815c),_0x8c8a47[_0x5d884b(0x3d6)](this['_saveCache'](_0x5252d2)[_0x5d884b(0x5ce)](()=>{const _0x3ece81=_0x5d884b;this[_0x3ece81(0x523)]['delete'](_0x5252d2);}));}),await Promise[_0x572c69(0x38c)](_0x8c8a47);}[_0x4a9685(0x5b2)](){const _0x2638bf=_0x4a9685;this[_0x2638bf(0x3c7)](this['_beforeCloseService']['registerBeforeClose'](()=>{const _0x69a0ca=_0x2638bf;if(this['_saveTaskMap'][_0x69a0ca(0x2d6)])return this[_0x69a0ca(0x39c)]['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x4a9685(0x1a0)]=Ei([Pe(0x0,a['IConfigService']),Pe(0x1,a[_0x4a9685(0x477)]),Pe(0x2,ee[_0x4a9685(0x13d)]),Pe(0x3,a[_0x4a9685(0x27a)](a[_0x4a9685(0x4a8)])),Pe(0x4,a[_0x4a9685(0x27a)](S[_0x4a9685(0x1a9)]))],exports[_0x4a9685(0x1a0)]);function At(_0x4468a4){const _0x504c49=_0x4a9685;return _0x504c49(0x34e)+_0x4468a4;}var bi=Object['defineProperty'],Ti=Object[_0x4a9685(0x484)],Ri=(_0xd02ad4,_0x4350a9,_0x3c8c80,_0x2a1ad1)=>{const _0x19c742=_0x4a9685;for(var _0xac2eb3=_0x2a1ad1>0x1?void 0x0:_0x2a1ad1?Ti(_0x4350a9,_0x3c8c80):_0x4350a9,_0x24172d=_0xd02ad4[_0x19c742(0x530)]-0x1,_0x40b5f8;_0x24172d>=0x0;_0x24172d--)(_0x40b5f8=_0xd02ad4[_0x24172d])&&(_0xac2eb3=(_0x2a1ad1?_0x40b5f8(_0x4350a9,_0x3c8c80,_0xac2eb3):_0x40b5f8(_0xac2eb3))||_0xac2eb3);return _0x2a1ad1&&_0xac2eb3&&bi(_0x4350a9,_0x3c8c80,_0xac2eb3),_0xac2eb3;},Qe=(_0x2945a9,_0x4f0ec2)=>(_0x20aaa6,_0x18d63c)=>_0x4f0ec2(_0x20aaa6,_0x18d63c,_0x2945a9);function yi(_0x1875cb){const _0x16c6e9=_0x4a9685,{unitID:_0x4ed5bc,mutations:_0x1b19ad}=_0x1875cb;return{'unitId':_0x4ed5bc,'subUnitId':_0x1b19ad[0x0][_0x16c6e9(0x4da)][_0x16c6e9(0x2ae)]};}let ke=class{constructor(_0xffb2b2,_0x4bc537,_0x1050e3){const _0x370206=_0x4a9685;this[_0x370206(0x372)]=_0xffb2b2,this[_0x370206(0x4f6)]=_0x4bc537,this[_0x370206(0x2e0)]=_0x1050e3;}[_0x4a9685(0x58f)](_0x5b82d8){const _0x46f0ca=_0x4a9685;var _0x195103,_0x36968c,_0x423ba1,_0x52541d;const _0x428524=this[_0x46f0ca(0x372)][_0x46f0ca(0x542)](k[_0x46f0ca(0x31c)]),{unitId:_0x4b2630,subUnitId:_0x3fa50c}=yi(_0x5b82d8),_0x205d00=_0x428524[_0x46f0ca(0x356)](_0x4b2630)['getCurrentSelections'](),_0x5a0991=(_0x36968c=(_0x195103=this[_0x46f0ca(0x2e0)][_0x46f0ca(0x30a)](_0x4b2630))==null?void 0x0:_0x195103[_0x46f0ca(0x4d4)]())==null?void 0x0:_0x36968c[_0x46f0ca(0x180)]();if(_0x205d00[_0x46f0ca(0x530)]===0x0||!_0x4b2630||!_0x3fa50c)return;const _0x547b06=[{'id':k['SetSelectionsOperation']['id'],'params':{'unitId':_0x4b2630,'subUnitId':_0x5a0991,'selections':a[_0x46f0ca(0x426)][_0x46f0ca(0x513)](_0x205d00)}}],_0x514003=this['_transformService']['transformMutationsWithChangeset'](_0x5b82d8,_0x547b06);if(!S[_0x46f0ca(0x453)](_0x514003))throw _0x514003['error'];const _0x434299=(_0x52541d=(_0x423ba1=_0x514003['m2Prime'][0x0])==null?void 0x0:_0x423ba1['params'])==null?void 0x0:_0x52541d[_0x46f0ca(0x5c6)];if(Array[_0x46f0ca(0x36d)](_0x434299)&&_0x434299[_0x46f0ca(0x530)]){if(_0x434299[_0x46f0ca(0x530)]===_0x547b06[0x0][_0x46f0ca(0x4da)][_0x46f0ca(0x5c6)][_0x46f0ca(0x530)]&&_0x434299[_0x46f0ca(0x4b0)]((_0x1f775a,_0x125a66)=>a['Rectangle'][_0x46f0ca(0x47c)](_0x1f775a['range'],_0x547b06[0x0][_0x46f0ca(0x4da)][_0x46f0ca(0x5c6)][_0x125a66]['range'])))return;this[_0x46f0ca(0x372)][_0x46f0ca(0x542)](a[_0x46f0ca(0x449)])[_0x46f0ca(0x5f4)](k[_0x46f0ca(0x25b)]['id'],{'unitId':_0x4b2630,'subUnitId':_0x5a0991,'selections':_0x434299});}}};ke=Ri([Qe(0x0,a[_0x4a9685(0x27a)](a[_0x4a9685(0x17d)])),Qe(0x1,S[_0x4a9685(0x315)]),Qe(0x2,a['IUniverInstanceService'])],ke);const qe=a[_0x4a9685(0x1e3)](_0x4a9685(0x46f));var un=(_0x5da832=>(_0x5da832[_0x5da832[_0x4a9685(0x5e9)]=0x0]=_0x4a9685(0x5e9),_0x5da832[_0x5da832[_0x4a9685(0x521)]=0x1]=_0x4a9685(0x521),_0x5da832))(un||{});const Nt=0x7530,Lt='ACTIVE_UNIT_EVENT_CHANNEL';class Oi extends a[_0x4a9685(0x261)]{constructor(){const _0x5bb621=_0x4a9685;super(),I(this,'_id',a['Tools']['generateRandomId']()),I(this,_0x5bb621(0x29b),new Set()),I(this,_0x5bb621(0x1b0),new Map()),I(this,_0x5bb621(0x340),null),I(this,_0x5bb621(0x512),new Map()),I(this,_0x5bb621(0x181),new Map()),this[_0x5bb621(0x3f4)]();}[_0x4a9685(0x1d7)](){const _0x84ce54=_0x4a9685;super[_0x84ce54(0x1d7)](),this[_0x84ce54(0x512)][_0x84ce54(0x38f)]((_0x3550d7,_0x51762a)=>this['_removeClearOtherTimer'](_0x51762a)),this[_0x84ce54(0x340)]&&window[_0x84ce54(0x44a)](this[_0x84ce54(0x340)]);}[_0x4a9685(0x5f6)](_0x10c898){const _0x5b19a3=_0x4a9685;return this['_ensureSubject'](_0x10c898)[_0x5b19a3(0x172)](A[_0x5b19a3(0x4f4)]());}[_0x4a9685(0x223)](_0x51bf57){const _0x50c0f9=_0x4a9685;this['_selfUnitIDs'][_0x50c0f9(0x2d6)]===0x0&&this['_scheduleHeartbeat'](),this[_0x50c0f9(0x29b)][_0x50c0f9(0x42a)](_0x51bf57),this[_0x50c0f9(0x24f)]({'type':0x0,'memberID':this[_0x50c0f9(0x4d3)],'unitIDs':[_0x51bf57],'isForwarded':!0x1});}[_0x4a9685(0x32d)](_0x360fe3){const _0x16a719=_0x4a9685;this['_selfUnitIDs']['delete'](_0x360fe3),this[_0x16a719(0x29b)][_0x16a719(0x2d6)]===0x0&&this[_0x16a719(0x340)]&&window[_0x16a719(0x44a)](this[_0x16a719(0x340)]);}[_0x4a9685(0x3f4)](){const _0x380ef5=_0x4a9685;this['disposeWithMe'](a[_0x380ef5(0x4fd)](A[_0x380ef5(0x59e)](window,_0x380ef5(0x3de))[_0x380ef5(0x419)](_0x2036e6=>{const _0x80da7c=_0x380ef5;if(_0x2036e6[_0x80da7c(0x303)]!==Lt||!_0x2036e6[_0x80da7c(0x3c6)])return;const _0xd7d83b=JSON[_0x80da7c(0x2af)](_0x2036e6[_0x80da7c(0x3c6)]);this[_0x80da7c(0x34f)](_0xd7d83b);}))),window[_0x380ef5(0x368)](_0x380ef5(0x5f3),()=>this['_send']({'type':0x1,'memberID':this[_0x380ef5(0x4d3)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}[_0x4a9685(0x34f)](_0x3b30ca){const _0xdf50d7=_0x4a9685;switch(_0x3b30ca[_0xdf50d7(0x3e4)]){case 0x0:this[_0xdf50d7(0x47d)](_0x3b30ca);break;case 0x1:this[_0xdf50d7(0x18e)](_0x3b30ca);break;case 0x2:this[_0xdf50d7(0x32b)](_0x3b30ca);break;}}['_handleJoinEvent'](_0x4c39a1){const _0x4fd06c=_0x4a9685,{unitIDs:_0x4d68fd,memberID:_0x102f7a,isForwarded:_0x35cd4e}=_0x4c39a1;_0x4d68fd[_0x4fd06c(0x38f)](_0x33e3cc=>{const _0x3a157a=_0x4fd06c;if(!_0x35cd4e&&this[_0x3a157a(0x1b0)][_0x3a157a(0x1d2)](_0x33e3cc)&&this[_0x3a157a(0x2bd)](_0x33e3cc)[_0x3a157a(0x503)](0x1),!this[_0x3a157a(0x1b0)]['has'](_0x33e3cc)||!this['_unitOnClients'][_0x3a157a(0x542)](_0x33e3cc)[_0x3a157a(0x1d2)](_0x102f7a)){const _0x29bb21=this[_0x3a157a(0x1b0)][_0x3a157a(0x542)](_0x33e3cc)||new Set();_0x29bb21[_0x3a157a(0x42a)](_0x102f7a),this[_0x3a157a(0x1b0)][_0x3a157a(0x568)](_0x33e3cc,_0x29bb21),this[_0x3a157a(0x56b)](_0x102f7a);}}),_0x35cd4e||this['_send']({'type':0x0,'memberID':this[_0x4fd06c(0x4d3)],'unitIDs':[...this[_0x4fd06c(0x29b)]],'isForwarded':!0x0});}[_0x4a9685(0x56b)](_0x5a4d27){const _0x269d31=_0x4a9685;this[_0x269d31(0x15e)](_0x5a4d27);const _0x3ab673=window['setTimeout'](()=>{const _0x459e81=_0x269d31;this['_unitOnClients'][_0x459e81(0x38f)](_0x32a957=>{_0x32a957['delete'](_0x5a4d27);});},Nt*0x2);this[_0x269d31(0x512)]['set'](_0x5a4d27,_0x3ab673);}[_0x4a9685(0x15e)](_0x24ae2c){const _0x32d806=_0x4a9685;if(this['_clearOtherTimers'][_0x32d806(0x1d2)](_0x24ae2c)){const _0x47a220=this[_0x32d806(0x512)]['get'](_0x24ae2c);_0x47a220&&window[_0x32d806(0x3b3)](_0x47a220),this['_clearOtherTimers'][_0x32d806(0x568)](_0x24ae2c,null);}}[_0x4a9685(0x18e)](_0x337fed){const _0xd81760=_0x4a9685,{memberID:_0x4cbea3,unitIDs:_0x368bc8}=_0x337fed;_0x368bc8[_0xd81760(0x38f)](_0x2ab4f3=>{const _0x38d146=_0xd81760;var _0x3567a3;const _0x25649a=this[_0x38d146(0x1b0)]['get'](_0x2ab4f3);_0x25649a&&(_0x25649a[_0x38d146(0x224)](_0x4cbea3),(_0x3567a3=this[_0x38d146(0x2bd)](_0x2ab4f3))==null||_0x3567a3[_0x38d146(0x503)](_0x25649a[_0x38d146(0x2d6)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4cbea3);}['_handleHeartbeatEvent'](_0x33dbf8){const _0x46f47b=_0x4a9685;this[_0x46f47b(0x56b)](_0x33dbf8[_0x46f47b(0x1e5)]);}[_0x4a9685(0x24f)](_0x2ad9ce){const _0x5d99c1=_0x4a9685;localStorage[_0x5d99c1(0x2a4)](Lt,JSON[_0x5d99c1(0x2d1)](_0x2ad9ce));}[_0x4a9685(0x1ca)](){const _0x326676=_0x4a9685;this['_heartbeatTimer']=window[_0x326676(0x4c2)](()=>{const _0x28aa65=_0x326676;this[_0x28aa65(0x24f)]({'type':0x2,'memberID':this[_0x28aa65(0x4d3)]});},Nt);}[_0x4a9685(0x2bd)](_0x399c0d){const _0x4b2a7b=_0x4a9685;return this[_0x4b2a7b(0x181)][_0x4b2a7b(0x1d2)](_0x399c0d)||this[_0x4b2a7b(0x181)]['set'](_0x399c0d,new A[(_0x4b2a7b(0x563))](0x0)),this[_0x4b2a7b(0x181)][_0x4b2a7b(0x542)](_0x399c0d);}}var Di=Object[_0x4a9685(0x377)],wi=Object[_0x4a9685(0x484)],Pi=(_0x2ce326,_0x128f59,_0x481486,_0x564bc1)=>{const _0x50b53a=_0x4a9685;for(var _0x47307a=_0x564bc1>0x1?void 0x0:_0x564bc1?wi(_0x128f59,_0x481486):_0x128f59,_0x4cab10=_0x2ce326[_0x50b53a(0x530)]-0x1,_0x1ce078;_0x4cab10>=0x0;_0x4cab10--)(_0x1ce078=_0x2ce326[_0x4cab10])&&(_0x47307a=(_0x564bc1?_0x1ce078(_0x128f59,_0x481486,_0x47307a):_0x1ce078(_0x47307a))||_0x47307a);return _0x564bc1&&_0x47307a&&Di(_0x128f59,_0x481486,_0x47307a),_0x47307a;},et=(_0x189759,_0x543ff2)=>(_0x547fdb,_0x56dcef)=>_0x543ff2(_0x547fdb,_0x56dcef,_0x189759);let We=class{constructor(_0x284419,_0x8ab758,_0x4b9f1c){const _0x47bd8f=_0x4a9685;this['_injector']=_0x284419,this['_transformService']=_0x8ab758,this[_0x47bd8f(0x4c7)]=_0x4b9f1c;}['transformStateCache'](_0x23131a){const _0x1db5d3=_0x4a9685;this[_0x1db5d3(0x4ec)](_0x23131a);}[_0x4a9685(0x203)](_0x281e59){const _0x1c9305=_0x4a9685,{unitID:_0x55094}=_0x281e59,{collaboration:_0xdd29c2}=this[_0x1c9305(0x4c7)]['getStateCache'](_0x55094);if(_0xdd29c2[_0x1c9305(0x530)]===0x0)return _0x281e59;let _0x50272c=a[_0x1c9305(0x426)][_0x1c9305(0x513)](_0x281e59[_0x1c9305(0x1b8)][0x0]);for(let _0x373f15=0x0;_0x373f15<_0xdd29c2[_0x1c9305(0x530)];_0x373f15++){const _0x6b058={'id':_0x1c9305(0x3cf),'params':{'unitId':_0xdd29c2[_0x373f15]['unitId'],..._0xdd29c2[_0x373f15]['redoState']}},_0x3c8ebf=this[_0x1c9305(0x4f6)][_0x1c9305(0x23e)](_0x50272c,_0x6b058,!0x1);if(S['isTransformMutationFailure'](_0x3c8ebf))throw _0x3c8ebf[_0x1c9305(0x3d8)];_0x50272c=_0x3c8ebf[_0x1c9305(0x208)];}return{...a[_0x1c9305(0x426)][_0x1c9305(0x513)](_0x281e59),'mutations':[_0x50272c]};}['_transformHistoryAndStateStack'](_0x2ada99){const _0x2cad81=_0x4a9685,{unitID:_0xab18c7}=_0x2ada99,{history:_0x20bfcf,collaboration:_0x3124a6}=this['_docStateChangeManagerService'][_0x2cad81(0x201)](_0xab18c7);if(_0x20bfcf['length']===0x0&&_0x3124a6[_0x2cad81(0x530)]===0x0)return;const _0x5411ba=[],_0x2c2681=[];let _0x238843=a[_0x2cad81(0x426)][_0x2cad81(0x513)](_0x2ada99['mutations'][0x0]),_0x502d4c=a[_0x2cad81(0x426)][_0x2cad81(0x513)](_0x2ada99[_0x2cad81(0x1b8)][0x0]);for(let _0x5d3aca=_0x20bfcf[_0x2cad81(0x530)]-0x1;_0x5d3aca>=0x0;_0x5d3aca--){const _0xd2cbe={'id':_0x2cad81(0x3cf),'params':{'unitId':_0x20bfcf[_0x5d3aca]['unitId'],..._0x20bfcf[_0x5d3aca][_0x2cad81(0x42f)]}},_0x3f04a6={'id':_0x2cad81(0x3cf),'params':{'unitId':_0x20bfcf[_0x5d3aca][_0x2cad81(0x2de)],..._0x20bfcf[_0x5d3aca][_0x2cad81(0x3ae)]}},_0x266002=this[_0x2cad81(0x4f6)][_0x2cad81(0x23e)](_0x238843,_0xd2cbe,!0x1),_0x4305dc=this[_0x2cad81(0x4f6)][_0x2cad81(0x23e)](_0x502d4c,_0x3f04a6,!0x1);if(S['isTransformMutationFailure'](_0x266002))throw _0x266002['error'];if(S[_0x2cad81(0x498)](_0x4305dc))throw _0x4305dc[_0x2cad81(0x3d8)];_0x5411ba[_0x2cad81(0x1d6)]({..._0x20bfcf[_0x5d3aca],'undoState':_0x266002[_0x2cad81(0x403)][_0x2cad81(0x4da)],'redoState':_0x4305dc[_0x2cad81(0x403)]['params']}),_0x238843=_0x266002[_0x2cad81(0x208)],_0x502d4c=_0x4305dc[_0x2cad81(0x208)];}_0x238843=a['Tools'][_0x2cad81(0x513)](_0x2ada99[_0x2cad81(0x1b8)][0x0]),_0x502d4c=a['Tools'][_0x2cad81(0x513)](_0x2ada99['mutations'][0x0]);for(let _0x42be31=_0x3124a6[_0x2cad81(0x530)]-0x1;_0x42be31>=0x0;_0x42be31--){const _0x17ebbb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x3124a6[_0x42be31][_0x2cad81(0x2de)],..._0x3124a6[_0x42be31]['undoState']}},_0x31a0aa={'id':_0x2cad81(0x3cf),'params':{'unitId':_0x3124a6[_0x42be31][_0x2cad81(0x2de)],..._0x3124a6[_0x42be31][_0x2cad81(0x3ae)]}},_0x52614f=this[_0x2cad81(0x4f6)]['transformMutation'](_0x238843,_0x17ebbb,!0x1),_0xba3b3b=this[_0x2cad81(0x4f6)]['transformMutation'](_0x502d4c,_0x31a0aa,!0x1);if(S[_0x2cad81(0x498)](_0x52614f))throw _0x52614f[_0x2cad81(0x3d8)];if(S[_0x2cad81(0x498)](_0xba3b3b))throw _0xba3b3b[_0x2cad81(0x3d8)];_0x2c2681[_0x2cad81(0x1d6)]({..._0x3124a6[_0x42be31],'undoState':_0x52614f['m2Prime'][_0x2cad81(0x4da)],'redoState':_0xba3b3b[_0x2cad81(0x403)][_0x2cad81(0x4da)]}),_0x238843=_0x52614f[_0x2cad81(0x208)],_0x502d4c=_0xba3b3b[_0x2cad81(0x208)];}this['_docStateChangeManagerService'][_0x2cad81(0x215)](_0xab18c7,{'history':_0x5411ba,'collaboration':_0x2c2681});}};We=Pi([et(0x0,a[_0x4a9685(0x27a)](a[_0x4a9685(0x17d)])),et(0x1,S['ITransformService']),et(0x2,a[_0x4a9685(0x27a)](J[_0x4a9685(0x492)]))],We);function dn(_0x3f164a){let _0x4835e5='';for(const _0x1ed311 of _0x3f164a){const {startOffset:_0x2ffa8d,endOffset:_0x5a3a46,isActive:_0x3c268e,rangeType:_0x3f5837,segmentId:_0x58e97f,segmentPage:_0x1962e4}=_0x1ed311;_0x4835e5['length']&&(_0x4835e5+=','),_0x4835e5+=_0x2ffa8d+':'+_0x5a3a46+':'+(_0x3c268e?'1':'0')+':'+_0x3f5837+':'+_0x58e97f+':'+_0x1962e4;}return _0x4835e5;}function Ui(_0x2e295a){const _0x57841c=_0x4a9685,_0x3cc27b=_0x2e295a[_0x57841c(0x4d8)](','),_0x49552a=[];for(const _0x12fe1d of _0x3cc27b){const [_0x5804c6,_0xd7ee7,_0x3a97c0,_0x2ecf3a,_0x1491b9,_0x796114]=_0x12fe1d[_0x57841c(0x4d8)](':');_0x49552a['push']({'startOffset':Number(_0x5804c6),'endOffset':Number(_0xd7ee7),'collapsed':_0x5804c6===_0xd7ee7,'isActive':_0x3a97c0==='1','rangeType':_0x2ecf3a===a[_0x57841c(0x528)][_0x57841c(0x43b)]?a[_0x57841c(0x528)][_0x57841c(0x43b)]:a[_0x57841c(0x528)]['RECT'],'segmentId':typeof _0x1491b9==_0x57841c(0x3b2)?String(_0x1491b9):'','segmentPage':Number(_0x796114!=null?_0x796114:-0x1)});}return _0x49552a[_0x57841c(0x2fe)](_0x40cf85=>_0x40cf85[_0x57841c(0x4bf)])||(_0x49552a[0x0]['isActive']=!0x0),_0x49552a;}class Rt extends a[_0x4a9685(0x2c7)]{constructor(){const _0x3f1cf8=_0x4a9685;super(...arguments),I(this,_0x3f1cf8(0x3bd),new A['BehaviorSubject'](null)),I(this,_0x3f1cf8(0x20a),this[_0x3f1cf8(0x3bd)][_0x3f1cf8(0x135)]());}[_0x4a9685(0x5bc)](_0x38e726){const _0x3c3f10=_0x4a9685,{unitID:_0x2f7e1d,memberID:_0x301798,textRanges:_0x25947e}=_0x38e726,_0x3d015d=dn(_0x25947e);if(_0x3d015d==='')return;const _0x572bfa={'unitID':_0x2f7e1d,'memberID':_0x301798,'selection':_0x3d015d};this[_0x3c3f10(0x3bd)]['next'](_0x572bfa);}}var Mi=Object['defineProperty'],Ai=Object[_0x4a9685(0x484)],Ni=(_0x3842a0,_0x19c5b0,_0x2e259c,_0x4de77d)=>{for(var _0x1cc09f=_0x4de77d>0x1?void 0x0:_0x4de77d?Ai(_0x19c5b0,_0x2e259c):_0x19c5b0,_0x17c360=_0x3842a0['length']-0x1,_0x36d689;_0x17c360>=0x0;_0x17c360--)(_0x36d689=_0x3842a0[_0x17c360])&&(_0x1cc09f=(_0x4de77d?_0x36d689(_0x19c5b0,_0x2e259c,_0x1cc09f):_0x36d689(_0x1cc09f))||_0x1cc09f);return _0x4de77d&&_0x1cc09f&&Mi(_0x19c5b0,_0x2e259c,_0x1cc09f),_0x1cc09f;},xt=(_0x2da396,_0x3e4205)=>(_0x1844cd,_0x23b80c)=>_0x3e4205(_0x1844cd,_0x23b80c,_0x2da396);let Fe=class{constructor(_0xffc2db,_0x390673){const _0x481fd1=_0x4a9685;this[_0x481fd1(0x372)]=_0xffc2db,this[_0x481fd1(0x4f6)]=_0x390673;}['transformSelections'](_0x54a1a4){const _0x4fa9b1=_0x4a9685;var _0x5c852f;const _0x26ddc6=this['_injector']['get'](ye[_0x4fa9b1(0x1f8)]),_0x50ca38=(_0x5c852f=_0x26ddc6[_0x4fa9b1(0x231)]())!=null?_0x5c852f:[];if(_0x50ca38[_0x4fa9b1(0x530)]===0x0)return;const _0xc81740=_0x54a1a4[_0x4fa9b1(0x197)],_0x51fef6=[{'id':_0x4fa9b1(0x3cf),'params':{'unitId':_0xc81740,'actions':null,'textRanges':_0x50ca38}}],_0x131f1c=this['_transformService'][_0x4fa9b1(0x4ed)](_0x54a1a4,_0x51fef6);if(!S['isTransformMutationsWithChangesetSuccess'](_0x131f1c))throw _0x131f1c[_0x4fa9b1(0x3d8)];const _0x222c6f=_0x131f1c[_0x4fa9b1(0x403)][0x0][_0x4fa9b1(0x4da)][_0x4fa9b1(0x236)];Array[_0x4fa9b1(0x36d)](_0x222c6f)&&_0x222c6f['length']&&_0x26ddc6[_0x4fa9b1(0x30c)](_0x222c6f,{'unitId':_0xc81740,'subUnitId':_0xc81740},!0x1);}};Fe=Ni([xt(0x0,a[_0x4a9685(0x27a)](a[_0x4a9685(0x17d)])),xt(0x1,S[_0x4a9685(0x315)])],Fe);const Li=new Set([k[_0x4a9685(0x251)]['id']]);function jt(_0x274244,_0xb9397e,_0x230d10,_0x32f43f,_0x2cf73e){const _0x2ad3cc=_0x4a9685;var _0x1b82f5,_0x5db2e4,_0x35292c,_0x4b543f;const _0x49cc14=[];for(const _0x43a25c of _0x274244)if(Li[_0x2ad3cc(0x1d2)](_0x43a25c['id'])){if(_0x49cc14[_0x2ad3cc(0x530)]>0x0)break;_0x49cc14[_0x2ad3cc(0x3d6)](_0x43a25c);break;}else _0x49cc14['push'](_0x43a25c);const _0x30b8ae=(_0x5db2e4=(_0x1b82f5=_0x2cf73e[_0x2ad3cc(0x459)]())==null?void 0x0:_0x1b82f5[_0x2ad3cc(0x545)])!=null?_0x5db2e4:_0x2ad3cc(0x1c5),_0x25d65f=(_0x4b543f=(_0x35292c=_0x2cf73e[_0x2ad3cc(0x459)]())==null?void 0x0:_0x35292c[_0x2ad3cc(0x1e5)])!=null?_0x4b543f:_0x2ad3cc(0x1c5);return{'changeset':{'unitID':_0xb9397e,'type':S['mapDocumentTypeToUniverType'](_0x230d10[_0x2ad3cc(0x19b)](_0xb9397e)),'baseRev':_0x32f43f[_0x2ad3cc(0x3e5)](_0xb9397e),'revision':0x0,'userID':_0x30b8ae,'memberID':_0x25d65f,'mutations':_0x49cc14},'pendingMutations':_0x274244['slice'](_0x49cc14[_0x2ad3cc(0x530)])};}function xi(_0x3a1eba,_0x23db0a,_0x19ff95,_0x4a4902,_0x2a35ac){const _0x56f407=_0x4a9685;var _0x2ff8c7,_0x4b3fa8,_0x2255fe,_0x54f91a;const _0x2204f4=[_0x3a1eba[_0x56f407(0x2a2)]((_0x59a728,_0x149d80)=>{const _0x1f482e=_0x56f407;var _0x14cda9;const {id:_0x51879a}=_0x59a728,{id:_0x447943,type:_0x562e17}=_0x149d80,_0x17e3a2=(_0x14cda9=_0x59a728['params'])!=null?_0x14cda9:{'actions':null},_0x496ffb=_0x149d80[_0x1f482e(0x4da)];if(_0x51879a&&_0x51879a!==_0x447943)throw new Error(_0x1f482e(0x44b)+_0x51879a+_0x1f482e(0x579)+_0x447943+'.');return{..._0x59a728,'id':_0x447943,'type':_0x562e17,'params':{'unitId':_0x496ffb['unitId'],'textRanges':_0x496ffb[_0x1f482e(0x236)],'actions':a[_0x1f482e(0x14e)][_0x1f482e(0x330)](_0x17e3a2['actions'],_0x496ffb['actions'])}};},{})],_0x5bcae6=(_0x4b3fa8=(_0x2ff8c7=_0x2a35ac[_0x56f407(0x459)]())==null?void 0x0:_0x2ff8c7[_0x56f407(0x545)])!=null?_0x4b3fa8:_0x56f407(0x1c5),_0x211bc0=(_0x54f91a=(_0x2255fe=_0x2a35ac[_0x56f407(0x459)]())==null?void 0x0:_0x2255fe[_0x56f407(0x1e5)])!=null?_0x54f91a:_0x56f407(0x1c5);return{'changeset':{'unitID':_0x23db0a,'type':S['mapDocumentTypeToUniverType'](_0x19ff95[_0x56f407(0x19b)](_0x23db0a)),'baseRev':_0x4a4902[_0x56f407(0x3e5)](_0x23db0a),'revision':0x0,'userID':_0x5bcae6,'memberID':_0x211bc0,'mutations':_0x2204f4},'pendingMutations':[]};}function fn(_0x561c14,_0x158f04){const _0x58ac31=_0x4a9685,_0x411628=new A['ReplaySubject'](0x1);return setTimeout(()=>_0x411628[_0x58ac31(0x503)](_0x158f04),_0x561c14),_0x411628['asObservable']()['pipe'](A[_0x58ac31(0x3a5)](0x1));}const ji={'id':k[_0x4a9685(0x538)]['id'],'type':a[_0x4a9685(0x4b4)][_0x4a9685(0x58a)],'params':{}};var $i=Object[_0x4a9685(0x377)],Hi=Object['getOwnPropertyDescriptor'],Ie=(_0x1659c9,_0xb7a90c,_0x116346,_0x4596c0)=>{for(var _0x4aa2db=_0x4596c0>0x1?void 0x0:_0x4596c0?Hi(_0xb7a90c,_0x116346):_0xb7a90c,_0xde0ea3=_0x1659c9['length']-0x1,_0x17c608;_0xde0ea3>=0x0;_0xde0ea3--)(_0x17c608=_0x1659c9[_0xde0ea3])&&(_0x4aa2db=(_0x4596c0?_0x17c608(_0xb7a90c,_0x116346,_0x4aa2db):_0x17c608(_0x4aa2db))||_0x4aa2db);return _0x4596c0&&_0x4aa2db&&$i(_0xb7a90c,_0x116346,_0x4aa2db),_0x4aa2db;},N=(_0x479e8b,_0xfb4892)=>(_0x19f68d,_0xcf47d4)=>_0xfb4892(_0x19f68d,_0xcf47d4,_0x479e8b),q=(_0x1e0a4a=>(_0x1e0a4a[_0x4a9685(0x5bd)]=_0x4a9685(0x1a1),_0x1e0a4a['SYNCED']='synced',_0x1e0a4a['PENDING']=_0x4a9685(0x3f0),_0x1e0a4a[_0x4a9685(0x411)]=_0x4a9685(0x529),_0x1e0a4a[_0x4a9685(0x28b)]=_0x4a9685(0x581),_0x1e0a4a['FETCH_MISS']='fetch_missing',_0x1e0a4a[_0x4a9685(0x328)]=_0x4a9685(0x2b1),_0x1e0a4a[_0x4a9685(0x338)]=_0x4a9685(0x277),_0x1e0a4a))(q||{});const vn=0xea60;class Ce{constructor(_0x200c16,_0x1ace0d,_0x2a6efb,_0xa5aef,_0x3767ae,_0x391079,_0x28bdce,_0x5bb7b4,_0x22c8ee){const _0x5ab528=_0x4a9685;I(this,_0x5ab528(0x249),null),I(this,_0x5ab528(0x256),[]),(this[_0x5ab528(0x197)]=_0x200c16,this[_0x5ab528(0x3e4)]=_0x1ace0d,this[_0x5ab528(0x168)]=_0x3767ae,this[_0x5ab528(0x55e)]=_0x391079,this['_undoRedoService']=_0x28bdce,this[_0x5ab528(0x26d)]=_0x5bb7b4,this[_0x5ab528(0x142)]=_0x22c8ee,this['_awaitingChangeset']=_0x2a6efb,this[_0x5ab528(0x256)]=_0xa5aef);}['_checkMissing'](_0x1ba601){const _0x38dacf=_0x4a9685,_0x2cc558=this[_0x38dacf(0x26d)][_0x38dacf(0x3e5)](this['unitID']);return _0x1ba601[_0x38dacf(0x33a)]>_0x2cc558+0x1?(this[_0x38dacf(0x168)][_0x38dacf(0x354)]({'from':_0x2cc558,'to':_0x1ba601['revision']-0x1}),!0x0):!0x1;}[_0x4a9685(0x53b)](_0x275f28){const _0x30ddd5=_0x4a9685;this[_0x30ddd5(0x3d2)][_0x30ddd5(0x246)](this[_0x30ddd5(0x197)],_0x275f28);}['_transformSelections'](_0x162114){const _0x26066c=_0x4a9685;var _0x244709,_0x515c17;(_0x515c17=(_0x244709=this[_0x26066c(0x168)])['onTransformSelections'])==null||_0x515c17[_0x26066c(0x20c)](_0x244709,_0x162114);}[_0x4a9685(0x43a)](_0xd4df5c){const _0x47c90c=_0x4a9685;var _0x4e34b8,_0x2bbacb;return(_0x2bbacb=(_0x4e34b8=this[_0x47c90c(0x168)])[_0x47c90c(0x45b)])==null?void 0x0:_0x2bbacb[_0x47c90c(0x20c)](_0x4e34b8,_0xd4df5c);}[_0x4a9685(0x5e5)](_0x3505aa){const _0x711246=_0x4a9685;var _0x198abe,_0x40e46c;return(_0x40e46c=(_0x198abe=this[_0x711246(0x168)])['onTransformState'])==null?void 0x0:_0x40e46c[_0x711246(0x20c)](_0x198abe,_0x3505aa);}['_transformRemoteChangesetByIMECache'](_0x53b7f2){const _0x23f861=_0x4a9685;var _0x286f72,_0x161305,_0x3ce5b1;return(_0x3ce5b1=(_0x161305=(_0x286f72=this[_0x23f861(0x168)])[_0x23f861(0x4aa)])==null?void 0x0:_0x161305[_0x23f861(0x20c)](_0x286f72,_0x53b7f2))!=null?_0x3ce5b1:_0x53b7f2;}['_transformRemoteChangesetByStateCache'](_0x4b9bd8){const _0x16c072=_0x4a9685;var _0x400d6b,_0x3688e6,_0x2cd924;return(_0x2cd924=(_0x3688e6=(_0x400d6b=this[_0x16c072(0x168)])[_0x16c072(0x5a0)])==null?void 0x0:_0x3688e6[_0x16c072(0x20c)](_0x400d6b,_0x4b9bd8))!=null?_0x2cd924:_0x4b9bd8;}[_0x4a9685(0x233)](_0x2b2f28){const _0x16bd41=_0x4a9685;var _0x1ec4ce,_0x55b033;if(this[_0x16bd41(0x3e4)]===ie[_0x16bd41(0x22a)]){const {unitID:_0x352632,mutations:_0x3bcf5e,memberID:_0x1b37e6}=_0x2b2f28,_0x2b2789=_0x3bcf5e[0x0][_0x16bd41(0x4da)][_0x16bd41(0x236)];Array[_0x16bd41(0x36d)](_0x2b2789)&&_0x2b2789[_0x16bd41(0x530)]>0x0&&((_0x55b033=(_0x1ec4ce=this[_0x16bd41(0x168)])[_0x16bd41(0x379)])==null||_0x55b033[_0x16bd41(0x20c)](_0x1ec4ce,{'unitID':_0x352632,'memberID':_0x1b37e6,'textRanges':_0x2b2789}));}}[_0x4a9685(0x29e)](){const _0x74b427=_0x4a9685;this[_0x74b427(0x142)][_0x74b427(0x14f)](this[_0x74b427(0x197)],this[_0x74b427(0x3e4)],this['_awaitingChangeset'],this[_0x74b427(0x256)]);}[_0x4a9685(0x342)](){const _0x2c896d=_0x4a9685;return this[_0x2c896d(0x26d)][_0x2c896d(0x3e5)](this[_0x2c896d(0x197)]);}[_0x4a9685(0x25f)](){const _0x450b70=_0x4a9685;this['_revisionService'][_0x450b70(0x1d8)](this[_0x450b70(0x197)]);}[_0x4a9685(0x5b3)](_0x3010bc){const _0x352925=_0x4a9685;var _0x416b6f;let _0x86cfa=this['_transformRemoteChangesetByIMECache'](_0x3010bc);_0x86cfa=this[_0x352925(0x452)](_0x86cfa);const _0x6d9326=a['sequenceExecute'](_0x86cfa['mutations'],this[_0x352925(0x55e)],{'fromCollab':!0x0});if(!_0x6d9326[_0x352925(0x30f)])throw _0x6d9326[_0x352925(0x3d8)]instanceof Error?_0x6d9326['error']:new Error((_0x416b6f=_0x6d9326[_0x352925(0x3d8)])!=null?_0x416b6f:_0x352925(0x136));this[_0x352925(0x43a)](_0x86cfa),this[_0x352925(0x5e5)](_0x86cfa),this[_0x352925(0x53b)](_0x3010bc),this[_0x352925(0x335)](_0x86cfa),this['_syncEditingCollabCursor'](_0x86cfa),this[_0x352925(0x25f)]();}}let Oe=class extends Ce{constructor(_0x2739a2,_0x133aa4,_0x4b35eb,_0x5303a2,_0x28ed98,_0x376622,_0x2cc051,_0xe33258,_0x7b872d,_0x4f72db){const _0xea5f69=_0x4a9685;super(_0x2739a2,_0x133aa4,null,[],_0x4b35eb,_0xe33258,_0x2cc051,_0x5303a2,_0x28ed98),I(this,_0xea5f69(0x226),_0xea5f69(0x3dd)),(this[_0xea5f69(0x372)]=_0x376622,this[_0xea5f69(0x480)]=_0x7b872d,this[_0xea5f69(0x4f6)]=_0x4f72db);}['appendMutation'](_0x563c1f){const _0x536cee=_0x4a9685,_0x349d28=this[_0x536cee(0x372)]['createInstance'](ce,this[_0x536cee(0x197)],this[_0x536cee(0x3e4)],[_0x563c1f],this['_handler']);return _0x349d28[_0x536cee(0x3a8)](),_0x349d28[_0x536cee(0x29e)](),_0x349d28;}[_0x4a9685(0x2bf)](_0x380901){const _0x21d2b0=_0x4a9685;if(this[_0x21d2b0(0x34d)](_0x380901))return this['_injector'][_0x21d2b0(0x572)](re,this[_0x21d2b0(0x197)],this[_0x21d2b0(0x3e4)],null,[],null,[_0x380901],this[_0x21d2b0(0x168)]);try{const _0x16e3a4=this['_transformService'][_0x21d2b0(0x4ed)](_0x380901,[ji]);if(S['isTransformMutationsWithChangesetSuccess'](_0x16e3a4)){const {c1Prime:_0x5c6748}=_0x16e3a4;return this['_executeRemoteChangeset'](_0x5c6748),this;}throw _0x16e3a4[_0x21d2b0(0x3d8)];}catch(_0x31781b){return this[_0x21d2b0(0x480)][_0x21d2b0(0x3d8)](_0x31781b),this[_0x21d2b0(0x341)](!0x1);}}[_0x4a9685(0x341)](_0x53d5d0){const _0x459c52=_0x4a9685;return this[_0x459c52(0x372)]['createInstance'](ve,this['unitID'],this[_0x459c52(0x3e4)],null,[],this['_handler'],_0x53d5d0);}[_0x4a9685(0x3e9)](){const _0x1fab31=_0x4a9685;throw new Error(_0x1fab31(0x1a6));}[_0x4a9685(0x37b)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x4a9685(0x2df)](){return this;}[_0x4a9685(0x3b7)](){const _0x4c9994=_0x4a9685;return this[_0x4c9994(0x372)]['createInstance'](me,this[_0x4c9994(0x197)],this['type'],null,[],this[_0x4c9994(0x168)]);}[_0x4a9685(0x2aa)](){return this;}['resend'](){const _0x43e29a=_0x4a9685;throw new Error(_0x43e29a(0x3f6));}[_0x4a9685(0x288)](){const _0x1e83ee=_0x4a9685,_0x45f615=this[_0x1e83ee(0x26d)][_0x1e83ee(0x3e5)](this[_0x1e83ee(0x197)]);return this[_0x1e83ee(0x168)][_0x1e83ee(0x354)]({'from':_0x45f615,'to':0x0}),this['_injector'][_0x1e83ee(0x572)](re,this[_0x1e83ee(0x197)],this[_0x1e83ee(0x3e4)],null,[],null,[],this['_handler']);}};Oe=Ie([N(0x3,a[_0x4a9685(0x27a)](S['RevisionService'])),N(0x4,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x1a0)])),N(0x5,a[_0x4a9685(0x27a)](a['Injector'])),N(0x6,a['IUndoRedoService']),N(0x7,a['ICommandService']),N(0x8,a[_0x4a9685(0x2e8)]),N(0x9,S[_0x4a9685(0x315)])],Oe);let ce=class extends Ce{constructor(_0x987cb9,_0x377578,_0x38a074,_0x4c69ee,_0x1167f5,_0xdb5536,_0x81ac67,_0x5d4499,_0x33408d,_0x14cda2,_0x1ec550,_0x34e453,_0x2a6a99,_0x44dfcb){const _0x1b0e50=_0x4a9685;super(_0x987cb9,_0x377578,null,_0x38a074,_0x4c69ee,_0x14cda2,_0x44dfcb,_0xdb5536,_0x81ac67),I(this,_0x1b0e50(0x226),_0x1b0e50(0x3f0)),I(this,_0x1b0e50(0x267),null),I(this,_0x1b0e50(0x583),null),(this[_0x1b0e50(0x372)]=_0x1167f5,this[_0x1b0e50(0x1f9)]=_0x5d4499,this[_0x1b0e50(0x480)]=_0x33408d,this[_0x1b0e50(0x294)]=_0x1ec550,this['_transformService']=_0x34e453,this[_0x1b0e50(0x54a)]=_0x2a6a99);}[_0x4a9685(0x40c)](_0x3f9ee2){const _0x6de967=_0x4a9685;return this[_0x6de967(0x256)]['push'](_0x3f9ee2),this[_0x6de967(0x29e)](),this;}[_0x4a9685(0x2bf)](_0x400500){const _0x49047f=_0x4a9685;if(this[_0x49047f(0x34d)](_0x400500))return this[_0x49047f(0x1ba)](),this[_0x49047f(0x372)]['createInstance'](re,this['unitID'],this[_0x49047f(0x3e4)],null,this[_0x49047f(0x256)],null,[_0x400500],this[_0x49047f(0x168)]);try{const _0x50b184=this[_0x49047f(0x4f6)][_0x49047f(0x4ed)](_0x400500,this['_pendingMutations']);if(S['isTransformMutationsWithChangesetSuccess'](_0x50b184)){const {c1Prime:_0x5ad64d,m2Prime:_0x330aeb}=_0x50b184;this['_executeRemoteChangeset'](_0x5ad64d);const _0x250f79=this[_0x49047f(0x372)][_0x49047f(0x572)](ce,this[_0x49047f(0x197)],this['type'],_0x330aeb,this[_0x49047f(0x168)]);return this['_clearScheduledTask'](),_0x250f79[_0x49047f(0x3a8)](this['_scheduleTimestamp']?Math['max'](0x0,new Date()[_0x49047f(0x1d1)]()-this['_scheduleTimestamp']):this[_0x49047f(0x3cb)]()),_0x250f79;}throw _0x50b184[_0x49047f(0x3d8)];}catch(_0x36a407){return this[_0x49047f(0x480)]['error'](_0x36a407),this['_onConflict'](!0x1);}}[_0x4a9685(0x3e9)](){const _0x1da277=_0x4a9685;throw new Error(_0x1da277(0x4e0));}['onRemoteRej'](){const _0xb24ad4=_0x4a9685;throw new Error(_0xb24ad4(0x391));}[_0x4a9685(0x2df)](){return this;}[_0x4a9685(0x3b7)](){const _0x42bc73=_0x4a9685;return this[_0x42bc73(0x1ba)](),this[_0x42bc73(0x372)][_0x42bc73(0x572)](me,this['unitID'],this['type'],null,this[_0x42bc73(0x256)],this['_handler']);}[_0x4a9685(0x2aa)](){return this;}[_0x4a9685(0x3a8)](_0x4a75bb){const _0x35ba8=_0x4a9685,_0x1111b5=_0x4a75bb!=null?_0x4a75bb:this['_getSendChangesetTimeout']();this[_0x35ba8(0x267)]=new Date()[_0x35ba8(0x1d1)](),this[_0x35ba8(0x583)]=window[_0x35ba8(0x595)](()=>{const _0x4dc62b=_0x35ba8;this['_clearScheduledTask']();let _0x41a809=null;switch(this[_0x4dc62b(0x3e4)]){case ie['UNIVER_SHEET']:{_0x41a809=jt(this[_0x4dc62b(0x256)],this[_0x4dc62b(0x197)],this[_0x4dc62b(0x54a)],this[_0x4dc62b(0x26d)],this[_0x4dc62b(0x1f9)]);break;}case ie[_0x4dc62b(0x22a)]:{this['_pendingMutations'][_0x4dc62b(0x4b0)](_0x24c355=>_0x24c355['id']===ye[_0x4dc62b(0x4de)]['id'])?_0x41a809=xi(this[_0x4dc62b(0x256)],this[_0x4dc62b(0x197)],this['_univerInstanceService'],this[_0x4dc62b(0x26d)],this[_0x4dc62b(0x1f9)]):_0x41a809=jt(this[_0x4dc62b(0x256)],this['unitID'],this['_univerInstanceService'],this[_0x4dc62b(0x26d)],this['_memberService']);break;}default:throw new Error(_0x4dc62b(0x45f)+this[_0x4dc62b(0x3e4)]+_0x4dc62b(0x534));}const {changeset:_0x2f95fe,pendingMutations:_0x4929cf}=_0x41a809;this[_0x4dc62b(0x168)][_0x4dc62b(0x2b8)](_0x2f95fe);const _0xe065d9=_0x4929cf[_0x4dc62b(0x530)]?this[_0x4dc62b(0x372)]['createInstance'](le,this[_0x4dc62b(0x197)],this[_0x4dc62b(0x3e4)],_0x2f95fe,_0x4929cf,this['_handler'],void 0x0):this[_0x4dc62b(0x372)][_0x4dc62b(0x572)](fe,this['unitID'],this[_0x4dc62b(0x3e4)],_0x2f95fe,this[_0x4dc62b(0x168)]);_0xe065d9[_0x4dc62b(0x29e)](),this[_0x4dc62b(0x168)][_0x4dc62b(0x24b)](this,_0xe065d9);},_0x1111b5);}[_0x4a9685(0x3cb)](){const _0x2738da=_0x4a9685;var _0x5c40af;const _0x3cbd5c=this[_0x2738da(0x294)][_0x2738da(0x4a1)](te);return(_0x5c40af=_0x3cbd5c==null?void 0x0:_0x3cbd5c[_0x2738da(0x202)])!=null?_0x5c40af:kn;}[_0x4a9685(0x1dd)](){const _0x1940af=_0x4a9685;throw new Error(_0x1940af(0x48a));}[_0x4a9685(0x1ba)](){const _0x78272=_0x4a9685;this[_0x78272(0x583)]!=null&&(clearTimeout(this[_0x78272(0x583)]),this['_sendingTimer']=null);}[_0x4a9685(0x341)](_0x52d8fa){const _0xc4c151=_0x4a9685;return this[_0xc4c151(0x1ba)](),this[_0xc4c151(0x372)][_0xc4c151(0x572)](ve,this[_0xc4c151(0x197)],this[_0xc4c151(0x3e4)],null,this[_0xc4c151(0x256)],this[_0xc4c151(0x168)],_0x52d8fa);}};ce=Ie([N(0x4,a[_0x4a9685(0x27a)](a[_0x4a9685(0x17d)])),N(0x5,a[_0x4a9685(0x27a)](S['RevisionService'])),N(0x6,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x1a0)])),N(0x7,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x3e1)])),N(0x8,a[_0x4a9685(0x2e8)]),N(0x9,a[_0x4a9685(0x449)]),N(0xa,a[_0x4a9685(0x3fb)]),N(0xb,S[_0x4a9685(0x315)]),N(0xc,a[_0x4a9685(0x3c5)]),N(0xd,a[_0x4a9685(0x23b)])],ce);let fe=class extends Ce{constructor(_0x48bf8e,_0x532070,_0x2f6ee5,_0x36421,_0x586c09,_0x3ef998,_0x1e7b0f,_0x14c955,_0xbc1b4f,_0x434ca3,_0x456db9){const _0x4462fb=_0x4a9685;super(_0x48bf8e,_0x532070,_0x2f6ee5,[],_0x36421,_0x14c955,_0x456db9,_0x3ef998,_0x1e7b0f),I(this,_0x4462fb(0x226),_0x4462fb(0x529)),I(this,_0x4462fb(0x4df),0x0),I(this,_0x4462fb(0x177)),I(this,_0x4462fb(0x2a8)),(this['_injector']=_0x586c09,this[_0x4462fb(0x480)]=_0xbc1b4f,this[_0x4462fb(0x4f6)]=_0x434ca3);}[_0x4a9685(0x40c)](_0x3997a8){const _0xa1a965=_0x4a9685;this['_clearScheduledTask']();const _0x13f673=this['_injector'][_0xa1a965(0x572)](le,this[_0xa1a965(0x197)],this[_0xa1a965(0x3e4)],this[_0xa1a965(0x249)],[_0x3997a8],this[_0xa1a965(0x168)],this['_resendTimer']);return _0x13f673['_updateLocalCache'](),_0x13f673;}[_0x4a9685(0x2bf)](_0x33c424){const _0x171ba3=_0x4a9685;if(this[_0x171ba3(0x34d)](_0x33c424))return this[_0x171ba3(0x1ba)](),this[_0x171ba3(0x372)][_0x171ba3(0x572)](re,this['unitID'],this[_0x171ba3(0x3e4)],this[_0x171ba3(0x249)],[],null,[_0x33c424],this[_0x171ba3(0x168)]);try{const _0x21a9de=this['_transformService']['transformChangesets']([_0x33c424],[this['_awaitingChangeset']],!0x1);if(S[_0x171ba3(0x13e)](_0x21a9de)){const {c1Prime:_0x3ac792,c2Prime:_0x5a9bf3}=_0x21a9de;this[_0x171ba3(0x5b3)](_0x3ac792[0x0]),_0x5a9bf3[0x0][_0x171ba3(0x5f0)]=this[_0x171ba3(0x342)](),this['_clearScheduledTask']();const _0x5de4d1=this[_0x171ba3(0x372)][_0x171ba3(0x572)](fe,this[_0x171ba3(0x197)],this[_0x171ba3(0x3e4)],_0x5a9bf3[0x0],this[_0x171ba3(0x168)]);return _0x5de4d1[_0x171ba3(0x29e)](),_0x5de4d1;}return this[_0x171ba3(0x341)](!0x1);}catch(_0x2f6522){return this[_0x171ba3(0x480)][_0x171ba3(0x3d8)](_0x2f6522),this[_0x171ba3(0x341)](!0x1);}}[_0x4a9685(0x3e9)](_0x211bbb){const _0x432e95=_0x4a9685;this[_0x432e95(0x1ba)]();const _0x557efd=this[_0x432e95(0x26d)]['getCurrentRevOfUnit'](this['unitID']);if(_0x211bbb[_0x432e95(0x33a)]<_0x557efd-0x1)return this;if(this['_checkMissing'](_0x211bbb))return this[_0x432e95(0x372)][_0x432e95(0x572)](re,this[_0x432e95(0x197)],this[_0x432e95(0x3e4)],null,[],this[_0x432e95(0x249)],[],this[_0x432e95(0x168)]);this[_0x432e95(0x25f)]();const _0x1febf0=this[_0x432e95(0x372)][_0x432e95(0x572)](Oe,this[_0x432e95(0x197)],this[_0x432e95(0x3e4)],this[_0x432e95(0x168)]);return _0x1febf0[_0x432e95(0x29e)](),_0x1febf0;}['onRemoteRej'](_0x31e1be){const _0x4a1c95=_0x4a9685;return this[_0x4a1c95(0x341)](!!(_0x31e1be!=null&&_0x31e1be['isPermissionRej']));}[_0x4a9685(0x2df)](_0x50751a){const _0x5d665d=_0x4a9685;return this[_0x5d665d(0x4df)]>vn?this[_0x5d665d(0x3b7)]():(this['_resendTimer']=fn(this[_0x5d665d(0x4df)],{'timeout':this[_0x5d665d(0x4df)],'reqId':_0x50751a[_0x5d665d(0x586)]}),this[_0x5d665d(0x2a8)]=this[_0x5d665d(0x177)]['subscribe'](({reqId:_0x2a8f01,timeout:_0x56610d})=>{const _0x3958b0=_0x5d665d;this[_0x3958b0(0x1e6)](_0x2a8f01,_0x56610d);}),this);}[_0x4a9685(0x3b7)](){const _0x1c1a9a=_0x4a9685;return this[_0x1c1a9a(0x1ba)](),this[_0x1c1a9a(0x372)][_0x1c1a9a(0x572)](me,this['unitID'],this[_0x1c1a9a(0x3e4)],this['_awaitingChangeset'],[],this[_0x1c1a9a(0x168)]);}[_0x4a9685(0x2aa)](){return this;}[_0x4a9685(0x1dd)](){const _0x4d39a7=_0x4a9685;this[_0x4d39a7(0x168)][_0x4d39a7(0x2b8)](this[_0x4d39a7(0x249)]);}[_0x4a9685(0x341)](_0x4f4eaf){const _0x43a3d5=_0x4a9685;return this['_clearScheduledTask'](),this[_0x43a3d5(0x372)][_0x43a3d5(0x572)](ve,this['unitID'],this[_0x43a3d5(0x3e4)],this[_0x43a3d5(0x249)],[],this['_handler'],_0x4f4eaf);}[_0x4a9685(0x1e6)](_0x208b73,_0x1fc626){const _0x2bbe4f=_0x4a9685;var _0x403338;_0x208b73===((_0x403338=this[_0x2bbe4f(0x249)])==null?void 0x0:_0x403338[_0x2bbe4f(0x586)])&&(this[_0x2bbe4f(0x1dd)](),this[_0x2bbe4f(0x4df)]=_0x1fc626===0x0?0x3e8:_0x1fc626*0x2);}[_0x4a9685(0x1ba)](){const _0x4dec7e=_0x4a9685;var _0x26934f;(_0x26934f=this[_0x4dec7e(0x2a8)])==null||_0x26934f[_0x4dec7e(0x402)](),this['_resendTimeout']=0x0;}};fe=Ie([N(0x4,a[_0x4a9685(0x27a)](a['Injector'])),N(0x5,a[_0x4a9685(0x27a)](S[_0x4a9685(0x1a9)])),N(0x6,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x1a0)])),N(0x7,a[_0x4a9685(0x449)]),N(0x8,a[_0x4a9685(0x2e8)]),N(0x9,S[_0x4a9685(0x315)]),N(0xa,a[_0x4a9685(0x23b)])],fe);let le=class extends Ce{constructor(_0x53a8a7,_0x2b9449,_0x1be90b,_0x1297d9,_0x88dfd3,_0x303b43,_0x186116,_0x124e2b,_0x3568f2,_0xed038c,_0x109d4a,_0xc1f37b,_0x376ec4){const _0x1836a4=_0x4a9685;super(_0x53a8a7,_0x2b9449,_0x1be90b,_0x1297d9,_0x88dfd3,_0xed038c,_0x376ec4,_0x124e2b,_0x3568f2),I(this,_0x1836a4(0x226),'awaiting_with_pending'),I(this,_0x1836a4(0x4df),0x0),I(this,'_resendTimer'),I(this,_0x1836a4(0x2a8)),(this[_0x1836a4(0x372)]=_0x186116,this[_0x1836a4(0x480)]=_0x109d4a,this[_0x1836a4(0x4f6)]=_0xc1f37b,_0x303b43&&(this[_0x1836a4(0x177)]=_0x303b43,this[_0x1836a4(0x2a8)]=this[_0x1836a4(0x177)][_0x1836a4(0x419)](({reqId:_0x2186fb,timeout:_0x1be389})=>{const _0x122033=_0x1836a4;this[_0x122033(0x1e6)](_0x2186fb,_0x1be389);})));}[_0x4a9685(0x40c)](_0x5d3193){const _0x4d73b8=_0x4a9685;return this[_0x4d73b8(0x256)][_0x4d73b8(0x3d6)](_0x5d3193),this;}['onRemoteChangeset'](_0x445c07){const _0x589140=_0x4a9685;if(this[_0x589140(0x34d)](_0x445c07))return this[_0x589140(0x1ba)](),this[_0x589140(0x372)]['createInstance'](re,this[_0x589140(0x197)],this[_0x589140(0x3e4)],this[_0x589140(0x249)],this['_pendingMutations'],null,[_0x445c07],this[_0x589140(0x168)]);try{const _0x4a46e8=this[_0x589140(0x4f6)][_0x589140(0x3d5)]([_0x445c07],[this[_0x589140(0x249)]],!0x1);if(S['isTransformChangesetsSuccess'](_0x4a46e8)){const {c1Prime:_0x3f2ae1,c2Prime:_0x173712}=_0x4a46e8,_0x114efa=this[_0x589140(0x4f6)][_0x589140(0x4ed)](_0x3f2ae1[0x0],this[_0x589140(0x256)]);if(S[_0x589140(0x453)](_0x114efa)){const {c1Prime:_0x2f83de,m2Prime:_0x4845c3}=_0x114efa;return this['_executeRemoteChangeset'](_0x2f83de),_0x173712[0x0][_0x589140(0x5f0)]=this[_0x589140(0x342)](),this[_0x589140(0x1ba)](),this[_0x589140(0x372)][_0x589140(0x572)](le,this[_0x589140(0x197)],this['type'],_0x173712[0x0],_0x4845c3,this['_handler'],void 0x0);}throw _0x114efa[_0x589140(0x3d8)];}throw _0x4a46e8[_0x589140(0x3d8)];}catch(_0x26d7f9){return this['_logService'][_0x589140(0x3d8)](_0x26d7f9),this[_0x589140(0x341)](!0x1);}}[_0x4a9685(0x3e9)](_0x158297){const _0x237fed=_0x4a9685;if(this[_0x237fed(0x1ba)](),this[_0x237fed(0x34d)](_0x158297))return this[_0x237fed(0x372)][_0x237fed(0x572)](re,this[_0x237fed(0x197)],this['type'],null,this[_0x237fed(0x256)],this['_awaitingChangeset'],[],this[_0x237fed(0x168)]);this[_0x237fed(0x25f)]();const _0x175135=this['_injector'][_0x237fed(0x572)](ce,this[_0x237fed(0x197)],this[_0x237fed(0x3e4)],this[_0x237fed(0x256)],this[_0x237fed(0x168)]);return _0x175135[_0x237fed(0x3a8)](),_0x175135[_0x237fed(0x29e)](),_0x175135;}['onRemoteRej'](_0x4fff06){return this['_onConflict'](!!(_0x4fff06!=null&&_0x4fff06['isPermissionRej']));}['onRemoteRetry'](_0x533e5a){const _0x14c5e9=_0x4a9685;return this[_0x14c5e9(0x4df)]>vn?this[_0x14c5e9(0x3b7)]():(this[_0x14c5e9(0x177)]=fn(this[_0x14c5e9(0x4df)],{'timeout':this[_0x14c5e9(0x4df)],'reqId':_0x533e5a[_0x14c5e9(0x586)]}),this[_0x14c5e9(0x2a8)]=this['_resendTimer'][_0x14c5e9(0x419)](({reqId:_0x48027b,timeout:_0xa05bb2})=>{const _0xb93115=_0x14c5e9;this[_0xb93115(0x1e6)](_0x48027b,_0xa05bb2);}),this);}[_0x4a9685(0x3b7)](){const _0x3e0f44=_0x4a9685;return this[_0x3e0f44(0x1ba)](),this[_0x3e0f44(0x372)][_0x3e0f44(0x572)](me,this['unitID'],this[_0x3e0f44(0x3e4)],this[_0x3e0f44(0x249)],this[_0x3e0f44(0x256)],this['_handler']);}[_0x4a9685(0x2aa)](){return this;}[_0x4a9685(0x1dd)](){const _0xee4713=_0x4a9685;this[_0xee4713(0x168)][_0xee4713(0x2b8)](this[_0xee4713(0x249)]);}[_0x4a9685(0x341)](_0x14b011){const _0x2f245e=_0x4a9685;return this[_0x2f245e(0x1ba)](),this[_0x2f245e(0x372)][_0x2f245e(0x572)](ve,this[_0x2f245e(0x197)],this['type'],null,this[_0x2f245e(0x256)],this[_0x2f245e(0x168)],_0x14b011);}[_0x4a9685(0x1e6)](_0x498ac8,_0x21bb72){const _0x10498b=_0x4a9685;var _0x508d8a;_0x498ac8===((_0x508d8a=this[_0x10498b(0x249)])==null?void 0x0:_0x508d8a[_0x10498b(0x586)])&&(this[_0x10498b(0x1dd)](),this[_0x10498b(0x4df)]=_0x21bb72===0x0?0x3e8:_0x21bb72*0x2);}[_0x4a9685(0x1ba)](){const _0x2d2a7d=_0x4a9685;var _0xd269a5;(_0xd269a5=this['_sender'])==null||_0xd269a5[_0x2d2a7d(0x402)](),this[_0x2d2a7d(0x4df)]=0x0;}};le=Ie([N(0x6,a['Inject'](a[_0x4a9685(0x17d)])),N(0x7,a[_0x4a9685(0x27a)](S[_0x4a9685(0x1a9)])),N(0x8,a[_0x4a9685(0x27a)](exports['LocalCacheService'])),N(0x9,a[_0x4a9685(0x449)]),N(0xa,a['ILogService']),N(0xb,S['ITransformService']),N(0xc,a[_0x4a9685(0x23b)])],le);let ve=class extends Ce{constructor(_0x7bb8c4,_0x332ed7,_0x1cf206,_0x17e878,_0x591023,_0x1d3aef=!0x1,_0x20c1a3,_0x123a2e,_0x236b98,_0xdd7aea,_0x4e1e6b,_0x22b8bc,_0x4bd779){const _0x52d4c5=_0x4a9685;super(_0x7bb8c4,_0x332ed7,_0x1cf206,_0x17e878,_0x591023,_0x123a2e,_0x236b98,_0x4e1e6b,_0xdd7aea),I(this,'status','conflict'),(this[_0x52d4c5(0x3ba)]=_0x1d3aef,this[_0x52d4c5(0x3e0)]=_0x20c1a3,this[_0x52d4c5(0x39c)]=_0x22b8bc,this[_0x52d4c5(0x31d)]=_0x4bd779,this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x52d4c5(0x1b5)]());}[_0x4a9685(0x40c)](){return this;}[_0x4a9685(0x2bf)](){return this;}['onRemoteAck'](){return this;}['onRemoteRej'](){return this;}[_0x4a9685(0x2df)](){return this;}[_0x4a9685(0x3b7)](){return this;}[_0x4a9685(0x2aa)](){return this;}['resend'](){const _0x24c2e0=_0x4a9685;throw new Error(_0x24c2e0(0x280));}[_0x4a9685(0x364)](){const _0x3d9836=_0x4a9685;this[_0x3d9836(0x142)]['updateOfflineData'](this['unitID'],this[_0x3d9836(0x3e4)],null,[]);}[_0x4a9685(0x15f)](){const _0x52307c=_0x4a9685;this[_0x52307c(0x3ba)]?this[_0x52307c(0x31d)][_0x52307c(0x36b)]({'title':this[_0x52307c(0x39c)]['t'](_0x52307c(0x18b)),'content':this['_localeService']['t'](_0x52307c(0x51c)),'type':_0x52307c(0x3d8),'duration':0x0}):this[_0x52307c(0x31d)][_0x52307c(0x36b)]({'title':this['_localeService']['t'](_0x52307c(0x4d6)),'content':this[_0x52307c(0x39c)]['t'](_0x52307c(0x51b)),'type':'error','duration':0x0});}[_0x4a9685(0x1b5)](){const _0x14444b=_0x4a9685;this['_permissionService'][_0x14444b(0x38e)](new k[(_0x14444b(0x1ef))](this[_0x14444b(0x197)])['id'],!0x1);}};ve=Ie([N(0x6,a[_0x4a9685(0x27a)](a[_0x4a9685(0x310)])),N(0x7,a[_0x4a9685(0x449)]),N(0x8,a['IUndoRedoService']),N(0x9,a[_0x4a9685(0x27a)](exports['LocalCacheService'])),N(0xa,a[_0x4a9685(0x27a)](S[_0x4a9685(0x1a9)])),N(0xb,a[_0x4a9685(0x27a)](a[_0x4a9685(0x4a8)])),N(0xc,ee['INotificationService'])],ve);let me=class extends Ce{constructor(_0x34b251,_0x3cf9ee,_0x310e7c,_0x42c445,_0x463f83,_0x1a8a75,_0x277c7a,_0x5651d2,_0x5dd647,_0x3b8b75){const _0x3dc074=_0x4a9685;super(_0x34b251,_0x3cf9ee,_0x310e7c,_0x42c445,_0x463f83,_0x5dd647,_0x3b8b75,_0x277c7a,_0x5651d2),I(this,_0x3dc074(0x226),_0x3dc074(0x277)),this['_injector']=_0x1a8a75;}['appendMutation'](_0x449f74){const _0x14873e=_0x4a9685;return this[_0x14873e(0x256)][_0x14873e(0x3d6)](_0x449f74),this[_0x14873e(0x29e)](),this;}[_0x4a9685(0x2bf)](_0x598d37){const _0x2c0f1c=_0x4a9685;throw new Error(_0x2c0f1c(0x444));}['onRemoteAck'](){const _0x3c1e6b=_0x4a9685;throw new Error(_0x3c1e6b(0x3d3));}['onRemoteRej'](){const _0x532fbe=_0x4a9685;throw new Error(_0x532fbe(0x58b));}[_0x4a9685(0x2df)](){return this;}[_0x4a9685(0x3b7)](){return this;}[_0x4a9685(0x2aa)](){const _0x589aff=_0x4a9685,{_injector:_0xbdac23,_pendingMutations:_0x354862,_awaitingChangeset:_0x2efb45,unitID:_0x3a53dc,_handler:_0x2dd70f,type:_0x1f9e9d}=this,_0x3cd3be=mn(_0xbdac23,_0x3a53dc,_0x1f9e9d,_0x2efb45,_0x354862,_0x2dd70f);return _0x3cd3be instanceof ce?_0x3cd3be[_0x589aff(0x3a8)]():(_0x3cd3be instanceof le||_0x3cd3be instanceof fe)&&_0x3cd3be['resend'](),_0x3cd3be;}[_0x4a9685(0x1dd)](){const _0x2f3950=_0x4a9685;throw new Error(_0x2f3950(0x274));}};me=Ie([N(0x5,a[_0x4a9685(0x27a)](a['Injector'])),N(0x6,a['Inject'](S[_0x4a9685(0x1a9)])),N(0x7,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x1a0)])),N(0x8,a[_0x4a9685(0x449)]),N(0x9,a[_0x4a9685(0x23b)])],me);let re=class extends Ce{constructor(_0x1d3799,_0xb42ce2,_0x43c2c4,_0x4b8e05,_0x184075,_0x103884,_0x3eeb15,_0x53909f,_0x286684,_0x16f268,_0x6f3697,_0x2a2ecd,_0x1c267a,_0x290b86){const _0x27ffd3=_0x4a9685;super(_0x1d3799,_0xb42ce2,_0x43c2c4,_0x4b8e05,_0x3eeb15,_0x2a2ecd,_0x1c267a,_0x286684,_0x16f268),I(this,_0x27ffd3(0x226),_0x27ffd3(0x255)),(this[_0x27ffd3(0x414)]=_0x184075,this[_0x27ffd3(0x1bc)]=_0x103884,this[_0x27ffd3(0x372)]=_0x53909f,this[_0x27ffd3(0x480)]=_0x6f3697,this[_0x27ffd3(0x4f6)]=_0x290b86);}[_0x4a9685(0x144)](_0x1ddb28){const _0x4273aa=_0x4a9685;try{const _0x9d38a6=[..._0x1ddb28,...this['_queuedRemoteChangesets']],_0x9da79d=[this['_awaitingChangeset']||this[_0x4273aa(0x414)]][_0x4273aa(0x464)](_0x582d4b=>!!_0x582d4b);let _0xb06faf,_0x24d492;if(_0x9da79d[_0x4273aa(0x530)]){const _0x266a61=this[_0x4273aa(0x4f6)][_0x4273aa(0x3d5)](_0x9d38a6,_0x9da79d,!0x1);if(!S['isTransformChangesetsSuccess'](_0x266a61))throw _0x266a61[_0x4273aa(0x3d8)];_0xb06faf=_0x266a61['c1Prime'],_0x24d492=_0x266a61[_0x4273aa(0x2ad)];}else _0xb06faf=_0x9d38a6,_0x24d492=[];let _0x2ac278=this['_pendingMutations'];_0xb06faf[_0x4273aa(0x38f)](_0x442eb2=>{const _0x83da00=_0x4273aa;let _0x3c4bd8;if(_0x2ac278[_0x83da00(0x530)]){const _0x593f06=this['_transformService'][_0x83da00(0x4ed)](_0x442eb2,_0x2ac278);if(!S[_0x83da00(0x453)](_0x593f06))throw _0x593f06[_0x83da00(0x3d8)];_0x3c4bd8=_0x593f06[_0x83da00(0x51e)],_0x2ac278=_0x593f06[_0x83da00(0x403)];}else _0x3c4bd8=_0x442eb2;this['_executeRemoteChangeset'](_0x3c4bd8);}),this['_acknowledgedAwaitingChangeset']&&this['_incrementRevisionNumber'](),this[_0x4273aa(0x249)]&&_0x24d492[_0x4273aa(0x530)]&&(_0x24d492[0x0][_0x4273aa(0x5f0)]=this[_0x4273aa(0x342)]());let _0x78556d;if(this[_0x4273aa(0x249)]&&_0x2ac278[_0x4273aa(0x530)]!==0x0)_0x78556d=this[_0x4273aa(0x372)]['createInstance'](le,this[_0x4273aa(0x197)],this[_0x4273aa(0x3e4)],_0x24d492[0x0],_0x2ac278,this[_0x4273aa(0x168)],void 0x0);else{if(this[_0x4273aa(0x249)]&&_0x2ac278[_0x4273aa(0x530)]===0x0)_0x24d492[0x0]['baseRev']=this[_0x4273aa(0x342)](),_0x78556d=this['_injector'][_0x4273aa(0x572)](fe,this['unitID'],this[_0x4273aa(0x3e4)],_0x24d492[0x0],this[_0x4273aa(0x168)]);else{if(_0x2ac278[_0x4273aa(0x530)]!==0x0){const _0x43b4ac=this['_injector'][_0x4273aa(0x572)](ce,this[_0x4273aa(0x197)],this[_0x4273aa(0x3e4)],_0x2ac278,this[_0x4273aa(0x168)]);_0x43b4ac[_0x4273aa(0x3a8)](),_0x78556d=_0x43b4ac;}else _0x78556d=this[_0x4273aa(0x372)]['createInstance'](Oe,this[_0x4273aa(0x197)],this[_0x4273aa(0x3e4)],this['_handler']);}}return _0x78556d[_0x4273aa(0x29e)](),_0x78556d;}catch(_0x5df43d){return this[_0x4273aa(0x480)][_0x4273aa(0x3d8)](_0x4273aa(0x1ce),_0x4273aa(0x140),_0x5df43d),this[_0x4273aa(0x372)][_0x4273aa(0x572)](ve,this[_0x4273aa(0x197)],this['type'],this[_0x4273aa(0x249)],this['_pendingMutations'],this[_0x4273aa(0x168)],!0x1);}}[_0x4a9685(0x1dd)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x4a9685(0x40c)](_0x2cfeb1){const _0x2b869c=_0x4a9685;return this[_0x2b869c(0x256)][_0x2b869c(0x3d6)](_0x2cfeb1),this;}[_0x4a9685(0x2bf)](_0x5e7493){const _0x491372=_0x4a9685;return this[_0x491372(0x1bc)]['push'](_0x5e7493),this;}[_0x4a9685(0x3e9)](_0x3f2661){const _0x57ce5d=_0x4a9685;if(this['_awaitingChangeset'])return this[_0x57ce5d(0x414)]=this[_0x57ce5d(0x249)],this[_0x57ce5d(0x249)]=null,this;throw new Error(_0x57ce5d(0x2ed));}[_0x4a9685(0x37b)](_0x289181){const _0x517672=_0x4a9685;return this[_0x517672(0x341)](!!(_0x289181!=null&&_0x289181['isPermissionRej']));}[_0x4a9685(0x2df)](){return this;}['toggleOffline'](){const _0x2306bd=_0x4a9685;return this['_injector'][_0x2306bd(0x572)](me,this[_0x2306bd(0x197)],this['type'],this[_0x2306bd(0x249)],this[_0x2306bd(0x256)],this['_handler']);}['toggleOnline'](){return this;}[_0x4a9685(0x341)](_0xef6b08){const _0xb857c8=_0x4a9685;return this['_injector'][_0xb857c8(0x572)](ve,this[_0xb857c8(0x197)],this[_0xb857c8(0x3e4)],this[_0xb857c8(0x249)],this[_0xb857c8(0x256)],this[_0xb857c8(0x168)],_0xef6b08);}};re=Ie([N(0x7,a['Inject'](a[_0x4a9685(0x17d)])),N(0x8,a[_0x4a9685(0x27a)](S[_0x4a9685(0x1a9)])),N(0x9,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x1a0)])),N(0xa,a[_0x4a9685(0x2e8)]),N(0xb,a[_0x4a9685(0x449)]),N(0xc,a[_0x4a9685(0x23b)]),N(0xd,S[_0x4a9685(0x315)])],re);function mn(_0x199429,_0x47afcf,_0x170bff,_0x4a8e22,_0x473ffb,_0x51ad88){const _0x384bdb=_0x4a9685;return _0x4a8e22&&_0x473ffb['length']?_0x199429[_0x384bdb(0x572)](le,_0x47afcf,_0x170bff,_0x4a8e22,_0x473ffb,_0x51ad88,void 0x0):_0x4a8e22?_0x199429['createInstance'](fe,_0x47afcf,_0x170bff,_0x4a8e22,_0x51ad88):_0x473ffb[_0x384bdb(0x530)]?_0x199429[_0x384bdb(0x572)](ce,_0x47afcf,_0x170bff,_0x473ffb,_0x51ad88):_0x199429[_0x384bdb(0x572)](Oe,_0x47afcf,_0x170bff,_0x51ad88);}var Bi=Object[_0x4a9685(0x377)],ki=Object[_0x4a9685(0x484)],yt=(_0x2b7223,_0x3f91b9,_0x1aa6c9,_0x4eafab)=>{for(var _0x550af9=_0x4eafab>0x1?void 0x0:_0x4eafab?ki(_0x3f91b9,_0x1aa6c9):_0x3f91b9,_0x3244ee=_0x2b7223['length']-0x1,_0x3be3d2;_0x3244ee>=0x0;_0x3244ee--)(_0x3be3d2=_0x2b7223[_0x3244ee])&&(_0x550af9=(_0x4eafab?_0x3be3d2(_0x3f91b9,_0x1aa6c9,_0x550af9):_0x3be3d2(_0x550af9))||_0x550af9);return _0x4eafab&&_0x550af9&&Bi(_0x3f91b9,_0x1aa6c9,_0x550af9),_0x550af9;},H=(_0x1dad1d,_0x374b24)=>(_0xff7d39,_0x5c2984)=>_0x374b24(_0xff7d39,_0x5c2984,_0x1dad1d);exports[_0x4a9685(0x469)]=class extends a[_0x4a9685(0x2c7)]{constructor(_0x37317a,_0x24eae1,_0x9ab4a,_0x16aed9,_0x59f9c9,_0x112065,_0xc5aa76,_0x1b9af9,_0x9580d5,_0x475998,_0x2992a0,_0x1845df,_0x160f50){const _0x51b813=_0x4a9685;super(),I(this,_0x51b813(0x497),new A[(_0x51b813(0x563))](null)),I(this,_0x51b813(0x189),this[_0x51b813(0x497)][_0x51b813(0x135)]()),I(this,'_state'),I(this,_0x51b813(0x40e),!0x1),I(this,'_changesetSessionId',''),I(this,'_changesetReqId',0x0),I(this,_0x51b813(0x4ba),this[_0x51b813(0x189)][_0x51b813(0x172)](A[_0x51b813(0x28a)](_0x3a7875=>_0x3a7875?_0x3a7875['status']:q[_0x51b813(0x338)]),A[_0x51b813(0x52c)](0x1))),I(this,_0x51b813(0x2ec),!0x1),I(this,_0x51b813(0x437),[]),(this['unitID']=_0x37317a,this[_0x51b813(0x305)]=_0x24eae1,this['_type']=_0x9ab4a,this[_0x51b813(0x372)]=_0x16aed9,this[_0x51b813(0x142)]=_0x59f9c9,this['_compressMutationService']=_0x112065,this[_0x51b813(0x39c)]=_0xc5aa76,this[_0x51b813(0x26d)]=_0x1b9af9,this[_0x51b813(0x480)]=_0x9580d5,this[_0x51b813(0x55e)]=_0x475998,this[_0x51b813(0x3a7)]=_0x2992a0,this[_0x51b813(0x3e0)]=_0x1845df,this[_0x51b813(0x214)]=_0x160f50);}get['state'](){const _0x5c4d42=_0x4a9685;return this[_0x5c4d42(0x16f)];}async[_0x4a9685(0x432)](){const _0x49b7e8=_0x4a9685;if(this['state'])throw new Error(_0x49b7e8(0x536));await this['_init']();}[_0x4a9685(0x228)](){const _0x45c668=_0x4a9685;return this[_0x45c668(0x40e)]=!0x0,a['toDisposable'](()=>{const _0xbb4faa=_0x45c668;this[_0xbb4faa(0x40e)]=!0x1,this[_0xbb4faa(0x5ca)]();});}[_0x4a9685(0x41b)](_0x23b4fd){const _0x43a581=_0x4a9685;this[_0x43a581(0x16f)]=_0x23b4fd,this[_0x43a581(0x497)]['next'](_0x23b4fd);}async[_0x4a9685(0x3f4)](){const _0x499bf2=_0x4a9685;var _0x5db60a;this[_0x499bf2(0x41b)](await this[_0x499bf2(0x2eb)]()),this[_0x499bf2(0x214)]&&((_0x5db60a=this[_0x499bf2(0x214)])==null||_0x5db60a['editingUnit'](this[_0x499bf2(0x197)]),this[_0x499bf2(0x3c7)](this[_0x499bf2(0x214)]['getUnitStatus$'](this['unitID'])[_0x499bf2(0x419)](_0x1fef4d=>{const _0x1bf48e=_0x499bf2;this['_logService'][_0x1bf48e(0x37a)](_0x1bf48e(0x2c9),'editing\x20status\x20changed\x20to',_0x1fef4d),_0x1fef4d===un[_0x1bf48e(0x521)]?(this[_0x1bf48e(0x3a7)][_0x1bf48e(0x36b)]({'content':this[_0x1bf48e(0x39c)]['t'](_0x1bf48e(0x3a3)),'type':ge[_0x1bf48e(0x2e3)][_0x1bf48e(0x174)]}),this[_0x1bf48e(0x3e0)]['updatePermissionPoint'](new k[(_0x1bf48e(0x1ef))](this[_0x1bf48e(0x197)])['id'],!0x1),this['_permissionService']['setShowComponents'](!0x1)):(this[_0x1bf48e(0x3e0)][_0x1bf48e(0x38e)](new k[(_0x1bf48e(0x1ef))](this[_0x1bf48e(0x197)])['id'],!0x0),this[_0x1bf48e(0x3e0)]['setShowComponents'](!0x0));})));let _0x43f4db=!0x1;return this[_0x499bf2(0x3c7)](this[_0x499bf2(0x305)]['sessionStatus$']['subscribe'](_0x2d34c0=>{const _0x2e40b4=_0x499bf2;_0x2d34c0===se[_0x2e40b4(0x244)]?this[_0x2e40b4(0x4dd)](_0x43f4db):_0x2d34c0===se[_0x2e40b4(0x338)]&&(_0x43f4db=!0x0,this[_0x2e40b4(0x1c0)]());})),this[_0x499bf2(0x3c7)](this[_0x499bf2(0x305)]['event$'][_0x499bf2(0x419)](_0x1d0e41=>{const _0x14ee26=_0x499bf2;try{switch(_0x1d0e41['eventID']){case S[_0x14ee26(0x35a)][_0x14ee26(0x27c)]:{this['_onRemoteChangeset'](S[_0x14ee26(0x3ac)](_0x1d0e41[_0x14ee26(0x18f)]));break;}case S['CollaborationEvent'][_0x14ee26(0x272)]:{this['_onRemoteACK'](_0x1d0e41[_0x14ee26(0x18f)]);break;}case S[_0x14ee26(0x35a)][_0x14ee26(0x473)]:{this[_0x14ee26(0x2ea)]();break;}case S['CollaborationEvent'][_0x14ee26(0x398)]:{this[_0x14ee26(0x383)](_0x1d0e41[_0x14ee26(0x18f)]);break;}case S[_0x14ee26(0x35a)][_0x14ee26(0x47b)]:{this[_0x14ee26(0x4a7)](_0x1d0e41[_0x14ee26(0x18f)][_0x14ee26(0x2c1)]['map'](_0x1258c5=>S[_0x14ee26(0x3ac)](_0x1258c5)));break;}case S[_0x14ee26(0x35a)][_0x14ee26(0x5d2)]:this[_0x14ee26(0x2ea)]({'isPermissionRej':!0x0});}}catch(_0x4198a5){throw console[_0x14ee26(0x3d8)](_0x14ee26(0x5d1),_0x4198a5),_0x4198a5;}})),this['_state'];}[_0x4a9685(0x2fb)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x54dd76=_0x4a9685;if(this[_0x54dd76(0x2ec)])throw new Error(_0x54dd76(0x3f8));this[_0x54dd76(0x2ec)]=!0x0;}[_0x4a9685(0x2b2)](_0x42369a){const _0x29f80c=_0x4a9685;this[_0x29f80c(0x321)](),this[_0x29f80c(0x41b)](this[_0x29f80c(0x16f)][_0x29f80c(0x40c)](_0x42369a)),this[_0x29f80c(0x2fb)]();}[_0x4a9685(0x4b8)](_0x54f541){const _0x15edae=_0x4a9685;if(!(_0x54f541[_0x15edae(0x33a)]<=this[_0x15edae(0x26d)][_0x15edae(0x3e5)](this[_0x15edae(0x197)]))){if(this[_0x15edae(0x40e)]){this[_0x15edae(0x437)][_0x15edae(0x3d6)](_0x54f541);return;}this[_0x15edae(0x1b2)](_0x54f541);}}['_exhaustRemoteChangesetQueue'](){const _0xa03c83=_0x4a9685;this['_remoteChangesetQueue'][_0xa03c83(0x38f)](_0x51c85a=>this[_0xa03c83(0x1b2)](_0x51c85a)),this[_0xa03c83(0x437)]=[];}[_0x4a9685(0x1b2)](_0x50fe95){const _0x127974=_0x4a9685,_0x3de23a=this[_0x127974(0x2b3)][_0x127974(0x200)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x127974(0x200)]['getInterceptPoints']()[_0x127974(0x3e7)])(_0x50fe95[_0x127974(0x1b8)],null)||_0x50fe95[_0x127974(0x1b8)],_0x551b61={..._0x50fe95,'mutations':_0x3de23a};this['_lockTransition'](),this[_0x127974(0x41b)](this[_0x127974(0x16f)]['onRemoteChangeset'](_0x551b61)),this[_0x127974(0x2fb)]();}[_0x4a9685(0x446)](_0x44e03f){const _0x52dce8=_0x4a9685;this[_0x52dce8(0x321)](),this[_0x52dce8(0x41b)](this[_0x52dce8(0x16f)][_0x52dce8(0x3e9)](_0x44e03f)),this[_0x52dce8(0x2fb)]();}[_0x4a9685(0x2ea)](_0x4afe13){const _0x4be43e=_0x4a9685;this[_0x4be43e(0x321)](),this[_0x4be43e(0x41b)](this['_state'][_0x4be43e(0x37b)](_0x4afe13)),this[_0x4be43e(0x2fb)]();}[_0x4a9685(0x383)](_0x160c57){const _0x2bc02e=_0x4a9685;this['_lockTransition'](),this[_0x2bc02e(0x41b)](this['_state']['onRemoteRetry'](_0x160c57)),this[_0x2bc02e(0x2fb)]();}[_0x4a9685(0x4a7)](_0x170f17){const _0x597b37=_0x4a9685;if(!(this[_0x597b37(0x16f)]instanceof re))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x20ea09=_0x170f17[_0x597b37(0x28a)](_0x8a63fa=>{const _0x38bf8e=_0x597b37,_0x49bc6b=this[_0x38bf8e(0x2b3)][_0x38bf8e(0x200)][_0x38bf8e(0x3cc)](this[_0x38bf8e(0x2b3)][_0x38bf8e(0x200)][_0x38bf8e(0x5ae)]()['COMPRESS_MUTATION_APPLY'])(_0x8a63fa[_0x38bf8e(0x1b8)],null)||_0x8a63fa['mutations'];return{..._0x8a63fa,'mutations':_0x49bc6b};});this[_0x597b37(0x321)](),this[_0x597b37(0x41b)](this['_state']['onMissedChangesetFetched'](_0x20ea09)),this[_0x597b37(0x2fb)]();}[_0x4a9685(0x1c0)](){const _0x3aa3d3=_0x4a9685;this[_0x3aa3d3(0x321)](),this[_0x3aa3d3(0x41b)](this['_state'][_0x3aa3d3(0x3b7)]()),this['_unlockTransition']();}[_0x4a9685(0x4dd)](_0x12e9b2=!0x1){const _0x315ced=_0x4a9685;this['_lockTransition'](),this[_0x315ced(0x41b)](this['_state'][_0x315ced(0x2aa)]()),this[_0x315ced(0x2fb)]();const _0x4c5eea=this[_0x315ced(0x16f)];_0x12e9b2&&_0x4c5eea instanceof Oe&&(this[_0x315ced(0x321)](),this[_0x315ced(0x41b)](_0x4c5eea[_0x315ced(0x288)]()),this[_0x315ced(0x2fb)]());}async[_0x4a9685(0x2eb)](){return new Promise(_0xc74c9a=>{const _0x125503=_0x5f2c;this[_0x125503(0x305)][_0x125503(0x44d)][_0x125503(0x172)](A[_0x125503(0x3a5)](0x1))[_0x125503(0x419)](async _0x469230=>{const _0x213bf9=_0x125503;_0xc74c9a(await this[_0x213bf9(0x17b)](_0x469230===se[_0x213bf9(0x244)]));});});}[_0x4a9685(0x4a0)](){const _0x23d13d=this['unitID'];return{'onStateChange':(_0x2b3a3f,_0x365d54)=>{const _0x4ba9f7=_0x5f2c;if(_0x2b3a3f!==this[_0x4ba9f7(0x16f)])throw new Error(_0x4ba9f7(0x39b)+_0x2b3a3f[_0x4ba9f7(0x226)]+_0x4ba9f7(0x40a)+_0x365d54[_0x4ba9f7(0x226)]+_0x4ba9f7(0x300)+this[_0x4ba9f7(0x16f)][_0x4ba9f7(0x226)]);this['_updateState'](_0x365d54);},'onSendChangeset':_0x1199da=>{const _0x1c9050=_0x5f2c;_0x1199da[_0x1c9050(0x229)]||(_0x1199da[_0x1c9050(0x229)]=this[_0x1c9050(0x279)],_0x1199da[_0x1c9050(0x586)]=++this[_0x1c9050(0x36c)]);const _0x574259={'eventID':S[_0x1c9050(0x35a)][_0x1c9050(0x5eb)],'data':{'unitID':_0x1199da[_0x1c9050(0x197)],'unitType':this[_0x1c9050(0x41a)],'changeset':_0x1199da,'memberID':this[_0x1c9050(0x305)][_0x1c9050(0x204)]()}};this[_0x1c9050(0x305)][_0x1c9050(0x170)](_0x574259,this[_0x1c9050(0x197)]);},'onMissingChangesets':({from:_0xfa4879,to:_0x17d1c3})=>{const _0x21bd72=_0x5f2c;this[_0x21bd72(0x480)]['debug'](_0x21bd72(0x2c9),'fetching\x20missing\x20changesets\x20from\x20'+_0xfa4879+_0x21bd72(0x14a)+_0x17d1c3);const _0x17b6c2={'eventID':S[_0x21bd72(0x35a)][_0x21bd72(0x2b4)],'data':{'unitID':_0x23d13d,'unitType':this[_0x21bd72(0x41a)],'from':_0xfa4879,'to':_0x17d1c3}};this[_0x21bd72(0x305)]['send'](_0x17b6c2,this['unitID']);}};}async[_0x4a9685(0x17b)](_0x137489){const _0x52dc57=_0x4a9685;var _0x1365fa,_0x2327a9;const _0x3d72f3=await this[_0x52dc57(0x142)]['loadOfflineData'](this[_0x52dc57(0x197)]),_0x3ee3f2=(_0x1365fa=_0x3d72f3==null?void 0x0:_0x3d72f3[_0x52dc57(0x1b8)])!=null?_0x1365fa:[],_0x507268=(_0x2327a9=_0x3d72f3==null?void 0x0:_0x3d72f3['awaitingChangeset'])!=null?_0x2327a9:null,_0x426ed6=!!(_0x507268!=null&&_0x507268[_0x52dc57(0x229)])&&!!(_0x507268!=null&&_0x507268[_0x52dc57(0x586)]);this[_0x52dc57(0x279)]=_0x426ed6?_0x507268[_0x52dc57(0x229)]:mi(),this[_0x52dc57(0x36c)]=_0x426ed6?_0x507268['reqId']:0x0;const _0x5ee9ed=this[_0x52dc57(0x197)];try{this[_0x52dc57(0x2a5)](_0x507268,_0x3ee3f2);}catch(_0x3156f8){this[_0x52dc57(0x480)][_0x52dc57(0x3d8)](_0x3156f8);}const _0x424ac0=this[_0x52dc57(0x4a0)]();if(_0x137489){const _0x3bde60=mn(this['_injector'],_0x5ee9ed,this[_0x52dc57(0x41a)],_0x507268,_0x3ee3f2,_0x424ac0);return _0x3bde60 instanceof ce?_0x3bde60['_schedule']():(_0x3bde60 instanceof le||_0x3bde60 instanceof fe)&&_0x3bde60[_0x52dc57(0x1dd)](),_0x3bde60;}return this[_0x52dc57(0x372)][_0x52dc57(0x572)](me,_0x5ee9ed,this[_0x52dc57(0x41a)],_0x507268,_0x3ee3f2,_0x424ac0);}[_0x4a9685(0x2a5)](_0x1f4e1e,_0x11b0d4){const _0xe12273=_0x4a9685;var _0xe7871c,_0x819fe3;const _0xda46ac=this[_0xe12273(0x2b3)][_0xe12273(0x200)][_0xe12273(0x3cc)](this[_0xe12273(0x2b3)][_0xe12273(0x200)]['getInterceptPoints']()[_0xe12273(0x3e7)]);(_0xe7871c=_0xda46ac((_0x1f4e1e==null?void 0x0:_0x1f4e1e[_0xe12273(0x1b8)])||[],null))==null||_0xe7871c['forEach'](_0x1f3678=>this[_0xe12273(0x55e)][_0xe12273(0x5f4)](_0x1f3678['id'],_0x1f3678[_0xe12273(0x4da)])),(_0x819fe3=_0xda46ac(_0x11b0d4||[],null))==null||_0x819fe3[_0xe12273(0x38f)](_0x213698=>this[_0xe12273(0x55e)][_0xe12273(0x5f4)](_0x213698['id'],_0x213698[_0xe12273(0x4da)]));}},exports[_0x4a9685(0x469)]=yt([H(0x3,a[_0x4a9685(0x27a)](a[_0x4a9685(0x17d)])),H(0x4,a[_0x4a9685(0x27a)](exports['LocalCacheService'])),H(0x5,a[_0x4a9685(0x27a)](S[_0x4a9685(0x5e2)])),H(0x6,a[_0x4a9685(0x27a)](a[_0x4a9685(0x4a8)])),H(0x7,a[_0x4a9685(0x27a)](S['RevisionService'])),H(0x8,a[_0x4a9685(0x2e8)]),H(0x9,a['ICommandService']),H(0xa,ee['IMessageService']),H(0xb,a[_0x4a9685(0x310)]),H(0xc,a[_0x4a9685(0x59b)](qe))],exports[_0x4a9685(0x469)]),exports[_0x4a9685(0x5b0)]=class extends exports[_0x4a9685(0x469)]{constructor(_0x399965,_0x5d029e,_0x11c7e2,_0x1a6a4a,_0x146416,_0x48e7bd,_0x3af7b3,_0x13d9a3,_0x2cd7c0,_0x3c85c8,_0x255e8e,_0x277ad0,_0x325c19,_0x51232a,_0x5883b6,_0x368630,_0x474536,_0x5861f3){const _0x50e200=_0x4a9685;super(_0x399965,_0x11c7e2,_0x5d029e,_0x1a6a4a,_0x146416,_0x48e7bd,_0x3af7b3,_0x13d9a3,_0x51232a,_0x5883b6,_0x368630,_0x474536,_0x5861f3),this[_0x50e200(0x197)]=_0x399965,this[_0x50e200(0x3e4)]=_0x5d029e,this[_0x50e200(0x4c7)]=_0x2cd7c0,this[_0x50e200(0x504)]=_0x3c85c8,this[_0x50e200(0x24e)]=_0x255e8e,this[_0x50e200(0x59d)]=_0x277ad0,this[_0x50e200(0x53a)]=_0x325c19;}[_0x4a9685(0x4a0)](){const _0x499cc5=_0x4a9685,_0x47095a=super[_0x499cc5(0x4a0)]();return _0x47095a[_0x499cc5(0x45b)]=_0x5e14b6=>this[_0x499cc5(0x504)][_0x499cc5(0x4fc)](_0x5e14b6),_0x47095a['onTransformState']=_0x3c4937=>this[_0x499cc5(0x24e)][_0x499cc5(0x5ba)](_0x3c4937),_0x47095a[_0x499cc5(0x526)]=_0x25da19=>this[_0x499cc5(0x59d)][_0x499cc5(0x58f)](_0x25da19),_0x47095a[_0x499cc5(0x379)]=_0x5bf854=>this[_0x499cc5(0x53a)][_0x499cc5(0x5bc)](_0x5bf854),_0x47095a[_0x499cc5(0x4aa)]=_0x1e61a2=>this['_docTransformIMECacheService'][_0x499cc5(0x203)](_0x1e61a2),_0x47095a[_0x499cc5(0x5a0)]=_0x1cffb5=>this['_docTransformStateCacheService'][_0x499cc5(0x203)](_0x1cffb5),_0x47095a;}async[_0x4a9685(0x3f4)](){const _0x5498fe=_0x4a9685,_0x2388d5=await super[_0x5498fe(0x3f4)]();return this[_0x5498fe(0x4c7)][_0x5498fe(0x430)][_0x5498fe(0x172)](A[_0x5498fe(0x5e8)](this[_0x5498fe(0x5c9)]))[_0x5498fe(0x419)](_0x390f23=>{const _0x34c2a2=_0x5498fe;if(_0x390f23==null)return;const {unitId:_0x381257,redoState:_0x539ca1,commandId:_0x295a26}=_0x390f23;if(_0x381257!==this[_0x34c2a2(0x197)])return;const _0x2b2843={'id':_0x295a26,'type':a[_0x34c2a2(0x4b4)][_0x34c2a2(0x58a)],'params':{'unitId':_0x381257,'actions':_0x539ca1[_0x34c2a2(0x5b6)],'textRanges':null}};this[_0x34c2a2(0x2b2)](_0x2b2843);}),_0x2388d5;}},exports[_0x4a9685(0x5b0)]=yt([H(0x3,a[_0x4a9685(0x27a)](a[_0x4a9685(0x17d)])),H(0x4,a['Inject'](exports[_0x4a9685(0x1a0)])),H(0x5,a['Inject'](S[_0x4a9685(0x5e2)])),H(0x6,a['Inject'](a[_0x4a9685(0x4a8)])),H(0x7,a[_0x4a9685(0x27a)](S[_0x4a9685(0x1a9)])),H(0x8,a[_0x4a9685(0x27a)](J[_0x4a9685(0x492)])),H(0x9,a[_0x4a9685(0x27a)](Be)),H(0xa,a[_0x4a9685(0x27a)](We)),H(0xb,a[_0x4a9685(0x27a)](Fe)),H(0xc,a['Inject'](Rt)),H(0xd,a[_0x4a9685(0x2e8)]),H(0xe,a['ICommandService']),H(0xf,ee[_0x4a9685(0x27d)]),H(0x10,a[_0x4a9685(0x310)]),H(0x11,a[_0x4a9685(0x59b)](qe))],exports[_0x4a9685(0x5b0)]),exports[_0x4a9685(0x456)]=class extends exports['CollaborationEntity']{constructor(_0x5e0f91,_0x497c6d,_0x5ac3b7,_0x28a089,_0x14b035,_0x4ae7b9,_0x3f5806,_0x404f48,_0x587e44,_0x2251ec,_0x574217,_0x4c1ddd,_0x4d68bc,_0xba6c57){const _0x2be83b=_0x4a9685;super(_0x5e0f91,_0x5ac3b7,_0x497c6d,_0x28a089,_0x14b035,_0x4ae7b9,_0x3f5806,_0x404f48,_0x2251ec,_0x574217,_0x4c1ddd,_0x4d68bc,_0xba6c57),this['unitID']=_0x5e0f91,this[_0x2be83b(0x3e4)]=_0x497c6d,this[_0x2be83b(0x257)]=_0x587e44;}[_0x4a9685(0x4a0)](){const _0x55ffe8=_0x4a9685,_0x5a7652=super[_0x55ffe8(0x4a0)]();return _0x5a7652[_0x55ffe8(0x526)]=_0x27fdf4=>this[_0x55ffe8(0x257)]['transformSelections'](_0x27fdf4),_0x5a7652;}async[_0x4a9685(0x3f4)](){const _0x18c0d1=_0x4a9685,_0x11eab5=await super[_0x18c0d1(0x3f4)]();return this[_0x18c0d1(0x3c7)](this[_0x18c0d1(0x55e)]['onCommandExecuted']((_0x395dd2,_0x30f940)=>{const _0x379510=_0x18c0d1;if(_0x395dd2[_0x379510(0x3e4)]!==a[_0x379510(0x4b4)][_0x379510(0x58a)]||_0x30f940!=null&&_0x30f940[_0x379510(0x20d)]||_0x30f940!=null&&_0x30f940[_0x379510(0x2d7)])return;const _0x4ea6ae=_0x395dd2[_0x379510(0x4da)];if((_0x4ea6ae==null?void 0x0:_0x4ea6ae[_0x379510(0x2de)])!==this[_0x379510(0x197)])return;const _0xe89315=_0x395dd2,_0x49ccb8=this[_0x379510(0x2b3)][_0x379510(0x200)][_0x379510(0x3cc)](this[_0x379510(0x2b3)][_0x379510(0x200)]['getInterceptPoints']()[_0x379510(0x472)])([_0xe89315],null)||[_0xe89315];this['_onLocalMutation'](_0x49ccb8[0x0]);})),_0x11eab5;}},exports[_0x4a9685(0x456)]=yt([H(0x3,a['Inject'](a[_0x4a9685(0x17d)])),H(0x4,a[_0x4a9685(0x27a)](exports['LocalCacheService'])),H(0x5,a[_0x4a9685(0x27a)](S['CompressMutationService'])),H(0x6,a[_0x4a9685(0x27a)](a[_0x4a9685(0x4a8)])),H(0x7,a['Inject'](S[_0x4a9685(0x1a9)])),H(0x8,a[_0x4a9685(0x27a)](ke)),H(0x9,a[_0x4a9685(0x2e8)]),H(0xa,a['ICommandService']),H(0xb,ee[_0x4a9685(0x27d)]),H(0xc,a[_0x4a9685(0x310)]),H(0xd,a['Optional'](qe))],exports[_0x4a9685(0x456)]);var Wi=Object['defineProperty'],Fi=Object[_0x4a9685(0x484)],Vi=(_0x481ef1,_0xdb0237,_0x47c285,_0x56f2d7)=>{for(var _0x3ea802=_0x56f2d7>0x1?void 0x0:_0x56f2d7?Fi(_0xdb0237,_0x47c285):_0xdb0237,_0xc89e=_0x481ef1['length']-0x1,_0xa7899b;_0xc89e>=0x0;_0xc89e--)(_0xa7899b=_0x481ef1[_0xc89e])&&(_0x3ea802=(_0x56f2d7?_0xa7899b(_0xdb0237,_0x47c285,_0x3ea802):_0xa7899b(_0x3ea802))||_0x3ea802);return _0x56f2d7&&_0x3ea802&&Wi(_0xdb0237,_0x47c285,_0x3ea802),_0x3ea802;},tt=(_0x137694,_0x391c1a)=>(_0x16cba1,_0x3c7aa1)=>_0x391c1a(_0x16cba1,_0x3c7aa1,_0x137694);exports[_0x4a9685(0x1ff)]=class extends a[_0x4a9685(0x2c7)]{constructor(_0x43129f,_0x34bb48,_0x40ae74){const _0x3aa70e=_0x4a9685;super(),I(this,_0x3aa70e(0x35f),new Map()),I(this,_0x3aa70e(0x242),new A[(_0x3aa70e(0x4c3))]()),(this['_injector']=_0x43129f,this[_0x3aa70e(0x5b4)]=_0x34bb48,this[_0x3aa70e(0x54a)]=_0x40ae74,this[_0x3aa70e(0x3f4)]());}['dispose'](){const _0x1c0237=_0x4a9685;super[_0x1c0237(0x1d7)](),this[_0x1c0237(0x35f)][_0x1c0237(0x38f)](_0xa619c=>_0xa619c[_0x1c0237(0x1d7)]()),this[_0x1c0237(0x35f)]['clear']();}[_0x4a9685(0x298)](_0x193866){const _0x5e071e=_0x4a9685;var _0x47ff10;return(_0x47ff10=this[_0x5e071e(0x35f)][_0x5e071e(0x542)](_0x193866))!=null?_0x47ff10:null;}[_0x4a9685(0x5bf)](_0x34a92b){const _0x158256=_0x4a9685,_0x4a60f1=this[_0x158256(0x298)](_0x34a92b);return _0x4a60f1?A['of'](_0x4a60f1):this[_0x158256(0x242)][_0x158256(0x172)](V['filter'](_0x42b5d7=>_0x42b5d7[_0x158256(0x197)]===_0x34a92b));}['_init'](){const _0x57883b=_0x4a9685;this[_0x57883b(0x54a)][_0x57883b(0x3f9)](a[_0x57883b(0x33e)][_0x57883b(0x1af)])[_0x57883b(0x172)](A['takeUntil'](this[_0x57883b(0x5c9)]),V[_0x57883b(0x55d)](0x10))[_0x57883b(0x419)](async _0x3f0a53=>{const _0x475050=_0x57883b,_0x1e7729=_0x3f0a53['getUnitId'](),_0x495c17=await this[_0x475050(0x2a1)](_0x1e7729,ie[_0x475050(0x1af)]);this[_0x475050(0x35f)]['set'](_0x1e7729,_0x495c17);}),this[_0x57883b(0x54a)][_0x57883b(0x3f9)](a['UniverInstanceType'][_0x57883b(0x22a)])['pipe'](A[_0x57883b(0x5e8)](this['dispose$']),V[_0x57883b(0x55d)](0x10))[_0x57883b(0x172)](V[_0x57883b(0x464)](_0x181a9f=>!_0x181a9f['getUnitId']()['startsWith']('__')))[_0x57883b(0x419)](async _0x197c7b=>{const _0x4366f8=_0x57883b,_0x3160b3=_0x197c7b[_0x4366f8(0x56f)](),_0x2c816a=await this[_0x4366f8(0x2a1)](_0x3160b3,ie['UNIVER_DOC']);this[_0x4366f8(0x35f)][_0x4366f8(0x568)](_0x3160b3,_0x2c816a);}),A[_0x57883b(0x345)](this[_0x57883b(0x54a)][_0x57883b(0x388)](a[_0x57883b(0x33e)]['UNIVER_SHEET']),this[_0x57883b(0x54a)][_0x57883b(0x388)](a[_0x57883b(0x33e)]['UNIVER_DOC']))['pipe'](A['takeUntil'](this['dispose$']))[_0x57883b(0x419)](_0x3b4000=>{const _0x41e400=_0x57883b,_0x2954c8=_0x3b4000[_0x41e400(0x56f)](),_0x5e69ac=this[_0x41e400(0x35f)][_0x41e400(0x542)](_0x2954c8);_0x5e69ac&&(_0x5e69ac['dispose'](),this[_0x41e400(0x35f)][_0x41e400(0x224)](_0x2954c8));});}async[_0x4a9685(0x2a1)](_0x633c78,_0x5a7489){const _0x1e3a25=_0x4a9685,_0x2e4088=await this[_0x1e3a25(0x5b4)][_0x1e3a25(0x461)](_0x633c78),_0x1cfa4f=this['_injector'][_0x1e3a25(0x572)](this[_0x1e3a25(0x3fa)](_0x5a7489),_0x633c78,_0x5a7489,_0x2e4088);return await _0x1cfa4f[_0x1e3a25(0x432)](),this[_0x1e3a25(0x242)][_0x1e3a25(0x503)](_0x1cfa4f),_0x1cfa4f;}[_0x4a9685(0x3fa)](_0x4bccd9){const _0x52b296=_0x4a9685;switch(_0x4bccd9){case ie[_0x52b296(0x22a)]:return exports[_0x52b296(0x5b0)];case ie[_0x52b296(0x1af)]:return exports[_0x52b296(0x456)];default:throw new Error(_0x52b296(0x150)+_0x4bccd9);}}},exports[_0x4a9685(0x1ff)]=Vi([tt(0x0,a['Inject'](a[_0x4a9685(0x17d)])),tt(0x1,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x2a7)])),tt(0x2,a[_0x4a9685(0x3c5)])],exports[_0x4a9685(0x1ff)]);const $t=['purple300','jiqing500','verdancy600','red300',_0x4a9685(0x5e4),_0x4a9685(0x1e0)];class Ot extends a[_0x4a9685(0x261)]{constructor(){const _0x2f1cf2=_0x4a9685;super(...arguments),I(this,_0x2f1cf2(0x137),new Map()),I(this,'_colorIndex',0x0);}[_0x4a9685(0x3b0)](_0x3dd24d){const _0x49ede7=_0x4a9685;if(this[_0x49ede7(0x137)][_0x49ede7(0x1d2)](_0x3dd24d))return this['_assignedColors'][_0x49ede7(0x542)](_0x3dd24d);const _0x40ba36=$t[this[_0x49ede7(0x23c)]];return this[_0x49ede7(0x23c)]=(this[_0x49ede7(0x23c)]+0x1)%$t['length'],this[_0x49ede7(0x137)][_0x49ede7(0x568)](_0x3dd24d,_0x40ba36),_0x40ba36;}}var Gi=Object['defineProperty'],Yi=Object[_0x4a9685(0x484)],Ki=(_0x4fd6b0,_0x5b8807,_0x418d26,_0x44ba38)=>{const _0x1197a2=_0x4a9685;for(var _0x1f9b6e=_0x44ba38>0x1?void 0x0:_0x44ba38?Yi(_0x5b8807,_0x418d26):_0x5b8807,_0x238969=_0x4fd6b0[_0x1197a2(0x530)]-0x1,_0xff9bc3;_0x238969>=0x0;_0x238969--)(_0xff9bc3=_0x4fd6b0[_0x238969])&&(_0x1f9b6e=(_0x44ba38?_0xff9bc3(_0x5b8807,_0x418d26,_0x1f9b6e):_0xff9bc3(_0x1f9b6e))||_0x1f9b6e);return _0x44ba38&&_0x1f9b6e&&Gi(_0x5b8807,_0x418d26,_0x1f9b6e),_0x1f9b6e;},Se=(_0x3e1420,_0x286aff)=>(_0x164b10,_0x50fcaf)=>_0x286aff(_0x164b10,_0x50fcaf,_0x3e1420);const qi=0x12c,zi=0x64;let mt=class extends a[_0x4a9685(0x2c7)]{constructor(_0x20ee0b,_0x30ee2b,_0xe0ed27,_0x65bf6e,_0x54c902,_0x30ac97,_0x291bd8,_0x3ff39b,_0x16e904){const _0x5ebb79=_0x4a9685;super(),I(this,_0x5ebb79(0x420),!0x1),I(this,_0x5ebb79(0x3f4),!0x1),I(this,_0x5ebb79(0x3be),new A[(_0x5ebb79(0x563))](new Map())),I(this,_0x5ebb79(0x3d1),this[_0x5ebb79(0x3be)]['asObservable']()),I(this,_0x5ebb79(0x490),new A[(_0x5ebb79(0x563))]([])),I(this,_0x5ebb79(0x46e),this[_0x5ebb79(0x490)][_0x5ebb79(0x172)](A[_0x5ebb79(0x416)](qi))),I(this,_0x5ebb79(0x2fa),a[_0x5ebb79(0x158)](_0x2615a7=>{const _0xc1cf39=_0x5ebb79,_0x15b1f0={'eventID':S[_0xc1cf39(0x35a)]['UPDATE_CURSOR'],'data':{'unitID':this[_0xc1cf39(0x197)],'memberID':this[_0xc1cf39(0x466)][_0xc1cf39(0x204)](),'selection':dn(_0x2615a7)}};this[_0xc1cf39(0x466)][_0xc1cf39(0x170)](_0x15b1f0,this[_0xc1cf39(0x197)]);},zi)),(this[_0x5ebb79(0x197)]=_0x20ee0b,this[_0x5ebb79(0x466)]=_0x30ee2b,this[_0x5ebb79(0x372)]=_0xe0ed27,this[_0x5ebb79(0x544)]=_0x65bf6e,this[_0x5ebb79(0x1f9)]=_0x54c902,this['_syncEditingCollabCursorService']=_0x30ac97,this['_transformService']=_0x291bd8,this['_univerInstanceService']=_0x3ff39b,this[_0x5ebb79(0x55e)]=_0x16e904);}get[_0x4a9685(0x468)](){return this['_cursorInfo$']['getValue']();}get[_0x4a9685(0x334)](){const _0x1509db=_0x4a9685;return this[_0x1509db(0x490)][_0x1509db(0x1ae)]();}['dispose'](){const _0x3cf017=_0x4a9685;super[_0x3cf017(0x1d7)](),this[_0x3cf017(0x3be)][_0x3cf017(0x503)](new Map()),this[_0x3cf017(0x3be)]['complete'](),this[_0x3cf017(0x490)][_0x3cf017(0x503)]([]),this[_0x3cf017(0x490)]['complete']();}[_0x4a9685(0x432)](){const _0x355284=_0x4a9685;this[_0x355284(0x3f4)]||(this[_0x355284(0x3f4)]=!0x0,this[_0x355284(0x466)][_0x355284(0x44d)][_0x355284(0x172)](A[_0x355284(0x5e8)](this[_0x355284(0x5c9)]))[_0x355284(0x419)](_0x3a447e=>{const _0x30194f=_0x355284;_0x3a447e===se[_0x30194f(0x244)]?this[_0x30194f(0x4dd)]():this['_toggleOffline']();}),this[_0x355284(0x466)]['event$'][_0x355284(0x172)](A[_0x355284(0x5e8)](this['dispose$']))[_0x355284(0x419)](_0x54ab2a=>{const _0x33e1bc=_0x355284,_0x292e7d=_0x54ab2a['eventID'];_0x292e7d===S[_0x33e1bc(0x35a)][_0x33e1bc(0x49a)]&&this[_0x33e1bc(0x4f8)](_0x54ab2a),_0x292e7d===S[_0x33e1bc(0x35a)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x54ab2a);}),this[_0x355284(0x3c7)](this[_0x355284(0x55e)][_0x355284(0x555)](_0x1a4e16=>{const _0x26b0bf=_0x355284,_0x27d151=_0x1a4e16[_0x26b0bf(0x4da)];_0x27d151!=null&&this['_online']&&_0x1a4e16['id']===ye[_0x26b0bf(0x50a)]['id']&&_0x27d151[_0x26b0bf(0x2de)]===this[_0x26b0bf(0x197)]&&_0x27d151['isEditing']===!0x1&&_0x27d151[_0x26b0bf(0x1c1)]['length']>0x0&&this[_0x26b0bf(0x2fa)](_0x27d151[_0x26b0bf(0x1c1)]);})),this['_syncEditingCollabCursorService'][_0x355284(0x20a)][_0x355284(0x172)](A[_0x355284(0x5e8)](this[_0x355284(0x5c9)]))[_0x355284(0x419)](_0x506934=>{const _0x1590ec=_0x355284;if((_0x506934==null?void 0x0:_0x506934[_0x1590ec(0x197)])!==this['unitID'])return;const _0xff5153={'eventID':S[_0x1590ec(0x35a)][_0x1590ec(0x49a)],'data':_0x506934};this[_0x1590ec(0x4f8)](_0xff5153);}),this[_0x355284(0x3c7)](this[_0x355284(0x55e)]['onCommandExecuted'](_0x422a0a=>{const _0x4397a3=_0x355284;if(_0x422a0a['params']==null)return;const _0x4d80e0=_0x422a0a['params'];if(_0x422a0a['id']!==ye[_0x4397a3(0x4de)]['id']||_0x4d80e0[_0x4397a3(0x2de)]!==this['unitID'])return;const _0x1a9300={'id':_0x4397a3(0x3cf),'params':_0x4d80e0},_0x4aab6e=this['cursorInfo'];for(const [_0x104c0e,_0x4e47f0]of _0x4aab6e){const _0x3fe4f7={'id':_0x4397a3(0x3cf),'params':{'unitId':this[_0x4397a3(0x197)],'actions':null,'textRanges':_0x4e47f0[_0x4397a3(0x1c1)]}},_0x1ff816=this[_0x4397a3(0x4f6)][_0x4397a3(0x23e)](_0x1a9300,_0x3fe4f7,!0x1);if(S[_0x4397a3(0x498)](_0x1ff816))throw _0x1ff816['error'];_0x4aab6e[_0x4397a3(0x568)](_0x104c0e,{..._0x4e47f0,'ranges':_0x1ff816[_0x4397a3(0x403)][_0x4397a3(0x4da)][_0x4397a3(0x236)]});}queueMicrotask(()=>{this['_cursorInfo$']['next'](_0x4aab6e);});})));}[_0x4a9685(0x4f8)](_0x1b7975){const _0x4747b6=_0x4a9685;var _0x436171,_0x3b1d9f;const {memberID:_0x5344dd,selection:_0x395c1a}=_0x1b7975[_0x4747b6(0x18f)],_0x1f32ac=Ui(_0x395c1a),_0x36632d=(_0x3b1d9f=(_0x436171=this[_0x4747b6(0x1f9)][_0x4747b6(0x5a6)](this[_0x4747b6(0x197)],_0x5344dd))==null?void 0x0:_0x436171[_0x4747b6(0x2b9)])!=null?_0x3b1d9f:_0x4747b6(0x4af),_0x493456={'color':this[_0x4747b6(0x544)]['assignAColorForMemberID'](_0x5344dd),'name':_0x36632d,'ranges':_0x1f32ac},_0xc0c878=this[_0x4747b6(0x468)];_0xc0c878[_0x4747b6(0x568)](_0x5344dd,_0x493456),this[_0x4747b6(0x3be)][_0x4747b6(0x503)](_0xc0c878);}[_0x4a9685(0x4f0)](_0x5842e2){const _0x51a608=_0x4a9685,{memberID:_0xbf7719}=_0x5842e2['data'],_0x55770f=this['cursorInfo'];_0x55770f[_0x51a608(0x224)](_0xbf7719),this[_0x51a608(0x3be)][_0x51a608(0x503)](_0x55770f);}[_0x4a9685(0x4dd)](){const _0x552ccd=_0x4a9685;var _0x4a1b9e;if(this['_online']=!0x0,((_0x4a1b9e=this[_0x552ccd(0x54a)][_0x552ccd(0x2dd)]())==null?void 0x0:_0x4a1b9e[_0x552ccd(0x56f)]())!==this['unitID'])return;const _0x3f6a75=this[_0x552ccd(0x372)]['get'](ye[_0x552ccd(0x1f8)])[_0x552ccd(0x231)]();Array['isArray'](_0x3f6a75)&&_0x3f6a75[_0x552ccd(0x530)]>0x0&&this[_0x552ccd(0x2fa)](_0x3f6a75);}['_toggleOffline'](){this['_online']=!0x1;}};mt=Ki([Se(0x2,a[_0x4a9685(0x27a)](a['Injector'])),Se(0x3,a[_0x4a9685(0x27a)](Ot)),Se(0x4,a['Inject'](exports[_0x4a9685(0x3e1)])),Se(0x5,a[_0x4a9685(0x27a)](Rt)),Se(0x6,S['ITransformService']),Se(0x7,a[_0x4a9685(0x3c5)]),Se(0x8,a['ICommandService'])],mt);var Xi=Object[_0x4a9685(0x377)],Ji=Object[_0x4a9685(0x484)],Zi=(_0x83b968,_0x211619,_0x25a295,_0x5d1c59)=>{for(var _0x20175f=_0x5d1c59>0x1?void 0x0:_0x5d1c59?Ji(_0x211619,_0x25a295):_0x211619,_0x12c720=_0x83b968['length']-0x1,_0x1b60ff;_0x12c720>=0x0;_0x12c720--)(_0x1b60ff=_0x83b968[_0x12c720])&&(_0x20175f=(_0x5d1c59?_0x1b60ff(_0x211619,_0x25a295,_0x20175f):_0x1b60ff(_0x20175f))||_0x20175f);return _0x5d1c59&&_0x20175f&&Xi(_0x211619,_0x25a295,_0x20175f),_0x20175f;},be=(_0x559b03,_0x1ab25f)=>(_0x44ba05,_0x750587)=>_0x1ab25f(_0x44ba05,_0x750587,_0x559b03);const Qi=0x12c,es=0x64,ts=()=>{let _0x3baa65=[],_0x234ee9=!0x1;return _0x482bb6=>{_0x3baa65['push'](_0x482bb6),_0x234ee9||(_0x234ee9=!0x0,setTimeout(()=>{const _0x509fc0=_0x5f2c;_0x3baa65[_0x509fc0(0x38f)](_0xfb7950=>_0xfb7950()),_0x3baa65=[],_0x234ee9=!0x1;}));};};let St=class extends a[_0x4a9685(0x2c7)]{constructor(_0x4c1234,_0x44df28,_0x3b98d2,_0x25f44d,_0x5a32cf,_0x997642,_0x4b61a2,_0x365954){const _0x5cf697=_0x4a9685;super(),I(this,_0x5cf697(0x420),!0x1),I(this,_0x5cf697(0x3f4),!0x1),I(this,'_cursorInfo$',new A[(_0x5cf697(0x563))](new Map())),I(this,_0x5cf697(0x3d1),this[_0x5cf697(0x3be)][_0x5cf697(0x135)]()),I(this,'_roomMembers$',new A[(_0x5cf697(0x563))]([])),I(this,_0x5cf697(0x46e),this['_roomMembers$'][_0x5cf697(0x172)](A[_0x5cf697(0x416)](Qi))),I(this,_0x5cf697(0x2fa),a[_0x5cf697(0x158)]((_0x1cc945,_0xfead57)=>{const _0x259163=_0x5cf697,_0x1e3d54={'eventID':S['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x259163(0x197)],'memberID':this[_0x259163(0x466)][_0x259163(0x204)](),'selection':Pt[_0x259163(0x41c)](_0x1cc945,_0xfead57[_0x259163(0x27f)])}};this['_session']['send'](_0x1e3d54,this[_0x259163(0x197)]);},es)),(this[_0x5cf697(0x197)]=_0x4c1234,this[_0x5cf697(0x466)]=_0x44df28,this['_injector']=_0x3b98d2,this['_colorAssignService']=_0x25f44d,this[_0x5cf697(0x1f9)]=_0x5a32cf,this[_0x5cf697(0x54a)]=_0x997642,this[_0x5cf697(0x55e)]=_0x4b61a2,this[_0x5cf697(0x4fa)]=_0x365954);}get[_0x4a9685(0x468)](){const _0x18f97e=_0x4a9685;return this[_0x18f97e(0x3be)]['getValue']();}get['roomMembers'](){const _0x38d57c=_0x4a9685;return this[_0x38d57c(0x490)][_0x38d57c(0x1ae)]();}[_0x4a9685(0x1d7)](){const _0x190678=_0x4a9685;super[_0x190678(0x1d7)](),this['_cursorInfo$'][_0x190678(0x503)](new Map()),this[_0x190678(0x3be)]['complete'](),this['_roomMembers$'][_0x190678(0x503)]([]),this[_0x190678(0x490)][_0x190678(0x2f7)]();}['init'](){const _0x28d850=_0x4a9685;this[_0x28d850(0x3f4)]||(this['_init']=!0x0,this[_0x28d850(0x466)]['sessionStatus$'][_0x28d850(0x172)](A[_0x28d850(0x5e8)](this[_0x28d850(0x5c9)]))[_0x28d850(0x419)](_0xf2331f=>{const _0x47922a=_0x28d850;_0xf2331f===se[_0x47922a(0x244)]?this[_0x47922a(0x4dd)]():this[_0x47922a(0x1c0)]();}),this['_session'][_0x28d850(0x297)][_0x28d850(0x172)](A[_0x28d850(0x5e8)](this[_0x28d850(0x5c9)]))['subscribe'](_0x595525=>{const _0x3dc3ab=_0x28d850,_0x3d0cb5=_0x595525[_0x3dc3ab(0x3af)];_0x3d0cb5===S[_0x3dc3ab(0x35a)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x595525),_0x3d0cb5===S[_0x3dc3ab(0x35a)][_0x3dc3ab(0x5c3)]&&this[_0x3dc3ab(0x4f0)](_0x595525);}),this[_0x28d850(0x48e)](),this[_0x28d850(0x3c7)](this[_0x28d850(0x55e)]['onCommandExecuted'](_0x67fffb=>{const _0x45b33a=_0x28d850;if(this['_online']&&_0x67fffb['id']===k[_0x45b33a(0x25b)]['id']&&_0x67fffb[_0x45b33a(0x4da)][_0x45b33a(0x2de)]===this[_0x45b33a(0x197)]){const _0x32ef0b=_0x67fffb[_0x45b33a(0x4da)];this[_0x45b33a(0x2fa)](_0x32ef0b[_0x45b33a(0x2ae)],_0x32ef0b[_0x45b33a(0x5c6)][0x0]);}})));}['_onCursorUpdate'](_0x4fdfb3){const _0x482c8e=_0x4a9685;var _0x5a33fe,_0x42bda2;const {memberID:_0x5f474f,selection:_0x1f57d8}=_0x4fdfb3['data'],{sheetName:_0x34ea61,range:_0x306930}=Pt[_0x482c8e(0x329)](_0x1f57d8),_0x194405={'name':(_0x42bda2=(_0x5a33fe=this[_0x482c8e(0x1f9)][_0x482c8e(0x5a6)](this['unitID'],_0x5f474f))==null?void 0x0:_0x5a33fe[_0x482c8e(0x2b9)])!=null?_0x42bda2:_0x482c8e(0x4af),'range':this[_0x482c8e(0x4f5)](_0x34ea61,_0x306930),'sheetID':_0x34ea61,'color':this[_0x482c8e(0x544)]['assignAColorForMemberID'](_0x5f474f),'selection':_0x1f57d8},_0x8526c8=this[_0x482c8e(0x468)];_0x8526c8['set'](_0x5f474f,_0x194405),this[_0x482c8e(0x3be)]['next'](_0x8526c8);}[_0x4a9685(0x4f0)](_0x3aa6a0){const _0x36f32f=_0x4a9685,{memberID:_0x37499c}=_0x3aa6a0[_0x36f32f(0x18f)],_0x5cf652=this[_0x36f32f(0x468)];_0x5cf652['delete'](_0x37499c),this[_0x36f32f(0x3be)][_0x36f32f(0x503)](_0x5cf652);}[_0x4a9685(0x4f5)](_0x9e0736,_0x39d57f){const _0x491ca0=_0x4a9685;var _0xae6002,_0x3e9ccb;const _0x514d02=(_0x3e9ccb=(_0xae6002=this[_0x491ca0(0x54a)]['getUniverSheetInstance'](this[_0x491ca0(0x197)]))==null?void 0x0:_0xae6002[_0x491ca0(0x2ca)](_0x9e0736))==null?void 0x0:_0x3e9ccb[_0x491ca0(0x4d1)]();return(_0x514d02==null?void 0x0:_0x514d02[_0x491ca0(0x284)](_0x40d29a=>a['Rectangle'][_0x491ca0(0x167)](_0x40d29a,_0x39d57f)))||_0x39d57f;}[_0x4a9685(0x48e)](){const _0x2c6bf4=_0x4a9685,_0x365faa=new a[(_0x2c6bf4(0x4b2))](),_0x1d7943=ts(),_0x1870c1=()=>{const _0x1f6d10=_0x2c6bf4;_0x365faa[_0x1f6d10(0x1d7)]();const _0x3e08c9=(_0xaddbc5,_0x2875ca,_0x3e86d3,_0x5b8423)=>{const _0xb54edd=_0x1f6d10;let _0x49258e=[];switch(_0xaddbc5['id']){case k[_0xb54edd(0x48c)][_0xb54edd(0x4b7)]:{_0x49258e=k['handleDeleteRangeMoveLeft'](_0xaddbc5,_0x5b8423);break;}case k['EffectRefRangId'][_0xb54edd(0x2e4)]:{_0x49258e=k[_0xb54edd(0x169)](_0xaddbc5,_0x5b8423);break;}case k['EffectRefRangId'][_0xb54edd(0x2da)]:{_0x49258e=k[_0xb54edd(0x3ff)](_0xaddbc5,_0x5b8423);break;}case k[_0xb54edd(0x48c)][_0xb54edd(0x471)]:{_0x49258e=k['handleInsertRangeMoveDown'](_0xaddbc5,_0x5b8423);break;}case k[_0xb54edd(0x48c)]['InsertRangeMoveRightCommandId']:{_0x49258e=k['handleInsertRangeMoveRight'](_0xaddbc5,_0x5b8423);break;}case k[_0xb54edd(0x48c)][_0xb54edd(0x58e)]:{_0x49258e=k['handleInsertRow'](_0xaddbc5,_0x5b8423);break;}case k['EffectRefRangId'][_0xb54edd(0x219)]:{_0x49258e=k['handleMoveRange'](_0xaddbc5,_0x5b8423);break;}case k[_0xb54edd(0x48c)][_0xb54edd(0x316)]:{_0x49258e=k['handleIRemoveCol'](_0xaddbc5,_0x5b8423);break;}case k[_0xb54edd(0x48c)]['RemoveRowCommandId']:{_0x49258e=k[_0xb54edd(0x587)](_0xaddbc5,_0x5b8423);break;}}const _0x56b403=k[_0xb54edd(0x458)](_0x49258e,_0x5b8423),_0x13b859=this['cursorInfo'][_0xb54edd(0x542)](_0x2875ca);if(_0x13b859&&_0x56b403){const _0x469398={..._0x13b859,'range':_0x56b403};this[_0xb54edd(0x468)]['set'](_0x2875ca,_0x469398),_0x1d7943(()=>{const _0x407598=_0xb54edd,_0x215ddc=this['_refRangeService'][_0x407598(0x506)](_0x56b403,_0x3443fe=>(_0x215ddc[_0x407598(0x1d7)](),_0x3e08c9(_0x3443fe,_0x2875ca,_0x3e86d3,_0x56b403)));_0x365faa['add'](_0x215ddc);});}return{'redos':[],'undos':[]};};this['cursorInfo'][_0x1f6d10(0x38f)]((_0x45e2e6,_0x1d1f12)=>{const _0x4b60c7=_0x1f6d10,{range:_0x2a365d,sheetID:_0x1a4317}=_0x45e2e6,_0x5de2d4=this[_0x4b60c7(0x4fa)][_0x4b60c7(0x506)](_0x2a365d,_0xb533=>(_0x5de2d4[_0x4b60c7(0x1d7)](),_0x3e08c9(_0xb533,_0x1d1f12,_0x1a4317,_0x2a365d)));_0x365faa[_0x4b60c7(0x42a)](_0x5de2d4);});};this[_0x2c6bf4(0x3c7)](a[_0x2c6bf4(0x4fd)](this[_0x2c6bf4(0x3be)][_0x2c6bf4(0x419)](()=>{_0x1870c1();})));}[_0x4a9685(0x4dd)](){const _0x26e3ed=_0x4a9685;var _0x62973c,_0x20cf1a;if(this[_0x26e3ed(0x420)]=!0x0,((_0x62973c=this['_univerInstanceService'][_0x26e3ed(0x2dd)]())==null?void 0x0:_0x62973c[_0x26e3ed(0x56f)]())!==this[_0x26e3ed(0x197)])return;const _0x1d4524=(_0x20cf1a=this[_0x26e3ed(0x372)][_0x26e3ed(0x542)](k[_0x26e3ed(0x31c)])[_0x26e3ed(0x3b1)]())==null?void 0x0:_0x20cf1a[0x0],_0x4e2217=this['_univerInstanceService'][_0x26e3ed(0x5cf)](a['UniverInstanceType'][_0x26e3ed(0x1af)])[_0x26e3ed(0x4d4)]();_0x1d4524&&_0x4e2217&&this[_0x26e3ed(0x2fa)](_0x4e2217[_0x26e3ed(0x180)](),_0x1d4524);}[_0x4a9685(0x1c0)](){const _0x123934=_0x4a9685;this[_0x123934(0x420)]=!0x1;}};St=Zi([be(0x2,a['Inject'](a['Injector'])),be(0x3,a[_0x4a9685(0x27a)](Ot)),be(0x4,a['Inject'](exports[_0x4a9685(0x3e1)])),be(0x5,a[_0x4a9685(0x3c5)]),be(0x6,a[_0x4a9685(0x449)]),be(0x7,a[_0x4a9685(0x27a)](k[_0x4a9685(0x198)]))],St);var ns=Object[_0x4a9685(0x377)],is=Object[_0x4a9685(0x484)],ss=(_0x34f34d,_0xa5b57b,_0x24dccc,_0x57fb50)=>{const _0xc984f9=_0x4a9685;for(var _0x3451f1=_0x57fb50>0x1?void 0x0:_0x57fb50?is(_0xa5b57b,_0x24dccc):_0xa5b57b,_0x31250e=_0x34f34d[_0xc984f9(0x530)]-0x1,_0x1fbb62;_0x31250e>=0x0;_0x31250e--)(_0x1fbb62=_0x34f34d[_0x31250e])&&(_0x3451f1=(_0x57fb50?_0x1fbb62(_0xa5b57b,_0x24dccc,_0x3451f1):_0x1fbb62(_0x3451f1))||_0x3451f1);return _0x57fb50&&_0x3451f1&&ns(_0xa5b57b,_0x24dccc,_0x3451f1),_0x3451f1;},nt=(_0x228cff,_0x4619ca)=>(_0x16d455,_0x5b2431)=>_0x4619ca(_0x16d455,_0x5b2431,_0x228cff);let De=class extends a[_0x4a9685(0x2c7)]{constructor(_0x3ad23c,_0x3321e8,_0x4087c3){const _0x16fc7f=_0x4a9685;super(),I(this,_0x16fc7f(0x35f),new Map()),I(this,_0x16fc7f(0x242),new A['Subject']()),(this[_0x16fc7f(0x54a)]=_0x3ad23c,this[_0x16fc7f(0x372)]=_0x3321e8,this[_0x16fc7f(0x5b4)]=_0x4087c3,this[_0x16fc7f(0x3f4)]());}[_0x4a9685(0x1d7)](){const _0x545527=_0x4a9685;super['dispose'](),this[_0x545527(0x242)]['complete'](),this[_0x545527(0x35f)][_0x545527(0x38f)](_0x430d87=>_0x430d87['dispose']());}[_0x4a9685(0x406)](_0xdc9732){const _0x57684f=_0x4a9685;return this[_0x57684f(0x35f)][_0x57684f(0x1d2)](_0xdc9732)?this[_0x57684f(0x35f)][_0x57684f(0x542)](_0xdc9732)[_0x57684f(0x3d1)]:this[_0x57684f(0x242)][_0x57684f(0x172)](A['filter'](_0x4a39cb=>_0x4a39cb[_0x57684f(0x197)]===_0xdc9732),A[_0x57684f(0x4c9)](_0x974679=>_0x974679[_0x57684f(0x3d1)]));}[_0x4a9685(0x3f4)](){const _0x1099ba=_0x4a9685;this[_0x1099ba(0x54a)]['getTypeOfUnitAdded$'](a[_0x1099ba(0x33e)]['UNIVER_SHEET'])[_0x1099ba(0x172)](A[_0x1099ba(0x5e8)](this[_0x1099ba(0x5c9)]))[_0x1099ba(0x419)](async _0x55096c=>{const _0x1a52d0=_0x1099ba,_0x1be740=_0x55096c[_0x1a52d0(0x56f)](),_0x2a0801=await this[_0x1a52d0(0x1c4)](_0x1be740);this[_0x1a52d0(0x242)][_0x1a52d0(0x503)](_0x2a0801),this[_0x1a52d0(0x35f)][_0x1a52d0(0x568)](_0x1be740,_0x2a0801);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x1099ba(0x33e)][_0x1099ba(0x22a)])[_0x1099ba(0x172)](A[_0x1099ba(0x5e8)](this[_0x1099ba(0x5c9)]))[_0x1099ba(0x172)](A[_0x1099ba(0x464)](_0x4b06b6=>!_0x4b06b6[_0x1099ba(0x56f)]()[_0x1099ba(0x3c4)]('__')))[_0x1099ba(0x419)](async _0x5dbffe=>{const _0x66163e=_0x1099ba,_0x4164a8=_0x5dbffe[_0x66163e(0x56f)](),_0x277154=await this[_0x66163e(0x574)](_0x4164a8);this[_0x66163e(0x242)][_0x66163e(0x503)](_0x277154),this[_0x66163e(0x35f)][_0x66163e(0x568)](_0x4164a8,_0x277154);}),A['merge'](this[_0x1099ba(0x54a)][_0x1099ba(0x388)](a[_0x1099ba(0x33e)][_0x1099ba(0x22a)]),this[_0x1099ba(0x54a)][_0x1099ba(0x388)](a[_0x1099ba(0x33e)][_0x1099ba(0x1af)]))[_0x1099ba(0x172)](A[_0x1099ba(0x5e8)](this[_0x1099ba(0x5c9)]))[_0x1099ba(0x419)](_0x4d4b69=>{const _0x1b007a=_0x1099ba,_0x176d9d=_0x4d4b69[_0x1b007a(0x56f)](),_0x5dd815=this['_entities'][_0x1b007a(0x542)](_0x176d9d);_0x5dd815&&(_0x5dd815['dispose'](),this['_entities']['delete'](_0x176d9d));});}async[_0x4a9685(0x1c4)](_0x54acaf){const _0x2ff541=_0x4a9685,_0x166a9d=await this[_0x2ff541(0x5b4)][_0x2ff541(0x461)](_0x54acaf),_0x3b137d=this[_0x2ff541(0x372)][_0x2ff541(0x572)](St,_0x54acaf,_0x166a9d);return _0x3b137d['init'](),_0x3b137d;}async[_0x4a9685(0x574)](_0x389cf5){const _0x387af4=_0x4a9685,_0xfe3aa9=await this[_0x387af4(0x5b4)][_0x387af4(0x461)](_0x389cf5),_0x2bc231=this[_0x387af4(0x372)][_0x387af4(0x572)](mt,_0x389cf5,_0xfe3aa9);return _0x2bc231[_0x387af4(0x432)](),_0x2bc231;}};De=ss([nt(0x0,a['IUniverInstanceService']),nt(0x1,a[_0x4a9685(0x27a)](a[_0x4a9685(0x17d)])),nt(0x2,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x2a7)]))],De);const Le=0x14,Ht=0xc8,it=0x4,rs=0x5;function os(_0x14b240,_0x43b859){const _0x322e1c=_0x4a9685;let {radius:_0x164e66,width:_0x2d8cd9,height:_0x34c08b}=_0x43b859;_0x164e66=_0x164e66!=null?_0x164e66:0x0,_0x2d8cd9=_0x2d8cd9!=null?_0x2d8cd9:0x1e,_0x34c08b=_0x34c08b!=null?_0x34c08b:0x1e;let _0x1e83f4=0x0,_0x2f5924=0x0,_0x59729e=0x0;_0x1e83f4=_0x2f5924=_0x59729e=Math[_0x322e1c(0x585)](_0x164e66,_0x2d8cd9/0x2,_0x34c08b/0x2),_0x14b240['beginPath'](),_0x14b240[_0x322e1c(0x51f)](_0x1e83f4,0x0),_0x14b240['lineTo'](_0x2d8cd9-_0x2f5924,0x0),_0x14b240[_0x322e1c(0x485)](_0x2d8cd9-_0x2f5924,_0x2f5924,_0x2f5924,Math['PI']*0x3/0x2,0x0,!0x1),_0x14b240[_0x322e1c(0x41e)](_0x2d8cd9,_0x34c08b-_0x59729e),_0x14b240['arc'](_0x2d8cd9-_0x59729e,_0x34c08b-_0x59729e,_0x59729e,0x0,Math['PI']/0x2,!0x1),_0x14b240[_0x322e1c(0x41e)](0x0,_0x34c08b),_0x14b240[_0x322e1c(0x41e)](0x0,_0x1e83f4),_0x14b240[_0x322e1c(0x485)](_0x1e83f4,_0x1e83f4,_0x1e83f4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x14b240[_0x322e1c(0x25e)](),_0x43b859[_0x322e1c(0x28d)]&&(_0x14b240[_0x322e1c(0x4ff)](),_0x14b240[_0x322e1c(0x2e2)]=_0x43b859['fill'],_0x43b859[_0x322e1c(0x5c8)]==='evenodd'?_0x14b240['fill'](_0x322e1c(0x2b7)):_0x14b240[_0x322e1c(0x28d)](),_0x14b240[_0x322e1c(0x4a9)]());}function _0x2b0a(){const _0x213ed4=['SheetCollaborationEntity','SheetCollabCursorShape','runRefRangeMutations','getCurrentUser','/block/','onTransformIME','_updateURLWithCurrentState','touchDependencies','exhaustSavingTask','[PendingState]:\x20unhandled\x20univer\x20type:\x20','endColumn','requireSession','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_docSkeleton','filter','url','_session','DocSkeletonManagerService','cursorInfo','CollaborationEntity','withCredentials','_collaborationController','_nDataBytes','@univerjs/engine-render','roomMembers$','univer-pro.collaboration-client.single-active-unit-service','values','InsertRangeMoveDownCommandId','COMPRESS_MUTATION_SEND','CHANGESET_REJ','liveShareOperation','_draw','_doCryptBlock','ILocalStorageService','idSuffix','_onRecvEvent','MergeInterceptorFactory','PSEUDO_FETCH_MISSING_RESULT','equals','_handleJoinEvent','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','column','_logService','round','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','ITelemetryService','getOwnPropertyDescriptor','arc','_cursor','_drawAnchor','HEARTBEAT_INTERVAL','collabStatus.fetchMiss','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_socketService','EffectRefRangId','@univerjs-pro/collaboration','_onRefRangeChange','_localStorageService','_roomMembers$','_socket$','DocStateChangeManagerService','change$','_collaborationSessionService','socket$','?url=','_state$','isTransformMutationFailure','[CollaborationUndoRedoService]','UPDATE_CURSOR','SEND_CHANGESET_TIMEOUT','updateCollaborator','processBlock','LOGIN_URL_KEY','_nRounds','_createHandler','getConfig','none','jsx','_fetchMissChangesets','collab-text-anchor-','_oKey','_onFetchMissResult','LocaleService','restore','onTransformRemoteChangesetByIMECache','currentTheme$','COMPLETION_FINISHED','BuiltInUIPart','collabStatus.conflict','Unknown\x20user','every','957104hgvwHj','DisposableCollection','liveShareNewHost','CommandType','endRow','_getSaveTimeout','DeleteRangeMoveLeftCommandId','_onRemoteChangeset','image/bmp','status$','algo','SheetPermissionInitController','#fff','UNRECOGNIZED','isActive','msCrypto','_name','setInterval','Subject','_change$','create','currentColor','_docStateChangeManagerService','saveSheetBlock','switchMap','SheetSkeletonManagerService','decrypt','src','univer-online-status-icon','fromEventSubject','color','shouldCloseConn','getMergeData','HttpExport','_id','getActiveSheet','_parse','conflict.title','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','split','IRemoteInstanceService','params','_redoStacks','kdf','_toggleOnline','RichTextEditingMutation','_resendTimeout','[PendingState]:\x20received\x20acknowledgement.','getRelativeToViewportCoord','MD5','StreamCipher','encrypt','974055MQSetI','1848510BsEahU','SetWorksheetActivateCommand','getOwnPropertySymbols','_initMergeInterceptor','clipPath','setActiveRange','_transformHistoryAndStateStack','transformMutationsWithChangeset','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','onload','_onCursorDelete','_retryCount','routeKey','url(#on-line-single_clip0_910_349)','distinctUntilChanged','_getMergeRange','_transformService','_drawRectRange','_onCursorUpdate','catch','_refRangeService','_rescheduleHeartbeat','transformIMECache','toDisposable','downloadEndpointUrl','save','copyFileMeta','randomBytes','blockSize','next','_docTransformIMECacheService','_render','registerRefRange','PasswordBasedCipher','collaboration-session-retry','transform','SetTextSelectionsOperation','_event$','createEncryptor','ImageIoService','selection','for','font','CONNECTOR_DATA_TOO_LARGE','_clearOtherTimers','deepClone','getCoordByCell','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','0\x200\x2017\x2016','ENSURE_SNAPSHOT_EXECUTION','UNIVER_SLIDE','/role','_key','conflict.content','permission.content','drawWith','c1Prime','moveTo','ColorKit','OTHER_CLIENTS_EDITING','entries','_saveTaskMap','/resources','resize','onTransformSelections','div','DOC_RANGE_TYPE','awaiting','HMAC','SNAPSHOT_INVALID_SNAPSHOT','shareReplay','getRangePointData','RECV','NodePositionConvertToRectRange','length','_range','/collaborator','registerHTTPInterceptor','\x20in\x20_schedule.','LICENSE_IMPORT_SIZE_EXCEEDED','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','throttleTime','EmptyMutation','@univerjs/sheets','_docSyncEditingCollabCursorService','_transformUndoredo','CollaborationSocketService','/universer-api/oidc/authpage','FileId','leaveEvent','append','cfg','get','JOINING','_colorAssignService','userID','saveOfflineData','LICENSE_EXPORT_SIZE_EXCEEDED','_startTelemetryCollaborationNewChangeset','NodePositionConvertToCursor','_univerInstanceService','_HTTPService','uploadFileServerUrl','getVpScrollXYInfoByPosToVp','_invKeySchedule','rxjs/operators','rng','_themeService','setShapeProps','mode','DataLoaderController','onCommandExecuted','setAlpha','method','indexOf','location','top','IContextService','defs','delay','_commandService','univer-pro.collaboration-client-socket-service','_imageSourceCache','_prevBlock','collabStatus.offline','BehaviorSubject','crypto','_getDownloadEndpointURL','b64DecodeUnicode','YUUMI_SUBSCRIPTION_NOT_FOUND','set','roles','urlChange$','_scheduleClearOtherTimer','HEARTBEAT_TIMEOUT','socket\x20open.','initWorkbookPermissionChange','getUnitId','_initCloseConn','_onMessage','createInstance','session.will-retry','_startDocCollabCursor','_updateCollabCursors','VIEW_MAIN','_sessions','/rev/','\x20-\x20','_hideTimer','_listenToOfflineEvent','focused$','UNKNOWN_CODE','_labelPosition','mixIn','newCsEvent','awaiting_with_pending','_renderManagerService','_sendingTimer','NOT_FOUND','min','reqId','handleIRemoveRow','random','onPointerEnter$','MUTATION','[OfflineState]:\x20received\x20rejection.','_onJoinRoomEvent','UUID','InsertRowCommandId','transformSelections','getSheetBlock','ciphertext','useObservable','CollaborationStatusDisplay','sheetId','setTimeout','readInt32LE','onTransformChange$','saveChangeset','Workbook','toStringTag','Optional','_roomMembers','_docTransformSelectionsService','fromEvent','_onCombEvent','onTransformRemoteChangesetByStateCache','CommentService','originalMeta','cmd','_hovered','collaMsg','getMember','_setupSubUnitSync','Univer','_docSkeletonManagerService','reverse','startTime','_stopTelemetryCollaborationNewChangeset','LICENSE_DISTRO_REJECTED','getInterceptPoints','collabStatus.syncing','DocCollaborationEntity','pad','_setupBeforeClosingHandler','_executeRemoteChangeset','_collabSessionService','_shouldReportTelemetry','actions','formatter','_beforeCloseService','getSheetObject','transformStateCache','@univerjs/network','syncEditingCollabCursor','NOT_COLLAB','_initStatusListener','getCollabEntity$','_keyPriorReset','HEADER_MENU','LEAVE','USERS_LEAVE','toLowerCase','_sheetSkeletonManagerService','selections','bottom','fillRule','dispose$','_exhaustRemoteChangesetQueue','_reverseMap','apply','_initRequestHeader','then','getCurrentUnitForType','refreshPermission','Error\x20on\x20receiving\x20event','PERMISSION_REJ','url(#$1','Vector2','open$','FAIL','ICollaborationSocketService','_removeCollabCursors','updateCursorEvent','setWaitCount','loginUrlKey','override','exports','snapshot','auth.needGotoLoginAlert','csShouldRetryEvent','searchParams','CompressMutationService','_color','blue400','_transformStateCache','getSkeleton','objectID','takeUntil','NO_OTHER_CLIENTS_EDITING','substr','SUBMIT_CHANGESET','makeDirty','_initUnitPermissionChange','collaboration.closeRoom','translate(.97)','baseRev','defIds','COLLAB_SUBMIT_CHANGESET_URL_KEY','unload','executeCommand','salt','getUnitStatus$','flatMap','_cachedData','isTransformMutationsWithChangesetFailure','measureText','asObservable','[CollaborationState]:\x20apply\x20error!','_assignedColors','_sessionStatus$','current','univer-online','buffer','byteLength','IBeforeCloseService','isTransformChangesetsSuccess','ERROR_IMAGE','failed\x20to\x20apply\x20missed\x20changesets!','_hasher','_localCacheService','_members','onMissedChangesetFetched','serializeCombRequest','COLORS','IRenderManagerService','patch','reset','\x20to\x20','addImageSourceCache','action','setCurrentUser','JSONX','updateOfflineData','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','bind','/universer-api/snapshot','CollaborationStatus','collab-text-range-','words','hasher','telemetry\x20info\x20is\x20not\x20initialized','debounce','SHA1','capture','hidden','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','deleteCollaborator','_removeClearOtherTimer','_showConflictNotification','_tryEnsureSocket','batchAllowed','_getLoginPath','displayName','sheets','submit\x20changeset\x20error!','assign','contains','_handler','handleDeleteRangeMoveUp','_clearRedo','APPLY_PERMISSION_DENIED','@univerjs/drawing','_getRedoStack','className','_state','send','post','pipe','_getSheetObject','Warning','_decreaseWaiting','close','_resendTimer','PERMISSION_DENIED','SNAPSHOT_SERVER_URL_KEY','transformStack\x20failed!','_createInitialStateImpl','textEncoder','Injector','black','&assign=','getSheetId','_unitStatus','connection\x20error','infoRsp','symbol','_hover','toRgbString','_doFinalize','ISnapshotServerService','state$','_unitID','permission.title','substring','lib','_handleLeaveEvent','data','[DataLoaderController]','RETRY_CONNECTING_MAX_COUNT','compute','transformByState','useCallback','localeService','_initStatusComponent','unitID','RefRangeService','/new_changes','_cursors','getUnitType','includes','setUndoRedoMutationParamsCache','UniverCollaborationPlugin','subscribeEvent','LocalCacheService','not_collab','ImageSourceType','enableAuthServer','univer-online-status','@univerjs/core','[SyncedState]:\x20received\x20acknowledgement.','EvpKDF','COLLAB_SUBMIT_CHANGESET_URL','RevisionService','_saveCache','useRef','BufferedBlockAlgorithm','popstate','getValue','UNIVER_SHEET','_unitOnClients','_getUndoStack','_applyRemoteChangeset','_createSocket','startRow','_disableEditing','rev','_throwTelemetryCollaborationNewChangeset','mutations','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_clearScheduledTask','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_queuedRemoteChangesets','Base','x-univer-host','online','_toggleOffline','ranges','getRoom','body','_startSheetCollabCursor','unknown','clone','title','getRandomValues','LIVESHARE_NEW_HOST','_scheduleHeartbeat','_minBufferSize','_removeRoom','loadSheet','[FetchMissState]','message$','floor','getTime','has','JOIN','rgba(255,\x20255,\x20255,\x200.01)','9cyHtzv','unshift','dispose','incrementRevOfUnit','_telemetryService','@univerjs/telemetry','_replaceFileID','_cipher','resend','removeMember','Cipher','gold400','getCurrent','splice','createIdentifier','members','memberID','_resendWithTimeout','collaboratorID','COLLAB_WEB_SOCKET_URL','unit','M0\x200H16V16H0z','getUndoRedoMutationParamsCache','USERS_ENTER','engine','Decryptor','WorkbookEditablePermission','_sendHeartbeat','_getAPIPrefixPath','LICENSE_MAX_UNITS_EXCEEDED','UnitSnapshot','path','{fileID}','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','1663876RofJzw','DocSelectionManagerService','_memberService','_getAPIPrefix','2ECNIjH','react.element','href','default','CollaborationController','interceptor','getStateCache','sendChangesetTimeout','transformRemoteChangeset','getMemberID','encodeURIComponent','loadOfflineData','NoPadding','m1Prime','children','collabCursorState$','_transformPreviousActiveRange','call','fromCollab','getLatestCsReqIdBySid','_doReset','image/png','defaultProps','_eventUnsubscribe','_httpService','_singleActiveUnitService','setStateCache','prototype','getOffsetConfig','RETRY_CONNECTING_MAX_COUNT_KEY','MoveRangeCommandId','CHANGESET_REVISION_CONFILICT','COLLAB_WEB_SOCKET_URL_KEY','OpenSSL','CBC','_updateSubUnitFromURLParams','file','Base64','origin','AES','editingUnit','delete','_data','status','YUUMI_RATE_OVER_LIMIT','pauseCollaboration','sid','UNIVER_DOC','socketService','xlink:href','charAt','padding','/universer-api/file/{fileID}/sign-url','_urlService','getDocRanges','_snapshotService','_syncEditingCollabCursor','Could\x20not\x20dynamically\x20require\x20\x22','put','textRanges','colorChannel1','_textBubble','from','_uiPartsService','IUndoRedoService','_colorIndex','_http','transformMutation','PENDING','authzUrl','join','_entityInit$','INTERNAL_ERROR','ONLINE','useDependency','transformUndoRedo','attrs','HEARTBEAT_TIMEOUT_KEY','_awaitingChangeset','reconnect','onStateChange','_tryReconnect','getDeserializedSheetBlock','_docTransformStateCacheService','_send','_anchorDot','InsertSheetMutation','onlineStatusTitle','collabWebSocketUrl','_onConnectionFailed','fetch_missing','_pendingMutations','_sheetTransformSelectionsService','react','headers','[CollaborationSessionService]','SetSelectionsOperation','collaborators','LIVESHARE_OPERATION','closePath','_incrementRevisionNumber','_joinRoom','Disposable','_commentUpdate$','_onOffline','_waitForHeartbeatResponse','/universer-api/comb','RegularPolygon','_scheduleTimestamp','UNDEFINED','_substituteUndoStack','ImageUploadStatusType','AuthzIoHttpService','stopTime','_revisionService','onCommentUpdate','_submitChangeset','FromArray','clear','CHANGESET_ACK','_transformStack','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','VIEWPORT_KEY','_collabCursorController','offline','_clearCollaborationTimeoutTimer','_changesetSessionId','Inject','onRendered','NEW_CHANGESETS','IMessageService','_registerDependencies','range','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','registerOnClose','setParam','LIVESHARE_TERMINATE','find','updatePermissionObjEvent','getItem','replaceState','fetchMiss','Utf8','map','AWAITING_WITH_PENDING','SYNCED','fill','addObject','_scheduleCollaborationTimeoutTimer','image/gif','_getUploadFileURL','Rect','pushState','_configService','retryConnectingInterval','collab-rect-range-','event$','getCollabEntity','_clearTimeoutTimer','fromCharCode','_selfUnitIDs','_backgroundColor','@univerjs/rpc','_updateLocalCache','_loadDoc','confirm','_startCollaboration','reduce','forwardRef','setItem','_replayCachedMutations','OffLineSingle','CollaborationSessionService','_sender','/universer-api/snapshot/','toggleOnline','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','propertyIsEnumerable','c2Prime','subUnitId','parse','ALREADY_EXISTS','conflict','_onLocalMutation','_compressMutationService','FETCH_MISSING','getCellPositionByOffset','removeParam','evenodd','onSendChangeset','name','onPointerMove$','_listenToOnlineEvent','WordArray','_ensureSubject','format','onRemoteChangeset','getAllMembers','changesets','fillText','concatMap','_clearUndo','sin','FETCH_MISS','RxDisposable','APPLY_DUPLICATED','[CollaborationEntity]','getSheetBySheetId','registerRenderModule','tag','Shape','/-/object/list','getColor','Error','stringify','CollaborationSession','_anchor','_candidateSocket','function','size','onlyLocal','_disabled','_updateStatus','InsertColCommandId','HTTPService','visibilitychange','getFocusedUnit','unitId','onRemoteRetry','_instanceService','onlineStatus','fillStyle','MessageType','DeleteRangeMoveUpCommandId','collabStatus.synced','json','max','ILogService','workbook','_onRemoteRejected','_createInitialState','_transitionLocked','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','$super','_socket','IAuthzIoService','&to=','slice','_initCommandExecutedListener','hasOwnProperty','encryptBlock','_createHelper','complete','DesktopCollaborationStatusDisplayController','...','_updateLocalCursor','_unlockTransition','/allowed','YUUMI_URL_COL_OUT_OF_RANGE','some','ReactCurrentOwner','\x0aCurrent:\x20','duration','_xformMode','key','clamp','session','enableLocalCache','_refreshCollabCursors','TEXT_RANGE_LAYER_INDEX','_keySchedule','getUnit','LOCAL_CACHE_INTERVAL_KEY','replaceDocRanges','createCollaborator','APPLY_REVISION_CONFILICT','result','IPermissionService','_DEC_XFORM_MODE','deserializeToCombResponse','ivSize','Hasher','ITransformService','RemoveColCommandId','encode','BASE64','SessionStatus','getRenderById','_onUserLeave','SheetsSelectionsService','_notificationService','updateMember','_userManagerService','WebURLService','_lockTransition','collaboration-client.config','mergeOverrideWithDependencies','HTTPRequest','enableSingleActiveInstanceLock','with','fetchMissingChangesets','CONFLICT','deserializeRangeWithSheet','LIVESHARE_REQUEST_HOST','_handleHeartbeatEvent','row','disposeUnit','generateRandomId','object','compose','_ENC_XFORM_MODE','createSocket','ref','roomMembers','_transformSelections','_lastPointer','_getAnchorBounding','OFFLINE','allowed','revision','/unit/','_clearHeartbeatTimer','SnapshotService','UniverInstanceType','_telemetryInfo','_heartbeatTimer','_onConflict','_getCurrentRevision','/object/','unitId\x20is\x20not\x20found','merge','_commentService','UPDATE_PERMISSION_OBJ','UNIVER_COLLABORATION_CLIENT_PLUGIN','_sendHeartbeatTimer','_onUserJoin','_append','HttpImport','_checkMissing','unit-cache-','_handleEvent','toString','@univerjs/docs','image/jpeg','1em','onMissingChangesets','_createHmacHelper','getWorkbookSelections','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','now','labelPosition','CollaborationEvent','DocIMEInputManagerService','Encryptor','/fetchmissing?from=','saveImage','_entities','disableLocalCache','visibilityState','reject','_timeoutTimer','_clearLocalCache','objects','_status$','_getScale','addEventListener','@univerjs/design','finalize','show','_changesetReqId','isArray','_substituteRedoStack','url(#off-line-single_clip0_910_343)','getUnitOnRev','hide','_injector','APPLY_REJECT','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','currentSkeleton$','SnapshotServerOverHTTPService','defineProperty','WebSocketService','onSyncEditingCollabCursor','debug','onRemoteRej','error$','CipherParams','[CollaborationSessionService]:\x20socket\x20error','BlockCipher','_process','width','update','_onRemoteRetry','rxjs','requestParams','session.connection-failed','HEARTBEAT_INTERVAL_KEY','getTypeOfUnitDisposed$','Plugin','COMMENT_UPDATE','replace','all','APPLY_NON_SEQUENTIAL_REVISION','updatePermissionPoint','forEach','objectActions','[PendingState]:\x20received\x20rejection.','_socketReady','createElement','_document','pluginName','on-line-single_clip0_910_349','trim','CHANGESET_SHOULD_RETRY','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','execute','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_localeService','SerializableCipher','off-line-single','_initEventListeners','IDLE','INGEST','UniverCollaborationClientPlugin','collaboration.single-unit.warning','randomUUID','take','sigBytes','_messageService','_schedule','SNAPSHOT_HAS_BEEN_REMOVED','UniverNetworkPlugin','_waitCount','parseProtocolChangeset','BlockCipherMode','redoState','eventID','assignAColorForMemberID','getCurrentSelections','string','clearTimeout','charCodeAt','/-/object/-/batch_allowed','3203946BScfDh','toggleOffline','Module','list','_isPermissionRej','extend','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','_collabCursorState$','_cursorInfo$','jsxs','@univerjs/docs-ui','_ws','_map','_scene','startsWith','IUniverInstanceService','newValue','disposeWithMe','onlineStatusIcon','_retryConnectingTimer','_initDependencies','_getSendChangesetTimeout','fetchThroughInterceptors','number','ThemeService','doc.mutation.rich-text-editing','triggerDblclick','cursorInfo$','_undoRedoService','[OfflineState]:\x20received\x20acknowledgement.','UnitEmbedded','transformChangesets','push','_iv','error','_shapes','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_mode','height','synced','storage','_socketMessageSubscription','_permissionService','MemberService','getParam','_transformUndoRedoStack','type','getCurrentRevOfUnit','enc','COMPRESS_MUTATION_APPLY','_cursorShapes','onRemoteAck','6603884CIvAuT','image/jpg','onReady','ThresholdInterceptorFactory','onMouseMove','combineLatest','pending','keySize','_config','IImageIoService','_init','HELLO','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_hash','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','getTypeOfUnitAdded$','_getCtorByUniverType','IConfigService','_context','use','subunit','handleInsertCol','/universer-api/authz','RECT','unsubscribe','m2Prime','[CollaborationSession]','_collaborationTimeoutTimer','getCollabCursors$','concat','_onConnectionOpen','_initResize','\x0aAfter:\x20','decryptBlock','appendMutation','LIVESHARE_FETCH_OPERATIONS','_collaborationPaused','on-line-single','_getSignURL','AWAITING','__creator','responseType','_acknowledgedAwaitingChangeset','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','debounceTime','Undefined','startColumn','subscribe','_type','_updateState','serializeRangeWithSheet','UNKNOWN_CMD','lineTo','target','_online','svg','hovered','_handleHover','parseChangesetToProtocol','commentUpdateEvent','Tools','HEARTBEAT','AUTHZ_URL_KEY','mapTo','add','SHOULD_CLOSE_CONN','INVALID_ARGUMENT','history','MSG_FOR_ERROR','undoState','docStateChange$','POST','init','UNIVER_PROJECT','uni.network.url-service','skeleton','_drawTextRange','_remoteChangesetQueue','icon','off-line-single_clip0_910_343','_transformIMECache','TEXT','UNAUTHENTICATED','findNodePositionByCharIndex','/universer-api/stream/file/upload','SEND_CHANGESET_TIMEOUT_KEY','registerDependencies','sheetID','SNAPSHOT_URL_KEY','enableOfflineEditing','[OfflineState]:\x20received\x20changeset.','addObjects','_onRemoteACK','YUUMI_UNABLE_LOAD_URL','Tooltip','ICommandService','clearInterval','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','#FFF','sessionStatus$','TOO_MANY_REQUESTS','4040488CmPain','sessionStatus','objectType','_transformRemoteChangesetByStateCache','isTransformMutationsWithChangesetSuccess','_loadSheet','createDecryptor'];_0x2b0a=function(){return _0x213ed4;};return _0x2b0a();}class ze extends K[_0x4a9685(0x2cd)]{constructor(_0xa7b895,_0x25bed0){const _0x438573=_0x4a9685;super(_0xa7b895,_0x25bed0),I(this,_0x438573(0x4cf)),I(this,'text'),(this['color']=_0x25bed0==null?void 0x0:_0x25bed0['color'],this['text']=_0x25bed0==null?void 0x0:_0x25bed0['text']);}static[_0x4a9685(0x51d)](_0x56d706,_0xfaa5b){const _0x57673f=_0x4a9685,{text:_0x2367c3,color:_0x4f6fcf}=_0xfaa5b;_0x56d706[_0x57673f(0x4ff)](),_0x56d706[_0x57673f(0x510)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x272b0e=_0x56d706[_0x57673f(0x134)](_0x2367c3)[_0x57673f(0x381)],_0x913e48=Math[_0x57673f(0x585)](_0x272b0e+0x2*it,Ht);os(_0x56d706,{'height':Le,'radius':0x4,'width':_0x913e48,'fill':_0x4f6fcf,'evented':!0x1}),_0x56d706['fillStyle']=_0x57673f(0x44c);const _0x126581=it,_0x2d2a9c=Le-rs,_0xcfa6a1=Ht-0x2*it;if(_0x272b0e>_0xcfa6a1){let _0xc4ff3a='',_0x195c16=0x0;for(const _0x22d885 of _0x2367c3){const _0x13e1e9=_0x56d706[_0x57673f(0x134)](_0x22d885)[_0x57673f(0x381)];if(_0x195c16+_0x13e1e9<=_0xcfa6a1-_0x56d706[_0x57673f(0x134)](_0x57673f(0x2f9))['width'])_0xc4ff3a+=_0x22d885,_0x195c16+=_0x13e1e9;else{_0xc4ff3a+=_0x57673f(0x2f9);break;}}_0x56d706[_0x57673f(0x2c2)](_0xc4ff3a,_0x126581,_0x2d2a9c);}else _0x56d706[_0x57673f(0x2c2)](_0x2367c3,_0x126581,_0x2d2a9c);_0x56d706[_0x57673f(0x4a9)]();}[_0x4a9685(0x475)](_0x260692){const _0x18a7ab=_0x4a9685;ze[_0x18a7ab(0x51d)](_0x260692,this);}}const st=_0x4a9685(0x4a5),as=_0x4a9685(0x154),cs=_0x4a9685(0x296),Ue=0x6,ls=1.5,rt=0x4,hs=1.5,_s=_0x4a9685(0x1d4);class Bt{constructor(_0x24d0cc,_0xb81dd,_0x1c1eaf,_0x3b7d76){const _0x19f27e=_0x4a9685;I(this,_0x19f27e(0x3d9),[]),I(this,_0x19f27e(0x2d3),null),I(this,_0x19f27e(0x238),null),I(this,_0x19f27e(0x250),null),I(this,_0x19f27e(0x57a),null),I(this,_0x19f27e(0x212),null),(this[_0x19f27e(0x486)]=_0x24d0cc,this[_0x19f27e(0x3c3)]=_0xb81dd,this[_0x19f27e(0x463)]=_0x1c1eaf,this[_0x19f27e(0x394)]=_0x3b7d76,this[_0x19f27e(0x505)]());}set[_0x4a9685(0x185)](_0x173211){const _0x2c1d3a=_0x4a9685;_0x173211?(this['_anchorDot']&&this[_0x2c1d3a(0x250)][_0x2c1d3a(0x371)](),this['_textBubble']&&this[_0x2c1d3a(0x238)]['show']()):(this[_0x2c1d3a(0x250)]&&this['_anchorDot'][_0x2c1d3a(0x36b)](),this[_0x2c1d3a(0x238)]&&this[_0x2c1d3a(0x238)][_0x2c1d3a(0x371)]());}['dispose'](){const _0x46c8ce=_0x4a9685;for(const _0x7443b5 of this[_0x46c8ce(0x3d9)])_0x7443b5[_0x46c8ce(0x1d7)]();this[_0x46c8ce(0x238)]&&this[_0x46c8ce(0x238)]['dispose'](),this[_0x46c8ce(0x250)]&&this[_0x46c8ce(0x250)][_0x46c8ce(0x1d7)](),this[_0x46c8ce(0x2d3)]&&this['_anchor'][_0x46c8ce(0x1d7)](),this[_0x46c8ce(0x212)]&&this['_eventUnsubscribe']();}[_0x4a9685(0x505)](){const _0x26c96e=_0x4a9685;var _0xab1cbd;const {_docSkeleton:_0x277fa4,_document:_0x36031f}=this,{color:_0x4a1340,name:_0xf8dd9d,ranges:_0x23f5b8}=this[_0x26c96e(0x486)],_0x40f24f=_0x36031f[_0x26c96e(0x217)](),{docsLeft:_0x559e31,docsTop:_0x3edeb3}=_0x40f24f,_0x2a78aa=new J[(_0x26c96e(0x549))](_0x40f24f,_0x277fa4);for(const {startOffset:_0x12ae9d,endOffset:_0x538794,rangeType:_0x2f83d7,segmentId:_0x5ddbf3,segmentPage:_0x30b4d7,collapsed:_0x418225,isActive:_0x5d710d}of _0x23f5b8){const _0x207fbc=_0x277fa4[_0x26c96e(0x43d)](_0x12ae9d,!0x0,_0x5ddbf3,_0x30b4d7);let _0x1108bb=_0x277fa4[_0x26c96e(0x43d)](_0x538794,!0x0,_0x5ddbf3,_0x30b4d7);if(_0x1108bb==null&&(_0x1108bb=_0x277fa4['findNodePositionByCharIndex'](_0x538794-0x1,!0x1,_0x5ddbf3,_0x30b4d7)),_0x5d710d){const {contentBoxPointGroup:_0x2f9d11}=_0x2a78aa['getRangePointData'](_0x1108bb,_0x1108bb);if(_0x2f9d11[_0x26c96e(0x530)]===0x0)continue;this[_0x26c96e(0x487)](_0x4a1340,_0x2f9d11,_0x559e31,_0x3edeb3,_0xf8dd9d),this[_0x26c96e(0x212)]=this[_0x26c96e(0x423)]();}if(_0x207fbc&&_0x1108bb){if(_0x2f83d7===a[_0x26c96e(0x528)][_0x26c96e(0x401)]){const _0x309173=new J[(_0x26c96e(0x52f))](_0x40f24f,_0x277fa4),{pointGroup:_0x4a82ce}=(_0xab1cbd=_0x309173[_0x26c96e(0x52d)](_0x207fbc,_0x1108bb))!=null?_0xab1cbd:{};if(_0x4a82ce==null||_0x4a82ce[_0x26c96e(0x530)]===0x0)continue;this['_drawRectRange'](_0x4a1340,_0x4a82ce,_0x559e31,_0x3edeb3);}else{if(!_0x418225){const {borderBoxPointGroup:_0x49a541}=_0x2a78aa['getRangePointData'](_0x207fbc,_0x1108bb);if(_0x49a541['length']===0x0)continue;this[_0x26c96e(0x436)](_0x4a1340,_0x49a541,_0x559e31,_0x3edeb3);}}}}}[_0x4a9685(0x487)](_0x4c016e,_0x3fab16,_0x5c19ce,_0xd1f7df,_0x2b156d){const _0x20de16=_0x4a9685,_0x46677b=this[_0x20de16(0x337)](_0x3fab16),{left:_0x2a969d,top:_0x41f125,height:_0x5a3eda}=_0x46677b,_0x2fe142=this[_0x20de16(0x367)](),_0x171ddc=hs/_0x2fe142,_0xbd2c58=new K[(_0x20de16(0x292))](st+a['Tools'][_0x20de16(0x32e)](Ue),{'left':_0x2a969d+_0x5c19ce-_0x171ddc,'top':_0x41f125+_0xd1f7df,'height':_0x5a3eda,'width':ls,'fill':_0x4c016e||K[_0x20de16(0x2cf)](a[_0x20de16(0x146)][_0x20de16(0x17e)],0x0),'strokeWidth':_0x171ddc,'stroke':_s,'evented':!0x0});this[_0x20de16(0x2d3)]=_0xbd2c58,this['_scene'][_0x20de16(0x28e)](_0xbd2c58,J['TEXT_RANGE_LAYER_INDEX']);const _0x28532f=new K[(_0x20de16(0x292))](st+a[_0x20de16(0x426)][_0x20de16(0x32e)](Ue),{'left':_0x2a969d+_0x5c19ce-_0x171ddc,'top':_0x41f125+_0xd1f7df-rt/0x2,'height':rt,'width':rt,'fill':_0x4c016e||K[_0x20de16(0x2cf)](a[_0x20de16(0x146)][_0x20de16(0x17e)],0x0),'strokeWidth':0x0,'stroke':_0x4c016e||K[_0x20de16(0x2cf)](a['COLORS'][_0x20de16(0x17e)],0x0),'evented':!0x1});this[_0x20de16(0x250)]=_0x28532f,this[_0x20de16(0x3c3)][_0x20de16(0x28e)](_0x28532f,J[_0x20de16(0x308)]);const _0xb838b2=new ze(st+a[_0x20de16(0x426)]['generateRandomId'](Ue),{'left':_0x2a969d+_0x5c19ce-_0x171ddc,'top':_0x41f125+_0xd1f7df-Le,'text':_0x2b156d,'color':_0x4c016e});this[_0x20de16(0x238)]=_0xb838b2,this['_scene'][_0x20de16(0x28e)](_0xb838b2,J['TEXT_RANGE_LAYER_INDEX']),this[_0x20de16(0x185)]=!0x1;}['_handleHover'](){const _0xaa9ce6=_0x4a9685,_0x2a6bac=this['_anchor']['onPointerEnter$'][_0xaa9ce6(0x19f)](()=>{const _0xc8d956=_0xaa9ce6;this[_0xc8d956(0x185)]=!0x0;}),_0x325d0c=this['_anchor']['onPointerLeave$'][_0xaa9ce6(0x19f)](()=>{const _0x12a27a=_0xaa9ce6;this[_0x12a27a(0x57a)]&&clearTimeout(this[_0x12a27a(0x57a)]),this[_0x12a27a(0x57a)]=setTimeout(()=>{const _0x374563=_0x12a27a;this[_0x374563(0x185)]=!0x1;},0x7d0);});return()=>{const _0x23fd97=_0xaa9ce6;_0x2a6bac[_0x23fd97(0x402)](),_0x325d0c[_0x23fd97(0x402)]();};}[_0x4a9685(0x436)](_0x3dc19e,_0xde55ff,_0xda5cc7,_0x4fd71a){const _0x46de2b=_0x4a9685,_0x1b7296=new a[(_0x46de2b(0x520))](_0x3dc19e)[_0x46de2b(0x556)](0.2)[_0x46de2b(0x186)](),_0x2f90cd=new K[(_0x46de2b(0x266))](as+a['Tools']['generateRandomId'](Ue),{'pointsGroup':_0xde55ff,'fill':_0x1b7296||K['getColor'](a[_0x46de2b(0x146)][_0x46de2b(0x17e)],0.2),'left':_0xda5cc7,'top':_0x4fd71a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x46de2b(0x3d6)](_0x2f90cd),this[_0x46de2b(0x3c3)][_0x46de2b(0x28e)](_0x2f90cd,J[_0x46de2b(0x308)]);}[_0x4a9685(0x4f7)](_0x27c52d,_0x35b728,_0x24a8cb,_0x16f806){const _0x45e6ef=_0x4a9685,_0x5e8190=new a['ColorKit'](_0x27c52d)['setAlpha'](0.2)[_0x45e6ef(0x186)](),_0x5aa893=new K[(_0x45e6ef(0x266))](cs+a[_0x45e6ef(0x426)][_0x45e6ef(0x32e)](Ue),{'pointsGroup':_0x35b728,'fill':_0x5e8190||K['getColor'](a[_0x45e6ef(0x146)][_0x45e6ef(0x17e)],0.2),'left':_0x24a8cb,'top':_0x16f806,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x45e6ef(0x3d9)][_0x45e6ef(0x3d6)](_0x5aa893),this[_0x45e6ef(0x3c3)][_0x45e6ef(0x28e)](_0x5aa893,J[_0x45e6ef(0x308)]);}[_0x4a9685(0x337)](_0x5e30b9){const _0x40c4c8=_0x5e30b9[0x0],_0x437500=_0x40c4c8[0x0],_0xd57ed7=_0x40c4c8[0x2],{x:_0x5a4167,y:_0x5c24a8}=_0x437500,{x:_0x520296,y:_0x48a56e}=_0xd57ed7;return{'left':_0x5a4167,'top':_0x5c24a8,'width':_0x520296-_0x5a4167,'height':_0x48a56e-_0x5c24a8};}[_0x4a9685(0x367)](){const _0x305924=_0x4a9685,{scaleX:_0x45d429,scaleY:_0x3e0d08}=this[_0x305924(0x3c3)]['getAncestorScale']();return Math[_0x305924(0x2e7)](_0x45d429,_0x3e0d08);}}var us=Object[_0x4a9685(0x377)],ds=Object[_0x4a9685(0x484)],fs=(_0x3bc273,_0xa5b36f,_0x545382,_0x402b11)=>{const _0x296d27=_0x4a9685;for(var _0x296f0e=_0x402b11>0x1?void 0x0:_0x402b11?ds(_0xa5b36f,_0x545382):_0xa5b36f,_0x1e2d0a=_0x3bc273[_0x296d27(0x530)]-0x1,_0xb731b5;_0x1e2d0a>=0x0;_0x1e2d0a--)(_0xb731b5=_0x3bc273[_0x1e2d0a])&&(_0x296f0e=(_0x402b11?_0xb731b5(_0xa5b36f,_0x545382,_0x296f0e):_0xb731b5(_0x296f0e))||_0x296f0e);return _0x402b11&&_0x296f0e&&us(_0xa5b36f,_0x545382,_0x296f0e),_0x296f0e;},je=(_0x4c91d7,_0x448d57)=>(_0x8875fe,_0x32eac0)=>_0x448d57(_0x8875fe,_0x32eac0,_0x4c91d7);let pt=class extends a[_0x4a9685(0x2c7)]{constructor(_0x4991ae,_0x29c75b,_0x1ef7be,_0x20fec8,_0x557669){const _0x11501f=_0x4a9685;super(),I(this,'_cursorShapes',[]),I(this,'_cursors',[]),(this[_0x11501f(0x3fc)]=_0x4991ae,this[_0x11501f(0x5a9)]=_0x29c75b,this[_0x11501f(0x276)]=_0x1ef7be,this[_0x11501f(0x55e)]=_0x20fec8,this[_0x11501f(0x551)]=_0x557669,this[_0x11501f(0x3f4)]());}[_0x4a9685(0x3f4)](){const _0x5b1bc8=_0x4a9685,_0x11989f=this[_0x5b1bc8(0x3fc)]['unitId'],_0x4d72d4=this[_0x5b1bc8(0x5a9)];this[_0x5b1bc8(0x3c7)](A[_0x5b1bc8(0x3ef)]([this[_0x5b1bc8(0x276)][_0x5b1bc8(0x406)](_0x11989f),this['_themeService']['currentTheme$']])[_0x5b1bc8(0x172)](V[_0x5b1bc8(0x28a)](([_0x3ef843,_0x55d4c7])=>({'skeleton':_0x4d72d4['getSkeleton'](),'cursors':[..._0x3ef843[_0x5b1bc8(0x470)]()][_0x5b1bc8(0x5f7)](_0x277d2d=>({..._0x277d2d,'color':_0x55d4c7[_0x277d2d['color']]}))})))['subscribe'](_0x36bf32=>{const _0x5ddfc6=_0x5b1bc8;if(this['_removeCollabCursors'](),_0x36bf32){const {skeleton:_0x158127,cursors:_0x4755f8}=_0x36bf32;this[_0x5ddfc6(0x575)](_0x158127,_0x4755f8);}})),this['_initResize'](),this[_0x5b1bc8(0x2f3)]();}['_updateCollabCursors'](_0x3d8440,_0x4e9c73){const _0x354f3a=_0x4a9685,{scene:_0x4b30e9,mainComponent:_0x39a1eb}=this[_0x354f3a(0x3fc)],_0x1b249a=_0x4e9c73[_0x354f3a(0x28a)](_0x238372=>new Bt(_0x238372,_0x4b30e9,_0x3d8440,_0x39a1eb));this[_0x354f3a(0x3e8)]=_0x1b249a,this['_cursors']=_0x4e9c73;}[_0x4a9685(0x307)](){const _0x1e2a58=_0x4a9685;this['_removeCollabCursors']();const {scene:_0x439f06,mainComponent:_0x3ea5de}=this[_0x1e2a58(0x3fc)],_0x4e3c25=this[_0x1e2a58(0x5a9)][_0x1e2a58(0x5e6)](),_0x5a43b6=this[_0x1e2a58(0x19a)][_0x1e2a58(0x28a)](_0x40a977=>new Bt(_0x40a977,_0x439f06,_0x4e3c25,_0x3ea5de));this[_0x1e2a58(0x3e8)]=_0x5a43b6;}[_0x4a9685(0x5d8)](){const _0x36c748=_0x4a9685;this[_0x36c748(0x3e8)][_0x36c748(0x38f)](_0x37d3f0=>_0x37d3f0[_0x36c748(0x1d7)]()),this[_0x36c748(0x3e8)]=[];}[_0x4a9685(0x2f3)](){const _0x1a4517=_0x4a9685,_0xff1c06=[J['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this[_0x1a4517(0x55e)]['onCommandExecuted'](_0x1ef7dc=>{const _0x5c487e=_0x1a4517;_0xff1c06[_0x5c487e(0x19c)](_0x1ef7dc['id'])&&_0x1ef7dc[_0x5c487e(0x4da)][_0x5c487e(0x2de)]===this[_0x5c487e(0x3fc)][_0x5c487e(0x2de)]&&this[_0x5c487e(0x307)]();}));}[_0x4a9685(0x409)](){const _0x40910a=_0x4a9685;this['disposeWithMe'](a[_0x40910a(0x4ce)](this[_0x40910a(0x3fc)][_0x40910a(0x1ed)][_0x40910a(0x597)])[_0x40910a(0x172)](V[_0x40910a(0x464)](_0x1b7934=>_0x1b7934['type']===K[_0x40910a(0x3da)][_0x40910a(0x525)]),V[_0x40910a(0x537)](0x10))[_0x40910a(0x419)](()=>{const _0x3661eb=_0x40910a;this[_0x3661eb(0x307)]();}));}};pt=fs([je(0x1,a[_0x4a9685(0x27a)](ye[_0x4a9685(0x467)])),je(0x2,a['Inject'](De)),je(0x3,a[_0x4a9685(0x449)]),je(0x4,a[_0x4a9685(0x27a)](a['ThemeService']))],pt);const vs=0x1,ms=1.5;class Sn extends K['Shape']{constructor(_0x21517c,_0x5ab4ea){const _0x120aa0=_0x4a9685;super(_0x21517c,_0x5ab4ea),I(this,_0x120aa0(0x5e3)),I(this,_0x120aa0(0x5a4),!0x1),I(this,'_range'),I(this,_0x120aa0(0x4c1),''),I(this,_0x120aa0(0x57e),_0x120aa0(0x55a)),I(this,_0x120aa0(0x29c)),(_0x5ab4ea&&this[_0x120aa0(0x552)](_0x5ab4ea),this[_0x120aa0(0x589)]['subscribeEvent'](()=>this[_0x120aa0(0x552)]({'hovered':!0x0})),this['onPointerLeave$'][_0x120aa0(0x19f)](()=>this[_0x120aa0(0x552)]({'hovered':!0x1})));}[_0x4a9685(0x552)](_0x570503){const _0x2128fa=_0x4a9685;var _0x1df9fe,_0x16e3e8,_0x3543f0,_0x3ba7a2,_0x14a4c3,_0x28335c;this['_color']=(_0x1df9fe=_0x570503[_0x2128fa(0x4cf)])!=null?_0x1df9fe:this['_color'],this[_0x2128fa(0x5a4)]=(_0x16e3e8=_0x570503[_0x2128fa(0x422)])!=null?_0x16e3e8:this[_0x2128fa(0x5a4)],this[_0x2128fa(0x531)]=(_0x3543f0=_0x570503[_0x2128fa(0x27f)])!=null?_0x3543f0:this[_0x2128fa(0x531)],this['_name']=(_0x3ba7a2=_0x570503['name'])!=null?_0x3ba7a2:this[_0x2128fa(0x4c1)],this[_0x2128fa(0x57e)]=(_0x14a4c3=_0x570503[_0x2128fa(0x359)])!=null?_0x14a4c3:this[_0x2128fa(0x57e)],this[_0x2128fa(0x29c)]=(_0x28335c=_0x570503['backgroundColor'])!=null?_0x28335c:this[_0x2128fa(0x29c)],this[_0x2128fa(0x193)]({'width':_0x570503[_0x2128fa(0x381)],'height':_0x570503[_0x2128fa(0x3dc)]});}[_0x4a9685(0x3ee)](_0x20189c){const _0x3b2a4c=_0x4a9685,{row:_0x5f22ac,column:_0x5360c9}=_0x20189c;if(_0x5f22ac>=this['_range'][_0x3b2a4c(0x1b4)]&&_0x5f22ac<=this[_0x3b2a4c(0x531)][_0x3b2a4c(0x4b5)]&&_0x5360c9>=this[_0x3b2a4c(0x531)][_0x3b2a4c(0x418)]&&_0x5360c9<=this[_0x3b2a4c(0x531)][_0x3b2a4c(0x460)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x3b2a4c(0x552)]({'hovered':!0x1});}[_0x4a9685(0x3d0)](_0x126f54){return!0x1;}[_0x4a9685(0x475)](_0x512eaf){const _0x5a82c8=_0x4a9685;K[_0x5a82c8(0x292)][_0x5a82c8(0x51d)](_0x512eaf,{'width':this[_0x5a82c8(0x381)],'height':this[_0x5a82c8(0x3dc)],'strokeWidth':ms,'stroke':this[_0x5a82c8(0x5e3)],'evented':!0x1,'fill':this['_backgroundColor']}),this['_hovered']&&(_0x512eaf[_0x5a82c8(0x4ff)](),_0x512eaf[_0x5a82c8(0x509)](0x1,0x0,0x0,0x1,this[_0x5a82c8(0x381)],this[_0x5a82c8(0x57e)]===_0x5a82c8(0x5c7)?0x0:-Le),ze[_0x5a82c8(0x51d)](_0x512eaf,{'text':this['_name'],'color':this[_0x5a82c8(0x5e3)]}),_0x512eaf[_0x5a82c8(0x4a9)]());}}var Ss=Object['defineProperty'],ps=Object[_0x4a9685(0x484)],gs=(_0x216e7a,_0x5e8c4e,_0x577960,_0x4d265f)=>{for(var _0x3de0ab=_0x4d265f>0x1?void 0x0:_0x4d265f?ps(_0x5e8c4e,_0x577960):_0x5e8c4e,_0x428012=_0x216e7a['length']-0x1,_0x325291;_0x428012>=0x0;_0x428012--)(_0x325291=_0x216e7a[_0x428012])&&(_0x3de0ab=(_0x4d265f?_0x325291(_0x5e8c4e,_0x577960,_0x3de0ab):_0x325291(_0x3de0ab))||_0x3de0ab);return _0x4d265f&&_0x3de0ab&&Ss(_0x5e8c4e,_0x577960,_0x3de0ab),_0x3de0ab;},ot=(_0x23c4c4,_0x1caef5)=>(_0x3d895f,_0x3247a7)=>_0x1caef5(_0x3d895f,_0x3247a7,_0x23c4c4);const Is=0x1389;let gt=class extends a[_0x4a9685(0x2c7)]{constructor(_0x3ff6cf,_0x368c1f,_0x52c2f8,_0x1cbc5c){const _0x16656b=_0x4a9685;super(),I(this,_0x16656b(0x19a),new Set()),I(this,'_lastPointer',null),(this[_0x16656b(0x3fc)]=_0x3ff6cf,this['_sheetSkeletonManagerService']=_0x368c1f,this[_0x16656b(0x276)]=_0x52c2f8,this[_0x16656b(0x551)]=_0x1cbc5c,this['_init']());}[_0x4a9685(0x3f4)](){const _0x42c34b=_0x4a9685;this[_0x42c34b(0x5c5)][_0x42c34b(0x375)][_0x42c34b(0x172)](V[_0x42c34b(0x5e8)](this[_0x42c34b(0x5c9)]),V[_0x42c34b(0x4c9)](_0x3d276e=>{const _0x2f32c9=_0x42c34b;if(_0x3d276e){const _0x1a6173=_0x3d276e[_0x2f32c9(0x594)];return A[_0x2f32c9(0x3ef)](this[_0x2f32c9(0x276)][_0x2f32c9(0x406)](this['_context']['unitId']),this[_0x2f32c9(0x551)][_0x2f32c9(0x4ab)])[_0x2f32c9(0x172)](V[_0x2f32c9(0x28a)](([_0x3699ad,_0xab05af])=>{const _0x4387a5=_0x2f32c9,_0x182aa1=new Map();return _0x3699ad[_0x4387a5(0x38f)]((_0x2ef828,_0x411d53)=>{const _0x3c79d2=_0x4387a5;if(_0x2ef828[_0x3c79d2(0x441)]===_0x1a6173){const _0x30c824={..._0x2ef828};_0x30c824['color']=_0xab05af[_0x2ef828[_0x3c79d2(0x4cf)]],_0x182aa1[_0x3c79d2(0x568)](_0x411d53,_0x30c824);}}),{'skeleton':_0x3d276e,'cursors':_0x182aa1};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0x42c34b(0x419)](({skeleton:_0x545d7b,cursors:_0x173e30})=>{const _0x5872dc=_0x42c34b;this['_removeCollabCursors'](),_0x545d7b&&this[_0x5872dc(0x575)](_0x545d7b,_0x173e30);}),this[_0x42c34b(0x5c5)][_0x42c34b(0x375)][_0x42c34b(0x419)](_0x80fe19=>{const _0x13b3d8=_0x42c34b;if(_0x80fe19==null)return;const {skeleton:_0x10e3a3}=_0x80fe19,{scene:_0x203916}=this[_0x13b3d8(0x3fc)];_0x203916[_0x13b3d8(0x2ba)][_0x13b3d8(0x19f)](a[_0x13b3d8(0x158)](_0x3c17e5=>{const _0x5d8010=_0x13b3d8;var _0x291c88,_0x223ef6;const {offsetX:_0x3d4e0f,offsetY:_0x26f063}=_0x3c17e5,{x:_0x2e9797,y:_0x469d55}=_0x203916[_0x5d8010(0x4e1)](K[_0x5d8010(0x5d4)][_0x5d8010(0x270)]([_0x3d4e0f,_0x26f063])),{scaleX:_0x42b259,scaleY:_0x2f230b}=_0x203916['getAncestorScale'](),_0x255c9c=_0x203916['getViewport'](Re[_0x5d8010(0x275)][_0x5d8010(0x576)]),_0x59a85e=_0x203916[_0x5d8010(0x54d)](K[_0x5d8010(0x5d4)][_0x5d8010(0x270)]([_0x2e9797,_0x469d55]),_0x255c9c),_0x37dbf3=_0x10e3a3[_0x5d8010(0x2b5)](_0x3d4e0f,_0x26f063,_0x42b259,_0x2f230b,_0x59a85e);((_0x291c88=this[_0x5d8010(0x336)])==null?void 0x0:_0x291c88['column'])===_0x37dbf3[_0x5d8010(0x47f)]&&((_0x223ef6=this[_0x5d8010(0x336)])==null?void 0x0:_0x223ef6[_0x5d8010(0x32c)])===_0x37dbf3[_0x5d8010(0x32c)]||this[_0x5d8010(0x19a)][_0x5d8010(0x38f)](_0x3f75db=>{const _0xa669ac=_0x5d8010;_0x3f75db[_0xa669ac(0x3ee)](_0x37dbf3);});},0x64));});}[_0x4a9685(0x575)](_0x560673,_0x2aeb33){const _0x5dc7df=_0x4a9685;var _0x4cc7b7;const _0x27da3f=(_0x4cc7b7=this[_0x5dc7df(0x5c5)][_0x5dc7df(0x1e1)]())==null?void 0x0:_0x4cc7b7[_0x5dc7df(0x435)];if(!_0x27da3f)return;const _0xc769c5=this[_0x5dc7df(0x173)]();if(!_0xc769c5)return;this[_0x5dc7df(0x19a)]['forEach'](_0x28787f=>{const _0x40886b=_0x5dc7df;_0x28787f[_0x40886b(0x5ec)]();});const {scene:_0x3d3852}=_0xc769c5,_0x558f62=Cs(Array[_0x5dc7df(0x239)](_0x2aeb33[_0x5dc7df(0x470)]()))[_0x5dc7df(0x28a)](_0xbb9365=>{const _0x135a19=_0x5dc7df,{color:_0x2d6662,range:_0x2e6736,name:_0x43567f,selection:_0x2586a9,sheetID:_0x1ef62a}=_0xbb9365,{startColumn:_0x23b21e,startRow:_0x1107b7,endColumn:_0x5ae4a9,endRow:_0xcc6ddb}=_0x2e6736,_0x210f18=Re[_0x135a19(0x514)](_0x1107b7,_0x23b21e,_0x3d3852,_0x27da3f),_0x511d8c=Re[_0x135a19(0x514)](_0xcc6ddb,_0x5ae4a9,_0x3d3852,_0x27da3f),{columnHeaderHeightAndMarginTop:_0x16d440}=_0x27da3f,{startX:_0x26bee7,startY:_0x483cb3}=_0x210f18,{endX:_0x1b29e6,endY:_0x163da9}=_0x511d8c,_0x16ff0e=_0x1b29e6-_0x26bee7,_0x21dfcf=_0x163da9-_0x483cb3,_0x1f7f4f={'labelPosition':_0x483cb3-_0x16d440>=Le?_0x135a19(0x55a):_0x135a19(0x5c7),'sheetID':_0x1ef62a,'range':_0x2e6736,'color':_0x2d6662,'name':_0x43567f,'selection':_0x2586a9,'left':_0x26bee7,'top':_0x483cb3,'width':_0x16ff0e,'height':_0x21dfcf,'evented':!0x1,'zIndex':Is};return new Sn(_0x43567f,_0x1f7f4f);});_0x3d3852[_0x5dc7df(0x445)](_0x558f62,vs),this[_0x5dc7df(0x19a)]=new Set(_0x558f62);}['_removeCollabCursors'](){const _0x3ebc94=_0x4a9685;var _0x498fc8;(_0x498fc8=this[_0x3ebc94(0x19a)])==null||_0x498fc8[_0x3ebc94(0x38f)](_0x4bcc4d=>_0x4bcc4d[_0x3ebc94(0x1d7)]());}[_0x4a9685(0x173)](){const _0x5d140f=_0x4a9685;return Re[_0x5d140f(0x5b9)](this[_0x5d140f(0x3fc)][_0x5d140f(0x1e9)],this['_context']);}};gt=gs([ot(0x1,a['Inject'](Re[_0x4a9685(0x4ca)])),ot(0x2,a[_0x4a9685(0x27a)](De)),ot(0x3,a[_0x4a9685(0x27a)](a[_0x4a9685(0x3ce)]))],gt);function Cs(_0x408d3b){const _0x5e1c71=_0x4a9685,_0x44288e=new Map();return _0x408d3b[_0x5e1c71(0x38f)](_0x210491=>{const _0x2cc73c=_0x5e1c71;if(_0x44288e[_0x2cc73c(0x1d2)](_0x210491[_0x2cc73c(0x50e)])){const _0xd6ca69=_0x44288e[_0x2cc73c(0x542)](_0x210491['selection']);_0xd6ca69[_0x2cc73c(0x2b9)]+=',\x20'+_0x210491['name'];}else _0x44288e['set'](_0x210491[_0x2cc73c(0x50e)],_0x210491);}),Array[_0x5e1c71(0x239)](_0x44288e[_0x5e1c71(0x470)]());}var X=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0xdbc733){const _0x152afc=_0x4a9685;return _0xdbc733&&_0xdbc733['__esModule']&&Object[_0x152afc(0x216)][_0x152afc(0x2f4)][_0x152afc(0x20c)](_0xdbc733,_0x152afc(0x1fe))?_0xdbc733[_0x152afc(0x1fe)]:_0xdbc733;}var pn={'exports':{}},Xe={},Es=ae,bs=Symbol[_0x4a9685(0x50f)](_0x4a9685(0x1fc)),Ts=Symbol['for']('react.fragment'),Rs=Object[_0x4a9685(0x216)]['hasOwnProperty'],ys=Es[_0x4a9685(0x3bc)][_0x4a9685(0x2ff)],Os={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function gn(_0x3a45db,_0x921192,_0x5d7d5c){const _0x14609d=_0x4a9685;var _0x4a0587,_0x19052b={},_0x12381d=null,_0x5e1182=null;_0x5d7d5c!==void 0x0&&(_0x12381d=''+_0x5d7d5c),_0x921192['key']!==void 0x0&&(_0x12381d=''+_0x921192[_0x14609d(0x303)]),_0x921192[_0x14609d(0x333)]!==void 0x0&&(_0x5e1182=_0x921192[_0x14609d(0x333)]);for(_0x4a0587 in _0x921192)Rs[_0x14609d(0x20c)](_0x921192,_0x4a0587)&&!Os['hasOwnProperty'](_0x4a0587)&&(_0x19052b[_0x4a0587]=_0x921192[_0x4a0587]);if(_0x3a45db&&_0x3a45db[_0x14609d(0x211)]){for(_0x4a0587 in(_0x921192=_0x3a45db[_0x14609d(0x211)],_0x921192))_0x19052b[_0x4a0587]===void 0x0&&(_0x19052b[_0x4a0587]=_0x921192[_0x4a0587]);}return{'$$typeof':bs,'type':_0x3a45db,'key':_0x12381d,'ref':_0x5e1182,'props':_0x19052b,'_owner':ys[_0x14609d(0x139)]};}Xe['Fragment']=Ts,Xe[_0x4a9685(0x4a3)]=gn,Xe[_0x4a9685(0x3bf)]=gn,pn[_0x4a9685(0x5dd)]=Xe;var pe=pn[_0x4a9685(0x5dd)],Q=function(){const _0x7e1e73=_0x4a9685;return Q=Object[_0x7e1e73(0x166)]||function(_0x34613c){const _0x29eb63=_0x7e1e73;for(var _0x3f80c7,_0x2c0b4a=0x1,_0x2e0ba2=arguments[_0x29eb63(0x530)];_0x2c0b4a<_0x2e0ba2;_0x2c0b4a++){_0x3f80c7=arguments[_0x2c0b4a];for(var _0x241f69 in _0x3f80c7)Object['prototype']['hasOwnProperty'][_0x29eb63(0x20c)](_0x3f80c7,_0x241f69)&&(_0x34613c[_0x241f69]=_0x3f80c7[_0x241f69]);}return _0x34613c;},Q[_0x7e1e73(0x5cc)](this,arguments);},Ds=function(_0x32a432,_0x5b27e0){const _0x35cdd9=_0x4a9685;var _0x2571f5={};for(var _0x9a7de in _0x32a432)Object[_0x35cdd9(0x216)][_0x35cdd9(0x2f4)][_0x35cdd9(0x20c)](_0x32a432,_0x9a7de)&&_0x5b27e0[_0x35cdd9(0x558)](_0x9a7de)<0x0&&(_0x2571f5[_0x9a7de]=_0x32a432[_0x9a7de]);if(_0x32a432!=null&&typeof Object[_0x35cdd9(0x4e8)]=='function'){for(var _0x247bd6=0x0,_0x9a7de=Object['getOwnPropertySymbols'](_0x32a432);_0x247bd6<_0x9a7de['length'];_0x247bd6++)_0x5b27e0[_0x35cdd9(0x558)](_0x9a7de[_0x247bd6])<0x0&&Object[_0x35cdd9(0x216)][_0x35cdd9(0x2ac)][_0x35cdd9(0x20c)](_0x32a432,_0x9a7de[_0x247bd6])&&(_0x2571f5[_0x9a7de[_0x247bd6]]=_0x32a432[_0x9a7de[_0x247bd6]]);}return _0x2571f5;},Dt=ae[_0x4a9685(0x2a3)](function(_0x1826bd,_0x5f04df){const _0x1d2366=_0x4a9685;var _0x23ff5a=_0x1826bd[_0x1d2366(0x438)],_0x11298f=_0x1826bd['id'],_0x251fd4=_0x1826bd[_0x1d2366(0x16e)],_0x338dd9=_0x1826bd['extend'],_0x46c379=Ds(_0x1826bd,[_0x1d2366(0x438),'id',_0x1d2366(0x16e),'extend']),_0x2655d3='univerjs-icon\x20univerjs-icon-'[_0x1d2366(0x407)](_0x11298f,'\x20')[_0x1d2366(0x407)](_0x251fd4||'')[_0x1d2366(0x397)](),_0xce4d54=ae[_0x1d2366(0x1ab)]('_'[_0x1d2366(0x407)](Us()));return In(_0x23ff5a,''['concat'](_0x11298f),{'defIds':_0x23ff5a[_0x1d2366(0x5f1)],'idSuffix':_0xce4d54[_0x1d2366(0x139)]},Q({'ref':_0x5f04df,'className':_0x2655d3},_0x46c379),_0x338dd9);});function In(_0x4d4543,_0x2865c7,_0x2ee10f,_0x16b418,_0x25dd91){const _0x4f293f=_0x4a9685;return ae[_0x4f293f(0x393)](_0x4d4543['tag'],Q(Q({'key':_0x2865c7},ws(_0x4d4543,_0x2ee10f,_0x25dd91)),_0x16b418),(Ps(_0x4d4543,_0x2ee10f)[_0x4f293f(0x209)]||[])[_0x4f293f(0x28a)](function(_0x2b2b66,_0x4855a1){const _0x1579bd=_0x4f293f;return In(_0x2b2b66,''['concat'](_0x2865c7,'-')[_0x1579bd(0x407)](_0x4d4543['tag'],'-')['concat'](_0x4855a1),_0x2ee10f,void 0x0,_0x25dd91);}));}function ws(_0x1533d1,_0x2990f9,_0xf6bfa1){const _0x5767c5=_0x4a9685;var _0x2ca07d=Q({},_0x1533d1['attrs']);_0xf6bfa1!=null&&_0xf6bfa1[_0x5767c5(0x237)]&&_0x2ca07d[_0x5767c5(0x28d)]===_0x5767c5(0x237)&&(_0x2ca07d[_0x5767c5(0x28d)]=_0xf6bfa1[_0x5767c5(0x237)]);var _0x281e30=_0x2990f9[_0x5767c5(0x5f1)];return!_0x281e30||_0x281e30[_0x5767c5(0x530)]===0x0||(_0x1533d1[_0x5767c5(0x2cc)]===_0x5767c5(0x3fd)&&_0x2ca07d['xlink:href']&&(_0x2ca07d['xlink:href']=_0x2ca07d[_0x5767c5(0x22c)]+_0x2990f9[_0x5767c5(0x478)]),Object[_0x5767c5(0x522)](_0x2ca07d)['forEach'](function(_0x57f8ba){const _0xe5e036=_0x5767c5;var _0x158eb2=_0x57f8ba[0x0],_0x458580=_0x57f8ba[0x1];typeof _0x458580==_0xe5e036(0x3b2)&&(_0x2ca07d[_0x158eb2]=_0x458580[_0xe5e036(0x38b)](/url\(#(.*)\)/,_0xe5e036(0x5d3)[_0xe5e036(0x407)](_0x2990f9[_0xe5e036(0x478)],')')));})),_0x2ca07d;}function Ps(_0x499521,_0x4091bd){const _0x19e6f8=_0x4a9685;var _0x3d9707,_0x4ecbd9=_0x4091bd[_0x19e6f8(0x5f1)];return!_0x4ecbd9||_0x4ecbd9['length']===0x0?_0x499521:_0x499521[_0x19e6f8(0x2cc)]===_0x19e6f8(0x55c)&&(!((_0x3d9707=_0x499521['children'])===null||_0x3d9707===void 0x0)&&_0x3d9707[_0x19e6f8(0x530)])?Q(Q({},_0x499521),{'children':_0x499521[_0x19e6f8(0x209)][_0x19e6f8(0x28a)](function(_0x52bffc){const _0x1e3026=_0x19e6f8;return typeof _0x52bffc[_0x1e3026(0x247)]['id']==_0x1e3026(0x3b2)&&_0x4ecbd9&&_0x4ecbd9[_0x1e3026(0x558)](_0x52bffc[_0x1e3026(0x247)]['id'])>-0x1?Q(Q({},_0x52bffc),{'attrs':Q(Q({},_0x52bffc[_0x1e3026(0x247)]),{'id':_0x52bffc[_0x1e3026(0x247)]['id']+_0x4091bd[_0x1e3026(0x478)]})}):_0x52bffc;})}):_0x499521;}function Us(){const _0x53822f=_0x4a9685;return Math[_0x53822f(0x588)]()[_0x53822f(0x350)](0x24)[_0x53822f(0x18c)](0x2,0x8);}Dt['displayName']='UniverIcon';var Ms={'tag':_0x4a9685(0x421),'attrs':{'fill':_0x4a9685(0x4a2),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x4a9685(0x353)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a9685(0x36f)},'children':[{'tag':'path','attrs':{'stroke':_0x4a9685(0x4c6),'d':_0x4a9685(0x415),'strokeLinecap':_0x4a9685(0x481),'strokeLinejoin':_0x4a9685(0x481),'strokeWidth':1.2}}]},{'tag':_0x4a9685(0x55c),'attrs':{},'children':[{'tag':_0x4a9685(0x4ea),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x4a9685(0x1f4),'attrs':{'fill':_0x4a9685(0x4bd),'d':_0x4a9685(0x1ea)}}]}]}],'defIds':[_0x4a9685(0x439)]},Cn=ae[_0x4a9685(0x2a3)](function(_0x19a73c,_0x27019f){const _0x2151f3=_0x4a9685;return ae['createElement'](Dt,Object[_0x2151f3(0x166)]({},_0x19a73c,{'id':_0x2151f3(0x39e),'ref':_0x27019f,'icon':Ms}));});Cn[_0x4a9685(0x163)]=_0x4a9685(0x2a6);var As={'tag':_0x4a9685(0x421),'attrs':{'fill':_0x4a9685(0x4a2),'viewBox':_0x4a9685(0x516),'width':_0x4a9685(0x353),'height':_0x4a9685(0x353)},'children':[{'tag':'g','attrs':{'clipPath':_0x4a9685(0x4f3)},'children':[{'tag':_0x4a9685(0x1f4),'attrs':{'stroke':_0x4a9685(0x4c6),'d':_0x4a9685(0x15c),'strokeLinecap':'round','strokeLinejoin':_0x4a9685(0x481),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4a9685(0x396)},'children':[{'tag':_0x4a9685(0x1f4),'attrs':{'fill':'#fff','d':_0x4a9685(0x1ea),'transform':_0x4a9685(0x5ef)}}]}]}],'defIds':[_0x4a9685(0x396)]},En=ae[_0x4a9685(0x2a3)](function(_0x543e0e,_0x10ad11){const _0x4e4104=_0x4a9685;return ae[_0x4e4104(0x393)](Dt,Object[_0x4e4104(0x166)]({},_0x543e0e,{'id':_0x4e4104(0x40f),'ref':_0x10ad11,'icon':As}));});En['displayName']='OnLineSingle';function bn(_0xa8d2e4){const _0x4ff853=_0x4a9685;var _0x24dd33,_0x2f414e,_0x34ff42='';if(typeof _0xa8d2e4==_0x4ff853(0x3b2)||typeof _0xa8d2e4==_0x4ff853(0x3cd))_0x34ff42+=_0xa8d2e4;else{if(typeof _0xa8d2e4==_0x4ff853(0x32f)){if(Array[_0x4ff853(0x36d)](_0xa8d2e4)){var _0x18082f=_0xa8d2e4[_0x4ff853(0x530)];for(_0x24dd33=0x0;_0x24dd33<_0x18082f;_0x24dd33++)_0xa8d2e4[_0x24dd33]&&(_0x2f414e=bn(_0xa8d2e4[_0x24dd33]))&&(_0x34ff42&&(_0x34ff42+='\x20'),_0x34ff42+=_0x2f414e);}else{for(_0x2f414e in _0xa8d2e4)_0xa8d2e4[_0x2f414e]&&(_0x34ff42&&(_0x34ff42+='\x20'),_0x34ff42+=_0x2f414e);}}}return _0x34ff42;}function Ns(){const _0x2d909e=_0x4a9685;for(var _0x195f13,_0x3ccbe3,_0x34d65a=0x0,_0x1d88c3='',_0x161e0e=arguments[_0x2d909e(0x530)];_0x34d65a<_0x161e0e;_0x34d65a++)(_0x195f13=arguments[_0x34d65a])&&(_0x3ccbe3=bn(_0x195f13))&&(_0x1d88c3&&(_0x1d88c3+='\x20'),_0x1d88c3+=_0x3ccbe3);return _0x1d88c3;}const Ls=_0x4a9685(0x4cd),xs='univer-online-status-title',js=_0x4a9685(0x1a4),$s=_0x4a9685(0x13a),Hs='univer-offline',Me={'onlineStatusIcon':Ls,'onlineStatusTitle':xs,'onlineStatus':js,'online':$s,'offline':Hs};function Bs(_0x38e9ff){const _0x457b06=_0x4a9685;switch(_0x38e9ff){case q[_0x457b06(0x338)]:return _0x457b06(0x562);case q[_0x457b06(0x328)]:return _0x457b06(0x4ae);case q[_0x457b06(0x2c6)]:return _0x457b06(0x489);case q['NOT_COLLAB']:return'collabStatus.notCollab';case q['AWAITING']:case q[_0x457b06(0x28b)]:return _0x457b06(0x5af);case q[_0x457b06(0x28c)]:case q[_0x457b06(0x23f)]:return _0x457b06(0x2e5);}}function Tn(_0x945aa4){const _0x1fc9c4=_0x4a9685,{status$:_0x5ce12a}=_0x945aa4,_0x3b6846=ee[_0x1fc9c4(0x592)](_0x5ce12a,q[_0x1fc9c4(0x5bd)]),_0xfcef97=a[_0x1fc9c4(0x245)](a[_0x1fc9c4(0x4a8)]),_0x591bbe=a[_0x1fc9c4(0x245)](exports[_0x1fc9c4(0x2a7)]),_0x5f3e28=_0x3b6846!==q[_0x1fc9c4(0x338)],_0x8f3aa1=_0xfcef97['t'](Bs(_0x3b6846)),_0x31bbd6=Ns(Me[_0x1fc9c4(0x2e1)],{[Me[_0x1fc9c4(0x1bf)]]:_0x5f3e28,[Me[_0x1fc9c4(0x277)]]:!_0x5f3e28}),_0x37285a=_0x5f3e28?pe[_0x1fc9c4(0x4a3)](En,{}):pe[_0x1fc9c4(0x4a3)](Cn,{}),_0x45165b=ae[_0x1fc9c4(0x194)](()=>{const _0x24342f=_0x1fc9c4;_0x5f3e28||_0x591bbe[_0x24342f(0x24a)]();},[_0x5f3e28,_0x591bbe]);function _0xba2a86(){const _0x15d753=_0x1fc9c4;return pe[_0x15d753(0x3bf)](_0x15d753(0x527),{'className':_0x31bbd6,'onClick':_0x45165b,'children':[pe['jsx'](_0x15d753(0x527),{'className':Me[_0x15d753(0x3c8)],'children':_0x37285a}),pe[_0x15d753(0x4a3)]('div',{'className':Me[_0x15d753(0x252)],'children':_0x8f3aa1})]});}return _0x5f3e28?_0xba2a86():pe['jsx'](ge[_0x1fc9c4(0x448)],{'title':_0xfcef97['t']('collab-client.tooltip.reconnect'),'children':_0xba2a86()});}var ks=Object[_0x4a9685(0x377)],Ws=Object[_0x4a9685(0x484)],Fs=(_0x2c2a62,_0x41215a,_0x50eb75,_0x84adfc)=>{const _0x55e064=_0x4a9685;for(var _0x6d331=_0x84adfc>0x1?void 0x0:_0x84adfc?Ws(_0x41215a,_0x50eb75):_0x41215a,_0x39e792=_0x2c2a62[_0x55e064(0x530)]-0x1,_0x39e2ef;_0x39e792>=0x0;_0x39e792--)(_0x39e2ef=_0x2c2a62[_0x39e792])&&(_0x6d331=(_0x84adfc?_0x39e2ef(_0x41215a,_0x50eb75,_0x6d331):_0x39e2ef(_0x6d331))||_0x6d331);return _0x84adfc&&_0x6d331&&ks(_0x41215a,_0x50eb75,_0x6d331),_0x6d331;},$e=(_0x19d2c5,_0x53c4ed)=>(_0x1fa745,_0x1870ef)=>_0x53c4ed(_0x1fa745,_0x1870ef,_0x19d2c5);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x4a9685(0x261)]{constructor(_0x1dff0d,_0x4c43a2,_0x294c3d,_0xb45487){const _0xb527b=_0x4a9685;super(),I(this,'_status$',new A['BehaviorSubject'](q[_0xb527b(0x5bd)])),(this[_0xb527b(0x54a)]=_0x1dff0d,this['_uiPartsService']=_0x4c43a2,this[_0xb527b(0x372)]=_0x294c3d,this[_0xb527b(0x46b)]=_0xb45487,this['_initStatusComponent'](),this['_initStatusListener']());}[_0x4a9685(0x5be)](){const _0x2ed6a0=_0x4a9685;this[_0x2ed6a0(0x3c7)](this['_univerInstanceService'][_0x2ed6a0(0x57c)][_0x2ed6a0(0x172)](A[_0x2ed6a0(0x4c9)](()=>{const _0x21a734=_0x2ed6a0,_0x5dbd39=this['_univerInstanceService'][_0x21a734(0x2dd)]();return _0x5dbd39?this[_0x21a734(0x46b)][_0x21a734(0x5bf)](_0x5dbd39[_0x21a734(0x56f)]()):A['of'](null);}),A[_0x2ed6a0(0x4c9)](_0x3a5f21=>_0x3a5f21?_0x3a5f21[_0x2ed6a0(0x4ba)]:A['of'](q['NOT_COLLAB'])))['subscribe'](_0x2f69a7=>{const _0x365146=_0x2ed6a0;this[_0x365146(0x366)][_0x365146(0x503)](_0x2f69a7);}));}[_0x4a9685(0x196)](){const _0x53ff94=_0x4a9685;this[_0x53ff94(0x3c7)](this[_0x53ff94(0x23a)]['registerComponent'](ee[_0x53ff94(0x4ad)][_0x53ff94(0x5c1)],()=>a['connectInjector'](Vs({'status$':this['_status$']['asObservable']()}),this['_injector'])));}},exports[_0x4a9685(0x2f8)]=Fs([$e(0x0,a[_0x4a9685(0x3c5)]),$e(0x1,ee['IUIPartsService']),$e(0x2,a[_0x4a9685(0x27a)](a[_0x4a9685(0x17d)])),$e(0x3,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x1ff)]))],exports[_0x4a9685(0x2f8)]);function Vs(_0x56a877){const {status$:_0x5a191c}=_0x56a877;return function(){const _0x3b65da=_0x5f2c;return pe[_0x3b65da(0x4a3)](Tn,{'status$':_0x5a191c});};}const wt=a[_0x4a9685(0x1e3)](_0x4a9685(0x434));var Gs=Object['defineProperty'],Ys=Object['getOwnPropertyDescriptor'],Ks=(_0x55b9be,_0x1c1469,_0x57e58a,_0x36bbca)=>{const _0x27a6db=_0x4a9685;for(var _0x285425=_0x36bbca>0x1?void 0x0:_0x36bbca?Ys(_0x1c1469,_0x57e58a):_0x1c1469,_0xf504da=_0x55b9be[_0x27a6db(0x530)]-0x1,_0x272c50;_0xf504da>=0x0;_0xf504da--)(_0x272c50=_0x55b9be[_0xf504da])&&(_0x285425=(_0x36bbca?_0x272c50(_0x1c1469,_0x57e58a,_0x285425):_0x272c50(_0x285425))||_0x285425);return _0x36bbca&&_0x285425&&Gs(_0x1c1469,_0x57e58a,_0x285425),_0x285425;},Te=(_0x2b39fb,_0x709c86)=>(_0x2e575a,_0x2c3b2c)=>_0x709c86(_0x2e575a,_0x2c3b2c,_0x2b39fb);exports[_0x4a9685(0x554)]=class extends a[_0x4a9685(0x2c7)]{constructor(_0x5ec5c6,_0x2f4b62,_0x14f006,_0x3295b8,_0x2d34e1,_0x57985c){const _0x1b082d=_0x4a9685;super(),this['_urlService']=_0x5ec5c6,this[_0x1b082d(0x480)]=_0x2f4b62,this[_0x1b082d(0x55e)]=_0x14f006,this[_0x1b082d(0x142)]=_0x3295b8,this[_0x1b082d(0x232)]=_0x2d34e1,_0x57985c?_0x57985c==null||_0x57985c['whenReady']()['then'](()=>this[_0x1b082d(0x3f4)]()):(this[_0x1b082d(0x480)]['debug'](_0x1b082d(0x190),_0x1b082d(0x1b9)),this['_init']());}async['_init'](){const _0x3b0b8e=_0x4a9685,_0x20f5bb=this['_urlService']['getParam'](_0x3b0b8e(0x1e9)),_0x29158a=this[_0x3b0b8e(0x230)][_0x3b0b8e(0x3e2)](_0x3b0b8e(0x3e4));if(!_0x20f5bb||!_0x29158a){this['_logService'][_0x3b0b8e(0x37a)](_0x3b0b8e(0x190),_0x3b0b8e(0x4d7));return;}switch(Number(_0x29158a)){case ie['UNIVER_SHEET']:{const _0x1b1498=await this['_loadSheet'](_0x20f5bb);this[_0x3b0b8e(0x5a7)](_0x1b1498);break;}case ie['UNIVER_DOC']:{await this['_loadDoc'](_0x20f5bb);break;}default:{this[_0x3b0b8e(0x480)]['error'](_0x3b0b8e(0x190),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x4a9685(0x5a7)](_0x3aea06){const _0x16955a=_0x4a9685;await this[_0x16955a(0x21e)](_0x3aea06),_0x3aea06['activeSheet$']['pipe'](A['takeUntil'](this[_0x16955a(0x5c9)]))[_0x16955a(0x419)](_0x1bb618=>{const _0x2fe324=_0x16955a;_0x1bb618&&this[_0x2fe324(0x45c)](_0x1bb618);}),this['_urlService'][_0x16955a(0x56a)][_0x16955a(0x172)](A['takeUntil'](this[_0x16955a(0x5c9)]))[_0x16955a(0x419)](()=>this['_updateSubUnitFromURLParams'](_0x3aea06));}['_updateURLWithCurrentState'](_0x2f2175,_0x4d041=!0x1){const _0x44093a=_0x4a9685,_0x3e59e0=this[_0x44093a(0x230)]['getParam']('subunit');_0x2f2175['getSheetId']()!==_0x3e59e0&&this[_0x44093a(0x230)][_0x44093a(0x282)](_0x44093a(0x3fe),_0x2f2175['getSheetId'](),_0x4d041);}async[_0x4a9685(0x21e)](_0x9d2fb2){const _0x455a4d=_0x4a9685;var _0xe86375;const _0x1895b4=this[_0x455a4d(0x230)][_0x455a4d(0x3e2)]('subunit');if(!_0x1895b4||!_0x9d2fb2[_0x455a4d(0x2ca)](_0x1895b4)){const _0x1369b1=_0x9d2fb2['getUnhiddenWorksheets']()[0x0],_0x3694d2=_0x9d2fb2['getSheetBySheetId'](_0x1369b1);if(!_0x3694d2)return;this['_updateURLWithCurrentState'](_0x3694d2,!0x0),await this[_0x455a4d(0x55e)][_0x455a4d(0x5f4)](k[_0x455a4d(0x4e7)]['id'],{'unitId':_0x9d2fb2[_0x455a4d(0x56f)](),'subUnitId':_0x1369b1});return;}((_0xe86375=_0x9d2fb2[_0x455a4d(0x4d4)]())==null?void 0x0:_0xe86375[_0x455a4d(0x180)]())!==_0x1895b4&&await this[_0x455a4d(0x55e)][_0x455a4d(0x5f4)](k[_0x455a4d(0x4e7)]['id'],{'unitId':_0x9d2fb2[_0x455a4d(0x56f)](),'subUnitId':_0x1895b4});}async[_0x4a9685(0x454)](_0x7cffb9){const _0x1e7e8f=_0x4a9685;let _0x31f75a=0x0;const _0x1808b0=await this[_0x1e7e8f(0x142)][_0x1e7e8f(0x206)](_0x7cffb9);return _0x1808b0&&(_0x1808b0['awaitingChangeset']||_0x1808b0['mutations'][_0x1e7e8f(0x530)]!==0x0)&&(_0x31f75a=_0x1808b0[_0x1e7e8f(0x1b6)]),_0x31f75a===0x0&&this[_0x1e7e8f(0x480)]['debug'](_0x1e7e8f(0x190),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService'][_0x1e7e8f(0x1cd)](_0x7cffb9,_0x31f75a);}async[_0x4a9685(0x29f)](_0x2c4431){const _0x822a18=_0x4a9685;let _0x5d4155=0x0;const _0x28ffd1=await this[_0x822a18(0x142)]['loadOfflineData'](_0x2c4431);return _0x28ffd1&&(_0x28ffd1['awaitingChangeset']||_0x28ffd1[_0x822a18(0x1b8)][_0x822a18(0x530)]!==0x0)&&(_0x5d4155=_0x28ffd1[_0x822a18(0x1b6)]),_0x5d4155===0x0&&this['_logService']['debug'](_0x822a18(0x190),_0x822a18(0x47e)),this[_0x822a18(0x232)]['loadDoc'](_0x2c4431,_0x5d4155);}},exports['DataLoaderController']=Ks([Te(0x0,wt),Te(0x1,a[_0x4a9685(0x2e8)]),Te(0x2,a[_0x4a9685(0x449)]),Te(0x3,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x1a0)])),Te(0x4,a[_0x4a9685(0x27a)](S[_0x4a9685(0x33d)])),Te(0x5,a['Optional']($n[_0x4a9685(0x4d9)]))],exports[_0x4a9685(0x554)]);var qs=Object[_0x4a9685(0x377)],zs=Object[_0x4a9685(0x484)],Xs=(_0x5e0e58,_0x5681e1,_0x351554,_0x386dd9)=>{for(var _0x2eea1c=_0x386dd9>0x1?void 0x0:_0x386dd9?zs(_0x5681e1,_0x351554):_0x5681e1,_0x111413=_0x5e0e58['length']-0x1,_0x5dd800;_0x111413>=0x0;_0x111413--)(_0x5dd800=_0x5e0e58[_0x111413])&&(_0x2eea1c=(_0x386dd9?_0x5dd800(_0x5681e1,_0x351554,_0x2eea1c):_0x5dd800(_0x2eea1c))||_0x2eea1c);return _0x386dd9&&_0x2eea1c&&qs(_0x5681e1,_0x351554,_0x2eea1c),_0x2eea1c;},kt=(_0x96b049,_0x54bb60)=>(_0xb601f3,_0x315b8b)=>_0x54bb60(_0xb601f3,_0x315b8b,_0x96b049);const Js='DEFAULT_FILE_NAME',Zs=_0x4a9685(0x5a8);let Ve=class extends a[_0x4a9685(0x261)]{constructor(_0xb9b835,_0x55e433){const _0x28583d=_0x4a9685;super(),this[_0x28583d(0x54a)]=_0xb9b835,this[_0x28583d(0x294)]=_0x55e433,this['_init']();}[_0x4a9685(0x3f4)](){const _0x5325e6=_0x4a9685;this[_0x5325e6(0x3c7)](this[_0x5325e6(0x54a)]['focused$'][_0x5325e6(0x419)](()=>{const _0x48b30f=_0x5325e6;var _0xd4896;const _0x31f219=this[_0x48b30f(0x54a)][_0x48b30f(0x2dd)]();let _0x225c98=(_0xd4896=this[_0x48b30f(0x294)][_0x48b30f(0x4a1)](Js))!=null?_0xd4896:Zs;_0x31f219 instanceof a[_0x48b30f(0x599)]&&(_0x225c98=_0x31f219[_0x48b30f(0x2b9)]),document[_0x48b30f(0x1c7)]=_0x225c98;}));}};Ve=Xs([kt(0x0,a[_0x4a9685(0x3c5)]),kt(0x1,a[_0x4a9685(0x3fb)])],Ve);var Qs=Object[_0x4a9685(0x377)],er=Object[_0x4a9685(0x484)],tr=(_0x1d63a6,_0x1d281d,_0xf17d16,_0x4f7362)=>{const _0x2d0e8b=_0x4a9685;for(var _0x863bf=_0x4f7362>0x1?void 0x0:_0x4f7362?er(_0x1d281d,_0xf17d16):_0x1d281d,_0x463b01=_0x1d63a6[_0x2d0e8b(0x530)]-0x1,_0x4909d2;_0x463b01>=0x0;_0x463b01--)(_0x4909d2=_0x1d63a6[_0x463b01])&&(_0x863bf=(_0x4f7362?_0x4909d2(_0x1d281d,_0xf17d16,_0x863bf):_0x4909d2(_0x863bf))||_0x863bf);return _0x4f7362&&_0x863bf&&Qs(_0x1d281d,_0xf17d16,_0x863bf),_0x863bf;},at=(_0x58396d,_0x2cd97a)=>(_0x45ebd0,_0x1d7e08)=>_0x2cd97a(_0x45ebd0,_0x1d7e08,_0x58396d);function _0x5f2c(_0x16bfb7,_0x42776d){const _0x2b0a68=_0x2b0a();return _0x5f2c=function(_0x5f2c73,_0x241e5d){_0x5f2c73=_0x5f2c73-0x133;let _0x53c513=_0x2b0a68[_0x5f2c73];return _0x53c513;},_0x5f2c(_0x16bfb7,_0x42776d);}let Ge=class{constructor(_0x534843,_0x3702c1,_0x1d41c7){const _0x32c64e=_0x4a9685;this['_configService']=_0x534843,this[_0x32c64e(0x213)]=_0x3702c1,this[_0x32c64e(0x195)]=_0x1d41c7,this[_0x32c64e(0x432)]();}[_0x4a9685(0x432)](){const _0x4c02aa=_0x4a9685;this[_0x4c02aa(0x213)][_0x4c02aa(0x533)]({'priority':0x1,'interceptor':(_0x6fc23a,_0x9733a7)=>_0x9733a7(_0x6fc23a)[_0x4c02aa(0x172)](A[_0x4c02aa(0x2c3)](async _0x529ca0=>{const _0x53589e=_0x4c02aa,_0x263fd4=_0x529ca0;if(_0x263fd4[_0x53589e(0x226)]===0x191&&window[_0x53589e(0x2a0)](this[_0x53589e(0x195)]['t'](_0x53589e(0x5df)))){const _0x19d7f0=window[_0x53589e(0x205)](window[_0x53589e(0x559)][_0x53589e(0x1fd)]);window[_0x53589e(0x559)][_0x53589e(0x1fd)]=this['_getLoginPath']()+_0x53589e(0x496)+_0x19d7f0;}return _0x263fd4;}))});}[_0x4a9685(0x162)](){const _0x4d3bb7=_0x4a9685;var _0x511e17,_0x2081c5;const _0x29f732=this[_0x4d3bb7(0x294)][_0x4d3bb7(0x4a1)](an),_0x1664e4=this[_0x4d3bb7(0x294)]['getConfig'](te);return(_0x2081c5=(_0x511e17=_0x1664e4==null?void 0x0:_0x1664e4[_0x4d3bb7(0x5db)])!=null?_0x511e17:_0x29f732)!=null?_0x2081c5:qn;}};Ge=tr([at(0x0,a[_0x4a9685(0x3fb)]),at(0x1,a[_0x4a9685(0x27a)](Z[_0x4a9685(0x2db)])),at(0x2,a[_0x4a9685(0x27a)](a[_0x4a9685(0x4a8)]))],Ge);var nr=Object[_0x4a9685(0x377)],ir=Object['getOwnPropertyDescriptor'],sr=(_0x25dab8,_0x13c967,_0x19d17c,_0x3318bb)=>{const _0x56b2f6=_0x4a9685;for(var _0x3eaa87=_0x3318bb>0x1?void 0x0:_0x3318bb?ir(_0x13c967,_0x19d17c):_0x13c967,_0x2e9495=_0x25dab8[_0x56b2f6(0x530)]-0x1,_0xc77bd9;_0x2e9495>=0x0;_0x2e9495--)(_0xc77bd9=_0x25dab8[_0x2e9495])&&(_0x3eaa87=(_0x3318bb?_0xc77bd9(_0x13c967,_0x19d17c,_0x3eaa87):_0xc77bd9(_0x3eaa87))||_0x3eaa87);return _0x3318bb&&_0x3eaa87&&nr(_0x13c967,_0x19d17c,_0x3eaa87),_0x3eaa87;},Wt=(_0x4039a6,_0x5458d9)=>(_0x266252,_0x43cbf4)=>_0x5458d9(_0x266252,_0x43cbf4,_0x4039a6);const Rn=_0x4a9685(0x428),rr=_0x4a9685(0x400);exports[_0x4a9685(0x26b)]=class extends a[_0x4a9685(0x261)]{constructor(_0x341f3a,_0x1f0f6a){const _0x19dfe9=_0x4a9685;super(),this[_0x19dfe9(0x54b)]=_0x341f3a,this[_0x19dfe9(0x294)]=_0x1f0f6a,this[_0x19dfe9(0x4e9)]();}['_initMergeInterceptor'](){const _0xc8647=_0x4a9685,_0x38729d=this;this[_0xc8647(0x3c7)](this[_0xc8647(0x54b)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':Z[_0xc8647(0x47a)]({'isMatch'(_0x555094){const _0x1146c0=_0xc8647;var _0x473e2d;if(_0x555094[_0x1146c0(0x557)]==='POST'&&((_0x473e2d=_0x555094[_0x1146c0(0x385)])!=null&&_0x473e2d[_0x1146c0(0x1c3)])){const {objectID:_0x5a17c4,objectType:_0x34b0eb}=_0x555094[_0x1146c0(0x385)][_0x1146c0(0x1c3)]||{};if(!_0x5a17c4||_0x34b0eb===void 0x0)return!0x1;const _0x35cf88=_0x38729d[_0x1146c0(0x1f1)]()+'/'+_0x34b0eb+'/object/'+_0x5a17c4+'/allowed';if(_0x555094[_0x1146c0(0x465)]===_0x35cf88)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x487297){var _0x36acd2;return(_0x36acd2=_0x487297['requestParams'])==null?void 0x0:_0x36acd2['body'];},'mergeParamsToRequest'(_0x262d10,_0x923482){const _0x6865fb=_0xc8647,_0xa5a4fe=_0x38729d[_0x6865fb(0x1f1)]()+_0x6865fb(0x3b5),_0x474251=_0x262d10[_0x6865fb(0x2a2)]((_0x45798d,_0x3bf79f)=>{const _0x3435a0=_0x6865fb,{unitID:_0x509f5e,objectID:_0xb708a6,objectType:_0x7b4dfe,actions:_0x3afc57}=_0x3bf79f;return _0x45798d[_0x509f5e]||(_0x45798d[_0x509f5e]={}),_0x45798d[_0x509f5e][_0xb708a6]||(_0x45798d[_0x509f5e][_0xb708a6]={'objectID':_0xb708a6,'objectType':_0x7b4dfe,'actions':[]}),_0x45798d[_0x509f5e][_0xb708a6]['actions'][_0x3435a0(0x3d6)](..._0x3afc57),_0x45798d;},{}),_0x384c84=[];for(const _0x2b667f in _0x474251)for(const _0x256c9c in _0x474251[_0x2b667f]){const {actions:_0x306904,objectType:_0x5c0bcd}=_0x474251[_0x2b667f][_0x256c9c],_0x456238=[...new Set(_0x306904)];_0x384c84[_0x6865fb(0x3d6)]({'unitID':_0x2b667f,'objectID':_0x256c9c,'objectType':_0x5c0bcd,'actions':_0x456238});}return new Z[(_0x6865fb(0x324))](_0x6865fb(0x431),_0xa5a4fe,{'headers':_0x923482[_0x6865fb(0x259)],'withCredentials':_0x923482[_0x6865fb(0x46a)],'responseType':_0x923482[_0x6865fb(0x413)],'body':{'requests':_0x384c84}});}},{'distributeResult'(_0x2031e6,_0x1d133){const {objectActions:_0x29bf0b}=_0x2031e6;return _0x1d133['map'](_0xc9d21e=>{const _0x31f078=_0x5f2c,{unitID:_0x138c05,objectID:_0x139bc3,actions:_0x1c2f58}=_0xc9d21e,_0x465e6=_0x29bf0b[_0x31f078(0x284)](_0x1d21e1=>_0x1d21e1[_0x31f078(0x197)]===_0x138c05&&_0x1d21e1[_0x31f078(0x5e7)]===_0x139bc3),_0x2f9823=_0x1c2f58['map'](_0x52c460=>_0x465e6==null?void 0x0:_0x465e6['actions'][_0x31f078(0x284)](_0x145e3c=>_0x145e3c[_0x31f078(0x14c)]===_0x52c460))[_0x31f078(0x464)](_0x58e3f0=>!!_0x58e3f0);return{'config':_0xc9d21e,'result':{'actions':_0x2f9823,'error':_0x2031e6['error']}};});}})}));}['_getAPIPrefixPath'](){const _0x3a1599=_0x4a9685;var _0x15802d,_0x53b19f;const _0x17db61=this[_0x3a1599(0x294)][_0x3a1599(0x4a1)](Rn),_0x1c702d=this[_0x3a1599(0x294)]['getConfig'](te);return(_0x53b19f=(_0x15802d=_0x1c702d==null?void 0x0:_0x1c702d[_0x3a1599(0x240)])!=null?_0x15802d:_0x17db61)!=null?_0x53b19f:rr;}async[_0x4a9685(0x4c5)](_0x371b00){const _0x5dd1a8=_0x4a9685,_0x4f020a=this[_0x5dd1a8(0x1f1)]()+'/'+_0x371b00[_0x5dd1a8(0x451)]+'/object';return(await this['_HTTPService']['post'](_0x4f020a,{'body':_0x371b00}))[_0x5dd1a8(0x1c3)][_0x5dd1a8(0x5e7)]||'';}async[_0x4a9685(0x3b9)](_0x1434f0){const _0xf61595=_0x4a9685,_0x3888ca=this[_0xf61595(0x1f1)]()+_0xf61595(0x2ce);return(await this[_0xf61595(0x54b)][_0xf61595(0x171)](_0x3888ca,{'body':_0x1434f0}))['body'][_0xf61595(0x365)];}async['update'](_0x3f9bb5){const _0x11501e=_0x4a9685,_0x4e95b8=this['_getAPIPrefixPath']()+'/'+_0x3f9bb5[_0x11501e(0x451)]+_0x11501e(0x343)+_0x3f9bb5[_0x11501e(0x5e7)];await this[_0x11501e(0x54b)]['put'](_0x4e95b8,{'body':_0x3f9bb5});}async[_0x4a9685(0x339)](_0x3855b2){const _0x16e29b=_0x4a9685,_0xb105c6=this[_0x16e29b(0x1f1)]()+'/'+_0x3855b2[_0x16e29b(0x451)]+_0x16e29b(0x343)+_0x3855b2[_0x16e29b(0x5e7)]+_0x16e29b(0x2fc);return(await this[_0x16e29b(0x54b)][_0x16e29b(0x171)](_0xb105c6,{'body':_0x3855b2}))[_0x16e29b(0x1c3)][_0x16e29b(0x5b6)];}async[_0x4a9685(0x161)](_0x31c644){const _0x444f19=_0x4a9685,_0x2a7651=this[_0x444f19(0x1f1)]()+'/-/object/-/batch_allowed';return(await this[_0x444f19(0x54b)][_0x444f19(0x171)](_0x2a7651,{'body':{'requests':_0x31c644}}))['body'][_0x444f19(0x390)];}async['listRoles'](_0x29e437){const _0x595a3a=_0x4a9685,_0x3d2b22=this[_0x595a3a(0x1f1)]()+'/'+_0x29e437[_0x595a3a(0x451)]+_0x595a3a(0x519),_0x313565=await this[_0x595a3a(0x54b)][_0x595a3a(0x171)](_0x3d2b22,{'body':_0x29e437});return{'roles':_0x313565[_0x595a3a(0x1c3)][_0x595a3a(0x569)],'actions':_0x313565[_0x595a3a(0x1c3)]['actions']};}async[_0x4a9685(0x15d)](_0x30182e){const _0x3947a9=_0x4a9685,_0x686027=this[_0x3947a9(0x1f1)]()+_0x3947a9(0x532);await this[_0x3947a9(0x54b)][_0x3947a9(0x224)](_0x686027,{'params':{'collaboratorID':_0x30182e[_0x3947a9(0x1e7)],'objectID':_0x30182e[_0x3947a9(0x5e7)],'unitID':_0x30182e[_0x3947a9(0x197)]}});}async[_0x4a9685(0x49c)](_0x3c76a7){const _0x5c700a=_0x4a9685,_0x20bfe5=this['_getAPIPrefixPath']()+_0x5c700a(0x532);await this[_0x5c700a(0x54b)][_0x5c700a(0x148)](_0x20bfe5,{'body':_0x3c76a7});}async[_0x4a9685(0x30d)](_0x4d2658){const _0x5a5dd5=_0x4a9685,_0x583357=this[_0x5a5dd5(0x1f1)]()+_0x5a5dd5(0x532);await this['_HTTPService'][_0x5a5dd5(0x171)](_0x583357,{'body':_0x4d2658});}async['listCollaborators'](_0x112ca2){const _0x5bc42a=_0x4a9685,_0x521951=this[_0x5bc42a(0x1f1)]()+'/collaborator';return(await this['_HTTPService']['get'](_0x521951,{'params':{'objectID':_0x112ca2[_0x5bc42a(0x5e7)],'unitID':_0x112ca2[_0x5bc42a(0x197)]}}))[_0x5bc42a(0x1c3)][_0x5bc42a(0x25c)];}async['putCollaborators'](_0x1c288c){const _0x53e6a8=_0x4a9685,_0x295f91=this['_getAPIPrefixPath']()+_0x53e6a8(0x532);await this[_0x53e6a8(0x54b)][_0x53e6a8(0x235)](_0x295f91,{'body':_0x1c288c});}},exports[_0x4a9685(0x26b)]=sr([Wt(0x0,a[_0x4a9685(0x27a)](Z[_0x4a9685(0x2db)])),Wt(0x1,a['Inject'](a[_0x4a9685(0x3fb)]))],exports[_0x4a9685(0x26b)]);var yn={'exports':{}};function or(_0x5e0b21){const _0x46e5e6=_0x4a9685;throw new Error(_0x46e5e6(0x234)+_0x5e0b21+'\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.');}var ct={'exports':{}},Ft;function oe(){const _0x396100=_0x4a9685;return Ft||(Ft=0x1,function(_0x33d567,_0x171b64){(function(_0x9c82f,_0x294afb){const _0xf85903=_0x5f2c;_0x33d567[_0xf85903(0x5dd)]=_0x294afb();}(X,function(){var _0x209bbf=_0x209bbf||function(_0x288c73,_0x218720){const _0xd579ef=_0x5f2c;var _0x36d28e;if(typeof window<'u'&&window[_0xd579ef(0x564)]&&(_0x36d28e=window['crypto']),typeof self<'u'&&self[_0xd579ef(0x564)]&&(_0x36d28e=self[_0xd579ef(0x564)]),typeof globalThis<'u'&&globalThis[_0xd579ef(0x564)]&&(_0x36d28e=globalThis[_0xd579ef(0x564)]),!_0x36d28e&&typeof window<'u'&&window[_0xd579ef(0x4c0)]&&(_0x36d28e=window[_0xd579ef(0x4c0)]),!_0x36d28e&&typeof X<'u'&&X[_0xd579ef(0x564)]&&(_0x36d28e=X[_0xd579ef(0x564)]),!_0x36d28e&&typeof or==_0xd579ef(0x2d5))try{_0x36d28e=require('crypto');}catch{}var _0x10cb8d=function(){const _0x547215=_0xd579ef;if(_0x36d28e){if(typeof _0x36d28e[_0x547215(0x1c8)]==_0x547215(0x2d5))try{return _0x36d28e['getRandomValues'](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x36d28e[_0x547215(0x501)]==_0x547215(0x2d5))try{return _0x36d28e[_0x547215(0x501)](0x4)[_0x547215(0x596)]();}catch{}}throw new Error(_0x547215(0x399));},_0x205d70=Object[_0xd579ef(0x4c5)]||(function(){function _0x596158(){}return function(_0x37000b){const _0x363c59=_0x5f2c;var _0x5bac7;return _0x596158[_0x363c59(0x216)]=_0x37000b,_0x5bac7=new _0x596158(),_0x596158['prototype']=null,_0x5bac7;};}()),_0x2b54ef={},_0x3575b6=_0x2b54ef[_0xd579ef(0x18d)]={},_0x54ec5f=_0x3575b6[_0xd579ef(0x1bd)]=(function(){return{'extend':function(_0x2943ed){const _0x4909ef=_0x5f2c;var _0x202943=_0x205d70(this);return _0x2943ed&&_0x202943['mixIn'](_0x2943ed),(!_0x202943[_0x4909ef(0x2f4)](_0x4909ef(0x432))||this[_0x4909ef(0x432)]===_0x202943[_0x4909ef(0x432)])&&(_0x202943[_0x4909ef(0x432)]=function(){const _0x15ae69=_0x4909ef;_0x202943[_0x15ae69(0x2ee)][_0x15ae69(0x432)][_0x15ae69(0x5cc)](this,arguments);}),_0x202943['init'][_0x4909ef(0x216)]=_0x202943,_0x202943[_0x4909ef(0x2ee)]=this,_0x202943;},'create':function(){const _0x5c2cd0=_0x5f2c;var _0x561aaa=this[_0x5c2cd0(0x3bb)]();return _0x561aaa['init'][_0x5c2cd0(0x5cc)](_0x561aaa,arguments),_0x561aaa;},'init':function(){},'mixIn':function(_0x1d9ce7){const _0x2c2b24=_0x5f2c;for(var _0x12f748 in _0x1d9ce7)_0x1d9ce7['hasOwnProperty'](_0x12f748)&&(this[_0x12f748]=_0x1d9ce7[_0x12f748]);_0x1d9ce7[_0x2c2b24(0x2f4)](_0x2c2b24(0x350))&&(this['toString']=_0x1d9ce7['toString']);},'clone':function(){const _0x1f19aa=_0x5f2c;return this[_0x1f19aa(0x432)][_0x1f19aa(0x216)][_0x1f19aa(0x3bb)](this);}};}()),_0x4b53b6=_0x3575b6[_0xd579ef(0x2bc)]=_0x54ec5f['extend']({'init':function(_0x1d6066,_0x2a1fd7){const _0x18e642=_0xd579ef;_0x1d6066=this[_0x18e642(0x155)]=_0x1d6066||[],_0x2a1fd7!=_0x218720?this[_0x18e642(0x3a6)]=_0x2a1fd7:this[_0x18e642(0x3a6)]=_0x1d6066[_0x18e642(0x530)]*0x4;},'toString':function(_0x5e7f3e){const _0x55657a=_0xd579ef;return(_0x5e7f3e||_0x537afb)[_0x55657a(0x2d1)](this);},'concat':function(_0x2b5877){const _0x9c1ffb=_0xd579ef;var _0x4cb8e9=this[_0x9c1ffb(0x155)],_0x416fbc=_0x2b5877[_0x9c1ffb(0x155)],_0x2f77c3=this[_0x9c1ffb(0x3a6)],_0x3f8847=_0x2b5877[_0x9c1ffb(0x3a6)];if(this[_0x9c1ffb(0x304)](),_0x2f77c3%0x4)for(var _0x3841e1=0x0;_0x3841e1<_0x3f8847;_0x3841e1++){var _0x155b1a=_0x416fbc[_0x3841e1>>>0x2]>>>0x18-_0x3841e1%0x4*0x8&0xff;_0x4cb8e9[_0x2f77c3+_0x3841e1>>>0x2]|=_0x155b1a<<0x18-(_0x2f77c3+_0x3841e1)%0x4*0x8;}else{for(var _0xad8d58=0x0;_0xad8d58<_0x3f8847;_0xad8d58+=0x4)_0x4cb8e9[_0x2f77c3+_0xad8d58>>>0x2]=_0x416fbc[_0xad8d58>>>0x2];}return this['sigBytes']+=_0x3f8847,this;},'clamp':function(){const _0x823018=_0xd579ef;var _0x399133=this[_0x823018(0x155)],_0x127f2f=this[_0x823018(0x3a6)];_0x399133[_0x127f2f>>>0x2]&=0xffffffff<<0x20-_0x127f2f%0x4*0x8,_0x399133[_0x823018(0x530)]=_0x288c73['ceil'](_0x127f2f/0x4);},'clone':function(){const _0x4d3a5d=_0xd579ef;var _0x4874b6=_0x54ec5f[_0x4d3a5d(0x1c6)]['call'](this);return _0x4874b6[_0x4d3a5d(0x155)]=this[_0x4d3a5d(0x155)][_0x4d3a5d(0x2f2)](0x0),_0x4874b6;},'random':function(_0x5cb12f){const _0x71dbc7=_0xd579ef;for(var _0x420304=[],_0x5c0db5=0x0;_0x5c0db5<_0x5cb12f;_0x5c0db5+=0x4)_0x420304[_0x71dbc7(0x3d6)](_0x10cb8d());return new _0x4b53b6[(_0x71dbc7(0x432))](_0x420304,_0x5cb12f);}}),_0x49264d=_0x2b54ef['enc']={},_0x537afb=_0x49264d['Hex']={'stringify':function(_0x172aa9){const _0x31ab0b=_0xd579ef;for(var _0x3b07e4=_0x172aa9[_0x31ab0b(0x155)],_0x1eef5d=_0x172aa9[_0x31ab0b(0x3a6)],_0x2cbd6c=[],_0x3a7e50=0x0;_0x3a7e50<_0x1eef5d;_0x3a7e50++){var _0x13ef37=_0x3b07e4[_0x3a7e50>>>0x2]>>>0x18-_0x3a7e50%0x4*0x8&0xff;_0x2cbd6c[_0x31ab0b(0x3d6)]((_0x13ef37>>>0x4)[_0x31ab0b(0x350)](0x10)),_0x2cbd6c['push']((_0x13ef37&0xf)['toString'](0x10));}return _0x2cbd6c['join']('');},'parse':function(_0x96fd5f){const _0x248578=_0xd579ef;for(var _0x3be6b7=_0x96fd5f['length'],_0x21542b=[],_0x2bd6b4=0x0;_0x2bd6b4<_0x3be6b7;_0x2bd6b4+=0x2)_0x21542b[_0x2bd6b4>>>0x3]|=parseInt(_0x96fd5f[_0x248578(0x5ea)](_0x2bd6b4,0x2),0x10)<<0x18-_0x2bd6b4%0x8*0x4;return new _0x4b53b6[(_0x248578(0x432))](_0x21542b,_0x3be6b7/0x2);}},_0x3fafc1=_0x49264d['Latin1']={'stringify':function(_0x52ecb2){const _0x25ea4e=_0xd579ef;for(var _0x26449c=_0x52ecb2[_0x25ea4e(0x155)],_0x5248b0=_0x52ecb2['sigBytes'],_0x4b581c=[],_0x7b4eb7=0x0;_0x7b4eb7<_0x5248b0;_0x7b4eb7++){var _0x57a84e=_0x26449c[_0x7b4eb7>>>0x2]>>>0x18-_0x7b4eb7%0x4*0x8&0xff;_0x4b581c['push'](String[_0x25ea4e(0x29a)](_0x57a84e));}return _0x4b581c['join']('');},'parse':function(_0x4e00c8){const _0x34a4f7=_0xd579ef;for(var _0x3df153=_0x4e00c8[_0x34a4f7(0x530)],_0x395559=[],_0x4229f8=0x0;_0x4229f8<_0x3df153;_0x4229f8++)_0x395559[_0x4229f8>>>0x2]|=(_0x4e00c8[_0x34a4f7(0x3b4)](_0x4229f8)&0xff)<<0x18-_0x4229f8%0x4*0x8;return new _0x4b53b6['init'](_0x395559,_0x3df153);}},_0x1eee9b=_0x49264d[_0xd579ef(0x289)]={'stringify':function(_0x4d7859){const _0x1f3a00=_0xd579ef;try{return decodeURIComponent(escape(_0x3fafc1[_0x1f3a00(0x2d1)](_0x4d7859)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'parse':function(_0x15c285){return _0x3fafc1['parse'](unescape(encodeURIComponent(_0x15c285)));}},_0x4d915f=_0x3575b6[_0xd579ef(0x1ac)]=_0x54ec5f[_0xd579ef(0x3bb)]({'reset':function(){const _0x14390c=_0xd579ef;this[_0x14390c(0x225)]=new _0x4b53b6[(_0x14390c(0x432))](),this[_0x14390c(0x46c)]=0x0;},'_append':function(_0x29f4b0){const _0x3db43e=_0xd579ef;typeof _0x29f4b0==_0x3db43e(0x3b2)&&(_0x29f4b0=_0x1eee9b[_0x3db43e(0x2af)](_0x29f4b0)),this[_0x3db43e(0x225)][_0x3db43e(0x407)](_0x29f4b0),this['_nDataBytes']+=_0x29f4b0[_0x3db43e(0x3a6)];},'_process':function(_0x55cb44){const _0x37fdf7=_0xd579ef;var _0xea8b81,_0x1ec558=this[_0x37fdf7(0x225)],_0x4f66bd=_0x1ec558['words'],_0x2bd231=_0x1ec558[_0x37fdf7(0x3a6)],_0x1b916c=this[_0x37fdf7(0x502)],_0x5b4b7c=_0x1b916c*0x4,_0x4b6a11=_0x2bd231/_0x5b4b7c;_0x55cb44?_0x4b6a11=_0x288c73['ceil'](_0x4b6a11):_0x4b6a11=_0x288c73[_0x37fdf7(0x2e7)]((_0x4b6a11|0x0)-this[_0x37fdf7(0x1cb)],0x0);var _0x2dbd2b=_0x4b6a11*_0x1b916c,_0x23ca1f=_0x288c73[_0x37fdf7(0x585)](_0x2dbd2b*0x4,_0x2bd231);if(_0x2dbd2b){for(var _0x2c0539=0x0;_0x2c0539<_0x2dbd2b;_0x2c0539+=_0x1b916c)this['_doProcessBlock'](_0x4f66bd,_0x2c0539);_0xea8b81=_0x4f66bd['splice'](0x0,_0x2dbd2b),_0x1ec558[_0x37fdf7(0x3a6)]-=_0x23ca1f;}return new _0x4b53b6[(_0x37fdf7(0x432))](_0xea8b81,_0x23ca1f);},'clone':function(){const _0x124754=_0xd579ef;var _0x23b545=_0x54ec5f['clone'][_0x124754(0x20c)](this);return _0x23b545[_0x124754(0x225)]=this[_0x124754(0x225)][_0x124754(0x1c6)](),_0x23b545;},'_minBufferSize':0x0});_0x3575b6['Hasher']=_0x4d915f['extend']({'cfg':_0x54ec5f[_0xd579ef(0x3bb)](),'init':function(_0x59810a){const _0x263117=_0xd579ef;this['cfg']=this[_0x263117(0x541)]['extend'](_0x59810a),this[_0x263117(0x149)]();},'reset':function(){const _0x9fb42c=_0xd579ef;_0x4d915f[_0x9fb42c(0x149)]['call'](this),this[_0x9fb42c(0x20f)]();},'update':function(_0x4ecebb){const _0x430241=_0xd579ef;return this[_0x430241(0x34b)](_0x4ecebb),this[_0x430241(0x380)](),this;},'finalize':function(_0x2fff7e){const _0x14d8e1=_0xd579ef;_0x2fff7e&&this['_append'](_0x2fff7e);var _0x56a6e5=this[_0x14d8e1(0x187)]();return _0x56a6e5;},'blockSize':0x10,'_createHelper':function(_0x16a174){return function(_0x13b4c1,_0x5b62bc){const _0x49e9b7=_0x5f2c;return new _0x16a174['init'](_0x5b62bc)[_0x49e9b7(0x36a)](_0x13b4c1);};},'_createHmacHelper':function(_0x526f81){return function(_0x3f79bd,_0x581fb6){const _0x2cd6e3=_0x5f2c;return new _0x566044['HMAC']['init'](_0x526f81,_0x581fb6)[_0x2cd6e3(0x36a)](_0x3f79bd);};}});var _0x566044=_0x2b54ef[_0xd579ef(0x4bb)]={};return _0x2b54ef;}(Math);return _0x209bbf;}));}(ct)),ct[_0x396100(0x5dd)];}var lt={'exports':{}},Vt;function On(){const _0x36c78e=_0x4a9685;return Vt||(Vt=0x1,function(_0x866ff,_0x2e4262){(function(_0x379715,_0xd4237a){const _0xa498c4=_0x5f2c;_0x866ff[_0xa498c4(0x5dd)]=_0xd4237a(oe());}(X,function(_0x1c1c82){const _0xb28be2=_0x5f2c;return(function(){const _0x2bb7b1=_0x5f2c;var _0x1e57ce=_0x1c1c82,_0x28d1da=_0x1e57ce[_0x2bb7b1(0x18d)],_0x9d0437=_0x28d1da[_0x2bb7b1(0x2bc)],_0x1f16e2=_0x1e57ce[_0x2bb7b1(0x3e6)];_0x1f16e2['Base64']={'stringify':function(_0x655681){const _0xc16999=_0x2bb7b1;var _0x2c680d=_0x655681['words'],_0x40f15c=_0x655681[_0xc16999(0x3a6)],_0x470e3e=this[_0xc16999(0x3c2)];_0x655681[_0xc16999(0x304)]();for(var _0x4df4d7=[],_0x12bcf1=0x0;_0x12bcf1<_0x40f15c;_0x12bcf1+=0x3)for(var _0x1f9c6b=_0x2c680d[_0x12bcf1>>>0x2]>>>0x18-_0x12bcf1%0x4*0x8&0xff,_0x398ffe=_0x2c680d[_0x12bcf1+0x1>>>0x2]>>>0x18-(_0x12bcf1+0x1)%0x4*0x8&0xff,_0x6c3715=_0x2c680d[_0x12bcf1+0x2>>>0x2]>>>0x18-(_0x12bcf1+0x2)%0x4*0x8&0xff,_0x52ed2f=_0x1f9c6b<<0x10|_0x398ffe<<0x8|_0x6c3715,_0x37c0ee=0x0;_0x37c0ee<0x4&&_0x12bcf1+_0x37c0ee*0.75<_0x40f15c;_0x37c0ee++)_0x4df4d7['push'](_0x470e3e[_0xc16999(0x22d)](_0x52ed2f>>>0x6*(0x3-_0x37c0ee)&0x3f));var _0x2660a1=_0x470e3e['charAt'](0x40);if(_0x2660a1){for(;_0x4df4d7[_0xc16999(0x530)]%0x4;)_0x4df4d7[_0xc16999(0x3d6)](_0x2660a1);}return _0x4df4d7[_0xc16999(0x241)]('');},'parse':function(_0x2f6beb){const _0x20498b=_0x2bb7b1;var _0x2b93f6=_0x2f6beb['length'],_0x20b6c8=this[_0x20498b(0x3c2)],_0x114927=this[_0x20498b(0x5cb)];if(!_0x114927){_0x114927=this[_0x20498b(0x5cb)]=[];for(var _0x3079bb=0x0;_0x3079bb<_0x20b6c8[_0x20498b(0x530)];_0x3079bb++)_0x114927[_0x20b6c8['charCodeAt'](_0x3079bb)]=_0x3079bb;}var _0x4f17bb=_0x20b6c8['charAt'](0x40);if(_0x4f17bb){var _0x1870c0=_0x2f6beb['indexOf'](_0x4f17bb);_0x1870c0!==-0x1&&(_0x2b93f6=_0x1870c0);}return _0x51af72(_0x2f6beb,_0x2b93f6,_0x114927);},'_map':_0x2bb7b1(0x482)};function _0x51af72(_0x5351e7,_0x7c7bce,_0x51702c){const _0x1e84ff=_0x2bb7b1;for(var _0x2e1fbb=[],_0x24ff7a=0x0,_0x64f4a4=0x0;_0x64f4a4<_0x7c7bce;_0x64f4a4++)if(_0x64f4a4%0x4){var _0x505986=_0x51702c[_0x5351e7[_0x1e84ff(0x3b4)](_0x64f4a4-0x1)]<<_0x64f4a4%0x4*0x2,_0x5226ee=_0x51702c[_0x5351e7[_0x1e84ff(0x3b4)](_0x64f4a4)]>>>0x6-_0x64f4a4%0x4*0x2,_0x59097a=_0x505986|_0x5226ee;_0x2e1fbb[_0x24ff7a>>>0x2]|=_0x59097a<<0x18-_0x24ff7a%0x4*0x8,_0x24ff7a++;}return _0x9d0437[_0x1e84ff(0x4c5)](_0x2e1fbb,_0x24ff7a);}}()),_0x1c1c82[_0xb28be2(0x3e6)][_0xb28be2(0x220)];}));}(lt)),lt[_0x36c78e(0x5dd)];}var ht={'exports':{}},Gt;function ar(){const _0x20a98d=_0x4a9685;return Gt||(Gt=0x1,function(_0x2fba60,_0xbebd10){(function(_0x4c38d6,_0x5e3d58){_0x2fba60['exports']=_0x5e3d58(oe());}(X,function(_0x44fd49){const _0x164e18=_0x5f2c;return function(_0x53bd40){const _0x25b699=_0x5f2c;var _0x2d79af=_0x44fd49,_0x4e29d5=_0x2d79af[_0x25b699(0x18d)],_0x1b8b5d=_0x4e29d5[_0x25b699(0x2bc)],_0x4b1123=_0x4e29d5[_0x25b699(0x314)],_0x2ce341=_0x2d79af[_0x25b699(0x4bb)],_0x26af8c=[];(function(){const _0x5af54d=_0x25b699;for(var _0x5acf78=0x0;_0x5acf78<0x40;_0x5acf78++)_0x26af8c[_0x5acf78]=_0x53bd40['abs'](_0x53bd40[_0x5af54d(0x2c5)](_0x5acf78+0x1))*0x100000000|0x0;}());var _0x8790c6=_0x2ce341[_0x25b699(0x4e2)]=_0x4b1123[_0x25b699(0x3bb)]({'_doReset':function(){const _0xa63cf0=_0x25b699;this[_0xa63cf0(0x3f7)]=new _0x1b8b5d['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x4832f6,_0x1d8ea0){const _0x15e7fe=_0x25b699;for(var _0x24b9ed=0x0;_0x24b9ed<0x10;_0x24b9ed++){var _0x208946=_0x1d8ea0+_0x24b9ed,_0x31bcca=_0x4832f6[_0x208946];_0x4832f6[_0x208946]=(_0x31bcca<<0x8|_0x31bcca>>>0x18)&0xff00ff|(_0x31bcca<<0x18|_0x31bcca>>>0x8)&0xff00ff00;}var _0x51a61b=this[_0x15e7fe(0x3f7)]['words'],_0x349055=_0x4832f6[_0x1d8ea0+0x0],_0x469da0=_0x4832f6[_0x1d8ea0+0x1],_0x5aef62=_0x4832f6[_0x1d8ea0+0x2],_0x37a1bd=_0x4832f6[_0x1d8ea0+0x3],_0x59d26e=_0x4832f6[_0x1d8ea0+0x4],_0x3b0e28=_0x4832f6[_0x1d8ea0+0x5],_0x58de18=_0x4832f6[_0x1d8ea0+0x6],_0x25e9a6=_0x4832f6[_0x1d8ea0+0x7],_0x11f3a0=_0x4832f6[_0x1d8ea0+0x8],_0x18b8db=_0x4832f6[_0x1d8ea0+0x9],_0x2dd31b=_0x4832f6[_0x1d8ea0+0xa],_0x1a734f=_0x4832f6[_0x1d8ea0+0xb],_0x548be8=_0x4832f6[_0x1d8ea0+0xc],_0x325ff3=_0x4832f6[_0x1d8ea0+0xd],_0x31e6f0=_0x4832f6[_0x1d8ea0+0xe],_0xe0cab2=_0x4832f6[_0x1d8ea0+0xf],_0x139ef4=_0x51a61b[0x0],_0x34a64c=_0x51a61b[0x1],_0x34373b=_0x51a61b[0x2],_0x5ca88b=_0x51a61b[0x3];_0x139ef4=_0x24eb0d(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x349055,0x7,_0x26af8c[0x0]),_0x5ca88b=_0x24eb0d(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x469da0,0xc,_0x26af8c[0x1]),_0x34373b=_0x24eb0d(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x5aef62,0x11,_0x26af8c[0x2]),_0x34a64c=_0x24eb0d(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x37a1bd,0x16,_0x26af8c[0x3]),_0x139ef4=_0x24eb0d(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x59d26e,0x7,_0x26af8c[0x4]),_0x5ca88b=_0x24eb0d(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x3b0e28,0xc,_0x26af8c[0x5]),_0x34373b=_0x24eb0d(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x58de18,0x11,_0x26af8c[0x6]),_0x34a64c=_0x24eb0d(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x25e9a6,0x16,_0x26af8c[0x7]),_0x139ef4=_0x24eb0d(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x11f3a0,0x7,_0x26af8c[0x8]),_0x5ca88b=_0x24eb0d(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x18b8db,0xc,_0x26af8c[0x9]),_0x34373b=_0x24eb0d(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x2dd31b,0x11,_0x26af8c[0xa]),_0x34a64c=_0x24eb0d(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x1a734f,0x16,_0x26af8c[0xb]),_0x139ef4=_0x24eb0d(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x548be8,0x7,_0x26af8c[0xc]),_0x5ca88b=_0x24eb0d(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x325ff3,0xc,_0x26af8c[0xd]),_0x34373b=_0x24eb0d(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x31e6f0,0x11,_0x26af8c[0xe]),_0x34a64c=_0x24eb0d(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0xe0cab2,0x16,_0x26af8c[0xf]),_0x139ef4=_0x337a06(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x469da0,0x5,_0x26af8c[0x10]),_0x5ca88b=_0x337a06(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x58de18,0x9,_0x26af8c[0x11]),_0x34373b=_0x337a06(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x1a734f,0xe,_0x26af8c[0x12]),_0x34a64c=_0x337a06(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x349055,0x14,_0x26af8c[0x13]),_0x139ef4=_0x337a06(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x3b0e28,0x5,_0x26af8c[0x14]),_0x5ca88b=_0x337a06(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x2dd31b,0x9,_0x26af8c[0x15]),_0x34373b=_0x337a06(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0xe0cab2,0xe,_0x26af8c[0x16]),_0x34a64c=_0x337a06(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x59d26e,0x14,_0x26af8c[0x17]),_0x139ef4=_0x337a06(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x18b8db,0x5,_0x26af8c[0x18]),_0x5ca88b=_0x337a06(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x31e6f0,0x9,_0x26af8c[0x19]),_0x34373b=_0x337a06(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x37a1bd,0xe,_0x26af8c[0x1a]),_0x34a64c=_0x337a06(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x11f3a0,0x14,_0x26af8c[0x1b]),_0x139ef4=_0x337a06(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x325ff3,0x5,_0x26af8c[0x1c]),_0x5ca88b=_0x337a06(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x5aef62,0x9,_0x26af8c[0x1d]),_0x34373b=_0x337a06(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x25e9a6,0xe,_0x26af8c[0x1e]),_0x34a64c=_0x337a06(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x548be8,0x14,_0x26af8c[0x1f]),_0x139ef4=_0x3fbdd7(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x3b0e28,0x4,_0x26af8c[0x20]),_0x5ca88b=_0x3fbdd7(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x11f3a0,0xb,_0x26af8c[0x21]),_0x34373b=_0x3fbdd7(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x1a734f,0x10,_0x26af8c[0x22]),_0x34a64c=_0x3fbdd7(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x31e6f0,0x17,_0x26af8c[0x23]),_0x139ef4=_0x3fbdd7(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x469da0,0x4,_0x26af8c[0x24]),_0x5ca88b=_0x3fbdd7(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x59d26e,0xb,_0x26af8c[0x25]),_0x34373b=_0x3fbdd7(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x25e9a6,0x10,_0x26af8c[0x26]),_0x34a64c=_0x3fbdd7(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x2dd31b,0x17,_0x26af8c[0x27]),_0x139ef4=_0x3fbdd7(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x325ff3,0x4,_0x26af8c[0x28]),_0x5ca88b=_0x3fbdd7(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x349055,0xb,_0x26af8c[0x29]),_0x34373b=_0x3fbdd7(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x37a1bd,0x10,_0x26af8c[0x2a]),_0x34a64c=_0x3fbdd7(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x58de18,0x17,_0x26af8c[0x2b]),_0x139ef4=_0x3fbdd7(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x18b8db,0x4,_0x26af8c[0x2c]),_0x5ca88b=_0x3fbdd7(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x548be8,0xb,_0x26af8c[0x2d]),_0x34373b=_0x3fbdd7(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0xe0cab2,0x10,_0x26af8c[0x2e]),_0x34a64c=_0x3fbdd7(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x5aef62,0x17,_0x26af8c[0x2f]),_0x139ef4=_0x547cf5(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x349055,0x6,_0x26af8c[0x30]),_0x5ca88b=_0x547cf5(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x25e9a6,0xa,_0x26af8c[0x31]),_0x34373b=_0x547cf5(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x31e6f0,0xf,_0x26af8c[0x32]),_0x34a64c=_0x547cf5(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x3b0e28,0x15,_0x26af8c[0x33]),_0x139ef4=_0x547cf5(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x548be8,0x6,_0x26af8c[0x34]),_0x5ca88b=_0x547cf5(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x37a1bd,0xa,_0x26af8c[0x35]),_0x34373b=_0x547cf5(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x2dd31b,0xf,_0x26af8c[0x36]),_0x34a64c=_0x547cf5(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x469da0,0x15,_0x26af8c[0x37]),_0x139ef4=_0x547cf5(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x11f3a0,0x6,_0x26af8c[0x38]),_0x5ca88b=_0x547cf5(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0xe0cab2,0xa,_0x26af8c[0x39]),_0x34373b=_0x547cf5(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x58de18,0xf,_0x26af8c[0x3a]),_0x34a64c=_0x547cf5(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x325ff3,0x15,_0x26af8c[0x3b]),_0x139ef4=_0x547cf5(_0x139ef4,_0x34a64c,_0x34373b,_0x5ca88b,_0x59d26e,0x6,_0x26af8c[0x3c]),_0x5ca88b=_0x547cf5(_0x5ca88b,_0x139ef4,_0x34a64c,_0x34373b,_0x1a734f,0xa,_0x26af8c[0x3d]),_0x34373b=_0x547cf5(_0x34373b,_0x5ca88b,_0x139ef4,_0x34a64c,_0x5aef62,0xf,_0x26af8c[0x3e]),_0x34a64c=_0x547cf5(_0x34a64c,_0x34373b,_0x5ca88b,_0x139ef4,_0x18b8db,0x15,_0x26af8c[0x3f]),_0x51a61b[0x0]=_0x51a61b[0x0]+_0x139ef4|0x0,_0x51a61b[0x1]=_0x51a61b[0x1]+_0x34a64c|0x0,_0x51a61b[0x2]=_0x51a61b[0x2]+_0x34373b|0x0,_0x51a61b[0x3]=_0x51a61b[0x3]+_0x5ca88b|0x0;},'_doFinalize':function(){const _0x1be980=_0x25b699;var _0x57dae9=this[_0x1be980(0x225)],_0x15a20a=_0x57dae9[_0x1be980(0x155)],_0x1bed08=this['_nDataBytes']*0x8,_0x4be219=_0x57dae9[_0x1be980(0x3a6)]*0x8;_0x15a20a[_0x4be219>>>0x5]|=0x80<<0x18-_0x4be219%0x20;var _0x28e8a2=_0x53bd40[_0x1be980(0x1d0)](_0x1bed08/0x100000000),_0x293ba0=_0x1bed08;_0x15a20a[(_0x4be219+0x40>>>0x9<<0x4)+0xf]=(_0x28e8a2<<0x8|_0x28e8a2>>>0x18)&0xff00ff|(_0x28e8a2<<0x18|_0x28e8a2>>>0x8)&0xff00ff00,_0x15a20a[(_0x4be219+0x40>>>0x9<<0x4)+0xe]=(_0x293ba0<<0x8|_0x293ba0>>>0x18)&0xff00ff|(_0x293ba0<<0x18|_0x293ba0>>>0x8)&0xff00ff00,_0x57dae9[_0x1be980(0x3a6)]=(_0x15a20a[_0x1be980(0x530)]+0x1)*0x4,this[_0x1be980(0x380)]();for(var _0x10f2c0=this[_0x1be980(0x3f7)],_0x44d059=_0x10f2c0['words'],_0x5b8686=0x0;_0x5b8686<0x4;_0x5b8686++){var _0x36933a=_0x44d059[_0x5b8686];_0x44d059[_0x5b8686]=(_0x36933a<<0x8|_0x36933a>>>0x18)&0xff00ff|(_0x36933a<<0x18|_0x36933a>>>0x8)&0xff00ff00;}return _0x10f2c0;},'clone':function(){const _0x29180f=_0x25b699;var _0x37dc7c=_0x4b1123[_0x29180f(0x1c6)][_0x29180f(0x20c)](this);return _0x37dc7c[_0x29180f(0x3f7)]=this[_0x29180f(0x3f7)]['clone'](),_0x37dc7c;}});function _0x24eb0d(_0x2f0d7c,_0x33a419,_0x55bed2,_0xf9edc7,_0x6fd2e9,_0x2812d1,_0x50473b){var _0x3f28c4=_0x2f0d7c+(_0x33a419&_0x55bed2|~_0x33a419&_0xf9edc7)+_0x6fd2e9+_0x50473b;return(_0x3f28c4<<_0x2812d1|_0x3f28c4>>>0x20-_0x2812d1)+_0x33a419;}function _0x337a06(_0x25bd68,_0x948fa,_0x3ec39c,_0x19f722,_0x15fe5e,_0xd6278e,_0x313b18){var _0x5c8a7d=_0x25bd68+(_0x948fa&_0x19f722|_0x3ec39c&~_0x19f722)+_0x15fe5e+_0x313b18;return(_0x5c8a7d<<_0xd6278e|_0x5c8a7d>>>0x20-_0xd6278e)+_0x948fa;}function _0x3fbdd7(_0x4b0b59,_0x4906ff,_0x29e131,_0x1ad888,_0x38cd6f,_0x2457f2,_0x1072a5){var _0x2aa4e9=_0x4b0b59+(_0x4906ff^_0x29e131^_0x1ad888)+_0x38cd6f+_0x1072a5;return(_0x2aa4e9<<_0x2457f2|_0x2aa4e9>>>0x20-_0x2457f2)+_0x4906ff;}function _0x547cf5(_0x5214f9,_0x5cf8a9,_0x2a6eee,_0x39e496,_0x5c86e1,_0xee06aa,_0x177fe4){var _0x579308=_0x5214f9+(_0x2a6eee^(_0x5cf8a9|~_0x39e496))+_0x5c86e1+_0x177fe4;return(_0x579308<<_0xee06aa|_0x579308>>>0x20-_0xee06aa)+_0x5cf8a9;}_0x2d79af[_0x25b699(0x4e2)]=_0x4b1123[_0x25b699(0x2f6)](_0x8790c6),_0x2d79af['HmacMD5']=_0x4b1123['_createHmacHelper'](_0x8790c6);}(Math),_0x44fd49[_0x164e18(0x4e2)];}));}(ht)),ht[_0x20a98d(0x5dd)];}var _t={'exports':{}},ut={'exports':{}},Yt;function cr(){return Yt||(Yt=0x1,function(_0x2bcfc9,_0x3bd4a9){(function(_0x13b15b,_0x142c79){const _0x541b49=_0x5f2c;_0x2bcfc9[_0x541b49(0x5dd)]=_0x142c79(oe());}(X,function(_0xeb114){const _0xf92009=_0x5f2c;return(function(){const _0x163a46=_0x5f2c;var _0x1f8306=_0xeb114,_0x5e37dc=_0x1f8306[_0x163a46(0x18d)],_0xbdd5bf=_0x5e37dc[_0x163a46(0x2bc)],_0x4c9f1a=_0x5e37dc[_0x163a46(0x314)],_0xafeb03=_0x1f8306[_0x163a46(0x4bb)],_0x5cf4c0=[],_0x2bb2ed=_0xafeb03[_0x163a46(0x159)]=_0x4c9f1a[_0x163a46(0x3bb)]({'_doReset':function(){const _0x32bc12=_0x163a46;this[_0x32bc12(0x3f7)]=new _0xbdd5bf[(_0x32bc12(0x432))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x3d9b8d,_0x559e27){const _0x2a1f10=_0x163a46;for(var _0x3c99f9=this[_0x2a1f10(0x3f7)][_0x2a1f10(0x155)],_0x530459=_0x3c99f9[0x0],_0x40bf66=_0x3c99f9[0x1],_0x409d24=_0x3c99f9[0x2],_0xcbf88c=_0x3c99f9[0x3],_0x593997=_0x3c99f9[0x4],_0x4f3864=0x0;_0x4f3864<0x50;_0x4f3864++){if(_0x4f3864<0x10)_0x5cf4c0[_0x4f3864]=_0x3d9b8d[_0x559e27+_0x4f3864]|0x0;else{var _0x238314=_0x5cf4c0[_0x4f3864-0x3]^_0x5cf4c0[_0x4f3864-0x8]^_0x5cf4c0[_0x4f3864-0xe]^_0x5cf4c0[_0x4f3864-0x10];_0x5cf4c0[_0x4f3864]=_0x238314<<0x1|_0x238314>>>0x1f;}var _0x3081b3=(_0x530459<<0x5|_0x530459>>>0x1b)+_0x593997+_0x5cf4c0[_0x4f3864];_0x4f3864<0x14?_0x3081b3+=(_0x40bf66&_0x409d24|~_0x40bf66&_0xcbf88c)+0x5a827999:_0x4f3864<0x28?_0x3081b3+=(_0x40bf66^_0x409d24^_0xcbf88c)+0x6ed9eba1:_0x4f3864<0x3c?_0x3081b3+=(_0x40bf66&_0x409d24|_0x40bf66&_0xcbf88c|_0x409d24&_0xcbf88c)-0x70e44324:_0x3081b3+=(_0x40bf66^_0x409d24^_0xcbf88c)-0x359d3e2a,_0x593997=_0xcbf88c,_0xcbf88c=_0x409d24,_0x409d24=_0x40bf66<<0x1e|_0x40bf66>>>0x2,_0x40bf66=_0x530459,_0x530459=_0x3081b3;}_0x3c99f9[0x0]=_0x3c99f9[0x0]+_0x530459|0x0,_0x3c99f9[0x1]=_0x3c99f9[0x1]+_0x40bf66|0x0,_0x3c99f9[0x2]=_0x3c99f9[0x2]+_0x409d24|0x0,_0x3c99f9[0x3]=_0x3c99f9[0x3]+_0xcbf88c|0x0,_0x3c99f9[0x4]=_0x3c99f9[0x4]+_0x593997|0x0;},'_doFinalize':function(){const _0xc28955=_0x163a46;var _0x1aa506=this['_data'],_0xb20b94=_0x1aa506[_0xc28955(0x155)],_0x4f1bb5=this[_0xc28955(0x46c)]*0x8,_0x3b57cc=_0x1aa506[_0xc28955(0x3a6)]*0x8;return _0xb20b94[_0x3b57cc>>>0x5]|=0x80<<0x18-_0x3b57cc%0x20,_0xb20b94[(_0x3b57cc+0x40>>>0x9<<0x4)+0xe]=Math[_0xc28955(0x1d0)](_0x4f1bb5/0x100000000),_0xb20b94[(_0x3b57cc+0x40>>>0x9<<0x4)+0xf]=_0x4f1bb5,_0x1aa506['sigBytes']=_0xb20b94[_0xc28955(0x530)]*0x4,this['_process'](),this['_hash'];},'clone':function(){const _0x57bd38=_0x163a46;var _0x107ae7=_0x4c9f1a[_0x57bd38(0x1c6)][_0x57bd38(0x20c)](this);return _0x107ae7[_0x57bd38(0x3f7)]=this[_0x57bd38(0x3f7)]['clone'](),_0x107ae7;}});_0x1f8306['SHA1']=_0x4c9f1a['_createHelper'](_0x2bb2ed),_0x1f8306['HmacSHA1']=_0x4c9f1a[_0x163a46(0x355)](_0x2bb2ed);}()),_0xeb114[_0xf92009(0x159)];}));}(ut)),ut['exports'];}var dt={'exports':{}},Kt;function lr(){const _0x1bd0a8=_0x4a9685;return Kt||(Kt=0x1,function(_0x28a8b6,_0x57a1fd){(function(_0x4d8a6c,_0x1abf8c){const _0x44cbeb=_0x5f2c;_0x28a8b6[_0x44cbeb(0x5dd)]=_0x1abf8c(oe());}(X,function(_0x84886b){(function(){const _0x580322=_0x5f2c;var _0x5e15f0=_0x84886b,_0x345ed1=_0x5e15f0[_0x580322(0x18d)],_0x48bd86=_0x345ed1[_0x580322(0x1bd)],_0x4319ed=_0x5e15f0[_0x580322(0x3e6)],_0x2c7c91=_0x4319ed[_0x580322(0x289)],_0x515b60=_0x5e15f0[_0x580322(0x4bb)];_0x515b60[_0x580322(0x52a)]=_0x48bd86['extend']({'init':function(_0x4b9e51,_0x499542){const _0x121fc2=_0x580322;_0x4b9e51=this[_0x121fc2(0x141)]=new _0x4b9e51['init'](),typeof _0x499542==_0x121fc2(0x3b2)&&(_0x499542=_0x2c7c91[_0x121fc2(0x2af)](_0x499542));var _0x1e16d9=_0x4b9e51['blockSize'],_0x430db9=_0x1e16d9*0x4;_0x499542[_0x121fc2(0x3a6)]>_0x430db9&&(_0x499542=_0x4b9e51[_0x121fc2(0x36a)](_0x499542)),_0x499542['clamp']();for(var _0x4a2483=this[_0x121fc2(0x4a6)]=_0x499542['clone'](),_0x303fdb=this['_iKey']=_0x499542['clone'](),_0x1028bd=_0x4a2483[_0x121fc2(0x155)],_0x27b6a2=_0x303fdb[_0x121fc2(0x155)],_0x34ff0b=0x0;_0x34ff0b<_0x1e16d9;_0x34ff0b++)_0x1028bd[_0x34ff0b]^=0x5c5c5c5c,_0x27b6a2[_0x34ff0b]^=0x36363636;_0x4a2483[_0x121fc2(0x3a6)]=_0x303fdb[_0x121fc2(0x3a6)]=_0x430db9,this[_0x121fc2(0x149)]();},'reset':function(){const _0x1eee22=_0x580322;var _0x3f87bc=this[_0x1eee22(0x141)];_0x3f87bc['reset'](),_0x3f87bc['update'](this['_iKey']);},'update':function(_0x81d94b){const _0x2b5680=_0x580322;return this[_0x2b5680(0x141)][_0x2b5680(0x382)](_0x81d94b),this;},'finalize':function(_0x9ee063){const _0x203845=_0x580322;var _0x579b8f=this[_0x203845(0x141)],_0x464c23=_0x579b8f[_0x203845(0x36a)](_0x9ee063);_0x579b8f[_0x203845(0x149)]();var _0x3353d8=_0x579b8f[_0x203845(0x36a)](this[_0x203845(0x4a6)][_0x203845(0x1c6)]()['concat'](_0x464c23));return _0x3353d8;}});}());}));}(dt)),dt[_0x1bd0a8(0x5dd)];}var qt;function Dn(){const _0x2fb9c9=_0x4a9685;return qt||(qt=0x1,function(_0x5cafe9,_0x25d2fa){(function(_0x41a392,_0x15b5c4,_0xa984b3){_0x5cafe9['exports']=_0x15b5c4(oe(),cr(),lr());}(X,function(_0x3d94f9){const _0x3c1ea1=_0x5f2c;return(function(){const _0x184440=_0x5f2c;var _0x18a5c2=_0x3d94f9,_0x3bbd12=_0x18a5c2[_0x184440(0x18d)],_0x5d8954=_0x3bbd12['Base'],_0x3af7a8=_0x3bbd12['WordArray'],_0x27e6cd=_0x18a5c2[_0x184440(0x4bb)],_0xfbe86c=_0x27e6cd['MD5'],_0x4a2ba3=_0x27e6cd['EvpKDF']=_0x5d8954[_0x184440(0x3bb)]({'cfg':_0x5d8954['extend']({'keySize':0x80/0x20,'hasher':_0xfbe86c,'iterations':0x1}),'init':function(_0x4a53f4){const _0x4dcea1=_0x184440;this[_0x4dcea1(0x541)]=this['cfg'][_0x4dcea1(0x3bb)](_0x4a53f4);},'compute':function(_0x3b9615,_0x413107){const _0x4af8bf=_0x184440;for(var _0x392fb2,_0x5531a2=this[_0x4af8bf(0x541)],_0x4d35dc=_0x5531a2[_0x4af8bf(0x156)][_0x4af8bf(0x4c5)](),_0x49cd2d=_0x3af7a8[_0x4af8bf(0x4c5)](),_0x2ca635=_0x49cd2d[_0x4af8bf(0x155)],_0x1b6fc7=_0x5531a2[_0x4af8bf(0x3f1)],_0x38625c=_0x5531a2['iterations'];_0x2ca635['length']<_0x1b6fc7;){_0x392fb2&&_0x4d35dc[_0x4af8bf(0x382)](_0x392fb2),_0x392fb2=_0x4d35dc['update'](_0x3b9615)[_0x4af8bf(0x36a)](_0x413107),_0x4d35dc['reset']();for(var _0x562a15=0x1;_0x562a15<_0x38625c;_0x562a15++)_0x392fb2=_0x4d35dc[_0x4af8bf(0x36a)](_0x392fb2),_0x4d35dc['reset']();_0x49cd2d['concat'](_0x392fb2);}return _0x49cd2d[_0x4af8bf(0x3a6)]=_0x1b6fc7*0x4,_0x49cd2d;}});_0x18a5c2['EvpKDF']=function(_0x2f8266,_0x2d0e28,_0x36f4fd){const _0xe8ed72=_0x184440;return _0x4a2ba3[_0xe8ed72(0x4c5)](_0x36f4fd)['compute'](_0x2f8266,_0x2d0e28);};}()),_0x3d94f9[_0x3c1ea1(0x1a7)];}));}(_t)),_t[_0x2fb9c9(0x5dd)];}var ft={'exports':{}},zt;function wn(){const _0x282f53=_0x4a9685;return zt||(zt=0x1,function(_0x2f1f63,_0x232588){(function(_0x2e5627,_0x4f37a3,_0x4cf20b){const _0x222c24=_0x5f2c;_0x2f1f63[_0x222c24(0x5dd)]=_0x4f37a3(oe(),Dn());}(X,function(_0x73392e){const _0x546342=_0x5f2c;_0x73392e[_0x546342(0x18d)]['Cipher']||function(_0x2d756a){const _0x387a19=_0x546342;var _0x1e5b0a=_0x73392e,_0x380cc3=_0x1e5b0a[_0x387a19(0x18d)],_0x5aaf9b=_0x380cc3[_0x387a19(0x1bd)],_0x5caa13=_0x380cc3[_0x387a19(0x2bc)],_0x103b8a=_0x380cc3[_0x387a19(0x1ac)],_0x185711=_0x1e5b0a[_0x387a19(0x3e6)];_0x185711['Utf8'];var _0x4a505d=_0x185711['Base64'],_0x37672c=_0x1e5b0a['algo'],_0x3a7149=_0x37672c[_0x387a19(0x1a7)],_0x1379cf=_0x380cc3[_0x387a19(0x1df)]=_0x103b8a[_0x387a19(0x3bb)]({'cfg':_0x5aaf9b[_0x387a19(0x3bb)](),'createEncryptor':function(_0x5e83f6,_0x3ab844){const _0x31de89=_0x387a19;return this[_0x31de89(0x4c5)](this[_0x31de89(0x331)],_0x5e83f6,_0x3ab844);},'createDecryptor':function(_0x4910c3,_0x38926f){const _0x51f064=_0x387a19;return this['create'](this[_0x51f064(0x311)],_0x4910c3,_0x38926f);},'init':function(_0x34c37c,_0x373a68,_0x114dfc){const _0x50756f=_0x387a19;this['cfg']=this[_0x50756f(0x541)]['extend'](_0x114dfc),this[_0x50756f(0x302)]=_0x34c37c,this['_key']=_0x373a68,this[_0x50756f(0x149)]();},'reset':function(){const _0xb3f85a=_0x387a19;_0x103b8a[_0xb3f85a(0x149)][_0xb3f85a(0x20c)](this),this[_0xb3f85a(0x20f)]();},'process':function(_0x37bf17){const _0x713b42=_0x387a19;return this[_0x713b42(0x34b)](_0x37bf17),this[_0x713b42(0x380)]();},'finalize':function(_0x196006){const _0x461a41=_0x387a19;_0x196006&&this[_0x461a41(0x34b)](_0x196006);var _0x3d8434=this['_doFinalize']();return _0x3d8434;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x820f73(_0x21efd2){const _0x5f1a7b=_0x5f2c;return typeof _0x21efd2==_0x5f1a7b(0x3b2)?_0x2d31a6:_0x53b80d;}return function(_0xc60f01){return{'encrypt':function(_0xcfeb54,_0x4b239a,_0xf823fe){const _0x29fb61=_0x5f2c;return _0x820f73(_0x4b239a)[_0x29fb61(0x4e4)](_0xc60f01,_0xcfeb54,_0x4b239a,_0xf823fe);},'decrypt':function(_0x21ebf2,_0x46db9a,_0x3a71cb){return _0x820f73(_0x46db9a)['decrypt'](_0xc60f01,_0x21ebf2,_0x46db9a,_0x3a71cb);}};};}())});_0x380cc3[_0x387a19(0x4e3)]=_0x1379cf[_0x387a19(0x3bb)]({'_doFinalize':function(){const _0x2ae4e5=_0x387a19;var _0x404e27=this[_0x2ae4e5(0x380)](!0x0);return _0x404e27;},'blockSize':0x1});var _0x5e6787=_0x1e5b0a[_0x387a19(0x553)]={},_0x562035=_0x380cc3[_0x387a19(0x3ad)]=_0x5aaf9b['extend']({'createEncryptor':function(_0x2ebf42,_0x1fd59a){const _0x1f1c59=_0x387a19;return this[_0x1f1c59(0x35c)][_0x1f1c59(0x4c5)](_0x2ebf42,_0x1fd59a);},'createDecryptor':function(_0x711138,_0x384924){const _0x57e38e=_0x387a19;return this[_0x57e38e(0x1ee)][_0x57e38e(0x4c5)](_0x711138,_0x384924);},'init':function(_0x2fbf07,_0x83a969){const _0x2a4049=_0x387a19;this[_0x2a4049(0x1dc)]=_0x2fbf07,this[_0x2a4049(0x3d7)]=_0x83a969;}}),_0x44277=_0x5e6787[_0x387a19(0x21d)]=(function(){const _0x5cae72=_0x387a19;var _0x5deeea=_0x562035[_0x5cae72(0x3bb)]();_0x5deeea[_0x5cae72(0x35c)]=_0x5deeea[_0x5cae72(0x3bb)]({'processBlock':function(_0x340285,_0x5e78e4){const _0x4acdc9=_0x5cae72;var _0x159d2d=this[_0x4acdc9(0x1dc)],_0x400cbf=_0x159d2d[_0x4acdc9(0x502)];_0x1c3b25[_0x4acdc9(0x20c)](this,_0x340285,_0x5e78e4,_0x400cbf),_0x159d2d[_0x4acdc9(0x2f5)](_0x340285,_0x5e78e4),this[_0x4acdc9(0x561)]=_0x340285[_0x4acdc9(0x2f2)](_0x5e78e4,_0x5e78e4+_0x400cbf);}}),_0x5deeea[_0x5cae72(0x1ee)]=_0x5deeea[_0x5cae72(0x3bb)]({'processBlock':function(_0x4e5f09,_0xae41a6){const _0x413442=_0x5cae72;var _0x25bd34=this[_0x413442(0x1dc)],_0x1d080f=_0x25bd34['blockSize'],_0x3086df=_0x4e5f09['slice'](_0xae41a6,_0xae41a6+_0x1d080f);_0x25bd34[_0x413442(0x40b)](_0x4e5f09,_0xae41a6),_0x1c3b25[_0x413442(0x20c)](this,_0x4e5f09,_0xae41a6,_0x1d080f),this['_prevBlock']=_0x3086df;}});function _0x1c3b25(_0x4e464d,_0x85ea5c,_0x44cd40){const _0x25424e=_0x5cae72;var _0x1c9f2e,_0x4968a4=this[_0x25424e(0x3d7)];_0x4968a4?(_0x1c9f2e=_0x4968a4,this[_0x25424e(0x3d7)]=_0x2d756a):_0x1c9f2e=this[_0x25424e(0x561)];for(var _0x50cb1f=0x0;_0x50cb1f<_0x44cd40;_0x50cb1f++)_0x4e464d[_0x85ea5c+_0x50cb1f]^=_0x1c9f2e[_0x50cb1f];}return _0x5deeea;}()),_0x5eb087=_0x1e5b0a[_0x387a19(0x5b1)]={},_0x57ea9f=_0x5eb087['Pkcs7']={'pad':function(_0x179095,_0x2a3259){const _0x60c97f=_0x387a19;for(var _0x2db20f=_0x2a3259*0x4,_0xe3ece9=_0x2db20f-_0x179095[_0x60c97f(0x3a6)]%_0x2db20f,_0x2005bf=_0xe3ece9<<0x18|_0xe3ece9<<0x10|_0xe3ece9<<0x8|_0xe3ece9,_0x242dd2=[],_0x2c55bd=0x0;_0x2c55bd<_0xe3ece9;_0x2c55bd+=0x4)_0x242dd2['push'](_0x2005bf);var _0x2d4645=_0x5caa13[_0x60c97f(0x4c5)](_0x242dd2,_0xe3ece9);_0x179095[_0x60c97f(0x407)](_0x2d4645);},'unpad':function(_0x34300b){const _0x231f2d=_0x387a19;var _0x353e04=_0x34300b[_0x231f2d(0x155)][_0x34300b['sigBytes']-0x1>>>0x2]&0xff;_0x34300b[_0x231f2d(0x3a6)]-=_0x353e04;}};_0x380cc3[_0x387a19(0x37f)]=_0x1379cf[_0x387a19(0x3bb)]({'cfg':_0x1379cf[_0x387a19(0x541)][_0x387a19(0x3bb)]({'mode':_0x44277,'padding':_0x57ea9f}),'reset':function(){const _0x336508=_0x387a19;var _0x227447;_0x1379cf['reset'][_0x336508(0x20c)](this);var _0x40effa=this[_0x336508(0x541)],_0x403706=_0x40effa['iv'],_0x43d2e5=_0x40effa[_0x336508(0x553)];this['_xformMode']==this[_0x336508(0x331)]?_0x227447=_0x43d2e5[_0x336508(0x50c)]:(_0x227447=_0x43d2e5[_0x336508(0x455)],this['_minBufferSize']=0x1),this[_0x336508(0x3db)]&&this[_0x336508(0x3db)]['__creator']==_0x227447?this[_0x336508(0x3db)][_0x336508(0x432)](this,_0x403706&&_0x403706['words']):(this['_mode']=_0x227447[_0x336508(0x20c)](_0x43d2e5,this,_0x403706&&_0x403706[_0x336508(0x155)]),this[_0x336508(0x3db)][_0x336508(0x412)]=_0x227447);},'_doProcessBlock':function(_0x1649cc,_0x1f326f){const _0xe8cb6b=_0x387a19;this['_mode'][_0xe8cb6b(0x49d)](_0x1649cc,_0x1f326f);},'_doFinalize':function(){const _0x21cd2e=_0x387a19;var _0x5ad09b,_0x4d439a=this[_0x21cd2e(0x541)][_0x21cd2e(0x22e)];return this[_0x21cd2e(0x302)]==this['_ENC_XFORM_MODE']?(_0x4d439a['pad'](this['_data'],this[_0x21cd2e(0x502)]),_0x5ad09b=this[_0x21cd2e(0x380)](!0x0)):(_0x5ad09b=this[_0x21cd2e(0x380)](!0x0),_0x4d439a['unpad'](_0x5ad09b)),_0x5ad09b;},'blockSize':0x80/0x20});var _0x3d67d5=_0x380cc3[_0x387a19(0x37d)]=_0x5aaf9b['extend']({'init':function(_0x447257){const _0x245950=_0x387a19;this[_0x245950(0x57f)](_0x447257);},'toString':function(_0x449218){const _0x1e5111=_0x387a19;return(_0x449218||this[_0x1e5111(0x5b7)])[_0x1e5111(0x2d1)](this);}}),_0x2ead2e=_0x1e5b0a[_0x387a19(0x2be)]={},_0x3ea591=_0x2ead2e[_0x387a19(0x21c)]={'stringify':function(_0x1b0473){const _0x4846e2=_0x387a19;var _0x4c1dd1,_0x12f063=_0x1b0473[_0x4846e2(0x591)],_0x2c6f9f=_0x1b0473[_0x4846e2(0x5f5)];return _0x2c6f9f?_0x4c1dd1=_0x5caa13['create']([0x53616c74,0x65645f5f])['concat'](_0x2c6f9f)['concat'](_0x12f063):_0x4c1dd1=_0x12f063,_0x4c1dd1['toString'](_0x4a505d);},'parse':function(_0x97b230){const _0x243fda=_0x387a19;var _0x39c6d9,_0x2f41e9=_0x4a505d[_0x243fda(0x2af)](_0x97b230),_0x5bd4f5=_0x2f41e9[_0x243fda(0x155)];return _0x5bd4f5[0x0]==0x53616c74&&_0x5bd4f5[0x1]==0x65645f5f&&(_0x39c6d9=_0x5caa13['create'](_0x5bd4f5[_0x243fda(0x2f2)](0x2,0x4)),_0x5bd4f5[_0x243fda(0x1e2)](0x0,0x4),_0x2f41e9['sigBytes']-=0x10),_0x3d67d5[_0x243fda(0x4c5)]({'ciphertext':_0x2f41e9,'salt':_0x39c6d9});}},_0x53b80d=_0x380cc3[_0x387a19(0x39d)]=_0x5aaf9b[_0x387a19(0x3bb)]({'cfg':_0x5aaf9b['extend']({'format':_0x3ea591}),'encrypt':function(_0x4ab7df,_0x36f219,_0x2d52bc,_0xeb0a0){const _0x2d30cf=_0x387a19;_0xeb0a0=this[_0x2d30cf(0x541)][_0x2d30cf(0x3bb)](_0xeb0a0);var _0x2405e9=_0x4ab7df[_0x2d30cf(0x50c)](_0x2d52bc,_0xeb0a0),_0x421ebc=_0x2405e9['finalize'](_0x36f219),_0x523dd9=_0x2405e9[_0x2d30cf(0x541)];return _0x3d67d5[_0x2d30cf(0x4c5)]({'ciphertext':_0x421ebc,'key':_0x2d52bc,'iv':_0x523dd9['iv'],'algorithm':_0x4ab7df,'mode':_0x523dd9[_0x2d30cf(0x553)],'padding':_0x523dd9['padding'],'blockSize':_0x4ab7df['blockSize'],'formatter':_0xeb0a0[_0x2d30cf(0x2be)]});},'decrypt':function(_0x28a459,_0x8f64f2,_0x5cfcb9,_0x583e5e){const _0x415481=_0x387a19;_0x583e5e=this[_0x415481(0x541)]['extend'](_0x583e5e),_0x8f64f2=this['_parse'](_0x8f64f2,_0x583e5e['format']);var _0x34cfad=_0x28a459[_0x415481(0x455)](_0x5cfcb9,_0x583e5e)['finalize'](_0x8f64f2['ciphertext']);return _0x34cfad;},'_parse':function(_0x381be1,_0x38db67){const _0x259f86=_0x387a19;return typeof _0x381be1==_0x259f86(0x3b2)?_0x38db67[_0x259f86(0x2af)](_0x381be1,this):_0x381be1;}}),_0x51f750=_0x1e5b0a['kdf']={},_0x56f262=_0x51f750['OpenSSL']={'execute':function(_0x31c94f,_0x764ccb,_0x4a7922,_0xddb030,_0x3cbacf){const _0x52bb18=_0x387a19;if(_0xddb030||(_0xddb030=_0x5caa13[_0x52bb18(0x588)](0x40/0x8)),_0x3cbacf)var _0x217cee=_0x3a7149[_0x52bb18(0x4c5)]({'keySize':_0x764ccb+_0x4a7922,'hasher':_0x3cbacf})[_0x52bb18(0x192)](_0x31c94f,_0xddb030);else var _0x217cee=_0x3a7149['create']({'keySize':_0x764ccb+_0x4a7922})[_0x52bb18(0x192)](_0x31c94f,_0xddb030);var _0x5ebb0c=_0x5caa13[_0x52bb18(0x4c5)](_0x217cee[_0x52bb18(0x155)][_0x52bb18(0x2f2)](_0x764ccb),_0x4a7922*0x4);return _0x217cee[_0x52bb18(0x3a6)]=_0x764ccb*0x4,_0x3d67d5[_0x52bb18(0x4c5)]({'key':_0x217cee,'iv':_0x5ebb0c,'salt':_0xddb030});}},_0x2d31a6=_0x380cc3[_0x387a19(0x507)]=_0x53b80d[_0x387a19(0x3bb)]({'cfg':_0x53b80d[_0x387a19(0x541)][_0x387a19(0x3bb)]({'kdf':_0x56f262}),'encrypt':function(_0x36b88a,_0x309e0c,_0x4fad00,_0x140c7b){const _0x33adbb=_0x387a19;_0x140c7b=this[_0x33adbb(0x541)][_0x33adbb(0x3bb)](_0x140c7b);var _0x31053a=_0x140c7b['kdf'][_0x33adbb(0x39a)](_0x4fad00,_0x36b88a[_0x33adbb(0x3f1)],_0x36b88a[_0x33adbb(0x313)],_0x140c7b[_0x33adbb(0x5f5)],_0x140c7b[_0x33adbb(0x156)]);_0x140c7b['iv']=_0x31053a['iv'];var _0x6220da=_0x53b80d['encrypt'][_0x33adbb(0x20c)](this,_0x36b88a,_0x309e0c,_0x31053a[_0x33adbb(0x303)],_0x140c7b);return _0x6220da['mixIn'](_0x31053a),_0x6220da;},'decrypt':function(_0x3c8bc0,_0xd0ac71,_0x2c3721,_0x46a4f1){const _0x23467c=_0x387a19;_0x46a4f1=this['cfg']['extend'](_0x46a4f1),_0xd0ac71=this[_0x23467c(0x4d5)](_0xd0ac71,_0x46a4f1[_0x23467c(0x2be)]);var _0x52ccd1=_0x46a4f1[_0x23467c(0x4dc)]['execute'](_0x2c3721,_0x3c8bc0[_0x23467c(0x3f1)],_0x3c8bc0[_0x23467c(0x313)],_0xd0ac71[_0x23467c(0x5f5)],_0x46a4f1['hasher']);_0x46a4f1['iv']=_0x52ccd1['iv'];var _0x1f1d18=_0x53b80d[_0x23467c(0x4cb)][_0x23467c(0x20c)](this,_0x3c8bc0,_0xd0ac71,_0x52ccd1[_0x23467c(0x303)],_0x46a4f1);return _0x1f1d18;}});}();}));}(ft)),ft[_0x282f53(0x5dd)];}(function(_0x5a3f30,_0x1167c5){(function(_0x5a02c5,_0x506710,_0x1ad8ea){_0x5a3f30['exports']=_0x506710(oe(),On(),ar(),Dn(),wn());}(X,function(_0x37537c){const _0x46a34e=_0x5f2c;return(function(){const _0x4e1ef1=_0x5f2c;var _0x16ee4a=_0x37537c,_0x167850=_0x16ee4a[_0x4e1ef1(0x18d)],_0x5296df=_0x167850[_0x4e1ef1(0x37f)],_0x57f608=_0x16ee4a[_0x4e1ef1(0x4bb)],_0xbf0193=[],_0x43e1ea=[],_0x3c3462=[],_0x213f3c=[],_0x5b8696=[],_0x5089b1=[],_0x955351=[],_0x188899=[],_0x55e119=[],_0x21cc1a=[];(function(){for(var _0x10247c=[],_0x3e6359=0x0;_0x3e6359<0x100;_0x3e6359++)_0x3e6359<0x80?_0x10247c[_0x3e6359]=_0x3e6359<<0x1:_0x10247c[_0x3e6359]=_0x3e6359<<0x1^0x11b;for(var _0x5be012=0x0,_0x3554d7=0x0,_0x3e6359=0x0;_0x3e6359<0x100;_0x3e6359++){var _0x1629fc=_0x3554d7^_0x3554d7<<0x1^_0x3554d7<<0x2^_0x3554d7<<0x3^_0x3554d7<<0x4;_0x1629fc=_0x1629fc>>>0x8^_0x1629fc&0xff^0x63,_0xbf0193[_0x5be012]=_0x1629fc,_0x43e1ea[_0x1629fc]=_0x5be012;var _0x359d71=_0x10247c[_0x5be012],_0x362857=_0x10247c[_0x359d71],_0x2352f1=_0x10247c[_0x362857],_0x5c4371=_0x10247c[_0x1629fc]*0x101^_0x1629fc*0x1010100;_0x3c3462[_0x5be012]=_0x5c4371<<0x18|_0x5c4371>>>0x8,_0x213f3c[_0x5be012]=_0x5c4371<<0x10|_0x5c4371>>>0x10,_0x5b8696[_0x5be012]=_0x5c4371<<0x8|_0x5c4371>>>0x18,_0x5089b1[_0x5be012]=_0x5c4371;var _0x5c4371=_0x2352f1*0x1010101^_0x362857*0x10001^_0x359d71*0x101^_0x5be012*0x1010100;_0x955351[_0x1629fc]=_0x5c4371<<0x18|_0x5c4371>>>0x8,_0x188899[_0x1629fc]=_0x5c4371<<0x10|_0x5c4371>>>0x10,_0x55e119[_0x1629fc]=_0x5c4371<<0x8|_0x5c4371>>>0x18,_0x21cc1a[_0x1629fc]=_0x5c4371,_0x5be012?(_0x5be012=_0x359d71^_0x10247c[_0x10247c[_0x10247c[_0x2352f1^_0x359d71]]],_0x3554d7^=_0x10247c[_0x10247c[_0x3554d7]]):_0x5be012=_0x3554d7=0x1;}}());var _0x1ccca5=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x111a5a=_0x57f608[_0x4e1ef1(0x222)]=_0x5296df[_0x4e1ef1(0x3bb)]({'_doReset':function(){const _0x39e372=_0x4e1ef1;var _0x3daa8f;if(!(this[_0x39e372(0x49f)]&&this[_0x39e372(0x5c0)]===this[_0x39e372(0x51a)])){for(var _0x5078a8=this[_0x39e372(0x5c0)]=this[_0x39e372(0x51a)],_0x306367=_0x5078a8[_0x39e372(0x155)],_0x246d47=_0x5078a8[_0x39e372(0x3a6)]/0x4,_0x415c2f=this[_0x39e372(0x49f)]=_0x246d47+0x6,_0x5dc488=(_0x415c2f+0x1)*0x4,_0x416a3a=this[_0x39e372(0x309)]=[],_0x52a99c=0x0;_0x52a99c<_0x5dc488;_0x52a99c++)_0x52a99c<_0x246d47?_0x416a3a[_0x52a99c]=_0x306367[_0x52a99c]:(_0x3daa8f=_0x416a3a[_0x52a99c-0x1],_0x52a99c%_0x246d47?_0x246d47>0x6&&_0x52a99c%_0x246d47==0x4&&(_0x3daa8f=_0xbf0193[_0x3daa8f>>>0x18]<<0x18|_0xbf0193[_0x3daa8f>>>0x10&0xff]<<0x10|_0xbf0193[_0x3daa8f>>>0x8&0xff]<<0x8|_0xbf0193[_0x3daa8f&0xff]):(_0x3daa8f=_0x3daa8f<<0x8|_0x3daa8f>>>0x18,_0x3daa8f=_0xbf0193[_0x3daa8f>>>0x18]<<0x18|_0xbf0193[_0x3daa8f>>>0x10&0xff]<<0x10|_0xbf0193[_0x3daa8f>>>0x8&0xff]<<0x8|_0xbf0193[_0x3daa8f&0xff],_0x3daa8f^=_0x1ccca5[_0x52a99c/_0x246d47|0x0]<<0x18),_0x416a3a[_0x52a99c]=_0x416a3a[_0x52a99c-_0x246d47]^_0x3daa8f);for(var _0x289239=this[_0x39e372(0x54e)]=[],_0x2191e7=0x0;_0x2191e7<_0x5dc488;_0x2191e7++){var _0x52a99c=_0x5dc488-_0x2191e7;if(_0x2191e7%0x4)var _0x3daa8f=_0x416a3a[_0x52a99c];else var _0x3daa8f=_0x416a3a[_0x52a99c-0x4];_0x2191e7<0x4||_0x52a99c<=0x4?_0x289239[_0x2191e7]=_0x3daa8f:_0x289239[_0x2191e7]=_0x955351[_0xbf0193[_0x3daa8f>>>0x18]]^_0x188899[_0xbf0193[_0x3daa8f>>>0x10&0xff]]^_0x55e119[_0xbf0193[_0x3daa8f>>>0x8&0xff]]^_0x21cc1a[_0xbf0193[_0x3daa8f&0xff]];}}},'encryptBlock':function(_0x282e71,_0x5c55f5){const _0x1d40a1=_0x4e1ef1;this[_0x1d40a1(0x476)](_0x282e71,_0x5c55f5,this[_0x1d40a1(0x309)],_0x3c3462,_0x213f3c,_0x5b8696,_0x5089b1,_0xbf0193);},'decryptBlock':function(_0x8978ec,_0x448843){const _0x560c9e=_0x4e1ef1;var _0x2ffb3b=_0x8978ec[_0x448843+0x1];_0x8978ec[_0x448843+0x1]=_0x8978ec[_0x448843+0x3],_0x8978ec[_0x448843+0x3]=_0x2ffb3b,this[_0x560c9e(0x476)](_0x8978ec,_0x448843,this[_0x560c9e(0x54e)],_0x955351,_0x188899,_0x55e119,_0x21cc1a,_0x43e1ea);var _0x2ffb3b=_0x8978ec[_0x448843+0x1];_0x8978ec[_0x448843+0x1]=_0x8978ec[_0x448843+0x3],_0x8978ec[_0x448843+0x3]=_0x2ffb3b;},'_doCryptBlock':function(_0x224260,_0x5ce112,_0x4e2bb8,_0x4cae06,_0x2cccb2,_0x5a99f2,_0x570f8e,_0x5e310b){const _0x350903=_0x4e1ef1;for(var _0x37b8ac=this[_0x350903(0x49f)],_0x2292f8=_0x224260[_0x5ce112]^_0x4e2bb8[0x0],_0x387970=_0x224260[_0x5ce112+0x1]^_0x4e2bb8[0x1],_0x257a5e=_0x224260[_0x5ce112+0x2]^_0x4e2bb8[0x2],_0x197fb=_0x224260[_0x5ce112+0x3]^_0x4e2bb8[0x3],_0x5f2a66=0x4,_0x204b67=0x1;_0x204b67<_0x37b8ac;_0x204b67++){var _0x5a02bc=_0x4cae06[_0x2292f8>>>0x18]^_0x2cccb2[_0x387970>>>0x10&0xff]^_0x5a99f2[_0x257a5e>>>0x8&0xff]^_0x570f8e[_0x197fb&0xff]^_0x4e2bb8[_0x5f2a66++],_0x3fb048=_0x4cae06[_0x387970>>>0x18]^_0x2cccb2[_0x257a5e>>>0x10&0xff]^_0x5a99f2[_0x197fb>>>0x8&0xff]^_0x570f8e[_0x2292f8&0xff]^_0x4e2bb8[_0x5f2a66++],_0x3f8267=_0x4cae06[_0x257a5e>>>0x18]^_0x2cccb2[_0x197fb>>>0x10&0xff]^_0x5a99f2[_0x2292f8>>>0x8&0xff]^_0x570f8e[_0x387970&0xff]^_0x4e2bb8[_0x5f2a66++],_0x1a4ca5=_0x4cae06[_0x197fb>>>0x18]^_0x2cccb2[_0x2292f8>>>0x10&0xff]^_0x5a99f2[_0x387970>>>0x8&0xff]^_0x570f8e[_0x257a5e&0xff]^_0x4e2bb8[_0x5f2a66++];_0x2292f8=_0x5a02bc,_0x387970=_0x3fb048,_0x257a5e=_0x3f8267,_0x197fb=_0x1a4ca5;}var _0x5a02bc=(_0x5e310b[_0x2292f8>>>0x18]<<0x18|_0x5e310b[_0x387970>>>0x10&0xff]<<0x10|_0x5e310b[_0x257a5e>>>0x8&0xff]<<0x8|_0x5e310b[_0x197fb&0xff])^_0x4e2bb8[_0x5f2a66++],_0x3fb048=(_0x5e310b[_0x387970>>>0x18]<<0x18|_0x5e310b[_0x257a5e>>>0x10&0xff]<<0x10|_0x5e310b[_0x197fb>>>0x8&0xff]<<0x8|_0x5e310b[_0x2292f8&0xff])^_0x4e2bb8[_0x5f2a66++],_0x3f8267=(_0x5e310b[_0x257a5e>>>0x18]<<0x18|_0x5e310b[_0x197fb>>>0x10&0xff]<<0x10|_0x5e310b[_0x2292f8>>>0x8&0xff]<<0x8|_0x5e310b[_0x387970&0xff])^_0x4e2bb8[_0x5f2a66++],_0x1a4ca5=(_0x5e310b[_0x197fb>>>0x18]<<0x18|_0x5e310b[_0x2292f8>>>0x10&0xff]<<0x10|_0x5e310b[_0x387970>>>0x8&0xff]<<0x8|_0x5e310b[_0x257a5e&0xff])^_0x4e2bb8[_0x5f2a66++];_0x224260[_0x5ce112]=_0x5a02bc,_0x224260[_0x5ce112+0x1]=_0x3fb048,_0x224260[_0x5ce112+0x2]=_0x3f8267,_0x224260[_0x5ce112+0x3]=_0x1a4ca5;},'keySize':0x100/0x20});_0x16ee4a[_0x4e1ef1(0x222)]=_0x5296df['_createHelper'](_0x111a5a);}()),_0x37537c[_0x46a34e(0x222)];}));}(yn));var hr=yn[_0x4a9685(0x5dd)];const _r=xe(hr);var ur=On();const Xt=xe(ur);var Pn={'exports':{}};(function(_0x58973c,_0x1e0edd){(function(_0x507c9e,_0x261515){const _0xeaa695=_0x5f2c;_0x58973c[_0xeaa695(0x5dd)]=_0x261515(oe());}(X,function(_0x54f5e4){const _0x11abe7=_0x5f2c;return _0x54f5e4[_0x11abe7(0x3e6)][_0x11abe7(0x289)];}));}(Pn));var dr=Pn['exports'];const fr=xe(dr);var Un={'exports':{}};(function(_0x311bb0,_0x1ab2e7){(function(_0x4856e3,_0x15094b){const _0x5df7ef=_0x5f2c;_0x311bb0[_0x5df7ef(0x5dd)]=_0x15094b(oe());}(X,function(_0x26467e){const _0x22d87f=_0x5f2c;return(function(){const _0x4b47b8=_0x5f2c;if(typeof ArrayBuffer=='function'){var _0x2638b8=_0x26467e,_0x4796e0=_0x2638b8[_0x4b47b8(0x18d)],_0x1eae6b=_0x4796e0[_0x4b47b8(0x2bc)],_0x1e136e=_0x1eae6b[_0x4b47b8(0x432)],_0x457ea4=_0x1eae6b[_0x4b47b8(0x432)]=function(_0x95e098){const _0xca9a8f=_0x4b47b8;if(_0x95e098 instanceof ArrayBuffer&&(_0x95e098=new Uint8Array(_0x95e098)),(_0x95e098 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0x95e098 instanceof Uint8ClampedArray||_0x95e098 instanceof Int16Array||_0x95e098 instanceof Uint16Array||_0x95e098 instanceof Int32Array||_0x95e098 instanceof Uint32Array||_0x95e098 instanceof Float32Array||_0x95e098 instanceof Float64Array)&&(_0x95e098=new Uint8Array(_0x95e098[_0xca9a8f(0x13b)],_0x95e098['byteOffset'],_0x95e098[_0xca9a8f(0x13c)])),_0x95e098 instanceof Uint8Array){for(var _0x657b9c=_0x95e098['byteLength'],_0x1e3024=[],_0x632d65=0x0;_0x632d65<_0x657b9c;_0x632d65++)_0x1e3024[_0x632d65>>>0x2]|=_0x95e098[_0x632d65]<<0x18-_0x632d65%0x4*0x8;_0x1e136e[_0xca9a8f(0x20c)](this,_0x1e3024,_0x657b9c);}else _0x1e136e['apply'](this,arguments);};_0x457ea4['prototype']=_0x1eae6b;}}()),_0x26467e[_0x22d87f(0x18d)][_0x22d87f(0x2bc)];}));}(Un));var vr=Un['exports'];const mr=xe(vr);var Mn={'exports':{}};(function(_0x4ec7fe,_0x5974ad){(function(_0x5e0510,_0x39c3fe,_0x232ac0){const _0x1339cd=_0x5f2c;_0x4ec7fe[_0x1339cd(0x5dd)]=_0x39c3fe(oe(),wn());}(X,function(_0x4175cd){const _0x1a7460=_0x5f2c;return _0x4175cd[_0x1a7460(0x5b1)][_0x1a7460(0x207)]={'pad':function(){},'unpad':function(){}},_0x4175cd['pad']['NoPadding'];}));}(Mn));var Sr=Mn[_0x4a9685(0x5dd)];const pr=xe(Sr);function gr(_0x86df85,_0x38e9c1){const _0x2c97ba=_0x38e9c1-_0x86df85['length']%_0x38e9c1,_0x1be686=String['fromCharCode'](_0x2c97ba)['repeat'](_0x2c97ba);return _0x86df85+_0x1be686;}function Ir(_0x1b7773,_0x439ab5){const _0x40bb61=_0x4a9685,_0x5504db=mr[_0x40bb61(0x588)](0x10),_0x368e96=gr(_0x1b7773,0x10),_0x182b66=_r[_0x40bb61(0x4e4)](fr['parse'](_0x368e96),Xt[_0x40bb61(0x2af)](_0x439ab5),{'iv':_0x5504db,'padding':pr});return _0x5504db[_0x40bb61(0x407)](_0x182b66[_0x40bb61(0x591)])[_0x40bb61(0x350)](Xt);}function Cr(){const _0x134731=_0x4a9685,_0x45185d=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)['__Key__'];if(_0x45185d){const _0x4b8b35={'time':Math[_0x134731(0x1d0)](Date[_0x134731(0x358)]()/0x3e8),'domain':location['hostname']};return Ir(JSON['stringify'](_0x4b8b35),_0x45185d);}}var Er=Object[_0x4a9685(0x377)],br=Object[_0x4a9685(0x484)],Tr=(_0x468aa6,_0x3b200d,_0x4d6925,_0x1816e9)=>{const _0x3fa23a=_0x4a9685;for(var _0x593e4d=_0x1816e9>0x1?void 0x0:_0x1816e9?br(_0x3b200d,_0x4d6925):_0x3b200d,_0x34aed7=_0x468aa6[_0x3fa23a(0x530)]-0x1,_0x3a761b;_0x34aed7>=0x0;_0x34aed7--)(_0x3a761b=_0x468aa6[_0x34aed7])&&(_0x593e4d=(_0x1816e9?_0x3a761b(_0x3b200d,_0x4d6925,_0x593e4d):_0x3a761b(_0x593e4d))||_0x593e4d);return _0x1816e9&&_0x593e4d&&Er(_0x3b200d,_0x4d6925,_0x593e4d),_0x593e4d;},Rr=(_0x242e69,_0x164c76)=>(_0x4d1b8e,_0x20a1f9)=>_0x164c76(_0x4d1b8e,_0x20a1f9,_0x242e69);let Ye=class{constructor(_0x31e286){const _0x529b4d=_0x4a9685;this[_0x529b4d(0x213)]=_0x31e286,this[_0x529b4d(0x5cd)]();}[_0x4a9685(0x5cd)](){const _0x13001f=_0x4a9685;this[_0x13001f(0x213)]['registerHTTPInterceptor']({'interceptor':(_0x3a191e,_0x4c6aa9)=>{const _0x902fe6=_0x13001f,_0x59ac38=_0x3a191e[_0x902fe6(0x259)],_0x599423=Cr();return _0x599423&&_0x59ac38['set'](_0x902fe6(0x1be),_0x599423),_0x4c6aa9(_0x3a191e);}});}};Ye=Tr([Rr(0x0,a['Inject'](Z[_0x4a9685(0x2db)]))],Ye);var yr=Object['defineProperty'],Or=Object[_0x4a9685(0x484)],Dr=(_0x36e3e9,_0x22c4b1,_0xf98bc7,_0x384612)=>{const _0x3e2029=_0x4a9685;for(var _0x37fa40=_0x384612>0x1?void 0x0:_0x384612?Or(_0x22c4b1,_0xf98bc7):_0x22c4b1,_0x80b23b=_0x36e3e9[_0x3e2029(0x530)]-0x1,_0x598e0f;_0x80b23b>=0x0;_0x80b23b--)(_0x598e0f=_0x36e3e9[_0x80b23b])&&(_0x37fa40=(_0x384612?_0x598e0f(_0x22c4b1,_0xf98bc7,_0x37fa40):_0x598e0f(_0x37fa40))||_0x37fa40);return _0x384612&&_0x37fa40&&yr(_0x22c4b1,_0xf98bc7,_0x37fa40),_0x37fa40;},vt=(_0x4719fa,_0x42d62e)=>(_0x1ed653,_0xa0f7fa)=>_0x42d62e(_0x1ed653,_0xa0f7fa,_0x4719fa);const wr=[_0x4a9685(0x210),_0x4a9685(0x352),_0x4a9685(0x3eb),_0x4a9685(0x290),_0x4a9685(0x4b9)],Pr=0x5*0x400*0x400,Ur=_0x4a9685(0x2ab),Mr=_0x4a9685(0x43e),Ar='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Nr=_0x4a9685(0x22f);exports[_0x4a9685(0x50d)]=class{constructor(_0x53cadf,_0x337cc3,_0x724ac9){const _0x4e6596=_0x4a9685;I(this,_0x4e6596(0x3ab),0x0),I(this,_0x4e6596(0x4c4),new A[(_0x4e6596(0x4c3))]()),I(this,_0x4e6596(0x493),this[_0x4e6596(0x4c4)]),I(this,_0x4e6596(0x560),new Map()),(this[_0x4e6596(0x213)]=_0x53cadf,this[_0x4e6596(0x294)]=_0x337cc3,this[_0x4e6596(0x54a)]=_0x724ac9);}[_0x4a9685(0x5da)](_0xf074f6){const _0xd9c6e3=_0x4a9685;this[_0xd9c6e3(0x3ab)]=_0xf074f6,this[_0xd9c6e3(0x4c4)][_0xd9c6e3(0x503)](_0xf074f6);}['getImageSourceCache'](_0x8d0f33,_0x42660b){const _0x321eff=_0x4a9685;if(_0x42660b===ne['ImageSourceType'][_0x321eff(0x318)]){const _0x2ef708=new Image();return _0x2ef708[_0x321eff(0x4cc)]=_0x8d0f33,_0x2ef708;}return this[_0x321eff(0x560)][_0x321eff(0x542)](_0x8d0f33);}[_0x4a9685(0x14b)](_0x339205,_0x21f9c1,_0x5ee63b){const _0x40f23a=_0x4a9685;_0x21f9c1===ne['ImageSourceType'][_0x40f23a(0x318)]||_0x5ee63b==null||this['_imageSourceCache'][_0x40f23a(0x568)](_0x339205,_0x5ee63b);}async['getImage'](_0x47c6ab){const _0x338de7=_0x4a9685;try{const _0x45663e=this[_0x338de7(0x1db)](this[_0x338de7(0x410)](),''+_0x47c6ab),_0x19699a=(await this[_0x338de7(0x213)][_0x338de7(0x542)](_0x45663e))['body'];if(_0x19699a[_0x338de7(0x3d8)]&&_0x19699a[_0x338de7(0x3d8)]['code']===cn['OK']){const _0x357d89=new URL(_0x19699a[_0x338de7(0x465)],this['_getDownloadEndpointURL']())[_0x338de7(0x350)]();return Promise['resolve'](_0x357d89);}return Promise['reject'](_0x19699a[_0x338de7(0x3d8)]);}catch(_0x24eebc){return Promise[_0x338de7(0x362)](_0x24eebc);}}async[_0x4a9685(0x35e)](_0x278a35){const _0x2e3a56=_0x4a9685;let _0x3e1b5d='';if(!wr['includes'](_0x278a35[_0x2e3a56(0x3e4)]))return this['_decreaseWaiting'](),Promise[_0x2e3a56(0x362)](new Error(ne[_0x2e3a56(0x26a)]['ERROR_IMAGE_TYPE']));if(_0x278a35['size']>Pr)return this['_decreaseWaiting'](),Promise[_0x2e3a56(0x362)](new Error(ne[_0x2e3a56(0x26a)]['ERROR_EXCEED_SIZE']));try{const _0x671dfa=new FormData();_0x671dfa[_0x2e3a56(0x540)](_0x2e3a56(0x21f),_0x278a35);const _0x27f4b1=this[_0x2e3a56(0x54a)][_0x2e3a56(0x2dd)](),_0x1c993e=_0x27f4b1==null?void 0x0:_0x27f4b1[_0x2e3a56(0x56f)]();if(!_0x1c993e)throw new Error(_0x2e3a56(0x344));const _0x4d859f=this[_0x2e3a56(0x291)]()+'?size='+_0x278a35[_0x2e3a56(0x2d6)][_0x2e3a56(0x350)]()+'&source='+ln[_0x2e3a56(0x3d4)]+_0x2e3a56(0x17f)+encodeURIComponent(_0x1c993e),_0xa75243=await(await fetch(_0x4d859f,{'method':_0x2e3a56(0x431),'body':_0x671dfa}))[_0x2e3a56(0x2e6)]();if(typeof _0xa75243[_0x2e3a56(0x53e)]!='string')return this[_0x2e3a56(0x175)](),Promise['reject'](new Error(ne['ImageUploadStatusType'][_0x2e3a56(0x13f)]));_0x3e1b5d=_0xa75243[_0x2e3a56(0x53e)];}catch{return this[_0x2e3a56(0x175)](),Promise[_0x2e3a56(0x362)](new Error(ne['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0xd221f5,_0x2ee23c)=>{const _0x445ae4=_0x2e3a56,_0x41719f=new FileReader();_0x41719f['readAsDataURL'](_0x278a35),_0x41719f[_0x445ae4(0x4ef)]=_0x2e7ce3=>{const _0x296469=_0x445ae4;var _0x45f0dd;const _0x544327=(_0x45f0dd=_0x2e7ce3[_0x296469(0x41f)])==null?void 0x0:_0x45f0dd['result'];if(_0x544327==null){this[_0x296469(0x175)](),_0x2ee23c(new Error(ne[_0x296469(0x26a)][_0x296469(0x13f)]));return;}const _0x36d5b7=a[_0x296469(0x426)][_0x296469(0x32e)](0x6);_0xd221f5({'imageId':_0x36d5b7,'imageSourceType':ne[_0x296469(0x1a2)][_0x296469(0x58d)],'source':_0x3e1b5d,'base64Cache':_0x544327,'status':ne['ImageUploadStatusType']['SUCCUSS']}),this[_0x296469(0x175)]();};});}[_0x4a9685(0x291)](){const _0xa16b5f=_0x4a9685;var _0x5542f2,_0x4054d7;const _0x4382aa=this[_0xa16b5f(0x294)][_0xa16b5f(0x4a1)](Ur),_0x31b30a=this['_configService'][_0xa16b5f(0x4a1)](te);return(_0x4054d7=(_0x5542f2=_0x31b30a==null?void 0x0:_0x31b30a[_0xa16b5f(0x54c)])!=null?_0x5542f2:_0x4382aa)!=null?_0x4054d7:Mr;}[_0x4a9685(0x410)](){const _0x4998f8=_0x4a9685;var _0x54f1e9,_0x21ba52;const _0x4bda5f=this[_0x4998f8(0x294)]['getConfig'](Ar),_0x19e768=this['_configService']['getConfig'](te);return(_0x21ba52=(_0x54f1e9=_0x19e768==null?void 0x0:_0x19e768['signUrlServerUrl'])!=null?_0x54f1e9:_0x4bda5f)!=null?_0x21ba52:Nr;}[_0x4a9685(0x565)](){const _0x48171c=_0x4a9685;var _0x3c5809;const _0x25b472=this[_0x48171c(0x294)][_0x48171c(0x4a1)](te);return(_0x3c5809=_0x25b472==null?void 0x0:_0x25b472[_0x48171c(0x4fe)])!=null?_0x3c5809:location[_0x48171c(0x221)];}[_0x4a9685(0x1db)](_0x3997ac,_0x3df67c){const _0x24d881=_0x4a9685;return _0x3997ac[_0x24d881(0x38b)](_0x24d881(0x1f5),_0x3df67c);}[_0x4a9685(0x175)](){const _0x30d5ab=_0x4a9685;this[_0x30d5ab(0x3ab)]-=0x1,this[_0x30d5ab(0x4c4)][_0x30d5ab(0x503)](this[_0x30d5ab(0x3ab)]);}},exports[_0x4a9685(0x50d)]=Dr([vt(0x0,a['Inject'](Z[_0x4a9685(0x2db)])),vt(0x1,a[_0x4a9685(0x3fb)]),vt(0x2,a[_0x4a9685(0x27a)](a['IUniverInstanceService']))],exports[_0x4a9685(0x50d)]);var Lr=Object[_0x4a9685(0x377)],xr=Object[_0x4a9685(0x484)],jr=(_0x2a1d3d,_0x49f16d,_0x56352f,_0x43a2de)=>{const _0x39a5ae=_0x4a9685;for(var _0x3e286c=_0x43a2de>0x1?void 0x0:_0x43a2de?xr(_0x49f16d,_0x56352f):_0x49f16d,_0x479e11=_0x2a1d3d[_0x39a5ae(0x530)]-0x1,_0x2e3eae;_0x479e11>=0x0;_0x479e11--)(_0x2e3eae=_0x2a1d3d[_0x479e11])&&(_0x3e286c=(_0x43a2de?_0x2e3eae(_0x49f16d,_0x56352f,_0x3e286c):_0x2e3eae(_0x3e286c))||_0x3e286c);return _0x43a2de&&_0x3e286c&&Lr(_0x49f16d,_0x56352f,_0x3e286c),_0x3e286c;},Ae=(_0x347797,_0x5803b6)=>(_0x2560f2,_0x3e070f)=>_0x5803b6(_0x2560f2,_0x3e070f,_0x347797);let Ke=class extends a[_0x4a9685(0x2c7)]{constructor(_0xd71fa1,_0x42377f,_0x4caadd,_0x1848c9,_0x5439fc){const _0x9cbbf0=_0x4a9685;super(),this['_injector']=_0xd71fa1,this[_0x9cbbf0(0x54a)]=_0x42377f,this[_0x9cbbf0(0x3e0)]=_0x4caadd,this['_collaborationSessionService']=_0x1848c9,this[_0x9cbbf0(0x39c)]=_0x5439fc,this[_0x9cbbf0(0x5ed)](),this[_0x9cbbf0(0x570)]();}[_0x4a9685(0x570)](){const _0xef1b5c=_0x4a9685,_0x296bd9=async _0x56cad1=>{const _0xeff08a=_0x5f2c;(await this[_0xeff08a(0x494)][_0xeff08a(0x461)](_0x56cad1))['event$']['pipe'](V[_0xeff08a(0x464)](_0x5633e8=>_0x5633e8[_0xeff08a(0x3af)]===S[_0xeff08a(0x35a)][_0xeff08a(0x42b)]),V[_0xeff08a(0x5e8)](this[_0xeff08a(0x5c9)]))['subscribe'](_0x4816a3=>{const _0x5fdc8c=_0xeff08a,_0x479f35=_0x4816a3,{reason:_0x301a43}=_0x479f35[_0x5fdc8c(0x18f)];this['_injector'][_0x5fdc8c(0x542)](ee[_0x5fdc8c(0x27d)])[_0x5fdc8c(0x36b)]({'type':ge[_0x5fdc8c(0x2e3)][_0x5fdc8c(0x2d0)],'content':this['_localeService']['t'](_0x5fdc8c(0x5ee))+'('+_0x301a43+')'}),this[_0x5fdc8c(0x3e0)][_0x5fdc8c(0x38e)](new k[(_0x5fdc8c(0x1ef))](_0x56cad1)['id'],!0x1),this[_0x5fdc8c(0x494)]['closeSession'](_0x56cad1);});};A[_0xef1b5c(0x345)](this['_univerInstanceService'][_0xef1b5c(0x3f9)](a[_0xef1b5c(0x33e)][_0xef1b5c(0x1af)]),this[_0xef1b5c(0x54a)][_0xef1b5c(0x3f9)](a['UniverInstanceType']['UNIVER_DOC']))[_0xef1b5c(0x172)](V['map'](_0xe32f95=>_0xe32f95[_0xef1b5c(0x56f)]()),V[_0xef1b5c(0x464)](_0x328090=>!a['isInternalEditorID'](_0x328090)),V['takeUntil'](this[_0xef1b5c(0x5c9)]))[_0xef1b5c(0x419)](_0x160c61=>{_0x296bd9(_0x160c61);});}[_0x4a9685(0x5ed)](){const _0x16a293=_0x4a9685,_0x3d11c5=async _0x9e9e45=>{const _0x4fb4e4=_0x5f2c;(await this[_0x4fb4e4(0x494)][_0x4fb4e4(0x461)](_0x9e9e45))[_0x4fb4e4(0x297)][_0x4fb4e4(0x172)](V[_0x4fb4e4(0x464)](_0x8da3b9=>_0x8da3b9[_0x4fb4e4(0x3af)]===S[_0x4fb4e4(0x35a)][_0x4fb4e4(0x347)]),V[_0x4fb4e4(0x5e8)](this[_0x4fb4e4(0x5c9)]))[_0x4fb4e4(0x419)](_0x45e983=>{const _0x48b720=_0x4fb4e4,_0x2283dc=_0x45e983,{objectId:_0x4e58a0}=_0x2283dc[_0x48b720(0x18f)],_0xb40c20=this['_injector']['get'](Re[_0x48b720(0x4bc)]);_0x4e58a0===_0x9e9e45?_0xb40c20[_0x48b720(0x56e)](_0x9e9e45):_0xb40c20[_0x48b720(0x5d0)](_0x9e9e45,_0x4e58a0);});};A['merge'](this[_0x16a293(0x54a)][_0x16a293(0x3f9)](a['UniverInstanceType'][_0x16a293(0x1af)]),this[_0x16a293(0x54a)][_0x16a293(0x3f9)](a[_0x16a293(0x33e)][_0x16a293(0x22a)]))[_0x16a293(0x172)](V[_0x16a293(0x28a)](_0x23eb66=>_0x23eb66[_0x16a293(0x56f)]()),V['filter'](_0xb39b53=>!a['isInternalEditorID'](_0xb39b53)),V[_0x16a293(0x5e8)](this[_0x16a293(0x5c9)]))[_0x16a293(0x419)](_0x18685b=>{_0x3d11c5(_0x18685b);});}};Ke=jr([Ae(0x0,a['Inject'](a[_0x4a9685(0x17d)])),Ae(0x1,a[_0x4a9685(0x3c5)]),Ae(0x2,a[_0x4a9685(0x310)]),Ae(0x3,a[_0x4a9685(0x27a)](exports[_0x4a9685(0x2a7)])),Ae(0x4,a[_0x4a9685(0x27a)](a[_0x4a9685(0x4a8)]))],Ke);var $r=Object['defineProperty'],Hr=Object[_0x4a9685(0x484)],Br=(_0x48ee30,_0x41ff1d,_0x51afdb,_0x54cbe3)=>{const _0x139c7e=_0x4a9685;for(var _0x30b33a=_0x54cbe3>0x1?void 0x0:_0x54cbe3?Hr(_0x41ff1d,_0x51afdb):_0x41ff1d,_0x1ae4cb=_0x48ee30[_0x139c7e(0x530)]-0x1,_0x2580ff;_0x1ae4cb>=0x0;_0x1ae4cb--)(_0x2580ff=_0x48ee30[_0x1ae4cb])&&(_0x30b33a=(_0x54cbe3?_0x2580ff(_0x41ff1d,_0x51afdb,_0x30b33a):_0x2580ff(_0x30b33a))||_0x30b33a);return _0x54cbe3&&_0x30b33a&&$r(_0x41ff1d,_0x51afdb,_0x30b33a),_0x30b33a;},Jt=(_0x382203,_0x359909)=>(_0x86d34,_0x5f17af)=>_0x359909(_0x86d34,_0x5f17af,_0x382203);exports[_0x4a9685(0x376)]=class{constructor(_0x33d433,_0x36bdf5){const _0x25fb13=_0x4a9685;this['_configService']=_0x33d433,this[_0x25fb13(0x213)]=_0x36bdf5;}async[_0x4a9685(0x370)](_0x5f2ed0,_0x546b86){const _0x4755ac=_0x4a9685;var _0x2ebfb7;const {unitID:_0x2aae17,type:_0x248849,revision:_0x10eaec=0x0}=_0x546b86,_0x34350d=this['_getSnapshotAPIPrefix']()+'/'+_0x248849+_0x4755ac(0x33b)+_0x2aae17+_0x4755ac(0x578)+_0x10eaec,_0x4c8ab1=(await this[_0x4755ac(0x213)][_0x4755ac(0x542)](_0x34350d))[_0x4755ac(0x1c3)],_0x588cae=(_0x2ebfb7=_0x4c8ab1[_0x4755ac(0x5de)])==null?void 0x0:_0x2ebfb7[_0x4755ac(0x2e9)];if(_0x588cae){const _0x21e5f7=_0x588cae==null?void 0x0:_0x588cae[_0x4755ac(0x5a2)],_0x929907=S['textEncoder'][_0x4755ac(0x317)](S[_0x4755ac(0x566)](_0x21e5f7));_0x588cae[_0x4755ac(0x5a2)]=_0x929907,Object['entries'](_0x588cae[_0x4755ac(0x164)])[_0x4755ac(0x38f)](([,_0x480b4b])=>{const _0x9e070d=_0x4755ac,_0x389ba6=_0x480b4b[_0x9e070d(0x5a2)],_0x250d9e=S[_0x9e070d(0x17c)]['encode'](S[_0x9e070d(0x566)](_0x389ba6));_0x480b4b[_0x9e070d(0x5a2)]=_0x250d9e;});}return _0x4c8ab1;}async[_0x4a9685(0x590)](_0x5b585d,_0x3a72ba){const _0x28b86=_0x4a9685,{unitID:_0x12eeec,type:_0x2fecde,blockID:_0x5cf7c1}=_0x3a72ba,_0x944ed8=this['_getAPIPrefix']()+'/'+_0x2fecde+'/unit/'+_0x12eeec+'/block/'+_0x5cf7c1;return(await this[_0x28b86(0x213)][_0x28b86(0x542)](_0x944ed8))[_0x28b86(0x1c3)];}async[_0x4a9685(0x24d)](_0x2e266a,_0x572da6){const _0x5eb3b9=_0x4a9685,{unitID:_0x399df5,type:_0x31b1e5,blockID:_0x291e26}=_0x572da6,_0x55a894=this[_0x5eb3b9(0x1fa)]()+'/block/'+_0x31b1e5+_0x5eb3b9(0x33b)+_0x399df5+_0x5eb3b9(0x45a)+_0x291e26;return(await this[_0x5eb3b9(0x213)][_0x5eb3b9(0x542)](_0x55a894))[_0x5eb3b9(0x1c3)];}async[_0x4a9685(0x327)](_0x3e9f09,_0x3acbdf){const _0xe537a2=_0x4a9685,{unitID:_0x51d361,type:_0x4e664f,from:_0x4e0abd,to:_0x3d52c8}=_0x3acbdf,_0x29f884=this[_0xe537a2(0x1fa)]()+'/'+_0x4e664f+'/unit/'+_0x51d361+_0xe537a2(0x35d)+_0x4e0abd+_0xe537a2(0x2f1)+_0x3d52c8;return(await this['_httpService'][_0xe537a2(0x542)](_0x29f884))[_0xe537a2(0x1c3)];}['_getSnapshotAPIPrefix'](){const _0xbe2d36=_0x4a9685;var _0x3ada12;return(_0x3ada12=this[_0xbe2d36(0x294)]['getConfig'](Qt))!=null?_0x3ada12:this[_0xbe2d36(0x1fa)]();}[_0x4a9685(0x1fa)](){const _0x15c9e0=_0x4a9685;var _0x56d45e,_0x5a89bc;const _0x358709=this[_0x15c9e0(0x294)]['getConfig'](Zt),_0x517f3d=this[_0x15c9e0(0x294)][_0x15c9e0(0x4a1)](te);return(_0x5a89bc=(_0x56d45e=_0x517f3d==null?void 0x0:_0x517f3d['snapshotServerUrl'])!=null?_0x56d45e:_0x358709)!=null?_0x5a89bc:Hn;}async['getResourcesRequest'](_0x1a4a17,_0x2dff41){const _0x198402=_0x4a9685,_0x10fb55=_0x198402(0x2a9)+_0x2dff41[_0x198402(0x3e4)]+'/unit/'+_0x2dff41[_0x198402(0x197)]+_0x198402(0x524);return(await this[_0x198402(0x213)][_0x198402(0x542)](_0x10fb55,{'params':{'resourceId':JSON[_0x198402(0x2d1)](_0x2dff41['resourceIDs'])}}))['body'];}['saveSnapshot'](){const _0xa82188=_0x4a9685;throw new Error(_0xa82188(0x374));}[_0x4a9685(0x4c8)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4a9685(0x598)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x4a9685(0x500)](){const _0x5c061f=_0x4a9685;throw new Error(_0x5c061f(0x374));}[_0x4a9685(0x20e)](){const _0x5bbcba=_0x4a9685;throw new Error(_0x5bbcba(0x374));}},exports[_0x4a9685(0x376)]=Br([Jt(0x0,a[_0x4a9685(0x3fb)]),Jt(0x1,a[_0x4a9685(0x27a)](Z[_0x4a9685(0x2db)]))],exports[_0x4a9685(0x376)]);var kr=Object[_0x4a9685(0x377)],Wr=Object['getOwnPropertyDescriptor'],Fr=(_0x2c08cc,_0x2e8ca9,_0x16568a,_0x34a933)=>{for(var _0x51d4b8=_0x34a933>0x1?void 0x0:_0x34a933?Wr(_0x2e8ca9,_0x16568a):_0x2e8ca9,_0x3bee77=_0x2c08cc['length']-0x1,_0x425779;_0x3bee77>=0x0;_0x3bee77--)(_0x425779=_0x2c08cc[_0x3bee77])&&(_0x51d4b8=(_0x34a933?_0x425779(_0x2e8ca9,_0x16568a,_0x51d4b8):_0x425779(_0x51d4b8))||_0x51d4b8);return _0x34a933&&_0x51d4b8&&kr(_0x2e8ca9,_0x16568a,_0x51d4b8),_0x51d4b8;},Ne=(_0x8f2221,_0x2fdc4a)=>(_0x352217,_0x3b9471)=>_0x2fdc4a(_0x352217,_0x3b9471,_0x8f2221);let It=class extends a['LocalUndoRedoService']{constructor(_0x14fa8b,_0xc8c866,_0x33cd52,_0x2efa7c,_0x2c4290){const _0x24b8fb=_0x4a9685;super(_0x14fa8b,_0xc8c866,_0x33cd52),this[_0x24b8fb(0x4f6)]=_0x2efa7c,this[_0x24b8fb(0x480)]=_0x2c4290;}['transformUndoRedo'](_0x5c35f5,_0x513d11){const _0x6c8ec3=_0x4a9685,_0x2a7c94=this[_0x6c8ec3(0x1b1)](_0x5c35f5);if(_0x2a7c94)try{const _0x474ab0=this[_0x6c8ec3(0x273)](_0x2a7c94,_0x513d11);this[_0x6c8ec3(0x269)](_0x5c35f5,_0x474ab0);}catch(_0x5c8864){this[_0x6c8ec3(0x480)][_0x6c8ec3(0x3d8)](_0x6c8ec3(0x499),_0x5c8864),this[_0x6c8ec3(0x2c4)](_0x5c35f5);}const _0x355f44=this[_0x6c8ec3(0x16d)](_0x5c35f5);if(_0x355f44)try{const _0x33b062=this[_0x6c8ec3(0x273)](_0x355f44,_0x513d11);this[_0x6c8ec3(0x36e)](_0x5c35f5,_0x33b062);}catch(_0x358a8a){this[_0x6c8ec3(0x480)][_0x6c8ec3(0x3d8)](_0x358a8a),this[_0x6c8ec3(0x16a)](_0x5c35f5);}}[_0x4a9685(0x2c4)](_0x211f48){const _0x487f48=_0x4a9685,_0xfbb008=this['_getUndoStack'](_0x211f48);_0xfbb008&&(_0xfbb008[_0x487f48(0x530)]=0x0,this[_0x487f48(0x2d9)]());}['_clearRedo'](_0x411609){const _0x10b28d=_0x4a9685,_0x38b4be=this[_0x10b28d(0x16d)](_0x411609);_0x38b4be&&(_0x38b4be[_0x10b28d(0x530)]=0x0,this[_0x10b28d(0x2d9)]());}[_0x4a9685(0x269)](_0xa706dc,_0x375919){const _0x3cfa1f=_0x4a9685;this['_undoStacks'][_0x3cfa1f(0x568)](_0xa706dc,_0x375919),this[_0x3cfa1f(0x2d9)]();}[_0x4a9685(0x36e)](_0x37af8a,_0x465b93){const _0x41e3ae=_0x4a9685;this[_0x41e3ae(0x4db)][_0x41e3ae(0x568)](_0x37af8a,_0x465b93),this[_0x41e3ae(0x2d9)]();}[_0x4a9685(0x273)](_0x2e9527,_0x5b9c80){const _0x4a149c=_0x4a9685,_0x2b666e=[];let _0x403470=_0x5b9c80,_0x22c04b=_0x5b9c80;for(let _0x20777f=_0x2e9527[_0x4a149c(0x530)]-0x1;_0x20777f>=0x0;_0x20777f--){const {unitID:_0x2672f9,undoMutations:_0x11e09f,redoMutations:_0x330fcb}=_0x2e9527[_0x20777f],_0x336334=this['_transformService']['transformMutationsWithChangeset'](_0x403470,_0x11e09f),_0xeb4c76=this[_0x4a149c(0x4f6)]['transformMutationsWithChangeset'](_0x22c04b,_0x330fcb);if(S['isTransformMutationsWithChangesetFailure'](_0x336334)||S[_0x4a149c(0x133)](_0xeb4c76)){this[_0x4a149c(0x480)][_0x4a149c(0x3d8)](_0x4a149c(0x499),_0x4a149c(0x17a),_0x336334,_0xeb4c76);break;}_0x403470=_0x336334[_0x4a149c(0x51e)],_0x22c04b=_0xeb4c76[_0x4a149c(0x51e)],_0x2b666e[_0x4a149c(0x3d6)]({'unitID':_0x2672f9,'undoMutations':_0x336334[_0x4a149c(0x403)],'redoMutations':_0xeb4c76[_0x4a149c(0x403)]});}return _0x2b666e[_0x4a149c(0x5aa)]();}};It=Fr([Ne(0x0,a[_0x4a9685(0x3c5)]),Ne(0x1,a['ICommandService']),Ne(0x2,a[_0x4a9685(0x55b)]),Ne(0x3,S[_0x4a9685(0x315)]),Ne(0x4,a[_0x4a9685(0x2e8)])],It);class An extends a['RxDisposable']{constructor(){const _0x59bb9c=_0x4a9685;super(),I(this,_0x59bb9c(0x56a)),this[_0x59bb9c(0x56a)]=A[_0x59bb9c(0x59e)](window,_0x59bb9c(0x1ad))[_0x59bb9c(0x172)](A[_0x59bb9c(0x5e8)](this[_0x59bb9c(0x5c9)]),A[_0x59bb9c(0x52c)](0x1),A[_0x59bb9c(0x429)](void 0x0));}[_0x4a9685(0x282)](_0x5c9ce1,_0x1a5423,_0x151032=!0x1){const _0x1524d6=_0x4a9685,_0x3c943a=new URL(window[_0x1524d6(0x559)]['href']);_0x3c943a[_0x1524d6(0x5e1)][_0x1524d6(0x568)](_0x5c9ce1,_0x1a5423),_0x151032?window[_0x1524d6(0x42d)][_0x1524d6(0x287)]('','',_0x3c943a[_0x1524d6(0x350)]()):window['history']['pushState']('','',_0x3c943a['toString']());}[_0x4a9685(0x2b6)](_0x4dd8e7,_0x423762=!0x1){const _0xb11921=_0x4a9685,_0x30ff5d=new URL(window[_0xb11921(0x559)][_0xb11921(0x1fd)]);_0x30ff5d['searchParams'][_0xb11921(0x224)](_0x4dd8e7),_0x423762?window[_0xb11921(0x42d)][_0xb11921(0x287)]('','',_0x30ff5d[_0xb11921(0x350)]()):window[_0xb11921(0x42d)][_0xb11921(0x293)]('','',_0x30ff5d['toString']());}[_0x4a9685(0x3e2)](_0x251e71){const _0x20cfbd=_0x4a9685;var _0x3cc807;return(_0x3cc807=new URL(window[_0x20cfbd(0x559)][_0x20cfbd(0x1fd)])[_0x20cfbd(0x5e1)][_0x20cfbd(0x542)](_0x251e71))!=null?_0x3cc807:void 0x0;}}var Nn=Object[_0x4a9685(0x377)],Vr=Object[_0x4a9685(0x484)],Gr=(_0x334a1e,_0x50e9d5,_0x26f1f1)=>_0x50e9d5 in _0x334a1e?Nn(_0x334a1e,_0x50e9d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26f1f1}):_0x334a1e[_0x50e9d5]=_0x26f1f1,Yr=(_0x23ef46,_0x48efd,_0x2a0155,_0x22d8b7)=>{const _0x7bb278=_0x4a9685;for(var _0x3c4282=_0x22d8b7>0x1?void 0x0:_0x22d8b7?Vr(_0x48efd,_0x2a0155):_0x48efd,_0x242ed5=_0x23ef46[_0x7bb278(0x530)]-0x1,_0x163a1f;_0x242ed5>=0x0;_0x242ed5--)(_0x163a1f=_0x23ef46[_0x242ed5])&&(_0x3c4282=(_0x22d8b7?_0x163a1f(_0x48efd,_0x2a0155,_0x3c4282):_0x163a1f(_0x3c4282))||_0x3c4282);return _0x22d8b7&&_0x3c4282&&Nn(_0x48efd,_0x2a0155,_0x3c4282),_0x3c4282;},He=(_0x3a5c64,_0x37e1ec)=>(_0x339e34,_0xa85f6b)=>_0x37e1ec(_0x339e34,_0xa85f6b,_0x3a5c64),Kr=(_0x19b025,_0x534314,_0x6904b4)=>Gr(_0x19b025,_0x534314+'',_0x6904b4);const qr=_0x4a9685(0x348);exports[_0x4a9685(0x3a2)]=class extends a[_0x4a9685(0x389)]{constructor(_0x298a34=zn,_0x54a264,_0x57f91f,_0x4ea73d,_0x206829){const _0x4e6dbf=_0x4a9685;super(),this[_0x4e6dbf(0x3f2)]=_0x298a34,this['_logService']=_0x54a264,this[_0x4e6dbf(0x582)]=_0x57f91f,this['_injector']=_0x4ea73d,this[_0x4e6dbf(0x294)]=_0x206829;const {..._0x4552c9}=this[_0x4e6dbf(0x3f2)];this[_0x4e6dbf(0x294)]['setConfig'](te,_0x4552c9);}['onStarting'](){const _0x4c6f15=_0x4a9685;this['_registerDependencies'](),this[_0x4c6f15(0x3ca)]();}[_0x4a9685(0x3ec)](){const _0x56f375=_0x4a9685;a[_0x56f375(0x45d)](this[_0x56f375(0x372)],[[Ve]]);}[_0x4a9685(0x27b)](){this['_registerRenderDependencies']();}[_0x4a9685(0x27e)](){const _0x216c94=_0x4a9685;var _0xf6ae82,_0xc6d029,_0x181d9e,_0x34e0d6;this[_0x216c94(0x372)]['has'](a[_0x216c94(0x23b)])&&this[_0x216c94(0x480)][_0x216c94(0x3d8)]('[UniverCollaborationClientPlugin]',_0x216c94(0x462));const _0x35be81=[[a[_0x216c94(0x23b)],{'useClass':It}],[exports[_0x216c94(0x2a7)]],[Ot],[wt,{'useClass':An}],[exports[_0x216c94(0x3e1)]],[exports['LocalCacheService']],[Z[_0x216c94(0x378)]],[ke],[Fe],[Be],[We],[Rt],[Ge],[Ye],[Tt],[Ke],[bt,{'useClass':(_0xc6d029=(_0xf6ae82=this[_0x216c94(0x3f2)])==null?void 0x0:_0xf6ae82[_0x216c94(0x22b)])!=null?_0xc6d029:exports[_0x216c94(0x53c)]}],[S['ISnapshotServerService'],{'useClass':exports[_0x216c94(0x376)]}],[a[_0x216c94(0x2f0)],{'useClass':exports[_0x216c94(0x26b)]}],[ne[_0x216c94(0x3f3)],{'useClass':exports[_0x216c94(0x50d)]}],[exports[_0x216c94(0x1ff)]],[exports[_0x216c94(0x554)]],[exports[_0x216c94(0x2f8)]],[Ve],[De]];(_0x181d9e=this['_config'])!=null&&_0x181d9e[_0x216c94(0x325)]&&_0x35be81['push']([qe,{'useClass':Oi}]),a[_0x216c94(0x440)](this[_0x216c94(0x372)],a[_0x216c94(0x323)](_0x35be81,(_0x34e0d6=this[_0x216c94(0x3f2)])==null?void 0x0:_0x34e0d6[_0x216c94(0x5dc)]));}['_registerRenderDependencies'](){const _0x1904e7=_0x4a9685;this[_0x1904e7(0x3c7)](this[_0x1904e7(0x582)][_0x1904e7(0x2cb)](a['UniverInstanceType'][_0x1904e7(0x22a)],[pt])),this[_0x1904e7(0x3c7)](this[_0x1904e7(0x582)][_0x1904e7(0x2cb)](a[_0x1904e7(0x33e)][_0x1904e7(0x1af)],[gt]));}[_0x4a9685(0x3ca)](){const _0xd318f2=_0x4a9685;var _0x4862b9,_0x3b17b8;this[_0xd318f2(0x372)][_0xd318f2(0x542)](Z['HTTPService'])[_0xd318f2(0x533)]({'priority':0x14,'interceptor':Z[_0xd318f2(0x3ed)]({'maxParallel':0x6})}),(_0x4862b9=this[_0xd318f2(0x3f2)])!=null&&_0x4862b9[_0xd318f2(0x443)]||this[_0xd318f2(0x372)][_0xd318f2(0x542)](exports['LocalCacheService'])[_0xd318f2(0x360)](),(_0x3b17b8=this['_config'])!=null&&_0x3b17b8[_0xd318f2(0x1a3)]&&a['touchDependencies'](this['_injector'],[[Ge]]),a[_0xd318f2(0x45d)](this['_injector'],[[Ye],[De],[exports[_0xd318f2(0x554)]],[exports[_0xd318f2(0x1ff)]],[exports['DesktopCollaborationStatusDisplayController']],[Ke]]);}},Kr(exports['UniverCollaborationClientPlugin'],_0x4a9685(0x395),qr),exports[_0x4a9685(0x3a2)]=Yr([a['DependentOn'](S[_0x4a9685(0x19e)],Z[_0x4a9685(0x3aa)]),He(0x1,a[_0x4a9685(0x2e8)]),He(0x2,K['IRenderManagerService']),He(0x3,a[_0x4a9685(0x27a)](a['Injector'])),He(0x4,a[_0x4a9685(0x3fb)])],exports['UniverCollaborationClientPlugin']),exports['AUTHZ_URL_KEY']=Rn,exports[_0x4a9685(0x5f2)]=on,exports[_0x4a9685(0x21b)]=en,exports[_0x4a9685(0x153)]=q,exports[_0x4a9685(0x593)]=Tn,exports[_0x4a9685(0x5a1)]=Tt,exports[_0x4a9685(0x387)]=tn,exports[_0x4a9685(0x248)]=Ct,exports[_0x4a9685(0x5d7)]=bt,exports['IURLService']=wt,exports[_0x4a9685(0x30b)]=rn,exports[_0x4a9685(0x49e)]=an,exports[_0x4a9685(0x218)]=sn,exports[_0x4a9685(0x43f)]=Bn,exports[_0x4a9685(0x179)]=Zt,exports[_0x4a9685(0x442)]=Qt,exports[_0x4a9685(0x319)]=se,exports[_0x4a9685(0x457)]=Sn,exports[_0x4a9685(0x320)]=An,exports[_0x4a9685(0x312)]=hn,exports[_0x4a9685(0x145)]=_n;
|