@polyv/chat 2.1.0-rc-20251023.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +19 -0
- package/index.es.d.ts +1934 -0
- package/index.es.js +7060 -0
- package/index.umd.js +19 -0
- package/package.json +9 -0
package/index.umd.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
(function(yt,ct){typeof exports=="object"&&typeof module!="undefined"?ct(exports):typeof define=="function"&&define.amd?define(["exports"],ct):(yt=typeof globalThis!="undefined"?globalThis:yt||self,ct(yt.PolyvChat={}))})(this,function(yt){"use strict";var Be=Object.defineProperty,ze=Object.defineProperties;var Ge=Object.getOwnPropertyDescriptors;var pe=Object.getOwnPropertySymbols;var He=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable;var de=(yt,ct)=>(ct=Symbol[yt])?ct:Symbol.for("Symbol."+yt);var ne=(yt,ct,St)=>ct in yt?Be(yt,ct,{enumerable:!0,configurable:!0,writable:!0,value:St}):yt[ct]=St,Tt=(yt,ct)=>{for(var St in ct||(ct={}))He.call(ct,St)&&ne(yt,St,ct[St]);if(pe)for(var St of pe(ct))Ve.call(ct,St)&&ne(yt,St,ct[St]);return yt},Pt=(yt,ct)=>ze(yt,Ge(ct));var It=(yt,ct,St)=>ne(yt,typeof ct!="symbol"?ct+"":ct,St);var pt=(yt,ct,St)=>new Promise(($t,Ut)=>{var Ft=jt=>{try{Mt(St.next(jt))}catch(zt){Ut(zt)}},Yt=jt=>{try{Mt(St.throw(jt))}catch(zt){Ut(zt)}},Mt=jt=>jt.done?$t(jt.value):Promise.resolve(jt.value).then(Ft,Yt);Mt((St=St.apply(yt,ct)).next())});var he=(yt,ct,St)=>(ct=yt[de("asyncIterator")])?ct.call(yt):(yt=yt[de("iterator")](),ct={},St=($t,Ut)=>(Ut=yt[$t])&&(ct[$t]=Ft=>new Promise((Yt,Mt,jt)=>(Ft=Ut.call(yt,Ft),jt=Ft.done,Promise.resolve(Ft.value).then(zt=>Yt({value:zt,done:jt}),Mt)))),St("next"),St("return"),ct);var ct=(o=>(o.ChatInitialized="ChatInitialized",o.StatusInfoUpdate="StatusInfoUpdate",o.ChatMessage="ChatMessage",o.RemoveChatMsg="RemoveChatMsg",o.ClearMsgHistory="ClearMsgHistory",o.CloseChatRoom="CloseChatRoom",o.OpenChatRoom="OpenChatRoom",o.ReplaceChatMessage="ReplaceChatMessage",o.SelfSendMessage="SelfSendMessage",o.UserBanned="UserBanned",o.UserCancelBanned="UserCancelBanned",o.IpBanned="IpBanned",o.IpCancelBanned="IpCancelBanned",o.UserKicked="UserKicked",o.UserCancelKicked="UserCancelKicked",o.TopMsg="TopMsg",o.SetAutoTranslateLanguage="SetAutoTranslateLanguage",o.ProductClick="ProductClick",o.ProductBuyTimes="ProductBuyTimes",o))(ct||{}),St=(o=>(o.UnknownError="UnknownError",o.PlatformProhibited="PlatformProhibited",o))(St||{});class $t{constructor(){this.__eventStore={}}__addOnEvent(u,t,e,r){if(!t||!e)return;let n=this.__eventStore[t];n||(n=[]),n.push({type:u,handler:e,callbackHandler:e.bind(r)}),this.__eventStore[t]=n}on(u,t,e=this){this.__addOnEvent("normal",u,t,e)}once(u,t,e=this){this.__addOnEvent("once",u,t,e)}off(u,t){let e=this.__eventStore[u];e&&(e=e.filter(r=>r.handler!==t),this.__eventStore[u]=e)}emit(u,t,e){const r=this.__eventStore[u];r&&r.forEach(n=>{const{type:i,handler:a,callbackHandler:s}=n;typeof s=="function"&&s(t,e),i==="once"&&this.off(u,a)})}destroy(){this.__eventStore={}}}function Ut(o,u){let t=String(o).toUpperCase();return t!=="Y"&&t!=="N"&&(t=String(u).toUpperCase()),t==="Y"}var Ft;(function(o){o.B="B",o.KB="KB",o.MB="MB",o.GB="GB",o.TB="TB"})(Ft||(Ft={}));function Yt(o){const u=o.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/^([a-z]+:)?\/\/[^/]+/i,"").split("/"),t=/\.([a-z0-9]+)$/.exec(u[u.length-1]);return t?t[1].toLowerCase():""}var Mt;(function(o){o.PPT="ppt",o.PDF="pdf",o.Word="word",o.Excel="excel",o.Image="image",o.Txt="txt",o.Zip="zip",o.Others="others"})(Mt||(Mt={}));function jt(o){const u=Yt(o);return["pdf"].indexOf(u)!==-1?Mt.PDF:["doc","docx"].indexOf(u)!==-1?Mt.Word:["xls","xlsx"].indexOf(u)!==-1?Mt.Excel:["txt","md","csv","log"].indexOf(u)!==-1?Mt.Txt:["zip","rar","7z","tar","gz","bz2"].indexOf(u)!==-1?Mt.Zip:["ppt","pptx"].indexOf(u)!==-1?Mt.PPT:["jpg","jpeg","png","gif","bmp","webp","svg"].indexOf(u)!==-1?Mt.Image:Mt.Others}const zt=['"',"'","&","<",">"," "],Xt=[""","'","&","<",">"," "],oe=Object.create(null),ie=Object.create(null);zt.forEach((o,u)=>{oe[o]=Xt[u],ie[Xt[u]]=o});const ve=new RegExp("["+zt.join("")+"]","g"),ge=new RegExp("("+Xt.join("|")+")","g");function qt(o){return o==null?o:String(o).replace(ve,u=>oe[u])}function ae(o){return o==null?o:String(o).replace(ge,u=>ie[u])}function me(o){return o==null?o:String(o).replace(/\r?\n/g,"<br />")}function Gt(){let o=Date.now();return typeof performance!="undefined"&&typeof performance.now=="function"&&(o+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(u){const t=(o+16*Math.random())%16|0;return o=Math.floor(o/16),(u==="x"?t:3&t|8).toString(16)})}const Nt="polyv-chat";var ot=(o=>(o.Speak="speak",o.Image="image",o.Emotion="emotion",o.Reward="reward",o.File="file",o.Redpaper="redpaper",o.RedpaperReceive="redpaperReceive",o.CustomServer="customServer",o.CustomClient="customClient",o.System="system",o.MotivationLike="motivationLike",o.Effect="effect",o))(ot||{}),Vt=(o=>(o.Cash="cash",o.Good="good",o))(Vt||{}),Jt=(o=>(o.Normal="normal",o.OfficialNormal="official_normal",o.Password="password",o.Rain="rain",o.ScoreOfficialNormal="score_official_normal",o.ScorePassword="score_password",o.ScoreRain="score_rain",o.ScoreQuestion="score_question",o.Question="question",o.AlipayPasswordOfficialNormal="alipay_password_official_normal",o.TaskWard="TASK_REWARD",o))(Jt||{}),Zt=(o=>(o.ChatRoomIntroduction="chat-room-introduction",o))(Zt||{}),Ht=(o=>(o.Prev="prev",o.Next="next",o))(Ht||{}),te=(o=>(o.Speak="speak",o.Mic="mic",o))(te||{}),ee=(o=>(o.Chinese="Chinese",o.English="English",o.Japanese="Japanese",o.Korean="Korean",o.Russian="Russian",o))(ee||{});class ue{constructor(u){this._plvChat=u}_filterNick(u){return u}_filterUser(u){return u.userId||(u.userId="system"),u.nick=this._filterNick(u.nick),u}}class ye extends ue{constructor(u){super(u);const t=this._plvChat.plvSocket;t.addSocketHandles(Nt,{SPEAK:e=>{this._plvChat.status.getStatusInfo().autoTranslateLanguage&&!e.isTranslate||this.__emitChatMessage(this.__filterSpeakMsg(e))},CHAT_IMG:e=>{this.__emitChatMessage(this.__filterChatImgMsg(e))},REWARD:e=>pt(this,null,function*(){const r=yield this.__filterRewardMsg(e);this.__emitChatMessage(r)}),REDPAPER:e=>{this.__emitChatMessage(this.__filterRedpaperMsg(e))},RED_PAPER_RESULT:e=>{this.__emitChatMessage(this.__filterRedpaperReceiveMsg(e))},CUSTOMER_MESSAGE:e=>{this.__emitChatMessage(this.__filterCustomServerMsg(e))}}),t.addSocketHandles(Nt,{DEFAULT_EVENT:e=>pt(this,null,function*(){const r=yield this.__filterEmotionMsg(e);this.__emitChatMessage(r)})},"emotion"),t.addSocketHandles(Nt,e=>{this.__emitChatMessage(this.__filterCustomClientMsg(e))},"customMessage"),t.addSocketHandles(Nt,e=>{e.list.forEach(r=>{this.__emitChatMessage(this.__filterMotivationLikeMsg(r))})},"motivation")}__emitChatMessage(u){this._plvChat.eventEmitter.emit(ct.ChatMessage,{chatMsg:u})}__filterQuote(u){const t=this._filterUser(u.user),e=u.msgType||"speak",r="",i={speak:()=>({id:r,time:Date.now(),user:t,msgSource:ot.Speak,content:u.content}),chatImg:()=>({id:r,time:Date.now(),user:t,msgSource:ot.Image,imageId:"",imageUrl:u.image.url,size:{width:u.image.width,height:u.image.height}}),file:()=>{const a=JSON.parse(u.content);return{id:r,time:Date.now(),user:t,msgSource:ot.File,fileName:a.name,fileUrl:a.url}},redpaper:()=>{const a=JSON.parse(u.content);return Pt(Tt({},a),{id:r,time:Date.now(),user:t,msgSource:ot.Redpaper})},customerMessage:()=>({id:r,time:Date.now(),user:t,msgSource:ot.CustomServer,content:u.content})}[e];if(i)return i(u)}__filterSpeakMsg(u){if(u.msgSource==="file")return this.__filterFileMsg(u);const t={msgSource:ot.Speak,id:u.id,time:u.time,user:this._filterUser(u.user),content:u.values&&u.values[0]||""},e=this._plvChat.status.getStatusInfo();return e.autoTranslateLanguage&&(t.translateLanguage=e.autoTranslateLanguage),u.overLen&&(t.isOverLength=!0),u.quote&&(t.quote=this.__filterQuote(u.quote)),t}__filterFileMsg(u){const t=JSON.parse(u.values[0]);return jt(t.name)===Mt.Image?{msgSource:ot.Image,id:u.id,time:u.time,user:this._filterUser(u.user),imageId:Gt(),imageUrl:t.url}:{msgSource:ot.File,id:u.id,time:u.time,user:this._filterUser(u.user),fileName:t.name,fileUrl:t.url}}__filterChatImgMsg(u){const t=u.values[0],e={msgSource:ot.Image,id:u.id,time:u.time,imageId:t.id,imageUrl:t.uploadImgUrl,size:t.size,user:this._filterUser(u.user)};return u.result===!1&&(e.isIllegal=!0),e}__filterEmotionMsg(u){return pt(this,null,function*(){const e=(yield this._plvChat.emotion.getEmotionImages()).find(r=>r.id===u.id);return{msgSource:ot.Emotion,id:u.messageId,time:Date.now(),user:this._filterUser(u.user),emotionId:u.id,emotionUrl:(e==null?void 0:e.url)||""}})}__filterRewardMsg(u){return pt(this,null,function*(){return{msgSource:ot.Reward,id:u.id,time:Date.now(),gimg:u.content.gimg,goodNum:u.content.goodNum,rewardContent:u.content.rewardContent,donateType:u.content.gimg?Vt.Good:Vt.Cash,isSelf:this._plvChat.plvSocket.isCurrentUser(u.content.rewardUser.userId),user:this._filterUser({userId:u.content.rewardUser.userId,nick:u.content.unick,pic:u.content.uimg,userType:this._plvChat.plvSocket.SocketUserType.Viewer})}})}__filterRedpaperMsg(u){return Pt(Tt({},u),{msgSource:ot.Redpaper,id:u.id,time:u.timestamp,user:this._filterUser(u.user)})}__filterRedpaperReceiveMsg(u){return{msgSource:ot.RedpaperReceive,id:Gt(),time:Date.now(),nick:this._filterNick(u.nick),type:u.type,isOver:Ut(u.isOver,"N")}}__filterCustomServerMsg(u){return{msgSource:ot.CustomServer,id:u.id,time:Date.now(),user:this._filterUser(u.user),content:u.content}}__filterCustomClientMsg(u){return Pt(Tt({},u),{msgSource:ot.CustomClient,id:u.id,time:u.time,user:this._filterUser(u.user)})}__filterMotivationLikeMsg(u){return Pt(Tt({},u),{id:Gt(),msgSource:ot.MotivationLike,time:Date.now()})}__filterSpeakTopMsg(u){const t=[],e=r=>{t.push({id:r.id,topActor:r.topActor,chatMsg:{id:r.speakId,time:Date.now(),msgSource:ot.Speak,content:r.content,user:this._filterUser({userId:r.userId,nick:r.nick,pic:r.pic,userType:r.userType})}})};return e(u),u.others&&u.others.forEach(r=>{e(r)}),t}}class be{constructor(u){u.plvSocket.addSocketHandles(Nt,{onSliceID:()=>{setTimeout(()=>{u.eventEmitter.emit(ct.ChatInitialized,{})},100)}}),u.plvSocket.addSocketHandles(Nt,{PRODUCT_CLICK:t=>{u.eventEmitter.emit(ct.ProductClick,{type:t.type,nickname:t.nickName,productId:t.productId,name:t.positionName})},PRODUCT_BUY_TIMES:t=>{t.list.forEach(e=>{u.eventEmitter.emit(ct.ProductBuyTimes,{nickname:e.nick,count:e.times,productId:e.info.productId,productName:e.info.productName,productType:e.info.productType})})}},"product")}}var Kt=function(o){var u={};function t(e){if(u[e])return u[e].exports;var r=u[e]={i:e,l:!1,exports:{}};return o[e].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=o,t.c=u,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r||4&r&&typeof e=="object"&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&typeof e!="string")for(var i in e)t.d(n,i,function(a){return e[a]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=196)}([function(o,u,t){(function(e){var r=function(n){return n&&n.Math===Math&&n};o.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof e=="object"&&e)||r(typeof this=="object"&&this)||function(){return this}()||Function("return this")()}).call(this,t(115))},function(o,u,t){o.exports=function(e){try{return!!e()}catch(r){return!0}}},function(o,u,t){var e=t(39),r=Function.prototype,n=r.call,i=e&&r.bind.bind(n,n);o.exports=e?i:function(a){return function(){return n.apply(a,arguments)}}},function(o,u,t){var e=typeof document=="object"&&document.all;o.exports=e===void 0&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"}},function(o,u,t){var e=t(0),r=t(38).f,n=t(24),i=t(14),a=t(55),s=t(79),f=t(60);o.exports=function(c,d){var p,l,h,v,g,y=c.target,b=c.global,m=c.stat;if(p=b?e:m?e[y]||a(y,{}):(e[y]||{}).prototype)for(l in d){if(v=d[l],h=c.dontCallGetSet?(g=r(p,l))&&g.value:p[l],!f(b?l:y+(m?".":"#")+l,c.forced)&&h!==void 0){if(typeof v==typeof h)continue;s(v,h)}(c.sham||h&&h.sham)&&n(v,"sham",!0),i(p,l,v,c)}}},function(o,u,t){var e=t(0),r=t(23),n=t(6),i=t(56),a=t(22),s=t(73),f=e.Symbol,c=r("wks"),d=s?f.for||f:f&&f.withoutSetter||i;o.exports=function(p){return n(c,p)||(c[p]=a&&n(f,p)?f[p]:d("Symbol."+p)),c[p]}},function(o,u,t){var e=t(2),r=t(19),n=e({}.hasOwnProperty);o.exports=Object.hasOwn||function(i,a){return n(r(i),a)}},function(o,u,t){var e=t(1);o.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},function(o,u,t){var e=t(39),r=Function.prototype.call;o.exports=e?r.bind(r):function(){return r.apply(r,arguments)}},function(o,u,t){var e=t(11),r=String,n=TypeError;o.exports=function(i){if(e(i))return i;throw new n(r(i)+" is not an object")}},function(o,u,t){var e=t(7),r=t(75),n=t(76),i=t(9),a=t(40),s=TypeError,f=Object.defineProperty,c=Object.getOwnPropertyDescriptor;u.f=e?n?function(d,p,l){if(i(d),p=a(p),i(l),typeof d=="function"&&p==="prototype"&&"value"in l&&"writable"in l&&!l.writable){var h=c(d,p);h&&h.writable&&(d[p]=l.value,l={configurable:"configurable"in l?l.configurable:h.configurable,enumerable:"enumerable"in l?l.enumerable:h.enumerable,writable:!1})}return f(d,p,l)}:f:function(d,p,l){if(i(d),p=a(p),i(l),r)try{return f(d,p,l)}catch(h){}if("get"in l||"set"in l)throw new s("Accessors not supported");return"value"in l&&(d[p]=l.value),d}},function(o,u,t){var e=t(3);o.exports=function(r){return typeof r=="object"?r!==null:e(r)}},function(o,u,t){var e=t(0),r=t(3),n=function(i){return r(i)?i:void 0};o.exports=function(i,a){return arguments.length<2?n(e[i]):e[i]&&e[i][a]}},function(o,u,t){o.exports=!1},function(o,u,t){var e=t(3),r=t(10),n=t(77),i=t(55);o.exports=function(a,s,f,c){c||(c={});var d=c.enumerable,p=c.name!==void 0?c.name:s;if(e(f)&&n(f,p,c),c.global)d?a[s]=f:i(s,f);else{try{c.unsafe?a[s]&&(d=!0):delete a[s]}catch(l){}d?a[s]=f:r.f(a,s,{value:f,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return a}},function(o,u,t){var e=t(49),r=String;o.exports=function(n){if(e(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}},function(o,u,t){var e=t(2),r=e({}.toString),n=e("".slice);o.exports=function(i){return n(r(i),8,-1)}},function(o,u,t){var e=t(3),r=t(32),n=TypeError;o.exports=function(i){if(e(i))return i;throw new n(r(i)+" is not a function")}},function(o,u,t){var e=t(71),r=t(20);o.exports=function(n){return e(r(n))}},function(o,u,t){var e=t(20),r=Object;o.exports=function(n){return r(e(n))}},function(o,u,t){var e=t(29),r=TypeError;o.exports=function(n){if(e(n))throw new r("Can't call method on "+n);return n}},function(o,u,t){var e=t(2);o.exports=e({}.isPrototypeOf)},function(o,u,t){var e=t(41),r=t(1),n=t(0).String;o.exports=!!Object.getOwnPropertySymbols&&!r(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41})},function(o,u,t){var e=t(13),r=t(54);(o.exports=function(n,i){return r[n]||(r[n]=i!==void 0?i:{})})("versions",[]).push({version:"3.35.0",mode:e?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(o,u,t){var e=t(7),r=t(10),n=t(28);o.exports=e?function(i,a,s){return r.f(i,a,n(1,s))}:function(i,a,s){return i[a]=s,i}},function(o,u,t){var e,r,n,i=t(116),a=t(0),s=t(11),f=t(24),c=t(6),d=t(54),p=t(44),l=t(45),h=a.TypeError,v=a.WeakMap;if(i||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,e=function(b,m){if(g.has(b))throw new h("Object already initialized");return m.facade=b,g.set(b,m),m},r=function(b){return g.get(b)||{}},n=function(b){return g.has(b)}}else{var y=p("state");l[y]=!0,e=function(b,m){if(c(b,y))throw new h("Object already initialized");return m.facade=b,f(b,y,m),m},r=function(b){return c(b,y)?b[y]:{}},n=function(b){return c(b,y)}}o.exports={set:e,get:r,has:n,enforce:function(b){return n(b)?r(b):e(b,{})},getterFor:function(b){return function(m){var S;if(!s(m)||(S=r(m)).type!==b)throw new h("Incompatible receiver, "+b+" required");return S}}}},function(o,u,t){var e=t(120);o.exports=function(r){var n=+r;return n!=n||n===0?0:e(n)}},function(o,u,t){var e,r=t(9),n=t(97),i=t(58),a=t(45),s=t(89),f=t(43),c=t(44),d=c("IE_PROTO"),p=function(){},l=function(g){return"<script>"+g+"<\/script>"},h=function(g){g.write(l("")),g.close();var y=g.parentWindow.Object;return g=null,y},v=function(){try{e=new ActiveXObject("htmlfile")}catch(m){}var g,y;v=typeof document!="undefined"?document.domain&&e?h(e):((y=f("iframe")).style.display="none",s.appendChild(y),y.src="javascript:",(g=y.contentWindow.document).open(),g.write(l("document.F=Object")),g.close(),g.F):h(e);for(var b=i.length;b--;)delete v.prototype[i[b]];return v()};a[d]=!0,o.exports=Object.create||function(g,y){var b;return g!==null?(p.prototype=r(g),b=new p,p.prototype=null,b[d]=g):b=v(),y===void 0?b:n.f(b,y)}},function(o,u,t){o.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},function(o,u,t){o.exports=function(e){return e==null}},function(o,u,t){var e=t(12),r=t(3),n=t(21),i=t(73),a=Object;o.exports=i?function(s){return typeof s=="symbol"}:function(s){var f=e("Symbol");return r(f)&&n(f.prototype,a(s))}},function(o,u,t){o.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},function(o,u,t){var e=String;o.exports=function(r){try{return e(r)}catch(n){return"Object"}}},function(o,u,t){var e=t(10).f,r=t(6),n=t(5)("toStringTag");o.exports=function(i,a,s){i&&!s&&(i=i.prototype),i&&!r(i,n)&&e(i,n,{configurable:!0,value:a})}},function(o,u,t){var e=t(0);o.exports=e.Promise},function(o,u,t){var e=t(0),r=t(34),n=t(3),i=t(60),a=t(57),s=t(5),f=t(144),c=t(92),d=t(13),p=t(41),l=r&&r.prototype,h=s("species"),v=!1,g=n(e.PromiseRejectionEvent),y=i("Promise",function(){var b=a(r),m=b!==String(r);if(!m&&p===66||d&&(!l.catch||!l.finally))return!0;if(!p||p<51||!/native code/.test(b)){var S=new r(function(I){I(1)}),x=function(I){I(function(){},function(){})};if((S.constructor={})[h]=x,!(v=S.then(function(){})instanceof x))return!0}return!m&&(f||c)&&!g});o.exports={CONSTRUCTOR:y,REJECTION_EVENT:g,SUBCLASSING:v}},function(o,u,t){var e=t(17),r=TypeError,n=function(i){var a,s;this.promise=new i(function(f,c){if(a!==void 0||s!==void 0)throw new r("Bad Promise constructor");a=f,s=c}),this.resolve=e(a),this.reject=e(s)};o.exports.f=function(i){return new n(i)}},function(o,u,t){o.exports={}},function(o,u,t){var e=t(7),r=t(8),n=t(70),i=t(28),a=t(18),s=t(40),f=t(6),c=t(75),d=Object.getOwnPropertyDescriptor;u.f=e?d:function(p,l){if(p=a(p),l=s(l),c)try{return d(p,l)}catch(h){}if(f(p,l))return i(!r(n.f,p,l),p[l])}},function(o,u,t){var e=t(1);o.exports=!e(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})},function(o,u,t){var e=t(72),r=t(30);o.exports=function(n){var i=e(n,"string");return r(i)?i:i+""}},function(o,u,t){var e,r,n=t(0),i=t(31),a=n.process,s=n.Deno,f=a&&a.versions||s&&s.version,c=f&&f.v8;c&&(r=(e=c.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&i&&(!(e=i.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=i.match(/Chrome\/(\d+)/))&&(r=+e[1]),o.exports=r},function(o,u,t){var e=t(17),r=t(29);o.exports=function(n,i){var a=n[i];return r(a)?void 0:e(a)}},function(o,u,t){var e=t(0),r=t(11),n=e.document,i=r(n)&&r(n.createElement);o.exports=function(a){return i?n.createElement(a):{}}},function(o,u,t){var e=t(23),r=t(56),n=e("keys");o.exports=function(i){return n[i]||(n[i]=r(i))}},function(o,u,t){o.exports={}},function(o,u,t){var e=t(80),r=t(58).concat("length","prototype");u.f=Object.getOwnPropertyNames||function(n){return e(n,r)}},function(o,u,t){var e=t(81);o.exports=function(r){return e(r.length)}},function(o,u,t){var e=t(16);o.exports=Array.isArray||function(r){return e(r)==="Array"}},function(o,u,t){var e=t(61),r=t(3),n=t(16),i=t(5)("toStringTag"),a=Object,s=n(function(){return arguments}())==="Arguments";o.exports=e?n:function(f){var c,d,p;return f===void 0?"Undefined":f===null?"Null":typeof(d=function(l,h){try{return l[h]}catch(v){}}(c=a(f),i))=="string"?d:s?n(c):(p=n(c))==="Object"&&r(c.callee)?"Arguments":p}},function(o,u,t){var e=t(39),r=Function.prototype,n=r.apply,i=r.call;o.exports=typeof Reflect=="object"&&Reflect.apply||(e?i.bind(n):function(){return i.apply(n,arguments)})},function(o,u,t){var e=t(2);o.exports=e([].slice)},function(o,u,t){var e=t(0),r=t(16);o.exports=r(e.process)==="process"},function(o,u,t){var e=t(88),r=t(17),n=t(39),i=e(e.bind);o.exports=function(a,s){return r(a),s===void 0?a:n?i(a,s):function(){return a.apply(s,arguments)}}},function(o,u,t){var e=t(0),r=t(55),n=e["__core-js_shared__"]||r("__core-js_shared__",{});o.exports=n},function(o,u,t){var e=t(0),r=Object.defineProperty;o.exports=function(n,i){try{r(e,n,{value:i,configurable:!0,writable:!0})}catch(a){e[n]=i}return i}},function(o,u,t){var e=t(2),r=0,n=Math.random(),i=e(1 .toString);o.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+i(++r+n,36)}},function(o,u,t){var e=t(2),r=t(3),n=t(54),i=e(Function.toString);r(n.inspectSource)||(n.inspectSource=function(a){return i(a)}),o.exports=n.inspectSource},function(o,u,t){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(o,u,t){u.f=Object.getOwnPropertySymbols},function(o,u,t){var e=t(1),r=t(3),n=/#|\.prototype\./,i=function(d,p){var l=s[a(d)];return l===c||l!==f&&(r(p)?e(p):!!p)},a=i.normalize=function(d){return String(d).replace(n,".").toLowerCase()},s=i.data={},f=i.NATIVE="N",c=i.POLYFILL="P";o.exports=i},function(o,u,t){var e={};e[t(5)("toStringTag")]="z",o.exports=String(e)==="[object z]"},function(o,u,t){var e=t(132),r=t(9),n=t(133);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i,a=!1,s={};try{(i=e(Object.prototype,"__proto__","set"))(s,[]),a=s instanceof Array}catch(f){}return function(f,c){return r(f),n(c),a?i(f,c):f.__proto__=c,f}}():void 0)},function(o,u,t){var e=t(77),r=t(10);o.exports=function(n,i,a){return a.get&&e(a.get,i,{getter:!0}),a.set&&e(a.set,i,{setter:!0}),r.f(n,i,a)}},function(o,u,t){o.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}},function(o,u,t){var e=t(80),r=t(58);o.exports=Object.keys||function(n){return e(n,r)}},function(o,u,t){var e=t(4),r=t(67);e({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(o,u,t){var e,r,n=t(8),i=t(2),a=t(15),s=t(158),f=t(159),c=t(23),d=t(27),p=t(25).get,l=t(160),h=t(161),v=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,b=i("".charAt),m=i("".indexOf),S=i("".replace),x=i("".slice),I=(r=/b*/g,n(g,e=/a/,"a"),n(g,r,"a"),e.lastIndex!==0||r.lastIndex!==0),E=f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0;(I||C||E||l||h)&&(y=function(k){var A,U,V,F,z,B,j,P=this,D=p(P),G=a(k),Z=D.raw;if(Z)return Z.lastIndex=P.lastIndex,A=n(y,Z,G),P.lastIndex=Z.lastIndex,A;var et=D.groups,rt=E&&P.sticky,tt=n(s,P),Y=P.source,ht=0,dt=G;if(rt&&(tt=S(tt,"y",""),m(tt,"g")===-1&&(tt+="g"),dt=x(G,P.lastIndex),P.lastIndex>0&&(!P.multiline||P.multiline&&b(G,P.lastIndex-1)!==`
|
|
2
|
+
`)&&(Y="(?: "+Y+")",dt=" "+dt,ht++),U=new RegExp("^(?:"+Y+")",tt)),C&&(U=new RegExp("^"+Y+"$(?!\\s)",tt)),I&&(V=P.lastIndex),F=n(g,rt?U:P,dt),rt?F?(F.input=x(F.input,ht),F[0]=x(F[0],ht),F.index=P.lastIndex,P.lastIndex+=F[0].length):P.lastIndex=0:I&&F&&(P.lastIndex=P.global?F.index+F[0].length:V),C&&F&&F.length>1&&n(v,F[0],U,function(){for(z=1;z<arguments.length-2;z++)arguments[z]===void 0&&(F[z]=void 0)}),F&&et)for(F.groups=B=d(null),z=0;z<et.length;z++)B[(j=et[z])[0]]=F[j[1]];return F}),o.exports=y},function(o,u,t){var e=t(105),r=t(6),n=t(106),i=t(10).f;o.exports=function(a){var s=e.Symbol||(e.Symbol={});r(s,a)||i(s,a,{value:n.f(a)})}},function(o,u,t){var e=t(4),r=t(1),n=t(48),i=t(11),a=t(19),s=t(47),f=t(121),c=t(122),d=t(82),p=t(124),l=t(5),h=t(41),v=l("isConcatSpreadable"),g=h>=51||!r(function(){var b=[];return b[v]=!1,b.concat()[0]!==b}),y=function(b){if(!i(b))return!1;var m=b[v];return m!==void 0?!!m:n(b)};e({target:"Array",proto:!0,arity:1,forced:!g||!p("concat")},{concat:function(b){var m,S,x,I,E,C=a(this),k=d(C,0),A=0;for(m=-1,x=arguments.length;m<x;m++)if(y(E=m===-1?C:arguments[m]))for(I=s(E),f(A+I),S=0;S<I;S++,A++)S in E&&c(k,A,E[S]);else f(A+1),c(k,A++,E);return k.length=A,k}})},function(o,u,t){var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!e.call({1:2},1);u.f=n?function(i){var a=r(this,i);return!!a&&a.enumerable}:e},function(o,u,t){var e=t(2),r=t(1),n=t(16),i=Object,a=e("".split);o.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(s){return n(s)==="String"?a(s,""):i(s)}:i},function(o,u,t){var e=t(8),r=t(11),n=t(30),i=t(42),a=t(74),s=t(5),f=TypeError,c=s("toPrimitive");o.exports=function(d,p){if(!r(d)||n(d))return d;var l,h=i(d,c);if(h){if(p===void 0&&(p="default"),l=e(h,d,p),!r(l)||n(l))return l;throw new f("Can't convert object to primitive value")}return p===void 0&&(p="number"),a(d,p)}},function(o,u,t){var e=t(22);o.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(o,u,t){var e=t(8),r=t(3),n=t(11),i=TypeError;o.exports=function(a,s){var f,c;if(s==="string"&&r(f=a.toString)&&!n(c=e(f,a))||r(f=a.valueOf)&&!n(c=e(f,a))||s!=="string"&&r(f=a.toString)&&!n(c=e(f,a)))return c;throw new i("Can't convert object to primitive value")}},function(o,u,t){var e=t(7),r=t(1),n=t(43);o.exports=!e&&!r(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7})},function(o,u,t){var e=t(7),r=t(1);o.exports=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},function(o,u,t){var e=t(2),r=t(1),n=t(3),i=t(6),a=t(7),s=t(78).CONFIGURABLE,f=t(57),c=t(25),d=c.enforce,p=c.get,l=String,h=Object.defineProperty,v=e("".slice),g=e("".replace),y=e([].join),b=a&&!r(function(){return h(function(){},"length",{value:8}).length!==8}),m=String(String).split("String"),S=o.exports=function(x,I,E){v(l(I),0,7)==="Symbol("&&(I="["+g(l(I),/^Symbol\(([^)]*)\)/,"$1")+"]"),E&&E.getter&&(I="get "+I),E&&E.setter&&(I="set "+I),(!i(x,"name")||s&&x.name!==I)&&(a?h(x,"name",{value:I,configurable:!0}):x.name=I),b&&E&&i(E,"arity")&&x.length!==E.arity&&h(x,"length",{value:E.arity});try{E&&i(E,"constructor")&&E.constructor?a&&h(x,"prototype",{writable:!1}):x.prototype&&(x.prototype=void 0)}catch(k){}var C=d(x);return i(C,"source")||(C.source=y(m,typeof I=="string"?I:"")),x};Function.prototype.toString=S(function(){return n(this)&&p(this).source||f(this)},"toString")},function(o,u,t){var e=t(7),r=t(6),n=Function.prototype,i=e&&Object.getOwnPropertyDescriptor,a=r(n,"name"),s=a&&function(){}.name==="something",f=a&&(!e||e&&i(n,"name").configurable);o.exports={EXISTS:a,PROPER:s,CONFIGURABLE:f}},function(o,u,t){var e=t(6),r=t(117),n=t(38),i=t(10);o.exports=function(a,s,f){for(var c=r(s),d=i.f,p=n.f,l=0;l<c.length;l++){var h=c[l];e(a,h)||f&&e(f,h)||d(a,h,p(s,h))}}},function(o,u,t){var e=t(2),r=t(6),n=t(18),i=t(118).indexOf,a=t(45),s=e([].push);o.exports=function(f,c){var d,p=n(f),l=0,h=[];for(d in p)!r(a,d)&&r(p,d)&&s(h,d);for(;c.length>l;)r(p,d=c[l++])&&(~i(h,d)||s(h,d));return h}},function(o,u,t){var e=t(26),r=Math.min;o.exports=function(n){return n>0?r(e(n),9007199254740991):0}},function(o,u,t){var e=t(123);o.exports=function(r,n){return new(e(r))(n===0?0:n)}},function(o,u,t){var e=t(2),r=t(1),n=t(3),i=t(49),a=t(12),s=t(57),f=function(){},c=[],d=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,l=e(p.exec),h=!p.test(f),v=function(y){if(!n(y))return!1;try{return d(f,c,y),!0}catch(b){return!1}},g=function(y){if(!n(y))return!1;switch(i(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(p,s(y))}catch(b){return!0}};g.sham=!0,o.exports=!d||r(function(){var y;return v(v.call)||!v(Object)||!v(function(){y=!0})||y})?g:v},function(o,u,t){var e,r=t(0),n=t(50),i=t(3),a=t(127),s=t(31),f=t(51),c=t(85),d=r.Function,p=/MSIE .\./.test(s)||a&&((e=r.Bun.version.split(".")).length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0"));o.exports=function(l,h){var v=h?2:1;return p?function(g,y){var b=c(arguments.length,1)>v,m=i(g)?g:d(g),S=b?f(arguments,v):[],x=b?function(){n(m,this,S)}:m;return h?l(x,y):l(x)}:l}},function(o,u,t){var e=TypeError;o.exports=function(r,n){if(r<n)throw new e("Not enough arguments");return r}},function(o,u,t){var e=t(61),r=t(14),n=t(129);e||r(Object.prototype,"toString",n,{unsafe:!0})},function(o,u,t){var e,r,n,i,a=t(0),s=t(50),f=t(53),c=t(3),d=t(6),p=t(1),l=t(89),h=t(51),v=t(43),g=t(85),y=t(90),b=t(52),m=a.setImmediate,S=a.clearImmediate,x=a.process,I=a.Dispatch,E=a.Function,C=a.MessageChannel,k=a.String,A=0,U={};p(function(){e=a.location});var V=function(j){if(d(U,j)){var P=U[j];delete U[j],P()}},F=function(j){return function(){V(j)}},z=function(j){V(j.data)},B=function(j){a.postMessage(k(j),e.protocol+"//"+e.host)};m&&S||(m=function(j){g(arguments.length,1);var P=c(j)?j:E(j),D=h(arguments,1);return U[++A]=function(){s(P,void 0,D)},r(A),A},S=function(j){delete U[j]},b?r=function(j){x.nextTick(F(j))}:I&&I.now?r=function(j){I.now(F(j))}:C&&!y?(i=(n=new C).port2,n.port1.onmessage=z,r=f(i.postMessage,i)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&e&&e.protocol!=="file:"&&!p(B)?(r=B,a.addEventListener("message",z,!1)):r="onreadystatechange"in v("script")?function(j){l.appendChild(v("script")).onreadystatechange=function(){l.removeChild(this),V(j)}}:function(j){setTimeout(F(j),0)}),o.exports={set:m,clear:S}},function(o,u,t){var e=t(16),r=t(2);o.exports=function(n){if(e(n)==="Function")return r(n)}},function(o,u,t){var e=t(12);o.exports=e("document","documentElement")},function(o,u,t){var e=t(31);o.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},function(o,u,t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(r){var n={item:r,next:null},i=this.tail;i?i.next=n:this.head=n,this.tail=n},get:function(){var r=this.head;if(r)return(this.head=r.next)===null&&(this.tail=null),r.item}},o.exports=e},function(o,u,t){o.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},function(o,u,t){var e=t(53),r=t(8),n=t(9),i=t(32),a=t(146),s=t(47),f=t(21),c=t(147),d=t(94),p=t(148),l=TypeError,h=function(g,y){this.stopped=g,this.result=y},v=h.prototype;o.exports=function(g,y,b){var m,S,x,I,E,C,k,A=b&&b.that,U=!(!b||!b.AS_ENTRIES),V=!(!b||!b.IS_RECORD),F=!(!b||!b.IS_ITERATOR),z=!(!b||!b.INTERRUPTED),B=e(y,A),j=function(D){return m&&p(m,"normal",D),new h(!0,D)},P=function(D){return U?(n(D),z?B(D[0],D[1],j):B(D[0],D[1])):z?B(D,j):B(D)};if(V)m=g.iterator;else if(F)m=g;else{if(!(S=d(g)))throw new l(i(g)+" is not iterable");if(a(S)){for(x=0,I=s(g);I>x;x++)if((E=P(g[x]))&&f(v,E))return E;return new h(!1)}m=c(g,S)}for(C=V?g.next:m.next;!(k=r(C,m)).done;){try{E=P(k.value)}catch(D){p(m,"throw",D)}if(typeof E=="object"&&E&&f(v,E))return E}return new h(!1)}},function(o,u,t){var e=t(49),r=t(42),n=t(29),i=t(37),a=t(5)("iterator");o.exports=function(s){if(!n(s))return r(s,a)||r(s,"@@iterator")||i[e(s)]}},function(o,u,t){var e=t(34),r=t(149),n=t(35).CONSTRUCTOR;o.exports=n||!r(function(i){e.all(i).then(void 0,function(){})})},function(o,u,t){var e=t(4),r=t(19),n=t(65);e({target:"Object",stat:!0,forced:t(1)(function(){n(1)})},{keys:function(i){return n(r(i))}})},function(o,u,t){var e=t(7),r=t(76),n=t(10),i=t(9),a=t(18),s=t(65);u.f=e&&!r?Object.defineProperties:function(f,c){i(f);for(var d,p=a(c),l=s(c),h=l.length,v=0;h>v;)n.f(f,d=l[v++],p[d]);return f}},function(o,u,t){var e=t(50),r=t(8),n=t(2),i=t(162),a=t(1),s=t(9),f=t(3),c=t(29),d=t(26),p=t(81),l=t(15),h=t(20),v=t(163),g=t(42),y=t(164),b=t(165),m=t(5)("replace"),S=Math.max,x=Math.min,I=n([].concat),E=n([].push),C=n("".indexOf),k=n("".slice),A="a".replace(/./,"$0")==="$0",U=!!/./[m]&&/./[m]("a","$0")==="";i("replace",function(V,F,z){var B=U?"$":"$0";return[function(j,P){var D=h(this),G=c(j)?void 0:g(j,m);return G?r(G,j,D,P):r(F,l(D),j,P)},function(j,P){var D=s(this),G=l(j);if(typeof P=="string"&&C(P,B)===-1&&C(P,"$<")===-1){var Z=z(F,D,G,P);if(Z.done)return Z.value}var et=f(P);et||(P=l(P));var rt,tt=D.global;tt&&(rt=D.unicode,D.lastIndex=0);for(var Y,ht=[];(Y=b(D,G))!==null&&(E(ht,Y),tt);)l(Y[0])===""&&(D.lastIndex=v(G,p(D.lastIndex),rt));for(var dt,wt="",bt=0,st=0;st<ht.length;st++){for(var lt,Ot=l((Y=ht[st])[0]),Et=S(x(d(Y.index),G.length),0),Ct=[],gt=1;gt<Y.length;gt++)E(Ct,(dt=Y[gt])===void 0?dt:String(dt));var vt=Y.groups;if(et){var _t=I([Ot],Ct,Et,G);vt!==void 0&&E(_t,vt),lt=l(e(P,void 0,_t))}else lt=y(Ot,G,Et,Ct,vt,P);Et>=bt&&(wt+=k(G,bt,Et)+lt,bt=Et+Ot.length)}return wt+k(G,bt)}]},!!a(function(){var V=/./;return V.exec=function(){var F=[];return F.groups={a:"7"},F},"".replace(V,"$<a>")!=="7"})||!A||U)},function(o,u,t){var e=t(2),r=t(26),n=t(15),i=t(20),a=e("".charAt),s=e("".charCodeAt),f=e("".slice),c=function(d){return function(p,l){var h,v,g=n(i(p)),y=r(l),b=g.length;return y<0||y>=b?d?"":void 0:(h=s(g,y))<55296||h>56319||y+1===b||(v=s(g,y+1))<56320||v>57343?d?a(g,y):h:d?f(g,y,y+2):v-56320+(h-55296<<10)+65536}};o.exports={codeAt:c(!1),charAt:c(!0)}},function(o,u,t){var e=t(101).forEach,r=t(168)("forEach");o.exports=r?[].forEach:function(n){return e(this,n,arguments.length>1?arguments[1]:void 0)}},function(o,u,t){var e=t(53),r=t(2),n=t(71),i=t(19),a=t(47),s=t(82),f=r([].push),c=function(d){var p=d===1,l=d===2,h=d===3,v=d===4,g=d===6,y=d===7,b=d===5||g;return function(m,S,x,I){for(var E,C,k=i(m),A=n(k),U=a(A),V=e(S,x),F=0,z=I||s,B=p?z(m,U):l||y?z(m,0):void 0;U>F;F++)if((b||F in A)&&(C=V(E=A[F],F,k),d))if(p)B[F]=C;else if(C)switch(d){case 3:return!0;case 5:return E;case 6:return F;case 2:f(B,E)}else switch(d){case 4:return!1;case 7:f(B,E)}return g?-1:h||v?v:B}};o.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(o,u,t){o.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(o,u,t){var e=t(43)("span").classList,r=e&&e.constructor&&e.constructor.prototype;o.exports=r===Object.prototype?void 0:r},function(o,u,t){var e=t(2);o.exports=e(1 .valueOf)},function(o,u,t){var e=t(0);o.exports=e},function(o,u,t){var e=t(5);u.f=e},function(o,u,t){var e=t(8),r=t(12),n=t(5),i=t(14);o.exports=function(){var a=r("Symbol"),s=a&&a.prototype,f=s&&s.valueOf,c=n("toPrimitive");s&&!s[c]&&i(s,c,function(d){return e(f,this)},{arity:1})}},function(o,u,t){var e=t(22);o.exports=e&&!!Symbol.for&&!!Symbol.keyFor},function(o,u,t){var e=t(18),r=t(190),n=t(37),i=t(25),a=t(10).f,s=t(110),f=t(113),c=t(13),d=t(7),p=i.set,l=i.getterFor("Array Iterator");o.exports=s(Array,"Array",function(v,g){p(this,{type:"Array Iterator",target:e(v),index:0,kind:g})},function(){var v=l(this),g=v.target,y=v.index++;if(!g||y>=g.length)return v.target=void 0,f(void 0,!0);switch(v.kind){case"keys":return f(y,!1);case"values":return f(g[y],!1)}return f([y,g[y]],!1)},"values");var h=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!c&&d&&h.name!=="values")try{a(h,"name",{value:"values"})}catch(v){}},function(o,u,t){var e=t(4),r=t(8),n=t(13),i=t(78),a=t(3),s=t(191),f=t(112),c=t(62),d=t(33),p=t(24),l=t(14),h=t(5),v=t(37),g=t(111),y=i.PROPER,b=i.CONFIGURABLE,m=g.IteratorPrototype,S=g.BUGGY_SAFARI_ITERATORS,x=h("iterator"),I=function(){return this};o.exports=function(E,C,k,A,U,V,F){s(k,C,A);var z,B,j,P=function(Y){if(Y===U&&rt)return rt;if(!S&&Y&&Y in Z)return Z[Y];switch(Y){case"keys":case"values":case"entries":return function(){return new k(this,Y)}}return function(){return new k(this)}},D=C+" Iterator",G=!1,Z=E.prototype,et=Z[x]||Z["@@iterator"]||U&&Z[U],rt=!S&&et||P(U),tt=C==="Array"&&Z.entries||et;if(tt&&(z=f(tt.call(new E)))!==Object.prototype&&z.next&&(n||f(z)===m||(c?c(z,m):a(z[x])||l(z,x,I)),d(z,D,!0,!0),n&&(v[D]=I)),y&&U==="values"&&et&&et.name!=="values"&&(!n&&b?p(Z,"name","values"):(G=!0,rt=function(){return r(et,this)})),U)if(B={values:P("values"),keys:V?rt:P("keys"),entries:P("entries")},F)for(j in B)(S||G||!(j in Z))&&l(Z,j,B[j]);else e({target:C,proto:!0,forced:S||G},B);return n&&!F||Z[x]===rt||l(Z,x,rt,{name:U}),v[C]=rt,B}},function(o,u,t){var e,r,n,i=t(1),a=t(3),s=t(11),f=t(27),c=t(112),d=t(14),p=t(5),l=t(13),h=p("iterator"),v=!1;[].keys&&("next"in(n=[].keys())?(r=c(c(n)))!==Object.prototype&&(e=r):v=!0),!s(e)||i(function(){var g={};return e[h].call(g)!==g})?e={}:l&&(e=f(e)),a(e[h])||d(e,h,function(){return this}),o.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:v}},function(o,u,t){var e=t(6),r=t(3),n=t(19),i=t(44),a=t(192),s=i("IE_PROTO"),f=Object,c=f.prototype;o.exports=a?f.getPrototypeOf:function(d){var p=n(d);if(e(p,s))return p[s];var l=p.constructor;return r(l)&&p instanceof l?l.prototype:p instanceof f?c:null}},function(o,u,t){o.exports=function(e,r){return{value:e,done:r}}},function(o,u,t){o.exports=function(e){var r=[];return r.toString=function(){return this.map(function(n){var i=function(a,s){var f=a[1]||"",c=a[3];if(!c)return f;if(s&&typeof btoa=="function"){var d=(l=c,h=btoa(unescape(encodeURIComponent(JSON.stringify(l)))),v="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),"/*# ".concat(v," */")),p=c.sources.map(function(g){return"/*# sourceURL=".concat(c.sourceRoot||"").concat(g," */")});return[f].concat(p).concat([d]).join(`
|
|
3
|
+
`)}var l,h,v;return[f].join(`
|
|
4
|
+
`)}(n,e);return n[2]?"@media ".concat(n[2]," {").concat(i,"}"):i}).join("")},r.i=function(n,i,a){typeof n=="string"&&(n=[[null,n,""]]);var s={};if(a)for(var f=0;f<this.length;f++){var c=this[f][0];c!=null&&(s[c]=!0)}for(var d=0;d<n.length;d++){var p=[].concat(n[d]);a&&s[p[0]]||(i&&(p[2]?p[2]="".concat(i," and ").concat(p[2]):p[2]=i),r.push(p))}},r}},function(o,u){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){typeof window=="object"&&(t=window)}o.exports=t},function(o,u,t){var e=t(0),r=t(3),n=e.WeakMap;o.exports=r(n)&&/native code/.test(String(n))},function(o,u,t){var e=t(12),r=t(2),n=t(46),i=t(59),a=t(9),s=r([].concat);o.exports=e("Reflect","ownKeys")||function(f){var c=n.f(a(f)),d=i.f;return d?s(c,d(f)):c}},function(o,u,t){var e=t(18),r=t(119),n=t(47),i=function(a){return function(s,f,c){var d,p=e(s),l=n(p),h=r(c,l);if(a&&f!=f){for(;l>h;)if((d=p[h++])!=d)return!0}else for(;l>h;h++)if((a||h in p)&&p[h]===f)return a||h||0;return!a&&-1}};o.exports={includes:i(!0),indexOf:i(!1)}},function(o,u,t){var e=t(26),r=Math.max,n=Math.min;o.exports=function(i,a){var s=e(i);return s<0?r(s+a,0):n(s,a)}},function(o,u,t){var e=Math.ceil,r=Math.floor;o.exports=Math.trunc||function(n){var i=+n;return(i>0?r:e)(i)}},function(o,u,t){var e=TypeError;o.exports=function(r){if(r>9007199254740991)throw e("Maximum allowed index exceeded");return r}},function(o,u,t){var e=t(40),r=t(10),n=t(28);o.exports=function(i,a,s){var f=e(a);f in i?r.f(i,f,n(0,s)):i[f]=s}},function(o,u,t){var e=t(48),r=t(83),n=t(11),i=t(5)("species"),a=Array;o.exports=function(s){var f;return e(s)&&(f=s.constructor,(r(f)&&(f===a||e(f.prototype))||n(f)&&(f=f[i])===null)&&(f=void 0)),f===void 0?a:f}},function(o,u,t){var e=t(1),r=t(5),n=t(41),i=r("species");o.exports=function(a){return n>=51||!e(function(){var s=[];return(s.constructor={})[i]=function(){return{foo:1}},s[a](Boolean).foo!==1})}},function(o,u,t){t(126),t(128)},function(o,u,t){var e=t(4),r=t(0),n=t(84)(r.setInterval,!0);e({global:!0,bind:!0,forced:r.setInterval!==n},{setInterval:n})},function(o,u,t){o.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},function(o,u,t){var e=t(4),r=t(0),n=t(84)(r.setTimeout,!0);e({global:!0,bind:!0,forced:r.setTimeout!==n},{setTimeout:n})},function(o,u,t){var e=t(61),r=t(49);o.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}},function(o,u,t){t(131),t(145),t(150),t(151),t(152),t(153)},function(o,u,t){var e,r,n,i=t(4),a=t(13),s=t(52),f=t(0),c=t(8),d=t(14),p=t(62),l=t(33),h=t(135),v=t(17),g=t(3),y=t(11),b=t(136),m=t(137),S=t(87).set,x=t(139),I=t(143),E=t(64),C=t(91),k=t(25),A=t(34),U=t(35),V=t(36),F=U.CONSTRUCTOR,z=U.REJECTION_EVENT,B=U.SUBCLASSING,j=k.getterFor("Promise"),P=k.set,D=A&&A.prototype,G=A,Z=D,et=f.TypeError,rt=f.document,tt=f.process,Y=V.f,ht=Y,dt=!!(rt&&rt.createEvent&&f.dispatchEvent),wt=function(q){var ut;return!(!y(q)||!g(ut=q.then))&&ut},bt=function(q,ut){var T,w,O,M=ut.value,_=ut.state===1,$=_?q.ok:q.fail,L=q.resolve,K=q.reject,Q=q.domain;try{$?(_||(ut.rejection===2&&Ct(ut),ut.rejection=1),$===!0?T=M:(Q&&Q.enter(),T=$(M),Q&&(Q.exit(),O=!0)),T===q.promise?K(new et("Promise-chain cycle")):(w=wt(T))?c(w,T,L,K):L(T)):K(M)}catch(X){Q&&!O&&Q.exit(),K(X)}},st=function(q,ut){q.notified||(q.notified=!0,x(function(){for(var T,w=q.reactions;T=w.get();)bt(T,q);q.notified=!1,ut&&!q.rejection&&Ot(q)}))},lt=function(q,ut,T){var w,O;dt?((w=rt.createEvent("Event")).promise=ut,w.reason=T,w.initEvent(q,!1,!0),f.dispatchEvent(w)):w={promise:ut,reason:T},!z&&(O=f["on"+q])?O(w):q==="unhandledrejection"&&I("Unhandled promise rejection",T)},Ot=function(q){c(S,f,function(){var ut,T=q.facade,w=q.value;if(Et(q)&&(ut=E(function(){s?tt.emit("unhandledRejection",w,T):lt("unhandledrejection",T,w)}),q.rejection=s||Et(q)?2:1,ut.error))throw ut.value})},Et=function(q){return q.rejection!==1&&!q.parent},Ct=function(q){c(S,f,function(){var ut=q.facade;s?tt.emit("rejectionHandled",ut):lt("rejectionhandled",ut,q.value)})},gt=function(q,ut,T){return function(w){q(ut,w,T)}},vt=function(q,ut,T){q.done||(q.done=!0,T&&(q=T),q.value=ut,q.state=2,st(q,!0))},_t=function(q,ut,T){if(!q.done){q.done=!0,T&&(q=T);try{if(q.facade===ut)throw new et("Promise can't be resolved itself");var w=wt(ut);w?x(function(){var O={done:!1};try{c(w,ut,gt(_t,O,q),gt(vt,O,q))}catch(M){vt(O,M,q)}}):(q.value=ut,q.state=1,st(q,!1))}catch(O){vt({done:!1},O,q)}}};if(F&&(Z=(G=function(q){b(this,Z),v(q),c(e,this);var ut=j(this);try{q(gt(_t,ut),gt(vt,ut))}catch(T){vt(ut,T)}}).prototype,(e=function(q){P(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:0,value:void 0})}).prototype=d(Z,"then",function(q,ut){var T=j(this),w=Y(m(this,G));return T.parent=!0,w.ok=!g(q)||q,w.fail=g(ut)&&ut,w.domain=s?tt.domain:void 0,T.state===0?T.reactions.add(w):x(function(){bt(w,T)}),w.promise}),r=function(){var q=new e,ut=j(q);this.promise=q,this.resolve=gt(_t,ut),this.reject=gt(vt,ut)},V.f=Y=function(q){return q===G||q===void 0?new r(q):ht(q)},!a&&g(A)&&D!==Object.prototype)){n=D.then,B||d(D,"then",function(q,ut){var T=this;return new G(function(w,O){c(n,T,w,O)}).then(q,ut)},{unsafe:!0});try{delete D.constructor}catch(q){}p&&p(D,Z)}i({global:!0,constructor:!0,wrap:!0,forced:F},{Promise:G}),l(G,"Promise",!1,!0),h("Promise")},function(o,u,t){var e=t(2),r=t(17);o.exports=function(n,i,a){try{return e(r(Object.getOwnPropertyDescriptor(n,i)[a]))}catch(s){}}},function(o,u,t){var e=t(134),r=String,n=TypeError;o.exports=function(i){if(e(i))return i;throw new n("Can't set "+r(i)+" as a prototype")}},function(o,u,t){var e=t(11);o.exports=function(r){return e(r)||r===null}},function(o,u,t){var e=t(12),r=t(63),n=t(5),i=t(7),a=n("species");o.exports=function(s){var f=e(s);i&&f&&!f[a]&&r(f,a,{configurable:!0,get:function(){return this}})}},function(o,u,t){var e=t(21),r=TypeError;o.exports=function(n,i){if(e(i,n))return n;throw new r("Incorrect invocation")}},function(o,u,t){var e=t(9),r=t(138),n=t(29),i=t(5)("species");o.exports=function(a,s){var f,c=e(a).constructor;return c===void 0||n(f=e(c)[i])?s:r(f)}},function(o,u,t){var e=t(83),r=t(32),n=TypeError;o.exports=function(i){if(e(i))return i;throw new n(r(i)+" is not a constructor")}},function(o,u,t){var e,r,n,i,a,s=t(0),f=t(140),c=t(53),d=t(87).set,p=t(91),l=t(90),h=t(141),v=t(142),g=t(52),y=s.MutationObserver||s.WebKitMutationObserver,b=s.document,m=s.process,S=s.Promise,x=f("queueMicrotask");if(!x){var I=new p,E=function(){var C,k;for(g&&(C=m.domain)&&C.exit();k=I.get();)try{k()}catch(A){throw I.head&&e(),A}C&&C.enter()};l||g||v||!y||!b?!h&&S&&S.resolve?((i=S.resolve(void 0)).constructor=S,a=c(i.then,i),e=function(){a(E)}):g?e=function(){m.nextTick(E)}:(d=c(d,s),e=function(){d(E)}):(r=!0,n=b.createTextNode(""),new y(E).observe(n,{characterData:!0}),e=function(){n.data=r=!r}),x=function(C){I.head||e(),I.add(C)}}o.exports=x},function(o,u,t){var e=t(0),r=t(7),n=Object.getOwnPropertyDescriptor;o.exports=function(i){if(!r)return e[i];var a=n(e,i);return a&&a.value}},function(o,u,t){var e=t(31);o.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},function(o,u,t){var e=t(31);o.exports=/web0s(?!.*chrome)/i.test(e)},function(o,u,t){o.exports=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch(n){}}},function(o,u,t){var e=t(92),r=t(52);o.exports=!e&&!r&&typeof window=="object"&&typeof document=="object"},function(o,u,t){var e=t(4),r=t(8),n=t(17),i=t(36),a=t(64),s=t(93);e({target:"Promise",stat:!0,forced:t(95)},{all:function(f){var c=this,d=i.f(c),p=d.resolve,l=d.reject,h=a(function(){var v=n(c.resolve),g=[],y=0,b=1;s(f,function(m){var S=y++,x=!1;b++,r(v,c,m).then(function(I){x||(x=!0,g[S]=I,--b||p(g))},l)}),--b||p(g)});return h.error&&l(h.value),d.promise}})},function(o,u,t){var e=t(5),r=t(37),n=e("iterator"),i=Array.prototype;o.exports=function(a){return a!==void 0&&(r.Array===a||i[n]===a)}},function(o,u,t){var e=t(8),r=t(17),n=t(9),i=t(32),a=t(94),s=TypeError;o.exports=function(f,c){var d=arguments.length<2?a(f):c;if(r(d))return n(e(d,f));throw new s(i(f)+" is not iterable")}},function(o,u,t){var e=t(8),r=t(9),n=t(42);o.exports=function(i,a,s){var f,c;r(i);try{if(!(f=n(i,"return"))){if(a==="throw")throw s;return s}f=e(f,i)}catch(d){c=!0,f=d}if(a==="throw")throw s;if(c)throw f;return r(f),s}},function(o,u,t){var e=t(5)("iterator"),r=!1;try{var n=0,i={next:function(){return{done:!!n++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch(a){}o.exports=function(a,s){try{if(!s&&!r)return!1}catch(d){return!1}var f=!1;try{var c={};c[e]=function(){return{next:function(){return{done:f=!0}}}},a(c)}catch(d){}return f}},function(o,u,t){var e=t(4),r=t(13),n=t(35).CONSTRUCTOR,i=t(34),a=t(12),s=t(3),f=t(14),c=i&&i.prototype;if(e({target:"Promise",proto:!0,forced:n,real:!0},{catch:function(p){return this.then(void 0,p)}}),!r&&s(i)){var d=a("Promise").prototype.catch;c.catch!==d&&f(c,"catch",d,{unsafe:!0})}},function(o,u,t){var e=t(4),r=t(8),n=t(17),i=t(36),a=t(64),s=t(93);e({target:"Promise",stat:!0,forced:t(95)},{race:function(f){var c=this,d=i.f(c),p=d.reject,l=a(function(){var h=n(c.resolve);s(f,function(v){r(h,c,v).then(d.resolve,p)})});return l.error&&p(l.value),d.promise}})},function(o,u,t){var e=t(4),r=t(36);e({target:"Promise",stat:!0,forced:t(35).CONSTRUCTOR},{reject:function(n){var i=r.f(this);return(0,i.reject)(n),i.promise}})},function(o,u,t){var e=t(4),r=t(12),n=t(13),i=t(34),a=t(35).CONSTRUCTOR,s=t(154),f=r("Promise"),c=n&&!a;e({target:"Promise",stat:!0,forced:n||a},{resolve:function(d){return s(c&&this===f?i:this,d)}})},function(o,u,t){var e=t(9),r=t(11),n=t(36);o.exports=function(i,a){if(e(i),r(a)&&a.constructor===i)return a;var s=n.f(i);return(0,s.resolve)(a),s.promise}},function(o,u,t){var e=t(156),r=t(157);typeof(r=r.__esModule?r.default:r)=="string"&&(r=[[o.i,r,""]]);var n={insert:"head",singleton:!1};e(r,n),o.exports=r.locals||{}},function(o,u,t){var e,r=function(){return e===void 0&&(e=!!(window&&document&&document.all&&!window.atob)),e},n=function(){var y={};return function(b){if(y[b]===void 0){var m=document.querySelector(b);if(window.HTMLIFrameElement&&m instanceof window.HTMLIFrameElement)try{m=m.contentDocument.head}catch(S){m=null}y[b]=m}return y[b]}}(),i=[];function a(y){for(var b=-1,m=0;m<i.length;m++)if(i[m].identifier===y){b=m;break}return b}function s(y,b){for(var m={},S=[],x=0;x<y.length;x++){var I=y[x],E=b.base?I[0]+b.base:I[0],C=m[E]||0,k="".concat(E," ").concat(C);m[E]=C+1;var A=a(k),U={css:I[1],media:I[2],sourceMap:I[3]};A!==-1?(i[A].references++,i[A].updater(U)):i.push({identifier:k,updater:g(U,b),references:1}),S.push(k)}return S}function f(y){var b=document.createElement("style"),m=y.attributes||{};if(m.nonce===void 0){var S=t.nc;S&&(m.nonce=S)}if(Object.keys(m).forEach(function(I){b.setAttribute(I,m[I])}),typeof y.insert=="function")y.insert(b);else{var x=n(y.insert||"head");if(!x)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");x.appendChild(b)}return b}var c,d=(c=[],function(y,b){return c[y]=b,c.filter(Boolean).join(`
|
|
5
|
+
`)});function p(y,b,m,S){var x=m?"":S.media?"@media ".concat(S.media," {").concat(S.css,"}"):S.css;if(y.styleSheet)y.styleSheet.cssText=d(b,x);else{var I=document.createTextNode(x),E=y.childNodes;E[b]&&y.removeChild(E[b]),E.length?y.insertBefore(I,E[b]):y.appendChild(I)}}function l(y,b,m){var S=m.css,x=m.media,I=m.sourceMap;if(x?y.setAttribute("media",x):y.removeAttribute("media"),I&&typeof btoa!="undefined"&&(S+=`
|
|
6
|
+
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(I))))," */")),y.styleSheet)y.styleSheet.cssText=S;else{for(;y.firstChild;)y.removeChild(y.firstChild);y.appendChild(document.createTextNode(S))}}var h=null,v=0;function g(y,b){var m,S,x;if(b.singleton){var I=v++;m=h||(h=f(b)),S=p.bind(null,m,I,!1),x=p.bind(null,m,I,!0)}else m=f(b),S=l.bind(null,m,b),x=function(){(function(E){if(E.parentNode===null)return!1;E.parentNode.removeChild(E)})(m)};return S(y),function(E){if(E){if(E.css===y.css&&E.media===y.media&&E.sourceMap===y.sourceMap)return;S(y=E)}else x()}}o.exports=function(y,b){(b=b||{}).singleton||typeof b.singleton=="boolean"||(b.singleton=r());var m=s(y=y||[],b);return function(S){if(S=S||[],Object.prototype.toString.call(S)==="[object Array]"){for(var x=0;x<m.length;x++){var I=a(m[x]);i[I].references--}for(var E=s(S,b),C=0;C<m.length;C++){var k=a(m[C]);i[k].references===0&&(i[k].updater(),i.splice(k,1))}m=E}}}},function(o,u,t){t.r(u);var e=t(114),r=t.n(e)()(!1);r.push([o.i,'.plv-emotion-img{width:28px;height:28px;vertical-align:middle}.plv-emotion-menu{margin:0;padding:0;overflow:auto;overflow-x:hidden;zoom:1}.plv-emotion-menu:after{display:block;overflow:hidden;clear:both;height:0;visibility:hidden;content:"."}.plv-emotion-menu__item{float:left;margin:0;padding:0;font-size:0;overflow:hidden}.plv-emotion-menu__item__inner{vertical-align:top;display:inline-block;background-repeat:no-repeat;-webkit-transform-origin:top left;-ms-transform-origin:top left;transform-origin:top left;cursor:pointer}',""]),u.default=r},function(o,u,t){var e=t(9);o.exports=function(){var r=e(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}},function(o,u,t){var e=t(1),r=t(0).RegExp,n=e(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!==null}),i=n||e(function(){return!r("a","y").sticky}),a=n||e(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!==null});o.exports={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:n}},function(o,u,t){var e=t(1),r=t(0).RegExp;o.exports=e(function(){var n=r(".","s");return!(n.dotAll&&n.test(`
|
|
7
|
+
`)&&n.flags==="s")})},function(o,u,t){var e=t(1),r=t(0).RegExp;o.exports=e(function(){var n=r("(?<a>b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$<a>c")!=="bc"})},function(o,u,t){t(66);var e=t(88),r=t(14),n=t(67),i=t(1),a=t(5),s=t(24),f=a("species"),c=RegExp.prototype;o.exports=function(d,p,l,h){var v=a(d),g=!i(function(){var S={};return S[v]=function(){return 7},""[d](S)!==7}),y=g&&!i(function(){var S=!1,x=/a/;return d==="split"&&((x={}).constructor={},x.constructor[f]=function(){return x},x.flags="",x[v]=/./[v]),x.exec=function(){return S=!0,null},x[v](""),!S});if(!g||!y||l){var b=e(/./[v]),m=p(v,""[d],function(S,x,I,E,C){var k=e(S),A=x.exec;return A===n||A===c.exec?g&&!C?{done:!0,value:b(x,I,E)}:{done:!0,value:k(I,x,E)}:{done:!1}});r(String.prototype,d,m[0]),r(c,v,m[1])}h&&s(c[v],"sham",!0)}},function(o,u,t){var e=t(99).charAt;o.exports=function(r,n,i){return n+(i?e(r,n).length:1)}},function(o,u,t){var e=t(2),r=t(19),n=Math.floor,i=e("".charAt),a=e("".replace),s=e("".slice),f=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;o.exports=function(d,p,l,h,v,g){var y=l+d.length,b=h.length,m=c;return v!==void 0&&(v=r(v),m=f),a(g,m,function(S,x){var I;switch(i(x,0)){case"$":return"$";case"&":return d;case"`":return s(p,0,l);case"'":return s(p,y);case"<":I=v[s(x,1,-1)];break;default:var E=+x;if(E===0)return S;if(E>b){var C=n(E/10);return C===0?S:C<=b?h[C-1]===void 0?i(x,1):h[C-1]+i(x,1):S}I=h[E-1]}return I===void 0?"":I})}},function(o,u,t){var e=t(8),r=t(9),n=t(3),i=t(16),a=t(67),s=TypeError;o.exports=function(f,c){var d=f.exec;if(n(d)){var p=e(d,f,c);return p!==null&&r(p),p}if(i(f)==="RegExp")return e(a,f,c);throw new s("RegExp#exec called on incompatible receiver")}},function(o,u,t){t(4)({target:"Object",stat:!0,sham:!t(7)},{create:t(27)})},function(o,u,t){var e=t(4),r=t(100);e({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},function(o,u,t){var e=t(1);o.exports=function(r,n){var i=[][r];return!!i&&e(function(){i.call(null,n||function(){return 1},1)})}},function(o,u,t){var e=t(0),r=t(102),n=t(103),i=t(100),a=t(24),s=function(c){if(c&&c.forEach!==i)try{a(c,"forEach",i)}catch(d){c.forEach=i}};for(var f in r)r[f]&&s(e[f]&&e[f].prototype);s(n)},function(o,u,t){var e=t(4),r=t(2),n=t(26),i=t(104),a=t(171),s=t(1),f=RangeError,c=String,d=Math.floor,p=r(a),l=r("".slice),h=r(1 .toFixed),v=function(m,S,x){return S===0?x:S%2==1?v(m,S-1,x*m):v(m*m,S/2,x)},g=function(m,S,x){for(var I=-1,E=x;++I<6;)E+=S*m[I],m[I]=E%1e7,E=d(E/1e7)},y=function(m,S){for(var x=6,I=0;--x>=0;)I+=m[x],m[x]=d(I/S),I=I%S*1e7},b=function(m){for(var S=6,x="";--S>=0;)if(x!==""||S===0||m[S]!==0){var I=c(m[S]);x=x===""?I:x+p("0",7-I.length)+I}return x};e({target:"Number",proto:!0,forced:s(function(){return h(8e-5,3)!=="0.000"||h(.9,0)!=="1"||h(1.255,2)!=="1.25"||h(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!s(function(){h({})})},{toFixed:function(m){var S,x,I,E,C=i(this),k=n(m),A=[0,0,0,0,0,0],U="",V="0";if(k<0||k>20)throw new f("Incorrect fraction digits");if(C!=C)return"NaN";if(C<=-1e21||C>=1e21)return c(C);if(C<0&&(U="-",C=-C),C>1e-21)if(x=(S=function(F){for(var z=0,B=F;B>=4096;)z+=12,B/=4096;for(;B>=2;)z+=1,B/=2;return z}(C*v(2,69,1))-69)<0?C*v(2,-S,1):C/v(2,S,1),x*=4503599627370496,(S=52-S)>0){for(g(A,0,x),I=k;I>=7;)g(A,1e7,0),I-=7;for(g(A,v(10,I,1),0),I=S-1;I>=23;)y(A,1<<23),I-=23;y(A,1<<I),g(A,1,1),y(A,2),V=b(A)}else g(A,0,x),g(A,1<<-S,0),V=b(A)+p("0",k);return V=k>0?U+((E=V.length)<=k?"0."+p("0",k-E)+V:l(V,0,E-k)+"."+l(V,E-k)):U+V}})},function(o,u,t){var e=t(26),r=t(15),n=t(20),i=RangeError;o.exports=function(a){var s=r(n(this)),f="",c=e(a);if(c<0||c===1/0)throw new i("Wrong number of repetitions");for(;c>0;(c>>>=1)&&(s+=s))1&c&&(f+=s);return f}},function(o,u,t){var e=t(68),r=t(107);e("toPrimitive"),r()},function(o,u,t){var e=t(6),r=t(14),n=t(174),i=t(5)("toPrimitive"),a=Date.prototype;e(a,i)||r(a,i,n)},function(o,u,t){var e=t(9),r=t(74),n=TypeError;o.exports=function(i){if(e(this),i==="string"||i==="default")i="string";else if(i!=="number")throw new n("Incorrect hint");return r(this,i)}},function(o,u,t){t(176),t(178),t(179),t(180),t(182)},function(o,u,t){var e=t(4),r=t(0),n=t(8),i=t(2),a=t(13),s=t(7),f=t(22),c=t(1),d=t(6),p=t(21),l=t(9),h=t(18),v=t(40),g=t(15),y=t(28),b=t(27),m=t(65),S=t(46),x=t(177),I=t(59),E=t(38),C=t(10),k=t(97),A=t(70),U=t(14),V=t(63),F=t(23),z=t(44),B=t(45),j=t(56),P=t(5),D=t(106),G=t(68),Z=t(107),et=t(33),rt=t(25),tt=t(101).forEach,Y=z("hidden"),ht=rt.set,dt=rt.getterFor("Symbol"),wt=Object.prototype,bt=r.Symbol,st=bt&&bt.prototype,lt=r.RangeError,Ot=r.TypeError,Et=r.QObject,Ct=E.f,gt=C.f,vt=x.f,_t=A.f,q=i([].push),ut=F("symbols"),T=F("op-symbols"),w=F("wks"),O=!Et||!Et.prototype||!Et.prototype.findChild,M=function(R,H,W){var J=Ct(wt,H);J&&delete wt[H],gt(R,H,W),J&&R!==wt&>(wt,H,J)},_=s&&c(function(){return b(gt({},"a",{get:function(){return gt(this,"a",{value:7}).a}})).a!==7})?M:gt,$=function(R,H){var W=ut[R]=b(st);return ht(W,{type:"Symbol",tag:R,description:H}),s||(W.description=H),W},L=function(R,H,W){R===wt&&L(T,H,W),l(R);var J=v(H);return l(W),d(ut,J)?(W.enumerable?(d(R,Y)&&R[Y][J]&&(R[Y][J]=!1),W=b(W,{enumerable:y(0,!1)})):(d(R,Y)||gt(R,Y,y(1,b(null))),R[Y][J]=!0),_(R,J,W)):gt(R,J,W)},K=function(R,H){l(R);var W=h(H),J=m(W).concat(at(W));return tt(J,function(it){s&&!n(Q,W,it)||L(R,it,W[it])}),R},Q=function(R){var H=v(R),W=n(_t,this,H);return!(this===wt&&d(ut,H)&&!d(T,H))&&(!(W||!d(this,H)||!d(ut,H)||d(this,Y)&&this[Y][H])||W)},X=function(R,H){var W=h(R),J=v(H);if(W!==wt||!d(ut,J)||d(T,J)){var it=Ct(W,J);return!it||!d(ut,J)||d(W,Y)&&W[Y][J]||(it.enumerable=!0),it}},N=function(R){var H=vt(h(R)),W=[];return tt(H,function(J){d(ut,J)||d(B,J)||q(W,J)}),W},at=function(R){var H=R===wt,W=vt(H?T:h(R)),J=[];return tt(W,function(it){!d(ut,it)||H&&!d(wt,it)||q(J,ut[it])}),J};f||(U(st=(bt=function(){if(p(st,this))throw new Ot("Symbol is not a constructor");var R=arguments.length&&arguments[0]!==void 0?g(arguments[0]):void 0,H=j(R),W=function(J){var it=this===void 0?r:this;it===wt&&n(W,T,J),d(it,Y)&&d(it[Y],H)&&(it[Y][H]=!1);var kt=y(1,J);try{_(it,H,kt)}catch(Rt){if(!(Rt instanceof lt))throw Rt;M(it,H,kt)}};return s&&O&&_(wt,H,{configurable:!0,set:W}),$(H,R)}).prototype,"toString",function(){return dt(this).tag}),U(bt,"withoutSetter",function(R){return $(j(R),R)}),A.f=Q,C.f=L,k.f=K,E.f=X,S.f=x.f=N,I.f=at,D.f=function(R){return $(P(R),R)},s&&(V(st,"description",{configurable:!0,get:function(){return dt(this).description}}),a||U(wt,"propertyIsEnumerable",Q,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!f,sham:!f},{Symbol:bt}),tt(m(w),function(R){G(R)}),e({target:"Symbol",stat:!0,forced:!f},{useSetter:function(){O=!0},useSimple:function(){O=!1}}),e({target:"Object",stat:!0,forced:!f,sham:!s},{create:function(R,H){return H===void 0?b(R):K(b(R),H)},defineProperty:L,defineProperties:K,getOwnPropertyDescriptor:X}),e({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:N}),Z(),et(bt,"Symbol"),B[Y]=!0},function(o,u,t){var e=t(16),r=t(18),n=t(46).f,i=t(51),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(s){return a&&e(s)==="Window"?function(f){try{return n(f)}catch(c){return i(a)}}(s):n(r(s))}},function(o,u,t){var e=t(4),r=t(12),n=t(6),i=t(15),a=t(23),s=t(108),f=a("string-to-symbol-registry"),c=a("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!s},{for:function(d){var p=i(d);if(n(f,p))return f[p];var l=r("Symbol")(p);return f[p]=l,c[l]=p,l}})},function(o,u,t){var e=t(4),r=t(6),n=t(30),i=t(32),a=t(23),s=t(108),f=a("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!s},{keyFor:function(c){if(!n(c))throw new TypeError(i(c)+" is not a symbol");if(r(f,c))return f[c]}})},function(o,u,t){var e=t(4),r=t(12),n=t(50),i=t(8),a=t(2),s=t(1),f=t(3),c=t(30),d=t(51),p=t(181),l=t(22),h=String,v=r("JSON","stringify"),g=a(/./.exec),y=a("".charAt),b=a("".charCodeAt),m=a("".replace),S=a(1 .toString),x=/[\uD800-\uDFFF]/g,I=/^[\uD800-\uDBFF]$/,E=/^[\uDC00-\uDFFF]$/,C=!l||s(function(){var V=r("Symbol")("stringify detection");return v([V])!=="[null]"||v({a:V})!=="{}"||v(Object(V))!=="{}"}),k=s(function(){return v("\uDF06\uD834")!=='"\\udf06\\ud834"'||v("\uDEAD")!=='"\\udead"'}),A=function(V,F){var z=d(arguments),B=p(F);if(f(B)||V!==void 0&&!c(V))return z[1]=function(j,P){if(f(B)&&(P=i(B,this,h(j),P)),!c(P))return P},n(v,null,z)},U=function(V,F,z){var B=y(z,F-1),j=y(z,F+1);return g(I,V)&&!g(E,j)||g(E,V)&&!g(I,B)?"\\u"+S(b(V,0),16):V};v&&e({target:"JSON",stat:!0,arity:3,forced:C||k},{stringify:function(V,F,z){var B=d(arguments),j=n(C?A:v,null,B);return k&&typeof j=="string"?m(j,x,U):j}})},function(o,u,t){var e=t(2),r=t(48),n=t(3),i=t(16),a=t(15),s=e([].push);o.exports=function(f){if(n(f))return f;if(r(f)){for(var c=f.length,d=[],p=0;p<c;p++){var l=f[p];typeof l=="string"?s(d,l):typeof l!="number"&&i(l)!=="Number"&&i(l)!=="String"||s(d,a(l))}var h=d.length,v=!0;return function(g,y){if(v)return v=!1,y;if(r(this))return y;for(var b=0;b<h;b++)if(d[b]===g)return y}}}},function(o,u,t){var e=t(4),r=t(22),n=t(1),i=t(59),a=t(19);e({target:"Object",stat:!0,forced:!r||n(function(){i.f(1)})},{getOwnPropertySymbols:function(s){var f=i.f;return f?f(a(s)):[]}})},function(o,u,t){var e=t(4),r=t(7),n=t(0),i=t(2),a=t(6),s=t(3),f=t(21),c=t(15),d=t(63),p=t(79),l=n.Symbol,h=l&&l.prototype;if(r&&s(l)&&(!("description"in h)||l().description!==void 0)){var v={},g=function(){var E=arguments.length<1||arguments[0]===void 0?void 0:c(arguments[0]),C=f(h,this)?new l(E):E===void 0?l():l(E);return E===""&&(v[C]=!0),C};p(g,l),g.prototype=h,h.constructor=g;var y=String(l("description detection"))==="Symbol(description detection)",b=i(h.valueOf),m=i(h.toString),S=/^Symbol\((.*)\)[^)]+$/,x=i("".replace),I=i("".slice);d(h,"description",{configurable:!0,get:function(){var E=b(this);if(a(v,E))return"";var C=m(E),k=y?I(C,7,-1):x(C,S,"$1");return k===""?void 0:k}}),e({global:!0,constructor:!0,forced:!0},{Symbol:g})}},function(o,u,t){var e=t(4),r=t(13),n=t(7),i=t(0),a=t(105),s=t(2),f=t(60),c=t(6),d=t(185),p=t(21),l=t(30),h=t(72),v=t(1),g=t(46).f,y=t(38).f,b=t(10).f,m=t(104),S=t(186).trim,x=i.Number,I=a.Number,E=x.prototype,C=i.TypeError,k=s("".slice),A=s("".charCodeAt),U=function(P){var D=h(P,"number");return typeof D=="bigint"?D:V(D)},V=function(P){var D,G,Z,et,rt,tt,Y,ht,dt=h(P,"number");if(l(dt))throw new C("Cannot convert a Symbol value to a number");if(typeof dt=="string"&&dt.length>2){if(dt=S(dt),(D=A(dt,0))===43||D===45){if((G=A(dt,2))===88||G===120)return NaN}else if(D===48){switch(A(dt,1)){case 66:case 98:Z=2,et=49;break;case 79:case 111:Z=8,et=55;break;default:return+dt}for(tt=(rt=k(dt,2)).length,Y=0;Y<tt;Y++)if((ht=A(rt,Y))<48||ht>et)return NaN;return parseInt(rt,Z)}}return+dt},F=f("Number",!x(" 0o1")||!x("0b1")||x("+0x1")),z=function(P){return p(E,P)&&v(function(){m(P)})},B=function(P){var D=arguments.length<1?0:x(U(P));return z(this)?d(Object(D),this,B):D};B.prototype=E,F&&!r&&(E.constructor=B),e({global:!0,constructor:!0,wrap:!0,forced:F},{Number:B});var j=function(P,D){for(var G,Z=n?g(D):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),et=0;Z.length>et;et++)c(D,G=Z[et])&&!c(P,G)&&b(P,G,y(D,G))};r&&I&&j(a.Number,I),(F||r)&&j(a.Number,x)},function(o,u,t){var e=t(3),r=t(11),n=t(62);o.exports=function(i,a,s){var f,c;return n&&e(f=a.constructor)&&f!==s&&r(c=f.prototype)&&c!==s.prototype&&n(i,c),i}},function(o,u,t){var e=t(2),r=t(20),n=t(15),i=t(187),a=e("".replace),s=RegExp("^["+i+"]+"),f=RegExp("(^|[^"+i+"])["+i+"]+$"),c=function(d){return function(p){var l=n(r(p));return 1&d&&(l=a(l,s,"")),2&d&&(l=a(l,f,"$1")),l}};o.exports={start:c(1),end:c(2),trim:c(3)}},function(o,u,t){o.exports=`
|
|
8
|
+
\v\f\r \u2028\u2029\uFEFF`},function(o,u,t){var e=t(4),r=t(7),n=t(10).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!r},{defineProperty:n})},function(o,u,t){t(68)("iterator")},function(o,u,t){var e=t(5),r=t(27),n=t(10).f,i=e("unscopables"),a=Array.prototype;a[i]===void 0&&n(a,i,{configurable:!0,value:r(null)}),o.exports=function(s){a[i][s]=!0}},function(o,u,t){var e=t(111).IteratorPrototype,r=t(27),n=t(28),i=t(33),a=t(37),s=function(){return this};o.exports=function(f,c,d,p){var l=c+" Iterator";return f.prototype=r(e,{next:n(+!p,d)}),i(f,l,!1,!0),a[l]=s,f}},function(o,u,t){var e=t(1);o.exports=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},function(o,u,t){var e=t(99).charAt,r=t(15),n=t(25),i=t(110),a=t(113),s=n.set,f=n.getterFor("String Iterator");i(String,"String",function(c){s(this,{type:"String Iterator",string:r(c),index:0})},function(){var c,d=f(this),p=d.string,l=d.index;return l>=p.length?a(void 0,!0):(c=e(p,l),d.index+=c.length,a(c,!1))})},function(o,u,t){var e=t(0),r=t(102),n=t(103),i=t(109),a=t(24),s=t(33),f=t(5)("iterator"),c=i.values,d=function(l,h){if(l){if(l[f]!==c)try{a(l,f,c)}catch(g){l[f]=c}if(s(l,h,!0),r[h]){for(var v in i)if(l[v]!==i[v])try{a(l,v,i[v])}catch(g){l[v]=i[v]}}}};for(var p in r)d(e[p]&&e[p].prototype,p);d(n,"DOMTokenList")},function(o,u,t){t(4)({target:"Array",stat:!0},{isArray:t(48)})},function(o,u,t){t.r(u),t.d(u,"EmotionParser",function(){return v}),t.d(u,"EmotionParsingMode",function(){return i}),t.d(u,"LangType",function(){return e}),t.d(u,"emotionsReady",function(){return y}),t(69),t(125),t(86),t(130),t(96),t(155),t(66),t(98);var e,r=typeof PLV_GLOBAL_URL_ORIGIN!="undefined"?PLV_GLOBAL_URL_ORIGIN.resourceOrigin:"",n=r?"https://s2.videocc.net/emotion-sdk/v3/".replace(/^https:\/\/[^/]+/,r):"https://s2.videocc.net/emotion-sdk/v3/";(function(b){b.ZH_CN="zh_CN",b.English="en"})(e||(e={})),t(166),t(167),t(169),t(170),t(172),t(173),t(175),t(183),t(184),t(188),t(189),t(109),t(193),t(194),t(195);var i,a=Object.prototype.hasOwnProperty;function s(b,m){return a.call(b,m)}function f(b){return(f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m})(b)}function c(b,m){for(var S=0;S<m.length;S++){var x=m[S];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(b,d(x.key),x)}}function d(b){var m=function(S,x){if(f(S)!="object"||!S)return S;var I=S[Symbol.toPrimitive];if(I!==void 0){var E=I.call(S,x);if(f(E)!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(S)}(b,"string");return f(m)=="symbol"?m:String(m)}(function(b){b[b.HTML=1]="HTML",b[b.DANMAKU=2]="DANMAKU"})(i||(i={}));var p,l,h=/\[(.+?)\]/g,v=function(){function b(x){var I=this;(function(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")})(this,b),this._dataMap=Object.create(null),this._dataList=x,this._dataList.forEach(function(E){I._dataMap[E.title]=E;var C=E.intl;C&&Object.keys(C).forEach(function(k){I._dataMap[C[k].title]=E})}),this._urlPrefix=n}var m,S;return m=b,(S=[{key:"eachEmotion",value:function(x){this._dataList.forEach(function(I){x(function(E){if(E==null)throw new TypeError("Cannot convert undefined or null to object");for(var C=0;C<(arguments.length<=1?0:arguments.length-1);C++){var k=C+1<1||arguments.length<=C+1?void 0:arguments[C+1];if(k!=null)for(var A in k)A!=="__proto__"&&s(k,A)&&(E[A]=k[A])}return E}({},I))})}},{key:"parse",value:function(x,I){var E=this;return String(x).replace(h,function(C){var k=arguments.length<=1?void 0:arguments[1];if(s(E._dataMap,k)){var A=E._dataMap[k],U=E._urlPrefix+A.filename;switch(I){case i.HTML:return'<img src="'.concat(U,'" alt="').concat(A.title,'" class="plv-emotion-img" />');case i.DANMAKU:return"[[".concat(U,"]]")}}return C})}},{key:"translate",value:function(x,I){var E=this;return String(x).replace(h,function(C){var k=arguments.length<=1?void 0:arguments[1],A=E._dataMap[k];return A&&(I===e.ZH_CN?k=A.title:A.intl&&A.intl[I]&&(k=A.intl[I].title)),"[".concat(k,"]")})}},{key:"removeAll",value:function(x){var I=this;return String(x).replace(h,function(E){var C=arguments.length<=1?void 0:arguments[1];return s(I._dataMap,C)?"":E})}},{key:"genDOMList",value:function(x){var I,E=this,C=32;C=typeof x=="number"?x:((I=x)==null?void 0:I.size)||32;var k="plv-emotion-menu",A="plv-emotion-menu__item",U="plv-emotion-menu__item__inner",V=I==null?void 0:I.cssClass;V&&(V.list&&(k+=" "+V.list),V.item&&(A+=" "+V.item),V.inner&&(U+=" "+V.inner));var F="";this._dataList.forEach(function(B){if(!B.deprecated){var j=(+C/B.size).toFixed(3),P=I==null?void 0:I.lang,D=B.title;P&&B.intl&&B.intl[P]&&(D=B.intl[P].title),F+=`
|
|
9
|
+
<li class="`.concat(A,'" style="width: ').concat(C,"px; height:").concat(C,`px">
|
|
10
|
+
<i class="`).concat(U,'" style="width: ').concat(B.size,"px; height: ").concat(B.size,"px; background-image: url(").concat(E._urlPrefix+"all.png","); background-position: ").concat(B.x,"px ").concat(B.y,"px; transform: scale(").concat(j,')" title="').concat(D,'" data-title="').concat(D,`"></i>
|
|
11
|
+
</li>`)}});var z=document.createElement("ul");return z.className=k,z.innerHTML=F,z}}])&&c(m.prototype,S),Object.defineProperty(m,"prototype",{writable:!1}),b}();console.info("Polyv emotion SDK v".concat("3.1.0"," / ").concat("Thu Jan 16 2025 13:45:17 GMT+0800 (中国标准时间)"));var g=[];function y(b){g?g.push(b):p&&b(p),l||(l=new Promise(function(m,S){var x=new XMLHttpRequest;x.onload=function(){try{m(JSON.parse(x.responseText))}catch(I){S(I)}},x.onerror=function(){S(new Error("error"))},x.ontimeout=function(){S(new Error("timeout"))},x.open("GET",n+"data.json",!0),x.timeout=5e3,x.send()}).then(function(m){(function S(x){if(g!=null&&g.length){var I=g.shift();try{I&&I(x)}finally{setTimeout(function(){S(x)},0)}}else g=void 0})(p=new v(m.list||[]))}))}}]);class Dt{constructor(u){this._plvChat=u}get _plvSocket(){return this._plvChat.plvSocket}}class we extends Dt{constructor(){super(...arguments);It(this,"__emotionParser");It(this,"__getEmotionImagePromise")}setupEmotionParser(){return new Promise(t=>{if(this.__emotionParser)return t();Kt.emotionsReady(e=>(this.__emotionParser=e,t()))})}getEmotionFaceDomList(t=!0){const e=this.getEmotionParser();return e?e.genDOMList({lang:t?Kt.LangType.ZH_CN:Kt.LangType.English}):document.createElement("ul")}getEmotionFaceClickTarget(t){const e=t.target;if(e.tagName!=="I")return;const r=e.getAttribute("data-title");if(r)return r}translateEmotions(t,e=!0){var n;const r=this.getEmotionParser();return(n=r==null?void 0:r.translate(t,e?Kt.LangType.ZH_CN:Kt.LangType.English))!=null?n:t}getEmotionParser(){return this.__emotionParser||console.warn("EmotionParser is not ready"),this.__emotionParser}getEmotionImages(){return pt(this,null,function*(){return this.__getEmotionImagePromise||(this.__getEmotionImagePromise=new Promise(t=>{pt(this,null,function*(){const e=yield this._plvSocket.getChannelInfo(),r=yield this._plvSocket.chatApi.get("/front/getEmotionImages",{roomId:e.channelId,accountId:e.accountId});t(r.list)})})),this.__getEmotionImagePromise})}}class xe extends ue{__getMsgUid(u){const t=u.user;if("uid"in t)return t.uid}filterApiMsgList(u){const t=[];return u.forEach(e=>{let r;try{switch(e.msgSource){case"chatImg":r=this.__filterImgApiMsg(e);break;case"reward":r=this.__filterRewardApiMsg(e);break;case"file":r=this.__filterFileApiMsg(e);break;case"redpaper":r=this.__filterRedpaperApiMsg(e);break;case"customerMessage":r=this.__filterCustomServerApiMsg(e);break;case"custom":r=this.__filterCustomClientApiMsg(e);break;default:{const n=this.__getMsgUid(e);n&&(r=this.__filterApiMsgByUid(n,e)),r||(r=this.__filterSpeakApiMsg(e));break}}}catch(n){console.error("filterApiMsgList error",n)}r&&t.push(r)}),t}__filterApiMsgByUid(u,t){if(u==="1")return this.__filterRewardApiMsg(t)}__filterApiQuote(u){if(typeof u=="undefined")return;const t=u.msgType||"speak",e="",r=this._filterUser(u.user),i={speak:a=>({id:e,time:Date.now(),user:r,msgSource:ot.Speak,content:a.content}),chatImg:a=>({id:e,time:Date.now(),user:r,msgSource:ot.Image,imageId:"",imageUrl:a.image.url,size:{width:a.image.width,height:a.image.height}}),file:a=>{const s=JSON.parse(a.content);return{id:e,time:Date.now(),user:r,msgSource:ot.File,fileName:s.name,fileUrl:s.url}},redpaper:a=>{const s=JSON.parse(a.content);return Pt(Tt({},s),{id:e,time:Date.now(),user:r,msgSource:ot.Redpaper,content:s.content})},customerMessage:a=>({id:e,time:Date.now(),user:r,msgSource:ot.CustomServer,content:a.content})}[t];if(i)return i(u)}__filterCommonApiMsg(u,t){const e=this._filterUser(u.user);return{id:u.id,msgSource:t,time:u.time,user:e}}__filterSpeakApiMsg(u){const t=Pt(Tt({},this.__filterCommonApiMsg(u,ot.Speak)),{content:u.content,quote:this.__filterApiQuote(u.quote),isOverLength:!!u.overLen});return u.translateResult&&(t.translateResult=u.translateResult.reduce((e,r)=>(e[r.language]=r.result,e),{})),t}__filterImgApiMsg(u){return u.content.type==="chatImg"?Pt(Tt({},this.__filterCommonApiMsg(u,ot.Image)),{imageId:u.content.id,imageUrl:u.content.uploadImgUrl,size:u.content.size}):Pt(Tt({},this.__filterCommonApiMsg(u,ot.Emotion)),{emotionId:u.content.id,emotionUrl:u.content.uploadImgUrl})}__filterRewardApiMsg(u){return Pt(Tt({},this.__filterCommonApiMsg(u,ot.Reward)),{gimg:u.content.gimg,goodNum:u.content.goodNum,donateType:u.content.gimg?Vt.Good:Vt.Cash,rewardContent:u.content.rewardContent,isSelf:this._plvChat.plvSocket.isCurrentUser(u.user.userId)})}__filterFileApiMsg(u){const t=JSON.parse(u.content);return jt(t.name)===Mt.Image?Pt(Tt({},this.__filterCommonApiMsg(u,ot.Image)),{imageId:Gt(),imageUrl:t.url}):Pt(Tt({},this.__filterCommonApiMsg(u,ot.File)),{fileUrl:t.url,fileName:t.name})}__filterRedpaperApiMsg(u){var r;const t=(r=u.userTags)==null?void 0:r.map(n=>Number(n));return delete u.userTags,Tt(Pt(Tt({},u),{userLabels:t}),this.__filterCommonApiMsg(u,ot.Redpaper))}__filterCustomServerApiMsg(u){return Pt(Tt({},this.__filterCommonApiMsg(u,ot.CustomServer)),{content:u.content})}__filterCustomClientApiMsg(u){return Tt(Tt({},u),this.__filterCommonApiMsg(u,ot.CustomClient))}}class Ie extends Dt{constructor(t){var e;super(t);It(this,"__chatHistoryEncrypt",!1);It(this,"__apiFilter",new xe(this._plvChat));this.__chatHistoryEncrypt=(e=t.config.chatHistoryEncrypt)!=null?e:!1}setChatHistoryEncrypt(t){this.__chatHistoryEncrypt=t}getChatHistoryByTime(){return pt(this,arguments,function*(t={}){const{timestamp:e,count:r,size:n=10,mode:i=Ht.Prev,getBanStatus:a=!1,onlySpecialMsg:s=!1}=t,c={roomId:(yield this._plvSocket.getChannelInfo()).channelId,timestamp:e,index:r,size:n};s&&(c.getSpecialMessage="Y"),i===Ht.Prev?c.order="desc":c.order="asc",a&&(c.getIsBan="Y");const d=this.__getHistoryExclude(t.exclude);d&&(c.exclude=d);const p=this.__chatHistoryEncrypt;let l="/front/channel/chat-history-by-timestamp/get";p&&(l="/front/channel/chat-history-list-by-timestamp/get");let v=(yield this._plvSocket.chatApi.get(l,c,{responseType:p?"text":"json",useAESDecrypt:p})).list;return i===Ht.Prev&&(v=v.reverse()),this.__apiFilter.filterApiMsgList(v)})}__getHistoryExclude(t=[]){if(t.length===0)return"";const e=[],r={[ot.CustomServer]:"custom",[ot.Reward]:"reward",[ot.Redpaper]:"redpaper"};return t.forEach(n=>{if(n in r){const i=r[n];e.push(i)}}),e.join(",")}getChatHistoryByWorkWechatTagId(){return pt(this,arguments,function*(t={}){const{timestamp:e=Date.now(),size:r,mode:n=Ht.Prev}=t,i=yield this._plvSocket.getChannelInfo(),a=this._plvSocket.getUserInfo();if(!a.workWechatTagId)throw new Error("userInfo.workWechatTagId is undefined");const s={roomId:i.channelId,timestamp:e,size:r,userId:a.userId,tagId:a.workWechatTagId,direction:1};let c=(yield this._plvSocket.chatApi.get("/front/channel/tags/chat-history/get",s)).list;return n===Ht.Prev&&(c=c.reverse()),this.__apiFilter.filterApiMsgList(c)})}}class Se extends Dt{constructor(){super(...arguments);It(this,"__isListened",!1)}listenManageEvent(){this.__isListened||(this._plvSocket.addSocketHandles(Nt,{ADD_SHIELD:t=>{t.data.banType==="userId"?this._plvChat.eventEmitter.emit(ct.UserBanned,{userId:t.value}):this._plvChat.eventEmitter.emit(ct.IpBanned,{ip:t.value})},REMOVE_SHIELD:t=>{t.data.banType==="userId"?this._plvChat.eventEmitter.emit(ct.UserCancelBanned,{userId:t.value}):this._plvChat.eventEmitter.emit(ct.IpCancelBanned,{ip:t.value})},KICK:t=>{this._plvChat.eventEmitter.emit(ct.UserKicked,{userId:t.user.userId})},UNKICK:t=>{t.data.kickType==="userId"&&this._plvChat.eventEmitter.emit(ct.UserCancelKicked,{userId:t.data.userId})}}),this.__isListened=!0)}deleteMsg(t){return pt(this,null,function*(){const e=yield this._plvSocket.getChannelInfo();return(yield this._plvSocket.chatApi.get("/admin/removeContentById",{roomId:e.channelId,id:t.id},{appendSign:!0,useStatusCode:!1})).success?{success:!0}:{success:!1,failReason:St.UnknownError}})}clearMsg(){return pt(this,null,function*(){const t=yield this._plvSocket.getChannelInfo(),r={EVENT:"REMOVE_HISTORY",sign:yield this._plvSocket.chatApi.getRoomSign(),roomId:t.channelId};return yield this._plvSocket.emitSocket(r),{success:!0}})}banUser(t){return pt(this,null,function*(){const e=yield this._plvSocket.getChannelInfo(),r=yield this._plvSocket.chatApi.getRoomSign(),n={EVENT:"SHIELD",channelId:e.channelId,roomId:e.channelId,type:"userId",value:t.userId,sign:r};return(yield this._plvSocket.emitSocket(n,"message",{checkCode:!1})).code===501?{success:!1,failReason:St.PlatformProhibited}:{success:!0}})}cancelBanUser(t){return pt(this,null,function*(){const e=yield this._plvSocket.getChannelInfo(),r=yield this._plvSocket.chatApi.getRoomSign(),n={EVENT:"REMOVE_SHIELD",channelId:e.channelId,roomId:e.channelId,type:"userId",value:t.userId,sign:r};return(yield this._plvSocket.emitSocket(n,"message",{checkCode:!1})).code===501?{success:!1,failReason:St.PlatformProhibited}:{success:!0}})}getBannedUserList(){return pt(this,arguments,function*(t={}){const{keyword:e,pageNumber:r=1,pageSize:n=10}=t,a={roomId:(yield this._plvSocket.getChannelInfo()).channelId,type:"userId",toGetSubRooms:!0,page:r,size:n};e&&(a.keyword=e);const s=yield this._plvSocket.chatApi.get("/admin/listUserBanned",a,{appendChannelId:!1,appendUserId:!1});return{pageNumber:r,pageSize:n,totalItems:s.total,totalPages:Math.ceil(s.total/n),contents:s.list.map(f=>({userId:f.userId,nick:f.nick,clientIp:f.clientIp,platformProhibited:Ut(f.isAccount,"N")}))}})}banIp(t){return pt(this,null,function*(){const e=yield this._plvSocket.getChannelInfo(),r=yield this._plvSocket.chatApi.getRoomSign(),n={EVENT:"SHIELD",channelId:e.channelId,roomId:e.channelId,type:"ip",value:t.ip,sign:r};return(yield this._plvSocket.emitSocket(n,"message",{checkCode:!1})).code===501?{success:!1,failReason:St.PlatformProhibited}:{success:!0}})}cancelBanIp(t){return pt(this,null,function*(){const e=yield this._plvSocket.getChannelInfo(),r=yield this._plvSocket.chatApi.getRoomSign(),n={EVENT:"REMOVE_SHIELD",channelId:e.channelId,roomId:e.channelId,type:"ip",value:t.ip,sign:r};return(yield this._plvSocket.emitSocket(n,"message",{checkCode:!1})).code===501?{success:!1,failReason:St.PlatformProhibited}:{success:!0}})}getBannedIpList(){return pt(this,null,function*(){const t=yield this._plvSocket.getChannelInfo();return{contents:(yield this._plvSocket.chatApi.get("/admin/listBanned",{roomId:t.channelId,type:"ip",toGetSubRooms:!0},{useStatusCode:!1,appendChannelId:!1,appendUserId:!1})).map(r=>({clientIp:r}))}})}kickUser(t){return pt(this,null,function*(){const e=yield this._plvSocket.getChannelInfo(),r=yield this._plvSocket.chatApi.getRoomSign(),n={EVENT:"KICK",channelId:e.channelId,roomId:e.channelId,userId:t.userId,type:"userId",sign:r};return(yield this._plvSocket.emitSocket(n,"message",{checkCode:!1})).code===501?{success:!1,failReason:St.PlatformProhibited}:(this._plvChat.eventEmitter.emit(ct.UserKicked,{userId:t.userId}),{success:!0})})}cancelKickUser(t){return pt(this,null,function*(){const e=yield this._plvSocket.getChannelInfo();return(yield this._plvSocket.chatApi.get("/admin/delKicked",{roomId:e.channelId,type:"userId",value:t.userId,toGetSubRooms:!0},{useStatusCode:!1,appendSign:!0})).code===501?{success:!1,failReason:St.PlatformProhibited}:{success:!0}})}getKickedUserList(){return pt(this,null,function*(){const t=yield this._plvSocket.getChannelInfo();return{contents:(yield this._plvSocket.chatApi.get("/admin/listKicked",{roomId:t.channelId,toGetSubRooms:!0},{appendChannelId:!1,appendUserId:!1})).map(r=>({userId:r.userId,nick:r.nick,clientIp:r.clientIp,platformProhibited:Ut(r.isAccount,"N")}))}})}motivateLike(t){return pt(this,null,function*(){const{type:e=te.Speak}=t,r={EVENT:"LIKES",motivatedId:t.motivatedId,type:e};t.chatMsgId&&(r.speakId=t.chatMsgId),yield this._plvSocket.emitSocket(r,"motivation")})}topMsg(t){return pt(this,null,function*(){const e={EVENT:"TO_TOP",id:t.msgId};yield this._plvSocket.emitSocket(e,"speak")})}cancelTopMsg(t){return pt(this,null,function*(){const e={EVENT:"CANCEL_TOP",id:t.id};yield this._plvSocket.emitSocket(e,"speak")})}setChatSwitch(t){return pt(this,null,function*(){return yield this._plvSocket.polyvApi.post("/live/v3/channel/interact/chat/set-chat-enabled",{enabled:t.enabled?"Y":"N"},{requestType:"form"}),{success:!0}})}pushMsgToQa(t){return pt(this,null,function*(){const{chatMsg:e}=t,r={EVENT:"LAUNCH_Q",content:e.content,speakId:e.id};return yield this._plvSocket.emitSocket(r),{success:!0}})}}const se={[ot.Speak]:!0,[ot.Image]:!0,[ot.Emotion]:!0,[ot.Reward]:!0,[ot.Redpaper]:!0,[ot.RedpaperReceive]:!1,[ot.CustomServer]:!0,[ot.CustomClient]:!0,[ot.System]:!1,[ot.MotivationLike]:!1,[ot.Effect]:!1,[ot.File]:!0},ce=[ot.Speak],fe=[ot.Speak,ot.Image,ot.File,ot.Redpaper,ot.CustomServer,ot.Emotion];function _e(o){const u=ae(o),t=/(http[s]?:\/\/)([\w-]+(\.[\w-]+)+([\w\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?)/g,e=u.match(t);if(Array.isArray(e)&&e.length>0){let n="",i=u;return e.forEach(a=>{const[s]=i.split(a);n+=qt(s)+`<a target="_blank" rel="noopener" href="${a}">${a}</a>`;const f=s+a;i=i.slice(f.length)}),i&&(n+=qt(i)),n}return o}class Ee extends Dt{constructor(t){super(t);It(this,"topingMsgs",[]);It(this,"__fullMessageRecord",{});this._plvSocket.addSocketHandles(Nt,{onSliceID:e=>{e.data.speakTop&&(this.topingMsgs=this._plvChat.__socketFilter.__filterSpeakTopMsg(e.data.speakTop),this._plvChat.eventEmitter.emit(ct.TopMsg,{topingMsgs:this.topingMsgs}))}}),this._plvSocket.addSocketHandles(Nt,{TO_TOP:e=>{this.topingMsgs=this._plvChat.__socketFilter.__filterSpeakTopMsg(e),this._plvChat.eventEmitter.emit(ct.TopMsg,{topingMsgs:this.topingMsgs})},CANCEL_TOP:e=>{this.topingMsgs=this.topingMsgs.filter(r=>r.id!==e.id),this._plvChat.eventEmitter.emit(ct.TopMsg,{topingMsgs:this.topingMsgs})}},"speak")}isServiceMsg(t){return se[t.msgSource]}canQuoteMsg(t){return fe.includes(t.msgSource)}canTopMsg(t){return ce.includes(t.msgSource)}parseSpeakContent(t,e){const r=this._plvChat.emotion.getEmotionParser(),{parseLink:n=!1,removeEmotion:i=!1,parseEmotion:a=!1,parseLineBreak:s=!1}=e||{};let f=qt(ae(t));return f=f.replace(/ /g," "),n&&(f=_e(f)),i&&r&&(f=r.removeAll(f)),a&&r&&(f=r.parse(f,Kt.EmotionParsingMode.HTML)),s&&(f=me(f)),f}getFullMessage(t){return pt(this,null,function*(){if(t&&!t.isOverLength)return new Promise(s=>s(t.content));const e=t.id,n=this._plvChat.status.getStatusInfo().autoTranslateLanguage;let i=e;n&&(i=`${e}-${n}`);let a=this.__fullMessageRecord[i];return a||(a=new Promise(s=>{pt(this,null,function*(){try{const f=yield this._plvSocket.emitSocket({EVENT:"GET_FULL_MESSAGE",id:e},"speak");s(f.content)}catch(f){s(t?t.content:""),console.error("[chat-module] getFullMessage request socket error")}})}),this.__fullMessageRecord[i]=a),a})}translateSpeak(t){return pt(this,null,function*(){const{chatMsg:e,language:r}=t,n={EVENT:"TRANSLATE",id:e.id,language:r},i=yield this._plvSocket.emitSocket(n,"speak");return{language:i.language,content:i.result}})}getSpeakOriginalContent(t){return pt(this,null,function*(){const{chatMsg:e}=t,r={EVENT:"GET_ORIGINAL_SPEAK",id:e.id};return(yield this._plvSocket.emitSocket(r,"speak")).content})}}class Oe extends Dt{getOnlineList(){return pt(this,arguments,function*(u={}){const{keyword:t=""}=u;return t?this.__getOnlineListByKeyword(u):this.__getOnlineListByNormal(u)})}__getOnlineListByKeyword(u){return pt(this,null,function*(){const{keyword:t="",getBanStatus:e=!1}=u,r=yield this._plvSocket.getChannelInfo(),n={roomId:r.channelId,nick:t};r.sessionId&&(n.sessionId=r.sessionId);const i=yield this._plvSocket.chatApi.get(e?"/front/v2/searchUserList":"/front/searchUserList",n,{appendChannelId:!1});return{total:i.count,onlineList:i.userlist}})}__getOnlineListByNormal(u){return pt(this,null,function*(){const{count:t=10,getBanStatus:e=!1}=u,r=yield this._plvSocket.getChannelInfo(),n={roomId:r.channelId,page:1,len:t,hide:0,toGetSubRooms:!0};r.sessionId&&(n.sessionId=r.sessionId);const i=yield this._plvSocket.chatApi.get(e?"/front/v2/userlist":"/front/userlist",n,{responseType:"text",useAESDecrypt:!0,appendChannelId:!1,useStatusCode:!1});return{total:i.count,onlineList:i.userlist}})}getAttendanceList(u){return pt(this,null,function*(){var p;const{keyword:t="",count:e=10,searchType:r="attendance"}=u,n=yield this._plvSocket.getChannelInfo(),i=this._plvChat.utils.getDefaultResource();let a="/front/channel/white-list/get";const s={roomId:n.channelId,expectedArrivalType:"viewer_white",timestamp:Date.now(),online:r==="attendance"?"Y":"N"};u.score&&(s.score=u.score),t?(s.nick=t,a="/front/channel/search-white-list/get"):e&&(s.size=e);const f=yield this._plvSocket.chatApi.get(a,s,{appendChatSign:!0,appendChannelId:!1,appendUserId:!1}),c=[],d=this._plvSocket.SocketUserType;return f.list.forEach(l=>{const h={userId:l.userId,nick:l.name,pic:i.defaultViewerAvatar,userType:d.Viewer,score:l.score};l.clientIp&&(h.clientIp=l.clientIp),c.push(h)}),{list:c,total:(p=f.total)!=null?p:f.list.length}})}}const re=/^(?:([a-z]+):)?\/{2,3}/i;function Ce(o,u){return re.test(o)}function Te(o,u){return re.test(u)||(u+="://"),Ce(o)?o.replace(re,u):u+o}class ke extends Dt{__getCurrentChatMsgUserData(){return pt(this,null,function*(){const u=this._plvSocket.getUserInfo();return{userId:u.userId,nick:u.nick,pic:u.pic,userType:u.userType,actor:u.actor}})}__afterSendSocket(u){const{localId:t,newId:e,chatMsg:r}=u,n=Tt({},r);return n.id=e,n.isSended=!0,this._plvChat.eventEmitter.emit(ct.ReplaceChatMessage,{id:t,chatMsg:n}),this._plvChat.eventEmitter.emit(ct.SelfSendMessage,{chatMsg:n}),n}generateLocalMsg(u,t){return pt(this,null,function*(){const{emitLocalMsg:e=!0}=t,r=yield this.__getCurrentChatMsgUserData();let n;const i={[ot.Speak]:a=>pt(this,null,function*(){const f={id:a.localId||Gt(),msgSource:ot.Speak,time:Date.now(),user:r,content:qt(a.content),isLocal:!0};if(a.quoteMsg){const c=a.quoteMsg;this._plvChat.message.canQuoteMsg(c)?f.quote=c:console.warn("sendSpeakMsg warn, quoteMsg is not a can quote msg",c)}return f}),[ot.Image]:a=>pt(this,null,function*(){return{id:a.localId||Gt(),msgSource:ot.Image,time:Date.now(),user:r,imageId:a.imageId,imageUrl:a.imageUrl,size:a.size,isLocal:!0,localImageUrl:a.imageUrl}}),[ot.Emotion]:a=>pt(this,null,function*(){return{id:a.localId||Gt(),msgSource:ot.Emotion,time:Date.now(),user:r,emotionId:a.emotionId,emotionUrl:a.emotionUrl,isLocal:!0}})};return t.localMsg?n=t.localMsg:n=yield i[u](t),n.isSended=!1,e&&this._plvChat.eventEmitter.emit(ct.ChatMessage,{chatMsg:n}),n})}sendSpeakMsg(u){return pt(this,null,function*(){if(!u.content)throw new Error("sendSpeakMsg fail, content is empty");const t=yield this.generateLocalMsg(ot.Speak,u),e=t.id,r=yield this._plvSocket.getChannelInfo(),n={EVENT:"SPEAK",values:[t.content],roomId:r.channelId,channelId:r.channelId,accountId:r.accountId,sessionId:r.sessionId,needIdCallback:1};u.quoteMsg&&(n.quoteId=u.quoteMsg.id);const i=yield this._plvSocket.emitSocket(n,"message",{directCallback:!0}),a=i[0],s=i[1];let f=Tt({},t);return s!=null&&s.content&&(f.content=s.content),f=this.__afterSendSocket({localId:e,newId:a,chatMsg:f}),f})}sendImageMsg(u){return pt(this,null,function*(){const t=yield this.generateLocalMsg(ot.Image,u),e=t.id,r=yield this._plvSocket.getChannelInfo(),n={EVENT:"CHAT_IMG",roomId:r.channelId,values:[{id:t.imageId,uploadImgUrl:Te(t.imageUrl,"https"),size:t.size,status:"upLoadingSuccess",type:"chatImg",msgSource:"chatImg"}],accountId:r.accountId,channelId:r.channelId,sessionId:r.sessionId,needIdCallback:1},a=(yield this._plvSocket.emitSocket(n,"message",{directCallback:!0}))[0];return this.__afterSendSocket({localId:e,newId:a,chatMsg:t})})}choiceImageFileSend(){return pt(this,arguments,function*(u={}){const{choiceCallback:t}=u,e={};return yield this._plvChat.utils.uploadMultiImage({ready:n=>pt(this,null,function*(){t&&t();const i=yield this.generateLocalMsg(ot.Image,{imageId:n.imageId,imageUrl:n.previewSrc});e[n.imageId]=i}),success:n=>{const i=e[n.imageId];i&&(i.imageUrl=n.imageUrl,i.size=n.size,this.sendImageMsg({imageId:n.imageId,imageUrl:n.imageUrl,size:n.size,localMsg:i,emitLocalMsg:!1}))},fail:(n,i)=>{const a=e[i.imageId];a&&(a.isSendFailed=!0,this._plvChat.eventEmitter.emit(ct.ReplaceChatMessage,{id:a.id,chatMsg:a}))}}),Object.values(e)})}sendEmotionImageMsg(u){return pt(this,null,function*(){const t=this._plvSocket,e=yield this.generateLocalMsg(ot.Emotion,u),r=e.id,n={id:u.emotionId},a=(yield t.emitSocket(n,"emotion")).messageId;return this.__afterSendSocket({localId:r,newId:a,chatMsg:e})})}sendSystemMsg(u,t){const e={id:Gt(),msgSource:ot.System,time:Date.now(),content:u,type:t};this._plvChat.eventEmitter.emit(ct.ChatMessage,{chatMsg:e})}sendCustomServerMsg(u){return pt(this,null,function*(){yield this._plvSocket.polyvApi.get("/live/v4/chat/send-custom-message",{content:u.content})})}}class Me extends Dt{constructor(t){super(t);It(this,"__statusInfo",this.generateStatusInfo());this._plvSocket.addSocketHandles(Nt,{onSliceID:e=>{this.__updateStatusInfo({autoTranslateLanguage:e.data.speakTranslateLanguage})},REMOVE_CONTENT:e=>{this._plvChat.eventEmitter.emit(ct.RemoveChatMsg,{id:e.id})},REMOVE_HISTORY:()=>{this._plvChat.eventEmitter.emit(ct.ClearMsgHistory,{})},CLOSEROOM:e=>{const r=e.value.closed;this.__updateStatusInfo({chatRoomIsClosed:r}),r?this._plvChat.eventEmitter.emit(ct.CloseChatRoom,{}):this._plvChat.eventEmitter.emit(ct.OpenChatRoom,{})}})}generateStatusInfo(){return{chatRoomIsClosed:!1,autoTranslateLanguage:void 0}}getStatusInfo(){return this.__statusInfo}__updateStatusInfo(t){this.__statusInfo=Tt(Tt({},this.__statusInfo),t),this._plvChat.eventEmitter.emit(ct.StatusInfoUpdate,{statusInfo:this.__statusInfo})}setAutoTranslate(t){return pt(this,null,function*(){const e={EVENT:"CHANGE_TRANSLATE_LANGUAGE",language:t.language};yield this._plvSocket.emitSocket(e,"speak"),this.__updateStatusInfo({autoTranslateLanguage:t.language}),this._plvChat.eventEmitter.emit(ct.SetAutoTranslateLanguage,{language:t.language})})}}var Ae=function(o){var u={};function t(e){if(u[e])return u[e].exports;var r=u[e]={i:e,l:!1,exports:{}};return o[e].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=o,t.c=u,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r||4&r&&typeof e=="object"&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&typeof e!="string")for(var i in e)t.d(n,i,function(a){return e[a]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=187)}([function(o,u,t){(function(e){var r=function(n){return n&&n.Math==Math&&n};o.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof e=="object"&&e)||function(){return this}()||Function("return this")()}).call(this,t(128))},function(o,u,t){var e=t(27),r=Function.prototype,n=r.bind,i=r.call,a=e&&n.bind(i,i);o.exports=e?function(s){return s&&a(s)}:function(s){return s&&function(){return i.apply(s,arguments)}}},function(o,u){o.exports=function(t){try{return!!t()}catch(e){return!0}}},function(o,u,t){var e=t(0),r=t(26).f,n=t(18),i=t(12),a=t(59),s=t(88),f=t(33);o.exports=function(c,d){var p,l,h,v,g,y=c.target,b=c.global,m=c.stat;if(p=b?e:m?e[y]||a(y,{}):(e[y]||{}).prototype)for(l in d){if(v=d[l],h=c.noTargetGet?(g=r(p,l))&&g.value:p[l],!f(b?l:y+(m?".":"#")+l,c.forced)&&h!==void 0){if(typeof v==typeof h)continue;s(v,h)}(c.sham||h&&h.sham)&&n(v,"sham",!0),i(p,l,v,c)}}},function(o,u){o.exports=function(t){return typeof t=="function"}},function(o,u,t){var e=t(0),r=t(43),n=t(8),i=t(44),a=t(56),s=t(85),f=r("wks"),c=e.Symbol,d=c&&c.for,p=s?c:c&&c.withoutSetter||i;o.exports=function(l){if(!n(f,l)||!a&&typeof f[l]!="string"){var h="Symbol."+l;a&&n(c,l)?f[l]=c[l]:f[l]=s&&d?d(h):p(h)}return f[l]}},function(o,u,t){var e=t(2);o.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(o,u,t){var e=t(4);o.exports=function(r){return typeof r=="object"?r!==null:e(r)}},function(o,u,t){var e=t(1),r=t(21),n=e({}.hasOwnProperty);o.exports=Object.hasOwn||function(i,a){return n(r(i),a)}},function(o,u,t){var e=t(0),r=t(6),n=t(86),i=t(87),a=t(10),s=t(39),f=e.TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;u.f=r?i?function(p,l,h){if(a(p),l=s(l),a(h),typeof p=="function"&&l==="prototype"&&"value"in h&&"writable"in h&&!h.writable){var v=d(p,l);v&&v.writable&&(p[l]=h.value,h={configurable:"configurable"in h?h.configurable:v.configurable,enumerable:"enumerable"in h?h.enumerable:v.enumerable,writable:!1})}return c(p,l,h)}:c:function(p,l,h){if(a(p),l=s(l),a(h),n)try{return c(p,l,h)}catch(v){}if("get"in h||"set"in h)throw f("Accessors not supported");return"value"in h&&(p[l]=h.value),p}},function(o,u,t){var e=t(0),r=t(7),n=e.String,i=e.TypeError;o.exports=function(a){if(r(a))return a;throw i(n(a)+" is not an object")}},function(o,u,t){var e=t(27),r=Function.prototype.call;o.exports=e?r.bind(r):function(){return r.apply(r,arguments)}},function(o,u,t){var e=t(0),r=t(4),n=t(8),i=t(18),a=t(59),s=t(46),f=t(19),c=t(31).CONFIGURABLE,d=f.get,p=f.enforce,l=String(String).split("String");(o.exports=function(h,v,g,y){var b,m=!!y&&!!y.unsafe,S=!!y&&!!y.enumerable,x=!!y&&!!y.noTargetGet,I=y&&y.name!==void 0?y.name:v;r(g)&&(String(I).slice(0,7)==="Symbol("&&(I="["+String(I).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!n(g,"name")||c&&g.name!==I)&&i(g,"name",I),(b=p(g)).source||(b.source=l.join(typeof I=="string"?I:""))),h!==e?(m?!x&&h[v]&&(S=!0):delete h[v],S?h[v]=g:i(h,v,g)):S?h[v]=g:a(v,g)})(Function.prototype,"toString",function(){return r(this)&&d(this).source||s(this)})},function(o,u,t){var e=t(0),r=t(50),n=e.String;o.exports=function(i){if(r(i)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return n(i)}},function(o,u,t){var e=t(55),r=t(22);o.exports=function(n){return e(r(n))}},function(o,u,t){var e=t(0),r=t(4),n=function(i){return r(i)?i:void 0};o.exports=function(i,a){return arguments.length<2?n(e[i]):e[i]&&e[i][a]}},function(o,u,t){var e=t(1),r=e({}.toString),n=e("".slice);o.exports=function(i){return n(r(i),8,-1)}},function(o,u,t){var e=t(1);o.exports=e({}.isPrototypeOf)},function(o,u,t){var e=t(6),r=t(9),n=t(28);o.exports=e?function(i,a,s){return r.f(i,a,n(1,s))}:function(i,a,s){return i[a]=s,i}},function(o,u,t){var e,r,n,i=t(130),a=t(0),s=t(1),f=t(7),c=t(18),d=t(8),p=t(58),l=t(47),h=t(30),v=a.TypeError,g=a.WeakMap;if(i||p.state){var y=p.state||(p.state=new g),b=s(y.get),m=s(y.has),S=s(y.set);e=function(I,E){if(m(y,I))throw new v("Object already initialized");return E.facade=I,S(y,I,E),E},r=function(I){return b(y,I)||{}},n=function(I){return m(y,I)}}else{var x=l("state");h[x]=!0,e=function(I,E){if(d(I,x))throw new v("Object already initialized");return E.facade=I,c(I,x,E),E},r=function(I){return d(I,x)?I[x]:{}},n=function(I){return d(I,x)}}o.exports={set:e,get:r,has:n,enforce:function(I){return n(I)?r(I):e(I,{})},getterFor:function(I){return function(E){var C;if(!f(E)||(C=r(E)).type!==I)throw v("Incompatible receiver, "+I+" required");return C}}}},function(o,u,t){var e,r=t(10),n=t(106),i=t(62),a=t(30),s=t(103),f=t(45),c=t(47),d=c("IE_PROTO"),p=function(){},l=function(g){return"<script>"+g+"<\/script>"},h=function(g){g.write(l("")),g.close();var y=g.parentWindow.Object;return g=null,y},v=function(){try{e=new ActiveXObject("htmlfile")}catch(m){}var g,y;v=typeof document!="undefined"?document.domain&&e?h(e):((y=f("iframe")).style.display="none",s.appendChild(y),y.src="javascript:",(g=y.contentWindow.document).open(),g.write(l("document.F=Object")),g.close(),g.F):h(e);for(var b=i.length;b--;)delete v.prototype[i[b]];return v()};a[d]=!0,o.exports=Object.create||function(g,y){var b;return g!==null?(p.prototype=r(g),b=new p,p.prototype=null,b[d]=g):b=v(),y===void 0?b:n.f(b,y)}},function(o,u,t){var e=t(0),r=t(22),n=e.Object;o.exports=function(i){return n(r(i))}},function(o,u,t){var e=t(0).TypeError;o.exports=function(r){if(r==null)throw e("Can't call method on "+r);return r}},function(o,u,t){var e=t(0),r=t(4),n=t(42),i=e.TypeError;o.exports=function(a){if(r(a))return a;throw i(n(a)+" is not a function")}},function(o,u){o.exports=!1},function(o,u,t){var e=t(89),r=t(62).concat("length","prototype");u.f=Object.getOwnPropertyNames||function(n){return e(n,r)}},function(o,u,t){var e=t(6),r=t(11),n=t(83),i=t(28),a=t(14),s=t(39),f=t(8),c=t(86),d=Object.getOwnPropertyDescriptor;u.f=e?d:function(p,l){if(p=a(p),l=s(l),c)try{return d(p,l)}catch(h){}if(f(p,l))return i(!r(n.f,p,l),p[l])}},function(o,u,t){var e=t(2);o.exports=!e(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})},function(o,u){o.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(o,u,t){var e=t(23);o.exports=function(r,n){var i=r[n];return i==null?void 0:e(i)}},function(o,u){o.exports={}},function(o,u,t){var e=t(6),r=t(8),n=Function.prototype,i=e&&Object.getOwnPropertyDescriptor,a=r(n,"name"),s=a&&function(){}.name==="something",f=a&&(!e||e&&i(n,"name").configurable);o.exports={EXISTS:a,PROPER:s,CONFIGURABLE:f}},function(o,u,t){var e=t(61);o.exports=function(r){return e(r.length)}},function(o,u,t){var e=t(2),r=t(4),n=/#|\.prototype\./,i=function(d,p){var l=s[a(d)];return l==c||l!=f&&(r(p)?e(p):!!p)},a=i.normalize=function(d){return String(d).replace(n,".").toLowerCase()},s=i.data={},f=i.NATIVE="N",c=i.POLYFILL="P";o.exports=i},function(o,u,t){var e=t(1),r=t(23),n=t(27),i=e(e.bind);o.exports=function(a,s){return r(a),s===void 0?a:n?i(a,s):function(){return a.apply(s,arguments)}}},function(o,u,t){var e=t(65),r=t(12),n=t(134);e||r(Object.prototype,"toString",n,{unsafe:!0})},function(o,u,t){var e=t(9).f,r=t(8),n=t(5)("toStringTag");o.exports=function(i,a,s){i&&!s&&(i=i.prototype),i&&!r(i,n)&&e(i,n,{configurable:!0,value:a})}},function(o,u){o.exports={}},function(o,u,t){var e=t(27),r=Function.prototype,n=r.apply,i=r.call;o.exports=typeof Reflect=="object"&&Reflect.apply||(e?i.bind(n):function(){return i.apply(n,arguments)})},function(o,u,t){var e=t(84),r=t(40);o.exports=function(n){var i=e(n,"string");return r(i)?i:i+""}},function(o,u,t){var e=t(0),r=t(15),n=t(4),i=t(17),a=t(85),s=e.Object;o.exports=a?function(f){return typeof f=="symbol"}:function(f){var c=r("Symbol");return n(c)&&i(c.prototype,s(f))}},function(o,u,t){var e=t(15);o.exports=e("navigator","userAgent")||""},function(o,u,t){var e=t(0).String;o.exports=function(r){try{return e(r)}catch(n){return"Object"}}},function(o,u,t){var e=t(24),r=t(58);(o.exports=function(n,i){return r[n]||(r[n]=i!==void 0?i:{})})("versions",[]).push({version:"3.21.0",mode:e?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE",source:"https://github.com/zloirock/core-js"})},function(o,u,t){var e=t(1),r=0,n=Math.random(),i=e(1 .toString);o.exports=function(a){return"Symbol("+(a===void 0?"":a)+")_"+i(++r+n,36)}},function(o,u,t){var e=t(0),r=t(7),n=e.document,i=r(n)&&r(n.createElement);o.exports=function(a){return i?n.createElement(a):{}}},function(o,u,t){var e=t(1),r=t(4),n=t(58),i=e(Function.toString);r(n.inspectSource)||(n.inspectSource=function(a){return i(a)}),o.exports=n.inspectSource},function(o,u,t){var e=t(43),r=t(44),n=e("keys");o.exports=function(i){return n[i]||(n[i]=r(i))}},function(o,u){var t=Math.ceil,e=Math.floor;o.exports=function(r){var n=+r;return n!=n||n===0?0:(n>0?e:t)(n)}},function(o,u,t){var e=t(16);o.exports=Array.isArray||function(r){return e(r)=="Array"}},function(o,u,t){var e=t(0),r=t(65),n=t(4),i=t(16),a=t(5)("toStringTag"),s=e.Object,f=i(function(){return arguments}())=="Arguments";o.exports=r?i:function(c){var d,p,l;return c===void 0?"Undefined":c===null?"Null":typeof(p=function(h,v){try{return h[v]}catch(g){}}(d=s(c),a))=="string"?p:f?i(d):(l=i(d))=="Object"&&n(d.callee)?"Arguments":l}},function(o,u,t){var e=t(1),r=t(10),n=t(138);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i,a=!1,s={};try{(i=e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(s,[]),a=s instanceof Array}catch(f){}return function(f,c){return r(f),n(c),a?i(f,c):f.__proto__=c,f}}():void 0)},function(o,u,t){var e=t(1);o.exports=e([].slice)},function(o,u,t){var e=t(3),r=t(54);e({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(o,u,t){var e,r,n=t(11),i=t(1),a=t(13),s=t(75),f=t(76),c=t(43),d=t(20),p=t(19).get,l=t(107),h=t(108),v=c("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,b=i("".charAt),m=i("".indexOf),S=i("".replace),x=i("".slice),I=(r=/b*/g,n(g,e=/a/,"a"),n(g,r,"a"),e.lastIndex!==0||r.lastIndex!==0),E=f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0;(I||C||E||l||h)&&(y=function(k){var A,U,V,F,z,B,j,P=this,D=p(P),G=a(k),Z=D.raw;if(Z)return Z.lastIndex=P.lastIndex,A=n(y,Z,G),P.lastIndex=Z.lastIndex,A;var et=D.groups,rt=E&&P.sticky,tt=n(s,P),Y=P.source,ht=0,dt=G;if(rt&&(tt=S(tt,"y",""),m(tt,"g")===-1&&(tt+="g"),dt=x(G,P.lastIndex),P.lastIndex>0&&(!P.multiline||P.multiline&&b(G,P.lastIndex-1)!==`
|
|
12
|
+
`)&&(Y="(?: "+Y+")",dt=" "+dt,ht++),U=new RegExp("^(?:"+Y+")",tt)),C&&(U=new RegExp("^"+Y+"$(?!\\s)",tt)),I&&(V=P.lastIndex),F=n(g,rt?U:P,dt),rt?F?(F.input=x(F.input,ht),F[0]=x(F[0],ht),F.index=P.lastIndex,P.lastIndex+=F[0].length):P.lastIndex=0:I&&F&&(P.lastIndex=P.global?F.index+F[0].length:V),C&&F&&F.length>1&&n(v,F[0],U,function(){for(z=1;z<arguments.length-2;z++)arguments[z]===void 0&&(F[z]=void 0)}),F&&et)for(F.groups=B=d(null),z=0;z<et.length;z++)B[(j=et[z])[0]]=F[j[1]];return F}),o.exports=y},function(o,u,t){var e=t(0),r=t(1),n=t(2),i=t(16),a=e.Object,s=r("".split);o.exports=n(function(){return!a("z").propertyIsEnumerable(0)})?function(f){return i(f)=="String"?s(f,""):a(f)}:a},function(o,u,t){var e=t(57),r=t(2);o.exports=!!Object.getOwnPropertySymbols&&!r(function(){var n=Symbol();return!String(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&e&&e<41})},function(o,u,t){var e,r,n=t(0),i=t(41),a=n.process,s=n.Deno,f=a&&a.versions||s&&s.version,c=f&&f.v8;c&&(r=(e=c.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!r&&i&&(!(e=i.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=i.match(/Chrome\/(\d+)/))&&(r=+e[1]),o.exports=r},function(o,u,t){var e=t(0),r=t(59),n=e["__core-js_shared__"]||r("__core-js_shared__",{});o.exports=n},function(o,u,t){var e=t(0),r=Object.defineProperty;o.exports=function(n,i){try{r(e,n,{value:i,configurable:!0,writable:!0})}catch(a){e[n]=i}return i}},function(o,u,t){var e=t(48),r=Math.max,n=Math.min;o.exports=function(i,a){var s=e(i);return s<0?r(s+a,0):n(s,a)}},function(o,u,t){var e=t(48),r=Math.min;o.exports=function(n){return n>0?r(e(n),9007199254740991):0}},function(o,u){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(o,u,t){var e=t(3),r=t(93);e({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(o,u,t){var e=t(1),r=t(2),n=t(4),i=t(50),a=t(15),s=t(46),f=function(){},c=[],d=a("Reflect","construct"),p=/^\s*(?:class|function)\b/,l=e(p.exec),h=!p.exec(f),v=function(y){if(!n(y))return!1;try{return d(f,c,y),!0}catch(b){return!1}},g=function(y){if(!n(y))return!1;switch(i(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!l(p,s(y))}catch(b){return!0}};g.sham=!0,o.exports=!d||r(function(){var y;return v(v.call)||!v(Object)||!v(function(){y=!0})||y})?g:v},function(o,u,t){var e={};e[t(5)("toStringTag")]="z",o.exports=String(e)==="[object z]"},function(o,u,t){var e=t(2);o.exports=function(r,n){var i=[][r];return!!i&&e(function(){i.call(null,n||function(){throw 1},1)})}},function(o,u,t){var e=t(0),r=t(95),n=t(96),i=t(93),a=t(18),s=function(c){if(c&&c.forEach!==i)try{a(c,"forEach",i)}catch(d){c.forEach=i}};for(var f in r)r[f]&&s(e[f]&&e[f].prototype);s(n)},function(o,u,t){var e=t(89),r=t(62);o.exports=Object.keys||function(n){return e(n,r)}},function(o,u,t){var e=t(15),r=t(9),n=t(5),i=t(6),a=n("species");o.exports=function(s){var f=e(s),c=r.f;i&&f&&!f[a]&&c(f,a,{configurable:!0,get:function(){return this}})}},function(o,u,t){var e=t(0),r=t(17),n=e.TypeError;o.exports=function(i,a){if(r(a,i))return i;throw n("Incorrect invocation")}},function(o,u,t){var e=t(0),r=t(34),n=t(11),i=t(10),a=t(42),s=t(139),f=t(32),c=t(17),d=t(140),p=t(98),l=t(141),h=e.TypeError,v=function(y,b){this.stopped=y,this.result=b},g=v.prototype;o.exports=function(y,b,m){var S,x,I,E,C,k,A,U=m&&m.that,V=!(!m||!m.AS_ENTRIES),F=!(!m||!m.IS_ITERATOR),z=!(!m||!m.INTERRUPTED),B=r(b,U),j=function(D){return S&&l(S,"normal",D),new v(!0,D)},P=function(D){return V?(i(D),z?B(D[0],D[1],j):B(D[0],D[1])):z?B(D,j):B(D)};if(F)S=y;else{if(!(x=p(y)))throw h(a(y)+" is not iterable");if(s(x)){for(I=0,E=f(y);E>I;I++)if((C=P(y[I]))&&c(g,C))return C;return new v(!1)}S=d(y,x)}for(k=S.next;!(A=n(k,S)).done;){try{C=P(A.value)}catch(D){l(S,"throw",D)}if(typeof C=="object"&&C&&c(g,C))return C}return new v(!1)}},function(o,u,t){var e=t(16),r=t(0);o.exports=e(r.process)=="process"},function(o,u,t){t(3)({target:"Array",stat:!0},{isArray:t(49)})},function(o,u,t){t(3)({target:"Object",stat:!0,sham:!t(6)},{create:t(20)})},function(o,u,t){var e=t(10);o.exports=function(){var r=e(this),n="";return r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.sticky&&(n+="y"),n}},function(o,u,t){var e=t(2),r=t(0).RegExp,n=e(function(){var s=r("a","y");return s.lastIndex=2,s.exec("abcd")!=null}),i=n||e(function(){return!r("a","y").sticky}),a=n||e(function(){var s=r("^r","gy");return s.lastIndex=2,s.exec("str")!=null});o.exports={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:n}},function(o,u,t){var e=t(1),r=t(22),n=t(13),i=t(78),a=e("".replace),s="["+i+"]",f=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),d=function(p){return function(l){var h=n(r(l));return 1&p&&(h=a(h,f,"")),2&p&&(h=a(h,c,"")),h}};o.exports={start:d(1),end:d(2),trim:d(3)}},function(o,u){o.exports=`
|
|
13
|
+
\v\f\r \u2028\u2029\uFEFF`},function(o,u,t){var e=t(4),r=t(7),n=t(51);o.exports=function(i,a,s){var f,c;return n&&e(f=a.constructor)&&f!==s&&r(c=f.prototype)&&c!==s.prototype&&n(i,c),i}},function(o,u,t){var e=t(0),r=t(8),n=t(4),i=t(21),a=t(47),s=t(118),f=a("IE_PROTO"),c=e.Object,d=c.prototype;o.exports=s?c.getPrototypeOf:function(p){var l=i(p);if(r(l,f))return l[f];var h=l.constructor;return n(h)&&l instanceof h?h.prototype:l instanceof c?d:null}},function(o,u,t){var e=t(3),r=t(11),n=t(24),i=t(31),a=t(4),s=t(166),f=t(80),c=t(51),d=t(36),p=t(18),l=t(12),h=t(5),v=t(37),g=t(121),y=i.PROPER,b=i.CONFIGURABLE,m=g.IteratorPrototype,S=g.BUGGY_SAFARI_ITERATORS,x=h("iterator"),I=function(){return this};o.exports=function(E,C,k,A,U,V,F){s(k,C,A);var z,B,j,P=function(Y){if(Y===U&&rt)return rt;if(!S&&Y in Z)return Z[Y];switch(Y){case"keys":case"values":case"entries":return function(){return new k(this,Y)}}return function(){return new k(this)}},D=C+" Iterator",G=!1,Z=E.prototype,et=Z[x]||Z["@@iterator"]||U&&Z[U],rt=!S&&et||P(U),tt=C=="Array"&&Z.entries||et;if(tt&&(z=f(tt.call(new E)))!==Object.prototype&&z.next&&(n||f(z)===m||(c?c(z,m):a(z[x])||l(z,x,I)),d(z,D,!0,!0),n&&(v[D]=I)),y&&U=="values"&&et&&et.name!=="values"&&(!n&&b?p(Z,"name","values"):(G=!0,rt=function(){return r(et,this)})),U)if(B={values:P("values"),keys:V?rt:P("keys"),entries:P("entries")},F)for(j in B)(S||G||!(j in Z))&&l(Z,j,B[j]);else e({target:C,proto:!0,forced:S||G},B);return n&&!F||Z[x]===rt||l(Z,x,rt,{name:U}),v[C]=rt,B}},function(o,u,t){var e,r,n,i,a;e=t(185),r=t(126).utf8,n=t(186),i=t(126).bin,(a=function(s,f){s.constructor==String?s=f&&f.encoding==="binary"?i.stringToBytes(s):r.stringToBytes(s):n(s)?s=Array.prototype.slice.call(s,0):Array.isArray(s)||s.constructor===Uint8Array||(s=s.toString());for(var c=e.bytesToWords(s),d=8*s.length,p=1732584193,l=-271733879,h=-1732584194,v=271733878,g=0;g<c.length;g++)c[g]=16711935&(c[g]<<8|c[g]>>>24)|4278255360&(c[g]<<24|c[g]>>>8);c[d>>>5]|=128<<d%32,c[14+(d+64>>>9<<4)]=d;var y=a._ff,b=a._gg,m=a._hh,S=a._ii;for(g=0;g<c.length;g+=16){var x=p,I=l,E=h,C=v;p=y(p,l,h,v,c[g+0],7,-680876936),v=y(v,p,l,h,c[g+1],12,-389564586),h=y(h,v,p,l,c[g+2],17,606105819),l=y(l,h,v,p,c[g+3],22,-1044525330),p=y(p,l,h,v,c[g+4],7,-176418897),v=y(v,p,l,h,c[g+5],12,1200080426),h=y(h,v,p,l,c[g+6],17,-1473231341),l=y(l,h,v,p,c[g+7],22,-45705983),p=y(p,l,h,v,c[g+8],7,1770035416),v=y(v,p,l,h,c[g+9],12,-1958414417),h=y(h,v,p,l,c[g+10],17,-42063),l=y(l,h,v,p,c[g+11],22,-1990404162),p=y(p,l,h,v,c[g+12],7,1804603682),v=y(v,p,l,h,c[g+13],12,-40341101),h=y(h,v,p,l,c[g+14],17,-1502002290),p=b(p,l=y(l,h,v,p,c[g+15],22,1236535329),h,v,c[g+1],5,-165796510),v=b(v,p,l,h,c[g+6],9,-1069501632),h=b(h,v,p,l,c[g+11],14,643717713),l=b(l,h,v,p,c[g+0],20,-373897302),p=b(p,l,h,v,c[g+5],5,-701558691),v=b(v,p,l,h,c[g+10],9,38016083),h=b(h,v,p,l,c[g+15],14,-660478335),l=b(l,h,v,p,c[g+4],20,-405537848),p=b(p,l,h,v,c[g+9],5,568446438),v=b(v,p,l,h,c[g+14],9,-1019803690),h=b(h,v,p,l,c[g+3],14,-187363961),l=b(l,h,v,p,c[g+8],20,1163531501),p=b(p,l,h,v,c[g+13],5,-1444681467),v=b(v,p,l,h,c[g+2],9,-51403784),h=b(h,v,p,l,c[g+7],14,1735328473),p=m(p,l=b(l,h,v,p,c[g+12],20,-1926607734),h,v,c[g+5],4,-378558),v=m(v,p,l,h,c[g+8],11,-2022574463),h=m(h,v,p,l,c[g+11],16,1839030562),l=m(l,h,v,p,c[g+14],23,-35309556),p=m(p,l,h,v,c[g+1],4,-1530992060),v=m(v,p,l,h,c[g+4],11,1272893353),h=m(h,v,p,l,c[g+7],16,-155497632),l=m(l,h,v,p,c[g+10],23,-1094730640),p=m(p,l,h,v,c[g+13],4,681279174),v=m(v,p,l,h,c[g+0],11,-358537222),h=m(h,v,p,l,c[g+3],16,-722521979),l=m(l,h,v,p,c[g+6],23,76029189),p=m(p,l,h,v,c[g+9],4,-640364487),v=m(v,p,l,h,c[g+12],11,-421815835),h=m(h,v,p,l,c[g+15],16,530742520),p=S(p,l=m(l,h,v,p,c[g+2],23,-995338651),h,v,c[g+0],6,-198630844),v=S(v,p,l,h,c[g+7],10,1126891415),h=S(h,v,p,l,c[g+14],15,-1416354905),l=S(l,h,v,p,c[g+5],21,-57434055),p=S(p,l,h,v,c[g+12],6,1700485571),v=S(v,p,l,h,c[g+3],10,-1894986606),h=S(h,v,p,l,c[g+10],15,-1051523),l=S(l,h,v,p,c[g+1],21,-2054922799),p=S(p,l,h,v,c[g+8],6,1873313359),v=S(v,p,l,h,c[g+15],10,-30611744),h=S(h,v,p,l,c[g+6],15,-1560198380),l=S(l,h,v,p,c[g+13],21,1309151649),p=S(p,l,h,v,c[g+4],6,-145523070),v=S(v,p,l,h,c[g+11],10,-1120210379),h=S(h,v,p,l,c[g+2],15,718787259),l=S(l,h,v,p,c[g+9],21,-343485551),p=p+x>>>0,l=l+I>>>0,h=h+E>>>0,v=v+C>>>0}return e.endian([p,l,h,v])})._ff=function(s,f,c,d,p,l,h){var v=s+(f&c|~f&d)+(p>>>0)+h;return(v<<l|v>>>32-l)+f},a._gg=function(s,f,c,d,p,l,h){var v=s+(f&d|c&~d)+(p>>>0)+h;return(v<<l|v>>>32-l)+f},a._hh=function(s,f,c,d,p,l,h){var v=s+(f^c^d)+(p>>>0)+h;return(v<<l|v>>>32-l)+f},a._ii=function(s,f,c,d,p,l,h){var v=s+(c^(f|~d))+(p>>>0)+h;return(v<<l|v>>>32-l)+f},a._blocksize=16,a._digestsize=16,o.exports=function(s,f){if(s==null)throw new Error("Illegal argument "+s);var c=e.wordsToBytes(a(s,f));return f&&f.asBytes?c:f&&f.asString?i.bytesToString(c):e.bytesToHex(c)}},function(o,u,t){var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!e.call({1:2},1);u.f=n?function(i){var a=r(this,i);return!!a&&a.enumerable}:e},function(o,u,t){var e=t(0),r=t(11),n=t(7),i=t(40),a=t(29),s=t(129),f=t(5),c=e.TypeError,d=f("toPrimitive");o.exports=function(p,l){if(!n(p)||i(p))return p;var h,v=a(p,d);if(v){if(l===void 0&&(l="default"),h=r(v,p,l),!n(h)||i(h))return h;throw c("Can't convert object to primitive value")}return l===void 0&&(l="number"),s(p,l)}},function(o,u,t){var e=t(56);o.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(o,u,t){var e=t(6),r=t(2),n=t(45);o.exports=!e&&!r(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!=7})},function(o,u,t){var e=t(6),r=t(2);o.exports=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},function(o,u,t){var e=t(8),r=t(131),n=t(26),i=t(9);o.exports=function(a,s,f){for(var c=r(s),d=i.f,p=n.f,l=0;l<c.length;l++){var h=c[l];e(a,h)||f&&e(f,h)||d(a,h,p(s,h))}}},function(o,u,t){var e=t(1),r=t(8),n=t(14),i=t(90).indexOf,a=t(30),s=e([].push);o.exports=function(f,c){var d,p=n(f),l=0,h=[];for(d in p)!r(a,d)&&r(p,d)&&s(h,d);for(;c.length>l;)r(p,d=c[l++])&&(~i(h,d)||s(h,d));return h}},function(o,u,t){var e=t(14),r=t(60),n=t(32),i=function(a){return function(s,f,c){var d,p=e(s),l=n(p),h=r(c,l);if(a&&f!=f){for(;l>h;)if((d=p[h++])!=d)return!0}else for(;l>h;h++)if((a||h in p)&&p[h]===f)return a||h||0;return!a&&-1}};o.exports={includes:i(!0),indexOf:i(!1)}},function(o,u){u.f=Object.getOwnPropertySymbols},function(o,u,t){var e=t(1),r=t(12),n=Date.prototype,i=e(n.toString),a=e(n.getTime);String(new Date(NaN))!="Invalid Date"&&r(n,"toString",function(){var s=a(this);return s==s?i(this):"Invalid Date"})},function(o,u,t){var e=t(94).forEach,r=t(66)("forEach");o.exports=r?[].forEach:function(n){return e(this,n,arguments.length>1?arguments[1]:void 0)}},function(o,u,t){var e=t(34),r=t(1),n=t(55),i=t(21),a=t(32),s=t(132),f=r([].push),c=function(d){var p=d==1,l=d==2,h=d==3,v=d==4,g=d==6,y=d==7,b=d==5||g;return function(m,S,x,I){for(var E,C,k=i(m),A=n(k),U=e(S,x),V=a(A),F=0,z=I||s,B=p?z(m,V):l||y?z(m,0):void 0;V>F;F++)if((b||F in A)&&(C=U(E=A[F],F,k),d))if(p)B[F]=C;else if(C)switch(d){case 3:return!0;case 5:return E;case 6:return F;case 2:f(B,E)}else switch(d){case 4:return!1;case 7:f(B,E)}return g?-1:h||v?v:B}};o.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(o,u){o.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(o,u,t){var e=t(45)("span").classList,r=e&&e.constructor&&e.constructor.prototype;o.exports=r===Object.prototype?void 0:r},function(o,u,t){var e=t(12);o.exports=function(r,n,i){for(var a in n)e(r,a,n[a],i);return r}},function(o,u,t){var e=t(50),r=t(29),n=t(37),i=t(5)("iterator");o.exports=function(a){if(a!=null)return r(a,i)||r(a,"@@iterator")||n[e(a)]}},function(o,u,t){var e=t(5)("iterator"),r=!1;try{var n=0,i={next:function(){return{done:!!n++}},return:function(){r=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch(a){}o.exports=function(a,s){if(!s&&!r)return!1;var f=!1;try{var c={};c[e]=function(){return{next:function(){return{done:f=!0}}}},a(c)}catch(d){}return f}},function(o,u,t){var e=t(10),r=t(101),n=t(5)("species");o.exports=function(i,a){var s,f=e(i).constructor;return f===void 0||(s=e(f)[n])==null?a:r(s)}},function(o,u,t){var e=t(0),r=t(64),n=t(42),i=e.TypeError;o.exports=function(a){if(r(a))return a;throw i(n(a)+" is not a constructor")}},function(o,u,t){var e,r,n,i,a=t(0),s=t(38),f=t(34),c=t(4),d=t(8),p=t(2),l=t(103),h=t(52),v=t(45),g=t(142),y=t(104),b=t(72),m=a.setImmediate,S=a.clearImmediate,x=a.process,I=a.Dispatch,E=a.Function,C=a.MessageChannel,k=a.String,A=0,U={};try{e=a.location}catch(j){}var V=function(j){if(d(U,j)){var P=U[j];delete U[j],P()}},F=function(j){return function(){V(j)}},z=function(j){V(j.data)},B=function(j){a.postMessage(k(j),e.protocol+"//"+e.host)};m&&S||(m=function(j){g(arguments.length,1);var P=c(j)?j:E(j),D=h(arguments,1);return U[++A]=function(){s(P,void 0,D)},r(A),A},S=function(j){delete U[j]},b?r=function(j){x.nextTick(F(j))}:I&&I.now?r=function(j){I.now(F(j))}:C&&!y?(i=(n=new C).port2,n.port1.onmessage=z,r=f(i.postMessage,i)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&e&&e.protocol!=="file:"&&!p(B)?(r=B,a.addEventListener("message",z,!1)):r="onreadystatechange"in v("script")?function(j){l.appendChild(v("script")).onreadystatechange=function(){l.removeChild(this),V(j)}}:function(j){setTimeout(F(j),0)}),o.exports={set:m,clear:S}},function(o,u,t){var e=t(15);o.exports=e("document","documentElement")},function(o,u,t){var e=t(41);o.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},function(o,u,t){var e=t(23),r=function(n){var i,a;this.promise=new n(function(s,f){if(i!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");i=s,a=f}),this.resolve=e(i),this.reject=e(a)};o.exports.f=function(n){return new r(n)}},function(o,u,t){var e=t(6),r=t(87),n=t(9),i=t(10),a=t(14),s=t(68);u.f=e&&!r?Object.defineProperties:function(f,c){i(f);for(var d,p=a(c),l=s(c),h=l.length,v=0;h>v;)n.f(f,d=l[v++],p[d]);return f}},function(o,u,t){var e=t(2),r=t(0).RegExp;o.exports=e(function(){var n=r(".","s");return!(n.dotAll&&n.exec(`
|
|
14
|
+
`)&&n.flags==="s")})},function(o,u,t){var e=t(2),r=t(0).RegExp;o.exports=e(function(){var n=r("(?<a>b)","g");return n.exec("b").groups.a!=="b"||"b".replace(n,"$<a>c")!=="bc"})},function(o,u,t){t(53);var e=t(1),r=t(12),n=t(54),i=t(2),a=t(5),s=t(18),f=a("species"),c=RegExp.prototype;o.exports=function(d,p,l,h){var v=a(d),g=!i(function(){var S={};return S[v]=function(){return 7},""[d](S)!=7}),y=g&&!i(function(){var S=!1,x=/a/;return d==="split"&&((x={}).constructor={},x.constructor[f]=function(){return x},x.flags="",x[v]=/./[v]),x.exec=function(){return S=!0,null},x[v](""),!S});if(!g||!y||l){var b=e(/./[v]),m=p(v,""[d],function(S,x,I,E,C){var k=e(S),A=x.exec;return A===n||A===c.exec?g&&!C?{done:!0,value:b(x,I,E)}:{done:!0,value:k(I,x,E)}:{done:!1}});r(String.prototype,d,m[0]),r(c,v,m[1])}h&&s(c[v],"sham",!0)}},function(o,u,t){var e=t(7),r=t(16),n=t(5)("match");o.exports=function(i){var a;return e(i)&&((a=i[n])!==void 0?!!a:r(i)=="RegExp")}},function(o,u,t){var e=t(112).charAt;o.exports=function(r,n,i){return n+(i?e(r,n).length:1)}},function(o,u,t){var e=t(1),r=t(48),n=t(13),i=t(22),a=e("".charAt),s=e("".charCodeAt),f=e("".slice),c=function(d){return function(p,l){var h,v,g=n(i(p)),y=r(l),b=g.length;return y<0||y>=b?d?"":void 0:(h=s(g,y))<55296||h>56319||y+1===b||(v=s(g,y+1))<56320||v>57343?d?a(g,y):h:d?f(g,y,y+2):v-56320+(h-55296<<10)+65536}};o.exports={codeAt:c(!1),charAt:c(!0)}},function(o,u,t){var e=t(0),r=t(60),n=t(32),i=t(114),a=e.Array,s=Math.max;o.exports=function(f,c,d){for(var p=n(f),l=r(c,p),h=r(d===void 0?p:d,p),v=a(s(h-l,0)),g=0;l<h;l++,g++)i(v,g,f[l]);return v.length=g,v}},function(o,u,t){var e=t(39),r=t(9),n=t(28);o.exports=function(i,a,s){var f=e(a);f in i?r.f(i,f,n(0,s)):i[f]=s}},function(o,u,t){var e=t(0),r=t(11),n=t(10),i=t(4),a=t(16),s=t(54),f=e.TypeError;o.exports=function(c,d){var p=c.exec;if(i(p)){var l=r(p,c,d);return l!==null&&n(l),l}if(a(c)==="RegExp")return r(s,c,d);throw f("RegExp#exec called on incompatible receiver")}},function(o,u,t){var e=t(3),r=t(1),n=t(90).indexOf,i=t(66),a=r([].indexOf),s=!!a&&1/a([1],1,-0)<0,f=i("indexOf");e({target:"Array",proto:!0,forced:s||!f},{indexOf:function(c){var d=arguments.length>1?arguments[1]:void 0;return s?a(this,c,d)||0:n(this,c,d)}})},function(o,u,t){var e=t(1),r=t(31).PROPER,n=t(12),i=t(10),a=t(17),s=t(13),f=t(2),c=t(75),d=RegExp.prototype,p=d.toString,l=e(c),h=f(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),v=r&&p.name!="toString";(h||v)&&n(RegExp.prototype,"toString",function(){var g=i(this),y=s(g.source),b=g.flags;return"/"+y+"/"+s(b===void 0&&a(d,g)&&!("flags"in d)?l(g):b)},{unsafe:!0})},function(o,u,t){var e=t(2);o.exports=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},function(o,u,t){var e=t(0),r=t(1),n=t(23),i=t(7),a=t(8),s=t(52),f=t(27),c=e.Function,d=r([].concat),p=r([].join),l={},h=function(v,g,y){if(!a(l,g)){for(var b=[],m=0;m<g;m++)b[m]="a["+m+"]";l[g]=c("C,a","return new C("+p(b,",")+")")}return l[g](v,y)};o.exports=f?c.bind:function(v){var g=n(this),y=g.prototype,b=s(arguments,1),m=function(){var S=d(b,s(arguments));return this instanceof m?h(g,S.length,S):g.apply(v,S)};return i(y)&&(m.prototype=y),m}},function(o,u,t){var e=t(14),r=t(165),n=t(37),i=t(19),a=t(9).f,s=t(81),f=t(24),c=t(6),d=i.set,p=i.getterFor("Array Iterator");o.exports=s(Array,"Array",function(h,v){d(this,{type:"Array Iterator",target:e(h),index:0,kind:v})},function(){var h=p(this),v=h.target,g=h.kind,y=h.index++;return!v||y>=v.length?(h.target=void 0,{value:void 0,done:!0}):g=="keys"?{value:y,done:!1}:g=="values"?{value:v[y],done:!1}:{value:[y,v[y]],done:!1}},"values");var l=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!f&&c&&l.name!=="values")try{a(l,"name",{value:"values"})}catch(h){}},function(o,u,t){var e,r,n,i=t(2),a=t(4),s=t(20),f=t(80),c=t(12),d=t(5),p=t(24),l=d("iterator"),h=!1;[].keys&&("next"in(n=[].keys())?(r=f(f(n)))!==Object.prototype&&(e=r):h=!0),e==null||i(function(){var v={};return e[l].call(v)!==v})?e={}:p&&(e=s(e)),a(e[l])||c(e,l,function(){return this}),o.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}},function(o,u,t){var e=t(3),r=t(1),n=t(30),i=t(7),a=t(8),s=t(9).f,f=t(25),c=t(123),d=t(169),p=t(44),l=t(171),h=!1,v=p("meta"),g=0,y=function(m){s(m,v,{value:{objectID:"O"+g++,weakData:{}}})},b=o.exports={enable:function(){b.enable=function(){},h=!0;var m=f.f,S=r([].splice),x={};x[v]=1,m(x).length&&(f.f=function(I){for(var E=m(I),C=0,k=E.length;C<k;C++)if(E[C]===v){S(E,C,1);break}return E},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(m,S){if(!i(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!a(m,v)){if(!d(m))return"F";if(!S)return"E";y(m)}return m[v].objectID},getWeakData:function(m,S){if(!a(m,v)){if(!d(m))return!0;if(!S)return!1;y(m)}return m[v].weakData},onFreeze:function(m){return l&&h&&d(m)&&!a(m,v)&&y(m),m}};n[v]=!0},function(o,u,t){var e=t(16),r=t(14),n=t(25).f,i=t(113),a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(s){return a&&e(s)=="Window"?function(f){try{return n(f)}catch(c){return i(a)}}(s):n(r(s))}},function(o,u,t){var e=t(5);u.f=e},function(o,u,t){var e=t(177),r=t(8),n=t(124),i=t(9).f;o.exports=function(a){var s=e.Symbol||(e.Symbol={});r(s,a)||i(s,a,{value:n.f(a)})}},function(o,u){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var r=[],n=0;n<e.length;n++)r.push(255&e.charCodeAt(n));return r},bytesToString:function(e){for(var r=[],n=0;n<e.length;n++)r.push(String.fromCharCode(e[n]));return r.join("")}}};o.exports=t},function(o,u,t){var e=t(3),r=t(0),n=t(1),i=r.Date,a=n(i.prototype.getTime);e({target:"Date",stat:!0},{now:function(){return a(new i)}})},function(o,u){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(e){typeof window=="object"&&(t=window)}o.exports=t},function(o,u,t){var e=t(0),r=t(11),n=t(4),i=t(7),a=e.TypeError;o.exports=function(s,f){var c,d;if(f==="string"&&n(c=s.toString)&&!i(d=r(c,s))||n(c=s.valueOf)&&!i(d=r(c,s))||f!=="string"&&n(c=s.toString)&&!i(d=r(c,s)))return d;throw a("Can't convert object to primitive value")}},function(o,u,t){var e=t(0),r=t(4),n=t(46),i=e.WeakMap;o.exports=r(i)&&/native code/.test(n(i))},function(o,u,t){var e=t(15),r=t(1),n=t(25),i=t(91),a=t(10),s=r([].concat);o.exports=e("Reflect","ownKeys")||function(f){var c=n.f(a(f)),d=i.f;return d?s(c,d(f)):c}},function(o,u,t){var e=t(133);o.exports=function(r,n){return new(e(r))(n===0?0:n)}},function(o,u,t){var e=t(0),r=t(49),n=t(64),i=t(7),a=t(5)("species"),s=e.Array;o.exports=function(f){var c;return r(f)&&(c=f.constructor,(n(c)&&(c===s||r(c.prototype))||i(c)&&(c=c[a])===null)&&(c=void 0)),c===void 0?s:c}},function(o,u,t){var e=t(65),r=t(50);o.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}},function(o,u,t){var e=t(3),r=t(21),n=t(68);e({target:"Object",stat:!0,forced:t(2)(function(){n(1)})},{keys:function(i){return n(r(i))}})},function(o,u,t){var e,r,n,i,a=t(3),s=t(24),f=t(0),c=t(15),d=t(11),p=t(137),l=t(12),h=t(97),v=t(51),g=t(36),y=t(69),b=t(23),m=t(4),S=t(7),x=t(70),I=t(46),E=t(71),C=t(99),k=t(100),A=t(102).set,U=t(143),V=t(146),F=t(147),z=t(105),B=t(148),j=t(149),P=t(19),D=t(33),G=t(5),Z=t(150),et=t(72),rt=t(57),tt=G("species"),Y="Promise",ht=P.getterFor(Y),dt=P.set,wt=P.getterFor(Y),bt=p&&p.prototype,st=p,lt=bt,Ot=f.TypeError,Et=f.document,Ct=f.process,gt=z.f,vt=gt,_t=!!(Et&&Et.createEvent&&f.dispatchEvent),q=m(f.PromiseRejectionEvent),ut=!1,T=D(Y,function(){var R=I(st),H=R!==String(st);if(!H&&rt===66||s&&!lt.finally)return!0;if(rt>=51&&/native code/.test(R))return!1;var W=new st(function(it){it(1)}),J=function(it){it(function(){},function(){})};return(W.constructor={})[tt]=J,!(ut=W.then(function(){})instanceof J)||!H&&Z&&!q}),w=T||!C(function(R){st.all(R).catch(function(){})}),O=function(R){var H;return!(!S(R)||!m(H=R.then))&&H},M=function(R,H){var W,J,it,kt=H.value,Rt=H.state==1,Lt=Rt?R.ok:R.fail,Bt=R.resolve,nt=R.reject,ft=R.domain;try{Lt?(Rt||(H.rejection===2&&Q(H),H.rejection=1),Lt===!0?W=kt:(ft&&ft.enter(),W=Lt(kt),ft&&(ft.exit(),it=!0)),W===R.promise?nt(Ot("Promise-chain cycle")):(J=O(W))?d(J,W,Bt,nt):Bt(W)):nt(kt)}catch(mt){ft&&!it&&ft.exit(),nt(mt)}},_=function(R,H){R.notified||(R.notified=!0,U(function(){for(var W,J=R.reactions;W=J.get();)M(W,R);R.notified=!1,H&&!R.rejection&&L(R)}))},$=function(R,H,W){var J,it;_t?((J=Et.createEvent("Event")).promise=H,J.reason=W,J.initEvent(R,!1,!0),f.dispatchEvent(J)):J={promise:H,reason:W},!q&&(it=f["on"+R])?it(J):R==="unhandledrejection"&&F("Unhandled promise rejection",W)},L=function(R){d(A,f,function(){var H,W=R.facade,J=R.value;if(K(R)&&(H=B(function(){et?Ct.emit("unhandledRejection",J,W):$("unhandledrejection",W,J)}),R.rejection=et||K(R)?2:1,H.error))throw H.value})},K=function(R){return R.rejection!==1&&!R.parent},Q=function(R){d(A,f,function(){var H=R.facade;et?Ct.emit("rejectionHandled",H):$("rejectionhandled",H,R.value)})},X=function(R,H,W){return function(J){R(H,J,W)}},N=function(R,H,W){R.done||(R.done=!0,W&&(R=W),R.value=H,R.state=2,_(R,!0))},at=function(R,H,W){if(!R.done){R.done=!0,W&&(R=W);try{if(R.facade===H)throw Ot("Promise can't be resolved itself");var J=O(H);J?U(function(){var it={done:!1};try{d(J,H,X(at,it,R),X(N,it,R))}catch(kt){N(it,kt,R)}}):(R.value=H,R.state=1,_(R,!1))}catch(it){N({done:!1},it,R)}}};if(T&&(lt=(st=function(R){x(this,lt),b(R),d(e,this);var H=ht(this);try{R(X(at,H),X(N,H))}catch(W){N(H,W)}}).prototype,(e=function(R){dt(this,{type:Y,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:0,value:void 0})}).prototype=h(lt,{then:function(R,H){var W=wt(this),J=gt(k(this,st));return W.parent=!0,J.ok=!m(R)||R,J.fail=m(H)&&H,J.domain=et?Ct.domain:void 0,W.state==0?W.reactions.add(J):U(function(){M(J,W)}),J.promise},catch:function(R){return this.then(void 0,R)}}),r=function(){var R=new e,H=ht(R);this.promise=R,this.resolve=X(at,H),this.reject=X(N,H)},z.f=gt=function(R){return R===st||R===n?new r(R):vt(R)},!s&&m(p)&&bt!==Object.prototype)){i=bt.then,ut||(l(bt,"then",function(R,H){var W=this;return new st(function(J,it){d(i,W,J,it)}).then(R,H)},{unsafe:!0}),l(bt,"catch",lt.catch,{unsafe:!0}));try{delete bt.constructor}catch(R){}v&&v(bt,lt)}a({global:!0,wrap:!0,forced:T},{Promise:st}),g(st,Y,!1,!0),y(Y),n=c(Y),a({target:Y,stat:!0,forced:T},{reject:function(R){var H=gt(this);return d(H.reject,void 0,R),H.promise}}),a({target:Y,stat:!0,forced:s||T},{resolve:function(R){return V(s&&this===n?st:this,R)}}),a({target:Y,stat:!0,forced:w},{all:function(R){var H=this,W=gt(H),J=W.resolve,it=W.reject,kt=B(function(){var Rt=b(H.resolve),Lt=[],Bt=0,nt=1;E(R,function(ft){var mt=Bt++,xt=!1;nt++,d(Rt,H,ft).then(function(At){xt||(xt=!0,Lt[mt]=At,--nt||J(Lt))},it)}),--nt||J(Lt)});return kt.error&&it(kt.value),W.promise},race:function(R){var H=this,W=gt(H),J=W.reject,it=B(function(){var kt=b(H.resolve);E(R,function(Rt){d(kt,H,Rt).then(W.resolve,J)})});return it.error&&J(it.value),W.promise}})},function(o,u,t){var e=t(0);o.exports=e.Promise},function(o,u,t){var e=t(0),r=t(4),n=e.String,i=e.TypeError;o.exports=function(a){if(typeof a=="object"||r(a))return a;throw i("Can't set "+n(a)+" as a prototype")}},function(o,u,t){var e=t(5),r=t(37),n=e("iterator"),i=Array.prototype;o.exports=function(a){return a!==void 0&&(r.Array===a||i[n]===a)}},function(o,u,t){var e=t(0),r=t(11),n=t(23),i=t(10),a=t(42),s=t(98),f=e.TypeError;o.exports=function(c,d){var p=arguments.length<2?s(c):d;if(n(p))return i(r(p,c));throw f(a(c)+" is not iterable")}},function(o,u,t){var e=t(11),r=t(10),n=t(29);o.exports=function(i,a,s){var f,c;r(i);try{if(!(f=n(i,"return"))){if(a==="throw")throw s;return s}f=e(f,i)}catch(d){c=!0,f=d}if(a==="throw")throw s;if(c)throw f;return r(f),s}},function(o,u,t){var e=t(0).TypeError;o.exports=function(r,n){if(r<n)throw e("Not enough arguments");return r}},function(o,u,t){var e,r,n,i,a,s,f,c,d=t(0),p=t(34),l=t(26).f,h=t(102).set,v=t(104),g=t(144),y=t(145),b=t(72),m=d.MutationObserver||d.WebKitMutationObserver,S=d.document,x=d.process,I=d.Promise,E=l(d,"queueMicrotask"),C=E&&E.value;C||(e=function(){var k,A;for(b&&(k=x.domain)&&k.exit();r;){A=r.fn,r=r.next;try{A()}catch(U){throw r?i():n=void 0,U}}n=void 0,k&&k.enter()},v||b||y||!m||!S?!g&&I&&I.resolve?((f=I.resolve(void 0)).constructor=I,c=p(f.then,f),i=function(){c(e)}):b?i=function(){x.nextTick(e)}:(h=p(h,d),i=function(){h(e)}):(a=!0,s=S.createTextNode(""),new m(e).observe(s,{characterData:!0}),i=function(){s.data=a=!a})),o.exports=C||function(k){var A={fn:k,next:void 0};n&&(n.next=A),r||(r=A,i()),n=A}},function(o,u,t){var e=t(41),r=t(0);o.exports=/ipad|iphone|ipod/i.test(e)&&r.Pebble!==void 0},function(o,u,t){var e=t(41);o.exports=/web0s(?!.*chrome)/i.test(e)},function(o,u,t){var e=t(10),r=t(7),n=t(105);o.exports=function(i,a){if(e(i),r(a)&&a.constructor===i)return a;var s=n.f(i);return(0,s.resolve)(a),s.promise}},function(o,u,t){var e=t(0);o.exports=function(r,n){var i=e.console;i&&i.error&&(arguments.length==1?i.error(r):i.error(r,n))}},function(o,u){o.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},function(o,u){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var r={item:e,next:null};this.head?this.tail.next=r:this.head=r,this.tail=r},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},o.exports=t},function(o,u){o.exports=typeof window=="object"},function(o,u,t){var e=t(38),r=t(11),n=t(1),i=t(109),a=t(110),s=t(10),f=t(22),c=t(100),d=t(111),p=t(61),l=t(13),h=t(29),v=t(113),g=t(115),y=t(54),b=t(76),m=t(2),S=b.UNSUPPORTED_Y,x=Math.min,I=[].push,E=n(/./.exec),C=n(I),k=n("".slice);i("split",function(A,U,V){var F;return F="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(z,B){var j=l(f(this)),P=B===void 0?4294967295:B>>>0;if(P===0)return[];if(z===void 0)return[j];if(!a(z))return r(U,j,z,P);for(var D,G,Z,et=[],rt=(z.ignoreCase?"i":"")+(z.multiline?"m":"")+(z.unicode?"u":"")+(z.sticky?"y":""),tt=0,Y=new RegExp(z.source,rt+"g");(D=r(y,Y,j))&&!((G=Y.lastIndex)>tt&&(C(et,k(j,tt,D.index)),D.length>1&&D.index<j.length&&e(I,et,v(D,1)),Z=D[0].length,tt=G,et.length>=P));)Y.lastIndex===D.index&&Y.lastIndex++;return tt===j.length?!Z&&E(Y,"")||C(et,""):C(et,k(j,tt)),et.length>P?v(et,0,P):et}:"0".split(void 0,0).length?function(z,B){return z===void 0&&B===0?[]:r(U,this,z,B)}:U,[function(z,B){var j=f(this),P=z==null?void 0:h(z,A);return P?r(P,z,j,B):r(F,l(j),z,B)},function(z,B){var j=s(this),P=l(z),D=V(F,j,P,B,F!==U);if(D.done)return D.value;var G=c(j,RegExp),Z=j.unicode,et=(j.ignoreCase?"i":"")+(j.multiline?"m":"")+(j.unicode?"u":"")+(S?"g":"y"),rt=new G(S?"^(?:"+j.source+")":j,et),tt=B===void 0?4294967295:B>>>0;if(tt===0)return[];if(P.length===0)return g(rt,P)===null?[P]:[];for(var Y=0,ht=0,dt=[];ht<P.length;){rt.lastIndex=S?0:ht;var wt,bt=g(rt,S?k(P,ht):P);if(bt===null||(wt=x(p(rt.lastIndex+(S?ht:0)),P.length))===Y)ht=d(P,ht,Z);else{if(C(dt,k(P,Y,ht)),dt.length===tt)return dt;for(var st=1;st<=bt.length-1;st++)if(C(dt,bt[st]),dt.length===tt)return dt;ht=Y=wt}}return C(dt,k(P,Y)),dt}]},!!m(function(){var A=/(?:)/,U=A.exec;A.exec=function(){return U.apply(this,arguments)};var V="ab".split(A);return V.length!==2||V[0]!=="a"||V[1]!=="b"}),S)},function(o,u,t){var e=t(3),r=t(0),n=t(49),i=t(64),a=t(7),s=t(60),f=t(32),c=t(14),d=t(114),p=t(5),l=t(153),h=t(52),v=l("slice"),g=p("species"),y=r.Array,b=Math.max;e({target:"Array",proto:!0,forced:!v},{slice:function(m,S){var x,I,E,C=c(this),k=f(C),A=s(m,k),U=s(S===void 0?k:S,k);if(n(C)&&(x=C.constructor,(i(x)&&(x===y||n(x.prototype))||a(x)&&(x=x[g])===null)&&(x=void 0),x===y||x===void 0))return h(C,A,U);for(I=new(x===void 0?y:x)(b(U-A,0)),E=0;A<U;A++,E++)A in C&&d(I,E,C[A]);return I.length=E,I}})},function(o,u,t){var e=t(2),r=t(5),n=t(57),i=r("species");o.exports=function(a){return n>=51||!e(function(){var s=[];return(s.constructor={})[i]=function(){return{foo:1}},s[a](Boolean).foo!==1})}},function(o,u,t){var e=t(3),r=t(1),n=t(55),i=t(14),a=t(66),s=r([].join),f=n!=Object,c=a("join",",");e({target:"Array",proto:!0,forced:f||!c},{join:function(d){return s(i(this),d===void 0?",":d)}})},function(o,u,t){var e=t(38),r=t(11),n=t(1),i=t(109),a=t(2),s=t(10),f=t(4),c=t(48),d=t(61),p=t(13),l=t(22),h=t(111),v=t(29),g=t(156),y=t(115),b=t(5)("replace"),m=Math.max,S=Math.min,x=n([].concat),I=n([].push),E=n("".indexOf),C=n("".slice),k="a".replace(/./,"$0")==="$0",A=!!/./[b]&&/./[b]("a","$0")==="";i("replace",function(U,V,F){var z=A?"$":"$0";return[function(B,j){var P=l(this),D=B==null?void 0:v(B,b);return D?r(D,B,P,j):r(V,p(P),B,j)},function(B,j){var P=s(this),D=p(B);if(typeof j=="string"&&E(j,z)===-1&&E(j,"$<")===-1){var G=F(V,P,D,j);if(G.done)return G.value}var Z=f(j);Z||(j=p(j));var et=P.global;if(et){var rt=P.unicode;P.lastIndex=0}for(var tt=[];;){var Y=y(P,D);if(Y===null||(I(tt,Y),!et))break;p(Y[0])===""&&(P.lastIndex=h(D,d(P.lastIndex),rt))}for(var ht,dt="",wt=0,bt=0;bt<tt.length;bt++){for(var st=p((Y=tt[bt])[0]),lt=m(S(c(Y.index),D.length),0),Ot=[],Et=1;Et<Y.length;Et++)I(Ot,(ht=Y[Et])===void 0?ht:String(ht));var Ct=Y.groups;if(Z){var gt=x([st],Ot,lt,D);Ct!==void 0&&I(gt,Ct);var vt=p(e(j,void 0,gt))}else vt=g(st,D,lt,Ot,Ct,j);lt>=wt&&(dt+=C(D,wt,lt)+vt,wt=lt+st.length)}return dt+C(D,wt)}]},!!a(function(){var U=/./;return U.exec=function(){var V=[];return V.groups={a:"7"},V},"".replace(U,"$<a>")!=="7"})||!k||A)},function(o,u,t){var e=t(1),r=t(21),n=Math.floor,i=e("".charAt),a=e("".replace),s=e("".slice),f=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;o.exports=function(d,p,l,h,v,g){var y=l+d.length,b=h.length,m=c;return v!==void 0&&(v=r(v),m=f),a(g,m,function(S,x){var I;switch(i(x,0)){case"$":return"$";case"&":return d;case"`":return s(p,0,l);case"'":return s(p,y);case"<":I=v[s(x,1,-1)];break;default:var E=+x;if(E===0)return S;if(E>b){var C=n(E/10);return C===0?S:C<=b?h[C-1]===void 0?i(x,1):h[C-1]+i(x,1):S}I=h[E-1]}return I===void 0?"":I})}},function(o,u,t){var e=t(3),r=t(158);e({global:!0,forced:parseInt!=r},{parseInt:r})},function(o,u,t){var e=t(0),r=t(2),n=t(1),i=t(13),a=t(77).trim,s=t(78),f=e.parseInt,c=e.Symbol,d=c&&c.iterator,p=/^[+-]?0x/i,l=n(p.exec),h=f(s+"08")!==8||f(s+"0x16")!==22||d&&!r(function(){f(Object(d))});o.exports=h?function(v,g){var y=a(i(v));return f(y,g>>>0||(l(p,y)?16:10))}:f},function(o,u,t){var e=t(6),r=t(0),n=t(1),i=t(33),a=t(79),s=t(18),f=t(9).f,c=t(25).f,d=t(17),p=t(110),l=t(13),h=t(75),v=t(76),g=t(12),y=t(2),b=t(8),m=t(19).enforce,S=t(69),x=t(5),I=t(107),E=t(108),C=x("match"),k=r.RegExp,A=k.prototype,U=r.SyntaxError,V=n(h),F=n(A.exec),z=n("".charAt),B=n("".replace),j=n("".indexOf),P=n("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,G=/a/g,Z=/a/g,et=new k(G)!==G,rt=v.MISSED_STICKY,tt=v.UNSUPPORTED_Y,Y=e&&(!et||rt||I||E||y(function(){return Z[C]=!1,k(G)!=G||k(Z)==Z||k(G,"i")!="/a/i"}));if(i("RegExp",Y)){for(var ht=function(st,lt){var Ot,Et,Ct,gt,vt,_t,q=d(A,this),ut=p(st),T=lt===void 0,w=[],O=st;if(!q&&ut&&T&&st.constructor===ht)return st;if((ut||d(A,st))&&(st=st.source,T&&(lt="flags"in O?O.flags:V(O))),st=st===void 0?"":l(st),lt=lt===void 0?"":l(lt),O=st,I&&"dotAll"in G&&(Et=!!lt&&j(lt,"s")>-1)&&(lt=B(lt,/s/g,"")),Ot=lt,rt&&"sticky"in G&&(Ct=!!lt&&j(lt,"y")>-1)&&tt&&(lt=B(lt,/y/g,"")),E&&(st=(gt=function(M){for(var _,$=M.length,L=0,K="",Q=[],X={},N=!1,at=!1,R=0,H="";L<=$;L++){if((_=z(M,L))==="\\")_+=z(M,++L);else if(_==="]")N=!1;else if(!N)switch(!0){case _==="[":N=!0;break;case _==="(":F(D,P(M,L+1))&&(L+=2,at=!0),K+=_,R++;continue;case(_===">"&&at):if(H===""||b(X,H))throw new U("Invalid capture group name");X[H]=!0,Q[Q.length]=[H,R],at=!1,H="";continue}at?H+=_:K+=_}return[K,Q]}(st))[0],w=gt[1]),vt=a(k(st,lt),q?this:A,ht),(Et||Ct||w.length)&&(_t=m(vt),Et&&(_t.dotAll=!0,_t.raw=ht(function(M){for(var _,$=M.length,L=0,K="",Q=!1;L<=$;L++)(_=z(M,L))!=="\\"?Q||_!=="."?(_==="["?Q=!0:_==="]"&&(Q=!1),K+=_):K+="[\\s\\S]":K+=_+z(M,++L);return K}(st),Ot)),Ct&&(_t.sticky=!0),w.length&&(_t.groups=w)),st!==O)try{s(vt,"source",O===""?"(?:)":O)}catch(M){}return vt},dt=function(st){st in ht||f(ht,st,{configurable:!0,get:function(){return k[st]},set:function(lt){k[st]=lt}})},wt=c(k),bt=0;wt.length>bt;)dt(wt[bt++]);A.constructor=ht,ht.prototype=A,g(r,"RegExp",ht)}S("RegExp")},function(o,u,t){var e=t(6),r=t(31).EXISTS,n=t(1),i=t(9).f,a=Function.prototype,s=n(a.toString),f=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=n(f.exec);e&&!r&&i(a,"name",{configurable:!0,get:function(){try{return c(f,s(this))[1]}catch(d){return""}}})},function(o,u,t){t(3)({target:"Object",stat:!0},{setPrototypeOf:t(51)})},function(o,u,t){var e=t(3),r=t(2),n=t(21),i=t(80),a=t(118);e({target:"Object",stat:!0,forced:r(function(){i(1)}),sham:!a},{getPrototypeOf:function(s){return i(n(s))}})},function(o,u,t){var e=t(3),r=t(15),n=t(38),i=t(119),a=t(101),s=t(10),f=t(7),c=t(20),d=t(2),p=r("Reflect","construct"),l=Object.prototype,h=[].push,v=d(function(){function b(){}return!(p(function(){},[],b)instanceof b)}),g=!d(function(){p(function(){})}),y=v||g;e({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(b,m){a(b),s(m);var S=arguments.length<3?b:a(arguments[2]);if(g&&!v)return p(b,m,S);if(b==S){switch(m.length){case 0:return new b;case 1:return new b(m[0]);case 2:return new b(m[0],m[1]);case 3:return new b(m[0],m[1],m[2]);case 4:return new b(m[0],m[1],m[2],m[3])}var x=[null];return n(h,x,m),new(n(i,b,x))}var I=S.prototype,E=c(f(I)?I:l),C=n(b,E,m);return f(C)?C:E}})},function(o,u,t){var e=t(3),r=t(119);e({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},function(o,u,t){var e=t(5),r=t(20),n=t(9),i=e("unscopables"),a=Array.prototype;a[i]==null&&n.f(a,i,{configurable:!0,value:r(null)}),o.exports=function(s){a[i][s]=!0}},function(o,u,t){var e=t(121).IteratorPrototype,r=t(20),n=t(28),i=t(36),a=t(37),s=function(){return this};o.exports=function(f,c,d,p){var l=c+" Iterator";return f.prototype=r(e,{next:n(+!p,d)}),i(f,l,!1,!0),a[l]=s,f}},function(o,u,t){t(168)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},t(172))},function(o,u,t){var e=t(3),r=t(0),n=t(1),i=t(33),a=t(12),s=t(122),f=t(71),c=t(70),d=t(4),p=t(7),l=t(2),h=t(99),v=t(36),g=t(79);o.exports=function(y,b,m){var S=y.indexOf("Map")!==-1,x=y.indexOf("Weak")!==-1,I=S?"set":"add",E=r[y],C=E&&E.prototype,k=E,A={},U=function(P){var D=n(C[P]);a(C,P,P=="add"?function(G){return D(this,G===0?0:G),this}:P=="delete"?function(G){return!(x&&!p(G))&&D(this,G===0?0:G)}:P=="get"?function(G){return x&&!p(G)?void 0:D(this,G===0?0:G)}:P=="has"?function(G){return!(x&&!p(G))&&D(this,G===0?0:G)}:function(G,Z){return D(this,G===0?0:G,Z),this})};if(i(y,!d(E)||!(x||C.forEach&&!l(function(){new E().entries().next()}))))k=m.getConstructor(b,y,S,I),s.enable();else if(i(y,!0)){var V=new k,F=V[I](x?{}:-0,1)!=V,z=l(function(){V.has(1)}),B=h(function(P){new E(P)}),j=!x&&l(function(){for(var P=new E,D=5;D--;)P[I](D,D);return!P.has(-0)});B||((k=b(function(P,D){c(P,C);var G=g(new E,P,k);return D!=null&&f(D,G[I],{that:G,AS_ENTRIES:S}),G})).prototype=C,C.constructor=k),(z||j)&&(U("delete"),U("has"),S&&U("get")),(j||F)&&U(I),x&&C.clear&&delete C.clear}return A[y]=k,e({global:!0,forced:k!=E},A),v(k,y),x||m.setStrong(k,y,S),k}},function(o,u,t){var e=t(2),r=t(7),n=t(16),i=t(170),a=Object.isExtensible,s=e(function(){});o.exports=s||i?function(f){return!!r(f)&&(!i||n(f)!="ArrayBuffer")&&(!a||a(f))}:a},function(o,u,t){var e=t(2);o.exports=e(function(){if(typeof ArrayBuffer=="function"){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})},function(o,u,t){var e=t(2);o.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(o,u,t){var e=t(9).f,r=t(20),n=t(97),i=t(34),a=t(70),s=t(71),f=t(81),c=t(69),d=t(6),p=t(122).fastKey,l=t(19),h=l.set,v=l.getterFor;o.exports={getConstructor:function(g,y,b,m){var S=g(function(k,A){a(k,x),h(k,{type:y,index:r(null),first:void 0,last:void 0,size:0}),d||(k.size=0),A!=null&&s(A,k[m],{that:k,AS_ENTRIES:b})}),x=S.prototype,I=v(y),E=function(k,A,U){var V,F,z=I(k),B=C(k,A);return B?B.value=U:(z.last=B={index:F=p(A,!0),key:A,value:U,previous:V=z.last,next:void 0,removed:!1},z.first||(z.first=B),V&&(V.next=B),d?z.size++:k.size++,F!=="F"&&(z.index[F]=B)),k},C=function(k,A){var U,V=I(k),F=p(A);if(F!=="F")return V.index[F];for(U=V.first;U;U=U.next)if(U.key==A)return U};return n(x,{clear:function(){for(var k=I(this),A=k.index,U=k.first;U;)U.removed=!0,U.previous&&(U.previous=U.previous.next=void 0),delete A[U.index],U=U.next;k.first=k.last=void 0,d?k.size=0:this.size=0},delete:function(k){var A=I(this),U=C(this,k);if(U){var V=U.next,F=U.previous;delete A.index[U.index],U.removed=!0,F&&(F.next=V),V&&(V.previous=F),A.first==U&&(A.first=V),A.last==U&&(A.last=F),d?A.size--:this.size--}return!!U},forEach:function(k){for(var A,U=I(this),V=i(k,arguments.length>1?arguments[1]:void 0);A=A?A.next:U.first;)for(V(A.value,A.key,this);A&&A.removed;)A=A.previous},has:function(k){return!!C(this,k)}}),n(x,b?{get:function(k){var A=C(this,k);return A&&A.value},set:function(k,A){return E(this,k===0?0:k,A)}}:{add:function(k){return E(this,k=k===0?0:k,k)}}),d&&e(x,"size",{get:function(){return I(this).size}}),S},setStrong:function(g,y,b){var m=y+" Iterator",S=v(y),x=v(m);f(g,y,function(I,E){h(this,{type:m,target:I,state:S(I),kind:E,last:void 0})},function(){for(var I=x(this),E=I.kind,C=I.last;C&&C.removed;)C=C.previous;return I.target&&(I.last=C=C?C.next:I.state.first)?E=="keys"?{value:C.key,done:!1}:E=="values"?{value:C.value,done:!1}:{value:[C.key,C.value],done:!1}:(I.target=void 0,{value:void 0,done:!0})},b?"entries":"values",!b,!0),c(y)}}},function(o,u,t){var e=t(112).charAt,r=t(13),n=t(19),i=t(81),a=n.set,s=n.getterFor("String Iterator");i(String,"String",function(f){a(this,{type:"String Iterator",string:r(f),index:0})},function(){var f,c=s(this),d=c.string,p=c.index;return p>=d.length?{value:void 0,done:!0}:(f=e(d,p),c.index+=f.length,{value:f,done:!1})})},function(o,u,t){var e=t(0),r=t(95),n=t(96),i=t(120),a=t(18),s=t(5),f=s("iterator"),c=s("toStringTag"),d=i.values,p=function(h,v){if(h){if(h[f]!==d)try{a(h,f,d)}catch(y){h[f]=d}if(h[c]||a(h,c,v),r[v]){for(var g in i)if(h[g]!==i[g])try{a(h,g,i[g])}catch(y){h[g]=i[g]}}}};for(var l in r)p(e[l]&&e[l].prototype,l);p(n,"DOMTokenList")},function(o,u,t){var e=t(3),r=t(6),n=t(9).f;e({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!r},{defineProperty:n})},function(o,u,t){var e=t(3),r=t(0),n=t(15),i=t(38),a=t(11),s=t(1),f=t(24),c=t(6),d=t(56),p=t(2),l=t(8),h=t(49),v=t(4),g=t(7),y=t(17),b=t(40),m=t(10),S=t(21),x=t(14),I=t(39),E=t(13),C=t(28),k=t(20),A=t(68),U=t(25),V=t(123),F=t(91),z=t(26),B=t(9),j=t(106),P=t(83),D=t(52),G=t(12),Z=t(43),et=t(47),rt=t(30),tt=t(44),Y=t(5),ht=t(124),dt=t(125),wt=t(36),bt=t(19),st=t(94).forEach,lt=et("hidden"),Ot=Y("toPrimitive"),Et=bt.set,Ct=bt.getterFor("Symbol"),gt=Object.prototype,vt=r.Symbol,_t=vt&&vt.prototype,q=r.TypeError,ut=r.QObject,T=n("JSON","stringify"),w=z.f,O=B.f,M=V.f,_=P.f,$=s([].push),L=Z("symbols"),K=Z("op-symbols"),Q=Z("string-to-symbol-registry"),X=Z("symbol-to-string-registry"),N=Z("wks"),at=!ut||!ut.prototype||!ut.prototype.findChild,R=c&&p(function(){return k(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a!=7})?function(nt,ft,mt){var xt=w(gt,ft);xt&&delete gt[ft],O(nt,ft,mt),xt&&nt!==gt&&O(gt,ft,xt)}:O,H=function(nt,ft){var mt=L[nt]=k(_t);return Et(mt,{type:"Symbol",tag:nt,description:ft}),c||(mt.description=ft),mt},W=function(nt,ft,mt){nt===gt&&W(K,ft,mt),m(nt);var xt=I(ft);return m(mt),l(L,xt)?(mt.enumerable?(l(nt,lt)&&nt[lt][xt]&&(nt[lt][xt]=!1),mt=k(mt,{enumerable:C(0,!1)})):(l(nt,lt)||O(nt,lt,C(1,{})),nt[lt][xt]=!0),R(nt,xt,mt)):O(nt,xt,mt)},J=function(nt,ft){m(nt);var mt=x(ft),xt=A(mt).concat(Lt(mt));return st(xt,function(At){c&&!a(it,mt,At)||W(nt,At,mt[At])}),nt},it=function(nt){var ft=I(nt),mt=a(_,this,ft);return!(this===gt&&l(L,ft)&&!l(K,ft))&&(!(mt||!l(this,ft)||!l(L,ft)||l(this,lt)&&this[lt][ft])||mt)},kt=function(nt,ft){var mt=x(nt),xt=I(ft);if(mt!==gt||!l(L,xt)||l(K,xt)){var At=w(mt,xt);return!At||!l(L,xt)||l(mt,lt)&&mt[lt][xt]||(At.enumerable=!0),At}},Rt=function(nt){var ft=M(x(nt)),mt=[];return st(ft,function(xt){l(L,xt)||l(rt,xt)||$(mt,xt)}),mt},Lt=function(nt){var ft=nt===gt,mt=M(ft?K:x(nt)),xt=[];return st(mt,function(At){!l(L,At)||ft&&!l(gt,At)||$(xt,L[At])}),xt};if(d||(G(_t=(vt=function(){if(y(_t,this))throw q("Symbol is not a constructor");var nt=arguments.length&&arguments[0]!==void 0?E(arguments[0]):void 0,ft=tt(nt),mt=function(xt){this===gt&&a(mt,K,xt),l(this,lt)&&l(this[lt],ft)&&(this[lt][ft]=!1),R(this,ft,C(1,xt))};return c&&at&&R(gt,ft,{configurable:!0,set:mt}),H(ft,nt)}).prototype,"toString",function(){return Ct(this).tag}),G(vt,"withoutSetter",function(nt){return H(tt(nt),nt)}),P.f=it,B.f=W,j.f=J,z.f=kt,U.f=V.f=Rt,F.f=Lt,ht.f=function(nt){return H(Y(nt),nt)},c&&(O(_t,"description",{configurable:!0,get:function(){return Ct(this).description}}),f||G(gt,"propertyIsEnumerable",it,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:vt}),st(A(N),function(nt){dt(nt)}),e({target:"Symbol",stat:!0,forced:!d},{for:function(nt){var ft=E(nt);if(l(Q,ft))return Q[ft];var mt=vt(ft);return Q[ft]=mt,X[mt]=ft,mt},keyFor:function(nt){if(!b(nt))throw q(nt+" is not a symbol");if(l(X,nt))return X[nt]},useSetter:function(){at=!0},useSimple:function(){at=!1}}),e({target:"Object",stat:!0,forced:!d,sham:!c},{create:function(nt,ft){return ft===void 0?k(nt):J(k(nt),ft)},defineProperty:W,defineProperties:J,getOwnPropertyDescriptor:kt}),e({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:Rt,getOwnPropertySymbols:Lt}),e({target:"Object",stat:!0,forced:p(function(){F.f(1)})},{getOwnPropertySymbols:function(nt){return F.f(S(nt))}}),T&&e({target:"JSON",stat:!0,forced:!d||p(function(){var nt=vt();return T([nt])!="[null]"||T({a:nt})!="{}"||T(Object(nt))!="{}"})},{stringify:function(nt,ft,mt){var xt=D(arguments),At=ft;if((g(ft)||nt!==void 0)&&!b(nt))return h(ft)||(ft=function(Qt,Wt){if(v(At)&&(Wt=a(At,this,Qt,Wt)),!b(Wt))return Wt}),xt[1]=ft,i(T,null,xt)}}),!_t[Ot]){var Bt=_t.valueOf;G(_t,Ot,function(nt){return a(Bt,this)})}wt(vt,"Symbol"),rt[lt]=!0},function(o,u,t){var e=t(0);o.exports=e},function(o,u,t){var e=t(3),r=t(6),n=t(0),i=t(1),a=t(8),s=t(4),f=t(17),c=t(13),d=t(9).f,p=t(88),l=n.Symbol,h=l&&l.prototype;if(r&&s(l)&&(!("description"in h)||l().description!==void 0)){var v={},g=function(){var E=arguments.length<1||arguments[0]===void 0?void 0:c(arguments[0]),C=f(h,this)?new l(E):E===void 0?l():l(E);return E===""&&(v[C]=!0),C};p(g,l),g.prototype=h,h.constructor=g;var y=String(l("test"))=="Symbol(test)",b=i(h.toString),m=i(h.valueOf),S=/^Symbol\((.*)\)[^)]+$/,x=i("".replace),I=i("".slice);d(h,"description",{configurable:!0,get:function(){var E=m(this),C=b(E);if(a(v,E))return"";var k=y?I(C,7,-1):x(C,S,"$1");return k===""?void 0:k}}),e({global:!0,forced:!0},{Symbol:g})}},function(o,u,t){t(125)("iterator")},function(o,u,t){var e=t(3),r=t(77).trim;e({target:"String",proto:!0,forced:t(181)("trim")},{trim:function(){return r(this)}})},function(o,u,t){var e=t(31).PROPER,r=t(2),n=t(78);o.exports=function(i){return r(function(){return!!n[i]()||"
"[i]()!=="
"||e&&n[i].name!==i})}},function(o,u,t){t(3)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(o,u,t){var e=t(6),r=t(0),n=t(1),i=t(33),a=t(12),s=t(8),f=t(79),c=t(17),d=t(40),p=t(84),l=t(2),h=t(25).f,v=t(26).f,g=t(9).f,y=t(184),b=t(77).trim,m=r.Number,S=m.prototype,x=r.TypeError,I=n("".slice),E=n("".charCodeAt),C=function(z){var B=p(z,"number");return typeof B=="bigint"?B:k(B)},k=function(z){var B,j,P,D,G,Z,et,rt,tt=p(z,"number");if(d(tt))throw x("Cannot convert a Symbol value to a number");if(typeof tt=="string"&&tt.length>2){if(tt=b(tt),(B=E(tt,0))===43||B===45){if((j=E(tt,2))===88||j===120)return NaN}else if(B===48){switch(E(tt,1)){case 66:case 98:P=2,D=49;break;case 79:case 111:P=8,D=55;break;default:return+tt}for(Z=(G=I(tt,2)).length,et=0;et<Z;et++)if((rt=E(G,et))<48||rt>D)return NaN;return parseInt(G,P)}}return+tt};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var A,U=function(z){var B=arguments.length<1?0:m(C(z)),j=this;return c(S,j)&&l(function(){y(j)})?f(Object(B),j,U):B},V=e?h(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),F=0;V.length>F;F++)s(m,A=V[F])&&!s(U,A)&&g(U,A,v(m,A));U.prototype=S,S.constructor=U,a(r,"Number",U)}},function(o,u,t){var e=t(1);o.exports=e(1 .valueOf)},function(o,u){var t,e;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(r,n){return r<<n|r>>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return 16711935&e.rotl(r,8)|4278255360&e.rotl(r,24);for(var n=0;n<r.length;n++)r[n]=e.endian(r[n]);return r},randomBytes:function(r){for(var n=[];r>0;r--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(r){for(var n=[],i=0,a=0;i<r.length;i++,a+=8)n[a>>>5]|=r[i]<<24-a%32;return n},wordsToBytes:function(r){for(var n=[],i=0;i<32*r.length;i+=8)n.push(r[i>>>5]>>>24-i%32&255);return n},bytesToHex:function(r){for(var n=[],i=0;i<r.length;i++)n.push((r[i]>>>4).toString(16)),n.push((15&r[i]).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],i=0;i<r.length;i+=2)n.push(parseInt(r.substr(i,2),16));return n},bytesToBase64:function(r){for(var n=[],i=0;i<r.length;i+=3)for(var a=r[i]<<16|r[i+1]<<8|r[i+2],s=0;s<4;s++)8*i+6*s<=8*r.length?n.push(t.charAt(a>>>6*(3-s)&63)):n.push("=");return n.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],i=0,a=0;i<r.length;a=++i%4)a!=0&&n.push((t.indexOf(r.charAt(i-1))&Math.pow(2,-2*a+8)-1)<<2*a|t.indexOf(r.charAt(i))>>>6-2*a);return n}},o.exports=e},function(o,u){function t(e){return!!e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}/*!
|
|
15
|
+
* Determine if an object is a Buffer
|
|
16
|
+
*
|
|
17
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
18
|
+
* @license MIT
|
|
19
|
+
*/o.exports=function(e){return e!=null&&(t(e)||function(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&t(r.slice(0,0))}(e)||!!e._isBuffer)}},function(o,u,t){t.r(u),t.d(u,"ChatImageUpload",function(){return ut}),t.d(u,"defaultConfig",function(){return vt}),t.d(u,"allowAccept",function(){return Ct}),t.d(u,"allowFileExtension",function(){return gt}),t.d(u,"FailError",function(){return rt}),t.d(u,"FailCode",function(){return G}),t.d(u,"ChatImage",function(){return Ot}),t.d(u,"ImageStatus",function(){return et}),t(127),t(92),t(63),t(35),t(67),t(135),t(136),t(73);var e=Object.prototype.hasOwnProperty;function r(T,w){return e.call(T,w)}function n(T){if(T==null)throw new TypeError("Cannot convert undefined or null to object");for(var w=0;w<(arguments.length<=1?0:arguments.length-1);w++){var O=w+1<1||arguments.length<=w+1?void 0:arguments[w+1];if(O!=null)for(var M in O)M!=="__proto__"&&r(O,M)&&(T[M]=O[M])}return T}var i=Object.prototype.toString;t(74),t(53),t(151),t(152),t(154);function a(T,w){var O,M,_=n({encode:encodeURIComponent},w),$=[];function L(Q,X){X==null&&(X=""),X===""&&_.ignoreEmpty||(typeof _.encode=="function"&&(Q=_.encode(Q),X=_.encode(String(X))),$.push(Q+"="+X))}function K(Q){L(O,Q)}for(O in T)r(T,O)&&(M=T[O],Array.isArray(M)?M.forEach(K):L(O,M));return $.join("&")}t(116),t(155);function s(T,w,O){if(T==null||w==null)return T;var M=(T=String(T)).indexOf("#"),_="";return M!==-1&&(_=T.substring(M,T.length),T=T.substring(0,M)),(T=T.replace(/[?&]$/,""))+((w=typeof w!="string"?a(w,O):w.replace(/^[?&]/,""))?(T.indexOf("?")!==-1?"&":"?")+w:"")+_}t(157),t(159),t(117),t(160),t(161),t(162),t(163),t(164),t(120),t(167),t(173),t(174),t(175),t(176),t(178),t(179);function f(T){return(f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(T)}function c(T,w){if(w&&(f(w)==="object"||typeof w=="function"))return w;if(w!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(T)}function d(T){var w=typeof Map=="function"?new Map:void 0;return(d=function(O){if(O===null||(M=O,Function.toString.call(M).indexOf("[native code]")===-1))return O;var M;if(typeof O!="function")throw new TypeError("Super expression must either be null or a function");if(w!==void 0){if(w.has(O))return w.get(O);w.set(O,_)}function _(){return p(O,arguments,v(this).constructor)}return _.prototype=Object.create(O.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),h(_,O)})(T)}function p(T,w,O){return(p=l()?Reflect.construct:function(M,_,$){var L=[null];L.push.apply(L,_);var K=new(Function.bind.apply(M,L));return $&&h(K,$.prototype),K}).apply(null,arguments)}function l(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(T){return!1}}function h(T,w){return(h=Object.setPrototypeOf||function(O,M){return O.__proto__=M,O})(T,w)}function v(T){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(T)}var g=function(T){(function(L,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");L.prototype=Object.create(K&&K.prototype,{constructor:{value:L,writable:!0,configurable:!0}}),Object.defineProperty(L,"prototype",{writable:!1}),K&&h(L,K)})($,T);var w,O,M,_=(w=$,O=l(),function(){var L,K=v(w);if(O){var Q=v(this).constructor;L=Reflect.construct(K,arguments,Q)}else L=K.apply(this,arguments);return c(this,L)});function $(L){var K;return function(Q,X){if(!(Q instanceof X))throw new TypeError("Cannot call a class as a function")}(this,$),(K=_.call(this,L)).name="AJAXError",K}return M=$,Object.defineProperty(M,"prototype",{writable:!1}),M}(d(Error)),y=/(?:^|;\s*)(?:application|text)\/([a-z]+)/i;t(180),t(182),t(183);function b(T,w,O,M){return function(){var _,$,L,K=(T.responseText||"").trim();switch(w.responseType||((L=T.getResponseHeader("Content-Type"))&&y.test(L)?RegExp.$1.toLowerCase():"")){case"json":if(K)try{_=JSON.parse(K)}catch(at){$="Invalid JSON structure"}break;case"xml":(_=T.responseXML)&&_.documentElement||($="Invalid XML format");break;default:_=K}var Q,X={xhr:T,options:w,data:_},N=T.status;(function(at){return!(at===void 0||at>=200&&at<300||at===1223||at===304)})(N)?(Q=new g("Error (HTTP status code: "+N+")")).code=N:$&&(Q=new g($)),Q?M(n(Q,X)):O(X)}}var m=Object.create(null),S=0;function x(T,w,O,M){T.onload=b(T,w,O,M),T.ontimeout=function(){var $;M((($=new g("Request timeout")).isTimeout=!0,$))},T.onerror=function(){M(new g("Network error"))},w.onDownloadProgress&&T.addEventListener("progress",w.onDownloadProgress),w.onUploadProgress&&T.upload&&T.upload.addEventListener("progress",w.onUploadProgress),S===Number.MAX_SAFE_INTEGER&&(S=0);var _=++S;return m[_]={xhr:T,options:w,resolve:O,reject:M},_}function I(T){delete m[T]}function E(T,w,O,M,_){return T&&/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10&&window.XDomainRequest&&(w==="get"||w==="post")&&!O&&!_&&function($){if($!=null){if(Array.isArray($))return!$.length;for(var L in $)if(r($,L))return!1}return!0}(M)?new window.XDomainRequest:new window.XMLHttpRequest}function C(T,w,O,M){var _,$,L;if(O!=null&&T!=="get")return M==="json"?(_=JSON.stringify(O),$="application/json; charset=utf-8"):(L=O,typeof(_=i.call(L)==="[object Object]"?a(O,{ignoreEmpty:!1}):O)=="string"&&($="application/x-www-form-urlencoded; charset=utf-8")),w["Content-Type"]=w["Content-Type"]||$,_}function k(T,w){var O=0;return new Promise(function(M,_){(w=n({},w)).method=w.method||"get",w.requestType=w.requestType||"",w.responseType=w.responseType||"json",w.timeout=w.timeout||0;var $=w.method.toLowerCase(),L=w.requestType.toLowerCase(),K=w.headers||{},Q=function(at){var R=document.createElement("div");R.innerHTML='<a href="'+at+'"></a>';var H=R.firstChild,W=H.host!==location.host;return R=null,H=null,W}(T=function(at,R,H){return R!=null&&(at=s(at,R,{ignoreEmpty:!1})),H&&(at=s(at,{_:Date.now()})),at}(T,w.params,w.preventCaching)),X=E(Q,$,L,K,w.withCredentials);O=x(X,w,function(at){I(O),M(at)},function(at){I(O),_(at)}),X.open($,T,!0,w.username,w.password);var N=C($,K,w.data,L);(function(at,R,H,W){R.timeout&&(at.timeout=R.timeout),H&&R.withCredentials!=null&&(at.withCredentials=!!R.withCredentials),H||W["X-Request-With"]!=null||(W["X-Request-With"]="XMLHttpRequest"),Object.keys(W).forEach(function(J){W[J]!=null&&at.setRequestHeader(J,String(W[J]))})})(X,w,Q,K),typeof w.beforeSend=="function"&&w.beforeSend.call(window,X),X.send(N||""),typeof w.receiveCancelId=="function"&&w.receiveCancelId(O)})}var A=t(82),U=t.n(A);function V(T){return T.name.toLowerCase().split(".").pop()||""}function F(T){var w=new FormData;for(var O in T)w.append(O,T[O]);return w}function z(T,w,O){O===void 0&&(O=!1);for(var M=T.split(","),_=/:(.*?);/.exec(M[0]),$=_?_[1]:"image/jpeg",L=window.atob(M[1]),K=L.length,Q=new Uint8Array(K);K--;)Q[K]=L.charCodeAt(K);return O?new Blob([Q],{type:$}):new File([Q],w,{type:$})}function B(T){return new Promise(function(w,O){var M=new Image;M.onload=function(){w({width:M.width,height:M.height,imageTarget:M})},M.onerror=function(){O(new Error("获取图片尺寸失败"))};var _="";_=typeof T=="string"?T:j(T),M.src=_})}function j(T){return(window.URL||window.webkitURL).createObjectURL(T)}var P,D,G,Z=(P=function(T,w){return(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,M){O.__proto__=M}||function(O,M){for(var _ in M)Object.prototype.hasOwnProperty.call(M,_)&&(O[_]=M[_])})(T,w)},function(T,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");function O(){this.constructor=T}P(T,w),T.prototype=w===null?Object.create(w):(O.prototype=w.prototype,new O)});(function(T){T.EMPTY_FILE="empty file",T.FILE_SIZE_TOO_LARGE="file size too large",T.FILE_TYPE_NOT_ALLOW="file type not allow",T.FILE_EXTENSION_NOT_ALLOW="file extension not allow",T.GET_UPLOAD_TOKEN_ERROR="get upload token error",T.UPLOAD_IMAGE_ERROR="upload image error",T.PORN_IDENTIFY_ERROR="porn identify error"})(G||(G={}));var et,rt=function(T){function w(O){var M=T.call(this,O)||this,_=w.getFailErrorData(O);return M.failCode=_.failCode,M.failMessage=_.failMessage,M}return Z(w,T),w.getFailErrorData=function(O){return{failCode:O,failMessage:w.failMessageVal[O]}},w.failMessageVal=((D={})[G.EMPTY_FILE]="请勿上传空文件",D[G.FILE_SIZE_TOO_LARGE]="文件大小超出限制",D[G.FILE_TYPE_NOT_ALLOW]="该文件类型不支持",D[G.FILE_EXTENSION_NOT_ALLOW]="该文件扩展名不支持",D[G.GET_UPLOAD_TOKEN_ERROR]="获取上传图片 token 失败",D[G.UPLOAD_IMAGE_ERROR]="上传图片失败",D[G.PORN_IDENTIFY_ERROR]="图片鉴黄失败",D),w}(Error),tt=function(){return(tt=Object.assign||function(T){for(var w,O=1,M=arguments.length;O<M;O++)for(var _ in w=arguments[O])Object.prototype.hasOwnProperty.call(w,_)&&(T[_]=w[_]);return T}).apply(this,arguments)},Y=function(T,w,O,M){return new(O||(O=Promise))(function(_,$){function L(X){try{Q(M.next(X))}catch(N){$(N)}}function K(X){try{Q(M.throw(X))}catch(N){$(N)}}function Q(X){var N;X.done?_(X.value):(N=X.value,N instanceof O?N:new O(function(at){at(N)})).then(L,K)}Q((M=M.apply(T,[])).next())})},ht=function(T,w){var O,M,_,$,L={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return $={next:K(0),throw:K(1),return:K(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function K(Q){return function(X){return function(N){if(O)throw new TypeError("Generator is already executing.");for(;L;)try{if(O=1,M&&(_=2&N[0]?M.return:N[0]?M.throw||((_=M.return)&&_.call(M),0):M.next)&&!(_=_.call(M,N[1])).done)return _;switch(M=0,_&&(N=[2&N[0],_.value]),N[0]){case 0:case 1:_=N;break;case 4:return L.label++,{value:N[1],done:!1};case 5:L.label++,M=N[1],N=[0];continue;case 7:N=L.ops.pop(),L.trys.pop();continue;default:if(_=L.trys,!((_=_.length>0&&_[_.length-1])||N[0]!==6&&N[0]!==2)){L=0;continue}if(N[0]===3&&(!_||N[1]>_[0]&&N[1]<_[3])){L.label=N[1];break}if(N[0]===6&&L.label<_[1]){L.label=_[1],_=N;break}if(_&&L.label<_[2]){L.label=_[2],L.ops.push(N);break}_[2]&&L.ops.pop(),L.trys.pop();continue}N=w.call(T,L)}catch(at){N=[6,at],M=0}finally{O=_=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([Q,X])}}},dt=function(){function T(w){this.uploadCtx=w.uploadCtx}return T.prototype.getUploadToken=function(w){return Y(this,void 0,void 0,function(){var O,M,_,$,L;return ht(this,function(K){switch(K.label){case 0:return O=Date.now(),M=U()("upload_token_live"+w.channelId+O),_={channelId:w.channelId,ts:O,hash:M,bucket:w.bucket},w.userId&&(_.userId=w.userId),[4,k("https://"+this.uploadCtx.apiHost+"/live/upload/token/image/get-token",{params:_})];case 1:return($=K.sent()).data?(L=$.data).code!==200?[2,Promise.reject(new rt(G.GET_UPLOAD_TOKEN_ERROR))]:[2,L.data]:[2,Promise.reject(new rt(G.GET_UPLOAD_TOKEN_ERROR))]}})})},T.prototype.uploadImage=function(w){return Y(this,void 0,void 0,function(){var O,M,_,$,L,K;return ht(this,function(Q){switch(Q.label){case 0:O={key:""+w.dir+w.fileName,policy:w.policy,OSSAccessKeyId:w.accessid,signature:w.signature,success_action_status:200,callback:w.encodedCallback,file:w.file},Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,k("https://"+w.host,{method:"post",data:F(O),onUploadProgress:function(X){var N,at,R=w.onUploadProgress;typeof R=="function"&&R((N=X.loaded/X.total,at=2,Number(N.toFixed(at||0))))}})];case 2:return(M=Q.sent()).data?(_=M.data).code!==200?[2,Promise.reject(new rt(G.UPLOAD_IMAGE_ERROR))]:[2,_.data]:[2,Promise.reject(new rt(G.UPLOAD_IMAGE_ERROR))];case 3:return Q.sent(),$=w.currentReuploadTime,(L=$===void 0?0:$)&&L>=this.uploadCtx.reUploadTimes?[2,Promise.reject(new rt(G.UPLOAD_IMAGE_ERROR))]:(L+=1,K=Object.assign({},w,{currentReuploadTime:L}),[2,this.uploadImage(K)]);case 4:return[2]}})})},T.prototype.createSign=function(w,O,M){var _=w;Object.keys(O).sort().forEach(function(L){O[L]&&(_+=L+String(O[L]))}),_+=w;var $=U()(_);return M==="lower"?$:$.toLocaleUpperCase()},T.prototype.pornIdentify=function(w){return Y(this,void 0,void 0,function(){var O,M,_;return ht(this,function($){switch($.label){case 0:O=tt(tt({},w),{timestamp:Date.now()}),$.label=1;case 1:return $.trys.push([1,3,,4]),[4,k("https://"+this.uploadCtx.apiHost+"/live/inner/v3/chat/image/porn-identify",{method:"post",data:tt(tt({},O),{sign:this.createSign("polyv_chat_api_innor",O)})})];case 2:return(M=$.sent()).data?M.data.code!==200?[2,Promise.reject(new rt(G.PORN_IDENTIFY_ERROR))]:[2,!0]:[2,Promise.reject(new rt(G.PORN_IDENTIFY_ERROR))];case 3:return _=$.sent(),[2,Promise.reject(_)];case 4:return[2]}})})},T}();(function(T){T.WAIT_UPLOAD="waitUpload",T.UPLOADING="uploading",T.UPLOAD_SUCCESS="uploadSuccess",T.UPLOAD_FAIL="uploadFail",T.UPLOAD_FORBID="forbid"})(et||(et={}));var wt=function(){return(wt=Object.assign||function(T){for(var w,O=1,M=arguments.length;O<M;O++)for(var _ in w=arguments[O])Object.prototype.hasOwnProperty.call(w,_)&&(T[_]=w[_]);return T}).apply(this,arguments)},bt=function(T,w,O,M){return new(O||(O=Promise))(function(_,$){function L(X){try{Q(M.next(X))}catch(N){$(N)}}function K(X){try{Q(M.throw(X))}catch(N){$(N)}}function Q(X){var N;X.done?_(X.value):(N=X.value,N instanceof O?N:new O(function(at){at(N)})).then(L,K)}Q((M=M.apply(T,[])).next())})},st=function(T,w){var O,M,_,$,L={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return $={next:K(0),throw:K(1),return:K(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function K(Q){return function(X){return function(N){if(O)throw new TypeError("Generator is already executing.");for(;L;)try{if(O=1,M&&(_=2&N[0]?M.return:N[0]?M.throw||((_=M.return)&&_.call(M),0):M.next)&&!(_=_.call(M,N[1])).done)return _;switch(M=0,_&&(N=[2&N[0],_.value]),N[0]){case 0:case 1:_=N;break;case 4:return L.label++,{value:N[1],done:!1};case 5:L.label++,M=N[1],N=[0];continue;case 7:N=L.ops.pop(),L.trys.pop();continue;default:if(_=L.trys,!((_=_.length>0&&_[_.length-1])||N[0]!==6&&N[0]!==2)){L=0;continue}if(N[0]===3&&(!_||N[1]>_[0]&&N[1]<_[3])){L.label=N[1];break}if(N[0]===6&&L.label<_[1]){L.label=_[1],_=N;break}if(_&&L.label<_[2]){L.label=_[2],L.ops.push(N);break}_[2]&&L.ops.pop(),L.trys.pop();continue}N=w.call(T,L)}catch(at){N=[6,at],M=0}finally{O=_=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([Q,X])}}},lt={width:500,height:500},Ot=function(){function T(w){var O=w.callbackChange,M=O===void 0||O;this.imageId=w.imageId,this.uploadCtx=w.uploadCtx,this.file=w.file,this._status=w.status||et.WAIT_UPLOAD,this.callbackChange=M,this.fileUrl=void 0,this.uploadProgress=void 0,this.previewSrc=j(this.file),this.uploadCtx.recordChatImage(this),this.triggerChange()}return T.prototype.upload=function(w){return w===void 0&&(w={}),bt(this,void 0,void 0,function(){var O,M,_,$,L,K,Q,X,N,at,R,H,W,J=this;return st(this,function(it){switch(it.label){case 0:return O=this.uploadCtx,M=O.channelId,_=O.userId,$=O.bucket,this.status=et.UPLOADING,[4,O.uploadApi.getUploadToken({channelId:M,userId:_,bucket:$})];case 1:if(L=it.sent(),!((K=this.file).size>1024*O.compressSizeLimit))return[3,5];it.label=2;case 2:return it.trys.push([2,4,,5]),[4,this.compressImage({file:this.file,fileName:this.fileName})];case 3:return Q=it.sent(),K=Q,[3,5];case 4:return it.sent(),console.warn("图片压缩失败",K,this.imageId),[3,5];case 5:return it.trys.push([5,7,,8]),[4,B(K)];case 6:return X=it.sent(),N=X.width,at=X.height,this.size={width:N,height:at},[3,8];case 7:return it.sent(),console.warn("获取图片尺寸失败"),[3,8];case 8:this.size||(this.size=lt),this.uploadProgress=0,R="",it.label=9;case 9:return it.trys.push([9,13,,14]),[4,O.uploadApi.uploadImage(wt(wt({},L),{file:K,fileName:this.fileName,onUploadProgress:function(kt){J.uploadProgress=kt,J.triggerChange()}}))];case 10:return R=it.sent(),this.fileUrl=R,O.enablePornChecking?[4,O.uploadApi.pornIdentify({channelId:M,url:"https:"+R})]:[3,12];case 11:it.sent(),it.label=12;case 12:return this.status=et.UPLOAD_SUCCESS,[3,14];case 13:return H=it.sent(),this.status=H.failCode===G.PORN_IDENTIFY_ERROR?et.UPLOAD_FORBID:et.UPLOAD_FAIL,w.error,[2,Promise.reject(H)];case 14:return typeof(W=w.success)=="function"&&W(R),[2,R]}})})},T.prototype.compressImage=function(w){return bt(this,void 0,void 0,function(){var O,M,_,$,L,K,Q,X,N,at;return st(this,function(R){switch(R.label){case 0:return O=w.file,M=w.fileName,_=w.quality,$=_===void 0?.7:_,[4,B(O)];case 1:return L=R.sent(),K=L.width,Q=L.height,X=L.imageTarget,(N=document.createElement("canvas")).setAttribute("width",""+K),N.setAttribute("height",""+Q),(at=N.getContext("2d"))?(at.drawImage(X,0,0,K,Q),[2,z(N.toDataURL("image/jpeg",$),M)]):[2,Promise.reject(new Error("create canvas error"))]}})})},T.prototype.triggerChange=function(){if(this.callbackChange){var w=this.uploadCtx.onChange;typeof w=="function"&&w(this)}},Object.defineProperty(T.prototype,"fileName",{get:function(){var w=V(this.file);return this.imageId+"."+(w||"png")},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"status",{get:function(){return this._status},set:function(w){this._status=w,this.triggerChange()},enumerable:!1,configurable:!0}),T}(),Et=function(){function T(w){this.uploadCtx=w.uploadCtx,this.uploadingList=[],this.waitQueue=[]}return T.prototype.joinWaitQueue=function(w){this.isExistQueue(w,this.waitQueue)||(this.waitQueue.push(w),this.checkQueue())},T.prototype.checkQueue=function(){var w=this;if(!(this.uploadingList.length>=this.uploadCtx.maxUploadNumber)&&this.waitQueue.length!==0)for(var O=this.uploadCtx.maxUploadNumber-this.uploadingList.length,M=function(L){var K=_.waitQueue.shift();K&&(K.upload({success:function(){w.handleImageUploadSuccess(K)}}),_.uploadingList.push(K))},_=this,$=0;$<O;$++)M()},T.prototype.handleImageUploadSuccess=function(w){this.uploadingList=this.uploadingList.filter(function(O){return O.imageId!==w.imageId}),this.checkQueue()},T.prototype.isExistQueue=function(w,O){return O.findIndex(function(M){return M.imageId===w.imageId})!==-1},T}(),Ct=["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/bmp","image/tiff","image/tifa"],gt=["png","bmp","webp","tiff","tif","jpeg","jpg","gif"],vt={channelId:"",userId:"",sizeLimit:81920,compressSizeLimit:2048,limit:9,maxWidth:700,reUploadTimes:3,source:"chat_img",bucket:"liveimages",useBlobByCompress:!1,allowAccept:Ct,allowFileExtension:gt,maxUploadNumber:3,enablePornChecking:!1,apiHost:"api.polyv.net"},_t=function(T,w,O,M){return new(O||(O=Promise))(function(_,$){function L(X){try{Q(M.next(X))}catch(N){$(N)}}function K(X){try{Q(M.throw(X))}catch(N){$(N)}}function Q(X){var N;X.done?_(X.value):(N=X.value,N instanceof O?N:new O(function(at){at(N)})).then(L,K)}Q((M=M.apply(T,[])).next())})},q=function(T,w){var O,M,_,$,L={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return $={next:K(0),throw:K(1),return:K(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function K(Q){return function(X){return function(N){if(O)throw new TypeError("Generator is already executing.");for(;L;)try{if(O=1,M&&(_=2&N[0]?M.return:N[0]?M.throw||((_=M.return)&&_.call(M),0):M.next)&&!(_=_.call(M,N[1])).done)return _;switch(M=0,_&&(N=[2&N[0],_.value]),N[0]){case 0:case 1:_=N;break;case 4:return L.label++,{value:N[1],done:!1};case 5:L.label++,M=N[1],N=[0];continue;case 7:N=L.ops.pop(),L.trys.pop();continue;default:if(_=L.trys,!((_=_.length>0&&_[_.length-1])||N[0]!==6&&N[0]!==2)){L=0;continue}if(N[0]===3&&(!_||N[1]>_[0]&&N[1]<_[3])){L.label=N[1];break}if(N[0]===6&&L.label<_[1]){L.label=_[1],_=N;break}if(_&&L.label<_[2]){L.label=_[2],L.ops.push(N);break}_[2]&&L.ops.pop(),L.trys.pop();continue}N=w.call(T,L)}catch(at){N=[6,at],M=0}finally{O=_=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([Q,X])}}},ut=function(){function T(w){w===void 0&&(w={});var O=w.channelId,M=O===void 0?vt.channelId:O,_=w.userId,$=_===void 0?vt.userId:_,L=w.sizeLimit,K=L===void 0?vt.sizeLimit:L,Q=w.compressSizeLimit,X=Q===void 0?vt.compressSizeLimit:Q,N=w.limit,at=N===void 0?vt.limit:N,R=w.maxWidth,H=R===void 0?vt.maxWidth:R,W=w.reUploadTimes,J=W===void 0?vt.reUploadTimes:W,it=w.source,kt=it===void 0?vt.source:it,Rt=w.bucket,Lt=Rt===void 0?vt.bucket:Rt,Bt=w.useBlobByCompress,nt=Bt===void 0?vt.useBlobByCompress:Bt,ft=w.allowAccept,mt=ft===void 0?vt.allowAccept:ft,xt=w.allowFileExtension,At=xt===void 0?vt.allowFileExtension:xt,Qt=w.maxUploadNumber,Wt=Qt===void 0?vt.maxUploadNumber:Qt,le=w.apiHost,Ue=le===void 0?vt.apiHost:le,Fe=w.onChange,De=w.beforeStart;this.channelId=M,this.userId=$,this.sizeLimit=K,this.compressSizeLimit=X,this.limit=at,this.maxWidth=H,this.reUploadTimes=J,this.source=kt,this.bucket=Lt,this.useBlobByCompress=!!nt,this.allowAccept=mt,this.allowFileExtension=At,this.maxUploadNumber=Wt,this.onChange=Fe,this.beforeStart=De,this.enablePornChecking=w.enablePornChecking===!0,this.apiHost=Ue,this.uploadQueue=new Et({uploadCtx:this}),this.uploadApi=new dt({uploadCtx:this}),this.chatImageStore={}}return T.prototype.choiceImageFile=function(w){var O=this;w===void 0&&(w={});var M=this.getAccept(),_=document.createElement("input");return _.setAttribute("id","polyv-upload-chat-image-input-id"),_.setAttribute("type","file"),_.setAttribute("accept",M),_.setAttribute("style","visibility: hidden;position: fixed;bottom: -100%;z-index: -1;"),this.limit>1&&_.setAttribute("multiple","multiple"),_.addEventListener("change",function(){document.body.removeChild(_),w&&_.files&&_.files.length!==0&&O.handleFileList(w,_.files)}),document.body.appendChild(_),_.click(),this},T.prototype.handleFileList=function(w,O){this.beforeStart&&this.beforeStart();for(var M,_=w.fail,$=w.success,L=w.callbackChange,K=O.length<this.limit?O.length:this.limit,Q=0;Q<K;Q++){var X=O[Q],N=this.checkFile(X);if(N)return M=N,void(typeof _=="function"&&_(M))}var at=[];for(Q=0;Q<K;Q++){X=O[Q];var R=this.buildImageId(Q),H=new Ot({imageId:R,uploadCtx:this,file:X,callbackChange:L});at.push(H)}typeof $=="function"&&$(at)},T.prototype.getAccept=function(){var w=[];return w.push.apply(w,this.allowFileExtension.map(function(O){return"."+O})),w.push.apply(w,this.allowAccept),w.join(",")},T.prototype.joinWaitQueue=function(w){var O=this;if(Array.isArray(w))return w.forEach(function(_){O.joinWaitQueue(_)}),this;var M=void 0;return typeof w=="string"?M=this.getChatImageById(w):w instanceof Ot&&(M=w),M&&this.uploadQueue.joinWaitQueue(M),this},T.prototype.getUploadImageUrl=function(){var w=this;return new Promise(function(O,M){w.choiceImageFile({callbackChange:!1,success:function(_){return _t(w,void 0,void 0,function(){var $;return q(this,function(L){switch(L.label){case 0:return[4,($=_[0]).upload()];case 1:return L.sent(),$.fileUrl?O($):M(new rt(G.UPLOAD_IMAGE_ERROR)),[2]}})})},fail:function(_){M(_)}})})},T.prototype.callbackUploadImage=function(){var w=this;this.choiceImageFile({success:function(O){w.joinWaitQueue(O)}})},T.prototype.uploadImageFile=function(w){return _t(this,void 0,void 0,function(){var O;return q(this,function(M){switch(M.label){case 0:if(O=this.checkFile(w))throw new Error(O.failMessage);return[4,new Ot({imageId:this.buildImageId(),file:w,uploadCtx:this,callbackChange:!1}).upload()];case 1:return[2,M.sent()]}})})},T.prototype.uploadImage=function(w,O){return _t(this,void 0,void 0,function(){var M,_;return q(this,function($){switch($.label){case 0:if(M=this.checkFile(w))throw new Error(M.failMessage);return[4,(_=new Ot({imageId:this.buildImageId(),file:w,uploadCtx:this,callbackChange:O!==!1})).upload()];case 1:return $.sent(),[2,_]}})})},T.prototype.reUploadImage=function(w){return _t(this,void 0,void 0,function(){var O,M;return q(this,function(_){switch(_.label){case 0:if(!(O=this.getChatImageById(w)))return[2,Promise.reject(new Error("图片不存在"))];_.label=1;case 1:return _.trys.push([1,3,,4]),[4,O.upload()];case 2:return _.sent(),[2,O];case 3:return M=_.sent(),[2,Promise.reject(M)];case 4:return[2]}})})},T.prototype.getChatImageById=function(w){return this.chatImageStore[w]},T.prototype.recordChatImage=function(w){this.chatImageStore[w.imageId]=w},T.prototype.checkFile=function(w){if(!w.size)return rt.getFailErrorData(G.EMPTY_FILE);if(w.size>1024*this.sizeLimit)return rt.getFailErrorData(G.FILE_SIZE_TOO_LARGE);if(!this.allowAccept.includes(w.type))return rt.getFailErrorData(G.FILE_TYPE_NOT_ALLOW);var O=V(w);return this.allowFileExtension.includes(O)?void 0:rt.getFailErrorData(G.FILE_EXTENSION_NOT_ALLOW)},T.prototype.buildImageId=function(w){var O=[];this.source&&O.push(this.source),this.channelId&&O.push(this.channelId),this.userId&&O.push(this.userId);var M=w!==void 0?"_"+w:"";return O.join("_")+"_"+Date.now()+"_"+Math.random().toString().substring(2,10)+M},T}()}]);class Re extends Dt{constructor(t){super(t);It(this,"__uploadImgCtrl");It(this,"__svgaMap",{coffee:"coffee.svga",like:"like.svga",handclap:"handclap.svga",666:"666.svga",star:"star.svga",diamond:"diamond.svga",car:"car.svga",rocket:"rocket.svga",bear:"bear.svga",crown:"crown.svga",cup:"cup.svga",microphone:"microphone.svga",villa:"villa.svga",house:"villa.svga"});this.__uploadImgCtrl=new Ae.ChatImageUpload({enablePornChecking:!0})}__setUploadImgChannelId(){return pt(this,null,function*(){const t=yield this._plvSocket.getChannelInfo();this.__uploadImgCtrl.channelId=t.channelId})}uploadMultiImage(t){return pt(this,null,function*(){yield this.__setUploadImgChannelId();const e=(t==null?void 0:t.maxLimit)||9,r=typeof(t==null?void 0:t.ready)=="function"?t.ready:()=>{},n=typeof(t==null?void 0:t.success)=="function"?t.success:()=>{},i=typeof(t==null?void 0:t.fail)=="function"?t.fail:()=>{},a=[],s=[];return new Promise((f,c)=>{this.__uploadImgCtrl.choiceImageFile({callbackChange:!1,success:d=>pt(this,null,function*(){d=d.slice(0,e),d.forEach(g=>{r({imageId:g.imageId,previewSrc:g.previewSrc||""})});try{for(var p=he(d),l,h,v;l=!(h=yield p.next()).done;l=!1){const g=h.value;try{const y=yield g.upload();if(!y)throw new Error("upload Image Error");const b={imageId:g.imageId,imageUrl:y,size:g.size};a.push(b),n(b)}catch(y){const b=y,m={imageId:g.imageId,previewSrc:g.previewSrc||""};s.push(m),console.error("[util-module][uploadMultiImage] ",b.message,m),i(b,m)}}}catch(h){v=[h]}finally{try{l&&(h=p.return)&&(yield h.call(p))}finally{if(v)throw v[0]}}return f({successUploadImages:a,failUploadImages:s})}),fail:d=>{console.error("[util-module][uploadMultiImage] ",d),c(new Error(d.failMessage))}})})})}directUploadImage(t){return pt(this,null,function*(){if(!t)throw new Error("file is null");yield this.__setUploadImgChannelId();const e=yield this.__uploadImgCtrl.uploadImage(t);if(!e.fileUrl)throw new Error("upload fail");return{imageId:e.imageId,imageUrl:e.fileUrl,size:e.size}})}translateText(t){return pt(this,null,function*(){const e=this._plvSocket.getUserInfo(),r=yield this._plvSocket.polyvApi.getTokenFieldByUserType();return(yield this._plvSocket.polyvApi.post("/live/v4/channel/translate",{},{params:{query:t,viewerId:e.userId},tokenInfo:{tokenField:r}}))[0]})}__genResourceUrl(t){return`https://s1.videocc.net${t}`}getDefaultResource(){return{defaultViewerAvatar:this.__genResourceUrl("/default-img/avatar/viewer.png")}}getDefaultDonateSvgaUrl(t){return pt(this,null,function*(){const e=t.gimg,r=this.__svgaMap,n=document.createElement("a");n.href=e;const i=n.pathname.split("/"),a=i[i.length-1].split(".")[0];if(r[a])return this.__genResourceUrl(`/default-img/donate-svga/${r[a]}`)})}}function Pe(o){return typeof o!="object"&&(o=new Date(o)),o}function je(o,u){const t={Y:(o=Pe(o)).getFullYear(),M:o.getMonth()+1,D:o.getDate(),h:o.getHours(),m:o.getMinutes(),s:o.getSeconds()};return u.replace(/([YMDhms])\1*/g,function(e){let r=t[e[0]].toString();const n=e.length;return n>r.length&&(r=new Array(n-r.length+1).join("0")+r),r})}class Le extends Dt{constructor(){super(...arguments);It(this,"__refId","")}setRefId(t){this.__refId=t}getRefId(){return this.__refId}exportAttendanceList(){return pt(this,null,function*(){const t=yield this._plvSocket.getChannelInfo(),e=this._plvSocket.getUserInfo(),r={channelId:t.channelId,userId:e.userId,timestamp:Date.now(),expectedArrivalType:"viewer_white",type:"whiteList"};r.sign=yield this._plvSocket.chatApi.getChatSign(r),yield this._plvSocket.chatApi.post("/front/channel/download-history/post",r,{appendChannelId:!1,appendUserId:!1})})}getAttendanceDownloadRecord(){return pt(this,arguments,function*(t={}){const{pageNumber:e=1,pageSize:r=10}=t,n=yield this._plvSocket.getChannelInfo(),i=yield this._plvSocket.chatApi.get("/front/channel/download-history-list/get",{timestamp:Date.now(),page:e,size:r,type:"whiteList"},{appendChatSign:!0}),a=[];return i.list.forEach(s=>{const f=["缺勤/到勤名单",n.channelId];s.sessionId&&f.push(s.sessionId),s.createTime&&f.push(je(s.createTime,"YYYYMMDD hh:mm:ss"));let c="pending";s.isExpire?c="expired":s.status===1?c="failed":s.status===0?c="pending":s.status===2&&(c="success"),a.push({id:`${s.createTime}-${s.sessionId}`,downloadUrl:s.src,fileName:f.join("-")+".gz",fileSize:0,progress:c==="pending"?0:100,status:c,createTime:s.createTime})}),{pageNumber:i.page,pageSize:i.size,contents:a,totalItems:i.totalCount,totalPages:i.totalPage}})}exportOnlineList(){return pt(this,null,function*(){const t={businessType:"LIVE"},e=this.getRefId();e&&(t.refId=e),yield this._plvSocket.polyvApi.get("/live/v4/channel/chat-data/online-user/export",t)})}exportWhiteList(){return pt(this,null,function*(){this._plvSocket.polyvApi.open("/live/v3/channel/chat/export-whitelist-viewing",{})})}}class Ne{constructor(u,t={}){It(this,"PolyvChatEvent",ct);It(this,"ChatMsgSource",ot);It(this,"DonateType",Vt);It(this,"RedpackType",Jt);It(this,"SystemMsgType",Zt);It(this,"ChatRequestHistoryMode",Ht);It(this,"ManageFailReason",St);It(this,"TranslateLanguage",ee);It(this,"eventEmitter",new $t);It(this,"__socketFilter");It(this,"__socketHandler");It(this,"emotion");It(this,"history");It(this,"message");It(this,"status");It(this,"utils");It(this,"sender");It(this,"manage");It(this,"online");It(this,"download");It(this,"setuped",!1);this.plvSocket=u,this.config=t,this.emotion=new we(this),this.history=new Ie(this),this.message=new Ee(this),this.status=new Me(this),this.utils=new Re(this),this.sender=new ke(this),this.manage=new Se(this),this.online=new Oe(this),this.download=new Le(this),this.__socketFilter=new ye(this),this.__socketHandler=new be(this)}setup(){return pt(this,null,function*(){yield this.emotion.setupEmotionParser(),this.setuped=!0})}}yt.ChatMsgSource=ot,yt.ChatRequestHistoryMode=Ht,yt.DonateType=Vt,yt.ManageFailReason=St,yt.MotivationLikeType=te,yt.PolyvChat=Ne,yt.PolyvChatEvent=ct,yt.RedpackType=Jt,yt.SystemMsgType=Zt,yt.TranslateLanguage=ee,yt.canQuoteMsgSource=fe,yt.canTopMsgSource=ce,yt.isServiceMsgMap=se,Object.defineProperty(yt,Symbol.toStringTag,{value:"Module"})});console.log("%c@polyv/chat","background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.1.0-rc-20251023.1]","[buildTime: 2025-10-21 10:21:12]");
|