(function(){var __webpack_modules__={83957:function(e,t,r){e.exports=r(68475)},58404:function(e,t,r){"use strict";var n=r(92952),o=r(43366),i=r(67048),a=r(72134),u=r(81587),s=r(56648),c=r(7238),l=r(44447);e.exports=function(e){return new Promise((function(t,r){var f=e.data,d=e.headers,p=e.responseType;n.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(v+":"+m)}var y=u(e.baseURL,e.url);function g(){if(h){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,i={data:p&&"text"!==p&&"json"!==p?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};o(t,r,i),h=null}}if(h.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(r(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){r(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",h)),h=null},n.isStandardBrowserEnv()){var b=(e.withCredentials||c(y))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}"setRequestHeader"in h&&n.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:h.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),p&&"json"!==p&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),r(e),h=null)})),f||(f=null),h.send(f)}))}},68475:function(e,t,r){"use strict";var n=r(92952),o=r(22096),i=r(27359),a=r(36867);function u(e){var t=new i(e),r=o(i.prototype.request,t);return n.extend(r,i.prototype,t),n.extend(r,t),r}var s=u(r(63527));s.Axios=i,s.create=function(e){return u(a(s.defaults,e))},s.Cancel=r(31972),s.CancelToken=r(97723),s.isCancel=r(9860),s.all=function(e){return Promise.all(e)},s.spread=r(82696),s.isAxiosError=r(80975),e.exports=s,e.exports.default=s},31972:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},97723:function(e,t,r){"use strict";var n=r(31972);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},9860:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},27359:function(e,t,r){"use strict";var n=r(92952),o=r(72134),i=r(14667),a=r(39310),u=r(36867),s=r(52629),c=s.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=u(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&s.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var r=[],n=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(n=n&&t.synchronous,r.unshift(t.fulfilled,t.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!n){var l=[a,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),o=Promise.resolve(e);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=e;r.length;){var d=r.shift(),p=r.shift();try{f=d(f)}catch(e){p(e);break}}try{o=a(f)}catch(e){return Promise.reject(e)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(e){return e=u(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(u(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(u(n||{},{method:e,url:t,data:r}))}})),e.exports=l},14667:function(e,t,r){"use strict";var n=r(92952);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},81587:function(e,t,r){"use strict";var n=r(67261),o=r(63756);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},44447:function(e,t,r){"use strict";var n=r(26965);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},39310:function(e,t,r){"use strict";var n=r(92952),o=r(72381),i=r(9860),a=r(63527);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},26965:function(e){"use strict";e.exports=function(e,t,r,n,o){return e.config=t,r&&(e.code=r),e.request=n,e.response=o,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},36867:function(e,t,r){"use strict";var n=r(92952);e.exports=function(e,t){t=t||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function s(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function c(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=s(void 0,e[o])):r[o]=s(e[o],t[o])}n.forEach(o,(function(e){n.isUndefined(t[e])||(r[e]=s(void 0,t[e]))})),n.forEach(i,c),n.forEach(a,(function(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=s(void 0,e[o])):r[o]=s(void 0,t[o])})),n.forEach(u,(function(n){n in t?r[n]=s(e[n],t[n]):n in e&&(r[n]=s(void 0,e[n]))}));var l=o.concat(i).concat(a).concat(u),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return n.forEach(f,c),r}},43366:function(e,t,r){"use strict";var n=r(44447);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},72381:function(e,t,r){"use strict";var n=r(92952),o=r(63527);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},63527:function(e,t,r){"use strict";var n=r(92952),o=r(8646),i=r(26965),a={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(s=r(58404)),s),transformRequest:[function(e,t){return o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):n.isObject(e)||t&&"application/json"===t["Content-Type"]?(u(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,a=!r&&"json"===this.responseType;if(a||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){c.headers[e]=n.merge(a)})),e.exports=c},22096:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},82696:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},52629:function(e,t,r){"use strict";var n=r(95162),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var i={},a=n.version.split(".");function u(e,t){for(var r=t?t.split("."):a,n=e.split("."),o=0;o<3;o++){if(r[o]>n[o])return!0;if(r[o]0;){var i=n[o],a=t[i];if(a){var u=e[i],s=void 0===u||a(u,i,e);if(!0!==s)throw new TypeError("option "+i+" must be "+s)}else if(!0!==r)throw Error("Unknown option "+i)}},validators:o}},92952:function(e,t,r){"use strict";var n=r(22096),o=Object.prototype.toString;function i(e){return"[object Array]"===o.call(e)}function a(e){return void 0===e}function u(e){return null!==e&&"object"==typeof e}function s(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var r=0,n=e.length;r=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){s.headers[e]=n.merge(i)})),e.exports=s},28578:function(e){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([r]):a[t]?a[t]+", "+r:r}})),a):a}},21930:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},73222:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(29305),r(32733),r(84701),r(44962),r(66781),r(44243),r(74455),r(78557),r(95021),r(73687),r(83994),r(93062),r(82367),r(99102);var o=r(28578),i=r(37276),a=Object.prototype.toString;function u(e){return"[object Array]"===a.call(e)}function s(e){return null!==e&&"object"===n(e)}function c(e){return"[object Function]"===a.call(e)}function l(e,t){if(null!=e)if("object"!==n(e)&&(e=[e]),u(e))for(var r=0,o=e.length;r=t.getTime()?e.dataSource.status="is_live":(e.dataSource.status="not_start",e.dataSource.month_day_tv=(0,u.formatDate)(t,"MM/DD"),e.dataSource.month_day=(0,u.formatDate)(t,"MM月DD日"),e.dataSource.hour_min=(0,u.formatDate)(t,"hh:mm"))}else e.dataSource.nextStartTime||(e.dataSource.status="")}))})),0===s.length)return r({code:200,message:"total data get score withoout mgdbid",data:n});r({code:204,message:"partial data",data:n}),w.request({url:"/gateway/vms-livedata/competition-score/v2/batch-live-score/".concat(s.join(","))}).then((function(e){var t;if(null!=e&&null!==(t=e.data)&&void 0!==t&&null!==(t=t.body)&&void 0!==t&&t.matchScoreVoList)return e.data.body.matchScoreVoList.forEach((function(e){c[e.mgdbId]&&(c[e.mgdbId].dataSource=m(m({},c[e.mgdbId].dataSource),e))})),r({code:200,message:"total data",data:n});r({code:200,message:"total data not get score",data:n})})).catch((function(){r({code:200,message:"total data catch not get score",data:n})}))})).catch((function(){r({code:500,message:"get_server_data_error"})}))},t.worldcup_scoreboard_data=function(e){var t=e.seasonIdFk,r=e.competitionId,n=e.stageId,o=e.cb;if(!t)return o({code:404,message:"seasonIdFk not found"});if(!r)return o({code:404,message:"competitionId not found"});w.request({url:"/gateway/oes-sport-static/300/footballTeamScoreboard/".concat(r,"/").concat(t)}).then((function(e){var t,r=((null==e||null===(t=e.data)||void 0===t||null===(t=t.data)||void 0===t||null===(t=t.football)||void 0===t?void 0:t.stages)||[]).find((function(e){var t;return(null==e||null===(t=e.stage)||void 0===t?void 0:t.stageId)==n})),i=(null==r?void 0:r.data)||[],a=[];if(Array.isArray(i.ranks)&&i.ranks.length>0){var u=["a","b","c","d","e","f","g","h"],s=[];i.ranks.forEach((function(e){for(var t=e.groupName||"",r=0;r=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t=500&&n<600){var s=r&&r.data?JSON.parse(r.data):{};return r&&r.params&&s.cdnData||(e.errCode=9503),Promise.reject(e)}}}return r&&r.retry&&r.shouldRetry&&"function"==typeof r.shouldRetry&&r.shouldRetry(e)?(r.__retryCount=r.__retryCount||0,r.__retryCount>=r.retry?Promise.reject(e):(r.__retryCount+=1,new Promise((function(e){setTimeout((function(){e()}),r.retryDelay||1)})).then((function(){return w(r)})))):Promise.reject(e)}));var R,j,D,L,N={appId:"miguvideo",clientId:"79acd784-cbbb-4cae-8778-8723e001164b",MIGU_MOVIE:"miguMovie",playUrl:"",product:{name:"miguVideo",appName:"咪咕视频"},specialHost:null},U="3",B="10010001005",M="0131",F="0132",H="prod";(window&&(null===(n=window)||void 0===n||null===(n=n.location)||void 0===n||null===(n=n.host)||void 0===n?void 0:n.indexOf("36.155.98.130"))>-1||(null===(o=window)||void 0===o||null===(o=o.location)||void 0===o||null===(o=o.host)||void 0===o?void 0:o.indexOf("m-h5-test.miguvideo.com"))>-1||(null===(i=window)||void 0===i||null===(i=i.location)||void 0===i||null===(i=i.host)||void 0===i?void 0:i.indexOf("local.miguvideo.com"))>-1)&&(null!==(R=window)&&void 0!==R&&null!==(R=R.location)&&void 0!==R&&R.href&&RegExp("(^|\\?|&|#)ttt=1([^&#]*)(&|#|$)","i").test(null===(j=window)||void 0===j||null===(j=j.location)||void 0===j?void 0:j.href)&&(H="test"),null!==(D=window)&&void 0!==D&&null!==(D=D.location)&&void 0!==D&&D.href&&RegExp("(^|\\?|&|#)vgg=1([^&#]*)(&|#|$)","i").test(null===(L=window)||void 0===L||null===(L=L.location)||void 0===L?void 0:L.href)&&(H="vg"));var z="test"==H?"070f000a010b020e0c03b7bfb0bab1bb":"0e00b1070eba0f0b000b0e020abbbbb1",q="test"==H?"be012fb20b02beb5010b020e0c03":"babb0bb7ba0bb1ba0cbb0a0b0a010abf",G="test"==H?"0e0bbbba00030c0ab7030e000abfba0abfbf07bb00bf000f0c030003020e0c0f":"0c0cbf020f02ba0c02bb02b00a0a020b0e0c0cb7bb0ab10e0b010bba03b00abb",W="test"==H?"222222070f000a010b02030303030303":"0e0f0cb703bb0f0c0e0cb0b00a0bbaba",V="test"==H?"2222220a0aba010b02b0b7b10abf020f":"0cbb070e0c0f07020aba0e0cbb0aba01",$="test"==H?"0fba0bb1bf0e03b1b7bbbabb0abf00000ebfb103020e030102bb07b7bbbb0abf":"030ebf0a0bb7020f0bb10b0f0ab7000c0e0e020c0f01ba0e0ebbb7b101b1b7bf",Y="test"==H?" 020a0e0bb7000f0cb1010f0e0ab7bf02":"b0b7babb030e0abb0b0e0f0cba0c0c0e",K="test"==H?"020a0e0bb7000f0cb1010f0e2227b40c":"b70f010abbb70a01010e0a070ababab1";function J(e){var t=e.channelId,r=e.terminal;return(t=t||B).indexOf("_")>-1?t:("h5"===r?M:F)+"_"+t}function Z(e){var t=e.channelId,r="";if(!navigator)return r;var n=navigator.userAgent.toLocaleLowerCase(),o=t.split("_");return o=o[o.length-1],t&&!/^10010001005$/.test(o)||n.indexOf("baiduboxapp")>-1?r="//mph.miguvideo.com":n.indexOf("micromessenger")>-1&&(r="//mpm.miguvideo.com"),r}function X(e){if(!e)return{};var t=e;0!==t.indexOf("?")&&0!==t.indexOf("#")||(t=t.substring(1,t.length));var r={},n=t.split("&");for(var o in n){var i="string"==typeof n[o]?n[o].split("="):[];2===i.length&&(r[i[0]]=decodeURIComponent(i[1]))}return r}function Q(){var e={};if(!window||!window.location||!window.location.search)return e;var t=X(window.location.search),r=t.tcbegin,n=t.tcend,o=t.uc,i=t.mt;return r&&(e.tcbegin=r),n&&(e.tcend=n),o&&(e.uc=o),i&&(e.mt=i),e}var ee=t.playurlConfig={cancelTokenSource:null};function te(e){return re.apply(this,arguments)}function re(){return re=b(h().mark((function e(t){var r,n,o,i,a,u,s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.ctx||(t.ctx={}),t.ctx.cryptoSign=!0,de(t.ctx.playUrl)&&(t.ctx.playUrl="/playurl/secret/v2/play/playurl"),e.next=5,ie(t);case 5:if(r=e.sent){e.next=8;break}return e.abrupt("return",{code:9504,message:"not support wasm!"});case 8:if(n=t.cdnData,o=t.reqType,(a=r.data)&&(i=a.behavior,delete a.behavior),u=a.clientId,delete r.data,s=t.ctx.playurlSK,"miguvideo"!==r.headers.appId||"h5"!==r.headers.terminalId&&"www"!==r.headers.terminalId||(s="h5"===r.headers.terminalId?K:Y),r.headers.clientId=u,s){e.next=18;break}return e.abrupt("return",{code:9505,message:"播放签名密钥缺失,请求终止"});case 18:return r.playurlsecureSign=!0,r.playurlsecureSign_K=s,r.params=Object.assign({},a),i&&(r.method="post",r.data={behavior:i}),n&&(r.data=r.data||{},r.data.cdnData=n,r.data.reqType=o),e.abrupt("return",w.request(r).then(function(){var e=b(h().mark((function e(t){var n,o,i,a,c,l,f,d;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t&&null!==(n=t.headers)&&void 0!==n&&n.authResult&&null!=t&&t.data?t.data.authResult=t.headers.authResult:null!=t&&null!==(o=t.headers)&&void 0!==o&&o.authresult&&null!=t&&t.data&&(t.data.authResult=t.headers.authresult),null!=t&&null!==(i=t.headers)&&void 0!==i&&i.WebapiServerTimestamp&&null!=t&&t.data?t.data.WebapiServerTimestamp=t.headers.WebapiServerTimestamp:null!=t&&null!==(a=t.headers)&&void 0!==a&&a.webapiservertimestamp&&null!=t&&t.data&&(t.data.WebapiServerTimestamp=t.headers.webapiservertimestamp),null!=t&&t.data&&(t.data.clientId=u),null!=t&&null!==(c=t.config)&&void 0!==c&&c.params&&(t.data.requestData=JSON.stringify(r.params)),f=(null==t||null===(l=t.data)||void 0===l?void 0:l.body)||""){e.next=7;break}return e.abrupt("return",{code:9506,message:"播放数据为空,解密失败",clientId:u,res:{data:null==t?void 0:t.data}});case 7:return e.prev=7,e.next=10,_.decryptPlayurlData(f,s);case 10:return d=e.sent,t.data.body=JSON.parse(d),e.abrupt("return",t);case 15:return e.prev=15,e.t0=e.catch(7),e.abrupt("return",{code:9507,message:"播放数据解密失败",clientId:u,error:(null===e.t0||void 0===e.t0?void 0:e.t0.message)||e.t0,res:{data:null==t?void 0:t.data}});case 18:case"end":return e.stop()}}),e,null,[[7,15]])})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){if(void 0!==w.isCancel&&w.isCancel(e))return{code:9508,message:"request canceled",clientId:u};var t,r,n="";if(null!=e&&null!==(t=e.config)&&void 0!==t&&t.params){var o=[];for(var i in e.config.params)e.config.params.hasOwnProperty(i)&&e.config.params[i]&&o.push(encodeURIComponent(i)+"="+encodeURIComponent(e.config.params[i]));n+=e.config.url+"?".concat(o.join("&"))}return{code:null!==(r=null==e?void 0:e.errCode)&&void 0!==r?r:9501,message:"request catch",clientId:u,url:n,response:null==e?void 0:e.response}})));case 24:case"end":return e.stop()}}),e)}))),re.apply(this,arguments)}function ne(){return(ne=b(h().mark((function e(t){var r,n,o,i,a,u,s,c,l,f,d,p,v,m;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=(null===(r=t.ctx)||void 0===r?void 0:r.terminal)||t.terminal,c=null!==(n=t.ctx)&&void 0!==n&&n.hasOwnProperty("terminal")?t.ctx:t,"WWW"===s&&(s=c.terminal="www"),"H5"===s&&(s=c.terminal="h5"),l=(null===(o=t.ctx)||void 0===o?void 0:o.appId)||t.appId||"miguvideo",!((null===(i=t.ctx)||void 0===i||!i.disableCrypto)&&"miguvideo"===l&&["h5","www"].includes(s)||null!==(a=t.ctx)&&void 0!==a&&a.sginN&&null!==(u=t.ctx)&&void 0!==u&&u.playurlSK)){e.next=7;break}return e.abrupt("return",te(t));case 7:return e.next=9,ie(t);case 9:if(f=e.sent){e.next=12;break}return e.abrupt("return",{code:9504,message:"not support wasm!"});case 12:return d=t.cdnData,p=t.reqType,(v=f.data)&&delete v.behavior,f.params=Object.assign({},v),m=v.clientId,d&&(f.data.cdnData=d,f.data.reqType=p),e.abrupt("return",w.request(f).then((function(e){var t,r,n,o,i;return null!=e&&null!==(t=e.headers)&&void 0!==t&&t.authResult&&null!=e&&e.data?e.data.authResult=e.headers.authResult:null!=e&&null!==(r=e.headers)&&void 0!==r&&r.authresult&&null!=e&&e.data&&(e.data.authResult=e.headers.authresult),null!=e&&null!==(n=e.headers)&&void 0!==n&&n.WebapiServerTimestamp&&null!=e&&e.data?e.data.WebapiServerTimestamp=e.headers.WebapiServerTimestamp:null!=e&&null!==(o=e.headers)&&void 0!==o&&o.webapiservertimestamp&&null!=e&&e.data&&(e.data.WebapiServerTimestamp=e.headers.webapiservertimestamp),null!=e&&e.data&&(e.data.clientId=m),null!=e&&null!==(i=e.config)&&void 0!==i&&i.params&&(e.data.requestData=JSON.stringify(e.config.params)),e})).catch((function(e){if(void 0===w.isCancel||!w.isCancel(e)){var t,r,n="";if(null!=e&&null!==(t=e.config)&&void 0!==t&&t.params){var o=[];for(var i in e.config.params)e.config.params.hasOwnProperty(i)&&e.config.params[i]&&o.push(encodeURIComponent(i)+"="+encodeURIComponent(e.config.params[i]));n+=e.config.url+"?".concat(o.join("&"))}return{code:null!==(r=null==e?void 0:e.errCode)&&void 0!==r?r:9501,message:"request catch",clientId:m,url:n,response:null==e?void 0:e.response}}console.log("Request canceled")})));case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function oe(){return(oe=b(h().mark((function e(t){var r,n,o,i,a,u,s,c,l,f,d,v,y,g,b,_,x,E,S,k,O,I,T,A,P,R,j,D,L,N,U,B,M,F,z,q,G,W,V;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=function(e,t){Error.call(this,e),this.response=t}).prototype=Object.create(Error.prototype),n.prototype.constructor=n,o=t.domain,i=void 0===o?"//webapi.miguvideo.com":o,a=t.appCode,u=t.channelId,s=t.rateType,c=void 0===s?"":s,l=t.visualAngleId,f=void 0===l?"":l,d=t.liveRoomId,v=void 0===d?"":d,y=t.retry,g=t.retryCount,b=t.retryDelay,_=void 0===b?w.defaults.retryDelay:b,x=t.timeout,E=void 0===x?w.defaults.timeout:x,S=t.resmethod,k=void 0===S?"get":S,O=t.terminal,I=void 0===O?null:O,T=t.clientId,A=t.ctx,P=void 0===A?{}:A,R=t.playurlsecureSign_K,j=t.cdnData,D=t.reqType,L=t.extraHeaders,N=void 0===L?{}:L,v){e.next=6;break}return e.abrupt("return",Promise.reject(new Error("need liveRoomId")));case 6:if(U=P.appId||"miguvideo",I=P.terminal||I,"miguvideo"===U&&(I="WWW"===I?"www":"H5"===I?"h5":I),R=P.playurlSK||R||"b0b7babb030e0abb0b0e0f0cba0c0c0e","string"==typeof I){e.next=12;break}return e.abrupt("return",Promise.reject(new Error("terminal 必传")));case 12:if(T||(T=C()),B=null,M={},P.encryptedUserHeaderInfo&&P.encryptedUserInfo&&"object"===p(P.encryptedUserInfo)&&P.encryptedUserInfo.userId&&P.encryptedUserInfo.userToken?(B=P.encryptedUserInfo,M=P.encryptedUserHeaderInfo):P.userInfo&&"object"===p(P.userInfo)&&P.userInfo.userId&&P.userInfo.userToken&&(B=P.userInfo,M=P.userHeaderInfo?P.userHeaderInfo:{userId:B.userId||"",userToken:B.userToken||"",clientId:T,SDKCEId:B.clientId||"",clientCityId:B.clientCityId||"",clientProvinceCode:B.clientProvinceCode||"",carrierCode:B.carrierCode||"",sign:B.sign||"",userInfo:B.userInfo||"",mobile:B.mobile||""}),M&&(M.clientId=T),u||(u=J({channelId:u,terminal:I})),F={terminalId:I,appId:U,"X-UP-CLIENT-CHANNEL-ID":u},a){e.next=30;break}return e.prev=20,e.next=23,pe(U,I,u);case 23:z=e.sent,F.appCode=z||"".concat(U,"_default_").concat(I),e.next=30;break;case 27:e.prev=27,e.t0=e.catch(20),F.appCode="".concat(U,"_default_").concat(I);case 30:return B&&(F=m(m({},F),M)),"miguvideo"===(F=m(m({},F),N)).appId&&(F.terminalId="WWW"===F.terminalId?"www":"H5"===F.terminalId?"h5":F.terminalId),q="/gateway",G="",P.exact_playUrl?G=P.exact_playUrl:(G=P.playUrl?P.playUrl:"/pugc-playurl/videox/play/v1/play/secret/playurl","test"===H?("local.miguvideo.com"===(W=location.host)&&(W="m-h5-test.miguvideo.com"),G="//"+W+q+G):G="vg"===H?"//vg.miguvideo.com"+q+G:i+q+G),V={method:k,url:G,timeout:null!=E?E:w.defaults.timeout,retry:null!==(r=null!=y?y:g)&&void 0!==r?r:w.defaults.retry,retryDelay:null!=_?_:w.defaults.retryDelay,params:{liveRoomId:v,visualAngleId:f,timestamp:(new Date).getTime().toString(),nt:"WLAN",rateType:c?c+"":""},headers:F,playurlsecureSign:!0,playurlsecureSign_K:R,shouldRetry:function(e){return!0}},"post"===k.toLocaleLowerCase()&&j&&(V.data={cdnData:j,reqType:D}),e.abrupt("return",w.request(V).then((function(e){var t,r,n,o,i;return null!=e&&null!==(t=e.headers)&&void 0!==t&&t.authResult&&null!=e&&e.data?e.data.authResult=e.headers.authResult:null!=e&&null!==(r=e.headers)&&void 0!==r&&r.authresult&&null!=e&&e.data&&(e.data.authResult=e.headers.authresult),null!=e&&null!==(n=e.headers)&&void 0!==n&&n.WebapiServerTimestamp&&null!=e&&e.data?e.data.WebapiServerTimestamp=e.headers.WebapiServerTimestamp:null!=e&&null!==(o=e.headers)&&void 0!==o&&o.webapiservertimestamp&&null!=e&&e.data&&(e.data.WebapiServerTimestamp=e.headers.webapiservertimestamp),null!=e&&e.data&&(e.data.clientId=T),null!=e&&null!==(i=e.config)&&void 0!==i&&i.params&&(e.data.requestData=JSON.stringify(e.config.params)),e})).catch((function(e){var t,r;if(void 0===w.isCancel||!w.isCancel(e))throw new n("Response code is not 200, code: ".concat(null!==(t=null==e?void 0:e.errCode)&&void 0!==t?t:9501),{code:null!==(r=null==e?void 0:e.errCode)&&void 0!==r?r:9501});console.log("Request canceled")})));case 39:case"end":return e.stop()}}),e,null,[[20,27]])})))).apply(this,arguments)}function ie(e){return ae.apply(this,arguments)}function ae(){return(ae=b(h().mark((function e(t){var r,n,o,i,a,u,s,l,d,v,y,g,b,E,S,k,O,I,T,A,P,R,j,D,L,B,M,F,Y,K,X,te,re,ne,oe,ie,ae,he,ve,me,ye,ge,be,we,_e,xe,Ee,Se,ke,Oe,Ie,Te,Ae,Pe,Ce,Re,je,De,Le,Ne,Ue,Be,Me,Fe,He,ze,qe,Ge,We,Ve,$e,Ye,Ke,Je,Ze,Xe;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ke=function(e,t,r){var n,o=t.split("_");return o=o[o.length-1],o=(null===(n=we.appCodeChannelIdMap)||void 0===n?void 0:n.length)>0&&ue(o,we.appCodeChannelIdMap)?!o||/^10010001005$/.test(o)?"default":o:"default","".concat(e,"_").concat(o,"_").concat(r)},i=t.resmethod,a=t.domain,u=void 0===a?"//webapi.miguvideo.com":a,s=t.terminal,l=t.rateType,d=t.startPlay,v=void 0!==d&&d,y=t.channelId,g=t.cid,b=t.shareId,E=t.ctx,S=void 0===E?{}:E,k=t.extraHeaders,O=void 0===k?{}:k,I=t.toTrial,T=t.rtcEnable,A=t.lowdelayCode,P=t.timeout,R=t.retry,j=t.retryDelay,D=t.mgdbId,L=t.HEVCConfig,B=void 0===L?{}:L,M=t.queryvivid,F=void 0===M?0:M,Y=t.xavs2,K=t.shortPlay,X=t.devId,te=t.ums,re=t.encodeDevId,ne=t.liveTData,oe=t.liveTruncation,ie=t.rateTypeAI,ae=t.startPlayAbrlevel,he=t.trackCancelToken,ve=void 0===he||he,g||b){e.next=4;break}return e.abrupt("return",Promise.reject(new Error("need cid 、 shareId")));case 4:if(me=S.terminal||s,"string"==typeof(s="WWW"===me?"www":"H5"===me?"h5":me)){e.next=8;break}return e.abrupt("return",Promise.reject(new Error("terminal 必传")));case 8:if(ye="/gateway",ge=C(),be=m(m({},be={"Content-Type":"application/json","Support-Pendant":1,channel:"H5"}),O),we=m(m({},N),S),Object.prototype.hasOwnProperty.call(S,"ums")&&(te=S.ums),_e=null,xe={},S.encryptedUserHeaderInfo&&S.encryptedUserInfo&&"object"===p(S.encryptedUserInfo)&&S.encryptedUserInfo.userId&&S.encryptedUserInfo.userToken?(_e=S.encryptedUserInfo,xe=S.encryptedUserHeaderInfo):S.userInfo&&"object"===p(S.userInfo)&&S.userInfo.userId&&S.userInfo.userToken&&(_e=S.userInfo,xe=S.userHeaderInfo?S.userHeaderInfo:{userId:_e.userId||"",userToken:_e.userToken||"",clientId:ge,SDKCEId:_e.clientId||"",clientCityId:_e.clientCityId||"",clientProvinceCode:_e.clientProvinceCode||"",carrierCode:_e.carrierCode||"",sign:_e.sign||"",userInfo:_e.userInfo||"",mobile:_e.mobile||""}),xe&&(xe.clientId=ge),Ee=!1,Se="",ke=l||U,Oe=we.sginN,Ie=we.cryptoSign&&Oe,Te=we.devId,"miguvideo"!==we.appId||"h5"!==s&&"www"!==s||(Ie=we.cryptoSign,Oe=Ie?"h5"===s?G:$:"h5"===s?q:V,Te="h5"===s?z:W,te="1"),Ae=function(e,t){var r;"undefined"!=typeof window&&(r=window.MediaSource||window.WebKitMediaSource);var n=null,o=!0,i=r&&"function"==typeof r.isTypeSupported&&r.isTypeSupported('video/mp4; codecs="hvc1.1.6.L153.B0"')&&r.isTypeSupported('video/mp4; codecs="hev1.1.6.L153.B0"')&&!(!t||!t[e]),a=!1;if(r){var u;if(null!==(u=document)&&void 0!==u&&u.cookie)if(n=document.cookie.match(new RegExp("(^| )video_hy=([^;]*)(;|$)"))){try{n=n&&decodeURIComponent(n[2]),o=JSON.parse(decodeURIComponent(n))}catch(e){o={}}switch(e){case"flv":case"hls":o=0!=o[e];break;default:o=!1}}else o=!0;if(i&&t.hevcblackos){var s=t.hevcblackos,c=ce();if(null!=s[c.type])if(1===s[c.type])a=!0;else{var l=s[c.type],f=le();if(null!=l[f.type])if(1===l[f.type])a=!0;else{var d=l[f.type],p=fe(),h=!d.version||d.version.indexOf(f.version)>-1,v=!d.renderer;if(d.renderer)for(var m=0;mLe&&(Le=Ue,De=x[Ne].id);Re.data.rateType=De}else Re.data.rateType=2;e.next=41;break;case 38:e.prev=38,e.t0=e.catch(29),Re.data.rateType=2;case 41:if(Be=null,Me=!1,null!==(r=document)&&void 0!==r&&r.cookie&&(Be=document.cookie.match(new RegExp("(^| )VIDEODOWNGRADE=([^;]*)(;|$)"))),null!==Be&&(Be=decodeURIComponent(Be[2]),Me=Be.indexOf(D)>0),!0!==Ee||"FLV"!==A||Me||(Re.data.flvEnable=!0),!0!==T||"RTC"!==A||Me||(Re.data.rtcEnable=!0),Y&&(Re.data.xavs2=!0),K&&(Re.data.shortPlay=K),ie&&(Re.data.rateTypeAI=ie),!Te||!_){e.next=73;break}if(e.prev=50,X=C(),!Ie){e.next=66;break}return e.next=55,_.Base64AesCBCEncodeP83la7yL9cR2Yp5To(X,Te);case 55:if(re=e.sent,"","function"!=typeof(null===(Fe=_)||void 0===Fe?void 0:Fe.getMouseTrackPoints)||"function"!=typeof(null===(He=_)||void 0===He?void 0:He.Base64AesCBCEncryptBytesP83la7yL9cR2Yp5To)){e.next=64;break}if(!(qe=_.getMouseTrackPoints())){e.next=64;break}return ze=f.default.deflate(JSON.stringify(qe)),e.next=63,_.Base64AesCBCEncryptBytesP83la7yL9cR2Yp5To(ze,Te);case 63:Re.data.behavior=e.sent;case 64:e.next=69;break;case 66:return e.next=68,_.Base64AesCBCEncode(X,Te);case 68:re=e.sent;case 69:e.next=73;break;case 71:e.prev=71,e.t1=e.catch(50);case 73:if(re&&X&&(Re.data.devId=re),te&&(Re.data.ums=te),Ge="",We="",!Oe||!_){e.next=92;break}if(e.prev=77,We=Re.data.timestamp+g+(Re.data.devId?X:""),!Ie){e.next=85;break}return e.next=82,_.signNEncrypt(We,Oe);case 82:Ge=e.sent,e.next=88;break;case 85:return e.next=87,_.Md5Encode(We,Oe);case 87:Ge=e.sent;case 88:e.next=92;break;case 90:e.prev=90,e.t2=e.catch(77);case 92:if(Ge&&(Re.data.signN=Ge),Re.data.xh265=Ae(Re.data.flvEnable?"flv":Re.data.rtcEnable?"rtc":"hls",B),Re.data.xh265&&("www"===s||"WWW"===s)&&F&&se(B.os)&&(Re.data.vivid=1,Re.data["2Kvivid"]=!0),be.appId||be.terminalId||"MINIPROGRAM"===s||(Re.headers.appId=we.appId,Re.headers.terminalId=s),"miguvideo"===Re.headers.appId&&(Re.headers.terminalId="WWW"===Re.headers.terminalId?"www":"H5"===Re.headers.terminalId?"h5":Re.headers.terminalId),"www"==Re.headers.terminalId&&(Re.data.chip="mgwww"),Re.data.channelId=J({channelId:y,terminal:s}),Re.headers["X-UP-CLIENT-CHANNEL-ID"]=Re.data.channelId,!de(Re.headers.appCode)){e.next=113;break}return e.prev=101,Ve=we.appId,$e=s,e.next=106,pe(Ve,$e,y);case 106:Ye=e.sent,Re.headers.appCode=Ye||Ke(we.appId,Re.data.channelId,Re.headers.terminalId),e.next=113;break;case 110:e.prev=110,e.t3=e.catch(101),Re.headers.appCode=Ke(we.appId,Re.data.channelId,Re.headers.terminalId);case 113:return b&&(Re.data.shareId=b),!0===I&&(Re.data.toTrial=I),(Je=Q())&&Object.assign(Re.data,Je),Re.ksCallBack=(null===(n=window)||void 0===n||null===(n=n.__ks__)||void 0===n?void 0:n.videoReady.bind(null===(o=window)||void 0===o?void 0:o.__ks__))||null,ve&&(ee.cancelTokenSource=null!==(Ze=w)&&void 0!==Ze&&null!==(Ze=Ze.CancelToken)&&void 0!==Ze&&Ze.source?w.CancelToken.source():null,null!=ee&&null!==(Xe=ee.cancelTokenSource)&&void 0!==Xe&&Xe.token&&(Re.cancelToken=ee.cancelTokenSource.token)),e.abrupt("return",Re);case 120:case"end":return e.stop()}}),e,null,[[29,38],[50,71],[77,90],[101,110]])})))).apply(this,arguments)}function ue(e,t){return!!t.find((function(t){return-1!==t.search(e)}))}function se(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var r,n=null===(r=window.navigator)||void 0===r||null===(r=r.userAgent)||void 0===r?void 0:r.toLowerCase(),o=n.indexOf("safari")>-1&&n.indexOf("chrom")<0,i=n.match(/version\/\d+/),a=o&&i&&i.length?Number(i[0].substr(8)):0,u=n.indexOf("edge/")>-1,s=n.match(/edge\/\d+/),c=u&&s&&s.length?Number(s[0].substr(5)):0,l=("undefined"!=typeof window&&(e=window.MediaSource||window.WebKitMediaSource),e.isTypeSupported('video/mp4; codecs="hev1.2.4.L153.90"')),f=window.matchMedia("(color-gamut:p3)"),d=null==f?void 0:f.matches,p=ce(),h=null;t&&null!=t[p.type]&&(h=t[p.type]);var v=p.version>=h,m=le(),y="chrome"===m.type||"edge"===m.type&&"chromium"===m.engine,g=o&&a>=13||u&&c>=18||y&&m.version>122;return l&&d&&g&&v}catch(e){return!1}}function ce(){for(var e=navigator.userAgent,t=["Windows","Linux","Mac","Android","HarmonyOS","Ubuntu","FreeBSD","Debian","iOS","Windows Phone","BlackBerry","MeeGo","Symbian","Chrome OS","WebOS"],r="",n="",o={Windows:e.indexOf("Windows")>-1,Linux:e.indexOf("Linux")>-1||e.indexOf("X11")>-1,Mac:e.indexOf("Macintosh")>-1,Android:e.indexOf("Android")>-1||e.indexOf("Adr")>-1,HarmonyOS:e.indexOf("HarmonyOS")>-1,Ubuntu:e.indexOf("Ubuntu")>-1,FreeBSD:e.indexOf("FreeBSD")>-1,Debian:e.indexOf("Debian")>-1,"Windows Phone":e.indexOf("IEMobile")>-1||e.indexOf("Windows Phone")>-1,BlackBerry:e.indexOf("BlackBerry")>-1||e.indexOf("RIM")>-1,MeeGo:e.indexOf("MeeGo")>-1,Symbian:e.indexOf("Symbian")>-1,iOS:e.indexOf("like Mac OS X")>-1,"Chrome OS":e.indexOf("CrOS")>-1,WebOS:e.indexOf("hpwOS")>-1},i=0;i-1&&r.indexOf("safari")>-1,Firefox:r.indexOf("firefox")>-1,Safari:r.indexOf("safari")>-1&&-1===r.indexOf("chrome"),LegacyEdge:r.indexOf("edge")>-1,Edge:r.indexOf("edg/")>-1,QQ:r.indexOf("qqbrowser")>-1,Sogou:r.indexOf("se 2.x")>-1};for(var p in d)if(d[p]){var h="",v=null;"QQ"===p?(h=r.match(/chrome\/([\d.]+)/)[1],v=c):"Chrome"===p?(v=o,h=r.match(/chrome\/([\d.]+)/)[1]):"Firefox"===p?(h=r.match(/firefox\/([\d.]+)/)[1],v=u):"Safari"===p?(h=r.match(/version\/([\d.]+)/)[1],v=s):"Edge"===p?(h=r.match(/edg\/([\d.]+)/)[1],v=i):"LegacyEdge"===p?(h=r.match(/edge\/([\d.]+)/)[1],v=a):"Sogou"===p&&(v=l,h=r.match(/chrome\/([\d.]+)/)[1]),n.type=v.toLowerCase(),n.engine=f[p]||"",n.version=parseInt(h,10)}}catch(e){n.type="other",n.engine="",n.version=0}return n}function fe(){try{if(!!window.WebGLRenderingContext){var e=document.createElement("canvas"),t={failIfMajorPerformanceCaveat:!("undefined"!=typeof window&&window.FORCE_WEBGL)},r=e.getContext("webgl",t)||e.getContext("webgl2",t)||e.getContext("experimental-webgl",t)||e.getContext("experimental-webgl2",t);if(r){var n=r.getExtension("WEBGL_debug_renderer_info");if(n)return r.getParameter(n.UNMASKED_RENDERER_WEBGL).toLowerCase()}}}catch(e){}return"unknow"}function de(e){return null==e||""===e}function pe(e,t,r){var n="/app-management/videox/staticcache/v1/get/appCode/".concat(e,"/").concat(t);return w({method:"get",url:n}).then((function(e){var t,n="",o=r.split("_"),i=o[o.length-1]||r;if(null!=e&&null!==(t=e.data)&&void 0!==t&&null!==(t=t.body)&&void 0!==t&&t.appCodes){var a,u=null==e||null===(a=e.data)||void 0===a||null===(a=a.body)||void 0===a?void 0:a.appCodes;n=u[i]||u.default}return n})).catch((function(e){}))}},23990:function(e,t,r){"use strict";r(36947),Object.defineProperty(t,"__esModule",{value:!0}),t.verticalProgram=t.urlRouteType=t.tipCodeErrorCode=t.timeShiftMode=t.testDecrypterOptions=t.prodDecrypterOptions=t.playurlError=t.playType=t.playStatus=t.defaultHlsConfig=t.allActionJumpType=t.advertStatus=t.VideoStartDelayStatus=t.VIDEO_TYPECODE=t.VIDEO_TYPE=t.VIDEO_EVENTS=t.VIDEO_CUSTOMIZE_EVENT=t.VIDEO_ADVERT_TYPE=t.TS_MESSAGE=t.RateLevel=t.RTC_MESSAGE=t.PRODUCT_TYPE=t.PLATFORM_ID_WWW=t.PLATFORM_ID_MSITE=t.MEDIAE_RROR=t.H5_PAGE_ENUM=t.H5Common=t.EncryptionFactor=t.DEFAULT_CHANNEL_ID=t.CUT_RENDER_MODE=t.BipCommon=t.AdCommon=t.AdApi=void 0,r(13225);var n=t.CUT_RENDER_MODE=Object.freeze({SOURCE:"source",SOURCE_HALF:"source-half",WEBCODECS_VIDEO_HALF:"webcodecs-video-half",WEBCODECS_CANVAS_HALF:"webcodecs-canvas-half",WEBCODECS_AUTO_HALF:"webcodecs-auto-half",WEBCODECS_VIDEO_SOURCE:"webcodecs-video-source",WEBCODECS_CANVAS_SOURCE:"webcodecs-canvas-source",WEBCODECS_AUTO_SOURCE:"webcodecs-auto-source"}),o=t.defaultHlsConfig={enableWorker:!0,cutRenderMode:n.WEBCODECS_AUTO_HALF,glsbLoadingMaxRetry:2,glsbLoadingTimeOut:3e3,glsbRetryDelay:100,requestPlayurlFlv:2,requestPlayurlHLS:2,videomixBuffer:10,videoDowngrade:0,requestGslbFlv:2,flvLoadingMinRetry:0,flvPos:1e3,seekBufferTipsProtectTime:1500,liveFlvPauseDestroyDelay:9e4,liveHlsEdgeDelay:5e4,timeShiftConfig:{timeShiftDuration:18e3,contentIds:{}},loadpcgg:!0,videohyMemoryTime:1,nudgeMaxRetry:5,nudgeOffset:.1,endRetryConnect:3,stableBufferDiffThresholdSecond:.5,stableBufferIntervalMs:4e3,unstableBufferStartTimeMs:3e3,bufferCheckIntervalMs:1e3,bufferLowerLimitSecond:.5,recentBufferedSize:6,isSpeedFullyUsed:!1,"hls-livestableBufferDiffThresholdSecond":1.5,"hls-livestableBufferIntervalMs":2e4,"hls-liveunstableBufferStartTimeMs":14e3,"hls-livebufferCheckIntervalMs":5e3,"hls-livebufferLowerLimitSecond":5,"hls-liverecentBufferedSize":5,"hls-liveisSpeedFullyUsed":!0,"hls-liveabrBandWidthUpFactor":.7,"hls-liveabrBandWidthFactor":.95,"hls-vodstableBufferDiffThresholdSecond":10,"hls-vodstableBufferIntervalMs":2e4,"hls-vodunstableBufferStartTimeMs":3e3,"hls-vodbufferCheckIntervalMs":5e3,"hls-vodbufferLowerLimitSecond":.5,"hls-vodrecentBufferedSize":6,"hls-vodisSpeedFullyUsed":!0,"hls-vodabrBandWidthUpFactor":.7,"hls-vodabrBandWidthFactor":.95,enableWwwDrm:!0,ignoreSafari:!1,ignoreYuanHua:!1,encryptionExpires:108e5,AIZoneEnableAbr:!0,enableSafariYuanHuaHlsPlay:!0,playurlJiangjiTimeout:2e3,playurlJiangjiRetry:1,playurlJsBackup:!1,ipProviders:["https://ifconfig.me/ip"],view_layout_config:{target:"sideView001",position:"right-bottom",width:.2,height:.2,marginX:0,marginY:0,zIndex:2,borderRadius:"0",border:"none"}},i=(t.prodDecrypterOptions={wasmPath:"/mgs/player/prd/dist/wasm",provisionServer:"//mgdrmcert.miguvideo.com/v1/drm/provision/getCert",licenseServer:"//mgdrm.miguvideo.com/v1/drm/license/getLicense",backupLicenseServer:"//mgdrmbu.miguvideo.com/v1/drm/license/getLicense"},t.testDecrypterOptions={provisionServer:"//testmsp.miguvideo.com:10085/v1/drm/provision/getCert",licenseServer:"//testmsp.miguvideo.com:10085/v1/drm/license/getLicense",backupLicenseServer:"//testmsp.miguvideo.com:10085/key/v1/drm/license/getLicense",wasmPath:"/mgs/player/prd/dist/wasm"},t.H5Common={el:".m-player",container:null,containerSelector:"",isMobile:!0,playUrl:"",product:{name:"miguVideo",appName:"咪咕视频"},userData:{name:"",token:"",userId:"",clientId:"",mobile:"",blurMobile:""},hlsConfig:o,isSupportVR:!1,elementFullscreen:!1,clientID:null,playSessionId:null,reqProRoll:!0,reqPostRoll:!0,skinCfg:{loopBtn:!0,speedBtn:!0,bigBtnVisible:!0,controlVisible:!0,controlsAlwaysVisible:!1,isvrbtn:!0,liveTimeUI:!0,vodTimeUI:!0,pipUI:!0,settingBox:!0,fullScreenBtn:!0,contextMenu:!0,isShikan:!1,paymentUI:!1,nextBtn:!0,ratetypeBox:!0,loading:!0,subtitleBox:!0,AIFlagAIZone:!1},videoTongceng:!1,heartDuration:3e4,callCode:{play:["2000","2001","2002","2003","2004","2005","2006","2007","2008","2009","2010","2011","2012","2013","2014","2015"],playBiperrorcode:["","","","","","","","","","","","","","10002013","10002014","10002015"],video:["3000","3001","3002","3003","3004","3005","3006","3007","3008","3009","3010","3011","3012","3013","3014","3015","3016","3017","3018","3019","3020","3021","3022","3023","3024","3025","3026","3027"],videoDecrypt:["4000","4001","4002","4003","4004","4005","4006","4007","4008","4009","4010","4011","4012","4013","4014","4015","4016","4017","4018","4019","4020","4021","4022"],videoDecryptBiperrorcode:["10004000","10004001","10004002","10004003","10004004","10004005","10004006","10004007","10004008","10004009","10004010","10004011","10004012","10004013","10004014","10004015","10004016","10004017","10004018","10004019","10004020","10004021","10004022"],biperrorcode:["","10003001","10003002","10003003","10003004","10003005","10003006","10003007","10003008","10003009","10003010","10003011","10003012","10003013","10003014","10003015","10000005","10003017","10003018","10003019","10003020","10003021","10003022","10003023","10003024","10003025","10003026","10003027"]},toFlow:!0,isLogin:!1,startBtnVipTip:null,liveReleaseBuffer:-1,startloading:null,appId:"miguvideo",isVip:!0,startPlay:!0,isMini:!1,showRecommend:!0,loop:!1,videoDisplayMode:"contain",AVS3Config:null,HEVCConfig:{},landingurl:{"http://shiviptanchuang.cn":"VIP","http://shiufctanchuang.cn":"UFC","http://shinbatanchuang.cn":"NBA_LIANMENGTONG.cn","http://shiwudaliansaitanchuang.cn":"WUDALIANSAI","http://shicbatanchuang.cn":"CBA","http://shitongkanjuantanchuang.cn":"TICKET","https://shiviptanchuang.cn":"VIP","https://shiufctanchuang.cn":"UFC","https://shinbatanchuang.cn":"NBA_LIANMENGTONG.cn","https://shiwudaliansaitanchuang.cn":"WUDALIANSAI","https://shicbatanchuang.cn":"CBA","https://shitongkanjuantanchuang.cn":"TICKET"},specialHost:null,authResult:null,isSupportWebRtc:null,remberPos:!0,rtcCodecs:[{type:"video",codecs:["vp9"]}],rtcBroswerLimit:null,defaultVRFov:70,runFramesThreshold:null,backupPlayHost:{},needBackUp:!1,ruleCheck:null,avs3UserCheck:null,userWhiteRule:"UGR3F8FC47C1FFA4972A8E7137B6BA6E",devId:"",appCode:"",channelId:"",enableAbr:!1,selectAbrLevel:!1,seamlessPlay:!1,skipTitle:!1,defaultEncryptionFactor:!1,encryptionFactor:{},queryvivid:!1}),a=(t.RateLevel={2:{id:"2",bitrate:800,maxBitrate:1300},3:{id:"3",bitrate:1600,maxBitrate:2700},4:{id:"4",bitrate:3e3,maxBitrate:5e3},7:{id:"7",bitrate:7800,maxBitrate:11800},5:{id:"5",bitrate:12e3,maxBitrate:18e3},9:{id:"9",bitrate:15e3,maxBitrate:2e4}},t.playType={VOD:"vod",LIVE:"live",HUIKAN:"playback"},t.timeShiftMode={LIVE:"live",DVR_PLAYING:"dvr_playing"},t.playurlError={jiangji:"9503",notSupportWasm:"9504",other_error:"9501",missingSignKey:"9505",emptyPlayData:"9506",decrypt_error:"9507",request_canceled:"9508"},t.playStatus={PLAYING:"playing",PAUSE:"pause",END:"end"},t.tipCodeErrorCode={VIP_DISCOUNT:i.callCode.play[2],HUIYUANZHEKOU01:i.callCode.play[2],FUFEI01:i.callCode.play[5],DANDIANFUFEI01:i.callCode.play[5],WUDALIANSAIFUFEI01:i.callCode.play[5]},t.verticalProgram={FOOTBALL:"WUDALIANSAI",NBA:"NBA",UFC:"UFC",CBA:"CBA",BASKETBALL:"LANQIUTONG","PING-PONG":"PINGPANGQIU"},t.MEDIAE_RROR={0:"视频错误",1:"取回过程被用户中止",2:"下载时发生错误",3:"解码时发生错误",4:"视频地址错误或不支持的音频/视频"},t.VIDEO_EVENTS=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","webkitbeginfullscreen","webkitendfullscreen"],t.VIDEO_ADVERT_TYPE={PRO_ROLL_TS:"pro-roll-ts",PRO_ROLL:"pro-roll",POST_ROLL:"post-roll",PAUSE_ADV:"pause-adv"},t.advertStatus={NONE:"none",ADVERT_PLAY:"advert_play",READY:"advert_ready",TIME_OUT:"time_out",OVER:"advert_over",STATUS:""},t.AdApi={advUrl:"//ggxwb.miguvideo.com/request/api10",testAdvUrl:"//36.155.98.104:51280/request/api10",adv_config:"//app-sc.miguvideo.com/common/v1/settings/BEFORE_PASTER_AD_CONFIG",deInfo:"https://ggmk.miguvideo.com/advertisement_adaptor/deInfo",recoPath:"/recommend/search/v1/recommend-related-long/",dotPath:"/program/v1/cont/assetDot-info/",vodPricing:"http://183.192.162.121/gateway/morder/v2/sales/vod-pricing",HTTP_LAYOUT_URL:"/gateway/display/v3/static/b7adeccc36fc49829cb4c00b268b598f",fufei01:"/mgs/promotion/subject/migu_hui/prd/index.html?pageId=037d82475f594da0b32b7ea47287a02d&isLeGao=1&platform=PLATFORM",RULE_CHECK:"/gateway/mrule/check",parameterFactor:"/gateway/app-management/videox/staticcache/v2/factor"},t.AdCommon={mobileRegExp:/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|WebOS|Windows Phone)/i,adBox:null,os:"other",ifa:"",did:""},t.H5_PAGE_ENUM={MEMBER_CENTER:"//m.miguvideo.com/mgs/msite/prd/memberCenterNew.html?is_mid_direct_pay=1&payback="+encodeURIComponent(window.location.href),WWW_MEMBER_CENTER:"//www.miguvideo.com/mgs/website/prd/personalCenter.html#/setting/personalInfo",COUPON_PACKAGE:"//m.miguvideo.com/mgs/msite/prd/couponPackage.html",M_INDEX:"//m.miguvideo.com/mgs/msite/prd/index.html",WWW_INDEX:"//www.miguvideo.com/mgs/website/prd/index.html",WWW_DOWNLOAD:"//www.miguvideo.com/mgs/website/prd/download.html",NBA_MEMBER_HALF_PAGE:"//m.miguvideo.com/mgs/msite/prd/nba_member_center.html",FOOTBALL_MEMBER_PAGE:"//m.miguvideo.com/mgs/msite/prd/index.html?pageId=7e927d96f1a44ed880559299dbcd4a8a&plt=sub"},t.BipCommon={VSD:"vsd",VD:"vd",FLD:"fld",PLERR:"plerr",M3ERR:"m3err",SEI:"sei"},t.VideoStartDelayStatus={NORMAL_PLAY:0,RATE_SWITCH:2,TIME_SHIFT_PLAY:3,TIME_SHIFT_RETURN_LIVE:4},t.DEFAULT_CHANNEL_ID="10010001005",t.PLATFORM_ID_MSITE="0131",t.PLATFORM_ID_WWW="0132",t.TS_MESSAGE={tsName:"",consume:"",size:"",retryTime:0,downloadTrace:[],SubsessionServiceIP:null,url:"",m3u8DownLoadNum:0,m3u8UpdateNum:0},t.RTC_MESSAGE={rtcStatsTrace:[]},t.VIDEO_TYPECODE={mp4:{type:"mp4",failtypeCode:6,streamType:3},hls:{type:"hls",failtypeCode:2,streamType:1},manifest:{type:"manifest",failtypeCode:2,streamType:1},level:{type:"level",failtypeCode:1,streamType:1},ts:{type:"ts",failtypeCode:0,streamType:1},flv:{type:"flv",failtypeCode:4,streamType:2},wasmflv:{type:"wasmflv",failtypeCode:7,streamType:2},webrtc:{type:"webrtc",failtypeCode:5,streamType:4},normal:{type:"normal",failtypeCode:6,streamType:3}});t.VIDEO_TYPE={MP4:a.mp4.type,HLS:a.hls.type,FLV:a.flv.type,WASMFLV:a.wasmflv.type,WEBRTC:a.webrtc.type,NORMAL:a.normal.type},t.VIDEO_CUSTOMIZE_EVENT={VIDEO_INIT:"video_init",PLAYER_READY:"player_ready",MEDIA_INFO:"media_info",STATISTICS_INFO:"statistics_info",VIDEO_OTHER_ERROR:"video_other_error",VIDEO_NETWORK_TIMEOUT:"video_network_timeout",VIDEO_NETWORK_ERROR:"video_network_error",VIDEO_MEDIA_ERROR:"video_media_error",VIDEO_DRM_ERROR:"video_drm_error",VIDEO_RELOAD:"video_reload",NOT_SUPPORT:"not_support",NOT_SUPPORT_WEBCODECS:"not_support_webcodecs",HLSFRAGLOADED:"hlsFragLoaded",VIDEO_SWITCHRATE_SUCCESS:"video_switchrate_success",HLS_PLAYINGFRAG_CHANGED:"hls_playingfrag_changed",HLSFRAGLOADERROR:"hlsFragLoadError",HLSFRAGLOADLOADTIMEOUT:"hlsFragLoadLoadTimeOut",DROPFRAGMENT:"dropFragment",DROPLEVEL:"dropLevel",ICE_CONNECT_CLOSED:"ice_connection_closed",PEER_CONNECT_CONNECTED:"peer_connection_connected",PEER_CONNECT_FAILED:"peer_connection_failed",PEER_CONNECT_CLOSED:"peer_connection_closed",STREAM_SUSPEND:"stream_suspend",STREAM_RESUME:"stream_resume",RTC_STATS:"rtc_stats",vr_ERROR:"vr-error",SWITCH_PLAYHOST:"switchPlayHost",KR_ONMOUSE_DOWN:"krοnmοusedοwn",KR_OMVIEW_CHANGE:"kronviewchanged",GET_SEI_INFO:"hlsGetSeiInfo",VIEW_LAYOUT:"view_layout"},t.PRODUCT_TYPE={MIGU_MOVIE:"miguMovie",MIGU_VIDEO:"miguVideo"},t.allActionJumpType={jumpClientPage:{info:"跳转至客户端页面(打开新页面)",id:3,value:"JUMP_INNER_NEW_PAGE"},jumpH5PageWithWebView:{info:"跳转至H5页面(用WebView打开)",id:4,value:"JUMP_H5_BY_WEB_VIEW"}},t.urlRouteType={mgdbid:["/live/home"],cid:["/detail/","/vertical/","/liveDetail/"]},t.EncryptionFactor={sv:"119",factor:"BjfS7eNf3OIROs2T1E8hHQ=="}},53053:function(e,t,r){"use strict";r(29305),r(32733),r(84701),r(81678),r(14382),r(4754),r(33087),r(36457),r(88908),r(83810),Object.defineProperty(t,"__esModule",{value:!0}),t.bipInfoRecord=void 0,t.clearTimeShiftPlayurlState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.timeShift;if(null==e||!e.timeShiftPlayerInfo)return;Object.assign(e.timeShiftPlayerInfo,{url:"",playData:null,playUrlHost:"",realUrlHost:""}),e.timeShift_playurl_resp=null,e.timeShift_playurl_resp_rateType="",e.playseek=""},t.createPlayerInfoInstance=function(){return f=h()},t.getLiveEdgeAt=function(){var e=Number(v.serverNowAt),t=Number(v.serverPerfAt),r=performance.now();if(!Number.isFinite(e)||!Number.isFinite(t)||!Number.isFinite(r))return null;return Math.floor(e+(r-t))},t.getTimeShiftCurrentAt=function(){var e=v.timeShift,t=Number(null==e?void 0:e.playAt),r=Number(null==e?void 0:e.playPerfAt),n=performance.now();if(!Number.isFinite(t)||!Number.isFinite(n))return null;var o=Number.isFinite(r)&&r>0?n-r:0;return Math.floor(t+o)},t.playerInfo=t.getUrlData=void 0,t.resetPlayerInfoForProgram=function(){var e,t,r,n,o,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},u=i||{},s=v.ctx||{};Object.assign(v,d,{shieldStatus:0,normalPlayerInfo:{url:"",playUrlHost:"",realUrlHost:"",playData:null,switchBackup:{url:"",playUrlHost:"",realUrlHost:""}},timeShift:p()}),v.Differentview=null!==(e=u.Differentview)&&void 0!==e?e:null,v.completed=!!u.noProAdv&&!!u.noProAdv,v.shikantime=null!==(t=s.shikanTime)&&void 0!==t?t:0,v.urlType=!a.default.isNull(s.urlType)&&a.default.toBoolean(s.urlType)?s.urlType:"normal",v.liveTruncation=null!==(r=u.liveTruncation)&&void 0!==r?r:"",v.liveTData=null!==(n=u.liveTData)&&void 0!==n?n:"",v.shareId=null!==(o=u.shareId)&&void 0!==o?o:""},t.resetSwitchBackupPlayerInfo=function(){[v.normalPlayerInfo,v.timeShift.timeShiftPlayerInfo].forEach((function(e){var t=e.switchBackup;(t.url||t.playUrlHost||t.realUrlHost)&&Object.assign(e,t),e.switchBackup={url:"",playUrlHost:"",realUrlHost:""}}))},r(24776),r(21203),r(44962),r(94),r(48338),r(77575),r(36947),r(78557),r(90076),r(95021),r(83994),r(97456),r(23630),r(82367),r(24362),r(99102);var n,o=r(23990),i=r(1050),a=(n=r(51089))&&n.__esModule?n:{default:n};function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=a.length-1)return!1;var s=a[d];return u.hostname===s?y(e,t,r):"".concat(u.protocol,"//").concat(s,":").concat(u.port).concat(u.pathname).concat(u.search)}return!1}/.flv(#|\?|$)/i.exec(r)&&!a.default.isNull(o.H5Common.hlsConfig.flvPos)&&v.playType==o.playType.LIVE&&(m.data.pos=o.H5Common.hlsConfig.flvPos),function r(n){i.axiosConfig.cancelTokenSource&&i.axiosConfig.cancelTokenSource.cancel("gslb request superseded");(0,i.fetch)(n.url,n.data,{"Content-Type":"text"},n.extra_config).then((function(o){var i=o.data,u=o.headers||{};if("string"==typeof i)i=a.default.delUrlParam("crossdomain",i),/(artc:)|(.flv(#|\?|$))|(.sdp(#|\?|$))/i.exec(i)&&u.Available&&(v.gslbAvailable=u.Available),e(i);else{var s=y("gslb",i.type,f);s?(n.url=s,t&&(i.switchUrl=s,t(i)),r(n)):c(i)}})).catch((function(e){var o=y("gslb",e.type,f);o?(n.url=o,t&&(e.switchUrl=o,t(e)),r(n)):c(e)}))}(m)}))};function m(){try{if(!!window.WebGLRenderingContext){var e=document.createElement("canvas"),t={failIfMajorPerformanceCaveat:!("undefined"!=typeof window&&window.FORCE_WEBGL)},r=e.getContext("webgl",t)||e.getContext("webgl2",t)||e.getContext("experimental-webgl",t)||e.getContext("experimental-webgl2",t);if(r){var n=r.getExtension("WEBGL_debug_renderer_info");if(n)return r.getParameter(n.UNMASKED_RENDERER_WEBGL).toLowerCase()}}}catch(e){}return"unknow"}},10975:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(29305),r(32733),r(51770),r(84701),r(81678),r(2623),r(21203),r(87324),r(4754),r(51908),r(10849),r(70389),r(94),r(36947),r(26437),r(52697),r(83994),r(23630),r(82367),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(24776),r(14382),r(44962),r(16216),r(86584),r(89336),r(26448),r(74455),r(83810),r(78557),r(90076),r(95021),r(73687),r(93062),r(96919),r(83320),r(4716),r(33054),r(82281),r(23236),r(89717),r(57268),r(32650),r(34581),r(31937),r(65683),r(85486),r(4181),r(1421),r(18750),r(50789),r(63171),r(67689),r(14715),r(39111),r(21788),r(73015),r(47762);var o=a(r(33634)),i=a(r(46265));function a(e){return e&&e.__esModule?e:{default:e}}function u(){u=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),u=new R(n||[]);return i(a,"_invoke",{value:T(e,r,u)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,s,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(j([])));S&&S!==r&&o.call(S,s)&&(x=S);var k=_.prototype=b.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,a,u,s){var c=p(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,s)}),(function(e){r("throw",e,u,s)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,s)}))}s(c.arg)}var a;i(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function T(t,r,n){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=A(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var c=p(t,r,n);if("normal"===c.type){if(o=n.done?y:v,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function A(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,A(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[s];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function s(e,t,r,n,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,o)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){s(i,n,o,a,u,"next",e)}function u(e){s(i,n,o,a,u,"throw",e)}a(void 0)}))}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:300,r=String(null==e?"":e);return r.length>t?r.slice(0,t)+"...":r}function y(e,t){var r="undefined"!=typeof window?window.nacl:null,n=r&&r.sign,o="";try{o=r?Object.keys(r).slice(0,20).join(","):""}catch(e){o="keys error:".concat((null==e?void 0:e.message)||e)}var i="";try{i=document.currentScript&&document.currentScript.src?document.currentScript.src:""}catch(e){}var a="";try{a=location.href}catch(e){}var u="";try{u=navigator.userAgent}catch(e){}return["url:".concat(m(e)),"loaded:".concat(t),"hasNacl:".concat(!!r),"hasSign:".concat(!!n),"naclType:".concat(Object.prototype.toString.call(r)),"naclKeys:".concat(m(o,200)),"initScript:".concat(m(h)),"currentScript:".concat(m(i)),"page:".concat(m(a)),"ua:".concat(m(u,400))].join(", ")}var g=t.default=function(){function e(){l(this,e)}var t,r,n,a,s;return d(e,null,[{key:"init",value:(s=c(u().mark((function e(){var t,r,n,i,a,s,c,l,f,d,p,h,v,m,y,g,b,w,_,x,E,S,k,O;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._initialized){e.next=3;break}return o.default.debug("PlayerKeyUtils 已初始化,跳过重复执行"),e.abrupt("return",this._lastInitResult||{success:!0,reason:"",storageMode:""});case 3:this._lastError=null,e.prev=4,r=this.generateWebGLFingerprint(),t=this.encodeUtf8(r),e.next=15;break;case 9:return e.prev=9,e.t0=e.catch(4),n="生成WebGL指纹失败: ".concat((null===e.t0||void 0===e.t0?void 0:e.t0.message)||e.t0),this._lastError={step:"generateWebGLFingerprint",reason:n,error:e.t0},this._lastInitResult={success:!1,reason:n,storageMode:""},e.abrupt("return",this._lastInitResult);case 15:return e.prev=15,e.next=18,this.generateAndEncryptFingerprint(t);case 18:if(a=e.sent,i=a.value){e.next=25;break}return s=a.reason||"生成公钥私钥失败:当前环境不支持 Ed25519",this._lastError={step:"generateAndEncryptFingerprint",reason:s},this._lastInitResult={success:!1,reason:s,storageMode:""},e.abrupt("return",this._lastInitResult);case 25:e.next=33;break;case 27:return e.prev=27,e.t1=e.catch(15),c="生成公钥私钥异常: ".concat((null===e.t1||void 0===e.t1?void 0:e.t1.message)||e.t1),this._lastError={step:"generateAndEncryptFingerprint",reason:c,error:e.t1},this._lastInitResult={success:!1,reason:c,storageMode:""},e.abrupt("return",this._lastInitResult);case 33:for(l=[],f=[],p=(d=i||{}).signature,h=d.publicKey,v=new Uint8Array(64),m=0;m<64;m++)v[m]=Math.floor(256*Math.random())^(3*m+17)%256;for(y=new Uint8Array(32),g=0;g<32;g++)y[g]=(h[g]+Math.floor(128*Math.random()))%256;return b={f1:h,f2:p,f3:v,f4:y},this._lastStateFiles=b,e.prev=42,e.next=45,this.writeValueToIDBFS(b);case 45:w=e.sent,e.next=51;break;case 48:e.prev=48,e.t2=e.catch(42),w={success:!1,reason:"写入IDBFS异常: ".concat((null===e.t2||void 0===e.t2?void 0:e.t2.message)||e.t2),error:e.t2};case 51:return w.success?l.push("写入数据到IDBFS成功"):f.push("写入数据到IDBFS失败: ".concat(this._resultReason(w,"写入IDBFS失败"))),(_=this.writeValueToLocalStorage(b)).success?l.push("写入数据到LocalStorage成功"):f.push("写入数据到LocalStorage失败: ".concat(this._resultReason(_,"写入LocalStorage失败"))),e.prev=54,e.next=57,this.writeTimestampToIndexedDB();case 57:x=e.sent,e.next=64;break;case 60:e.prev=60,e.t3=e.catch(54),o.default.debug("写入时间戳异常: ".concat((null===e.t3||void 0===e.t3?void 0:e.t3.message)||e.t3),e.t3),x={success:!1,reason:"写入时间戳异常: ".concat((null===e.t3||void 0===e.t3?void 0:e.t3.message)||e.t3),error:e.t3};case 64:if(x.success?l.push("写入时间戳到IndexedDB成功"):f.push("写入时间戳到IndexedDB失败: ".concat(this._resultReason(x,"写入时间戳失败"))),(E=this.writeTimestampToLocalStorage()).success?l.push("写入时间戳到LocalStorage成功"):f.push("写入时间戳到LocalStorage失败: ".concat(this._resultReason(E,"写入时间戳LocalStorage失败"))),S=w.success||_.success,k=x.success||E.success,S&&k){e.next=74;break}return O=f.join(";"),this._lastError={step:S?"writeTimestamp":"writeValueToStorage",reason:O,idbfsResult:w,localResult:_,tsIndexedDBResult:x,tsLocalResult:E},this._lastInitResult={success:!1,reason:O,storageMode:this._getStorageMode(w,_)},e.abrupt("return",this._lastInitResult);case 74:return this._initialized=!0,o.default.debug("PlayerKeyUtils 初始化完成"),this._lastInitResult={success:!0,reason:l.concat(f).join(";"),storageMode:this._getStorageMode(w,_)},e.abrupt("return",this._lastInitResult);case 78:case"end":return e.stop()}}),e,this,[[4,9],[15,27],[42,48],[54,60]])}))),function(){return s.apply(this,arguments)})},{key:"getInitResult",value:function(){return this._lastInitResult||{success:!1,reason:"PlayerKeyUtils尚未初始化",storageMode:""}}},{key:"getReportStateFiles",value:function(){var e,t;return null!==(e=this._lastStateFiles)&&void 0!==e&&e.f1&&null!==(t=this._lastStateFiles)&&void 0!==t&&t.f2?{f1:this.bytesToBase64(this._lastStateFiles.f1),f2:this.bytesToBase64(this._lastStateFiles.f2)}:null}},{key:"_resultReason",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.reason||(null===(e=t.error)||void 0===e?void 0:e.message)||t.error||r}},{key:"_getStorageMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.success&&t.success?"idbfs+localStorage":e.success?"idbfs":t.success?"localStorage":""}},{key:"writeValueToIDBFS",value:(a=c(u().mark((function e(t){var r,n,o,i,a,s,c,l,f,d,p;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0;try{r=(null===(n=window.mgvue3)||void 0===n?void 0:n.GES)||(null===(o=window.mgvue)||void 0===o?void 0:o.GES)||(null===(i=window.mgcommon)||void 0===i?void 0:i.GES)||(null===(a=window.mgreact)||void 0===a?void 0:a.GES)}catch(e){r=null}if(r){e.next=5;break}return e.abrupt("return",{success:!1,reason:"GES 未初始化,跳过写入IDBFS"});case 5:return s=[{filename:"f3.dat",data:t.f3},{filename:"f2.dat",data:t.f2},{filename:"f1.dat",data:t.f1},{filename:"f4.dat",data:t.f4}],e.next=9,r.writeDataDB("Beacon_1A2B3C4D5E6F7G8H_9Z",s);case 9:if(c=e.sent,(l=c.filter((function(e){return e.success})).length)!==s.length){e.next=15;break}return e.abrupt("return",{success:!0,reason:"",storageMode:"idbfs"});case 15:return f=c.map((function(e,t){var r,n;if(e.success)return null;var o=(null===(r=s[t])||void 0===r?void 0:r.filename)||e.filename||"index".concat(t),i=(null===(n=e.error)||void 0===n?void 0:n.message)||e.error||e.message||"未知错误";return"".concat(o,": ").concat(i)})).filter(Boolean).join("; "),d="部分文件写入失败(".concat(l,"/").concat(s.length,"),失败文件: ").concat(f),e.abrupt("return",{success:!1,reason:d});case 18:e.next=24;break;case 20:return e.prev=20,e.t0=e.catch(0),p="写入IDBFS失败: ".concat((null===e.t0||void 0===e.t0?void 0:e.t0.message)||e.t0),e.abrupt("return",{success:!1,reason:p});case 24:case"end":return e.stop()}}),e,null,[[0,20]])}))),function(e){return a.apply(this,arguments)})},{key:"writeValueToLocalStorage",value:function(e){try{if("undefined"==typeof window||!window.localStorage)return{success:!1,reason:"LocalStorage不可用",storageMode:"localStorage"};if(!(null!=e&&e.f1&&null!=e&&e.f2&&null!=e&&e.f3&&null!=e&&e.f4))return{success:!1,reason:"缺少f1/f2/f3/f4,无法写入LocalStorage",storageMode:"localStorage"};var t={bufferMeta:this.bytesToBase64(e.f1),streamPatch:this.bytesToBase64(e.f2),renderState:this.bytesToBase64(e.f3),deviceProfile:this.bytesToBase64(e.f4)};window.localStorage.setItem("__mgx_state_slot_v1__",JSON.stringify(t));return{success:!0,reason:"",storageMode:"localStorage"}}catch(e){return{success:!1,reason:"写入LocalStorage失败: ".concat((null==e?void 0:e.message)||e),storageMode:"localStorage"}}}},{key:"bytesToBase64",value:function(e){for(var t=e instanceof Uint8Array?e:new Uint8Array(e),r="",n=0;n>6,128|63&o):o<55296||o>=57344?r.push(224|o>>12,128|o>>6&63,128|63&o):(n++,o=65536+((1023&o)<<10|1023&t.charCodeAt(n)),r.push(240|o>>18,128|o>>12&63,128|o>>6&63,128|63&o))}return new Uint8Array(r)}},{key:"generateWebGLFingerprint",value:function(){try{var e=document.createElement("canvas"),t=e.getContext("webgl")||e.getContext("experimental-webgl");if(!t){var r=new b(1023);return r.setString("unknown|unknown|unknown|unknown"),r.getCString()}var n=t.getParameter(t.VERSION),o=t.getParameter(t.SHADING_LANGUAGE_VERSION),i=t.getSupportedExtensions()||[],a=t.getParameter(t.RENDERER),u="";u+="".concat(n||"unknown","|"),u+="".concat(o||"unknown","|"),u+="".concat(a||"unknown","|");var s=i.sort();u+=s.length>0?s.join(","):"unknown";var c=new b(1023);c.setString(u);c.getCString();return c.getCString()}catch(e){var l=new b(1023);l.setString("unknown|unknown|unknown|unknown");var f=l.getCString().replace(/\s/g,"");return l.clear(),l.setString(f),l.getCString()}}}]),e}();g._initialized=!1,g._lastError=null,g._lastInitResult=null,g._lastStateFiles=null;var b=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1024;l(this,e),this._size=t,this._buffer=new Array(t),this.clear()}return d(e,[{key:"clear",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=0;t=this._size)throw new Error("Index out of bounds");this._buffer[e]=t}},{key:"getChar",value:function(e){return this._buffer[e]}},{key:"setString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=Math.min(e.length,this._size-t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Promise((function(a,u){var c,d;n=Object.assign({timeout:o.default.defaults.timeout,retry:o.default.defaults.retry,retryDelay:o.default.defaults.retryDelay,shouldRetry:o.default.defaults.shouldRetry},n),f.cancelTokenSource=null!==o.default&&void 0!==o.default&&null!==(c=o.default.CancelToken)&&void 0!==c&&c.source?o.default.CancelToken.source():null,null!=f&&null!==(d=f.cancelTokenSource)&&void 0!==d&&d.token&&(n.cancelToken=f.cancelTokenSource.token),o.default.get(e,s({params:t,headers:Object.assign({},l,r)},n)).then((function(e){a(e)})).catch((function(t){if(void 0!==o.default.isCancel&&o.default.isCancel(t))i.default.debug("1Request canceled",e,(null==t?void 0:t.message)||"no message");else{var r,n="ECONNABORTED"===(null==t?void 0:t.code)&&null!=t&&t.message.includes("timeout")?"timeout":"",a=(null==t||null===(r=t.response)||void 0===r?void 0:r.status)||"";u({url:e,error:t,status:a,type:n,errorId:"10001"})}}))}))},t.post=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};a=Object.assign({timeout:o.default.defaults.timeout,retry:o.default.defaults.retry,retryDelay:o.default.defaults.retryDelay,shouldRetry:o.default.defaults.shouldRetry},a);var u=n&&[function(e){var t="";for(var r in e)t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r])+"&";return t.substring(0,t.length-1)}]||[];return new Promise((function(n,c){var d,p;f.cancelTokenSource=null!==o.default&&void 0!==o.default&&null!==(d=o.default.CancelToken)&&void 0!==d&&d.source?o.default.CancelToken.source():null,null!=f&&null!==(p=f.cancelTokenSource)&&void 0!==p&&p.token&&(a.cancelToken=f.cancelTokenSource.token),(0,o.default)(s({method:"post",url:e,headers:Object.assign({},l,r),data:t,transformRequest:u},a)).then((function(e){n(e)})).catch((function(r){void 0!==o.default.isCancel&&o.default.isCancel(r)?i.default.debug("2Request canceled",e,(null==r?void 0:r.message)||"no message"):(console.error("请求错误:请求参数:"+JSON.stringify(t),{errorKey:"axios fetch error "+e}),c({url:e,error:r,type:"",errorId:"10001"}))}))}))},r(76281),r(77575),r(78557),r(90076),r(99425),r(17089);var o=a(r(83957)),i=a(r(33634));function a(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t=t.retry?Promise.reject(e):(t.__retryCount+=1,new Promise((function(e){setTimeout((function(){e()}),t.retryDelay||1)})).then((function(){return(0,o.default)(t)})))):Promise.reject(e)}));var f=t.axiosConfig={cancelTokenSource:null}},29187:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(29305),r(32733),r(84701),r(81678),r(14382),r(21203),r(44962),r(4754),r(94),r(33087),r(36947),r(36457),r(88908),r(83810),r(83994),r(23630),r(82367),Object.defineProperty(t,"__esModule",{value:!0}),t.axiosConfig=void 0,t.fetch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Promise((function(o,u){var c,d;n=Object.assign({timeout:i.$_axios.defaults.timeout,retry:i.$_axios.defaults.retry,retryDelay:i.$_axios.defaults.retryDelay,shouldRetry:i.$_axios.defaults.shouldRetry},n),f.cancelTokenSource=null!==i.$_axios&&void 0!==i.$_axios&&null!==(c=i.$_axios.CancelToken)&&void 0!==c&&c.source?i.$_axios.CancelToken.source():null,null!=f&&null!==(d=f.cancelTokenSource)&&void 0!==d&&d.token&&(n.cancelToken=f.cancelTokenSource.token),i.$_axios.get(e,s({params:t,headers:Object.assign({},l,r)},n)).then((function(e){o(e)})).catch((function(t){if(void 0!==i.$_axios.isCancel&&i.$_axios.isCancel(t))a.default.debug("3Request canceled",e,(null==t?void 0:t.message)||"no message");else{var r,n=(null==t||null===(r=t.response)||void 0===r?void 0:r.status)||"";u({url:e,error:t,status:n,type:"",errorId:"10001"})}}))}))},t.post=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};o=Object.assign({timeout:i.$_axios.defaults.timeout,retry:i.$_axios.defaults.retry,retryDelay:i.$_axios.defaults.retryDelay,shouldRetry:i.$_axios.defaults.shouldRetry},o);var u=n&&[function(e){var t="";for(var r in e)t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r])+"&";return t.substring(0,t.length-1)}]||[];return new Promise((function(n,c){var d,p;f.cancelTokenSource=null!==i.$_axios&&void 0!==i.$_axios&&null!==(d=i.$_axios.CancelToken)&&void 0!==d&&d.source?i.$_axios.CancelToken.source():null,null!=f&&null!==(p=f.cancelTokenSource)&&void 0!==p&&p.token&&(o.cancelToken=f.cancelTokenSource.token),(0,i.$_axios)(s({method:"post",url:e,headers:Object.assign({},l,r),data:t,transformRequest:u},o)).then((function(e){n(e)})).catch((function(r){void 0!==i.$_axios.isCancel&&i.$_axios.isCancel(r)?a.default.debug("4Request canceled",e,(null==r?void 0:r.message)||"no message"):(console.error("请求错误:请求参数:"+JSON.stringify(t),{errorKey:"axios fetch error "+e}),c({url:e,error:r,type:"",errorId:"10001"}))}))}))},r(84734),r(77575),r(78557),r(90076),r(17089);var o,i=r(10666),a=(o=r(33634))&&o.__esModule?o:{default:o};function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t=t.retry?Promise.reject(e):(t.__retryCount+=1,new Promise((function(e){setTimeout((function(){e()}),t.retryDelay||1)})).then((function(){return(0,i.$_axios)(t)})))):Promise.reject(e)})),i.$_axios.interceptors.request.use((function(e){var t=e.url.indexOf("gateway")>-1&&e.url.indexOf("gateway")<100||e.url.indexOf("userCenterLogin")>-1&&e.url.indexOf("userCenterLogin")<100;e.request_start_time=(new Date).getTime();try{var r=location.hostname.indexOf("miguvideo.com"),n=r>-1&&r<10,o=e.url.indexOf("//")>-1&&e.url.indexOf("//")<10;return!e.baseURL&&n&&!o&&t&&(e.baseURL="//webapi.miguvideo.com"),e}catch(t){return e}}));var f=t.axiosConfig={cancelTokenSource:null}},11011:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r(29305),r(32733),r(51770),r(84701),r(81678),r(2623),r(21203),r(84734),r(87324),r(89336),r(4754),r(10849),r(70389),r(94),r(36947),r(26437),r(52697),r(21359),r(73687),r(23630),Object.defineProperty(t,"__esModule",{value:!0}),t.unifiedWasmEncryption=function(e){return P.apply(this,arguments)},r(24776),r(76281),r(44962),r(51908),r(58551),r(83810),r(78557),r(90076),r(83994),r(82367),r(17089);var o=d(r(51089)),i=r(53053),a=r(29187),u=d(r(22468)),s=d(r(10975)),c=r(23990),l=r(51337),f=d(r(33634));function d(e){return e&&e.__esModule?e:{default:e}}function p(){p=function(){return t};var e,t={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,a=Object.create(o.prototype),u=new R(n||[]);return i(a,"_invoke",{value:T(e,r,u)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};l(x,u,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(j([])));S&&S!==r&&o.call(S,u)&&(x=S);var k=_.prototype=b.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,a,u,s){var c=d(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==n(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,u,s)}),(function(e){r("throw",e,u,s)})):t.resolve(f).then((function(e){l.value=e,u(l)}),(function(e){return r("throw",e,u,s)}))}s(c.arg)}var a;i(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return a=a?a.then(o,o):o()}})}function T(t,r,n){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=A(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?y:v,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function A(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,A(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function h(e,t){for(var r=0;r1&&void 0!==n[1]?n[1]:{},e.abrupt("return",A((function(){return new Promise(function(){var e=x(p().mark((function e(n,a){var d,h,v,m,y,g,b,w,_,E,S,A,P,C,j,L,N,U,B,M,F,H,z;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.default.delUrlParam("ddCalcu",t),t=o.default.delUrlParam("sv",t),c.H5Common.encryptionFactor={},d=!1,h=null,v="",m="",y="",g=r.terminal,b=r.factorTerminal,w=!0===r.isPlayurlJsBackup,_=g||(i.playerInfo.ctx.terminal?i.playerInfo.ctx.terminal:c.H5Common.isMobile?"h5":"www"),E=b||_,S=c.H5Common.appId,A=o.default.getQueryString("puData",t)||"",P=o.default.getQueryString("tid",t)||"",g||i.playerInfo.ctx.terminal||("www"===P&&(_="www"),"h5"===P&&(_="h5")),C="_parameterFactor_".concat(S,"_").concat(E),0!==A.length){e.next=19;break}return n(t),e.abrupt("return");case 19:if((0,l.isWebAssemblySupported)()){e.next=23;break}return j=new D(c.H5Common.callCode.play[12],"not support wasm!"),a(j),e.abrupt("return");case 23:if(!c.H5Common.defaultEncryptionFactor||w){e.next=28;break}v=c.EncryptionFactor.factor,m=c.EncryptionFactor.sv,e.next=51;break;case 28:return e.prev=28,e.next=31,R(S,E,C);case 31:L=e.sent,N=L.sv,U=L.factor,B=L.dataFreshVersion,v=U||"",m=N||"",y=B,f.default.debug("加密因子获取成功"),e.next=51;break;case 41:if(e.prev=41,e.t0=e.catch(28),f.default.debug(e.t0.message),!w){e.next=48;break}return M=new D(c.H5Common.callCode.play[8],"playurl JS backup encryption factor failed: ".concat(e.t0.message||"unknown error")),a(M),e.abrupt("return");case 48:v=c.EncryptionFactor.factor,m=c.EncryptionFactor.sv,c.H5Common.defaultEncryptionFactor=!0;case 51:if(v){e.next=55;break}return F=new D(c.H5Common.callCode.play[12],"加密因子为空!"),a(F),e.abrupt("return");case 55:H=function(e){d||(e(),clearTimeout(h),d=!0)},h=setTimeout((function(){f.default.debug("wasm encrypt timeout!!!"),H((function(){var e=new D(c.H5Common.callCode.play[9],"wasm encrypt timeout!!!");a(e)}))}),k),(z=T()).MGPRModulePromise=z.MGPRModulePromise||new Promise((function(e){e((0,u.default)())})),z.MGPRModulePromise.then(function(){var e=x(p().mark((function e(r){var i,u,l,h,g,b,w,_,x,E,S,k,T,P,C,R,j,L,N,U;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return z._initBufferPromise||(z._initBufferPromise=new Promise((function(e,t){try{var n=r._CallInterface6();z._initializedBuffer=n,e(n)}catch(e){t(e)}}))),e.next=3,z._initBufferPromise;case 3:if(i=e.sent,u=o.default.getQueryString("userid",t)||"",l=o.default.getQueryString("timestamp",t)||"",h=o.default.getQueryString("ProgramID",t)||"",g=o.default.getQueryString("Channel_ID",t)||"",b=r._malloc(u.length+1),w=r._malloc(l.length+1),_=r._malloc(h.length+1),x=r._malloc(g.length+1),E=r._malloc(A.length+1),S=r._malloc(v.length+1),k=r._malloc(64),T=r._malloc(128),P=r._malloc(128),r.stringToUTF8(u,b,u.length+1),r.stringToUTF8(l,w,l.length+1),r.stringToUTF8(h,_,h.length+1),r.stringToUTF8(g,x,g.length+1),r.stringToUTF8(A,E,A.length+1),r.stringToUTF8(v,S,v.length+1),C=function(){try{r._free(b),r._free(w),r._free(_),r._free(x),r._free(E),r._free(S),r._free(k),r._free(T),r._free(P)}catch(e){f.default.debug("释放内存失败:",e)}},R=null,j=function(){r._CallInterface12(i,k,64);var e=r.UTF8ToString(k),t=s.default.getInitResult(),n=t.reason?",PlayerKeyUtils:".concat(t.reason):"",o=["-8","-10","-11","-12","-13"].includes(String(e))||[-8,-10,-11,-12,-13].includes(R)?s.default.getReportStateFiles():null,u=o?",stateFiles:data1=".concat(o.f1,",data2=").concat(o.f2):"",l=null!==R?",CallInterface4:".concat(R):"",d=new D("1000".concat(c.H5Common.callCode.play[11]),"wasmCode:".concat(e,",").concat(v).concat(l).concat(n).concat(u));f.default.debug("wasm encrypt error ".concat(e,"!!!")),C(),H((function(){a(d)}))},-1!==r._CallInterface1(i,_,h.length)){e.next=29;break}return j(),e.abrupt("return");case 29:if(-1!==r._CallInterface10(i,w,l.length)){e.next=32;break}return j(),e.abrupt("return");case 32:if(-1!==r._CallInterface9(i,b,u.length)){e.next=35;break}return j(),e.abrupt("return");case 35:if(-1!==r._CallInterface3(i,null,0)){e.next=38;break}return j(),e.abrupt("return");case 38:if(-1!==r._CallInterface11(i,null,0)){e.next=41;break}return j(),e.abrupt("return");case 41:if(-1!==r._CallInterface8(i,E,A.length)){e.next=44;break}return j(),e.abrupt("return");case 44:if(-1!==r._CallInterface2(i,x,g.length)){e.next=47;break}return j(),e.abrupt("return");case 47:if(-1!==r._CallInterface14(i,S,v.length,P,128)){e.next=50;break}return j(),e.abrupt("return");case 50:if(L=r.UTF8ToString(P),N=r._malloc(L.length+1),r.stringToUTF8(L,N,L.length+1),-1!==r._CallInterface7(i,N,L.length)){e.next=57;break}return r._free(N),j(),e.abrupt("return");case 57:U=0,function e(){if(d)return r._free(N),void C();var o=r._CallInterface4(i,T,128);if(R=o,f.default.debug("_CallInterface4 -> ".concat(o)),0===o){var a=r.UTF8ToString(T),u="".concat(t,"&ddCalcu=").concat(a,"&sv=").concat(m);c.H5Common.encryptionFactor.factor=v,c.H5Common.encryptionFactor.dataFreshVersion=y,r._free(N),C(),H((function(){n(u)})),f.default.debug("wasm encrypt success!!!")}else-1===o?(r._free(N),j()):U0&&void 0!==arguments[0]?arguments[0]:"";return new Promise((function(t,r){!function(e,t){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf8",i.async=!0,i.src=e,("onload"in i?n:o)(i,t),i.onload||n(i,t),r.appendChild(i)}(e,(function(e){t(!e)}))}))}},33634:function(e,t,r){"use strict";r(84701),r(69892),r(44962),r(51908),r(36947),r(95021),r(73687),r(83994),r(82367),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(29305),r(32733),r(81678),r(89336),r(4754),r(94),r(78557);var n,o=(n=r(51089))&&n.__esModule?n:{default:n};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>> "+n,u&&(n+=e.mix(u)),n}},{key:"mix",value:function(t){var r,n="";for(var o in t)try{"object"==i(t[o])?n+='"'+o+'":'+(r=(null!=t[o].length?"[,]":"{,}").split(","))[0]+e.mix(t[o])+r[1]+",\r":n+='"'+o+'":'+t[o]+","}catch(e){continue}return n}}],(r=null)&&s(t.prototype,r),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();l.m_log=""},51089:function(e,t,r){"use strict";r(51770),r(84701),r(2623),r(21203),r(69892),r(87324),r(10849),r(70389),r(36947),r(26437),r(52697),r(23630),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r(29305),r(32733),r(81678),r(24776),r(84734),r(44962),r(16216),r(86584),r(20518),r(89336),r(74576),r(4754),r(51908),r(94),r(48338),r(9698),r(83810),r(78557),r(96054),r(90076),r(646),r(95021),r(73687),r(83994),r(53819),r(79682),r(93062),r(11810),r(61948),r(82367),r(17089),r(24362),r(99102);var n,o=r(23990),i=r(53053),a=(n=r(33634))&&n.__esModule?n:{default:n};function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(){s=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),u=new R(n||[]);return o(a,"_invoke",{value:T(e,r,u)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",v="suspendedYield",m="executing",y="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,a,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(j([])));S&&S!==r&&n.call(S,a)&&(x=S);var k=_.prototype=b.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(o,i,a,s){var c=p(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function T(t,r,n){var o=h;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var s=A(u,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var c=p(t,r,n);if("normal"===c.type){if(o=n.done?y:v,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=y,n.method="throw",n.arg=c.arg)}}}function A(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,A(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function c(e,t,r,n,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,o)}function l(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){c(i,n,o,a,u,"next",e)}function u(e){c(i,n,o,a,u,"throw",e)}a(void 0)}))}}function f(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1){var p=d[1].split("?");if(p&&p[0])return p[0]}}}}}catch(e){u.e(e)}finally{u.f()}}return null}},{key:"channelIdFunc",value:function(){return this.getQueryString("channelid")&&this.session_Storage().setItem("channelId",this.getQueryString("channelid")),this.session_Storage().getItem("channelId")}},{key:"delUrlParam",value:function(e,t){if(-1==(t=t||location.href).indexOf(e))return t;for(var r=t.split("?"),n=r[0],o=r[1].split("&"),i=-1,a=0;a1&&void 0!==arguments[1]?arguments[1]:"YYYY年MM月DD日 hh:mm:ss";try{e||(e=(new Date).getT);var r=function(e,t){return(e/Math.pow(10,t)).toFixed(t).substr(2)},n=Math.floor(e.getTime()/1e3),a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","日","一","二","三","四","五","六"];return"mm:ss"==(t=n>=3600?"hh:mm:ss":"mm:ss")||"mm时ss分"==t||"hh:mm:ss"==t&&i.playerInfo.playType!=o.playType.LIVE?t.replace(/hh|mm|ss/g,(function(e){switch(e){case"hh":return t=Math.floor(n/60),(o=Math.floor(t/60)+"").length<2?"0"+o:o;case"mm":return function(e){return r(e%60,2)}(Math.floor(n/60));case"ss":return r(n%60,2);default:return"00"}var t,o})):t.replace(/YYYY|YY|MM|DD|hh|mm|ss|星期|周|www|week/g,(function(t){switch(t){case"YYYY":return e.getFullYear().toString();case"YY":return(e.getFullYear()+"").slice(2);case"MM":return r(e.getMonth()+1,2);case"DD":return r(e.getDate(),2);case"hh":return r(e.getHours(),2);case"mm":return r(e.getMinutes(),2);case"ss":return r(e.getSeconds(),2);case"星期":return"星期"+a[e.getDay()+7];case"周":return"周"+a[e.getDay()+7];case"week":return a[e.getDay()];case"www":return a[e.getDay()].slice(0,3);default:return"00"}}))}catch(e){return"00"}}},{key:"formatLiveElapsedTime",value:function(e){var t=Math.max(0,Math.floor(Number(e)/1e3)),r=Math.floor(t/3600),n=Math.floor(t/60)%60,o=t%60,i=function(e){return String(e).padStart(2,"0")};return"".concat(i(r),":").concat(i(n),":").concat(i(o))}},{key:"getTimeShiftHlsPlayseek",value:function(e){var t,r=Number(e),n=Number(null===(t=o.H5Common.hlsConfig)||void 0===t?void 0:t.liveHlsEdgeDelay),i=Number.isFinite(n)&&n>=0?n:o.defaultHlsConfig.liveHlsEdgeDelay,a=Number.isFinite(r)?Math.max(0,r-i):0,u=Math.floor(a/1e3),s=Math.floor(u/86400),c=Math.floor(u/3600)%24,l=Math.floor(u/60)%60,f=u%60,d=function(e){return String(e).padStart(2,"0")};return s>0?"".concat(d(s)).concat(d(c)).concat(d(l)).concat(d(f)):"".concat(d(c)).concat(d(l)).concat(d(f))}},{key:"setUrlQueryParamPreservingEncoding",value:function(e,t,r){var n=String(e||""),o=n.indexOf("#"),i=-1===o?n:n.slice(0,o),a=-1===o?"":n.slice(o),u=i.indexOf("?"),s="".concat(t,"=").concat(encodeURIComponent(String(r)));if(-1===u)return"".concat(i,"?").concat(s).concat(a);var c=i.slice(0,u),l=i.slice(u+1),f=l?l.split("&"):[],d=!1,p=f.reduce((function(e,r){return r.split("=",1)[0]!==t?(e.push(r),e):(d||(e.push(s),d=!0),e)}),[]);return d||p.push(s),"".concat(c,"?").concat(p.join("&")).concat(a)}},{key:"appendQueryParamToEnd",value:function(t,r,n){var o=String(t||""),i=o.indexOf("#"),a=-1===i?o:o.slice(0,i),u=-1===i?"":o.slice(i),s=e.delUrlParam(r,a),c="".concat(r,"=").concat(encodeURIComponent(String(n))),l=-1===s.indexOf("?")?"?":"&";return"".concat(s).concat(l).concat(c).concat(u)}},{key:"nosupportVRBrowser",value:function(){var t=!1,r=navigator.userAgent,n=/chrome\//i.test(r),o=/chrome\/(\d+\.\d)/i.test(r)?1*RegExp.$1:null,i=/AppleWebKit\/(\d+\.\d)/i.test(r)?1*RegExp.$1:null,a=/MQQBrowser\/(\d+\.\d)/i.test(r)?1*RegExp.$1:null,u=/UCBrowser\//i.test(r),s=/UCBrowser\/(\d+(\.\d+){0,2})/i.test(r)?RegExp.$1:null,c=/SogouMobileBrowser\//i.test(r),l=/MiuiBrowser\//i.test(r),f=/Firefox\//i.test(r),d=/Version\/4.0 Mobile/i.test(r),p=/baiduboxapp\//i.test(r),h=/baidubrowser\//i.test(r),v=/TBS\/(\d+)/i.test(r)?1*RegExp.$1:null;return e.isAndroid()&&(n&&42>o&&(t=!0),i&&537>i&&(t=!0),l&&(t=!0),u&&!this.nosupportVRUCBrowser(s)&&(t=!0),c&&(t=!0),f&&(t=!0),d&&(t=!0),p&&(t=!0),h&&(t=!0),/chrome\/45.0.2454.94/i.test(r)&&(t=!1),/chrome\/44.0.2403.133/i.test(r)&&(t=!1),a&&a>=7&&(t=!1),v&&v>=36824&&(t=!1)),e.isIos()&&u&&(t=!0),t}},{key:"nosupportVRUCBrowser",value:function(e){var t,r,n,o,i="11.0.0";if((i=i?i.replace(/[vV]/,""):"0.0.0")==(e=e?e.replace(/[vV]/,""):"0.0.0"))return!1;for(t=!1,i=i.split("."),e=e.split("."),r=Math.min(i.length,e.length),n=0,o=0;r>n&&0==(o=parseInt(i[n])-parseInt(e[n]));)n++;return 0>o&&(t=!0),t}},{key:"getBrowser",value:function(){var e=navigator.userAgent.toLowerCase(),t=(e.match(/firefox|chrome|safari|opera/g)||"other")[0];(e.match(/edge|msie|trident/g)||[])[0]&&(t="msie");var r="pc",n="",o=navigator.platform?navigator.platform.toLowerCase():null;switch("ontouchstart"in window||-1!=e.indexOf("touch")||-1!=e.indexOf("mobile")?-1!==e.indexOf("ipad")?r="pad":-1!==e.indexOf("mobile")?r=o?/(iPhone|iPad|iPod|iOS|Android|Linux armv8l|Linux armv7l|Linux aarch64)/i.test(o)?"mobile":"pc":"mobile":-1!==e.indexOf("android")&&(r="androidPad"):r="pc",t){case"chrome":case"safari":case"mobile":default:n="webkit";break;case"msie":n="ms";break;case"firefox":n="Moz";break;case"opera":n="O"}return{ua:e,version:(e.match(/[\s\S]+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],plat:o,type:t,pc:r,prefix:n,isMobile:"pc"!=r&&"other"!=r}}},{key:"getPlatform",value:function(){var e=navigator.userAgent,t=e.indexOf("Android")>-1||e.indexOf("Adr")>-1,r=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),n=navigator.userAgent.toLowerCase(),o=/macintosh|mac os x/i.test(navigator.userAgent),i=/linux/i.test(navigator.userAgent);return t?"AD":r?"iOS":n.indexOf("windows")>=0||n.indexOf("win32")>=0||n.indexOf("wow32")>=0||n.indexOf("win64")>=0||n.indexOf("wow64")>=0?"Win":o?"MacOS":i?"Linux":"other"}},{key:"webgl",value:function(){try{var e=document.createElement("canvas");return!(!window.WebGLRenderingContext||!e.getContext("webgl")&&!e.getContext("experimental-webgl"))}catch(e){return!1}}},{key:"isAndroid",value:function(){return/Android/i.test(navigator.userAgent)}},{key:"isWeChat",value:function(){return/MicroMessenger/i.test(navigator.userAgent)}},{key:"isIos",value:function(){return/iPhone|iPad|iPod/i.test(navigator.userAgent)}},{key:"isSafari",value:function(){return!(!navigator.userAgent.match(/Safari|safari/g)||navigator.userAgent.match(/Chrome/g))}},{key:"isChrome",value:function(){return null!==window.navigator.userAgent.match("Chrome")}},{key:"isSupportedFlv",value:function(){try{return window.fetch&&window.ReadableStream}catch(e){return!1}}},{key:"isOldBaiduBoxAppOnAppleDevice",value:function(){var e=navigator.userAgent,t=/iPhone|iPad|iPod|Macintosh/i.test(e),r=e.match(/baiduboxapp\/([\d.]+)/i);if(!r||!t)return a.default.debug("当前不在baidu APP内"),!1;var n=r[1];return a.default.debug("当前百度APP 版本号".concat(n)),-1===function(e,t){for(var r=e.split(".").map(Number),n=t.split(".").map(Number),o=Math.max(r.length,n.length),i=0;iu)return 1}return 0}(n,"15.18.0.0")}},{key:"toBoolean",value:function(e){return"0"!==e&&"false"!==e&&"''"!==e&&'""'!==e&&void 0!==e&&"undefined"!==e&&!!e}},{key:"isNull",value:function(e){return!(e&&void 0!==e||0==e)}},{key:"typeOf",value:function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]}},{key:"isInApp",value:function(){o.H5Common.product&&o.H5Common.product.name==o.PRODUCT_TYPE.MIGU_MOVIE?window.mgmovie&&window.mgmovie.jsbridge&&window.mgmovie.jsbridge.isInWebview&&window.mgmovie.jsbridge.isInWebview():o.H5Common.product&&o.H5Common.product.name!=o.H5Common.MIGU_VIDEO||window.MGBridge&&window.MGBridge.isInWebview&&window.MGBridge.isInWebview()}},{key:"getURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank";window.open(e,t,void 0,"UseDefault")}},{key:"checkFull",value:function(){return!!(document.fullscreenElement||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement)}},{key:"openPage",value:(d=l(s().mark((function t(r){var n,i,a,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.pageID,i=void 0===n?"":n,a=r.link,u=void 0===a?"":a){t.next=11;break}if(!(window.MGBridge&&window.MGBridge.jumpInnerNewPage&&window.MGBridge.isInWebview)){t.next=9;break}return t.next=5,window.MGBridge.isMiniProgram||Promise.resolve(!1);case 5:if(!t.sent){t.next=9;break}return window.MGBridge.jumpInnerNewPage({pageID:i}),t.abrupt("return");case 9:u=o.H5_PAGE_ENUM[i],u=window.General?window.General.assembleUrlBeforeRedirect(u):u;case 11:u&&e.getURL(u,"_top");case 12:case"end":return t.stop()}}),t)}))),function(e){return d.apply(this,arguments)})},{key:"cookie",value:function(){return{setItem:function(e,t,r){var n=encodeURIComponent(t);if("number"==typeof r){var o=new Date;o.setTime(o.getTime()+864e5*r),r&&(n+="; expires="+o.toUTCString())}document.cookie=e+"="+n},getItem:function(e){var t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]*)(;|$)"));return null!==t?decodeURIComponent(t[2]):null},removeItem:function(e){var t=new Date;t.setTime(t.getTime()-1e4),document.cookie=e+"=a; expires="+t.toGMTString()}}}},{key:"session_Storage",value:function(){return{setItem:function(e,t){var r=encodeURIComponent(t);window.sessionStorage.setItem(e,r)},getItem:function(e){var t=window.sessionStorage.getItem(e);return null!==t?decodeURIComponent(t):null}}}},{key:"local_Storage",value:function(){return{setItem:function(e,t){var r=encodeURIComponent(t);window.localStorage.setItem(e,r)},getItem:function(e){var t=window.localStorage.getItem(e);return null!==t?decodeURIComponent(t):null},removeItem:function(e){null!==window.localStorage.getItem(e)&&window.localStorage.removeItem(e)}}}},{key:"remeberPosi",value:function(e,t){if(!e)return 0;var r=window.localStorage;if(!r)return 0;var n=r.getItem("playerPosi"),o=Object.create(null);if(n)try{o=JSON.parse(n)}catch(e){}if(void 0===t)return o&&o[e]?o[e]:0;if(t>0){if(o){if(Object.keys(o).length>30){var i=(new Date).getTime(),a=-1;for(var u in o)i<=o[u].time&&(i=o[u].time,a=u);o[a]=null,delete o[a]}o[e]={posi:t,time:(new Date).getTime()}}else(o={})[e]={posi:t,time:(new Date).getTime()};r.setItem("playerPosi",JSON.stringify(o))}else o&&o[e]&&(o[e]=null,delete o[e],r.setItem("playerPosi",JSON.stringify(o)));return t}},{key:"throttle",value:function(e,t,r){var n,o;return r||(r=this),t||(t=500),function(){var i=arguments,a=+new Date;n&&a81&&t)if(e.isArray(t)||e.isObject(t))for(var r in t)t.hasOwnProperty(r)&&(t[r]=e.deepReplaceImgDomain(t[r]));else if(e.isString(t))return t.replace(/http:\/\/(wapx|img).cmvideo.cn:8080/gi,"https://$1.cmvideo.cn");return t}},{key:"isString",value:function(e){return"string"==typeof e}},{key:"isObject",value:function(e){return null!==e&&"object"===u(e)}},{key:"bindLeavePage",value:function(e){window.onblur=function(){e&&e()};var t="hidden"in document?"hidden":"webkitHidden"in document?"webkitHidden":"mozHidden"in document?"mozHidden":null;if(null!=t){var r=t.replace(/hidden/i,"visibilitychange");document.addEventListener&&document.addEventListener(r,(function(){document[t]&&e&&e()}))}}},{key:"getChannelId",value:function(){try{var t=o.H5Common.channelId||e.getQueryString("channelId")||e.getQueryString("channelid")||o.DEFAULT_CHANNEL_ID;return t.indexOf("_")>-1?t:(o.H5Common.isMobile?o.PLATFORM_ID_MSITE:o.PLATFORM_ID_WWW)+"_"+t}catch(e){return""}}},{key:"getURLObject",value:function(e){return/(\w+):\/\//.test(e)||(e="".concat(location.protocol,"//").concat(e)),new URL(e)}},{key:"isTestEnv",value:function(){var e,t,r,n,o;return!!(((null===(e=window)||void 0===e||null===(e=e.location)||void 0===e||null===(e=e.host)||void 0===e?void 0:e.indexOf("36.155.98.130"))>-1||(null===(t=window)||void 0===t||null===(t=t.location)||void 0===t||null===(t=t.host)||void 0===t?void 0:t.indexOf("m-h5-test.miguvideo.com"))>-1||(null===(r=window)||void 0===r||null===(r=r.location)||void 0===r||null===(r=r.host)||void 0===r?void 0:r.indexOf("local.miguvideo.com"))>-1)&&null!==(n=window)&&void 0!==n&&null!==(n=n.location)&&void 0!==n&&n.href&&RegExp("(^|\\?|&|#)ttt=1([^&#]*)(&|#|$)","i").test(null===(o=window)||void 0===o||null===(o=o.location)||void 0===o?void 0:o.href))}},{key:"utf8ByteToUnicodeStr",value:function(e){for(var t="",r=0;r>>7==0?(t+=String.fromCharCode(e[r]),r+=1):252&~n?248&~n?240&~n?224&~n?192&~n?(t+=String.fromCharCode(e[r]),r+=1):(o=(63&e[r])<<6,o|=63&e[r+1],t+=String.fromCharCode(o),r+=2):(o=(31&e[r])<<12,o|=(63&e[r+1])<<6,o|=63&e[r+2],t+=String.fromCharCode(o),r+=3):(o=(15&e[r])<<18,o|=(63&e[r+1])<<12,o|=(63&e[r+2])<<6,o|=63&e[r+3],t+=String.fromCharCode(o),r+=4):(o=(7&e[r])<<24,o|=(63&e[r+1])<<18,o|=(63&e[r+2])<<12,o|=(63&e[r+3])<<6,o|=63&e[r+4],t+=String.fromCharCode(o),r+=5):(o=(3&e[r])<<30,o|=(63&e[r+1])<<24,o|=(63&e[r+2])<<18,o|=(63&e[r+3])<<12,o|=(63&e[r+4])<<6,o|=63&e[r+5],t+=String.fromCharCode(o),r+=6)}return t}},{key:"forEach",value:function(e,t){if(null!=e)if("object"!==u(e)&&(e=[e]),isArray(e))for(var r=0,n=e.length;r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,u=[],s=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function y(e,t,r,n,o,i,a){try{var u=e[i](a),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,o)}function g(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){y(i,n,o,a,u,"next",e)}function u(e){y(i,n,o,a,u,"throw",e)}a(void 0)}))}}function b(){return b=g(m().mark((function e(){var t,a,s,l,f,d,h,y,b,w,_,x,E,S,k,O,I,T,A,P,C,R,j,D,L,N,U,B,M,F,H,z,q,G,W,V,$,Y,K,J,Z,X,Q,ee,te,re,ne,oe,ie,ae,ue,se,ce,le,fe,de,pe,he,ve,me,ye,ge,be,we,_e,xe,Ee,Se,ke,Oe,Ie,Te,Ae,Pe,Ce,Re,je,De,Le,Ne,Ue,Be,Me,Fe,He,ze,qe,Ge,We,Ve,$e,Ye,Ke,Je,Ze,Xe,Qe,et,tt,rt,nt,ot,it,at,ut,st,ct,lt,ft,dt,pt,ht,vt,mt,yt,gt,bt,wt,_t=arguments;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:bt=function(){function e(){var e,t;a.calledRun=!0,w||(D(),null===(e=_)||void 0===e||e(a),null===(t=a.onRuntimeInitialized)||void 0===t||t.call(a),L())}Ie>0?Te=bt:(j(),Ie>0?Te=bt:a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){return a.setStatus("")}),1),e()}),1)):e())},yt=function(e){a._verify_direct_impl=e.o,dt=a._malloc=e.p,a._free=e.q,a._verify_from_idbfs=e.r,a._call_idbfs_callback=e.s,a._CallInterface1=e.t,a._CallInterface2=e.u,a._CallInterface3=e.v,a._CallInterface4=e.w,a._CallInterface5=e.x,a._CallInterface6=e.y,a._CallInterface7=e.z,a._CallInterface8=e.A,a._CallInterface9=e.B,a._CallInterface10=e.C,a._CallInterface11=e.D,a._CallInterface12=e.E,a._CallInterface14=e.F,pt=e.G,ht=e.H,vt=e.I,mt=e.m,e.__indirect_function_table},ft=function(){try{var e=window.location.hostname;if("string"!=typeof e||!e)return 0;return["miguvideo.com","cmcc-vr.com"].some((function(t){return e===t||e.endsWith("."+t)}))}catch(e){return console.log("TMtJuGcL: ",e),0}},lt=function(){var e="unknown",t="unknown",r="unknown",n="unknown";try{for(var o=document.createElement("canvas"),i=null,a=["webgl","experimental-webgl"],u=0;u>2]=i,0}catch(e){if(void 0===Le||"ErrnoError"!==e.name)throw e;return e.errno}},Je=function(e,t,r,n){t=Ke(t);try{if(isNaN(t))return 61;var o=Ne.getStreamFromFD(e);return Le.llseek(o,t,r),P[n>>3]=BigInt(o.position),o.getdents&&0===t&&0===r&&(o.getdents=null),0}catch(e){if(void 0===Le||"ErrnoError"!==e.name)throw e;return e.errno}},Ye=function(e,t,r,n){try{var o=Ne.getStreamFromFD(e),i=$e(o,t,r);return I[n>>2]=i,0}catch(e){if(void 0===Le||"ErrnoError"!==e.name)throw e;return e.errno}},Ve=function(e){try{var t=Ne.getStreamFromFD(e);return Le.close(t),0}catch(e){if(void 0===Le||"ErrnoError"!==e.name)throw e;return e.errno}},Me=function(e,t,r,n){Ne.varargs=n;try{t=Ne.getStr(t),t=Ne.calculateAt(e,t);var o=n?ue():0;return Le.open(t,r,o).fd}catch(e){if(void 0===Le||"ErrnoError"!==e.name)throw e;return-e.errno}},Be=function(e,t,r){Ne.varargs=r;try{var n=Ne.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var o=n.tty.ops.ioctl_tcgets(n),i=se();O[i>>2]=o.c_iflag||0,O[i+4>>2]=o.c_oflag||0,O[i+8>>2]=o.c_cflag||0,O[i+12>>2]=o.c_lflag||0;for(var a=0;a<32;a++)E[i+a+17]=o.c_cc[a]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){i=se();var u=O[i>>2],s=O[i+4>>2],c=O[i+8>>2],l=O[i+12>>2],f=[];for(a=0;a<32;a++)f.push(E[i+a+17]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:u,c_oflag:s,c_cflag:c,c_lflag:l,c_cc:f})}return 0;case 21519:if(!n.tty)return-59;i=se();return O[i>>2]=0,0;case 21520:return n.tty?-28:-59;case 21537:case 21531:i=se();return Le.ioctl(n,t,i);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var d=n.tty.ops.ioctl_tiocgwinsz(n.tty);i=se();k[i>>1]=d[0],k[i+2>>1]=d[1]}return 0;default:return-28}}catch(e){if(void 0===Le||"ErrnoError"!==e.name)throw e;return-e.errno}},Ue=function(e,t,r){Ne.varargs=r;try{var n=Ne.getStreamFromFD(e);switch(t){case 0:if((o=ue())<0)return-28;for(;Le.streams[o];)o++;return Le.dupStream(n,o).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var o=ue();return n.flags|=o,0;case 12:o=se();return k[o+0>>1]=2,0}return-28}catch(e){if(void 0===Le||"ErrnoError"!==e.name)throw e;return-e.errno}},ee=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"i8";switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":E[e]=t;break;case"i16":k[e>>1]=t;break;case"i32":O[e>>2]=t;break;case"i64":P[e>>3]=BigInt(t);break;case"float":T[e>>2]=t;break;case"double":A[e>>3]=t;break;case"*":I[e>>2]=t;break;default:N("invalid type for setValue: ".concat(r))}},Y=function(){return Y=g(m().mark((function e(){var t,r,n,o,i,u;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(e){return r(e.instance)},r=function(e,t){return wt=e.exports,yt(wt),R(),wt},o=V(),!a.instantiateWasm){e.next=5;break}return e.abrupt("return",new Promise((function(e,t){a.instantiateWasm(o,(function(t,n){e(r(t,n))}))})));case 5:return null!==(t=U)&&void 0!==t||(U=B()),e.next=8,G(b,U,o);case 8:return i=e.sent,u=n(i),e.abrupt("return",u);case 11:case"end":return e.stop()}}),e)}))),Y.apply(this,arguments)},$=function(){return Y.apply(this,arguments)},V=function(){return{a:gt}},W=function(){return(W=g(m().mark((function e(t,r,n){var o,i;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=13;break}return e.prev=1,o=fetch(r,{credentials:"same-origin"}),e.next=5,WebAssembly.instantiateStreaming(o,n);case 5:return i=e.sent,e.abrupt("return",i);case 9:e.prev=9,e.t0=e.catch(1),y("wasm streaming compile failed: ".concat(e.t0)),y("falling back to ArrayBuffer instantiation");case 13:return e.abrupt("return",z(r,n));case 14:case"end":return e.stop()}}),e,null,[[1,9]])})))).apply(this,arguments)},G=function(e,t,r){return W.apply(this,arguments)},q=function(){return(q=g(m().mark((function e(t,r){var n,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,F(t);case 3:return n=e.sent,e.next=6,WebAssembly.instantiate(n,r);case 6:return o=e.sent,e.abrupt("return",o);case 10:e.prev=10,e.t0=e.catch(0),y("failed to asynchronously prepare wasm: ".concat(e.t0)),N(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})))).apply(this,arguments)},z=function(e,t){return q.apply(this,arguments)},H=function(){return(H=g(m().mark((function e(t){var r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b){e.next=10;break}return e.prev=1,e.next=4,f(t);case 4:return r=e.sent,e.abrupt("return",new Uint8Array(r));case 8:e.prev=8,e.t0=e.catch(1);case 10:return e.abrupt("return",M(t));case 11:case"end":return e.stop()}}),e,null,[[1,8]])})))).apply(this,arguments)},F=function(e){return H.apply(this,arguments)},M=function(e){if(e==U&&b)return new Uint8Array(b);throw"both async and sync fetching of the wasm failed"},B=function(){return a.locateFile?l("mgprtcl.wasm"):new URL(r(70870),r.b).href},N=function(e){var t,r;null===(t=a.onAbort)||void 0===t||t.call(a,e),y(e="Aborted("+e+")"),w=!0,e+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(e);throw null===(r=x)||void 0===r||r(n),n},L=function(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)Z(a.postRun.shift());K(J)},D=function(){C=!0,a.noFSInit||Le.initialized||Le.init(),be.init(),wt.n(),Le.ignorePermissions=!1},j=function(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)Q(a.preRun.shift());K(X)},R=function(){var e=mt.buffer;E=new Int8Array(e),k=new Int16Array(e),S=new Uint8Array(e),new Uint16Array(e),O=new Int32Array(e),I=new Uint32Array(e),T=new Float32Array(e),A=new Float64Array(e),P=new BigInt64Array(e),new BigUint64Array(e)},l=function(e){return a.locateFile?a.locateFile(e,s):s+e},a=_t.length>0&&void 0!==_t[0]?_t[0]:{},!0,!1,[],"./this.program","file:///opt/idc/apps/jenkins/workspace/build-41-SXH5-migustatic%E7%8B%AC%E7%AB%8B%E6%9E%84%E5%BB%BA%E4%BB%BB%E6%84%8F%E5%8D%95%E9%A1%B9%E7%9B%AE5-520039/migustatic/player/src/wasm/mgprtcl.js",s="";try{s=new URL(".","file:///opt/idc/apps/jenkins/workspace/build-41-SXH5-migustatic%E7%8B%AC%E7%AB%8B%E6%9E%84%E5%BB%BA%E4%BB%BB%E6%84%8F%E5%8D%95%E9%A1%B9%E7%9B%AE5-520039/migustatic/player/src/wasm/mgprtcl.js").href}catch(e){}if(f=function(){var e=g(m().mark((function e(t){var r;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t,{credentials:"same-origin"});case 2:if(!(r=e.sent).ok){e.next=5;break}return e.abrupt("return",r.arrayBuffer());case 5:throw new Error(r.status+" : "+r.url);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),h=console.log.bind(console),y=console.error.bind(console),w=!1,C=!1,p((function e(t){v(this,e),this.name="ExitStatus",this.message="Program terminated with exit(".concat(t,")"),this.status=t})),K=function(e){for(;e.length>0;)e.shift()(a)},J=[],Z=function(e){return J.push(e)},X=[],Q=function(e){return X.push(e)},!0,te=function(e){return pt(e)},re=function(){return vt()},ne=new TextDecoder,oe=function(e,t,r,n){var o=t+r;if(n)return o;for(;e[t]&&!(t>=o);)++t;return t},ie=function(e,t,r){if(!e)return"";var n=oe(S,e,t,r);return ne.decode(S.subarray(e,n))},ae=function(e,t,r,n){return N("Assertion failed: ".concat(ie(e),", at: ")+[t?ie(t):"unknown filename",r,n?ie(n):"unknown function"])},se=ue=function(){var e=O[+Ne.varargs>>2];return Ne.varargs+=4,e},ce={isAbs:function(e){return"/"===e.charAt(0)},splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,t){for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:function(e){var t=ce.isAbs(e),r="/"===e.slice(-1);return(e=ce.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=ce.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.slice(0,-1)),r+n):"."},basename:function(e){return e&&e.match(/([^\/]+|\/)\/*$/)[1]},join:function(){for(var e=arguments.length,t=new Array(e),r=0;r=-1&&!t;r--){var n=r>=0?r<0||arguments.length<=r?void 0:arguments[r]:Le.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";e=n+"/"+e,t=ce.isAbs(n)}return(t?"/":"")+(e=ce.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."},relative:function(e,t){function r(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=de.resolve(e).slice(1),t=de.resolve(t).slice(1);for(var n=r(e.split("/")),o=r(t.split("/")),i=Math.min(n.length,o.length),a=i,u=0;u1&&void 0!==arguments[1]?arguments[1]:0,r=oe(e,t,arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0);return ne.decode(e.buffer?e.subarray(t,r):new Uint8Array(e.slice(t,r)))},he=[],ve=function(e){for(var t=0,r=0;r=55296&&n<=57343?(t+=4,++r):t+=3}return t},me=function(e,t,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a=i)break;t[r++]=u}else if(u<=2047){if(r+1>=i)break;t[r++]=192|u>>6,t[r++]=128|63&u}else if(u<=65535){if(r+2>=i)break;t[r++]=224|u>>12,t[r++]=128|u>>6&63,t[r++]=128|63&u}else{if(r+3>=i)break;t[r++]=240|u>>18,t[r++]=128|u>>12&63,t[r++]=128|u>>6&63,t[r++]=128|63&u,a++}}return t[r]=0,r-o},ye=function(e,t,r){var n=r>0?r:ve(e)+1,o=new Array(n),i=me(e,o,0,o.length);return t&&(o.length=i),o},ge=function(){if(!he.length){var e,t=null;if(null!==(e=globalThis.window)&&void 0!==e&&e.prompt&&null!==(t=window.prompt("Input: "))&&(t+="\n"),!t)return null;he=ye(t,!0)}return he.shift()},be={ttys:[],init:function(){},shutdown:function(){},register:function(e,t){be.ttys[e]={input:[],output:[],ops:t},Le.registerDevice(e,be.stream_ops)},stream_ops:{open:function(e){var t=be.ttys[e.node.rdev];if(!t)throw new Le.ErrnoError(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.ops.fsync(e.tty)},fsync:function(e){e.tty.ops.fsync(e.tty)},read:function(e,t,r,n,o){if(!e.tty||!e.tty.ops.get_char)throw new Le.ErrnoError(60);for(var i=0,a=0;a0&&(h(pe(e.output)),e.output=[])},ioctl_tcgets:function(e){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets:function(e,t,r){return 0},ioctl_tiocgwinsz:function(e){return[24,80]}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(y(pe(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync:function(e){var t;(null===(t=e.output)||void 0===t?void 0:t.length)>0&&(y(pe(e.output)),e.output=[])}}},we=function(e){N()},_e={ops_table:null,mount:function(e){return _e.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(Le.isBlkdev(r)||Le.isFIFO(r))throw new Le.ErrnoError(63);_e.ops_table||(_e.ops_table={dir:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr,lookup:_e.node_ops.lookup,mknod:_e.node_ops.mknod,rename:_e.node_ops.rename,unlink:_e.node_ops.unlink,rmdir:_e.node_ops.rmdir,readdir:_e.node_ops.readdir,symlink:_e.node_ops.symlink},stream:{llseek:_e.stream_ops.llseek}},file:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr},stream:{llseek:_e.stream_ops.llseek,read:_e.stream_ops.read,write:_e.stream_ops.write,mmap:_e.stream_ops.mmap,msync:_e.stream_ops.msync}},link:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr,readlink:_e.node_ops.readlink},stream:{}},chrdev:{node:{getattr:_e.node_ops.getattr,setattr:_e.node_ops.setattr},stream:Le.chrdev_stream_ops}});var o=Le.createNode(e,t,r,n);return Le.isDir(o.mode)?(o.node_ops=_e.ops_table.dir.node,o.stream_ops=_e.ops_table.dir.stream,o.contents={}):Le.isFile(o.mode)?(o.node_ops=_e.ops_table.file.node,o.stream_ops=_e.ops_table.file.stream,o.usedBytes=0,o.contents=null):Le.isLink(o.mode)?(o.node_ops=_e.ops_table.link.node,o.stream_ops=_e.ops_table.link.stream):Le.isChrdev(o.mode)&&(o.node_ops=_e.ops_table.chrdev.node,o.stream_ops=_e.ops_table.chrdev.stream),o.atime=o.mtime=o.ctime=Date.now(),e&&(e.contents[t]=o,e.atime=e.mtime=e.ctime=o.atime),o},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage:function(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr:function(e){var t={};return t.dev=Le.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,Le.isDir(e.mode)?t.size=4096:Le.isFile(e.mode)?t.size=e.usedBytes:Le.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.atime),t.mtime=new Date(e.mtime),t.ctime=new Date(e.ctime),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr:function(e,t){for(var r=0,n=["mode","atime","mtime","ctime"];r=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-o,n);if(a>8&&i.subarray)t.set(i.subarray(o,o+a),r);else for(var u=0;u0||r+t1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Le.ErrnoError(44);null!==(t=r.follow_mount)&&void 0!==t||(r.follow_mount=!0),ce.isAbs(e)||(e=Le.cwd()+"/"+e);e:for(var n=0;n<40;n++){for(var o=e.split("/").filter((function(e){return!!e})),i=Le.root,a="/",u=0;u>>0)%Le.nameTable.length},hashAddNode:function(e){var t=Le.hashName(e.parent.id,e.name);e.name_next=Le.nameTable[t],Le.nameTable[t]=e},hashRemoveNode:function(e){var t=Le.hashName(e.parent.id,e.name);if(Le.nameTable[t]===e)Le.nameTable[t]=e.name_next;else for(var r=Le.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode:function(e,t){var r=Le.mayLookup(e);if(r)throw new Le.ErrnoError(r);for(var n=Le.hashName(e.id,t),o=Le.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===e.id&&i===t)return o}return Le.lookup(e,t)},createNode:function(e,t,r,n){var o=new Le.FSNode(e,t,r,n);return Le.hashAddNode(o),o},destroyNode:function(e){Le.hashRemoveNode(e)},isRoot:function(e){return e===e.parent},isMountpoint:function(e){return!!e.mounted},isFile:function(e){return 32768==(61440&e)},isDir:function(e){return 16384==(61440&e)},isLink:function(e){return 40960==(61440&e)},isChrdev:function(e){return 8192==(61440&e)},isBlkdev:function(e){return 24576==(61440&e)},isFIFO:function(e){return 4096==(61440&e)},isSocket:function(e){return!(49152&~e)},flagsToPermissionString:function(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:function(e,t){return Le.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2},mayLookup:function(e){if(!Le.isDir(e.mode))return 54;var t=Le.nodePermissions(e,"x");return t||(e.node_ops.lookup?0:2)},mayCreate:function(e,t){if(!Le.isDir(e.mode))return 54;try{Le.lookupNode(e,t);return 20}catch(e){}return Le.nodePermissions(e,"wx")},mayDelete:function(e,t,r){var n;try{n=Le.lookupNode(e,t)}catch(e){return e.errno}var o=Le.nodePermissions(e,"wx");if(o)return o;if(r){if(!Le.isDir(n.mode))return 54;if(Le.isRoot(n)||Le.getPath(n)===Le.cwd())return 10}else if(Le.isDir(n.mode))return 31;return 0},mayOpen:function(e,t){if(!e)return 44;if(Le.isLink(e.mode))return 32;var r=Le.flagsToPermissionString(t);return Le.isDir(e.mode)&&("r"!==r||576&t)?31:Le.nodePermissions(e,r)},checkOpExists:function(e,t){if(!e)throw new Le.ErrnoError(t);return e},MAX_OPEN_FDS:4096,nextfd:function(){for(var e=0;e<=Le.MAX_OPEN_FDS;e++)if(!Le.streams[e])return e;throw new Le.ErrnoError(33)},getStreamChecked:function(e){var t=Le.getStream(e);if(!t)throw new Le.ErrnoError(8);return t},getStream:function(e){return Le.streams[e]},createStream:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e=Object.assign(new Le.FSStream,e),-1==t&&(t=Le.nextfd()),e.fd=t,Le.streams[t]=e,e},closeStream:function(e){Le.streams[e]=null},dupStream:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,o=Le.createStream(e,n);return null===(t=o.stream_ops)||void 0===t||null===(r=t.dup)||void 0===r||r.call(t,o),o},doSetAttr:function(e,t,r){var n,o=null==e?void 0:e.stream_ops.setattr,i=o?e:t;null!==(n=o)&&void 0!==n||(o=t.node_ops.setattr),Le.checkOpExists(o,63),o(i,r)},chrdev_stream_ops:{open:function(e){var t,r,n=Le.getDevice(e.node.rdev);e.stream_ops=n.stream_ops,null===(t=(r=e.stream_ops).open)||void 0===t||t.call(r,e)},llseek:function(){throw new Le.ErrnoError(70)}},major:function(e){return e>>8},minor:function(e){return 255&e},makedev:function(e,t){return e<<8|t},registerDevice:function(e,t){Le.devices[e]={stream_ops:t}},getDevice:function(e){return Le.devices[e]},getMounts:function(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,c(n.mounts))}return t},syncfs:function(e,t){"function"==typeof e&&(t=e,e=!1),Le.syncFSRequests++,Le.syncFSRequests>1&&y("warning: ".concat(Le.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var r=Le.getMounts(Le.root.mount),n=0;function i(e){return Le.syncFSRequests--,t(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,i(e));++n>=r.length&&i(null)}var u,s=o(r);try{for(s.s();!(u=s.n()).done;){var c=u.value;c.type.syncfs?c.type.syncfs(c,e,a):a(null)}}catch(e){s.e(e)}finally{s.f()}},mount:function(e,t,r){var n,o="/"===r,i=!r;if(o&&Le.root)throw new Le.ErrnoError(10);if(!o&&!i){var a=Le.lookupPath(r,{follow_mount:!1});if(r=a.path,n=a.node,Le.isMountpoint(n))throw new Le.ErrnoError(10);if(!Le.isDir(n.mode))throw new Le.ErrnoError(54)}var u={type:e,opts:t,mountpoint:r,mounts:[]},s=e.mount(u);return s.mount=u,u.root=s,o?Le.root=s:n&&(n.mounted=u,n.mount&&n.mount.mounts.push(u)),s},unmount:function(e){var t=Le.lookupPath(e,{follow_mount:!1});if(!Le.isMountpoint(t.node))throw new Le.ErrnoError(28);for(var r=t.node,n=r.mounted,o=Le.getMounts(n),a=0,u=Object.entries(Le.nameTable);a1&&void 0!==arguments[1]?arguments[1]:438;return t&=4095,t|=32768,Le.mknod(e,t,0)},mkdir:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:511;return t&=1023,t|=16384,Le.mknod(e,t,0)},mkdirTree:function(e,t){var r,n="",i=o(e.split("/"));try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a){(n||ce.isAbs(e))&&(n+="/"),n+=a;try{Le.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}}}catch(e){i.e(e)}finally{i.f()}},mkdev:function(e,t,r){return void 0===r&&(r=t,t=438),t|=8192,Le.mknod(e,t,r)},symlink:function(e,t){if(!de.resolve(e))throw new Le.ErrnoError(44);var r=Le.lookupPath(t,{parent:!0}).node;if(!r)throw new Le.ErrnoError(44);var n=ce.basename(t),o=Le.mayCreate(r,n);if(o)throw new Le.ErrnoError(o);if(!r.node_ops.symlink)throw new Le.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename:function(e,t){var r,n,o=ce.dirname(e),i=ce.dirname(t),a=ce.basename(e),u=ce.basename(t);if(r=Le.lookupPath(e,{parent:!0}).node,n=Le.lookupPath(t,{parent:!0}).node,!r||!n)throw new Le.ErrnoError(44);if(r.mount!==n.mount)throw new Le.ErrnoError(75);var s,c=Le.lookupNode(r,a),l=de.relative(e,i);if("."!==l.charAt(0))throw new Le.ErrnoError(28);if("."!==(l=de.relative(t,o)).charAt(0))throw new Le.ErrnoError(55);try{s=Le.lookupNode(n,u)}catch(e){}if(c!==s){var f=Le.isDir(c.mode),d=Le.mayDelete(r,a,f);if(d)throw new Le.ErrnoError(d);if(d=s?Le.mayDelete(n,u,f):Le.mayCreate(n,u))throw new Le.ErrnoError(d);if(!r.node_ops.rename)throw new Le.ErrnoError(63);if(Le.isMountpoint(c)||s&&Le.isMountpoint(s))throw new Le.ErrnoError(10);if(n!==r&&(d=Le.nodePermissions(r,"w")))throw new Le.ErrnoError(d);Le.hashRemoveNode(c);try{r.node_ops.rename(c,n,u),c.parent=n}catch(e){throw e}finally{Le.hashAddNode(c)}}},rmdir:function(e){var t=Le.lookupPath(e,{parent:!0}).node,r=ce.basename(e),n=Le.lookupNode(t,r),o=Le.mayDelete(t,r,!0);if(o)throw new Le.ErrnoError(o);if(!t.node_ops.rmdir)throw new Le.ErrnoError(63);if(Le.isMountpoint(n))throw new Le.ErrnoError(10);t.node_ops.rmdir(t,r),Le.destroyNode(n)},readdir:function(e){var t=Le.lookupPath(e,{follow:!0}).node,r=Le.checkOpExists(t.node_ops.readdir,54);return r(t)},unlink:function(e){var t=Le.lookupPath(e,{parent:!0}).node;if(!t)throw new Le.ErrnoError(44);var r=ce.basename(e),n=Le.lookupNode(t,r),o=Le.mayDelete(t,r,!1);if(o)throw new Le.ErrnoError(o);if(!t.node_ops.unlink)throw new Le.ErrnoError(63);if(Le.isMountpoint(n))throw new Le.ErrnoError(10);t.node_ops.unlink(t,r),Le.destroyNode(n)},readlink:function(e){var t=Le.lookupPath(e).node;if(!t)throw new Le.ErrnoError(44);if(!t.node_ops.readlink)throw new Le.ErrnoError(28);return t.node_ops.readlink(t)},stat:function(e,t){var r=Le.lookupPath(e,{follow:!t}).node;return Le.checkOpExists(r.node_ops.getattr,63)(r)},fstat:function(e){var t,r=Le.getStreamChecked(e),n=r.node,o=r.stream_ops.getattr,i=o?r:n;return null!==(t=o)&&void 0!==t||(o=n.node_ops.getattr),Le.checkOpExists(o,63),o(i)},lstat:function(e){return Le.stat(e,!0)},doChmod:function(e,t,r,n){Le.doSetAttr(e,t,{mode:4095&r|-4096&t.mode,ctime:Date.now(),dontFollow:n})},chmod:function(e,t,r){var n;"string"==typeof e?n=Le.lookupPath(e,{follow:!r}).node:n=e;Le.doChmod(null,n,t,r)},lchmod:function(e,t){Le.chmod(e,t,!0)},fchmod:function(e,t){var r=Le.getStreamChecked(e);Le.doChmod(r,r.node,t,!1)},doChown:function(e,t,r){Le.doSetAttr(e,t,{timestamp:Date.now(),dontFollow:r})},chown:function(e,t,r,n){var o;"string"==typeof e?o=Le.lookupPath(e,{follow:!n}).node:o=e;Le.doChown(null,o,n)},lchown:function(e,t,r){Le.chown(e,t,r,!0)},fchown:function(e,t,r){var n=Le.getStreamChecked(e);Le.doChown(n,n.node,!1)},doTruncate:function(e,t,r){if(Le.isDir(t.mode))throw new Le.ErrnoError(31);if(!Le.isFile(t.mode))throw new Le.ErrnoError(28);var n=Le.nodePermissions(t,"w");if(n)throw new Le.ErrnoError(n);Le.doSetAttr(e,t,{size:r,timestamp:Date.now()})},truncate:function(e,t){if(t<0)throw new Le.ErrnoError(28);var r;"string"==typeof e?r=Le.lookupPath(e,{follow:!0}).node:r=e;Le.doTruncate(null,r,t)},ftruncate:function(e,t){var r=Le.getStreamChecked(e);if(t<0||!(2097155&r.flags))throw new Le.ErrnoError(28);Le.doTruncate(r,r.node,t)},utime:function(e,t,r){var n=Le.lookupPath(e,{follow:!0}).node;Le.checkOpExists(n.node_ops.setattr,63)(n,{atime:t,mtime:r})},open:function(e,t){var r,o,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:438;if(""===e)throw new Le.ErrnoError(44);if(i=64&(t="string"==typeof t?xe(t):t)?4095&i|32768:0,"object"==n(e))r=e;else{o=e.endsWith("/");var a=Le.lookupPath(e,{follow:!(131072&t),noent_okay:!0});r=a.node,e=a.path}var u=!1;if(64&t)if(r){if(128&t)throw new Le.ErrnoError(20)}else{if(o)throw new Le.ErrnoError(31);r=Le.mknod(e,511|i,0),u=!0}if(!r)throw new Le.ErrnoError(44);if(Le.isChrdev(r.mode)&&(t&=-513),65536&t&&!Le.isDir(r.mode))throw new Le.ErrnoError(54);if(!u){var s=Le.mayOpen(r,t);if(s)throw new Le.ErrnoError(s)}512&t&&!u&&Le.truncate(r,0),t&=-131713;var c=Le.createStream({node:r,path:Le.getPath(r),flags:t,seekable:!0,position:0,stream_ops:r.stream_ops,ungotten:[],error:!1});return c.stream_ops.open&&c.stream_ops.open(c),u&&Le.chmod(r,511&i),c},close:function(e){if(Le.isClosed(e))throw new Le.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{Le.closeStream(e.fd)}e.fd=null},isClosed:function(e){return null===e.fd},llseek:function(e,t,r){if(Le.isClosed(e))throw new Le.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new Le.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new Le.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read:function(e,t,r,n,o){if(n<0||o<0)throw new Le.ErrnoError(28);if(Le.isClosed(e))throw new Le.ErrnoError(8);if(1==(2097155&e.flags))throw new Le.ErrnoError(8);if(Le.isDir(e.node.mode))throw new Le.ErrnoError(31);if(!e.stream_ops.read)throw new Le.ErrnoError(28);var i=void 0!==o;if(i){if(!e.seekable)throw new Le.ErrnoError(70)}else o=e.position;var a=e.stream_ops.read(e,t,r,n,o);return i||(e.position+=a),a},write:function(e,t,r,n,o,i){if(n<0||o<0)throw new Le.ErrnoError(28);if(Le.isClosed(e))throw new Le.ErrnoError(8);if(!(2097155&e.flags))throw new Le.ErrnoError(8);if(Le.isDir(e.node.mode))throw new Le.ErrnoError(31);if(!e.stream_ops.write)throw new Le.ErrnoError(28);e.seekable&&1024&e.flags&&Le.llseek(e,0,2);var a=void 0!==o;if(a){if(!e.seekable)throw new Le.ErrnoError(70)}else o=e.position;var u=e.stream_ops.write(e,t,r,n,o,i);return a||(e.position+=u),u},mmap:function(e,t,r,n,o){if(2&n&&!(2&o)&&2!=(2097155&e.flags))throw new Le.ErrnoError(2);if(1==(2097155&e.flags))throw new Le.ErrnoError(2);if(!e.stream_ops.mmap)throw new Le.ErrnoError(43);if(!t)throw new Le.ErrnoError(28);return e.stream_ops.mmap(e,t,r,n,o)},msync:function(e,t,r,n,o){return e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,o):0},ioctl:function(e,t,r){if(!e.stream_ops.ioctl)throw new Le.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding&&N('Invalid encoding type "'.concat(t.encoding,'"'));var r=Le.open(e,t.flags),n=Le.stat(e).size,o=new Uint8Array(n);return Le.read(r,o,0,n,0),"utf8"===t.encoding&&(o=pe(o)),Le.close(r),o},writeFile:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.flags=r.flags||577;var n=Le.open(e,r.flags,r.mode);"string"==typeof t&&(t=new Uint8Array(ye(t,!0))),ArrayBuffer.isView(t)?Le.write(n,t,0,t.byteLength,void 0,r.canOwn):N("Unsupported data type"),Le.close(n)},cwd:function(){return Le.currentPath},chdir:function(e){var t=Le.lookupPath(e,{follow:!0});if(null===t.node)throw new Le.ErrnoError(44);if(!Le.isDir(t.node.mode))throw new Le.ErrnoError(54);var r=Le.nodePermissions(t.node,"x");if(r)throw new Le.ErrnoError(r);Le.currentPath=t.path},createDefaultDirectories:function(){Le.mkdir("/tmp"),Le.mkdir("/home"),Le.mkdir("/home/web_user")},createDefaultDevices:function(){Le.mkdir("/dev"),Le.registerDevice(Le.makedev(1,3),{read:function(){return 0},write:function(e,t,r,n,o){return n},llseek:function(){return 0}}),Le.mkdev("/dev/null",Le.makedev(1,3)),be.register(Le.makedev(5,0),be.default_tty_ops),be.register(Le.makedev(6,0),be.default_tty1_ops),Le.mkdev("/dev/tty",Le.makedev(5,0)),Le.mkdev("/dev/tty1",Le.makedev(6,0));var e=new Uint8Array(1024),t=0,r=function(){return 0===t&&(fe(e),t=e.byteLength),e[--t]};Le.createDevice("/dev","random",r),Le.createDevice("/dev","urandom",r),Le.mkdir("/dev/shm"),Le.mkdir("/dev/shm/tmp")},createSpecialDirectories:function(){Le.mkdir("/proc");var e=Le.mkdir("/proc/self");Le.mkdir("/proc/self/fd"),Le.mount({mount:function(){var t=Le.createNode(e,"fd",16895,73);return t.stream_ops={llseek:_e.stream_ops.llseek},t.node_ops={lookup:function(e,t){var r=+t,n=Le.getStreamChecked(r),o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:function(){return n.path}},id:r+1};return o.parent=o,o},readdir:function(){return Array.from(Le.streams.entries()).filter((function(e){var t=i(e,2);t[0];return t[1]})).map((function(e){var t=i(e,2),r=t[0];t[1];return r.toString()}))}},t}},{},"/proc/self/fd")},createStandardStreams:function(e,t,r){e?Le.createDevice("/dev","stdin",e):Le.symlink("/dev/tty","/dev/stdin"),t?Le.createDevice("/dev","stdout",null,t):Le.symlink("/dev/tty","/dev/stdout"),r?Le.createDevice("/dev","stderr",null,r):Le.symlink("/dev/tty1","/dev/stderr");Le.open("/dev/stdin",0),Le.open("/dev/stdout",1),Le.open("/dev/stderr",1)},staticInit:function(){Le.nameTable=new Array(4096),Le.mount(_e,{},"/"),Le.createDefaultDirectories(),Le.createDefaultDevices(),Le.createSpecialDirectories(),Le.filesystems={MEMFS:_e,IDBFS:Se}},init:function(e,t,r){var n,o,i;Le.initialized=!0,null!==(n=e)&&void 0!==n||(e=a.stdin),null!==(o=t)&&void 0!==o||(t=a.stdout),null!==(i=r)&&void 0!==i||(r=a.stderr),Le.createStandardStreams(e,t,r)},quit:function(){Le.initialized=!1;var e,t=o(Le.streams);try{for(t.s();!(e=t.n()).done;){var r=e.value;r&&Le.close(r)}}catch(e){t.e(e)}finally{t.f()}},findObject:function(e,t){var r=Le.analyzePath(e,t);return r.exists?r.object:null},analyzePath:function(e,t){try{e=(n=Le.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=Le.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=ce.basename(e),n=Le.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath:function(e,t,r,n){e="string"==typeof e?e:Le.getPath(e);for(var o=t.split("/").reverse();o.length;){var i=o.pop();if(i){var a=ce.join2(e,i);try{Le.mkdir(a)}catch(e){if(20!=e.errno)throw e}e=a}}return a},createFile:function(e,t,r,n,o){var i=ce.join2("string"==typeof e?e:Le.getPath(e),t),a=Ee(n,o);return Le.create(i,a)},createDataFile:function(e,t,r,n,o,i){var a=t;e&&(e="string"==typeof e?e:Le.getPath(e),a=t?ce.join2(e,t):e);var u=Ee(n,o),s=Le.create(a,u);if(r){if("string"==typeof r){for(var c=new Array(r.length),l=0,f=r.length;lthis.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}}},{key:"setDataGetter",value:function(e){this.getter=e}},{key:"cacheLength",value:function(){var e=new XMLHttpRequest;e.open("HEAD",r,!1),e.send(null),e.status>=200&&e.status<300||304===e.status||N("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),o=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,i=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,a=1048576;o||(a=n);var u=this;u.setDataGetter((function(e){var t=e*a,o=(e+1)*a-1;return o=Math.min(o,n-1),void 0===u.chunks[e]&&(u.chunks[e]=function(e,t){e>t&&N("invalid range ("+e+", "+t+") or no bytes requested!"),t>n-1&&N("only "+n+" bytes available! programmer error!");var o=new XMLHttpRequest;return o.open("GET",r,!1),n!==a&&o.setRequestHeader("Range","bytes="+e+"-"+t),o.responseType="arraybuffer",o.overrideMimeType&&o.overrideMimeType("text/plain; charset=x-user-defined"),o.send(null),o.status>=200&&o.status<300||304===o.status||N("Couldn't load "+r+". Status: "+o.status),void 0!==o.response?new Uint8Array(o.response||[]):ye(o.responseText||"",!0)}(t,o)),void 0===u.chunks[e]&&N("doXHR failed!"),u.chunks[e]})),!i&&n||(a=n=1,n=this.getter(0).length,a=n,h("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=a,this.lengthKnown=!0}},{key:"length",get:function(){return this.lengthKnown||this.cacheLength(),this._length}},{key:"chunkSize",get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}]),e}();if(globalThis.XMLHttpRequest){N("Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc");var u={isDevice:!1,contents:new a}}else u={isDevice:!1,url:r};var s=Le.createFile(e,t,u,n,o);u.contents?s.contents=u.contents:u.url&&(s.contents=null,s.url=u.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});for(var c={},l=function(){var e=i(d[f],2),t=e[0],r=e[1];c[t]=function(){return Le.forceLoadFile(s),r.apply(void 0,arguments)}},f=0,d=Object.entries(s.stream_ops);f=i.length)return 0;var a=Math.min(i.length-o,n);if(i.slice)for(var u=0;u>2]=t.dev,I[e+4>>2]=t.mode,I[e+8>>2]=t.nlink,I[e+12>>2]=t.uid,I[e+16>>2]=t.gid,I[e+20>>2]=t.rdev,P[e+24>>3]=BigInt(t.size),O[e+32>>2]=4096,O[e+36>>2]=t.blocks;var r=t.atime.getTime(),n=t.mtime.getTime(),o=t.ctime.getTime();return P[e+40>>3]=BigInt(Math.floor(r/1e3)),I[e+48>>2]=r%1e3*1e3*1e3,P[e+56>>3]=BigInt(Math.floor(n/1e3)),I[e+64>>2]=n%1e3*1e3*1e3,P[e+72>>3]=BigInt(Math.floor(o/1e3)),I[e+80>>2]=o%1e3*1e3*1e3,P[e+88>>3]=BigInt(t.ino),0},writeStatFs:function(e,t){I[e+4>>2]=t.bsize,I[e+60>>2]=t.bsize,P[e+8>>3]=BigInt(t.blocks),P[e+16>>3]=BigInt(t.bfree),P[e+24>>3]=BigInt(t.bavail),P[e+32>>3]=BigInt(t.files),P[e+40>>3]=BigInt(t.ffree),I[e+48>>2]=t.fsid,I[e+64>>2]=t.flags,I[e+56>>2]=t.namelen},doMsync:function(e,t,r,n,o){if(!Le.isFile(t.node.mode))throw new Le.ErrnoError(43);if(2&n)return 0;var i=S.slice(e,e+r);Le.msync(t,i,o,r,n)},getStreamFromFD:function(e){return Le.getStreamChecked(e)},varargs:void 0,getStr:function(e){return ie(e)}},Fe=[],He=function(e,t){var r;for(Fe.length=0;r=S[e++];){var n=105!=r;t+=(n&=112!=r)&&t%8?4:0,Fe.push(112==r?I[t>>2]:106==r?P[t>>3]:105==r?O[t>>2]:A[t>>3]),t+=n?8:4}return Fe},ze=function(e,t,r){var n=He(t,r);return ct[e].apply(ct,c(n))},qe=function(e,t,r){return ze(e,t,r)},Ge=function(e){N("OOM")},We=function(e){S.length;Ge()},$e=function(e,t,r,n){for(var o=0,i=0;i>2],u=I[t+4>>2];t+=8;var s=Le.read(e,E,a,u,n);if(s<0)return-1;if(o+=s,s9007199254740992?NaN:Number(e)},Ze=function(e,t,r,n){for(var o=0,i=0;i>2],u=I[t+4>>2];t+=8;var s=Le.write(e,E,a,u,n);if(s<0)return-1;if(o+=s,s0;)a.preInit.shift()();return a.addRunDependency=Pe,a.removeRunDependency=Ae,a.ccall=ot,a.UTF8ToString=ie,a.stringToUTF8=Qe,a.lengthBytesUTF8=ve,a.FS_preloadFile=je,a.FS_unlink=at,a.FS_createPath=it,a.FS_createDevice=st,a.FS_createDataFile=Oe,a.FS_createLazyFile=ut,ct={14363:function(e,t){var r=function(e){if("function"!=typeof atob)return null;for(var t=atob(e),r=new Uint8Array(t.length),n=0;n0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==c)throw new Error(a[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var h;if(h="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===s.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,h))!==c)throw new Error(a[r]);this._dict_set=!0}}function h(e,t){var r=new p(t);if(r.push(e,!0),r.err)throw r.msg||a[r.err];return r.result}p.prototype.push=function(e,t){var r,a,u=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?u.input=i.string2buf(e):"[object ArrayBuffer]"===s.call(e)?u.input=new Uint8Array(e):u.input=e,u.next_in=0,u.avail_in=u.input.length;do{if(0===u.avail_out&&(u.output=new o.Buf8(l),u.next_out=0,u.avail_out=l),1!==(r=n.deflate(u,a))&&r!==c)return this.onEnd(r),this.ended=!0,!1;0!==u.avail_out&&(0!==u.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(i.buf2binstring(o.shrinkBuf(u.output,u.next_out))):this.onData(o.shrinkBuf(u.output,u.next_out)))}while((u.avail_in>0||0===u.avail_out)&&1!==r);return 4===a?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===c):2!==a||(this.onEnd(c),u.avail_out=0,!0)},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=p,t.deflate=h,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,h(e,t)}},80399:function(e,t,r){"use strict";var n=r(85347),o=r(92937),i=r(46832),a=r(78717),u=r(38990),s=r(19222),c=r(6738),l=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==a.Z_OK)throw new Error(u[r]);if(this.header=new c,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=n.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(u[r])}function d(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||u[r.err];return r.result}f.prototype.push=function(e,t){var r,u,s,c,f,d=this.strm,p=this.options.chunkSize,h=this.options.dictionary,v=!1;if(this.ended)return!1;u=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?d.input=i.binstring2buf(e):"[object ArrayBuffer]"===l.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new o.Buf8(p),d.next_out=0,d.avail_out=p),(r=n.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&h&&(r=n.inflateSetDictionary(this.strm,h)),r===a.Z_BUF_ERROR&&!0===v&&(r=a.Z_OK,v=!1),r!==a.Z_STREAM_END&&r!==a.Z_OK)return this.onEnd(r),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&r!==a.Z_STREAM_END&&(0!==d.avail_in||u!==a.Z_FINISH&&u!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(s=i.utf8border(d.output,d.next_out),c=d.next_out-s,f=i.buf2string(d.output,s),d.next_out=c,d.avail_out=p-c,c&&o.arraySet(d.output,d.output,s,c,0),this.onData(f)):this.onData(o.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(v=!0)}while((d.avail_in>0||0===d.avail_out)&&r!==a.Z_STREAM_END);return r===a.Z_STREAM_END&&(u=a.Z_FINISH),u===a.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===a.Z_OK):u!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=f,t.inflate=d,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},t.ungzip=d},92937:function(e,t){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var o in r)n(r,o)&&(e[o]=r[o])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,r,n,o){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),o);else for(var i=0;i=252?6:u>=248?5:u>=240?4:u>=224?3:u>=192?2:1;function s(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&o))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",a=0;a>>6,t[a++]=128|63&r):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|63&r):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|63&r);return t},t.buf2binstring=function(e){return s(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,o=t.length;r4)c[n++]=65533,r+=i-1;else{for(o&=2===i?31:3===i?15:7;i>1&&r1?c[n++]=65533:o<65536?c[n++]=o:(o-=65536,c[n++]=55296|o>>10&1023,c[n++]=56320|1023&o)}return s(c,n)},t.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;r>=0&&128==(192&e[r]);)r--;return r<0||0===r?t:r+a[e[r]]>t?r:t}},71697:function(e){"use strict";e.exports=function(e,t,r,n){for(var o=65535&e,i=e>>>16&65535,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{i=i+(o=o+t[n++]|0)|0}while(--a);o%=65521,i%=65521}return o|i<<16}},78717:function(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},90731:function(e){"use strict";var t=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,r,n,o){var i=t,a=o+n;e^=-1;for(var u=o;u>>8^i[255&(e^r[u])];return~e}},11679:function(e,t,r){"use strict";var n,o=r(92937),i=r(85805),a=r(71697),u=r(90731),s=r(38990),c=0,l=4,f=0,d=-2,p=-1,h=4,v=2,m=8,y=9,g=286,b=30,w=19,_=2*g+1,x=15,E=3,S=258,k=S+E+1,O=42,I=103,T=113,A=666,P=1,C=2,R=3,j=4;function D(e,t){return e.msg=s[t],t}function L(e){return(e<<1)-(e>4?9:0)}function N(e){for(var t=e.length;--t>=0;)e[t]=0}function U(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(o.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function B(e,t){i._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,U(e.strm)}function M(e,t){e.pending_buf[e.pending++]=t}function F(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function H(e,t){var r,n,o=e.max_chain_length,i=e.strstart,a=e.prev_length,u=e.nice_match,s=e.strstart>e.w_size-k?e.strstart-(e.w_size-k):0,c=e.window,l=e.w_mask,f=e.prev,d=e.strstart+S,p=c[i+a-1],h=c[i+a];e.prev_length>=e.good_match&&(o>>=2),u>e.lookahead&&(u=e.lookahead);do{if(c[(r=t)+a]===h&&c[r+a-1]===p&&c[r]===c[i]&&c[++r]===c[i+1]){i+=2,r++;do{}while(c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&c[++i]===c[++r]&&ia){if(e.match_start=t,a=n,n>=u)break;p=c[i+a-1],h=c[i+a]}}}while((t=f[t&l])>s&&0!=--o);return a<=e.lookahead?a:e.lookahead}function z(e){var t,r,n,i,s,c,l,f,d,p,h=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-k)){o.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=h?n-h:0}while(--r);t=r=h;do{n=e.prev[--t],e.prev[t]=n>=h?n-h:0}while(--r);i+=h}if(0===e.strm.avail_in)break;if(c=e.strm,l=e.window,f=e.strstart+e.lookahead,d=i,p=void 0,(p=c.avail_in)>d&&(p=d),r=0===p?0:(c.avail_in-=p,o.arraySet(l,c.input,c.next_in,p,f),1===c.state.wrap?c.adler=a(c.adler,l,p,f):2===c.state.wrap&&(c.adler=u(c.adler,l,p,f)),c.next_in+=p,c.total_in+=p,p),e.lookahead+=r,e.lookahead+e.insert>=E)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<=E&&(e.ins_h=(e.ins_h<=E)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-E),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=E){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=E&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=E-1)),e.prev_length>=E&&e.match_length<=e.prev_length){o=e.strstart+e.lookahead-E,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-E),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=o&&(e.ins_h=(e.ins_h<15&&(u=2,n-=16),i<1||i>y||r!==m||n<8||n>15||t<0||t>9||a<0||a>h)return D(e,d);8===n&&(n=9);var s=new V;return e.state=s,s.strm=e,s.wrap=u,s.gzhead=null,s.w_bits=n,s.w_size=1<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),0===e.lookahead&&t===c)return P;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,B(e,!1),0===e.strm.avail_out))return P;if(e.strstart-e.block_start>=e.w_size-k&&(B(e,!1),0===e.strm.avail_out))return P}return e.insert=0,t===l?(B(e,!0),0===e.strm.avail_out?R:j):(e.strstart>e.block_start&&(B(e,!1),e.strm.avail_out),P)})),new W(4,4,8,4,q),new W(4,5,16,8,q),new W(4,6,32,32,q),new W(4,4,16,16,G),new W(8,16,32,32,G),new W(8,16,128,128,G),new W(8,32,128,256,G),new W(32,128,258,1024,G),new W(32,258,258,4096,G)],t.deflateInit=function(e,t){return K(e,t,m,15,8,0)},t.deflateInit2=K,t.deflateReset=Y,t.deflateResetKeep=$,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,f):d},t.deflate=function(e,t){var r,o,a,s;if(!e||!e.state||t>5||t<0)return e?D(e,d):d;if(o=e.state,!e.output||!e.input&&0!==e.avail_in||o.status===A&&t!==l)return D(e,0===e.avail_out?-5:d);if(o.strm=e,r=o.last_flush,o.last_flush=t,o.status===O)if(2===o.wrap)e.adler=0,M(o,31),M(o,139),M(o,8),o.gzhead?(M(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),M(o,255&o.gzhead.time),M(o,o.gzhead.time>>8&255),M(o,o.gzhead.time>>16&255),M(o,o.gzhead.time>>24&255),M(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),M(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(M(o,255&o.gzhead.extra.length),M(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(e.adler=u(e.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(M(o,0),M(o,0),M(o,0),M(o,0),M(o,0),M(o,9===o.level?2:o.strategy>=2||o.level<2?4:0),M(o,3),o.status=T);else{var p=m+(o.w_bits-8<<4)<<8;p|=(o.strategy>=2||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(p|=32),p+=31-p%31,o.status=T,F(o,p),0!==o.strstart&&(F(o,e.adler>>>16),F(o,65535&e.adler)),e.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),U(e),a=o.pending,o.pending!==o.pending_buf_size));)M(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),U(e),a=o.pending,o.pending===o.pending_buf_size)){s=1;break}s=o.gzindexa&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),0===s&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),U(e),a=o.pending,o.pending===o.pending_buf_size)){s=1;break}s=o.gzindexa&&(e.adler=u(e.adler,o.pending_buf,o.pending-a,a)),0===s&&(o.status=I)}else o.status=I;if(o.status===I&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&U(e),o.pending+2<=o.pending_buf_size&&(M(o,255&e.adler),M(o,e.adler>>8&255),e.adler=0,o.status=T)):o.status=T),0!==o.pending){if(U(e),0===e.avail_out)return o.last_flush=-1,f}else if(0===e.avail_in&&L(t)<=L(r)&&t!==l)return D(e,-5);if(o.status===A&&0!==e.avail_in)return D(e,-5);if(0!==e.avail_in||0!==o.lookahead||t!==c&&o.status!==A){var h=2===o.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(z(e),0===e.lookahead)){if(t===c)return P;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(B(e,!1),0===e.strm.avail_out))return P}return e.insert=0,t===l?(B(e,!0),0===e.strm.avail_out?R:j):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?P:C}(o,t):3===o.strategy?function(e,t){for(var r,n,o,a,u=e.window;;){if(e.lookahead<=S){if(z(e),e.lookahead<=S&&t===c)return P;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=E&&e.strstart>0&&(n=u[o=e.strstart-1])===u[++o]&&n===u[++o]&&n===u[++o]){a=e.strstart+S;do{}while(n===u[++o]&&n===u[++o]&&n===u[++o]&&n===u[++o]&&n===u[++o]&&n===u[++o]&&n===u[++o]&&n===u[++o]&&oe.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=E?(r=i._tr_tally(e,1,e.match_length-E),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(B(e,!1),0===e.strm.avail_out))return P}return e.insert=0,t===l?(B(e,!0),0===e.strm.avail_out?R:j):e.last_lit&&(B(e,!1),0===e.strm.avail_out)?P:C}(o,t):n[o.level].func(o,t);if(h!==R&&h!==j||(o.status=A),h===P||h===R)return 0===e.avail_out&&(o.last_flush=-1),f;if(h===C&&(1===t?i._tr_align(o):5!==t&&(i._tr_stored_block(o,0,0,!1),3===t&&(N(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),U(e),0===e.avail_out))return o.last_flush=-1,f}return t!==l?f:o.wrap<=0?1:(2===o.wrap?(M(o,255&e.adler),M(o,e.adler>>8&255),M(o,e.adler>>16&255),M(o,e.adler>>24&255),M(o,255&e.total_in),M(o,e.total_in>>8&255),M(o,e.total_in>>16&255),M(o,e.total_in>>24&255)):(F(o,e.adler>>>16),F(o,65535&e.adler)),U(e),o.wrap>0&&(o.wrap=-o.wrap),0!==o.pending?f:1)},t.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==O&&69!==t&&73!==t&&91!==t&&t!==I&&t!==T&&t!==A?D(e,d):(e.state=null,t===T?D(e,-3):f):d},t.deflateSetDictionary=function(e,t){var r,n,i,u,s,c,l,p,h=t.length;if(!e||!e.state)return d;if(2===(u=(r=e.state).wrap)||1===u&&r.status!==O||r.lookahead)return d;for(1===u&&(e.adler=a(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===u&&(N(r.head),r.strstart=0,r.block_start=0,r.insert=0),p=new o.Buf8(r.w_size),o.arraySet(p,t,h-r.w_size,r.w_size,0),t=p,h=r.w_size),s=e.avail_in,c=e.next_in,l=e.input,e.avail_in=h,e.next_in=0,e.input=t,z(r);r.lookahead>=E;){n=r.strstart,i=r.lookahead-(E-1);do{r.ins_h=(r.ins_h<>>=w=b>>>24,h-=w,0===(w=b>>>16&255))O[i++]=65535&b;else{if(!(16&w)){if(64&w){if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}b=v[(65535&b)+(p&(1<>>=w,h-=w),h<15&&(p+=k[n++]<>>=w=b>>>24,h-=w,16&(w=b>>>16&255)){if(x=65535&b,h<(w&=15)&&(p+=k[n++]<s){e.msg="invalid distance too far back",r.mode=30;break e}if(p>>>=w,h-=w,x>(w=i-a)){if((w=x-w)>l&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(E=0,S=d,0===f){if(E+=c-w,w<_){_-=w;do{O[i++]=d[E++]}while(--w);E=i-x,S=O}}else if(f2;)O[i++]=S[E++],O[i++]=S[E++],O[i++]=S[E++],_-=3;_&&(O[i++]=S[E++],_>1&&(O[i++]=S[E++]))}else{E=i-x;do{O[i++]=O[E++],O[i++]=O[E++],O[i++]=O[E++],_-=3}while(_>2);_&&(O[i++]=O[E++],_>1&&(O[i++]=O[E++]))}break}if(64&w){e.msg="invalid distance code",r.mode=30;break e}b=m[(65535&b)+(p&(1<>3,p&=(1<<(h-=_<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(v),t.distcode=t.distdyn=new n.Buf32(m),t.sane=1,t.back=-1,l):f}function w(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,b(e)):f}function _(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?f:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,w(e))):f}function x(e,t){var r,n;return e?(n=new g,e.state=n,n.window=null,(r=_(e,t))!==l&&(e.state=null),r):f}var E,S,k=!0;function O(e){if(k){var t;for(E=new n.Buf32(512),S=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(u(s,e.lens,0,288,E,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;u(c,e.lens,0,32,S,0,e.work,{bits:5}),k=!1}e.lencode=E,e.lenbits=9,e.distcode=S,e.distbits=5}function I(e,t,r,o){var i,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(n.arraySet(a.window,t,r-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>o&&(i=o),n.arraySet(a.window,t,r-o,i,a.wnext),(o-=i)?(n.arraySet(a.window,t,r-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,r.check=i(r.check,z,2,0),x=0,E=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){e.msg="incorrect header check",r.mode=h;break}if(8!=(15&x)){e.msg="unknown compression method",r.mode=h;break}if(E-=4,U=8+(15&(x>>>=4)),0===r.wbits)r.wbits=U;else if(U>r.wbits){e.msg="invalid window size",r.mode=h;break}r.dmax=1<>8&1),512&r.flags&&(z[0]=255&x,z[1]=x>>>8&255,r.check=i(r.check,z,2,0)),x=0,E=0,r.mode=3;case 3:for(;E<32;){if(0===w)break e;w--,x+=v[g++]<>>8&255,z[2]=x>>>16&255,z[3]=x>>>24&255,r.check=i(r.check,z,4,0)),x=0,E=0,r.mode=4;case 4:for(;E<16;){if(0===w)break e;w--,x+=v[g++]<>8),512&r.flags&&(z[0]=255&x,z[1]=x>>>8&255,r.check=i(r.check,z,2,0)),x=0,E=0,r.mode=5;case 5:if(1024&r.flags){for(;E<16;){if(0===w)break e;w--,x+=v[g++]<>>8&255,r.check=i(r.check,z,2,0)),x=0,E=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((T=r.length)>w&&(T=w),T&&(r.head&&(U=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,v,g,T,U)),512&r.flags&&(r.check=i(r.check,v,T,g)),w-=T,g+=T,r.length-=T),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===w)break e;T=0;do{U=v[g+T++],r.head&&U&&r.length<65536&&(r.head.name+=String.fromCharCode(U))}while(U&&T>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=p;break;case 10:for(;E<32;){if(0===w)break e;w--,x+=v[g++]<>>=7&E,E-=7&E,r.mode=27;break}for(;E<3;){if(0===w)break e;w--,x+=v[g++]<>>=1)){case 0:r.mode=14;break;case 1:if(O(r),r.mode=20,6===t){x>>>=2,E-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=h}x>>>=2,E-=2;break;case 14:for(x>>>=7&E,E-=7&E;E<32;){if(0===w)break e;w--,x+=v[g++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=h;break}if(r.length=65535&x,x=0,E=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(T=r.length){if(T>w&&(T=w),T>_&&(T=_),0===T)break e;n.arraySet(m,v,g,T,b),w-=T,g+=T,_-=T,b+=T,r.length-=T;break}r.mode=p;break;case 17:for(;E<14;){if(0===w)break e;w--,x+=v[g++]<>>=5,E-=5,r.ndist=1+(31&x),x>>>=5,E-=5,r.ncode=4+(15&x),x>>>=4,E-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=h;break}r.have=0,r.mode=18;case 18:for(;r.have>>=3,E-=3}for(;r.have<19;)r.lens[q[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,M={bits:r.lenbits},B=u(0,r.lens,0,19,r.lencode,0,r.work,M),r.lenbits=M.bits,B){e.msg="invalid code lengths set",r.mode=h;break}r.have=0,r.mode=19;case 19:for(;r.have>>16&255,j=65535&H,!((C=H>>>24)<=E);){if(0===w)break e;w--,x+=v[g++]<>>=C,E-=C,r.lens[r.have++]=j;else{if(16===j){for(F=C+2;E>>=C,E-=C,0===r.have){e.msg="invalid bit length repeat",r.mode=h;break}U=r.lens[r.have-1],T=3+(3&x),x>>>=2,E-=2}else if(17===j){for(F=C+3;E>>=C)),x>>>=3,E-=3}else{for(F=C+7;E>>=C)),x>>>=7,E-=7}if(r.have+T>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=h;break}for(;T--;)r.lens[r.have++]=U}}if(r.mode===h)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=h;break}if(r.lenbits=9,M={bits:r.lenbits},B=u(s,r.lens,0,r.nlen,r.lencode,0,r.work,M),r.lenbits=M.bits,B){e.msg="invalid literal/lengths set",r.mode=h;break}if(r.distbits=6,r.distcode=r.distdyn,M={bits:r.distbits},B=u(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,M),r.distbits=M.bits,B){e.msg="invalid distances set",r.mode=h;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(w>=6&&_>=258){e.next_out=b,e.avail_out=_,e.next_in=g,e.avail_in=w,r.hold=x,r.bits=E,a(e,k),b=e.next_out,m=e.output,_=e.avail_out,g=e.next_in,v=e.input,w=e.avail_in,x=r.hold,E=r.bits,r.mode===p&&(r.back=-1);break}for(r.back=0;R=(H=r.lencode[x&(1<>>16&255,j=65535&H,!((C=H>>>24)<=E);){if(0===w)break e;w--,x+=v[g++]<>D)])>>>16&255,j=65535&H,!(D+(C=H>>>24)<=E);){if(0===w)break e;w--,x+=v[g++]<>>=D,E-=D,r.back+=D}if(x>>>=C,E-=C,r.back+=C,r.length=j,0===R){r.mode=26;break}if(32&R){r.back=-1,r.mode=p;break}if(64&R){e.msg="invalid literal/length code",r.mode=h;break}r.extra=15&R,r.mode=22;case 22:if(r.extra){for(F=r.extra;E>>=r.extra,E-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;R=(H=r.distcode[x&(1<>>16&255,j=65535&H,!((C=H>>>24)<=E);){if(0===w)break e;w--,x+=v[g++]<>D)])>>>16&255,j=65535&H,!(D+(C=H>>>24)<=E);){if(0===w)break e;w--,x+=v[g++]<>>=D,E-=D,r.back+=D}if(x>>>=C,E-=C,r.back+=C,64&R){e.msg="invalid distance code",r.mode=h;break}r.offset=j,r.extra=15&R,r.mode=24;case 24:if(r.extra){for(F=r.extra;E>>=r.extra,E-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=h;break}r.mode=25;case 25:if(0===_)break e;if(T=k-_,r.offset>T){if((T=r.offset-T)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=h;break}T>r.wnext?(T-=r.wnext,A=r.wsize-T):A=r.wnext-T,T>r.length&&(T=r.length),P=r.window}else P=m,A=b-r.offset,T=r.length;T>_&&(T=_),_-=T,r.length-=T;do{m[b++]=P[A++]}while(--T);0===r.length&&(r.mode=21);break;case 26:if(0===_)break e;m[b++]=r.length,_--,r.mode=21;break;case 27:if(r.wrap){for(;E<32;){if(0===w)break e;w--,x|=v[g++]<=1&&0===N[I];I--);if(T>I&&(T=I),0===I)return l[f++]=20971520,l[f++]=20971520,p.bits=1,0;for(O=1;O0&&(0===e||1!==I))return-1;for(U[1]=0,S=1;S852||2===e&&R>592)return 1;for(;;){w=S-P,d[k]b?(_=B[M+d[k]],x=D[L+d[k]]):(_=96,x=0),h=1<>P)+(v-=h)]=w<<24|_<<16|x}while(0!==v);for(h=1<>=1;if(0!==h?(j&=h-1,j+=h):j=0,k++,0==--N[S]){if(S===I)break;S=t[r+d[k]]}if(S>T&&(j&y)!==m){for(0===P&&(P=T),g+=O,C=1<<(A=S-P);A+P852||2===e&&R>592)return 1;l[m=j&y]=T<<24|A<<16|g-f}}return 0!==j&&(l[g+j]=S-P<<24|64<<16),p.bits=T,0}},38990:function(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},85805:function(e,t,r){"use strict";var n=r(92937),o=0,i=1;function a(e){for(var t=e.length;--t>=0;)e[t]=0}var u=0,s=29,c=256,l=c+1+s,f=30,d=19,p=2*l+1,h=15,v=16,m=7,y=256,g=16,b=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],x=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(l+2));a(k);var O=new Array(2*f);a(O);var I=new Array(512);a(I);var T=new Array(256);a(T);var A=new Array(s);a(A);var P,C,R,j=new Array(f);function D(e,t,r,n,o){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=o,this.has_stree=e&&e.length}function L(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function N(e){return e<256?I[e]:I[256+(e>>>7)]}function U(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function B(e,t,r){e.bi_valid>v-r?(e.bi_buf|=t<>v-e.bi_valid,e.bi_valid+=r-v):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function H(e,t,r){var n,o,i=new Array(h+1),a=0;for(n=1;n<=h;n++)i[n]=a=a+r[n-1]<<1;for(o=0;o<=t;o++){var u=e[2*o+1];0!==u&&(e[2*o]=F(i[u]++,u))}}function z(e){var t;for(t=0;t8?U(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function G(e,t,r,n){var o=2*t,i=2*r;return e[o]>1;r>=1;r--)W(e,i,r);o=s;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],W(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*o]=i[2*r]+i[2*n],e.depth[o]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=o,e.heap[1]=o++,W(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,o,i,a,u,s=t.dyn_tree,c=t.max_code,l=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,v=t.stat_desc.extra_base,m=t.stat_desc.max_length,y=0;for(i=0;i<=h;i++)e.bl_count[i]=0;for(s[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;rm&&(i=m,y++),s[2*n+1]=i,n>c||(e.bl_count[i]++,a=0,n>=v&&(a=d[n-v]),u=s[2*n],e.opt_len+=u*(i+a),f&&(e.static_len+=u*(l[2*n+1]+a)));if(0!==y){do{for(i=m-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[m]--,y-=2}while(y>0);for(i=m;0!==i;i--)for(n=e.bl_count[i];0!==n;)(o=e.heap[--r])>c||(s[2*o+1]!==i&&(e.opt_len+=(i-s[2*o+1])*s[2*o],s[2*o+1]=i),n--)}}(e,t),H(i,c,e.bl_count)}function Y(e,t,r){var n,o,i=-1,a=t[1],u=0,s=7,c=4;for(0===a&&(s=138,c=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)o=a,a=t[2*(n+1)+1],++u>=7;n0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return i;for(t=32;t=3&&0===e.bl_tree[2*S[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(u=e.static_len+3+7>>>3)<=a&&(a=u)):a=u=r+5,r+4<=a&&-1!==t?Z(e,t,r,n):4===e.strategy||u===a?(B(e,2+(n?1:0),3),V(e,k,O)):(B(e,4+(n?1:0),3),function(e,t,r,n){var o;for(B(e,t-257,5),B(e,r-1,5),B(e,n-4,4),o=0;o>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(T[r]+c+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){B(e,2,3),M(e,y,k),function(e){16===e.bi_valid?(U(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},19222:function(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},70870:function(e,t,r){"use strict";e.exports=r.p+"mgprtcl.wasm"},68120:function(e,t,r){"use strict";var n=r(1483),o=r(18761),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a function")}},52374:function(e,t,r){"use strict";var n=r(70943),o=r(18761),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not a constructor")}},63852:function(e,t,r){"use strict";var n=r(40735),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i("Can't set "+o(e)+" as a prototype")}},37095:function(e,t,r){"use strict";var n=r(70001),o=r(25290),i=r(25835).f,a=n("unscopables"),u=Array.prototype;void 0===u[a]&&i(u,a,{configurable:!0,value:o(null)}),e.exports=function(e){u[a][e]=!0}},64419:function(e,t,r){"use strict";var n=r(69105).charAt;e.exports=function(e,t,r){return t+(r?n(e,t).length:1)}},96021:function(e,t,r){"use strict";var n=r(4815),o=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new o("Incorrect invocation")}},2293:function(e,t,r){"use strict";var n=r(71704),o=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(o(e)+" is not an object")}},31345:function(e){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},99214:function(e,t,r){"use strict";var n=r(28473);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},37534:function(e,t,r){"use strict";var n,o,i,a=r(31345),u=r(20382),s=r(58389),c=r(1483),l=r(71704),f=r(55755),d=r(26145),p=r(18761),h=r(69037),v=r(77914),m=r(83864),y=r(4815),g=r(53181),b=r(51953),w=r(70001),_=r(81866),x=r(64483),E=x.enforce,S=x.get,k=s.Int8Array,O=k&&k.prototype,I=s.Uint8ClampedArray,T=I&&I.prototype,A=k&&g(k),P=O&&g(O),C=Object.prototype,R=s.TypeError,j=w("toStringTag"),D=_("TYPED_ARRAY_TAG"),L="TypedArrayConstructor",N=a&&!!b&&"Opera"!==d(s.opera),U=!1,B={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},M={BigInt64Array:8,BigUint64Array:8},F=function(e){var t=g(e);if(l(t)){var r=S(t);return r&&f(r,L)?r[L]:F(t)}},H=function(e){if(!l(e))return!1;var t=d(e);return f(B,t)||f(M,t)};for(n in B)(i=(o=s[n])&&o.prototype)?E(i)[L]=o:N=!1;for(n in M)(i=(o=s[n])&&o.prototype)&&(E(i)[L]=o);if((!N||!c(A)||A===Function.prototype)&&(A=function(){throw new R("Incorrect invocation")},N))for(n in B)s[n]&&b(s[n],A);if((!N||!P||P===C)&&(P=A.prototype,N))for(n in B)s[n]&&b(s[n].prototype,P);if(N&&g(T)!==P&&b(T,P),u&&!f(P,j))for(n in U=!0,m(P,j,{configurable:!0,get:function(){return l(this)?this[D]:void 0}}),B)s[n]&&h(s[n],D,n);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:N,TYPED_ARRAY_TAG:U&&D,aTypedArray:function(e){if(H(e))return e;throw new R("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||y(A,e)))return e;throw new R(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,r,n){if(u){if(r)for(var o in B){var i=s[o];if(i&&f(i.prototype,e))try{delete i.prototype[e]}catch(r){try{i.prototype[e]=t}catch(e){}}}P[e]&&!r||v(P,e,r?t:N&&O[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,r){var n,o;if(u){if(b){if(r)for(n in B)if((o=s[n])&&f(o,e))try{delete o[e]}catch(e){}if(A[e]&&!r)return;try{return v(A,e,r?t:N&&A[e]||t)}catch(e){}}for(n in B)!(o=s[n])||o[e]&&!r||v(o,e,t)}},getTypedArrayConstructor:F,isView:function(e){if(!l(e))return!1;var t=d(e);return"DataView"===t||f(B,t)||f(M,t)},isTypedArray:H,TypedArray:A,TypedArrayPrototype:P}},79776:function(e,t,r){"use strict";var n=r(58389),o=r(14762),i=r(20382),a=r(31345),u=r(42048),s=r(69037),c=r(83864),l=r(82313),f=r(28473),d=r(96021),p=r(73005),h=r(58324),v=r(25238),m=r(97795),y=r(28752),g=r(53181),b=r(51953),w=r(18287),_=r(61698),x=r(32429),E=r(16726),S=r(52277),k=r(64483),O=u.PROPER,I=u.CONFIGURABLE,T="ArrayBuffer",A="DataView",P="prototype",C="Wrong index",R=k.getterFor(T),j=k.getterFor(A),D=k.set,L=n[T],N=L,U=N&&N[P],B=n[A],M=B&&B[P],F=Object.prototype,H=n.Array,z=n.RangeError,q=o(w),G=o([].reverse),W=y.pack,V=y.unpack,$=function(e){return[255&e]},Y=function(e){return[255&e,e>>8&255]},K=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Z=function(e){return W(m(e),23,4)},X=function(e){return W(e,52,8)},Q=function(e,t,r){c(e[P],t,{configurable:!0,get:function(){return r(this)[t]}})},ee=function(e,t,r,n){var o=j(e),i=v(r),a=!!n;if(i+t>o.byteLength)throw new z(C);var u=o.bytes,s=i+o.byteOffset,c=_(u,s,s+t);return a?c:G(c)},te=function(e,t,r,n,o,i){var a=j(e),u=v(r),s=n(+o),c=!!i;if(u+t>a.byteLength)throw new z(C);for(var l=a.bytes,f=u+a.byteOffset,d=0;d>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else U=(N=function(e){d(this,U);var t=v(e);D(this,{type:T,bytes:q(H(t),0),byteLength:t}),i||(this.byteLength=t,this.detached=!1)})[P],M=(B=function(e,t,r){d(this,M),d(e,U);var n=R(e),o=n.byteLength,a=p(t);if(a<0||a>o)throw new z("Wrong offset");if(a+(r=void 0===r?o-a:h(r))>o)throw new z("Wrong length");D(this,{type:A,buffer:e,byteLength:r,byteOffset:a,bytes:n.bytes}),i||(this.buffer=e,this.byteLength=r,this.byteOffset=a)})[P],i&&(Q(N,"byteLength",R),Q(B,"buffer",j),Q(B,"byteLength",j),Q(B,"byteOffset",j)),l(M,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return V(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return V(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,$,t)},setUint8:function(e,t){te(this,1,e,$,t)},setInt16:function(e,t){te(this,2,e,Y,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,Y,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,K,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,K,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,Z,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,X,t,arguments.length>2&&arguments[2])}});S(N,T),S(B,A),e.exports={ArrayBuffer:N,DataView:B}},13695:function(e,t,r){"use strict";var n=r(22347),o=r(33392),i=r(66960),a=r(16060),u=Math.min;e.exports=[].copyWithin||function(e,t){var r=n(this),s=i(r),c=o(e,s),l=o(t,s),f=arguments.length>2?arguments[2]:void 0,d=u((void 0===f?s:o(f,s))-l,s-c),p=1;for(l0;)l in r?r[c]=r[l]:a(r,c),c+=p,l+=p;return r}},18287:function(e,t,r){"use strict";var n=r(22347),o=r(33392),i=r(66960);e.exports=function(e){for(var t=n(this),r=i(t),a=arguments.length,u=o(a>1?arguments[1]:void 0,r),s=a>2?arguments[2]:void 0,c=void 0===s?r:o(s,r);c>u;)t[u++]=e;return t}},94793:function(e,t,r){"use strict";var n=r(12867).forEach,o=r(13152)("forEach");e.exports=o?[].forEach:function(e){return n(this,e,arguments.length>1?arguments[1]:void 0)}},78592:function(e,t,r){"use strict";var n=r(66960);e.exports=function(e,t,r){for(var o=0,i=arguments.length>2?r:n(t),a=new e(i);i>o;)a[o]=t[o++];return a}},66142:function(e,t,r){"use strict";var n=r(32914),o=r(21807),i=r(22347),a=r(48901),u=r(95299),s=r(70943),c=r(66960),l=r(30670),f=r(14887),d=r(26665),p=Array;e.exports=function(e){var t=i(e),r=s(this),h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v;m&&(v=n(v,h>2?arguments[2]:void 0));var y,g,b,w,_,x,E=d(t),S=0;if(!E||this===p&&u(E))for(y=c(t),g=r?new this(y):p(y);y>S;S++)x=m?v(t[S],S):t[S],l(g,S,x);else for(_=(w=f(t,E)).next,g=r?new this:[];!(b=o(_,w)).done;S++)x=m?a(w,v,[b.value,S],!0):b.value,l(g,S,x);return g.length=S,g}},86651:function(e,t,r){"use strict";var n=r(35599),o=r(33392),i=r(66960),a=function(e){return function(t,r,a){var u=n(t),s=i(u);if(0===s)return!e&&-1;var c,l=o(a,s);if(e&&r!=r){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},12867:function(e,t,r){"use strict";var n=r(32914),o=r(14762),i=r(32121),a=r(22347),u=r(66960),s=r(64551),c=o([].push),l=function(e){var t=1===e,r=2===e,o=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,m,y){for(var g,b,w=a(h),_=i(w),x=u(_),E=n(v,m),S=0,k=y||s,O=t?k(h,x):r||d?k(h,0):void 0;x>S;S++)if((p||S in _)&&(b=E(g=_[S],S,w),e))if(t)O[S]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:c(O,g)}else switch(e){case 4:return!1;case 7:c(O,g)}return f?-1:o||l?l:O}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},58901:function(e,t,r){"use strict";var n=r(73067),o=r(35599),i=r(73005),a=r(66960),u=r(13152),s=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=u("lastIndexOf"),d=l||!f;e.exports=d?function(e){if(l)return n(c,this,arguments)||0;var t=o(this),r=a(t);if(0===r)return-1;var u=r-1;for(arguments.length>1&&(u=s(u,i(arguments[1]))),u<0&&(u=r+u);u>=0;u--)if(u in t&&t[u]===e)return u||0;return-1}:c},24595:function(e,t,r){"use strict";var n=r(28473),o=r(70001),i=r(76170),a=o("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},13152:function(e,t,r){"use strict";var n=r(28473);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},78228:function(e,t,r){"use strict";var n=r(68120),o=r(22347),i=r(32121),a=r(66960),u=TypeError,s="Reduce of empty array with no initial value",c=function(e){return function(t,r,c,l){var f=o(t),d=i(f),p=a(f);if(n(r),0===p&&c<2)throw new u(s);var h=e?p-1:0,v=e?-1:1;if(c<2)for(;;){if(h in d){l=d[h],h+=v;break}if(h+=v,e?h<0:p<=h)throw new u(s)}for(;e?h>=0:p>h;h+=v)h in d&&(l=r(l,d[h],h,f));return l}};e.exports={left:c(!1),right:c(!0)}},39273:function(e,t,r){"use strict";var n=r(20382),o=r(14914),i=TypeError,a=Object.getOwnPropertyDescriptor,u=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=u?function(e,t){if(o(e)&&!a(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},61698:function(e,t,r){"use strict";var n=r(14762);e.exports=n([].slice)},67354:function(e,t,r){"use strict";var n=r(61698),o=Math.floor,i=function(e,t){var r=e.length;if(r<8)for(var a,u,s=1;s0;)e[u]=e[--u];u!==s++&&(e[u]=a)}else for(var c=o(r/2),l=i(n(e,0,c),t),f=i(n(e,c),t),d=l.length,p=f.length,h=0,v=0;h1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),i(d,r?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return g(this,0===e?0:e,t)}}:{add:function(e){return g(this,e=0===e?0:e,e)}}),p&&o(d,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(e,t,r){var n=t+" Iterator",o=y(t),i=y(n);l(e,t,(function(e,t){m(this,{type:n,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?f("keys"===t?r.key:"values"===t?r.value:[r.key,r.value],!1):(e.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),d(t)}}},17446:function(e,t,r){"use strict";var n=r(28612),o=r(58389),i=r(14762),a=r(98730),u=r(77914),s=r(48041),c=r(11506),l=r(96021),f=r(1483),d=r(15983),p=r(71704),h=r(28473),v=r(81554),m=r(52277),y=r(32429);e.exports=function(e,t,r){var g=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),w=g?"set":"add",_=o[e],x=_&&_.prototype,E=_,S={},k=function(e){var t=i(x[e]);u(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,r){return t(this,0===e?0:e,r),this})};if(a(e,!f(_)||!(b||x.forEach&&!h((function(){(new _).entries().next()})))))E=r.getConstructor(t,e,g,w),s.enable();else if(a(e,!0)){var O=new E,I=O[w](b?{}:-0,1)!==O,T=h((function(){O.has(1)})),A=v((function(e){new _(e)})),P=!b&&h((function(){for(var e=new _,t=5;t--;)e[w](t,t);return!e.has(-0)}));A||((E=t((function(e,t){l(e,x);var r=y(new _,e,E);return d(t)||c(t,r[w],{that:r,AS_ENTRIES:g}),r}))).prototype=x,x.constructor=E),(T||P)&&(k("delete"),k("has"),g&&k("get")),(P||I)&&k(w),b&&x.clear&&delete x.clear}return S[e]=E,n({global:!0,constructor:!0,forced:E!==_},S),m(E,e),b||r.setStrong(E,e,g),E}},16726:function(e,t,r){"use strict";var n=r(55755),o=r(89497),i=r(4961),a=r(25835);e.exports=function(e,t,r){for(var u=o(t),s=a.f,c=i.f,l=0;l"+s+""}},75247:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},69037:function(e,t,r){"use strict";var n=r(20382),o=r(25835),i=r(57738);e.exports=n?function(e,t,r){return o.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},57738:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},30670:function(e,t,r){"use strict";var n=r(20382),o=r(25835),i=r(57738);e.exports=function(e,t,r){n?o.f(e,t,i(0,r)):e[t]=r}},81006:function(e,t,r){"use strict";var n=r(14762),o=r(28473),i=r(66731).start,a=RangeError,u=isFinite,s=Math.abs,c=Date.prototype,l=c.toISOString,f=n(c.getTime),d=n(c.getUTCDate),p=n(c.getUTCFullYear),h=n(c.getUTCHours),v=n(c.getUTCMilliseconds),m=n(c.getUTCMinutes),y=n(c.getUTCMonth),g=n(c.getUTCSeconds);e.exports=o((function(){return"0385-07-25T07:06:39.999Z"!==l.call(new Date(-50000000000001))}))||!o((function(){l.call(new Date(NaN))}))?function(){if(!u(f(this)))throw new a("Invalid time value");var e=this,t=p(e),r=v(e),n=t<0?"-":t>9999?"+":"";return n+i(s(t),n?6:4,0)+"-"+i(y(e)+1,2,0)+"-"+i(d(e),2,0)+"T"+i(h(e),2,0)+":"+i(m(e),2,0)+":"+i(g(e),2,0)+"."+i(r,3,0)+"Z"}:l},46446:function(e,t,r){"use strict";var n=r(2293),o=r(348),i=TypeError;e.exports=function(e){if(n(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new i("Incorrect hint");return o(this,e)}},83864:function(e,t,r){"use strict";var n=r(90169),o=r(25835);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),o.f(e,t,r)}},77914:function(e,t,r){"use strict";var n=r(1483),o=r(25835),i=r(90169),a=r(82095);e.exports=function(e,t,r,u){u||(u={});var s=u.enumerable,c=void 0!==u.name?u.name:t;if(n(r)&&i(r,c,u),u.global)s?e[t]=r:a(t,r);else{try{u.unsafe?e[t]&&(s=!0):delete e[t]}catch(e){}s?e[t]=r:o.f(e,t,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return e}},82313:function(e,t,r){"use strict";var n=r(77914);e.exports=function(e,t,r){for(var o in t)n(e,o,t[o],r);return e}},82095:function(e,t,r){"use strict";var n=r(58389),o=Object.defineProperty;e.exports=function(e,t){try{o(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},16060:function(e,t,r){"use strict";var n=r(18761),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw new o("Cannot delete property "+n(t)+" of "+n(e))}},20382:function(e,t,r){"use strict";var n=r(28473);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},3145:function(e,t,r){"use strict";var n=r(58389),o=r(71704),i=n.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},31091:function(e){"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},24842:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},51902:function(e,t,r){"use strict";var n=r(3145)("span").classList,o=n&&n.constructor&&n.constructor.prototype;e.exports=o===Object.prototype?void 0:o},87332:function(e,t,r){"use strict";var n=r(89966).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},96956:function(e,t,r){"use strict";var n=r(938),o=r(4334);e.exports=!n&&!o&&"object"==typeof window&&"object"==typeof document},35413:function(e){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},938:function(e){"use strict";e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},68996:function(e,t,r){"use strict";var n=r(89966);e.exports=/MSIE|Trident/.test(n)},34466:function(e,t,r){"use strict";var n=r(89966);e.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},28417:function(e,t,r){"use strict";var n=r(89966);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},4334:function(e,t,r){"use strict";var n=r(58389),o=r(91278);e.exports="process"===o(n.process)},16639:function(e,t,r){"use strict";var n=r(89966);e.exports=/web0s(?!.*chrome)/i.test(n)},89966:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},76170:function(e,t,r){"use strict";var n,o,i=r(58389),a=r(89966),u=i.process,s=i.Deno,c=u&&u.versions||s&&s.version,l=c&&c.v8;l&&(o=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),e.exports=o},95158:function(e,t,r){"use strict";var n=r(89966).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},44741:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},28612:function(e,t,r){"use strict";var n=r(58389),o=r(4961).f,i=r(69037),a=r(77914),u=r(82095),s=r(16726),c=r(98730);e.exports=function(e,t){var r,l,f,d,p,h=e.target,v=e.global,m=e.stat;if(r=v?n:m?n[h]||u(h,{}):n[h]&&n[h].prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(p=o(r,l))&&p.value:r[l],!c(v?l:h+(m?".":"#")+l,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;s(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(r,l,d,e)}}},28473:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},43358:function(e,t,r){"use strict";r(95021);var n=r(21807),o=r(77914),i=r(8865),a=r(28473),u=r(70001),s=r(69037),c=u("species"),l=RegExp.prototype;e.exports=function(e,t,r,f){var d=u(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return t=!0,null},r[d](""),!t}));if(!p||!h||r){var v=/./[d],m=t(d,""[e],(function(e,t,r,o,a){var u=t.exec;return u===i||u===l.exec?p&&!a?{done:!0,value:n(v,t,r,o)}:{done:!0,value:n(e,r,t,o)}:{done:!1}}));o(String.prototype,e,m[0]),o(l,d,m[1])}f&&s(l[d],"sham",!0)}},86530:function(e,t,r){"use strict";var n=r(28473);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},73067:function(e,t,r){"use strict";var n=r(274),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})},32914:function(e,t,r){"use strict";var n=r(23786),o=r(68120),i=r(274),a=n(n.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},274:function(e,t,r){"use strict";var n=r(28473);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},2164:function(e,t,r){"use strict";var n=r(14762),o=r(68120),i=r(71704),a=r(55755),u=r(61698),s=r(274),c=Function,l=n([].concat),f=n([].join),d={};e.exports=s?c.bind:function(e){var t=o(this),r=t.prototype,n=u(arguments,1),s=function(){var r=l(n,u(arguments));return this instanceof s?function(e,t,r){if(!a(d,t)){for(var n=[],o=0;o]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,r,n,f,d){var p=r+e.length,h=n.length,v=l;return void 0!==f&&(f=o(f),v=c),u(d,v,(function(o,u){var c;switch(a(u,0)){case"$":return"$";case"&":return e;case"`":return s(t,0,r);case"'":return s(t,p);case"<":c=f[s(u,1,-1)];break;default:var l=+u;if(0===l)return o;if(l>h){var d=i(l/10);return 0===d?o:d<=h?void 0===n[d-1]?a(u,1):n[d-1]+a(u,1):o}c=n[l-1]}return void 0===c?"":c}))}},58389:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},55755:function(e,t,r){"use strict";var n=r(14762),o=r(22347),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},11507:function(e){"use strict";e.exports={}},51339:function(e){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},42811:function(e,t,r){"use strict";var n=r(11409);e.exports=n("document","documentElement")},1799:function(e,t,r){"use strict";var n=r(20382),o=r(28473),i=r(3145);e.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},28752:function(e){"use strict";var t=Array,r=Math.abs,n=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,u,s){var c,l,f,d=t(s),p=8*s-u-1,h=(1<>1,m=23===u?n(2,-24)-n(2,-77):0,y=e<0||0===e&&1/e<0?1:0,g=0;for((e=r(e))!=e||e===1/0?(l=e!=e?1:0,c=h):(c=o(i(e)/a),e*(f=n(2,-c))<1&&(c--,f*=2),(e+=c+v>=1?m/f:m*n(2,1-v))*f>=2&&(c++,f/=2),c+v>=h?(l=0,c=h):c+v>=1?(l=(e*f-1)*n(2,u),c+=v):(l=e*n(2,v-1)*n(2,u),c=0));u>=8;)d[g++]=255&l,l/=256,u-=8;for(c=c<0;)d[g++]=255&c,c/=256,p-=8;return d[--g]|=128*y,d},unpack:function(e,t){var r,o=e.length,i=8*o-t-1,a=(1<>1,s=i-7,c=o-1,l=e[c--],f=127&l;for(l>>=7;s>0;)f=256*f+e[c--],s-=8;for(r=f&(1<<-s)-1,f>>=-s,s+=t;s>0;)r=256*r+e[c--],s-=8;if(0===f)f=1-u;else{if(f===a)return r?NaN:l?-1/0:1/0;r+=n(2,t),f-=u}return(l?-1:1)*r*n(2,f-t)}}},32121:function(e,t,r){"use strict";var n=r(14762),o=r(28473),i=r(91278),a=Object,u=n("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?u(e,""):a(e)}:a},32429:function(e,t,r){"use strict";var n=r(1483),o=r(71704),i=r(51953);e.exports=function(e,t,r){var a,u;return i&&n(a=t.constructor)&&a!==r&&o(u=a.prototype)&&u!==r.prototype&&i(e,u),e}},17268:function(e,t,r){"use strict";var n=r(14762),o=r(1483),i=r(91831),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},48041:function(e,t,r){"use strict";var n=r(28612),o=r(14762),i=r(11507),a=r(71704),u=r(55755),s=r(25835).f,c=r(12278),l=r(52020),f=r(40706),d=r(81866),p=r(86530),h=!1,v=d("meta"),m=0,y=function(e){s(e,v,{value:{objectID:"O"+m++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},h=!0;var e=c.f,t=o([].splice),r={};r[v]=1,e(r).length&&(c.f=function(r){for(var n=e(r),o=0,i=n.length;og;g++)if((w=P(e[g]))&&c(v,w))return w;return new h(!1)}m=l(e,y)}for(_=k?e.next:m.next;!(x=o(_,m)).done;){try{w=P(x.value)}catch(e){d(m,"throw",e)}if("object"==typeof w&&w&&c(v,w))return w}return new h(!1)}},46721:function(e,t,r){"use strict";var n=r(21807),o=r(2293),i=r(92564);e.exports=function(e,t,r){var a,u;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){u=!0,a=e}if("throw"===t)throw r;if(u)throw a;return o(a),r}},31040:function(e,t,r){"use strict";var n=r(21851).IteratorPrototype,o=r(25290),i=r(57738),a=r(52277),u=r(86775),s=function(){return this};e.exports=function(e,t,r,c){var l=t+" Iterator";return e.prototype=o(n,{next:i(+!c,r)}),a(e,l,!1,!0),u[l]=s,e}},95662:function(e,t,r){"use strict";var n=r(28612),o=r(21807),i=r(19557),a=r(42048),u=r(1483),s=r(31040),c=r(53181),l=r(51953),f=r(52277),d=r(69037),p=r(77914),h=r(70001),v=r(86775),m=r(21851),y=a.PROPER,g=a.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,_=h("iterator"),x="keys",E="values",S="entries",k=function(){return this};e.exports=function(e,t,r,a,h,m,O){s(r,t,a);var I,T,A,P=function(e){if(e===h&&L)return L;if(!w&&e&&e in j)return j[e];switch(e){case x:case E:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",R=!1,j=e.prototype,D=j[_]||j["@@iterator"]||h&&j[h],L=!w&&D||P(h),N="Array"===t&&j.entries||D;if(N&&(I=c(N.call(new e)))!==Object.prototype&&I.next&&(i||c(I)===b||(l?l(I,b):u(I[_])||p(I,_,k)),f(I,C,!0,!0),i&&(v[C]=k)),y&&h===E&&D&&D.name!==E&&(!i&&g?d(j,"name",E):(R=!0,L=function(){return o(D,this)})),h)if(T={values:P(E),keys:m?L:P(x),entries:P(S)},O)for(A in T)(w||R||!(A in j))&&p(j,A,T[A]);else n({target:t,proto:!0,forced:w||R},T);return i&&!O||j[_]===L||p(j,_,L,{name:h}),v[t]=L,T}},21851:function(e,t,r){"use strict";var n,o,i,a=r(28473),u=r(1483),s=r(71704),c=r(25290),l=r(53181),f=r(77914),d=r(70001),p=r(19557),h=d("iterator"),v=!1;[].keys&&("next"in(i=[].keys())?(o=l(l(i)))!==Object.prototype&&(n=o):v=!0),!s(n)||a((function(){var e={};return n[h].call(e)!==e}))?n={}:p&&(n=c(n)),u(n[h])||f(n,h,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},86775:function(e){"use strict";e.exports={}},66960:function(e,t,r){"use strict";var n=r(58324);e.exports=function(e){return n(e.length)}},90169:function(e,t,r){"use strict";var n=r(14762),o=r(28473),i=r(1483),a=r(55755),u=r(20382),s=r(42048).CONFIGURABLE,c=r(17268),l=r(64483),f=l.enforce,d=l.get,p=String,h=Object.defineProperty,v=n("".slice),m=n("".replace),y=n([].join),g=u&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===v(p(t),0,7)&&(t="["+m(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(u?h(e,"name",{value:t,configurable:!0}):e.name=t),g&&r&&a(r,"arity")&&e.length!==r.arity&&h(e,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=f(e);return a(n,"source")||(n.source=y(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return i(this)&&d(this).source||c(this)}),"toString")},45294:function(e,t,r){"use strict";var n=r(92452),o=Math.abs,i=2220446049250313e-31,a=1/i;e.exports=function(e,t,r,u){var s=+e,c=o(s),l=n(s);if(cr||d!=d?l*(1/0):l*d}},97795:function(e,t,r){"use strict";var n=r(45294);e.exports=Math.fround||function(e){return n(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},92452:function(e){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},61703:function(e){"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},40553:function(e,t,r){"use strict";var n,o,i,a,u,s=r(58389),c=r(88123),l=r(32914),f=r(17007).set,d=r(95459),p=r(28417),h=r(34466),v=r(16639),m=r(4334),y=s.MutationObserver||s.WebKitMutationObserver,g=s.document,b=s.process,w=s.Promise,_=c("queueMicrotask");if(!_){var x=new d,E=function(){var e,t;for(m&&(e=b.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&n(),e}e&&e.enter()};p||m||v||!y||!g?!h&&w&&w.resolve?((a=w.resolve(void 0)).constructor=w,u=l(a.then,a),n=function(){u(E)}):m?n=function(){b.nextTick(E)}:(f=l(f,s),n=function(){f(E)}):(o=!0,i=g.createTextNode(""),new y(E).observe(i,{characterData:!0}),n=function(){i.data=o=!o}),_=function(e){x.head||n(),x.add(e)}}e.exports=_},21173:function(e,t,r){"use strict";var n=r(68120),o=TypeError,i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new o("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},4989:function(e,t,r){"use strict";var n=r(84786),o=TypeError;e.exports=function(e){if(n(e))throw new o("The method doesn't accept regular expressions");return e}},5574:function(e,t,r){"use strict";var n=r(58389).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&n(e)}},20101:function(e,t,r){"use strict";var n=r(58389),o=r(28473),i=r(14762),a=r(26261),u=r(14544).trim,s=r(35870),c=n.parseInt,l=n.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,p=i(d.exec),h=8!==c(s+"08")||22!==c(s+"0x16")||f&&!o((function(){c(Object(f))}));e.exports=h?function(e,t){var r=u(a(e));return c(r,t>>>0||(p(d,r)?16:10))}:c},1439:function(e,t,r){"use strict";var n=r(20382),o=r(14762),i=r(21807),a=r(28473),u=r(33658),s=r(74347),c=r(37611),l=r(22347),f=r(32121),d=Object.assign,p=Object.defineProperty,h=o([].concat);e.exports=!d||a((function(){if(n&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach((function(e){t[e]=e})),7!==d({},e)[r]||u(d({},t)).join("")!==o}))?function(e,t){for(var r=l(e),o=arguments.length,a=1,d=s.f,p=c.f;o>a;)for(var v,m=f(arguments[a++]),y=d?h(u(m),d(m)):u(m),g=y.length,b=0;g>b;)v=y[b++],n&&!i(p,m,v)||(r[v]=m[v]);return r}:d},25290:function(e,t,r){"use strict";var n,o=r(2293),i=r(95799),a=r(44741),u=r(11507),s=r(42811),c=r(3145),l=r(65409),f="prototype",d="script",p=l("IE_PROTO"),h=function(){},v=function(e){return"<"+d+">"+e+""},m=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?m(n):(t=c("iframe"),r="java"+d+":",t.style.display="none",s.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(v("document.F=Object")),e.close(),e.F):m(n);for(var o=a.length;o--;)delete y[f][a[o]];return y()};u[p]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h[f]=o(e),r=new h,h[f]=null,r[p]=e):r=y(),void 0===t?r:i.f(r,t)}},95799:function(e,t,r){"use strict";var n=r(20382),o=r(3896),i=r(25835),a=r(2293),u=r(35599),s=r(33658);t.f=n&&!o?Object.defineProperties:function(e,t){a(e);for(var r,n=u(t),o=s(t),c=o.length,l=0;c>l;)i.f(e,r=o[l++],n[r]);return e}},25835:function(e,t,r){"use strict";var n=r(20382),o=r(1799),i=r(3896),a=r(2293),u=r(83815),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";t.f=n?i?function(e,t,r){if(a(e),t=u(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&p in r&&!r[p]){var n=l(e,t);n&&n[p]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:f in r?r[f]:n[f],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=u(t),a(r),o)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new s("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},4961:function(e,t,r){"use strict";var n=r(20382),o=r(21807),i=r(37611),a=r(57738),u=r(35599),s=r(83815),c=r(55755),l=r(1799),f=Object.getOwnPropertyDescriptor;t.f=n?f:function(e,t){if(e=u(e),t=s(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return a(!o(i.f,e,t),e[t])}},52020:function(e,t,r){"use strict";var n=r(91278),o=r(35599),i=r(12278).f,a=r(61698),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return u&&"Window"===n(e)?function(e){try{return i(e)}catch(e){return a(u)}}(e):i(o(e))}},12278:function(e,t,r){"use strict";var n=r(56742),o=r(44741).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,o)}},74347:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},53181:function(e,t,r){"use strict";var n=r(55755),o=r(1483),i=r(22347),a=r(65409),u=r(19441),s=a("IE_PROTO"),c=Object,l=c.prototype;e.exports=u?c.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof c?l:null}},40706:function(e,t,r){"use strict";var n=r(28473),o=r(71704),i=r(91278),a=r(99214),u=Object.isExtensible,s=n((function(){u(1)}));e.exports=s||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!==i(e))&&(!u||u(e)))}:u},4815:function(e,t,r){"use strict";var n=r(14762);e.exports=n({}.isPrototypeOf)},56742:function(e,t,r){"use strict";var n=r(14762),o=r(55755),i=r(35599),a=r(86651).indexOf,u=r(11507),s=n([].push);e.exports=function(e,t){var r,n=i(e),c=0,l=[];for(r in n)!o(u,r)&&o(n,r)&&s(l,r);for(;t.length>c;)o(n,r=t[c++])&&(~a(l,r)||s(l,r));return l}},33658:function(e,t,r){"use strict";var n=r(56742),o=r(44741);e.exports=Object.keys||function(e){return n(e,o)}},37611:function(e,t){"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);t.f=o?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},51953:function(e,t,r){"use strict";var n=r(680),o=r(2293),i=r(63852);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},45627:function(e,t,r){"use strict";var n=r(20382),o=r(28473),i=r(14762),a=r(53181),u=r(33658),s=r(35599),c=i(r(37611).f),l=i([].push),f=n&&o((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),d=function(e){return function(t){for(var r,o=s(t),i=u(o),d=f&&null===a(o),p=i.length,h=0,v=[];p>h;)r=i[h++],n&&!(d?r in o:c(o,r))||l(v,e?[r,o[r]]:o[r]);return v}};e.exports={entries:d(!0),values:d(!1)}},15685:function(e,t,r){"use strict";var n=r(34338),o=r(26145);e.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},348:function(e,t,r){"use strict";var n=r(21807),o=r(1483),i=r(71704),a=TypeError;e.exports=function(e,t){var r,u;if("string"===t&&o(r=e.toString)&&!i(u=n(r,e)))return u;if(o(r=e.valueOf)&&!i(u=n(r,e)))return u;if("string"!==t&&o(r=e.toString)&&!i(u=n(r,e)))return u;throw new a("Can't convert object to primitive value")}},89497:function(e,t,r){"use strict";var n=r(11409),o=r(14762),i=r(12278),a=r(74347),u=r(2293),s=o([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(u(e)),r=a.f;return r?s(t,r(e)):t}},26589:function(e,t,r){"use strict";var n=r(58389);e.exports=n},84193:function(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},35502:function(e,t,r){"use strict";var n=r(58389),o=r(92832),i=r(1483),a=r(98730),u=r(17268),s=r(70001),c=r(96956),l=r(938),f=r(19557),d=r(76170),p=o&&o.prototype,h=s("species"),v=!1,m=i(n.PromiseRejectionEvent),y=a("Promise",(function(){var e=u(o),t=e!==String(o);if(!t&&66===d)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var r=new o((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[h]=n,!(v=r.then((function(){}))instanceof n))return!0}return!t&&(c||l)&&!m}));e.exports={CONSTRUCTOR:y,REJECTION_EVENT:m,SUBCLASSING:v}},92832:function(e,t,r){"use strict";var n=r(58389);e.exports=n.Promise},2172:function(e,t,r){"use strict";var n=r(2293),o=r(71704),i=r(21173);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},21407:function(e,t,r){"use strict";var n=r(92832),o=r(81554),i=r(35502).CONSTRUCTOR;e.exports=i||!o((function(e){n.all(e).then(void 0,(function(){}))}))},7150:function(e,t,r){"use strict";var n=r(25835).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},95459:function(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},r=this.tail;r?r.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},42428:function(e,t,r){"use strict";var n=r(21807),o=r(2293),i=r(1483),a=r(91278),u=r(8865),s=TypeError;e.exports=function(e,t){var r=e.exec;if(i(r)){var c=n(r,e,t);return null!==c&&o(c),c}if("RegExp"===a(e))return n(u,e,t);throw new s("RegExp#exec called on incompatible receiver")}},8865:function(e,t,r){"use strict";var n,o,i=r(21807),a=r(14762),u=r(26261),s=r(36653),c=r(37435),l=r(47255),f=r(25290),d=r(64483).get,p=r(43933),h=r(64528),v=l("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,y=m,g=a("".charAt),b=a("".indexOf),w=a("".replace),_=a("".slice),x=(o=/b*/g,i(m,n=/a/,"a"),i(m,o,"a"),0!==n.lastIndex||0!==o.lastIndex),E=c.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(x||S||E||p||h)&&(y=function(e){var t,r,n,o,a,c,l,p=this,h=d(p),k=u(e),O=h.raw;if(O)return O.lastIndex=p.lastIndex,t=i(y,O,k),p.lastIndex=O.lastIndex,t;var I=h.groups,T=E&&p.sticky,A=i(s,p),P=p.source,C=0,R=k;if(T&&(A=w(A,"y",""),-1===b(A,"g")&&(A+="g"),R=_(k,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==g(k,p.lastIndex-1))&&(P="(?: "+P+")",R=" "+R,C++),r=new RegExp("^(?:"+P+")",A)),S&&(r=new RegExp("^"+P+"$(?!\\s)",A)),x&&(n=p.lastIndex),o=i(m,T?r:p,R),T?o?(o.input=_(o.input,C),o[0]=_(o[0],C),o.index=p.lastIndex,p.lastIndex+=o[0].length):p.lastIndex=0:x&&o&&(p.lastIndex=p.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(v,o[0],r,(function(){for(a=1;ab)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},53312:function(e,t,r){"use strict";var n=r(15983),o=TypeError;e.exports=function(e){if(n(e))throw new o("Can't call method on "+e);return e}},88123:function(e,t,r){"use strict";var n=r(58389),o=r(20382),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!o)return n[e];var t=i(n,e);return t&&t.value}},75420:function(e){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},39570:function(e,t,r){"use strict";var n,o=r(58389),i=r(73067),a=r(1483),u=r(35413),s=r(89966),c=r(61698),l=r(4066),f=o.Function,d=/MSIE .\./.test(s)||u&&((n=o.Bun.version.split(".")).length<3||"0"===n[0]&&(n[1]<3||"3"===n[1]&&"0"===n[2]));e.exports=function(e,t){var r=t?2:1;return d?function(n,o){var u=l(arguments.length,1)>r,s=a(n)?n:f(n),d=u?c(arguments,r):[],p=u?function(){i(s,this,d)}:s;return t?e(p,o):e(p)}:e}},47859:function(e,t,r){"use strict";var n=r(11409),o=r(83864),i=r(70001),a=r(20382),u=i("species");e.exports=function(e){var t=n(e);a&&t&&!t[u]&&o(t,u,{configurable:!0,get:function(){return this}})}},52277:function(e,t,r){"use strict";var n=r(25835).f,o=r(55755),i=r(70001)("toStringTag");e.exports=function(e,t,r){e&&!r&&(e=e.prototype),e&&!o(e,i)&&n(e,i,{configurable:!0,value:t})}},65409:function(e,t,r){"use strict";var n=r(47255),o=r(81866),i=n("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},91831:function(e,t,r){"use strict";var n=r(19557),o=r(58389),i=r(82095),a="__core-js_shared__",u=e.exports=o[a]||i(a,{});(u.versions||(u.versions=[])).push({version:"3.36.0",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE",source:"https://github.com/zloirock/core-js"})},47255:function(e,t,r){"use strict";var n=r(91831);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},483:function(e,t,r){"use strict";var n=r(2293),o=r(52374),i=r(15983),a=r(70001)("species");e.exports=function(e,t){var r,u=n(e).constructor;return void 0===u||i(r=n(u)[a])?t:o(r)}},36547:function(e,t,r){"use strict";var n=r(28473);e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},69105:function(e,t,r){"use strict";var n=r(14762),o=r(73005),i=r(26261),a=r(53312),u=n("".charAt),s=n("".charCodeAt),c=n("".slice),l=function(e){return function(t,r){var n,l,f=i(a(t)),d=o(r),p=f.length;return d<0||d>=p?e?"":void 0:(n=s(f,d))<55296||n>56319||d+1===p||(l=s(f,d+1))<56320||l>57343?e?u(f,d):n:e?c(f,d,d+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},75669:function(e,t,r){"use strict";var n=r(89966);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},66731:function(e,t,r){"use strict";var n=r(14762),o=r(58324),i=r(26261),a=r(98067),u=r(53312),s=n(a),c=n("".slice),l=Math.ceil,f=function(e){return function(t,r,n){var a,f,d=i(u(t)),p=o(r),h=d.length,v=void 0===n?" ":i(n);return p<=h||""===v?d:((f=s(v,l((a=p-h)/v.length))).length>a&&(f=c(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},14939:function(e,t,r){"use strict";var n=r(14762),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,u="Overflow: input needs wider integers to process",s=RangeError,c=n(a.exec),l=Math.floor,f=String.fromCharCode,d=n("".charCodeAt),p=n([].join),h=n([].push),v=n("".replace),m=n("".split),y=n("".toLowerCase),g=function(e){return e+22+75*(e<26)},b=function(e,t,r){var n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),n+=36;return l(n+36*e/(e+38))},w=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r=55296&&o<=56319&&r=a&&nl((o-c)/_))throw new s(u);for(c+=(w-a)*_,a=w,r=0;ro)throw new s(u);if(n===a){for(var x=c,E=36;;){var S=E<=v?1:E>=v+26?26:E-v;if(x0;(u>>>=1)&&(t+=t))1&u&&(r+=t);return r}},93172:function(e,t,r){"use strict";var n=r(42048).PROPER,o=r(28473),i=r(35870);e.exports=function(e){return o((function(){return!!i[e]()||"​…᠎"!=="​…᠎"[e]()||n&&i[e].name!==e}))}},14544:function(e,t,r){"use strict";var n=r(14762),o=r(53312),i=r(26261),a=r(35870),u=n("".replace),s=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(e){return function(t){var r=i(o(t));return 1&e&&(r=u(r,s,"")),2&e&&(r=u(r,c,"$1")),r}};e.exports={start:l(1),end:l(2),trim:l(3)}},86029:function(e,t,r){"use strict";var n=r(76170),o=r(28473),i=r(58389).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},18192:function(e,t,r){"use strict";var n=r(21807),o=r(11409),i=r(70001),a=r(77914);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,u=i("toPrimitive");t&&!t[u]&&a(t,u,(function(e){return n(r,this)}),{arity:1})}},63218:function(e,t,r){"use strict";var n=r(86029);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},17007:function(e,t,r){"use strict";var n,o,i,a,u=r(58389),s=r(73067),c=r(32914),l=r(1483),f=r(55755),d=r(28473),p=r(42811),h=r(61698),v=r(3145),m=r(4066),y=r(28417),g=r(4334),b=u.setImmediate,w=u.clearImmediate,_=u.process,x=u.Dispatch,E=u.Function,S=u.MessageChannel,k=u.String,O=0,I={},T="onreadystatechange";d((function(){n=u.location}));var A=function(e){if(f(I,e)){var t=I[e];delete I[e],t()}},P=function(e){return function(){A(e)}},C=function(e){A(e.data)},R=function(e){u.postMessage(k(e),n.protocol+"//"+n.host)};b&&w||(b=function(e){m(arguments.length,1);var t=l(e)?e:E(e),r=h(arguments,1);return I[++O]=function(){s(t,void 0,r)},o(O),O},w=function(e){delete I[e]},g?o=function(e){_.nextTick(P(e))}:x&&x.now?o=function(e){x.now(P(e))}:S&&!y?(a=(i=new S).port2,i.port1.onmessage=C,o=c(a.postMessage,a)):u.addEventListener&&l(u.postMessage)&&!u.importScripts&&n&&"file:"!==n.protocol&&!d(R)?(o=R,u.addEventListener("message",C,!1)):o=T in v("script")?function(e){p.appendChild(v("script"))[T]=function(){p.removeChild(this),A(e)}}:function(e){setTimeout(P(e),0)}),e.exports={set:b,clear:w}},52430:function(e,t,r){"use strict";var n=r(14762);e.exports=n(1..valueOf)},33392:function(e,t,r){"use strict";var n=r(73005),o=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?o(r+t,0):i(r,t)}},84052:function(e,t,r){"use strict";var n=r(22355),o=TypeError;e.exports=function(e){var t=n(e,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},25238:function(e,t,r){"use strict";var n=r(73005),o=r(58324),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=n(e),r=o(t);if(t!==r)throw new i("Wrong length or index");return r}},35599:function(e,t,r){"use strict";var n=r(32121),o=r(53312);e.exports=function(e){return n(o(e))}},73005:function(e,t,r){"use strict";var n=r(61703);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},58324:function(e,t,r){"use strict";var n=r(73005),o=Math.min;e.exports=function(e){var t=n(e);return t>0?o(t,9007199254740991):0}},22347:function(e,t,r){"use strict";var n=r(53312),o=Object;e.exports=function(e){return o(n(e))}},14579:function(e,t,r){"use strict";var n=r(42212),o=RangeError;e.exports=function(e,t){var r=n(e);if(r%t)throw new o("Wrong offset");return r}},42212:function(e,t,r){"use strict";var n=r(73005),o=RangeError;e.exports=function(e){var t=n(e);if(t<0)throw new o("The argument can't be less than 0");return t}},22355:function(e,t,r){"use strict";var n=r(21807),o=r(71704),i=r(31423),a=r(92564),u=r(348),s=r(70001),c=TypeError,l=s("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var r,s=a(e,l);if(s){if(void 0===t&&(t="default"),r=n(s,e,t),!o(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},83815:function(e,t,r){"use strict";var n=r(22355),o=r(31423);e.exports=function(e){var t=n(e,"string");return o(t)?t:t+""}},34338:function(e,t,r){"use strict";var n={};n[r(70001)("toStringTag")]="z",e.exports="[object z]"===String(n)},26261:function(e,t,r){"use strict";var n=r(26145),o=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},86233:function(e){"use strict";var t=Math.round;e.exports=function(e){var r=t(e);return r<0?0:r>255?255:255&r}},18761:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},52961:function(e,t,r){"use strict";var n=r(28612),o=r(58389),i=r(21807),a=r(20382),u=r(987),s=r(37534),c=r(79776),l=r(96021),f=r(57738),d=r(69037),p=r(22137),h=r(58324),v=r(25238),m=r(14579),y=r(86233),g=r(83815),b=r(55755),w=r(26145),_=r(71704),x=r(31423),E=r(25290),S=r(4815),k=r(51953),O=r(12278).f,I=r(58053),T=r(12867).forEach,A=r(47859),P=r(83864),C=r(25835),R=r(4961),j=r(78592),D=r(64483),L=r(32429),N=D.get,U=D.set,B=D.enforce,M=C.f,F=R.f,H=o.RangeError,z=c.ArrayBuffer,q=z.prototype,G=c.DataView,W=s.NATIVE_ARRAY_BUFFER_VIEWS,V=s.TYPED_ARRAY_TAG,$=s.TypedArray,Y=s.TypedArrayPrototype,K=s.isTypedArray,J="BYTES_PER_ELEMENT",Z="Wrong length",X=function(e,t){P(e,t,{configurable:!0,get:function(){return N(this)[t]}})},Q=function(e){var t;return S(q,e)||"ArrayBuffer"===(t=w(e))||"SharedArrayBuffer"===t},ee=function(e,t){return K(e)&&!x(t)&&t in e&&p(+t)&&t>=0},te=function(e,t){return t=g(t),ee(e,t)?f(2,e[t]):F(e,t)},re=function(e,t,r){return t=g(t),!(ee(e,t)&&_(r)&&b(r,"value"))||b(r,"get")||b(r,"set")||r.configurable||b(r,"writable")&&!r.writable||b(r,"enumerable")&&!r.enumerable?M(e,t,r):(e[t]=r.value,e)};a?(W||(R.f=te,C.f=re,X(Y,"buffer"),X(Y,"byteOffset"),X(Y,"byteLength"),X(Y,"length")),n({target:"Object",stat:!0,forced:!W},{getOwnPropertyDescriptor:te,defineProperty:re}),e.exports=function(e,t,r){var a=e.match(/\d+/)[0]/8,s=e+(r?"Clamped":"")+"Array",c="get"+e,f="set"+e,p=o[s],g=p,b=g&&g.prototype,w={},x=function(e,t){M(e,t,{get:function(){return function(e,t){var r=N(e);return r.view[c](t*a+r.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var o=N(e);o.view[f](t*a+o.byteOffset,r?y(n):n,!0)}(this,t,e)},enumerable:!0})};W?u&&(g=t((function(e,t,r,n){return l(e,b),L(_(t)?Q(t)?void 0!==n?new p(t,m(r,a),n):void 0!==r?new p(t,m(r,a)):new p(t):K(t)?j(g,t):i(I,g,t):new p(v(t)),e,g)})),k&&k(g,$),T(O(p),(function(e){e in g||d(g,e,p[e])})),g.prototype=b):(g=t((function(e,t,r,n){l(e,b);var o,u,s,c=0,f=0;if(_(t)){if(!Q(t))return K(t)?j(g,t):i(I,g,t);o=t,f=m(r,a);var d=t.byteLength;if(void 0===n){if(d%a)throw new H(Z);if((u=d-f)<0)throw new H(Z)}else if((u=h(n)*a)+f>d)throw new H(Z);s=u/a}else s=v(t),o=new z(u=s*a);for(U(e,{buffer:o,byteOffset:f,byteLength:u,length:s,view:new G(o)});c1?arguments[1]:void 0,S=void 0!==E,k=c(_);if(k&&!l(k))for(b=(g=s(_,k)).next,_=[];!(y=o(b,g)).done;)_.push(y.value);for(S&&x>2&&(E=n(E,arguments[2])),r=u(_),h=new(d(w))(r),v=f(h),t=0;r>t;t++)m=S?E(_[t],t):_[t],h[t]=v?p(m):+m;return h}},96818:function(e,t,r){"use strict";var n=r(37534),o=r(483),i=n.aTypedArrayConstructor,a=n.getTypedArrayConstructor;e.exports=function(e){return i(o(e,a(e)))}},81866:function(e,t,r){"use strict";var n=r(14762),o=0,i=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},4250:function(e,t,r){"use strict";var n=r(28473),o=r(70001),i=r(20382),a=r(19557),u=o("iterator");e.exports=!n((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r=new URLSearchParams("a=1&a=2&b=3"),n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),r.delete("a",2),r.delete("b",void 0),a&&(!e.toJSON||!r.has("a",1)||r.has("a",2)||!r.has("a",void 0)||r.has("b"))||!t.size&&(a||!i)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[u]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},45022:function(e,t,r){"use strict";var n=r(86029);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3896:function(e,t,r){"use strict";var n=r(20382),o=r(28473);e.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4066:function(e){"use strict";var t=TypeError;e.exports=function(e,r){if(e=51||!o((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),y=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!m||!d("concat")},{concat:function(e){var t,r,n,o,i,a=u(this),d=f(a,0),p=0;for(t=-1,n=arguments.length;t1?arguments[1]:void 0)}})},69703:function(e,t,r){"use strict";var n=r(28612),o=r(12867).find,i=r(37095),a="find",u=!0;a in[]&&Array(1)[a]((function(){u=!1})),n({target:"Array",proto:!0,forced:u},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},21203:function(e,t,r){"use strict";var n=r(28612),o=r(94793);n({target:"Array",proto:!0,forced:[].forEach!==o},{forEach:o})},69892:function(e,t,r){"use strict";var n=r(28612),o=r(66142);n({target:"Array",stat:!0,forced:!r(81554)((function(e){Array.from(e)}))},{from:o})},76281:function(e,t,r){"use strict";var n=r(28612),o=r(86651).includes,i=r(28473),a=r(37095);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},84734:function(e,t,r){"use strict";var n=r(28612),o=r(23786),i=r(86651).indexOf,a=r(13152),u=o([].indexOf),s=!!u&&1/u([1],1,-0)<0;n({target:"Array",proto:!0,forced:s||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return s?u(this,e,t)||0:i(this,e,t)}})},44962:function(e,t,r){"use strict";var n=r(35599),o=r(37095),i=r(86775),a=r(64483),u=r(25835).f,s=r(95662),c=r(75247),l=r(19557),f=r(20382),d="Array Iterator",p=a.set,h=a.getterFor(d);e.exports=s(Array,"Array",(function(e,t){p(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(e){}},16216:function(e,t,r){"use strict";var n=r(28612),o=r(14762),i=r(32121),a=r(35599),u=r(13152),s=o([].join);n({target:"Array",proto:!0,forced:i!==Object||!u("join",",")},{join:function(e){return s(a(this),void 0===e?",":e)}})},86584:function(e,t,r){"use strict";var n=r(28612),o=r(12867).map;n({target:"Array",proto:!0,forced:!r(24595)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},20518:function(e,t,r){"use strict";var n=r(28612),o=r(78228).left,i=r(13152),a=r(76170);n({target:"Array",proto:!0,forced:!r(4334)&&a>79&&a<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},87324:function(e,t,r){"use strict";var n=r(28612),o=r(14762),i=r(14914),a=o([].reverse),u=[1,2];n({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},89336:function(e,t,r){"use strict";var n=r(28612),o=r(14914),i=r(70943),a=r(71704),u=r(33392),s=r(66960),c=r(35599),l=r(30670),f=r(70001),d=r(24595),p=r(61698),h=d("slice"),v=f("species"),m=Array,y=Math.max;n({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var r,n,f,d=c(this),h=s(d),g=u(e,h),b=u(void 0===t?h:t,h);if(o(d)&&(r=d.constructor,(i(r)&&(r===m||o(r.prototype))||a(r)&&null===(r=r[v]))&&(r=void 0),r===m||void 0===r))return p(d,g,b);for(n=new(void 0===r?m:r)(y(b-g,0)),f=0;g1?arguments[1]:void 0)}})},26448:function(e,t,r){"use strict";var n=r(28612),o=r(14762),i=r(68120),a=r(22347),u=r(66960),s=r(16060),c=r(26261),l=r(28473),f=r(67354),d=r(13152),p=r(87332),h=r(68996),v=r(76170),m=r(95158),y=[],g=o(y.sort),b=o(y.push),w=l((function(){y.sort(void 0)})),_=l((function(){y.sort(null)})),x=d("sort"),E=!l((function(){if(v)return v<70;if(!(p&&p>3)){if(h)return!0;if(m)return m<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)y.push({k:t+n,v:r})}for(y.sort((function(e,t){return t.v-e.v})),n=0;nc(r)?1:-1}}(e)),r=u(o),n=0;nw-n+r;m--)d(b,m-1)}else if(r>n)for(m=w-n;m>_;m--)g=m+r-1,(y=m+n-1)in b?b[g]=b[y]:d(b,g);for(m=0;m2)if(c=w(c),43===(t=I(c,0))||45===t){if(88===(r=I(c,2))||120===r)return NaN}else if(48===t){switch(I(c,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+c}for(a=(i=O(c,2)).length,u=0;uo)return NaN;return parseInt(i,n)}return+c},A=c(_,!x(" 0o1")||!x("0b1")||x("+0x1")),P=function(e){var t,r=arguments.length<1?0:x(function(e){var t=h(e,"number");return"bigint"==typeof t?t:T(t)}(e));return d(S,t=this)&&v((function(){b(t)}))?f(Object(r),this,P):r};P.prototype=S,A&&!o&&(S.constructor=P),n({global:!0,constructor:!0,wrap:!0,forced:A},{Number:P});var C=function(e,t){for(var r,n=i?m(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)l(t,r=n[o])&&!l(e,r)&&g(e,r,y(t,r))};o&&E&&C(u[_],E),(A||o)&&C(u[_],x)},48338:function(e,t,r){"use strict";r(28612)({target:"Number",stat:!0},{isFinite:r(5574)})},9698:function(e,t,r){"use strict";var n=r(28612),o=r(14762),i=r(73005),a=r(52430),u=r(98067),s=r(28473),c=RangeError,l=String,f=Math.floor,d=o(u),p=o("".slice),h=o(1..toFixed),v=function(e,t,r){return 0===t?r:t%2==1?v(e,t-1,r*e):v(e*e,t/2,r)},m=function(e,t,r){for(var n=-1,o=r;++n<6;)o+=t*e[n],e[n]=o%1e7,o=f(o/1e7)},y=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=f(n/t),n=n%t*1e7},g=function(e){for(var t=6,r="";--t>=0;)if(""!==r||0===t||0!==e[t]){var n=l(e[t]);r=""===r?n:r+d("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:s((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!s((function(){h({})}))},{toFixed:function(e){var t,r,n,o,u=a(this),s=i(e),f=[0,0,0,0,0,0],h="",b="0";if(s<0||s>20)throw new c("Incorrect fraction digits");if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return l(u);if(u<0&&(h="-",u=-u),u>1e-21)if(r=(t=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t}(u*v(2,69,1))-69)<0?u*v(2,-t,1):u/v(2,t,1),r*=4503599627370496,(t=52-t)>0){for(m(f,0,r),n=s;n>=7;)m(f,1e7,0),n-=7;for(m(f,v(10,n,1),0),n=t-1;n>=23;)y(f,1<<23),n-=23;y(f,1<0?h+((o=b.length)<=s?"0."+d("0",s-o)+b:p(b,0,o-s)+"."+p(b,o-s)):h+b}})},77575:function(e,t,r){"use strict";var n=r(28612),o=r(1439);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},33087:function(e,t,r){"use strict";var n=r(28612),o=r(20382),i=r(95799).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},36947:function(e,t,r){"use strict";var n=r(28612),o=r(20382),i=r(25835).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},57132:function(e,t,r){"use strict";var n=r(28612),o=r(45627).entries;n({target:"Object",stat:!0},{entries:function(e){return o(e)}})},13225:function(e,t,r){"use strict";var n=r(28612),o=r(86530),i=r(28473),a=r(71704),u=r(48041).onFreeze,s=Object.freeze;n({target:"Object",stat:!0,forced:i((function(){s(1)})),sham:!o},{freeze:function(e){return s&&a(e)?s(u(e)):e}})},36457:function(e,t,r){"use strict";var n=r(28612),o=r(28473),i=r(35599),a=r(4961).f,u=r(20382);n({target:"Object",stat:!0,forced:!u||o((function(){a(1)})),sham:!u},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},88908:function(e,t,r){"use strict";var n=r(28612),o=r(20382),i=r(89497),a=r(35599),u=r(4961),s=r(30670);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,r,n=a(e),o=u.f,c=i(n),l={},f=0;c.length>f;)void 0!==(r=o(n,t=c[f++]))&&s(l,t,r);return l}})},77859:function(e,t,r){"use strict";var n=r(28612),o=r(86029),i=r(28473),a=r(74347),u=r(22347);n({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(u(e)):[]}})},26437:function(e,t,r){"use strict";var n=r(28612),o=r(28473),i=r(22347),a=r(53181),u=r(19441);n({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!u},{getPrototypeOf:function(e){return a(i(e))}})},83810:function(e,t,r){"use strict";var n=r(28612),o=r(22347),i=r(33658);n({target:"Object",stat:!0,forced:r(28473)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},52697:function(e,t,r){"use strict";r(28612)({target:"Object",stat:!0},{setPrototypeOf:r(51953)})},78557:function(e,t,r){"use strict";var n=r(34338),o=r(77914),i=r(15685);n||o(Object.prototype,"toString",i,{unsafe:!0})},64628:function(e,t,r){"use strict";var n=r(28612),o=r(45627).values;n({target:"Object",stat:!0},{values:function(e){return o(e)}})},96054:function(e,t,r){"use strict";var n=r(28612),o=r(20101);n({global:!0,forced:parseInt!==o},{parseInt:o})},66249:function(e,t,r){"use strict";var n=r(28612),o=r(21807),i=r(68120),a=r(21173),u=r(84193),s=r(11506);n({target:"Promise",stat:!0,forced:r(21407)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,c=r.reject,l=u((function(){var r=i(t.resolve),a=[],u=0,l=1;s(e,(function(e){var i=u++,s=!1;l++,o(r,t,e).then((function(e){s||(s=!0,a[i]=e,--l||n(a))}),c)})),--l||n(a)}));return l.error&&c(l.value),r.promise}})},36681:function(e,t,r){"use strict";var n=r(28612),o=r(19557),i=r(35502).CONSTRUCTOR,a=r(92832),u=r(11409),s=r(1483),c=r(77914),l=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&s(a)){var f=u("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},78786:function(e,t,r){"use strict";var n,o,i,a=r(28612),u=r(19557),s=r(4334),c=r(58389),l=r(21807),f=r(77914),d=r(51953),p=r(52277),h=r(47859),v=r(68120),m=r(1483),y=r(71704),g=r(96021),b=r(483),w=r(17007).set,_=r(40553),x=r(51339),E=r(84193),S=r(95459),k=r(64483),O=r(92832),I=r(35502),T=r(21173),A="Promise",P=I.CONSTRUCTOR,C=I.REJECTION_EVENT,R=I.SUBCLASSING,j=k.getterFor(A),D=k.set,L=O&&O.prototype,N=O,U=L,B=c.TypeError,M=c.document,F=c.process,H=T.f,z=H,q=!!(M&&M.createEvent&&c.dispatchEvent),G="unhandledrejection",W=function(e){var t;return!(!y(e)||!m(t=e.then))&&t},V=function(e,t){var r,n,o,i=t.value,a=1===t.state,u=a?e.ok:e.fail,s=e.resolve,c=e.reject,f=e.domain;try{u?(a||(2===t.rejection&&Z(t),t.rejection=1),!0===u?r=i:(f&&f.enter(),r=u(i),f&&(f.exit(),o=!0)),r===e.promise?c(new B("Promise-chain cycle")):(n=W(r))?l(n,r,s,c):s(r)):c(i)}catch(e){f&&!o&&f.exit(),c(e)}},$=function(e,t){e.notified||(e.notified=!0,_((function(){for(var r,n=e.reactions;r=n.get();)V(r,e);e.notified=!1,t&&!e.rejection&&K(e)})))},Y=function(e,t,r){var n,o;q?((n=M.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!C&&(o=c["on"+e])?o(n):e===G&&x("Unhandled promise rejection",r)},K=function(e){l(w,c,(function(){var t,r=e.facade,n=e.value;if(J(e)&&(t=E((function(){s?F.emit("unhandledRejection",n,r):Y(G,r,n)})),e.rejection=s||J(e)?2:1,t.error))throw t.value}))},J=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){l(w,c,(function(){var t=e.facade;s?F.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)}))},X=function(e,t,r){return function(n){e(t,n,r)}},Q=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,$(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new B("Promise can't be resolved itself");var n=W(t);n?_((function(){var r={done:!1};try{l(n,t,X(ee,r,e),X(Q,r,e))}catch(t){Q(r,t,e)}})):(e.value=t,e.state=1,$(e,!1))}catch(t){Q({done:!1},t,e)}}};if(P&&(U=(N=function(e){g(this,U),v(e),l(n,this);var t=j(this);try{e(X(ee,t),X(Q,t))}catch(e){Q(t,e)}}).prototype,(n=function(e){D(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=f(U,"then",(function(e,t){var r=j(this),n=H(b(this,N));return r.parent=!0,n.ok=!m(e)||e,n.fail=m(t)&&t,n.domain=s?F.domain:void 0,0===r.state?r.reactions.add(n):_((function(){V(n,r)})),n.promise})),o=function(){var e=new n,t=j(e);this.promise=e,this.resolve=X(ee,t),this.reject=X(Q,t)},T.f=H=function(e){return e===N||undefined===e?new o(e):z(e)},!u&&m(O)&&L!==Object.prototype)){i=L.then,R||f(L,"then",(function(e,t){var r=this;return new N((function(e,t){l(i,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete L.constructor}catch(e){}d&&d(L,U)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:N}),p(N,A,!1,!0),h(A)},90076:function(e,t,r){"use strict";r(78786),r(66249),r(36681),r(31681),r(79231),r(5774)},31681:function(e,t,r){"use strict";var n=r(28612),o=r(21807),i=r(68120),a=r(21173),u=r(84193),s=r(11506);n({target:"Promise",stat:!0,forced:r(21407)},{race:function(e){var t=this,r=a.f(t),n=r.reject,c=u((function(){var a=i(t.resolve);s(e,(function(e){o(a,t,e).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},79231:function(e,t,r){"use strict";var n=r(28612),o=r(21173);n({target:"Promise",stat:!0,forced:r(35502).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return(0,t.reject)(e),t.promise}})},5774:function(e,t,r){"use strict";var n=r(28612),o=r(11409),i=r(19557),a=r(92832),u=r(35502).CONSTRUCTOR,s=r(2172),c=o("Promise"),l=i&&!u;n({target:"Promise",stat:!0,forced:i||u},{resolve:function(e){return s(l&&this===c?a:this,e)}})},21359:function(e,t,r){"use strict";var n=r(28612),o=r(11409),i=r(73067),a=r(2164),u=r(52374),s=r(2293),c=r(71704),l=r(25290),f=r(28473),d=o("Reflect","construct"),p=Object.prototype,h=[].push,v=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),m=!f((function(){d((function(){}))})),y=v||m;n({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){u(e),s(t);var r=arguments.length<3?e:u(arguments[2]);if(m&&!v)return d(e,t,r);if(e===r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return i(h,n,t),new(i(a,e,n))}var o=r.prototype,f=l(c(o)?o:p),y=i(e,f,t);return c(y)?y:f}})},646:function(e,t,r){"use strict";var n=r(20382),o=r(58389),i=r(14762),a=r(98730),u=r(32429),s=r(69037),c=r(25290),l=r(12278).f,f=r(4815),d=r(84786),p=r(26261),h=r(39736),v=r(37435),m=r(7150),y=r(77914),g=r(28473),b=r(55755),w=r(64483).enforce,_=r(47859),x=r(70001),E=r(43933),S=r(64528),k=x("match"),O=o.RegExp,I=O.prototype,T=o.SyntaxError,A=i(I.exec),P=i("".charAt),C=i("".replace),R=i("".indexOf),j=i("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,N=/a/g,U=new O(L)!==L,B=v.MISSED_STICKY,M=v.UNSUPPORTED_Y,F=n&&(!U||B||E||S||g((function(){return N[k]=!1,O(L)!==L||O(N)===N||"/a/i"!==String(O(L,"i"))})));if(a("RegExp",F)){for(var H=function(e,t){var r,n,o,i,a,l,v=f(I,this),m=d(e),y=void 0===t,g=[],_=e;if(!v&&m&&y&&e.constructor===H)return e;if((m||f(I,e))&&(e=e.source,y&&(t=h(_))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),_=e,E&&"dotAll"in L&&(n=!!t&&R(t,"s")>-1)&&(t=C(t,/s/g,"")),r=t,B&&"sticky"in L&&(o=!!t&&R(t,"y")>-1)&&M&&(t=C(t,/y/g,"")),S&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a=c(null),u=!1,s=!1,l=0,f="";n<=r;n++){if("\\"===(t=P(e,n)))t+=P(e,++n);else if("]"===t)u=!1;else if(!u)switch(!0){case"["===t:u=!0;break;case"("===t:A(D,j(e,n+1))&&(n+=2,s=!0),o+=t,l++;continue;case">"===t&&s:if(""===f||b(a,f))throw new T("Invalid capture group name");a[f]=!0,i[i.length]=[f,l],s=!1,f="";continue}s?f+=t:o+=t}return[o,i]}(e),e=i[0],g=i[1]),a=u(O(e,t),v?this:I,H),(n||o||g.length)&&(l=w(a),n&&(l.dotAll=!0,l.raw=H(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=P(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+P(e,++n);return o}(e),r)),o&&(l.sticky=!0),g.length&&(l.groups=g)),e!==_)try{s(a,"source",""===_?"(?:)":_)}catch(e){}return a},z=l(O),q=0;z.length>q;)m(H,O,z[q++]);I.constructor=H,H.prototype=I,y(o,"RegExp",H,{constructor:!0})}_("RegExp")},95021:function(e,t,r){"use strict";var n=r(28612),o=r(8865);n({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},2553:function(e,t,r){"use strict";var n=r(58389),o=r(20382),i=r(83864),a=r(36653),u=r(28473),s=n.RegExp,c=s.prototype;o&&u((function(){var e=!0;try{s(".","d")}catch(t){e=!1}var t={},r="",n=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==n||r!==n}))&&i(c,"flags",{configurable:!0,get:a})},73687:function(e,t,r){"use strict";var n=r(42048).PROPER,o=r(77914),i=r(2293),a=r(26261),u=r(28473),s=r(39736),c="toString",l=RegExp.prototype,f=l[c],d=u((function(){return"/a/b"!==f.call({source:"a",flags:"b"})})),p=n&&f.name!==c;(d||p)&&o(l,c,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(s(e))}),{unsafe:!0})},29203:function(e,t,r){"use strict";r(17446)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(74092))},92745:function(e,t,r){"use strict";r(29203)},32370:function(e,t,r){"use strict";var n=r(28612),o=r(69105).codeAt;n({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},50987:function(e,t,r){"use strict";var n,o=r(28612),i=r(23786),a=r(4961).f,u=r(58324),s=r(26261),c=r(4989),l=r(53312),f=r(94522),d=r(19557),p=i("".slice),h=Math.min,v=f("endsWith");o({target:"String",proto:!0,forced:!!(d||v||(n=a(String.prototype,"endsWith"),!n||n.writable))&&!v},{endsWith:function(e){var t=s(l(this));c(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,o=void 0===r?n:h(u(r),n),i=s(e);return p(t,o-i.length,o)===i}})},99425:function(e,t,r){"use strict";var n=r(28612),o=r(14762),i=r(4989),a=r(53312),u=r(26261),s=r(94522),c=o("".indexOf);n({target:"String",proto:!0,forced:!s("includes")},{includes:function(e){return!!~c(u(a(this)),u(i(e)),arguments.length>1?arguments[1]:void 0)}})},83994:function(e,t,r){"use strict";var n=r(69105).charAt,o=r(26261),i=r(64483),a=r(95662),u=r(75247),s="String Iterator",c=i.set,l=i.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:o(e),index:0})}),(function(){var e,t=l(this),r=t.string,o=t.index;return o>=r.length?u(void 0,!0):(e=n(r,o),t.index+=e.length,u(e,!1))}))},61948:function(e,t,r){"use strict";var n=r(28612),o=r(21554);n({target:"String",proto:!0,forced:r(36547)("link")},{link:function(e){return o(this,"a","href",e)}})},53819:function(e,t,r){"use strict";var n=r(21807),o=r(43358),i=r(2293),a=r(15983),u=r(58324),s=r(26261),c=r(53312),l=r(92564),f=r(64419),d=r(42428);o("match",(function(e,t,r){return[function(t){var r=c(this),o=a(t)?void 0:l(t,e);return o?n(o,t,r):new RegExp(t)[e](s(r))},function(e){var n=i(this),o=s(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return d(n,o);var c=n.unicode;n.lastIndex=0;for(var l,p=[],h=0;null!==(l=d(n,o));){var v=s(l[0]);p[h]=v,""===v&&(n.lastIndex=f(o,u(n.lastIndex),c)),h++}return 0===h?null:p}]}))},79682:function(e,t,r){"use strict";var n=r(28612),o=r(66731).start;n({target:"String",proto:!0,forced:r(75669)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},93062:function(e,t,r){"use strict";var n=r(73067),o=r(21807),i=r(14762),a=r(43358),u=r(28473),s=r(2293),c=r(1483),l=r(15983),f=r(73005),d=r(58324),p=r(26261),h=r(53312),v=r(64419),m=r(92564),y=r(20708),g=r(42428),b=r(70001)("replace"),w=Math.max,_=Math.min,x=i([].concat),E=i([].push),S=i("".indexOf),k=i("".slice),O="$0"==="a".replace(/./,"$0"),I=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,r){var i=I?"$":"$0";return[function(e,r){var n=h(this),i=l(e)?void 0:m(e,b);return i?o(i,e,n,r):o(t,p(n),e,r)},function(e,o){var a=s(this),u=p(e);if("string"==typeof o&&-1===S(o,i)&&-1===S(o,"$<")){var l=r(t,a,u,o);if(l.done)return l.value}var h=c(o);h||(o=p(o));var m,b=a.global;b&&(m=a.unicode,a.lastIndex=0);for(var O,I=[];null!==(O=g(a,u))&&(E(I,O),b);){""===p(O[0])&&(a.lastIndex=v(u,d(a.lastIndex),m))}for(var T,A="",P=0,C=0;C=P&&(A+=k(u,P,D)+R,P=D+j.length)}return A+k(u,P)}]}),!!u((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!O||I)},97456:function(e,t,r){"use strict";var n=r(21807),o=r(43358),i=r(2293),a=r(15983),u=r(53312),s=r(75420),c=r(26261),l=r(92564),f=r(42428);o("search",(function(e,t,r){return[function(t){var r=u(this),o=a(t)?void 0:l(t,e);return o?n(o,t,r):new RegExp(t)[e](c(r))},function(e){var n=i(this),o=c(e),a=r(t,n,o);if(a.done)return a.value;var u=n.lastIndex;s(u,0)||(n.lastIndex=0);var l=f(n,o);return s(n.lastIndex,u)||(n.lastIndex=u),null===l?-1:l.index}]}))},11810:function(e,t,r){"use strict";var n=r(21807),o=r(14762),i=r(43358),a=r(2293),u=r(15983),s=r(53312),c=r(483),l=r(64419),f=r(58324),d=r(26261),p=r(92564),h=r(42428),v=r(37435),m=r(28473),y=v.UNSUPPORTED_Y,g=Math.min,b=o([].push),w=o("".slice),_=!m((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),x="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;i("split",(function(e,t,r){var o="0".split(void 0,0).length?function(e,r){return void 0===e&&0===r?[]:n(t,this,e,r)}:t;return[function(t,r){var i=s(this),a=u(t)?void 0:p(t,e);return a?n(a,t,i,r):n(o,d(i),t,r)},function(e,n){var i=a(this),u=d(e);if(!x){var s=r(o,i,u,n,o!==t);if(s.done)return s.value}var p=c(i,RegExp),v=i.unicode,m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(y?"g":"y"),_=new p(y?"^(?:"+i.source+")":i,m),E=void 0===n?4294967295:n>>>0;if(0===E)return[];if(0===u.length)return null===h(_,u)?[u]:[];for(var S=0,k=0,O=[];k2?arguments[2]:void 0)}))},4716:function(e,t,r){"use strict";var n=r(37534),o=r(12867).every,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33054:function(e,t,r){"use strict";var n=r(37534),o=r(18287),i=r(84052),a=r(26145),u=r(21807),s=r(14762),c=r(28473),l=n.aTypedArray,f=n.exportTypedArrayMethod,d=s("".slice);f("fill",(function(e){var t=arguments.length;l(this);var r="Big"===d(a(this),0,3)?i(e):+e;return u(o,this,r,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},82281:function(e,t,r){"use strict";var n=r(37534),o=r(12867).filter,i=r(77535),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},89717:function(e,t,r){"use strict";var n=r(37534),o=r(12867).findIndex,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},23236:function(e,t,r){"use strict";var n=r(37534),o=r(12867).find,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},86268:function(e,t,r){"use strict";r(52961)("Float32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},48847:function(e,t,r){"use strict";r(52961)("Float64",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},57268:function(e,t,r){"use strict";var n=r(37534),o=r(12867).forEach,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},32650:function(e,t,r){"use strict";var n=r(37534),o=r(86651).includes,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},34581:function(e,t,r){"use strict";var n=r(37534),o=r(86651).indexOf,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},2285:function(e,t,r){"use strict";r(52961)("Int16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},87723:function(e,t,r){"use strict";r(52961)("Int32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},29548:function(e,t,r){"use strict";r(52961)("Int8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},31937:function(e,t,r){"use strict";var n=r(58389),o=r(28473),i=r(14762),a=r(37534),u=r(44962),s=r(70001)("iterator"),c=n.Uint8Array,l=i(u.values),f=i(u.keys),d=i(u.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,v=c&&c.prototype,m=!o((function(){v[s].call([1])})),y=!!v&&v.values&&v[s]===v.values&&"values"===v.values.name,g=function(){return l(p(this))};h("entries",(function(){return d(p(this))}),m),h("keys",(function(){return f(p(this))}),m),h("values",g,m||!y,{name:"values"}),h(s,g,m||!y,{name:"values"})},65683:function(e,t,r){"use strict";var n=r(37534),o=r(14762),i=n.aTypedArray,a=n.exportTypedArrayMethod,u=o([].join);a("join",(function(e){return u(i(this),e)}))},85486:function(e,t,r){"use strict";var n=r(37534),o=r(73067),i=r(58901),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},4181:function(e,t,r){"use strict";var n=r(37534),o=r(12867).map,i=r(96818),a=n.aTypedArray;(0,n.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},51294:function(e,t,r){"use strict";var n=r(37534),o=r(987),i=n.aTypedArrayConstructor;(0,n.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,r=new(i(this))(t);t>e;)r[e]=arguments[e++];return r}),o)},18750:function(e,t,r){"use strict";var n=r(37534),o=r(78228).right,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},1421:function(e,t,r){"use strict";var n=r(37534),o=r(78228).left,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},50789:function(e,t,r){"use strict";var n=r(37534),o=n.aTypedArray,i=n.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,r=o(t).length,n=a(r/2),i=0;i1?arguments[1]:void 0,1),r=s(e);if(m)return o(p,this,r,t);var n=this.length,i=a(r),c=0;if(i+t>n)throw new l("Wrong length");for(;ci;)c[i]=r[i++];return c}),i((function(){new Int8Array(1).slice()})))},14715:function(e,t,r){"use strict";var n=r(37534),o=r(12867).some,i=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},39111:function(e,t,r){"use strict";var n=r(58389),o=r(23786),i=r(28473),a=r(68120),u=r(67354),s=r(37534),c=r(87332),l=r(68996),f=r(76170),d=r(95158),p=s.aTypedArray,h=s.exportTypedArrayMethod,v=n.Uint16Array,m=v&&o(v.prototype.sort),y=!(!m||i((function(){m(new v(2),null)}))&&i((function(){m(new v(2),{})}))),g=!!m&&!i((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(d)return d<602;var e,t,r=new v(516),n=Array(516);for(e=0;e<516;e++)t=e%4,r[e]=515-e,n[e]=e-2*t+3;for(m(r,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(r[e]!==n[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),g?m(this,e):u(p(this),function(e){return function(t,r){return void 0!==e?+e(t,r)||0:r!=r?-1:t!=t?1:0===t&&0===r?1/t>0&&1/r<0?1:-1:t>r}}(e))}),!g||y)},21788:function(e,t,r){"use strict";var n=r(37534),o=r(58324),i=r(33392),a=r(96818),u=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(e,t){var r=u(this),n=r.length,s=i(e,n);return new(a(r))(r.buffer,r.byteOffset+s*r.BYTES_PER_ELEMENT,o((void 0===t?n:i(t,n))-s))}))},73015:function(e,t,r){"use strict";var n=r(58389),o=r(73067),i=r(37534),a=r(28473),u=r(61698),s=n.Int8Array,c=i.aTypedArray,l=i.exportTypedArrayMethod,f=[].toLocaleString,d=!!s&&a((function(){f.call(new s(1))}));l("toLocaleString",(function(){return o(f,d?u(c(this)):c(this),u(arguments))}),a((function(){return[1,2].toLocaleString()!==new s([1,2]).toLocaleString()}))||!a((function(){s.prototype.toLocaleString.call([1,2])})))},47762:function(e,t,r){"use strict";var n=r(37534).exportTypedArrayMethod,o=r(28473),i=r(58389),a=r(14762),u=i.Uint8Array,s=u&&u.prototype||{},c=[].toString,l=a([].join);o((function(){c.call({})}))&&(c=function(){return l(this)});var f=s.toString!==c;n("toString",c,f)},66464:function(e,t,r){"use strict";r(52961)("Uint16",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},94630:function(e,t,r){"use strict";r(52961)("Uint32",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},96919:function(e,t,r){"use strict";r(52961)("Uint8",(function(e){return function(t,r,n){return e(this,t,r,n)}}))},82402:function(e,t,r){"use strict";r(65055)},23630:function(e,t,r){"use strict";var n=r(58389),o=r(24842),i=r(51902),a=r(94793),u=r(69037),s=function(e){if(e&&e.forEach!==a)try{u(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in o)o[c]&&s(n[c]&&n[c].prototype);s(i)},82367:function(e,t,r){"use strict";var n=r(58389),o=r(24842),i=r(51902),a=r(44962),u=r(69037),s=r(52277),c=r(70001)("iterator"),l=a.values,f=function(e,t){if(e){if(e[c]!==l)try{u(e,c,l)}catch(t){e[c]=l}if(s(e,t,!0),o[t])for(var r in a)if(e[r]!==a[r])try{u(e,r,a[r])}catch(t){e[r]=a[r]}}};for(var d in o)f(n[d]&&n[d].prototype,d);f(i,"DOMTokenList")},89833:function(e,t,r){"use strict";var n=r(28612),o=r(58389),i=r(39570)(o.setInterval,!0);n({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},63989:function(e,t,r){"use strict";var n=r(28612),o=r(58389),i=r(39570)(o.setTimeout,!0);n({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},17089:function(e,t,r){"use strict";r(89833),r(63989)},57192:function(e,t,r){"use strict";r(44962);var n=r(28612),o=r(58389),i=r(88123),a=r(21807),u=r(14762),s=r(20382),c=r(4250),l=r(77914),f=r(83864),d=r(82313),p=r(52277),h=r(31040),v=r(64483),m=r(96021),y=r(1483),g=r(55755),b=r(32914),w=r(26145),_=r(2293),x=r(71704),E=r(26261),S=r(25290),k=r(57738),O=r(14887),I=r(26665),T=r(75247),A=r(4066),P=r(70001),C=r(67354),R=P("iterator"),j="URLSearchParams",D=j+"Iterator",L=v.set,N=v.getterFor(j),U=v.getterFor(D),B=i("fetch"),M=i("Request"),F=i("Headers"),H=M&&M.prototype,z=F&&F.prototype,q=o.RegExp,G=o.TypeError,W=o.decodeURIComponent,V=o.encodeURIComponent,$=u("".charAt),Y=u([].join),K=u([].push),J=u("".replace),Z=u([].shift),X=u([].splice),Q=u("".split),ee=u("".slice),te=/\+/g,re=Array(4),ne=function(e){return re[e-1]||(re[e-1]=q("((?:%[\\da-f]{2}){"+e+"})","gi"))},oe=function(e){try{return W(e)}catch(t){return e}},ie=function(e){var t=J(e,te," "),r=4;try{return W(t)}catch(e){for(;r;)t=J(t,ne(r--),oe);return t}},ae=/[!'()~]|%20/g,ue={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ue[e]},ce=function(e){return J(V(e),ae,se)},le=h((function(e,t){L(this,{type:D,target:N(e).entries,index:0,kind:t})}),j,(function(){var e=U(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,T(void 0,!0);var n=t[r];switch(e.kind){case"keys":return T(n.key,!1);case"values":return T(n.value,!1)}return T([n.key,n.value],!1)}),!0),fe=function(e){this.entries=[],this.url=null,void 0!==e&&(x(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===$(e,0)?ee(e,1):e:E(e)))};fe.prototype={type:j,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,u,s,c=this.entries,l=I(e);if(l)for(r=(t=O(e,l)).next;!(n=a(r,t)).done;){if(i=(o=O(_(n.value))).next,(u=a(i,o)).done||(s=a(i,o)).done||!a(i,o).done)throw new G("Expected sequence with length 2");K(c,{key:E(u.value),value:E(s.value)})}else for(var f in e)g(e,f)&&K(c,{key:f,value:E(e[f])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=Q(e,"&"),i=0;i0?arguments[0]:void 0));s||(this.size=e.entries.length)},pe=de.prototype;if(d(pe,{append:function(e,t){var r=N(this);A(arguments.length,2),K(r.entries,{key:E(e),value:E(t)}),s||this.length++,r.updateURL()},delete:function(e){for(var t=N(this),r=A(arguments.length,1),n=t.entries,o=E(e),i=r<2?void 0:arguments[1],a=void 0===i?i:E(i),u=0;ut.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=N(this).entries,n=b(e,arguments.length>1?arguments[1]:void 0),o=0;o1?me(arguments[1]):{})}}),y(M)){var ye=function(e){return m(this,H),new M(e,arguments.length>1?me(arguments[1]):{})};H.constructor=ye,ye.prototype=H,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ye})}}e.exports={URLSearchParams:de,getState:N}},99102:function(e,t,r){"use strict";r(57192)},52332:function(e,t,r){"use strict";r(83994);var n,o=r(28612),i=r(20382),a=r(4250),u=r(58389),s=r(32914),c=r(14762),l=r(77914),f=r(83864),d=r(96021),p=r(55755),h=r(1439),v=r(66142),m=r(61698),y=r(69105).codeAt,g=r(14939),b=r(26261),w=r(52277),_=r(4066),x=r(57192),E=r(64483),S=E.set,k=E.getterFor("URL"),O=x.URLSearchParams,I=x.getState,T=u.URL,A=u.TypeError,P=u.parseInt,C=Math.floor,R=Math.pow,j=c("".charAt),D=c(/./.exec),L=c([].join),N=c(1..toString),U=c([].pop),B=c([].push),M=c("".replace),F=c([].shift),H=c("".split),z=c("".slice),q=c("".toLowerCase),G=c([].unshift),W="Invalid scheme",V="Invalid host",$="Invalid port",Y=/[a-z]/i,K=/[\d+-.a-z]/i,J=/\d/,Z=/^0x/i,X=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ne=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ie=/[\t\n\r]/g,ae=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)G(t,e%256),e=C(e/256);return L(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=N(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},ue={},se=h({},ue,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=h({},se,{"#":1,"?":1,"{":1,"}":1}),le=h({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),fe=function(e,t){var r=y(e,0);return r>32&&r<127&&!p(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var r;return 2===e.length&&D(Y,j(e,0))&&(":"===(r=j(e,1))||!t&&"|"===r)},he=function(e){var t;return e.length>1&&pe(z(e,0,2))&&(2===e.length||"/"===(t=j(e,2))||"\\"===t||"?"===t||"#"===t)},ve=function(e){return"."===e||"%2e"===q(e)},me={},ye={},ge={},be={},we={},_e={},xe={},Ee={},Se={},ke={},Oe={},Ie={},Te={},Ae={},Pe={},Ce={},Re={},je={},De={},Le={},Ne={},Ue=function(e,t,r){var n,o,i,a=b(e);if(t){if(o=this.parse(a))throw new A(o);this.searchParams=null}else{if(void 0!==r&&(n=new Ue(r,!0)),o=this.parse(a,null,n))throw new A(o);(i=I(new O)).bindURL(this),this.searchParams=i}};Ue.prototype={type:"URL",parse:function(e,t,r){var o,i,a,u,s,c=this,l=t||me,f=0,d="",h=!1,y=!1,g=!1;for(e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=M(e,ne,""),e=M(e,oe,"$1")),e=M(e,ie,""),o=v(e);f<=o.length;){switch(i=o[f],l){case me:if(!i||!D(Y,i)){if(t)return W;l=ge;continue}d+=q(i),l=ye;break;case ye:if(i&&(D(K,i)||"+"===i||"-"===i||"."===i))d+=q(i);else{if(":"!==i){if(t)return W;d="",l=ge,f=0;continue}if(t&&(c.isSpecial()!==p(de,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&de[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?l=Ae:c.isSpecial()&&r&&r.scheme===c.scheme?l=be:c.isSpecial()?l=Ee:"/"===o[f+1]?(l=we,f++):(c.cannotBeABaseURL=!0,B(c.path,""),l=De)}break;case ge:if(!r||r.cannotBeABaseURL&&"#"!==i)return W;if(r.cannotBeABaseURL&&"#"===i){c.scheme=r.scheme,c.path=m(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=Ne;break}l="file"===r.scheme?Ae:_e;continue;case be:if("/"!==i||"/"!==o[f+1]){l=_e;continue}l=Se,f++;break;case we:if("/"===i){l=ke;break}l=je;continue;case _e:if(c.scheme=r.scheme,i===n)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=m(r.path),c.query=r.query;else if("/"===i||"\\"===i&&c.isSpecial())l=xe;else if("?"===i)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=m(r.path),c.query="",l=Le;else{if("#"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=m(r.path),c.path.length--,l=je;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=m(r.path),c.query=r.query,c.fragment="",l=Ne}break;case xe:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=je;continue}l=ke}else l=Se;break;case Ee:if(l=Se,"/"!==i||"/"!==j(d,f+1))continue;f++;break;case Se:if("/"!==i&&"\\"!==i){l=ke;continue}break;case ke:if("@"===i){h&&(d="%40"+d),h=!0,a=v(d);for(var w=0;w65535)return $;c.port=c.isSpecial()&&E===de[c.scheme]?null:E,d=""}if(t)return;l=Re;continue}return $}d+=i;break;case Ae:if(c.scheme="file","/"===i||"\\"===i)l=Pe;else{if(!r||"file"!==r.scheme){l=je;continue}switch(i){case n:c.host=r.host,c.path=m(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=m(r.path),c.query="",l=Le;break;case"#":c.host=r.host,c.path=m(r.path),c.query=r.query,c.fragment="",l=Ne;break;default:he(L(m(o,f),""))||(c.host=r.host,c.path=m(r.path),c.shortenPath()),l=je;continue}}break;case Pe:if("/"===i||"\\"===i){l=Ce;break}r&&"file"===r.scheme&&!he(L(m(o,f),""))&&(pe(r.path[0],!0)?B(c.path,r.path[0]):c.host=r.host),l=je;continue;case Ce:if(i===n||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&pe(d))l=je;else if(""===d){if(c.host="",t)return;l=Re}else{if(u=c.parseHost(d))return u;if("localhost"===c.host&&(c.host=""),t)return;d="",l=Re}continue}d+=i;break;case Re:if(c.isSpecial()){if(l=je,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==n&&(l=je,"/"!==i))continue}else c.fragment="",l=Ne;else c.query="",l=Le;break;case je:if(i===n||"/"===i||"\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(s=q(s=d))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||B(c.path,"")):ve(d)?"/"===i||"\\"===i&&c.isSpecial()||B(c.path,""):("file"===c.scheme&&!c.path.length&&pe(d)&&(c.host&&(c.host=""),d=j(d,0)+":"),B(c.path,d)),d="","file"===c.scheme&&(i===n||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)F(c.path);"?"===i?(c.query="",l=Le):"#"===i&&(c.fragment="",l=Ne)}else d+=fe(i,ce);break;case De:"?"===i?(c.query="",l=Le):"#"===i?(c.fragment="",l=Ne):i!==n&&(c.path[0]+=fe(i,ue));break;case Le:t||"#"!==i?i!==n&&("'"===i&&c.isSpecial()?c.query+="%27":c.query+="#"===i?"%23":fe(i,ue)):(c.fragment="",l=Ne);break;case Ne:i!==n&&(c.fragment+=fe(i,se))}f++}},parseHost:function(e){var t,r,n;if("["===j(e,0)){if("]"!==j(e,e.length-1))return V;if(t=function(e){var t,r,n,o,i,a,u,s=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return j(e,f)};if(":"===d()){if(":"!==j(e,1))return;f+=2,l=++c}for(;d();){if(8===c)return;if(":"!==d()){for(t=r=0;r<4&&D(ee,d());)t=16*t+P(d(),16),f++,r++;if("."===d()){if(0===r)return;if(f-=r,c>6)return;for(n=0;d();){if(o=null,n>0){if(!("."===d()&&n<4))return;f++}if(!D(J,d()))return;for(;D(J,d());){if(i=P(d(),10),null===o)o=i;else{if(0===o)return;o=10*o+i}if(o>255)return;f++}s[c]=256*s[c]+o,2!=++n&&4!==n||c++}if(4!==n)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;s[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!==c&&a>0;)u=s[c],s[c--]=s[l+a-1],s[l+--a]=u;else if(8!==c)return;return s}(z(e,1,-1)),!t)return V;this.host=t}else if(this.isSpecial()){if(e=g(e),D(te,e))return V;if(t=function(e){var t,r,n,o,i,a,u,s=H(e,".");if(s.length&&""===s[s.length-1]&&s.length--,(t=s.length)>4)return e;for(r=[],n=0;n1&&"0"===j(o,0)&&(i=D(Z,o)?16:8,o=z(o,8===i?1:2)),""===o)a=0;else{if(!D(10===i?Q:8===i?X:ee,o))return e;a=P(o,i)}B(r,a)}for(n=0;n=R(256,5-t))return null}else if(a>255)return null;for(u=U(r),n=0;n1?arguments[1]:void 0,n=S(t,new Ue(e,!1,r));i||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},Me=Be.prototype,Fe=function(e,t){return{get:function(){return k(this)[e]()},set:t&&function(e){return k(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(f(Me,"href",Fe("serialize","setHref")),f(Me,"origin",Fe("getOrigin")),f(Me,"protocol",Fe("getProtocol","setProtocol")),f(Me,"username",Fe("getUsername","setUsername")),f(Me,"password",Fe("getPassword","setPassword")),f(Me,"host",Fe("getHost","setHost")),f(Me,"hostname",Fe("getHostname","setHostname")),f(Me,"port",Fe("getPort","setPort")),f(Me,"pathname",Fe("getPathname","setPathname")),f(Me,"search",Fe("getSearch","setSearch")),f(Me,"searchParams",Fe("getSearchParams")),f(Me,"hash",Fe("getHash","setHash"))),l(Me,"toJSON",(function(){return k(this).serialize()}),{enumerable:!0}),l(Me,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),T){var He=T.createObjectURL,ze=T.revokeObjectURL;He&&l(Be,"createObjectURL",s(He,T)),ze&&l(Be,"revokeObjectURL",s(ze,T))}w(Be,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Be})},24362:function(e,t,r){"use strict";r(52332)},48602:function(e,t,r){"use strict";r(36947),Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.validate=t.v7=t.v6ToV1=t.v6=t.v5=t.v4=t.v3=t.v1ToV6=t.v1=t.stringify=t.parse=t.NIL=t.MAX=void 0;var n=r(86104);Object.defineProperty(t,"MAX",{enumerable:!0,get:function(){return n.default}});var o=r(6869);Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return o.default}});var i=r(98217);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i.default}});var a=r(37223);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.default}});var u=r(97677);Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return u.default}});var s=r(16196);Object.defineProperty(t,"v1ToV6",{enumerable:!0,get:function(){return s.default}});var c=r(21291);Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return c.default}});var l=r(77858);Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return l.default}});var f=r(79921);Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return f.default}});var d=r(5240);Object.defineProperty(t,"v6",{enumerable:!0,get:function(){return d.default}});var p=r(75464);Object.defineProperty(t,"v6ToV1",{enumerable:!0,get:function(){return p.default}});var h=r(68399);Object.defineProperty(t,"v7",{enumerable:!0,get:function(){return h.default}});var v=r(56686);Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return v.default}});var m=r(27758);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return m.default}})},86104:function(e,t,r){"use strict";r(36947),Object.defineProperty(t,"__esModule",{value:!0}),t.default="ffffffff-ffff-ffff-ffff-ffffffffffff"},91878:function(e,t,r){"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function o(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function i(e,t,r,n,i,a){return o((u=o(o(t,e),o(n,a)))<<(s=i)|u>>>32-s,r);var u,s}function a(e,t,r,n,o,a,u){return i(t&r|~t&n,e,t,o,a,u)}function u(e,t,r,n,o,a,u){return i(t&n|r&~n,e,t,o,a,u)}function s(e,t,r,n,o,a,u){return i(t^r^n,e,t,o,a,u)}function c(e,t,r,n,o,a,u){return i(r^(t|~n),e,t,o,a,u)}r(86765),r(44962),r(74455),r(36947),r(78557),r(96919),r(94630),r(83320),r(4716),r(33054),r(82281),r(23236),r(89717),r(57268),r(32650),r(34581),r(31937),r(65683),r(85486),r(4181),r(51294),r(1421),r(18750),r(50789),r(63171),r(67689),r(14715),r(39111),r(21788),r(73015),r(47762),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(e){for(var t=new Uint8Array(4*e.length),r=0;r<4*e.length;r++)t[r]=e[r>>2]>>>r%4*8&255;return t}(function(e,t){var r=new Uint32Array(n(t)).fill(0);r.set(e),r[t>>5]|=128<>2]|=(255&e[r])<>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}},93117:function(e,t,r){"use strict";r(36947),Object.defineProperty(t,"__esModule",{value:!0}),t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i},16559:function(e,t,r){"use strict";var n;r(44962),r(74455),r(36947),r(78557),r(96919),r(83320),r(4716),r(33054),r(82281),r(23236),r(89717),r(57268),r(32650),r(34581),r(31937),r(65683),r(85486),r(4181),r(1421),r(18750),r(50789),r(63171),r(67689),r(14715),r(39111),r(21788),r(73015),r(47762),Object.defineProperty(t,"__esModule",{value:!0});var o=new Uint8Array(16);t.default=function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(o)}},66417:function(e,t,r){"use strict";function n(e,t,r,n){switch(e){case 0:return t&r^~t&n;case 1:case 3:return t^r^n;case 2:return t&r^t&n^r&n}}function o(e,t){return e<>>32-t}r(44962),r(74455),r(36947),r(78557),r(96919),r(94630),r(83320),r(4716),r(33054),r(82281),r(23236),r(89717),r(57268),r(32650),r(34581),r(31937),r(65683),r(85486),r(4181),r(51294),r(1421),r(18750),r(50789),r(63171),r(67689),r(14715),r(39111),r(21788),r(73015),r(47762),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520],i=new Uint8Array(e.length+1);i.set(e),i[e.length]=128;for(var a=(e=i).length/4+2,u=Math.ceil(a/16),s=new Array(u),c=0;c>>0;w=b,b=g,g=o(y,30)>>>0,y=m,m=E}r[0]=r[0]+m>>>0,r[1]=r[1]+y>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+b>>>0,r[4]=r[4]+w>>>0}return Uint8Array.of(r[0]>>24,r[0]>>16,r[0]>>8,r[0],r[1]>>24,r[1]>>16,r[1]>>8,r[1],r[2]>>24,r[2]>>16,r[2]>>8,r[2],r[3]>>24,r[3]>>16,r[3]>>8,r[3],r[4]>>24,r[4]>>16,r[4]>>8,r[4])}},37223:function(e,t,r){"use strict";r(89336),r(36947),r(78557),r(73687),Object.defineProperty(t,"__esModule",{value:!0}),t.unsafeStringify=void 0;for(var n=r(56686),o=[],i=0;i<256;++i)o.push((i+256).toString(16).slice(1));function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}t.unsafeStringify=a,t.default=function(e){var t=a(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0);if(!(0,n.default)(t))throw TypeError("Stringified UUID is invalid");return t}},97677:function(e,t,r){"use strict";r(24776),r(44962),r(89336),r(74455),r(36947),r(83810),r(78557),r(96919),r(83320),r(4716),r(33054),r(82281),r(23236),r(89717),r(57268),r(32650),r(34581),r(31937),r(65683),r(85486),r(4181),r(1421),r(18750),r(50789),r(63171),r(67689),r(14715),r(39111),r(21788),r(73015),r(47762),Object.defineProperty(t,"__esModule",{value:!0}),t.updateV1State=void 0;var n=r(16559),o=r(37223),i={};function a(e,t,r){var n,o;return null!==(n=e.msecs)&&void 0!==n||(e.msecs=-1/0),null!==(o=e.nsecs)&&void 0!==o||(e.nsecs=0),t===e.msecs?(e.nsecs++,e.nsecs>=1e4&&(e.node=void 0,e.nsecs=0)):t>e.msecs?e.nsecs=0:t6&&void 0!==arguments[6]?arguments[6]:0;if(e.length<16)throw new Error("Random bytes length must be >= 16");if(i){if(l<0||l+16>i.length)throw new RangeError("UUID byte range ".concat(l,":").concat(l+15," is out of buffer bounds"))}else i=new Uint8Array(16),l=0;null!==(a=t)&&void 0!==a||(t=Date.now()),null!==(u=r)&&void 0!==u||(r=0),null!==(s=n)&&void 0!==s||(n=16383&(e[8]<<8|e[9])),null!==(c=o)&&void 0!==c||(o=e.slice(10,16));var f=(1e4*(268435455&(t+=122192928e5))+r)%4294967296;i[l++]=f>>>24&255,i[l++]=f>>>16&255,i[l++]=f>>>8&255,i[l++]=255&f;var d=t/4294967296*1e4&268435455;i[l++]=d>>>8&255,i[l++]=255&d,i[l++]=d>>>24&15|16,i[l++]=d>>>16&255,i[l++]=n>>>8|128,i[l++]=255&n;for(var p=0;p<6;++p)i[l++]=o[p];return i}t.updateV1State=a,t.default=function(e,t,r){var s,c,l,f=null!==(s=null===(c=e)||void 0===c?void 0:c._v6)&&void 0!==s&&s;if(e){var d=Object.keys(e);1===d.length&&"_v6"===d[0]&&(e=void 0)}if(e){var p,h,v,m;l=u(null!==(p=null!==(h=e.random)&&void 0!==h?h:null===(v=(m=e).rng)||void 0===v?void 0:v.call(m))&&void 0!==p?p:(0,n.default)(),e.msecs,e.nsecs,e.clockseq,e.node,t,r)}else{var y=Date.now(),g=(0,n.default)();a(i,y,g),l=u(g,i.msecs,i.nsecs,f?void 0:i.clockseq,f?void 0:i.node,t,r)}return null!=t?t:(0,o.unsafeStringify)(l)}},16196:function(e,t,r){"use strict";r(44962),r(74455),r(36947),r(78557),r(96919),r(83320),r(4716),r(33054),r(82281),r(23236),r(89717),r(57268),r(32650),r(34581),r(31937),r(65683),r(85486),r(4181),r(51294),r(1421),r(18750),r(50789),r(63171),r(67689),r(14715),r(39111),r(21788),r(73015),r(47762),Object.defineProperty(t,"__esModule",{value:!0});var n=r(98217),o=r(37223);t.default=function(e){var t=function(e){return Uint8Array.of((15&e[6])<<4|e[7]>>4&15,(15&e[7])<<4|(240&e[4])>>4,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,(15&e[1])<<4|(240&e[2])>>4,96|15&e[2],e[3],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?(0,n.default)(e):e);return"string"==typeof e?(0,o.unsafeStringify)(t):t}},21291:function(e,t,r){"use strict";r(36947),Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;var n=r(91878),o=r(648),i=r(648);function a(e,t,r,i){return(0,o.default)(48,n.default,e,t,r,i)}Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return i.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return i.URL}}),a.DNS=o.DNS,a.URL=o.URL,t.default=a},648:function(e,t,r){"use strict";r(44962),r(74455),r(36947),r(78557),r(96919),r(83320),r(4716),r(33054),r(82281),r(23236),r(89717),r(57268),r(32650),r(34581),r(31937),r(65683),r(85486),r(4181),r(1421),r(18750),r(50789),r(63171),r(67689),r(14715),r(39111),r(21788),r(73015),r(47762),Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=t.stringToBytes=void 0;var n=r(98217),o=r(37223);function i(e){e=unescape(encodeURIComponent(e));for(var t=new Uint8Array(e.length),r=0;r= 16");if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t){if((r=r||0)<0||r+16>t.length)throw new RangeError("UUID byte range ".concat(r,":").concat(r+15," is out of buffer bounds"));for(var f=0;f<16;++f)t[r+f]=l[f];return t}return(0,i.unsafeStringify)(l)}},79921:function(e,t,r){"use strict";r(36947),Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0;var n=r(66417),o=r(648),i=r(648);function a(e,t,r,i){return(0,o.default)(80,n.default,e,t,r,i)}Object.defineProperty(t,"DNS",{enumerable:!0,get:function(){return i.DNS}}),Object.defineProperty(t,"URL",{enumerable:!0,get:function(){return i.URL}}),a.DNS=o.DNS,a.URL=o.URL,t.default=a},5240:function(e,t,r){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t>4&15,(15&e[4])<<4|(240&e[5])>>4,(15&e[5])<<4|15&e[6],e[7],(15&e[1])<<4|(240&e[2])>>4,(15&e[2])<<4|(240&e[3])>>4,16|(240&e[0])>>4,(15&e[0])<<4|(240&e[1])>>4,e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}("string"==typeof e?(0,n.default)(e):e);return"string"==typeof e?(0,o.unsafeStringify)(t):t}},68399:function(e,t,r){"use strict";r(24776),r(44962),r(74455),r(36947),r(78557),r(96919),r(83320),r(4716),r(33054),r(82281),r(23236),r(89717),r(57268),r(32650),r(34581),r(31937),r(65683),r(85486),r(4181),r(1421),r(18750),r(50789),r(63171),r(67689),r(14715),r(39111),r(21788),r(73015),r(47762),Object.defineProperty(t,"__esModule",{value:!0}),t.updateV7State=void 0;var n=r(16559),o=r(37223),i={};function a(e,t,r){var n,o;return null!==(n=e.msecs)&&void 0!==n||(e.msecs=-1/0),null!==(o=e.seq)&&void 0!==o||(e.seq=0),t>e.msecs?(e.seq=r[6]<<23|r[7]<<16|r[8]<<8|r[9],e.msecs=t):(e.seq=e.seq+1|0,0===e.seq&&e.msecs++),e}function u(e,t,r,n){var o,i,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(e.length<16)throw new Error("Random bytes length must be >= 16");if(n){if(a<0||a+16>n.length)throw new RangeError("UUID byte range ".concat(a,":").concat(a+15," is out of buffer bounds"))}else n=new Uint8Array(16),a=0;return null!==(o=t)&&void 0!==o||(t=Date.now()),null!==(i=r)&&void 0!==i||(r=127*e[6]<<24|e[7]<<16|e[8]<<8|e[9]),n[a++]=t/1099511627776&255,n[a++]=t/4294967296&255,n[a++]=t/16777216&255,n[a++]=t/65536&255,n[a++]=t/256&255,n[a++]=255&t,n[a++]=112|r>>>28&15,n[a++]=r>>>20&255,n[a++]=128|r>>>14&63,n[a++]=r>>>6&255,n[a++]=r<<2&255|3&e[10],n[a++]=e[11],n[a++]=e[12],n[a++]=e[13],n[a++]=e[14],n[a++]=e[15],n}t.updateV7State=a,t.default=function(e,t,r){var s;if(e){var c,l,f;s=u(null!==(c=null!==(l=e.random)&&void 0!==l?l:null===(f=e.rng)||void 0===f?void 0:f.call(e))&&void 0!==c?c:(0,n.default)(),e.msecs,e.seq,t,r)}else{var d=Date.now(),p=(0,n.default)();a(i,d,p),s=u(p,i.msecs,i.seq,t,r)}return null!=t?t:(0,o.unsafeStringify)(s)}},56686:function(e,t,r){"use strict";r(36947),r(95021),Object.defineProperty(t,"__esModule",{value:!0});var n=r(93117);t.default=function(e){return"string"==typeof e&&n.default.test(e)}},27758:function(e,t,r){"use strict";r(89336),r(36947),r(96054),Object.defineProperty(t,"__esModule",{value:!0});var n=r(56686);t.default=function(e){if(!(0,n.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},95162:function(e){"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="/mgs/player/prd/v_20260916175303_44f027b3/dist/",__webpack_require__.b=document.baseURI||self.location.href;var __webpack_exports__={};!function(){window.MG_PLAYER_VERSION="4.1.2",eval("console.log('miguplayer - v4.1.2.2026916');")}(),function(){"use strict";__webpack_require__(29305),__webpack_require__(32733),__webpack_require__(51770),__webpack_require__(84701),__webpack_require__(81678),__webpack_require__(2623),__webpack_require__(21203),__webpack_require__(69892),__webpack_require__(87324),__webpack_require__(4754),__webpack_require__(51908),__webpack_require__(10849),__webpack_require__(70389),__webpack_require__(33087),__webpack_require__(36947),__webpack_require__(36457),__webpack_require__(88908),__webpack_require__(26437),__webpack_require__(52697),__webpack_require__(23630),__webpack_require__(14382),__webpack_require__(84734),__webpack_require__(44962),__webpack_require__(86584),__webpack_require__(20518),__webpack_require__(89336),__webpack_require__(45460),__webpack_require__(74576),__webpack_require__(94),__webpack_require__(77575),__webpack_require__(83810),__webpack_require__(78557),__webpack_require__(90076),__webpack_require__(95021),__webpack_require__(73687),__webpack_require__(92745),__webpack_require__(83994),__webpack_require__(11810),__webpack_require__(46968),__webpack_require__(82367),__webpack_require__(17089),__webpack_require__(24362),__webpack_require__(99102);var e=__webpack_require__(3280),t=u(__webpack_require__(51089)),r=__webpack_require__(11011),n=u(__webpack_require__(10975)),o=__webpack_require__(23990),i=u(__webpack_require__(33634)),a=__webpack_require__(53053);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return h(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>>>>",t),t&&t.clientId&&(o.H5Common.clientID=t.clientId),!t||"TOKEN_KICKED_OUT"!=t.authResult){e.next=6;break}return e.abrupt("return",null);case 6:if(!t||"TOKEN_NOT_EXISTS"!=t.authResult){e.next=10;break}return e.abrupt("return",null);case 10:if(o.H5Common.authResult){e.next=33;break}if("10001"!=t.errorId){e.next=16;break}return i.default.debug("请求playconfig出错"),e.abrupt("return",null);case 16:t.body=t.body||{},t.body.content=t.body.content||{},t.body.urlInfo=t.body.urlInfo||{},t.body.extInfo=t.body.extInfo||{},t.body.playSessionId=o.H5Common.playSessionId,r=(t||{}).body.content,a=(n=void 0===r?{}:r).serialContentId,u=n.contId,o.H5Common.saleId=a||u||"",o.H5Common.serialContentId=a||"",o.H5Common.isVip=!!(t.body&&t.body.auth&&t.body.auth.member)&&Object.keys(t.body.auth.member).length>0,e.t0=t.code,e.next="100054"===e.t0||"100052"===e.t0||"403"===e.t0||"409"===e.t0||"414"===e.t0||"415"===e.t0||"419"===e.t0?28:"200"===e.t0||"412"===e.t0?29:32;break;case 28:case 32:case 33:return e.abrupt("return",null);case 29:return e.next=31,E(t);case 31:return e.abrupt("return",e.sent);case 34:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return S.apply(this,arguments)}function S(){return(S=m(f().mark((function e(t){var o,u,s,c,l,d,p,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o={},e.prev=1,i.default.debug("请求play的返回数据>>>>>>>",t),!t.body.content.drm){e.next=5;break}return e.abrupt("return",o);case 5:if(t.body.content||(t.body.content={}),u=(t||{}).body.content,c=(s=void 0===u?{}:u).playerType,l=s.copyRightObjectID,s.contId,"VR"!=c){e.next=9;break}return e.abrupt("return",o);case 9:if("1000948"!=l){e.next=11;break}return e.abrupt("return",o);case 11:if("DoFView"!=c){e.next=13;break}return e.abrupt("return",o);case 13:if(d=k(t),null==(p=d.urlInfo)||!p.url){e.next=42;break}return e.prev=16,e.next=19,n.default.init();case 19:return e.next=21,(0,r.unifiedWasmEncryption)(p.url);case 21:p.url=e.sent,o.rateType=p.rateType,e.next=28;break;case 25:return e.prev=25,e.t0=e.catch(16),e.abrupt("return",o);case 28:if(-1!=p.url.indexOf("gslb")){e.next=32;break}o.url=p.url,e.next=42;break;case 32:return e.prev=32,e.next=35,(0,a.getUrlData)({url:p.url},(function(e){var t=e.switchUrl;p.url=t||p.url}));case 35:h=e.sent,o.url=h,e.next=42;break;case 39:return e.prev=39,e.t1=e.catch(32),e.abrupt("return",o);case 42:e.next=47;break;case 44:e.prev=44,e.t2=e.catch(1),i.default.debug("解析playconfig出错",e.t2);case 47:return e.abrupt("return",o);case 48:case"end":return e.stop()}}),e,null,[[1,44],[16,25],[32,39]])})))).apply(this,arguments)}function k(e){var t=e||{},r=t.body,n=void 0===r?{}:r,o=t.body.content;!function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(void 0===o?{}:o);var a=n,u=function(e){var t=e.urlInfo,r=e.urlInfos;try{!t&&r&&r.length&&(t=r[0],e.urlInfo=t)}catch(e){i.default.debug("<<<<<<<=0)a.urlInfos[s].url||a.urlInfos.splice(s,1);a.urlInfos=O(a.urlInfos);i.default.debug("<<<<当前码流:"+a.urlInfo.rateType)}return Array.isArray(a.mediaFiles)&&(a.mediaFiles=I(a.mediaFiles),a.mediaFiles=O(a.mediaFiles)),Array.isArray(a.urlInfosAI)&&(a.urlInfosAI=I(a.urlInfosAI),a.urlInfosAI=O(a.urlInfosAI)),a}function O(e){var t={};if(e&&e.length>0){var r,n=p(e);try{for(n.s();!(r=n.n()).done;){var o=r.value,i=Number(o.rateType);i&&!t[i]&&(t[i]=o)}}catch(e){n.e(e)}finally{n.f()}return t}return null}function I(e){if(!Array.isArray(e))return e;var t=e.some((function(e){return 8===Number(e&&e.rateType)})),r=e.some((function(e){return 9===Number(e&&e.rateType)}));return t&&r?e.filter((function(e){return 8!==Number(e&&e.rateType)})):e}function T(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Number(t.maxCount)||1,n=Number(t.timeout)||1e4,o=Number(t.maxDepth)||3;return A(e,n,o).then((function(e){var t=e.slice(0,r)[0];return t?P(t,"arraybuffer",n).then((function(e){return{url:t,size:e&&e.byteLength}})):null}))}function A(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Set;return r<0||n.has(e)?Promise.resolve([]):(n.add(e),P(e,"text",t).then((function(o){var i=function(e,t){return C(e,t,/\.ts($|\?)/i)}(o,e);if(i.length)return i;var a=function(e,t){return C(e,t,/\.m3u8($|\?)/i)}(o,e);return a.length?a.reduce((function(e,o){return e.then((function(e){return e.length?e:A(o,t,r-1,n)}))}),Promise.resolve([])):[]})))}function P(e,t,r){return new Promise((function(n,o){var i=new XMLHttpRequest,a=setTimeout((function(){i.abort(),o(new Error("hls ts only request timeout"))}),r);i.open("GET",e,!0),i.responseType="arraybuffer"===t?"arraybuffer":"",i.onload=function(){clearTimeout(a),i.status>=200&&i.status<300?n("arraybuffer"===t?i.response:i.responseText):o(new Error("hls ts only request failed: ".concat(i.status)))},i.onerror=function(){clearTimeout(a),o(new Error("hls ts only request error"))},i.send()}))}function C(e,t,r){return String(e||"").split(/\r?\n/).map((function(e){return e.trim()})).filter((function(e){return e&&"#"!==e[0]})).filter((function(e){return r.test(e)})).map((function(e){return new URL(e,t).toString()}))}window.getPlayUrl=y,window.batchGetPlayUrl=b,window.downloadHlsTsOnly=T}()})();