2 lines
87 KiB
Plaintext
2 lines
87 KiB
Plaintext
/*! For license information please see 12169.0263ece0.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,a=t.length;i<a;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,a=/>/g,o=/&#([a-zA-Z0-9]*);?/gim,s=/"/g,l=/:?/gim,c=/&newline;?/gim,u=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,d=/u\s*r\s*l\s*\(.*/gi,h=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,f=/"/g,p=function(e){return e.replace(i,"<").replace(a,">")},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 v(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 y(e){var t,n,r,i,a,o,s,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",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,a=(3&t)<<4|(n=e.charCodeAt(u++))>>4,o=(15&n)<<2|(r=e.charCodeAt(u++))>>6,s=63&r,isNaN(n)?o=s=64:isNaN(r)&&(s=64),c=c+l.charAt(i)+l.charAt(a)+l.charAt(o)+l.charAt(s);return c}function b(e){var t,n,r,i,a,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l="",c=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");c<e.length;)t=s.indexOf(e.charAt(c++))<<2|(i=s.indexOf(e.charAt(c++)))>>4,n=(15&i)<<4|(a=s.indexOf(e.charAt(c++)))>>2,r=(3&a)<<6|(o=s.indexOf(e.charAt(c++))),l+=String.fromCharCode(t),64!==a&&(l+=String.fromCharCode(n)),64!==o&&(l+=String.fromCharCode(r));return function(e){for(var t="",n=0,r=0,i=0,a=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&(a=e.charCodeAt(n+1))),n+=2):(a=e.charCodeAt(n+1),t+=String.fromCharCode((15&r)<<12|(63&a)<<6|63&(i=e.charCodeAt(n+2))),n+=3);return t}(l)}function C(e,t,n){var r="",i=0,a=!1,o=!1,s=0,l=e.length,c="",u="";e:for(s=0;s<l;s++){var d=e.charAt(s);if(!1===a){if("<"===d){a=s;continue}}else if(!1===o){if("<"===d){r+=n(e.slice(i,s)),a=s,i=s;continue}if(">"===d||s===l-1){r+=n(e.slice(i,a)),c=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(a,s+1)),r+=t(a,r.length,c,u,"</"===u.slice(0,2)),i=s+1,a=!1;continue}if('"'===d||"'"===d)for(var h=1,f=e.charAt(s-h);""===f.trim()||"="===f;){if("="===f){o=d;continue e}f=e.charAt(s-++h)}}else if(d===o){o=!1;continue}}return i<l&&(r+=n(e.substr(i))),r}function w(e,t){var n=0,i=0,a=[],o=!1,s=e.length;function l(e,n){if(!((e=(e=g.trim(e)).replace(r,"").toLowerCase()).length<1)){var i=t(e,n||"");i&&a.push(i)}}for(var c=0;c<s;c++){var u=e.charAt(c),d=void 0;if(!1!==o||"="!==u){if(!1===o||c!==i){if(/\s|\n|\t/.test(u)){if(e=e.replace(/\s|\n|\t/g," "),!1===o){if(-1===(d=function(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,c))){l(g.trim(e.slice(n,c))),o=!1,n=c+1;continue}c=d-1;continue}if(-1===(d=function(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}return -1}(e,c-1))){l(o,v(g.trim(e.slice(n,c)))),o=!1,n=c+1;continue}}}else{if(-1===(d=e.indexOf(u,c+1)))break;l(o,g.trim(e.slice(i+1,d))),o=!1,n=(c=d)+1}}else o=e.slice(n,c),n=c+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,c+1)}return n<e.length&&(!1===o?l(e.slice(n)):l(o,v(g.trim(e.slice(n))))),g.trim(a.join(" "))}function _(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(o,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})).replace(l,":").replace(c," "))}(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)||(d.lastIndex=0,d.test(n)&&(u.lastIndex=0,u.test(n)))))return"";return n=function(e){return e=p(e=e.replace(f,"""))}(n)}var T=function(e){return"string"==typeof e?e.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},S=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=_,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,a,o,s=this.options,l=s.whiteList,c=s.onTag,u=s.onIgnoreTag,d=s.onTagAttr,h=s.onIgnoreTagAttr,f=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),a=[],o=!1,u=(m={onIgnoreTag:function(e,t,s){var l;if(l=e,i||-1!==g.indexOf(n,l)){if(s.isClosing){var c="[/removed]",u=s.position+c.length;return a.push([!1!==o?o:s.position,u]),o=!1,c}return o||(o=s.position),"[removed]"}return r(e,t,s)},remove:function(e){var t="",n=0;return g.forEach(a,function(r){t+=e.slice(n,r[0]),n=r[1]}),t+=e.slice(n)}}).onIgnoreTag);var v=C(e,function(e,t,n,r,i){var a={sourcePosition:e,position:t,isClosing:i,isWhite:Object.prototype.hasOwnProperty.call(l,n)},o=c(n,r,a);if(null!=o)return o;if(a.isWhite){if(a.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=l[n],v=w(s.html,function(e,t){var r=-1!==g.indexOf(m,e),i=d(n,e,t,r);return null==i?r?(t=f(n,e,t,null))?"".concat(e,'="').concat(t,'"'):e:null==(i=h(n,e,t,r))?void 0:i:i});return r="<".concat(n),v&&(r+=" ".concat(v)),s.closing&&(r+=" /"),r+=">"}return null==(o=u(n,r,a))?p(r):o},p);return m&&(v=m.remove(v)),v},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")(),x=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 a=(A.Slardar.config()||{}).bid;if(a)return a}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}()),k=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 I(e,t){return x.setConfig(t),new S(t).process(e)}function P(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 D=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 E(e,t){if(void 0===e&&(e=""),"string"!=typeof e)return!0;if(e=D(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 O=function(e,t){var n,r,i="<%= isSaveValidUrl =>";if("string"!=typeof e||(r=Number("<%= urlLimit =>"),void 0!==n&&(r=n),"NaN"!==e.toString()&&-1!==r&&e.length>=r)||E(e,t))return e;try{if(!0===(i=JSON.parse(i))||"true"===i){var a=new URL(e);return a.origin+a.pathname}}catch(e){}return"#"};function R(e,t,r){if(void 0===e&&(e=""),void 0===t&&(t=[]),"string"!=typeof e)return!0;if(!E(e=D(e)))return!1;var i,a={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]},o=a.scheme,s=a.host;return r?!!r(e):!(!o||!s)&&(!g.includes(["http","https","file"],o)||("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:[]},L={collect:null,initCollect:function(){this.collect={whiteList:{},filterProtocol:[]}},removeCollect:function(){var e=k(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?L.domainWhiteList&&Array.isArray(L.domainWhiteList)&&L.domainWhiteList.length>0&&!R(r,n([],L.domainWhiteList,!0))?"":"".concat(t,'="').concat(O(r,function(e){var t;null===(t=L.collect)||void 0===t||t.filterProtocol.push(e)}),'"'):e&&(g.indexOf(["style","class","id"],t)>-1||t.indexOf("data-")>-1)?"".concat(t,'="').concat(r,'"'):(L.collect.whiteList[e]=L.collect.whiteList[e]||[],void L.collect.whiteList[e].push(t))},onIgnoreTag:function(e,t){if("style"===e)return t;C(t,function(e,t,n,r){w(P(r).html.replace("/",""),function(e){L.collect.whiteList[n]=L.collect.whiteList[n]||[],L.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 a=0,o=g.keys(e);a<o.length;a++)n[t=o[a]]=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 N={},j="merge";g.includes(j,"override")&&(L.whiteList=N.whiteList),g.includes(j,"merge")&&L.setWhiteList(N.whiteList)}catch(e){}var M=function(e,t){for(var n={},r=0,i=g.keys(e);r<i.length;r++){var a=i[r];Array.isArray(e[a])?n[a]=g.from(e[a]):n[a]=M({},e[a])}for(var o=0,s=g.keys(t);o<s.length;o++)(a=s[o])in e?Array.isArray(e[a])?n[a]=e[a].concat(t[a]):n[a]=M(e[a],t[a]):Array.isArray(t[a])?n[a]=g.from(t[a]):n[a]=M({},t[a]);return n},V={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 U="merge";g.includes(U,"override")&&(V=F),g.includes(U,"merge")&&(V=M(V,F))}catch(e){}var B={mode:"black",whiteList:{},blackConfig:V,collect:null,initCollect:function(){B.collect={blackList:{},blackTags:[],blackAttrs:[],blackAttrRegExps:[],filterAttrs:[],filterList:{},filterProtocol:[]}},removeCollect:function(){var e=k(B.collect),t=e.count,n=e.ret;return B.collect=null,{collectKey:0===t?null:JSON.stringify(n),collectMode:"black"}},onIgnoreTag:function(e,t){var n;if(!g.includes(V.blackTags,e))return C(t,function(e,t,n,r,i){if(-1!==n.indexOf("/"))return p(r);if(i)return"</".concat(n,">");var a=P(r),o=w(a.html,function(e,t){var r,i=0;if(V.blackList[n]&&g.includes(V.blackList[n],e)&&(B.collect.blackList[n]=B.collect.blackList[n]||[],B.collect.blackList[n].push(e),i++),V.blackAttrRegExps.length&&V.blackAttrRegExps.some(function(t){return t.test(e)})&&g.forEach(V.blackAttrRegExps,function(t){t.test(e)&&(B.collect.blackAttrRegExps.push("".concat(t.toString(),"->").concat(e)),i++)}),V.blackAttrs.length&&g.includes(V.blackAttrs,e)&&(V.blackAttrs.push(e),i++),!i){if(V.filterList&&V.filterList[n]&&g.includes(V.filterList[n],e)){var a=O(t,function(e){var t;null===(t=B.collect)||void 0===t||t.filterProtocol.push(e)});return a!==t&&(B.collect.filterList[n]=B.collect.filterList[n]||[],B.collect.filterList[n].push(e)),t?"".concat(e,"='").concat(a,"'"):e}return V.filterAttrs&&g.includes(V.filterAttrs,e)?((a=O(t,function(e){var t;null===(t=B.collect)||void 0===t||t.filterProtocol.push(e)}))!==t&&(null===(r=B.collect)||void 0===r||r.filterAttrs.push(e)),t?"".concat(e,"='").concat(a,"'"):e):t?"".concat(e,"='").concat(t,"'"):e}});return r="<".concat(n),o&&(r+=" ".concat(o)),a.closing&&(r+=" /"),r+=">"},p);null===(n=B.collect)||void 0===n||n.blackTags.push(e)}},$=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")},W=function(e){return function(n,r,i){if(!n||"string"!=typeof n)return n;var a=r;e===I&&(a=L).initCollect();var o=e(n,a);if(T(o)===T(n))return n;if(!i)return o;var s=i.logType,l=$(i),c=a.removeCollect();return x.report(t(t({type:s,disposition:l},c),{sourceText:y(n),filterText:y(o)})),"enforce"===l?o:n}},z=W(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 S(t).process(e)}),H=W(I),X=function(e,t,n){var r=[],i=O(e,function(e){r.push(e)});if(i===e)return e;r=g.from(g.uniq(r));var a=t||n||{};if(!a)return i;var o=a.logType,s=$(n);return x.report({type:o,disposition:s,collectKey:r.join("___"),collectData:JSON.stringify(r),collectMode:"black",sourceText:y(e),filterText:y(i)}),"enforce"===s?i:e},K=A._xssProject||{},Y=A.xssNamespace||{},J="3.0.26",G={FilterXSS:S,version:J,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:z,_filterXSS:H,filterUrl:X,Config:L,BlackConfig:B,project:K,setProjectName:function(e){K[e]=this,A._xssProjectName=e}};Y.douyin_web=G,A.xssNamespace=Y,A.Math&&!A.Math.xssNamespace&&(A.Math.xssNamespace=Y),K[J]=G,A.globalThis=A,A.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:G},A.xss=G,A.isSafeUrl=R,A.isSafeDomain=R,A.isSafeProtocol=E,A._xssProject=K,A._xssProjectName&&(K[A._xssProjectName]=G);var q=G.setProjectName.bind(G);e.BlackConfig=B,e.Config=L,e.FilterXSS=S,e._filterXSS=H,e.filterUrl=X,e.filterXSS=z,e.isSafeDomain=R,e.isSafeProtocol=E,e.isSafeUrl=R,e.project=K,e.setProjectName=q,e.setXssNamespace=function(e){var t=e.appId,n=e.bid,r=e.region;Y[t]=G;L.bid=n,L.region=r,L.enabled=!0},e.xssNamespace=Y,Object.defineProperty(e,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["12169"],{556941:function(e,t,n){"use strict";var r=n(101199),i=n(994298);let a=(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:"M1 5.96a1 1 0 0 1 1.59-.8l8.3 6.03a1 1 0 0 1 0 1.62l-8.3 6.03a1 1 0 0 1-1.59-.8V5.96Z",fill:"currentColor"}),r.createElement("path",{d:"M12 5.96a1 1 0 0 1 1.59-.8l8.3 6.03a1 1 0 0 1 0 1.62l-8.3 6.03a1 1 0 0 1-1.59-.8V5.96Z",fill:"currentColor"}))},"fast_forward");t.Z=a},129296:function(e,t,n){"use strict";n.d(t,{MU:function(){return r.MU},Vp:function(){return r.Vp},Xw:function(){return a.Xw},Z1:function(){return a.Z1},bG:function(){return r.bG},lS:function(){return i.lS},ln:function(){return a.ln},pH:function(){return a.pH}}),n(394858);var r=n(98013),i=n(685114),a=n(140381)},993069:function(e,t,n){"use strict";n.d(t,{aP:function(){return c},gi:function(){return s},k6:function(){return l}});var r=n(133266),i=n(440608);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=(0,i.p)(),s={InitTemplateStart:"init_template_start",InitTemplateEnd:"init_template_end",InitContainerStart:"init_container_start",InitContainerEnd:"init_container_end"},l={TemplateLoadError:"template_load_error",ContainerLoadError:"container_load_error",LynxProductTypeError:"lynx_product_type_error"},c=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),a(this,"preTime",null),a(this,"markTimingInternal",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";!n.preTime&&(n.preTime=Date.now());var r=Date.now();if(e.includes("end")){var i=r-n.preTime;n.sendTiming(e.replace("_end",""),i,t)}n.preTime=r}),a(this,"markErrorEvent",function(e,t,r){n.sendError(e,t,r)}),a(this,"sendTiming",function(e,t,n){r.ZP.report({ev_type:"performance",payload:{type:"pref",name:e,value:t,isSupport:!1,isCustom:!0,extra:{type:n}}})}),a(this,"sendError",function(e,t,n){var i;null===(i=r.ZP.sendEvent)||void 0===i||i.call(r.ZP,{name:e,metrics:{status_code:n||0},categories:{url:t}})}),r.ZP.init({bid:t,transport:{get:o.get,post:o.post},useLocalConfig:!1}),r.ZP.start()}},933524:function(e,t,n){"use strict";var r=n(101199);n(824184);function i(e,t){if(e){if("string"==typeof e)return a(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 a(e,t)}}function a(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}t.Z=function(e,t){var n,o,s,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],c=(0,r.useRef)();var u=(o=2,function(e){if(Array.isArray(e))return e}(n=(0,r.useState)(!1))||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&null!=s.return&&s.return()}finally{if(i)throw a}}return n}}(n,2)||i(n,o)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=u[0],h=u[1],f=(0,r.useCallback)(function(e){h(e[0].isIntersecting)},[]);return(0,r.useLayoutEffect)(function(){var n=c.current;e&&(n="function"==typeof e?e():e);var r=new IntersectionObserver(f,t);return n&&r.observe(n),function(){return r.disconnect()}},[c.current,e].concat(function(e){if(Array.isArray(e))return a(e)}(s=l)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(s)||i(s)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),[c,d]}},63270:function(e,t,n){"use strict";n.d(t,{AG:function(){return h},DA:function(){return c},E1:function(){return v},KM:function(){return C},Kr:function(){return l},Om:function(){return d},XM:function(){return m},nN:function(){return u},nl:function(){return f},qW:function(){return b},ry:function(){return p},xr:function(){return g},yD:function(){return y}});var r,i,a,o,s,l=((r=l||{})[r.Url=0]="Url",r[r.BdDid=1]="BdDid",r[r.SessionInCookie=2]="SessionInCookie",r[r.TTWIDInCookie=3]="TTWIDInCookie",r);var c=((i=c||{}).Protobuf="protobuf",i.Json="json",i);var u=((a=u||{}).Anchor="anchor",a.Audience="audience",a);var d=((o=d||{})[o.Polling=0]="Polling",o[o.Socket=1]="Socket",o[o.PollingWhenSocketConnecting=2]="PollingWhenSocketConnecting",o);var h=((s=h||{}).Close="close",s.Ack="ack",s.Msg="msg",s.Hb="hb",s);let f=/(^|\.)Webcast(Open)?/,p="180800",g="/webcast/im/fetch/",m=1e4,v=1e4,y=1e3,b=1e4,C="__mocked__"},376641:function(e,t,n){"use strict";n.d(t,{$:function(){return r}});let r=e=>new TextEncoder().encode(e)},68546:function(e,t,n){"use strict";n.d(t,{P:function(){return r}});let r=e=>Object.keys(e).reduce((t,n)=>{var r;return`${t}${t?"&":""}${n}=${null!=(r=e[n])?r:""}`},"")},737588:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return(e<0?"-":"")+n};e.exports=t.default},667954:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(726588),i=n(144256);function a(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e),n=t.getUTCDay();return t.setUTCDate(t.getUTCDate()-((n<1?7:0)+n-1)),t.setUTCHours(0,0,0,0),t}},785508:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(726588),i=n(144256);function a(e){(0,i.Z)(1,arguments);var t=(0,r.Z)(e).getDay();return 0===t||6===t}},261937:function(e,t,n){"use strict";n.d(t,{z:function(){return h}});var r=n(315355),i=n(919209),a=n(732905),o=n(625813),s=n(92833),l=n(272787),c=n(483803),u=n(443826),d=n(19470),h=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return e=t.call.apply(t,[this].concat(o)),(0,l.Z)((0,a.Z)(e),"priority",70),(0,l.Z)((0,a.Z)(e),"incompatibleTokens",["h","H","k","t","T"]),e}return(0,i.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"K":return(0,d.ie)(u.z.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,d.ZL)(t.length,e)}}},{key:"validate",value:function(e,t){return t>=0&&t<=11}},{key:"set",value:function(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}}]),n}(c._)},780430:function(e,t,n){"use strict";n.d(t,{U:function(){return d}});var r=n(315355),i=n(919209),a=n(732905),o=n(625813),s=n(92833),l=n(272787),c=n(483803),u=n(19470),d=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return e=t.call.apply(t,[this].concat(o)),(0,l.Z)((0,a.Z)(e),"priority",120),(0,l.Z)((0,a.Z)(e),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),e}return(0,i.Z)(n,[{key:"parse",value:function(e,t,n){switch(t){case"Q":case"QQ":return(0,u.ZL)(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(e,t){return t>=1&&t<=4}},{key:"set",value:function(e,t,n){return e.setUTCMonth((n-1)*3,1),e.setUTCHours(0,0,0,0),e}}]),n}(c._)},412884:function(e,t,n){"use strict";n.d(t,{l:function(){return d}});var r=n(315355),i=n(919209),a=n(732905),o=n(625813),s=n(92833),l=n(272787),c=n(483803),u=n(19470),d=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return e=t.call.apply(t,[this].concat(o)),(0,l.Z)((0,a.Z)(e),"priority",40),(0,l.Z)((0,a.Z)(e),"incompatibleTokens","*"),e}return(0,i.Z)(n,[{key:"parse",value:function(e){return(0,u.n8)(e)}},{key:"set",value:function(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}}]),n}(c._)},674007:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(724989),i=n(144256),a=n(557094);function o(e,t){(0,i.Z)(1,arguments);var n,o,g,m=(0,a.Z)(null!==(n=null==t?void 0:t.additionalDigits)&&void 0!==n?n:2);if(2!==m&&1!==m&&0!==m)throw RangeError("additionalDigits must be 0, 1 or 2");if(!("string"==typeof e||"[object String]"===Object.prototype.toString.call(e)))return new Date(NaN);var v=function(e){var t,n={},r=e.split(s.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?t=r[0]:(n.date=r[0],t=r[1],s.timeZoneDelimiter.test(n.date)&&(n.date=e.split(s.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=s.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(v.date){var y=function(e,t){var n=RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:null===a?i:100*a,restDateString:e.slice((r[1]||r[2]).length)}}(v.date,m);o=function(e,t){if(null===t)return new Date(NaN);var n=e.match(l);if(!n)return new Date(NaN);var r=!!n[4],i=d(n[1]),a=d(n[2])-1,o=d(n[3]),s=d(n[4]),c=d(n[5])-1;if(r)return!function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(t,s,c)?new Date(NaN):function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7;return r.setUTCDate(r.getUTCDate()+((t-1)*7+n+1-i)),r}(t,s,c);var u=new Date(0);return!function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(f[t]||(p(e)?29:28))}(t,a,o)||!function(e,t){return t>=1&&t<=(p(e)?366:365)}(t,i)?new Date(NaN):(u.setUTCFullYear(t,a,Math.max(i,o)),u)}(y.restDateString,y.year)}if(!o||isNaN(o.getTime()))return new Date(NaN);var b=o.getTime(),C=0;if(v.time&&isNaN(C=function(e){var t=e.match(c);if(!t)return NaN;var n=h(t[1]),i=h(t[2]),a=h(t[3]);return!function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,i,a)?NaN:n*r.vh+i*r.yJ+1e3*a}(v.time)))return new Date(NaN);if(v.timezone){if(isNaN(g=function(e){if("Z"===e)return 0;var t=e.match(u);if(!t)return 0;var n="+"===t[1]?-1:1,i=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return!function(e,t){return t>=0&&t<=59}(i,a)?NaN:n*(i*r.vh+a*r.yJ)}(v.timezone)))return new Date(NaN)}else{var w=new Date(b+C),_=new Date(0);return _.setFullYear(w.getUTCFullYear(),w.getUTCMonth(),w.getUTCDate()),_.setHours(w.getUTCHours(),w.getUTCMinutes(),w.getUTCSeconds(),w.getUTCMilliseconds()),_}return new Date(b+C+g)}var s={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},l=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,c=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,u=/^([+-])(\d{2})(?::?(\d{2}))?$/;function d(e){return e?parseInt(e):1}function h(e){return e&&parseFloat(e.replace(",","."))||0}var f=[31,null,31,30,31,30,31,31,30,31,30,31];function p(e){return e%400==0||e%4==0&&e%100!=0}},796697:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(557094),i=n(209369),a=n(144256);function o(e,t){(0,a.Z)(2,arguments);var n=(0,r.Z)(t);return(0,i.Z)(e,-n)}},599562:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,a=null!=n&&n.width?String(n.width):i;r=e.formattingValues[a]||e.formattingValues[i]}else{var o=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[o]}return r[e.argumentCallback?e.argumentCallback(t):t]}};e.exports=t.default},116439:function(e,t,n){"use strict";var r=n(177405).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(2,arguments);var n=(0,o.default)(t);return(0,i.default)(e,-n)};var i=r(n(301685)),a=r(n(826204)),o=r(n(678296));e.exports=t.default},141549:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},873350:function(){"use strict";Array(20).fill(0).map((e,t)=>" ".repeat(t));Array(200).fill(0).map((e,t)=>"\n"+" ".repeat(t)),Array(200).fill(0).map((e,t)=>"\r"+" ".repeat(t)),Array(200).fill(0).map((e,t)=>"\r\n"+" ".repeat(t)),Array(200).fill(0).map((e,t)=>"\n"+" ".repeat(t)),Array(200).fill(0).map((e,t)=>"\r"+" ".repeat(t)),Array(200).fill(0).map((e,t)=>"\r\n"+" ".repeat(t))},593602:function(e,t,n){var r=n(105723);e.exports=function(e,t,n,i){return r(e,function(e,r,a){t(i,e,n(e),a)}),i}},429422:function(e,t,n){var r=n(222121),i=n(247494);e.exports=function(e,t){return e&&r(t,i(t),e)}},440226:function(e,t,n){var r=n(117161),i=n(633321),a=n(992977);e.exports=function(e,t,n){return t==t?a(e,t,n):r(e,i,n)}},102716:function(e,t,n){var r=n(779020);e.exports=function(e){return r(e)?void 0:e}},861577:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},229757:function(e,t,n){var r=n(710603);e.exports=function(e){return r(e,5)}},22186:function(e,t,n){var r=n(62965),i=n(431356),a=n(610972);e.exports=function(e){return"string"==typeof e||!i(e)&&a(e)&&"[object String]"==r(e)}},891779:function(e,t,n){var r=n(873064),i=n(827595),a=n(293137);e.exports=function(e){return a(e)?r(e,!0):i(e)}},277361:function(e,t,n){var r=n(472458);e.exports=function(e){return e&&e.length?r(e):[]}},847198:function(e,t,n){var r=n(435463),i=/%[sdv%]/g,a=function(e){var t=1,n=arguments,r=n.length;return e.replace(i,function(e){if(t>=r)return e;var i=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}})},o=function(e,t,n){var r=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var i=0;i<t.names.length;i+=1){var o=t.names[i];t.name?r.push(n[t.name][o]):r.push(n[t.names[i]])}else r.push(n[t.name]);return a.apply(null,r)},s=["v","o","s","i","u","e","p","c","b","t","r","z","a"],l=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach(function(e){null==e.payloads&&(e.payloads="")});var n=t.outerOrder||s,i=t.innerOrder||l,a=[];return n.forEach(function(t){r[t].forEach(function(n){n.name in e&&null!=e[n.name]?a.push(o(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach(function(e){a.push(o(t,n,e))})})}),e.media.forEach(function(e){a.push(o("m",r.m[0],e)),i.forEach(function(t){r[t].forEach(function(n){n.name in e&&null!=e[n.name]?a.push(o(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach(function(e){a.push(o(t,n,e))})})})}),a.join("\r\n")+"\r\n"}},517478:function(e,t,n){"use strict";var r=n(956848);t.Z=function(e){return"string"==typeof e&&r.Z.test(e)}},354793:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addObserver=function(e,t){return!c&&(c=new l),c.addObserver(e,t),c},t.destroyObserver=function(e,t){c.destroyObserver(e,t)},t.unObserver=function(e,t){c.unObserver(e,t)};var r=n(502571),i=n(915605);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 o(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,s(r.key),r)}}function s(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 l=function(){var e,t,n;function a(){var e,t,n,i=this;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),e=this,t="__trigger",n=function(e){var t=new Date().getTime();i.timeStamp=t;for(var n=0;n<e.length;n++)i.__runHandler(e[n].target)},(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,this.__handlers=[],this.timeStamp=0,this.observer=null,!!window.ResizeObserver)try{this.observer=new window.ResizeObserver((0,r.throttle)(this.__trigger,100,{trailing:!0})),this.timeStamp=new Date().getTime()}catch(e){}}return e=a,t=[{key:"addObserver",value:function(e,t){if(!!this.observer){this.observer&&this.observer.observe(e);for(var n=e.getAttribute(i.PLATER_ID),r=this.__handlers,a=-1,o=0;o<r.length;o++)r[o]&&e===r[o].target&&(a=o);a>-1?this.__handlers[a].handler=t:this.__handlers.push({target:e,handler:t,playerId:n})}}},{key:"unObserver",value:function(e){var t=-1;this.__handlers.map(function(n,r){e===n.target&&(t=r)});try{this.observer&&this.observer.unobserve(e)}catch(e){}this.observer&&this.observer.unobserve(e),t>-1&&this.__handlers.splice(t,1)}},{key:"destroyObserver",value:function(){this.observer&&this.observer.disconnect(),this.observer=null,this.__handlers=null}},{key:"__runHandler",value:function(e){for(var t=this.__handlers,n=0;n<t.length;n++)if(t[n]&&e===t[n].target){try{t[n].handler(e)}catch(e){}return!0}return!1}}],o(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),a}(),c=null},471229:function(e,t,n){"use strict";n.r(t)},420656:function(e,t,n){"use strict";n.r(t)},140215:function(e,t,n){"use strict";n.r(t)},551628:function(e,t,n){"use strict";n.r(t)},703155:function(e,t,n){"use strict";n(932651),n(706056);var r=n(101199),i=n(426337),a=n(469935),o=n.n(a),s=n(622689),l=n.n(s),c=n(748521);n(448846);var u=n(367345),d=n(343388),h=n(681742),f=n(736857),p=n(678503),g=n(228968),m=n(620862),v=n(209873),y=n(48795);let b=g.U.PREFIX,{CHAT_ALIGN:C,MODE:w,SEND_HOT_KEY:_,MESSAGE_STATUS:T}=g.j;class S extends i.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{getContainerRef:()=>{var e;return null===(e=this.containerRef)||void 0===e?void 0:e.current},setWheelScroll:e=>{this.setState({wheelScroll:e})},notifyChatsChange:e=>{let{onChatsChange:t}=this.props;t&&t(e)},notifyLikeMessage:e=>{let{onMessageGoodFeedback:t}=this.props;t&&t(e)},notifyDislikeMessage:e=>{let{onMessageBadFeedback:t}=this.props;t&&t(e)},notifyCopyMessage:e=>{let{onMessageCopy:t}=this.props;t&&t(e)},notifyClearContext:()=>{let{onClear:e}=this.props;e&&e()},notifyMessageSend:(e,t)=>{let{onMessageSend:n}=this.props;n&&n(e,t)},notifyInputChange:e=>{let{onInputChange:t}=this.props;t&&t(e)},setBackBottomVisible:e=>{this.setState(t=>t.backBottomVisible!==e?{backBottomVisible:e}:null)},registerWheelEvent:()=>{this.adapter.unRegisterWheelEvent();let e=this.containerRef.current;if(!!e)this.wheelEventHandler=e=>{var t;if((null===(t=this.scrollTargetRef)||void 0===t?void 0:t.current)===e.currentTarget)this.adapter.setWheelScroll(!0),this.adapter.unRegisterWheelEvent()},e.addEventListener("wheel",this.wheelEventHandler)},unRegisterWheelEvent:()=>{if(this.wheelEventHandler){let e=this.containerRef.current;if(!!e){e.removeEventListener("wheel",this.wheelEventHandler);this.wheelEventHandler=null}}},notifyStopGenerate:e=>{let{onStopGenerator:t}=this.props;t&&t(e)},notifyHintClick:e=>{let{onHintClick:t}=this.props;t&&t(e)},setUploadAreaVisible:e=>{this.setState({uploadAreaVisible:e})},manualUpload:e=>{let t=this.uploadRef.current;t&&t.insert(e)},getDropAreaElement:()=>{var e;return null===(e=this.dropAreaRef)||void 0===e?void 0:e.current},getDragStatus:()=>this.dragStatus,setDragStatus:e=>{this.dragStatus=e}})}static getDerivedStateFromProps(e,t){let{chats:n,hints:r}=e,i={};return(n!==t.chats&&(i.chats=null!=n?n:[]),r!==t.cacheHints&&(i.cacheHints=r),Object.keys(i).length)?i:null}componentDidMount(){this.foundation.init()}componentDidUpdate(e,t,n){let{chats:r,hints:i}=this.props,{chats:a,cacheHints:o}=t,{wheelScroll:s}=this.state,l=!1;if(r!==a&&Array.isArray(r)&&Array.isArray(a)){let e=r[r.length-1],t=a[a.length-1];r.length>a.length?(0===a.length||e.id!==t.id)&&(l=!0):r.length===a.length&&r.length&&("complete"!==e.status||e.status!==t.status)&&(l=!0)}i!==o&&i.length>o.length&&(l=!0),!s&&l&&this.foundation.scrollToBottomImmediately()}componentWillUnmount(){this.foundation.destroy()}render(){let{topSlot:e,bottomSlot:t,roleConfig:n,hints:i,onChatsChange:a,onMessageCopy:s,renderInputArea:l,chatBoxRenderConfig:p,align:g,renderHintBox:m,style:C,className:w,showStopGenerate:_,customMarkDownComponents:S,mode:A,showClearContext:x,placeholder:k,inputBoxCls:I,inputBoxStyle:P,hintStyle:D,hintCls:E,uploadProps:O,uploadTipProps:R,sendHotKey:Z,renderDivider:L,markdownRenderProps:N,enableUpload:j}=this.props,{backBottomVisible:M,chats:V,wheelScroll:F,uploadAreaVisible:U}=this.state,B=!1,$=V.length>0&&V[V.length-1],W=!1;if($&&_){let e=(null==$?void 0:$.status)&&[T.LOADING,T.INCOMPLETE].includes(null==$?void 0:$.status);W=e,_&&(B=e)}let{dragUpload:z,clickUpload:H,pasteUpload:X}=this.foundation.getUploadProps(j),K=z?{onDragOver:this.foundation.handleDragOver,onDragStart:this.foundation.handleDragStart,onDragEnd:this.foundation.handleDragEnd}:{};return r.createElement("div",Object.assign({className:o()(`${b}`,w),style:C},K),z&&U&&r.createElement("div",{ref:this.dropAreaRef,className:`${b}-dropArea`,onDragOver:this.foundation.handleContainerDragOver,onDrop:this.foundation.handleContainerDrop,onDragLeave:this.foundation.handleContainerDragLeave},r.createElement("span",{className:`${b}-dropArea-text`},r.createElement(v.Z,{componentName:"Chat"},e=>e.dropAreaText))),r.createElement("div",{className:`${b}-inner`},e,r.createElement("div",{className:`${b}-content`},r.createElement("div",{className:o()(`${b}-container`,{"semi-chat-container-scroll-hidden":!F}),onScroll:this.containerScroll,ref:this.containerRef},r.createElement(f.Z,{align:g,mode:A,chats:V,roleConfig:n,customMarkDownComponents:S,onMessageDelete:this.foundation.deleteMessage,onChatsChange:a,onMessageBadFeedback:this.foundation.dislikeMessage,onMessageGoodFeedback:this.foundation.likeMessage,onMessageReset:this.foundation.resetMessage,onMessageCopy:s,chatBoxRenderConfig:p,renderDivider:L,markdownRenderProps:N}),!!(null==i?void 0:i.length)&&r.createElement(u.Z,{className:E,style:D,value:i,onHintClick:this.foundation.onHintClick,renderHintBox:m}))),M&&!B&&r.createElement("span",{className:`${b}-action`},r.createElement(y.Button,{className:`${b}-action-content ${b}-action-backBottom`,icon:r.createElement(d.Z,{size:"extra-large"}),type:"tertiary",onClick:this.foundation.scrollToBottomWithAnimation})),B&&r.createElement("span",{className:`${b}-action`},r.createElement(y.Button,{className:`${b}-action-content ${b}-action-stop`,icon:r.createElement(h.Z,{size:"extra-large"}),type:"tertiary",onClick:this.foundation.stopGenerate},r.createElement(v.Z,{componentName:"Chat"},e=>e.stop))),r.createElement(c.Z,{showClearContext:x,uploadRef:this.uploadRef,manualUpload:this.adapter.manualUpload,style:P,className:I,placeholder:k,disableSend:W,onClearContext:this.foundation.clearContext,onSend:this.foundation.onMessageSend,onInputChange:this.foundation.onInputChange,renderInputArea:l,uploadProps:O,uploadTipProps:R,sendHotKey:Z,clickUpload:H,pasteUpload:X}),t))}constructor(e){super(e),this.dragStatus=!1,this.resetMessage=()=>{this.foundation.resetMessage(null)},this.clearContext=()=>{this.foundation.clearContext(null)},this.scrollToBottom=e=>{e?this.foundation.scrollToBottomWithAnimation():this.foundation.scrollToBottomImmediately()},this.sendMessage=(e,t)=>{this.foundation.onMessageSend(e,t)},this.containerScroll=e=>{if(this.scrollTargetRef.current=e.target,e.target===e.currentTarget)this.foundation.containerScroll(e)},this.containerRef=r.createRef(),this.uploadRef=r.createRef(),this.dropAreaRef=r.createRef(),this.wheelEventHandler=null,this.foundation=new m.Z(this.adapter),this.scrollTargetRef=r.createRef(),this.state={backBottomVisible:!1,chats:[],cacheHints:[],wheelScroll:!1,uploadAreaVisible:!1}}}S.__SemiComponentName__="Chat",S.propTypes={className:l().string,style:l().object,roleConfig:l().object,chats:l().array,hints:l().array,renderHintBox:l().func,onChatsChange:l().func,align:l().string,chatBoxRenderConfig:l().object,customMarkDownComponents:l().object,onClear:l().func,onMessageDelete:l().func,onMessageReset:l().func,onMessageCopy:l().func,onMessageGoodFeedback:l().func,onMessageBadFeedback:l().func,inputContentConvert:l().func,onMessageSend:l().func,InputBoxStyle:l().object,inputBoxCls:l().string,renderFullInputBox:l().func,placeholder:l().string,topSlot:l().node||l().array,bottomSlot:l().node||l().array,showStopGenerate:l().bool,showClearContext:l().bool,hintStyle:l().object,hintCls:l().string,uploadProps:l().object,uploadTipProps:l().object,mode:l().string,markdownRenderProps:l().object},S.defaultProps=(0,p.GW)(S.__SemiComponentName__,{align:C.LEFT_RIGHT,showStopGenerate:!1,mode:w.BUBBLE,showClearContext:!1,sendHotKey:_.ENTER}),t.Z=S},871101:function(e,t,n){"use strict";let r=n(101199).createContext({});t.Z=r},386551:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}}),n(932651),n(679308),n(490629),n(374954);var r=n(285406),i=n.n(r),a=n(876553),o=n.n(a),s=n(812958),l=n.n(s),c=n(101199),u=n(261606),d=n(426337),h=n(622689),f=n.n(h),p=n(433850),g=n(683213),m=n(155553),v=n(406944);n(766410);var y=n(469935),b=n.n(y),C=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};let w=v.U.PREFIX;class _ extends d.Z{get adapter(){return Object.assign({},super.adapter)}componentDidMount(){this.props.lazyLoad&&this.observerImages()}componentDidUpdate(e){if(this.props.lazyLoad){let t=c.Children.toArray(e.children).map(e=>(0,c.isValidElement)(e)?e.key:null),n=c.Children.toArray(this.props.children).map(e=>(0,c.isValidElement)(e)?e.key:null);!o()(t,n)&&this.observerImages()}}static getDerivedStateFromProps(e,t){let n={};return"currentIndex"in e&&e.currentIndex!==t.currentIndex&&(n.currentIndex=e.currentIndex),"visible"in e&&e.visible!==t.visible&&(n.visible=e.visible),n}componentWillUnmount(){this.previewObserver&&(this.previewObserver.disconnect(),this.previewObserver=null)}render(){let e=this.props,{src:t,className:n,style:r,lazyLoad:a,setDownloadName:o}=e,s=C(e,["src","className","style","lazyLoad","setDownloadName"]),l=Object.assign(Object.assign({},i()(s,["previewCls","previewStyle"])),{className:null==s?void 0:s.previewCls,style:null==s?void 0:s.previewStyle}),{currentIndex:d,visible:h}=this.state,{srcListInChildren:f,newChildren:g,titles:m}=this.loopImageIndex(),v=[...Array.isArray(t)?t:"string"==typeof t?[t]:[],...f];return c.createElement(u.X.Provider,{value:{isGroup:!0,previewSrc:v,titles:m,currentIndex:d,visible:h,lazyLoad:a,previewObserver:this.previewObserver,setCurrentIndex:this.handleCurrentIndexChange,handleVisibleChange:this.handleVisibleChange,setDownloadName:o}},c.createElement("div",{id:this.previewGroupId,style:r,className:b()(`${w}-preview-group`,n)},g),c.createElement(p.Z,Object.assign({},l,{ref:this.previewRef,src:v,currentIndex:d,visible:h,onVisibleChange:this.handleVisibleChange})))}constructor(e){super(e),this.observerImages=()=>{this.previewObserver?this.previewObserver.disconnect():this.previewObserver=new IntersectionObserver(e=>{e.forEach(e=>{var t;let n=null===(t=e.target.dataset)||void 0===t?void 0:t.src;e.isIntersecting&&n&&(e.target.src=n,e.target.removeAttribute("data-src"),this.previewObserver.unobserve(e.target))})},{root:document.querySelector(`#${this.previewGroupId}`),rootMargin:this.props.lazyLoadMargin}),document.querySelectorAll(`.${w}-img`).forEach(e=>this.previewObserver.observe(e))},this.handleVisibleChange=e=>{this.foundation.handleVisibleChange(e)},this.handleCurrentIndexChange=e=>{this.foundation.handleCurrentIndexChange(e)},this.loopImageIndex=()=>{let{children:e}=this.props,t=0,n=[],r=[],i=e=>c.Children.map(e,e=>{var a;if(e&&e.props&&e.type&&e.type.isSemiImage){let{src:i,preview:o,alt:s}=e.props;if(o){let s=l()(o)&&null!==(a=o.src)&&void 0!==a?a:i;return n.push(s),r.push(null==o?void 0:o.previewTitle),c.cloneElement(e,{imageID:t++})}return e}return e&&e.props&&e.props.children?c.cloneElement(e,{children:i(e.props.children)}):e});return{srcListInChildren:n,newChildren:i(e),titles:r}},this.state={currentIndex:e.currentIndex||e.defaultCurrentIndex||0,visible:e.visible||e.currentDefaultVisible||!1},this.foundation=new g.Z(this.adapter),this.previewGroupId=(0,m.Ms)({prefix:"semi-image-preview-group",length:4}),this.previewRef=c.createRef()}}_.propTypes={style:f().object,className:f().string,visible:f().bool,src:f().oneOfType([f().string,f().array]),currentIndex:f().number,defaultCurrentIndex:f().number,defaultVisible:f().bool,maskClosable:f().bool,closable:f().bool,zoomStep:f().number,infinite:f().bool,showTooltip:f().bool,closeOnEsc:f().bool,prevTip:f().string,nextTip:f().string,zoomInTip:f().string,zoomOutTip:f().string,downloadTip:f().string,adaptiveTip:f().string,originTip:f().string,lazyLoad:f().bool,lazyLoadMargin:f().string,preLoad:f().bool,preLoadGap:f().number,previewCls:f().string,previewStyle:f().object,disableDownload:f().bool,zIndex:f().number,renderHeader:f().func,renderPreviewMenu:f().func,getPopupContainer:f().func,onVisibleChange:f().func,onChange:f().func,onClose:f().func,onZoomIn:f().func,onZoomOut:f().func,onPrev:f().func,onNext:f().func,onDownload:f().func,onRotateLeft:f().func,onRatioChange:f().func},_.defaultProps={src:[],lazyLoad:!0,lazyLoadMargin:"0px 100px 100px 0px",closable:!0}},307852:function(e,t,n){"use strict";let r=n(101199).createContext(null);t.Z=r},779374:function(e,t,n){"use strict";let r={code:"zh-CN",currency:"CNY",dateFnsLocale:n(226712).Z,Pagination:{pageSize:"每页条数:${pageSize}",total:"总页数:${total}",jumpTo:"跳至",page:"页"},Modal:{confirm:"确定",cancel:"取消"},Tabs:{more:"更多"},TimePicker:{placeholder:{time:"请选择时间",timeRange:"请选择时间范围"},begin:"开始时间",end:"结束时间",hour:"时",minute:"分",second:"秒",AM:"上午",PM:"下午"},DatePicker:{placeholder:{date:"请选择日期",dateTime:"请选择日期及时间",dateRange:["开始日期","结束日期"],dateTimeRange:["开始日期","结束日期"],monthRange:["开始月份","结束月份"]},presets:"快捷选择",footer:{confirm:"确定",cancel:"取消"},selectDate:"返回选择日期",selectTime:"选择时间",year:"年",month:"月",day:"日",monthText:"${year}年 ${month}",months:{1:"1月",2:"2月",3:"3月",4:"4月",5:"5月",6:"6月",7:"7月",8:"8月",9:"9月",10:"10月",11:"11月",12:"12月"},fullMonths:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12"},weeks:{Mon:"一",Tue:"二",Wed:"三",Thu:"四",Fri:"五",Sat:"六",Sun:"日"},localeFormatToken:{FORMAT_SWITCH_DATE:"yyyy-MM-dd"}},Navigation:{collapseText:"收起侧边栏",expandText:"展开侧边栏"},Popconfirm:{confirm:"确定",cancel:"取消"},Table:{emptyText:"暂无数据",pageText:"显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条",descend:"点击降序",ascend:"点击升序",cancelSort:"取消排序"},Select:{emptyText:"暂无数据",createText:"创建"},Cascader:{emptyText:"暂无数据"},Tree:{emptyText:"暂无数据",searchPlaceholder:"搜索"},List:{emptyText:"暂无数据"},Calendar:{allDay:"全天",AM:"上午${time}时",PM:"下午${time}时",datestring:"日",remaining:"还有${remained}项"},Upload:{mainText:"点击上传文件或拖拽文件到这里",illegalTips:"不支持此类型文件",legalTips:"松手开始上传",retry:"重试",replace:"替换文件",clear:"清空",selectedFiles:"已选择文件",illegalSize:"文件尺寸不合法",fail:"上传失败"},TreeSelect:{searchPlaceholder:"搜索"},Typography:{copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Transfer:{emptyLeft:"暂无数据",emptySearch:"无搜索结果",emptyRight:"暂无内容,可从左侧勾选",placeholder:"搜索",clear:"清空",selectAll:"全选",clearSelectAll:"取消全选",total:"总个数:${total}",selected:"已选个数:${total}"},Form:{optional:"(可选)"},Image:{preview:"预览",loading:"加载中",loadError:"加载失败",prevTip:"上一张",nextTip:"下一张",zoomInTip:"放大",zoomOutTip:"缩小",rotateTip:"旋转",downloadTip:"下载",adaptiveTip:"适应页面",originTip:"原始尺寸"},Chat:{deleteConfirm:"确认删除该会话吗?",clearContext:"上下文已清除",copySuccess:"复制成功",stop:"停止",copy:"复制",copied:"复制成功",dropAreaText:"将文件放到这里"},UserGuide:{skip:"跳过",next:"下一步",prev:"上一步",finish:"完成"},InputNumber:{},JsonViewer:{search:"查找",replace:"替换",replaceAll:"全部替换"},VideoPlayer:{rateChange:"切换速率至 ${rate}",qualityChange:"切换清晰度至${quality}",routeChange:"切换线路至${route}",mirror:"镜像",cancelMirror:"取消镜像",loading:"加载中...",stall:"加载失败",noResource:"暂无资源",videoError:"视频加载错误"}};t.Z=r},634239:function(e,t,n){"use strict";n(679308),n(932651);var r=n(101199),i=n(622689),a=n.n(i),o=n(469935),s=n.n(o),l=n(698805),c=n(559748),u=n(612601),d=n(219311),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};let f=e=>{let{current:t,status:n,children:i,prefixCls:a,initial:o,direction:l,className:f,style:p,onChange:g}=e,m=h(e,["current","status","children","prefixCls","initial","direction","className","style","onChange"]),v=(0,r.useMemo)(()=>{let e=r.Children.toArray(i).filter(e=>(0,r.isValidElement)(e)),s="vertical"===l?null:{width:`${100/e.length}%`};return r.Children.map(e,(e,i)=>{if(!e)return null;let c=o+i,d=Object.assign({stepNumber:`${c+1}`,direction:l},e.props);return"error"===n&&i===t-1&&(d.className=`${a}-next-error`),!e.props.status&&(c===t?d.status=n:c<t?d.status="finish":d.status="wait"),d.onChange=g?()=>{i!==t&&g(i+o)}:void 0,r.createElement(u.Z,{style:s},(0,r.cloneElement)(e,Object.assign({},d)))})},[i,o,a,l,n,t,g]),y=s()(f,{[a]:!0,[`${a}-${l}`]:!0});return r.createElement("div",Object.assign({className:y,style:p,"aria-label":e["aria-label"]},(0,c.Z)(m)),r.createElement(d.Z,{type:"flex",justify:"start"},v))};f.propTypes={prefixCls:a().string,className:a().string,style:a().object,current:a().number,initial:a().number,direction:a().oneOf(["horizontal","vertical"]),status:a().oneOf(["wait","process","finish","error","warning"])},f.defaultProps={prefixCls:l.v.PREFIX,current:0,direction:"horizontal",initial:0,status:"process"},t.Z=f},127243:function(e,t,n){"use strict";n(932651);var r=n(101199),i=n(469935),a=n.n(i),o=n(912077),s=n(170651),l=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};let c=(0,r.forwardRef)((e,t)=>{let{tab:n,size:i,type:c,icon:u,selected:d,closable:h,disabled:f,itemKey:p,deleteTabItem:g,tabPosition:m,handleKeyDown:v,onClick:y}=e,b=l(e,["tab","size","type","icon","selected","closable","disabled","itemKey","deleteTabItem","tabPosition","handleKeyDown","onClick"]),C=(0,r.useMemo)(()=>h?r.createElement(s.Z,{"aria-label":"Close",role:"button",className:`${o.UX.TABS_TAB}-icon-close`,onClick:e=>g(p,e)}):null,[c,h,g,p]),w=(0,r.useCallback)(e=>r.createElement("span",{className:`${o.UX.TABS_BAR}-icon`},e),[]),_=(0,r.useCallback)(e=>{v&&v(e,p,h)},[v,p,h]),T=(0,r.useCallback)(e=>{!f&&y&&y(p,e)},[p,f,y]),S=u?w(u):null,A=a()(o.UX.TABS_TAB,`${o.UX.TABS_TAB}-${c}`,`${o.UX.TABS_TAB}-${m}`,`${o.UX.TABS_TAB}-single`,{[o.UX.TABS_TAB_ACTIVE]:d,[o.UX.TABS_TAB_DISABLED]:f,[`${o.UX.TABS_TAB}-small`]:"small"===i,[`${o.UX.TABS_TAB}-medium`]:"medium"===i});return r.createElement("div",Object.assign({role:"tab",id:`semiTab${p}`,"data-tabkey":`semiTab${p}`,"aria-controls":`semiTabPanel${p}`,"aria-disabled":f?"true":"false","aria-selected":d?"true":"false",tabIndex:d?0:-1,onKeyDown:_,onClick:T,className:A},b,{ref:t}),S,n,C)});c.elementType="Tabs.TabItem",t.Z=c},718858:function(e,t,n){"use strict";n(490629),n(932651);var r=n(101199),i=n(742916),a=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};t.Z=function(e){let{open:t,children:n}=e,o=a(e,["open","children"]),[s,l]=(0,r.useState)(e.open);return(0,r.useEffect)(()=>{setTimeout(()=>{l(!e.open)},0)},[]),r.createElement(i.Z,Object.assign({},o,{isOpen:s}),n)}},282132:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}}),n(679308),n(656562),n(992871),n(490629);var r=n(495312);async function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;for(;r<n;)try{await e.audioWorklet.addModule(t);return}catch(e){if(++r===n)throw e}}async function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{trackId:a}=t,o=new URL(n(556202),n.b);try{return await i(e,o),new AudioWorkletNode(e,"my-worklet-processor",{outputChannelCount:[e.destination.channelCount],processorOptions:{trackId:a}})}catch(e){return r.T.setLoadModuleError(),null}}},839714:function(e,t,n){"use strict";n.d(t,{K:function(){return r}}),n(374954);class r{static decode(e){let t=[],n=0,i=e.length;for(;n<i;){if(e[n]<128){t.push(String.fromCharCode(e[n])),++n;continue}if(e[n]<192);else if(e[n]<224){if(r._checkContinuation(e,n,1)){let r=(31&e[n])<<6|63&e[n+1];if(r>=128){t.push(String.fromCharCode(65535&r)),n+=2;continue}}}else if(e[n]<240){if(r._checkContinuation(e,n,2)){let r=(15&e[n])<<12|(63&e[n+1])<<6|63&e[n+2];if(r>=2048&&(63488&r)!=55296){t.push(String.fromCharCode(65535&r)),n+=3;continue}}}else if(e[n]<248&&r._checkContinuation(e,n,3)){let r=(7&e[n])<<18|(63&e[n+1])<<12|(63&e[n+2])<<6|63&e[n+3];if(r>65536&&r<1114112){r-=65536,t.push(String.fromCharCode(r>>>10|55296)),t.push(String.fromCharCode(1023&r|56320)),n+=4;continue}}t.push(String.fromCharCode(65533)),++n}return t.join("")}static _checkContinuation(e,t,n){if(!(t+n<e.length))return!1;for(;n--;)if((192&e[++t])!=128)return!1;return!0}}},430329:function(e,t,n){"use strict";n.d(t,{U:function(){return i},j:function(){return a}});var r=n(707852);let i={PREFIX:`${r.T}-card`},a={SHADOWS:["hover","always"],TYPE:["grid"]}},431380:function(e,t,n){"use strict";n.d(t,{U:function(){return i}});var r=n(707852);let i={PREFIX:`${r.T}-colorPicker`}},298832:function(e,t,n){"use strict";n.d(t,{Z:function(){return E}}),n(490629),n(374954),n(76375),n(706056),n(228983),n(759943),n(591964),n(117232),n(932651),n(14275);var r=n(390063),i=n.n(r),a=n(876553),o=n.n(a),s=n(22186),l=n.n(s),c=n(812958),u=n.n(c),d=n(198412),h=n.n(d),f=n(277430),p=n(417488),g=n(973372),m=n(320760),v=n(92184),y=n(856445),b=n(64360),C=n(550625),w=n(109841),_=n(254456),T=n(368923),S=n(372038),A=n(109242),x=n(668833),k=n(526540),I=n(646073),P=n(67488),D=n(182811);class E extends y.Z{init(){let e=this.getProp("timeZone");this._isControlledComponent()?this.initFromProps({timeZone:e,value:this.getProp("value")}):this._isInProps("defaultValue")&&this.initFromProps({timeZone:e,value:this.getProp("defaultValue")}),this.initPanelOpenStatus(this.getProp("defaultOpen"))}initFromProps(e){let{value:t,timeZone:n,prevTimeZone:r}=e,i=(Array.isArray(t)?[...t]:(t||0===t)&&[t])||[],a=this.parseWithTimezone(i,n,r);this._adapter.updatePrevTimezone(r),this.clearInputValue(),this._adapter.updateValue(a),this.resetCachedSelectedValue(a),this.initRangeInputFocus(a),this._adapter.needConfirm()&&this._adapter.updateCachedSelectedValue(a)}initRangeInputFocus(e){let{triggerRender:t}=this.getProps();this._isRangeType()&&i()(t)&&0===e.length&&this._adapter.setRangeInputFocus("rangeStart")}parseWithTimezone(e,t,n){let r=[];if(Array.isArray(e)&&e.length)for(let i of e){let e=(i||0===i)&&this._parseValue(i);e?((0,P.Z)(n)&&(e=(0,_.W_)(e,n)),r.push((0,P.Z)(t)?(0,_.YS)(e,t):e)):(0,D.Z)(!0,`[Semi DatePicker] value cannot be parsed, value: ${String(i)}`)}return r}_isMultiple(){return!!this.getProp("multiple")}_parseValue(e){let t;let n=this._adapter.getProp("dateFnsLocale");if(!e&&0!==e)return new Date;if((0,b.Z)(e))t=e;else if(l()(e))t=(0,T.h)(e,this.getProp("format"),void 0,n);else if((0,C.Z)(e))t=new Date(e);else throw TypeError("defaultValue should be valid Date object/timestamp or string");return t}destroy(){this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide()}initPanelOpenStatus(e){(this.getProp("open")||e)&&!this.getProp("disabled")?(this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()):(this._adapter.togglePanel(!1),this._adapter.unregisterClickOutSide())}openPanel(){!this.getProp("disabled")&&(!this._isControlledComponent("open")&&this.open(),this._adapter.notifyOpenChange(!0))}clearInsetInputValue(){let{insetInput:e}=this._adapter.getProps();e&&this._adapter.updateInsetInputValue(null)}resetCachedSelectedValue(e){let{value:t,cachedSelectedValue:n}=this._adapter.getStates(),r=Array.isArray(e)?e:t;!o()(r,n)&&this._adapter.updateCachedSelectedValue(r)}closePanel(){this._isControlledComponent("open")?this.resetInnerSelectedStates():this.close(),this._adapter.notifyOpenChange(!1)}open(){this._adapter.togglePanel(!0),this._adapter.registerClickOutSide()}close(){this._adapter.togglePanel(!1),this.resetInnerSelectedStates(),this._adapter.unregisterClickOutSide()}focus(e){this._isRangeType()?this._adapter.setRangeInputFocus(null!=e?e:"rangeStart"):this._adapter.setInputFocus()}blur(){this._isRangeType()?this._adapter.setRangeInputBlur():this._adapter.setInputBlur()}resetInnerSelectedStates(){setTimeout(()=>{let{value:e,cachedSelectedValue:t}=this._adapter.getStates();!o()(e,t)&&this.resetCachedSelectedValue(e)},0),this.resetFocus(),this.clearInputValue()}resetFocus(e){this._adapter.setRangeInputFocus(!1),this._adapter.notifyBlur(e)}isCachedSelectedValueValid(e){let t=e||this._adapter.getState("cachedSelectedValue"),{type:n}=this._adapter.getProps(),r=!0;switch(!0){case"dateRange"===n:case"dateTimeRange"===n:!this._isRangeValueComplete(t)&&(r=!1);break;default:let i=null==t?void 0:t.filter(e=>e);!(Array.isArray(i)&&i.length)&&(r=!1)}return r}clearInputValue(){this._adapter.updateInputValue(null),this._adapter.updateInsetInputValue(null)}handleInputChange(e,t){let n=this._isMultiple()?this.parseMultipleInput(e):this.parseInput(e),{value:r}=this.getStates();if(this._updateCachedSelectedValueFromInput(e),n&&n.length||""===e){if(h()(t,x.j2.CLEARBTN_CLICKED_EVENT_FLAG)&&this._isControlledComponent("value")){this._notifyChange(n);return}this._updateValueAndInput(n,""===e,e);let i=this._getChangedDates(n);!this._someDateDisabled(i,n)&&!o()(n,r)&&this._notifyChange(n)}else this._adapter.updateInputValue(e)}handleInsetInputChange(e){let{insetInputStr:t,format:n,insetInputValue:r}=e,i=this._isMultiple(),a=i?this.parseMultipleInput(t,n):this.parseInput(t,n),{value:s}=this.getStates();if(this._updateCachedSelectedValueFromInput(t),a&&a.length){let e=this._getChangedDates(a);if(!this._someDateDisabled(e,a)){!o()(a,s)&&(!this._isControlledComponent()&&!this._adapter.needConfirm()&&this._adapter.updateValue(a),this._notifyChange(a));let e=i?this.formatMultipleDates(a):this.formatDates(a);this._adapter.updateInputValue(e)}}this._adapter.updateInsetInputValue(r)}_updateCachedSelectedValueFromInput(e){let t=this.getLooseDateFromInput(e),n=this._getChangedDates(t);!this._someDateDisabled(n,t)&&this.resetCachedSelectedValue(t)}handleInputBlur(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments.length>1&&arguments[1]}handleRangeEndTabPress(e){this._adapter.setRangeInputFocus(!1)}handleInputFocus(e,t){let n=this._adapter.getState("rangeInputFocus");t&&this._adapter.setRangeInputFocus(t),(!t||!["rangeStart","rangeEnd"].includes(n))&&this._adapter.notifyFocus(e,t)}handleSetRangeFocus(e){this._adapter.setRangeInputFocus(e)}handleInputClear(e){this._adapter.notifyClear(e)}handleRangeInputClear(e){let t=[];!this._isControlledComponent("value")&&(this._updateValueAndInput(t,!0,""),this._adapter.updateInsetInputValue(null),this.resetCachedSelectedValue(t)),this._notifyChange(t),this._adapter.setRangeInputFocus(!1),this._adapter.notifyClear(e)}handleRangeInputBlur(e,t){}handleInputComplete(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e?this._isMultiple()?this.parseMultipleInput(e,",",!0):this.parseInput(e):[];if(!(t=t&&t.length?t:this.getState("value"))||!t.length){let e=new Date;t=this._isRangeType()?[e,e]:[e]}this._updateValueAndInput(t);let{value:n}=this.getStates(),r=this._getChangedDates(t);!this._someDateDisabled(r,t)&&!o()(t,n)&&this._notifyChange(t)}parseInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=[],{dateFnsLocale:r,rangeSeparator:i}=this.getProps();if(e&&e.length){let a,o;let s=this.getProp("type"),l=t||this.getProp("format")||(0,S.E)(s),c=new Date;switch(s){case"date":case"dateTime":case"month":o=(a=e?(0,T.h)(e,l,c,r):"")&&(0,f.Z)(a)&&this.localeFormat(a,l),a&&o===e&&(n=[a]);break;case"dateRange":case"dateTimeRange":case"monthRange":let u=e.split(i);o=(a=u&&u.reduce((e,t)=>{let n=t&&(0,T.h)(t,l,c,r);return n&&e.push(n),e},[]))&&a.map(e=>e&&(0,f.Z)(e)&&this.localeFormat(e,l)).join(i),a&&o===e&&(a.sort((e,t)=>e.getTime()-t.getTime()),n=a)}}return n}getLooseDateFromInput(e){return this._isMultiple()?this.parseMultipleInputLoose(e):this.parseInputLoose(e)}parseInputLoose(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=[],{dateFnsLocale:n,rangeSeparator:r,type:i,format:a}=this.getProps();if(e&&e.length){let o,s;let l=a||(0,S.E)(i),c=new Date;switch(i){case"date":case"dateTime":case"month":let u=(0,T.h)(e,l,c,n);(0,b.Z)(u)?(s=this.localeFormat(u,l))===e&&(o=u):o=null,t=[o];break;case"dateRange":case"dateTimeRange":let d=e.split(r);Array.isArray(o=d&&d.reduce((e,t)=>{let r=null,i=(0,T.h)(t,l,c,n);return(0,b.Z)(i)&&(s=this.localeFormat(i,l))===t&&(r=i),e.push(r),e},[]))&&o.every(e=>(0,f.Z)(e))&&o.sort((e,t)=>e.getTime()-t.getTime()),t=o}}return t}parseMultipleInputLoose(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.j2.DEFAULT_SEPARATOR_MULTIPLE,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getProp("max"),i=e.split(t),a=[];for(let e of i){let t=e&&this.parseInputLoose(e);if(!(t=Array.isArray(t)?t:t&&[t])||!t.length)return[];n&&a.filter(e=>!!t.find(t=>(0,p.Z)(e,t)))||a.push(...t);if(r&&r>0&&a.length>r)return[]}return a}parseMultipleInput(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.j2.DEFAULT_SEPARATOR_MULTIPLE,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.getProp("max"),i=e.split(t),a=[];for(let e of i){let t=e&&this.parseInput(e);if(!(t=Array.isArray(t)?t:t&&[t])||!t.length)return[];n&&a.filter(e=>!!t.find(t=>(0,p.Z)(e,t)))||a.push(...t);if(r&&r>0&&a.length>r)return[]}return a}formatDates(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n="",r=this.getProp("rangeSeparator");if(Array.isArray(e)&&e.length){let i=this.getProp("type"),a=t||this.getProp("format")||(0,S.E)(i);switch(i){case"date":case"dateTime":case"month":n=this.localeFormat(e[0],a);break;case"dateRange":case"dateTimeRange":case"monthRange":let o=!(0,w.Z)(e[0]),s=!(0,w.Z)(e[1]);o&&s?n=`${this.localeFormat(e[0],a)}${r}${this.localeFormat(e[1],a)}`:o?n=`${this.localeFormat(e[0],a)}${r}`:s&&(n=`${r}${this.localeFormat(e[1],a)}`)}}return n}formatMultipleDates(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A.j2.DEFAULT_SEPARATOR_MULTIPLE,n=arguments.length>2?arguments[2]:void 0,r=[];if(Array.isArray(e)&&e.length)switch(this.getProp("type")){case"date":case"dateTime":case"month":e.forEach(e=>r.push(this.formatDates([e],n)));break;case"dateRange":case"dateTimeRange":case"monthRange":for(let t=0;t<e.length;t+=2)r.push(this.formatDates(e.slice(t,t+2),n))}return r.join(t)}_updateValueAndInput(e,t,n){let r;if(t||e){r=Array.isArray(e)?e:e?[e]:[];let t=this._getChangedDates(r);!this._isControlledComponent()&&!this._someDateDisabled(t,r)&&!this._adapter.needConfirm()&&this._adapter.updateValue(r)}this._adapter.updateInputValue(n)}handleSelectedChange(e,t){let n,r;let{type:i,format:a,rangeSeparator:s,insetInput:l}=this._adapter.getProps(),{value:c}=this.getStates(),d=this._isControlledComponent(),f=u()(t)?t.fromPreset:t,p=h()(t,"closePanel",!0),g=h()(t,"needCheckFocusRecord",!0),m=Array.isArray(e)?[...e]:e?[e]:[],v=this._getChangedDates(m);if(!this._someDateDisabled(v,m)){if(this.resetCachedSelectedValue(m),n=this._isMultiple()?this.formatMultipleDates(m):this.formatDates(m),l){let e=(0,k.Z)({format:a,type:i}),t=this._isMultiple()?this.formatMultipleDates(m,void 0,e):this.formatDates(m,e);r=(0,I.Z)({inputValue:t,type:i,rangeSeparator:s})}if(this._isRangeType()&&!this._isRangeValueComplete(m)){this._adapter.updateInputValue(n),this._adapter.updateInsetInputValue(r);return}(!d||f)&&(this._updateValueAndInput(m,!0,n),this._adapter.updateInsetInputValue(r));!o()(e,c)&&this._notifyChange(e)}let y=!g||g&&this._adapter.couldPanelClosed();("date"===i&&!this._isMultiple()&&p||"dateRange"===i&&this._isRangeValueComplete(m)&&p&&y)&&this.closePanel()}handleYMSelectedChange(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{currentMonth:t,currentYear:n}=e,{type:r}=this.getProps();if("month"===r){let e=new Date(n.left,t.left-1);this.handleSelectedChange([e])}else{let e=new Date(n.left,t.left-1),r=new Date(n.right,t.right-1);this.handleSelectedChange([e,r])}}handleConfirm(){let{cachedSelectedValue:e,value:t}=this._adapter.getStates(),n=this._isRangeValueComplete(e);if(this._adapter.needConfirm()&&!this._isControlledComponent()&&this._adapter.updateValue(n?e:t),this.closePanel(),n){let{notifyValue:t,notifyDate:n}=this.disposeCallbackArgs(e);this._adapter.notifyConfirm(n,t)}}handleCancel(){this.closePanel();let e=this.getState("value"),{notifyValue:t,notifyDate:n}=this.disposeCallbackArgs(e);this._adapter.notifyCancel(n,t)}handlePresetClick(e,t){let n;let{type:r,timeZone:i}=this.getProps(),a=this.getState("prevTimezone"),o="function"==typeof e.start?e.start():e.start,s="function"==typeof e.end?e.end():e.end;switch(r){case"month":case"dateTime":case"date":n=this.parseWithTimezone([o],i,a),this.handleSelectedChange(n);break;case"dateTimeRange":case"dateRange":n=this.parseWithTimezone([o,s],i,a),this.handleSelectedChange(n,{needCheckFocusRecord:!1})}this._adapter.notifyPresetsClick(e,t)}disposeCallbackArgs(e){let t,n,r=Array.isArray(e)?e:e&&[e]||[],i=this.getProp("timeZone");(0,P.Z)(i)&&(r=r.map(e=>(0,_.W_)(e,i)));let a=this.getProp("type"),o=this.getProp("format")||(0,S.E)(a);switch(a){case"date":case"dateTime":case"month":this._isMultiple()?(t=r.map(e=>e&&this.localeFormat(e,o)),n=[...r]):(t=r[0]&&this.localeFormat(r[0],o),[n]=r);break;case"dateRange":case"dateTimeRange":case"monthRange":t=r.map(e=>e&&this.localeFormat(e,o)),n=[...r]}return{notifyValue:t,notifyDate:n}}_notifyChange(e){if(this._isRangeType()&&!this._isRangeValueComplete(e))return;let{onChangeWithDateFirst:t}=this.getProps(),{notifyValue:n,notifyDate:r}=this.disposeCallbackArgs(e);t?this._adapter.notifyChange(r,n):this._adapter.notifyChange(n,r)}_getChangedDates(e){let t=this._adapter.getProp("type"),{cachedSelectedValue:n}=this._adapter.getStates(),r=[];switch(t){case"dateRange":case"dateTimeRange":let[i,a]=n,[o,s]=e;!(0,g.Z)(o,i)&&r.push(o),!(0,g.Z)(s,a)&&r.push(s);break;default:let l=new Set;for(let t of(n.forEach(e=>l.add((0,m.Z)(e)&&e.valueOf())),e))!l.has((0,m.Z)(t)&&t.valueOf())&&r.push(t)}return r}_someDateDisabled(e,t){let{rangeInputFocus:n}=this.getStates(),r={rangeStart:"",rangeEnd:"",rangeInputFocus:n};if(this._isRangeType()&&Array.isArray(t)){if((0,f.Z)(t[0])){let e=(0,v.Z)(t[0],"yyyy-MM-dd");r.rangeStart=e}if((0,f.Z)(t[1])){let e=(0,v.Z)(t[1],"yyyy-MM-dd");r.rangeEnd=e}}let i=!1;for(let t of e)if(!(0,w.Z)(t)&&this.disabledDisposeDate(t,r)){i=!0;break}return i}localeFormat(e,t){let n=this._adapter.getProp("dateFnsLocale");return(0,v.Z)(e,t,{locale:n})}disposeDateFn(e,t){let n;let{notifyDate:r}=this.disposeCallbackArgs(t),i=Array.isArray(t);n=i===Array.isArray(r)?r:i?[r]:r[0];for(var a=arguments.length,o=Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];return e(n,...o)}disabledDisposeDate(e){let{disabledDate:t}=this.getProps();for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return this.disposeDateFn(t,e,...r)}disabledDisposeTime(e){let{disabledTime:t}=this.getProps();for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return this.disposeDateFn(t,e,...r)}handleTriggerWrapperClick(e){let{disabled:t,triggerRender:n}=this._adapter.getProps(),{rangeInputFocus:r}=this._adapter.getStates();if(!t)this._isRangeType()&&!r&&(this._adapter.isEventTarget(e)?setTimeout(()=>{this.handleInputFocus(e,"rangeStart")},0):i()(n)&&this._adapter.setRangeInputFocus("rangeStart")),this.openPanel()}handlePanelVisibleChange(e){e?(this._adapter.setInsetInputFocus(),setTimeout(()=>{this._adapter.setTriggerDisabled(!0)},0)):this._adapter.setTriggerDisabled(!1)}constructor(e){super(Object.assign({},e)),this.clearRangeInputFocus=()=>{let{type:e}=this._adapter.getProps(),{rangeInputFocus:t}=this._adapter.getStates();"dateTimeRange"===e&&t&&this._adapter.setRangeInputFocus(!1)},this._isRangeType=()=>{let e=this._adapter.getProp("type");return/range/i.test(e)},this._isRangeValueComplete=e=>{let t=!1;return Array.isArray(e)&&(t=!e.some(e=>(0,w.Z)(e))),t}}}},633272:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(856445),i=n(114376);class a extends r.Z{handleVisibleChange(e){this._adapter.setPopVisible(e),this._adapter.notifyVisibleChange(e);let{trigger:t}=this.getProps();if(e&&"click"===t){let e=this._adapter.getPopupId();this.setFocusToFirstMenuItem(e)}}getMenuItemNodes(e){let t=document.getElementById(e);return t?Array.from(t.getElementsByTagName("li")).filter(e=>"false"===e.ariaDisabled):null}setFocusToFirstMenuItem(e){let t=this.getMenuItemNodes(e);t&&(0,i.Br)(t)}setFocusToLastMenuItem(e){let t=this.getMenuItemNodes(e);t&&(0,i.pG)(t)}handleKeyDown(e){var t,n;let r=null===(n=null===(t=e.target)||void 0===t?void 0:t.attributes["data-popupid"])||void 0===n?void 0:n.value,{visible:a}=this._adapter.getStates();switch(e.key){case" ":case"Enter":e.target.click();break;case"ArrowDown":this.setFocusToFirstMenuItem(r),a&&(0,i.Jt)(e);break;case"ArrowUp":this.setFocusToLastMenuItem(r),a&&(0,i.Jt)(e)}}}},866258:function(e,t,n){"use strict";n(932651),n(490629),n(706056);var r=n(795233),i=n.n(r),a=n(198412),o=n.n(a),s=n(856445);class l extends s.Z{init(){this._adapter.collectPane()}_notifyChange(e){let{activeKey:t}=this.getStates();t!==e&&this._adapter.notifyChange(e)}handleTabClick(e,t){this._isInProps("activeKey")?this._notifyChange(e):(this._notifyChange(e),this.handleNewActiveKey(e)),this._adapter.notifyTabClick(e,t)}handleNewActiveKey(e){let{activeKey:t}=this.getStates();t!==e&&this._adapter.setNewActiveKey(e)}getDefaultActiveKey(){let e;let t=this.getProps();return e="activeKey"in t?t.activeKey:"defaultActiveKey"in t?t.defaultActiveKey:this._adapter.getDefaultActiveKeyFromChildren()}handleTabListChange(){this._adapter.collectPane()}handleTabPanesChange(){this._adapter.collectPane(),this._adapter.collectActiveKey()}handleTabDelete(e){this._adapter.notifyTabDelete(e)}determineOrientation(e,t){let{tabPosition:n}=this.getProps();"left"===n?("ArrowUp"===e.key||"ArrowDown"===e.key)&&(this.switchTabOnArrowPress(e,t),this.handlePrevent(e)):("ArrowLeft"===e.key||"ArrowRight"===e.key)&&(this.switchTabOnArrowPress(e,t),this.handlePrevent(e))}handleDeleteKeyDown(e,t,n,r){let{preventScroll:i}=this.getProps();if(r){this.handleTabDelete(n);let r=t.indexOf(e.target);1!==t.length&&t[r+1>=t.length?r-1:r+1].focus({preventScroll:i})}}switchTabOnArrowPress(e,t){let{preventScroll:n}=this.getProps(),r=t.indexOf(e.target),i={ArrowLeft:-1,ArrowUp:-1,ArrowRight:1,ArrowDown:1};i[e.key]&&void 0!==r&&(t[r+i[e.key]]?t[r+i[e.key]].focus({preventScroll:n}):"ArrowLeft"===e.key||"ArrowUp"===e.key?t[t.length-1].focus({preventScroll:n}):("ArrowRight"===e.key||"ArrowDown"==e.key)&&t[0].focus({preventScroll:n}))}constructor(e){super(Object.assign({},e)),this.destroy=i(),this.handlePrevent=e=>{e.stopPropagation(),e.preventDefault()},this.handleKeyDown=(e,t,n)=>{let{preventScroll:r}=this.getProps(),i=[...e.target.parentNode.childNodes].filter(e=>o()(e,"attributes.data-tabkey.value","").includes("semiTab")&&"true"!==o()(e,"attributes.aria-disabled.value",""));switch(e.key){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":this.determineOrientation(e,i);break;case"Backspace":case"Delete":this.handleDeleteKeyDown(e,i,t,n);break;case"Enter":case" ":this.handleTabClick(t,e),this.handlePrevent(e);break;case"Home":i[0].focus({preventScroll:r}),this.handlePrevent(e);break;case"End":i[i.length-1].focus({preventScroll:r}),this.handlePrevent(e)}}}}t.Z=l},653396:function(e,t,n){"use strict";n.d(t,{D:function(){return s},hR:function(){return a},pn:function(){return o},vr:function(){return i}}),n(679308),n(104882),n(374954),n(683656),n(759943),n(490629);var r=function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((r=r.apply(e,t||[])).next())})};let i=1024;function a(e){if(e<i)return`${(e/i).toFixed(2)}KB`;if(e>=i&&e<1048576)return`${(e/i).toFixed(1)}KB`;if(e>=1048576)return`${(e/1048576).toFixed(1)}MB`}function o(e,t){return -1!==e.indexOf(t,e.length-t.length)}function s(e){return r(this,void 0,void 0,function*(){let t=[],n=(e,i)=>r(this,void 0,void 0,function*(){if(i=i||"",e.path=i,e.isFile)t.push(new Promise((t,n)=>{e.file(n=>{e.fullPath&&!n.webkitRelativePath&&(Object.defineProperties(n,{webkitRelativePath:{writable:!0}}),n.webkitRelativePath=e.fullPath.replace(/^\//,""),Object.defineProperties(n,{webkitRelativePath:{writable:!1}})),t(n)},n)}));else if(e.isDirectory){let t=yield function(e){return r(this,void 0,void 0,function*(){return new Promise((t,n)=>{let r=e.createReader(),i=[];!function e(){r.readEntries(n=>{let r=Array.prototype.slice.apply(n);i=i.concat(r),r.length?e():t(i)},n)}()})})}(e);for(let r=0;r<t.length;r++){let a=t[r];yield n(a,`${i}${e.name}/`)}}});try{let r=e.map(e=>n(e.webkitGetAsEntry()));return yield Promise.all(r),yield Promise.all(t)}catch(e){return[]}})}},169775:function(e,t,n){"use strict";n(932651);var r=n(101199);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}let a=r.forwardRef(function(e,t){return r.createElement("svg",i({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",focusable:!1,ref:t},e),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9998 4.50037C9.02034 4.50037 6.55167 6.81159 6.35561 9.78463L5.94855 15.9572H18.0507L17.6441 9.78506C17.4482 6.81184 14.9795 4.50037 11.9998 4.50037ZM7.85236 9.88334C7.99643 7.6987 9.81045 6.00037 11.9998 6.00037C14.1893 6.00037 16.0034 7.69888 16.1473 9.88365L16.4486 14.4572H7.55073L7.85236 9.88334Z",fill:"currentColor"}),r.createElement("path",{d:"M9.75056 19.1392H14.2506V17.6392H9.75056V19.1392Z",fill:"currentColor"}))});a.elementType="Icon",t.Z=a},187048:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r,i=((r=i||{})[r.DESTROYED=0]="DESTROYED",r[r.INITIAL=1]="INITIAL",r[r.INITIALIZED=2]="INITIALIZED",r)},431501:function(e,t,n){"use strict";n(679308),n.e("36737").then(n.bind(n,429284))},351651:function(e,t,n){"use strict";n(679308),Promise.all([n.e("74792"),n.e("19511"),n.e("80030"),n.e("52587"),n.e("9220")]).then(n.bind(n,874381))},66221:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,i,a,o){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,i,a,o),s};e.exports=t.default},888687:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=String(t),l=n||{},c=o.match(s);if(c){var u=(0,a.default)(e,l);o=c.reduce(function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],a=e.replace(t,"'"+i.default[t[0]](u,t,null,l)+"'");return r?a.substring(0,n-1)+a.substring(n+1):a},o)}return(0,r.default)(e,o,l)};var r=o(n(580227)),i=o(n(207724)),a=o(n(538801));function o(e){return e&&e.__esModule?e:{default:e}}var s=/([xXOz]+)|''|'(''|[^'])+('|$)/g;e.exports=t.default},693963:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(634771);function i(e,t){if("object"!=(0,r.Z)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.Z)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},892353:function(e,t){"use strict";t.Z=["md","markdown","mdown","mkdn","mkd","mdwn","mkdown","ron"]},221803:function(e,t,n){"use strict";function r(e,t,n){let r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=i(n[r])}return t}(n):i(t),o={},s=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<r.length;){let e=r[l];(a||0!==l||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?s.push(e):s.push(...e.children)}let c=r[r.length-1];c&&(a||"element"!==c.type||"p"!==c.tagName)&&s.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}n.d(t,{q:function(){return r}});function i(e){let t=e.spread;return null==t?e.children.length>1:t}},930676:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(368183);let i={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let i,a,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),s(n))}(t)};function s(c){return null===c?n(c):32===c?(e.enter("space"),e.consume(c),e.exit("space"),s):96===c?(a=e.enter("codeTextSequence"),i=0,function n(r){return 96===r?(e.consume(r),i++,n):i===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(r)):(a.type="codeTextData",l(r))}(c)):(0,r.Ch)(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(c))}function l(t){return null===t||32===t||96===t||(0,r.Ch)(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}}}},139712:function(e,t,n){"use strict";n.d(t,{r:function(){return c}});var r=n(99329),i=n(78751),a=n(396808),o=n(897026),s=n(28508),l=n(595429);function c(e){return(0,r.W)([(0,i.E)(),(0,a.K)(),(0,o.Q)(e),(0,s.x)(),(0,l.r)()])}},460968:function(e,t,n){"use strict";function r(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}n.d(t,{d:function(){return r}})},645361:function(e,t,n){"use strict";n.d(t,{O:function(){return r}});let r=function(e){if(null==e)return a;if("function"==typeof e)return i(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):function(e){return i(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0})}(e);if("string"==typeof e)return function(e){return i(function(t){return t&&t.type===e})}(e);throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return!!(o(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function a(){return!0}function o(e){return null!==e&&"object"==typeof e&&"type"in e}},933813:function(e,t,n){"use strict";n.d(t,{R:function(){return r}}),n(190932),n(808483),n(126159),n(100832),n(825666),n(943281),n(82726);let r="route.manifest.json";new Uint8Array([60,104,116,109,108]),new Uint8Array([60,98,111,100,121]),new Uint8Array([60,116,101,109,112,108,97,116,101]),new Uint8Array([60,47,104,101,97,100,62]),new Uint8Array([60,47,98,111,100,121,62]),new Uint8Array([60,47,104,116,109,108,62]),new Uint8Array([60,47,98,111,100,121,62,60,47,104,116,109,108,62])}}]); |