@univerjs-pro/collaboration-client 0.5.0-nightly.202411121606 → 0.5.0-nightly.202411141606

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.
Files changed (84) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/en-US.js +1 -1
  3. package/lib/cjs/locale/fa-IR.js +1 -1
  4. package/lib/cjs/locale/ru-RU.js +1 -1
  5. package/lib/cjs/locale/vi-VN.js +1 -1
  6. package/lib/cjs/locale/zh-CN.js +1 -1
  7. package/lib/cjs/locale/zh-TW.js +1 -1
  8. package/lib/es/index.js +1 -1
  9. package/lib/es/locale/en-US.js +1 -1
  10. package/lib/es/locale/fa-IR.js +1 -1
  11. package/lib/es/locale/ru-RU.js +1 -1
  12. package/lib/es/locale/vi-VN.js +1 -1
  13. package/lib/es/locale/zh-CN.js +1 -1
  14. package/lib/es/locale/zh-TW.js +1 -1
  15. package/lib/types/config/config.d.ts +48 -0
  16. package/lib/types/controllers/collab-cursor/__tests__/doc-collab-cursor.controller.spec.d.ts +23 -0
  17. package/lib/types/controllers/collab-cursor/__tests__/serialize-text-ranges.spec.d.ts +1 -0
  18. package/lib/types/controllers/collab-cursor/__tests__/sheet-collab-cursor.controller.spec.d.ts +1 -0
  19. package/lib/types/controllers/collab-cursor/collab-cursor.controller.d.ts +22 -0
  20. package/lib/types/controllers/collab-cursor/doc-collab-cursor-entity.d.ts +38 -0
  21. package/lib/types/controllers/collab-cursor/doc-collab-cursor-render.controller.d.ts +24 -0
  22. package/lib/types/controllers/collab-cursor/serialize-text-ranges.d.ts +3 -0
  23. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-entity.d.ts +39 -0
  24. package/lib/types/controllers/collab-cursor/sheet-collab-cursor-render.controller.d.ts +21 -0
  25. package/lib/types/controllers/collab-status/collab-status.controller.d.ts +18 -0
  26. package/lib/types/controllers/collaboration/__tests__/collaboration.controller.spec.d.ts +4 -0
  27. package/lib/types/controllers/collaboration/__tests__/mock-text-selection-render-manager.service.d.ts +0 -0
  28. package/lib/types/controllers/collaboration/__tests__/mocks.d.ts +54 -0
  29. package/lib/types/controllers/collaboration/collaboration-entity.d.ts +91 -0
  30. package/lib/types/controllers/collaboration/collaboration-state.d.ts +303 -0
  31. package/lib/types/controllers/collaboration/collaboration.controller.d.ts +24 -0
  32. package/lib/types/controllers/collaboration/utils/changeset-utils.d.ts +18 -0
  33. package/lib/types/controllers/collaboration/utils/empty.d.ts +2 -0
  34. package/lib/types/controllers/config.schema.d.ts +29 -0
  35. package/lib/types/controllers/data-loader/__tests__/data-loader.controller.spec.d.ts +1 -0
  36. package/lib/types/controllers/data-loader/data-loader.controller.d.ts +22 -0
  37. package/lib/types/controllers/file-name/file-name.controller.d.ts +12 -0
  38. package/lib/types/controllers/telemetry.d.ts +11 -0
  39. package/lib/types/index.d.ts +35 -890
  40. package/lib/types/locale/en-US.d.ts +3 -0
  41. package/lib/types/locale/fa-IR.d.ts +3 -0
  42. package/lib/types/locale/ru-RU.d.ts +3 -0
  43. package/lib/types/locale/vi-VN.d.ts +3 -0
  44. package/lib/types/locale/zh-CN.d.ts +39 -0
  45. package/lib/types/locale/zh-TW.d.ts +3 -0
  46. package/lib/types/models/cursor.d.ts +30 -0
  47. package/lib/types/plugin.d.ts +18 -0
  48. package/lib/types/services/auth-server/auth-server.service.d.ts +10 -0
  49. package/lib/types/services/auth-server/authz-io-http.service.d.ts +30 -0
  50. package/lib/types/services/auth-server/domain-request.service.d.ts +6 -0
  51. package/lib/types/services/auth-server/util.d.ts +1 -0
  52. package/lib/types/services/collaboration-session/collaboration-session.d.ts +59 -0
  53. package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +61 -0
  54. package/lib/types/services/color-assign/color-assign.service.d.ts +10 -0
  55. package/lib/types/services/comment/comment.service.d.ts +6 -0
  56. package/lib/types/services/image-remote/image-io.service.d.ts +34 -0
  57. package/lib/types/services/ime-cache-transform/doc-transform-ime-cache.service.d.ts +13 -0
  58. package/lib/types/services/local-cache/local-cache.service.d.ts +37 -0
  59. package/lib/types/services/member/member.service.d.ts +77 -0
  60. package/lib/types/services/permission/permission.service.d.ts +12 -0
  61. package/lib/types/services/range-selection/sheet-transform-selections.service.d.ts +13 -0
  62. package/lib/types/services/single-active-unit/single-active-unit.service.d.ts +39 -0
  63. package/lib/types/services/snapshot-server/snapshot-server.service.d.ts +21 -0
  64. package/lib/types/services/socket/collaboration-socket.service.d.ts +34 -0
  65. package/lib/types/services/socket/serialize.d.ts +3 -0
  66. package/lib/types/services/state-cache-transform/doc-transform-state-cache.service.d.ts +12 -0
  67. package/lib/types/services/sync-editing-collab-cursor/doc-sync-editing-collab-cursor.service.d.ts +13 -0
  68. package/lib/types/services/text-selection/doc-transform-selections.service.d.ts +8 -0
  69. package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +19 -0
  70. package/lib/types/services/url/url.service.d.ts +12 -0
  71. package/lib/types/services/url/web-url.service.d.ts +10 -0
  72. package/lib/types/views/components/CollabStatus.d.ts +10 -0
  73. package/lib/types/views/components/CollabStatus.stories.d.ts +8 -0
  74. package/lib/types/views/shapes/doc-collab-cursor.d.ts +27 -0
  75. package/lib/types/views/shapes/sheet-collab-cursor.shape.d.ts +27 -0
  76. package/lib/types/views/shapes/text-bubble.shape.d.ts +19 -0
  77. package/lib/umd/index.js +1 -1
  78. package/lib/umd/locale/en-US.js +1 -1
  79. package/lib/umd/locale/fa-IR.js +1 -1
  80. package/lib/umd/locale/ru-RU.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-TW.js +1 -1
  84. package/package.json +16 -16
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x3b224c=_0x1276;(function(_0x3f645f,_0x69881d){const _0x1b9ed9=_0x1276,_0x57d6e1=_0x3f645f();while(!![]){try{const _0x19bdf2=-parseInt(_0x1b9ed9(0x20a))/0x1*(parseInt(_0x1b9ed9(0x375))/0x2)+parseInt(_0x1b9ed9(0x352))/0x3*(-parseInt(_0x1b9ed9(0x456))/0x4)+parseInt(_0x1b9ed9(0x413))/0x5*(-parseInt(_0x1b9ed9(0x362))/0x6)+-parseInt(_0x1b9ed9(0x427))/0x7+-parseInt(_0x1b9ed9(0x37a))/0x8+-parseInt(_0x1b9ed9(0x59f))/0x9*(parseInt(_0x1b9ed9(0x1dc))/0xa)+parseInt(_0x1b9ed9(0x268))/0xb;if(_0x19bdf2===_0x69881d)break;else _0x57d6e1['push'](_0x57d6e1['shift']());}catch(_0x581676){_0x57d6e1['push'](_0x57d6e1['shift']());}}}(_0xce47,0x4e711));function _0x1276(_0x59fd45,_0x131081){const _0xce47ad=_0xce47();return _0x1276=function(_0x12768c,_0x2a11aa){_0x12768c=_0x12768c-0x12f;let _0x132026=_0xce47ad[_0x12768c];return _0x132026;},_0x1276(_0x59fd45,_0x131081);}var Ln=Object[_0x3b224c(0x209)],xn=(_0x34ad38,_0x1032c1,_0x30f068)=>_0x1032c1 in _0x34ad38?Ln(_0x34ad38,_0x1032c1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x30f068}):_0x34ad38[_0x1032c1]=_0x30f068,I=(_0xa14455,_0x485542,_0x17d537)=>xn(_0xa14455,typeof _0x485542!=_0x3b224c(0x3d2)?_0x485542+'':_0x485542,_0x17d537);Object[_0x3b224c(0x209)](exports,Symbol['toStringTag'],{'value':_0x3b224c(0x186)});const a=require(_0x3b224c(0x245)),A=require(_0x3b224c(0x3f7)),V=require(_0x3b224c(0x322)),ge=require(_0x3b224c(0x282)),ee=require('@univerjs/ui'),Z=require(_0x3b224c(0x385)),S=require(_0x3b224c(0x5e3)),jn=require(_0x3b224c(0x5cc)),J=require('@univerjs/docs-ui'),k=require(_0x3b224c(0x459)),K=require('@univerjs/engine-render'),ye=require(_0x3b224c(0x4f5)),ne=require(_0x3b224c(0x19e)),Pt=require(_0x3b224c(0x433)),Re=require(_0x3b224c(0x260)),ae=require('react'),$n=require(_0x3b224c(0x173)),Zt=_0x3b224c(0x4c1),Hn=_0x3b224c(0x447),Qt='SNAPSHOT_URL_KEY',Bn=_0x3b224c(0x573),kn=0x7d0,en='COLLAB_WEB_SOCKET_URL',Wn=_0x3b224c(0x36f),tn='HEARTBEAT_INTERVAL',Fn=0x7530,Ct=_0x3b224c(0x2c9),nn=0x4e20,Vn=0x4e20,sn=_0x3b224c(0x414),Gn=0x3,rn=_0x3b224c(0x29c),Yn=0x3e8,on='COLLAB_SUBMIT_CHANGESET_URL',Kn='/universer-api/comb',an=_0x3b224c(0x462),qn='/universer-api/oidc/authpage';var cn=(_0x55dfd2=>(_0x55dfd2[_0x55dfd2[_0x3b224c(0x312)]=0x0]=_0x3b224c(0x312),_0x55dfd2[_0x55dfd2['OK']=0x1]='OK',_0x55dfd2[_0x55dfd2[_0x3b224c(0x579)]=0x2]=_0x3b224c(0x579),_0x55dfd2[_0x55dfd2['PERMISSION_DENIED']=0x3]='PERMISSION_DENIED',_0x55dfd2[_0x55dfd2['NOT_FOUND']=0x4]=_0x3b224c(0x1f1),_0x55dfd2[_0x55dfd2[_0x3b224c(0x3a8)]=0x5]=_0x3b224c(0x3a8),_0x55dfd2[_0x55dfd2[_0x3b224c(0x494)]=0x6]='ALREADY_EXISTS',_0x55dfd2[_0x55dfd2['INVALID_ARGUMENT']=0x7]=_0x3b224c(0x392),_0x55dfd2[_0x55dfd2[_0x3b224c(0x431)]=0x8]=_0x3b224c(0x431),_0x55dfd2[_0x55dfd2[_0x3b224c(0x488)]=0x9]=_0x3b224c(0x488),_0x55dfd2[_0x55dfd2[_0x3b224c(0x5b3)]=0x1389]=_0x3b224c(0x5b3),_0x55dfd2[_0x55dfd2['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3b224c(0x14a),_0x55dfd2[_0x55dfd2[_0x3b224c(0x33a)]=0x1772]=_0x3b224c(0x33a),_0x55dfd2[_0x55dfd2[_0x3b224c(0x5a9)]=0x1773]=_0x3b224c(0x5a9),_0x55dfd2[_0x55dfd2[_0x3b224c(0x4f4)]=0x1b59]=_0x3b224c(0x4f4),_0x55dfd2[_0x55dfd2[_0x3b224c(0x48a)]=0x1b5a]=_0x3b224c(0x48a),_0x55dfd2[_0x55dfd2[_0x3b224c(0x53a)]=0x1b5b]=_0x3b224c(0x53a),_0x55dfd2[_0x55dfd2[_0x3b224c(0x170)]=0x1b5c]=_0x3b224c(0x170),_0x55dfd2[_0x55dfd2[_0x3b224c(0x37e)]=0x1b5d]='APPLY_DUPLICATED',_0x55dfd2[_0x55dfd2[_0x3b224c(0x1ac)]=0x1f41]=_0x3b224c(0x1ac),_0x55dfd2[_0x55dfd2[_0x3b224c(0x13d)]=0x2329]=_0x3b224c(0x13d),_0x55dfd2[_0x55dfd2[_0x3b224c(0x5da)]=0x232a]=_0x3b224c(0x5da),_0x55dfd2[_0x55dfd2[_0x3b224c(0x174)]=0x232b]=_0x3b224c(0x174),_0x55dfd2[_0x55dfd2['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3b224c(0x132),_0x55dfd2[_0x55dfd2[_0x3b224c(0x583)]=0x232d]=_0x3b224c(0x583),_0x55dfd2[_0x55dfd2[_0x3b224c(0x2a4)]=0x2711]=_0x3b224c(0x2a4),_0x55dfd2[_0x55dfd2[_0x3b224c(0x3fc)]=0x2712]=_0x3b224c(0x3fc),_0x55dfd2[_0x55dfd2[_0x3b224c(0x1d8)]=0x2713]=_0x3b224c(0x1d8),_0x55dfd2[_0x55dfd2[_0x3b224c(0x438)]=0x2714]=_0x3b224c(0x438),_0x55dfd2[_0x55dfd2[_0x3b224c(0x3b4)]=-0x1]=_0x3b224c(0x3b4),_0x55dfd2))(cn||{}),ie=(_0x407cfe=>(_0x407cfe[_0x407cfe[_0x3b224c(0x373)]=0x0]=_0x3b224c(0x373),_0x407cfe[_0x407cfe['UNIVER_DOC']=0x1]=_0x3b224c(0x508),_0x407cfe[_0x407cfe[_0x3b224c(0x460)]=0x2]=_0x3b224c(0x460),_0x407cfe[_0x407cfe[_0x3b224c(0x4b3)]=0x3]=_0x3b224c(0x4b3),_0x407cfe[_0x407cfe[_0x3b224c(0x31a)]=0x4]='UNIVER_PROJECT',_0x407cfe[_0x407cfe['UNRECOGNIZED']=-0x1]=_0x3b224c(0x3b4),_0x407cfe))(ie||{}),G=(_0x3fc5b8=>(_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x2bf)]=0x0]='UNKNOWN_CMD',_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x1a3)]=0x1]=_0x3b224c(0x1a3),_0x3fc5b8[_0x3fc5b8['JOIN']=0x2]=_0x3b224c(0x1bc),_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x582)]=0x3]=_0x3b224c(0x582),_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x20f)]=0x4]=_0x3b224c(0x20f),_0x3fc5b8[_0x3fc5b8['HEARTBEAT']=0x5]='HEARTBEAT',_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x4d8)]=0x6]=_0x3b224c(0x4d8),_0x3fc5b8[_0x3fc5b8[_0x3b224c(0x3b4)]=-0x1]=_0x3b224c(0x3b4),_0x3fc5b8))(G||{}),Et=(_0x508653=>(_0x508653[_0x508653['UNKNOWN_CODE']=0x0]=_0x3b224c(0x545),_0x508653[_0x508653['OK']=0x1]='OK',_0x508653[_0x508653[_0x3b224c(0x2f3)]=0x2]='FAIL',_0x508653[_0x508653['UNRECOGNIZED']=-0x1]=_0x3b224c(0x3b4),_0x508653))(Et||{}),ln=(_0x28068a=>(_0x28068a[_0x28068a[_0x3b224c(0x4ad)]=0x0]=_0x3b224c(0x4ad),_0x28068a[_0x28068a[_0x3b224c(0x5ca)]=0x1]=_0x3b224c(0x5ca),_0x28068a[_0x28068a[_0x3b224c(0x152)]=0x2]=_0x3b224c(0x152),_0x28068a[_0x28068a[_0x3b224c(0x2a5)]=0x3]=_0x3b224c(0x2a5),_0x28068a[_0x28068a[_0x3b224c(0x587)]=0x4]=_0x3b224c(0x587),_0x28068a[_0x28068a[_0x3b224c(0x3b4)]=-0x1]=_0x3b224c(0x3b4),_0x28068a))(ln||{});const te=_0x3b224c(0x3f3),zn={};function hn(_0x53a563){const _0x5882c7=_0x3b224c;var _0x705e9f,_0x203656,_0x8feb63,_0x48b4f1,_0x1f972c;const _0x36673b=_0x53a563[_0x5882c7(0x34e)],_0x372f9f=JSON[_0x5882c7(0x3d3)](_0x36673b);switch(_0x372f9f[_0x5882c7(0x21d)]){case G['HEARTBEAT']:case G['HELLO']:{const _0x203a2d=_0x372f9f[_0x5882c7(0x227)];return{..._0x372f9f,'data':_0x203a2d,'cmd':_0x372f9f['cmd']};}case G['JOIN']:{const _0x929f80=_0x372f9f[_0x5882c7(0x50e)];return{..._0x372f9f,'data':_0x929f80,'cmd':_0x372f9f[_0x5882c7(0x21d)]};}case G[_0x5882c7(0x4d8)]:{const _0x110d58=_0x372f9f[_0x5882c7(0x2bc)];switch(_0x110d58[_0x5882c7(0x4a9)]){case S[_0x5882c7(0x136)][_0x5882c7(0x4fc)]:return{..._0x372f9f,'data':{..._0x110d58,'data':(_0x705e9f=_0x110d58['permissionRejEvent'])==null?void 0x0:_0x705e9f['cs']},'cmd':_0x372f9f['cmd']};case S['CollaborationEvent'][_0x5882c7(0x35e)]:return{..._0x372f9f,'data':{..._0x110d58,'data':(_0x203656=_0x110d58[_0x5882c7(0x5bd)])==null?void 0x0:_0x203656['cs']},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S['CollaborationEvent'][_0x5882c7(0x48f)]:return{..._0x372f9f,'data':{..._0x110d58,'data':(_0x8feb63=_0x110d58[_0x5882c7(0x211)])==null?void 0x0:_0x8feb63['cs']},'cmd':_0x372f9f['cmd']};case S[_0x5882c7(0x136)]['CHANGESET_REJ']:return{..._0x372f9f,'data':{..._0x110d58,'data':(_0x48b4f1=_0x110d58['csRejEvent'])==null?void 0x0:_0x48b4f1['cs']},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S['CollaborationEvent'][_0x5882c7(0x26a)]:return{..._0x372f9f,'data':{..._0x110d58,'data':(_0x1f972c=_0x110d58[_0x5882c7(0x453)])==null?void 0x0:_0x1f972c['cs']},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)][_0x5882c7(0x182)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x2d1)]},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)]['USERS_ENTER']:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58['joinEvent']},'cmd':_0x372f9f['cmd']};case S[_0x5882c7(0x136)][_0x5882c7(0x502)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58['leaveEvent']},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)]['LIVESHARE_NEW_HOST']:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x4c0)]},'cmd':_0x372f9f['cmd']};case S['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case S[_0x5882c7(0x136)]['LIVESHARE_OPERATION']:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x21e)]},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S['CollaborationEvent'][_0x5882c7(0x38e)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58['liveShareNewHost']},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)][_0x5882c7(0x1d1)]:return{..._0x372f9f,'data':_0x110d58,'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)][_0x5882c7(0x2c1)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x40f)]},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)][_0x5882c7(0x31c)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x5d0)]},'cmd':_0x372f9f[_0x5882c7(0x21d)]};case S[_0x5882c7(0x136)][_0x5882c7(0x4e7)]:return{..._0x372f9f,'data':{..._0x110d58,'data':_0x110d58[_0x5882c7(0x528)]},'cmd':_0x372f9f['cmd']};default:return _0x372f9f;}}default:return _0x372f9f;}}function _n(_0x2883ce){const _0x1dcb47=_0x3b224c;switch(_0x2883ce['cmd']){case G[_0x1dcb47(0x2e7)]:case G[_0x1dcb47(0x1a3)]:return JSON['stringify']({'cmd':_0x2883ce[_0x1dcb47(0x21d)],'routeKey':_0x2883ce[_0x1dcb47(0x2e9)]});case G[_0x1dcb47(0x20f)]:{let _0x100790;switch(_0x2883ce[_0x1dcb47(0x34e)][_0x1dcb47(0x4a9)]){case S['CollaborationEvent'][_0x1dcb47(0x182)]:{_0x100790={'eventID':S['CollaborationEvent'][_0x1dcb47(0x182)],'updateCursorEvent':_0x2883ce['data'][_0x1dcb47(0x34e)]};break;}case S[_0x1dcb47(0x136)][_0x1dcb47(0x502)]:{_0x100790={'eventID':S[_0x1dcb47(0x136)]['USERS_LEAVE'],'leaveEvent':_0x2883ce[_0x1dcb47(0x34e)]['data']};break;}case S['CollaborationEvent']['USERS_ENTER']:{_0x100790={'eventID':S[_0x1dcb47(0x136)][_0x1dcb47(0x31b)],'joinEvent':_0x2883ce[_0x1dcb47(0x34e)][_0x1dcb47(0x34e)]};break;}case S['CollaborationEvent'][_0x1dcb47(0x27c)]:{_0x100790={'eventID':S[_0x1dcb47(0x136)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x2883ce[_0x1dcb47(0x34e)][_0x1dcb47(0x34e)]};break;}case S[_0x1dcb47(0x136)][_0x1dcb47(0x1b9)]:{_0x100790={'eventID':S[_0x1dcb47(0x136)][_0x1dcb47(0x1b9)],'liveShareOperation':_0x2883ce[_0x1dcb47(0x34e)]['data']};break;}case S[_0x1dcb47(0x136)][_0x1dcb47(0x38e)]:{_0x100790={'eventID':S[_0x1dcb47(0x136)][_0x1dcb47(0x38e)],'liveShareTerminate':_0x2883ce[_0x1dcb47(0x34e)][_0x1dcb47(0x34e)]};break;}case S[_0x1dcb47(0x136)]['LIVESHARE_REQUEST_HOST']:{_0x100790={'eventID':S['CollaborationEvent'][_0x1dcb47(0x2ca)],'liveShareRequestHost':_0x2883ce[_0x1dcb47(0x34e)]['data']};break;}case S[_0x1dcb47(0x136)][_0x1dcb47(0x2e4)]:{_0x100790={'eventID':S['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x100790={'eventID':_0x2883ce[_0x1dcb47(0x34e)][_0x1dcb47(0x4a9)]};}return JSON['stringify']({'cmd':_0x2883ce[_0x1dcb47(0x21d)],'routeKey':_0x2883ce[_0x1dcb47(0x2e9)],'collaMsg':_0x100790});}case G[_0x1dcb47(0x1bc)]:return JSON[_0x1dcb47(0x52a)]({'cmd':_0x2883ce['cmd'],'routeKey':_0x2883ce['routeKey'],'joinReq':_0x2883ce[_0x1dcb47(0x34e)]});case G[_0x1dcb47(0x582)]:return JSON[_0x1dcb47(0x52a)]({'cmd':_0x2883ce[_0x1dcb47(0x21d)],'routeKey':_0x2883ce['routeKey'],'leaveReq':_0x2883ce[_0x1dcb47(0x34e)]});default:throw new Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}var Xn=Object[_0x3b224c(0x209)],Jn=Object[_0x3b224c(0x233)],Zn=(_0x5ba0ce,_0x4c0b9d,_0x2e5307,_0x4fca36)=>{const _0x1045a7=_0x3b224c;for(var _0x518a95=_0x4fca36>0x1?void 0x0:_0x4fca36?Jn(_0x4c0b9d,_0x2e5307):_0x4c0b9d,_0x3ff886=_0x5ba0ce[_0x1045a7(0x2a8)]-0x1,_0xe0d121;_0x3ff886>=0x0;_0x3ff886--)(_0xe0d121=_0x5ba0ce[_0x3ff886])&&(_0x518a95=(_0x4fca36?_0xe0d121(_0x4c0b9d,_0x2e5307,_0x518a95):_0xe0d121(_0x518a95))||_0x518a95);return _0x4fca36&&_0x518a95&&Xn(_0x4c0b9d,_0x2e5307,_0x518a95),_0x518a95;},we=(_0x541a90,_0x105ea7)=>(_0xbbb00,_0x3de894)=>_0x105ea7(_0xbbb00,_0x3de894,_0x541a90);const bt=a[_0x3b224c(0x2da)](_0x3b224c(0x497));function Qn(_0x1d8667,_0x584594,_0x57e72c){const _0x54befa=_0x3b224c;return _0x1d8667+'/'+_0x584594+_0x54befa(0x4b1)+_0x57e72c+_0x54befa(0x4be);}exports[_0x3b224c(0x446)]=class extends a[_0x3b224c(0x52b)]{constructor(_0x4ae66e,_0x39e3f7,_0x293707,_0x15c287,_0x1bbdfa){const _0x12b324=_0x3b224c;super(),this[_0x12b324(0x3a6)]=_0x4ae66e,this['_ws']=_0x39e3f7,this[_0x12b324(0x142)]=_0x293707,this[_0x12b324(0x13a)]=_0x15c287,this[_0x12b324(0x56e)]=_0x1bbdfa;}[_0x3b224c(0x235)](_0x189485){const _0x1694d7=_0x3b224c,_0x1052ff=this[_0x1694d7(0x510)][_0x1694d7(0x235)](_0x189485);if(!_0x1052ff)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x70bd86=new a[(_0x1694d7(0x194))](),_0x230523=new A['Subject']();_0x70bd86[_0x1694d7(0x594)](_0x1052ff[_0x1694d7(0x1bf)][_0x1694d7(0x2de)](_0x48c17e=>_0x230523[_0x1694d7(0x1e1)](_0x48c17e))),_0x70bd86[_0x1694d7(0x594)](a['toDisposable'](()=>_0x230523['complete']()));const _0x4b17cc=new A[(_0x1694d7(0x13f))]();_0x70bd86[_0x1694d7(0x594)](_0x1052ff['error$'][_0x1694d7(0x2de)](_0x46d5f9=>_0x4b17cc[_0x1694d7(0x1e1)](_0x46d5f9))),_0x70bd86['add'](a[_0x1694d7(0x597)](()=>_0x4b17cc[_0x1694d7(0x163)]()));const _0x438fef=new A['Subject']();_0x70bd86['add'](_0x1052ff[_0x1694d7(0x4c6)][_0x1694d7(0x2de)](_0xccadc8=>{const _0x12c6a2=_0x1694d7,_0x44dc88=hn(_0xccadc8);_0x438fef[_0x12c6a2(0x1e1)](_0x44dc88);})),_0x70bd86['add'](a[_0x1694d7(0x597)](()=>_0x438fef[_0x1694d7(0x163)]()));let _0x32aa13;const _0x26b020=()=>{const _0x2ff069=_0x1694d7;_0x4b17cc[_0x2ff069(0x1e1)](new Event(_0x2ff069(0x25b))),_0x230523[_0x2ff069(0x1e1)](new CloseEvent(_0x2ff069(0x25b))),_0x32aa13[_0x2ff069(0x1b3)]();};return _0x32aa13={'memberID':'','close$':_0x230523[_0x1694d7(0x4f7)](),'error$':_0x4b17cc[_0x1694d7(0x4f7)](),'open$':_0x1052ff[_0x1694d7(0x288)],'message$':_0x438fef[_0x1694d7(0x4f7)](),'send':_0x2ca2e2=>{const _0x56d536=_0x1694d7;if(_0x2ca2e2[_0x56d536(0x21d)]===G[_0x56d536(0x20f)]){if(_0x2ca2e2[_0x56d536(0x34e)][_0x56d536(0x4a9)]===S[_0x56d536(0x136)][_0x56d536(0x2df)]){this[_0x56d536(0x565)](_0x32aa13,_0x2ca2e2[_0x56d536(0x34e)])[_0x56d536(0x1f4)](_0x5555fb=>{const _0x461db6=_0x56d536;this[_0x461db6(0x13a)][_0x461db6(0x423)](_0x5555fb),_0x26b020();});return;}if(_0x2ca2e2['data'][_0x56d536(0x4a9)]===S[_0x56d536(0x136)]['FETCH_MISSING']){const _0x5d05c8=_0x2ca2e2[_0x56d536(0x34e)];this[_0x56d536(0x441)](_0x5d05c8)[_0x56d536(0x55b)](_0x587e73=>{const _0x21c9e9=_0x56d536;_0x438fef[_0x21c9e9(0x1e1)]({'cmd':G[_0x21c9e9(0x4d8)],'code':Et['OK'],'routeKey':_0x5d05c8['data']['unitID'],'routeType':'','data':{'eventID':S[_0x21c9e9(0x136)][_0x21c9e9(0x50a)],'data':{'changesets':_0x587e73}}});})[_0x56d536(0x1f4)](_0x98046f=>{const _0x227292=_0x56d536;this[_0x227292(0x13a)]['error'](_0x98046f),_0x26b020();});return;}}_0x1052ff[_0x56d536(0x50d)](_n(_0x2ca2e2));},'close':()=>{const _0x584327=_0x1694d7;_0x1052ff[_0x584327(0x1b3)](),_0x70bd86[_0x584327(0x2fa)]();}},_0x32aa13;}async['_submitChangeset'](_0x514a6a,_0x4098d1){const _0x11f8d1=_0x3b224c;var _0xa86b8d,_0x2d85df;const {unitType:_0x2b3bd5,unitID:_0x8f5539,changeset:_0x40dfe9}=_0x4098d1['data'],_0x3c9b62={'unitID':_0x8f5539,'memberID':_0x514a6a[_0x11f8d1(0x5ba)],'type':_0x2b3bd5,'changeset':S[_0x11f8d1(0x3a1)](_0x40dfe9)},_0xd1ebf4=this['_configService'][_0x11f8d1(0x469)](on),_0x535a24=this[_0x11f8d1(0x142)][_0x11f8d1(0x469)](te),_0x28acc4=Qn((_0x2d85df=(_0xa86b8d=_0x535a24==null?void 0x0:_0x535a24[_0x11f8d1(0x269)])!=null?_0xa86b8d:_0xd1ebf4)!=null?_0x2d85df:Kn,_0x2b3bd5,_0x8f5539);try{await this[_0x11f8d1(0x3a6)][_0x11f8d1(0x192)](_0x28acc4,{'body':_0x3c9b62});}catch(_0x34c927){throw this[_0x11f8d1(0x13a)]['error'](_0x11f8d1(0x199),'submit\x20changeset\x20error!'),_0x34c927;}}async['_fetchMissChangesets'](_0x49b862){const _0x11cab5=_0x3b224c,{unitID:_0x46fe50,from:_0x31f95f,to:_0x440f5c,unitType:_0x3db4f6}=_0x49b862[_0x11cab5(0x34e)];return(await this[_0x11cab5(0x56e)][_0x11cab5(0x523)]({'metadata':void 0x0},{'unitID':_0x46fe50,'type':_0x3db4f6,'from':_0x31f95f,'to':_0x440f5c}))['changesets'];}},exports[_0x3b224c(0x446)]=Zn([we(0x0,a[_0x3b224c(0x556)](Z['HTTPService'])),we(0x1,a[_0x3b224c(0x556)](Z[_0x3b224c(0x350)])),we(0x2,a[_0x3b224c(0x160)]),we(0x3,a[_0x3b224c(0x5ae)]),we(0x4,S['ISnapshotServerService'])],exports[_0x3b224c(0x446)]);const ei=_0x3b224c(0x3d0);function ti(_0x1ea1d2){const _0x8d0cec=_0x3b224c;return JSON[_0x8d0cec(0x52a)](_0x1ea1d2)['length'];}class Tt{constructor(){const _0x156ebd=_0x3b224c;I(this,_0x156ebd(0x55a),new A[(_0x156ebd(0x13f))]()),I(this,_0x156ebd(0x17d),this[_0x156ebd(0x55a)]['asObservable']());}[_0x3b224c(0x238)](_0x5db99a){const _0x675e02=_0x3b224c;this[_0x675e02(0x55a)]['next'](_0x5db99a);}}var ni=Object[_0x3b224c(0x209)],ii=Object[_0x3b224c(0x233)],si=(_0x475405,_0x3680f5,_0x3dc566,_0x2750b1)=>{const _0x420f99=_0x3b224c;for(var _0x3723f5=_0x2750b1>0x1?void 0x0:_0x2750b1?ii(_0x3680f5,_0x3dc566):_0x3680f5,_0x5a5802=_0x475405[_0x420f99(0x2a8)]-0x1,_0x178cc1;_0x5a5802>=0x0;_0x5a5802--)(_0x178cc1=_0x475405[_0x5a5802])&&(_0x3723f5=(_0x2750b1?_0x178cc1(_0x3680f5,_0x3dc566,_0x3723f5):_0x178cc1(_0x3723f5))||_0x3723f5);return _0x2750b1&&_0x3723f5&&ni(_0x3680f5,_0x3dc566,_0x3723f5),_0x3723f5;},Ut=(_0x786b77,_0x51f824)=>(_0x3ca4f,_0xad8e21)=>_0x51f824(_0x3ca4f,_0xad8e21,_0x786b77);exports[_0x3b224c(0x5db)]=class extends a['Disposable']{constructor(_0x561f5a,_0x351230){const _0x53044f=_0x3b224c;super(),I(this,'_roomMembers',new Map()),(this[_0x53044f(0x15e)]=_0x561f5a,this['_userManagerService']=_0x351230,this[_0x53044f(0x220)](a[_0x53044f(0x597)](A[_0x53044f(0x3d6)](this[_0x53044f(0x15e)][_0x53044f(0x1c8)](a[_0x53044f(0x3b1)]['UNIVER_SHEET'])['pipe'](V[_0x53044f(0x283)](_0x3798cb=>_0x3798cb[_0x53044f(0x22d)]())),this[_0x53044f(0x15e)][_0x53044f(0x1c8)](a[_0x53044f(0x3b1)][_0x53044f(0x508)])['pipe'](V['map'](_0x3b5439=>_0x3b5439['getUnitId']())),this[_0x53044f(0x15e)][_0x53044f(0x1c8)](a[_0x53044f(0x3b1)][_0x53044f(0x4b3)])[_0x53044f(0x3cc)](V[_0x53044f(0x283)](_0x1bbd5c=>_0x1bbd5c[_0x53044f(0x22d)]())))[_0x53044f(0x2de)](_0x153cad=>this[_0x53044f(0x41a)](_0x153cad)))));}[_0x3b224c(0x27a)](_0x37bbfa){this['_userManagerService']['setCurrentUser'](_0x37bbfa);}['getCurrentUser'](){const _0x21b64f=_0x3b224c;return this[_0x21b64f(0x516)][_0x21b64f(0x349)]();}[_0x3b224c(0x193)](_0x27f48b,_0x38aed9){const _0x1053d8=_0x3b224c;let _0x2edf5b=this['_roomMembers'][_0x1053d8(0x273)](_0x27f48b);_0x2edf5b||(_0x2edf5b=new ri(),this[_0x1053d8(0x54b)]['set'](_0x27f48b,_0x2edf5b)),_0x2edf5b[_0x1053d8(0x193)](_0x38aed9);}[_0x3b224c(0x2e8)](_0x4f3432,_0x3521a0){const _0x114d87=_0x3b224c,_0x5b5ba0=this[_0x114d87(0x54b)][_0x114d87(0x273)](_0x4f3432);_0x5b5ba0&&_0x5b5ba0[_0x114d87(0x2e8)](_0x3521a0);}['getRoom'](_0x5168de){const _0x371bba=_0x3b224c;return this[_0x371bba(0x54b)][_0x371bba(0x273)](_0x5168de);}['getMember'](_0xb952fc,_0x3eaccc){const _0x21de51=_0x3b224c,_0x2f19ad=this[_0x21de51(0x54b)]['get'](_0xb952fc);if(_0x2f19ad)return _0x2f19ad['getMember'](_0x3eaccc);}[_0x3b224c(0x41a)](_0x3d0348){const _0x169aba=_0x3b224c,_0x4081a2=this[_0x169aba(0x54b)][_0x169aba(0x273)](_0x3d0348);_0x4081a2&&(_0x4081a2[_0x169aba(0x2fa)](),this['_roomMembers'][_0x169aba(0x463)](_0x3d0348));}[_0x3b224c(0x2fa)](){const _0x4ce4e5=_0x3b224c;this[_0x4ce4e5(0x54b)][_0x4ce4e5(0x54f)](_0x5277b3=>_0x5277b3[_0x4ce4e5(0x2fa)]()),this['_roomMembers'][_0x4ce4e5(0x3b6)]();}},exports[_0x3b224c(0x5db)]=si([Ut(0x0,a[_0x3b224c(0x5a1)]),Ut(0x1,a[_0x3b224c(0x556)](a[_0x3b224c(0x4e3)]))],exports[_0x3b224c(0x5db)]);class ri extends a[_0x3b224c(0x52b)]{constructor(){const _0x546886=_0x3b224c;super(...arguments),I(this,_0x546886(0x3af),new Map());}['dispose'](){const _0x16afe7=_0x3b224c;this[_0x16afe7(0x3af)][_0x16afe7(0x3b6)]();}[_0x3b224c(0x193)](_0x1ffbaf){const _0x4e7df0=_0x3b224c;this[_0x4e7df0(0x3af)][_0x4e7df0(0x437)](_0x1ffbaf[_0x4e7df0(0x5ba)],_0x1ffbaf);}[_0x3b224c(0x2e8)](_0x109888){this['_members']['delete'](_0x109888);}['getMember'](_0x1e7836){const _0x11e572=_0x3b224c;return this[_0x11e572(0x3af)][_0x11e572(0x273)](_0x1e7836);}[_0x3b224c(0x321)](){const _0x4f596c=_0x3b224c;return Array[_0x4f596c(0x2ed)](this['_members']['values']());}}var oi=Object[_0x3b224c(0x209)],ai=Object[_0x3b224c(0x233)],ci=(_0x5d8e10,_0x20fa55,_0x42322d,_0x21d53a)=>{for(var _0x1ed8b6=_0x21d53a>0x1?void 0x0:_0x21d53a?ai(_0x20fa55,_0x42322d):_0x20fa55,_0x2aea79=_0x5d8e10['length']-0x1,_0x3ab3e9;_0x2aea79>=0x0;_0x2aea79--)(_0x3ab3e9=_0x5d8e10[_0x2aea79])&&(_0x1ed8b6=(_0x21d53a?_0x3ab3e9(_0x20fa55,_0x42322d,_0x1ed8b6):_0x3ab3e9(_0x1ed8b6))||_0x1ed8b6);return _0x21d53a&&_0x1ed8b6&&oi(_0x20fa55,_0x42322d,_0x1ed8b6),_0x1ed8b6;},de=(_0x5adc7d,_0x3d57d4)=>(_0x44826d,_0x64c8b8)=>_0x3d57d4(_0x44826d,_0x64c8b8,_0x5adc7d),se=(_0x15a01a=>(_0x15a01a[_0x15a01a['IDLE']=0x0]=_0x3b224c(0x5a5),_0x15a01a[_0x15a01a[_0x3b224c(0x24a)]=0x1]='JOINING',_0x15a01a[_0x15a01a[_0x3b224c(0x4e2)]=0x2]='OFFLINE',_0x15a01a[_0x15a01a['ONLINE']=0x3]=_0x3b224c(0x3a3),_0x15a01a))(se||{});exports[_0x3b224c(0x466)]=class extends a[_0x3b224c(0x274)]{constructor(_0xb10e25,_0x32ae3b,_0x5e090b,_0x1f1c03,_0x2d6130,_0x25a558,_0x2ddbc2,_0x22e144,_0x177a8c,_0x2164fe){const _0x1cc180=_0x3b224c;super(),I(this,'_sessionStatus$',new A[(_0x1cc180(0x33e))](0x0)),I(this,_0x1cc180(0x480),this[_0x1cc180(0x18d)][_0x1cc180(0x4f7)]()),I(this,_0x1cc180(0x3f0),new A[(_0x1cc180(0x13f))]()),I(this,_0x1cc180(0x396),this[_0x1cc180(0x3f0)][_0x1cc180(0x4f7)]()),I(this,_0x1cc180(0x41c)),I(this,_0x1cc180(0x484)),I(this,_0x1cc180(0x25f)),I(this,'_shouldReportTelemetry',!0x1),I(this,_0x1cc180(0x279),null),(this[_0x1cc180(0x5d3)]=_0xb10e25,this[_0x1cc180(0x13a)]=_0x5e090b,this[_0x1cc180(0x4d7)]=_0x1f1c03,this['_messageService']=_0x2d6130,this['_configService']=_0x25a558,this['_localeService']=_0x2ddbc2,this[_0x1cc180(0x486)]=_0x22e144,this[_0x1cc180(0x54a)]=_0x177a8c,this[_0x1cc180(0x51d)]=_0x2164fe,this['_shouldReportTelemetry']=!!this['_telemetryService'],_0x32ae3b[_0x1cc180(0x3cc)](A[_0x1cc180(0x58f)](this[_0x1cc180(0x19d)]))[_0x1cc180(0x2de)](_0x57b6dd=>{const _0x7536b3=_0x1cc180;var _0x34bba2;typeof _0x57b6dd>'u'||(this[_0x7536b3(0x41c)]=_0x57b6dd,_0x57b6dd?(this[_0x7536b3(0x1a0)](_0x57b6dd),this[_0x7536b3(0x484)]=_0x57b6dd['message$'][_0x7536b3(0x2de)](_0xb25dff=>{const _0x31db66=_0x7536b3;_0xb25dff['routeKey']===this[_0x31db66(0x5d3)]&&this[_0x31db66(0x141)](_0xb25dff);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x7536b3(0x18d)][_0x7536b3(0x1e1)](0x2),(_0x34bba2=this[_0x7536b3(0x484)])==null||_0x34bba2[_0x7536b3(0x272)](),this[_0x7536b3(0x484)]=null));}),this[_0x1cc180(0x220)](this[_0x1cc180(0x4d7)][_0x1cc180(0x1c2)](()=>{const _0x410ceb=_0x1cc180;var _0x1a36ef;(_0x1a36ef=this[_0x410ceb(0x41c)])==null||_0x1a36ef[_0x410ceb(0x50d)]({'cmd':G['LEAVE'],'data':{'roomID':this[_0x410ceb(0x5d3)]}});})));}get['sessionStatus'](){const _0x3f8ee6=_0x3b224c;return this[_0x3f8ee6(0x18d)]['getValue']();}[_0x3b224c(0x3b8)](){const _0x8a27d2=_0x3b224c;var _0x4bfb75,_0x49b363;return(_0x49b363=(_0x4bfb75=this[_0x8a27d2(0x41c)])==null?void 0x0:_0x4bfb75[_0x8a27d2(0x5ba)])!=null?_0x49b363:null;}[_0x3b224c(0x2fa)](){const _0x350c5e=_0x3b224c;super[_0x350c5e(0x2fa)](),this[_0x350c5e(0x19d)][_0x350c5e(0x1e1)](),this['dispose$'][_0x350c5e(0x163)]();}[_0x3b224c(0x1b3)](){const _0x563a11=_0x3b224c;var _0x49beea,_0x352afe;this[_0x563a11(0x131)](),(_0x49beea=this[_0x563a11(0x41c)])==null||_0x49beea[_0x563a11(0x50d)]({'cmd':G[_0x563a11(0x582)],'data':{'roomID':this[_0x563a11(0x5d3)]}}),(_0x352afe=this[_0x563a11(0x41c)])==null||_0x352afe[_0x563a11(0x1b3)](),this['_event$']['complete'](),this['_sessionStatus$'][_0x563a11(0x163)](),this[_0x563a11(0x2fa)]();}[_0x3b224c(0x141)](_0x2c87a9){const _0x3922d9=_0x3b224c;_0x2c87a9[_0x3922d9(0x21d)]===G[_0x3922d9(0x1bc)]?this[_0x3922d9(0x429)](_0x2c87a9):_0x2c87a9['cmd']===G['RECV']&&this[_0x3922d9(0x2b7)](_0x2c87a9);}['_joinRoom'](_0x589ebe){const _0xf76ff0=_0x3b224c;this[_0xf76ff0(0x18d)]['next'](0x1),_0x589ebe['send']({'cmd':G['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xf76ff0(0x5d3)]}]}});}['_onJoinRoomEvent'](_0x575c8e){const _0x4c33f1=_0x3b224c;var _0x3fdad0;if(_0x575c8e[_0x4c33f1(0x4ef)]===Et['FAIL']){this[_0x4c33f1(0x1ca)][_0x4c33f1(0x134)]({'type':ge[_0x4c33f1(0x1a6)]['Warning'],'content':this['_localeService']['t'](_0x4c33f1(0x590))}),this[_0x4c33f1(0x18d)][_0x4c33f1(0x1e1)](0x2);return;}this[_0x4c33f1(0x18d)][_0x4c33f1(0x1e1)](0x3);const _0x28501a=(_0x3fdad0=_0x575c8e[_0x4c33f1(0x34e)][_0x4c33f1(0x2b6)][this[_0x4c33f1(0x5d3)]])==null?void 0x0:_0x3fdad0[_0x4c33f1(0x43a)];_0x28501a&&_0x28501a['forEach'](_0x4759a7=>this[_0x4c33f1(0x486)]['updateMember'](this[_0x4c33f1(0x5d3)],_0x4759a7));}[_0x3b224c(0x2b7)](_0x93b5a0){const _0x19a948=_0x3b224c;try{const _0x2748fc=_0x93b5a0['data'];switch(_0x2748fc[_0x19a948(0x4a9)]){case S[_0x19a948(0x136)][_0x19a948(0x31b)]:this[_0x19a948(0x5c6)](_0x2748fc),this[_0x19a948(0x3f0)][_0x19a948(0x1e1)](_0x2748fc);break;case S[_0x19a948(0x136)][_0x19a948(0x502)]:this[_0x19a948(0x3d8)](_0x2748fc),this[_0x19a948(0x3f0)][_0x19a948(0x1e1)](_0x2748fc);break;case S[_0x19a948(0x136)][_0x19a948(0x35e)]:case S[_0x19a948(0x136)][_0x19a948(0x26a)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x19a948(0x308)](),this[_0x19a948(0x3f0)][_0x19a948(0x1e1)](_0x2748fc);break;case S[_0x19a948(0x136)][_0x19a948(0x1d1)]:this[_0x19a948(0x13a)][_0x19a948(0x423)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x19a948(0x52a)](_0x2748fc)),this[_0x19a948(0x3f0)]['next'](_0x2748fc);break;case S[_0x19a948(0x136)]['COMMENT_UPDATE']:this[_0x19a948(0x54a)][_0x19a948(0x238)](_0x2748fc[_0x19a948(0x34e)]),this[_0x19a948(0x3f0)][_0x19a948(0x1e1)](_0x2748fc);break;default:this['_event$'][_0x19a948(0x1e1)](_0x2748fc);}}catch(_0x546fdf){this[_0x19a948(0x13a)]['error'](_0x546fdf,_0x93b5a0);}}[_0x3b224c(0x5c6)](_0x545369){const _0x1b37f7=_0x3b224c;this[_0x1b37f7(0x486)][_0x1b37f7(0x193)](this[_0x1b37f7(0x5d3)],_0x545369[_0x1b37f7(0x34e)]);}['_onUserLeave'](_0x16975c){const _0x4f6458=_0x3b224c;this['_memberService'][_0x4f6458(0x2e8)](this[_0x4f6458(0x5d3)],_0x16975c[_0x4f6458(0x34e)][_0x4f6458(0x5ba)]);}async[_0x3b224c(0x50d)](_0x2c969d,_0x39fa67){const _0x1a001a=_0x3b224c;if(this[_0x1a001a(0x543)]!==0x3||!this['_socket'])throw new Error(_0x1a001a(0x38b));try{_0x2c969d[_0x1a001a(0x4a9)]===S[_0x1a001a(0x136)][_0x1a001a(0x2df)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x1a001a(0x596)](_0x2c969d)),this[_0x1a001a(0x41c)][_0x1a001a(0x50d)]({'cmd':G[_0x1a001a(0x20f)],'routeKey':_0x39fa67,'routeType':'','data':_0x2c969d});}catch(_0x5a18c4){this['_logService'][_0x1a001a(0x423)](_0x5a18c4);}}['_scheduleCollaborationTimeoutTimer'](){const _0x3afd02=_0x3b224c;var _0x28fdaf;this[_0x3afd02(0x25f)]=window[_0x3afd02(0x325)](()=>{const _0x5b5348=_0x3afd02;this[_0x5b5348(0x25f)]=null,this['_messageService'][_0x5b5348(0x134)]({'type':ge[_0x5b5348(0x1a6)][_0x5b5348(0x187)],'content':this[_0x5b5348(0x57b)]['t'](_0x5b5348(0x54d))});},(_0x28fdaf=this[_0x3afd02(0x142)][_0x3afd02(0x469)](Ct))!=null?_0x28fdaf:nn);}[_0x3b224c(0x308)](){const _0x2cef7f=_0x3b224c;this[_0x2cef7f(0x25f)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x2cef7f(0x25f)]=null);}[_0x3b224c(0x596)](_0x20c203){const _0x2d48a2=_0x3b224c;if(!this['_shouldReportTelemetry'])return;const {data:_0x520c21}=_0x20c203,{unitID:_0x3adc23,changeset:_0xe22dce}=_0x520c21,{mutations:_0xae2725,type:_0x2ef03f}=_0xe22dce;this[_0x2d48a2(0x279)]={'unitId':_0x3adc23,'type':_0x2ef03f,'startTime':performance[_0x2d48a2(0x419)](),'stopTime':0x0,'duration':0x0,'size':ti(_0xae2725)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x3d866a=_0x3b224c;if(this[_0x3d866a(0x580)]){if(!this[_0x3d866a(0x279)]){this['_logService']['error']('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x3d866a(0x279)][_0x3d866a(0x2cd)]=performance[_0x3d866a(0x419)](),this[_0x3d866a(0x279)][_0x3d866a(0x4bf)]=this['_telemetryInfo'][_0x3d866a(0x2cd)]-this['_telemetryInfo'][_0x3d866a(0x5c5)],this['_telemetryService'][_0x3d866a(0x405)](ei,this[_0x3d866a(0x279)]),this['_telemetryInfo']=null;}}[_0x3b224c(0x131)](){const _0x1f20e2=_0x3b224c;this[_0x1f20e2(0x279)]=null;}},exports[_0x3b224c(0x466)]=ci([de(0x2,a['ILogService']),de(0x3,ee[_0x3b224c(0x23a)]),de(0x4,ee[_0x3b224c(0x2d5)]),de(0x5,a[_0x3b224c(0x160)]),de(0x6,a[_0x3b224c(0x556)](a[_0x3b224c(0x4ae)])),de(0x7,a[_0x3b224c(0x556)](exports[_0x3b224c(0x5db)])),de(0x8,a[_0x3b224c(0x556)](Tt)),de(0x9,a[_0x3b224c(0x3e1)](jn[_0x3b224c(0x525)]))],exports['CollaborationSession']);var li=Object['defineProperty'],hi=Object['getOwnPropertyDescriptor'],_i=(_0x366c57,_0x3a2823,_0x11393c,_0x16a1c9)=>{for(var _0x215c47=_0x16a1c9>0x1?void 0x0:_0x16a1c9?hi(_0x3a2823,_0x11393c):_0x3a2823,_0x1572ed=_0x366c57['length']-0x1,_0x1e4e27;_0x1572ed>=0x0;_0x1572ed--)(_0x1e4e27=_0x366c57[_0x1572ed])&&(_0x215c47=(_0x16a1c9?_0x1e4e27(_0x3a2823,_0x11393c,_0x215c47):_0x1e4e27(_0x215c47))||_0x215c47);return _0x16a1c9&&_0x215c47&&li(_0x3a2823,_0x11393c,_0x215c47),_0x215c47;},Ee=(_0x368378,_0x50f616)=>(_0x2ef4f2,_0x298057)=>_0x50f616(_0x2ef4f2,_0x298057,_0x368378);exports[_0x3b224c(0x5d8)]=class extends a[_0x3b224c(0x52b)]{constructor(_0x1cee7c,_0x54849a,_0x3f13b2,_0x4d7e93,_0x1fa363,_0x42c7d7){const _0x2a1bc0=_0x3b224c;super(),I(this,'_socket$',new A[(_0x2a1bc0(0x33e))](void 0x0)),I(this,'socket$',this[_0x2a1bc0(0x5b5)][_0x2a1bc0(0x4f7)]()),I(this,_0x2a1bc0(0x57d),null),I(this,_0x2a1bc0(0x221),new Map()),I(this,_0x2a1bc0(0x183),new A[(_0x2a1bc0(0x33e))](se[_0x2a1bc0(0x5a5)])),I(this,_0x2a1bc0(0x47e),this['_status$']['asObservable']()),I(this,_0x2a1bc0(0x52c),!0x1),I(this,_0x2a1bc0(0x39a)),I(this,_0x2a1bc0(0x176),0x0),I(this,'_sendHeartbeatTimer'),I(this,'_timeoutTimer'),(this[_0x2a1bc0(0x495)]=_0x1cee7c,this[_0x2a1bc0(0x57b)]=_0x54849a,this['_messageService']=_0x3f13b2,this[_0x2a1bc0(0x13a)]=_0x4d7e93,this['_configService']=_0x1fa363,this[_0x2a1bc0(0x202)]=_0x42c7d7,this[_0x2a1bc0(0x29d)]());}get[_0x3b224c(0x41c)](){const _0x644f9e=_0x3b224c;return this[_0x644f9e(0x5b5)][_0x644f9e(0x3df)]();}[_0x3b224c(0x29d)](){const _0x2a9e6c=_0x3b224c;this['_listenToOfflineEvent'](),this[_0x2a9e6c(0x303)]();}[_0x3b224c(0x2fa)](){const _0x13206=_0x3b224c;super['dispose'](),this[_0x13206(0x221)][_0x13206(0x54f)](_0x9af242=>_0x9af242['dispose']()),this[_0x13206(0x221)]['clear'](),this['_status$'][_0x13206(0x163)]();}async[_0x3b224c(0x376)](_0x3bb654){const _0x5ad8cd=_0x3b224c;if(this[_0x5ad8cd(0x221)][_0x5ad8cd(0x339)](_0x3bb654))return this[_0x5ad8cd(0x221)]['get'](_0x3bb654);this[_0x5ad8cd(0x527)]();const _0xdd25cb=this['_injector'][_0x5ad8cd(0x560)](exports[_0x5ad8cd(0x466)],_0x3bb654,this[_0x5ad8cd(0x5b5)][_0x5ad8cd(0x4f7)]());return this['_sessions'][_0x5ad8cd(0x437)](_0x3bb654,_0xdd25cb),_0xdd25cb;}[_0x3b224c(0x1de)](_0x5e328a){const _0x1c7fc2=_0x3b224c;var _0x59f21a;const _0x397604=this['_sessions']['get'](_0x5e328a);_0x397604&&(this[_0x1c7fc2(0x221)][_0x1c7fc2(0x463)](_0x5e328a),_0x397604[_0x1c7fc2(0x1b3)]()),this['_sessions'][_0x1c7fc2(0x14d)]||(_0x59f21a=this[_0x1c7fc2(0x41c)])==null||_0x59f21a[_0x1c7fc2(0x1b3)]();}[_0x3b224c(0x365)](){const _0x5262d7=_0x3b224c;this[_0x5262d7(0x176)]=0x0,this[_0x5262d7(0x39a)]!=null&&(clearTimeout(this[_0x5262d7(0x39a)]),this[_0x5262d7(0x39a)]=null),this[_0x5262d7(0x297)]();}['_createSocket'](){const _0xdd1c55=_0x3b224c;var _0x2c1448,_0x4f7da5;const _0x2747c7=this[_0xdd1c55(0x142)]['getConfig'](en),_0x3d66c5=this['_configService']['getConfig'](te),_0x177af2=(_0x4f7da5=(_0x2c1448=_0x3d66c5==null?void 0x0:_0x3d66c5[_0xdd1c55(0x24e)])!=null?_0x2c1448:_0x2747c7)!=null?_0x4f7da5:Wn,_0x4194aa=this[_0xdd1c55(0x202)][_0xdd1c55(0x235)](_0x177af2);return this['_candidateSocket']=_0x4194aa,_0x4194aa;}[_0x3b224c(0x527)](){const _0x330b42=_0x3b224c;var _0x3c323e,_0x1d34f9;try{const _0x5e4fce=(_0x1d34f9=(_0x3c323e=this[_0x330b42(0x41c)])!=null?_0x3c323e:this[_0x330b42(0x57d)])!=null?_0x1d34f9:this[_0x330b42(0x3e4)]();if(_0x5e4fce){const _0x4349cd=_0x5e4fce['send'];_0x5e4fce[_0x330b42(0x50d)]=_0x311bf2=>(this[_0x330b42(0x24b)](),_0x4349cd[_0x330b42(0x44a)](_0x5e4fce,[_0x311bf2])),_0x5e4fce[_0x330b42(0x4c6)][_0x330b42(0x2de)](_0x8d03ea=>this[_0x330b42(0x323)](_0x5e4fce,_0x8d03ea)),_0x5e4fce[_0x330b42(0x330)][_0x330b42(0x3cc)](V['take'](0x1))[_0x330b42(0x2de)](_0x49682d=>this[_0x330b42(0x13a)]['error']('[CollaborationSessionService]:\x20socket\x20error',_0x49682d)),_0x5e4fce[_0x330b42(0x288)]['pipe'](V[_0x330b42(0x189)](0x1))[_0x330b42(0x2de)](()=>{const _0x16d88d=_0x330b42;this[_0x16d88d(0x2f9)](_0x5e4fce);}),_0x5e4fce[_0x330b42(0x1bf)][_0x330b42(0x3cc)](V[_0x330b42(0x189)](0x1))['subscribe'](_0x5c625e=>{const _0x34d46c=_0x330b42;this['_logService'][_0x34d46c(0x241)](_0x34d46c(0x292),_0x34d46c(0x53d),_0x5c625e),this['_onConnectionFailed']();});}}catch(_0x4c6c1d){this['_logService'][_0x330b42(0x423)](_0x4c6c1d),this[_0x330b42(0x44b)]();}}[_0x3b224c(0x2f9)](_0x56d35d){const _0x27c506=_0x3b224c;this[_0x27c506(0x13a)][_0x27c506(0x241)](_0x27c506(0x292),_0x27c506(0x2a2)),_0x56d35d[_0x27c506(0x50d)]({'cmd':G['HELLO']}),this[_0x27c506(0x24b)]();}['_listenToOfflineEvent'](){const _0x823cb=_0x3b224c;window['addEventListener'](_0x823cb(0x3e9),()=>this['_onOffline']());}['_onOffline'](){const _0x3cd47e=_0x3b224c;this['_socketReady']=!0x1,this[_0x3cd47e(0x57d)]=null,this['_status$'][_0x3cd47e(0x1e1)](se[_0x3cd47e(0x4e2)]),this[_0x3cd47e(0x5b5)]['next'](null),this[_0x3cd47e(0x216)](),this['_clearHeartbeatTimer']();}[_0x3b224c(0x44b)](){const _0x1686d5=_0x3b224c;var _0x35252b;this[_0x1686d5(0x1bd)](),this[_0x1686d5(0x176)]<((_0x35252b=this['_configService'][_0x1686d5(0x469)](sn))!=null?_0x35252b:Gn)?(this[_0x1686d5(0x1ca)]['show']({'key':_0x1686d5(0x470),'type':ge[_0x1686d5(0x1a6)][_0x1686d5(0x177)],'content':this['_localeService']['t']('session.will-retry')}),this['_tryReconnect']()):this[_0x1686d5(0x1ca)][_0x1686d5(0x134)]({'key':_0x1686d5(0x470),'type':ge[_0x1686d5(0x1a6)]['Error'],'content':this[_0x1686d5(0x57b)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x155adc=_0x3b224c,_0x51842d=()=>{const _0x2eaadc=_0x1276;this[_0x2eaadc(0x41c)]||this[_0x2eaadc(0x365)]();},_0x47a72f=()=>{const _0x26922a=_0x1276;this[_0x26922a(0x41c)]||document['visibilityState']===_0x26922a(0x1df)||this[_0x26922a(0x365)]();};window[_0x155adc(0x240)](_0x155adc(0x3d5),_0x51842d),document[_0x155adc(0x240)]('visibilitychange',_0x47a72f);}[_0x3b224c(0x297)](){const _0x47b704=_0x3b224c;var _0x165a6c;const _0xdb214=this[_0x47b704(0x176)],_0x29a3c3=this[_0x47b704(0x142)][_0x47b704(0x469)](te),_0x4aa307=_0xdb214===0x0?0x0:((_0x165a6c=_0x29a3c3==null?void 0x0:_0x29a3c3[_0x47b704(0x2c7)])!=null?_0x165a6c:Vn)*0x2**_0xdb214;this[_0x47b704(0x39a)]=window['setTimeout'](()=>{const _0xb5377c=_0x47b704;clearTimeout(this['_retryConnectingTimer']),this[_0xb5377c(0x39a)]=null,this['_tryEnsureSocket']();},_0x4aa307),this[_0x47b704(0x176)]+=0x1;}[_0x3b224c(0x323)](_0x516c21,_0x4f0114){const _0x17811c=_0x3b224c,{cmd:_0x1f5b57}=_0x4f0114;_0x1f5b57===G['HELLO']&&!this[_0x17811c(0x52c)]&&(_0x516c21[_0x17811c(0x5ba)]=_0x4f0114[_0x17811c(0x34e)][_0x17811c(0x5ba)],this[_0x17811c(0x5b5)]['next'](_0x516c21),this[_0x17811c(0x183)][_0x17811c(0x1e1)](se['ONLINE']),this[_0x17811c(0x52c)]=!0x0,this['_candidateSocket']=null),_0x1f5b57===G[_0x17811c(0x2e7)]&&this[_0x17811c(0x216)](),this[_0x17811c(0x24b)]();}[_0x3b224c(0x24b)](){const _0x513f88=_0x3b224c;var _0x47589e;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x513f88(0x53b)](),(_0x47589e=this[_0x513f88(0x142)][_0x513f88(0x469)](tn))!=null?_0x47589e:Fn);}[_0x3b224c(0x53b)](){const _0x2e8ecf=_0x3b224c;this[_0x2e8ecf(0x41c)][_0x2e8ecf(0x50d)]({'cmd':G[_0x2e8ecf(0x2e7)]}),this[_0x2e8ecf(0x575)]();}[_0x3b224c(0x575)](){const _0x1b6a62=_0x3b224c;var _0x51ae21;this[_0x1b6a62(0x3db)]=window[_0x1b6a62(0x325)](()=>this[_0x1b6a62(0x44b)](),(_0x51ae21=this[_0x1b6a62(0x142)][_0x1b6a62(0x469)](Ct))!=null?_0x51ae21:nn);}['_clearHeartbeatTimer'](){const _0x49176=_0x3b224c;this[_0x49176(0x377)]!=null&&(clearTimeout(this[_0x49176(0x377)]),this[_0x49176(0x377)]=null);}[_0x3b224c(0x216)](){const _0x445936=_0x3b224c;this[_0x445936(0x3db)]!=null&&(clearTimeout(this[_0x445936(0x3db)]),this[_0x445936(0x3db)]=null);}},exports[_0x3b224c(0x5d8)]=_i([Ee(0x0,a['Inject'](a['Injector'])),Ee(0x1,a['Inject'](a[_0x3b224c(0x4ae)])),Ee(0x2,ee[_0x3b224c(0x2d5)]),Ee(0x3,a[_0x3b224c(0x5ae)]),Ee(0x4,a['IConfigService']),Ee(0x5,bt)],exports[_0x3b224c(0x5d8)]);const Y=[];for(let s=0x0;s<0x100;++s)Y['push']((s+0x100)[_0x3b224c(0x4cf)](0x10)['slice'](0x1));function ui(_0x32632b,_0x20d7e5=0x0){const _0x239428=_0x3b224c;return(Y[_0x32632b[_0x20d7e5+0x0]]+Y[_0x32632b[_0x20d7e5+0x1]]+Y[_0x32632b[_0x20d7e5+0x2]]+Y[_0x32632b[_0x20d7e5+0x3]]+'-'+Y[_0x32632b[_0x20d7e5+0x4]]+Y[_0x32632b[_0x20d7e5+0x5]]+'-'+Y[_0x32632b[_0x20d7e5+0x6]]+Y[_0x32632b[_0x20d7e5+0x7]]+'-'+Y[_0x32632b[_0x20d7e5+0x8]]+Y[_0x32632b[_0x20d7e5+0x9]]+'-'+Y[_0x32632b[_0x20d7e5+0xa]]+Y[_0x32632b[_0x20d7e5+0xb]]+Y[_0x32632b[_0x20d7e5+0xc]]+Y[_0x32632b[_0x20d7e5+0xd]]+Y[_0x32632b[_0x20d7e5+0xe]]+Y[_0x32632b[_0x20d7e5+0xf]])[_0x239428(0x476)]();}let Je;const di=new Uint8Array(0x10);function fi(){const _0x1d9e36=_0x3b224c;if(!Je){if(typeof crypto>'u'||!crypto[_0x1d9e36(0x458)])throw new Error('crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported');Je=crypto[_0x1d9e36(0x458)][_0x1d9e36(0x264)](crypto);}return Je(di);}const vi=typeof crypto<'u'&&crypto[_0x3b224c(0x49c)]&&crypto['randomUUID'][_0x3b224c(0x264)](crypto),Mt={'randomUUID':vi};function mi(_0x504804,_0x3396f3,_0x745dff){const _0x373659=_0x3b224c;if(Mt[_0x373659(0x49c)]&&!_0x3396f3&&!_0x504804)return Mt[_0x373659(0x49c)]();_0x504804=_0x504804||{};const _0x3ca9ab=_0x504804[_0x373659(0x4cb)]||(_0x504804[_0x373659(0x448)]||fi)();return _0x3ca9ab[0x6]=_0x3ca9ab[0x6]&0xf|0x40,_0x3ca9ab[0x8]=_0x3ca9ab[0x8]&0x3f|0x80,ui(_0x3ca9ab);}var Si=Object['defineProperty'],pi=Object[_0x3b224c(0x233)],gi=(_0x193f32,_0x485b0f,_0x370895,_0x261f52)=>{for(var _0x23bbc5=_0x261f52>0x1?void 0x0:_0x261f52?pi(_0x485b0f,_0x370895):_0x485b0f,_0x25e3f7=_0x193f32['length']-0x1,_0xf9bd8e;_0x25e3f7>=0x0;_0x25e3f7--)(_0xf9bd8e=_0x193f32[_0x25e3f7])&&(_0x23bbc5=(_0x261f52?_0xf9bd8e(_0x485b0f,_0x370895,_0x23bbc5):_0xf9bd8e(_0x23bbc5))||_0x23bbc5);return _0x261f52&&_0x23bbc5&&Si(_0x485b0f,_0x370895,_0x23bbc5),_0x23bbc5;},Ze=(_0x172431,_0x446a14)=>(_0x1d9403,_0x3e1cbb)=>_0x446a14(_0x1d9403,_0x3e1cbb,_0x172431);let Be=class{constructor(_0x267001,_0x1c43b5,_0x2c5ab9){const _0x3cbcab=_0x3b224c;this[_0x3cbcab(0x495)]=_0x267001,this[_0x3cbcab(0x5c9)]=_0x1c43b5,this[_0x3cbcab(0x243)]=_0x2c5ab9;}[_0x3b224c(0x57c)](_0x165b28){const _0xf6936a=_0x3b224c;this['_transformUndoRedoStack'](_0x165b28),this[_0xf6936a(0x485)](_0x165b28);}['transformRemoteChangeset'](_0x4afa51){const _0x458a36=_0x3b224c,{unitID:_0x2d67f7}=_0x4afa51,_0x4edb53=this[_0x458a36(0x243)]['getRenderById'](_0x2d67f7)[_0x458a36(0x36a)](J['DocIMEInputManagerService']),{redoCache:_0x4e7836}=_0x4edb53[_0x458a36(0x172)]();if(_0x4e7836[_0x458a36(0x2a8)]===0x0)return _0x4afa51;let _0x30a402=a['Tools']['deepClone'](_0x4afa51['mutations'][0x0]);for(let _0x5701b2=0x0;_0x5701b2<_0x4e7836[_0x458a36(0x2a8)];_0x5701b2++){const _0x2dbf51={'id':_0x458a36(0x59c),'params':{..._0x4e7836[_0x5701b2]}},_0x1c1e33=this['_transformService']['transformMutation'](_0x30a402,_0x2dbf51,!0x1);if(S[_0x458a36(0x290)](_0x1c1e33))throw _0x1c1e33[_0x458a36(0x423)];_0x30a402=_0x1c1e33['m1Prime'];}return{...a[_0x458a36(0x3b9)][_0x458a36(0x4d6)](_0x4afa51),'mutations':[_0x30a402]};}[_0x3b224c(0x51b)](_0x5128b2){const _0x418ed4=_0x3b224c,{unitID:_0x1814a7}=_0x5128b2,_0x880a8d=this[_0x418ed4(0x243)][_0x418ed4(0x335)](_0x1814a7)[_0x418ed4(0x36a)](J['DocIMEInputManagerService']),{undoCache:_0x492200,redoCache:_0x5cf899}=_0x880a8d[_0x418ed4(0x172)]();if(_0x492200[_0x418ed4(0x2a8)]===0x0||_0x5cf899['length']===0x0)return;const _0x219842=[],_0x2f365d=[];let _0x5437ad=a['Tools']['deepClone'](_0x5128b2[_0x418ed4(0x229)][0x0]),_0x1e3dfc=a[_0x418ed4(0x3b9)]['deepClone'](_0x5128b2[_0x418ed4(0x229)][0x0]);for(let _0x275bfa=_0x492200[_0x418ed4(0x2a8)]-0x1;_0x275bfa>=0x0;_0x275bfa--){const _0x148b17={'id':'doc.mutation.rich-text-editing','params':{..._0x492200[_0x275bfa]}},_0x66116a={'id':_0x418ed4(0x59c),'params':{..._0x5cf899[_0x275bfa]}},_0x3a527c=this[_0x418ed4(0x5c9)][_0x418ed4(0x38c)](_0x5437ad,_0x148b17,!0x1),_0x307a83=this[_0x418ed4(0x5c9)]['transformMutation'](_0x1e3dfc,_0x66116a,!0x1);if(S[_0x418ed4(0x290)](_0x3a527c))throw _0x3a527c[_0x418ed4(0x423)];if(S['isTransformMutationFailure'](_0x307a83))throw _0x307a83[_0x418ed4(0x423)];_0x219842[_0x418ed4(0x5c8)](_0x3a527c[_0x418ed4(0x3f1)][_0x418ed4(0x2be)]),_0x2f365d[_0x418ed4(0x5c8)](_0x307a83[_0x418ed4(0x3f1)][_0x418ed4(0x2be)]),_0x5437ad=_0x3a527c[_0x418ed4(0x1d5)],_0x1e3dfc=_0x307a83[_0x418ed4(0x1d5)];}_0x880a8d['setUndoRedoMutationParamsCache']({'undoCache':_0x219842,'redoCache':_0x2f365d});}[_0x3b224c(0x485)](_0x48e81d){const _0x3aad93=_0x3b224c,{unitID:_0x4d5a03}=_0x48e81d,_0xa4d850=this['_renderManagerService'][_0x3aad93(0x335)](_0x4d5a03)['with'](J[_0x3aad93(0x144)]),_0x1ffb60=_0xa4d850[_0x3aad93(0x16e)]();if(_0x1ffb60==null)return;const _0x63cf42=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x48e81d[_0x3aad93(0x236)],'actions':null,'textRanges':[_0x1ffb60]}}],_0x4ebee9=this[_0x3aad93(0x5c9)][_0x3aad93(0x16d)](_0x48e81d,_0x63cf42);if(!S['isTransformMutationsWithChangesetSuccess'](_0x4ebee9))throw _0x4ebee9['error'];const _0xb3f823=_0x4ebee9[_0x3aad93(0x3f1)][0x0]['params'][_0x3aad93(0x4a8)];Array[_0x3aad93(0x34b)](_0xb3f823)&&_0xb3f823[_0x3aad93(0x2a8)]&&_0xa4d850[_0x3aad93(0x2c5)](_0xb3f823[0x0]);}};Be=gi([Ze(0x0,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),Ze(0x1,S[_0x3b224c(0x180)]),Ze(0x2,K[_0x3b224c(0x569)])],Be);var Ii=Object[_0x3b224c(0x209)],Ci=Object[_0x3b224c(0x233)],Ei=(_0x4ed58b,_0x47077f,_0x40828e,_0x1b4bae)=>{const _0x4313cc=_0x3b224c;for(var _0x2d8c52=_0x1b4bae>0x1?void 0x0:_0x1b4bae?Ci(_0x47077f,_0x40828e):_0x47077f,_0x54da88=_0x4ed58b[_0x4313cc(0x2a8)]-0x1,_0x2cac81;_0x54da88>=0x0;_0x54da88--)(_0x2cac81=_0x4ed58b[_0x54da88])&&(_0x2d8c52=(_0x1b4bae?_0x2cac81(_0x47077f,_0x40828e,_0x2d8c52):_0x2cac81(_0x2d8c52))||_0x2d8c52);return _0x1b4bae&&_0x2d8c52&&Ii(_0x47077f,_0x40828e,_0x2d8c52),_0x2d8c52;},Pe=(_0x11d10f,_0x3c4330)=>(_0x44c08d,_0x11a8c5)=>_0x3c4330(_0x44c08d,_0x11a8c5,_0x11d10f);exports[_0x3b224c(0x42a)]=class extends a[_0x3b224c(0x52b)]{constructor(_0x3699d0,_0x26c409,_0x4226ac,_0x29f9ec,_0x478383){const _0x22d469=_0x3b224c;super(),I(this,_0x22d469(0x5a3),new Map()),I(this,'_saveTaskMap',new Map()),I(this,_0x22d469(0x347),!0x1),(this[_0x22d469(0x142)]=_0x3699d0,this[_0x22d469(0x15a)]=_0x26c409,this[_0x22d469(0x4d7)]=_0x4226ac,this['_localeService']=_0x29f9ec,this[_0x22d469(0x2dc)]=_0x478383,this[_0x22d469(0x4ba)]());}[_0x3b224c(0x262)](){const _0x1296e1=_0x3b224c;this[_0x1296e1(0x347)]=!0x0;}['enableLocalCache'](){const _0x474d0b=_0x3b224c;this[_0x474d0b(0x347)]=!0x1;}[_0x3b224c(0x2fa)](){const _0x5d7ced=_0x3b224c;this['exhaustSavingTask']()['then'](()=>super[_0x5d7ced(0x2fa)]());}async['loadOfflineData'](_0x16ca24){const _0x5a3248=_0x3b224c;return this[_0x5a3248(0x347)]?null:this[_0x5a3248(0x15a)][_0x5a3248(0x1be)](At(_0x16ca24));}async[_0x3b224c(0x278)](_0x300356,_0x140b48){const _0x46471d=_0x3b224c;return!!this[_0x46471d(0x15a)][_0x46471d(0x4c7)](_0x300356,_0x140b48);}[_0x3b224c(0x2a7)](_0x530f84,_0xfa7475,_0x2a3c5e,_0x1e8538){const _0x22d648=_0x3b224c,_0x2f9ad2=this[_0x22d648(0x2dc)][_0x22d648(0x58d)](_0x530f84);this[_0x22d648(0x5a3)]['set'](_0x530f84,{'unitID':_0x530f84,'type':_0xfa7475,'awaitingChangeset':_0x2a3c5e,'mutations':_0x1e8538,'rev':_0x2f9ad2}),this[_0x22d648(0x541)][_0x22d648(0x339)](_0x530f84)||this[_0x22d648(0x47c)](_0x530f84);}[_0x3b224c(0x47c)](_0x274d6f){const _0x16cf0d=_0x3b224c,_0xe93074=this[_0x16cf0d(0x3ff)]();_0xe93074===0x0?this[_0x16cf0d(0x41f)](_0x274d6f):this[_0x16cf0d(0x541)][_0x16cf0d(0x437)](_0x274d6f,setTimeout(()=>this[_0x16cf0d(0x41f)](_0x274d6f),_0xe93074));}[_0x3b224c(0x3ff)](){const _0x6c4bc7=_0x3b224c;var _0x462491;return(_0x462491=this['_configService'][_0x6c4bc7(0x469)](rn))!=null?_0x462491:Yn;}['_saveCache'](_0x29d5bf){const _0x5e0b3d=_0x3b224c,_0x2f774e=this[_0x5e0b3d(0x541)]['get'](_0x29d5bf);return _0x2f774e!==void 0x0&&window[_0x5e0b3d(0x598)](_0x2f774e),this[_0x5e0b3d(0x15a)][_0x5e0b3d(0x4c7)](At(_0x29d5bf),this['_cachedData']['get'](_0x29d5bf))[_0x5e0b3d(0x55b)](()=>this[_0x5e0b3d(0x541)][_0x5e0b3d(0x463)](_0x29d5bf));}async[_0x3b224c(0x191)](){const _0x40830d=_0x3b224c,_0x337e7f=[];this[_0x40830d(0x541)]['forEach']((_0x5af5e4,_0x2327b6)=>{const _0x296a47=_0x40830d;window[_0x296a47(0x598)](_0x5af5e4),_0x337e7f[_0x296a47(0x1a8)](this[_0x296a47(0x41f)](_0x2327b6)[_0x296a47(0x55b)](()=>{const _0x55c9f7=_0x296a47;this[_0x55c9f7(0x541)][_0x55c9f7(0x463)](_0x2327b6);}));}),await Promise[_0x40830d(0x31d)](_0x337e7f);}[_0x3b224c(0x4ba)](){const _0x19b205=_0x3b224c;this[_0x19b205(0x220)](this['_beforeCloseService'][_0x19b205(0x49a)](()=>{const _0x161e3d=_0x19b205;if(this['_saveTaskMap'][_0x161e3d(0x14d)])return this[_0x161e3d(0x57b)]['t'](_0x161e3d(0x38d));}));}},exports[_0x3b224c(0x42a)]=Ei([Pe(0x0,a['IConfigService']),Pe(0x1,a[_0x3b224c(0x599)]),Pe(0x2,ee[_0x3b224c(0x23a)]),Pe(0x3,a['Inject'](a['LocaleService'])),Pe(0x4,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)]))],exports[_0x3b224c(0x42a)]);function At(_0x9d449){const _0x25c53c=_0x3b224c;return _0x25c53c(0x5c4)+_0x9d449;}var bi=Object[_0x3b224c(0x209)],Ti=Object['getOwnPropertyDescriptor'],Ri=(_0x262777,_0x435248,_0x51b6db,_0x503f5a)=>{const _0x38e6c1=_0x3b224c;for(var _0x570deb=_0x503f5a>0x1?void 0x0:_0x503f5a?Ti(_0x435248,_0x51b6db):_0x435248,_0x541753=_0x262777[_0x38e6c1(0x2a8)]-0x1,_0x45d825;_0x541753>=0x0;_0x541753--)(_0x45d825=_0x262777[_0x541753])&&(_0x570deb=(_0x503f5a?_0x45d825(_0x435248,_0x51b6db,_0x570deb):_0x45d825(_0x570deb))||_0x570deb);return _0x503f5a&&_0x570deb&&bi(_0x435248,_0x51b6db,_0x570deb),_0x570deb;},Qe=(_0x5314a0,_0x4f22ac)=>(_0x2afb20,_0x3d4d11)=>_0x4f22ac(_0x2afb20,_0x3d4d11,_0x5314a0);function yi(_0x193b41){const _0x10bc5d=_0x3b224c,{unitID:_0x41e9be,mutations:_0x57212e}=_0x193b41;return{'unitId':_0x41e9be,'subUnitId':_0x57212e[0x0][_0x10bc5d(0x2be)][_0x10bc5d(0x4b4)]};}let ke=class{constructor(_0x306cf8,_0x293644,_0x36932b){const _0x1db4f9=_0x3b224c;this[_0x1db4f9(0x495)]=_0x306cf8,this[_0x1db4f9(0x5c9)]=_0x293644,this[_0x1db4f9(0x223)]=_0x36932b;}[_0x3b224c(0x372)](_0x5adf46){const _0x28c2cd=_0x3b224c;var _0x58f873,_0x133ea3,_0xaa190e,_0x124caa;const _0x4c13d9=this['_injector'][_0x28c2cd(0x273)](k[_0x28c2cd(0x5a7)]),{unitId:_0x20c513,subUnitId:_0x2941b0}=yi(_0x5adf46),_0x1e1694=_0x4c13d9[_0x28c2cd(0x32c)](_0x20c513)[_0x28c2cd(0x16f)](),_0x4b6c59=(_0x133ea3=(_0x58f873=this[_0x28c2cd(0x223)]['getUnit'](_0x20c513))==null?void 0x0:_0x58f873[_0x28c2cd(0x280)]())==null?void 0x0:_0x133ea3[_0x28c2cd(0x244)]();if(_0x1e1694['length']===0x0||!_0x20c513||!_0x2941b0)return;const _0x484ff5=[{'id':k['SetSelectionsOperation']['id'],'params':{'unitId':_0x20c513,'subUnitId':_0x4b6c59,'selections':a[_0x28c2cd(0x3b9)][_0x28c2cd(0x4d6)](_0x1e1694)}}],_0x1df806=this['_transformService'][_0x28c2cd(0x16d)](_0x5adf46,_0x484ff5);if(!S[_0x28c2cd(0x4de)](_0x1df806))throw _0x1df806['error'];const _0x411552=(_0x124caa=(_0xaa190e=_0x1df806['m2Prime'][0x0])==null?void 0x0:_0xaa190e[_0x28c2cd(0x2be)])==null?void 0x0:_0x124caa['selections'];if(Array[_0x28c2cd(0x34b)](_0x411552)&&_0x411552['length']){if(_0x411552[_0x28c2cd(0x2a8)]===_0x484ff5[0x0][_0x28c2cd(0x2be)]['selections'][_0x28c2cd(0x2a8)]&&_0x411552[_0x28c2cd(0x49f)]((_0x2cd4aa,_0x4361e7)=>a[_0x28c2cd(0x44c)][_0x28c2cd(0x40d)](_0x2cd4aa[_0x28c2cd(0x40c)],_0x484ff5[0x0][_0x28c2cd(0x2be)]['selections'][_0x4361e7][_0x28c2cd(0x40c)])))return;this[_0x28c2cd(0x495)][_0x28c2cd(0x273)](a[_0x28c2cd(0x3d4)])[_0x28c2cd(0x5ad)](k['SetSelectionsOperation']['id'],{'unitId':_0x20c513,'subUnitId':_0x4b6c59,'selections':_0x411552});}}};ke=Ri([Qe(0x0,a[_0x3b224c(0x556)](a['Injector'])),Qe(0x1,S[_0x3b224c(0x180)]),Qe(0x2,a[_0x3b224c(0x5a1)])],ke);const qe=a[_0x3b224c(0x2da)]('univer-pro.collaboration-client.single-active-unit-service');var un=(_0x4ee732=>(_0x4ee732[_0x4ee732['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3b224c(0x4df),_0x4ee732[_0x4ee732[_0x3b224c(0x266)]=0x1]=_0x3b224c(0x266),_0x4ee732))(un||{});const Nt=0x7530,Lt='ACTIVE_UNIT_EVENT_CHANNEL';class Oi extends a[_0x3b224c(0x52b)]{constructor(){const _0x52454a=_0x3b224c;super(),I(this,_0x52454a(0x1c6),a['Tools'][_0x52454a(0x143)]()),I(this,_0x52454a(0x4e6),new Set()),I(this,_0x52454a(0x40e),new Map()),I(this,'_heartbeatTimer',null),I(this,_0x52454a(0x394),new Map()),I(this,_0x52454a(0x45f),new Map()),this[_0x52454a(0x578)]();}[_0x3b224c(0x2fa)](){const _0x5a4dc8=_0x3b224c;super[_0x5a4dc8(0x2fa)](),this['_clearOtherTimers'][_0x5a4dc8(0x54f)]((_0xc1eba2,_0x3b28c2)=>this[_0x5a4dc8(0x29f)](_0x3b28c2)),this[_0x5a4dc8(0x420)]&&window[_0x5a4dc8(0x491)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x2ee4af){const _0x586eef=_0x3b224c;return this['_ensureSubject'](_0x2ee4af)[_0x586eef(0x3cc)](A[_0x586eef(0x1ee)]());}[_0x3b224c(0x2f5)](_0xd9daf7){const _0x8e3dd9=_0x3b224c;this['_selfUnitIDs'][_0x8e3dd9(0x14d)]===0x0&&this[_0x8e3dd9(0x20e)](),this[_0x8e3dd9(0x4e6)][_0x8e3dd9(0x594)](_0xd9daf7),this[_0x8e3dd9(0x2c3)]({'type':0x0,'memberID':this[_0x8e3dd9(0x1c6)],'unitIDs':[_0xd9daf7],'isForwarded':!0x1});}['disposeUnit'](_0x916d00){const _0x4f1d5a=_0x3b224c;this[_0x4f1d5a(0x4e6)][_0x4f1d5a(0x463)](_0x916d00),this['_selfUnitIDs']['size']===0x0&&this[_0x4f1d5a(0x420)]&&window['clearInterval'](this[_0x4f1d5a(0x420)]);}[_0x3b224c(0x578)](){const _0x5e5d0d=_0x3b224c;this[_0x5e5d0d(0x220)](a[_0x5e5d0d(0x597)](A[_0x5e5d0d(0x380)](window,'storage')[_0x5e5d0d(0x2de)](_0xd3cb4f=>{const _0x392750=_0x5e5d0d;if(_0xd3cb4f[_0x392750(0x217)]!==Lt||!_0xd3cb4f[_0x392750(0x3ac)])return;const _0x11ae45=JSON[_0x392750(0x3d3)](_0xd3cb4f['newValue']);this[_0x392750(0x5b8)](_0x11ae45);}))),window[_0x5e5d0d(0x240)]('unload',()=>this[_0x5e5d0d(0x2c3)]({'type':0x1,'memberID':this[_0x5e5d0d(0x1c6)],'unitIDs':Array['from'](this[_0x5e5d0d(0x4e6)])}));}[_0x3b224c(0x5b8)](_0x4e064b){const _0xcc9895=_0x3b224c;switch(_0x4e064b[_0xcc9895(0x5bb)]){case 0x0:this[_0xcc9895(0x368)](_0x4e064b);break;case 0x1:this[_0xcc9895(0x4c9)](_0x4e064b);break;case 0x2:this['_handleHeartbeatEvent'](_0x4e064b);break;}}[_0x3b224c(0x368)](_0x228fa9){const _0x2ed05f=_0x3b224c,{unitIDs:_0x23c843,memberID:_0x47c7cb,isForwarded:_0x1c8da3}=_0x228fa9;_0x23c843[_0x2ed05f(0x54f)](_0x175b5e=>{const _0x5bde44=_0x2ed05f;if(!_0x1c8da3&&this[_0x5bde44(0x40e)][_0x5bde44(0x339)](_0x175b5e)&&this[_0x5bde44(0x503)](_0x175b5e)[_0x5bde44(0x1e1)](0x1),!this[_0x5bde44(0x40e)][_0x5bde44(0x339)](_0x175b5e)||!this[_0x5bde44(0x40e)][_0x5bde44(0x273)](_0x175b5e)[_0x5bde44(0x339)](_0x47c7cb)){const _0x2c7d37=this[_0x5bde44(0x40e)]['get'](_0x175b5e)||new Set();_0x2c7d37[_0x5bde44(0x594)](_0x47c7cb),this[_0x5bde44(0x40e)][_0x5bde44(0x437)](_0x175b5e,_0x2c7d37),this['_scheduleClearOtherTimer'](_0x47c7cb);}}),_0x1c8da3||this[_0x2ed05f(0x2c3)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2ed05f(0x4e6)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x61a46b){const _0x33c23c=_0x3b224c;this[_0x33c23c(0x29f)](_0x61a46b);const _0xd1eea4=window['setTimeout'](()=>{const _0x16b904=_0x33c23c;this[_0x16b904(0x40e)][_0x16b904(0x54f)](_0x4be683=>{const _0x1e24be=_0x16b904;_0x4be683[_0x1e24be(0x463)](_0x61a46b);});},Nt*0x2);this['_clearOtherTimers'][_0x33c23c(0x437)](_0x61a46b,_0xd1eea4);}['_removeClearOtherTimer'](_0x570b59){const _0x5b79f0=_0x3b224c;if(this['_clearOtherTimers'][_0x5b79f0(0x339)](_0x570b59)){const _0x35280a=this[_0x5b79f0(0x394)][_0x5b79f0(0x273)](_0x570b59);_0x35280a&&window[_0x5b79f0(0x598)](_0x35280a),this['_clearOtherTimers'][_0x5b79f0(0x437)](_0x570b59,null);}}['_handleLeaveEvent'](_0x4ea01b){const _0x2d81f2=_0x3b224c,{memberID:_0x394ee6,unitIDs:_0x195873}=_0x4ea01b;_0x195873[_0x2d81f2(0x54f)](_0x3a8a1c=>{const _0x340adc=_0x2d81f2;var _0x5f2ba8;const _0x131af3=this[_0x340adc(0x40e)][_0x340adc(0x273)](_0x3a8a1c);_0x131af3&&(_0x131af3[_0x340adc(0x463)](_0x394ee6),(_0x5f2ba8=this['_ensureSubject'](_0x3a8a1c))==null||_0x5f2ba8['next'](_0x131af3[_0x340adc(0x14d)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x394ee6);}['_handleHeartbeatEvent'](_0x5243fb){const _0x424576=_0x3b224c;this[_0x424576(0x467)](_0x5243fb['memberID']);}[_0x3b224c(0x2c3)](_0x2a418f){const _0x4b0677=_0x3b224c;localStorage['setItem'](Lt,JSON[_0x4b0677(0x52a)](_0x2a418f));}[_0x3b224c(0x20e)](){const _0x503ff4=_0x3b224c;this[_0x503ff4(0x420)]=window[_0x503ff4(0x164)](()=>{const _0x4e9180=_0x503ff4;this[_0x4e9180(0x2c3)]({'type':0x2,'memberID':this[_0x4e9180(0x1c6)]});},Nt);}[_0x3b224c(0x503)](_0x32e5d7){const _0x18f06d=_0x3b224c;return this[_0x18f06d(0x45f)][_0x18f06d(0x339)](_0x32e5d7)||this[_0x18f06d(0x45f)][_0x18f06d(0x437)](_0x32e5d7,new A[(_0x18f06d(0x33e))](0x0)),this['_unitStatus'][_0x18f06d(0x273)](_0x32e5d7);}}var Di=Object[_0x3b224c(0x209)],wi=Object[_0x3b224c(0x233)],Pi=(_0x144755,_0x55050e,_0x30572c,_0x899d40)=>{for(var _0xee9d7b=_0x899d40>0x1?void 0x0:_0x899d40?wi(_0x55050e,_0x30572c):_0x55050e,_0x4ac745=_0x144755['length']-0x1,_0x22efdf;_0x4ac745>=0x0;_0x4ac745--)(_0x22efdf=_0x144755[_0x4ac745])&&(_0xee9d7b=(_0x899d40?_0x22efdf(_0x55050e,_0x30572c,_0xee9d7b):_0x22efdf(_0xee9d7b))||_0xee9d7b);return _0x899d40&&_0xee9d7b&&Di(_0x55050e,_0x30572c,_0xee9d7b),_0xee9d7b;},et=(_0x3de419,_0x5327fd)=>(_0x2c7f79,_0x4bb80b)=>_0x5327fd(_0x2c7f79,_0x4bb80b,_0x3de419);let We=class{constructor(_0x1b2a0b,_0x25ff11,_0x520c3b){const _0x4e81f5=_0x3b224c;this[_0x4e81f5(0x495)]=_0x1b2a0b,this[_0x4e81f5(0x5c9)]=_0x25ff11,this[_0x4e81f5(0x1e7)]=_0x520c3b;}[_0x3b224c(0x399)](_0x276b53){const _0x3eca71=_0x3b224c;this[_0x3eca71(0x169)](_0x276b53);}[_0x3b224c(0x37f)](_0x3849e9){const _0x30ea83=_0x3b224c,{unitID:_0x392bdc}=_0x3849e9,{collaboration:_0x237c64}=this[_0x30ea83(0x1e7)][_0x30ea83(0x3ce)](_0x392bdc);if(_0x237c64[_0x30ea83(0x2a8)]===0x0)return _0x3849e9;let _0x1d4849=a[_0x30ea83(0x3b9)]['deepClone'](_0x3849e9[_0x30ea83(0x229)][0x0]);for(let _0x4d1f44=0x0;_0x4d1f44<_0x237c64[_0x30ea83(0x2a8)];_0x4d1f44++){const _0xfd03cb={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x237c64[_0x4d1f44][_0x30ea83(0x242)],..._0x237c64[_0x4d1f44][_0x30ea83(0x457)]}},_0x4ad44e=this[_0x30ea83(0x5c9)][_0x30ea83(0x38c)](_0x1d4849,_0xfd03cb,!0x1);if(S[_0x30ea83(0x290)](_0x4ad44e))throw _0x4ad44e['error'];_0x1d4849=_0x4ad44e[_0x30ea83(0x1d5)];}return{...a[_0x30ea83(0x3b9)][_0x30ea83(0x4d6)](_0x3849e9),'mutations':[_0x1d4849]};}[_0x3b224c(0x169)](_0xac80cb){const _0x17ed43=_0x3b224c,{unitID:_0x1b870c}=_0xac80cb,{history:_0x555339,collaboration:_0x5568cc}=this[_0x17ed43(0x1e7)]['getStateCache'](_0x1b870c);if(_0x555339['length']===0x0&&_0x5568cc['length']===0x0)return;const _0x10a8c9=[],_0x57c5f5=[];let _0x409add=a[_0x17ed43(0x3b9)][_0x17ed43(0x4d6)](_0xac80cb[_0x17ed43(0x229)][0x0]),_0xd4902c=a[_0x17ed43(0x3b9)][_0x17ed43(0x4d6)](_0xac80cb[_0x17ed43(0x229)][0x0]);for(let _0x379c9f=_0x555339[_0x17ed43(0x2a8)]-0x1;_0x379c9f>=0x0;_0x379c9f--){const _0x1f0ba4={'id':_0x17ed43(0x59c),'params':{'unitId':_0x555339[_0x379c9f][_0x17ed43(0x242)],..._0x555339[_0x379c9f]['undoState']}},_0x4a462d={'id':_0x17ed43(0x59c),'params':{'unitId':_0x555339[_0x379c9f]['unitId'],..._0x555339[_0x379c9f]['redoState']}},_0x55e39a=this['_transformService'][_0x17ed43(0x38c)](_0x409add,_0x1f0ba4,!0x1),_0x314463=this['_transformService'][_0x17ed43(0x38c)](_0xd4902c,_0x4a462d,!0x1);if(S[_0x17ed43(0x290)](_0x55e39a))throw _0x55e39a[_0x17ed43(0x423)];if(S['isTransformMutationFailure'](_0x314463))throw _0x314463[_0x17ed43(0x423)];_0x10a8c9[_0x17ed43(0x5c8)]({..._0x555339[_0x379c9f],'undoState':_0x55e39a[_0x17ed43(0x3f1)][_0x17ed43(0x2be)],'redoState':_0x314463['m2Prime'][_0x17ed43(0x2be)]}),_0x409add=_0x55e39a[_0x17ed43(0x1d5)],_0xd4902c=_0x314463['m1Prime'];}_0x409add=a['Tools'][_0x17ed43(0x4d6)](_0xac80cb['mutations'][0x0]),_0xd4902c=a[_0x17ed43(0x3b9)][_0x17ed43(0x4d6)](_0xac80cb[_0x17ed43(0x229)][0x0]);for(let _0x47a2cc=_0x5568cc[_0x17ed43(0x2a8)]-0x1;_0x47a2cc>=0x0;_0x47a2cc--){const _0x1d27d5={'id':_0x17ed43(0x59c),'params':{'unitId':_0x5568cc[_0x47a2cc][_0x17ed43(0x242)],..._0x5568cc[_0x47a2cc]['undoState']}},_0x458b23={'id':_0x17ed43(0x59c),'params':{'unitId':_0x5568cc[_0x47a2cc][_0x17ed43(0x242)],..._0x5568cc[_0x47a2cc][_0x17ed43(0x457)]}},_0xaa3885=this['_transformService']['transformMutation'](_0x409add,_0x1d27d5,!0x1),_0x5aeab3=this['_transformService']['transformMutation'](_0xd4902c,_0x458b23,!0x1);if(S[_0x17ed43(0x290)](_0xaa3885))throw _0xaa3885[_0x17ed43(0x423)];if(S[_0x17ed43(0x290)](_0x5aeab3))throw _0x5aeab3[_0x17ed43(0x423)];_0x57c5f5[_0x17ed43(0x5c8)]({..._0x5568cc[_0x47a2cc],'undoState':_0xaa3885[_0x17ed43(0x3f1)][_0x17ed43(0x2be)],'redoState':_0x5aeab3[_0x17ed43(0x3f1)][_0x17ed43(0x2be)]}),_0x409add=_0xaa3885[_0x17ed43(0x1d5)],_0xd4902c=_0x5aeab3[_0x17ed43(0x1d5)];}this[_0x17ed43(0x1e7)]['setStateCache'](_0x1b870c,{'history':_0x10a8c9,'collaboration':_0x57c5f5});}};We=Pi([et(0x0,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),et(0x1,S['ITransformService']),et(0x2,a[_0x3b224c(0x556)](J['DocStateChangeManagerService']))],We);function dn(_0x299080){const _0x24f878=_0x3b224c;let _0x2bcc47='';for(const _0x12c24f of _0x299080){const {startOffset:_0x2e1c89,endOffset:_0x1e0dc4,isActive:_0x9f1b2a,rangeType:_0x2eeb99,segmentId:_0x17ceb5,segmentPage:_0x2a16f1}=_0x12c24f;_0x2bcc47[_0x24f878(0x2a8)]&&(_0x2bcc47+=','),_0x2bcc47+=_0x2e1c89+':'+_0x1e0dc4+':'+(_0x9f1b2a?'1':'0')+':'+_0x2eeb99+':'+_0x17ceb5+':'+_0x2a16f1;}return _0x2bcc47;}function Ui(_0x2d644b){const _0x5baf9f=_0x3b224c,_0x19e58f=_0x2d644b[_0x5baf9f(0x32b)](','),_0x48e1ef=[];for(const _0xece1fc of _0x19e58f){const [_0x1baf91,_0x20f4e4,_0x1273d1,_0x4dc1f1,_0x10b1eb,_0x1898ba]=_0xece1fc[_0x5baf9f(0x32b)](':');_0x48e1ef[_0x5baf9f(0x1a8)]({'startOffset':Number(_0x1baf91),'endOffset':Number(_0x20f4e4),'collapsed':_0x1baf91===_0x20f4e4,'isActive':_0x1273d1==='1','rangeType':_0x4dc1f1===a[_0x5baf9f(0x3dd)][_0x5baf9f(0x4a2)]?a[_0x5baf9f(0x3dd)][_0x5baf9f(0x4a2)]:a['DOC_RANGE_TYPE'][_0x5baf9f(0x52f)],'segmentId':typeof _0x10b1eb==_0x5baf9f(0x404)?String(_0x10b1eb):'','segmentPage':Number(_0x1898ba!=null?_0x1898ba:-0x1)});}return _0x48e1ef[_0x5baf9f(0x417)](_0x5f3fd0=>_0x5f3fd0[_0x5baf9f(0x592)])||(_0x48e1ef[0x0][_0x5baf9f(0x592)]=!0x0),_0x48e1ef;}class Rt extends a[_0x3b224c(0x274)]{constructor(){const _0x1ea62a=_0x3b224c;super(...arguments),I(this,_0x1ea62a(0x39b),new A[(_0x1ea62a(0x33e))](null)),I(this,_0x1ea62a(0x14c),this['_collabCursorState$'][_0x1ea62a(0x4f7)]());}[_0x3b224c(0x46a)](_0x200083){const _0x159349=_0x3b224c,{unitID:_0x4922e2,memberID:_0x541566,textRanges:_0x2ec12f}=_0x200083,_0x1dc443=dn(_0x2ec12f);if(_0x1dc443==='')return;const _0x3bcd51={'unitID':_0x4922e2,'memberID':_0x541566,'selection':_0x1dc443};this[_0x159349(0x39b)][_0x159349(0x1e1)](_0x3bcd51);}}function _0xce47(){const _0x1e18c5=['getConfig','syncEditingCollabCursor','charAt','_minBufferSize','_iv','_singleActiveUnitService','_resendTimer','collaboration-session-retry','react.element','cfg','originalMeta','find','setWaitCount','toLowerCase','override','onTransformSelections','unit','url','_resendWithTimeout','_scheduleSaving','x-univer-host','status$','OnLineSingle','sessionStatus$','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','roles','UUID','_socketMessageSubscription','_transformPreviousActiveRange','_memberService','onlineStatusTitle','COMPLETION_FINISHED','_getScale','APPLY_NON_SEQUENTIAL_REVISION','BlockCipherMode','createElement','getParam','_queuedRemoteChangesets','NEW_CHANGESETS','_localCacheService','clearInterval','_doReset','CommentService','ALREADY_EXISTS','_injector','[PendingState]:\x20received\x20rejection.','univer-pro.collaboration-client-socket-service','interceptor','getFocusedUnit','registerBeforeClose','setShapeProps','randomUUID','BuiltInUIPart','0\x200\x2017\x2016','every','selections','not_collab','TEXT','collaboration.closeRoom','change$','getColor','WebURLService','_schedule','textRanges','eventID','\x20-\x20','save','_anchor','Undefined','LocaleService','beginPath','ceil','/unit/','RefRangeService','UNIVER_SLIDE','subUnitId','_setupSubUnitSync','AWAITING','encode','_removeCollabCursors','_refRangeService','_setupBeforeClosingHandler','Could\x20not\x20dynamically\x20require\x20\x22','iterations','_toggleOnline','/new_changes','duration','liveShareNewHost','SNAPSHOT_SERVER_URL_KEY','univer-offline','getCurrentUnitForType','incrementRevOfUnit','getResourcesRequest','message$','setItem','getCollabEntity$','_handleLeaveEvent','_transformRemoteChangesetByStateCache','random','unknown','concatMap','body','toString','\x0aAfter:\x20','_colorIndex','font','Tooltip','startsWith','getTime','deepClone','_beforeCloseService','RECV','BASE64','algo','_oKey','Utf8','sheetId','isTransformMutationsWithChangesetSuccess','NO_OTHER_CLIENTS_EDITING','synced','_color','OFFLINE','UserManagerService','...','getOffsetConfig','_selfUnitIDs','SHOULD_CLOSE_CONN','mapDocumentTypeToUniverType','encryptBlock','_loadSheet','keySize','create','COMPRESS_MUTATION_SEND','listRoles','code','LOCAL_CACHE_INTERVAL_KEY','transformByState','resend','_httpService','APPLY_REJECT','@univerjs/docs','randomBytes','asObservable','InsertRowCommandId','_sheetTransformSelectionsService','restore','currentSkeleton$','PERMISSION_REJ','WorkbookEditablePermission','/role','_transformStack','text','charCodeAt','USERS_LEAVE','_ensureSubject','COMPRESS_MUTATION_APPLY','_onCursorUpdate','execute','CollaborationStatus','UNIVER_DOC','_initCloseConn','PSEUDO_FETCH_MISSING_RESULT','substr','_clearLocalCache','send','joinRsp','serializeCombRequest','_ws','AuthzIoHttpService','mapTo','name','_hasher','isTransformChangesetsSuccess','_userManagerService','registerHTTPInterceptor','fromEventSubject','title','_backgroundColor','_transformUndoRedoStack','_nDataBytes','_telemetryService','SheetCollaborationEntity','width','decrypt','socketService','verdancy600','fetchMissingChangesets','enableAuthServer','ITelemetryService','_createInitialStateImpl','_tryEnsureSocket','shouldCloseConn','pluginName','stringify','Disposable','_socketReady','onMissedChangesetFetched','onRemoteChangeset','RECT','getCollabEntity','_online','debounceTime','blockSize','ImageUploadStatusType','_getAnchorBounding','ColorKit','call','docStateChange$','deserializeRangeWithSheet','APPLY_REVISION_CONFILICT','_sendHeartbeat','onTransformState','socket\x20close','searchParams','conflict','awaiting_with_pending','_saveTaskMap','{fileID}','sessionStatus','triggerDblclick','UNKNOWN_CODE','AWAITING_WITH_PENDING','handleInsertRangeMoveDown','registerComponent','CommandType','_commentService','_roomMembers','toRgbString','session.collaboration-timeout','compose','forEach','engine','enc','_exhaustRemoteChangesetQueue','_substituteRedoStack','function','_syncEditingCollabCursorService','Inject','/-/object/list','height','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_commentUpdate$','then','entries','useRef','jsxs','IURLService','createInstance','_cursor','fillText','Decryptor','_getAPIPrefix','_submitChangeset','handleMoveRange','filter','collabStatus.conflict','IRenderManagerService','DeleteRangeMoveUpCommandId','_getLoginPath','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','readAsDataURL','_snapshotServerService','[UniverCollaborationClientPlugin]','_initDependencies','HEADER_MENU','_notificationService','SEND_CHANGESET_TIMEOUT','getSheetBySheetId','_waitForHeartbeatResponse','Latin1','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_init','INTERNAL_ERROR','_getSendChangesetTimeout','_localeService','transformIMECache','_candidateSocket','MUTATION','handleInsertCol','_shouldReportTelemetry','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','LEAVE','LICENSE_DISTRO_REJECTED','Rect','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','__creator','UnitSnapshot','_remoteChangesetQueue','div','DesktopCollaborationStatusDisplayController','_drawRectRange','_key','getCurrentRevOfUnit','onRemoteAck','takeUntil','session.room-full','setParam','isActive','round','add','univer-online','_startTelemetryCollaborationNewChangeset','toDisposable','clearTimeout','ILocalStorageService','_undoStacks','red300','doc.mutation.rich-text-editing','_isPermissionRej','ThresholdInterceptorFactory','18PjdWDx','_initRequestHeader','IUniverInstanceService','backgroundColor','_cachedData','_replaceFileID','IDLE','_getDownloadEndpointURL','SheetsSelectionsService','processBlock','ENSURE_SNAPSHOT_EXECUTION','patch','FromArray','transformStack\x20failed!','executeCommand','ILogService','lib','_change$','on-line-single','c2Prime','CHANGESET_REVISION_CONFILICT','forwardRef','_socket$','[OfflineState]:\x20received\x20changeset.','reduce','_handleEvent','pending','memberID','type','createEncryptor','csAckEvent','displayName','_refreshCollabCursors','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','UniverCollaborationClientPlugin','replaceState','_sendingTimer','unit-cache-','startTime','_onUserJoin','MoveRangeCommandId','unshift','_transformService','HttpImport','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','@univerjs/telemetry','Fragment','_changesetReqId','_sheetSkeletonManagerService','updatePermissionObjEvent','pad','revision','_unitID','\x0aCurrent:\x20','resourceIDs','Base64','jsx','CollaborationSessionService','UniverNetworkPlugin','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','MemberService','focused$','attrs','onTransformRemoteChangesetByStateCache','requestParams','conflict.content','_prevBlock','collaboratorID','@univerjs-pro/collaboration','BufferedBlockAlgorithm','DocSelectionManagerService','_throwTelemetryCollaborationNewChangeset','LICENSE_EXPORT_SIZE_EXCEEDED','listCollaborators','show','result','CollaborationEvent','/rev/','objects','getViewport','_logService','for','json','LICENSE_MAX_UNITS_EXCEEDED','hide','Subject','saveSnapshot','_onCombEvent','_configService','generateRandomId','DocIMEInputManagerService','_clearRedo','registerDependencies','collaborators','onReady','unitId\x20is\x20not\x20found','SNAPSHOT_INVALID_SNAPSHOT','_createHelper','collabCursorState$','size','[FetchMissState]','awaiting','/allowed','DataLoaderController','HttpExport','toggleOffline','_handler','_permissionService','fromCharCode','Injector','getSheetBlock','BlockCipher','_localStorageService','salt','none','HTTPService','_univerInstanceService','sheets','IConfigService','loadDoc','gold400','complete','setInterval','_iKey','urlChange$','ERROR_IMAGE','_acknowledgedAwaitingChangeset','_transformHistoryAndStateStack','NoPadding','makeDirty','_onRemoteRetry','transformMutationsWithChangeset','getActiveRange','getCurrentSelections','APPLY_PERMISSION_DENIED','SnapshotService','getUndoRedoMutationParamsCache','@univerjs/rpc','LICENSE_IMPORT_SIZE_EXCEEDED','_cursorShapes','_retryCount','Warning','measureText','_transformIMECache','_updateCollabCursors','object','clone','commentUpdate$','POST','append','ITransformService','HEARTBEAT_TIMEOUT_KEY','UPDATE_CURSOR','_status$','VIEWPORT_KEY','IRemoteInstanceService','Module','Error','Cipher','take','MergeInterceptorFactory','list','reject','_sessionStatus$','_onRefRangeChange','__esModule','_xformMode','exhaustSavingTask','post','updateMember','DisposableCollection','padding','_decreaseWaiting','enableOfflineEditing','concat','[CollaborationSession]','saveImage','onStateChange','currentTheme$','dispose$','@univerjs/drawing','RichTextEditingMutation','_joinRoom','downloadEndpointUrl','authzUrl','HELLO','indexOf','fetchMiss','MessageType','mergeOverrideWithDependencies','push','SessionStatus','blue400','getVpScrollXYInfoByPosToVp','CONNECTOR_DATA_TOO_LARGE','_onRemoteRejected','HMAC','prototype','HmacSHA1','_disableEditing','_getCurrentRevision','close','deserializeToCombResponse','objectActions','getLatestCsReqIdBySid','fill','saveChangeset','LIVESHARE_OPERATION','_changesetSessionId','debounce','JOIN','_onOffline','getItem','close$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getDocRanges','registerOnClose','addObject','_checkMissing','InsertSheetMutation','_id','transformChangesets','getTypeOfUnitDisposed$','_collabSessionService','_messageService','number','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','1em','_incrementRevisionNumber','encodeURIComponent','CollaborationController','MSG_FOR_ERROR','resolve','InsertColCommandId','getMergeData','m1Prime','textEncoder','getUnitType','YUUMI_RATE_OVER_LIMIT','Base','uploadFileServerUrl','_updateLocalCursor','2765020dPfJeo','fromCollab','closeSession','hidden','getDeserializedSheetBlock','next','ciphertext','DEFAULT_FILE_NAME','cursorInfo','WordArray','UniverIcon','_docStateChangeManagerService','0\x200\x2016\x2016','onSendChangeset','c1Prime','permission.title','reset','CollaborationEntity','distinctUntilChanged','finalize','actions','NOT_FOUND','_roomMembers$','_executeRemoteChangeset','catch','_transformUndoredo','endColumn','propertyIsEnumerable','_name','updatePermissionPoint','_sender','DocStateChangeManagerService','addObjects','startRow','hasOwnProperty','Hex','NOT_COLLAB','registerRefRange','_socketService','url(#on-line-single_clip0_910_349)','getInterceptPoints','fetchThroughInterceptors','ReplaySubject','crypto','image/jpg','defineProperty','1MYCGHE','init','xlink:href','confirm','_scheduleHeartbeat','INGEST','collabStatus.synced','newCsEvent','_append','ivSize','collab-rect-range-','_drawAnchor','_clearTimeoutTimer','key','_createHmacHelper','_DEC_XFORM_MODE','univerjs-icon\x20univerjs-icon-','_scheduleTimestamp','clipPath','cmd','liveShareOperation','CHANGESET_REJ','disposeWithMe','_sessions','words','_instanceService','onPointerEnter$','EvpKDF','createDecryptor','infoRsp','getImage','mutations','/object/','_collabCursorController','_initStatusListener','getUnitId','SheetCollabCursorShape','updateCollaborator','_substituteUndoStack','_entityInit$','__Key__','getOwnPropertyDescriptor','Shape','createSocket','unitID','pushState','onCommentUpdate','snapshotServerUrl','IBeforeCloseService','SheetSkeletonManagerService','_invKeySchedule','_session','onMouseMove','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','addEventListener','debug','unitId','_renderManagerService','getSheetId','@univerjs/core','?url=','_assignedColors','[SyncedState]:\x20received\x20acknowledgement.','PENDING','JOINING','_rescheduleHeartbeat','onload','extend','collabWebSocketUrl','icon','reqId','_getRedoStack','refreshPermission','mode','includes','_startCollaboration','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','current','MD5','objectType','parseProtocolChangeset','connection\x20error','sigBytes','#fff','getSheetObject','_collaborationTimeoutTimer','@univerjs/sheets-ui','target','disableLocalCache','Vector2','bind','fillStyle','OTHER_CLIENTS_EDITING','_textBubble','22811041CsDCZq','collabSubmitChangesetUrl','CHANGESET_SHOULD_RETRY','onTransformIME','/universer-api/authz','image/jpeg','HTTPRequest','_initMergeInterceptor','_getSheetObject','format','unsubscribe','get','RxDisposable','touchDependencies','state','Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.','saveOfflineData','_telemetryInfo','setCurrentUser','handleInsertRangeMoveRight','LIVESHARE_NEW_HOST','href','/-/object/-/batch_allowed','_state$','getActiveSheet','fetch_missing','@univerjs/design','map','univer-online-status-title','handleInsertRow','colorChannel1','?size=','open$','EffectRefRangId','_mode','&source=','flatMap','_replayCachedMutations','onPointerMove$','drawWith','isTransformMutationFailure','getTypeOfUnitAdded$','[CollaborationSessionService]','readInt32LE','defs','method','_lockTransition','_tryReconnect','toggleOnline','RETRY_CONNECTING_MAX_COUNT_KEY','_draw','[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.','LOCAL_CACHE_INTERVAL','_initEventListeners','getCoordByCell','_removeClearOtherTimer','subunit','delay','socket\x20open.','loadOfflineData','YUUMI_UNABLE_LOAD_URL','UnitEmbedded','_shapes','updateOfflineData','length','_awaitingChangeset','_createHandler','_collaborationSessionService','fillRule','combineLatest','_updateURLWithCurrentState','getMember','IUndoRedoService','_commandService','&to=','findNodePositionByCharIndex','TEXT_RANGE_LAYER_INDEX','HmacMD5','roomInfos','_onRecvEvent','InsertRangeMoveRightCommandId','_range','_initCommandExecutedListener','_onLocalMutation','collaMsg','currentColor','params','UNKNOWN_CMD','min','COMMENT_UPDATE','SerializableCipher','_send','_pendingMutations','setActiveRange','_resendTimeout','retryConnectingInterval','row','HEARTBEAT_TIMEOUT','LIVESHARE_REQUEST_HOST','repeat','assign','stopTime','[OfflineState]:\x20received\x20rejection.','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','sid','updateCursorEvent','RemoveColCommandId','OpenSSL','_document','IMessageService','hasher','_transformRemoteChangesetByIMECache','onTransformRemoteChangesetByIMECache','saveSheetBlock','createIdentifier','status','_revisionService','_getSnapshotAPIPrefix','subscribe','SUBMIT_CHANGESET','_hover','_imageSourceCache','SnapshotServerOverHTTPService','_registerDependencies','LIVESHARE_FETCH_OPERATIONS','SetWorksheetActivateCommand','permission.content','HEARTBEAT','removeMember','routeKey','hostname','_loadDoc','[OfflineState]:\x20received\x20acknowledgement.','from','$super','_onConflict','bottom','_updateSubUnitFromURLParams','getCollabCursors$','FAIL','removeParam','editingUnit','_doFinalize','AUTHZ_URL_KEY','deleteCollaborator','_onConnectionOpen','dispose','cursorInfo$','exports','Univer','_compressMutationService','skeleton','onlineStatusIcon','/collaborator','Plugin','_listenToOnlineEvent','slice','endRow','setAlpha','shareReplay','_clearCollaborationTimeoutTimer','onSyncEditingCollabCursor','ImageIoService','getCellPositionByOffset','_snapshotService','_toggleOffline','_docTransformSelectionsService','off-line-single_clip0_910_343','unpad','_updateLocalCache','UNDEFINED','objectID','switchMap','mixIn','decryptBlock','_registerRenderDependencies','floor','_unlockTransition','UNIVER_PROJECT','USERS_ENTER','UPDATE_PERMISSION_OBJ','all','Unknown\x20user','_cursorInfo$','on-line-single_clip0_910_349','getAllMembers','rxjs/operators','_onMessage','SetSelectionsOperation','setTimeout','assignAColorForMemberID','VIEW_MAIN','contains','appendMutation','transform','split','getWorkbookSelections','Encryptor','_doCryptBlock','handleDeleteRangeMoveUp','error$','onlyLocal','transformUndoRedo','collab-text-range-','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getRenderById','&assign=','SEND_CHANGESET_TIMEOUT_KEY','clamp','has','SNAPSHOT_HAS_BEEN_REMOVED','allowed','collabStatus.fetchMiss','collabStatus.notCollab','BehaviorSubject','RevisionService','lineTo','_clearUndo','put','_context','\x20to\x20','univer-online-status','onRemoteRetry','_disabled','_collaborationController','getCurrentUser','[PendingState]:\x20received\x20acknowledgement.','isArray','CONFLICT','ImageSourceType','data','ERROR_IMAGE_TYPE','WebSocketService','off-line-single','51393YmuyJL','userID','sequenceExecute','_uiPartsService','tag','_initResize','/fetchmissing?from=','SHA1','useDependency','substring','/resources','isTransformMutationsWithChangesetFailure','CHANGESET_ACK','putCollaborators','getOwnPropertySymbols','_urlService','6ihhdBi','_getMergeRange','_clearScheduledTask','reconnect','getSkeleton','update','_handleJoinEvent','setConfig','with','defaultProps','IUIPartsService','_startDocCollabCursor','IPermissionService','ws://127.0.0.1:8000/universer-api/comb/connect','compute','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','transformSelections','UNIVER_UNKNOWN','_getAPIPrefixPath','2246SqwlXr','requireSession','_sendHeartbeatTimer','_state','setShowComponents','3516784GLeXHw','url(#off-line-single_clip0_910_343)','responseType','ERROR_EXCEED_SIZE','APPLY_DUPLICATED','transformRemoteChangeset','fromEvent','column','ReactCurrentOwner','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=','max','@univerjs/network','ranges','_onCursorDelete','getUnhiddenWorksheets','labelPosition','_config','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','transformMutation','collaboration-client.offline-data-not-saved','LIVESHARE_TERMINATE','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','getRangePointData','_type','INVALID_ARGUMENT','reverse','_clearOtherTimers','SUCCUSS','event$','svg','subscribeEvent','transformStateCache','_retryConnectingTimer','_collabCursorState$','M0\x200H16V16H0z','onStarting','handleDeleteRangeMoveLeft','sin','/block/','parseChangesetToProtocol','_docTransformStateCacheService','ONLINE','collaboration.single-unit.warning','isPermissionRej','_http','_collaborationPaused','UNAUTHENTICATED','_process','onRemoteRej','color','newValue','state$','/universer-api/stream/file/upload','_members','PasswordBasedCipher','UniverInstanceType','connectInjector','collab-client.tooltip.reconnect','UNRECOGNIZED','_docSyncEditingCollabCursorService','clear','_data','getMemberID','Tools','_drawTextRange','_transformStateCache','translate(.97)','_createInitialState','COLLAB_SUBMIT_CHANGESET_URL_KEY','src','_applyRemoteChangeset','baseRev','location','awaitingChangeset','Error\x20on\x20receiving\x20event','_keyPriorReset','_themeService','arc','_hideTimer','/object','session','_showConflictNotification','pipe','_scene','getStateCache','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','collaboration_new_changeset','_updateStatus','symbol','parse','ICommandService','online','merge','values','_onUserLeave','_onFetchMissResult','[DataLoaderController]','_timeoutTimer','history','DOC_RANGE_TYPE','univer-online-status-icon','getValue','ThemeService','Optional','idSuffix','signUrlServerUrl','_createSocket','_initUnitPermissionChange','_hovered','defIds','editing\x20status\x20changed\x20to','offline','path','msCrypto','_waitCount','rgba(255,\x20255,\x20255,\x200.01)','black','ISnapshotServerService','_event$','m2Prime','_handleHover','collaboration-client.config','registerRenderModule','addImageSourceCache','_entities','rxjs','onlineStatus','_map','_labelPosition','_getUndoStack','YUUMI_URL_COL_OUT_OF_RANGE','SYNCED','onCommandExecuted','_getSaveTimeout','_hash','RemoveRowCommandId','className','_undoRedoService','string','capture','SetDocZoomRatioOperation','CompressMutationService','AES','_getSignURL','_eventUnsubscribe','children','range','equals','_unitOnClients','commentUpdateEvent','selection','_lastPointer','getAncestorScale','470230exPyUq','RETRY_CONNECTING_MAX_COUNT','_updateState','_transitionLocked','some','_transformSelections','now','_removeRoom','_cursors','_socket','StreamCipher','FileId','_saveCache','_heartbeatTimer','useObservable','localeService','error','replace','roomMembers$','byteLength','4053056oQbuqy','_getCtorByUniverType','_onJoinRoomEvent','LocalCacheService','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','_doProcessBlock','_reverseMap','CipherParams','encrypt','IImageIoService','TOO_MANY_REQUESTS','default','@univerjs/engine-formula','_docTransformIMECacheService','RegularPolygon','_cipher','set','YUUMI_SUBSCRIPTION_NOT_FOUND','EXCHANGE_SIGN_URL_SERVER_URL_KEY','members','kdf','file','_initStatusComponent','image/bmp','_anchorDot','auth.needGotoLoginAlert','_fetchMissChangesets','Hasher','buffer','ref','SetTextSelectionsOperation','CollaborationSocketService','/universer-api/snapshot','rng','_ENC_XFORM_MODE','apply','_onConnectionFailed','Rectangle','_keySchedule','pauseCollaboration','_onRemoteACK','_colorAssignService','DocCollaborationEntity','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','csShouldRetryEvent','COLORS','_onRemoteChangeset','20GVqUgu','redoState','getRandomValues','@univerjs/sheets','jiqing500','startColumn','splice','\x20in\x20_schedule.','join','_unitStatus','UNIVER_SHEET','_HTTPService','LOGIN_URL_KEY','delete','DeleteRangeMoveLeftCommandId','_docSkeletonManagerService','CollaborationSession','_scheduleClearOtherTimer','FETCH_MISSING'];_0xce47=function(){return _0x1e18c5;};return _0xce47();}var Mi=Object[_0x3b224c(0x209)],Ai=Object[_0x3b224c(0x233)],Ni=(_0x11ce51,_0x1eba6f,_0x190ba4,_0x1c2f6b)=>{const _0x34d155=_0x3b224c;for(var _0x33382b=_0x1c2f6b>0x1?void 0x0:_0x1c2f6b?Ai(_0x1eba6f,_0x190ba4):_0x1eba6f,_0x38ae9b=_0x11ce51[_0x34d155(0x2a8)]-0x1,_0x5c1cb2;_0x38ae9b>=0x0;_0x38ae9b--)(_0x5c1cb2=_0x11ce51[_0x38ae9b])&&(_0x33382b=(_0x1c2f6b?_0x5c1cb2(_0x1eba6f,_0x190ba4,_0x33382b):_0x5c1cb2(_0x33382b))||_0x33382b);return _0x1c2f6b&&_0x33382b&&Mi(_0x1eba6f,_0x190ba4,_0x33382b),_0x33382b;},xt=(_0x303fd1,_0x4576fc)=>(_0x15cbcf,_0x42df73)=>_0x4576fc(_0x15cbcf,_0x42df73,_0x303fd1);let Fe=class{constructor(_0x202f54,_0x43703f){const _0x3cdc74=_0x3b224c;this[_0x3cdc74(0x495)]=_0x202f54,this[_0x3cdc74(0x5c9)]=_0x43703f;}[_0x3b224c(0x372)](_0x4343de){const _0x275d7f=_0x3b224c;var _0x4b2f36;const _0x4f1693=this['_injector'][_0x275d7f(0x273)](ye[_0x275d7f(0x130)]),_0x252d78=(_0x4b2f36=_0x4f1693[_0x275d7f(0x1c1)]())!=null?_0x4b2f36:[];if(_0x252d78[_0x275d7f(0x2a8)]===0x0)return;const _0x3d4529=_0x4343de[_0x275d7f(0x236)],_0x2902b2=[{'id':_0x275d7f(0x59c),'params':{'unitId':_0x3d4529,'actions':null,'textRanges':_0x252d78}}],_0x406d73=this[_0x275d7f(0x5c9)][_0x275d7f(0x16d)](_0x4343de,_0x2902b2);if(!S[_0x275d7f(0x4de)](_0x406d73))throw _0x406d73[_0x275d7f(0x423)];const _0x1066ed=_0x406d73[_0x275d7f(0x3f1)][0x0][_0x275d7f(0x2be)][_0x275d7f(0x4a8)];Array[_0x275d7f(0x34b)](_0x1066ed)&&_0x1066ed[_0x275d7f(0x2a8)]&&_0x4f1693['replaceDocRanges'](_0x1066ed,{'unitId':_0x3d4529,'subUnitId':_0x3d4529},!0x1);}};Fe=Ni([xt(0x0,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),xt(0x1,S[_0x3b224c(0x180)])],Fe);const Li=new Set([k[_0x3b224c(0x1c5)]['id']]);function jt(_0x4a9945,_0x2a9c86,_0x33a4d6,_0x5b269a,_0x5375f6){const _0x2e7e1e=_0x3b224c;var _0x559912,_0x39abae,_0x26c1b0,_0x7c0ffc;const _0xa184ca=[];for(const _0x527b91 of _0x4a9945)if(Li[_0x2e7e1e(0x339)](_0x527b91['id'])){if(_0xa184ca[_0x2e7e1e(0x2a8)]>0x0)break;_0xa184ca[_0x2e7e1e(0x1a8)](_0x527b91);break;}else _0xa184ca[_0x2e7e1e(0x1a8)](_0x527b91);const _0x4a3428=(_0x39abae=(_0x559912=_0x5375f6['getCurrentUser']())==null?void 0x0:_0x559912[_0x2e7e1e(0x353)])!=null?_0x39abae:_0x2e7e1e(0x4cc),_0x9036c6=(_0x7c0ffc=(_0x26c1b0=_0x5375f6[_0x2e7e1e(0x349)]())==null?void 0x0:_0x26c1b0[_0x2e7e1e(0x5ba)])!=null?_0x7c0ffc:'unknown';return{'changeset':{'unitID':_0x2a9c86,'type':S['mapDocumentTypeToUniverType'](_0x33a4d6[_0x2e7e1e(0x1d7)](_0x2a9c86)),'baseRev':_0x5b269a[_0x2e7e1e(0x58d)](_0x2a9c86),'revision':0x0,'userID':_0x4a3428,'memberID':_0x9036c6,'mutations':_0xa184ca},'pendingMutations':_0x4a9945[_0x2e7e1e(0x304)](_0xa184ca[_0x2e7e1e(0x2a8)])};}function xi(_0x48c5a2,_0x1a7caa,_0x6a8cbd,_0xee3443,_0x1ec09b){const _0x3eccd0=_0x3b224c;var _0x3e722d,_0x5db658,_0x40035d,_0x28e695;const _0x27ff59=[_0x48c5a2['reduce']((_0x50036c,_0xbdcf0c)=>{const _0x2e46ae=_0x1276;var _0x1600e7;const {id:_0x446ca8}=_0x50036c,{id:_0x5be8d0,type:_0x58d678}=_0xbdcf0c,_0x55ec1c=(_0x1600e7=_0x50036c[_0x2e46ae(0x2be)])!=null?_0x1600e7:{'actions':null},_0x3e6ca7=_0xbdcf0c[_0x2e46ae(0x2be)];if(_0x446ca8&&_0x446ca8!==_0x5be8d0)throw new Error(_0x2e46ae(0x2cf)+_0x446ca8+_0x2e46ae(0x4aa)+_0x5be8d0+'.');return{..._0x50036c,'id':_0x5be8d0,'type':_0x58d678,'params':{'unitId':_0x3e6ca7[_0x2e46ae(0x242)],'textRanges':_0x3e6ca7[_0x2e46ae(0x4a8)],'actions':a['JSONX'][_0x2e46ae(0x54e)](_0x55ec1c[_0x2e46ae(0x1f0)],_0x3e6ca7[_0x2e46ae(0x1f0)])}};},{})],_0x4c2c6e=(_0x5db658=(_0x3e722d=_0x1ec09b['getCurrentUser']())==null?void 0x0:_0x3e722d['userID'])!=null?_0x5db658:_0x3eccd0(0x4cc),_0x3b6556=(_0x28e695=(_0x40035d=_0x1ec09b[_0x3eccd0(0x349)]())==null?void 0x0:_0x40035d[_0x3eccd0(0x5ba)])!=null?_0x28e695:_0x3eccd0(0x4cc);return{'changeset':{'unitID':_0x1a7caa,'type':S[_0x3eccd0(0x4e8)](_0x6a8cbd['getUnitType'](_0x1a7caa)),'baseRev':_0xee3443[_0x3eccd0(0x58d)](_0x1a7caa),'revision':0x0,'userID':_0x4c2c6e,'memberID':_0x3b6556,'mutations':_0x27ff59},'pendingMutations':[]};}function fn(_0x35e54f,_0x1c1d9d){const _0xc604c8=_0x3b224c,_0x62addf=new A[(_0xc604c8(0x206))](0x1);return setTimeout(()=>_0x62addf[_0xc604c8(0x1e1)](_0x1c1d9d),_0x35e54f),_0x62addf[_0xc604c8(0x4f7)]()[_0xc604c8(0x3cc)](A[_0xc604c8(0x189)](0x1));}const ji={'id':k['EmptyMutation']['id'],'type':a[_0x3b224c(0x549)][_0x3b224c(0x57e)],'params':{}};var $i=Object[_0x3b224c(0x209)],Hi=Object[_0x3b224c(0x233)],Ie=(_0x19d34e,_0x3b585f,_0x39cc75,_0x119a63)=>{const _0x303ab9=_0x3b224c;for(var _0x5d0e11=_0x119a63>0x1?void 0x0:_0x119a63?Hi(_0x3b585f,_0x39cc75):_0x3b585f,_0x4ab2e2=_0x19d34e[_0x303ab9(0x2a8)]-0x1,_0x123255;_0x4ab2e2>=0x0;_0x4ab2e2--)(_0x123255=_0x19d34e[_0x4ab2e2])&&(_0x5d0e11=(_0x119a63?_0x123255(_0x3b585f,_0x39cc75,_0x5d0e11):_0x123255(_0x5d0e11))||_0x5d0e11);return _0x119a63&&_0x5d0e11&&$i(_0x3b585f,_0x39cc75,_0x5d0e11),_0x5d0e11;},N=(_0x3a36a8,_0x9edd4b)=>(_0x46a3e5,_0x5825bb)=>_0x9edd4b(_0x46a3e5,_0x5825bb,_0x3a36a8),q=(_0x3ee73c=>(_0x3ee73c['NOT_COLLAB']=_0x3b224c(0x4a1),_0x3ee73c['SYNCED']=_0x3b224c(0x4e0),_0x3ee73c[_0x3b224c(0x249)]=_0x3b224c(0x5b9),_0x3ee73c[_0x3b224c(0x4b6)]='awaiting',_0x3ee73c['AWAITING_WITH_PENDING']=_0x3b224c(0x540),_0x3ee73c['FETCH_MISS']=_0x3b224c(0x281),_0x3ee73c[_0x3b224c(0x34c)]='conflict',_0x3ee73c[_0x3b224c(0x4e2)]=_0x3b224c(0x3e9),_0x3ee73c))(q||{});const vn=0xea60;class Ce{constructor(_0x4e139e,_0x14c46d,_0x3f3afe,_0x11b34e,_0x1fe22f,_0x5cab7d,_0x5e1fff,_0x9e40fd,_0x3a558f){const _0x372050=_0x3b224c;I(this,_0x372050(0x2a9),null),I(this,_0x372050(0x2c4),[]),(this[_0x372050(0x236)]=_0x4e139e,this[_0x372050(0x5bb)]=_0x14c46d,this[_0x372050(0x154)]=_0x1fe22f,this[_0x372050(0x2b1)]=_0x5cab7d,this[_0x372050(0x403)]=_0x5e1fff,this['_revisionService']=_0x9e40fd,this[_0x372050(0x490)]=_0x3a558f,this[_0x372050(0x2a9)]=_0x3f3afe,this[_0x372050(0x2c4)]=_0x11b34e);}[_0x3b224c(0x1c4)](_0x1bc409){const _0x2ec532=_0x3b224c,_0x224d16=this[_0x2ec532(0x2dc)][_0x2ec532(0x58d)](this[_0x2ec532(0x236)]);return _0x1bc409[_0x2ec532(0x5d2)]>_0x224d16+0x1?(this[_0x2ec532(0x154)]['onMissingChangesets']({'from':_0x224d16,'to':_0x1bc409[_0x2ec532(0x5d2)]-0x1}),!0x0):!0x1;}[_0x3b224c(0x1f5)](_0x14ff29){const _0x43425b=_0x3b224c;this[_0x43425b(0x403)]['transformUndoRedo'](this[_0x43425b(0x236)],_0x14ff29);}[_0x3b224c(0x418)](_0x42505d){const _0x5e8bdc=_0x3b224c;var _0x383051,_0x411055;(_0x411055=(_0x383051=this[_0x5e8bdc(0x154)])[_0x5e8bdc(0x478)])==null||_0x411055[_0x5e8bdc(0x537)](_0x383051,_0x42505d);}[_0x3b224c(0x179)](_0x4b0117){const _0x1a794d=_0x3b224c;var _0x1a8097,_0xcb4495;return(_0xcb4495=(_0x1a8097=this[_0x1a794d(0x154)])[_0x1a794d(0x26b)])==null?void 0x0:_0xcb4495[_0x1a794d(0x537)](_0x1a8097,_0x4b0117);}[_0x3b224c(0x3bb)](_0x1e13ef){const _0x1f3122=_0x3b224c;var _0x5ad31a,_0xa7fcae;return(_0xa7fcae=(_0x5ad31a=this['_handler'])['onTransformState'])==null?void 0x0:_0xa7fcae[_0x1f3122(0x537)](_0x5ad31a,_0x1e13ef);}[_0x3b224c(0x2d7)](_0x513311){const _0x2bcc7f=_0x3b224c;var _0x38f536,_0x4f9c83,_0x28ab82;return(_0x28ab82=(_0x4f9c83=(_0x38f536=this[_0x2bcc7f(0x154)])[_0x2bcc7f(0x2d8)])==null?void 0x0:_0x4f9c83['call'](_0x38f536,_0x513311))!=null?_0x28ab82:_0x513311;}['_transformRemoteChangesetByStateCache'](_0x3a4543){const _0x526b90=_0x3b224c;var _0x165c0f,_0x48df30,_0x53f68e;return(_0x53f68e=(_0x48df30=(_0x165c0f=this[_0x526b90(0x154)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x48df30[_0x526b90(0x537)](_0x165c0f,_0x3a4543))!=null?_0x53f68e:_0x3a4543;}['_syncEditingCollabCursor'](_0x190ea2){const _0x34b7d0=_0x3b224c;var _0x4bd861,_0x13d451;if(this[_0x34b7d0(0x5bb)]===ie['UNIVER_DOC']){const {unitID:_0x7bf862,mutations:_0x512de3,memberID:_0x2ba7a1}=_0x190ea2,_0x56e2a3=_0x512de3[0x0]['params'][_0x34b7d0(0x4a8)];Array[_0x34b7d0(0x34b)](_0x56e2a3)&&_0x56e2a3[_0x34b7d0(0x2a8)]>0x0&&((_0x13d451=(_0x4bd861=this[_0x34b7d0(0x154)])['onSyncEditingCollabCursor'])==null||_0x13d451['call'](_0x4bd861,{'unitID':_0x7bf862,'memberID':_0x2ba7a1,'textRanges':_0x56e2a3}));}}[_0x3b224c(0x311)](){const _0x138caa=_0x3b224c;this['_localCacheService'][_0x138caa(0x2a7)](this[_0x138caa(0x236)],this['type'],this[_0x138caa(0x2a9)],this[_0x138caa(0x2c4)]);}['_getCurrentRevision'](){const _0x398db2=_0x3b224c;return this[_0x398db2(0x2dc)][_0x398db2(0x58d)](this['unitID']);}['_incrementRevisionNumber'](){const _0x22391a=_0x3b224c;this[_0x22391a(0x2dc)][_0x22391a(0x4c4)](this['unitID']);}[_0x3b224c(0x1f3)](_0x5c61cb){const _0x4a62e3=_0x3b224c;var _0x1a2b38;let _0x33a3ea=this[_0x4a62e3(0x2d7)](_0x5c61cb);_0x33a3ea=this[_0x4a62e3(0x4ca)](_0x33a3ea);const _0x586f92=a[_0x4a62e3(0x354)](_0x33a3ea[_0x4a62e3(0x229)],this['_commandService'],{'fromCollab':!0x0});if(!_0x586f92['result'])throw _0x586f92[_0x4a62e3(0x423)]instanceof Error?_0x586f92[_0x4a62e3(0x423)]:new Error((_0x1a2b38=_0x586f92[_0x4a62e3(0x423)])!=null?_0x1a2b38:'[CollaborationState]:\x20apply\x20error!');this[_0x4a62e3(0x179)](_0x33a3ea),this[_0x4a62e3(0x3bb)](_0x33a3ea),this['_transformUndoredo'](_0x5c61cb),this[_0x4a62e3(0x418)](_0x33a3ea),this['_syncEditingCollabCursor'](_0x33a3ea),this[_0x4a62e3(0x1ce)]();}}let Oe=class extends Ce{constructor(_0x328fa7,_0x378bbe,_0x15a8a9,_0x2ce677,_0x57b371,_0x842f8c,_0x16bfd3,_0x5efc09,_0x21a52c,_0x57ce31){const _0x1ca491=_0x3b224c;super(_0x328fa7,_0x378bbe,null,[],_0x15a8a9,_0x5efc09,_0x16bfd3,_0x2ce677,_0x57b371),I(this,_0x1ca491(0x2db),_0x1ca491(0x4e0)),(this[_0x1ca491(0x495)]=_0x842f8c,this[_0x1ca491(0x13a)]=_0x21a52c,this[_0x1ca491(0x5c9)]=_0x57ce31);}[_0x3b224c(0x329)](_0x3369a5){const _0x321775=_0x3b224c,_0x3e2609=this[_0x321775(0x495)]['createInstance'](ce,this[_0x321775(0x236)],this[_0x321775(0x5bb)],[_0x3369a5],this[_0x321775(0x154)]);return _0x3e2609['_schedule'](),_0x3e2609[_0x321775(0x311)](),_0x3e2609;}[_0x3b224c(0x52e)](_0x5f376e){const _0x37a195=_0x3b224c;if(this[_0x37a195(0x1c4)](_0x5f376e))return this[_0x37a195(0x495)][_0x37a195(0x560)](re,this[_0x37a195(0x236)],this[_0x37a195(0x5bb)],null,[],null,[_0x5f376e],this[_0x37a195(0x154)]);try{const _0x25cc91=this[_0x37a195(0x5c9)]['transformMutationsWithChangeset'](_0x5f376e,[ji]);if(S[_0x37a195(0x4de)](_0x25cc91)){const {c1Prime:_0x31d359}=_0x25cc91;return this['_executeRemoteChangeset'](_0x31d359),this;}throw _0x25cc91[_0x37a195(0x423)];}catch(_0x1a9f88){return this[_0x37a195(0x13a)][_0x37a195(0x423)](_0x1a9f88),this[_0x37a195(0x2ef)](!0x1);}}[_0x3b224c(0x2ef)](_0x3431a5){const _0x445a76=_0x3b224c;return this[_0x445a76(0x495)][_0x445a76(0x560)](ve,this['unitID'],this['type'],null,[],this[_0x445a76(0x154)],_0x3431a5);}[_0x3b224c(0x58e)](){const _0x1aa735=_0x3b224c;throw new Error(_0x1aa735(0x248));}['onRemoteRej'](){throw new Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3b224c(0x153)](){const _0x39fcb1=_0x3b224c;return this[_0x39fcb1(0x495)]['createInstance'](me,this[_0x39fcb1(0x236)],this[_0x39fcb1(0x5bb)],null,[],this[_0x39fcb1(0x154)]);}[_0x3b224c(0x298)](){return this;}[_0x3b224c(0x4f2)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b224c(0x1a5)](){const _0x4895e9=_0x3b224c,_0x2c9d53=this[_0x4895e9(0x2dc)][_0x4895e9(0x58d)](this[_0x4895e9(0x236)]);return this['_handler']['onMissingChangesets']({'from':_0x2c9d53,'to':0x0}),this[_0x4895e9(0x495)]['createInstance'](re,this[_0x4895e9(0x236)],this['type'],null,[],null,[],this[_0x4895e9(0x154)]);}};Oe=Ie([N(0x3,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),N(0x4,a['Inject'](exports['LocalCacheService'])),N(0x5,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),N(0x6,a[_0x3b224c(0x2b0)]),N(0x7,a[_0x3b224c(0x3d4)]),N(0x8,a[_0x3b224c(0x5ae)]),N(0x9,S[_0x3b224c(0x180)])],Oe);let ce=class extends Ce{constructor(_0x1f194b,_0x153b5a,_0x24c3c1,_0x3ba0bf,_0xacaed7,_0x1c9fd2,_0x3a7042,_0x2a6bcf,_0x4f47c4,_0x12e412,_0x569242,_0x4066ba,_0x1f8a6e,_0x323d7f){const _0x2dc336=_0x3b224c;super(_0x1f194b,_0x153b5a,null,_0x24c3c1,_0x3ba0bf,_0x12e412,_0x323d7f,_0x1c9fd2,_0x3a7042),I(this,_0x2dc336(0x2db),_0x2dc336(0x5b9)),I(this,_0x2dc336(0x21b),null),I(this,_0x2dc336(0x5c3),null),(this[_0x2dc336(0x495)]=_0xacaed7,this[_0x2dc336(0x486)]=_0x2a6bcf,this['_logService']=_0x4f47c4,this[_0x2dc336(0x142)]=_0x569242,this[_0x2dc336(0x5c9)]=_0x4066ba,this[_0x2dc336(0x15e)]=_0x1f8a6e);}[_0x3b224c(0x329)](_0xf4cfd9){const _0x41988f=_0x3b224c;return this[_0x41988f(0x2c4)][_0x41988f(0x1a8)](_0xf4cfd9),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x13f6df){const _0x1605c3=_0x3b224c;if(this[_0x1605c3(0x1c4)](_0x13f6df))return this['_clearScheduledTask'](),this[_0x1605c3(0x495)][_0x1605c3(0x560)](re,this[_0x1605c3(0x236)],this[_0x1605c3(0x5bb)],null,this[_0x1605c3(0x2c4)],null,[_0x13f6df],this[_0x1605c3(0x154)]);try{const _0x4249d7=this['_transformService'][_0x1605c3(0x16d)](_0x13f6df,this['_pendingMutations']);if(S['isTransformMutationsWithChangesetSuccess'](_0x4249d7)){const {c1Prime:_0x44ead7,m2Prime:_0x57b6f2}=_0x4249d7;this[_0x1605c3(0x1f3)](_0x44ead7);const _0x4e46c7=this[_0x1605c3(0x495)][_0x1605c3(0x560)](ce,this[_0x1605c3(0x236)],this[_0x1605c3(0x5bb)],_0x57b6f2,this[_0x1605c3(0x154)]);return this[_0x1605c3(0x364)](),_0x4e46c7['_schedule'](this[_0x1605c3(0x21b)]?Math['max'](0x0,new Date()[_0x1605c3(0x4d5)]()-this[_0x1605c3(0x21b)]):this[_0x1605c3(0x57a)]()),_0x4e46c7;}throw _0x4249d7[_0x1605c3(0x423)];}catch(_0x98d302){return this[_0x1605c3(0x13a)][_0x1605c3(0x423)](_0x98d302),this[_0x1605c3(0x2ef)](!0x1);}}[_0x3b224c(0x58e)](){const _0x2e616f=_0x3b224c;throw new Error(_0x2e616f(0x34a));}[_0x3b224c(0x3aa)](){const _0x5f2b34=_0x3b224c;throw new Error(_0x5f2b34(0x496));}[_0x3b224c(0x346)](){return this;}[_0x3b224c(0x153)](){const _0x27ad46=_0x3b224c;return this[_0x27ad46(0x364)](),this['_injector'][_0x27ad46(0x560)](me,this[_0x27ad46(0x236)],this[_0x27ad46(0x5bb)],null,this[_0x27ad46(0x2c4)],this['_handler']);}['toggleOnline'](){return this;}[_0x3b224c(0x4a7)](_0x1205c9){const _0x33cd10=_0x3b224c,_0x145284=_0x1205c9!=null?_0x1205c9:this['_getSendChangesetTimeout']();this['_scheduleTimestamp']=new Date()[_0x33cd10(0x4d5)](),this[_0x33cd10(0x5c3)]=window[_0x33cd10(0x325)](()=>{const _0x3569d7=_0x33cd10;this[_0x3569d7(0x364)]();let _0x44a401=null;switch(this[_0x3569d7(0x5bb)]){case ie[_0x3569d7(0x460)]:{_0x44a401=jt(this[_0x3569d7(0x2c4)],this[_0x3569d7(0x236)],this[_0x3569d7(0x15e)],this[_0x3569d7(0x2dc)],this[_0x3569d7(0x486)]);break;}case ie[_0x3569d7(0x508)]:{this['_pendingMutations']['every'](_0x57fc87=>_0x57fc87['id']===ye[_0x3569d7(0x19f)]['id'])?_0x44a401=xi(this[_0x3569d7(0x2c4)],this[_0x3569d7(0x236)],this[_0x3569d7(0x15e)],this[_0x3569d7(0x2dc)],this['_memberService']):_0x44a401=jt(this[_0x3569d7(0x2c4)],this[_0x3569d7(0x236)],this[_0x3569d7(0x15e)],this[_0x3569d7(0x2dc)],this[_0x3569d7(0x486)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x3569d7(0x45d));}const {changeset:_0xecfdbd,pendingMutations:_0x5ce3ef}=_0x44a401;this[_0x3569d7(0x154)][_0x3569d7(0x1e9)](_0xecfdbd);const _0x1f0379=_0x5ce3ef[_0x3569d7(0x2a8)]?this[_0x3569d7(0x495)][_0x3569d7(0x560)](le,this[_0x3569d7(0x236)],this['type'],_0xecfdbd,_0x5ce3ef,this[_0x3569d7(0x154)],void 0x0):this['_injector'][_0x3569d7(0x560)](fe,this['unitID'],this[_0x3569d7(0x5bb)],_0xecfdbd,this[_0x3569d7(0x154)]);_0x1f0379[_0x3569d7(0x311)](),this[_0x3569d7(0x154)][_0x3569d7(0x19b)](this,_0x1f0379);},_0x145284);}[_0x3b224c(0x57a)](){const _0x391f46=_0x3b224c;var _0x2e4654;const _0x39beaf=this[_0x391f46(0x142)][_0x391f46(0x469)](te);return(_0x2e4654=_0x39beaf==null?void 0x0:_0x39beaf['sendChangesetTimeout'])!=null?_0x2e4654:kn;}[_0x3b224c(0x4f2)](){const _0x59b253=_0x3b224c;throw new Error(_0x59b253(0x56c));}['_clearScheduledTask'](){const _0x2549f4=_0x3b224c;this[_0x2549f4(0x5c3)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x2549f4(0x5c3)]=null);}[_0x3b224c(0x2ef)](_0x1cb6be){const _0x72ca12=_0x3b224c;return this[_0x72ca12(0x364)](),this['_injector'][_0x72ca12(0x560)](ve,this[_0x72ca12(0x236)],this[_0x72ca12(0x5bb)],null,this[_0x72ca12(0x2c4)],this['_handler'],_0x1cb6be);}};ce=Ie([N(0x4,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),N(0x5,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),N(0x6,a['Inject'](exports['LocalCacheService'])),N(0x7,a[_0x3b224c(0x556)](exports['MemberService'])),N(0x8,a[_0x3b224c(0x5ae)]),N(0x9,a[_0x3b224c(0x3d4)]),N(0xa,a[_0x3b224c(0x160)]),N(0xb,S[_0x3b224c(0x180)]),N(0xc,a[_0x3b224c(0x5a1)]),N(0xd,a[_0x3b224c(0x2b0)])],ce);let fe=class extends Ce{constructor(_0x3c214f,_0x2bc6d8,_0x13c104,_0x8154ad,_0x4bbd48,_0x170bb1,_0xc4e581,_0x18dffb,_0x3d534f,_0x52a6ff,_0x11b229){const _0x3f795f=_0x3b224c;super(_0x3c214f,_0x2bc6d8,_0x13c104,[],_0x8154ad,_0x18dffb,_0x11b229,_0x170bb1,_0xc4e581),I(this,_0x3f795f(0x2db),_0x3f795f(0x14f)),I(this,_0x3f795f(0x2c6),0x0),I(this,_0x3f795f(0x46f)),I(this,'_sender'),(this['_injector']=_0x4bbd48,this[_0x3f795f(0x13a)]=_0x3d534f,this[_0x3f795f(0x5c9)]=_0x52a6ff);}[_0x3b224c(0x329)](_0x44c3f7){const _0x137738=_0x3b224c;this['_clearScheduledTask']();const _0x17075b=this[_0x137738(0x495)][_0x137738(0x560)](le,this[_0x137738(0x236)],this[_0x137738(0x5bb)],this[_0x137738(0x2a9)],[_0x44c3f7],this[_0x137738(0x154)],this[_0x137738(0x46f)]);return _0x17075b['_updateLocalCache'](),_0x17075b;}[_0x3b224c(0x52e)](_0x5c6497){const _0xb67479=_0x3b224c;if(this[_0xb67479(0x1c4)](_0x5c6497))return this['_clearScheduledTask'](),this['_injector'][_0xb67479(0x560)](re,this['unitID'],this[_0xb67479(0x5bb)],this[_0xb67479(0x2a9)],[],null,[_0x5c6497],this[_0xb67479(0x154)]);try{const _0x94a566=this['_transformService'][_0xb67479(0x1c7)]([_0x5c6497],[this[_0xb67479(0x2a9)]],!0x1);if(S[_0xb67479(0x515)](_0x94a566)){const {c1Prime:_0x3cc7d8,c2Prime:_0x163501}=_0x94a566;this[_0xb67479(0x1f3)](_0x3cc7d8[0x0]),_0x163501[0x0][_0xb67479(0x3c1)]=this[_0xb67479(0x1b2)](),this[_0xb67479(0x364)]();const _0x2782eb=this[_0xb67479(0x495)][_0xb67479(0x560)](fe,this[_0xb67479(0x236)],this[_0xb67479(0x5bb)],_0x163501[0x0],this[_0xb67479(0x154)]);return _0x2782eb[_0xb67479(0x311)](),_0x2782eb;}return this[_0xb67479(0x2ef)](!0x1);}catch(_0x1593e1){return this[_0xb67479(0x13a)][_0xb67479(0x423)](_0x1593e1),this[_0xb67479(0x2ef)](!0x1);}}[_0x3b224c(0x58e)](_0x2c080e){const _0x2c9fcb=_0x3b224c;this[_0x2c9fcb(0x364)]();const _0x2404ab=this[_0x2c9fcb(0x2dc)][_0x2c9fcb(0x58d)](this[_0x2c9fcb(0x236)]);if(_0x2c080e[_0x2c9fcb(0x5d2)]<_0x2404ab-0x1)return this;if(this[_0x2c9fcb(0x1c4)](_0x2c080e))return this[_0x2c9fcb(0x495)]['createInstance'](re,this[_0x2c9fcb(0x236)],this['type'],null,[],this[_0x2c9fcb(0x2a9)],[],this[_0x2c9fcb(0x154)]);this[_0x2c9fcb(0x1ce)]();const _0x4f026d=this[_0x2c9fcb(0x495)][_0x2c9fcb(0x560)](Oe,this[_0x2c9fcb(0x236)],this[_0x2c9fcb(0x5bb)],this[_0x2c9fcb(0x154)]);return _0x4f026d['_updateLocalCache'](),_0x4f026d;}[_0x3b224c(0x3aa)](_0x1e377e){const _0x469bac=_0x3b224c;return this['_onConflict'](!!(_0x1e377e!=null&&_0x1e377e[_0x469bac(0x3a5)]));}[_0x3b224c(0x346)](_0x16bee2){const _0x484f68=_0x3b224c;return this[_0x484f68(0x2c6)]>vn?this[_0x484f68(0x153)]():(this[_0x484f68(0x46f)]=fn(this[_0x484f68(0x2c6)],{'timeout':this[_0x484f68(0x2c6)],'reqId':_0x16bee2[_0x484f68(0x250)]}),this[_0x484f68(0x1fa)]=this['_resendTimer'][_0x484f68(0x2de)](({reqId:_0x25b585,timeout:_0x1c58e4})=>{const _0x144e02=_0x484f68;this[_0x144e02(0x47b)](_0x25b585,_0x1c58e4);}),this);}[_0x3b224c(0x153)](){const _0x24c3be=_0x3b224c;return this[_0x24c3be(0x364)](),this[_0x24c3be(0x495)][_0x24c3be(0x560)](me,this[_0x24c3be(0x236)],this[_0x24c3be(0x5bb)],this[_0x24c3be(0x2a9)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x3b224c(0x4f2)](){const _0x31effb=_0x3b224c;this[_0x31effb(0x154)][_0x31effb(0x1e9)](this[_0x31effb(0x2a9)]);}[_0x3b224c(0x2ef)](_0x2dcf9b){const _0x588fd2=_0x3b224c;return this[_0x588fd2(0x364)](),this[_0x588fd2(0x495)][_0x588fd2(0x560)](ve,this[_0x588fd2(0x236)],this[_0x588fd2(0x5bb)],this[_0x588fd2(0x2a9)],[],this[_0x588fd2(0x154)],_0x2dcf9b);}[_0x3b224c(0x47b)](_0x19c5ce,_0x4bbb89){const _0x5bfe77=_0x3b224c;var _0x590372;_0x19c5ce===((_0x590372=this[_0x5bfe77(0x2a9)])==null?void 0x0:_0x590372[_0x5bfe77(0x250)])&&(this[_0x5bfe77(0x4f2)](),this[_0x5bfe77(0x2c6)]=_0x4bbb89===0x0?0x3e8:_0x4bbb89*0x2);}['_clearScheduledTask'](){const _0x83d9bc=_0x3b224c;var _0x41a5e5;(_0x41a5e5=this[_0x83d9bc(0x1fa)])==null||_0x41a5e5[_0x83d9bc(0x272)](),this[_0x83d9bc(0x2c6)]=0x0;}};fe=Ie([N(0x4,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),N(0x5,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),N(0x6,a[_0x3b224c(0x556)](exports[_0x3b224c(0x42a)])),N(0x7,a[_0x3b224c(0x3d4)]),N(0x8,a[_0x3b224c(0x5ae)]),N(0x9,S['ITransformService']),N(0xa,a[_0x3b224c(0x2b0)])],fe);let le=class extends Ce{constructor(_0x11442b,_0x40e887,_0x3896b7,_0x53b39c,_0x31267e,_0x2e8db7,_0x2dbeed,_0x2a6827,_0x4cb84a,_0x4f2490,_0x30b27f,_0x2c0b0d,_0x450752){const _0x4d0a25=_0x3b224c;super(_0x11442b,_0x40e887,_0x3896b7,_0x53b39c,_0x31267e,_0x4f2490,_0x450752,_0x2a6827,_0x4cb84a),I(this,_0x4d0a25(0x2db),_0x4d0a25(0x540)),I(this,_0x4d0a25(0x2c6),0x0),I(this,'_resendTimer'),I(this,_0x4d0a25(0x1fa)),(this[_0x4d0a25(0x495)]=_0x2dbeed,this[_0x4d0a25(0x13a)]=_0x30b27f,this[_0x4d0a25(0x5c9)]=_0x2c0b0d,_0x2e8db7&&(this[_0x4d0a25(0x46f)]=_0x2e8db7,this[_0x4d0a25(0x1fa)]=this['_resendTimer'][_0x4d0a25(0x2de)](({reqId:_0x38a7fa,timeout:_0x96437e})=>{const _0x4f27a9=_0x4d0a25;this[_0x4f27a9(0x47b)](_0x38a7fa,_0x96437e);})));}[_0x3b224c(0x329)](_0x40bd31){return this['_pendingMutations']['push'](_0x40bd31),this;}[_0x3b224c(0x52e)](_0x4234bc){const _0x11f44e=_0x3b224c;if(this[_0x11f44e(0x1c4)](_0x4234bc))return this['_clearScheduledTask'](),this[_0x11f44e(0x495)][_0x11f44e(0x560)](re,this[_0x11f44e(0x236)],this['type'],this[_0x11f44e(0x2a9)],this['_pendingMutations'],null,[_0x4234bc],this['_handler']);try{const _0x1d9515=this[_0x11f44e(0x5c9)]['transformChangesets']([_0x4234bc],[this['_awaitingChangeset']],!0x1);if(S[_0x11f44e(0x515)](_0x1d9515)){const {c1Prime:_0x40151a,c2Prime:_0x34c922}=_0x1d9515,_0x43cbdf=this[_0x11f44e(0x5c9)][_0x11f44e(0x16d)](_0x40151a[0x0],this[_0x11f44e(0x2c4)]);if(S[_0x11f44e(0x4de)](_0x43cbdf)){const {c1Prime:_0x27f1c7,m2Prime:_0x44ccf8}=_0x43cbdf;return this['_executeRemoteChangeset'](_0x27f1c7),_0x34c922[0x0]['baseRev']=this[_0x11f44e(0x1b2)](),this[_0x11f44e(0x364)](),this[_0x11f44e(0x495)][_0x11f44e(0x560)](le,this[_0x11f44e(0x236)],this[_0x11f44e(0x5bb)],_0x34c922[0x0],_0x44ccf8,this[_0x11f44e(0x154)],void 0x0);}throw _0x43cbdf[_0x11f44e(0x423)];}throw _0x1d9515[_0x11f44e(0x423)];}catch(_0x52258c){return this[_0x11f44e(0x13a)][_0x11f44e(0x423)](_0x52258c),this[_0x11f44e(0x2ef)](!0x1);}}[_0x3b224c(0x58e)](_0x565764){const _0x2bde12=_0x3b224c;if(this[_0x2bde12(0x364)](),this[_0x2bde12(0x1c4)](_0x565764))return this[_0x2bde12(0x495)][_0x2bde12(0x560)](re,this['unitID'],this[_0x2bde12(0x5bb)],null,this[_0x2bde12(0x2c4)],this[_0x2bde12(0x2a9)],[],this[_0x2bde12(0x154)]);this[_0x2bde12(0x1ce)]();const _0x2bee93=this[_0x2bde12(0x495)]['createInstance'](ce,this[_0x2bde12(0x236)],this['type'],this[_0x2bde12(0x2c4)],this[_0x2bde12(0x154)]);return _0x2bee93['_schedule'](),_0x2bee93['_updateLocalCache'](),_0x2bee93;}[_0x3b224c(0x3aa)](_0x2fd67e){const _0x54375a=_0x3b224c;return this[_0x54375a(0x2ef)](!!(_0x2fd67e!=null&&_0x2fd67e['isPermissionRej']));}[_0x3b224c(0x346)](_0x5ed9f9){const _0x3691ab=_0x3b224c;return this[_0x3691ab(0x2c6)]>vn?this[_0x3691ab(0x153)]():(this[_0x3691ab(0x46f)]=fn(this['_resendTimeout'],{'timeout':this[_0x3691ab(0x2c6)],'reqId':_0x5ed9f9['reqId']}),this['_sender']=this[_0x3691ab(0x46f)][_0x3691ab(0x2de)](({reqId:_0x1a7395,timeout:_0x9a8843})=>{const _0x5eaf82=_0x3691ab;this[_0x5eaf82(0x47b)](_0x1a7395,_0x9a8843);}),this);}[_0x3b224c(0x153)](){const _0x5eccf4=_0x3b224c;return this['_clearScheduledTask'](),this['_injector'][_0x5eccf4(0x560)](me,this[_0x5eccf4(0x236)],this[_0x5eccf4(0x5bb)],this[_0x5eccf4(0x2a9)],this[_0x5eccf4(0x2c4)],this['_handler']);}['toggleOnline'](){return this;}['resend'](){this['_handler']['onSendChangeset'](this['_awaitingChangeset']);}[_0x3b224c(0x2ef)](_0x13551d){const _0x3f80dc=_0x3b224c;return this[_0x3f80dc(0x364)](),this[_0x3f80dc(0x495)][_0x3f80dc(0x560)](ve,this[_0x3f80dc(0x236)],this[_0x3f80dc(0x5bb)],null,this[_0x3f80dc(0x2c4)],this[_0x3f80dc(0x154)],_0x13551d);}[_0x3b224c(0x47b)](_0x56d7fa,_0x5336db){const _0x35e775=_0x3b224c;var _0x4b8942;_0x56d7fa===((_0x4b8942=this[_0x35e775(0x2a9)])==null?void 0x0:_0x4b8942['reqId'])&&(this[_0x35e775(0x4f2)](),this[_0x35e775(0x2c6)]=_0x5336db===0x0?0x3e8:_0x5336db*0x2);}[_0x3b224c(0x364)](){const _0x208987=_0x3b224c;var _0xfcc8d6;(_0xfcc8d6=this[_0x208987(0x1fa)])==null||_0xfcc8d6[_0x208987(0x272)](),this['_resendTimeout']=0x0;}};le=Ie([N(0x6,a['Inject'](a[_0x3b224c(0x157)])),N(0x7,a['Inject'](S[_0x3b224c(0x33f)])),N(0x8,a['Inject'](exports['LocalCacheService'])),N(0x9,a[_0x3b224c(0x3d4)]),N(0xa,a['ILogService']),N(0xb,S['ITransformService']),N(0xc,a['IUndoRedoService'])],le);let ve=class extends Ce{constructor(_0x5b9ea5,_0x1c9999,_0x3395e7,_0x3d24ca,_0x30aa55,_0x1dc90f=!0x1,_0x5515b0,_0xdf0ab6,_0x2a5717,_0x1f8331,_0x6a926d,_0x4347a4,_0x902d5d){const _0x34a56f=_0x3b224c;super(_0x5b9ea5,_0x1c9999,_0x3395e7,_0x3d24ca,_0x30aa55,_0xdf0ab6,_0x2a5717,_0x6a926d,_0x1f8331),I(this,'status',_0x34a56f(0x53f)),(this[_0x34a56f(0x59d)]=_0x1dc90f,this['_permissionService']=_0x5515b0,this[_0x34a56f(0x57b)]=_0x4347a4,this[_0x34a56f(0x572)]=_0x902d5d,this['_showConflictNotification'](),this[_0x34a56f(0x50c)](),this[_0x34a56f(0x1b1)]());}[_0x3b224c(0x329)](){return this;}[_0x3b224c(0x52e)](){return this;}[_0x3b224c(0x58e)](){return this;}['onRemoteRej'](){return this;}[_0x3b224c(0x346)](){return this;}['toggleOffline'](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x253e86=_0x3b224c;throw new Error(_0x253e86(0x481));}[_0x3b224c(0x50c)](){const _0x192fcb=_0x3b224c;this['_localCacheService'][_0x192fcb(0x2a7)](this['unitID'],this['type'],null,[]);}[_0x3b224c(0x3cb)](){const _0x257f40=_0x3b224c;this[_0x257f40(0x59d)]?this[_0x257f40(0x572)][_0x257f40(0x134)]({'title':this['_localeService']['t'](_0x257f40(0x1eb)),'content':this[_0x257f40(0x57b)]['t'](_0x257f40(0x2e6)),'type':_0x257f40(0x423),'duration':0x0}):this[_0x257f40(0x572)][_0x257f40(0x134)]({'title':this[_0x257f40(0x57b)]['t']('conflict.title'),'content':this[_0x257f40(0x57b)]['t'](_0x257f40(0x5e0)),'type':_0x257f40(0x423),'duration':0x0});}[_0x3b224c(0x1b1)](){const _0x3735b9=_0x3b224c;this['_permissionService'][_0x3735b9(0x1f9)](new k[(_0x3735b9(0x4fd))](this['unitID'])['id'],!0x1);}};ve=Ie([N(0x6,a['Inject'](a['IPermissionService'])),N(0x7,a[_0x3b224c(0x3d4)]),N(0x8,a[_0x3b224c(0x2b0)]),N(0x9,a[_0x3b224c(0x556)](exports['LocalCacheService'])),N(0xa,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),N(0xb,a[_0x3b224c(0x556)](a[_0x3b224c(0x4ae)])),N(0xc,ee['INotificationService'])],ve);let me=class extends Ce{constructor(_0x829a7c,_0x21fee9,_0x90ddeb,_0x48fa92,_0x170c14,_0x1f9c6b,_0x1b1fdf,_0x14fa97,_0x43f4c7,_0x18a2c2){const _0x3b2298=_0x3b224c;super(_0x829a7c,_0x21fee9,_0x90ddeb,_0x48fa92,_0x170c14,_0x43f4c7,_0x18a2c2,_0x1b1fdf,_0x14fa97),I(this,_0x3b2298(0x2db),'offline'),this['_injector']=_0x1f9c6b;}[_0x3b224c(0x329)](_0x38990f){const _0x5d4b60=_0x3b224c;return this[_0x5d4b60(0x2c4)][_0x5d4b60(0x1a8)](_0x38990f),this['_updateLocalCache'](),this;}[_0x3b224c(0x52e)](_0x4a121d){const _0x15a340=_0x3b224c;throw new Error(_0x15a340(0x5b6));}[_0x3b224c(0x58e)](){const _0x4370c7=_0x3b224c;throw new Error(_0x4370c7(0x2ec));}[_0x3b224c(0x3aa)](){const _0x21caee=_0x3b224c;throw new Error(_0x21caee(0x2ce));}[_0x3b224c(0x346)](){return this;}[_0x3b224c(0x153)](){return this;}[_0x3b224c(0x298)](){const _0x208484=_0x3b224c,{_injector:_0x333e8d,_pendingMutations:_0x4e65cf,_awaitingChangeset:_0x2aac86,unitID:_0x222464,_handler:_0x292654,type:_0x1848ad}=this,_0x2bb0e8=mn(_0x333e8d,_0x222464,_0x1848ad,_0x2aac86,_0x4e65cf,_0x292654);return _0x2bb0e8 instanceof ce?_0x2bb0e8[_0x208484(0x4a7)]():(_0x2bb0e8 instanceof le||_0x2bb0e8 instanceof fe)&&_0x2bb0e8[_0x208484(0x4f2)](),_0x2bb0e8;}[_0x3b224c(0x4f2)](){const _0x4a8a6b=_0x3b224c;throw new Error(_0x4a8a6b(0x577));}};me=Ie([N(0x5,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),N(0x6,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),N(0x7,a['Inject'](exports[_0x3b224c(0x42a)])),N(0x8,a[_0x3b224c(0x3d4)]),N(0x9,a['IUndoRedoService'])],me);let re=class extends Ce{constructor(_0x2f8675,_0x4e80a8,_0x27029c,_0x1826ed,_0xad3ca1,_0x48bc4d,_0x16797c,_0x4e90bb,_0x2852a7,_0x9b4744,_0x493360,_0x415b4e,_0x446009,_0x20484c){const _0xacbd7d=_0x3b224c;super(_0x2f8675,_0x4e80a8,_0x27029c,_0x1826ed,_0x16797c,_0x415b4e,_0x446009,_0x2852a7,_0x9b4744),I(this,'status',_0xacbd7d(0x281)),(this['_acknowledgedAwaitingChangeset']=_0xad3ca1,this[_0xacbd7d(0x48e)]=_0x48bc4d,this['_injector']=_0x4e90bb,this[_0xacbd7d(0x13a)]=_0x493360,this[_0xacbd7d(0x5c9)]=_0x20484c);}[_0x3b224c(0x52d)](_0x4ab857){const _0x32f492=_0x3b224c;try{const _0x5e4116=[..._0x4ab857,...this['_queuedRemoteChangesets']],_0x30bc3e=[this[_0x32f492(0x2a9)]||this[_0x32f492(0x168)]][_0x32f492(0x567)](_0x48cac2=>!!_0x48cac2);let _0x3a1254,_0x3b2622;if(_0x30bc3e[_0x32f492(0x2a8)]){const _0x254c59=this[_0x32f492(0x5c9)][_0x32f492(0x1c7)](_0x5e4116,_0x30bc3e,!0x1);if(!S[_0x32f492(0x515)](_0x254c59))throw _0x254c59[_0x32f492(0x423)];_0x3a1254=_0x254c59[_0x32f492(0x1ea)],_0x3b2622=_0x254c59[_0x32f492(0x5b2)];}else _0x3a1254=_0x5e4116,_0x3b2622=[];let _0x4eec08=this[_0x32f492(0x2c4)];_0x3a1254['forEach'](_0x2ffc9f=>{const _0x30b021=_0x32f492;let _0x250564;if(_0x4eec08[_0x30b021(0x2a8)]){const _0x28955e=this[_0x30b021(0x5c9)]['transformMutationsWithChangeset'](_0x2ffc9f,_0x4eec08);if(!S[_0x30b021(0x4de)](_0x28955e))throw _0x28955e[_0x30b021(0x423)];_0x250564=_0x28955e[_0x30b021(0x1ea)],_0x4eec08=_0x28955e[_0x30b021(0x3f1)];}else _0x250564=_0x2ffc9f;this[_0x30b021(0x1f3)](_0x250564);}),this[_0x32f492(0x168)]&&this[_0x32f492(0x1ce)](),this[_0x32f492(0x2a9)]&&_0x3b2622[_0x32f492(0x2a8)]&&(_0x3b2622[0x0][_0x32f492(0x3c1)]=this['_getCurrentRevision']());let _0x4c021e;if(this[_0x32f492(0x2a9)]&&_0x4eec08[_0x32f492(0x2a8)]!==0x0)_0x4c021e=this[_0x32f492(0x495)][_0x32f492(0x560)](le,this[_0x32f492(0x236)],this[_0x32f492(0x5bb)],_0x3b2622[0x0],_0x4eec08,this[_0x32f492(0x154)],void 0x0);else{if(this[_0x32f492(0x2a9)]&&_0x4eec08[_0x32f492(0x2a8)]===0x0)_0x3b2622[0x0][_0x32f492(0x3c1)]=this[_0x32f492(0x1b2)](),_0x4c021e=this['_injector'][_0x32f492(0x560)](fe,this['unitID'],this['type'],_0x3b2622[0x0],this['_handler']);else{if(_0x4eec08[_0x32f492(0x2a8)]!==0x0){const _0x4ea930=this[_0x32f492(0x495)][_0x32f492(0x560)](ce,this[_0x32f492(0x236)],this[_0x32f492(0x5bb)],_0x4eec08,this[_0x32f492(0x154)]);_0x4ea930['_schedule'](),_0x4c021e=_0x4ea930;}else _0x4c021e=this[_0x32f492(0x495)][_0x32f492(0x560)](Oe,this['unitID'],this[_0x32f492(0x5bb)],this[_0x32f492(0x154)]);}}return _0x4c021e[_0x32f492(0x311)](),_0x4c021e;}catch(_0x5e4584){return this[_0x32f492(0x13a)][_0x32f492(0x423)](_0x32f492(0x14e),'failed\x20to\x20apply\x20missed\x20changesets!',_0x5e4584),this[_0x32f492(0x495)][_0x32f492(0x560)](ve,this[_0x32f492(0x236)],this[_0x32f492(0x5bb)],this[_0x32f492(0x2a9)],this[_0x32f492(0x2c4)],this[_0x32f492(0x154)],!0x1);}}[_0x3b224c(0x4f2)](){const _0x257134=_0x3b224c;throw new Error(_0x257134(0x371));}['appendMutation'](_0x3f8b83){const _0x2a4e5f=_0x3b224c;return this[_0x2a4e5f(0x2c4)][_0x2a4e5f(0x1a8)](_0x3f8b83),this;}[_0x3b224c(0x52e)](_0x39ba56){return this['_queuedRemoteChangesets']['push'](_0x39ba56),this;}[_0x3b224c(0x58e)](_0x1f7002){const _0x3f9fd5=_0x3b224c;if(this[_0x3f9fd5(0x2a9)])return this[_0x3f9fd5(0x168)]=this['_awaitingChangeset'],this[_0x3f9fd5(0x2a9)]=null,this;throw new Error(_0x3f9fd5(0x334));}[_0x3b224c(0x3aa)](_0x1dbb55){const _0x99fdab=_0x3b224c;return this[_0x99fdab(0x2ef)](!!(_0x1dbb55!=null&&_0x1dbb55[_0x99fdab(0x3a5)]));}[_0x3b224c(0x346)](){return this;}['toggleOffline'](){const _0x5e3b7b=_0x3b224c;return this[_0x5e3b7b(0x495)]['createInstance'](me,this['unitID'],this[_0x5e3b7b(0x5bb)],this[_0x5e3b7b(0x2a9)],this[_0x5e3b7b(0x2c4)],this[_0x5e3b7b(0x154)]);}['toggleOnline'](){return this;}[_0x3b224c(0x2ef)](_0x4fccd6){const _0x2f6646=_0x3b224c;return this[_0x2f6646(0x495)][_0x2f6646(0x560)](ve,this[_0x2f6646(0x236)],this['type'],this[_0x2f6646(0x2a9)],this[_0x2f6646(0x2c4)],this[_0x2f6646(0x154)],_0x4fccd6);}};re=Ie([N(0x7,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),N(0x8,a[_0x3b224c(0x556)](S['RevisionService'])),N(0x9,a[_0x3b224c(0x556)](exports[_0x3b224c(0x42a)])),N(0xa,a['ILogService']),N(0xb,a[_0x3b224c(0x3d4)]),N(0xc,a[_0x3b224c(0x2b0)]),N(0xd,S['ITransformService'])],re);function mn(_0x47923d,_0x56296d,_0x48265f,_0x41cf7b,_0x205fba,_0x180625){const _0x5ef958=_0x3b224c;return _0x41cf7b&&_0x205fba[_0x5ef958(0x2a8)]?_0x47923d[_0x5ef958(0x560)](le,_0x56296d,_0x48265f,_0x41cf7b,_0x205fba,_0x180625,void 0x0):_0x41cf7b?_0x47923d['createInstance'](fe,_0x56296d,_0x48265f,_0x41cf7b,_0x180625):_0x205fba[_0x5ef958(0x2a8)]?_0x47923d['createInstance'](ce,_0x56296d,_0x48265f,_0x205fba,_0x180625):_0x47923d['createInstance'](Oe,_0x56296d,_0x48265f,_0x180625);}var Bi=Object[_0x3b224c(0x209)],ki=Object['getOwnPropertyDescriptor'],yt=(_0x409b56,_0x570750,_0x1c5beb,_0x162d65)=>{const _0x242d44=_0x3b224c;for(var _0x1a5161=_0x162d65>0x1?void 0x0:_0x162d65?ki(_0x570750,_0x1c5beb):_0x570750,_0x19ca7c=_0x409b56[_0x242d44(0x2a8)]-0x1,_0x4dee64;_0x19ca7c>=0x0;_0x19ca7c--)(_0x4dee64=_0x409b56[_0x19ca7c])&&(_0x1a5161=(_0x162d65?_0x4dee64(_0x570750,_0x1c5beb,_0x1a5161):_0x4dee64(_0x1a5161))||_0x1a5161);return _0x162d65&&_0x1a5161&&Bi(_0x570750,_0x1c5beb,_0x1a5161),_0x1a5161;},H=(_0x2bc83b,_0xc2694e)=>(_0x417417,_0x4b8482)=>_0xc2694e(_0x417417,_0x4b8482,_0x2bc83b);exports[_0x3b224c(0x1ed)]=class extends a[_0x3b224c(0x274)]{constructor(_0x1b0a36,_0x36356b,_0x500aa1,_0x60a40,_0x2334ed,_0x19f56c,_0x86b533,_0x1b2841,_0xbd74ff,_0x8ab70d,_0x573e09,_0x27e9d3,_0x1fe6e4){const _0x44db20=_0x3b224c;super(),I(this,_0x44db20(0x27f),new A[(_0x44db20(0x33e))](null)),I(this,'state$',this['_state$'][_0x44db20(0x4f7)]()),I(this,_0x44db20(0x378)),I(this,_0x44db20(0x3a7),!0x1),I(this,_0x44db20(0x1ba),''),I(this,'_changesetReqId',0x0),I(this,_0x44db20(0x47e),this[_0x44db20(0x3ad)][_0x44db20(0x3cc)](A[_0x44db20(0x283)](_0x5893b4=>_0x5893b4?_0x5893b4['status']:q[_0x44db20(0x4e2)]),A[_0x44db20(0x307)](0x1))),I(this,_0x44db20(0x416),!0x1),I(this,_0x44db20(0x588),[]),(this[_0x44db20(0x236)]=_0x1b0a36,this[_0x44db20(0x3ca)]=_0x36356b,this[_0x44db20(0x391)]=_0x500aa1,this[_0x44db20(0x495)]=_0x60a40,this[_0x44db20(0x490)]=_0x2334ed,this[_0x44db20(0x2fe)]=_0x19f56c,this[_0x44db20(0x57b)]=_0x86b533,this[_0x44db20(0x2dc)]=_0x1b2841,this[_0x44db20(0x13a)]=_0xbd74ff,this[_0x44db20(0x2b1)]=_0x8ab70d,this['_messageService']=_0x573e09,this['_permissionService']=_0x27e9d3,this['_singleActiveUnitService']=_0x1fe6e4);}get[_0x3b224c(0x276)](){const _0x26708b=_0x3b224c;return this[_0x26708b(0x378)];}async[_0x3b224c(0x20b)](){const _0x435870=_0x3b224c;if(this['state'])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x435870(0x578)]();}[_0x3b224c(0x44e)](){const _0x2998fd=_0x3b224c;return this[_0x2998fd(0x3a7)]=!0x0,a[_0x2998fd(0x597)](()=>{const _0x3168cd=_0x2998fd;this['_collaborationPaused']=!0x1,this[_0x3168cd(0x552)]();});}[_0x3b224c(0x415)](_0x2358c6){const _0xd294b6=_0x3b224c;this[_0xd294b6(0x378)]=_0x2358c6,this[_0xd294b6(0x27f)]['next'](_0x2358c6);}async[_0x3b224c(0x578)](){const _0x1761e1=_0x3b224c;var _0x1df711;this['_updateState'](await this[_0x1761e1(0x3bd)]()),this[_0x1761e1(0x46e)]&&((_0x1df711=this['_singleActiveUnitService'])==null||_0x1df711[_0x1761e1(0x2f5)](this[_0x1761e1(0x236)]),this[_0x1761e1(0x220)](this[_0x1761e1(0x46e)]['getUnitStatus$'](this[_0x1761e1(0x236)])[_0x1761e1(0x2de)](_0x4034c7=>{const _0x2c0579=_0x1761e1;this[_0x2c0579(0x13a)][_0x2c0579(0x241)]('[CollaborationEntity]',_0x2c0579(0x3e8),_0x4034c7),_0x4034c7===un[_0x2c0579(0x266)]?(this[_0x2c0579(0x1ca)][_0x2c0579(0x134)]({'content':this[_0x2c0579(0x57b)]['t'](_0x2c0579(0x3a4)),'type':ge['MessageType']['Warning']}),this[_0x2c0579(0x155)][_0x2c0579(0x1f9)](new k[(_0x2c0579(0x4fd))](this['unitID'])['id'],!0x1),this[_0x2c0579(0x155)][_0x2c0579(0x379)](!0x1)):(this[_0x2c0579(0x155)][_0x2c0579(0x1f9)](new k[(_0x2c0579(0x4fd))](this[_0x2c0579(0x236)])['id'],!0x0),this[_0x2c0579(0x155)][_0x2c0579(0x379)](!0x0));})));let _0xcbe8c9=!0x1;return this[_0x1761e1(0x220)](this[_0x1761e1(0x3ca)]['sessionStatus$'][_0x1761e1(0x2de)](_0x2b3cb3=>{const _0x5399f6=_0x1761e1;_0x2b3cb3===se[_0x5399f6(0x3a3)]?this[_0x5399f6(0x4bd)](_0xcbe8c9):_0x2b3cb3===se[_0x5399f6(0x4e2)]&&(_0xcbe8c9=!0x0,this[_0x5399f6(0x30d)]());})),this['disposeWithMe'](this[_0x1761e1(0x3ca)][_0x1761e1(0x396)][_0x1761e1(0x2de)](_0x6b0707=>{const _0x424964=_0x1761e1;try{switch(_0x6b0707['eventID']){case S[_0x424964(0x136)][_0x424964(0x48f)]:{this[_0x424964(0x455)](S['parseProtocolChangeset'](_0x6b0707[_0x424964(0x34e)]));break;}case S[_0x424964(0x136)][_0x424964(0x35e)]:{this[_0x424964(0x44f)](_0x6b0707[_0x424964(0x34e)]);break;}case S[_0x424964(0x136)][_0x424964(0x21f)]:{this[_0x424964(0x1ad)]();break;}case S['CollaborationEvent'][_0x424964(0x26a)]:{this[_0x424964(0x16c)](_0x6b0707[_0x424964(0x34e)]);break;}case S[_0x424964(0x136)][_0x424964(0x50a)]:{this[_0x424964(0x3d9)](_0x6b0707['data']['changesets'][_0x424964(0x283)](_0x239a59=>S[_0x424964(0x25a)](_0x239a59)));break;}case S['CollaborationEvent'][_0x424964(0x4fc)]:this[_0x424964(0x1ad)]({'isPermissionRej':!0x0});}}catch(_0xe436ef){throw console[_0x424964(0x423)](_0x424964(0x3c4),_0xe436ef),_0xe436ef;}})),this['_state'];}[_0x3b224c(0x319)](){const _0x20eee3=_0x3b224c;this[_0x20eee3(0x416)]=!0x1;}['_lockTransition'](){const _0x13e5ad=_0x3b224c;if(this[_0x13e5ad(0x416)])throw new Error(_0x13e5ad(0x29b));this[_0x13e5ad(0x416)]=!0x0;}[_0x3b224c(0x2bb)](_0x55b820){const _0x5ab145=_0x3b224c;this[_0x5ab145(0x296)](),this['_updateState'](this[_0x5ab145(0x378)][_0x5ab145(0x329)](_0x55b820)),this[_0x5ab145(0x319)]();}[_0x3b224c(0x455)](_0x94b27a){const _0x10afa6=_0x3b224c;if(!(_0x94b27a[_0x10afa6(0x5d2)]<=this['_revisionService'][_0x10afa6(0x58d)](this[_0x10afa6(0x236)]))){if(this['_collaborationPaused']){this[_0x10afa6(0x588)][_0x10afa6(0x1a8)](_0x94b27a);return;}this[_0x10afa6(0x3c0)](_0x94b27a);}}[_0x3b224c(0x552)](){const _0x21f1ea=_0x3b224c;this[_0x21f1ea(0x588)][_0x21f1ea(0x54f)](_0x21f13c=>this[_0x21f1ea(0x3c0)](_0x21f13c)),this['_remoteChangesetQueue']=[];}[_0x3b224c(0x3c0)](_0x527a76){const _0x5b2267=_0x3b224c,_0x11d61e=this[_0x5b2267(0x2fe)]['interceptor'][_0x5b2267(0x205)](this[_0x5b2267(0x2fe)]['interceptor'][_0x5b2267(0x204)]()['COMPRESS_MUTATION_APPLY'])(_0x527a76[_0x5b2267(0x229)],null)||_0x527a76[_0x5b2267(0x229)],_0x49bbec={..._0x527a76,'mutations':_0x11d61e};this['_lockTransition'](),this[_0x5b2267(0x415)](this[_0x5b2267(0x378)][_0x5b2267(0x52e)](_0x49bbec)),this[_0x5b2267(0x319)]();}[_0x3b224c(0x44f)](_0x6fa896){const _0x5244bc=_0x3b224c;this[_0x5244bc(0x296)](),this[_0x5244bc(0x415)](this['_state'][_0x5244bc(0x58e)](_0x6fa896)),this['_unlockTransition']();}[_0x3b224c(0x1ad)](_0x263281){const _0x4854d2=_0x3b224c;this['_lockTransition'](),this['_updateState'](this['_state']['onRemoteRej'](_0x263281)),this[_0x4854d2(0x319)]();}[_0x3b224c(0x16c)](_0x3d79a1){const _0x23f187=_0x3b224c;this[_0x23f187(0x296)](),this[_0x23f187(0x415)](this[_0x23f187(0x378)]['onRemoteRetry'](_0x3d79a1)),this[_0x23f187(0x319)]();}[_0x3b224c(0x3d9)](_0x6ac701){const _0x2e52c7=_0x3b224c;if(!(this[_0x2e52c7(0x378)]instanceof re))throw new TypeError(_0x2e52c7(0x585));const _0x27cc42=_0x6ac701[_0x2e52c7(0x283)](_0x2e73a4=>{const _0x4dc8b4=_0x2e52c7,_0xae9d6=this['_compressMutationService'][_0x4dc8b4(0x498)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x4dc8b4(0x504)])(_0x2e73a4[_0x4dc8b4(0x229)],null)||_0x2e73a4['mutations'];return{..._0x2e73a4,'mutations':_0xae9d6};});this[_0x2e52c7(0x296)](),this['_updateState'](this[_0x2e52c7(0x378)][_0x2e52c7(0x52d)](_0x27cc42)),this[_0x2e52c7(0x319)]();}[_0x3b224c(0x30d)](){const _0xf60a6a=_0x3b224c;this[_0xf60a6a(0x296)](),this[_0xf60a6a(0x415)](this[_0xf60a6a(0x378)][_0xf60a6a(0x153)]()),this[_0xf60a6a(0x319)]();}['_toggleOnline'](_0x4476a8=!0x1){const _0x1f7684=_0x3b224c;this['_lockTransition'](),this[_0x1f7684(0x415)](this['_state'][_0x1f7684(0x298)]()),this['_unlockTransition']();const _0x415167=this[_0x1f7684(0x378)];_0x4476a8&&_0x415167 instanceof Oe&&(this[_0x1f7684(0x296)](),this[_0x1f7684(0x415)](_0x415167[_0x1f7684(0x1a5)]()),this[_0x1f7684(0x319)]());}async[_0x3b224c(0x3bd)](){return new Promise(_0x32977e=>{const _0x20c020=_0x1276;this['session'][_0x20c020(0x480)][_0x20c020(0x3cc)](A[_0x20c020(0x189)](0x1))['subscribe'](async _0x4b335e=>{const _0x47efa3=_0x20c020;_0x32977e(await this[_0x47efa3(0x526)](_0x4b335e===se[_0x47efa3(0x3a3)]));});});}['_createHandler'](){const _0x17ff83=_0x3b224c,_0x1df70d=this[_0x17ff83(0x236)];return{'onStateChange':(_0xcc5f48,_0xc43af1)=>{const _0x45649e=_0x17ff83;if(_0xcc5f48!==this['_state'])throw new Error(_0x45649e(0x1cc)+_0xcc5f48[_0x45649e(0x2db)]+_0x45649e(0x4d0)+_0xc43af1[_0x45649e(0x2db)]+_0x45649e(0x5d4)+this[_0x45649e(0x378)][_0x45649e(0x2db)]);this[_0x45649e(0x415)](_0xc43af1);},'onSendChangeset':_0x2e5116=>{const _0x41491c=_0x17ff83;_0x2e5116[_0x41491c(0x2d0)]||(_0x2e5116[_0x41491c(0x2d0)]=this[_0x41491c(0x1ba)],_0x2e5116[_0x41491c(0x250)]=++this[_0x41491c(0x5ce)]);const _0x56c02a={'eventID':S[_0x41491c(0x136)][_0x41491c(0x2df)],'data':{'unitID':_0x2e5116[_0x41491c(0x236)],'unitType':this['_type'],'changeset':_0x2e5116,'memberID':this['session'][_0x41491c(0x3b8)]()}};this[_0x41491c(0x3ca)]['send'](_0x56c02a,this[_0x41491c(0x236)]);},'onMissingChangesets':({from:_0x4dffb1,to:_0x2a40d2})=>{const _0x3401ce=_0x17ff83;this[_0x3401ce(0x13a)][_0x3401ce(0x241)]('[CollaborationEntity]','fetching\x20missing\x20changesets\x20from\x20'+_0x4dffb1+_0x3401ce(0x344)+_0x2a40d2);const _0x3c07d7={'eventID':S['CollaborationEvent'][_0x3401ce(0x468)],'data':{'unitID':_0x1df70d,'unitType':this['_type'],'from':_0x4dffb1,'to':_0x2a40d2}};this['session'][_0x3401ce(0x50d)](_0x3c07d7,this['unitID']);}};}async[_0x3b224c(0x526)](_0x10059a){const _0x47d308=_0x3b224c;var _0x331828,_0x2bcf68;const _0x316476=await this[_0x47d308(0x490)][_0x47d308(0x2a3)](this[_0x47d308(0x236)]),_0x1db9d1=(_0x331828=_0x316476==null?void 0x0:_0x316476[_0x47d308(0x229)])!=null?_0x331828:[],_0x4782a4=(_0x2bcf68=_0x316476==null?void 0x0:_0x316476[_0x47d308(0x3c3)])!=null?_0x2bcf68:null,_0x534a67=!!(_0x4782a4!=null&&_0x4782a4[_0x47d308(0x2d0)])&&!!(_0x4782a4!=null&&_0x4782a4[_0x47d308(0x250)]);this['_changesetSessionId']=_0x534a67?_0x4782a4[_0x47d308(0x2d0)]:mi(),this[_0x47d308(0x5ce)]=_0x534a67?_0x4782a4[_0x47d308(0x250)]:0x0;const _0x54a9fb=this[_0x47d308(0x236)];try{this[_0x47d308(0x28d)](_0x4782a4,_0x1db9d1);}catch(_0x9cc44e){this['_logService'][_0x47d308(0x423)](_0x9cc44e);}const _0x52d754=this[_0x47d308(0x2aa)]();if(_0x10059a){const _0x4e5f04=mn(this[_0x47d308(0x495)],_0x54a9fb,this['_type'],_0x4782a4,_0x1db9d1,_0x52d754);return _0x4e5f04 instanceof ce?_0x4e5f04['_schedule']():(_0x4e5f04 instanceof le||_0x4e5f04 instanceof fe)&&_0x4e5f04['resend'](),_0x4e5f04;}return this[_0x47d308(0x495)][_0x47d308(0x560)](me,_0x54a9fb,this[_0x47d308(0x391)],_0x4782a4,_0x1db9d1,_0x52d754);}[_0x3b224c(0x28d)](_0x5767d9,_0x5e5299){const _0x58a164=_0x3b224c;var _0x37d212,_0x18d05a;const _0x2b80b=this[_0x58a164(0x2fe)]['interceptor'][_0x58a164(0x205)](this['_compressMutationService']['interceptor']['getInterceptPoints']()['COMPRESS_MUTATION_APPLY']);(_0x37d212=_0x2b80b((_0x5767d9==null?void 0x0:_0x5767d9[_0x58a164(0x229)])||[],null))==null||_0x37d212[_0x58a164(0x54f)](_0x528fa2=>this[_0x58a164(0x2b1)][_0x58a164(0x5ad)](_0x528fa2['id'],_0x528fa2[_0x58a164(0x2be)])),(_0x18d05a=_0x2b80b(_0x5e5299||[],null))==null||_0x18d05a[_0x58a164(0x54f)](_0xc20e6b=>this['_commandService'][_0x58a164(0x5ad)](_0xc20e6b['id'],_0xc20e6b[_0x58a164(0x2be)]));}},exports[_0x3b224c(0x1ed)]=yt([H(0x3,a[_0x3b224c(0x556)](a['Injector'])),H(0x4,a['Inject'](exports[_0x3b224c(0x42a)])),H(0x5,a[_0x3b224c(0x556)](S[_0x3b224c(0x407)])),H(0x6,a[_0x3b224c(0x556)](a[_0x3b224c(0x4ae)])),H(0x7,a[_0x3b224c(0x556)](S['RevisionService'])),H(0x8,a['ILogService']),H(0x9,a['ICommandService']),H(0xa,ee[_0x3b224c(0x2d5)]),H(0xb,a[_0x3b224c(0x36e)]),H(0xc,a[_0x3b224c(0x3e1)](qe))],exports['CollaborationEntity']),exports['DocCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x58eb97,_0x8b9720,_0x304e81,_0x4d9fb3,_0x44dcb5,_0x481fb0,_0x21af68,_0x6d2c4b,_0x31cebf,_0x4d9bca,_0x17aa1a,_0xf023f1,_0x430472,_0x4b1a59,_0x46b120,_0xa85cc2,_0xa4910a,_0x2a1f33){const _0x342843=_0x3b224c;super(_0x58eb97,_0x304e81,_0x8b9720,_0x4d9fb3,_0x44dcb5,_0x481fb0,_0x21af68,_0x6d2c4b,_0x4b1a59,_0x46b120,_0xa85cc2,_0xa4910a,_0x2a1f33),this['unitID']=_0x58eb97,this['type']=_0x8b9720,this[_0x342843(0x1e7)]=_0x31cebf,this['_docTransformIMECacheService']=_0x4d9bca,this[_0x342843(0x3a2)]=_0x17aa1a,this[_0x342843(0x30e)]=_0xf023f1,this[_0x342843(0x3b5)]=_0x430472;}[_0x3b224c(0x2aa)](){const _0x79faae=_0x3b224c,_0xd73401=super[_0x79faae(0x2aa)]();return _0xd73401['onTransformIME']=_0x5496b7=>this['_docTransformIMECacheService'][_0x79faae(0x57c)](_0x5496b7),_0xd73401[_0x79faae(0x53c)]=_0x422a7f=>this[_0x79faae(0x3a2)][_0x79faae(0x399)](_0x422a7f),_0xd73401['onTransformSelections']=_0x5c20ef=>this[_0x79faae(0x30e)][_0x79faae(0x372)](_0x5c20ef),_0xd73401[_0x79faae(0x309)]=_0x54c142=>this[_0x79faae(0x3b5)][_0x79faae(0x46a)](_0x54c142),_0xd73401[_0x79faae(0x2d8)]=_0x453ad0=>this[_0x79faae(0x434)][_0x79faae(0x37f)](_0x453ad0),_0xd73401[_0x79faae(0x5de)]=_0x128556=>this[_0x79faae(0x3a2)][_0x79faae(0x37f)](_0x128556),_0xd73401;}async[_0x3b224c(0x578)](){const _0x45c624=_0x3b224c,_0x538935=await super[_0x45c624(0x578)]();return this[_0x45c624(0x1e7)][_0x45c624(0x538)][_0x45c624(0x3cc)](A[_0x45c624(0x58f)](this['dispose$']))[_0x45c624(0x2de)](_0x507c55=>{const _0x367b7b=_0x45c624;if(_0x507c55==null)return;const {unitId:_0x17d315,redoState:_0x5ec444,commandId:_0x277714}=_0x507c55;if(_0x17d315!==this[_0x367b7b(0x236)])return;const _0x32dc05={'id':_0x277714,'type':a[_0x367b7b(0x549)][_0x367b7b(0x57e)],'params':{'unitId':_0x17d315,'actions':_0x5ec444['actions'],'textRanges':null}};this['_onLocalMutation'](_0x32dc05);}),_0x538935;}},exports[_0x3b224c(0x451)]=yt([H(0x3,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),H(0x4,a[_0x3b224c(0x556)](exports[_0x3b224c(0x42a)])),H(0x5,a[_0x3b224c(0x556)](S[_0x3b224c(0x407)])),H(0x6,a[_0x3b224c(0x556)](a[_0x3b224c(0x4ae)])),H(0x7,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),H(0x8,a['Inject'](J[_0x3b224c(0x1fb)])),H(0x9,a[_0x3b224c(0x556)](Be)),H(0xa,a[_0x3b224c(0x556)](We)),H(0xb,a[_0x3b224c(0x556)](Fe)),H(0xc,a[_0x3b224c(0x556)](Rt)),H(0xd,a['ILogService']),H(0xe,a[_0x3b224c(0x3d4)]),H(0xf,ee[_0x3b224c(0x2d5)]),H(0x10,a[_0x3b224c(0x36e)]),H(0x11,a[_0x3b224c(0x3e1)](qe))],exports[_0x3b224c(0x451)]),exports['SheetCollaborationEntity']=class extends exports[_0x3b224c(0x1ed)]{constructor(_0x386852,_0x8d465d,_0x401998,_0x411d0e,_0x5eb0c0,_0x2f1c61,_0x492fa3,_0x2dbcb6,_0xa1cd60,_0x41c8f6,_0x38b927,_0x43cd6d,_0x29ff48,_0x5d4fd9){const _0x556394=_0x3b224c;super(_0x386852,_0x401998,_0x8d465d,_0x411d0e,_0x5eb0c0,_0x2f1c61,_0x492fa3,_0x2dbcb6,_0x41c8f6,_0x38b927,_0x43cd6d,_0x29ff48,_0x5d4fd9),this[_0x556394(0x236)]=_0x386852,this[_0x556394(0x5bb)]=_0x8d465d,this[_0x556394(0x4f9)]=_0xa1cd60;}['_createHandler'](){const _0x562f2f=_0x3b224c,_0x4752cc=super[_0x562f2f(0x2aa)]();return _0x4752cc[_0x562f2f(0x478)]=_0x39549e=>this[_0x562f2f(0x4f9)]['transformSelections'](_0x39549e),_0x4752cc;}async[_0x3b224c(0x578)](){const _0x26fb92=_0x3b224c,_0x9c769c=await super[_0x26fb92(0x578)]();return this[_0x26fb92(0x220)](this['_commandService'][_0x26fb92(0x3fe)]((_0x56764c,_0xdbf211)=>{const _0x3b9129=_0x26fb92;if(_0x56764c[_0x3b9129(0x5bb)]!==a[_0x3b9129(0x549)][_0x3b9129(0x57e)]||_0xdbf211!=null&&_0xdbf211[_0x3b9129(0x1dd)]||_0xdbf211!=null&&_0xdbf211[_0x3b9129(0x331)])return;const _0x35178f=_0x56764c['params'];if((_0x35178f==null?void 0x0:_0x35178f[_0x3b9129(0x242)])!==this[_0x3b9129(0x236)])return;const _0x14378c=_0x56764c,_0x22ce4e=this[_0x3b9129(0x2fe)][_0x3b9129(0x498)][_0x3b9129(0x205)](this[_0x3b9129(0x2fe)][_0x3b9129(0x498)]['getInterceptPoints']()[_0x3b9129(0x4ed)])([_0x14378c],null)||[_0x14378c];this['_onLocalMutation'](_0x22ce4e[0x0]);})),_0x9c769c;}},exports[_0x3b224c(0x51e)]=yt([H(0x3,a[_0x3b224c(0x556)](a['Injector'])),H(0x4,a[_0x3b224c(0x556)](exports[_0x3b224c(0x42a)])),H(0x5,a[_0x3b224c(0x556)](S['CompressMutationService'])),H(0x6,a[_0x3b224c(0x556)](a[_0x3b224c(0x4ae)])),H(0x7,a[_0x3b224c(0x556)](S[_0x3b224c(0x33f)])),H(0x8,a['Inject'](ke)),H(0x9,a[_0x3b224c(0x5ae)]),H(0xa,a['ICommandService']),H(0xb,ee['IMessageService']),H(0xc,a[_0x3b224c(0x36e)]),H(0xd,a['Optional'](qe))],exports[_0x3b224c(0x51e)]);var Wi=Object[_0x3b224c(0x209)],Fi=Object[_0x3b224c(0x233)],Vi=(_0x11bb12,_0x341e8c,_0x1fd6b4,_0x5f814e)=>{for(var _0x97345f=_0x5f814e>0x1?void 0x0:_0x5f814e?Fi(_0x341e8c,_0x1fd6b4):_0x341e8c,_0x3a0cbd=_0x11bb12['length']-0x1,_0x541a66;_0x3a0cbd>=0x0;_0x3a0cbd--)(_0x541a66=_0x11bb12[_0x3a0cbd])&&(_0x97345f=(_0x5f814e?_0x541a66(_0x341e8c,_0x1fd6b4,_0x97345f):_0x541a66(_0x97345f))||_0x97345f);return _0x5f814e&&_0x97345f&&Wi(_0x341e8c,_0x1fd6b4,_0x97345f),_0x97345f;},tt=(_0x295da2,_0x57ac7f)=>(_0x1535a3,_0xdab8c7)=>_0x57ac7f(_0x1535a3,_0xdab8c7,_0x295da2);exports[_0x3b224c(0x1d0)]=class extends a[_0x3b224c(0x274)]{constructor(_0x7e517a,_0x963ea8,_0x3479f1){const _0x1b74a8=_0x3b224c;super(),I(this,_0x1b74a8(0x3f6),new Map()),I(this,_0x1b74a8(0x231),new A[(_0x1b74a8(0x13f))]()),(this[_0x1b74a8(0x495)]=_0x7e517a,this[_0x1b74a8(0x1c9)]=_0x963ea8,this['_univerInstanceService']=_0x3479f1,this[_0x1b74a8(0x578)]());}[_0x3b224c(0x2fa)](){const _0x16f03c=_0x3b224c;super[_0x16f03c(0x2fa)](),this[_0x16f03c(0x3f6)][_0x16f03c(0x54f)](_0x1798c5=>_0x1798c5[_0x16f03c(0x2fa)]()),this['_entities'][_0x16f03c(0x3b6)]();}[_0x3b224c(0x530)](_0x14b56a){const _0x416c8a=_0x3b224c;var _0x4db12d;return(_0x4db12d=this[_0x416c8a(0x3f6)][_0x416c8a(0x273)](_0x14b56a))!=null?_0x4db12d:null;}[_0x3b224c(0x4c8)](_0x17cb59){const _0x4c6ed7=_0x3b224c,_0x587cc3=this[_0x4c6ed7(0x530)](_0x17cb59);return _0x587cc3?A['of'](_0x587cc3):this[_0x4c6ed7(0x231)][_0x4c6ed7(0x3cc)](V[_0x4c6ed7(0x567)](_0x1b5eb3=>_0x1b5eb3[_0x4c6ed7(0x236)]===_0x17cb59));}[_0x3b224c(0x578)](){const _0x3652b3=_0x3b224c;this[_0x3652b3(0x15e)][_0x3652b3(0x291)](a[_0x3652b3(0x3b1)][_0x3652b3(0x460)])['pipe'](A[_0x3652b3(0x58f)](this[_0x3652b3(0x19d)]),V[_0x3652b3(0x2a1)](0x10))[_0x3652b3(0x2de)](async _0x289c4c=>{const _0x1c0d5b=_0x3652b3,_0x46fb16=_0x289c4c[_0x1c0d5b(0x22d)](),_0x27bfce=await this['_startCollaboration'](_0x46fb16,ie[_0x1c0d5b(0x460)]);this[_0x1c0d5b(0x3f6)][_0x1c0d5b(0x437)](_0x46fb16,_0x27bfce);}),this['_univerInstanceService'][_0x3652b3(0x291)](a['UniverInstanceType'][_0x3652b3(0x508)])['pipe'](A[_0x3652b3(0x58f)](this[_0x3652b3(0x19d)]),V['delay'](0x10))[_0x3652b3(0x3cc)](V[_0x3652b3(0x567)](_0x5f2a09=>!_0x5f2a09[_0x3652b3(0x22d)]()[_0x3652b3(0x4d4)]('__')))['subscribe'](async _0x32ca4c=>{const _0x294a1a=_0x3652b3,_0x3605b4=_0x32ca4c['getUnitId'](),_0x15e080=await this[_0x294a1a(0x255)](_0x3605b4,ie[_0x294a1a(0x508)]);this[_0x294a1a(0x3f6)][_0x294a1a(0x437)](_0x3605b4,_0x15e080);}),A[_0x3652b3(0x3d6)](this[_0x3652b3(0x15e)][_0x3652b3(0x1c8)](a['UniverInstanceType'][_0x3652b3(0x460)]),this[_0x3652b3(0x15e)][_0x3652b3(0x1c8)](a[_0x3652b3(0x3b1)]['UNIVER_DOC']))[_0x3652b3(0x3cc)](A[_0x3652b3(0x58f)](this[_0x3652b3(0x19d)]))[_0x3652b3(0x2de)](_0x4cb0a3=>{const _0x2115c2=_0x3652b3,_0x326108=_0x4cb0a3[_0x2115c2(0x22d)](),_0x4a6a6e=this[_0x2115c2(0x3f6)][_0x2115c2(0x273)](_0x326108);_0x4a6a6e&&(_0x4a6a6e['dispose'](),this['_entities']['delete'](_0x326108));});}async[_0x3b224c(0x255)](_0x449c77,_0x122c8e){const _0x136aff=_0x3b224c,_0x40f2f4=await this[_0x136aff(0x1c9)][_0x136aff(0x376)](_0x449c77),_0x2401df=this[_0x136aff(0x495)][_0x136aff(0x560)](this[_0x136aff(0x428)](_0x122c8e),_0x449c77,_0x122c8e,_0x40f2f4);return await _0x2401df['init'](),this['_entityInit$'][_0x136aff(0x1e1)](_0x2401df),_0x2401df;}[_0x3b224c(0x428)](_0xdbd002){const _0x5a4050=_0x3b224c;switch(_0xdbd002){case ie[_0x5a4050(0x508)]:return exports['DocCollaborationEntity'];case ie[_0x5a4050(0x460)]:return exports['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0xdbd002);}}},exports[_0x3b224c(0x1d0)]=Vi([tt(0x0,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),tt(0x1,a['Inject'](exports[_0x3b224c(0x5d8)])),tt(0x2,a[_0x3b224c(0x5a1)])],exports[_0x3b224c(0x1d0)]);const $t=['purple300',_0x3b224c(0x45a),_0x3b224c(0x522),_0x3b224c(0x59b),_0x3b224c(0x1aa),_0x3b224c(0x162)];class Ot extends a[_0x3b224c(0x52b)]{constructor(){const _0x5d747c=_0x3b224c;super(...arguments),I(this,_0x5d747c(0x247),new Map()),I(this,_0x5d747c(0x4d1),0x0);}[_0x3b224c(0x326)](_0x347f4d){const _0x585f73=_0x3b224c;if(this[_0x585f73(0x247)][_0x585f73(0x339)](_0x347f4d))return this['_assignedColors'][_0x585f73(0x273)](_0x347f4d);const _0x404019=$t[this[_0x585f73(0x4d1)]];return this[_0x585f73(0x4d1)]=(this[_0x585f73(0x4d1)]+0x1)%$t[_0x585f73(0x2a8)],this['_assignedColors'][_0x585f73(0x437)](_0x347f4d,_0x404019),_0x404019;}}var Gi=Object[_0x3b224c(0x209)],Yi=Object[_0x3b224c(0x233)],Ki=(_0x3a4da4,_0x1b81ec,_0x52a05c,_0x5ac5fc)=>{const _0x50b277=_0x3b224c;for(var _0x427b4b=_0x5ac5fc>0x1?void 0x0:_0x5ac5fc?Yi(_0x1b81ec,_0x52a05c):_0x1b81ec,_0x2430c8=_0x3a4da4[_0x50b277(0x2a8)]-0x1,_0x1afb73;_0x2430c8>=0x0;_0x2430c8--)(_0x1afb73=_0x3a4da4[_0x2430c8])&&(_0x427b4b=(_0x5ac5fc?_0x1afb73(_0x1b81ec,_0x52a05c,_0x427b4b):_0x1afb73(_0x427b4b))||_0x427b4b);return _0x5ac5fc&&_0x427b4b&&Gi(_0x1b81ec,_0x52a05c,_0x427b4b),_0x427b4b;},Se=(_0x1b2ccf,_0x58c1cf)=>(_0x3ed84c,_0x2d9bfa)=>_0x58c1cf(_0x3ed84c,_0x2d9bfa,_0x1b2ccf);const qi=0x12c,zi=0x64;let mt=class extends a[_0x3b224c(0x274)]{constructor(_0x447aa9,_0x47b74c,_0x5c6c23,_0x106561,_0x2cc73f,_0x3cd7e6,_0x52d472,_0x44547b,_0x10e837){const _0x1bb9c2=_0x3b224c;super(),I(this,'_online',!0x1),I(this,_0x1bb9c2(0x578),!0x1),I(this,_0x1bb9c2(0x31f),new A[(_0x1bb9c2(0x33e))](new Map())),I(this,_0x1bb9c2(0x2fb),this[_0x1bb9c2(0x31f)][_0x1bb9c2(0x4f7)]()),I(this,_0x1bb9c2(0x1f2),new A[(_0x1bb9c2(0x33e))]([])),I(this,'roomMembers$',this[_0x1bb9c2(0x1f2)]['pipe'](A[_0x1bb9c2(0x532)](qi))),I(this,_0x1bb9c2(0x1db),a[_0x1bb9c2(0x1bb)](_0x1cc2ca=>{const _0x2adbbd=_0x1bb9c2,_0x2ed1c3={'eventID':S[_0x2adbbd(0x136)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x2adbbd(0x236)],'memberID':this['_session']['getMemberID'](),'selection':dn(_0x1cc2ca)}};this['_session'][_0x2adbbd(0x50d)](_0x2ed1c3,this['unitID']);},zi)),(this[_0x1bb9c2(0x236)]=_0x447aa9,this[_0x1bb9c2(0x23d)]=_0x47b74c,this[_0x1bb9c2(0x495)]=_0x5c6c23,this[_0x1bb9c2(0x450)]=_0x106561,this[_0x1bb9c2(0x486)]=_0x2cc73f,this[_0x1bb9c2(0x555)]=_0x3cd7e6,this[_0x1bb9c2(0x5c9)]=_0x52d472,this['_univerInstanceService']=_0x44547b,this[_0x1bb9c2(0x2b1)]=_0x10e837);}get[_0x3b224c(0x1e4)](){const _0x37ea87=_0x3b224c;return this[_0x37ea87(0x31f)]['getValue']();}get['roomMembers'](){const _0x4b35ea=_0x3b224c;return this['_roomMembers$'][_0x4b35ea(0x3df)]();}[_0x3b224c(0x2fa)](){const _0x3e6a19=_0x3b224c;super[_0x3e6a19(0x2fa)](),this[_0x3e6a19(0x31f)]['next'](new Map()),this['_cursorInfo$'][_0x3e6a19(0x163)](),this[_0x3e6a19(0x1f2)][_0x3e6a19(0x1e1)]([]),this['_roomMembers$']['complete']();}[_0x3b224c(0x20b)](){const _0x1082f2=_0x3b224c;this['_init']||(this[_0x1082f2(0x578)]=!0x0,this[_0x1082f2(0x23d)][_0x1082f2(0x480)][_0x1082f2(0x3cc)](A[_0x1082f2(0x58f)](this['dispose$']))[_0x1082f2(0x2de)](_0xcab965=>{const _0xf02903=_0x1082f2;_0xcab965===se[_0xf02903(0x3a3)]?this[_0xf02903(0x4bd)]():this[_0xf02903(0x30d)]();}),this[_0x1082f2(0x23d)][_0x1082f2(0x396)]['pipe'](A[_0x1082f2(0x58f)](this[_0x1082f2(0x19d)]))[_0x1082f2(0x2de)](_0x139aa7=>{const _0x26cc81=_0x1082f2,_0x4063a5=_0x139aa7[_0x26cc81(0x4a9)];_0x4063a5===S['CollaborationEvent'][_0x26cc81(0x182)]&&this[_0x26cc81(0x505)](_0x139aa7),_0x4063a5===S[_0x26cc81(0x136)][_0x26cc81(0x502)]&&this['_onCursorDelete'](_0x139aa7);}),this['disposeWithMe'](this[_0x1082f2(0x2b1)][_0x1082f2(0x3fe)](_0x4aee4a=>{const _0x540904=_0x1082f2,_0x1e9a83=_0x4aee4a[_0x540904(0x2be)];_0x1e9a83!=null&&this['_online']&&_0x4aee4a['id']===ye[_0x540904(0x445)]['id']&&_0x1e9a83[_0x540904(0x242)]===this[_0x540904(0x236)]&&_0x1e9a83['isEditing']===!0x1&&_0x1e9a83[_0x540904(0x386)][_0x540904(0x2a8)]>0x0&&this['_updateLocalCursor'](_0x1e9a83[_0x540904(0x386)]);})),this[_0x1082f2(0x555)][_0x1082f2(0x14c)][_0x1082f2(0x3cc)](A['takeUntil'](this[_0x1082f2(0x19d)]))[_0x1082f2(0x2de)](_0x32df46=>{const _0x5881f0=_0x1082f2;if((_0x32df46==null?void 0x0:_0x32df46['unitID'])!==this[_0x5881f0(0x236)])return;const _0x4d8c33={'eventID':S[_0x5881f0(0x136)][_0x5881f0(0x182)],'data':_0x32df46};this[_0x5881f0(0x505)](_0x4d8c33);}),this[_0x1082f2(0x220)](this['_commandService'][_0x1082f2(0x3fe)](_0x1d5b06=>{const _0x50b594=_0x1082f2;if(_0x1d5b06[_0x50b594(0x2be)]==null)return;const _0x3b9bbf=_0x1d5b06[_0x50b594(0x2be)];if(_0x1d5b06['id']!==ye[_0x50b594(0x19f)]['id']||_0x3b9bbf['unitId']!==this[_0x50b594(0x236)])return;const _0x4086bc={'id':_0x50b594(0x59c),'params':_0x3b9bbf},_0x2ee308=this[_0x50b594(0x1e4)];for(const [_0x1df0f8,_0x2129ba]of _0x2ee308){const _0x28812c={'id':_0x50b594(0x59c),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x2129ba[_0x50b594(0x386)]}},_0x25c10e=this[_0x50b594(0x5c9)][_0x50b594(0x38c)](_0x4086bc,_0x28812c,!0x1);if(S['isTransformMutationFailure'](_0x25c10e))throw _0x25c10e[_0x50b594(0x423)];_0x2ee308[_0x50b594(0x437)](_0x1df0f8,{..._0x2129ba,'ranges':_0x25c10e[_0x50b594(0x3f1)][_0x50b594(0x2be)]['textRanges']});}queueMicrotask(()=>{const _0x1f21aa=_0x50b594;this[_0x1f21aa(0x31f)][_0x1f21aa(0x1e1)](_0x2ee308);});})));}[_0x3b224c(0x505)](_0x23017d){const _0x28a628=_0x3b224c;var _0x4cace2,_0x51c7b9;const {memberID:_0x1b4196,selection:_0x827e8f}=_0x23017d[_0x28a628(0x34e)],_0x109a7d=Ui(_0x827e8f),_0x243c4f=(_0x51c7b9=(_0x4cace2=this[_0x28a628(0x486)][_0x28a628(0x2af)](this[_0x28a628(0x236)],_0x1b4196))==null?void 0x0:_0x4cace2[_0x28a628(0x513)])!=null?_0x51c7b9:_0x28a628(0x31e),_0x2ba253={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x1b4196),'name':_0x243c4f,'ranges':_0x109a7d},_0x3ad1a9=this[_0x28a628(0x1e4)];_0x3ad1a9['set'](_0x1b4196,_0x2ba253),this[_0x28a628(0x31f)][_0x28a628(0x1e1)](_0x3ad1a9);}['_onCursorDelete'](_0x297e21){const _0x10f148=_0x3b224c,{memberID:_0x154957}=_0x297e21[_0x10f148(0x34e)],_0x590adc=this[_0x10f148(0x1e4)];_0x590adc[_0x10f148(0x463)](_0x154957),this[_0x10f148(0x31f)]['next'](_0x590adc);}[_0x3b224c(0x4bd)](){const _0x359630=_0x3b224c;var _0x590053;if(this[_0x359630(0x531)]=!0x0,((_0x590053=this[_0x359630(0x15e)][_0x359630(0x499)]())==null?void 0x0:_0x590053[_0x359630(0x22d)]())!==this[_0x359630(0x236)])return;const _0x493553=this[_0x359630(0x495)]['get'](ye[_0x359630(0x130)])[_0x359630(0x1c1)]();Array['isArray'](_0x493553)&&_0x493553[_0x359630(0x2a8)]>0x0&&this[_0x359630(0x1db)](_0x493553);}[_0x3b224c(0x30d)](){this['_online']=!0x1;}};mt=Ki([Se(0x2,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),Se(0x3,a['Inject'](Ot)),Se(0x4,a[_0x3b224c(0x556)](exports[_0x3b224c(0x5db)])),Se(0x5,a['Inject'](Rt)),Se(0x6,S[_0x3b224c(0x180)]),Se(0x7,a[_0x3b224c(0x5a1)]),Se(0x8,a[_0x3b224c(0x3d4)])],mt);var Xi=Object[_0x3b224c(0x209)],Ji=Object[_0x3b224c(0x233)],Zi=(_0x5c5a81,_0x41e695,_0x2520e2,_0x3873e9)=>{for(var _0x3de93f=_0x3873e9>0x1?void 0x0:_0x3873e9?Ji(_0x41e695,_0x2520e2):_0x41e695,_0x253589=_0x5c5a81['length']-0x1,_0x2d194b;_0x253589>=0x0;_0x253589--)(_0x2d194b=_0x5c5a81[_0x253589])&&(_0x3de93f=(_0x3873e9?_0x2d194b(_0x41e695,_0x2520e2,_0x3de93f):_0x2d194b(_0x3de93f))||_0x3de93f);return _0x3873e9&&_0x3de93f&&Xi(_0x41e695,_0x2520e2,_0x3de93f),_0x3de93f;},be=(_0x58c82f,_0x477580)=>(_0x1ad579,_0x6d37d6)=>_0x477580(_0x1ad579,_0x6d37d6,_0x58c82f);const Qi=0x12c,es=0x64,ts=()=>{let _0x4a2938=[],_0x2a03a7=!0x1;return _0x2584e6=>{const _0x5376ab=_0x1276;_0x4a2938[_0x5376ab(0x1a8)](_0x2584e6),_0x2a03a7||(_0x2a03a7=!0x0,setTimeout(()=>{const _0x312797=_0x5376ab;_0x4a2938[_0x312797(0x54f)](_0x2d030f=>_0x2d030f()),_0x4a2938=[],_0x2a03a7=!0x1;}));};};let St=class extends a[_0x3b224c(0x274)]{constructor(_0x90b692,_0x311025,_0x17ad31,_0x393c47,_0x552629,_0x2546c5,_0x52b8e5,_0x243767){const _0x4373d6=_0x3b224c;super(),I(this,_0x4373d6(0x531),!0x1),I(this,_0x4373d6(0x578),!0x1),I(this,'_cursorInfo$',new A[(_0x4373d6(0x33e))](new Map())),I(this,_0x4373d6(0x2fb),this['_cursorInfo$'][_0x4373d6(0x4f7)]()),I(this,_0x4373d6(0x1f2),new A[(_0x4373d6(0x33e))]([])),I(this,_0x4373d6(0x425),this[_0x4373d6(0x1f2)][_0x4373d6(0x3cc)](A[_0x4373d6(0x532)](Qi))),I(this,_0x4373d6(0x1db),a[_0x4373d6(0x1bb)]((_0xeceebd,_0x17e59d)=>{const _0x17887a=_0x4373d6,_0x471c2e={'eventID':S[_0x17887a(0x136)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x17887a(0x236)],'memberID':this[_0x17887a(0x23d)]['getMemberID'](),'selection':Pt['serializeRangeWithSheet'](_0xeceebd,_0x17e59d['range'])}};this['_session'][_0x17887a(0x50d)](_0x471c2e,this[_0x17887a(0x236)]);},es)),(this[_0x4373d6(0x236)]=_0x90b692,this[_0x4373d6(0x23d)]=_0x311025,this[_0x4373d6(0x495)]=_0x17ad31,this[_0x4373d6(0x450)]=_0x393c47,this[_0x4373d6(0x486)]=_0x552629,this[_0x4373d6(0x15e)]=_0x2546c5,this[_0x4373d6(0x2b1)]=_0x52b8e5,this[_0x4373d6(0x4b9)]=_0x243767);}get[_0x3b224c(0x1e4)](){const _0x2771e3=_0x3b224c;return this[_0x2771e3(0x31f)]['getValue']();}get['roomMembers'](){const _0x3f24ad=_0x3b224c;return this[_0x3f24ad(0x1f2)][_0x3f24ad(0x3df)]();}[_0x3b224c(0x2fa)](){const _0x1e0d15=_0x3b224c;super[_0x1e0d15(0x2fa)](),this[_0x1e0d15(0x31f)][_0x1e0d15(0x1e1)](new Map()),this['_cursorInfo$']['complete'](),this[_0x1e0d15(0x1f2)][_0x1e0d15(0x1e1)]([]),this[_0x1e0d15(0x1f2)][_0x1e0d15(0x163)]();}[_0x3b224c(0x20b)](){const _0xce183f=_0x3b224c;this[_0xce183f(0x578)]||(this[_0xce183f(0x578)]=!0x0,this[_0xce183f(0x23d)]['sessionStatus$'][_0xce183f(0x3cc)](A[_0xce183f(0x58f)](this[_0xce183f(0x19d)]))[_0xce183f(0x2de)](_0x3f5157=>{const _0x2531bb=_0xce183f;_0x3f5157===se[_0x2531bb(0x3a3)]?this[_0x2531bb(0x4bd)]():this[_0x2531bb(0x30d)]();}),this[_0xce183f(0x23d)][_0xce183f(0x396)][_0xce183f(0x3cc)](A[_0xce183f(0x58f)](this[_0xce183f(0x19d)]))[_0xce183f(0x2de)](_0x18010c=>{const _0x31133e=_0xce183f,_0x2fba46=_0x18010c[_0x31133e(0x4a9)];_0x2fba46===S[_0x31133e(0x136)]['UPDATE_CURSOR']&&this[_0x31133e(0x505)](_0x18010c),_0x2fba46===S[_0x31133e(0x136)][_0x31133e(0x502)]&&this[_0x31133e(0x387)](_0x18010c);}),this[_0xce183f(0x18e)](),this[_0xce183f(0x220)](this[_0xce183f(0x2b1)][_0xce183f(0x3fe)](_0x5b2395=>{const _0x1b9200=_0xce183f;if(this[_0x1b9200(0x531)]&&_0x5b2395['id']===k[_0x1b9200(0x324)]['id']&&_0x5b2395[_0x1b9200(0x2be)][_0x1b9200(0x242)]===this[_0x1b9200(0x236)]){const _0x41cbff=_0x5b2395[_0x1b9200(0x2be)];this[_0x1b9200(0x1db)](_0x41cbff[_0x1b9200(0x4b4)],_0x41cbff[_0x1b9200(0x4a0)][0x0]);}})));}['_onCursorUpdate'](_0x250ea9){const _0x101e9c=_0x3b224c;var _0x4b5d96,_0x13e3b4;const {memberID:_0x4a2afe,selection:_0x2e04d1}=_0x250ea9[_0x101e9c(0x34e)],{sheetName:_0x36a989,range:_0x32ce0c}=Pt[_0x101e9c(0x539)](_0x2e04d1),_0x50d580={'name':(_0x13e3b4=(_0x4b5d96=this[_0x101e9c(0x486)][_0x101e9c(0x2af)](this['unitID'],_0x4a2afe))==null?void 0x0:_0x4b5d96[_0x101e9c(0x513)])!=null?_0x13e3b4:_0x101e9c(0x31e),'range':this[_0x101e9c(0x363)](_0x36a989,_0x32ce0c),'sheetID':_0x36a989,'color':this[_0x101e9c(0x450)][_0x101e9c(0x326)](_0x4a2afe),'selection':_0x2e04d1},_0x30e138=this['cursorInfo'];_0x30e138[_0x101e9c(0x437)](_0x4a2afe,_0x50d580),this[_0x101e9c(0x31f)][_0x101e9c(0x1e1)](_0x30e138);}[_0x3b224c(0x387)](_0x197173){const _0x2ed41d=_0x3b224c,{memberID:_0x54daae}=_0x197173[_0x2ed41d(0x34e)],_0x55d267=this['cursorInfo'];_0x55d267['delete'](_0x54daae),this[_0x2ed41d(0x31f)][_0x2ed41d(0x1e1)](_0x55d267);}[_0x3b224c(0x363)](_0x5f3073,_0x57cef7){const _0x433884=_0x3b224c;var _0x1cfed6,_0x5d9267;const _0xccab81=(_0x5d9267=(_0x1cfed6=this[_0x433884(0x15e)]['getUniverSheetInstance'](this[_0x433884(0x236)]))==null?void 0x0:_0x1cfed6[_0x433884(0x574)](_0x5f3073))==null?void 0x0:_0x5d9267[_0x433884(0x1d4)]();return(_0xccab81==null?void 0x0:_0xccab81['find'](_0x347ee3=>a[_0x433884(0x44c)][_0x433884(0x328)](_0x347ee3,_0x57cef7)))||_0x57cef7;}[_0x3b224c(0x18e)](){const _0x551edd=_0x3b224c,_0x23a541=new a[(_0x551edd(0x194))](),_0x1d25c5=ts(),_0x2826c5=()=>{const _0x285922=_0x551edd;_0x23a541[_0x285922(0x2fa)]();const _0xee4a37=(_0x377603,_0x17ea1c,_0x35ad9a,_0x190a13)=>{const _0x47b6b9=_0x285922;let _0x11eecf=[];switch(_0x377603['id']){case k['EffectRefRangId'][_0x47b6b9(0x464)]:{_0x11eecf=k[_0x47b6b9(0x39e)](_0x377603,_0x190a13);break;}case k[_0x47b6b9(0x289)][_0x47b6b9(0x56a)]:{_0x11eecf=k[_0x47b6b9(0x32f)](_0x377603,_0x190a13);break;}case k[_0x47b6b9(0x289)][_0x47b6b9(0x1d3)]:{_0x11eecf=k[_0x47b6b9(0x57f)](_0x377603,_0x190a13);break;}case k['EffectRefRangId']['InsertRangeMoveDownCommandId']:{_0x11eecf=k[_0x47b6b9(0x547)](_0x377603,_0x190a13);break;}case k[_0x47b6b9(0x289)][_0x47b6b9(0x2b8)]:{_0x11eecf=k[_0x47b6b9(0x27b)](_0x377603,_0x190a13);break;}case k['EffectRefRangId'][_0x47b6b9(0x4f8)]:{_0x11eecf=k[_0x47b6b9(0x285)](_0x377603,_0x190a13);break;}case k[_0x47b6b9(0x289)][_0x47b6b9(0x5c7)]:{_0x11eecf=k[_0x47b6b9(0x566)](_0x377603,_0x190a13);break;}case k['EffectRefRangId'][_0x47b6b9(0x2d2)]:{_0x11eecf=k['handleIRemoveCol'](_0x377603,_0x190a13);break;}case k['EffectRefRangId'][_0x47b6b9(0x401)]:{_0x11eecf=k['handleIRemoveRow'](_0x377603,_0x190a13);break;}}const _0x1e478f=k['runRefRangeMutations'](_0x11eecf,_0x190a13),_0x3e4692=this['cursorInfo'][_0x47b6b9(0x273)](_0x17ea1c);if(_0x3e4692&&_0x1e478f){const _0x2d1ba6={..._0x3e4692,'range':_0x1e478f};this[_0x47b6b9(0x1e4)]['set'](_0x17ea1c,_0x2d1ba6),_0x1d25c5(()=>{const _0x272188=_0x47b6b9,_0x131c8a=this[_0x272188(0x4b9)][_0x272188(0x201)](_0x1e478f,_0x865e05=>(_0x131c8a[_0x272188(0x2fa)](),_0xee4a37(_0x865e05,_0x17ea1c,_0x35ad9a,_0x1e478f)));_0x23a541[_0x272188(0x594)](_0x131c8a);});}return{'redos':[],'undos':[]};};this[_0x285922(0x1e4)][_0x285922(0x54f)]((_0x3b2b63,_0x25d51b)=>{const _0xd727b=_0x285922,{range:_0x930eec,sheetID:_0x16249b}=_0x3b2b63,_0x5f4ab0=this[_0xd727b(0x4b9)][_0xd727b(0x201)](_0x930eec,_0x2cf46f=>(_0x5f4ab0[_0xd727b(0x2fa)](),_0xee4a37(_0x2cf46f,_0x25d51b,_0x16249b,_0x930eec)));_0x23a541['add'](_0x5f4ab0);});};this[_0x551edd(0x220)](a[_0x551edd(0x597)](this[_0x551edd(0x31f)][_0x551edd(0x2de)](()=>{_0x2826c5();})));}[_0x3b224c(0x4bd)](){const _0x3a2b10=_0x3b224c;var _0x3de522,_0x11b06d;if(this[_0x3a2b10(0x531)]=!0x0,((_0x3de522=this[_0x3a2b10(0x15e)][_0x3a2b10(0x499)]())==null?void 0x0:_0x3de522[_0x3a2b10(0x22d)]())!==this[_0x3a2b10(0x236)])return;const _0x465054=(_0x11b06d=this[_0x3a2b10(0x495)][_0x3a2b10(0x273)](k['SheetsSelectionsService'])[_0x3a2b10(0x16f)]())==null?void 0x0:_0x11b06d[0x0],_0x130e70=this[_0x3a2b10(0x15e)][_0x3a2b10(0x4c3)](a[_0x3a2b10(0x3b1)][_0x3a2b10(0x460)])['getActiveSheet']();_0x465054&&_0x130e70&&this[_0x3a2b10(0x1db)](_0x130e70['getSheetId'](),_0x465054);}[_0x3b224c(0x30d)](){const _0xdfa0d=_0x3b224c;this[_0xdfa0d(0x531)]=!0x1;}};St=Zi([be(0x2,a['Inject'](a[_0x3b224c(0x157)])),be(0x3,a[_0x3b224c(0x556)](Ot)),be(0x4,a[_0x3b224c(0x556)](exports['MemberService'])),be(0x5,a[_0x3b224c(0x5a1)]),be(0x6,a[_0x3b224c(0x3d4)]),be(0x7,a[_0x3b224c(0x556)](k[_0x3b224c(0x4b2)]))],St);var ns=Object[_0x3b224c(0x209)],is=Object[_0x3b224c(0x233)],ss=(_0x1beaf1,_0x38dde2,_0x20bdb8,_0x20301c)=>{for(var _0x5f1f95=_0x20301c>0x1?void 0x0:_0x20301c?is(_0x38dde2,_0x20bdb8):_0x38dde2,_0x46fe42=_0x1beaf1['length']-0x1,_0x2914df;_0x46fe42>=0x0;_0x46fe42--)(_0x2914df=_0x1beaf1[_0x46fe42])&&(_0x5f1f95=(_0x20301c?_0x2914df(_0x38dde2,_0x20bdb8,_0x5f1f95):_0x2914df(_0x5f1f95))||_0x5f1f95);return _0x20301c&&_0x5f1f95&&ns(_0x38dde2,_0x20bdb8,_0x5f1f95),_0x5f1f95;},nt=(_0x45a31c,_0x33fd8e)=>(_0x2b2773,_0x5c82d6)=>_0x33fd8e(_0x2b2773,_0x5c82d6,_0x45a31c);let De=class extends a[_0x3b224c(0x274)]{constructor(_0x2e303f,_0x6ebedd,_0x167d03){const _0x53c63b=_0x3b224c;super(),I(this,_0x53c63b(0x3f6),new Map()),I(this,_0x53c63b(0x231),new A[(_0x53c63b(0x13f))]()),(this[_0x53c63b(0x15e)]=_0x2e303f,this[_0x53c63b(0x495)]=_0x6ebedd,this[_0x53c63b(0x1c9)]=_0x167d03,this[_0x53c63b(0x578)]());}['dispose'](){const _0x118ab8=_0x3b224c;super[_0x118ab8(0x2fa)](),this[_0x118ab8(0x231)][_0x118ab8(0x163)](),this[_0x118ab8(0x3f6)][_0x118ab8(0x54f)](_0x4aa086=>_0x4aa086[_0x118ab8(0x2fa)]());}[_0x3b224c(0x2f2)](_0xdeb04e){const _0x54ce32=_0x3b224c;return this[_0x54ce32(0x3f6)]['has'](_0xdeb04e)?this[_0x54ce32(0x3f6)][_0x54ce32(0x273)](_0xdeb04e)[_0x54ce32(0x2fb)]:this['_entityInit$'][_0x54ce32(0x3cc)](A[_0x54ce32(0x567)](_0x5c7535=>_0x5c7535['unitID']===_0xdeb04e),A[_0x54ce32(0x314)](_0x83182=>_0x83182[_0x54ce32(0x2fb)]));}[_0x3b224c(0x578)](){const _0x287859=_0x3b224c;this[_0x287859(0x15e)][_0x287859(0x291)](a[_0x287859(0x3b1)][_0x287859(0x460)])[_0x287859(0x3cc)](A[_0x287859(0x58f)](this[_0x287859(0x19d)]))['subscribe'](async _0x23a329=>{const _0x3a12c4=_0x287859,_0x111d90=_0x23a329[_0x3a12c4(0x22d)](),_0x5a703e=await this['_startSheetCollabCursor'](_0x111d90);this[_0x3a12c4(0x231)][_0x3a12c4(0x1e1)](_0x5a703e),this[_0x3a12c4(0x3f6)][_0x3a12c4(0x437)](_0x111d90,_0x5a703e);}),this[_0x287859(0x15e)][_0x287859(0x291)](a[_0x287859(0x3b1)][_0x287859(0x508)])[_0x287859(0x3cc)](A[_0x287859(0x58f)](this[_0x287859(0x19d)]))[_0x287859(0x3cc)](A['filter'](_0x149110=>!_0x149110[_0x287859(0x22d)]()[_0x287859(0x4d4)]('__')))[_0x287859(0x2de)](async _0x564dbe=>{const _0x5182f0=_0x287859,_0x1bf3c1=_0x564dbe[_0x5182f0(0x22d)](),_0x5cdf14=await this[_0x5182f0(0x36d)](_0x1bf3c1);this[_0x5182f0(0x231)][_0x5182f0(0x1e1)](_0x5cdf14),this[_0x5182f0(0x3f6)][_0x5182f0(0x437)](_0x1bf3c1,_0x5cdf14);}),A[_0x287859(0x3d6)](this['_univerInstanceService'][_0x287859(0x1c8)](a[_0x287859(0x3b1)][_0x287859(0x508)]),this[_0x287859(0x15e)][_0x287859(0x1c8)](a[_0x287859(0x3b1)][_0x287859(0x460)]))['pipe'](A[_0x287859(0x58f)](this[_0x287859(0x19d)]))[_0x287859(0x2de)](_0x1282bc=>{const _0x136bec=_0x287859,_0x501245=_0x1282bc[_0x136bec(0x22d)](),_0x5b5e37=this[_0x136bec(0x3f6)]['get'](_0x501245);_0x5b5e37&&(_0x5b5e37[_0x136bec(0x2fa)](),this[_0x136bec(0x3f6)][_0x136bec(0x463)](_0x501245));});}async['_startSheetCollabCursor'](_0x2758de){const _0x4d5e8b=_0x3b224c,_0x404e45=await this['_collabSessionService'][_0x4d5e8b(0x376)](_0x2758de),_0x3a73f5=this[_0x4d5e8b(0x495)]['createInstance'](St,_0x2758de,_0x404e45);return _0x3a73f5[_0x4d5e8b(0x20b)](),_0x3a73f5;}async['_startDocCollabCursor'](_0xcda9b8){const _0x35f252=_0x3b224c,_0x3a9a8c=await this[_0x35f252(0x1c9)]['requireSession'](_0xcda9b8),_0xf37011=this[_0x35f252(0x495)][_0x35f252(0x560)](mt,_0xcda9b8,_0x3a9a8c);return _0xf37011[_0x35f252(0x20b)](),_0xf37011;}};De=ss([nt(0x0,a[_0x3b224c(0x5a1)]),nt(0x1,a[_0x3b224c(0x556)](a['Injector'])),nt(0x2,a[_0x3b224c(0x556)](exports[_0x3b224c(0x5d8)]))],De);const Le=0x14,Ht=0xc8,it=0x4,rs=0x5;function os(_0x51b107,_0x3d2128){const _0x574951=_0x3b224c;let {radius:_0x4f8381,width:_0x5b6c43,height:_0xf8492d}=_0x3d2128;_0x4f8381=_0x4f8381!=null?_0x4f8381:0x0,_0x5b6c43=_0x5b6c43!=null?_0x5b6c43:0x1e,_0xf8492d=_0xf8492d!=null?_0xf8492d:0x1e;let _0x425e4e=0x0,_0xa14c=0x0,_0x2499c8=0x0;_0x425e4e=_0xa14c=_0x2499c8=Math[_0x574951(0x2c0)](_0x4f8381,_0x5b6c43/0x2,_0xf8492d/0x2),_0x51b107[_0x574951(0x4af)](),_0x51b107['moveTo'](_0x425e4e,0x0),_0x51b107[_0x574951(0x340)](_0x5b6c43-_0xa14c,0x0),_0x51b107[_0x574951(0x3c7)](_0x5b6c43-_0xa14c,_0xa14c,_0xa14c,Math['PI']*0x3/0x2,0x0,!0x1),_0x51b107[_0x574951(0x340)](_0x5b6c43,_0xf8492d-_0x2499c8),_0x51b107['arc'](_0x5b6c43-_0x2499c8,_0xf8492d-_0x2499c8,_0x2499c8,0x0,Math['PI']/0x2,!0x1),_0x51b107['lineTo'](0x0,_0xf8492d),_0x51b107['lineTo'](0x0,_0x425e4e),_0x51b107[_0x574951(0x3c7)](_0x425e4e,_0x425e4e,_0x425e4e,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x51b107['closePath'](),_0x3d2128[_0x574951(0x1b7)]&&(_0x51b107[_0x574951(0x4ab)](),_0x51b107[_0x574951(0x265)]=_0x3d2128['fill'],_0x3d2128[_0x574951(0x2ac)]==='evenodd'?_0x51b107[_0x574951(0x1b7)]('evenodd'):_0x51b107[_0x574951(0x1b7)](),_0x51b107['restore']());}class ze extends K['Shape']{constructor(_0x51413d,_0x5f1af1){const _0x3de942=_0x3b224c;super(_0x51413d,_0x5f1af1),I(this,_0x3de942(0x3ab)),I(this,_0x3de942(0x500)),(this[_0x3de942(0x3ab)]=_0x5f1af1==null?void 0x0:_0x5f1af1[_0x3de942(0x3ab)],this['text']=_0x5f1af1==null?void 0x0:_0x5f1af1[_0x3de942(0x500)]);}static[_0x3b224c(0x28f)](_0x28c04c,_0x3668f1){const _0x17f900=_0x3b224c,{text:_0x30a07d,color:_0x4659d4}=_0x3668f1;_0x28c04c['save'](),_0x28c04c[_0x17f900(0x4d2)]=_0x17f900(0x452);const _0x279299=_0x28c04c['measureText'](_0x30a07d)['width'],_0x532721=Math[_0x17f900(0x2c0)](_0x279299+0x2*it,Ht);os(_0x28c04c,{'height':Le,'radius':0x4,'width':_0x532721,'fill':_0x4659d4,'evented':!0x1}),_0x28c04c[_0x17f900(0x265)]='#FFF';const _0x2e276b=it,_0x208b8e=Le-rs,_0x1168c4=Ht-0x2*it;if(_0x279299>_0x1168c4){let _0x4911ff='',_0x178c93=0x0;for(const _0x4b2048 of _0x30a07d){const _0x54a932=_0x28c04c[_0x17f900(0x178)](_0x4b2048)['width'];if(_0x178c93+_0x54a932<=_0x1168c4-_0x28c04c[_0x17f900(0x178)](_0x17f900(0x4e4))['width'])_0x4911ff+=_0x4b2048,_0x178c93+=_0x54a932;else{_0x4911ff+='...';break;}}_0x28c04c[_0x17f900(0x562)](_0x4911ff,_0x2e276b,_0x208b8e);}else _0x28c04c['fillText'](_0x30a07d,_0x2e276b,_0x208b8e);_0x28c04c['restore']();}[_0x3b224c(0x29a)](_0x3e451e){const _0x3f2244=_0x3b224c;ze[_0x3f2244(0x28f)](_0x3e451e,this);}}const st='collab-text-anchor-',as=_0x3b224c(0x333),cs=_0x3b224c(0x214),Ue=0x6,ls=1.5,rt=0x4,hs=1.5,_s=_0x3b224c(0x3ed);class Bt{constructor(_0x3ef7ab,_0x17c075,_0x442fd6,_0x5d3b66){const _0x3954b0=_0x3b224c;I(this,'_shapes',[]),I(this,'_anchor',null),I(this,_0x3954b0(0x267),null),I(this,_0x3954b0(0x43f),null),I(this,'_hideTimer',null),I(this,_0x3954b0(0x40a),null),(this[_0x3954b0(0x561)]=_0x3ef7ab,this['_scene']=_0x17c075,this['_docSkeleton']=_0x442fd6,this[_0x3954b0(0x2d4)]=_0x5d3b66,this['_render']());}set[_0x3b224c(0x2e0)](_0x1d9311){const _0x2264c7=_0x3b224c;_0x1d9311?(this[_0x2264c7(0x43f)]&&this[_0x2264c7(0x43f)][_0x2264c7(0x13e)](),this[_0x2264c7(0x267)]&&this['_textBubble'][_0x2264c7(0x134)]()):(this[_0x2264c7(0x43f)]&&this['_anchorDot'][_0x2264c7(0x134)](),this[_0x2264c7(0x267)]&&this['_textBubble']['hide']());}[_0x3b224c(0x2fa)](){const _0x5460d1=_0x3b224c;for(const _0x522c88 of this[_0x5460d1(0x2a6)])_0x522c88[_0x5460d1(0x2fa)]();this[_0x5460d1(0x267)]&&this[_0x5460d1(0x267)][_0x5460d1(0x2fa)](),this[_0x5460d1(0x43f)]&&this['_anchorDot'][_0x5460d1(0x2fa)](),this[_0x5460d1(0x4ac)]&&this[_0x5460d1(0x4ac)]['dispose'](),this[_0x5460d1(0x40a)]&&this[_0x5460d1(0x40a)]();}['_render'](){const _0xa80503=_0x3b224c;var _0x3938e3;const {_docSkeleton:_0x17d776,_document:_0x42f519}=this,{color:_0xee4f3d,name:_0x33d90e,ranges:_0x1a9858}=this[_0xa80503(0x561)],_0x1e0ce2=_0x42f519[_0xa80503(0x4e5)](),{docsLeft:_0x430c52,docsTop:_0x5d1250}=_0x1e0ce2,_0x130213=new J['NodePositionConvertToCursor'](_0x1e0ce2,_0x17d776);for(const {startOffset:_0x5e55bf,endOffset:_0x52c3f7,rangeType:_0x4bd0a3,segmentId:_0x2036f5,segmentPage:_0x415168,collapsed:_0xdfc58f,isActive:_0x537c64}of _0x1a9858){const _0x2dccb2=_0x17d776['findNodePositionByCharIndex'](_0x5e55bf,!0x0,_0x2036f5,_0x415168);let _0x174a2f=_0x17d776[_0xa80503(0x2b3)](_0x52c3f7,!0x0,_0x2036f5,_0x415168);if(_0x174a2f==null&&(_0x174a2f=_0x17d776['findNodePositionByCharIndex'](_0x52c3f7-0x1,!0x1,_0x2036f5,_0x415168)),_0x537c64){const {contentBoxPointGroup:_0x49dd44}=_0x130213[_0xa80503(0x390)](_0x174a2f,_0x174a2f);if(_0x49dd44['length']===0x0)continue;this['_drawAnchor'](_0xee4f3d,_0x49dd44,_0x430c52,_0x5d1250,_0x33d90e),this[_0xa80503(0x40a)]=this[_0xa80503(0x3f2)]();}if(_0x2dccb2&&_0x174a2f){if(_0x4bd0a3===a[_0xa80503(0x3dd)][_0xa80503(0x52f)]){const _0x251b60=new J['NodePositionConvertToRectRange'](_0x1e0ce2,_0x17d776),{pointGroup:_0x549140}=(_0x3938e3=_0x251b60[_0xa80503(0x390)](_0x2dccb2,_0x174a2f))!=null?_0x3938e3:{};if(_0x549140==null||_0x549140['length']===0x0)continue;this[_0xa80503(0x58b)](_0xee4f3d,_0x549140,_0x430c52,_0x5d1250);}else{if(!_0xdfc58f){const {borderBoxPointGroup:_0x4eae8b}=_0x130213[_0xa80503(0x390)](_0x2dccb2,_0x174a2f);if(_0x4eae8b[_0xa80503(0x2a8)]===0x0)continue;this[_0xa80503(0x3ba)](_0xee4f3d,_0x4eae8b,_0x430c52,_0x5d1250);}}}}}[_0x3b224c(0x215)](_0x702de,_0x56998b,_0x2d07fa,_0x242cb3,_0x299cfe){const _0x4324f6=_0x3b224c,_0x40eca5=this[_0x4324f6(0x535)](_0x56998b),{left:_0x581b55,top:_0x32f5d5,height:_0x5f57c2}=_0x40eca5,_0x5ce12f=this[_0x4324f6(0x489)](),_0x1fe30e=hs/_0x5ce12f,_0x18efe0=new K[(_0x4324f6(0x584))](st+a['Tools']['generateRandomId'](Ue),{'left':_0x581b55+_0x2d07fa-_0x1fe30e,'top':_0x32f5d5+_0x242cb3,'height':_0x5f57c2,'width':ls,'fill':_0x702de||K[_0x4324f6(0x4a5)](a[_0x4324f6(0x454)][_0x4324f6(0x3ee)],0x0),'strokeWidth':_0x1fe30e,'stroke':_s,'evented':!0x0});this[_0x4324f6(0x4ac)]=_0x18efe0,this[_0x4324f6(0x3cd)]['addObject'](_0x18efe0,J[_0x4324f6(0x2b4)]);const _0x54d108=new K[(_0x4324f6(0x584))](st+a[_0x4324f6(0x3b9)][_0x4324f6(0x143)](Ue),{'left':_0x581b55+_0x2d07fa-_0x1fe30e,'top':_0x32f5d5+_0x242cb3-rt/0x2,'height':rt,'width':rt,'fill':_0x702de||K[_0x4324f6(0x4a5)](a[_0x4324f6(0x454)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x702de||K['getColor'](a[_0x4324f6(0x454)][_0x4324f6(0x3ee)],0x0),'evented':!0x1});this[_0x4324f6(0x43f)]=_0x54d108,this['_scene']['addObject'](_0x54d108,J[_0x4324f6(0x2b4)]);const _0x450fff=new ze(st+a[_0x4324f6(0x3b9)]['generateRandomId'](Ue),{'left':_0x581b55+_0x2d07fa-_0x1fe30e,'top':_0x32f5d5+_0x242cb3-Le,'text':_0x299cfe,'color':_0x702de});this[_0x4324f6(0x267)]=_0x450fff,this[_0x4324f6(0x3cd)]['addObject'](_0x450fff,J[_0x4324f6(0x2b4)]),this[_0x4324f6(0x2e0)]=!0x1;}[_0x3b224c(0x3f2)](){const _0x24a84d=_0x3b224c,_0x423e44=this['_anchor']['onPointerEnter$'][_0x24a84d(0x398)](()=>{this['_hover']=!0x0;}),_0x484cd7=this[_0x24a84d(0x4ac)]['onPointerLeave$'][_0x24a84d(0x398)](()=>{const _0x253457=_0x24a84d;this[_0x253457(0x3c8)]&&clearTimeout(this[_0x253457(0x3c8)]),this[_0x253457(0x3c8)]=setTimeout(()=>{const _0x371f2c=_0x253457;this[_0x371f2c(0x2e0)]=!0x1;},0x7d0);});return()=>{const _0x4c6d0e=_0x24a84d;_0x423e44[_0x4c6d0e(0x272)](),_0x484cd7['unsubscribe']();};}[_0x3b224c(0x3ba)](_0x949288,_0x128928,_0x1c4322,_0x33767f){const _0x902696=_0x3b224c,_0x13a444=new a[(_0x902696(0x536))](_0x949288)[_0x902696(0x306)](0.2)[_0x902696(0x54c)](),_0x2ff595=new K[(_0x902696(0x435))](as+a[_0x902696(0x3b9)][_0x902696(0x143)](Ue),{'pointsGroup':_0x128928,'fill':_0x13a444||K[_0x902696(0x4a5)](a[_0x902696(0x454)]['black'],0.2),'left':_0x1c4322,'top':_0x33767f,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x902696(0x2a6)]['push'](_0x2ff595),this[_0x902696(0x3cd)][_0x902696(0x1c3)](_0x2ff595,J[_0x902696(0x2b4)]);}[_0x3b224c(0x58b)](_0x34c42d,_0x2c065b,_0x23038b,_0x1626d6){const _0x171cea=_0x3b224c,_0x24cac5=new a[(_0x171cea(0x536))](_0x34c42d)['setAlpha'](0.2)['toRgbString'](),_0x27b4aa=new K['RegularPolygon'](cs+a[_0x171cea(0x3b9)]['generateRandomId'](Ue),{'pointsGroup':_0x2c065b,'fill':_0x24cac5||K['getColor'](a[_0x171cea(0x454)][_0x171cea(0x3ee)],0.2),'left':_0x23038b,'top':_0x1626d6,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x171cea(0x2a6)][_0x171cea(0x1a8)](_0x27b4aa),this[_0x171cea(0x3cd)][_0x171cea(0x1c3)](_0x27b4aa,J[_0x171cea(0x2b4)]);}[_0x3b224c(0x535)](_0x335fd7){const _0x288055=_0x335fd7[0x0],_0x138b30=_0x288055[0x0],_0xf22e56=_0x288055[0x2],{x:_0x11f375,y:_0x5d03eb}=_0x138b30,{x:_0x865380,y:_0x5a2737}=_0xf22e56;return{'left':_0x11f375,'top':_0x5d03eb,'width':_0x865380-_0x11f375,'height':_0x5a2737-_0x5d03eb};}[_0x3b224c(0x489)](){const _0x502d4f=_0x3b224c,{scaleX:_0x5685c0,scaleY:_0x5f1a73}=this[_0x502d4f(0x3cd)]['getAncestorScale']();return Math[_0x502d4f(0x384)](_0x5685c0,_0x5f1a73);}}var us=Object[_0x3b224c(0x209)],ds=Object['getOwnPropertyDescriptor'],fs=(_0x14cadc,_0x49ff8f,_0x2b30a6,_0x34624c)=>{const _0x22c630=_0x3b224c;for(var _0x68079c=_0x34624c>0x1?void 0x0:_0x34624c?ds(_0x49ff8f,_0x2b30a6):_0x49ff8f,_0x467aa3=_0x14cadc[_0x22c630(0x2a8)]-0x1,_0x49d51e;_0x467aa3>=0x0;_0x467aa3--)(_0x49d51e=_0x14cadc[_0x467aa3])&&(_0x68079c=(_0x34624c?_0x49d51e(_0x49ff8f,_0x2b30a6,_0x68079c):_0x49d51e(_0x68079c))||_0x68079c);return _0x34624c&&_0x68079c&&us(_0x49ff8f,_0x2b30a6,_0x68079c),_0x68079c;},je=(_0x5d2957,_0xbf20ac)=>(_0x4111ab,_0x45ecc4)=>_0xbf20ac(_0x4111ab,_0x45ecc4,_0x5d2957);let pt=class extends a[_0x3b224c(0x274)]{constructor(_0x37f8f7,_0x504221,_0x41f1b2,_0x5a000b,_0xe48888){const _0xf53ff6=_0x3b224c;super(),I(this,_0xf53ff6(0x175),[]),I(this,'_cursors',[]),(this[_0xf53ff6(0x343)]=_0x37f8f7,this[_0xf53ff6(0x465)]=_0x504221,this[_0xf53ff6(0x22b)]=_0x41f1b2,this['_commandService']=_0x5a000b,this['_themeService']=_0xe48888,this[_0xf53ff6(0x578)]());}[_0x3b224c(0x578)](){const _0x483c9a=_0x3b224c,_0x51047b=this['_context']['unitId'],_0x2be283=this[_0x483c9a(0x465)];this['disposeWithMe'](A[_0x483c9a(0x2ad)]([this['_collabCursorController']['getCollabCursors$'](_0x51047b),this[_0x483c9a(0x3c6)]['currentTheme$']])[_0x483c9a(0x3cc)](V[_0x483c9a(0x283)](([_0xf70c56,_0x5c39da])=>({'skeleton':_0x2be283[_0x483c9a(0x366)](),'cursors':[..._0xf70c56[_0x483c9a(0x3d7)]()][_0x483c9a(0x28c)](_0x54f5d4=>({..._0x54f5d4,'color':_0x5c39da[_0x54f5d4[_0x483c9a(0x3ab)]]}))})))[_0x483c9a(0x2de)](_0x2c6677=>{if(this['_removeCollabCursors'](),_0x2c6677){const {skeleton:_0xd4cd48,cursors:_0x565434}=_0x2c6677;this['_updateCollabCursors'](_0xd4cd48,_0x565434);}})),this[_0x483c9a(0x357)](),this['_initCommandExecutedListener']();}[_0x3b224c(0x17a)](_0x1bb616,_0x32d743){const _0x328b74=_0x3b224c,{scene:_0x12f82b,mainComponent:_0x15908f}=this[_0x328b74(0x343)],_0x1e9298=_0x32d743[_0x328b74(0x283)](_0x962ea8=>new Bt(_0x962ea8,_0x12f82b,_0x1bb616,_0x15908f));this[_0x328b74(0x175)]=_0x1e9298,this['_cursors']=_0x32d743;}[_0x3b224c(0x5bf)](){const _0x162618=_0x3b224c;this[_0x162618(0x4b8)]();const {scene:_0x17b56e,mainComponent:_0x184542}=this[_0x162618(0x343)],_0x1601e8=this[_0x162618(0x465)][_0x162618(0x366)](),_0x1cb0d9=this[_0x162618(0x41b)][_0x162618(0x283)](_0x31e5cb=>new Bt(_0x31e5cb,_0x17b56e,_0x1601e8,_0x184542));this[_0x162618(0x175)]=_0x1cb0d9;}['_removeCollabCursors'](){const _0x5aeb59=_0x3b224c;this[_0x5aeb59(0x175)][_0x5aeb59(0x54f)](_0x7798e1=>_0x7798e1[_0x5aeb59(0x2fa)]()),this[_0x5aeb59(0x175)]=[];}[_0x3b224c(0x2ba)](){const _0x3cea42=_0x3b224c,_0x9d0e28=[J[_0x3cea42(0x406)]['id']];this[_0x3cea42(0x220)](this['_commandService'][_0x3cea42(0x3fe)](_0x184d5d=>{const _0x578ead=_0x3cea42;_0x9d0e28[_0x578ead(0x254)](_0x184d5d['id'])&&_0x184d5d[_0x578ead(0x2be)][_0x578ead(0x242)]===this[_0x578ead(0x343)][_0x578ead(0x242)]&&this[_0x578ead(0x5bf)]();}));}[_0x3b224c(0x357)](){const _0x385b1a=_0x3b224c;this['disposeWithMe'](a[_0x385b1a(0x518)](this[_0x385b1a(0x343)][_0x385b1a(0x550)]['onTransformChange$'])[_0x385b1a(0x3cc)](V[_0x385b1a(0x567)](_0x5b9ceb=>_0x5b9ceb[_0x385b1a(0x5bb)]===K['TRANSFORM_CHANGE_OBSERVABLE_TYPE']['resize']),V['throttleTime'](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};pt=fs([je(0x1,a[_0x3b224c(0x556)](ye['DocSkeletonManagerService'])),je(0x2,a[_0x3b224c(0x556)](De)),je(0x3,a[_0x3b224c(0x3d4)]),je(0x4,a[_0x3b224c(0x556)](a[_0x3b224c(0x3e0)]))],pt);const vs=0x1,ms=1.5;class Sn extends K[_0x3b224c(0x234)]{constructor(_0x288f0a,_0x1da74b){const _0x26a145=_0x3b224c;super(_0x288f0a,_0x1da74b),I(this,'_color'),I(this,'_hovered',!0x1),I(this,'_range'),I(this,_0x26a145(0x1f8),''),I(this,_0x26a145(0x3fa),'top'),I(this,_0x26a145(0x51a)),(_0x1da74b&&this['setShapeProps'](_0x1da74b),this[_0x26a145(0x224)][_0x26a145(0x398)](()=>this[_0x26a145(0x49b)]({'hovered':!0x0})),this['onPointerLeave$']['subscribeEvent'](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x5bc9e2){const _0x5c1e41=_0x3b224c;var _0x273859,_0x2d4348,_0x3a6996,_0x401b01,_0x4297a,_0xba60e2;this[_0x5c1e41(0x4e1)]=(_0x273859=_0x5bc9e2[_0x5c1e41(0x3ab)])!=null?_0x273859:this[_0x5c1e41(0x4e1)],this['_hovered']=(_0x2d4348=_0x5bc9e2['hovered'])!=null?_0x2d4348:this[_0x5c1e41(0x3e6)],this[_0x5c1e41(0x2b9)]=(_0x3a6996=_0x5bc9e2[_0x5c1e41(0x40c)])!=null?_0x3a6996:this[_0x5c1e41(0x2b9)],this['_name']=(_0x401b01=_0x5bc9e2[_0x5c1e41(0x513)])!=null?_0x401b01:this[_0x5c1e41(0x1f8)],this[_0x5c1e41(0x3fa)]=(_0x4297a=_0x5bc9e2[_0x5c1e41(0x389)])!=null?_0x4297a:this[_0x5c1e41(0x3fa)],this[_0x5c1e41(0x51a)]=(_0xba60e2=_0x5bc9e2[_0x5c1e41(0x5a2)])!=null?_0xba60e2:this[_0x5c1e41(0x51a)],this[_0x5c1e41(0x4f1)]({'width':_0x5bc9e2[_0x5c1e41(0x51f)],'height':_0x5bc9e2[_0x5c1e41(0x558)]});}[_0x3b224c(0x23e)](_0x4dc590){const _0x41d31e=_0x3b224c,{row:_0x4da132,column:_0x5ae962}=_0x4dc590;if(_0x4da132>=this[_0x41d31e(0x2b9)][_0x41d31e(0x1fd)]&&_0x4da132<=this['_range'][_0x41d31e(0x305)]&&_0x5ae962>=this['_range'][_0x41d31e(0x45b)]&&_0x5ae962<=this['_range'][_0x41d31e(0x1f6)]){this[_0x41d31e(0x49b)]({'hovered':!0x0});return;}this[_0x41d31e(0x49b)]({'hovered':!0x1});}[_0x3b224c(0x544)](_0x255128){return!0x1;}[_0x3b224c(0x29a)](_0x25c487){const _0x3908df=_0x3b224c;K[_0x3908df(0x584)][_0x3908df(0x28f)](_0x25c487,{'width':this['width'],'height':this[_0x3908df(0x558)],'strokeWidth':ms,'stroke':this[_0x3908df(0x4e1)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x3908df(0x3e6)]&&(_0x25c487[_0x3908df(0x4ab)](),_0x25c487[_0x3908df(0x32a)](0x1,0x0,0x0,0x1,this[_0x3908df(0x51f)],this['_labelPosition']===_0x3908df(0x2f0)?0x0:-Le),ze['drawWith'](_0x25c487,{'text':this[_0x3908df(0x1f8)],'color':this[_0x3908df(0x4e1)]}),_0x25c487[_0x3908df(0x4fa)]());}}var Ss=Object['defineProperty'],ps=Object[_0x3b224c(0x233)],gs=(_0x3f9b38,_0x443374,_0x2e2c45,_0x4f331f)=>{for(var _0x2759d3=_0x4f331f>0x1?void 0x0:_0x4f331f?ps(_0x443374,_0x2e2c45):_0x443374,_0x1ad0ee=_0x3f9b38['length']-0x1,_0x4b292d;_0x1ad0ee>=0x0;_0x1ad0ee--)(_0x4b292d=_0x3f9b38[_0x1ad0ee])&&(_0x2759d3=(_0x4f331f?_0x4b292d(_0x443374,_0x2e2c45,_0x2759d3):_0x4b292d(_0x2759d3))||_0x2759d3);return _0x4f331f&&_0x2759d3&&Ss(_0x443374,_0x2e2c45,_0x2759d3),_0x2759d3;},ot=(_0x26459a,_0x31a434)=>(_0xb66bf8,_0x37ffa4)=>_0x31a434(_0xb66bf8,_0x37ffa4,_0x26459a);const Is=0x1389;let gt=class extends a['RxDisposable']{constructor(_0x400fad,_0xbb5c65,_0x5478af,_0x52de0f){const _0x184ed9=_0x3b224c;super(),I(this,'_cursors',new Set()),I(this,'_lastPointer',null),(this['_context']=_0x400fad,this[_0x184ed9(0x5cf)]=_0xbb5c65,this['_collabCursorController']=_0x5478af,this[_0x184ed9(0x3c6)]=_0x52de0f,this[_0x184ed9(0x578)]());}[_0x3b224c(0x578)](){const _0x1e6b0d=_0x3b224c;this[_0x1e6b0d(0x5cf)]['currentSkeleton$'][_0x1e6b0d(0x3cc)](V[_0x1e6b0d(0x58f)](this['dispose$']),V[_0x1e6b0d(0x314)](_0xe16bc4=>{const _0x598f7b=_0x1e6b0d;if(_0xe16bc4){const _0x41cbb4=_0xe16bc4[_0x598f7b(0x4dd)];return A[_0x598f7b(0x2ad)](this[_0x598f7b(0x22b)]['getCollabCursors$'](this[_0x598f7b(0x343)]['unitId']),this['_themeService'][_0x598f7b(0x19c)])['pipe'](V[_0x598f7b(0x283)](([_0x4ae378,_0x5cfc10])=>{const _0x24583d=_0x598f7b,_0x24d815=new Map();return _0x4ae378[_0x24583d(0x54f)]((_0x3a223d,_0x4c855f)=>{const _0x79385b=_0x24583d;if(_0x3a223d['sheetID']===_0x41cbb4){const _0x1383f4={..._0x3a223d};_0x1383f4[_0x79385b(0x3ab)]=_0x5cfc10[_0x3a223d[_0x79385b(0x3ab)]],_0x24d815['set'](_0x4c855f,_0x1383f4);}}),{'skeleton':_0xe16bc4,'cursors':_0x24d815};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0x1e6b0d(0x2de)](({skeleton:_0x345e30,cursors:_0xb172bb})=>{const _0x38ef7d=_0x1e6b0d;this[_0x38ef7d(0x4b8)](),_0x345e30&&this[_0x38ef7d(0x17a)](_0x345e30,_0xb172bb);}),this['_sheetSkeletonManagerService'][_0x1e6b0d(0x4fb)][_0x1e6b0d(0x2de)](_0x1344bb=>{const _0x6d2d97=_0x1e6b0d;if(_0x1344bb==null)return;const {skeleton:_0x2d62d0}=_0x1344bb,{scene:_0x861ae8}=this['_context'];_0x861ae8[_0x6d2d97(0x28e)][_0x6d2d97(0x398)](a[_0x6d2d97(0x1bb)](_0x43c946=>{const _0x1672b8=_0x6d2d97;var _0x29828b,_0x1d3216;const {offsetX:_0xd68e81,offsetY:_0x4edbd5}=_0x43c946,{x:_0x3c0b90,y:_0x5e434a}=_0x861ae8['getRelativeToViewportCoord'](K[_0x1672b8(0x263)][_0x1672b8(0x5ab)]([_0xd68e81,_0x4edbd5])),{scaleX:_0x33c5b6,scaleY:_0x21485a}=_0x861ae8[_0x1672b8(0x412)](),_0x18b022=_0x861ae8[_0x1672b8(0x139)](Re[_0x1672b8(0x184)][_0x1672b8(0x327)]),_0x20123b=_0x861ae8[_0x1672b8(0x1ab)](K[_0x1672b8(0x263)][_0x1672b8(0x5ab)]([_0x3c0b90,_0x5e434a]),_0x18b022),_0xee1f0b=_0x2d62d0[_0x1672b8(0x30b)](_0xd68e81,_0x4edbd5,_0x33c5b6,_0x21485a,_0x20123b);((_0x29828b=this['_lastPointer'])==null?void 0x0:_0x29828b['column'])===_0xee1f0b[_0x1672b8(0x381)]&&((_0x1d3216=this[_0x1672b8(0x411)])==null?void 0x0:_0x1d3216[_0x1672b8(0x2c8)])===_0xee1f0b[_0x1672b8(0x2c8)]||this[_0x1672b8(0x41b)][_0x1672b8(0x54f)](_0x38ff71=>{const _0x4ff73f=_0x1672b8;_0x38ff71[_0x4ff73f(0x23e)](_0xee1f0b);});},0x64));});}[_0x3b224c(0x17a)](_0x26bf5d,_0x4a8e4f){const _0x42ef74=_0x3b224c;var _0x8827cf;const _0x4d4863=(_0x8827cf=this[_0x42ef74(0x5cf)]['getCurrent']())==null?void 0x0:_0x8827cf[_0x42ef74(0x2ff)];if(!_0x4d4863)return;const _0x4c89e3=this[_0x42ef74(0x270)]();if(!_0x4c89e3)return;this['_cursors']['forEach'](_0x5be1f1=>{const _0x1f9dbb=_0x42ef74;_0x5be1f1[_0x1f9dbb(0x16b)]();});const {scene:_0x30bcf7}=_0x4c89e3,_0x243c4c=Cs(Array['from'](_0x4a8e4f['values']()))[_0x42ef74(0x283)](_0x2d5ec4=>{const _0x47d674=_0x42ef74,{color:_0xf62219,range:_0x1537b6,name:_0x404784,selection:_0x5b482,sheetID:_0x4e344d}=_0x2d5ec4,{startColumn:_0x954a16,startRow:_0x253a66,endColumn:_0x4643ed,endRow:_0x33773f}=_0x1537b6,_0x4da21c=Re[_0x47d674(0x29e)](_0x253a66,_0x954a16,_0x30bcf7,_0x4d4863),_0x4bed67=Re[_0x47d674(0x29e)](_0x33773f,_0x4643ed,_0x30bcf7,_0x4d4863),{columnHeaderHeightAndMarginTop:_0x3ba072}=_0x4d4863,{startX:_0x2b83bc,startY:_0x572e3a}=_0x4da21c,{endX:_0x3f87c0,endY:_0x239b54}=_0x4bed67,_0x3fa9f7=_0x3f87c0-_0x2b83bc,_0x1da103=_0x239b54-_0x572e3a,_0x1451ae={'labelPosition':_0x572e3a-_0x3ba072>=Le?'top':_0x47d674(0x2f0),'sheetID':_0x4e344d,'range':_0x1537b6,'color':_0xf62219,'name':_0x404784,'selection':_0x5b482,'left':_0x2b83bc,'top':_0x572e3a,'width':_0x3fa9f7,'height':_0x1da103,'evented':!0x1,'zIndex':Is};return new Sn(_0x404784,_0x1451ae);});_0x30bcf7[_0x42ef74(0x1fc)](_0x243c4c,vs),this[_0x42ef74(0x41b)]=new Set(_0x243c4c);}['_removeCollabCursors'](){const _0x3f946d=_0x3b224c;var _0x2bcebc;(_0x2bcebc=this['_cursors'])==null||_0x2bcebc[_0x3f946d(0x54f)](_0x541667=>_0x541667[_0x3f946d(0x2fa)]());}[_0x3b224c(0x270)](){const _0x2a4bac=_0x3b224c;return Re[_0x2a4bac(0x25e)](this[_0x2a4bac(0x343)][_0x2a4bac(0x479)],this['_context']);}};gt=gs([ot(0x1,a[_0x3b224c(0x556)](Re[_0x3b224c(0x23b)])),ot(0x2,a[_0x3b224c(0x556)](De)),ot(0x3,a[_0x3b224c(0x556)](a[_0x3b224c(0x3e0)]))],gt);function Cs(_0x179f7b){const _0x441c3f=_0x3b224c,_0xa95e3e=new Map();return _0x179f7b[_0x441c3f(0x54f)](_0xb180d5=>{const _0x3b5bfa=_0x441c3f;if(_0xa95e3e[_0x3b5bfa(0x339)](_0xb180d5[_0x3b5bfa(0x410)])){const _0x5b0083=_0xa95e3e[_0x3b5bfa(0x273)](_0xb180d5[_0x3b5bfa(0x410)]);_0x5b0083[_0x3b5bfa(0x513)]+=',\x20'+_0xb180d5[_0x3b5bfa(0x513)];}else _0xa95e3e['set'](_0xb180d5[_0x3b5bfa(0x410)],_0xb180d5);}),Array['from'](_0xa95e3e[_0x441c3f(0x3d7)]());}var X=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x398046){const _0x152d51=_0x3b224c;return _0x398046&&_0x398046[_0x152d51(0x18f)]&&Object[_0x152d51(0x1af)][_0x152d51(0x1fe)][_0x152d51(0x537)](_0x398046,_0x152d51(0x432))?_0x398046[_0x152d51(0x432)]:_0x398046;}var pn={'exports':{}},Xe={},Es=ae,bs=Symbol[_0x3b224c(0x13b)](_0x3b224c(0x471)),Ts=Symbol['for']('react.fragment'),Rs=Object[_0x3b224c(0x1af)][_0x3b224c(0x1fe)],ys=Es[_0x3b224c(0x5cb)][_0x3b224c(0x382)],Os={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function gn(_0x1794ac,_0x1408c4,_0x1a2532){const _0x51d866=_0x3b224c;var _0x3e5562,_0x3c8268={},_0x920ec2=null,_0x2fe045=null;_0x1a2532!==void 0x0&&(_0x920ec2=''+_0x1a2532),_0x1408c4[_0x51d866(0x217)]!==void 0x0&&(_0x920ec2=''+_0x1408c4[_0x51d866(0x217)]),_0x1408c4[_0x51d866(0x444)]!==void 0x0&&(_0x2fe045=_0x1408c4[_0x51d866(0x444)]);for(_0x3e5562 in _0x1408c4)Rs[_0x51d866(0x537)](_0x1408c4,_0x3e5562)&&!Os[_0x51d866(0x1fe)](_0x3e5562)&&(_0x3c8268[_0x3e5562]=_0x1408c4[_0x3e5562]);if(_0x1794ac&&_0x1794ac[_0x51d866(0x36b)]){for(_0x3e5562 in(_0x1408c4=_0x1794ac['defaultProps'],_0x1408c4))_0x3c8268[_0x3e5562]===void 0x0&&(_0x3c8268[_0x3e5562]=_0x1408c4[_0x3e5562]);}return{'$$typeof':bs,'type':_0x1794ac,'key':_0x920ec2,'ref':_0x2fe045,'props':_0x3c8268,'_owner':ys[_0x51d866(0x257)]};}Xe[_0x3b224c(0x5cd)]=Ts,Xe[_0x3b224c(0x5d7)]=gn,Xe[_0x3b224c(0x55e)]=gn,pn[_0x3b224c(0x2fc)]=Xe;var pe=pn[_0x3b224c(0x2fc)],Q=function(){const _0x315574=_0x3b224c;return Q=Object['assign']||function(_0x26b74f){const _0x500da4=_0x1276;for(var _0x4e2223,_0x178fec=0x1,_0x445863=arguments[_0x500da4(0x2a8)];_0x178fec<_0x445863;_0x178fec++){_0x4e2223=arguments[_0x178fec];for(var _0x4c3946 in _0x4e2223)Object[_0x500da4(0x1af)]['hasOwnProperty'][_0x500da4(0x537)](_0x4e2223,_0x4c3946)&&(_0x26b74f[_0x4c3946]=_0x4e2223[_0x4c3946]);}return _0x26b74f;},Q[_0x315574(0x44a)](this,arguments);},Ds=function(_0x309735,_0x29ba13){const _0x5ba027=_0x3b224c;var _0x2b70a0={};for(var _0x232185 in _0x309735)Object['prototype'][_0x5ba027(0x1fe)][_0x5ba027(0x537)](_0x309735,_0x232185)&&_0x29ba13[_0x5ba027(0x1a4)](_0x232185)<0x0&&(_0x2b70a0[_0x232185]=_0x309735[_0x232185]);if(_0x309735!=null&&typeof Object[_0x5ba027(0x360)]=='function'){for(var _0x5df417=0x0,_0x232185=Object['getOwnPropertySymbols'](_0x309735);_0x5df417<_0x232185[_0x5ba027(0x2a8)];_0x5df417++)_0x29ba13[_0x5ba027(0x1a4)](_0x232185[_0x5df417])<0x0&&Object[_0x5ba027(0x1af)][_0x5ba027(0x1f7)][_0x5ba027(0x537)](_0x309735,_0x232185[_0x5df417])&&(_0x2b70a0[_0x232185[_0x5df417]]=_0x309735[_0x232185[_0x5df417]]);}return _0x2b70a0;},Dt=ae[_0x3b224c(0x5b4)](function(_0xba1e31,_0x23fc4f){const _0x45d433=_0x3b224c;var _0x23103d=_0xba1e31[_0x45d433(0x24f)],_0x578574=_0xba1e31['id'],_0x455aff=_0xba1e31[_0x45d433(0x402)],_0x3ff208=_0xba1e31[_0x45d433(0x24d)],_0x4f5001=Ds(_0xba1e31,[_0x45d433(0x24f),'id',_0x45d433(0x402),_0x45d433(0x24d)]),_0x3fb147=_0x45d433(0x21a)[_0x45d433(0x198)](_0x578574,'\x20')[_0x45d433(0x198)](_0x455aff||'')['trim'](),_0x5cf082=ae[_0x45d433(0x55d)]('_'[_0x45d433(0x198)](Us()));return In(_0x23103d,''[_0x45d433(0x198)](_0x578574),{'defIds':_0x23103d['defIds'],'idSuffix':_0x5cf082[_0x45d433(0x257)]},Q({'ref':_0x23fc4f,'className':_0x3fb147},_0x4f5001),_0x3ff208);});function In(_0x53c8de,_0x8f4799,_0x16b5e4,_0x567b10,_0x3b711f){const _0x157ddb=_0x3b224c;return ae[_0x157ddb(0x48c)](_0x53c8de['tag'],Q(Q({'key':_0x8f4799},ws(_0x53c8de,_0x16b5e4,_0x3b711f)),_0x567b10),(Ps(_0x53c8de,_0x16b5e4)[_0x157ddb(0x40b)]||[])[_0x157ddb(0x283)](function(_0x38f080,_0xdef08b){const _0x440b26=_0x157ddb;return In(_0x38f080,''[_0x440b26(0x198)](_0x8f4799,'-')['concat'](_0x53c8de[_0x440b26(0x356)],'-')[_0x440b26(0x198)](_0xdef08b),_0x16b5e4,void 0x0,_0x3b711f);}));}function ws(_0x2e3b05,_0x1b352a,_0xe95068){const _0x1deae6=_0x3b224c;var _0x33ac7f=Q({},_0x2e3b05[_0x1deae6(0x5dd)]);_0xe95068!=null&&_0xe95068[_0x1deae6(0x286)]&&_0x33ac7f[_0x1deae6(0x1b7)]==='colorChannel1'&&(_0x33ac7f[_0x1deae6(0x1b7)]=_0xe95068[_0x1deae6(0x286)]);var _0x5a961b=_0x1b352a[_0x1deae6(0x3e7)];return!_0x5a961b||_0x5a961b[_0x1deae6(0x2a8)]===0x0||(_0x2e3b05[_0x1deae6(0x356)]==='use'&&_0x33ac7f[_0x1deae6(0x20c)]&&(_0x33ac7f[_0x1deae6(0x20c)]=_0x33ac7f['xlink:href']+_0x1b352a[_0x1deae6(0x3e2)]),Object[_0x1deae6(0x55c)](_0x33ac7f)[_0x1deae6(0x54f)](function(_0x3e020a){const _0x3f3d72=_0x1deae6;var _0x1901be=_0x3e020a[0x0],_0x11ff20=_0x3e020a[0x1];typeof _0x11ff20==_0x3f3d72(0x404)&&(_0x33ac7f[_0x1901be]=_0x11ff20[_0x3f3d72(0x424)](/url\(#(.*)\)/,'url(#$1'[_0x3f3d72(0x198)](_0x1b352a[_0x3f3d72(0x3e2)],')')));})),_0x33ac7f;}function Ps(_0x3e97bf,_0x3667ca){const _0x1e656e=_0x3b224c;var _0x469deb,_0x3b6bd8=_0x3667ca[_0x1e656e(0x3e7)];return!_0x3b6bd8||_0x3b6bd8[_0x1e656e(0x2a8)]===0x0?_0x3e97bf:_0x3e97bf[_0x1e656e(0x356)]==='defs'&&(!((_0x469deb=_0x3e97bf[_0x1e656e(0x40b)])===null||_0x469deb===void 0x0)&&_0x469deb[_0x1e656e(0x2a8)])?Q(Q({},_0x3e97bf),{'children':_0x3e97bf[_0x1e656e(0x40b)][_0x1e656e(0x283)](function(_0x4cc09c){const _0x37ffbc=_0x1e656e;return typeof _0x4cc09c[_0x37ffbc(0x5dd)]['id']==_0x37ffbc(0x404)&&_0x3b6bd8&&_0x3b6bd8[_0x37ffbc(0x1a4)](_0x4cc09c[_0x37ffbc(0x5dd)]['id'])>-0x1?Q(Q({},_0x4cc09c),{'attrs':Q(Q({},_0x4cc09c[_0x37ffbc(0x5dd)]),{'id':_0x4cc09c['attrs']['id']+_0x3667ca[_0x37ffbc(0x3e2)]})}):_0x4cc09c;})}):_0x3e97bf;}function Us(){const _0x416665=_0x3b224c;return Math['random']()[_0x416665(0x4cf)](0x24)[_0x416665(0x35b)](0x2,0x8);}Dt[_0x3b224c(0x5be)]=_0x3b224c(0x1e6);var Ms={'tag':'svg','attrs':{'fill':_0x3b224c(0x15c),'viewBox':_0x3b224c(0x1e8),'width':_0x3b224c(0x1cd),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3b224c(0x37b)},'children':[{'tag':_0x3b224c(0x3ea),'attrs':{'stroke':'currentColor','d':_0x3b224c(0x38f),'strokeLinecap':_0x3b224c(0x593),'strokeLinejoin':_0x3b224c(0x593),'strokeWidth':1.2}}]},{'tag':_0x3b224c(0x294),'attrs':{},'children':[{'tag':_0x3b224c(0x21c),'attrs':{'id':_0x3b224c(0x30f)},'children':[{'tag':_0x3b224c(0x3ea),'attrs':{'fill':'#fff','d':_0x3b224c(0x39c)}}]}]}],'defIds':[_0x3b224c(0x30f)]},Cn=ae['forwardRef'](function(_0x46ba1c,_0x78fb59){const _0x229c05=_0x3b224c;return ae['createElement'](Dt,Object['assign']({},_0x46ba1c,{'id':_0x229c05(0x351),'ref':_0x78fb59,'icon':Ms}));});Cn['displayName']='OffLineSingle';var As={'tag':_0x3b224c(0x397),'attrs':{'fill':_0x3b224c(0x15c),'viewBox':_0x3b224c(0x49e),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3b224c(0x203)},'children':[{'tag':_0x3b224c(0x3ea),'attrs':{'stroke':_0x3b224c(0x2bd),'d':_0x3b224c(0x5c0),'strokeLinecap':_0x3b224c(0x593),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x3b224c(0x294),'attrs':{},'children':[{'tag':_0x3b224c(0x21c),'attrs':{'id':_0x3b224c(0x320)},'children':[{'tag':_0x3b224c(0x3ea),'attrs':{'fill':_0x3b224c(0x25d),'d':_0x3b224c(0x39c),'transform':_0x3b224c(0x3bc)}}]}]}],'defIds':[_0x3b224c(0x320)]},En=ae[_0x3b224c(0x5b4)](function(_0xf997fa,_0xcfae6b){const _0x53312e=_0x3b224c;return ae[_0x53312e(0x48c)](Dt,Object[_0x53312e(0x2cc)]({},_0xf997fa,{'id':_0x53312e(0x5b1),'ref':_0xcfae6b,'icon':As}));});En['displayName']=_0x3b224c(0x47f);function bn(_0x40a437){const _0x19cf8b=_0x3b224c;var _0x474435,_0x539897,_0x279360='';if(typeof _0x40a437=='string'||typeof _0x40a437==_0x19cf8b(0x1cb))_0x279360+=_0x40a437;else{if(typeof _0x40a437==_0x19cf8b(0x17b)){if(Array['isArray'](_0x40a437)){var _0x1846e=_0x40a437['length'];for(_0x474435=0x0;_0x474435<_0x1846e;_0x474435++)_0x40a437[_0x474435]&&(_0x539897=bn(_0x40a437[_0x474435]))&&(_0x279360&&(_0x279360+='\x20'),_0x279360+=_0x539897);}else{for(_0x539897 in _0x40a437)_0x40a437[_0x539897]&&(_0x279360&&(_0x279360+='\x20'),_0x279360+=_0x539897);}}}return _0x279360;}function Ns(){for(var _0x501f06,_0x43414a,_0x63902e=0x0,_0x4f6474='',_0x282d08=arguments['length'];_0x63902e<_0x282d08;_0x63902e++)(_0x501f06=arguments[_0x63902e])&&(_0x43414a=bn(_0x501f06))&&(_0x4f6474&&(_0x4f6474+='\x20'),_0x4f6474+=_0x43414a);return _0x4f6474;}const Ls=_0x3b224c(0x3de),xs=_0x3b224c(0x284),js=_0x3b224c(0x345),$s=_0x3b224c(0x595),Hs=_0x3b224c(0x4c2),Me={'onlineStatusIcon':Ls,'onlineStatusTitle':xs,'onlineStatus':js,'online':$s,'offline':Hs};function Bs(_0x439752){const _0x3e6603=_0x3b224c;switch(_0x439752){case q[_0x3e6603(0x4e2)]:return'collabStatus.offline';case q[_0x3e6603(0x34c)]:return _0x3e6603(0x568);case q['FETCH_MISS']:return _0x3e6603(0x33c);case q[_0x3e6603(0x200)]:return _0x3e6603(0x33d);case q[_0x3e6603(0x4b6)]:case q[_0x3e6603(0x546)]:return'collabStatus.syncing';case q[_0x3e6603(0x3fd)]:case q['PENDING']:return _0x3e6603(0x210);}}function Tn(_0x319167){const _0x1583c6=_0x3b224c,{status$:_0x5ed915}=_0x319167,_0x4886e8=ee[_0x1583c6(0x421)](_0x5ed915,q[_0x1583c6(0x200)]),_0x14bb2c=a[_0x1583c6(0x35a)](a[_0x1583c6(0x4ae)]),_0x54c6eb=a[_0x1583c6(0x35a)](exports[_0x1583c6(0x5d8)]),_0x48160f=_0x4886e8!==q[_0x1583c6(0x4e2)],_0x54b36d=_0x14bb2c['t'](Bs(_0x4886e8)),_0x4a1bc9=Ns(Me[_0x1583c6(0x3f8)],{[Me['online']]:_0x48160f,[Me['offline']]:!_0x48160f}),_0x36bf69=_0x48160f?pe['jsx'](En,{}):pe['jsx'](Cn,{}),_0x4176b1=ae['useCallback'](()=>{const _0x27859c=_0x1583c6;_0x48160f||_0x54c6eb[_0x27859c(0x365)]();},[_0x48160f,_0x54c6eb]);function _0x4c4228(){const _0x79f8ea=_0x1583c6;return pe[_0x79f8ea(0x55e)](_0x79f8ea(0x589),{'className':_0x4a1bc9,'onClick':_0x4176b1,'children':[pe['jsx']('div',{'className':Me[_0x79f8ea(0x300)],'children':_0x36bf69}),pe['jsx'](_0x79f8ea(0x589),{'className':Me[_0x79f8ea(0x487)],'children':_0x54b36d})]});}return _0x48160f?_0x4c4228():pe[_0x1583c6(0x5d7)](ge[_0x1583c6(0x4d3)],{'title':_0x14bb2c['t'](_0x1583c6(0x3b3)),'children':_0x4c4228()});}var ks=Object['defineProperty'],Ws=Object[_0x3b224c(0x233)],Fs=(_0x408436,_0x539f61,_0x1757e7,_0x24f1d1)=>{const _0x50d89c=_0x3b224c;for(var _0x4e0c34=_0x24f1d1>0x1?void 0x0:_0x24f1d1?Ws(_0x539f61,_0x1757e7):_0x539f61,_0x80e3a4=_0x408436[_0x50d89c(0x2a8)]-0x1,_0x353fb7;_0x80e3a4>=0x0;_0x80e3a4--)(_0x353fb7=_0x408436[_0x80e3a4])&&(_0x4e0c34=(_0x24f1d1?_0x353fb7(_0x539f61,_0x1757e7,_0x4e0c34):_0x353fb7(_0x4e0c34))||_0x4e0c34);return _0x24f1d1&&_0x4e0c34&&ks(_0x539f61,_0x1757e7,_0x4e0c34),_0x4e0c34;},$e=(_0x567b9c,_0x3e1e20)=>(_0x45726b,_0x14fc23)=>_0x3e1e20(_0x45726b,_0x14fc23,_0x567b9c);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3b224c(0x52b)]{constructor(_0xe25194,_0x13261c,_0x2e4783,_0x53f3e5){const _0x8972b0=_0x3b224c;super(),I(this,_0x8972b0(0x183),new A[(_0x8972b0(0x33e))](q[_0x8972b0(0x200)])),(this[_0x8972b0(0x15e)]=_0xe25194,this[_0x8972b0(0x355)]=_0x13261c,this[_0x8972b0(0x495)]=_0x2e4783,this['_collaborationController']=_0x53f3e5,this[_0x8972b0(0x43d)](),this[_0x8972b0(0x22c)]());}[_0x3b224c(0x22c)](){const _0x2cc1b1=_0x3b224c;this[_0x2cc1b1(0x220)](this['_univerInstanceService']['focused$']['pipe'](A[_0x2cc1b1(0x314)](()=>{const _0x488cd8=_0x2cc1b1,_0x22dcbb=this[_0x488cd8(0x15e)]['getFocusedUnit']();return _0x22dcbb?this[_0x488cd8(0x348)]['getCollabEntity$'](_0x22dcbb[_0x488cd8(0x22d)]()):A['of'](null);}),A[_0x2cc1b1(0x314)](_0x31e914=>_0x31e914?_0x31e914['status$']:A['of'](q[_0x2cc1b1(0x200)])))[_0x2cc1b1(0x2de)](_0x35b9b1=>{const _0xa74f08=_0x2cc1b1;this[_0xa74f08(0x183)][_0xa74f08(0x1e1)](_0x35b9b1);}));}['_initStatusComponent'](){const _0x2119ce=_0x3b224c;this[_0x2119ce(0x220)](this[_0x2119ce(0x355)][_0x2119ce(0x548)](ee[_0x2119ce(0x49d)][_0x2119ce(0x571)],()=>a[_0x2119ce(0x3b2)](Vs({'status$':this[_0x2119ce(0x183)][_0x2119ce(0x4f7)]()}),this[_0x2119ce(0x495)])));}},exports[_0x3b224c(0x58a)]=Fs([$e(0x0,a['IUniverInstanceService']),$e(0x1,ee[_0x3b224c(0x36c)]),$e(0x2,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),$e(0x3,a[_0x3b224c(0x556)](exports[_0x3b224c(0x1d0)]))],exports[_0x3b224c(0x58a)]);function Vs(_0x363474){const {status$:_0x1ad0a2}=_0x363474;return function(){const _0x3fe37a=_0x1276;return pe[_0x3fe37a(0x5d7)](Tn,{'status$':_0x1ad0a2});};}const wt=a[_0x3b224c(0x2da)]('uni.network.url-service');var Gs=Object['defineProperty'],Ys=Object['getOwnPropertyDescriptor'],Ks=(_0x41f08a,_0x30a821,_0x452188,_0x3d5ec0)=>{const _0x31b5eb=_0x3b224c;for(var _0x6ede7f=_0x3d5ec0>0x1?void 0x0:_0x3d5ec0?Ys(_0x30a821,_0x452188):_0x30a821,_0x2a4d04=_0x41f08a[_0x31b5eb(0x2a8)]-0x1,_0x5de0b9;_0x2a4d04>=0x0;_0x2a4d04--)(_0x5de0b9=_0x41f08a[_0x2a4d04])&&(_0x6ede7f=(_0x3d5ec0?_0x5de0b9(_0x30a821,_0x452188,_0x6ede7f):_0x5de0b9(_0x6ede7f))||_0x6ede7f);return _0x3d5ec0&&_0x6ede7f&&Gs(_0x30a821,_0x452188,_0x6ede7f),_0x6ede7f;},Te=(_0x2b11c3,_0x4a906e)=>(_0x33e2fe,_0x3a9a82)=>_0x4a906e(_0x33e2fe,_0x3a9a82,_0x2b11c3);exports[_0x3b224c(0x151)]=class extends a[_0x3b224c(0x274)]{constructor(_0x4e0e0d,_0x4fbfe1,_0x5c6efc,_0x435404,_0x12e3f1,_0x58bcf4){const _0x57c098=_0x3b224c;super(),this[_0x57c098(0x361)]=_0x4e0e0d,this['_logService']=_0x4fbfe1,this['_commandService']=_0x5c6efc,this['_localCacheService']=_0x435404,this[_0x57c098(0x30c)]=_0x12e3f1,_0x58bcf4?_0x58bcf4==null||_0x58bcf4['whenReady']()[_0x57c098(0x55b)](()=>this[_0x57c098(0x578)]()):(this['_logService'][_0x57c098(0x241)]('[DataLoaderController]',_0x57c098(0x581)),this['_init']());}async[_0x3b224c(0x578)](){const _0x466149=_0x3b224c,_0x58d43b=this['_urlService'][_0x466149(0x48d)](_0x466149(0x479)),_0x4ab29a=this[_0x466149(0x361)][_0x466149(0x48d)]('type');if(!_0x58d43b||!_0x4ab29a){this['_logService'][_0x466149(0x241)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x4ab29a)){case ie['UNIVER_SHEET']:{const _0x37be45=await this[_0x466149(0x4ea)](_0x58d43b);this['_setupSubUnitSync'](_0x37be45);break;}case ie[_0x466149(0x508)]:{await this['_loadDoc'](_0x58d43b);break;}default:{this[_0x466149(0x13a)][_0x466149(0x423)]('[DataLoaderController]',_0x466149(0x23f));break;}}}async[_0x3b224c(0x4b5)](_0xfb8a8b){const _0x553a71=_0x3b224c;await this[_0x553a71(0x2f1)](_0xfb8a8b),_0xfb8a8b['activeSheet$'][_0x553a71(0x3cc)](A['takeUntil'](this[_0x553a71(0x19d)]))[_0x553a71(0x2de)](_0x29c1dd=>{const _0x49fd8d=_0x553a71;_0x29c1dd&&this[_0x49fd8d(0x2ae)](_0x29c1dd);}),this[_0x553a71(0x361)][_0x553a71(0x166)]['pipe'](A[_0x553a71(0x58f)](this[_0x553a71(0x19d)]))[_0x553a71(0x2de)](()=>this[_0x553a71(0x2f1)](_0xfb8a8b));}[_0x3b224c(0x2ae)](_0x2b5101,_0x2b9cef=!0x1){const _0x2ecd6b=_0x3b224c,_0x24c6b6=this[_0x2ecd6b(0x361)][_0x2ecd6b(0x48d)]('subunit');_0x2b5101['getSheetId']()!==_0x24c6b6&&this[_0x2ecd6b(0x361)]['setParam'](_0x2ecd6b(0x2a0),_0x2b5101[_0x2ecd6b(0x244)](),_0x2b9cef);}async[_0x3b224c(0x2f1)](_0x228c2f){const _0xbf11e0=_0x3b224c;var _0x33f240;const _0x1decb7=this[_0xbf11e0(0x361)]['getParam'](_0xbf11e0(0x2a0));if(!_0x1decb7||!_0x228c2f[_0xbf11e0(0x574)](_0x1decb7)){const _0x465e21=_0x228c2f[_0xbf11e0(0x388)]()[0x0],_0x4216e3=_0x228c2f[_0xbf11e0(0x574)](_0x465e21);if(!_0x4216e3)return;this[_0xbf11e0(0x2ae)](_0x4216e3,!0x0),await this[_0xbf11e0(0x2b1)][_0xbf11e0(0x5ad)](k['SetWorksheetActivateCommand']['id'],{'unitId':_0x228c2f['getUnitId'](),'subUnitId':_0x465e21});return;}((_0x33f240=_0x228c2f['getActiveSheet']())==null?void 0x0:_0x33f240[_0xbf11e0(0x244)]())!==_0x1decb7&&await this[_0xbf11e0(0x2b1)]['executeCommand'](k[_0xbf11e0(0x2e5)]['id'],{'unitId':_0x228c2f[_0xbf11e0(0x22d)](),'subUnitId':_0x1decb7});}async[_0x3b224c(0x4ea)](_0x395f46){const _0xa66a85=_0x3b224c;let _0x34c025=0x0;const _0x4d4362=await this[_0xa66a85(0x490)][_0xa66a85(0x2a3)](_0x395f46);return _0x4d4362&&(_0x4d4362[_0xa66a85(0x3c3)]||_0x4d4362['mutations']['length']!==0x0)&&(_0x34c025=_0x4d4362['rev']),_0x34c025===0x0&&this[_0xa66a85(0x13a)][_0xa66a85(0x241)](_0xa66a85(0x3da),_0xa66a85(0x3cf)),this[_0xa66a85(0x30c)]['loadSheet'](_0x395f46,_0x34c025);}async[_0x3b224c(0x2eb)](_0x1c362b){const _0xaf6d98=_0x3b224c;let _0x253444=0x0;const _0x3305a=await this[_0xaf6d98(0x490)][_0xaf6d98(0x2a3)](_0x1c362b);return _0x3305a&&(_0x3305a[_0xaf6d98(0x3c3)]||_0x3305a[_0xaf6d98(0x229)][_0xaf6d98(0x2a8)]!==0x0)&&(_0x253444=_0x3305a['rev']),_0x253444===0x0&&this[_0xaf6d98(0x13a)][_0xaf6d98(0x241)](_0xaf6d98(0x3da),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xaf6d98(0x30c)][_0xaf6d98(0x161)](_0x1c362b,_0x253444);}},exports['DataLoaderController']=Ks([Te(0x0,wt),Te(0x1,a[_0x3b224c(0x5ae)]),Te(0x2,a[_0x3b224c(0x3d4)]),Te(0x3,a['Inject'](exports[_0x3b224c(0x42a)])),Te(0x4,a[_0x3b224c(0x556)](S[_0x3b224c(0x171)])),Te(0x5,a[_0x3b224c(0x3e1)]($n[_0x3b224c(0x185)]))],exports[_0x3b224c(0x151)]);var qs=Object[_0x3b224c(0x209)],zs=Object[_0x3b224c(0x233)],Xs=(_0x2b7ca8,_0x3be938,_0x42621f,_0x28eee5)=>{const _0xa389bc=_0x3b224c;for(var _0x34e666=_0x28eee5>0x1?void 0x0:_0x28eee5?zs(_0x3be938,_0x42621f):_0x3be938,_0x4d88dd=_0x2b7ca8[_0xa389bc(0x2a8)]-0x1,_0x4de670;_0x4d88dd>=0x0;_0x4d88dd--)(_0x4de670=_0x2b7ca8[_0x4d88dd])&&(_0x34e666=(_0x28eee5?_0x4de670(_0x3be938,_0x42621f,_0x34e666):_0x4de670(_0x34e666))||_0x34e666);return _0x28eee5&&_0x34e666&&qs(_0x3be938,_0x42621f,_0x34e666),_0x34e666;},kt=(_0x25fd3b,_0x18e10f)=>(_0x25ebf3,_0x3512fc)=>_0x18e10f(_0x25ebf3,_0x3512fc,_0x25fd3b);const Js=_0x3b224c(0x1e3),Zs=_0x3b224c(0x2fd);let Ve=class extends a[_0x3b224c(0x52b)]{constructor(_0x4ff428,_0x1c26b9){const _0x5dce6b=_0x3b224c;super(),this[_0x5dce6b(0x15e)]=_0x4ff428,this[_0x5dce6b(0x142)]=_0x1c26b9,this[_0x5dce6b(0x578)]();}[_0x3b224c(0x578)](){const _0x3b1268=_0x3b224c;this['disposeWithMe'](this[_0x3b1268(0x15e)][_0x3b1268(0x5dc)][_0x3b1268(0x2de)](()=>{const _0x3b9f3f=_0x3b1268;var _0x231c4e;const _0x4ce2d4=this['_univerInstanceService'][_0x3b9f3f(0x499)]();let _0x6b707d=(_0x231c4e=this[_0x3b9f3f(0x142)][_0x3b9f3f(0x469)](Js))!=null?_0x231c4e:Zs;_0x4ce2d4 instanceof a['Workbook']&&(_0x6b707d=_0x4ce2d4[_0x3b9f3f(0x513)]),document[_0x3b9f3f(0x519)]=_0x6b707d;}));}};Ve=Xs([kt(0x0,a[_0x3b224c(0x5a1)]),kt(0x1,a['IConfigService'])],Ve);var Qs=Object[_0x3b224c(0x209)],er=Object[_0x3b224c(0x233)],tr=(_0x17b944,_0x389540,_0x4f04fb,_0x5e9bf1)=>{const _0x30d187=_0x3b224c;for(var _0xbb885f=_0x5e9bf1>0x1?void 0x0:_0x5e9bf1?er(_0x389540,_0x4f04fb):_0x389540,_0x5a805a=_0x17b944[_0x30d187(0x2a8)]-0x1,_0x436db5;_0x5a805a>=0x0;_0x5a805a--)(_0x436db5=_0x17b944[_0x5a805a])&&(_0xbb885f=(_0x5e9bf1?_0x436db5(_0x389540,_0x4f04fb,_0xbb885f):_0x436db5(_0xbb885f))||_0xbb885f);return _0x5e9bf1&&_0xbb885f&&Qs(_0x389540,_0x4f04fb,_0xbb885f),_0xbb885f;},at=(_0x164877,_0x58c5df)=>(_0x5003e7,_0x14d446)=>_0x58c5df(_0x5003e7,_0x14d446,_0x164877);let Ge=class{constructor(_0x2bc9fe,_0x4ae4f5,_0x422001){const _0x5b2914=_0x3b224c;this[_0x5b2914(0x142)]=_0x2bc9fe,this[_0x5b2914(0x4f3)]=_0x4ae4f5,this[_0x5b2914(0x422)]=_0x422001,this[_0x5b2914(0x20b)]();}[_0x3b224c(0x20b)](){const _0x4fac41=_0x3b224c;this[_0x4fac41(0x4f3)][_0x4fac41(0x517)]({'priority':0x1,'interceptor':(_0x258bda,_0x440d7c)=>_0x440d7c(_0x258bda)[_0x4fac41(0x3cc)](A[_0x4fac41(0x4cd)](async _0x1a7be4=>{const _0x5038ab=_0x4fac41,_0x3e2942=_0x1a7be4;if(_0x3e2942['status']===0x191&&window[_0x5038ab(0x20d)](this[_0x5038ab(0x422)]['t'](_0x5038ab(0x440)))){const _0x5ae6ea=window[_0x5038ab(0x1cf)](window[_0x5038ab(0x3c2)]['href']);window[_0x5038ab(0x3c2)][_0x5038ab(0x27d)]=this[_0x5038ab(0x56b)]()+_0x5038ab(0x246)+_0x5ae6ea;}return _0x3e2942;}))});}[_0x3b224c(0x56b)](){const _0x49e17c=_0x3b224c;var _0x2f821f,_0x2cf52a;const _0x508421=this[_0x49e17c(0x142)]['getConfig'](an),_0x48188c=this[_0x49e17c(0x142)][_0x49e17c(0x469)](te);return(_0x2cf52a=(_0x2f821f=_0x48188c==null?void 0x0:_0x48188c['loginUrlKey'])!=null?_0x2f821f:_0x508421)!=null?_0x2cf52a:qn;}};Ge=tr([at(0x0,a[_0x3b224c(0x160)]),at(0x1,a[_0x3b224c(0x556)](Z[_0x3b224c(0x15d)])),at(0x2,a['Inject'](a[_0x3b224c(0x4ae)]))],Ge);var nr=Object[_0x3b224c(0x209)],ir=Object[_0x3b224c(0x233)],sr=(_0x2aa440,_0x3f2dc1,_0x3a84f0,_0x45068e)=>{for(var _0x2a2153=_0x45068e>0x1?void 0x0:_0x45068e?ir(_0x3f2dc1,_0x3a84f0):_0x3f2dc1,_0x52cea8=_0x2aa440['length']-0x1,_0x507faf;_0x52cea8>=0x0;_0x52cea8--)(_0x507faf=_0x2aa440[_0x52cea8])&&(_0x2a2153=(_0x45068e?_0x507faf(_0x3f2dc1,_0x3a84f0,_0x2a2153):_0x507faf(_0x2a2153))||_0x2a2153);return _0x45068e&&_0x2a2153&&nr(_0x3f2dc1,_0x3a84f0,_0x2a2153),_0x2a2153;},Wt=(_0x449411,_0x1ec1ef)=>(_0x52e356,_0x480455)=>_0x1ec1ef(_0x52e356,_0x480455,_0x449411);const Rn='AUTHZ_URL_KEY',rr=_0x3b224c(0x26c);exports['AuthzIoHttpService']=class extends a['Disposable']{constructor(_0x2123ec,_0x129630){const _0x5071e8=_0x3b224c;super(),this[_0x5071e8(0x461)]=_0x2123ec,this[_0x5071e8(0x142)]=_0x129630,this[_0x5071e8(0x26f)]();}['_initMergeInterceptor'](){const _0x57b4ba=_0x3b224c,_0x3b61ef=this;this[_0x57b4ba(0x220)](this[_0x57b4ba(0x461)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':Z[_0x57b4ba(0x18a)]({'isMatch'(_0x4b31e){const _0x334845=_0x57b4ba;var _0x8886b;if(_0x4b31e[_0x334845(0x295)]===_0x334845(0x17e)&&((_0x8886b=_0x4b31e[_0x334845(0x5df)])!=null&&_0x8886b[_0x334845(0x4ce)])){const {objectID:_0x38a6be,objectType:_0x2f29d4}=_0x4b31e[_0x334845(0x5df)]['body']||{};if(!_0x38a6be||_0x2f29d4===void 0x0)return!0x1;const _0x48f07e=_0x3b61ef['_getAPIPrefixPath']()+'/'+_0x2f29d4+'/object/'+_0x38a6be+_0x334845(0x150);if(_0x4b31e[_0x334845(0x47a)]===_0x48f07e)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xef08d4){const _0x2c7dc2=_0x57b4ba;var _0x51d033;return(_0x51d033=_0xef08d4[_0x2c7dc2(0x5df)])==null?void 0x0:_0x51d033[_0x2c7dc2(0x4ce)];},'mergeParamsToRequest'(_0x35f389,_0x450135){const _0x47d3a2=_0x57b4ba,_0x1863e4=_0x3b61ef[_0x47d3a2(0x374)]()+'/-/object/-/batch_allowed',_0xc391fd=_0x35f389[_0x47d3a2(0x5b7)]((_0x3fe96b,_0x5aa58b)=>{const _0x2cb9ef=_0x47d3a2,{unitID:_0x4e02de,objectID:_0x2e4593,objectType:_0x104950,actions:_0x3730a3}=_0x5aa58b;return _0x3fe96b[_0x4e02de]||(_0x3fe96b[_0x4e02de]={}),_0x3fe96b[_0x4e02de][_0x2e4593]||(_0x3fe96b[_0x4e02de][_0x2e4593]={'objectID':_0x2e4593,'objectType':_0x104950,'actions':[]}),_0x3fe96b[_0x4e02de][_0x2e4593][_0x2cb9ef(0x1f0)]['push'](..._0x3730a3),_0x3fe96b;},{}),_0x4f88fa=[];for(const _0x24c427 in _0xc391fd)for(const _0x348e3c in _0xc391fd[_0x24c427]){const {actions:_0x52adbc,objectType:_0x31837f}=_0xc391fd[_0x24c427][_0x348e3c],_0x35a1af=[...new Set(_0x52adbc)];_0x4f88fa[_0x47d3a2(0x1a8)]({'unitID':_0x24c427,'objectID':_0x348e3c,'objectType':_0x31837f,'actions':_0x35a1af});}return new Z[(_0x47d3a2(0x26e))](_0x47d3a2(0x17e),_0x1863e4,{'headers':_0x450135['headers'],'withCredentials':_0x450135['withCredentials'],'responseType':_0x450135[_0x47d3a2(0x37c)],'body':{'requests':_0x4f88fa}});}},{'distributeResult'(_0x3da413,_0x57144b){const _0x5ece46=_0x57b4ba,{objectActions:_0x315f86}=_0x3da413;return _0x57144b[_0x5ece46(0x283)](_0xea0289=>{const _0x6930cd=_0x5ece46,{unitID:_0x2c36a2,objectID:_0x4d8c0b,actions:_0x5ce6eb}=_0xea0289,_0x10be38=_0x315f86[_0x6930cd(0x474)](_0x1f93a5=>_0x1f93a5[_0x6930cd(0x236)]===_0x2c36a2&&_0x1f93a5[_0x6930cd(0x313)]===_0x4d8c0b),_0x57e7be=_0x5ce6eb['map'](_0x447c2c=>_0x10be38==null?void 0x0:_0x10be38[_0x6930cd(0x1f0)][_0x6930cd(0x474)](_0xe65695=>_0xe65695['action']===_0x447c2c))[_0x6930cd(0x567)](_0x2382c8=>!!_0x2382c8);return{'config':_0xea0289,'result':{'actions':_0x57e7be,'error':_0x3da413[_0x6930cd(0x423)]}};});}})}));}['_getAPIPrefixPath'](){const _0x1bc168=_0x3b224c;var _0x415d55,_0x226103;const _0x5403b0=this['_configService']['getConfig'](Rn),_0x352aba=this[_0x1bc168(0x142)][_0x1bc168(0x469)](te);return(_0x226103=(_0x415d55=_0x352aba==null?void 0x0:_0x352aba[_0x1bc168(0x1a2)])!=null?_0x415d55:_0x5403b0)!=null?_0x226103:rr;}async['create'](_0x16a6ec){const _0x48afd4=_0x3b224c,_0x53ee37=this[_0x48afd4(0x374)]()+'/'+_0x16a6ec[_0x48afd4(0x259)]+_0x48afd4(0x3c9);return(await this['_HTTPService']['post'](_0x53ee37,{'body':_0x16a6ec}))[_0x48afd4(0x4ce)][_0x48afd4(0x313)]||'';}async[_0x3b224c(0x18b)](_0x43e7d1){const _0x418b44=_0x3b224c,_0x41214d=this[_0x418b44(0x374)]()+_0x418b44(0x557);return(await this[_0x418b44(0x461)][_0x418b44(0x192)](_0x41214d,{'body':_0x43e7d1}))[_0x418b44(0x4ce)][_0x418b44(0x138)];}async[_0x3b224c(0x367)](_0x37d6a2){const _0x175ad0=_0x3b224c,_0x82a377=this[_0x175ad0(0x374)]()+'/'+_0x37d6a2[_0x175ad0(0x259)]+_0x175ad0(0x22a)+_0x37d6a2[_0x175ad0(0x313)];await this[_0x175ad0(0x461)][_0x175ad0(0x342)](_0x82a377,{'body':_0x37d6a2});}async[_0x3b224c(0x33b)](_0x1884a9){const _0x54112e=_0x3b224c,_0x29ac24=this[_0x54112e(0x374)]()+'/'+_0x1884a9[_0x54112e(0x259)]+_0x54112e(0x22a)+_0x1884a9['objectID']+_0x54112e(0x150);return(await this[_0x54112e(0x461)][_0x54112e(0x192)](_0x29ac24,{'body':_0x1884a9}))[_0x54112e(0x4ce)]['actions'];}async['batchAllowed'](_0x18cc32){const _0x2328b5=_0x3b224c,_0x20d544=this['_getAPIPrefixPath']()+_0x2328b5(0x27e);return(await this[_0x2328b5(0x461)][_0x2328b5(0x192)](_0x20d544,{'body':{'requests':_0x18cc32}}))[_0x2328b5(0x4ce)][_0x2328b5(0x1b5)];}async[_0x3b224c(0x4ee)](_0x1c3217){const _0x2e8006=_0x3b224c,_0x9413df=this[_0x2e8006(0x374)]()+'/'+_0x1c3217['objectType']+_0x2e8006(0x4fe),_0x32abf1=await this[_0x2e8006(0x461)][_0x2e8006(0x192)](_0x9413df,{'body':_0x1c3217});return{'roles':_0x32abf1[_0x2e8006(0x4ce)][_0x2e8006(0x482)],'actions':_0x32abf1[_0x2e8006(0x4ce)][_0x2e8006(0x1f0)]};}async[_0x3b224c(0x2f8)](_0xd894e5){const _0x5aa370=_0x3b224c,_0x2daeb3=this[_0x5aa370(0x374)]()+_0x5aa370(0x301);await this[_0x5aa370(0x461)][_0x5aa370(0x463)](_0x2daeb3,{'params':{'collaboratorID':_0xd894e5[_0x5aa370(0x5e2)],'objectID':_0xd894e5[_0x5aa370(0x313)],'unitID':_0xd894e5[_0x5aa370(0x236)]}});}async[_0x3b224c(0x22f)](_0x40ea76){const _0x45a21e=_0x3b224c,_0x1577ce=this['_getAPIPrefixPath']()+_0x45a21e(0x301);await this['_HTTPService'][_0x45a21e(0x5aa)](_0x1577ce,{'body':_0x40ea76});}async['createCollaborator'](_0x3817d0){const _0x56c382=_0x3b224c,_0x658c5a=this[_0x56c382(0x374)]()+'/collaborator';await this[_0x56c382(0x461)]['post'](_0x658c5a,{'body':_0x3817d0});}async[_0x3b224c(0x133)](_0x1b7eec){const _0x260379=_0x3b224c,_0x318c4b=this[_0x260379(0x374)]()+'/collaborator';return(await this[_0x260379(0x461)][_0x260379(0x273)](_0x318c4b,{'params':{'objectID':_0x1b7eec[_0x260379(0x313)],'unitID':_0x1b7eec[_0x260379(0x236)]}}))[_0x260379(0x4ce)][_0x260379(0x147)];}async[_0x3b224c(0x35f)](_0x283c71){const _0x139d37=_0x3b224c,_0x53141d=this[_0x139d37(0x374)]()+_0x139d37(0x301);await this[_0x139d37(0x461)][_0x139d37(0x342)](_0x53141d,{'body':_0x283c71});}},exports[_0x3b224c(0x511)]=sr([Wt(0x0,a[_0x3b224c(0x556)](Z[_0x3b224c(0x15d)])),Wt(0x1,a[_0x3b224c(0x556)](a['IConfigService']))],exports[_0x3b224c(0x511)]);var yn={'exports':{}};function or(_0x4fb42c){const _0x380f51=_0x3b224c;throw new Error(_0x380f51(0x4bb)+_0x4fb42c+_0x380f51(0x42b));}var ct={'exports':{}},Ft;function oe(){return Ft||(Ft=0x1,function(_0x26b7ed,_0x248825){(function(_0x3ce1d8,_0x2fd265){const _0x38ac79=_0x1276;_0x26b7ed[_0x38ac79(0x2fc)]=_0x2fd265();}(X,function(){var _0x4a9e22=_0x4a9e22||function(_0x14dc5f,_0x4e54f9){const _0x409e4f=_0x1276;var _0x4e153e;if(typeof window<'u'&&window['crypto']&&(_0x4e153e=window['crypto']),typeof self<'u'&&self[_0x409e4f(0x207)]&&(_0x4e153e=self['crypto']),typeof globalThis<'u'&&globalThis[_0x409e4f(0x207)]&&(_0x4e153e=globalThis[_0x409e4f(0x207)]),!_0x4e153e&&typeof window<'u'&&window[_0x409e4f(0x3eb)]&&(_0x4e153e=window[_0x409e4f(0x3eb)]),!_0x4e153e&&typeof X<'u'&&X[_0x409e4f(0x207)]&&(_0x4e153e=X[_0x409e4f(0x207)]),!_0x4e153e&&typeof or=='function')try{_0x4e153e=require('crypto');}catch{}var _0x251d92=function(){const _0x573a82=_0x409e4f;if(_0x4e153e){if(typeof _0x4e153e[_0x573a82(0x458)]==_0x573a82(0x554))try{return _0x4e153e[_0x573a82(0x458)](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0x4e153e[_0x573a82(0x4f6)]==_0x573a82(0x554))try{return _0x4e153e[_0x573a82(0x4f6)](0x4)[_0x573a82(0x293)]();}catch{}}throw new Error(_0x573a82(0x277));},_0x48bc3d=Object[_0x409e4f(0x4ec)]||(function(){function _0x88e223(){}return function(_0x48afe5){const _0x37e0ae=_0x1276;var _0x2c057b;return _0x88e223[_0x37e0ae(0x1af)]=_0x48afe5,_0x2c057b=new _0x88e223(),_0x88e223[_0x37e0ae(0x1af)]=null,_0x2c057b;};}()),_0x415ee6={},_0x199d5b=_0x415ee6[_0x409e4f(0x5af)]={},_0x56506f=_0x199d5b[_0x409e4f(0x1d9)]=(function(){return{'extend':function(_0xfbd65f){const _0x20011f=_0x1276;var _0x1e43db=_0x48bc3d(this);return _0xfbd65f&&_0x1e43db[_0x20011f(0x315)](_0xfbd65f),(!_0x1e43db[_0x20011f(0x1fe)](_0x20011f(0x20b))||this[_0x20011f(0x20b)]===_0x1e43db[_0x20011f(0x20b)])&&(_0x1e43db['init']=function(){const _0x3753eb=_0x20011f;_0x1e43db[_0x3753eb(0x2ee)]['init'][_0x3753eb(0x44a)](this,arguments);}),_0x1e43db[_0x20011f(0x20b)][_0x20011f(0x1af)]=_0x1e43db,_0x1e43db[_0x20011f(0x2ee)]=this,_0x1e43db;},'create':function(){const _0x1f893e=_0x1276;var _0x4b09fb=this['extend']();return _0x4b09fb[_0x1f893e(0x20b)][_0x1f893e(0x44a)](_0x4b09fb,arguments),_0x4b09fb;},'init':function(){},'mixIn':function(_0x52be11){const _0x36a6f2=_0x1276;for(var _0x66db55 in _0x52be11)_0x52be11[_0x36a6f2(0x1fe)](_0x66db55)&&(this[_0x66db55]=_0x52be11[_0x66db55]);_0x52be11[_0x36a6f2(0x1fe)](_0x36a6f2(0x4cf))&&(this[_0x36a6f2(0x4cf)]=_0x52be11[_0x36a6f2(0x4cf)]);},'clone':function(){const _0x24143b=_0x1276;return this[_0x24143b(0x20b)][_0x24143b(0x1af)][_0x24143b(0x24d)](this);}};}()),_0x196c5f=_0x199d5b[_0x409e4f(0x1e5)]=_0x56506f[_0x409e4f(0x24d)]({'init':function(_0x3be007,_0x2a00a9){const _0x56463b=_0x409e4f;_0x3be007=this[_0x56463b(0x222)]=_0x3be007||[],_0x2a00a9!=_0x4e54f9?this[_0x56463b(0x25c)]=_0x2a00a9:this['sigBytes']=_0x3be007[_0x56463b(0x2a8)]*0x4;},'toString':function(_0x3a9145){const _0x205a56=_0x409e4f;return(_0x3a9145||_0x4c4b0e)[_0x205a56(0x52a)](this);},'concat':function(_0xd5d088){const _0x36d884=_0x409e4f;var _0x3d0226=this[_0x36d884(0x222)],_0x3a2515=_0xd5d088[_0x36d884(0x222)],_0x4d1cea=this[_0x36d884(0x25c)],_0x88ca8d=_0xd5d088[_0x36d884(0x25c)];if(this[_0x36d884(0x338)](),_0x4d1cea%0x4)for(var _0x5c7936=0x0;_0x5c7936<_0x88ca8d;_0x5c7936++){var _0x542607=_0x3a2515[_0x5c7936>>>0x2]>>>0x18-_0x5c7936%0x4*0x8&0xff;_0x3d0226[_0x4d1cea+_0x5c7936>>>0x2]|=_0x542607<<0x18-(_0x4d1cea+_0x5c7936)%0x4*0x8;}else{for(var _0x59c136=0x0;_0x59c136<_0x88ca8d;_0x59c136+=0x4)_0x3d0226[_0x4d1cea+_0x59c136>>>0x2]=_0x3a2515[_0x59c136>>>0x2];}return this[_0x36d884(0x25c)]+=_0x88ca8d,this;},'clamp':function(){const _0x90658f=_0x409e4f;var _0x3d326c=this[_0x90658f(0x222)],_0x52b729=this['sigBytes'];_0x3d326c[_0x52b729>>>0x2]&=0xffffffff<<0x20-_0x52b729%0x4*0x8,_0x3d326c[_0x90658f(0x2a8)]=_0x14dc5f[_0x90658f(0x4b0)](_0x52b729/0x4);},'clone':function(){const _0x5930f0=_0x409e4f;var _0x1be674=_0x56506f['clone']['call'](this);return _0x1be674[_0x5930f0(0x222)]=this[_0x5930f0(0x222)]['slice'](0x0),_0x1be674;},'random':function(_0x54f458){const _0x304e41=_0x409e4f;for(var _0x1c4dcf=[],_0x21c76f=0x0;_0x21c76f<_0x54f458;_0x21c76f+=0x4)_0x1c4dcf[_0x304e41(0x1a8)](_0x251d92());return new _0x196c5f[(_0x304e41(0x20b))](_0x1c4dcf,_0x54f458);}}),_0x5f02cb=_0x415ee6[_0x409e4f(0x551)]={},_0x4c4b0e=_0x5f02cb[_0x409e4f(0x1ff)]={'stringify':function(_0x4137f0){const _0x419699=_0x409e4f;for(var _0x3e4593=_0x4137f0[_0x419699(0x222)],_0x1e7b36=_0x4137f0['sigBytes'],_0x1ba5ec=[],_0x3eca73=0x0;_0x3eca73<_0x1e7b36;_0x3eca73++){var _0x1b5ddf=_0x3e4593[_0x3eca73>>>0x2]>>>0x18-_0x3eca73%0x4*0x8&0xff;_0x1ba5ec['push']((_0x1b5ddf>>>0x4)[_0x419699(0x4cf)](0x10)),_0x1ba5ec[_0x419699(0x1a8)]((_0x1b5ddf&0xf)[_0x419699(0x4cf)](0x10));}return _0x1ba5ec[_0x419699(0x45e)]('');},'parse':function(_0x4c4466){const _0x4f9c35=_0x409e4f;for(var _0x167110=_0x4c4466[_0x4f9c35(0x2a8)],_0x41a5c3=[],_0x743df3=0x0;_0x743df3<_0x167110;_0x743df3+=0x2)_0x41a5c3[_0x743df3>>>0x3]|=parseInt(_0x4c4466[_0x4f9c35(0x50b)](_0x743df3,0x2),0x10)<<0x18-_0x743df3%0x8*0x4;return new _0x196c5f[(_0x4f9c35(0x20b))](_0x41a5c3,_0x167110/0x2);}},_0x232c51=_0x5f02cb[_0x409e4f(0x576)]={'stringify':function(_0x254c9b){const _0x293dc2=_0x409e4f;for(var _0x13c47b=_0x254c9b[_0x293dc2(0x222)],_0x18e717=_0x254c9b[_0x293dc2(0x25c)],_0x4f64b7=[],_0x4a306d=0x0;_0x4a306d<_0x18e717;_0x4a306d++){var _0x520bba=_0x13c47b[_0x4a306d>>>0x2]>>>0x18-_0x4a306d%0x4*0x8&0xff;_0x4f64b7[_0x293dc2(0x1a8)](String['fromCharCode'](_0x520bba));}return _0x4f64b7[_0x293dc2(0x45e)]('');},'parse':function(_0x42cd7f){const _0x841be1=_0x409e4f;for(var _0x13e4f8=_0x42cd7f[_0x841be1(0x2a8)],_0x47a5e7=[],_0x1deb84=0x0;_0x1deb84<_0x13e4f8;_0x1deb84++)_0x47a5e7[_0x1deb84>>>0x2]|=(_0x42cd7f[_0x841be1(0x501)](_0x1deb84)&0xff)<<0x18-_0x1deb84%0x4*0x8;return new _0x196c5f[(_0x841be1(0x20b))](_0x47a5e7,_0x13e4f8);}},_0x14b993=_0x5f02cb[_0x409e4f(0x4dc)]={'stringify':function(_0x5dac28){try{return decodeURIComponent(escape(_0x232c51['stringify'](_0x5dac28)));}catch{throw new Error('Malformed\x20UTF-8\x20data');}},'parse':function(_0x8f30a2){const _0x2599e7=_0x409e4f;return _0x232c51[_0x2599e7(0x3d3)](unescape(encodeURIComponent(_0x8f30a2)));}},_0x5b62fa=_0x199d5b[_0x409e4f(0x12f)]=_0x56506f['extend']({'reset':function(){const _0x5bbed1=_0x409e4f;this[_0x5bbed1(0x3b7)]=new _0x196c5f[(_0x5bbed1(0x20b))](),this['_nDataBytes']=0x0;},'_append':function(_0x1beaa7){const _0x4b8890=_0x409e4f;typeof _0x1beaa7==_0x4b8890(0x404)&&(_0x1beaa7=_0x14b993[_0x4b8890(0x3d3)](_0x1beaa7)),this[_0x4b8890(0x3b7)][_0x4b8890(0x198)](_0x1beaa7),this[_0x4b8890(0x51c)]+=_0x1beaa7[_0x4b8890(0x25c)];},'_process':function(_0x3764f5){const _0x1934ee=_0x409e4f;var _0x4da47f,_0x749f84=this[_0x1934ee(0x3b7)],_0x42d1bf=_0x749f84[_0x1934ee(0x222)],_0x190ebd=_0x749f84[_0x1934ee(0x25c)],_0x39a9f6=this['blockSize'],_0x4ea4ed=_0x39a9f6*0x4,_0x5211ca=_0x190ebd/_0x4ea4ed;_0x3764f5?_0x5211ca=_0x14dc5f[_0x1934ee(0x4b0)](_0x5211ca):_0x5211ca=_0x14dc5f['max']((_0x5211ca|0x0)-this['_minBufferSize'],0x0);var _0x4dd274=_0x5211ca*_0x39a9f6,_0x4b4e35=_0x14dc5f['min'](_0x4dd274*0x4,_0x190ebd);if(_0x4dd274){for(var _0x54d5b4=0x0;_0x54d5b4<_0x4dd274;_0x54d5b4+=_0x39a9f6)this[_0x1934ee(0x42c)](_0x42d1bf,_0x54d5b4);_0x4da47f=_0x42d1bf[_0x1934ee(0x45c)](0x0,_0x4dd274),_0x749f84['sigBytes']-=_0x4b4e35;}return new _0x196c5f['init'](_0x4da47f,_0x4b4e35);},'clone':function(){const _0x4a92ac=_0x409e4f;var _0x40e3e6=_0x56506f['clone'][_0x4a92ac(0x537)](this);return _0x40e3e6[_0x4a92ac(0x3b7)]=this[_0x4a92ac(0x3b7)]['clone'](),_0x40e3e6;},'_minBufferSize':0x0});_0x199d5b[_0x409e4f(0x442)]=_0x5b62fa['extend']({'cfg':_0x56506f[_0x409e4f(0x24d)](),'init':function(_0x6e3db3){const _0x33c644=_0x409e4f;this[_0x33c644(0x472)]=this[_0x33c644(0x472)][_0x33c644(0x24d)](_0x6e3db3),this[_0x33c644(0x1ec)]();},'reset':function(){const _0x36764a=_0x409e4f;_0x5b62fa[_0x36764a(0x1ec)][_0x36764a(0x537)](this),this[_0x36764a(0x492)]();},'update':function(_0x333156){const _0x19223d=_0x409e4f;return this['_append'](_0x333156),this[_0x19223d(0x3a9)](),this;},'finalize':function(_0x261a33){const _0x238e05=_0x409e4f;_0x261a33&&this['_append'](_0x261a33);var _0x5e7ebc=this[_0x238e05(0x2f6)]();return _0x5e7ebc;},'blockSize':0x10,'_createHelper':function(_0x27c29a){return function(_0x2e153a,_0xe45e88){return new _0x27c29a['init'](_0xe45e88)['finalize'](_0x2e153a);};},'_createHmacHelper':function(_0x5e4763){return function(_0x273615,_0x171222){const _0x317699=_0x1276;return new _0x42f986[(_0x317699(0x1ae))][(_0x317699(0x20b))](_0x5e4763,_0x171222)['finalize'](_0x273615);};}});var _0x42f986=_0x415ee6['algo']={};return _0x415ee6;}(Math);return _0x4a9e22;}));}(ct)),ct['exports'];}var lt={'exports':{}},Vt;function On(){return Vt||(Vt=0x1,function(_0x58a475,_0x573661){(function(_0x3f03fe,_0x166317){const _0x34bcbd=_0x1276;_0x58a475[_0x34bcbd(0x2fc)]=_0x166317(oe());}(X,function(_0x1fd3d5){const _0xce26b=_0x1276;return(function(){const _0x9fb5ee=_0x1276;var _0x556672=_0x1fd3d5,_0x359ccd=_0x556672['lib'],_0x48f066=_0x359ccd['WordArray'],_0x2eaec4=_0x556672[_0x9fb5ee(0x551)];_0x2eaec4[_0x9fb5ee(0x5d6)]={'stringify':function(_0x5cf252){const _0x1c17dc=_0x9fb5ee;var _0x58913a=_0x5cf252[_0x1c17dc(0x222)],_0x5c3508=_0x5cf252[_0x1c17dc(0x25c)],_0x326441=this[_0x1c17dc(0x3f9)];_0x5cf252['clamp']();for(var _0x38e437=[],_0x15b97c=0x0;_0x15b97c<_0x5c3508;_0x15b97c+=0x3)for(var _0x599d53=_0x58913a[_0x15b97c>>>0x2]>>>0x18-_0x15b97c%0x4*0x8&0xff,_0x5377b5=_0x58913a[_0x15b97c+0x1>>>0x2]>>>0x18-(_0x15b97c+0x1)%0x4*0x8&0xff,_0x1204f9=_0x58913a[_0x15b97c+0x2>>>0x2]>>>0x18-(_0x15b97c+0x2)%0x4*0x8&0xff,_0x1c2ee2=_0x599d53<<0x10|_0x5377b5<<0x8|_0x1204f9,_0x5aa06e=0x0;_0x5aa06e<0x4&&_0x15b97c+_0x5aa06e*0.75<_0x5c3508;_0x5aa06e++)_0x38e437['push'](_0x326441['charAt'](_0x1c2ee2>>>0x6*(0x3-_0x5aa06e)&0x3f));var _0x15e34f=_0x326441['charAt'](0x40);if(_0x15e34f){for(;_0x38e437[_0x1c17dc(0x2a8)]%0x4;)_0x38e437['push'](_0x15e34f);}return _0x38e437[_0x1c17dc(0x45e)]('');},'parse':function(_0x1dfadb){const _0x55a4c3=_0x9fb5ee;var _0xcf7748=_0x1dfadb[_0x55a4c3(0x2a8)],_0x3d1a8a=this['_map'],_0x52cabc=this[_0x55a4c3(0x42d)];if(!_0x52cabc){_0x52cabc=this[_0x55a4c3(0x42d)]=[];for(var _0x5c165b=0x0;_0x5c165b<_0x3d1a8a[_0x55a4c3(0x2a8)];_0x5c165b++)_0x52cabc[_0x3d1a8a[_0x55a4c3(0x501)](_0x5c165b)]=_0x5c165b;}var _0x1caa20=_0x3d1a8a[_0x55a4c3(0x46b)](0x40);if(_0x1caa20){var _0x2a2602=_0x1dfadb['indexOf'](_0x1caa20);_0x2a2602!==-0x1&&(_0xcf7748=_0x2a2602);}return _0x55b6a3(_0x1dfadb,_0xcf7748,_0x52cabc);},'_map':_0x9fb5ee(0x383)};function _0x55b6a3(_0x5e660f,_0xeed012,_0xd027c9){const _0x565a98=_0x9fb5ee;for(var _0x474a5d=[],_0x418685=0x0,_0x54863f=0x0;_0x54863f<_0xeed012;_0x54863f++)if(_0x54863f%0x4){var _0x1841a9=_0xd027c9[_0x5e660f[_0x565a98(0x501)](_0x54863f-0x1)]<<_0x54863f%0x4*0x2,_0x4b6f99=_0xd027c9[_0x5e660f[_0x565a98(0x501)](_0x54863f)]>>>0x6-_0x54863f%0x4*0x2,_0x150de2=_0x1841a9|_0x4b6f99;_0x474a5d[_0x418685>>>0x2]|=_0x150de2<<0x18-_0x418685%0x4*0x8,_0x418685++;}return _0x48f066['create'](_0x474a5d,_0x418685);}}()),_0x1fd3d5[_0xce26b(0x551)][_0xce26b(0x5d6)];}));}(lt)),lt['exports'];}var ht={'exports':{}},Gt;function ar(){const _0x30885b=_0x3b224c;return Gt||(Gt=0x1,function(_0x3372c9,_0x3fc529){(function(_0x228dea,_0xcfb842){const _0xbdf203=_0x1276;_0x3372c9[_0xbdf203(0x2fc)]=_0xcfb842(oe());}(X,function(_0x1fcbc1){const _0x338fe2=_0x1276;return function(_0x3e7cfa){const _0x599b2a=_0x1276;var _0x5295c5=_0x1fcbc1,_0x34f142=_0x5295c5[_0x599b2a(0x5af)],_0x22c1ff=_0x34f142[_0x599b2a(0x1e5)],_0x3f2a40=_0x34f142[_0x599b2a(0x442)],_0x4dd83f=_0x5295c5[_0x599b2a(0x4da)],_0x574020=[];(function(){const _0x5d2bca=_0x599b2a;for(var _0x12d8f2=0x0;_0x12d8f2<0x40;_0x12d8f2++)_0x574020[_0x12d8f2]=_0x3e7cfa['abs'](_0x3e7cfa[_0x5d2bca(0x39f)](_0x12d8f2+0x1))*0x100000000|0x0;}());var _0x403c3d=_0x4dd83f[_0x599b2a(0x258)]=_0x3f2a40[_0x599b2a(0x24d)]({'_doReset':function(){const _0x2f90ba=_0x599b2a;this[_0x2f90ba(0x400)]=new _0x22c1ff[(_0x2f90ba(0x20b))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x1edfe1,_0x242a58){const _0x2a1d4f=_0x599b2a;for(var _0x110451=0x0;_0x110451<0x10;_0x110451++){var _0x3f7bf1=_0x242a58+_0x110451,_0x3746cd=_0x1edfe1[_0x3f7bf1];_0x1edfe1[_0x3f7bf1]=(_0x3746cd<<0x8|_0x3746cd>>>0x18)&0xff00ff|(_0x3746cd<<0x18|_0x3746cd>>>0x8)&0xff00ff00;}var _0x126367=this[_0x2a1d4f(0x400)][_0x2a1d4f(0x222)],_0x4547d2=_0x1edfe1[_0x242a58+0x0],_0x169df6=_0x1edfe1[_0x242a58+0x1],_0x1a9624=_0x1edfe1[_0x242a58+0x2],_0x3d7e29=_0x1edfe1[_0x242a58+0x3],_0x2889db=_0x1edfe1[_0x242a58+0x4],_0x2581f8=_0x1edfe1[_0x242a58+0x5],_0x6f7953=_0x1edfe1[_0x242a58+0x6],_0x259d7e=_0x1edfe1[_0x242a58+0x7],_0x2b4246=_0x1edfe1[_0x242a58+0x8],_0x1ab447=_0x1edfe1[_0x242a58+0x9],_0x599c2b=_0x1edfe1[_0x242a58+0xa],_0x486f56=_0x1edfe1[_0x242a58+0xb],_0x40cc2b=_0x1edfe1[_0x242a58+0xc],_0x42497f=_0x1edfe1[_0x242a58+0xd],_0x338cd1=_0x1edfe1[_0x242a58+0xe],_0x50e671=_0x1edfe1[_0x242a58+0xf],_0x3799fd=_0x126367[0x0],_0x175102=_0x126367[0x1],_0x3d7232=_0x126367[0x2],_0x3c3a8d=_0x126367[0x3];_0x3799fd=_0x177c49(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x4547d2,0x7,_0x574020[0x0]),_0x3c3a8d=_0x177c49(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x169df6,0xc,_0x574020[0x1]),_0x3d7232=_0x177c49(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x1a9624,0x11,_0x574020[0x2]),_0x175102=_0x177c49(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x3d7e29,0x16,_0x574020[0x3]),_0x3799fd=_0x177c49(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2889db,0x7,_0x574020[0x4]),_0x3c3a8d=_0x177c49(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x2581f8,0xc,_0x574020[0x5]),_0x3d7232=_0x177c49(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x6f7953,0x11,_0x574020[0x6]),_0x175102=_0x177c49(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x259d7e,0x16,_0x574020[0x7]),_0x3799fd=_0x177c49(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2b4246,0x7,_0x574020[0x8]),_0x3c3a8d=_0x177c49(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x1ab447,0xc,_0x574020[0x9]),_0x3d7232=_0x177c49(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x599c2b,0x11,_0x574020[0xa]),_0x175102=_0x177c49(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x486f56,0x16,_0x574020[0xb]),_0x3799fd=_0x177c49(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x40cc2b,0x7,_0x574020[0xc]),_0x3c3a8d=_0x177c49(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x42497f,0xc,_0x574020[0xd]),_0x3d7232=_0x177c49(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x338cd1,0x11,_0x574020[0xe]),_0x175102=_0x177c49(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x50e671,0x16,_0x574020[0xf]),_0x3799fd=_0x15e947(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x169df6,0x5,_0x574020[0x10]),_0x3c3a8d=_0x15e947(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x6f7953,0x9,_0x574020[0x11]),_0x3d7232=_0x15e947(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x486f56,0xe,_0x574020[0x12]),_0x175102=_0x15e947(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x4547d2,0x14,_0x574020[0x13]),_0x3799fd=_0x15e947(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2581f8,0x5,_0x574020[0x14]),_0x3c3a8d=_0x15e947(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x599c2b,0x9,_0x574020[0x15]),_0x3d7232=_0x15e947(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x50e671,0xe,_0x574020[0x16]),_0x175102=_0x15e947(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x2889db,0x14,_0x574020[0x17]),_0x3799fd=_0x15e947(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x1ab447,0x5,_0x574020[0x18]),_0x3c3a8d=_0x15e947(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x338cd1,0x9,_0x574020[0x19]),_0x3d7232=_0x15e947(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7e29,0xe,_0x574020[0x1a]),_0x175102=_0x15e947(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x2b4246,0x14,_0x574020[0x1b]),_0x3799fd=_0x15e947(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x42497f,0x5,_0x574020[0x1c]),_0x3c3a8d=_0x15e947(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x1a9624,0x9,_0x574020[0x1d]),_0x3d7232=_0x15e947(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x259d7e,0xe,_0x574020[0x1e]),_0x175102=_0x15e947(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x40cc2b,0x14,_0x574020[0x1f]),_0x3799fd=_0x56ae57(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2581f8,0x4,_0x574020[0x20]),_0x3c3a8d=_0x56ae57(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x2b4246,0xb,_0x574020[0x21]),_0x3d7232=_0x56ae57(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x486f56,0x10,_0x574020[0x22]),_0x175102=_0x56ae57(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x338cd1,0x17,_0x574020[0x23]),_0x3799fd=_0x56ae57(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x169df6,0x4,_0x574020[0x24]),_0x3c3a8d=_0x56ae57(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x2889db,0xb,_0x574020[0x25]),_0x3d7232=_0x56ae57(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x259d7e,0x10,_0x574020[0x26]),_0x175102=_0x56ae57(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x599c2b,0x17,_0x574020[0x27]),_0x3799fd=_0x56ae57(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x42497f,0x4,_0x574020[0x28]),_0x3c3a8d=_0x56ae57(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x4547d2,0xb,_0x574020[0x29]),_0x3d7232=_0x56ae57(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7e29,0x10,_0x574020[0x2a]),_0x175102=_0x56ae57(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x6f7953,0x17,_0x574020[0x2b]),_0x3799fd=_0x56ae57(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x1ab447,0x4,_0x574020[0x2c]),_0x3c3a8d=_0x56ae57(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x40cc2b,0xb,_0x574020[0x2d]),_0x3d7232=_0x56ae57(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x50e671,0x10,_0x574020[0x2e]),_0x175102=_0x56ae57(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x1a9624,0x17,_0x574020[0x2f]),_0x3799fd=_0x358f1e(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x4547d2,0x6,_0x574020[0x30]),_0x3c3a8d=_0x358f1e(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x259d7e,0xa,_0x574020[0x31]),_0x3d7232=_0x358f1e(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x338cd1,0xf,_0x574020[0x32]),_0x175102=_0x358f1e(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x2581f8,0x15,_0x574020[0x33]),_0x3799fd=_0x358f1e(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x40cc2b,0x6,_0x574020[0x34]),_0x3c3a8d=_0x358f1e(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x3d7e29,0xa,_0x574020[0x35]),_0x3d7232=_0x358f1e(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x599c2b,0xf,_0x574020[0x36]),_0x175102=_0x358f1e(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x169df6,0x15,_0x574020[0x37]),_0x3799fd=_0x358f1e(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2b4246,0x6,_0x574020[0x38]),_0x3c3a8d=_0x358f1e(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x50e671,0xa,_0x574020[0x39]),_0x3d7232=_0x358f1e(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x6f7953,0xf,_0x574020[0x3a]),_0x175102=_0x358f1e(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x42497f,0x15,_0x574020[0x3b]),_0x3799fd=_0x358f1e(_0x3799fd,_0x175102,_0x3d7232,_0x3c3a8d,_0x2889db,0x6,_0x574020[0x3c]),_0x3c3a8d=_0x358f1e(_0x3c3a8d,_0x3799fd,_0x175102,_0x3d7232,_0x486f56,0xa,_0x574020[0x3d]),_0x3d7232=_0x358f1e(_0x3d7232,_0x3c3a8d,_0x3799fd,_0x175102,_0x1a9624,0xf,_0x574020[0x3e]),_0x175102=_0x358f1e(_0x175102,_0x3d7232,_0x3c3a8d,_0x3799fd,_0x1ab447,0x15,_0x574020[0x3f]),_0x126367[0x0]=_0x126367[0x0]+_0x3799fd|0x0,_0x126367[0x1]=_0x126367[0x1]+_0x175102|0x0,_0x126367[0x2]=_0x126367[0x2]+_0x3d7232|0x0,_0x126367[0x3]=_0x126367[0x3]+_0x3c3a8d|0x0;},'_doFinalize':function(){const _0x4f2d58=_0x599b2a;var _0x36fec4=this[_0x4f2d58(0x3b7)],_0x3ea60d=_0x36fec4['words'],_0x47c148=this['_nDataBytes']*0x8,_0x313e0e=_0x36fec4[_0x4f2d58(0x25c)]*0x8;_0x3ea60d[_0x313e0e>>>0x5]|=0x80<<0x18-_0x313e0e%0x20;var _0x49eea4=_0x3e7cfa[_0x4f2d58(0x318)](_0x47c148/0x100000000),_0x2949c1=_0x47c148;_0x3ea60d[(_0x313e0e+0x40>>>0x9<<0x4)+0xf]=(_0x49eea4<<0x8|_0x49eea4>>>0x18)&0xff00ff|(_0x49eea4<<0x18|_0x49eea4>>>0x8)&0xff00ff00,_0x3ea60d[(_0x313e0e+0x40>>>0x9<<0x4)+0xe]=(_0x2949c1<<0x8|_0x2949c1>>>0x18)&0xff00ff|(_0x2949c1<<0x18|_0x2949c1>>>0x8)&0xff00ff00,_0x36fec4[_0x4f2d58(0x25c)]=(_0x3ea60d['length']+0x1)*0x4,this[_0x4f2d58(0x3a9)]();for(var _0x5e108d=this[_0x4f2d58(0x400)],_0x21eeb7=_0x5e108d[_0x4f2d58(0x222)],_0x3d5c55=0x0;_0x3d5c55<0x4;_0x3d5c55++){var _0x419bf2=_0x21eeb7[_0x3d5c55];_0x21eeb7[_0x3d5c55]=(_0x419bf2<<0x8|_0x419bf2>>>0x18)&0xff00ff|(_0x419bf2<<0x18|_0x419bf2>>>0x8)&0xff00ff00;}return _0x5e108d;},'clone':function(){const _0x4d3b0c=_0x599b2a;var _0x1873c5=_0x3f2a40[_0x4d3b0c(0x17c)][_0x4d3b0c(0x537)](this);return _0x1873c5[_0x4d3b0c(0x400)]=this[_0x4d3b0c(0x400)]['clone'](),_0x1873c5;}});function _0x177c49(_0x89d451,_0x210c1f,_0x427d94,_0x5f1816,_0x5316a0,_0xa46e7d,_0x1cf49b){var _0x47a7a2=_0x89d451+(_0x210c1f&_0x427d94|~_0x210c1f&_0x5f1816)+_0x5316a0+_0x1cf49b;return(_0x47a7a2<<_0xa46e7d|_0x47a7a2>>>0x20-_0xa46e7d)+_0x210c1f;}function _0x15e947(_0x38dac3,_0x4ebcf0,_0x4064aa,_0x39b1aa,_0xa92756,_0xa4446b,_0x15d9b3){var _0x2fd971=_0x38dac3+(_0x4ebcf0&_0x39b1aa|_0x4064aa&~_0x39b1aa)+_0xa92756+_0x15d9b3;return(_0x2fd971<<_0xa4446b|_0x2fd971>>>0x20-_0xa4446b)+_0x4ebcf0;}function _0x56ae57(_0xc51211,_0x1ab8a6,_0x3f4b69,_0x425ed3,_0x1e8f82,_0x315f81,_0x49c4a2){var _0x8cdba9=_0xc51211+(_0x1ab8a6^_0x3f4b69^_0x425ed3)+_0x1e8f82+_0x49c4a2;return(_0x8cdba9<<_0x315f81|_0x8cdba9>>>0x20-_0x315f81)+_0x1ab8a6;}function _0x358f1e(_0x1121eb,_0x46c588,_0x5a609d,_0x90d2c1,_0x401719,_0x166fa4,_0x106819){var _0x4e46f2=_0x1121eb+(_0x5a609d^(_0x46c588|~_0x90d2c1))+_0x401719+_0x106819;return(_0x4e46f2<<_0x166fa4|_0x4e46f2>>>0x20-_0x166fa4)+_0x46c588;}_0x5295c5['MD5']=_0x3f2a40[_0x599b2a(0x14b)](_0x403c3d),_0x5295c5[_0x599b2a(0x2b5)]=_0x3f2a40[_0x599b2a(0x218)](_0x403c3d);}(Math),_0x1fcbc1[_0x338fe2(0x258)];}));}(ht)),ht[_0x30885b(0x2fc)];}var _t={'exports':{}},ut={'exports':{}},Yt;function cr(){const _0x178d93=_0x3b224c;return Yt||(Yt=0x1,function(_0x1133bf,_0xd70c45){(function(_0x4d59de,_0x441523){const _0x26b66e=_0x1276;_0x1133bf[_0x26b66e(0x2fc)]=_0x441523(oe());}(X,function(_0x2cb8ba){return(function(){const _0x2f0ff4=_0x1276;var _0x37c1d9=_0x2cb8ba,_0x3b8a9d=_0x37c1d9[_0x2f0ff4(0x5af)],_0x121320=_0x3b8a9d[_0x2f0ff4(0x1e5)],_0x2e1f27=_0x3b8a9d[_0x2f0ff4(0x442)],_0x39b8b0=_0x37c1d9['algo'],_0x460b1c=[],_0x3a050f=_0x39b8b0['SHA1']=_0x2e1f27[_0x2f0ff4(0x24d)]({'_doReset':function(){const _0x720412=_0x2f0ff4;this[_0x720412(0x400)]=new _0x121320['init']([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x49fc71,_0x8eea63){const _0x33bd39=_0x2f0ff4;for(var _0x1e1824=this[_0x33bd39(0x400)][_0x33bd39(0x222)],_0x18498b=_0x1e1824[0x0],_0x1441b5=_0x1e1824[0x1],_0x4d13ae=_0x1e1824[0x2],_0x3f53a9=_0x1e1824[0x3],_0x3b117d=_0x1e1824[0x4],_0x4ec282=0x0;_0x4ec282<0x50;_0x4ec282++){if(_0x4ec282<0x10)_0x460b1c[_0x4ec282]=_0x49fc71[_0x8eea63+_0x4ec282]|0x0;else{var _0x5207d6=_0x460b1c[_0x4ec282-0x3]^_0x460b1c[_0x4ec282-0x8]^_0x460b1c[_0x4ec282-0xe]^_0x460b1c[_0x4ec282-0x10];_0x460b1c[_0x4ec282]=_0x5207d6<<0x1|_0x5207d6>>>0x1f;}var _0x195240=(_0x18498b<<0x5|_0x18498b>>>0x1b)+_0x3b117d+_0x460b1c[_0x4ec282];_0x4ec282<0x14?_0x195240+=(_0x1441b5&_0x4d13ae|~_0x1441b5&_0x3f53a9)+0x5a827999:_0x4ec282<0x28?_0x195240+=(_0x1441b5^_0x4d13ae^_0x3f53a9)+0x6ed9eba1:_0x4ec282<0x3c?_0x195240+=(_0x1441b5&_0x4d13ae|_0x1441b5&_0x3f53a9|_0x4d13ae&_0x3f53a9)-0x70e44324:_0x195240+=(_0x1441b5^_0x4d13ae^_0x3f53a9)-0x359d3e2a,_0x3b117d=_0x3f53a9,_0x3f53a9=_0x4d13ae,_0x4d13ae=_0x1441b5<<0x1e|_0x1441b5>>>0x2,_0x1441b5=_0x18498b,_0x18498b=_0x195240;}_0x1e1824[0x0]=_0x1e1824[0x0]+_0x18498b|0x0,_0x1e1824[0x1]=_0x1e1824[0x1]+_0x1441b5|0x0,_0x1e1824[0x2]=_0x1e1824[0x2]+_0x4d13ae|0x0,_0x1e1824[0x3]=_0x1e1824[0x3]+_0x3f53a9|0x0,_0x1e1824[0x4]=_0x1e1824[0x4]+_0x3b117d|0x0;},'_doFinalize':function(){const _0x319d8d=_0x2f0ff4;var _0x59945d=this['_data'],_0x4527ac=_0x59945d[_0x319d8d(0x222)],_0x4670cc=this[_0x319d8d(0x51c)]*0x8,_0x3cae30=_0x59945d[_0x319d8d(0x25c)]*0x8;return _0x4527ac[_0x3cae30>>>0x5]|=0x80<<0x18-_0x3cae30%0x20,_0x4527ac[(_0x3cae30+0x40>>>0x9<<0x4)+0xe]=Math[_0x319d8d(0x318)](_0x4670cc/0x100000000),_0x4527ac[(_0x3cae30+0x40>>>0x9<<0x4)+0xf]=_0x4670cc,_0x59945d[_0x319d8d(0x25c)]=_0x4527ac['length']*0x4,this[_0x319d8d(0x3a9)](),this[_0x319d8d(0x400)];},'clone':function(){const _0x3f67d8=_0x2f0ff4;var _0x1da5fd=_0x2e1f27[_0x3f67d8(0x17c)]['call'](this);return _0x1da5fd[_0x3f67d8(0x400)]=this['_hash'][_0x3f67d8(0x17c)](),_0x1da5fd;}});_0x37c1d9[_0x2f0ff4(0x359)]=_0x2e1f27['_createHelper'](_0x3a050f),_0x37c1d9[_0x2f0ff4(0x1b0)]=_0x2e1f27[_0x2f0ff4(0x218)](_0x3a050f);}()),_0x2cb8ba['SHA1'];}));}(ut)),ut[_0x178d93(0x2fc)];}var dt={'exports':{}},Kt;function lr(){return Kt||(Kt=0x1,function(_0x2a1ab0,_0x2ff5b4){(function(_0x54e0ac,_0x55eab7){const _0x209745=_0x1276;_0x2a1ab0[_0x209745(0x2fc)]=_0x55eab7(oe());}(X,function(_0xbc301c){(function(){const _0x318c7c=_0x1276;var _0x56d660=_0xbc301c,_0x403665=_0x56d660[_0x318c7c(0x5af)],_0x45b131=_0x403665[_0x318c7c(0x1d9)],_0xacf10b=_0x56d660[_0x318c7c(0x551)],_0x14b5ca=_0xacf10b[_0x318c7c(0x4dc)],_0x2f2cb5=_0x56d660[_0x318c7c(0x4da)];_0x2f2cb5[_0x318c7c(0x1ae)]=_0x45b131[_0x318c7c(0x24d)]({'init':function(_0x103975,_0x55c3ed){const _0x44c3c8=_0x318c7c;_0x103975=this[_0x44c3c8(0x514)]=new _0x103975[(_0x44c3c8(0x20b))](),typeof _0x55c3ed=='string'&&(_0x55c3ed=_0x14b5ca[_0x44c3c8(0x3d3)](_0x55c3ed));var _0x216c65=_0x103975['blockSize'],_0x20fc48=_0x216c65*0x4;_0x55c3ed[_0x44c3c8(0x25c)]>_0x20fc48&&(_0x55c3ed=_0x103975[_0x44c3c8(0x1ef)](_0x55c3ed)),_0x55c3ed['clamp']();for(var _0x11b64c=this[_0x44c3c8(0x4db)]=_0x55c3ed[_0x44c3c8(0x17c)](),_0x5a25ac=this[_0x44c3c8(0x165)]=_0x55c3ed[_0x44c3c8(0x17c)](),_0x25ac9b=_0x11b64c[_0x44c3c8(0x222)],_0x3a3da0=_0x5a25ac[_0x44c3c8(0x222)],_0x4acc2d=0x0;_0x4acc2d<_0x216c65;_0x4acc2d++)_0x25ac9b[_0x4acc2d]^=0x5c5c5c5c,_0x3a3da0[_0x4acc2d]^=0x36363636;_0x11b64c[_0x44c3c8(0x25c)]=_0x5a25ac['sigBytes']=_0x20fc48,this['reset']();},'reset':function(){const _0xe768e3=_0x318c7c;var _0x1e7eec=this[_0xe768e3(0x514)];_0x1e7eec[_0xe768e3(0x1ec)](),_0x1e7eec[_0xe768e3(0x367)](this[_0xe768e3(0x165)]);},'update':function(_0x177188){const _0x14caf3=_0x318c7c;return this[_0x14caf3(0x514)][_0x14caf3(0x367)](_0x177188),this;},'finalize':function(_0xe932c3){const _0x305c2f=_0x318c7c;var _0x124d60=this['_hasher'],_0x5c8108=_0x124d60['finalize'](_0xe932c3);_0x124d60[_0x305c2f(0x1ec)]();var _0x4c06e8=_0x124d60[_0x305c2f(0x1ef)](this[_0x305c2f(0x4db)][_0x305c2f(0x17c)]()[_0x305c2f(0x198)](_0x5c8108));return _0x4c06e8;}});}());}));}(dt)),dt['exports'];}var qt;function Dn(){const _0x361a45=_0x3b224c;return qt||(qt=0x1,function(_0x3e0aec,_0x4b3559){(function(_0x4f6965,_0x2845d0,_0x20e763){const _0x174746=_0x1276;_0x3e0aec[_0x174746(0x2fc)]=_0x2845d0(oe(),cr(),lr());}(X,function(_0x15adf7){return(function(){const _0x2cae4b=_0x1276;var _0x4e64be=_0x15adf7,_0x33e586=_0x4e64be[_0x2cae4b(0x5af)],_0x505c36=_0x33e586[_0x2cae4b(0x1d9)],_0x42fcf0=_0x33e586[_0x2cae4b(0x1e5)],_0x249d4d=_0x4e64be[_0x2cae4b(0x4da)],_0x348d16=_0x249d4d[_0x2cae4b(0x258)],_0x21bdf5=_0x249d4d[_0x2cae4b(0x225)]=_0x505c36['extend']({'cfg':_0x505c36['extend']({'keySize':0x80/0x20,'hasher':_0x348d16,'iterations':0x1}),'init':function(_0x560e6e){const _0x52749b=_0x2cae4b;this['cfg']=this[_0x52749b(0x472)][_0x52749b(0x24d)](_0x560e6e);},'compute':function(_0xfb0c80,_0x450927){const _0x3c7824=_0x2cae4b;for(var _0x9f7286,_0x266842=this[_0x3c7824(0x472)],_0xab830b=_0x266842[_0x3c7824(0x2d6)][_0x3c7824(0x4ec)](),_0x36f9b7=_0x42fcf0['create'](),_0x1cfd3d=_0x36f9b7['words'],_0x37311c=_0x266842['keySize'],_0x3e2460=_0x266842[_0x3c7824(0x4bc)];_0x1cfd3d[_0x3c7824(0x2a8)]<_0x37311c;){_0x9f7286&&_0xab830b[_0x3c7824(0x367)](_0x9f7286),_0x9f7286=_0xab830b[_0x3c7824(0x367)](_0xfb0c80)['finalize'](_0x450927),_0xab830b[_0x3c7824(0x1ec)]();for(var _0x42fbf3=0x1;_0x42fbf3<_0x3e2460;_0x42fbf3++)_0x9f7286=_0xab830b[_0x3c7824(0x1ef)](_0x9f7286),_0xab830b[_0x3c7824(0x1ec)]();_0x36f9b7['concat'](_0x9f7286);}return _0x36f9b7[_0x3c7824(0x25c)]=_0x37311c*0x4,_0x36f9b7;}});_0x4e64be[_0x2cae4b(0x225)]=function(_0x254295,_0x5cd5c1,_0x1c826b){const _0x37df6a=_0x2cae4b;return _0x21bdf5[_0x37df6a(0x4ec)](_0x1c826b)[_0x37df6a(0x370)](_0x254295,_0x5cd5c1);};}()),_0x15adf7['EvpKDF'];}));}(_t)),_t[_0x361a45(0x2fc)];}var ft={'exports':{}},zt;function wn(){const _0x512be0=_0x3b224c;return zt||(zt=0x1,function(_0xfa2a50,_0x1cd93e){(function(_0x1b8f80,_0x3dfc1c,_0x2f3718){const _0x1d1a58=_0x1276;_0xfa2a50[_0x1d1a58(0x2fc)]=_0x3dfc1c(oe(),Dn());}(X,function(_0x2c3b43){const _0x161650=_0x1276;_0x2c3b43['lib'][_0x161650(0x188)]||function(_0x893039){const _0x484ecb=_0x161650;var _0x53b839=_0x2c3b43,_0x531d1b=_0x53b839['lib'],_0x28ed6f=_0x531d1b['Base'],_0x4fb6b7=_0x531d1b[_0x484ecb(0x1e5)],_0x10851b=_0x531d1b['BufferedBlockAlgorithm'],_0x4117d3=_0x53b839[_0x484ecb(0x551)];_0x4117d3['Utf8'];var _0x3d5bda=_0x4117d3[_0x484ecb(0x5d6)],_0x538178=_0x53b839['algo'],_0x63767=_0x538178[_0x484ecb(0x225)],_0x2aa357=_0x531d1b[_0x484ecb(0x188)]=_0x10851b[_0x484ecb(0x24d)]({'cfg':_0x28ed6f[_0x484ecb(0x24d)](),'createEncryptor':function(_0xb1e405,_0x2ad383){const _0x1eae12=_0x484ecb;return this[_0x1eae12(0x4ec)](this[_0x1eae12(0x449)],_0xb1e405,_0x2ad383);},'createDecryptor':function(_0x102ecf,_0x24d547){const _0x5782ed=_0x484ecb;return this[_0x5782ed(0x4ec)](this[_0x5782ed(0x219)],_0x102ecf,_0x24d547);},'init':function(_0x408e48,_0x16bf6f,_0x287dc1){const _0x178f21=_0x484ecb;this['cfg']=this['cfg']['extend'](_0x287dc1),this[_0x178f21(0x190)]=_0x408e48,this[_0x178f21(0x58c)]=_0x16bf6f,this[_0x178f21(0x1ec)]();},'reset':function(){const _0x5b8701=_0x484ecb;_0x10851b[_0x5b8701(0x1ec)]['call'](this),this['_doReset']();},'process':function(_0x278b87){const _0x34137f=_0x484ecb;return this[_0x34137f(0x212)](_0x278b87),this[_0x34137f(0x3a9)]();},'finalize':function(_0x396aa4){const _0x11e4ab=_0x484ecb;_0x396aa4&&this[_0x11e4ab(0x212)](_0x396aa4);var _0x324f4b=this['_doFinalize']();return _0x324f4b;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x1db2bb(_0x35bdb3){const _0x55b72f=_0x1276;return typeof _0x35bdb3==_0x55b72f(0x404)?_0x1a90b6:_0x4e04ee;}return function(_0x15fa35){return{'encrypt':function(_0x447db4,_0x4c4b26,_0x5b5ab2){const _0x136dc5=_0x1276;return _0x1db2bb(_0x4c4b26)[_0x136dc5(0x42f)](_0x15fa35,_0x447db4,_0x4c4b26,_0x5b5ab2);},'decrypt':function(_0x4d5879,_0x3af09e,_0x269176){const _0x52e580=_0x1276;return _0x1db2bb(_0x3af09e)[_0x52e580(0x520)](_0x15fa35,_0x4d5879,_0x3af09e,_0x269176);}};};}())});_0x531d1b[_0x484ecb(0x41d)]=_0x2aa357['extend']({'_doFinalize':function(){const _0x1ba00c=_0x484ecb;var _0x40324e=this[_0x1ba00c(0x3a9)](!0x0);return _0x40324e;},'blockSize':0x1});var _0x137a7d=_0x53b839[_0x484ecb(0x253)]={},_0x587c49=_0x531d1b[_0x484ecb(0x48b)]=_0x28ed6f['extend']({'createEncryptor':function(_0x5e6f09,_0x305d6e){const _0x145870=_0x484ecb;return this[_0x145870(0x32d)][_0x145870(0x4ec)](_0x5e6f09,_0x305d6e);},'createDecryptor':function(_0x3d268b,_0x573ba6){const _0x11d078=_0x484ecb;return this[_0x11d078(0x563)][_0x11d078(0x4ec)](_0x3d268b,_0x573ba6);},'init':function(_0x3fe120,_0x22c26c){const _0x5c75f9=_0x484ecb;this['_cipher']=_0x3fe120,this[_0x5c75f9(0x46d)]=_0x22c26c;}}),_0x3e57e5=_0x137a7d['CBC']=(function(){const _0x1811b9=_0x484ecb;var _0x4e613c=_0x587c49[_0x1811b9(0x24d)]();_0x4e613c['Encryptor']=_0x4e613c['extend']({'processBlock':function(_0x53cd45,_0x56b6d1){const _0x1f9045=_0x1811b9;var _0x5a9879=this['_cipher'],_0x46823e=_0x5a9879['blockSize'];_0x51a426[_0x1f9045(0x537)](this,_0x53cd45,_0x56b6d1,_0x46823e),_0x5a9879[_0x1f9045(0x4e9)](_0x53cd45,_0x56b6d1),this[_0x1f9045(0x5e1)]=_0x53cd45['slice'](_0x56b6d1,_0x56b6d1+_0x46823e);}}),_0x4e613c[_0x1811b9(0x563)]=_0x4e613c[_0x1811b9(0x24d)]({'processBlock':function(_0x14872a,_0x276025){const _0x4cdd50=_0x1811b9;var _0x319580=this[_0x4cdd50(0x436)],_0x39d801=_0x319580[_0x4cdd50(0x533)],_0x14a8fd=_0x14872a[_0x4cdd50(0x304)](_0x276025,_0x276025+_0x39d801);_0x319580[_0x4cdd50(0x316)](_0x14872a,_0x276025),_0x51a426['call'](this,_0x14872a,_0x276025,_0x39d801),this[_0x4cdd50(0x5e1)]=_0x14a8fd;}});function _0x51a426(_0x316390,_0x5c67a3,_0x4f7dc4){const _0x56ad5d=_0x1811b9;var _0x4a4368,_0x3d3606=this[_0x56ad5d(0x46d)];_0x3d3606?(_0x4a4368=_0x3d3606,this[_0x56ad5d(0x46d)]=_0x893039):_0x4a4368=this[_0x56ad5d(0x5e1)];for(var _0x43d4f9=0x0;_0x43d4f9<_0x4f7dc4;_0x43d4f9++)_0x316390[_0x5c67a3+_0x43d4f9]^=_0x4a4368[_0x43d4f9];}return _0x4e613c;}()),_0x9786c0=_0x53b839['pad']={},_0x33a805=_0x9786c0['Pkcs7']={'pad':function(_0x277e45,_0x5a7128){const _0xc0b31e=_0x484ecb;for(var _0x24d5cc=_0x5a7128*0x4,_0x374641=_0x24d5cc-_0x277e45[_0xc0b31e(0x25c)]%_0x24d5cc,_0x1e0351=_0x374641<<0x18|_0x374641<<0x10|_0x374641<<0x8|_0x374641,_0x290e8a=[],_0xc3f7f1=0x0;_0xc3f7f1<_0x374641;_0xc3f7f1+=0x4)_0x290e8a[_0xc0b31e(0x1a8)](_0x1e0351);var _0x128535=_0x4fb6b7[_0xc0b31e(0x4ec)](_0x290e8a,_0x374641);_0x277e45[_0xc0b31e(0x198)](_0x128535);},'unpad':function(_0x50575d){const _0x42ffad=_0x484ecb;var _0x22dd1b=_0x50575d[_0x42ffad(0x222)][_0x50575d[_0x42ffad(0x25c)]-0x1>>>0x2]&0xff;_0x50575d[_0x42ffad(0x25c)]-=_0x22dd1b;}};_0x531d1b[_0x484ecb(0x159)]=_0x2aa357['extend']({'cfg':_0x2aa357[_0x484ecb(0x472)][_0x484ecb(0x24d)]({'mode':_0x3e57e5,'padding':_0x33a805}),'reset':function(){const _0x95f090=_0x484ecb;var _0x1546b;_0x2aa357[_0x95f090(0x1ec)][_0x95f090(0x537)](this);var _0x34b913=this['cfg'],_0x433cb1=_0x34b913['iv'],_0x4131f6=_0x34b913[_0x95f090(0x253)];this[_0x95f090(0x190)]==this[_0x95f090(0x449)]?_0x1546b=_0x4131f6['createEncryptor']:(_0x1546b=_0x4131f6[_0x95f090(0x226)],this[_0x95f090(0x46c)]=0x1),this['_mode']&&this[_0x95f090(0x28a)]['__creator']==_0x1546b?this['_mode'][_0x95f090(0x20b)](this,_0x433cb1&&_0x433cb1[_0x95f090(0x222)]):(this['_mode']=_0x1546b[_0x95f090(0x537)](_0x4131f6,this,_0x433cb1&&_0x433cb1['words']),this['_mode'][_0x95f090(0x586)]=_0x1546b);},'_doProcessBlock':function(_0x194ac8,_0x134c90){const _0x3d6f60=_0x484ecb;this[_0x3d6f60(0x28a)][_0x3d6f60(0x5a8)](_0x194ac8,_0x134c90);},'_doFinalize':function(){const _0x1a235a=_0x484ecb;var _0x3e1815,_0xafc31d=this[_0x1a235a(0x472)][_0x1a235a(0x195)];return this[_0x1a235a(0x190)]==this[_0x1a235a(0x449)]?(_0xafc31d[_0x1a235a(0x5d1)](this[_0x1a235a(0x3b7)],this[_0x1a235a(0x533)]),_0x3e1815=this[_0x1a235a(0x3a9)](!0x0)):(_0x3e1815=this[_0x1a235a(0x3a9)](!0x0),_0xafc31d[_0x1a235a(0x310)](_0x3e1815)),_0x3e1815;},'blockSize':0x80/0x20});var _0x594195=_0x531d1b[_0x484ecb(0x42e)]=_0x28ed6f['extend']({'init':function(_0x24f478){const _0xcaac72=_0x484ecb;this[_0xcaac72(0x315)](_0x24f478);},'toString':function(_0x3c50e6){const _0x52fe97=_0x484ecb;return(_0x3c50e6||this['formatter'])[_0x52fe97(0x52a)](this);}}),_0x37650c=_0x53b839[_0x484ecb(0x271)]={},_0x1d4a0d=_0x37650c[_0x484ecb(0x2d3)]={'stringify':function(_0x198e8e){const _0x3a2767=_0x484ecb;var _0x170223,_0x52d28c=_0x198e8e[_0x3a2767(0x1e2)],_0x3943af=_0x198e8e['salt'];return _0x3943af?_0x170223=_0x4fb6b7['create']([0x53616c74,0x65645f5f])[_0x3a2767(0x198)](_0x3943af)[_0x3a2767(0x198)](_0x52d28c):_0x170223=_0x52d28c,_0x170223[_0x3a2767(0x4cf)](_0x3d5bda);},'parse':function(_0x571311){const _0x57a775=_0x484ecb;var _0x491c3c,_0x18ea57=_0x3d5bda[_0x57a775(0x3d3)](_0x571311),_0x52823b=_0x18ea57[_0x57a775(0x222)];return _0x52823b[0x0]==0x53616c74&&_0x52823b[0x1]==0x65645f5f&&(_0x491c3c=_0x4fb6b7['create'](_0x52823b[_0x57a775(0x304)](0x2,0x4)),_0x52823b[_0x57a775(0x45c)](0x0,0x4),_0x18ea57[_0x57a775(0x25c)]-=0x10),_0x594195[_0x57a775(0x4ec)]({'ciphertext':_0x18ea57,'salt':_0x491c3c});}},_0x4e04ee=_0x531d1b[_0x484ecb(0x2c2)]=_0x28ed6f[_0x484ecb(0x24d)]({'cfg':_0x28ed6f[_0x484ecb(0x24d)]({'format':_0x1d4a0d}),'encrypt':function(_0x1f4236,_0x161455,_0x15250a,_0x3796d5){const _0x55751d=_0x484ecb;_0x3796d5=this[_0x55751d(0x472)]['extend'](_0x3796d5);var _0x4e2fb5=_0x1f4236[_0x55751d(0x5bc)](_0x15250a,_0x3796d5),_0x5e73a1=_0x4e2fb5[_0x55751d(0x1ef)](_0x161455),_0x207e6b=_0x4e2fb5['cfg'];return _0x594195['create']({'ciphertext':_0x5e73a1,'key':_0x15250a,'iv':_0x207e6b['iv'],'algorithm':_0x1f4236,'mode':_0x207e6b[_0x55751d(0x253)],'padding':_0x207e6b[_0x55751d(0x195)],'blockSize':_0x1f4236[_0x55751d(0x533)],'formatter':_0x3796d5['format']});},'decrypt':function(_0x42a482,_0x4de9ed,_0x511e82,_0x1adac4){const _0x125c89=_0x484ecb;_0x1adac4=this[_0x125c89(0x472)][_0x125c89(0x24d)](_0x1adac4),_0x4de9ed=this['_parse'](_0x4de9ed,_0x1adac4[_0x125c89(0x271)]);var _0x140f13=_0x42a482['createDecryptor'](_0x511e82,_0x1adac4)[_0x125c89(0x1ef)](_0x4de9ed['ciphertext']);return _0x140f13;},'_parse':function(_0x4f98d7,_0x561bc4){const _0x8e415c=_0x484ecb;return typeof _0x4f98d7==_0x8e415c(0x404)?_0x561bc4[_0x8e415c(0x3d3)](_0x4f98d7,this):_0x4f98d7;}}),_0x8f9d48=_0x53b839[_0x484ecb(0x43b)]={},_0x1418e1=_0x8f9d48[_0x484ecb(0x2d3)]={'execute':function(_0x4af9c7,_0x43c269,_0x398a7f,_0x2942f8,_0x357fe8){const _0x16119b=_0x484ecb;if(_0x2942f8||(_0x2942f8=_0x4fb6b7[_0x16119b(0x4cb)](0x40/0x8)),_0x357fe8)var _0x124c44=_0x63767['create']({'keySize':_0x43c269+_0x398a7f,'hasher':_0x357fe8})[_0x16119b(0x370)](_0x4af9c7,_0x2942f8);else var _0x124c44=_0x63767['create']({'keySize':_0x43c269+_0x398a7f})[_0x16119b(0x370)](_0x4af9c7,_0x2942f8);var _0x7ac0a8=_0x4fb6b7[_0x16119b(0x4ec)](_0x124c44[_0x16119b(0x222)]['slice'](_0x43c269),_0x398a7f*0x4);return _0x124c44['sigBytes']=_0x43c269*0x4,_0x594195[_0x16119b(0x4ec)]({'key':_0x124c44,'iv':_0x7ac0a8,'salt':_0x2942f8});}},_0x1a90b6=_0x531d1b[_0x484ecb(0x3b0)]=_0x4e04ee['extend']({'cfg':_0x4e04ee[_0x484ecb(0x472)][_0x484ecb(0x24d)]({'kdf':_0x1418e1}),'encrypt':function(_0x1f212b,_0x5955a7,_0x107272,_0xe8c142){const _0x3f2294=_0x484ecb;_0xe8c142=this[_0x3f2294(0x472)]['extend'](_0xe8c142);var _0xde8128=_0xe8c142[_0x3f2294(0x43b)][_0x3f2294(0x506)](_0x107272,_0x1f212b[_0x3f2294(0x4eb)],_0x1f212b[_0x3f2294(0x213)],_0xe8c142[_0x3f2294(0x15b)],_0xe8c142[_0x3f2294(0x2d6)]);_0xe8c142['iv']=_0xde8128['iv'];var _0x6a8be7=_0x4e04ee['encrypt'][_0x3f2294(0x537)](this,_0x1f212b,_0x5955a7,_0xde8128[_0x3f2294(0x217)],_0xe8c142);return _0x6a8be7['mixIn'](_0xde8128),_0x6a8be7;},'decrypt':function(_0x2c4700,_0x2a89e7,_0x295053,_0x348d88){const _0x347b18=_0x484ecb;_0x348d88=this['cfg'][_0x347b18(0x24d)](_0x348d88),_0x2a89e7=this['_parse'](_0x2a89e7,_0x348d88['format']);var _0x471524=_0x348d88[_0x347b18(0x43b)][_0x347b18(0x506)](_0x295053,_0x2c4700[_0x347b18(0x4eb)],_0x2c4700[_0x347b18(0x213)],_0x2a89e7[_0x347b18(0x15b)],_0x348d88[_0x347b18(0x2d6)]);_0x348d88['iv']=_0x471524['iv'];var _0x36a0c9=_0x4e04ee[_0x347b18(0x520)][_0x347b18(0x537)](this,_0x2c4700,_0x2a89e7,_0x471524[_0x347b18(0x217)],_0x348d88);return _0x36a0c9;}});}();}));}(ft)),ft[_0x512be0(0x2fc)];}(function(_0x4d9bf8,_0x57f3a0){(function(_0x35128e,_0x53d5b8,_0x396366){const _0x4922d=_0x1276;_0x4d9bf8[_0x4922d(0x2fc)]=_0x53d5b8(oe(),On(),ar(),Dn(),wn());}(X,function(_0x577be5){return(function(){const _0x22607a=_0x1276;var _0x538cc0=_0x577be5,_0xd40ee5=_0x538cc0[_0x22607a(0x5af)],_0xa78883=_0xd40ee5['BlockCipher'],_0x5462e5=_0x538cc0[_0x22607a(0x4da)],_0x1b6d98=[],_0x3542b4=[],_0x244c49=[],_0x4f98a4=[],_0x53dfe4=[],_0x1480d6=[],_0x4a3649=[],_0x4e3753=[],_0xe54d93=[],_0x47c4e0=[];(function(){for(var _0x294202=[],_0x373b8f=0x0;_0x373b8f<0x100;_0x373b8f++)_0x373b8f<0x80?_0x294202[_0x373b8f]=_0x373b8f<<0x1:_0x294202[_0x373b8f]=_0x373b8f<<0x1^0x11b;for(var _0x92ff65=0x0,_0xb60474=0x0,_0x373b8f=0x0;_0x373b8f<0x100;_0x373b8f++){var _0x18c156=_0xb60474^_0xb60474<<0x1^_0xb60474<<0x2^_0xb60474<<0x3^_0xb60474<<0x4;_0x18c156=_0x18c156>>>0x8^_0x18c156&0xff^0x63,_0x1b6d98[_0x92ff65]=_0x18c156,_0x3542b4[_0x18c156]=_0x92ff65;var _0x1d027a=_0x294202[_0x92ff65],_0x5361e5=_0x294202[_0x1d027a],_0x4eb7b1=_0x294202[_0x5361e5],_0x52e554=_0x294202[_0x18c156]*0x101^_0x18c156*0x1010100;_0x244c49[_0x92ff65]=_0x52e554<<0x18|_0x52e554>>>0x8,_0x4f98a4[_0x92ff65]=_0x52e554<<0x10|_0x52e554>>>0x10,_0x53dfe4[_0x92ff65]=_0x52e554<<0x8|_0x52e554>>>0x18,_0x1480d6[_0x92ff65]=_0x52e554;var _0x52e554=_0x4eb7b1*0x1010101^_0x5361e5*0x10001^_0x1d027a*0x101^_0x92ff65*0x1010100;_0x4a3649[_0x18c156]=_0x52e554<<0x18|_0x52e554>>>0x8,_0x4e3753[_0x18c156]=_0x52e554<<0x10|_0x52e554>>>0x10,_0xe54d93[_0x18c156]=_0x52e554<<0x8|_0x52e554>>>0x18,_0x47c4e0[_0x18c156]=_0x52e554,_0x92ff65?(_0x92ff65=_0x1d027a^_0x294202[_0x294202[_0x294202[_0x4eb7b1^_0x1d027a]]],_0xb60474^=_0x294202[_0x294202[_0xb60474]]):_0x92ff65=_0xb60474=0x1;}}());var _0x4764b0=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x241723=_0x5462e5[_0x22607a(0x408)]=_0xa78883[_0x22607a(0x24d)]({'_doReset':function(){const _0x40d77a=_0x22607a;var _0x23a674;if(!(this['_nRounds']&&this[_0x40d77a(0x3c5)]===this[_0x40d77a(0x58c)])){for(var _0x1c31ec=this[_0x40d77a(0x3c5)]=this[_0x40d77a(0x58c)],_0x93f636=_0x1c31ec[_0x40d77a(0x222)],_0x567ec4=_0x1c31ec['sigBytes']/0x4,_0x4f63f2=this['_nRounds']=_0x567ec4+0x6,_0x4d484b=(_0x4f63f2+0x1)*0x4,_0x123ce9=this[_0x40d77a(0x44d)]=[],_0x30cc4b=0x0;_0x30cc4b<_0x4d484b;_0x30cc4b++)_0x30cc4b<_0x567ec4?_0x123ce9[_0x30cc4b]=_0x93f636[_0x30cc4b]:(_0x23a674=_0x123ce9[_0x30cc4b-0x1],_0x30cc4b%_0x567ec4?_0x567ec4>0x6&&_0x30cc4b%_0x567ec4==0x4&&(_0x23a674=_0x1b6d98[_0x23a674>>>0x18]<<0x18|_0x1b6d98[_0x23a674>>>0x10&0xff]<<0x10|_0x1b6d98[_0x23a674>>>0x8&0xff]<<0x8|_0x1b6d98[_0x23a674&0xff]):(_0x23a674=_0x23a674<<0x8|_0x23a674>>>0x18,_0x23a674=_0x1b6d98[_0x23a674>>>0x18]<<0x18|_0x1b6d98[_0x23a674>>>0x10&0xff]<<0x10|_0x1b6d98[_0x23a674>>>0x8&0xff]<<0x8|_0x1b6d98[_0x23a674&0xff],_0x23a674^=_0x4764b0[_0x30cc4b/_0x567ec4|0x0]<<0x18),_0x123ce9[_0x30cc4b]=_0x123ce9[_0x30cc4b-_0x567ec4]^_0x23a674);for(var _0x44e183=this[_0x40d77a(0x23c)]=[],_0x3f6575=0x0;_0x3f6575<_0x4d484b;_0x3f6575++){var _0x30cc4b=_0x4d484b-_0x3f6575;if(_0x3f6575%0x4)var _0x23a674=_0x123ce9[_0x30cc4b];else var _0x23a674=_0x123ce9[_0x30cc4b-0x4];_0x3f6575<0x4||_0x30cc4b<=0x4?_0x44e183[_0x3f6575]=_0x23a674:_0x44e183[_0x3f6575]=_0x4a3649[_0x1b6d98[_0x23a674>>>0x18]]^_0x4e3753[_0x1b6d98[_0x23a674>>>0x10&0xff]]^_0xe54d93[_0x1b6d98[_0x23a674>>>0x8&0xff]]^_0x47c4e0[_0x1b6d98[_0x23a674&0xff]];}}},'encryptBlock':function(_0x4ae653,_0x53136e){const _0x150f0c=_0x22607a;this[_0x150f0c(0x32e)](_0x4ae653,_0x53136e,this[_0x150f0c(0x44d)],_0x244c49,_0x4f98a4,_0x53dfe4,_0x1480d6,_0x1b6d98);},'decryptBlock':function(_0x3910cb,_0x5711c1){var _0x408b57=_0x3910cb[_0x5711c1+0x1];_0x3910cb[_0x5711c1+0x1]=_0x3910cb[_0x5711c1+0x3],_0x3910cb[_0x5711c1+0x3]=_0x408b57,this['_doCryptBlock'](_0x3910cb,_0x5711c1,this['_invKeySchedule'],_0x4a3649,_0x4e3753,_0xe54d93,_0x47c4e0,_0x3542b4);var _0x408b57=_0x3910cb[_0x5711c1+0x1];_0x3910cb[_0x5711c1+0x1]=_0x3910cb[_0x5711c1+0x3],_0x3910cb[_0x5711c1+0x3]=_0x408b57;},'_doCryptBlock':function(_0x192160,_0x358d5b,_0x271c50,_0x2a7c1e,_0x26023b,_0x492163,_0x24f1e2,_0x2df0f7){for(var _0x9bf5ce=this['_nRounds'],_0x4d5afb=_0x192160[_0x358d5b]^_0x271c50[0x0],_0x1f8860=_0x192160[_0x358d5b+0x1]^_0x271c50[0x1],_0x2b4821=_0x192160[_0x358d5b+0x2]^_0x271c50[0x2],_0x2ef7f9=_0x192160[_0x358d5b+0x3]^_0x271c50[0x3],_0x46de56=0x4,_0x23cc54=0x1;_0x23cc54<_0x9bf5ce;_0x23cc54++){var _0x120f58=_0x2a7c1e[_0x4d5afb>>>0x18]^_0x26023b[_0x1f8860>>>0x10&0xff]^_0x492163[_0x2b4821>>>0x8&0xff]^_0x24f1e2[_0x2ef7f9&0xff]^_0x271c50[_0x46de56++],_0x3f7486=_0x2a7c1e[_0x1f8860>>>0x18]^_0x26023b[_0x2b4821>>>0x10&0xff]^_0x492163[_0x2ef7f9>>>0x8&0xff]^_0x24f1e2[_0x4d5afb&0xff]^_0x271c50[_0x46de56++],_0x49a566=_0x2a7c1e[_0x2b4821>>>0x18]^_0x26023b[_0x2ef7f9>>>0x10&0xff]^_0x492163[_0x4d5afb>>>0x8&0xff]^_0x24f1e2[_0x1f8860&0xff]^_0x271c50[_0x46de56++],_0x1a0a4b=_0x2a7c1e[_0x2ef7f9>>>0x18]^_0x26023b[_0x4d5afb>>>0x10&0xff]^_0x492163[_0x1f8860>>>0x8&0xff]^_0x24f1e2[_0x2b4821&0xff]^_0x271c50[_0x46de56++];_0x4d5afb=_0x120f58,_0x1f8860=_0x3f7486,_0x2b4821=_0x49a566,_0x2ef7f9=_0x1a0a4b;}var _0x120f58=(_0x2df0f7[_0x4d5afb>>>0x18]<<0x18|_0x2df0f7[_0x1f8860>>>0x10&0xff]<<0x10|_0x2df0f7[_0x2b4821>>>0x8&0xff]<<0x8|_0x2df0f7[_0x2ef7f9&0xff])^_0x271c50[_0x46de56++],_0x3f7486=(_0x2df0f7[_0x1f8860>>>0x18]<<0x18|_0x2df0f7[_0x2b4821>>>0x10&0xff]<<0x10|_0x2df0f7[_0x2ef7f9>>>0x8&0xff]<<0x8|_0x2df0f7[_0x4d5afb&0xff])^_0x271c50[_0x46de56++],_0x49a566=(_0x2df0f7[_0x2b4821>>>0x18]<<0x18|_0x2df0f7[_0x2ef7f9>>>0x10&0xff]<<0x10|_0x2df0f7[_0x4d5afb>>>0x8&0xff]<<0x8|_0x2df0f7[_0x1f8860&0xff])^_0x271c50[_0x46de56++],_0x1a0a4b=(_0x2df0f7[_0x2ef7f9>>>0x18]<<0x18|_0x2df0f7[_0x4d5afb>>>0x10&0xff]<<0x10|_0x2df0f7[_0x1f8860>>>0x8&0xff]<<0x8|_0x2df0f7[_0x2b4821&0xff])^_0x271c50[_0x46de56++];_0x192160[_0x358d5b]=_0x120f58,_0x192160[_0x358d5b+0x1]=_0x3f7486,_0x192160[_0x358d5b+0x2]=_0x49a566,_0x192160[_0x358d5b+0x3]=_0x1a0a4b;},'keySize':0x100/0x20});_0x538cc0[_0x22607a(0x408)]=_0xa78883[_0x22607a(0x14b)](_0x241723);}()),_0x577be5['AES'];}));}(yn));var hr=yn[_0x3b224c(0x2fc)];const _r=xe(hr);var ur=On();const Xt=xe(ur);var Pn={'exports':{}};(function(_0x136214,_0x14e5ab){(function(_0xf17e5f,_0x2b4c51){const _0xc888d3=_0x1276;_0x136214[_0xc888d3(0x2fc)]=_0x2b4c51(oe());}(X,function(_0x5bbfed){const _0x4e3b92=_0x1276;return _0x5bbfed[_0x4e3b92(0x551)][_0x4e3b92(0x4dc)];}));}(Pn));var dr=Pn['exports'];const fr=xe(dr);var Un={'exports':{}};(function(_0x447abc,_0x17164e){(function(_0x22f23a,_0x4822cf){const _0x1c3e25=_0x1276;_0x447abc[_0x1c3e25(0x2fc)]=_0x4822cf(oe());}(X,function(_0x54e990){const _0x4add5a=_0x1276;return(function(){const _0x101294=_0x1276;if(typeof ArrayBuffer=='function'){var _0x361122=_0x54e990,_0x247b7d=_0x361122[_0x101294(0x5af)],_0x4b846e=_0x247b7d[_0x101294(0x1e5)],_0x2c7411=_0x4b846e[_0x101294(0x20b)],_0x1cafe2=_0x4b846e[_0x101294(0x20b)]=function(_0xfdd239){const _0x19dfa0=_0x101294;if(_0xfdd239 instanceof ArrayBuffer&&(_0xfdd239=new Uint8Array(_0xfdd239)),(_0xfdd239 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0xfdd239 instanceof Uint8ClampedArray||_0xfdd239 instanceof Int16Array||_0xfdd239 instanceof Uint16Array||_0xfdd239 instanceof Int32Array||_0xfdd239 instanceof Uint32Array||_0xfdd239 instanceof Float32Array||_0xfdd239 instanceof Float64Array)&&(_0xfdd239=new Uint8Array(_0xfdd239[_0x19dfa0(0x443)],_0xfdd239['byteOffset'],_0xfdd239[_0x19dfa0(0x426)])),_0xfdd239 instanceof Uint8Array){for(var _0x3a65e9=_0xfdd239['byteLength'],_0x82b3a0=[],_0x4976b3=0x0;_0x4976b3<_0x3a65e9;_0x4976b3++)_0x82b3a0[_0x4976b3>>>0x2]|=_0xfdd239[_0x4976b3]<<0x18-_0x4976b3%0x4*0x8;_0x2c7411[_0x19dfa0(0x537)](this,_0x82b3a0,_0x3a65e9);}else _0x2c7411[_0x19dfa0(0x44a)](this,arguments);};_0x1cafe2[_0x101294(0x1af)]=_0x4b846e;}}()),_0x54e990[_0x4add5a(0x5af)][_0x4add5a(0x1e5)];}));}(Un));var vr=Un['exports'];const mr=xe(vr);var Mn={'exports':{}};(function(_0x5236a5,_0x56b7eb){(function(_0x56fab5,_0x50ec38,_0x4d5fcf){const _0x14d5ee=_0x1276;_0x5236a5[_0x14d5ee(0x2fc)]=_0x50ec38(oe(),wn());}(X,function(_0x42d4e8){const _0xa1b5e3=_0x1276;return _0x42d4e8[_0xa1b5e3(0x5d1)][_0xa1b5e3(0x16a)]={'pad':function(){},'unpad':function(){}},_0x42d4e8[_0xa1b5e3(0x5d1)][_0xa1b5e3(0x16a)];}));}(Mn));var Sr=Mn[_0x3b224c(0x2fc)];const pr=xe(Sr);function gr(_0x31a7c6,_0xde70ab){const _0x307c14=_0x3b224c,_0xb916f0=_0xde70ab-_0x31a7c6[_0x307c14(0x2a8)]%_0xde70ab,_0x41f739=String[_0x307c14(0x156)](_0xb916f0)[_0x307c14(0x2cb)](_0xb916f0);return _0x31a7c6+_0x41f739;}function Ir(_0x814294,_0x29e3fa){const _0x26e2db=_0x3b224c,_0xbcd6df=mr[_0x26e2db(0x4cb)](0x10),_0x30006f=gr(_0x814294,0x10),_0x1626b0=_r[_0x26e2db(0x42f)](fr[_0x26e2db(0x3d3)](_0x30006f),Xt[_0x26e2db(0x3d3)](_0x29e3fa),{'iv':_0xbcd6df,'padding':pr});return _0xbcd6df[_0x26e2db(0x198)](_0x1626b0['ciphertext'])[_0x26e2db(0x4cf)](Xt);}function Cr(){const _0x37d7c1=_0x3b224c,_0x4b804b=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0x37d7c1(0x232)];if(_0x4b804b){const _0x25fbff={'time':Math[_0x37d7c1(0x318)](Date[_0x37d7c1(0x419)]()/0x3e8),'domain':location[_0x37d7c1(0x2ea)]};return Ir(JSON[_0x37d7c1(0x52a)](_0x25fbff),_0x4b804b);}}var Er=Object[_0x3b224c(0x209)],br=Object[_0x3b224c(0x233)],Tr=(_0x238ff1,_0x21ec5a,_0x5f15df,_0x10b48b)=>{const _0x3e2279=_0x3b224c;for(var _0x457b44=_0x10b48b>0x1?void 0x0:_0x10b48b?br(_0x21ec5a,_0x5f15df):_0x21ec5a,_0xb0cedd=_0x238ff1[_0x3e2279(0x2a8)]-0x1,_0x3053a5;_0xb0cedd>=0x0;_0xb0cedd--)(_0x3053a5=_0x238ff1[_0xb0cedd])&&(_0x457b44=(_0x10b48b?_0x3053a5(_0x21ec5a,_0x5f15df,_0x457b44):_0x3053a5(_0x457b44))||_0x457b44);return _0x10b48b&&_0x457b44&&Er(_0x21ec5a,_0x5f15df,_0x457b44),_0x457b44;},Rr=(_0x2c42bc,_0x929c03)=>(_0x1920f7,_0x56a475)=>_0x929c03(_0x1920f7,_0x56a475,_0x2c42bc);let Ye=class{constructor(_0x14840f){const _0x46aa6d=_0x3b224c;this['_httpService']=_0x14840f,this[_0x46aa6d(0x5a0)]();}[_0x3b224c(0x5a0)](){const _0x31a209=_0x3b224c;this[_0x31a209(0x4f3)][_0x31a209(0x517)]({'interceptor':(_0x44c556,_0xcd340c)=>{const _0x56a388=_0x31a209,_0x5aa69f=_0x44c556['headers'],_0xc901f2=Cr();return _0xc901f2&&_0x5aa69f[_0x56a388(0x437)](_0x56a388(0x47d),_0xc901f2),_0xcd340c(_0x44c556);}});}};Ye=Tr([Rr(0x0,a[_0x3b224c(0x556)](Z['HTTPService']))],Ye);var yr=Object[_0x3b224c(0x209)],Or=Object[_0x3b224c(0x233)],Dr=(_0x61827b,_0x1eff99,_0x3656f3,_0x4734ad)=>{for(var _0x337164=_0x4734ad>0x1?void 0x0:_0x4734ad?Or(_0x1eff99,_0x3656f3):_0x1eff99,_0x3dfa26=_0x61827b['length']-0x1,_0x49f6a4;_0x3dfa26>=0x0;_0x3dfa26--)(_0x49f6a4=_0x61827b[_0x3dfa26])&&(_0x337164=(_0x4734ad?_0x49f6a4(_0x1eff99,_0x3656f3,_0x337164):_0x49f6a4(_0x337164))||_0x337164);return _0x4734ad&&_0x337164&&yr(_0x1eff99,_0x3656f3,_0x337164),_0x337164;},vt=(_0x56c93d,_0x3b8c6d)=>(_0x80e64c,_0x28c3db)=>_0x3b8c6d(_0x80e64c,_0x28c3db,_0x56c93d);const wr=['image/png',_0x3b224c(0x26d),_0x3b224c(0x208),'image/gif',_0x3b224c(0x43e)],Pr=0x5*0x400*0x400,Ur=_0x3b224c(0x256),Mr=_0x3b224c(0x3ae),Ar=_0x3b224c(0x439),Nr='/universer-api/file/{fileID}/sign-url';exports[_0x3b224c(0x30a)]=class{constructor(_0x2bf5a1,_0x396441,_0x3493de){const _0x136349=_0x3b224c;I(this,_0x136349(0x3ec),0x0),I(this,_0x136349(0x5b0),new A[(_0x136349(0x13f))]()),I(this,_0x136349(0x4a4),this[_0x136349(0x5b0)]),I(this,_0x136349(0x2e1),new Map()),(this[_0x136349(0x4f3)]=_0x2bf5a1,this[_0x136349(0x142)]=_0x396441,this[_0x136349(0x15e)]=_0x3493de);}[_0x3b224c(0x475)](_0x4159a7){const _0x2be15e=_0x3b224c;this[_0x2be15e(0x3ec)]=_0x4159a7,this[_0x2be15e(0x5b0)][_0x2be15e(0x1e1)](_0x4159a7);}['getImageSourceCache'](_0x450774,_0x4a3ccc){const _0x3c912d=_0x3b224c;if(_0x4a3ccc===ne[_0x3c912d(0x34d)][_0x3c912d(0x4d9)]){const _0x36faea=new Image();return _0x36faea[_0x3c912d(0x3bf)]=_0x450774,_0x36faea;}return this['_imageSourceCache'][_0x3c912d(0x273)](_0x450774);}[_0x3b224c(0x3f5)](_0x7e3e77,_0x2c6422,_0x5ebf5a){const _0x4a924a=_0x3b224c;_0x2c6422===ne['ImageSourceType'][_0x4a924a(0x4d9)]||_0x5ebf5a==null||this[_0x4a924a(0x2e1)][_0x4a924a(0x437)](_0x7e3e77,_0x5ebf5a);}async[_0x3b224c(0x228)](_0x72d9de){const _0x5ab8df=_0x3b224c;try{const _0x153fbc=this['_replaceFileID'](this[_0x5ab8df(0x409)](),''+_0x72d9de),_0x5137b0=(await this[_0x5ab8df(0x4f3)][_0x5ab8df(0x273)](_0x153fbc))[_0x5ab8df(0x4ce)];if(_0x5137b0['error']&&_0x5137b0[_0x5ab8df(0x423)][_0x5ab8df(0x4ef)]===cn['OK']){const _0x2e4b37=new URL(_0x5137b0['url'],this['_getDownloadEndpointURL']())['toString']();return Promise[_0x5ab8df(0x1d2)](_0x2e4b37);}return Promise[_0x5ab8df(0x18c)](_0x5137b0[_0x5ab8df(0x423)]);}catch(_0x1484c7){return Promise[_0x5ab8df(0x18c)](_0x1484c7);}}async[_0x3b224c(0x19a)](_0x59398a){const _0x1c0130=_0x3b224c;let _0x59bb0c='';if(!wr[_0x1c0130(0x254)](_0x59398a[_0x1c0130(0x5bb)]))return this['_decreaseWaiting'](),Promise[_0x1c0130(0x18c)](new Error(ne[_0x1c0130(0x534)][_0x1c0130(0x34f)]));if(_0x59398a['size']>Pr)return this[_0x1c0130(0x196)](),Promise[_0x1c0130(0x18c)](new Error(ne[_0x1c0130(0x534)][_0x1c0130(0x37d)]));try{const _0x5d6d5c=new FormData();_0x5d6d5c[_0x1c0130(0x17f)](_0x1c0130(0x43c),_0x59398a);const _0x2b2d3c=this[_0x1c0130(0x15e)][_0x1c0130(0x499)](),_0x5d617e=_0x2b2d3c==null?void 0x0:_0x2b2d3c[_0x1c0130(0x22d)]();if(!_0x5d617e)throw new Error(_0x1c0130(0x149));const _0xefe2e3=this['_getUploadFileURL']()+_0x1c0130(0x287)+_0x59398a['size'][_0x1c0130(0x4cf)]()+_0x1c0130(0x28b)+ln['UnitEmbedded']+_0x1c0130(0x336)+encodeURIComponent(_0x5d617e),_0xfb3f58=await(await fetch(_0xefe2e3,{'method':_0x1c0130(0x17e),'body':_0x5d6d5c}))[_0x1c0130(0x13c)]();if(typeof _0xfb3f58['FileId']!=_0x1c0130(0x404))return this['_decreaseWaiting'](),Promise[_0x1c0130(0x18c)](new Error(ne[_0x1c0130(0x534)]['ERROR_IMAGE']));_0x59bb0c=_0xfb3f58[_0x1c0130(0x41e)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(ne[_0x1c0130(0x534)]['ERROR_IMAGE']));}return new Promise((_0x2eae17,_0x12783a)=>{const _0x355cd9=_0x1c0130,_0x5d226c=new FileReader();_0x5d226c[_0x355cd9(0x56d)](_0x59398a),_0x5d226c[_0x355cd9(0x24c)]=_0x33e697=>{const _0x169e38=_0x355cd9;var _0x2797c0;const _0x2b55de=(_0x2797c0=_0x33e697[_0x169e38(0x261)])==null?void 0x0:_0x2797c0[_0x169e38(0x135)];if(_0x2b55de==null){this[_0x169e38(0x196)](),_0x12783a(new Error(ne['ImageUploadStatusType'][_0x169e38(0x167)]));return;}const _0x5b7379=a['Tools']['generateRandomId'](0x6);_0x2eae17({'imageId':_0x5b7379,'imageSourceType':ne[_0x169e38(0x34d)][_0x169e38(0x483)],'source':_0x59bb0c,'base64Cache':_0x2b55de,'status':ne['ImageUploadStatusType'][_0x169e38(0x395)]}),this[_0x169e38(0x196)]();};});}['_getUploadFileURL'](){const _0xcfa2ec=_0x3b224c;var _0x45ce1e,_0x487028;const _0x3c9249=this['_configService'][_0xcfa2ec(0x469)](Ur),_0x26ebb9=this[_0xcfa2ec(0x142)][_0xcfa2ec(0x469)](te);return(_0x487028=(_0x45ce1e=_0x26ebb9==null?void 0x0:_0x26ebb9[_0xcfa2ec(0x1da)])!=null?_0x45ce1e:_0x3c9249)!=null?_0x487028:Mr;}[_0x3b224c(0x409)](){const _0x48fac3=_0x3b224c;var _0x271250,_0x12adef;const _0x3c2b6a=this[_0x48fac3(0x142)][_0x48fac3(0x469)](Ar),_0x45077d=this[_0x48fac3(0x142)][_0x48fac3(0x469)](te);return(_0x12adef=(_0x271250=_0x45077d==null?void 0x0:_0x45077d[_0x48fac3(0x3e3)])!=null?_0x271250:_0x3c2b6a)!=null?_0x12adef:Nr;}[_0x3b224c(0x5a6)](){const _0x42c963=_0x3b224c;var _0x5e2490;const _0x42fa75=this['_configService'][_0x42c963(0x469)](te);return(_0x5e2490=_0x42fa75==null?void 0x0:_0x42fa75[_0x42c963(0x1a1)])!=null?_0x5e2490:location['origin'];}[_0x3b224c(0x5a4)](_0x4071ca,_0xf04b1f){const _0x10acc1=_0x3b224c;return _0x4071ca[_0x10acc1(0x424)](_0x10acc1(0x542),_0xf04b1f);}[_0x3b224c(0x196)](){const _0x111f7f=_0x3b224c;this[_0x111f7f(0x3ec)]-=0x1,this[_0x111f7f(0x5b0)][_0x111f7f(0x1e1)](this[_0x111f7f(0x3ec)]);}},exports['ImageIoService']=Dr([vt(0x0,a['Inject'](Z[_0x3b224c(0x15d)])),vt(0x1,a['IConfigService']),vt(0x2,a['Inject'](a['IUniverInstanceService']))],exports[_0x3b224c(0x30a)]);var Lr=Object[_0x3b224c(0x209)],xr=Object[_0x3b224c(0x233)],jr=(_0x4d9f99,_0x5ccf9c,_0x35ee4e,_0x1385fc)=>{const _0x2cdcd7=_0x3b224c;for(var _0x2a98be=_0x1385fc>0x1?void 0x0:_0x1385fc?xr(_0x5ccf9c,_0x35ee4e):_0x5ccf9c,_0x49a0ab=_0x4d9f99[_0x2cdcd7(0x2a8)]-0x1,_0x2a6d74;_0x49a0ab>=0x0;_0x49a0ab--)(_0x2a6d74=_0x4d9f99[_0x49a0ab])&&(_0x2a98be=(_0x1385fc?_0x2a6d74(_0x5ccf9c,_0x35ee4e,_0x2a98be):_0x2a6d74(_0x2a98be))||_0x2a98be);return _0x1385fc&&_0x2a98be&&Lr(_0x5ccf9c,_0x35ee4e,_0x2a98be),_0x2a98be;},Ae=(_0x284aad,_0x2b102b)=>(_0x4b0a18,_0x239d07)=>_0x2b102b(_0x4b0a18,_0x239d07,_0x284aad);let Ke=class extends a[_0x3b224c(0x274)]{constructor(_0x2d0062,_0x5e09bb,_0x2df580,_0x377185,_0x1d8000){const _0xf05332=_0x3b224c;super(),this['_injector']=_0x2d0062,this[_0xf05332(0x15e)]=_0x5e09bb,this[_0xf05332(0x155)]=_0x2df580,this['_collaborationSessionService']=_0x377185,this[_0xf05332(0x57b)]=_0x1d8000,this[_0xf05332(0x3e5)](),this[_0xf05332(0x509)]();}[_0x3b224c(0x509)](){const _0x5b7013=_0x3b224c,_0xd4f164=async _0x3abf48=>{const _0xf9872f=_0x1276;(await this[_0xf9872f(0x2ab)][_0xf9872f(0x376)](_0x3abf48))['event$'][_0xf9872f(0x3cc)](V[_0xf9872f(0x567)](_0x5a23e0=>_0x5a23e0['eventID']===S['CollaborationEvent']['SHOULD_CLOSE_CONN']),V[_0xf9872f(0x58f)](this['dispose$']))[_0xf9872f(0x2de)](_0xe0e825=>{const _0x577f31=_0xf9872f,_0x5b8d67=_0xe0e825,{reason:_0xe4d677}=_0x5b8d67[_0x577f31(0x34e)];this[_0x577f31(0x495)][_0x577f31(0x273)](ee['IMessageService'])[_0x577f31(0x134)]({'type':ge[_0x577f31(0x1a6)][_0x577f31(0x187)],'content':this['_localeService']['t'](_0x577f31(0x4a3))+'('+_0xe4d677+')'}),this[_0x577f31(0x155)]['updatePermissionPoint'](new k[(_0x577f31(0x4fd))](_0x3abf48)['id'],!0x1),this['_collaborationSessionService']['closeSession'](_0x3abf48);});};A[_0x5b7013(0x3d6)](this[_0x5b7013(0x15e)][_0x5b7013(0x291)](a[_0x5b7013(0x3b1)][_0x5b7013(0x460)]),this[_0x5b7013(0x15e)][_0x5b7013(0x291)](a['UniverInstanceType'][_0x5b7013(0x508)]))[_0x5b7013(0x3cc)](V[_0x5b7013(0x283)](_0x14c452=>_0x14c452[_0x5b7013(0x22d)]()),V[_0x5b7013(0x567)](_0x334b2d=>!a['isInternalEditorID'](_0x334b2d)),V[_0x5b7013(0x58f)](this['dispose$']))['subscribe'](_0x1150db=>{_0xd4f164(_0x1150db);});}[_0x3b224c(0x3e5)](){const _0x1f408d=_0x3b224c,_0xd4b3ef=async _0x2f9fea=>{const _0x255503=_0x1276;(await this['_collaborationSessionService'][_0x255503(0x376)](_0x2f9fea))[_0x255503(0x396)]['pipe'](V[_0x255503(0x567)](_0x49507f=>_0x49507f[_0x255503(0x4a9)]===S['CollaborationEvent'][_0x255503(0x31c)]),V[_0x255503(0x58f)](this[_0x255503(0x19d)]))[_0x255503(0x2de)](_0xfee65d=>{const _0x549e45=_0x255503,_0x53e658=_0xfee65d,{objectId:_0x2bbd50}=_0x53e658[_0x549e45(0x34e)],_0x19af48=this[_0x549e45(0x495)]['get'](Re['SheetPermissionInitController']);_0x2bbd50===_0x2f9fea?_0x19af48['initWorkbookPermissionChange'](_0x2f9fea):_0x19af48[_0x549e45(0x252)](_0x2f9fea,_0x2bbd50);});};A[_0x1f408d(0x3d6)](this[_0x1f408d(0x15e)][_0x1f408d(0x291)](a['UniverInstanceType'][_0x1f408d(0x460)]),this[_0x1f408d(0x15e)][_0x1f408d(0x291)](a[_0x1f408d(0x3b1)][_0x1f408d(0x508)]))[_0x1f408d(0x3cc)](V[_0x1f408d(0x283)](_0x5f2374=>_0x5f2374[_0x1f408d(0x22d)]()),V[_0x1f408d(0x567)](_0x12a15d=>!a['isInternalEditorID'](_0x12a15d)),V[_0x1f408d(0x58f)](this['dispose$']))['subscribe'](_0x4ca4be=>{_0xd4b3ef(_0x4ca4be);});}};Ke=jr([Ae(0x0,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),Ae(0x1,a[_0x3b224c(0x5a1)]),Ae(0x2,a['IPermissionService']),Ae(0x3,a[_0x3b224c(0x556)](exports[_0x3b224c(0x5d8)])),Ae(0x4,a[_0x3b224c(0x556)](a['LocaleService']))],Ke);var $r=Object['defineProperty'],Hr=Object[_0x3b224c(0x233)],Br=(_0x7c7dc1,_0x2b1728,_0x2bff0d,_0xe54e70)=>{const _0xda39bc=_0x3b224c;for(var _0x3f909a=_0xe54e70>0x1?void 0x0:_0xe54e70?Hr(_0x2b1728,_0x2bff0d):_0x2b1728,_0x46f8c0=_0x7c7dc1[_0xda39bc(0x2a8)]-0x1,_0x461f8f;_0x46f8c0>=0x0;_0x46f8c0--)(_0x461f8f=_0x7c7dc1[_0x46f8c0])&&(_0x3f909a=(_0xe54e70?_0x461f8f(_0x2b1728,_0x2bff0d,_0x3f909a):_0x461f8f(_0x3f909a))||_0x3f909a);return _0xe54e70&&_0x3f909a&&$r(_0x2b1728,_0x2bff0d,_0x3f909a),_0x3f909a;},Jt=(_0x233b93,_0x2dfd5d)=>(_0x315e2,_0x3f172d)=>_0x2dfd5d(_0x315e2,_0x3f172d,_0x233b93);exports['SnapshotServerOverHTTPService']=class{constructor(_0x391ec0,_0x495373){const _0x3c5cb6=_0x3b224c;this[_0x3c5cb6(0x142)]=_0x391ec0,this[_0x3c5cb6(0x4f3)]=_0x495373;}async['getUnitOnRev'](_0x72f006,_0x1e7278){const _0x135978=_0x3b224c;var _0x200dcf;const {unitID:_0x17a8c1,type:_0x3c274d,revision:_0x57fb7d=0x0}=_0x1e7278,_0x1f122e=this[_0x135978(0x2dd)]()+'/'+_0x3c274d+'/unit/'+_0x17a8c1+_0x135978(0x137)+_0x57fb7d,_0x5d310a=(await this[_0x135978(0x4f3)][_0x135978(0x273)](_0x1f122e))['body'],_0xf993=(_0x200dcf=_0x5d310a['snapshot'])==null?void 0x0:_0x200dcf['workbook'];if(_0xf993){const _0x3c4716=_0xf993==null?void 0x0:_0xf993['originalMeta'],_0x50bdf1=S['textEncoder']['encode'](S['b64DecodeUnicode'](_0x3c4716));_0xf993[_0x135978(0x473)]=_0x50bdf1,Object[_0x135978(0x55c)](_0xf993[_0x135978(0x15f)])[_0x135978(0x54f)](([,_0x52c7f9])=>{const _0x49c765=_0x135978,_0xfcfff8=_0x52c7f9[_0x49c765(0x473)],_0x504f55=S[_0x49c765(0x1d6)][_0x49c765(0x4b7)](S['b64DecodeUnicode'](_0xfcfff8));_0x52c7f9[_0x49c765(0x473)]=_0x504f55;});}return _0x5d310a;}async[_0x3b224c(0x158)](_0x108175,_0x464287){const _0x31649b=_0x3b224c,{unitID:_0x593795,type:_0x16f3c7,blockID:_0x350389}=_0x464287,_0x24a077=this[_0x31649b(0x564)]()+'/'+_0x16f3c7+_0x31649b(0x4b1)+_0x593795+_0x31649b(0x3a0)+_0x350389;return(await this[_0x31649b(0x4f3)][_0x31649b(0x273)](_0x24a077))[_0x31649b(0x4ce)];}async[_0x3b224c(0x1e0)](_0x3dc6f3,_0x1c7d88){const _0x1d54a4=_0x3b224c,{unitID:_0x107426,type:_0x19c67c,blockID:_0x202d4d}=_0x1c7d88,_0x3ffa89=this[_0x1d54a4(0x564)]()+_0x1d54a4(0x3a0)+_0x19c67c+_0x1d54a4(0x4b1)+_0x107426+_0x1d54a4(0x3a0)+_0x202d4d;return(await this['_httpService'][_0x1d54a4(0x273)](_0x3ffa89))[_0x1d54a4(0x4ce)];}async[_0x3b224c(0x523)](_0xdfd3d3,_0x41c7d0){const _0x35ccc4=_0x3b224c,{unitID:_0x3c2537,type:_0x43ca7d,from:_0x2ca239,to:_0xe24998}=_0x41c7d0,_0x4e49a0=this[_0x35ccc4(0x564)]()+'/'+_0x43ca7d+_0x35ccc4(0x4b1)+_0x3c2537+_0x35ccc4(0x358)+_0x2ca239+_0x35ccc4(0x2b2)+_0xe24998;return(await this[_0x35ccc4(0x4f3)][_0x35ccc4(0x273)](_0x4e49a0))[_0x35ccc4(0x4ce)];}['_getSnapshotAPIPrefix'](){const _0x566497=_0x3b224c;var _0x3309c1;return(_0x3309c1=this[_0x566497(0x142)][_0x566497(0x469)](Qt))!=null?_0x3309c1:this[_0x566497(0x564)]();}[_0x3b224c(0x564)](){const _0x32d2c8=_0x3b224c;var _0x3f1e8f,_0x3420a4;const _0x7bf89=this[_0x32d2c8(0x142)][_0x32d2c8(0x469)](Zt),_0x26c627=this[_0x32d2c8(0x142)][_0x32d2c8(0x469)](te);return(_0x3420a4=(_0x3f1e8f=_0x26c627==null?void 0x0:_0x26c627[_0x32d2c8(0x239)])!=null?_0x3f1e8f:_0x7bf89)!=null?_0x3420a4:Hn;}async[_0x3b224c(0x4c5)](_0x57b854,_0x2c3122){const _0x358978=_0x3b224c,_0x138677='/universer-api/snapshot/'+_0x2c3122[_0x358978(0x5bb)]+_0x358978(0x4b1)+_0x2c3122[_0x358978(0x236)]+_0x358978(0x35c);return(await this[_0x358978(0x4f3)][_0x358978(0x273)](_0x138677,{'params':{'resourceId':JSON[_0x358978(0x52a)](_0x2c3122[_0x358978(0x5d5)])}}))[_0x358978(0x4ce)];}[_0x3b224c(0x140)](){const _0x2d9a0a=_0x3b224c;throw new Error(_0x2d9a0a(0x559));}[_0x3b224c(0x2d9)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b224c(0x1b8)](){const _0x2293cf=_0x3b224c;throw new Error(_0x2293cf(0x559));}['copyFileMeta'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b224c(0x1b6)](){const _0x2e569a=_0x3b224c;throw new Error(_0x2e569a(0x559));}},exports[_0x3b224c(0x2e2)]=Br([Jt(0x0,a[_0x3b224c(0x160)]),Jt(0x1,a[_0x3b224c(0x556)](Z[_0x3b224c(0x15d)]))],exports[_0x3b224c(0x2e2)]);var kr=Object[_0x3b224c(0x209)],Wr=Object[_0x3b224c(0x233)],Fr=(_0x5b1fb3,_0x4530bd,_0x724859,_0x1a9bff)=>{const _0xc63e2b=_0x3b224c;for(var _0x17db7f=_0x1a9bff>0x1?void 0x0:_0x1a9bff?Wr(_0x4530bd,_0x724859):_0x4530bd,_0x7bbd19=_0x5b1fb3[_0xc63e2b(0x2a8)]-0x1,_0x6701d1;_0x7bbd19>=0x0;_0x7bbd19--)(_0x6701d1=_0x5b1fb3[_0x7bbd19])&&(_0x17db7f=(_0x1a9bff?_0x6701d1(_0x4530bd,_0x724859,_0x17db7f):_0x6701d1(_0x17db7f))||_0x17db7f);return _0x1a9bff&&_0x17db7f&&kr(_0x4530bd,_0x724859,_0x17db7f),_0x17db7f;},Ne=(_0x5685c1,_0x318340)=>(_0xdc1f09,_0x17e261)=>_0x318340(_0xdc1f09,_0x17e261,_0x5685c1);let It=class extends a['LocalUndoRedoService']{constructor(_0x3f4283,_0x2e99c4,_0x6a85c7,_0x351739,_0x238413){const _0x4b6c23=_0x3b224c;super(_0x3f4283,_0x2e99c4,_0x6a85c7),this[_0x4b6c23(0x5c9)]=_0x351739,this[_0x4b6c23(0x13a)]=_0x238413;}[_0x3b224c(0x332)](_0x1dba0a,_0x133285){const _0x338abc=_0x3b224c,_0x5e5c8c=this[_0x338abc(0x3fb)](_0x1dba0a);if(_0x5e5c8c)try{const _0x3d7391=this[_0x338abc(0x4ff)](_0x5e5c8c,_0x133285);this[_0x338abc(0x230)](_0x1dba0a,_0x3d7391);}catch(_0x17fcfe){this[_0x338abc(0x13a)][_0x338abc(0x423)]('[CollaborationUndoRedoService]',_0x17fcfe),this[_0x338abc(0x341)](_0x1dba0a);}const _0x1aa2f3=this[_0x338abc(0x251)](_0x1dba0a);if(_0x1aa2f3)try{const _0x2649b9=this[_0x338abc(0x4ff)](_0x1aa2f3,_0x133285);this[_0x338abc(0x553)](_0x1dba0a,_0x2649b9);}catch(_0x570567){this[_0x338abc(0x13a)][_0x338abc(0x423)](_0x570567),this[_0x338abc(0x145)](_0x1dba0a);}}[_0x3b224c(0x341)](_0x33a742){const _0x1bbe2e=_0x3b224c,_0x255563=this[_0x1bbe2e(0x3fb)](_0x33a742);_0x255563&&(_0x255563[_0x1bbe2e(0x2a8)]=0x0,this[_0x1bbe2e(0x3d1)]());}[_0x3b224c(0x145)](_0x16231c){const _0x1919f3=_0x3b224c,_0x539ef8=this[_0x1919f3(0x251)](_0x16231c);_0x539ef8&&(_0x539ef8['length']=0x0,this[_0x1919f3(0x3d1)]());}[_0x3b224c(0x230)](_0x341d77,_0x5c5fc5){const _0x2aa29f=_0x3b224c;this[_0x2aa29f(0x59a)][_0x2aa29f(0x437)](_0x341d77,_0x5c5fc5),this['_updateStatus']();}[_0x3b224c(0x553)](_0x42caea,_0x534d68){const _0x4add8b=_0x3b224c;this['_redoStacks'][_0x4add8b(0x437)](_0x42caea,_0x534d68),this['_updateStatus']();}[_0x3b224c(0x4ff)](_0xf6c2d5,_0x4b0dde){const _0x507fb1=_0x3b224c,_0x31ea00=[];let _0x23319e=_0x4b0dde,_0x970a65=_0x4b0dde;for(let _0x184132=_0xf6c2d5[_0x507fb1(0x2a8)]-0x1;_0x184132>=0x0;_0x184132--){const {unitID:_0x39c90e,undoMutations:_0x49fbe2,redoMutations:_0x201303}=_0xf6c2d5[_0x184132],_0xd89251=this['_transformService']['transformMutationsWithChangeset'](_0x23319e,_0x49fbe2),_0x270ea1=this[_0x507fb1(0x5c9)]['transformMutationsWithChangeset'](_0x970a65,_0x201303);if(S[_0x507fb1(0x35d)](_0xd89251)||S[_0x507fb1(0x35d)](_0x270ea1)){this['_logService'][_0x507fb1(0x423)]('[CollaborationUndoRedoService]',_0x507fb1(0x5ac),_0xd89251,_0x270ea1);break;}_0x23319e=_0xd89251[_0x507fb1(0x1ea)],_0x970a65=_0x270ea1[_0x507fb1(0x1ea)],_0x31ea00[_0x507fb1(0x1a8)]({'unitID':_0x39c90e,'undoMutations':_0xd89251[_0x507fb1(0x3f1)],'redoMutations':_0x270ea1[_0x507fb1(0x3f1)]});}return _0x31ea00[_0x507fb1(0x393)]();}};It=Fr([Ne(0x0,a[_0x3b224c(0x5a1)]),Ne(0x1,a[_0x3b224c(0x3d4)]),Ne(0x2,a['IContextService']),Ne(0x3,S[_0x3b224c(0x180)]),Ne(0x4,a[_0x3b224c(0x5ae)])],It);class An extends a['RxDisposable']{constructor(){const _0xe1804a=_0x3b224c;super(),I(this,'urlChange$'),this['urlChange$']=A['fromEvent'](window,'popstate')[_0xe1804a(0x3cc)](A[_0xe1804a(0x58f)](this[_0xe1804a(0x19d)]),A[_0xe1804a(0x307)](0x1),A[_0xe1804a(0x512)](void 0x0));}[_0x3b224c(0x591)](_0x2e1e02,_0x3c8370,_0x39c81d=!0x1){const _0x3b789c=_0x3b224c,_0x312b43=new URL(window[_0x3b789c(0x3c2)][_0x3b789c(0x27d)]);_0x312b43[_0x3b789c(0x53e)][_0x3b789c(0x437)](_0x2e1e02,_0x3c8370),_0x39c81d?window['history'][_0x3b789c(0x5c2)]('','',_0x312b43['toString']()):window[_0x3b789c(0x3dc)][_0x3b789c(0x237)]('','',_0x312b43[_0x3b789c(0x4cf)]());}[_0x3b224c(0x2f4)](_0x35cf9e,_0x145f0b=!0x1){const _0x4c1526=_0x3b224c,_0x332c95=new URL(window[_0x4c1526(0x3c2)][_0x4c1526(0x27d)]);_0x332c95[_0x4c1526(0x53e)][_0x4c1526(0x463)](_0x35cf9e),_0x145f0b?window[_0x4c1526(0x3dc)][_0x4c1526(0x5c2)]('','',_0x332c95[_0x4c1526(0x4cf)]()):window[_0x4c1526(0x3dc)][_0x4c1526(0x237)]('','',_0x332c95['toString']());}['getParam'](_0xe2e1b9){const _0x231750=_0x3b224c;var _0x17f59b;return(_0x17f59b=new URL(window['location'][_0x231750(0x27d)])[_0x231750(0x53e)][_0x231750(0x273)](_0xe2e1b9))!=null?_0x17f59b:void 0x0;}}var Nn=Object[_0x3b224c(0x209)],Vr=Object[_0x3b224c(0x233)],Gr=(_0x3ba827,_0x4582eb,_0x49b088)=>_0x4582eb in _0x3ba827?Nn(_0x3ba827,_0x4582eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49b088}):_0x3ba827[_0x4582eb]=_0x49b088,Yr=(_0x17b824,_0x3417db,_0xed87eb,_0x2cdb4a)=>{for(var _0xfca1b1=_0x2cdb4a>0x1?void 0x0:_0x2cdb4a?Vr(_0x3417db,_0xed87eb):_0x3417db,_0x568c74=_0x17b824['length']-0x1,_0x213bf1;_0x568c74>=0x0;_0x568c74--)(_0x213bf1=_0x17b824[_0x568c74])&&(_0xfca1b1=(_0x2cdb4a?_0x213bf1(_0x3417db,_0xed87eb,_0xfca1b1):_0x213bf1(_0xfca1b1))||_0xfca1b1);return _0x2cdb4a&&_0xfca1b1&&Nn(_0x3417db,_0xed87eb,_0xfca1b1),_0xfca1b1;},He=(_0x25f477,_0x1a74db)=>(_0xc3080b,_0x9f9c5d)=>_0x1a74db(_0xc3080b,_0x9f9c5d,_0x25f477),Kr=(_0x2020e2,_0x3f56f1,_0x2376fa)=>Gr(_0x2020e2,_0x3f56f1+'',_0x2376fa);const qr='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x3b224c(0x5c1)]=class extends a[_0x3b224c(0x302)]{constructor(_0x3a582d=zn,_0x1605a5,_0x1a5b75,_0x4f165a,_0x3d6f82){const _0x306d8a=_0x3b224c;super(),this[_0x306d8a(0x38a)]=_0x3a582d,this[_0x306d8a(0x13a)]=_0x1605a5,this[_0x306d8a(0x243)]=_0x1a5b75,this[_0x306d8a(0x495)]=_0x4f165a,this[_0x306d8a(0x142)]=_0x3d6f82;const {..._0x4b8e88}=this[_0x306d8a(0x38a)];this[_0x306d8a(0x142)][_0x306d8a(0x369)](te,_0x4b8e88);}[_0x3b224c(0x39d)](){const _0x37d488=_0x3b224c;this[_0x37d488(0x2e3)](),this[_0x37d488(0x570)]();}[_0x3b224c(0x148)](){const _0x237dec=_0x3b224c;a[_0x237dec(0x275)](this[_0x237dec(0x495)],[[Ve]]);}['onRendered'](){const _0x3370e9=_0x3b224c;this[_0x3370e9(0x317)]();}[_0x3b224c(0x2e3)](){const _0x6c6956=_0x3b224c;var _0x3e5dc1,_0x52b182,_0x4d7d96,_0x1a02d0;this[_0x6c6956(0x495)][_0x6c6956(0x339)](a['IUndoRedoService'])&&this[_0x6c6956(0x13a)][_0x6c6956(0x423)](_0x6c6956(0x56f),_0x6c6956(0x1c0));const _0x1e3300=[[a[_0x6c6956(0x2b0)],{'useClass':It}],[exports['CollaborationSessionService']],[Ot],[wt,{'useClass':An}],[exports[_0x6c6956(0x5db)]],[exports[_0x6c6956(0x42a)]],[Z[_0x6c6956(0x350)]],[ke],[Fe],[Be],[We],[Rt],[Ge],[Ye],[Tt],[Ke],[bt,{'useClass':(_0x52b182=(_0x3e5dc1=this[_0x6c6956(0x38a)])==null?void 0x0:_0x3e5dc1[_0x6c6956(0x521)])!=null?_0x52b182:exports[_0x6c6956(0x446)]}],[S[_0x6c6956(0x3ef)],{'useClass':exports[_0x6c6956(0x2e2)]}],[a['IAuthzIoService'],{'useClass':exports['AuthzIoHttpService']}],[ne[_0x6c6956(0x430)],{'useClass':exports['ImageIoService']}],[exports[_0x6c6956(0x1d0)]],[exports[_0x6c6956(0x151)]],[exports[_0x6c6956(0x58a)]],[Ve],[De]];(_0x4d7d96=this['_config'])!=null&&_0x4d7d96['enableSingleActiveInstanceLock']&&_0x1e3300[_0x6c6956(0x1a8)]([qe,{'useClass':Oi}]),a[_0x6c6956(0x146)](this['_injector'],a[_0x6c6956(0x1a7)](_0x1e3300,(_0x1a02d0=this['_config'])==null?void 0x0:_0x1a02d0[_0x6c6956(0x477)]));}['_registerRenderDependencies'](){const _0x268b94=_0x3b224c;this[_0x268b94(0x220)](this[_0x268b94(0x243)][_0x268b94(0x3f4)](a[_0x268b94(0x3b1)][_0x268b94(0x508)],[pt])),this[_0x268b94(0x220)](this[_0x268b94(0x243)][_0x268b94(0x3f4)](a[_0x268b94(0x3b1)][_0x268b94(0x460)],[gt]));}[_0x3b224c(0x570)](){const _0x3a476c=_0x3b224c;var _0x4baa3b,_0x370d71;this[_0x3a476c(0x495)]['get'](Z[_0x3a476c(0x15d)])[_0x3a476c(0x517)]({'priority':0x14,'interceptor':Z[_0x3a476c(0x59e)]({'maxParallel':0x6})}),(_0x4baa3b=this[_0x3a476c(0x38a)])!=null&&_0x4baa3b[_0x3a476c(0x197)]||this[_0x3a476c(0x495)][_0x3a476c(0x273)](exports[_0x3a476c(0x42a)])[_0x3a476c(0x262)](),(_0x370d71=this['_config'])!=null&&_0x370d71[_0x3a476c(0x524)]&&a['touchDependencies'](this[_0x3a476c(0x495)],[[Ge]]),a[_0x3a476c(0x275)](this[_0x3a476c(0x495)],[[Ye],[De],[exports[_0x3a476c(0x151)]],[exports[_0x3a476c(0x1d0)]],[exports[_0x3a476c(0x58a)]],[Ke]]);}},Kr(exports[_0x3b224c(0x5c1)],_0x3b224c(0x529),qr),exports[_0x3b224c(0x5c1)]=Yr([a['DependentOn'](S['UniverCollaborationPlugin'],Z[_0x3b224c(0x5d9)]),He(0x1,a['ILogService']),He(0x2,K[_0x3b224c(0x569)]),He(0x3,a[_0x3b224c(0x556)](a[_0x3b224c(0x157)])),He(0x4,a[_0x3b224c(0x160)])],exports[_0x3b224c(0x5c1)]),exports[_0x3b224c(0x2f7)]=Rn,exports[_0x3b224c(0x3be)]=on,exports['COLLAB_WEB_SOCKET_URL_KEY']=en,exports[_0x3b224c(0x507)]=q,exports['CollaborationStatusDisplay']=Tn,exports[_0x3b224c(0x493)]=Tt,exports['HEARTBEAT_INTERVAL_KEY']=tn,exports[_0x3b224c(0x181)]=Ct,exports['ICollaborationSocketService']=bt,exports[_0x3b224c(0x55f)]=wt,exports[_0x3b224c(0x4f0)]=rn,exports[_0x3b224c(0x462)]=an,exports[_0x3b224c(0x299)]=sn,exports[_0x3b224c(0x337)]=Bn,exports[_0x3b224c(0x4c1)]=Zt,exports['SNAPSHOT_URL_KEY']=Qt,exports[_0x3b224c(0x1a9)]=se,exports[_0x3b224c(0x22e)]=Sn,exports[_0x3b224c(0x4a6)]=An,exports[_0x3b224c(0x1b4)]=hn,exports[_0x3b224c(0x50f)]=_n;
1
+ 'use strict';const _0x2683e6=_0x479a;(function(_0x2bba74,_0x2d589e){const _0x1de600=_0x479a,_0x8d06c3=_0x2bba74();while(!![]){try{const _0x56f181=parseInt(_0x1de600(0x2ac))/0x1+-parseInt(_0x1de600(0x4a8))/0x2+parseInt(_0x1de600(0x23d))/0x3+parseInt(_0x1de600(0x5f8))/0x4*(-parseInt(_0x1de600(0x15c))/0x5)+parseInt(_0x1de600(0x5a1))/0x6*(-parseInt(_0x1de600(0x2b4))/0x7)+-parseInt(_0x1de600(0x371))/0x8*(-parseInt(_0x1de600(0x3aa))/0x9)+parseInt(_0x1de600(0x513))/0xa;if(_0x56f181===_0x2d589e)break;else _0x8d06c3['push'](_0x8d06c3['shift']());}catch(_0x441d1a){_0x8d06c3['push'](_0x8d06c3['shift']());}}}(_0x21f6,0xf08c5));var Ln=Object[_0x2683e6(0x1e7)],xn=(_0x41e7d6,_0x4689ea,_0x269f16)=>_0x4689ea in _0x41e7d6?Ln(_0x41e7d6,_0x4689ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x269f16}):_0x41e7d6[_0x4689ea]=_0x269f16,I=(_0x41e76b,_0x55e5ec,_0x3915f2)=>xn(_0x41e76b,typeof _0x55e5ec!=_0x2683e6(0x2db)?_0x55e5ec+'':_0x55e5ec,_0x3915f2);Object[_0x2683e6(0x1e7)](exports,Symbol['toStringTag'],{'value':'Module'});const a=require(_0x2683e6(0x37d)),A=require('rxjs'),V=require('rxjs/operators'),ge=require(_0x2683e6(0x26d)),ee=require(_0x2683e6(0x466)),Z=require(_0x2683e6(0x310)),S=require(_0x2683e6(0x299)),jn=require(_0x2683e6(0x1a4)),J=require('@univerjs/docs-ui'),k=require(_0x2683e6(0x44c)),K=require(_0x2683e6(0x555)),ye=require('@univerjs/docs'),ne=require(_0x2683e6(0x268)),Pt=require(_0x2683e6(0x298)),Re=require(_0x2683e6(0x23e)),ae=require(_0x2683e6(0x4ef)),$n=require(_0x2683e6(0x4c5)),Zt=_0x2683e6(0x5a8),Hn='/universer-api/snapshot',Qt=_0x2683e6(0x4f8),Bn=_0x2683e6(0x4ff),kn=0x7d0,en=_0x2683e6(0x5bf),Wn='ws://127.0.0.1:8000/universer-api/comb/connect',tn=_0x2683e6(0x4ad),Fn=0x7530,Ct=_0x2683e6(0x2be),nn=0x4e20,Vn=0x4e20,sn=_0x2683e6(0x1cc),Gn=0x3,rn=_0x2683e6(0x396),Yn=0x3e8,on=_0x2683e6(0x2c0),Kn=_0x2683e6(0x5fe),an=_0x2683e6(0x481),qn=_0x2683e6(0x41b);var cn=(_0xf5184a=>(_0xf5184a[_0xf5184a[_0x2683e6(0x5a5)]=0x0]=_0x2683e6(0x5a5),_0xf5184a[_0xf5184a['OK']=0x1]='OK',_0xf5184a[_0xf5184a[_0x2683e6(0x158)]=0x2]=_0x2683e6(0x158),_0xf5184a[_0xf5184a[_0x2683e6(0x3d3)]=0x3]=_0x2683e6(0x3d3),_0xf5184a[_0xf5184a[_0x2683e6(0x469)]=0x4]=_0x2683e6(0x469),_0xf5184a[_0xf5184a['UNAUTHENTICATED']=0x5]=_0x2683e6(0x17f),_0xf5184a[_0xf5184a['ALREADY_EXISTS']=0x6]=_0x2683e6(0x546),_0xf5184a[_0xf5184a[_0x2683e6(0x390)]=0x7]=_0x2683e6(0x390),_0xf5184a[_0xf5184a[_0x2683e6(0x568)]=0x8]=_0x2683e6(0x568),_0xf5184a[_0xf5184a[_0x2683e6(0x3e8)]=0x9]=_0x2683e6(0x3e8),_0xf5184a[_0xf5184a[_0x2683e6(0x536)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0xf5184a[_0xf5184a[_0x2683e6(0x354)]=0x1771]=_0x2683e6(0x354),_0xf5184a[_0xf5184a[_0x2683e6(0x54f)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0xf5184a[_0xf5184a[_0x2683e6(0x1e6)]=0x1773]=_0x2683e6(0x1e6),_0xf5184a[_0xf5184a[_0x2683e6(0x3f1)]=0x1b59]=_0x2683e6(0x3f1),_0xf5184a[_0xf5184a[_0x2683e6(0x382)]=0x1b5a]=_0x2683e6(0x382),_0xf5184a[_0xf5184a[_0x2683e6(0x1fa)]=0x1b5b]=_0x2683e6(0x1fa),_0xf5184a[_0xf5184a[_0x2683e6(0x217)]=0x1b5c]=_0x2683e6(0x217),_0xf5184a[_0xf5184a[_0x2683e6(0x398)]=0x1b5d]=_0x2683e6(0x398),_0xf5184a[_0xf5184a[_0x2683e6(0x5fa)]=0x1f41]=_0x2683e6(0x5fa),_0xf5184a[_0xf5184a[_0x2683e6(0x156)]=0x2329]=_0x2683e6(0x156),_0xf5184a[_0xf5184a[_0x2683e6(0x467)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0xf5184a[_0xf5184a[_0x2683e6(0x5c1)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0xf5184a[_0xf5184a[_0x2683e6(0x54b)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0xf5184a[_0xf5184a[_0x2683e6(0x152)]=0x232d]=_0x2683e6(0x152),_0xf5184a[_0xf5184a[_0x2683e6(0x376)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0xf5184a[_0xf5184a[_0x2683e6(0x56c)]=0x2712]=_0x2683e6(0x56c),_0xf5184a[_0xf5184a['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2683e6(0x1c8),_0xf5184a[_0xf5184a[_0x2683e6(0x22f)]=0x2714]=_0x2683e6(0x22f),_0xf5184a[_0xf5184a[_0x2683e6(0x165)]=-0x1]=_0x2683e6(0x165),_0xf5184a))(cn||{}),ie=(_0x4af399=>(_0x4af399[_0x4af399[_0x2683e6(0x41d)]=0x0]=_0x2683e6(0x41d),_0x4af399[_0x4af399[_0x2683e6(0x56e)]=0x1]='UNIVER_DOC',_0x4af399[_0x4af399['UNIVER_SHEET']=0x2]=_0x2683e6(0x4a1),_0x4af399[_0x4af399[_0x2683e6(0x1fc)]=0x3]=_0x2683e6(0x1fc),_0x4af399[_0x4af399[_0x2683e6(0x311)]=0x4]=_0x2683e6(0x311),_0x4af399[_0x4af399[_0x2683e6(0x165)]=-0x1]='UNRECOGNIZED',_0x4af399))(ie||{}),G=(_0xbce49b=>(_0xbce49b[_0xbce49b[_0x2683e6(0x435)]=0x0]=_0x2683e6(0x435),_0xbce49b[_0xbce49b['HELLO']=0x1]=_0x2683e6(0x1c3),_0xbce49b[_0xbce49b[_0x2683e6(0x426)]=0x2]=_0x2683e6(0x426),_0xbce49b[_0xbce49b['LEAVE']=0x3]='LEAVE',_0xbce49b[_0xbce49b[_0x2683e6(0x3c9)]=0x4]=_0x2683e6(0x3c9),_0xbce49b[_0xbce49b[_0x2683e6(0x530)]=0x5]=_0x2683e6(0x530),_0xbce49b[_0xbce49b[_0x2683e6(0x4c8)]=0x6]='RECV',_0xbce49b[_0xbce49b[_0x2683e6(0x165)]=-0x1]=_0x2683e6(0x165),_0xbce49b))(G||{}),Et=(_0xf65f35=>(_0xf65f35[_0xf65f35[_0x2683e6(0x41c)]=0x0]=_0x2683e6(0x41c),_0xf65f35[_0xf65f35['OK']=0x1]='OK',_0xf65f35[_0xf65f35[_0x2683e6(0x44e)]=0x2]=_0x2683e6(0x44e),_0xf65f35[_0xf65f35[_0x2683e6(0x165)]=-0x1]=_0x2683e6(0x165),_0xf65f35))(Et||{}),ln=(_0x37cf12=>(_0x37cf12[_0x37cf12[_0x2683e6(0x2a8)]=0x0]=_0x2683e6(0x2a8),_0x37cf12[_0x37cf12[_0x2683e6(0x1ab)]=0x1]='HttpImport',_0x37cf12[_0x37cf12['HttpExport']=0x2]=_0x2683e6(0x4e4),_0x37cf12[_0x37cf12[_0x2683e6(0x20c)]=0x3]=_0x2683e6(0x20c),_0x37cf12[_0x37cf12[_0x2683e6(0x5c4)]=0x4]=_0x2683e6(0x5c4),_0x37cf12[_0x37cf12[_0x2683e6(0x165)]=-0x1]='UNRECOGNIZED',_0x37cf12))(ln||{});const te='collaboration-client.config',zn={};function hn(_0x12406b){const _0x54e4ff=_0x2683e6;var _0x301591,_0x20dc64,_0x76b17b,_0x50bccf,_0x5ad00f;const _0x25a1d5=_0x12406b[_0x54e4ff(0x5ac)],_0x28e77c=JSON[_0x54e4ff(0x18e)](_0x25a1d5);switch(_0x28e77c[_0x54e4ff(0x57a)]){case G[_0x54e4ff(0x530)]:case G['HELLO']:{const _0x2213e9=_0x28e77c[_0x54e4ff(0x38b)];return{..._0x28e77c,'data':_0x2213e9,'cmd':_0x28e77c[_0x54e4ff(0x57a)]};}case G[_0x54e4ff(0x426)]:{const _0x47468e=_0x28e77c[_0x54e4ff(0x5f0)];return{..._0x28e77c,'data':_0x47468e,'cmd':_0x28e77c[_0x54e4ff(0x57a)]};}case G[_0x54e4ff(0x4c8)]:{const _0x3753d5=_0x28e77c[_0x54e4ff(0x20a)];switch(_0x3753d5['eventID']){case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x4e1)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':(_0x301591=_0x3753d5['permissionRejEvent'])==null?void 0x0:_0x301591['cs']},'cmd':_0x28e77c['cmd']};case S[_0x54e4ff(0x3d6)]['CHANGESET_ACK']:return{..._0x28e77c,'data':{..._0x3753d5,'data':(_0x20dc64=_0x3753d5[_0x54e4ff(0x5d2)])==null?void 0x0:_0x20dc64['cs']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x3da)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':(_0x76b17b=_0x3753d5[_0x54e4ff(0x463)])==null?void 0x0:_0x76b17b['cs']},'cmd':_0x28e77c['cmd']};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x1bf)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':(_0x50bccf=_0x3753d5[_0x54e4ff(0x360)])==null?void 0x0:_0x50bccf['cs']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)]['CHANGESET_SHOULD_RETRY']:return{..._0x28e77c,'data':{..._0x3753d5,'data':(_0x5ad00f=_0x3753d5[_0x54e4ff(0x583)])==null?void 0x0:_0x5ad00f['cs']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S['CollaborationEvent'][_0x54e4ff(0x470)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5['updateCursorEvent']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x221)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5[_0x54e4ff(0x3a0)]},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)]['USERS_LEAVE']:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5[_0x54e4ff(0x1be)]},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)]['LIVESHARE_NEW_HOST']:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5['liveShareNewHost']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x22e)]:case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x338)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5[_0x54e4ff(0x54c)]},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x412)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5[_0x54e4ff(0x3ce)]},'cmd':_0x28e77c['cmd']};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x5f1)]:return{..._0x28e77c,'data':_0x3753d5,'cmd':_0x28e77c['cmd']};case S[_0x54e4ff(0x3d6)][_0x54e4ff(0x176)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5['commentUpdateEvent']},'cmd':_0x28e77c[_0x54e4ff(0x57a)]};case S[_0x54e4ff(0x3d6)]['UPDATE_PERMISSION_OBJ']:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5['updatePermissionObjEvent']},'cmd':_0x28e77c['cmd']};case S['CollaborationEvent'][_0x54e4ff(0x235)]:return{..._0x28e77c,'data':{..._0x3753d5,'data':_0x3753d5[_0x54e4ff(0x46d)]},'cmd':_0x28e77c['cmd']};default:return _0x28e77c;}}default:return _0x28e77c;}}function _n(_0x534a41){const _0x3370f5=_0x2683e6;switch(_0x534a41[_0x3370f5(0x57a)]){case G[_0x3370f5(0x530)]:case G['HELLO']:return JSON[_0x3370f5(0x40e)]({'cmd':_0x534a41[_0x3370f5(0x57a)],'routeKey':_0x534a41['routeKey']});case G[_0x3370f5(0x3c9)]:{let _0x320e48;switch(_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x477)]){case S[_0x3370f5(0x3d6)][_0x3370f5(0x470)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)]['UPDATE_CURSOR'],'updateCursorEvent':_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x5ac)]};break;}case S[_0x3370f5(0x3d6)][_0x3370f5(0x388)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x388)],'leaveEvent':_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x5ac)]};break;}case S['CollaborationEvent']['USERS_ENTER']:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x221)],'joinEvent':_0x534a41['data'][_0x3370f5(0x5ac)]};break;}case S[_0x3370f5(0x3d6)][_0x3370f5(0x283)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x283)],'liveShareNewHost':_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x5ac)]};break;}case S[_0x3370f5(0x3d6)]['LIVESHARE_OPERATION']:{_0x320e48={'eventID':S['CollaborationEvent'][_0x3370f5(0x338)],'liveShareOperation':_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x5ac)]};break;}case S[_0x3370f5(0x3d6)][_0x3370f5(0x412)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x412)],'liveShareTerminate':_0x534a41[_0x3370f5(0x5ac)]['data']};break;}case S[_0x3370f5(0x3d6)][_0x3370f5(0x31f)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x31f)],'liveShareRequestHost':_0x534a41[_0x3370f5(0x5ac)][_0x3370f5(0x5ac)]};break;}case S['CollaborationEvent'][_0x3370f5(0x22e)]:{_0x320e48={'eventID':S[_0x3370f5(0x3d6)][_0x3370f5(0x22e)]};break;}default:_0x320e48={'eventID':_0x534a41['data']['eventID']};}return JSON['stringify']({'cmd':_0x534a41[_0x3370f5(0x57a)],'routeKey':_0x534a41[_0x3370f5(0x453)],'collaMsg':_0x320e48});}case G['JOIN']:return JSON[_0x3370f5(0x40e)]({'cmd':_0x534a41['cmd'],'routeKey':_0x534a41[_0x3370f5(0x453)],'joinReq':_0x534a41[_0x3370f5(0x5ac)]});case G[_0x3370f5(0x34e)]:return JSON[_0x3370f5(0x40e)]({'cmd':_0x534a41[_0x3370f5(0x57a)],'routeKey':_0x534a41[_0x3370f5(0x453)],'leaveReq':_0x534a41[_0x3370f5(0x5ac)]});default:throw new Error(_0x3370f5(0x159));}}var Xn=Object[_0x2683e6(0x1e7)],Jn=Object[_0x2683e6(0x181)],Zn=(_0x1ee3f7,_0x1bafea,_0x411326,_0x60ead1)=>{const _0xd8d04e=_0x2683e6;for(var _0x15140d=_0x60ead1>0x1?void 0x0:_0x60ead1?Jn(_0x1bafea,_0x411326):_0x1bafea,_0x33a041=_0x1ee3f7[_0xd8d04e(0x29a)]-0x1,_0x50e55e;_0x33a041>=0x0;_0x33a041--)(_0x50e55e=_0x1ee3f7[_0x33a041])&&(_0x15140d=(_0x60ead1?_0x50e55e(_0x1bafea,_0x411326,_0x15140d):_0x50e55e(_0x15140d))||_0x15140d);return _0x60ead1&&_0x15140d&&Xn(_0x1bafea,_0x411326,_0x15140d),_0x15140d;},we=(_0x4c89c2,_0x524bc7)=>(_0x257b61,_0x482e5f)=>_0x524bc7(_0x257b61,_0x482e5f,_0x4c89c2);const bt=a['createIdentifier'](_0x2683e6(0x545));function Qn(_0x5e1469,_0x3a4339,_0x1bc500){const _0x1f7d4b=_0x2683e6;return _0x5e1469+'/'+_0x3a4339+_0x1f7d4b(0x182)+_0x1bc500+'/new_changes';}exports['CollaborationSocketService']=class extends a[_0x2683e6(0x3cc)]{constructor(_0x4a74c3,_0x5d8978,_0x454796,_0x527b8f,_0x26fb0f){const _0x3826f8=_0x2683e6;super(),this[_0x3826f8(0x1d7)]=_0x4a74c3,this[_0x3826f8(0x5a0)]=_0x5d8978,this[_0x3826f8(0x3d1)]=_0x454796,this['_logService']=_0x527b8f,this['_snapshotServerService']=_0x26fb0f;}['createSocket'](_0x157d63){const _0x3b1ecf=_0x2683e6,_0x22263a=this['_ws'][_0x3b1ecf(0x3eb)](_0x157d63);if(!_0x22263a)throw new Error(_0x3b1ecf(0x1b5));const _0x2a3641=new a['DisposableCollection'](),_0x202ff8=new A['Subject']();_0x2a3641[_0x3b1ecf(0x494)](_0x22263a[_0x3b1ecf(0x168)]['subscribe'](_0x5315aa=>_0x202ff8['next'](_0x5315aa))),_0x2a3641[_0x3b1ecf(0x494)](a[_0x3b1ecf(0x454)](()=>_0x202ff8[_0x3b1ecf(0x438)]()));const _0x54faaf=new A[(_0x3b1ecf(0x51b))]();_0x2a3641['add'](_0x22263a[_0x3b1ecf(0x263)]['subscribe'](_0x571ced=>_0x54faaf[_0x3b1ecf(0x40f)](_0x571ced))),_0x2a3641['add'](a[_0x3b1ecf(0x454)](()=>_0x54faaf[_0x3b1ecf(0x438)]()));const _0x47259c=new A['Subject']();_0x2a3641[_0x3b1ecf(0x494)](_0x22263a[_0x3b1ecf(0x492)]['subscribe'](_0x26178c=>{const _0x17e456=_0x3b1ecf,_0x572907=hn(_0x26178c);_0x47259c[_0x17e456(0x40f)](_0x572907);})),_0x2a3641['add'](a[_0x3b1ecf(0x454)](()=>_0x47259c[_0x3b1ecf(0x438)]()));let _0x395f8e;const _0x1cd90e=()=>{const _0x594092=_0x3b1ecf;_0x54faaf[_0x594092(0x40f)](new Event(_0x594092(0x57d))),_0x202ff8['next'](new CloseEvent(_0x594092(0x57d))),_0x395f8e[_0x594092(0x3e4)]();};return _0x395f8e={'memberID':'','close$':_0x202ff8[_0x3b1ecf(0x4f2)](),'error$':_0x54faaf[_0x3b1ecf(0x4f2)](),'open$':_0x22263a['open$'],'message$':_0x47259c[_0x3b1ecf(0x4f2)](),'send':_0x37e17a=>{const _0x178ac2=_0x3b1ecf;if(_0x37e17a[_0x178ac2(0x57a)]===G[_0x178ac2(0x3c9)]){if(_0x37e17a[_0x178ac2(0x5ac)][_0x178ac2(0x477)]===S[_0x178ac2(0x3d6)]['SUBMIT_CHANGESET']){this[_0x178ac2(0x595)](_0x395f8e,_0x37e17a[_0x178ac2(0x5ac)])['catch'](_0x431465=>{const _0x5d906c=_0x178ac2;this[_0x5d906c(0x577)]['error'](_0x431465),_0x1cd90e();});return;}if(_0x37e17a[_0x178ac2(0x5ac)][_0x178ac2(0x477)]===S[_0x178ac2(0x3d6)]['FETCH_MISSING']){const _0x2a2773=_0x37e17a[_0x178ac2(0x5ac)];this[_0x178ac2(0x21e)](_0x2a2773)['then'](_0x152277=>{const _0x4530fb=_0x178ac2;_0x47259c[_0x4530fb(0x40f)]({'cmd':G[_0x4530fb(0x4c8)],'code':Et['OK'],'routeKey':_0x2a2773['data']['unitID'],'routeType':'','data':{'eventID':S['CollaborationEvent'][_0x4530fb(0x4d1)],'data':{'changesets':_0x152277}}});})['catch'](_0x13aaa5=>{const _0x2db646=_0x178ac2;this[_0x2db646(0x577)][_0x2db646(0x461)](_0x13aaa5),_0x1cd90e();});return;}}_0x22263a[_0x178ac2(0x4ae)](_n(_0x37e17a));},'close':()=>{const _0x918073=_0x3b1ecf;_0x22263a[_0x918073(0x3e4)](),_0x2a3641[_0x918073(0x269)]();}},_0x395f8e;}async[_0x2683e6(0x595)](_0x56b138,_0x7bbcd4){const _0x24ea24=_0x2683e6;var _0x1abd69,_0x1b2f08;const {unitType:_0x12a9da,unitID:_0x46c63a,changeset:_0x2289fe}=_0x7bbcd4[_0x24ea24(0x5ac)],_0x1bc365={'unitID':_0x46c63a,'memberID':_0x56b138[_0x24ea24(0x30e)],'type':_0x12a9da,'changeset':S['parseChangesetToProtocol'](_0x2289fe)},_0xe3b895=this['_configService'][_0x24ea24(0x496)](on),_0x5c3022=this[_0x24ea24(0x3d1)][_0x24ea24(0x496)](te),_0x582904=Qn((_0x1b2f08=(_0x1abd69=_0x5c3022==null?void 0x0:_0x5c3022[_0x24ea24(0x315)])!=null?_0x1abd69:_0xe3b895)!=null?_0x1b2f08:Kn,_0x12a9da,_0x46c63a);try{await this[_0x24ea24(0x1d7)][_0x24ea24(0x551)](_0x582904,{'body':_0x1bc365});}catch(_0x161b5f){throw this[_0x24ea24(0x577)][_0x24ea24(0x461)](_0x24ea24(0x5ca),'submit\x20changeset\x20error!'),_0x161b5f;}}async[_0x2683e6(0x21e)](_0x207754){const _0x2773a0=_0x2683e6,{unitID:_0x3bbdcd,from:_0x5d83a5,to:_0x1d20e6,unitType:_0x2e8626}=_0x207754[_0x2773a0(0x5ac)];return(await this[_0x2773a0(0x1e5)][_0x2773a0(0x606)]({'metadata':void 0x0},{'unitID':_0x3bbdcd,'type':_0x2e8626,'from':_0x5d83a5,'to':_0x1d20e6}))[_0x2773a0(0x29f)];}},exports[_0x2683e6(0x5bb)]=Zn([we(0x0,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)])),we(0x1,a['Inject'](Z['WebSocketService'])),we(0x2,a['IConfigService']),we(0x3,a['ILogService']),we(0x4,S['ISnapshotServerService'])],exports[_0x2683e6(0x5bb)]);const ei=_0x2683e6(0x19f);function ti(_0x1ea806){const _0x26eb0f=_0x2683e6;return JSON[_0x26eb0f(0x40e)](_0x1ea806)[_0x26eb0f(0x29a)];}class Tt{constructor(){const _0x2b338e=_0x2683e6;I(this,_0x2b338e(0x1e8),new A['Subject']()),I(this,_0x2b338e(0x49d),this[_0x2b338e(0x1e8)][_0x2b338e(0x4f2)]());}[_0x2683e6(0x5fb)](_0x76751d){const _0x28e8bb=_0x2683e6;this[_0x28e8bb(0x1e8)][_0x28e8bb(0x40f)](_0x76751d);}}var ni=Object[_0x2683e6(0x1e7)],ii=Object[_0x2683e6(0x181)],si=(_0x4630bc,_0x1e1397,_0x109f7a,_0xfde637)=>{const _0x112118=_0x2683e6;for(var _0x5d0b08=_0xfde637>0x1?void 0x0:_0xfde637?ii(_0x1e1397,_0x109f7a):_0x1e1397,_0x440d99=_0x4630bc[_0x112118(0x29a)]-0x1,_0x14030b;_0x440d99>=0x0;_0x440d99--)(_0x14030b=_0x4630bc[_0x440d99])&&(_0x5d0b08=(_0xfde637?_0x14030b(_0x1e1397,_0x109f7a,_0x5d0b08):_0x14030b(_0x5d0b08))||_0x5d0b08);return _0xfde637&&_0x5d0b08&&ni(_0x1e1397,_0x109f7a,_0x5d0b08),_0x5d0b08;},Ut=(_0x2f95ec,_0x3ff680)=>(_0x4ba7b6,_0x3f6e10)=>_0x3ff680(_0x4ba7b6,_0x3f6e10,_0x2f95ec);exports[_0x2683e6(0x184)]=class extends a['Disposable']{constructor(_0xfe3611,_0x404e17){const _0x59f525=_0x2683e6;super(),I(this,_0x59f525(0x377),new Map()),(this[_0x59f525(0x45b)]=_0xfe3611,this[_0x59f525(0x291)]=_0x404e17,this[_0x59f525(0x427)](a['toDisposable'](A['merge'](this[_0x59f525(0x45b)]['getTypeOfUnitDisposed$'](a[_0x59f525(0x342)]['UNIVER_SHEET'])[_0x59f525(0x36b)](V[_0x59f525(0x538)](_0x2b5b01=>_0x2b5b01[_0x59f525(0x478)]())),this['_univerInstanceService'][_0x59f525(0x3b4)](a['UniverInstanceType']['UNIVER_DOC'])['pipe'](V[_0x59f525(0x538)](_0x3a758f=>_0x3a758f['getUnitId']())),this[_0x59f525(0x45b)][_0x59f525(0x3b4)](a[_0x59f525(0x342)][_0x59f525(0x1fc)])['pipe'](V[_0x59f525(0x538)](_0x10bcc6=>_0x10bcc6[_0x59f525(0x478)]())))[_0x59f525(0x44d)](_0x55283a=>this[_0x59f525(0x2dd)](_0x55283a)))));}[_0x2683e6(0x306)](_0x28d98b){const _0x4c4679=_0x2683e6;this[_0x4c4679(0x291)][_0x4c4679(0x306)](_0x28d98b);}[_0x2683e6(0x39d)](){const _0x5b8f36=_0x2683e6;return this[_0x5b8f36(0x291)][_0x5b8f36(0x39d)]();}[_0x2683e6(0x499)](_0x19469f,_0x45f431){const _0x7fcdc=_0x2683e6;let _0x258822=this[_0x7fcdc(0x377)][_0x7fcdc(0x553)](_0x19469f);_0x258822||(_0x258822=new ri(),this[_0x7fcdc(0x377)][_0x7fcdc(0x46f)](_0x19469f,_0x258822)),_0x258822['updateMember'](_0x45f431);}[_0x2683e6(0x222)](_0x39306d,_0x5e8e9d){const _0x5230e3=_0x2683e6,_0x2b2b26=this[_0x5230e3(0x377)][_0x5230e3(0x553)](_0x39306d);_0x2b2b26&&_0x2b2b26[_0x5230e3(0x222)](_0x5e8e9d);}[_0x2683e6(0x5ab)](_0x2594a3){const _0xdfb8d=_0x2683e6;return this[_0xdfb8d(0x377)][_0xdfb8d(0x553)](_0x2594a3);}[_0x2683e6(0x55d)](_0x50acbd,_0x4874fc){const _0x45d0a7=_0x2683e6,_0x55e188=this['_roomMembers'][_0x45d0a7(0x553)](_0x50acbd);if(_0x55e188)return _0x55e188['getMember'](_0x4874fc);}[_0x2683e6(0x2dd)](_0x2dca80){const _0x151b1d=_0x2683e6,_0x5ec9c4=this[_0x151b1d(0x377)]['get'](_0x2dca80);_0x5ec9c4&&(_0x5ec9c4['dispose'](),this[_0x151b1d(0x377)][_0x151b1d(0x27e)](_0x2dca80));}['dispose'](){const _0x454511=_0x2683e6;this[_0x454511(0x377)][_0x454511(0x280)](_0x1a1b82=>_0x1a1b82[_0x454511(0x269)]()),this['_roomMembers'][_0x454511(0x308)]();}},exports[_0x2683e6(0x184)]=si([Ut(0x0,a[_0x2683e6(0x468)]),Ut(0x1,a['Inject'](a[_0x2683e6(0x18d)]))],exports[_0x2683e6(0x184)]);class ri extends a[_0x2683e6(0x3cc)]{constructor(){super(...arguments),I(this,'_members',new Map());}[_0x2683e6(0x269)](){const _0x5f3876=_0x2683e6;this[_0x5f3876(0x51d)][_0x5f3876(0x308)]();}[_0x2683e6(0x499)](_0x3407a8){const _0x3a2179=_0x2683e6;this[_0x3a2179(0x51d)]['set'](_0x3407a8['memberID'],_0x3407a8);}[_0x2683e6(0x222)](_0x43e937){const _0x5e6754=_0x2683e6;this[_0x5e6754(0x51d)]['delete'](_0x43e937);}['getMember'](_0x3eac44){const _0x10c907=_0x2683e6;return this[_0x10c907(0x51d)]['get'](_0x3eac44);}['getAllMembers'](){const _0x5a7d86=_0x2683e6;return Array['from'](this[_0x5a7d86(0x51d)]['values']());}}var oi=Object['defineProperty'],ai=Object[_0x2683e6(0x181)],ci=(_0x39d0c0,_0x1b5ddd,_0x54af82,_0x21c033)=>{const _0x177722=_0x2683e6;for(var _0x1803b1=_0x21c033>0x1?void 0x0:_0x21c033?ai(_0x1b5ddd,_0x54af82):_0x1b5ddd,_0xc48736=_0x39d0c0[_0x177722(0x29a)]-0x1,_0x390df9;_0xc48736>=0x0;_0xc48736--)(_0x390df9=_0x39d0c0[_0xc48736])&&(_0x1803b1=(_0x21c033?_0x390df9(_0x1b5ddd,_0x54af82,_0x1803b1):_0x390df9(_0x1803b1))||_0x1803b1);return _0x21c033&&_0x1803b1&&oi(_0x1b5ddd,_0x54af82,_0x1803b1),_0x1803b1;},de=(_0x538cd5,_0x3e6927)=>(_0x186c39,_0xfef94f)=>_0x3e6927(_0x186c39,_0xfef94f,_0x538cd5),se=(_0x103b56=>(_0x103b56[_0x103b56[_0x2683e6(0x55c)]=0x0]=_0x2683e6(0x55c),_0x103b56[_0x103b56['JOINING']=0x1]=_0x2683e6(0x38f),_0x103b56[_0x103b56[_0x2683e6(0x25a)]=0x2]=_0x2683e6(0x25a),_0x103b56[_0x103b56[_0x2683e6(0x191)]=0x3]=_0x2683e6(0x191),_0x103b56))(se||{});exports[_0x2683e6(0x5eb)]=class extends a[_0x2683e6(0x1e0)]{constructor(_0x386fd9,_0xdc9562,_0x2fd059,_0x1f34b3,_0x38c73b,_0x2dbbdc,_0x4f9f61,_0x388f67,_0x13a1cc,_0x19998c){const _0x2fafda=_0x2683e6;super(),I(this,_0x2fafda(0x2b6),new A['BehaviorSubject'](0x0)),I(this,_0x2fafda(0x497),this['_sessionStatus$']['asObservable']()),I(this,_0x2fafda(0x55e),new A['Subject']()),I(this,_0x2fafda(0x279),this['_event$']['asObservable']()),I(this,_0x2fafda(0x1ee)),I(this,_0x2fafda(0x558)),I(this,_0x2fafda(0x3d7)),I(this,_0x2fafda(0x3a2),!0x1),I(this,_0x2fafda(0x239),null),(this['_unitID']=_0x386fd9,this[_0x2fafda(0x577)]=_0x2fd059,this[_0x2fafda(0x264)]=_0x1f34b3,this[_0x2fafda(0x167)]=_0x38c73b,this[_0x2fafda(0x3d1)]=_0x2dbbdc,this[_0x2fafda(0x347)]=_0x4f9f61,this[_0x2fafda(0x2cf)]=_0x388f67,this['_commentService']=_0x13a1cc,this[_0x2fafda(0x473)]=_0x19998c,this[_0x2fafda(0x3a2)]=!!this[_0x2fafda(0x473)],_0xdc9562[_0x2fafda(0x36b)](A[_0x2fafda(0x35f)](this[_0x2fafda(0x534)]))[_0x2fafda(0x44d)](_0x313b3a=>{const _0x303e5f=_0x2fafda;var _0x163417;typeof _0x313b3a>'u'||(this[_0x303e5f(0x1ee)]=_0x313b3a,_0x313b3a?(this['_joinRoom'](_0x313b3a),this[_0x303e5f(0x558)]=_0x313b3a[_0x303e5f(0x492)]['subscribe'](_0x1b211b=>{_0x1b211b['routeKey']===this['_unitID']&&this['_onCombEvent'](_0x1b211b);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x303e5f(0x40f)](0x2),(_0x163417=this[_0x303e5f(0x558)])==null||_0x163417[_0x303e5f(0x334)](),this[_0x303e5f(0x558)]=null));}),this['disposeWithMe'](this['_beforeCloseService']['registerOnClose'](()=>{const _0x3cdc15=_0x2fafda;var _0x5c1ff3;(_0x5c1ff3=this[_0x3cdc15(0x1ee)])==null||_0x5c1ff3[_0x3cdc15(0x4ae)]({'cmd':G[_0x3cdc15(0x34e)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x56f218=_0x2683e6;return this[_0x56f218(0x2b6)][_0x56f218(0x1fb)]();}[_0x2683e6(0x4c2)](){const _0x165557=_0x2683e6;var _0x29cca0,_0x4bd252;return(_0x4bd252=(_0x29cca0=this[_0x165557(0x1ee)])==null?void 0x0:_0x29cca0['memberID'])!=null?_0x4bd252:null;}[_0x2683e6(0x269)](){const _0x21b68c=_0x2683e6;super[_0x21b68c(0x269)](),this[_0x21b68c(0x534)][_0x21b68c(0x40f)](),this[_0x21b68c(0x534)][_0x21b68c(0x438)]();}['close'](){const _0x969d2a=_0x2683e6;var _0xc24c15,_0x531bf0;this[_0x969d2a(0x261)](),(_0xc24c15=this[_0x969d2a(0x1ee)])==null||_0xc24c15[_0x969d2a(0x4ae)]({'cmd':G[_0x969d2a(0x34e)],'data':{'roomID':this[_0x969d2a(0x225)]}}),(_0x531bf0=this['_socket'])==null||_0x531bf0[_0x969d2a(0x3e4)](),this['_event$'][_0x969d2a(0x438)](),this['_sessionStatus$'][_0x969d2a(0x438)](),this[_0x969d2a(0x269)]();}[_0x2683e6(0x5b5)](_0x3e27d2){const _0x1a4729=_0x2683e6;_0x3e27d2[_0x1a4729(0x57a)]===G[_0x1a4729(0x426)]?this[_0x1a4729(0x505)](_0x3e27d2):_0x3e27d2[_0x1a4729(0x57a)]===G[_0x1a4729(0x4c8)]&&this[_0x1a4729(0x46c)](_0x3e27d2);}[_0x2683e6(0x527)](_0xc4fb3e){const _0x31c74d=_0x2683e6;this[_0x31c74d(0x2b6)][_0x31c74d(0x40f)](0x1),_0xc4fb3e[_0x31c74d(0x4ae)]({'cmd':G[_0x31c74d(0x426)],'routeKey':this[_0x31c74d(0x225)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x2683e6(0x505)](_0xed4a12){const _0x32e5dc=_0x2683e6;var _0xe4b37;if(_0xed4a12[_0x32e5dc(0x443)]===Et['FAIL']){this[_0x32e5dc(0x167)]['show']({'type':ge['MessageType']['Warning'],'content':this['_localeService']['t'](_0x32e5dc(0x47a))}),this[_0x32e5dc(0x2b6)][_0x32e5dc(0x40f)](0x2);return;}this[_0x32e5dc(0x2b6)][_0x32e5dc(0x40f)](0x3);const _0x1645ff=(_0xe4b37=_0xed4a12[_0x32e5dc(0x5ac)][_0x32e5dc(0x38c)][this[_0x32e5dc(0x225)]])==null?void 0x0:_0xe4b37[_0x32e5dc(0x51c)];_0x1645ff&&_0x1645ff[_0x32e5dc(0x280)](_0x5b936c=>this[_0x32e5dc(0x2cf)][_0x32e5dc(0x499)](this['_unitID'],_0x5b936c));}[_0x2683e6(0x46c)](_0x3a836a){const _0x36160d=_0x2683e6;try{const _0x152d25=_0x3a836a[_0x36160d(0x5ac)];switch(_0x152d25[_0x36160d(0x477)]){case S[_0x36160d(0x3d6)][_0x36160d(0x221)]:this['_onUserJoin'](_0x152d25),this['_event$'][_0x36160d(0x40f)](_0x152d25);break;case S[_0x36160d(0x3d6)][_0x36160d(0x388)]:this[_0x36160d(0x1fd)](_0x152d25),this[_0x36160d(0x55e)][_0x36160d(0x40f)](_0x152d25);break;case S[_0x36160d(0x3d6)][_0x36160d(0x2e1)]:case S[_0x36160d(0x3d6)][_0x36160d(0x4e5)]:this[_0x36160d(0x4e0)](),this[_0x36160d(0x26a)](),this[_0x36160d(0x55e)][_0x36160d(0x40f)](_0x152d25);break;case S[_0x36160d(0x3d6)][_0x36160d(0x5f1)]:this[_0x36160d(0x577)][_0x36160d(0x461)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x36160d(0x40e)](_0x152d25)),this[_0x36160d(0x55e)][_0x36160d(0x40f)](_0x152d25);break;case S[_0x36160d(0x3d6)][_0x36160d(0x176)]:this['_commentService'][_0x36160d(0x5fb)](_0x152d25[_0x36160d(0x5ac)]),this['_event$'][_0x36160d(0x40f)](_0x152d25);break;default:this['_event$'][_0x36160d(0x40f)](_0x152d25);}}catch(_0x51754c){this[_0x36160d(0x577)]['error'](_0x51754c,_0x3a836a);}}[_0x2683e6(0x4ce)](_0x513d2f){const _0x2bb5e9=_0x2683e6;this[_0x2bb5e9(0x2cf)][_0x2bb5e9(0x499)](this[_0x2bb5e9(0x225)],_0x513d2f['data']);}['_onUserLeave'](_0x22ede5){const _0x129eaf=_0x2683e6;this['_memberService'][_0x129eaf(0x222)](this[_0x129eaf(0x225)],_0x22ede5[_0x129eaf(0x5ac)]['memberID']);}async['send'](_0x17befa,_0x33ad86){const _0x365e9e=_0x2683e6;if(this['sessionStatus']!==0x3||!this[_0x365e9e(0x1ee)])throw new Error(_0x365e9e(0x383));try{_0x17befa[_0x365e9e(0x477)]===S['CollaborationEvent'][_0x365e9e(0x2a4)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x17befa)),this[_0x365e9e(0x1ee)]['send']({'cmd':G['INGEST'],'routeKey':_0x33ad86,'routeType':'','data':_0x17befa});}catch(_0x3de715){this['_logService'][_0x365e9e(0x461)](_0x3de715);}}['_scheduleCollaborationTimeoutTimer'](){const _0x4b77db=_0x2683e6;var _0x419b36;this[_0x4b77db(0x3d7)]=window[_0x4b77db(0x352)](()=>{const _0x107b20=_0x4b77db;this[_0x107b20(0x3d7)]=null,this[_0x107b20(0x167)]['show']({'type':ge['MessageType'][_0x107b20(0x272)],'content':this[_0x107b20(0x347)]['t']('session.collaboration-timeout')});},(_0x419b36=this['_configService'][_0x4b77db(0x496)](Ct))!=null?_0x419b36:nn);}[_0x2683e6(0x26a)](){const _0x2207f4=_0x2683e6;this[_0x2207f4(0x3d7)]&&(clearTimeout(this['_collaborationTimeoutTimer']),this[_0x2207f4(0x3d7)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x19f20c){const _0x19a48b=_0x2683e6;if(!this[_0x19a48b(0x3a2)])return;const {data:_0x3f57d9}=_0x19f20c,{unitID:_0x4cea38,changeset:_0x18e6d3}=_0x3f57d9,{mutations:_0x2c7b84,type:_0x12e58a}=_0x18e6d3;this['_telemetryInfo']={'unitId':_0x4cea38,'type':_0x12e58a,'startTime':performance[_0x19a48b(0x1f9)](),'stopTime':0x0,'duration':0x0,'size':ti(_0x2c7b84)};}[_0x2683e6(0x4e0)](){const _0x13fe47=_0x2683e6;if(this[_0x13fe47(0x3a2)]){if(!this[_0x13fe47(0x239)]){this[_0x13fe47(0x577)]['error'](_0x13fe47(0x5ca),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x13fe47(0x239)][_0x13fe47(0x328)]=performance[_0x13fe47(0x1f9)](),this[_0x13fe47(0x239)][_0x13fe47(0x2ec)]=this[_0x13fe47(0x239)]['stopTime']-this[_0x13fe47(0x239)][_0x13fe47(0x4de)],this['_telemetryService'][_0x13fe47(0x1d8)](ei,this[_0x13fe47(0x239)]),this[_0x13fe47(0x239)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}},exports[_0x2683e6(0x5eb)]=ci([de(0x2,a[_0x2683e6(0x5a9)]),de(0x3,ee[_0x2683e6(0x246)]),de(0x4,ee[_0x2683e6(0x509)]),de(0x5,a[_0x2683e6(0x58f)]),de(0x6,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),de(0x7,a[_0x2683e6(0x22b)](exports['MemberService'])),de(0x8,a[_0x2683e6(0x22b)](Tt)),de(0x9,a[_0x2683e6(0x23c)](jn['ITelemetryService']))],exports[_0x2683e6(0x5eb)]);var li=Object[_0x2683e6(0x1e7)],hi=Object['getOwnPropertyDescriptor'],_i=(_0x456631,_0x3acc6b,_0x2212e1,_0x1b17a5)=>{const _0x6578c5=_0x2683e6;for(var _0x32fabe=_0x1b17a5>0x1?void 0x0:_0x1b17a5?hi(_0x3acc6b,_0x2212e1):_0x3acc6b,_0x18fd3f=_0x456631[_0x6578c5(0x29a)]-0x1,_0x4a58b9;_0x18fd3f>=0x0;_0x18fd3f--)(_0x4a58b9=_0x456631[_0x18fd3f])&&(_0x32fabe=(_0x1b17a5?_0x4a58b9(_0x3acc6b,_0x2212e1,_0x32fabe):_0x4a58b9(_0x32fabe))||_0x32fabe);return _0x1b17a5&&_0x32fabe&&li(_0x3acc6b,_0x2212e1,_0x32fabe),_0x32fabe;},Ee=(_0x3574a9,_0x93ddaa)=>(_0x5cd057,_0x533284)=>_0x93ddaa(_0x5cd057,_0x533284,_0x3574a9);exports[_0x2683e6(0x17a)]=class extends a[_0x2683e6(0x3cc)]{constructor(_0x28bdbb,_0x25cb47,_0x3d091c,_0x2cfa6c,_0x5146a5,_0x19a667){const _0x569d20=_0x2683e6;super(),I(this,_0x569d20(0x4ab),new A[(_0x569d20(0x1ce))](void 0x0)),I(this,_0x569d20(0x5b6),this[_0x569d20(0x4ab)][_0x569d20(0x4f2)]()),I(this,'_candidateSocket',null),I(this,_0x569d20(0x31e),new Map()),I(this,_0x569d20(0x1bc),new A[(_0x569d20(0x1ce))](se[_0x569d20(0x55c)])),I(this,'status$',this[_0x569d20(0x1bc)][_0x569d20(0x4f2)]()),I(this,_0x569d20(0x28c),!0x1),I(this,_0x569d20(0x4f3)),I(this,'_retryCount',0x0),I(this,_0x569d20(0x408)),I(this,_0x569d20(0x51e)),(this[_0x569d20(0x3e9)]=_0x28bdbb,this[_0x569d20(0x347)]=_0x25cb47,this[_0x569d20(0x167)]=_0x3d091c,this['_logService']=_0x2cfa6c,this['_configService']=_0x5146a5,this[_0x569d20(0x446)]=_0x19a667,this[_0x569d20(0x386)]());}get['_socket'](){const _0x4093cc=_0x2683e6;return this[_0x4093cc(0x4ab)]['getValue']();}[_0x2683e6(0x386)](){const _0x211fe0=_0x2683e6;this[_0x211fe0(0x336)](),this[_0x211fe0(0x2c2)]();}[_0x2683e6(0x269)](){const _0x22ab7c=_0x2683e6;super[_0x22ab7c(0x269)](),this['_sessions'][_0x22ab7c(0x280)](_0x4c92bf=>_0x4c92bf[_0x22ab7c(0x269)]()),this['_sessions'][_0x22ab7c(0x308)](),this[_0x22ab7c(0x1bc)][_0x22ab7c(0x438)]();}async['requireSession'](_0x3215e7){const _0x113f82=_0x2683e6;if(this[_0x113f82(0x31e)]['has'](_0x3215e7))return this[_0x113f82(0x31e)][_0x113f82(0x553)](_0x3215e7);this[_0x113f82(0x4a0)]();const _0x3044d6=this['_injector']['createInstance'](exports[_0x113f82(0x5eb)],_0x3215e7,this['_socket$'][_0x113f82(0x4f2)]());return this[_0x113f82(0x31e)][_0x113f82(0x46f)](_0x3215e7,_0x3044d6),_0x3044d6;}[_0x2683e6(0x4fd)](_0xaf2554){const _0x2bbf49=_0x2683e6;var _0x466d0b;const _0x2a15de=this['_sessions'][_0x2bbf49(0x553)](_0xaf2554);_0x2a15de&&(this[_0x2bbf49(0x31e)][_0x2bbf49(0x27e)](_0xaf2554),_0x2a15de[_0x2bbf49(0x3e4)]()),this[_0x2bbf49(0x31e)][_0x2bbf49(0x4b4)]||(_0x466d0b=this['_socket'])==null||_0x466d0b[_0x2bbf49(0x3e4)]();}[_0x2683e6(0x5bd)](){const _0xd957c6=_0x2683e6;this[_0xd957c6(0x293)]=0x0,this[_0xd957c6(0x4f3)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null),this[_0xd957c6(0x4f1)]();}['_createSocket'](){const _0x2a3b6c=_0x2683e6;var _0x46fbd7,_0x2882c7;const _0x1a9154=this[_0x2a3b6c(0x3d1)][_0x2a3b6c(0x496)](en),_0x4b7dce=this[_0x2a3b6c(0x3d1)][_0x2a3b6c(0x496)](te),_0x2ad7b2=(_0x2882c7=(_0x46fbd7=_0x4b7dce==null?void 0x0:_0x4b7dce[_0x2a3b6c(0x356)])!=null?_0x46fbd7:_0x1a9154)!=null?_0x2882c7:Wn,_0x241d5f=this[_0x2a3b6c(0x446)][_0x2a3b6c(0x3eb)](_0x2ad7b2);return this[_0x2a3b6c(0x4cf)]=_0x241d5f,_0x241d5f;}['_tryEnsureSocket'](){const _0x1c5fc9=_0x2683e6;var _0x57656b,_0x23501c;try{const _0x41a33c=(_0x23501c=(_0x57656b=this[_0x1c5fc9(0x1ee)])!=null?_0x57656b:this[_0x1c5fc9(0x4cf)])!=null?_0x23501c:this['_createSocket']();if(_0x41a33c){const _0x32ebb2=_0x41a33c[_0x1c5fc9(0x4ae)];_0x41a33c[_0x1c5fc9(0x4ae)]=_0x32f9e2=>(this[_0x1c5fc9(0x3d2)](),_0x32ebb2[_0x1c5fc9(0x4c4)](_0x41a33c,[_0x32f9e2])),_0x41a33c['message$'][_0x1c5fc9(0x44d)](_0xffba89=>this['_onMessage'](_0x41a33c,_0xffba89)),_0x41a33c['error$'][_0x1c5fc9(0x36b)](V[_0x1c5fc9(0x282)](0x1))[_0x1c5fc9(0x44d)](_0x3b2b83=>this[_0x1c5fc9(0x577)][_0x1c5fc9(0x461)](_0x1c5fc9(0x562),_0x3b2b83)),_0x41a33c[_0x1c5fc9(0x30f)]['pipe'](V['take'](0x1))[_0x1c5fc9(0x44d)](()=>{this['_onConnectionOpen'](_0x41a33c);}),_0x41a33c['close$']['pipe'](V['take'](0x1))['subscribe'](_0x5a3af2=>{const _0x2843d3=_0x1c5fc9;this[_0x2843d3(0x577)][_0x2843d3(0x3db)]('[CollaborationSessionService]','socket\x20close',_0x5a3af2),this[_0x2843d3(0x501)]();});}}catch(_0x137b08){this[_0x1c5fc9(0x577)]['error'](_0x137b08),this[_0x1c5fc9(0x501)]();}}[_0x2683e6(0x3c7)](_0x12fba3){const _0x2113f1=_0x2683e6;this[_0x2113f1(0x577)][_0x2113f1(0x3db)](_0x2113f1(0x2ca),'socket\x20open.'),_0x12fba3[_0x2113f1(0x4ae)]({'cmd':G[_0x2113f1(0x1c3)]}),this[_0x2113f1(0x3d2)]();}[_0x2683e6(0x336)](){const _0x32f5b4=_0x2683e6;window[_0x32f5b4(0x4fc)](_0x32f5b4(0x39a),()=>this[_0x32f5b4(0x27b)]());}[_0x2683e6(0x27b)](){const _0x48c580=_0x2683e6;this[_0x48c580(0x28c)]=!0x1,this[_0x48c580(0x4cf)]=null,this['_status$'][_0x48c580(0x40f)](se[_0x48c580(0x25a)]),this['_socket$'][_0x48c580(0x40f)](null),this[_0x48c580(0x5f6)](),this[_0x48c580(0x304)]();}['_onConnectionFailed'](){const _0x40a4d9=_0x2683e6;var _0x3d0919;this[_0x40a4d9(0x27b)](),this[_0x40a4d9(0x293)]<((_0x3d0919=this['_configService'][_0x40a4d9(0x496)](sn))!=null?_0x3d0919:Gn)?(this['_messageService'][_0x40a4d9(0x4db)]({'key':'collaboration-session-retry','type':ge[_0x40a4d9(0x455)][_0x40a4d9(0x1f7)],'content':this[_0x40a4d9(0x347)]['t'](_0x40a4d9(0x1ed))}),this['_tryReconnect']()):this[_0x40a4d9(0x167)]['show']({'key':'collaboration-session-retry','type':ge[_0x40a4d9(0x455)][_0x40a4d9(0x272)],'content':this['_localeService']['t'](_0x40a4d9(0x28a))});}[_0x2683e6(0x2c2)](){const _0x12aff0=_0x2683e6,_0xb18f5=()=>{const _0x1d5e2e=_0x479a;this[_0x1d5e2e(0x1ee)]||this['reconnect']();},_0xbbedde=()=>{const _0x1aa6de=_0x479a;this[_0x1aa6de(0x1ee)]||document[_0x1aa6de(0x25f)]==='hidden'||this['reconnect']();};window['addEventListener'](_0x12aff0(0x230),_0xb18f5),document[_0x12aff0(0x4fc)](_0x12aff0(0x5b1),_0xbbedde);}[_0x2683e6(0x4f1)](){const _0x51fedc=_0x2683e6;var _0x3aea68;const _0x118e19=this[_0x51fedc(0x293)],_0x54a9aa=this[_0x51fedc(0x3d1)][_0x51fedc(0x496)](te),_0x364274=_0x118e19===0x0?0x0:((_0x3aea68=_0x54a9aa==null?void 0x0:_0x54a9aa[_0x51fedc(0x1d6)])!=null?_0x3aea68:Vn)*0x2**_0x118e19;this[_0x51fedc(0x4f3)]=window['setTimeout'](()=>{const _0x592515=_0x51fedc;clearTimeout(this[_0x592515(0x4f3)]),this[_0x592515(0x4f3)]=null,this[_0x592515(0x4a0)]();},_0x364274),this[_0x51fedc(0x293)]+=0x1;}['_onMessage'](_0x489b77,_0x1bf7f7){const _0x4fba9e=_0x2683e6,{cmd:_0xcbfb1}=_0x1bf7f7;_0xcbfb1===G[_0x4fba9e(0x1c3)]&&!this[_0x4fba9e(0x28c)]&&(_0x489b77['memberID']=_0x1bf7f7[_0x4fba9e(0x5ac)]['memberID'],this[_0x4fba9e(0x4ab)][_0x4fba9e(0x40f)](_0x489b77),this[_0x4fba9e(0x1bc)]['next'](se[_0x4fba9e(0x191)]),this['_socketReady']=!0x0,this[_0x4fba9e(0x4cf)]=null),_0xcbfb1===G[_0x4fba9e(0x530)]&&this[_0x4fba9e(0x5f6)](),this[_0x4fba9e(0x3d2)]();}[_0x2683e6(0x3d2)](){const _0x143910=_0x2683e6;var _0x33bb21;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0x143910(0x352)](()=>this[_0x143910(0x594)](),(_0x33bb21=this[_0x143910(0x3d1)][_0x143910(0x496)](tn))!=null?_0x33bb21:Fn);}[_0x2683e6(0x594)](){const _0x349eea=_0x2683e6;this[_0x349eea(0x1ee)]['send']({'cmd':G['HEARTBEAT']}),this[_0x349eea(0x178)]();}['_waitForHeartbeatResponse'](){const _0x5f9f5=_0x2683e6;var _0x251195;this[_0x5f9f5(0x51e)]=window[_0x5f9f5(0x352)](()=>this[_0x5f9f5(0x501)](),(_0x251195=this[_0x5f9f5(0x3d1)][_0x5f9f5(0x496)](Ct))!=null?_0x251195:nn);}[_0x2683e6(0x304)](){const _0x333fc9=_0x2683e6;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x333fc9(0x408)]),this[_0x333fc9(0x408)]=null);}[_0x2683e6(0x5f6)](){const _0x5a6d43=_0x2683e6;this[_0x5a6d43(0x51e)]!=null&&(clearTimeout(this[_0x5a6d43(0x51e)]),this[_0x5a6d43(0x51e)]=null);}},exports[_0x2683e6(0x17a)]=_i([Ee(0x0,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),Ee(0x1,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),Ee(0x2,ee[_0x2683e6(0x509)]),Ee(0x3,a[_0x2683e6(0x5a9)]),Ee(0x4,a[_0x2683e6(0x58f)]),Ee(0x5,bt)],exports[_0x2683e6(0x17a)]);const Y=[];for(let s=0x0;s<0x100;++s)Y[_0x2683e6(0x17e)]((s+0x100)['toString'](0x10)[_0x2683e6(0x237)](0x1));function ui(_0x44e223,_0x5056ee=0x0){const _0x3d385b=_0x2683e6;return(Y[_0x44e223[_0x5056ee+0x0]]+Y[_0x44e223[_0x5056ee+0x1]]+Y[_0x44e223[_0x5056ee+0x2]]+Y[_0x44e223[_0x5056ee+0x3]]+'-'+Y[_0x44e223[_0x5056ee+0x4]]+Y[_0x44e223[_0x5056ee+0x5]]+'-'+Y[_0x44e223[_0x5056ee+0x6]]+Y[_0x44e223[_0x5056ee+0x7]]+'-'+Y[_0x44e223[_0x5056ee+0x8]]+Y[_0x44e223[_0x5056ee+0x9]]+'-'+Y[_0x44e223[_0x5056ee+0xa]]+Y[_0x44e223[_0x5056ee+0xb]]+Y[_0x44e223[_0x5056ee+0xc]]+Y[_0x44e223[_0x5056ee+0xd]]+Y[_0x44e223[_0x5056ee+0xe]]+Y[_0x44e223[_0x5056ee+0xf]])[_0x3d385b(0x575)]();}let Je;const di=new Uint8Array(0x10);function fi(){const _0x1db702=_0x2683e6;if(!Je){if(typeof crypto>'u'||!crypto[_0x1db702(0x578)])throw new Error(_0x1db702(0x14e));Je=crypto[_0x1db702(0x578)][_0x1db702(0x580)](crypto);}return Je(di);}const vi=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x2683e6(0x5fd)][_0x2683e6(0x580)](crypto),Mt={'randomUUID':vi};function mi(_0x1d1765,_0x495ee4,_0x5d1841){const _0x1bca74=_0x2683e6;if(Mt[_0x1bca74(0x5fd)]&&!_0x495ee4&&!_0x1d1765)return Mt[_0x1bca74(0x5fd)]();_0x1d1765=_0x1d1765||{};const _0x133e20=_0x1d1765[_0x1bca74(0x3e7)]||(_0x1d1765[_0x1bca74(0x480)]||fi)();return _0x133e20[0x6]=_0x133e20[0x6]&0xf|0x40,_0x133e20[0x8]=_0x133e20[0x8]&0x3f|0x80,ui(_0x133e20);}var Si=Object[_0x2683e6(0x1e7)],pi=Object[_0x2683e6(0x181)],gi=(_0x1d536c,_0x26cec5,_0x5d0b93,_0x1aeebd)=>{const _0x46215e=_0x2683e6;for(var _0x938adc=_0x1aeebd>0x1?void 0x0:_0x1aeebd?pi(_0x26cec5,_0x5d0b93):_0x26cec5,_0x24fd64=_0x1d536c[_0x46215e(0x29a)]-0x1,_0x50132a;_0x24fd64>=0x0;_0x24fd64--)(_0x50132a=_0x1d536c[_0x24fd64])&&(_0x938adc=(_0x1aeebd?_0x50132a(_0x26cec5,_0x5d0b93,_0x938adc):_0x50132a(_0x938adc))||_0x938adc);return _0x1aeebd&&_0x938adc&&Si(_0x26cec5,_0x5d0b93,_0x938adc),_0x938adc;},Ze=(_0x32533d,_0x974040)=>(_0x1c5671,_0x1aec46)=>_0x974040(_0x1c5671,_0x1aec46,_0x32533d);let Be=class{constructor(_0x3c8a0f,_0x390b30,_0x174ebe){const _0x55a697=_0x2683e6;this[_0x55a697(0x3e9)]=_0x3c8a0f,this[_0x55a697(0x318)]=_0x390b30,this['_renderManagerService']=_0x174ebe;}[_0x2683e6(0x4d2)](_0x5adf5b){const _0x48f26f=_0x2683e6;this[_0x48f26f(0x199)](_0x5adf5b),this[_0x48f26f(0x16b)](_0x5adf5b);}[_0x2683e6(0x5b3)](_0x1eec75){const _0x10e446=_0x2683e6,{unitID:_0x2f5bdc}=_0x1eec75,_0x43919a=this['_renderManagerService'][_0x10e446(0x4f9)](_0x2f5bdc)[_0x10e446(0x175)](J[_0x10e446(0x5aa)]),{redoCache:_0x5957ad}=_0x43919a['getUndoRedoMutationParamsCache']();if(_0x5957ad[_0x10e446(0x29a)]===0x0)return _0x1eec75;let _0x5cd622=a[_0x10e446(0x256)][_0x10e446(0x43a)](_0x1eec75[_0x10e446(0x2a9)][0x0]);for(let _0x2fe2c4=0x0;_0x2fe2c4<_0x5957ad[_0x10e446(0x29a)];_0x2fe2c4++){const _0x5256d1={'id':_0x10e446(0x35c),'params':{..._0x5957ad[_0x2fe2c4]}},_0x3945bc=this[_0x10e446(0x318)][_0x10e446(0x2b0)](_0x5cd622,_0x5256d1,!0x1);if(S[_0x10e446(0x157)](_0x3945bc))throw _0x3945bc[_0x10e446(0x461)];_0x5cd622=_0x3945bc[_0x10e446(0x515)];}return{...a[_0x10e446(0x256)]['deepClone'](_0x1eec75),'mutations':[_0x5cd622]};}[_0x2683e6(0x199)](_0x34000e){const _0x5090e5=_0x2683e6,{unitID:_0x9fa2bc}=_0x34000e,_0x35eeb9=this[_0x5090e5(0x233)][_0x5090e5(0x4f9)](_0x9fa2bc)[_0x5090e5(0x175)](J[_0x5090e5(0x5aa)]),{undoCache:_0x566fad,redoCache:_0xafd102}=_0x35eeb9[_0x5090e5(0x2ba)]();if(_0x566fad[_0x5090e5(0x29a)]===0x0||_0xafd102[_0x5090e5(0x29a)]===0x0)return;const _0x5c7a07=[],_0x57862e=[];let _0x373fe7=a[_0x5090e5(0x256)]['deepClone'](_0x34000e[_0x5090e5(0x2a9)][0x0]),_0x3b7263=a[_0x5090e5(0x256)][_0x5090e5(0x43a)](_0x34000e[_0x5090e5(0x2a9)][0x0]);for(let _0x77d47a=_0x566fad['length']-0x1;_0x77d47a>=0x0;_0x77d47a--){const _0x457602={'id':'doc.mutation.rich-text-editing','params':{..._0x566fad[_0x77d47a]}},_0x5523c1={'id':'doc.mutation.rich-text-editing','params':{..._0xafd102[_0x77d47a]}},_0x5073b1=this['_transformService'][_0x5090e5(0x2b0)](_0x373fe7,_0x457602,!0x1),_0x4d3041=this[_0x5090e5(0x318)][_0x5090e5(0x2b0)](_0x3b7263,_0x5523c1,!0x1);if(S[_0x5090e5(0x157)](_0x5073b1))throw _0x5073b1[_0x5090e5(0x461)];if(S['isTransformMutationFailure'](_0x4d3041))throw _0x4d3041[_0x5090e5(0x461)];_0x5c7a07['unshift'](_0x5073b1[_0x5090e5(0x326)][_0x5090e5(0x55b)]),_0x57862e['unshift'](_0x4d3041[_0x5090e5(0x326)]['params']),_0x373fe7=_0x5073b1['m1Prime'],_0x3b7263=_0x4d3041['m1Prime'];}_0x35eeb9['setUndoRedoMutationParamsCache']({'undoCache':_0x5c7a07,'redoCache':_0x57862e});}[_0x2683e6(0x16b)](_0x1f6704){const _0x31afc9=_0x2683e6,{unitID:_0x2a611c}=_0x1f6704,_0x377496=this[_0x31afc9(0x233)]['getRenderById'](_0x2a611c)['with'](J[_0x31afc9(0x5aa)]),_0x4254b1=_0x377496['getActiveRange']();if(_0x4254b1==null)return;const _0x2cc654=[{'id':_0x31afc9(0x35c),'params':{'unitId':_0x1f6704[_0x31afc9(0x4a9)],'actions':null,'textRanges':[_0x4254b1]}}],_0x4569a8=this[_0x31afc9(0x318)][_0x31afc9(0x1b6)](_0x1f6704,_0x2cc654);if(!S[_0x31afc9(0x30a)](_0x4569a8))throw _0x4569a8[_0x31afc9(0x461)];const _0x48cd4a=_0x4569a8[_0x31afc9(0x326)][0x0][_0x31afc9(0x55b)][_0x31afc9(0x242)];Array['isArray'](_0x48cd4a)&&_0x48cd4a[_0x31afc9(0x29a)]&&_0x377496['setActiveRange'](_0x48cd4a[0x0]);}};Be=gi([Ze(0x0,a[_0x2683e6(0x22b)](a['Injector'])),Ze(0x1,S[_0x2683e6(0x1e3)]),Ze(0x2,K['IRenderManagerService'])],Be);var Ii=Object[_0x2683e6(0x1e7)],Ci=Object[_0x2683e6(0x181)],Ei=(_0x5affcc,_0x20b642,_0x2c3c54,_0x20f3dd)=>{const _0x4cd4bd=_0x2683e6;for(var _0x54aabb=_0x20f3dd>0x1?void 0x0:_0x20f3dd?Ci(_0x20b642,_0x2c3c54):_0x20b642,_0x515d57=_0x5affcc[_0x4cd4bd(0x29a)]-0x1,_0x5add45;_0x515d57>=0x0;_0x515d57--)(_0x5add45=_0x5affcc[_0x515d57])&&(_0x54aabb=(_0x20f3dd?_0x5add45(_0x20b642,_0x2c3c54,_0x54aabb):_0x5add45(_0x54aabb))||_0x54aabb);return _0x20f3dd&&_0x54aabb&&Ii(_0x20b642,_0x2c3c54,_0x54aabb),_0x54aabb;},Pe=(_0x2543a9,_0x209c33)=>(_0x2f227d,_0x12c92d)=>_0x209c33(_0x2f227d,_0x12c92d,_0x2543a9);exports[_0x2683e6(0x604)]=class extends a['Disposable']{constructor(_0x2c234a,_0x174390,_0x55f832,_0x18d1da,_0x4debe7){const _0x34be41=_0x2683e6;super(),I(this,_0x34be41(0x1b7),new Map()),I(this,_0x34be41(0x1aa),new Map()),I(this,_0x34be41(0x45d),!0x1),(this[_0x34be41(0x3d1)]=_0x2c234a,this[_0x34be41(0x3a6)]=_0x174390,this[_0x34be41(0x264)]=_0x55f832,this[_0x34be41(0x347)]=_0x18d1da,this[_0x34be41(0x285)]=_0x4debe7,this['_setupBeforeClosingHandler']());}[_0x2683e6(0x51a)](){const _0x494466=_0x2683e6;this[_0x494466(0x45d)]=!0x0;}[_0x2683e6(0x240)](){this['_disabled']=!0x1;}['dispose'](){const _0x18adc0=_0x2683e6;this['exhaustSavingTask']()[_0x18adc0(0x3a7)](()=>super[_0x18adc0(0x269)]());}async[_0x2683e6(0x27c)](_0x175835){const _0x4f0d37=_0x2683e6;return this[_0x4f0d37(0x45d)]?null:this[_0x4f0d37(0x3a6)]['getItem'](At(_0x175835));}async[_0x2683e6(0x3d9)](_0x483919,_0x4af811){const _0x54fcd5=_0x2683e6;return!!this[_0x54fcd5(0x3a6)]['setItem'](_0x483919,_0x4af811);}[_0x2683e6(0x2d4)](_0x396dcf,_0x51d461,_0x42e9db,_0x91d04d){const _0x1a84a5=_0x2683e6,_0x1b8e33=this['_revisionService']['getCurrentRevOfUnit'](_0x396dcf);this[_0x1a84a5(0x1b7)][_0x1a84a5(0x46f)](_0x396dcf,{'unitID':_0x396dcf,'type':_0x51d461,'awaitingChangeset':_0x42e9db,'mutations':_0x91d04d,'rev':_0x1b8e33}),this[_0x1a84a5(0x1aa)][_0x1a84a5(0x58e)](_0x396dcf)||this[_0x1a84a5(0x1ad)](_0x396dcf);}[_0x2683e6(0x1ad)](_0x71fc63){const _0x3793be=_0x2683e6,_0x286fe8=this[_0x3793be(0x508)]();_0x286fe8===0x0?this[_0x3793be(0x544)](_0x71fc63):this[_0x3793be(0x1aa)][_0x3793be(0x46f)](_0x71fc63,setTimeout(()=>this[_0x3793be(0x544)](_0x71fc63),_0x286fe8));}[_0x2683e6(0x508)](){const _0x204393=_0x2683e6;var _0x29fa22;return(_0x29fa22=this['_configService'][_0x204393(0x496)](rn))!=null?_0x29fa22:Yn;}['_saveCache'](_0x117513){const _0x20f295=_0x2683e6,_0x38694a=this[_0x20f295(0x1aa)][_0x20f295(0x553)](_0x117513);return _0x38694a!==void 0x0&&window[_0x20f295(0x24d)](_0x38694a),this[_0x20f295(0x3a6)][_0x20f295(0x579)](At(_0x117513),this[_0x20f295(0x1b7)]['get'](_0x117513))['then'](()=>this[_0x20f295(0x1aa)][_0x20f295(0x27e)](_0x117513));}async[_0x2683e6(0x353)](){const _0x18799e=_0x2683e6,_0x3eec05=[];this[_0x18799e(0x1aa)][_0x18799e(0x280)]((_0x21b8c2,_0x3f4b69)=>{const _0x4ad206=_0x18799e;window['clearTimeout'](_0x21b8c2),_0x3eec05['push'](this[_0x4ad206(0x544)](_0x3f4b69)[_0x4ad206(0x3a7)](()=>{const _0x3062a0=_0x4ad206;this[_0x3062a0(0x1aa)]['delete'](_0x3f4b69);}));}),await Promise[_0x18799e(0x344)](_0x3eec05);}[_0x2683e6(0x2bb)](){const _0x1edc34=_0x2683e6;this[_0x1edc34(0x427)](this[_0x1edc34(0x264)][_0x1edc34(0x21f)](()=>{const _0x4d7d7a=_0x1edc34;if(this[_0x4d7d7a(0x1aa)]['size'])return this[_0x4d7d7a(0x347)]['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x2683e6(0x604)]=Ei([Pe(0x0,a['IConfigService']),Pe(0x1,a[_0x2683e6(0x5be)]),Pe(0x2,ee[_0x2683e6(0x246)]),Pe(0x3,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),Pe(0x4,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)]))],exports[_0x2683e6(0x604)]);function At(_0x2760cd){return'unit-cache-'+_0x2760cd;}var bi=Object[_0x2683e6(0x1e7)],Ti=Object[_0x2683e6(0x181)],Ri=(_0x2f845c,_0x4e8c89,_0xe85416,_0x12f030)=>{const _0x298d5b=_0x2683e6;for(var _0x367cd6=_0x12f030>0x1?void 0x0:_0x12f030?Ti(_0x4e8c89,_0xe85416):_0x4e8c89,_0x276f4a=_0x2f845c[_0x298d5b(0x29a)]-0x1,_0x36db53;_0x276f4a>=0x0;_0x276f4a--)(_0x36db53=_0x2f845c[_0x276f4a])&&(_0x367cd6=(_0x12f030?_0x36db53(_0x4e8c89,_0xe85416,_0x367cd6):_0x36db53(_0x367cd6))||_0x367cd6);return _0x12f030&&_0x367cd6&&bi(_0x4e8c89,_0xe85416,_0x367cd6),_0x367cd6;},Qe=(_0x215593,_0x14d349)=>(_0x2384d5,_0x4508c1)=>_0x14d349(_0x2384d5,_0x4508c1,_0x215593);function yi(_0x2f11fa){const _0x45974c=_0x2683e6,{unitID:_0x806581,mutations:_0x20aa1c}=_0x2f11fa;return{'unitId':_0x806581,'subUnitId':_0x20aa1c[0x0][_0x45974c(0x55b)][_0x45974c(0x305)]};}let ke=class{constructor(_0x4905a4,_0x4d8d22,_0x38d299){const _0x23ae77=_0x2683e6;this[_0x23ae77(0x3e9)]=_0x4905a4,this['_transformService']=_0x4d8d22,this['_instanceService']=_0x38d299;}[_0x2683e6(0x46a)](_0x5b928f){const _0x4b5b2b=_0x2683e6;var _0x9756d5,_0x36b215,_0xf83e4b,_0x3ecd57;const _0x96e948=this[_0x4b5b2b(0x3e9)][_0x4b5b2b(0x553)](k[_0x4b5b2b(0x550)]),{unitId:_0x28d656,subUnitId:_0x321826}=yi(_0x5b928f),_0x4eddec=_0x96e948['getWorkbookSelections'](_0x28d656)['getCurrentSelections'](),_0x170fd1=(_0x36b215=(_0x9756d5=this['_instanceService'][_0x4b5b2b(0x4af)](_0x28d656))==null?void 0x0:_0x9756d5[_0x4b5b2b(0x399)]())==null?void 0x0:_0x36b215[_0x4b5b2b(0x276)]();if(_0x4eddec[_0x4b5b2b(0x29a)]===0x0||!_0x28d656||!_0x321826)return;const _0x34d15c=[{'id':k[_0x4b5b2b(0x227)]['id'],'params':{'unitId':_0x28d656,'subUnitId':_0x170fd1,'selections':a[_0x4b5b2b(0x256)]['deepClone'](_0x4eddec)}}],_0x2370fe=this[_0x4b5b2b(0x318)][_0x4b5b2b(0x1b6)](_0x5b928f,_0x34d15c);if(!S[_0x4b5b2b(0x30a)](_0x2370fe))throw _0x2370fe[_0x4b5b2b(0x461)];const _0x4860b9=(_0x3ecd57=(_0xf83e4b=_0x2370fe[_0x4b5b2b(0x326)][0x0])==null?void 0x0:_0xf83e4b['params'])==null?void 0x0:_0x3ecd57['selections'];if(Array['isArray'](_0x4860b9)&&_0x4860b9['length']){if(_0x4860b9[_0x4b5b2b(0x29a)]===_0x34d15c[0x0][_0x4b5b2b(0x55b)][_0x4b5b2b(0x50b)]['length']&&_0x4860b9[_0x4b5b2b(0x333)]((_0x3f31a7,_0x13f161)=>a['Rectangle']['equals'](_0x3f31a7['range'],_0x34d15c[0x0][_0x4b5b2b(0x55b)][_0x4b5b2b(0x50b)][_0x13f161][_0x4b5b2b(0x1c7)])))return;this[_0x4b5b2b(0x3e9)][_0x4b5b2b(0x553)](a['ICommandService'])[_0x4b5b2b(0x511)](k[_0x4b5b2b(0x227)]['id'],{'unitId':_0x28d656,'subUnitId':_0x170fd1,'selections':_0x4860b9});}}};ke=Ri([Qe(0x0,a[_0x2683e6(0x22b)](a['Injector'])),Qe(0x1,S[_0x2683e6(0x1e3)]),Qe(0x2,a[_0x2683e6(0x468)])],ke);const qe=a[_0x2683e6(0x608)](_0x2683e6(0x42d));var un=(_0x467e9e=>(_0x467e9e[_0x467e9e[_0x2683e6(0x1f1)]=0x0]=_0x2683e6(0x1f1),_0x467e9e[_0x467e9e[_0x2683e6(0x4c1)]=0x1]='OTHER_CLIENTS_EDITING',_0x467e9e))(un||{});const Nt=0x7530,Lt=_0x2683e6(0x471);class Oi extends a['Disposable']{constructor(){const _0x2c61f7=_0x2683e6;super(),I(this,_0x2c61f7(0x400),a[_0x2c61f7(0x256)][_0x2c61f7(0x59e)]()),I(this,_0x2c61f7(0x1e9),new Set()),I(this,_0x2c61f7(0x229),new Map()),I(this,_0x2c61f7(0x557),null),I(this,'_clearOtherTimers',new Map()),I(this,_0x2c61f7(0x1b1),new Map()),this[_0x2c61f7(0x4ea)]();}[_0x2683e6(0x269)](){const _0x541e16=_0x2683e6;super[_0x541e16(0x269)](),this[_0x541e16(0x450)][_0x541e16(0x280)]((_0x32e61f,_0x46ab9e)=>this[_0x541e16(0x302)](_0x46ab9e)),this['_heartbeatTimer']&&window['clearInterval'](this[_0x541e16(0x557)]);}[_0x2683e6(0x195)](_0x4848d4){const _0x583eb0=_0x2683e6;return this[_0x583eb0(0x4b0)](_0x4848d4)[_0x583eb0(0x36b)](A[_0x583eb0(0x381)]());}[_0x2683e6(0x1b4)](_0x1d0f4c){const _0x439dae=_0x2683e6;this[_0x439dae(0x1e9)][_0x439dae(0x4b4)]===0x0&&this['_scheduleHeartbeat'](),this['_selfUnitIDs'][_0x439dae(0x494)](_0x1d0f4c),this[_0x439dae(0x549)]({'type':0x0,'memberID':this[_0x439dae(0x400)],'unitIDs':[_0x1d0f4c],'isForwarded':!0x1});}[_0x2683e6(0x5d7)](_0x360001){const _0x38ce64=_0x2683e6;this['_selfUnitIDs'][_0x38ce64(0x27e)](_0x360001),this[_0x38ce64(0x1e9)][_0x38ce64(0x4b4)]===0x0&&this[_0x38ce64(0x557)]&&window[_0x38ce64(0x251)](this[_0x38ce64(0x557)]);}[_0x2683e6(0x4ea)](){const _0x4a50af=_0x2683e6;this[_0x4a50af(0x427)](a[_0x4a50af(0x454)](A[_0x4a50af(0x5d5)](window,_0x4a50af(0x3ea))[_0x4a50af(0x44d)](_0x3e1d99=>{const _0x5c4731=_0x4a50af;if(_0x3e1d99[_0x5c4731(0x327)]!==Lt||!_0x3e1d99[_0x5c4731(0x59a)])return;const _0x365b7c=JSON['parse'](_0x3e1d99[_0x5c4731(0x59a)]);this[_0x5c4731(0x430)](_0x365b7c);}))),window[_0x4a50af(0x4fc)](_0x4a50af(0x36a),()=>this[_0x4a50af(0x549)]({'type':0x1,'memberID':this[_0x4a50af(0x400)],'unitIDs':Array['from'](this['_selfUnitIDs'])}));}['_handleEvent'](_0x47aef6){const _0x5d7a61=_0x2683e6;switch(_0x47aef6['type']){case 0x0:this[_0x5d7a61(0x431)](_0x47aef6);break;case 0x1:this[_0x5d7a61(0x45c)](_0x47aef6);break;case 0x2:this[_0x5d7a61(0x586)](_0x47aef6);break;}}[_0x2683e6(0x431)](_0x1173e2){const _0x2fb763=_0x2683e6,{unitIDs:_0x39b95a,memberID:_0x19f2fc,isForwarded:_0x347ad5}=_0x1173e2;_0x39b95a['forEach'](_0x3f191e=>{const _0x4c1f00=_0x479a;if(!_0x347ad5&&this['_unitOnClients'][_0x4c1f00(0x58e)](_0x3f191e)&&this[_0x4c1f00(0x4b0)](_0x3f191e)['next'](0x1),!this['_unitOnClients'][_0x4c1f00(0x58e)](_0x3f191e)||!this[_0x4c1f00(0x229)][_0x4c1f00(0x553)](_0x3f191e)['has'](_0x19f2fc)){const _0x4ae18b=this['_unitOnClients'][_0x4c1f00(0x553)](_0x3f191e)||new Set();_0x4ae18b[_0x4c1f00(0x494)](_0x19f2fc),this[_0x4c1f00(0x229)][_0x4c1f00(0x46f)](_0x3f191e,_0x4ae18b),this[_0x4c1f00(0x5ea)](_0x19f2fc);}}),_0x347ad5||this['_send']({'type':0x0,'memberID':this[_0x2fb763(0x400)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}[_0x2683e6(0x5ea)](_0x21d5a5){const _0x21a585=_0x2683e6;this[_0x21a585(0x302)](_0x21d5a5);const _0x503ef6=window[_0x21a585(0x352)](()=>{const _0x4c82b8=_0x21a585;this[_0x4c82b8(0x229)][_0x4c82b8(0x280)](_0xaede55=>{_0xaede55['delete'](_0x21d5a5);});},Nt*0x2);this[_0x21a585(0x450)][_0x21a585(0x46f)](_0x21d5a5,_0x503ef6);}['_removeClearOtherTimer'](_0x5738bc){const _0x3eac68=_0x2683e6;if(this[_0x3eac68(0x450)]['has'](_0x5738bc)){const _0x255612=this[_0x3eac68(0x450)][_0x3eac68(0x553)](_0x5738bc);_0x255612&&window['clearTimeout'](_0x255612),this['_clearOtherTimers']['set'](_0x5738bc,null);}}['_handleLeaveEvent'](_0x23685d){const _0x314b54=_0x2683e6,{memberID:_0x3d3356,unitIDs:_0x559dc7}=_0x23685d;_0x559dc7[_0x314b54(0x280)](_0xe0e7e0=>{const _0x47f842=_0x314b54;var _0x34201a;const _0xbdaa35=this[_0x47f842(0x229)][_0x47f842(0x553)](_0xe0e7e0);_0xbdaa35&&(_0xbdaa35[_0x47f842(0x27e)](_0x3d3356),(_0x34201a=this[_0x47f842(0x4b0)](_0xe0e7e0))==null||_0x34201a[_0x47f842(0x40f)](_0xbdaa35[_0x47f842(0x4b4)]===0x0?0x0:0x1));}),this[_0x314b54(0x302)](_0x3d3356);}[_0x2683e6(0x586)](_0x533375){const _0x3bb526=_0x2683e6;this[_0x3bb526(0x5ea)](_0x533375[_0x3bb526(0x30e)]);}[_0x2683e6(0x549)](_0x29e642){const _0x373fb4=_0x2683e6;localStorage['setItem'](Lt,JSON[_0x373fb4(0x40e)](_0x29e642));}[_0x2683e6(0x5ad)](){const _0x2fa0b0=_0x2683e6;this[_0x2fa0b0(0x557)]=window[_0x2fa0b0(0x489)](()=>{const _0xbf7339=_0x2fa0b0;this[_0xbf7339(0x549)]({'type':0x2,'memberID':this[_0xbf7339(0x400)]});},Nt);}[_0x2683e6(0x4b0)](_0x14929d){const _0x1fd09a=_0x2683e6;return this[_0x1fd09a(0x1b1)]['has'](_0x14929d)||this[_0x1fd09a(0x1b1)][_0x1fd09a(0x46f)](_0x14929d,new A['BehaviorSubject'](0x0)),this['_unitStatus']['get'](_0x14929d);}}var Di=Object[_0x2683e6(0x1e7)],wi=Object['getOwnPropertyDescriptor'],Pi=(_0x3fabb1,_0x31d119,_0x2db250,_0x2e09dd)=>{const _0x17c7e2=_0x2683e6;for(var _0x17930e=_0x2e09dd>0x1?void 0x0:_0x2e09dd?wi(_0x31d119,_0x2db250):_0x31d119,_0x26f90d=_0x3fabb1[_0x17c7e2(0x29a)]-0x1,_0x102239;_0x26f90d>=0x0;_0x26f90d--)(_0x102239=_0x3fabb1[_0x26f90d])&&(_0x17930e=(_0x2e09dd?_0x102239(_0x31d119,_0x2db250,_0x17930e):_0x102239(_0x17930e))||_0x17930e);return _0x2e09dd&&_0x17930e&&Di(_0x31d119,_0x2db250,_0x17930e),_0x17930e;},et=(_0x4958ea,_0x119bf2)=>(_0x2ab780,_0xf1857f)=>_0x119bf2(_0x2ab780,_0xf1857f,_0x4958ea);let We=class{constructor(_0x86f0cf,_0x82a47,_0xadebdf){const _0x52b7e1=_0x2683e6;this[_0x52b7e1(0x3e9)]=_0x86f0cf,this['_transformService']=_0x82a47,this[_0x52b7e1(0x42e)]=_0xadebdf;}['transformStateCache'](_0x545ea5){const _0x1c0d4d=_0x2683e6;this[_0x1c0d4d(0x5c3)](_0x545ea5);}['transformRemoteChangeset'](_0x3604c7){const _0xc2dc98=_0x2683e6,{unitID:_0x171d8a}=_0x3604c7,{collaboration:_0x433186}=this['_docStateChangeManagerService']['getStateCache'](_0x171d8a);if(_0x433186[_0xc2dc98(0x29a)]===0x0)return _0x3604c7;let _0x56263d=a[_0xc2dc98(0x256)][_0xc2dc98(0x43a)](_0x3604c7[_0xc2dc98(0x2a9)][0x0]);for(let _0x25d0ff=0x0;_0x25d0ff<_0x433186[_0xc2dc98(0x29a)];_0x25d0ff++){const _0x1f1d04={'id':_0xc2dc98(0x35c),'params':{'unitId':_0x433186[_0x25d0ff][_0xc2dc98(0x5e6)],..._0x433186[_0x25d0ff]['redoState']}},_0x1fee48=this[_0xc2dc98(0x318)]['transformMutation'](_0x56263d,_0x1f1d04,!0x1);if(S['isTransformMutationFailure'](_0x1fee48))throw _0x1fee48['error'];_0x56263d=_0x1fee48[_0xc2dc98(0x515)];}return{...a[_0xc2dc98(0x256)][_0xc2dc98(0x43a)](_0x3604c7),'mutations':[_0x56263d]};}['_transformHistoryAndStateStack'](_0x3a05b7){const _0xe79e96=_0x2683e6,{unitID:_0x5e63ee}=_0x3a05b7,{history:_0x50973b,collaboration:_0x9035d5}=this[_0xe79e96(0x42e)][_0xe79e96(0x329)](_0x5e63ee);if(_0x50973b[_0xe79e96(0x29a)]===0x0&&_0x9035d5[_0xe79e96(0x29a)]===0x0)return;const _0x19a9b5=[],_0x1d2f84=[];let _0x30dc42=a[_0xe79e96(0x256)][_0xe79e96(0x43a)](_0x3a05b7[_0xe79e96(0x2a9)][0x0]),_0x4aa146=a[_0xe79e96(0x256)][_0xe79e96(0x43a)](_0x3a05b7[_0xe79e96(0x2a9)][0x0]);for(let _0x20d6cb=_0x50973b[_0xe79e96(0x29a)]-0x1;_0x20d6cb>=0x0;_0x20d6cb--){const _0x4abda4={'id':_0xe79e96(0x35c),'params':{'unitId':_0x50973b[_0x20d6cb][_0xe79e96(0x5e6)],..._0x50973b[_0x20d6cb]['undoState']}},_0x50594e={'id':_0xe79e96(0x35c),'params':{'unitId':_0x50973b[_0x20d6cb][_0xe79e96(0x5e6)],..._0x50973b[_0x20d6cb][_0xe79e96(0x266)]}},_0x5ef897=this[_0xe79e96(0x318)]['transformMutation'](_0x30dc42,_0x4abda4,!0x1),_0x73a6be=this[_0xe79e96(0x318)]['transformMutation'](_0x4aa146,_0x50594e,!0x1);if(S[_0xe79e96(0x157)](_0x5ef897))throw _0x5ef897[_0xe79e96(0x461)];if(S[_0xe79e96(0x157)](_0x73a6be))throw _0x73a6be['error'];_0x19a9b5[_0xe79e96(0x309)]({..._0x50973b[_0x20d6cb],'undoState':_0x5ef897[_0xe79e96(0x326)][_0xe79e96(0x55b)],'redoState':_0x73a6be[_0xe79e96(0x326)]['params']}),_0x30dc42=_0x5ef897[_0xe79e96(0x515)],_0x4aa146=_0x73a6be[_0xe79e96(0x515)];}_0x30dc42=a['Tools'][_0xe79e96(0x43a)](_0x3a05b7[_0xe79e96(0x2a9)][0x0]),_0x4aa146=a[_0xe79e96(0x256)][_0xe79e96(0x43a)](_0x3a05b7[_0xe79e96(0x2a9)][0x0]);for(let _0x4220ed=_0x9035d5['length']-0x1;_0x4220ed>=0x0;_0x4220ed--){const _0x36deb4={'id':_0xe79e96(0x35c),'params':{'unitId':_0x9035d5[_0x4220ed][_0xe79e96(0x5e6)],..._0x9035d5[_0x4220ed][_0xe79e96(0x503)]}},_0x5b164e={'id':_0xe79e96(0x35c),'params':{'unitId':_0x9035d5[_0x4220ed][_0xe79e96(0x5e6)],..._0x9035d5[_0x4220ed]['redoState']}},_0x50ee21=this['_transformService'][_0xe79e96(0x2b0)](_0x30dc42,_0x36deb4,!0x1),_0x872b6e=this[_0xe79e96(0x318)][_0xe79e96(0x2b0)](_0x4aa146,_0x5b164e,!0x1);if(S['isTransformMutationFailure'](_0x50ee21))throw _0x50ee21[_0xe79e96(0x461)];if(S[_0xe79e96(0x157)](_0x872b6e))throw _0x872b6e[_0xe79e96(0x461)];_0x1d2f84[_0xe79e96(0x309)]({..._0x9035d5[_0x4220ed],'undoState':_0x50ee21[_0xe79e96(0x326)][_0xe79e96(0x55b)],'redoState':_0x872b6e[_0xe79e96(0x326)][_0xe79e96(0x55b)]}),_0x30dc42=_0x50ee21['m1Prime'],_0x4aa146=_0x872b6e[_0xe79e96(0x515)];}this[_0xe79e96(0x42e)]['setStateCache'](_0x5e63ee,{'history':_0x19a9b5,'collaboration':_0x1d2f84});}};We=Pi([et(0x0,a['Inject'](a['Injector'])),et(0x1,S[_0x2683e6(0x1e3)]),et(0x2,a[_0x2683e6(0x22b)](J['DocStateChangeManagerService']))],We);function dn(_0x1cd40b){const _0x11d903=_0x2683e6;let _0x3bda20='';for(const _0x3fdc12 of _0x1cd40b){const {startOffset:_0x1b2edc,endOffset:_0x7a3dea,isActive:_0x2d556a,rangeType:_0x4a5193,segmentId:_0x395922,segmentPage:_0x56e062}=_0x3fdc12;_0x3bda20[_0x11d903(0x29a)]&&(_0x3bda20+=','),_0x3bda20+=_0x1b2edc+':'+_0x7a3dea+':'+(_0x2d556a?'1':'0')+':'+_0x4a5193+':'+_0x395922+':'+_0x56e062;}return _0x3bda20;}function Ui(_0x3aa677){const _0x30e1de=_0x2683e6,_0x27f4a5=_0x3aa677[_0x30e1de(0x18f)](','),_0x2e702f=[];for(const _0x380194 of _0x27f4a5){const [_0x3a5f99,_0x2cf709,_0x49da26,_0x10086b,_0x532b51,_0x476cf4]=_0x380194[_0x30e1de(0x18f)](':');_0x2e702f[_0x30e1de(0x17e)]({'startOffset':Number(_0x3a5f99),'endOffset':Number(_0x2cf709),'collapsed':_0x3a5f99===_0x2cf709,'isActive':_0x49da26==='1','rangeType':_0x10086b===a[_0x30e1de(0x5ec)][_0x30e1de(0x350)]?a['DOC_RANGE_TYPE']['TEXT']:a['DOC_RANGE_TYPE'][_0x30e1de(0x3bf)],'segmentId':typeof _0x532b51==_0x30e1de(0x516)?String(_0x532b51):'','segmentPage':Number(_0x476cf4!=null?_0x476cf4:-0x1)});}return _0x2e702f['some'](_0x3eebc0=>_0x3eebc0[_0x30e1de(0x2da)])||(_0x2e702f[0x0]['isActive']=!0x0),_0x2e702f;}class Rt extends a[_0x2683e6(0x1e0)]{constructor(){const _0x401977=_0x2683e6;super(...arguments),I(this,_0x401977(0x4d6),new A[(_0x401977(0x1ce))](null)),I(this,_0x401977(0x409),this['_collabCursorState$'][_0x401977(0x4f2)]());}['syncEditingCollabCursor'](_0x9e1878){const _0xa032f3=_0x2683e6,{unitID:_0x159499,memberID:_0x5c74b6,textRanges:_0x1b407d}=_0x9e1878,_0x4cdea7=dn(_0x1b407d);if(_0x4cdea7==='')return;const _0x5c4c39={'unitID':_0x159499,'memberID':_0x5c74b6,'selection':_0x4cdea7};this[_0xa032f3(0x4d6)][_0xa032f3(0x40f)](_0x5c4c39);}}var Mi=Object[_0x2683e6(0x1e7)],Ai=Object[_0x2683e6(0x181)],Ni=(_0x31dfec,_0x3f3bca,_0x51ba97,_0x32f797)=>{const _0x3bc5ea=_0x2683e6;for(var _0x55420d=_0x32f797>0x1?void 0x0:_0x32f797?Ai(_0x3f3bca,_0x51ba97):_0x3f3bca,_0x52f272=_0x31dfec[_0x3bc5ea(0x29a)]-0x1,_0xc1635e;_0x52f272>=0x0;_0x52f272--)(_0xc1635e=_0x31dfec[_0x52f272])&&(_0x55420d=(_0x32f797?_0xc1635e(_0x3f3bca,_0x51ba97,_0x55420d):_0xc1635e(_0x55420d))||_0x55420d);return _0x32f797&&_0x55420d&&Mi(_0x3f3bca,_0x51ba97,_0x55420d),_0x55420d;},xt=(_0x2bfd18,_0x21c54a)=>(_0x332dab,_0x38f91c)=>_0x21c54a(_0x332dab,_0x38f91c,_0x2bfd18);let Fe=class{constructor(_0x306df2,_0x44477e){const _0x4e326d=_0x2683e6;this['_injector']=_0x306df2,this[_0x4e326d(0x318)]=_0x44477e;}['transformSelections'](_0x3e1a8d){const _0x2b42fa=_0x2683e6;var _0x396b17;const _0x6610a7=this[_0x2b42fa(0x3e9)][_0x2b42fa(0x553)](ye[_0x2b42fa(0x53e)]),_0x3dcdf8=(_0x396b17=_0x6610a7[_0x2b42fa(0x500)]())!=null?_0x396b17:[];if(_0x3dcdf8[_0x2b42fa(0x29a)]===0x0)return;const _0x6c8ac=_0x3e1a8d[_0x2b42fa(0x4a9)],_0x1019ab=[{'id':_0x2b42fa(0x35c),'params':{'unitId':_0x6c8ac,'actions':null,'textRanges':_0x3dcdf8}}],_0xc44622=this['_transformService']['transformMutationsWithChangeset'](_0x3e1a8d,_0x1019ab);if(!S[_0x2b42fa(0x30a)](_0xc44622))throw _0xc44622[_0x2b42fa(0x461)];const _0x4b491d=_0xc44622[_0x2b42fa(0x326)][0x0]['params'][_0x2b42fa(0x242)];Array[_0x2b42fa(0x1c2)](_0x4b491d)&&_0x4b491d[_0x2b42fa(0x29a)]&&_0x6610a7[_0x2b42fa(0x29c)](_0x4b491d,{'unitId':_0x6c8ac,'subUnitId':_0x6c8ac},!0x1);}};Fe=Ni([xt(0x0,a[_0x2683e6(0x22b)](a['Injector'])),xt(0x1,S[_0x2683e6(0x1e3)])],Fe);const Li=new Set([k[_0x2683e6(0x4f7)]['id']]);function jt(_0x40776b,_0x488cc0,_0x428548,_0x5cc9e3,_0x46076f){const _0xe6ff8e=_0x2683e6;var _0x12b856,_0x520ddb,_0xed7580,_0x480c33;const _0x9fc6c5=[];for(const _0x3f5222 of _0x40776b)if(Li[_0xe6ff8e(0x58e)](_0x3f5222['id'])){if(_0x9fc6c5[_0xe6ff8e(0x29a)]>0x0)break;_0x9fc6c5[_0xe6ff8e(0x17e)](_0x3f5222);break;}else _0x9fc6c5['push'](_0x3f5222);const _0x5a21b7=(_0x520ddb=(_0x12b856=_0x46076f[_0xe6ff8e(0x39d)]())==null?void 0x0:_0x12b856[_0xe6ff8e(0x3be)])!=null?_0x520ddb:_0xe6ff8e(0x507),_0x5bd2ff=(_0x480c33=(_0xed7580=_0x46076f[_0xe6ff8e(0x39d)]())==null?void 0x0:_0xed7580[_0xe6ff8e(0x30e)])!=null?_0x480c33:_0xe6ff8e(0x507);return{'changeset':{'unitID':_0x488cc0,'type':S[_0xe6ff8e(0x26e)](_0x428548[_0xe6ff8e(0x16e)](_0x488cc0)),'baseRev':_0x5cc9e3[_0xe6ff8e(0x581)](_0x488cc0),'revision':0x0,'userID':_0x5a21b7,'memberID':_0x5bd2ff,'mutations':_0x9fc6c5},'pendingMutations':_0x40776b[_0xe6ff8e(0x237)](_0x9fc6c5[_0xe6ff8e(0x29a)])};}function xi(_0x14b86e,_0x2314f6,_0x31250a,_0x59faac,_0x520bf8){const _0x1529ba=_0x2683e6;var _0x5bf4da,_0xac7570,_0x5950ac,_0x380ee9;const _0x2c52fb=[_0x14b86e[_0x1529ba(0x49a)]((_0x4bd79e,_0x26d79a)=>{const _0xe5117b=_0x1529ba;var _0x1c0d93;const {id:_0x542722}=_0x4bd79e,{id:_0x3a4891,type:_0x22a230}=_0x26d79a,_0x1cb7a0=(_0x1c0d93=_0x4bd79e['params'])!=null?_0x1c0d93:{'actions':null},_0x17fbfe=_0x26d79a[_0xe5117b(0x55b)];if(_0x542722&&_0x542722!==_0x3a4891)throw new Error(_0xe5117b(0x56f)+_0x542722+_0xe5117b(0x47c)+_0x3a4891+'.');return{..._0x4bd79e,'id':_0x3a4891,'type':_0x22a230,'params':{'unitId':_0x17fbfe[_0xe5117b(0x5e6)],'textRanges':_0x17fbfe['textRanges'],'actions':a['JSONX']['compose'](_0x1cb7a0[_0xe5117b(0x2ab)],_0x17fbfe[_0xe5117b(0x2ab)])}};},{})],_0x4dcec5=(_0xac7570=(_0x5bf4da=_0x520bf8[_0x1529ba(0x39d)]())==null?void 0x0:_0x5bf4da[_0x1529ba(0x3be)])!=null?_0xac7570:_0x1529ba(0x507),_0x1097eb=(_0x380ee9=(_0x5950ac=_0x520bf8['getCurrentUser']())==null?void 0x0:_0x5950ac[_0x1529ba(0x30e)])!=null?_0x380ee9:'unknown';return{'changeset':{'unitID':_0x2314f6,'type':S[_0x1529ba(0x26e)](_0x31250a[_0x1529ba(0x16e)](_0x2314f6)),'baseRev':_0x59faac[_0x1529ba(0x581)](_0x2314f6),'revision':0x0,'userID':_0x4dcec5,'memberID':_0x1097eb,'mutations':_0x2c52fb},'pendingMutations':[]};}function fn(_0x2794cf,_0x5bf8c5){const _0x5b999e=_0x2683e6,_0xa88dee=new A['ReplaySubject'](0x1);return setTimeout(()=>_0xa88dee[_0x5b999e(0x40f)](_0x5bf8c5),_0x2794cf),_0xa88dee[_0x5b999e(0x4f2)]()['pipe'](A[_0x5b999e(0x282)](0x1));}const ji={'id':k[_0x2683e6(0x514)]['id'],'type':a['CommandType'][_0x2683e6(0x3fd)],'params':{}};function _0x479a(_0x4277e8,_0x40d3c5){const _0x21f6c9=_0x21f6();return _0x479a=function(_0x479a10,_0x207df7){_0x479a10=_0x479a10-0x14d;let _0x73105=_0x21f6c9[_0x479a10];return _0x73105;},_0x479a(_0x4277e8,_0x40d3c5);}var $i=Object['defineProperty'],Hi=Object['getOwnPropertyDescriptor'],Ie=(_0x594b71,_0x550e9c,_0x464d5b,_0x4125b5)=>{for(var _0x3be3d4=_0x4125b5>0x1?void 0x0:_0x4125b5?Hi(_0x550e9c,_0x464d5b):_0x550e9c,_0x3ac341=_0x594b71['length']-0x1,_0x23fcc0;_0x3ac341>=0x0;_0x3ac341--)(_0x23fcc0=_0x594b71[_0x3ac341])&&(_0x3be3d4=(_0x4125b5?_0x23fcc0(_0x550e9c,_0x464d5b,_0x3be3d4):_0x23fcc0(_0x3be3d4))||_0x3be3d4);return _0x4125b5&&_0x3be3d4&&$i(_0x550e9c,_0x464d5b,_0x3be3d4),_0x3be3d4;},N=(_0x40c31f,_0x5ceba4)=>(_0x7b71b5,_0x22141c)=>_0x5ceba4(_0x7b71b5,_0x22141c,_0x40c31f),q=(_0x18fdfc=>(_0x18fdfc[_0x2683e6(0x325)]='not_collab',_0x18fdfc[_0x2683e6(0x244)]=_0x2683e6(0x588),_0x18fdfc['PENDING']=_0x2683e6(0x4fa),_0x18fdfc[_0x2683e6(0x2c7)]=_0x2683e6(0x2d6),_0x18fdfc['AWAITING_WITH_PENDING']=_0x2683e6(0x281),_0x18fdfc[_0x2683e6(0x4c9)]=_0x2683e6(0x2ef),_0x18fdfc[_0x2683e6(0x476)]=_0x2683e6(0x2f7),_0x18fdfc['OFFLINE']=_0x2683e6(0x39a),_0x18fdfc))(q||{});const vn=0xea60;class Ce{constructor(_0x44654e,_0x44eea2,_0x1ae6f8,_0x5e56ce,_0x4007ea,_0x32e5e4,_0x484b87,_0x430c04,_0x1c8038){const _0x1bca9e=_0x2683e6;I(this,_0x1bca9e(0x36d),null),I(this,_0x1bca9e(0x4b8),[]),(this[_0x1bca9e(0x4a9)]=_0x44654e,this[_0x1bca9e(0x44a)]=_0x44eea2,this['_handler']=_0x4007ea,this['_commandService']=_0x32e5e4,this[_0x1bca9e(0x25d)]=_0x484b87,this[_0x1bca9e(0x285)]=_0x430c04,this['_localCacheService']=_0x1c8038,this['_awaitingChangeset']=_0x1ae6f8,this[_0x1bca9e(0x4b8)]=_0x5e56ce);}['_checkMissing'](_0x102c78){const _0xfcc54f=_0x2683e6,_0x15720f=this[_0xfcc54f(0x285)]['getCurrentRevOfUnit'](this[_0xfcc54f(0x4a9)]);return _0x102c78['revision']>_0x15720f+0x1?(this[_0xfcc54f(0x474)]['onMissingChangesets']({'from':_0x15720f,'to':_0x102c78['revision']-0x1}),!0x0):!0x1;}[_0x2683e6(0x28b)](_0x35c060){const _0x3689eb=_0x2683e6;this['_undoRedoService'][_0x3689eb(0x3dd)](this[_0x3689eb(0x4a9)],_0x35c060);}[_0x2683e6(0x48f)](_0x99f95c){const _0x5900a6=_0x2683e6;var _0x5fe67a,_0x39d1c4;(_0x39d1c4=(_0x5fe67a=this[_0x5900a6(0x474)])[_0x5900a6(0x366)])==null||_0x39d1c4[_0x5900a6(0x54a)](_0x5fe67a,_0x99f95c);}[_0x2683e6(0x4fb)](_0x4db90d){const _0xf77a86=_0x2683e6;var _0x142081,_0x570d56;return(_0x570d56=(_0x142081=this[_0xf77a86(0x474)])[_0xf77a86(0x32f)])==null?void 0x0:_0x570d56[_0xf77a86(0x54a)](_0x142081,_0x4db90d);}['_transformStateCache'](_0x5c6979){const _0x46c7eb=_0x2683e6;var _0x4ab487,_0xf3c1ef;return(_0xf3c1ef=(_0x4ab487=this[_0x46c7eb(0x474)])[_0x46c7eb(0x458)])==null?void 0x0:_0xf3c1ef[_0x46c7eb(0x54a)](_0x4ab487,_0x5c6979);}[_0x2683e6(0x504)](_0x5105f1){const _0x183b76=_0x2683e6;var _0x2956c9,_0x5ed9ec,_0x372ff3;return(_0x372ff3=(_0x5ed9ec=(_0x2956c9=this[_0x183b76(0x474)])[_0x183b76(0x3bd)])==null?void 0x0:_0x5ed9ec[_0x183b76(0x54a)](_0x2956c9,_0x5105f1))!=null?_0x372ff3:_0x5105f1;}[_0x2683e6(0x3ae)](_0x123876){const _0x18643c=_0x2683e6;var _0x530ce5,_0x90905,_0x370216;return(_0x370216=(_0x90905=(_0x530ce5=this[_0x18643c(0x474)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x90905[_0x18643c(0x54a)](_0x530ce5,_0x123876))!=null?_0x370216:_0x123876;}[_0x2683e6(0x5b2)](_0x18288b){const _0x3781ab=_0x2683e6;var _0x4e6f81,_0x484c42;if(this[_0x3781ab(0x44a)]===ie['UNIVER_DOC']){const {unitID:_0xef4770,mutations:_0x1f04a0,memberID:_0x1a19f3}=_0x18288b,_0x3f762f=_0x1f04a0[0x0][_0x3781ab(0x55b)]['textRanges'];Array['isArray'](_0x3f762f)&&_0x3f762f[_0x3781ab(0x29a)]>0x0&&((_0x484c42=(_0x4e6f81=this[_0x3781ab(0x474)])[_0x3781ab(0x2fe)])==null||_0x484c42[_0x3781ab(0x54a)](_0x4e6f81,{'unitID':_0xef4770,'memberID':_0x1a19f3,'textRanges':_0x3f762f}));}}[_0x2683e6(0x22c)](){const _0x50ce6e=_0x2683e6;this[_0x50ce6e(0x4ee)][_0x50ce6e(0x2d4)](this[_0x50ce6e(0x4a9)],this[_0x50ce6e(0x44a)],this[_0x50ce6e(0x36d)],this[_0x50ce6e(0x4b8)]);}[_0x2683e6(0x186)](){const _0x574f82=_0x2683e6;return this[_0x574f82(0x285)][_0x574f82(0x581)](this[_0x574f82(0x4a9)]);}[_0x2683e6(0x45a)](){const _0x3c22ac=_0x2683e6;this[_0x3c22ac(0x285)][_0x3c22ac(0x1b2)](this['unitID']);}[_0x2683e6(0x2ff)](_0x31f13f){const _0x58d2a5=_0x2683e6;var _0x4338b8;let _0x31eef7=this[_0x58d2a5(0x504)](_0x31f13f);_0x31eef7=this[_0x58d2a5(0x3ae)](_0x31eef7);const _0xdad2f9=a[_0x58d2a5(0x4b1)](_0x31eef7['mutations'],this[_0x58d2a5(0x447)],{'fromCollab':!0x0});if(!_0xdad2f9['result'])throw _0xdad2f9['error']instanceof Error?_0xdad2f9[_0x58d2a5(0x461)]:new Error((_0x4338b8=_0xdad2f9[_0x58d2a5(0x461)])!=null?_0x4338b8:_0x58d2a5(0x1e2));this[_0x58d2a5(0x4fb)](_0x31eef7),this[_0x58d2a5(0x39f)](_0x31eef7),this['_transformUndoredo'](_0x31f13f),this[_0x58d2a5(0x48f)](_0x31eef7),this[_0x58d2a5(0x5b2)](_0x31eef7),this[_0x58d2a5(0x45a)]();}}let Oe=class extends Ce{constructor(_0x2d475b,_0x29c748,_0x747e83,_0x5cb9f8,_0x2972a0,_0x2efda5,_0x15be6a,_0x14c26a,_0x37a055,_0x597be3){const _0x51c9be=_0x2683e6;super(_0x2d475b,_0x29c748,null,[],_0x747e83,_0x14c26a,_0x15be6a,_0x5cb9f8,_0x2972a0),I(this,_0x51c9be(0x47e),_0x51c9be(0x588)),(this['_injector']=_0x2efda5,this[_0x51c9be(0x577)]=_0x37a055,this[_0x51c9be(0x318)]=_0x597be3);}['appendMutation'](_0x10bd7e){const _0x3deb51=_0x2683e6,_0x14e107=this[_0x3deb51(0x3e9)][_0x3deb51(0x4d7)](ce,this['unitID'],this[_0x3deb51(0x44a)],[_0x10bd7e],this['_handler']);return _0x14e107[_0x3deb51(0x375)](),_0x14e107[_0x3deb51(0x22c)](),_0x14e107;}[_0x2683e6(0x373)](_0x1cb7a7){const _0x189e1e=_0x2683e6;if(this[_0x189e1e(0x441)](_0x1cb7a7))return this[_0x189e1e(0x3e9)]['createInstance'](re,this['unitID'],this[_0x189e1e(0x44a)],null,[],null,[_0x1cb7a7],this[_0x189e1e(0x474)]);try{const _0x2b20f0=this['_transformService'][_0x189e1e(0x1b6)](_0x1cb7a7,[ji]);if(S[_0x189e1e(0x30a)](_0x2b20f0)){const {c1Prime:_0x576926}=_0x2b20f0;return this[_0x189e1e(0x2ff)](_0x576926),this;}throw _0x2b20f0[_0x189e1e(0x461)];}catch(_0x5aef89){return this[_0x189e1e(0x577)][_0x189e1e(0x461)](_0x5aef89),this[_0x189e1e(0x25c)](!0x1);}}[_0x2683e6(0x25c)](_0x101c3f){const _0x5305f9=_0x2683e6;return this[_0x5305f9(0x3e9)]['createInstance'](ve,this[_0x5305f9(0x4a9)],this['type'],null,[],this[_0x5305f9(0x474)],_0x101c3f);}[_0x2683e6(0x1a5)](){const _0x25f7b9=_0x2683e6;throw new Error(_0x25f7b9(0x361));}[_0x2683e6(0x2ea)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x2683e6(0x456)](){return this;}['toggleOffline'](){const _0x29db5a=_0x2683e6;return this[_0x29db5a(0x3e9)][_0x29db5a(0x4d7)](me,this[_0x29db5a(0x4a9)],this[_0x29db5a(0x44a)],null,[],this['_handler']);}[_0x2683e6(0x46e)](){return this;}[_0x2683e6(0x4df)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2683e6(0x445)](){const _0x2891ef=_0x2683e6,_0x5bcdbe=this[_0x2891ef(0x285)][_0x2891ef(0x581)](this[_0x2891ef(0x4a9)]);return this[_0x2891ef(0x474)][_0x2891ef(0x418)]({'from':_0x5bcdbe,'to':0x0}),this[_0x2891ef(0x3e9)][_0x2891ef(0x4d7)](re,this[_0x2891ef(0x4a9)],this[_0x2891ef(0x44a)],null,[],null,[],this[_0x2891ef(0x474)]);}};Oe=Ie([N(0x3,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0x4,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),N(0x5,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),N(0x6,a[_0x2683e6(0x5cb)]),N(0x7,a[_0x2683e6(0x1d5)]),N(0x8,a['ILogService']),N(0x9,S[_0x2683e6(0x1e3)])],Oe);let ce=class extends Ce{constructor(_0x43c02a,_0x4e05fe,_0x1a1b44,_0x90cdbd,_0x1d46a8,_0x18c195,_0x112d58,_0xc5560d,_0x5a8aa5,_0x3e8bc,_0x5cae17,_0x4a96fd,_0x542f1c,_0x19e047){const _0x1b62ae=_0x2683e6;super(_0x43c02a,_0x4e05fe,null,_0x1a1b44,_0x90cdbd,_0x3e8bc,_0x19e047,_0x18c195,_0x112d58),I(this,_0x1b62ae(0x47e),_0x1b62ae(0x4fa)),I(this,'_scheduleTimestamp',null),I(this,_0x1b62ae(0x397),null),(this[_0x1b62ae(0x3e9)]=_0x1d46a8,this[_0x1b62ae(0x2cf)]=_0xc5560d,this[_0x1b62ae(0x577)]=_0x5a8aa5,this[_0x1b62ae(0x3d1)]=_0x5cae17,this['_transformService']=_0x4a96fd,this[_0x1b62ae(0x45b)]=_0x542f1c);}[_0x2683e6(0x3b0)](_0x88caa9){const _0x52c55c=_0x2683e6;return this[_0x52c55c(0x4b8)][_0x52c55c(0x17e)](_0x88caa9),this[_0x52c55c(0x22c)](),this;}[_0x2683e6(0x373)](_0x5d145d){const _0x232e12=_0x2683e6;if(this['_checkMissing'](_0x5d145d))return this['_clearScheduledTask'](),this[_0x232e12(0x3e9)]['createInstance'](re,this[_0x232e12(0x4a9)],this[_0x232e12(0x44a)],null,this[_0x232e12(0x4b8)],null,[_0x5d145d],this[_0x232e12(0x474)]);try{const _0x573191=this[_0x232e12(0x318)]['transformMutationsWithChangeset'](_0x5d145d,this[_0x232e12(0x4b8)]);if(S[_0x232e12(0x30a)](_0x573191)){const {c1Prime:_0x25ce1b,m2Prime:_0x2dbcb0}=_0x573191;this[_0x232e12(0x2ff)](_0x25ce1b);const _0x4cc311=this[_0x232e12(0x3e9)][_0x232e12(0x4d7)](ce,this[_0x232e12(0x4a9)],this[_0x232e12(0x44a)],_0x2dbcb0,this[_0x232e12(0x474)]);return this[_0x232e12(0x245)](),_0x4cc311[_0x232e12(0x375)](this[_0x232e12(0x358)]?Math[_0x232e12(0x1a1)](0x0,new Date()[_0x232e12(0x284)]()-this[_0x232e12(0x358)]):this[_0x232e12(0x368)]()),_0x4cc311;}throw _0x573191[_0x232e12(0x461)];}catch(_0x238cb4){return this[_0x232e12(0x577)][_0x232e12(0x461)](_0x238cb4),this[_0x232e12(0x25c)](!0x1);}}[_0x2683e6(0x1a5)](){const _0x14cc42=_0x2683e6;throw new Error(_0x14cc42(0x37f));}[_0x2683e6(0x2ea)](){const _0x1d0420=_0x2683e6;throw new Error(_0x1d0420(0x506));}[_0x2683e6(0x456)](){return this;}['toggleOffline'](){const _0x1026f9=_0x2683e6;return this[_0x1026f9(0x245)](),this[_0x1026f9(0x3e9)][_0x1026f9(0x4d7)](me,this[_0x1026f9(0x4a9)],this[_0x1026f9(0x44a)],null,this[_0x1026f9(0x4b8)],this[_0x1026f9(0x474)]);}[_0x2683e6(0x46e)](){return this;}[_0x2683e6(0x375)](_0x4f4998){const _0x238147=_0x2683e6,_0x4c0b0b=_0x4f4998!=null?_0x4f4998:this['_getSendChangesetTimeout']();this[_0x238147(0x358)]=new Date()[_0x238147(0x284)](),this[_0x238147(0x397)]=window[_0x238147(0x352)](()=>{const _0x158d4d=_0x238147;this[_0x158d4d(0x245)]();let _0x1c29cd=null;switch(this[_0x158d4d(0x44a)]){case ie[_0x158d4d(0x4a1)]:{_0x1c29cd=jt(this[_0x158d4d(0x4b8)],this['unitID'],this['_univerInstanceService'],this[_0x158d4d(0x285)],this['_memberService']);break;}case ie[_0x158d4d(0x56e)]:{this['_pendingMutations'][_0x158d4d(0x333)](_0x10dce8=>_0x10dce8['id']===ye[_0x158d4d(0x1ae)]['id'])?_0x1c29cd=xi(this[_0x158d4d(0x4b8)],this[_0x158d4d(0x4a9)],this[_0x158d4d(0x45b)],this[_0x158d4d(0x285)],this[_0x158d4d(0x2cf)]):_0x1c29cd=jt(this['_pendingMutations'],this[_0x158d4d(0x4a9)],this['_univerInstanceService'],this[_0x158d4d(0x285)],this[_0x158d4d(0x2cf)]);break;}default:throw new Error(_0x158d4d(0x294)+this['type']+'\x20in\x20_schedule.');}const {changeset:_0x2784b4,pendingMutations:_0x50f6a3}=_0x1c29cd;this[_0x158d4d(0x474)][_0x158d4d(0x4aa)](_0x2784b4);const _0x37d818=_0x50f6a3[_0x158d4d(0x29a)]?this[_0x158d4d(0x3e9)][_0x158d4d(0x4d7)](le,this[_0x158d4d(0x4a9)],this[_0x158d4d(0x44a)],_0x2784b4,_0x50f6a3,this[_0x158d4d(0x474)],void 0x0):this['_injector']['createInstance'](fe,this[_0x158d4d(0x4a9)],this['type'],_0x2784b4,this[_0x158d4d(0x474)]);_0x37d818[_0x158d4d(0x22c)](),this[_0x158d4d(0x474)][_0x158d4d(0x2fa)](this,_0x37d818);},_0x4c0b0b);}[_0x2683e6(0x368)](){const _0x3858a4=_0x2683e6;var _0xcbd7ca;const _0x18fa67=this['_configService'][_0x3858a4(0x496)](te);return(_0xcbd7ca=_0x18fa67==null?void 0x0:_0x18fa67['sendChangesetTimeout'])!=null?_0xcbd7ca:kn;}['resend'](){const _0x52acc0=_0x2683e6;throw new Error(_0x52acc0(0x5ff));}['_clearScheduledTask'](){const _0x47575f=_0x2683e6;this['_sendingTimer']!=null&&(clearTimeout(this[_0x47575f(0x397)]),this['_sendingTimer']=null);}[_0x2683e6(0x25c)](_0x579849){const _0x27131f=_0x2683e6;return this[_0x27131f(0x245)](),this['_injector'][_0x27131f(0x4d7)](ve,this['unitID'],this[_0x27131f(0x44a)],null,this[_0x27131f(0x4b8)],this[_0x27131f(0x474)],_0x579849);}};ce=Ie([N(0x4,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),N(0x5,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0x6,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),N(0x7,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x184)])),N(0x8,a['ILogService']),N(0x9,a[_0x2683e6(0x1d5)]),N(0xa,a['IConfigService']),N(0xb,S[_0x2683e6(0x1e3)]),N(0xc,a[_0x2683e6(0x468)]),N(0xd,a[_0x2683e6(0x5cb)])],ce);let fe=class extends Ce{constructor(_0x506d97,_0x5e3ce4,_0x48e45c,_0x58b373,_0x4a9bd5,_0x15477a,_0x3ccfb6,_0x9d9444,_0x536fd6,_0x2282ad,_0x301a1f){const _0x224085=_0x2683e6;super(_0x506d97,_0x5e3ce4,_0x48e45c,[],_0x58b373,_0x9d9444,_0x301a1f,_0x15477a,_0x3ccfb6),I(this,_0x224085(0x47e),'awaiting'),I(this,_0x224085(0x4da),0x0),I(this,_0x224085(0x30c)),I(this,_0x224085(0x330)),(this[_0x224085(0x3e9)]=_0x4a9bd5,this[_0x224085(0x577)]=_0x536fd6,this[_0x224085(0x318)]=_0x2282ad);}[_0x2683e6(0x3b0)](_0x2b6080){const _0x21cba7=_0x2683e6;this[_0x21cba7(0x245)]();const _0x43193f=this[_0x21cba7(0x3e9)][_0x21cba7(0x4d7)](le,this[_0x21cba7(0x4a9)],this[_0x21cba7(0x44a)],this['_awaitingChangeset'],[_0x2b6080],this[_0x21cba7(0x474)],this['_resendTimer']);return _0x43193f[_0x21cba7(0x22c)](),_0x43193f;}[_0x2683e6(0x373)](_0x430d9b){const _0x3d1ca9=_0x2683e6;if(this[_0x3d1ca9(0x441)](_0x430d9b))return this[_0x3d1ca9(0x245)](),this[_0x3d1ca9(0x3e9)][_0x3d1ca9(0x4d7)](re,this['unitID'],this[_0x3d1ca9(0x44a)],this[_0x3d1ca9(0x36d)],[],null,[_0x430d9b],this[_0x3d1ca9(0x474)]);try{const _0x2fb940=this[_0x3d1ca9(0x318)]['transformChangesets']([_0x430d9b],[this[_0x3d1ca9(0x36d)]],!0x1);if(S[_0x3d1ca9(0x406)](_0x2fb940)){const {c1Prime:_0x5cc880,c2Prime:_0x454213}=_0x2fb940;this['_executeRemoteChangeset'](_0x5cc880[0x0]),_0x454213[0x0]['baseRev']=this['_getCurrentRevision'](),this['_clearScheduledTask']();const _0x2fa69b=this[_0x3d1ca9(0x3e9)][_0x3d1ca9(0x4d7)](fe,this[_0x3d1ca9(0x4a9)],this[_0x3d1ca9(0x44a)],_0x454213[0x0],this['_handler']);return _0x2fa69b[_0x3d1ca9(0x22c)](),_0x2fa69b;}return this[_0x3d1ca9(0x25c)](!0x1);}catch(_0x1b814c){return this[_0x3d1ca9(0x577)][_0x3d1ca9(0x461)](_0x1b814c),this[_0x3d1ca9(0x25c)](!0x1);}}[_0x2683e6(0x1a5)](_0x4da8eb){const _0x278034=_0x2683e6;this[_0x278034(0x245)]();const _0x12081a=this[_0x278034(0x285)][_0x278034(0x581)](this[_0x278034(0x4a9)]);if(_0x4da8eb[_0x278034(0x297)]<_0x12081a-0x1)return this;if(this[_0x278034(0x441)](_0x4da8eb))return this[_0x278034(0x3e9)][_0x278034(0x4d7)](re,this[_0x278034(0x4a9)],this['type'],null,[],this[_0x278034(0x36d)],[],this[_0x278034(0x474)]);this['_incrementRevisionNumber']();const _0xa9025f=this[_0x278034(0x3e9)][_0x278034(0x4d7)](Oe,this[_0x278034(0x4a9)],this[_0x278034(0x44a)],this['_handler']);return _0xa9025f[_0x278034(0x22c)](),_0xa9025f;}[_0x2683e6(0x2ea)](_0x1793f1){const _0xac8bf1=_0x2683e6;return this[_0xac8bf1(0x25c)](!!(_0x1793f1!=null&&_0x1793f1[_0xac8bf1(0x43e)]));}[_0x2683e6(0x456)](_0x12b407){const _0x1956ba=_0x2683e6;return this['_resendTimeout']>vn?this[_0x1956ba(0x173)]():(this[_0x1956ba(0x30c)]=fn(this[_0x1956ba(0x4da)],{'timeout':this['_resendTimeout'],'reqId':_0x12b407['reqId']}),this[_0x1956ba(0x330)]=this[_0x1956ba(0x30c)][_0x1956ba(0x44d)](({reqId:_0x1978cb,timeout:_0x3382af})=>{const _0xccc619=_0x1956ba;this[_0xccc619(0x2c6)](_0x1978cb,_0x3382af);}),this);}['toggleOffline'](){const _0x267102=_0x2683e6;return this[_0x267102(0x245)](),this[_0x267102(0x3e9)][_0x267102(0x4d7)](me,this['unitID'],this[_0x267102(0x44a)],this[_0x267102(0x36d)],[],this[_0x267102(0x474)]);}['toggleOnline'](){return this;}[_0x2683e6(0x4df)](){const _0x205883=_0x2683e6;this[_0x205883(0x474)]['onSendChangeset'](this[_0x205883(0x36d)]);}[_0x2683e6(0x25c)](_0x3a51be){const _0x4873bf=_0x2683e6;return this[_0x4873bf(0x245)](),this[_0x4873bf(0x3e9)][_0x4873bf(0x4d7)](ve,this[_0x4873bf(0x4a9)],this[_0x4873bf(0x44a)],this[_0x4873bf(0x36d)],[],this[_0x4873bf(0x474)],_0x3a51be);}[_0x2683e6(0x2c6)](_0x44104b,_0x32310f){const _0x3f3bf9=_0x2683e6;var _0x3e8e53;_0x44104b===((_0x3e8e53=this['_awaitingChangeset'])==null?void 0x0:_0x3e8e53['reqId'])&&(this[_0x3f3bf9(0x4df)](),this[_0x3f3bf9(0x4da)]=_0x32310f===0x0?0x3e8:_0x32310f*0x2);}[_0x2683e6(0x245)](){const _0x431dd1=_0x2683e6;var _0x1a4f23;(_0x1a4f23=this[_0x431dd1(0x330)])==null||_0x1a4f23[_0x431dd1(0x334)](),this[_0x431dd1(0x4da)]=0x0;}};fe=Ie([N(0x4,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),N(0x5,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0x6,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),N(0x7,a[_0x2683e6(0x1d5)]),N(0x8,a[_0x2683e6(0x5a9)]),N(0x9,S[_0x2683e6(0x1e3)]),N(0xa,a[_0x2683e6(0x5cb)])],fe);let le=class extends Ce{constructor(_0x581d56,_0x3261db,_0x13db57,_0x584eaf,_0xcef5d4,_0x3a4159,_0x4a0a9a,_0xd26331,_0x12202a,_0xe6ddab,_0x3f5226,_0x38d685,_0x58648b){const _0x377436=_0x2683e6;super(_0x581d56,_0x3261db,_0x13db57,_0x584eaf,_0xcef5d4,_0xe6ddab,_0x58648b,_0xd26331,_0x12202a),I(this,_0x377436(0x47e),_0x377436(0x281)),I(this,_0x377436(0x4da),0x0),I(this,'_resendTimer'),I(this,_0x377436(0x330)),(this[_0x377436(0x3e9)]=_0x4a0a9a,this[_0x377436(0x577)]=_0x3f5226,this[_0x377436(0x318)]=_0x38d685,_0x3a4159&&(this[_0x377436(0x30c)]=_0x3a4159,this[_0x377436(0x330)]=this[_0x377436(0x30c)]['subscribe'](({reqId:_0x1cfc24,timeout:_0x5bee57})=>{this['_resendWithTimeout'](_0x1cfc24,_0x5bee57);})));}['appendMutation'](_0x72c28e){const _0x30adf0=_0x2683e6;return this[_0x30adf0(0x4b8)][_0x30adf0(0x17e)](_0x72c28e),this;}[_0x2683e6(0x373)](_0xeaef68){const _0x358c0b=_0x2683e6;if(this[_0x358c0b(0x441)](_0xeaef68))return this['_clearScheduledTask'](),this['_injector'][_0x358c0b(0x4d7)](re,this[_0x358c0b(0x4a9)],this['type'],this[_0x358c0b(0x36d)],this[_0x358c0b(0x4b8)],null,[_0xeaef68],this[_0x358c0b(0x474)]);try{const _0x1ce6bb=this[_0x358c0b(0x318)][_0x358c0b(0x192)]([_0xeaef68],[this[_0x358c0b(0x36d)]],!0x1);if(S[_0x358c0b(0x406)](_0x1ce6bb)){const {c1Prime:_0x57f97b,c2Prime:_0x243cba}=_0x1ce6bb,_0x4ba5ee=this[_0x358c0b(0x318)][_0x358c0b(0x1b6)](_0x57f97b[0x0],this['_pendingMutations']);if(S[_0x358c0b(0x30a)](_0x4ba5ee)){const {c1Prime:_0x1a79dc,m2Prime:_0x204420}=_0x4ba5ee;return this[_0x358c0b(0x2ff)](_0x1a79dc),_0x243cba[0x0][_0x358c0b(0x522)]=this[_0x358c0b(0x186)](),this[_0x358c0b(0x245)](),this[_0x358c0b(0x3e9)][_0x358c0b(0x4d7)](le,this[_0x358c0b(0x4a9)],this['type'],_0x243cba[0x0],_0x204420,this[_0x358c0b(0x474)],void 0x0);}throw _0x4ba5ee[_0x358c0b(0x461)];}throw _0x1ce6bb[_0x358c0b(0x461)];}catch(_0x4bd3ec){return this['_logService'][_0x358c0b(0x461)](_0x4bd3ec),this[_0x358c0b(0x25c)](!0x1);}}[_0x2683e6(0x1a5)](_0x457b2e){const _0x387ba7=_0x2683e6;if(this[_0x387ba7(0x245)](),this[_0x387ba7(0x441)](_0x457b2e))return this[_0x387ba7(0x3e9)]['createInstance'](re,this[_0x387ba7(0x4a9)],this[_0x387ba7(0x44a)],null,this['_pendingMutations'],this[_0x387ba7(0x36d)],[],this[_0x387ba7(0x474)]);this[_0x387ba7(0x45a)]();const _0xd2e7a4=this[_0x387ba7(0x3e9)][_0x387ba7(0x4d7)](ce,this['unitID'],this[_0x387ba7(0x44a)],this['_pendingMutations'],this[_0x387ba7(0x474)]);return _0xd2e7a4[_0x387ba7(0x375)](),_0xd2e7a4[_0x387ba7(0x22c)](),_0xd2e7a4;}['onRemoteRej'](_0x2a5076){const _0x29bd68=_0x2683e6;return this[_0x29bd68(0x25c)](!!(_0x2a5076!=null&&_0x2a5076[_0x29bd68(0x43e)]));}[_0x2683e6(0x456)](_0x5160f9){const _0x27627c=_0x2683e6;return this[_0x27627c(0x4da)]>vn?this[_0x27627c(0x173)]():(this[_0x27627c(0x30c)]=fn(this[_0x27627c(0x4da)],{'timeout':this[_0x27627c(0x4da)],'reqId':_0x5160f9[_0x27627c(0x5c5)]}),this[_0x27627c(0x330)]=this[_0x27627c(0x30c)][_0x27627c(0x44d)](({reqId:_0x366a58,timeout:_0x1bab28})=>{this['_resendWithTimeout'](_0x366a58,_0x1bab28);}),this);}[_0x2683e6(0x173)](){const _0x3251f5=_0x2683e6;return this[_0x3251f5(0x245)](),this[_0x3251f5(0x3e9)][_0x3251f5(0x4d7)](me,this[_0x3251f5(0x4a9)],this['type'],this[_0x3251f5(0x36d)],this['_pendingMutations'],this[_0x3251f5(0x474)]);}[_0x2683e6(0x46e)](){return this;}[_0x2683e6(0x4df)](){const _0x4bed4f=_0x2683e6;this[_0x4bed4f(0x474)][_0x4bed4f(0x4aa)](this[_0x4bed4f(0x36d)]);}[_0x2683e6(0x25c)](_0x3246a7){const _0x4e58be=_0x2683e6;return this[_0x4e58be(0x245)](),this[_0x4e58be(0x3e9)][_0x4e58be(0x4d7)](ve,this['unitID'],this[_0x4e58be(0x44a)],null,this['_pendingMutations'],this[_0x4e58be(0x474)],_0x3246a7);}[_0x2683e6(0x2c6)](_0x32faee,_0x4fb2e8){const _0x4ac9e2=_0x2683e6;var _0x3c485c;_0x32faee===((_0x3c485c=this[_0x4ac9e2(0x36d)])==null?void 0x0:_0x3c485c['reqId'])&&(this[_0x4ac9e2(0x4df)](),this[_0x4ac9e2(0x4da)]=_0x4fb2e8===0x0?0x3e8:_0x4fb2e8*0x2);}['_clearScheduledTask'](){const _0x5c662c=_0x2683e6;var _0x3f10f7;(_0x3f10f7=this[_0x5c662c(0x330)])==null||_0x3f10f7['unsubscribe'](),this[_0x5c662c(0x4da)]=0x0;}};le=Ie([N(0x6,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),N(0x7,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0x8,a[_0x2683e6(0x22b)](exports['LocalCacheService'])),N(0x9,a[_0x2683e6(0x1d5)]),N(0xa,a['ILogService']),N(0xb,S[_0x2683e6(0x1e3)]),N(0xc,a[_0x2683e6(0x5cb)])],le);let ve=class extends Ce{constructor(_0x3faaf5,_0x5b5e43,_0x2173e9,_0x52c18d,_0x30bac8,_0x458c72=!0x1,_0x2e56f1,_0x1a0260,_0x150878,_0x109ebf,_0x41bbf0,_0x5dbd57,_0xec7619){const _0x577961=_0x2683e6;super(_0x3faaf5,_0x5b5e43,_0x2173e9,_0x52c18d,_0x30bac8,_0x1a0260,_0x150878,_0x41bbf0,_0x109ebf),I(this,'status','conflict'),(this['_isPermissionRej']=_0x458c72,this[_0x577961(0x2b5)]=_0x2e56f1,this[_0x577961(0x347)]=_0x5dbd57,this['_notificationService']=_0xec7619,this['_showConflictNotification'](),this[_0x577961(0x17c)](),this[_0x577961(0x49c)]());}[_0x2683e6(0x3b0)](){return this;}[_0x2683e6(0x373)](){return this;}[_0x2683e6(0x1a5)](){return this;}['onRemoteRej'](){return this;}[_0x2683e6(0x456)](){return this;}[_0x2683e6(0x173)](){return this;}[_0x2683e6(0x46e)](){return this;}[_0x2683e6(0x4df)](){const _0x43192f=_0x2683e6;throw new Error(_0x43192f(0x259));}['_clearLocalCache'](){const _0x110606=_0x2683e6;this[_0x110606(0x4ee)][_0x110606(0x2d4)](this[_0x110606(0x4a9)],this[_0x110606(0x44a)],null,[]);}[_0x2683e6(0x2c3)](){const _0x45d3c2=_0x2683e6;this[_0x45d3c2(0x4b9)]?this[_0x45d3c2(0x2cc)]['show']({'title':this[_0x45d3c2(0x347)]['t'](_0x45d3c2(0x567)),'content':this['_localeService']['t'](_0x45d3c2(0x3b3)),'type':_0x45d3c2(0x461),'duration':0x0}):this[_0x45d3c2(0x2cc)][_0x45d3c2(0x4db)]({'title':this[_0x45d3c2(0x347)]['t'](_0x45d3c2(0x482)),'content':this['_localeService']['t'](_0x45d3c2(0x185)),'type':_0x45d3c2(0x461),'duration':0x0});}[_0x2683e6(0x49c)](){const _0x15b31b=_0x2683e6;this['_permissionService'][_0x15b31b(0x524)](new k[(_0x15b31b(0x4f4))](this[_0x15b31b(0x4a9)])['id'],!0x1);}};ve=Ie([N(0x6,a['Inject'](a[_0x2683e6(0x273)])),N(0x7,a[_0x2683e6(0x1d5)]),N(0x8,a[_0x2683e6(0x5cb)]),N(0x9,a[_0x2683e6(0x22b)](exports['LocalCacheService'])),N(0xa,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0xb,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),N(0xc,ee['INotificationService'])],ve);let me=class extends Ce{constructor(_0x100313,_0x257747,_0x21619e,_0x1172d9,_0x5cc783,_0x3e6ddd,_0x33abbd,_0x1fd2c4,_0xa9ffb4,_0x59dabc){const _0x37f588=_0x2683e6;super(_0x100313,_0x257747,_0x21619e,_0x1172d9,_0x5cc783,_0xa9ffb4,_0x59dabc,_0x33abbd,_0x1fd2c4),I(this,_0x37f588(0x47e),_0x37f588(0x39a)),this[_0x37f588(0x3e9)]=_0x3e6ddd;}[_0x2683e6(0x3b0)](_0x3cb574){const _0x1eca5b=_0x2683e6;return this['_pendingMutations']['push'](_0x3cb574),this[_0x1eca5b(0x22c)](),this;}['onRemoteChangeset'](_0x713291){throw new Error('[OfflineState]:\x20received\x20changeset.');}[_0x2683e6(0x1a5)](){const _0x560dba=_0x2683e6;throw new Error(_0x560dba(0x2e5));}[_0x2683e6(0x2ea)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x2683e6(0x456)](){return this;}[_0x2683e6(0x173)](){return this;}[_0x2683e6(0x46e)](){const _0xbbca3b=_0x2683e6,{_injector:_0x44d034,_pendingMutations:_0x46c923,_awaitingChangeset:_0x37271a,unitID:_0x5a036a,_handler:_0x30a18e,type:_0x53a8c3}=this,_0xabe9a0=mn(_0x44d034,_0x5a036a,_0x53a8c3,_0x37271a,_0x46c923,_0x30a18e);return _0xabe9a0 instanceof ce?_0xabe9a0['_schedule']():(_0xabe9a0 instanceof le||_0xabe9a0 instanceof fe)&&_0xabe9a0[_0xbbca3b(0x4df)](),_0xabe9a0;}['resend'](){const _0x2a8378=_0x2683e6;throw new Error(_0x2a8378(0x270));}};me=Ie([N(0x5,a['Inject'](a['Injector'])),N(0x6,a['Inject'](S[_0x2683e6(0x4f5)])),N(0x7,a['Inject'](exports[_0x2683e6(0x604)])),N(0x8,a[_0x2683e6(0x1d5)]),N(0x9,a[_0x2683e6(0x5cb)])],me);let re=class extends Ce{constructor(_0x299a2c,_0x15aecc,_0x1de616,_0x12ab3f,_0x7463c6,_0x365e36,_0x4a53a2,_0x1da48d,_0x29336e,_0x5a43f8,_0x48f931,_0x2039fa,_0x179cbd,_0x25be57){const _0x4782e8=_0x2683e6;super(_0x299a2c,_0x15aecc,_0x1de616,_0x12ab3f,_0x4a53a2,_0x2039fa,_0x179cbd,_0x29336e,_0x5a43f8),I(this,_0x4782e8(0x47e),_0x4782e8(0x2ef)),(this[_0x4782e8(0x1a3)]=_0x7463c6,this[_0x4782e8(0x5b9)]=_0x365e36,this[_0x4782e8(0x3e9)]=_0x1da48d,this[_0x4782e8(0x577)]=_0x48f931,this['_transformService']=_0x25be57);}[_0x2683e6(0x16f)](_0x2972ab){const _0x245a67=_0x2683e6;try{const _0x4de069=[..._0x2972ab,...this[_0x245a67(0x5b9)]],_0xcc9b21=[this[_0x245a67(0x36d)]||this[_0x245a67(0x1a3)]][_0x245a67(0x57f)](_0xc12f18=>!!_0xc12f18);let _0x1f205c,_0x22a78b;if(_0xcc9b21['length']){const _0x2ff343=this[_0x245a67(0x318)][_0x245a67(0x192)](_0x4de069,_0xcc9b21,!0x1);if(!S[_0x245a67(0x406)](_0x2ff343))throw _0x2ff343['error'];_0x1f205c=_0x2ff343['c1Prime'],_0x22a78b=_0x2ff343[_0x245a67(0x421)];}else _0x1f205c=_0x4de069,_0x22a78b=[];let _0x3a495c=this[_0x245a67(0x4b8)];_0x1f205c[_0x245a67(0x280)](_0x513855=>{const _0x467dba=_0x245a67;let _0x14190e;if(_0x3a495c[_0x467dba(0x29a)]){const _0x3cab22=this[_0x467dba(0x318)]['transformMutationsWithChangeset'](_0x513855,_0x3a495c);if(!S[_0x467dba(0x30a)](_0x3cab22))throw _0x3cab22['error'];_0x14190e=_0x3cab22[_0x467dba(0x160)],_0x3a495c=_0x3cab22[_0x467dba(0x326)];}else _0x14190e=_0x513855;this[_0x467dba(0x2ff)](_0x14190e);}),this[_0x245a67(0x1a3)]&&this[_0x245a67(0x45a)](),this['_awaitingChangeset']&&_0x22a78b[_0x245a67(0x29a)]&&(_0x22a78b[0x0][_0x245a67(0x522)]=this[_0x245a67(0x186)]());let _0x1ec118;if(this['_awaitingChangeset']&&_0x3a495c[_0x245a67(0x29a)]!==0x0)_0x1ec118=this[_0x245a67(0x3e9)][_0x245a67(0x4d7)](le,this['unitID'],this[_0x245a67(0x44a)],_0x22a78b[0x0],_0x3a495c,this[_0x245a67(0x474)],void 0x0);else{if(this[_0x245a67(0x36d)]&&_0x3a495c['length']===0x0)_0x22a78b[0x0][_0x245a67(0x522)]=this[_0x245a67(0x186)](),_0x1ec118=this[_0x245a67(0x3e9)][_0x245a67(0x4d7)](fe,this[_0x245a67(0x4a9)],this[_0x245a67(0x44a)],_0x22a78b[0x0],this[_0x245a67(0x474)]);else{if(_0x3a495c[_0x245a67(0x29a)]!==0x0){const _0x1e4a50=this[_0x245a67(0x3e9)][_0x245a67(0x4d7)](ce,this['unitID'],this[_0x245a67(0x44a)],_0x3a495c,this[_0x245a67(0x474)]);_0x1e4a50['_schedule'](),_0x1ec118=_0x1e4a50;}else _0x1ec118=this[_0x245a67(0x3e9)][_0x245a67(0x4d7)](Oe,this['unitID'],this[_0x245a67(0x44a)],this[_0x245a67(0x474)]);}}return _0x1ec118[_0x245a67(0x22c)](),_0x1ec118;}catch(_0x4ec920){return this['_logService'][_0x245a67(0x461)](_0x245a67(0x2a1),_0x245a67(0x5ed),_0x4ec920),this[_0x245a67(0x3e9)]['createInstance'](ve,this[_0x245a67(0x4a9)],this['type'],this[_0x245a67(0x36d)],this[_0x245a67(0x4b8)],this[_0x245a67(0x474)],!0x1);}}['resend'](){const _0x4c2924=_0x2683e6;throw new Error(_0x4c2924(0x5e0));}[_0x2683e6(0x3b0)](_0x3a3670){const _0x119201=_0x2683e6;return this[_0x119201(0x4b8)][_0x119201(0x17e)](_0x3a3670),this;}[_0x2683e6(0x373)](_0x152d34){const _0x253a5f=_0x2683e6;return this[_0x253a5f(0x5b9)]['push'](_0x152d34),this;}[_0x2683e6(0x1a5)](_0x4df9f0){const _0x2f4865=_0x2683e6;if(this[_0x2f4865(0x36d)])return this[_0x2f4865(0x1a3)]=this[_0x2f4865(0x36d)],this[_0x2f4865(0x36d)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2683e6(0x2ea)](_0x4e4f41){return this['_onConflict'](!!(_0x4e4f41!=null&&_0x4e4f41['isPermissionRej']));}[_0x2683e6(0x456)](){return this;}[_0x2683e6(0x173)](){const _0x4b81bc=_0x2683e6;return this[_0x4b81bc(0x3e9)]['createInstance'](me,this['unitID'],this[_0x4b81bc(0x44a)],this[_0x4b81bc(0x36d)],this['_pendingMutations'],this['_handler']);}[_0x2683e6(0x46e)](){return this;}[_0x2683e6(0x25c)](_0xde900e){const _0x5cf908=_0x2683e6;return this[_0x5cf908(0x3e9)][_0x5cf908(0x4d7)](ve,this[_0x5cf908(0x4a9)],this[_0x5cf908(0x44a)],this[_0x5cf908(0x36d)],this[_0x5cf908(0x4b8)],this[_0x5cf908(0x474)],_0xde900e);}};re=Ie([N(0x7,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),N(0x8,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),N(0x9,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),N(0xa,a['ILogService']),N(0xb,a[_0x2683e6(0x1d5)]),N(0xc,a[_0x2683e6(0x5cb)]),N(0xd,S['ITransformService'])],re);function mn(_0x5d7cbb,_0x1abdba,_0x42cb22,_0x3faea0,_0x7b1620,_0x5dbca4){const _0x4ed15d=_0x2683e6;return _0x3faea0&&_0x7b1620[_0x4ed15d(0x29a)]?_0x5d7cbb[_0x4ed15d(0x4d7)](le,_0x1abdba,_0x42cb22,_0x3faea0,_0x7b1620,_0x5dbca4,void 0x0):_0x3faea0?_0x5d7cbb[_0x4ed15d(0x4d7)](fe,_0x1abdba,_0x42cb22,_0x3faea0,_0x5dbca4):_0x7b1620['length']?_0x5d7cbb[_0x4ed15d(0x4d7)](ce,_0x1abdba,_0x42cb22,_0x7b1620,_0x5dbca4):_0x5d7cbb[_0x4ed15d(0x4d7)](Oe,_0x1abdba,_0x42cb22,_0x5dbca4);}var Bi=Object[_0x2683e6(0x1e7)],ki=Object[_0x2683e6(0x181)],yt=(_0x62d45d,_0x3e8766,_0x5dd371,_0x48815a)=>{const _0x36dde8=_0x2683e6;for(var _0xba0ac6=_0x48815a>0x1?void 0x0:_0x48815a?ki(_0x3e8766,_0x5dd371):_0x3e8766,_0x40b462=_0x62d45d[_0x36dde8(0x29a)]-0x1,_0x50e814;_0x40b462>=0x0;_0x40b462--)(_0x50e814=_0x62d45d[_0x40b462])&&(_0xba0ac6=(_0x48815a?_0x50e814(_0x3e8766,_0x5dd371,_0xba0ac6):_0x50e814(_0xba0ac6))||_0xba0ac6);return _0x48815a&&_0xba0ac6&&Bi(_0x3e8766,_0x5dd371,_0xba0ac6),_0xba0ac6;},H=(_0x53da6e,_0x146258)=>(_0x29498a,_0x4046e4)=>_0x146258(_0x29498a,_0x4046e4,_0x53da6e);exports[_0x2683e6(0x30d)]=class extends a[_0x2683e6(0x1e0)]{constructor(_0x5d3ea1,_0x50cb44,_0x48f603,_0x171742,_0x10c46b,_0x45c5c9,_0x23c128,_0xab350f,_0x386022,_0x122d7f,_0xa0fd0f,_0x2e3815,_0x204e49){const _0x143fc1=_0x2683e6;super(),I(this,_0x143fc1(0x402),new A[(_0x143fc1(0x1ce))](null)),I(this,_0x143fc1(0x21a),this[_0x143fc1(0x402)][_0x143fc1(0x4f2)]()),I(this,_0x143fc1(0x3c4)),I(this,'_collaborationPaused',!0x1),I(this,_0x143fc1(0x1c5),''),I(this,_0x143fc1(0x47f),0x0),I(this,'status$',this[_0x143fc1(0x21a)]['pipe'](A['map'](_0xd53f69=>_0xd53f69?_0xd53f69[_0x143fc1(0x47e)]:q['OFFLINE']),A[_0x143fc1(0x4dd)](0x1))),I(this,'_transitionLocked',!0x1),I(this,'_remoteChangesetQueue',[]),(this[_0x143fc1(0x4a9)]=_0x5d3ea1,this[_0x143fc1(0x34f)]=_0x50cb44,this[_0x143fc1(0x3e6)]=_0x48f603,this['_injector']=_0x171742,this[_0x143fc1(0x4ee)]=_0x10c46b,this[_0x143fc1(0x2fb)]=_0x45c5c9,this[_0x143fc1(0x347)]=_0x23c128,this[_0x143fc1(0x285)]=_0xab350f,this[_0x143fc1(0x577)]=_0x386022,this[_0x143fc1(0x447)]=_0x122d7f,this['_messageService']=_0xa0fd0f,this[_0x143fc1(0x2b5)]=_0x2e3815,this[_0x143fc1(0x5da)]=_0x204e49);}get[_0x2683e6(0x243)](){const _0x3484ca=_0x2683e6;return this[_0x3484ca(0x3c4)];}async[_0x2683e6(0x25b)](){const _0x40a933=_0x2683e6;if(this['state'])throw new Error(_0x40a933(0x24a));await this[_0x40a933(0x4ea)]();}[_0x2683e6(0x4d0)](){const _0xa2f098=_0x2683e6;return this[_0xa2f098(0x201)]=!0x0,a[_0xa2f098(0x454)](()=>{const _0x5b6cf5=_0xa2f098;this[_0x5b6cf5(0x201)]=!0x1,this[_0x5b6cf5(0x193)]();});}[_0x2683e6(0x54d)](_0x47666a){const _0x263935=_0x2683e6;this[_0x263935(0x3c4)]=_0x47666a,this[_0x263935(0x402)][_0x263935(0x40f)](_0x47666a);}async['_init'](){const _0x116a31=_0x2683e6;var _0xe3a4fe;this['_updateState'](await this[_0x116a31(0x378)]()),this[_0x116a31(0x5da)]&&((_0xe3a4fe=this[_0x116a31(0x5da)])==null||_0xe3a4fe[_0x116a31(0x1b4)](this[_0x116a31(0x4a9)]),this[_0x116a31(0x427)](this[_0x116a31(0x5da)][_0x116a31(0x195)](this[_0x116a31(0x4a9)])['subscribe'](_0x19a947=>{const _0x58bff6=_0x116a31;this['_logService'][_0x58bff6(0x3db)](_0x58bff6(0x3f6),_0x58bff6(0x43b),_0x19a947),_0x19a947===un[_0x58bff6(0x4c1)]?(this[_0x58bff6(0x167)][_0x58bff6(0x4db)]({'content':this[_0x58bff6(0x347)]['t']('collaboration.single-unit.warning'),'type':ge[_0x58bff6(0x455)][_0x58bff6(0x1f7)]}),this[_0x58bff6(0x2b5)]['updatePermissionPoint'](new k[(_0x58bff6(0x4f4))](this[_0x58bff6(0x4a9)])['id'],!0x1),this['_permissionService']['setShowComponents'](!0x1)):(this['_permissionService']['updatePermissionPoint'](new k[(_0x58bff6(0x4f4))](this[_0x58bff6(0x4a9)])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));})));let _0x3ce31e=!0x1;return this[_0x116a31(0x427)](this['session']['sessionStatus$']['subscribe'](_0xebbfc8=>{const _0x2b210a=_0x116a31;_0xebbfc8===se[_0x2b210a(0x191)]?this[_0x2b210a(0x4bd)](_0x3ce31e):_0xebbfc8===se[_0x2b210a(0x25a)]&&(_0x3ce31e=!0x0,this['_toggleOffline']());})),this[_0x116a31(0x427)](this[_0x116a31(0x34f)][_0x116a31(0x279)][_0x116a31(0x44d)](_0x58b6f3=>{const _0x26e9e4=_0x116a31;try{switch(_0x58b6f3[_0x26e9e4(0x477)]){case S[_0x26e9e4(0x3d6)][_0x26e9e4(0x3da)]:{this['_onRemoteChangeset'](S['parseProtocolChangeset'](_0x58b6f3[_0x26e9e4(0x5ac)]));break;}case S[_0x26e9e4(0x3d6)][_0x26e9e4(0x2e1)]:{this[_0x26e9e4(0x364)](_0x58b6f3['data']);break;}case S[_0x26e9e4(0x3d6)][_0x26e9e4(0x1bf)]:{this[_0x26e9e4(0x274)]();break;}case S['CollaborationEvent'][_0x26e9e4(0x4e5)]:{this[_0x26e9e4(0x1a7)](_0x58b6f3[_0x26e9e4(0x5ac)]);break;}case S['CollaborationEvent'][_0x26e9e4(0x4d1)]:{this[_0x26e9e4(0x3af)](_0x58b6f3[_0x26e9e4(0x5ac)]['changesets']['map'](_0x5a2906=>S[_0x26e9e4(0x36e)](_0x5a2906)));break;}case S[_0x26e9e4(0x3d6)][_0x26e9e4(0x4e1)]:this[_0x26e9e4(0x274)]({'isPermissionRej':!0x0});}}catch(_0x45b4f7){throw console[_0x26e9e4(0x461)](_0x26e9e4(0x52c),_0x45b4f7),_0x45b4f7;}})),this[_0x116a31(0x3c4)];}['_unlockTransition'](){const _0x2300ad=_0x2683e6;this[_0x2300ad(0x2e4)]=!0x1;}[_0x2683e6(0x15a)](){const _0x15ae53=_0x2683e6;if(this[_0x15ae53(0x2e4)])throw new Error('[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.');this[_0x15ae53(0x2e4)]=!0x0;}[_0x2683e6(0x300)](_0x2bc60f){const _0x4d9b12=_0x2683e6;this[_0x4d9b12(0x15a)](),this[_0x4d9b12(0x54d)](this[_0x4d9b12(0x3c4)][_0x4d9b12(0x3b0)](_0x2bc60f)),this[_0x4d9b12(0x2fd)]();}[_0x2683e6(0x1c4)](_0x2bba79){const _0x5cfb08=_0x2683e6;if(!(_0x2bba79[_0x5cfb08(0x297)]<=this['_revisionService']['getCurrentRevOfUnit'](this[_0x5cfb08(0x4a9)]))){if(this['_collaborationPaused']){this[_0x5cfb08(0x1db)][_0x5cfb08(0x17e)](_0x2bba79);return;}this[_0x5cfb08(0x190)](_0x2bba79);}}[_0x2683e6(0x193)](){const _0x528973=_0x2683e6;this[_0x528973(0x1db)]['forEach'](_0x448da9=>this['_applyRemoteChangeset'](_0x448da9)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x2a710e){const _0xbb53ae=_0x2683e6,_0x471215=this[_0xbb53ae(0x2fb)][_0xbb53ae(0x475)]['fetchThroughInterceptors'](this[_0xbb53ae(0x2fb)]['interceptor'][_0xbb53ae(0x2e9)]()['COMPRESS_MUTATION_APPLY'])(_0x2a710e[_0xbb53ae(0x2a9)],null)||_0x2a710e[_0xbb53ae(0x2a9)],_0x4e9cd7={..._0x2a710e,'mutations':_0x471215};this[_0xbb53ae(0x15a)](),this[_0xbb53ae(0x54d)](this[_0xbb53ae(0x3c4)][_0xbb53ae(0x373)](_0x4e9cd7)),this[_0xbb53ae(0x2fd)]();}[_0x2683e6(0x364)](_0x231582){const _0x68ddfb=_0x2683e6;this[_0x68ddfb(0x15a)](),this[_0x68ddfb(0x54d)](this[_0x68ddfb(0x3c4)][_0x68ddfb(0x1a5)](_0x231582)),this['_unlockTransition']();}[_0x2683e6(0x274)](_0xabf9b9){const _0xb5b38=_0x2683e6;this[_0xb5b38(0x15a)](),this[_0xb5b38(0x54d)](this['_state']['onRemoteRej'](_0xabf9b9)),this[_0xb5b38(0x2fd)]();}[_0x2683e6(0x1a7)](_0x92d52c){const _0x4a0c23=_0x2683e6;this[_0x4a0c23(0x15a)](),this['_updateState'](this[_0x4a0c23(0x3c4)][_0x4a0c23(0x456)](_0x92d52c)),this['_unlockTransition']();}['_onFetchMissResult'](_0x3f5bfe){const _0x34f267=_0x2683e6;if(!(this[_0x34f267(0x3c4)]instanceof re))throw new TypeError(_0x34f267(0x379));const _0x692efb=_0x3f5bfe[_0x34f267(0x538)](_0x13af5d=>{const _0xf520b9=_0x34f267,_0x22f3ca=this['_compressMutationService'][_0xf520b9(0x475)]['fetchThroughInterceptors'](this[_0xf520b9(0x2fb)]['interceptor'][_0xf520b9(0x2e9)]()[_0xf520b9(0x2f4)])(_0x13af5d[_0xf520b9(0x2a9)],null)||_0x13af5d['mutations'];return{..._0x13af5d,'mutations':_0x22f3ca};});this[_0x34f267(0x15a)](),this[_0x34f267(0x54d)](this[_0x34f267(0x3c4)][_0x34f267(0x16f)](_0x692efb)),this['_unlockTransition']();}[_0x2683e6(0x202)](){const _0x4dd902=_0x2683e6;this[_0x4dd902(0x15a)](),this[_0x4dd902(0x54d)](this[_0x4dd902(0x3c4)][_0x4dd902(0x173)]()),this[_0x4dd902(0x2fd)]();}[_0x2683e6(0x4bd)](_0x1f2dcf=!0x1){const _0x491026=_0x2683e6;this[_0x491026(0x15a)](),this[_0x491026(0x54d)](this['_state'][_0x491026(0x46e)]()),this[_0x491026(0x2fd)]();const _0x5059c7=this['_state'];_0x1f2dcf&&_0x5059c7 instanceof Oe&&(this[_0x491026(0x15a)](),this[_0x491026(0x54d)](_0x5059c7['fetchMiss']()),this[_0x491026(0x2fd)]());}async[_0x2683e6(0x378)](){return new Promise(_0x448289=>{const _0x12339c=_0x479a;this['session']['sessionStatus$'][_0x12339c(0x36b)](A[_0x12339c(0x282)](0x1))[_0x12339c(0x44d)](async _0x424e1b=>{const _0x19e6f3=_0x12339c;_0x448289(await this[_0x19e6f3(0x5b0)](_0x424e1b===se[_0x19e6f3(0x191)]));});});}[_0x2683e6(0x1d9)](){const _0x3b9be0=this['unitID'];return{'onStateChange':(_0x8e7a34,_0x74b7fc)=>{const _0x2e094e=_0x479a;if(_0x8e7a34!==this[_0x2e094e(0x3c4)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x8e7a34['status']+'\x0aAfter:\x20'+_0x74b7fc[_0x2e094e(0x47e)]+_0x2e094e(0x307)+this['_state'][_0x2e094e(0x47e)]);this[_0x2e094e(0x54d)](_0x74b7fc);},'onSendChangeset':_0x227101=>{const _0x53a698=_0x479a;_0x227101[_0x53a698(0x1ea)]||(_0x227101[_0x53a698(0x1ea)]=this[_0x53a698(0x1c5)],_0x227101[_0x53a698(0x5c5)]=++this[_0x53a698(0x47f)]);const _0x497b03={'eventID':S[_0x53a698(0x3d6)][_0x53a698(0x2a4)],'data':{'unitID':_0x227101[_0x53a698(0x4a9)],'unitType':this[_0x53a698(0x3e6)],'changeset':_0x227101,'memberID':this['session']['getMemberID']()}};this[_0x53a698(0x34f)]['send'](_0x497b03,this[_0x53a698(0x4a9)]);},'onMissingChangesets':({from:_0x29aee7,to:_0x190515})=>{const _0xfa4efc=_0x479a;this[_0xfa4efc(0x577)][_0xfa4efc(0x3db)](_0xfa4efc(0x3f6),_0xfa4efc(0x5f5)+_0x29aee7+'\x20to\x20'+_0x190515);const _0x2afea8={'eventID':S[_0xfa4efc(0x3d6)][_0xfa4efc(0x464)],'data':{'unitID':_0x3b9be0,'unitType':this[_0xfa4efc(0x3e6)],'from':_0x29aee7,'to':_0x190515}};this['session'][_0xfa4efc(0x4ae)](_0x2afea8,this[_0xfa4efc(0x4a9)]);}};}async[_0x2683e6(0x5b0)](_0x2cdfa1){const _0xd797ed=_0x2683e6;var _0x89910d,_0x230811;const _0xf1839e=await this[_0xd797ed(0x4ee)][_0xd797ed(0x27c)](this['unitID']),_0x394056=(_0x89910d=_0xf1839e==null?void 0x0:_0xf1839e[_0xd797ed(0x2a9)])!=null?_0x89910d:[],_0x269086=(_0x230811=_0xf1839e==null?void 0x0:_0xf1839e[_0xd797ed(0x154)])!=null?_0x230811:null,_0x4994f4=!!(_0x269086!=null&&_0x269086[_0xd797ed(0x1ea)])&&!!(_0x269086!=null&&_0x269086[_0xd797ed(0x5c5)]);this['_changesetSessionId']=_0x4994f4?_0x269086[_0xd797ed(0x1ea)]:mi(),this[_0xd797ed(0x47f)]=_0x4994f4?_0x269086[_0xd797ed(0x5c5)]:0x0;const _0x507b42=this[_0xd797ed(0x4a9)];try{this[_0xd797ed(0x3e0)](_0x269086,_0x394056);}catch(_0x35f123){this[_0xd797ed(0x577)]['error'](_0x35f123);}const _0x473c3c=this[_0xd797ed(0x1d9)]();if(_0x2cdfa1){const _0x2bdb16=mn(this['_injector'],_0x507b42,this[_0xd797ed(0x3e6)],_0x269086,_0x394056,_0x473c3c);return _0x2bdb16 instanceof ce?_0x2bdb16[_0xd797ed(0x375)]():(_0x2bdb16 instanceof le||_0x2bdb16 instanceof fe)&&_0x2bdb16[_0xd797ed(0x4df)](),_0x2bdb16;}return this[_0xd797ed(0x3e9)][_0xd797ed(0x4d7)](me,_0x507b42,this[_0xd797ed(0x3e6)],_0x269086,_0x394056,_0x473c3c);}['_replayCachedMutations'](_0x1748c4,_0x57064a){const _0x24c4ab=_0x2683e6;var _0x497977,_0x354f01;const _0x47b728=this[_0x24c4ab(0x2fb)][_0x24c4ab(0x475)][_0x24c4ab(0x5d9)](this[_0x24c4ab(0x2fb)][_0x24c4ab(0x475)][_0x24c4ab(0x2e9)]()['COMPRESS_MUTATION_APPLY']);(_0x497977=_0x47b728((_0x1748c4==null?void 0x0:_0x1748c4[_0x24c4ab(0x2a9)])||[],null))==null||_0x497977[_0x24c4ab(0x280)](_0x2e71f1=>this[_0x24c4ab(0x447)]['executeCommand'](_0x2e71f1['id'],_0x2e71f1[_0x24c4ab(0x55b)])),(_0x354f01=_0x47b728(_0x57064a||[],null))==null||_0x354f01['forEach'](_0x373de7=>this[_0x24c4ab(0x447)][_0x24c4ab(0x511)](_0x373de7['id'],_0x373de7['params']));}},exports[_0x2683e6(0x30d)]=yt([H(0x3,a['Inject'](a[_0x2683e6(0x2c8)])),H(0x4,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),H(0x5,a['Inject'](S[_0x2683e6(0x3a1)])),H(0x6,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),H(0x7,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),H(0x8,a[_0x2683e6(0x5a9)]),H(0x9,a[_0x2683e6(0x1d5)]),H(0xa,ee[_0x2683e6(0x509)]),H(0xb,a[_0x2683e6(0x273)]),H(0xc,a[_0x2683e6(0x23c)](qe))],exports[_0x2683e6(0x30d)]),exports[_0x2683e6(0x365)]=class extends exports['CollaborationEntity']{constructor(_0x1c0758,_0x46ffb5,_0x5898b1,_0x53e94a,_0xb383e9,_0x58c387,_0x5e5e00,_0xe11058,_0x80f69f,_0x10511d,_0x5a6cd8,_0x5a8136,_0x3ef1b9,_0x421b54,_0x1061c9,_0x38a8b5,_0x12c9ef,_0x394f67){const _0x1e1c97=_0x2683e6;super(_0x1c0758,_0x5898b1,_0x46ffb5,_0x53e94a,_0xb383e9,_0x58c387,_0x5e5e00,_0xe11058,_0x421b54,_0x1061c9,_0x38a8b5,_0x12c9ef,_0x394f67),this[_0x1e1c97(0x4a9)]=_0x1c0758,this[_0x1e1c97(0x44a)]=_0x46ffb5,this[_0x1e1c97(0x42e)]=_0x80f69f,this[_0x1e1c97(0x1bb)]=_0x10511d,this[_0x1e1c97(0x5d8)]=_0x5a6cd8,this[_0x1e1c97(0x20f)]=_0x5a8136,this['_docSyncEditingCollabCursorService']=_0x3ef1b9;}[_0x2683e6(0x1d9)](){const _0x5a6c4f=_0x2683e6,_0x27418e=super[_0x5a6c4f(0x1d9)]();return _0x27418e[_0x5a6c4f(0x32f)]=_0x59465c=>this['_docTransformIMECacheService'][_0x5a6c4f(0x4d2)](_0x59465c),_0x27418e[_0x5a6c4f(0x458)]=_0x7b57cf=>this[_0x5a6c4f(0x5d8)][_0x5a6c4f(0x37e)](_0x7b57cf),_0x27418e[_0x5a6c4f(0x366)]=_0x364c4d=>this[_0x5a6c4f(0x20f)][_0x5a6c4f(0x46a)](_0x364c4d),_0x27418e[_0x5a6c4f(0x2fe)]=_0x277f2a=>this[_0x5a6c4f(0x1dd)][_0x5a6c4f(0x4be)](_0x277f2a),_0x27418e[_0x5a6c4f(0x3bd)]=_0x42372d=>this['_docTransformIMECacheService'][_0x5a6c4f(0x5b3)](_0x42372d),_0x27418e[_0x5a6c4f(0x48d)]=_0x5bddcd=>this[_0x5a6c4f(0x5d8)][_0x5a6c4f(0x5b3)](_0x5bddcd),_0x27418e;}async[_0x2683e6(0x4ea)](){const _0x432b7f=_0x2683e6,_0x28480a=await super[_0x432b7f(0x4ea)]();return this['_docStateChangeManagerService'][_0x432b7f(0x439)][_0x432b7f(0x36b)](A['takeUntil'](this[_0x432b7f(0x534)]))[_0x432b7f(0x44d)](_0x25929a=>{const _0x125526=_0x432b7f;if(_0x25929a==null)return;const {unitId:_0x16c4e0,redoState:_0x13644e,commandId:_0x166da2}=_0x25929a;if(_0x16c4e0!==this['unitID'])return;const _0x101d46={'id':_0x166da2,'type':a[_0x125526(0x59f)][_0x125526(0x3fd)],'params':{'unitId':_0x16c4e0,'actions':_0x13644e[_0x125526(0x2ab)],'textRanges':null}};this['_onLocalMutation'](_0x101d46);}),_0x28480a;}},exports[_0x2683e6(0x365)]=yt([H(0x3,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),H(0x4,a[_0x2683e6(0x22b)](exports['LocalCacheService'])),H(0x5,a['Inject'](S['CompressMutationService'])),H(0x6,a[_0x2683e6(0x22b)](a['LocaleService'])),H(0x7,a[_0x2683e6(0x22b)](S[_0x2683e6(0x4f5)])),H(0x8,a['Inject'](J[_0x2683e6(0x169)])),H(0x9,a[_0x2683e6(0x22b)](Be)),H(0xa,a['Inject'](We)),H(0xb,a[_0x2683e6(0x22b)](Fe)),H(0xc,a[_0x2683e6(0x22b)](Rt)),H(0xd,a[_0x2683e6(0x5a9)]),H(0xe,a[_0x2683e6(0x1d5)]),H(0xf,ee[_0x2683e6(0x509)]),H(0x10,a[_0x2683e6(0x273)]),H(0x11,a[_0x2683e6(0x23c)](qe))],exports[_0x2683e6(0x365)]),exports[_0x2683e6(0x4bf)]=class extends exports['CollaborationEntity']{constructor(_0x169d8a,_0x13fca7,_0x3e2e35,_0x4345c1,_0x1a5bb3,_0x4c4684,_0x5708ee,_0x41b857,_0x13b3a7,_0xf624bd,_0x26c54b,_0x51d9e8,_0x578d65,_0x6a226e){const _0x12c320=_0x2683e6;super(_0x169d8a,_0x3e2e35,_0x13fca7,_0x4345c1,_0x1a5bb3,_0x4c4684,_0x5708ee,_0x41b857,_0xf624bd,_0x26c54b,_0x51d9e8,_0x578d65,_0x6a226e),this[_0x12c320(0x4a9)]=_0x169d8a,this['type']=_0x13fca7,this['_sheetTransformSelectionsService']=_0x13b3a7;}[_0x2683e6(0x1d9)](){const _0x3a22c7=_0x2683e6,_0x4a31af=super[_0x3a22c7(0x1d9)]();return _0x4a31af['onTransformSelections']=_0x17a207=>this[_0x3a22c7(0x440)][_0x3a22c7(0x46a)](_0x17a207),_0x4a31af;}async[_0x2683e6(0x4ea)](){const _0x42bd42=_0x2683e6,_0x284849=await super['_init']();return this[_0x42bd42(0x427)](this[_0x42bd42(0x447)][_0x42bd42(0x571)]((_0x33a5e5,_0x36fb5a)=>{const _0x89ff16=_0x42bd42;if(_0x33a5e5[_0x89ff16(0x44a)]!==a[_0x89ff16(0x59f)]['MUTATION']||_0x36fb5a!=null&&_0x36fb5a[_0x89ff16(0x498)]||_0x36fb5a!=null&&_0x36fb5a['onlyLocal'])return;const _0x486f94=_0x33a5e5[_0x89ff16(0x55b)];if((_0x486f94==null?void 0x0:_0x486f94[_0x89ff16(0x5e6)])!==this['unitID'])return;const _0x2ddd78=_0x33a5e5,_0xdbc3e0=this[_0x89ff16(0x2fb)][_0x89ff16(0x475)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x89ff16(0x2e9)]()[_0x89ff16(0x484)])([_0x2ddd78],null)||[_0x2ddd78];this[_0x89ff16(0x300)](_0xdbc3e0[0x0]);})),_0x284849;}},exports['SheetCollaborationEntity']=yt([H(0x3,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),H(0x4,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),H(0x5,a[_0x2683e6(0x22b)](S[_0x2683e6(0x3a1)])),H(0x6,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)])),H(0x7,a['Inject'](S[_0x2683e6(0x4f5)])),H(0x8,a[_0x2683e6(0x22b)](ke)),H(0x9,a[_0x2683e6(0x5a9)]),H(0xa,a[_0x2683e6(0x1d5)]),H(0xb,ee[_0x2683e6(0x509)]),H(0xc,a['IPermissionService']),H(0xd,a[_0x2683e6(0x23c)](qe))],exports[_0x2683e6(0x4bf)]);var Wi=Object[_0x2683e6(0x1e7)],Fi=Object[_0x2683e6(0x181)],Vi=(_0x400d7a,_0xe6edb6,_0x42af82,_0x438d1e)=>{const _0x35615c=_0x2683e6;for(var _0x38d939=_0x438d1e>0x1?void 0x0:_0x438d1e?Fi(_0xe6edb6,_0x42af82):_0xe6edb6,_0x5af708=_0x400d7a[_0x35615c(0x29a)]-0x1,_0x3bbf2e;_0x5af708>=0x0;_0x5af708--)(_0x3bbf2e=_0x400d7a[_0x5af708])&&(_0x38d939=(_0x438d1e?_0x3bbf2e(_0xe6edb6,_0x42af82,_0x38d939):_0x3bbf2e(_0x38d939))||_0x38d939);return _0x438d1e&&_0x38d939&&Wi(_0xe6edb6,_0x42af82,_0x38d939),_0x38d939;},tt=(_0x1b17a2,_0x33575f)=>(_0x475a27,_0x1a6c58)=>_0x33575f(_0x475a27,_0x1a6c58,_0x1b17a2);exports[_0x2683e6(0x3de)]=class extends a[_0x2683e6(0x1e0)]{constructor(_0x15bad5,_0x7b698a,_0x4cde75){const _0x8b9974=_0x2683e6;super(),I(this,_0x8b9974(0x37a),new Map()),I(this,_0x8b9974(0x316),new A[(_0x8b9974(0x51b))]()),(this[_0x8b9974(0x3e9)]=_0x15bad5,this[_0x8b9974(0x5f7)]=_0x7b698a,this['_univerInstanceService']=_0x4cde75,this[_0x8b9974(0x4ea)]());}['dispose'](){const _0x149421=_0x2683e6;super[_0x149421(0x269)](),this[_0x149421(0x37a)][_0x149421(0x280)](_0x5cdd3f=>_0x5cdd3f[_0x149421(0x269)]()),this[_0x149421(0x37a)][_0x149421(0x308)]();}[_0x2683e6(0x3c3)](_0xd42001){const _0x1aaa4e=_0x2683e6;var _0xe8cf98;return(_0xe8cf98=this['_entities'][_0x1aaa4e(0x553)](_0xd42001))!=null?_0xe8cf98:null;}[_0x2683e6(0x3f8)](_0x38a4f4){const _0x5ddd40=_0x2683e6,_0x1b0cf7=this[_0x5ddd40(0x3c3)](_0x38a4f4);return _0x1b0cf7?A['of'](_0x1b0cf7):this[_0x5ddd40(0x316)][_0x5ddd40(0x36b)](V[_0x5ddd40(0x57f)](_0x227b96=>_0x227b96['unitID']===_0x38a4f4));}[_0x2683e6(0x4ea)](){const _0x2ceb03=_0x2683e6;this[_0x2ceb03(0x45b)][_0x2ceb03(0x32d)](a[_0x2ceb03(0x342)][_0x2ceb03(0x4a1)])[_0x2ceb03(0x36b)](A[_0x2ceb03(0x35f)](this['dispose$']),V[_0x2ceb03(0x1ba)](0x10))[_0x2ceb03(0x44d)](async _0x5ac9be=>{const _0x19b2f5=_0x2ceb03,_0x56bf90=_0x5ac9be[_0x19b2f5(0x478)](),_0x3a2b3c=await this[_0x19b2f5(0x385)](_0x56bf90,ie[_0x19b2f5(0x4a1)]);this[_0x19b2f5(0x37a)][_0x19b2f5(0x46f)](_0x56bf90,_0x3a2b3c);}),this[_0x2ceb03(0x45b)][_0x2ceb03(0x32d)](a['UniverInstanceType'][_0x2ceb03(0x56e)])[_0x2ceb03(0x36b)](A[_0x2ceb03(0x35f)](this['dispose$']),V[_0x2ceb03(0x1ba)](0x10))[_0x2ceb03(0x36b)](V[_0x2ceb03(0x57f)](_0x3abd7a=>!_0x3abd7a[_0x2ceb03(0x478)]()[_0x2ceb03(0x205)]('__')))['subscribe'](async _0xa11b91=>{const _0x295214=_0x2ceb03,_0x285c2e=_0xa11b91[_0x295214(0x478)](),_0xe8ee81=await this['_startCollaboration'](_0x285c2e,ie[_0x295214(0x56e)]);this[_0x295214(0x37a)][_0x295214(0x46f)](_0x285c2e,_0xe8ee81);}),A[_0x2ceb03(0x3ee)](this[_0x2ceb03(0x45b)][_0x2ceb03(0x3b4)](a[_0x2ceb03(0x342)][_0x2ceb03(0x4a1)]),this['_univerInstanceService'][_0x2ceb03(0x3b4)](a['UniverInstanceType'][_0x2ceb03(0x56e)]))[_0x2ceb03(0x36b)](A[_0x2ceb03(0x35f)](this['dispose$']))['subscribe'](_0x6b5082=>{const _0x3a53f3=_0x2ceb03,_0x29024f=_0x6b5082[_0x3a53f3(0x478)](),_0x3fb573=this['_entities']['get'](_0x29024f);_0x3fb573&&(_0x3fb573[_0x3a53f3(0x269)](),this['_entities']['delete'](_0x29024f));});}async['_startCollaboration'](_0xc79767,_0x55a903){const _0x52da71=_0x2683e6,_0x5e6682=await this[_0x52da71(0x5f7)][_0x52da71(0x2b8)](_0xc79767),_0x1e2927=this[_0x52da71(0x3e9)][_0x52da71(0x4d7)](this[_0x52da71(0x55a)](_0x55a903),_0xc79767,_0x55a903,_0x5e6682);return await _0x1e2927[_0x52da71(0x25b)](),this[_0x52da71(0x316)][_0x52da71(0x40f)](_0x1e2927),_0x1e2927;}[_0x2683e6(0x55a)](_0xf81815){const _0x5c9a5d=_0x2683e6;switch(_0xf81815){case ie[_0x5c9a5d(0x56e)]:return exports[_0x5c9a5d(0x365)];case ie[_0x5c9a5d(0x4a1)]:return exports[_0x5c9a5d(0x4bf)];default:throw new Error(_0x5c9a5d(0x44f)+_0xf81815);}}},exports[_0x2683e6(0x3de)]=Vi([tt(0x0,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),tt(0x1,a['Inject'](exports[_0x2683e6(0x17a)])),tt(0x2,a[_0x2683e6(0x468)])],exports[_0x2683e6(0x3de)]);const $t=[_0x2683e6(0x592),_0x2683e6(0x3e5),_0x2683e6(0x495),_0x2683e6(0x292),_0x2683e6(0x4c6),_0x2683e6(0x510)];class Ot extends a[_0x2683e6(0x3cc)]{constructor(){const _0x59dccd=_0x2683e6;super(...arguments),I(this,_0x59dccd(0x3ab),new Map()),I(this,_0x59dccd(0x1c1),0x0);}[_0x2683e6(0x1b0)](_0x887cf0){const _0x25130f=_0x2683e6;if(this['_assignedColors']['has'](_0x887cf0))return this[_0x25130f(0x3ab)][_0x25130f(0x553)](_0x887cf0);const _0x1aaf19=$t[this[_0x25130f(0x1c1)]];return this[_0x25130f(0x1c1)]=(this[_0x25130f(0x1c1)]+0x1)%$t[_0x25130f(0x29a)],this[_0x25130f(0x3ab)][_0x25130f(0x46f)](_0x887cf0,_0x1aaf19),_0x1aaf19;}}var Gi=Object[_0x2683e6(0x1e7)],Yi=Object[_0x2683e6(0x181)],Ki=(_0xf5675,_0x4cbdfe,_0x122998,_0x23b550)=>{const _0x354fbd=_0x2683e6;for(var _0xe17774=_0x23b550>0x1?void 0x0:_0x23b550?Yi(_0x4cbdfe,_0x122998):_0x4cbdfe,_0x6be963=_0xf5675[_0x354fbd(0x29a)]-0x1,_0x1ff0d3;_0x6be963>=0x0;_0x6be963--)(_0x1ff0d3=_0xf5675[_0x6be963])&&(_0xe17774=(_0x23b550?_0x1ff0d3(_0x4cbdfe,_0x122998,_0xe17774):_0x1ff0d3(_0xe17774))||_0xe17774);return _0x23b550&&_0xe17774&&Gi(_0x4cbdfe,_0x122998,_0xe17774),_0xe17774;},Se=(_0x40ce1c,_0x4cf1c2)=>(_0x54b2a8,_0x67141b)=>_0x4cf1c2(_0x54b2a8,_0x67141b,_0x40ce1c);const qi=0x12c,zi=0x64;let mt=class extends a[_0x2683e6(0x1e0)]{constructor(_0x3d6645,_0x1e01e5,_0x29b9e9,_0xac3491,_0x202fe5,_0xc8be35,_0x2bacc,_0x1a4d3b,_0x222c86){const _0x5916a2=_0x2683e6;super(),I(this,_0x5916a2(0x15d),!0x1),I(this,_0x5916a2(0x4ea),!0x1),I(this,_0x5916a2(0x4a5),new A[(_0x5916a2(0x1ce))](new Map())),I(this,_0x5916a2(0x449),this[_0x5916a2(0x4a5)][_0x5916a2(0x4f2)]()),I(this,'_roomMembers$',new A[(_0x5916a2(0x1ce))]([])),I(this,'roomMembers$',this[_0x5916a2(0x3f9)]['pipe'](A['debounceTime'](qi))),I(this,_0x5916a2(0x288),a[_0x5916a2(0x2b9)](_0x4da40f=>{const _0x44afc7=_0x5916a2,_0x559d8a={'eventID':S[_0x44afc7(0x3d6)][_0x44afc7(0x470)],'data':{'unitID':this[_0x44afc7(0x4a9)],'memberID':this['_session']['getMemberID'](),'selection':dn(_0x4da40f)}};this[_0x44afc7(0x389)][_0x44afc7(0x4ae)](_0x559d8a,this[_0x44afc7(0x4a9)]);},zi)),(this['unitID']=_0x3d6645,this['_session']=_0x1e01e5,this[_0x5916a2(0x3e9)]=_0x29b9e9,this['_colorAssignService']=_0xac3491,this[_0x5916a2(0x2cf)]=_0x202fe5,this['_syncEditingCollabCursorService']=_0xc8be35,this[_0x5916a2(0x318)]=_0x2bacc,this[_0x5916a2(0x45b)]=_0x1a4d3b,this['_commandService']=_0x222c86);}get[_0x2683e6(0x1d4)](){const _0x45e4ce=_0x2683e6;return this[_0x45e4ce(0x4a5)][_0x45e4ce(0x1fb)]();}get[_0x2683e6(0x33a)](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x23cbf4=_0x2683e6;super[_0x23cbf4(0x269)](),this[_0x23cbf4(0x4a5)][_0x23cbf4(0x40f)](new Map()),this[_0x23cbf4(0x4a5)][_0x23cbf4(0x438)](),this[_0x23cbf4(0x3f9)]['next']([]),this[_0x23cbf4(0x3f9)][_0x23cbf4(0x438)]();}[_0x2683e6(0x25b)](){const _0x34cf52=_0x2683e6;this[_0x34cf52(0x4ea)]||(this['_init']=!0x0,this[_0x34cf52(0x389)]['sessionStatus$'][_0x34cf52(0x36b)](A[_0x34cf52(0x35f)](this['dispose$']))['subscribe'](_0x489bdf=>{const _0x15310f=_0x34cf52;_0x489bdf===se[_0x15310f(0x191)]?this[_0x15310f(0x4bd)]():this['_toggleOffline']();}),this[_0x34cf52(0x389)][_0x34cf52(0x279)][_0x34cf52(0x36b)](A[_0x34cf52(0x35f)](this['dispose$']))[_0x34cf52(0x44d)](_0x2d35b7=>{const _0x26b3bd=_0x34cf52,_0xb30264=_0x2d35b7['eventID'];_0xb30264===S[_0x26b3bd(0x3d6)][_0x26b3bd(0x470)]&&this[_0x26b3bd(0x4ed)](_0x2d35b7),_0xb30264===S[_0x26b3bd(0x3d6)][_0x26b3bd(0x388)]&&this[_0x26b3bd(0x414)](_0x2d35b7);}),this['disposeWithMe'](this['_commandService'][_0x34cf52(0x571)](_0x52dcf8=>{const _0x5537e7=_0x34cf52,_0x2b48d6=_0x52dcf8[_0x5537e7(0x55b)];_0x2b48d6!=null&&this['_online']&&_0x52dcf8['id']===ye[_0x5537e7(0x2d9)]['id']&&_0x2b48d6[_0x5537e7(0x5e6)]===this[_0x5537e7(0x4a9)]&&_0x2b48d6[_0x5537e7(0x33b)]===!0x1&&_0x2b48d6[_0x5537e7(0x213)][_0x5537e7(0x29a)]>0x0&&this[_0x5537e7(0x288)](_0x2b48d6[_0x5537e7(0x213)]);})),this[_0x34cf52(0x20b)][_0x34cf52(0x409)][_0x34cf52(0x36b)](A['takeUntil'](this['dispose$']))[_0x34cf52(0x44d)](_0x164269=>{const _0x128c1c=_0x34cf52;if((_0x164269==null?void 0x0:_0x164269[_0x128c1c(0x4a9)])!==this[_0x128c1c(0x4a9)])return;const _0x21706f={'eventID':S[_0x128c1c(0x3d6)][_0x128c1c(0x470)],'data':_0x164269};this[_0x128c1c(0x4ed)](_0x21706f);}),this[_0x34cf52(0x427)](this[_0x34cf52(0x447)][_0x34cf52(0x571)](_0xa1c6d5=>{const _0x4e8a47=_0x34cf52;if(_0xa1c6d5[_0x4e8a47(0x55b)]==null)return;const _0x2fdda7=_0xa1c6d5['params'];if(_0xa1c6d5['id']!==ye['RichTextEditingMutation']['id']||_0x2fdda7[_0x4e8a47(0x5e6)]!==this['unitID'])return;const _0x288ad7={'id':_0x4e8a47(0x35c),'params':_0x2fdda7},_0x1788b2=this['cursorInfo'];for(const [_0x4b07b2,_0x117fe4]of _0x1788b2){const _0xb48f0c={'id':_0x4e8a47(0x35c),'params':{'unitId':this[_0x4e8a47(0x4a9)],'actions':null,'textRanges':_0x117fe4[_0x4e8a47(0x213)]}},_0x26d9f8=this[_0x4e8a47(0x318)][_0x4e8a47(0x2b0)](_0x288ad7,_0xb48f0c,!0x1);if(S[_0x4e8a47(0x157)](_0x26d9f8))throw _0x26d9f8['error'];_0x1788b2[_0x4e8a47(0x46f)](_0x4b07b2,{..._0x117fe4,'ranges':_0x26d9f8[_0x4e8a47(0x326)]['params'][_0x4e8a47(0x242)]});}queueMicrotask(()=>{const _0x3cf62b=_0x4e8a47;this['_cursorInfo$'][_0x3cf62b(0x40f)](_0x1788b2);});})));}[_0x2683e6(0x4ed)](_0x461967){const _0x493a47=_0x2683e6;var _0x5538b6,_0x5c7336;const {memberID:_0x575cb0,selection:_0x4d0a8c}=_0x461967[_0x493a47(0x5ac)],_0x475389=Ui(_0x4d0a8c),_0x59ccee=(_0x5c7336=(_0x5538b6=this['_memberService'][_0x493a47(0x55d)](this[_0x493a47(0x4a9)],_0x575cb0))==null?void 0x0:_0x5538b6[_0x493a47(0x231)])!=null?_0x5c7336:_0x493a47(0x3cd),_0x11085e={'color':this['_colorAssignService'][_0x493a47(0x1b0)](_0x575cb0),'name':_0x59ccee,'ranges':_0x475389},_0x579669=this[_0x493a47(0x1d4)];_0x579669[_0x493a47(0x46f)](_0x575cb0,_0x11085e),this['_cursorInfo$']['next'](_0x579669);}[_0x2683e6(0x414)](_0x19645e){const _0x182356=_0x2683e6,{memberID:_0x4746ab}=_0x19645e['data'],_0x1be917=this[_0x182356(0x1d4)];_0x1be917[_0x182356(0x27e)](_0x4746ab),this[_0x182356(0x4a5)][_0x182356(0x40f)](_0x1be917);}[_0x2683e6(0x4bd)](){const _0x5f22a8=_0x2683e6;var _0x4d6616;if(this['_online']=!0x0,((_0x4d6616=this[_0x5f22a8(0x45b)]['getFocusedUnit']())==null?void 0x0:_0x4d6616['getUnitId']())!==this[_0x5f22a8(0x4a9)])return;const _0x378a21=this[_0x5f22a8(0x3e9)]['get'](ye[_0x5f22a8(0x53e)])[_0x5f22a8(0x500)]();Array['isArray'](_0x378a21)&&_0x378a21[_0x5f22a8(0x29a)]>0x0&&this[_0x5f22a8(0x288)](_0x378a21);}[_0x2683e6(0x202)](){const _0x5edcb0=_0x2683e6;this[_0x5edcb0(0x15d)]=!0x1;}};mt=Ki([Se(0x2,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),Se(0x3,a[_0x2683e6(0x22b)](Ot)),Se(0x4,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x184)])),Se(0x5,a[_0x2683e6(0x22b)](Rt)),Se(0x6,S['ITransformService']),Se(0x7,a['IUniverInstanceService']),Se(0x8,a['ICommandService'])],mt);var Xi=Object[_0x2683e6(0x1e7)],Ji=Object['getOwnPropertyDescriptor'],Zi=(_0x23a92d,_0x318bd0,_0x281c5d,_0x429427)=>{for(var _0x203a59=_0x429427>0x1?void 0x0:_0x429427?Ji(_0x318bd0,_0x281c5d):_0x318bd0,_0x186d69=_0x23a92d['length']-0x1,_0x1bec08;_0x186d69>=0x0;_0x186d69--)(_0x1bec08=_0x23a92d[_0x186d69])&&(_0x203a59=(_0x429427?_0x1bec08(_0x318bd0,_0x281c5d,_0x203a59):_0x1bec08(_0x203a59))||_0x203a59);return _0x429427&&_0x203a59&&Xi(_0x318bd0,_0x281c5d,_0x203a59),_0x203a59;},be=(_0x342e1c,_0x2e0d17)=>(_0x4a6af6,_0xb76a0f)=>_0x2e0d17(_0x4a6af6,_0xb76a0f,_0x342e1c);const Qi=0x12c,es=0x64,ts=()=>{let _0x25f652=[],_0x3d20ec=!0x1;return _0x2b3c72=>{const _0x3fe5d7=_0x479a;_0x25f652[_0x3fe5d7(0x17e)](_0x2b3c72),_0x3d20ec||(_0x3d20ec=!0x0,setTimeout(()=>{_0x25f652['forEach'](_0x416b6e=>_0x416b6e()),_0x25f652=[],_0x3d20ec=!0x1;}));};};let St=class extends a['RxDisposable']{constructor(_0x4a81cd,_0x336bf0,_0x1206f5,_0x3e4821,_0x20b91c,_0x254d35,_0x4679d7,_0x394283){const _0x2f8868=_0x2683e6;super(),I(this,_0x2f8868(0x15d),!0x1),I(this,_0x2f8868(0x4ea),!0x1),I(this,'_cursorInfo$',new A[(_0x2f8868(0x1ce))](new Map())),I(this,_0x2f8868(0x449),this[_0x2f8868(0x4a5)][_0x2f8868(0x4f2)]()),I(this,_0x2f8868(0x3f9),new A[(_0x2f8868(0x1ce))]([])),I(this,_0x2f8868(0x34a),this[_0x2f8868(0x3f9)][_0x2f8868(0x36b)](A[_0x2f8868(0x208)](Qi))),I(this,_0x2f8868(0x288),a['debounce']((_0x4ec912,_0x52e0d7)=>{const _0x34c45b=_0x2f8868,_0x233fa4={'eventID':S[_0x34c45b(0x3d6)][_0x34c45b(0x470)],'data':{'unitID':this[_0x34c45b(0x4a9)],'memberID':this[_0x34c45b(0x389)][_0x34c45b(0x4c2)](),'selection':Pt[_0x34c45b(0x31b)](_0x4ec912,_0x52e0d7[_0x34c45b(0x1c7)])}};this[_0x34c45b(0x389)][_0x34c45b(0x4ae)](_0x233fa4,this[_0x34c45b(0x4a9)]);},es)),(this[_0x2f8868(0x4a9)]=_0x4a81cd,this[_0x2f8868(0x389)]=_0x336bf0,this[_0x2f8868(0x3e9)]=_0x1206f5,this[_0x2f8868(0x26b)]=_0x3e4821,this[_0x2f8868(0x2cf)]=_0x20b91c,this['_univerInstanceService']=_0x254d35,this[_0x2f8868(0x447)]=_0x4679d7,this[_0x2f8868(0x153)]=_0x394283);}get[_0x2683e6(0x1d4)](){const _0x448dd2=_0x2683e6;return this[_0x448dd2(0x4a5)]['getValue']();}get[_0x2683e6(0x33a)](){const _0x237cdf=_0x2683e6;return this['_roomMembers$'][_0x237cdf(0x1fb)]();}[_0x2683e6(0x269)](){const _0x5716cc=_0x2683e6;super[_0x5716cc(0x269)](),this['_cursorInfo$'][_0x5716cc(0x40f)](new Map()),this[_0x5716cc(0x4a5)][_0x5716cc(0x438)](),this[_0x5716cc(0x3f9)]['next']([]),this[_0x5716cc(0x3f9)][_0x5716cc(0x438)]();}['init'](){const _0x66e41b=_0x2683e6;this[_0x66e41b(0x4ea)]||(this[_0x66e41b(0x4ea)]=!0x0,this[_0x66e41b(0x389)][_0x66e41b(0x497)][_0x66e41b(0x36b)](A[_0x66e41b(0x35f)](this[_0x66e41b(0x534)]))[_0x66e41b(0x44d)](_0x4d41d2=>{const _0x418f0c=_0x66e41b;_0x4d41d2===se['ONLINE']?this['_toggleOnline']():this[_0x418f0c(0x202)]();}),this[_0x66e41b(0x389)][_0x66e41b(0x279)]['pipe'](A['takeUntil'](this[_0x66e41b(0x534)]))[_0x66e41b(0x44d)](_0x2ec39c=>{const _0x1cb336=_0x66e41b,_0x37e3ce=_0x2ec39c[_0x1cb336(0x477)];_0x37e3ce===S[_0x1cb336(0x3d6)][_0x1cb336(0x470)]&&this[_0x1cb336(0x4ed)](_0x2ec39c),_0x37e3ce===S[_0x1cb336(0x3d6)][_0x1cb336(0x388)]&&this[_0x1cb336(0x414)](_0x2ec39c);}),this[_0x66e41b(0x2e6)](),this[_0x66e41b(0x427)](this['_commandService'][_0x66e41b(0x571)](_0x50d239=>{const _0x3f4c07=_0x66e41b;if(this['_online']&&_0x50d239['id']===k[_0x3f4c07(0x227)]['id']&&_0x50d239[_0x3f4c07(0x55b)]['unitId']===this[_0x3f4c07(0x4a9)]){const _0x190143=_0x50d239[_0x3f4c07(0x55b)];this[_0x3f4c07(0x288)](_0x190143['subUnitId'],_0x190143[_0x3f4c07(0x50b)][0x0]);}})));}[_0x2683e6(0x4ed)](_0x4c9007){const _0x3aab1b=_0x2683e6;var _0x19f82d,_0x2f0e73;const {memberID:_0x10b8d0,selection:_0x2cfbbe}=_0x4c9007[_0x3aab1b(0x5ac)],{sheetName:_0x41f30c,range:_0x11b742}=Pt['deserializeRangeWithSheet'](_0x2cfbbe),_0x38858={'name':(_0x2f0e73=(_0x19f82d=this[_0x3aab1b(0x2cf)][_0x3aab1b(0x55d)](this[_0x3aab1b(0x4a9)],_0x10b8d0))==null?void 0x0:_0x19f82d[_0x3aab1b(0x231)])!=null?_0x2f0e73:_0x3aab1b(0x3cd),'range':this[_0x3aab1b(0x22a)](_0x41f30c,_0x11b742),'sheetID':_0x41f30c,'color':this[_0x3aab1b(0x26b)][_0x3aab1b(0x1b0)](_0x10b8d0),'selection':_0x2cfbbe},_0xfb1b52=this[_0x3aab1b(0x1d4)];_0xfb1b52[_0x3aab1b(0x46f)](_0x10b8d0,_0x38858),this[_0x3aab1b(0x4a5)][_0x3aab1b(0x40f)](_0xfb1b52);}[_0x2683e6(0x414)](_0x4672bf){const _0x587440=_0x2683e6,{memberID:_0x470a2e}=_0x4672bf[_0x587440(0x5ac)],_0xee48ee=this[_0x587440(0x1d4)];_0xee48ee[_0x587440(0x27e)](_0x470a2e),this[_0x587440(0x4a5)][_0x587440(0x40f)](_0xee48ee);}[_0x2683e6(0x22a)](_0x6a2277,_0x36cd1d){const _0x123f69=_0x2683e6;var _0x14880e,_0x38b6a4;const _0x5bb6a0=(_0x38b6a4=(_0x14880e=this[_0x123f69(0x45b)][_0x123f69(0x3bc)](this[_0x123f69(0x4a9)]))==null?void 0x0:_0x14880e['getSheetBySheetId'](_0x6a2277))==null?void 0x0:_0x38b6a4[_0x123f69(0x1d2)]();return(_0x5bb6a0==null?void 0x0:_0x5bb6a0[_0x123f69(0x250)](_0x2dbfec=>a[_0x123f69(0x587)][_0x123f69(0x5ce)](_0x2dbfec,_0x36cd1d)))||_0x36cd1d;}['_onRefRangeChange'](){const _0x340a1d=_0x2683e6,_0x38e9a1=new a[(_0x340a1d(0x234))](),_0xf05ef9=ts(),_0x580f01=()=>{const _0x1d637d=_0x340a1d;_0x38e9a1['dispose']();const _0xa97c88=(_0x4c5797,_0x17c802,_0x475ca1,_0x4642bd)=>{const _0x1a3822=_0x479a;let _0x5c7447=[];switch(_0x4c5797['id']){case k[_0x1a3822(0x362)]['DeleteRangeMoveLeftCommandId']:{_0x5c7447=k[_0x1a3822(0x21c)](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x41f)]:{_0x5c7447=k['handleDeleteRangeMoveUp'](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x52d)]:{_0x5c7447=k[_0x1a3822(0x5fc)](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x523)]:{_0x5c7447=k[_0x1a3822(0x337)](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x45e)]:{_0x5c7447=k['handleInsertRangeMoveRight'](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x38a)]:{_0x5c7447=k[_0x1a3822(0x351)](_0x4c5797,_0x4642bd);break;}case k['EffectRefRangId'][_0x1a3822(0x4a2)]:{_0x5c7447=k[_0x1a3822(0x34d)](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)]['RemoveColCommandId']:{_0x5c7447=k[_0x1a3822(0x196)](_0x4c5797,_0x4642bd);break;}case k[_0x1a3822(0x362)][_0x1a3822(0x16c)]:{_0x5c7447=k[_0x1a3822(0x19e)](_0x4c5797,_0x4642bd);break;}}const _0x1ca826=k[_0x1a3822(0x525)](_0x5c7447,_0x4642bd),_0x2ba083=this[_0x1a3822(0x1d4)]['get'](_0x17c802);if(_0x2ba083&&_0x1ca826){const _0xfa0dc5={..._0x2ba083,'range':_0x1ca826};this['cursorInfo'][_0x1a3822(0x46f)](_0x17c802,_0xfa0dc5),_0xf05ef9(()=>{const _0x3a511b=_0x1a3822,_0xf57b69=this[_0x3a511b(0x153)][_0x3a511b(0x262)](_0x1ca826,_0x384a57=>(_0xf57b69[_0x3a511b(0x269)](),_0xa97c88(_0x384a57,_0x17c802,_0x475ca1,_0x1ca826)));_0x38e9a1[_0x3a511b(0x494)](_0xf57b69);});}return{'redos':[],'undos':[]};};this[_0x1d637d(0x1d4)][_0x1d637d(0x280)]((_0x4a445d,_0x2ad40c)=>{const _0x552452=_0x1d637d,{range:_0x36362c,sheetID:_0x5df3d3}=_0x4a445d,_0x21887a=this[_0x552452(0x153)][_0x552452(0x262)](_0x36362c,_0xef38bf=>(_0x21887a[_0x552452(0x269)](),_0xa97c88(_0xef38bf,_0x2ad40c,_0x5df3d3,_0x36362c)));_0x38e9a1[_0x552452(0x494)](_0x21887a);});};this[_0x340a1d(0x427)](a[_0x340a1d(0x454)](this[_0x340a1d(0x4a5)]['subscribe'](()=>{_0x580f01();})));}[_0x2683e6(0x4bd)](){const _0x30af10=_0x2683e6;var _0x3d607d,_0x4fec9e;if(this[_0x30af10(0x15d)]=!0x0,((_0x3d607d=this[_0x30af10(0x45b)][_0x30af10(0x452)]())==null?void 0x0:_0x3d607d[_0x30af10(0x478)]())!==this['unitID'])return;const _0xa2a4f8=(_0x4fec9e=this[_0x30af10(0x3e9)][_0x30af10(0x553)](k[_0x30af10(0x550)])[_0x30af10(0x422)]())==null?void 0x0:_0x4fec9e[0x0],_0x2e55ca=this['_univerInstanceService']['getCurrentUnitForType'](a['UniverInstanceType'][_0x30af10(0x4a1)])[_0x30af10(0x399)]();_0xa2a4f8&&_0x2e55ca&&this[_0x30af10(0x288)](_0x2e55ca[_0x30af10(0x276)](),_0xa2a4f8);}['_toggleOffline'](){const _0x15fa44=_0x2683e6;this[_0x15fa44(0x15d)]=!0x1;}};St=Zi([be(0x2,a['Inject'](a[_0x2683e6(0x2c8)])),be(0x3,a[_0x2683e6(0x22b)](Ot)),be(0x4,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x184)])),be(0x5,a[_0x2683e6(0x468)]),be(0x6,a[_0x2683e6(0x1d5)]),be(0x7,a[_0x2683e6(0x22b)](k[_0x2683e6(0x43d)]))],St);var ns=Object['defineProperty'],is=Object[_0x2683e6(0x181)],ss=(_0xc774f7,_0x30ee0a,_0x76fc38,_0x5c61bc)=>{const _0x2a1ee9=_0x2683e6;for(var _0x56ba91=_0x5c61bc>0x1?void 0x0:_0x5c61bc?is(_0x30ee0a,_0x76fc38):_0x30ee0a,_0x38c677=_0xc774f7[_0x2a1ee9(0x29a)]-0x1,_0xf6c6c3;_0x38c677>=0x0;_0x38c677--)(_0xf6c6c3=_0xc774f7[_0x38c677])&&(_0x56ba91=(_0x5c61bc?_0xf6c6c3(_0x30ee0a,_0x76fc38,_0x56ba91):_0xf6c6c3(_0x56ba91))||_0x56ba91);return _0x5c61bc&&_0x56ba91&&ns(_0x30ee0a,_0x76fc38,_0x56ba91),_0x56ba91;},nt=(_0x5884ed,_0x5b9531)=>(_0x38e203,_0x5581c5)=>_0x5b9531(_0x38e203,_0x5581c5,_0x5884ed);let De=class extends a[_0x2683e6(0x1e0)]{constructor(_0x56012a,_0x3ae48f,_0x3370e7){const _0x273eb3=_0x2683e6;super(),I(this,_0x273eb3(0x37a),new Map()),I(this,_0x273eb3(0x316),new A['Subject']()),(this[_0x273eb3(0x45b)]=_0x56012a,this[_0x273eb3(0x3e9)]=_0x3ae48f,this[_0x273eb3(0x5f7)]=_0x3370e7,this[_0x273eb3(0x4ea)]());}['dispose'](){const _0x17deb0=_0x2683e6;super['dispose'](),this[_0x17deb0(0x316)][_0x17deb0(0x438)](),this[_0x17deb0(0x37a)][_0x17deb0(0x280)](_0x1c8e15=>_0x1c8e15[_0x17deb0(0x269)]());}[_0x2683e6(0x24c)](_0x28176d){const _0x258bfc=_0x2683e6;return this[_0x258bfc(0x37a)]['has'](_0x28176d)?this[_0x258bfc(0x37a)]['get'](_0x28176d)['cursorInfo$']:this[_0x258bfc(0x316)]['pipe'](A[_0x258bfc(0x57f)](_0x1dec77=>_0x1dec77[_0x258bfc(0x4a9)]===_0x28176d),A['switchMap'](_0x3d78e5=>_0x3d78e5['cursorInfo$']));}['_init'](){const _0x47c400=_0x2683e6;this[_0x47c400(0x45b)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x47c400(0x4a1)])[_0x47c400(0x36b)](A[_0x47c400(0x35f)](this['dispose$']))[_0x47c400(0x44d)](async _0x212796=>{const _0x4eb731=_0x47c400,_0x32a155=_0x212796[_0x4eb731(0x478)](),_0x4838a0=await this[_0x4eb731(0x2f1)](_0x32a155);this['_entityInit$'][_0x4eb731(0x40f)](_0x4838a0),this[_0x4eb731(0x37a)]['set'](_0x32a155,_0x4838a0);}),this['_univerInstanceService'][_0x47c400(0x32d)](a[_0x47c400(0x342)][_0x47c400(0x56e)])[_0x47c400(0x36b)](A[_0x47c400(0x35f)](this['dispose$']))['pipe'](A[_0x47c400(0x57f)](_0x57e1f1=>!_0x57e1f1[_0x47c400(0x478)]()['startsWith']('__')))[_0x47c400(0x44d)](async _0x301375=>{const _0x261f03=_0x47c400,_0x57a003=_0x301375[_0x261f03(0x478)](),_0x5c5158=await this['_startDocCollabCursor'](_0x57a003);this[_0x261f03(0x316)][_0x261f03(0x40f)](_0x5c5158),this[_0x261f03(0x37a)][_0x261f03(0x46f)](_0x57a003,_0x5c5158);}),A['merge'](this[_0x47c400(0x45b)][_0x47c400(0x3b4)](a[_0x47c400(0x342)][_0x47c400(0x56e)]),this[_0x47c400(0x45b)][_0x47c400(0x3b4)](a[_0x47c400(0x342)][_0x47c400(0x4a1)]))['pipe'](A[_0x47c400(0x35f)](this[_0x47c400(0x534)]))['subscribe'](_0x343430=>{const _0x3d3c20=_0x47c400,_0x5ac3ce=_0x343430[_0x3d3c20(0x478)](),_0x3c861f=this['_entities']['get'](_0x5ac3ce);_0x3c861f&&(_0x3c861f[_0x3d3c20(0x269)](),this['_entities']['delete'](_0x5ac3ce));});}async['_startSheetCollabCursor'](_0xac15f2){const _0x5cddf0=_0x2683e6,_0x1731e3=await this['_collabSessionService'][_0x5cddf0(0x2b8)](_0xac15f2),_0xcf9f6f=this['_injector']['createInstance'](St,_0xac15f2,_0x1731e3);return _0xcf9f6f[_0x5cddf0(0x25b)](),_0xcf9f6f;}async[_0x2683e6(0x36f)](_0x560ec6){const _0x28f7dc=_0x2683e6,_0x3379d7=await this[_0x28f7dc(0x5f7)][_0x28f7dc(0x2b8)](_0x560ec6),_0x5422d1=this[_0x28f7dc(0x3e9)]['createInstance'](mt,_0x560ec6,_0x3379d7);return _0x5422d1[_0x28f7dc(0x25b)](),_0x5422d1;}};De=ss([nt(0x0,a['IUniverInstanceService']),nt(0x1,a[_0x2683e6(0x22b)](a['Injector'])),nt(0x2,a['Inject'](exports['CollaborationSessionService']))],De);const Le=0x14,Ht=0xc8,it=0x4,rs=0x5;function os(_0x20c4ad,_0x4ecaed){const _0x4a09b9=_0x2683e6;let {radius:_0x50603c,width:_0x439f36,height:_0x2b2cae}=_0x4ecaed;_0x50603c=_0x50603c!=null?_0x50603c:0x0,_0x439f36=_0x439f36!=null?_0x439f36:0x1e,_0x2b2cae=_0x2b2cae!=null?_0x2b2cae:0x1e;let _0x26674b=0x0,_0x450132=0x0,_0x640001=0x0;_0x26674b=_0x450132=_0x640001=Math[_0x4a09b9(0x211)](_0x50603c,_0x439f36/0x2,_0x2b2cae/0x2),_0x20c4ad[_0x4a09b9(0x599)](),_0x20c4ad[_0x4a09b9(0x212)](_0x26674b,0x0),_0x20c4ad['lineTo'](_0x439f36-_0x450132,0x0),_0x20c4ad[_0x4a09b9(0x36c)](_0x439f36-_0x450132,_0x450132,_0x450132,Math['PI']*0x3/0x2,0x0,!0x1),_0x20c4ad[_0x4a09b9(0x490)](_0x439f36,_0x2b2cae-_0x640001),_0x20c4ad[_0x4a09b9(0x36c)](_0x439f36-_0x640001,_0x2b2cae-_0x640001,_0x640001,0x0,Math['PI']/0x2,!0x1),_0x20c4ad['lineTo'](0x0,_0x2b2cae),_0x20c4ad['lineTo'](0x0,_0x26674b),_0x20c4ad[_0x4a09b9(0x36c)](_0x26674b,_0x26674b,_0x26674b,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x20c4ad[_0x4a09b9(0x4bc)](),_0x4ecaed[_0x4a09b9(0x215)]&&(_0x20c4ad[_0x4a09b9(0x303)](),_0x20c4ad[_0x4a09b9(0x5e4)]=_0x4ecaed[_0x4a09b9(0x215)],_0x4ecaed['fillRule']===_0x4a09b9(0x47d)?_0x20c4ad[_0x4a09b9(0x215)](_0x4a09b9(0x47d)):_0x20c4ad['fill'](),_0x20c4ad['restore']());}class ze extends K[_0x2683e6(0x1df)]{constructor(_0x4437a7,_0xfe6baa){const _0x207918=_0x2683e6;super(_0x4437a7,_0xfe6baa),I(this,_0x207918(0x52f)),I(this,'text'),(this[_0x207918(0x52f)]=_0xfe6baa==null?void 0x0:_0xfe6baa['color'],this['text']=_0xfe6baa==null?void 0x0:_0xfe6baa['text']);}static[_0x2683e6(0x2c9)](_0x33d26d,_0x1a3144){const _0x30de9b=_0x2683e6,{text:_0x5a267d,color:_0x2ab78e}=_0x1a3144;_0x33d26d[_0x30de9b(0x303)](),_0x33d26d[_0x30de9b(0x38d)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x3c7d12=_0x33d26d[_0x30de9b(0x2cd)](_0x5a267d)[_0x30de9b(0x3d8)],_0x40d5b8=Math[_0x30de9b(0x211)](_0x3c7d12+0x2*it,Ht);os(_0x33d26d,{'height':Le,'radius':0x4,'width':_0x40d5b8,'fill':_0x2ab78e,'evented':!0x1}),_0x33d26d['fillStyle']=_0x30de9b(0x2f9);const _0x18fbee=it,_0x132767=Le-rs,_0x30d60f=Ht-0x2*it;if(_0x3c7d12>_0x30d60f){let _0x16e623='',_0x33202c=0x0;for(const _0xd84f34 of _0x5a267d){const _0x4ac547=_0x33d26d['measureText'](_0xd84f34)[_0x30de9b(0x3d8)];if(_0x33202c+_0x4ac547<=_0x30d60f-_0x33d26d[_0x30de9b(0x2cd)]('...')[_0x30de9b(0x3d8)])_0x16e623+=_0xd84f34,_0x33202c+=_0x4ac547;else{_0x16e623+='...';break;}}_0x33d26d[_0x30de9b(0x322)](_0x16e623,_0x18fbee,_0x132767);}else _0x33d26d['fillText'](_0x5a267d,_0x18fbee,_0x132767);_0x33d26d[_0x30de9b(0x249)]();}[_0x2683e6(0x605)](_0x454936){ze['drawWith'](_0x454936,this);}}const st='collab-text-anchor-',as=_0x2683e6(0x4e7),cs=_0x2683e6(0x5e7),Ue=0x6,ls=1.5,rt=0x4,hs=1.5,_s=_0x2683e6(0x2e0);class Bt{constructor(_0x2e9514,_0x3cf298,_0x3e2d3e,_0x4a7119){const _0x5a24d4=_0x2683e6;I(this,_0x5a24d4(0x2bd),[]),I(this,_0x5a24d4(0x53f),null),I(this,_0x5a24d4(0x200),null),I(this,'_anchorDot',null),I(this,_0x5a24d4(0x1c6),null),I(this,_0x5a24d4(0x560),null),(this[_0x5a24d4(0x448)]=_0x2e9514,this[_0x5a24d4(0x30b)]=_0x3cf298,this[_0x5a24d4(0x563)]=_0x3e2d3e,this[_0x5a24d4(0x5e9)]=_0x4a7119,this['_render']());}set[_0x2683e6(0x15b)](_0x56c898){const _0x45af6f=_0x2683e6;_0x56c898?(this[_0x45af6f(0x27f)]&&this[_0x45af6f(0x27f)][_0x45af6f(0x58d)](),this[_0x45af6f(0x200)]&&this[_0x45af6f(0x200)][_0x45af6f(0x4db)]()):(this[_0x45af6f(0x27f)]&&this[_0x45af6f(0x27f)][_0x45af6f(0x4db)](),this[_0x45af6f(0x200)]&&this[_0x45af6f(0x200)]['hide']());}['dispose'](){const _0xc7c7b6=_0x2683e6;for(const _0x1ed491 of this[_0xc7c7b6(0x2bd)])_0x1ed491[_0xc7c7b6(0x269)]();this[_0xc7c7b6(0x200)]&&this[_0xc7c7b6(0x200)][_0xc7c7b6(0x269)](),this[_0xc7c7b6(0x27f)]&&this['_anchorDot'][_0xc7c7b6(0x269)](),this[_0xc7c7b6(0x53f)]&&this[_0xc7c7b6(0x53f)][_0xc7c7b6(0x269)](),this[_0xc7c7b6(0x560)]&&this[_0xc7c7b6(0x560)]();}[_0x2683e6(0x3b2)](){const _0x429be2=_0x2683e6;var _0x11b205;const {_docSkeleton:_0x2f94f8,_document:_0x122a82}=this,{color:_0x2e7453,name:_0x8e35de,ranges:_0x1bda21}=this[_0x429be2(0x448)],_0x26d34d=_0x122a82[_0x429be2(0x2dc)](),{docsLeft:_0x5dde01,docsTop:_0x3d17fe}=_0x26d34d,_0x5e81b9=new J['NodePositionConvertToCursor'](_0x26d34d,_0x2f94f8);for(const {startOffset:_0x5f0e16,endOffset:_0x530390,rangeType:_0x1ad3d4,segmentId:_0x40e4dd,segmentPage:_0x23efaa,collapsed:_0x45926d,isActive:_0x5151c0}of _0x1bda21){const _0x2b3e8a=_0x2f94f8[_0x429be2(0x183)](_0x5f0e16,!0x0,_0x40e4dd,_0x23efaa);let _0x42efa0=_0x2f94f8[_0x429be2(0x183)](_0x530390,!0x0,_0x40e4dd,_0x23efaa);if(_0x42efa0==null&&(_0x42efa0=_0x2f94f8[_0x429be2(0x183)](_0x530390-0x1,!0x1,_0x40e4dd,_0x23efaa)),_0x5151c0){const {contentBoxPointGroup:_0x59a904}=_0x5e81b9[_0x429be2(0x19d)](_0x42efa0,_0x42efa0);if(_0x59a904[_0x429be2(0x29a)]===0x0)continue;this[_0x429be2(0x359)](_0x2e7453,_0x59a904,_0x5dde01,_0x3d17fe,_0x8e35de),this[_0x429be2(0x560)]=this[_0x429be2(0x3ca)]();}if(_0x2b3e8a&&_0x42efa0){if(_0x1ad3d4===a['DOC_RANGE_TYPE'][_0x429be2(0x3bf)]){const _0x20918f=new J[(_0x429be2(0x483))](_0x26d34d,_0x2f94f8),{pointGroup:_0xfa59f3}=(_0x11b205=_0x20918f['getRangePointData'](_0x2b3e8a,_0x42efa0))!=null?_0x11b205:{};if(_0xfa59f3==null||_0xfa59f3[_0x429be2(0x29a)]===0x0)continue;this[_0x429be2(0x5bc)](_0x2e7453,_0xfa59f3,_0x5dde01,_0x3d17fe);}else{if(!_0x45926d){const {borderBoxPointGroup:_0x2d7d81}=_0x5e81b9[_0x429be2(0x19d)](_0x2b3e8a,_0x42efa0);if(_0x2d7d81[_0x429be2(0x29a)]===0x0)continue;this[_0x429be2(0x520)](_0x2e7453,_0x2d7d81,_0x5dde01,_0x3d17fe);}}}}}[_0x2683e6(0x359)](_0xc426b1,_0x24b622,_0x2900c8,_0x8ff878,_0x484b0f){const _0x3c4506=_0x2683e6,_0x5aa411=this['_getAnchorBounding'](_0x24b622),{left:_0x330772,top:_0x1c778d,height:_0x2de527}=_0x5aa411,_0x204d04=this[_0x3c4506(0x57e)](),_0x4e7326=hs/_0x204d04,_0x388986=new K[(_0x3c4506(0x48c))](st+a[_0x3c4506(0x256)][_0x3c4506(0x59e)](Ue),{'left':_0x330772+_0x2900c8-_0x4e7326,'top':_0x1c778d+_0x8ff878,'height':_0x2de527,'width':ls,'fill':_0xc426b1||K[_0x3c4506(0x552)](a['COLORS'][_0x3c4506(0x1ff)],0x0),'strokeWidth':_0x4e7326,'stroke':_s,'evented':!0x0});this['_anchor']=_0x388986,this['_scene'][_0x3c4506(0x28f)](_0x388986,J[_0x3c4506(0x5de)]);const _0x443628=new K[(_0x3c4506(0x48c))](st+a[_0x3c4506(0x256)][_0x3c4506(0x59e)](Ue),{'left':_0x330772+_0x2900c8-_0x4e7326,'top':_0x1c778d+_0x8ff878-rt/0x2,'height':rt,'width':rt,'fill':_0xc426b1||K[_0x3c4506(0x552)](a['COLORS'][_0x3c4506(0x1ff)],0x0),'strokeWidth':0x0,'stroke':_0xc426b1||K['getColor'](a[_0x3c4506(0x5b8)][_0x3c4506(0x1ff)],0x0),'evented':!0x1});this['_anchorDot']=_0x443628,this[_0x3c4506(0x30b)]['addObject'](_0x443628,J[_0x3c4506(0x5de)]);const _0x39fc0d=new ze(st+a[_0x3c4506(0x256)][_0x3c4506(0x59e)](Ue),{'left':_0x330772+_0x2900c8-_0x4e7326,'top':_0x1c778d+_0x8ff878-Le,'text':_0x484b0f,'color':_0xc426b1});this[_0x3c4506(0x200)]=_0x39fc0d,this[_0x3c4506(0x30b)][_0x3c4506(0x28f)](_0x39fc0d,J[_0x3c4506(0x5de)]),this[_0x3c4506(0x15b)]=!0x1;}['_handleHover'](){const _0x3296bb=_0x2683e6,_0x2c9bf4=this[_0x3296bb(0x53f)]['onPointerEnter$'][_0x3296bb(0x357)](()=>{const _0x25c377=_0x3296bb;this[_0x25c377(0x15b)]=!0x0;}),_0x1753b0=this[_0x3296bb(0x53f)][_0x3296bb(0x3c1)][_0x3296bb(0x357)](()=>{const _0x6a8559=_0x3296bb;this[_0x6a8559(0x1c6)]&&clearTimeout(this['_hideTimer']),this[_0x6a8559(0x1c6)]=setTimeout(()=>{const _0x288997=_0x6a8559;this[_0x288997(0x15b)]=!0x1;},0x7d0);});return()=>{const _0xa00428=_0x3296bb;_0x2c9bf4[_0xa00428(0x334)](),_0x1753b0[_0xa00428(0x334)]();};}[_0x2683e6(0x520)](_0x59d14e,_0x813dab,_0x33cd6b,_0x5f15fe){const _0x2ec1c8=_0x2683e6,_0xd79267=new a[(_0x2ec1c8(0x3dc))](_0x59d14e)[_0x2ec1c8(0x413)](0.2)['toRgbString'](),_0x5895dd=new K[(_0x2ec1c8(0x51f))](as+a[_0x2ec1c8(0x256)][_0x2ec1c8(0x59e)](Ue),{'pointsGroup':_0x813dab,'fill':_0xd79267||K[_0x2ec1c8(0x552)](a[_0x2ec1c8(0x5b8)][_0x2ec1c8(0x1ff)],0.2),'left':_0x33cd6b,'top':_0x5f15fe,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2ec1c8(0x2bd)][_0x2ec1c8(0x17e)](_0x5895dd),this['_scene'][_0x2ec1c8(0x28f)](_0x5895dd,J['TEXT_RANGE_LAYER_INDEX']);}[_0x2683e6(0x5bc)](_0x325f2a,_0x1b7eab,_0x713ba6,_0x34345d){const _0x53a7e5=_0x2683e6,_0x189746=new a[(_0x53a7e5(0x3dc))](_0x325f2a)[_0x53a7e5(0x413)](0.2)['toRgbString'](),_0x31e6c5=new K[(_0x53a7e5(0x51f))](cs+a[_0x53a7e5(0x256)][_0x53a7e5(0x59e)](Ue),{'pointsGroup':_0x1b7eab,'fill':_0x189746||K[_0x53a7e5(0x552)](a['COLORS'][_0x53a7e5(0x1ff)],0.2),'left':_0x713ba6,'top':_0x34345d,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x53a7e5(0x17e)](_0x31e6c5),this[_0x53a7e5(0x30b)]['addObject'](_0x31e6c5,J[_0x53a7e5(0x5de)]);}[_0x2683e6(0x419)](_0x4e697d){const _0x47ee8a=_0x4e697d[0x0],_0x5b662f=_0x47ee8a[0x0],_0x1f6a8d=_0x47ee8a[0x2],{x:_0x2dbd60,y:_0x37524d}=_0x5b662f,{x:_0x2e6968,y:_0x3a576c}=_0x1f6a8d;return{'left':_0x2dbd60,'top':_0x37524d,'width':_0x2e6968-_0x2dbd60,'height':_0x3a576c-_0x37524d};}[_0x2683e6(0x57e)](){const _0x29d5c1=_0x2683e6,{scaleX:_0x32bdce,scaleY:_0x4a3ffa}=this[_0x29d5c1(0x30b)][_0x29d5c1(0x254)]();return Math[_0x29d5c1(0x1a1)](_0x32bdce,_0x4a3ffa);}}var us=Object['defineProperty'],ds=Object['getOwnPropertyDescriptor'],fs=(_0x29ab20,_0x6ac9ac,_0x4f50e8,_0x33c741)=>{const _0x1d4744=_0x2683e6;for(var _0xe97fbc=_0x33c741>0x1?void 0x0:_0x33c741?ds(_0x6ac9ac,_0x4f50e8):_0x6ac9ac,_0x3453fa=_0x29ab20[_0x1d4744(0x29a)]-0x1,_0x19b097;_0x3453fa>=0x0;_0x3453fa--)(_0x19b097=_0x29ab20[_0x3453fa])&&(_0xe97fbc=(_0x33c741?_0x19b097(_0x6ac9ac,_0x4f50e8,_0xe97fbc):_0x19b097(_0xe97fbc))||_0xe97fbc);return _0x33c741&&_0xe97fbc&&us(_0x6ac9ac,_0x4f50e8,_0xe97fbc),_0xe97fbc;},je=(_0x1c281e,_0xe2a209)=>(_0x327465,_0x7d7b3f)=>_0xe2a209(_0x327465,_0x7d7b3f,_0x1c281e);let pt=class extends a[_0x2683e6(0x1e0)]{constructor(_0x91c5a3,_0x4dc901,_0xf31658,_0x380401,_0x59d4b2){const _0x1e8dbe=_0x2683e6;super(),I(this,_0x1e8dbe(0x253),[]),I(this,_0x1e8dbe(0x2b1),[]),(this[_0x1e8dbe(0x556)]=_0x91c5a3,this[_0x1e8dbe(0x3fa)]=_0x4dc901,this['_collabCursorController']=_0xf31658,this[_0x1e8dbe(0x447)]=_0x380401,this['_themeService']=_0x59d4b2,this[_0x1e8dbe(0x4ea)]());}[_0x2683e6(0x4ea)](){const _0xa6a88e=_0x2683e6,_0x5b7ca7=this[_0xa6a88e(0x556)][_0xa6a88e(0x5e6)],_0x6e5557=this[_0xa6a88e(0x3fa)];this[_0xa6a88e(0x427)](A[_0xa6a88e(0x241)]([this[_0xa6a88e(0x5f4)][_0xa6a88e(0x24c)](_0x5b7ca7),this[_0xa6a88e(0x50e)][_0xa6a88e(0x3e3)]])[_0xa6a88e(0x36b)](V[_0xa6a88e(0x538)](([_0x3727a5,_0x28af64])=>({'skeleton':_0x6e5557['getSkeleton'](),'cursors':[..._0x3727a5[_0xa6a88e(0x2d2)]()][_0xa6a88e(0x228)](_0x39b731=>({..._0x39b731,'color':_0x28af64[_0x39b731[_0xa6a88e(0x52f)]]}))})))[_0xa6a88e(0x44d)](_0x18d868=>{const _0x38d170=_0xa6a88e;if(this[_0x38d170(0x2cb)](),_0x18d868){const {skeleton:_0x6d4612,cursors:_0x4f6b62}=_0x18d868;this['_updateCollabCursors'](_0x6d4612,_0x4f6b62);}})),this[_0xa6a88e(0x57b)](),this[_0xa6a88e(0x48a)]();}[_0x2683e6(0x4a7)](_0x1ef51e,_0x9f37e0){const _0x2c529c=_0x2683e6,{scene:_0x327bee,mainComponent:_0x5a4121}=this[_0x2c529c(0x556)],_0x474cb9=_0x9f37e0['map'](_0x4f4d78=>new Bt(_0x4f4d78,_0x327bee,_0x1ef51e,_0x5a4121));this[_0x2c529c(0x253)]=_0x474cb9,this['_cursors']=_0x9f37e0;}['_refreshCollabCursors'](){const _0x4c0a06=_0x2683e6;this[_0x4c0a06(0x2cb)]();const {scene:_0x192f52,mainComponent:_0x15107e}=this[_0x4c0a06(0x556)],_0x534051=this[_0x4c0a06(0x3fa)][_0x4c0a06(0x3d5)](),_0xe88dc8=this[_0x4c0a06(0x2b1)][_0x4c0a06(0x538)](_0x21e11d=>new Bt(_0x21e11d,_0x192f52,_0x534051,_0x15107e));this[_0x4c0a06(0x253)]=_0xe88dc8;}[_0x2683e6(0x2cb)](){const _0x5c1391=_0x2683e6;this['_cursorShapes']['forEach'](_0x36201c=>_0x36201c['dispose']()),this[_0x5c1391(0x253)]=[];}[_0x2683e6(0x48a)](){const _0x3598eb=_0x2683e6,_0x44a524=[J[_0x3598eb(0x171)]['id']];this[_0x3598eb(0x427)](this['_commandService']['onCommandExecuted'](_0x4d0928=>{const _0x276b40=_0x3598eb;_0x44a524[_0x276b40(0x598)](_0x4d0928['id'])&&_0x4d0928['params'][_0x276b40(0x5e6)]===this['_context']['unitId']&&this[_0x276b40(0x295)]();}));}[_0x2683e6(0x57b)](){const _0x467857=_0x2683e6;this[_0x467857(0x427)](a[_0x467857(0x252)](this['_context'][_0x467857(0x576)][_0x467857(0x5c8)])[_0x467857(0x36b)](V[_0x467857(0x57f)](_0xf27e3f=>_0xf27e3f[_0x467857(0x44a)]===K[_0x467857(0x602)][_0x467857(0x460)]),V[_0x467857(0x4f0)](0x10))[_0x467857(0x44d)](()=>{const _0x3769e9=_0x467857;this[_0x3769e9(0x295)]();}));}};pt=fs([je(0x1,a[_0x2683e6(0x22b)](ye[_0x2683e6(0x46b)])),je(0x2,a[_0x2683e6(0x22b)](De)),je(0x3,a['ICommandService']),je(0x4,a[_0x2683e6(0x22b)](a[_0x2683e6(0x3ba)]))],pt);const vs=0x1,ms=1.5;class Sn extends K[_0x2683e6(0x1df)]{constructor(_0x1090e3,_0x42ef0d){const _0x39bd13=_0x2683e6;super(_0x1090e3,_0x42ef0d),I(this,_0x39bd13(0x512)),I(this,_0x39bd13(0x17b),!0x1),I(this,_0x39bd13(0x429)),I(this,_0x39bd13(0x539),''),I(this,_0x39bd13(0x565),_0x39bd13(0x1de)),I(this,_0x39bd13(0x1ec)),(_0x42ef0d&&this[_0x39bd13(0x2bc)](_0x42ef0d),this['onPointerEnter$'][_0x39bd13(0x357)](()=>this[_0x39bd13(0x2bc)]({'hovered':!0x0})),this[_0x39bd13(0x3c1)][_0x39bd13(0x357)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x2683e6(0x2bc)](_0x1479ce){const _0x1deadd=_0x2683e6;var _0x1d7c2f,_0x428b8b,_0x32659f,_0x586ba0,_0x4a5002,_0x4c246e;this['_color']=(_0x1d7c2f=_0x1479ce[_0x1deadd(0x52f)])!=null?_0x1d7c2f:this[_0x1deadd(0x512)],this[_0x1deadd(0x17b)]=(_0x428b8b=_0x1479ce[_0x1deadd(0x31a)])!=null?_0x428b8b:this[_0x1deadd(0x17b)],this['_range']=(_0x32659f=_0x1479ce[_0x1deadd(0x1c7)])!=null?_0x32659f:this[_0x1deadd(0x429)],this[_0x1deadd(0x539)]=(_0x586ba0=_0x1479ce[_0x1deadd(0x231)])!=null?_0x586ba0:this['_name'],this[_0x1deadd(0x565)]=(_0x4a5002=_0x1479ce[_0x1deadd(0x2c4)])!=null?_0x4a5002:this[_0x1deadd(0x565)],this[_0x1deadd(0x1ec)]=(_0x4c246e=_0x1479ce[_0x1deadd(0x3ac)])!=null?_0x4c246e:this[_0x1deadd(0x1ec)],this['transformByState']({'width':_0x1479ce[_0x1deadd(0x3d8)],'height':_0x1479ce[_0x1deadd(0x197)]});}[_0x2683e6(0x25e)](_0xe2f01){const _0x39406f=_0x2683e6,{row:_0x2acd30,column:_0x1932f2}=_0xe2f01;if(_0x2acd30>=this['_range'][_0x39406f(0x459)]&&_0x2acd30<=this[_0x39406f(0x429)][_0x39406f(0x600)]&&_0x1932f2>=this[_0x39406f(0x429)][_0x39406f(0x247)]&&_0x1932f2<=this[_0x39406f(0x429)][_0x39406f(0x2a6)]){this[_0x39406f(0x2bc)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2683e6(0x287)](_0x484754){return!0x1;}['_draw'](_0x50f769){const _0x25e9f7=_0x2683e6;K[_0x25e9f7(0x48c)][_0x25e9f7(0x2c9)](_0x50f769,{'width':this[_0x25e9f7(0x3d8)],'height':this[_0x25e9f7(0x197)],'strokeWidth':ms,'stroke':this[_0x25e9f7(0x512)],'evented':!0x1,'fill':this['_backgroundColor']}),this[_0x25e9f7(0x17b)]&&(_0x50f769[_0x25e9f7(0x303)](),_0x50f769[_0x25e9f7(0x39b)](0x1,0x0,0x0,0x1,this[_0x25e9f7(0x3d8)],this[_0x25e9f7(0x565)]===_0x25e9f7(0x5a3)?0x0:-Le),ze[_0x25e9f7(0x2c9)](_0x50f769,{'text':this[_0x25e9f7(0x539)],'color':this['_color']}),_0x50f769['restore']());}}var Ss=Object[_0x2683e6(0x1e7)],ps=Object[_0x2683e6(0x181)],gs=(_0x8b75a9,_0x35d294,_0x353a82,_0xe7d46a)=>{const _0x3992f9=_0x2683e6;for(var _0x2cd82f=_0xe7d46a>0x1?void 0x0:_0xe7d46a?ps(_0x35d294,_0x353a82):_0x35d294,_0x34d75c=_0x8b75a9[_0x3992f9(0x29a)]-0x1,_0x5ab92c;_0x34d75c>=0x0;_0x34d75c--)(_0x5ab92c=_0x8b75a9[_0x34d75c])&&(_0x2cd82f=(_0xe7d46a?_0x5ab92c(_0x35d294,_0x353a82,_0x2cd82f):_0x5ab92c(_0x2cd82f))||_0x2cd82f);return _0xe7d46a&&_0x2cd82f&&Ss(_0x35d294,_0x353a82,_0x2cd82f),_0x2cd82f;},ot=(_0x58dc5b,_0x332b90)=>(_0x47c928,_0x1fd325)=>_0x332b90(_0x47c928,_0x1fd325,_0x58dc5b);const Is=0x1389;let gt=class extends a[_0x2683e6(0x1e0)]{constructor(_0x249e25,_0xf36a5d,_0x5b8cf3,_0x5efaad){const _0x5e6419=_0x2683e6;super(),I(this,'_cursors',new Set()),I(this,_0x5e6419(0x374),null),(this[_0x5e6419(0x556)]=_0x249e25,this['_sheetSkeletonManagerService']=_0xf36a5d,this[_0x5e6419(0x5f4)]=_0x5b8cf3,this[_0x5e6419(0x50e)]=_0x5efaad,this['_init']());}['_init'](){const _0x1b66ee=_0x2683e6;this[_0x1b66ee(0x2c5)][_0x1b66ee(0x320)][_0x1b66ee(0x36b)](V[_0x1b66ee(0x35f)](this[_0x1b66ee(0x534)]),V[_0x1b66ee(0x424)](_0x265ea0=>{const _0x286fb0=_0x1b66ee;if(_0x265ea0){const _0x1cabb4=_0x265ea0[_0x286fb0(0x53a)];return A[_0x286fb0(0x241)](this[_0x286fb0(0x5f4)][_0x286fb0(0x24c)](this['_context'][_0x286fb0(0x5e6)]),this['_themeService']['currentTheme$'])['pipe'](V['map'](([_0x4fcba3,_0x1e2ed1])=>{const _0x20a64e=new Map();return _0x4fcba3['forEach']((_0x428fca,_0x1b592a)=>{const _0x3b2aa8=_0x479a;if(_0x428fca[_0x3b2aa8(0x224)]===_0x1cabb4){const _0x5c6466={..._0x428fca};_0x5c6466[_0x3b2aa8(0x52f)]=_0x1e2ed1[_0x428fca[_0x3b2aa8(0x52f)]],_0x20a64e[_0x3b2aa8(0x46f)](_0x1b592a,_0x5c6466);}}),{'skeleton':_0x265ea0,'cursors':_0x20a64e};}));}return A['of']({'skeleton':null,'cursors':new Map()});}))[_0x1b66ee(0x44d)](({skeleton:_0x15102b,cursors:_0x5d8b70})=>{const _0x285745=_0x1b66ee;this[_0x285745(0x2cb)](),_0x15102b&&this[_0x285745(0x4a7)](_0x15102b,_0x5d8b70);}),this[_0x1b66ee(0x2c5)][_0x1b66ee(0x320)]['subscribe'](_0x5efb8c=>{const _0x24d0a0=_0x1b66ee;if(_0x5efb8c==null)return;const {skeleton:_0x18ba32}=_0x5efb8c,{scene:_0x146ecf}=this[_0x24d0a0(0x556)];_0x146ecf['onPointerMove$'][_0x24d0a0(0x357)](a['debounce'](_0x3b95f1=>{const _0x55632f=_0x24d0a0;var _0x298ffa,_0x1d7b40;const {offsetX:_0xc78bb3,offsetY:_0x4a2353}=_0x3b95f1,{x:_0x5174ea,y:_0x5f368a}=_0x146ecf[_0x55632f(0x5d4)](K[_0x55632f(0x35b)][_0x55632f(0x29e)]([_0xc78bb3,_0x4a2353])),{scaleX:_0x5a00cb,scaleY:_0x4fe165}=_0x146ecf['getAncestorScale'](),_0x294213=_0x146ecf[_0x55632f(0x161)](Re[_0x55632f(0x5dc)][_0x55632f(0x42a)]),_0x40b770=_0x146ecf[_0x55632f(0x21b)](K[_0x55632f(0x35b)][_0x55632f(0x29e)]([_0x5174ea,_0x5f368a]),_0x294213),_0x5b519c=_0x18ba32[_0x55632f(0x561)](_0xc78bb3,_0x4a2353,_0x5a00cb,_0x4fe165,_0x40b770);((_0x298ffa=this[_0x55632f(0x374)])==null?void 0x0:_0x298ffa[_0x55632f(0x609)])===_0x5b519c[_0x55632f(0x609)]&&((_0x1d7b40=this['_lastPointer'])==null?void 0x0:_0x1d7b40[_0x55632f(0x17d)])===_0x5b519c['row']||this[_0x55632f(0x2b1)][_0x55632f(0x280)](_0x25a326=>{const _0x69c52a=_0x55632f;_0x25a326[_0x69c52a(0x25e)](_0x5b519c);});},0x64));});}[_0x2683e6(0x4a7)](_0x3ceec6,_0x3a4fd6){const _0x40fa5b=_0x2683e6;var _0x4ce947;const _0x44c958=(_0x4ce947=this['_sheetSkeletonManagerService'][_0x40fa5b(0x26f)]())==null?void 0x0:_0x4ce947[_0x40fa5b(0x3c5)];if(!_0x44c958)return;const _0x14df4d=this[_0x40fa5b(0x487)]();if(!_0x14df4d)return;this[_0x40fa5b(0x2b1)][_0x40fa5b(0x280)](_0x2032c6=>{const _0x1a0c53=_0x40fa5b;_0x2032c6[_0x1a0c53(0x442)]();});const {scene:_0x4f9625}=_0x14df4d,_0x21a196=Cs(Array[_0x40fa5b(0x33f)](_0x3a4fd6[_0x40fa5b(0x2d2)]()))[_0x40fa5b(0x538)](_0x43e073=>{const _0x54b087=_0x40fa5b,{color:_0xf99707,range:_0x630628,name:_0x427688,selection:_0x5397f8,sheetID:_0x3f8810}=_0x43e073,{startColumn:_0x2bf0fa,startRow:_0x3ee54d,endColumn:_0x2f4809,endRow:_0x6c07d7}=_0x630628,_0x3f8398=Re['getCoordByCell'](_0x3ee54d,_0x2bf0fa,_0x4f9625,_0x44c958),_0x3199b0=Re['getCoordByCell'](_0x6c07d7,_0x2f4809,_0x4f9625,_0x44c958),{columnHeaderHeightAndMarginTop:_0x411ad6}=_0x44c958,{startX:_0x2c8c14,startY:_0x16661d}=_0x3f8398,{endX:_0x2570d8,endY:_0x2ca507}=_0x3199b0,_0x299fd5=_0x2570d8-_0x2c8c14,_0x44cf76=_0x2ca507-_0x16661d,_0xbdf8ef={'labelPosition':_0x16661d-_0x411ad6>=Le?'top':_0x54b087(0x5a3),'sheetID':_0x3f8810,'range':_0x630628,'color':_0xf99707,'name':_0x427688,'selection':_0x5397f8,'left':_0x2c8c14,'top':_0x16661d,'width':_0x299fd5,'height':_0x44cf76,'evented':!0x1,'zIndex':Is};return new Sn(_0x427688,_0xbdf8ef);});_0x4f9625[_0x40fa5b(0x43f)](_0x21a196,vs),this[_0x40fa5b(0x2b1)]=new Set(_0x21a196);}[_0x2683e6(0x2cb)](){const _0x274e89=_0x2683e6;var _0x49dd86;(_0x49dd86=this[_0x274e89(0x2b1)])==null||_0x49dd86[_0x274e89(0x280)](_0x3d7803=>_0x3d7803[_0x274e89(0x269)]());}['_getSheetObject'](){const _0x5567cd=_0x2683e6;return Re[_0x5567cd(0x349)](this[_0x5567cd(0x556)][_0x5567cd(0x434)],this[_0x5567cd(0x556)]);}};gt=gs([ot(0x1,a[_0x2683e6(0x22b)](Re['SheetSkeletonManagerService'])),ot(0x2,a[_0x2683e6(0x22b)](De)),ot(0x3,a[_0x2683e6(0x22b)](a[_0x2683e6(0x3ba)]))],gt);function Cs(_0x3be064){const _0x5619d8=_0x2683e6,_0x1810cf=new Map();return _0x3be064[_0x5619d8(0x280)](_0x3e1db8=>{const _0x1a653b=_0x5619d8;if(_0x1810cf[_0x1a653b(0x58e)](_0x3e1db8[_0x1a653b(0x2aa)])){const _0x1240e8=_0x1810cf[_0x1a653b(0x553)](_0x3e1db8['selection']);_0x1240e8['name']+=',\x20'+_0x3e1db8[_0x1a653b(0x231)];}else _0x1810cf['set'](_0x3e1db8['selection'],_0x3e1db8);}),Array[_0x5619d8(0x33f)](_0x1810cf[_0x5619d8(0x2d2)]());}var X=typeof globalThis<'u'?globalThis:typeof window<'u'?window:typeof global<'u'?global:typeof self<'u'?self:{};function xe(_0x460fc7){const _0x16d5c2=_0x2683e6;return _0x460fc7&&_0x460fc7[_0x16d5c2(0x238)]&&Object['prototype']['hasOwnProperty']['call'](_0x460fc7,_0x16d5c2(0x34b))?_0x460fc7[_0x16d5c2(0x34b)]:_0x460fc7;}var pn={'exports':{}},Xe={},Es=ae,bs=Symbol['for'](_0x2683e6(0x28e)),Ts=Symbol['for'](_0x2683e6(0x573)),Rs=Object[_0x2683e6(0x2f3)][_0x2683e6(0x405)],ys=Es[_0x2683e6(0x4bb)][_0x2683e6(0x49b)],Os={'key':!0x0,'ref':!0x0,'__self':!0x0,'__source':!0x0};function gn(_0x2fd3eb,_0x3ba7fd,_0x2fc252){const _0x2a2674=_0x2683e6;var _0x2a7cd2,_0x49c35f={},_0x4067fb=null,_0x16dec3=null;_0x2fc252!==void 0x0&&(_0x4067fb=''+_0x2fc252),_0x3ba7fd[_0x2a2674(0x327)]!==void 0x0&&(_0x4067fb=''+_0x3ba7fd[_0x2a2674(0x327)]),_0x3ba7fd[_0x2a2674(0x403)]!==void 0x0&&(_0x16dec3=_0x3ba7fd[_0x2a2674(0x403)]);for(_0x2a7cd2 in _0x3ba7fd)Rs['call'](_0x3ba7fd,_0x2a7cd2)&&!Os[_0x2a2674(0x405)](_0x2a7cd2)&&(_0x49c35f[_0x2a7cd2]=_0x3ba7fd[_0x2a7cd2]);if(_0x2fd3eb&&_0x2fd3eb[_0x2a2674(0x278)]){for(_0x2a7cd2 in(_0x3ba7fd=_0x2fd3eb[_0x2a2674(0x278)],_0x3ba7fd))_0x49c35f[_0x2a7cd2]===void 0x0&&(_0x49c35f[_0x2a7cd2]=_0x3ba7fd[_0x2a7cd2]);}return{'$$typeof':bs,'type':_0x2fd3eb,'key':_0x4067fb,'ref':_0x16dec3,'props':_0x49c35f,'_owner':ys['current']};}Xe['Fragment']=Ts,Xe[_0x2683e6(0x1d3)]=gn,Xe[_0x2683e6(0x4a3)]=gn,pn[_0x2683e6(0x436)]=Xe;var pe=pn[_0x2683e6(0x436)],Q=function(){const _0x5a702a=_0x2683e6;return Q=Object['assign']||function(_0x2d3aaf){const _0x3cbd1e=_0x479a;for(var _0x51ce3c,_0x3932ee=0x1,_0x59d920=arguments[_0x3cbd1e(0x29a)];_0x3932ee<_0x59d920;_0x3932ee++){_0x51ce3c=arguments[_0x3932ee];for(var _0x782ce8 in _0x51ce3c)Object[_0x3cbd1e(0x2f3)][_0x3cbd1e(0x405)][_0x3cbd1e(0x54a)](_0x51ce3c,_0x782ce8)&&(_0x2d3aaf[_0x782ce8]=_0x51ce3c[_0x782ce8]);}return _0x2d3aaf;},Q[_0x5a702a(0x4c4)](this,arguments);},Ds=function(_0x3a588a,_0x325987){const _0x4dd6f9=_0x2683e6;var _0x11b3a6={};for(var _0x32be31 in _0x3a588a)Object[_0x4dd6f9(0x2f3)][_0x4dd6f9(0x405)][_0x4dd6f9(0x54a)](_0x3a588a,_0x32be31)&&_0x325987[_0x4dd6f9(0x404)](_0x32be31)<0x0&&(_0x11b3a6[_0x32be31]=_0x3a588a[_0x32be31]);if(_0x3a588a!=null&&typeof Object[_0x4dd6f9(0x289)]==_0x4dd6f9(0x1c9)){for(var _0x485b09=0x0,_0x32be31=Object[_0x4dd6f9(0x289)](_0x3a588a);_0x485b09<_0x32be31[_0x4dd6f9(0x29a)];_0x485b09++)_0x325987['indexOf'](_0x32be31[_0x485b09])<0x0&&Object['prototype'][_0x4dd6f9(0x543)][_0x4dd6f9(0x54a)](_0x3a588a,_0x32be31[_0x485b09])&&(_0x11b3a6[_0x32be31[_0x485b09]]=_0x3a588a[_0x32be31[_0x485b09]]);}return _0x11b3a6;},Dt=ae[_0x2683e6(0x5f3)](function(_0x35f3de,_0x376f41){const _0xec3ef=_0x2683e6;var _0x43424c=_0x35f3de[_0xec3ef(0x177)],_0x1aeb17=_0x35f3de['id'],_0x23d53f=_0x35f3de[_0xec3ef(0x206)],_0x13a555=_0x35f3de[_0xec3ef(0x5c9)],_0x16e2f4=Ds(_0x35f3de,[_0xec3ef(0x177),'id',_0xec3ef(0x206),'extend']),_0x4114a9=_0xec3ef(0x391)[_0xec3ef(0x33e)](_0x1aeb17,'\x20')[_0xec3ef(0x33e)](_0x23d53f||'')['trim'](),_0x5ba940=ae[_0xec3ef(0x54e)]('_'['concat'](Us()));return In(_0x43424c,''[_0xec3ef(0x33e)](_0x1aeb17),{'defIds':_0x43424c[_0xec3ef(0x2e8)],'idSuffix':_0x5ba940[_0xec3ef(0x3b7)]},Q({'ref':_0x376f41,'className':_0x4114a9},_0x16e2f4),_0x13a555);});function In(_0x556ff8,_0x9b9f25,_0x3b7255,_0x335132,_0x39c329){const _0x40f1d1=_0x2683e6;return ae[_0x40f1d1(0x48e)](_0x556ff8[_0x40f1d1(0x493)],Q(Q({'key':_0x9b9f25},ws(_0x556ff8,_0x3b7255,_0x39c329)),_0x335132),(Ps(_0x556ff8,_0x3b7255)[_0x40f1d1(0x50d)]||[])[_0x40f1d1(0x538)](function(_0x18e17a,_0x34a9e0){const _0x2ac7a9=_0x40f1d1;return In(_0x18e17a,''[_0x2ac7a9(0x33e)](_0x9b9f25,'-')[_0x2ac7a9(0x33e)](_0x556ff8['tag'],'-')[_0x2ac7a9(0x33e)](_0x34a9e0),_0x3b7255,void 0x0,_0x39c329);}));}function ws(_0x4fb5a0,_0x1a76ad,_0x354ea4){const _0x267ab9=_0x2683e6;var _0x2cff61=Q({},_0x4fb5a0['attrs']);_0x354ea4!=null&&_0x354ea4[_0x267ab9(0x2a3)]&&_0x2cff61[_0x267ab9(0x215)]===_0x267ab9(0x2a3)&&(_0x2cff61['fill']=_0x354ea4[_0x267ab9(0x2a3)]);var _0xb7d85f=_0x1a76ad[_0x267ab9(0x2e8)];return!_0xb7d85f||_0xb7d85f[_0x267ab9(0x29a)]===0x0||(_0x4fb5a0['tag']===_0x267ab9(0x219)&&_0x2cff61[_0x267ab9(0x223)]&&(_0x2cff61[_0x267ab9(0x223)]=_0x2cff61[_0x267ab9(0x223)]+_0x1a76ad['idSuffix']),Object[_0x267ab9(0x548)](_0x2cff61)[_0x267ab9(0x280)](function(_0x2f3497){const _0xfb9832=_0x267ab9;var _0x529790=_0x2f3497[0x0],_0x505988=_0x2f3497[0x1];typeof _0x505988==_0xfb9832(0x516)&&(_0x2cff61[_0x529790]=_0x505988[_0xfb9832(0x5d6)](/url\(#(.*)\)/,_0xfb9832(0x56b)['concat'](_0x1a76ad['idSuffix'],')')));})),_0x2cff61;}function Ps(_0x2fa724,_0x2b808c){const _0x36a3ab=_0x2683e6;var _0xe4e84a,_0x23a010=_0x2b808c[_0x36a3ab(0x2e8)];return!_0x23a010||_0x23a010[_0x36a3ab(0x29a)]===0x0?_0x2fa724:_0x2fa724['tag']===_0x36a3ab(0x564)&&(!((_0xe4e84a=_0x2fa724[_0x36a3ab(0x50d)])===null||_0xe4e84a===void 0x0)&&_0xe4e84a[_0x36a3ab(0x29a)])?Q(Q({},_0x2fa724),{'children':_0x2fa724[_0x36a3ab(0x50d)]['map'](function(_0x3b3d94){const _0x437cc4=_0x36a3ab;return typeof _0x3b3d94['attrs']['id']=='string'&&_0x23a010&&_0x23a010[_0x437cc4(0x404)](_0x3b3d94[_0x437cc4(0x14d)]['id'])>-0x1?Q(Q({},_0x3b3d94),{'attrs':Q(Q({},_0x3b3d94[_0x437cc4(0x14d)]),{'id':_0x3b3d94[_0x437cc4(0x14d)]['id']+_0x2b808c[_0x437cc4(0x485)]})}):_0x3b3d94;})}):_0x2fa724;}function Us(){const _0x561f50=_0x2683e6;return Math['random']()[_0x561f50(0x155)](0x24)[_0x561f50(0x20e)](0x2,0x8);}Dt[_0x2683e6(0x528)]=_0x2683e6(0x411);var Ms={'tag':_0x2683e6(0x4cc),'attrs':{'fill':'none','viewBox':_0x2683e6(0x4b6),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2683e6(0x423)},'children':[{'tag':'path','attrs':{'stroke':_0x2683e6(0x2b3),'d':_0x2683e6(0x321),'strokeLinecap':_0x2683e6(0x597),'strokeLinejoin':_0x2683e6(0x597),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2683e6(0x41e),'attrs':{'id':_0x2683e6(0x3a4)},'children':[{'tag':'path','attrs':{'fill':_0x2683e6(0x574),'d':_0x2683e6(0x2ce)}}]}]}],'defIds':['off-line-single_clip0_910_343']},Cn=ae[_0x2683e6(0x5f3)](function(_0x54195e,_0x18bff6){const _0xe3da71=_0x2683e6;return ae[_0xe3da71(0x48e)](Dt,Object['assign']({},_0x54195e,{'id':'off-line-single','ref':_0x18bff6,'icon':Ms}));});Cn[_0x2683e6(0x528)]='OffLineSingle';var As={'tag':_0x2683e6(0x4cc),'attrs':{'fill':'none','viewBox':_0x2683e6(0x519),'width':_0x2683e6(0x312),'height':_0x2683e6(0x312)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x2683e6(0x53c),'attrs':{'stroke':'currentColor','d':_0x2683e6(0x5a4),'strokeLinecap':'round','strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2683e6(0x564),'attrs':{},'children':[{'tag':_0x2683e6(0x41e),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x2683e6(0x53c),'attrs':{'fill':_0x2683e6(0x574),'d':_0x2683e6(0x2ce),'transform':_0x2683e6(0x569)}}]}]}],'defIds':[_0x2683e6(0x444)]},En=ae[_0x2683e6(0x5f3)](function(_0x191b13,_0x152ea2){const _0x5662b8=_0x2683e6;return ae['createElement'](Dt,Object[_0x5662b8(0x3f3)]({},_0x191b13,{'id':_0x5662b8(0x188),'ref':_0x152ea2,'icon':As}));});En[_0x2683e6(0x528)]=_0x2683e6(0x163);function bn(_0x3adca5){const _0x266ad1=_0x2683e6;var _0x205e02,_0x12d95c,_0x1d3c97='';if(typeof _0x3adca5=='string'||typeof _0x3adca5==_0x266ad1(0x5ee))_0x1d3c97+=_0x3adca5;else{if(typeof _0x3adca5==_0x266ad1(0x24b)){if(Array[_0x266ad1(0x1c2)](_0x3adca5)){var _0x4c57fd=_0x3adca5[_0x266ad1(0x29a)];for(_0x205e02=0x0;_0x205e02<_0x4c57fd;_0x205e02++)_0x3adca5[_0x205e02]&&(_0x12d95c=bn(_0x3adca5[_0x205e02]))&&(_0x1d3c97&&(_0x1d3c97+='\x20'),_0x1d3c97+=_0x12d95c);}else{for(_0x12d95c in _0x3adca5)_0x3adca5[_0x12d95c]&&(_0x1d3c97&&(_0x1d3c97+='\x20'),_0x1d3c97+=_0x12d95c);}}}return _0x1d3c97;}function Ns(){const _0x89522=_0x2683e6;for(var _0x337860,_0x379b55,_0x5b55c9=0x0,_0x2e6c4a='',_0x5ccdc8=arguments[_0x89522(0x29a)];_0x5b55c9<_0x5ccdc8;_0x5b55c9++)(_0x337860=arguments[_0x5b55c9])&&(_0x379b55=bn(_0x337860))&&(_0x2e6c4a&&(_0x2e6c4a+='\x20'),_0x2e6c4a+=_0x379b55);return _0x2e6c4a;}const Ls='univer-online-status-icon',xs=_0x2683e6(0x35d),js=_0x2683e6(0x339),$s=_0x2683e6(0x174),Hs=_0x2683e6(0x542),Me={'onlineStatusIcon':Ls,'onlineStatusTitle':xs,'onlineStatus':js,'online':$s,'offline':Hs};function Bs(_0x2926ff){const _0x150aad=_0x2683e6;switch(_0x2926ff){case q['OFFLINE']:return'collabStatus.offline';case q[_0x150aad(0x476)]:return _0x150aad(0x31c);case q[_0x150aad(0x4c9)]:return _0x150aad(0x4e6);case q[_0x150aad(0x325)]:return _0x150aad(0x1cd);case q[_0x150aad(0x2c7)]:case q['AWAITING_WITH_PENDING']:return _0x150aad(0x1cf);case q[_0x150aad(0x244)]:case q[_0x150aad(0x23b)]:return _0x150aad(0x1af);}}function Tn(_0xe4204a){const _0x1381c7=_0x2683e6,{status$:_0x5c5959}=_0xe4204a,_0x2fb480=ee[_0x1381c7(0x2b2)](_0x5c5959,q[_0x1381c7(0x325)]),_0x43f916=a['useDependency'](a[_0x1381c7(0x479)]),_0x18ea16=a['useDependency'](exports[_0x1381c7(0x17a)]),_0x42fbaf=_0x2fb480!==q[_0x1381c7(0x25a)],_0x499247=_0x43f916['t'](Bs(_0x2fb480)),_0x4e28f6=Ns(Me[_0x1381c7(0x3c2)],{[Me[_0x1381c7(0x230)]]:_0x42fbaf,[Me['offline']]:!_0x42fbaf}),_0x556d00=_0x42fbaf?pe[_0x1381c7(0x1d3)](En,{}):pe[_0x1381c7(0x1d3)](Cn,{}),_0x133928=ae['useCallback'](()=>{const _0x31853c=_0x1381c7;_0x42fbaf||_0x18ea16[_0x31853c(0x5bd)]();},[_0x42fbaf,_0x18ea16]);function _0x5aceac(){const _0x377794=_0x1381c7;return pe['jsxs']('div',{'className':_0x4e28f6,'onClick':_0x133928,'children':[pe['jsx'](_0x377794(0x5a2),{'className':Me[_0x377794(0x47b)],'children':_0x556d00}),pe[_0x377794(0x1d3)]('div',{'className':Me[_0x377794(0x189)],'children':_0x499247})]});}return _0x42fbaf?_0x5aceac():pe[_0x1381c7(0x1d3)](ge[_0x1381c7(0x3ec)],{'title':_0x43f916['t'](_0x1381c7(0x5ba)),'children':_0x5aceac()});}var ks=Object['defineProperty'],Ws=Object[_0x2683e6(0x181)],Fs=(_0x18b4a6,_0x40982f,_0x3a8e57,_0x290d8e)=>{const _0x18d89d=_0x2683e6;for(var _0x580ef0=_0x290d8e>0x1?void 0x0:_0x290d8e?Ws(_0x40982f,_0x3a8e57):_0x40982f,_0x30541f=_0x18b4a6[_0x18d89d(0x29a)]-0x1,_0x4461a4;_0x30541f>=0x0;_0x30541f--)(_0x4461a4=_0x18b4a6[_0x30541f])&&(_0x580ef0=(_0x290d8e?_0x4461a4(_0x40982f,_0x3a8e57,_0x580ef0):_0x4461a4(_0x580ef0))||_0x580ef0);return _0x290d8e&&_0x580ef0&&ks(_0x40982f,_0x3a8e57,_0x580ef0),_0x580ef0;},$e=(_0x58c8b6,_0x5565f0)=>(_0x1c37f1,_0x1c1a37)=>_0x5565f0(_0x1c37f1,_0x1c1a37,_0x58c8b6);exports[_0x2683e6(0x20d)]=class extends a[_0x2683e6(0x3cc)]{constructor(_0x58988f,_0x29716f,_0xca2ae2,_0x5c79a3){const _0x28644d=_0x2683e6;super(),I(this,_0x28644d(0x1bc),new A[(_0x28644d(0x1ce))](q[_0x28644d(0x325)])),(this[_0x28644d(0x45b)]=_0x58988f,this[_0x28644d(0x2e2)]=_0x29716f,this['_injector']=_0xca2ae2,this['_collaborationController']=_0x5c79a3,this[_0x28644d(0x392)](),this[_0x28644d(0x3c6)]());}['_initStatusListener'](){const _0x48437e=_0x2683e6;this[_0x48437e(0x427)](this[_0x48437e(0x45b)][_0x48437e(0x5dd)][_0x48437e(0x36b)](A['switchMap'](()=>{const _0x126d84=_0x48437e,_0x2b2fea=this[_0x126d84(0x45b)][_0x126d84(0x452)]();return _0x2b2fea?this[_0x126d84(0x343)][_0x126d84(0x3f8)](_0x2b2fea[_0x126d84(0x478)]()):A['of'](null);}),A[_0x48437e(0x424)](_0x3b62be=>_0x3b62be?_0x3b62be[_0x48437e(0x2bf)]:A['of'](q['NOT_COLLAB'])))[_0x48437e(0x44d)](_0x479063=>{const _0x3f5e28=_0x48437e;this[_0x3f5e28(0x1bc)][_0x3f5e28(0x40f)](_0x479063);}));}['_initStatusComponent'](){const _0xa66fcf=_0x2683e6;this[_0xa66fcf(0x427)](this[_0xa66fcf(0x2e2)][_0xa66fcf(0x2d3)](ee[_0xa66fcf(0x3b9)][_0xa66fcf(0x370)],()=>a[_0xa66fcf(0x16d)](Vs({'status$':this[_0xa66fcf(0x1bc)][_0xa66fcf(0x4f2)]()}),this[_0xa66fcf(0x3e9)])));}},exports[_0x2683e6(0x20d)]=Fs([$e(0x0,a[_0x2683e6(0x468)]),$e(0x1,ee[_0x2683e6(0x1f5)]),$e(0x2,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),$e(0x3,a[_0x2683e6(0x22b)](exports['CollaborationController']))],exports['DesktopCollaborationStatusDisplayController']);function Vs(_0x50d86a){const {status$:_0x2a9574}=_0x50d86a;return function(){const _0xe282fd=_0x479a;return pe[_0xe282fd(0x1d3)](Tn,{'status$':_0x2a9574});};}const wt=a['createIdentifier'](_0x2683e6(0x566));var Gs=Object[_0x2683e6(0x1e7)],Ys=Object['getOwnPropertyDescriptor'],Ks=(_0x34ff12,_0x37a3c2,_0x22ca5b,_0x12f9fa)=>{for(var _0x1fc6ed=_0x12f9fa>0x1?void 0x0:_0x12f9fa?Ys(_0x37a3c2,_0x22ca5b):_0x37a3c2,_0x5c3b7c=_0x34ff12['length']-0x1,_0x18ed4a;_0x5c3b7c>=0x0;_0x5c3b7c--)(_0x18ed4a=_0x34ff12[_0x5c3b7c])&&(_0x1fc6ed=(_0x12f9fa?_0x18ed4a(_0x37a3c2,_0x22ca5b,_0x1fc6ed):_0x18ed4a(_0x1fc6ed))||_0x1fc6ed);return _0x12f9fa&&_0x1fc6ed&&Gs(_0x37a3c2,_0x22ca5b,_0x1fc6ed),_0x1fc6ed;},Te=(_0x4b25da,_0x1cae6b)=>(_0x1c6d69,_0x85e840)=>_0x1cae6b(_0x1c6d69,_0x85e840,_0x4b25da);exports[_0x2683e6(0x323)]=class extends a[_0x2683e6(0x1e0)]{constructor(_0x5d0f6e,_0x2040b8,_0x289c76,_0x10d852,_0x508d55,_0x2d422b){const _0x545c03=_0x2683e6;super(),this[_0x545c03(0x3ff)]=_0x5d0f6e,this['_logService']=_0x2040b8,this[_0x545c03(0x447)]=_0x289c76,this[_0x545c03(0x4ee)]=_0x10d852,this[_0x545c03(0x218)]=_0x508d55,_0x2d422b?_0x2d422b==null||_0x2d422b[_0x545c03(0x425)]()[_0x545c03(0x3a7)](()=>this[_0x545c03(0x4ea)]()):(this['_logService'][_0x545c03(0x3db)](_0x545c03(0x5a6),_0x545c03(0x4d3)),this[_0x545c03(0x4ea)]());}async[_0x2683e6(0x4ea)](){const _0x1c31a2=_0x2683e6,_0x26db1e=this[_0x1c31a2(0x3ff)][_0x1c31a2(0x277)](_0x1c31a2(0x434)),_0x16f3ce=this[_0x1c31a2(0x3ff)][_0x1c31a2(0x277)]('type');if(!_0x26db1e||!_0x16f3ce){this['_logService'][_0x1c31a2(0x3db)](_0x1c31a2(0x5a6),_0x1c31a2(0x335));return;}switch(Number(_0x16f3ce)){case ie[_0x1c31a2(0x4a1)]:{const _0x5287de=await this[_0x1c31a2(0x5af)](_0x26db1e);this[_0x1c31a2(0x4cb)](_0x5287de);break;}case ie[_0x1c31a2(0x56e)]:{await this[_0x1c31a2(0x521)](_0x26db1e);break;}default:{this[_0x1c31a2(0x577)][_0x1c31a2(0x461)](_0x1c31a2(0x5a6),_0x1c31a2(0x48b));break;}}}async[_0x2683e6(0x4cb)](_0x32082a){const _0x5f4bff=_0x2683e6;await this['_updateSubUnitFromURLParams'](_0x32082a),_0x32082a[_0x5f4bff(0x2d0)]['pipe'](A[_0x5f4bff(0x35f)](this[_0x5f4bff(0x534)]))['subscribe'](_0x523f9f=>{const _0x567aff=_0x5f4bff;_0x523f9f&&this[_0x567aff(0x258)](_0x523f9f);}),this[_0x5f4bff(0x3ff)][_0x5f4bff(0x5b7)][_0x5f4bff(0x36b)](A[_0x5f4bff(0x35f)](this['dispose$']))[_0x5f4bff(0x44d)](()=>this[_0x5f4bff(0x3fe)](_0x32082a));}[_0x2683e6(0x258)](_0x4ec35b,_0xbff459=!0x1){const _0x3b16cc=_0x2683e6,_0x34b927=this[_0x3b16cc(0x3ff)]['getParam']('subunit');_0x4ec35b[_0x3b16cc(0x276)]()!==_0x34b927&&this[_0x3b16cc(0x3ff)][_0x3b16cc(0x2df)](_0x3b16cc(0x590),_0x4ec35b[_0x3b16cc(0x276)](),_0xbff459);}async[_0x2683e6(0x3fe)](_0x2879e1){const _0x4dd02a=_0x2683e6;var _0x46f66e;const _0x297151=this[_0x4dd02a(0x3ff)][_0x4dd02a(0x277)](_0x4dd02a(0x590));if(!_0x297151||!_0x2879e1[_0x4dd02a(0x5ae)](_0x297151)){const _0x4ba558=_0x2879e1[_0x4dd02a(0x260)]()[0x0],_0x1fbeea=_0x2879e1['getSheetBySheetId'](_0x4ba558);if(!_0x1fbeea)return;this[_0x4dd02a(0x258)](_0x1fbeea,!0x0),await this[_0x4dd02a(0x447)][_0x4dd02a(0x511)](k[_0x4dd02a(0x18b)]['id'],{'unitId':_0x2879e1[_0x4dd02a(0x478)](),'subUnitId':_0x4ba558});return;}((_0x46f66e=_0x2879e1[_0x4dd02a(0x399)]())==null?void 0x0:_0x46f66e[_0x4dd02a(0x276)]())!==_0x297151&&await this['_commandService'][_0x4dd02a(0x511)](k[_0x4dd02a(0x18b)]['id'],{'unitId':_0x2879e1[_0x4dd02a(0x478)](),'subUnitId':_0x297151});}async[_0x2683e6(0x5af)](_0x27da65){const _0x3f535d=_0x2683e6;let _0x5dd77a=0x0;const _0x212c8e=await this[_0x3f535d(0x4ee)]['loadOfflineData'](_0x27da65);return _0x212c8e&&(_0x212c8e[_0x3f535d(0x154)]||_0x212c8e[_0x3f535d(0x2a9)]['length']!==0x0)&&(_0x5dd77a=_0x212c8e[_0x3f535d(0x162)]),_0x5dd77a===0x0&&this['_logService'][_0x3f535d(0x3db)](_0x3f535d(0x5a6),_0x3f535d(0x39c)),this[_0x3f535d(0x218)][_0x3f535d(0x4b2)](_0x27da65,_0x5dd77a);}async[_0x2683e6(0x521)](_0xebedc1){const _0x476a0e=_0x2683e6;let _0x2ace33=0x0;const _0x1db113=await this[_0x476a0e(0x4ee)][_0x476a0e(0x27c)](_0xebedc1);return _0x1db113&&(_0x1db113['awaitingChangeset']||_0x1db113['mutations'][_0x476a0e(0x29a)]!==0x0)&&(_0x2ace33=_0x1db113[_0x476a0e(0x162)]),_0x2ace33===0x0&&this[_0x476a0e(0x577)][_0x476a0e(0x3db)](_0x476a0e(0x5a6),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['_snapshotService']['loadDoc'](_0xebedc1,_0x2ace33);}},exports[_0x2683e6(0x323)]=Ks([Te(0x0,wt),Te(0x1,a['ILogService']),Te(0x2,a[_0x2683e6(0x1d5)]),Te(0x3,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x604)])),Te(0x4,a['Inject'](S[_0x2683e6(0x1d1)])),Te(0x5,a[_0x2683e6(0x23c)]($n[_0x2683e6(0x488)]))],exports[_0x2683e6(0x323)]);function _0x21f6(){const _0x1e1a34=['_context','_heartbeatTimer','_socketMessageSubscription','msCrypto','_getCtorByUniverType','params','IDLE','getMember','_event$','/universer-api/authz','_eventUnsubscribe','getCellPositionByOffset','[CollaborationSessionService]:\x20socket\x20error','_docSkeleton','defs','_labelPosition','uni.network.url-service','permission.title','TOO_MANY_REQUESTS','translate(.97)','href','url(#$1','YUUMI_URL_COL_OUT_OF_RANGE','_createHelper','UNIVER_DOC','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_key','onCommandExecuted','IURLService','react.fragment','#fff','toLowerCase','engine','_logService','getRandomValues','setItem','cmd','_initResize','_data','connection\x20error','_getScale','filter','bind','getCurrentRevOfUnit','textEncoder','csShouldRetryEvent','WebURLService','join','_handleHeartbeatEvent','Rectangle','synced','_nDataBytes','randomBytes','keySize','SerializableCipher','hide','has','IConfigService','subunit','/resources','purple300','enc','_sendHeartbeat','_submitChangeset','MergeInterceptorFactory','round','includes','beginPath','newValue','transformStack\x20failed!','localeService','Decryptor','generateRandomId','CommandType','_ws','9986202feSsWz','div','bottom','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','UNDEFINED','[DataLoaderController]','words','SNAPSHOT_SERVER_URL_KEY','ILogService','DocIMEInputManagerService','getRoom','data','_scheduleHeartbeat','getSheetBySheetId','_loadSheet','_createInitialStateImpl','visibilitychange','_syncEditingCollabCursor','transformRemoteChangeset','BufferedBlockAlgorithm','_onCombEvent','socket$','urlChange$','COLORS','_queuedRemoteChangesets','collab-client.tooltip.reconnect','CollaborationSocketService','_drawRectRange','reconnect','ILocalStorageService','COLLAB_WEB_SOCKET_URL','_getUploadFileURL','LICENSE_IMPORT_SIZE_EXCEEDED','getResourcesRequest','_transformHistoryAndStateStack','UnitSnapshot','reqId','originalMeta','&source=','onTransformChange$','extend','[CollaborationSession]','IUndoRedoService','registerDependencies','ImageUploadStatusType','contains','_minBufferSize','readInt32LE','_undoStacks','csAckEvent','Could\x20not\x20dynamically\x20require\x20\x22','getRelativeToViewportCoord','fromEvent','replace','disposeUnit','_docTransformStateCacheService','fetchThroughInterceptors','_singleActiveUnitService','lib','VIEWPORT_KEY','focused$','TEXT_RANGE_LAYER_INDEX','kdf','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','/allowed','getSheetBlock','SessionStatus','fillStyle','SheetPermissionInitController','unitId','collab-rect-range-','registerHTTPInterceptor','_document','_scheduleClearOtherTimer','CollaborationSession','DOC_RANGE_TYPE','failed\x20to\x20apply\x20missed\x20changesets!','number','Utf8','joinRsp','MSG_FOR_ERROR','ivSize','forwardRef','_collabCursorController','fetching\x20missing\x20changesets\x20from\x20','_clearTimeoutTimer','_collabSessionService','55604QZQcQc','_doCryptBlock','CONNECTOR_DATA_TOO_LARGE','onCommentUpdate','handleInsertCol','randomUUID','/universer-api/comb','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','endRow','_initDependencies','TRANSFORM_CHANGE_OBSERVABLE_TYPE','src','LocalCacheService','_draw','fetchMissingChangesets','_initUnitPermissionChange','createIdentifier','column','attrs','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','AuthzIoHttpService','putCollaborators','Hex','LICENSE_DISTRO_REJECTED','_refRangeService','awaitingChangeset','toString','LICENSE_MAX_UNITS_EXCEEDED','isTransformMutationFailure','INTERNAL_ERROR','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_lockTransition','_hover','365TsRweM','_online','getDeserializedSheetBlock','/rev/','c1Prime','getViewport','rev','OnLineSingle','sigBytes','UNRECOGNIZED','LocalUndoRedoService','_messageService','close$','DocStateChangeManagerService','popstate','_transformPreviousActiveRange','RemoveRowCommandId','connectInjector','getUnitType','onMissedChangesetFetched','url','SetDocZoomRatioOperation','\x22.\x20Please\x20configure\x20the\x20dynamicRequireTargets\x20or/and\x20ignoreDynamicRequires\x20option\x20of\x20@rollup/plugin-commonjs\x20appropriately\x20for\x20this\x20require\x20call\x20to\x20work.','toggleOffline','univer-online','with','COMMENT_UPDATE','icon','_waitForHeartbeatResponse','clone','CollaborationSessionService','_hovered','_clearLocalCache','row','push','UNAUTHENTICATED','_reverseMap','getOwnPropertyDescriptor','/unit/','findNodePositionByCharIndex','MemberService','conflict.content','_getCurrentRevision','ImageIoService','on-line-single','onlineStatusTitle','/fetchmissing?from=','SetWorksheetActivateCommand','_getAPIPrefixPath','UserManagerService','parse','split','_applyRemoteChangeset','ONLINE','transformChangesets','_exhaustRemoteChangesetQueue','b64DecodeUnicode','getUnitStatus$','handleIRemoveCol','height','saveImage','_transformUndoRedoStack','fromCharCode','_mode','_imageSourceCache','getRangePointData','handleIRemoveRow','collaboration_new_changeset','_append','max','MD5','_acknowledgedAwaitingChangeset','@univerjs/telemetry','onRemoteAck','_getSnapshotAPIPrefix','_onRemoteRetry','SHA1','ICollaborationSocketService','_saveTaskMap','HttpImport','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_scheduleSaving','RichTextEditingMutation','collabStatus.synced','assignAColorForMemberID','_unitStatus','incrementRevOfUnit','signUrlServerUrl','editingUnit','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','transformMutationsWithChangeset','_cachedData','readAsDataURL','ImageSourceType','delay','_docTransformIMECacheService','_status$','isTransformMutationsWithChangesetFailure','leaveEvent','CHANGESET_REJ','_ENC_XFORM_MODE','_colorIndex','isArray','HELLO','_onRemoteChangeset','_changesetSessionId','_hideTimer','range','YUUMI_RATE_OVER_LIMIT','function','{fileID}','/universer-api/stream/file/upload','RETRY_CONNECTING_MAX_COUNT','collabStatus.notCollab','BehaviorSubject','collabStatus.syncing','decryptBlock','SnapshotService','getMergeData','jsx','cursorInfo','ICommandService','retryConnectingInterval','_http','capture','_createHandler','isInternalEditorID','_remoteChangesetQueue','_process','_docSyncEditingCollabCursorService','top','Shape','RxDisposable','snapshot','[CollaborationState]:\x20apply\x20error!','ITransformService','copyFileMeta','_snapshotServerService','ENSURE_SNAPSHOT_EXECUTION','defineProperty','_commentUpdate$','_selfUnitIDs','sid','collaborators','_backgroundColor','session.will-retry','_socket','file','COLLAB_SUBMIT_CHANGESET_URL_KEY','NO_OTHER_CLIENTS_EDITING','getImage','_getUndoStack','format','IUIPartsService','StreamCipher','Warning','objectType','now','APPLY_REVISION_CONFILICT','getValue','UNIVER_SLIDE','_onUserLeave','reset','black','_textBubble','_collaborationPaused','_toggleOffline','/object/','_clearUndo','startsWith','className','_substituteRedoStack','debounceTime','_initCloseConn','collaMsg','_syncEditingCollabCursorService','UnitEmbedded','DesktopCollaborationStatusDisplayController','substring','_docTransformSelectionsService','patch','min','moveTo','ranges','onReady','fill','_collaborationSessionService','APPLY_PERMISSION_DENIED','_snapshotService','use','state$','getVpScrollXYInfoByPosToVp','handleDeleteRangeMoveLeft','?size=','_fetchMissChangesets','registerBeforeClose','EvpKDF','USERS_ENTER','removeMember','xlink:href','sheetID','_unitID','_clearRedo','SetSelectionsOperation','flatMap','_unitOnClients','_getMergeRange','Inject','_updateLocalCache','mapTo','LIVESHARE_FETCH_OPERATIONS','YUUMI_SUBSCRIPTION_NOT_FOUND','online','name','_nRounds','_renderManagerService','DisposableCollection','SHOULD_CLOSE_CONN','/universer-api/file/{fileID}/sign-url','slice','__esModule','_telemetryInfo','deleteCollaborator','PENDING','Optional','171801abfyJf','@univerjs/sheets-ui','byteLength','enableLocalCache','combineLatest','textRanges','state','SYNCED','_clearScheduledTask','IBeforeCloseService','startColumn','collaboration.closeRoom','restore','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','object','getCollabCursors$','clearTimeout','ISnapshotServerService','OpenSSL','find','clearInterval','fromEventSubject','_cursorShapes','getAncestorScale','concatMap','Tools','finalize','_updateURLWithCurrentState','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','OFFLINE','init','_onConflict','_undoRedoService','onMouseMove','visibilityState','getUnhiddenWorksheets','_throwTelemetryCollaborationNewChangeset','registerRefRange','error$','_beforeCloseService','UPDATE_PERMISSION_OBJ','redoState','decrypt','@univerjs/drawing','dispose','_clearCollaborationTimeoutTimer','_colorAssignService','mixIn','@univerjs/design','mapDocumentTypeToUniverType','getCurrent','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_getDownloadEndpointURL','Error','IPermissionService','_onRemoteRejected','PasswordBasedCipher','getSheetId','getParam','defaultProps','event$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_onOffline','loadOfflineData','padding','delete','_anchorDot','forEach','awaiting_with_pending','take','LIVESHARE_NEW_HOST','getTime','_revisionService','location','triggerDblclick','_updateLocalCursor','getOwnPropertySymbols','session.connection-failed','_transformUndoredo','_socketReady','Hasher','react.element','addObject','repeat','_userManagerService','red300','_retryCount','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_refreshCollabCursors','_map','revision','@univerjs/engine-formula','@univerjs-pro/collaboration','length','FileId','replaceDocRanges','IImageIoService','FromArray','changesets','_hash','[FetchMissState]','HTTPService','colorChannel1','SUBMIT_CHANGESET','Latin1','endColumn','body','Undefined','mutations','selection','actions','1883787rIVVGf','Workbook','NoPadding','onRendered','transformMutation','_cursors','useObservable','currentColor','7RFSklI','_permissionService','_sessionStatus$','requestParams','requireSession','debounce','getUndoRedoMutationParamsCache','_setupBeforeClosingHandler','setShapeProps','_shapes','HEARTBEAT_TIMEOUT','status$','COLLAB_SUBMIT_CHANGESET_URL','auth.needGotoLoginAlert','_listenToOnlineEvent','_showConflictNotification','labelPosition','_sheetSkeletonManagerService','_resendWithTimeout','AWAITING','Injector','drawWith','[CollaborationSessionService]','_removeCollabCursors','_notificationService','measureText','M0\x200H16V16H0z','_memberService','activeSheet$','_oKey','values','registerComponent','updateOfflineData','HEARTBEAT_INTERVAL_KEY','awaiting','DEFAULT_FILE_NAME','createDecryptor','SetTextSelectionsOperation','isActive','symbol','getOffsetConfig','_removeRoom','&to=','setParam','rgba(255,\x20255,\x20255,\x200.01)','CHANGESET_ACK','_uiPartsService','Base64','_transitionLocked','[OfflineState]:\x20received\x20acknowledgement.','_onRefRangeChange','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','defIds','getInterceptPoints','onRemoteRej','objectActions','duration','substr','_getLoginPath','fetch_missing','floor','_startSheetCollabCursor','snapshotServerUrl','prototype','COMPRESS_MUTATION_APPLY','headers','[CollaborationUndoRedoService]','conflict','crypto','#FFF','onStateChange','_compressMutationService','reject','_unlockTransition','onSyncEditingCollabCursor','_executeRemoteChangeset','_onLocalMutation','__creator','_removeClearOtherTimer','save','_clearHeartbeatTimer','subUnitId','setCurrentUser','\x0aCurrent:\x20','clear','unshift','isTransformMutationsWithChangesetSuccess','_scene','_resendTimer','CollaborationEntity','memberID','open$','@univerjs/network','UNIVER_PROJECT','1em','_createHmacHelper','create','collabSubmitChangesetUrl','_entityInit$','pushState','_transformService','title','hovered','serializeRangeWithSheet','collabStatus.conflict','unitId\x20is\x20not\x20found','_sessions','LIVESHARE_REQUEST_HOST','currentSkeleton$','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','fillText','DataLoaderController','_cipher','NOT_COLLAB','m2Prime','key','stopTime','getStateCache','origin','saveSheetBlock','ERROR_IMAGE','getTypeOfUnitAdded$','blockSize','onTransformIME','_sender','allowed','result','every','unsubscribe','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_listenToOfflineEvent','handleInsertRangeMoveDown','LIVESHARE_OPERATION','univer-online-status','roomMembers','isEditing','_HTTPService','mode','concat','from','_keyPriorReset','ThresholdInterceptorFactory','UniverInstanceType','_collaborationController','all','Encryptor','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_localeService','update','getSheetObject','roomMembers$','default','_doReset','handleMoveRange','LEAVE','session','TEXT','handleInsertRow','setTimeout','exhaustSavingTask','SNAPSHOT_INVALID_SNAPSHOT','CommentService','collabWebSocketUrl','subscribeEvent','_scheduleTimestamp','_drawAnchor','confirm','Vector2','doc.mutation.rich-text-editing','univer-online-status-title','objects','takeUntil','csRejEvent','[SyncedState]:\x20received\x20acknowledgement.','EffectRefRangId','_waitCount','_onRemoteACK','DocCollaborationEntity','onTransformSelections','hasher','_getSendChangesetTimeout','_config','unload','pipe','arc','_awaitingChangeset','parseProtocolChangeset','_startDocCollabCursor','HEADER_MENU','2009144zIyPwQ','mergeOverrideWithDependencies','onRemoteChangeset','_lastPointer','_schedule','YUUMI_UNABLE_LOAD_URL','_roomMembers','_createInitialState','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_entities','Base','ERROR_IMAGE_TYPE','@univerjs/core','transformStateCache','[PendingState]:\x20received\x20acknowledgement.','SnapshotServerOverHTTPService','distinctUntilChanged','APPLY_NON_SEQUENTIAL_REVISION','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','UniverCollaborationClientPlugin','_startCollaboration','_initEventListeners','_transformStack','USERS_LEAVE','_session','InsertRowCommandId','infoRsp','roomInfos','font','roles','JOINING','INVALID_ARGUMENT','univerjs-icon\x20univerjs-icon-','_initStatusComponent','?url=','abs','encode','LOCAL_CACHE_INTERVAL','_sendingTimer','APPLY_DUPLICATED','getActiveSheet','offline','transform','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getCurrentUser','AUTHZ_URL_KEY','_transformStateCache','joinEvent','CompressMutationService','_shouldReportTelemetry','IAuthzIoService','off-line-single_clip0_910_343','socketService','_localStorageService','then','_DEC_XFORM_MODE','_invKeySchedule','63mUvdTG','_assignedColors','backgroundColor','ciphertext','_transformRemoteChangesetByStateCache','_onFetchMissResult','appendMutation','image/jpg','_render','permission.content','getTypeOfUnitDisposed$','salt','_registerRenderDependencies','current','cfg','BuiltInUIPart','ThemeService','override','getUniverSheetInstance','onTransformRemoteChangesetByIMECache','userID','RECT','history','onPointerLeave$','onlineStatus','getCollabEntity','_state','skeleton','_initStatusListener','_onConnectionOpen','uploadFileServerUrl','INGEST','_handleHover','encrypt','Disposable','Unknown\x20user','liveShareNewHost','touchDependencies','Plugin','_configService','_rescheduleHeartbeat','PERMISSION_DENIED','image/png','getSkeleton','CollaborationEvent','_collaborationTimeoutTimer','width','saveOfflineData','NEW_CHANGESETS','debug','ColorKit','transformUndoRedo','CollaborationController','UniverCollaborationPlugin','_replayCachedMutations','_decreaseWaiting','_parse','currentTheme$','close','jiqing500','_type','random','COMPLETION_FINISHED','_injector','storage','createSocket','Tooltip','resolve','merge','reverse','ceil','APPLY_REJECT','json','assign','SEND_CHANGESET_TIMEOUT_KEY','HEARTBEAT_TIMEOUT_KEY','[CollaborationEntity]','byteOffset','getCollabEntity$','_roomMembers$','_docSkeletonManagerService','_httpService','_getSignURL','MUTATION','_updateSubUnitFromURLParams','_urlService','_id','_hasher','_state$','ref','indexOf','hasOwnProperty','isTransformChangesetsSuccess','downloadEndpointUrl','_sendHeartbeatTimer','collabCursorState$','charCodeAt','processBlock','_substituteUndoStack','_doProcessBlock','stringify','next','_prevBlock','UniverIcon','LIVESHARE_TERMINATE','setAlpha','_onCursorDelete','replaceState','encryptBlock','pad','onMissingChangesets','_getAnchorBounding','BlockCipherMode','/universer-api/oidc/authpage','UNKNOWN_CODE','UNIVER_UNKNOWN','clipPath','DeleteRangeMoveUpCommandId','image/jpeg','c2Prime','getCurrentSelections','url(#off-line-single_clip0_910_343)','switchMap','whenReady','JOIN','disposeWithMe','_getRedoStack','_range','VIEW_MAIN','_iv','compute','univer-pro.collaboration-client.single-active-unit-service','_docStateChangeManagerService','setConfig','_handleEvent','_handleJoinEvent','AES','_change$','unit','UNKNOWN_CMD','exports','SheetCollabCursorShape','complete','docStateChange$','deepClone','editing\x20status\x20changed\x20to','_updateStatus','RefRangeService','isPermissionRej','addObjects','_sheetTransformSelectionsService','_checkMissing','makeDirty','code','on-line-single_clip0_910_349','fetchMiss','_socketService','_commandService','_cursor','cursorInfo$','type','put','@univerjs/sheets','subscribe','FAIL','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_clearOtherTimers','getImageSourceCache','getFocusedUnit','routeKey','toDisposable','MessageType','onRemoteRetry','withCredentials','onTransformState','startRow','_incrementRevisionNumber','_univerInstanceService','_handleLeaveEvent','_disabled','InsertRangeMoveRightCommandId','workbook','resize','error','x-univer-host','newCsEvent','FETCH_MISSING','hostname','@univerjs/ui','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','IUniverInstanceService','NOT_FOUND','transformSelections','DocSkeletonManagerService','_onRecvEvent','shouldCloseConn','toggleOnline','set','UPDATE_CURSOR','ACTIVE_UNIT_EVENT_CHANNEL','HMAC','_telemetryService','_handler','interceptor','CONFLICT','eventID','getUnitId','LocaleService','session.room-full','onlineStatusIcon','\x20-\x20','evenodd','status','_changesetReqId','rng','LOGIN_URL_KEY','conflict.title','NodePositionConvertToRectRange','COMPRESS_MUTATION_SEND','idSuffix','iterations','_getSheetObject','IRemoteInstanceService','setInterval','_initCommandExecutedListener','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Rect','onTransformRemoteChangesetByStateCache','createElement','_transformSelections','lineTo','sheets','message$','tag','add','verdancy600','getConfig','sessionStatus$','fromCollab','updateMember','reduce','ReactCurrentOwner','_disableEditing','commentUpdate$','enableOfflineEditing','_registerDependencies','_tryEnsureSocket','UNIVER_SHEET','MoveRangeCommandId','jsxs','Malformed\x20UTF-8\x20data','_cursorInfo$','formatter','_updateCollabCursors','2521186lIhVRB','unitID','onSendChangeset','_socket$','/collaborator','HEARTBEAT_INTERVAL','send','getUnit','_ensureSubject','sequenceExecute','loadSheet','WebSocketService','size','_getAPIPrefix','0\x200\x2016\x2016','pluginName','_pendingMutations','_isPermissionRej','authzUrl','__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED','closePath','_toggleOnline','syncEditingCollabCursor','SheetCollaborationEntity','createEncryptor','OTHER_CLIENTS_EDITING','getMemberID','method','apply','@univerjs/rpc','blue400','UNIVER_COLLABORATION_CLIENT_PLUGIN','RECV','FETCH_MISS','append','_setupSubUnitSync','svg','splice','_onUserJoin','_candidateSocket','pauseCollaboration','PSEUDO_FETCH_MISSING_RESULT','transformIMECache','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','image/gif','__Key__','_collabCursorState$','createInstance','&assign=','/-/object/-/batch_allowed','_resendTimeout','show','clamp','shareReplay','startTime','resend','_stopTelemetryCollaborationNewChangeset','PERMISSION_REJ','HmacMD5','deserializeToCombResponse','HttpExport','CHANGESET_SHOULD_RETRY','collabStatus.fetchMiss','collab-text-range-','createCollaborator','enableSingleActiveInstanceLock','_init','_initRequestHeader','_keySchedule','_onCursorUpdate','_localCacheService','react','throttleTime','_tryReconnect','asObservable','_retryConnectingTimer','WorkbookEditablePermission','RevisionService','searchParams','InsertSheetMutation','SNAPSHOT_URL_KEY','getRenderById','pending','_transformIMECache','addEventListener','closeSession','charAt','SEND_CHANGESET_TIMEOUT','getDocRanges','_onConnectionFailed','_xformMode','undoState','_transformRemoteChangesetByIMECache','_onJoinRoomEvent','[PendingState]:\x20received\x20rejection.','unknown','_getSaveTimeout','IMessageService','_replaceFileID','selections','encodeURIComponent','children','_themeService','objectID','gold400','executeCommand','_color','12259630NIayvE','EmptyMutation','m1Prime','string','UniverNetworkPlugin','_initMergeInterceptor','0\x200\x2017\x2016','disableLocalCache','Subject','members','_members','_timeoutTimer','RegularPolygon','_drawTextRange','_loadDoc','baseRev','InsertRangeMoveDownCommandId','updatePermissionPoint','runRefRangeMutations','algo','_joinRoom','displayName','action','target','loginUrlKey','Error\x20on\x20receiving\x20event','InsertColCommandId','CollaborationStatus','color','HEARTBEAT','[UniverCollaborationClientPlugin]','Univer','removeParam','dispose$','addImageSourceCache','CHANGESET_REVISION_CONFILICT','_redoStacks','map','_name','sheetId','WordArray','path','/block/','DocSelectionManagerService','_anchor','execute','resourceIDs','univer-offline','propertyIsEnumerable','_saveCache','univer-pro.collaboration-client-socket-service','ALREADY_EXISTS','setWaitCount','entries','_send','call','LICENSE_EXPORT_SIZE_EXCEEDED','liveShareOperation','_updateState','useRef','SNAPSHOT_HAS_BEEN_REMOVED','SheetsSelectionsService','post','getColor','get','Cipher','@univerjs/engine-render'];_0x21f6=function(){return _0x1e1a34;};return _0x21f6();}var qs=Object[_0x2683e6(0x1e7)],zs=Object[_0x2683e6(0x181)],Xs=(_0x470475,_0x85c71a,_0x98c4d7,_0x367b70)=>{const _0x53a59f=_0x2683e6;for(var _0x31656b=_0x367b70>0x1?void 0x0:_0x367b70?zs(_0x85c71a,_0x98c4d7):_0x85c71a,_0x145aa3=_0x470475[_0x53a59f(0x29a)]-0x1,_0x193c67;_0x145aa3>=0x0;_0x145aa3--)(_0x193c67=_0x470475[_0x145aa3])&&(_0x31656b=(_0x367b70?_0x193c67(_0x85c71a,_0x98c4d7,_0x31656b):_0x193c67(_0x31656b))||_0x31656b);return _0x367b70&&_0x31656b&&qs(_0x85c71a,_0x98c4d7,_0x31656b),_0x31656b;},kt=(_0x4db9e4,_0x3b947b)=>(_0x1e429e,_0x40d2ca)=>_0x3b947b(_0x1e429e,_0x40d2ca,_0x4db9e4);const Js=_0x2683e6(0x2d7),Zs=_0x2683e6(0x532);let Ve=class extends a[_0x2683e6(0x3cc)]{constructor(_0x48d83a,_0x106136){const _0x1eea49=_0x2683e6;super(),this[_0x1eea49(0x45b)]=_0x48d83a,this['_configService']=_0x106136,this[_0x1eea49(0x4ea)]();}[_0x2683e6(0x4ea)](){const _0x58db44=_0x2683e6;this[_0x58db44(0x427)](this[_0x58db44(0x45b)][_0x58db44(0x5dd)][_0x58db44(0x44d)](()=>{const _0x24f977=_0x58db44;var _0x595189;const _0x465e9d=this[_0x24f977(0x45b)][_0x24f977(0x452)]();let _0x4e223a=(_0x595189=this['_configService']['getConfig'](Js))!=null?_0x595189:Zs;_0x465e9d instanceof a[_0x24f977(0x2ad)]&&(_0x4e223a=_0x465e9d[_0x24f977(0x231)]),document[_0x24f977(0x319)]=_0x4e223a;}));}};Ve=Xs([kt(0x0,a[_0x2683e6(0x468)]),kt(0x1,a['IConfigService'])],Ve);var Qs=Object[_0x2683e6(0x1e7)],er=Object[_0x2683e6(0x181)],tr=(_0x4d5f70,_0x1d8c6f,_0xb5b511,_0x55d92f)=>{for(var _0x532b88=_0x55d92f>0x1?void 0x0:_0x55d92f?er(_0x1d8c6f,_0xb5b511):_0x1d8c6f,_0xc8e3d2=_0x4d5f70['length']-0x1,_0x4e147d;_0xc8e3d2>=0x0;_0xc8e3d2--)(_0x4e147d=_0x4d5f70[_0xc8e3d2])&&(_0x532b88=(_0x55d92f?_0x4e147d(_0x1d8c6f,_0xb5b511,_0x532b88):_0x4e147d(_0x532b88))||_0x532b88);return _0x55d92f&&_0x532b88&&Qs(_0x1d8c6f,_0xb5b511,_0x532b88),_0x532b88;},at=(_0x3fb467,_0x15c9eb)=>(_0x5d857d,_0x2eb63c)=>_0x15c9eb(_0x5d857d,_0x2eb63c,_0x3fb467);let Ge=class{constructor(_0x26728b,_0x13896,_0x456144){const _0x59abd7=_0x2683e6;this[_0x59abd7(0x3d1)]=_0x26728b,this[_0x59abd7(0x3fb)]=_0x13896,this[_0x59abd7(0x59c)]=_0x456144,this[_0x59abd7(0x25b)]();}[_0x2683e6(0x25b)](){const _0x5480fa=_0x2683e6;this[_0x5480fa(0x3fb)][_0x5480fa(0x5e8)]({'priority':0x1,'interceptor':(_0xeff59d,_0x46cc0c)=>_0x46cc0c(_0xeff59d)[_0x5480fa(0x36b)](A[_0x5480fa(0x255)](async _0x5ad0d7=>{const _0x4abe8f=_0x5480fa,_0x313a58=_0x5ad0d7;if(_0x313a58[_0x4abe8f(0x47e)]===0x191&&window[_0x4abe8f(0x35a)](this['localeService']['t'](_0x4abe8f(0x2c1)))){const _0x278785=window[_0x4abe8f(0x50c)](window[_0x4abe8f(0x286)][_0x4abe8f(0x56a)]);window[_0x4abe8f(0x286)]['href']=this[_0x4abe8f(0x2ee)]()+_0x4abe8f(0x393)+_0x278785;}return _0x313a58;}))});}[_0x2683e6(0x2ee)](){const _0x4d2b7b=_0x2683e6;var _0x336948,_0xb052aa;const _0xad4247=this[_0x4d2b7b(0x3d1)][_0x4d2b7b(0x496)](an),_0x3491bf=this[_0x4d2b7b(0x3d1)][_0x4d2b7b(0x496)](te);return(_0xb052aa=(_0x336948=_0x3491bf==null?void 0x0:_0x3491bf[_0x4d2b7b(0x52b)])!=null?_0x336948:_0xad4247)!=null?_0xb052aa:qn;}};Ge=tr([at(0x0,a[_0x2683e6(0x58f)]),at(0x1,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)])),at(0x2,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)]))],Ge);var nr=Object['defineProperty'],ir=Object[_0x2683e6(0x181)],sr=(_0x227066,_0x35c3c2,_0x1ff946,_0x677b04)=>{const _0x5c01cc=_0x2683e6;for(var _0x1a804b=_0x677b04>0x1?void 0x0:_0x677b04?ir(_0x35c3c2,_0x1ff946):_0x35c3c2,_0x13019b=_0x227066[_0x5c01cc(0x29a)]-0x1,_0x3421fc;_0x13019b>=0x0;_0x13019b--)(_0x3421fc=_0x227066[_0x13019b])&&(_0x1a804b=(_0x677b04?_0x3421fc(_0x35c3c2,_0x1ff946,_0x1a804b):_0x3421fc(_0x1a804b))||_0x1a804b);return _0x677b04&&_0x1a804b&&nr(_0x35c3c2,_0x1ff946,_0x1a804b),_0x1a804b;},Wt=(_0x2a06dc,_0x304237)=>(_0x5203c7,_0x2de8c6)=>_0x304237(_0x5203c7,_0x2de8c6,_0x2a06dc);const Rn='AUTHZ_URL_KEY',rr=_0x2683e6(0x55f);exports[_0x2683e6(0x14f)]=class extends a[_0x2683e6(0x3cc)]{constructor(_0x16ed80,_0x12a07a){const _0x365129=_0x2683e6;super(),this[_0x365129(0x33c)]=_0x16ed80,this[_0x365129(0x3d1)]=_0x12a07a,this[_0x365129(0x518)]();}[_0x2683e6(0x518)](){const _0x206c91=_0x2683e6,_0x4d7e50=this;this[_0x206c91(0x427)](this[_0x206c91(0x33c)][_0x206c91(0x5e8)]({'priority':0x3e7,'interceptor':Z[_0x206c91(0x596)]({'isMatch'(_0x10e8c0){const _0x2e9163=_0x206c91;var _0x4065b6;if(_0x10e8c0[_0x2e9163(0x4c3)]==='POST'&&((_0x4065b6=_0x10e8c0[_0x2e9163(0x2b7)])!=null&&_0x4065b6[_0x2e9163(0x2a7)])){const {objectID:_0x2ec493,objectType:_0x540dcf}=_0x10e8c0['requestParams']['body']||{};if(!_0x2ec493||_0x540dcf===void 0x0)return!0x1;const _0x4f59f2=_0x4d7e50[_0x2e9163(0x18c)]()+'/'+_0x540dcf+_0x2e9163(0x203)+_0x2ec493+_0x2e9163(0x5e1);if(_0x10e8c0[_0x2e9163(0x170)]===_0x4f59f2)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xac8725){const _0x3d379a=_0x206c91;var _0x797863;return(_0x797863=_0xac8725['requestParams'])==null?void 0x0:_0x797863[_0x3d379a(0x2a7)];},'mergeParamsToRequest'(_0x1e220a,_0x1abffa){const _0x589101=_0x206c91,_0x3acc4e=_0x4d7e50['_getAPIPrefixPath']()+_0x589101(0x4d9),_0x2fdb6f=_0x1e220a[_0x589101(0x49a)]((_0x405b17,_0x453669)=>{const _0x3a9b8a=_0x589101,{unitID:_0x43ced4,objectID:_0x3d0197,objectType:_0x190cef,actions:_0x33ed76}=_0x453669;return _0x405b17[_0x43ced4]||(_0x405b17[_0x43ced4]={}),_0x405b17[_0x43ced4][_0x3d0197]||(_0x405b17[_0x43ced4][_0x3d0197]={'objectID':_0x3d0197,'objectType':_0x190cef,'actions':[]}),_0x405b17[_0x43ced4][_0x3d0197][_0x3a9b8a(0x2ab)][_0x3a9b8a(0x17e)](..._0x33ed76),_0x405b17;},{}),_0x1e9f9c=[];for(const _0x7f8f21 in _0x2fdb6f)for(const _0x4e12d7 in _0x2fdb6f[_0x7f8f21]){const {actions:_0x5c437d,objectType:_0x3aabe6}=_0x2fdb6f[_0x7f8f21][_0x4e12d7],_0xff3eb6=[...new Set(_0x5c437d)];_0x1e9f9c[_0x589101(0x17e)]({'unitID':_0x7f8f21,'objectID':_0x4e12d7,'objectType':_0x3aabe6,'actions':_0xff3eb6});}return new Z['HTTPRequest']('POST',_0x3acc4e,{'headers':_0x1abffa['headers'],'withCredentials':_0x1abffa[_0x589101(0x457)],'responseType':_0x1abffa['responseType'],'body':{'requests':_0x1e9f9c}});}},{'distributeResult'(_0x8fdb87,_0x5d4e2b){const _0x14d552=_0x206c91,{objectActions:_0x1c55ec}=_0x8fdb87;return _0x5d4e2b[_0x14d552(0x538)](_0xe20b62=>{const _0x2ac0ec=_0x14d552,{unitID:_0x2cbb92,objectID:_0x4ab3f1,actions:_0x2a72a6}=_0xe20b62,_0x193dde=_0x1c55ec[_0x2ac0ec(0x250)](_0x3336d7=>_0x3336d7[_0x2ac0ec(0x4a9)]===_0x2cbb92&&_0x3336d7['objectID']===_0x4ab3f1),_0xdb849b=_0x2a72a6['map'](_0x3a373f=>_0x193dde==null?void 0x0:_0x193dde[_0x2ac0ec(0x2ab)][_0x2ac0ec(0x250)](_0x20a80c=>_0x20a80c[_0x2ac0ec(0x529)]===_0x3a373f))[_0x2ac0ec(0x57f)](_0x3751ac=>!!_0x3751ac);return{'config':_0xe20b62,'result':{'actions':_0xdb849b,'error':_0x8fdb87[_0x2ac0ec(0x461)]}};});}})}));}[_0x2683e6(0x18c)](){const _0x12f63d=_0x2683e6;var _0x5b8c44,_0x3d6377;const _0xb6c961=this['_configService'][_0x12f63d(0x496)](Rn),_0x4bbe2d=this[_0x12f63d(0x3d1)][_0x12f63d(0x496)](te);return(_0x3d6377=(_0x5b8c44=_0x4bbe2d==null?void 0x0:_0x4bbe2d[_0x12f63d(0x4ba)])!=null?_0x5b8c44:_0xb6c961)!=null?_0x3d6377:rr;}async['create'](_0x344be4){const _0x43e2ae=_0x2683e6,_0x8c5dc9=this[_0x43e2ae(0x18c)]()+'/'+_0x344be4[_0x43e2ae(0x1f8)]+'/object';return(await this[_0x43e2ae(0x33c)][_0x43e2ae(0x551)](_0x8c5dc9,{'body':_0x344be4}))[_0x43e2ae(0x2a7)]['objectID']||'';}async['list'](_0x95882c){const _0x6fb1db=_0x2683e6,_0x3d305c=this['_getAPIPrefixPath']()+'/-/object/list';return(await this[_0x6fb1db(0x33c)][_0x6fb1db(0x551)](_0x3d305c,{'body':_0x95882c}))[_0x6fb1db(0x2a7)][_0x6fb1db(0x35e)];}async['update'](_0xcc866f){const _0x38dc77=_0x2683e6,_0x332afa=this[_0x38dc77(0x18c)]()+'/'+_0xcc866f['objectType']+_0x38dc77(0x203)+_0xcc866f[_0x38dc77(0x50f)];await this[_0x38dc77(0x33c)][_0x38dc77(0x44b)](_0x332afa,{'body':_0xcc866f});}async[_0x2683e6(0x331)](_0x268050){const _0x49e3f0=_0x2683e6,_0x3f6b62=this[_0x49e3f0(0x18c)]()+'/'+_0x268050['objectType']+'/object/'+_0x268050[_0x49e3f0(0x50f)]+_0x49e3f0(0x5e1);return(await this[_0x49e3f0(0x33c)][_0x49e3f0(0x551)](_0x3f6b62,{'body':_0x268050}))[_0x49e3f0(0x2a7)][_0x49e3f0(0x2ab)];}async['batchAllowed'](_0x4dbdd4){const _0x4843a4=_0x2683e6,_0x44a2be=this[_0x4843a4(0x18c)]()+'/-/object/-/batch_allowed';return(await this[_0x4843a4(0x33c)][_0x4843a4(0x551)](_0x44a2be,{'body':{'requests':_0x4dbdd4}}))[_0x4843a4(0x2a7)][_0x4843a4(0x2eb)];}async['listRoles'](_0x121d71){const _0x38b45c=_0x2683e6,_0x7e7f3d=this[_0x38b45c(0x18c)]()+'/'+_0x121d71[_0x38b45c(0x1f8)]+'/role',_0x344323=await this[_0x38b45c(0x33c)][_0x38b45c(0x551)](_0x7e7f3d,{'body':_0x121d71});return{'roles':_0x344323[_0x38b45c(0x2a7)][_0x38b45c(0x38e)],'actions':_0x344323[_0x38b45c(0x2a7)][_0x38b45c(0x2ab)]};}async[_0x2683e6(0x23a)](_0x23fbed){const _0x58fb36=_0x2683e6,_0x3aa965=this['_getAPIPrefixPath']()+_0x58fb36(0x4ac);await this['_HTTPService'][_0x58fb36(0x27e)](_0x3aa965,{'params':{'collaboratorID':_0x23fbed['collaboratorID'],'objectID':_0x23fbed[_0x58fb36(0x50f)],'unitID':_0x23fbed[_0x58fb36(0x4a9)]}});}async['updateCollaborator'](_0x57e4d0){const _0x4341df=_0x2683e6,_0x39fd8a=this[_0x4341df(0x18c)]()+_0x4341df(0x4ac);await this[_0x4341df(0x33c)][_0x4341df(0x210)](_0x39fd8a,{'body':_0x57e4d0});}async[_0x2683e6(0x4e8)](_0xb46b3d){const _0x559be9=_0x2683e6,_0x2ef252=this['_getAPIPrefixPath']()+_0x559be9(0x4ac);await this[_0x559be9(0x33c)][_0x559be9(0x551)](_0x2ef252,{'body':_0xb46b3d});}async['listCollaborators'](_0x937d35){const _0x443aaa=_0x2683e6,_0x1c3d46=this[_0x443aaa(0x18c)]()+'/collaborator';return(await this[_0x443aaa(0x33c)]['get'](_0x1c3d46,{'params':{'objectID':_0x937d35[_0x443aaa(0x50f)],'unitID':_0x937d35['unitID']}}))['body'][_0x443aaa(0x1eb)];}async[_0x2683e6(0x150)](_0x287b35){const _0x27b861=_0x2683e6,_0x3715e8=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x27b861(0x33c)][_0x27b861(0x44b)](_0x3715e8,{'body':_0x287b35});}},exports[_0x2683e6(0x14f)]=sr([Wt(0x0,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)])),Wt(0x1,a['Inject'](a[_0x2683e6(0x58f)]))],exports[_0x2683e6(0x14f)]);var yn={'exports':{}};function or(_0x578452){const _0x1710d9=_0x2683e6;throw new Error(_0x1710d9(0x5d3)+_0x578452+_0x1710d9(0x172));}var ct={'exports':{}},Ft;function oe(){const _0x231ea=_0x2683e6;return Ft||(Ft=0x1,function(_0x2cb48e,_0x3cf060){(function(_0xe54c10,_0x3a57db){const _0x25554a=_0x479a;_0x2cb48e[_0x25554a(0x436)]=_0x3a57db();}(X,function(){var _0x52c774=_0x52c774||function(_0x57b94a,_0x1da324){const _0x32be86=_0x479a;var _0xe9df64;if(typeof window<'u'&&window[_0x32be86(0x2f8)]&&(_0xe9df64=window[_0x32be86(0x2f8)]),typeof self<'u'&&self['crypto']&&(_0xe9df64=self[_0x32be86(0x2f8)]),typeof globalThis<'u'&&globalThis[_0x32be86(0x2f8)]&&(_0xe9df64=globalThis[_0x32be86(0x2f8)]),!_0xe9df64&&typeof window<'u'&&window[_0x32be86(0x559)]&&(_0xe9df64=window[_0x32be86(0x559)]),!_0xe9df64&&typeof X<'u'&&X[_0x32be86(0x2f8)]&&(_0xe9df64=X[_0x32be86(0x2f8)]),!_0xe9df64&&typeof or=='function')try{_0xe9df64=require('crypto');}catch{}var _0x494875=function(){const _0x3f0f75=_0x32be86;if(_0xe9df64){if(typeof _0xe9df64['getRandomValues']==_0x3f0f75(0x1c9))try{return _0xe9df64['getRandomValues'](new Uint32Array(0x1))[0x0];}catch{}if(typeof _0xe9df64[_0x3f0f75(0x58a)]==_0x3f0f75(0x1c9))try{return _0xe9df64[_0x3f0f75(0x58a)](0x4)[_0x3f0f75(0x5d0)]();}catch{}}throw new Error('Native\x20crypto\x20module\x20could\x20not\x20be\x20used\x20to\x20get\x20secure\x20random\x20number.');},_0x314c35=Object[_0x32be86(0x314)]||(function(){function _0x4928bd(){}return function(_0x4ec6ca){const _0x5ea5c6=_0x479a;var _0x3cfdfc;return _0x4928bd[_0x5ea5c6(0x2f3)]=_0x4ec6ca,_0x3cfdfc=new _0x4928bd(),_0x4928bd[_0x5ea5c6(0x2f3)]=null,_0x3cfdfc;};}()),_0x12f7d5={},_0x59dc96=_0x12f7d5['lib']={},_0x3b5bc9=_0x59dc96['Base']=(function(){return{'extend':function(_0x8b820a){const _0x37c7d4=_0x479a;var _0x5f2d83=_0x314c35(this);return _0x8b820a&&_0x5f2d83[_0x37c7d4(0x26c)](_0x8b820a),(!_0x5f2d83[_0x37c7d4(0x405)]('init')||this[_0x37c7d4(0x25b)]===_0x5f2d83[_0x37c7d4(0x25b)])&&(_0x5f2d83[_0x37c7d4(0x25b)]=function(){const _0x2f1f93=_0x37c7d4;_0x5f2d83['$super']['init'][_0x2f1f93(0x4c4)](this,arguments);}),_0x5f2d83[_0x37c7d4(0x25b)][_0x37c7d4(0x2f3)]=_0x5f2d83,_0x5f2d83['$super']=this,_0x5f2d83;},'create':function(){const _0x28df1f=_0x479a;var _0x52fb58=this[_0x28df1f(0x5c9)]();return _0x52fb58[_0x28df1f(0x25b)][_0x28df1f(0x4c4)](_0x52fb58,arguments),_0x52fb58;},'init':function(){},'mixIn':function(_0x54e93f){const _0x3058a9=_0x479a;for(var _0x1c8bc3 in _0x54e93f)_0x54e93f['hasOwnProperty'](_0x1c8bc3)&&(this[_0x1c8bc3]=_0x54e93f[_0x1c8bc3]);_0x54e93f[_0x3058a9(0x405)](_0x3058a9(0x155))&&(this[_0x3058a9(0x155)]=_0x54e93f[_0x3058a9(0x155)]);},'clone':function(){const _0x589313=_0x479a;return this['init'][_0x589313(0x2f3)]['extend'](this);}};}()),_0x2191f0=_0x59dc96[_0x32be86(0x53b)]=_0x3b5bc9[_0x32be86(0x5c9)]({'init':function(_0x533b96,_0x44b7f9){const _0x3e673b=_0x32be86;_0x533b96=this[_0x3e673b(0x5a7)]=_0x533b96||[],_0x44b7f9!=_0x1da324?this[_0x3e673b(0x164)]=_0x44b7f9:this['sigBytes']=_0x533b96[_0x3e673b(0x29a)]*0x4;},'toString':function(_0x668ce3){const _0x17c2c7=_0x32be86;return(_0x668ce3||_0x3b325b)[_0x17c2c7(0x40e)](this);},'concat':function(_0x4ac70d){const _0x132585=_0x32be86;var _0x216e0c=this[_0x132585(0x5a7)],_0x348449=_0x4ac70d[_0x132585(0x5a7)],_0x99ee56=this[_0x132585(0x164)],_0x2ccee6=_0x4ac70d['sigBytes'];if(this[_0x132585(0x4dc)](),_0x99ee56%0x4)for(var _0x19cc5e=0x0;_0x19cc5e<_0x2ccee6;_0x19cc5e++){var _0x2861f0=_0x348449[_0x19cc5e>>>0x2]>>>0x18-_0x19cc5e%0x4*0x8&0xff;_0x216e0c[_0x99ee56+_0x19cc5e>>>0x2]|=_0x2861f0<<0x18-(_0x99ee56+_0x19cc5e)%0x4*0x8;}else{for(var _0x17d1a3=0x0;_0x17d1a3<_0x2ccee6;_0x17d1a3+=0x4)_0x216e0c[_0x99ee56+_0x17d1a3>>>0x2]=_0x348449[_0x17d1a3>>>0x2];}return this[_0x132585(0x164)]+=_0x2ccee6,this;},'clamp':function(){const _0x15fcae=_0x32be86;var _0x18f8a4=this[_0x15fcae(0x5a7)],_0x5d5788=this[_0x15fcae(0x164)];_0x18f8a4[_0x5d5788>>>0x2]&=0xffffffff<<0x20-_0x5d5788%0x4*0x8,_0x18f8a4['length']=_0x57b94a['ceil'](_0x5d5788/0x4);},'clone':function(){const _0x4bbd2a=_0x32be86;var _0x4e370=_0x3b5bc9[_0x4bbd2a(0x179)][_0x4bbd2a(0x54a)](this);return _0x4e370[_0x4bbd2a(0x5a7)]=this[_0x4bbd2a(0x5a7)][_0x4bbd2a(0x237)](0x0),_0x4e370;},'random':function(_0x4f6815){const _0x48d34c=_0x32be86;for(var _0xc24d80=[],_0x1e4ce6=0x0;_0x1e4ce6<_0x4f6815;_0x1e4ce6+=0x4)_0xc24d80[_0x48d34c(0x17e)](_0x494875());return new _0x2191f0[(_0x48d34c(0x25b))](_0xc24d80,_0x4f6815);}}),_0x46c780=_0x12f7d5[_0x32be86(0x593)]={},_0x3b325b=_0x46c780[_0x32be86(0x151)]={'stringify':function(_0x469231){const _0x53206e=_0x32be86;for(var _0x17d309=_0x469231[_0x53206e(0x5a7)],_0x2ff19b=_0x469231[_0x53206e(0x164)],_0x2ebfc4=[],_0x22ac7d=0x0;_0x22ac7d<_0x2ff19b;_0x22ac7d++){var _0x43f8c4=_0x17d309[_0x22ac7d>>>0x2]>>>0x18-_0x22ac7d%0x4*0x8&0xff;_0x2ebfc4[_0x53206e(0x17e)]((_0x43f8c4>>>0x4)[_0x53206e(0x155)](0x10)),_0x2ebfc4[_0x53206e(0x17e)]((_0x43f8c4&0xf)['toString'](0x10));}return _0x2ebfc4['join']('');},'parse':function(_0x304b1d){const _0x35b226=_0x32be86;for(var _0x411717=_0x304b1d['length'],_0x502934=[],_0x5893ea=0x0;_0x5893ea<_0x411717;_0x5893ea+=0x2)_0x502934[_0x5893ea>>>0x3]|=parseInt(_0x304b1d[_0x35b226(0x2ed)](_0x5893ea,0x2),0x10)<<0x18-_0x5893ea%0x8*0x4;return new _0x2191f0[(_0x35b226(0x25b))](_0x502934,_0x411717/0x2);}},_0x5205b3=_0x46c780[_0x32be86(0x2a5)]={'stringify':function(_0x2b76d2){const _0x48bd61=_0x32be86;for(var _0xdab156=_0x2b76d2[_0x48bd61(0x5a7)],_0x32b332=_0x2b76d2['sigBytes'],_0xbc5882=[],_0x7873d6=0x0;_0x7873d6<_0x32b332;_0x7873d6++){var _0x578bc5=_0xdab156[_0x7873d6>>>0x2]>>>0x18-_0x7873d6%0x4*0x8&0xff;_0xbc5882[_0x48bd61(0x17e)](String['fromCharCode'](_0x578bc5));}return _0xbc5882[_0x48bd61(0x585)]('');},'parse':function(_0x1dd8df){const _0x58fa52=_0x32be86;for(var _0x1e23d4=_0x1dd8df[_0x58fa52(0x29a)],_0x16bc9e=[],_0x2cde09=0x0;_0x2cde09<_0x1e23d4;_0x2cde09++)_0x16bc9e[_0x2cde09>>>0x2]|=(_0x1dd8df[_0x58fa52(0x40a)](_0x2cde09)&0xff)<<0x18-_0x2cde09%0x4*0x8;return new _0x2191f0[(_0x58fa52(0x25b))](_0x16bc9e,_0x1e23d4);}},_0x5305d4=_0x46c780[_0x32be86(0x5ef)]={'stringify':function(_0x438b96){const _0x49d766=_0x32be86;try{return decodeURIComponent(escape(_0x5205b3[_0x49d766(0x40e)](_0x438b96)));}catch{throw new Error(_0x49d766(0x4a4));}},'parse':function(_0x5dd3d6){const _0x42caf0=_0x32be86;return _0x5205b3[_0x42caf0(0x18e)](unescape(encodeURIComponent(_0x5dd3d6)));}},_0x373dcf=_0x59dc96[_0x32be86(0x5b4)]=_0x3b5bc9[_0x32be86(0x5c9)]({'reset':function(){const _0x553328=_0x32be86;this[_0x553328(0x57c)]=new _0x2191f0[(_0x553328(0x25b))](),this[_0x553328(0x589)]=0x0;},'_append':function(_0x52781b){const _0x2b67f8=_0x32be86;typeof _0x52781b==_0x2b67f8(0x516)&&(_0x52781b=_0x5305d4[_0x2b67f8(0x18e)](_0x52781b)),this[_0x2b67f8(0x57c)][_0x2b67f8(0x33e)](_0x52781b),this[_0x2b67f8(0x589)]+=_0x52781b['sigBytes'];},'_process':function(_0x429265){const _0x3789bb=_0x32be86;var _0x1ff729,_0x350159=this[_0x3789bb(0x57c)],_0x35248a=_0x350159[_0x3789bb(0x5a7)],_0x1b650b=_0x350159[_0x3789bb(0x164)],_0x2f13b6=this['blockSize'],_0x2c1669=_0x2f13b6*0x4,_0x226f19=_0x1b650b/_0x2c1669;_0x429265?_0x226f19=_0x57b94a[_0x3789bb(0x3f0)](_0x226f19):_0x226f19=_0x57b94a[_0x3789bb(0x1a1)]((_0x226f19|0x0)-this['_minBufferSize'],0x0);var _0x31b8b2=_0x226f19*_0x2f13b6,_0x5740eb=_0x57b94a[_0x3789bb(0x211)](_0x31b8b2*0x4,_0x1b650b);if(_0x31b8b2){for(var _0x5f11ce=0x0;_0x5f11ce<_0x31b8b2;_0x5f11ce+=_0x2f13b6)this[_0x3789bb(0x40d)](_0x35248a,_0x5f11ce);_0x1ff729=_0x35248a[_0x3789bb(0x4cd)](0x0,_0x31b8b2),_0x350159[_0x3789bb(0x164)]-=_0x5740eb;}return new _0x2191f0[(_0x3789bb(0x25b))](_0x1ff729,_0x5740eb);},'clone':function(){const _0x6e3ff3=_0x32be86;var _0x568405=_0x3b5bc9['clone'][_0x6e3ff3(0x54a)](this);return _0x568405[_0x6e3ff3(0x57c)]=this[_0x6e3ff3(0x57c)][_0x6e3ff3(0x179)](),_0x568405;},'_minBufferSize':0x0});_0x59dc96[_0x32be86(0x28d)]=_0x373dcf[_0x32be86(0x5c9)]({'cfg':_0x3b5bc9[_0x32be86(0x5c9)](),'init':function(_0x493e74){const _0x24e891=_0x32be86;this[_0x24e891(0x3b8)]=this['cfg']['extend'](_0x493e74),this[_0x24e891(0x1fe)]();},'reset':function(){const _0x124f58=_0x32be86;_0x373dcf['reset'][_0x124f58(0x54a)](this),this[_0x124f58(0x34c)]();},'update':function(_0x9394c2){const _0x2bcfbe=_0x32be86;return this[_0x2bcfbe(0x1a0)](_0x9394c2),this[_0x2bcfbe(0x1dc)](),this;},'finalize':function(_0x395e59){const _0x83000e=_0x32be86;_0x395e59&&this[_0x83000e(0x1a0)](_0x395e59);var _0x176b7f=this['_doFinalize']();return _0x176b7f;},'blockSize':0x10,'_createHelper':function(_0x3449ac){return function(_0xdf4c74,_0x29289a){const _0x3bbe18=_0x479a;return new _0x3449ac['init'](_0x29289a)[_0x3bbe18(0x257)](_0xdf4c74);};},'_createHmacHelper':function(_0x466f0c){return function(_0x410d35,_0x16ccd4){const _0x1b374d=_0x479a;return new _0x248868[(_0x1b374d(0x472))][(_0x1b374d(0x25b))](_0x466f0c,_0x16ccd4)['finalize'](_0x410d35);};}});var _0x248868=_0x12f7d5[_0x32be86(0x526)]={};return _0x12f7d5;}(Math);return _0x52c774;}));}(ct)),ct[_0x231ea(0x436)];}var lt={'exports':{}},Vt;function On(){const _0x4a9ed6=_0x2683e6;return Vt||(Vt=0x1,function(_0x3b9331,_0x110686){(function(_0x57e7d5,_0x579a0c){_0x3b9331['exports']=_0x579a0c(oe());}(X,function(_0x29a185){const _0x324214=_0x479a;return(function(){const _0x2a2698=_0x479a;var _0x7e83ea=_0x29a185,_0xcad5ef=_0x7e83ea['lib'],_0x3ccf2f=_0xcad5ef[_0x2a2698(0x53b)],_0x4ffa3b=_0x7e83ea[_0x2a2698(0x593)];_0x4ffa3b['Base64']={'stringify':function(_0x387163){const _0x6dcc11=_0x2a2698;var _0x118498=_0x387163['words'],_0x263a39=_0x387163['sigBytes'],_0x1ea65b=this[_0x6dcc11(0x296)];_0x387163[_0x6dcc11(0x4dc)]();for(var _0xf328c7=[],_0x4e8d3a=0x0;_0x4e8d3a<_0x263a39;_0x4e8d3a+=0x3)for(var _0x28851b=_0x118498[_0x4e8d3a>>>0x2]>>>0x18-_0x4e8d3a%0x4*0x8&0xff,_0x3dcfbe=_0x118498[_0x4e8d3a+0x1>>>0x2]>>>0x18-(_0x4e8d3a+0x1)%0x4*0x8&0xff,_0x32acc0=_0x118498[_0x4e8d3a+0x2>>>0x2]>>>0x18-(_0x4e8d3a+0x2)%0x4*0x8&0xff,_0x36f0a3=_0x28851b<<0x10|_0x3dcfbe<<0x8|_0x32acc0,_0x342f64=0x0;_0x342f64<0x4&&_0x4e8d3a+_0x342f64*0.75<_0x263a39;_0x342f64++)_0xf328c7[_0x6dcc11(0x17e)](_0x1ea65b['charAt'](_0x36f0a3>>>0x6*(0x3-_0x342f64)&0x3f));var _0x52f220=_0x1ea65b[_0x6dcc11(0x4fe)](0x40);if(_0x52f220){for(;_0xf328c7[_0x6dcc11(0x29a)]%0x4;)_0xf328c7[_0x6dcc11(0x17e)](_0x52f220);}return _0xf328c7[_0x6dcc11(0x585)]('');},'parse':function(_0x20f14c){const _0x5c1e74=_0x2a2698;var _0x307305=_0x20f14c[_0x5c1e74(0x29a)],_0x10c5f5=this[_0x5c1e74(0x296)],_0x52c14d=this['_reverseMap'];if(!_0x52c14d){_0x52c14d=this[_0x5c1e74(0x180)]=[];for(var _0x94997c=0x0;_0x94997c<_0x10c5f5[_0x5c1e74(0x29a)];_0x94997c++)_0x52c14d[_0x10c5f5['charCodeAt'](_0x94997c)]=_0x94997c;}var _0x6e6574=_0x10c5f5[_0x5c1e74(0x4fe)](0x40);if(_0x6e6574){var _0x3676ba=_0x20f14c[_0x5c1e74(0x404)](_0x6e6574);_0x3676ba!==-0x1&&(_0x307305=_0x3676ba);}return _0x29db1f(_0x20f14c,_0x307305,_0x52c14d);},'_map':'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='};function _0x29db1f(_0x284d90,_0x46c86f,_0x526dbf){const _0x22c0af=_0x2a2698;for(var _0x2a833c=[],_0x36efd9=0x0,_0x1d9d76=0x0;_0x1d9d76<_0x46c86f;_0x1d9d76++)if(_0x1d9d76%0x4){var _0x1f99e6=_0x526dbf[_0x284d90[_0x22c0af(0x40a)](_0x1d9d76-0x1)]<<_0x1d9d76%0x4*0x2,_0x295bc8=_0x526dbf[_0x284d90['charCodeAt'](_0x1d9d76)]>>>0x6-_0x1d9d76%0x4*0x2,_0x1ad03b=_0x1f99e6|_0x295bc8;_0x2a833c[_0x36efd9>>>0x2]|=_0x1ad03b<<0x18-_0x36efd9%0x4*0x8,_0x36efd9++;}return _0x3ccf2f[_0x22c0af(0x314)](_0x2a833c,_0x36efd9);}}()),_0x29a185[_0x324214(0x593)][_0x324214(0x2e3)];}));}(lt)),lt[_0x4a9ed6(0x436)];}var ht={'exports':{}},Gt;function ar(){return Gt||(Gt=0x1,function(_0x4900a0,_0x1808bc){(function(_0x1f3ad0,_0x2a21e8){_0x4900a0['exports']=_0x2a21e8(oe());}(X,function(_0x6d252a){const _0x21fbb5=_0x479a;return function(_0x4627f4){const _0x42afb6=_0x479a;var _0x55e959=_0x6d252a,_0x45999f=_0x55e959[_0x42afb6(0x5db)],_0xedc35=_0x45999f[_0x42afb6(0x53b)],_0x550fca=_0x45999f[_0x42afb6(0x28d)],_0x333beb=_0x55e959['algo'],_0x56e37c=[];(function(){const _0x277a73=_0x42afb6;for(var _0x1738c5=0x0;_0x1738c5<0x40;_0x1738c5++)_0x56e37c[_0x1738c5]=_0x4627f4[_0x277a73(0x394)](_0x4627f4['sin'](_0x1738c5+0x1))*0x100000000|0x0;}());var _0x4cfe91=_0x333beb[_0x42afb6(0x1a2)]=_0x550fca[_0x42afb6(0x5c9)]({'_doReset':function(){const _0x4302a6=_0x42afb6;this[_0x4302a6(0x2a0)]=new _0xedc35[(_0x4302a6(0x25b))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476]);},'_doProcessBlock':function(_0x11d9c8,_0x2b12df){const _0xaa7565=_0x42afb6;for(var _0x38709a=0x0;_0x38709a<0x10;_0x38709a++){var _0x2281ad=_0x2b12df+_0x38709a,_0x23ab02=_0x11d9c8[_0x2281ad];_0x11d9c8[_0x2281ad]=(_0x23ab02<<0x8|_0x23ab02>>>0x18)&0xff00ff|(_0x23ab02<<0x18|_0x23ab02>>>0x8)&0xff00ff00;}var _0x14cbe9=this[_0xaa7565(0x2a0)]['words'],_0x38f7cf=_0x11d9c8[_0x2b12df+0x0],_0x39c779=_0x11d9c8[_0x2b12df+0x1],_0x2b258b=_0x11d9c8[_0x2b12df+0x2],_0x306568=_0x11d9c8[_0x2b12df+0x3],_0x37ead5=_0x11d9c8[_0x2b12df+0x4],_0x29d98d=_0x11d9c8[_0x2b12df+0x5],_0x23d857=_0x11d9c8[_0x2b12df+0x6],_0xe574f5=_0x11d9c8[_0x2b12df+0x7],_0x176fb7=_0x11d9c8[_0x2b12df+0x8],_0xa80a18=_0x11d9c8[_0x2b12df+0x9],_0x5c8c03=_0x11d9c8[_0x2b12df+0xa],_0x7875d=_0x11d9c8[_0x2b12df+0xb],_0x275278=_0x11d9c8[_0x2b12df+0xc],_0x597472=_0x11d9c8[_0x2b12df+0xd],_0x427913=_0x11d9c8[_0x2b12df+0xe],_0x1dcdeb=_0x11d9c8[_0x2b12df+0xf],_0x5af455=_0x14cbe9[0x0],_0x5caca5=_0x14cbe9[0x1],_0x5b0daf=_0x14cbe9[0x2],_0x542893=_0x14cbe9[0x3];_0x5af455=_0x120380(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x38f7cf,0x7,_0x56e37c[0x0]),_0x542893=_0x120380(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x39c779,0xc,_0x56e37c[0x1]),_0x5b0daf=_0x120380(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x2b258b,0x11,_0x56e37c[0x2]),_0x5caca5=_0x120380(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x306568,0x16,_0x56e37c[0x3]),_0x5af455=_0x120380(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x37ead5,0x7,_0x56e37c[0x4]),_0x542893=_0x120380(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x29d98d,0xc,_0x56e37c[0x5]),_0x5b0daf=_0x120380(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x23d857,0x11,_0x56e37c[0x6]),_0x5caca5=_0x120380(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0xe574f5,0x16,_0x56e37c[0x7]),_0x5af455=_0x120380(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x176fb7,0x7,_0x56e37c[0x8]),_0x542893=_0x120380(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0xa80a18,0xc,_0x56e37c[0x9]),_0x5b0daf=_0x120380(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x5c8c03,0x11,_0x56e37c[0xa]),_0x5caca5=_0x120380(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x7875d,0x16,_0x56e37c[0xb]),_0x5af455=_0x120380(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x275278,0x7,_0x56e37c[0xc]),_0x542893=_0x120380(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x597472,0xc,_0x56e37c[0xd]),_0x5b0daf=_0x120380(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x427913,0x11,_0x56e37c[0xe]),_0x5caca5=_0x120380(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x1dcdeb,0x16,_0x56e37c[0xf]),_0x5af455=_0x2d5f25(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x39c779,0x5,_0x56e37c[0x10]),_0x542893=_0x2d5f25(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x23d857,0x9,_0x56e37c[0x11]),_0x5b0daf=_0x2d5f25(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x7875d,0xe,_0x56e37c[0x12]),_0x5caca5=_0x2d5f25(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x38f7cf,0x14,_0x56e37c[0x13]),_0x5af455=_0x2d5f25(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x29d98d,0x5,_0x56e37c[0x14]),_0x542893=_0x2d5f25(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x5c8c03,0x9,_0x56e37c[0x15]),_0x5b0daf=_0x2d5f25(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x1dcdeb,0xe,_0x56e37c[0x16]),_0x5caca5=_0x2d5f25(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x37ead5,0x14,_0x56e37c[0x17]),_0x5af455=_0x2d5f25(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0xa80a18,0x5,_0x56e37c[0x18]),_0x542893=_0x2d5f25(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x427913,0x9,_0x56e37c[0x19]),_0x5b0daf=_0x2d5f25(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x306568,0xe,_0x56e37c[0x1a]),_0x5caca5=_0x2d5f25(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x176fb7,0x14,_0x56e37c[0x1b]),_0x5af455=_0x2d5f25(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x597472,0x5,_0x56e37c[0x1c]),_0x542893=_0x2d5f25(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x2b258b,0x9,_0x56e37c[0x1d]),_0x5b0daf=_0x2d5f25(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0xe574f5,0xe,_0x56e37c[0x1e]),_0x5caca5=_0x2d5f25(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x275278,0x14,_0x56e37c[0x1f]),_0x5af455=_0x2e3175(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x29d98d,0x4,_0x56e37c[0x20]),_0x542893=_0x2e3175(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x176fb7,0xb,_0x56e37c[0x21]),_0x5b0daf=_0x2e3175(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x7875d,0x10,_0x56e37c[0x22]),_0x5caca5=_0x2e3175(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x427913,0x17,_0x56e37c[0x23]),_0x5af455=_0x2e3175(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x39c779,0x4,_0x56e37c[0x24]),_0x542893=_0x2e3175(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x37ead5,0xb,_0x56e37c[0x25]),_0x5b0daf=_0x2e3175(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0xe574f5,0x10,_0x56e37c[0x26]),_0x5caca5=_0x2e3175(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x5c8c03,0x17,_0x56e37c[0x27]),_0x5af455=_0x2e3175(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x597472,0x4,_0x56e37c[0x28]),_0x542893=_0x2e3175(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x38f7cf,0xb,_0x56e37c[0x29]),_0x5b0daf=_0x2e3175(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x306568,0x10,_0x56e37c[0x2a]),_0x5caca5=_0x2e3175(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x23d857,0x17,_0x56e37c[0x2b]),_0x5af455=_0x2e3175(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0xa80a18,0x4,_0x56e37c[0x2c]),_0x542893=_0x2e3175(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x275278,0xb,_0x56e37c[0x2d]),_0x5b0daf=_0x2e3175(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x1dcdeb,0x10,_0x56e37c[0x2e]),_0x5caca5=_0x2e3175(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x2b258b,0x17,_0x56e37c[0x2f]),_0x5af455=_0x168f4d(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x38f7cf,0x6,_0x56e37c[0x30]),_0x542893=_0x168f4d(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0xe574f5,0xa,_0x56e37c[0x31]),_0x5b0daf=_0x168f4d(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x427913,0xf,_0x56e37c[0x32]),_0x5caca5=_0x168f4d(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x29d98d,0x15,_0x56e37c[0x33]),_0x5af455=_0x168f4d(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x275278,0x6,_0x56e37c[0x34]),_0x542893=_0x168f4d(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x306568,0xa,_0x56e37c[0x35]),_0x5b0daf=_0x168f4d(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x5c8c03,0xf,_0x56e37c[0x36]),_0x5caca5=_0x168f4d(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x39c779,0x15,_0x56e37c[0x37]),_0x5af455=_0x168f4d(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x176fb7,0x6,_0x56e37c[0x38]),_0x542893=_0x168f4d(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x1dcdeb,0xa,_0x56e37c[0x39]),_0x5b0daf=_0x168f4d(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x23d857,0xf,_0x56e37c[0x3a]),_0x5caca5=_0x168f4d(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0x597472,0x15,_0x56e37c[0x3b]),_0x5af455=_0x168f4d(_0x5af455,_0x5caca5,_0x5b0daf,_0x542893,_0x37ead5,0x6,_0x56e37c[0x3c]),_0x542893=_0x168f4d(_0x542893,_0x5af455,_0x5caca5,_0x5b0daf,_0x7875d,0xa,_0x56e37c[0x3d]),_0x5b0daf=_0x168f4d(_0x5b0daf,_0x542893,_0x5af455,_0x5caca5,_0x2b258b,0xf,_0x56e37c[0x3e]),_0x5caca5=_0x168f4d(_0x5caca5,_0x5b0daf,_0x542893,_0x5af455,_0xa80a18,0x15,_0x56e37c[0x3f]),_0x14cbe9[0x0]=_0x14cbe9[0x0]+_0x5af455|0x0,_0x14cbe9[0x1]=_0x14cbe9[0x1]+_0x5caca5|0x0,_0x14cbe9[0x2]=_0x14cbe9[0x2]+_0x5b0daf|0x0,_0x14cbe9[0x3]=_0x14cbe9[0x3]+_0x542893|0x0;},'_doFinalize':function(){const _0x3cc375=_0x42afb6;var _0x10d44a=this['_data'],_0x1e52e9=_0x10d44a[_0x3cc375(0x5a7)],_0x48e050=this[_0x3cc375(0x589)]*0x8,_0x3541f7=_0x10d44a[_0x3cc375(0x164)]*0x8;_0x1e52e9[_0x3541f7>>>0x5]|=0x80<<0x18-_0x3541f7%0x20;var _0x468c6b=_0x4627f4[_0x3cc375(0x2f0)](_0x48e050/0x100000000),_0x19605b=_0x48e050;_0x1e52e9[(_0x3541f7+0x40>>>0x9<<0x4)+0xf]=(_0x468c6b<<0x8|_0x468c6b>>>0x18)&0xff00ff|(_0x468c6b<<0x18|_0x468c6b>>>0x8)&0xff00ff00,_0x1e52e9[(_0x3541f7+0x40>>>0x9<<0x4)+0xe]=(_0x19605b<<0x8|_0x19605b>>>0x18)&0xff00ff|(_0x19605b<<0x18|_0x19605b>>>0x8)&0xff00ff00,_0x10d44a[_0x3cc375(0x164)]=(_0x1e52e9[_0x3cc375(0x29a)]+0x1)*0x4,this[_0x3cc375(0x1dc)]();for(var _0x1e9ae6=this[_0x3cc375(0x2a0)],_0x580e46=_0x1e9ae6[_0x3cc375(0x5a7)],_0x4903c5=0x0;_0x4903c5<0x4;_0x4903c5++){var _0x3319ca=_0x580e46[_0x4903c5];_0x580e46[_0x4903c5]=(_0x3319ca<<0x8|_0x3319ca>>>0x18)&0xff00ff|(_0x3319ca<<0x18|_0x3319ca>>>0x8)&0xff00ff00;}return _0x1e9ae6;},'clone':function(){const _0x18c931=_0x42afb6;var _0x2fa5f0=_0x550fca['clone']['call'](this);return _0x2fa5f0['_hash']=this[_0x18c931(0x2a0)]['clone'](),_0x2fa5f0;}});function _0x120380(_0x2bdf61,_0x544443,_0x4f92d7,_0x3ecc03,_0x7d5d42,_0x3a402d,_0x1ae915){var _0x1db3d7=_0x2bdf61+(_0x544443&_0x4f92d7|~_0x544443&_0x3ecc03)+_0x7d5d42+_0x1ae915;return(_0x1db3d7<<_0x3a402d|_0x1db3d7>>>0x20-_0x3a402d)+_0x544443;}function _0x2d5f25(_0x5cc645,_0x546e12,_0x538695,_0x573dcc,_0x5698a1,_0x43d668,_0x174cc4){var _0x448806=_0x5cc645+(_0x546e12&_0x573dcc|_0x538695&~_0x573dcc)+_0x5698a1+_0x174cc4;return(_0x448806<<_0x43d668|_0x448806>>>0x20-_0x43d668)+_0x546e12;}function _0x2e3175(_0x12075e,_0x4a468d,_0x25b7be,_0x4dea4a,_0x169ead,_0x14f6cd,_0x5e82bc){var _0x554348=_0x12075e+(_0x4a468d^_0x25b7be^_0x4dea4a)+_0x169ead+_0x5e82bc;return(_0x554348<<_0x14f6cd|_0x554348>>>0x20-_0x14f6cd)+_0x4a468d;}function _0x168f4d(_0x2aac1f,_0x9e0a97,_0x1ef268,_0x576f53,_0x159c62,_0x3b7230,_0x19d1c3){var _0x1f2fb5=_0x2aac1f+(_0x1ef268^(_0x9e0a97|~_0x576f53))+_0x159c62+_0x19d1c3;return(_0x1f2fb5<<_0x3b7230|_0x1f2fb5>>>0x20-_0x3b7230)+_0x9e0a97;}_0x55e959[_0x42afb6(0x1a2)]=_0x550fca[_0x42afb6(0x56d)](_0x4cfe91),_0x55e959[_0x42afb6(0x4e2)]=_0x550fca['_createHmacHelper'](_0x4cfe91);}(Math),_0x6d252a[_0x21fbb5(0x1a2)];}));}(ht)),ht['exports'];}var _t={'exports':{}},ut={'exports':{}},Yt;function cr(){const _0x4ecf57=_0x2683e6;return Yt||(Yt=0x1,function(_0x7f9c8b,_0x431361){(function(_0x40a781,_0xdd202a){const _0x26a25a=_0x479a;_0x7f9c8b[_0x26a25a(0x436)]=_0xdd202a(oe());}(X,function(_0x2f8d7d){const _0x329d77=_0x479a;return(function(){const _0xf5cd16=_0x479a;var _0x3ca42f=_0x2f8d7d,_0xa06027=_0x3ca42f[_0xf5cd16(0x5db)],_0x399bb9=_0xa06027['WordArray'],_0x390400=_0xa06027[_0xf5cd16(0x28d)],_0x5d1d33=_0x3ca42f[_0xf5cd16(0x526)],_0x10bee6=[],_0x547db7=_0x5d1d33[_0xf5cd16(0x1a8)]=_0x390400['extend']({'_doReset':function(){const _0x5c9546=_0xf5cd16;this[_0x5c9546(0x2a0)]=new _0x399bb9[(_0x5c9546(0x25b))]([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]);},'_doProcessBlock':function(_0x231fd9,_0x2b23fa){for(var _0x43e2d4=this['_hash']['words'],_0x2295d2=_0x43e2d4[0x0],_0x2c91f1=_0x43e2d4[0x1],_0x5492e9=_0x43e2d4[0x2],_0x13e020=_0x43e2d4[0x3],_0x58132c=_0x43e2d4[0x4],_0x12bdb4=0x0;_0x12bdb4<0x50;_0x12bdb4++){if(_0x12bdb4<0x10)_0x10bee6[_0x12bdb4]=_0x231fd9[_0x2b23fa+_0x12bdb4]|0x0;else{var _0x3e1570=_0x10bee6[_0x12bdb4-0x3]^_0x10bee6[_0x12bdb4-0x8]^_0x10bee6[_0x12bdb4-0xe]^_0x10bee6[_0x12bdb4-0x10];_0x10bee6[_0x12bdb4]=_0x3e1570<<0x1|_0x3e1570>>>0x1f;}var _0x4a8a5e=(_0x2295d2<<0x5|_0x2295d2>>>0x1b)+_0x58132c+_0x10bee6[_0x12bdb4];_0x12bdb4<0x14?_0x4a8a5e+=(_0x2c91f1&_0x5492e9|~_0x2c91f1&_0x13e020)+0x5a827999:_0x12bdb4<0x28?_0x4a8a5e+=(_0x2c91f1^_0x5492e9^_0x13e020)+0x6ed9eba1:_0x12bdb4<0x3c?_0x4a8a5e+=(_0x2c91f1&_0x5492e9|_0x2c91f1&_0x13e020|_0x5492e9&_0x13e020)-0x70e44324:_0x4a8a5e+=(_0x2c91f1^_0x5492e9^_0x13e020)-0x359d3e2a,_0x58132c=_0x13e020,_0x13e020=_0x5492e9,_0x5492e9=_0x2c91f1<<0x1e|_0x2c91f1>>>0x2,_0x2c91f1=_0x2295d2,_0x2295d2=_0x4a8a5e;}_0x43e2d4[0x0]=_0x43e2d4[0x0]+_0x2295d2|0x0,_0x43e2d4[0x1]=_0x43e2d4[0x1]+_0x2c91f1|0x0,_0x43e2d4[0x2]=_0x43e2d4[0x2]+_0x5492e9|0x0,_0x43e2d4[0x3]=_0x43e2d4[0x3]+_0x13e020|0x0,_0x43e2d4[0x4]=_0x43e2d4[0x4]+_0x58132c|0x0;},'_doFinalize':function(){const _0x84c3fa=_0xf5cd16;var _0x2e0f35=this[_0x84c3fa(0x57c)],_0x13efd0=_0x2e0f35[_0x84c3fa(0x5a7)],_0x3f9d40=this[_0x84c3fa(0x589)]*0x8,_0x40d139=_0x2e0f35['sigBytes']*0x8;return _0x13efd0[_0x40d139>>>0x5]|=0x80<<0x18-_0x40d139%0x20,_0x13efd0[(_0x40d139+0x40>>>0x9<<0x4)+0xe]=Math[_0x84c3fa(0x2f0)](_0x3f9d40/0x100000000),_0x13efd0[(_0x40d139+0x40>>>0x9<<0x4)+0xf]=_0x3f9d40,_0x2e0f35[_0x84c3fa(0x164)]=_0x13efd0[_0x84c3fa(0x29a)]*0x4,this[_0x84c3fa(0x1dc)](),this[_0x84c3fa(0x2a0)];},'clone':function(){const _0x3e5053=_0xf5cd16;var _0x341d74=_0x390400[_0x3e5053(0x179)][_0x3e5053(0x54a)](this);return _0x341d74[_0x3e5053(0x2a0)]=this[_0x3e5053(0x2a0)]['clone'](),_0x341d74;}});_0x3ca42f[_0xf5cd16(0x1a8)]=_0x390400[_0xf5cd16(0x56d)](_0x547db7),_0x3ca42f['HmacSHA1']=_0x390400[_0xf5cd16(0x313)](_0x547db7);}()),_0x2f8d7d[_0x329d77(0x1a8)];}));}(ut)),ut[_0x4ecf57(0x436)];}var dt={'exports':{}},Kt;function lr(){const _0x489c66=_0x2683e6;return Kt||(Kt=0x1,function(_0x267b33,_0x1ff3c8){(function(_0x5961e8,_0x480fcf){_0x267b33['exports']=_0x480fcf(oe());}(X,function(_0x5826ba){(function(){const _0x296ef9=_0x479a;var _0x32f72b=_0x5826ba,_0x160b51=_0x32f72b[_0x296ef9(0x5db)],_0x380bf5=_0x160b51[_0x296ef9(0x37b)],_0x22bec9=_0x32f72b[_0x296ef9(0x593)],_0x397683=_0x22bec9[_0x296ef9(0x5ef)],_0xa72f2b=_0x32f72b[_0x296ef9(0x526)];_0xa72f2b['HMAC']=_0x380bf5[_0x296ef9(0x5c9)]({'init':function(_0x1a2ff0,_0x326f55){const _0x53fe2e=_0x296ef9;_0x1a2ff0=this[_0x53fe2e(0x401)]=new _0x1a2ff0['init'](),typeof _0x326f55==_0x53fe2e(0x516)&&(_0x326f55=_0x397683[_0x53fe2e(0x18e)](_0x326f55));var _0x451131=_0x1a2ff0[_0x53fe2e(0x32e)],_0x51d33c=_0x451131*0x4;_0x326f55[_0x53fe2e(0x164)]>_0x51d33c&&(_0x326f55=_0x1a2ff0['finalize'](_0x326f55)),_0x326f55[_0x53fe2e(0x4dc)]();for(var _0x240ef1=this[_0x53fe2e(0x2d1)]=_0x326f55['clone'](),_0x51bb0c=this['_iKey']=_0x326f55['clone'](),_0x3cacaa=_0x240ef1[_0x53fe2e(0x5a7)],_0x3d4562=_0x51bb0c[_0x53fe2e(0x5a7)],_0x3ad60b=0x0;_0x3ad60b<_0x451131;_0x3ad60b++)_0x3cacaa[_0x3ad60b]^=0x5c5c5c5c,_0x3d4562[_0x3ad60b]^=0x36363636;_0x240ef1[_0x53fe2e(0x164)]=_0x51bb0c['sigBytes']=_0x51d33c,this[_0x53fe2e(0x1fe)]();},'reset':function(){const _0xb2504=_0x296ef9;var _0x2d9fb3=this[_0xb2504(0x401)];_0x2d9fb3['reset'](),_0x2d9fb3[_0xb2504(0x348)](this['_iKey']);},'update':function(_0x14a932){const _0x508263=_0x296ef9;return this[_0x508263(0x401)]['update'](_0x14a932),this;},'finalize':function(_0x911ed0){const _0x2c5532=_0x296ef9;var _0x50b1dc=this['_hasher'],_0x55ca02=_0x50b1dc[_0x2c5532(0x257)](_0x911ed0);_0x50b1dc[_0x2c5532(0x1fe)]();var _0x5c2aca=_0x50b1dc[_0x2c5532(0x257)](this[_0x2c5532(0x2d1)][_0x2c5532(0x179)]()[_0x2c5532(0x33e)](_0x55ca02));return _0x5c2aca;}});}());}));}(dt)),dt[_0x489c66(0x436)];}var qt;function Dn(){const _0xe0307e=_0x2683e6;return qt||(qt=0x1,function(_0x2e8424,_0x2b2bee){(function(_0x24c992,_0x15a194,_0x23f1d4){const _0x481793=_0x479a;_0x2e8424[_0x481793(0x436)]=_0x15a194(oe(),cr(),lr());}(X,function(_0x5bac9d){const _0x996a6f=_0x479a;return(function(){const _0x4a5ae9=_0x479a;var _0x4110e9=_0x5bac9d,_0x1f41c9=_0x4110e9[_0x4a5ae9(0x5db)],_0x5d3bc2=_0x1f41c9[_0x4a5ae9(0x37b)],_0x2ff3f6=_0x1f41c9[_0x4a5ae9(0x53b)],_0x141192=_0x4110e9['algo'],_0x3f7d12=_0x141192['MD5'],_0x28b5aa=_0x141192[_0x4a5ae9(0x220)]=_0x5d3bc2['extend']({'cfg':_0x5d3bc2[_0x4a5ae9(0x5c9)]({'keySize':0x80/0x20,'hasher':_0x3f7d12,'iterations':0x1}),'init':function(_0x5b8d14){const _0x14517f=_0x4a5ae9;this[_0x14517f(0x3b8)]=this['cfg'][_0x14517f(0x5c9)](_0x5b8d14);},'compute':function(_0x3cfeaa,_0x3fb05c){const _0x39ec12=_0x4a5ae9;for(var _0x33f4b7,_0x296827=this[_0x39ec12(0x3b8)],_0x342a8d=_0x296827[_0x39ec12(0x367)][_0x39ec12(0x314)](),_0x27e04e=_0x2ff3f6[_0x39ec12(0x314)](),_0x2ed808=_0x27e04e['words'],_0x32b78=_0x296827[_0x39ec12(0x58b)],_0x54f986=_0x296827[_0x39ec12(0x486)];_0x2ed808[_0x39ec12(0x29a)]<_0x32b78;){_0x33f4b7&&_0x342a8d['update'](_0x33f4b7),_0x33f4b7=_0x342a8d['update'](_0x3cfeaa)[_0x39ec12(0x257)](_0x3fb05c),_0x342a8d[_0x39ec12(0x1fe)]();for(var _0x1df788=0x1;_0x1df788<_0x54f986;_0x1df788++)_0x33f4b7=_0x342a8d[_0x39ec12(0x257)](_0x33f4b7),_0x342a8d[_0x39ec12(0x1fe)]();_0x27e04e['concat'](_0x33f4b7);}return _0x27e04e['sigBytes']=_0x32b78*0x4,_0x27e04e;}});_0x4110e9[_0x4a5ae9(0x220)]=function(_0x2f2c45,_0x477761,_0x30b859){const _0x192d5d=_0x4a5ae9;return _0x28b5aa[_0x192d5d(0x314)](_0x30b859)[_0x192d5d(0x42c)](_0x2f2c45,_0x477761);};}()),_0x5bac9d[_0x996a6f(0x220)];}));}(_t)),_t[_0xe0307e(0x436)];}var ft={'exports':{}},zt;function wn(){return zt||(zt=0x1,function(_0x47cbd8,_0x44a1b8){(function(_0x1f276d,_0x41af16,_0x4be521){_0x47cbd8['exports']=_0x41af16(oe(),Dn());}(X,function(_0x5476da){const _0x5c87de=_0x479a;_0x5476da[_0x5c87de(0x5db)][_0x5c87de(0x554)]||function(_0x37d0ed){const _0x1dc471=_0x5c87de;var _0x4d811e=_0x5476da,_0x292cab=_0x4d811e['lib'],_0x8d0367=_0x292cab[_0x1dc471(0x37b)],_0x54c240=_0x292cab['WordArray'],_0x16f753=_0x292cab[_0x1dc471(0x5b4)],_0x1e6203=_0x4d811e[_0x1dc471(0x593)];_0x1e6203['Utf8'];var _0x1fdfd6=_0x1e6203['Base64'],_0xe02e2f=_0x4d811e['algo'],_0x29767f=_0xe02e2f['EvpKDF'],_0x56cb05=_0x292cab[_0x1dc471(0x554)]=_0x16f753['extend']({'cfg':_0x8d0367[_0x1dc471(0x5c9)](),'createEncryptor':function(_0x1e6b0c,_0x6b002b){const _0x4e7e88=_0x1dc471;return this[_0x4e7e88(0x314)](this[_0x4e7e88(0x1c0)],_0x1e6b0c,_0x6b002b);},'createDecryptor':function(_0xff8fda,_0x3a5871){const _0x21cbd5=_0x1dc471;return this[_0x21cbd5(0x314)](this[_0x21cbd5(0x3a8)],_0xff8fda,_0x3a5871);},'init':function(_0x43e050,_0x567aa4,_0x50b6cb){const _0x19a6ff=_0x1dc471;this[_0x19a6ff(0x3b8)]=this[_0x19a6ff(0x3b8)]['extend'](_0x50b6cb),this[_0x19a6ff(0x502)]=_0x43e050,this[_0x19a6ff(0x570)]=_0x567aa4,this[_0x19a6ff(0x1fe)]();},'reset':function(){const _0x1af73a=_0x1dc471;_0x16f753['reset'][_0x1af73a(0x54a)](this),this[_0x1af73a(0x34c)]();},'process':function(_0x166e84){const _0x35172e=_0x1dc471;return this[_0x35172e(0x1a0)](_0x166e84),this[_0x35172e(0x1dc)]();},'finalize':function(_0x84184d){const _0x3fca7d=_0x1dc471;_0x84184d&&this[_0x3fca7d(0x1a0)](_0x84184d);var _0x313ecd=this['_doFinalize']();return _0x313ecd;},'keySize':0x80/0x20,'ivSize':0x80/0x20,'_ENC_XFORM_MODE':0x1,'_DEC_XFORM_MODE':0x2,'_createHelper':(function(){function _0x534631(_0x213ec8){const _0x444728=_0x479a;return typeof _0x213ec8==_0x444728(0x516)?_0x397fb7:_0x39e424;}return function(_0x43acca){return{'encrypt':function(_0x62a8c6,_0x30064f,_0x27aa9f){const _0x3747bb=_0x479a;return _0x534631(_0x30064f)[_0x3747bb(0x3cb)](_0x43acca,_0x62a8c6,_0x30064f,_0x27aa9f);},'decrypt':function(_0xaec988,_0x2882bc,_0x70d7ae){return _0x534631(_0x2882bc)['decrypt'](_0x43acca,_0xaec988,_0x2882bc,_0x70d7ae);}};};}())});_0x292cab[_0x1dc471(0x1f6)]=_0x56cb05[_0x1dc471(0x5c9)]({'_doFinalize':function(){const _0x20fac3=_0x1dc471;var _0x27615b=this[_0x20fac3(0x1dc)](!0x0);return _0x27615b;},'blockSize':0x1});var _0x19b434=_0x4d811e[_0x1dc471(0x33d)]={},_0x3f961b=_0x292cab[_0x1dc471(0x41a)]=_0x8d0367[_0x1dc471(0x5c9)]({'createEncryptor':function(_0x40cac6,_0x5d7fb1){const _0xb617e1=_0x1dc471;return this[_0xb617e1(0x345)][_0xb617e1(0x314)](_0x40cac6,_0x5d7fb1);},'createDecryptor':function(_0x39ffca,_0x5266c4){const _0x20d838=_0x1dc471;return this[_0x20d838(0x59d)]['create'](_0x39ffca,_0x5266c4);},'init':function(_0x23c915,_0x3828df){const _0x5d20f1=_0x1dc471;this[_0x5d20f1(0x324)]=_0x23c915,this['_iv']=_0x3828df;}}),_0x4e93d3=_0x19b434['CBC']=(function(){const _0x42809b=_0x1dc471;var _0x5ad3e0=_0x3f961b['extend']();_0x5ad3e0['Encryptor']=_0x5ad3e0[_0x42809b(0x5c9)]({'processBlock':function(_0x5e7ee4,_0x586ae1){const _0x51434a=_0x42809b;var _0x1ca7bd=this[_0x51434a(0x324)],_0x19ee3b=_0x1ca7bd[_0x51434a(0x32e)];_0x1ea559[_0x51434a(0x54a)](this,_0x5e7ee4,_0x586ae1,_0x19ee3b),_0x1ca7bd[_0x51434a(0x416)](_0x5e7ee4,_0x586ae1),this['_prevBlock']=_0x5e7ee4[_0x51434a(0x237)](_0x586ae1,_0x586ae1+_0x19ee3b);}}),_0x5ad3e0['Decryptor']=_0x5ad3e0[_0x42809b(0x5c9)]({'processBlock':function(_0x10d582,_0x406cac){const _0x350db9=_0x42809b;var _0x4c448b=this[_0x350db9(0x324)],_0x488060=_0x4c448b['blockSize'],_0x262d3f=_0x10d582[_0x350db9(0x237)](_0x406cac,_0x406cac+_0x488060);_0x4c448b[_0x350db9(0x1d0)](_0x10d582,_0x406cac),_0x1ea559[_0x350db9(0x54a)](this,_0x10d582,_0x406cac,_0x488060),this[_0x350db9(0x410)]=_0x262d3f;}});function _0x1ea559(_0xe60379,_0x365c10,_0x165482){const _0x431708=_0x42809b;var _0x477471,_0xce98ee=this[_0x431708(0x42b)];_0xce98ee?(_0x477471=_0xce98ee,this['_iv']=_0x37d0ed):_0x477471=this['_prevBlock'];for(var _0xe11190=0x0;_0xe11190<_0x165482;_0xe11190++)_0xe60379[_0x365c10+_0xe11190]^=_0x477471[_0xe11190];}return _0x5ad3e0;}()),_0x29a80b=_0x4d811e[_0x1dc471(0x417)]={},_0x884339=_0x29a80b['Pkcs7']={'pad':function(_0x5e7245,_0x565400){const _0x3bb2cf=_0x1dc471;for(var _0x28c36f=_0x565400*0x4,_0xde55ef=_0x28c36f-_0x5e7245[_0x3bb2cf(0x164)]%_0x28c36f,_0x4a77df=_0xde55ef<<0x18|_0xde55ef<<0x10|_0xde55ef<<0x8|_0xde55ef,_0xa465b=[],_0xaba9d3=0x0;_0xaba9d3<_0xde55ef;_0xaba9d3+=0x4)_0xa465b['push'](_0x4a77df);var _0x49b375=_0x54c240[_0x3bb2cf(0x314)](_0xa465b,_0xde55ef);_0x5e7245[_0x3bb2cf(0x33e)](_0x49b375);},'unpad':function(_0x4c517d){const _0x30ba8b=_0x1dc471;var _0x4de786=_0x4c517d[_0x30ba8b(0x5a7)][_0x4c517d[_0x30ba8b(0x164)]-0x1>>>0x2]&0xff;_0x4c517d[_0x30ba8b(0x164)]-=_0x4de786;}};_0x292cab['BlockCipher']=_0x56cb05[_0x1dc471(0x5c9)]({'cfg':_0x56cb05[_0x1dc471(0x3b8)][_0x1dc471(0x5c9)]({'mode':_0x4e93d3,'padding':_0x884339}),'reset':function(){const _0x27f0af=_0x1dc471;var _0x252fba;_0x56cb05[_0x27f0af(0x1fe)][_0x27f0af(0x54a)](this);var _0x3e9b06=this[_0x27f0af(0x3b8)],_0x16a874=_0x3e9b06['iv'],_0xb7ae41=_0x3e9b06['mode'];this[_0x27f0af(0x502)]==this[_0x27f0af(0x1c0)]?_0x252fba=_0xb7ae41[_0x27f0af(0x4c0)]:(_0x252fba=_0xb7ae41[_0x27f0af(0x2d8)],this[_0x27f0af(0x5cf)]=0x1),this[_0x27f0af(0x19b)]&&this['_mode'][_0x27f0af(0x301)]==_0x252fba?this[_0x27f0af(0x19b)][_0x27f0af(0x25b)](this,_0x16a874&&_0x16a874[_0x27f0af(0x5a7)]):(this[_0x27f0af(0x19b)]=_0x252fba[_0x27f0af(0x54a)](_0xb7ae41,this,_0x16a874&&_0x16a874[_0x27f0af(0x5a7)]),this[_0x27f0af(0x19b)][_0x27f0af(0x301)]=_0x252fba);},'_doProcessBlock':function(_0xc924c2,_0x161de7){const _0x17496d=_0x1dc471;this[_0x17496d(0x19b)][_0x17496d(0x40b)](_0xc924c2,_0x161de7);},'_doFinalize':function(){const _0x3ce73b=_0x1dc471;var _0x282736,_0x47d418=this[_0x3ce73b(0x3b8)][_0x3ce73b(0x27d)];return this[_0x3ce73b(0x502)]==this[_0x3ce73b(0x1c0)]?(_0x47d418[_0x3ce73b(0x417)](this[_0x3ce73b(0x57c)],this[_0x3ce73b(0x32e)]),_0x282736=this[_0x3ce73b(0x1dc)](!0x0)):(_0x282736=this['_process'](!0x0),_0x47d418['unpad'](_0x282736)),_0x282736;},'blockSize':0x80/0x20});var _0x1bf495=_0x292cab['CipherParams']=_0x8d0367[_0x1dc471(0x5c9)]({'init':function(_0x5744e6){this['mixIn'](_0x5744e6);},'toString':function(_0x5b3160){const _0x5edc54=_0x1dc471;return(_0x5b3160||this[_0x5edc54(0x4a6)])[_0x5edc54(0x40e)](this);}}),_0x5053ab=_0x4d811e['format']={},_0x5888e4=_0x5053ab[_0x1dc471(0x24f)]={'stringify':function(_0x22aa30){const _0x161e86=_0x1dc471;var _0x363886,_0x342551=_0x22aa30[_0x161e86(0x3ad)],_0x4321a8=_0x22aa30[_0x161e86(0x3b5)];return _0x4321a8?_0x363886=_0x54c240[_0x161e86(0x314)]([0x53616c74,0x65645f5f])[_0x161e86(0x33e)](_0x4321a8)[_0x161e86(0x33e)](_0x342551):_0x363886=_0x342551,_0x363886['toString'](_0x1fdfd6);},'parse':function(_0x3a9b87){const _0x1ed033=_0x1dc471;var _0x17250e,_0x2c384e=_0x1fdfd6[_0x1ed033(0x18e)](_0x3a9b87),_0x1ab14a=_0x2c384e[_0x1ed033(0x5a7)];return _0x1ab14a[0x0]==0x53616c74&&_0x1ab14a[0x1]==0x65645f5f&&(_0x17250e=_0x54c240[_0x1ed033(0x314)](_0x1ab14a['slice'](0x2,0x4)),_0x1ab14a[_0x1ed033(0x4cd)](0x0,0x4),_0x2c384e[_0x1ed033(0x164)]-=0x10),_0x1bf495['create']({'ciphertext':_0x2c384e,'salt':_0x17250e});}},_0x39e424=_0x292cab[_0x1dc471(0x58c)]=_0x8d0367[_0x1dc471(0x5c9)]({'cfg':_0x8d0367[_0x1dc471(0x5c9)]({'format':_0x5888e4}),'encrypt':function(_0xc1fd1b,_0x51bd5a,_0xb34428,_0x669a95){const _0xa77e8f=_0x1dc471;_0x669a95=this[_0xa77e8f(0x3b8)][_0xa77e8f(0x5c9)](_0x669a95);var _0x2bd58a=_0xc1fd1b['createEncryptor'](_0xb34428,_0x669a95),_0x3da00f=_0x2bd58a[_0xa77e8f(0x257)](_0x51bd5a),_0x5d615d=_0x2bd58a[_0xa77e8f(0x3b8)];return _0x1bf495[_0xa77e8f(0x314)]({'ciphertext':_0x3da00f,'key':_0xb34428,'iv':_0x5d615d['iv'],'algorithm':_0xc1fd1b,'mode':_0x5d615d[_0xa77e8f(0x33d)],'padding':_0x5d615d[_0xa77e8f(0x27d)],'blockSize':_0xc1fd1b[_0xa77e8f(0x32e)],'formatter':_0x669a95['format']});},'decrypt':function(_0x2c02e1,_0x5c8b7c,_0x3096b7,_0x1ee900){const _0x30b1da=_0x1dc471;_0x1ee900=this[_0x30b1da(0x3b8)]['extend'](_0x1ee900),_0x5c8b7c=this[_0x30b1da(0x3e2)](_0x5c8b7c,_0x1ee900[_0x30b1da(0x1f4)]);var _0x390333=_0x2c02e1[_0x30b1da(0x2d8)](_0x3096b7,_0x1ee900)['finalize'](_0x5c8b7c['ciphertext']);return _0x390333;},'_parse':function(_0x4faa1b,_0x4371f9){const _0x2c0936=_0x1dc471;return typeof _0x4faa1b==_0x2c0936(0x516)?_0x4371f9[_0x2c0936(0x18e)](_0x4faa1b,this):_0x4faa1b;}}),_0x363dd0=_0x4d811e[_0x1dc471(0x5df)]={},_0x1cfe95=_0x363dd0['OpenSSL']={'execute':function(_0x50ca1c,_0x3026f8,_0x70c199,_0x3ee59e,_0x11270a){const _0x5b46ee=_0x1dc471;if(_0x3ee59e||(_0x3ee59e=_0x54c240['random'](0x40/0x8)),_0x11270a)var _0x2495b5=_0x29767f[_0x5b46ee(0x314)]({'keySize':_0x3026f8+_0x70c199,'hasher':_0x11270a})[_0x5b46ee(0x42c)](_0x50ca1c,_0x3ee59e);else var _0x2495b5=_0x29767f[_0x5b46ee(0x314)]({'keySize':_0x3026f8+_0x70c199})[_0x5b46ee(0x42c)](_0x50ca1c,_0x3ee59e);var _0x4805e9=_0x54c240['create'](_0x2495b5[_0x5b46ee(0x5a7)][_0x5b46ee(0x237)](_0x3026f8),_0x70c199*0x4);return _0x2495b5[_0x5b46ee(0x164)]=_0x3026f8*0x4,_0x1bf495['create']({'key':_0x2495b5,'iv':_0x4805e9,'salt':_0x3ee59e});}},_0x397fb7=_0x292cab[_0x1dc471(0x275)]=_0x39e424[_0x1dc471(0x5c9)]({'cfg':_0x39e424[_0x1dc471(0x3b8)][_0x1dc471(0x5c9)]({'kdf':_0x1cfe95}),'encrypt':function(_0x51607e,_0x37e66a,_0x5841f5,_0x47429f){const _0x10ae46=_0x1dc471;_0x47429f=this[_0x10ae46(0x3b8)][_0x10ae46(0x5c9)](_0x47429f);var _0x44fbf7=_0x47429f[_0x10ae46(0x5df)][_0x10ae46(0x540)](_0x5841f5,_0x51607e[_0x10ae46(0x58b)],_0x51607e['ivSize'],_0x47429f[_0x10ae46(0x3b5)],_0x47429f[_0x10ae46(0x367)]);_0x47429f['iv']=_0x44fbf7['iv'];var _0x2061c2=_0x39e424['encrypt']['call'](this,_0x51607e,_0x37e66a,_0x44fbf7['key'],_0x47429f);return _0x2061c2[_0x10ae46(0x26c)](_0x44fbf7),_0x2061c2;},'decrypt':function(_0x1a33cb,_0x16f5ca,_0x172ad2,_0x44c420){const _0x198235=_0x1dc471;_0x44c420=this[_0x198235(0x3b8)][_0x198235(0x5c9)](_0x44c420),_0x16f5ca=this[_0x198235(0x3e2)](_0x16f5ca,_0x44c420[_0x198235(0x1f4)]);var _0x4ee20e=_0x44c420[_0x198235(0x5df)][_0x198235(0x540)](_0x172ad2,_0x1a33cb[_0x198235(0x58b)],_0x1a33cb[_0x198235(0x5f2)],_0x16f5ca['salt'],_0x44c420['hasher']);_0x44c420['iv']=_0x4ee20e['iv'];var _0x77423=_0x39e424[_0x198235(0x267)]['call'](this,_0x1a33cb,_0x16f5ca,_0x4ee20e[_0x198235(0x327)],_0x44c420);return _0x77423;}});}();}));}(ft)),ft['exports'];}(function(_0x547141,_0x5e4c2d){(function(_0x2c7846,_0x560bbc,_0xdd1b7d){const _0x59236a=_0x479a;_0x547141[_0x59236a(0x436)]=_0x560bbc(oe(),On(),ar(),Dn(),wn());}(X,function(_0x321714){const _0x3e2f10=_0x479a;return(function(){const _0x519a16=_0x479a;var _0x2690fb=_0x321714,_0x144e92=_0x2690fb[_0x519a16(0x5db)],_0x325941=_0x144e92['BlockCipher'],_0xf98e1b=_0x2690fb['algo'],_0x42430d=[],_0x1c81e1=[],_0x184c25=[],_0xa10ce6=[],_0x3921bf=[],_0x18ef03=[],_0x578165=[],_0x40175c=[],_0x179397=[],_0x51508f=[];(function(){for(var _0x4a5f1a=[],_0xb3f10=0x0;_0xb3f10<0x100;_0xb3f10++)_0xb3f10<0x80?_0x4a5f1a[_0xb3f10]=_0xb3f10<<0x1:_0x4a5f1a[_0xb3f10]=_0xb3f10<<0x1^0x11b;for(var _0x258083=0x0,_0x36a499=0x0,_0xb3f10=0x0;_0xb3f10<0x100;_0xb3f10++){var _0x4456ab=_0x36a499^_0x36a499<<0x1^_0x36a499<<0x2^_0x36a499<<0x3^_0x36a499<<0x4;_0x4456ab=_0x4456ab>>>0x8^_0x4456ab&0xff^0x63,_0x42430d[_0x258083]=_0x4456ab,_0x1c81e1[_0x4456ab]=_0x258083;var _0x1964b6=_0x4a5f1a[_0x258083],_0x3454a9=_0x4a5f1a[_0x1964b6],_0x45b9f2=_0x4a5f1a[_0x3454a9],_0x3c7cc1=_0x4a5f1a[_0x4456ab]*0x101^_0x4456ab*0x1010100;_0x184c25[_0x258083]=_0x3c7cc1<<0x18|_0x3c7cc1>>>0x8,_0xa10ce6[_0x258083]=_0x3c7cc1<<0x10|_0x3c7cc1>>>0x10,_0x3921bf[_0x258083]=_0x3c7cc1<<0x8|_0x3c7cc1>>>0x18,_0x18ef03[_0x258083]=_0x3c7cc1;var _0x3c7cc1=_0x45b9f2*0x1010101^_0x3454a9*0x10001^_0x1964b6*0x101^_0x258083*0x1010100;_0x578165[_0x4456ab]=_0x3c7cc1<<0x18|_0x3c7cc1>>>0x8,_0x40175c[_0x4456ab]=_0x3c7cc1<<0x10|_0x3c7cc1>>>0x10,_0x179397[_0x4456ab]=_0x3c7cc1<<0x8|_0x3c7cc1>>>0x18,_0x51508f[_0x4456ab]=_0x3c7cc1,_0x258083?(_0x258083=_0x1964b6^_0x4a5f1a[_0x4a5f1a[_0x4a5f1a[_0x45b9f2^_0x1964b6]]],_0x36a499^=_0x4a5f1a[_0x4a5f1a[_0x36a499]]):_0x258083=_0x36a499=0x1;}}());var _0x43f63c=[0x0,0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36],_0x25a5d1=_0xf98e1b[_0x519a16(0x432)]=_0x325941[_0x519a16(0x5c9)]({'_doReset':function(){const _0xff87f0=_0x519a16;var _0x11d829;if(!(this[_0xff87f0(0x232)]&&this['_keyPriorReset']===this['_key'])){for(var _0x15cd8a=this[_0xff87f0(0x340)]=this[_0xff87f0(0x570)],_0x2ce097=_0x15cd8a[_0xff87f0(0x5a7)],_0x16f821=_0x15cd8a['sigBytes']/0x4,_0x3b3161=this[_0xff87f0(0x232)]=_0x16f821+0x6,_0x4a99d9=(_0x3b3161+0x1)*0x4,_0x3030fc=this[_0xff87f0(0x4ec)]=[],_0x46c0b4=0x0;_0x46c0b4<_0x4a99d9;_0x46c0b4++)_0x46c0b4<_0x16f821?_0x3030fc[_0x46c0b4]=_0x2ce097[_0x46c0b4]:(_0x11d829=_0x3030fc[_0x46c0b4-0x1],_0x46c0b4%_0x16f821?_0x16f821>0x6&&_0x46c0b4%_0x16f821==0x4&&(_0x11d829=_0x42430d[_0x11d829>>>0x18]<<0x18|_0x42430d[_0x11d829>>>0x10&0xff]<<0x10|_0x42430d[_0x11d829>>>0x8&0xff]<<0x8|_0x42430d[_0x11d829&0xff]):(_0x11d829=_0x11d829<<0x8|_0x11d829>>>0x18,_0x11d829=_0x42430d[_0x11d829>>>0x18]<<0x18|_0x42430d[_0x11d829>>>0x10&0xff]<<0x10|_0x42430d[_0x11d829>>>0x8&0xff]<<0x8|_0x42430d[_0x11d829&0xff],_0x11d829^=_0x43f63c[_0x46c0b4/_0x16f821|0x0]<<0x18),_0x3030fc[_0x46c0b4]=_0x3030fc[_0x46c0b4-_0x16f821]^_0x11d829);for(var _0x8f0d4c=this[_0xff87f0(0x3a9)]=[],_0xe62c96=0x0;_0xe62c96<_0x4a99d9;_0xe62c96++){var _0x46c0b4=_0x4a99d9-_0xe62c96;if(_0xe62c96%0x4)var _0x11d829=_0x3030fc[_0x46c0b4];else var _0x11d829=_0x3030fc[_0x46c0b4-0x4];_0xe62c96<0x4||_0x46c0b4<=0x4?_0x8f0d4c[_0xe62c96]=_0x11d829:_0x8f0d4c[_0xe62c96]=_0x578165[_0x42430d[_0x11d829>>>0x18]]^_0x40175c[_0x42430d[_0x11d829>>>0x10&0xff]]^_0x179397[_0x42430d[_0x11d829>>>0x8&0xff]]^_0x51508f[_0x42430d[_0x11d829&0xff]];}}},'encryptBlock':function(_0x4f64ec,_0x85fb32){const _0x23f374=_0x519a16;this[_0x23f374(0x5f9)](_0x4f64ec,_0x85fb32,this[_0x23f374(0x4ec)],_0x184c25,_0xa10ce6,_0x3921bf,_0x18ef03,_0x42430d);},'decryptBlock':function(_0xe3635f,_0x54aeb9){const _0x19d938=_0x519a16;var _0x260ea0=_0xe3635f[_0x54aeb9+0x1];_0xe3635f[_0x54aeb9+0x1]=_0xe3635f[_0x54aeb9+0x3],_0xe3635f[_0x54aeb9+0x3]=_0x260ea0,this[_0x19d938(0x5f9)](_0xe3635f,_0x54aeb9,this[_0x19d938(0x3a9)],_0x578165,_0x40175c,_0x179397,_0x51508f,_0x1c81e1);var _0x260ea0=_0xe3635f[_0x54aeb9+0x1];_0xe3635f[_0x54aeb9+0x1]=_0xe3635f[_0x54aeb9+0x3],_0xe3635f[_0x54aeb9+0x3]=_0x260ea0;},'_doCryptBlock':function(_0x57ef9e,_0x93b13b,_0x319472,_0x200fd5,_0x3c64f9,_0x48e228,_0x2c2347,_0x227d19){const _0x589a69=_0x519a16;for(var _0x324744=this[_0x589a69(0x232)],_0x5013e5=_0x57ef9e[_0x93b13b]^_0x319472[0x0],_0x3c2f08=_0x57ef9e[_0x93b13b+0x1]^_0x319472[0x1],_0x2447e4=_0x57ef9e[_0x93b13b+0x2]^_0x319472[0x2],_0x2a827c=_0x57ef9e[_0x93b13b+0x3]^_0x319472[0x3],_0x51a894=0x4,_0x337565=0x1;_0x337565<_0x324744;_0x337565++){var _0x162b19=_0x200fd5[_0x5013e5>>>0x18]^_0x3c64f9[_0x3c2f08>>>0x10&0xff]^_0x48e228[_0x2447e4>>>0x8&0xff]^_0x2c2347[_0x2a827c&0xff]^_0x319472[_0x51a894++],_0x5d197e=_0x200fd5[_0x3c2f08>>>0x18]^_0x3c64f9[_0x2447e4>>>0x10&0xff]^_0x48e228[_0x2a827c>>>0x8&0xff]^_0x2c2347[_0x5013e5&0xff]^_0x319472[_0x51a894++],_0x434d5e=_0x200fd5[_0x2447e4>>>0x18]^_0x3c64f9[_0x2a827c>>>0x10&0xff]^_0x48e228[_0x5013e5>>>0x8&0xff]^_0x2c2347[_0x3c2f08&0xff]^_0x319472[_0x51a894++],_0x4d1519=_0x200fd5[_0x2a827c>>>0x18]^_0x3c64f9[_0x5013e5>>>0x10&0xff]^_0x48e228[_0x3c2f08>>>0x8&0xff]^_0x2c2347[_0x2447e4&0xff]^_0x319472[_0x51a894++];_0x5013e5=_0x162b19,_0x3c2f08=_0x5d197e,_0x2447e4=_0x434d5e,_0x2a827c=_0x4d1519;}var _0x162b19=(_0x227d19[_0x5013e5>>>0x18]<<0x18|_0x227d19[_0x3c2f08>>>0x10&0xff]<<0x10|_0x227d19[_0x2447e4>>>0x8&0xff]<<0x8|_0x227d19[_0x2a827c&0xff])^_0x319472[_0x51a894++],_0x5d197e=(_0x227d19[_0x3c2f08>>>0x18]<<0x18|_0x227d19[_0x2447e4>>>0x10&0xff]<<0x10|_0x227d19[_0x2a827c>>>0x8&0xff]<<0x8|_0x227d19[_0x5013e5&0xff])^_0x319472[_0x51a894++],_0x434d5e=(_0x227d19[_0x2447e4>>>0x18]<<0x18|_0x227d19[_0x2a827c>>>0x10&0xff]<<0x10|_0x227d19[_0x5013e5>>>0x8&0xff]<<0x8|_0x227d19[_0x3c2f08&0xff])^_0x319472[_0x51a894++],_0x4d1519=(_0x227d19[_0x2a827c>>>0x18]<<0x18|_0x227d19[_0x5013e5>>>0x10&0xff]<<0x10|_0x227d19[_0x3c2f08>>>0x8&0xff]<<0x8|_0x227d19[_0x2447e4&0xff])^_0x319472[_0x51a894++];_0x57ef9e[_0x93b13b]=_0x162b19,_0x57ef9e[_0x93b13b+0x1]=_0x5d197e,_0x57ef9e[_0x93b13b+0x2]=_0x434d5e,_0x57ef9e[_0x93b13b+0x3]=_0x4d1519;},'keySize':0x100/0x20});_0x2690fb[_0x519a16(0x432)]=_0x325941[_0x519a16(0x56d)](_0x25a5d1);}()),_0x321714[_0x3e2f10(0x432)];}));}(yn));var hr=yn['exports'];const _r=xe(hr);var ur=On();const Xt=xe(ur);var Pn={'exports':{}};(function(_0x5130ff,_0x21d62d){(function(_0x3966ec,_0x4b5c8e){const _0x40e0a7=_0x479a;_0x5130ff[_0x40e0a7(0x436)]=_0x4b5c8e(oe());}(X,function(_0x15ad8a){const _0x3f10d7=_0x479a;return _0x15ad8a[_0x3f10d7(0x593)]['Utf8'];}));}(Pn));var dr=Pn['exports'];const fr=xe(dr);var Un={'exports':{}};(function(_0x2f4e88,_0x23fb8f){(function(_0x176ea4,_0xb2ab8e){const _0x3bab81=_0x479a;_0x2f4e88[_0x3bab81(0x436)]=_0xb2ab8e(oe());}(X,function(_0x1f927a){const _0x33f48e=_0x479a;return(function(){const _0x358e3e=_0x479a;if(typeof ArrayBuffer=='function'){var _0x6a9768=_0x1f927a,_0x10c176=_0x6a9768[_0x358e3e(0x5db)],_0x35e85b=_0x10c176[_0x358e3e(0x53b)],_0x380580=_0x35e85b[_0x358e3e(0x25b)],_0x35303e=_0x35e85b[_0x358e3e(0x25b)]=function(_0xae6591){const _0x4cc671=_0x358e3e;if(_0xae6591 instanceof ArrayBuffer&&(_0xae6591=new Uint8Array(_0xae6591)),(_0xae6591 instanceof Int8Array||typeof Uint8ClampedArray<'u'&&_0xae6591 instanceof Uint8ClampedArray||_0xae6591 instanceof Int16Array||_0xae6591 instanceof Uint16Array||_0xae6591 instanceof Int32Array||_0xae6591 instanceof Uint32Array||_0xae6591 instanceof Float32Array||_0xae6591 instanceof Float64Array)&&(_0xae6591=new Uint8Array(_0xae6591['buffer'],_0xae6591[_0x4cc671(0x3f7)],_0xae6591['byteLength'])),_0xae6591 instanceof Uint8Array){for(var _0x5135e0=_0xae6591[_0x4cc671(0x23f)],_0x2cc8a3=[],_0x45b051=0x0;_0x45b051<_0x5135e0;_0x45b051++)_0x2cc8a3[_0x45b051>>>0x2]|=_0xae6591[_0x45b051]<<0x18-_0x45b051%0x4*0x8;_0x380580[_0x4cc671(0x54a)](this,_0x2cc8a3,_0x5135e0);}else _0x380580[_0x4cc671(0x4c4)](this,arguments);};_0x35303e[_0x358e3e(0x2f3)]=_0x35e85b;}}()),_0x1f927a[_0x33f48e(0x5db)][_0x33f48e(0x53b)];}));}(Un));var vr=Un[_0x2683e6(0x436)];const mr=xe(vr);var Mn={'exports':{}};(function(_0x338d13,_0x149395){(function(_0x29c13a,_0x2a8949,_0x56d148){const _0xa9203d=_0x479a;_0x338d13[_0xa9203d(0x436)]=_0x2a8949(oe(),wn());}(X,function(_0x31cac9){const _0x370b0d=_0x479a;return _0x31cac9[_0x370b0d(0x417)][_0x370b0d(0x2ae)]={'pad':function(){},'unpad':function(){}},_0x31cac9['pad'][_0x370b0d(0x2ae)];}));}(Mn));var Sr=Mn[_0x2683e6(0x436)];const pr=xe(Sr);function gr(_0x4eef2a,_0x496c32){const _0x301883=_0x2683e6,_0x2102b6=_0x496c32-_0x4eef2a[_0x301883(0x29a)]%_0x496c32,_0x235e5b=String[_0x301883(0x19a)](_0x2102b6)[_0x301883(0x290)](_0x2102b6);return _0x4eef2a+_0x235e5b;}function Ir(_0x5c0d7c,_0x1e1d3b){const _0x27f983=_0x2683e6,_0x1116f6=mr[_0x27f983(0x3e7)](0x10),_0x47a886=gr(_0x5c0d7c,0x10),_0xffe542=_r[_0x27f983(0x3cb)](fr[_0x27f983(0x18e)](_0x47a886),Xt[_0x27f983(0x18e)](_0x1e1d3b),{'iv':_0x1116f6,'padding':pr});return _0x1116f6[_0x27f983(0x33e)](_0xffe542[_0x27f983(0x3ad)])['toString'](Xt);}function Cr(){const _0xbaba47=_0x2683e6,_0x7045f6=(typeof WorkerGlobalScope<'u'&&self instanceof WorkerGlobalScope?self:window)[_0xbaba47(0x4d5)];if(_0x7045f6){const _0x57019e={'time':Math[_0xbaba47(0x2f0)](Date[_0xbaba47(0x1f9)]()/0x3e8),'domain':location[_0xbaba47(0x465)]};return Ir(JSON[_0xbaba47(0x40e)](_0x57019e),_0x7045f6);}}var Er=Object['defineProperty'],br=Object[_0x2683e6(0x181)],Tr=(_0x5d996d,_0x4141e0,_0x3f4858,_0x3358d0)=>{for(var _0x6f461=_0x3358d0>0x1?void 0x0:_0x3358d0?br(_0x4141e0,_0x3f4858):_0x4141e0,_0xc912cc=_0x5d996d['length']-0x1,_0x4dd2b8;_0xc912cc>=0x0;_0xc912cc--)(_0x4dd2b8=_0x5d996d[_0xc912cc])&&(_0x6f461=(_0x3358d0?_0x4dd2b8(_0x4141e0,_0x3f4858,_0x6f461):_0x4dd2b8(_0x6f461))||_0x6f461);return _0x3358d0&&_0x6f461&&Er(_0x4141e0,_0x3f4858,_0x6f461),_0x6f461;},Rr=(_0x54d7e3,_0x309bdb)=>(_0x2d7bd0,_0x3e597d)=>_0x309bdb(_0x2d7bd0,_0x3e597d,_0x54d7e3);let Ye=class{constructor(_0x4937af){const _0xef520e=_0x2683e6;this[_0xef520e(0x3fb)]=_0x4937af,this[_0xef520e(0x4eb)]();}['_initRequestHeader'](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x2224e7,_0x4841bf)=>{const _0x114e85=_0x479a,_0x22ae1f=_0x2224e7[_0x114e85(0x2f5)],_0xcf5a82=Cr();return _0xcf5a82&&_0x22ae1f[_0x114e85(0x46f)](_0x114e85(0x462),_0xcf5a82),_0x4841bf(_0x2224e7);}});}};Ye=Tr([Rr(0x0,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)]))],Ye);var yr=Object['defineProperty'],Or=Object[_0x2683e6(0x181)],Dr=(_0x5be6d2,_0x5004fd,_0x3ed0be,_0x25d42b)=>{for(var _0x2ef83c=_0x25d42b>0x1?void 0x0:_0x25d42b?Or(_0x5004fd,_0x3ed0be):_0x5004fd,_0x3614b5=_0x5be6d2['length']-0x1,_0x2f5f2a;_0x3614b5>=0x0;_0x3614b5--)(_0x2f5f2a=_0x5be6d2[_0x3614b5])&&(_0x2ef83c=(_0x25d42b?_0x2f5f2a(_0x5004fd,_0x3ed0be,_0x2ef83c):_0x2f5f2a(_0x2ef83c))||_0x2ef83c);return _0x25d42b&&_0x2ef83c&&yr(_0x5004fd,_0x3ed0be,_0x2ef83c),_0x2ef83c;},vt=(_0x3f1c82,_0x4860d8)=>(_0x3114e0,_0x4e3116)=>_0x4860d8(_0x3114e0,_0x4e3116,_0x3f1c82);const wr=[_0x2683e6(0x3d4),_0x2683e6(0x420),_0x2683e6(0x3b1),_0x2683e6(0x4d4),'image/bmp'],Pr=0x5*0x400*0x400,Ur=_0x2683e6(0x2e7),Mr=_0x2683e6(0x1cb),Ar=_0x2683e6(0x1ac),Nr=_0x2683e6(0x236);exports[_0x2683e6(0x187)]=class{constructor(_0x382708,_0x47569c,_0x14cf3c){const _0xbfeeb9=_0x2683e6;I(this,_0xbfeeb9(0x363),0x0),I(this,_0xbfeeb9(0x433),new A[(_0xbfeeb9(0x51b))]()),I(this,'change$',this['_change$']),I(this,'_imageSourceCache',new Map()),(this[_0xbfeeb9(0x3fb)]=_0x382708,this[_0xbfeeb9(0x3d1)]=_0x47569c,this[_0xbfeeb9(0x45b)]=_0x14cf3c);}[_0x2683e6(0x547)](_0x2004da){const _0xac9dde=_0x2683e6;this['_waitCount']=_0x2004da,this[_0xac9dde(0x433)][_0xac9dde(0x40f)](_0x2004da);}[_0x2683e6(0x451)](_0x374550,_0x45c9e0){const _0x31622f=_0x2683e6;if(_0x45c9e0===ne[_0x31622f(0x1b9)]['BASE64']){const _0x5a10ab=new Image();return _0x5a10ab[_0x31622f(0x603)]=_0x374550,_0x5a10ab;}return this[_0x31622f(0x19c)][_0x31622f(0x553)](_0x374550);}[_0x2683e6(0x535)](_0x4c4a84,_0x5ca831,_0x128fa6){const _0x245ea4=_0x2683e6;_0x5ca831===ne['ImageSourceType']['BASE64']||_0x128fa6==null||this[_0x245ea4(0x19c)]['set'](_0x4c4a84,_0x128fa6);}async[_0x2683e6(0x1f2)](_0x4b64ba){const _0x2a4e7f=_0x2683e6;try{const _0x30aff8=this[_0x2a4e7f(0x50a)](this[_0x2a4e7f(0x3fc)](),''+_0x4b64ba),_0x3c497f=(await this[_0x2a4e7f(0x3fb)][_0x2a4e7f(0x553)](_0x30aff8))[_0x2a4e7f(0x2a7)];if(_0x3c497f[_0x2a4e7f(0x461)]&&_0x3c497f[_0x2a4e7f(0x461)][_0x2a4e7f(0x443)]===cn['OK']){const _0x45784b=new URL(_0x3c497f[_0x2a4e7f(0x170)],this[_0x2a4e7f(0x271)]())[_0x2a4e7f(0x155)]();return Promise[_0x2a4e7f(0x3ed)](_0x45784b);}return Promise['reject'](_0x3c497f[_0x2a4e7f(0x461)]);}catch(_0x309145){return Promise['reject'](_0x309145);}}async[_0x2683e6(0x198)](_0x55fa7a){const _0x243ecf=_0x2683e6;let _0x4959b4='';if(!wr[_0x243ecf(0x598)](_0x55fa7a[_0x243ecf(0x44a)]))return this[_0x243ecf(0x3e1)](),Promise[_0x243ecf(0x2fc)](new Error(ne[_0x243ecf(0x5cd)][_0x243ecf(0x37c)]));if(_0x55fa7a[_0x243ecf(0x4b4)]>Pr)return this[_0x243ecf(0x3e1)](),Promise['reject'](new Error(ne['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{const _0x403a6c=new FormData();_0x403a6c[_0x243ecf(0x4ca)](_0x243ecf(0x1ef),_0x55fa7a);const _0x31df7f=this[_0x243ecf(0x45b)][_0x243ecf(0x452)](),_0x30ac46=_0x31df7f==null?void 0x0:_0x31df7f['getUnitId']();if(!_0x30ac46)throw new Error(_0x243ecf(0x31d));const _0x109a7c=this[_0x243ecf(0x5c0)]()+_0x243ecf(0x21d)+_0x55fa7a[_0x243ecf(0x4b4)][_0x243ecf(0x155)]()+_0x243ecf(0x5c7)+ln['UnitEmbedded']+_0x243ecf(0x4d8)+encodeURIComponent(_0x30ac46),_0x14bec1=await(await fetch(_0x109a7c,{'method':'POST','body':_0x403a6c}))[_0x243ecf(0x3f2)]();if(typeof _0x14bec1['FileId']!='string')return this[_0x243ecf(0x3e1)](),Promise[_0x243ecf(0x2fc)](new Error(ne['ImageUploadStatusType']['ERROR_IMAGE']));_0x4959b4=_0x14bec1[_0x243ecf(0x29b)];}catch{return this[_0x243ecf(0x3e1)](),Promise[_0x243ecf(0x2fc)](new Error(ne[_0x243ecf(0x5cd)][_0x243ecf(0x32c)]));}return new Promise((_0x30b360,_0x2724e7)=>{const _0x24b583=_0x243ecf,_0x27462a=new FileReader();_0x27462a[_0x24b583(0x1b8)](_0x55fa7a),_0x27462a['onload']=_0x3940be=>{const _0x3ab56a=_0x24b583;var _0x1bba45;const _0x598122=(_0x1bba45=_0x3940be[_0x3ab56a(0x52a)])==null?void 0x0:_0x1bba45[_0x3ab56a(0x332)];if(_0x598122==null){this['_decreaseWaiting'](),_0x2724e7(new Error(ne[_0x3ab56a(0x5cd)][_0x3ab56a(0x32c)]));return;}const _0x547cb7=a[_0x3ab56a(0x256)][_0x3ab56a(0x59e)](0x6);_0x30b360({'imageId':_0x547cb7,'imageSourceType':ne[_0x3ab56a(0x1b9)]['UUID'],'source':_0x4959b4,'base64Cache':_0x598122,'status':ne[_0x3ab56a(0x5cd)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x2683e6(0x5c0)](){const _0x173711=_0x2683e6;var _0x66c58d,_0x59da5b;const _0x2b518d=this[_0x173711(0x3d1)]['getConfig'](Ur),_0x248a09=this[_0x173711(0x3d1)][_0x173711(0x496)](te);return(_0x59da5b=(_0x66c58d=_0x248a09==null?void 0x0:_0x248a09[_0x173711(0x3c8)])!=null?_0x66c58d:_0x2b518d)!=null?_0x59da5b:Mr;}['_getSignURL'](){const _0x570392=_0x2683e6;var _0xecf983,_0x237439;const _0x30a0be=this[_0x570392(0x3d1)][_0x570392(0x496)](Ar),_0x1700eb=this['_configService']['getConfig'](te);return(_0x237439=(_0xecf983=_0x1700eb==null?void 0x0:_0x1700eb[_0x570392(0x1b3)])!=null?_0xecf983:_0x30a0be)!=null?_0x237439:Nr;}[_0x2683e6(0x271)](){const _0x4e3c94=_0x2683e6;var _0x3e3eef;const _0x29bd40=this['_configService'][_0x4e3c94(0x496)](te);return(_0x3e3eef=_0x29bd40==null?void 0x0:_0x29bd40[_0x4e3c94(0x407)])!=null?_0x3e3eef:location[_0x4e3c94(0x32a)];}['_replaceFileID'](_0x2e137d,_0x437954){const _0x17c421=_0x2683e6;return _0x2e137d[_0x17c421(0x5d6)](_0x17c421(0x1ca),_0x437954);}['_decreaseWaiting'](){const _0x352a8d=_0x2683e6;this[_0x352a8d(0x363)]-=0x1,this[_0x352a8d(0x433)]['next'](this['_waitCount']);}},exports[_0x2683e6(0x187)]=Dr([vt(0x0,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)])),vt(0x1,a[_0x2683e6(0x58f)]),vt(0x2,a[_0x2683e6(0x22b)](a[_0x2683e6(0x468)]))],exports[_0x2683e6(0x187)]);var Lr=Object[_0x2683e6(0x1e7)],xr=Object[_0x2683e6(0x181)],jr=(_0x5d03ee,_0x3dc4aa,_0x3bcded,_0x881b31)=>{for(var _0x943cbe=_0x881b31>0x1?void 0x0:_0x881b31?xr(_0x3dc4aa,_0x3bcded):_0x3dc4aa,_0x30e7c5=_0x5d03ee['length']-0x1,_0x2e2395;_0x30e7c5>=0x0;_0x30e7c5--)(_0x2e2395=_0x5d03ee[_0x30e7c5])&&(_0x943cbe=(_0x881b31?_0x2e2395(_0x3dc4aa,_0x3bcded,_0x943cbe):_0x2e2395(_0x943cbe))||_0x943cbe);return _0x881b31&&_0x943cbe&&Lr(_0x3dc4aa,_0x3bcded,_0x943cbe),_0x943cbe;},Ae=(_0x43c5de,_0x5758cb)=>(_0x5c3dd5,_0x3fbf48)=>_0x5758cb(_0x5c3dd5,_0x3fbf48,_0x43c5de);let Ke=class extends a[_0x2683e6(0x1e0)]{constructor(_0x16e84a,_0x224a2c,_0x146b27,_0x2882fb,_0x4c9fde){const _0x2fad52=_0x2683e6;super(),this['_injector']=_0x16e84a,this[_0x2fad52(0x45b)]=_0x224a2c,this['_permissionService']=_0x146b27,this['_collaborationSessionService']=_0x2882fb,this[_0x2fad52(0x347)]=_0x4c9fde,this['_initUnitPermissionChange'](),this[_0x2fad52(0x209)]();}[_0x2683e6(0x209)](){const _0x25000d=_0x2683e6,_0x112e93=async _0x4b04b2=>{const _0x412a7f=_0x479a;(await this[_0x412a7f(0x216)][_0x412a7f(0x2b8)](_0x4b04b2))['event$'][_0x412a7f(0x36b)](V[_0x412a7f(0x57f)](_0x433213=>_0x433213[_0x412a7f(0x477)]===S[_0x412a7f(0x3d6)][_0x412a7f(0x235)]),V['takeUntil'](this[_0x412a7f(0x534)]))[_0x412a7f(0x44d)](_0x1b5291=>{const _0x5d9464=_0x412a7f,_0x2c7023=_0x1b5291,{reason:_0x28af35}=_0x2c7023[_0x5d9464(0x5ac)];this[_0x5d9464(0x3e9)][_0x5d9464(0x553)](ee[_0x5d9464(0x509)])[_0x5d9464(0x4db)]({'type':ge[_0x5d9464(0x455)][_0x5d9464(0x272)],'content':this['_localeService']['t'](_0x5d9464(0x248))+'('+_0x28af35+')'}),this[_0x5d9464(0x2b5)][_0x5d9464(0x524)](new k['WorkbookEditablePermission'](_0x4b04b2)['id'],!0x1),this['_collaborationSessionService'][_0x5d9464(0x4fd)](_0x4b04b2);});};A[_0x25000d(0x3ee)](this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x25000d(0x4a1)]),this[_0x25000d(0x45b)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x25000d(0x56e)]))[_0x25000d(0x36b)](V[_0x25000d(0x538)](_0x350c94=>_0x350c94['getUnitId']()),V[_0x25000d(0x57f)](_0x4005c1=>!a['isInternalEditorID'](_0x4005c1)),V[_0x25000d(0x35f)](this[_0x25000d(0x534)]))['subscribe'](_0x36399b=>{_0x112e93(_0x36399b);});}[_0x2683e6(0x607)](){const _0x4544b0=_0x2683e6,_0x16bf9c=async _0x240b48=>{const _0x14cc03=_0x479a;(await this[_0x14cc03(0x216)][_0x14cc03(0x2b8)](_0x240b48))[_0x14cc03(0x279)][_0x14cc03(0x36b)](V[_0x14cc03(0x57f)](_0x2d4624=>_0x2d4624[_0x14cc03(0x477)]===S[_0x14cc03(0x3d6)][_0x14cc03(0x265)]),V[_0x14cc03(0x35f)](this[_0x14cc03(0x534)]))[_0x14cc03(0x44d)](_0x2318cf=>{const _0x45f2f8=_0x14cc03,_0x387113=_0x2318cf,{objectId:_0x5498f1}=_0x387113[_0x45f2f8(0x5ac)],_0x3f82ed=this[_0x45f2f8(0x3e9)][_0x45f2f8(0x553)](Re[_0x45f2f8(0x5e5)]);_0x5498f1===_0x240b48?_0x3f82ed['initWorkbookPermissionChange'](_0x240b48):_0x3f82ed['refreshPermission'](_0x240b48,_0x5498f1);});};A[_0x4544b0(0x3ee)](this[_0x4544b0(0x45b)][_0x4544b0(0x32d)](a[_0x4544b0(0x342)]['UNIVER_SHEET']),this['_univerInstanceService']['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC']))[_0x4544b0(0x36b)](V[_0x4544b0(0x538)](_0x294760=>_0x294760[_0x4544b0(0x478)]()),V[_0x4544b0(0x57f)](_0x42adca=>!a[_0x4544b0(0x1da)](_0x42adca)),V[_0x4544b0(0x35f)](this['dispose$']))[_0x4544b0(0x44d)](_0x38dcb9=>{_0x16bf9c(_0x38dcb9);});}};Ke=jr([Ae(0x0,a[_0x2683e6(0x22b)](a[_0x2683e6(0x2c8)])),Ae(0x1,a['IUniverInstanceService']),Ae(0x2,a['IPermissionService']),Ae(0x3,a[_0x2683e6(0x22b)](exports[_0x2683e6(0x17a)])),Ae(0x4,a[_0x2683e6(0x22b)](a[_0x2683e6(0x479)]))],Ke);var $r=Object['defineProperty'],Hr=Object[_0x2683e6(0x181)],Br=(_0x5f2038,_0x37252e,_0x305684,_0x2acda6)=>{const _0x546c81=_0x2683e6;for(var _0x23831d=_0x2acda6>0x1?void 0x0:_0x2acda6?Hr(_0x37252e,_0x305684):_0x37252e,_0x3a5f09=_0x5f2038[_0x546c81(0x29a)]-0x1,_0x4b9ee0;_0x3a5f09>=0x0;_0x3a5f09--)(_0x4b9ee0=_0x5f2038[_0x3a5f09])&&(_0x23831d=(_0x2acda6?_0x4b9ee0(_0x37252e,_0x305684,_0x23831d):_0x4b9ee0(_0x23831d))||_0x23831d);return _0x2acda6&&_0x23831d&&$r(_0x37252e,_0x305684,_0x23831d),_0x23831d;},Jt=(_0x1e0896,_0x55229f)=>(_0x423e25,_0x87ed87)=>_0x55229f(_0x423e25,_0x87ed87,_0x1e0896);exports[_0x2683e6(0x380)]=class{constructor(_0x443eae,_0x362f72){const _0x182107=_0x2683e6;this[_0x182107(0x3d1)]=_0x443eae,this[_0x182107(0x3fb)]=_0x362f72;}async['getUnitOnRev'](_0x524d54,_0x4ad806){const _0x408b31=_0x2683e6;var _0x2512b0;const {unitID:_0x5dfd85,type:_0x54346f,revision:_0x13141d=0x0}=_0x4ad806,_0x16ef91=this[_0x408b31(0x1a6)]()+'/'+_0x54346f+'/unit/'+_0x5dfd85+_0x408b31(0x15f)+_0x13141d,_0x24f53d=(await this[_0x408b31(0x3fb)][_0x408b31(0x553)](_0x16ef91))[_0x408b31(0x2a7)],_0x1fd9e5=(_0x2512b0=_0x24f53d[_0x408b31(0x1e1)])==null?void 0x0:_0x2512b0[_0x408b31(0x45f)];if(_0x1fd9e5){const _0x59c8ef=_0x1fd9e5==null?void 0x0:_0x1fd9e5[_0x408b31(0x5c6)],_0x562bba=S[_0x408b31(0x582)][_0x408b31(0x395)](S[_0x408b31(0x194)](_0x59c8ef));_0x1fd9e5[_0x408b31(0x5c6)]=_0x562bba,Object[_0x408b31(0x548)](_0x1fd9e5[_0x408b31(0x491)])[_0x408b31(0x280)](([,_0xd64fe6])=>{const _0x4db093=_0x408b31,_0x19e18b=_0xd64fe6[_0x4db093(0x5c6)],_0x11ea33=S['textEncoder'][_0x4db093(0x395)](S['b64DecodeUnicode'](_0x19e18b));_0xd64fe6[_0x4db093(0x5c6)]=_0x11ea33;});}return _0x24f53d;}async[_0x2683e6(0x5e2)](_0x59d42b,_0x13096d){const _0x51b277=_0x2683e6,{unitID:_0x2584a2,type:_0x21f4ed,blockID:_0x14e785}=_0x13096d,_0x105d2b=this[_0x51b277(0x4b5)]()+'/'+_0x21f4ed+_0x51b277(0x182)+_0x2584a2+_0x51b277(0x53d)+_0x14e785;return(await this[_0x51b277(0x3fb)][_0x51b277(0x553)](_0x105d2b))[_0x51b277(0x2a7)];}async[_0x2683e6(0x15e)](_0x2e71a7,_0x7ec83d){const _0x36672d=_0x2683e6,{unitID:_0x5c080a,type:_0x312dc4,blockID:_0x4ea1b4}=_0x7ec83d,_0x56abd4=this['_getAPIPrefix']()+_0x36672d(0x53d)+_0x312dc4+'/unit/'+_0x5c080a+'/block/'+_0x4ea1b4;return(await this[_0x36672d(0x3fb)][_0x36672d(0x553)](_0x56abd4))[_0x36672d(0x2a7)];}async[_0x2683e6(0x606)](_0x3a213a,_0x28f0ee){const _0x5ebecc=_0x2683e6,{unitID:_0x1f1748,type:_0x5960c0,from:_0x4493d6,to:_0x57dace}=_0x28f0ee,_0x450d72=this[_0x5ebecc(0x4b5)]()+'/'+_0x5960c0+_0x5ebecc(0x182)+_0x1f1748+_0x5ebecc(0x18a)+_0x4493d6+_0x5ebecc(0x2de)+_0x57dace;return(await this['_httpService'][_0x5ebecc(0x553)](_0x450d72))[_0x5ebecc(0x2a7)];}[_0x2683e6(0x1a6)](){const _0x1a35b2=_0x2683e6;var _0xfce56f;return(_0xfce56f=this[_0x1a35b2(0x3d1)][_0x1a35b2(0x496)](Qt))!=null?_0xfce56f:this[_0x1a35b2(0x4b5)]();}['_getAPIPrefix'](){const _0x117c07=_0x2683e6;var _0x3d0194,_0x508703;const _0x168ed2=this[_0x117c07(0x3d1)]['getConfig'](Zt),_0x26fb5a=this[_0x117c07(0x3d1)][_0x117c07(0x496)](te);return(_0x508703=(_0x3d0194=_0x26fb5a==null?void 0x0:_0x26fb5a[_0x117c07(0x2f2)])!=null?_0x3d0194:_0x168ed2)!=null?_0x508703:Hn;}async[_0x2683e6(0x5c2)](_0x2b747a,_0x669ff7){const _0x289d3f=_0x2683e6,_0x24cacf='/universer-api/snapshot/'+_0x669ff7[_0x289d3f(0x44a)]+_0x289d3f(0x182)+_0x669ff7[_0x289d3f(0x4a9)]+_0x289d3f(0x591);return(await this[_0x289d3f(0x3fb)][_0x289d3f(0x553)](_0x24cacf,{'params':{'resourceId':JSON['stringify'](_0x669ff7[_0x289d3f(0x541)])}}))[_0x289d3f(0x2a7)];}['saveSnapshot'](){const _0x99fe8f=_0x2683e6;throw new Error(_0x99fe8f(0x346));}[_0x2683e6(0x32b)](){const _0x53a7d1=_0x2683e6;throw new Error(_0x53a7d1(0x346));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2683e6(0x1e4)](){const _0x34d0c0=_0x2683e6;throw new Error(_0x34d0c0(0x346));}['getLatestCsReqIdBySid'](){const _0x49eb3f=_0x2683e6;throw new Error(_0x49eb3f(0x346));}},exports[_0x2683e6(0x380)]=Br([Jt(0x0,a[_0x2683e6(0x58f)]),Jt(0x1,a[_0x2683e6(0x22b)](Z[_0x2683e6(0x2a2)]))],exports[_0x2683e6(0x380)]);var kr=Object[_0x2683e6(0x1e7)],Wr=Object[_0x2683e6(0x181)],Fr=(_0x3d674c,_0x28b3f0,_0x452ff1,_0x352e64)=>{const _0x35e24e=_0x2683e6;for(var _0x26196a=_0x352e64>0x1?void 0x0:_0x352e64?Wr(_0x28b3f0,_0x452ff1):_0x28b3f0,_0x31b695=_0x3d674c[_0x35e24e(0x29a)]-0x1,_0x88e5b6;_0x31b695>=0x0;_0x31b695--)(_0x88e5b6=_0x3d674c[_0x31b695])&&(_0x26196a=(_0x352e64?_0x88e5b6(_0x28b3f0,_0x452ff1,_0x26196a):_0x88e5b6(_0x26196a))||_0x26196a);return _0x352e64&&_0x26196a&&kr(_0x28b3f0,_0x452ff1,_0x26196a),_0x26196a;},Ne=(_0x3acb31,_0x46f128)=>(_0x45ddf4,_0x9c6254)=>_0x46f128(_0x45ddf4,_0x9c6254,_0x3acb31);let It=class extends a[_0x2683e6(0x166)]{constructor(_0x189068,_0x220f18,_0x3e46b3,_0xa6b120,_0x4073f2){super(_0x189068,_0x220f18,_0x3e46b3),this['_transformService']=_0xa6b120,this['_logService']=_0x4073f2;}[_0x2683e6(0x3dd)](_0x3faa5d,_0x1c3f76){const _0x24c65a=_0x2683e6,_0x2442a6=this[_0x24c65a(0x1f3)](_0x3faa5d);if(_0x2442a6)try{const _0x44da0c=this[_0x24c65a(0x387)](_0x2442a6,_0x1c3f76);this[_0x24c65a(0x40c)](_0x3faa5d,_0x44da0c);}catch(_0xbc0169){this['_logService'][_0x24c65a(0x461)](_0x24c65a(0x2f6),_0xbc0169),this[_0x24c65a(0x204)](_0x3faa5d);}const _0x3ac29f=this[_0x24c65a(0x428)](_0x3faa5d);if(_0x3ac29f)try{const _0x34101c=this[_0x24c65a(0x387)](_0x3ac29f,_0x1c3f76);this[_0x24c65a(0x207)](_0x3faa5d,_0x34101c);}catch(_0x2ba67c){this[_0x24c65a(0x577)]['error'](_0x2ba67c),this['_clearRedo'](_0x3faa5d);}}[_0x2683e6(0x204)](_0x1b9a58){const _0x565041=_0x2683e6,_0x566259=this[_0x565041(0x1f3)](_0x1b9a58);_0x566259&&(_0x566259['length']=0x0,this[_0x565041(0x43c)]());}[_0x2683e6(0x226)](_0x41d443){const _0x29afc8=_0x2683e6,_0xc75c65=this[_0x29afc8(0x428)](_0x41d443);_0xc75c65&&(_0xc75c65[_0x29afc8(0x29a)]=0x0,this[_0x29afc8(0x43c)]());}[_0x2683e6(0x40c)](_0x1dc1d3,_0x50381c){const _0x5027d3=_0x2683e6;this[_0x5027d3(0x5d1)][_0x5027d3(0x46f)](_0x1dc1d3,_0x50381c),this['_updateStatus']();}[_0x2683e6(0x207)](_0x3ed99c,_0x16f71f){const _0x58860f=_0x2683e6;this[_0x58860f(0x537)]['set'](_0x3ed99c,_0x16f71f),this[_0x58860f(0x43c)]();}[_0x2683e6(0x387)](_0x28cc9a,_0x49b4e8){const _0x49c642=_0x2683e6,_0xd51699=[];let _0x3e8a12=_0x49b4e8,_0x6f8635=_0x49b4e8;for(let _0x3ba0f1=_0x28cc9a[_0x49c642(0x29a)]-0x1;_0x3ba0f1>=0x0;_0x3ba0f1--){const {unitID:_0x4f51b2,undoMutations:_0x3828aa,redoMutations:_0x210872}=_0x28cc9a[_0x3ba0f1],_0x38cafa=this[_0x49c642(0x318)][_0x49c642(0x1b6)](_0x3e8a12,_0x3828aa),_0x1a4b19=this[_0x49c642(0x318)]['transformMutationsWithChangeset'](_0x6f8635,_0x210872);if(S[_0x49c642(0x1bd)](_0x38cafa)||S['isTransformMutationsWithChangesetFailure'](_0x1a4b19)){this['_logService'][_0x49c642(0x461)](_0x49c642(0x2f6),_0x49c642(0x59b),_0x38cafa,_0x1a4b19);break;}_0x3e8a12=_0x38cafa['c1Prime'],_0x6f8635=_0x1a4b19[_0x49c642(0x160)],_0xd51699[_0x49c642(0x17e)]({'unitID':_0x4f51b2,'undoMutations':_0x38cafa[_0x49c642(0x326)],'redoMutations':_0x1a4b19[_0x49c642(0x326)]});}return _0xd51699[_0x49c642(0x3ef)]();}};It=Fr([Ne(0x0,a[_0x2683e6(0x468)]),Ne(0x1,a['ICommandService']),Ne(0x2,a['IContextService']),Ne(0x3,S[_0x2683e6(0x1e3)]),Ne(0x4,a['ILogService'])],It);class An extends a[_0x2683e6(0x1e0)]{constructor(){const _0x2f4040=_0x2683e6;super(),I(this,'urlChange$'),this[_0x2f4040(0x5b7)]=A['fromEvent'](window,_0x2f4040(0x16a))[_0x2f4040(0x36b)](A[_0x2f4040(0x35f)](this[_0x2f4040(0x534)]),A[_0x2f4040(0x4dd)](0x1),A[_0x2f4040(0x22d)](void 0x0));}['setParam'](_0x3c9ecb,_0x244bb2,_0x461609=!0x1){const _0xe509e1=_0x2683e6,_0x39dd22=new URL(window[_0xe509e1(0x286)][_0xe509e1(0x56a)]);_0x39dd22[_0xe509e1(0x4f6)]['set'](_0x3c9ecb,_0x244bb2),_0x461609?window[_0xe509e1(0x3c0)][_0xe509e1(0x415)]('','',_0x39dd22[_0xe509e1(0x155)]()):window['history'][_0xe509e1(0x317)]('','',_0x39dd22[_0xe509e1(0x155)]());}[_0x2683e6(0x533)](_0xd6e44f,_0x1b17bd=!0x1){const _0x556beb=_0x2683e6,_0x327077=new URL(window[_0x556beb(0x286)]['href']);_0x327077[_0x556beb(0x4f6)][_0x556beb(0x27e)](_0xd6e44f),_0x1b17bd?window['history'][_0x556beb(0x415)]('','',_0x327077[_0x556beb(0x155)]()):window[_0x556beb(0x3c0)][_0x556beb(0x317)]('','',_0x327077[_0x556beb(0x155)]());}['getParam'](_0x3bc9c2){const _0x2412ab=_0x2683e6;var _0x296989;return(_0x296989=new URL(window[_0x2412ab(0x286)][_0x2412ab(0x56a)])[_0x2412ab(0x4f6)][_0x2412ab(0x553)](_0x3bc9c2))!=null?_0x296989:void 0x0;}}var Nn=Object[_0x2683e6(0x1e7)],Vr=Object[_0x2683e6(0x181)],Gr=(_0x27a88c,_0x558b78,_0x50ef88)=>_0x558b78 in _0x27a88c?Nn(_0x27a88c,_0x558b78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50ef88}):_0x27a88c[_0x558b78]=_0x50ef88,Yr=(_0x20f56d,_0x7111ad,_0x2b5168,_0x91b3bf)=>{for(var _0x1ce1fb=_0x91b3bf>0x1?void 0x0:_0x91b3bf?Vr(_0x7111ad,_0x2b5168):_0x7111ad,_0x2e4415=_0x20f56d['length']-0x1,_0x3139f4;_0x2e4415>=0x0;_0x2e4415--)(_0x3139f4=_0x20f56d[_0x2e4415])&&(_0x1ce1fb=(_0x91b3bf?_0x3139f4(_0x7111ad,_0x2b5168,_0x1ce1fb):_0x3139f4(_0x1ce1fb))||_0x1ce1fb);return _0x91b3bf&&_0x1ce1fb&&Nn(_0x7111ad,_0x2b5168,_0x1ce1fb),_0x1ce1fb;},He=(_0x162720,_0x2acdd0)=>(_0x23e6ba,_0x3b0ec0)=>_0x2acdd0(_0x23e6ba,_0x3b0ec0,_0x162720),Kr=(_0x5ec457,_0xa158d4,_0x3f83db)=>Gr(_0x5ec457,_0xa158d4+'',_0x3f83db);const qr=_0x2683e6(0x4c7);exports[_0x2683e6(0x384)]=class extends a[_0x2683e6(0x3d0)]{constructor(_0x2c8119=zn,_0x41a69c,_0x5ee6c8,_0xd573d7,_0x362a01){const _0x25b614=_0x2683e6;super(),this[_0x25b614(0x369)]=_0x2c8119,this[_0x25b614(0x577)]=_0x41a69c,this[_0x25b614(0x233)]=_0x5ee6c8,this[_0x25b614(0x3e9)]=_0xd573d7,this['_configService']=_0x362a01;const {..._0x3c8693}=this[_0x25b614(0x369)];this['_configService'][_0x25b614(0x42f)](te,_0x3c8693);}['onStarting'](){const _0x31750e=_0x2683e6;this[_0x31750e(0x49f)](),this[_0x31750e(0x601)]();}[_0x2683e6(0x214)](){const _0x52550f=_0x2683e6;a[_0x52550f(0x3cf)](this[_0x52550f(0x3e9)],[[Ve]]);}[_0x2683e6(0x2af)](){const _0x4e3435=_0x2683e6;this[_0x4e3435(0x3b6)]();}[_0x2683e6(0x49f)](){const _0x46a5a4=_0x2683e6;var _0x578fd4,_0xcb1e5e,_0x1598b5,_0x3e381e;this[_0x46a5a4(0x3e9)]['has'](a['IUndoRedoService'])&&this[_0x46a5a4(0x577)][_0x46a5a4(0x461)](_0x46a5a4(0x531),_0x46a5a4(0x27a));const _0x1c9137=[[a[_0x46a5a4(0x5cb)],{'useClass':It}],[exports[_0x46a5a4(0x17a)]],[Ot],[wt,{'useClass':An}],[exports[_0x46a5a4(0x184)]],[exports[_0x46a5a4(0x604)]],[Z[_0x46a5a4(0x4b3)]],[ke],[Fe],[Be],[We],[Rt],[Ge],[Ye],[Tt],[Ke],[bt,{'useClass':(_0xcb1e5e=(_0x578fd4=this['_config'])==null?void 0x0:_0x578fd4[_0x46a5a4(0x3a5)])!=null?_0xcb1e5e:exports[_0x46a5a4(0x5bb)]}],[S[_0x46a5a4(0x24e)],{'useClass':exports['SnapshotServerOverHTTPService']}],[a[_0x46a5a4(0x3a3)],{'useClass':exports[_0x46a5a4(0x14f)]}],[ne[_0x46a5a4(0x29d)],{'useClass':exports[_0x46a5a4(0x187)]}],[exports[_0x46a5a4(0x3de)]],[exports[_0x46a5a4(0x323)]],[exports['DesktopCollaborationStatusDisplayController']],[Ve],[De]];(_0x1598b5=this[_0x46a5a4(0x369)])!=null&&_0x1598b5[_0x46a5a4(0x4e9)]&&_0x1c9137[_0x46a5a4(0x17e)]([qe,{'useClass':Oi}]),a[_0x46a5a4(0x5cc)](this['_injector'],a[_0x46a5a4(0x372)](_0x1c9137,(_0x3e381e=this[_0x46a5a4(0x369)])==null?void 0x0:_0x3e381e[_0x46a5a4(0x3bb)]));}[_0x2683e6(0x3b6)](){const _0xab0536=_0x2683e6;this[_0xab0536(0x427)](this[_0xab0536(0x233)]['registerRenderModule'](a[_0xab0536(0x342)]['UNIVER_DOC'],[pt])),this[_0xab0536(0x427)](this['_renderManagerService']['registerRenderModule'](a[_0xab0536(0x342)]['UNIVER_SHEET'],[gt]));}['_initDependencies'](){const _0x4208bf=_0x2683e6;var _0x44897d,_0x3c4ef1;this['_injector'][_0x4208bf(0x553)](Z[_0x4208bf(0x2a2)])[_0x4208bf(0x5e8)]({'priority':0x14,'interceptor':Z[_0x4208bf(0x341)]({'maxParallel':0x6})}),(_0x44897d=this[_0x4208bf(0x369)])!=null&&_0x44897d[_0x4208bf(0x49e)]||this[_0x4208bf(0x3e9)]['get'](exports[_0x4208bf(0x604)])[_0x4208bf(0x51a)](),(_0x3c4ef1=this[_0x4208bf(0x369)])!=null&&_0x3c4ef1['enableAuthServer']&&a[_0x4208bf(0x3cf)](this[_0x4208bf(0x3e9)],[[Ge]]),a[_0x4208bf(0x3cf)](this[_0x4208bf(0x3e9)],[[Ye],[De],[exports['DataLoaderController']],[exports[_0x4208bf(0x3de)]],[exports[_0x4208bf(0x20d)]],[Ke]]);}},Kr(exports['UniverCollaborationClientPlugin'],_0x2683e6(0x4b7),qr),exports[_0x2683e6(0x384)]=Yr([a['DependentOn'](S[_0x2683e6(0x3df)],Z[_0x2683e6(0x517)]),He(0x1,a[_0x2683e6(0x5a9)]),He(0x2,K['IRenderManagerService']),He(0x3,a[_0x2683e6(0x22b)](a['Injector'])),He(0x4,a[_0x2683e6(0x58f)])],exports['UniverCollaborationClientPlugin']),exports[_0x2683e6(0x39e)]=Rn,exports[_0x2683e6(0x1f0)]=on,exports['COLLAB_WEB_SOCKET_URL_KEY']=en,exports[_0x2683e6(0x52e)]=q,exports['CollaborationStatusDisplay']=Tn,exports[_0x2683e6(0x355)]=Tt,exports[_0x2683e6(0x2d5)]=tn,exports[_0x2683e6(0x3f5)]=Ct,exports[_0x2683e6(0x1a9)]=bt,exports[_0x2683e6(0x572)]=wt,exports['LOCAL_CACHE_INTERVAL_KEY']=rn,exports[_0x2683e6(0x481)]=an,exports['RETRY_CONNECTING_MAX_COUNT_KEY']=sn,exports[_0x2683e6(0x3f4)]=Bn,exports['SNAPSHOT_SERVER_URL_KEY']=Zt,exports[_0x2683e6(0x4f8)]=Qt,exports[_0x2683e6(0x5e3)]=se,exports[_0x2683e6(0x437)]=Sn,exports[_0x2683e6(0x584)]=An,exports[_0x2683e6(0x4e3)]=hn,exports['serializeCombRequest']=_n;