/*! For license information please see 60063.a3ee31df.js.LICENSE.txt */ !function(t,e){"object"==typeof module&&"object"==typeof module.exports?e():"function"==typeof define&&define.amd?define([],e):(t="undefined"!=typeof globalThis?globalThis:t||self)&&e()}(this,function(){"use strict";"object"==typeof window&&(window.openRedirect={version:"1.2.20",webpackPluginVersion:"3.4.22",reportOnly:!1})}),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).xss={})}(this,function(t){"use strict";var e=function(){return(e=Object.assign||function(t){for(var e,i=1,s=arguments.length;i/g,a=/&#([a-zA-Z0-9]*);?/gim,o=/"/g,h=/:?/gim,l=/&newline;?/gim,c=/((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,u=/u\s*r\s*l\s*\(.*/gi,p=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,d=/"/g,f=function(t){return t.replace(r,"<").replace(n,">")},m={indexOf:function(t,e){var i,s;for(i=0,s=t.length;i127&&s<2048?e+=String.fromCharCode(s>>6|192)+String.fromCharCode(63&s|128):e+=String.fromCharCode(s>>12|224)+String.fromCharCode(s>>6&63|128)+String.fromCharCode(63&s|128)}return e}(t);c>2,n=(3&e)<<4|(i=t.charCodeAt(c++))>>4,a=(15&i)<<2|(s=t.charCodeAt(c++))>>6,o=63&s,isNaN(i)?a=o=64:isNaN(s)&&(o=64),l=l+h.charAt(r)+h.charAt(n)+h.charAt(a)+h.charAt(o);return l}function b(t){var e,i,s,r,n,a,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",h="",l=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");l>4,i=(15&r)<<4|(n=o.indexOf(t.charAt(l++)))>>2,s=(3&n)<<6|(a=o.indexOf(t.charAt(l++))),h+=String.fromCharCode(e),64!==n&&(h+=String.fromCharCode(i)),64!==a&&(h+=String.fromCharCode(s));return function(t){for(var e="",i=0,s=0,r=0,n=0;i191&&s<224?(e+=String.fromCharCode((31&s)<<6|63&(n=t.charCodeAt(i+1))),i+=2):(n=t.charCodeAt(i+1),e+=String.fromCharCode((15&s)<<12|(63&n)<<6|63&(r=t.charCodeAt(i+2))),i+=3);return e}(h)}function x(t,e,i){var s="",r=0,n=!1,a=!1,o=0,h=t.length,l="",c="";t:for(o=0;o"===u||o===h-1){s+=i(t.slice(r,n)),l=function(t){var e,i=m.spaceIndex(t);return e=-1===i?t.slice(1,-1):t.slice(1,i+1),"/"===(e=m.trim(e).toLowerCase()).slice(0,1)&&(e=e.slice(1)),"/"===e.slice(-1)&&(e=e.slice(0,-1)),e}(c=t.slice(n,o+1)),s+=e(n,s.length,l,c,"0;e--){var i=t[e];if(" "!==i)return"="===i?e:-1}return -1}(t,l-1))){h(a,v(m.trim(t.slice(i,l)))),a=!1,i=l+1;continue}}}else{if(-1===(u=t.indexOf(c,l+1)))break;h(a,m.trim(t.slice(r+1,u))),a=!1,i=(l=u)+1}}else a=t.slice(i,l),i=l+1,r='"'===t.charAt(i)||"'"===t.charAt(i)?i:function(t,e){for(;et.charCodeAt(i)?" ":t.charAt(i);return m.trim(e)}(t=(t=(t=t.replace(o,'"')).replace(a,function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))})).replace(h,":").replace(l," "))}(i),"href"===e||"src"===e){if("#"===(i=m.trim(i)))return"#";if("http://"!==i.substr(0,7)&&"https://"!==i.substr(0,8)&&"mailto:"!==i.substr(0,7)&&"tel:"!==i.substr(0,4)&&"data:image/"!==i.substr(0,11)&&"ftp://"!==i.substr(0,6)&&"./"!==i.substr(0,2)&&"../"!==i.substr(0,3)&&"#"!==i[0]&&"/"!==i[0])return""}else if("background"===e){if(c.lastIndex=0,c.test(i))return""}else if("style"===e&&(p.lastIndex=0,p.test(i)||(u.lastIndex=0,u.test(i)&&(c.lastIndex=0,c.test(i)))))return"";return i=function(t){return t=f(t=t.replace(d,"""))}(i)}var w=function(t){return"string"==typeof t?t.replace(/'/g,'"').replace('=""',"").replace(/\s+/g,"").toLowerCase():""},S=function(){function t(t){var e=function(t){var e={};for(var i in t)e[i]=t[i];return e}(t||{});e.stripIgnoreTag&&(e.onIgnoreTag,e.onIgnoreTag=function(){return""}),e.whiteList={},e.onTag=function(){},e.onTagAttr=function(){},e.onIgnoreTag=function(){},e.onIgnoreTagAttr=function(){},e.safeAttrValue=k,e.escapeHtml=f,this.options=Object.assign(e,t)}return t.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e,i,s,r,n,a,o=this.options,h=o.whiteList,l=o.onTag,c=o.onIgnoreTag,u=o.onTagAttr,p=o.onIgnoreTagAttr,d=o.safeAttrValue,f=o.escapeHtml;o.stripBlankChar&&(t=(e=(e=t.split("")).filter(function(t){var e=t.charCodeAt(0);return!(127===e||e<=31&&10!==e&&13!==e)})).join("")),o.allowCommentTag||(t=function(t){for(var e="",i=0;i");var o=function(t){var e=m.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var i="/"===(t=m.trim(t.slice(e+1,-1)))[t.length-1];return i&&(t=m.trim(t.slice(0,-1))),{html:t,closing:i}}(s),g=h[i],v=_(o.html,function(t,e){var s=-1!==m.indexOf(g,t),r=u(i,t,e,s);return null==r?s?(e=d(i,t,e,null))?"".concat(t,'="').concat(e,'"'):t:null==(r=p(i,t,e,s))?void 0:r:r});return s="<".concat(i),v&&(s+=" ".concat(v)),o.closing&&(s+=" /"),s+=">"}return null==(a=c(i,s,n))?f(s):a},f);return g&&(v=g.remove(v)),v},t}(),E=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")(),C=new(function(){function t(){var t=this;this.batchData=[],this.uniqKeys=new Set,this.timeout=2e3,this.lock=!1,this.getSlardarBid=function(){var e,i,s="douyin_web";if(!m.includes(s,"bid"))return s;if(t.config&&t.config.bid)return t.config.bid;if(E&&E._xssBid)return E._xssBid;if(E&&E.slardar&&"function"==typeof E.slardar.config){var r=(E.slardar.config()||{}).bid;if(r)return r}if(E&&E.Slardar&&"function"==typeof E.Slardar.config){var n=(E.Slardar.config()||{}).bid;if(n)return n}return(null===(i=null===(e=null==E?void 0:E.Slardar)||void 0===e?void 0:e._baseParams)||void 0===i?void 0:i.bid)||"argus"},this.getConfigRegion=function(){var e;return m.includes("cn","region")?t.config&&t.config.region?t.config.region:((null===(e=null==E?void 0:E.gfdatav1)||void 0===e?void 0:e.region)||"cn").toLowerCase():"cn"},this.gerReportUrl=function(){var e={cn:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boe:b("aHR0cHM6Ly9tb24uemlqaWVhcGkuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),ttp:b("aHR0cHM6Ly9tb24udXMudGlrdG9rdi5jb20vbW9uaXRvcl9icm93c2VyL2NvbGxlY3QvYmF0Y2gvc2VjdXJpdHkvP2JpZD0="),va:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),maliva:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),sg:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9"),boei18n:b("aHR0cHM6Ly9tb24tdmEuYnl0ZW92ZXJzZWEuY29tL21vbml0b3JfYnJvd3Nlci9jb2xsZWN0L2JhdGNoL3NlY3VyaXR5Lz9iaWQ9")}[t.getConfigRegion()];if(e)return e+t.getSlardarBid()}}return t.prototype.setConfig=function(t){this.config=t},t.prototype.upload=function(){var t=this,e=this.gerReportUrl();!this.lock&&e&&0!==this.batchData.length&&(this.lock=!0,setTimeout(function(){var i=t.batchData.slice(0,100);t.batchData=t.batchData.slice(100),E.fetch(e,{method:"post",body:JSON.stringify(i),headers:{"Content-Type":"application/json"}}).catch(function(t){}),t.lock=!1,t.upload()},this.timeout))},t.prototype.generateKey=function(t){return t.collectKey?[t.collectMode,t.collectKey].join("___"):""},t.prototype.push=function(t){this.batchData.push(t),this.upload()},t.prototype.report=function(t){var e=this.generateKey(t);if(E.fetch&&t.collectKey){var i="object"==typeof window?window.location.href:"SSR";t.documentUrl=i;var s={age:Math.floor(Date.now()),type:"xss",url:i,body:t,"user-agent":""};"enforce"===t.disposition&&"SSR"!==i||(s.url=e),"SSR"===i&&(s.url="SSR___".concat(s.url),s.body.ssr=!0),this.push(s)}},t}()),A=function(t){for(var e=0,i=function(i){Array.isArray(t[i])?0===t[i].length?delete t[i]:(t[i]=m.from(m.uniq(t[i])),e+=t[i].length):0===m.keys(t[i]).length?delete t[i]:m.keys(t[i]).forEach(function(s){t[i][s]=m.from(m.uniq(t[i][s])),e+=t[i][s].length})},s=0,r=m.keys(t);s0)return e&&e("javascript:"),!1;if(/^javascript:/i.test(t)){var r=t.slice(11).replace(/\s/g,"").trim();return!!m.some(["void","void(0)","void0","false","undefined",";"],function(t){return t===r})||(e&&e("javascript:"),!1)}return!0}var N=function(t,e){var i,s,r="<%= isSaveValidUrl =>";if("string"!=typeof t||(s=Number("<%= urlLimit =>"),void 0!==i&&(s=i),"NaN"!==t.toString()&&-1!==s&&t.length>=s)||L(t,e))return t;try{if(!0===(r=JSON.parse(r))||"true"===r){var n=new URL(t);return n.origin+n.pathname}}catch(t){}return"#"};function O(t,e,s){if(void 0===t&&(t=""),void 0===e&&(e=[]),"string"!=typeof t)return!0;if(!L(t=T(t)))return!1;var r,n={url:(r=t.match(/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/)||[])[0],scheme:r[1],slash:r[2],host:r[3],port:r[4],path:r[5],query:r[6],hash:r[7]},a=n.scheme,o=n.host;return s?!!s(t):!(!a||!o)&&(!m.includes(["http","https","file"],a)||("object"==typeof window&&window&&(e=i(i([],e,!0),[location.host],!1)),m.some(e,function(t){return!!(t instanceof RegExp&&t.test(o))||t===o})))}var V={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 t=A(this.collect),e=t.count,i=t.ret;return this.collect=null,{collectKey:0===e?null:JSON.stringify(i),collectMode:"white"}},onIgnoreTagAttr:function(t,e,s){return t&&m.indexOf(["href","src"],e)>-1?R.domainWhiteList&&Array.isArray(R.domainWhiteList)&&R.domainWhiteList.length>0&&!O(s,i([],R.domainWhiteList,!0))?"":"".concat(e,'="').concat(N(s,function(t){var e;null===(e=R.collect)||void 0===e||e.filterProtocol.push(t)}),'"'):t&&(m.indexOf(["style","class","id"],e)>-1||e.indexOf("data-")>-1)?"".concat(e,'="').concat(s,'"'):(R.collect.whiteList[t]=R.collect.whiteList[t]||[],void R.collect.whiteList[t].push(e))},onIgnoreTag:function(t,e){if("style"===t)return e;x(e,function(t,e,i,s){_(I(s).html.replace("/",""),function(t){R.collect.whiteList[i]=R.collect.whiteList[i]||[],R.collect.whiteList[i].push(t)})},f)},whiteList:V,mergeWhiteList:function(t){for(var e,i={},s=0,r=m.keys(V);s");var n=I(s),a=_(n.html,function(t,e){var s,r=0;if(j.blackList[i]&&m.includes(j.blackList[i],t)&&(z.collect.blackList[i]=z.collect.blackList[i]||[],z.collect.blackList[i].push(t),r++),j.blackAttrRegExps.length&&j.blackAttrRegExps.some(function(e){return e.test(t)})&&m.forEach(j.blackAttrRegExps,function(e){e.test(t)&&(z.collect.blackAttrRegExps.push("".concat(e.toString(),"->").concat(t)),r++)}),j.blackAttrs.length&&m.includes(j.blackAttrs,t)&&(j.blackAttrs.push(t),r++),!r){if(j.filterList&&j.filterList[i]&&m.includes(j.filterList[i],t)){var n=N(e,function(t){var e;null===(e=z.collect)||void 0===e||e.filterProtocol.push(t)});return n!==e&&(z.collect.filterList[i]=z.collect.filterList[i]||[],z.collect.filterList[i].push(t)),e?"".concat(t,"='").concat(n,"'"):t}return j.filterAttrs&&m.includes(j.filterAttrs,t)?((n=N(e,function(t){var e;null===(e=z.collect)||void 0===e||e.filterProtocol.push(t)}))!==e&&(null===(s=z.collect)||void 0===s||s.filterAttrs.push(t)),e?"".concat(t,"='").concat(n,"'"):t):e?"".concat(t,"='").concat(e,"'"):t}});return s="<".concat(i),a&&(s+=" ".concat(a)),n.closing&&(s+=" /"),s+=">"},f);null===(i=z.collect)||void 0===i||i.blackTags.push(t)}},Z=function(t){var e=t.reportOnly,i=void 0===e||e,s=t.block;return i&&"all"===i?"report":("string"==typeof i&&("true"===i&&(i=!0),"false"===i&&(i=!1)),s?"enforce":i?"report":"enforce")},$=function(t){return function(i,s,r){if(!i||"string"!=typeof i)return i;var n=s;t===P&&(n=R).initCollect();var a=t(i,n);if(w(a)===w(i))return i;if(!r)return a;var o=r.logType,h=Z(r),l=n.removeCollect();return C.report(e(e({type:o,disposition:h},l),{sourceText:y(i),filterText:y(a)})),"enforce"===h?a:i}},H=$(function(t,e){return void 0===e&&(e={}),e&&e.whiteList||(e.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(e).process(t)}),W=$(P),q=function(t,e,i){var s=[],r=N(t,function(t){s.push(t)});if(r===t)return t;s=m.from(m.uniq(s));var n=e||i||{};if(!n)return r;var a=n.logType,o=Z(i);return C.report({type:a,disposition:o,collectKey:s.join("___"),collectData:JSON.stringify(s),collectMode:"black",sourceText:y(t),filterText:y(r)}),"enforce"===o?r:t},G=E._xssProject||{},K=E.xssNamespace||{},X="3.0.26",Q={FilterXSS:S,version:X,webpackPluginVersion:"<%= webpackPluginVersion =>",reportOnly:"<%= reportOnly =>",filterXSS:H,_filterXSS:W,filterUrl:q,Config:R,BlackConfig:z,project:G,setProjectName:function(t){G[t]=this,E._xssProjectName=t}};K.douyin_web=Q,E.xssNamespace=K,E.Math&&!E.Math.xssNamespace&&(E.Math.xssNamespace=K),G[X]=Q,E.globalThis=E,E.getFilterXss=function(){return void 0!==this._xssProjectName?this._xssProject[this._xssProjectName]:Q},E.xss=Q,E.isSafeUrl=O,E.isSafeDomain=O,E.isSafeProtocol=L,E._xssProject=G,E._xssProjectName&&(G[E._xssProjectName]=Q);var J=Q.setProjectName.bind(Q);t.BlackConfig=z,t.Config=R,t.FilterXSS=S,t._filterXSS=W,t.filterUrl=q,t.filterXSS=H,t.isSafeDomain=O,t.isSafeProtocol=L,t.isSafeUrl=O,t.project=G,t.setProjectName=J,t.setXssNamespace=function(t){var e=t.appId,i=t.bid,s=t.region;K[e]=Q;R.bid=i,R.region=s,R.enabled=!0},t.xssNamespace=K,Object.defineProperty(t,"__esModule",{value:!0})}),(self.webpackChunkdouyin_web=self.webpackChunkdouyin_web||[]).push([["60063"],{329206:function(t,e,i){"use strict";var s=i(101199),r=i(994298);let n=(0,r.A)(function(t){return s.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},t),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 23a11 11 0 1 0 0-22 11 11 0 0 0 0 22Zm5.04-6.14a1.5 1.5 0 0 1-2.13.04l-2.87-2.78L9.26 17A1.5 1.5 0 0 1 7.1 14.9l2.78-2.87L7 9.26A1.5 1.5 0 1 1 9.1 7.1l2.87 2.78L14.74 7A1.5 1.5 0 0 1 16.9 9.1l-2.78 2.87L17 14.74c.6.58.61 1.53.04 2.12Z",fill:"currentColor"}))},"clear");e.Z=n},172474:function(t,e,i){"use strict";var s=i(101199),r=i(994298);let n=(0,r.A)(function(t){return s.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},t),s.createElement("path",{d:"M5 2a3 3 0 0 0-3 3v3h20c0-2-1-4-3-4h-6.45a3 3 0 0 1-1.87-.66l-1.13-.9A2 2 0 0 0 8.3 2H5Z",fill:"currentColor"}),s.createElement("path",{d:"M22 10H2v9a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-9Z",fill:"currentColor"}))},"folder");e.Z=n},688742:function(t,e,i){"use strict";var s=i(101199),r=i(994298);let n=(0,r.A)(function(t){return s.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},t),s.createElement("path",{d:"M2 12c0-.83.67-1.5 1.5-1.5h17a1.5 1.5 0 0 1 0 3h-17A1.5 1.5 0 0 1 2 12Z",fill:"currentColor"}))},"minus");e.Z=n},975727:function(t,e,i){"use strict";var s=i(101199),r=i(994298);let n=(0,r.A)(function(t){return s.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},t),s.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 6c0-1.1.9-2 2-2h18a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V6Zm20 0H3v12h18V6ZM5 9a1 1 0 0 1 1-1h1.5a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-5H6a1 1 0 0 1-1-1Zm11-1a1 1 0 1 0 0 2h.5v5a1 1 0 1 0 2 0V9a1 1 0 0 0-1-1H16Zm-3 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-1 5a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",fill:"currentColor"}))},"real_size_stroked");e.Z=n},394858:function(t,e,i){"use strict";i(954953),i(122168),i(784530),i(868367)},982262:function(t,e,i){"use strict";var s=i(101199),r=i(37933),n=i.n(r),a=i(730099),o=i.n(a);function h(t,e){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return l(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);if("Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return l(t,e)}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0,s=function(){};return{s:s,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:s}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,n,a=!0,o=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){o=!0,n=t},f:function(){try{!a&&null!=r.return&&r.return()}finally{if(o)throw n}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i2&&void 0!==arguments[2]&&arguments[2];if("number"==typeof e){;return t.keyCode===e&&(!h||(i=t,!v.some(function(t){return i[t]})))}var l=e.split("."),c=l[l.length-1],d=l.filter(b).map(function(t){return y.get(t)});var g=(s=t,v.filter(function(t){return s[t]}));return r=t,a=m[n=c],o=f[n],(a&&a.includes(r.key)||o&&o.includes(r.keyCode)||r.key.toUpperCase()===n.toUpperCase())&&(h?u:p)(g,d)}var _=["keydown"];e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.events,n=void 0===r?_:r,a=i.target,o=i.exact,l=void 0!==o&&o,u=(0,s.useRef)(),p=(0,s.useRef)(e);p.current=e;var f=(0,s.useCallback)(function(e){if((function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=c(t);return"function"===i?t:"string"===i||"number"===i?function(i){return x(i,t,e)}:Array.isArray(t)?function(i){return t.some(function(t){return x(i,t,e)})}:t?function(){return!0}:function(){return!1}})(t,l)(e))return p.current(e)},[t]);return(0,s.useEffect)(function(){var t="function"==typeof a?a():a,e=u.current||t||window,i,s=h(n);try{for(s.s();!(i=s.n()).done;){var r=i.value;e.addEventListener(r,f)}}catch(t){s.e(t)}finally{s.f()}return function(){var t,i=h(n);try{for(i.s();!(t=i.n()).done;){var s=t.value;e.removeEventListener(s,f)}}catch(t){i.e(t)}finally{i.f()}}},[n,f,a]),u}},639398:function(t,e,i){"use strict";var s=i(361073),r=i.n(s),n=i(587934);"string"!=typeof new n.util.LongBits(0,0).toLong(!1)&&(n.util.Long=r(),n.util.zeroLong="0",n.util.zeroULong="0",n.Reader.prototype.int64String=function(){return this.int64().toString()},n.Reader.prototype.uint64String=function(){return this.uint64().toString()},n.Reader.prototype.sint64String=function(){return this.sint64().toString()},n.util.longToHash=t=>String(t),(0,n.configure)())},842719:function(t,e,i){"use strict";i.d(e,{J:function(){return d}});var s=i(705258),r=i(387737),n=i(63270),a=i(471603),o=i(970509),h=i.n(o),l=i(587934);i(639398);var c=h()("im:idl:transport"),u=h()("im:idl:transport-raw"),p=class t{constructor(){this.cachedType={},this.loading=null,this.loadSchema=()=>{if("undefined"!=typeof window)window.requestIdleCallback(()=>{this._loadSchema()})},this._loadSchema=()=>this.loading?this.loading:(this.loading=(0,s.C)(this,null,function*(){if(l.roots.transport){this.root=l.roots.transport,this.loading=Promise.resolve();return}yield(0,r.y)(),yield i.e("99457").then(i.bind(i,998163)),this.root=l.roots.transport,this.loading=Promise.resolve()}),this.loading)}static get instance(){return t.__instance?t.__instance:t.__instance=new t}static addRelation(e,i){t.relation[e]=i,t.relation[i]=e}static setRelation(e){t.relation=(0,s.i)((0,s.i)({},t.relation),null!=e?e:{})}getType(e){let i=e.replace(n.nl,""),s=this.cachedType[i];if(s)return s;try{let s=[t.relation[e],t.relation[i],i,e].filter(t=>t),r=s.map(e=>t.typeHintPrefix.map(t=>`${t}.${e}`)).reduce((t,e)=>t.concat(e)).concat(s);c("search types",r);let n=r.reduce((t,e)=>t&&"function"==typeof t?t:e.split(".").reduce((t,e)=>null==t?void 0:t[e],this.root),void 0);if("function"!=typeof n)throw Error("cannot find type");return n}catch(t){return c(`no current schema[${String(i)}]`),null}}decode(t,e){return(0,s.C)(this,null,function*(){var i,s,r,n,a,o,h,l,c;if(yield this._loadSchema(),e)return this._decode(t,e);let[u,p]=yield this._decodeFrameOrResponse(t),d=null!=(n=null!=(r=null==(s=null==(i=null==p?void 0:p.headers)?void 0:i.find(t=>"im-cursor"===t.key))?void 0:s.value)?r:u.cursor)?n:"",f=null!=(l=null!=(h=null==(o=null==(a=null==p?void 0:p.headers)?void 0:a.find(t=>"im-internal_ext"===t.key))?void 0:o.value)?h:u.internal_ext)?l:"";return{response:u,frame:p,needAck:null!=(c=u.need_ack)&&c,cursor:d,internalExt:f}})}encode(t,e){return(0,s.C)(this,null,function*(){return yield this._loadSchema(),this._encode(t,e)})}ack(t,e){return(0,s.C)(this,null,function*(){var i,s,r,o;let h=null!=(o=null!=(r=null==(s=null==(i=t.headers)?void 0:i.find(t=>"im-internal_ext"===t.key))?void 0:s.value)?r:e.internal_ext)?o:"";return yield this.encode({payload_type:n.AG.Ack,payload:(0,a.l)(h),LogID:t.LogID},"PushFrame")})}ping(){return this.encode({payload_type:n.AG.Hb},"PushFrame")}_decodeFrameOrResponse(t){return(0,s.C)(this,null,function*(){try{let e=this._decode(t,"PushFrame"),i=yield this._extractResponse(e);return[this._decode(i,"Response"),e]}catch(e){return[this._decode(t,"Response")]}})}_extractResponse(e){return(0,s.C)(this,null,function*(){var i;return(null==(i=e.headers)?void 0:i.some(t=>"compress_type"===t.key&&"gzip"===t.value))?yield t.unGzip(e.payload):e.payload})}_decode(t,e){let i=this.getType(e);if(!i)return;let s=i.decode(t);return c("decoded success",e,s),u("decoded success",t),s}_encode(t,e){let i=this.getType(e);if(!i)return;let s=i.encode(t).finish();return c("encoded success",e,t),u("encoded success",s),s}};p.VERSION='"2023.17.9"',p.relation={},p.typeHintPrefix=["webcast.im"],p.unGzip=(...t)=>(0,s.C)(p,null,function*(){return!p.pako&&(p.pako=i.e("76205").then(i.bind(i,216896))),p.pako.then(e=>e.ungzip(...t))});var d=p},832862:function(t,e,i){"use strict";i.d(e,{C:function(){return s}});class s{constructor(t){this.emitter=t,this._cursor="",this._first_cursor="",this._internal_ext=""}get cursor(){return this._cursor}get firstCursor(){return this._first_cursor}get internal_ext(){return this._internal_ext}set(t,e){var i;this._cursor=t,!this._first_cursor&&(this._first_cursor=t,null==(i=this.emitter)||i.emit("first_cursor",t)),this._internal_ext=e}clear(){this._cursor="",this._first_cursor="",this._internal_ext=""}}},637141:function(t,e,i){"use strict";i.d(e,{TQ:function(){return K}});var s=i("793576"),r=i("646317"),n=i("392982"),a=i("788034"),o=i("673620"),h=i("970509"),l=i.n(h),c=i("40072"),u=i("68546"),p=Object.defineProperty,d=Object.defineProperties,f=Object.getOwnPropertyDescriptors,m=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,y=(t,e,i)=>e in t?p(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,b=(t,e)=>{for(var i in e||(e={}))g.call(e,i)&&y(t,i,e[i]);if(m)for(var i of m(e))v.call(e,i)&&y(t,i,e[i]);return t},x=(t,e)=>d(t,f(e)),_=(t,e)=>{var i={};for(var s in t)g.call(t,s)&&0>e.indexOf(s)&&(i[s]=t[s]);if(null!=t&&m)for(var s of m(t))0>e.indexOf(s)&&v.call(t,s)&&(i[s]=t[s]);return i},k=(t,e,i)=>new Promise((s,r)=>{var n=t=>{try{o(i.next(t))}catch(t){r(t)}},a=t=>{try{o(i.throw(t))}catch(t){r(t)}},o=t=>t.done?s(t.value):Promise.resolve(t.value).then(n,a);o((i=i.apply(t,e)).next())}),w=class t{constructor(e){let i=t._getSocketParams(e);"undefined"!=typeof WebSocket&&(this.socket=new WebSocket(i),this.socket.binaryType="arraybuffer")}onError(t){this.socket.addEventListener("error",t)}onMessage(t){this.socket.addEventListener("message",t)}onOpen(t){this.socket.addEventListener("open",t)}onClose(t){this.socket.addEventListener("close",t)}send(t){return this.socket.readyState===WebSocket.OPEN&&(this.socket.send(t),!0)}};w.VERSION="0.0.5",w._getSocketParams=t=>{let{app_name:e,routeParams:i,pushServer:s,websocket_key:r}=t,a=_(t,["app_name","routeParams","pushServer","websocket_key"]),o=b(b({app_name:e,version_code:n.ry,webcast_sdk_version:w.VERSION,update_version_code:w.VERSION,compress:"gzip"},i),a),h=(0,c.j)(o,r);return`${s}?${u.P(b(b({},o),h))}`};var S=l()("im:socket"),E=class{constructor(t,e,i,s){this.heartbeatDuration=n.XM,this.pingStarted=!1,this.lastProps=void 0,this.pingTimer=void 0,this.transport=r.J.instance,this.seqId=0,this.lastReceiveTime=Date.now(),this.listenVisibleChange=!1,this.registerDriverEvent=!1,this.requestType=void 0,this._handleVisibleChange=()=>{"visible"===document.visibilityState&&this._attemptReconnect()},this.emitter=t,this.cursor=i,this.publishCenter=s,this.props=e}_registerInnerDriverEvent(){if(!this.registerDriverEvent)this.emitter.on("start-driver",t=>{this.requestType=t}),this.registerDriverEvent=!0}stop(){S("socket terminating"),this.pingStarted=!1,clearTimeout(this.pingTimer),this.cursor.clear(),this.client&&(this.client.socket.close(),this.client=void 0),this.listenVisibleChange&&(document.removeEventListener("visibilitychange",this._handleVisibleChange),this.listenVisibleChange=!1)}start(t){var e,i;return(this._registerInnerDriverEvent(),(null==(i=null==(e=this.client)?void 0:e.socket)?void 0:i.readyState)===WebSocket.OPEN)?(S("socket client is open"),()=>void 0):(S("socket start"),(e,i)=>{if(!("WebSocket"in window))return i(Error("not support websocket"));try{var s;let r=(s=this.props,["app_name","channel","device_id","aid","webcast_app_id","websocket_key","pushServer"].reduce((t,e)=>(e in s&&void 0!==s[e]&&(t[e]=s[e]),t),{}));this.lastProps=t,this.client=new w(b(b(x(b({},(0,a.K)()),{bytelink_cursor:this.cursor.cursor,bytelink_internal_ext:this.cursor.internal_ext}),t),r)),this.client.onMessage(t=>this._receiveMessage(t,i)),this.client.onError(t=>{S("socket error",t),this.emitter.emit("stop-driver","websocket","error"),this.emitter.emit("error","socket-driver",t),i(Error(t.type)),this.pingStarted=!1}),this.client.onClose(t=>{S("socket closed",t),this.emitter.emit("stop-driver","websocket"),this.pingStarted&&(i(Error(t.type)),this.pingStarted=!1)}),this.client.onOpen(()=>k(this,null,function*(){S("socket established"),this.emitter.emit("start-driver","websocket"),this.updateTenantPublishers(),e(),this.pingStarted=!0,this.ping(),!this.listenVisibleChange&&(this.setEventListener(),this.listenVisibleChange=!0)}))}catch(t){S("socket error",t),this.emitter.emit("stop-driver","websocket","error"),this.emitter.emit("error","socket-driver",t),i(t),this.pingStarted=!1}})}restart(){let t=()=>{this._reconnect(),this.emitter.off("stop-driver",t)};this.pingStarted&&(this.stop(),this.emitter.on("stop-driver",t))}_reconnect(t="websocket"){this.lastProps&&"websocket"===t&&this.start(this.lastProps)(()=>{S("socket restart")},()=>{S("socket fail")})}updateTenantPublishers(t){return k(this,null,function*(){var e;let i=this.publishCenter.generateAllPublishers()||{};for(let s in i)if(i.hasOwnProperty(s)){let r=i[s],n=yield this.transport.encode({trigger_tenant_publishers:r,trigger_tenant_id:s,trigger_time_ms:Date.now().toString(),update_by_operation:t||"update"},"UpdateTenantPublishersRequest"),a=yield this.transport.encode({SeqID:this.seqId.toString(),LogID:this.seqId.toString(),service:9999,method:1,headers:[{key:"X-ByteLink-Cursor",value:this.cursor.cursor},{key:"X-ByteLink-InternalExt",value:this.cursor.internal_ext}],payload_encoding:"pb",payload_type:"subscribe",payload:n},"PushFrame");null==(e=this.client)||e.send(a),this.seqId++}})}ping(){return k(this,null,function*(){var t,e;let i=Math.max(n.E1,Number(this.heartbeatDuration));(null==(e=null==(t=this.client)?void 0:t.socket)?void 0:e.readyState)===WebSocket.OPEN&&(S("send heart beat"),this.seqId++,this.client.send((yield this.transport.ping(this.seqId.toString())))),this.pingTimer=window.setTimeout(()=>{this.pingStarted&&this.ping()},i)})}_attemptReconnect(){return k(this,null,function*(){var t,e;if("websocket"===this.requestType)(null==(e=null==(t=this.client)?void 0:t.socket)?void 0:e.readyState)===WebSocket.OPEN?(S("send heart beat"),this.seqId++,this.client.send((yield this.transport.ping(this.seqId.toString()))),setTimeout(()=>{var t,e;(null==(e=null==(t=this.client)?void 0:t.socket)?void 0:e.readyState)!==WebSocket.OPEN&&this.emitter.emit("downgrade","polling")},1e3)):this.emitter.emit("downgrade","polling")})}setEventListener(){document.addEventListener("visibilitychange",this._handleVisibleChange)}_receiveMessage(t,e){return k(this,null,function*(){var i,s,r,a;this.lastReceiveTime=Date.now();let h=yield k(this,null,function*(){try{return yield this.transport.decode(new Uint8Array(t.data))}catch(t){return this.emitter.emit("error","decode",t),null}});if(!h)return;let{response:l,frame:c,cursor:u,needAck:p,internalExt:d}=h;if(l.heartbeat_duration&&(this.heartbeatDuration=1e3*Number(l.heartbeat_duration)),p){let t=yield this.transport.ack(c,l,this.lastReceiveTime);this.cursor.set(u,d),S("sending ack");let e=null==(i=this.client)?void 0:i.send(t);this.seqId++,!e&&(this.emitter.emit("error","socket-driver",Error(`socket already close [logid: ${null!=(s=null==c?void 0:c.LogID)?s:""}]`)),this.pingStarted=!1,this.emitter.emit("downgrade","polling"))}if((null==c?void 0:c.payload_type)===n.AG.Msg&&(this.emitter.emit("message",l),this.emitter.emit("header","socket",(0,o.d)(null!=(r=c.headers)?r:[]))),(null==c?void 0:c.payload_type)===n.AG.Close)return this.emitter.emit("stop-driver","websocket"),null==(a=this.client)||a.socket.close(),e(Error("close by payloadtype"));(null==c?void 0:c.payload_type)===n.AG.ReConnect&&this.restart(),(null==c?void 0:c.payload_type)===n.AG.subscribeAck&&S("订阅回包")})}},C=i("35565"),A=i("611167"),P=i("723695"),I=Object.defineProperty,T=Object.defineProperties,L=Object.getOwnPropertyDescriptors,N=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,R=(t,e,i)=>e in t?I(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,D=(t,e)=>{for(var i in e||(e={}))O.call(e,i)&&R(t,i,e[i]);if(N)for(var i of N(e))V.call(e,i)&&R(t,i,e[i]);return t},M=(t,e)=>T(t,L(e)),F=(t,e,i)=>new Promise((s,r)=>{var n=t=>{try{o(i.next(t))}catch(t){r(t)}},a=t=>{try{o(i.throw(t))}catch(t){r(t)}},o=t=>t.done?s(t.value):Promise.resolve(t.value).then(n,a);o((i=i.apply(t,e)).next())});function j(t){if(!Array.isArray(t))throw TypeError("Middleware stack must be an array!");if(t.some(t=>"function"!=typeof t))throw TypeError("Middleware must be composed of functions!");return function(e,i){let s=-1;return function r(n){if(n<=s)return Promise.reject(Error("next() called multiple times"));s=n;let a=n===t.length?i:t[n];if(!a)return Promise.resolve();try{return Promise.resolve(a(e,r.bind(null,n+1)))}catch(t){return Promise.reject(t)}}(0)}}var B=l()("im:mw:decode"),U=l()("im:mw:decode_raw"),z=l()("im:mw:decoded"),Z=l()("im:mw:emit"),$=(t,e,i,s=1e3)=>(!function e(){if(i.size>0){let e=[...i.entries()];Z("emit async",i.size,e),i.clear(),Z("cleared cache"),e.forEach(([e,i])=>{t.emit(e,i)})}try{return setTimeout(e,s)}catch(t){return 0}}(),(s,r)=>F(void 0,null,function*(){s.emitter=t,s.syncEmitter=e,s.cacheStorage=i,Z("set emitter, syncEmitter, cacheStorage"),yield r();let{msgs:a,emitted:o,cached:h}=s;null==a||a.forEach(t=>{let s=t.method.replace(n.nl,""),r=null==t?void 0:t.msg_id;if(!r){Z("live IM filter has not commonMsgId",t);return}let a=`${s}-${r}`;if(o.has(a)){Z("live IM filter message by msgID",t);return}!h.has(a)&&(i.set(s,t),h.add(a)),Z("emit sync",s,t.msg_id),e.emit(s,t),o.add(a)}),Z("set context emitted",null==a?void 0:a.map(t=>t.msg_id))})),H=class extends Set{constructor(t){super(),this.maxSize=t}add(t){if(t===n.KM)return this;if(super.add(t),this.size>this.maxSize){let t=this.keys().next().value;t&&this.delete(t)}return this}has(t){return t!==n.KM&&super.has(t)}},W=l()("im:mw:backdrop"),q=class extends Map{set(t,e){var i;let s=null!=(i=this.get(t))?i:[];return s.push(e),super.set(t,s)}},G=l()("im:sdk"),K=class{constructor(t,e,i=[],{emitter:r=C.Q.instance,syncEmitter:a=function(t){let e={on(e,i){let s=`#sync#${e}`;return t.on(s,i)},off(i,s){if("*"===i)return t.off("*"),e;let r=`#sync#${i}`;return t.off(r,s),e},emit(e,...i){let s=`#sync#${e}`;return t.emit(s,...i),t}};return e}(r),systemEmitter:o=new C.Q,maxCachedCount:h=100,backdropWhenHidden:l,cursor:c,reporter:u}={}){if(this.messages=new q,this.originMiddleware=[],this.started=!1,this.requestType=void 0,this.plugins=new Map,this.publishCenter=new A.m,this.upgrade=t=>{"websocket"===t&&this.socket.start(this.linkStartProps)(()=>{this.polling.stopBySocket()},t=>{this.polling.stopBySocket(t)})},this.downgrade=(t="polling")=>{"polling"===t&&"polling"!==this.requestType&&(this.polling.stopPolling?this.polling.restart(this.linkStartProps):this.polling.start(this.linkStartProps))},this.mock=(t,e)=>{G("mock msg",t,e),this._onMessage({messages:[M(D({},e),{msg_id:n.KM})]})},this.reconnect=()=>{G("live IM reconnect"),this.systemEmitter.emit("reconnect"),this.socket&&this.socket.restart()},this._onMessage=(t,...e)=>F(this,[t,...e],function*(t,e="liveIM"){let{messages:i=[]}=t,s={im:this,systemEmitter:this.systemEmitter,response:t,msgs:i,socket:this.socket,polling:this.polling,decoder:this.decoder,emitted:this.emitted,cached:new Set,from:e};yield this.middleware(s)}),this._updatePublishers=t=>{this.started&&"websocket"===this.requestType&&this.socket.updateTenantPublishers(t)},"loadSchema"in t)this.decoder=t;else{let e=t();this.decoder={loadSchema:()=>F(this,null,function*(){let t=yield e;null==t||t.loadSchema()}),decode:(...t)=>F(this,null,function*(){var i;let s=yield e;return null==(i=null==s?void 0:s.decode)?void 0:i.call(s,...t)}),encode:(...t)=>F(this,null,function*(){var i;let s=yield e;return null==(i=null==s?void 0:s.encode)?void 0:i.call(s,...t)})}}this.systemEmitter=o,this.cursor=c||new P.C(o),this.polling=new s.P(this.systemEmitter,e,this.cursor,this.publishCenter,u),this.socket=new E(this.systemEmitter,e,this.cursor,this.publishCenter),this.emitted=new H(h),this.on=r.on.bind(r),this.off=r.off.bind(r),this.syncOn=a.on.bind(a),this.syncOff=a.off.bind(a),this.originMiddleware=[].concat(l?function(t){let e=t.reduce((t,e)=>M(D({},t),{[e]:!0}),{});return"undefined"==typeof window?(t,e)=>e():(t,i)=>{let{msgs:s}=t;if("hidden"!==document.visibilityState){i();return}let r="",a=null==s?void 0:s.filter(({method:t})=>{let i=e[t.replace(n.nl,"")];return i&&(r+=`${t} `),!i});r&&W(r),(null==a?void 0:a.length)&&(t.msgs=a,i())}}(l):[]).concat([$(r,a,this.messages),function(t){return(e,i)=>F(this,null,function*(){e.decoder=t;let{msgs:s,systemEmitter:r}=e;return e.msgs=yield Promise.all((null!=s?s:[]).map(e=>F(this,null,function*(){let{payload:i,method:s,msg_id:n}=e;B("decode msg",s,n),U("decode msg",s,n,e);let a=yield F(this,null,function*(){try{return i&&s?yield t.decode(i,s):void 0}catch(t){return r.emit("error","decode",t),i}});!a&&B("no payload can be decoded, maybe cannot find idl",s);let o=M(D({},e),{payload:a});return z(s,n,o),o}))),i()})}(this.decoder)]).concat(i),this.middleware=j(this.originMiddleware)}start(t){if(this.started){G("this instance has started");return}!this.systemEmitter.has("upgrade")&&this.systemEmitter.on("upgrade",this.upgrade),!this.systemEmitter.has("downgrade")&&this.systemEmitter.on("downgrade",this.downgrade),!this.systemEmitter.has("message")&&this.systemEmitter.on("message",this._onMessage),!this.systemEmitter.has("update-publisher")&&this.systemEmitter.on("update-publisher",this._updatePublishers),!this.systemEmitter.has("start-driver")&&this.systemEmitter.on("start-driver",t=>{this.requestType=t}),this.started=!0,this.linkStartProps=t||{},this.socket.start(t||{})(()=>{this.polling.isStarted&&this.polling.stopBySocket()},()=>{void 0!==this.requestType&&("websocket"!==this.requestType||this.polling.isStarted)?"websocket"===this.requestType&&this.polling.isStarted&&this.polling.restart(this.linkStartProps):this.polling.start(this.linkStartProps)}),setTimeout(()=>{!this.socket.pingStarted&&this.polling.start(this.linkStartProps)},3e3)}pause(){this.started=!1,this.requestType=void 0,this.polling.stop(),this.socket.stop()}stop(){this.pause(),this.requestType=void 0,this.off("*"),this.syncOff("*")}registerPublisher(t,e){this.publishCenter.registerPublisher(t,e),this.systemEmitter.emit("update-publisher","update")}unregisterPublisher(t){this.publishCenter.unregisterPublisher(t),this.systemEmitter.emit("update-publisher","delete")}destroy(){this.stop(),this.systemEmitter.off("*")}getPlugin(t){return this.plugins.get(t)}registerPlugin(t,e){if(this.plugins.has(t.id)){l()(`has registered plugin [${t.id}]`);return}let i=t.register(this,e);return this.middleware=j(this.originMiddleware),this.plugins.set(t.id,i),this.unregisterPlugin.bind(this,t.id)}unregisterPlugin(t){var e;let i=this.plugins.get(t);try{null==(e=null==i?void 0:i.unregister)||e.call(i)}catch(t){l()(`unregister error ${t}`)}this.plugins.delete(t)}};K.VERSION="0.0.6"},301685:function(t,e,i){"use strict";var s=i(177405).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return(0,a.default)(2,arguments),new Date((0,n.default)(t).getTime()+(0,r.default)(e))};var r=s(i(678296)),n=s(i(452811)),a=s(i(826204));t.exports=e.default},751004:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(763731),r=i(144256),n=i(462796),a=i(557094),o=i(588736);function h(t,e){(0,r.Z)(1,arguments);var i,h,l,c,u,p,d,f,m=(0,o.j)(),g=(0,a.Z)(null!==(i=null!==(h=null!==(l=null!==(c=null==e?void 0:e.firstWeekContainsDate)&&void 0!==c?c:null==e?void 0:null===(u=e.locale)||void 0===u?void 0:null===(p=u.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==l?l:m.firstWeekContainsDate)&&void 0!==h?h:null===(d=m.locale)||void 0===d?void 0:null===(f=d.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==i?i:1),v=(0,s.Z)(t,e),y=new Date(0);return y.setUTCFullYear(v,0,g),y.setUTCHours(0,0,0,0),(0,n.Z)(y,e)}},647566:function(t,e,i){"use strict";i.d(e,{Z:function(){return a}});var s=i(781039),r=i(144256),n=i(557094);function a(t,e){(0,r.Z)(2,arguments);var i=(0,n.Z)(e);return(0,s.Z)(t,-i)}},707268:function(t,e,i){t.exports=function(t){e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){let t=[...e.names,...e.skips.map(t=>"-"+t)].join(",");return e.enable(""),t},e.enable=function(t){for(let i of(e.save(t),e.namespaces=t,e.names=[],e.skips=[],("string"==typeof t?t:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===i[0]?e.skips.push(i.slice(1)):e.names.push(i)},e.enabled=function(t){for(let i of e.skips)if(r(t,i))return!1;for(let i of e.names)if(r(t,i))return!0;return!1},e.humanize=i(654180),e.destroy=function(){},Object.keys(t).forEach(i=>{e[i]=t[i]}),e.names=[],e.skips=[],e.formatters={};function e(t){let i,r,n;let a=null;function o(...t){if(!o.enabled)return;let s=Number(new Date),r=s-(i||s);o.diff=r,o.prev=i,o.curr=s,i=s,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let n=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(i,s)=>{if("%%"===i)return"%";n++;let r=e.formatters[s];if("function"==typeof r){let e=t[n];i=r.call(o,e),t.splice(n,1),n--}return i}),e.formatArgs.call(o,t),(o.log||e.log).apply(o,t)}return o.namespace=t,o.useColors=e.useColors(),o.color=e.selectColor(t),o.extend=s,o.destroy=e.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(r!==e.namespaces&&(r=e.namespaces,n=e.enabled(t)),n),set:t=>{a=t}}),"function"==typeof e.init&&e.init(o),o}function s(t,i){let s=e(this.namespace+(void 0===i?":":i)+t);return s.log=this.log,s}e.selectColor=function(t){let i=0;for(let e=0;ee.indexOf(s)&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,s=Object.getOwnPropertySymbols(t);re.indexOf(s[r])&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]]);return i};let g=h.j.SIZE,v=h.j.SHAPE,y=h.j.COLOR,b=h.U.PREFIX;class x extends u.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{notifyImgState:t=>{this.setState({isImgExist:t})},notifyEnter:t=>{let{hoverMask:e}=this.props;this.setState({hoverContent:e},()=>{let{onMouseEnter:e}=this.props;e&&e(t)})},notifyLeave:t=>{this.setState({hoverContent:""},()=>{let{onMouseLeave:e}=this.props;e&&e(t)})},setFocusVisible:t=>{this.setState({focusVisible:t})},setScale:t=>{this.setState({scale:t})},getAvatarNode:()=>{var t;return null===(t=this.avatarRef)||void 0===t?void 0:t.current}})}componentDidMount(){this.foundation=new l.Z(this.adapter),this.foundation.init()}componentDidUpdate(t){if(this.props.src&&this.props.src!==t.src){let t=new Image(0,0);t.src=this.props.src,t.onload=()=>{this.setState({isImgExist:!0})},t.onerror=()=>{this.setState({isImgExist:!1})},t.onabort=()=>{this.setState({isImgExist:!1})}}"string"==typeof this.props.children&&this.props.children!==t.children&&this.foundation.changeScale()}componentWillUnmount(){this.foundation.destroy()}onEnter(t){this.foundation.handleEnter(t)}onLeave(t){this.foundation.handleLeave(t)}handleError(){this.foundation.handleImgLoadError()}handleKeyDown(t){let{onClick:e}=this.props;switch(t.key){case"Enter":e(t),(0,p.Jt)(t);break;case"Escape":t.target.blur()}}render(){var t;let e=this.props,{shape:i,children:r,size:a,color:o,className:l,hoverMask:c,onClick:u,imgAttr:p,src:d,srcSet:f,style:g,alt:v,gap:y,bottomSlot:x,topSlot:_,border:k,contentMotion:w}=e,S=m(e,["shape","children","size","color","className","hoverMask","onClick","imgAttr","src","srcSet","style","alt","gap","bottomSlot","topSlot","border","contentMotion"]),{isImgExist:E,hoverContent:C,focusVisible:A}=this.state,P={};!h.j.SIZE.includes(a)&&(P={width:a,height:a}),P=Object.assign(Object.assign({},P),g);let I=x||_||k,T={onClick:u,onMouseEnter:this.onEnter,onMouseLeave:this.onLeave},L=d&&E,N=n()(b,{[`${b}-${i}`]:i,[`${b}-${a}`]:a,[`${b}-${o}`]:o&&!L,[`${b}-img`]:L,[`${b}-focus`]:A,[`${b}-animated`]:w},l),O=C?s.createElement("div",{className:`${b}-hover`,"x-semi-prop":"hoverContent"},C):null,V=s.createElement("span",Object.assign({},S,{style:I?{}:P,className:N},I?{}:T,{role:"listitem",ref:this.avatarRef}),this.getContent(),O);if(k){let e={};"object"==typeof k&&(null==k?void 0:k.color)&&(e.borderColor=null==k?void 0:k.color),V=s.createElement("div",{style:Object.assign({position:"relative"},P)},V,s.createElement("span",{style:e,className:n()([`${b}-additionalBorder`,`${b}-additionalBorder-${a}`,{[`${b}-${i}`]:i}])}),"object"==typeof this.props.border&&this.props.border.motion&&s.createElement("span",{style:e,className:n()([`${b}-additionalBorder`,`${b}-additionalBorder-${a}`,{[`${b}-${i}`]:i,[`${b}-additionalBorder-animated`]:"object"==typeof this.props.border&&(null===(t=this.props.border)||void 0===t?void 0:t.motion)}])}))}return I?s.createElement("span",Object.assign({className:n()([`${b}-wrapper`]),style:P},T),V,_&&["extra-small","small","default","medium","large","extra-large"].includes(a)&&"circle"===i&&this.renderTopSlot(),x&&["extra-small","small","default","medium","large","extra-large"].includes(a)&&this.renderBottomSlot()):V}constructor(t){super(t),this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.getContent=()=>{let{children:t,onClick:e,imgAttr:i,src:r,srcSet:a,alt:o}=this.props,{isImgExist:h}=this.state,l=t,u=e!==c.Z,p=r&&h,d={tabIndex:0,onKeyDown:this.handleKeyDown,onFocus:this.handleFocusVisible,onBlur:this.handleBlur};if(p){let t=u?`clickable Avatar: ${o}`:o,e=Object.assign(Object.assign({src:r,srcSet:a,onError:this.handleError},i),{className:n()({[`${b}-no-focus-visible`]:u})}),h=u?Object.assign(Object.assign({},e),d):e;l=s.createElement("img",Object.assign({alt:t},h))}else if("string"==typeof t){let e=null!=o?o:t,i={role:"img","aria-label":u?`clickable Avatar: ${e}`:e,className:n()(`${b}-label`,{[`${b}-no-focus-visible`]:u})},r=u?Object.assign(Object.assign({},i),d):i,a={transform:`scale(${this.state.scale})`};l=s.createElement("span",{className:`${b}-content`,style:a},s.createElement("span",Object.assign({},r,{"x-semi-prop":"children"}),t))}return l},this.renderBottomSlot=()=>{var t,e;if(!this.props.bottomSlot)return null;if(this.props.bottomSlot.render)return this.props.bottomSlot.render();let i=null!==(t=this.props.bottomSlot.render)&&void 0!==t?t:()=>{var t;let e={};return this.props.bottomSlot.bgColor&&(e.backgroundColor=this.props.bottomSlot.bgColor),this.props.bottomSlot.textColor&&(e.color=this.props.bottomSlot.textColor),s.createElement("span",{style:e,className:n()(`${b}-bottom_slot-shape_${this.props.bottomSlot.shape}`,`${b}-bottom_slot-shape_${this.props.bottomSlot.shape}-${this.props.size}`,null!==(t=this.props.bottomSlot.className)&&void 0!==t?t:"")},this.props.bottomSlot.text)};return s.createElement("div",{className:n()([`${b}-bottom_slot`]),style:null!==(e=this.props.bottomSlot.style)&&void 0!==e?e:{}},i())},this.renderTopSlot=()=>{var t,e,i,r;if(!this.props.topSlot)return null;if(this.props.topSlot.render)return this.props.topSlot.render();let a={};return this.props.topSlot.textColor&&(a.color=this.props.topSlot.textColor),s.createElement("div",{style:null!==(t=this.props.topSlot.style)&&void 0!==t?t:{},className:n()([`${b}-top_slot-wrapper`,null!==(e=this.props.topSlot.className)&&void 0!==e?e:"",{[`${b}-animated`]:this.props.contentMotion}])},s.createElement("div",{className:n()([`${b}-top_slot-bg`,`${b}-top_slot-bg-${this.props.size}`])},s.createElement("div",{className:n()([`${b}-top_slot-bg-svg`,`${b}-top_slot-bg-svg-${this.props.size}`])},s.createElement(f.Z,{gradientStart:null!==(i=this.props.topSlot.gradientStart)&&void 0!==i?i:"var(--semi-color-primary)",gradientEnd:null!==(r=this.props.topSlot.gradientEnd)&&void 0!==r?r:"var(--semi-color-primary)"}))),s.createElement("div",{className:n()([`${b}-top_slot`])},s.createElement("div",{style:a,className:n()([`${b}-top_slot-content`,`${b}-top_slot-content-${this.props.size}`])},this.props.topSlot.text)))},this.state={isImgExist:!0,hoverContent:"",focusVisible:!1,scale:1},this.onEnter=this.onEnter.bind(this),this.onLeave=this.onLeave.bind(this),this.handleError=this.handleError.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.getContent=this.getContent.bind(this),this.avatarRef=s.createRef()}}x.__SemiComponentName__="Avatar",x.defaultProps=(0,d.GW)(x.__SemiComponentName__,{size:"medium",color:"grey",shape:"circle",gap:3,onClick:c.Z,onMouseEnter:c.Z,onMouseLeave:c.Z}),x.propTypes={children:o().node,color:o().oneOf(y),shape:o().oneOf(v),size:o().oneOf(g),hoverMask:o().node,className:o().string,style:o().object,gap:o().number,imgAttr:o().object,src:o().string,srcSet:o().string,alt:o().string,onError:o().func,onClick:o().func,onMouseEnter:o().func,onMouseLeave:o().func,bottomSlot:o().shape({render:o().func,shape:o().oneOf(["circle","square"]),text:o().node,bgColor:o().string,textColor:o().string,className:o().string,style:o().object}),topSlot:o().shape({render:o().func,gradientStart:o().string,gradientEnd:o().string,text:o().node,textColor:o().string,className:o().string,style:o().object}),border:o().oneOfType([o().shape({color:o().string,motion:o().bool}),o().bool]),contentMotion:o().bool},x.elementType="Avatar"},93672:function(t,e,i){"use strict";i.d(e,{Z:function(){return y}}),i(932651);var s=i(876553),r=i.n(s),n=i(101199),a=i(469935),o=i.n(a),h=i(622689),l=i.n(h),c=i(10380),u=i(120177),p=i(644641),d=i(82081),f=i(426337),m=i(209873),g=i(307852);i(233777);let v=`${u.U.PREFIX}-day`;class y extends f.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{updateScrollHeight:t=>{this.setState({scrollHeight:t})},setParsedEvents:t=>{this.setState({parsedEvents:t})},cacheEventKeys:t=>{this.setState({cachedKeys:t})}})}componentDidMount(){this.foundation.init();let{scrollHeight:t}=this.scrollDom.current;this.dom.current.scrollTop=this.props.scrollTop,this.foundation.notifyScrollHeight(t),this.foundation.parseDailyEvents()}componentDidUpdate(t,e){let i=e.cachedKeys,s=this.props.events.map(t=>t.key);(!r()(i,s)||!r()(t.displayValue,this.props.displayValue))&&this.foundation.parseDailyEvents()}componentWillUnmount(){this.foundation.destroy()}render(){let{dateGridRender:t,displayValue:e,showCurrTime:i,renderTimeDisplay:s,markWeekend:r,className:a,height:h,width:l,style:c,header:u,minEventHeight:f}=this.props,m=o()(v,a),g=Object.assign({height:h,width:l},c),{parsedEvents:y,scrollHeight:b}=this.state;return this.isWeekend=r&&this.checkWeekend(e),n.createElement("div",Object.assign({className:m,style:g,ref:this.dom},this.getDataAttr(this.props)),n.createElement("div",{className:`${v}-sticky-top`},u,this.renderAllDay(y.allDay)),n.createElement("div",{className:`${v}-scroll-wrapper`},n.createElement("div",{className:`${v}-scroll`,ref:this.scrollDom},n.createElement(d.Z,{className:`${v}-sticky-left`,renderTimeDisplay:s}),n.createElement(p.Z,{events:y.day,displayValue:e,scrollHeight:b,handleClick:this.handleClick,showCurrTime:i,isWeekend:this.isWeekend,minEventHeight:f,dateGridRender:t}))))}constructor(t){super(t),this.checkWeekend=t=>this.foundation.checkWeekend(t),this.renderAllDayEvents=t=>this.props.allDayEventsRender?this.props.allDayEventsRender(this.props.events):t.map((t,e)=>{let{children:i,key:s}=t;return n.createElement("li",{className:`${u.U.PREFIX}-event-item ${u.U.PREFIX}-event-allday`,key:s||`allDay-${e}`},i)}),this.handleClick=(t,e)=>{let{onClick:i}=this.props,s=this.foundation.formatCbValue(e);i&&i(t,s)},this.renderAllDay=t=>{let e=`${u.U.PREFIX}-all-day`,i=o()(`${e}-content`,{[`${u.U.PREFIX}-weekend`]:this.isWeekend});return n.createElement(m.Z,{componentName:"Calendar"},s=>n.createElement("div",{className:`${e}`},n.createElement("ul",{className:`${u.U.PREFIX}-tag ${e}-tag ${v}-sticky-left`},n.createElement("span",null,s.allDay)),n.createElement("div",{role:"gridcell",className:i},n.createElement("ul",{className:`${u.U.PREFIX}-event-items`},this.renderAllDayEvents(t)))))},this.foundation=new c.Z(this.adapter),this.state={scrollHeight:0,parsedEvents:{day:[],allDay:[]},cachedKeys:[]},this.dom=n.createRef(),this.scrollDom=n.createRef(),this.isWeekend=!1}}y.propTypes={displayValue:l().instanceOf(Date),events:l().array,header:l().node,showCurrTime:l().bool,onClick:l().func,mode:l().string,renderTimeDisplay:l().func,markWeekend:l().bool,minEventHeight:l().number,scrollTop:l().number,width:l().oneOfType([l().number,l().string]),height:l().oneOfType([l().number,l().string]),style:l().object,className:l().string,dateGridRender:l().func,allDayEventsRender:l().func},y.defaultProps={events:[],displayValue:new Date,mode:"day"},y.contextType=g.Z},742916:function(t,e,i){"use strict";i(932651),i(706056);var s=i(72137),r=i.n(s),n=i(876553),a=i.n(n),o=i(101199),h=i(851670),l=i(426337),c=i(622689),u=i.n(c),p=i(469935),d=i.n(p),f=i(98512);i(850607);var m=i(678503);class g extends l.Z{get adapter(){return Object.assign(Object.assign({},super.adapter),{setDOMInRenderTree:t=>{this.state.domInRenderTree!==t&&this.setState({domInRenderTree:t})},setDOMHeight:t=>{this.state.domHeight!==t&&this.setState({domHeight:t})},setVisible:t=>{this.state.visible!==t&&this.setState({visible:t})},setIsTransitioning:t=>{this.state.isTransitioning!==t&&this.setState({isTransitioning:t})}})}componentDidMount(){super.componentDidMount(),this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.domRef.current);let t=this.isChildrenInRenderTree();this.foundation.updateDOMInRenderTree(t),t&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight)}componentDidUpdate(t,e,i){let s=Object.keys(r()(this.props,["reCalcKey","isOpen"])).filter(e=>!a()(this.props[e],t[e])),n=Object.keys(r()(this.state,["domInRenderTree"])).filter(t=>!a()(this.state[t],e[t]));s.includes("reCalcKey")&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),n.includes("domInRenderTree")&&this.state.domInRenderTree&&this.foundation.updateDOMHeight(this.domRef.current.scrollHeight),s.includes("isOpen")&&(this.props.isOpen||!this.props.motion)&&this.foundation.updateVisible(this.props.isOpen),this.props.motion&&t.isOpen!==this.props.isOpen&&this.foundation.updateIsTransitioning(!0)}componentWillUnmount(){super.componentWillUnmount(),this.resizeObserver.disconnect()}render(){let t=Object.assign({overflow:"hidden",height:this.props.isOpen?this.state.domHeight:this.props.collapseHeight,opacity:this.props.isOpen||!this.props.fade||0!==this.props.collapseHeight?1:0,transitionDuration:`${this.props.motion&&this.state.isTransitioning?this.props.duration:0}ms`},this.props.style),e=d()(`${f.U.PREFIX}-wrapper`,{[`${f.U.PREFIX}-transition`]:this.props.motion&&this.state.isTransitioning},this.props.className),i=this.props.keepDOM&&(!this.props.lazyRender||this.hasBeenRendered)||0!==this.props.collapseHeight||this.state.visible||this.props.isOpen;return i&&!this.hasBeenRendered&&(this.hasBeenRendered=!0),o.createElement("div",Object.assign({className:e,style:t,onTransitionEnd:()=>{var t,e;!this.props.isOpen&&this.foundation.updateVisible(!1),this.foundation.updateIsTransitioning(!1),null===(e=(t=this.props).onMotionEnd)||void 0===e||e.call(t)}},this.getDataAttr(this.props)),o.createElement("div",{"x-semi-prop":"children",ref:this.domRef,style:{overflow:"hidden"},id:this.props.id},i&&this.props.children))}constructor(t){super(t),this.domRef=o.createRef(),this.hasBeenRendered=!1,this.handleResize=t=>{let e=t[0];if(e){let t=g.getEntryInfo(e);this.foundation.updateDOMHeight(t.height),this.foundation.updateDOMInRenderTree(t.isShown)}},this.isChildrenInRenderTree=()=>!!this.domRef.current&&this.domRef.current.offsetHeight>0,this.state={domInRenderTree:!1,domHeight:0,visible:this.props.isOpen,isTransitioning:!1},this.foundation=new h.Z(this.adapter)}}g.__SemiComponentName__="Collapsible",g.defaultProps=(0,m.GW)(g.__SemiComponentName__,{isOpen:!1,duration:250,motion:!0,keepDOM:!1,lazyRender:!1,collapseHeight:0,fade:!1}),g.getEntryInfo=t=>{let e;e=t.borderBoxSize?!(0===t.borderBoxSize[0].blockSize&&0===t.borderBoxSize[0].inlineSize):!(0===t.contentRect.height&&0===t.contentRect.width);let i=0;return{isShown:e,height:i=t.borderBoxSize?Math.ceil(t.borderBoxSize[0].blockSize):t.target.clientHeight}},g.propTypes={motion:u().bool,children:u().node,isOpen:u().bool,duration:u().number,keepDOM:u().bool,collapseHeight:u().number,style:u().object,className:u().string,reCalcKey:u().oneOfType([u().string,u().number])},e.Z=g},806180:function(t,e,i){"use strict";i.d(e,{Z:function(){return A}}),i(932651);var s=i(285406),r=i.n(s),n=i(390063),a=i.n(n),o=i(198412),h=i.n(o),l=i(795233),c=i.n(l),u=i(101199),p=i(469935),d=i.n(p),f=i(622689),m=i.n(f),g=i(273249),v=i(202747),y=i(170651),b=i(709544),x=i(426337),_=i(619050),k=i(9444),w=i(230720),S=i(209873);i(165157);var E=i(678503),C=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&0>e.indexOf(s)&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,s=Object.getOwnPropertySymbols(t);re.indexOf(s[r])&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]]);return i};class A extends x.Z{static getDerivedStateFromProps(t,e){let i={},{hasOwnProperty:s}=Object.prototype;return s.call(t,"visible")&&(i.visible=t.visible),i}get adapter(){return Object.assign(Object.assign({},super.adapter),{setVisible:t=>this.setState({visible:t}),updateConfirmLoading:t=>this.setState({confirmLoading:t}),updateCancelLoading:t=>this.setState({cancelLoading:t}),notifyConfirm:t=>this.props.onConfirm(t),notifyCancel:t=>this.props.onCancel(t),notifyVisibleChange:t=>this.props.onVisibleChange(t),notifyClickOutSide:t=>this.props.onClickOutSide(t),focusCancelButton:()=>{var t,e;let i=null===(e=null===(t=this.footerRef)||void 0===t?void 0:t.current)||void 0===e?void 0:e.querySelector("[data-type=cancel]");null==i||i.focus({preventScroll:!0})},focusOkButton:()=>{var t,e;let i=null===(e=null===(t=this.footerRef)||void 0===t?void 0:t.current)||void 0===e?void 0:e.querySelector("[data-type=ok]");null==i||i.focus({preventScroll:!0})},focusPrevFocusElement:()=>{var t;null===(t=this.popoverRef.current)||void 0===t||t.focusTrigger()}})}renderControls(){let{okText:t,cancelText:e,okType:i,cancelType:s,cancelButtonProps:n,okButtonProps:a}=this.props,{cancelLoading:o,confirmLoading:l}=this.state;return u.createElement(S.Z,{componentName:"Popconfirm"},(c,p)=>u.createElement(u.Fragment,null,u.createElement(k.Z,Object.assign({"data-type":"cancel",type:s,onClick:this.handleCancel,loading:o},r()(n,"autoFocus")),e||h()(c,"cancel")),u.createElement(k.Z,Object.assign({"data-type":"ok",type:i,theme:"solid",onClick:this.handleConfirm,loading:l},r()(a,"autoFocus")),t||h()(c,"confirm"))))}render(){let{direction:t}=this.context,e=this.props,{className:i,prefixCls:s,disabled:r,children:n,style:a,position:o="rtl"===t?"bottomRight":"bottomLeft"}=e,h=C(e,["className","prefixCls","disabled","children","style","position"]);if(r)return n;let{visible:l}=this.state,c={onVisibleChange:this.handleVisibleChange,className:g.UX.POPOVER,onClickOutSide:this.handleClickOutSide};return this.isControlled("visible")&&(c.trigger="custom"),u.createElement(_.Z,Object.assign({ref:this.popoverRef},h,{content:t=>{let{initialFocusRef:e}=t;return this.renderConfirmPopCard({initialFocusRef:e})},visible:l,position:o},c),n)}constructor(t){super(t),this.handleCancel=t=>this.foundation.handleCancel(t&&t.nativeEvent),this.handleConfirm=t=>this.foundation.handleConfirm(t&&t.nativeEvent),this.handleVisibleChange=t=>this.foundation.handleVisibleChange(t),this.handleClickOutSide=t=>this.foundation.handleClickOutSide(t),this.stopImmediatePropagation=t=>t&&t.nativeEvent&&t.nativeEvent.stopImmediatePropagation(),this.renderConfirmPopCard=t=>{let{initialFocusRef:e}=t,{content:i,title:s,className:r,style:n,cancelType:o,icon:h,prefixCls:l,showCloseIcon:c}=this.props,{direction:p}=this.context,f=d()(l,r,{[`${l}-rtl`]:"rtl"===p}),m=null!=s,g=null!=i,v=u.isValidElement(h),b=d()({[`${l}-body`]:!0,[`${l}-body-withIcon`]:v});return u.createElement("div",{className:f,onClick:this.stopImmediatePropagation,style:n},u.createElement("div",{className:`${l}-inner`},u.createElement("div",{className:`${l}-header`},v?u.createElement("i",{className:`${l}-header-icon`,"x-semi-prop":"icon"},h):null,u.createElement("div",{className:`${l}-header-body`},m?u.createElement("div",{className:`${l}-header-title`,"x-semi-prop":"title"},s):null),c?u.createElement(k.Z,{className:`${l}-btn-close`,icon:u.createElement(y.Z,null),size:"small",theme:"borderless",type:o,onClick:this.handleCancel}):null),g?u.createElement("div",{className:b,"x-semi-prop":"content"},a()(i)?i({initialFocusRef:e}):i):null,u.createElement("div",{className:`${l}-footer`,ref:this.footerRef},this.renderControls())))},this.state={cancelLoading:!1,confirmLoading:!1,visible:t.defaultVisible||!1},this.foundation=new v.Z(this.adapter),this.footerRef=u.createRef(),this.popoverRef=u.createRef()}}A.contextType=w.Z,A.propTypes={motion:m().oneOfType([m().bool,m().func,m().object]),disabled:m().bool,content:m().oneOfType([m().node,m().func]),title:m().any,prefixCls:m().string,className:m().string,style:m().object,icon:m().node,okText:m().string,okType:m().string,cancelText:m().string,cancelType:m().string,onCancel:m().func,onConfirm:m().func,onClickOutSide:m().func,onVisibleChange:m().func,visible:m().bool,defaultVisible:m().bool,okButtonProps:m().object,cancelButtonProps:m().object,stopPropagation:m().oneOfType([m().bool,m().string]),showCloseIcon:m().bool,zIndex:m().number,trigger:m().string,position:m().string},A.__SemiComponentName__="Popconfirm",A.defaultProps=(0,E.GW)(A.__SemiComponentName__,{stopPropagation:!0,trigger:"click",onVisibleChange:c(),disabled:!1,icon:u.createElement(b.Z,{size:"extra-large"}),okType:"primary",cancelType:"tertiary",prefixCls:g.UX.PREFIX,zIndex:g.KT.DEFAULT_Z_INDEX,showCloseIcon:!0,onCancel:c(),onConfirm:c(),onClickOutSide:c()})},458831:function(t,e,i){"use strict";i(932651);var s=i(795233),r=i.n(s),n=i(101199),a=i(469935),o=i.n(a),h=i(622689),l=i.n(h),c=i(148189),u=i(100078),p=i(426337);i(885534);var d=i(180007),f=function(t,e){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&0>e.indexOf(s)&&(i[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,s=Object.getOwnPropertySymbols(t);re.indexOf(s[r])&&Object.prototype.propertyIsEnumerable.call(t,s[r])&&(i[s[r]]=t[s[r]]);return i};class m extends p.Z{componentDidMount(){this.foundation.init()}componentDidUpdate(t){this.props.checked!==t.checked&&this.foundation.setChecked(this.props.checked),this.props.disabled!==t.disabled&&this.foundation.setDisabled(this.props.disabled)}componentWillUnmount(){this.foundation.destroy()}get adapter(){return Object.assign(Object.assign({},super.adapter),{setNativeControlChecked:t=>{this.setState({nativeControlChecked:t})},setNativeControlDisabled:t=>{this.setState({nativeControlDisabled:t})},setFocusVisible:t=>{this.setState({focusVisible:t})},notifyChange:(t,e)=>{this.props.onChange(t,e)}})}render(){let{nativeControlChecked:t,nativeControlDisabled:e,focusVisible:i}=this.state,s=this.props,{className:r,style:a,onMouseEnter:h,onMouseLeave:l,size:c,checkedText:p,uncheckedText:m,loading:g,id:v}=s,y=f(s,["className","style","onMouseEnter","onMouseLeave","size","checkedText","uncheckedText","loading","id"]),b=o()(r,{[u.U.PREFIX]:!0,[u.U.CHECKED]:t,[u.U.DISABLED]:e,[u.U.LARGE]:"large"===c,[u.U.SMALL]:"small"===c,[u.U.LOADING]:g,[u.U.FOCUS]:i}),x={type:"checkbox",className:u.U.NATIVE_CONTROL,disabled:e||g,checked:t||!1},_=p&&t&&"small"!==c,k=m&&!t&&"small"!==c;return n.createElement("div",Object.assign({className:b,style:a,onMouseEnter:h,onMouseLeave:l},this.getDataAttr(y)),g?n.createElement(d.Z,{wrapperClassName:u.U.LOADING_SPIN,size:"default"===c?"middle":c}):n.createElement("div",{className:u.U.KNOB,"aria-hidden":!0}),_?n.createElement("div",{className:u.U.CHECKED_TEXT,"x-semi-prop":"checkedText"},p):null,k?n.createElement("div",{className:u.U.UNCHECKED_TEXT,"x-semi-prop":"uncheckedText"},m):null,n.createElement("input",Object.assign({},x,{ref:this.switchRef,id:v,role:"switch","aria-checked":t,"aria-invalid":this.props["aria-invalid"],"aria-errormessage":this.props["aria-errormessage"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.props["aria-describedby"],"aria-disabled":this.props.disabled,onChange:t=>this.foundation.handleChange(t.target.checked,t),onFocus:t=>this.handleFocusVisible(t),onBlur:t=>this.handleBlur(t)})))}constructor(t){super(t),this.handleFocusVisible=t=>{this.foundation.handleFocusVisible(t)},this.handleBlur=t=>{this.foundation.handleBlur()},this.state={nativeControlChecked:t.defaultChecked||t.checked,nativeControlDisabled:!1,focusVisible:!1},this.switchRef=n.createRef(),this.foundation=new c.Z(this.adapter)}}m.propTypes={"aria-label":l().string,"aria-labelledby":l().string,"aria-invalid":l().bool,"aria-errormessage":l().string,"aria-describedby":l().string,className:l().string,checked:l().bool,checkedText:l().node,defaultChecked:l().bool,disabled:l().bool,loading:l().bool,onChange:l().func,onMouseEnter:l().func,onMouseLeave:l().func,style:l().object,size:l().oneOf(u.j.SIZE_MAP),uncheckedText:l().node,id:l().string},m.defaultProps={disabled:!1,className:"",onChange:r(),loading:!1,onMouseEnter:r(),onMouseLeave:r(),size:"default"},e.Z=m},665480:function(t,e,i){"use strict";i.d(e,{R:function(){return r}});var s=i(629686);function r(t){let e=(0,s._)({retryCount:3,retryDelay:1e3,disconnectRetryCount:0,loadTimeout:1e4,maxReaderInterval:5e3,preloadTime:5,defaultVodLoadSize:1e7,isLive:!0,softDecode:!1,bufferBehind:10,maxJumpDistance:3,analyzeDuration:2e4,keepStatusAfterSwitch:!0,onlyVideo:!1,onlyAudio:!1,preferMMS:!1,mseLowLatency:!0,durationForMSELowLatencyOff:6,chunkCountForSpeed:50,skipChunkSize:1e3,longtimeNoReceived:3e3,enableStartGapJump:!0},t);return e.isLive&&e.preloadTime&&(!e.maxLatency&&(e.maxLatency=2*e.preloadTime),!e.targetLatency&&(e.targetLatency=e.preloadTime),(null===e.disconnectTime||void 0===e.disconnectTime)&&(e.disconnectTime=e.maxLatency)),e}},629124:function(t,e,i){"use strict";i.d(e,{C:function(){return l}});var s=i(480333),r=i(629686),n=i(141773),a=i(705172),o=i(773897),h=i(34768);class l extends n.v{init(t){this._media=t;let{config:e}=this;this._hls=new a.r((0,r._)({isLive:!e.isVod,media:t},e),this),this.initPlugins(),this._src&&this._hls.load(e.url,{reuseMse:!0}).catch(t=>{})}initPlugins(){let{plugins:t}=this.config;t&&(this.plugins=t.map(t=>new t(this))),this.plugins.forEach(t=>{t.afterPlayerInit()})}playBy(){var t;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{url:i}=e;this._src=i,this.updateProtoConfig(e),e.seamless?this.emit(h.Zo.SEAMLESS_LOAD_STREAM,{url:i}):this.emit(h.Zo.URLCHANGE,{url:i}),this._onSwitchURL(e.url,!!e.seamless),null===(t=this.media)||void 0===t||t.dispatchEvent(new CustomEvent("loadstart",{}))}updateProtoConfig(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=(0,o.i)((0,r._)({},this.config,t));return this.config=e,e}reset(){this._hls&&(this._hls.destroy(),this._hls=void 0)}get src(){return this._src}get buffered(){var t;return null===(t=this.media)||void 0===t?void 0:t.buffered}get currentTime(){var t;return null===(t=this.media)||void 0===t?void 0:t.currentTime}get duration(){var t;return null===(t=this.media)||void 0===t?void 0:t.duration}get media(){return this._media}get speed(){var t;return null===(t=this.media)||void 0===t?void 0:t.playbackRate}set speed(t){this.speed!==t&&(this.media.playbackRate=t)}get bufferLength(){let{currentTime:t=0,buffered:e}=this._media||{};if(!e)return 0;for(let i=0;i=t)return(s-t)*1e3}return 0}play(){var t;return null===(t=this._media)||void 0===t?void 0:t.play()}static isSupported(t){return a.r.isSupported(t)}constructor(t,e){super(),(0,s._)(this,"_media",null),(0,s._)(this,"_hls",void 0),(0,s._)(this,"_src",void 0),(0,s._)(this,"preUrl",void 0),(0,s._)(this,"_revocable",null),(0,s._)(this,"config",{}),(0,s._)(this,"plugins",[]),(0,s._)(this,"destroy",()=>{this.removeAllListeners(),this.reset(),this.plugins.forEach(t=>{t.destroy()})}),(0,s._)(this,"_onSwitchURL",(t,e)=>{if(this._hls){var i;this.preUrl=this.config.url,this.config.url=t,this._hls.switchURL(t,e),!e&&(null===(i=this.config)||void 0===i?void 0:i.keepStatusAfterSwitch)&&this._keepPauseStatus()}}),(0,s._)(this,"_keepPauseStatus",()=>{var t,e;if(!(null===(t=this._media)||void 0===t?void 0:t.paused))return;let i=()=>{var t,e;null===(t=this.media)||void 0===t||t.removeEventListener("canplay",i),null===(e=this._media)||void 0===e||e.pause()};null===(e=this.media)||void 0===e||e.addEventListener("canplay",i)}),this.config=this.updateProtoConfig(e),this._src=this.config.url,this.init(t)}}},768388:function(t,e,i){"use strict";i.d(e,{e:function(){return l}}),i(374954),i(240148),i(759943),i(527553);var s=i(309991);let r=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],n=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],a=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],o=[0,1,1,4],h=null;class l{static isHeader(t,e){return e+1e.length)return;let a=l.parseHeader(e,i);if(a&&i+a.frameLength<=e.length){let o=r+n*(9e4*a.samplesPerFrame/a.sampleRate),h={data:e.subarray(i,i+a.frameLength),pts:o,dts:o};return h.size=h.data.byteLength,t.config=[],t.channelCount=a.channelCount,t.sampleRate=a.sampleRate,s.vU?t.codec="mp3":t.container="audio/mpeg",t.samples.push(h),{length:a.frameLength}}}static parseHeader(t,e){let i=t[e+1]>>3&3,s=t[e+1]>>1&3,l=t[e+2]>>4&15,c=t[e+2]>>2&3;if(1!==i&&0!==l&&15!==l&&3!==c){let u=t[e+2]>>1&1,p=t[e+3]>>6,d=1e3*r[14*(3===i?3-s:3===s?3:4)+l-1],f=n[3*(3===i?0:2===i?1:2)+c],m=a[i][s],g=o[s],v=Math.floor(m*d/f+u)*g;if(null===h){let t=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);h=t?parseInt(t[1]):0}return h&&h<=87&&2===s&&d>=224e3&&0===p&&(t[e+3]=128|t[e+3]),{sampleRate:f,channelCount:3===p?1:2,frameLength:v,samplesPerFrame:8*m*g}}}}},626705:function(t,e,i){"use strict";i.d(e,{r:function(){return a}});var s=i(480333);i(76375),i(490629);class r{start(t){if(t>this.length-1)throw Error(`Failed to execute 'start' on 'TimeRanges': The index provided (${t}) is greater than the maximum bound (${this.length})`);return this._allBuffered[t].start}end(t){if(t>this.length-1)throw Error(`Failed to execute 'end' on 'TimeRanges': The index provided (${t}) is greater than the maximum bound (${this.length})`);return this._allBuffered[t].end}update(t){!this.length&&(this.length=1),this._videoBufferEnd="number"==typeof t.videoBufferEnd?t.videoBufferEnd:0,this._audioBufferEnd="number"==typeof t.audioBufferEnd?t.audioBufferEnd:0,this._allBuffered=t.buffered||[],this.length=this._allBuffered.length}constructor(){(0,s._)(this,"length",0),(0,s._)(this,"_videoBufferEnd",0),(0,s._)(this,"_audioBufferEnd",0),(0,s._)(this,"_allBuffered",[])}}class n{constructor(){(0,s._)(this,"currentTime",0),(0,s._)(this,"duration",0),(0,s._)(this,"speedInfo",{averageKBps:0,currentKBps:0,totalByteSize:0,type:""}),(0,s._)(this,"pcdnAverageKBps",0),(0,s._)(this,"ended",!1),(0,s._)(this,"buffered",new r),(0,s._)(this,"audioBuffered",new r),(0,s._)(this,"videoBuffered",new r),(0,s._)(this,"playbackQuality",{decodedVideoFrames:0,droppedVideoFrames:0,droppedRate:0})}}class a extends n{constructor(...t){super(...t),(0,s._)(this,"playbackQuality",{decodedVideoFrames:0,droppedVideoFrames:0,droppedRate:0})}}},194559:function(t,e,i){"use strict";i.d(e,{Z:function(){return f}}),i(490629),i(932651),i(679308),i(374954);var s=i(526838),r=i.n(s),n=i(390063),a=i.n(n),o=i(92122),h=i.n(o),l=i(856445),c=i(669067),u=i(698293),p=i(373410),d=i(150236);class f extends l.Z{init(){this._adapter.initFormId()}getField(t){return this.fields.get(t)}register(t,e,i){if(this.registered[t],this.registered[t]=!0,this.fields.set(t,i),i.keepState);else{let s=i.allowEmpty||!1,r={notNotify:!0,notUpdate:!1,allowEmpty:s},n=e.value;!s&&""===n&&(n=void 0),this.updateStateValue(t,n,r),e.error&&this.updateStateError(t,e.error,r)}}unRegister(t){let e=this.fields.get(t);try{!e.keepState&&(c.Od(this.data.values,t),c.Od(this.data.errors,t),c.Od(this.data.touched,t))}catch(t){}this.fields.delete(t),this._adapter.notifyChange(this.data),this._adapter.forceUpdate()}registerArrayField(t,e){this.updateArrayField(t,{updateKey:new Date().valueOf(),initValue:e})}unRegisterArrayField(t){this.registeredArrayField.delete(t)}getArrayField(t){return this.registeredArrayField.get(t)}updateArrayField(t,e){let i=Object.assign(Object.assign({},this.registeredArrayField.get(t)),e);this.registeredArrayField.set(t,i)}validate(t){let{validateFields:e}=this.getProps();return e&&a()(e)?this._formValidate():this._fieldsValidate(t)}_formValidate(){let{values:t}=this.data,{validateFields:e}=this.getProps();return new Promise((i,s)=>{let r;try{r=e(t)}catch(t){r=t}r?(0,u.Z)(r)?r.then(e=>{e?(this.data.errors=e,this._adapter.notifyChange(this.data),this.injectErrorToField(e),this._adapter.forceUpdate(),this._autoScroll(100),s(e)):(i(this._adapter.cloneDeep(t)),this.injectErrorToField({}))},t=>{this._autoScroll(100),s(t)}):(this.data.errors=r,this.injectErrorToField(r),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._autoScroll(100),s(r)):(i(this._adapter.cloneDeep(t)),this.injectErrorToField({}))})}_fieldsValidate(t){let{values:e}=this.data;return new Promise((i,s)=>{let r=[],n=this._getOperateFieldMap(t);n.forEach((t,e)=>{let i=this.getValue(e),s={notNotify:!0,notUpdate:!0},n=t.fieldApi.validate(i,s);r.push(n),t.fieldApi.setTouched(!0,s)}),Promise.all(r).then(()=>{this._adapter.notifyChange(this.data),this._adapter.forceUpdate();let t=this.getError();this._isValid(n)?i(this._adapter.cloneDeep(e)):(this._autoScroll(),s(t))})})}submit(t){let{values:e}=this.data;this.validate().then(e=>{let i=this._adapter.cloneDeep(e);this._adapter.notifySubmit(i,t)}).catch(i=>{let s=this._adapter.cloneDeep(i),r=this._adapter.cloneDeep(e);this._adapter.notifySubmitFail(s,r,t)})}_getNestedField(t){let e=this.fields,i=[...e].map(t=>t[0]),s=new Map;return i.forEach(i=>{let n=r()(i),a=r()(t);if(a.every((t,e)=>a[e]===n[e])){let t=e.get(i);s.set(i,t)}}),s}_getOperateFieldMap(t){let e=new Map;return h()(t)?e=this.fields:t.forEach(t=>{let i=this.fields.get(t);if(h()(i)){let i=this._getNestedField(t);e=new Map([...e,...i])}else e.set(t,i)}),e}reset(t){this._getOperateFieldMap(t).forEach(t=>{t.fieldApi.reset()}),this.registeredArrayField.size&&this._resetArrayField(),this._adapter.notifyChange(this.data),this._adapter.forceUpdate(),this._adapter.notifyReset()}_resetArrayField(){[...this.registeredArrayField.keys()].forEach(t=>{let e=this.registeredArrayField.get(t).initValue;this.updateStateValue(t,e,{notNotify:!0,notUpdate:!0}),this.updateArrayField(t,{updateKey:new Date().valueOf()})})}injectErrorToField(t){this.fields.forEach(e=>{let i=c.U2(t,e.field);e.fieldApi.setError(i,{notNotify:!0,notUpdate:!0})})}getValue(t,e){let i,s;let r=void 0===t,n=e&&e.needClone;switch(!0){case!r&&!n:i=c.U2(this.data.values,t);break;case!r&&n:s=c.U2(this.data.values,t),i=this._adapter.cloneDeep(s);break;case r&&!n:i=Object.assign({},this.data.values);break;case r&&n:i=this._adapter.cloneDeep(this.data.values)}return i}setValues(t,e){let{isOverride:i=!1}=e,s=this._adapter.cloneDeep(t);this.fields.forEach(t=>{let e=c.U2(s,t.field);t.fieldApi.setValue(e,{notNotify:!0,notUpdate:!0})}),this.registeredArrayField.size&&[...this.registeredArrayField.keys()].forEach(t=>{this.updateArrayField(t,{updateKey:new Date().valueOf()})}),i&&(this.data.values=s),this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,Object.assign({},t)),this._adapter.forceUpdate()}updateStateValue(t,e,i,s){let r=i&&i.notNotify,n=i&&i.notUpdate,a=i&&i.fieldAllowEmpty,o=this.getProp("allowEmpty");c.t8(this.data.values,t,e,a||o),!r&&(this._adapter.notifyChange(this.data),this._adapter.notifyValueChange(this.data.values,{[t]:e})),!n&&this._adapter.forceUpdate(s)}getTouched(t){return void 0===t?this.data.touched:c.U2(this.data.touched,t)}updateStateTouched(t,e,i,s){let r=i&&i.notNotify,n=i&&i.notUpdate;c.t8(this.data.touched,t,e),!r&&this._adapter.notifyChange(this.data),!n&&this._adapter.forceUpdate(s)}getError(t){return void 0===t?this.data.errors:c.U2(this.data.errors,t)}updateStateError(t,e,i,s){let r=i&&i.notNotify,n=i&&i.notUpdate;c.t8(this.data.errors,t,e),!r&&this._adapter.notifyChange(this.data),this._adapter.notifyErrorChange(this.data.errors,{[t]:e}),!n&&this._adapter.forceUpdate(s)}getFieldSetterApi(){return{setValue:(t,e,i)=>{let s=this.fields.get(t)?this.fields.get(t).fieldApi:void 0,r=this._adapter.cloneDeep(e);s?s.setValue(r,i):(this.updateStateValue(t,r,i,()=>{let e=this._getNestedField(t);e.size&&e.forEach(t=>{let e=t.field,i=c.U2(this.data.values,e);t.fieldApi.setValue(i,{notNotify:!0,notUpdate:!0})})}),this.getArrayField(t)&&this.updateArrayField(t,{updateKey:new Date().valueOf()}))},setError:(t,e,i)=>{let s=this.fields.get(t)?this.fields.get(t).fieldApi:void 0,r=this._adapter.cloneDeep(e);s?s.setError(r,i):(this.updateStateError(t,r,i,()=>{let e=this._getNestedField(t);e.size&&e.forEach(t=>{let e=t.field,i=c.U2(this.data.errors,e);t.fieldApi.setError(i,{notNotify:!0,notUpdate:!0})})}),this.getArrayField(t)&&this.updateArrayField(t,{updateKey:new Date().valueOf()}))},setTouched:(t,e,i)=>{let s=this.fields.get(t)?this.fields.get(t).fieldApi:void 0;s?s.setTouched(e,i):(this.updateStateTouched(t,e,i,()=>{let e=this._getNestedField(t);e.size&&e.forEach(t=>{let e=t.field,i=c.U2(this.data.touched,e);t.fieldApi.setTouched(i,{notNotify:!0,notUpdate:!0})})}),this.getArrayField(t)&&this.updateArrayField(t,{updateKey:new Date().valueOf()}))}}}getModifyFormStateApi(){return{register:this.register,unRegister:this.unRegister,updateStateValue:this.updateStateValue,updateStateError:this.updateStateError,updateStateTouched:this.updateStateTouched,getValue:this.getValue,getError:this.getError,getTouched:this.getTouched,getInitValues:this.getInitValues,getInitValue:this.getInitValue,getFormProps:this.getFormProps,getField:this.getField,registerArrayField:this.registerArrayField,unRegisterArrayField:this.unRegisterArrayField,getArrayField:this.getArrayField,updateArrayField:this.updateArrayField}}getFormApi(){return Object.assign(Object.assign({},this.getFieldSetterApi()),{reset:t=>this.reset(t),validate:t=>this.validate(t),getValue:t=>this.getValue(t,{needClone:!0}),getValues:()=>this.getValue(void 0,{needClone:!0}),getFormState:()=>this.getFormState(!0),getFormProps:t=>this.getFormProps(t),getInitValue:t=>this.getInitValue(t),getInitValues:()=>this.getInitValues(),getTouched:t=>this.getTouched(t),getError:t=>this.getError(t),setValues:(t,e)=>this.setValues(t,e||{isOverride:!1}),submitForm:()=>this.submit(),getFieldExist:t=>this.getFieldExist(t),scrollToField:(t,e)=>this.scrollToField(t,e),scrollToError:t=>this.scrollToError(t)})}getFormState(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?this._adapter.cloneDeep(this.data):Object.assign({},this.data)}_isValid(t){let e=!0;return t?[...t.keys()].forEach(t=>{let i=c.U2(this.data.errors,t);!(0,p.JY)(i)&&(e=!1)}):e=!!c.cS(this.data.errors),e}getInitValues(){return this._adapter.getInitValues()}getInitValue(t){return void 0===t?this._adapter.getInitValues():c.U2(this._adapter.getInitValues(),t)}getFormProps(t){return this._adapter.getFormProps(t)}getFieldExist(t){return!!this.fields.has(t)}_autoScroll(t){let{autoScrollToError:e}=this.getFormProps();if(!e)return;let i={behavior:"smooth",block:"start"};"object"==typeof e&&(i=e),t?setTimeout(()=>this._getErrorFieldAndScroll(i),100):this._getErrorFieldAndScroll(i)}_getErrorFieldAndScroll(t){let e=this._adapter.getAllErrorDOM();if(e&&e.length)try{let i=e[0].parentNode.parentNode;(0,d.Z)(i,t)}catch(t){}}scrollToField(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{behavior:"smooth",block:"start"};if(this.getFieldExist(t)){let i=this._adapter.getFieldDOM(t);(0,d.Z)(i,e)}}scrollToError(t){let e,i,s=t&&t.scrollOpts?t.scrollOpts:{behavior:"smooth",block:"start"},r=t&&t.field,n=t&&t.index;if("number"==typeof n){let t=this._adapter.getAllErrorDOM()[n];t&&(e=t.parentNode.parentNode)}else if(r)(i=this._adapter.getFieldErrorDOM(r))&&(e=i.parentNode.parentNode);else if(void 0===r){let t=this._adapter.getAllErrorDOM();t&&t.length&&(e=t[0].parentNode.parentNode)}e&&(0,d.Z)(e,s)}constructor(t){super(Object.assign({},t));let{initValues:e}=this._adapter.getProps();e=this._adapter.cloneDeep(e),this.data={values:e||{},errors:{},touched:{}},this.fields=new Map,this.registered={},this.registeredArrayField=new Map,this.register=this.register.bind(this),this.unRegister=this.unRegister.bind(this),this.registerArrayField=this.registerArrayField.bind(this),this.unRegisterArrayField=this.unRegisterArrayField.bind(this),this.getArrayField=this.getArrayField.bind(this),this.updateArrayField=this.updateArrayField.bind(this),this.getField=this.getField.bind(this),this.setValues=this.setValues.bind(this),this.updateStateValue=this.updateStateValue.bind(this),this.updateStateError=this.updateStateError.bind(this),this.updateStateTouched=this.updateStateTouched.bind(this),this.getFormState=this.getFormState.bind(this),this.getValue=this.getValue.bind(this),this.getError=this.getError.bind(this),this.getTouched=this.getTouched.bind(this),this.getInitValues=this.getInitValues.bind(this),this.getInitValue=this.getInitValue.bind(this),this.getFormProps=this.getFormProps.bind(this),this.getFieldExist=this.getFieldExist.bind(this),this.scrollToField=this.scrollToField.bind(this),this.scrollToError=this.scrollToError.bind(this)}}},786202:function(t,e,i){"use strict";function s(){}i.d(e,{Z:function(){return s}})},113907:function(t,e,i){"use strict";i(932651);var s=i(101199);function r(){return(r=Object.assign||function(t){for(var e=1;e(0,n.jsxs)("svg",(0,r._)((0,s._)({xmlns:"http://www.w3.org/2000/svg",width:32,height:32,fill:"none",viewBox:"0 0 32 32"},t),{children:[(0,n.jsx)("rect",{width:5,height:16,x:9,y:8,fill:"#fff",rx:1}),(0,n.jsx)("rect",{width:5,height:16,x:18,y:8,fill:"#fff",rx:1})]}))},522407:function(t,e,i){"use strict";i.d(e,{default:function(){return n}});var s=i(480333);i(302356),i(490629);var r=i(541033);class n extends r.S{get messagePort(){return this._messagePort||globalThis.messagePort}onInit(t){this._canvas=t.canvas,this._ctx=t.canvas.getContext("2d"),this._framerate=t.framerate,this._oomOptimize=!0===t.oomOptimize,this.messagePort.addEventListener("message",this._onMessage),this.messagePort.postMessage({type:"consume-video-frame"}),this._reduceDrawing=t.reduceDrawing}onResize(t){this._rect=t.rect,this._image&&this.draw()}onStart(){clearInterval(this._timer),this._timer=setInterval(()=>{this._isVideoFrameDraw=!0,this.messagePort.postMessage({type:"consume-video-frame"})},1e3/this._framerate)}onStop(){clearInterval(this._timer)}onDrawDefaultImg(t){this.drawDefaultImg(t)}destroy(){var t,e;this.messagePort.removeEventListener("message",this._onMessage),clearInterval(this._timer),null===(e=this._image)||void 0===e||null===(t=e.close)||void 0===t||t.call(e),this._oomOptimize&&this._defaultImg&&(this._image=null,this._defaultImg.onload=null,this._defaultImg.src="",this._defaultImg=null,this._canvas.width=0,this._canvas.height=0)}draw(){if(this._oomOptimize){if(!this._image||!this._frameOptions||!this._rect)return;if("undefined"!=typeof ImageBitmap&&this._image instanceof ImageBitmap){let{canvasWidth:t,canvasHeight:e}=this.getDrawMetrics(this._frameOptions);this.resizeCanvas(t,e),this._ctx.filter="blur(50px)",this._ctx.drawImage(this._image,0,0,t,e);return}}let{_frameOptions:t}=this,{codedWidth:e,codedHeight:i}=t,{codedWidth:s,codedHeight:r}=t,{width:n,height:a}=this._rect;n/a{if(this._isVideoFrameDraw||this._reduceDrawing&&this._image)return;let{width:t,height:i}=this._rect,{width:s,height:r}=e,n=s,a=r;t/i921600){let t=Math.sqrt(921600/r);i=Math.max(1,Math.round(i*t)),s=Math.max(1,Math.round(s*t))}return{width:i,height:s}}getDrawMetrics(t){let{codedWidth:e,codedHeight:i}=t,{codedWidth:s,codedHeight:r}=t,{width:n,height:a}=this._rect;n/a{var e,i;if("video-frame"!==t.data.type)return;let{options:s,vframe:r}=t.data,n=r;if(this._oomOptimize&&"function"==typeof createImageBitmap&&this._rect)try{let{cropX:t,cropY:e,cropWidth:i,cropHeight:a,bitmapWidth:o,bitmapHeight:h}=this.getDrawMetrics(s);n=await createImageBitmap(r,t,e,i,a,{resizeWidth:o,resizeHeight:h,resizeQuality:"low"})}catch(t){n=r}null===(i=this._image)||void 0===i||null===(e=i.close)||void 0===e||e.call(i),this._image=n,n!==r&&r.close(),this._frameOptions=s,this.draw()})}}},131876:function(t,e,i){"use strict";i.d(e,{x:function(){return l}});var s=i(509608),r=i(693653),n=i(705998),a=i(101199);let o="picture-in-picture",h=(0,a.forwardRef)((t,e)=>{let{playerRef:i}=(0,a.useContext)(s.E),r=(0,n.DM)(()=>{if(!document.pictureInPictureEnabled)return!1;let t=i.current.video;if("boolean"==typeof t.disablePictureInPicture&&!t.disablePictureInPicture||"function"==typeof t.webkitSetPresentationMode)return!0}),h=(0,n.DM)(()=>{let t=i.current.video;return document.pictureInPictureElement===t||t.webkitPresentationMode===o}),l=(0,n.DM)(()=>{if(!r())return!1;let t=i.current.video;return"function"==typeof t.webkitSetPresentationMode?t.webkitSetPresentationMode("inline"):document.exitPictureInPicture(),i.current.emit("pip_change",!1),!0}),c=(0,n.DM)(()=>{if(!r())return!1;let t=i.current.video;return"function"==typeof t.webkitSetPresentationMode?t.webkitSetPresentationMode(o):t.requestPictureInPicture(),i.current.emit("pip_change",!0),!0});return(0,a.useImperativeHandle)(e,()=>({exitPIP:l,requestPIP:c,switchPIP:()=>!!r()&&(h()?l():c())}),[]),null}),l=(0,r.n)(h,!0)},335541:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var s=i(480333);i(490629);var r=i(292948),n=i(859234);i(275408);let a=(0,n.w)("loading"),o=(0,n.w)("isloading");class h extends r.di{render(){let{text:t="视频加载中"}=this._config;return`
${t?`
${t}
`:""}
`}afterPlayerInit(t){let{enter:e=!0,stalled:i=!0}=this._config;e&&!t&&(this._addLoading(),this._player.on("canplay",this._removeLoading),this._player.on("loadstart",this._addLoading)),i&&this._player.on("stalled",this._addLoading),this._player.on("error",this._removeLoading),this._player.on("playing",this._removeLoading)}beforeDestroy(){this._player.off("canplay",this._removeLoading),this._player.off("error",this._removeLoading),this._player.off("playing",this._removeLoading),this._player.off("stalled",this._addLoading),this._player.off("loadstart",this._addLoading)}constructor(...t){super(...t),(0,s._)(this,"_addLoading",()=>{if(!this._root.classList.contains(o))this._root.classList.add(o)}),(0,s._)(this,"_removeLoading",()=>{if(!!this._root.classList.contains(o))this._root.classList.remove(o)})}}(0,s._)(h,"pluginName","loading")},117835:function(t,e,i){"use strict";i(679308),Promise.all([i.e("23634"),i.e("21133"),i.e("2434")]).then(i.bind(i,752201))},272787:function(t,e,i){"use strict";i.d(e,{Z:function(){return r}});var s=i(60178);function r(t,e,i){return(e=(0,s.Z)(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},264911:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var s=i(35731),r=i(297475),n=i(890192),a=i(921898);function o(t,e){return(0,s.Z)(t)||(0,r.Z)(t,e)||(0,n.Z)(t,e)||(0,a.Z)()}},114281:function(t,e,i){"use strict";i.r(e),i.d(e,{Node:function(){return ts},Parser:function(){return B},Position:function(){return V},SourceLocation:function(){return R},TokContext:function(){return ta},Token:function(){return tP},TokenType:function(){return g},defaultOptions:function(){return M},getLineInfo:function(){return D},isIdentifierChar:function(){return m},isIdentifierStart:function(){return f},isNewLine:function(){return E},keywordTypes:function(){return x},lineBreak:function(){return w},lineBreakG:function(){return S},nonASCIIwhitespace:function(){return C},parse:function(){return tV},parseExpressionAt:function(){return tR},tokContexts:function(){return to},tokTypes:function(){return k},tokenizer:function(){return tD},version:function(){return tO}});var s={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",n={5:r,"5module":r+" export import",6:r+" const class extends export import super"},a=/^in(stanceof)?$/,o="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",h="‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",l=RegExp("["+o+"]"),c=RegExp("["+o+h+"]");o=h=null;var u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],p=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239];function d(t,e){for(var i=65536,s=0;st)return!1;if((i+=e[s+1])>=t)return!0}}function f(t,e){return t<65?36===t:!!(t<91)||(t<97?95===t:!!(t<123)||(t<=65535?t>=170&&l.test(String.fromCharCode(t)):!1!==e&&d(t,u)))}function m(t,e){return t<48?36===t:!!(t<58)||!(t<65)&&(!!(t<91)||(t<97?95===t:!!(t<123)||(t<=65535?t>=170&&c.test(String.fromCharCode(t)):!1!==e&&(d(t,u)||d(t,p)))))}var g=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function v(t,e){return new g(t,{beforeExpr:!0,binop:e})}var y={beforeExpr:!0},b={startsExpr:!0},x={};function _(t,e){return void 0===e&&(e={}),e.keyword=t,x[t]=new g(t,e)}var k={num:new g("num",b),regexp:new g("regexp",b),string:new g("string",b),name:new g("name",b),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",y),semi:new g(";",y),colon:new g(":",y),dot:new g("."),question:new g("?",y),questionDot:new g("?."),arrow:new g("=>",y),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",y),backQuote:new g("`",b),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),relational:v("/<=/>=",7),bitShift:v("<>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:v("%",10),star:v("*",10),slash:v("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:v("??",1),_break:_("break"),_case:_("case",y),_catch:_("catch"),_continue:_("continue"),_debugger:_("debugger"),_default:_("default",y),_do:_("do",{isLoop:!0,beforeExpr:!0}),_else:_("else",y),_finally:_("finally"),_for:_("for",{isLoop:!0}),_function:_("function",b),_if:_("if"),_return:_("return",y),_switch:_("switch"),_throw:_("throw",y),_try:_("try"),_var:_("var"),_const:_("const"),_while:_("while",{isLoop:!0}),_with:_("with"),_new:_("new",{beforeExpr:!0,startsExpr:!0}),_this:_("this",b),_super:_("super",b),_class:_("class",b),_extends:_("extends",y),_export:_("export"),_import:_("import",b),_null:_("null",b),_true:_("true",b),_false:_("false",b),_in:_("in",{beforeExpr:!0,binop:7}),_instanceof:_("instanceof",{beforeExpr:!0,binop:7}),_typeof:_("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:_("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:_("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,S=RegExp(w.source,"g");function E(t,e){return 10===t||13===t||!e&&(8232===t||8233===t)}var C=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,A=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,P=Object.prototype,I=P.hasOwnProperty,T=P.toString;function L(t,e){return I.call(t,e)}var N=Array.isArray||function(t){return"[object Array]"===T.call(t)};function O(t){return RegExp("^(?:"+t.replace(/ /g,"|")+")$")}var V=function(t,e){this.line=t,this.column=e};V.prototype.offset=function(t){return new V(this.line,this.column+t)};var R=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function D(t,e){for(var i=1,s=0;;){S.lastIndex=s;var r=S.exec(t);if(!r||!(r.index=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),N(e.onToken)){var s=e.onToken;e.onToken=function(t){return s.push(t)}}return N(e.onComment)&&(e.onComment=function(t,e){return function(i,s,r,n,a,o){var h={type:i?"Block":"Line",value:s,start:r,end:n};t.locations&&(h.loc=new R(this,a,o)),t.ranges&&(h.range=[r,n]),e.push(h)}}(e,e.onComment)),e}(t),this.sourceFile=t.sourceFile,this.keywords=O(n[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var r="";if(!0!==t.allowReserved){for(var a=t.ecmaVersion;!(r=s[a]);a--);"module"===t.sourceType&&(r+=" await")}this.reservedWords=O(r);var o=(r?r+" ":"")+s.strict;this.reservedWordsStrict=O(o),this.reservedWordsStrictBind=O(o+" "+s.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=k.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null},U={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}};B.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},U.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},U.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},U.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},U.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},U.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},U.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},B.prototype.inNonArrowFunction=function(){return(2&this.currentThisScope().flags)>0},B.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}t+=e[0].length,A.lastIndex=t,t+=A.exec(this.input)[0].length,";"===this.input[t]&&t++}},z.eat=function(t){return this.type===t&&(this.next(),!0)},z.isContextual=function(t){return this.type===k.name&&this.value===t&&!this.containsEsc},z.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},z.expectContextual=function(t){!this.eatContextual(t)&&this.unexpected()},z.canInsertSemicolon=function(){return this.type===k.eof||this.type===k.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},z.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},z.semicolon=function(){!this.eat(k.semi)&&!this.insertSemicolon()&&this.unexpected()},z.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),!e&&this.next(),!0},z.expect=function(t){this.eat(t)||this.unexpected()},z.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")},z.checkPatternErrors=function(t,e){if(!!t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,"Parenthesized pattern")}},z.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},z.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!t);case k._class:return t&&this.unexpected(),this.parseClass(n,!0);case k._if:return this.parseIfStatement(n);case k._return:return this.parseReturnStatement(n);case k._switch:return this.parseSwitchStatement(n);case k._throw:return this.parseThrowStatement(n);case k._try:return this.parseTryStatement(n);case k._const:case k._var:return s=s||this.value,t&&"var"!==s&&this.unexpected(),this.parseVarStatement(n,s);case k._while:return this.parseWhileStatement(n);case k._with:return this.parseWithStatement(n);case k.braceL:return this.parseBlock(!0,n);case k.semi:return this.parseEmptyStatement(n);case k._export:case k._import:if(this.options.ecmaVersion>10&&r===k._import){A.lastIndex=this.pos;var a=A.exec(this.input),o=this.pos+a[0].length,h=this.input.charCodeAt(o);if(40===h||46===h)return this.parseExpressionStatement(n,this.parseExpression())}return!this.options.allowImportExportEverywhere&&(!e&&this.raise(this.start,"'import' and 'export' may only appear at the top level"),!this.inModule&&this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===k._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!t);var l=this.value,c=this.parseExpression();if(r===k.name&&"Identifier"===c.type&&this.eat(k.colon))return this.parseLabeledStatement(n,l,c,t);return this.parseExpressionStatement(n,c)}},H.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(k.semi)||this.insertSemicolon()?t.label=null:this.type!==k.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s=6?this.eat(k.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},H.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(W),this.enterScope(0),this.expect(k.parenL),this.type===k.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===k._var||this.type===k._const||i){var s=this.startNode(),r=i?"let":this.value;return(this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===k._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===s.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===k._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,s)):(e>-1&&this.unexpected(e),this.parseFor(t,s))}var n=new $,a=this.parseExpression(!0,n);return this.type===k._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===k._in?e>-1&&this.unexpected(e):t.await=e>-1),this.toAssignable(a,!1,n),this.checkLVal(a),this.parseForIn(t,a)):(this.checkExpressionErrors(n,!0),e>-1&&this.unexpected(e),this.parseFor(t,a))},H.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,K|(i?0:X),!1,e)},H.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(k._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},H.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(k.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},H.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(k.braceL),this.labels.push(q),this.enterScope(0);for(var e,i=!1;this.type!==k.braceR;)if(this.type===k._case||this.type===k._default){var s=this.type===k._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(k.colon)}else!e&&this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},H.parseThrowStatement=function(t){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var G=[];H.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===k._catch){var e=this.startNode();if(this.next(),this.eat(k.parenL)){e.param=this.parseBindingAtom();var i="Identifier"===e.param.type;this.enterScope(i?32:0),this.checkLVal(e.param,i?4:2),this.expect(k.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0);e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(k._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},H.parseVarStatement=function(t,e){return this.next(),this.parseVar(t,!1,e),this.semicolon(),this.finishNode(t,"VariableDeclaration")},H.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(W),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},H.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},H.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},H.parseLabeledStatement=function(t,e,i,s){for(var r=0,n=this.labels;r=0;o--){var h=this.labels[o];if(h.statementStart===t.start)h.statementStart=this.start,h.kind=a;else break}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},H.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},H.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(k.braceL),t&&this.enterScope(0);this.type!==k.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},H.parseFor=function(t,e){return t.init=e,this.expect(k.semi),t.test=this.type===k.semi?null:this.parseExpression(),this.expect(k.semi),t.update=this.type===k.parenR?null:this.parseExpression(),this.expect(k.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},H.parseForIn=function(t,e){var i=this.type===k._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)?this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===e.type&&this.raise(e.start,"Invalid left-hand side in for-loop"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(k.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},H.parseVar=function(t,e,i){for(t.declarations=[],t.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(k.eq)?s.init=this.parseMaybeAssign(e):"const"!==i||this.type===k._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===s.id.type||e&&(this.type===k._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(k.comma))break}return t},H.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLVal(t.id,"var"===e?1:2,!1)};var K=1,X=2;H.parseFunction=function(t,e,i,s){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===k.star&&e&X&&this.unexpected(),t.generator=this.eat(k.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&K&&(t.id=4&e&&this.type!==k.name?null:this.parseIdent(),t.id&&!(e&X)&&this.checkLVal(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(j(t.async,t.generator)),!(e&K)&&(t.id=this.type===k.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(t,e&K?"FunctionDeclaration":"FunctionExpression")},H.parseFunctionParams=function(t){this.expect(k.parenL),t.params=this.parseBindingList(k.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},H.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.startNode(),r=!1;for(s.body=[],this.expect(k.braceL);this.type!==k.braceR;){var n=this.parseClassElement(null!==t.superClass);n&&(s.body.push(n),"MethodDefinition"===n.type&&"constructor"===n.kind&&(r&&this.raise(n.start,"Duplicate constructor in the same class"),r=!0))}return this.strict=i,this.next(),t.body=this.finishNode(s,"ClassBody"),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},H.parseClassElement=function(t){var e=this;if(this.eat(k.semi))return null;var i=this.startNode(),s=function(t,s){void 0===s&&(s=!1);var r=e.start,n=e.startLoc;return!!e.eatContextual(t)&&(!(e.type===k.parenL||s&&e.canInsertSemicolon())||(i.key&&e.unexpected(),i.computed=!1,i.key=e.startNodeAt(r,n),i.key.name=t,e.finishNode(i.key,"Identifier"),!1))};i.kind="method",i.static=s("static");var r=this.eat(k.star),n=!1;!r&&(this.options.ecmaVersion>=8&&s("async",!0)?(n=!0,r=this.options.ecmaVersion>=9&&this.eat(k.star)):s("get")?i.kind="get":s("set")&&(i.kind="set")),!i.key&&this.parsePropertyName(i);var a=i.key,o=!1;return i.computed||i.static||("Identifier"!==a.type||"constructor"!==a.name)&&("Literal"!==a.type||"constructor"!==a.value)?i.static&&"Identifier"===a.type&&"prototype"===a.name&&this.raise(a.start,"Classes may not have a static property named prototype"):("method"!==i.kind&&this.raise(a.start,"Constructor can't have get/set modifier"),r&&this.raise(a.start,"Constructor can't be a generator"),n&&this.raise(a.start,"Constructor can't be an async method"),i.kind="constructor",o=t),this.parseClassMethod(i,r,n,o),"get"===i.kind&&0!==i.value.params.length&&this.raiseRecoverable(i.value.start,"getter should have no params"),"set"===i.kind&&1!==i.value.params.length&&this.raiseRecoverable(i.value.start,"setter should have exactly one param"),"set"===i.kind&&"RestElement"===i.value.params[0].type&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params"),i},H.parseClassMethod=function(t,e,i,s){return t.value=this.parseMethod(e,i,s),this.finishNode(t,"MethodDefinition")},H.parseClassId=function(t,e){this.type===k.name?(t.id=this.parseIdent(),e&&this.checkLVal(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},H.parseClassSuper=function(t){t.superClass=this.eat(k._extends)?this.parseExprSubscripts():null},H.parseExport=function(t,e){if(this.next(),this.eat(k.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseIdent(!0),this.checkExport(e,t.exported.name,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==k.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration");if(this.eat(k._default)){if(this.checkExport(e,"default",this.lastTokStart),this.type===k._function||(i=this.isAsyncFunction())){var i,s=this.startNode();this.next(),i&&this.next(),t.declaration=this.parseFunction(s,4|K,!1,i)}else if(this.type===k._class){var r=this.startNode();t.declaration=this.parseClass(r,"nullableID")}else t.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(t,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())t.declaration=this.parseStatement(null),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id.name,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==k.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var n=0,a=t.specifiers;n=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=t.properties;s=8&&!n&&"async"===a.name&&!this.canInsertSemicolon()&&this.eat(k._function))return this.parseFunction(this.startNodeAt(s,r),0,!1,!0);if(i&&!this.canInsertSemicolon()){if(this.eat(k.arrow))return this.parseArrowExpression(this.startNodeAt(s,r),[a],!1);if(this.options.ecmaVersion>=8&&"async"===a.name&&this.type===k.name&&!n)return a=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(k.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,r),[a],!0)}return a;case k.regexp:var o=this.value;return(e=this.parseLiteral(o.value)).regex={pattern:o.pattern,flags:o.flags},e;case k.num:case k.string:return this.parseLiteral(this.value);case k._null:case k._true:case k._false:return(e=this.startNode()).value=this.type===k._null?null:this.type===k._true,e.raw=this.type.keyword,this.next(),this.finishNode(e,"Literal");case k.parenL:var h=this.start,l=this.parseParenAndDistinguishExpression(i);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(l)&&(t.parenthesizedAssign=h),t.parenthesizedBind<0&&(t.parenthesizedBind=h)),l;case k.bracketL:return e=this.startNode(),this.next(),e.elements=this.parseExprList(k.bracketR,!0,!0,t),this.finishNode(e,"ArrayExpression");case k.braceL:return this.parseObj(!1,t);case k._function:return e=this.startNode(),this.next(),this.parseFunction(e,0);case k._class:return this.parseClass(this.startNode(),!1);case k._new:return this.parseNew();case k.backQuote:return this.parseTemplate();case k._import:if(this.options.ecmaVersion>=11)return this.parseExprImport();return this.unexpected();default:this.unexpected()}},J.parseExprImport=function(){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var e=this.parseIdent(!0);switch(this.type){case k.parenL:return this.parseDynamicImport(t);case k.dot:return t.meta=e,this.parseImportMeta(t);default:this.unexpected()}},J.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(k.parenR)){var e=this.start;this.eat(k.comma)&&this.eat(k.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},J.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},J.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},J.parseParenExpression=function(){this.expect(k.parenL);var t=this.parseExpression();return this.expect(k.parenR),t},J.parseParenAndDistinguishExpression=function(t){var e,i=this.start,s=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var n,a=this.start,o=this.startLoc,h=[],l=!0,c=!1,u=new $,p=this.yieldPos,d=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==k.parenR;){if(l?l=!1:this.expect(k.comma),r&&this.afterTrailingComma(k.parenR,!0)){c=!0;break}if(this.type===k.ellipsis){n=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===k.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,u,this.parseParenItem))}var f=this.start,m=this.startLoc;if(this.expect(k.parenR),t&&!this.canInsertSemicolon()&&this.eat(k.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=d,this.parseParenArrowList(i,s,h);(!h.length||c)&&this.unexpected(this.lastTokStart),n&&this.unexpected(n),this.checkExpressionErrors(u,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,h.length>1?((e=this.startNodeAt(a,o)).expressions=h,this.finishNodeAt(e,"SequenceExpression",f,m)):e=h[0]}else e=this.parseParenExpression();if(!this.options.preserveParens)return e;var g=this.startNodeAt(i,s);return g.expression=e,this.finishNode(g,"ParenthesizedExpression")},J.parseParenItem=function(t){return t},J.parseParenArrowList=function(t,e,i){return this.parseArrowExpression(this.startNodeAt(t,e),i)};var Y=[];J.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),e=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(k.dot)){t.meta=e;var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),!this.inNonArrowFunction()&&this.raiseRecoverable(t.start,"'new.target' can only be used in functions"),this.finishNode(t,"MetaProperty")}var s=this.start,r=this.startLoc,n=this.type===k._import;return t.callee=this.parseSubscripts(this.parseExprAtom(),s,r,!0),n&&"ImportExpression"===t.callee.type&&this.raise(s,"Cannot use new with import()"),this.eat(k.parenL)?t.arguments=this.parseExprList(k.parenR,this.options.ecmaVersion>=8,!1):t.arguments=Y,this.finishNode(t,"NewExpression")},J.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===k.invalidTemplate?(!e&&this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===k.backQuote,this.finishNode(i,"TemplateElement")},J.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===k.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(k.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(k.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},J.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===k.name||this.type===k.num||this.type===k.string||this.type===k.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===k.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},J.parseObj=function(t,e){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(k.braceR);){if(s)s=!1;else if(this.expect(k.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(k.braceR))break;var n=this.parseProperty(t,e);!t&&this.checkPropClash(n,r,e),i.properties.push(n)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},J.parseProperty=function(t,e){var i,s,r,n,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(k.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===k.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(this.type===k.parenL&&e&&(e.parenthesizedAssign<0&&(e.parenthesizedAssign=this.start),e.parenthesizedBind<0&&(e.parenthesizedBind=this.start)),a.argument=this.parseMaybeAssign(!1,e),this.type===k.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(t||e)&&(r=this.start,n=this.startLoc),!t&&(i=this.eat(k.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(k.star),this.parsePropertyName(a,e)):s=!1,this.parsePropertyValue(a,t,i,s,r,n,e,o),this.finishNode(a,"Property")},J.parsePropertyValue=function(t,e,i,s,r,n,a,o){if((i||s)&&this.type===k.colon&&this.unexpected(),this.eat(k.colon))t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init";else if(this.options.ecmaVersion>=6&&this.type===k.parenL)e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,s);else if(e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===k.comma||this.type===k.braceR||this.type===k.eq)this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),"await"===t.key.name&&!this.awaitIdentPos&&(this.awaitIdentPos=r),t.kind="init",e?t.value=this.parseMaybeDefault(r,n,t.key):this.type===k.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,n,t.key)):t.value=t.key,t.shorthand=!0):this.unexpected();else{(i||s)&&this.unexpected(),t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var h="get"===t.kind?0:1;if(t.value.params.length!==h){var l=t.value.start;"get"===t.kind?this.raiseRecoverable(l,"getter should have no params"):this.raiseRecoverable(l,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")}},J.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(k.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(k.bracketR),t.key;t.computed=!1}return t.key=this.type===k.num||this.type===k.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},J.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},J.parseMethod=function(t,e,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|j(e,s.generator)|(i?128:0)),this.expect(k.parenL),s.params=this.parseBindingList(k.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=a,this.finishNode(s,"FunctionExpression")},J.parseArrowExpression=function(t,e,i){var s=this.yieldPos,r=this.awaitPos,n=this.awaitIdentPos;return this.enterScope(16|j(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=n,this.finishNode(t,"ArrowFunctionExpression")},J.parseFunctionBody=function(t,e,i){var s=e&&this.type!==k.braceL,r=this.strict,n=!1;if(s)t.body=this.parseMaybeAssign(),t.expression=!0,this.checkParams(t,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!r||a)&&(n=this.strictDirective(this.end))&&a&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var o=this.labels;this.labels=[],n&&(this.strict=!0),this.checkParams(t,!r&&!n&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLVal(t.id,5),t.body=this.parseBlock(!1,void 0,n&&!r),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=o}this.exitScope()},J.isSimpleParamList=function(t){for(var e=0;e-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var n=this.currentScope();s=this.treatFunctionsAsVar?n.lexical.indexOf(t)>-1:n.lexical.indexOf(t)>-1||n.var.indexOf(t)>-1,n.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){s=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],o.flags&F)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},te.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},te.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},te.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&F)return e}},te.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(e.flags&F&&!(16&e.flags))return e}};var ts=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new R(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},tr=B.prototype;function tn(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}tr.startNode=function(){return new ts(this,this.start,this.startLoc)},tr.startNodeAt=function(t,e){return new ts(this,t,e)},tr.finishNode=function(t,e){return tn.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},tr.finishNodeAt=function(t,e,i,s){return tn.call(this,t,e,i,s)};var ta=function(t,e,i,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!i,this.override=s,this.generator=!!r},to={b_stat:new ta("{",!1),b_expr:new ta("{",!0),b_tmpl:new ta("${",!1),p_stat:new ta("(",!1),p_expr:new ta("(",!0),q_tmpl:new ta("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new ta("function",!1),f_expr:new ta("function",!0),f_expr_gen:new ta("function",!0,!1,null,!0),f_gen:new ta("function",!1,!1,null,!0)},th=B.prototype;th.initialContext=function(){return[to.b_stat]},th.braceIsBlock=function(t){var e=this.curContext();return e===to.f_expr||e===to.f_stat||(t===k.colon&&(e===to.b_stat||e===to.b_expr)?!e.isExpr:t===k._return||t===k.name&&this.exprAllowed?w.test(this.input.slice(this.lastTokEnd,this.start)):t===k._else||t===k.semi||t===k.eof||t===k.parenR||t===k.arrow||(t===k.braceL?e===to.b_stat:t!==k._var&&t!==k._const&&t!==k.name&&!this.exprAllowed))},th.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},th.updateContext=function(t){var e,i=this.type;i.keyword&&t===k.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},k.parenR.updateContext=k.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var t=this.context.pop();t===to.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr},k.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?to.b_stat:to.b_expr),this.exprAllowed=!0},k.dollarBraceL.updateContext=function(){this.context.push(to.b_tmpl),this.exprAllowed=!0},k.parenL.updateContext=function(t){var e=t===k._if||t===k._for||t===k._with||t===k._while;this.context.push(e?to.p_stat:to.p_expr),this.exprAllowed=!0},k.incDec.updateContext=function(){},k._function.updateContext=k._class.updateContext=function(t){!t.beforeExpr||t===k.semi||t===k._else||t===k._return&&w.test(this.input.slice(this.lastTokEnd,this.start))||(t===k.colon||t===k.braceL)&&this.curContext()===to.b_stat?this.context.push(to.f_stat):this.context.push(to.f_expr),this.exprAllowed=!1},k.backQuote.updateContext=function(){this.curContext()===to.q_tmpl?this.context.pop():this.context.push(to.q_tmpl),this.exprAllowed=!1},k.star.updateContext=function(t){if(t===k._function){var e=this.context.length-1;this.context[e]===to.f_expr?this.context[e]=to.f_expr_gen:this.context[e]=to.f_gen}this.exprAllowed=!0},k.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==k.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var tl="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",tc=tl+" Extended_Pictographic",tu={9:tl,10:tc,11:tc},tp="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",td="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",tf=td+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",tm={9:td,10:tf,11:tf+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},tg={};function tv(t){var e=tg[t]={binary:O(tu[t]+" "+tp),nonBinary:{General_Category:O(tp),Script:O(tm[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}tv(9),tv(10),tv(11);var ty=B.prototype,tb=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":""),this.unicodeProperties=tg[t.options.ecmaVersion>=11?11:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};function tx(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,(1023&t)+56320)}function t_(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}tb.prototype.reset=function(t,e,i){var s=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchN=s&&this.parser.options.ecmaVersion>=9},tb.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},tb.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return -1;var r=i.charCodeAt(t);if(!(e||this.switchU)||r<=55295||r>=57344||t+1>=s)return r;var n=i.charCodeAt(t+1);return n>=56320&&n<=57343?(r<<10)+n-56613888:r},tb.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return s;var r,n=i.charCodeAt(t);return!(e||this.switchU)||n<=55295||n>=57344||t+1>=s||(r=i.charCodeAt(t+1))<56320||r>57343?t+1:t+2},tb.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},tb.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},tb.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},tb.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},ty.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,s=0;s-1&&this.raise(t.start,"Duplicate regular expression flag")}},ty.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&t.groupNames.length>0&&(t.switchN=!0,this.regexp_pattern(t))},ty.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames.length=0,t.backReferenceNames.length=0,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),!t.eat(41)&&t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},ty.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},ty.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},ty.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return -1!==r&&r=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},ty.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},ty.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},ty.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!t_(e)&&(t.lastIntValue=e,t.advance(),!0)},ty.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!t_(i);)t.advance();return t.pos!==e},ty.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return -1!==e&&36!==e&&(!(e>=40)||!(e<=43))&&46!==e&&63!==e&&91!==e&&94!==e&&124!==e&&(t.advance(),!0)},ty.regexp_groupSpecifier=function(t){if(t.eat(63)){if(this.regexp_eatGroupName(t)){-1!==t.groupNames.indexOf(t.lastStringValue)&&t.raise("Duplicate capture group name"),t.groupNames.push(t.lastStringValue);return}t.raise("Invalid group")}},ty.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},ty.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=tx(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=tx(t.lastIntValue);return!0}return!1},ty.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return(t.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),function(t){return f(t,!0)||36===t||95===t}(s))?(t.lastIntValue=s,!0):(t.pos=e,!1)};ty.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return(t.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),function(t){return m(t,!0)||36===t||95===t||8204===t||8205===t}(s))?(t.lastIntValue=s,!0):(t.pos=e,!1)};function tk(t){return t>=65&&t<=90||t>=97&&t<=122}ty.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},ty.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},ty.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},ty.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},ty.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},ty.regexp_eatZero=function(t){return!(48!==t.current()||tS(t.lookahead()))&&(t.lastIntValue=0,t.advance(),!0)},ty.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},ty.regexp_eatControlLetter=function(t){var e=t.current();return!!tk(e)&&(t.lastIntValue=e%32,t.advance(),!0)},ty.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i=t.pos,s=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var r=t.lastIntValue;if(s&&r>=55296&&r<=56319){var n=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var a=t.lastIntValue;if(a>=56320&&a<=57343)return t.lastIntValue=(r-55296)*1024+(a-56320)+65536,!0}t.pos=n,t.lastIntValue=r}return!0}if(s&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&function(t){return t>=0&&t<=1114111}(t.lastIntValue))return!0;s&&t.raise("Invalid unicode escape"),t.pos=i}return!1};ty.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return 99!==e&&(!t.switchN||107!==e)&&(t.lastIntValue=e,t.advance(),!0)},ty.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do t.lastIntValue=10*t.lastIntValue+(e-48),t.advance();while((e=t.current())>=48&&e<=57);return!0}return!1},ty.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),!0;if(t.switchU&&this.options.ecmaVersion>=9&&(80===e||112===e)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(t)&&t.eat(125))return!0;t.raise("Invalid property name")}return!1};function tw(t){return tk(t)||95===t}ty.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),!0}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r),!0}return!1},ty.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){!L(t.unicodeProperties.nonBinary,e)&&t.raise("Invalid property name"),!t.unicodeProperties.nonBinary[e].test(i)&&t.raise("Invalid property value")},ty.regexp_validateUnicodePropertyNameOrValue=function(t,e){!t.unicodeProperties.binary.test(e)&&t.raise("Invalid property name")},ty.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";tw(e=t.current());)t.lastStringValue+=tx(e),t.advance();return""!==t.lastStringValue},ty.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";function(t){return tw(t)||tS(t)}(e=t.current());)t.lastStringValue+=tx(e),t.advance();return""!==t.lastStringValue};function tS(t){return t>=48&&t<=57}function tE(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function tC(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}function tA(t){return t>=48&&t<=55}ty.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},ty.regexp_eatCharacterClass=function(t){if(t.eat(91)){if(t.eat(94),this.regexp_classRanges(t),t.eat(93))return!0;t.raise("Unterminated character class")}return!1},ty.regexp_classRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;t.switchU&&(-1===e||-1===i)&&t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},ty.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||tA(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return 93!==s&&(t.lastIntValue=s,t.advance(),!0)},ty.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},ty.regexp_eatClassControlLetter=function(t){var e=t.current();return(!!tS(e)||95===e)&&(t.lastIntValue=e%32,t.advance(),!0)},ty.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},ty.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;tS(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},ty.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;tE(i=t.current());)t.lastIntValue=16*t.lastIntValue+tC(i),t.advance();return t.pos!==e},ty.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},ty.regexp_eatOctalDigit=function(t){var e=t.current();return tA(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},ty.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s=this.input.length)?this.finishToken(k.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},tI.readToken=function(t){return f(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},tI.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);return t<=55295||t>=57344?t:(t<<10)+this.input.charCodeAt(this.pos+1)-56613888},tI.skipBlockComment=function(){var t,e=this.options.onComment&&this.curPosition(),i=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(-1===s&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(S.lastIndex=i;(t=S.exec(this.input))&&t.index8&&t<14||t>=5760&&C.test(String.fromCharCode(t)))++this.pos;else break e}}},tI.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},tI.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(k.ellipsis)):(++this.pos,this.finishToken(k.dot))},tI.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(k.assign,2):this.finishOp(k.slash,1)},tI.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=42===t?k.star:k.modulo;return(this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,s=k.starstar,e=this.input.charCodeAt(this.pos+2)),61===e)?this.finishOp(k.assign,i+1):this.finishOp(s,i)},tI.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t)return this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(k.assign,3):this.finishOp(124===t?k.logicalOR:k.logicalAND,2);return 61===e?this.finishOp(k.assign,2):this.finishOp(124===t?k.bitwiseOR:k.bitwiseAND,1)},tI.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(k.assign,2):this.finishOp(k.bitwiseXOR,1)},tI.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t)return 45===e&&!this.inModule&&62===this.input.charCodeAt(this.pos+2)&&(0===this.lastTokEnd||w.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(k.incDec,2);return 61===e?this.finishOp(k.assign,2):this.finishOp(k.plusMin,1)},tI.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;if(e===t)return(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i))?this.finishOp(k.assign,i+1):this.finishOp(k.bitShift,i);return 33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(k.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tI.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(k.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(k.arrow)):this.finishOp(61===t?k.eq:k.prefix,1)},tI.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(k.questionDot,2)}if(63===e)return t>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(k.assign,3):this.finishOp(k.coalesce,2)}return this.finishOp(k.question,1)},tI.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(k.parenL);case 41:return++this.pos,this.finishToken(k.parenR);case 59:return++this.pos,this.finishToken(k.semi);case 44:return++this.pos,this.finishToken(k.comma);case 91:return++this.pos,this.finishToken(k.bracketL);case 93:return++this.pos,this.finishToken(k.bracketR);case 123:return++this.pos,this.finishToken(k.braceL);case 125:return++this.pos,this.finishToken(k.braceR);case 58:return++this.pos,this.finishToken(k.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(k.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(k.prefix,1)}this.raise(this.pos,"Unexpected character '"+tL(t)+"'")},tI.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},tI.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(w.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new tb(this));o.reset(i,r,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(r,a)}catch(t){}return this.finishToken(k.regexp,{pattern:r,flags:a,value:h})},tI.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&void 0===e,r=i&&48===this.input.charCodeAt(this.pos),n=this.pos,a=0,o=0,h=0,l=null==e?1/0:e;h=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=t)break;o=c,a=a*t+u}return(s&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=e&&this.pos-n!==e)?null:a};function tT(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}function tL(t){return t<=65535?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,(1023&t)+56320)}tI.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=tT(this.input.slice(e,this.pos)),++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(k.num,i)},tI.readNumber=function(t){var e,i=this.pos;!t&&null===this.readInt(10,void 0,!0)&&this.raise(i,"Invalid number");var s=this.pos-i>=2&&48===this.input.charCodeAt(i);s&&this.strict&&this.raise(i,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!s&&!t&&this.options.ecmaVersion>=11&&110===r){var n=tT(this.input.slice(i,this.pos));return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(k.num,n)}s&&/[89]/.test(this.input.slice(i,this.pos))&&(s=!1),46===r&&!s&&(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),(69===r||101===r)&&!s&&((43===(r=this.input.charCodeAt(++this.pos))||45===r)&&++this.pos,null===this.readInt(10)&&this.raise(i,"Invalid number")),f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(e=this.input.slice(i,this.pos),s?parseInt(e,8):parseFloat(e.replace(/_/g,"")));return this.finishToken(k.num,a)},tI.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},tI.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;92===s?(e+=this.input.slice(i,this.pos)+this.readEscapedChar(!1),i=this.pos):(E(s,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(k.string,e)};var tN={};tI.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===tN)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1},tI.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw tN;this.raise(t,e)},tI.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===k.template||this.type===k.invalidTemplate)){if(36===i)return this.pos+=2,this.finishToken(k.dollarBraceL);return++this.pos,this.finishToken(k.backQuote)}return t+=this.input.slice(e,this.pos),this.finishToken(k.template,t)}if(92===i)t+=this.input.slice(e,this.pos)+this.readEscapedChar(!0),e=this.pos;else if(E(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},tI.readInvalidTemplateToken=function(){for(;this.pos=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(r=parseInt(s=s.slice(0,-1),8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),("0"!==s||56===e||57===e)&&(this.strict||t)&&this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}if(E(e))return"";return String.fromCharCode(e)}},tI.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},tI.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos{let e="function"==typeof t?(0,s.Z)(t):t,i=(t,i)=>a(e,t,i);return Object.assign(i,e),i},h=t=>t?o(t):o},992069:function(t,e,i){"use strict";i.d(e,{i:function(){return s}});var s=Array.isArray},259808:function(t,e,i){"use strict";i.d(e,{q:function(){return a}}),i(679308),i(490629);var s=i(998437),r=i(643253);async function n(t){let e=(0,s.P)();if(e.has(t)){let i=e.get(t);i.hydrateStarted=!0,i.loaders&&await Promise.all(i.loaders.map(async t=>{await t()}))}else e.set(t,{hydrateStarted:!0})}async function a(t){if(!t)return;let e=(0,s.P)();if((0,r.i)(t)&&t.all){var i;[...null!==(i=null==e?void 0:e.keys())&&void 0!==i?i:[]].forEach(async t=>{n(t)})}else t&&n(t)}},998437:function(t,e,i){"use strict";i.d(e,{P:function(){return r}}),i(490629);let s=new Map;function r(){return s}}}]);