/*! For license information please see 13385.289539f5.js.LICENSE.txt */ !function(e,t){"object"==typeof module&&"object"==typeof module.exports?t():"function"==typeof define&&define.amd?define([],t):(e="undefined"!=typeof globalThis?globalThis:e||self)&&t()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).xss={})}(this,function(e){"use strict";var t=function(){return(t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n/g,s=/&#([a-zA-Z0-9]*);?/gim,a=/"/g,c=/:?/gim,l=/&newline;?/gim,u=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,d=/u\s*r\s*l\s*\(.*/gi,f=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,h=/"/g,p=function(e){return e.replace(i,"<").replace(o,">")},m={indexOf:function(e,t){var n,r;for(n=0,r=e.length;n127&&r<2048?t+=String.fromCharCode(r>>6|192)+String.fromCharCode(63&r|128):t+=String.fromCharCode(r>>12|224)+String.fromCharCode(r>>6&63|128)+String.fromCharCode(63&r|128)}return t}(e);u>2,o=(3&t)<<4|(n=e.charCodeAt(u++))>>4,s=(15&n)<<2|(r=e.charCodeAt(u++))>>6,a=63&r,isNaN(n)?s=a=64:isNaN(r)&&(a=64),l=l+c.charAt(i)+c.charAt(o)+c.charAt(s)+c.charAt(a);return l}function y(e){var t,n,r,i,o,s,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",l=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");l>4,n=(15&i)<<4|(o=a.indexOf(e.charAt(l++)))>>2,r=(3&o)<<6|(s=a.indexOf(e.charAt(l++))),c+=String.fromCharCode(t),64!==o&&(c+=String.fromCharCode(n)),64!==s&&(c+=String.fromCharCode(r));return function(e){for(var t="",n=0,r=0,i=0,o=0;n191&&r<224?(t+=String.fromCharCode((31&r)<<6|63&(o=e.charCodeAt(n+1))),n+=2):(o=e.charCodeAt(n+1),t+=String.fromCharCode((15&r)<<12|(63&o)<<6|63&(i=e.charCodeAt(n+2))),n+=3);return t}(c)}function _(e,t,n){var r="",i=0,o=!1,s=!1,a=0,c=e.length,l="",u="";e:for(a=0;a"===d||a===c-1){r+=n(e.slice(i,o)),l=function(e){var t,n=m.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=m.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(u=e.slice(o,a+1)),r+=t(o,r.length,l,u,"0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,l-1))){c(s,v(m.trim(e.slice(n,l)))),s=!1,n=l+1;continue}}}else{if(-1===(d=e.indexOf(u,l+1)))break;c(s,m.trim(e.slice(i+1,d))),s=!1,n=(l=d)+1}}else s=e.slice(n,l),n=l+1,i='"'===e.charAt(n)||"'"===e.charAt(n)?n:function(e,t){for(;te.charCodeAt(n)?" ":e.charAt(n);return m.trim(t)}(e=(e=(e=e.replace(a,'"')).replace(s,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})).replace(c,":").replace(l," "))}(n),"href"===t||"src"===t){if("#"===(n=m.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(u.lastIndex=0,u.test(n))return""}else if("style"===t&&(f.lastIndex=0,f.test(n)||(d.lastIndex=0,d.test(n)&&(u.lastIndex=0,u.test(n)))))return"";return n=function(e){return e=p(e=e.replace(h,"""))}(n)}var S=function(e){return"string"==typeof e?e.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},T=function(){function e(e){var t=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{});t.stripIgnoreTag&&(t.onIgnoreTag,t.onIgnoreTag=function(){return""}),t.whiteList={},t.onTag=function(){},t.onTagAttr=function(){},t.onIgnoreTag=function(){},t.onIgnoreTagAttr=function(){},t.safeAttrValue=C,t.escapeHtml=p,this.options=Object.assign(t,e)}return e.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t,n,r,i,o,s,a=this.options,c=a.whiteList,l=a.onTag,u=a.onIgnoreTag,d=a.onTagAttr,f=a.onIgnoreTagAttr,h=a.safeAttrValue,p=a.escapeHtml;a.stripBlankChar&&(e=(t=(t=e.split("")).filter(function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)})).join("")),a.allowCommentTag||(e=function(e){for(var t="",n=0;n");var a=function(e){var t=m.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=m.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=m.trim(e.slice(0,-1))),{html:e,closing:n}}(r),g=c[n],v=w(a.html,function(e,t){var r=-1!==m.indexOf(g,e),i=d(n,e,t,r);return null==i?r?(t=h(n,e,t,null))?"".concat(e,'="').concat(t,'"'):e:null==(i=f(n,e,t,r))?void 0:i:i});return r="<".concat(n),v&&(r+=" ".concat(v)),a.closing&&(r+=" /"),r+=">"}return null==(s=u(n,r,o))?p(r):s},p);return g&&(v=g.remove(v)),v},e}(),x=Function("\nvar _checkXSS = function (it) {\n return it && it.Math == Math && it;\n};\nreturn _checkXSS(typeof globalThis === 'object' && globalThis) ||\n_checkXSS(typeof window === 'object' && window) ||\n_checkXSS(typeof self === 'object' && self) ||\n_checkXSS(typeof global === 'object' && global) ||\nFunction('return this')();\n")(),k=new(function(){function e(){var e=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var t,n,r="douyin_web";if(!m.includes(r,"bid"))return r;if(e.config&&e.config.bid)return e.config.bid;if(x&&x._xssBid)return x._xssBid;if(x&&x.slardar&&"function"==typeof x.slardar.config){var i=(x.slardar.config()||{}).bid;if(i)return i}if(x&&x.Slardar&&"function"==typeof x.Slardar.config){var o=(x.Slardar.config()||{}).bid;if(o)return o}return(null===(n=null===(t=null==x?void 0:x.Slardar)||void 0===t?void 0:t._baseParams)||void 0===n?void 0:n.bid)||"argus"},this.getConfigRegion=function(){var t;return m.includes("cn","region")?e.config&&e.config.region?e.config.region:((null===(t=null==x?void 0:x.gfdatav1)||void 0===t?void 0:t.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var t={cn:y("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:y("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:y("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:y("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[e.getConfigRegion()];if(t)return t+e.getSlardarBid()}}return e.prototype.setConfig=function(e){this.config=e},e.prototype.upload=function(){var e=this,t=this.gerReportUrl();!this.lock&&t&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var n=e.batchData.slice(0,100);e.batchData=e.batchData.slice(100),x.fetch(t,{method:"post",body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}).catch(function(e){}),e.lock=!1,e.upload()},this.timeout))},e.prototype.generateKey=function(e){return e.collectKey?[e.collectMode,e.collectKey].join("___"):""},e.prototype.push=function(e){this.batchData.push(e),this.upload()},e.prototype.report=function(e){var t=this.generateKey(e);if(x.fetch&&e.collectKey){var n="object"==typeof window?window.location.href:"SSR";e.documentUrl=n;var r={age:Math.floor(Date.now()),type:"xss",url:n,body:e,"user-agent":""};"enforce"===e.disposition&&"SSR"!==n||(r.url=t),"SSR"===n&&(r.url="SSR___".concat(r.url),r.body.ssr=!0),this.push(r)}},e}()),R=function(e){for(var t=0,n=function(n){Array.isArray(e[n])?0===e[n].length?delete e[n]:(e[n]=m.from(m.uniq(e[n])),t+=e[n].length):0===m.keys(e[n]).length?delete e[n]:m.keys(e[n]).forEach(function(r){e[n][r]=m.from(m.uniq(e[n][r])),t+=e[n][r].length})},r=0,i=m.keys(e);r0)return t&&t("javascript:"),!1;if(/^javascript:/i.test(e)){var i=e.slice(11).replace(/\s/g,"").trim();return!!m.some(["void","void(0)","void0","false","undefined",";"],function(e){return e===i})||(t&&t("javascript:"),!1)}return!0}var O=function(e,t){var n,r,i="<%= isSaveValidUrl =>";if("string"!=typeof e||(r=Number("<%= urlLimit =>"),void 0!==n&&(r=n),"NaN"!==e.toString()&&-1!==r&&e.length>=r)||I(e,t))return e;try{if(!0===(i=JSON.parse(i))||"true"===i){var o=new URL(e);return o.origin+o.pathname}}catch(e){}return"#"};function L(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=[]),"string"!=typeof e)return!0;if(!I(e=P(e)))return!1;var i,o={url:(i=e.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:i[1],slash:i[2],host:i[3],port:i[4],path:i[5],query:i[6],hash:i[7]},s=o.scheme,a=o.host;return r?!!r(e):!(!s||!a)&&(!m.includes(["http","https","file"],s)||("object"==typeof window&&window&&(t=n(n([],t,!0),[location.host],!1)),m.some(t,function(e){return!!(e instanceof RegExp&&e.test(a))||e===a})))}var A={a:["target","title","spellcheck","rel"],canvas:[],abbr:["title"],address:[],area:["shape","coords","alt"],article:[],aside:[],audio:["autoplay","controls","loop","preload"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:["dir"],dl:[],dt:[],em:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["alt","title","width","height","decoding"],ins:["datetime"],li:[],mark:[],nav:[],ol:["start"],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],sup:[],delete:[],form:[],strong:[],mask:["maskunits","x","y","width","height","fill"],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],wbr:[],video:["autoplay","controls","loop","preload","height","width"],svg:["viewBox","version","xmlns","fill","width","height","stroke","stroke-width","style"],path:["d","fill","opacity","stroke","p-id","fill-rule","clip-rule","stroke-width","stroke-linecap","stroke-linejoin","fill-opacity","mask"],rect:["x","y","width","height","fill","stroke","rx"],g:[]},N={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var e=R(this.collect),t=e.count,n=e.ret;return this.collect=null,{collectKey:0===t?null:JSON.stringify(n),collectMode:"white"}},onIgnoreTagAttr:function(e,t,r){return e&&m.indexOf(["href","src"],t)>-1?N.domainWhiteList&&Array.isArray(N.domainWhiteList)&&N.domainWhiteList.length>0&&!L(r,n([],N.domainWhiteList,!0))?"":"".concat(t,'="').concat(O(r,function(e){var t;null===(t=N.collect)||void 0===t||t.filterProtocol.push(e)}),'"'):e&&(m.indexOf(["style","class","id"],t)>-1||t.indexOf("data-")>-1)?"".concat(t,'="').concat(r,'"'):(N.collect.whiteList[e]=N.collect.whiteList[e]||[],void N.collect.whiteList[e].push(t))},onIgnoreTag:function(e,t){if("style"===e)return t;_(t,function(e,t,n,r){w(E(r).html.replace("/",""),function(e){N.collect.whiteList[n]=N.collect.whiteList[n]||[],N.collect.whiteList[n].push(e)})},p)},whiteList:A,mergeWhiteList:function(e){for(var t,n={},r=0,i=m.keys(A);r");var o=E(r),s=w(o.html,function(e,t){var r,i=0;if(Z.blackList[n]&&m.includes(Z.blackList[n],e)&&(V.collect.blackList[n]=V.collect.blackList[n]||[],V.collect.blackList[n].push(e),i++),Z.blackAttrRegExps.length&&Z.blackAttrRegExps.some(function(t){return t.test(e)})&&m.forEach(Z.blackAttrRegExps,function(t){t.test(e)&&(V.collect.blackAttrRegExps.push("".concat(t.toString(),"->").concat(e)),i++)}),Z.blackAttrs.length&&m.includes(Z.blackAttrs,e)&&(Z.blackAttrs.push(e),i++),!i){if(Z.filterList&&Z.filterList[n]&&m.includes(Z.filterList[n],e)){var o=O(t,function(e){var t;null===(t=V.collect)||void 0===t||t.filterProtocol.push(e)});return o!==t&&(V.collect.filterList[n]=V.collect.filterList[n]||[],V.collect.filterList[n].push(e)),t?"".concat(e,"='").concat(o,"'"):e}return Z.filterAttrs&&m.includes(Z.filterAttrs,e)?((o=O(t,function(e){var t;null===(t=V.collect)||void 0===t||t.filterProtocol.push(e)}))!==t&&(null===(r=V.collect)||void 0===r||r.filterAttrs.push(e)),t?"".concat(e,"='").concat(o,"'"):e):t?"".concat(e,"='").concat(t,"'"):e}});return r="<".concat(n),s&&(r+=" ".concat(s)),o.closing&&(r+=" /"),r+=">"},p);null===(n=V.collect)||void 0===n||n.blackTags.push(e)}},q=function(e){var t=e.reportOnly,n=void 0===t||t,r=e.block;return n&&"all"===n?"report":("string"==typeof n&&("true"===n&&(n=!0),"false"===n&&(n=!1)),r?"enforce":n?"report":"enforce")},z=function(e){return function(n,r,i){if(!n||"string"!=typeof n)return n;var o=r;e===j&&(o=N).initCollect();var s=e(n,o);if(S(s)===S(n))return n;if(!i)return s;var a=i.logType,c=q(i),l=o.removeCollect();return k.report(t(t({type:a,disposition:c},l),{sourceText:b(n),filterText:b(s)})),"enforce"===c?s:n}},W=z(function(e,t){return void 0===t&&(t={}),t&&t.whiteList||(t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}),new T(t).process(e)}),J=z(j),$=function(e,t,n){var r=[],i=O(e,function(e){r.push(e)});if(i===e)return e;r=m.from(m.uniq(r));var o=t||n||{};if(!o)return i;var s=o.logType,a=q(n);return k.report({type:s,disposition:a,collectKey:r.join("___"),collectData:JSON.stringify(r),collectMode:"black",sourceText:b(e),filterText:b(i)}),"enforce"===a?i:e},H=x._xssProject||{},K=x.xssNamespace||{},X="3.0.26",Y={FilterXSS:T,version:X,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:W,_filterXSS:J,filterUrl:$,Config:N,BlackConfig:V,project:H,setProjectName:function(e){H[e]=this,x._xssProjectName=e}};K.douyin_web=Y,x.xssNamespace=K,x.Math&&!x.Math.xssNamespace&&(x.Math.xssNamespace=K),H[X]=Y,x.globalThis=x,x.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:Y},x.xss=Y,x.isSafeUrl=L,x.isSafeDomain=L,x.isSafeProtocol=I,x._xssProject=H,x._xssProjectName&&(H[x._xssProjectName]=Y);var G=Y.setProjectName.bind(Y);e.BlackConfig=V,e.Config=N,e.FilterXSS=T,e._filterXSS=J,e.filterUrl=$,e.filterXSS=W,e.isSafeDomain=L,e.isSafeProtocol=I,e.isSafeUrl=L,e.project=H,e.setProjectName=G,e.setXssNamespace=function(e){var t=e.appId,n=e.bid,r=e.region;K[t]=Y;N.bid=n,N.region=r,N.enabled=!0},e.xssNamespace=K,Object.defineProperty(e,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["13385"],{877004:function(e,t,n){"use strict";var r=n(101199),i=n(994298);let o=(0,i.A)(function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 2a8.5 8.5 0 1 0 4.86 15.48l4.08 4.08a1.5 1.5 0 1 0 2.12-2.12l-4.08-4.08A8.5 8.5 0 0 0 10.5 2ZM5 10.5a5.5 5.5 0 1 1 11 0 5.5 5.5 0 0 1-11 0Z",fill:"currentColor"}))},"search");t.Z=o},87853:function(e,t,n){"use strict";var r=n(101199),i=n(994298);let o=(0,i.A)(function(e){return r.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,"aria-hidden":!0},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a1 1 0 0 0-1.62-.78L4.65 7H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h2.65l5.73 4.78A1 1 0 0 0 12 21V3Zm4.07 5.45a1.5 1.5 0 1 0-2.14 2.1 1.99 1.99 0 0 1 0 2.8 1.5 1.5 0 0 0 2.14 2.1 4.99 4.99 0 0 0 0-7Z",fill:"currentColor"}))},"volume_1");t.Z=o},782499:function(e,t,n){"use strict";n.d(t,{CH:function(){return f},_i:function(){return u},o5:function(){return l},s0:function(){return d}});var r=n(796616),i=n(600737),o=n(239202),s=n(934057),a=new o.Yd("event"),c={},l=function(e,t){null!==(o=c[e])&&void 0!==o||(c[e]=[]);var n=!0,r=!1,i=void 0;try{for(var o,s,l=c[e][Symbol.iterator]();!(n=(s=l.next()).done);n=!0)if(s.value.containerID===t.containerID){a.warn('当前页面已监听 "'.concat(e,'" 事件'));return}}catch(e){r=!0,i=e}finally{try{!n&&null!=l.return&&l.return()}finally{if(r)throw i}}a.info("监听事件 ".concat(e,": ").concat(t.containerID)),c[e].push(t)},u=function(e,t){var n;if(!!(null===(n=c[e])||void 0===n?void 0:n.length))a.info("取消监听事件 ".concat(e,": ").concat(t)),c[e]=(c[e]||[]).filter(function(e){return e.containerID!==t})},d=function(e,t){var n,r;if(!!(null===(n=c[e])||void 0===n?void 0:n.length)||!!(null===(r=c["*"])||void 0===r?void 0:r.length))a.info("触发事件 ".concat(e)),c[e]&&(c[e]=c[e].filter(function(n){return n.sendEvent(e,t),!n.once})),c["*"]&&(c["*"]=c["*"].filter(function(n){return n.sendEvent(e,t),!n.once}))},f=function(e,t){var n={__msg_type:"event",__event_id:e,__params:t};document.querySelectorAll('[data-container-id^="'.concat(i.TO,'"]')).forEach(function(i){var o=i.dataset.containerId||i.getAttribute("data-container-id")||"";if(o&&(0,s.En)(o)){var a=(0,s.NP)(o,e);if(a.length){var c=[];a.forEach(function(e){i.contentWindow.postMessage({type:"executeCallback",callbackID:e.id,params:t},"*"),e.once&&c.push(e.id)}),c.length&&(0,s.t$)(o,e,c)}}else i.contentWindow.postMessage({type:r.rG,data:JSON.stringify(n)},"*")})}},11453:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(726588),i=n(144256);function o(e,t){(0,i.Z)(2,arguments);var n=(0,r.Z)(e),o=(0,r.Z)(t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}},580227:function(e,t,n){"use strict";var r=n(177405).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,f.default)(2,arguments);var r,_,w,C,S,T,x,k,R,j,E,P,I,O,L,A,N,D,M=String(t),U=(0,h.getDefaultOptions)(),Z=null!==(r=null!==(_=null==n?void 0:n.locale)&&void 0!==_?_:U.locale)&&void 0!==r?r:p.default,B=(0,d.default)(null!==(w=null!==(C=null!==(S=null!==(T=null==n?void 0:n.firstWeekContainsDate)&&void 0!==T?T:null==n?void 0:null===(x=n.locale)||void 0===x?void 0:null===(k=x.options)||void 0===k?void 0:k.firstWeekContainsDate)&&void 0!==S?S:U.firstWeekContainsDate)&&void 0!==C?C:null===(R=U.locale)||void 0===R?void 0:null===(j=R.options)||void 0===j?void 0:j.firstWeekContainsDate)&&void 0!==w?w:1);if(!(B>=1&&B<=7))throw RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var F=(0,d.default)(null!==(E=null!==(P=null!==(I=null!==(O=null==n?void 0:n.weekStartsOn)&&void 0!==O?O:null==n?void 0:null===(L=n.locale)||void 0===L?void 0:null===(A=L.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==I?I:U.weekStartsOn)&&void 0!==P?P:null===(N=U.locale)||void 0===N?void 0:null===(D=N.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==E?E:0);if(!(F>=0&&F<=6))throw RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Z.localize)throw RangeError("locale must contain localize property");if(!Z.formatLong)throw RangeError("locale must contain formatLong property");var V=(0,s.default)(e);if(!(0,i.default)(V))throw RangeError("Invalid time value");var q=(0,l.default)(V),z=(0,o.default)(V,q),W={firstWeekContainsDate:B,weekStartsOn:F,locale:Z,_originalDate:V};return M.match(g).map(function(e){var t=e[0];return"p"===t||"P"===t?(0,c.default[t])(e,Z.formatLong):e}).join("").match(m).map(function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(v);return t?t[1].replace(b,"'"):e}(r);var o=a.default[i];if(o)return!(null!=n&&n.useAdditionalWeekYearTokens)&&(0,u.isProtectedWeekYearToken)(r)&&(0,u.throwProtectedError)(r,t,String(e)),!(null!=n&&n.useAdditionalDayOfYearTokens)&&(0,u.isProtectedDayOfYearToken)(r)&&(0,u.throwProtectedError)(r,t,String(e)),o(z,r,Z.localize,W);if(i.match(y))throw RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r}).join("")};var i=r(n(792139)),o=r(n(116439)),s=r(n(452811)),a=r(n(405007)),c=r(n(15413)),l=r(n(995863)),u=n(85064),d=r(n(678296)),f=r(n(826204)),h=n(423305),p=r(n(205647)),m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,g=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,b=/''/g,y=/[a-zA-Z]/;e.exports=t.default},199900:function(e,t,n){var r=n(679197),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},149155:function(e,t,n){var r=n(956823)["__core-js_shared__"];e.exports=r},776458:function(e,t,n){"use strict";n.r(t)},283433:function(e,t){"use strict";t.Z=new class e{constructor(){this.config={}}}},525528:function(e,t,n){"use strict";n(932651),n(490629);var r=n(795233),i=n.n(r),o=n(22186),s=n.n(o),a=n(849191),c=n.n(a),l=n(101199),u=n(622689),d=n.n(u),f=n(469935),h=n.n(f),p=n(975044),m=n(669067),g=n(109841),v=n(6433),b=n(37891),y=n(426337),_=n(574102),w=n(653552),C=n(343388);n(600783);var S=n(209873),T=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};class x extends y.Z{get adapter(){var e=this;return Object.assign(Object.assign({},super.adapter),{setValue:(e,t)=>this.setState({value:e},t),setNumber:(e,t)=>this.setState({number:e},t),setFocusing:(e,t)=>this.setState({focusing:e},t),setHovering:e=>this.setState({hovering:e}),notifyChange:function(){return e.props.onChange(...arguments)},notifyNumberChange:function(){return e.props.onNumberChange(...arguments)},notifyBlur:e=>this.props.onBlur(e),notifyFocus:e=>this.props.onFocus(e),notifyUpClick:(e,t)=>this.props.onUpClick(e,t),notifyDownClick:(e,t)=>this.props.onDownClick(e,t),notifyKeyDown:e=>this.props.onKeyDown(e),registerGlobalEvent:(e,t)=>{e&&"function"==typeof t&&(this.adapter.unregisterGlobalEvent(e),this.adapter.setCache(e,t),document.addEventListener(e,t))},unregisterGlobalEvent:e=>{if(e){let t=this.adapter.getCache(e);document.removeEventListener(e,t),this.adapter.setCache(e,null)}},getInputCharacter:e=>this.inputNode.value[e],recordCursorPosition:()=>{try{this.inputNode&&(this.cursorStart=this.inputNode.selectionStart,this.cursorEnd=this.inputNode.selectionEnd,this.currentValue=this.inputNode.value,this.cursorBefore=this.inputNode.value.substring(0,this.cursorStart),this.cursorAfter=this.inputNode.value.substring(this.cursorEnd))}catch(e){}},restoreByAfter:e=>{if((0,g.Z)(e))return!1;let t=this.inputNode.value,n=t.lastIndexOf(e);return -1!==n&&n+e.length===t.length&&(this.adapter.fixCaret(n,n),!0)},restoreCursor:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.cursorAfter;return!(0,g.Z)(t)&&Array.prototype.some.call(t,(n,r)=>{let i=t.substring(r);return e.adapter.restoreByAfter(i)})},fixCaret:(e,t)=>{if(void 0!==e&&void 0!==t&&!!this.inputNode&&!!this.inputNode.value)try{let n=this.inputNode.selectionStart,r=this.inputNode.selectionEnd;(e!==n||t!==r)&&this.inputNode.setSelectionRange(e,t)}catch(e){}},setClickUpOrDown:e=>{this.clickUpOrDown=e},updateStates:(e,t)=>{this.setState(e,t)}})}componentDidUpdate(e){let t;let{value:n,preventScroll:r}=this.props,{focusing:i}=this.state;if(n!==e.value&&!(0,v.Z)(n,e.value)){if((0,g.Z)(n)||""===n)t="",this.foundation.updateStates({value:t,number:null});else{let e=n;"number"==typeof n&&(e=this.foundation.doFormat(n));let r=this.foundation.doParse(e,!1,!0,!0),o="number"==typeof n?n:this.foundation.doParse(e,!1,!1,!1);if(i){if(this.foundation.isValidNumber(r)&&r!==this.state.number){let e={number:r};this.clickUpOrDown&&(e.value=this.foundation.doFormat(e.number,!0),t=e.value),this.foundation.updateStates(e,()=>this.adapter.restoreCursor())}else c()(o)?this.foundation.updateStates({value:e}):(t=this.foundation.doFormat(o,!1),this.foundation.updateStates({value:t}))}else this.foundation.isValidNumber(r)?(t=this.foundation.doFormat(r,!0,!0),this.foundation.updateStates({number:r,value:t})):(t="",this.foundation.updateStates({number:null,value:t}))}if(t&&s()(t)&&t!==String(this.props.value)){if(this.foundation._isCurrency()){let e=this.foundation.doParse(t);e!==("string"==typeof this.props.value?this.foundation.doParse(this.props.value):this.props.value)&&this.foundation.notifyChange(t,null)}else this.foundation.notifyChange(t,null)}}if(!!this.clickUpOrDown)this.props.keepFocus&&this.state.focusing&&document.activeElement!==this.inputNode&&this.inputNode.focus({preventScroll:r})}render(){let e=this.props,{disabled:t,className:n,prefixCls:r,min:i,max:o,step:s,shiftStep:a,precision:c,formatter:u,parser:d,forwardedRef:f,onUpClick:m,onDownClick:g,pressInterval:v,pressTimeout:b,suffix:y,size:_,hideButtons:w,innerButtons:C,style:S,onNumberChange:x,keepFocus:k,defaultValue:R}=e,j=T(e,["disabled","className","prefixCls","min","max","step","shiftStep","precision","formatter","parser","forwardedRef","onUpClick","onDownClick","pressInterval","pressTimeout","suffix","size","hideButtons","innerButtons","style","onNumberChange","keepFocus","defaultValue"]),{value:E,number:P}=this.state,I=h()(n,`${r}-number`,{[`${r}-number-size-${_}`]:_}),O=this.renderButtons(),L={"aria-disabled":t,step:s};return P&&(L["aria-valuenow"]=P),o!==1/0&&(L["aria-valuemax"]=o),i!==-1/0&&(L["aria-valuemin"]=i),l.createElement("div",{className:I,style:S,onMouseMove:e=>this.handleInputMouseMove(e),onMouseEnter:e=>this.handleInputMouseEnter(e),onMouseLeave:e=>this.handleInputMouseLeave(e)},l.createElement(p.Z,Object.assign({role:"spinbutton"},L,j,{size:_,disabled:t,ref:this.setInputRef,value:E,onFocus:this.handleInputFocus,onChange:this.handleInputChange,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,suffix:this.renderSuffix()})),w||C?null:O)}constructor(e){super(e),this.setInputRef=e=>{let{forwardedRef:t}=this.props;this.inputNode=e,t&&"object"==typeof t?t.current=e:"function"==typeof t&&t(e)},this.handleInputFocus=e=>this.foundation.handleInputFocus(e),this.handleInputChange=(e,t)=>this.foundation.handleInputChange(e,t),this.handleInputBlur=e=>this.foundation.handleInputBlur(e),this.handleInputKeyDown=e=>this.foundation.handleInputKeyDown(e),this.handleInputMouseEnter=e=>this.foundation.handleInputMouseEnter(e),this.handleInputMouseLeave=e=>this.foundation.handleInputMouseLeave(e),this.handleInputMouseMove=e=>this.foundation.handleInputMouseMove(e),this.handleUpClick=e=>this.foundation.handleUpClick(e),this.handleDownClick=e=>this.foundation.handleDownClick(e),this.handleMouseUp=e=>this.foundation.handleMouseUp(e),this.handleMouseLeave=e=>this.foundation.handleMouseLeave(e),this.renderButtons=()=>{let{prefixCls:e,disabled:t,innerButtons:n,max:r,min:o}=this.props,{hovering:s,focusing:a,number:c}=this.state,u=t||c===r,d=t||c===o,f=h()(`${e}-number-suffix-btns`,{[`${e}-number-suffix-btns-inner`]:n,[`${e}-number-suffix-btns-inner-hover`]:n&&s&&!a}),p=h()(`${e}-number-button`,`${e}-number-button-up`,{[`${e}-number-button-up-disabled`]:t,[`${e}-number-button-up-not-allowed`]:u}),m=h()(`${e}-number-button`,`${e}-number-button-down`,{[`${e}-number-button-down-disabled`]:t,[`${e}-number-button-down-not-allowed`]:d});return l.createElement("div",{className:f},l.createElement("span",{className:p,onMouseDown:u?i():this.handleUpClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},l.createElement(w.Z,{size:"extra-small"})),l.createElement("span",{className:m,onMouseDown:d?i():this.handleDownClick,onMouseUp:this.handleMouseUp,onMouseLeave:this.handleMouseLeave},l.createElement(C.Z,{size:"extra-small"})))},this.renderSuffix=()=>{let{innerButtons:e,suffix:t}=this.props,{hovering:n,focusing:r}=this.state;return e&&(n||r)?this.renderButtons():t},this.state={value:"",number:null,focusing:!!e.autofocus,hovering:!1},this.inputNode=null,this.foundation=new b.Z(this.adapter),this.clickUpOrDown=!1}}x.propTypes={"aria-label":d().string,"aria-labelledby":d().string,"aria-invalid":d().bool,"aria-errormessage":d().string,"aria-describedby":d().string,"aria-required":d().bool,autofocus:d().bool,clearIcon:d().node,className:d().string,defaultValue:d().oneOfType([d().number,d().string]),disabled:d().bool,formatter:d().func,forwardedRef:d().any,hideButtons:d().bool,innerButtons:d().bool,insetLabel:d().node,insetLabelId:d().string,keepFocus:d().bool,max:d().number,min:d().number,parser:d().func,precision:d().number,prefixCls:d().string,pressInterval:d().number,pressTimeout:d().number,preventScroll:d().bool,shiftStep:d().number,showCurrencySymbol:d().bool,step:d().number,style:d().object,suffix:d().any,value:d().oneOfType([d().number,d().string]),onBlur:d().func,onChange:d().func,onDownClick:d().func,onKeyDown:d().func,onNumberChange:d().func,onUpClick:d().func},x.defaultProps={forwardedRef:i(),innerButtons:!1,keepFocus:!1,max:1/0,min:-1/0,prefixCls:_.UX.PREFIX,pressInterval:_.KT.DEFAULT_PRESS_TIMEOUT,pressTimeout:_.KT.DEFAULT_PRESS_TIMEOUT,shiftStep:_.KT.DEFAULT_SHIFT_STEP,showCurrencySymbol:!0,size:_.j2.DEFAULT_SIZE,step:_.KT.DEFAULT_STEP,onBlur:i(),onChange:i(),onDownClick:i(),onFocus:i(),onKeyDown:i(),onNumberChange:i(),onUpClick:i()},t.Z=(0,m.zA)(l.forwardRef(function(e,t){return l.createElement(S.Z,{componentName:"InputNumber"},(n,r,i,o)=>l.createElement(x,Object.assign({localeCode:r,defaultCurrency:o},e,{forwardedRef:t})))}),x)},30750:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}}),n(932651);var r=n(795233),i=n.n(r),o=n(101199),s=n(622689),a=n.n(s),c=n(469935),l=n.n(c),u=n(617369),d=n(678446),f=n(278766),h=n(104200),p=n(779778),m=n(37827),g=n(209873);class v extends o.PureComponent{render(){let{prefixCls:e,onClick:t,sortOrder:n,style:r,title:i,sortIcon:s,showTooltip:a}=this.props,c="default",v=l()(`${e}-column-sorter-up`,{on:n===f.j2.SORT_DIRECTIONS["0"]}),b=l()(`${e}-column-sorter-down`,{on:n===f.j2.SORT_DIRECTIONS["1"]}),y={"aria-label":`Current sort order is ${n?`${n}ing`:"none"}`,"aria-roledescription":"Sort data with this column"};return o.createElement("div",Object.assign({role:"button"},y,{tabIndex:-1,className:`${e}-column-sorter-wrapper`,onClick:t,onKeyPress:e=>(0,p.Z)(e)&&t(e)}),i,(()=>{if("function"==typeof s)return s({sortOrder:n});{let t=o.createElement("div",{style:r,className:`${e}-column-sorter`},o.createElement("span",{className:`${v}`},o.createElement(u.Z,{size:c})),o.createElement("span",{className:`${b}`},o.createElement(d.Z,{size:c})));if(a){let e=(0,m.mC)(n);return o.createElement(g.Z,{componentName:"Table"},(n,r)=>o.createElement(h.Z,{content:n[e]},t))}return t}})())}}v.propTypes={className:a().string,style:a().object,onClick:a().func,prefixCls:a().string,sortOrder:a().oneOfType([a().string,a().bool]),sortIcon:a().func,showTooltip:a().bool},v.defaultProps={prefixCls:f.UX.PREFIX,onClick:i(),sortOrder:!1,showTooltip:!1}},997588:function(e,t,n){"use strict";n.d(t,{J_:function(){return o},Kn:function(){return i}}),n(414931);let r=Object.prototype.toString;function i(e){return null!==e&&"object"==typeof e}function o(e){return"[object Date]"===r.call(e)}},805250:function(e,t,n){"use strict";n.d(t,{gp:function(){return p},yZ:function(){return h}});var r=n(480333);n(679308),n(490629);var i=n(216308),o=n(274402),s=n(487359),a=n(549816),c=n(453412),l=n(403278),u=n(693100),d=n(487792),f={CONNECTING:"connecting",CONNECTED:"connected",DISCONNECTED:"disconnected"};let h="invoke destroy()";class p extends i.Z{async connect(e,t){var n,r;p.checkSupported();let i=Date.now();this._logger.log("connect",e),this._setState(f.CONNECTING),this._loadRtmResult=(0,u.$p)(e),this.url=(null===(n=this._loadRtmResult)||void 0===n?void 0:n.url)||e,this._isPreload=!!this._loadRtmResult,this._loadRtmResult?d.K.mark(e,"playStart"):this._loadRtmResult=(0,u.Qu)(e,t,{isPreload:!1});let o=await this._loadRtmResult.preloadPromise.catch(e=>{if(this._destroyed){this._logger.log("preloadPromise rejected after destroy, ignored",null==e?void 0:e.message);return}throw e});if(!o||this._destroyed){this._logger.log("stop... peerconnection is destroyed.");return}this.url=o.url,this.emit("responseHeaders",{elapsed:Date.now()-i,headers:(0,l.u8)(null===(r=o.response)||void 0===r?void 0:r.headers)});let s=o.peer;this._peer=s,d.K.bindPeerConnection(e,s),this._audioTransceicer=o.audioTransceicer,this._videoTransceicer=o.videoTransceicer,this._videoPayloadMap=o.videoPayloadMap,this._audioPayloadMap=o.audioPayloadMap,this._initAudioEncodedTransform(this._audioTransceicer),this._videoTransceicer&&this._initVideoEncodedTransform(this._videoTransceicer);let c=o.sdp,h=o.hasNativeAAC;return this.emit("avCodecInfo",{video:this._videoPayloadMap,audio:this._audioPayloadMap,fastSyncNegotiated:o.fastSyncNegotiated}),new Promise(async(n,r)=>{if(!c)throw new a.Z(a.t.OTHER,"answer sdp is empty");this._connectReject=r,this._connectTimer=setTimeout(()=>{var e;null===(e=this._connectReject)||void 0===e||e.call(this,new a.Z(a.t.NETWORK_TIMEOUT,"peerconnection timeout")),delete this._connectReject,delete this._connectTimer},t.loadTimeout||5e3);let l=()=>{this._logger.log("ice connection state change",s.iceConnectionState)},u=()=>{if("failed"===s.iceConnectionState||"closed"===s.iceConnectionState||"failed"===s.connectionState){var t;null===(t=this._connectReject)||void 0===t||t.call(this,new a.Z(a.t.RTM_ICE_FAILED,`pc.connectionstatechange -> ${s.connectionState}, ice -> ${s.iceConnectionState}`)),delete this._connectReject,void 0!==this._connectTimer&&(clearTimeout(this._connectTimer),delete this._connectTimer),this._setState(f.DISCONNECTED)}else if("connected"===s.connectionState){this._setState(f.CONNECTED),n();let t=Date.now()-i;this.emit("ttfb",t),this._logger.log("[RTM Metrics] PeerConnection已连接, TTFB:",t),d.K.mark(e,"dtlsConnected");let r=d.K.buildReport(e);r&&this.emit("rtm_timing",{is_preload:this._isPreload?1:0,report_start_time:r.startAt,play_start_time:d.K.getMarkTime(e,"playStart"),dtls_connected_time:d.K.getMarkTime(e,"dtlsConnected"),create_offer:r.preloadPhases.createOffer,set_local_description:r.preloadPhases.setLocalDescription,http_signaling:r.playPhases.httpSignaling,preload_play_overlap:r.playPhases.preloadPlayOverlap,http_signaling_raw:r.preloadPhases.httpSignaling,http_signaling_total:r.preloadPhases.httpSignalingTotal,http_request_count:r.preloadPhases.httpRequestCount,wait_preload:r.playPhases.waitPreload,set_remote_description:r.playPhases.setRemote,wait_ice_checking:r.playPhases.waitIceChecking,play_to_dtls:r.playPhases.playToDtls,timing_sum_before_first_frame:r.playPhases.additiveKnownPhases,ice_negotiation:r.playPhases.iceNegotiation,dtls_handshake:r.playPhases.dtlsHandshake,has_native_aac:h?1:0,fast_sync:o.fastSyncNegotiated?1:0}),void 0!==this._connectTimer&&(clearTimeout(this._connectTimer),delete this._connectTimer),this._startGetAVBitrate()}};s.addEventListener("iceconnectionstatechange",l),s.addEventListener("connectionstatechange",u),this._clearPeerListeners=()=>{s.removeEventListener("iceconnectionstatechange",l),s.removeEventListener("connectionstatechange",u),s.oniceconnectionstatechange=null,s.onconnectionstatechange=null},d.K.mark(e,"setRemoteStart"),await s.setRemoteDescription({type:"answer",sdp:c}).catch(e=>{var t;null===(t=this._connectReject)||void 0===t||t.call(this,new a.Z(a.t.RTM_SET_DESCRIPTION_ERROR,`set remote description error ${e.message}`)),delete this._connectReject,void 0!==this._connectTimer&&(clearTimeout(this._connectTimer),delete this._connectTimer)}),d.K.mark(e,"setRemoteEnd")})}disconnect(){var e,t,n,r,i;this._logger.log("disconnect"),this._destroyed=!0,delete this.url,super.offAll(),this._stopGetAVBitrate(),clearTimeout(this._reportTransportTimer),delete this._reportTransportTimer,void 0!==this._connectTimer&&(clearTimeout(this._connectTimer),delete this._connectTimer),null===(e=this._clearPeerListeners)||void 0===e||e.call(this),delete this._clearPeerListeners,null===(t=this._peer)||void 0===t||t.close(),delete this._peer,null===(n=this._loadRtmResult)||void 0===n||n.cancel(),(null===(r=this._loadRtmResult)||void 0===r?void 0:r.url)&&d.K.endSession(this._loadRtmResult.url,this._loadRtmResult.timingInstanceId),delete this._loadRtmResult,delete this._audioTransceicer,delete this._videoTransceicer,this._videoPayloadMap={},this._audioPayloadMap={},null===(i=this._connectReject)||void 0===i||i.call(this,new a.Z(a.t.OTHER,h)),delete this._connectReject}getVideoCodec(e){return this._videoPayloadMap[e]}getAudioCodec(e){return this._audioPayloadMap[e]}_setState(e){this._state!==e&&(this._state=e,this.emit("stateChange",e),this._logger.log("RTM PeerStateChange ==>",e))}async _startGetAVBitrate(){var e,t,n,r;let[i,o]=await Promise.all([(0,c.At)(null===(t=this._videoTransceicer)||void 0===t?void 0:null===(e=t.receiver)||void 0===e?void 0:e.getStats()),(0,c.cX)(null===(r=this._audioTransceicer)||void 0===r?void 0:null===(n=r.receiver)||void 0===n?void 0:n.getStats())]);if(this._preAudioStats&&this._preVideoStats){let e=(0,c.IE)(this._preVideoStats,i),t=(0,c.xt)(this._preAudioStats,o);this.emit("stats",{audio:t,video:e})}!this._destroyed&&(this._preVideoStats=i,this._preAudioStats=o,this._reportAVBitrateTimer=window.setTimeout(()=>{this._startGetAVBitrate()},2e3))}_stopGetAVBitrate(){clearTimeout(this._reportAVBitrateTimer),delete this._reportAVBitrateTimer}async _reportTransportStats(){var e,t,n;let r=await (null===(e=this._peer)||void 0===e?void 0:e.getStats()),i={};if(null==r||r.forEach(e=>{"transport"===e.type?(i.dtls_state=e.dtlsState,i.bytes_received=e.bytesReceived,i.bytes_sent=e.bytesSent,i.ice_state=e.iceState,i.packets_received=e.packetsReceived,i.packets_sent=e.packetsSent,i.selected_candidate_pair_changes=e.selectedCandidatePairChanges):"local-candidate"===e.type||"remote-candidate"===e.type?i.candidates_info=[...i.candidates_info||[],{id:e.id,is_remote:e.isRemote,port:e.port,protocol:e.protocol,candidate_type:e.candidateType,priority:e.priority,network_type:e.networkType,candidate_ip:e.ip}]:"candidate-pair"===e.type&&(i.candidatePairsInfo={},i.candidatePairsInfo.candidate_state=e.state,i.candidatePairsInfo.writable_state=e.writable,i.candidatePairsInfo.sent_ping_requests_total=e.requestsSent,i.candidatePairsInfo.recv_ping_requests=e.requestsReceived,i.candidatePairsInfo.sent_ping_responses=e.responsesSent,i.candidatePairsInfo.recv_ping_responses=e.responsesReceived,i.candidatePairsInfo.current_rtt=e.currentRoundTripTime,i.candidatePairsInfo.total_rtt=e.totalRoundTripTime,["localCandidateId","remoteCandidateId","bytesSent","bytesReceived","availableOutgoingBitrate","availableIncomingBitrate","bytesDiscardedOnSend","consentRequestsSent","packetsDiscardedOnSend","lastPacketReceivedTimestamp","lastPacketSentTimestamp"].forEach(t=>{void 0!==e[t]&&(i.candidatePairsInfo[(0,o.EB)(t)]=e[t])}))}),Object.keys(i).length,!this._destroyed){let e=(null===(t=this._peer)||void 0===t?void 0:t.iceConnectionState)==="connected"&&(null===(n=this._peer)||void 0===n?void 0:n.connectionState)==="connected";this._reportTransportTimer=setTimeout(()=>{this._reportTransportStats()},e?5e3:1e3)}}static isSupported(){try{return p.checkSupported(),!0}catch(e){return!1}}static checkSupported(){if(!window.RTCPeerConnection)throw new a.Z(a.t.RTM_NOT_SUPPORTED,"RTCPeerConnection is not defined");if("function"!=typeof window.RTCPeerConnection.prototype.addTransceiver)throw new a.Z(a.t.RTM_NOT_SUPPORTED,"addTransceiver is not a function");if(!(0,o.GH)())throw new a.Z(a.t.RTM_NOT_SUPPORTED,"EncodedTransform is not supported")}_initVideoEncodedTransform(e){if(!e.receiver)throw new a.Z(a.t.RTM_NOT_SUPPORTED,"no receiver found when trying to bind encodedTransform");let{readable:t,writable:n}=e.receiver.createEncodedStreams();this.emit("readable_writable",{type:"video",readable:t,writable:n})}_initAudioEncodedTransform(e){if(!e.receiver)throw new a.Z(a.t.RTM_NOT_SUPPORTED,"no receiver found when trying to bind encodedTransform");let{readable:t,writable:n}=e.receiver.createEncodedStreams();this.emit("readable_writable",{type:"audio",readable:t,writable:n})}constructor(...e){super(...e),(0,r._)(this,"_logger",new s.ZP("RTMPeerConnection")),(0,r._)(this,"_peer",void 0),(0,r._)(this,"_audioTransceicer",void 0),(0,r._)(this,"_videoTransceicer",void 0),(0,r._)(this,"_videoPayloadMap",{}),(0,r._)(this,"_audioPayloadMap",{}),(0,r._)(this,"_state",void 0),(0,r._)(this,"_destroyed",!1),(0,r._)(this,"_reportTransportTimer",void 0),(0,r._)(this,"_connectReject",void 0),(0,r._)(this,"_connectTimer",void 0),(0,r._)(this,"_clearPeerListeners",void 0),(0,r._)(this,"_loadRtmResult",void 0),(0,r._)(this,"_isPreload",!1),(0,r._)(this,"url",void 0),(0,r._)(this,"_reportAVBitrateTimer",void 0),(0,r._)(this,"_preVideoStats",void 0),(0,r._)(this,"_preAudioStats",void 0)}}},277030:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}}),n(706056),n(228983),n(759943),n(490629),n(932651);var r=n(198412),i=n.n(r),o=n(5784),s=n.n(o),a=n(812958),c=n.n(a),l=n(92184),u=n(856445),d=n(316922),f=n(372038),h=n(526540),p=n(646073),m=n(109242),g=n(136064),v=n(368923),b=n(64360),y=n(214684);let _="Enter";class w extends u.Z{init(){}destroy(){}handleClick(e){this._adapter.notifyClick(e)}handleChange(e,t){this._adapter.notifyChange(e,t)}handleInputComplete(e){e.key===_&&this._adapter.notifyEnter(e.target.value)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){this.stopPropagation(e),this._adapter.notifyRangeInputClear(e)}handleRangeInputEnterPress(e,t){e.key===_&&this._adapter.notifyEnter(t)}handleRangeInputEndKeyPress(e){"Tab"===e.key&&this._adapter.notifyTabPress(e)}handleRangeInputFocus(e,t){this._adapter.notifyRangeInputFocus(e,t)}formatShowText(e,t){let{type:n,dateFnsLocale:r,format:i,rangeSeparator:o}=this._adapter.getProps(),s=t||i||(0,f.E)(n),a="";switch(n){case"date":case"dateTime":case"month":a=(0,d.j)(e,s,void 0,r);break;case"dateRange":case"dateTimeRange":case"monthRange":a=(0,d.j)(e,s,{groupSize:2,groupInnerSeparator:o},r)}return a}handleInsetInputChange(e){let{value:t,valuePath:n,insetInputValue:r}=e,{format:i,type:o,rangeSeparator:a}=this._adapter.getProps(),c=(0,h.Z)({type:o,format:i}),l=s()((0,y.ZP)(r),n,t),u=this.concatInsetInputValue({insetInputValue:l}),d=(0,p.Z)({inputValue:u,type:o,rangeSeparator:a}),f=this._autoFillTimeToInsetInputValue({insetInputValue:d,valuePath:n,format:c}),m=this.concatInsetInputValue({insetInputValue:f});this._adapter.notifyInsetInputChange({insetInputValue:f,format:c,insetInputStr:m})}_autoFillTimeToInsetInputValue(e){let{valuePath:t,insetInputValue:n,format:r}=e,{type:o,defaultPickerValue:s,dateFnsLocale:a}=this._adapter.getProps(),c=(0,y.ZP)(n),{nowDate:u,nextDate:d}=(0,g.Z)({defaultPickerValue:s,format:r,dateFnsLocale:a});if(o.includes("Time")){let e="",n=i()(r.split(" "),"0",m.j2.FORMAT_FULL_DATE),o=i()(r.split(" "),"1",m.j2.FORMAT_TIME_PICKER);switch(t){case"monthLeft.dateInput":let s=c.monthLeft.dateInput;if(!c.monthLeft.timeInput&&s.length===n.length){let t=(0,v.h)(c.monthLeft.dateInput,n);(0,b.Z)(t)&&(e=(0,l.Z)(u,o),c.monthLeft.timeInput=e)}break;case"monthRight.dateInput":let a=c.monthRight.dateInput;if(!c.monthRight.timeInput&&a.length===n.length){let t=(0,v.h)(a,n);(0,b.Z)(t)&&(e=(0,l.Z)(d,o),c.monthRight.timeInput=e)}}}return c}getInsetInputPlaceholder(){let e,t;let{type:n,format:r,rangeSeparator:i}=this._adapter.getProps(),o=(0,h.Z)({type:n,format:r});switch(n){case"date":case"month":case"dateRange":e=o;break;case"dateTime":case"dateTimeRange":[e,t]=o.split(" ");break;case"monthRange":e=o+i+o}return{datePlaceholder:e,timePlaceholder:t}}getInsetInputValue(e){let{value:t,insetInputValue:n}=e,{type:r,rangeSeparator:i,format:o}=this._adapter.getProps(),s="";if(c()(n))s=this.concatInsetInputValue({insetInputValue:n});else{let e=(0,h.Z)({format:o,type:r});s=this.formatShowText(t,e)}return(0,p.Z)({inputValue:s,type:r,rangeSeparator:i})}concatInsetDateAndTime(e){let{date:t,time:n}=e;return`${t} ${n}`}concatInsetDateRange(e){let{rangeStart:t,rangeEnd:n}=e,{rangeSeparator:r}=this._adapter.getProps();return`${t}${r}${n}`}concatInsetInputValue(e){let{insetInputValue:t}=e,{type:n}=this._adapter.getProps(),r="";switch(n){case"date":case"month":case"monthRange":r=t.monthLeft.dateInput;break;case"dateRange":r=this.concatInsetDateRange({rangeStart:t.monthLeft.dateInput,rangeEnd:t.monthRight.dateInput});break;case"dateTime":r=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput});break;case"dateTimeRange":let i=this.concatInsetDateAndTime({date:t.monthLeft.dateInput,time:t.monthLeft.timeInput}),o=this.concatInsetDateAndTime({date:t.monthRight.dateInput,time:t.monthRight.timeInput});r=this.concatInsetDateRange({rangeStart:i,rangeEnd:o})}return r}constructor(e){super(Object.assign({},e))}}},183652:function(e,t,n){var r,i,o=n(777296);n(313036),n(679308),n(705200),n(490917),n(416175),n(490629),n(414931),n(76375),n(374954),n(559352),n(683656),n(759943),n(520995),n(362051),n(240148),n(374285),n(566071),n(14275),n(112459),n(228983),n(992871),r=window,i=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./index.js")}({"./index.js":function(e,t,n){e.exports=n("./lib/axios.js")},"./lib/adapters/xhr.js":function(e,t,n){"use strict";var r=n("./lib/utils.js"),i=n("./lib/core/settle.js"),o=n("./lib/helpers/cookies.js"),s=n("./lib/helpers/buildURL.js"),a=n("./lib/core/buildFullPath.js"),c=n("./lib/helpers/parseHeaders.js"),l=n("./lib/helpers/isURLSameOrigin.js"),u=n("./lib/core/createError.js"),d=n("./lib/defaults.js"),f=n("./lib/cancel/Cancel.js");e.exports=function(e){return new Promise(function(t,n){var h,p=e.data,m=e.headers,g=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(p)&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",_=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+_)}var w=a(e.baseURL,e.url);function C(){if(!!b){var r="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null;i(function(e){t(e),v()},function(e){n(e),v()},{data:g&&"text"!==g&&"json"!==g?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b}),b=null}}if(b.open(e.method.toUpperCase(),s(w,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=C:b.onreadystatechange=function(){if(!!b&&4===b.readyState&&(0!==b.status||!!(b.responseURL&&0===b.responseURL.indexOf("file:"))))setTimeout(C)},b.onabort=function(){if(!!b)n(u("Request aborted",e,"ECONNABORTED",b)),b=null},b.onerror=function(){n(u("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||l(w))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in b&&r.forEach(m,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)}),!r.isUndefined(e.withCredentials)&&(b.withCredentials=!!e.withCredentials),g&&"json"!==g&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){if(!!b)n(!e||e&&e.type?new f("canceled"):e),b.abort(),b=null},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),!p&&(p=null),b.send(p)})}},"./lib/axios.js":function(e,t,n){"use strict";var r=n("./lib/utils.js"),i=n("./lib/helpers/bind.js"),o=n("./lib/core/Axios.js"),s=n("./lib/core/mergeConfig.js"),a=n("./lib/defaults.js"),c=function e(t){var n=new o(t),a=i(o.prototype.request,n);return r.extend(a,o.prototype,n),r.extend(a,n),a.create=function(n){return e(s(t,n))},a}(a);c.Axios=o,c.Cancel=n("./lib/cancel/Cancel.js"),c.CancelToken=n("./lib/cancel/CancelToken.js"),c.isCancel=n("./lib/cancel/isCancel.js"),c.VERSION=n("./lib/env/data.js").version,c.all=function(e){return Promise.all(e)},c.spread=n("./lib/helpers/spread.js"),c.isAxiosError=n("./lib/helpers/isAxiosError.js"),e.exports=c,e.exports.default=c},"./lib/cancel/Cancel.js":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"./lib/cancel/CancelToken.js":function(e,t,n){"use strict";var r=n("./lib/cancel/Cancel.js");function i(e){if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});var t,n=this;this.promise.then(function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],function(e){u.headers[e]={}}),i.forEach(["post","put","patch"],function(e){u.headers[e]=i.merge(c)}),e.exports=u},"./lib/env/data.js":function(e,t){e.exports={version:"0.22.0"}},"./lib/helpers/bind.js":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r=0))"set-cookie"===t?s[t]=(s[t]?s[t]:[]).concat([n]):s[t]=s[t]?s[t]+", "+n:n}}),s):s}},"./lib/helpers/spread.js":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"./lib/helpers/validator.js":function(e,t,n){"use strict";var r=n("./lib/env/data.js").version,i={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={};i.transitional=function(e,t,n){return function(i,s,a){if(!1===e)throw Error("[Axios v"+r+"] Transitional option '"+s+"'"+(" has been removed"+(t?" in "+t:""))+(n?". "+n:""));return t&&!o[s]&&(o[s]=!0),!e||e(i,s,a)}};e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],c=void 0===a||s(a,o,e);if(!0!==c)throw TypeError("option "+o+" must be "+c);continue}if(!0!==n)throw Error("Unknown option "+o)}},validators:i}},"./lib/utils.js":function(e,t,n){"use strict";var r=n("./lib/helpers/bind.js"),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function s(e){return void 0===e}function a(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n{let n=await (0,h.encodeReply)(t),r=encodeURIComponent(JSON.stringify({action:e})),i=`${m.eu}?state=${r}`,[o]=await (0,h.createFromFetch)(fetch(i,{method:"POST",body:n}));return o};let T=function(){i&&!_&&(self.initialRscFlightDataEnd&&i.close(),_=!0,r=void 0),y=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",T,!1):setTimeout(T);try{o=new ReadableStream({start(e){!function(e){if(r&&(r.forEach(t=>{e.enqueue("string"==typeof t?b.encode(t):t)}),y&&!_)){var t;if(null===(t=e).desiredSize||t.desiredSize<0)e.error(Error("The connection to the page was unexpectedly closed, possibly due to the stop button being clicked, loss of Wi-Fi, or an unstable internet connection."));else e.close();_=!0,r=void 0}i=e}(e)}})}catch(e){}let x=(0,d.memo)(e=>{let{cacheKey:t}=e;(0,d.useEffect)(()=>{S.delete(t)});let n=function(e){let t=S.get(e);if(t)return t;if(o&&!window.__RENDER_CSR__)t=(0,h.createFromReadableStream)(o),o=null;else if(window.__pace_stream_register){let e;let n=new TextEncoder;o=new ReadableStream({start(t){e=t}}),t=(0,h.createFromFetch)(Promise.resolve({body:o})),window.__pace_stream_register(t=>{let{chunk:r,isEnd:i}=t;if(i){e.close();return}e.enqueue(n.encode(r))})}else{let n=`${m.Yb}?state=${encodeURIComponent(e)}`;t=(0,h.createFromFetch)(fetch(n))}return S.set(e,t),t}(t);return(0,d.use)(n)}),k=e=>(0,c.jsx)(c.Fragment,{children:e.children}),R=d.Fragment;(0,p.s)({RootComponent:(0,c.jsx)(function(e){let[t,n]=(0,d.useState)({pathname:window.location.pathname,search:window.location.search,type:"initial",matchPatterns:(0,g.FR)(location.pathname).matchPatterns,intersection:0}),r=(0,d.useRef)(t);r.current=t;let i=(0,d.useRef)(),{type:o,timestamp:f}=t,h=(0,d.useMemo)(()=>{if("initial"===o){let e=(0,v.g)(r.current);return i.current=e,e}return i.current},[o,f]);return(0,c.jsx)(l.ServerPropsProvider,{serverProps:t,setServerProps:n,children:(0,c.jsx)(k,{setServerProps:n,children:(0,c.jsx)(u.D,{children:(0,c.jsx)(x,(0,a._)((0,s._)({},e),{cacheKey:h}))})})})},{}),container:document.getElementById("root"),renderer:(e,t,r)=>{var i;i="/*#__PACE_BEGIN_RENDER__*/",self[i]=i,(0,d.startTransition)(()=>{if(window.__RENDER_CSR__)(0,f.createRoot)(t).render((0,c.jsx)(d.Suspense,{fallback:null,children:e}));else{let i=()=>(0,f.hydrateRoot)(t,(0,c.jsx)(R,{children:(0,c.jsx)(d.Suspense,{fallback:null,children:e})}),r);self.__pace_start_hydration?self.__pace_start_hydration.p.then(()=>{(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Promise.all(e.map(e=>n.e(e))).catch(e=>{})})(self.bootstrapChunkIds).then(()=>{i()})}):i()}})}})}}]);