2 lines
115 KiB
Plaintext
2 lines
115 KiB
Plaintext
/*! For license information please see 60133.065742ff.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<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function n(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var r=/[^a-zA-Z0-9\\_:.-]/gim,i=/</g,o=/>/g,a=/&#([a-zA-Z0-9]*);?/gim,s=/"/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,f=/u\s*r\s*l\s*\(.*/gi,h=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,d=/"/g,p=function(e){return e.replace(i,"<").replace(o,">")},g={indexOf:function(e,t){var n,r;for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1},forEach:function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},some:function(e,t,n){var r,i;for(r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return!0;return!1},trim:function(e){return e.replace(/(^\s*)|(\s*$)/g,"")},includes:function(e,t){if("string"==typeof e)return -1!==e.indexOf(t);for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1},uniq:function(e){for(var t={},n=[],r=0;r<e.length;r++)t[e[r]]||(n.push(e[r]),t[e[r]]=!0);return n},from:function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},keys:function(e){var t=[];for(var n in e)t.push(n);return t}};function m(e){return null==e}function y(e){var t;return'"'===(t=e)[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]?e.substr(1,e.length-2):e}function v(e){var t,n,r,i,o,a,s,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",u=0;for(e=function(e){e=e.replace(/rn/g,"n");for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r>127&&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<e.length;)i=(t=e.charCodeAt(u++))>>2,o=(3&t)<<4|(n=e.charCodeAt(u++))>>4,a=(15&n)<<2|(r=e.charCodeAt(u++))>>6,s=63&r,isNaN(n)?a=s=64:isNaN(r)&&(s=64),l=l+c.charAt(i)+c.charAt(o)+c.charAt(a)+c.charAt(s);return l}function b(e){var t,n,r,i,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",l=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");l<e.length;)t=s.indexOf(e.charAt(l++))<<2|(i=s.indexOf(e.charAt(l++)))>>4,n=(15&i)<<4|(o=s.indexOf(e.charAt(l++)))>>2,r=(3&o)<<6|(a=s.indexOf(e.charAt(l++))),c+=String.fromCharCode(t),64!==o&&(c+=String.fromCharCode(n)),64!==a&&(c+=String.fromCharCode(r));return function(e){for(var t="",n=0,r=0,i=0,o=0;n<e.length;)(r=e.charCodeAt(n))<128?(t+=String.fromCharCode(r),n++):r>191&&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 w(e,t,n){var r="",i=0,o=!1,a=!1,s=0,c=e.length,l="",u="";e:for(s=0;s<c;s++){var f=e.charAt(s);if(!1===o){if("<"===f){o=s;continue}}else if(!1===a){if("<"===f){r+=n(e.slice(i,s)),o=s,i=s;continue}if(">"===f||s===c-1){r+=n(e.slice(i,o)),l=function(e){var t,n=g.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=g.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}(u=e.slice(o,s+1)),r+=t(o,r.length,l,u,"</"===u.slice(0,2)),i=s+1,o=!1;continue}if('"'===f||"'"===f)for(var h=1,d=e.charAt(s-h);""===d.trim()||"="===d;){if("="===d){a=f;continue e}d=e.charAt(s-++h)}}else if(f===a){a=!1;continue}}return i<c&&(r+=n(e.substr(i))),r}function _(e,t){var n=0,i=0,o=[],a=!1,s=e.length;function c(e,n){if(!((e=(e=g.trim(e)).replace(r,"").toLowerCase()).length<1)){var i=t(e,n||"");i&&o.push(i)}}for(var l=0;l<s;l++){var u=e.charAt(l),f=void 0;if(!1!==a||"="!==u){if(!1===a||l!==i){if(/\s|\n|\t/.test(u)){if(e=e.replace(/\s|\n|\t/g," "),!1===a){if(-1===(f=function(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,l))){c(g.trim(e.slice(n,l))),a=!1,n=l+1;continue}l=f-1;continue}if(-1===(f=function(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,l-1))){c(a,y(g.trim(e.slice(n,l)))),a=!1,n=l+1;continue}}}else{if(-1===(f=e.indexOf(u,l+1)))break;c(a,g.trim(e.slice(i+1,f))),a=!1,n=(l=f)+1}}else a=e.slice(n,l),n=l+1,i='"'===e.charAt(n)||"'"===e.charAt(n)?n:function(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}return -1}(e,l+1)}return n<e.length&&(!1===a?c(e.slice(n)):c(a,y(g.trim(e.slice(n))))),g.trim(o.join(" "))}function S(e,t,n){if(n=function(e){return e=function(e){for(var t="",n=0,r=e.length;n<r;n++)t+=32>e.charCodeAt(n)?" ":e.charAt(n);return g.trim(t)}(e=(e=(e=e.replace(s,'"')).replace(a,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=g.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&&(h.lastIndex=0,h.test(n)||(f.lastIndex=0,f.test(n)&&(u.lastIndex=0,u.test(n)))))return"";return n=function(e){return e=p(e=e.replace(d,"""))}(n)}var T=function(e){return"string"==typeof e?e.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},E=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=S,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,a,s=this.options,c=s.whiteList,l=s.onTag,u=s.onIgnoreTag,f=s.onTagAttr,h=s.onIgnoreTagAttr,d=s.safeAttrValue,p=s.escapeHtml;s.stripBlankChar&&(e=(t=(t=e.split("")).filter(function(e){var t=e.charCodeAt(0);return!(127===t||t<=31&&10!==t&&13!==t)})).join("")),s.allowCommentTag||(e=function(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("\x3c!--",n);if(-1===r){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf("--\x3e",r);if(-1===i)break;n=i+3}return t}(e));var m=!1;s.stripIgnoreTagBody&&(n=s.stripIgnoreTagBody,"function"!=typeof(r=u)&&(r=function(){}),i=!Array.isArray(n),o=[],a=!1,u=(m={onIgnoreTag:function(e,t,s){var c;if(c=e,i||-1!==g.indexOf(n,c)){if(s.isClosing){var l="[/removed]",u=s.position+l.length;return o.push([!1!==a?a:s.position,u]),a=!1,l}return a||(a=s.position),"[removed]"}return r(e,t,s)},remove:function(e){var t="",n=0;return g.forEach(o,function(r){t+=e.slice(n,r[0]),n=r[1]}),t+=e.slice(n)}}).onIgnoreTag);var y=w(e,function(e,t,n,r,i){var o={sourcePosition:e,position:t,isClosing:i,isWhite:Object.prototype.hasOwnProperty.call(c,n)},a=l(n,r,o);if(null!=a)return a;if(o.isWhite){if(o.isClosing)return"</".concat(n,">");var s=function(e){var t=g.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=g.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=g.trim(e.slice(0,-1))),{html:e,closing:n}}(r),m=c[n],y=_(s.html,function(e,t){var r=-1!==g.indexOf(m,e),i=f(n,e,t,r);return null==i?r?(t=d(n,e,t,null))?"".concat(e,'="').concat(t,'"'):e:null==(i=h(n,e,t,r))?void 0:i:i});return r="<".concat(n),y&&(r+=" ".concat(y)),s.closing&&(r+=" /"),r+=">"}return null==(a=u(n,r,o))?p(r):a},p);return m&&(y=m.remove(y)),y},e}(),A=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")(),O=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(!g.includes(r,"bid"))return r;if(e.config&&e.config.bid)return e.config.bid;if(A&&A._xssBid)return A._xssBid;if(A&&A.slardar&&"function"==typeof A.slardar.config){var i=(A.slardar.config()||{}).bid;if(i)return i}if(A&&A.Slardar&&"function"==typeof A.Slardar.config){var o=(A.Slardar.config()||{}).bid;if(o)return o}return(null===(n=null===(t=null==A?void 0:A.Slardar)||void 0===t?void 0:t._baseParams)||void 0===n?void 0:n.bid)||"argus"},this.getConfigRegion=function(){var t;return g.includes("cn","region")?e.config&&e.config.region?e.config.region:((null===(t=null==A?void 0:A.gfdatav1)||void 0===t?void 0:t.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var t={cn:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:b("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:b("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),A.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(A.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}()),C=function(e){for(var t=0,n=function(n){Array.isArray(e[n])?0===e[n].length?delete e[n]:(e[n]=g.from(g.uniq(e[n])),t+=e[n].length):0===g.keys(e[n]).length?delete e[n]:g.keys(e[n]).forEach(function(r){e[n][r]=g.from(g.uniq(e[n][r])),t+=e[n][r].length})},r=0,i=g.keys(e);r<i.length;r++)n(i[r]);return{count:t,ret:e}};function P(e,t){return O.setConfig(t),new E(t).process(e)}function k(e){var t,n=(t=/\s|\n|\t/.exec(e))?t.index:-1;if(-1===n)return{html:"",closing:"/"===e[e.length-2]};var r="/"===(e=e.slice(n+1,-1).trim())[e.length-1];return r&&(e=e.slice(0,-1).trim()),{html:e,closing:r}}var x=function(e){return -1===(e=(e=(e=(e=e.replace(/:/gi,":")).replace(/&tab;/gi,"")).replace(/&newline;/gi,"")).replace(/(\t|\n|\r)/g,"")).indexOf("&#")?e.trim().toLowerCase():e.trim().replace(/&#(?:(x)([0-9a-f]+)|([0-9]+));?/gi,function(e,t,n,r){return String.fromCharCode(t?parseInt(n,16):parseInt(r))}).replace(/(\t|\n|\r)/g,"").toLowerCase()};function I(e,t){if(void 0===e&&(e=""),"string"!=typeof e)return!0;if(e=x(e),g.includes(e,"base64")&&!function(e){if(""===e||""===e.trim())return!0;try{return!g.includes(e,"data:text/html;base64")}catch(e){return!0}}(e))return t&&t("data:text/html;base64"),!1;var n=["expression(","behavior:","view-source:"];if(g.some(n,function(t){return -1!==e.indexOf(t)}))return g.forEach(n,function(n){-1!==e.indexOf(n)&&t&&t(n)}),!1;var r=["data:application","data:javascript","data:text/html","data:texthtml"];if(g.some(r,function(t){return -1!==e.indexOf(t)}))return g.forEach(r,function(n){-1!==e.indexOf(n)&&t&&t(n)}),!1;if(e.indexOf("javascript:")>0)return t&&t("javascript:"),!1;if(/^javascript:/i.test(e)){var i=e.slice(11).replace(/\s/g,"").trim();return!!g.some(["void","void(0)","void0","false","undefined",";"],function(e){return e===i})||(t&&t("javascript:"),!1)}return!0}var N=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 j(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=[]),"string"!=typeof e)return!0;if(!I(e=x(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]},a=o.scheme,s=o.host;return r?!!r(e):!(!a||!s)&&(!g.includes(["http","https","file"],a)||("object"==typeof window&&window&&(t=n(n([],t,!0),[location.host],!1)),g.some(t,function(e){return!!(e instanceof RegExp&&e.test(s))||e===s})))}var Z={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:[]},R={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var e=C(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&&g.indexOf(["href","src"],t)>-1?R.domainWhiteList&&Array.isArray(R.domainWhiteList)&&R.domainWhiteList.length>0&&!j(r,n([],R.domainWhiteList,!0))?"":"".concat(t,'="').concat(N(r,function(e){var t;null===(t=R.collect)||void 0===t||t.filterProtocol.push(e)}),'"'):e&&(g.indexOf(["style","class","id"],t)>-1||t.indexOf("data-")>-1)?"".concat(t,'="').concat(r,'"'):(R.collect.whiteList[e]=R.collect.whiteList[e]||[],void R.collect.whiteList[e].push(t))},onIgnoreTag:function(e,t){if("style"===e)return t;w(t,function(e,t,n,r){_(k(r).html.replace("/",""),function(e){R.collect.whiteList[n]=R.collect.whiteList[n]||[],R.collect.whiteList[n].push(e)})},p)},whiteList:Z,mergeWhiteList:function(e){for(var t,n={},r=0,i=g.keys(Z);r<i.length;r++)n[t=i[r]]=g.from(Z[t]);for(var o=0,a=g.keys(e);o<a.length;o++)n[t=a[o]]=t in Z?Z[t].concat(e[t]):g.from(e[t]);return n},setWhiteList:function(e){for(var t=0,n=g.keys(e);t<n.length;t++){var r=n[t];this.whiteList[r]=r in Z?Z[r].concat(e[r]):g.from(e[r])}}};try{var B={},L="merge";g.includes(L,"override")&&(R.whiteList=B.whiteList),g.includes(L,"merge")&&R.setWhiteList(B.whiteList)}catch(e){}var D=function(e,t){for(var n={},r=0,i=g.keys(e);r<i.length;r++){var o=i[r];Array.isArray(e[o])?n[o]=g.from(e[o]):n[o]=D({},e[o])}for(var a=0,s=g.keys(t);a<s.length;a++)(o=s[a])in e?Array.isArray(e[o])?n[o]=e[o].concat(t[o]):n[o]=D(e[o],t[o]):Array.isArray(t[o])?n[o]=g.from(t[o]):n[o]=D({},t[o]);return n},M={blackList:{a:["folder"],meta:["content"],iframe:["srcdoc"],input:["pattern"],vmlframe:["xmlns"]},blackTags:["script","xml","embed","isindex","object","base","set","handler","animate","payload","import"],blackAttrs:["charset","ns","namespace","formaction","xlink:href","xmlns:xlink","handler","repeat","repeat-start","repeat-end"],blackAttrRegExps:[/^on/],filterList:{param:["value"],video:["poster"],form:["action"]},filterAttrs:["href","src","background","style","dynsrc","lowsrc","content"]};try{var F={};F.blackAttrRegExps&&(F.blackAttrRegExps=F.blackAttrRegExps.map(function(e){return new RegExp(e.toString().slice(1,e.toString().length-1))}));var H="merge";g.includes(H,"override")&&(M=F),g.includes(H,"merge")&&(M=D(M,F))}catch(e){}var U={mode:"black",whiteList:{},blackConfig:M,collect:null,initCollect:function(){U.collect={blackList:{},blackTags:[],blackAttrs:[],blackAttrRegExps:[],filterAttrs:[],filterList:{},filterProtocol:[]}},removeCollect:function(){var e=C(U.collect),t=e.count,n=e.ret;return U.collect=null,{collectKey:0===t?null:JSON.stringify(n),collectMode:"black"}},onIgnoreTag:function(e,t){var n;if(!g.includes(M.blackTags,e))return w(t,function(e,t,n,r,i){if(-1!==n.indexOf("/"))return p(r);if(i)return"</".concat(n,">");var o=k(r),a=_(o.html,function(e,t){var r,i=0;if(M.blackList[n]&&g.includes(M.blackList[n],e)&&(U.collect.blackList[n]=U.collect.blackList[n]||[],U.collect.blackList[n].push(e),i++),M.blackAttrRegExps.length&&M.blackAttrRegExps.some(function(t){return t.test(e)})&&g.forEach(M.blackAttrRegExps,function(t){t.test(e)&&(U.collect.blackAttrRegExps.push("".concat(t.toString(),"->").concat(e)),i++)}),M.blackAttrs.length&&g.includes(M.blackAttrs,e)&&(M.blackAttrs.push(e),i++),!i){if(M.filterList&&M.filterList[n]&&g.includes(M.filterList[n],e)){var o=N(t,function(e){var t;null===(t=U.collect)||void 0===t||t.filterProtocol.push(e)});return o!==t&&(U.collect.filterList[n]=U.collect.filterList[n]||[],U.collect.filterList[n].push(e)),t?"".concat(e,"='").concat(o,"'"):e}return M.filterAttrs&&g.includes(M.filterAttrs,e)?((o=N(t,function(e){var t;null===(t=U.collect)||void 0===t||t.filterProtocol.push(e)}))!==t&&(null===(r=U.collect)||void 0===r||r.filterAttrs.push(e)),t?"".concat(e,"='").concat(o,"'"):e):t?"".concat(e,"='").concat(t,"'"):e}});return r="<".concat(n),a&&(r+=" ".concat(a)),o.closing&&(r+=" /"),r+=">"},p);null===(n=U.collect)||void 0===n||n.blackTags.push(e)}},Y=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")},$=function(e){return function(n,r,i){if(!n||"string"!=typeof n)return n;var o=r;e===P&&(o=R).initCollect();var a=e(n,o);if(T(a)===T(n))return n;if(!i)return a;var s=i.logType,c=Y(i),l=o.removeCollect();return O.report(t(t({type:s,disposition:c},l),{sourceText:v(n),filterText:v(a)})),"enforce"===c?a:n}},G=$(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 E(t).process(e)}),W=$(P),V=function(e,t,n){var r=[],i=N(e,function(e){r.push(e)});if(i===e)return e;r=g.from(g.uniq(r));var o=t||n||{};if(!o)return i;var a=o.logType,s=Y(n);return O.report({type:a,disposition:s,collectKey:r.join("___"),collectData:JSON.stringify(r),collectMode:"black",sourceText:v(e),filterText:v(i)}),"enforce"===s?i:e},X=A._xssProject||{},K=A.xssNamespace||{},z="3.0.26",q={FilterXSS:E,version:z,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:G,_filterXSS:W,filterUrl:V,Config:R,BlackConfig:U,project:X,setProjectName:function(e){X[e]=this,A._xssProjectName=e}};K.douyin_web=q,A.xssNamespace=K,A.Math&&!A.Math.xssNamespace&&(A.Math.xssNamespace=K),X[z]=q,A.globalThis=A,A.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:q},A.xss=q,A.isSafeUrl=j,A.isSafeDomain=j,A.isSafeProtocol=I,A._xssProject=X,A._xssProjectName&&(X[A._xssProjectName]=q);var J=q.setProjectName.bind(q);e.BlackConfig=U,e.Config=R,e.FilterXSS=E,e._filterXSS=W,e.filterUrl=V,e.filterXSS=G,e.isSafeDomain=j,e.isSafeProtocol=I,e.isSafeUrl=j,e.project=X,e.setProjectName=J,e.setXssNamespace=function(e){var t=e.appId,n=e.bid,r=e.region;K[t]=q;R.bid=n,R.region=r,R.enabled=!0},e.xssNamespace=K,Object.defineProperty(e,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["60133"],{980736: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:"M11 3a1.25 1.25 0 0 0-2.42-.44L1.83 20.3A1.25 1.25 0 0 0 3 22h6.75c.69 0 1.25-.56 1.25-1.25V3ZM8.5 19.5H4.81L8.5 9.8v9.7Z",fill:"currentColor"}),r.createElement("path",{d:"M14.02 1.77C13.43 1.88 13 2.4 13 3v17.75c0 .69.56 1.25 1.25 1.25H21a1.25 1.25 0 0 0 1.17-1.7L15.42 2.57c-.22-.57-.8-.9-1.4-.79Z",fill:"currentColor"}))},"flip_horizontal");t.Z=o},769161: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",{d:"M10.75 1.9c.4-1.2 2.1-1.2 2.5 0l1.99 6.12h6.45a1.3 1.3 0 0 1 .77 2.37l-5.22 3.78 2 6.11c.39 1.2-1 2.2-2.02 1.46L12 17.96l-5.22 3.78c-1.02.75-2.4-.25-2.01-1.46l1.99-6.11-5.22-3.78a1.3 1.3 0 0 1 .77-2.37h6.45l2-6.12Z",fill:"currentColor"}))},"star");t.Z=o},5554:function(e,t,n){"use strict";n.d(t,{D3:function(){return g},N6:function(){return b},Pw:function(){return v},mG:function(){return p},rJ:function(){return y},sW:function(){return m}});var r=n(425968),i=n(796616),o=n(934057),a=n(129296),s=n(685114),c=n(600737),l={},u={},f={},h=new WeakMap,d=!1,p=function(e,t,n,r){l[e]=t||"",u[e]=n||s.lS.default,r&&(f[e]=r)},g=function(e){delete l[e],delete u[e],delete f[e]},m=function(e,t){try{h.set(t,e)}catch(e){}},y=function(e,t,n){var r=document.querySelector('[data-container-id="'.concat(e,'"]'));if(!!r&&!!(0,o.En)(e))r.contentWindow.postMessage({type:"executeScript",script:t,callbackID:n},"*")},v=function(e){var t=document.querySelector('[data-container-id="'.concat(e,'"]'));if(!!t&&!!(0,o.En)(e))t.contentWindow.postMessage({type:"historyBack"},"*")},b=function(){if(!d)d=!0,addEventListener("message",function(e){var t=e.data||{};if(!t||"call_JSB"!==t.type)return;var n=h.get(e.source)||"";if(!n){var d=document.querySelectorAll('[data-container-id^="'.concat(c.TO,'"]')),p=!0,g=!1,m=void 0;try{for(var y,v=Array.from(d)[Symbol.iterator]();!(p=(y=v.next()).done);p=!0){var b=y.value;if(b.contentWindow===e.source){n=b.dataset.containerId||b.getAttribute("data-container-id")||"";try{b.contentWindow&&h.set(b.contentWindow,n)}catch(e){}break}}}catch(e){g=!0,m=e}finally{try{!p&&null!=v.return&&v.return()}finally{if(g)throw m}}}if(!!n&&!!(0,o.En)(n)){var w=t.methodName||"",_=Array.isArray(t.params)?t.params:[],S=t.callbackID,T=function(e){return 1===e.length&&e[0]&&"object"==typeof e[0]&&!Array.isArray(e[0])?e[0]:e.length>0?{args:e}:{}};if("on"===w||"once"===w){var E=_[0];"string"==typeof E&&null!=S&&(0,o.d8)(n,E,S,"once"===w);return}if("off"===w){var A,O=_[0],C=null!==(A=_[1])&&void 0!==A?A:S;"string"==typeof O&&(0,o.QZ)(n,O,C);return}if("trigger"===w){var P=_[0],k=_[1];"string"==typeof P&&(0,r.a)({__msg_type:"event",__event_id:P,__params:k},n);return}var x=w,I=T(_);"call"===w&&(x=_[0],I=T(_.slice(1)));var N=i.oT.get(n)||{},j={containerID:n,containerType:s.mC.WEBVIEW,globalProps:N,sendEvent:function(e,t){(0,r.a)({__msg_type:"event",__event_id:e,__params:t},n)},callback:function(e){var t=document.querySelector('[data-container-id="'.concat(n,'"]'));if(!!t)t.contentWindow.postMessage({type:"executeCallback",callbackID:S,params:e},"*")}};if(n in f&&f[n][x]){(0,a.pH)(f[n][x],{callbackId:String(S),name:x,params:I},j);return}var Z=l[n]||"",R=u[n]||s.lS.default;(0,a.Xw)(Z?[x,Z].join(i.bA):x,{callbackId:String(S),name:x,params:I},j,R)}})}},512403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebGLUnmaskedVendorComponent=void 0;let r=n(190290),i=n(547646);class o extends i.CustomComponent{getValue(){var e,t;let n=(0,r.getWebGLContext)(),i=null===(e=null==n?void 0:n.getExtension)||void 0===e?void 0:e.call(n,"WEBGL_debug_renderer_info"),o="";return n&&i&&(o=null===(t=n.getParameter)||void 0===t?void 0:t.call(n,i.UNMASKED_VENDOR_WEBGL)),o}}t.WebGLUnmaskedVendorComponent=o},705258:function(e,t,n){"use strict";n.d(t,{C:function(){return l},i:function(){return c}});var r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))o.call(t,n)&&s(e,n,t[n]);if(i)for(var n of i(t))a.call(t,n)&&s(e,n,t[n]);return e},l=(e,t,n)=>new Promise((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())})},632985:function(e){var t=.1,n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function o(e){return 3*e}function a(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e}function s(e,t,n){return 3*(1-3*n+3*t)*e*e+2*(3*n-6*t)*e+3*t}function c(e){return e}e.exports=function(e,r,i,o){if(!(0<=e&&e<=1&&0<=i&&i<=1))throw Error("bezier x values must be in [0, 1] range");if(e===r&&i===o)return c;for(var l=n?new Float32Array(11):Array(11),u=0;u<11;++u)l[u]=a(u*t,e,i);return function(n){return 0===n?0:1===n?1:a(function(n){for(var r=0,o=1,c=10;o!==c&&l[o]<=n;++o)r+=t;var u=r+(n-l[--o])/(l[o+1]-l[o])*t,f=s(u,e,i);return f>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var o=s(t,n,r);if(0===o)break;var c=a(t,n,r)-e;t-=c/o}return t}(n,u,e,i):0===f?u:function(e,t,n,r,i){var o,s,c=0;do(o=a(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++c<10);return s}(n,r,r+t,e,i)}(n),r,o)}}},870127:function(e){!function(t){"use strict";var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,i=Math.ceil,o=Math.floor,a="[BigNumber Error] ",s=a+"Number primitive has more than 15 significant digits: ",c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function l(e){var t=0|e;return e>0||e===t?t:t-1}function u(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(n=14-(t=e[r++]+"").length;n--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function f(e,t){var n,r,i=e.c,o=t.c,a=e.s,s=t.s,c=e.e,l=t.e;if(!a||!s)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=c==l,!i||!o)return r?0:!i^n?1:-1;if(!r)return c>l^n?1:-1;for(a=0,s=(c=i.length)<(l=o.length)?c:l;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^n?1:-1;return c==l?0:c>l^n?1:-1}function h(e,t,n,r){if(e<t||e>n||e!==o(e))throw Error(a+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function d(e){var t=e.c.length-1;return l(e.e/14)==t&&e.c[t]%2!=0}function p(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function g(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(r=e.length,++t>r){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(n=function e(t){var n,m,y,v,b,w,_,S,T,E=D.prototype={constructor:D,toString:null,valueOf:null},A=new D(1),O=20,C=4,P=-7,k=21,x=-1e7,I=1e7,N=!1,j=1,Z=0,R={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},B="0123456789abcdefghijklmnopqrstuvwxyz",L=!0;function D(e,t){var n,i,a,c,l,u,f,d,p=this;if(!(p instanceof D))return new D(e,t);if(null==t){if(e&&!0===e._isBigNumber){p.s=e.s,!e.c||e.e>I?p.c=p.e=null:e.e<x?p.c=[p.e=0]:(p.e=e.e,p.c=e.c.slice());return}if((u="number"==typeof e)&&0*e==0){if(p.s=1/e<0?(e=-e,-1):1,e===~~e){for(c=0,l=e;l>=10;l/=10,c++);c>I?p.c=p.e=null:(p.e=c,p.c=[e]);return}d=String(e)}else{if(!r.test(d=String(e)))return T(p,d,u);p.s=45==d.charCodeAt(0)?(d=d.slice(1),-1):1}(c=d.indexOf("."))>-1&&(d=d.replace(".","")),(l=d.search(/e/i))>0?(c<0&&(c=l),c+=+d.slice(l+1),d=d.substring(0,l)):c<0&&(c=d.length)}else{if(h(t,2,B.length,"Base"),10==t&&L)return U(p=new D(e),O+p.e+1,C);if(d=String(e),u="number"==typeof e){if(0*e!=0)return T(p,d,u,t);if(p.s=1/e<0?(d=d.slice(1),-1):1,D.DEBUG&&d.replace(/^0\.0*|\./,"").length>15)throw Error(s+e)}else p.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1;for(n=B.slice(0,t),c=l=0,f=d.length;l<f;l++)if(0>n.indexOf(i=d.charAt(l))){if("."==i){if(l>c){c=f;continue}}else if(!a&&(d==d.toUpperCase()&&(d=d.toLowerCase())||d==d.toLowerCase()&&(d=d.toUpperCase()))){a=!0,l=-1,c=0;continue}return T(p,String(e),u,t)}u=!1,(c=(d=S(d,t,10,p.s)).indexOf("."))>-1?d=d.replace(".",""):c=d.length}for(l=0;48===d.charCodeAt(l);l++);for(f=d.length;48===d.charCodeAt(--f););if(d=d.slice(l,++f)){if(f-=l,u&&D.DEBUG&&f>15&&(e>9007199254740991||e!==o(e)))throw Error(s+p.s*e);if((c=c-l-1)>I)p.c=p.e=null;else if(c<x)p.c=[p.e=0];else{if(p.e=c,p.c=[],l=(c+1)%14,c<0&&(l+=14),l<f){for(l&&p.c.push(+d.slice(0,l)),f-=14;l<f;)p.c.push(+d.slice(l,l+=14));l=14-(d=d.slice(l)).length}else l-=f;for(;l--;d+="0");p.c.push(+d)}}else p.c=[p.e=0]}function M(e,t,n,r){var i,o,a,s,c;if(null==n?n=C:h(n,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)c=u(e.c),c=1==r||2==r&&(a<=P||a>=k)?p(c,a):g(c,a,"0");else if(o=(e=U(new D(e),t,n)).e,s=(c=u(e.c)).length,1==r||2==r&&(t<=o||o<=P)){for(;s<t;c+="0",s++);c=p(c,o)}else if(t-=a,c=g(c,o,"0"),o+1>s){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-s)>0)for(o+1==s&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function F(e,t){for(var n,r=1,i=new D(e[0]);r<e.length;r++)if((n=new D(e[r])).s)t.call(i,n)&&(i=n);else{i=n;break}return i}function H(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+14*n-1)>I?e.c=e.e=null:n<x?e.c=[e.e=0]:(e.e=n,e.c=t),e}function U(e,t,n,r){var a,s,l,u,f,h,d,p=e.c;if(p){t:{for(a=1,u=p[0];u>=10;u/=10,a++);if((s=t-a)<0)s+=14,l=t,d=(f=p[h=0])/c[a-l-1]%10|0;else if((h=i((s+1)/14))>=p.length){if(r){for(;p.length<=h;p.push(0));f=d=0,a=1,s%=14,l=s-14+1}else break t}else{for(a=1,f=u=p[h];u>=10;u/=10,a++);s%=14,d=(l=s-14+a)<0?0:f/c[a-l-1]%10|0}if(r=r||t<0||null!=p[h+1]||(l<0?f:f%c[a-l-1]),r=n<4?(d||r)&&(0==n||n==(e.s<0?3:2)):d>5||5==d&&(4==n||r||6==n&&(s>0?l>0?f/c[a-l]:0:p[h-1])%10&1||n==(e.s<0?8:7)),t<1||!p[0])return p.length=0,r?(t-=e.e+1,p[0]=c[(14-t%14)%14],e.e=-t||0):p[0]=e.e=0,e;if(0==s?(p.length=h,u=1,h--):(p.length=h+1,u=c[14-s],p[h]=l>0?o(f/c[a-l]%c[l])*u:0),r)for(;;){if(0==h){for(s=1,l=p[0];l>=10;l/=10,s++);for(l=p[0]+=u,u=1;l>=10;l/=10,u++);s!=u&&(e.e++,1e14==p[0]&&(p[0]=1));break}if(p[h]+=u,1e14!=p[h])break;p[h--]=0,u=1}for(s=p.length;0===p[--s];p.pop());}e.e>I?e.c=e.e=null:e.e<x&&(e.c=[e.e=0])}return e}function Y(e){var t,n=e.e;return null===n?e.toString():(t=u(e.c),t=n<=P||n>=k?p(t,n):g(t,n,"0"),e.s<0?"-"+t:t)}return D.clone=e,D.ROUND_UP=0,D.ROUND_DOWN=1,D.ROUND_CEIL=2,D.ROUND_FLOOR=3,D.ROUND_HALF_UP=4,D.ROUND_HALF_DOWN=5,D.ROUND_HALF_EVEN=6,D.ROUND_HALF_CEIL=7,D.ROUND_HALF_FLOOR=8,D.EUCLID=9,D.config=D.set=function(e){var t,n;if(null!=e){if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(h(n=e[t],0,1e9,t),O=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(h(n=e[t],0,8,t),C=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(h(n[0],-1e9,0,t),h(n[1],0,1e9,t),P=n[0],k=n[1]):(h(n,-1e9,1e9,t),P=-(k=n<0?-n:n))),e.hasOwnProperty(t="RANGE")){if((n=e[t])&&n.pop)h(n[0],-1e9,-1,t),h(n[1],1,1e9,t),x=n[0],I=n[1];else if(h(n,-1e9,1e9,t),n)x=-(I=n<0?-n:n);else throw Error(a+t+" cannot be zero: "+n)}if(e.hasOwnProperty(t="CRYPTO")){if(!!(n=e[t])===n){if(n){if("undefined"!=typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))N=n;else throw N=!n,Error(a+"crypto unavailable")}else N=n}else throw Error(a+t+" not true or false: "+n)}if(e.hasOwnProperty(t="MODULO_MODE")&&(h(n=e[t],0,9,t),j=n),e.hasOwnProperty(t="POW_PRECISION")&&(h(n=e[t],0,1e9,t),Z=n),e.hasOwnProperty(t="FORMAT")){if("object"==typeof(n=e[t]))R=n;else throw Error(a+t+" not an object: "+n)}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(a+t+" invalid: "+n);L="0123456789"==n.slice(0,10),B=n}}else throw Error(a+"Object expected: "+e)}return{DECIMAL_PLACES:O,ROUNDING_MODE:C,EXPONENTIAL_AT:[P,k],RANGE:[x,I],CRYPTO:N,MODULO_MODE:j,POW_PRECISION:Z,FORMAT:R,ALPHABET:B}},D.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!D.DEBUG)return!0;var t,n,r=e.c,i=e.e,s=e.s;t:if("[object Array]"==({}).toString.call(r)){if((1===s||-1===s)&&i>=-1e9&&i<=1e9&&i===o(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break t}if((t=(i+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=1e14||n!==o(n))break t;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===s||1===s||-1===s))return!0;throw Error(a+"Invalid BigNumber: "+e)},D.maximum=D.max=function(){return F(arguments,E.lt)},D.minimum=D.min=function(){return F(arguments,E.gt)},D.random=(n=9007199254740992*Math.random()&2097151?function(){return o(9007199254740992*Math.random())}:function(){return(1073741824*Math.random()|0)*8388608+(8388608*Math.random()|0)},function(e){var t,r,s,l,u,f=0,d=[],p=new D(A);if(null==e?e=O:h(e,0,1e9),l=i(e/14),N){if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(l*=2));f<l;)(u=131072*t[f]+(t[f+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[f]=r[0],t[f+1]=r[1]):(d.push(u%1e14),f+=2);f=l/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(l*=7);f<l;)(u=(31&t[f])*281474976710656+1099511627776*t[f+1]+4294967296*t[f+2]+16777216*t[f+3]+(t[f+4]<<16)+(t[f+5]<<8)+t[f+6])>=9e15?crypto.randomBytes(7).copy(t,f):(d.push(u%1e14),f+=7);f=l/7}else throw N=!1,Error(a+"crypto unavailable")}if(!N)for(;f<l;)(u=n())<9e15&&(d[f++]=u%1e14);for(l=d[--f],e%=14,l&&e&&(u=c[14-e],d[f]=o(l/u)*u);0===d[f];d.pop(),f--);if(f<0)d=[s=0];else{for(s=-1;0===d[0];d.splice(0,1),s-=14);for(f=1,u=d[0];u>=10;u/=10,f++);f<14&&(s-=14-f)}return p.e=s,p.c=d,p}),D.sum=function(){for(var e=1,t=arguments,n=new D(t[0]);e<t.length;)n=n.plus(t[e++]);return n},S=function(){var e="0123456789";function t(e,t,n,r){for(var i,o,a=[0],s=0,c=e.length;s<c;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(n,r,i,o,a){var s,c,l,f,h,d,p,m,y=n.indexOf("."),v=O,b=C;for(y>=0&&(f=Z,Z=0,n=n.replace(".",""),d=(m=new D(r)).pow(n.length-y),Z=f,m.c=t(g(u(d.c),d.e,"0"),10,i,e),m.e=m.c.length),l=f=(p=t(n,r,i,a?(s=B,e):(s=e,B))).length;0==p[--f];p.pop());if(!p[0])return s.charAt(0);if(y<0?--l:(d.c=p,d.e=l,d.s=o,p=(d=_(d,m,v,b,i)).c,h=d.r,l=d.e),y=p[c=l+v+1],f=i/2,h=h||c<0||null!=p[c+1],h=b<4?(null!=y||h)&&(0==b||b==(d.s<0?3:2)):y>f||y==f&&(4==b||h||6==b&&1&p[c-1]||b==(d.s<0?8:7)),c<1||!p[0])n=h?g(s.charAt(1),-v,s.charAt(0)):s.charAt(0);else{if(p.length=c,h)for(--i;++p[--c]>i;)p[c]=0,!c&&(++l,p=[1].concat(p));for(f=p.length;!p[--f];);for(y=0,n="";y<=f;n+=s.charAt(p[y++]));n=g(n,l,s.charAt(0))}return n}}(),_=function(){function e(e,t,n){var r,i,o,a,s=0,c=e.length,l=t%1e7,u=t/1e7|0;for(e=e.slice();c--;)o=e[c]%1e7,r=u*o+(a=e[c]/1e7|0)*l,s=((i=l*o+r%1e7*1e7+s)/n|0)+(r/1e7|0)+u*a,e[c]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,s,c){var u,f,h,d,p,g,m,y,v,b,w,_,S,T,E,A,O,C=r.s==i.s?1:-1,P=r.c,k=i.c;if(!P||!P[0]||!k||!k[0])return new D(r.s&&i.s&&(P?!k||P[0]!=k[0]:k)?P&&0==P[0]||!k?0*C:C/0:NaN);for(v=(y=new D(C)).c=[],C=a+(f=r.e-i.e)+1,!c&&(c=1e14,f=l(r.e/14)-l(i.e/14),C=C/14|0),h=0;k[h]==(P[h]||0);h++);if(k[h]>(P[h]||0)&&f--,C<0)v.push(1),d=!0;else{for(T=P.length,A=k.length,h=0,C+=2,(p=o(c/(k[0]+1)))>1&&(k=e(k,p,c),P=e(P,p,c),A=k.length,T=P.length),S=A,w=(b=P.slice(0,A)).length;w<A;b[w++]=0);O=[0].concat(O=k.slice()),E=k[0],k[1]>=c/2&&E++;do{if(p=0,(u=t(k,b,A,w))<0){if(_=b[0],A!=w&&(_=_*c+(b[1]||0)),(p=o(_/E))>1)for(p>=c&&(p=c-1),m=(g=e(k,p,c)).length,w=b.length;1==t(g,b,m,w);)p--,n(g,A<m?O:k,m,c),m=g.length,u=1;else 0==p&&(u=p=1),m=(g=k.slice()).length;if(m<w&&(g=[0].concat(g)),n(b,g,w,c),w=b.length,-1==u)for(;1>t(k,b,A,w);)p++,n(b,A<w?O:k,w,c),w=b.length}else 0===u&&(p++,b=[0]);v[h++]=p,b[0]?b[w++]=P[S]||0:(b=[P[S]],w=1)}while((S++<T||null!=b[0])&&C--);d=null!=b[0],!v[0]&&v.splice(0,1)}if(1e14==c){for(h=1,C=v[0];C>=10;C/=10,h++);U(y,a+(y.e=h+14*f-1)+1,s,d)}else y.e=f,y.r=+d;return y}}(),m=/^(-?)0([xbo])(?=\w[\w.]*$)/i,y=/^([^.]+)\.$/,v=/^\.([^.]+)$/,b=/^-?(Infinity|NaN)$/,w=/^\s*\+(?=[\w.])|^\s+|\s+$/g,T=function(e,t,n,r){var i,o=n?t:t.replace(w,"");if(b.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(m,function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?e:t}),r&&(i=r,o=o.replace(y,"$1").replace(v,"0.$1")),t!=o))return new D(o,i);if(D.DEBUG)throw Error(a+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},E.absoluteValue=E.abs=function(){var e=new D(this);return e.s<0&&(e.s=1),e},E.comparedTo=function(e,t){return f(this,new D(e,t))},E.decimalPlaces=E.dp=function(e,t){var n,r,i;if(null!=e)return h(e,0,1e9),null==t?t=C:h(t,0,8),U(new D(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((i=n.length-1)-l(this.e/14))*14,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},E.dividedBy=E.div=function(e,t){return _(this,new D(e,t),O,C)},E.dividedToIntegerBy=E.idiv=function(e,t){return _(this,new D(e,t),0,1)},E.exponentiatedBy=E.pow=function(e,t){var n,r,s,c,l,u,f,h,p,g=this;if((e=new D(e)).c&&!e.isInteger())throw Error(a+"Exponent not an integer: "+Y(e));if(null!=t&&(t=new D(t)),u=e.e>14,!g.c||!g.c[0]||1==g.c[0]&&!g.e&&1==g.c.length||!e.c||!e.c[0])return p=new D(Math.pow(+Y(g),u?2-d(e):+Y(e))),t?p.mod(t):p;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new D(NaN);(r=!f&&g.isInteger()&&t.isInteger())&&(g=g.mod(t))}else{if(e.e>9&&(g.e>0||g.e<-1||(0==g.e?g.c[0]>1||u&&g.c[1]>=24e7:g.c[0]<8e13||u&&g.c[0]<=9999975e7)))return c=g.s<0&&d(e)?-0:0,g.e>-1&&(c=1/c),new D(f?1/c:c);Z&&(c=i(Z/14+2))}for(u?(n=new D(.5),f&&(e.s=1),h=d(e)):h=(s=Math.abs(+Y(e)))%2,p=new D(A);;){if(h){if(!(p=p.times(g)).c)break;c?p.c.length>c&&(p.c.length=c):r&&(p=p.mod(t))}if(s){if(0===(s=o(s/2)))break;h=s%2}else if(U(e=e.times(n),e.e+1,1),e.e>14)h=d(e);else{if(0==(s=+Y(e)))break;h=s%2}g=g.times(g),c?g.c&&g.c.length>c&&(g.c.length=c):r&&(g=g.mod(t))}return r?p:(f&&(p=A.div(p)),t?p.mod(t):c?U(p,Z,C,l):p)},E.integerValue=function(e){var t=new D(this);return null==e?e=C:h(e,0,8),U(t,t.e+1,e)},E.isEqualTo=E.eq=function(e,t){return 0===f(this,new D(e,t))},E.isFinite=function(){return!!this.c},E.isGreaterThan=E.gt=function(e,t){return f(this,new D(e,t))>0},E.isGreaterThanOrEqualTo=E.gte=function(e,t){return 1===(t=f(this,new D(e,t)))||0===t},E.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},E.isLessThan=E.lt=function(e,t){return 0>f(this,new D(e,t))},E.isLessThanOrEqualTo=E.lte=function(e,t){return -1===(t=f(this,new D(e,t)))||0===t},E.isNaN=function(){return!this.s},E.isNegative=function(){return this.s<0},E.isPositive=function(){return this.s>0},E.isZero=function(){return!!this.c&&0==this.c[0]},E.minus=function(e,t){var n,r,i,o,a=this.s;if(t=(e=new D(e,t)).s,!a||!t)return new D(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,c=e.e/14,u=this.c,f=e.c;if(!s||!c){if(!u||!f)return u?(e.s=-t,e):new D(f?this:NaN);if(!u[0]||!f[0])return f[0]?(e.s=-t,e):new D(u[0]?this:3==C?-0:0)}if(s=l(s),c=l(c),u=u.slice(),a=s-c){for((o=a<0)?(a=-a,i=u):(c=s,i=f),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=u.length)<(t=f.length))?a:t,a=t=0;t<r;t++)if(u[t]!=f[t]){o=u[t]<f[t];break}if(o&&(i=u,u=f,f=i,e.s=-e.s),(t=(r=f.length)-(n=u.length))>0)for(;t--;u[n++]=0);for(t=1e14-1;r>a;){if(u[--r]<f[r]){for(n=r;n&&!u[--n];u[n]=t);--u[n],u[r]+=1e14}u[r]-=f[r]}for(;0==u[0];u.splice(0,1),--c);return u[0]?H(e,u,c):(e.s=3==C?-1:1,e.c=[e.e=0],e)},E.modulo=E.mod=function(e,t){var n,r;return(e=new D(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==j?(r=e.s,e.s=1,n=_(this,e,0,3),e.s=r,n.s*=r):n=_(this,e,0,j),!(e=this.minus(n.times(e))).c[0]&&1==j&&(e.s=this.s),e):new D(this):new D(NaN)},E.multipliedBy=E.times=function(e,t){var n,r,i,o,a,s,c,u,f,h,d,p,g,m=this.c,y=(e=new D(e,t)).c;if(!m||!y||!m[0]||!y[0])return this.s&&e.s&&(!m||m[0]||y)&&(!y||y[0]||m)?(e.s*=this.s,m&&y?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(r=l(this.e/14)+l(e.e/14),e.s*=this.s,c=m.length,c<(h=y.length)&&(g=m,m=y,y=g,i=c,c=h,h=i),i=c+h,g=[];i--;g.push(0));for(i=h;--i>=0;){for(n=0,d=y[i]%1e7,p=y[i]/1e7|0,o=i+(a=c);o>i;)u=m[--a]%1e7,s=p*u+(f=m[a]/1e7|0)*d,n=((u=d*u+s%1e7*1e7+g[o]+n)/1e14|0)+(s/1e7|0)+p*f,g[o--]=u%1e14;g[o]=n}return n?++r:g.splice(0,1),H(e,g,r)},E.negated=function(){var e=new D(this);return e.s=-e.s||null,e},E.plus=function(e,t){var n,r=this.s;if(t=(e=new D(e,t)).s,!r||!t)return new D(NaN);if(r!=t)return e.s=-t,this.minus(e);var i=this.e/14,o=e.e/14,a=this.c,s=e.c;if(!i||!o){if(!a||!s)return new D(r/0);if(!a[0]||!s[0])return s[0]?e:new D(a[0]?this:0*r)}if(i=l(i),o=l(o),a=a.slice(),r=i-o){for(r>0?(o=i,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for(r=a.length,r-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++o),H(e,a,o)},E.precision=E.sd=function(e,t){var n,r,i;if(null!=e&&!!e!==e)return h(e,1,1e9),null==t?t=C:h(t,0,8),U(new D(this),e,t);if(!(n=this.c))return null;if(r=14*(i=n.length-1)+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},E.shiftedBy=function(e){return h(e,-9007199254740991,9007199254740991),this.times("1e"+e)},E.squareRoot=E.sqrt=function(){var e,t,n,r,i,o=this.c,a=this.s,s=this.e,c=O+4,f=new D("0.5");if(1!==a||!o||!o[0])return new D(!a||a<0&&(!o||o[0])?NaN:o?this:1/0);if(0==(a=Math.sqrt(+Y(this)))||a==1/0?(((t=u(o)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=l((s+1)/2)-(s<0||s%2),n=new D(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new D(a+""),n.c[0]){for((a=(s=n.e)+c)<3&&(a=0);;)if(i=n,n=f.times(i.plus(_(this,i,c,1))),u(i.c).slice(0,a)===(t=u(n.c)).slice(0,a)){if(n.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(r||"4999"!=t)){(!+t||!+t.slice(1)&&"5"==t.charAt(0))&&(U(n,n.e+O+2,1),e=!n.times(n).eq(this));break}if(!r&&(U(i,i.e+O+2,0),i.times(i).eq(this))){n=i;break}c+=4,a+=4,r=1}}return U(n,n.e+O+1,C,e)},E.toExponential=function(e,t){return null!=e&&(h(e,0,1e9),e++),M(this,e,t,1)},E.toFixed=function(e,t){return null!=e&&(h(e,0,1e9),e=e+this.e+1),M(this,e,t)},E.toFormat=function(e,t,n){var r;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=R;else if("object"!=typeof n)throw Error(a+"Argument not an object: "+n);if(r=this.toFixed(e,t),this.c){var i,o=r.split("."),s=+n.groupSize,c=+n.secondaryGroupSize,l=n.groupSeparator||"",u=o[0],f=o[1],h=this.s<0,d=h?u.slice(1):u,p=d.length;if(c&&(i=s,s=c,c=i,p-=i),s>0&&p>0){for(i=p%s||s,u=d.substr(0,i);i<p;i+=s)u+=l+d.substr(i,s);c>0&&(u+=l+d.slice(i)),h&&(u="-"+u)}r=f?u+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?f.replace(RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):u}return(n.prefix||"")+r+(n.suffix||"")},E.toFraction=function(e){var t,n,r,i,o,s,l,f,h,d,p,g,m=this.c;if(null!=e&&(!(l=new D(e)).isInteger()&&(l.c||1!==l.s)||l.lt(A)))throw Error(a+"Argument "+(l.isInteger()?"out of range: ":"not an integer: ")+Y(l));if(!m)return new D(this);for(t=new D(A),h=n=new D(A),r=f=new D(A),g=u(m),o=t.e=g.length-this.e-1,t.c[0]=c[(s=o%14)<0?14+s:s],e=!e||l.comparedTo(t)>0?o>0?t:h:l,s=I,I=1/0,l=new D(g),f.c[0]=0;d=_(l,t,0,1),1!=(i=n.plus(d.times(r))).comparedTo(e);){;n=r,r=i,h=f.plus(d.times(i=h)),f=i,t=l.minus(d.times(i=t)),l=i}return i=_(e.minus(n),r,0,1),f=f.plus(i.times(h)),n=n.plus(i.times(r)),f.s=h.s=this.s,o*=2,p=1>_(h,r,o,C).minus(this).abs().comparedTo(_(f,n,o,C).minus(this).abs())?[h,r]:[f,n],I=s,p},E.toNumber=function(){return+Y(this)},E.toPrecision=function(e,t){return null!=e&&h(e,1,1e9),M(this,e,t,2)},E.toString=function(e){var t,n=this,r=n.s,i=n.e;return null===i?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=i<=P||i>=k?p(u(n.c),i):g(u(n.c),i,"0"):10===e&&L?t=g(u((n=U(new D(n),O+i+1,C)).c),n.e,"0"):(h(e,2,B.length,"Base"),t=S(g(u(n.c),i,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},E.valueOf=E.toJSON=function(){return Y(this)},E._isBigNumber=!0,null!=t&&D.set(t),D}()).default=n.BigNumber=n,"function"==typeof define&&define.amd?define(function(){return n}):e.exports?e.exports=n:(!t&&(t="undefined"!=typeof self&&self?self:window),t.BigNumber=n)}(this)},776340:function(e,t,n){var r,i;r=0,i=function(){var e=e||function(e,t){if("undefined"!=typeof window&&window.crypto&&(r=window.crypto),"undefined"!=typeof self&&self.crypto&&(r=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!=typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!=typeof window&&window.crypto&&(r=window.crypto),!r)try{r=n(510081)}catch(e){}var r,i=function(){if(r){if("function"==typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(e){}}throw Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},s=a.lib={},c=s.Base={extend:function(e){var t=o(this);return e&&t.mixIn(e),(!t.hasOwnProperty("init")||this.init===t.init)&&(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=s.WordArray=c.extend({init:function(e,n){e=this.words=e||[],t!=n?this.sigBytes=n:this.sigBytes=4*e.length},toString:function(e){return(e||f).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new l.init(t,e)}}),u=a.enc={},f=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},h=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},d=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(e){throw Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,u=e.min(4*c,o);if(c){for(var f=0;f<c;f+=a)this._doProcessBlock(i,f);n=i.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=p.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new g.HMAC.init(e,n).finalize(t)}}});var g=a.algo={};return a}(Math);return e},e.exports=i()},512613:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(726588),i=n(667954),o=n(547462),a=n(144256);function s(e){(0,a.Z)(1,arguments);var t=(0,r.Z)(e);return Math.round(((0,i.Z)(t).getTime()-(0,o.Z)(t).getTime())/6048e5)+1}},73931: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 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}},389321:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(315355),i=n(919209),o=n(732905),a=n(625813),s=n(92833),c=n(272787),l=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return e=t.call.apply(t,[this].concat(a)),(0,c.Z)((0,o.Z)(e),"priority",140),(0,c.Z)((0,o.Z)(e),"incompatibleTokens",["R","u","t","T"]),e}return(0,i.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}},{key:"set",value:function(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}}]),n}(n(483803)._)},795650:function(e,t,n){"use strict";n.d(t,{m:function(){return h}});var r=n(315355),i=n(919209),o=n(732905),a=n(625813),s=n(92833),c=n(272787),l=n(483803),u=n(19470),f=n(707804),h=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return e=t.call.apply(t,[this].concat(a)),(0,c.Z)((0,o.Z)(e),"priority",90),(0,c.Z)((0,o.Z)(e),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),e}return(0,i.Z)(n,[{key:"parse",value:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return(0,u.jg)((0,u.ZL)(t.length,e),i);case"eo":return(0,u.jg)(n.ordinalNumber(e,{unit:"day"}),i);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=0&&t<=6}},{key:"set",value:function(e,t,n,r){return(e=(0,f.Z)(e,n,r)).setUTCHours(0,0,0,0),e}}]),n}(l._)},409925:function(e,t,n){"use strict";var r=n(634233),i=Array.prototype.forEach,o=Object.create,a=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=o(null);return i.call(arguments,function(e){r(e)&&a(Object(e),t)}),t}},246067:function(e,t,n){"use strict";e.exports=n(28299)()?String.prototype.contains:n(675158)},557012:function(e,t,n){var r=n(214522),i=n(665437),o=n(654108);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},710603:function(e,t,n){var r=n(785798),i=n(793116),o=n(469616),a=n(429422),s=n(500006),c=n(818855),l=n(987132),u=n(997292),f=n(246613),h=n(933082),d=n(69225),p=n(867924),g=n(70986),m=n(980758),y=n(914685),v=n(431356),b=n(20833),w=n(545841),_=n(812958),S=n(640525),T=n(247494),E=n(891779),A="[object Arguments]",O="[object Function]",C="[object Object]",P={};P[A]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[C]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[O]=P["[object WeakMap]"]=!1;e.exports=function e(t,n,k,x,I,N){var j,Z=1&n,R=2&n,B=4&n;if(k&&(j=I?k(t,x,I,N):k(t)),void 0!==j)return j;if(!_(t))return t;var L=v(t);if(L){if(j=g(t),!Z)return l(t,j)}else{var D=p(t),M=D==O||"[object GeneratorFunction]"==D;if(b(t))return c(t,Z);if(D==C||D==A||M&&!I){if(j=R||M?{}:y(t),!Z)return R?f(t,s(j,t)):u(t,a(j,t))}else{if(!P[D])return I?t:{};j=m(t,D,Z)}}N||(N=new r);var F=N.get(t);if(F)return F;N.set(t,j),S(t)?t.forEach(function(r){j.add(e(r,n,k,r,t,N))}):w(t)&&t.forEach(function(r,i){j.set(i,e(r,n,k,i,t,N))});var H=B?R?d:h:R?E:T,U=L?void 0:H(t);return i(U||t,function(r,i){U&&(r=t[i=r]),o(j,i,e(r,n,k,i,t,N))}),j}},195280:function(e){e.exports=function(e,t){return e>t}},933082:function(e,t,n){var r=n(907524),i=n(48946),o=n(247494);e.exports=function(e){return r(e,o,i)}},665437:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},795233:function(e){e.exports=function(){}},313302:function(e,t,n){var r=n(15948),i=n(446365),o=n(404152),a=n(178335);e.exports=function(e,t,n){return(e=o(e),void 0===(t=n?void 0:t))?i(e)?a(e):r(e):e.match(t)||[]}},156627:function(e,t,n){"use strict";n.d(t,{W:function(){return p},Z:function(){return g}});var r=n(678305),i=n(697233),o=n(730084);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function l(e,t){return(l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}var p={ADD_BUFFER_END:"addVideoBufferEnd",TIME_UPDATE:"timeupdate",DEFINITION_CHANGE:"definition_change",DEFINITION_CHANGE_HINT:"definition_change_hint"},g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(y,e);var t,n,i,d,g,m=(t=y,n=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,r=f(t);return e=n?Reflect.construct(r,arguments,f(this).constructor):r.apply(this,arguments),function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return u(e)}(this,e)});function y(e){var t;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,y),h(u(t=m.call(this,e)),"_definitionChange",function(e){var n=e.to,i=u(t),a=i.config,s=i.player;t._hasChanged=!0,t._hasTrigger=!1,t._timeoutId=setTimeout(function(){t._triggerEvent(n.definition)},a.timeout),t._toDefinition=n.definition,!o.ZP.isBlob(n.url)&&s.once(r.rQ,t._onCanplay)}),h(u(t),"_onCanplay",function(){t._triggerEvent(t._toDefinition)}),h(u(t),"_onBufferAppend",function(e){if(void 0!==e.start){null===t._currentItem&&t._onTimeUpdate(null,!0);var n,r=e.start;t._hasAddFrament=!0,t._bufferRange.set(r,e);var i=function(e){if(Array.isArray(e))return s(e)}(n=t._bufferRange.values())||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();t._sortedBufferRange=i.sort(function(e,t){return e.start-t.start})}}),h(u(t),"_onTimeUpdate",function(e,n){var r,i=u(t),o=i.player,a=i.config,s=null===(r=o.abrInstance)||void 0===r?void 0:r.isCurrentInAbr;if(!t._sortedBufferRange||0===t._sortedBufferRange.length||s)return;t._videoCurrentTime=t.player.currentTime;var c=Date.now(),l=a.checkInterval||1e3;if(!(c-t._lastCheckResolutionStamp<l)||0===t._lastCheckResolutionStamp||!!n){t._lastCheckResolutionStamp=c;for(var f=t.player.currentTime,h=0,d=t._sortedBufferRange.length-1,p=null;h<=d;){var g=Math.floor(h+(d-h)/2),m=t._sortedBufferRange[g];if(f<m.start)d=g-1;else if(f>=m.end)h=g+1;else{p=m;break}}if(p){var y=p,v=y&&y.definition,b=t._currentDefinition;if(t._currentDefinition===v&&!n)return;t._currentDefinition=v,t._prevDefinitionItem=t._currentItem,t._currentFps=y.fps,t._currentItem=y,null!==b&&!t._hasTrigger&&t._hasChanged&&t._triggerEvent(t._currentDefinition)}}}),t._bufferRange=new Map,t._lastCheckResolutionStamp=0,t._hasChanged=!1,t._hasTrigger=!1,t._timeoutId=-1,t._bindEvents(),t}return i=y,g=[{key:"pluginName",get:function(){return"DefinitionHint"}},{key:"defaultConfig",get:function(){return{timeout:1e4,checkInterval:500}}}],d=[{key:"_bindEvents",value:function(){var e=this.player;e.on(p.ADD_BUFFER_END,this._onBufferAppend),e.on(p.TIME_UPDATE,this._onTimeUpdate),e.on(p.DEFINITION_CHANGE,this._definitionChange)}},{key:"_triggerEvent",value:function(e){if(!!this._hasChanged)clearTimeout(this._timeoutId),this._hasTrigger=!0,this._hasChanged=!1,this.player.emit(p.DEFINITION_CHANGE_HINT,e)}},{key:"destroy",value:function(){var e=this.player;e.off(p.ADD_BUFFER_END,this._onBufferAppend),e.off(p.TIME_UPDATE,this._onTimeUpdate),e.off(p.DEFINITION_CHANGE,this._definitionChange),e.off(r.rQ,this._onCanplay),clearTimeout(this._timeoutId)}}],c(i.prototype,d),g&&c(i,g),Object.defineProperty(i,"prototype",{writable:!1}),y}(i.ZP)},982800:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Errors",{enumerable:!0,get:function(){return o.default}}),t.Events=void 0,Object.defineProperty(t,"Sniffer",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"XG_DEBUG",{enumerable:!0,get:function(){return s.default}}),t.default=void 0;var r=f(n(502571)),i=f(n(981896)),o=f(n(744764)),a=u(n(552385));t.Events=a;var s=f(n(159957)),c=u(n(110877));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function f(e){return e&&e.__esModule?e:{default:e}}function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){(function(e,t,n){(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==h(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===h(t)?t:String(t)}function y(e,t){s.default.logError("[".concat(e,"] event or callback cant be undefined or null when call ").concat(t))}var v=function(){var e,t,n;function i(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i),r.default.checkIsFunction(this.beforeCreate)&&this.beforeCreate(e),(0,c.default)(this),this.__args=e,this.__events={},this.__onceEvents={},this.config=e.config||{},this.player=null,this.playerConfig={},this.pluginName="",this.__init(e)}return e=i,t=[{key:"beforeCreate",value:function(e){}},{key:"afterCreate",value:function(){}},{key:"beforePlayerInit",value:function(){}},{key:"onPluginsReady",value:function(){}},{key:"afterPlayerInit",value:function(){}},{key:"destroy",value:function(){}},{key:"__init",value:function(e){this.player=e.player,this.playerConfig=e.player&&e.player.config,this.pluginName=e.pluginName?e.pluginName.toLowerCase():this.constructor.pluginName.toLowerCase(),this.logger=e.player&&e.player.logger}},{key:"reInitialize",value:function(){this.__init(this.__args)}},{key:"updateLang",value:function(e){!e&&(e=this.lang)}},{key:"lang",get:function(){return this.player.lang}},{key:"i18n",get:function(){return this.player.i18n}},{key:"i18nKeys",get:function(){return this.player.i18nKeys}},{key:"domEventType",get:function(){var e,t=r.default.checkTouchSupport()?"touch":"mouse";return["compatible","touch","mouse"].indexOf(null===(e=this.playerConfig)||void 0===e?void 0:e.domEventType)>-1&&(t=this.playerConfig.domEventType),t}},{key:"on",value:function(e,t){var n=this;if(!e||!t||!this.player){y(this.pluginName,"plugin.on(event, callback)");return}"string"==typeof e?(this.__events[e]=t,this.player.on(e,t)):Array.isArray(e)&&e.forEach(function(e){n.__events[e]=t,n.player.on(e,t)})}},{key:"once",value:function(e,t){var n=this;if(!e||!t||!this.player){y(this.pluginName,"plugin.once(event, callback)");return}"string"==typeof e?(this.__onceEvents[e]=t,this.player.once(e,t)):Array.isArray(e)&&e.forEach(function(r){n.__onceEvents[r]=t,n.player.once(e,t)})}},{key:"off",value:function(e,t){var n=this;if(!e||!t||!this.player){y(this.pluginName,"plugin.off(event, callback)");return}"string"==typeof e?(delete this.__events[e],this.player.off(e,t)):Array.isArray(e)&&e.forEach(function(r){delete n.__events[e],n.player.off(r,t)})}},{key:"offAll",value:function(){var e=this;["__events","__onceEvents"].forEach(function(t){Object.keys(e[t]).forEach(function(n){e[t][n]&&e.off(n,e[t][n]),n&&delete e[t][n]})}),this.__events={},this.__onceEvents={}}},{key:"emit",value:function(e){var t;if(!!this.player){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=this.player).emit.apply(t,[e].concat(r))}}},{key:"emitUserAction",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!!this.player){var r=p(p({},n),{},{pluginName:this.pluginName});this.player.emitUserAction(e,t,r)}}},{key:"hook",value:function(e,t){return arguments.length>2&&void 0!==arguments[2]&&arguments[2],c.hook.call.apply(c.hook,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"useHooks",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return c.useHooks.call.apply(c.useHooks,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"removeHooks",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return c.removeHooks.call.apply(c.removeHooks,[this].concat(Array.prototype.slice.call(arguments)))}},{key:"registerPlugin",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!!this.player)return n&&(t.pluginName=n),this.player.registerPlugin({plugin:e,options:t})}},{key:"getPlugin",value:function(e){return this.player?this.player.getPlugin(e):null}},{key:"__destroy",value:function(){var e=this,t=this.player,n=this.pluginName;this.offAll(),r.default.clearAllTimers(this),r.default.checkIsFunction(this.destroy)&&this.destroy(),["player","playerConfig","pluginName","logger","__args","__hooks"].map(function(t){e[t]=null}),t.unRegisterPlugin(n),(0,c.delHooksDescriptor)(this)}}],n=[{key:"defineGetterOrSetter",value:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&Object.defineProperty(e,n,t[n])}},{key:"defaultConfig",get:function(){return{}}},{key:"pluginName",get:function(){return"pluginName"}}],t&&g(e.prototype,t),n&&g(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}();t.default=v},497409:function(e,t,n){"use strict";n.r(t)},426337:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}}),n(932651),n(490629),n(679308);var r=n(101199),i=n(852075),o=n(559748);let{hasOwnProperty:a}=Object.prototype;class s extends r.Component{componentDidMount(){this.foundation&&"function"==typeof this.foundation.init&&this.foundation.init()}componentWillUnmount(){this.foundation&&"function"==typeof this.foundation.destroy&&this.foundation.destroy(),this.cache={}}get adapter(){return{getContext:e=>{if(this.context&&e)return this.context[e]},getContexts:()=>this.context,getProp:e=>this.props[e],getProps:()=>this.props,getState:e=>this.state[e],getStates:()=>this.state,setState:(e,t)=>this.setState(Object.assign({},e),t),getCache:e=>e&&this.cache[e],getCaches:()=>this.cache,setCache:(e,t)=>e&&(this.cache[e]=t),stopPropagation:e=>{try{e.stopPropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation()}catch(e){}},persistEvent:e=>{e&&e.persist&&"function"==typeof e.persist&&e.persist()}}}log(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return(0,i.Z)(e,...n)}getDataAttr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return(0,o.Z)(e)}constructor(e){super(e),this.isControlled=e=>!!(e&&this.props&&"object"==typeof this.props&&a.call(this.props,e)),this.setStateAsync=e=>new Promise(t=>{this.setState(e,t)}),this.cache={},this.foundation=null}}s.propTypes={},s.defaultProps={}},7958:function(e,t,n){"use strict";n.d(t,{Z:function(){return C}}),n(932651),n(683656),n(759943),n(706056),n(490629);var r=n(877866),i=n.n(r),o=n(795233),a=n.n(o),s=n(101199),c=n(469935),l=n.n(c),u=n(622689),f=n.n(u),h=n(92184),d=n(232910),p=n(67035),g=n(109242),m=n(368923),y=n(426337),v=n(285696),b=n(922082),w=n(460517),_=n(913584),S=n(491437),T=n(10096),E=n(372038),A=n(136064);let O=g.UX.PREFIX;class C extends y.Z{get dateAdapter(){return{updateDaySelected:e=>this.setState({selected:e})}}get rangeAdapter(){return{setRangeStart:e=>this.setState({rangeStart:e}),setRangeEnd:e=>this.setState({rangeEnd:e}),setHoverDay:e=>this.setState({hoverDay:e}),setWeeksHeight:e=>this.setState({maxWeekNum:e}),setOffsetRangeStart:e=>this.setState({offsetRangeStart:e}),setOffsetRangeEnd:e=>this.setState({offsetRangeEnd:e})}}get adapter(){return Object.assign(Object.assign(Object.assign(Object.assign({},super.adapter),this.dateAdapter),this.rangeAdapter),{updateMonthOnLeft:e=>this.setState({monthLeft:e}),updateMonthOnRight:e=>this.setState({monthRight:e}),notifySelectedChange:(e,t)=>this.props.onChange(e,t),notifyMaxLimit:e=>this.props.onMaxSelect(e),notifyPanelChange:(e,t)=>this.props.onPanelChange(e,t),setRangeInputFocus:e=>this.props.setRangeInputFocus(e),isAnotherPanelHasOpened:e=>this.props.isAnotherPanelHasOpened(e)})}componentDidMount(){super.componentDidMount()}componentDidUpdate(e,t){let{defaultValue:n,defaultPickerValue:r}=this.props;if(e.defaultValue!==n&&this.foundation.updateSelectedFromProps(n),e.defaultPickerValue!==r&&this.foundation.initDefaultPickerValue(),this.foundation.isRangeType()){let e=this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),n=this.leftIsYearOrTime(t)&&!this.rightIsYearOrTime(t)||!this.leftIsYearOrTime(t)&&this.rightIsYearOrTime(t),r=this.leftIsYearOrTime()&&this.rightIsYearOrTime(),i=this.leftIsYearOrTime()&&!this.rightIsYearOrTime()||!this.leftIsYearOrTime()&&this.rightIsYearOrTime();n&&r?this.setState({currentPanelHeight:this.calcScrollListHeight()},this.reselect):e&&i&&this.reselect()}}renderPanel(e,t){let n=l()(`${O}-month-grid-${t}`),{monthLeft:r,monthRight:i,currentPanelHeight:o}=this.state,{insetInput:a}=this.props,c=t===g.j2.PANEL_TYPE_RIGHT?i:r,{isTimePickerOpen:u,isYearPickerOpen:f}=c,h=this.renderMonth(e,t),d=f?s.createElement("div",{className:`${O}-yam`},this.renderYearAndMonth(t,c)):null,p=u?s.createElement("div",{className:`${O}-tpk`},this.renderTimePicker(t,c)):null,m={},y=this.adapter.getCache(`wrap-${g.j2.PANEL_TYPE_LEFT}`),v=this.adapter.getCache(`wrap-${g.j2.PANEL_TYPE_RIGHT}`),b=t===g.j2.PANEL_TYPE_RIGHT?v:y;return this.foundation.isRangeType()?((f||u)&&(m.minWidth=b.getBoundingClientRect().width),this.leftIsYearOrTime()&&this.rightIsYearOrTime()&&!a&&(m.minHeight=o||this.calcScrollListHeight())):"year"!==this.props.type&&"month"!==this.props.type&&(u||f)&&(n=l()(n,`${O}-yam-showing`)),s.createElement("div",{className:n,key:t,style:m,"x-open-type":f||u?f?"year":"time":"date"},d,p,this.foundation.isRangeType()?h:f||u?null:h,this.renderSwitch(t))}showYearPicker(e,t){t.nativeEvent.stopImmediatePropagation(),this.foundation.showYearPicker(e)}renderMonth(e,t){let{selected:n,rangeStart:r,rangeEnd:i,hoverDay:o,maxWeekNum:a,offsetRangeStart:c,offsetRangeEnd:l}=this.state,{weekStartsOn:u,disabledDate:f,locale:d,localeCode:p,renderDate:m,renderFullDate:y,startDateOffset:w,endDateOffset:_,density:S,rangeInputFocus:T,syncSwitchMonth:E,multiple:A}=this.props,O="";if(e){let t=e?(0,h.Z)(e,"yyyy"):"",n=e?(0,h.Z)(e,"L"):"",r=d.months[n];O=d.monthText.replace("${year}",t).replace("${month}",r)}let C={},P=t===g.j2.PANEL_TYPE_RIGHT?this.state.monthRight:this.state.monthLeft,k=this.foundation.isRangeType();return k&&P&&(P.isYearPickerOpen||P.isTimePickerOpen)&&(C={visibility:"hidden",position:"absolute",pointerEvents:"none"}),s.createElement("div",{ref:e=>this.cacheRefCurrent(`wrap-${t}`,e),style:C},s.createElement(v.Z,{forwardRef:e=>this.cacheRefCurrent(`nav-${t}`,e),monthText:O,density:S,onMonthClick:e=>this.showYearPicker(t,e),onPrevMonth:()=>this.foundation.prevMonth(t),onNextMonth:()=>this.foundation.nextMonth(t),onNextYear:()=>this.foundation.nextYear(t),onPrevYear:()=>this.foundation.prevYear(t),shouldBimonthSwitch:k&&E,panelType:t}),s.createElement(b.Z,{locale:d,localeCode:p,forwardRef:e=>this.cacheRefCurrent(`month-${t}`,e),disabledDate:f,weekStartsOn:u,month:e,selected:n,rangeStart:r,rangeEnd:i,rangeInputFocus:T,offsetRangeStart:c,offsetRangeEnd:l,hoverDay:o,weeksRowNum:a,renderDate:m,renderFullDate:y,onDayClick:e=>this.foundation.handleDayClick(e,t),onDayHover:e=>this.foundation.handleDayHover(e,t),onWeeksRowNumChange:e=>this.handleWeeksRowNumChange(e,t),startDateOffset:w,endDateOffset:_,focusRecordsRef:this.props.focusRecordsRef,multiple:A}))}renderTimePicker(e,t){let n,r;let{type:i,locale:o,format:a,hideDisabledOptions:c,timePickerOpts:u,dateFnsLocale:f}=this.props,{pickerDate:h}=t,p=l()(`${O}-time`),y=Object.assign(Object.assign({},u),{hideDisabledOptions:c}),v=this.foundation.calcDisabledTime(e);v&&["disabledHours","disabledMinutes","disabledSeconds"].forEach(e=>{v[e]&&(y[e]=v[e])});let{rangeStart:b,rangeEnd:_}=this.state,S=this.foundation.getValidDateFormat();"dateTimeRange"===i&&b&&_&&(0,d.Z)(n=(0,m.h)(b,S,void 0,f),r=(0,m.h)(_,S,void 0,f))&&(e===g.j2.PANEL_TYPE_RIGHT?b&&(y.startDate=n):_&&(y.endDate=r));let T=o.selectTime;return s.createElement("div",{className:p},s.createElement(w.Z,Object.assign({ref:t=>this.cacheRefCurrent(`timepicker-${e}`,t),panelHeader:T,format:a||g.j2.FORMAT_TIME_PICKER,timeStampValue:h,onChange:t=>this.foundation.handleTimeChange(t,e)},y)))}renderYearAndMonth(e,t){let{pickerDate:n}=t,{locale:r,localeCode:i,density:o,yearAndMonthOpts:a,startYear:c,endYear:l}=this.props,u=n.getFullYear(),f=n.getMonth()+1;return s.createElement(_.Z,{ref:t=>this.cacheRefCurrent(`yam-${e}`,t),locale:r,localeCode:i,currentYear:{left:u,right:0},currentMonth:{left:f,right:0},onSelect:t=>this.foundation.toYearMonth(e,new Date(t.currentYear.left,t.currentMonth.left-1)),onBackToMain:()=>{this.foundation.showDatePanel(e);let t=this.adapter.getCache(`wrap-${e}`);t&&(t.style.height="auto")},density:o,yearAndMonthOpts:a,startYear:c,endYear:l})}renderSwitch(e){let t,n;let{rangeStart:r,rangeEnd:i,monthLeft:o,monthRight:a}=this.state,{type:c,locale:u,disabledTimePicker:f,density:d,dateFnsLocale:p,insetInput:y}=this.props;if(!c.includes("Time")||y)return null;let{FORMAT_SWITCH_DATE:v}=u.localeFormatToken,b=this.foundation.getValidTimeFormat(),w=this.foundation.getValidDateFormat();e===g.j2.PANEL_TYPE_LEFT?(t=o,n=r?(0,h.Z)((0,m.h)(r,w,void 0,p),v):""):(t=a,n=i?(0,h.Z)((0,m.h)(i,w,void 0,p),v):"");let{isTimePickerOpen:_,showDate:E}=t,A=E?(0,h.Z)(E,v):"",C=E?(0,h.Z)(E,b):"",P=["default"].includes(d),k=l()(`${O}-switch`),x=l()({[`${O}-switch-date`]:!0,[`${O}-switch-date-active`]:!_}),I=l()({[`${O}-switch-time`]:!0,[`${O}-switch-time-disabled`]:f,[`${O}-switch-date-active`]:_}),N=l()(`${O}-switch-text`);return s.createElement("div",{className:k,ref:t=>this.adapter.setCache(`switch-${e}`,t)},s.createElement("div",{role:"button","aria-label":"Switch to date panel",className:x,onClick:t=>this.foundation.showDatePanel(e)},P&&s.createElement(S.Z,{"aria-hidden":!0}),s.createElement("span",{className:N},n||A)),s.createElement("div",{role:"button","aria-label":"Switch to time panel",className:I,onClick:t=>this.foundation.showTimePicker(e,!0)},P&&s.createElement(T.Z,{"aria-hidden":!0}),s.createElement("span",{className:N},C)))}render(){let{monthLeft:e,monthRight:t}=this.state,{type:n,insetInput:r,presetPosition:i,renderQuickControls:o,renderDateInput:a}=this.props,c=l()({[`${O}-month-grid`]:!0}),u=g.j2.PANEL_TYPE_LEFT,f=g.j2.PANEL_TYPE_RIGHT,h=null;"date"===n||"dateTime"===n?h=this.renderPanel(e.pickerDate,u):"dateRange"===n||"dateTimeRange"===n?h=[this.renderPanel(e.pickerDate,u),this.renderPanel(t.pickerDate,f)]:("year"===n||"month"===n)&&(h="year month");let d=this.getYAMOpenType();return s.createElement("div",{style:{display:"flex"}},"left"===i&&o,s.createElement("div",null,a,s.createElement("div",{className:c,"x-type":n,"x-panel-yearandmonth-open-type":d,"x-insetinput":r?"true":"false","x-preset-position":null===o?"null":i,ref:e=>this.cacheRefCurrent("monthGrid",e)},h)),"right"===i&&o)}constructor(e){super(e),this.cacheRefCurrent=(e,t)=>{"string"==typeof e&&e.length&&this.adapter.setCache(e,t)},this.leftIsYearOrTime=e=>{let{monthLeft:t}=e||this.state;return!!t&&(!!t.isTimePickerOpen||!!t.isYearPickerOpen)||!1},this.rightIsYearOrTime=e=>{let{monthRight:t}=e||this.state;return!!t&&(!!t.isTimePickerOpen||!!t.isYearPickerOpen)||!1},this.calcScrollListHeight=()=>{let e=this.adapter.getCache(`wrap-${g.j2.PANEL_TYPE_LEFT}`),t=this.adapter.getCache(`wrap-${g.j2.PANEL_TYPE_RIGHT}`),n=this.adapter.getCache(`switch-${g.j2.PANEL_TYPE_LEFT}`),r=this.adapter.getCache(`switch-${g.j2.PANEL_TYPE_RIGHT}`),i=e&&e.getBoundingClientRect(),o=t&&t.getBoundingClientRect(),a=i&&i.height||0,s=o&&o.height||0;return n&&(a+=n.getBoundingClientRect().height),r&&(s+=r.getBoundingClientRect().height),Math.max(a,s)},this.handleWeeksRowNumChange=(e,t)=>{let n=t===g.j2.PANEL_TYPE_RIGHT,r=t===g.j2.PANEL_TYPE_RIGHT,i=this.leftIsYearOrTime()&&this.rightIsYearOrTime();if(this.foundation.isRangeType()&&!i){let t={weeksRowNum:e,currentPanelHeight:this.calcScrollListHeight()};this.setState(t,()=>{(this.leftIsYearOrTime()&&r||this.rightIsYearOrTime()&&n)&&this.reselect()})}},this.reselect=()=>{[`timepicker-${g.j2.PANEL_TYPE_LEFT}`,`timepicker-${g.j2.PANEL_TYPE_RIGHT}`,`yam-${g.j2.PANEL_TYPE_LEFT}`,`yam-${g.j2.PANEL_TYPE_RIGHT}`].forEach(e=>{let t=this.adapter.getCache(e);t&&"function"==typeof t.reselect&&t.reselect()})},this.getYAMOpenType=()=>this.foundation.getYAMOpenType();let t=e.format||(0,E.E)(e.type),{nowDate:n,nextDate:r}=(0,A.Z)({defaultPickerValue:e.defaultPickerValue,format:t,dateFnsLocale:e.dateFnsLocale}),i={selected:new Set},o={monthLeft:{pickerDate:n,showDate:n,isTimePickerOpen:!1,isYearPickerOpen:!1},monthRight:{pickerDate:r,showDate:r,isTimePickerOpen:!1,isYearPickerOpen:!1},maxWeekNum:0,hoverDay:"",rangeStart:e.rangeStart,rangeEnd:"",currentPanelHeight:0,offsetRangeStart:"",offsetRangeEnd:""};this.state=Object.assign(Object.assign({},i),o),this.foundation=new p.Z(this.adapter)}}C.propTypes={type:f().oneOf(g.j2.TYPE_SET),defaultValue:f().array,defaultPickerValue:f().oneOfType([f().string,f().number,f().object,f().array]),multiple:f().bool,max:f().number,weekStartsOn:f().number,disabledDate:f().func,disabledTime:f().func,disabledTimePicker:f().bool,hideDisabledOptions:f().bool,navPrev:f().node,navNext:f().node,onMaxSelect:f().func,timePickerOpts:f().object,isControlledComponent:f().bool,rangeStart:f().oneOfType([f().string]),rangeInputFocus:f().oneOfType([f().bool,f().string]),locale:f().object,localeCode:f().string,format:f().string,renderDate:f().func,renderFullDate:f().func,startDateOffset:f().func,endDateOffset:f().func,autoSwitchDate:f().bool,density:f().string,dateFnsLocale:f().object.isRequired,timeZone:f().oneOfType([f().string,f().number]),syncSwitchMonth:f().bool,onPanelChange:f().func,focusRecordsRef:f().object,triggerRender:f().func,presetPosition:f().oneOf(g.j2.PRESET_POSITION_SET),renderQuickControls:f().node,renderDateInput:f().node},C.defaultProps={type:"date",rangeStart:"",multiple:!1,weekStartsOn:g.KT.WEEK_START_ON,disabledDate:i(),onMaxSelect:a(),locale:{}}},998334:function(e,t,n){"use strict";var r=n(101199),i=n(492839);t.Z=function(){return(0,r.useContext)(i.Ar)}},48795:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseFoundation:function(){return r.Z},ButtonGroup:function(){return p.Z},Transfer:function(){return eP.Z},JsonViewer:function(){return e5.Z},TimePicker:function(){return e_.Z},BaseComponent:function(){return i.Z},TagGroup:function(){return ev.Z},useFormState:function(){return eY.Z},CodeHighlight:function(){return eJ.Z},Badge:function(){return u.Z},Empty:function(){return P.Z},DatePicker:function(){return A.Z},Image:function(){return eW.ZP},Input:function(){return F.Z},Modal:function(){return k.Z},Radio:function(){return Q.ZP},Space:function(){return ec.Z},Steps:function(){return eh.Z},Table:function(){return ep.Z},Toast:function(){return eS.Z},AudioPlayer:function(){return e8.Z},Popover:function(){return q.Z},Progress:function(){return J.Z},Collapse:function(){return S.Z},VideoPlayer:function(){return tt.Z},Cascader:function(){return b.Z},ArrayField:function(){return eU.Z},ScrollList:function(){return en.Z},TabPane:function(){return em.Z},Notification:function(){return V.Z},ColorPicker:function(){return eK.Z},Collapsible:function(){return T.Z},LocaleConsumer:function(){return eB.Z},useFormApi:function(){return eL.Z},Popconfirm:function(){return z.Z},Banner:function(){return f.Z},Button:function(){return d.Z},Rating:function(){return et.Z},Select:function(){return ei.Z},Slider:function(){return es.Z},SubNav:function(){return W.Z},Switch:function(){return ed.Z},semiGlobal:function(){return eX.Z},Upload:function(){return eO.Z},Divider:function(){return C.Z},Layout:function(){return B.A},Lottie:function(){return eQ.Z},Avatar:function(){return s.Z},AvatarGroup:function(){return c.Z},Anchor:function(){return o.Z},Col:function(){return R.Z},DropdownDivider:function(){return j.Z},Nav:function(){return $.Z},Row:function(){return Z.Z},Tag:function(){return ey.Z},Resizable:function(){return e9.Z},Dropdown:function(){return x.Z},TreeSelect:function(){return eA.Z},Carousel:function(){return v.Z},AutoComplete:function(){return a.Z},LocaleProvider:function(){return eR},useFieldApi:function(){return eG.Z},useFieldState:function(){return eM.Z},BackTop:function(){return l.Z},PinCode:function(){return ez.Z},ResizeGroup:function(){return e4.Z},withFormState:function(){return eD.Z},Highlight:function(){return ek.Z},OverflowList:function(){return X.Z},Cropper:function(){return e7.Z},SplitButtonGroup:function(){return eu.Z},Timeline:function(){return ew.Z},ConfigConsumer:function(){return E.C},Calendar:function(){return g.Z},SideSheet:function(){return eo.Z},Descriptions:function(){return O.Z},Breadcrumb:function(){return h.Z},withFormApi:function(){return eH.Z},TagInput:function(){return eb.Z},CardGroup:function(){return y.Z},DropdownMenu:function(){return I.Z},RadioGroup:function(){return ee.Z},Skeleton:function(){return ea.Z},ImagePreview:function(){return eV.Z},Tooltip:function(){return eT.Z},UserGuide:function(){return te.Z},Chat:function(){return e0.Z},Card:function(){return m.Z},Form:function(){return eF.Z},Icon:function(){return M.Z},List:function(){return L.Z},MarkdownRender:function(){return eq.Z},Pagination:function(){return K.Z},CheckboxGroup:function(){return _.Z},Spin:function(){return el.Z},Step:function(){return ef.Z},Tabs:function(){return eg.Z},Tree:function(){return eE.Z},withField:function(){return e$.Z},Typography:function(){return eC.Z},InputNumber:function(){return Y.Z},ConfigProvider:function(){return E.Z},NavItem:function(){return G.Z},DragMove:function(){return e6.Z},ResizeHandler:function(){return e3.Z},ResizeItem:function(){return e2.Z},TextArea:function(){return U.Z},DropdownItem:function(){return N.Z},ScrollItem:function(){return er.Z},IconButton:function(){return D.Z},Checkbox:function(){return w.ZP},ToastFactory:function(){return eS.x},HotKeys:function(){return e1.Z},InputGroup:function(){return H.Z}}),n("266356");var r=n("856445"),i=n("426337"),o=n("363784"),a=n("904708"),s=n("328638"),c=n("277632"),l=n("742981"),u=n("321557"),f=n("150636"),h=n("907071"),d=n("9444"),p=n("755673"),g=n("396646"),m=n("497614"),y=n("428046"),v=n("509931"),b=n("42531"),w=n("138776"),_=n("634166"),S=n("852501"),T=n("742916"),E=n("840234"),A=n("984812"),O=n("437671"),C=n("725497"),P=n("930537"),k=n("555045"),x=n("438136"),I=n("260129"),N=n("574015"),j=n("141551"),Z=n("219311"),R=n("612601"),B=n("863648"),L=n("753991"),D=n("158871"),M=n("730540"),F=n("975044"),H=n("96158"),U=n("417321"),Y=n("525528"),$=n("365830"),G=n("739697"),W=n("638297"),V=n("15354"),X=n("297222"),K=n("408537"),z=n("806180"),q=n("619050"),J=n("316308"),Q=n("790667"),ee=n("100318"),et=n("331944"),en=n("731510"),er=n("848667"),ei=n("992968"),eo=n("838790"),ea=n("151261"),es=n("571996"),ec=n("739541"),el=n("180007"),eu=n("133523"),ef=n("259933"),eh=n("754931"),ed=n("458831"),ep=n("370740"),eg=n("737690"),em=n("640016"),ey=n("235806"),ev=n("837423"),eb=n("496414"),ew=n("805722"),e_=n("706093"),eS=n("487628"),eT=n("104200"),eE=n("563501"),eA=n("76518"),eO=n("691801"),eC=n("392129"),eP=n("386147"),ek=n("505699"),ex=n("101199"),eI=n("622689"),eN=n.n(eI),ej=n("307852"),eZ=n("779374");class eR extends ex.Component{render(){let{children:e,locale:t}=this.props;return ex.createElement(ej.Z.Provider,{value:t},e)}constructor(e){super(e),this.state={}}}eR.propTypes={locale:eN().object,children:eN().node},eR.defaultProps={locale:eZ.Z};var eB=n("209873"),eL=n("320530"),eD=n("337458"),eM=n("366540"),eF=n("244925"),eH=n("572188"),eU=n("158508"),eY=n("998334"),e$=n("755107"),eG=n("771380"),eW=n("506592"),eV=n("386551"),eX=n("283433"),eK=n("402964"),ez=n("14563"),eq=n("117253"),eJ=n("448714"),eQ=n("289871"),e0=n("703155"),e1=n("127239"),e2=n("922871"),e9=n("986579"),e4=n("417513"),e3=n("537641"),e5=n("846321"),e6=n("193122"),e7=n("533282"),e8=n("283965"),te=n("286211"),tt=n("341042")},437476:function(e,t,n){"use strict";n(932651);var r=n(285406),i=n.n(r),o=n(101199),a=n(506592),s=n(283880),c=n(859725);t.Z=e=>o.createElement("div",{className:`${c.U.PREFIX}-component-image`},o.createElement(a.ZP,Object.assign({fallback:o.createElement(s.Z,null),width:"100%"},i()(e,"children"))),o.createElement("div",{className:`${c.U.PREFIX}-component-image-alt`},e.alt))},117253:function(e,t,n){"use strict";n(932651);var r,i=n(101199),o=n(426337),a=n(294696);n(955053);var s=n(320165),c=n(859725),l=n(879278),u=n(469935),f=n.n(u),h=n(622689),d=n.n(h),p=n(678503);class g extends o.Z{componentDidUpdate(e,t,n){e.raw!==this.props.raw&&this.setState({MDXContentComponent:this.foundation.evaluateSync(this.props.raw)})}get adapter(){return Object.assign(Object.assign({},super.adapter),{getRuntime:()=>r||(r=n.t(s,2))})}render(){let e=this.state.MDXContentComponent;return i.createElement("div",Object.assign({className:f()(c.U.PREFIX,this.props.className),style:this.props.style},this.getDataAttr()),i.createElement(e,{components:Object.assign(Object.assign({},l),this.props.components)}))}constructor(e){super(e),this.foundation=new a.Z(this.adapter),this.state={MDXContentComponent:this.foundation.evaluateSync(this.props.raw)}}}g.propTypes={className:d().string,style:d().object,format:d().string,components:d().any,raw:d().string,remarkPlugins:d().arrayOf(d().object),rehypePlugins:d().arrayOf(d().object),remarkGfm:d().bool},g.__SemiComponentName__="MarkdownRender",g.defaultProps=(0,p.GW)(g.__SemiComponentName__,{format:"mdx",remarkGfm:!0}),g.defaultComponents=l,t.Z=g},549644:function(e,t,n){"use strict";let r=n(101199).createContext({isCollapsed:!1,selectedKeys:[],openKeys:[]});t.Z=r},184861:function(e,t,n){"use strict";n(932651),n(490629);var r=n(795233),i=n.n(r),o=n(198412),a=n.n(o),s=n(101199),c=n(622689),l=n.n(c),u=n(469935),f=n.n(u),h=n(302884),d=n(586278);class p extends s.PureComponent{render(){let{scroll:e,prefixCls:t,fixed:n,forwardedRef:r,handleBodyScroll:i,columns:o,components:c,onDidUpdate:l,showHeader:u,tableLayout:p,bodyHasScrollBar:g,sticky:m}=this.props,y=a()(c,"header.outer","table"),v=a()(e,"x"),b={},w={};v&&!n&&(w.width=v),g&&(b.overflowY="scroll");let _=s.createElement(h.Z,{columns:o,prefixCls:t}),S=s.createElement(d.Z,Object.assign({},this.props,{columns:o,components:c,onDidUpdate:l})),T=f()(`${t}-header`,{[`${t}-header-sticky`]:m,[`${t}-header-hidden`]:!u}),E=a()(m,"top",0);return"number"==typeof E&&(b.top=E),s.createElement("div",{key:"headTable",style:b,className:T,ref:r,onScroll:i},s.createElement(y,{style:w,className:f()(t,{[`${t}-fixed`]:"fixed"===p})},_,S))}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{selectedRowKeysSet:new Set};super(e)}}p.propTypes={tableLayout:l().string,bodyHasScrollBar:l().bool,columns:l().array,components:l().object,dataSource:l().array,fixed:l().oneOfType([l().bool,l().string]),handleBodyScroll:l().func,prefixCls:l().string,forwardedRef:l().oneOfType([l().object,l().func]),scroll:l().shape({x:l().oneOfType([l().number,l().string,l().bool]),y:l().oneOfType([l().number,l().string])}),selectedRowKeysSet:l().instanceOf(Set).isRequired,showHeader:l().bool,onDidUpdate:l().func,onHeaderRow:l().func},p.defaultProps={handleBodyScroll:i()},t.Z=s.forwardRef((e,t)=>s.createElement(p,Object.assign({},e,{forwardedRef:t})))},940971:function(e,t,n){"use strict";n(932651),n(490629),n(76375),n(683656),n(759943);var r=n(72137),i=n.n(r),o=n(85079),a=n.n(o),s=n(101199),c=n(622689),l=n.n(c),u=n(469935),f=n.n(u),h=n(912077),d=n(559748),p=n(297222),g=n(438136),m=n(9444),y=n(151943),v=n(63793),b=n(343388),w=n(155553),_=n(127243),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);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};class E extends s.Component{componentDidMount(){this.setState({uuid:(0,w.Cd)()},()=>{this.props.collapsible&&requestAnimationFrame(()=>{this.scrollActiveTabItemIntoView()})})}componentDidUpdate(e){e.activeKey!==this.props.activeKey&&this.props.collapsible&&this.scrollActiveTabItemIntoView()}renderIcon(e){return s.createElement("span",null,e)}renderExtra(){let{tabBarExtraContent:e,type:t,size:n}=this.props,r=e&&e.props?e.props.style:{},i=f()(h.UX.TABS_BAR_EXTRA,{[`${h.UX.TABS_BAR}-${t}-extra`]:t,[`${h.UX.TABS_BAR}-${t}-extra-${n}`]:n});if(e){let t=Object.assign(Object.assign({},{float:"right"}),r);return s.createElement("div",{className:i,style:t,"x-semi-prop":"tabBarExtraContent"},e)}return null}render(){let e=this.props,{type:t,style:n,className:r,list:i,tabPosition:o,more:a,collapsible:c}=e,l=T(e,["type","style","className","list","tabPosition","more","collapsible"]),u=f()(r,{[h.UX.TABS_BAR]:!0,[h.UX.TABS_BAR_LINE]:"line"===t,[h.UX.TABS_BAR_CARD]:"card"===t,[h.UX.TABS_BAR_BUTTON]:"button"===t,[h.UX.TABS_BAR_SLASH]:"slash"===t,[`${h.UX.TABS_BAR}-${o}`]:o,[`${h.UX.TABS_BAR}-collapse`]:c}),p=this.renderExtra(),g=c?this.renderCollapsedTab():a?this.renderWithMoreTrigger():this.renderTabComponents(i);return s.createElement("div",Object.assign({role:"tablist","aria-orientation":"left"===o?"vertical":"horizontal",className:u,style:n},(0,d.Z)(l),{"data-uuid":this.state.uuid}),g,p)}constructor(e){var t;super(e),t=this,this.handleItemClick=(e,t)=>{this.props.onTabClick(e,t)},this.handleKeyDown=(e,t,n)=>{this.props.handleKeyDown(e,t,n)},this.renderTabItem=e=>{let{size:t,type:n,deleteTabItem:r,handleKeyDown:o,tabPosition:a}=this.props,c=this._isActive(e.itemKey);return s.createElement(_.Z,Object.assign({},i()(e,["disabled","icon","itemKey","tab","closable"]),{key:this._getBarItemKeyByItemKey(e.itemKey),selected:c,size:t,type:n,tabPosition:a,handleKeyDown:o,deleteTabItem:r,onClick:this.handleItemClick}))},this.scrollTabItemIntoViewByKey=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",r=document.querySelector(`[data-uuid="${t.state.uuid}"] .${h.UX.TABS_TAB}[data-scrollkey="${e}"]`);null==r||r.scrollIntoView({behavior:"smooth",block:n,inline:n})},this.scrollActiveTabItemIntoView=e=>{let t=this._getBarItemKeyByItemKey(this.props.activeKey);this.scrollTabItemIntoViewByKey(t,e)},this.renderTabComponents=e=>e.map(e=>this.renderTabItem(e)),this.handleArrowClick=(e,t)=>{let n="start"===t?e.pop():e.shift();if(!n)return;let r=this._getBarItemKeyByItemKey(n.itemKey);this.scrollTabItemIntoViewByKey(r)},this.renderCollapse=(e,t,n)=>{var r;let i=f()({[`${h.UX.TABS_BAR}-arrow-${n}`]:n,[`${h.UX.TABS_BAR}-arrow`]:!0});if(a()(e))return s.createElement("div",{role:"presentation",className:i},s.createElement(m.Z,{disabled:!0,icon:t,theme:"borderless"}));let{dropdownClassName:o,dropdownStyle:c,showRestInDropdown:l,dropdownProps:u}=this.props,{rePosKey:d}=this.state,p=!e.length,y=s.createElement(g.Z.Menu,null,e.map(e=>{let{icon:t,tab:n,itemKey:r}=e,i=t?this.renderIcon(e.icon):null;return s.createElement(g.Z.Item,{key:r,onClick:e=>this.handleItemClick(r,e),active:this._isActive(r)},i,n)})),v=s.createElement("div",{role:"presentation",className:i,onClick:t=>this.handleArrowClick(e,n)},s.createElement(m.Z,{disabled:p,icon:t,theme:"borderless"})),b=f()(o,{[`${h.UX.TABS_BAR}-dropdown`]:!0}),w=null!==(r=null==u?void 0:u[n])&&void 0!==r?r:{};return s.createElement(s.Fragment,null,l?s.createElement(g.Z,Object.assign({className:b,clickToHide:!0,clickTriggerToHide:!0,key:`${d}-${n}`,position:"start"===n?"bottomLeft":"bottomRight",render:p?null:y,showTick:!0,style:c,trigger:"hover",disableFocusListener:!0},w),v):v)},this.renderOverflow=e=>e.map((e,t)=>{let n=0===t?"start":"end",r=0===t?s.createElement(y.Z,null):s.createElement(v.Z,null),i=this.renderCollapse(e,r,n);return this.props.renderArrow?this.props.renderArrow(e,n,()=>this.handleArrowClick(e,n),i):i}),this.renderCollapsedTab=()=>{let{list:e}=this.props,t=e.map(e=>{let{itemKey:t}=e;return Object.assign({key:this._getBarItemKeyByItemKey(t),active:this._isActive(t)},e)});return s.createElement(p.Z,{items:t,overflowRenderDirection:this.props.arrowPosition,wrapperStyle:this.props.visibleTabsStyle,overflowRenderer:this.renderOverflow,renderMode:"scroll",className:`${h.UX.TABS_BAR}-overflow-list`,visibleItemRenderer:this.renderTabItem,onVisibleStateChange:e=>{var t,n;let r=new Map;e.forEach((e,t)=>{r.set(this._getItemKeyByBarItemKey(t),e)}),null===(n=(t=this.props).onVisibleTabsChange)||void 0===n||n.call(t,r)}})},this.renderWithMoreTrigger=()=>{let e;let{list:t,more:n}=this.props,r=[],i=s.createElement("div",{className:f()({[`${h.UX.TABS_BAR}-more-trigger`]:!0,[`${h.UX.TABS_BAR}-more-trigger-${this.props.type}`]:!0})},s.createElement(S.Z,{componentName:"Tabs"},(e,t)=>s.createElement("div",{className:`${h.UX.TABS_BAR}-more-trigger-content`},s.createElement("div",null,e.more),s.createElement(b.Z,{className:`${h.UX.TABS_BAR}-more-trigger-content-icon`}))));if("number"==typeof n)e=t.length-Math.min(n,t.length),r=t.slice(0,e).map(e=>this.renderTabItem(e));else if("object"==typeof n)e=t.length-Math.min(n.count,t.length),r=t.slice(0,e).map(e=>this.renderTabItem(e)),n.render&&(i=n.render());else if(void 0!==n)throw Error("[Semi Tabs]: invalid tab props format: more");return s.createElement(s.Fragment,null,r,this.renderMoreDropdown(t.slice(e),null==n?void 0:n.dropdownProps,i))},this.renderMoreDropdown=(e,t,n)=>s.createElement(g.Z,Object.assign({trigger:"hover",showTick:!0,position:"bottomLeft",className:`${h.UX.TABS_BAR}-more-dropdown-${this.props.type}`,clickToHide:!0,menu:e.map(e=>({node:"item",name:e.tab,icon:e.icon,onClick:t=>this.props.onTabClick(e.itemKey,t),active:this.props.activeKey===e.itemKey}))},t),n),this._isActive=e=>e===this.props.activeKey,this._getBarItemKeyByItemKey=e=>`${e}-bar`,this._getItemKeyByBarItemKey=e=>e.replace(/-bar$/,""),this.state={endInd:e.list.length,rePosKey:0,startInd:0,uuid:"",currentVisibleItems:[]}}}E.propTypes={activeKey:l().string,className:l().string,collapsible:l().bool,list:l().array,onTabClick:l().func,size:l().oneOf(h.j2.SIZE),style:l().object,tabBarExtraContent:l().node,tabPosition:l().oneOf(h.j2.POSITION_MAP),type:l().oneOf(h.j2.TYPE_MAP),closable:l().bool,deleteTabItem:l().func,more:l().oneOfType([l().number,l().object])},t.Z=E},640016:function(e,t,n){"use strict";n(932651),n(490629);var r=n(101199),i=n(622689),o=n.n(i),a=n(469935),s=n.n(a),c=n(912077),l=n(559748),u=n(573105),f=n(371648),h=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);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};class d extends r.PureComponent{render(){let{tabPaneMotion:e,tabPosition:t,prevActiveKey:n}=this.context,i=this.props,{className:o,style:a,children:u,itemKey:d,tabIndex:p}=i,g=h(i,["className","style","children","itemKey","tabIndex"]),m=this.context.activeKey===d,y=s()(o,{[c.UX.TABS_PANE_INACTIVE]:!m,[c.UX.TABS_PANE_ACTIVE]:m,[c.UX.TABS_PANE]:!0}),v=this.shouldRender(),b=(()=>{let e=this.getDirection(this.context.activeKey,d,this.context.panes,n);if("top"===t)return e?c.UX.TABS_PANE_ANIMATE_RIGHT_SHOW:c.UX.TABS_PANE_ANIMATE_LEFT_SHOW;return e?c.UX.TABS_PANE_ANIMATE_BOTTOM_SHOW:c.UX.TABS_PANE_ANIMATE_TOP_SHOW})(),w=!this.context.panes.find(e=>e.itemKey===n),_=e&&m&&!w&&!this.context.forceDisableMotion;return r.createElement("div",Object.assign({ref:this.ref,role:"tabpanel",id:`semiTabPanel${d}`,"aria-labelledby":`semiTab${d}`,className:y,style:a,"aria-hidden":m?"false":"true",tabIndex:p||0},(0,l.Z)(g),{"x-semi-prop":"children"}),r.createElement(f.Z,{motion:_,animationState:m?"enter":"leave",startClassName:b},e=>{let{animationClassName:t,animationEventsNeedBind:n}=e;return r.createElement("div",Object.assign({className:s()(c.UX.TABS_PANE_MOTION_OVERLAY,t),"x-semi-prop":"children"},n),v?u:null)}))}constructor(){super(...arguments),this.ref=(0,r.createRef)(),this.getDirection=(e,t,n,r)=>{if(null!==t&&null!==e&&Array.isArray(n)&&n.length){let i=n.findIndex(t=>t.itemKey===e),o=n.findIndex(e=>e.itemKey===t),a=n.findIndex(e=>e.itemKey===r);return i===o?a>i:o<i}return!1},this.shouldRender=()=>{let{itemKey:e}=this.props,{activeKey:t,lazyRender:n}=this.context;return this._active=this._active||t===e,!n||this._active}}}d.isTabPane=!0,d.contextType=u.Z,d.propTypes={className:o().string,style:o().object,children:o().node,disabled:o().bool,itemKey:o().string,tab:o().node,icon:o().node,closable:o().bool},t.Z=d},837423:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}}),n(932651),n(374954);var r=n(101199),i=n(469935),o=n.n(i),a=n(622689),s=n.n(a),c=n(519627),l=n(235806),u=n(619050);let f=c.U.PREFIX,h=c.j.TAG_SIZE,d=c.j.AVATAR_SHAPE;class p extends r.PureComponent{renderNTag(e,t){let{size:n,showPopover:i,popoverProps:o,onPlusNMouseEnter:a}=this.props,s=r.createElement(l.Z,{closable:!1,size:n,color:"grey",style:{backgroundColor:"transparent"},key:"_+n",onMouseEnter:a},"+",e);return i&&(s=r.createElement(u.Z,Object.assign({showArrow:!0,content:t,trigger:"hover",position:"top",autoAdjustOverflow:!0,className:`${f}-rest-group-popover`},o,{key:"_+n_Popover"}),s)),s}renderMergeTags(e){let{maxTagCount:t,tagList:n,restCount:r}=this.props,i=r||n.length-t,o=e,a=e.slice(0,t),s=e.slice(t),c=null;return i>0&&(c=this.renderNTag(i,s),a.push(c),o=a),o}renderAllTags(){let{tagList:e,size:t,mode:n,avatarShape:i,onTagClose:o}=this.props;return e.map(e=>{if("custom"===n)return e;let a=Object.assign({},e);return!a.size&&(a.size=t),!a.avatarShape&&(a.avatarShape=i),!a.tagKey&&("string"==typeof a.children||"number"==typeof a.children?a.tagKey=a.children:a.tagKey=Math.random()),r.createElement(l.Z,Object.assign({},a,{key:a.tagKey,onClose:(e,t,n)=>{a.onClose&&a.onClose(e,t,n),o&&o(e,t,n)}}))})}render(){let{style:e,className:t,maxTagCount:n,size:i}=this.props,a=o()({[`${f}-group`]:!0,[`${f}-group-max`]:n,[`${f}-group-small`]:"small"===i,[`${f}-group-large`]:"large"===i},t),s=this.renderAllTags(),c=void 0===n?s:this.renderMergeTags(s);return r.createElement("div",{style:e,className:a},c)}}p.defaultProps={style:{},className:"",size:h[0],avatarShape:"square",onTagClose:()=>void 0,onPlusNMouseEnter:()=>void 0},p.propTypes={children:s().node,style:s().object,className:s().string,maxTagCount:s().number,restCount:s().number,tagList:s().array,size:s().oneOf(h),mode:s().string,onTagClose:s().func,showPopover:s().bool,popoverProps:s().object,avatarShape:s().oneOf(d)}},460517:function(e,t,n){"use strict";n(932651),n(683656),n(759943);var r=n(795233),i=n.n(r),o=n(101199),a=n(622689),s=n.n(a),c=n(92184),l=n(426337),u=n(335346),f=n(731510),h=n(848667),d=n(706478),p=n(209873);class g extends l.Z{componentDidUpdate(e,t){(e.timeStampValue!==this.props.timeStampValue||e.format!==this.props.format)&&this.setState(Object.assign({},this.foundation.initData()))}componentWillUnmount(){}componentDidMount(){}renderHourSelect(e,t){let n,r;let{prefixCls:i,disabledHours:a,use12Hours:s,scrollItemProps:c}=this.props,{showHour:l,hourOptions:u}=this.state;if(!l)return null;let f=a();s?(n=[12].concat(u.filter(e=>e<12&&e>0)),r=e%12||12):(n=u,r=e);let p=`${i}-list-hour`;return o.createElement(h.Z,Object.assign({ref:e=>this.cacheRefCurrent("hour",e),mode:"normal",transform:e=>e+t.hour,className:p,list:n.map(e=>(0,d.k)(e,f)),selectedIndex:n.indexOf(r),type:"hour",onSelect:this.onItemChange},c))}renderMinuteSelect(e,t){let{prefixCls:n,disabledMinutes:r,timeStampValue:i,scrollItemProps:a}=this.props,{showMinute:s,minuteOptions:c}=this.state;if(!s)return null;let l=new Date(i),u=r&&r(l.getHours()),f=`${n}-list-minute`;return o.createElement(h.Z,Object.assign({ref:e=>this.cacheRefCurrent("minute",e),mode:"normal",transform:e=>e+t.minute,list:c.map(e=>(0,d.k)(e,u)),selectedIndex:c.indexOf(e),type:"minute",onSelect:this.onItemChange,className:f},a))}renderSecondSelect(e,t){let{prefixCls:n,disabledSeconds:r,timeStampValue:i,scrollItemProps:a}=this.props,{showSecond:s,secondOptions:c}=this.state;if(!s)return null;let l=new Date(i),u=r&&r(l.getHours(),l.getMinutes()),f=`${n}-list-second`;return o.createElement(h.Z,Object.assign({ref:e=>this.cacheRefCurrent("second",e),mode:"normal",transform:e=>String(e)+t.second,list:c.map(e=>(0,d.k)(e,u)),selectedIndex:c.indexOf(e),className:f,type:"second",onSelect:this.onItemChange},a))}renderAMPMSelect(e,t){let{prefixCls:n,use12Hours:r,isAM:i,scrollItemProps:a}=this.props;if(!r)return null;let s=[{value:"AM",text:e.AM||"上午"},{value:"PM",text:e.PM||"下午"}],c=`${n}-list-ampm`;return o.createElement(h.Z,Object.assign({ref:e=>this.cacheRefCurrent("ampm",e),mode:"normal",className:c,list:s,selectedIndex:i?0:1,type:"ampm",onSelect:this.onItemChange},a))}render(){let{timeStampValue:e,panelHeader:t,panelFooter:n}=this.props,r=this.getDisplayDateFromTimeStamp(e);return o.createElement(p.Z,{componentName:"TimePicker"},(e,i)=>o.createElement(f.Z,{header:t,footer:n,"x-semi-header-alias":"panelHeader","x-semi-footer-alias":"panelFooter"},this.renderAMPMSelect(e,i),this.renderHourSelect(r.getHours(),e),this.renderMinuteSelect(r.getMinutes(),e),this.renderSecondSelect(r.getSeconds(),e)))}constructor(e){super(e),this.cacheRefCurrent=(e,t)=>{e&&"string"==typeof e&&this.adapter.setCache(e,t)},this.reselect=()=>{["ampm","hour","minute","second"].forEach(e=>{let t=this.adapter.getCache(e);t&&t.scrollToIndex&&t.scrollToIndex()})},this.onItemChange=e=>{let{type:t,value:n,disabled:r}=e,{onChange:i,use12Hours:o,isAM:a,format:s,timeStampValue:l}=this.props,u=this.foundation.getDisplayDateFromTimeStamp(l);if("hour"===t)o?a?u.setHours(Number(n)%12):u.setHours(Number(n)%12+12):u.setHours(Number(n));else if("minute"===t)u.setMinutes(Number(n));else if("ampm"===t){let e=n.toUpperCase();o&&("PM"===e&&(a=!1,12>u.getHours()&&u.setHours(u.getHours()%12+12)),"AM"===e&&(a=!0,u.getHours()>=12&&u.setHours(u.getHours()-12)))}else u.setSeconds(Number(n));i&&i({isAM:a,value:(0,c.Z)(u,s&&s.replace(/(\s+)A/g,"$1a")),timeStampValue:Number(u)})},this.onEnterSelectPanel=e=>{let{onCurrentSelectPanelChange:t}=this.props;t(e)},this.getDisplayDateFromTimeStamp=e=>this.foundation.getDisplayDateFromTimeStamp(e),this.foundation=new d.Z(this.adapter),this.state=Object.assign({},this.foundation.initData())}}g.propTypes={format:s().string,defaultOpenValue:s().object,prefixCls:s().string,onChange:s().func,showHour:s().bool,showMinute:s().bool,showSecond:s().bool,disabledHours:s().func,disabledMinutes:s().func,disabledSeconds:s().func,hideDisabledOptions:s().bool,onCurrentSelectPanelChange:s().func,use12Hours:s().bool,isAM:s().bool,timeStampValue:s().any,scrollItemProps:s().object},g.defaultProps={disabledHours:i(),disabledMinutes:i(),disabledSeconds:i(),format:u.j2.DEFAULT_FORMAT},t.Z=g},742744:function(e,t,n){"use strict";n.d(t,{le:function(){return a}});var r=n(629686),i=n(402748);n(984065);var o=n(835597);let a=(0,i._)((0,r._)({},o.o),{FLVERROR:"error"})},759691:function(e,t,n){"use strict";n.d(t,{ZP:function(){return i}});var r=n(480333);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new Uint8Array(Math.ceil(e.length/2));for(let t=0;t<e.length;t+=2)n[t/2]=parseInt(e.substring(t,t+2),16);return new o(n,t)}n(190932),n(808483),n(126159),n(100832),n(825666),n(943281),n(82726),n(527553),n(76375);class o{constructor(e,t=0){(0,r._)(this,"audioMuxVersion",0),(0,r._)(this,"allstreamsSameTimeFraming",1),(0,r._)(this,"numSubFrames",0),(0,r._)(this,"numPrograms",0),(0,r._)(this,"numLayer",0),(0,r._)(this,"audioSpecificConfig",void 0),(0,r._)(this,"frameLengthType",0),(0,r._)(this,"latmBufferFullness",255),(0,r._)(this,"otherDataPresent",0),(0,r._)(this,"crcCheckPresent",0),(0,r._)(this,"bitstreamSize",void 0);let n=0,i=f(1,e,t+0);if(n+=1,i!==this.audioMuxVersion)throw Error("");let o=f(1,e,t+n);if(n+=1,o!==this.allstreamsSameTimeFraming)throw Error();let a=f(6,e,t+n);if(n+=6,a!==this.numSubFrames)throw Error();let c=f(4,e,t+n);if(n+=4,c!==this.numPrograms)throw Error();let l=f(3,e,t+n);if(n+=3,l!==this.numLayer)throw Error();this.audioSpecificConfig=new s(e,t+n);let u=f(3,e,t+(n+=this.audioSpecificConfig.bitstreamSize));if(n+=3,u!==this.frameLengthType)throw Error();let h=f(8,e,t+n);if(n+=8,h!==this.latmBufferFullness)throw Error();let d=f(1,e,t+n);if(n+=1,d!==this.otherDataPresent)throw Error();let p=f(1,e,t+n);if(n+=1,p!==this.crcCheckPresent)throw Error();this.bitstreamSize=n}}let a=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350,"reserved","reserved","escape"];class s{get codec(){return 2!==this.audioObjectType?"unknown":this.sbrPresentFlag||this.psPresentFlag?this.sbrPresentFlag&&!this.psPresentFlag?"mp4a.40.5":this.sbrPresentFlag&&this.psPresentFlag?"mp4a.40.29":"unknown":"mp4a.40.2"}get sampleRate(){let e=l(this.extensionSamplingFrequencyIndex,this.extensionSamplingFrequency);return void 0!==e||void 0!==(e=l(this.samplingFrequencyIndex,this.samplingFrequency))?e:"unknown"}get array(){var e,t,n,r,i,o,a;let s=new h,c=this.psPresentFlag&&this.sbrPresentFlag?29:this.sbrPresentFlag?5:2;return s.writeBits(c,5),s.writeBits(this.samplingFrequencyIndex,4),15===this.samplingFrequencyIndex&&s.writeBits(null!==(e=this.samplingFrequency)&&void 0!==e?e:0,24),s.writeBits(this.channelConfiguration,4),(5===c||29===c)&&(s.writeBits(null!==(t=this.extensionSamplingFrequencyIndex)&&void 0!==t?t:0,4),15===this.extensionSamplingFrequencyIndex&&s.writeBits(null!==(n=this.extensionSamplingFrequency)&&void 0!==n?n:0,24),s.writeBits(this.audioObjectType,5)),29===c&&s.writeBitsArray(null!==(o=null===(r=this.gaSpecificConfig)||void 0===r?void 0:r.array)&&void 0!==o?o:new Uint8Array,null!==(a=null===(i=this.gaSpecificConfig)||void 0===i?void 0:i.bitstreamSize)&&void 0!==a?a:0),s.buffer()}constructor(e,t){(0,r._)(this,"audioObjectType",void 0),(0,r._)(this,"samplingFrequencyIndex",void 0),(0,r._)(this,"samplingFrequency",void 0),(0,r._)(this,"channelConfiguration",void 0),(0,r._)(this,"extensionSamplingFrequencyIndex",void 0),(0,r._)(this,"extensionSamplingFrequency",void 0),(0,r._)(this,"gaSpecificConfig",void 0),(0,r._)(this,"sbrPresentFlag",!1),(0,r._)(this,"psPresentFlag",!1),(0,r._)(this,"bitstreamSize",void 0);let n=0;this.audioObjectType=f(5,e,t+n),n+=5,this.samplingFrequencyIndex=f(4,e,t+n),n+=4,15===this.samplingFrequencyIndex&&(this.samplingFrequency=f(24,e,t+n),n+=24),this.channelConfiguration=f(4,e,t+n),n+=4,(5===this.audioObjectType||29===this.audioObjectType)&&(this.sbrPresentFlag=!0,29===this.audioObjectType&&(this.psPresentFlag=!0),this.extensionSamplingFrequencyIndex=f(4,e,t+n),n+=4,15===this.extensionSamplingFrequencyIndex&&(this.extensionSamplingFrequency=f(24,e,t+n),n+=24),this.audioObjectType=f(5,e,t+n),n+=5),2===this.audioObjectType&&(this.gaSpecificConfig=new c(e,t+n),n+=this.gaSpecificConfig.bitstreamSize),this.bitstreamSize=n}}class c{get array(){let e=new h;return e.writeBits(this.frameLengthFlag,1),e.writeBits(this.dependsOnCoreCoder,1),e.writeBits(this.extensionFlag,1),e.buffer()}constructor(e,t){(0,r._)(this,"frameLengthFlag",0),(0,r._)(this,"dependsOnCoreCoder",0),(0,r._)(this,"extensionFlag",0),(0,r._)(this,"bitstreamSize",void 0);let n=0,i=f(1,e,t+0);if(n+=1,i!==this.frameLengthFlag)throw Error();let o=f(1,e,t+n);if(n+=1,o!==this.dependsOnCoreCoder)throw Error();let a=f(1,e,t+n);if(n+=1,a!==this.extensionFlag)throw Error();this.bitstreamSize=n}}function l(e,t){if(void 0===e)return;let n=a[e];if("reserved"!==n)return"escape"===n?t:n}let u=[0,1,3,7,15,31,63,127,255];function f(e,t,n){let r=0;for(;e>0;){let i=n>>3,o=8-(n-(i<<3)),a=e>o?0:o-e;r<<=o-a,r+=t[i]>>a&u[o-a],e-=o-a,n+=o-a}return r}class h{ensureBufferSize(e){if(e>=this._buffer.length){let t=new Uint8Array(e+1);t.set(this._buffer),this._buffer=t}}writeBits(e,t){for(;t>0;){let n=this._position>>3;this.ensureBufferSize(n);let r=8-(this._position-(n<<3)),i=Math.min(r,t),o=e>>t-i;this._buffer[n]|=o<<r-i,e-=o<<t-i,t-=i,this._position+=i}}writeBitsArray(e,t){let n=0;for(;t>0;){let r=this._position>>3;this.ensureBufferSize(r);let i=8-(this._position-(r<<3)),o=Math.min(i,t),a=f(o,e,n);this._buffer[r]|=a<<i-o,t-=o,this._position+=o,n+=o}}buffer(){return this._buffer}constructor(){(0,r._)(this,"_buffer",new Uint8Array),(0,r._)(this,"_position",0)}}},495312:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(629686);let i={loadModuleError:!1,lowVideoDecodeCnt:0,workerDisableCnt:0,preWorkerReady:!1},o={getWebCodecStates:function(){return(0,r._)({},i)},setLoadModuleError:function(){i.loadModuleError=!0},addLowVideoDecodeCnt:function(){let e=i.lowVideoDecodeCnt;i.lowVideoDecodeCnt=e+1},preWorkerIsReady:function(){i.preWorkerReady=!0},addWorkerDisableCnt:function(){let e=i.workerDisableCnt;i.workerDisableCnt=e+1}}},668833:function(e,t,n){"use strict";n.d(t,{KT:function(){return a},UX:function(){return i},j2:function(){return o}});var r=n(707852);let i={PREFIX:`${r.T}-input`},o={SIZE:["small","large","default"],DEFAULT_SIZE:"default",STATUS:["default","error","warning","success"],CLEARBTN_CLICKED_EVENT_FLAG:"__fromClearBtn",MODE:["password"]},a={}},717086:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}}),n(932651);var r=n(795233),i=n.n(r),o=n(856445),a=n(108220);class s extends o.Z{get defaultAdapter(){return{handleCancel:i(),beforeShow:i(),afterHide:i()}}destroy(){this.afterHide()}handleCancel(e){this._adapter.notifyCancel(e)}beforeShow(){this.getProp("disableScroll")&&this._adapter.disabledBodyScroll(),this._adapter.setOnKeyDownListener()}afterHide(){this.getProp("disableScroll")&&this._adapter.enabledBodyScroll(),this._adapter.removeKeyDownListener()}handleKeyDown(e){let{closeOnEsc:t}=this.getProps();if(t&&e.keyCode===a.ZP.ESC){e.stopPropagation(),this.handleCancel(e);return}}onVisibleChange(e){this._adapter.notifyVisibleChange(e)}constructor(e){super(Object.assign(Object.assign({},s.defaultAdapter),e)),this.toggleDisplayNone=e=>{this._adapter.toggleDisplayNone(e)}}}},200874:function(e,t,n){"use strict";n.d(t,{UX:function(){return i},j2:function(){return o}});var r=n(707852);let i={PREFIX:`${r.T}-spin`},o={SIZE:["small","middle","large"]}},674570:function(e,t,n){"use strict";n.d(t,{h:function(){return r}}),n(414931),n(228983),n(759943);function r(e,t){return function(e,t){let n=(e.toString().split(".")[1]||"").length,r=Math.pow(10,Math.max(n,(t.toString().split(".")[1]||"").length));return(e*r+t*r)/r}(e,-t)}},581610:function(e,t,n){"use strict";n(679308),Promise.all([n.e("74792"),n.e("19511"),n.e("80030"),n.e("35148"),n.e("52587"),n.e("41590"),n.e("72876")]).then(n.bind(n,94353))},93115:function(e,t,n){"use strict";n(679308),n.e("22347").then(n.bind(n,822600))},525946:function(e,t,n){"use strict";n.d(t,{E:function(){return l},H:function(){return c}});var r=n(951966),i=n(511794),o=n(837163),a=n(19449),s=n(183809);function c(){return[(0,r.t)(),(0,i.b)(),(0,o.v)(),(0,a.t)(),(0,s.Y)()]}function l(e){return{extensions:[(0,r.J)(),(0,i.n)(e),(0,o.r)(),(0,a.x)(e),(0,s.C)()]}}},141729:function(e,t,n){"use strict";n.d(t,{R:function(){return i}});var r=n(368183);let i={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),i};function i(i){return(0,r.Ch)(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}}},227028:function(e,t,n){"use strict";n.d(t,{V:function(){return l}}),n(329081);var r=n(320165),i=n(650639),o=n(101199),a=n(406848),s=n(411343),c=n(120335);let l=function(e,t){var n;let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=(0,i.b)(e,{pathname:t},a.EZ),f=null!==(n=(0,s.g)(null!=u?u:[]))&&void 0!==n?n:[],{serverRouteCache:h}=l;return{get route(){if(!u)return null;return null==u?void 0:u.reduceRight((e,t,n)=>{var i;let a=f[n];a&&(null==h?void 0:h.current.has(a))&&(null==h||h.current.set(`${a}|outlet`,e));let s=null==h?void 0:h.current.get(a);return s?s:(0,r.jsx)(c.RouteProvider,{outlet:e,matches:[],pattern:a,children:(0,r.jsx)(o.Suspense,{fallback:null!==(i=t.route.loadingElement)&&void 0!==i?i:null,children:void 0!==t.route.element?t.route.element:e})})},null)},loading:null==u?void 0:u.reduceRight((e,t)=>{var n;return null!==(n=t.route.loadingElement)&&void 0!==n?n:e},null),get as(){return f[0]},matchPatterns:f}}},256555:function(e,t,n){"use strict";n.r(t),n.d(t,{Head:function(){return l}});var r=n(629686),i=n(402748),o=n(811603),a=n(320165),s=n(559754);let c=new s.WR({}),l=e=>{var{children:t}=e,n=(0,o._)(e,["children"]);return(0,a.jsx)(s.ql,(0,i._)((0,r._)({},n),{helmetData:c,children:t}))}},392625:function(e,t,n){"use strict";n.d(t,{A:function(){return S}});var r=n(629686),i=n(402748);n(490629);var o=n(882742),a=n(684289),s=n(707410),c=n(776325),l=n(314228),u=n(451158),f=n(774088),h=n(619842),d=n(996589),p=n(976224),g=n(608614),m=n(504336),y=n(257183),v=n(18985),b=n(819245);let w=["compilers","filepath","hastPlugins","mdPlugins","skipExport","wrapExport"],_=!1;function S(e){let t=e||{},n=-1;for(;++n<w.length;){let e=w[n];e in t&&(0,o.t1)("Unexpected removed option `"+e+"`; see <https://mdxjs.com/migrating/v2/> on how to migrate")}"detect"===t.format&&(0,o.t1)("Unexpected `format: 'detect'`, which is not supported by `createProcessor`, expected `'mdx'` or `'md'`"),("classic"===t.jsxRuntime||t.pragma||t.pragmaFrag||t.pragmaImportSource)&&!_&&(_=!0);let S=(0,d.l)().use(f.Z);"md"!==t.format&&S.use(u.Z);let T=t.remarkRehypeOptions||{};return S.use(v.U).use(t.remarkPlugins||[]).use(h.Z,(0,i._)((0,r._)({},T),{allowDangerousHtml:!0,passThrough:[...T.passThrough||[],...b.z]})).use(t.rehypePlugins||[]),"md"===t.format&&S.use(y.M),S.use(l.Z,t).use(g.V,t).use(m.A,t),!t.jsx&&S.use(a.Z,t).use(p.k,t),S.use(s.Z).use(c.Z,t).use(t.recmaPlugins||[]),S}}}]); |