@polyv/chat 2.2.0-rc-20251113.1 → 2.3.0-rc-20251204.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 +14 -14
- package/index.es.d.ts +136 -4
- package/index.es.js +2278 -2085
- package/index.umd.js +14 -14
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -1,19 +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 ft=(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 It=(o=>(o.ChatInitialized="ChatInitialized",o.StatusInfoUpdate="StatusInfoUpdate",o.UserLogin="UserLogin",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.CheckInTimes="CheckInTimes",o.ChatLikesUpdate="ChatLikesUpdate",o.ChatLike="ChatLike",o.SendChatLike="SendChatLike",o))(It||{}),Lt=(o=>(o.UnknownError="UnknownError",o.PlatformProhibited="PlatformProhibited",o))(Lt||{});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 Ie(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 At;(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"})(At||(At={}));function ne(o){const a=Ie(o);return["pdf"].indexOf(a)!==-1?At.PDF:["doc","docx"].indexOf(a)!==-1?At.Word:["xls","xlsx"].indexOf(a)!==-1?At.Excel:["txt","md","csv","log"].indexOf(a)!==-1?At.Txt:["zip","rar","7z","tar","gz","bz2"].indexOf(a)!==-1?At.Zip:["ppt","pptx"].indexOf(a)!==-1?At.PPT:["jpg","jpeg","png","gif","bmp","webp","svg"].indexOf(a)!==-1?At.Image:At.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 Se=new RegExp("["+oe.join("")+"]","g"),_e=new RegExp("("+Kt.join("|")+")","g");function Gt(o){return o==null?o:String(o).replace(Se,a=>ie[a])}function se(o){return o==null?o:String(o).replace(_e,a=>ae[a])}function xe(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 Rt="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(Rt,{SPEAK:e=>{e.status==="censor"||e.status==="error"||this._plvChat.status.getStatusInfo().autoTranslateLanguage&&!e.isTranslate||this.__emitChatMessage(this.__filterSpeakMsg(e))},CHAT_IMG:e=>{this.__emitChatMessage(this.__filterChatImgMsg(e))},REWARD:e=>ft(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(Rt,{DEFAULT_EVENT:e=>ft(this,null,function*(){const r=yield this.__filterEmotionMsg(e);this.__emitChatMessage(r)})},"emotion"),t.addSocketHandles(Rt,e=>{this.__emitChatMessage(this.__filterCustomClientMsg(e))},"customMessage"),t.addSocketHandles(Rt,e=>{e.list.forEach(r=>{this.__emitChatMessage(this.__filterMotivationLikeMsg(r))})},"motivation")}__emitChatMessage(a){this._plvChat.eventEmitter.emit(It.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)===At.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 ft(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 ft(this,null,function*(){return{msgSource:ot.Reward,id:a.id,time:Date.now(),gimg:a.content.gimg,dynamicFile:a.content.dynamicFile,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(Rt,{onSliceID:()=>{setTimeout(()=>{a.eventEmitter.emit(It.ChatInitialized,{})},100)},LOGIN:t=>{a.eventEmitter.emit(It.UserLogin,{user:t.user})},SIGN_IN_TIMES:t=>{a.eventEmitter.emit(It.CheckInTimes,{nickname:t.nick,count:t.times})}}),a.plvSocket.addSocketHandles(Rt,{PRODUCT_CLICK:t=>{a.eventEmitter.emit(It.ProductClick,{type:t.type,nickname:t.nickName,productId:t.productId,name:t.positionName})},PRODUCT_BUY_TIMES:t=>{t.list.forEach(e=>{a.eventEmitter.emit(It.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 _;if(!u(m)||(_=r(m)).type!==b)throw new h("Incompatible receiver, "+b+" required");return _}}}},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 _=new r(function(S){S(1)}),I=function(S){S(function(){},function(){})};if((_.constructor={})[h]=I,!(v=_.then(function(){})instanceof I))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),_=i("".replace),I=i("".slice),S=(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;(S||C||E||l||h)&&(y=function(T){var P,U,V,F,z,B,L,A=this,D=p(A),H=s(T),Z=D.raw;if(Z)return Z.lastIndex=A.lastIndex,P=n(y,Z,H),A.lastIndex=Z.lastIndex,P;var et=D.groups,rt=E&&A.sticky,tt=n(u,A),Y=A.source,dt=0,pt=H;if(rt&&(tt=_(tt,"y",""),m(tt,"g")===-1&&(tt+="g"),pt=I(H,A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&b(H,A.lastIndex-1)!==`
|
|
2
|
-
`)&&(Y="(?: "+Y+")",pt=" "+pt,dt++),U=new RegExp("^(?:"+Y+")",tt)),C&&(U=new RegExp("^"+Y+"$(?!\\s)",tt)),S&&(V=A.lastIndex),F=n(g,rt?U:A,pt),rt?F?(F.input=I(F.input,dt),F[0]=I(F[0],dt),F.index=A.lastIndex,A.lastIndex+=F[0].length):A.lastIndex=0:S&&F&&(A.lastIndex=A.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[(L=et[z])[0]]=F[L[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,_,I,S,E,C=s(this),T=d(C,0),P=0;for(m=-1,I=arguments.length;m<I;m++)if(y(E=m===-1?C:arguments[m]))for(S=u(E),f(P+S),_=0;_<S;_++,P++)_ in E&&c(T,P,E[_]);else f(P+1),c(T,P++,E);return T.length=P,T}})},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"),_=o.exports=function(I,S,E){v(l(S),0,7)==="Symbol("&&(S="["+g(l(S),/^Symbol\(([^)]*)\)/,"$1")+"]"),E&&E.getter&&(S="get "+S),E&&E.setter&&(S="set "+S),(!i(I,"name")||u&&I.name!==S)&&(s?h(I,"name",{value:S,configurable:!0}):I.name=S),b&&E&&i(E,"arity")&&I.length!==E.arity&&h(I,"length",{value:E.arity});try{E&&i(E,"constructor")&&E.constructor?s&&h(I,"prototype",{writable:!1}):I.prototype&&(I.prototype=void 0)}catch(T){}var C=d(I);return i(C,"source")||(C.source=y(m,typeof S=="string"?S:"")),I};Function.prototype.toString=_(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),_=b?f(arguments,v):[],I=b?function(){n(m,this,_)}:m;return h?l(I,y):l(I)}: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.clearImmediate,I=s.process,S=s.Dispatch,E=s.Function,C=s.MessageChannel,T=s.String,P=0,U={};p(function(){e=s.location});var V=function(L){if(d(U,L)){var A=U[L];delete U[L],A()}},F=function(L){return function(){V(L)}},z=function(L){V(L.data)},B=function(L){s.postMessage(T(L),e.protocol+"//"+e.host)};m&&_||(m=function(L){g(arguments.length,1);var A=c(L)?L:E(L),D=h(arguments,1);return U[++P]=function(){u(A,void 0,D)},r(P),P},_=function(L){delete U[L]},b?r=function(L){I.nextTick(F(L))}:S&&S.now?r=function(L){S.now(F(L))}: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(L){l.appendChild(v("script")).onreadystatechange=function(){l.removeChild(this),V(L)}}:function(L){setTimeout(F(L),0)}),o.exports={set:m,clear:_}},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,_,I,S,E,C,T,P=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,P),L=function(D){return m&&p(m,"normal",D),new h(!0,D)},A=function(D){return U?(n(D),z?B(D[0],D[1],L):B(D[0],D[1])):z?B(D,L):B(D)};if(V)m=g.iterator;else if(F)m=g;else{if(!(_=d(g)))throw new l(i(g)+" is not iterable");if(s(_)){for(I=0,S=u(g);S>I;I++)if((E=A(g[I]))&&f(v,E))return E;return new h(!1)}m=c(g,_)}for(C=V?g.next:m.next;!(T=r(C,m)).done;){try{E=A(T.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"),_=Math.max,I=Math.min,S=n([].concat),E=n([].push),C=n("".indexOf),T=n("".slice),P="a".replace(/./,"$0")==="$0",U=!!/./[m]&&/./[m]("a","$0")==="";i("replace",function(V,F,z){var B=U?"$":"$0";return[function(L,A){var D=h(this),H=c(L)?void 0:g(L,m);return H?r(H,L,D,A):r(F,l(D),L,A)},function(L,A){var D=u(this),H=l(L);if(typeof A=="string"&&C(A,B)===-1&&C(A,"$<")===-1){var Z=z(F,D,H,A);if(Z.done)return Z.value}var et=f(A);et||(A=l(A));var rt,tt=D.global;tt&&(rt=D.unicode,D.lastIndex=0);for(var Y,dt=[];(Y=b(D,H))!==null&&(E(dt,Y),tt);)l(Y[0])===""&&(D.lastIndex=v(H,p(D.lastIndex),rt));for(var pt,yt="",mt=0,ut=0;ut<dt.length;ut++){for(var lt,xt=l((Y=dt[ut])[0]),_t=_(I(d(Y.index),H.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 St=S([xt],Et,_t,H);ht!==void 0&&E(St,ht),lt=l(e(A,void 0,St))}else lt=y(xt,H,_t,Et,ht,A);_t>=mt&&(yt+=T(H,mt,_t)+lt,mt=_t+xt.length)}return yt+T(H,mt)}]},!!s(function(){var V=/./;return V.exec=function(){var F=[];return F.groups={a:"7"},F},"".replace(V,"$<a>")!=="7"})||!P||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,_,I,S){for(var E,C,T=i(m),P=n(T),U=s(P),V=e(_,I),F=0,z=S||u,B=p?z(m,U):l||y?z(m,0):void 0;U>F;F++)if((b||F in P)&&(C=V(E=P[F],F,T),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,_=g.BUGGY_SAFARI_ITERATORS,I=h("iterator"),S=function(){return this};o.exports=function(E,C,T,P,U,V,F){u(T,C,P);var z,B,L,A=function(Y){if(Y===U&&rt)return rt;if(!_&&Y&&Y in Z)return Z[Y];switch(Y){case"keys":case"values":case"entries":return function(){return new T(this,Y)}}return function(){return new T(this)}},D=C+" Iterator",H=!1,Z=E.prototype,et=Z[I]||Z["@@iterator"]||U&&Z[U],rt=!_&&et||A(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[I])||l(z,I,S)),d(z,D,!0,!0),n&&(v[D]=S)),y&&U==="values"&&et&&et.name!=="values"&&(!n&&b?p(Z,"name","values"):(H=!0,rt=function(){return r(et,this)})),U)if(B={values:A("values"),keys:V?rt:A("keys"),entries:A("entries")},F)for(L in B)(_||H||!(L in Z))&&l(Z,L,B[L]);else e({target:C,proto:!0,forced:_||H},B);return n&&!F||Z[I]===rt||l(Z,I,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,
|
|
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),_=t(87).set,I=t(139),S=t(143),E=t(64),C=t(91),T=t(25),P=t(34),U=t(35),V=t(36),F=U.CONSTRUCTOR,z=U.REJECTION_EVENT,B=U.SUBCLASSING,L=T.getterFor("Promise"),A=T.set,D=P&&P.prototype,H=P,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 k,w,O,M=st.value,x=st.state===1,$=x?q.ok:q.fail,j=q.resolve,K=q.reject,Q=q.domain;try{$?(x||(st.rejection===2&&Et(st),st.rejection=1),$===!0?k=M:(Q&&Q.enter(),k=$(M),Q&&(Q.exit(),O=!0)),k===q.promise?K(new et("Promise-chain cycle")):(w=yt(k))?c(w,k,j,K):j(k)):K(M)}catch(X){Q&&!O&&Q.exit(),K(X)}},ut=function(q,st){q.notified||(q.notified=!0,I(function(){for(var k,w=q.reactions;k=w.get();)mt(k,q);q.notified=!1,st&&!q.rejection&&xt(q)}))},lt=function(q,st,k){var w,O;pt?((w=rt.createEvent("Event")).promise=st,w.reason=k,w.initEvent(q,!1,!0),f.dispatchEvent(w)):w={promise:st,reason:k},!z&&(O=f["on"+q])?O(w):q==="unhandledrejection"&&S("Unhandled promise rejection",k)},xt=function(q){c(_,f,function(){var st,k=q.facade,w=q.value;if(_t(q)&&(st=E(function(){u?tt.emit("unhandledRejection",w,k):lt("unhandledrejection",k,w)}),q.rejection=u||_t(q)?2:1,st.error))throw st.value})},_t=function(q){return q.rejection!==1&&!q.parent},Et=function(q){c(_,f,function(){var st=q.facade;u?tt.emit("rejectionHandled",st):lt("rejectionhandled",st,q.value)})},vt=function(q,st,k){return function(w){q(st,w,k)}},ht=function(q,st,k){q.done||(q.done=!0,k&&(q=k),q.value=st,q.state=2,ut(q,!0))},St=function(q,st,k){if(!q.done){q.done=!0,k&&(q=k);try{if(q.facade===st)throw new et("Promise can't be resolved itself");var w=yt(st);w?I(function(){var O={done:!1};try{c(w,st,vt(St,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=(H=function(q){b(this,Z),v(q),c(e,this);var st=L(this);try{q(vt(St,st),vt(ht,st))}catch(k){ht(st,k)}}).prototype,(e=function(q){A(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 k=L(this),w=Y(m(this,H));return k.parent=!0,w.ok=!g(q)||q,w.fail=g(st)&&st,w.domain=u?tt.domain:void 0,k.state===0?k.reactions.add(w):I(function(){mt(w,k)}),w.promise}),r=function(){var q=new e,st=L(q);this.promise=q,this.resolve=vt(St,st),this.reject=vt(ht,st)},V.f=Y=function(q){return q===H||q===void 0?new r(q):dt(q)},!s&&g(P)&&D!==Object.prototype)){n=D.then,B||d(D,"then",function(q,st){var k=this;return new H(function(w,O){c(n,k,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:H}),l(H,"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,_=u.Promise,I=f("queueMicrotask");if(!I){var S=new p,E=function(){var C,T;for(g&&(C=m.domain)&&C.exit();T=S.get();)try{T()}catch(P){throw S.head&&e(),P}C&&C.enter()};l||g||v||!y||!b?!h&&_&&_.resolve?((i=_.resolve(void 0)).constructor=_,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}),I=function(C){S.head||e(),S.add(C)}}o.exports=I},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 _=y++,I=!1;b++,r(v,c,m).then(function(S){I||(I=!0,g[_]=S,--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(_){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={},_=[],I=0;I<y.length;I++){var S=y[I],E=b.base?S[0]+b.base:S[0],C=m[E]||0,T="".concat(E," ").concat(C);m[E]=C+1;var P=s(T),U={css:S[1],media:S[2],sourceMap:S[3]};P!==-1?(i[P].references++,i[P].updater(U)):i.push({identifier:T,updater:g(U,b),references:1}),_.push(T)}return _}function f(y){var b=document.createElement("style"),m=y.attributes||{};if(m.nonce===void 0){var _=t.nc;_&&(m.nonce=_)}if(Object.keys(m).forEach(function(S){b.setAttribute(S,m[S])}),typeof y.insert=="function")y.insert(b);else{var I=n(y.insert||"head");if(!I)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");I.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,_){var
|
|
6
|
-
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(
|
|
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 _={};return _[v]=function(){return 7},""[d](_)!==7}),y=g&&!i(function(){var _=!1,I=/a/;return d==="split"&&((I={}).constructor={},I.constructor[f]=function(){return I},I.flags="",I[v]=/./[v]),I.exec=function(){return _=!0,null},I[v](""),!_});if(!g||!y||l){var b=e(/./[v]),m=p(v,""[d],function(_,I,S,E,C){var T=e(_),P=I.exec;return P===n||P===c.exec?g&&!C?{done:!0,value:b(I,S,E)}:{done:!0,value:T(S,I,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(_,I){var S;switch(i(I,0)){case"$":return"$";case"&":return d;case"`":return u(p,0,l);case"'":return u(p,y);case"<":S=v[u(I,1,-1)];break;default:var E=+I;if(E===0)return _;if(E>b){var C=n(E/10);return C===0?_:C<=b?h[C-1]===void 0?i(I,1):h[C-1]+i(I,1):_}S=h[E-1]}return S===void 0?"":S})}},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,_,I){return _===0?I:_%2==1?v(m,_-1,I*m):v(m*m,_/2,I)},g=function(m,_,I){for(var S=-1,E=I;++S<6;)E+=_*m[S],m[S]=E%1e7,E=d(E/1e7)},y=function(m,_){for(var I=6,S=0;--I>=0;)S+=m[I],m[I]=d(S/_),S=S%_*1e7},b=function(m){for(var _=6,I="";--_>=0;)if(I!==""||_===0||m[_]!==0){var S=c(m[_]);I=I===""?S:I+p("0",7-S.length)+S}return I};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 _,I,S,E,C=i(this),T=n(m),P=[0,0,0,0,0,0],U="",V="0";if(T<0||T>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(I=(_=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,-_,1):C/v(2,_,1),I*=4503599627370496,(_=52-_)>0){for(g(P,0,I),S=T;S>=7;)g(P,1e7,0),S-=7;for(g(P,v(10,S,1),0),S=_-1;S>=23;)y(P,1<<23),S-=23;y(P,1<<S),g(P,1,1),y(P,2),V=b(P)}else g(P,0,I),g(P,1<<-_,0),V=b(P)+p("0",T);return V=T>0?U+((E=V.length)<=T?"0."+p("0",T-E)+V:l(V,0,E-T)+"."+l(V,E-T)):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),_=t(46),I=t(177),S=t(59),E=t(38),C=t(10),T=t(97),P=t(70),U=t(14),V=t(63),F=t(23),z=t(44),B=t(45),L=t(56),A=t(5),D=t(106),H=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,lt=r.RangeError,xt=r.TypeError,_t=r.QObject,Et=E.f,vt=C.f,ht=I.f,St=P.f,q=i([].push),st=F("symbols"),k=F("op-symbols"),w=F("wks"),O=!_t||!_t.prototype||!_t.prototype.findChild,M=function(R,G,W){var J=Et(yt,G);J&&delete yt[G],vt(R,G,W),J&&R!==yt&&vt(yt,G,J)},x=u&&c(function(){return b(vt({},"a",{get:function(){return vt(this,"a",{value:7}).a}})).a!==7})?M:vt,$=function(R,G){var W=st[R]=b(ut);return dt(W,{type:"Symbol",tag:R,description:G}),u||(W.description=G),W},j=function(R,G,W){R===yt&&j(k,G,W),l(R);var J=v(G);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),x(R,J,W)):vt(R,J,W)},K=function(R,G){l(R);var W=h(G),J=m(W).concat(at(W));return tt(J,function(it){u&&!n(Q,W,it)||j(R,it,W[it])}),R},Q=function(R){var G=v(R),W=n(St,this,G);return!(this===yt&&d(st,G)&&!d(k,G))&&(!(W||!d(this,G)||!d(st,G)||d(this,Y)&&this[Y][G])||W)},X=function(R,G){var W=h(R),J=v(G);if(W!==yt||!d(st,J)||d(k,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 G=ht(h(R)),W=[];return tt(G,function(J){d(st,J)||d(B,J)||q(W,J)}),W},at=function(R){var G=R===yt,W=ht(G?k:h(R)),J=[];return tt(W,function(it){!d(st,it)||G&&!d(yt,it)||q(J,st[it])}),J};f||(U(ut=(mt=function(){if(p(ut,this))throw new xt("Symbol is not a constructor");var R=arguments.length&&arguments[0]!==void 0?g(arguments[0]):void 0,G=L(R),W=function(J){var it=this===void 0?r:this;it===yt&&n(W,k,J),d(it,Y)&&d(it[Y],G)&&(it[Y][G]=!1);var Ct=y(1,J);try{x(it,G,Ct)}catch(Tt){if(!(Tt instanceof lt))throw Tt;M(it,G,Ct)}};return u&&O&&x(yt,G,{configurable:!0,set:W}),$(G,R)}).prototype,"toString",function(){return pt(this).tag}),U(mt,"withoutSetter",function(R){return $(L(R),R)}),P.f=Q,C.f=j,T.f=K,E.f=X,_.f=I.f=N,S.f=at,D.f=function(R){return $(A(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){H(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,G){return G===void 0?b(R):K(b(R),G)},defineProperty:j,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(1 .toString),I=/[\uD800-\uDFFF]/g,S=/^[\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))!=="{}"}),T=u(function(){return v("\uDF06\uD834")!=='"\\udf06\\ud834"'||v("\uDEAD")!=='"\\udead"'}),P=function(V,F){var z=d(arguments),B=p(F);if(f(B)||V!==void 0&&!c(V))return z[1]=function(L,A){if(f(B)&&(A=i(B,this,h(L),A)),!c(A))return A},n(v,null,z)},U=function(V,F,z){var B=y(z,F-1),L=y(z,F+1);return g(S,V)&&!g(E,L)||g(E,V)&&!g(S,B)?"\\u"+_(b(V,0),16):V};v&&e({target:"JSON",stat:!0,arity:3,forced:C||T},{stringify:function(V,F,z){var B=d(arguments),L=n(C?P:v,null,B);return T&&typeof L=="string"?m(L,I,U):L}})},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),_=/^Symbol\((.*)\)[^)]+$/,I=i("".replace),S=i("".slice);d(h,"description",{configurable:!0,get:function(){var E=b(this);if(s(v,E))return"";var C=m(E),T=y?S(C,7,-1):I(C,_,"$1");return T===""?void 0:T}}),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),_=t(186).trim,I=i.Number,S=s.Number,E=I.prototype,C=i.TypeError,T=u("".slice),P=u("".charCodeAt),U=function(A){var D=h(A,"number");return typeof D=="bigint"?D:V(D)},V=function(A){var D,H,Z,et,rt,tt,Y,dt,pt=h(A,"number");if(l(pt))throw new C("Cannot convert a Symbol value to a number");if(typeof pt=="string"&&pt.length>2){if(pt=_(pt),(D=P(pt,0))===43||D===45){if((H=P(pt,2))===88||H===120)return NaN}else if(D===48){switch(P(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=T(pt,2)).length,Y=0;Y<tt;Y++)if((dt=P(rt,Y))<48||dt>et)return NaN;return parseInt(rt,Z)}}return+pt},F=f("Number",!I(" 0o1")||!I("0b1")||I("+0x1")),z=function(A){return p(E,A)&&v(function(){m(A)})},B=function(A){var D=arguments.length<1?0:I(U(A));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 L=function(A,D){for(var H,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,H=Z[et])&&!c(A,H)&&b(A,H,y(D,H))};r&&S&&L(s.Number,S),(F||r)&&L(s.Number,I)},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(
|
|
9
|
-
<li class="`.concat(
|
|
1
|
+
"use strict";var me=Object.defineProperty,ye=Object.defineProperties;var be=Object.getOwnPropertyDescriptors;var Zt=Object.getOwnPropertySymbols;var Ie=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable;var te=(o,a)=>(a=Symbol[o])?a:Symbol.for("Symbol."+o);var $t=(o,a,t)=>a in o?me(o,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[a]=t,Ot=(o,a)=>{for(var t in a||(a={}))Ie.call(a,t)&&$t(o,t,a[t]);if(Zt)for(var t of Zt(a))Se.call(a,t)&&$t(o,t,a[t]);return o},Mt=(o,a)=>ye(o,be(a));var yt=(o,a,t)=>$t(o,typeof a!="symbol"?a+"":a,t);var it=(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.UserLogin="UserLogin",o.UserLogout="UserLogout",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.CheckInTimes="CheckInTimes",o.ChatLikesUpdate="ChatLikesUpdate",o.ChatLike="ChatLike",o.SendChatLike="SendChatLike",o.AskMessage="AskMessage",o))(St||{}),Nt=(o=>(o.UnknownError="UnknownError",o.PlatformProhibited="PlatformProhibited",o))(Nt||{});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={}}}const At="polyv-chat";function Kt(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 _e(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=_e(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=['"',"'","&","<",">"," "],Wt=[""","'","&","<",">"," "],ie=Object.create(null),ae=Object.create(null);oe.forEach((o,a)=>{ie[o]=Wt[a],ae[Wt[a]]=o});const xe=new RegExp("["+oe.join("")+"]","g"),Ee=new RegExp("("+Wt.join("|")+")","g");function Gt(o){return o==null?o:String(o).replace(xe,a=>ie[a])}function se(o){return o==null?o:String(o).replace(Ee,a=>ae[a])}function Oe(o){return o==null?o:String(o).replace(/\r?\n/g,"<br />")}function Lt(){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)})}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||{}),qt=(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))(qt||{}),Vt=(o=>(o.ChatRoomIntroduction="chat-room-introduction",o.ForbiddenWord="forbidden-word",o))(Vt||{}),Ft=(o=>(o.Prev="prev",o.Next="next",o))(Ft||{}),Qt=(o=>(o.Speak="speak",o.Mic="mic",o))(Qt||{}),Jt=(o=>(o.Chinese="Chinese",o.English="English",o.Japanese="Japanese",o.Korean="Korean",o.Russian="Russian",o))(Jt||{});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 ke extends ue{constructor(a){super(a);const t=this._plvChat.plvSocket;t.addSocketHandles(At,{SPEAK:e=>{e.status==="censor"||e.status==="error"||this._plvChat.status.getStatusInfo().autoTranslateLanguage&&!e.isTranslate||this.__emitChatMessage(this.__filterSpeakMsg(e))},CHAT_IMG:e=>{this.__emitChatMessage(this.__filterChatImgMsg(e))},REWARD:e=>it(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(At,{DEFAULT_EVENT:e=>it(this,null,function*(){const r=yield this.__filterEmotionMsg(e);this.__emitChatMessage(r)})},"emotion"),t.addSocketHandles(At,e=>{this.__emitChatMessage(this.__filterCustomClientMsg(e))},"customMessage"),t.addSocketHandles(At,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:Lt(),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 it(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 it(this,null,function*(){return{msgSource:ot.Reward,id:a.id,time:Date.now(),gimg:a.content.gimg,dynamicFile:a.content.dynamicFile,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:Lt(),time:Date.now(),nick:this._filterNick(a.nick),type:a.type,isOver:Kt(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:Lt(),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 Ce{constructor(a){a.plvSocket.addSocketHandles(At,{onSliceID:()=>{setTimeout(()=>{a.eventEmitter.emit(St.ChatInitialized,{})},100)},LOGIN:t=>{a.eventEmitter.emit(St.UserLogin,{user:t.user})},LOGOUT:t=>{a.eventEmitter.emit(St.UserLogout,{userId:t.userId,nick:t.nick})},SIGN_IN_TIMES:t=>{a.eventEmitter.emit(St.CheckInTimes,{nickname:t.nick,count:t.times})}}),a.plvSocket.addSocketHandles(At,{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")}}class ce extends ue{__getMsgUid(a){const t=a.user;if("uid"in t)return t.uid}filterApiMsgList(a){const t=[];return a.forEach(e=>{const r=this.filterApiMsg(e);r&&t.push(r)}),t}filterApiMsg(a){let t;const e=a.msgSource||a.msgType;try{switch(e){case"chatImg":case"image":t=this.__filterImgApiMsg(a);break;case"reward":t=this.__filterRewardApiMsg(a);break;case"file":t=this.__filterFileApiMsg(a);break;case"redpaper":t=this.__filterRedpaperApiMsg(a);break;case"customerMessage":t=this.__filterCustomServerApiMsg(a);break;case"custom":t=this.__filterCustomClientApiMsg(a);break;default:{const r=this.__getMsgUid(a);r&&(t=this.__filterApiMsgByUid(r,a)),t||(t=this.__filterSpeakApiMsg(a));break}}}catch(r){console.error("filterApiMsgList error",r)}return 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});return a.quote&&(t.quote=this.__filterApiQuote(a.quote)),a.overLen&&(t.isOverLength=!0),a.translateResult&&(t.translateResult=a.translateResult.reduce((e,r)=>(e[r.language]=r.result,e),{})),t}__filterImgApiMsg(a){var n,i;let t=a.content;typeof t=="string"&&(t=JSON.parse(t));const e=t.type||"chatImg",r=t.uploadImgUrl||t.url||"";if(e==="chatImg"){const s=((n=t.size)==null?void 0:n.width)||t.width||0,u=((i=t.size)==null?void 0:i.height)||t.height||0,f=Mt(Ot({},this.__filterCommonApiMsg(a,ot.Image)),{imageId:t.id,imageUrl:r});return s&&u&&(f.size={width:s,height:u}),f}return Mt(Ot({},this.__filterCommonApiMsg(a,ot.Emotion)),{emotionId:t.id,emotionUrl:r})}__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:Lt(),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 jt{constructor(a){this._plvChat=a}get _plvSocket(){return this._plvChat.plvSocket}}const Yt=/^(?:([a-z]+):)?\/{2,3}/i;function Te(o,a){return Yt.test(o)}function fe(o,a){return Yt.test(a)||(a+="://"),Te(o)?o.replace(Yt,a):a+o}class Me extends jt{constructor(t){super(t);yt(this,"__apiFilter",new ce(this._plvChat));yt(this,"__handleAskSocket",t=>{var n,i;let e;if(t.EVENT==="S_QUESTION"?e=t.user.userId:t.EVENT==="T_ANSWER"&&(e=t.s_userId),!e)return;let r;try{if(t.status==="error"){const s=t.message||"";r={id:Lt(),msgSource:ot.System,time:Date.now(),content:s},s.includes("违规词")&&(r.type=Vt.ForbiddenWord)}else if(t.msgType==="image"){const s=JSON.parse(t.content);r={id:Lt(),msgSource:ot.Image,time:Date.now(),user:t.user,imageId:s.id,imageUrl:s.url||s.uploadImgUrl||"",size:{width:((n=s.size)==null?void 0:n.width)||s.width||0,height:((i=s.size)==null?void 0:i.height)||s.height||0}}}else r={id:Lt(),msgSource:ot.Speak,time:Date.now(),user:t.user,content:t.content}}catch(s){}r&&this._plvChat.eventEmitter.emit(St.AskMessage,{askMsg:r,targetUserId:e})});this._plvSocket.addSocketHandles(At,{S_QUESTION:this.__handleAskSocket,T_ANSWER:this.__handleAskSocket})}getAskUserList(){return it(this,null,function*(){const t=yield this._plvSocket.channel.getChannelInfo(),e=yield this._plvSocket.chatApi.get("/front/channel/question-user-list-by-time/get",{roomId:t.channelId,timestamp:Date.now(),index:1,size:100,order:"desc"}),r=[];return e.list.forEach(n=>{r.push({userId:n.userId,nick:n.nick,pic:n.pic,actor:n.actor,lastMessageTime:n.createTime})}),r})}getAskHistory(t){return it(this,null,function*(){const e=yield this._plvSocket.channel.getChannelInfo(),[r]=yield Promise.all([this._plvSocket.chatApi.get("/front/channel/question-list/get",{roomId:e.channelId,objectUserId:t.targetUserId,page:1,size:100}),this._plvChat.emotion.setupEmotionParser()]),n=[];return r.list.forEach(i=>{const s=JSON.parse(i),u=this.__apiFilter.filterApiMsg(s);u&&n.push(u)}),n.reverse()})}__buildSocketData(t,e){return it(this,null,function*(){const r=yield this._plvSocket.channel.getChannelInfo(),n=this._plvSocket.getUserInfo();return t.EVENT="S_QUESTION",t.roomId=r.channelId,this._plvSocket.currentIsSpecialUser()&&(t.EVENT="T_ANSWER",t.roomId=r.channelId,t.user={userId:n.userId,nick:n.nick,pic:n.pic,userType:n.userType,actor:n.actor},e&&(t.s_userId=e)),t})}sendSpeakMsg(t){return it(this,null,function*(){const e=yield this.__buildSocketData({content:t.content},t.targetUserId);yield this._plvSocket.emitSocket(e)})}sendImageMsg(t){return it(this,null,function*(){var r,n;const e=yield this.__buildSocketData({content:JSON.stringify({id:t.imageId,url:fe(t.imageUrl,"https"),width:(r=t.size)==null?void 0:r.width,height:(n=t.size)==null?void 0:n.height,msgSource:"chatImg"}),msgType:"image"},t.targetUserId);yield this._plvSocket.emitSocket(e)})}sendSystemMsg(t){return it(this,null,function*(){const e={id:Lt(),msgSource:ot.System,time:Date.now(),content:t.content};t.type&&(e.type=t.type),this._plvChat.eventEmitter.emit(St.AskMessage,{askMsg:e,targetUserId:t.targetUserId})})}}function Ae(o){return typeof o!="object"&&(o=new Date(o)),o}function Pe(o,a){const t={Y:(o=Ae(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 Re extends jt{constructor(){super(...arguments);yt(this,"__refId","")}setRefId(t){this.__refId=t}getRefId(){return this.__refId}exportAttendanceList(){return it(this,null,function*(){const t=yield this._plvSocket.channel.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 it(this,arguments,function*(t={}){const{pageNumber:e=1,pageSize:r=10}=t,n=yield this._plvSocket.channel.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(Pe(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}})}__getExportParams(){const t={businessType:"LIVE"},e=this.getRefId();return e&&(t.refId=e),t}exportOnlineList(){return it(this,null,function*(){const t=this.__getExportParams();yield this._plvSocket.polyvApi.get("/live/v4/channel/chat-data/online-user/export",t)})}exportWhiteList(){return it(this,null,function*(){const t=this.__getExportParams();yield this._plvSocket.polyvApi.get("/live/v4/channel/chat-data/export/whitelist",t)})}}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,g,v,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(g=d[l],h=c.dontCallGetSet?(v=r(p,l))&&v.value:p[l],!f(b?l:y+(m?".":"#")+l,c.forced)&&h!==void 0){if(typeof g==typeof h)continue;u(g,h)}(c.sham||h&&h.sham)&&n(g,"sham",!0),i(p,l,g,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,g=s.WeakMap;if(i||d.state){var v=d.state||(d.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,e=function(b,m){if(v.has(b))throw new h("Object already initialized");return m.facade=b,v.set(b,m),m},r=function(b){return v.get(b)||{}},n=function(b){return v.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 _;if(!u(m)||(_=r(m)).type!==b)throw new h("Incompatible receiver, "+b+" required");return _}}}},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(v){return"<script>"+v+"<\/script>"},h=function(v){v.write(l("")),v.close();var y=v.parentWindow.Object;return v=null,y},g=function(){try{e=new ActiveXObject("htmlfile")}catch(m){}var v,y;g=typeof document!="undefined"?document.domain&&e?h(e):((y=f("iframe")).style.display="none",u.appendChild(y),y.src="javascript:",(v=y.contentWindow.document).open(),v.write(l("document.F=Object")),v.close(),v.F):h(e);for(var b=i.length;b--;)delete g.prototype[i[b]];return g()};s[d]=!0,o.exports=Object.create||function(v,y){var b;return v!==null?(p.prototype=r(v),b=new p,p.prototype=null,b[d]=v):b=g(),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"),g=!1,v=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 _=new r(function(w){w(1)}),S=function(w){w(function(){},function(){})};if((_.constructor={})[h]=S,!(g=_.then(function(){})instanceof S))return!0}return!m&&(f||c)&&!v});o.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:g}},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(g){}}(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),g=c("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,b=i("".charAt),m=i("".indexOf),_=i("".replace),S=i("".slice),w=(r=/b*/g,n(v,e=/a/,"a"),n(v,r,"a"),e.lastIndex!==0||r.lastIndex!==0),E=f.BROKEN_CARET,k=/()??/.exec("")[1]!==void 0;(w||k||E||l||h)&&(y=function(T){var A,U,V,F,z,B,L,R=this,D=p(R),H=s(T),Z=D.raw;if(Z)return Z.lastIndex=R.lastIndex,A=n(y,Z,H),R.lastIndex=Z.lastIndex,A;var et=D.groups,rt=E&&R.sticky,tt=n(u,R),Y=R.source,dt=0,pt=H;if(rt&&(tt=_(tt,"y",""),m(tt,"g")===-1&&(tt+="g"),pt=S(H,R.lastIndex),R.lastIndex>0&&(!R.multiline||R.multiline&&b(H,R.lastIndex-1)!==`
|
|
2
|
+
`)&&(Y="(?: "+Y+")",pt=" "+pt,dt++),U=new RegExp("^(?:"+Y+")",tt)),k&&(U=new RegExp("^"+Y+"$(?!\\s)",tt)),w&&(V=R.lastIndex),F=n(v,rt?U:R,pt),rt?F?(F.input=S(F.input,dt),F[0]=S(F[0],dt),F.index=R.lastIndex,R.lastIndex+=F[0].length):R.lastIndex=0:w&&F&&(R.lastIndex=R.global?F.index+F[0].length:V),k&&F&&F.length>1&&n(g,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[(L=et[z])[0]]=F[L[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),g=l("isConcatSpreadable"),v=h>=51||!r(function(){var b=[];return b[g]=!1,b.concat()[0]!==b}),y=function(b){if(!i(b))return!1;var m=b[g];return m!==void 0?!!m:n(b)};e({target:"Array",proto:!0,arity:1,forced:!v||!p("concat")},{concat:function(b){var m,_,S,w,E,k=s(this),T=d(k,0),A=0;for(m=-1,S=arguments.length;m<S;m++)if(y(E=m===-1?k:arguments[m]))for(w=u(E),f(A+w),_=0;_<w;_++,A++)_ in E&&c(T,A,E[_]);else f(A+1),c(T,A++,E);return T.length=A,T}})},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,g=e("".slice),v=e("".replace),y=e([].join),b=s&&!r(function(){return h(function(){},"length",{value:8}).length!==8}),m=String(String).split("String"),_=o.exports=function(S,w,E){g(l(w),0,7)==="Symbol("&&(w="["+v(l(w),/^Symbol\(([^)]*)\)/,"$1")+"]"),E&&E.getter&&(w="get "+w),E&&E.setter&&(w="set "+w),(!i(S,"name")||u&&S.name!==w)&&(s?h(S,"name",{value:w,configurable:!0}):S.name=w),b&&E&&i(E,"arity")&&S.length!==E.arity&&h(S,"length",{value:E.arity});try{E&&i(E,"constructor")&&E.constructor?s&&h(S,"prototype",{writable:!1}):S.prototype&&(S.prototype=void 0)}catch(T){}var k=d(S);return i(k,"source")||(k.source=y(m,typeof w=="string"?w:"")),S};Function.prototype.toString=_(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),g=function(y){if(!n(y))return!1;try{return d(f,c,y),!0}catch(b){return!1}},v=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}};v.sham=!0,o.exports=!d||r(function(){var y;return g(g.call)||!g(Object)||!g(function(){y=!0})||y})?v:g},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 g=h?2:1;return p?function(v,y){var b=c(arguments.length,1)>g,m=i(v)?v:d(v),_=b?f(arguments,g):[],S=b?function(){n(m,this,_)}:m;return h?l(S,y):l(S)}: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),g=t(43),v=t(85),y=t(90),b=t(52),m=s.setImmediate,_=s.clearImmediate,S=s.process,w=s.Dispatch,E=s.Function,k=s.MessageChannel,T=s.String,A=0,U={};p(function(){e=s.location});var V=function(L){if(d(U,L)){var R=U[L];delete U[L],R()}},F=function(L){return function(){V(L)}},z=function(L){V(L.data)},B=function(L){s.postMessage(T(L),e.protocol+"//"+e.host)};m&&_||(m=function(L){v(arguments.length,1);var R=c(L)?L:E(L),D=h(arguments,1);return U[++A]=function(){u(R,void 0,D)},r(A),A},_=function(L){delete U[L]},b?r=function(L){S.nextTick(F(L))}:w&&w.now?r=function(L){w.now(F(L))}:k&&!y?(i=(n=new k).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 g("script")?function(L){l.appendChild(g("script")).onreadystatechange=function(){l.removeChild(this),V(L)}}:function(L){setTimeout(F(L),0)}),o.exports={set:m,clear:_}},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(v,y){this.stopped=v,this.result=y},g=h.prototype;o.exports=function(v,y,b){var m,_,S,w,E,k,T,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),L=function(D){return m&&p(m,"normal",D),new h(!0,D)},R=function(D){return U?(n(D),z?B(D[0],D[1],L):B(D[0],D[1])):z?B(D,L):B(D)};if(V)m=v.iterator;else if(F)m=v;else{if(!(_=d(v)))throw new l(i(v)+" is not iterable");if(s(_)){for(S=0,w=u(v);w>S;S++)if((E=R(v[S]))&&f(g,E))return E;return new h(!1)}m=c(v,_)}for(k=V?v.next:m.next;!(T=r(k,m)).done;){try{E=R(T.value)}catch(D){p(m,"throw",D)}if(typeof E=="object"&&E&&f(g,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,g=0;h>g;)n.f(f,d=l[g++],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),g=t(163),v=t(42),y=t(164),b=t(165),m=t(5)("replace"),_=Math.max,S=Math.min,w=n([].concat),E=n([].push),k=n("".indexOf),T=n("".slice),A="a".replace(/./,"$0")==="$0",U=!!/./[m]&&/./[m]("a","$0")==="";i("replace",function(V,F,z){var B=U?"$":"$0";return[function(L,R){var D=h(this),H=c(L)?void 0:v(L,m);return H?r(H,L,D,R):r(F,l(D),L,R)},function(L,R){var D=u(this),H=l(L);if(typeof R=="string"&&k(R,B)===-1&&k(R,"$<")===-1){var Z=z(F,D,H,R);if(Z.done)return Z.value}var et=f(R);et||(R=l(R));var rt,tt=D.global;tt&&(rt=D.unicode,D.lastIndex=0);for(var Y,dt=[];(Y=b(D,H))!==null&&(E(dt,Y),tt);)l(Y[0])===""&&(D.lastIndex=g(H,p(D.lastIndex),rt));for(var pt,bt="",mt=0,ct=0;ct<dt.length;ct++){for(var lt,xt=l((Y=dt[ct])[0]),_t=_(S(d(Y.index),H.length),0),Et=[],gt=1;gt<Y.length;gt++)E(Et,(pt=Y[gt])===void 0?pt:String(pt));var ht=Y.groups;if(et){var wt=w([xt],Et,_t,H);ht!==void 0&&E(wt,ht),lt=l(e(R,void 0,wt))}else lt=y(xt,H,_t,Et,ht,R);_t>=mt&&(bt+=T(H,mt,_t)+lt,mt=_t+xt.length)}return bt+T(H,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,g,v=n(i(p)),y=r(l),b=v.length;return y<0||y>=b?d?"":void 0:(h=u(v,y))<55296||h>56319||y+1===b||(g=u(v,y+1))<56320||g>57343?d?s(v,y):h:d?f(v,y,y+2):g-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,g=d===4,v=d===6,y=d===7,b=d===5||v;return function(m,_,S,w){for(var E,k,T=i(m),A=n(T),U=s(A),V=e(_,S),F=0,z=w||u,B=p?z(m,U):l||y?z(m,0):void 0;U>F;F++)if((b||F in A)&&(k=V(E=A[F],F,T),d))if(p)B[F]=k;else if(k)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 v?-1:h||g?g: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(g,v){p(this,{type:"Array Iterator",target:e(g),index:0,kind:v})},function(){var g=l(this),v=g.target,y=g.index++;if(!v||y>=v.length)return g.target=void 0,f(void 0,!0);switch(g.kind){case"keys":return f(y,!1);case"values":return f(v[y],!1)}return f([y,v[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(g){}},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),g=t(37),v=t(111),y=i.PROPER,b=i.CONFIGURABLE,m=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,S=h("iterator"),w=function(){return this};o.exports=function(E,k,T,A,U,V,F){u(T,k,A);var z,B,L,R=function(Y){if(Y===U&&rt)return rt;if(!_&&Y&&Y in Z)return Z[Y];switch(Y){case"keys":case"values":case"entries":return function(){return new T(this,Y)}}return function(){return new T(this)}},D=k+" Iterator",H=!1,Z=E.prototype,et=Z[S]||Z["@@iterator"]||U&&Z[U],rt=!_&&et||R(U),tt=k==="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[S])||l(z,S,w)),d(z,D,!0,!0),n&&(g[D]=w)),y&&U==="values"&&et&&et.name!=="values"&&(!n&&b?p(Z,"name","values"):(H=!0,rt=function(){return r(et,this)})),U)if(B={values:R("values"),keys:V?rt:R("keys"),entries:R("entries")},F)for(L in B)(_||H||!(L in Z))&&l(Z,L,B[L]);else e({target:k,proto:!0,forced:_||H},B);return n&&!F||Z[S]===rt||l(Z,S,rt,{name:U}),g[k]=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"),g=!1;[].keys&&("next"in(n=[].keys())?(r=c(c(n)))!==Object.prototype&&(e=r):g=!0),!u(e)||i(function(){var v={};return e[h].call(v)!==v})?e={}:l&&(e=f(e)),s(e[h])||d(e,h,function(){return this}),o.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:g}},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)))),g="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(h),"/*# ".concat(g," */")),p=c.sources.map(function(v){return"/*# sourceURL=".concat(c.sourceRoot||"").concat(v," */")});return[f].concat(p).concat([d]).join(`
|
|
3
|
+
`)}var l,h,g;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),g=t(17),v=t(3),y=t(11),b=t(136),m=t(137),_=t(87).set,S=t(139),w=t(143),E=t(64),k=t(91),T=t(25),A=t(34),U=t(35),V=t(36),F=U.CONSTRUCTOR,z=U.REJECTION_EVENT,B=U.SUBCLASSING,L=T.getterFor("Promise"),R=T.set,D=A&&A.prototype,H=A,Z=D,et=f.TypeError,rt=f.document,tt=f.process,Y=V.f,dt=Y,pt=!!(rt&&rt.createEvent&&f.dispatchEvent),bt=function(q){var ut;return!(!y(q)||!v(ut=q.then))&&ut},mt=function(q,ut){var C,I,O,M=ut.value,x=ut.state===1,$=x?q.ok:q.fail,j=q.resolve,K=q.reject,Q=q.domain;try{$?(x||(ut.rejection===2&&Et(ut),ut.rejection=1),$===!0?C=M:(Q&&Q.enter(),C=$(M),Q&&(Q.exit(),O=!0)),C===q.promise?K(new et("Promise-chain cycle")):(I=bt(C))?c(I,C,j,K):j(C)):K(M)}catch(J){Q&&!O&&Q.exit(),K(J)}},ct=function(q,ut){q.notified||(q.notified=!0,S(function(){for(var C,I=q.reactions;C=I.get();)mt(C,q);q.notified=!1,ut&&!q.rejection&&xt(q)}))},lt=function(q,ut,C){var I,O;pt?((I=rt.createEvent("Event")).promise=ut,I.reason=C,I.initEvent(q,!1,!0),f.dispatchEvent(I)):I={promise:ut,reason:C},!z&&(O=f["on"+q])?O(I):q==="unhandledrejection"&&w("Unhandled promise rejection",C)},xt=function(q){c(_,f,function(){var ut,C=q.facade,I=q.value;if(_t(q)&&(ut=E(function(){u?tt.emit("unhandledRejection",I,C):lt("unhandledrejection",C,I)}),q.rejection=u||_t(q)?2:1,ut.error))throw ut.value})},_t=function(q){return q.rejection!==1&&!q.parent},Et=function(q){c(_,f,function(){var ut=q.facade;u?tt.emit("rejectionHandled",ut):lt("rejectionhandled",ut,q.value)})},gt=function(q,ut,C){return function(I){q(ut,I,C)}},ht=function(q,ut,C){q.done||(q.done=!0,C&&(q=C),q.value=ut,q.state=2,ct(q,!0))},wt=function(q,ut,C){if(!q.done){q.done=!0,C&&(q=C);try{if(q.facade===ut)throw new et("Promise can't be resolved itself");var I=bt(ut);I?S(function(){var O={done:!1};try{c(I,ut,gt(wt,O,q),gt(ht,O,q))}catch(M){ht(O,M,q)}}):(q.value=ut,q.state=1,ct(q,!1))}catch(O){ht({done:!1},O,q)}}};if(F&&(Z=(H=function(q){b(this,Z),g(q),c(e,this);var ut=L(this);try{q(gt(wt,ut),gt(ht,ut))}catch(C){ht(ut,C)}}).prototype,(e=function(q){R(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=d(Z,"then",function(q,ut){var C=L(this),I=Y(m(this,H));return C.parent=!0,I.ok=!v(q)||q,I.fail=v(ut)&&ut,I.domain=u?tt.domain:void 0,C.state===0?C.reactions.add(I):S(function(){mt(I,C)}),I.promise}),r=function(){var q=new e,ut=L(q);this.promise=q,this.resolve=gt(wt,ut),this.reject=gt(ht,ut)},V.f=Y=function(q){return q===H||q===void 0?new r(q):dt(q)},!s&&v(A)&&D!==Object.prototype)){n=D.then,B||d(D,"then",function(q,ut){var C=this;return new H(function(I,O){c(n,C,I,O)}).then(q,ut)},{unsafe:!0});try{delete D.constructor}catch(q){}p&&p(D,Z)}i({global:!0,constructor:!0,wrap:!0,forced:F},{Promise:H}),l(H,"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),g=t(142),v=t(52),y=u.MutationObserver||u.WebKitMutationObserver,b=u.document,m=u.process,_=u.Promise,S=f("queueMicrotask");if(!S){var w=new p,E=function(){var k,T;for(v&&(k=m.domain)&&k.exit();T=w.get();)try{T()}catch(A){throw w.head&&e(),A}k&&k.enter()};l||v||g||!y||!b?!h&&_&&_.resolve?((i=_.resolve(void 0)).constructor=_,s=c(i.then,i),e=function(){s(E)}):v?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}),S=function(k){w.head||e(),w.add(k)}}o.exports=S},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 g=n(c.resolve),v=[],y=0,b=1;u(f,function(m){var _=y++,S=!1;b++,r(g,c,m).then(function(w){S||(S=!0,v[_]=w,--b||p(v))},l)}),--b||p(v)});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(g){r(h,c,g).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(_){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=0;S<y.length;S++){var w=y[S],E=b.base?w[0]+b.base:w[0],k=m[E]||0,T="".concat(E," ").concat(k);m[E]=k+1;var A=s(T),U={css:w[1],media:w[2],sourceMap:w[3]};A!==-1?(i[A].references++,i[A].updater(U)):i.push({identifier:T,updater:v(U,b),references:1}),_.push(T)}return _}function f(y){var b=document.createElement("style"),m=y.attributes||{};if(m.nonce===void 0){var _=t.nc;_&&(m.nonce=_)}if(Object.keys(m).forEach(function(w){b.setAttribute(w,m[w])}),typeof y.insert=="function")y.insert(b);else{var S=n(y.insert||"head");if(!S)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");S.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,_){var S=m?"":_.media?"@media ".concat(_.media," {").concat(_.css,"}"):_.css;if(y.styleSheet)y.styleSheet.cssText=d(b,S);else{var w=document.createTextNode(S),E=y.childNodes;E[b]&&y.removeChild(E[b]),E.length?y.insertBefore(w,E[b]):y.appendChild(w)}}function l(y,b,m){var _=m.css,S=m.media,w=m.sourceMap;if(S?y.setAttribute("media",S):y.removeAttribute("media"),w&&typeof btoa!="undefined"&&(_+=`
|
|
6
|
+
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(w))))," */")),y.styleSheet)y.styleSheet.cssText=_;else{for(;y.firstChild;)y.removeChild(y.firstChild);y.appendChild(document.createTextNode(_))}}var h=null,g=0;function v(y,b){var m,_,S;if(b.singleton){var w=g++;m=h||(h=f(b)),_=p.bind(null,m,w,!1),S=p.bind(null,m,w,!0)}else m=f(b),_=l.bind(null,m,b),S=function(){(function(E){if(E.parentNode===null)return!1;E.parentNode.removeChild(E)})(m)};return _(y),function(E){if(E){if(E.css===y.css&&E.media===y.media&&E.sourceMap===y.sourceMap)return;_(y=E)}else S()}}o.exports=function(y,b){(b=b||{}).singleton||typeof b.singleton=="boolean"||(b.singleton=r());var m=u(y=y||[],b);return function(_){if(_=_||[],Object.prototype.toString.call(_)==="[object Array]"){for(var S=0;S<m.length;S++){var w=s(m[S]);i[w].references--}for(var E=u(_,b),k=0;k<m.length;k++){var T=s(m[k]);i[T].references===0&&(i[T].updater(),i.splice(T,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 g=s(d),v=!i(function(){var _={};return _[g]=function(){return 7},""[d](_)!==7}),y=v&&!i(function(){var _=!1,S=/a/;return d==="split"&&((S={}).constructor={},S.constructor[f]=function(){return S},S.flags="",S[g]=/./[g]),S.exec=function(){return _=!0,null},S[g](""),!_});if(!v||!y||l){var b=e(/./[g]),m=p(g,""[d],function(_,S,w,E,k){var T=e(_),A=S.exec;return A===n||A===c.exec?v&&!k?{done:!0,value:b(S,w,E)}:{done:!0,value:T(w,S,E)}:{done:!1}});r(String.prototype,d,m[0]),r(c,g,m[1])}h&&u(c[g],"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,g,v){var y=l+d.length,b=h.length,m=c;return g!==void 0&&(g=r(g),m=f),s(v,m,function(_,S){var w;switch(i(S,0)){case"$":return"$";case"&":return d;case"`":return u(p,0,l);case"'":return u(p,y);case"<":w=g[u(S,1,-1)];break;default:var E=+S;if(E===0)return _;if(E>b){var k=n(E/10);return k===0?_:k<=b?h[k-1]===void 0?i(S,1):h[k-1]+i(S,1):_}w=h[E-1]}return w===void 0?"":w})}},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),g=function(m,_,S){return _===0?S:_%2==1?g(m,_-1,S*m):g(m*m,_/2,S)},v=function(m,_,S){for(var w=-1,E=S;++w<6;)E+=_*m[w],m[w]=E%1e7,E=d(E/1e7)},y=function(m,_){for(var S=6,w=0;--S>=0;)w+=m[S],m[S]=d(w/_),w=w%_*1e7},b=function(m){for(var _=6,S="";--_>=0;)if(S!==""||_===0||m[_]!==0){var w=c(m[_]);S=S===""?w:S+p("0",7-w.length)+w}return S};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,w,E,k=i(this),T=n(m),A=[0,0,0,0,0,0],U="",V="0";if(T<0||T>20)throw new f("Incorrect fraction digits");if(k!=k)return"NaN";if(k<=-1e21||k>=1e21)return c(k);if(k<0&&(U="-",k=-k),k>1e-21)if(S=(_=function(F){for(var z=0,B=F;B>=4096;)z+=12,B/=4096;for(;B>=2;)z+=1,B/=2;return z}(k*g(2,69,1))-69)<0?k*g(2,-_,1):k/g(2,_,1),S*=4503599627370496,(_=52-_)>0){for(v(A,0,S),w=T;w>=7;)v(A,1e7,0),w-=7;for(v(A,g(10,w,1),0),w=_-1;w>=23;)y(A,1<<23),w-=23;y(A,1<<w),v(A,1,1),y(A,2),V=b(A)}else v(A,0,S),v(A,1<<-_,0),V=b(A)+p("0",T);return V=T>0?U+((E=V.length)<=T?"0."+p("0",T-E)+V:l(V,0,E-T)+"."+l(V,E-T)):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),g=t(40),v=t(15),y=t(28),b=t(27),m=t(65),_=t(46),S=t(177),w=t(59),E=t(38),k=t(10),T=t(97),A=t(70),U=t(14),V=t(63),F=t(23),z=t(44),B=t(45),L=t(56),R=t(5),D=t(106),H=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"),bt=Object.prototype,mt=r.Symbol,ct=mt&&mt.prototype,lt=r.RangeError,xt=r.TypeError,_t=r.QObject,Et=E.f,gt=k.f,ht=S.f,wt=A.f,q=i([].push),ut=F("symbols"),C=F("op-symbols"),I=F("wks"),O=!_t||!_t.prototype||!_t.prototype.findChild,M=function(P,G,W){var X=Et(bt,G);X&&delete bt[G],gt(P,G,W),X&&P!==bt&>(bt,G,X)},x=u&&c(function(){return b(gt({},"a",{get:function(){return gt(this,"a",{value:7}).a}})).a!==7})?M:gt,$=function(P,G){var W=ut[P]=b(ct);return dt(W,{type:"Symbol",tag:P,description:G}),u||(W.description=G),W},j=function(P,G,W){P===bt&&j(C,G,W),l(P);var X=g(G);return l(W),d(ut,X)?(W.enumerable?(d(P,Y)&&P[Y][X]&&(P[Y][X]=!1),W=b(W,{enumerable:y(0,!1)})):(d(P,Y)||gt(P,Y,y(1,b(null))),P[Y][X]=!0),x(P,X,W)):gt(P,X,W)},K=function(P,G){l(P);var W=h(G),X=m(W).concat(st(W));return tt(X,function(at){u&&!n(Q,W,at)||j(P,at,W[at])}),P},Q=function(P){var G=g(P),W=n(wt,this,G);return!(this===bt&&d(ut,G)&&!d(C,G))&&(!(W||!d(this,G)||!d(ut,G)||d(this,Y)&&this[Y][G])||W)},J=function(P,G){var W=h(P),X=g(G);if(W!==bt||!d(ut,X)||d(C,X)){var at=Et(W,X);return!at||!d(ut,X)||d(W,Y)&&W[Y][X]||(at.enumerable=!0),at}},N=function(P){var G=ht(h(P)),W=[];return tt(G,function(X){d(ut,X)||d(B,X)||q(W,X)}),W},st=function(P){var G=P===bt,W=ht(G?C:h(P)),X=[];return tt(W,function(at){!d(ut,at)||G&&!d(bt,at)||q(X,ut[at])}),X};f||(U(ct=(mt=function(){if(p(ct,this))throw new xt("Symbol is not a constructor");var P=arguments.length&&arguments[0]!==void 0?v(arguments[0]):void 0,G=L(P),W=function(X){var at=this===void 0?r:this;at===bt&&n(W,C,X),d(at,Y)&&d(at[Y],G)&&(at[Y][G]=!1);var kt=y(1,X);try{x(at,G,kt)}catch(Tt){if(!(Tt instanceof lt))throw Tt;M(at,G,kt)}};return u&&O&&x(bt,G,{configurable:!0,set:W}),$(G,P)}).prototype,"toString",function(){return pt(this).tag}),U(mt,"withoutSetter",function(P){return $(L(P),P)}),A.f=Q,k.f=j,T.f=K,E.f=J,_.f=S.f=N,w.f=st,D.f=function(P){return $(R(P),P)},u&&(V(ct,"description",{configurable:!0,get:function(){return pt(this).description}}),s||U(bt,"propertyIsEnumerable",Q,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!f,sham:!f},{Symbol:mt}),tt(m(I),function(P){H(P)}),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(P,G){return G===void 0?b(P):K(b(P),G)},defineProperty:j,defineProperties:K,getOwnPropertyDescriptor:J}),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,g=r("JSON","stringify"),v=s(/./.exec),y=s("".charAt),b=s("".charCodeAt),m=s("".replace),_=s(1 .toString),S=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,E=/^[\uDC00-\uDFFF]$/,k=!l||u(function(){var V=r("Symbol")("stringify detection");return g([V])!=="[null]"||g({a:V})!=="{}"||g(Object(V))!=="{}"}),T=u(function(){return g("\uDF06\uD834")!=='"\\udf06\\ud834"'||g("\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(L,R){if(f(B)&&(R=i(B,this,h(L),R)),!c(R))return R},n(g,null,z)},U=function(V,F,z){var B=y(z,F-1),L=y(z,F+1);return v(w,V)&&!v(E,L)||v(E,V)&&!v(w,B)?"\\u"+_(b(V,0),16):V};g&&e({target:"JSON",stat:!0,arity:3,forced:k||T},{stringify:function(V,F,z){var B=d(arguments),L=n(k?A:g,null,B);return T&&typeof L=="string"?m(L,S,U):L}})},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,g=!0;return function(v,y){if(g)return g=!1,y;if(r(this))return y;for(var b=0;b<h;b++)if(d[b]===v)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 g={},v=function(){var E=arguments.length<1||arguments[0]===void 0?void 0:c(arguments[0]),k=f(h,this)?new l(E):E===void 0?l():l(E);return E===""&&(g[k]=!0),k};p(v,l),v.prototype=h,h.constructor=v;var y=String(l("description detection"))==="Symbol(description detection)",b=i(h.valueOf),m=i(h.toString),_=/^Symbol\((.*)\)[^)]+$/,S=i("".replace),w=i("".slice);d(h,"description",{configurable:!0,get:function(){var E=b(this);if(s(g,E))return"";var k=m(E),T=y?w(k,7,-1):S(k,_,"$1");return T===""?void 0:T}}),e({global:!0,constructor:!0,forced:!0},{Symbol:v})}},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),g=t(1),v=t(46).f,y=t(38).f,b=t(10).f,m=t(104),_=t(186).trim,S=i.Number,w=s.Number,E=S.prototype,k=i.TypeError,T=u("".slice),A=u("".charCodeAt),U=function(R){var D=h(R,"number");return typeof D=="bigint"?D:V(D)},V=function(R){var D,H,Z,et,rt,tt,Y,dt,pt=h(R,"number");if(l(pt))throw new k("Cannot convert a Symbol value to a number");if(typeof pt=="string"&&pt.length>2){if(pt=_(pt),(D=A(pt,0))===43||D===45){if((H=A(pt,2))===88||H===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=T(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",!S(" 0o1")||!S("0b1")||S("+0x1")),z=function(R){return p(E,R)&&g(function(){m(R)})},B=function(R){var D=arguments.length<1?0:S(U(R));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 L=function(R,D){for(var H,Z=n?v(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,H=Z[et])&&!c(R,H)&&b(R,H,y(D,H))};r&&w&&L(s.Number,w),(F||r)&&L(s.Number,S)},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(v){l[f]=c}if(u(l,h,!0),r[h]){for(var g in i)if(l[g]!==i[g])try{s(l,g,i[g])}catch(v){l[g]=i[g]}}}};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 g}),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 _=0;_<m.length;_++){var S=m[_];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(b,d(S.key),S)}}function d(b){var m=function(_,S){if(f(_)!="object"||!_)return _;var w=_[Symbol.toPrimitive];if(w!==void 0){var E=w.call(_,S);if(f(E)!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(_)}(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,g=function(){function b(S){var w=this;(function(E,k){if(!(E instanceof k))throw new TypeError("Cannot call a class as a function")})(this,b),this._dataMap=Object.create(null),this._dataList=S,this._dataList.forEach(function(E){w._dataMap[E.title]=E;var k=E.intl;k&&Object.keys(k).forEach(function(T){w._dataMap[k[T].title]=E})}),this._urlPrefix=n}var m,_;return m=b,(_=[{key:"eachEmotion",value:function(S){this._dataList.forEach(function(w){S(function(E){if(E==null)throw new TypeError("Cannot convert undefined or null to object");for(var k=0;k<(arguments.length<=1?0:arguments.length-1);k++){var T=k+1<1||arguments.length<=k+1?void 0:arguments[k+1];if(T!=null)for(var A in T)A!=="__proto__"&&u(T,A)&&(E[A]=T[A])}return E}({},w))})}},{key:"parse",value:function(S,w){var E=this;return String(S).replace(h,function(k){var T=arguments.length<=1?void 0:arguments[1];if(u(E._dataMap,T)){var A=E._dataMap[T],U=E._urlPrefix+A.filename;switch(w){case i.HTML:return'<img src="'.concat(U,'" alt="').concat(A.title,'" class="plv-emotion-img" />');case i.DANMAKU:return"[[".concat(U,"]]")}}return k})}},{key:"translate",value:function(S,w){var E=this;return String(S).replace(h,function(k){var T=arguments.length<=1?void 0:arguments[1],A=E._dataMap[T];return A&&(w===e.ZH_CN?T=A.title:A.intl&&A.intl[w]&&(T=A.intl[w].title)),"[".concat(T,"]")})}},{key:"removeAll",value:function(S){var w=this;return String(S).replace(h,function(E){var k=arguments.length<=1?void 0:arguments[1];return u(w._dataMap,k)?"":E})}},{key:"genDOMList",value:function(S){var w,E=this,k=32;k=typeof S=="number"?S:((w=S)==null?void 0:w.size)||32;var T="plv-emotion-menu",A="plv-emotion-menu__item",U="plv-emotion-menu__item__inner",V=w==null?void 0:w.cssClass;V&&(V.list&&(T+=" "+V.list),V.item&&(A+=" "+V.item),V.inner&&(U+=" "+V.inner));var F="";this._dataList.forEach(function(B){if(!B.deprecated){var L=(+k/B.size).toFixed(3),R=w==null?void 0:w.lang,D=B.title;R&&B.intl&&B.intl[R]&&(D=B.intl[R].title),F+=`
|
|
9
|
+
<li class="`.concat(A,'" style="width: ').concat(k,"px; height:").concat(k,`px">
|
|
10
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(L,')" title="').concat(D,'" data-title="').concat(D,`"></i>
|
|
11
|
-
</li>`)}});var z=document.createElement("ul");return z.className=T,z.innerHTML=F,z}}])&&c(m.prototype,_),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,_){var I=new XMLHttpRequest;I.onload=function(){try{m(JSON.parse(I.responseText))}catch(S){_(S)}},I.onerror=function(){_(new Error("error"))},I.ontimeout=function(){_(new Error("timeout"))},I.open("GET",n+"data.json",!0),I.timeout=5e3,I.send()}).then(function(m){(function _(I){if(g!=null&&g.length){var S=g.shift();try{S&&S(I)}finally{setTimeout(function(){_(I)},0)}}else g=void 0})(p=new v(m.list||[]))}))}}]);class jt{constructor(a){this._plvChat=a}get _plvSocket(){return this._plvChat.plvSocket}}class Ce extends jt{constructor(){super(...arguments);wt(this,"__emotionParser");wt(this,"__emotionParserPromise");wt(this,"__getEmotionImagePromise")}setupEmotionParser(){return this.__emotionParser?Promise.resolve():(this.__emotionParserPromise||(this.__emotionParserPromise=new Promise(t=>{zt.emotionsReady(e=>{this.__emotionParser=e,t(void 0)})})),this.__emotionParserPromise)}getEmotionParser(){return this.__emotionParser||console.warn("EmotionParser is not ready"),this.__emotionParser}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}getEmotionImages(){return ft(this,null,function*(){return this.__getEmotionImagePromise||(this.__getEmotionImagePromise=new Promise(t=>{ft(this,null,function*(){const e=yield this._plvSocket.channel.getChannelInfo(),r=yield this._plvSocket.chatApi.get("/front/getEmotionImages",{roomId:e.channelId,accountId:e.accountId});t(r.list)})})),this.__getEmotionImagePromise})}}class ke 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)===At.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 Te extends jt{constructor(t){var e;super(t);wt(this,"__chatHistoryEncrypt",!1);wt(this,"__apiFilter",new ke(this._plvChat));this.__chatHistoryEncrypt=(e=t.config.chatHistoryEncrypt)!=null?e:!1}setChatHistoryEncrypt(t){this.__chatHistoryEncrypt=t}getChatHistoryByTime(){return ft(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.channel.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");const[h]=yield Promise.all([this._plvSocket.chatApi.get(l,c,{responseType:p?"text":"json",useAESDecrypt:p}),this._plvChat.emotion.setupEmotionParser()]);let v=h.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 ft(this,arguments,function*(t={}){const{timestamp:e=Date.now(),size:r,mode:n=Ut.Prev}=t,i=yield this._plvSocket.channel.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},[f]=yield Promise.all([this._plvSocket.chatApi.get("/front/channel/tags/chat-history/get",u),this._plvChat.emotion.setupEmotionParser()]);let c=f.list;return n===Ut.Prev&&(c=c.reverse()),this.__apiFilter.filterApiMsgList(c)})}getSessionHistoryCount(t){return ft(this,null,function*(){var s;const{sessionId:e}=t,r=yield this._plvSocket.channel.getChannelInfo(),n={sessionId:e,page:1,size:1,timestamp:Date.now(),roomId:r.channelId};return(s=(yield this._plvSocket.chatApi.get("/front/getHistoryBySessionId",n,{appendChatSign:!0,appendChannelId:!1})).count)!=null?s:0})}}class Me extends jt{constructor(){super(...arguments);wt(this,"__isListened",!1)}listenManageEvent(){this.__isListened||(this._plvSocket.addSocketHandles(Rt,{ADD_SHIELD:t=>{t.data.banType==="userId"?this._plvChat.eventEmitter.emit(It.UserBanned,{userId:t.value}):this._plvChat.eventEmitter.emit(It.IpBanned,{ip:t.value})},REMOVE_SHIELD:t=>{t.data.banType==="userId"?this._plvChat.eventEmitter.emit(It.UserCancelBanned,{userId:t.value}):this._plvChat.eventEmitter.emit(It.IpCancelBanned,{ip:t.value})},KICK:t=>{this._plvChat.eventEmitter.emit(It.UserKicked,{userId:t.user.userId})},UNKICK:t=>{t.data.kickType==="userId"&&this._plvChat.eventEmitter.emit(It.UserCancelKicked,{userId:t.data.userId})}}),this.__isListened=!0)}deleteMsg(t){return ft(this,null,function*(){const e=yield this._plvSocket.channel.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:Lt.UnknownError}})}clearMsg(){return ft(this,null,function*(){const t=yield this._plvSocket.channel.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 ft(this,null,function*(){const e=yield this._plvSocket.channel.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:Lt.PlatformProhibited}:{success:!0}})}cancelBanUser(t){return ft(this,null,function*(){const e=yield this._plvSocket.channel.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:Lt.PlatformProhibited}:{success:!0}})}getBannedUserList(){return ft(this,arguments,function*(t={}){const{keyword:e,pageNumber:r=1,pageSize:n=10}=t,s={roomId:(yield this._plvSocket.channel.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 ft(this,null,function*(){const e=yield this._plvSocket.channel.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:Lt.PlatformProhibited}:{success:!0}})}cancelBanIp(t){return ft(this,null,function*(){const e=yield this._plvSocket.channel.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:Lt.PlatformProhibited}:{success:!0}})}getBannedIpList(){return ft(this,null,function*(){const t=yield this._plvSocket.channel.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 ft(this,null,function*(){const e=yield this._plvSocket.channel.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:Lt.PlatformProhibited}:(this._plvChat.eventEmitter.emit(It.UserKicked,{userId:t.userId}),{success:!0})})}cancelKickUser(t){return ft(this,null,function*(){const e=yield this._plvSocket.channel.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:Lt.PlatformProhibited}:{success:!0}})}getKickedUserList(){return ft(this,null,function*(){const t=yield this._plvSocket.channel.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 ft(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 ft(this,null,function*(){const e={EVENT:"TO_TOP",id:t.msgId};yield this._plvSocket.emitSocket(e,"speak")})}cancelTopMsg(t){return ft(this,null,function*(){const e={EVENT:"CANCEL_TOP",id:t.id};yield this._plvSocket.emitSocket(e,"speak")})}setChatSwitch(t){return ft(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 ft(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 Pe(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+=Gt(u)+`<a target="_blank" rel="noopener" href="${s}">${s}</a>`;const f=u+s;i=i.slice(f.length)}),i&&(n+=Gt(i)),n}return o}class Re extends jt{constructor(t){super(t);wt(this,"topingMsgs",[]);wt(this,"__fullMessageRecord",{});this._plvSocket.addSocketHandles(Rt,{onSliceID:e=>{e.data.speakTop&&(this.topingMsgs=this._plvChat.__socketFilter.__filterSpeakTopMsg(e.data.speakTop),this._plvChat.eventEmitter.emit(It.TopMsg,{topingMsgs:this.topingMsgs}))}}),this._plvSocket.addSocketHandles(Rt,{TO_TOP:e=>{this.topingMsgs=this._plvChat.__socketFilter.__filterSpeakTopMsg(e),this._plvChat.eventEmitter.emit(It.TopMsg,{topingMsgs:this.topingMsgs})},CANCEL_TOP:e=>{this.topingMsgs=this.topingMsgs.filter(r=>r.id!==e.id),this._plvChat.eventEmitter.emit(It.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=Gt(se(t));return f=f.replace(/ /g," "),n&&(f=Pe(f)),i&&r&&(f=r.removeAll(f)),s&&r&&(f=r.parse(f,zt.EmotionParsingMode.HTML)),u&&(f=xe(f)),f}getFullMessage(t){return ft(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=>{ft(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 ft(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 ft(this,null,function*(){const{chatMsg:e}=t,r={EVENT:"GET_ORIGINAL_SPEAK",id:e.id};return(yield this._plvSocket.emitSocket(r,"speak")).content})}}class Ae extends jt{getOnlineList(){return ft(this,arguments,function*(a={}){const{keyword:t=""}=a;return t?this.__getOnlineListByKeyword(a):this.__getOnlineListByNormal(a)})}__getOnlineListByKeyword(a){return ft(this,null,function*(){const{keyword:t="",getBanStatus:e=!1}=a,r=yield this._plvSocket.channel.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 ft(this,null,function*(){const{count:t=10,getBanStatus:e=!1}=a,r=yield this._plvSocket.channel.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 ft(this,null,function*(){var p;const{keyword:t="",count:e=10,searchType:r="attendance"}=a,n=yield this._plvSocket.channel.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 Le(o,a){return Wt.test(o)}function je(o,a){return Wt.test(a)||(a+="://"),Le(o)?o.replace(Wt,a):a+o}class Ne extends jt{__getCurrentChatMsgUserData(){return ft(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(It.ReplaceChatMessage,{id:t,chatMsg:n}),this._plvChat.eventEmitter.emit(It.SelfSendMessage,{chatMsg:n}),n}generateLocalMsg(a,t){return ft(this,null,function*(){const{emitLocalMsg:e=!0}=t,r=yield this.__getCurrentChatMsgUserData();let n;const i={[ot.Speak]:s=>ft(this,null,function*(){const f={id:s.localId||Ft(),msgSource:ot.Speak,time:Date.now(),user:r,content:Gt(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=>ft(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=>ft(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(It.ChatMessage,{chatMsg:n}),n})}sendSpeakMsg(a){return ft(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.channel.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 ft(this,null,function*(){const t=yield this.generateLocalMsg(ot.Image,a),e=t.id,r=yield this._plvSocket.channel.getChannelInfo(),n={EVENT:"CHAT_IMG",roomId:r.channelId,values:[{id:t.imageId,uploadImgUrl:je(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 ft(this,arguments,function*(a={}){const{choiceCallback:t}=a,e={};return yield this._plvChat.utils.uploadMultiImage({ready:n=>ft(this,null,function*(){t&&t();const i=yield this.generateLocalMsg(ot.Image,{imageId:n.imageId,imageUrl:n.previewSrc,size:n.size});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(It.ReplaceChatMessage,{id:s.id,chatMsg:s}))}}),Object.values(e)})}sendEmotionImageMsg(a){return ft(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(It.ChatMessage,{chatMsg:e})}sendCustomServerMsg(a){return ft(this,null,function*(){yield this._plvSocket.polyvApi.get("/live/v4/chat/send-custom-message",{content:a.content})})}}class Ue extends jt{constructor(t){super(t);wt(this,"__statusInfo",this.generateStatusInfo());this._plvSocket.addSocketHandles(Rt,{onSliceID:e=>{this.__updateStatusInfo({autoTranslateLanguage:e.data.speakTranslateLanguage})},REMOVE_CONTENT:e=>{this._plvChat.eventEmitter.emit(It.RemoveChatMsg,{id:e.id})},REMOVE_HISTORY:()=>{this._plvChat.eventEmitter.emit(It.ClearMsgHistory,{})},CLOSEROOM:e=>{const r=e.value.closed;this.__updateStatusInfo({chatRoomIsClosed:r}),r?this._plvChat.eventEmitter.emit(It.CloseChatRoom,{}):this._plvChat.eventEmitter.emit(It.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(It.StatusInfoUpdate,{statusInfo:this.__statusInfo})}setAutoTranslate(t){return ft(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(It.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,_=!!y&&!!y.enumerable,I=!!y&&!!y.noTargetGet,S=y&&y.name!==void 0?y.name:v;r(g)&&(String(S).slice(0,7)==="Symbol("&&(S="["+String(S).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!n(g,"name")||c&&g.name!==S)&&i(g,"name",S),(b=p(g)).source||(b.source=l.join(typeof S=="string"?S:""))),h!==e?(m?!I&&h[v]&&(_=!0):delete h[v],_?h[v]=g:i(h,v,g)):_?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),_=u(y.set);e=function(S,E){if(m(y,S))throw new v("Object already initialized");return E.facade=S,_(y,S,E),E},r=function(S){return b(y,S)||{}},n=function(S){return m(y,S)}}else{var I=l("state");h[I]=!0,e=function(S,E){if(d(S,I))throw new v("Object already initialized");return E.facade=S,c(S,I,E),E},r=function(S){return d(S,I)?S[I]:{}},n=function(S){return d(S,I)}}o.exports={set:e,get:r,has:n,enforce:function(S){return n(S)?r(S):e(S,{})},getterFor:function(S){return function(E){var C;if(!f(E)||(C=r(E)).type!==S)throw v("Incompatible receiver, "+S+" 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),_=i("".replace),I=i("".slice),S=(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;(S||C||E||l||h)&&(y=function(T){var P,U,V,F,z,B,L,A=this,D=p(A),H=s(T),Z=D.raw;if(Z)return Z.lastIndex=A.lastIndex,P=n(y,Z,H),A.lastIndex=Z.lastIndex,P;var et=D.groups,rt=E&&A.sticky,tt=n(u,A),Y=A.source,dt=0,pt=H;if(rt&&(tt=_(tt,"y",""),m(tt,"g")===-1&&(tt+="g"),pt=I(H,A.lastIndex),A.lastIndex>0&&(!A.multiline||A.multiline&&b(H,A.lastIndex-1)!==`
|
|
12
|
-
`)&&(Y="(?: "+Y+")",pt=" "+pt,dt++),U=new RegExp("^(?:"+Y+")",tt)),
|
|
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,_=g.BUGGY_SAFARI_ITERATORS,I=h("iterator"),S=function(){return this};o.exports=function(E,C,T,P,U,V,F){u(T,C,P);var z,B,L,A=function(Y){if(Y===U&&rt)return rt;if(!_&&Y in Z)return Z[Y];switch(Y){case"keys":case"values":case"entries":return function(){return new T(this,Y)}}return function(){return new T(this)}},D=C+" Iterator",H=!1,Z=E.prototype,et=Z[I]||Z["@@iterator"]||U&&Z[U],rt=!_&&et||A(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[I])||l(z,I,S)),d(z,D,!0,!0),n&&(v[D]=S)),y&&U=="values"&&et&&et.name!=="values"&&(!n&&b?p(Z,"name","values"):(H=!0,rt=function(){return r(et,this)})),U)if(B={values:A("values"),keys:V?rt:A("keys"),entries:A("entries")},F)for(L in B)(_||H||!(L in Z))&&l(Z,L,B[L]);else e({target:C,proto:!0,forced:_||H},B);return n&&!F||Z[I]===rt||l(Z,I,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._ii;for(g=0;g<c.length;g+=16){var I=p,S=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=_(p,l=m(l,h,v,p,c[g+2],23,-995338651),h,v,c[g+0],6,-198630844),v=_(v,p,l,h,c[g+7],10,1126891415),h=_(h,v,p,l,c[g+14],15,-1416354905),l=_(l,h,v,p,c[g+5],21,-57434055),p=_(p,l,h,v,c[g+12],6,1700485571),v=_(v,p,l,h,c[g+3],10,-1894986606),h=_(h,v,p,l,c[g+10],15,-1051523),l=_(l,h,v,p,c[g+1],21,-2054922799),p=_(p,l,h,v,c[g+8],6,1873313359),v=_(v,p,l,h,c[g+15],10,-30611744),h=_(h,v,p,l,c[g+6],15,-1560198380),l=_(l,h,v,p,c[g+13],21,1309151649),p=_(p,l,h,v,c[g+4],6,-145523070),v=_(v,p,l,h,c[g+11],10,-1120210379),h=_(h,v,p,l,c[g+2],15,718787259),l=_(l,h,v,p,c[g+9],21,-343485551),p=p+I>>>0,l=l+S>>>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,_,I,S){for(var E,C,T=i(m),P=n(T),U=e(_,I),V=s(P),F=0,z=S||u,B=p?z(m,V):l||y?z(m,0):void 0;V>F;F++)if((b||F in P)&&(C=U(E=P[F],F,T),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.clearImmediate,I=s.process,S=s.Dispatch,E=s.Function,C=s.MessageChannel,T=s.String,P=0,U={};try{e=s.location}catch(L){}var V=function(L){if(d(U,L)){var A=U[L];delete U[L],A()}},F=function(L){return function(){V(L)}},z=function(L){V(L.data)},B=function(L){s.postMessage(T(L),e.protocol+"//"+e.host)};m&&_||(m=function(L){g(arguments.length,1);var A=c(L)?L:E(L),D=h(arguments,1);return U[++P]=function(){u(A,void 0,D)},r(P),P},_=function(L){delete U[L]},b?r=function(L){I.nextTick(F(L))}:S&&S.now?r=function(L){S.now(F(L))}: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(L){l.appendChild(v("script")).onreadystatechange=function(){l.removeChild(this),V(L)}}:function(L){setTimeout(F(L),0)}),o.exports={set:m,clear:_}},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 _={};return _[v]=function(){return 7},""[d](_)!=7}),y=g&&!i(function(){var _=!1,I=/a/;return d==="split"&&((I={}).constructor={},I.constructor[f]=function(){return I},I.flags="",I[v]=/./[v]),I.exec=function(){return _=!0,null},I[v](""),!_});if(!g||!y||l){var b=e(/./[v]),m=p(v,""[d],function(_,I,S,E,C){var T=e(_),P=I.exec;return P===n||P===c.exec?g&&!C?{done:!0,value:b(I,S,E)}:{done:!0,value:T(S,I,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 _=d(b,u(arguments));return this instanceof m?h(g,_.length,_):g.apply(v,_)};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,_=r([].splice),I={};I[v]=1,m(I).length&&(f.f=function(S){for(var E=m(S),C=0,T=E.length;C<T;C++)if(E[C]===v){_(E,C,1);break}return E},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(m,_){if(!i(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!s(m,v)){if(!d(m))return"F";if(!_)return"E";y(m)}return m[v].objectID},getWeakData:function(m,_){if(!s(m,v)){if(!d(m))return!0;if(!_)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),_=t(7),I=t(70),S=t(46),E=t(71),C=t(99),T=t(100),P=t(102).set,U=t(143),V=t(146),F=t(147),z=t(105),B=t(148),L=t(149),A=t(19),D=t(33),H=t(5),Z=t(150),et=t(72),rt=t(57),tt=H("species"),Y="Promise",dt=A.getterFor(Y),pt=A.set,yt=A.getterFor(Y),mt=p&&p.prototype,ut=p,lt=mt,xt=f.TypeError,_t=f.document,Et=f.process,vt=z.f,ht=vt,St=!!(_t&&_t.createEvent&&f.dispatchEvent),q=m(f.PromiseRejectionEvent),st=!1,k=D(Y,function(){var R=S(ut),G=R!==String(ut);if(!G&&rt===66||u&&!lt.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)||!G&&Z&&!q}),w=k||!C(function(R){ut.all(R).catch(function(){})}),O=function(R){var G;return!(!_(R)||!m(G=R.then))&&G},M=function(R,G){var W,J,it,Ct=G.value,Tt=G.state==1,Pt=Tt?R.ok:R.fail,Nt=R.resolve,nt=R.reject,ct=R.domain;try{Pt?(Tt||(G.rejection===2&&Q(G),G.rejection=1),Pt===!0?W=Ct:(ct&&ct.enter(),W=Pt(Ct),ct&&(ct.exit(),it=!0)),W===R.promise?nt(xt("Promise-chain cycle")):(J=O(W))?d(J,W,Nt,nt):Nt(W)):nt(Ct)}catch(gt){ct&&!it&&ct.exit(),nt(gt)}},x=function(R,G){R.notified||(R.notified=!0,U(function(){for(var W,J=R.reactions;W=J.get();)M(W,R);R.notified=!1,G&&!R.rejection&&j(R)}))},$=function(R,G,W){var J,it;St?((J=_t.createEvent("Event")).promise=G,J.reason=W,J.initEvent(R,!1,!0),f.dispatchEvent(J)):J={promise:G,reason:W},!q&&(it=f["on"+R])?it(J):R==="unhandledrejection"&&F("Unhandled promise rejection",W)},j=function(R){d(P,f,function(){var G,W=R.facade,J=R.value;if(K(R)&&(G=B(function(){et?Et.emit("unhandledRejection",J,W):$("unhandledrejection",W,J)}),R.rejection=et||K(R)?2:1,G.error))throw G.value})},K=function(R){return R.rejection!==1&&!R.parent},Q=function(R){d(P,f,function(){var G=R.facade;et?Et.emit("rejectionHandled",G):$("rejectionhandled",G,R.value)})},X=function(R,G,W){return function(J){R(G,J,W)}},N=function(R,G,W){R.done||(R.done=!0,W&&(R=W),R.value=G,R.state=2,x(R,!0))},at=function(R,G,W){if(!R.done){R.done=!0,W&&(R=W);try{if(R.facade===G)throw xt("Promise can't be resolved itself");var J=O(G);J?U(function(){var it={done:!1};try{d(J,G,X(at,it,R),X(N,it,R))}catch(Ct){N(it,Ct,R)}}):(R.value=G,R.state=1,x(R,!1))}catch(it){N({done:!1},it,R)}}};if(k&&(lt=(ut=function(R){I(this,lt),b(R),d(e,this);var G=dt(this);try{R(X(at,G),X(N,G))}catch(W){N(G,W)}}).prototype,(e=function(R){pt(this,{type:Y,done:!1,notified:!1,parent:!1,reactions:new L,rejection:!1,state:0,value:void 0})}).prototype=h(lt,{then:function(R,G){var W=yt(this),J=vt(T(this,ut));return W.parent=!0,J.ok=!m(R)||R,J.fail=m(G)&&G,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,G=dt(R);this.promise=R,this.resolve=X(at,G),this.reject=X(N,G)},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,G){var W=this;return new ut(function(J,it){d(i,W,J,it)}).then(R,G)},{unsafe:!0}),l(mt,"catch",lt.catch,{unsafe:!0}));try{delete mt.constructor}catch(R){}v&&v(mt,lt)}s({global:!0,wrap:!0,forced:k},{Promise:ut}),g(ut,Y,!1,!0),y(Y),n=c(Y),s({target:Y,stat:!0,forced:k},{reject:function(R){var G=vt(this);return d(G.reject,void 0,R),G.promise}}),s({target:Y,stat:!0,forced:u||k},{resolve:function(R){return V(u&&this===n?ut:this,R)}}),s({target:Y,stat:!0,forced:w},{all:function(R){var G=this,W=vt(G),J=W.resolve,it=W.reject,Ct=B(function(){var Tt=b(G.resolve),Pt=[],Nt=0,nt=1;E(R,function(ct){var gt=Nt++,bt=!1;nt++,d(Tt,G,ct).then(function(kt){bt||(bt=!0,Pt[gt]=kt,--nt||J(Pt))},it)}),--nt||J(Pt)});return Ct.error&&it(Ct.value),W.promise},race:function(R){var G=this,W=vt(G),J=W.reject,it=B(function(){var Ct=b(G.resolve);E(R,function(Tt){d(Ct,G,Tt).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,_=d.document,I=d.process,S=d.Promise,E=l(d,"queueMicrotask"),C=E&&E.value;C||(e=function(){var T,P;for(b&&(T=I.domain)&&T.exit();r;){P=r.fn,r=r.next;try{P()}catch(U){throw r?i():n=void 0,U}}n=void 0,T&&T.enter()},v||b||y||!m||!_?!g&&S&&S.resolve?((f=S.resolve(void 0)).constructor=S,c=p(f.then,f),i=function(){c(e)}):b?i=function(){I.nextTick(e)}:(h=p(h,d),i=function(){h(e)}):(s=!0,u=_.createTextNode(""),new m(e).observe(u,{characterData:!0}),i=function(){u.data=s=!s})),o.exports=C||function(T){var P={fn:T,next:void 0};n&&(n.next=P),r||(r=P,i()),n=P}},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),_=b.UNSUPPORTED_Y,I=Math.min,S=[].push,E=n(/./.exec),C=n(S),T=n("".slice);i("split",function(P,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 L=l(f(this)),A=B===void 0?4294967295:B>>>0;if(A===0)return[];if(z===void 0)return[L];if(!s(z))return r(U,L,z,A);for(var D,H,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,L))&&!((H=Y.lastIndex)>tt&&(C(et,T(L,tt,D.index)),D.length>1&&D.index<L.length&&e(S,et,v(D,1)),Z=D[0].length,tt=H,et.length>=A));)Y.lastIndex===D.index&&Y.lastIndex++;return tt===L.length?!Z&&E(Y,"")||C(et,""):C(et,T(L,tt)),et.length>A?v(et,0,A):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 L=f(this),A=z==null?void 0:h(z,P);return A?r(A,z,L,B):r(F,l(L),z,B)},function(z,B){var L=u(this),A=l(z),D=V(F,L,A,B,F!==U);if(D.done)return D.value;var H=c(L,RegExp),Z=L.unicode,et=(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")+(_?"g":"y"),rt=new H(_?"^(?:"+L.source+")":L,et),tt=B===void 0?4294967295:B>>>0;if(tt===0)return[];if(A.length===0)return g(rt,A)===null?[A]:[];for(var Y=0,dt=0,pt=[];dt<A.length;){rt.lastIndex=_?0:dt;var yt,mt=g(rt,_?T(A,dt):A);if(mt===null||(yt=I(p(rt.lastIndex+(_?dt:0)),A.length))===Y)dt=d(A,dt,Z);else{if(C(pt,T(A,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,T(A,Y)),pt}]},!!m(function(){var P=/(?:)/,U=P.exec;P.exec=function(){return U.apply(this,arguments)};var V="ab".split(P);return V.length!==2||V[0]!=="a"||V[1]!=="b"}),_)},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,_){var I,S,E,C=c(this),T=f(C),P=u(m,T),U=u(_===void 0?T:_,T);if(n(C)&&(I=C.constructor,(i(I)&&(I===y||n(I.prototype))||s(I)&&(I=I[g])===null)&&(I=void 0),I===y||I===void 0))return h(C,P,U);for(S=new(I===void 0?y:I)(b(U-P,0)),E=0;P<U;P++,E++)P in C&&d(S,E,C[P]);return S.length=E,S}})},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,_=Math.min,I=n([].concat),S=n([].push),E=n("".indexOf),C=n("".slice),T="a".replace(/./,"$0")==="$0",P=!!/./[b]&&/./[b]("a","$0")==="";i("replace",function(U,V,F){var z=P?"$":"$0";return[function(B,L){var A=l(this),D=B==null?void 0:v(B,b);return D?r(D,B,A,L):r(V,p(A),B,L)},function(B,L){var A=u(this),D=p(B);if(typeof L=="string"&&E(L,z)===-1&&E(L,"$<")===-1){var H=F(V,A,D,L);if(H.done)return H.value}var Z=f(L);Z||(L=p(L));var et=A.global;if(et){var rt=A.unicode;A.lastIndex=0}for(var tt=[];;){var Y=y(A,D);if(Y===null||(S(tt,Y),!et))break;p(Y[0])===""&&(A.lastIndex=h(D,d(A.lastIndex),rt))}for(var dt,pt="",yt=0,mt=0;mt<tt.length;mt++){for(var ut=p((Y=tt[mt])[0]),lt=m(_(c(Y.index),D.length),0),xt=[],_t=1;_t<Y.length;_t++)S(xt,(dt=Y[_t])===void 0?dt:String(dt));var Et=Y.groups;if(Z){var vt=I([ut],xt,lt,D);Et!==void 0&&S(vt,Et);var ht=p(e(L,void 0,vt))}else ht=g(ut,D,lt,xt,Et,L);lt>=yt&&(pt+=C(D,yt,lt)+ht,yt=lt+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"})||!T||P)},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(_,I){var S;switch(i(I,0)){case"$":return"$";case"&":return d;case"`":return u(p,0,l);case"'":return u(p,y);case"<":S=v[u(I,1,-1)];break;default:var E=+I;if(E===0)return _;if(E>b){var C=n(E/10);return C===0?_:C<=b?h[C-1]===void 0?i(I,1):h[C-1]+i(I,1):_}S=h[E-1]}return S===void 0?"":S})}},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,_=t(69),I=t(5),S=t(107),E=t(108),C=I("match"),T=r.RegExp,P=T.prototype,U=r.SyntaxError,V=n(h),F=n(P.exec),z=n("".charAt),B=n("".replace),L=n("".indexOf),A=n("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,H=/a/g,Z=/a/g,et=new T(H)!==H,rt=v.MISSED_STICKY,tt=v.UNSUPPORTED_Y,Y=e&&(!et||rt||S||E||y(function(){return Z[C]=!1,T(H)!=H||T(Z)==Z||T(H,"i")!="/a/i"}));if(i("RegExp",Y)){for(var dt=function(ut,lt){var xt,_t,Et,vt,ht,St,q=d(P,this),st=p(ut),k=lt===void 0,w=[],O=ut;if(!q&&st&&k&&ut.constructor===dt)return ut;if((st||d(P,ut))&&(ut=ut.source,k&&(lt="flags"in O?O.flags:V(O))),ut=ut===void 0?"":l(ut),lt=lt===void 0?"":l(lt),O=ut,S&&"dotAll"in H&&(_t=!!lt&&L(lt,"s")>-1)&&(lt=B(lt,/s/g,"")),xt=lt,rt&&"sticky"in H&&(Et=!!lt&&L(lt,"y")>-1)&&tt&&(lt=B(lt,/y/g,"")),E&&(ut=(vt=function(M){for(var x,$=M.length,j=0,K="",Q=[],X={},N=!1,at=!1,R=0,G="";j<=$;j++){if((x=z(M,j))==="\\")x+=z(M,++j);else if(x==="]")N=!1;else if(!N)switch(!0){case x==="[":N=!0;break;case x==="(":F(D,A(M,j+1))&&(j+=2,at=!0),K+=x,R++;continue;case(x===">"&&at):if(G===""||b(X,G))throw new U("Invalid capture group name");X[G]=!0,Q[Q.length]=[G,R],at=!1,G="";continue}at?G+=x:K+=x}return[K,Q]}(ut))[0],w=vt[1]),ht=s(T(ut,lt),q?this:P,dt),(_t||Et||w.length)&&(St=m(ht),_t&&(St.dotAll=!0,St.raw=dt(function(M){for(var x,$=M.length,j=0,K="",Q=!1;j<=$;j++)(x=z(M,j))!=="\\"?Q||x!=="."?(x==="["?Q=!0:x==="]"&&(Q=!1),K+=x):K+="[\\s\\S]":K+=x+z(M,++j);return K}(ut),xt)),Et&&(St.sticky=!0),w.length&&(St.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 T[ut]},set:function(lt){T[ut]=lt}})},yt=c(T),mt=0;yt.length>mt;)pt(yt[mt++]);P.constructor=dt,dt.prototype=P,g(r,"RegExp",dt)}_("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 _=arguments.length<3?b:s(arguments[2]);if(g&&!v)return p(b,m,_);if(b==_){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 I=[null];return n(h,I,m),new(n(i,b,I))}var S=_.prototype,E=c(f(S)?S: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 _=y.indexOf("Map")!==-1,I=y.indexOf("Weak")!==-1,S=_?"set":"add",E=r[y],C=E&&E.prototype,T=E,P={},U=function(A){var D=n(C[A]);s(C,A,A=="add"?function(H){return D(this,H===0?0:H),this}:A=="delete"?function(H){return!(I&&!p(H))&&D(this,H===0?0:H)}:A=="get"?function(H){return I&&!p(H)?void 0:D(this,H===0?0:H)}:A=="has"?function(H){return!(I&&!p(H))&&D(this,H===0?0:H)}:function(H,Z){return D(this,H===0?0:H,Z),this})};if(i(y,!d(E)||!(I||C.forEach&&!l(function(){new E().entries().next()}))))T=m.getConstructor(b,y,_,S),u.enable();else if(i(y,!0)){var V=new T,F=V[S](I?{}:-0,1)!=V,z=l(function(){V.has(1)}),B=h(function(A){new E(A)}),L=!I&&l(function(){for(var A=new E,D=5;D--;)A[S](D,D);return!A.has(-0)});B||((T=b(function(A,D){c(A,C);var H=g(new E,A,T);return D!=null&&f(D,H[S],{that:H,AS_ENTRIES:_}),H})).prototype=C,C.constructor=T),(z||L)&&(U("delete"),U("has"),_&&U("get")),(L||F)&&U(S),I&&C.clear&&delete C.clear}return P[y]=T,e({global:!0,forced:T!=E},P),v(T,y),I||m.setStrong(T,y,_),T}},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 _=g(function(T,P){s(T,I),h(T,{type:y,index:r(null),first:void 0,last:void 0,size:0}),d||(T.size=0),P!=null&&u(P,T[m],{that:T,AS_ENTRIES:b})}),I=_.prototype,S=v(y),E=function(T,P,U){var V,F,z=S(T),B=C(T,P);return B?B.value=U:(z.last=B={index:F=p(P,!0),key:P,value:U,previous:V=z.last,next:void 0,removed:!1},z.first||(z.first=B),V&&(V.next=B),d?z.size++:T.size++,F!=="F"&&(z.index[F]=B)),T},C=function(T,P){var U,V=S(T),F=p(P);if(F!=="F")return V.index[F];for(U=V.first;U;U=U.next)if(U.key==P)return U};return n(I,{clear:function(){for(var T=S(this),P=T.index,U=T.first;U;)U.removed=!0,U.previous&&(U.previous=U.previous.next=void 0),delete P[U.index],U=U.next;T.first=T.last=void 0,d?T.size=0:this.size=0},delete:function(T){var P=S(this),U=C(this,T);if(U){var V=U.next,F=U.previous;delete P.index[U.index],U.removed=!0,F&&(F.next=V),V&&(V.previous=F),P.first==U&&(P.first=V),P.last==U&&(P.last=F),d?P.size--:this.size--}return!!U},forEach:function(T){for(var P,U=S(this),V=i(T,arguments.length>1?arguments[1]:void 0);P=P?P.next:U.first;)for(V(P.value,P.key,this);P&&P.removed;)P=P.previous},has:function(T){return!!C(this,T)}}),n(I,b?{get:function(T){var P=C(this,T);return P&&P.value},set:function(T,P){return E(this,T===0?0:T,P)}}:{add:function(T){return E(this,T=T===0?0:T,T)}}),d&&e(I,"size",{get:function(){return S(this).size}}),_},setStrong:function(g,y,b){var m=y+" Iterator",_=v(y),I=v(m);f(g,y,function(S,E){h(this,{type:m,target:S,state:_(S),kind:E,last:void 0})},function(){for(var S=I(this),E=S.kind,C=S.last;C&&C.removed;)C=C.previous;return S.target&&(S.last=C=C?C.next:S.state.first)?E=="keys"?{value:C.key,done:!1}:E=="values"?{value:C.value,done:!1}:{value:[C.key,C.value],done:!1}:(S.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),_=t(21),I=t(14),S=t(39),E=t(13),C=t(28),T=t(20),P=t(68),U=t(25),V=t(123),F=t(91),z=t(26),B=t(9),L=t(106),A=t(83),D=t(52),H=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,lt=et("hidden"),xt=Y("toPrimitive"),_t=mt.set,Et=mt.getterFor("Symbol"),vt=Object.prototype,ht=r.Symbol,St=ht&&ht.prototype,q=r.TypeError,st=r.QObject,k=n("JSON","stringify"),w=z.f,O=B.f,M=V.f,x=A.f,$=u([].push),j=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 T(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,G=function(nt,ct){var gt=j[nt]=T(St);return _t(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=S(ct);return m(gt),l(j,bt)?(gt.enumerable?(l(nt,lt)&&nt[lt][bt]&&(nt[lt][bt]=!1),gt=T(gt,{enumerable:C(0,!1)})):(l(nt,lt)||O(nt,lt,C(1,{})),nt[lt][bt]=!0),R(nt,bt,gt)):O(nt,bt,gt)},J=function(nt,ct){m(nt);var gt=I(ct),bt=P(gt).concat(Pt(gt));return ut(bt,function(kt){c&&!s(it,gt,kt)||W(nt,kt,gt[kt])}),nt},it=function(nt){var ct=S(nt),gt=s(x,this,ct);return!(this===vt&&l(j,ct)&&!l(K,ct))&&(!(gt||!l(this,ct)||!l(j,ct)||l(this,lt)&&this[lt][ct])||gt)},Ct=function(nt,ct){var gt=I(nt),bt=S(ct);if(gt!==vt||!l(j,bt)||l(K,bt)){var kt=w(gt,bt);return!kt||!l(j,bt)||l(gt,lt)&>[lt][bt]||(kt.enumerable=!0),kt}},Tt=function(nt){var ct=M(I(nt)),gt=[];return ut(ct,function(bt){l(j,bt)||l(rt,bt)||$(gt,bt)}),gt},Pt=function(nt){var ct=nt===vt,gt=M(ct?K:I(nt)),bt=[];return ut(gt,function(kt){!l(j,kt)||ct&&!l(vt,kt)||$(bt,j[kt])}),bt};if(d||(H(St=(ht=function(){if(y(St,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,lt)&&l(this[lt],ct)&&(this[lt][ct]=!1),R(this,ct,C(1,bt))};return c&&at&&R(vt,ct,{configurable:!0,set:gt}),G(ct,nt)}).prototype,"toString",function(){return Et(this).tag}),H(ht,"withoutSetter",function(nt){return G(tt(nt),nt)}),A.f=it,B.f=W,L.f=J,z.f=Ct,U.f=V.f=Tt,F.f=Pt,dt.f=function(nt){return G(Y(nt),nt)},c&&(O(St,"description",{configurable:!0,get:function(){return Et(this).description}}),f||H(vt,"propertyIsEnumerable",it,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:ht}),ut(P(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?T(nt):J(T(nt),ct)},defineProperty:W,defineProperties:J,getOwnPropertyDescriptor:Ct}),e({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:Tt,getOwnPropertySymbols:Pt}),e({target:"Object",stat:!0,forced:p(function(){F.f(1)})},{getOwnPropertySymbols:function(nt){return F.f(_(nt))}}),k&&e({target:"JSON",stat:!0,forced:!d||p(function(){var nt=ht();return k([nt])!="[null]"||k({a:nt})!="{}"||k(Object(nt))!="{}"})},{stringify:function(nt,ct,gt){var bt=D(arguments),kt=ct;if((g(ct)||nt!==void 0)&&!b(nt))return h(ct)||(ct=function(Ht,Bt){if(v(kt)&&(Bt=s(kt,this,Ht,Bt)),!b(Bt))return Bt}),bt[1]=ct,i(k,null,bt)}}),!St[xt]){var Nt=St.valueOf;H(St,xt,function(nt){return s(Nt,this)})}yt(ht,"Symbol"),rt[lt]=!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),_=/^Symbol\((.*)\)[^)]+$/,I=i("".replace),S=i("".slice);d(h,"description",{configurable:!0,get:function(){var E=m(this),C=b(E);if(s(v,E))return"";var T=y?S(C,7,-1):I(C,_,"$1");return T===""?void 0:T}}),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,_=m.prototype,I=r.TypeError,S=n("".slice),E=n("".charCodeAt),C=function(z){var B=p(z,"number");return typeof B=="bigint"?B:T(B)},T=function(z){var B,L,A,D,H,Z,et,rt,tt=p(z,"number");if(d(tt))throw I("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((L=E(tt,2))===88||L===120)return NaN}else if(B===48){switch(E(tt,1)){case 66:case 98:A=2,D=49;break;case 79:case 111:A=8,D=55;break;default:return+tt}for(Z=(H=S(tt,2)).length,et=0;et<Z;et++)if((rt=E(H,et))<48||rt>D)return NaN;return parseInt(H,A)}}return+tt};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var P,U=function(z){var B=arguments.length<1?0:m(C(z)),L=this;return c(_,L)&&l(function(){y(L)})?f(Object(B),L,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,P=V[F])&&!u(U,P)&&g(U,P,v(m,P));U.prototype=_,_.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)}/*!
|
|
11
|
+
</li>`)}});var z=document.createElement("ul");return z.className=T,z.innerHTML=F,z}}])&&c(m.prototype,_),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 v=[];function y(b){v?v.push(b):p&&b(p),l||(l=new Promise(function(m,_){var S=new XMLHttpRequest;S.onload=function(){try{m(JSON.parse(S.responseText))}catch(w){_(w)}},S.onerror=function(){_(new Error("error"))},S.ontimeout=function(){_(new Error("timeout"))},S.open("GET",n+"data.json",!0),S.timeout=5e3,S.send()}).then(function(m){(function _(S){if(v!=null&&v.length){var w=v.shift();try{w&&w(S)}finally{setTimeout(function(){_(S)},0)}}else v=void 0})(p=new g(m.list||[]))}))}}]);class Le extends jt{constructor(){super(...arguments);yt(this,"__emotionParser");yt(this,"__emotionParserPromise");yt(this,"__getEmotionImagePromise")}setupEmotionParser(){return this.__emotionParser?Promise.resolve():(this.__emotionParserPromise||(this.__emotionParserPromise=new Promise(t=>{zt.emotionsReady(e=>{this.__emotionParser=e,t(void 0)})})),this.__emotionParserPromise)}getEmotionParser(){return this.__emotionParser||console.warn("EmotionParser is not ready"),this.__emotionParser}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}getEmotionImages(){return it(this,null,function*(){return this.__getEmotionImagePromise||(this.__getEmotionImagePromise=new Promise(t=>{it(this,null,function*(){const e=yield this._plvSocket.channel.getChannelInfo(),r=yield this._plvSocket.chatApi.get("/front/getEmotionImages",{roomId:e.channelId,accountId:e.accountId});t(r.list)})})),this.__getEmotionImagePromise})}}class je extends jt{constructor(t){var e;super(t);yt(this,"__chatHistoryEncrypt",!1);yt(this,"__apiFilter",new ce(this._plvChat));this.__chatHistoryEncrypt=(e=t.config.chatHistoryEncrypt)!=null?e:!1}setChatHistoryEncrypt(t){this.__chatHistoryEncrypt=t}getChatHistoryByTime(){return it(this,arguments,function*(t={}){const{timestamp:e,count:r,size:n=10,mode:i=Ft.Prev,getBanStatus:s=!1,onlySpecialMsg:u=!1}=t,c={roomId:(yield this._plvSocket.channel.getChannelInfo()).channelId,timestamp:e,index:r,size:n};u&&(c.getSpecialMessage="Y"),i===Ft.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");const[h]=yield Promise.all([this._plvSocket.chatApi.get(l,c,{responseType:p?"text":"json",useAESDecrypt:p}),this._plvChat.emotion.setupEmotionParser()]);let g=h.list;return i===Ft.Prev&&(g=g.reverse()),this.__apiFilter.filterApiMsgList(g)})}__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 it(this,arguments,function*(t={}){const{timestamp:e=Date.now(),size:r,mode:n=Ft.Prev}=t,i=yield this._plvSocket.channel.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},[f]=yield Promise.all([this._plvSocket.chatApi.get("/front/channel/tags/chat-history/get",u),this._plvChat.emotion.setupEmotionParser()]);let c=f.list;return n===Ft.Prev&&(c=c.reverse()),this.__apiFilter.filterApiMsgList(c)})}getSessionHistoryCount(t){return it(this,null,function*(){var s;const{sessionId:e}=t,r=yield this._plvSocket.channel.getChannelInfo(),n={sessionId:e,page:1,size:1,timestamp:Date.now(),roomId:r.channelId};return(s=(yield this._plvSocket.chatApi.get("/front/getHistoryBySessionId",n,{appendChatSign:!0,appendChannelId:!1})).count)!=null?s:0})}}class Ne extends jt{constructor(t){var e;super(t);yt(this,"__realtimeLikes",0);this.__realtimeLikes=(e=t.config.defaultLikes)!=null?e:0,this._plvSocket.addSocketHandles(At,{LIKES:r=>{const n=this._plvSocket.isCurrentUser(r.userId);n||this.setRealtimeLikes(this.__realtimeLikes+r.count),this._plvChat.eventEmitter.emit(St.ChatLike,{count:r.count,realtimeLikes:this.__realtimeLikes,userId:r.userId,nick:r.nick,isSelf:n})}}),this._plvSocket.addSocketHandles(At,r=>{const n=Number(r.count);this.setRealtimeLikes(n)},"fakeLikes")}getRealtimeLikes(){return this.__realtimeLikes}setRealtimeLikes(t){this.__realtimeLikes!==t&&(this.__realtimeLikes=t,this._plvChat.eventEmitter.emit(St.ChatLikesUpdate,{realtimeLikes:t}))}sendLike(t){return it(this,null,function*(){const e=this._plvSocket.getUserInfo(),r=yield this._plvSocket.channel.getChannelInfo(),n={EVENT:"LIKES",roomId:r.channelId,count:t,userId:e.userId,nick:e.nick,sessionId:r.sessionId};return yield this._plvSocket.emitSocket(n),this._plvChat.eventEmitter.emit(St.SendChatLike,{count:t}),this.setRealtimeLikes(this.__realtimeLikes+t),this.__realtimeLikes})}}class Ue extends jt{constructor(){super(...arguments);yt(this,"__isListened",!1)}listenManageEvent(){this.__isListened||(this._plvSocket.addSocketHandles(At,{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 it(this,null,function*(){const e=yield this._plvSocket.channel.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:Nt.UnknownError}})}clearMsg(){return it(this,null,function*(){const t=yield this._plvSocket.channel.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 it(this,null,function*(){const e=yield this._plvSocket.channel.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:Nt.PlatformProhibited}:{success:!0}})}cancelBanUser(t){return it(this,null,function*(){const e=yield this._plvSocket.channel.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:Nt.PlatformProhibited}:{success:!0}})}getBannedUserList(){return it(this,arguments,function*(t={}){const{keyword:e,pageNumber:r=1,pageSize:n=10}=t,s={roomId:(yield this._plvSocket.channel.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:Kt(f.isAccount,"N")}))}})}banIp(t){return it(this,null,function*(){const e=yield this._plvSocket.channel.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:Nt.PlatformProhibited}:{success:!0}})}cancelBanIp(t){return it(this,null,function*(){const e=yield this._plvSocket.channel.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:Nt.PlatformProhibited}:{success:!0}})}getBannedIpList(){return it(this,null,function*(){const t=yield this._plvSocket.channel.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 it(this,null,function*(){const e=yield this._plvSocket.channel.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:Nt.PlatformProhibited}:(this._plvChat.eventEmitter.emit(St.UserKicked,{userId:t.userId}),{success:!0})})}cancelKickUser(t){return it(this,null,function*(){const e=yield this._plvSocket.channel.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:Nt.PlatformProhibited}:{success:!0}})}getKickedUserList(){return it(this,null,function*(){const t=yield this._plvSocket.channel.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:Kt(r.isAccount,"N")}))}})}motivateLike(t){return it(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 it(this,null,function*(){const e={EVENT:"TO_TOP",id:t.msgId};yield this._plvSocket.emitSocket(e,"speak")})}cancelTopMsg(t){return it(this,null,function*(){const e={EVENT:"CANCEL_TOP",id:t.id};yield this._plvSocket.emitSocket(e,"speak")})}setChatSwitch(t){return it(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 it(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 le={[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},pe=[ot.Speak],de=[ot.Speak,ot.Image,ot.File,ot.Redpaper,ot.CustomServer,ot.Emotion];function Fe(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+=Gt(u)+`<a target="_blank" rel="noopener" href="${s}">${s}</a>`;const f=u+s;i=i.slice(f.length)}),i&&(n+=Gt(i)),n}return o}class De extends jt{constructor(t){super(t);yt(this,"topingMsgs",[]);yt(this,"__fullMessageRecord",{});this._plvSocket.addSocketHandles(At,{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(At,{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 le[t.msgSource]}canQuoteMsg(t){return de.includes(t.msgSource)}canTopMsg(t){return pe.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=Gt(se(t));return f=f.replace(/ /g," "),n&&(f=Fe(f)),i&&r&&(f=r.removeAll(f)),s&&r&&(f=r.parse(f,zt.EmotionParsingMode.HTML)),u&&(f=Oe(f)),f}getFullMessage(t){return it(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=>{it(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 it(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 it(this,null,function*(){const{chatMsg:e}=t,r={EVENT:"GET_ORIGINAL_SPEAK",id:e.id};return(yield this._plvSocket.emitSocket(r,"speak")).content})}}class Be extends jt{getOnlineList(){return it(this,arguments,function*(a={}){const{keyword:t=""}=a;return this._plvSocket.currentIsSpecialUser()?t?this.__getOnlineListByKeyword(a):this.__getOnlineListByNormal(a):this.__getOnlineListByViewer()})}__getOnlineListByViewer(){return it(this,null,function*(){const a=yield this._plvSocket.channel.getChannelInfo(),t=this._plvSocket.getUserInfo();let e=`/front/viewer/user-list/${a.channelId}`;a.sessionId&&a.inTargetSession?e=`/front/viewer/user-list/session/${a.channelId}/${a.sessionId}`:t.groupId&&(e=`/front/viewer/user-list/${a.channelId}/${t.groupId}`);const r=yield this._plvSocket.chatApi.get(e,{},{appendChannelId:!1});return{total:r.total,onlineList:r.list}})}__getOnlineListByKeyword(a){return it(this,null,function*(){const{keyword:t="",getBanStatus:e=!1}=a,r=yield this._plvSocket.channel.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 it(this,null,function*(){const{count:t=10,getBanStatus:e=!1}=a,r=yield this._plvSocket.channel.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 it(this,null,function*(){var p;const{keyword:t="",count:e=10,searchType:r="attendance"}=a,n=yield this._plvSocket.channel.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}})}}class ze extends jt{__getCurrentChatMsgUserData(){return it(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 it(this,null,function*(){const{emitLocalMsg:e=!0}=t,r=yield this.__getCurrentChatMsgUserData();let n;const i={[ot.Speak]:s=>it(this,null,function*(){const f={id:s.localId||Lt(),msgSource:ot.Speak,time:Date.now(),user:r,content:Gt(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=>it(this,null,function*(){return{id:s.localId||Lt(),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=>it(this,null,function*(){return{id:s.localId||Lt(),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 it(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.channel.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 it(this,null,function*(){const t=yield this.generateLocalMsg(ot.Image,a),e=t.id,r=yield this._plvSocket.channel.getChannelInfo(),n={EVENT:"CHAT_IMG",roomId:r.channelId,values:[{id:t.imageId,uploadImgUrl:fe(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 it(this,arguments,function*(a={}){const{choiceCallback:t}=a,e={};return yield this._plvChat.utils.uploadMultiImage({ready:n=>it(this,null,function*(){t&&t();const i=yield this.generateLocalMsg(ot.Image,{imageId:n.imageId,imageUrl:n.previewSrc,size:n.size});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 it(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:Lt(),msgSource:ot.System,time:Date.now(),content:a,type:t};this._plvChat.eventEmitter.emit(St.ChatMessage,{chatMsg:e})}sendCustomServerMsg(a){return it(this,null,function*(){yield this._plvSocket.polyvApi.get("/live/v4/chat/send-custom-message",{content:a.content})})}}class He extends jt{constructor(t){super(t);yt(this,"__statusInfo",this.generateStatusInfo());this._plvSocket.addSocketHandles(At,{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 it(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 Ge=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,g,v,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(g=d[l],h=c.noTargetGet?(v=r(p,l))&&v.value:p[l],!f(b?l:y+(m?".":"#")+l,c.forced)&&h!==void 0){if(typeof g==typeof h)continue;u(g,h)}(c.sham||h&&h.sham)&&n(g,"sham",!0),i(p,l,g,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 g=d(p,l);g&&g.writable&&(p[l]=h.value,h={configurable:"configurable"in h?h.configurable:g.configurable,enumerable:"enumerable"in h?h.enumerable:g.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(g){}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,g,v,y){var b,m=!!y&&!!y.unsafe,_=!!y&&!!y.enumerable,S=!!y&&!!y.noTargetGet,w=y&&y.name!==void 0?y.name:g;r(v)&&(String(w).slice(0,7)==="Symbol("&&(w="["+String(w).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!n(v,"name")||c&&v.name!==w)&&i(v,"name",w),(b=p(v)).source||(b.source=l.join(typeof w=="string"?w:""))),h!==e?(m?!S&&h[g]&&(_=!0):delete h[g],_?h[g]=v:i(h,g,v)):_?h[g]=v:s(g,v)})(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),g=s.TypeError,v=s.WeakMap;if(i||p.state){var y=p.state||(p.state=new v),b=u(y.get),m=u(y.has),_=u(y.set);e=function(w,E){if(m(y,w))throw new g("Object already initialized");return E.facade=w,_(y,w,E),E},r=function(w){return b(y,w)||{}},n=function(w){return m(y,w)}}else{var S=l("state");h[S]=!0,e=function(w,E){if(d(w,S))throw new g("Object already initialized");return E.facade=w,c(w,S,E),E},r=function(w){return d(w,S)?w[S]:{}},n=function(w){return d(w,S)}}o.exports={set:e,get:r,has:n,enforce:function(w){return n(w)?r(w):e(w,{})},getterFor:function(w){return function(E){var k;if(!f(E)||(k=r(E)).type!==w)throw g("Incompatible receiver, "+w+" required");return k}}}},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(v){return"<script>"+v+"<\/script>"},h=function(v){v.write(l("")),v.close();var y=v.parentWindow.Object;return v=null,y},g=function(){try{e=new ActiveXObject("htmlfile")}catch(m){}var v,y;g=typeof document!="undefined"?document.domain&&e?h(e):((y=f("iframe")).style.display="none",u.appendChild(y),y.src="javascript:",(v=y.contentWindow.document).open(),v.write(l("document.F=Object")),v.close(),v.F):h(e);for(var b=i.length;b--;)delete g.prototype[i[b]];return g()};s[d]=!0,o.exports=Object.create||function(v,y){var b;return v!==null?(p.prototype=r(v),b=new p,p.prototype=null,b[d]=v):b=g(),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,g){try{return h[g]}catch(v){}}(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),g=c("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,b=i("".charAt),m=i("".indexOf),_=i("".replace),S=i("".slice),w=(r=/b*/g,n(v,e=/a/,"a"),n(v,r,"a"),e.lastIndex!==0||r.lastIndex!==0),E=f.BROKEN_CARET,k=/()??/.exec("")[1]!==void 0;(w||k||E||l||h)&&(y=function(T){var A,U,V,F,z,B,L,R=this,D=p(R),H=s(T),Z=D.raw;if(Z)return Z.lastIndex=R.lastIndex,A=n(y,Z,H),R.lastIndex=Z.lastIndex,A;var et=D.groups,rt=E&&R.sticky,tt=n(u,R),Y=R.source,dt=0,pt=H;if(rt&&(tt=_(tt,"y",""),m(tt,"g")===-1&&(tt+="g"),pt=S(H,R.lastIndex),R.lastIndex>0&&(!R.multiline||R.multiline&&b(H,R.lastIndex-1)!==`
|
|
12
|
+
`)&&(Y="(?: "+Y+")",pt=" "+pt,dt++),U=new RegExp("^(?:"+Y+")",tt)),k&&(U=new RegExp("^"+Y+"$(?!\\s)",tt)),w&&(V=R.lastIndex),F=n(v,rt?U:R,pt),rt?F?(F.input=S(F.input,dt),F[0]=S(F[0],dt),F.index=R.lastIndex,R.lastIndex+=F[0].length):R.lastIndex=0:w&&F&&(R.lastIndex=R.global?F.index+F[0].length:V),k&&F&&F.length>1&&n(g,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[(L=et[z])[0]]=F[L[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),g=function(y){if(!n(y))return!1;try{return d(f,c,y),!0}catch(b){return!1}},v=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}};v.sham=!0,o.exports=!d||r(function(){var y;return g(g.call)||!g(Object)||!g(function(){y=!0})||y})?v:g},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,g=function(y,b){this.stopped=y,this.result=b},v=g.prototype;o.exports=function(y,b,m){var _,S,w,E,k,T,A,U=m&&m.that,V=!(!m||!m.AS_ENTRIES),F=!(!m||!m.IS_ITERATOR),z=!(!m||!m.INTERRUPTED),B=r(b,U),L=function(D){return _&&l(_,"normal",D),new g(!0,D)},R=function(D){return V?(i(D),z?B(D[0],D[1],L):B(D[0],D[1])):z?B(D,L):B(D)};if(F)_=y;else{if(!(S=p(y)))throw h(s(y)+" is not iterable");if(u(S)){for(w=0,E=f(y);E>w;w++)if((k=R(y[w]))&&c(v,k))return k;return new g(!1)}_=d(y,S)}for(T=_.next;!(A=n(T,_)).done;){try{k=R(A.value)}catch(D){l(_,"throw",D)}if(typeof k=="object"&&k&&c(v,k))return k}return new g(!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),g=t(37),v=t(121),y=i.PROPER,b=i.CONFIGURABLE,m=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,S=h("iterator"),w=function(){return this};o.exports=function(E,k,T,A,U,V,F){u(T,k,A);var z,B,L,R=function(Y){if(Y===U&&rt)return rt;if(!_&&Y in Z)return Z[Y];switch(Y){case"keys":case"values":case"entries":return function(){return new T(this,Y)}}return function(){return new T(this)}},D=k+" Iterator",H=!1,Z=E.prototype,et=Z[S]||Z["@@iterator"]||U&&Z[U],rt=!_&&et||R(U),tt=k=="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[S])||l(z,S,w)),d(z,D,!0,!0),n&&(g[D]=w)),y&&U=="values"&&et&&et.name!=="values"&&(!n&&b?p(Z,"name","values"):(H=!0,rt=function(){return r(et,this)})),U)if(B={values:R("values"),keys:V?rt:R("keys"),entries:R("entries")},F)for(L in B)(_||H||!(L in Z))&&l(Z,L,B[L]);else e({target:k,proto:!0,forced:_||H},B);return n&&!F||Z[S]===rt||l(Z,S,rt,{name:U}),g[k]=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,g=271733878,v=0;v<c.length;v++)c[v]=16711935&(c[v]<<8|c[v]>>>24)|4278255360&(c[v]<<24|c[v]>>>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._ii;for(v=0;v<c.length;v+=16){var S=p,w=l,E=h,k=g;p=y(p,l,h,g,c[v+0],7,-680876936),g=y(g,p,l,h,c[v+1],12,-389564586),h=y(h,g,p,l,c[v+2],17,606105819),l=y(l,h,g,p,c[v+3],22,-1044525330),p=y(p,l,h,g,c[v+4],7,-176418897),g=y(g,p,l,h,c[v+5],12,1200080426),h=y(h,g,p,l,c[v+6],17,-1473231341),l=y(l,h,g,p,c[v+7],22,-45705983),p=y(p,l,h,g,c[v+8],7,1770035416),g=y(g,p,l,h,c[v+9],12,-1958414417),h=y(h,g,p,l,c[v+10],17,-42063),l=y(l,h,g,p,c[v+11],22,-1990404162),p=y(p,l,h,g,c[v+12],7,1804603682),g=y(g,p,l,h,c[v+13],12,-40341101),h=y(h,g,p,l,c[v+14],17,-1502002290),p=b(p,l=y(l,h,g,p,c[v+15],22,1236535329),h,g,c[v+1],5,-165796510),g=b(g,p,l,h,c[v+6],9,-1069501632),h=b(h,g,p,l,c[v+11],14,643717713),l=b(l,h,g,p,c[v+0],20,-373897302),p=b(p,l,h,g,c[v+5],5,-701558691),g=b(g,p,l,h,c[v+10],9,38016083),h=b(h,g,p,l,c[v+15],14,-660478335),l=b(l,h,g,p,c[v+4],20,-405537848),p=b(p,l,h,g,c[v+9],5,568446438),g=b(g,p,l,h,c[v+14],9,-1019803690),h=b(h,g,p,l,c[v+3],14,-187363961),l=b(l,h,g,p,c[v+8],20,1163531501),p=b(p,l,h,g,c[v+13],5,-1444681467),g=b(g,p,l,h,c[v+2],9,-51403784),h=b(h,g,p,l,c[v+7],14,1735328473),p=m(p,l=b(l,h,g,p,c[v+12],20,-1926607734),h,g,c[v+5],4,-378558),g=m(g,p,l,h,c[v+8],11,-2022574463),h=m(h,g,p,l,c[v+11],16,1839030562),l=m(l,h,g,p,c[v+14],23,-35309556),p=m(p,l,h,g,c[v+1],4,-1530992060),g=m(g,p,l,h,c[v+4],11,1272893353),h=m(h,g,p,l,c[v+7],16,-155497632),l=m(l,h,g,p,c[v+10],23,-1094730640),p=m(p,l,h,g,c[v+13],4,681279174),g=m(g,p,l,h,c[v+0],11,-358537222),h=m(h,g,p,l,c[v+3],16,-722521979),l=m(l,h,g,p,c[v+6],23,76029189),p=m(p,l,h,g,c[v+9],4,-640364487),g=m(g,p,l,h,c[v+12],11,-421815835),h=m(h,g,p,l,c[v+15],16,530742520),p=_(p,l=m(l,h,g,p,c[v+2],23,-995338651),h,g,c[v+0],6,-198630844),g=_(g,p,l,h,c[v+7],10,1126891415),h=_(h,g,p,l,c[v+14],15,-1416354905),l=_(l,h,g,p,c[v+5],21,-57434055),p=_(p,l,h,g,c[v+12],6,1700485571),g=_(g,p,l,h,c[v+3],10,-1894986606),h=_(h,g,p,l,c[v+10],15,-1051523),l=_(l,h,g,p,c[v+1],21,-2054922799),p=_(p,l,h,g,c[v+8],6,1873313359),g=_(g,p,l,h,c[v+15],10,-30611744),h=_(h,g,p,l,c[v+6],15,-1560198380),l=_(l,h,g,p,c[v+13],21,1309151649),p=_(p,l,h,g,c[v+4],6,-145523070),g=_(g,p,l,h,c[v+11],10,-1120210379),h=_(h,g,p,l,c[v+2],15,718787259),l=_(l,h,g,p,c[v+9],21,-343485551),p=p+S>>>0,l=l+w>>>0,h=h+E>>>0,g=g+k>>>0}return e.endian([p,l,h,g])})._ff=function(u,f,c,d,p,l,h){var g=u+(f&c|~f&d)+(p>>>0)+h;return(g<<l|g>>>32-l)+f},s._gg=function(u,f,c,d,p,l,h){var g=u+(f&d|c&~d)+(p>>>0)+h;return(g<<l|g>>>32-l)+f},s._hh=function(u,f,c,d,p,l,h){var g=u+(f^c^d)+(p>>>0)+h;return(g<<l|g>>>32-l)+f},s._ii=function(u,f,c,d,p,l,h){var g=u+(c^(f|~d))+(p>>>0)+h;return(g<<l|g>>>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,g=s(p,d);if(g){if(l===void 0&&(l="default"),h=r(g,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,g=d==4,v=d==6,y=d==7,b=d==5||v;return function(m,_,S,w){for(var E,k,T=i(m),A=n(T),U=e(_,S),V=s(A),F=0,z=w||u,B=p?z(m,V):l||y?z(m,0):void 0;V>F;F++)if((b||F in A)&&(k=U(E=A[F],F,T),d))if(p)B[F]=k;else if(k)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 v?-1:h||g?g: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),g=t(45),v=t(142),y=t(104),b=t(72),m=s.setImmediate,_=s.clearImmediate,S=s.process,w=s.Dispatch,E=s.Function,k=s.MessageChannel,T=s.String,A=0,U={};try{e=s.location}catch(L){}var V=function(L){if(d(U,L)){var R=U[L];delete U[L],R()}},F=function(L){return function(){V(L)}},z=function(L){V(L.data)},B=function(L){s.postMessage(T(L),e.protocol+"//"+e.host)};m&&_||(m=function(L){v(arguments.length,1);var R=c(L)?L:E(L),D=h(arguments,1);return U[++A]=function(){u(R,void 0,D)},r(A),A},_=function(L){delete U[L]},b?r=function(L){S.nextTick(F(L))}:w&&w.now?r=function(L){w.now(F(L))}:k&&!y?(i=(n=new k).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 g("script")?function(L){l.appendChild(g("script")).onreadystatechange=function(){l.removeChild(this),V(L)}}:function(L){setTimeout(F(L),0)}),o.exports={set:m,clear:_}},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,g=0;h>g;)n.f(f,d=l[g++],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 g=s(d),v=!i(function(){var _={};return _[g]=function(){return 7},""[d](_)!=7}),y=v&&!i(function(){var _=!1,S=/a/;return d==="split"&&((S={}).constructor={},S.constructor[f]=function(){return S},S.flags="",S[g]=/./[g]),S.exec=function(){return _=!0,null},S[g](""),!_});if(!v||!y||l){var b=e(/./[g]),m=p(g,""[d],function(_,S,w,E,k){var T=e(_),A=S.exec;return A===n||A===c.exec?v&&!k?{done:!0,value:b(S,w,E)}:{done:!0,value:T(w,S,E)}:{done:!1}});r(String.prototype,d,m[0]),r(c,g,m[1])}h&&u(c[g],"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,g,v=n(i(p)),y=r(l),b=v.length;return y<0||y>=b?d?"":void 0:(h=u(v,y))<55296||h>56319||y+1===b||(g=u(v,y+1))<56320||g>57343?d?s(v,y):h:d?f(v,y,y+2):g-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),g=s(u(h-l,0)),v=0;l<h;l++,v++)i(g,v,f[l]);return g.length=v,g}},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"}),g=r&&p.name!="toString";(h||g)&&n(RegExp.prototype,"toString",function(){var v=i(this),y=u(v.source),b=v.flags;return"/"+y+"/"+u(b===void 0&&s(d,v)&&!("flags"in d)?l(v):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(g,v,y){if(!s(l,v)){for(var b=[],m=0;m<v;m++)b[m]="a["+m+"]";l[v]=c("C,a","return new C("+p(b,",")+")")}return l[v](g,y)};o.exports=f?c.bind:function(g){var v=n(this),y=v.prototype,b=u(arguments,1),m=function(){var _=d(b,u(arguments));return this instanceof m?h(v,_.length,_):v.apply(g,_)};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,g){d(this,{type:"Array Iterator",target:e(h),index:0,kind:g})},function(){var h=p(this),g=h.target,v=h.kind,y=h.index++;return!g||y>=g.length?(h.target=void 0,{value:void 0,done:!0}):v=="keys"?{value:y,done:!1}:v=="values"?{value:g[y],done:!1}:{value:[y,g[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 g={};return e[l].call(g)!==g})?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,g=p("meta"),v=0,y=function(m){u(m,g,{value:{objectID:"O"+v++,weakData:{}}})},b=o.exports={enable:function(){b.enable=function(){},h=!0;var m=f.f,_=r([].splice),S={};S[g]=1,m(S).length&&(f.f=function(w){for(var E=m(w),k=0,T=E.length;k<T;k++)if(E[k]===g){_(E,k,1);break}return E},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(m,_){if(!i(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!s(m,g)){if(!d(m))return"F";if(!_)return"E";y(m)}return m[g].objectID},getWeakData:function(m,_){if(!s(m,g)){if(!d(m))return!0;if(!_)return!1;y(m)}return m[g].weakData},onFreeze:function(m){return l&&h&&d(m)&&!s(m,g)&&y(m),m}};n[g]=!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),g=t(51),v=t(36),y=t(69),b=t(23),m=t(4),_=t(7),S=t(70),w=t(46),E=t(71),k=t(99),T=t(100),A=t(102).set,U=t(143),V=t(146),F=t(147),z=t(105),B=t(148),L=t(149),R=t(19),D=t(33),H=t(5),Z=t(150),et=t(72),rt=t(57),tt=H("species"),Y="Promise",dt=R.getterFor(Y),pt=R.set,bt=R.getterFor(Y),mt=p&&p.prototype,ct=p,lt=mt,xt=f.TypeError,_t=f.document,Et=f.process,gt=z.f,ht=gt,wt=!!(_t&&_t.createEvent&&f.dispatchEvent),q=m(f.PromiseRejectionEvent),ut=!1,C=D(Y,function(){var P=w(ct),G=P!==String(ct);if(!G&&rt===66||u&&!lt.finally)return!0;if(rt>=51&&/native code/.test(P))return!1;var W=new ct(function(at){at(1)}),X=function(at){at(function(){},function(){})};return(W.constructor={})[tt]=X,!(ut=W.then(function(){})instanceof X)||!G&&Z&&!q}),I=C||!k(function(P){ct.all(P).catch(function(){})}),O=function(P){var G;return!(!_(P)||!m(G=P.then))&&G},M=function(P,G){var W,X,at,kt=G.value,Tt=G.state==1,Pt=Tt?P.ok:P.fail,Ut=P.resolve,nt=P.reject,ft=P.domain;try{Pt?(Tt||(G.rejection===2&&Q(G),G.rejection=1),Pt===!0?W=kt:(ft&&ft.enter(),W=Pt(kt),ft&&(ft.exit(),at=!0)),W===P.promise?nt(xt("Promise-chain cycle")):(X=O(W))?d(X,W,Ut,nt):Ut(W)):nt(kt)}catch(vt){ft&&!at&&ft.exit(),nt(vt)}},x=function(P,G){P.notified||(P.notified=!0,U(function(){for(var W,X=P.reactions;W=X.get();)M(W,P);P.notified=!1,G&&!P.rejection&&j(P)}))},$=function(P,G,W){var X,at;wt?((X=_t.createEvent("Event")).promise=G,X.reason=W,X.initEvent(P,!1,!0),f.dispatchEvent(X)):X={promise:G,reason:W},!q&&(at=f["on"+P])?at(X):P==="unhandledrejection"&&F("Unhandled promise rejection",W)},j=function(P){d(A,f,function(){var G,W=P.facade,X=P.value;if(K(P)&&(G=B(function(){et?Et.emit("unhandledRejection",X,W):$("unhandledrejection",W,X)}),P.rejection=et||K(P)?2:1,G.error))throw G.value})},K=function(P){return P.rejection!==1&&!P.parent},Q=function(P){d(A,f,function(){var G=P.facade;et?Et.emit("rejectionHandled",G):$("rejectionhandled",G,P.value)})},J=function(P,G,W){return function(X){P(G,X,W)}},N=function(P,G,W){P.done||(P.done=!0,W&&(P=W),P.value=G,P.state=2,x(P,!0))},st=function(P,G,W){if(!P.done){P.done=!0,W&&(P=W);try{if(P.facade===G)throw xt("Promise can't be resolved itself");var X=O(G);X?U(function(){var at={done:!1};try{d(X,G,J(st,at,P),J(N,at,P))}catch(kt){N(at,kt,P)}}):(P.value=G,P.state=1,x(P,!1))}catch(at){N({done:!1},at,P)}}};if(C&&(lt=(ct=function(P){S(this,lt),b(P),d(e,this);var G=dt(this);try{P(J(st,G),J(N,G))}catch(W){N(G,W)}}).prototype,(e=function(P){pt(this,{type:Y,done:!1,notified:!1,parent:!1,reactions:new L,rejection:!1,state:0,value:void 0})}).prototype=h(lt,{then:function(P,G){var W=bt(this),X=gt(T(this,ct));return W.parent=!0,X.ok=!m(P)||P,X.fail=m(G)&&G,X.domain=et?Et.domain:void 0,W.state==0?W.reactions.add(X):U(function(){M(X,W)}),X.promise},catch:function(P){return this.then(void 0,P)}}),r=function(){var P=new e,G=dt(P);this.promise=P,this.resolve=J(st,G),this.reject=J(N,G)},z.f=gt=function(P){return P===ct||P===n?new r(P):ht(P)},!u&&m(p)&&mt!==Object.prototype)){i=mt.then,ut||(l(mt,"then",function(P,G){var W=this;return new ct(function(X,at){d(i,W,X,at)}).then(P,G)},{unsafe:!0}),l(mt,"catch",lt.catch,{unsafe:!0}));try{delete mt.constructor}catch(P){}g&&g(mt,lt)}s({global:!0,wrap:!0,forced:C},{Promise:ct}),v(ct,Y,!1,!0),y(Y),n=c(Y),s({target:Y,stat:!0,forced:C},{reject:function(P){var G=gt(this);return d(G.reject,void 0,P),G.promise}}),s({target:Y,stat:!0,forced:u||C},{resolve:function(P){return V(u&&this===n?ct:this,P)}}),s({target:Y,stat:!0,forced:I},{all:function(P){var G=this,W=gt(G),X=W.resolve,at=W.reject,kt=B(function(){var Tt=b(G.resolve),Pt=[],Ut=0,nt=1;E(P,function(ft){var vt=Ut++,It=!1;nt++,d(Tt,G,ft).then(function(Ct){It||(It=!0,Pt[vt]=Ct,--nt||X(Pt))},at)}),--nt||X(Pt)});return kt.error&&at(kt.value),W.promise},race:function(P){var G=this,W=gt(G),X=W.reject,at=B(function(){var kt=b(G.resolve);E(P,function(Tt){d(kt,G,Tt).then(W.resolve,X)})});return at.error&&X(at.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,g=t(104),v=t(144),y=t(145),b=t(72),m=d.MutationObserver||d.WebKitMutationObserver,_=d.document,S=d.process,w=d.Promise,E=l(d,"queueMicrotask"),k=E&&E.value;k||(e=function(){var T,A;for(b&&(T=S.domain)&&T.exit();r;){A=r.fn,r=r.next;try{A()}catch(U){throw r?i():n=void 0,U}}n=void 0,T&&T.enter()},g||b||y||!m||!_?!v&&w&&w.resolve?((f=w.resolve(void 0)).constructor=w,c=p(f.then,f),i=function(){c(e)}):b?i=function(){S.nextTick(e)}:(h=p(h,d),i=function(){h(e)}):(s=!0,u=_.createTextNode(""),new m(e).observe(u,{characterData:!0}),i=function(){u.data=s=!s})),o.exports=k||function(T){var A={fn:T,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),g=t(113),v=t(115),y=t(54),b=t(76),m=t(2),_=b.UNSUPPORTED_Y,S=Math.min,w=[].push,E=n(/./.exec),k=n(w),T=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 L=l(f(this)),R=B===void 0?4294967295:B>>>0;if(R===0)return[];if(z===void 0)return[L];if(!s(z))return r(U,L,z,R);for(var D,H,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,L))&&!((H=Y.lastIndex)>tt&&(k(et,T(L,tt,D.index)),D.length>1&&D.index<L.length&&e(w,et,g(D,1)),Z=D[0].length,tt=H,et.length>=R));)Y.lastIndex===D.index&&Y.lastIndex++;return tt===L.length?!Z&&E(Y,"")||k(et,""):k(et,T(L,tt)),et.length>R?g(et,0,R):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 L=f(this),R=z==null?void 0:h(z,A);return R?r(R,z,L,B):r(F,l(L),z,B)},function(z,B){var L=u(this),R=l(z),D=V(F,L,R,B,F!==U);if(D.done)return D.value;var H=c(L,RegExp),Z=L.unicode,et=(L.ignoreCase?"i":"")+(L.multiline?"m":"")+(L.unicode?"u":"")+(_?"g":"y"),rt=new H(_?"^(?:"+L.source+")":L,et),tt=B===void 0?4294967295:B>>>0;if(tt===0)return[];if(R.length===0)return v(rt,R)===null?[R]:[];for(var Y=0,dt=0,pt=[];dt<R.length;){rt.lastIndex=_?0:dt;var bt,mt=v(rt,_?T(R,dt):R);if(mt===null||(bt=S(p(rt.lastIndex+(_?dt:0)),R.length))===Y)dt=d(R,dt,Z);else{if(k(pt,T(R,Y,dt)),pt.length===tt)return pt;for(var ct=1;ct<=mt.length-1;ct++)if(k(pt,mt[ct]),pt.length===tt)return pt;dt=Y=bt}}return k(pt,T(R,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"}),_)},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),g=l("slice"),v=p("species"),y=r.Array,b=Math.max;e({target:"Array",proto:!0,forced:!g},{slice:function(m,_){var S,w,E,k=c(this),T=f(k),A=u(m,T),U=u(_===void 0?T:_,T);if(n(k)&&(S=k.constructor,(i(S)&&(S===y||n(S.prototype))||s(S)&&(S=S[v])===null)&&(S=void 0),S===y||S===void 0))return h(k,A,U);for(w=new(S===void 0?y:S)(b(U-A,0)),E=0;A<U;A++,E++)A in k&&d(w,E,k[A]);return w.length=E,w}})},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),g=t(29),v=t(156),y=t(115),b=t(5)("replace"),m=Math.max,_=Math.min,S=n([].concat),w=n([].push),E=n("".indexOf),k=n("".slice),T="a".replace(/./,"$0")==="$0",A=!!/./[b]&&/./[b]("a","$0")==="";i("replace",function(U,V,F){var z=A?"$":"$0";return[function(B,L){var R=l(this),D=B==null?void 0:g(B,b);return D?r(D,B,R,L):r(V,p(R),B,L)},function(B,L){var R=u(this),D=p(B);if(typeof L=="string"&&E(L,z)===-1&&E(L,"$<")===-1){var H=F(V,R,D,L);if(H.done)return H.value}var Z=f(L);Z||(L=p(L));var et=R.global;if(et){var rt=R.unicode;R.lastIndex=0}for(var tt=[];;){var Y=y(R,D);if(Y===null||(w(tt,Y),!et))break;p(Y[0])===""&&(R.lastIndex=h(D,d(R.lastIndex),rt))}for(var dt,pt="",bt=0,mt=0;mt<tt.length;mt++){for(var ct=p((Y=tt[mt])[0]),lt=m(_(c(Y.index),D.length),0),xt=[],_t=1;_t<Y.length;_t++)w(xt,(dt=Y[_t])===void 0?dt:String(dt));var Et=Y.groups;if(Z){var gt=S([ct],xt,lt,D);Et!==void 0&&w(gt,Et);var ht=p(e(L,void 0,gt))}else ht=v(ct,D,lt,xt,Et,L);lt>=bt&&(pt+=k(D,bt,lt)+ht,bt=lt+ct.length)}return pt+k(D,bt)}]},!!s(function(){var U=/./;return U.exec=function(){var V=[];return V.groups={a:"7"},V},"".replace(U,"$<a>")!=="7"})||!T||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,g,v){var y=l+d.length,b=h.length,m=c;return g!==void 0&&(g=r(g),m=f),s(v,m,function(_,S){var w;switch(i(S,0)){case"$":return"$";case"&":return d;case"`":return u(p,0,l);case"'":return u(p,y);case"<":w=g[u(S,1,-1)];break;default:var E=+S;if(E===0)return _;if(E>b){var k=n(E/10);return k===0?_:k<=b?h[k-1]===void 0?i(S,1):h[k-1]+i(S,1):_}w=h[E-1]}return w===void 0?"":w})}},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(g,v){var y=s(i(g));return f(y,v>>>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),g=t(76),v=t(12),y=t(2),b=t(8),m=t(19).enforce,_=t(69),S=t(5),w=t(107),E=t(108),k=S("match"),T=r.RegExp,A=T.prototype,U=r.SyntaxError,V=n(h),F=n(A.exec),z=n("".charAt),B=n("".replace),L=n("".indexOf),R=n("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,H=/a/g,Z=/a/g,et=new T(H)!==H,rt=g.MISSED_STICKY,tt=g.UNSUPPORTED_Y,Y=e&&(!et||rt||w||E||y(function(){return Z[k]=!1,T(H)!=H||T(Z)==Z||T(H,"i")!="/a/i"}));if(i("RegExp",Y)){for(var dt=function(ct,lt){var xt,_t,Et,gt,ht,wt,q=d(A,this),ut=p(ct),C=lt===void 0,I=[],O=ct;if(!q&&ut&&C&&ct.constructor===dt)return ct;if((ut||d(A,ct))&&(ct=ct.source,C&&(lt="flags"in O?O.flags:V(O))),ct=ct===void 0?"":l(ct),lt=lt===void 0?"":l(lt),O=ct,w&&"dotAll"in H&&(_t=!!lt&&L(lt,"s")>-1)&&(lt=B(lt,/s/g,"")),xt=lt,rt&&"sticky"in H&&(Et=!!lt&&L(lt,"y")>-1)&&tt&&(lt=B(lt,/y/g,"")),E&&(ct=(gt=function(M){for(var x,$=M.length,j=0,K="",Q=[],J={},N=!1,st=!1,P=0,G="";j<=$;j++){if((x=z(M,j))==="\\")x+=z(M,++j);else if(x==="]")N=!1;else if(!N)switch(!0){case x==="[":N=!0;break;case x==="(":F(D,R(M,j+1))&&(j+=2,st=!0),K+=x,P++;continue;case(x===">"&&st):if(G===""||b(J,G))throw new U("Invalid capture group name");J[G]=!0,Q[Q.length]=[G,P],st=!1,G="";continue}st?G+=x:K+=x}return[K,Q]}(ct))[0],I=gt[1]),ht=s(T(ct,lt),q?this:A,dt),(_t||Et||I.length)&&(wt=m(ht),_t&&(wt.dotAll=!0,wt.raw=dt(function(M){for(var x,$=M.length,j=0,K="",Q=!1;j<=$;j++)(x=z(M,j))!=="\\"?Q||x!=="."?(x==="["?Q=!0:x==="]"&&(Q=!1),K+=x):K+="[\\s\\S]":K+=x+z(M,++j);return K}(ct),xt)),Et&&(wt.sticky=!0),I.length&&(wt.groups=I)),ct!==O)try{u(ht,"source",O===""?"(?:)":O)}catch(M){}return ht},pt=function(ct){ct in dt||f(dt,ct,{configurable:!0,get:function(){return T[ct]},set:function(lt){T[ct]=lt}})},bt=c(T),mt=0;bt.length>mt;)pt(bt[mt++]);A.constructor=dt,dt.prototype=A,v(r,"RegExp",dt)}_("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,g=d(function(){function b(){}return!(p(function(){},[],b)instanceof b)}),v=!d(function(){p(function(){})}),y=g||v;e({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(b,m){s(b),u(m);var _=arguments.length<3?b:s(arguments[2]);if(v&&!g)return p(b,m,_);if(b==_){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 S=[null];return n(h,S,m),new(n(i,b,S))}var w=_.prototype,E=c(f(w)?w:l),k=n(b,E,m);return f(k)?k: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),g=t(36),v=t(79);o.exports=function(y,b,m){var _=y.indexOf("Map")!==-1,S=y.indexOf("Weak")!==-1,w=_?"set":"add",E=r[y],k=E&&E.prototype,T=E,A={},U=function(R){var D=n(k[R]);s(k,R,R=="add"?function(H){return D(this,H===0?0:H),this}:R=="delete"?function(H){return!(S&&!p(H))&&D(this,H===0?0:H)}:R=="get"?function(H){return S&&!p(H)?void 0:D(this,H===0?0:H)}:R=="has"?function(H){return!(S&&!p(H))&&D(this,H===0?0:H)}:function(H,Z){return D(this,H===0?0:H,Z),this})};if(i(y,!d(E)||!(S||k.forEach&&!l(function(){new E().entries().next()}))))T=m.getConstructor(b,y,_,w),u.enable();else if(i(y,!0)){var V=new T,F=V[w](S?{}:-0,1)!=V,z=l(function(){V.has(1)}),B=h(function(R){new E(R)}),L=!S&&l(function(){for(var R=new E,D=5;D--;)R[w](D,D);return!R.has(-0)});B||((T=b(function(R,D){c(R,k);var H=v(new E,R,T);return D!=null&&f(D,H[w],{that:H,AS_ENTRIES:_}),H})).prototype=k,k.constructor=T),(z||L)&&(U("delete"),U("has"),_&&U("get")),(L||F)&&U(w),S&&k.clear&&delete k.clear}return A[y]=T,e({global:!0,forced:T!=E},A),g(T,y),S||m.setStrong(T,y,_),T}},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,g=l.getterFor;o.exports={getConstructor:function(v,y,b,m){var _=v(function(T,A){s(T,S),h(T,{type:y,index:r(null),first:void 0,last:void 0,size:0}),d||(T.size=0),A!=null&&u(A,T[m],{that:T,AS_ENTRIES:b})}),S=_.prototype,w=g(y),E=function(T,A,U){var V,F,z=w(T),B=k(T,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++:T.size++,F!=="F"&&(z.index[F]=B)),T},k=function(T,A){var U,V=w(T),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(S,{clear:function(){for(var T=w(this),A=T.index,U=T.first;U;)U.removed=!0,U.previous&&(U.previous=U.previous.next=void 0),delete A[U.index],U=U.next;T.first=T.last=void 0,d?T.size=0:this.size=0},delete:function(T){var A=w(this),U=k(this,T);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(T){for(var A,U=w(this),V=i(T,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(T){return!!k(this,T)}}),n(S,b?{get:function(T){var A=k(this,T);return A&&A.value},set:function(T,A){return E(this,T===0?0:T,A)}}:{add:function(T){return E(this,T=T===0?0:T,T)}}),d&&e(S,"size",{get:function(){return w(this).size}}),_},setStrong:function(v,y,b){var m=y+" Iterator",_=g(y),S=g(m);f(v,y,function(w,E){h(this,{type:m,target:w,state:_(w),kind:E,last:void 0})},function(){for(var w=S(this),E=w.kind,k=w.last;k&&k.removed;)k=k.previous;return w.target&&(w.last=k=k?k.next:w.state.first)?E=="keys"?{value:k.key,done:!1}:E=="values"?{value:k.value,done:!1}:{value:[k.key,k.value],done:!1}:(w.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,g){if(h){if(h[f]!==d)try{s(h,f,d)}catch(y){h[f]=d}if(h[c]||s(h,c,g),r[g]){for(var v in i)if(h[v]!==i[v])try{s(h,v,i[v])}catch(y){h[v]=i[v]}}}};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),g=t(4),v=t(7),y=t(17),b=t(40),m=t(10),_=t(21),S=t(14),w=t(39),E=t(13),k=t(28),T=t(20),A=t(68),U=t(25),V=t(123),F=t(91),z=t(26),B=t(9),L=t(106),R=t(83),D=t(52),H=t(12),Z=t(43),et=t(47),rt=t(30),tt=t(44),Y=t(5),dt=t(124),pt=t(125),bt=t(36),mt=t(19),ct=t(94).forEach,lt=et("hidden"),xt=Y("toPrimitive"),_t=mt.set,Et=mt.getterFor("Symbol"),gt=Object.prototype,ht=r.Symbol,wt=ht&&ht.prototype,q=r.TypeError,ut=r.QObject,C=n("JSON","stringify"),I=z.f,O=B.f,M=V.f,x=R.f,$=u([].push),j=Z("symbols"),K=Z("op-symbols"),Q=Z("string-to-symbol-registry"),J=Z("symbol-to-string-registry"),N=Z("wks"),st=!ut||!ut.prototype||!ut.prototype.findChild,P=c&&p(function(){return T(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a!=7})?function(nt,ft,vt){var It=I(gt,ft);It&&delete gt[ft],O(nt,ft,vt),It&&nt!==gt&&O(gt,ft,It)}:O,G=function(nt,ft){var vt=j[nt]=T(wt);return _t(vt,{type:"Symbol",tag:nt,description:ft}),c||(vt.description=ft),vt},W=function(nt,ft,vt){nt===gt&&W(K,ft,vt),m(nt);var It=w(ft);return m(vt),l(j,It)?(vt.enumerable?(l(nt,lt)&&nt[lt][It]&&(nt[lt][It]=!1),vt=T(vt,{enumerable:k(0,!1)})):(l(nt,lt)||O(nt,lt,k(1,{})),nt[lt][It]=!0),P(nt,It,vt)):O(nt,It,vt)},X=function(nt,ft){m(nt);var vt=S(ft),It=A(vt).concat(Pt(vt));return ct(It,function(Ct){c&&!s(at,vt,Ct)||W(nt,Ct,vt[Ct])}),nt},at=function(nt){var ft=w(nt),vt=s(x,this,ft);return!(this===gt&&l(j,ft)&&!l(K,ft))&&(!(vt||!l(this,ft)||!l(j,ft)||l(this,lt)&&this[lt][ft])||vt)},kt=function(nt,ft){var vt=S(nt),It=w(ft);if(vt!==gt||!l(j,It)||l(K,It)){var Ct=I(vt,It);return!Ct||!l(j,It)||l(vt,lt)&&vt[lt][It]||(Ct.enumerable=!0),Ct}},Tt=function(nt){var ft=M(S(nt)),vt=[];return ct(ft,function(It){l(j,It)||l(rt,It)||$(vt,It)}),vt},Pt=function(nt){var ft=nt===gt,vt=M(ft?K:S(nt)),It=[];return ct(vt,function(Ct){!l(j,Ct)||ft&&!l(gt,Ct)||$(It,j[Ct])}),It};if(d||(H(wt=(ht=function(){if(y(wt,this))throw q("Symbol is not a constructor");var nt=arguments.length&&arguments[0]!==void 0?E(arguments[0]):void 0,ft=tt(nt),vt=function(It){this===gt&&s(vt,K,It),l(this,lt)&&l(this[lt],ft)&&(this[lt][ft]=!1),P(this,ft,k(1,It))};return c&&st&&P(gt,ft,{configurable:!0,set:vt}),G(ft,nt)}).prototype,"toString",function(){return Et(this).tag}),H(ht,"withoutSetter",function(nt){return G(tt(nt),nt)}),R.f=at,B.f=W,L.f=X,z.f=kt,U.f=V.f=Tt,F.f=Pt,dt.f=function(nt){return G(Y(nt),nt)},c&&(O(wt,"description",{configurable:!0,get:function(){return Et(this).description}}),f||H(gt,"propertyIsEnumerable",at,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:ht}),ct(A(N),function(nt){pt(nt)}),e({target:"Symbol",stat:!0,forced:!d},{for:function(nt){var ft=E(nt);if(l(Q,ft))return Q[ft];var vt=ht(ft);return Q[ft]=vt,J[vt]=ft,vt},keyFor:function(nt){if(!b(nt))throw q(nt+" is not a symbol");if(l(J,nt))return J[nt]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),e({target:"Object",stat:!0,forced:!d,sham:!c},{create:function(nt,ft){return ft===void 0?T(nt):X(T(nt),ft)},defineProperty:W,defineProperties:X,getOwnPropertyDescriptor:kt}),e({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:Tt,getOwnPropertySymbols:Pt}),e({target:"Object",stat:!0,forced:p(function(){F.f(1)})},{getOwnPropertySymbols:function(nt){return F.f(_(nt))}}),C&&e({target:"JSON",stat:!0,forced:!d||p(function(){var nt=ht();return C([nt])!="[null]"||C({a:nt})!="{}"||C(Object(nt))!="{}"})},{stringify:function(nt,ft,vt){var It=D(arguments),Ct=ft;if((v(ft)||nt!==void 0)&&!b(nt))return h(ft)||(ft=function(Ht,Bt){if(g(Ct)&&(Bt=s(Ct,this,Ht,Bt)),!b(Bt))return Bt}),It[1]=ft,i(C,null,It)}}),!wt[xt]){var Ut=wt.valueOf;H(wt,xt,function(nt){return s(Ut,this)})}bt(ht,"Symbol"),rt[lt]=!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 g={},v=function(){var E=arguments.length<1||arguments[0]===void 0?void 0:c(arguments[0]),k=f(h,this)?new l(E):E===void 0?l():l(E);return E===""&&(g[k]=!0),k};p(v,l),v.prototype=h,h.constructor=v;var y=String(l("test"))=="Symbol(test)",b=i(h.toString),m=i(h.valueOf),_=/^Symbol\((.*)\)[^)]+$/,S=i("".replace),w=i("".slice);d(h,"description",{configurable:!0,get:function(){var E=m(this),k=b(E);if(s(g,E))return"";var T=y?w(k,7,-1):S(k,_,"$1");return T===""?void 0:T}}),e({global:!0,forced:!0},{Symbol:v})}},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,g=t(26).f,v=t(9).f,y=t(184),b=t(77).trim,m=r.Number,_=m.prototype,S=r.TypeError,w=n("".slice),E=n("".charCodeAt),k=function(z){var B=p(z,"number");return typeof B=="bigint"?B:T(B)},T=function(z){var B,L,R,D,H,Z,et,rt,tt=p(z,"number");if(d(tt))throw S("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((L=E(tt,2))===88||L===120)return NaN}else if(B===48){switch(E(tt,1)){case 66:case 98:R=2,D=49;break;case 79:case 111:R=8,D=55;break;default:return+tt}for(Z=(H=w(tt,2)).length,et=0;et<Z;et++)if((rt=E(H,et))<48||rt>D)return NaN;return parseInt(H,R)}}return+tt};if(i("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var A,U=function(z){var B=arguments.length<1?0:m(k(z)),L=this;return c(_,L)&&l(function(){y(L)})?f(Object(B),L,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)&&v(U,A,g(m,A));U.prototype=_,_.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
15
|
* Determine if an object is a Buffer
|
|
16
16
|
*
|
|
17
17
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
18
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 H}),t.d(a,"ChatImage",function(){return xt}),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(k,w){return e.call(k,w)}function n(k){if(k==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)&&(k[M]=O[M])}return k}var i=Object.prototype.toString;t(74),t(53),t(151),t(152),t(154);function s(k,w){var O,M,x=n({encode:encodeURIComponent},w),$=[];function j(Q,X){X==null&&(X=""),X===""&&x.ignoreEmpty||(typeof x.encode=="function"&&(Q=x.encode(Q),X=x.encode(String(X))),$.push(Q+"="+X))}function K(Q){j(O,Q)}for(O in k)r(k,O)&&(M=k[O],Array.isArray(M)?M.forEach(K):j(O,M));return $.join("&")}t(116),t(155);function u(k,w,O){if(k==null||w==null)return k;var M=(k=String(k)).indexOf("#"),x="";return M!==-1&&(x=k.substring(M,k.length),k=k.substring(0,M)),(k=k.replace(/[?&]$/,""))+((w=typeof w!="string"?s(w,O):w.replace(/^[?&]/,""))?(k.indexOf("?")!==-1?"&":"?")+w:"")+x}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(k){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})(k)}function c(k,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}(k)}function d(k){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,x)}function x(){return p(O,arguments,v(this).constructor)}return x.prototype=Object.create(O.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),h(x,O)})(k)}function p(k,w,O){return(p=l()?Reflect.construct:function(M,x,$){var j=[null];j.push.apply(j,x);var K=new(Function.bind.apply(M,j));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(k){return!1}}function h(k,w){return(h=Object.setPrototypeOf||function(O,M){return O.__proto__=M,O})(k,w)}function v(k){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(k)}var g=function(k){(function(j,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(K&&K.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),K&&h(j,K)})($,k);var w,O,M,x=(w=$,O=l(),function(){var j,K=v(w);if(O){var Q=v(this).constructor;j=Reflect.construct(K,arguments,Q)}else j=K.apply(this,arguments);return c(this,j)});function $(j){var K;return function(Q,X){if(!(Q instanceof X))throw new TypeError("Cannot call a class as a function")}(this,$),(K=x.call(this,j)).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(k,w,O,M){return function(){var x,$,j,K=(k.responseText||"").trim();switch(w.responseType||((j=k.getResponseHeader("Content-Type"))&&y.test(j)?RegExp.$1.toLowerCase():"")){case"json":if(K)try{x=JSON.parse(K)}catch(at){$="Invalid JSON structure"}break;case"xml":(x=k.responseXML)&&x.documentElement||($="Invalid XML format");break;default:x=K}var Q,X={xhr:k,options:w,data:x},N=k.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),_=0;function I(k,w,O,M){k.onload=b(k,w,O,M),k.ontimeout=function(){var $;M((($=new g("Request timeout")).isTimeout=!0,$))},k.onerror=function(){M(new g("Network error"))},w.onDownloadProgress&&k.addEventListener("progress",w.onDownloadProgress),w.onUploadProgress&&k.upload&&k.upload.addEventListener("progress",w.onUploadProgress),_===Number.MAX_SAFE_INTEGER&&(_=0);var x=++_;return m[x]={xhr:k,options:w,resolve:O,reject:M},x}function S(k){delete m[k]}function E(k,w,O,M,x){return k&&/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10&&window.XDomainRequest&&(w==="get"||w==="post")&&!O&&!x&&function($){if($!=null){if(Array.isArray($))return!$.length;for(var j in $)if(r($,j))return!1}return!0}(M)?new window.XDomainRequest:new window.XMLHttpRequest}function C(k,w,O,M){var x,$,j;if(O!=null&&k!=="get")return M==="json"?(x=JSON.stringify(O),$="application/json; charset=utf-8"):(j=O,typeof(x=i.call(j)==="[object Object]"?s(O,{ignoreEmpty:!1}):O)=="string"&&($="application/x-www-form-urlencoded; charset=utf-8")),w["Content-Type"]=w["Content-Type"]||$,x}function T(k,w){var O=0;return new Promise(function(M,x){(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(),j=w.requestType.toLowerCase(),K=w.headers||{},Q=function(at){var R=document.createElement("div");R.innerHTML='<a href="'+at+'"></a>';var G=R.firstChild,W=G.host!==location.host;return R=null,G=null,W}(k=function(at,R,G){return R!=null&&(at=u(at,R,{ignoreEmpty:!1})),G&&(at=u(at,{_:Date.now()})),at}(k,w.params,w.preventCaching)),X=E(Q,$,j,K,w.withCredentials);O=I(X,w,function(at){S(O),M(at)},function(at){S(O),x(at)}),X.open($,k,!0,w.username,w.password);var N=C($,K,w.data,j);(function(at,R,G,W){R.timeout&&(at.timeout=R.timeout),G&&R.withCredentials!=null&&(at.withCredentials=!!R.withCredentials),G||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 P=t(82),U=t.n(P);function V(k){return k.name.toLowerCase().split(".").pop()||""}function F(k){var w=new FormData;for(var O in k)w.append(O,k[O]);return w}function z(k,w,O){O===void 0&&(O=!1);for(var M=k.split(","),x=/:(.*?);/.exec(M[0]),$=x?x[1]:"image/jpeg",j=window.atob(M[1]),K=j.length,Q=new Uint8Array(K);K--;)Q[K]=j.charCodeAt(K);return O?new Blob([Q],{type:$}):new File([Q],w,{type:$})}function B(k){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 x="";x=typeof k=="string"?k:L(k),M.src=x})}function L(k){return(window.URL||window.webkitURL).createObjectURL(k)}var A,D,H,Z=(A=function(k,w){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,M){O.__proto__=M}||function(O,M){for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&(O[x]=M[x])})(k,w)},function(k,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=k}A(k,w),k.prototype=w===null?Object.create(w):(O.prototype=w.prototype,new O)});(function(k){k.EMPTY_FILE="empty file",k.FILE_SIZE_TOO_LARGE="file size too large",k.FILE_TYPE_NOT_ALLOW="file type not allow",k.FILE_EXTENSION_NOT_ALLOW="file extension not allow",k.GET_UPLOAD_TOKEN_ERROR="get upload token error",k.UPLOAD_IMAGE_ERROR="upload image error",k.PORN_IDENTIFY_ERROR="porn identify error"})(H||(H={}));var et,rt=function(k){function w(O){var M=k.call(this,O)||this,x=w.getFailErrorData(O);return M.failCode=x.failCode,M.failMessage=x.failMessage,M}return Z(w,k),w.getFailErrorData=function(O){return{failCode:O,failMessage:w.failMessageVal[O]}},w.failMessageVal=((D={})[H.EMPTY_FILE]="请勿上传空文件",D[H.FILE_SIZE_TOO_LARGE]="文件大小超出限制",D[H.FILE_TYPE_NOT_ALLOW]="该文件类型不支持",D[H.FILE_EXTENSION_NOT_ALLOW]="该文件扩展名不支持",D[H.GET_UPLOAD_TOKEN_ERROR]="获取上传图片 token 失败",D[H.UPLOAD_IMAGE_ERROR]="上传图片失败",D[H.PORN_IDENTIFY_ERROR]="图片鉴黄失败",D),w}(Error),tt=function(){return(tt=Object.assign||function(k){for(var w,O=1,M=arguments.length;O<M;O++)for(var x in w=arguments[O])Object.prototype.hasOwnProperty.call(w,x)&&(k[x]=w[x]);return k}).apply(this,arguments)},Y=function(k,w,O,M){return new(O||(O=Promise))(function(x,$){function j(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(X.value):(N=X.value,N instanceof O?N:new O(function(at){at(N)})).then(j,K)}Q((M=M.apply(k,[])).next())})},dt=function(k,w){var O,M,x,$,j={label:0,sent:function(){if(1&x[0])throw x[1];return x[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(;j;)try{if(O=1,M&&(x=2&N[0]?M.return:N[0]?M.throw||((x=M.return)&&x.call(M),0):M.next)&&!(x=x.call(M,N[1])).done)return x;switch(M=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,M=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(x=j.trys,!((x=x.length>0&&x[x.length-1])||N[0]!==6&&N[0]!==2)){j=0;continue}if(N[0]===3&&(!x||N[1]>x[0]&&N[1]<x[3])){j.label=N[1];break}if(N[0]===6&&j.label<x[1]){j.label=x[1],x=N;break}if(x&&j.label<x[2]){j.label=x[2],j.ops.push(N);break}x[2]&&j.ops.pop(),j.trys.pop();continue}N=w.call(k,j)}catch(at){N=[6,at],M=0}finally{O=x=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([Q,X])}}},pt=function(){function k(w){this.uploadCtx=w.uploadCtx}return k.prototype.getUploadToken=function(w){return Y(this,void 0,void 0,function(){var O,M,x,$,j;return dt(this,function(K){switch(K.label){case 0:return O=Date.now(),M=U()("upload_token_live"+w.channelId+O),x={channelId:w.channelId,ts:O,hash:M,bucket:w.bucket},w.userId&&(x.userId=w.userId),[4,T("https://"+this.uploadCtx.apiHost+"/live/upload/token/image/get-token",{params:x})];case 1:return($=K.sent()).data?(j=$.data).code!==200?[2,Promise.reject(new rt(H.GET_UPLOAD_TOKEN_ERROR))]:[2,j.data]:[2,Promise.reject(new rt(H.GET_UPLOAD_TOKEN_ERROR))]}})})},k.prototype.uploadImage=function(w){return Y(this,void 0,void 0,function(){var O,M,x,$,j,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,T("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?(x=M.data).code!==200?[2,Promise.reject(new rt(H.UPLOAD_IMAGE_ERROR))]:[2,x.data]:[2,Promise.reject(new rt(H.UPLOAD_IMAGE_ERROR))];case 3:return Q.sent(),$=w.currentReuploadTime,(j=$===void 0?0:$)&&j>=this.uploadCtx.reUploadTimes?[2,Promise.reject(new rt(H.UPLOAD_IMAGE_ERROR))]:(j+=1,K=Object.assign({},w,{currentReuploadTime:j}),[2,this.uploadImage(K)]);case 4:return[2]}})})},k.prototype.createSign=function(w,O,M){var x=w;Object.keys(O).sort().forEach(function(j){O[j]&&(x+=j+String(O[j]))}),x+=w;var $=U()(x);return M==="lower"?$:$.toLocaleUpperCase()},k.prototype.pornIdentify=function(w){return Y(this,void 0,void 0,function(){var O,M,x;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,T("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(H.PORN_IDENTIFY_ERROR))]:[2,!0]:[2,Promise.reject(new rt(H.PORN_IDENTIFY_ERROR))];case 3:return x=$.sent(),[2,Promise.reject(x)];case 4:return[2]}})})},k}();(function(k){k.WAIT_UPLOAD="waitUpload",k.UPLOADING="uploading",k.UPLOAD_SUCCESS="uploadSuccess",k.UPLOAD_FAIL="uploadFail",k.UPLOAD_FORBID="forbid"})(et||(et={}));var yt=function(){return(yt=Object.assign||function(k){for(var w,O=1,M=arguments.length;O<M;O++)for(var x in w=arguments[O])Object.prototype.hasOwnProperty.call(w,x)&&(k[x]=w[x]);return k}).apply(this,arguments)},mt=function(k,w,O,M){return new(O||(O=Promise))(function(x,$){function j(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(X.value):(N=X.value,N instanceof O?N:new O(function(at){at(N)})).then(j,K)}Q((M=M.apply(k,[])).next())})},ut=function(k,w){var O,M,x,$,j={label:0,sent:function(){if(1&x[0])throw x[1];return x[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(;j;)try{if(O=1,M&&(x=2&N[0]?M.return:N[0]?M.throw||((x=M.return)&&x.call(M),0):M.next)&&!(x=x.call(M,N[1])).done)return x;switch(M=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,M=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(x=j.trys,!((x=x.length>0&&x[x.length-1])||N[0]!==6&&N[0]!==2)){j=0;continue}if(N[0]===3&&(!x||N[1]>x[0]&&N[1]<x[3])){j.label=N[1];break}if(N[0]===6&&j.label<x[1]){j.label=x[1],x=N;break}if(x&&j.label<x[2]){j.label=x[2],j.ops.push(N);break}x[2]&&j.ops.pop(),j.trys.pop();continue}N=w.call(k,j)}catch(at){N=[6,at],M=0}finally{O=x=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([Q,X])}}},lt={width:500,height:500},xt=function(){function k(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=L(this.file),this.uploadCtx.recordChatImage(this),this.triggerChange()}return k.prototype.upload=function(w){return w===void 0&&(w={}),mt(this,void 0,void 0,function(){var O,M,x,$,j,K,Q,X,N,at,R,G,W,J=this;return ut(this,function(it){switch(it.label){case 0:return O=this.uploadCtx,M=O.channelId,x=O.userId,$=O.bucket,this.status=et.UPLOADING,[4,O.uploadApi.getUploadToken({channelId:M,userId:x,bucket:$})];case 1:if(j=it.sent(),!((K=this.file).size>1024*O.compressSizeLimit))return[3,5];it.label=2;case 2:return it.trys.push([2,4,,5]),[4,this.compressImage({file:this.file,fileName:this.fileName})];case 3:return Q=it.sent(),K=Q,[3,5];case 4:return it.sent(),console.warn("图片压缩失败",K,this.imageId),[3,5];case 5:return it.trys.push([5,7,,8]),[4,B(K)];case 6:return X=it.sent(),N=X.width,at=X.height,this.size={width:N,height:at},[3,8];case 7:return it.sent(),console.warn("获取图片尺寸失败"),[3,8];case 8:this.size||(this.size=lt),this.uploadProgress=0,R="",it.label=9;case 9:return it.trys.push([9,13,,14]),[4,O.uploadApi.uploadImage(yt(yt({},j),{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 G=it.sent(),this.status=G.failCode===H.PORN_IDENTIFY_ERROR?et.UPLOAD_FORBID:et.UPLOAD_FAIL,w.error,[2,Promise.reject(G)];case 14:return typeof(W=w.success)=="function"&&W(R),[2,R]}})})},k.prototype.compressImage=function(w){return mt(this,void 0,void 0,function(){var O,M,x,$,j,K,Q,X,N,at;return ut(this,function(R){switch(R.label){case 0:return O=w.file,M=w.fileName,x=w.quality,$=x===void 0?.7:x,[4,B(O)];case 1:return j=R.sent(),K=j.width,Q=j.height,X=j.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"))]}})})},k.prototype.triggerChange=function(){if(this.callbackChange){var w=this.uploadCtx.onChange;typeof w=="function"&&w(this)}},Object.defineProperty(k.prototype,"fileName",{get:function(){var w=V(this.file);return this.imageId+"."+(w||"png")},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"status",{get:function(){return this._status},set:function(w){this._status=w,this.triggerChange()},enumerable:!1,configurable:!0}),k}(),_t=function(){function k(w){this.uploadCtx=w.uploadCtx,this.uploadingList=[],this.waitQueue=[]}return k.prototype.joinWaitQueue=function(w){this.isExistQueue(w,this.waitQueue)||(this.waitQueue.push(w),this.checkQueue())},k.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(j){var K=x.waitQueue.shift();K&&(K.upload({success:function(){w.handleImageUploadSuccess(K)}}),x.uploadingList.push(K))},x=this,$=0;$<O;$++)M()},k.prototype.handleImageUploadSuccess=function(w){this.uploadingList=this.uploadingList.filter(function(O){return O.imageId!==w.imageId}),this.checkQueue()},k.prototype.isExistQueue=function(w,O){return O.findIndex(function(M){return M.imageId===w.imageId})!==-1},k}(),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"},St=function(k,w,O,M){return new(O||(O=Promise))(function(x,$){function j(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(X.value):(N=X.value,N instanceof O?N:new O(function(at){at(N)})).then(j,K)}Q((M=M.apply(k,[])).next())})},q=function(k,w){var O,M,x,$,j={label:0,sent:function(){if(1&x[0])throw x[1];return x[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(;j;)try{if(O=1,M&&(x=2&N[0]?M.return:N[0]?M.throw||((x=M.return)&&x.call(M),0):M.next)&&!(x=x.call(M,N[1])).done)return x;switch(M=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,M=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(x=j.trys,!((x=x.length>0&&x[x.length-1])||N[0]!==6&&N[0]!==2)){j=0;continue}if(N[0]===3&&(!x||N[1]>x[0]&&N[1]<x[3])){j.label=N[1];break}if(N[0]===6&&j.label<x[1]){j.label=x[1],x=N;break}if(x&&j.label<x[2]){j.label=x[2],j.ops.push(N);break}x[2]&&j.ops.pop(),j.trys.pop();continue}N=w.call(k,j)}catch(at){N=[6,at],M=0}finally{O=x=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([Q,X])}}},st=function(){function k(w){w===void 0&&(w={});var O=w.channelId,M=O===void 0?ht.channelId:O,x=w.userId,$=x===void 0?ht.userId:x,j=w.sizeLimit,K=j===void 0?ht.sizeLimit:j,Q=w.compressSizeLimit,X=Q===void 0?ht.compressSizeLimit:Q,N=w.limit,at=N===void 0?ht.limit:N,R=w.maxWidth,G=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,Tt=w.bucket,Pt=Tt===void 0?ht.bucket:Tt,Nt=w.useBlobByCompress,nt=Nt===void 0?ht.useBlobByCompress:Nt,ct=w.allowAccept,gt=ct===void 0?ht.allowAccept:ct,bt=w.allowFileExtension,kt=bt===void 0?ht.allowFileExtension:bt,Ht=w.maxUploadNumber,Bt=Ht===void 0?ht.maxUploadNumber:Ht,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=G,this.reUploadTimes=J,this.source=Ct,this.bucket=Pt,this.useBlobByCompress=!!nt,this.allowAccept=gt,this.allowFileExtension=kt,this.maxUploadNumber=Bt,this.onChange=de,this.beforeStart=he,this.enablePornChecking=w.enablePornChecking===!0,this.apiHost=pe,this.uploadQueue=new _t({uploadCtx:this}),this.uploadApi=new pt({uploadCtx:this}),this.chatImageStore={}}return k.prototype.choiceImageFile=function(w){var O=this;w===void 0&&(w={});var M=this.getAccept(),x=document.createElement("input");return x.setAttribute("id","polyv-upload-chat-image-input-id"),x.setAttribute("type","file"),x.setAttribute("accept",M),x.setAttribute("style","visibility: hidden;position: fixed;bottom: -100%;z-index: -1;"),this.limit>1&&x.setAttribute("multiple","multiple"),x.addEventListener("change",function(){document.body.removeChild(x),w&&x.files&&x.files.length!==0&&O.handleFileList(w,x.files)}),document.body.appendChild(x),x.click(),this},k.prototype.handleFileList=function(w,O){this.beforeStart&&this.beforeStart();for(var M,x=w.fail,$=w.success,j=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 x=="function"&&x(M))}var at=[];for(Q=0;Q<K;Q++){X=O[Q];var R=this.buildImageId(Q),G=new xt({imageId:R,uploadCtx:this,file:X,callbackChange:j});at.push(G)}typeof $=="function"&&$(at)},k.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(",")},k.prototype.joinWaitQueue=function(w){var O=this;if(Array.isArray(w))return w.forEach(function(x){O.joinWaitQueue(x)}),this;var M=void 0;return typeof w=="string"?M=this.getChatImageById(w):w instanceof xt&&(M=w),M&&this.uploadQueue.joinWaitQueue(M),this},k.prototype.getUploadImageUrl=function(){var w=this;return new Promise(function(O,M){w.choiceImageFile({callbackChange:!1,success:function(x){return St(w,void 0,void 0,function(){var $;return q(this,function(j){switch(j.label){case 0:return[4,($=x[0]).upload()];case 1:return j.sent(),$.fileUrl?O($):M(new rt(H.UPLOAD_IMAGE_ERROR)),[2]}})})},fail:function(x){M(x)}})})},k.prototype.callbackUploadImage=function(){var w=this;this.choiceImageFile({success:function(O){w.joinWaitQueue(O)}})},k.prototype.uploadImageFile=function(w){return St(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 xt({imageId:this.buildImageId(),file:w,uploadCtx:this,callbackChange:!1}).upload()];case 1:return[2,M.sent()]}})})},k.prototype.uploadImage=function(w,O){return St(this,void 0,void 0,function(){var M,x;return q(this,function($){switch($.label){case 0:if(M=this.checkFile(w))throw new Error(M.failMessage);return[4,(x=new xt({imageId:this.buildImageId(),file:w,uploadCtx:this,callbackChange:O!==!1})).upload()];case 1:return $.sent(),[2,x]}})})},k.prototype.reUploadImage=function(w){return St(this,void 0,void 0,function(){var O,M;return q(this,function(x){switch(x.label){case 0:if(!(O=this.getChatImageById(w)))return[2,Promise.reject(new Error("图片不存在"))];x.label=1;case 1:return x.trys.push([1,3,,4]),[4,O.upload()];case 2:return x.sent(),[2,O];case 3:return M=x.sent(),[2,Promise.reject(M)];case 4:return[2]}})})},k.prototype.getChatImageById=function(w){return this.chatImageStore[w]},k.prototype.recordChatImage=function(w){this.chatImageStore[w.imageId]=w},k.prototype.checkFile=function(w){if(!w.size)return rt.getFailErrorData(H.EMPTY_FILE);if(w.size>1024*this.sizeLimit)return rt.getFailErrorData(H.FILE_SIZE_TOO_LARGE);if(!this.allowAccept.includes(w.type))return rt.getFailErrorData(H.FILE_TYPE_NOT_ALLOW);var O=V(w);return this.allowFileExtension.includes(O)?void 0:rt.getFailErrorData(H.FILE_EXTENSION_NOT_ALLOW)},k.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},k}()}]);class De extends jt{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 ft(this,null,function*(){const t=yield this._plvSocket.channel.getChannelInfo();this.__uploadImgCtrl.channelId=t.channelId})}uploadMultiImage(t){return ft(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=>ft(this,null,function*(){d=d.slice(0,e),yield Promise.all(d.map(g=>new Promise(y=>{const b=URL.createObjectURL(g.file),m=new Image;m.onload=()=>{g.size={width:m.width,height:m.height},URL.revokeObjectURL(b),y()},m.src=b}))),d.forEach(g=>{r({imageId:g.imageId,previewSrc:g.previewSrc||"",size:g.size})});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 ft(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 ft(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 ft(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 He extends jt{constructor(){super(...arguments);wt(this,"__refId","")}setRefId(t){this.__refId=t}getRefId(){return this.__refId}exportAttendanceList(){return ft(this,null,function*(){const t=yield this._plvSocket.channel.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 ft(this,arguments,function*(t={}){const{pageNumber:e=1,pageSize:r=10}=t,n=yield this._plvSocket.channel.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}})}__getExportParams(){const t={businessType:"LIVE"},e=this.getRefId();return e&&(t.refId=e),t}exportOnlineList(){return ft(this,null,function*(){const t=this.__getExportParams();yield this._plvSocket.polyvApi.get("/live/v4/channel/chat-data/online-user/export",t)})}exportWhiteList(){return ft(this,null,function*(){const t=this.__getExportParams();yield this._plvSocket.polyvApi.get("/live/v4/channel/chat-data/export/whitelist",t)})}}class Ge extends jt{constructor(t){var e;super(t);wt(this,"__realtimeLikes",0);this.__realtimeLikes=(e=t.config.defaultLikes)!=null?e:0,this._plvSocket.addSocketHandles(Rt,{LIKES:r=>{const n=this._plvSocket.isCurrentUser(r.userId);n||this.setRealtimeLikes(this.__realtimeLikes+r.count),this._plvChat.eventEmitter.emit(It.ChatLike,{count:r.count,realtimeLikes:this.__realtimeLikes,userId:r.userId,nick:r.nick,isSelf:n})}}),this._plvSocket.addSocketHandles(Rt,r=>{const n=Number(r.count);this.setRealtimeLikes(n)},"fakeLikes")}getRealtimeLikes(){return this.__realtimeLikes}setRealtimeLikes(t){this.__realtimeLikes!==t&&(this.__realtimeLikes=t,this._plvChat.eventEmitter.emit(It.ChatLikesUpdate,{realtimeLikes:t}))}sendLike(t){return ft(this,null,function*(){const e=this._plvSocket.getUserInfo(),r=yield this._plvSocket.channel.getChannelInfo(),n={EVENT:"LIKES",roomId:r.channelId,count:t,userId:e.userId,nick:e.nick,sessionId:r.sessionId};return yield this._plvSocket.emitSocket(n),this._plvChat.eventEmitter.emit(It.SendChatLike,{count:t}),this.setRealtimeLikes(this.__realtimeLikes+t),this.__realtimeLikes})}}class Ve{constructor(a,t={}){wt(this,"PolyvChatEvent",It);wt(this,"ChatMsgSource",ot);wt(this,"DonateType",Dt);wt(this,"RedpackType",Yt);wt(this,"SystemMsgType",qt);wt(this,"ChatRequestHistoryMode",Ut);wt(this,"ManageFailReason",Lt);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,"like");wt(this,"setuped",!1);this.plvSocket=a,this.config=t,this.emotion=new Ce(this),this.history=new Te(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 Ae(this),this.download=new He(this),this.like=new Ge(this),this.__socketFilter=new Ee(this),this.__socketHandler=new Oe(this)}setup(){return ft(this,null,function*(){this.setuped=!0})}destroy(){return ft(this,null,function*(){this.plvSocket.clearSocketHandles(Rt)})}}const $e="PolyvChat";exports.ChatMsgSource=ot;exports.ChatRequestHistoryMode=Ut;exports.DonateType=Dt;exports.GlobalVariable=$e;exports.ManageFailReason=Lt;exports.MotivationLikeType=Qt;exports.PolyvChat=Ve;exports.PolyvChatEvent=It;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.2.0-rc-20251113.1]","[buildTime: 2025-11-13 02:35:51]");
|
|
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 ut}),t.d(a,"defaultConfig",function(){return ht}),t.d(a,"allowAccept",function(){return Et}),t.d(a,"allowFileExtension",function(){return gt}),t.d(a,"FailError",function(){return rt}),t.d(a,"FailCode",function(){return H}),t.d(a,"ChatImage",function(){return xt}),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(C,I){return e.call(C,I)}function n(C){if(C==null)throw new TypeError("Cannot convert undefined or null to object");for(var I=0;I<(arguments.length<=1?0:arguments.length-1);I++){var O=I+1<1||arguments.length<=I+1?void 0:arguments[I+1];if(O!=null)for(var M in O)M!=="__proto__"&&r(O,M)&&(C[M]=O[M])}return C}var i=Object.prototype.toString;t(74),t(53),t(151),t(152),t(154);function s(C,I){var O,M,x=n({encode:encodeURIComponent},I),$=[];function j(Q,J){J==null&&(J=""),J===""&&x.ignoreEmpty||(typeof x.encode=="function"&&(Q=x.encode(Q),J=x.encode(String(J))),$.push(Q+"="+J))}function K(Q){j(O,Q)}for(O in C)r(C,O)&&(M=C[O],Array.isArray(M)?M.forEach(K):j(O,M));return $.join("&")}t(116),t(155);function u(C,I,O){if(C==null||I==null)return C;var M=(C=String(C)).indexOf("#"),x="";return M!==-1&&(x=C.substring(M,C.length),C=C.substring(0,M)),(C=C.replace(/[?&]$/,""))+((I=typeof I!="string"?s(I,O):I.replace(/^[?&]/,""))?(C.indexOf("?")!==-1?"&":"?")+I:"")+x}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(C){return(f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I})(C)}function c(C,I){if(I&&(f(I)==="object"||typeof I=="function"))return I;if(I!==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}(C)}function d(C){var I=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(I!==void 0){if(I.has(O))return I.get(O);I.set(O,x)}function x(){return p(O,arguments,g(this).constructor)}return x.prototype=Object.create(O.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),h(x,O)})(C)}function p(C,I,O){return(p=l()?Reflect.construct:function(M,x,$){var j=[null];j.push.apply(j,x);var K=new(Function.bind.apply(M,j));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(C){return!1}}function h(C,I){return(h=Object.setPrototypeOf||function(O,M){return O.__proto__=M,O})(C,I)}function g(C){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)})(C)}var v=function(C){(function(j,K){if(typeof K!="function"&&K!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(K&&K.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),K&&h(j,K)})($,C);var I,O,M,x=(I=$,O=l(),function(){var j,K=g(I);if(O){var Q=g(this).constructor;j=Reflect.construct(K,arguments,Q)}else j=K.apply(this,arguments);return c(this,j)});function $(j){var K;return function(Q,J){if(!(Q instanceof J))throw new TypeError("Cannot call a class as a function")}(this,$),(K=x.call(this,j)).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(C,I,O,M){return function(){var x,$,j,K=(C.responseText||"").trim();switch(I.responseType||((j=C.getResponseHeader("Content-Type"))&&y.test(j)?RegExp.$1.toLowerCase():"")){case"json":if(K)try{x=JSON.parse(K)}catch(st){$="Invalid JSON structure"}break;case"xml":(x=C.responseXML)&&x.documentElement||($="Invalid XML format");break;default:x=K}var Q,J={xhr:C,options:I,data:x},N=C.status;(function(st){return!(st===void 0||st>=200&&st<300||st===1223||st===304)})(N)?(Q=new v("Error (HTTP status code: "+N+")")).code=N:$&&(Q=new v($)),Q?M(n(Q,J)):O(J)}}var m=Object.create(null),_=0;function S(C,I,O,M){C.onload=b(C,I,O,M),C.ontimeout=function(){var $;M((($=new v("Request timeout")).isTimeout=!0,$))},C.onerror=function(){M(new v("Network error"))},I.onDownloadProgress&&C.addEventListener("progress",I.onDownloadProgress),I.onUploadProgress&&C.upload&&C.upload.addEventListener("progress",I.onUploadProgress),_===Number.MAX_SAFE_INTEGER&&(_=0);var x=++_;return m[x]={xhr:C,options:I,resolve:O,reject:M},x}function w(C){delete m[C]}function E(C,I,O,M,x){return C&&/MSIE\s+(\d+)/.test(navigator.userAgent)&&parseInt(RegExp.$1)<10&&window.XDomainRequest&&(I==="get"||I==="post")&&!O&&!x&&function($){if($!=null){if(Array.isArray($))return!$.length;for(var j in $)if(r($,j))return!1}return!0}(M)?new window.XDomainRequest:new window.XMLHttpRequest}function k(C,I,O,M){var x,$,j;if(O!=null&&C!=="get")return M==="json"?(x=JSON.stringify(O),$="application/json; charset=utf-8"):(j=O,typeof(x=i.call(j)==="[object Object]"?s(O,{ignoreEmpty:!1}):O)=="string"&&($="application/x-www-form-urlencoded; charset=utf-8")),I["Content-Type"]=I["Content-Type"]||$,x}function T(C,I){var O=0;return new Promise(function(M,x){(I=n({},I)).method=I.method||"get",I.requestType=I.requestType||"",I.responseType=I.responseType||"json",I.timeout=I.timeout||0;var $=I.method.toLowerCase(),j=I.requestType.toLowerCase(),K=I.headers||{},Q=function(st){var P=document.createElement("div");P.innerHTML='<a href="'+st+'"></a>';var G=P.firstChild,W=G.host!==location.host;return P=null,G=null,W}(C=function(st,P,G){return P!=null&&(st=u(st,P,{ignoreEmpty:!1})),G&&(st=u(st,{_:Date.now()})),st}(C,I.params,I.preventCaching)),J=E(Q,$,j,K,I.withCredentials);O=S(J,I,function(st){w(O),M(st)},function(st){w(O),x(st)}),J.open($,C,!0,I.username,I.password);var N=k($,K,I.data,j);(function(st,P,G,W){P.timeout&&(st.timeout=P.timeout),G&&P.withCredentials!=null&&(st.withCredentials=!!P.withCredentials),G||W["X-Request-With"]!=null||(W["X-Request-With"]="XMLHttpRequest"),Object.keys(W).forEach(function(X){W[X]!=null&&st.setRequestHeader(X,String(W[X]))})})(J,I,Q,K),typeof I.beforeSend=="function"&&I.beforeSend.call(window,J),J.send(N||""),typeof I.receiveCancelId=="function"&&I.receiveCancelId(O)})}var A=t(82),U=t.n(A);function V(C){return C.name.toLowerCase().split(".").pop()||""}function F(C){var I=new FormData;for(var O in C)I.append(O,C[O]);return I}function z(C,I,O){O===void 0&&(O=!1);for(var M=C.split(","),x=/:(.*?);/.exec(M[0]),$=x?x[1]:"image/jpeg",j=window.atob(M[1]),K=j.length,Q=new Uint8Array(K);K--;)Q[K]=j.charCodeAt(K);return O?new Blob([Q],{type:$}):new File([Q],I,{type:$})}function B(C){return new Promise(function(I,O){var M=new Image;M.onload=function(){I({width:M.width,height:M.height,imageTarget:M})},M.onerror=function(){O(new Error("获取图片尺寸失败"))};var x="";x=typeof C=="string"?C:L(C),M.src=x})}function L(C){return(window.URL||window.webkitURL).createObjectURL(C)}var R,D,H,Z=(R=function(C,I){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,M){O.__proto__=M}||function(O,M){for(var x in M)Object.prototype.hasOwnProperty.call(M,x)&&(O[x]=M[x])})(C,I)},function(C,I){if(typeof I!="function"&&I!==null)throw new TypeError("Class extends value "+String(I)+" is not a constructor or null");function O(){this.constructor=C}R(C,I),C.prototype=I===null?Object.create(I):(O.prototype=I.prototype,new O)});(function(C){C.EMPTY_FILE="empty file",C.FILE_SIZE_TOO_LARGE="file size too large",C.FILE_TYPE_NOT_ALLOW="file type not allow",C.FILE_EXTENSION_NOT_ALLOW="file extension not allow",C.GET_UPLOAD_TOKEN_ERROR="get upload token error",C.UPLOAD_IMAGE_ERROR="upload image error",C.PORN_IDENTIFY_ERROR="porn identify error"})(H||(H={}));var et,rt=function(C){function I(O){var M=C.call(this,O)||this,x=I.getFailErrorData(O);return M.failCode=x.failCode,M.failMessage=x.failMessage,M}return Z(I,C),I.getFailErrorData=function(O){return{failCode:O,failMessage:I.failMessageVal[O]}},I.failMessageVal=((D={})[H.EMPTY_FILE]="请勿上传空文件",D[H.FILE_SIZE_TOO_LARGE]="文件大小超出限制",D[H.FILE_TYPE_NOT_ALLOW]="该文件类型不支持",D[H.FILE_EXTENSION_NOT_ALLOW]="该文件扩展名不支持",D[H.GET_UPLOAD_TOKEN_ERROR]="获取上传图片 token 失败",D[H.UPLOAD_IMAGE_ERROR]="上传图片失败",D[H.PORN_IDENTIFY_ERROR]="图片鉴黄失败",D),I}(Error),tt=function(){return(tt=Object.assign||function(C){for(var I,O=1,M=arguments.length;O<M;O++)for(var x in I=arguments[O])Object.prototype.hasOwnProperty.call(I,x)&&(C[x]=I[x]);return C}).apply(this,arguments)},Y=function(C,I,O,M){return new(O||(O=Promise))(function(x,$){function j(J){try{Q(M.next(J))}catch(N){$(N)}}function K(J){try{Q(M.throw(J))}catch(N){$(N)}}function Q(J){var N;J.done?x(J.value):(N=J.value,N instanceof O?N:new O(function(st){st(N)})).then(j,K)}Q((M=M.apply(C,[])).next())})},dt=function(C,I){var O,M,x,$,j={label:0,sent:function(){if(1&x[0])throw x[1];return x[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(J){return function(N){if(O)throw new TypeError("Generator is already executing.");for(;j;)try{if(O=1,M&&(x=2&N[0]?M.return:N[0]?M.throw||((x=M.return)&&x.call(M),0):M.next)&&!(x=x.call(M,N[1])).done)return x;switch(M=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,M=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(x=j.trys,!((x=x.length>0&&x[x.length-1])||N[0]!==6&&N[0]!==2)){j=0;continue}if(N[0]===3&&(!x||N[1]>x[0]&&N[1]<x[3])){j.label=N[1];break}if(N[0]===6&&j.label<x[1]){j.label=x[1],x=N;break}if(x&&j.label<x[2]){j.label=x[2],j.ops.push(N);break}x[2]&&j.ops.pop(),j.trys.pop();continue}N=I.call(C,j)}catch(st){N=[6,st],M=0}finally{O=x=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([Q,J])}}},pt=function(){function C(I){this.uploadCtx=I.uploadCtx}return C.prototype.getUploadToken=function(I){return Y(this,void 0,void 0,function(){var O,M,x,$,j;return dt(this,function(K){switch(K.label){case 0:return O=Date.now(),M=U()("upload_token_live"+I.channelId+O),x={channelId:I.channelId,ts:O,hash:M,bucket:I.bucket},I.userId&&(x.userId=I.userId),[4,T("https://"+this.uploadCtx.apiHost+"/live/upload/token/image/get-token",{params:x})];case 1:return($=K.sent()).data?(j=$.data).code!==200?[2,Promise.reject(new rt(H.GET_UPLOAD_TOKEN_ERROR))]:[2,j.data]:[2,Promise.reject(new rt(H.GET_UPLOAD_TOKEN_ERROR))]}})})},C.prototype.uploadImage=function(I){return Y(this,void 0,void 0,function(){var O,M,x,$,j,K;return dt(this,function(Q){switch(Q.label){case 0:O={key:""+I.dir+I.fileName,policy:I.policy,OSSAccessKeyId:I.accessid,signature:I.signature,success_action_status:200,callback:I.encodedCallback,file:I.file},Q.label=1;case 1:return Q.trys.push([1,3,,4]),[4,T("https://"+I.host,{method:"post",data:F(O),onUploadProgress:function(J){var N,st,P=I.onUploadProgress;typeof P=="function"&&P((N=J.loaded/J.total,st=2,Number(N.toFixed(st||0))))}})];case 2:return(M=Q.sent()).data?(x=M.data).code!==200?[2,Promise.reject(new rt(H.UPLOAD_IMAGE_ERROR))]:[2,x.data]:[2,Promise.reject(new rt(H.UPLOAD_IMAGE_ERROR))];case 3:return Q.sent(),$=I.currentReuploadTime,(j=$===void 0?0:$)&&j>=this.uploadCtx.reUploadTimes?[2,Promise.reject(new rt(H.UPLOAD_IMAGE_ERROR))]:(j+=1,K=Object.assign({},I,{currentReuploadTime:j}),[2,this.uploadImage(K)]);case 4:return[2]}})})},C.prototype.createSign=function(I,O,M){var x=I;Object.keys(O).sort().forEach(function(j){O[j]&&(x+=j+String(O[j]))}),x+=I;var $=U()(x);return M==="lower"?$:$.toLocaleUpperCase()},C.prototype.pornIdentify=function(I){return Y(this,void 0,void 0,function(){var O,M,x;return dt(this,function($){switch($.label){case 0:O=tt(tt({},I),{timestamp:Date.now()}),$.label=1;case 1:return $.trys.push([1,3,,4]),[4,T("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(H.PORN_IDENTIFY_ERROR))]:[2,!0]:[2,Promise.reject(new rt(H.PORN_IDENTIFY_ERROR))];case 3:return x=$.sent(),[2,Promise.reject(x)];case 4:return[2]}})})},C}();(function(C){C.WAIT_UPLOAD="waitUpload",C.UPLOADING="uploading",C.UPLOAD_SUCCESS="uploadSuccess",C.UPLOAD_FAIL="uploadFail",C.UPLOAD_FORBID="forbid"})(et||(et={}));var bt=function(){return(bt=Object.assign||function(C){for(var I,O=1,M=arguments.length;O<M;O++)for(var x in I=arguments[O])Object.prototype.hasOwnProperty.call(I,x)&&(C[x]=I[x]);return C}).apply(this,arguments)},mt=function(C,I,O,M){return new(O||(O=Promise))(function(x,$){function j(J){try{Q(M.next(J))}catch(N){$(N)}}function K(J){try{Q(M.throw(J))}catch(N){$(N)}}function Q(J){var N;J.done?x(J.value):(N=J.value,N instanceof O?N:new O(function(st){st(N)})).then(j,K)}Q((M=M.apply(C,[])).next())})},ct=function(C,I){var O,M,x,$,j={label:0,sent:function(){if(1&x[0])throw x[1];return x[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(J){return function(N){if(O)throw new TypeError("Generator is already executing.");for(;j;)try{if(O=1,M&&(x=2&N[0]?M.return:N[0]?M.throw||((x=M.return)&&x.call(M),0):M.next)&&!(x=x.call(M,N[1])).done)return x;switch(M=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,M=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(x=j.trys,!((x=x.length>0&&x[x.length-1])||N[0]!==6&&N[0]!==2)){j=0;continue}if(N[0]===3&&(!x||N[1]>x[0]&&N[1]<x[3])){j.label=N[1];break}if(N[0]===6&&j.label<x[1]){j.label=x[1],x=N;break}if(x&&j.label<x[2]){j.label=x[2],j.ops.push(N);break}x[2]&&j.ops.pop(),j.trys.pop();continue}N=I.call(C,j)}catch(st){N=[6,st],M=0}finally{O=x=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([Q,J])}}},lt={width:500,height:500},xt=function(){function C(I){var O=I.callbackChange,M=O===void 0||O;this.imageId=I.imageId,this.uploadCtx=I.uploadCtx,this.file=I.file,this._status=I.status||et.WAIT_UPLOAD,this.callbackChange=M,this.fileUrl=void 0,this.uploadProgress=void 0,this.previewSrc=L(this.file),this.uploadCtx.recordChatImage(this),this.triggerChange()}return C.prototype.upload=function(I){return I===void 0&&(I={}),mt(this,void 0,void 0,function(){var O,M,x,$,j,K,Q,J,N,st,P,G,W,X=this;return ct(this,function(at){switch(at.label){case 0:return O=this.uploadCtx,M=O.channelId,x=O.userId,$=O.bucket,this.status=et.UPLOADING,[4,O.uploadApi.getUploadToken({channelId:M,userId:x,bucket:$})];case 1:if(j=at.sent(),!((K=this.file).size>1024*O.compressSizeLimit))return[3,5];at.label=2;case 2:return at.trys.push([2,4,,5]),[4,this.compressImage({file:this.file,fileName:this.fileName})];case 3:return Q=at.sent(),K=Q,[3,5];case 4:return at.sent(),console.warn("图片压缩失败",K,this.imageId),[3,5];case 5:return at.trys.push([5,7,,8]),[4,B(K)];case 6:return J=at.sent(),N=J.width,st=J.height,this.size={width:N,height:st},[3,8];case 7:return at.sent(),console.warn("获取图片尺寸失败"),[3,8];case 8:this.size||(this.size=lt),this.uploadProgress=0,P="",at.label=9;case 9:return at.trys.push([9,13,,14]),[4,O.uploadApi.uploadImage(bt(bt({},j),{file:K,fileName:this.fileName,onUploadProgress:function(kt){X.uploadProgress=kt,X.triggerChange()}}))];case 10:return P=at.sent(),this.fileUrl=P,O.enablePornChecking?[4,O.uploadApi.pornIdentify({channelId:M,url:"https:"+P})]:[3,12];case 11:at.sent(),at.label=12;case 12:return this.status=et.UPLOAD_SUCCESS,[3,14];case 13:return G=at.sent(),this.status=G.failCode===H.PORN_IDENTIFY_ERROR?et.UPLOAD_FORBID:et.UPLOAD_FAIL,I.error,[2,Promise.reject(G)];case 14:return typeof(W=I.success)=="function"&&W(P),[2,P]}})})},C.prototype.compressImage=function(I){return mt(this,void 0,void 0,function(){var O,M,x,$,j,K,Q,J,N,st;return ct(this,function(P){switch(P.label){case 0:return O=I.file,M=I.fileName,x=I.quality,$=x===void 0?.7:x,[4,B(O)];case 1:return j=P.sent(),K=j.width,Q=j.height,J=j.imageTarget,(N=document.createElement("canvas")).setAttribute("width",""+K),N.setAttribute("height",""+Q),(st=N.getContext("2d"))?(st.drawImage(J,0,0,K,Q),[2,z(N.toDataURL("image/jpeg",$),M)]):[2,Promise.reject(new Error("create canvas error"))]}})})},C.prototype.triggerChange=function(){if(this.callbackChange){var I=this.uploadCtx.onChange;typeof I=="function"&&I(this)}},Object.defineProperty(C.prototype,"fileName",{get:function(){var I=V(this.file);return this.imageId+"."+(I||"png")},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"status",{get:function(){return this._status},set:function(I){this._status=I,this.triggerChange()},enumerable:!1,configurable:!0}),C}(),_t=function(){function C(I){this.uploadCtx=I.uploadCtx,this.uploadingList=[],this.waitQueue=[]}return C.prototype.joinWaitQueue=function(I){this.isExistQueue(I,this.waitQueue)||(this.waitQueue.push(I),this.checkQueue())},C.prototype.checkQueue=function(){var I=this;if(!(this.uploadingList.length>=this.uploadCtx.maxUploadNumber)&&this.waitQueue.length!==0)for(var O=this.uploadCtx.maxUploadNumber-this.uploadingList.length,M=function(j){var K=x.waitQueue.shift();K&&(K.upload({success:function(){I.handleImageUploadSuccess(K)}}),x.uploadingList.push(K))},x=this,$=0;$<O;$++)M()},C.prototype.handleImageUploadSuccess=function(I){this.uploadingList=this.uploadingList.filter(function(O){return O.imageId!==I.imageId}),this.checkQueue()},C.prototype.isExistQueue=function(I,O){return O.findIndex(function(M){return M.imageId===I.imageId})!==-1},C}(),Et=["image/jpeg","image/jpg","image/png","image/gif","image/webp","image/bmp","image/tiff","image/tifa"],gt=["png","bmp","webp","tiff","tif","jpeg","jpg","gif"],ht={channelId:"",userId:"",sizeLimit:81920,compressSizeLimit:2048,limit:9,maxWidth:700,reUploadTimes:3,source:"chat_img",bucket:"liveimages",useBlobByCompress:!1,allowAccept:Et,allowFileExtension:gt,maxUploadNumber:3,enablePornChecking:!1,apiHost:"api.polyv.net"},wt=function(C,I,O,M){return new(O||(O=Promise))(function(x,$){function j(J){try{Q(M.next(J))}catch(N){$(N)}}function K(J){try{Q(M.throw(J))}catch(N){$(N)}}function Q(J){var N;J.done?x(J.value):(N=J.value,N instanceof O?N:new O(function(st){st(N)})).then(j,K)}Q((M=M.apply(C,[])).next())})},q=function(C,I){var O,M,x,$,j={label:0,sent:function(){if(1&x[0])throw x[1];return x[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(J){return function(N){if(O)throw new TypeError("Generator is already executing.");for(;j;)try{if(O=1,M&&(x=2&N[0]?M.return:N[0]?M.throw||((x=M.return)&&x.call(M),0):M.next)&&!(x=x.call(M,N[1])).done)return x;switch(M=0,x&&(N=[2&N[0],x.value]),N[0]){case 0:case 1:x=N;break;case 4:return j.label++,{value:N[1],done:!1};case 5:j.label++,M=N[1],N=[0];continue;case 7:N=j.ops.pop(),j.trys.pop();continue;default:if(x=j.trys,!((x=x.length>0&&x[x.length-1])||N[0]!==6&&N[0]!==2)){j=0;continue}if(N[0]===3&&(!x||N[1]>x[0]&&N[1]<x[3])){j.label=N[1];break}if(N[0]===6&&j.label<x[1]){j.label=x[1],x=N;break}if(x&&j.label<x[2]){j.label=x[2],j.ops.push(N);break}x[2]&&j.ops.pop(),j.trys.pop();continue}N=I.call(C,j)}catch(st){N=[6,st],M=0}finally{O=x=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([Q,J])}}},ut=function(){function C(I){I===void 0&&(I={});var O=I.channelId,M=O===void 0?ht.channelId:O,x=I.userId,$=x===void 0?ht.userId:x,j=I.sizeLimit,K=j===void 0?ht.sizeLimit:j,Q=I.compressSizeLimit,J=Q===void 0?ht.compressSizeLimit:Q,N=I.limit,st=N===void 0?ht.limit:N,P=I.maxWidth,G=P===void 0?ht.maxWidth:P,W=I.reUploadTimes,X=W===void 0?ht.reUploadTimes:W,at=I.source,kt=at===void 0?ht.source:at,Tt=I.bucket,Pt=Tt===void 0?ht.bucket:Tt,Ut=I.useBlobByCompress,nt=Ut===void 0?ht.useBlobByCompress:Ut,ft=I.allowAccept,vt=ft===void 0?ht.allowAccept:ft,It=I.allowFileExtension,Ct=It===void 0?ht.allowFileExtension:It,Ht=I.maxUploadNumber,Bt=Ht===void 0?ht.maxUploadNumber:Ht,Xt=I.apiHost,he=Xt===void 0?ht.apiHost:Xt,ge=I.onChange,ve=I.beforeStart;this.channelId=M,this.userId=$,this.sizeLimit=K,this.compressSizeLimit=J,this.limit=st,this.maxWidth=G,this.reUploadTimes=X,this.source=kt,this.bucket=Pt,this.useBlobByCompress=!!nt,this.allowAccept=vt,this.allowFileExtension=Ct,this.maxUploadNumber=Bt,this.onChange=ge,this.beforeStart=ve,this.enablePornChecking=I.enablePornChecking===!0,this.apiHost=he,this.uploadQueue=new _t({uploadCtx:this}),this.uploadApi=new pt({uploadCtx:this}),this.chatImageStore={}}return C.prototype.choiceImageFile=function(I){var O=this;I===void 0&&(I={});var M=this.getAccept(),x=document.createElement("input");return x.setAttribute("id","polyv-upload-chat-image-input-id"),x.setAttribute("type","file"),x.setAttribute("accept",M),x.setAttribute("style","visibility: hidden;position: fixed;bottom: -100%;z-index: -1;"),this.limit>1&&x.setAttribute("multiple","multiple"),x.addEventListener("change",function(){document.body.removeChild(x),I&&x.files&&x.files.length!==0&&O.handleFileList(I,x.files)}),document.body.appendChild(x),x.click(),this},C.prototype.handleFileList=function(I,O){this.beforeStart&&this.beforeStart();for(var M,x=I.fail,$=I.success,j=I.callbackChange,K=O.length<this.limit?O.length:this.limit,Q=0;Q<K;Q++){var J=O[Q],N=this.checkFile(J);if(N)return M=N,void(typeof x=="function"&&x(M))}var st=[];for(Q=0;Q<K;Q++){J=O[Q];var P=this.buildImageId(Q),G=new xt({imageId:P,uploadCtx:this,file:J,callbackChange:j});st.push(G)}typeof $=="function"&&$(st)},C.prototype.getAccept=function(){var I=[];return I.push.apply(I,this.allowFileExtension.map(function(O){return"."+O})),I.push.apply(I,this.allowAccept),I.join(",")},C.prototype.joinWaitQueue=function(I){var O=this;if(Array.isArray(I))return I.forEach(function(x){O.joinWaitQueue(x)}),this;var M=void 0;return typeof I=="string"?M=this.getChatImageById(I):I instanceof xt&&(M=I),M&&this.uploadQueue.joinWaitQueue(M),this},C.prototype.getUploadImageUrl=function(){var I=this;return new Promise(function(O,M){I.choiceImageFile({callbackChange:!1,success:function(x){return wt(I,void 0,void 0,function(){var $;return q(this,function(j){switch(j.label){case 0:return[4,($=x[0]).upload()];case 1:return j.sent(),$.fileUrl?O($):M(new rt(H.UPLOAD_IMAGE_ERROR)),[2]}})})},fail:function(x){M(x)}})})},C.prototype.callbackUploadImage=function(){var I=this;this.choiceImageFile({success:function(O){I.joinWaitQueue(O)}})},C.prototype.uploadImageFile=function(I){return wt(this,void 0,void 0,function(){var O;return q(this,function(M){switch(M.label){case 0:if(O=this.checkFile(I))throw new Error(O.failMessage);return[4,new xt({imageId:this.buildImageId(),file:I,uploadCtx:this,callbackChange:!1}).upload()];case 1:return[2,M.sent()]}})})},C.prototype.uploadImage=function(I,O){return wt(this,void 0,void 0,function(){var M,x;return q(this,function($){switch($.label){case 0:if(M=this.checkFile(I))throw new Error(M.failMessage);return[4,(x=new xt({imageId:this.buildImageId(),file:I,uploadCtx:this,callbackChange:O!==!1})).upload()];case 1:return $.sent(),[2,x]}})})},C.prototype.reUploadImage=function(I){return wt(this,void 0,void 0,function(){var O,M;return q(this,function(x){switch(x.label){case 0:if(!(O=this.getChatImageById(I)))return[2,Promise.reject(new Error("图片不存在"))];x.label=1;case 1:return x.trys.push([1,3,,4]),[4,O.upload()];case 2:return x.sent(),[2,O];case 3:return M=x.sent(),[2,Promise.reject(M)];case 4:return[2]}})})},C.prototype.getChatImageById=function(I){return this.chatImageStore[I]},C.prototype.recordChatImage=function(I){this.chatImageStore[I.imageId]=I},C.prototype.checkFile=function(I){if(!I.size)return rt.getFailErrorData(H.EMPTY_FILE);if(I.size>1024*this.sizeLimit)return rt.getFailErrorData(H.FILE_SIZE_TOO_LARGE);if(!this.allowAccept.includes(I.type))return rt.getFailErrorData(H.FILE_TYPE_NOT_ALLOW);var O=V(I);return this.allowFileExtension.includes(O)?void 0:rt.getFailErrorData(H.FILE_EXTENSION_NOT_ALLOW)},C.prototype.buildImageId=function(I){var O=[];this.source&&O.push(this.source),this.channelId&&O.push(this.channelId),this.userId&&O.push(this.userId);var M=I!==void 0?"_"+I:"";return O.join("_")+"_"+Date.now()+"_"+Math.random().toString().substring(2,10)+M},C}()}]);class Ve extends jt{constructor(t){super(t);yt(this,"__uploadImgCtrl");yt(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 Ge.ChatImageUpload({enablePornChecking:!0})}__setUploadImgChannelId(){return it(this,null,function*(){const t=yield this._plvSocket.channel.getChannelInfo();this.__uploadImgCtrl.channelId=t.channelId})}uploadMultiImage(t){return it(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=>it(this,null,function*(){d=d.slice(0,e),yield Promise.all(d.map(v=>new Promise(y=>{const b=URL.createObjectURL(v.file),m=new Image;m.onload=()=>{v.size={width:m.width,height:m.height},URL.revokeObjectURL(b),y()},m.src=b}))),d.forEach(v=>{r({imageId:v.imageId,previewSrc:v.previewSrc||"",size:v.size})});try{for(var p=ee(d),l,h,g;l=!(h=yield p.next()).done;l=!1){const v=h.value;try{const y=yield v.upload();if(!y)throw new Error("upload Image Error");const b={imageId:v.imageId,imageUrl:y,size:v.size};s.push(b),n(b)}catch(y){const b=y,m={imageId:v.imageId,previewSrc:v.previewSrc||""};u.push(m),console.error("[util-module][uploadMultiImage] ",b.message,m),i(b,m)}}}catch(h){g=[h]}finally{try{l&&(h=p.return)&&(yield h.call(p))}finally{if(g)throw g[0]}}return f({successUploadImages:s,failUploadImages:u})}),fail:d=>{console.error("[util-module][uploadMultiImage] ",d),c(new Error(d.failMessage))}})})})}directUploadImage(t){return it(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 it(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 it(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]}`)})}}class $e{constructor(a,t={}){yt(this,"PolyvChatEvent",St);yt(this,"ChatMsgSource",ot);yt(this,"DonateType",Dt);yt(this,"RedpackType",qt);yt(this,"SystemMsgType",Vt);yt(this,"ChatRequestHistoryMode",Ft);yt(this,"ManageFailReason",Nt);yt(this,"TranslateLanguage",Jt);yt(this,"eventEmitter",new we);yt(this,"__socketFilter");yt(this,"__socketHandler");yt(this,"emotion");yt(this,"history");yt(this,"message");yt(this,"status");yt(this,"utils");yt(this,"sender");yt(this,"manage");yt(this,"online");yt(this,"download");yt(this,"like");yt(this,"ask");yt(this,"setuped",!1);this.plvSocket=a,this.config=t,this.emotion=new Le(this),this.history=new je(this),this.message=new De(this),this.status=new He(this),this.utils=new Ve(this),this.sender=new ze(this),this.manage=new Ue(this),this.online=new Be(this),this.download=new Re(this),this.like=new Ne(this),this.ask=new Me(this),this.__socketFilter=new ke(this),this.__socketHandler=new Ce(this)}setup(){return it(this,null,function*(){this.setuped=!0})}destroy(){return it(this,null,function*(){this.plvSocket.clearSocketHandles(At)})}}const Ke="PolyvChat";exports.ChatMsgSource=ot;exports.ChatRequestHistoryMode=Ft;exports.DonateType=Dt;exports.GlobalVariable=Ke;exports.ManageFailReason=Nt;exports.MotivationLikeType=Qt;exports.PolyvChat=$e;exports.PolyvChatEvent=St;exports.RedpackType=qt;exports.SystemMsgType=Vt;exports.TranslateLanguage=Jt;exports.canQuoteMsgSource=de;exports.canTopMsgSource=pe;exports.isServiceMsgMap=le;console.log("%c@polyv/chat","background:#67C23A;padding: 2px 6px;border-radius: 3px;color: #fff","[version: 2.3.0-rc-20251204.1]","[buildTime: 2025-12-04 02:19:40]");
|