direct-js
Version:
Low-level javascript library for direct
1 lines • 507 kB
JavaScript
!function(S,y){function o(){return G.__string_rec(this,"")}var t={};function e(e,t){function n(){}n.prototype=e;var i,r=new n;for(i in t)r[i]=t[i];return t.toString!==Object.prototype.toString&&(r.toString=t.toString),r}function v(e,t){this.r=new RegExp(e,t.split("u").join(""))}function C(){}function T(){}function N(e,t){this.basetime=0,this.count=0,this.max=e,this.interval=t}function U(){}function A(){this.b=""}function w(){}function x(){}function b(){}function M(){(M.instance=this).initializeFacade()}function D(){}function K(){}function j(){}function V(e){this.buf=e,this.length=e.length,this.pos=0,this.scache=[],this.cache=[],null==(e=V.DEFAULT_RESOLVER)&&(e=new j,V.DEFAULT_RESOLVER=e),this.resolver=e}function q(e){V.call(this,e)}function X(){}function Q(){}function J(){}function Z(){}function $(){}function ee(){}function te(){}function ne(){}function ie(){}function a(){}function re(){}function oe(){}function ae(){}function se(){}function le(){}function ue(){this.facade=M.getInstance()}function ce(){}function _e(){ue.call(this)}function n(){_e.call(this),l.getInstance().autoBind(this)}function he(e,t,n){this.email=e,this.pass=t,this.accessToken=n}function de(e){null!=e&&(this.id=e.id,this.group=new $i(e.group),this.profilePolicy=new er(e.profile_policy))}function fe(e){null!=e&&(this.id=e.id,null!=e.group&&(this.group=new $i(e.group)),null!=e.profile_policy)&&(this.profilePolicy=new er(e.profile_policy))}function me(e){null!=e&&(this.id=k.fromIntOrInt64(e.id),this.groupName=e.group_name,this.groupOwnerName=e.group_owner_name,this.groupOwnerEmail=e.group_owner_email,this.hasDomainInvite=e.has_domain_invite,this.updatedAt=e.updated_at,this.version=e.version)}function pe(e){this.value=e}function ge(e){null!=e&&(this.id=e.announcement_id,this.domainId=e.domain_id,this.groupId=e.group_id,this.groupName=e.group_name,this.type=O.typeOf(e.type),this.content=e.content,this.userId=e.user_id,this.userName=e.user_name,this.createdAt=e.created_at)}function Se(e){this.unreadCount=0,null!=e&&(this.domainId=e.domain_id,this.unreadCount=null!=e.unread_count?e.unread_count:0,this.maxAnnouncementId=e.max_announcement_id,null!=e.max_announcement&&(this.maxAnnouncement=new ge(e.max_announcement)),this.maxReadAnnouncementId=e.max_read_announcement_id,null==this.maxReadAnnouncementId)&&0==this.unreadCount&&(this.maxReadAnnouncementId=this.maxAnnouncementId)}function ye(e){null!=e&&(this.domainId=e.domain_id,this.readAnnouncementIds=e.read_announcement_ids)}function ve(){this.announcements=new B}function Te(e){if(this.notificationInvisibleTalkSound=!0,this.notificationInvisibleTalkPopup=!1,this.notificationVisibleTalkSound=!1,this.notificationVisibleTalkPopup=!1,this.notificationIncludingMessageContent=!0,this.notificationPopupTime=5,this.talkAutoScroll=1,this.legacyNoteEnabled=!1,this.leaveTalksEnabled=!1,this.talksSortMode="new_messages_first",this.talkRightPanelOpened=!0,this.talkRightPanelWidth=0,this.keywordWatchingText="",this.keywordWatchingEmphasis=!1,this.keywordWatchingSelfMessage=!1,this.keywordWatchingActionReply=!1,this.userDataContainer=[],this.language="ja",this.conferenceIncomingSound=!0,this.domainsSortMode="name_order_asc",this.appLeftPanelOpened=!1,this.appLeftPanelWidth=0,this.scheduledMessageDefaultTimeStr="09:00",null!=e){var t;if(null!=e.notificationInvisibleTalkSound&&(this.notificationInvisibleTalkSound=e.notificationInvisibleTalkSound),null!=e.notificationInvisibleTalkPopup&&(this.notificationInvisibleTalkPopup=e.notificationInvisibleTalkPopup),null!=e.notificationVisibleTalkSound&&(this.notificationVisibleTalkSound=e.notificationVisibleTalkSound),null!=e.notificationVisibleTalkPopup&&(this.notificationVisibleTalkPopup=e.notificationVisibleTalkPopup),null!=e.notificationIncludingMessageContent&&(this.notificationIncludingMessageContent=e.notificationIncludingMessageContent),null!=e.notificationPopupTime&&(this.notificationPopupTime=e.notificationPopupTime),null!=e.notificationVisibleTalkAutoScroll&&(this.talkAutoScroll=e.notificationVisibleTalkAutoScroll?1:3),null!=e.talkAutoScroll&&(this.talkAutoScroll=e.talkAutoScroll),null!=e.legacyNoteEnabled&&(this.legacyNoteEnabled=e.legacyNoteEnabled),null!=e.leaveTalksEnabled&&(this.leaveTalksEnabled=e.leaveTalksEnabled),null!=e.talksSortMode&&(this.talksSortMode=e.talksSortMode),this.talkRightPanelOpened=null!=e.talkRightPanelOpened?e.talkRightPanelOpened:null==a.getItem("right_panel_opened"),null!=e.talkRightPanelWidth?this.talkRightPanelWidth=e.talkRightPanelWidth:(t=P.parseInt(a.getItem("right_panel_width")),this.talkRightPanelWidth=null==t?0:t),null!=e.keywordWatchingText&&(this.keywordWatchingText=e.keywordWatchingText),null!=e.keywordWatchingEmphasis&&(this.keywordWatchingEmphasis=e.keywordWatchingEmphasis),null!=e.keywordWatchingSelfMessage&&(this.keywordWatchingSelfMessage=e.keywordWatchingSelfMessage),null!=e.keywordWatchingActionReply&&(this.keywordWatchingActionReply=e.keywordWatchingActionReply),null!=e.userDataContainer)for(var n=0,i=G.__cast(e.userDataContainer,Array);n<i.length;){var r=i[n];++n,this.userDataContainer.push(ir.fromJson(r))}null!=e.language&&(this.language=e.language),null!=e.conferenceIncomingSound&&(this.conferenceIncomingSound=e.conferenceIncomingSound),null!=e.domainsSortMode&&(this.domainsSortMode=e.domainsSortMode),this.appLeftPanelOpened=null!=e.appLeftPanelOpened?e.appLeftPanelOpened:null!=a.getItem("app_left_panel_opened"),null!=e.appLeftPanelWidth&&(this.appLeftPanelWidth=e.appLeftPanelWidth),null!=e.scheduledMessageDefaultTimeStr&&(this.scheduledMessageDefaultTimeStr=e.scheduledMessageDefaultTimeStr)}}function we(e){this.allowCreateMessageStampCategories=[],this.version=0,null!=e&&(this.version=e.version,this.allowCreateMessageStampCategories=e.allow_create_message_stamp_categories)}function Ee(e){null!=e&&(this.userId=e.user_id,this.id=e.conference_id,this.domainId=e.domain_id,this.talkId=e.talk_id,this.messageId=e.message_id,this.createdAt=e.created_at,this.expiredAt=e.expired_at,this.participants=e.participants,this.skywayVersion=null==e.skyway_version?1:e.skyway_version)}function Ie(){this.conferencesMap=new B,this.talkIdConferenceIdMap=new B}function Ne(e){null!=e&&(this.maxFriends=e.max_friends,this.maxTalks=e.max_talks,this.maxTalkers=e.max_talkers,this.maxMessageContentLength=e.max_message_content_length,this.botExpiredVersion=e.bot_expired_version,this.presenceExpiration=null!=e.presence_expiration?e.presence_expiration:Ne.DEFAULT_PRESENCE_EXPIRATION,this.allowAttachmentType=pe.fromInt(e.allow_attachment_type),this.imageSanitizationEnabled=!!e.image_sanitization_enabled,this.updateLastUsedAtInterval=null!=e.update_last_used_at_interval?e.update_last_used_at_interval:Ne.DEFAULT_PRESENCE_EXPIRATION)}function Ae(e){this.contractConference=g.None,null!=e&&(this.id=e.contract_id,this.plan=new Ar(e.plan),this.quota=new Lr(e.quota),this.solutionIds=e.solution_ids,null!=e.conference)&&(this.contractConference=g.Some(new or(e.conference)))}function be(e){if(null!=e){switch(this.id=e.department_id,this.order=e.order,this.parentId=e.parent,this.nodeType=null==e.node?ar.Normal:this.parseDepartmentNodeType(e.node),this.nodeType[1]){case 0:this.name=e.name;break;case 1:this.name=be.getLabelRoot();break;case 2:this.name=be.getLabelFree()}this.depth=0,this.childrenIds=null,this.userCount=null,this.userIds=null,this.userCountLoading=!1}}function Me(){}function De(e){null!=e&&(this.domainId=e.domain_id,this.departments=this.getDepartments(e.departments))}function Ce(){this.departmentMap=new B,this.rootDepartmentIdMap=new B}function ke(e){null!=e&&(this.departmentId=e.department_id,this.all=e.all,this.partial=e.partial)}function Re(e){null!=e&&(this.departments=this.getDepartmentUserCounts(e.departments))}function Oe(e){if(null!=e){if(this.id=k.fromIntOrInt64(e.direct_app_id),this.uniqueKey=e.unique_key,this.appUrl=e.app_url,this.locales=new B,null!=e.locales)for(var t=0,n=U.fields(e.locales);t<n.length;){var i=n[t],r=(++t,U.field(e.locales,i)),o=this.locales,r=new sr(r);null!=W[i]?o.setReserved(i,r):o.h[i]=r}if(this.features=[],null!=e.features)for(var a=0,s=G.__cast(e.features,Array);a<s.length;){var l=s[a];++a,this.features.push(new lr(l))}}}function Fe(){this.store=new B}function Ue(e){null==e||null==e.enabled?this.enabled=[]:this.enabled=G.__cast(e.enabled,Array).map(k.fromIntOrInt64)}function xe(e){null!=e&&(this.id=e.domain_id,this.updatedAt=e.updated_at,this.domainInfo=new cr(e.domain),this.contract=new Ae(e.contract),this.profileDefinition=new Mr(e.profile_definition),this.setting=new _r(e.setting),this.role=new dr(e.role),this.stampsetSetting=new Vr(e.stampset_setting),this.builtinStampSetting=new we(e.builtin_stamp_setting),this.directAppsSetting=new Ue(e.direct_apps_setting),this.closed=!1)}function Le(e){null!=e&&(this.domainId=e.domain_id,this.departments=e.departments)}function Pe(e){null!=e&&(this.id=e.domain_id,this.name=e.domain_name,this.accountControlRequestId=k.fromIntOrInt64(e.account_control_request_id),this.updatedAt=e.updated_at)}function Be(e){null!=e&&(this.id=e.user_id,this.status=e.status,this.displayName=e.display_name,this.canonicalDisplayName=e.canonical_display_name,this.phoneticDisplayName=e.phonetic_display_name,this.canonicalPhoneticDisplayName=e.canonical_phonetic_display_name,this.profileImageUrl=e.profile_image_url,this.updatedAt=e.updated_at)}function He(e){Be.call(this,e),null!=e&&(this.domainId=e.domain_id,null!=e.profile_contact&&(this.profileContact=G.__cast(e.profile_contact,Array).map(function(e){return new Cr(e)})),this.departments=e.departments,this.allowSelectedForTwoPersonsGroupTalk=0!=e.allow_selected_for_two_persons_group_talk)}function Ge(e){this.values=e}function ze(e){null!=e&&(this.fileId=e.file_id,this.url=e.get_url,this.headers=new gr(e.get_headers))}function Ye(e){null!=e&&(this.domainId=e.domain_id,this.talkId=e.talk_id,this.orderInFavorites=e.order_in_favorites,this.favoriteVersion=e.favorite_version)}function We(e){null!=e&&(this.messageId=e[0],this.talkId=e[1],this.fileId=e[2])}function Ke(){this.fileInfoMap=new B,this.fileIdStrsMap=new B,this.messageFileIdStrsMap=new B,this.noteFileIdStrsMap=new B,this.filePreviewMap=new B,this.scheduledMessageFileIdStrsMap=new B}function je(e){null!=e&&(this.domainId=e.domain_id,this.show=e.show,this.updatedAt=e.updated_at,this.version=e.version)}function Ve(){}function qe(e){null!=e&&(this.talkId=e.talk_id,null!=e.messages)&&(this.messages=G.__cast(e.messages,Array).map(function(e){return new vr(e)}))}function Xe(){}function Qe(){}function Je(e){null!=e&&(this.conferenceId=e.conference_id,this.roomName=e.room_name,this.credential=e.credential,this.mode=this.parseMode(e.mode),this.timestamp=e.timestamp,this.skywayVersion=null==e.skyway_version?1:e.skyway_version)}function Ze(){}function $e(e){Be.call(this,e),null!=e&&(this.email=e.email,this.signinId=e.signin_id,null!=e.profiles&&(this.profiles=G.__cast(e.profiles,Array).map(function(e){return new br(e)})),null!=e.departments)&&(this.departments=G.__cast(e.departments,Array).map(function(e){return new Le(e)}))}function et(e){null!=e&&(this.talkId=e[0],this.messageId=e[1],this.isMention=!!e[2])}function tt(e){this.id=e.message_id,this.talkId=e.talk_id,this.readUserIds=null==e.read_user_ids?[]:e.read_user_ids,this.unreadUserIds=null==e.unread_user_ids?[]:e.unread_user_ids}function nt(e){this.talkId=e.talk_id,this.messageIds=e.message_ids,this.mentionMessageIds=null==e.mention_message_ids?[]:e.mention_message_ids,this.readUserIds=null==e.read_user_ids?[]:e.read_user_ids,this.messageIdsExcludingUnreadCountTargets=e.message_ids_excluding_unread_count_targets,null==this.messageIdsExcludingUnreadCountTargets&&(this.messageIdsExcludingUnreadCountTargets=[])}function it(){this.messageIdsFromThisDevice=new B,this.messages=new B}function rt(){}function ot(){}function at(e){null!=e&&(this.expiration=e.expiration,this.warning=e.warning)}function st(e){this.type=null==e?Or.All:this.createPushNotificationType(e.type,e.enabled),this.version=null==e?0:e.version}function lt(e){null!=e&&(this.id=e.message_id,this.talkId=e.talk_id,this.type=O.typeOf(e.type),this.content=e.content,this.userId=e.user_id,this.recipientIds=e.assigned_user_ids,this.responses=lt.createResponses(e.responses),this.listing=e.listing,this.closingType=Ur.closingTypeOf(e.closing_type),this.maxResponseId=e.max_response_id,this.lastResponse=e.last_response,this.lastResponseUserId=e.last_response_user_id,this.createdAt=e.created_at,this.updatedAt=e.updated_at,this.responded=e.responded,this.closed=e.closed)}function ut(){this.questions=new B}function ct(e,t,n){null==e?this.readingLastMessageId=n:(this.messages=e.map(function(e){return new Br(e,t)}),this.readingLastMessageId=0<e.length?e[e.length-1].id:null)}function _t(e){if(null!=e&&(this.total=e.total,this.marker=e.marker,this.nextMarker=e.next_marker,this.contents=[],null!=e.contents))for(var t=0,n=G.__cast(e.contents,Array);t<n.length;){var i=n[t];++t,this.contents.push(new Sr(i))}}function ht(e){null!=e&&(this.total=e.total,this.marker=e.marker,this.nextMarker=e.next_marker,this.contents=[],null!=e.contents)&&(this.contents=G.__cast(e.contents,Array).map(function(e){return new qe(e)}))}function dt(e){null!=e&&(null!=e.domain_id_str&&(this.domainId=k.makeFromIdStr(e.domain_id_str)),null!=e.talk_id_str&&(this.talkId=k.makeFromIdStr(e.talk_id_str)),this.keyword=e.keyword,null==e.search_type||e.search_type==Gr.toLocalizeText(Hr.MESSAGES)?this.searchType=Hr.MESSAGES:this.searchType=Hr.ATTACHMENTS,this.sinceText=e.since,this.untilText=e.until,null!=e.from_id_str)&&(this.fromUserId=k.makeFromIdStr(e.from_id_str))}function ft(){}function mt(e){null!=e&&(this.user=new $e(e.user),this.device=e.device,this.notification=e.notification,this.passwordExpiration=new at(e.password_expiration),this.configuration=new Ne(e.configuration))}function pt(e){null!=e&&(this.solutionId=e.solution_id,this.name=e.name,null!=e.link&&(this.link=new Yr(e.link)),null!=e.plugin)&&(this.plugin=new Wr(e.plugin))}function gt(){this.loadingSolutionIdsMap=new Ua,this.solutionsMap=new Ua}function St(){}function yt(e){this.commonStampId=e}function vt(e,t,n){this.stampsetId=e,this.id=t,this.illust=n}function Tt(){this.stampsetStore=new B,this.stampStore=new B,this.stampKeyCategoryIdMap=new B}function wt(e){null!=e&&(this.stampsetId=k.fromIntOrInt64(e.stampset_id),this.name=e.name,this.icon=e.icon,this.version=e.version)}function Et(){}function It(e,t){this.talk=e,this.status=t}function Nt(){}function At(e,t){this.domainId=e.domain_id,this.talkId=e.talk_id,this.type=t?Rr.fromRawValue(e.type):Or.None,this.version=e.version}function bt(e){this.unreadMentionCount=0,this.unreadCount=0,null==e?this.pushNotificationSetting=new st:(this.id=e.talk_id,this.unreadCount=null!=e.unread_count?e.unread_count:0,this.unreadMentionCount=null!=e.unread_mention_count?e.unread_mention_count:0,this.maxMessageId=e.max_message_id,this.maxMessage=null!=e.max_message?new O(e.max_message):null,this.maxReadMessageId=e.max_read_message_id,this.maxEveryoneReadMessageId=e.max_everyone_read_message_id,this.talkOrderingTimestamp=e.talk_ordering_timestamp,this.orderInFavorites=e.order_in_favorites,this.favoriteVersion=e.favorite_version,this.pushNotificationSetting=new st(e.push_notification))}function Mt(){}function Dt(e){null!=e&&(this.talkId=e.talk_id,this.maxEveryoneReadMessageId=e.max_everyone_read_message_id,this.maxReadMessageId=h.option(e.max_read_message_id))}function Ct(e,t,n){this.file=e,this.dimension=no.createWithSize(t,n),this.auth=null}function kt(e,t,n){var i=new E(0,0);this.domainId=i,this.domainId=e,this.oldSetting=t,this.newSetting=n}function Rt(){}function Ot(e){null!=e&&(null!=e.user_id&&(this.userId=e.user_id),null!=e.email&&(this.email=e.email),null!=e.sub_email&&(this.subEmail=e.sub_email),null!=e.group_alias&&(this.groupAlias=e.group_alias),null!=e.signin_id)&&(this.signinId=e.signin_id)}function Ft(e,t){this.lastUpdatedAt=t,null!=e&&(this.userId=e.user_id,this.lastUsedAtOpt=h.option(e.last_used_at))}function Ut(e){this.success=e}function xt(e){this.success=e}function Lt(e,t,n,i,r){this.domainId=e,this.talkId=t,this.marker=n,this.nextMarker=i,this.messages=r}function Pt(e,t,n){this.domainId=e,this.talkId=t,this.marker=n.marker,this.nextMarker=n.nextMarker,this.contents=null==n.contents?[]:G.__cast(n.contents,Array).map(function(e){return new fo(e)})}function Bt(i,e){var r=this;C.iter(e,function(e){var e=new ro(e),t=e.createdAt,n=i.high-t.high|0;0==n&&(n=I.ucompare(i.low,t.low)),(i.high<0?t.high<0?n:-1:0<=t.high?n:1)<0?r.messageCreatedAtNew=e:r.messageCreatedAtOld=e})}function Ht(e){this.noteRaw=e}function Gt(e,t,n){this.callerId=e,this.error=t,this.emitterKey=n}function zt(e){this.note=new mo(e),this.emitterKey=null}function Yt(e){this.compressedNote=new Ht(e)}function Wt(e){this.result=e}function Kt(e){this.note=new mo(e)}function jt(e){this.compressedNote=new Ht(e)}function Vt(e){null!=e&&(this.marker=e.marker,this.nextMarker=e.next_marker,this.noteStatuses=ee.asArray(e.contents).map(function(e){return new Io(e)}))}function qt(e){this.note=new mo(e)}function Xt(e){this.compressedNote=new Ht(e)}function Qt(e){this.note=new mo(e)}function Jt(e){this.compressedNote=new Ht(e)}function Zt(){}function $t(e){null!=e&&(this.fileId=e.file_id,this.status=e.status,this.filePreviewFileId=e.file_preview_file_id,this.url=e.url,this.key=e.key)}function en(){}function tn(e,t){this.talkId=e,this.paneType=t}function nn(){}function rn(){}function on(){}function an(){}function sn(e){this.message=new O(e.message),this.domainId=e.domain_id,this.talkId=e.talk_id}function ln(e){this.messageId=e.message_id,this.domainId=e.domain_id,this.talkId=e.talk_id}function un(){}function cn(e,t,n,i,r){null==r&&(r=!1),this.type=e,this.content=t,this.files=n,this.createMessageAt=i,this.hasError=r}function _n(){this.scheduledMessageEdits=new B,this.scheduledMessages=new B}function hn(){}function dn(e){null!=e&&(this.noteId=new go(e.note_id),this.revision=e.revision,this.userId=e.user_id,this.deviceId=e.device_id,this.expiredAt=e.expired_at)}function fn(e){this.value=e}function mn(e){this.value=e}function pn(e){null!=e&&(this.noteId=new go(e.note_id),this.talkId=e.talk_id,this.setting=new Eo(e.setting),this.noteRevisionSummary=new wo(e.note_revision_summary))}function gn(e){null!=e&&(this.noteId=new go(e.note_id),this.talkId=e.talk_id,this.setting=new Eo(e.setting))}function Sn(e){null!=e&&(this.noteId=new go(e.note_id),this.talkId=e.talk_id,this.noteRevisionSummary=new wo(e.note_revision_summary))}function yn(){}function vn(e){null!=e&&(this.noteId=new go(e.note_id),this.revision=e.revision,this.userId=e.user_id)}function Tn(e){this.id=k.fromIntOrInt64(e.id),this.order=e.order,this.imageUrl=e.imageUrl,this.type=Tn.getReactionTypeFromReactionId(this.id)}function wn(){this.availableMessageReactionsMap=new B,this.summaries=new B,this.usersMap=new B,this.loadingMap=new B}function En(i){this.reactionCounts=new B;var r=this;null!=i&&(this.messageId=i.message_id,this.myReactionId=k.fromIntOrInt64(i.my_reaction_id),C.iter(U.fields(i.reaction_counts),function(e){var t=r.reactionCounts,n=U.field(i.reaction_counts,e);null!=W[e]?t.setReserved(e,n):t.h[e]=n}))}function In(i){this.reactionUserIds=new B;var r=this;null!=i&&(this.messageId=i.message_id,C.iter(U.fields(i.reaction_user_ids),function(e){var t=U.field(i.reaction_user_ids,e),n=r.reactionUserIds;null!=W[e]?n.setReserved(e,t):n.h[e]=t}))}function Nn(){}function An(){}function bn(e,t,n){this.ignoreCase=t,this.normalizeFunc=n,t&&(e=e.toUpperCase()),this.normalizedPattern=n(e)}function Mn(){}function Dn(){}function Cn(){}function kn(){}function Rn(){}function On(){}function i(e,t){ue.call(this),this.proxyName=null!=e?e:i.NAME,null!=t&&this.setData(t)}function Fn(e){this.rawValue=e,this.post_url=e.post_url,this.post_form=e.post_form,this.put_url=e.put_url}function Un(){}function s(){}function xn(){}function Ln(e){var t=e.id;this.id="_"+t.high+"_"+t.low,this.id_i64=e.id,this.name=e.name,this.content_type=e.contentType,this.content_size=e.contentSize,this.url=e.url}function Pn(){}function Bn(e,t){ue.call(this),this.mediatorName=null!=e?e:Bn.NAME,null!=t&&(this.viewComponent=t)}function Hn(){}function Gn(){}function zn(){this.b=[]}function Yn(){}function Wn(e,t,n){if(null==t&&(t=0),null==n&&(n=e.length-t),t<0||n<0||t+n>e.length)throw new H(Ha.OutsideBounds);this.b=e.b,this.pos=t,this.len=n,this.totlen=n}function Kn(){}function jn(){this.b=new zn}function Vn(e){if(e instanceof Array&&null==e.__enum__)this.a=e,this.byteLength=e.length;else{this.a=[];for(var t=0,n=e;t<n;){var i=t++;this.a[i]=0}this.byteLength=e}}function qn(){}function Xn(){}function Qn(){}function Jn(){}function Zn(){}function $n(){}function ei(){}var ti=S.DirectAPI=function(){this.eventEmitter=new $a},L=((t.DirectAPI=ti).__name__=["DirectAPI"],ti.getInstance=function(){return null==ti.instance&&(ti.instance=new ti),ti.instance},ti.main=function(){},ti.prototype={setOptions:function(e){null!=e&&(As.host=e.host,As.endpoint=e.endpoint,As.accessToken=e.access_token,As.proxyURL=e.proxyURL,As.account=e.account,As.talkWithBot=e.talkWithBot,As.acceptableEventTimeDiff=e.acceptableEventTimeDiff),F._d("["+L.dateStr(new Date)+"] ","current settings",As,"","",""),null==As.accessToken&&F._e("["+L.dateStr(new Date)+"] ","Not enough parameters provided. I need a access token","","","","")},parseInt64:function(e){return Ea.parseInt64(e)},stringifyInt64:function(e,t){return Ea.stringifyInt64(e,t=null==t?!1:t)},listen:function(){this.facade=l.getInstance(),this.api=G.__cast(this.facade.retrieveProxy("api"),xo),this.data=G.__cast(this.facade.retrieveProxy("dataStore"),Go),this.ID=new Ea;var e=G.__cast(this.facade.retrieveProxy("fileService"),Yo);this.notes=new pa(new ga(this,this.api,e)),this.mention=new oi,this.facade.startup()},emit:function(e,t,n,i){this.eventEmitter.emit(e,t,n,i)},on:function(e,t){return this.eventEmitter.on(e,t)},off:function(e,t){return this.eventEmitter.removeListener(e,t)},getDomainInvites:function(e){this.api._getDomainInvites(e)},acceptDomainInvite:function(e){this.api.acceptDomainInvite(e)},__class__:ti},(t.EReg=v).__name__=["EReg"],v.prototype={match:function(e){return this.r.global&&(this.r.lastIndex=0),this.r.m=this.r.exec(e),this.r.s=e,null!=this.r.m},matched:function(e){if(null!=this.r.m&&0<=e&&e<this.r.m.length)return this.r.m[e];throw new H("EReg::matched")},matchedPos:function(){if(null==this.r.m)throw new H("No string matched");return{pos:this.r.m.index,len:this.r.m[0].length}},matchSub:function(e,t,n){var i,r;return null==n&&(n=-1),this.r.global?(this.r.lastIndex=t,i=this.r,r=n<0?e:L.substr(e,0,t+n),this.r.m=i.exec(r),(i=null!=this.r.m)&&(this.r.s=e),i):((r=this.match(n<0?L.substr(e,t,null):L.substr(e,t,n)))&&(this.r.s=e,this.r.m.index+=t),r)},split:function(e){var t="#__delim__#";return e.replace(this.r,t).split(t)},map:function(e,t){for(var n=0,i="";!(n>=e.length);){if(!this.matchSub(e,n)){i+=P.string(L.substr(e,n,null));break}var r=this.matchedPos(),i=(i+=P.string(L.substr(e,n,r.pos-n)))+P.string(t(this)),n=0==r.len?(i+=P.string(L.substr(e,r.pos,1)),r.pos+1):r.pos+r.len;if(!this.r.global)break}return!this.r.global&&0<n&&n<e.length&&(i+=P.string(L.substr(e,n,null))),i},__class__:v},function(){}),ni=((t.HxOverrides=L).__name__=["HxOverrides"],L.dateStr=function(e){var t=e.getMonth()+1,n=e.getDate(),i=e.getHours(),r=e.getMinutes(),o=e.getSeconds();return e.getFullYear()+"-"+(t<10?"0"+t:""+t)+"-"+(n<10?"0"+n:""+n)+" "+(i<10?"0"+i:""+i)+":"+(r<10?"0"+r:""+r)+":"+(o<10?"0"+o:""+o)},L.strDate=function(e){switch(e.length){case 8:var t=e.split(":"),n=new Date;return n.setTime(0),n.setUTCHours(t[0]),n.setUTCMinutes(t[1]),n.setUTCSeconds(t[2]),n;case 10:t=e.split("-");return new Date(t[0],t[1]-1,t[2],0,0,0);case 19:n=e.split(" "),t=n[0].split("-"),n=n[1].split(":");return new Date(t[0],t[1]-1,t[2],n[0],n[1],n[2]);default:throw new H("Invalid date format : "+e)}},L.cca=function(e,t){e=e.charCodeAt(t);if(e==e)return e},L.substr=function(e,t,n){if(null==n)n=e.length;else if(n<0){if(0!=t)return"";n=e.length+n}return e.substr(t,n)},L.remove=function(e,t){t=e.indexOf(t);return-1!=t&&(e.splice(t,1),!0)},L.iter=function(e){return{cur:0,arr:e,hasNext:function(){return this.cur<this.arr.length},next:function(){return this.arr[this.cur++]}}},(t.Lambda=C).__name__=["Lambda"],C.array=function(e){for(var t=[],n=Ja(e)();n.hasNext();){var i=n.next();t.push(i)}return t},C.map=function(e,t){for(var n=new ni,i=Ja(e)();i.hasNext();){var r=i.next();n.add(t(r))}return n},C.mapi=function(e,t){for(var n=new ni,i=0,r=Ja(e)();r.hasNext();){var o=r.next();n.add(t(i++,o))}return n},C.has=function(e,t){for(var n=Ja(e)();n.hasNext();)if(n.next()==t)return!0;return!1},C.exists=function(e,t){for(var n=Ja(e)();n.hasNext();)if(t(n.next()))return!0;return!1},C.foreach=function(e,t){for(var n=Ja(e)();n.hasNext();)if(!t(n.next()))return!1;return!0},C.iter=function(e,t){for(var n=Ja(e)();n.hasNext();)t(n.next())},C.filter=function(e,t){for(var n=new ni,i=Ja(e)();i.hasNext();){var r=i.next();t(r)&&n.add(r)}return n},C.fold=function(e,t,n){for(var i=Ja(e)();i.hasNext();)n=t(i.next(),n);return n},C.count=function(e,t){var n=0;if(null==t)for(var i=Ja(e)();i.hasNext();){i.next();++n}else for(var r=Ja(e)();r.hasNext();)t(r.next())&&++n;return n},C.find=function(e,t){for(var n=Ja(e)();n.hasNext();){var i=n.next();if(t(i))return i}return null},function(){this.length=0}),ii=((t.List=ni).__name__=["List"],ni.prototype={add:function(e){e=new ii(e,null);null==this.h?this.h=e:this.q.next=e,this.q=e,this.length++},isEmpty:function(){return null==this.h},remove:function(e){for(var t=null,n=this.h;null!=n;){if(n.item==e)return null==t?this.h=n.next:t.next=n.next,this.q==n&&(this.q=t),this.length--,!0;n=(t=n).next}return!1},iterator:function(){return new ri(this.h)},map:function(e){for(var t=new ni,n=this.h;null!=n;){var i=n.item,n=n.next;t.add(e(i))}return t},__class__:ni},function(e,t){this.item=e,this.next=t}),ri=((t["_List.ListNode"]=ii).__name__=["_List","ListNode"],ii.prototype={__class__:ii},function(e){this.head=e}),oi=((t["_List.ListIterator"]=ri).__name__=["_List","ListIterator"],ri.prototype={hasNext:function(){return null!=this.head},next:function(){var e=this.head.item;return this.head=this.head.next,e},__class__:ri},Math.__name__=["Math"],function(){this.forAll="ALL"}),ai=((t.MentionUtil=oi).__name__=["MentionUtil"],oi.extractMentionParts=function(e){return gs.extractMentionParts(e).map(function(e){return new ai(e)})},oi.removeMentionMarkup=function(e){return gs.removeMentionMarkup(e)},oi.prototype={markup:function(e){var t,n;return e&&e.id&&(e.name||e.displayName)?(t=k.makeFromIdStr(e.id),n=e.displayName||e.name,"{@:"+Ma.toString(t)+","+(gs.codePointCount(n)+1)+"}@"+n):"string"==typeof e&&"ALL"==e?"{@:ALL,4}@ALL":null},__class__:oi},function(e){this.start=e.start,this.end=e.end,this.userIdNumStr=e.userIdNumStr,this.mentionText=e.mentionText}),P=((t.MentionPart=ai).__name__=["MentionPart"],ai.prototype={isALL:function(){return"ALL"==this.userIdNumStr},__class__:ai},(t.ObjectHelper=T).__name__=["ObjectHelper"],T.deepCopy=function(e){return null==e?null:JSON.parse(JSON.stringify(e))},(t.RateLimit=N).__name__=["RateLimit"],N.prototype={_now:function(){return(new Date).getTime()},calculateRetryAfter:function(e){e=0<this.basetime?this.interval-(e-this.basetime):this.interval;return Math.ceil(e/1e3)},createError:function(e){var t=this.max+" calls every "+Math.floor(this.interval/1e3)+" sec";return Ta.createTooManyRequestsError(t,this.calculateRetryAfter(e))},apply:function(i){var r=this;return new Promise(function(e,t){var n=r._now();if(0<r.max&&n-r.basetime>r.interval)r.basetime=n,r.count=1;else{if(!(0<r.max&&r.count<r.max))return void t(r.createError(n));r.count++}i().then(e,t)})},__class__:N},(t.Reflect=U).__name__=["Reflect"],U.field=function(e,t){try{return e[t]}catch(e){return null}},U.fields=function(e){var t=[];if(null!=e){var n,i=Object.prototype.hasOwnProperty;for(n in e)"__id__"!=n&&"hx__closures__"!=n&&i.call(e,n)&&t.push(n)}return t},U.isFunction=function(e){return"function"==typeof e&&!(e.__name__||e.__ename__)},U.compare=function(e,t){return e==t?0:t<e?1:-1},U.isEnumValue=function(e){return null!=e&&null!=e.__enum__},U.deleteField=function(e,t){return!!Object.prototype.hasOwnProperty.call(e,t)&&(delete e[t],!0)},U.copy=function(e){for(var t={},n=0,i=U.fields(e);n<i.length;){var r=i[n];++n,t[r]=U.field(e,r)}return t},function(){}),r=((t.Std=P).__name__=["Std"],P.string=function(e){return G.__string_rec(e,"")},P.parseInt=function(e){var t=parseInt(e,10);return 0!=t||120!=L.cca(e,1)&&88!=L.cca(e,1)||(t=parseInt(e)),isNaN(t)?null:t},(t.StringBuf=A).__name__=["StringBuf"],A.prototype={toString:function(){return this.b},__class__:A},(t.StringTools=w).__name__=["StringTools"],w.htmlEscape=function(e,t){return e=e.split("&").join("&").split("<").join("<").split(">").join(">"),t?e.split('"').join(""").split("'").join("'"):e},w.startsWith=function(e,t){return e.length>=t.length&&L.substr(e,0,t.length)==t},w.isSpace=function(e,t){e=L.cca(e,t);return 8<e&&e<14||32==e},w.ltrim=function(e){for(var t=e.length,n=0;n<t&&w.isSpace(e,n);)++n;return 0<n?L.substr(e,n,t-n):e},w.rtrim=function(e){for(var t=e.length,n=0;n<t&&w.isSpace(e,t-n-1);)++n;return 0<n?L.substr(e,0,t-n):e},w.trim=function(e){return w.ltrim(w.rtrim(e))},w.replace=function(e,t,n){return e.split(t).join(n)},w.hex=function(e,t){for(var n="";n="0123456789ABCDEF".charAt(15&e)+n,0<(e>>>=4););if(null!=t)for(;n.length<t;)n="0"+n;return n},t.ValueType={__ename__:["ValueType"],__constructs__:["TNull","TInt","TFloat","TBool","TObject","TFunction","TClass","TEnum","TUnknown"]}),l=(r.TNull=["TNull",0],r.TNull.toString=o,(r.TNull.__enum__=r).TInt=["TInt",1],r.TInt.toString=o,(r.TInt.__enum__=r).TFloat=["TFloat",2],r.TFloat.toString=o,(r.TFloat.__enum__=r).TBool=["TBool",3],r.TBool.toString=o,(r.TBool.__enum__=r).TObject=["TObject",4],r.TObject.toString=o,(r.TObject.__enum__=r).TFunction=["TFunction",5],r.TFunction.toString=o,(r.TFunction.__enum__=r).TClass=function(e){e=["TClass",6,e];return e.__enum__=r,e.toString=o,e},r.TEnum=function(e){e=["TEnum",7,e];return e.__enum__=r,e.toString=o,e},r.TUnknown=["TUnknown",8],r.TUnknown.toString=o,(r.TUnknown.__enum__=r).__empty_constructs__=[r.TNull,r.TInt,r.TFloat,r.TBool,r.TObject,r.TFunction,r.TUnknown],(t.Type=x).__name__=["Type"],x.getClassName=function(e){e=e.__name__;return null==e?null:e.join(".")},x.getEnumName=function(e){return e.__ename__.join(".")},x.resolveClass=function(e){e=t[e];return null!=e&&e.__name__?e:null},x.resolveEnum=function(e){e=t[e];return null!=e&&e.__ename__?e:null},x.createInstance=function(e,t){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6]);case 8:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]);case 9:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]);case 10:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9]);case 11:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10]);case 12:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11]);case 13:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12]);case 14:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13]);default:throw new H("Too many arguments")}},x.createEmptyInstance=function(e){function t(){}return t.prototype=e.prototype,new t},x.createEnum=function(e,t,n){var i=U.field(e,t);if(null==i)throw new H("No such constructor "+t);if(U.isFunction(i)){if(null==n)throw new H("Constructor "+t+" need parameters");return i.apply(e,n)}if(null!=n&&0!=n.length)throw new H("Constructor "+t+" does not need parameters");return i},x.typeof=function(e){var t;switch(typeof e){case"boolean":return r.TBool;case"function":return e.__name__||e.__ename__?r.TObject:r.TFunction;case"number":return Math.ceil(e)==e%2147483648?r.TInt:r.TFloat;case"object":return null==e?r.TNull:null!=(t=e.__enum__)?r.TEnum(t):null!=(t=G.getClass(e))?r.TClass(t):r.TObject;case"string":return r.TClass(String);case"undefined":return r.TNull;default:return r.TUnknown}},x.enumEq=function(e,t){if(e!=t)try{if(e[0]!=t[0])return!1;for(var n=2,i=e.length;n<i;){var r=n++;if(!x.enumEq(e[r],t[r]))return!1}var o=e.__enum__;if(o!=t.__enum__||null==o)return!1}catch(e){return!1}return!0},(t["puremvc.interfaces.IFacade"]=b).__name__=["puremvc","interfaces","IFacade"],b.prototype={__class__:b},(t["puremvc.patterns.facade.Facade"]=M).__name__=["puremvc","patterns","facade","Facade"],M.__interfaces__=[b],M.getInstance=function(){return M.instance=null==M.instance?new M:M.instance},M.prototype={initializeFacade:function(){this.initializeModel(),this.initializeController(),this.initializeView()},initializeController:function(){null==this.controller&&(this.controller=ja.getInstance())},initializeModel:function(){null==this.model&&(this.model=Va.getInstance())},initializeView:function(){null==this.view&&(this.view=qa.getInstance())},registerCommand:function(e,t){this.controller.registerCommand(e,t)},removeCommand:function(e){this.controller.removeCommand(e)},hasCommand:function(e){return this.controller.hasCommand(e)},registerProxy:function(e){this.model.registerProxy(e)},retrieveProxy:function(e){return this.model.retrieveProxy(e)},removeProxy:function(e){var t=null;return t=null!=this.model?this.model.removeProxy(e):t},hasProxy:function(e){return this.model.hasProxy(e)},registerMediator:function(e){null!=this.view&&this.view.registerMediator(e)},retrieveMediator:function(e){return this.view.retrieveMediator(e)},removeMediator:function(e){var t=null;return t=null!=this.view?this.view.removeMediator(e):t},hasMediator:function(e){return this.view.hasMediator(e)},sendNotification:function(e,t,n){this.notifyObservers(new Xa(e,t,n))},notifyObservers:function(e){null!=this.view&&this.view.notifyObservers(e)},__class__:M},function(){M.call(this)}),si=((t["albero.AppFacade"]=l).__name__=["albero","AppFacade"],l.getInstance=function(){return null==M.instance&&(M.instance=new l),G.__cast(M.instance,l)},l.__super__=M,l.prototype=e(M.prototype,{initializeFacade:function(){M.prototype.initializeFacade.call(this)},initializeModel:function(){M.prototype.initializeModel.call(this);for(var e=(e=[]).concat([new $o,new Bo,new Go,new Ho,new _a,new Uo,new xo,new fa,new Lo,new Po,Wo.newInstance(),new aa,new ua,new jo,new zo,new ca,new oa,new Zo,new da,new ha,new Jo,Oo.newInstance()]),t=0;t<e.length;){var n=e[t];++t,this.registerProxy(n)}for(var i=0;i<e.length;){var r=e[i];++i,this.autoBind(r)}},initializeView:function(){M.prototype.initializeView.call(this);for(var e=0,t=this.getMediators();e<t.length;){var n=t[e];++e,this.registerMediator(n)}},getMediators:function(){return[new va]},initializeController:function(){M.prototype.initializeController.call(this);for(var e=[Si,Wi,Ki,Ui,Yi,ji,Ai,Oi,Ei,Gi,Xi,qi,Qi,Ji,Bi,hi,bi,pi,fi,ki,wi,Li,Di],t=(e.push(vi),0);t<e.length;){var n=e[t],i=(++t,w.replace(x.getClassName(n).split(".").pop(),"Command",""));this.registerCommand(i,n)}},registerMediator:function(e){this.autoBind(e),M.prototype.registerMediator.call(this,e)},autoBind:function(e){for(var t=za.getFields(null==e?null:G.getClass(e)),n=0,i=U.fields(t);n<i.length;){var r=i[n],o=(++n,U.field(t,r));Object.prototype.hasOwnProperty.call(o,"inject")&&(null==(o=this.retrieveProxy(r))?x.getClassName(null==e?null:G.getClass(e)):(x.getClassName(null==e?null:G.getClass(e)),x.getClassName(null==o?null:G.getClass(o)),e[r]=o))}},startup:function(){G.__cast(this.retrieveProxy("appState"),Bo).start()},__class__:l}),t["albero.AppState"]={__ename__:["albero","AppState"],__constructs__:["Active","Inactive"]}),li=(si.Active=["Active",0],si.Active.toString=o,(si.Active.__enum__=si).Inactive=["Inactive",1],si.Inactive.toString=o,(si.Inactive.__enum__=si).__empty_constructs__=[si.Active,si.Inactive],t["albero.ConnectionStatus"]={__ename__:["albero","ConnectionStatus"],__constructs__:["Ok","Error","ConcurrentAccessError","ForcibliyClosedError"]}),k=(li.Ok=["Ok",0],li.Ok.toString=o,(li.Ok.__enum__=li).Error=["Error",1],li.Error.toString=o,(li.Error.__enum__=li).ConcurrentAccessError=["ConcurrentAccessError",2],li.ConcurrentAccessError.toString=o,(li.ConcurrentAccessError.__enum__=li).ForcibliyClosedError=["ForcibliyClosedError",3],li.ForcibliyClosedError.toString=o,(li.ForcibliyClosedError.__enum__=li).__empty_constructs__=[li.Ok,li.Error,li.ConcurrentAccessError,li.ForcibliyClosedError],(t["albero.ContentTypeResolver"]=D).__name__=["albero","ContentTypeResolver"],D.prototype={__class__:D},(t["albero.DefaultContentTypeResolver"]=K).__name__=["albero","DefaultContentTypeResolver"],K.__interfaces__=[D],K.getContentTypeByFileName=function(e,t){if(ci.isNotEmpty(t))return"csv"==K.getExtension(e)?"text/csv":t;switch(K.getExtension(e)){case"csv":return"text/csv";case"doc":return"application/msword";case"docm":return"application/vnd.ms-word.document.macroenabled.12";case"docx":return"application/vnd.openxmlformats-officedocument.wordprocessingml.document";case"gif":return"image/gif";case"htm":case"html":return"text/html";case"jpeg":case"jpg":return"image/jpeg";case"lzh":return"application/x-lzh";case"md":return"text/markdown";case"pdf":return"application/pdf";case"png":return"image/png";case"ppt":return"application/vnd.ms-powerpoint";case"pptm":return"application/vnd.ms-powerpoint.presentation.macroenabled.12";case"pptx":return"application/vnd.openxmlformats-officedocument.presentationml.presentation";case"rar":return"application/vnd.rar";case"svg":return"image/svg+xml";case"txt":return"text/plain";case"webp":return"image/webp";case"xls":return"application/vnd.ms-excel";case"xlsb":return"application/vnd.ms-excel.sheet.binary.macroenabled.12";case"xlsm":return"application/vnd.ms-excel.sheet.macroenabled.12";case"xlsx":return"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";case"xml":return"text/xml";default:return"application/octet-stream"}},K.getExtension=function(e){var t;return null==e||0==(t=(e=e.split(".")).length)?"":e[t-1]},K.prototype={resolve:function(e){return K.getContentTypeByFileName(e.name,e.type)},__class__:K},(t["haxe._Unserializer.DefaultResolver"]=j).__name__=["haxe","_Unserializer","DefaultResolver"],j.prototype={resolveClass:function(e){return x.resolveClass(e)},resolveEnum:function(e){return x.resolveEnum(e)},__class__:j},(t["haxe.Unserializer"]=V).__name__=["haxe","Unserializer"],V.initCodes=function(){for(var e=[],t=0,n=V.BASE64.length;t<n;){var i=t++;e[V.BASE64.charCodeAt(i)]=i}return e},V.prototype={readDigits:function(){for(var e=0,t=!1,n=this.pos;;){var i=this.buf.charCodeAt(this.pos);if(i!=i)break;if(45==i){if(this.pos!=n)break;t=!0}else{if(i<48||57<i)break;e=10*e+(i-48)}this.pos++}return t&&(e*=-1),e},readFloat:function(){for(var e=this.pos;;){var t=this.buf.charCodeAt(this.pos);if(t!=t)break;if(!(43<=t&&t<58||101==t||69==t))break;this.pos++}return parseFloat(L.substr(this.buf,e,this.pos-e))},unserializeObject:function(e){for(;;){if(this.pos>=this.length)throw new H("Invalid object");if(103==this.buf.charCodeAt(this.pos))break;var t=this.unserialize();if("string"!=typeof t)throw new H("Invalid object key");var n=this.unserialize();e[t]=n}this.pos++},unserializeEnum:function(e,t){if(58!=this.buf.charCodeAt(this.pos++))throw new H("Invalid enum format");var n=this.readDigits();if(0==n)return x.createEnum(e,t);for(var i=[];0<n--;)i.push(this.unserialize());return x.createEnum(e,t,i)},unserialize:function(){switch(this.buf.charCodeAt(this.pos++)){case 65:var e=this.unserialize(),t=this.resolver.resolveClass(e);if(null==t)throw new H("Class not found "+e);return t;case 66:var e=this.unserialize(),t=this.resolver.resolveEnum(e);if(null==t)throw new H("Enum not found "+e);return t;case 67:e=this.unserialize(),t=this.resolver.resolveClass(e);if(null==t)throw new H("Class not found "+e);e=x.createEmptyInstance(t);if(this.cache.push(e),e.hxUnserialize(this),103!=this.buf.charCodeAt(this.pos++))throw new H("Invalid custom data");return e;case 77:var n=new xa;for(this.cache.push(n),this.buf;104!=this.buf.charCodeAt(this.pos);){var i=this.unserialize();n.set(i,this.unserialize())}return this.pos++,n;case 82:t=this.readDigits();if(t<0||t>=this.scache.length)throw new H("Invalid string reference");return this.scache[t];case 97:this.buf;var r=[];for(this.cache.push(r);;){var o=this.buf.charCodeAt(this.pos);if(104==o){this.pos++;break}117==o?(this.pos++,o=this.readDigits(),r[r.length+o-1]=null):r.push(this.unserialize())}return r;case 98:var a=new B;for(this.cache.push(a),this.buf;104!=this.buf.charCodeAt(this.pos);){var s=this.unserialize(),l=this.unserialize();null!=W[s]?a.setReserved(s,l):a.h[s]=l}return this.pos++,a;case 99:e=this.unserialize(),t=this.resolver.resolveClass(e);if(null==t)throw new H("Class not found "+e);e=x.createEmptyInstance(t);return this.cache.push(e),this.unserializeObject(e),e;case 100:return this.readFloat();case 102:return!1;case 105:return this.readDigits();case 106:t=this.unserialize(),e=this.resolver.resolveEnum(t);if(null==e)throw new H("Enum not found "+t);this.pos++;var u=this.readDigits(),c=e.__constructs__.slice()[u];if(null==c)throw new H("Unknown enum index "+t+"@"+u);t=this.unserializeEnum(e,c);return this.cache.push(t),t;case 107:return NaN;case 108:var _=new ni;for(this.cache.push(_),this.buf;104!=this.buf.charCodeAt(this.pos);)_.add(this.unserialize());return this.pos++,_;case 109:return-1/0;case 110:return null;case 111:u={};return this.cache.push(u),this.unserializeObject(u),u;case 112:return 1/0;case 113:for(var h=new Ua,d=(this.cache.push(h),this.buf,this.buf.charCodeAt(this.pos++));58==d;){var f=this.readDigits(),m=this.unserialize();h.h[f]=m,d=this.buf.charCodeAt(this.pos++)}if(104!=d)throw new H("Invalid IntMap format");return h;case 114:e=this.readDigits();if(e<0||e>=this.cache.length)throw new H("Invalid reference");return this.cache[e];case 115:var c=this.readDigits(),p=this.buf;if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos<c)throw new H("Invalid bytes length");for(var g=V.CODES,S=(null==g&&(g=V.initCodes(),V.CODES=g),this.pos),t=3&c,y=S+(c-t),v=new Pa(new Ds(3*(c>>2)+(2<=t?t-1:0))),T=0;S<y;){var w=g[p.charCodeAt(S++)],E=g[p.charCodeAt(S++)],w=(v.b[T++]=255&(w<<2|E>>4),g[p.charCodeAt(S++)]),E=(v.b[T++]=255&(E<<4|w>>2),g[p.charCodeAt(S++)]);v.b[T++]=255&(w<<6|E)}return 2<=t&&(u=g[p.charCodeAt(S++)],e=g[p.charCodeAt(S++)],v.b[T++]=255&(u<<2|e>>4),3==t)&&(u=g[p.charCodeAt(S++)],v.b[T++]=255&(e<<4|u>>2)),this.pos+=c,this.cache.push(v),v;case 116:return!0;case 118:return 48<=this.buf.charCodeAt(this.pos)&&this.buf.charCodeAt(this.pos)<=57&&48<=this.buf.charCodeAt(this.pos+1)&&this.buf.charCodeAt(this.pos+1)<=57&&48<=this.buf.charCodeAt(this.pos+2)&&this.buf.charCodeAt(this.pos+2)<=57&&48<=this.buf.charCodeAt(this.pos+3)&&this.buf.charCodeAt(this.pos+3)<=57&&45==this.buf.charCodeAt(this.pos+4)?(I=L.strDate(L.substr(this.buf,this.pos,19)),this.pos+=19):(t=this.readFloat(),I=new Date(t)),this.cache.push(I),I;case 119:e=this.unserialize(),u=this.resolver.resolveEnum(e);if(null==u)throw new H("Enum not found "+e);c=this.unserializeEnum(u,this.unserialize());return this.cache.push(c),c;case 120:throw H.wrap(this.unserialize());case 121:t=this.readDigits();if(58!=this.buf.charCodeAt(this.pos++)||this.length-this.pos<t)throw new H("Invalid string length");var I=L.substr(this.buf,this.pos,t);return this.pos+=t,I=decodeURIComponent(I.split("+").join(" ")),this.scache.push(I),I;case 122:return 0}throw this.pos--,new H("Invalid char "+this.buf.charAt(this.pos)+" at position "+this.pos)},__class__:V},(t["albero.CustomUnserializer"]=q).__name__=["albero","CustomUnserializer"],q.run=function(e){return new V(e).unserialize()},q.__super__=V,q.prototype=e(V.prototype,{unserialize:function(){if(99!=this.buf.charCodeAt(this.pos))return V.prototype.unserialize.call(this);this.pos++;var e=this.unserialize(),t=this.resolver.resolveClass(e);if(null==t)throw new H("Class not found "+e);e=x.createEmptyInstance(t);return this.cache.push(e),this.unserializeObject(e),G.__instanceof(e,E)?_.getOrStore(G.__cast(e,E)):e},__class__:q}),(t["albero.DateTimeHelper"]=X).__name__=["albero","DateTimeHelper"],X.isSameDate=function(e,t){return e.getFullYear()==t.getFullYear()&&e.getMonth()==t.getMonth()&&e.getDate()==t.getDate()},X.dateString=function(e,t){var n=new Date,i="";return e.getFullYear()!=n.getFullYear()&&(i+=e.getFullYear()+"/"),i+=e.getMonth()+1+"/"+e.getDate(),t&&(i+=" ("+X.dayOfWeekString(e)+")"),i},X.dayOfWeekString=function(e){switch(e.getDay()){case 0:return p.localize("DateTimeHelper.sun");case 1:return p.localize("DateTimeHelper.mon");case 2:return p.localize("DateTimeHelper.tue");case 3:return p.localize("DateTimeHelper.wed");case 4:return p.localize("DateTimeHelper.thu");case 5:return p.localize("DateTimeHelper.fri");default:return p.localize("DateTimeHelper.sat")}},X.dateStringForPicker=function(e){return e.getFullYear()+"-"+X.toDoubleDigits(e.getMonth()+1)+"-"+X.toDoubleDigits(e.getDate())},X.getDateStringForFile=function(){var e=new Date;return e.getFullYear()+X.toDoubleDigits(e.getMonth()+1)+X.toDoubleDigits(e.getDate())+"_"+X.toDoubleDigits(e.getHours())+X.toDoubleDigits(e.getMinutes())+X.toDoubleDigits(e.getSeconds())},X.getTimeStringForVoice=function(e){return X.toDoubleDigits(e/60|0)+":"+X.toDoubleDigits((0|e)%60)},X.toDoubleDigits=function(e){e=null==e?"null":""+e;return e=1==e.length?"0"+e:e},X.nowAsInt64=function(){return X.dateAsInt64((new Date).getTime())},X.oneDayAfterAsInt64=function(){return X.dateAsInt64((new Date).getTime()+864e5)},X.afterAsInt64=function(e){return X.dateAsInt64((new Date).getTime()+e)},X.dateAsInt64=function(e){var t=4294967296;return new E(e/t|0,e%t|0)},X.abbreviateDatetimeString=function(e){var t,n,i;return null==e?"":(t=new Date,n=4294967296,i=e.high,e=e.low,i=new Date(i*n+(0<=e?e:e+n)),t.getFullYear()==i.getFullYear()&&t.getMonth()==i.getMonth()&&t.getDate()==i.getDate()?i.getHours()+":"+(i.getMinutes()<10?"0":"")+i.getMinutes():X.dateString(i,!1))},X.getDateStringForNotification=function(e){var t,n,i;return null==e?"":(t=new Date,n=4294967296,i=e.high,e=e.low,i=new Date(i*n+(0<=e?e:e+n)),t.getFullYear()==i.getFullYear()&&t.getMonth()==i.getMonth()&&t.getDate()==i.getDate()?i.getHours()+":"+(i.getMinutes()<10?"0":"")+i.getMinutes():i.getMonth()+1+"/"+i.getDate())},X.datetimeStringIn11Chars=function(e){var t,n,i;return null==e?"":(t=new Date,n=4294967296,i=e.high,e=e.low,i=new Date(i*n+(0<=e?e:e+n)),e=X.dateString(i,!1),t.getFullYear()==i.getFullYear()&&(e+=" "+i.getHours()+":"+(i.getMinutes()<10?"0":"")+i.getMinutes()),e)},X.timeString=function(e){var t,n;return null==e?"":(t=4294967296,n=e.high,e=e.low,(n=new Date(n*t+(0<=e?e:e+t))).getHours()+":"+(n.getMinutes()<10?"0":"")+n.getMinutes())},X.datetimeString=function(e){return null==e?"":(e=parseFloat(Ma.toString(e)),(e=new Date(e)).getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "+e.getHours()+":"+(e.getMinutes()<10?"0":"")+e.getMinutes())},(t["albero.FileDynamicHelper"]=Q).__name__=["albero","FileDynamicHelper"],Q.filterDeleted=function(e){return null==e?[]:e.filter(Q.isNotDeleted)},Q.isNotDeleted=function(e){return null==e.deleted||!e.deleted},Q.createFileInfoDynamic=function(e,t,n,i){var r={url:i.get_url,content_type:e.type,content_size:e.size,name:t,file_id:i.file_id};return h.foreach(n,function(e){null!=e.auth&&(r.thumbnail_url=e.auth.get_url),null!=e.dimension&&(r.thumbnail_dimension=e.dimension.toObject())}),r},(t["albero.FileHelper"]=J).__name__=["albero","FileHelper"],J.createByteSizeStringWithUnit=function(e){if(null==e)return"0 B";for(var t=["","K","M","G","T"];;){var n,i=n=Ma.divMod(e,_.make(0,1024)).quotient,r=new E(0,0),o=i.high-r.high|0;if(0==o&&(o=I.ucompare(i.low,r.low)),!(0<(i.high<0?r.high<0?o:-1:0<=r.high?o:1)))break;e=n,t.shift()}return Ma.toString(e)+" "+t.shift()+"B"},J.extractFilenameExceptExtension=function(e){return new v("\\.(?=[^.]+$)","").split(e)[0]},J.getUniqueFilename=function(e,t){for(var n=e,i=0;null!=W[n]?t.existsReserved(n):t.h.hasOwnProperty(n);){++i;var r=J.extractFilenameExceptExtension(e),n=r+"("+i+")"+L.substr(e,r.length,null)}return n},(t["albero.History"]=Z).__name__=["albero","History"],Z.replaceState=function(e,t,n){return null!=window.history&&(window.history.replaceState(e,t,n),!0)},function(){}),ui=((t["albero.Int64Helper"]=k).__name__=["albero","Int64Helper"],k.parse=function(e){if(!new v("^\\d+$","").match(e))return null;for(var t=_.make(0,0),n=_.make(0,10),i=0,r=e.length;i<r;){var o=i++,a=65535&t.low,s=t.low>>>16,l=65535&n.low,u=n.low>>>16,c=I._mul(a,l),l=I._mul(s,l),a=I._mul(a,u),s=(I._mul(s,u)+(a>>>16)|0)+(l>>>16)|0,s=(a<<=16,I.ucompare(u=c+a|0,a)<0&&(s++,s|=0),l<<=16,I.ucompare(u=u+l|0,l)<0&&(s++,s|=0),s+(I._mul(t.low,n.high)+I._mul(t.high,n.low)|0)|0),c=new E(s,u),a=_.make(0,P.parseInt(e.charAt(o))),l=c.high+a.high|0,s=c.low+a.low|0;I.ucompare(s,c.low)<0&&(l++,l|=0);t=new E(l,s)}return t},k.getHigh=function(e){return e.high},k.getLow=function(e){return e.low},k.idStr=function(e){return"_"+e.high+"_"+e.low},k.makeFromIdStr=function(e){var t=new v("^_(-?\\d*)_(-?\\d*)$","");return t.match(e)?_.make(P.parseInt(t.matched(1)),P.parseInt(t.matched(2))):null},k.fromNullableIdStr=function(e){return null!=e?k.makeFromIdStr(e):null},k.toStr=function(e){return Ma.toString(e)},k.isNeg=function(e){return e.high<0},k.add=function(e,t){var n=e.high+t.high|0,t=e.low+t.low|0;return I.ucompare(t,e.low)<0&&(n++,n|=0),new E(n,t)},k.sub=function(e,t){var n=e.high-t.high|0,i=e.low-t.low|0;return I.ucompare(e.low,t.low)<0&&(n--,n|=0),new E(n,i)},k.compare=function(e,t){var n=e.high-t.high|0;return 0==n&&(n=I.ucompare(e.low,t.low)),e.high<0?t.high<0?n:-1:0<=t.high?n:1},k.eq=function(e,t){return null!=e&&null!=t&&e.high==t.high&&e.low==t.low},k.eqOrBothNull=func