@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.cjs.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";var ve=Object.defineProperty,ge=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var Zt=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable;var te=(o,a)=>(a=Symbol[o])?a:Symbol.for("Symbol."+o);var Vt=(o,a,t)=>a in o?ve(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,Ot=(o,a)=>{for(var t in a||(a={}))ye.call(a,t)&&Vt(o,t,a[t]);if(Zt)for(var t of Zt(a))be.call(a,t)&&Vt(o,t,a[t]);return o},Mt=(o,a)=>ge(o,me(a));var wt=(o,a,t)=>Vt(o,typeof a!="symbol"?a+"":a,t);var lt=(o,a,t)=>new Promise((e,r)=>{var n=u=>{try{s(t.next(u))}catch(f){r(f)}},i=u=>{try{s(t.throw(u))}catch(f){r(f)}},s=u=>u.done?e(u.value):Promise.resolve(u.value).then(n,i);s((t=t.apply(o,a)).next())});var ee=(o,a,t)=>(a=o[te("asyncIterator")])?a.call(o):(o=o[te("iterator")](),a={},t=(e,r)=>(r=o[e])&&(a[e]=n=>new Promise((i,s,u)=>(n=r.call(o,n),u=n.done,Promise.resolve(n.value).then(f=>i({value:f,done:u}),s)))),t("next"),t("return"),a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var St=(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))(St||{}),Pt=(o=>(o.UnknownError="UnknownError",o.PlatformProhibited="PlatformProhibited",o))(Pt||{});class we{constructor(){this.__eventStore={}}__addOnEvent(a,t,e,r){if(!t||!e)return;let n=this.__eventStore[t];n||(n=[]),n.push({type:a,handler:e,callbackHandler:e.bind(r)}),this.__eventStore[t]=n}on(a,t,e=this){this.__addOnEvent("normal",a,t,e)}once(a,t,e=this){this.__addOnEvent("once",a,t,e)}off(a,t){let e=this.__eventStore[a];e&&(e=e.filter(r=>r.handler!==t),this.__eventStore[a]=e)}emit(a,t,e){const r=this.__eventStore[a];r&&r.forEach(n=>{const{type:i,handler:s,callbackHandler:u}=n;typeof u=="function"&&u(t,e),i==="once"&&this.off(a,s)})}destroy(){this.__eventStore={}}}function $t(o,a){let t=String(o).toUpperCase();return t!=="Y"&&t!=="N"&&(t=String(a).toUpperCase()),t==="Y"}var re;(function(o){o.B="B",o.KB="KB",o.MB="MB",o.GB="GB",o.TB="TB"})(re||(re={}));function xe(o){const a=o.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/^([a-z]+:)?\/\/[^/]+/i,"").split("/"),t=/\.([a-z0-9]+)$/.exec(a[a.length-1]);return t?t[1].toLowerCase():""}var Rt;(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"})(Rt||(Rt={}));function ne(o){const a=xe(o);return["pdf"].indexOf(a)!==-1?Rt.PDF:["doc","docx"].indexOf(a)!==-1?Rt.Word:["xls","xlsx"].indexOf(a)!==-1?Rt.Excel:["txt","md","csv","log"].indexOf(a)!==-1?Rt.Txt:["zip","rar","7z","tar","gz","bz2"].indexOf(a)!==-1?Rt.Zip:["ppt","pptx"].indexOf(a)!==-1?Rt.PPT:["jpg","jpeg","png","gif","bmp","webp","svg"].indexOf(a)!==-1?Rt.Image:Rt.Others}const oe=['"',"'","&","<",">"," "],Kt=[""","'","&","<",">"," "],ie=Object.create(null),ae=Object.create(null);oe.forEach((o,a)=>{ie[o]=Kt[a],ae[Kt[a]]=o});const Ie=new RegExp("["+oe.join("")+"]","g"),Se=new RegExp("("+Kt.join("|")+")","g");function Ht(o){return o==null?o:String(o).replace(Ie,a=>ie[a])}function se(o){return o==null?o:String(o).replace(Se,a=>ae[a])}function _e(o){return o==null?o:String(o).replace(/\r?\n/g,"<br />")}function Ft(){let o=Date.now();return typeof performance!="undefined"&&typeof performance.now=="function"&&(o+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){const t=(o+16*Math.random())%16|0;return o=Math.floor(o/16),(a==="x"?t:3&t|8).toString(16)})}const jt="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||{}),Dt=(o=>(o.Cash="cash",o.Good="good",o))(Dt||{}),Yt=(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))(Yt||{}),qt=(o=>(o.ChatRoomIntroduction="chat-room-introduction",o))(qt||{}),Ut=(o=>(o.Prev="prev",o.Next="next",o))(Ut||{}),Qt=(o=>(o.Speak="speak",o.Mic="mic",o))(Qt||{}),Xt=(o=>(o.Chinese="Chinese",o.English="English",o.Japanese="Japanese",o.Korean="Korean",o.Russian="Russian",o))(Xt||{});class ue{constructor(a){this._plvChat=a}_filterNick(a){return a}_filterUser(a){return a.userId||(a.userId="system"),a.nick=this._filterNick(a.nick),a}}class Ee extends ue{constructor(a){super(a);const t=this._plvChat.plvSocket;t.addSocketHandles(jt,{SPEAK:e=>{this._plvChat.status.getStatusInfo().autoTranslateLanguage&&!e.isTranslate||this.__emitChatMessage(this.__filterSpeakMsg(e))},CHAT_IMG:e=>{this.__emitChatMessage(this.__filterChatImgMsg(e))},REWARD:e=>lt(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(jt,{DEFAULT_EVENT:e=>lt(this,null,function*(){const r=yield this.__filterEmotionMsg(e);this.__emitChatMessage(r)})},"emotion"),t.addSocketHandles(jt,e=>{this.__emitChatMessage(this.__filterCustomClientMsg(e))},"customMessage"),t.addSocketHandles(jt,e=>{e.list.forEach(r=>{this.__emitChatMessage(this.__filterMotivationLikeMsg(r))})},"motivation")}__emitChatMessage(a){this._plvChat.eventEmitter.emit(St.ChatMessage,{chatMsg:a})}__filterQuote(a){const t=this._filterUser(a.user),e=a.msgType||"speak",r="",i={speak:()=>({id:r,time:Date.now(),user:t,msgSource:ot.Speak,content:a.content}),chatImg:()=>({id:r,time:Date.now(),user:t,msgSource:ot.Image,imageId:"",imageUrl:a.image.url,size:{width:a.image.width,height:a.image.height}}),file:()=>{const s=JSON.parse(a.content);return{id:r,time:Date.now(),user:t,msgSource:ot.File,fileName:s.name,fileUrl:s.url}},redpaper:()=>{const s=JSON.parse(a.content);return Mt(Ot({},s),{id:r,time:Date.now(),user:t,msgSource:ot.Redpaper})},customerMessage:()=>({id:r,time:Date.now(),user:t,msgSource:ot.CustomServer,content:a.content})}[e];if(i)return i(a)}__filterSpeakMsg(a){if(a.msgSource==="file")return this.__filterFileMsg(a);const t={msgSource:ot.Speak,id:a.id,time:a.time,user:this._filterUser(a.user),content:a.values&&a.values[0]||""},e=this._plvChat.status.getStatusInfo();return e.autoTranslateLanguage&&(t.translateLanguage=e.autoTranslateLanguage),a.overLen&&(t.isOverLength=!0),a.quote&&(t.quote=this.__filterQuote(a.quote)),t}__filterFileMsg(a){const t=JSON.parse(a.values[0]);return ne(t.name)===Rt.Image?{msgSource:ot.Image,id:a.id,time:a.time,user:this._filterUser(a.user),imageId:Ft(),imageUrl:t.url}:{msgSource:ot.File,id:a.id,time:a.time,user:this._filterUser(a.user),fileName:t.name,fileUrl:t.url}}__filterChatImgMsg(a){const t=a.values[0],e={msgSource:ot.Image,id:a.id,time:a.time,imageId:t.id,imageUrl:t.uploadImgUrl,size:t.size,user:this._filterUser(a.user)};return a.result===!1&&(e.isIllegal=!0),e}__filterEmotionMsg(a){return lt(this,null,function*(){const e=(yield this._plvChat.emotion.getEmotionImages()).find(r=>r.id===a.id);return{msgSource:ot.Emotion,id:a.messageId,time:Date.now(),user:this._filterUser(a.user),emotionId:a.id,emotionUrl:(e==null?void 0:e.url)||""}})}__filterRewardMsg(a){return lt(this,null,function*(){return{msgSource:ot.Reward,id:a.id,time:Date.now(),gimg:a.content.gimg,goodNum:a.content.goodNum,rewardContent:a.content.rewardContent,donateType:a.content.gimg?Dt.Good:Dt.Cash,isSelf:this._plvChat.plvSocket.isCurrentUser(a.content.rewardUser.userId),user:this._filterUser({userId:a.content.rewardUser.userId,nick:a.content.unick,pic:a.content.uimg,userType:this._plvChat.plvSocket.SocketUserType.Viewer})}})}__filterRedpaperMsg(a){return Mt(Ot({},a),{msgSource:ot.Redpaper,id:a.id,time:a.timestamp,user:this._filterUser(a.user)})}__filterRedpaperReceiveMsg(a){return{msgSource:ot.RedpaperReceive,id:Ft(),time:Date.now(),nick:this._filterNick(a.nick),type:a.type,isOver:$t(a.isOver,"N")}}__filterCustomServerMsg(a){return{msgSource:ot.CustomServer,id:a.id,time:Date.now(),user:this._filterUser(a.user),content:a.content}}__filterCustomClientMsg(a){return Mt(Ot({},a),{msgSource:ot.CustomClient,id:a.id,time:a.time,user:this._filterUser(a.user)})}__filterMotivationLikeMsg(a){return Mt(Ot({},a),{id:Ft(),msgSource:ot.MotivationLike,time:Date.now()})}__filterSpeakTopMsg(a){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(a),a.others&&a.others.forEach(r=>{e(r)}),t}}class Oe{constructor(a){a.plvSocket.addSocketHandles(jt,{onSliceID:()=>{setTimeout(()=>{a.eventEmitter.emit(St.ChatInitialized,{})},100)}}),a.plvSocket.addSocketHandles(jt,{PRODUCT_CLICK:t=>{a.eventEmitter.emit(St.ProductClick,{type:t.type,nickname:t.nickName,productId:t.productId,name:t.positionName})},PRODUCT_BUY_TIMES:t=>{t.list.forEach(e=>{a.eventEmitter.emit(St.ProductBuyTimes,{nickname:e.nick,count:e.times,productId:e.info.productId,productName:e.info.productName,productType:e.info.productType})})}},"product")}}var zt=function(o){var a={};function t(e){if(a[e])return a[e].exports;var r=a[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=a,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(s){return e[s]}.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,a,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,a,t){o.exports=function(e){try{return!!e()}catch(r){return!0}}},function(o,a,t){var e=t(39),r=Function.prototype,n=r.call,i=e&&r.bind.bind(n,n);o.exports=e?i:function(s){return function(){return n.apply(s,arguments)}}},function(o,a,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,a,t){var e=t(0),r=t(38).f,n=t(24),i=t(14),s=t(55),u=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]||s(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;u(v,h)}(c.sham||h&&h.sham)&&n(v,"sham",!0),i(p,l,v,c)}}},function(o,a,t){var e=t(0),r=t(23),n=t(6),i=t(56),s=t(22),u=t(73),f=e.Symbol,c=r("wks"),d=u?f.for||f:f&&f.withoutSetter||i;o.exports=function(p){return n(c,p)||(c[p]=s&&n(f,p)?f[p]:d("Symbol."+p)),c[p]}},function(o,a,t){var e=t(2),r=t(19),n=e({}.hasOwnProperty);o.exports=Object.hasOwn||function(i,s){return n(r(i),s)}},function(o,a,t){var e=t(1);o.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},function(o,a,t){var e=t(39),r=Function.prototype.call;o.exports=e?r.bind(r):function(){return r.apply(r,arguments)}},function(o,a,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,a,t){var e=t(7),r=t(75),n=t(76),i=t(9),s=t(40),u=TypeError,f=Object.defineProperty,c=Object.getOwnPropertyDescriptor;a.f=e?n?function(d,p,l){if(i(d),p=s(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=s(p),i(l),r)try{return f(d,p,l)}catch(h){}if("get"in l||"set"in l)throw new u("Accessors not supported");return"value"in l&&(d[p]=l.value),d}},function(o,a,t){var e=t(3);o.exports=function(r){return typeof r=="object"?r!==null:e(r)}},function(o,a,t){var e=t(0),r=t(3),n=function(i){return r(i)?i:void 0};o.exports=function(i,s){return arguments.length<2?n(e[i]):e[i]&&e[i][s]}},function(o,a,t){o.exports=!1},function(o,a,t){var e=t(3),r=t(10),n=t(77),i=t(55);o.exports=function(s,u,f,c){c||(c={});var d=c.enumerable,p=c.name!==void 0?c.name:u;if(e(f)&&n(f,p,c),c.global)d?s[u]=f:i(u,f);else{try{c.unsafe?s[u]&&(d=!0):delete s[u]}catch(l){}d?s[u]=f:r.f(s,u,{value:f,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return s}},function(o,a,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,a,t){var e=t(2),r=e({}.toString),n=e("".slice);o.exports=function(i){return n(r(i),8,-1)}},function(o,a,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,a,t){var e=t(71),r=t(20);o.exports=function(n){return e(r(n))}},function(o,a,t){var e=t(20),r=Object;o.exports=function(n){return r(e(n))}},function(o,a,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,a,t){var e=t(2);o.exports=e({}.isPrototypeOf)},function(o,a,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,a,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,a,t){var e=t(7),r=t(10),n=t(28);o.exports=e?function(i,s,u){return r.f(i,s,n(1,u))}:function(i,s,u){return i[s]=u,i}},function(o,a,t){var e,r,n,i=t(116),s=t(0),u=t(11),f=t(24),c=t(6),d=t(54),p=t(44),l=t(45),h=s.TypeError,v=s.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(!u(m)||(S=r(m)).type!==b)throw new h("Incompatible receiver, "+b+" required");return S}}}},function(o,a,t){var e=t(120);o.exports=function(r){var n=+r;return n!=n||n===0?0:e(n)}},function(o,a,t){var e,r=t(9),n=t(97),i=t(58),s=t(45),u=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",u.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()};s[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,a,t){o.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},function(o,a,t){o.exports=function(e){return e==null}},function(o,a,t){var e=t(12),r=t(3),n=t(21),i=t(73),s=Object;o.exports=i?function(u){return typeof u=="symbol"}:function(u){var f=e("Symbol");return r(f)&&n(f.prototype,s(u))}},function(o,a,t){o.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},function(o,a,t){var e=String;o.exports=function(r){try{return e(r)}catch(n){return"Object"}}},function(o,a,t){var e=t(10).f,r=t(6),n=t(5)("toStringTag");o.exports=function(i,s,u){i&&!u&&(i=i.prototype),i&&!r(i,n)&&e(i,n,{configurable:!0,value:s})}},function(o,a,t){var e=t(0);o.exports=e.Promise},function(o,a,t){var e=t(0),r=t(34),n=t(3),i=t(60),s=t(57),u=t(5),f=t(144),c=t(92),d=t(13),p=t(41),l=r&&r.prototype,h=u("species"),v=!1,g=n(e.PromiseRejectionEvent),y=i("Promise",function(){var b=s(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,a,t){var e=t(17),r=TypeError,n=function(i){var s,u;this.promise=new i(function(f,c){if(s!==void 0||u!==void 0)throw new r("Bad Promise constructor");s=f,u=c}),this.resolve=e(s),this.reject=e(u)};o.exports.f=function(i){return new n(i)}},function(o,a,t){o.exports={}},function(o,a,t){var e=t(7),r=t(8),n=t(70),i=t(28),s=t(18),u=t(40),f=t(6),c=t(75),d=Object.getOwnPropertyDescriptor;a.f=e?d:function(p,l){if(p=s(p),l=u(l),c)try{return d(p,l)}catch(h){}if(f(p,l))return i(!r(n.f,p,l),p[l])}},function(o,a,t){var e=t(1);o.exports=!e(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})},function(o,a,t){var e=t(72),r=t(30);o.exports=function(n){var i=e(n,"string");return r(i)?i:i+""}},function(o,a,t){var e,r,n=t(0),i=t(31),s=n.process,u=n.Deno,f=s&&s.versions||u&&u.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,a,t){var e=t(17),r=t(29);o.exports=function(n,i){var s=n[i];return r(s)?void 0:e(s)}},function(o,a,t){var e=t(0),r=t(11),n=e.document,i=r(n)&&r(n.createElement);o.exports=function(s){return i?n.createElement(s):{}}},function(o,a,t){var e=t(23),r=t(56),n=e("keys");o.exports=function(i){return n[i]||(n[i]=r(i))}},function(o,a,t){o.exports={}},function(o,a,t){var e=t(80),r=t(58).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(n){return e(n,r)}},function(o,a,t){var e=t(81);o.exports=function(r){return e(r.length)}},function(o,a,t){var e=t(16);o.exports=Array.isArray||function(r){return e(r)==="Array"}},function(o,a,t){var e=t(61),r=t(3),n=t(16),i=t(5)("toStringTag"),s=Object,u=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=s(f),i))=="string"?d:u?n(c):(p=n(c))==="Object"&&r(c.callee)?"Arguments":p}},function(o,a,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,a,t){var e=t(2);o.exports=e([].slice)},function(o,a,t){var e=t(0),r=t(16);o.exports=r(e.process)==="process"},function(o,a,t){var e=t(88),r=t(17),n=t(39),i=e(e.bind);o.exports=function(s,u){return r(s),u===void 0?s:n?i(s,u):function(){return s.apply(u,arguments)}}},function(o,a,t){var e=t(0),r=t(55),n=e["__core-js_shared__"]||r("__core-js_shared__",{});o.exports=n},function(o,a,t){var e=t(0),r=Object.defineProperty;o.exports=function(n,i){try{r(e,n,{value:i,configurable:!0,writable:!0})}catch(s){e[n]=i}return i}},function(o,a,t){var e=t(2),r=0,n=Math.random(),i=e(1 .toString);o.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+i(++r+n,36)}},function(o,a,t){var e=t(2),r=t(3),n=t(54),i=e(Function.toString);r(n.inspectSource)||(n.inspectSource=function(s){return i(s)}),o.exports=n.inspectSource},function(o,a,t){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(o,a,t){a.f=Object.getOwnPropertySymbols},function(o,a,t){var e=t(1),r=t(3),n=/#|\.prototype\./,i=function(d,p){var l=u[s(d)];return l===c||l!==f&&(r(p)?e(p):!!p)},s=i.normalize=function(d){return String(d).replace(n,".").toLowerCase()},u=i.data={},f=i.NATIVE="N",c=i.POLYFILL="P";o.exports=i},function(o,a,t){var e={};e[t(5)("toStringTag")]="z",o.exports=String(e)==="[object z]"},function(o,a,t){var e=t(132),r=t(9),n=t(133);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i,s=!1,u={};try{(i=e(Object.prototype,"__proto__","set"))(u,[]),s=u instanceof Array}catch(f){}return function(f,c){return r(f),n(c),s?i(f,c):f.__proto__=c,f}}():void 0)},function(o,a,t){var e=t(77),r=t(10);o.exports=function(n,i,s){return s.get&&e(s.get,i,{getter:!0}),s.set&&e(s.set,i,{setter:!0}),r.f(n,i,s)}},function(o,a,t){o.exports=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}},function(o,a,t){var e=t(80),r=t(58);o.exports=Object.keys||function(n){return e(n,r)}},function(o,a,t){var e=t(4),r=t(67);e({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(o,a,t){var e,r,n=t(8),i=t(2),s=t(15),u=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=s(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(u,P),Y=P.source,dt=0,pt=G;if(rt&&(tt=S(tt,"y",""),m(tt,"g")===-1&&(tt+="g"),pt=x(G,P.lastIndex),P.lastIndex>0&&(!P.multiline||P.multiline&&b(G,P.lastIndex-1)!==`
|
|
2
|
+
`)&&(Y="(?: "+Y+")",pt=" "+pt,dt++),U=new RegExp("^(?:"+Y+")",tt)),C&&(U=new RegExp("^"+Y+"$(?!\\s)",tt)),I&&(V=P.lastIndex),F=n(g,rt?U:P,pt),rt?F?(F.input=x(F.input,dt),F[0]=x(F[0],dt),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,a,t){var e=t(105),r=t(6),n=t(106),i=t(10).f;o.exports=function(s){var u=e.Symbol||(e.Symbol={});r(u,s)||i(u,s,{value:n.f(s)})}},function(o,a,t){var e=t(4),r=t(1),n=t(48),i=t(11),s=t(19),u=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=s(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=u(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,a,t){var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!e.call({1:2},1);a.f=n?function(i){var s=r(this,i);return!!s&&s.enumerable}:e},function(o,a,t){var e=t(2),r=t(1),n=t(16),i=Object,s=e("".split);o.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(u){return n(u)==="String"?s(u,""):i(u)}:i},function(o,a,t){var e=t(8),r=t(11),n=t(30),i=t(42),s=t(74),u=t(5),f=TypeError,c=u("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"),s(d,p)}},function(o,a,t){var e=t(22);o.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(o,a,t){var e=t(8),r=t(3),n=t(11),i=TypeError;o.exports=function(s,u){var f,c;if(u==="string"&&r(f=s.toString)&&!n(c=e(f,s))||r(f=s.valueOf)&&!n(c=e(f,s))||u!=="string"&&r(f=s.toString)&&!n(c=e(f,s)))return c;throw new i("Can't convert object to primitive value")}},function(o,a,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,a,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,a,t){var e=t(2),r=t(1),n=t(3),i=t(6),s=t(7),u=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=s&&!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")||u&&x.name!==I)&&(s?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?s&&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,a,t){var e=t(7),r=t(6),n=Function.prototype,i=e&&Object.getOwnPropertyDescriptor,s=r(n,"name"),u=s&&function(){}.name==="something",f=s&&(!e||e&&i(n,"name").configurable);o.exports={EXISTS:s,PROPER:u,CONFIGURABLE:f}},function(o,a,t){var e=t(6),r=t(117),n=t(38),i=t(10);o.exports=function(s,u,f){for(var c=r(u),d=i.f,p=n.f,l=0;l<c.length;l++){var h=c[l];e(s,h)||f&&e(f,h)||d(s,h,p(u,h))}}},function(o,a,t){var e=t(2),r=t(6),n=t(18),i=t(118).indexOf,s=t(45),u=e([].push);o.exports=function(f,c){var d,p=n(f),l=0,h=[];for(d in p)!r(s,d)&&r(p,d)&&u(h,d);for(;c.length>l;)r(p,d=c[l++])&&(~i(h,d)||u(h,d));return h}},function(o,a,t){var e=t(26),r=Math.min;o.exports=function(n){return n>0?r(e(n),9007199254740991):0}},function(o,a,t){var e=t(123);o.exports=function(r,n){return new(e(r))(n===0?0:n)}},function(o,a,t){var e=t(2),r=t(1),n=t(3),i=t(49),s=t(12),u=t(57),f=function(){},c=[],d=s("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,u(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,a,t){var e,r=t(0),n=t(50),i=t(3),s=t(127),u=t(31),f=t(51),c=t(85),d=r.Function,p=/MSIE .\./.test(u)||s&&((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,a,t){var e=TypeError;o.exports=function(r,n){if(r<n)throw new e("Not enough arguments");return r}},function(o,a,t){var e=t(61),r=t(14),n=t(129);e||r(Object.prototype,"toString",n,{unsafe:!0})},function(o,a,t){var e,r,n,i,s=t(0),u=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=s.setImmediate,S=s.clearImmediate,x=s.process,I=s.Dispatch,E=s.Function,C=s.MessageChannel,k=s.String,A=0,U={};p(function(){e=s.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){s.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(){u(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)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&e&&e.protocol!=="file:"&&!p(B)?(r=B,s.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,a,t){var e=t(16),r=t(2);o.exports=function(n){if(e(n)==="Function")return r(n)}},function(o,a,t){var e=t(12);o.exports=e("document","documentElement")},function(o,a,t){var e=t(31);o.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},function(o,a,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,a,t){o.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},function(o,a,t){var e=t(53),r=t(8),n=t(9),i=t(32),s=t(146),u=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(s(S)){for(x=0,I=u(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,a,t){var e=t(49),r=t(42),n=t(29),i=t(37),s=t(5)("iterator");o.exports=function(u){if(!n(u))return r(u,s)||r(u,"@@iterator")||i[e(u)]}},function(o,a,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,a,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,a,t){var e=t(7),r=t(76),n=t(10),i=t(9),s=t(18),u=t(65);a.f=e&&!r?Object.defineProperties:function(f,c){i(f);for(var d,p=s(c),l=u(c),h=l.length,v=0;h>v;)n.f(f,d=l[v++],p[d]);return f}},function(o,a,t){var e=t(50),r=t(8),n=t(2),i=t(162),s=t(1),u=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=u(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,dt=[];(Y=b(D,G))!==null&&(E(dt,Y),tt);)l(Y[0])===""&&(D.lastIndex=v(G,p(D.lastIndex),rt));for(var pt,yt="",mt=0,ut=0;ut<dt.length;ut++){for(var ft,_t=l((Y=dt[ut])[0]),It=S(x(d(Y.index),G.length),0),Et=[],vt=1;vt<Y.length;vt++)E(Et,(pt=Y[vt])===void 0?pt:String(pt));var ht=Y.groups;if(et){var xt=I([_t],Et,It,G);ht!==void 0&&E(xt,ht),ft=l(e(P,void 0,xt))}else ft=y(_t,G,It,Et,ht,P);It>=mt&&(yt+=k(G,mt,It)+ft,mt=It+_t.length)}return yt+k(G,mt)}]},!!s(function(){var V=/./;return V.exec=function(){var F=[];return F.groups={a:"7"},F},"".replace(V,"$<a>")!=="7"})||!A||U)},function(o,a,t){var e=t(2),r=t(26),n=t(15),i=t(20),s=e("".charAt),u=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=u(g,y))<55296||h>56319||y+1===b||(v=u(g,y+1))<56320||v>57343?d?s(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,a,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,a,t){var e=t(53),r=t(2),n=t(71),i=t(19),s=t(47),u=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=s(A),V=e(S,x),F=0,z=I||u,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,a,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,a,t){var e=t(43)("span").classList,r=e&&e.constructor&&e.constructor.prototype;o.exports=r===Object.prototype?void 0:r},function(o,a,t){var e=t(2);o.exports=e(1 .valueOf)},function(o,a,t){var e=t(0);o.exports=e},function(o,a,t){var e=t(5);a.f=e},function(o,a,t){var e=t(8),r=t(12),n=t(5),i=t(14);o.exports=function(){var s=r("Symbol"),u=s&&s.prototype,f=u&&u.valueOf,c=n("toPrimitive");u&&!u[c]&&i(u,c,function(d){return e(f,this)},{arity:1})}},function(o,a,t){var e=t(22);o.exports=e&&!!Symbol.for&&!!Symbol.keyFor},function(o,a,t){var e=t(18),r=t(190),n=t(37),i=t(25),s=t(10).f,u=t(110),f=t(113),c=t(13),d=t(7),p=i.set,l=i.getterFor("Array Iterator");o.exports=u(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{s(h,"name",{value:"values"})}catch(v){}},function(o,a,t){var e=t(4),r=t(8),n=t(13),i=t(78),s=t(3),u=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){u(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):s(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,a,t){var e,r,n,i=t(1),s=t(3),u=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),!u(e)||i(function(){var g={};return e[h].call(g)!==g})?e={}:l&&(e=f(e)),s(e[h])||d(e,h,function(){return this}),o.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:v}},function(o,a,t){var e=t(6),r=t(3),n=t(19),i=t(44),s=t(192),u=i("IE_PROTO"),f=Object,c=f.prototype;o.exports=s?f.getPrototypeOf:function(d){var p=n(d);if(e(p,u))return p[u];var l=p.constructor;return r(l)&&p instanceof l?l.prototype:p instanceof f?c:null}},function(o,a,t){o.exports=function(e,r){return{value:e,done:r}}},function(o,a,t){o.exports=function(e){var r=[];return r.toString=function(){return this.map(function(n){var i=function(s,u){var f=s[1]||"",c=s[3];if(!c)return f;if(u&&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,s){typeof n=="string"&&(n=[[null,n,""]]);var u={};if(s)for(var f=0;f<this.length;f++){var c=this[f][0];c!=null&&(u[c]=!0)}for(var d=0;d<n.length;d++){var p=[].concat(n[d]);s&&u[p[0]]||(i&&(p[2]?p[2]="".concat(i," and ").concat(p[2]):p[2]=i),r.push(p))}},r}},function(o,a){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,a,t){var e=t(0),r=t(3),n=e.WeakMap;o.exports=r(n)&&/native code/.test(String(n))},function(o,a,t){var e=t(12),r=t(2),n=t(46),i=t(59),s=t(9),u=r([].concat);o.exports=e("Reflect","ownKeys")||function(f){var c=n.f(s(f)),d=i.f;return d?u(c,d(f)):c}},function(o,a,t){var e=t(18),r=t(119),n=t(47),i=function(s){return function(u,f,c){var d,p=e(u),l=n(p),h=r(c,l);if(s&&f!=f){for(;l>h;)if((d=p[h++])!=d)return!0}else for(;l>h;h++)if((s||h in p)&&p[h]===f)return s||h||0;return!s&&-1}};o.exports={includes:i(!0),indexOf:i(!1)}},function(o,a,t){var e=t(26),r=Math.max,n=Math.min;o.exports=function(i,s){var u=e(i);return u<0?r(u+s,0):n(u,s)}},function(o,a,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,a,t){var e=TypeError;o.exports=function(r){if(r>9007199254740991)throw e("Maximum allowed index exceeded");return r}},function(o,a,t){var e=t(40),r=t(10),n=t(28);o.exports=function(i,s,u){var f=e(s);f in i?r.f(i,f,n(0,u)):i[f]=u}},function(o,a,t){var e=t(48),r=t(83),n=t(11),i=t(5)("species"),s=Array;o.exports=function(u){var f;return e(u)&&(f=u.constructor,(r(f)&&(f===s||e(f.prototype))||n(f)&&(f=f[i])===null)&&(f=void 0)),f===void 0?s:f}},function(o,a,t){var e=t(1),r=t(5),n=t(41),i=r("species");o.exports=function(s){return n>=51||!e(function(){var u=[];return(u.constructor={})[i]=function(){return{foo:1}},u[s](Boolean).foo!==1})}},function(o,a,t){t(126),t(128)},function(o,a,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,a,t){o.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},function(o,a,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,a,t){var e=t(61),r=t(49);o.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}},function(o,a,t){t(131),t(145),t(150),t(151),t(152),t(153)},function(o,a,t){var e,r,n,i=t(4),s=t(13),u=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,dt=Y,pt=!!(rt&&rt.createEvent&&f.dispatchEvent),yt=function(q){var st;return!(!y(q)||!g(st=q.then))&&st},mt=function(q,st){var T,w,O,M=st.value,_=st.state===1,$=_?q.ok:q.fail,L=q.resolve,K=q.reject,Q=q.domain;try{$?(_||(st.rejection===2&&Et(st),st.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=yt(T))?c(w,T,L,K):L(T)):K(M)}catch(X){Q&&!O&&Q.exit(),K(X)}},ut=function(q,st){q.notified||(q.notified=!0,x(function(){for(var T,w=q.reactions;T=w.get();)mt(T,q);q.notified=!1,st&&!q.rejection&&_t(q)}))},ft=function(q,st,T){var w,O;pt?((w=rt.createEvent("Event")).promise=st,w.reason=T,w.initEvent(q,!1,!0),f.dispatchEvent(w)):w={promise:st,reason:T},!z&&(O=f["on"+q])?O(w):q==="unhandledrejection"&&I("Unhandled promise rejection",T)},_t=function(q){c(S,f,function(){var st,T=q.facade,w=q.value;if(It(q)&&(st=E(function(){u?tt.emit("unhandledRejection",w,T):ft("unhandledrejection",T,w)}),q.rejection=u||It(q)?2:1,st.error))throw st.value})},It=function(q){return q.rejection!==1&&!q.parent},Et=function(q){c(S,f,function(){var st=q.facade;u?tt.emit("rejectionHandled",st):ft("rejectionhandled",st,q.value)})},vt=function(q,st,T){return function(w){q(st,w,T)}},ht=function(q,st,T){q.done||(q.done=!0,T&&(q=T),q.value=st,q.state=2,ut(q,!0))},xt=function(q,st,T){if(!q.done){q.done=!0,T&&(q=T);try{if(q.facade===st)throw new et("Promise can't be resolved itself");var w=yt(st);w?x(function(){var O={done:!1};try{c(w,st,vt(xt,O,q),vt(ht,O,q))}catch(M){ht(O,M,q)}}):(q.value=st,q.state=1,ut(q,!1))}catch(O){ht({done:!1},O,q)}}};if(F&&(Z=(G=function(q){b(this,Z),v(q),c(e,this);var st=j(this);try{q(vt(xt,st),vt(ht,st))}catch(T){ht(st,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,st){var T=j(this),w=Y(m(this,G));return T.parent=!0,w.ok=!g(q)||q,w.fail=g(st)&&st,w.domain=u?tt.domain:void 0,T.state===0?T.reactions.add(w):x(function(){mt(w,T)}),w.promise}),r=function(){var q=new e,st=j(q);this.promise=q,this.resolve=vt(xt,st),this.reject=vt(ht,st)},V.f=Y=function(q){return q===G||q===void 0?new r(q):dt(q)},!s&&g(A)&&D!==Object.prototype)){n=D.then,B||d(D,"then",function(q,st){var T=this;return new G(function(w,O){c(n,T,w,O)}).then(q,st)},{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,a,t){var e=t(2),r=t(17);o.exports=function(n,i,s){try{return e(r(Object.getOwnPropertyDescriptor(n,i)[s]))}catch(u){}}},function(o,a,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,a,t){var e=t(11);o.exports=function(r){return e(r)||r===null}},function(o,a,t){var e=t(12),r=t(63),n=t(5),i=t(7),s=n("species");o.exports=function(u){var f=e(u);i&&f&&!f[s]&&r(f,s,{configurable:!0,get:function(){return this}})}},function(o,a,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,a,t){var e=t(9),r=t(138),n=t(29),i=t(5)("species");o.exports=function(s,u){var f,c=e(s).constructor;return c===void 0||n(f=e(c)[i])?u:r(f)}},function(o,a,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,a,t){var e,r,n,i,s,u=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=u.MutationObserver||u.WebKitMutationObserver,b=u.document,m=u.process,S=u.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,s=c(i.then,i),e=function(){s(E)}):g?e=function(){m.nextTick(E)}:(d=c(d,u),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,a,t){var e=t(0),r=t(7),n=Object.getOwnPropertyDescriptor;o.exports=function(i){if(!r)return e[i];var s=n(e,i);return s&&s.value}},function(o,a,t){var e=t(31);o.exports=/ipad|iphone|ipod/i.test(e)&&typeof Pebble!="undefined"},function(o,a,t){var e=t(31);o.exports=/web0s(?!.*chrome)/i.test(e)},function(o,a,t){o.exports=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch(n){}}},function(o,a,t){var e=t(92),r=t(52);o.exports=!e&&!r&&typeof window=="object"&&typeof document=="object"},function(o,a,t){var e=t(4),r=t(8),n=t(17),i=t(36),s=t(64),u=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=s(function(){var v=n(c.resolve),g=[],y=0,b=1;u(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,a,t){var e=t(5),r=t(37),n=e("iterator"),i=Array.prototype;o.exports=function(s){return s!==void 0&&(r.Array===s||i[n]===s)}},function(o,a,t){var e=t(8),r=t(17),n=t(9),i=t(32),s=t(94),u=TypeError;o.exports=function(f,c){var d=arguments.length<2?s(f):c;if(r(d))return n(e(d,f));throw new u(i(f)+" is not iterable")}},function(o,a,t){var e=t(8),r=t(9),n=t(42);o.exports=function(i,s,u){var f,c;r(i);try{if(!(f=n(i,"return"))){if(s==="throw")throw u;return u}f=e(f,i)}catch(d){c=!0,f=d}if(s==="throw")throw u;if(c)throw f;return r(f),u}},function(o,a,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(s){}o.exports=function(s,u){try{if(!u&&!r)return!1}catch(d){return!1}var f=!1;try{var c={};c[e]=function(){return{next:function(){return{done:f=!0}}}},s(c)}catch(d){}return f}},function(o,a,t){var e=t(4),r=t(13),n=t(35).CONSTRUCTOR,i=t(34),s=t(12),u=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&&u(i)){var d=s("Promise").prototype.catch;c.catch!==d&&f(c,"catch",d,{unsafe:!0})}},function(o,a,t){var e=t(4),r=t(8),n=t(17),i=t(36),s=t(64),u=t(93);e({target:"Promise",stat:!0,forced:t(95)},{race:function(f){var c=this,d=i.f(c),p=d.reject,l=s(function(){var h=n(c.resolve);u(f,function(v){r(h,c,v).then(d.resolve,p)})});return l.error&&p(l.value),d.promise}})},function(o,a,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,a,t){var e=t(4),r=t(12),n=t(13),i=t(34),s=t(35).CONSTRUCTOR,u=t(154),f=r("Promise"),c=n&&!s;e({target:"Promise",stat:!0,forced:n||s},{resolve:function(d){return u(c&&this===f?i:this,d)}})},function(o,a,t){var e=t(9),r=t(11),n=t(36);o.exports=function(i,s){if(e(i),r(s)&&s.constructor===i)return s;var u=n.f(i);return(0,u.resolve)(s),u.promise}},function(o,a,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,a,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 s(y){for(var b=-1,m=0;m<i.length;m++)if(i[m].identifier===y){b=m;break}return b}function u(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=s(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=u(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=s(m[x]);i[I].references--}for(var E=u(S,b),C=0;C<m.length;C++){var k=s(m[C]);i[k].references===0&&(i[k].updater(),i.splice(k,1))}m=E}}}},function(o,a,t){t.r(a);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}',""]),a.default=r},function(o,a,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,a,t){var e=t(1),r=t(0).RegExp,n=e(function(){var u=r("a","y");return u.lastIndex=2,u.exec("abcd")!==null}),i=n||e(function(){return!r("a","y").sticky}),s=n||e(function(){var u=r("^r","gy");return u.lastIndex=2,u.exec("str")!==null});o.exports={BROKEN_CARET:s,MISSED_STICKY:i,UNSUPPORTED_Y:n}},function(o,a,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,a,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,a,t){t(66);var e=t(88),r=t(14),n=t(67),i=t(1),s=t(5),u=t(24),f=s("species"),c=RegExp.prototype;o.exports=function(d,p,l,h){var v=s(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&&u(c[v],"sham",!0)}},function(o,a,t){var e=t(99).charAt;o.exports=function(r,n,i){return n+(i?e(r,n).length:1)}},function(o,a,t){var e=t(2),r=t(19),n=Math.floor,i=e("".charAt),s=e("".replace),u=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),s(g,m,function(S,x){var I;switch(i(x,0)){case"$":return"$";case"&":return d;case"`":return u(p,0,l);case"'":return u(p,y);case"<":I=v[u(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,a,t){var e=t(8),r=t(9),n=t(3),i=t(16),s=t(67),u=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(s,f,c);throw new u("RegExp#exec called on incompatible receiver")}},function(o,a,t){t(4)({target:"Object",stat:!0,sham:!t(7)},{create:t(27)})},function(o,a,t){var e=t(4),r=t(100);e({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},function(o,a,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,a,t){var e=t(0),r=t(102),n=t(103),i=t(100),s=t(24),u=function(c){if(c&&c.forEach!==i)try{s(c,"forEach",i)}catch(d){c.forEach=i}};for(var f in r)r[f]&&u(e[f]&&e[f].prototype);u(n)},function(o,a,t){var e=t(4),r=t(2),n=t(26),i=t(104),s=t(171),u=t(1),f=RangeError,c=String,d=Math.floor,p=r(s),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:u(function(){return h(8e-5,3)!=="0.000"||h(.9,0)!=="1"||h(1.255,2)!=="1.25"||h(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!u(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,a,t){var e=t(26),r=t(15),n=t(20),i=RangeError;o.exports=function(s){var u=r(n(this)),f="",c=e(s);if(c<0||c===1/0)throw new i("Wrong number of repetitions");for(;c>0;(c>>>=1)&&(u+=u))1&c&&(f+=u);return f}},function(o,a,t){var e=t(68),r=t(107);e("toPrimitive"),r()},function(o,a,t){var e=t(6),r=t(14),n=t(174),i=t(5)("toPrimitive"),s=Date.prototype;e(s,i)||r(s,i,n)},function(o,a,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,a,t){t(176),t(178),t(179),t(180),t(182)},function(o,a,t){var e=t(4),r=t(0),n=t(8),i=t(2),s=t(13),u=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"),dt=rt.set,pt=rt.getterFor("Symbol"),yt=Object.prototype,mt=r.Symbol,ut=mt&&mt.prototype,ft=r.RangeError,_t=r.TypeError,It=r.QObject,Et=E.f,vt=C.f,ht=x.f,xt=A.f,q=i([].push),st=F("symbols"),T=F("op-symbols"),w=F("wks"),O=!It||!It.prototype||!It.prototype.findChild,M=function(R,H,W){var J=Et(yt,H);J&&delete yt[H],vt(R,H,W),J&&R!==yt&&vt(yt,H,J)},_=u&&c(function(){return b(vt({},"a",{get:function(){return vt(this,"a",{value:7}).a}})).a!==7})?M:vt,$=function(R,H){var W=st[R]=b(ut);return dt(W,{type:"Symbol",tag:R,description:H}),u||(W.description=H),W},L=function(R,H,W){R===yt&&L(T,H,W),l(R);var J=v(H);return l(W),d(st,J)?(W.enumerable?(d(R,Y)&&R[Y][J]&&(R[Y][J]=!1),W=b(W,{enumerable:y(0,!1)})):(d(R,Y)||vt(R,Y,y(1,b(null))),R[Y][J]=!0),_(R,J,W)):vt(R,J,W)},K=function(R,H){l(R);var W=h(H),J=m(W).concat(at(W));return tt(J,function(it){u&&!n(Q,W,it)||L(R,it,W[it])}),R},Q=function(R){var H=v(R),W=n(xt,this,H);return!(this===yt&&d(st,H)&&!d(T,H))&&(!(W||!d(this,H)||!d(st,H)||d(this,Y)&&this[Y][H])||W)},X=function(R,H){var W=h(R),J=v(H);if(W!==yt||!d(st,J)||d(T,J)){var it=Et(W,J);return!it||!d(st,J)||d(W,Y)&&W[Y][J]||(it.enumerable=!0),it}},N=function(R){var H=ht(h(R)),W=[];return tt(H,function(J){d(st,J)||d(B,J)||q(W,J)}),W},at=function(R){var H=R===yt,W=ht(H?T:h(R)),J=[];return tt(W,function(it){!d(st,it)||H&&!d(yt,it)||q(J,st[it])}),J};f||(U(ut=(mt=function(){if(p(ut,this))throw new _t("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===yt&&n(W,T,J),d(it,Y)&&d(it[Y],H)&&(it[Y][H]=!1);var Ct=y(1,J);try{_(it,H,Ct)}catch(kt){if(!(kt instanceof ft))throw kt;M(it,H,Ct)}};return u&&O&&_(yt,H,{configurable:!0,set:W}),$(H,R)}).prototype,"toString",function(){return pt(this).tag}),U(mt,"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)},u&&(V(ut,"description",{configurable:!0,get:function(){return pt(this).description}}),s||U(yt,"propertyIsEnumerable",Q,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!f,sham:!f},{Symbol:mt}),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:!u},{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(mt,"Symbol"),B[Y]=!0},function(o,a,t){var e=t(16),r=t(18),n=t(46).f,i=t(51),s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(u){return s&&e(u)==="Window"?function(f){try{return n(f)}catch(c){return i(s)}}(u):n(r(u))}},function(o,a,t){var e=t(4),r=t(12),n=t(6),i=t(15),s=t(23),u=t(108),f=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!u},{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,a,t){var e=t(4),r=t(6),n=t(30),i=t(32),s=t(23),u=t(108),f=s("symbol-to-string-registry");e({target:"Symbol",stat:!0,forced:!u},{keyFor:function(c){if(!n(c))throw new TypeError(i(c)+" is not a symbol");if(r(f,c))return f[c]}})},function(o,a,t){var e=t(4),r=t(12),n=t(50),i=t(8),s=t(2),u=t(1),f=t(3),c=t(30),d=t(51),p=t(181),l=t(22),h=String,v=r("JSON","stringify"),g=s(/./.exec),y=s("".charAt),b=s("".charCodeAt),m=s("".replace),S=s(1 .toString),x=/[\uD800-\uDFFF]/g,I=/^[\uD800-\uDBFF]$/,E=/^[\uDC00-\uDFFF]$/,C=!l||u(function(){var V=r("Symbol")("stringify detection");return v([V])!=="[null]"||v({a:V})!=="{}"||v(Object(V))!=="{}"}),k=u(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,a,t){var e=t(2),r=t(48),n=t(3),i=t(16),s=t(15),u=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"?u(d,l):typeof l!="number"&&i(l)!=="Number"&&i(l)!=="String"||u(d,s(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,a,t){var e=t(4),r=t(22),n=t(1),i=t(59),s=t(19);e({target:"Object",stat:!0,forced:!r||n(function(){i.f(1)})},{getOwnPropertySymbols:function(u){var f=i.f;return f?f(s(u)):[]}})},function(o,a,t){var e=t(4),r=t(7),n=t(0),i=t(2),s=t(6),u=t(3),f=t(21),c=t(15),d=t(63),p=t(79),l=n.Symbol,h=l&&l.prototype;if(r&&u(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(s(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,a,t){var e=t(4),r=t(13),n=t(7),i=t(0),s=t(105),u=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=s.Number,E=x.prototype,C=i.TypeError,k=u("".slice),A=u("".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,dt,pt=h(P,"number");if(l(pt))throw new C("Cannot convert a Symbol value to a number");if(typeof pt=="string"&&pt.length>2){if(pt=S(pt),(D=A(pt,0))===43||D===45){if((G=A(pt,2))===88||G===120)return NaN}else if(D===48){switch(A(pt,1)){case 66:case 98:Z=2,et=49;break;case 79:case 111:Z=8,et=55;break;default:return+pt}for(tt=(rt=k(pt,2)).length,Y=0;Y<tt;Y++)if((dt=A(rt,Y))<48||dt>et)return NaN;return parseInt(rt,Z)}}return+pt},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(s.Number,I),(F||r)&&j(s.Number,x)},function(o,a,t){var e=t(3),r=t(11),n=t(62);o.exports=function(i,s,u){var f,c;return n&&e(f=s.constructor)&&f!==u&&r(c=f.prototype)&&c!==u.prototype&&n(i,c),i}},function(o,a,t){var e=t(2),r=t(20),n=t(15),i=t(187),s=e("".replace),u=RegExp("^["+i+"]+"),f=RegExp("(^|[^"+i+"])["+i+"]+$"),c=function(d){return function(p){var l=n(r(p));return 1&d&&(l=s(l,u,"")),2&d&&(l=s(l,f,"$1")),l}};o.exports={start:c(1),end:c(2),trim:c(3)}},function(o,a,t){o.exports=`
|
|
8
|
+
\v\f\r \u2028\u2029\uFEFF`},function(o,a,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,a,t){t(68)("iterator")},function(o,a,t){var e=t(5),r=t(27),n=t(10).f,i=e("unscopables"),s=Array.prototype;s[i]===void 0&&n(s,i,{configurable:!0,value:r(null)}),o.exports=function(u){s[i][u]=!0}},function(o,a,t){var e=t(111).IteratorPrototype,r=t(27),n=t(28),i=t(33),s=t(37),u=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),s[l]=u,f}},function(o,a,t){var e=t(1);o.exports=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},function(o,a,t){var e=t(99).charAt,r=t(15),n=t(25),i=t(110),s=t(113),u=n.set,f=n.getterFor("String Iterator");i(String,"String",function(c){u(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?s(void 0,!0):(c=e(p,l),d.index+=c.length,s(c,!1))})},function(o,a,t){var e=t(0),r=t(102),n=t(103),i=t(109),s=t(24),u=t(33),f=t(5)("iterator"),c=i.values,d=function(l,h){if(l){if(l[f]!==c)try{s(l,f,c)}catch(g){l[f]=c}if(u(l,h,!0),r[h]){for(var v in i)if(l[v]!==i[v])try{s(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,a,t){t(4)({target:"Array",stat:!0},{isArray:t(48)})},function(o,a,t){t.r(a),t.d(a,"EmotionParser",function(){return v}),t.d(a,"EmotionParsingMode",function(){return i}),t.d(a,"LangType",function(){return e}),t.d(a,"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,s=Object.prototype.hasOwnProperty;function u(b,m){return s.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__"&&u(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(u(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 u(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 Nt{constructor(a){this._plvChat=a}get _plvSocket(){return this._plvChat.plvSocket}}class Ce extends Nt{constructor(){super(...arguments);wt(this,"__emotionParser");wt(this,"__getEmotionImagePromise")}setupEmotionParser(){return new Promise(t=>{if(this.__emotionParser)return t();zt.emotionsReady(e=>(this.__emotionParser=e,t()))})}getEmotionFaceDomList(t=!0){const e=this.getEmotionParser();return e?e.genDOMList({lang:t?zt.LangType.ZH_CN:zt.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?zt.LangType.ZH_CN:zt.LangType.English))!=null?n:t}getEmotionParser(){return this.__emotionParser||console.warn("EmotionParser is not ready"),this.__emotionParser}getEmotionImages(){return lt(this,null,function*(){return this.__getEmotionImagePromise||(this.__getEmotionImagePromise=new Promise(t=>{lt(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 Te extends ue{__getMsgUid(a){const t=a.user;if("uid"in t)return t.uid}filterApiMsgList(a){const t=[];return a.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(a,t){if(a==="1")return this.__filterRewardApiMsg(t)}__filterApiQuote(a){if(typeof a=="undefined")return;const t=a.msgType||"speak",e="",r=this._filterUser(a.user),i={speak:s=>({id:e,time:Date.now(),user:r,msgSource:ot.Speak,content:s.content}),chatImg:s=>({id:e,time:Date.now(),user:r,msgSource:ot.Image,imageId:"",imageUrl:s.image.url,size:{width:s.image.width,height:s.image.height}}),file:s=>{const u=JSON.parse(s.content);return{id:e,time:Date.now(),user:r,msgSource:ot.File,fileName:u.name,fileUrl:u.url}},redpaper:s=>{const u=JSON.parse(s.content);return Mt(Ot({},u),{id:e,time:Date.now(),user:r,msgSource:ot.Redpaper,content:u.content})},customerMessage:s=>({id:e,time:Date.now(),user:r,msgSource:ot.CustomServer,content:s.content})}[t];if(i)return i(a)}__filterCommonApiMsg(a,t){const e=this._filterUser(a.user);return{id:a.id,msgSource:t,time:a.time,user:e}}__filterSpeakApiMsg(a){const t=Mt(Ot({},this.__filterCommonApiMsg(a,ot.Speak)),{content:a.content,quote:this.__filterApiQuote(a.quote),isOverLength:!!a.overLen});return a.translateResult&&(t.translateResult=a.translateResult.reduce((e,r)=>(e[r.language]=r.result,e),{})),t}__filterImgApiMsg(a){return a.content.type==="chatImg"?Mt(Ot({},this.__filterCommonApiMsg(a,ot.Image)),{imageId:a.content.id,imageUrl:a.content.uploadImgUrl,size:a.content.size}):Mt(Ot({},this.__filterCommonApiMsg(a,ot.Emotion)),{emotionId:a.content.id,emotionUrl:a.content.uploadImgUrl})}__filterRewardApiMsg(a){return Mt(Ot({},this.__filterCommonApiMsg(a,ot.Reward)),{gimg:a.content.gimg,goodNum:a.content.goodNum,donateType:a.content.gimg?Dt.Good:Dt.Cash,rewardContent:a.content.rewardContent,isSelf:this._plvChat.plvSocket.isCurrentUser(a.user.userId)})}__filterFileApiMsg(a){const t=JSON.parse(a.content);return ne(t.name)===Rt.Image?Mt(Ot({},this.__filterCommonApiMsg(a,ot.Image)),{imageId:Ft(),imageUrl:t.url}):Mt(Ot({},this.__filterCommonApiMsg(a,ot.File)),{fileUrl:t.url,fileName:t.name})}__filterRedpaperApiMsg(a){var r;const t=(r=a.userTags)==null?void 0:r.map(n=>Number(n));return delete a.userTags,Ot(Mt(Ot({},a),{userLabels:t}),this.__filterCommonApiMsg(a,ot.Redpaper))}__filterCustomServerApiMsg(a){return Mt(Ot({},this.__filterCommonApiMsg(a,ot.CustomServer)),{content:a.content})}__filterCustomClientApiMsg(a){return Ot(Ot({},a),this.__filterCommonApiMsg(a,ot.CustomClient))}}class ke extends Nt{constructor(t){var e;super(t);wt(this,"__chatHistoryEncrypt",!1);wt(this,"__apiFilter",new Te(this._plvChat));this.__chatHistoryEncrypt=(e=t.config.chatHistoryEncrypt)!=null?e:!1}setChatHistoryEncrypt(t){this.__chatHistoryEncrypt=t}getChatHistoryByTime(){return lt(this,arguments,function*(t={}){const{timestamp:e,count:r,size:n=10,mode:i=Ut.Prev,getBanStatus:s=!1,onlySpecialMsg:u=!1}=t,c={roomId:(yield this._plvSocket.getChannelInfo()).channelId,timestamp:e,index:r,size:n};u&&(c.getSpecialMessage="Y"),i===Ut.Prev?c.order="desc":c.order="asc",s&&(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===Ut.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 lt(this,arguments,function*(t={}){const{timestamp:e=Date.now(),size:r,mode:n=Ut.Prev}=t,i=yield this._plvSocket.getChannelInfo(),s=this._plvSocket.getUserInfo();if(!s.workWechatTagId)throw new Error("userInfo.workWechatTagId is undefined");const u={roomId:i.channelId,timestamp:e,size:r,userId:s.userId,tagId:s.workWechatTagId,direction:1};let c=(yield this._plvSocket.chatApi.get("/front/channel/tags/chat-history/get",u)).list;return n===Ut.Prev&&(c=c.reverse()),this.__apiFilter.filterApiMsgList(c)})}}class Me extends Nt{constructor(){super(...arguments);wt(this,"__isListened",!1)}listenManageEvent(){this.__isListened||(this._plvSocket.addSocketHandles(jt,{ADD_SHIELD:t=>{t.data.banType==="userId"?this._plvChat.eventEmitter.emit(St.UserBanned,{userId:t.value}):this._plvChat.eventEmitter.emit(St.IpBanned,{ip:t.value})},REMOVE_SHIELD:t=>{t.data.banType==="userId"?this._plvChat.eventEmitter.emit(St.UserCancelBanned,{userId:t.value}):this._plvChat.eventEmitter.emit(St.IpCancelBanned,{ip:t.value})},KICK:t=>{this._plvChat.eventEmitter.emit(St.UserKicked,{userId:t.user.userId})},UNKICK:t=>{t.data.kickType==="userId"&&this._plvChat.eventEmitter.emit(St.UserCancelKicked,{userId:t.data.userId})}}),this.__isListened=!0)}deleteMsg(t){return lt(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:Pt.UnknownError}})}clearMsg(){return lt(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 lt(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:Pt.PlatformProhibited}:{success:!0}})}cancelBanUser(t){return lt(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:Pt.PlatformProhibited}:{success:!0}})}getBannedUserList(){return lt(this,arguments,function*(t={}){const{keyword:e,pageNumber:r=1,pageSize:n=10}=t,s={roomId:(yield this._plvSocket.getChannelInfo()).channelId,type:"userId",toGetSubRooms:!0,page:r,size:n};e&&(s.keyword=e);const u=yield this._plvSocket.chatApi.get("/admin/listUserBanned",s,{appendChannelId:!1,appendUserId:!1});return{pageNumber:r,pageSize:n,totalItems:u.total,totalPages:Math.ceil(u.total/n),contents:u.list.map(f=>({userId:f.userId,nick:f.nick,clientIp:f.clientIp,platformProhibited:$t(f.isAccount,"N")}))}})}banIp(t){return lt(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:Pt.PlatformProhibited}:{success:!0}})}cancelBanIp(t){return lt(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:Pt.PlatformProhibited}:{success:!0}})}getBannedIpList(){return lt(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 lt(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:Pt.PlatformProhibited}:(this._plvChat.eventEmitter.emit(St.UserKicked,{userId:t.userId}),{success:!0})})}cancelKickUser(t){return lt(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:Pt.PlatformProhibited}:{success:!0}})}getKickedUserList(){return lt(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:$t(r.isAccount,"N")}))}})}motivateLike(t){return lt(this,null,function*(){const{type:e=Qt.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 lt(this,null,function*(){const e={EVENT:"TO_TOP",id:t.msgId};yield this._plvSocket.emitSocket(e,"speak")})}cancelTopMsg(t){return lt(this,null,function*(){const e={EVENT:"CANCEL_TOP",id:t.id};yield this._plvSocket.emitSocket(e,"speak")})}setChatSwitch(t){return lt(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 lt(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 ce={[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},fe=[ot.Speak],le=[ot.Speak,ot.Image,ot.File,ot.Redpaper,ot.CustomServer,ot.Emotion];function Ae(o){const a=se(o),t=/(http[s]?:\/\/)([\w-]+(\.[\w-]+)+([\w\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?)/g,e=a.match(t);if(Array.isArray(e)&&e.length>0){let n="",i=a;return e.forEach(s=>{const[u]=i.split(s);n+=Ht(u)+`<a target="_blank" rel="noopener" href="${s}">${s}</a>`;const f=u+s;i=i.slice(f.length)}),i&&(n+=Ht(i)),n}return o}class Re extends Nt{constructor(t){super(t);wt(this,"topingMsgs",[]);wt(this,"__fullMessageRecord",{});this._plvSocket.addSocketHandles(jt,{onSliceID:e=>{e.data.speakTop&&(this.topingMsgs=this._plvChat.__socketFilter.__filterSpeakTopMsg(e.data.speakTop),this._plvChat.eventEmitter.emit(St.TopMsg,{topingMsgs:this.topingMsgs}))}}),this._plvSocket.addSocketHandles(jt,{TO_TOP:e=>{this.topingMsgs=this._plvChat.__socketFilter.__filterSpeakTopMsg(e),this._plvChat.eventEmitter.emit(St.TopMsg,{topingMsgs:this.topingMsgs})},CANCEL_TOP:e=>{this.topingMsgs=this.topingMsgs.filter(r=>r.id!==e.id),this._plvChat.eventEmitter.emit(St.TopMsg,{topingMsgs:this.topingMsgs})}},"speak")}isServiceMsg(t){return ce[t.msgSource]}canQuoteMsg(t){return le.includes(t.msgSource)}canTopMsg(t){return fe.includes(t.msgSource)}parseSpeakContent(t,e){const r=this._plvChat.emotion.getEmotionParser(),{parseLink:n=!1,removeEmotion:i=!1,parseEmotion:s=!1,parseLineBreak:u=!1}=e||{};let f=Ht(se(t));return f=f.replace(/ /g," "),n&&(f=Ae(f)),i&&r&&(f=r.removeAll(f)),s&&r&&(f=r.parse(f,zt.EmotionParsingMode.HTML)),u&&(f=_e(f)),f}getFullMessage(t){return lt(this,null,function*(){if(t&&!t.isOverLength)return new Promise(u=>u(t.content));const e=t.id,n=this._plvChat.status.getStatusInfo().autoTranslateLanguage;let i=e;n&&(i=`${e}-${n}`);let s=this.__fullMessageRecord[i];return s||(s=new Promise(u=>{lt(this,null,function*(){try{const f=yield this._plvSocket.emitSocket({EVENT:"GET_FULL_MESSAGE",id:e},"speak");u(f.content)}catch(f){u(t?t.content:""),console.error("[chat-module] getFullMessage request socket error")}})}),this.__fullMessageRecord[i]=s),s})}translateSpeak(t){return lt(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 lt(this,null,function*(){const{chatMsg:e}=t,r={EVENT:"GET_ORIGINAL_SPEAK",id:e.id};return(yield this._plvSocket.emitSocket(r,"speak")).content})}}class Pe extends Nt{getOnlineList(){return lt(this,arguments,function*(a={}){const{keyword:t=""}=a;return t?this.__getOnlineListByKeyword(a):this.__getOnlineListByNormal(a)})}__getOnlineListByKeyword(a){return lt(this,null,function*(){const{keyword:t="",getBanStatus:e=!1}=a,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(a){return lt(this,null,function*(){const{count:t=10,getBanStatus:e=!1}=a,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(a){return lt(this,null,function*(){var p;const{keyword:t="",count:e=10,searchType:r="attendance"}=a,n=yield this._plvSocket.getChannelInfo(),i=this._plvChat.utils.getDefaultResource();let s="/front/channel/white-list/get";const u={roomId:n.channelId,expectedArrivalType:"viewer_white",timestamp:Date.now(),online:r==="attendance"?"Y":"N"};a.score&&(u.score=a.score),t?(u.nick=t,s="/front/channel/search-white-list/get"):e&&(u.size=e);const f=yield this._plvSocket.chatApi.get(s,u,{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 Wt=/^(?:([a-z]+):)?\/{2,3}/i;function je(o,a){return Wt.test(o)}function Le(o,a){return Wt.test(a)||(a+="://"),je(o)?o.replace(Wt,a):a+o}class Ne extends Nt{__getCurrentChatMsgUserData(){return lt(this,null,function*(){const a=this._plvSocket.getUserInfo();return{userId:a.userId,nick:a.nick,pic:a.pic,userType:a.userType,actor:a.actor}})}__afterSendSocket(a){const{localId:t,newId:e,chatMsg:r}=a,n=Ot({},r);return n.id=e,n.isSended=!0,this._plvChat.eventEmitter.emit(St.ReplaceChatMessage,{id:t,chatMsg:n}),this._plvChat.eventEmitter.emit(St.SelfSendMessage,{chatMsg:n}),n}generateLocalMsg(a,t){return lt(this,null,function*(){const{emitLocalMsg:e=!0}=t,r=yield this.__getCurrentChatMsgUserData();let n;const i={[ot.Speak]:s=>lt(this,null,function*(){const f={id:s.localId||Ft(),msgSource:ot.Speak,time:Date.now(),user:r,content:Ht(s.content),isLocal:!0};if(s.quoteMsg){const c=s.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]:s=>lt(this,null,function*(){return{id:s.localId||Ft(),msgSource:ot.Image,time:Date.now(),user:r,imageId:s.imageId,imageUrl:s.imageUrl,size:s.size,isLocal:!0,localImageUrl:s.imageUrl}}),[ot.Emotion]:s=>lt(this,null,function*(){return{id:s.localId||Ft(),msgSource:ot.Emotion,time:Date.now(),user:r,emotionId:s.emotionId,emotionUrl:s.emotionUrl,isLocal:!0}})};return t.localMsg?n=t.localMsg:n=yield i[a](t),n.isSended=!1,e&&this._plvChat.eventEmitter.emit(St.ChatMessage,{chatMsg:n}),n})}sendSpeakMsg(a){return lt(this,null,function*(){if(!a.content)throw new Error("sendSpeakMsg fail, content is empty");const t=yield this.generateLocalMsg(ot.Speak,a),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};a.quoteMsg&&(n.quoteId=a.quoteMsg.id);const i=yield this._plvSocket.emitSocket(n,"message",{directCallback:!0}),s=i[0],u=i[1];let f=Ot({},t);return u!=null&&u.content&&(f.content=u.content),f=this.__afterSendSocket({localId:e,newId:s,chatMsg:f}),f})}sendImageMsg(a){return lt(this,null,function*(){const t=yield this.generateLocalMsg(ot.Image,a),e=t.id,r=yield this._plvSocket.getChannelInfo(),n={EVENT:"CHAT_IMG",roomId:r.channelId,values:[{id:t.imageId,uploadImgUrl:Le(t.imageUrl,"https"),size:t.size,status:"upLoadingSuccess",type:"chatImg",msgSource:"chatImg"}],accountId:r.accountId,channelId:r.channelId,sessionId:r.sessionId,needIdCallback:1},s=(yield this._plvSocket.emitSocket(n,"message",{directCallback:!0}))[0];return this.__afterSendSocket({localId:e,newId:s,chatMsg:t})})}choiceImageFileSend(){return lt(this,arguments,function*(a={}){const{choiceCallback:t}=a,e={};return yield this._plvChat.utils.uploadMultiImage({ready:n=>lt(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 s=e[i.imageId];s&&(s.isSendFailed=!0,this._plvChat.eventEmitter.emit(St.ReplaceChatMessage,{id:s.id,chatMsg:s}))}}),Object.values(e)})}sendEmotionImageMsg(a){return lt(this,null,function*(){const t=this._plvSocket,e=yield this.generateLocalMsg(ot.Emotion,a),r=e.id,n={id:a.emotionId},s=(yield t.emitSocket(n,"emotion")).messageId;return this.__afterSendSocket({localId:r,newId:s,chatMsg:e})})}sendSystemMsg(a,t){const e={id:Ft(),msgSource:ot.System,time:Date.now(),content:a,type:t};this._plvChat.eventEmitter.emit(St.ChatMessage,{chatMsg:e})}sendCustomServerMsg(a){return lt(this,null,function*(){yield this._plvSocket.polyvApi.get("/live/v4/chat/send-custom-message",{content:a.content})})}}class Ue extends Nt{constructor(t){super(t);wt(this,"__statusInfo",this.generateStatusInfo());this._plvSocket.addSocketHandles(jt,{onSliceID:e=>{this.__updateStatusInfo({autoTranslateLanguage:e.data.speakTranslateLanguage})},REMOVE_CONTENT:e=>{this._plvChat.eventEmitter.emit(St.RemoveChatMsg,{id:e.id})},REMOVE_HISTORY:()=>{this._plvChat.eventEmitter.emit(St.ClearMsgHistory,{})},CLOSEROOM:e=>{const r=e.value.closed;this.__updateStatusInfo({chatRoomIsClosed:r}),r?this._plvChat.eventEmitter.emit(St.CloseChatRoom,{}):this._plvChat.eventEmitter.emit(St.OpenChatRoom,{})}})}generateStatusInfo(){return{chatRoomIsClosed:!1,autoTranslateLanguage:void 0}}getStatusInfo(){return this.__statusInfo}__updateStatusInfo(t){this.__statusInfo=Ot(Ot({},this.__statusInfo),t),this._plvChat.eventEmitter.emit(St.StatusInfoUpdate,{statusInfo:this.__statusInfo})}setAutoTranslate(t){return lt(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(St.SetAutoTranslateLanguage,{language:t.language})})}}var Fe=function(o){var a={};function t(e){if(a[e])return a[e].exports;var r=a[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=a,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(s){return e[s]}.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,a,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,a,t){var e=t(27),r=Function.prototype,n=r.bind,i=r.call,s=e&&n.bind(i,i);o.exports=e?function(u){return u&&s(u)}:function(u){return u&&function(){return i.apply(u,arguments)}}},function(o,a){o.exports=function(t){try{return!!t()}catch(e){return!0}}},function(o,a,t){var e=t(0),r=t(26).f,n=t(18),i=t(12),s=t(59),u=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]||s(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;u(v,h)}(c.sham||h&&h.sham)&&n(v,"sham",!0),i(p,l,v,c)}}},function(o,a){o.exports=function(t){return typeof t=="function"}},function(o,a,t){var e=t(0),r=t(43),n=t(8),i=t(44),s=t(56),u=t(85),f=r("wks"),c=e.Symbol,d=c&&c.for,p=u?c:c&&c.withoutSetter||i;o.exports=function(l){if(!n(f,l)||!s&&typeof f[l]!="string"){var h="Symbol."+l;s&&n(c,l)?f[l]=c[l]:f[l]=u&&d?d(h):p(h)}return f[l]}},function(o,a,t){var e=t(2);o.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(o,a,t){var e=t(4);o.exports=function(r){return typeof r=="object"?r!==null:e(r)}},function(o,a,t){var e=t(1),r=t(21),n=e({}.hasOwnProperty);o.exports=Object.hasOwn||function(i,s){return n(r(i),s)}},function(o,a,t){var e=t(0),r=t(6),n=t(86),i=t(87),s=t(10),u=t(39),f=e.TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;a.f=r?i?function(p,l,h){if(s(p),l=u(l),s(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(s(p),l=u(l),s(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,a,t){var e=t(0),r=t(7),n=e.String,i=e.TypeError;o.exports=function(s){if(r(s))return s;throw i(n(s)+" is not an object")}},function(o,a,t){var e=t(27),r=Function.prototype.call;o.exports=e?r.bind(r):function(){return r.apply(r,arguments)}},function(o,a,t){var e=t(0),r=t(4),n=t(8),i=t(18),s=t(59),u=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:s(v,g)})(Function.prototype,"toString",function(){return r(this)&&d(this).source||u(this)})},function(o,a,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,a,t){var e=t(55),r=t(22);o.exports=function(n){return e(r(n))}},function(o,a,t){var e=t(0),r=t(4),n=function(i){return r(i)?i:void 0};o.exports=function(i,s){return arguments.length<2?n(e[i]):e[i]&&e[i][s]}},function(o,a,t){var e=t(1),r=e({}.toString),n=e("".slice);o.exports=function(i){return n(r(i),8,-1)}},function(o,a,t){var e=t(1);o.exports=e({}.isPrototypeOf)},function(o,a,t){var e=t(6),r=t(9),n=t(28);o.exports=e?function(i,s,u){return r.f(i,s,n(1,u))}:function(i,s,u){return i[s]=u,i}},function(o,a,t){var e,r,n,i=t(130),s=t(0),u=t(1),f=t(7),c=t(18),d=t(8),p=t(58),l=t(47),h=t(30),v=s.TypeError,g=s.WeakMap;if(i||p.state){var y=p.state||(p.state=new g),b=u(y.get),m=u(y.has),S=u(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,a,t){var e,r=t(10),n=t(106),i=t(62),s=t(30),u=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",u.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()};s[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,a,t){var e=t(0),r=t(22),n=e.Object;o.exports=function(i){return n(r(i))}},function(o,a,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,a,t){var e=t(0),r=t(4),n=t(42),i=e.TypeError;o.exports=function(s){if(r(s))return s;throw i(n(s)+" is not a function")}},function(o,a){o.exports=!1},function(o,a,t){var e=t(89),r=t(62).concat("length","prototype");a.f=Object.getOwnPropertyNames||function(n){return e(n,r)}},function(o,a,t){var e=t(6),r=t(11),n=t(83),i=t(28),s=t(14),u=t(39),f=t(8),c=t(86),d=Object.getOwnPropertyDescriptor;a.f=e?d:function(p,l){if(p=s(p),l=u(l),c)try{return d(p,l)}catch(h){}if(f(p,l))return i(!r(n.f,p,l),p[l])}},function(o,a,t){var e=t(2);o.exports=!e(function(){var r=function(){}.bind();return typeof r!="function"||r.hasOwnProperty("prototype")})},function(o,a){o.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(o,a,t){var e=t(23);o.exports=function(r,n){var i=r[n];return i==null?void 0:e(i)}},function(o,a){o.exports={}},function(o,a,t){var e=t(6),r=t(8),n=Function.prototype,i=e&&Object.getOwnPropertyDescriptor,s=r(n,"name"),u=s&&function(){}.name==="something",f=s&&(!e||e&&i(n,"name").configurable);o.exports={EXISTS:s,PROPER:u,CONFIGURABLE:f}},function(o,a,t){var e=t(61);o.exports=function(r){return e(r.length)}},function(o,a,t){var e=t(2),r=t(4),n=/#|\.prototype\./,i=function(d,p){var l=u[s(d)];return l==c||l!=f&&(r(p)?e(p):!!p)},s=i.normalize=function(d){return String(d).replace(n,".").toLowerCase()},u=i.data={},f=i.NATIVE="N",c=i.POLYFILL="P";o.exports=i},function(o,a,t){var e=t(1),r=t(23),n=t(27),i=e(e.bind);o.exports=function(s,u){return r(s),u===void 0?s:n?i(s,u):function(){return s.apply(u,arguments)}}},function(o,a,t){var e=t(65),r=t(12),n=t(134);e||r(Object.prototype,"toString",n,{unsafe:!0})},function(o,a,t){var e=t(9).f,r=t(8),n=t(5)("toStringTag");o.exports=function(i,s,u){i&&!u&&(i=i.prototype),i&&!r(i,n)&&e(i,n,{configurable:!0,value:s})}},function(o,a){o.exports={}},function(o,a,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,a,t){var e=t(84),r=t(40);o.exports=function(n){var i=e(n,"string");return r(i)?i:i+""}},function(o,a,t){var e=t(0),r=t(15),n=t(4),i=t(17),s=t(85),u=e.Object;o.exports=s?function(f){return typeof f=="symbol"}:function(f){var c=r("Symbol");return n(c)&&i(c.prototype,u(f))}},function(o,a,t){var e=t(15);o.exports=e("navigator","userAgent")||""},function(o,a,t){var e=t(0).String;o.exports=function(r){try{return e(r)}catch(n){return"Object"}}},function(o,a,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,a,t){var e=t(1),r=0,n=Math.random(),i=e(1 .toString);o.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+i(++r+n,36)}},function(o,a,t){var e=t(0),r=t(7),n=e.document,i=r(n)&&r(n.createElement);o.exports=function(s){return i?n.createElement(s):{}}},function(o,a,t){var e=t(1),r=t(4),n=t(58),i=e(Function.toString);r(n.inspectSource)||(n.inspectSource=function(s){return i(s)}),o.exports=n.inspectSource},function(o,a,t){var e=t(43),r=t(44),n=e("keys");o.exports=function(i){return n[i]||(n[i]=r(i))}},function(o,a){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,a,t){var e=t(16);o.exports=Array.isArray||function(r){return e(r)=="Array"}},function(o,a,t){var e=t(0),r=t(65),n=t(4),i=t(16),s=t(5)("toStringTag"),u=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=u(c),s))=="string"?p:f?i(d):(l=i(d))=="Object"&&n(d.callee)?"Arguments":l}},function(o,a,t){var e=t(1),r=t(10),n=t(138);o.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i,s=!1,u={};try{(i=e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(u,[]),s=u instanceof Array}catch(f){}return function(f,c){return r(f),n(c),s?i(f,c):f.__proto__=c,f}}():void 0)},function(o,a,t){var e=t(1);o.exports=e([].slice)},function(o,a,t){var e=t(3),r=t(54);e({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},function(o,a,t){var e,r,n=t(11),i=t(1),s=t(13),u=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=s(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(u,P),Y=P.source,dt=0,pt=G;if(rt&&(tt=S(tt,"y",""),m(tt,"g")===-1&&(tt+="g"),pt=x(G,P.lastIndex),P.lastIndex>0&&(!P.multiline||P.multiline&&b(G,P.lastIndex-1)!==`
|
|
12
|
+
`)&&(Y="(?: "+Y+")",pt=" "+pt,dt++),U=new RegExp("^(?:"+Y+")",tt)),C&&(U=new RegExp("^"+Y+"$(?!\\s)",tt)),I&&(V=P.lastIndex),F=n(g,rt?U:P,pt),rt?F?(F.input=x(F.input,dt),F[0]=x(F[0],dt),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,a,t){var e=t(0),r=t(1),n=t(2),i=t(16),s=e.Object,u=r("".split);o.exports=n(function(){return!s("z").propertyIsEnumerable(0)})?function(f){return i(f)=="String"?u(f,""):s(f)}:s},function(o,a,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,a,t){var e,r,n=t(0),i=t(41),s=n.process,u=n.Deno,f=s&&s.versions||u&&u.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,a,t){var e=t(0),r=t(59),n=e["__core-js_shared__"]||r("__core-js_shared__",{});o.exports=n},function(o,a,t){var e=t(0),r=Object.defineProperty;o.exports=function(n,i){try{r(e,n,{value:i,configurable:!0,writable:!0})}catch(s){e[n]=i}return i}},function(o,a,t){var e=t(48),r=Math.max,n=Math.min;o.exports=function(i,s){var u=e(i);return u<0?r(u+s,0):n(u,s)}},function(o,a,t){var e=t(48),r=Math.min;o.exports=function(n){return n>0?r(e(n),9007199254740991):0}},function(o,a){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(o,a,t){var e=t(3),r=t(93);e({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},function(o,a,t){var e=t(1),r=t(2),n=t(4),i=t(50),s=t(15),u=t(46),f=function(){},c=[],d=s("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,u(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,a,t){var e={};e[t(5)("toStringTag")]="z",o.exports=String(e)==="[object z]"},function(o,a,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,a,t){var e=t(0),r=t(95),n=t(96),i=t(93),s=t(18),u=function(c){if(c&&c.forEach!==i)try{s(c,"forEach",i)}catch(d){c.forEach=i}};for(var f in r)r[f]&&u(e[f]&&e[f].prototype);u(n)},function(o,a,t){var e=t(89),r=t(62);o.exports=Object.keys||function(n){return e(n,r)}},function(o,a,t){var e=t(15),r=t(9),n=t(5),i=t(6),s=n("species");o.exports=function(u){var f=e(u),c=r.f;i&&f&&!f[s]&&c(f,s,{configurable:!0,get:function(){return this}})}},function(o,a,t){var e=t(0),r=t(17),n=e.TypeError;o.exports=function(i,s){if(r(s,i))return i;throw n("Incorrect invocation")}},function(o,a,t){var e=t(0),r=t(34),n=t(11),i=t(10),s=t(42),u=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(s(y)+" is not iterable");if(u(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,a,t){var e=t(16),r=t(0);o.exports=e(r.process)=="process"},function(o,a,t){t(3)({target:"Array",stat:!0},{isArray:t(49)})},function(o,a,t){t(3)({target:"Object",stat:!0,sham:!t(6)},{create:t(20)})},function(o,a,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,a,t){var e=t(2),r=t(0).RegExp,n=e(function(){var u=r("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),i=n||e(function(){return!r("a","y").sticky}),s=n||e(function(){var u=r("^r","gy");return u.lastIndex=2,u.exec("str")!=null});o.exports={BROKEN_CARET:s,MISSED_STICKY:i,UNSUPPORTED_Y:n}},function(o,a,t){var e=t(1),r=t(22),n=t(13),i=t(78),s=e("".replace),u="["+i+"]",f=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),d=function(p){return function(l){var h=n(r(l));return 1&p&&(h=s(h,f,"")),2&p&&(h=s(h,c,"")),h}};o.exports={start:d(1),end:d(2),trim:d(3)}},function(o,a){o.exports=`
|
|
13
|
+
\v\f\r \u2028\u2029\uFEFF`},function(o,a,t){var e=t(4),r=t(7),n=t(51);o.exports=function(i,s,u){var f,c;return n&&e(f=s.constructor)&&f!==u&&r(c=f.prototype)&&c!==u.prototype&&n(i,c),i}},function(o,a,t){var e=t(0),r=t(8),n=t(4),i=t(21),s=t(47),u=t(118),f=s("IE_PROTO"),c=e.Object,d=c.prototype;o.exports=u?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,a,t){var e=t(3),r=t(11),n=t(24),i=t(31),s=t(4),u=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){u(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):s(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,a,t){var e,r,n,i,s;e=t(185),r=t(126).utf8,n=t(186),i=t(126).bin,(s=function(u,f){u.constructor==String?u=f&&f.encoding==="binary"?i.stringToBytes(u):r.stringToBytes(u):n(u)?u=Array.prototype.slice.call(u,0):Array.isArray(u)||u.constructor===Uint8Array||(u=u.toString());for(var c=e.bytesToWords(u),d=8*u.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=s._ff,b=s._gg,m=s._hh,S=s._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(u,f,c,d,p,l,h){var v=u+(f&c|~f&d)+(p>>>0)+h;return(v<<l|v>>>32-l)+f},s._gg=function(u,f,c,d,p,l,h){var v=u+(f&d|c&~d)+(p>>>0)+h;return(v<<l|v>>>32-l)+f},s._hh=function(u,f,c,d,p,l,h){var v=u+(f^c^d)+(p>>>0)+h;return(v<<l|v>>>32-l)+f},s._ii=function(u,f,c,d,p,l,h){var v=u+(c^(f|~d))+(p>>>0)+h;return(v<<l|v>>>32-l)+f},s._blocksize=16,s._digestsize=16,o.exports=function(u,f){if(u==null)throw new Error("Illegal argument "+u);var c=e.wordsToBytes(s(u,f));return f&&f.asBytes?c:f&&f.asString?i.bytesToString(c):e.bytesToHex(c)}},function(o,a,t){var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!e.call({1:2},1);a.f=n?function(i){var s=r(this,i);return!!s&&s.enumerable}:e},function(o,a,t){var e=t(0),r=t(11),n=t(7),i=t(40),s=t(29),u=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=s(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"),u(p,l)}},function(o,a,t){var e=t(56);o.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(o,a,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,a,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,a,t){var e=t(8),r=t(131),n=t(26),i=t(9);o.exports=function(s,u,f){for(var c=r(u),d=i.f,p=n.f,l=0;l<c.length;l++){var h=c[l];e(s,h)||f&&e(f,h)||d(s,h,p(u,h))}}},function(o,a,t){var e=t(1),r=t(8),n=t(14),i=t(90).indexOf,s=t(30),u=e([].push);o.exports=function(f,c){var d,p=n(f),l=0,h=[];for(d in p)!r(s,d)&&r(p,d)&&u(h,d);for(;c.length>l;)r(p,d=c[l++])&&(~i(h,d)||u(h,d));return h}},function(o,a,t){var e=t(14),r=t(60),n=t(32),i=function(s){return function(u,f,c){var d,p=e(u),l=n(p),h=r(c,l);if(s&&f!=f){for(;l>h;)if((d=p[h++])!=d)return!0}else for(;l>h;h++)if((s||h in p)&&p[h]===f)return s||h||0;return!s&&-1}};o.exports={includes:i(!0),indexOf:i(!1)}},function(o,a){a.f=Object.getOwnPropertySymbols},function(o,a,t){var e=t(1),r=t(12),n=Date.prototype,i=e(n.toString),s=e(n.getTime);String(new Date(NaN))!="Invalid Date"&&r(n,"toString",function(){var u=s(this);return u==u?i(this):"Invalid Date"})},function(o,a,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,a,t){var e=t(34),r=t(1),n=t(55),i=t(21),s=t(32),u=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=s(A),F=0,z=I||u,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,a){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,a,t){var e=t(45)("span").classList,r=e&&e.constructor&&e.constructor.prototype;o.exports=r===Object.prototype?void 0:r},function(o,a,t){var e=t(12);o.exports=function(r,n,i){for(var s in n)e(r,s,n[s],i);return r}},function(o,a,t){var e=t(50),r=t(29),n=t(37),i=t(5)("iterator");o.exports=function(s){if(s!=null)return r(s,i)||r(s,"@@iterator")||n[e(s)]}},function(o,a,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(s){}o.exports=function(s,u){if(!u&&!r)return!1;var f=!1;try{var c={};c[e]=function(){return{next:function(){return{done:f=!0}}}},s(c)}catch(d){}return f}},function(o,a,t){var e=t(10),r=t(101),n=t(5)("species");o.exports=function(i,s){var u,f=e(i).constructor;return f===void 0||(u=e(f)[n])==null?s:r(u)}},function(o,a,t){var e=t(0),r=t(64),n=t(42),i=e.TypeError;o.exports=function(s){if(r(s))return s;throw i(n(s)+" is not a constructor")}},function(o,a,t){var e,r,n,i,s=t(0),u=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=s.setImmediate,S=s.clearImmediate,x=s.process,I=s.Dispatch,E=s.Function,C=s.MessageChannel,k=s.String,A=0,U={};try{e=s.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){s.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(){u(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)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&e&&e.protocol!=="file:"&&!p(B)?(r=B,s.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,a,t){var e=t(15);o.exports=e("document","documentElement")},function(o,a,t){var e=t(41);o.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},function(o,a,t){var e=t(23),r=function(n){var i,s;this.promise=new n(function(u,f){if(i!==void 0||s!==void 0)throw TypeError("Bad Promise constructor");i=u,s=f}),this.resolve=e(i),this.reject=e(s)};o.exports.f=function(n){return new r(n)}},function(o,a,t){var e=t(6),r=t(87),n=t(9),i=t(10),s=t(14),u=t(68);a.f=e&&!r?Object.defineProperties:function(f,c){i(f);for(var d,p=s(c),l=u(c),h=l.length,v=0;h>v;)n.f(f,d=l[v++],p[d]);return f}},function(o,a,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,a,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,a,t){t(53);var e=t(1),r=t(12),n=t(54),i=t(2),s=t(5),u=t(18),f=s("species"),c=RegExp.prototype;o.exports=function(d,p,l,h){var v=s(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&&u(c[v],"sham",!0)}},function(o,a,t){var e=t(7),r=t(16),n=t(5)("match");o.exports=function(i){var s;return e(i)&&((s=i[n])!==void 0?!!s:r(i)=="RegExp")}},function(o,a,t){var e=t(112).charAt;o.exports=function(r,n,i){return n+(i?e(r,n).length:1)}},function(o,a,t){var e=t(1),r=t(48),n=t(13),i=t(22),s=e("".charAt),u=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=u(g,y))<55296||h>56319||y+1===b||(v=u(g,y+1))<56320||v>57343?d?s(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,a,t){var e=t(0),r=t(60),n=t(32),i=t(114),s=e.Array,u=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=s(u(h-l,0)),g=0;l<h;l++,g++)i(v,g,f[l]);return v.length=g,v}},function(o,a,t){var e=t(39),r=t(9),n=t(28);o.exports=function(i,s,u){var f=e(s);f in i?r.f(i,f,n(0,u)):i[f]=u}},function(o,a,t){var e=t(0),r=t(11),n=t(10),i=t(4),s=t(16),u=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(s(c)==="RegExp")return r(u,c,d);throw f("RegExp#exec called on incompatible receiver")}},function(o,a,t){var e=t(3),r=t(1),n=t(90).indexOf,i=t(66),s=r([].indexOf),u=!!s&&1/s([1],1,-0)<0,f=i("indexOf");e({target:"Array",proto:!0,forced:u||!f},{indexOf:function(c){var d=arguments.length>1?arguments[1]:void 0;return u?s(this,c,d)||0:n(this,c,d)}})},function(o,a,t){var e=t(1),r=t(31).PROPER,n=t(12),i=t(10),s=t(17),u=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=u(g.source),b=g.flags;return"/"+y+"/"+u(b===void 0&&s(d,g)&&!("flags"in d)?l(g):b)},{unsafe:!0})},function(o,a,t){var e=t(2);o.exports=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},function(o,a,t){var e=t(0),r=t(1),n=t(23),i=t(7),s=t(8),u=t(52),f=t(27),c=e.Function,d=r([].concat),p=r([].join),l={},h=function(v,g,y){if(!s(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=u(arguments,1),m=function(){var S=d(b,u(arguments));return this instanceof m?h(g,S.length,S):g.apply(v,S)};return i(y)&&(m.prototype=y),m}},function(o,a,t){var e=t(14),r=t(165),n=t(37),i=t(19),s=t(9).f,u=t(81),f=t(24),c=t(6),d=i.set,p=i.getterFor("Array Iterator");o.exports=u(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{s(l,"name",{value:"values"})}catch(h){}},function(o,a,t){var e,r,n,i=t(2),s=t(4),u=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=u(e)),s(e[l])||c(e,l,function(){return this}),o.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:h}},function(o,a,t){var e=t(3),r=t(1),n=t(30),i=t(7),s=t(8),u=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){u(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(!s(m,v)){if(!d(m))return"F";if(!S)return"E";y(m)}return m[v].objectID},getWeakData:function(m,S){if(!s(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)&&!s(m,v)&&y(m),m}};n[v]=!0},function(o,a,t){var e=t(16),r=t(14),n=t(25).f,i=t(113),s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];o.exports.f=function(u){return s&&e(u)=="Window"?function(f){try{return n(f)}catch(c){return i(s)}}(u):n(r(u))}},function(o,a,t){var e=t(5);a.f=e},function(o,a,t){var e=t(177),r=t(8),n=t(124),i=t(9).f;o.exports=function(s){var u=e.Symbol||(e.Symbol={});r(u,s)||i(u,s,{value:n.f(s)})}},function(o,a){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,a,t){var e=t(3),r=t(0),n=t(1),i=r.Date,s=n(i.prototype.getTime);e({target:"Date",stat:!0},{now:function(){return s(new i)}})},function(o,a){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,a,t){var e=t(0),r=t(11),n=t(4),i=t(7),s=e.TypeError;o.exports=function(u,f){var c,d;if(f==="string"&&n(c=u.toString)&&!i(d=r(c,u))||n(c=u.valueOf)&&!i(d=r(c,u))||f!=="string"&&n(c=u.toString)&&!i(d=r(c,u)))return d;throw s("Can't convert object to primitive value")}},function(o,a,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,a,t){var e=t(15),r=t(1),n=t(25),i=t(91),s=t(10),u=r([].concat);o.exports=e("Reflect","ownKeys")||function(f){var c=n.f(s(f)),d=i.f;return d?u(c,d(f)):c}},function(o,a,t){var e=t(133);o.exports=function(r,n){return new(e(r))(n===0?0:n)}},function(o,a,t){var e=t(0),r=t(49),n=t(64),i=t(7),s=t(5)("species"),u=e.Array;o.exports=function(f){var c;return r(f)&&(c=f.constructor,(n(c)&&(c===u||r(c.prototype))||i(c)&&(c=c[s])===null)&&(c=void 0)),c===void 0?u:c}},function(o,a,t){var e=t(65),r=t(50);o.exports=e?{}.toString:function(){return"[object "+r(this)+"]"}},function(o,a,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,a,t){var e,r,n,i,s=t(3),u=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",dt=P.getterFor(Y),pt=P.set,yt=P.getterFor(Y),mt=p&&p.prototype,ut=p,ft=mt,_t=f.TypeError,It=f.document,Et=f.process,vt=z.f,ht=vt,xt=!!(It&&It.createEvent&&f.dispatchEvent),q=m(f.PromiseRejectionEvent),st=!1,T=D(Y,function(){var R=I(ut),H=R!==String(ut);if(!H&&rt===66||u&&!ft.finally)return!0;if(rt>=51&&/native code/.test(R))return!1;var W=new ut(function(it){it(1)}),J=function(it){it(function(){},function(){})};return(W.constructor={})[tt]=J,!(st=W.then(function(){})instanceof J)||!H&&Z&&!q}),w=T||!C(function(R){ut.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,Ct=H.value,kt=H.state==1,At=kt?R.ok:R.fail,Lt=R.resolve,nt=R.reject,ct=R.domain;try{At?(kt||(H.rejection===2&&Q(H),H.rejection=1),At===!0?W=Ct:(ct&&ct.enter(),W=At(Ct),ct&&(ct.exit(),it=!0)),W===R.promise?nt(_t("Promise-chain cycle")):(J=O(W))?d(J,W,Lt,nt):Lt(W)):nt(Ct)}catch(gt){ct&&!it&&ct.exit(),nt(gt)}},_=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;xt?((J=It.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?Et.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?Et.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 _t("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(Ct){N(it,Ct,R)}}):(R.value=H,R.state=1,_(R,!1))}catch(it){N({done:!1},it,R)}}};if(T&&(ft=(ut=function(R){x(this,ft),b(R),d(e,this);var H=dt(this);try{R(X(at,H),X(N,H))}catch(W){N(H,W)}}).prototype,(e=function(R){pt(this,{type:Y,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:0,value:void 0})}).prototype=h(ft,{then:function(R,H){var W=yt(this),J=vt(k(this,ut));return W.parent=!0,J.ok=!m(R)||R,J.fail=m(H)&&H,J.domain=et?Et.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=dt(R);this.promise=R,this.resolve=X(at,H),this.reject=X(N,H)},z.f=vt=function(R){return R===ut||R===n?new r(R):ht(R)},!u&&m(p)&&mt!==Object.prototype)){i=mt.then,st||(l(mt,"then",function(R,H){var W=this;return new ut(function(J,it){d(i,W,J,it)}).then(R,H)},{unsafe:!0}),l(mt,"catch",ft.catch,{unsafe:!0}));try{delete mt.constructor}catch(R){}v&&v(mt,ft)}s({global:!0,wrap:!0,forced:T},{Promise:ut}),g(ut,Y,!1,!0),y(Y),n=c(Y),s({target:Y,stat:!0,forced:T},{reject:function(R){var H=vt(this);return d(H.reject,void 0,R),H.promise}}),s({target:Y,stat:!0,forced:u||T},{resolve:function(R){return V(u&&this===n?ut:this,R)}}),s({target:Y,stat:!0,forced:w},{all:function(R){var H=this,W=vt(H),J=W.resolve,it=W.reject,Ct=B(function(){var kt=b(H.resolve),At=[],Lt=0,nt=1;E(R,function(ct){var gt=Lt++,bt=!1;nt++,d(kt,H,ct).then(function(Tt){bt||(bt=!0,At[gt]=Tt,--nt||J(At))},it)}),--nt||J(At)});return Ct.error&&it(Ct.value),W.promise},race:function(R){var H=this,W=vt(H),J=W.reject,it=B(function(){var Ct=b(H.resolve);E(R,function(kt){d(Ct,H,kt).then(W.resolve,J)})});return it.error&&J(it.value),W.promise}})},function(o,a,t){var e=t(0);o.exports=e.Promise},function(o,a,t){var e=t(0),r=t(4),n=e.String,i=e.TypeError;o.exports=function(s){if(typeof s=="object"||r(s))return s;throw i("Can't set "+n(s)+" as a prototype")}},function(o,a,t){var e=t(5),r=t(37),n=e("iterator"),i=Array.prototype;o.exports=function(s){return s!==void 0&&(r.Array===s||i[n]===s)}},function(o,a,t){var e=t(0),r=t(11),n=t(23),i=t(10),s=t(42),u=t(98),f=e.TypeError;o.exports=function(c,d){var p=arguments.length<2?u(c):d;if(n(p))return i(r(p,c));throw f(s(c)+" is not iterable")}},function(o,a,t){var e=t(11),r=t(10),n=t(29);o.exports=function(i,s,u){var f,c;r(i);try{if(!(f=n(i,"return"))){if(s==="throw")throw u;return u}f=e(f,i)}catch(d){c=!0,f=d}if(s==="throw")throw u;if(c)throw f;return r(f),u}},function(o,a,t){var e=t(0).TypeError;o.exports=function(r,n){if(r<n)throw e("Not enough arguments");return r}},function(o,a,t){var e,r,n,i,s,u,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)}):(s=!0,u=S.createTextNode(""),new m(e).observe(u,{characterData:!0}),i=function(){u.data=s=!s})),o.exports=C||function(k){var A={fn:k,next:void 0};n&&(n.next=A),r||(r=A,i()),n=A}},function(o,a,t){var e=t(41),r=t(0);o.exports=/ipad|iphone|ipod/i.test(e)&&r.Pebble!==void 0},function(o,a,t){var e=t(41);o.exports=/web0s(?!.*chrome)/i.test(e)},function(o,a,t){var e=t(10),r=t(7),n=t(105);o.exports=function(i,s){if(e(i),r(s)&&s.constructor===i)return s;var u=n.f(i);return(0,u.resolve)(s),u.promise}},function(o,a,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,a){o.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},function(o,a){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,a){o.exports=typeof window=="object"},function(o,a,t){var e=t(38),r=t(11),n=t(1),i=t(109),s=t(110),u=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(!s(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=u(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,dt=0,pt=[];dt<P.length;){rt.lastIndex=S?0:dt;var yt,mt=g(rt,S?k(P,dt):P);if(mt===null||(yt=x(p(rt.lastIndex+(S?dt:0)),P.length))===Y)dt=d(P,dt,Z);else{if(C(pt,k(P,Y,dt)),pt.length===tt)return pt;for(var ut=1;ut<=mt.length-1;ut++)if(C(pt,mt[ut]),pt.length===tt)return pt;dt=Y=yt}}return C(pt,k(P,Y)),pt}]},!!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,a,t){var e=t(3),r=t(0),n=t(49),i=t(64),s=t(7),u=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=u(m,k),U=u(S===void 0?k:S,k);if(n(C)&&(x=C.constructor,(i(x)&&(x===y||n(x.prototype))||s(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,a,t){var e=t(2),r=t(5),n=t(57),i=r("species");o.exports=function(s){return n>=51||!e(function(){var u=[];return(u.constructor={})[i]=function(){return{foo:1}},u[s](Boolean).foo!==1})}},function(o,a,t){var e=t(3),r=t(1),n=t(55),i=t(14),s=t(66),u=r([].join),f=n!=Object,c=s("join",",");e({target:"Array",proto:!0,forced:f||!c},{join:function(d){return u(i(this),d===void 0?",":d)}})},function(o,a,t){var e=t(38),r=t(11),n=t(1),i=t(109),s=t(2),u=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=u(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 dt,pt="",yt=0,mt=0;mt<tt.length;mt++){for(var ut=p((Y=tt[mt])[0]),ft=m(S(c(Y.index),D.length),0),_t=[],It=1;It<Y.length;It++)I(_t,(dt=Y[It])===void 0?dt:String(dt));var Et=Y.groups;if(Z){var vt=x([ut],_t,ft,D);Et!==void 0&&I(vt,Et);var ht=p(e(j,void 0,vt))}else ht=g(ut,D,ft,_t,Et,j);ft>=yt&&(pt+=C(D,yt,ft)+ht,yt=ft+ut.length)}return pt+C(D,yt)}]},!!s(function(){var U=/./;return U.exec=function(){var V=[];return V.groups={a:"7"},V},"".replace(U,"$<a>")!=="7"})||!k||A)},function(o,a,t){var e=t(1),r=t(21),n=Math.floor,i=e("".charAt),s=e("".replace),u=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),s(g,m,function(S,x){var I;switch(i(x,0)){case"$":return"$";case"&":return d;case"`":return u(p,0,l);case"'":return u(p,y);case"<":I=v[u(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,a,t){var e=t(3),r=t(158);e({global:!0,forced:parseInt!=r},{parseInt:r})},function(o,a,t){var e=t(0),r=t(2),n=t(1),i=t(13),s=t(77).trim,u=t(78),f=e.parseInt,c=e.Symbol,d=c&&c.iterator,p=/^[+-]?0x/i,l=n(p.exec),h=f(u+"08")!==8||f(u+"0x16")!==22||d&&!r(function(){f(Object(d))});o.exports=h?function(v,g){var y=s(i(v));return f(y,g>>>0||(l(p,y)?16:10))}:f},function(o,a,t){var e=t(6),r=t(0),n=t(1),i=t(33),s=t(79),u=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 dt=function(ut,ft){var _t,It,Et,vt,ht,xt,q=d(A,this),st=p(ut),T=ft===void 0,w=[],O=ut;if(!q&&st&&T&&ut.constructor===dt)return ut;if((st||d(A,ut))&&(ut=ut.source,T&&(ft="flags"in O?O.flags:V(O))),ut=ut===void 0?"":l(ut),ft=ft===void 0?"":l(ft),O=ut,I&&"dotAll"in G&&(It=!!ft&&j(ft,"s")>-1)&&(ft=B(ft,/s/g,"")),_t=ft,rt&&"sticky"in G&&(Et=!!ft&&j(ft,"y")>-1)&&tt&&(ft=B(ft,/y/g,"")),E&&(ut=(vt=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]}(ut))[0],w=vt[1]),ht=s(k(ut,ft),q?this:A,dt),(It||Et||w.length)&&(xt=m(ht),It&&(xt.dotAll=!0,xt.raw=dt(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}(ut),_t)),Et&&(xt.sticky=!0),w.length&&(xt.groups=w)),ut!==O)try{u(ht,"source",O===""?"(?:)":O)}catch(M){}return ht},pt=function(ut){ut in dt||f(dt,ut,{configurable:!0,get:function(){return k[ut]},set:function(ft){k[ut]=ft}})},yt=c(k),mt=0;yt.length>mt;)pt(yt[mt++]);A.constructor=dt,dt.prototype=A,g(r,"RegExp",dt)}S("RegExp")},function(o,a,t){var e=t(6),r=t(31).EXISTS,n=t(1),i=t(9).f,s=Function.prototype,u=n(s.toString),f=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=n(f.exec);e&&!r&&i(s,"name",{configurable:!0,get:function(){try{return c(f,u(this))[1]}catch(d){return""}}})},function(o,a,t){t(3)({target:"Object",stat:!0},{setPrototypeOf:t(51)})},function(o,a,t){var e=t(3),r=t(2),n=t(21),i=t(80),s=t(118);e({target:"Object",stat:!0,forced:r(function(){i(1)}),sham:!s},{getPrototypeOf:function(u){return i(n(u))}})},function(o,a,t){var e=t(3),r=t(15),n=t(38),i=t(119),s=t(101),u=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){s(b),u(m);var S=arguments.length<3?b:s(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,a,t){var e=t(3),r=t(119);e({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},function(o,a,t){var e=t(5),r=t(20),n=t(9),i=e("unscopables"),s=Array.prototype;s[i]==null&&n.f(s,i,{configurable:!0,value:r(null)}),o.exports=function(u){s[i][u]=!0}},function(o,a,t){var e=t(121).IteratorPrototype,r=t(20),n=t(28),i=t(36),s=t(37),u=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),s[l]=u,f}},function(o,a,t){t(168)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},t(172))},function(o,a,t){var e=t(3),r=t(0),n=t(1),i=t(33),s=t(12),u=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]);s(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),u.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,a,t){var e=t(2),r=t(7),n=t(16),i=t(170),s=Object.isExtensible,u=e(function(){});o.exports=u||i?function(f){return!!r(f)&&(!i||n(f)!="ArrayBuffer")&&(!s||s(f))}:s},function(o,a,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,a,t){var e=t(2);o.exports=!e(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(o,a,t){var e=t(9).f,r=t(20),n=t(97),i=t(34),s=t(70),u=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){s(k,x),h(k,{type:y,index:r(null),first:void 0,last:void 0,size:0}),d||(k.size=0),A!=null&&u(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,a,t){var e=t(112).charAt,r=t(13),n=t(19),i=t(81),s=n.set,u=n.getterFor("String Iterator");i(String,"String",function(f){s(this,{type:"String Iterator",string:r(f),index:0})},function(){var f,c=u(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,a,t){var e=t(0),r=t(95),n=t(96),i=t(120),s=t(18),u=t(5),f=u("iterator"),c=u("toStringTag"),d=i.values,p=function(h,v){if(h){if(h[f]!==d)try{s(h,f,d)}catch(y){h[f]=d}if(h[c]||s(h,c,v),r[v]){for(var g in i)if(h[g]!==i[g])try{s(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,a,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,a,t){var e=t(3),r=t(0),n=t(15),i=t(38),s=t(11),u=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),dt=t(124),pt=t(125),yt=t(36),mt=t(19),ut=t(94).forEach,ft=et("hidden"),_t=Y("toPrimitive"),It=mt.set,Et=mt.getterFor("Symbol"),vt=Object.prototype,ht=r.Symbol,xt=ht&&ht.prototype,q=r.TypeError,st=r.QObject,T=n("JSON","stringify"),w=z.f,O=B.f,M=V.f,_=P.f,$=u([].push),L=Z("symbols"),K=Z("op-symbols"),Q=Z("string-to-symbol-registry"),X=Z("symbol-to-string-registry"),N=Z("wks"),at=!st||!st.prototype||!st.prototype.findChild,R=c&&p(function(){return k(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a!=7})?function(nt,ct,gt){var bt=w(vt,ct);bt&&delete vt[ct],O(nt,ct,gt),bt&&nt!==vt&&O(vt,ct,bt)}:O,H=function(nt,ct){var gt=L[nt]=k(xt);return It(gt,{type:"Symbol",tag:nt,description:ct}),c||(gt.description=ct),gt},W=function(nt,ct,gt){nt===vt&&W(K,ct,gt),m(nt);var bt=I(ct);return m(gt),l(L,bt)?(gt.enumerable?(l(nt,ft)&&nt[ft][bt]&&(nt[ft][bt]=!1),gt=k(gt,{enumerable:C(0,!1)})):(l(nt,ft)||O(nt,ft,C(1,{})),nt[ft][bt]=!0),R(nt,bt,gt)):O(nt,bt,gt)},J=function(nt,ct){m(nt);var gt=x(ct),bt=A(gt).concat(At(gt));return ut(bt,function(Tt){c&&!s(it,gt,Tt)||W(nt,Tt,gt[Tt])}),nt},it=function(nt){var ct=I(nt),gt=s(_,this,ct);return!(this===vt&&l(L,ct)&&!l(K,ct))&&(!(gt||!l(this,ct)||!l(L,ct)||l(this,ft)&&this[ft][ct])||gt)},Ct=function(nt,ct){var gt=x(nt),bt=I(ct);if(gt!==vt||!l(L,bt)||l(K,bt)){var Tt=w(gt,bt);return!Tt||!l(L,bt)||l(gt,ft)&>[ft][bt]||(Tt.enumerable=!0),Tt}},kt=function(nt){var ct=M(x(nt)),gt=[];return ut(ct,function(bt){l(L,bt)||l(rt,bt)||$(gt,bt)}),gt},At=function(nt){var ct=nt===vt,gt=M(ct?K:x(nt)),bt=[];return ut(gt,function(Tt){!l(L,Tt)||ct&&!l(vt,Tt)||$(bt,L[Tt])}),bt};if(d||(G(xt=(ht=function(){if(y(xt,this))throw q("Symbol is not a constructor");var nt=arguments.length&&arguments[0]!==void 0?E(arguments[0]):void 0,ct=tt(nt),gt=function(bt){this===vt&&s(gt,K,bt),l(this,ft)&&l(this[ft],ct)&&(this[ft][ct]=!1),R(this,ct,C(1,bt))};return c&&at&&R(vt,ct,{configurable:!0,set:gt}),H(ct,nt)}).prototype,"toString",function(){return Et(this).tag}),G(ht,"withoutSetter",function(nt){return H(tt(nt),nt)}),P.f=it,B.f=W,j.f=J,z.f=Ct,U.f=V.f=kt,F.f=At,dt.f=function(nt){return H(Y(nt),nt)},c&&(O(xt,"description",{configurable:!0,get:function(){return Et(this).description}}),f||G(vt,"propertyIsEnumerable",it,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:ht}),ut(A(N),function(nt){pt(nt)}),e({target:"Symbol",stat:!0,forced:!d},{for:function(nt){var ct=E(nt);if(l(Q,ct))return Q[ct];var gt=ht(ct);return Q[ct]=gt,X[gt]=ct,gt},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,ct){return ct===void 0?k(nt):J(k(nt),ct)},defineProperty:W,defineProperties:J,getOwnPropertyDescriptor:Ct}),e({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:kt,getOwnPropertySymbols:At}),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=ht();return T([nt])!="[null]"||T({a:nt})!="{}"||T(Object(nt))!="{}"})},{stringify:function(nt,ct,gt){var bt=D(arguments),Tt=ct;if((g(ct)||nt!==void 0)&&!b(nt))return h(ct)||(ct=function(Gt,Bt){if(v(Tt)&&(Bt=s(Tt,this,Gt,Bt)),!b(Bt))return Bt}),bt[1]=ct,i(T,null,bt)}}),!xt[_t]){var Lt=xt.valueOf;G(xt,_t,function(nt){return s(Lt,this)})}yt(ht,"Symbol"),rt[ft]=!0},function(o,a,t){var e=t(0);o.exports=e},function(o,a,t){var e=t(3),r=t(6),n=t(0),i=t(1),s=t(8),u=t(4),f=t(17),c=t(13),d=t(9).f,p=t(88),l=n.Symbol,h=l&&l.prototype;if(r&&u(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(s(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,a,t){t(125)("iterator")},function(o,a,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,a,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,a,t){t(3)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(o,a,t){var e=t(6),r=t(0),n=t(1),i=t(33),s=t(12),u=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++)u(m,A=V[F])&&!u(U,A)&&g(U,A,v(m,A));U.prototype=S,S.constructor=U,s(r,"Number",U)}},function(o,a,t){var e=t(1);o.exports=e(1 .valueOf)},function(o,a){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,s=0;i<r.length;i++,s+=8)n[s>>>5]|=r[i]<<24-s%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 s=r[i]<<16|r[i+1]<<8|r[i+2],u=0;u<4;u++)8*i+6*u<=8*r.length?n.push(t.charAt(s>>>6*(3-u)&63)):n.push("=");return n.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],i=0,s=0;i<r.length;s=++i%4)s!=0&&n.push((t.indexOf(r.charAt(i-1))&Math.pow(2,-2*s+8)-1)<<2*s|t.indexOf(r.charAt(i))>>>6-2*s);return n}},o.exports=e},function(o,a){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,a,t){t.r(a),t.d(a,"ChatImageUpload",function(){return st}),t.d(a,"defaultConfig",function(){return ht}),t.d(a,"allowAccept",function(){return Et}),t.d(a,"allowFileExtension",function(){return vt}),t.d(a,"FailError",function(){return rt}),t.d(a,"FailCode",function(){return G}),t.d(a,"ChatImage",function(){return _t}),t.d(a,"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 s(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 u(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"?s(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]"?s(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=u(at,R,{ignoreEmpty:!1})),H&&(at=u(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())})},dt=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])}}},pt=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 dt(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 dt(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 dt(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 yt=function(){return(yt=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)},mt=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())})},ut=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])}}},ft={width:500,height:500},_t=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={}),mt(this,void 0,void 0,function(){var O,M,_,$,L,K,Q,X,N,at,R,H,W,J=this;return ut(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=ft),this.uploadProgress=0,R="",it.label=9;case 9:return it.trys.push([9,13,,14]),[4,O.uploadApi.uploadImage(yt(yt({},L),{file:K,fileName:this.fileName,onUploadProgress:function(Ct){J.uploadProgress=Ct,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 mt(this,void 0,void 0,function(){var O,M,_,$,L,K,Q,X,N,at;return ut(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}(),It=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}(),Et=["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/bmp","image/tiff","image/tifa"],vt=["png","bmp","webp","tiff","tif","jpeg","jpg","gif"],ht={channelId:"",userId:"",sizeLimit:81920,compressSizeLimit:2048,limit:9,maxWidth:700,reUploadTimes:3,source:"chat_img",bucket:"liveimages",useBlobByCompress:!1,allowAccept:Et,allowFileExtension:vt,maxUploadNumber:3,enablePornChecking:!1,apiHost:"api.polyv.net"},xt=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])}}},st=function(){function T(w){w===void 0&&(w={});var O=w.channelId,M=O===void 0?ht.channelId:O,_=w.userId,$=_===void 0?ht.userId:_,L=w.sizeLimit,K=L===void 0?ht.sizeLimit:L,Q=w.compressSizeLimit,X=Q===void 0?ht.compressSizeLimit:Q,N=w.limit,at=N===void 0?ht.limit:N,R=w.maxWidth,H=R===void 0?ht.maxWidth:R,W=w.reUploadTimes,J=W===void 0?ht.reUploadTimes:W,it=w.source,Ct=it===void 0?ht.source:it,kt=w.bucket,At=kt===void 0?ht.bucket:kt,Lt=w.useBlobByCompress,nt=Lt===void 0?ht.useBlobByCompress:Lt,ct=w.allowAccept,gt=ct===void 0?ht.allowAccept:ct,bt=w.allowFileExtension,Tt=bt===void 0?ht.allowFileExtension:bt,Gt=w.maxUploadNumber,Bt=Gt===void 0?ht.maxUploadNumber:Gt,Jt=w.apiHost,pe=Jt===void 0?ht.apiHost:Jt,de=w.onChange,he=w.beforeStart;this.channelId=M,this.userId=$,this.sizeLimit=K,this.compressSizeLimit=X,this.limit=at,this.maxWidth=H,this.reUploadTimes=J,this.source=Ct,this.bucket=At,this.useBlobByCompress=!!nt,this.allowAccept=gt,this.allowFileExtension=Tt,this.maxUploadNumber=Bt,this.onChange=de,this.beforeStart=he,this.enablePornChecking=w.enablePornChecking===!0,this.apiHost=pe,this.uploadQueue=new It({uploadCtx:this}),this.uploadApi=new pt({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 _t({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 _t&&(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 xt(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 xt(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 _t({imageId:this.buildImageId(),file:w,uploadCtx:this,callbackChange:!1}).upload()];case 1:return[2,M.sent()]}})})},T.prototype.uploadImage=function(w,O){return xt(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 _t({imageId:this.buildImageId(),file:w,uploadCtx:this,callbackChange:O!==!1})).upload()];case 1:return $.sent(),[2,_]}})})},T.prototype.reUploadImage=function(w){return xt(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 De extends Nt{constructor(t){super(t);wt(this,"__uploadImgCtrl");wt(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 Fe.ChatImageUpload({enablePornChecking:!0})}__setUploadImgChannelId(){return lt(this,null,function*(){const t=yield this._plvSocket.getChannelInfo();this.__uploadImgCtrl.channelId=t.channelId})}uploadMultiImage(t){return lt(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:()=>{},s=[],u=[];return new Promise((f,c)=>{this.__uploadImgCtrl.choiceImageFile({callbackChange:!1,success:d=>lt(this,null,function*(){d=d.slice(0,e),d.forEach(g=>{r({imageId:g.imageId,previewSrc:g.previewSrc||""})});try{for(var p=ee(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};s.push(b),n(b)}catch(y){const b=y,m={imageId:g.imageId,previewSrc:g.previewSrc||""};u.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:s,failUploadImages:u})}),fail:d=>{console.error("[util-module][uploadMultiImage] ",d),c(new Error(d.failMessage))}})})})}directUploadImage(t){return lt(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 lt(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 lt(this,null,function*(){const e=t.gimg,r=this.__svgaMap,n=document.createElement("a");n.href=e;const i=n.pathname.split("/"),s=i[i.length-1].split(".")[0];if(r[s])return this.__genResourceUrl(`/default-img/donate-svga/${r[s]}`)})}}function Be(o){return typeof o!="object"&&(o=new Date(o)),o}function ze(o,a){const t={Y:(o=Be(o)).getFullYear(),M:o.getMonth()+1,D:o.getDate(),h:o.getHours(),m:o.getMinutes(),s:o.getSeconds()};return a.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 Ge extends Nt{constructor(){super(...arguments);wt(this,"__refId","")}setRefId(t){this.__refId=t}getRefId(){return this.__refId}exportAttendanceList(){return lt(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 lt(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}),s=[];return i.list.forEach(u=>{const f=["缺勤/到勤名单",n.channelId];u.sessionId&&f.push(u.sessionId),u.createTime&&f.push(ze(u.createTime,"YYYYMMDD hh:mm:ss"));let c="pending";u.isExpire?c="expired":u.status===1?c="failed":u.status===0?c="pending":u.status===2&&(c="success"),s.push({id:`${u.createTime}-${u.sessionId}`,downloadUrl:u.src,fileName:f.join("-")+".gz",fileSize:0,progress:c==="pending"?0:100,status:c,createTime:u.createTime})}),{pageNumber:i.page,pageSize:i.size,contents:s,totalItems:i.totalCount,totalPages:i.totalPage}})}exportOnlineList(){return lt(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 lt(this,null,function*(){this._plvSocket.polyvApi.open("/live/v3/channel/chat/export-whitelist-viewing",{})})}}class He{constructor(a,t={}){wt(this,"PolyvChatEvent",St);wt(this,"ChatMsgSource",ot);wt(this,"DonateType",Dt);wt(this,"RedpackType",Yt);wt(this,"SystemMsgType",qt);wt(this,"ChatRequestHistoryMode",Ut);wt(this,"ManageFailReason",Pt);wt(this,"TranslateLanguage",Xt);wt(this,"eventEmitter",new we);wt(this,"__socketFilter");wt(this,"__socketHandler");wt(this,"emotion");wt(this,"history");wt(this,"message");wt(this,"status");wt(this,"utils");wt(this,"sender");wt(this,"manage");wt(this,"online");wt(this,"download");wt(this,"setuped",!1);this.plvSocket=a,this.config=t,this.emotion=new Ce(this),this.history=new ke(this),this.message=new Re(this),this.status=new Ue(this),this.utils=new De(this),this.sender=new Ne(this),this.manage=new Me(this),this.online=new Pe(this),this.download=new Ge(this),this.__socketFilter=new Ee(this),this.__socketHandler=new Oe(this)}setup(){return lt(this,null,function*(){yield this.emotion.setupEmotionParser(),this.setuped=!0})}}exports.ChatMsgSource=ot;exports.ChatRequestHistoryMode=Ut;exports.DonateType=Dt;exports.ManageFailReason=Pt;exports.MotivationLikeType=Qt;exports.PolyvChat=He;exports.PolyvChatEvent=St;exports.RedpackType=Yt;exports.SystemMsgType=qt;exports.TranslateLanguage=Xt;exports.canQuoteMsgSource=le;exports.canTopMsgSource=fe;exports.isServiceMsgMap=ce;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:15]");
|