chunk-87e4d9de.2c36834f.js 40 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-87e4d9de"],{"09fa":function(t,e,n){var i=n("4588"),s=n("9def");t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=s(e);if(e!==n)throw RangeError("Wrong length!");return n}},"0dd6":function(t,e,n){"use strict";var i=n("5596"),s=n.n(i);s.a},"0f88":function(t,e,n){var i,s=n("7726"),r=n("32e9"),o=n("ca5a"),a=o("typed_array"),c=o("view"),u=!(!s.ArrayBuffer||!s.DataView),l=u,h=0,f=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(h<f)(i=s[d[h++]])?(r(i.prototype,a,!0),r(i.prototype,c,!0)):l=!1;t.exports={ABV:u,CONSTR:l,TYPED:a,VIEW:c}},"2b14":function(t,e,n){"use strict";var i=n("3557"),s=n.n(i);s.a},"2f35":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.repealMsg?n("div",{staticClass:"msg-repeal-item"},[t._v("\n "+t._s(t.repealStr)+"\n")]):t.msgItem&&t.msgItem.redPackTip?n("redPack-tip",{attrs:{info:t.msgItem}}):n("div",{staticClass:"msg-item clearfix",class:t.type},[t.timeMsg?n("msg-time",{attrs:{timestamp:t.timestamp}}):t._e(),t.avatar?n("img",{staticClass:"user-avatar avatar",attrs:{src:t.avatar,alt:""},on:{click:function(e){t.$showOtherInfo(t.userId)}}}):n("div",{staticClass:"avatar",class:"avatar_bg"+t.userId%9,attrs:{"data-name":t.name&&t.name.slice(0,2).toUpperCase()},on:{click:function(e){t.$showOtherInfo(t.userId)}}}),n("div",{staticClass:"content"},[n("div",{staticClass:"metabar"},[n("span",{staticClass:"name"},[t._v(t._s(t.name))]),t.creator==t.userId?n("span",{staticClass:"admin"},["me"===t.type?n("i",{staticClass:"icon-creator"}):t._e(),t._v("\n 群主\n "),"you"===t.type?n("i",{staticClass:"icon-creator"}):t._e()]):t.adminList.includes(Number(t.userId))?n("span",{staticClass:"admin"},["me"===t.type?n("i",{staticClass:"el-icon-star-on"}):t._e(),t._v("\n 管理员\n "),"you"===t.type?n("i",{staticClass:"el-icon-star-on"}):t._e()]):t._e(),n("span",{staticClass:"time"},[t._v(t._s(t._f("formatTimestamp")(t.timestamp)))])]),4==t.msg_type&&t.msgItem?n("red-packet",{attrs:{info:t.msgItem},nativeOn:{click:function(e){t.$packetGet(t.msgItem)}}}):t.isMobile?[n("div",{staticClass:"bubble disabled",class:{focus:t.showToolbar},on:{contextmenu:function(t){t.preventDefault()},touchstart:t.onTouchStartToolBtn,touchend:t.onTouchEndToolBtn}},[t.loading?n("i",{staticClass:"loading-icon"}):t._e(),t.fail?n("i",{staticClass:"error-icon",on:{click:t.reSend}}):t._e(),1==t.msg_type?n("img",{staticClass:"img-msg",style:{width:t.width,height:t.height},attrs:{src:t.content},on:{click:function(e){t.$showImgPreview(t.content)},load:t.imgLoad}}):2==t.msg_type||3==t.msg_type?n("video",{staticClass:"video-msg",class:{"limit-height":3==t.msg_type},attrs:{controls:"controls",preload:"meta",src:t.content}}):10==t.msg_type?n("pre",{staticClass:"text",domProps:{innerHTML:t._s(t.content)}}):n("pre",{staticClass:"text"},[t._v(t._s(t.content))]),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.showToolbar,expression:"showToolbar"}],staticClass:"pub-pop-toolbar",style:{left:t.toolBarX,top:t.toolBarY,bottom:t.toolBarBottom}},[0==t.msg_type||4==t.msg_type?n("li",{on:{click:t.handleQuote}},[t._v("引用")]):t._e(),n("li",{on:{click:t.handleCopy}},[t._v("复制")]),t.isAdmin&&"you"===t.type||t.isAdmin||t.revoke?n("li",{staticClass:"split-line"}):t._e(),t.isAdmin?n("li",{on:{click:t.handlePingMsg}},[t._v("置顶")]):t._e(),t.isAdmin&&"you"===t.type?n("li",{on:{click:t.handleBlock}},[t._v(t._s(t.block?"解禁":"禁言"))]):t._e(),t.isAdmin||t.revoke?n("li",{on:{click:t.handleRevoke}},[t._v("撤回")]):t._e()])])]:[n("div",{staticClass:"bubble",class:{focus:t.showToolbar},on:{contextmenu:function(e){return e.preventDefault(),t.onToolBtn(e)}}},[t.loading?n("i",{staticClass:"loading-icon"}):t._e(),t.fail?n("i",{staticClass:"error-icon",on:{click:t.reSend}}):t._e(),1==t.msg_type?n("img",{staticClass:"img-msg",style:{width:t.width,height:t.height},attrs:{src:t.content},on:{click:function(e){t.$showImgPreview(t.content)},load:t.imgLoad}}):2==t.msg_type||3==t.msg_type?n("video",{staticClass:"video-msg",class:{"limit-height":3==t.msg_type},attrs:{controls:"controls",preload:"meta",src:t.content}}):10==t.msg_type?n("pre",{staticClass:"text",domProps:{innerHTML:t._s(t.content)}}):n("pre",{staticClass:"text"},[t._v(t._s(t.content))]),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.showToolbar,expression:"showToolbar"}],staticClass:"pub-pop-toolbar",style:{left:t.toolBarX,top:t.toolBarY,bottom:t.toolBarBottom}},[0==t.msg_type||4==t.msg_type?n("li",{on:{click:t.handleQuote}},[t._v("引用")]):t._e(),n("li",{on:{click:t.handleCopy}},[t._v("复制")]),t.isAdmin&&"you"===t.type||t.isAdmin||t.revoke?n("li",{staticClass:"split-line"}):t._e(),t.isAdmin?n("li",{on:{click:t.handlePingMsg}},[t._v("置顶")]):t._e(),t.isAdmin&&"you"===t.type?n("li",{on:{click:t.handleBlock}},[t._v(t._s(t.block?"解禁":"禁言"))]):t._e(),t.isAdmin||t.revoke?n("li",{on:{click:t.handleRevoke}},[t._v("撤回")]):t._e()])])]],2)],1)},s=[],r=(n("6b54"),n("7f7f"),n("be94")),o=(n("c5f6"),n("5a0c")),a=n.n(o),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"msg-time"},[t._v(t._s(t.showTime))])},u=[],l={name:"msgTime",props:{timestamp:{type:[String,Number],required:!0}},computed:{showTime:function(){return a()(1*this.timestamp).format("HH:mm")}}},h=l,f=(n("0dd6"),n("2877")),d=Object(f["a"])(h,c,u,!1,null,"911788e8",null);d.options.__file="time.vue";var m=d.exports,p=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"red-packet",class:t.info.userId==t.userId?"me":"you"},[n("div",{staticClass:"top",class:{"lose-bg":t.isLoseBg,unopen:0==t.info.ext.grabbed}},[n("i",{staticClass:"red-packet-icon"}),n("div",{staticClass:"word"},[n("p",[t._v(t._s(t.info.content.title))]),1==t.info.ext.grabbed?n("p",{staticClass:"bot-text"},[t._v("已领取")]):1==t.info.ext.redpack_status?n("p",{staticClass:"bot-text"},[t._v("已抢光")]):2==t.info.ext.redpack_status?n("p",{staticClass:"bot-text"},[t._v("已过期")]):t._e()])]),n("div",{staticClass:"bot"},[t._v("\n "+t._s(t.info.content.tokenType||"EOS")+"红包\n ")])])},g=[],v={name:"redPacket",props:["info"],computed:{userId:function(){return this.$store.state.userId},isLoseBg:function(){return 0!=this.info.ext.redpack_status||1==this.info.ext.grabbed}}},b=v,x=(n("a97f"),Object(f["a"])(b,p,g,!1,null,"3874205d",null));x.options.__file="redPacket.vue";var _=x.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tip-wrap"},[n("i",{staticClass:"redpack-icon"}),t.isMe?[n("span",[t._v(t._s(t.group.members[t.info.to].nick_name))]),t._v("领取了你的"),n("span",{staticClass:"text",on:{click:function(e){t.$packetGet(t.info)}}},[t._v("红包")])]:[t._v("\n 你领取了"),n("span",[t._v(t._s(t.group.members[t.info.from].nick_name))]),t._v("的"),n("span",{staticClass:"text",on:{click:function(e){t.$packetGet(t.info)}}},[t._v("红包")])]],2)},F=[],y=n("2f62"),k={name:"redPackTip",props:["info"],computed:Object(r["a"])({},Object(y["d"])(["userId","group"]),{isMe:function(){return this.info.from==this.userId}})},T=k,I=(n("aa2b"),Object(f["a"])(T,w,F,!1,null,"1beec098",null));I.options.__file="redPackTip.vue";var C=I.exports,S=n("33f8"),B={name:"msgItem",components:{msgTime:m,redPacket:_,redPackTip:C},props:{msgItem:Object,isPrivate:Boolean,repealMsg:Boolean,from:[String,Number],timeMsg:Boolean,avatar:{type:String},name:{type:String},timestamp:[String,Number],hash:String,content:{type:[String,Number,Object]},userId:[String,Number],type:{type:String},msg_type:{type:[Number,String]},createTime:[Number],loading:[Boolean],fail:[Boolean],res:[File]},data:function(){return{isMobile:Object(S["m"])(),toolBarX:0,toolBarY:0,toolBarBottom:0,showToolbar:!1,revoke:!1,block:!1,revokeTimeAllow:!1,width:"auto",height:"auto",longTapTimer:null}},computed:Object(r["a"])({},Object(y["d"])({myId:function(t){return t.userId},userInfo:function(t){return t.group.userInfo},blockList:function(t){return t.group.blockList},adminList:function(t){return t.group.adminList},members:function(t){return t.group.members},creator:function(t){return t.group.creator}}),{isAdmin:function(){var t=this;return this.adminList&&this.adminList.some(function(e){return e==t.myId})},repealStr:function(){if(this.repealMsg){if(this.from==this.userId)return"".concat("me"==this.type?"你":this.name,"撤回了一条消息");if(this.userId==this.myId){var t=this.members[this.from],e="管理员";return t&&(e=t.nick_name),"".concat(e,"撤回了").concat(this.name,"的一条消息")}return""}return""}}),mounted:function(){if(1==this.msg_type){var t=/_size([0-9]+)x([0-9]+)/.exec(this.content);if(t){var e=parseInt(t[1]),n=parseInt(t[2]),i=.84*(document.body.offsetWidth-35),s=e>i?i/e:1,r=n>250?250/n:1,o=Math.min(s,r);this.width=o*e+"px",this.height=o*n+"px"}}},created:function(){},methods:Object(r["a"])({},Object(y["c"])(["updateChatInputFocus","reSendChatItem"]),Object(y["b"])(["doRepealPersonMsg","doRepealGroupMsg","doBlockUser","doUnBlockUser","doPinMsg","doSendMsg","doSendFile"]),{imgLoad:function(t){this.width="auto",this.height="auto"},hideToolbar:function(t){!1!==this.showToolbar&&(this.showToolbar=!1,document.body.removeEventListener("click",this.hideToolbar,!1),document.body.removeEventListener("contextmenu",this.hideToolbar,!1))},onToolBtn:function(t){var e=this;if(this.showToolbar)this.hideToolbar(t);else{var n,i,s=window.innerWidth,r=window.innerHeight;if(t instanceof MouseEvent)n=t.clientX,i=t.clientY,this.toolBarX=t.layerX+20,this.toolBarY=t.layerY,setTimeout(function(){document.body.addEventListener("click",e.hideToolbar,!1),document.body.addEventListener("contextmenu",e.hideToolbar,!1)},0);else{var o=t.touches[0]||t.changedTouches[0];n=o.clientX,i=o.clientY;var a=t.target.getBoundingClientRect();this.toolBarX=o.pageX+20-a.left,this.toolBarY=o.pageY-a.top;var c=t.target;while(!c.classList.contains("bubble"))this.toolBarX+=c.offsetLeft,c=c.parentNode}n>.66*s&&(this.toolBarX=this.toolBarX-120),this.toolBarX+="px",i>r/2?(this.toolBarBottom=this.toolBarY+"px",this.toolBarY="auto"):(this.toolBarBottom="auto",this.toolBarY+="px"),this.showToolbar=!0,this.block=this.blockList.some(function(t){return t==e.userId}),this.revokeTimeAllow=Date.now()-parseInt(this.timestamp)<18e4,this.revoke="me"===this.type&&this.revokeTimeAllow}},onTouchStartToolBtn:function(t){var e=this;clearTimeout(this.longTapTimer),this.longTapTimer=setTimeout(function(){e.onToolBtn(t)},800)},onTouchEndToolBtn:function(t){var e=this;clearTimeout(this.longTapTimer),setTimeout(function(){document.body.addEventListener("click",e.hideToolbar,!1)},0)},handleQuote:function(){var t=this,e=this.name,n=this.content,i="「".concat(e,":").concat(n,"」\n- - - - - - - - - - - - - - -\n");this.$emit("quoteMsg",i),this.$nextTick(function(){t.updateChatInputFocus(!0)})},handleCopy:function(){var t,e=this,n="";window.getSelection?(t=window.getSelection(),n=t.toString()):document.selection&&(t=document.selection.createRange(),n=t.text);var i=n||this.content;this.$copyText(i).then(function(t){e.updateChatInputFocus(!0)},function(t){console.log("Can not copy")})},handleShare:function(){this.$showInvite(this.content)},handleDel:function(){this.$emit("deleteMsg",this.hash)},handlePingMsg:function(){this.doPinMsg({hash:this.hash})},handleRevoke:function(){this.isPrivate?(console.log("撤回"),this.doRepealPersonMsg({hash:this.hash})):this.doRepealGroupMsg({hash:this.hash})},handleBlock:function(){this.block?this.doUnBlockUser({id:this.userId}):this.doBlockUser({id:this.userId})},reSend:function(){if(0==this.msg_type||4==this.msg_type){var t={type:0,msg:this.content,createTime:this.createTime};this.reSendChatItem({createTime:this.createTime}),this.doSendMsg(t)}else{var e={res:this.res,createTime:this.createTime};this.reSendChatItem({createTime:this.createTime}),this.doSendFile(e)}}}),filters:{formatTimestamp:function(t){return t?a()(1*t).format("HH:mm"):""}}},M=B,L=(n("7be5"),Object(f["a"])(M,i,s,!1,null,"3826d566",null));L.options.__file="index.vue";e["a"]=L.exports},"34d0":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("div",{staticClass:"chat-pinmsg",on:{click:t.scrollToView}},[n("label",[t._v("消息:")]),n("div",{staticClass:"msg-content"},[t._v(t._s(t._f("decryptoMsg")(t.msg)))]),n("i",{staticClass:"msg-close",on:{click:function(e){return e.stopPropagation(),t.handleClose(e)}}})]):t._e()},s=[],r=(n("9e1f"),n("450d"),n("6ed5")),o=n.n(r),a=n("be94"),c=n("2f62"),u=n("33f8"),l={name:"pinMsg",props:{visible:{type:Boolean,default:!1},msg:{type:String,default:""},hash:{type:String}},data:function(){return{}},computed:Object(a["a"])({},Object(c["d"])(["userId"]),Object(c["d"])({adminList:function(t){return t.group.adminList}}),{isAdmin:function(){var t=this;return this.adminList&&this.adminList.some(function(e){return e==t.userId})}}),methods:Object(a["a"])({},Object(c["b"])(["doUnpinMsg"]),{handleClose:function(t){var e=this;this.isAdmin?o.a.confirm("确定要关闭置顶消息吗?").then(function(){e.doUnpinMsg({hash:e.hash})}).catch(function(t){console.log(t)}):this.$emit("pinMsgClose")},scrollToView:function(t){this.$emit("scrollToView")}}),mounted:function(){},filters:{decryptoMsg:u["i"]}},h=l,f=(n("ea44"),n("2877")),d=Object(f["a"])(h,i,s,!1,null,"4040813b",null);d.options.__file="index.vue";e["a"]=d.exports},"34ef":function(t,e,n){n("ec30")("Uint8",1,function(t){return function(e,n,i){return t(this,e,n,i)}})},3557:function(t,e,n){},"36bd":function(t,e,n){"use strict";var i=n("4bf8"),s=n("77f1"),r=n("9def");t.exports=function(t){var e=i(this),n=r(e.length),o=arguments.length,a=s(o>1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,u=void 0===c?n:s(c,n);while(u>a)e[a++]=t;return e}},3846:function(t,e,n){n("9e1e")&&"g"!=/./g.flags&&n("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:n("0bfb")})},3868:function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return h});n("4917"),n("0fb7"),n("450d");var i=n("f529"),s=n.n(i),r=(n("20d6"),n("96cf"),n("1da1")),o=n("be94"),a=(n("cadf"),n("551c"),n("097d"),n("2f62")),c=n("33f8"),u=n("b16d"),l={watch:{$route:function(){this.bdHiden=!0,this.groupSet=!1,this.lockMore=!1,this.lockEnd=!1,this.enableScroll=!1,this.initRoom()},unreadNums:function(t,e){t>0&&this.isBottom&&setTimeout(this.resizeToBottom.bind(this),150)},chatList:function(t){var e=t[t.length-1];e&&4==e.msg_type&&this.$nextTick(this.resizeToBottom)},isJoinGroup:function(t){1==t&&setTimeout(this.resizeToBottom.bind(this),100)}},data:function(){return{groupSet:!1,lockMore:!1,lockEnd:!1,enableScroll:!1,isBottom:!0,scrollHeight:100,isScrollToView:!1,isShowGroudMgr:!1}},computed:Object(o["a"])({},Object(a["d"])(["group","userId","userInfo",""]),Object(a["d"])({creator:function(t){return t.group.creator},isJoin:function(t){return t.group.isJoin},pinMsg:function(t){return t.group.pinMsg},pinList:function(t){return t.group.pinList},atList:function(t){return t.group.atList},unreadNums:function(t){return t.group.unreadNums},chatList:function(t){return t.group.chatList},members:function(t){return t.group.members},sessionId:function(t){return t.curSession},sessionInfo:function(t){return t.group.sessionInfo}}),{isPrivate:function(){return this.$store.getters.isPrivate},isCreator:function(){return this.userId==this.creator},isJoinGroup:function(){return this.group&&this.group.groupId?this.isJoin?1:0:1}}),mounted:function(){this.initRoom(),document.addEventListener("contextmenu",function(t){return t.preventDefault()})},methods:Object(o["a"])({},Object(a["c"])(["initGroup","resetUnreadNums","addChatItem","deleteChatItem","initState","clearAtList","curSession","setSessionItemUnread"]),Object(a["b"])(["getGroupInfo","getUserInfo","getNewMsg","getHistoryMsg","doSendMsg","getPrivateNewMsg","getPrivateHistoryMsg","doSendPrivateMsg"]),{initRoom:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(this.userInfo){t.next=3;break}return t.next=3,this.getUserInfo();case 3:this.$store.commit("changeSessionId",this.$route.params.id),this.initState(this.userInfo),this.isPrivate?this.initPersonChat():this.initGroupChat(),this.$store.commit("setSessionItemUnread",{session_id:this.curSession,unread:0,curSession:this.curSession});case 7:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),initPersonChat:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(){var e=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.getPrivateNewMsg();case 2:this.$nextTick(function(){e.resizeToBottom(),e.bdHiden=!1});case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),initGroupChat:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(){var e=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return this.initGroup({userId:this.userId,groupId:this.sessionId,useCache:!1}),this.isShowGroudMgr=!1,t.next=4,this.getGroupInfo();case 4:return t.next=6,this.getNewMsg();case 6:this.$nextTick(function(){e.resizeToBottom(),e.bdHiden=!1});case 7:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),initScrollEvent:function(){},handleScroll:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(e){var n,i,s,r,o=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(this.group.chatList.length){t.next=2;break}return t.abrupt("return");case 2:if(!this.isScrollToView){t.next=4;break}return t.abrupt("return");case 4:if(this.enableScroll=!0,n=this.$refs.msgWrap.offsetHeight,i=e.target.scrollTop,0!==i||this.lockMore){t.next=20;break}if(null===this.group.endHash){t.next=20;break}if(this.lockMore=!0,!this.isPrivate){t.next=16;break}return t.next=13,this.getPrivateHistoryMsg();case 13:s=t.sent,t.next=19;break;case 16:return t.next=18,this.getHistoryMsg();case 18:s=t.sent;case 19:"end"===s?this.lockEnd=!0:(r=n-i,this.$nextTick(function(){e.target.scrollTop=o.$refs.msgWrap.offsetHeight-r,setTimeout(function(){o.lockMore=!1},800)}));case 20:i+e.target.offsetHeight>n?(this.isBottom=!0,this.group.unreadNums&&this.resetUnreadNums()):this.isBottom=!1;case 21:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),resizeToBottom:function(){this.$refs.scrollWrap.scrollTop=this.$refs.msgWrap.offsetHeight,this.resetUnreadNums(),this.isBottom=!0},doSetRead:function(){this.resizeToBottom()},quoteMsg:function(t){this.$refs.inputArea.inputMsg=t},deleteMsg:function(t){this.deleteChatItem(t)},pinMsgClose:function(){this.pinMsg.visible=!1},scrollToView:function(){var t=this;if(this.pinList.length){var e=this.$refs.msgWrap.querySelector(".msg-item");Object(c["p"])(this.$refs.scrollWrap,e.offsetTop-(this.pinMsg?40:10),e)}else{var n=this.pinMsg.hash,i=this.group.chatList.findIndex(function(t){return t.hash===n});if(i>=0){var s=this.$refs.msgWrap.querySelectorAll(".msg-item").item(i);Object(c["p"])(this.$refs.scrollWrap,s.offsetTop-(this.pinMsg?40:10),s)}}this.isScrollToView=!0,setTimeout(function(){t.isScrollToView=!1},2e3)},scrollToMsg:function(t){var e=this.atList[t].hash,n=this.group.chatList.findIndex(function(t){return t.hash===e});if(n>=0){var i=this.group.pinList.length,s=this.$refs.msgWrap.querySelectorAll(".msg-item").item(n+i);Object(c["p"])(this.$refs.scrollWrap,s.offsetTop-(this.pinMsg?40:10),s)}this.clearAtList()},joinGroup:function(){this.$store.dispatch("joinGroup")},showGroudMgr:function(t){this.isShowGroudMgr=1==t}})},h={computed:Object(o["a"])({},Object(a["d"])(["group","userId","curSession"]),Object(a["d"])({chatInputFocus:function(t){return t.group.chatInputFocus},blockList:function(t){return t.group.blockList}}),{isPrivate:function(){return this.$store.getters.isPrivate}}),data:function(){return{emojiShow:!1,inputMsg:"",atInd:0}},mounted:function(){var t=this;document.body.addEventListener("click",function(){t.emojiShow=!1})},methods:Object(o["a"])({},Object(a["c"])(["updateChatInputFocus","addChatItem"]),Object(a["b"])(["doSendMsg","doSendFile","doSendPrivateMsg"]),{addEmoji:function(t){this.inputMsg+=t,this.emojiShow=!1,this.$refs.chatInput.focus()},handleSend:function(t){var e=this;if(this.blockList.some(function(t){return t==e.userId}))s()({message:"您已被禁言",type:"error"});else{var n=this.inputMsg.trim();if(0!==n.length){var i={type:0,msg:n};if(this.group.members[this.userId]){var r=Date.now();this.addChatItem({from:this.userId,content:n,hash:"".concat(r),timestamp:r,createTime:r,msg_type:"0",loading:!0}),i.createTime=r}return this.$store.commit("setSessionItemUnread",{session_id:this.curSession,unread:0,curSession:this.curSession,cont:this.inputMsg}),this.isPrivate?this.doSendPrivateMsg(i):this.doSendMsg(i),this.$nextTick(function(){this.inputMsg="",this.resizeToBottom?this.resizeToBottom():this.$emit("toBottom")}),t.preventDefault(),!1}s()({message:"聊天内容不能为空",type:"warning"})}},preHandleFile:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(e){var n,i,s;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.type,i=e.size,!n.match("video")){t.next=6;break}return t.abrupt("return",i>3145728?Promise.reject(new Error(e)):Promise.resolve({type:2,res:e}));case 6:if(!n.match("audio")){t.next=10;break}return t.abrupt("return",i>2097152?Promise.reject(new Error(e)):Promise.resolve({type:3,res:e}));case 10:if(!n.match("image")){t.next=15;break}return t.next=13,new u["a"]({file:e,maxSize:1048576});case 13:return s=t.sent,t.abrupt("return",{type:1,preview:s.base64,res:s.res});case 15:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),handleFile:function(){var t=Object(r["a"])(regeneratorRuntime.mark(function t(e){var n,i,r,o,a=this;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.constructor===File?e:e.target.files[0],t.prev=1,t.next=4,this.preHandleFile(n);case 4:i=t.sent,r={res:i.res},this.group.members[this.userId]&&(o=Date.now(),this.addChatItem({content:i.preview||"",from:this.userId,hash:"".concat(o),msg_type:i.type,timestamp:o,res:i.res,loading:!0,createTime:o}),r.createTime=o),this.doSendFile(r),setTimeout(function(){a.$refs.inputFile&&(a.$refs.inputFile.value=null),a.$refs.inputFile1&&(a.$refs.inputFile1.value=null),a.$refs.inputFile2&&(a.$refs.inputFile2.value=null),a.$refs.inputFile3&&(a.$refs.inputFile3.value=null),a.resizeToBottom?a.resizeToBottom():a.$emit("toBottom")},100),t.next=14;break;case 11:t.prev=11,t.t0=t["catch"](1),s()({message:"上传文件大小限制:音频2M以内,视频3M以内",type:"warning"});case 14:case"end":return t.stop()}},t,this,[[1,11]])}));return function(e){return t.apply(this,arguments)}}()})}},4336:function(t,e,n){},"4e81":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ul",{staticClass:"emoji-list pub-scroll-box",attrs:{id:"emojiList"}},t._l(t.emojiList,function(e){return n("li",{key:e,domProps:{innerHTML:t._s(e)},on:{click:t.handleClick}})}))},s=[],r=(n("cadf"),n("551c"),n("097d"),{name:"emojiList",data:function(){return{emojiList:["&#x1F600;","&#x1F601;","&#x1F602;","&#x1F603;","&#x1F604;","&#x1F605;","&#x1F606;","&#x1F607;","&#x1F608;","&#x1F609;","&#x1F60A;","&#x1F60B;","&#x1F60C;","&#x1F60D;","&#x1F60E;","&#x1F60F;","&#x1F610;","&#x1F611;","&#x1F612;","&#x1F613;","&#x1F614;","&#x1F615;","&#x1F616;","&#x1F617;","&#x1F618;","&#x1F619;","&#x1F61A;","&#x1F61B;","&#x1F61C;","&#x1F61D;","&#x1F61E;","&#x1F61F;","&#x1F620;","&#x1F621;","&#x1F622;","&#x1F623;","&#x1F624;","&#x1F625;","&#x1F626;","&#x1F627;","&#x1F628;","&#x1F629;","&#x1F62A;","&#x1F62B;","&#x1F62C;","&#x1F62D;","&#x1F62E;","&#x1F62F;","&#x1F630;","&#x1F631;","&#x1F632;","&#x1F633;","&#x1F634;","&#x1F635;","&#x1F636;","&#x1F637;"],animalList:["&#x1F63A;","&#x1F638;","&#x1F639;","&#x1F63B;","&#x1F63C;","&#x1F63D;","&#x1F640;","&#x1F63F;","&#x1F63E;","&#x1F648;","&#x1F649;","&#x1F64A;","&#x1F476;","&#x1F9D2;","&#x1F466;","&#x1F467;","&#x1F9D1;","&#x1F468;","&#x1F469;","&#x1F9D3;","&#x1F474;","&#x1F608;","&#x1F47F;","&#x1F921;","&#x1F479;","&#x1F47A;","&#x1F480;","&#x2620;","&#x1F47B;","&#x1F47D;","&#x1F47E;","&#x1F916;","&#x1F4A9;","&#x1F412;","&#x1F98D;","&#x1F436;","&#x1F415;","&#x1F429;","&#x1F43A;","&#x1F98A;","&#x1F99D;","&#x1F431;","&#x1F408;","&#x1F981;","&#x1F42F;","&#x1F405;","&#x1F406;","&#x1F434;","&#x1F40E;","&#x1F984;","&#x1F993;","&#x1F98C;","&#x1F42E;","&#x1F402;","&#x1F403;","&#x1F404;","&#x1F437;","&#x1F416;","&#x1F417;","&#x1F43D;","&#x1F40F;","&#x1F411;","&#x1F410;","&#x1F42A;","&#x1F42B;","&#x1F999;","&#x1F992;","&#x1F418;","&#x1F98F;","&#x1F99B;","&#x1F42D;","&#x1F401;","&#x1F400;"]}},mounted:function(){},methods:{handleClick:function(t){this.$emit("addEmoji",t.target.innerHTML)}}}),o=r,a=(n("fd79"),n("2877")),c=Object(a["a"])(o,i,s,!1,null,"da1513a8",null);c.options.__file="index.vue";e["a"]=c.exports},5596:function(t,e,n){},"6b49":function(t,e,n){},"6b54":function(t,e,n){"use strict";n("3846");var i=n("cb7c"),s=n("0bfb"),r=n("9e1e"),o="toString",a=/./[o],c=function(t){n("2aba")(RegExp.prototype,o,t,!0)};n("79e5")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?c(function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!r&&t instanceof RegExp?s.call(t):void 0)}):a.name!=o&&c(function(){return a.call(this)})},"6cfb":function(t,e,n){},7802:function(t,e,n){},"7be5":function(t,e,n){"use strict";var i=n("6b49"),s=n.n(i);s.a},9360:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.atList&&t.atList.length?n("div",{staticClass:"at-me"},[t.atNum>=2&&t.totalVisible?n("div",{staticClass:"at-me-item",on:{click:t.scrollToMsg}},[n("div",{staticClass:"at-content"},[t._v("有"+t._s(t.atNum)+"个人提到了你")]),n("i",{staticClass:"icon-close",attrs:{title:"关闭"},on:{click:function(e){e.stopPropagation(),t.totalVisible=!1}}})]):t.atNum&&t.itemVisible?n("div",{staticClass:"at-me-item",on:{click:t.scrollToMsg}},[n("div",{staticClass:"at-content"},[t._v(t._s(t.atList[0].name)+"提到了你")]),n("i",{staticClass:"icon-close",attrs:{title:"关闭"},on:{click:function(e){e.stopPropagation(),t.itemVisible=!1}}})]):t._e()]):t._e()},s=[],r=n("2ef0"),o=n.n(r),a={name:"atMe",props:{atList:[Array]},computed:{atNum:function(){return o.a.unionBy(this.atList,"userId").length}},data:function(){return{totalVisible:!0,itemVisible:!0}},methods:{scrollToMsg:function(){this.$emit("scrollToMsg",this.atList.length-1)}}},c=a,u=(n("2b14"),n("2877")),l=Object(u["a"])(c,i,s,!1,null,"320335e0",null);l.options.__file="atme.vue";e["a"]=l.exports},a1aa:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"chat-at"},[n("div",{staticClass:"bar-wrap"},[n("div",{ref:"container"},t._l(t.filterList,function(e,i){return n("div",{key:i,staticClass:"item",class:{active:i==t.curInd},on:{click:function(e){e.stopPropagation(),t.atPerson(i)}}},[n("div",{staticClass:"avatar",class:"avatar_bg"+e.user_id%9},[e.cover_photo?n("img",{attrs:{src:e.cover_photo}}):[t._v("\n "+t._s(e.nick_name.slice(0,2).toUpperCase())+"\n ")]],2),n("div",{staticClass:"name"},[n("p",{staticClass:"nick-name"},[t._v("\n "+t._s(e.nick_name)+"\n "),e.is_admin>0?n("span",{class:["status-identity","identity"+e.is_admin]},[t._v(t._s(1==e.is_admin?"管理员":"群主"))]):t._e(),1==e.is_block?n("span",{staticClass:"status-forbidden"},[t._v(" 禁言")]):t._e()]),n("p",{staticClass:"user-name"},[t._v("@"+t._s(e.user_name))])])])}))])])},s=[],r=n("be94"),o=(n("c5f6"),n("cadf"),n("551c"),n("097d"),n("2f62")),a={name:"chatAt",props:{curInd:{type:Number},filterList:{type:Array}},computed:Object(r["a"])({},Object(o["d"])(["userId"])),data:function(){return{showFilterList:[]}},watch:{curInd:function(t){this.scrollIntoView()}},methods:{atPerson:function(t){var e=this.filterList[t];this.$emit("atperson",e.user_name)},scrollIntoView:function(){var t=this.$refs.container.children[this.curInd];t&&t.scrollIntoView&&t.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}}},c=a,u=(n("a770"),n("2877")),l=Object(u["a"])(c,i,s,!1,null,"69549ab0",null);l.options.__file="index.vue";e["a"]=l.exports},a770:function(t,e,n){"use strict";var i=n("6cfb"),s=n.n(i);s.a},a97f:function(t,e,n){"use strict";var i=n("7802"),s=n.n(i);s.a},aa2b:function(t,e,n){"use strict";var i=n("ec84"),s=n.n(i);s.a},b16d:function(t,e,n){"use strict";n("34ef"),n("4917"),n("28a5");var i=n("d4ec"),s=n("bee2"),r=function(){function t(e){var n=this;return Object(i["a"])(this,t),this.file=e.file,this.maxSize=e.maxSize||1048576,this.quantity=parseFloat((this.file.size/this.maxSize).toFixed(2)),new Promise(function(t,e){n.quantity<=1?n.blobToDataURL(n.file).then(function(e){t({base64:e.target.result,res:n.file})}):n.mini(t,e)})}return Object(s["a"])(t,[{key:"mini",value:function(t,e){var n=this,i=this.file,s=this.quantity;try{var r=new FileReader,o=new Image;r.readAsDataURL(i),r.onload=function(t){o.src=t.target.result},o.onload=function(){var e=document.createElement("canvas"),i=e.getContext("2d"),r=o.width,a=o.height;e.width=r,e.height=a,i.clearRect(0,0,r,a),i.drawImage(o,0,0,r,a);var c=e.toDataURL("image/jpeg",s),u=n.dataURLtoBlob(c);if(u.size>n.maxSize){i.clearRect(0,0,r,a);var l=Math.sqrt(s),h=parseInt(r*l),f=parseInt(a*l);e.width=h,e.height=f,i.drawImage(o,0,0,r,a,0,0,h,f),c=e.toDataURL("image/jpeg"),u=n.dataURLtoBlob(c)}t({base64:c,res:u})}}catch(a){e(a)}}},{key:"blobToDataURL",value:function(t){return new Promise(function(e,n){var i=new FileReader;i.onload=e,i.readAsDataURL(t)})}},{key:"dataURLtoBlob",value:function(t){var e=t.split(","),n=e[0].match(/:(.*?);/)[1],i=atob(e[1]),s=i.length,r=new Uint8Array(s);while(s--)r[s]=i.charCodeAt(s);return new Blob([r],{type:n})}}]),t}();e["a"]=r},b635:function(t,e,n){},ba92:function(t,e,n){"use strict";var i=n("4bf8"),s=n("77f1"),r=n("9def");t.exports=[].copyWithin||function(t,e){var n=i(this),o=r(n.length),a=s(t,o),c=s(e,o),u=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===u?o:s(u,o))-c,o-a),h=1;c<a&&a<c+l&&(h=-1,c+=l-1,a+=l-1);while(l-- >0)c in n?n[a]=n[c]:delete n[a],a+=h,c+=h;return n}},ea44:function(t,e,n){"use strict";var i=n("b635"),s=n.n(i);s.a},ec30:function(t,e,n){"use strict";if(n("9e1e")){var i=n("2d00"),s=n("7726"),r=n("79e5"),o=n("5ca1"),a=n("0f88"),c=n("ed0b"),u=n("9b43"),l=n("f605"),h=n("4630"),f=n("32e9"),d=n("dcbc"),m=n("4588"),p=n("9def"),g=n("09fa"),v=n("77f1"),b=n("6a99"),x=n("69a8"),_=n("23c6"),w=n("d3f4"),F=n("4bf8"),y=n("33a4"),k=n("2aeb"),T=n("38fd"),I=n("9093").f,C=n("27ee"),S=n("ca5a"),B=n("2b4c"),M=n("0a49"),L=n("c366"),j=n("ebd6"),E=n("cadf"),O=n("84f2"),P=n("5cc5"),$=n("7a56"),A=n("36bd"),R=n("ba92"),U=n("86cc"),N=n("11e9"),D=U.f,V=N.f,H=s.RangeError,W=s.TypeError,z=s.Uint8Array,G="ArrayBuffer",Y="Shared"+G,X="BYTES_PER_ELEMENT",q="prototype",J=Array[q],Q=c.ArrayBuffer,K=c.DataView,Z=M(0),tt=M(2),et=M(3),nt=M(4),it=M(5),st=M(6),rt=L(!0),ot=L(!1),at=E.values,ct=E.keys,ut=E.entries,lt=J.lastIndexOf,ht=J.reduce,ft=J.reduceRight,dt=J.join,mt=J.sort,pt=J.slice,gt=J.toString,vt=J.toLocaleString,bt=B("iterator"),xt=B("toStringTag"),_t=S("typed_constructor"),wt=S("def_constructor"),Ft=a.CONSTR,yt=a.TYPED,kt=a.VIEW,Tt="Wrong length!",It=M(1,function(t,e){return Lt(j(t,t[wt]),e)}),Ct=r(function(){return 1===new z(new Uint16Array([1]).buffer)[0]}),St=!!z&&!!z[q].set&&r(function(){new z(1).set({})}),Bt=function(t,e){var n=m(t);if(n<0||n%e)throw H("Wrong offset!");return n},Mt=function(t){if(w(t)&&yt in t)return t;throw W(t+" is not a typed array!")},Lt=function(t,e){if(!(w(t)&&_t in t))throw W("It is not a typed array constructor!");return new t(e)},jt=function(t,e){return Et(j(t,t[wt]),e)},Et=function(t,e){var n=0,i=e.length,s=Lt(t,i);while(i>n)s[n]=e[n++];return s},Ot=function(t,e,n){D(t,e,{get:function(){return this._d[n]}})},Pt=function(t){var e,n,i,s,r,o,a=F(t),c=arguments.length,l=c>1?arguments[1]:void 0,h=void 0!==l,f=C(a);if(void 0!=f&&!y(f)){for(o=f.call(a),i=[],e=0;!(r=o.next()).done;e++)i.push(r.value);a=i}for(h&&c>2&&(l=u(l,arguments[2],2)),e=0,n=p(a.length),s=Lt(this,n);n>e;e++)s[e]=h?l(a[e],e):a[e];return s},$t=function(){var t=0,e=arguments.length,n=Lt(this,e);while(e>t)n[t]=arguments[t++];return n},At=!!z&&r(function(){vt.call(new z(1))}),Rt=function(){return vt.apply(At?pt.call(Mt(this)):Mt(this),arguments)},Ut={copyWithin:function(t,e){return R.call(Mt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return A.apply(Mt(this),arguments)},filter:function(t){return jt(this,tt(Mt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(Mt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return st(Mt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Mt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return ot(Mt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return rt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return dt.apply(Mt(this),arguments)},lastIndexOf:function(t){return lt.apply(Mt(this),arguments)},map:function(t){return It(Mt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(Mt(this),arguments)},reduceRight:function(t){return ft.apply(Mt(this),arguments)},reverse:function(){var t,e=this,n=Mt(e).length,i=Math.floor(n/2),s=0;while(s<i)t=e[s],e[s++]=e[--n],e[n]=t;return e},some:function(t){return et(Mt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return mt.call(Mt(this),t)},subarray:function(t,e){var n=Mt(this),i=n.length,s=v(t,i);return new(j(n,n[wt]))(n.buffer,n.byteOffset+s*n.BYTES_PER_ELEMENT,p((void 0===e?i:v(e,i))-s))}},Nt=function(t,e){return jt(this,pt.call(Mt(this),t,e))},Dt=function(t){Mt(this);var e=Bt(arguments[1],1),n=this.length,i=F(t),s=p(i.length),r=0;if(s+e>n)throw H(Tt);while(r<s)this[e+r]=i[r++]},Vt={entries:function(){return ut.call(Mt(this))},keys:function(){return ct.call(Mt(this))},values:function(){return at.call(Mt(this))}},Ht=function(t,e){return w(t)&&t[yt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Wt=function(t,e){return Ht(t,e=b(e,!0))?h(2,t[e]):V(t,e)},zt=function(t,e,n){return!(Ht(t,e=b(e,!0))&&w(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?D(t,e,n):(t[e]=n.value,t)};Ft||(N.f=Wt,U.f=zt),o(o.S+o.F*!Ft,"Object",{getOwnPropertyDescriptor:Wt,defineProperty:zt}),r(function(){gt.call({})})&&(gt=vt=function(){return dt.call(this)});var Gt=d({},Ut);d(Gt,Vt),f(Gt,bt,Vt.values),d(Gt,{slice:Nt,set:Dt,constructor:function(){},toString:gt,toLocaleString:Rt}),Ot(Gt,"buffer","b"),Ot(Gt,"byteOffset","o"),Ot(Gt,"byteLength","l"),Ot(Gt,"length","e"),D(Gt,xt,{get:function(){return this[yt]}}),t.exports=function(t,e,n,c){c=!!c;var u=t+(c?"Clamped":"")+"Array",h="get"+t,d="set"+t,m=s[u],v=m||{},b=m&&T(m),x=!m||!a.ABV,F={},y=m&&m[q],C=function(t,n){var i=t._d;return i.v[h](n*e+i.o,Ct)},S=function(t,n,i){var s=t._d;c&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),s.v[d](n*e+s.o,i,Ct)},B=function(t,e){D(t,e,{get:function(){return C(this,e)},set:function(t){return S(this,e,t)},enumerable:!0})};x?(m=n(function(t,n,i,s){l(t,m,u,"_d");var r,o,a,c,h=0,d=0;if(w(n)){if(!(n instanceof Q||(c=_(n))==G||c==Y))return yt in n?Et(m,n):Pt.call(m,n);r=n,d=Bt(i,e);var v=n.byteLength;if(void 0===s){if(v%e)throw H(Tt);if(o=v-d,o<0)throw H(Tt)}else if(o=p(s)*e,o+d>v)throw H(Tt);a=o/e}else a=g(n),o=a*e,r=new Q(o);f(t,"_d",{b:r,o:d,l:o,e:a,v:new K(r)});while(h<a)B(t,h++)}),y=m[q]=k(Gt),f(y,"constructor",m)):r(function(){m(1)})&&r(function(){new m(-1)})&&P(function(t){new m,new m(null),new m(1.5),new m(t)},!0)||(m=n(function(t,n,i,s){var r;return l(t,m,u),w(n)?n instanceof Q||(r=_(n))==G||r==Y?void 0!==s?new v(n,Bt(i,e),s):void 0!==i?new v(n,Bt(i,e)):new v(n):yt in n?Et(m,n):Pt.call(m,n):new v(g(n))}),Z(b!==Function.prototype?I(v).concat(I(b)):I(v),function(t){t in m||f(m,t,v[t])}),m[q]=y,i||(y.constructor=m));var M=y[bt],L=!!M&&("values"==M.name||void 0==M.name),j=Vt.values;f(m,_t,!0),f(y,yt,u),f(y,kt,!0),f(y,wt,m),(c?new m(1)[xt]==u:xt in y)||D(y,xt,{get:function(){return u}}),F[u]=m,o(o.G+o.W+o.F*(m!=v),F),o(o.S,u,{BYTES_PER_ELEMENT:e}),o(o.S+o.F*r(function(){v.of.call(m,1)}),u,{from:Pt,of:$t}),X in y||f(y,X,e),o(o.P,u,Ut),$(u),o(o.P+o.F*St,u,{set:Dt}),o(o.P+o.F*!L,u,Vt),i||y.toString==gt||(y.toString=gt),o(o.P+o.F*r(function(){new m(1).slice()}),u,{slice:Nt}),o(o.P+o.F*(r(function(){return[1,2].toLocaleString()!=new m([1,2]).toLocaleString()})||!r(function(){y.toLocaleString.call([1,2])})),u,{toLocaleString:Rt}),O[u]=L?M:j,i||L||f(y,bt,j)}}else t.exports=function(){}},ec84:function(t,e,n){},ed0b:function(t,e,n){"use strict";var i=n("7726"),s=n("9e1e"),r=n("2d00"),o=n("0f88"),a=n("32e9"),c=n("dcbc"),u=n("79e5"),l=n("f605"),h=n("4588"),f=n("9def"),d=n("09fa"),m=n("9093").f,p=n("86cc").f,g=n("36bd"),v=n("7f20"),b="ArrayBuffer",x="DataView",_="prototype",w="Wrong length!",F="Wrong index!",y=i[b],k=i[x],T=i.Math,I=i.RangeError,C=i.Infinity,S=y,B=T.abs,M=T.pow,L=T.floor,j=T.log,E=T.LN2,O="buffer",P="byteLength",$="byteOffset",A=s?"_b":O,R=s?"_l":P,U=s?"_o":$;function N(t,e,n){var i,s,r,o=new Array(n),a=8*n-e-1,c=(1<<a)-1,u=c>>1,l=23===e?M(2,-24)-M(2,-77):0,h=0,f=t<0||0===t&&1/t<0?1:0;for(t=B(t),t!=t||t===C?(s=t!=t?1:0,i=c):(i=L(j(t)/E),t*(r=M(2,-i))<1&&(i--,r*=2),t+=i+u>=1?l/r:l*M(2,1-u),t*r>=2&&(i++,r/=2),i+u>=c?(s=0,i=c):i+u>=1?(s=(t*r-1)*M(2,e),i+=u):(s=t*M(2,u-1)*M(2,e),i=0));e>=8;o[h++]=255&s,s/=256,e-=8);for(i=i<<e|s,a+=e;a>0;o[h++]=255&i,i/=256,a-=8);return o[--h]|=128*f,o}function D(t,e,n){var i,s=8*n-e-1,r=(1<<s)-1,o=r>>1,a=s-7,c=n-1,u=t[c--],l=127&u;for(u>>=7;a>0;l=256*l+t[c],c--,a-=8);for(i=l&(1<<-a)-1,l>>=-a,a+=e;a>0;i=256*i+t[c],c--,a-=8);if(0===l)l=1-o;else{if(l===r)return i?NaN:u?-C:C;i+=M(2,e),l-=o}return(u?-1:1)*i*M(2,l-e)}function V(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function H(t){return[255&t]}function W(t){return[255&t,t>>8&255]}function z(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function G(t){return N(t,52,8)}function Y(t){return N(t,23,4)}function X(t,e,n){p(t[_],e,{get:function(){return this[n]}})}function q(t,e,n,i){var s=+n,r=d(s);if(r+e>t[R])throw I(F);var o=t[A]._b,a=r+t[U],c=o.slice(a,a+e);return i?c:c.reverse()}function J(t,e,n,i,s,r){var o=+n,a=d(o);if(a+e>t[R])throw I(F);for(var c=t[A]._b,u=a+t[U],l=i(+s),h=0;h<e;h++)c[u+h]=l[r?h:e-h-1]}if(o.ABV){if(!u(function(){y(1)})||!u(function(){new y(-1)})||u(function(){return new y,new y(1.5),new y(NaN),y.name!=b})){y=function(t){return l(this,y),new S(d(t))};for(var Q,K=y[_]=S[_],Z=m(S),tt=0;Z.length>tt;)(Q=Z[tt++])in y||a(y,Q,S[Q]);r||(K.constructor=y)}var et=new k(new y(2)),nt=k[_].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||c(k[_],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else y=function(t){l(this,y,b);var e=d(t);this._b=g.call(new Array(e),0),this[R]=e},k=function(t,e,n){l(this,k,x),l(t,y,x);var i=t[R],s=h(e);if(s<0||s>i)throw I("Wrong offset!");if(n=void 0===n?i-s:f(n),s+n>i)throw I(w);this[A]=t,this[U]=s,this[R]=n},s&&(X(y,P,"_l"),X(k,O,"_b"),X(k,P,"_l"),X(k,$,"_o")),c(k[_],{getInt8:function(t){return q(this,1,t)[0]<<24>>24},getUint8:function(t){return q(this,1,t)[0]},getInt16:function(t){var e=q(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=q(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return V(q(this,4,t,arguments[1]))},getUint32:function(t){return V(q(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return D(q(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return D(q(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){J(this,1,t,H,e)},setUint8:function(t,e){J(this,1,t,H,e)},setInt16:function(t,e){J(this,2,t,W,e,arguments[2])},setUint16:function(t,e){J(this,2,t,W,e,arguments[2])},setInt32:function(t,e){J(this,4,t,z,e,arguments[2])},setUint32:function(t,e){J(this,4,t,z,e,arguments[2])},setFloat32:function(t,e){J(this,4,t,Y,e,arguments[2])},setFloat64:function(t,e){J(this,8,t,G,e,arguments[2])}});v(y,b),v(k,x),a(k[_],o.VIEW,!0),e[b]=y,e[x]=k},fd79:function(t,e,n){"use strict";var i=n("4336"),s=n.n(i);s.a}}]);